hplx-react-elements-dev 1.0.83 → 1.0.85
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/dist/esm/index.js +517 -256
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var global$e =
|
|
|
41
41
|
|
|
42
42
|
var objectGetOwnPropertyDescriptor = {};
|
|
43
43
|
|
|
44
|
-
var fails$
|
|
44
|
+
var fails$k = function (exec) {
|
|
45
45
|
try {
|
|
46
46
|
return !!exec();
|
|
47
47
|
} catch (error) {
|
|
@@ -49,17 +49,17 @@ var fails$i = function (exec) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
var fails$
|
|
52
|
+
var fails$j = fails$k;
|
|
53
53
|
|
|
54
54
|
// Detect IE8's incomplete defineProperty implementation
|
|
55
|
-
var descriptors = !fails$
|
|
55
|
+
var descriptors = !fails$j(function () {
|
|
56
56
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
57
57
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
var fails$
|
|
60
|
+
var fails$i = fails$k;
|
|
61
61
|
|
|
62
|
-
var functionBindNative = !fails$
|
|
62
|
+
var functionBindNative = !fails$i(function () {
|
|
63
63
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
64
64
|
var test = (function () { /* empty */ }).bind();
|
|
65
65
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -78,15 +78,15 @@ var objectPropertyIsEnumerable = {};
|
|
|
78
78
|
|
|
79
79
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
80
80
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
81
|
-
var getOwnPropertyDescriptor$
|
|
81
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
82
82
|
|
|
83
83
|
// Nashorn ~ JDK8 bug
|
|
84
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
84
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
85
85
|
|
|
86
86
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
87
87
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
88
88
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
89
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
89
|
+
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
90
90
|
return !!descriptor && descriptor.enumerable;
|
|
91
91
|
} : $propertyIsEnumerable;
|
|
92
92
|
|
|
@@ -104,34 +104,34 @@ var NATIVE_BIND$1 = functionBindNative;
|
|
|
104
104
|
var FunctionPrototype$2 = Function.prototype;
|
|
105
105
|
var bind = FunctionPrototype$2.bind;
|
|
106
106
|
var call$9 = FunctionPrototype$2.call;
|
|
107
|
-
var uncurryThis$
|
|
107
|
+
var uncurryThis$m = NATIVE_BIND$1 && bind.bind(call$9, call$9);
|
|
108
108
|
|
|
109
109
|
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
|
|
110
|
-
return fn && uncurryThis$
|
|
110
|
+
return fn && uncurryThis$m(fn);
|
|
111
111
|
} : function (fn) {
|
|
112
112
|
return fn && function () {
|
|
113
113
|
return call$9.apply(fn, arguments);
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
116
|
|
|
117
|
-
var uncurryThis$
|
|
117
|
+
var uncurryThis$l = functionUncurryThis;
|
|
118
118
|
|
|
119
|
-
var toString$
|
|
120
|
-
var stringSlice$
|
|
119
|
+
var toString$b = uncurryThis$l({}.toString);
|
|
120
|
+
var stringSlice$5 = uncurryThis$l(''.slice);
|
|
121
121
|
|
|
122
122
|
var classofRaw$1 = function (it) {
|
|
123
|
-
return stringSlice$
|
|
123
|
+
return stringSlice$5(toString$b(it), 8, -1);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
var uncurryThis$
|
|
127
|
-
var fails$
|
|
126
|
+
var uncurryThis$k = functionUncurryThis;
|
|
127
|
+
var fails$h = fails$k;
|
|
128
128
|
var classof$6 = classofRaw$1;
|
|
129
129
|
|
|
130
130
|
var $Object$3 = Object;
|
|
131
|
-
var split = uncurryThis$
|
|
131
|
+
var split = uncurryThis$k(''.split);
|
|
132
132
|
|
|
133
133
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
134
|
-
var indexedObject = fails$
|
|
134
|
+
var indexedObject = fails$h(function () {
|
|
135
135
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
136
136
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
137
137
|
return !$Object$3('z').propertyIsEnumerable(0);
|
|
@@ -139,21 +139,21 @@ var indexedObject = fails$f(function () {
|
|
|
139
139
|
return classof$6(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
140
140
|
} : $Object$3;
|
|
141
141
|
|
|
142
|
-
var $TypeError$
|
|
142
|
+
var $TypeError$9 = TypeError;
|
|
143
143
|
|
|
144
144
|
// `RequireObjectCoercible` abstract operation
|
|
145
145
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
146
|
-
var requireObjectCoercible$
|
|
147
|
-
if (it == undefined) throw $TypeError$
|
|
146
|
+
var requireObjectCoercible$8 = function (it) {
|
|
147
|
+
if (it == undefined) throw $TypeError$9("Can't call method on " + it);
|
|
148
148
|
return it;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
// toObject with fallback for non-array-like ES3 strings
|
|
152
152
|
var IndexedObject = indexedObject;
|
|
153
|
-
var requireObjectCoercible$
|
|
153
|
+
var requireObjectCoercible$7 = requireObjectCoercible$8;
|
|
154
154
|
|
|
155
155
|
var toIndexedObject$4 = function (it) {
|
|
156
|
-
return IndexedObject(requireObjectCoercible$
|
|
156
|
+
return IndexedObject(requireObjectCoercible$7(it));
|
|
157
157
|
};
|
|
158
158
|
|
|
159
159
|
// `IsCallable` abstract operation
|
|
@@ -179,16 +179,16 @@ var getBuiltIn$6 = function (namespace, method) {
|
|
|
179
179
|
return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
var uncurryThis$
|
|
182
|
+
var uncurryThis$j = functionUncurryThis;
|
|
183
183
|
|
|
184
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
184
|
+
var objectIsPrototypeOf = uncurryThis$j({}.isPrototypeOf);
|
|
185
185
|
|
|
186
186
|
var getBuiltIn$5 = getBuiltIn$6;
|
|
187
187
|
|
|
188
188
|
var engineUserAgent = getBuiltIn$5('navigator', 'userAgent') || '';
|
|
189
189
|
|
|
190
190
|
var global$c = global$e;
|
|
191
|
-
var userAgent = engineUserAgent;
|
|
191
|
+
var userAgent$2 = engineUserAgent;
|
|
192
192
|
|
|
193
193
|
var process = global$c.process;
|
|
194
194
|
var Deno = global$c.Deno;
|
|
@@ -205,10 +205,10 @@ if (v8) {
|
|
|
205
205
|
|
|
206
206
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
207
207
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
208
|
-
if (!version && userAgent) {
|
|
209
|
-
match$1 = userAgent.match(/Edge\/(\d+)/);
|
|
208
|
+
if (!version && userAgent$2) {
|
|
209
|
+
match$1 = userAgent$2.match(/Edge\/(\d+)/);
|
|
210
210
|
if (!match$1 || match$1[1] >= 74) {
|
|
211
|
-
match$1 = userAgent.match(/Chrome\/(\d+)/);
|
|
211
|
+
match$1 = userAgent$2.match(/Chrome\/(\d+)/);
|
|
212
212
|
if (match$1) version = +match$1[1];
|
|
213
213
|
}
|
|
214
214
|
}
|
|
@@ -218,10 +218,10 @@ var engineV8Version = version;
|
|
|
218
218
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
219
219
|
|
|
220
220
|
var V8_VERSION = engineV8Version;
|
|
221
|
-
var fails$
|
|
221
|
+
var fails$g = fails$k;
|
|
222
222
|
|
|
223
223
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
224
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
224
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$g(function () {
|
|
225
225
|
var symbol = Symbol();
|
|
226
226
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
227
227
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -254,7 +254,7 @@ var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
254
254
|
|
|
255
255
|
var $String$2 = String;
|
|
256
256
|
|
|
257
|
-
var tryToString$
|
|
257
|
+
var tryToString$3 = function (argument) {
|
|
258
258
|
try {
|
|
259
259
|
return $String$2(argument);
|
|
260
260
|
} catch (error) {
|
|
@@ -263,30 +263,30 @@ var tryToString$2 = function (argument) {
|
|
|
263
263
|
};
|
|
264
264
|
|
|
265
265
|
var isCallable$b = isCallable$f;
|
|
266
|
-
var tryToString$
|
|
266
|
+
var tryToString$2 = tryToString$3;
|
|
267
267
|
|
|
268
|
-
var $TypeError$
|
|
268
|
+
var $TypeError$8 = TypeError;
|
|
269
269
|
|
|
270
270
|
// `Assert: IsCallable(argument) is true`
|
|
271
|
-
var aCallable$
|
|
271
|
+
var aCallable$2 = function (argument) {
|
|
272
272
|
if (isCallable$b(argument)) return argument;
|
|
273
|
-
throw $TypeError$
|
|
273
|
+
throw $TypeError$8(tryToString$2(argument) + ' is not a function');
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
-
var aCallable = aCallable$
|
|
276
|
+
var aCallable$1 = aCallable$2;
|
|
277
277
|
|
|
278
278
|
// `GetMethod` abstract operation
|
|
279
279
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
280
280
|
var getMethod$2 = function (V, P) {
|
|
281
281
|
var func = V[P];
|
|
282
|
-
return func == null ? undefined : aCallable(func);
|
|
282
|
+
return func == null ? undefined : aCallable$1(func);
|
|
283
283
|
};
|
|
284
284
|
|
|
285
285
|
var call$8 = functionCall;
|
|
286
286
|
var isCallable$a = isCallable$f;
|
|
287
287
|
var isObject$6 = isObject$7;
|
|
288
288
|
|
|
289
|
-
var $TypeError$
|
|
289
|
+
var $TypeError$7 = TypeError;
|
|
290
290
|
|
|
291
291
|
// `OrdinaryToPrimitive` abstract operation
|
|
292
292
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -295,7 +295,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
|
|
|
295
295
|
if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$8(fn, input))) return val;
|
|
296
296
|
if (isCallable$a(fn = input.valueOf) && !isObject$6(val = call$8(fn, input))) return val;
|
|
297
297
|
if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$8(fn, input))) return val;
|
|
298
|
-
throw $TypeError$
|
|
298
|
+
throw $TypeError$7("Can't convert object to primitive value");
|
|
299
299
|
};
|
|
300
300
|
|
|
301
301
|
var shared$4 = {exports: {}};
|
|
@@ -333,36 +333,36 @@ var store$2 = sharedStore;
|
|
|
333
333
|
source: 'https://github.com/zloirock/core-js'
|
|
334
334
|
});
|
|
335
335
|
|
|
336
|
-
var requireObjectCoercible$
|
|
336
|
+
var requireObjectCoercible$6 = requireObjectCoercible$8;
|
|
337
337
|
|
|
338
338
|
var $Object$1 = Object;
|
|
339
339
|
|
|
340
340
|
// `ToObject` abstract operation
|
|
341
341
|
// https://tc39.es/ecma262/#sec-toobject
|
|
342
|
-
var toObject$
|
|
343
|
-
return $Object$1(requireObjectCoercible$
|
|
342
|
+
var toObject$2 = function (argument) {
|
|
343
|
+
return $Object$1(requireObjectCoercible$6(argument));
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
var uncurryThis$
|
|
347
|
-
var toObject = toObject$
|
|
346
|
+
var uncurryThis$i = functionUncurryThis;
|
|
347
|
+
var toObject$1 = toObject$2;
|
|
348
348
|
|
|
349
|
-
var hasOwnProperty = uncurryThis$
|
|
349
|
+
var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
|
|
350
350
|
|
|
351
351
|
// `HasOwnProperty` abstract operation
|
|
352
352
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
353
353
|
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
354
354
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
355
|
-
return hasOwnProperty(toObject(it), key);
|
|
355
|
+
return hasOwnProperty(toObject$1(it), key);
|
|
356
356
|
};
|
|
357
357
|
|
|
358
|
-
var uncurryThis$
|
|
358
|
+
var uncurryThis$h = functionUncurryThis;
|
|
359
359
|
|
|
360
360
|
var id = 0;
|
|
361
361
|
var postfix = Math.random();
|
|
362
|
-
var toString$
|
|
362
|
+
var toString$a = uncurryThis$h(1.0.toString);
|
|
363
363
|
|
|
364
364
|
var uid$2 = function (key) {
|
|
365
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
365
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
|
|
366
366
|
};
|
|
367
367
|
|
|
368
368
|
var global$9 = global$e;
|
|
@@ -397,7 +397,7 @@ var getMethod$1 = getMethod$2;
|
|
|
397
397
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
398
398
|
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
399
399
|
|
|
400
|
-
var $TypeError$
|
|
400
|
+
var $TypeError$6 = TypeError;
|
|
401
401
|
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
402
402
|
|
|
403
403
|
// `ToPrimitive` abstract operation
|
|
@@ -410,7 +410,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
410
410
|
if (pref === undefined) pref = 'default';
|
|
411
411
|
result = call$7(exoticToPrim, input, pref);
|
|
412
412
|
if (!isObject$5(result) || isSymbol$2(result)) return result;
|
|
413
|
-
throw $TypeError$
|
|
413
|
+
throw $TypeError$6("Can't convert object to primitive value");
|
|
414
414
|
}
|
|
415
415
|
if (pref === undefined) pref = 'number';
|
|
416
416
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -438,11 +438,11 @@ var documentCreateElement$1 = function (it) {
|
|
|
438
438
|
};
|
|
439
439
|
|
|
440
440
|
var DESCRIPTORS$8 = descriptors;
|
|
441
|
-
var fails$
|
|
441
|
+
var fails$f = fails$k;
|
|
442
442
|
var createElement = documentCreateElement$1;
|
|
443
443
|
|
|
444
444
|
// Thanks to IE8 for its funny defineProperty
|
|
445
|
-
var ie8DomDefine = !DESCRIPTORS$8 && !fails$
|
|
445
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$f(function () {
|
|
446
446
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
447
447
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
448
448
|
get: function () { return 7; }
|
|
@@ -475,11 +475,11 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 :
|
|
|
475
475
|
var objectDefineProperty = {};
|
|
476
476
|
|
|
477
477
|
var DESCRIPTORS$6 = descriptors;
|
|
478
|
-
var fails$
|
|
478
|
+
var fails$e = fails$k;
|
|
479
479
|
|
|
480
480
|
// V8 ~ Chrome 36-
|
|
481
481
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
482
|
-
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$
|
|
482
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$e(function () {
|
|
483
483
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
484
484
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
485
485
|
value: 42,
|
|
@@ -490,12 +490,12 @@ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$c(function () {
|
|
|
490
490
|
var isObject$3 = isObject$7;
|
|
491
491
|
|
|
492
492
|
var $String$1 = String;
|
|
493
|
-
var $TypeError$
|
|
493
|
+
var $TypeError$5 = TypeError;
|
|
494
494
|
|
|
495
495
|
// `Assert: Type(argument) is Object`
|
|
496
496
|
var anObject$9 = function (argument) {
|
|
497
497
|
if (isObject$3(argument)) return argument;
|
|
498
|
-
throw $TypeError$
|
|
498
|
+
throw $TypeError$5($String$1(argument) + ' is not an object');
|
|
499
499
|
};
|
|
500
500
|
|
|
501
501
|
var DESCRIPTORS$5 = descriptors;
|
|
@@ -504,7 +504,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
|
504
504
|
var anObject$8 = anObject$9;
|
|
505
505
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
506
506
|
|
|
507
|
-
var $TypeError$
|
|
507
|
+
var $TypeError$4 = TypeError;
|
|
508
508
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
509
509
|
var $defineProperty = Object.defineProperty;
|
|
510
510
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -537,7 +537,7 @@ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
537
537
|
if (IE8_DOM_DEFINE) try {
|
|
538
538
|
return $defineProperty(O, P, Attributes);
|
|
539
539
|
} catch (error) { /* empty */ }
|
|
540
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
540
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$4('Accessors not supported');
|
|
541
541
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
542
542
|
return O;
|
|
543
543
|
};
|
|
@@ -573,11 +573,11 @@ var functionName = {
|
|
|
573
573
|
CONFIGURABLE: CONFIGURABLE
|
|
574
574
|
};
|
|
575
575
|
|
|
576
|
-
var uncurryThis$
|
|
576
|
+
var uncurryThis$g = functionUncurryThis;
|
|
577
577
|
var isCallable$9 = isCallable$f;
|
|
578
578
|
var store$1 = sharedStore;
|
|
579
579
|
|
|
580
|
-
var functionToString = uncurryThis$
|
|
580
|
+
var functionToString = uncurryThis$g(Function.toString);
|
|
581
581
|
|
|
582
582
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
583
583
|
if (!isCallable$9(store$1.inspectSource)) {
|
|
@@ -609,7 +609,7 @@ var hiddenKeys$4 = {};
|
|
|
609
609
|
|
|
610
610
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
611
611
|
var global$6 = global$e;
|
|
612
|
-
var uncurryThis$
|
|
612
|
+
var uncurryThis$f = functionUncurryThis;
|
|
613
613
|
var isObject$2 = isObject$7;
|
|
614
614
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
615
615
|
var hasOwn$5 = hasOwnProperty_1;
|
|
@@ -637,9 +637,9 @@ var getterFor = function (TYPE) {
|
|
|
637
637
|
|
|
638
638
|
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
639
639
|
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
640
|
-
var wmget = uncurryThis$
|
|
641
|
-
var wmhas = uncurryThis$
|
|
642
|
-
var wmset = uncurryThis$
|
|
640
|
+
var wmget = uncurryThis$f(store.get);
|
|
641
|
+
var wmhas = uncurryThis$f(store.has);
|
|
642
|
+
var wmset = uncurryThis$f(store.set);
|
|
643
643
|
set = function (it, metadata) {
|
|
644
644
|
if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
645
645
|
metadata.facade = it;
|
|
@@ -677,7 +677,7 @@ var internalState = {
|
|
|
677
677
|
getterFor: getterFor
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
var fails$
|
|
680
|
+
var fails$d = fails$k;
|
|
681
681
|
var isCallable$7 = isCallable$f;
|
|
682
682
|
var hasOwn$4 = hasOwnProperty_1;
|
|
683
683
|
var DESCRIPTORS$2 = descriptors;
|
|
@@ -690,7 +690,7 @@ var getInternalState$1 = InternalStateModule.get;
|
|
|
690
690
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
691
691
|
var defineProperty$2 = Object.defineProperty;
|
|
692
692
|
|
|
693
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$
|
|
693
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$d(function () {
|
|
694
694
|
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
695
695
|
});
|
|
696
696
|
|
|
@@ -758,14 +758,14 @@ var defineBuiltIn$3 = function (O, key, value, options) {
|
|
|
758
758
|
var objectGetOwnPropertyNames = {};
|
|
759
759
|
|
|
760
760
|
var ceil = Math.ceil;
|
|
761
|
-
var floor = Math.floor;
|
|
761
|
+
var floor$1 = Math.floor;
|
|
762
762
|
|
|
763
763
|
// `Math.trunc` method
|
|
764
764
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
765
765
|
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
766
766
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
767
767
|
var n = +x;
|
|
768
|
-
return (n > 0 ? floor : ceil)(n);
|
|
768
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
769
769
|
};
|
|
770
770
|
|
|
771
771
|
var trunc = mathTrunc;
|
|
@@ -781,43 +781,43 @@ var toIntegerOrInfinity$3 = function (argument) {
|
|
|
781
781
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
|
|
782
782
|
|
|
783
783
|
var max$3 = Math.max;
|
|
784
|
-
var min$
|
|
784
|
+
var min$6 = Math.min;
|
|
785
785
|
|
|
786
786
|
// Helper for a popular repeating case of the spec:
|
|
787
787
|
// Let integer be ? ToInteger(index).
|
|
788
788
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
789
789
|
var toAbsoluteIndex$2 = function (index, length) {
|
|
790
790
|
var integer = toIntegerOrInfinity$2(index);
|
|
791
|
-
return integer < 0 ? max$3(integer + length, 0) : min$
|
|
791
|
+
return integer < 0 ? max$3(integer + length, 0) : min$6(integer, length);
|
|
792
792
|
};
|
|
793
793
|
|
|
794
794
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
|
|
795
795
|
|
|
796
|
-
var min$
|
|
796
|
+
var min$5 = Math.min;
|
|
797
797
|
|
|
798
798
|
// `ToLength` abstract operation
|
|
799
799
|
// https://tc39.es/ecma262/#sec-tolength
|
|
800
|
-
var toLength$
|
|
801
|
-
return argument > 0 ? min$
|
|
800
|
+
var toLength$4 = function (argument) {
|
|
801
|
+
return argument > 0 ? min$5(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
802
802
|
};
|
|
803
803
|
|
|
804
|
-
var toLength$
|
|
804
|
+
var toLength$3 = toLength$4;
|
|
805
805
|
|
|
806
806
|
// `LengthOfArrayLike` abstract operation
|
|
807
807
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
808
|
-
var lengthOfArrayLike$
|
|
809
|
-
return toLength$
|
|
808
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
809
|
+
return toLength$3(obj.length);
|
|
810
810
|
};
|
|
811
811
|
|
|
812
812
|
var toIndexedObject$2 = toIndexedObject$4;
|
|
813
813
|
var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
814
|
-
var lengthOfArrayLike$
|
|
814
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
815
815
|
|
|
816
816
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
817
817
|
var createMethod$2 = function (IS_INCLUDES) {
|
|
818
818
|
return function ($this, el, fromIndex) {
|
|
819
819
|
var O = toIndexedObject$2($this);
|
|
820
|
-
var length = lengthOfArrayLike$
|
|
820
|
+
var length = lengthOfArrayLike$2(O);
|
|
821
821
|
var index = toAbsoluteIndex$1(fromIndex, length);
|
|
822
822
|
var value;
|
|
823
823
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -842,23 +842,23 @@ var arrayIncludes = {
|
|
|
842
842
|
indexOf: createMethod$2(false)
|
|
843
843
|
};
|
|
844
844
|
|
|
845
|
-
var uncurryThis$
|
|
845
|
+
var uncurryThis$e = functionUncurryThis;
|
|
846
846
|
var hasOwn$3 = hasOwnProperty_1;
|
|
847
847
|
var toIndexedObject$1 = toIndexedObject$4;
|
|
848
848
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
849
849
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
850
850
|
|
|
851
|
-
var push$
|
|
851
|
+
var push$2 = uncurryThis$e([].push);
|
|
852
852
|
|
|
853
853
|
var objectKeysInternal = function (object, names) {
|
|
854
854
|
var O = toIndexedObject$1(object);
|
|
855
855
|
var i = 0;
|
|
856
856
|
var result = [];
|
|
857
857
|
var key;
|
|
858
|
-
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$
|
|
858
|
+
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$2(result, key);
|
|
859
859
|
// Don't enum bug & hidden keys
|
|
860
860
|
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
861
|
-
~indexOf$1(result, key) || push$
|
|
861
|
+
~indexOf$1(result, key) || push$2(result, key);
|
|
862
862
|
}
|
|
863
863
|
return result;
|
|
864
864
|
};
|
|
@@ -892,12 +892,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
892
892
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
893
893
|
|
|
894
894
|
var getBuiltIn$3 = getBuiltIn$6;
|
|
895
|
-
var uncurryThis$
|
|
895
|
+
var uncurryThis$d = functionUncurryThis;
|
|
896
896
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
897
897
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
898
898
|
var anObject$7 = anObject$9;
|
|
899
899
|
|
|
900
|
-
var concat = uncurryThis$
|
|
900
|
+
var concat = uncurryThis$d([].concat);
|
|
901
901
|
|
|
902
902
|
// all object keys, includes non-enumerable and symbols
|
|
903
903
|
var ownKeys$8 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -923,7 +923,7 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
925
|
|
|
926
|
-
var fails$
|
|
926
|
+
var fails$c = fails$k;
|
|
927
927
|
var isCallable$5 = isCallable$f;
|
|
928
928
|
|
|
929
929
|
var replacement = /#|\.prototype\./;
|
|
@@ -932,7 +932,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
932
932
|
var value = data[normalize(feature)];
|
|
933
933
|
return value == POLYFILL ? true
|
|
934
934
|
: value == NATIVE ? false
|
|
935
|
-
: isCallable$5(detection) ? fails$
|
|
935
|
+
: isCallable$5(detection) ? fails$c(detection)
|
|
936
936
|
: !!detection;
|
|
937
937
|
};
|
|
938
938
|
|
|
@@ -947,7 +947,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
947
947
|
var isForced_1 = isForced$1;
|
|
948
948
|
|
|
949
949
|
var global$5 = global$e;
|
|
950
|
-
var getOwnPropertyDescriptor$
|
|
950
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
951
951
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
952
952
|
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
953
953
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
@@ -984,7 +984,7 @@ var _export = function (options, source) {
|
|
|
984
984
|
if (target) for (key in source) {
|
|
985
985
|
sourceProperty = source[key];
|
|
986
986
|
if (options.dontCallGetSet) {
|
|
987
|
-
descriptor = getOwnPropertyDescriptor$
|
|
987
|
+
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
988
988
|
targetProperty = descriptor && descriptor.value;
|
|
989
989
|
} else targetProperty = target[key];
|
|
990
990
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
@@ -1004,11 +1004,11 @@ var _export = function (options, source) {
|
|
|
1004
1004
|
var wellKnownSymbol$6 = wellKnownSymbol$8;
|
|
1005
1005
|
|
|
1006
1006
|
var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
|
|
1007
|
-
var test = {};
|
|
1007
|
+
var test$1 = {};
|
|
1008
1008
|
|
|
1009
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
1009
|
+
test$1[TO_STRING_TAG$1] = 'z';
|
|
1010
1010
|
|
|
1011
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1011
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1012
1012
|
|
|
1013
1013
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1014
1014
|
var isCallable$4 = isCallable$f;
|
|
@@ -1044,7 +1044,7 @@ var classof$4 = classof$5;
|
|
|
1044
1044
|
|
|
1045
1045
|
var $String = String;
|
|
1046
1046
|
|
|
1047
|
-
var toString$
|
|
1047
|
+
var toString$9 = function (argument) {
|
|
1048
1048
|
if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1049
1049
|
return $String(argument);
|
|
1050
1050
|
};
|
|
@@ -1064,11 +1064,11 @@ var isRegexp = function (it) {
|
|
|
1064
1064
|
|
|
1065
1065
|
var isRegExp$1 = isRegexp;
|
|
1066
1066
|
|
|
1067
|
-
var $TypeError$
|
|
1067
|
+
var $TypeError$3 = TypeError;
|
|
1068
1068
|
|
|
1069
1069
|
var notARegexp = function (it) {
|
|
1070
1070
|
if (isRegExp$1(it)) {
|
|
1071
|
-
throw $TypeError$
|
|
1071
|
+
throw $TypeError$3("The method doesn't accept regular expressions");
|
|
1072
1072
|
} return it;
|
|
1073
1073
|
};
|
|
1074
1074
|
|
|
@@ -1088,37 +1088,37 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
1088
1088
|
} return false;
|
|
1089
1089
|
};
|
|
1090
1090
|
|
|
1091
|
-
var $$
|
|
1092
|
-
var uncurryThis$
|
|
1093
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1094
|
-
var toLength$
|
|
1095
|
-
var toString$
|
|
1096
|
-
var notARegExp$
|
|
1097
|
-
var requireObjectCoercible$
|
|
1098
|
-
var correctIsRegExpLogic$
|
|
1091
|
+
var $$8 = _export;
|
|
1092
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1093
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1094
|
+
var toLength$2 = toLength$4;
|
|
1095
|
+
var toString$8 = toString$9;
|
|
1096
|
+
var notARegExp$2 = notARegexp;
|
|
1097
|
+
var requireObjectCoercible$5 = requireObjectCoercible$8;
|
|
1098
|
+
var correctIsRegExpLogic$2 = correctIsRegexpLogic;
|
|
1099
1099
|
|
|
1100
1100
|
// eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
|
|
1101
|
-
var un$EndsWith = uncurryThis$
|
|
1102
|
-
var slice = uncurryThis$
|
|
1103
|
-
var min$
|
|
1101
|
+
var un$EndsWith = uncurryThis$c(''.endsWith);
|
|
1102
|
+
var slice = uncurryThis$c(''.slice);
|
|
1103
|
+
var min$4 = Math.min;
|
|
1104
1104
|
|
|
1105
|
-
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic$
|
|
1105
|
+
var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$2('endsWith');
|
|
1106
1106
|
// https://github.com/zloirock/core-js/pull/702
|
|
1107
|
-
var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
1108
|
-
var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
|
|
1107
|
+
var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () {
|
|
1108
|
+
var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'endsWith');
|
|
1109
1109
|
return descriptor && !descriptor.writable;
|
|
1110
1110
|
}();
|
|
1111
1111
|
|
|
1112
1112
|
// `String.prototype.endsWith` method
|
|
1113
1113
|
// https://tc39.es/ecma262/#sec-string.prototype.endswith
|
|
1114
|
-
$$
|
|
1114
|
+
$$8({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, {
|
|
1115
1115
|
endsWith: function endsWith(searchString /* , endPosition = @length */) {
|
|
1116
|
-
var that = toString$
|
|
1117
|
-
notARegExp$
|
|
1116
|
+
var that = toString$8(requireObjectCoercible$5(this));
|
|
1117
|
+
notARegExp$2(searchString);
|
|
1118
1118
|
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
|
|
1119
1119
|
var len = that.length;
|
|
1120
|
-
var end = endPosition === undefined ? len : min$
|
|
1121
|
-
var search = toString$
|
|
1120
|
+
var end = endPosition === undefined ? len : min$4(toLength$2(endPosition), len);
|
|
1121
|
+
var search = toString$8(searchString);
|
|
1122
1122
|
return un$EndsWith
|
|
1123
1123
|
? un$EndsWith(that, search, end)
|
|
1124
1124
|
: slice(that, end - search.length, end) === search;
|
|
@@ -1268,19 +1268,19 @@ var addToUnscopables$1 = function (key) {
|
|
|
1268
1268
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1269
1269
|
};
|
|
1270
1270
|
|
|
1271
|
-
var $$
|
|
1271
|
+
var $$7 = _export;
|
|
1272
1272
|
var $includes = arrayIncludes.includes;
|
|
1273
|
-
var fails$
|
|
1273
|
+
var fails$b = fails$k;
|
|
1274
1274
|
var addToUnscopables = addToUnscopables$1;
|
|
1275
1275
|
|
|
1276
1276
|
// FF99+ bug
|
|
1277
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1277
|
+
var BROKEN_ON_SPARSE = fails$b(function () {
|
|
1278
1278
|
return !Array(1).includes();
|
|
1279
1279
|
});
|
|
1280
1280
|
|
|
1281
1281
|
// `Array.prototype.includes` method
|
|
1282
1282
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1283
|
-
$$
|
|
1283
|
+
$$7({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1284
1284
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1285
1285
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1286
1286
|
}
|
|
@@ -1289,22 +1289,22 @@ $$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
1289
1289
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1290
1290
|
addToUnscopables('includes');
|
|
1291
1291
|
|
|
1292
|
-
var $$
|
|
1293
|
-
var uncurryThis$
|
|
1294
|
-
var notARegExp = notARegexp;
|
|
1295
|
-
var requireObjectCoercible$
|
|
1296
|
-
var toString$
|
|
1297
|
-
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
1292
|
+
var $$6 = _export;
|
|
1293
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1294
|
+
var notARegExp$1 = notARegexp;
|
|
1295
|
+
var requireObjectCoercible$4 = requireObjectCoercible$8;
|
|
1296
|
+
var toString$7 = toString$9;
|
|
1297
|
+
var correctIsRegExpLogic$1 = correctIsRegexpLogic;
|
|
1298
1298
|
|
|
1299
|
-
var stringIndexOf = uncurryThis$
|
|
1299
|
+
var stringIndexOf = uncurryThis$b(''.indexOf);
|
|
1300
1300
|
|
|
1301
1301
|
// `String.prototype.includes` method
|
|
1302
1302
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
1303
|
-
$$
|
|
1303
|
+
$$6({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
|
|
1304
1304
|
includes: function includes(searchString /* , position = 0 */) {
|
|
1305
1305
|
return !!~stringIndexOf(
|
|
1306
|
-
toString$
|
|
1307
|
-
toString$
|
|
1306
|
+
toString$7(requireObjectCoercible$4(this)),
|
|
1307
|
+
toString$7(notARegExp$1(searchString)),
|
|
1308
1308
|
arguments.length > 1 ? arguments[1] : undefined
|
|
1309
1309
|
);
|
|
1310
1310
|
}
|
|
@@ -1328,13 +1328,13 @@ var regexpFlags$1 = function () {
|
|
|
1328
1328
|
return result;
|
|
1329
1329
|
};
|
|
1330
1330
|
|
|
1331
|
-
var fails$
|
|
1331
|
+
var fails$a = fails$k;
|
|
1332
1332
|
var global$4 = global$e;
|
|
1333
1333
|
|
|
1334
1334
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1335
1335
|
var $RegExp$2 = global$4.RegExp;
|
|
1336
1336
|
|
|
1337
|
-
var UNSUPPORTED_Y$2 = fails$
|
|
1337
|
+
var UNSUPPORTED_Y$2 = fails$a(function () {
|
|
1338
1338
|
var re = $RegExp$2('a', 'y');
|
|
1339
1339
|
re.lastIndex = 2;
|
|
1340
1340
|
return re.exec('abcd') != null;
|
|
@@ -1342,11 +1342,11 @@ var UNSUPPORTED_Y$2 = fails$8(function () {
|
|
|
1342
1342
|
|
|
1343
1343
|
// UC Browser bug
|
|
1344
1344
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1345
|
-
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$
|
|
1345
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$a(function () {
|
|
1346
1346
|
return !$RegExp$2('a', 'y').sticky;
|
|
1347
1347
|
});
|
|
1348
1348
|
|
|
1349
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$
|
|
1349
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$a(function () {
|
|
1350
1350
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1351
1351
|
var re = $RegExp$2('^r', 'gy');
|
|
1352
1352
|
re.lastIndex = 2;
|
|
@@ -1359,24 +1359,24 @@ var regexpStickyHelpers = {
|
|
|
1359
1359
|
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
1360
1360
|
};
|
|
1361
1361
|
|
|
1362
|
-
var fails$
|
|
1362
|
+
var fails$9 = fails$k;
|
|
1363
1363
|
var global$3 = global$e;
|
|
1364
1364
|
|
|
1365
1365
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1366
1366
|
var $RegExp$1 = global$3.RegExp;
|
|
1367
1367
|
|
|
1368
|
-
var regexpUnsupportedDotAll = fails$
|
|
1368
|
+
var regexpUnsupportedDotAll = fails$9(function () {
|
|
1369
1369
|
var re = $RegExp$1('.', 's');
|
|
1370
1370
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1371
1371
|
});
|
|
1372
1372
|
|
|
1373
|
-
var fails$
|
|
1373
|
+
var fails$8 = fails$k;
|
|
1374
1374
|
var global$2 = global$e;
|
|
1375
1375
|
|
|
1376
1376
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1377
1377
|
var $RegExp = global$2.RegExp;
|
|
1378
1378
|
|
|
1379
|
-
var regexpUnsupportedNcg = fails$
|
|
1379
|
+
var regexpUnsupportedNcg = fails$8(function () {
|
|
1380
1380
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1381
1381
|
return re.exec('b').groups.a !== 'b' ||
|
|
1382
1382
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1385,8 +1385,8 @@ var regexpUnsupportedNcg = fails$6(function () {
|
|
|
1385
1385
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1386
1386
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1387
1387
|
var call$5 = functionCall;
|
|
1388
|
-
var uncurryThis$
|
|
1389
|
-
var toString$
|
|
1388
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1389
|
+
var toString$6 = toString$9;
|
|
1390
1390
|
var regexpFlags = regexpFlags$1;
|
|
1391
1391
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
1392
1392
|
var shared = shared$4.exports;
|
|
@@ -1398,10 +1398,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
1398
1398
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1399
1399
|
var nativeExec = RegExp.prototype.exec;
|
|
1400
1400
|
var patchedExec = nativeExec;
|
|
1401
|
-
var charAt$3 = uncurryThis$
|
|
1402
|
-
var indexOf = uncurryThis$
|
|
1403
|
-
var replace$3 = uncurryThis$
|
|
1404
|
-
var stringSlice$
|
|
1401
|
+
var charAt$3 = uncurryThis$a(''.charAt);
|
|
1402
|
+
var indexOf = uncurryThis$a(''.indexOf);
|
|
1403
|
+
var replace$3 = uncurryThis$a(''.replace);
|
|
1404
|
+
var stringSlice$4 = uncurryThis$a(''.slice);
|
|
1405
1405
|
|
|
1406
1406
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1407
1407
|
var re1 = /a/;
|
|
@@ -1422,7 +1422,7 @@ if (PATCH) {
|
|
|
1422
1422
|
patchedExec = function exec(string) {
|
|
1423
1423
|
var re = this;
|
|
1424
1424
|
var state = getInternalState(re);
|
|
1425
|
-
var str = toString$
|
|
1425
|
+
var str = toString$6(string);
|
|
1426
1426
|
var raw = state.raw;
|
|
1427
1427
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1428
1428
|
|
|
@@ -1446,7 +1446,7 @@ if (PATCH) {
|
|
|
1446
1446
|
flags += 'g';
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
|
-
strCopy = stringSlice$
|
|
1449
|
+
strCopy = stringSlice$4(str, re.lastIndex);
|
|
1450
1450
|
// Support anchored sticky behavior.
|
|
1451
1451
|
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
1452
1452
|
source = '(?: ' + source + ')';
|
|
@@ -1467,8 +1467,8 @@ if (PATCH) {
|
|
|
1467
1467
|
|
|
1468
1468
|
if (sticky) {
|
|
1469
1469
|
if (match) {
|
|
1470
|
-
match.input = stringSlice$
|
|
1471
|
-
match[0] = stringSlice$
|
|
1470
|
+
match.input = stringSlice$4(match.input, charsAdded);
|
|
1471
|
+
match[0] = stringSlice$4(match[0], charsAdded);
|
|
1472
1472
|
match.index = re.lastIndex;
|
|
1473
1473
|
re.lastIndex += match[0].length;
|
|
1474
1474
|
} else re.lastIndex = 0;
|
|
@@ -1499,12 +1499,12 @@ if (PATCH) {
|
|
|
1499
1499
|
|
|
1500
1500
|
var regexpExec$3 = patchedExec;
|
|
1501
1501
|
|
|
1502
|
-
var $$
|
|
1502
|
+
var $$5 = _export;
|
|
1503
1503
|
var exec$3 = regexpExec$3;
|
|
1504
1504
|
|
|
1505
1505
|
// `RegExp.prototype.exec` method
|
|
1506
1506
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1507
|
-
$$
|
|
1507
|
+
$$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec$3 }, {
|
|
1508
1508
|
exec: exec$3
|
|
1509
1509
|
});
|
|
1510
1510
|
|
|
@@ -1521,10 +1521,10 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND
|
|
|
1521
1521
|
|
|
1522
1522
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1523
1523
|
|
|
1524
|
-
var uncurryThis$
|
|
1524
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1525
1525
|
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1526
1526
|
var regexpExec$2 = regexpExec$3;
|
|
1527
|
-
var fails$
|
|
1527
|
+
var fails$7 = fails$k;
|
|
1528
1528
|
var wellKnownSymbol$1 = wellKnownSymbol$8;
|
|
1529
1529
|
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
1530
1530
|
|
|
@@ -1534,14 +1534,14 @@ var RegExpPrototype$2 = RegExp.prototype;
|
|
|
1534
1534
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1535
1535
|
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
1536
1536
|
|
|
1537
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
1537
|
+
var DELEGATES_TO_SYMBOL = !fails$7(function () {
|
|
1538
1538
|
// String methods call symbol-named RegEp methods
|
|
1539
1539
|
var O = {};
|
|
1540
1540
|
O[SYMBOL] = function () { return 7; };
|
|
1541
1541
|
return ''[KEY](O) != 7;
|
|
1542
1542
|
});
|
|
1543
1543
|
|
|
1544
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
1544
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
|
|
1545
1545
|
// Symbol-named RegExp methods call .exec
|
|
1546
1546
|
var execCalled = false;
|
|
1547
1547
|
var re = /a/;
|
|
@@ -1570,9 +1570,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1570
1570
|
!DELEGATES_TO_EXEC ||
|
|
1571
1571
|
FORCED
|
|
1572
1572
|
) {
|
|
1573
|
-
var uncurriedNativeRegExpMethod = uncurryThis$
|
|
1573
|
+
var uncurriedNativeRegExpMethod = uncurryThis$9(/./[SYMBOL]);
|
|
1574
1574
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1575
|
-
var uncurriedNativeMethod = uncurryThis$
|
|
1575
|
+
var uncurriedNativeMethod = uncurryThis$9(nativeMethod);
|
|
1576
1576
|
var $exec = regexp.exec;
|
|
1577
1577
|
if ($exec === regexpExec$2 || $exec === RegExpPrototype$2.exec) {
|
|
1578
1578
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
@@ -1593,8 +1593,8 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1593
1593
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
1594
1594
|
};
|
|
1595
1595
|
|
|
1596
|
-
var uncurryThis$
|
|
1597
|
-
var fails$
|
|
1596
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1597
|
+
var fails$6 = fails$k;
|
|
1598
1598
|
var isCallable$3 = isCallable$f;
|
|
1599
1599
|
var classof$2 = classof$5;
|
|
1600
1600
|
var getBuiltIn$1 = getBuiltIn$6;
|
|
@@ -1604,7 +1604,7 @@ var noop = function () { /* empty */ };
|
|
|
1604
1604
|
var empty = [];
|
|
1605
1605
|
var construct = getBuiltIn$1('Reflect', 'construct');
|
|
1606
1606
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1607
|
-
var exec$2 = uncurryThis$
|
|
1607
|
+
var exec$2 = uncurryThis$8(constructorRegExp.exec);
|
|
1608
1608
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1609
1609
|
|
|
1610
1610
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -1638,7 +1638,7 @@ isConstructorLegacy.sham = true;
|
|
|
1638
1638
|
|
|
1639
1639
|
// `IsConstructor` abstract operation
|
|
1640
1640
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1641
|
-
var isConstructor$1 = !construct || fails$
|
|
1641
|
+
var isConstructor$1 = !construct || fails$6(function () {
|
|
1642
1642
|
var called;
|
|
1643
1643
|
return isConstructorModern(isConstructorModern.call)
|
|
1644
1644
|
|| !isConstructorModern(Object)
|
|
@@ -1647,14 +1647,14 @@ var isConstructor$1 = !construct || fails$4(function () {
|
|
|
1647
1647
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1648
1648
|
|
|
1649
1649
|
var isConstructor = isConstructor$1;
|
|
1650
|
-
var tryToString = tryToString$
|
|
1650
|
+
var tryToString$1 = tryToString$3;
|
|
1651
1651
|
|
|
1652
|
-
var $TypeError$
|
|
1652
|
+
var $TypeError$2 = TypeError;
|
|
1653
1653
|
|
|
1654
1654
|
// `Assert: IsConstructor(argument) is true`
|
|
1655
1655
|
var aConstructor$1 = function (argument) {
|
|
1656
1656
|
if (isConstructor(argument)) return argument;
|
|
1657
|
-
throw $TypeError$
|
|
1657
|
+
throw $TypeError$2(tryToString$1(argument) + ' is not a constructor');
|
|
1658
1658
|
};
|
|
1659
1659
|
|
|
1660
1660
|
var anObject$3 = anObject$9;
|
|
@@ -1671,18 +1671,18 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
|
1671
1671
|
return C === undefined || (S = anObject$3(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);
|
|
1672
1672
|
};
|
|
1673
1673
|
|
|
1674
|
-
var uncurryThis$
|
|
1674
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1675
1675
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
1676
|
-
var toString$
|
|
1677
|
-
var requireObjectCoercible$
|
|
1676
|
+
var toString$5 = toString$9;
|
|
1677
|
+
var requireObjectCoercible$3 = requireObjectCoercible$8;
|
|
1678
1678
|
|
|
1679
|
-
var charAt$2 = uncurryThis$
|
|
1680
|
-
var charCodeAt$1 = uncurryThis$
|
|
1681
|
-
var stringSlice$
|
|
1679
|
+
var charAt$2 = uncurryThis$7(''.charAt);
|
|
1680
|
+
var charCodeAt$1 = uncurryThis$7(''.charCodeAt);
|
|
1681
|
+
var stringSlice$3 = uncurryThis$7(''.slice);
|
|
1682
1682
|
|
|
1683
1683
|
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
1684
1684
|
return function ($this, pos) {
|
|
1685
|
-
var S = toString$
|
|
1685
|
+
var S = toString$5(requireObjectCoercible$3($this));
|
|
1686
1686
|
var position = toIntegerOrInfinity(pos);
|
|
1687
1687
|
var size = S.length;
|
|
1688
1688
|
var first, second;
|
|
@@ -1694,7 +1694,7 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
|
1694
1694
|
? charAt$2(S, position)
|
|
1695
1695
|
: first
|
|
1696
1696
|
: CONVERT_TO_STRING
|
|
1697
|
-
? stringSlice$
|
|
1697
|
+
? stringSlice$3(S, position, position + 2)
|
|
1698
1698
|
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
1699
1699
|
};
|
|
1700
1700
|
};
|
|
@@ -1727,14 +1727,14 @@ var createProperty$1 = function (object, key, value) {
|
|
|
1727
1727
|
};
|
|
1728
1728
|
|
|
1729
1729
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
1730
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
1730
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1731
1731
|
var createProperty = createProperty$1;
|
|
1732
1732
|
|
|
1733
1733
|
var $Array = Array;
|
|
1734
1734
|
var max$2 = Math.max;
|
|
1735
1735
|
|
|
1736
1736
|
var arraySliceSimple = function (O, start, end) {
|
|
1737
|
-
var length = lengthOfArrayLike(O);
|
|
1737
|
+
var length = lengthOfArrayLike$1(O);
|
|
1738
1738
|
var k = toAbsoluteIndex(start, length);
|
|
1739
1739
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
1740
1740
|
var result = $Array(max$2(fin - k, 0));
|
|
@@ -1749,7 +1749,7 @@ var isCallable$2 = isCallable$f;
|
|
|
1749
1749
|
var classof$1 = classofRaw$1;
|
|
1750
1750
|
var regexpExec$1 = regexpExec$3;
|
|
1751
1751
|
|
|
1752
|
-
var $TypeError = TypeError;
|
|
1752
|
+
var $TypeError$1 = TypeError;
|
|
1753
1753
|
|
|
1754
1754
|
// `RegExpExec` abstract operation
|
|
1755
1755
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
@@ -1761,38 +1761,38 @@ var regexpExecAbstract = function (R, S) {
|
|
|
1761
1761
|
return result;
|
|
1762
1762
|
}
|
|
1763
1763
|
if (classof$1(R) === 'RegExp') return call$3(regexpExec$1, R, S);
|
|
1764
|
-
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
1764
|
+
throw $TypeError$1('RegExp#exec called on incompatible receiver');
|
|
1765
1765
|
};
|
|
1766
1766
|
|
|
1767
1767
|
var apply$1 = functionApply;
|
|
1768
1768
|
var call$2 = functionCall;
|
|
1769
|
-
var uncurryThis$
|
|
1769
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1770
1770
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
1771
1771
|
var isRegExp = isRegexp;
|
|
1772
1772
|
var anObject$1 = anObject$9;
|
|
1773
|
-
var requireObjectCoercible$
|
|
1773
|
+
var requireObjectCoercible$2 = requireObjectCoercible$8;
|
|
1774
1774
|
var speciesConstructor = speciesConstructor$1;
|
|
1775
1775
|
var advanceStringIndex = advanceStringIndex$1;
|
|
1776
|
-
var toLength = toLength$
|
|
1777
|
-
var toString$
|
|
1776
|
+
var toLength$1 = toLength$4;
|
|
1777
|
+
var toString$4 = toString$9;
|
|
1778
1778
|
var getMethod = getMethod$2;
|
|
1779
|
-
var arraySlice$
|
|
1779
|
+
var arraySlice$3 = arraySliceSimple;
|
|
1780
1780
|
var callRegExpExec = regexpExecAbstract;
|
|
1781
1781
|
var regexpExec = regexpExec$3;
|
|
1782
1782
|
var stickyHelpers = regexpStickyHelpers;
|
|
1783
|
-
var fails$
|
|
1783
|
+
var fails$5 = fails$k;
|
|
1784
1784
|
|
|
1785
1785
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
1786
1786
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
1787
|
-
var min$
|
|
1787
|
+
var min$3 = Math.min;
|
|
1788
1788
|
var $push = [].push;
|
|
1789
|
-
var exec$1 = uncurryThis$
|
|
1790
|
-
var push = uncurryThis$
|
|
1791
|
-
var stringSlice$
|
|
1789
|
+
var exec$1 = uncurryThis$6(/./.exec);
|
|
1790
|
+
var push$1 = uncurryThis$6($push);
|
|
1791
|
+
var stringSlice$2 = uncurryThis$6(''.slice);
|
|
1792
1792
|
|
|
1793
1793
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
1794
1794
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
1795
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$
|
|
1795
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$5(function () {
|
|
1796
1796
|
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1797
1797
|
var re = /(?:)/;
|
|
1798
1798
|
var originalExec = re.exec;
|
|
@@ -1816,7 +1816,7 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
1816
1816
|
) {
|
|
1817
1817
|
// based on es5-shim implementation, need to rework it
|
|
1818
1818
|
internalSplit = function (separator, limit) {
|
|
1819
|
-
var string = toString$
|
|
1819
|
+
var string = toString$4(requireObjectCoercible$2(this));
|
|
1820
1820
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
1821
1821
|
if (lim === 0) return [];
|
|
1822
1822
|
if (separator === undefined) return [string];
|
|
@@ -1836,8 +1836,8 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
1836
1836
|
while (match = call$2(regexpExec, separatorCopy, string)) {
|
|
1837
1837
|
lastIndex = separatorCopy.lastIndex;
|
|
1838
1838
|
if (lastIndex > lastLastIndex) {
|
|
1839
|
-
push(output, stringSlice$
|
|
1840
|
-
if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice$
|
|
1839
|
+
push$1(output, stringSlice$2(string, lastLastIndex, match.index));
|
|
1840
|
+
if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice$3(match, 1));
|
|
1841
1841
|
lastLength = match[0].length;
|
|
1842
1842
|
lastLastIndex = lastIndex;
|
|
1843
1843
|
if (output.length >= lim) break;
|
|
@@ -1845,9 +1845,9 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
1845
1845
|
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
1846
1846
|
}
|
|
1847
1847
|
if (lastLastIndex === string.length) {
|
|
1848
|
-
if (lastLength || !exec$1(separatorCopy, '')) push(output, '');
|
|
1849
|
-
} else push(output, stringSlice$
|
|
1850
|
-
return output.length > lim ? arraySlice$
|
|
1848
|
+
if (lastLength || !exec$1(separatorCopy, '')) push$1(output, '');
|
|
1849
|
+
} else push$1(output, stringSlice$2(string, lastLastIndex));
|
|
1850
|
+
return output.length > lim ? arraySlice$3(output, 0, lim) : output;
|
|
1851
1851
|
};
|
|
1852
1852
|
// Chakra, V8
|
|
1853
1853
|
} else if ('0'.split(undefined, 0).length) {
|
|
@@ -1860,11 +1860,11 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
1860
1860
|
// `String.prototype.split` method
|
|
1861
1861
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1862
1862
|
function split(separator, limit) {
|
|
1863
|
-
var O = requireObjectCoercible$
|
|
1863
|
+
var O = requireObjectCoercible$2(this);
|
|
1864
1864
|
var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
|
|
1865
1865
|
return splitter
|
|
1866
1866
|
? call$2(splitter, separator, O, limit)
|
|
1867
|
-
: call$2(internalSplit, toString$
|
|
1867
|
+
: call$2(internalSplit, toString$4(O), separator, limit);
|
|
1868
1868
|
},
|
|
1869
1869
|
// `RegExp.prototype[@@split]` method
|
|
1870
1870
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1873,7 +1873,7 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
1873
1873
|
// the 'y' flag.
|
|
1874
1874
|
function (string, limit) {
|
|
1875
1875
|
var rx = anObject$1(this);
|
|
1876
|
-
var S = toString$
|
|
1876
|
+
var S = toString$4(string);
|
|
1877
1877
|
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
1878
1878
|
|
|
1879
1879
|
if (res.done) return res.value;
|
|
@@ -1897,24 +1897,24 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
|
|
|
1897
1897
|
var A = [];
|
|
1898
1898
|
while (q < S.length) {
|
|
1899
1899
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
1900
|
-
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$
|
|
1900
|
+
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
|
|
1901
1901
|
var e;
|
|
1902
1902
|
if (
|
|
1903
1903
|
z === null ||
|
|
1904
|
-
(e = min$
|
|
1904
|
+
(e = min$3(toLength$1(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
1905
1905
|
) {
|
|
1906
1906
|
q = advanceStringIndex(S, q, unicodeMatching);
|
|
1907
1907
|
} else {
|
|
1908
|
-
push(A, stringSlice$
|
|
1908
|
+
push$1(A, stringSlice$2(S, p, q));
|
|
1909
1909
|
if (A.length === lim) return A;
|
|
1910
1910
|
for (var i = 1; i <= z.length - 1; i++) {
|
|
1911
|
-
push(A, z[i]);
|
|
1911
|
+
push$1(A, z[i]);
|
|
1912
1912
|
if (A.length === lim) return A;
|
|
1913
1913
|
}
|
|
1914
1914
|
q = p = e;
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
|
-
push(A, stringSlice$
|
|
1917
|
+
push$1(A, stringSlice$2(S, p));
|
|
1918
1918
|
return A;
|
|
1919
1919
|
}
|
|
1920
1920
|
];
|
|
@@ -3388,15 +3388,15 @@ var regexpGetFlags = function (R) {
|
|
|
3388
3388
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
3389
3389
|
var defineBuiltIn = defineBuiltIn$3;
|
|
3390
3390
|
var anObject = anObject$9;
|
|
3391
|
-
var $toString = toString$
|
|
3392
|
-
var fails$
|
|
3391
|
+
var $toString = toString$9;
|
|
3392
|
+
var fails$4 = fails$k;
|
|
3393
3393
|
var getRegExpFlags = regexpGetFlags;
|
|
3394
3394
|
|
|
3395
3395
|
var TO_STRING = 'toString';
|
|
3396
3396
|
var RegExpPrototype = RegExp.prototype;
|
|
3397
3397
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
3398
3398
|
|
|
3399
|
-
var NOT_GENERIC = fails$
|
|
3399
|
+
var NOT_GENERIC = fails$4(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
3400
3400
|
// FF44- RegExp#toString has a wrong name
|
|
3401
3401
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING;
|
|
3402
3402
|
|
|
@@ -5370,12 +5370,12 @@ var BadgeGroup = function BadgeGroup(_a) {
|
|
|
5370
5370
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
5371
5371
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
5372
5372
|
|
|
5373
|
-
var uncurryThis$
|
|
5374
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
5375
|
-
var toString$
|
|
5373
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
5374
|
+
var requireObjectCoercible$1 = requireObjectCoercible$8;
|
|
5375
|
+
var toString$3 = toString$9;
|
|
5376
5376
|
var whitespaces$1 = whitespaces$2;
|
|
5377
5377
|
|
|
5378
|
-
var replace$2 = uncurryThis$
|
|
5378
|
+
var replace$2 = uncurryThis$5(''.replace);
|
|
5379
5379
|
var whitespace = '[' + whitespaces$1 + ']';
|
|
5380
5380
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
5381
5381
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -5383,7 +5383,7 @@ var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
|
5383
5383
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
5384
5384
|
var createMethod = function (TYPE) {
|
|
5385
5385
|
return function ($this) {
|
|
5386
|
-
var string = toString$
|
|
5386
|
+
var string = toString$3(requireObjectCoercible$1($this));
|
|
5387
5387
|
if (TYPE & 1) string = replace$2(string, ltrim, '');
|
|
5388
5388
|
if (TYPE & 2) string = replace$2(string, rtrim, '');
|
|
5389
5389
|
return string;
|
|
@@ -5403,7 +5403,7 @@ var stringTrim = {
|
|
|
5403
5403
|
};
|
|
5404
5404
|
|
|
5405
5405
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
5406
|
-
var fails$
|
|
5406
|
+
var fails$3 = fails$k;
|
|
5407
5407
|
var whitespaces = whitespaces$2;
|
|
5408
5408
|
|
|
5409
5409
|
var non = '\u200B\u0085\u180E';
|
|
@@ -5411,20 +5411,20 @@ var non = '\u200B\u0085\u180E';
|
|
|
5411
5411
|
// check that a method works with the correct list
|
|
5412
5412
|
// of whitespaces and has a correct name
|
|
5413
5413
|
var stringTrimForced = function (METHOD_NAME) {
|
|
5414
|
-
return fails$
|
|
5414
|
+
return fails$3(function () {
|
|
5415
5415
|
return !!whitespaces[METHOD_NAME]()
|
|
5416
5416
|
|| non[METHOD_NAME]() !== non
|
|
5417
5417
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
5418
5418
|
});
|
|
5419
5419
|
};
|
|
5420
5420
|
|
|
5421
|
-
var $$
|
|
5421
|
+
var $$4 = _export;
|
|
5422
5422
|
var $trim = stringTrim.trim;
|
|
5423
5423
|
var forcedStringTrimMethod = stringTrimForced;
|
|
5424
5424
|
|
|
5425
5425
|
// `String.prototype.trim` method
|
|
5426
5426
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
5427
|
-
$$
|
|
5427
|
+
$$4({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
5428
5428
|
trim: function trim() {
|
|
5429
5429
|
return $trim(this);
|
|
5430
5430
|
}
|
|
@@ -5642,14 +5642,14 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5642
5642
|
}));
|
|
5643
5643
|
};
|
|
5644
5644
|
|
|
5645
|
-
var $$
|
|
5645
|
+
var $$3 = _export;
|
|
5646
5646
|
var DESCRIPTORS = descriptors;
|
|
5647
5647
|
var global$1 = global$e;
|
|
5648
|
-
var uncurryThis$
|
|
5648
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
5649
5649
|
var hasOwn = hasOwnProperty_1;
|
|
5650
5650
|
var isCallable$1 = isCallable$f;
|
|
5651
5651
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
5652
|
-
var toString = toString$
|
|
5652
|
+
var toString$2 = toString$9;
|
|
5653
5653
|
var defineProperty = objectDefineProperty.f;
|
|
5654
5654
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
5655
5655
|
|
|
@@ -5663,7 +5663,7 @@ if (DESCRIPTORS && isCallable$1(NativeSymbol) && (!('description' in SymbolProto
|
|
|
5663
5663
|
var EmptyStringDescriptionStore = {};
|
|
5664
5664
|
// wrap Symbol constructor for correct work with undefined description
|
|
5665
5665
|
var SymbolWrapper = function Symbol() {
|
|
5666
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0]);
|
|
5666
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$2(arguments[0]);
|
|
5667
5667
|
var result = isPrototypeOf(SymbolPrototype, this)
|
|
5668
5668
|
? new NativeSymbol(description)
|
|
5669
5669
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
@@ -5677,11 +5677,11 @@ if (DESCRIPTORS && isCallable$1(NativeSymbol) && (!('description' in SymbolProto
|
|
|
5677
5677
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
5678
5678
|
|
|
5679
5679
|
var NATIVE_SYMBOL$1 = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
5680
|
-
var symbolToString = uncurryThis$
|
|
5681
|
-
var symbolValueOf = uncurryThis$
|
|
5680
|
+
var symbolToString = uncurryThis$4(SymbolPrototype.toString);
|
|
5681
|
+
var symbolValueOf = uncurryThis$4(SymbolPrototype.valueOf);
|
|
5682
5682
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
5683
|
-
var replace$1 = uncurryThis$
|
|
5684
|
-
var stringSlice = uncurryThis$
|
|
5683
|
+
var replace$1 = uncurryThis$4(''.replace);
|
|
5684
|
+
var stringSlice$1 = uncurryThis$4(''.slice);
|
|
5685
5685
|
|
|
5686
5686
|
defineProperty(SymbolPrototype, 'description', {
|
|
5687
5687
|
configurable: true,
|
|
@@ -5689,12 +5689,12 @@ if (DESCRIPTORS && isCallable$1(NativeSymbol) && (!('description' in SymbolProto
|
|
|
5689
5689
|
var symbol = symbolValueOf(this);
|
|
5690
5690
|
var string = symbolToString(symbol);
|
|
5691
5691
|
if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
|
|
5692
|
-
var desc = NATIVE_SYMBOL$1 ? stringSlice(string, 7, -1) : replace$1(string, regexp, '$1');
|
|
5692
|
+
var desc = NATIVE_SYMBOL$1 ? stringSlice$1(string, 7, -1) : replace$1(string, regexp, '$1');
|
|
5693
5693
|
return desc === '' ? undefined : desc;
|
|
5694
5694
|
}
|
|
5695
5695
|
});
|
|
5696
5696
|
|
|
5697
|
-
$$
|
|
5697
|
+
$$3({ global: true, constructor: true, forced: true }, {
|
|
5698
5698
|
Symbol: SymbolWrapper
|
|
5699
5699
|
});
|
|
5700
5700
|
}
|
|
@@ -5789,35 +5789,35 @@ var isArray$1 = Array.isArray || function isArray(argument) {
|
|
|
5789
5789
|
return classof(argument) == 'Array';
|
|
5790
5790
|
};
|
|
5791
5791
|
|
|
5792
|
-
var uncurryThis$
|
|
5792
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
5793
5793
|
|
|
5794
|
-
var arraySlice$
|
|
5794
|
+
var arraySlice$2 = uncurryThis$3([].slice);
|
|
5795
5795
|
|
|
5796
|
-
var
|
|
5796
|
+
var $$2 = _export;
|
|
5797
5797
|
var getBuiltIn = getBuiltIn$6;
|
|
5798
5798
|
var apply = functionApply;
|
|
5799
5799
|
var call = functionCall;
|
|
5800
|
-
var uncurryThis = functionUncurryThis;
|
|
5801
|
-
var fails = fails$
|
|
5800
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
5801
|
+
var fails$2 = fails$k;
|
|
5802
5802
|
var isArray = isArray$1;
|
|
5803
5803
|
var isCallable = isCallable$f;
|
|
5804
5804
|
var isObject = isObject$7;
|
|
5805
5805
|
var isSymbol = isSymbol$3;
|
|
5806
|
-
var arraySlice = arraySlice$
|
|
5806
|
+
var arraySlice$1 = arraySlice$2;
|
|
5807
5807
|
var NATIVE_SYMBOL = nativeSymbol;
|
|
5808
5808
|
|
|
5809
5809
|
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
5810
|
-
var exec = uncurryThis(/./.exec);
|
|
5811
|
-
var charAt = uncurryThis(''.charAt);
|
|
5812
|
-
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
5813
|
-
var replace = uncurryThis(''.replace);
|
|
5814
|
-
var numberToString = uncurryThis(1.0.toString);
|
|
5810
|
+
var exec = uncurryThis$2(/./.exec);
|
|
5811
|
+
var charAt = uncurryThis$2(''.charAt);
|
|
5812
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
5813
|
+
var replace = uncurryThis$2(''.replace);
|
|
5814
|
+
var numberToString = uncurryThis$2(1.0.toString);
|
|
5815
5815
|
|
|
5816
5816
|
var tester = /[\uD800-\uDFFF]/g;
|
|
5817
5817
|
var low = /^[\uD800-\uDBFF]$/;
|
|
5818
5818
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
5819
5819
|
|
|
5820
|
-
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
|
|
5820
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$2(function () {
|
|
5821
5821
|
var symbol = getBuiltIn('Symbol')();
|
|
5822
5822
|
// MS Edge converts symbol values to JSON as {}
|
|
5823
5823
|
return $stringify([symbol]) != '[null]'
|
|
@@ -5828,13 +5828,13 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
|
|
|
5828
5828
|
});
|
|
5829
5829
|
|
|
5830
5830
|
// https://github.com/tc39/proposal-well-formed-stringify
|
|
5831
|
-
var ILL_FORMED_UNICODE = fails(function () {
|
|
5831
|
+
var ILL_FORMED_UNICODE = fails$2(function () {
|
|
5832
5832
|
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
5833
5833
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
5834
5834
|
});
|
|
5835
5835
|
|
|
5836
5836
|
var stringifyWithSymbolsFix = function (it, replacer) {
|
|
5837
|
-
var args = arraySlice(arguments);
|
|
5837
|
+
var args = arraySlice$1(arguments);
|
|
5838
5838
|
var $replacer = replacer;
|
|
5839
5839
|
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
|
5840
5840
|
if (!isArray(replacer)) replacer = function (key, value) {
|
|
@@ -5856,10 +5856,10 @@ var fixIllFormed = function (match, offset, string) {
|
|
|
5856
5856
|
if ($stringify) {
|
|
5857
5857
|
// `JSON.stringify` method
|
|
5858
5858
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
5859
|
-
|
|
5859
|
+
$$2({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
5860
5860
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5861
5861
|
stringify: function stringify(it, replacer, space) {
|
|
5862
|
-
var args = arraySlice(arguments);
|
|
5862
|
+
var args = arraySlice$1(arguments);
|
|
5863
5863
|
var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
|
5864
5864
|
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result;
|
|
5865
5865
|
}
|
|
@@ -14913,7 +14913,7 @@ function _typeof$5(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
|
|
|
14913
14913
|
* //=> Wed Feb 11 1987 00:00:00
|
|
14914
14914
|
*/
|
|
14915
14915
|
|
|
14916
|
-
function min(dirtyDatesArray) {
|
|
14916
|
+
function min$1(dirtyDatesArray) {
|
|
14917
14917
|
requiredArgs(1, arguments);
|
|
14918
14918
|
var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method
|
|
14919
14919
|
|
|
@@ -14937,12 +14937,12 @@ function min(dirtyDatesArray) {
|
|
|
14937
14937
|
return result || new Date(NaN);
|
|
14938
14938
|
}
|
|
14939
14939
|
|
|
14940
|
-
var min$
|
|
14940
|
+
var min$2 = /*#__PURE__*/Object.freeze({
|
|
14941
14941
|
__proto__: null,
|
|
14942
|
-
'default': min
|
|
14942
|
+
'default': min$1
|
|
14943
14943
|
});
|
|
14944
14944
|
|
|
14945
|
-
var require$$7 = /*@__PURE__*/getAugmentedNamespace(min$
|
|
14945
|
+
var require$$7 = /*@__PURE__*/getAugmentedNamespace(min$2);
|
|
14946
14946
|
|
|
14947
14947
|
// for accurate equality comparisons of UTC timestamps that end up
|
|
14948
14948
|
// having the same representation in local time, e.g. one hour before
|
|
@@ -17312,6 +17312,226 @@ var DatePicker = function DatePicker(_a) {
|
|
|
17312
17312
|
}));
|
|
17313
17313
|
};
|
|
17314
17314
|
|
|
17315
|
+
var tryToString = tryToString$3;
|
|
17316
|
+
|
|
17317
|
+
var $TypeError = TypeError;
|
|
17318
|
+
|
|
17319
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
17320
|
+
if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
17321
|
+
};
|
|
17322
|
+
|
|
17323
|
+
var arraySlice = arraySliceSimple;
|
|
17324
|
+
|
|
17325
|
+
var floor = Math.floor;
|
|
17326
|
+
|
|
17327
|
+
var mergeSort = function (array, comparefn) {
|
|
17328
|
+
var length = array.length;
|
|
17329
|
+
var middle = floor(length / 2);
|
|
17330
|
+
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
17331
|
+
array,
|
|
17332
|
+
mergeSort(arraySlice(array, 0, middle), comparefn),
|
|
17333
|
+
mergeSort(arraySlice(array, middle), comparefn),
|
|
17334
|
+
comparefn
|
|
17335
|
+
);
|
|
17336
|
+
};
|
|
17337
|
+
|
|
17338
|
+
var insertionSort = function (array, comparefn) {
|
|
17339
|
+
var length = array.length;
|
|
17340
|
+
var i = 1;
|
|
17341
|
+
var element, j;
|
|
17342
|
+
|
|
17343
|
+
while (i < length) {
|
|
17344
|
+
j = i;
|
|
17345
|
+
element = array[i];
|
|
17346
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
|
17347
|
+
array[j] = array[--j];
|
|
17348
|
+
}
|
|
17349
|
+
if (j !== i++) array[j] = element;
|
|
17350
|
+
} return array;
|
|
17351
|
+
};
|
|
17352
|
+
|
|
17353
|
+
var merge = function (array, left, right, comparefn) {
|
|
17354
|
+
var llength = left.length;
|
|
17355
|
+
var rlength = right.length;
|
|
17356
|
+
var lindex = 0;
|
|
17357
|
+
var rindex = 0;
|
|
17358
|
+
|
|
17359
|
+
while (lindex < llength || rindex < rlength) {
|
|
17360
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
17361
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
17362
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
17363
|
+
} return array;
|
|
17364
|
+
};
|
|
17365
|
+
|
|
17366
|
+
var arraySort = mergeSort;
|
|
17367
|
+
|
|
17368
|
+
var fails$1 = fails$k;
|
|
17369
|
+
|
|
17370
|
+
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
17371
|
+
var method = [][METHOD_NAME];
|
|
17372
|
+
return !!method && fails$1(function () {
|
|
17373
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
17374
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
17375
|
+
});
|
|
17376
|
+
};
|
|
17377
|
+
|
|
17378
|
+
var userAgent$1 = engineUserAgent;
|
|
17379
|
+
|
|
17380
|
+
var firefox = userAgent$1.match(/firefox\/(\d+)/i);
|
|
17381
|
+
|
|
17382
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
|
17383
|
+
|
|
17384
|
+
var UA = engineUserAgent;
|
|
17385
|
+
|
|
17386
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
|
|
17387
|
+
|
|
17388
|
+
var userAgent = engineUserAgent;
|
|
17389
|
+
|
|
17390
|
+
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
17391
|
+
|
|
17392
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
17393
|
+
|
|
17394
|
+
var $$1 = _export;
|
|
17395
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
17396
|
+
var aCallable = aCallable$2;
|
|
17397
|
+
var toObject = toObject$2;
|
|
17398
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
17399
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
17400
|
+
var toString$1 = toString$9;
|
|
17401
|
+
var fails = fails$k;
|
|
17402
|
+
var internalSort = arraySort;
|
|
17403
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
17404
|
+
var FF = engineFfVersion;
|
|
17405
|
+
var IE_OR_EDGE = engineIsIeOrEdge;
|
|
17406
|
+
var V8 = engineV8Version;
|
|
17407
|
+
var WEBKIT = engineWebkitVersion;
|
|
17408
|
+
|
|
17409
|
+
var test = [];
|
|
17410
|
+
var un$Sort = uncurryThis$1(test.sort);
|
|
17411
|
+
var push = uncurryThis$1(test.push);
|
|
17412
|
+
|
|
17413
|
+
// IE8-
|
|
17414
|
+
var FAILS_ON_UNDEFINED = fails(function () {
|
|
17415
|
+
test.sort(undefined);
|
|
17416
|
+
});
|
|
17417
|
+
// V8 bug
|
|
17418
|
+
var FAILS_ON_NULL = fails(function () {
|
|
17419
|
+
test.sort(null);
|
|
17420
|
+
});
|
|
17421
|
+
// Old WebKit
|
|
17422
|
+
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
17423
|
+
|
|
17424
|
+
var STABLE_SORT = !fails(function () {
|
|
17425
|
+
// feature detection can be too slow, so check engines versions
|
|
17426
|
+
if (V8) return V8 < 70;
|
|
17427
|
+
if (FF && FF > 3) return;
|
|
17428
|
+
if (IE_OR_EDGE) return true;
|
|
17429
|
+
if (WEBKIT) return WEBKIT < 603;
|
|
17430
|
+
|
|
17431
|
+
var result = '';
|
|
17432
|
+
var code, chr, value, index;
|
|
17433
|
+
|
|
17434
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
17435
|
+
for (code = 65; code < 76; code++) {
|
|
17436
|
+
chr = String.fromCharCode(code);
|
|
17437
|
+
|
|
17438
|
+
switch (code) {
|
|
17439
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
|
17440
|
+
case 68: case 71: value = 4; break;
|
|
17441
|
+
default: value = 2;
|
|
17442
|
+
}
|
|
17443
|
+
|
|
17444
|
+
for (index = 0; index < 47; index++) {
|
|
17445
|
+
test.push({ k: chr + index, v: value });
|
|
17446
|
+
}
|
|
17447
|
+
}
|
|
17448
|
+
|
|
17449
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
|
17450
|
+
|
|
17451
|
+
for (index = 0; index < test.length; index++) {
|
|
17452
|
+
chr = test[index].k.charAt(0);
|
|
17453
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
17454
|
+
}
|
|
17455
|
+
|
|
17456
|
+
return result !== 'DGBEFHACIJK';
|
|
17457
|
+
});
|
|
17458
|
+
|
|
17459
|
+
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
17460
|
+
|
|
17461
|
+
var getSortCompare = function (comparefn) {
|
|
17462
|
+
return function (x, y) {
|
|
17463
|
+
if (y === undefined) return -1;
|
|
17464
|
+
if (x === undefined) return 1;
|
|
17465
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
17466
|
+
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
17467
|
+
};
|
|
17468
|
+
};
|
|
17469
|
+
|
|
17470
|
+
// `Array.prototype.sort` method
|
|
17471
|
+
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
17472
|
+
$$1({ target: 'Array', proto: true, forced: FORCED }, {
|
|
17473
|
+
sort: function sort(comparefn) {
|
|
17474
|
+
if (comparefn !== undefined) aCallable(comparefn);
|
|
17475
|
+
|
|
17476
|
+
var array = toObject(this);
|
|
17477
|
+
|
|
17478
|
+
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
|
17479
|
+
|
|
17480
|
+
var items = [];
|
|
17481
|
+
var arrayLength = lengthOfArrayLike(array);
|
|
17482
|
+
var itemsLength, index;
|
|
17483
|
+
|
|
17484
|
+
for (index = 0; index < arrayLength; index++) {
|
|
17485
|
+
if (index in array) push(items, array[index]);
|
|
17486
|
+
}
|
|
17487
|
+
|
|
17488
|
+
internalSort(items, getSortCompare(comparefn));
|
|
17489
|
+
|
|
17490
|
+
itemsLength = items.length;
|
|
17491
|
+
index = 0;
|
|
17492
|
+
|
|
17493
|
+
while (index < itemsLength) array[index] = items[index++];
|
|
17494
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
17495
|
+
|
|
17496
|
+
return array;
|
|
17497
|
+
}
|
|
17498
|
+
});
|
|
17499
|
+
|
|
17500
|
+
var $ = _export;
|
|
17501
|
+
var uncurryThis = functionUncurryThis;
|
|
17502
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
17503
|
+
var toLength = toLength$4;
|
|
17504
|
+
var toString = toString$9;
|
|
17505
|
+
var notARegExp = notARegexp;
|
|
17506
|
+
var requireObjectCoercible = requireObjectCoercible$8;
|
|
17507
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
17508
|
+
|
|
17509
|
+
// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
|
|
17510
|
+
var un$StartsWith = uncurryThis(''.startsWith);
|
|
17511
|
+
var stringSlice = uncurryThis(''.slice);
|
|
17512
|
+
var min = Math.min;
|
|
17513
|
+
|
|
17514
|
+
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
17515
|
+
// https://github.com/zloirock/core-js/pull/702
|
|
17516
|
+
var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
17517
|
+
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
|
|
17518
|
+
return descriptor && !descriptor.writable;
|
|
17519
|
+
}();
|
|
17520
|
+
|
|
17521
|
+
// `String.prototype.startsWith` method
|
|
17522
|
+
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
17523
|
+
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
17524
|
+
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
17525
|
+
var that = toString(requireObjectCoercible(this));
|
|
17526
|
+
notARegExp(searchString);
|
|
17527
|
+
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
17528
|
+
var search = toString(searchString);
|
|
17529
|
+
return un$StartsWith
|
|
17530
|
+
? un$StartsWith(that, search, index)
|
|
17531
|
+
: stringSlice(that, index, index + search.length) === search;
|
|
17532
|
+
}
|
|
17533
|
+
});
|
|
17534
|
+
|
|
17315
17535
|
var DoubleInput = function DoubleInput(_a) {
|
|
17316
17536
|
var label = _a.label,
|
|
17317
17537
|
labelColor = _a.labelColor,
|
|
@@ -17418,14 +17638,27 @@ var DoubleInput = function DoubleInput(_a) {
|
|
|
17418
17638
|
|
|
17419
17639
|
var handleValueChange = function handleValueChange(e) {
|
|
17420
17640
|
setValueChanged(true);
|
|
17421
|
-
var sug = dropdownArr || []
|
|
17641
|
+
var sug = dropdownArr || [],
|
|
17642
|
+
sortedSug = [];
|
|
17422
17643
|
setShowDropdown(true);
|
|
17423
17644
|
|
|
17424
17645
|
if (options && options.length > 0) {
|
|
17425
17646
|
sug = options === null || options === void 0 ? void 0 : options.filter(function (options) {
|
|
17426
17647
|
return options.label.toLowerCase().includes(e.target.value.toLowerCase());
|
|
17427
17648
|
});
|
|
17428
|
-
|
|
17649
|
+
sortedSug = sug.sort(function (a, b) {
|
|
17650
|
+
var aStartsWithTerm = a.label.toLowerCase().startsWith(e.target.value.toLowerCase());
|
|
17651
|
+
var bStartsWithTerm = b.label.toLowerCase().startsWith(e.target.value.toLowerCase());
|
|
17652
|
+
|
|
17653
|
+
if (aStartsWithTerm && !bStartsWithTerm) {
|
|
17654
|
+
return -1;
|
|
17655
|
+
} else if (!aStartsWithTerm && bStartsWithTerm) {
|
|
17656
|
+
return 1;
|
|
17657
|
+
} else {
|
|
17658
|
+
return a.label.localeCompare(b.label);
|
|
17659
|
+
}
|
|
17660
|
+
});
|
|
17661
|
+
setDropdownArr(sortedSug);
|
|
17429
17662
|
}
|
|
17430
17663
|
|
|
17431
17664
|
handleValChange && handleValChange(e.target.value);
|
|
@@ -17434,14 +17667,27 @@ var DoubleInput = function DoubleInput(_a) {
|
|
|
17434
17667
|
|
|
17435
17668
|
var handleSuffixValueChange = function handleSuffixValueChange(e) {
|
|
17436
17669
|
setSuffixValueChanged(true);
|
|
17437
|
-
var sug = suffixDropdownArr || []
|
|
17670
|
+
var sug = suffixDropdownArr || [],
|
|
17671
|
+
sortedSug = [];
|
|
17438
17672
|
setShowSuffixDropdown(true);
|
|
17439
17673
|
|
|
17440
17674
|
if (suffixOptions && suffixOptions.length > 0) {
|
|
17441
17675
|
sug = suffixOptions === null || suffixOptions === void 0 ? void 0 : suffixOptions.filter(function (suffixOption) {
|
|
17442
17676
|
return suffixOption.label.toLowerCase().includes(e.target.value.toLowerCase());
|
|
17443
17677
|
});
|
|
17444
|
-
|
|
17678
|
+
sortedSug = sug.sort(function (a, b) {
|
|
17679
|
+
var aStartsWithTerm = a.label.toLowerCase().startsWith(e.target.value.toLowerCase());
|
|
17680
|
+
var bStartsWithTerm = b.label.toLowerCase().startsWith(e.target.value.toLowerCase());
|
|
17681
|
+
|
|
17682
|
+
if (aStartsWithTerm && !bStartsWithTerm) {
|
|
17683
|
+
return -1;
|
|
17684
|
+
} else if (!aStartsWithTerm && bStartsWithTerm) {
|
|
17685
|
+
return 1;
|
|
17686
|
+
} else {
|
|
17687
|
+
return a.label.localeCompare(b.label);
|
|
17688
|
+
}
|
|
17689
|
+
});
|
|
17690
|
+
setSuffixDropdownArr(sortedSug);
|
|
17445
17691
|
}
|
|
17446
17692
|
|
|
17447
17693
|
handleSuffixValChange && handleSuffixValChange(e.target.value);
|
|
@@ -17779,7 +18025,8 @@ var InputTag = function InputTag(_a) {
|
|
|
17779
18025
|
|
|
17780
18026
|
|
|
17781
18027
|
var handleValueChange = function handleValueChange(e) {
|
|
17782
|
-
var sug = []
|
|
18028
|
+
var sug = [],
|
|
18029
|
+
sortedSug = []; // Show the dropdown list
|
|
17783
18030
|
|
|
17784
18031
|
setShowDropdown(true);
|
|
17785
18032
|
|
|
@@ -17787,15 +18034,27 @@ var InputTag = function InputTag(_a) {
|
|
|
17787
18034
|
// Filter options that contain the input value
|
|
17788
18035
|
sug = options === null || options === void 0 ? void 0 : options.filter(function (options) {
|
|
17789
18036
|
return options.label.toLowerCase().includes(e.target.value.toLowerCase());
|
|
18037
|
+
});
|
|
18038
|
+
sortedSug = sug.sort(function (a, b) {
|
|
18039
|
+
var aStartsWithTerm = a.label.toLowerCase().startsWith(e.target.value.toLowerCase());
|
|
18040
|
+
var bStartsWithTerm = b.label.toLowerCase().startsWith(e.target.value.toLowerCase());
|
|
18041
|
+
|
|
18042
|
+
if (aStartsWithTerm && !bStartsWithTerm) {
|
|
18043
|
+
return -1;
|
|
18044
|
+
} else if (!aStartsWithTerm && bStartsWithTerm) {
|
|
18045
|
+
return 1;
|
|
18046
|
+
} else {
|
|
18047
|
+
return a.label.localeCompare(b.label);
|
|
18048
|
+
}
|
|
17790
18049
|
}); // Filter out items that already exist in tags, unless allowDuplicates flag is true
|
|
17791
18050
|
|
|
17792
18051
|
if (!allowDuplicates) {
|
|
17793
|
-
|
|
18052
|
+
sortedSug = sortedSug.filter(function (item) {
|
|
17794
18053
|
return !tags.includes(item.value);
|
|
17795
18054
|
});
|
|
17796
18055
|
}
|
|
17797
18056
|
|
|
17798
|
-
setDropdownArr(
|
|
18057
|
+
setDropdownArr(sortedSug);
|
|
17799
18058
|
} // Update the input value
|
|
17800
18059
|
|
|
17801
18060
|
|
|
@@ -17988,21 +18247,23 @@ var InputTag = function InputTag(_a) {
|
|
|
17988
18247
|
|
|
17989
18248
|
setFocusIndex(focusI);
|
|
17990
18249
|
}
|
|
17991
|
-
} // on key left
|
|
18250
|
+
} // on key left or right key
|
|
17992
18251
|
|
|
17993
18252
|
|
|
17994
|
-
if (e.keyCode === 37) {
|
|
18253
|
+
if (e.keyCode === 37 || e.keyCode === 39) {
|
|
17995
18254
|
if (focusIndex >= 0) {
|
|
17996
|
-
setFocusIndex(focusIndex);
|
|
18255
|
+
// setFocusIndex(focusIndex);
|
|
17997
18256
|
setTagInputValue(dropdownArr[focusIndex].value);
|
|
17998
18257
|
}
|
|
17999
|
-
} // on key
|
|
18258
|
+
} // on key enter
|
|
18000
18259
|
|
|
18001
18260
|
|
|
18002
|
-
if (e.keyCode ===
|
|
18003
|
-
if (focusIndex
|
|
18004
|
-
|
|
18005
|
-
|
|
18261
|
+
if (e.keyCode === 13) {
|
|
18262
|
+
if (focusIndex >= 0) {
|
|
18263
|
+
setTags(__spreadArray(__spreadArray([], tags, true), [dropdownArr[focusIndex].value.trim()], false));
|
|
18264
|
+
setValue(tags.filter(Boolean).join(", "));
|
|
18265
|
+
setTagInputValue("");
|
|
18266
|
+
setFocusIndex(-1);
|
|
18006
18267
|
}
|
|
18007
18268
|
}
|
|
18008
18269
|
};
|