@opengeoweb/shared 9.13.0 → 9.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +1041 -630
- package/package.json +3 -2
- package/src/lib/components/SwitchButton/SwitchButton.d.ts +5 -1
- package/src/lib/components/TooltipSelect/TooltipSelect.d.ts +6 -4
- package/src/lib/hooks/index.d.ts +1 -0
- package/src/lib/hooks/useDebounce/useDebounce.d.ts +1 -0
- package/src/lib/hooks/useDebounce/useDebounce.spec.d.ts +1 -0
- package/src/lib/utils/dateUtils/dateUtils.d.ts +40 -2
- package/src/lib/utils/index.d.ts +1 -0
- package/src/lib/utils/translationUtils/index.d.ts +1 -0
- package/src/lib/utils/translationUtils/translationUtils.d.ts +7 -0
- package/src/lib/utils/translationUtils/translationUtils.spec.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -7,9 +7,10 @@ import Draggable from 'react-draggable';
|
|
|
7
7
|
import { Resizable } from 're-resizable';
|
|
8
8
|
import { styled } from '@mui/material/styles';
|
|
9
9
|
import { useStore } from 'react-redux';
|
|
10
|
-
import { parseISO, parse, format, isEqual, add as add$1, sub as sub$1, differenceInYears as differenceInYears$1, differenceInMonths as differenceInMonths$1, differenceInDays as differenceInDays$1, differenceInMinutes as differenceInMinutes$1, differenceInHours as differenceInHours$1, differenceInSeconds as differenceInSeconds$1, isBefore as isBefore$1, isAfter as isAfter$1, isValid as isValid$1, getUnixTime, fromUnixTime, set as set$3, startOfDay, isWithinInterval } from 'date-fns';
|
|
10
|
+
import { parseISO, parse, format, isEqual, add as add$1, sub as sub$1, differenceInYears as differenceInYears$1, differenceInMonths as differenceInMonths$1, differenceInDays as differenceInDays$1, differenceInMinutes as differenceInMinutes$1, differenceInHours as differenceInHours$1, differenceInSeconds as differenceInSeconds$1, isBefore as isBefore$1, isAfter as isAfter$1, isValid as isValid$1, getUnixTime, fromUnixTime, set as set$3, getHours as getHours$1, startOfDay, isWithinInterval, getDay, getMonth, getYear, getWeek } from 'date-fns';
|
|
11
11
|
import configureStore from 'redux-mock-store';
|
|
12
12
|
import { configureStore as configureStore$1 } from '@reduxjs/toolkit';
|
|
13
|
+
import i18next from 'i18next';
|
|
13
14
|
|
|
14
15
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
15
16
|
|
|
@@ -31,7 +32,7 @@ var global$p =
|
|
|
31
32
|
|
|
32
33
|
var objectGetOwnPropertyDescriptor = {};
|
|
33
34
|
|
|
34
|
-
var fails$
|
|
35
|
+
var fails$o = function (exec) {
|
|
35
36
|
try {
|
|
36
37
|
return !!exec();
|
|
37
38
|
} catch (error) {
|
|
@@ -39,17 +40,17 @@ var fails$n = function (exec) {
|
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
|
|
42
|
-
var fails$
|
|
43
|
+
var fails$n = fails$o;
|
|
43
44
|
|
|
44
45
|
// Detect IE8's incomplete defineProperty implementation
|
|
45
|
-
var descriptors = !fails$
|
|
46
|
+
var descriptors = !fails$n(function () {
|
|
46
47
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
47
48
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
48
49
|
});
|
|
49
50
|
|
|
50
|
-
var fails$
|
|
51
|
+
var fails$m = fails$o;
|
|
51
52
|
|
|
52
|
-
var functionBindNative = !fails$
|
|
53
|
+
var functionBindNative = !fails$m(function () {
|
|
53
54
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
54
55
|
var test = (function () { /* empty */ }).bind();
|
|
55
56
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -58,10 +59,10 @@ var functionBindNative = !fails$l(function () {
|
|
|
58
59
|
|
|
59
60
|
var NATIVE_BIND$3 = functionBindNative;
|
|
60
61
|
|
|
61
|
-
var call$
|
|
62
|
+
var call$l = Function.prototype.call;
|
|
62
63
|
|
|
63
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
64
|
-
return call$
|
|
64
|
+
var functionCall = NATIVE_BIND$3 ? call$l.bind(call$l) : function () {
|
|
65
|
+
return call$l.apply(call$l, arguments);
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
var objectPropertyIsEnumerable = {};
|
|
@@ -80,7 +81,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
80
81
|
return !!descriptor && descriptor.enumerable;
|
|
81
82
|
} : $propertyIsEnumerable;
|
|
82
83
|
|
|
83
|
-
var createPropertyDescriptor$
|
|
84
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
84
85
|
return {
|
|
85
86
|
enumerable: !(bitmap & 1),
|
|
86
87
|
configurable: !(bitmap & 2),
|
|
@@ -92,38 +93,38 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
92
93
|
var NATIVE_BIND$2 = functionBindNative;
|
|
93
94
|
|
|
94
95
|
var FunctionPrototype$2 = Function.prototype;
|
|
95
|
-
var call$
|
|
96
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
96
|
+
var call$k = FunctionPrototype$2.call;
|
|
97
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$k, call$k);
|
|
97
98
|
|
|
98
99
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
99
100
|
return function () {
|
|
100
|
-
return call$
|
|
101
|
+
return call$k.apply(fn, arguments);
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
104
|
|
|
104
|
-
var uncurryThis$
|
|
105
|
+
var uncurryThis$o = functionUncurryThis;
|
|
105
106
|
|
|
106
|
-
var toString$
|
|
107
|
-
var stringSlice$6 = uncurryThis$
|
|
107
|
+
var toString$e = uncurryThis$o({}.toString);
|
|
108
|
+
var stringSlice$6 = uncurryThis$o(''.slice);
|
|
108
109
|
|
|
109
110
|
var classofRaw$2 = function (it) {
|
|
110
|
-
return stringSlice$6(toString$
|
|
111
|
+
return stringSlice$6(toString$e(it), 8, -1);
|
|
111
112
|
};
|
|
112
113
|
|
|
113
|
-
var uncurryThis$
|
|
114
|
-
var fails$
|
|
115
|
-
var classof$
|
|
114
|
+
var uncurryThis$n = functionUncurryThis;
|
|
115
|
+
var fails$l = fails$o;
|
|
116
|
+
var classof$9 = classofRaw$2;
|
|
116
117
|
|
|
117
118
|
var $Object$4 = Object;
|
|
118
|
-
var split = uncurryThis$
|
|
119
|
+
var split = uncurryThis$n(''.split);
|
|
119
120
|
|
|
120
121
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
121
|
-
var indexedObject = fails$
|
|
122
|
+
var indexedObject = fails$l(function () {
|
|
122
123
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
123
124
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
124
125
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
125
126
|
}) ? function (it) {
|
|
126
|
-
return classof$
|
|
127
|
+
return classof$9(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
127
128
|
} : $Object$4;
|
|
128
129
|
|
|
129
130
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -134,21 +135,21 @@ var isNullOrUndefined$7 = function (it) {
|
|
|
134
135
|
|
|
135
136
|
var isNullOrUndefined$6 = isNullOrUndefined$7;
|
|
136
137
|
|
|
137
|
-
var $TypeError$
|
|
138
|
+
var $TypeError$h = TypeError;
|
|
138
139
|
|
|
139
140
|
// `RequireObjectCoercible` abstract operation
|
|
140
141
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
141
|
-
var requireObjectCoercible$
|
|
142
|
-
if (isNullOrUndefined$6(it)) throw new $TypeError$
|
|
142
|
+
var requireObjectCoercible$9 = function (it) {
|
|
143
|
+
if (isNullOrUndefined$6(it)) throw new $TypeError$h("Can't call method on " + it);
|
|
143
144
|
return it;
|
|
144
145
|
};
|
|
145
146
|
|
|
146
147
|
// toObject with fallback for non-array-like ES3 strings
|
|
147
148
|
var IndexedObject$2 = indexedObject;
|
|
148
|
-
var requireObjectCoercible$
|
|
149
|
+
var requireObjectCoercible$8 = requireObjectCoercible$9;
|
|
149
150
|
|
|
150
151
|
var toIndexedObject$5 = function (it) {
|
|
151
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
152
|
+
return IndexedObject$2(requireObjectCoercible$8(it));
|
|
152
153
|
};
|
|
153
154
|
|
|
154
155
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -157,32 +158,32 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
157
158
|
// `IsCallable` abstract operation
|
|
158
159
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
159
160
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
160
|
-
var isCallable$
|
|
161
|
+
var isCallable$n = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
161
162
|
return typeof argument == 'function' || argument === documentAll;
|
|
162
163
|
} : function (argument) {
|
|
163
164
|
return typeof argument == 'function';
|
|
164
165
|
};
|
|
165
166
|
|
|
166
|
-
var isCallable$
|
|
167
|
+
var isCallable$m = isCallable$n;
|
|
167
168
|
|
|
168
|
-
var isObject$
|
|
169
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
169
|
+
var isObject$e = function (it) {
|
|
170
|
+
return typeof it == 'object' ? it !== null : isCallable$m(it);
|
|
170
171
|
};
|
|
171
172
|
|
|
172
173
|
var global$o = global$p;
|
|
173
|
-
var isCallable$
|
|
174
|
+
var isCallable$l = isCallable$n;
|
|
174
175
|
|
|
175
176
|
var aFunction = function (argument) {
|
|
176
|
-
return isCallable$
|
|
177
|
+
return isCallable$l(argument) ? argument : undefined;
|
|
177
178
|
};
|
|
178
179
|
|
|
179
|
-
var getBuiltIn$
|
|
180
|
+
var getBuiltIn$8 = function (namespace, method) {
|
|
180
181
|
return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
|
|
181
182
|
};
|
|
182
183
|
|
|
183
|
-
var uncurryThis$
|
|
184
|
+
var uncurryThis$m = functionUncurryThis;
|
|
184
185
|
|
|
185
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
186
|
+
var objectIsPrototypeOf = uncurryThis$m({}.isPrototypeOf);
|
|
186
187
|
|
|
187
188
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
188
189
|
|
|
@@ -216,13 +217,13 @@ var engineV8Version = version;
|
|
|
216
217
|
|
|
217
218
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
218
219
|
var V8_VERSION$1 = engineV8Version;
|
|
219
|
-
var fails$
|
|
220
|
+
var fails$k = fails$o;
|
|
220
221
|
var global$m = global$p;
|
|
221
222
|
|
|
222
223
|
var $String$5 = global$m.String;
|
|
223
224
|
|
|
224
225
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
225
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
226
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$k(function () {
|
|
226
227
|
var symbol = Symbol('symbol detection');
|
|
227
228
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
228
229
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -240,9 +241,9 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
240
241
|
&& !Symbol.sham
|
|
241
242
|
&& typeof Symbol.iterator == 'symbol';
|
|
242
243
|
|
|
243
|
-
var getBuiltIn$
|
|
244
|
-
var isCallable$
|
|
245
|
-
var isPrototypeOf$
|
|
244
|
+
var getBuiltIn$7 = getBuiltIn$8;
|
|
245
|
+
var isCallable$k = isCallable$n;
|
|
246
|
+
var isPrototypeOf$6 = objectIsPrototypeOf;
|
|
246
247
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
247
248
|
|
|
248
249
|
var $Object$3 = Object;
|
|
@@ -250,8 +251,8 @@ var $Object$3 = Object;
|
|
|
250
251
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
251
252
|
return typeof it == 'symbol';
|
|
252
253
|
} : function (it) {
|
|
253
|
-
var $Symbol = getBuiltIn$
|
|
254
|
-
return isCallable$
|
|
254
|
+
var $Symbol = getBuiltIn$7('Symbol');
|
|
255
|
+
return isCallable$k($Symbol) && isPrototypeOf$6($Symbol.prototype, $Object$3(it));
|
|
255
256
|
};
|
|
256
257
|
|
|
257
258
|
var $String$4 = String;
|
|
@@ -264,15 +265,15 @@ var tryToString$4 = function (argument) {
|
|
|
264
265
|
}
|
|
265
266
|
};
|
|
266
267
|
|
|
267
|
-
var isCallable$
|
|
268
|
+
var isCallable$j = isCallable$n;
|
|
268
269
|
var tryToString$3 = tryToString$4;
|
|
269
270
|
|
|
270
|
-
var $TypeError$
|
|
271
|
+
var $TypeError$g = TypeError;
|
|
271
272
|
|
|
272
273
|
// `Assert: IsCallable(argument) is true`
|
|
273
274
|
var aCallable$9 = function (argument) {
|
|
274
|
-
if (isCallable$
|
|
275
|
-
throw new $TypeError$
|
|
275
|
+
if (isCallable$j(argument)) return argument;
|
|
276
|
+
throw new $TypeError$g(tryToString$3(argument) + ' is not a function');
|
|
276
277
|
};
|
|
277
278
|
|
|
278
279
|
var aCallable$8 = aCallable$9;
|
|
@@ -285,23 +286,23 @@ var getMethod$6 = function (V, P) {
|
|
|
285
286
|
return isNullOrUndefined$5(func) ? undefined : aCallable$8(func);
|
|
286
287
|
};
|
|
287
288
|
|
|
288
|
-
var call$
|
|
289
|
-
var isCallable$
|
|
290
|
-
var isObject$
|
|
289
|
+
var call$j = functionCall;
|
|
290
|
+
var isCallable$i = isCallable$n;
|
|
291
|
+
var isObject$d = isObject$e;
|
|
291
292
|
|
|
292
|
-
var $TypeError$
|
|
293
|
+
var $TypeError$f = TypeError;
|
|
293
294
|
|
|
294
295
|
// `OrdinaryToPrimitive` abstract operation
|
|
295
296
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
296
297
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
297
298
|
var fn, val;
|
|
298
|
-
if (pref === 'string' && isCallable$
|
|
299
|
-
if (isCallable$
|
|
300
|
-
if (pref !== 'string' && isCallable$
|
|
301
|
-
throw new $TypeError$
|
|
299
|
+
if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$d(val = call$j(fn, input))) return val;
|
|
300
|
+
if (isCallable$i(fn = input.valueOf) && !isObject$d(val = call$j(fn, input))) return val;
|
|
301
|
+
if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$d(val = call$j(fn, input))) return val;
|
|
302
|
+
throw new $TypeError$f("Can't convert object to primitive value");
|
|
302
303
|
};
|
|
303
304
|
|
|
304
|
-
var
|
|
305
|
+
var sharedStore = {exports: {}};
|
|
305
306
|
|
|
306
307
|
var global$l = global$p;
|
|
307
308
|
|
|
@@ -316,40 +317,40 @@ var defineGlobalProperty$3 = function (key, value) {
|
|
|
316
317
|
} return value;
|
|
317
318
|
};
|
|
318
319
|
|
|
319
|
-
var
|
|
320
|
+
var globalThis$1 = global$p;
|
|
320
321
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
321
322
|
|
|
322
323
|
var SHARED = '__core-js_shared__';
|
|
323
|
-
var store$3 =
|
|
324
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
324
325
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
var store$2 = sharedStore;
|
|
328
|
-
|
|
329
|
-
(shared$4.exports = function (key, value) {
|
|
330
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
331
|
-
})('versions', []).push({
|
|
332
|
-
version: '3.35.1',
|
|
326
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
327
|
+
version: '3.36.1',
|
|
333
328
|
mode: 'global',
|
|
334
329
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
335
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
330
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
336
331
|
source: 'https://github.com/zloirock/core-js'
|
|
337
332
|
});
|
|
338
333
|
|
|
339
|
-
var
|
|
334
|
+
var store$2 = sharedStore.exports;
|
|
335
|
+
|
|
336
|
+
var shared$4 = function (key, value) {
|
|
337
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
var requireObjectCoercible$7 = requireObjectCoercible$9;
|
|
340
341
|
|
|
341
342
|
var $Object$2 = Object;
|
|
342
343
|
|
|
343
344
|
// `ToObject` abstract operation
|
|
344
345
|
// https://tc39.es/ecma262/#sec-toobject
|
|
345
346
|
var toObject$5 = function (argument) {
|
|
346
|
-
return $Object$2(requireObjectCoercible$
|
|
347
|
+
return $Object$2(requireObjectCoercible$7(argument));
|
|
347
348
|
};
|
|
348
349
|
|
|
349
|
-
var uncurryThis$
|
|
350
|
+
var uncurryThis$l = functionUncurryThis;
|
|
350
351
|
var toObject$4 = toObject$5;
|
|
351
352
|
|
|
352
|
-
var hasOwnProperty = uncurryThis$
|
|
353
|
+
var hasOwnProperty = uncurryThis$l({}.hasOwnProperty);
|
|
353
354
|
|
|
354
355
|
// `HasOwnProperty` abstract operation
|
|
355
356
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -358,56 +359,56 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
358
359
|
return hasOwnProperty(toObject$4(it), key);
|
|
359
360
|
};
|
|
360
361
|
|
|
361
|
-
var uncurryThis$
|
|
362
|
+
var uncurryThis$k = functionUncurryThis;
|
|
362
363
|
|
|
363
364
|
var id = 0;
|
|
364
365
|
var postfix = Math.random();
|
|
365
|
-
var toString$
|
|
366
|
+
var toString$d = uncurryThis$k(1.0.toString);
|
|
366
367
|
|
|
367
368
|
var uid$2 = function (key) {
|
|
368
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
369
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$d(++id + postfix, 36);
|
|
369
370
|
};
|
|
370
371
|
|
|
371
|
-
var global$
|
|
372
|
-
var shared$3 = shared$4
|
|
373
|
-
var hasOwn$
|
|
372
|
+
var global$k = global$p;
|
|
373
|
+
var shared$3 = shared$4;
|
|
374
|
+
var hasOwn$d = hasOwnProperty_1;
|
|
374
375
|
var uid$1 = uid$2;
|
|
375
376
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
376
377
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
377
378
|
|
|
378
|
-
var Symbol$2 = global$
|
|
379
|
+
var Symbol$2 = global$k.Symbol;
|
|
379
380
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
380
381
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
381
382
|
|
|
382
383
|
var wellKnownSymbol$j = function (name) {
|
|
383
|
-
if (!hasOwn$
|
|
384
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$
|
|
384
|
+
if (!hasOwn$d(WellKnownSymbolsStore, name)) {
|
|
385
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$d(Symbol$2, name)
|
|
385
386
|
? Symbol$2[name]
|
|
386
387
|
: createWellKnownSymbol('Symbol.' + name);
|
|
387
388
|
} return WellKnownSymbolsStore[name];
|
|
388
389
|
};
|
|
389
390
|
|
|
390
|
-
var call$
|
|
391
|
-
var isObject$
|
|
391
|
+
var call$i = functionCall;
|
|
392
|
+
var isObject$c = isObject$e;
|
|
392
393
|
var isSymbol$1 = isSymbol$2;
|
|
393
394
|
var getMethod$5 = getMethod$6;
|
|
394
395
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
395
396
|
var wellKnownSymbol$i = wellKnownSymbol$j;
|
|
396
397
|
|
|
397
|
-
var $TypeError$
|
|
398
|
+
var $TypeError$e = TypeError;
|
|
398
399
|
var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
|
|
399
400
|
|
|
400
401
|
// `ToPrimitive` abstract operation
|
|
401
402
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
402
403
|
var toPrimitive$1 = function (input, pref) {
|
|
403
|
-
if (!isObject$
|
|
404
|
+
if (!isObject$c(input) || isSymbol$1(input)) return input;
|
|
404
405
|
var exoticToPrim = getMethod$5(input, TO_PRIMITIVE);
|
|
405
406
|
var result;
|
|
406
407
|
if (exoticToPrim) {
|
|
407
408
|
if (pref === undefined) pref = 'default';
|
|
408
|
-
result = call$
|
|
409
|
-
if (!isObject$
|
|
410
|
-
throw new $TypeError$
|
|
409
|
+
result = call$i(exoticToPrim, input, pref);
|
|
410
|
+
if (!isObject$c(result) || isSymbol$1(result)) return result;
|
|
411
|
+
throw new $TypeError$e("Can't convert object to primitive value");
|
|
411
412
|
}
|
|
412
413
|
if (pref === undefined) pref = 'number';
|
|
413
414
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -423,36 +424,36 @@ var toPropertyKey$2 = function (argument) {
|
|
|
423
424
|
return isSymbol(key) ? key : key + '';
|
|
424
425
|
};
|
|
425
426
|
|
|
426
|
-
var global$
|
|
427
|
-
var isObject$
|
|
427
|
+
var global$j = global$p;
|
|
428
|
+
var isObject$b = isObject$e;
|
|
428
429
|
|
|
429
|
-
var document$3 = global$
|
|
430
|
+
var document$3 = global$j.document;
|
|
430
431
|
// typeof document.createElement is 'object' in old IE
|
|
431
|
-
var EXISTS$1 = isObject$
|
|
432
|
+
var EXISTS$1 = isObject$b(document$3) && isObject$b(document$3.createElement);
|
|
432
433
|
|
|
433
434
|
var documentCreateElement$2 = function (it) {
|
|
434
435
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
435
436
|
};
|
|
436
437
|
|
|
437
|
-
var DESCRIPTORS$
|
|
438
|
-
var fails$
|
|
438
|
+
var DESCRIPTORS$f = descriptors;
|
|
439
|
+
var fails$j = fails$o;
|
|
439
440
|
var createElement$1 = documentCreateElement$2;
|
|
440
441
|
|
|
441
442
|
// Thanks to IE8 for its funny defineProperty
|
|
442
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
443
|
+
var ie8DomDefine = !DESCRIPTORS$f && !fails$j(function () {
|
|
443
444
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
444
445
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
445
446
|
get: function () { return 7; }
|
|
446
447
|
}).a !== 7;
|
|
447
448
|
});
|
|
448
449
|
|
|
449
|
-
var DESCRIPTORS$
|
|
450
|
-
var call$
|
|
450
|
+
var DESCRIPTORS$e = descriptors;
|
|
451
|
+
var call$h = functionCall;
|
|
451
452
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
452
|
-
var createPropertyDescriptor$
|
|
453
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
453
454
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
454
455
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
455
|
-
var hasOwn$
|
|
456
|
+
var hasOwn$c = hasOwnProperty_1;
|
|
456
457
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
457
458
|
|
|
458
459
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -460,23 +461,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
460
461
|
|
|
461
462
|
// `Object.getOwnPropertyDescriptor` method
|
|
462
463
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
463
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
464
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$e ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
464
465
|
O = toIndexedObject$4(O);
|
|
465
466
|
P = toPropertyKey$1(P);
|
|
466
467
|
if (IE8_DOM_DEFINE$1) try {
|
|
467
468
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
468
469
|
} catch (error) { /* empty */ }
|
|
469
|
-
if (hasOwn$
|
|
470
|
+
if (hasOwn$c(O, P)) return createPropertyDescriptor$3(!call$h(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
470
471
|
};
|
|
471
472
|
|
|
472
473
|
var objectDefineProperty = {};
|
|
473
474
|
|
|
474
|
-
var DESCRIPTORS$
|
|
475
|
-
var fails$
|
|
475
|
+
var DESCRIPTORS$d = descriptors;
|
|
476
|
+
var fails$i = fails$o;
|
|
476
477
|
|
|
477
478
|
// V8 ~ Chrome 36-
|
|
478
479
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
479
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
480
|
+
var v8PrototypeDefineBug = DESCRIPTORS$d && fails$i(function () {
|
|
480
481
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
481
482
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
482
483
|
value: 42,
|
|
@@ -484,24 +485,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$h(function () {
|
|
|
484
485
|
}).prototype !== 42;
|
|
485
486
|
});
|
|
486
487
|
|
|
487
|
-
var isObject$
|
|
488
|
+
var isObject$a = isObject$e;
|
|
488
489
|
|
|
489
490
|
var $String$3 = String;
|
|
490
|
-
var $TypeError$
|
|
491
|
+
var $TypeError$d = TypeError;
|
|
491
492
|
|
|
492
493
|
// `Assert: Type(argument) is Object`
|
|
493
494
|
var anObject$g = function (argument) {
|
|
494
|
-
if (isObject$
|
|
495
|
-
throw new $TypeError$
|
|
495
|
+
if (isObject$a(argument)) return argument;
|
|
496
|
+
throw new $TypeError$d($String$3(argument) + ' is not an object');
|
|
496
497
|
};
|
|
497
498
|
|
|
498
|
-
var DESCRIPTORS$
|
|
499
|
+
var DESCRIPTORS$c = descriptors;
|
|
499
500
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
500
501
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
501
502
|
var anObject$f = anObject$g;
|
|
502
503
|
var toPropertyKey = toPropertyKey$2;
|
|
503
504
|
|
|
504
|
-
var $TypeError$
|
|
505
|
+
var $TypeError$c = TypeError;
|
|
505
506
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
506
507
|
var $defineProperty = Object.defineProperty;
|
|
507
508
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -512,7 +513,7 @@ var WRITABLE = 'writable';
|
|
|
512
513
|
|
|
513
514
|
// `Object.defineProperty` method
|
|
514
515
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
515
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
516
|
+
objectDefineProperty.f = DESCRIPTORS$c ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
516
517
|
anObject$f(O);
|
|
517
518
|
P = toPropertyKey(P);
|
|
518
519
|
anObject$f(Attributes);
|
|
@@ -534,17 +535,17 @@ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
534
535
|
if (IE8_DOM_DEFINE) try {
|
|
535
536
|
return $defineProperty(O, P, Attributes);
|
|
536
537
|
} catch (error) { /* empty */ }
|
|
537
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
538
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$c('Accessors not supported');
|
|
538
539
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
539
540
|
return O;
|
|
540
541
|
};
|
|
541
542
|
|
|
542
|
-
var DESCRIPTORS$
|
|
543
|
+
var DESCRIPTORS$b = descriptors;
|
|
543
544
|
var definePropertyModule$3 = objectDefineProperty;
|
|
544
|
-
var createPropertyDescriptor$
|
|
545
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
545
546
|
|
|
546
|
-
var createNonEnumerableProperty$
|
|
547
|
-
return definePropertyModule$3.f(object, key, createPropertyDescriptor$
|
|
547
|
+
var createNonEnumerableProperty$9 = DESCRIPTORS$b ? function (object, key, value) {
|
|
548
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$2(1, value));
|
|
548
549
|
} : function (object, key, value) {
|
|
549
550
|
object[key] = value;
|
|
550
551
|
return object;
|
|
@@ -552,17 +553,17 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$9 ? function (object, key, value
|
|
|
552
553
|
|
|
553
554
|
var makeBuiltIn$3 = {exports: {}};
|
|
554
555
|
|
|
555
|
-
var DESCRIPTORS$
|
|
556
|
-
var hasOwn$
|
|
556
|
+
var DESCRIPTORS$a = descriptors;
|
|
557
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
557
558
|
|
|
558
559
|
var FunctionPrototype$1 = Function.prototype;
|
|
559
560
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
560
|
-
var getDescriptor = DESCRIPTORS$
|
|
561
|
+
var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
|
|
561
562
|
|
|
562
|
-
var EXISTS = hasOwn$
|
|
563
|
+
var EXISTS = hasOwn$b(FunctionPrototype$1, 'name');
|
|
563
564
|
// additional protection from minified / mangled / dropped function names
|
|
564
565
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
565
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
566
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$a || (DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
566
567
|
|
|
567
568
|
var functionName = {
|
|
568
569
|
EXISTS: EXISTS,
|
|
@@ -570,14 +571,14 @@ var functionName = {
|
|
|
570
571
|
CONFIGURABLE: CONFIGURABLE
|
|
571
572
|
};
|
|
572
573
|
|
|
573
|
-
var uncurryThis$
|
|
574
|
-
var isCallable$
|
|
575
|
-
var store$1 = sharedStore;
|
|
574
|
+
var uncurryThis$j = functionUncurryThis;
|
|
575
|
+
var isCallable$h = isCallable$n;
|
|
576
|
+
var store$1 = sharedStore.exports;
|
|
576
577
|
|
|
577
|
-
var functionToString = uncurryThis$
|
|
578
|
+
var functionToString = uncurryThis$j(Function.toString);
|
|
578
579
|
|
|
579
580
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
580
|
-
if (!isCallable$
|
|
581
|
+
if (!isCallable$h(store$1.inspectSource)) {
|
|
581
582
|
store$1.inspectSource = function (it) {
|
|
582
583
|
return functionToString(it);
|
|
583
584
|
};
|
|
@@ -585,14 +586,14 @@ if (!isCallable$g(store$1.inspectSource)) {
|
|
|
585
586
|
|
|
586
587
|
var inspectSource$3 = store$1.inspectSource;
|
|
587
588
|
|
|
588
|
-
var global$
|
|
589
|
-
var isCallable$
|
|
589
|
+
var global$i = global$p;
|
|
590
|
+
var isCallable$g = isCallable$n;
|
|
590
591
|
|
|
591
|
-
var WeakMap$1 = global$
|
|
592
|
+
var WeakMap$1 = global$i.WeakMap;
|
|
592
593
|
|
|
593
|
-
var weakMapBasicDetection = isCallable$
|
|
594
|
+
var weakMapBasicDetection = isCallable$g(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
594
595
|
|
|
595
|
-
var shared$2 = shared$4
|
|
596
|
+
var shared$2 = shared$4;
|
|
596
597
|
var uid = uid$2;
|
|
597
598
|
|
|
598
599
|
var keys$1 = shared$2('keys');
|
|
@@ -604,17 +605,17 @@ var sharedKey$3 = function (key) {
|
|
|
604
605
|
var hiddenKeys$4 = {};
|
|
605
606
|
|
|
606
607
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
607
|
-
var global$
|
|
608
|
-
var isObject$
|
|
609
|
-
var createNonEnumerableProperty$
|
|
610
|
-
var hasOwn$
|
|
611
|
-
var shared$1 = sharedStore;
|
|
608
|
+
var global$h = global$p;
|
|
609
|
+
var isObject$9 = isObject$e;
|
|
610
|
+
var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
|
|
611
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
612
|
+
var shared$1 = sharedStore.exports;
|
|
612
613
|
var sharedKey$2 = sharedKey$3;
|
|
613
614
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
614
615
|
|
|
615
616
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
616
|
-
var TypeError$2 = global$
|
|
617
|
-
var WeakMap = global$
|
|
617
|
+
var TypeError$2 = global$h.TypeError;
|
|
618
|
+
var WeakMap = global$h.WeakMap;
|
|
618
619
|
var set$2, get, has;
|
|
619
620
|
|
|
620
621
|
var enforce = function (it) {
|
|
@@ -624,7 +625,7 @@ var enforce = function (it) {
|
|
|
624
625
|
var getterFor = function (TYPE) {
|
|
625
626
|
return function (it) {
|
|
626
627
|
var state;
|
|
627
|
-
if (!isObject$
|
|
628
|
+
if (!isObject$9(it) || (state = get(it)).type !== TYPE) {
|
|
628
629
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
629
630
|
} return state;
|
|
630
631
|
};
|
|
@@ -653,16 +654,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
653
654
|
var STATE = sharedKey$2('state');
|
|
654
655
|
hiddenKeys$3[STATE] = true;
|
|
655
656
|
set$2 = function (it, metadata) {
|
|
656
|
-
if (hasOwn$
|
|
657
|
+
if (hasOwn$a(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
657
658
|
metadata.facade = it;
|
|
658
|
-
createNonEnumerableProperty$
|
|
659
|
+
createNonEnumerableProperty$8(it, STATE, metadata);
|
|
659
660
|
return metadata;
|
|
660
661
|
};
|
|
661
662
|
get = function (it) {
|
|
662
|
-
return hasOwn$
|
|
663
|
+
return hasOwn$a(it, STATE) ? it[STATE] : {};
|
|
663
664
|
};
|
|
664
665
|
has = function (it) {
|
|
665
|
-
return hasOwn$
|
|
666
|
+
return hasOwn$a(it, STATE);
|
|
666
667
|
};
|
|
667
668
|
}
|
|
668
669
|
|
|
@@ -674,25 +675,25 @@ var internalState = {
|
|
|
674
675
|
getterFor: getterFor
|
|
675
676
|
};
|
|
676
677
|
|
|
677
|
-
var uncurryThis$
|
|
678
|
-
var fails$
|
|
679
|
-
var isCallable$
|
|
680
|
-
var hasOwn$
|
|
681
|
-
var DESCRIPTORS$
|
|
678
|
+
var uncurryThis$i = functionUncurryThis;
|
|
679
|
+
var fails$h = fails$o;
|
|
680
|
+
var isCallable$f = isCallable$n;
|
|
681
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
682
|
+
var DESCRIPTORS$9 = descriptors;
|
|
682
683
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
683
684
|
var inspectSource$2 = inspectSource$3;
|
|
684
685
|
var InternalStateModule$2 = internalState;
|
|
685
686
|
|
|
686
687
|
var enforceInternalState$1 = InternalStateModule$2.enforce;
|
|
687
|
-
var getInternalState$
|
|
688
|
+
var getInternalState$3 = InternalStateModule$2.get;
|
|
688
689
|
var $String$2 = String;
|
|
689
690
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
690
691
|
var defineProperty$6 = Object.defineProperty;
|
|
691
|
-
var stringSlice$5 = uncurryThis$
|
|
692
|
-
var replace$
|
|
693
|
-
var join = uncurryThis$
|
|
692
|
+
var stringSlice$5 = uncurryThis$i(''.slice);
|
|
693
|
+
var replace$5 = uncurryThis$i(''.replace);
|
|
694
|
+
var join = uncurryThis$i([].join);
|
|
694
695
|
|
|
695
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
696
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$9 && !fails$h(function () {
|
|
696
697
|
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
697
698
|
});
|
|
698
699
|
|
|
@@ -700,25 +701,25 @@ var TEMPLATE = String(String).split('String');
|
|
|
700
701
|
|
|
701
702
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
702
703
|
if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
|
|
703
|
-
name = '[' + replace$
|
|
704
|
+
name = '[' + replace$5($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
704
705
|
}
|
|
705
706
|
if (options && options.getter) name = 'get ' + name;
|
|
706
707
|
if (options && options.setter) name = 'set ' + name;
|
|
707
|
-
if (!hasOwn$
|
|
708
|
-
if (DESCRIPTORS$
|
|
708
|
+
if (!hasOwn$9(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
709
|
+
if (DESCRIPTORS$9) defineProperty$6(value, 'name', { value: name, configurable: true });
|
|
709
710
|
else value.name = name;
|
|
710
711
|
}
|
|
711
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
712
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$9(options, 'arity') && value.length !== options.arity) {
|
|
712
713
|
defineProperty$6(value, 'length', { value: options.arity });
|
|
713
714
|
}
|
|
714
715
|
try {
|
|
715
|
-
if (options && hasOwn$
|
|
716
|
-
if (DESCRIPTORS$
|
|
716
|
+
if (options && hasOwn$9(options, 'constructor') && options.constructor) {
|
|
717
|
+
if (DESCRIPTORS$9) defineProperty$6(value, 'prototype', { writable: false });
|
|
717
718
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
718
719
|
} else if (value.prototype) value.prototype = undefined;
|
|
719
720
|
} catch (error) { /* empty */ }
|
|
720
721
|
var state = enforceInternalState$1(value);
|
|
721
|
-
if (!hasOwn$
|
|
722
|
+
if (!hasOwn$9(state, 'source')) {
|
|
722
723
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
723
724
|
} return value;
|
|
724
725
|
};
|
|
@@ -726,10 +727,10 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
726
727
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
727
728
|
// eslint-disable-next-line no-extend-native -- required
|
|
728
729
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
729
|
-
return isCallable$
|
|
730
|
+
return isCallable$f(this) && getInternalState$3(this).source || inspectSource$2(this);
|
|
730
731
|
}, 'toString');
|
|
731
732
|
|
|
732
|
-
var isCallable$
|
|
733
|
+
var isCallable$e = isCallable$n;
|
|
733
734
|
var definePropertyModule$2 = objectDefineProperty;
|
|
734
735
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
735
736
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
@@ -738,7 +739,7 @@ var defineBuiltIn$8 = function (O, key, value, options) {
|
|
|
738
739
|
if (!options) options = {};
|
|
739
740
|
var simple = options.enumerable;
|
|
740
741
|
var name = options.name !== undefined ? options.name : key;
|
|
741
|
-
if (isCallable$
|
|
742
|
+
if (isCallable$e(value)) makeBuiltIn$1(value, name, options);
|
|
742
743
|
if (options.global) {
|
|
743
744
|
if (simple) O[key] = value;
|
|
744
745
|
else defineGlobalProperty$1(key, value);
|
|
@@ -821,6 +822,7 @@ var createMethod$3 = function (IS_INCLUDES) {
|
|
|
821
822
|
return function ($this, el, fromIndex) {
|
|
822
823
|
var O = toIndexedObject$3($this);
|
|
823
824
|
var length = lengthOfArrayLike$4(O);
|
|
825
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
824
826
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
825
827
|
var value;
|
|
826
828
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -845,22 +847,22 @@ var arrayIncludes = {
|
|
|
845
847
|
indexOf: createMethod$3(false)
|
|
846
848
|
};
|
|
847
849
|
|
|
848
|
-
var uncurryThis$
|
|
849
|
-
var hasOwn$
|
|
850
|
+
var uncurryThis$h = functionUncurryThis;
|
|
851
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
850
852
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
851
853
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
852
854
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
853
855
|
|
|
854
|
-
var push$1 = uncurryThis$
|
|
856
|
+
var push$1 = uncurryThis$h([].push);
|
|
855
857
|
|
|
856
858
|
var objectKeysInternal = function (object, names) {
|
|
857
859
|
var O = toIndexedObject$2(object);
|
|
858
860
|
var i = 0;
|
|
859
861
|
var result = [];
|
|
860
862
|
var key;
|
|
861
|
-
for (key in O) !hasOwn$
|
|
863
|
+
for (key in O) !hasOwn$8(hiddenKeys$2, key) && hasOwn$8(O, key) && push$1(result, key);
|
|
862
864
|
// Don't enum bug & hidden keys
|
|
863
|
-
while (names.length > i) if (hasOwn$
|
|
865
|
+
while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
|
|
864
866
|
~indexOf$1(result, key) || push$1(result, key);
|
|
865
867
|
}
|
|
866
868
|
return result;
|
|
@@ -894,40 +896,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
894
896
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
895
897
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
896
898
|
|
|
897
|
-
var getBuiltIn$
|
|
898
|
-
var uncurryThis$
|
|
899
|
+
var getBuiltIn$6 = getBuiltIn$8;
|
|
900
|
+
var uncurryThis$g = functionUncurryThis;
|
|
899
901
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
900
902
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
901
903
|
var anObject$e = anObject$g;
|
|
902
904
|
|
|
903
|
-
var concat$1 = uncurryThis$
|
|
905
|
+
var concat$1 = uncurryThis$g([].concat);
|
|
904
906
|
|
|
905
907
|
// all object keys, includes non-enumerable and symbols
|
|
906
|
-
var ownKeys$1 = getBuiltIn$
|
|
908
|
+
var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
907
909
|
var keys = getOwnPropertyNamesModule.f(anObject$e(it));
|
|
908
910
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
909
911
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
910
912
|
};
|
|
911
913
|
|
|
912
|
-
var hasOwn$
|
|
914
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
913
915
|
var ownKeys = ownKeys$1;
|
|
914
916
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
915
917
|
var definePropertyModule$1 = objectDefineProperty;
|
|
916
918
|
|
|
917
|
-
var copyConstructorProperties$
|
|
919
|
+
var copyConstructorProperties$3 = function (target, source, exceptions) {
|
|
918
920
|
var keys = ownKeys(source);
|
|
919
921
|
var defineProperty = definePropertyModule$1.f;
|
|
920
922
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
921
923
|
for (var i = 0; i < keys.length; i++) {
|
|
922
924
|
var key = keys[i];
|
|
923
|
-
if (!hasOwn$
|
|
925
|
+
if (!hasOwn$7(target, key) && !(exceptions && hasOwn$7(exceptions, key))) {
|
|
924
926
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
925
927
|
}
|
|
926
928
|
}
|
|
927
929
|
};
|
|
928
930
|
|
|
929
|
-
var fails$
|
|
930
|
-
var isCallable$
|
|
931
|
+
var fails$g = fails$o;
|
|
932
|
+
var isCallable$d = isCallable$n;
|
|
931
933
|
|
|
932
934
|
var replacement = /#|\.prototype\./;
|
|
933
935
|
|
|
@@ -935,7 +937,7 @@ var isForced$3 = function (feature, detection) {
|
|
|
935
937
|
var value = data[normalize(feature)];
|
|
936
938
|
return value === POLYFILL ? true
|
|
937
939
|
: value === NATIVE ? false
|
|
938
|
-
: isCallable$
|
|
940
|
+
: isCallable$d(detection) ? fails$g(detection)
|
|
939
941
|
: !!detection;
|
|
940
942
|
};
|
|
941
943
|
|
|
@@ -949,12 +951,12 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
949
951
|
|
|
950
952
|
var isForced_1 = isForced$3;
|
|
951
953
|
|
|
952
|
-
var global$
|
|
954
|
+
var global$g = global$p;
|
|
953
955
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
954
|
-
var createNonEnumerableProperty$
|
|
956
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$9;
|
|
955
957
|
var defineBuiltIn$7 = defineBuiltIn$8;
|
|
956
958
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
957
|
-
var copyConstructorProperties$
|
|
959
|
+
var copyConstructorProperties$2 = copyConstructorProperties$3;
|
|
958
960
|
var isForced$2 = isForced_1;
|
|
959
961
|
|
|
960
962
|
/*
|
|
@@ -978,11 +980,11 @@ var _export = function (options, source) {
|
|
|
978
980
|
var STATIC = options.stat;
|
|
979
981
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
980
982
|
if (GLOBAL) {
|
|
981
|
-
target = global$
|
|
983
|
+
target = global$g;
|
|
982
984
|
} else if (STATIC) {
|
|
983
|
-
target = global$
|
|
985
|
+
target = global$g[TARGET] || defineGlobalProperty(TARGET, {});
|
|
984
986
|
} else {
|
|
985
|
-
target = global$
|
|
987
|
+
target = global$g[TARGET] && global$g[TARGET].prototype;
|
|
986
988
|
}
|
|
987
989
|
if (target) for (key in source) {
|
|
988
990
|
sourceProperty = source[key];
|
|
@@ -994,11 +996,11 @@ var _export = function (options, source) {
|
|
|
994
996
|
// contained in target
|
|
995
997
|
if (!FORCED && targetProperty !== undefined) {
|
|
996
998
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
997
|
-
copyConstructorProperties$
|
|
999
|
+
copyConstructorProperties$2(sourceProperty, targetProperty);
|
|
998
1000
|
}
|
|
999
1001
|
// add a flag to not completely full polyfills
|
|
1000
1002
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1001
|
-
createNonEnumerableProperty$
|
|
1003
|
+
createNonEnumerableProperty$7(sourceProperty, 'sham', true);
|
|
1002
1004
|
}
|
|
1003
1005
|
defineBuiltIn$7(target, key, sourceProperty, options);
|
|
1004
1006
|
}
|
|
@@ -1014,10 +1016,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1014
1016
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1015
1017
|
};
|
|
1016
1018
|
|
|
1017
|
-
var DESCRIPTORS$
|
|
1018
|
-
var uncurryThis$
|
|
1019
|
-
var call$
|
|
1020
|
-
var fails$
|
|
1019
|
+
var DESCRIPTORS$8 = descriptors;
|
|
1020
|
+
var uncurryThis$f = functionUncurryThis;
|
|
1021
|
+
var call$g = functionCall;
|
|
1022
|
+
var fails$f = fails$o;
|
|
1021
1023
|
var objectKeys$1 = objectKeys$2;
|
|
1022
1024
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1023
1025
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1028,13 +1030,13 @@ var IndexedObject$1 = indexedObject;
|
|
|
1028
1030
|
var $assign = Object.assign;
|
|
1029
1031
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1030
1032
|
var defineProperty$5 = Object.defineProperty;
|
|
1031
|
-
var concat = uncurryThis$
|
|
1033
|
+
var concat = uncurryThis$f([].concat);
|
|
1032
1034
|
|
|
1033
1035
|
// `Object.assign` method
|
|
1034
1036
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1035
|
-
var objectAssign = !$assign || fails$
|
|
1037
|
+
var objectAssign = !$assign || fails$f(function () {
|
|
1036
1038
|
// should have correct order of operations (Edge bug)
|
|
1037
|
-
if (DESCRIPTORS$
|
|
1039
|
+
if (DESCRIPTORS$8 && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
|
|
1038
1040
|
enumerable: true,
|
|
1039
1041
|
get: function () {
|
|
1040
1042
|
defineProperty$5(this, 'b', {
|
|
@@ -1066,18 +1068,18 @@ var objectAssign = !$assign || fails$e(function () {
|
|
|
1066
1068
|
var key;
|
|
1067
1069
|
while (length > j) {
|
|
1068
1070
|
key = keys[j++];
|
|
1069
|
-
if (!DESCRIPTORS$
|
|
1071
|
+
if (!DESCRIPTORS$8 || call$g(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1070
1072
|
}
|
|
1071
1073
|
} return T;
|
|
1072
1074
|
} : $assign;
|
|
1073
1075
|
|
|
1074
|
-
var $$
|
|
1076
|
+
var $$h = _export;
|
|
1075
1077
|
var assign = objectAssign;
|
|
1076
1078
|
|
|
1077
1079
|
// `Object.assign` method
|
|
1078
1080
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1079
1081
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1080
|
-
$$
|
|
1082
|
+
$$h({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1081
1083
|
assign: assign
|
|
1082
1084
|
});
|
|
1083
1085
|
|
|
@@ -1174,7 +1176,7 @@ test$1[TO_STRING_TAG$2] = 'z';
|
|
|
1174
1176
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1175
1177
|
|
|
1176
1178
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1177
|
-
var isCallable$
|
|
1179
|
+
var isCallable$c = isCallable$n;
|
|
1178
1180
|
var classofRaw$1 = classofRaw$2;
|
|
1179
1181
|
var wellKnownSymbol$g = wellKnownSymbol$j;
|
|
1180
1182
|
|
|
@@ -1192,7 +1194,7 @@ var tryGet = function (it, key) {
|
|
|
1192
1194
|
};
|
|
1193
1195
|
|
|
1194
1196
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1195
|
-
var classof$
|
|
1197
|
+
var classof$8 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1196
1198
|
var O, tag, result;
|
|
1197
1199
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1198
1200
|
// @@toStringTag case
|
|
@@ -1200,50 +1202,50 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1200
1202
|
// builtinTag case
|
|
1201
1203
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1202
1204
|
// ES3 arguments fallback
|
|
1203
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
1205
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$c(O.callee) ? 'Arguments' : result;
|
|
1204
1206
|
};
|
|
1205
1207
|
|
|
1206
|
-
var classof$
|
|
1208
|
+
var classof$7 = classof$8;
|
|
1207
1209
|
|
|
1208
1210
|
var $String$1 = String;
|
|
1209
1211
|
|
|
1210
|
-
var toString$
|
|
1211
|
-
if (classof$
|
|
1212
|
+
var toString$c = function (argument) {
|
|
1213
|
+
if (classof$7(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1212
1214
|
return $String$1(argument);
|
|
1213
1215
|
};
|
|
1214
1216
|
|
|
1215
1217
|
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
1216
1218
|
var defineProperty$4 = objectDefineProperty;
|
|
1217
1219
|
|
|
1218
|
-
var defineBuiltInAccessor$
|
|
1220
|
+
var defineBuiltInAccessor$3 = function (target, name, descriptor) {
|
|
1219
1221
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1220
1222
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1221
1223
|
return defineProperty$4.f(target, name, descriptor);
|
|
1222
1224
|
};
|
|
1223
1225
|
|
|
1224
|
-
var $$
|
|
1225
|
-
var DESCRIPTORS$
|
|
1226
|
-
var global$
|
|
1227
|
-
var uncurryThis$
|
|
1228
|
-
var hasOwn$
|
|
1229
|
-
var isCallable$
|
|
1230
|
-
var isPrototypeOf$
|
|
1231
|
-
var toString$
|
|
1232
|
-
var defineBuiltInAccessor$
|
|
1233
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
1226
|
+
var $$g = _export;
|
|
1227
|
+
var DESCRIPTORS$7 = descriptors;
|
|
1228
|
+
var global$f = global$p;
|
|
1229
|
+
var uncurryThis$e = functionUncurryThis;
|
|
1230
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
1231
|
+
var isCallable$b = isCallable$n;
|
|
1232
|
+
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
1233
|
+
var toString$b = toString$c;
|
|
1234
|
+
var defineBuiltInAccessor$2 = defineBuiltInAccessor$3;
|
|
1235
|
+
var copyConstructorProperties$1 = copyConstructorProperties$3;
|
|
1234
1236
|
|
|
1235
|
-
var NativeSymbol = global$
|
|
1237
|
+
var NativeSymbol = global$f.Symbol;
|
|
1236
1238
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
1237
1239
|
|
|
1238
|
-
if (DESCRIPTORS$
|
|
1240
|
+
if (DESCRIPTORS$7 && isCallable$b(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
1239
1241
|
// Safari 12 bug
|
|
1240
1242
|
NativeSymbol().description !== undefined
|
|
1241
1243
|
)) {
|
|
1242
1244
|
var EmptyStringDescriptionStore = {};
|
|
1243
1245
|
// wrap Symbol constructor for correct work with undefined description
|
|
1244
1246
|
var SymbolWrapper = function Symbol() {
|
|
1245
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$
|
|
1246
|
-
var result = isPrototypeOf$
|
|
1247
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$b(arguments[0]);
|
|
1248
|
+
var result = isPrototypeOf$5(SymbolPrototype, this)
|
|
1247
1249
|
? new NativeSymbol(description)
|
|
1248
1250
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
1249
1251
|
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
@@ -1251,36 +1253,36 @@ if (DESCRIPTORS$5 && isCallable$a(NativeSymbol) && (!('description' in SymbolPro
|
|
|
1251
1253
|
return result;
|
|
1252
1254
|
};
|
|
1253
1255
|
|
|
1254
|
-
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
1256
|
+
copyConstructorProperties$1(SymbolWrapper, NativeSymbol);
|
|
1255
1257
|
SymbolWrapper.prototype = SymbolPrototype;
|
|
1256
1258
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
1257
1259
|
|
|
1258
1260
|
var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
|
|
1259
|
-
var thisSymbolValue = uncurryThis$
|
|
1260
|
-
var symbolDescriptiveString = uncurryThis$
|
|
1261
|
+
var thisSymbolValue = uncurryThis$e(SymbolPrototype.valueOf);
|
|
1262
|
+
var symbolDescriptiveString = uncurryThis$e(SymbolPrototype.toString);
|
|
1261
1263
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
1262
|
-
var replace$
|
|
1263
|
-
var stringSlice$4 = uncurryThis$
|
|
1264
|
+
var replace$4 = uncurryThis$e(''.replace);
|
|
1265
|
+
var stringSlice$4 = uncurryThis$e(''.slice);
|
|
1264
1266
|
|
|
1265
|
-
defineBuiltInAccessor$
|
|
1267
|
+
defineBuiltInAccessor$2(SymbolPrototype, 'description', {
|
|
1266
1268
|
configurable: true,
|
|
1267
1269
|
get: function description() {
|
|
1268
1270
|
var symbol = thisSymbolValue(this);
|
|
1269
|
-
if (hasOwn$
|
|
1271
|
+
if (hasOwn$6(EmptyStringDescriptionStore, symbol)) return '';
|
|
1270
1272
|
var string = symbolDescriptiveString(symbol);
|
|
1271
|
-
var desc = NATIVE_SYMBOL ? stringSlice$4(string, 7, -1) : replace$
|
|
1273
|
+
var desc = NATIVE_SYMBOL ? stringSlice$4(string, 7, -1) : replace$4(string, regexp, '$1');
|
|
1272
1274
|
return desc === '' ? undefined : desc;
|
|
1273
1275
|
}
|
|
1274
1276
|
});
|
|
1275
1277
|
|
|
1276
|
-
$$
|
|
1278
|
+
$$g({ global: true, constructor: true, forced: true }, {
|
|
1277
1279
|
Symbol: SymbolWrapper
|
|
1278
1280
|
});
|
|
1279
1281
|
}
|
|
1280
1282
|
|
|
1281
1283
|
var objectDefineProperties = {};
|
|
1282
1284
|
|
|
1283
|
-
var DESCRIPTORS$
|
|
1285
|
+
var DESCRIPTORS$6 = descriptors;
|
|
1284
1286
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1285
1287
|
var definePropertyModule = objectDefineProperty;
|
|
1286
1288
|
var anObject$d = anObject$g;
|
|
@@ -1290,7 +1292,7 @@ var objectKeys = objectKeys$2;
|
|
|
1290
1292
|
// `Object.defineProperties` method
|
|
1291
1293
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1292
1294
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1293
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1295
|
+
objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1294
1296
|
anObject$d(O);
|
|
1295
1297
|
var props = toIndexedObject$1(Properties);
|
|
1296
1298
|
var keys = objectKeys(Properties);
|
|
@@ -1301,9 +1303,9 @@ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1301
1303
|
return O;
|
|
1302
1304
|
};
|
|
1303
1305
|
|
|
1304
|
-
var getBuiltIn$
|
|
1306
|
+
var getBuiltIn$5 = getBuiltIn$8;
|
|
1305
1307
|
|
|
1306
|
-
var html$2 = getBuiltIn$
|
|
1308
|
+
var html$2 = getBuiltIn$5('document', 'documentElement');
|
|
1307
1309
|
|
|
1308
1310
|
/* global ActiveXObject -- old IE, WSH */
|
|
1309
1311
|
var anObject$c = anObject$g;
|
|
@@ -1412,17 +1414,17 @@ var addToUnscopables$3 = function (key) {
|
|
|
1412
1414
|
|
|
1413
1415
|
var iterators = {};
|
|
1414
1416
|
|
|
1415
|
-
var fails$
|
|
1417
|
+
var fails$e = fails$o;
|
|
1416
1418
|
|
|
1417
|
-
var correctPrototypeGetter = !fails$
|
|
1419
|
+
var correctPrototypeGetter = !fails$e(function () {
|
|
1418
1420
|
function F() { /* empty */ }
|
|
1419
1421
|
F.prototype.constructor = null;
|
|
1420
1422
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1421
1423
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1422
1424
|
});
|
|
1423
1425
|
|
|
1424
|
-
var hasOwn$
|
|
1425
|
-
var isCallable$
|
|
1426
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1427
|
+
var isCallable$a = isCallable$n;
|
|
1426
1428
|
var toObject$2 = toObject$5;
|
|
1427
1429
|
var sharedKey = sharedKey$3;
|
|
1428
1430
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -1436,16 +1438,16 @@ var ObjectPrototype = $Object.prototype;
|
|
|
1436
1438
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1437
1439
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1438
1440
|
var object = toObject$2(O);
|
|
1439
|
-
if (hasOwn$
|
|
1441
|
+
if (hasOwn$5(object, IE_PROTO)) return object[IE_PROTO];
|
|
1440
1442
|
var constructor = object.constructor;
|
|
1441
|
-
if (isCallable$
|
|
1443
|
+
if (isCallable$a(constructor) && object instanceof constructor) {
|
|
1442
1444
|
return constructor.prototype;
|
|
1443
1445
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1444
1446
|
};
|
|
1445
1447
|
|
|
1446
|
-
var fails$
|
|
1447
|
-
var isCallable$
|
|
1448
|
-
var isObject$
|
|
1448
|
+
var fails$d = fails$o;
|
|
1449
|
+
var isCallable$9 = isCallable$n;
|
|
1450
|
+
var isObject$8 = isObject$e;
|
|
1449
1451
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1450
1452
|
var defineBuiltIn$6 = defineBuiltIn$8;
|
|
1451
1453
|
var wellKnownSymbol$e = wellKnownSymbol$j;
|
|
@@ -1468,7 +1470,7 @@ if ([].keys) {
|
|
|
1468
1470
|
}
|
|
1469
1471
|
}
|
|
1470
1472
|
|
|
1471
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1473
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$2) || fails$d(function () {
|
|
1472
1474
|
var test = {};
|
|
1473
1475
|
// FF44- legacy iterators case
|
|
1474
1476
|
return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
|
|
@@ -1478,7 +1480,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1478
1480
|
|
|
1479
1481
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1480
1482
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1481
|
-
if (!isCallable$
|
|
1483
|
+
if (!isCallable$9(IteratorPrototype$2[ITERATOR$6])) {
|
|
1482
1484
|
defineBuiltIn$6(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1483
1485
|
return this;
|
|
1484
1486
|
});
|
|
@@ -1490,21 +1492,21 @@ var iteratorsCore = {
|
|
|
1490
1492
|
};
|
|
1491
1493
|
|
|
1492
1494
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1493
|
-
var hasOwn$
|
|
1495
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1494
1496
|
var wellKnownSymbol$d = wellKnownSymbol$j;
|
|
1495
1497
|
|
|
1496
1498
|
var TO_STRING_TAG = wellKnownSymbol$d('toStringTag');
|
|
1497
1499
|
|
|
1498
1500
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1499
1501
|
if (target && !STATIC) target = target.prototype;
|
|
1500
|
-
if (target && !hasOwn$
|
|
1502
|
+
if (target && !hasOwn$4(target, TO_STRING_TAG)) {
|
|
1501
1503
|
defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
1502
1504
|
}
|
|
1503
1505
|
};
|
|
1504
1506
|
|
|
1505
1507
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1506
1508
|
var create$2 = objectCreate;
|
|
1507
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1509
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
1508
1510
|
var setToStringTag$3 = setToStringTag$4;
|
|
1509
1511
|
var Iterators$4 = iterators;
|
|
1510
1512
|
|
|
@@ -1512,41 +1514,42 @@ var returnThis$1 = function () { return this; };
|
|
|
1512
1514
|
|
|
1513
1515
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1514
1516
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1515
|
-
IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1517
|
+
IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1516
1518
|
setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
|
|
1517
1519
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1518
1520
|
return IteratorConstructor;
|
|
1519
1521
|
};
|
|
1520
1522
|
|
|
1521
|
-
var uncurryThis$
|
|
1523
|
+
var uncurryThis$d = functionUncurryThis;
|
|
1522
1524
|
var aCallable$7 = aCallable$9;
|
|
1523
1525
|
|
|
1524
1526
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1525
1527
|
try {
|
|
1526
1528
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1527
|
-
return uncurryThis$
|
|
1529
|
+
return uncurryThis$d(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1528
1530
|
} catch (error) { /* empty */ }
|
|
1529
1531
|
};
|
|
1530
1532
|
|
|
1531
|
-
var isObject$
|
|
1533
|
+
var isObject$7 = isObject$e;
|
|
1532
1534
|
|
|
1533
1535
|
var isPossiblePrototype$1 = function (argument) {
|
|
1534
|
-
return isObject$
|
|
1536
|
+
return isObject$7(argument) || argument === null;
|
|
1535
1537
|
};
|
|
1536
1538
|
|
|
1537
1539
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1538
1540
|
|
|
1539
1541
|
var $String = String;
|
|
1540
|
-
var $TypeError$
|
|
1542
|
+
var $TypeError$b = TypeError;
|
|
1541
1543
|
|
|
1542
1544
|
var aPossiblePrototype$1 = function (argument) {
|
|
1543
1545
|
if (isPossiblePrototype(argument)) return argument;
|
|
1544
|
-
throw new $TypeError$
|
|
1546
|
+
throw new $TypeError$b("Can't set " + $String(argument) + ' as a prototype');
|
|
1545
1547
|
};
|
|
1546
1548
|
|
|
1547
1549
|
/* eslint-disable no-proto -- safe */
|
|
1548
1550
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1549
|
-
var
|
|
1551
|
+
var isObject$6 = isObject$e;
|
|
1552
|
+
var requireObjectCoercible$6 = requireObjectCoercible$9;
|
|
1550
1553
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1551
1554
|
|
|
1552
1555
|
// `Object.setPrototypeOf` method
|
|
@@ -1563,23 +1566,24 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1563
1566
|
CORRECT_SETTER = test instanceof Array;
|
|
1564
1567
|
} catch (error) { /* empty */ }
|
|
1565
1568
|
return function setPrototypeOf(O, proto) {
|
|
1566
|
-
|
|
1569
|
+
requireObjectCoercible$6(O);
|
|
1567
1570
|
aPossiblePrototype(proto);
|
|
1571
|
+
if (!isObject$6(O)) return O;
|
|
1568
1572
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1569
1573
|
else O.__proto__ = proto;
|
|
1570
1574
|
return O;
|
|
1571
1575
|
};
|
|
1572
1576
|
}() : undefined);
|
|
1573
1577
|
|
|
1574
|
-
var $$
|
|
1575
|
-
var call$
|
|
1578
|
+
var $$f = _export;
|
|
1579
|
+
var call$f = functionCall;
|
|
1576
1580
|
var FunctionName = functionName;
|
|
1577
|
-
var isCallable$
|
|
1581
|
+
var isCallable$8 = isCallable$n;
|
|
1578
1582
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1579
1583
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1580
|
-
var setPrototypeOf$
|
|
1584
|
+
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
1581
1585
|
var setToStringTag$2 = setToStringTag$4;
|
|
1582
|
-
var createNonEnumerableProperty$
|
|
1586
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$9;
|
|
1583
1587
|
var defineBuiltIn$5 = defineBuiltIn$8;
|
|
1584
1588
|
var wellKnownSymbol$c = wellKnownSymbol$j;
|
|
1585
1589
|
var Iterators$3 = iterators;
|
|
@@ -1627,9 +1631,9 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1627
1631
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1628
1632
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1629
1633
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1630
|
-
if (setPrototypeOf$
|
|
1631
|
-
setPrototypeOf$
|
|
1632
|
-
} else if (!isCallable$
|
|
1634
|
+
if (setPrototypeOf$3) {
|
|
1635
|
+
setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype);
|
|
1636
|
+
} else if (!isCallable$8(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1633
1637
|
defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1634
1638
|
}
|
|
1635
1639
|
}
|
|
@@ -1641,10 +1645,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1641
1645
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1642
1646
|
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1643
1647
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1644
|
-
createNonEnumerableProperty$
|
|
1648
|
+
createNonEnumerableProperty$6(IterablePrototype, 'name', VALUES);
|
|
1645
1649
|
} else {
|
|
1646
1650
|
INCORRECT_VALUES_NAME = true;
|
|
1647
|
-
defaultIterator = function values() { return call$
|
|
1651
|
+
defaultIterator = function values() { return call$f(nativeIterator, this); };
|
|
1648
1652
|
}
|
|
1649
1653
|
}
|
|
1650
1654
|
|
|
@@ -1659,7 +1663,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1659
1663
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1660
1664
|
defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
|
|
1661
1665
|
}
|
|
1662
|
-
} else $$
|
|
1666
|
+
} else $$f({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1663
1667
|
}
|
|
1664
1668
|
|
|
1665
1669
|
// define iterator
|
|
@@ -1684,11 +1688,11 @@ var InternalStateModule$1 = internalState;
|
|
|
1684
1688
|
var defineProperty$1 = objectDefineProperty.f;
|
|
1685
1689
|
var defineIterator = iteratorDefine;
|
|
1686
1690
|
var createIterResultObject = createIterResultObject$1;
|
|
1687
|
-
var DESCRIPTORS$
|
|
1691
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1688
1692
|
|
|
1689
1693
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1690
1694
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
1691
|
-
var getInternalState$
|
|
1695
|
+
var getInternalState$2 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1692
1696
|
|
|
1693
1697
|
// `Array.prototype.entries` method
|
|
1694
1698
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1710,7 +1714,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1710
1714
|
// `%ArrayIteratorPrototype%.next` method
|
|
1711
1715
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1712
1716
|
}, function () {
|
|
1713
|
-
var state = getInternalState$
|
|
1717
|
+
var state = getInternalState$2(this);
|
|
1714
1718
|
var target = state.target;
|
|
1715
1719
|
var index = state.index++;
|
|
1716
1720
|
if (!target || index >= target.length) {
|
|
@@ -1734,7 +1738,7 @@ addToUnscopables$2('values');
|
|
|
1734
1738
|
addToUnscopables$2('entries');
|
|
1735
1739
|
|
|
1736
1740
|
// V8 ~ Chrome 45- bug
|
|
1737
|
-
if (DESCRIPTORS$
|
|
1741
|
+
if (DESCRIPTORS$5 && values.name !== 'values') try {
|
|
1738
1742
|
defineProperty$1(values, 'name', { value: 'values' });
|
|
1739
1743
|
} catch (error) { /* empty */ }
|
|
1740
1744
|
|
|
@@ -1782,11 +1786,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1782
1786
|
|
|
1783
1787
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1784
1788
|
|
|
1785
|
-
var global$
|
|
1789
|
+
var global$e = global$p;
|
|
1786
1790
|
var DOMIterables = domIterables;
|
|
1787
1791
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1788
1792
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1789
|
-
var createNonEnumerableProperty$
|
|
1793
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$9;
|
|
1790
1794
|
var setToStringTag$1 = setToStringTag$4;
|
|
1791
1795
|
var wellKnownSymbol$b = wellKnownSymbol$j;
|
|
1792
1796
|
|
|
@@ -1797,7 +1801,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1797
1801
|
if (CollectionPrototype) {
|
|
1798
1802
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1799
1803
|
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
1800
|
-
createNonEnumerableProperty$
|
|
1804
|
+
createNonEnumerableProperty$5(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1801
1805
|
} catch (error) {
|
|
1802
1806
|
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
1803
1807
|
}
|
|
@@ -1805,7 +1809,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1805
1809
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1806
1810
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1807
1811
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1808
|
-
createNonEnumerableProperty$
|
|
1812
|
+
createNonEnumerableProperty$5(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1809
1813
|
} catch (error) {
|
|
1810
1814
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1811
1815
|
}
|
|
@@ -1814,7 +1818,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1814
1818
|
};
|
|
1815
1819
|
|
|
1816
1820
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1817
|
-
handlePrototype(global$
|
|
1821
|
+
handlePrototype(global$e[COLLECTION_NAME] && global$e[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1818
1822
|
}
|
|
1819
1823
|
|
|
1820
1824
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -2031,53 +2035,53 @@ const ConfirmationDialog = _a => {
|
|
|
2031
2035
|
}, rest), content);
|
|
2032
2036
|
};
|
|
2033
2037
|
|
|
2034
|
-
var global$
|
|
2035
|
-
var classof$
|
|
2038
|
+
var global$d = global$p;
|
|
2039
|
+
var classof$6 = classofRaw$2;
|
|
2036
2040
|
|
|
2037
|
-
var engineIsNode = classof$
|
|
2041
|
+
var engineIsNode = classof$6(global$d.process) === 'process';
|
|
2038
2042
|
|
|
2039
|
-
var getBuiltIn$
|
|
2040
|
-
var defineBuiltInAccessor = defineBuiltInAccessor$
|
|
2043
|
+
var getBuiltIn$4 = getBuiltIn$8;
|
|
2044
|
+
var defineBuiltInAccessor$1 = defineBuiltInAccessor$3;
|
|
2041
2045
|
var wellKnownSymbol$a = wellKnownSymbol$j;
|
|
2042
|
-
var DESCRIPTORS$
|
|
2046
|
+
var DESCRIPTORS$4 = descriptors;
|
|
2043
2047
|
|
|
2044
2048
|
var SPECIES$4 = wellKnownSymbol$a('species');
|
|
2045
2049
|
|
|
2046
2050
|
var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
2047
|
-
var Constructor = getBuiltIn$
|
|
2051
|
+
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
2048
2052
|
|
|
2049
|
-
if (DESCRIPTORS$
|
|
2050
|
-
defineBuiltInAccessor(Constructor, SPECIES$4, {
|
|
2053
|
+
if (DESCRIPTORS$4 && Constructor && !Constructor[SPECIES$4]) {
|
|
2054
|
+
defineBuiltInAccessor$1(Constructor, SPECIES$4, {
|
|
2051
2055
|
configurable: true,
|
|
2052
2056
|
get: function () { return this; }
|
|
2053
2057
|
});
|
|
2054
2058
|
}
|
|
2055
2059
|
};
|
|
2056
2060
|
|
|
2057
|
-
var isPrototypeOf$
|
|
2061
|
+
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
2058
2062
|
|
|
2059
|
-
var $TypeError$
|
|
2063
|
+
var $TypeError$a = TypeError;
|
|
2060
2064
|
|
|
2061
2065
|
var anInstance$1 = function (it, Prototype) {
|
|
2062
|
-
if (isPrototypeOf$
|
|
2063
|
-
throw new $TypeError$
|
|
2066
|
+
if (isPrototypeOf$4(Prototype, it)) return it;
|
|
2067
|
+
throw new $TypeError$a('Incorrect invocation');
|
|
2064
2068
|
};
|
|
2065
2069
|
|
|
2066
|
-
var uncurryThis$
|
|
2067
|
-
var fails$
|
|
2068
|
-
var isCallable$
|
|
2069
|
-
var classof$
|
|
2070
|
-
var getBuiltIn$
|
|
2070
|
+
var uncurryThis$c = functionUncurryThis;
|
|
2071
|
+
var fails$c = fails$o;
|
|
2072
|
+
var isCallable$7 = isCallable$n;
|
|
2073
|
+
var classof$5 = classof$8;
|
|
2074
|
+
var getBuiltIn$3 = getBuiltIn$8;
|
|
2071
2075
|
var inspectSource$1 = inspectSource$3;
|
|
2072
2076
|
|
|
2073
2077
|
var noop = function () { /* empty */ };
|
|
2074
|
-
var construct = getBuiltIn$
|
|
2078
|
+
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
2075
2079
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
2076
|
-
var exec$3 = uncurryThis$
|
|
2080
|
+
var exec$3 = uncurryThis$c(constructorRegExp.exec);
|
|
2077
2081
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
2078
2082
|
|
|
2079
2083
|
var isConstructorModern = function isConstructor(argument) {
|
|
2080
|
-
if (!isCallable$
|
|
2084
|
+
if (!isCallable$7(argument)) return false;
|
|
2081
2085
|
try {
|
|
2082
2086
|
construct(noop, [], argument);
|
|
2083
2087
|
return true;
|
|
@@ -2087,8 +2091,8 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
2087
2091
|
};
|
|
2088
2092
|
|
|
2089
2093
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
2090
|
-
if (!isCallable$
|
|
2091
|
-
switch (classof$
|
|
2094
|
+
if (!isCallable$7(argument)) return false;
|
|
2095
|
+
switch (classof$5(argument)) {
|
|
2092
2096
|
case 'AsyncFunction':
|
|
2093
2097
|
case 'GeneratorFunction':
|
|
2094
2098
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -2107,7 +2111,7 @@ isConstructorLegacy.sham = true;
|
|
|
2107
2111
|
|
|
2108
2112
|
// `IsConstructor` abstract operation
|
|
2109
2113
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2110
|
-
var isConstructor$2 = !construct || fails$
|
|
2114
|
+
var isConstructor$2 = !construct || fails$c(function () {
|
|
2111
2115
|
var called;
|
|
2112
2116
|
return isConstructorModern(isConstructorModern.call)
|
|
2113
2117
|
|| !isConstructorModern(Object)
|
|
@@ -2118,15 +2122,15 @@ var isConstructor$2 = !construct || fails$b(function () {
|
|
|
2118
2122
|
var isConstructor$1 = isConstructor$2;
|
|
2119
2123
|
var tryToString$2 = tryToString$4;
|
|
2120
2124
|
|
|
2121
|
-
var $TypeError$
|
|
2125
|
+
var $TypeError$9 = TypeError;
|
|
2122
2126
|
|
|
2123
2127
|
// `Assert: IsConstructor(argument) is true`
|
|
2124
2128
|
var aConstructor$1 = function (argument) {
|
|
2125
2129
|
if (isConstructor$1(argument)) return argument;
|
|
2126
|
-
throw new $TypeError$
|
|
2130
|
+
throw new $TypeError$9(tryToString$2(argument) + ' is not a constructor');
|
|
2127
2131
|
};
|
|
2128
2132
|
|
|
2129
|
-
var anObject$
|
|
2133
|
+
var anObject$b = anObject$g;
|
|
2130
2134
|
var aConstructor = aConstructor$1;
|
|
2131
2135
|
var isNullOrUndefined$4 = isNullOrUndefined$7;
|
|
2132
2136
|
var wellKnownSymbol$9 = wellKnownSymbol$j;
|
|
@@ -2136,37 +2140,37 @@ var SPECIES$3 = wellKnownSymbol$9('species');
|
|
|
2136
2140
|
// `SpeciesConstructor` abstract operation
|
|
2137
2141
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2138
2142
|
var speciesConstructor$2 = function (O, defaultConstructor) {
|
|
2139
|
-
var C = anObject$
|
|
2143
|
+
var C = anObject$b(O).constructor;
|
|
2140
2144
|
var S;
|
|
2141
|
-
return C === undefined || isNullOrUndefined$4(S = anObject$
|
|
2145
|
+
return C === undefined || isNullOrUndefined$4(S = anObject$b(C)[SPECIES$3]) ? defaultConstructor : aConstructor(S);
|
|
2142
2146
|
};
|
|
2143
2147
|
|
|
2144
2148
|
var NATIVE_BIND$1 = functionBindNative;
|
|
2145
2149
|
|
|
2146
2150
|
var FunctionPrototype = Function.prototype;
|
|
2147
|
-
var apply$
|
|
2148
|
-
var call$
|
|
2151
|
+
var apply$2 = FunctionPrototype.apply;
|
|
2152
|
+
var call$e = FunctionPrototype.call;
|
|
2149
2153
|
|
|
2150
2154
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
2151
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
2152
|
-
return call$
|
|
2155
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$e.bind(apply$2) : function () {
|
|
2156
|
+
return call$e.apply(apply$2, arguments);
|
|
2153
2157
|
});
|
|
2154
2158
|
|
|
2155
2159
|
var classofRaw = classofRaw$2;
|
|
2156
|
-
var uncurryThis$
|
|
2160
|
+
var uncurryThis$b = functionUncurryThis;
|
|
2157
2161
|
|
|
2158
2162
|
var functionUncurryThisClause = function (fn) {
|
|
2159
2163
|
// Nashorn bug:
|
|
2160
2164
|
// https://github.com/zloirock/core-js/issues/1128
|
|
2161
2165
|
// https://github.com/zloirock/core-js/issues/1130
|
|
2162
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
2166
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$b(fn);
|
|
2163
2167
|
};
|
|
2164
2168
|
|
|
2165
|
-
var uncurryThis$
|
|
2169
|
+
var uncurryThis$a = functionUncurryThisClause;
|
|
2166
2170
|
var aCallable$6 = aCallable$9;
|
|
2167
2171
|
var NATIVE_BIND = functionBindNative;
|
|
2168
2172
|
|
|
2169
|
-
var bind$5 = uncurryThis$
|
|
2173
|
+
var bind$5 = uncurryThis$a(uncurryThis$a.bind);
|
|
2170
2174
|
|
|
2171
2175
|
// optional / simple context binding
|
|
2172
2176
|
var functionBindContext = function (fn, that) {
|
|
@@ -2176,14 +2180,14 @@ var functionBindContext = function (fn, that) {
|
|
|
2176
2180
|
};
|
|
2177
2181
|
};
|
|
2178
2182
|
|
|
2179
|
-
var uncurryThis$
|
|
2183
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
2180
2184
|
|
|
2181
|
-
var arraySlice$1 = uncurryThis$
|
|
2185
|
+
var arraySlice$1 = uncurryThis$9([].slice);
|
|
2182
2186
|
|
|
2183
|
-
var $TypeError$
|
|
2187
|
+
var $TypeError$8 = TypeError;
|
|
2184
2188
|
|
|
2185
2189
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
2186
|
-
if (passed < required) throw new $TypeError$
|
|
2190
|
+
if (passed < required) throw new $TypeError$8('Not enough arguments');
|
|
2187
2191
|
return passed;
|
|
2188
2192
|
};
|
|
2189
2193
|
|
|
@@ -2192,12 +2196,12 @@ var userAgent$2 = engineUserAgent;
|
|
|
2192
2196
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2193
2197
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2194
2198
|
|
|
2195
|
-
var global$
|
|
2196
|
-
var apply = functionApply;
|
|
2199
|
+
var global$c = global$p;
|
|
2200
|
+
var apply$1 = functionApply;
|
|
2197
2201
|
var bind$4 = functionBindContext;
|
|
2198
|
-
var isCallable$
|
|
2199
|
-
var hasOwn$
|
|
2200
|
-
var fails$
|
|
2202
|
+
var isCallable$6 = isCallable$n;
|
|
2203
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
2204
|
+
var fails$b = fails$o;
|
|
2201
2205
|
var html = html$2;
|
|
2202
2206
|
var arraySlice = arraySlice$1;
|
|
2203
2207
|
var createElement = documentCreateElement$2;
|
|
@@ -2205,25 +2209,25 @@ var validateArgumentsLength = validateArgumentsLength$1;
|
|
|
2205
2209
|
var IS_IOS$1 = engineIsIos;
|
|
2206
2210
|
var IS_NODE$4 = engineIsNode;
|
|
2207
2211
|
|
|
2208
|
-
var set$1 = global$
|
|
2209
|
-
var clear = global$
|
|
2210
|
-
var process$2 = global$
|
|
2211
|
-
var Dispatch = global$
|
|
2212
|
-
var Function$1 = global$
|
|
2213
|
-
var MessageChannel = global$
|
|
2214
|
-
var String$1 = global$
|
|
2212
|
+
var set$1 = global$c.setImmediate;
|
|
2213
|
+
var clear = global$c.clearImmediate;
|
|
2214
|
+
var process$2 = global$c.process;
|
|
2215
|
+
var Dispatch = global$c.Dispatch;
|
|
2216
|
+
var Function$1 = global$c.Function;
|
|
2217
|
+
var MessageChannel = global$c.MessageChannel;
|
|
2218
|
+
var String$1 = global$c.String;
|
|
2215
2219
|
var counter = 0;
|
|
2216
2220
|
var queue$2 = {};
|
|
2217
2221
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2218
2222
|
var $location, defer, channel, port;
|
|
2219
2223
|
|
|
2220
|
-
fails$
|
|
2224
|
+
fails$b(function () {
|
|
2221
2225
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2222
|
-
$location = global$
|
|
2226
|
+
$location = global$c.location;
|
|
2223
2227
|
});
|
|
2224
2228
|
|
|
2225
2229
|
var run = function (id) {
|
|
2226
|
-
if (hasOwn$
|
|
2230
|
+
if (hasOwn$3(queue$2, id)) {
|
|
2227
2231
|
var fn = queue$2[id];
|
|
2228
2232
|
delete queue$2[id];
|
|
2229
2233
|
fn();
|
|
@@ -2242,17 +2246,17 @@ var eventListener = function (event) {
|
|
|
2242
2246
|
|
|
2243
2247
|
var globalPostMessageDefer = function (id) {
|
|
2244
2248
|
// old engines have not location.origin
|
|
2245
|
-
global$
|
|
2249
|
+
global$c.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
2246
2250
|
};
|
|
2247
2251
|
|
|
2248
2252
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2249
2253
|
if (!set$1 || !clear) {
|
|
2250
2254
|
set$1 = function setImmediate(handler) {
|
|
2251
2255
|
validateArgumentsLength(arguments.length, 1);
|
|
2252
|
-
var fn = isCallable$
|
|
2256
|
+
var fn = isCallable$6(handler) ? handler : Function$1(handler);
|
|
2253
2257
|
var args = arraySlice(arguments, 1);
|
|
2254
2258
|
queue$2[++counter] = function () {
|
|
2255
|
-
apply(fn, undefined, args);
|
|
2259
|
+
apply$1(fn, undefined, args);
|
|
2256
2260
|
};
|
|
2257
2261
|
defer(counter);
|
|
2258
2262
|
return counter;
|
|
@@ -2280,14 +2284,14 @@ if (!set$1 || !clear) {
|
|
|
2280
2284
|
// Browsers with postMessage, skip WebWorkers
|
|
2281
2285
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2282
2286
|
} else if (
|
|
2283
|
-
global$
|
|
2284
|
-
isCallable$
|
|
2285
|
-
!global$
|
|
2287
|
+
global$c.addEventListener &&
|
|
2288
|
+
isCallable$6(global$c.postMessage) &&
|
|
2289
|
+
!global$c.importScripts &&
|
|
2286
2290
|
$location && $location.protocol !== 'file:' &&
|
|
2287
|
-
!fails$
|
|
2291
|
+
!fails$b(globalPostMessageDefer)
|
|
2288
2292
|
) {
|
|
2289
2293
|
defer = globalPostMessageDefer;
|
|
2290
|
-
global$
|
|
2294
|
+
global$c.addEventListener('message', eventListener, false);
|
|
2291
2295
|
// IE8-
|
|
2292
2296
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2293
2297
|
defer = function (id) {
|
|
@@ -2309,16 +2313,16 @@ var task$1 = {
|
|
|
2309
2313
|
clear: clear
|
|
2310
2314
|
};
|
|
2311
2315
|
|
|
2312
|
-
var global$
|
|
2313
|
-
var DESCRIPTORS$
|
|
2316
|
+
var global$b = global$p;
|
|
2317
|
+
var DESCRIPTORS$3 = descriptors;
|
|
2314
2318
|
|
|
2315
2319
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2316
2320
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2317
2321
|
|
|
2318
2322
|
// Avoid NodeJS experimental warning
|
|
2319
2323
|
var safeGetBuiltIn$1 = function (name) {
|
|
2320
|
-
if (!DESCRIPTORS$
|
|
2321
|
-
var descriptor = getOwnPropertyDescriptor(global$
|
|
2324
|
+
if (!DESCRIPTORS$3) return global$b[name];
|
|
2325
|
+
var descriptor = getOwnPropertyDescriptor(global$b, name);
|
|
2322
2326
|
return descriptor && descriptor.value;
|
|
2323
2327
|
};
|
|
2324
2328
|
|
|
@@ -2355,7 +2359,7 @@ var userAgent = engineUserAgent;
|
|
|
2355
2359
|
|
|
2356
2360
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2357
2361
|
|
|
2358
|
-
var global$
|
|
2362
|
+
var global$a = global$p;
|
|
2359
2363
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
2360
2364
|
var bind$3 = functionBindContext;
|
|
2361
2365
|
var macrotask = task$1.set;
|
|
@@ -2365,10 +2369,10 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
2365
2369
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2366
2370
|
var IS_NODE$3 = engineIsNode;
|
|
2367
2371
|
|
|
2368
|
-
var MutationObserver = global$
|
|
2369
|
-
var document$2 = global$
|
|
2370
|
-
var process$1 = global$
|
|
2371
|
-
var Promise$1 = global$
|
|
2372
|
+
var MutationObserver = global$a.MutationObserver || global$a.WebKitMutationObserver;
|
|
2373
|
+
var document$2 = global$a.document;
|
|
2374
|
+
var process$1 = global$a.process;
|
|
2375
|
+
var Promise$1 = global$a.Promise;
|
|
2372
2376
|
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
2373
2377
|
var notify$1, toggle, node, promise, then;
|
|
2374
2378
|
|
|
@@ -2420,7 +2424,7 @@ if (!microtask$1) {
|
|
|
2420
2424
|
// - setTimeout
|
|
2421
2425
|
} else {
|
|
2422
2426
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
2423
|
-
macrotask = bind$3(macrotask, global$
|
|
2427
|
+
macrotask = bind$3(macrotask, global$a);
|
|
2424
2428
|
notify$1 = function () {
|
|
2425
2429
|
macrotask(flush);
|
|
2426
2430
|
};
|
|
@@ -2449,9 +2453,9 @@ var perform$3 = function (exec) {
|
|
|
2449
2453
|
}
|
|
2450
2454
|
};
|
|
2451
2455
|
|
|
2452
|
-
var global$
|
|
2456
|
+
var global$9 = global$p;
|
|
2453
2457
|
|
|
2454
|
-
var promiseNativeConstructor = global$
|
|
2458
|
+
var promiseNativeConstructor = global$9.Promise;
|
|
2455
2459
|
|
|
2456
2460
|
/* global Deno -- Deno case */
|
|
2457
2461
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
@@ -2463,9 +2467,9 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
|
|
|
2463
2467
|
&& typeof window == 'object'
|
|
2464
2468
|
&& typeof document == 'object';
|
|
2465
2469
|
|
|
2466
|
-
var global$
|
|
2470
|
+
var global$8 = global$p;
|
|
2467
2471
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2468
|
-
var isCallable$
|
|
2472
|
+
var isCallable$5 = isCallable$n;
|
|
2469
2473
|
var isForced$1 = isForced_1;
|
|
2470
2474
|
var inspectSource = inspectSource$3;
|
|
2471
2475
|
var wellKnownSymbol$8 = wellKnownSymbol$j;
|
|
@@ -2476,7 +2480,7 @@ var V8_VERSION = engineV8Version;
|
|
|
2476
2480
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2477
2481
|
var SPECIES$2 = wellKnownSymbol$8('species');
|
|
2478
2482
|
var SUBCLASSING = false;
|
|
2479
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
2483
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$8.PromiseRejectionEvent);
|
|
2480
2484
|
|
|
2481
2485
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced$1('Promise', function () {
|
|
2482
2486
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -2512,12 +2516,12 @@ var newPromiseCapability$2 = {};
|
|
|
2512
2516
|
|
|
2513
2517
|
var aCallable$5 = aCallable$9;
|
|
2514
2518
|
|
|
2515
|
-
var $TypeError$
|
|
2519
|
+
var $TypeError$7 = TypeError;
|
|
2516
2520
|
|
|
2517
2521
|
var PromiseCapability = function (C) {
|
|
2518
2522
|
var resolve, reject;
|
|
2519
2523
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
2520
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
2524
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$7('Bad Promise constructor');
|
|
2521
2525
|
resolve = $$resolve;
|
|
2522
2526
|
reject = $$reject;
|
|
2523
2527
|
});
|
|
@@ -2531,17 +2535,17 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2531
2535
|
return new PromiseCapability(C);
|
|
2532
2536
|
};
|
|
2533
2537
|
|
|
2534
|
-
var $$
|
|
2538
|
+
var $$e = _export;
|
|
2535
2539
|
var IS_NODE$1 = engineIsNode;
|
|
2536
|
-
var global$
|
|
2537
|
-
var call$
|
|
2540
|
+
var global$7 = global$p;
|
|
2541
|
+
var call$d = functionCall;
|
|
2538
2542
|
var defineBuiltIn$4 = defineBuiltIn$8;
|
|
2539
|
-
var setPrototypeOf$
|
|
2543
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
2540
2544
|
var setToStringTag = setToStringTag$4;
|
|
2541
2545
|
var setSpecies$1 = setSpecies$2;
|
|
2542
2546
|
var aCallable$4 = aCallable$9;
|
|
2543
|
-
var isCallable$
|
|
2544
|
-
var isObject$
|
|
2547
|
+
var isCallable$4 = isCallable$n;
|
|
2548
|
+
var isObject$5 = isObject$e;
|
|
2545
2549
|
var anInstance = anInstance$1;
|
|
2546
2550
|
var speciesConstructor$1 = speciesConstructor$2;
|
|
2547
2551
|
var task = task$1.set;
|
|
@@ -2563,13 +2567,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
2563
2567
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
2564
2568
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
2565
2569
|
var PromisePrototype = NativePromisePrototype$1;
|
|
2566
|
-
var TypeError$1 = global$
|
|
2567
|
-
var document$1 = global$
|
|
2568
|
-
var process = global$
|
|
2570
|
+
var TypeError$1 = global$7.TypeError;
|
|
2571
|
+
var document$1 = global$7.document;
|
|
2572
|
+
var process = global$7.process;
|
|
2569
2573
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
2570
2574
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
2571
2575
|
|
|
2572
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
2576
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$7.dispatchEvent);
|
|
2573
2577
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2574
2578
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2575
2579
|
var PENDING = 0;
|
|
@@ -2583,7 +2587,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
2583
2587
|
// helpers
|
|
2584
2588
|
var isThenable = function (it) {
|
|
2585
2589
|
var then;
|
|
2586
|
-
return isObject$
|
|
2590
|
+
return isObject$5(it) && isCallable$4(then = it.then) ? then : false;
|
|
2587
2591
|
};
|
|
2588
2592
|
|
|
2589
2593
|
var callReaction = function (reaction, state) {
|
|
@@ -2612,7 +2616,7 @@ var callReaction = function (reaction, state) {
|
|
|
2612
2616
|
if (result === reaction.promise) {
|
|
2613
2617
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
2614
2618
|
} else if (then = isThenable(result)) {
|
|
2615
|
-
call$
|
|
2619
|
+
call$d(then, result, resolve, reject);
|
|
2616
2620
|
} else resolve(result);
|
|
2617
2621
|
} else reject(value);
|
|
2618
2622
|
} catch (error) {
|
|
@@ -2642,14 +2646,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
2642
2646
|
event.promise = promise;
|
|
2643
2647
|
event.reason = reason;
|
|
2644
2648
|
event.initEvent(name, false, true);
|
|
2645
|
-
global$
|
|
2649
|
+
global$7.dispatchEvent(event);
|
|
2646
2650
|
} else event = { promise: promise, reason: reason };
|
|
2647
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
2651
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$7['on' + name])) handler(event);
|
|
2648
2652
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2649
2653
|
};
|
|
2650
2654
|
|
|
2651
2655
|
var onUnhandled = function (state) {
|
|
2652
|
-
call$
|
|
2656
|
+
call$d(task, global$7, function () {
|
|
2653
2657
|
var promise = state.facade;
|
|
2654
2658
|
var value = state.value;
|
|
2655
2659
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -2672,7 +2676,7 @@ var isUnhandled = function (state) {
|
|
|
2672
2676
|
};
|
|
2673
2677
|
|
|
2674
2678
|
var onHandleUnhandled = function (state) {
|
|
2675
|
-
call$
|
|
2679
|
+
call$d(task, global$7, function () {
|
|
2676
2680
|
var promise = state.facade;
|
|
2677
2681
|
if (IS_NODE$1) {
|
|
2678
2682
|
process.emit('rejectionHandled', promise);
|
|
@@ -2706,7 +2710,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
2706
2710
|
microtask(function () {
|
|
2707
2711
|
var wrapper = { done: false };
|
|
2708
2712
|
try {
|
|
2709
|
-
call$
|
|
2713
|
+
call$d(then, value,
|
|
2710
2714
|
bind$2(internalResolve, wrapper, state),
|
|
2711
2715
|
bind$2(internalReject, wrapper, state)
|
|
2712
2716
|
);
|
|
@@ -2730,7 +2734,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2730
2734
|
PromiseConstructor = function Promise(executor) {
|
|
2731
2735
|
anInstance(this, PromisePrototype);
|
|
2732
2736
|
aCallable$4(executor);
|
|
2733
|
-
call$
|
|
2737
|
+
call$d(Internal, this);
|
|
2734
2738
|
var state = getInternalPromiseState(this);
|
|
2735
2739
|
try {
|
|
2736
2740
|
executor(bind$2(internalResolve, state), bind$2(internalReject, state));
|
|
@@ -2761,8 +2765,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2761
2765
|
var state = getInternalPromiseState(this);
|
|
2762
2766
|
var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
|
|
2763
2767
|
state.parent = true;
|
|
2764
|
-
reaction.ok = isCallable$
|
|
2765
|
-
reaction.fail = isCallable$
|
|
2768
|
+
reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
|
|
2769
|
+
reaction.fail = isCallable$4(onRejected) && onRejected;
|
|
2766
2770
|
reaction.domain = IS_NODE$1 ? process.domain : undefined;
|
|
2767
2771
|
if (state.state === PENDING) state.reactions.add(reaction);
|
|
2768
2772
|
else microtask(function () {
|
|
@@ -2785,7 +2789,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2785
2789
|
: newGenericPromiseCapability(C);
|
|
2786
2790
|
};
|
|
2787
2791
|
|
|
2788
|
-
if (isCallable$
|
|
2792
|
+
if (isCallable$4(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
2789
2793
|
nativeThen = NativePromisePrototype$1.then;
|
|
2790
2794
|
|
|
2791
2795
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
@@ -2793,7 +2797,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2793
2797
|
defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
2794
2798
|
var that = this;
|
|
2795
2799
|
return new PromiseConstructor(function (resolve, reject) {
|
|
2796
|
-
call$
|
|
2800
|
+
call$d(nativeThen, that, resolve, reject);
|
|
2797
2801
|
}).then(onFulfilled, onRejected);
|
|
2798
2802
|
// https://github.com/zloirock/core-js/issues/640
|
|
2799
2803
|
}, { unsafe: true });
|
|
@@ -2805,13 +2809,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2805
2809
|
} catch (error) { /* empty */ }
|
|
2806
2810
|
|
|
2807
2811
|
// make `instanceof Promise` work for native promise-based APIs
|
|
2808
|
-
if (setPrototypeOf$
|
|
2809
|
-
setPrototypeOf$
|
|
2812
|
+
if (setPrototypeOf$2) {
|
|
2813
|
+
setPrototypeOf$2(NativePromisePrototype$1, PromisePrototype);
|
|
2810
2814
|
}
|
|
2811
2815
|
}
|
|
2812
2816
|
}
|
|
2813
2817
|
|
|
2814
|
-
$$
|
|
2818
|
+
$$e({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2815
2819
|
Promise: PromiseConstructor
|
|
2816
2820
|
});
|
|
2817
2821
|
|
|
@@ -2829,7 +2833,7 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
2829
2833
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
|
|
2830
2834
|
};
|
|
2831
2835
|
|
|
2832
|
-
var classof$
|
|
2836
|
+
var classof$4 = classof$8;
|
|
2833
2837
|
var getMethod$4 = getMethod$6;
|
|
2834
2838
|
var isNullOrUndefined$3 = isNullOrUndefined$7;
|
|
2835
2839
|
var Iterators = iterators;
|
|
@@ -2840,59 +2844,59 @@ var ITERATOR$2 = wellKnownSymbol$6('iterator');
|
|
|
2840
2844
|
var getIteratorMethod$2 = function (it) {
|
|
2841
2845
|
if (!isNullOrUndefined$3(it)) return getMethod$4(it, ITERATOR$2)
|
|
2842
2846
|
|| getMethod$4(it, '@@iterator')
|
|
2843
|
-
|| Iterators[classof$
|
|
2847
|
+
|| Iterators[classof$4(it)];
|
|
2844
2848
|
};
|
|
2845
2849
|
|
|
2846
|
-
var call$
|
|
2850
|
+
var call$c = functionCall;
|
|
2847
2851
|
var aCallable$3 = aCallable$9;
|
|
2848
|
-
var anObject$
|
|
2852
|
+
var anObject$a = anObject$g;
|
|
2849
2853
|
var tryToString$1 = tryToString$4;
|
|
2850
2854
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2851
2855
|
|
|
2852
|
-
var $TypeError$
|
|
2856
|
+
var $TypeError$6 = TypeError;
|
|
2853
2857
|
|
|
2854
2858
|
var getIterator$1 = function (argument, usingIterator) {
|
|
2855
2859
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
2856
|
-
if (aCallable$3(iteratorMethod)) return anObject$
|
|
2857
|
-
throw new $TypeError$
|
|
2860
|
+
if (aCallable$3(iteratorMethod)) return anObject$a(call$c(iteratorMethod, argument));
|
|
2861
|
+
throw new $TypeError$6(tryToString$1(argument) + ' is not iterable');
|
|
2858
2862
|
};
|
|
2859
2863
|
|
|
2860
|
-
var call$
|
|
2861
|
-
var anObject$
|
|
2864
|
+
var call$b = functionCall;
|
|
2865
|
+
var anObject$9 = anObject$g;
|
|
2862
2866
|
var getMethod$3 = getMethod$6;
|
|
2863
2867
|
|
|
2864
2868
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
2865
2869
|
var innerResult, innerError;
|
|
2866
|
-
anObject$
|
|
2870
|
+
anObject$9(iterator);
|
|
2867
2871
|
try {
|
|
2868
2872
|
innerResult = getMethod$3(iterator, 'return');
|
|
2869
2873
|
if (!innerResult) {
|
|
2870
2874
|
if (kind === 'throw') throw value;
|
|
2871
2875
|
return value;
|
|
2872
2876
|
}
|
|
2873
|
-
innerResult = call$
|
|
2877
|
+
innerResult = call$b(innerResult, iterator);
|
|
2874
2878
|
} catch (error) {
|
|
2875
2879
|
innerError = true;
|
|
2876
2880
|
innerResult = error;
|
|
2877
2881
|
}
|
|
2878
2882
|
if (kind === 'throw') throw value;
|
|
2879
2883
|
if (innerError) throw innerResult;
|
|
2880
|
-
anObject$
|
|
2884
|
+
anObject$9(innerResult);
|
|
2881
2885
|
return value;
|
|
2882
2886
|
};
|
|
2883
2887
|
|
|
2884
2888
|
var bind$1 = functionBindContext;
|
|
2885
|
-
var call$
|
|
2886
|
-
var anObject$
|
|
2889
|
+
var call$a = functionCall;
|
|
2890
|
+
var anObject$8 = anObject$g;
|
|
2887
2891
|
var tryToString = tryToString$4;
|
|
2888
2892
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2889
2893
|
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
2890
|
-
var isPrototypeOf$
|
|
2894
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
2891
2895
|
var getIterator = getIterator$1;
|
|
2892
2896
|
var getIteratorMethod = getIteratorMethod$2;
|
|
2893
2897
|
var iteratorClose = iteratorClose$1;
|
|
2894
2898
|
|
|
2895
|
-
var $TypeError$
|
|
2899
|
+
var $TypeError$5 = TypeError;
|
|
2896
2900
|
|
|
2897
2901
|
var Result = function (stopped, result) {
|
|
2898
2902
|
this.stopped = stopped;
|
|
@@ -2917,7 +2921,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2917
2921
|
|
|
2918
2922
|
var callFn = function (value) {
|
|
2919
2923
|
if (AS_ENTRIES) {
|
|
2920
|
-
anObject$
|
|
2924
|
+
anObject$8(value);
|
|
2921
2925
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
2922
2926
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
2923
2927
|
};
|
|
@@ -2928,25 +2932,25 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2928
2932
|
iterator = iterable;
|
|
2929
2933
|
} else {
|
|
2930
2934
|
iterFn = getIteratorMethod(iterable);
|
|
2931
|
-
if (!iterFn) throw new $TypeError$
|
|
2935
|
+
if (!iterFn) throw new $TypeError$5(tryToString(iterable) + ' is not iterable');
|
|
2932
2936
|
// optimisation for array iterators
|
|
2933
2937
|
if (isArrayIteratorMethod(iterFn)) {
|
|
2934
2938
|
for (index = 0, length = lengthOfArrayLike$3(iterable); length > index; index++) {
|
|
2935
2939
|
result = callFn(iterable[index]);
|
|
2936
|
-
if (result && isPrototypeOf$
|
|
2940
|
+
if (result && isPrototypeOf$3(ResultPrototype, result)) return result;
|
|
2937
2941
|
} return new Result(false);
|
|
2938
2942
|
}
|
|
2939
2943
|
iterator = getIterator(iterable, iterFn);
|
|
2940
2944
|
}
|
|
2941
2945
|
|
|
2942
2946
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
2943
|
-
while (!(step = call$
|
|
2947
|
+
while (!(step = call$a(next, iterator)).done) {
|
|
2944
2948
|
try {
|
|
2945
2949
|
result = callFn(step.value);
|
|
2946
2950
|
} catch (error) {
|
|
2947
2951
|
iteratorClose(iterator, 'throw', error);
|
|
2948
2952
|
}
|
|
2949
|
-
if (typeof result == 'object' && result && isPrototypeOf$
|
|
2953
|
+
if (typeof result == 'object' && result && isPrototypeOf$3(ResultPrototype, result)) return result;
|
|
2950
2954
|
} return new Result(false);
|
|
2951
2955
|
};
|
|
2952
2956
|
|
|
@@ -2999,8 +3003,8 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2999
3003
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
3000
3004
|
});
|
|
3001
3005
|
|
|
3002
|
-
var $$
|
|
3003
|
-
var call$
|
|
3006
|
+
var $$d = _export;
|
|
3007
|
+
var call$9 = functionCall;
|
|
3004
3008
|
var aCallable$2 = aCallable$9;
|
|
3005
3009
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
3006
3010
|
var perform$1 = perform$3;
|
|
@@ -3009,7 +3013,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
3009
3013
|
|
|
3010
3014
|
// `Promise.all` method
|
|
3011
3015
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
3012
|
-
$$
|
|
3016
|
+
$$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
3013
3017
|
all: function all(iterable) {
|
|
3014
3018
|
var C = this;
|
|
3015
3019
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -3024,7 +3028,7 @@ $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
3024
3028
|
var index = counter++;
|
|
3025
3029
|
var alreadyCalled = false;
|
|
3026
3030
|
remaining++;
|
|
3027
|
-
call$
|
|
3031
|
+
call$9($promiseResolve, C, promise).then(function (value) {
|
|
3028
3032
|
if (alreadyCalled) return;
|
|
3029
3033
|
alreadyCalled = true;
|
|
3030
3034
|
values[index] = value;
|
|
@@ -3038,33 +3042,33 @@ $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
3038
3042
|
}
|
|
3039
3043
|
});
|
|
3040
3044
|
|
|
3041
|
-
var $$
|
|
3045
|
+
var $$c = _export;
|
|
3042
3046
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3043
3047
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
3044
|
-
var getBuiltIn$
|
|
3045
|
-
var isCallable$
|
|
3048
|
+
var getBuiltIn$2 = getBuiltIn$8;
|
|
3049
|
+
var isCallable$3 = isCallable$n;
|
|
3046
3050
|
var defineBuiltIn$3 = defineBuiltIn$8;
|
|
3047
3051
|
|
|
3048
3052
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
3049
3053
|
|
|
3050
3054
|
// `Promise.prototype.catch` method
|
|
3051
3055
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
3052
|
-
$$
|
|
3056
|
+
$$c({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
3053
3057
|
'catch': function (onRejected) {
|
|
3054
3058
|
return this.then(undefined, onRejected);
|
|
3055
3059
|
}
|
|
3056
3060
|
});
|
|
3057
3061
|
|
|
3058
3062
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
3059
|
-
if (isCallable$
|
|
3060
|
-
var method = getBuiltIn$
|
|
3063
|
+
if (isCallable$3(NativePromiseConstructor)) {
|
|
3064
|
+
var method = getBuiltIn$2('Promise').prototype['catch'];
|
|
3061
3065
|
if (NativePromisePrototype['catch'] !== method) {
|
|
3062
3066
|
defineBuiltIn$3(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
3063
3067
|
}
|
|
3064
3068
|
}
|
|
3065
3069
|
|
|
3066
|
-
var $$
|
|
3067
|
-
var call$
|
|
3070
|
+
var $$b = _export;
|
|
3071
|
+
var call$8 = functionCall;
|
|
3068
3072
|
var aCallable$1 = aCallable$9;
|
|
3069
3073
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
3070
3074
|
var perform = perform$3;
|
|
@@ -3073,7 +3077,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
3073
3077
|
|
|
3074
3078
|
// `Promise.race` method
|
|
3075
3079
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
3076
|
-
$$
|
|
3080
|
+
$$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
3077
3081
|
race: function race(iterable) {
|
|
3078
3082
|
var C = this;
|
|
3079
3083
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -3081,7 +3085,7 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
3081
3085
|
var result = perform(function () {
|
|
3082
3086
|
var $promiseResolve = aCallable$1(C.resolve);
|
|
3083
3087
|
iterate(iterable, function (promise) {
|
|
3084
|
-
call$
|
|
3088
|
+
call$8($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
3085
3089
|
});
|
|
3086
3090
|
});
|
|
3087
3091
|
if (result.error) reject(result.value);
|
|
@@ -3089,13 +3093,13 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
3089
3093
|
}
|
|
3090
3094
|
});
|
|
3091
3095
|
|
|
3092
|
-
var $$
|
|
3096
|
+
var $$a = _export;
|
|
3093
3097
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
3094
3098
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3095
3099
|
|
|
3096
3100
|
// `Promise.reject` method
|
|
3097
3101
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
3098
|
-
$$
|
|
3102
|
+
$$a({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
3099
3103
|
reject: function reject(r) {
|
|
3100
3104
|
var capability = newPromiseCapabilityModule.f(this);
|
|
3101
3105
|
var capabilityReject = capability.reject;
|
|
@@ -3104,29 +3108,29 @@ $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
3104
3108
|
}
|
|
3105
3109
|
});
|
|
3106
3110
|
|
|
3107
|
-
var anObject$
|
|
3108
|
-
var isObject$
|
|
3111
|
+
var anObject$7 = anObject$g;
|
|
3112
|
+
var isObject$4 = isObject$e;
|
|
3109
3113
|
var newPromiseCapability = newPromiseCapability$2;
|
|
3110
3114
|
|
|
3111
3115
|
var promiseResolve$1 = function (C, x) {
|
|
3112
|
-
anObject$
|
|
3113
|
-
if (isObject$
|
|
3116
|
+
anObject$7(C);
|
|
3117
|
+
if (isObject$4(x) && x.constructor === C) return x;
|
|
3114
3118
|
var promiseCapability = newPromiseCapability.f(C);
|
|
3115
3119
|
var resolve = promiseCapability.resolve;
|
|
3116
3120
|
resolve(x);
|
|
3117
3121
|
return promiseCapability.promise;
|
|
3118
3122
|
};
|
|
3119
3123
|
|
|
3120
|
-
var $$
|
|
3121
|
-
var getBuiltIn = getBuiltIn$
|
|
3124
|
+
var $$9 = _export;
|
|
3125
|
+
var getBuiltIn$1 = getBuiltIn$8;
|
|
3122
3126
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
3123
3127
|
var promiseResolve = promiseResolve$1;
|
|
3124
3128
|
|
|
3125
|
-
getBuiltIn('Promise');
|
|
3129
|
+
getBuiltIn$1('Promise');
|
|
3126
3130
|
|
|
3127
3131
|
// `Promise.resolve` method
|
|
3128
3132
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
3129
|
-
$$
|
|
3133
|
+
$$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
3130
3134
|
resolve: function resolve(x) {
|
|
3131
3135
|
return promiseResolve(this, x);
|
|
3132
3136
|
}
|
|
@@ -3323,6 +3327,25 @@ const useMakeSureContainerStaysInsideWindow = (nodeRef, position, setPosition) =
|
|
|
3323
3327
|
}, [onResizeWindow]);
|
|
3324
3328
|
};
|
|
3325
3329
|
|
|
3330
|
+
/*
|
|
3331
|
+
Accepts a value and timeout and will debounce
|
|
3332
|
+
|
|
3333
|
+
@param {string} value: value of element
|
|
3334
|
+
@param {timeout} number: timer
|
|
3335
|
+
@return {value: string}
|
|
3336
|
+
|
|
3337
|
+
@example:
|
|
3338
|
+
const debouncedName = useDebounce('testing', 2000)
|
|
3339
|
+
*/
|
|
3340
|
+
const useDebounce = (value, timeout) => {
|
|
3341
|
+
const [state, setState] = React.useState(value);
|
|
3342
|
+
React.useEffect(() => {
|
|
3343
|
+
const handler = setTimeout(() => setState(value), timeout);
|
|
3344
|
+
return () => clearTimeout(handler);
|
|
3345
|
+
}, [value, timeout]);
|
|
3346
|
+
return state;
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3326
3349
|
const ConfirmationServiceContext = /*#__PURE__*/React.createContext(Promise.reject);
|
|
3327
3350
|
const useConfirmationDialog = () => React.useContext(ConfirmationServiceContext);
|
|
3328
3351
|
const useDialogActions = (awaitingPromiseRef, defaultOptions = null) => {
|
|
@@ -3700,20 +3723,20 @@ const DraggableComponent$1 = _a => {
|
|
|
3700
3723
|
}), children);
|
|
3701
3724
|
};
|
|
3702
3725
|
|
|
3703
|
-
var classof$
|
|
3726
|
+
var classof$3 = classofRaw$2;
|
|
3704
3727
|
|
|
3705
3728
|
// `IsArray` abstract operation
|
|
3706
3729
|
// https://tc39.es/ecma262/#sec-isarray
|
|
3707
3730
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
3708
3731
|
var isArray$3 = Array.isArray || function isArray(argument) {
|
|
3709
|
-
return classof$
|
|
3732
|
+
return classof$3(argument) === 'Array';
|
|
3710
3733
|
};
|
|
3711
3734
|
|
|
3712
|
-
var $TypeError$
|
|
3735
|
+
var $TypeError$4 = TypeError;
|
|
3713
3736
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
3714
3737
|
|
|
3715
3738
|
var doesNotExceedSafeInteger$1 = function (it) {
|
|
3716
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
3739
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$4('Maximum allowed index exceeded');
|
|
3717
3740
|
return it;
|
|
3718
3741
|
};
|
|
3719
3742
|
|
|
@@ -3753,7 +3776,7 @@ var flattenIntoArray_1 = flattenIntoArray$1;
|
|
|
3753
3776
|
|
|
3754
3777
|
var isArray$1 = isArray$3;
|
|
3755
3778
|
var isConstructor = isConstructor$2;
|
|
3756
|
-
var isObject$
|
|
3779
|
+
var isObject$3 = isObject$e;
|
|
3757
3780
|
var wellKnownSymbol$4 = wellKnownSymbol$j;
|
|
3758
3781
|
|
|
3759
3782
|
var SPECIES$1 = wellKnownSymbol$4('species');
|
|
@@ -3767,7 +3790,7 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
3767
3790
|
C = originalArray.constructor;
|
|
3768
3791
|
// cross-realm fallback
|
|
3769
3792
|
if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
|
|
3770
|
-
else if (isObject$
|
|
3793
|
+
else if (isObject$3(C)) {
|
|
3771
3794
|
C = C[SPECIES$1];
|
|
3772
3795
|
if (C === null) C = undefined;
|
|
3773
3796
|
}
|
|
@@ -3782,7 +3805,7 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
3782
3805
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
3783
3806
|
};
|
|
3784
3807
|
|
|
3785
|
-
var $$
|
|
3808
|
+
var $$8 = _export;
|
|
3786
3809
|
var flattenIntoArray = flattenIntoArray_1;
|
|
3787
3810
|
var toObject$1 = toObject$5;
|
|
3788
3811
|
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
@@ -3791,7 +3814,7 @@ var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
|
3791
3814
|
|
|
3792
3815
|
// `Array.prototype.flat` method
|
|
3793
3816
|
// https://tc39.es/ecma262/#sec-array.prototype.flat
|
|
3794
|
-
$$
|
|
3817
|
+
$$8({ target: 'Array', proto: true }, {
|
|
3795
3818
|
flat: function flat(/* depthArg = 1 */) {
|
|
3796
3819
|
var depthArg = arguments.length ? arguments[0] : undefined;
|
|
3797
3820
|
var O = toObject$1(this);
|
|
@@ -3813,21 +3836,21 @@ addToUnscopables$1('flat');
|
|
|
3813
3836
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
3814
3837
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
3815
3838
|
|
|
3816
|
-
var uncurryThis$
|
|
3817
|
-
var requireObjectCoercible$5 = requireObjectCoercible$
|
|
3818
|
-
var toString$
|
|
3839
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
3840
|
+
var requireObjectCoercible$5 = requireObjectCoercible$9;
|
|
3841
|
+
var toString$a = toString$c;
|
|
3819
3842
|
var whitespaces$1 = whitespaces$2;
|
|
3820
3843
|
|
|
3821
|
-
var replace$
|
|
3844
|
+
var replace$3 = uncurryThis$8(''.replace);
|
|
3822
3845
|
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
3823
3846
|
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
3824
3847
|
|
|
3825
3848
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
3826
3849
|
var createMethod$2 = function (TYPE) {
|
|
3827
3850
|
return function ($this) {
|
|
3828
|
-
var string = toString$
|
|
3829
|
-
if (TYPE & 1) string = replace$
|
|
3830
|
-
if (TYPE & 2) string = replace$
|
|
3851
|
+
var string = toString$a(requireObjectCoercible$5($this));
|
|
3852
|
+
if (TYPE & 1) string = replace$3(string, ltrim, '');
|
|
3853
|
+
if (TYPE & 2) string = replace$3(string, rtrim, '$1');
|
|
3831
3854
|
return string;
|
|
3832
3855
|
};
|
|
3833
3856
|
};
|
|
@@ -3844,35 +3867,35 @@ var stringTrim = {
|
|
|
3844
3867
|
trim: createMethod$2(3)
|
|
3845
3868
|
};
|
|
3846
3869
|
|
|
3847
|
-
var global$
|
|
3848
|
-
var fails$
|
|
3849
|
-
var uncurryThis$
|
|
3850
|
-
var toString$
|
|
3870
|
+
var global$6 = global$p;
|
|
3871
|
+
var fails$a = fails$o;
|
|
3872
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
3873
|
+
var toString$9 = toString$c;
|
|
3851
3874
|
var trim = stringTrim.trim;
|
|
3852
3875
|
var whitespaces = whitespaces$2;
|
|
3853
3876
|
|
|
3854
|
-
var $parseInt$1 = global$
|
|
3855
|
-
var Symbol$1 = global$
|
|
3877
|
+
var $parseInt$1 = global$6.parseInt;
|
|
3878
|
+
var Symbol$1 = global$6.Symbol;
|
|
3856
3879
|
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
3857
3880
|
var hex = /^[+-]?0x/i;
|
|
3858
|
-
var exec$2 = uncurryThis$
|
|
3859
|
-
var FORCED$
|
|
3881
|
+
var exec$2 = uncurryThis$7(hex.exec);
|
|
3882
|
+
var FORCED$2 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
3860
3883
|
// MS Edge 18- broken with boxed symbols
|
|
3861
|
-
|| (ITERATOR && !fails$
|
|
3884
|
+
|| (ITERATOR && !fails$a(function () { $parseInt$1(Object(ITERATOR)); }));
|
|
3862
3885
|
|
|
3863
3886
|
// `parseInt` method
|
|
3864
3887
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
3865
|
-
var numberParseInt = FORCED$
|
|
3866
|
-
var S = trim(toString$
|
|
3888
|
+
var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
|
|
3889
|
+
var S = trim(toString$9(string));
|
|
3867
3890
|
return $parseInt$1(S, (radix >>> 0) || (exec$2(hex, S) ? 16 : 10));
|
|
3868
3891
|
} : $parseInt$1;
|
|
3869
3892
|
|
|
3870
|
-
var $$
|
|
3893
|
+
var $$7 = _export;
|
|
3871
3894
|
var $parseInt = numberParseInt;
|
|
3872
3895
|
|
|
3873
3896
|
// `parseInt` method
|
|
3874
3897
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
3875
|
-
$$
|
|
3898
|
+
$$7({ global: true, forced: parseInt !== $parseInt }, {
|
|
3876
3899
|
parseInt: $parseInt
|
|
3877
3900
|
});
|
|
3878
3901
|
|
|
@@ -3958,12 +3981,12 @@ const ResizeComponent = _a => {
|
|
|
3958
3981
|
}, props), children);
|
|
3959
3982
|
};
|
|
3960
3983
|
|
|
3961
|
-
var anObject$
|
|
3984
|
+
var anObject$6 = anObject$g;
|
|
3962
3985
|
|
|
3963
3986
|
// `RegExp.prototype.flags` getter implementation
|
|
3964
3987
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
3965
3988
|
var regexpFlags$1 = function () {
|
|
3966
|
-
var that = anObject$
|
|
3989
|
+
var that = anObject$6(this);
|
|
3967
3990
|
var result = '';
|
|
3968
3991
|
if (that.hasIndices) result += 'd';
|
|
3969
3992
|
if (that.global) result += 'g';
|
|
@@ -3976,39 +3999,39 @@ var regexpFlags$1 = function () {
|
|
|
3976
3999
|
return result;
|
|
3977
4000
|
};
|
|
3978
4001
|
|
|
3979
|
-
var call$
|
|
3980
|
-
var hasOwn$
|
|
3981
|
-
var isPrototypeOf$
|
|
4002
|
+
var call$7 = functionCall;
|
|
4003
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
4004
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
3982
4005
|
var regExpFlags = regexpFlags$1;
|
|
3983
4006
|
|
|
3984
|
-
var RegExpPrototype$
|
|
4007
|
+
var RegExpPrototype$4 = RegExp.prototype;
|
|
3985
4008
|
|
|
3986
4009
|
var regexpGetFlags = function (R) {
|
|
3987
4010
|
var flags = R.flags;
|
|
3988
|
-
return flags === undefined && !('flags' in RegExpPrototype$
|
|
3989
|
-
? call$
|
|
4011
|
+
return flags === undefined && !('flags' in RegExpPrototype$4) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$4, R)
|
|
4012
|
+
? call$7(regExpFlags, R) : flags;
|
|
3990
4013
|
};
|
|
3991
4014
|
|
|
3992
4015
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3993
4016
|
var defineBuiltIn$2 = defineBuiltIn$8;
|
|
3994
|
-
var anObject$
|
|
3995
|
-
var $toString = toString$
|
|
3996
|
-
var fails$
|
|
4017
|
+
var anObject$5 = anObject$g;
|
|
4018
|
+
var $toString = toString$c;
|
|
4019
|
+
var fails$9 = fails$o;
|
|
3997
4020
|
var getRegExpFlags$1 = regexpGetFlags;
|
|
3998
4021
|
|
|
3999
4022
|
var TO_STRING = 'toString';
|
|
4000
|
-
var RegExpPrototype$
|
|
4001
|
-
var nativeToString = RegExpPrototype$
|
|
4023
|
+
var RegExpPrototype$3 = RegExp.prototype;
|
|
4024
|
+
var nativeToString = RegExpPrototype$3[TO_STRING];
|
|
4002
4025
|
|
|
4003
|
-
var NOT_GENERIC = fails$
|
|
4026
|
+
var NOT_GENERIC = fails$9(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
4004
4027
|
// FF44- RegExp#toString has a wrong name
|
|
4005
4028
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
4006
4029
|
|
|
4007
4030
|
// `RegExp.prototype.toString` method
|
|
4008
4031
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
4009
4032
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
4010
|
-
defineBuiltIn$2(RegExpPrototype$
|
|
4011
|
-
var R = anObject$
|
|
4033
|
+
defineBuiltIn$2(RegExpPrototype$3, TO_STRING, function toString() {
|
|
4034
|
+
var R = anObject$5(this);
|
|
4012
4035
|
var pattern = $toString(R.source);
|
|
4013
4036
|
var flags = $toString(getRegExpFlags$1(R));
|
|
4014
4037
|
return '/' + pattern + '/' + flags;
|
|
@@ -5146,18 +5169,18 @@ const getInitials = name => {
|
|
|
5146
5169
|
}
|
|
5147
5170
|
};
|
|
5148
5171
|
|
|
5149
|
-
var $$
|
|
5150
|
-
var uncurryThis$
|
|
5172
|
+
var $$6 = _export;
|
|
5173
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
5151
5174
|
var isArray = isArray$3;
|
|
5152
5175
|
|
|
5153
|
-
var nativeReverse = uncurryThis$
|
|
5176
|
+
var nativeReverse = uncurryThis$6([].reverse);
|
|
5154
5177
|
var test = [1, 2];
|
|
5155
5178
|
|
|
5156
5179
|
// `Array.prototype.reverse` method
|
|
5157
5180
|
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
5158
5181
|
// fix for Safari 12.0 bug
|
|
5159
5182
|
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
5160
|
-
$$
|
|
5183
|
+
$$6({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
5161
5184
|
reverse: function reverse() {
|
|
5162
5185
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
5163
5186
|
if (isArray(this)) this.length = this.length;
|
|
@@ -5434,9 +5457,10 @@ const TooltipSelect = _a => {
|
|
|
5434
5457
|
isEnabled,
|
|
5435
5458
|
hasBackgroundColor,
|
|
5436
5459
|
variant = 'standard',
|
|
5437
|
-
additionalStyling = {}
|
|
5460
|
+
additionalStyling = {},
|
|
5461
|
+
skipLocalStyling = false
|
|
5438
5462
|
} = _a,
|
|
5439
|
-
props = __rest(_a, ["tooltip", "list", "currentIndex", "onChangeMouseWheel", "requiresCtrlToChange", "isEnabled", "hasBackgroundColor", "variant", "additionalStyling"]);
|
|
5463
|
+
props = __rest(_a, ["tooltip", "list", "currentIndex", "onChangeMouseWheel", "requiresCtrlToChange", "isEnabled", "hasBackgroundColor", "variant", "additionalStyling", "skipLocalStyling"]);
|
|
5440
5464
|
const [selectOpen, setSelectOpen] = React.useState(false);
|
|
5441
5465
|
const [tooltipOpen, setTooltipOpen] = useControlledTooltip();
|
|
5442
5466
|
const onWheel = React.useCallback(event => {
|
|
@@ -5489,18 +5513,20 @@ const TooltipSelect = _a => {
|
|
|
5489
5513
|
onWheel: onWheel,
|
|
5490
5514
|
isEnabled: isEnabled,
|
|
5491
5515
|
hasBackgroundColor: hasBackgroundColor,
|
|
5492
|
-
additionalStyling: additionalStyling
|
|
5516
|
+
additionalStyling: additionalStyling,
|
|
5517
|
+
skipLocalStyling: skipLocalStyling
|
|
5493
5518
|
}, props)));
|
|
5494
5519
|
};
|
|
5495
5520
|
// Style the select
|
|
5496
5521
|
const BaseSelect = styled(Select, {
|
|
5497
|
-
shouldForwardProp: prop => prop !== 'isEnabled' && prop !== 'hasBackgroundColor'
|
|
5522
|
+
shouldForwardProp: prop => prop !== 'isEnabled' && prop !== 'hasBackgroundColor' && prop !== 'skipLocalStyling'
|
|
5498
5523
|
})(({
|
|
5499
5524
|
theme,
|
|
5500
5525
|
isEnabled,
|
|
5501
|
-
hasBackgroundColor
|
|
5526
|
+
hasBackgroundColor,
|
|
5527
|
+
skipLocalStyling
|
|
5502
5528
|
}) => {
|
|
5503
|
-
return Object.assign(
|
|
5529
|
+
return Object.assign({}, !skipLocalStyling && tooltipContainerStyles(theme, !!isEnabled, hasBackgroundColor));
|
|
5504
5530
|
});
|
|
5505
5531
|
// Style the menu pop-over
|
|
5506
5532
|
const StyledSelect = styled( /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
@@ -5568,7 +5594,7 @@ const StyledSelect = styled( /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
5568
5594
|
}
|
|
5569
5595
|
}
|
|
5570
5596
|
}));
|
|
5571
|
-
const tooltipContainerStyles = (theme, isEnabled, hasBackgroundColor = true) => Object.assign({
|
|
5597
|
+
const tooltipContainerStyles = (theme, isEnabled, hasBackgroundColor = true) => Object.assign(Object.assign({
|
|
5572
5598
|
width: '100%',
|
|
5573
5599
|
height: 32,
|
|
5574
5600
|
fontWeight: 500,
|
|
@@ -5596,7 +5622,7 @@ const tooltipContainerStyles = (theme, isEnabled, hasBackgroundColor = true) =>
|
|
|
5596
5622
|
'&>div': {
|
|
5597
5623
|
paddingLeft: '8px!important'
|
|
5598
5624
|
}
|
|
5599
|
-
}, hasBackgroundColor && {
|
|
5625
|
+
}, theme.palette.geowebColors.tooltips.tooltipSelect.select), hasBackgroundColor && {
|
|
5600
5626
|
'&:hover': {
|
|
5601
5627
|
backgroundColor: theme.palette.geowebColors.buttons.tool.mouseOver.fill,
|
|
5602
5628
|
borderRadius: 0
|
|
@@ -5663,20 +5689,20 @@ const CustomAccordion = _a => {
|
|
|
5663
5689
|
}, children));
|
|
5664
5690
|
};
|
|
5665
5691
|
|
|
5666
|
-
var $$
|
|
5692
|
+
var $$5 = _export;
|
|
5667
5693
|
var $includes = arrayIncludes.includes;
|
|
5668
|
-
var fails$
|
|
5694
|
+
var fails$8 = fails$o;
|
|
5669
5695
|
var addToUnscopables = addToUnscopables$3;
|
|
5670
5696
|
|
|
5671
5697
|
// FF99+ bug
|
|
5672
|
-
var BROKEN_ON_SPARSE = fails$
|
|
5698
|
+
var BROKEN_ON_SPARSE = fails$8(function () {
|
|
5673
5699
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
5674
5700
|
return !Array(1).includes();
|
|
5675
5701
|
});
|
|
5676
5702
|
|
|
5677
5703
|
// `Array.prototype.includes` method
|
|
5678
5704
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
5679
|
-
$$
|
|
5705
|
+
$$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
5680
5706
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
5681
5707
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
5682
5708
|
}
|
|
@@ -5690,7 +5716,9 @@ var toObject = toObject$5;
|
|
|
5690
5716
|
var IndexedObject = indexedObject;
|
|
5691
5717
|
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
5692
5718
|
|
|
5693
|
-
var $TypeError$
|
|
5719
|
+
var $TypeError$3 = TypeError;
|
|
5720
|
+
|
|
5721
|
+
var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
5694
5722
|
|
|
5695
5723
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
5696
5724
|
var createMethod$1 = function (IS_RIGHT) {
|
|
@@ -5699,6 +5727,7 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
5699
5727
|
var self = IndexedObject(O);
|
|
5700
5728
|
var length = lengthOfArrayLike(O);
|
|
5701
5729
|
aCallable(callbackfn);
|
|
5730
|
+
if (length === 0 && argumentsLength < 2) throw new $TypeError$3(REDUCE_EMPTY);
|
|
5702
5731
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
5703
5732
|
var i = IS_RIGHT ? -1 : 1;
|
|
5704
5733
|
if (argumentsLength < 2) while (true) {
|
|
@@ -5709,7 +5738,7 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
5709
5738
|
}
|
|
5710
5739
|
index += i;
|
|
5711
5740
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
5712
|
-
throw new $TypeError$
|
|
5741
|
+
throw new $TypeError$3(REDUCE_EMPTY);
|
|
5713
5742
|
}
|
|
5714
5743
|
}
|
|
5715
5744
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -5728,17 +5757,17 @@ var arrayReduce = {
|
|
|
5728
5757
|
right: createMethod$1(true)
|
|
5729
5758
|
};
|
|
5730
5759
|
|
|
5731
|
-
var fails$
|
|
5760
|
+
var fails$7 = fails$o;
|
|
5732
5761
|
|
|
5733
5762
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
5734
5763
|
var method = [][METHOD_NAME];
|
|
5735
|
-
return !!method && fails$
|
|
5764
|
+
return !!method && fails$7(function () {
|
|
5736
5765
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
5737
5766
|
method.call(null, argument || function () { return 1; }, 1);
|
|
5738
5767
|
});
|
|
5739
5768
|
};
|
|
5740
5769
|
|
|
5741
|
-
var $$
|
|
5770
|
+
var $$4 = _export;
|
|
5742
5771
|
var $reduce = arrayReduce.left;
|
|
5743
5772
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
5744
5773
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -5747,38 +5776,38 @@ var IS_NODE = engineIsNode;
|
|
|
5747
5776
|
// Chrome 80-82 has a critical bug
|
|
5748
5777
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
5749
5778
|
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
5750
|
-
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
5779
|
+
var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
5751
5780
|
|
|
5752
5781
|
// `Array.prototype.reduce` method
|
|
5753
5782
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
5754
|
-
$$
|
|
5783
|
+
$$4({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
5755
5784
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
5756
5785
|
var length = arguments.length;
|
|
5757
5786
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
5758
5787
|
}
|
|
5759
5788
|
});
|
|
5760
5789
|
|
|
5761
|
-
var isCallable$
|
|
5762
|
-
var isObject$
|
|
5763
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
5790
|
+
var isCallable$2 = isCallable$n;
|
|
5791
|
+
var isObject$2 = isObject$e;
|
|
5792
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
5764
5793
|
|
|
5765
5794
|
// makes subclassing work correct for wrapped built-ins
|
|
5766
|
-
var inheritIfRequired$
|
|
5795
|
+
var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
|
|
5767
5796
|
var NewTarget, NewTargetPrototype;
|
|
5768
5797
|
if (
|
|
5769
5798
|
// it can work only with native `setPrototypeOf`
|
|
5770
|
-
setPrototypeOf &&
|
|
5799
|
+
setPrototypeOf$1 &&
|
|
5771
5800
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
5772
|
-
isCallable$
|
|
5801
|
+
isCallable$2(NewTarget = dummy.constructor) &&
|
|
5773
5802
|
NewTarget !== Wrapper &&
|
|
5774
|
-
isObject$
|
|
5803
|
+
isObject$2(NewTargetPrototype = NewTarget.prototype) &&
|
|
5775
5804
|
NewTargetPrototype !== Wrapper.prototype
|
|
5776
|
-
) setPrototypeOf($this, NewTargetPrototype);
|
|
5805
|
+
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
5777
5806
|
return $this;
|
|
5778
5807
|
};
|
|
5779
5808
|
|
|
5780
|
-
var isObject = isObject$
|
|
5781
|
-
var classof$
|
|
5809
|
+
var isObject$1 = isObject$e;
|
|
5810
|
+
var classof$2 = classofRaw$2;
|
|
5782
5811
|
var wellKnownSymbol$3 = wellKnownSymbol$j;
|
|
5783
5812
|
|
|
5784
5813
|
var MATCH$2 = wellKnownSymbol$3('match');
|
|
@@ -5787,16 +5816,16 @@ var MATCH$2 = wellKnownSymbol$3('match');
|
|
|
5787
5816
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
5788
5817
|
var isRegexp = function (it) {
|
|
5789
5818
|
var isRegExp;
|
|
5790
|
-
return isObject(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$
|
|
5819
|
+
return isObject$1(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$2(it) === 'RegExp');
|
|
5791
5820
|
};
|
|
5792
5821
|
|
|
5793
|
-
var fails$
|
|
5794
|
-
var global$
|
|
5822
|
+
var fails$6 = fails$o;
|
|
5823
|
+
var global$5 = global$p;
|
|
5795
5824
|
|
|
5796
5825
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
5797
|
-
var $RegExp$2 = global$
|
|
5826
|
+
var $RegExp$2 = global$5.RegExp;
|
|
5798
5827
|
|
|
5799
|
-
var UNSUPPORTED_Y$3 = fails$
|
|
5828
|
+
var UNSUPPORTED_Y$3 = fails$6(function () {
|
|
5800
5829
|
var re = $RegExp$2('a', 'y');
|
|
5801
5830
|
re.lastIndex = 2;
|
|
5802
5831
|
return re.exec('abcd') !== null;
|
|
@@ -5804,11 +5833,11 @@ var UNSUPPORTED_Y$3 = fails$5(function () {
|
|
|
5804
5833
|
|
|
5805
5834
|
// UC Browser bug
|
|
5806
5835
|
// https://github.com/zloirock/core-js/issues/1008
|
|
5807
|
-
var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails$
|
|
5836
|
+
var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails$6(function () {
|
|
5808
5837
|
return !$RegExp$2('a', 'y').sticky;
|
|
5809
5838
|
});
|
|
5810
5839
|
|
|
5811
|
-
var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$
|
|
5840
|
+
var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$6(function () {
|
|
5812
5841
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
5813
5842
|
var re = $RegExp$2('^r', 'gy');
|
|
5814
5843
|
re.lastIndex = 2;
|
|
@@ -5823,7 +5852,7 @@ var regexpStickyHelpers = {
|
|
|
5823
5852
|
|
|
5824
5853
|
var defineProperty = objectDefineProperty.f;
|
|
5825
5854
|
|
|
5826
|
-
var proxyAccessor$
|
|
5855
|
+
var proxyAccessor$2 = function (Target, Source, key) {
|
|
5827
5856
|
key in Target || defineProperty(Target, key, {
|
|
5828
5857
|
configurable: true,
|
|
5829
5858
|
get: function () { return Source[key]; },
|
|
@@ -5831,61 +5860,61 @@ var proxyAccessor$1 = function (Target, Source, key) {
|
|
|
5831
5860
|
});
|
|
5832
5861
|
};
|
|
5833
5862
|
|
|
5834
|
-
var fails$
|
|
5835
|
-
var global$
|
|
5863
|
+
var fails$5 = fails$o;
|
|
5864
|
+
var global$4 = global$p;
|
|
5836
5865
|
|
|
5837
5866
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
5838
|
-
var $RegExp$1 = global$
|
|
5867
|
+
var $RegExp$1 = global$4.RegExp;
|
|
5839
5868
|
|
|
5840
|
-
var regexpUnsupportedDotAll = fails$
|
|
5869
|
+
var regexpUnsupportedDotAll = fails$5(function () {
|
|
5841
5870
|
var re = $RegExp$1('.', 's');
|
|
5842
5871
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
5843
5872
|
});
|
|
5844
5873
|
|
|
5845
|
-
var fails$
|
|
5846
|
-
var global$
|
|
5874
|
+
var fails$4 = fails$o;
|
|
5875
|
+
var global$3 = global$p;
|
|
5847
5876
|
|
|
5848
5877
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
5849
|
-
var $RegExp = global$
|
|
5878
|
+
var $RegExp = global$3.RegExp;
|
|
5850
5879
|
|
|
5851
|
-
var regexpUnsupportedNcg = fails$
|
|
5880
|
+
var regexpUnsupportedNcg = fails$4(function () {
|
|
5852
5881
|
var re = $RegExp('(?<a>b)', 'g');
|
|
5853
5882
|
return re.exec('b').groups.a !== 'b' ||
|
|
5854
5883
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
5855
5884
|
});
|
|
5856
5885
|
|
|
5857
|
-
var DESCRIPTORS = descriptors;
|
|
5858
|
-
var global$
|
|
5859
|
-
var uncurryThis$
|
|
5886
|
+
var DESCRIPTORS$2 = descriptors;
|
|
5887
|
+
var global$2 = global$p;
|
|
5888
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
5860
5889
|
var isForced = isForced_1;
|
|
5861
|
-
var inheritIfRequired = inheritIfRequired$
|
|
5862
|
-
var createNonEnumerableProperty$
|
|
5890
|
+
var inheritIfRequired$1 = inheritIfRequired$2;
|
|
5891
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
|
|
5863
5892
|
var create$1 = objectCreate;
|
|
5864
5893
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
5865
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
5894
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
5866
5895
|
var isRegExp$1 = isRegexp;
|
|
5867
|
-
var toString$
|
|
5896
|
+
var toString$8 = toString$c;
|
|
5868
5897
|
var getRegExpFlags = regexpGetFlags;
|
|
5869
5898
|
var stickyHelpers$2 = regexpStickyHelpers;
|
|
5870
|
-
var proxyAccessor = proxyAccessor$
|
|
5899
|
+
var proxyAccessor$1 = proxyAccessor$2;
|
|
5871
5900
|
var defineBuiltIn$1 = defineBuiltIn$8;
|
|
5872
|
-
var fails$
|
|
5873
|
-
var hasOwn = hasOwnProperty_1;
|
|
5901
|
+
var fails$3 = fails$o;
|
|
5902
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
5874
5903
|
var enforceInternalState = internalState.enforce;
|
|
5875
5904
|
var setSpecies = setSpecies$2;
|
|
5876
5905
|
var wellKnownSymbol$2 = wellKnownSymbol$j;
|
|
5877
|
-
var UNSUPPORTED_DOT_ALL$
|
|
5906
|
+
var UNSUPPORTED_DOT_ALL$2 = regexpUnsupportedDotAll;
|
|
5878
5907
|
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
|
|
5879
5908
|
|
|
5880
5909
|
var MATCH$1 = wellKnownSymbol$2('match');
|
|
5881
|
-
var NativeRegExp = global$
|
|
5882
|
-
var RegExpPrototype$
|
|
5883
|
-
var SyntaxError = global$
|
|
5884
|
-
var exec$1 = uncurryThis$
|
|
5885
|
-
var charAt$3 = uncurryThis$
|
|
5886
|
-
var replace$
|
|
5887
|
-
var stringIndexOf$1 = uncurryThis$
|
|
5888
|
-
var stringSlice$3 = uncurryThis$
|
|
5910
|
+
var NativeRegExp = global$2.RegExp;
|
|
5911
|
+
var RegExpPrototype$2 = NativeRegExp.prototype;
|
|
5912
|
+
var SyntaxError = global$2.SyntaxError;
|
|
5913
|
+
var exec$1 = uncurryThis$5(RegExpPrototype$2.exec);
|
|
5914
|
+
var charAt$3 = uncurryThis$5(''.charAt);
|
|
5915
|
+
var replace$2 = uncurryThis$5(''.replace);
|
|
5916
|
+
var stringIndexOf$1 = uncurryThis$5(''.indexOf);
|
|
5917
|
+
var stringSlice$3 = uncurryThis$5(''.slice);
|
|
5889
5918
|
// TODO: Use only proper RegExpIdentifierName
|
|
5890
5919
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
5891
5920
|
var re1 = /a/g;
|
|
@@ -5897,8 +5926,8 @@ var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
|
|
5897
5926
|
var MISSED_STICKY = stickyHelpers$2.MISSED_STICKY;
|
|
5898
5927
|
var UNSUPPORTED_Y$2 = stickyHelpers$2.UNSUPPORTED_Y;
|
|
5899
5928
|
|
|
5900
|
-
var BASE_FORCED = DESCRIPTORS &&
|
|
5901
|
-
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$
|
|
5929
|
+
var BASE_FORCED = DESCRIPTORS$2 &&
|
|
5930
|
+
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$2 || UNSUPPORTED_NCG$1 || fails$3(function () {
|
|
5902
5931
|
re2[MATCH$1] = false;
|
|
5903
5932
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
5904
5933
|
return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
|
|
@@ -5958,7 +5987,7 @@ var handleNCG = function (string) {
|
|
|
5958
5987
|
groupid++;
|
|
5959
5988
|
continue;
|
|
5960
5989
|
case chr === '>' && ncg:
|
|
5961
|
-
if (groupname === '' || hasOwn(names, groupname)) {
|
|
5990
|
+
if (groupname === '' || hasOwn$1(names, groupname)) {
|
|
5962
5991
|
throw new SyntaxError('Invalid capture group name');
|
|
5963
5992
|
}
|
|
5964
5993
|
names[groupname] = true;
|
|
@@ -5976,7 +6005,7 @@ var handleNCG = function (string) {
|
|
|
5976
6005
|
// https://tc39.es/ecma262/#sec-regexp-constructor
|
|
5977
6006
|
if (isForced('RegExp', BASE_FORCED)) {
|
|
5978
6007
|
var RegExpWrapper = function RegExp(pattern, flags) {
|
|
5979
|
-
var thisIsRegExp = isPrototypeOf(RegExpPrototype$
|
|
6008
|
+
var thisIsRegExp = isPrototypeOf$1(RegExpPrototype$2, this);
|
|
5980
6009
|
var patternIsRegExp = isRegExp$1(pattern);
|
|
5981
6010
|
var flagsAreUndefined = flags === undefined;
|
|
5982
6011
|
var groups = [];
|
|
@@ -5987,25 +6016,25 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
5987
6016
|
return pattern;
|
|
5988
6017
|
}
|
|
5989
6018
|
|
|
5990
|
-
if (patternIsRegExp || isPrototypeOf(RegExpPrototype$
|
|
6019
|
+
if (patternIsRegExp || isPrototypeOf$1(RegExpPrototype$2, pattern)) {
|
|
5991
6020
|
pattern = pattern.source;
|
|
5992
6021
|
if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);
|
|
5993
6022
|
}
|
|
5994
6023
|
|
|
5995
|
-
pattern = pattern === undefined ? '' : toString$
|
|
5996
|
-
flags = flags === undefined ? '' : toString$
|
|
6024
|
+
pattern = pattern === undefined ? '' : toString$8(pattern);
|
|
6025
|
+
flags = flags === undefined ? '' : toString$8(flags);
|
|
5997
6026
|
rawPattern = pattern;
|
|
5998
6027
|
|
|
5999
|
-
if (UNSUPPORTED_DOT_ALL$
|
|
6028
|
+
if (UNSUPPORTED_DOT_ALL$2 && 'dotAll' in re1) {
|
|
6000
6029
|
dotAll = !!flags && stringIndexOf$1(flags, 's') > -1;
|
|
6001
|
-
if (dotAll) flags = replace$
|
|
6030
|
+
if (dotAll) flags = replace$2(flags, /s/g, '');
|
|
6002
6031
|
}
|
|
6003
6032
|
|
|
6004
6033
|
rawFlags = flags;
|
|
6005
6034
|
|
|
6006
6035
|
if (MISSED_STICKY && 'sticky' in re1) {
|
|
6007
6036
|
sticky = !!flags && stringIndexOf$1(flags, 'y') > -1;
|
|
6008
|
-
if (sticky && UNSUPPORTED_Y$2) flags = replace$
|
|
6037
|
+
if (sticky && UNSUPPORTED_Y$2) flags = replace$2(flags, /y/g, '');
|
|
6009
6038
|
}
|
|
6010
6039
|
|
|
6011
6040
|
if (UNSUPPORTED_NCG$1) {
|
|
@@ -6014,7 +6043,7 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
6014
6043
|
groups = handled[1];
|
|
6015
6044
|
}
|
|
6016
6045
|
|
|
6017
|
-
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$
|
|
6046
|
+
result = inheritIfRequired$1(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$2, RegExpWrapper);
|
|
6018
6047
|
|
|
6019
6048
|
if (dotAll || sticky || groups.length) {
|
|
6020
6049
|
state = enforceInternalState(result);
|
|
@@ -6028,32 +6057,58 @@ if (isForced('RegExp', BASE_FORCED)) {
|
|
|
6028
6057
|
|
|
6029
6058
|
if (pattern !== rawPattern) try {
|
|
6030
6059
|
// fails in old engines, but we have no alternatives for unsupported regex syntax
|
|
6031
|
-
createNonEnumerableProperty$
|
|
6060
|
+
createNonEnumerableProperty$4(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
|
|
6032
6061
|
} catch (error) { /* empty */ }
|
|
6033
6062
|
|
|
6034
6063
|
return result;
|
|
6035
6064
|
};
|
|
6036
6065
|
|
|
6037
6066
|
for (var keys = getOwnPropertyNames(NativeRegExp), index$1 = 0; keys.length > index$1;) {
|
|
6038
|
-
proxyAccessor(RegExpWrapper, NativeRegExp, keys[index$1++]);
|
|
6067
|
+
proxyAccessor$1(RegExpWrapper, NativeRegExp, keys[index$1++]);
|
|
6039
6068
|
}
|
|
6040
6069
|
|
|
6041
|
-
RegExpPrototype$
|
|
6042
|
-
RegExpWrapper.prototype = RegExpPrototype$
|
|
6043
|
-
defineBuiltIn$1(global$
|
|
6070
|
+
RegExpPrototype$2.constructor = RegExpWrapper;
|
|
6071
|
+
RegExpWrapper.prototype = RegExpPrototype$2;
|
|
6072
|
+
defineBuiltIn$1(global$2, 'RegExp', RegExpWrapper, { constructor: true });
|
|
6044
6073
|
}
|
|
6045
6074
|
|
|
6046
6075
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
6047
6076
|
setSpecies('RegExp');
|
|
6048
6077
|
|
|
6078
|
+
var DESCRIPTORS$1 = descriptors;
|
|
6079
|
+
var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
6080
|
+
var classof$1 = classofRaw$2;
|
|
6081
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$3;
|
|
6082
|
+
var getInternalState$1 = internalState.get;
|
|
6083
|
+
|
|
6084
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
6085
|
+
var $TypeError$2 = TypeError;
|
|
6086
|
+
|
|
6087
|
+
// `RegExp.prototype.dotAll` getter
|
|
6088
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
|
|
6089
|
+
if (DESCRIPTORS$1 && UNSUPPORTED_DOT_ALL$1) {
|
|
6090
|
+
defineBuiltInAccessor(RegExpPrototype$1, 'dotAll', {
|
|
6091
|
+
configurable: true,
|
|
6092
|
+
get: function dotAll() {
|
|
6093
|
+
if (this === RegExpPrototype$1) return;
|
|
6094
|
+
// We can't use InternalStateModule.getterFor because
|
|
6095
|
+
// we don't add metadata for regexps created by a literal.
|
|
6096
|
+
if (classof$1(this) === 'RegExp') {
|
|
6097
|
+
return !!getInternalState$1(this).dotAll;
|
|
6098
|
+
}
|
|
6099
|
+
throw new $TypeError$2('Incompatible receiver, RegExp required');
|
|
6100
|
+
}
|
|
6101
|
+
});
|
|
6102
|
+
}
|
|
6103
|
+
|
|
6049
6104
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
6050
6105
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
6051
|
-
var call$
|
|
6052
|
-
var uncurryThis$
|
|
6053
|
-
var toString$
|
|
6106
|
+
var call$6 = functionCall;
|
|
6107
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
6108
|
+
var toString$7 = toString$c;
|
|
6054
6109
|
var regexpFlags = regexpFlags$1;
|
|
6055
6110
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
6056
|
-
var shared = shared$4
|
|
6111
|
+
var shared = shared$4;
|
|
6057
6112
|
var create = objectCreate;
|
|
6058
6113
|
var getInternalState = internalState.get;
|
|
6059
6114
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
@@ -6062,16 +6117,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
6062
6117
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
6063
6118
|
var nativeExec = RegExp.prototype.exec;
|
|
6064
6119
|
var patchedExec = nativeExec;
|
|
6065
|
-
var charAt$2 = uncurryThis$
|
|
6066
|
-
var indexOf = uncurryThis$
|
|
6067
|
-
var replace = uncurryThis$
|
|
6068
|
-
var stringSlice$2 = uncurryThis$
|
|
6120
|
+
var charAt$2 = uncurryThis$4(''.charAt);
|
|
6121
|
+
var indexOf = uncurryThis$4(''.indexOf);
|
|
6122
|
+
var replace$1 = uncurryThis$4(''.replace);
|
|
6123
|
+
var stringSlice$2 = uncurryThis$4(''.slice);
|
|
6069
6124
|
|
|
6070
6125
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
6071
6126
|
var re1 = /a/;
|
|
6072
6127
|
var re2 = /b*/g;
|
|
6073
|
-
call$
|
|
6074
|
-
call$
|
|
6128
|
+
call$6(nativeExec, re1, 'a');
|
|
6129
|
+
call$6(nativeExec, re2, 'a');
|
|
6075
6130
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
6076
6131
|
})();
|
|
6077
6132
|
|
|
@@ -6086,26 +6141,26 @@ if (PATCH) {
|
|
|
6086
6141
|
patchedExec = function exec(string) {
|
|
6087
6142
|
var re = this;
|
|
6088
6143
|
var state = getInternalState(re);
|
|
6089
|
-
var str = toString$
|
|
6144
|
+
var str = toString$7(string);
|
|
6090
6145
|
var raw = state.raw;
|
|
6091
6146
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
6092
6147
|
|
|
6093
6148
|
if (raw) {
|
|
6094
6149
|
raw.lastIndex = re.lastIndex;
|
|
6095
|
-
result = call$
|
|
6150
|
+
result = call$6(patchedExec, raw, str);
|
|
6096
6151
|
re.lastIndex = raw.lastIndex;
|
|
6097
6152
|
return result;
|
|
6098
6153
|
}
|
|
6099
6154
|
|
|
6100
6155
|
var groups = state.groups;
|
|
6101
6156
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
6102
|
-
var flags = call$
|
|
6157
|
+
var flags = call$6(regexpFlags, re);
|
|
6103
6158
|
var source = re.source;
|
|
6104
6159
|
var charsAdded = 0;
|
|
6105
6160
|
var strCopy = str;
|
|
6106
6161
|
|
|
6107
6162
|
if (sticky) {
|
|
6108
|
-
flags = replace(flags, 'y', '');
|
|
6163
|
+
flags = replace$1(flags, 'y', '');
|
|
6109
6164
|
if (indexOf(flags, 'g') === -1) {
|
|
6110
6165
|
flags += 'g';
|
|
6111
6166
|
}
|
|
@@ -6127,7 +6182,7 @@ if (PATCH) {
|
|
|
6127
6182
|
}
|
|
6128
6183
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
6129
6184
|
|
|
6130
|
-
match = call$
|
|
6185
|
+
match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
|
|
6131
6186
|
|
|
6132
6187
|
if (sticky) {
|
|
6133
6188
|
if (match) {
|
|
@@ -6142,7 +6197,7 @@ if (PATCH) {
|
|
|
6142
6197
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
6143
6198
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
6144
6199
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
6145
|
-
call$
|
|
6200
|
+
call$6(nativeReplace, match[0], reCopy, function () {
|
|
6146
6201
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
6147
6202
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
6148
6203
|
}
|
|
@@ -6163,12 +6218,12 @@ if (PATCH) {
|
|
|
6163
6218
|
|
|
6164
6219
|
var regexpExec$2 = patchedExec;
|
|
6165
6220
|
|
|
6166
|
-
var $$
|
|
6221
|
+
var $$3 = _export;
|
|
6167
6222
|
var exec = regexpExec$2;
|
|
6168
6223
|
|
|
6169
6224
|
// `RegExp.prototype.exec` method
|
|
6170
6225
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
6171
|
-
$$
|
|
6226
|
+
$$3({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
6172
6227
|
exec: exec
|
|
6173
6228
|
});
|
|
6174
6229
|
|
|
@@ -6198,22 +6253,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
6198
6253
|
} return false;
|
|
6199
6254
|
};
|
|
6200
6255
|
|
|
6201
|
-
var
|
|
6202
|
-
var uncurryThis$
|
|
6256
|
+
var $$2 = _export;
|
|
6257
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
6203
6258
|
var notARegExp = notARegexp;
|
|
6204
|
-
var requireObjectCoercible$4 = requireObjectCoercible$
|
|
6205
|
-
var toString$
|
|
6259
|
+
var requireObjectCoercible$4 = requireObjectCoercible$9;
|
|
6260
|
+
var toString$6 = toString$c;
|
|
6206
6261
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
6207
6262
|
|
|
6208
|
-
var stringIndexOf = uncurryThis$
|
|
6263
|
+
var stringIndexOf = uncurryThis$3(''.indexOf);
|
|
6209
6264
|
|
|
6210
6265
|
// `String.prototype.includes` method
|
|
6211
6266
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
6212
|
-
|
|
6267
|
+
$$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
6213
6268
|
includes: function includes(searchString /* , position = 0 */) {
|
|
6214
6269
|
return !!~stringIndexOf(
|
|
6215
|
-
toString$
|
|
6216
|
-
toString$
|
|
6270
|
+
toString$6(requireObjectCoercible$4(this)),
|
|
6271
|
+
toString$6(notARegExp(searchString)),
|
|
6217
6272
|
arguments.length > 1 ? arguments[1] : undefined
|
|
6218
6273
|
);
|
|
6219
6274
|
}
|
|
@@ -6221,12 +6276,12 @@ $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') },
|
|
|
6221
6276
|
|
|
6222
6277
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
6223
6278
|
|
|
6224
|
-
var call$
|
|
6279
|
+
var call$5 = functionCall;
|
|
6225
6280
|
var defineBuiltIn = defineBuiltIn$8;
|
|
6226
6281
|
var regexpExec$1 = regexpExec$2;
|
|
6227
|
-
var fails$
|
|
6282
|
+
var fails$2 = fails$o;
|
|
6228
6283
|
var wellKnownSymbol = wellKnownSymbol$j;
|
|
6229
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
6284
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$9;
|
|
6230
6285
|
|
|
6231
6286
|
var SPECIES = wellKnownSymbol('species');
|
|
6232
6287
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -6234,14 +6289,14 @@ var RegExpPrototype = RegExp.prototype;
|
|
|
6234
6289
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
6235
6290
|
var SYMBOL = wellKnownSymbol(KEY);
|
|
6236
6291
|
|
|
6237
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
6292
|
+
var DELEGATES_TO_SYMBOL = !fails$2(function () {
|
|
6238
6293
|
// String methods call symbol-named RegExp methods
|
|
6239
6294
|
var O = {};
|
|
6240
6295
|
O[SYMBOL] = function () { return 7; };
|
|
6241
6296
|
return ''[KEY](O) !== 7;
|
|
6242
6297
|
});
|
|
6243
6298
|
|
|
6244
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
6299
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
|
|
6245
6300
|
// Symbol-named RegExp methods call .exec
|
|
6246
6301
|
var execCalled = false;
|
|
6247
6302
|
var re = /a/;
|
|
@@ -6281,9 +6336,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
6281
6336
|
// The native String method already delegates to @@method (this
|
|
6282
6337
|
// polyfilled function), leasing to infinite recursion.
|
|
6283
6338
|
// We avoid it by directly calling the native @@method method.
|
|
6284
|
-
return { done: true, value: call$
|
|
6339
|
+
return { done: true, value: call$5(nativeRegExpMethod, regexp, str, arg2) };
|
|
6285
6340
|
}
|
|
6286
|
-
return { done: true, value: call$
|
|
6341
|
+
return { done: true, value: call$5(nativeMethod, str, regexp, arg2) };
|
|
6287
6342
|
}
|
|
6288
6343
|
return { done: false };
|
|
6289
6344
|
});
|
|
@@ -6292,7 +6347,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
6292
6347
|
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
6293
6348
|
}
|
|
6294
6349
|
|
|
6295
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
6350
|
+
if (SHAM) createNonEnumerableProperty$3(RegExpPrototype[SYMBOL], 'sham', true);
|
|
6296
6351
|
};
|
|
6297
6352
|
|
|
6298
6353
|
// `SameValue` abstract operation
|
|
@@ -6303,9 +6358,9 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
6303
6358
|
return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
|
|
6304
6359
|
};
|
|
6305
6360
|
|
|
6306
|
-
var call$
|
|
6307
|
-
var anObject$
|
|
6308
|
-
var isCallable = isCallable$
|
|
6361
|
+
var call$4 = functionCall;
|
|
6362
|
+
var anObject$4 = anObject$g;
|
|
6363
|
+
var isCallable$1 = isCallable$n;
|
|
6309
6364
|
var classof = classofRaw$2;
|
|
6310
6365
|
var regexpExec = regexpExec$2;
|
|
6311
6366
|
|
|
@@ -6315,22 +6370,22 @@ var $TypeError = TypeError;
|
|
|
6315
6370
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
6316
6371
|
var regexpExecAbstract = function (R, S) {
|
|
6317
6372
|
var exec = R.exec;
|
|
6318
|
-
if (isCallable(exec)) {
|
|
6319
|
-
var result = call$
|
|
6320
|
-
if (result !== null) anObject$
|
|
6373
|
+
if (isCallable$1(exec)) {
|
|
6374
|
+
var result = call$4(exec, R, S);
|
|
6375
|
+
if (result !== null) anObject$4(result);
|
|
6321
6376
|
return result;
|
|
6322
6377
|
}
|
|
6323
|
-
if (classof(R) === 'RegExp') return call$
|
|
6378
|
+
if (classof(R) === 'RegExp') return call$4(regexpExec, R, S);
|
|
6324
6379
|
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
6325
6380
|
};
|
|
6326
6381
|
|
|
6327
|
-
var call$
|
|
6382
|
+
var call$3 = functionCall;
|
|
6328
6383
|
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
|
6329
|
-
var anObject$
|
|
6384
|
+
var anObject$3 = anObject$g;
|
|
6330
6385
|
var isNullOrUndefined$2 = isNullOrUndefined$7;
|
|
6331
|
-
var requireObjectCoercible$3 = requireObjectCoercible$
|
|
6386
|
+
var requireObjectCoercible$3 = requireObjectCoercible$9;
|
|
6332
6387
|
var sameValue = sameValue$1;
|
|
6333
|
-
var toString$
|
|
6388
|
+
var toString$5 = toString$c;
|
|
6334
6389
|
var getMethod$2 = getMethod$6;
|
|
6335
6390
|
var regExpExec$2 = regexpExecAbstract;
|
|
6336
6391
|
|
|
@@ -6342,13 +6397,13 @@ fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeC
|
|
|
6342
6397
|
function search(regexp) {
|
|
6343
6398
|
var O = requireObjectCoercible$3(this);
|
|
6344
6399
|
var searcher = isNullOrUndefined$2(regexp) ? undefined : getMethod$2(regexp, SEARCH);
|
|
6345
|
-
return searcher ? call$
|
|
6400
|
+
return searcher ? call$3(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$5(O));
|
|
6346
6401
|
},
|
|
6347
6402
|
// `RegExp.prototype[@@search]` method
|
|
6348
6403
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
6349
6404
|
function (string) {
|
|
6350
|
-
var rx = anObject$
|
|
6351
|
-
var S = toString$
|
|
6405
|
+
var rx = anObject$3(this);
|
|
6406
|
+
var S = toString$5(string);
|
|
6352
6407
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
6353
6408
|
|
|
6354
6409
|
if (res.done) return res.value;
|
|
@@ -6362,18 +6417,18 @@ fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeC
|
|
|
6362
6417
|
];
|
|
6363
6418
|
});
|
|
6364
6419
|
|
|
6365
|
-
var uncurryThis$
|
|
6420
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
6366
6421
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
6367
|
-
var toString$
|
|
6368
|
-
var requireObjectCoercible$2 = requireObjectCoercible$
|
|
6422
|
+
var toString$4 = toString$c;
|
|
6423
|
+
var requireObjectCoercible$2 = requireObjectCoercible$9;
|
|
6369
6424
|
|
|
6370
|
-
var charAt$1 = uncurryThis$
|
|
6371
|
-
var charCodeAt = uncurryThis$
|
|
6372
|
-
var stringSlice$1 = uncurryThis$
|
|
6425
|
+
var charAt$1 = uncurryThis$2(''.charAt);
|
|
6426
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
6427
|
+
var stringSlice$1 = uncurryThis$2(''.slice);
|
|
6373
6428
|
|
|
6374
6429
|
var createMethod = function (CONVERT_TO_STRING) {
|
|
6375
6430
|
return function ($this, pos) {
|
|
6376
|
-
var S = toString$
|
|
6431
|
+
var S = toString$4(requireObjectCoercible$2($this));
|
|
6377
6432
|
var position = toIntegerOrInfinity(pos);
|
|
6378
6433
|
var size = S.length;
|
|
6379
6434
|
var first, second;
|
|
@@ -6407,30 +6462,30 @@ var advanceStringIndex$2 = function (S, index, unicode) {
|
|
|
6407
6462
|
return index + (unicode ? charAt(S, index).length : 1);
|
|
6408
6463
|
};
|
|
6409
6464
|
|
|
6410
|
-
var call$
|
|
6411
|
-
var uncurryThis = functionUncurryThis;
|
|
6465
|
+
var call$2 = functionCall;
|
|
6466
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
6412
6467
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
6413
|
-
var anObject$
|
|
6468
|
+
var anObject$2 = anObject$g;
|
|
6414
6469
|
var isNullOrUndefined$1 = isNullOrUndefined$7;
|
|
6415
|
-
var requireObjectCoercible$1 = requireObjectCoercible$
|
|
6470
|
+
var requireObjectCoercible$1 = requireObjectCoercible$9;
|
|
6416
6471
|
var speciesConstructor = speciesConstructor$2;
|
|
6417
6472
|
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
6418
6473
|
var toLength$1 = toLength$3;
|
|
6419
|
-
var toString$
|
|
6474
|
+
var toString$3 = toString$c;
|
|
6420
6475
|
var getMethod$1 = getMethod$6;
|
|
6421
6476
|
var regExpExec$1 = regexpExecAbstract;
|
|
6422
6477
|
var stickyHelpers = regexpStickyHelpers;
|
|
6423
|
-
var fails = fails$
|
|
6478
|
+
var fails$1 = fails$o;
|
|
6424
6479
|
|
|
6425
6480
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
6426
6481
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
6427
6482
|
var min = Math.min;
|
|
6428
|
-
var push = uncurryThis([].push);
|
|
6429
|
-
var stringSlice = uncurryThis(''.slice);
|
|
6483
|
+
var push = uncurryThis$1([].push);
|
|
6484
|
+
var stringSlice = uncurryThis$1(''.slice);
|
|
6430
6485
|
|
|
6431
6486
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
6432
6487
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
6433
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
6488
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$1(function () {
|
|
6434
6489
|
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
6435
6490
|
var re = /(?:)/;
|
|
6436
6491
|
var originalExec = re.exec;
|
|
@@ -6451,7 +6506,7 @@ var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
|
6451
6506
|
// @@split logic
|
|
6452
6507
|
fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
6453
6508
|
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
6454
|
-
return separator === undefined && limit === 0 ? [] : call$
|
|
6509
|
+
return separator === undefined && limit === 0 ? [] : call$2(nativeSplit, this, separator, limit);
|
|
6455
6510
|
} : nativeSplit;
|
|
6456
6511
|
|
|
6457
6512
|
return [
|
|
@@ -6461,8 +6516,8 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
|
|
|
6461
6516
|
var O = requireObjectCoercible$1(this);
|
|
6462
6517
|
var splitter = isNullOrUndefined$1(separator) ? undefined : getMethod$1(separator, SPLIT);
|
|
6463
6518
|
return splitter
|
|
6464
|
-
? call$
|
|
6465
|
-
: call$
|
|
6519
|
+
? call$2(splitter, separator, O, limit)
|
|
6520
|
+
: call$2(internalSplit, toString$3(O), separator, limit);
|
|
6466
6521
|
},
|
|
6467
6522
|
// `RegExp.prototype[@@split]` method
|
|
6468
6523
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -6470,8 +6525,8 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall
|
|
|
6470
6525
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
6471
6526
|
// the 'y' flag.
|
|
6472
6527
|
function (string, limit) {
|
|
6473
|
-
var rx = anObject$
|
|
6474
|
-
var S = toString$
|
|
6528
|
+
var rx = anObject$2(this);
|
|
6529
|
+
var S = toString$3(string);
|
|
6475
6530
|
|
|
6476
6531
|
if (!BUGGY) {
|
|
6477
6532
|
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
@@ -6554,18 +6609,61 @@ const styles = {
|
|
|
6554
6609
|
fontWeight: 500
|
|
6555
6610
|
}
|
|
6556
6611
|
};
|
|
6557
|
-
const SwitchButton =
|
|
6612
|
+
const SwitchButton = _a => {
|
|
6613
|
+
var {
|
|
6614
|
+
activeLabel = 'Editor',
|
|
6615
|
+
inActiveLabel = 'Viewer',
|
|
6616
|
+
tooltip = 'Switch mode'
|
|
6617
|
+
} = _a,
|
|
6618
|
+
props = __rest(_a, ["activeLabel", "inActiveLabel", "tooltip"]);
|
|
6558
6619
|
return /*#__PURE__*/React.createElement(CustomTooltip, {
|
|
6559
|
-
title:
|
|
6560
|
-
}, /*#__PURE__*/React.createElement("span",
|
|
6620
|
+
title: tooltip
|
|
6621
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6622
|
+
role: "button"
|
|
6623
|
+
}, /*#__PURE__*/React.createElement(FormLabel, {
|
|
6561
6624
|
sx: styles.label
|
|
6562
|
-
},
|
|
6625
|
+
}, inActiveLabel), /*#__PURE__*/React.createElement(Switch, Object.assign({
|
|
6563
6626
|
"data-testid": "switchMode"
|
|
6564
6627
|
}, props)), /*#__PURE__*/React.createElement(FormLabel, {
|
|
6565
6628
|
sx: styles.label
|
|
6566
|
-
},
|
|
6629
|
+
}, activeLabel)));
|
|
6567
6630
|
};
|
|
6568
6631
|
|
|
6632
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
6633
|
+
|
|
6634
|
+
var $$1 = _export;
|
|
6635
|
+
var call$1 = functionCall;
|
|
6636
|
+
var isCallable = isCallable$n;
|
|
6637
|
+
var anObject$1 = anObject$g;
|
|
6638
|
+
var toString$2 = toString$c;
|
|
6639
|
+
|
|
6640
|
+
var DELEGATES_TO_EXEC = function () {
|
|
6641
|
+
var execCalled = false;
|
|
6642
|
+
var re = /[ac]/;
|
|
6643
|
+
re.exec = function () {
|
|
6644
|
+
execCalled = true;
|
|
6645
|
+
return /./.exec.apply(this, arguments);
|
|
6646
|
+
};
|
|
6647
|
+
return re.test('abc') === true && execCalled;
|
|
6648
|
+
}();
|
|
6649
|
+
|
|
6650
|
+
var nativeTest = /./.test;
|
|
6651
|
+
|
|
6652
|
+
// `RegExp.prototype.test` method
|
|
6653
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
6654
|
+
$$1({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
6655
|
+
test: function (S) {
|
|
6656
|
+
var R = anObject$1(this);
|
|
6657
|
+
var string = toString$2(S);
|
|
6658
|
+
var exec = R.exec;
|
|
6659
|
+
if (!isCallable(exec)) return call$1(nativeTest, R, string);
|
|
6660
|
+
var result = call$1(exec, R, string);
|
|
6661
|
+
if (result === null) return false;
|
|
6662
|
+
anObject$1(result);
|
|
6663
|
+
return true;
|
|
6664
|
+
}
|
|
6665
|
+
});
|
|
6666
|
+
|
|
6569
6667
|
const isURL = string => /^https?:\/\//.test(string);
|
|
6570
6668
|
const ClearButton = ({
|
|
6571
6669
|
onClick
|
|
@@ -7149,13 +7247,193 @@ const getWarningMessage = error => {
|
|
|
7149
7247
|
return '';
|
|
7150
7248
|
};
|
|
7151
7249
|
|
|
7250
|
+
var toString$1 = toString$c;
|
|
7251
|
+
|
|
7252
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
7253
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$1(argument);
|
|
7254
|
+
};
|
|
7255
|
+
|
|
7256
|
+
var isObject = isObject$e;
|
|
7257
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$9;
|
|
7258
|
+
|
|
7259
|
+
// `InstallErrorCause` abstract operation
|
|
7260
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
7261
|
+
var installErrorCause$1 = function (O, options) {
|
|
7262
|
+
if (isObject(options) && 'cause' in options) {
|
|
7263
|
+
createNonEnumerableProperty$2(O, 'cause', options.cause);
|
|
7264
|
+
}
|
|
7265
|
+
};
|
|
7266
|
+
|
|
7267
|
+
var uncurryThis = functionUncurryThis;
|
|
7268
|
+
|
|
7269
|
+
var $Error = Error;
|
|
7270
|
+
var replace = uncurryThis(''.replace);
|
|
7271
|
+
|
|
7272
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
7273
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
7274
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
7275
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
7276
|
+
|
|
7277
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
7278
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
7279
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
7280
|
+
} return stack;
|
|
7281
|
+
};
|
|
7282
|
+
|
|
7283
|
+
var fails = fails$o;
|
|
7284
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
7285
|
+
|
|
7286
|
+
var errorStackInstallable = !fails(function () {
|
|
7287
|
+
var error = new Error('a');
|
|
7288
|
+
if (!('stack' in error)) return true;
|
|
7289
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
7290
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
7291
|
+
return error.stack !== 7;
|
|
7292
|
+
});
|
|
7293
|
+
|
|
7294
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$9;
|
|
7295
|
+
var clearErrorStack = errorStackClear;
|
|
7296
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
7297
|
+
|
|
7298
|
+
// non-standard V8
|
|
7299
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
7300
|
+
|
|
7301
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
7302
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
7303
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
7304
|
+
else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
7305
|
+
}
|
|
7306
|
+
};
|
|
7307
|
+
|
|
7308
|
+
var getBuiltIn = getBuiltIn$8;
|
|
7309
|
+
var hasOwn = hasOwnProperty_1;
|
|
7310
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$9;
|
|
7311
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
7312
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
7313
|
+
var copyConstructorProperties = copyConstructorProperties$3;
|
|
7314
|
+
var proxyAccessor = proxyAccessor$2;
|
|
7315
|
+
var inheritIfRequired = inheritIfRequired$2;
|
|
7316
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
7317
|
+
var installErrorCause = installErrorCause$1;
|
|
7318
|
+
var installErrorStack = errorStackInstall;
|
|
7319
|
+
var DESCRIPTORS = descriptors;
|
|
7320
|
+
|
|
7321
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
7322
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
7323
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
7324
|
+
var path = FULL_NAME.split('.');
|
|
7325
|
+
var ERROR_NAME = path[path.length - 1];
|
|
7326
|
+
var OriginalError = getBuiltIn.apply(null, path);
|
|
7327
|
+
|
|
7328
|
+
if (!OriginalError) return;
|
|
7329
|
+
|
|
7330
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
7331
|
+
|
|
7332
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
7333
|
+
if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
7334
|
+
|
|
7335
|
+
if (!FORCED) return OriginalError;
|
|
7336
|
+
|
|
7337
|
+
var BaseError = getBuiltIn('Error');
|
|
7338
|
+
|
|
7339
|
+
var WrappedError = wrapper(function (a, b) {
|
|
7340
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
7341
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
7342
|
+
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
7343
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
7344
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
7345
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
7346
|
+
return result;
|
|
7347
|
+
});
|
|
7348
|
+
|
|
7349
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
7350
|
+
|
|
7351
|
+
if (ERROR_NAME !== 'Error') {
|
|
7352
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
7353
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
7354
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
7355
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
7356
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
7357
|
+
}
|
|
7358
|
+
|
|
7359
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
7360
|
+
|
|
7361
|
+
try {
|
|
7362
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
7363
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
7364
|
+
createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
7365
|
+
}
|
|
7366
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
7367
|
+
} catch (error) { /* empty */ }
|
|
7368
|
+
|
|
7369
|
+
return WrappedError;
|
|
7370
|
+
};
|
|
7371
|
+
|
|
7372
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
7373
|
+
var $ = _export;
|
|
7374
|
+
var global$1 = global$p;
|
|
7375
|
+
var apply = functionApply;
|
|
7376
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
7377
|
+
|
|
7378
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
7379
|
+
var WebAssembly = global$1[WEB_ASSEMBLY];
|
|
7380
|
+
|
|
7381
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
7382
|
+
var FORCED = new Error('e', { cause: 7 }).cause !== 7;
|
|
7383
|
+
|
|
7384
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7385
|
+
var O = {};
|
|
7386
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
7387
|
+
$({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
7388
|
+
};
|
|
7389
|
+
|
|
7390
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7391
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
7392
|
+
var O = {};
|
|
7393
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
7394
|
+
$({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
7395
|
+
}
|
|
7396
|
+
};
|
|
7397
|
+
|
|
7398
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
7399
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
7400
|
+
return function Error(message) { return apply(init, this, arguments); };
|
|
7401
|
+
});
|
|
7402
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
7403
|
+
return function EvalError(message) { return apply(init, this, arguments); };
|
|
7404
|
+
});
|
|
7405
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
7406
|
+
return function RangeError(message) { return apply(init, this, arguments); };
|
|
7407
|
+
});
|
|
7408
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
7409
|
+
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
7410
|
+
});
|
|
7411
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
7412
|
+
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
7413
|
+
});
|
|
7414
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
7415
|
+
return function TypeError(message) { return apply(init, this, arguments); };
|
|
7416
|
+
});
|
|
7417
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
7418
|
+
return function URIError(message) { return apply(init, this, arguments); };
|
|
7419
|
+
});
|
|
7420
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
7421
|
+
return function CompileError(message) { return apply(init, this, arguments); };
|
|
7422
|
+
});
|
|
7423
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
7424
|
+
return function LinkError(message) { return apply(init, this, arguments); };
|
|
7425
|
+
});
|
|
7426
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
7427
|
+
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
7428
|
+
});
|
|
7429
|
+
|
|
7152
7430
|
var call = functionCall;
|
|
7153
7431
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
7154
7432
|
var anObject = anObject$g;
|
|
7155
7433
|
var isNullOrUndefined = isNullOrUndefined$7;
|
|
7156
7434
|
var toLength = toLength$3;
|
|
7157
|
-
var toString = toString$
|
|
7158
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
7435
|
+
var toString = toString$c;
|
|
7436
|
+
var requireObjectCoercible = requireObjectCoercible$9;
|
|
7159
7437
|
var getMethod = getMethod$6;
|
|
7160
7438
|
var advanceStringIndex = advanceStringIndex$2;
|
|
7161
7439
|
var regExpExec = regexpExecAbstract;
|
|
@@ -7593,6 +7871,7 @@ const getCurrentTimeAsString = (strFormat = DATE_FORMAT_UTC, utc = true) => {
|
|
|
7593
7871
|
};
|
|
7594
7872
|
/**
|
|
7595
7873
|
* Set date values to a given date (by default it is assumed you are passing the new values in UTC).
|
|
7874
|
+
* Note that months start at 0!
|
|
7596
7875
|
* @param date - the dater to be changed
|
|
7597
7876
|
* @param values - an object with options
|
|
7598
7877
|
* @param useLocalTimeZone - boolean true if you are passing the values in local timezone
|
|
@@ -7626,6 +7905,95 @@ const set = (date, values, useLocalTimeZone = false) => {
|
|
|
7626
7905
|
}
|
|
7627
7906
|
return newDate;
|
|
7628
7907
|
};
|
|
7908
|
+
/**
|
|
7909
|
+
* Get hours of a passed date in UTC (or local timezone if passed false)
|
|
7910
|
+
* @param date - the date of which to extract hours
|
|
7911
|
+
* @param utc - boolean true - whether to get UTC hours
|
|
7912
|
+
* @returns the hour number
|
|
7913
|
+
*/
|
|
7914
|
+
const getHours = (date, utc = true) => {
|
|
7915
|
+
if (utc) {
|
|
7916
|
+
return date.getUTCHours();
|
|
7917
|
+
}
|
|
7918
|
+
return getHours$1(date);
|
|
7919
|
+
};
|
|
7920
|
+
/**
|
|
7921
|
+
* Return the start of hour for the given date. The result will be in UTC.
|
|
7922
|
+
* @param date - the date of which to retrieve the start of the hour
|
|
7923
|
+
* @returns the new date
|
|
7924
|
+
*/
|
|
7925
|
+
const startOfHourUTC = date => {
|
|
7926
|
+
const hourNum = date.getUTCHours();
|
|
7927
|
+
return set(new Date(date), {
|
|
7928
|
+
hours: hourNum,
|
|
7929
|
+
minutes: 0,
|
|
7930
|
+
seconds: 0,
|
|
7931
|
+
milliseconds: 0
|
|
7932
|
+
});
|
|
7933
|
+
};
|
|
7934
|
+
/**
|
|
7935
|
+
* Return the start of a day for the given date. The result will be in UTC.
|
|
7936
|
+
* @param date - the date of which to retrieve the start of day
|
|
7937
|
+
* @returns the new date
|
|
7938
|
+
*/
|
|
7939
|
+
const startOfDayUTC = date => {
|
|
7940
|
+
const dateNum = date.getUTCDate();
|
|
7941
|
+
return set(new Date(date), {
|
|
7942
|
+
date: dateNum,
|
|
7943
|
+
hours: 0,
|
|
7944
|
+
minutes: 0,
|
|
7945
|
+
seconds: 0,
|
|
7946
|
+
milliseconds: 0
|
|
7947
|
+
});
|
|
7948
|
+
};
|
|
7949
|
+
/**
|
|
7950
|
+
* Return the start of a week for the given date. The result will be in UTC.
|
|
7951
|
+
* @param date - the date of which to retrieve the start of the week
|
|
7952
|
+
* @returns the new date
|
|
7953
|
+
*/
|
|
7954
|
+
const startOfWeekUTC = date => {
|
|
7955
|
+
const dateNum = date.getUTCDate();
|
|
7956
|
+
const dayNum = date.getUTCDay();
|
|
7957
|
+
const dayDifference = (dayNum < 1 ? 7 : 0) + dayNum - 1;
|
|
7958
|
+
return set(new Date(date), {
|
|
7959
|
+
date: dateNum - dayDifference,
|
|
7960
|
+
hours: 0,
|
|
7961
|
+
minutes: 0,
|
|
7962
|
+
seconds: 0,
|
|
7963
|
+
milliseconds: 0
|
|
7964
|
+
});
|
|
7965
|
+
};
|
|
7966
|
+
/**
|
|
7967
|
+
* Return the start of a month for the given date. The result will be in UTC.
|
|
7968
|
+
* @param date - the date of which to retrieve the start of the month
|
|
7969
|
+
* @returns the new date
|
|
7970
|
+
*/
|
|
7971
|
+
const startOfMonthUTC = date => {
|
|
7972
|
+
return set(new Date(date), {
|
|
7973
|
+
date: 1,
|
|
7974
|
+
hours: 0,
|
|
7975
|
+
minutes: 0,
|
|
7976
|
+
seconds: 0,
|
|
7977
|
+
milliseconds: 0
|
|
7978
|
+
});
|
|
7979
|
+
};
|
|
7980
|
+
/**
|
|
7981
|
+
* Return the start of a year for the given date. The result will be in UTC.
|
|
7982
|
+
* @param date - the date of which to retrieve the start of the year
|
|
7983
|
+
* @returns the new date
|
|
7984
|
+
*/
|
|
7985
|
+
const startOfYearUTC = date => {
|
|
7986
|
+
const yearNum = date.getUTCFullYear();
|
|
7987
|
+
return set(new Date(date), {
|
|
7988
|
+
year: yearNum,
|
|
7989
|
+
month: 0,
|
|
7990
|
+
date: 1,
|
|
7991
|
+
hours: 0,
|
|
7992
|
+
minutes: 0,
|
|
7993
|
+
seconds: 0,
|
|
7994
|
+
milliseconds: 0
|
|
7995
|
+
});
|
|
7996
|
+
};
|
|
7629
7997
|
|
|
7630
7998
|
/* *
|
|
7631
7999
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -7672,10 +8040,20 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
7672
8040
|
getNowUtc: getNowUtc,
|
|
7673
8041
|
getCurrentTimeAsString: getCurrentTimeAsString,
|
|
7674
8042
|
set: set,
|
|
8043
|
+
getHours: getHours,
|
|
8044
|
+
startOfHourUTC: startOfHourUTC,
|
|
8045
|
+
startOfDayUTC: startOfDayUTC,
|
|
8046
|
+
startOfWeekUTC: startOfWeekUTC,
|
|
8047
|
+
startOfMonthUTC: startOfMonthUTC,
|
|
8048
|
+
startOfYearUTC: startOfYearUTC,
|
|
7675
8049
|
isEqual: isEqual,
|
|
7676
8050
|
startOfDay: startOfDay,
|
|
7677
8051
|
parseISO: parseISO,
|
|
7678
|
-
isWithinInterval: isWithinInterval
|
|
8052
|
+
isWithinInterval: isWithinInterval,
|
|
8053
|
+
getDay: getDay,
|
|
8054
|
+
getMonth: getMonth,
|
|
8055
|
+
getYear: getYear,
|
|
8056
|
+
getWeek: getWeek
|
|
7679
8057
|
});
|
|
7680
8058
|
|
|
7681
8059
|
/* *
|
|
@@ -7721,6 +8099,39 @@ const createToolkitMockStoreWithEggs = storeConfig => {
|
|
|
7721
8099
|
return store;
|
|
7722
8100
|
};
|
|
7723
8101
|
|
|
8102
|
+
/**
|
|
8103
|
+
* Update i18next translations on the fly when used outside React components
|
|
8104
|
+
* NOTE: If possible pass the `t` function instead of using this
|
|
8105
|
+
* Because this doesnt trigger a rerender when using a language select
|
|
8106
|
+
* This only works for simple values, no interpolation
|
|
8107
|
+
*/
|
|
8108
|
+
const handleOutsideComponentTranslations = (translationList, namespace, defaultLanguage = 'en') => {
|
|
8109
|
+
var _a;
|
|
8110
|
+
// we need to create a new object, do not reference the original list directly
|
|
8111
|
+
const outsideComponentTranslations = Object.assign({}, translationList[defaultLanguage]);
|
|
8112
|
+
const updateOutsideComponentTranslations = () => {
|
|
8113
|
+
Object.keys(outsideComponentTranslations).forEach(key => {
|
|
8114
|
+
// @ts-expect-error we need to reassign the translations
|
|
8115
|
+
outsideComponentTranslations[key] = i18next.t(key, {
|
|
8116
|
+
ns: namespace
|
|
8117
|
+
});
|
|
8118
|
+
});
|
|
8119
|
+
};
|
|
8120
|
+
if (i18next.isInitialized) {
|
|
8121
|
+
updateOutsideComponentTranslations();
|
|
8122
|
+
}
|
|
8123
|
+
i18next.on('initialized', () => {
|
|
8124
|
+
updateOutsideComponentTranslations();
|
|
8125
|
+
});
|
|
8126
|
+
i18next.on('languageChanged', () => {
|
|
8127
|
+
updateOutsideComponentTranslations();
|
|
8128
|
+
});
|
|
8129
|
+
(_a = i18next.store) === null || _a === void 0 ? void 0 : _a.on('added', () => {
|
|
8130
|
+
updateOutsideComponentTranslations();
|
|
8131
|
+
});
|
|
8132
|
+
return outsideComponentTranslations;
|
|
8133
|
+
};
|
|
8134
|
+
|
|
7724
8135
|
/* *
|
|
7725
8136
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7726
8137
|
* you may not use this file except in compliance with the License.
|
|
@@ -7769,4 +8180,4 @@ class RenderCounter {
|
|
|
7769
8180
|
}
|
|
7770
8181
|
const renderCounter = new RenderCounter();
|
|
7771
8182
|
|
|
7772
|
-
export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, BUTTON_TITLE, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEFAULT_ERROR_MESSAGE, DraggableComponent$1 as Draggable, ErrorBoundary, LastUpdateTime, ResizeComponent as Resizable, SearchField, SearchFieldButton, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createMockStoreWithEggs, createMockStoreWithEggsAndMiddleware, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAxiosError, pollingIntervalTimeout, renderCounter, showPrompt, sliderHeaderStyle, useConfirmationDialog, useControlledTooltip, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, withEggs };
|
|
8183
|
+
export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, BUTTON_TITLE, CanvasComponent, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEFAULT_ERROR_MESSAGE, DraggableComponent$1 as Draggable, ErrorBoundary, LastUpdateTime, ResizeComponent as Resizable, SearchField, SearchFieldButton, SearchHighlight, StatusTag, SwitchButton, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, createMockStoreWithEggs, createMockStoreWithEggsAndMiddleware, createToolkitMockStoreWithEggs, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, handleOutsideComponentTranslations, isAxiosError, pollingIntervalTimeout, renderCounter, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useUserMenu, withEggs };
|