@ninetailed/experience.js-react 3.1.1 → 3.2.1
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.cjs +293 -867
- package/index.js +293 -867
- package/lib/MergeTag.d.ts +3 -0
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var check = function (it) {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
19
|
-
var global$
|
|
19
|
+
var global$c =
|
|
20
20
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
21
21
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22
22
|
check(typeof window == 'object' && window) ||
|
|
@@ -28,7 +28,7 @@ var global$f =
|
|
|
28
28
|
|
|
29
29
|
var objectGetOwnPropertyDescriptor = {};
|
|
30
30
|
|
|
31
|
-
var fails$
|
|
31
|
+
var fails$c = function (exec) {
|
|
32
32
|
try {
|
|
33
33
|
return !!exec();
|
|
34
34
|
} catch (error) {
|
|
@@ -36,29 +36,29 @@ var fails$h = function (exec) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
var fails$
|
|
39
|
+
var fails$b = fails$c;
|
|
40
40
|
|
|
41
41
|
// Detect IE8's incomplete defineProperty implementation
|
|
42
|
-
var descriptors = !fails$
|
|
42
|
+
var descriptors = !fails$b(function () {
|
|
43
43
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
44
44
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
var fails$
|
|
47
|
+
var fails$a = fails$c;
|
|
48
48
|
|
|
49
|
-
var functionBindNative = !fails$
|
|
49
|
+
var functionBindNative = !fails$a(function () {
|
|
50
50
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
51
51
|
var test = (function () { /* empty */ }).bind();
|
|
52
52
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
53
53
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
var NATIVE_BIND$
|
|
56
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
57
57
|
|
|
58
|
-
var call$
|
|
58
|
+
var call$6 = Function.prototype.call;
|
|
59
59
|
|
|
60
|
-
var functionCall = NATIVE_BIND$
|
|
61
|
-
return call$
|
|
60
|
+
var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
|
|
61
|
+
return call$6.apply(call$6, arguments);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
var objectPropertyIsEnumerable = {};
|
|
@@ -86,66 +86,66 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
var NATIVE_BIND
|
|
89
|
+
var NATIVE_BIND = functionBindNative;
|
|
90
90
|
|
|
91
|
-
var FunctionPrototype$
|
|
92
|
-
var call$
|
|
93
|
-
var uncurryThisWithBind = NATIVE_BIND
|
|
91
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
92
|
+
var call$5 = FunctionPrototype$1.call;
|
|
93
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
|
|
94
94
|
|
|
95
|
-
var functionUncurryThis = NATIVE_BIND
|
|
95
|
+
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
96
96
|
return function () {
|
|
97
|
-
return call$
|
|
97
|
+
return call$5.apply(fn, arguments);
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
var uncurryThis$
|
|
101
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
102
102
|
|
|
103
|
-
var toString$
|
|
104
|
-
var stringSlice
|
|
103
|
+
var toString$1 = uncurryThis$9({}.toString);
|
|
104
|
+
var stringSlice = uncurryThis$9(''.slice);
|
|
105
105
|
|
|
106
|
-
var classofRaw
|
|
107
|
-
return stringSlice
|
|
106
|
+
var classofRaw = function (it) {
|
|
107
|
+
return stringSlice(toString$1(it), 8, -1);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
var uncurryThis$
|
|
111
|
-
var fails$
|
|
112
|
-
var classof$
|
|
110
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
111
|
+
var fails$9 = fails$c;
|
|
112
|
+
var classof$1 = classofRaw;
|
|
113
113
|
|
|
114
|
-
var $Object$
|
|
115
|
-
var split = uncurryThis$
|
|
114
|
+
var $Object$3 = Object;
|
|
115
|
+
var split = uncurryThis$8(''.split);
|
|
116
116
|
|
|
117
117
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
118
|
-
var indexedObject = fails$
|
|
118
|
+
var indexedObject = fails$9(function () {
|
|
119
119
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
120
120
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
121
|
-
return !$Object$
|
|
121
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
122
122
|
}) ? function (it) {
|
|
123
|
-
return classof$
|
|
124
|
-
} : $Object$
|
|
123
|
+
return classof$1(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
124
|
+
} : $Object$3;
|
|
125
125
|
|
|
126
126
|
// we can't use just `it == null` since of `document.all` special case
|
|
127
127
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
128
|
-
var isNullOrUndefined$
|
|
128
|
+
var isNullOrUndefined$2 = function (it) {
|
|
129
129
|
return it === null || it === undefined;
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
var isNullOrUndefined$
|
|
132
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
133
133
|
|
|
134
|
-
var $TypeError$
|
|
134
|
+
var $TypeError$7 = TypeError;
|
|
135
135
|
|
|
136
136
|
// `RequireObjectCoercible` abstract operation
|
|
137
137
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
138
|
-
var requireObjectCoercible$
|
|
139
|
-
if (isNullOrUndefined$
|
|
138
|
+
var requireObjectCoercible$2 = function (it) {
|
|
139
|
+
if (isNullOrUndefined$1(it)) throw $TypeError$7("Can't call method on " + it);
|
|
140
140
|
return it;
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
// toObject with fallback for non-array-like ES3 strings
|
|
144
144
|
var IndexedObject$2 = indexedObject;
|
|
145
|
-
var requireObjectCoercible$
|
|
145
|
+
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
|
146
146
|
|
|
147
147
|
var toIndexedObject$5 = function (it) {
|
|
148
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
148
|
+
return IndexedObject$2(requireObjectCoercible$1(it));
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -164,47 +164,47 @@ var documentAll$1 = $documentAll$1.all;
|
|
|
164
164
|
|
|
165
165
|
// `IsCallable` abstract operation
|
|
166
166
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
167
|
-
var isCallable$
|
|
167
|
+
var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
168
168
|
return typeof argument == 'function' || argument === documentAll$1;
|
|
169
169
|
} : function (argument) {
|
|
170
170
|
return typeof argument == 'function';
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
var isCallable$
|
|
173
|
+
var isCallable$d = isCallable$e;
|
|
174
174
|
var $documentAll = documentAll_1;
|
|
175
175
|
|
|
176
176
|
var documentAll = $documentAll.all;
|
|
177
177
|
|
|
178
178
|
var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
179
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
179
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
|
|
180
180
|
} : function (it) {
|
|
181
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
181
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
var global$
|
|
185
|
-
var isCallable$
|
|
184
|
+
var global$b = global$c;
|
|
185
|
+
var isCallable$c = isCallable$e;
|
|
186
186
|
|
|
187
187
|
var aFunction = function (argument) {
|
|
188
|
-
return isCallable$
|
|
188
|
+
return isCallable$c(argument) ? argument : undefined;
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
var getBuiltIn$4 = function (namespace, method) {
|
|
192
|
-
return arguments.length < 2 ? aFunction(global$
|
|
192
|
+
return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
var uncurryThis$
|
|
195
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
196
196
|
|
|
197
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
197
|
+
var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
|
|
198
198
|
|
|
199
199
|
var getBuiltIn$3 = getBuiltIn$4;
|
|
200
200
|
|
|
201
201
|
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
202
202
|
|
|
203
|
-
var global$
|
|
203
|
+
var global$a = global$c;
|
|
204
204
|
var userAgent = engineUserAgent;
|
|
205
205
|
|
|
206
|
-
var process = global$
|
|
207
|
-
var Deno = global$
|
|
206
|
+
var process = global$a.process;
|
|
207
|
+
var Deno = global$a.Deno;
|
|
208
208
|
var versions = process && process.versions || Deno && Deno.version;
|
|
209
209
|
var v8 = versions && versions.v8;
|
|
210
210
|
var match, version;
|
|
@@ -231,10 +231,10 @@ var engineV8Version = version;
|
|
|
231
231
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
232
232
|
|
|
233
233
|
var V8_VERSION = engineV8Version;
|
|
234
|
-
var fails$
|
|
234
|
+
var fails$8 = fails$c;
|
|
235
235
|
|
|
236
236
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
237
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
237
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
238
238
|
var symbol = Symbol();
|
|
239
239
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
240
240
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -252,92 +252,92 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
252
252
|
&& typeof Symbol.iterator == 'symbol';
|
|
253
253
|
|
|
254
254
|
var getBuiltIn$2 = getBuiltIn$4;
|
|
255
|
-
var isCallable$
|
|
255
|
+
var isCallable$b = isCallable$e;
|
|
256
256
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
257
257
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
258
258
|
|
|
259
|
-
var $Object$
|
|
259
|
+
var $Object$2 = Object;
|
|
260
260
|
|
|
261
261
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
262
262
|
return typeof it == 'symbol';
|
|
263
263
|
} : function (it) {
|
|
264
264
|
var $Symbol = getBuiltIn$2('Symbol');
|
|
265
|
-
return isCallable$
|
|
265
|
+
return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
var $String$
|
|
268
|
+
var $String$2 = String;
|
|
269
269
|
|
|
270
270
|
var tryToString$1 = function (argument) {
|
|
271
271
|
try {
|
|
272
|
-
return $String$
|
|
272
|
+
return $String$2(argument);
|
|
273
273
|
} catch (error) {
|
|
274
274
|
return 'Object';
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
|
|
278
|
-
var isCallable$
|
|
278
|
+
var isCallable$a = isCallable$e;
|
|
279
279
|
var tryToString = tryToString$1;
|
|
280
280
|
|
|
281
|
-
var $TypeError$
|
|
281
|
+
var $TypeError$6 = TypeError;
|
|
282
282
|
|
|
283
283
|
// `Assert: IsCallable(argument) is true`
|
|
284
284
|
var aCallable$2 = function (argument) {
|
|
285
|
-
if (isCallable$
|
|
286
|
-
throw $TypeError$
|
|
285
|
+
if (isCallable$a(argument)) return argument;
|
|
286
|
+
throw $TypeError$6(tryToString(argument) + ' is not a function');
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
var aCallable$1 = aCallable$2;
|
|
290
|
-
var isNullOrUndefined
|
|
290
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
291
291
|
|
|
292
292
|
// `GetMethod` abstract operation
|
|
293
293
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
294
|
-
var getMethod$
|
|
294
|
+
var getMethod$1 = function (V, P) {
|
|
295
295
|
var func = V[P];
|
|
296
|
-
return isNullOrUndefined
|
|
296
|
+
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
297
297
|
};
|
|
298
298
|
|
|
299
|
-
var call$
|
|
300
|
-
var isCallable$
|
|
299
|
+
var call$4 = functionCall;
|
|
300
|
+
var isCallable$9 = isCallable$e;
|
|
301
301
|
var isObject$5 = isObject$6;
|
|
302
302
|
|
|
303
|
-
var $TypeError$
|
|
303
|
+
var $TypeError$5 = TypeError;
|
|
304
304
|
|
|
305
305
|
// `OrdinaryToPrimitive` abstract operation
|
|
306
306
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
307
307
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
308
308
|
var fn, val;
|
|
309
|
-
if (pref === 'string' && isCallable$
|
|
310
|
-
if (isCallable$
|
|
311
|
-
if (pref !== 'string' && isCallable$
|
|
312
|
-
throw $TypeError$
|
|
309
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
|
310
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
|
|
311
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
|
312
|
+
throw $TypeError$5("Can't convert object to primitive value");
|
|
313
313
|
};
|
|
314
314
|
|
|
315
|
-
var shared$
|
|
315
|
+
var shared$3 = {exports: {}};
|
|
316
316
|
|
|
317
|
-
var global$
|
|
317
|
+
var global$9 = global$c;
|
|
318
318
|
|
|
319
319
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
320
320
|
var defineProperty$5 = Object.defineProperty;
|
|
321
321
|
|
|
322
322
|
var defineGlobalProperty$3 = function (key, value) {
|
|
323
323
|
try {
|
|
324
|
-
defineProperty$5(global$
|
|
324
|
+
defineProperty$5(global$9, key, { value: value, configurable: true, writable: true });
|
|
325
325
|
} catch (error) {
|
|
326
|
-
global$
|
|
326
|
+
global$9[key] = value;
|
|
327
327
|
} return value;
|
|
328
328
|
};
|
|
329
329
|
|
|
330
|
-
var global$
|
|
330
|
+
var global$8 = global$c;
|
|
331
331
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
332
332
|
|
|
333
333
|
var SHARED = '__core-js_shared__';
|
|
334
|
-
var store$3 = global$
|
|
334
|
+
var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
335
335
|
|
|
336
336
|
var sharedStore = store$3;
|
|
337
337
|
|
|
338
338
|
var store$2 = sharedStore;
|
|
339
339
|
|
|
340
|
-
(shared$
|
|
340
|
+
(shared$3.exports = function (key, value) {
|
|
341
341
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
342
342
|
})('versions', []).push({
|
|
343
343
|
version: '3.26.1',
|
|
@@ -347,51 +347,51 @@ var store$2 = sharedStore;
|
|
|
347
347
|
source: 'https://github.com/zloirock/core-js'
|
|
348
348
|
});
|
|
349
349
|
|
|
350
|
-
var requireObjectCoercible
|
|
350
|
+
var requireObjectCoercible = requireObjectCoercible$2;
|
|
351
351
|
|
|
352
|
-
var $Object$
|
|
352
|
+
var $Object$1 = Object;
|
|
353
353
|
|
|
354
354
|
// `ToObject` abstract operation
|
|
355
355
|
// https://tc39.es/ecma262/#sec-toobject
|
|
356
|
-
var toObject$
|
|
357
|
-
return $Object$
|
|
356
|
+
var toObject$4 = function (argument) {
|
|
357
|
+
return $Object$1(requireObjectCoercible(argument));
|
|
358
358
|
};
|
|
359
359
|
|
|
360
|
-
var uncurryThis$
|
|
361
|
-
var toObject$
|
|
360
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
361
|
+
var toObject$3 = toObject$4;
|
|
362
362
|
|
|
363
|
-
var hasOwnProperty = uncurryThis$
|
|
363
|
+
var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
|
|
364
364
|
|
|
365
365
|
// `HasOwnProperty` abstract operation
|
|
366
366
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
367
367
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
368
368
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
369
|
-
return hasOwnProperty(toObject$
|
|
369
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
-
var uncurryThis$
|
|
372
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
373
373
|
|
|
374
374
|
var id = 0;
|
|
375
375
|
var postfix = Math.random();
|
|
376
|
-
var toString
|
|
376
|
+
var toString = uncurryThis$5(1.0.toString);
|
|
377
377
|
|
|
378
378
|
var uid$2 = function (key) {
|
|
379
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString
|
|
379
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
-
var global$
|
|
383
|
-
var shared$
|
|
382
|
+
var global$7 = global$c;
|
|
383
|
+
var shared$2 = shared$3.exports;
|
|
384
384
|
var hasOwn$8 = hasOwnProperty_1;
|
|
385
385
|
var uid$1 = uid$2;
|
|
386
386
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
387
387
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
388
388
|
|
|
389
|
-
var WellKnownSymbolsStore = shared$
|
|
390
|
-
var Symbol$1 = global$
|
|
389
|
+
var WellKnownSymbolsStore = shared$2('wks');
|
|
390
|
+
var Symbol$1 = global$7.Symbol;
|
|
391
391
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
392
392
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
393
393
|
|
|
394
|
-
var wellKnownSymbol$
|
|
394
|
+
var wellKnownSymbol$6 = function (name) {
|
|
395
395
|
if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
396
396
|
var description = 'Symbol.' + name;
|
|
397
397
|
if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
|
|
@@ -404,27 +404,27 @@ var wellKnownSymbol$a = function (name) {
|
|
|
404
404
|
} return WellKnownSymbolsStore[name];
|
|
405
405
|
};
|
|
406
406
|
|
|
407
|
-
var call$
|
|
407
|
+
var call$3 = functionCall;
|
|
408
408
|
var isObject$4 = isObject$6;
|
|
409
409
|
var isSymbol$1 = isSymbol$2;
|
|
410
|
-
var getMethod
|
|
410
|
+
var getMethod = getMethod$1;
|
|
411
411
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
412
|
-
var wellKnownSymbol$
|
|
412
|
+
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
|
413
413
|
|
|
414
|
-
var $TypeError$
|
|
415
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
414
|
+
var $TypeError$4 = TypeError;
|
|
415
|
+
var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
|
416
416
|
|
|
417
417
|
// `ToPrimitive` abstract operation
|
|
418
418
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
419
419
|
var toPrimitive$1 = function (input, pref) {
|
|
420
420
|
if (!isObject$4(input) || isSymbol$1(input)) return input;
|
|
421
|
-
var exoticToPrim = getMethod
|
|
421
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
422
422
|
var result;
|
|
423
423
|
if (exoticToPrim) {
|
|
424
424
|
if (pref === undefined) pref = 'default';
|
|
425
|
-
result = call$
|
|
425
|
+
result = call$3(exoticToPrim, input, pref);
|
|
426
426
|
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
|
427
|
-
throw $TypeError$
|
|
427
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
428
428
|
}
|
|
429
429
|
if (pref === undefined) pref = 'number';
|
|
430
430
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -440,10 +440,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
440
440
|
return isSymbol(key) ? key : key + '';
|
|
441
441
|
};
|
|
442
442
|
|
|
443
|
-
var global$
|
|
443
|
+
var global$6 = global$c;
|
|
444
444
|
var isObject$3 = isObject$6;
|
|
445
445
|
|
|
446
|
-
var document$1 = global$
|
|
446
|
+
var document$1 = global$6.document;
|
|
447
447
|
// typeof document.createElement is 'object' in old IE
|
|
448
448
|
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
449
449
|
|
|
@@ -452,11 +452,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
452
452
|
};
|
|
453
453
|
|
|
454
454
|
var DESCRIPTORS$9 = descriptors;
|
|
455
|
-
var fails$
|
|
455
|
+
var fails$7 = fails$c;
|
|
456
456
|
var createElement = documentCreateElement$2;
|
|
457
457
|
|
|
458
458
|
// Thanks to IE8 for its funny defineProperty
|
|
459
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$
|
|
459
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
|
|
460
460
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
461
461
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
462
462
|
get: function () { return 7; }
|
|
@@ -464,7 +464,7 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$c(function () {
|
|
|
464
464
|
});
|
|
465
465
|
|
|
466
466
|
var DESCRIPTORS$8 = descriptors;
|
|
467
|
-
var call$
|
|
467
|
+
var call$2 = functionCall;
|
|
468
468
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
469
469
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
470
470
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -483,17 +483,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
|
|
|
483
483
|
if (IE8_DOM_DEFINE$1) try {
|
|
484
484
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
485
485
|
} catch (error) { /* empty */ }
|
|
486
|
-
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$
|
|
486
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
487
487
|
};
|
|
488
488
|
|
|
489
489
|
var objectDefineProperty = {};
|
|
490
490
|
|
|
491
491
|
var DESCRIPTORS$7 = descriptors;
|
|
492
|
-
var fails$
|
|
492
|
+
var fails$6 = fails$c;
|
|
493
493
|
|
|
494
494
|
// V8 ~ Chrome 36-
|
|
495
495
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
496
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$
|
|
496
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
|
|
497
497
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
498
498
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
499
499
|
value: 42,
|
|
@@ -503,22 +503,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$b(function () {
|
|
|
503
503
|
|
|
504
504
|
var isObject$2 = isObject$6;
|
|
505
505
|
|
|
506
|
-
var $String$
|
|
507
|
-
var $TypeError$
|
|
506
|
+
var $String$1 = String;
|
|
507
|
+
var $TypeError$3 = TypeError;
|
|
508
508
|
|
|
509
509
|
// `Assert: Type(argument) is Object`
|
|
510
|
-
var anObject$
|
|
510
|
+
var anObject$5 = function (argument) {
|
|
511
511
|
if (isObject$2(argument)) return argument;
|
|
512
|
-
throw $TypeError$
|
|
512
|
+
throw $TypeError$3($String$1(argument) + ' is not an object');
|
|
513
513
|
};
|
|
514
514
|
|
|
515
515
|
var DESCRIPTORS$6 = descriptors;
|
|
516
516
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
517
517
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
518
|
-
var anObject$
|
|
518
|
+
var anObject$4 = anObject$5;
|
|
519
519
|
var toPropertyKey = toPropertyKey$2;
|
|
520
520
|
|
|
521
|
-
var $TypeError$
|
|
521
|
+
var $TypeError$2 = TypeError;
|
|
522
522
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
523
523
|
var $defineProperty = Object.defineProperty;
|
|
524
524
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -530,9 +530,9 @@ var WRITABLE = 'writable';
|
|
|
530
530
|
// `Object.defineProperty` method
|
|
531
531
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
532
532
|
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
533
|
-
anObject$
|
|
533
|
+
anObject$4(O);
|
|
534
534
|
P = toPropertyKey(P);
|
|
535
|
-
anObject$
|
|
535
|
+
anObject$4(Attributes);
|
|
536
536
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
537
537
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
538
538
|
if (current && current[WRITABLE]) {
|
|
@@ -545,13 +545,13 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
545
545
|
}
|
|
546
546
|
} return $defineProperty(O, P, Attributes);
|
|
547
547
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
548
|
-
anObject$
|
|
548
|
+
anObject$4(O);
|
|
549
549
|
P = toPropertyKey(P);
|
|
550
|
-
anObject$
|
|
550
|
+
anObject$4(Attributes);
|
|
551
551
|
if (IE8_DOM_DEFINE) try {
|
|
552
552
|
return $defineProperty(O, P, Attributes);
|
|
553
553
|
} catch (error) { /* empty */ }
|
|
554
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
554
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
|
|
555
555
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
556
556
|
return O;
|
|
557
557
|
};
|
|
@@ -560,7 +560,7 @@ var DESCRIPTORS$5 = descriptors;
|
|
|
560
560
|
var definePropertyModule$3 = objectDefineProperty;
|
|
561
561
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
562
562
|
|
|
563
|
-
var createNonEnumerableProperty$
|
|
563
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
564
564
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
565
565
|
} : function (object, key, value) {
|
|
566
566
|
object[key] = value;
|
|
@@ -572,14 +572,14 @@ var makeBuiltIn$2 = {exports: {}};
|
|
|
572
572
|
var DESCRIPTORS$4 = descriptors;
|
|
573
573
|
var hasOwn$6 = hasOwnProperty_1;
|
|
574
574
|
|
|
575
|
-
var FunctionPrototype
|
|
575
|
+
var FunctionPrototype = Function.prototype;
|
|
576
576
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
577
577
|
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
578
578
|
|
|
579
|
-
var EXISTS = hasOwn$6(FunctionPrototype
|
|
579
|
+
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
|
580
580
|
// additional protection from minified / mangled / dropped function names
|
|
581
581
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
582
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype
|
|
582
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
583
583
|
|
|
584
584
|
var functionName = {
|
|
585
585
|
EXISTS: EXISTS,
|
|
@@ -587,14 +587,14 @@ var functionName = {
|
|
|
587
587
|
CONFIGURABLE: CONFIGURABLE
|
|
588
588
|
};
|
|
589
589
|
|
|
590
|
-
var uncurryThis$
|
|
591
|
-
var isCallable$
|
|
590
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
591
|
+
var isCallable$8 = isCallable$e;
|
|
592
592
|
var store$1 = sharedStore;
|
|
593
593
|
|
|
594
|
-
var functionToString = uncurryThis$
|
|
594
|
+
var functionToString = uncurryThis$4(Function.toString);
|
|
595
595
|
|
|
596
596
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
597
|
-
if (!isCallable$
|
|
597
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
|
598
598
|
store$1.inspectSource = function (it) {
|
|
599
599
|
return functionToString(it);
|
|
600
600
|
};
|
|
@@ -602,17 +602,17 @@ if (!isCallable$b(store$1.inspectSource)) {
|
|
|
602
602
|
|
|
603
603
|
var inspectSource$1 = store$1.inspectSource;
|
|
604
604
|
|
|
605
|
-
var global$
|
|
606
|
-
var isCallable$
|
|
605
|
+
var global$5 = global$c;
|
|
606
|
+
var isCallable$7 = isCallable$e;
|
|
607
607
|
|
|
608
|
-
var WeakMap$1 = global$
|
|
608
|
+
var WeakMap$1 = global$5.WeakMap;
|
|
609
609
|
|
|
610
|
-
var weakMapBasicDetection = isCallable$
|
|
610
|
+
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
611
611
|
|
|
612
|
-
var shared$
|
|
612
|
+
var shared$1 = shared$3.exports;
|
|
613
613
|
var uid = uid$2;
|
|
614
614
|
|
|
615
|
-
var keys = shared$
|
|
615
|
+
var keys = shared$1('keys');
|
|
616
616
|
|
|
617
617
|
var sharedKey$3 = function (key) {
|
|
618
618
|
return keys[key] || (keys[key] = uid(key));
|
|
@@ -621,17 +621,17 @@ var sharedKey$3 = function (key) {
|
|
|
621
621
|
var hiddenKeys$4 = {};
|
|
622
622
|
|
|
623
623
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
624
|
-
var global$
|
|
624
|
+
var global$4 = global$c;
|
|
625
625
|
var isObject$1 = isObject$6;
|
|
626
|
-
var createNonEnumerableProperty$
|
|
626
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
627
627
|
var hasOwn$5 = hasOwnProperty_1;
|
|
628
|
-
var shared
|
|
628
|
+
var shared = sharedStore;
|
|
629
629
|
var sharedKey$2 = sharedKey$3;
|
|
630
630
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
631
631
|
|
|
632
632
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
633
|
-
var TypeError$1 = global$
|
|
634
|
-
var WeakMap = global$
|
|
633
|
+
var TypeError$1 = global$4.TypeError;
|
|
634
|
+
var WeakMap = global$4.WeakMap;
|
|
635
635
|
var set, get, has;
|
|
636
636
|
|
|
637
637
|
var enforce = function (it) {
|
|
@@ -647,8 +647,8 @@ var getterFor = function (TYPE) {
|
|
|
647
647
|
};
|
|
648
648
|
};
|
|
649
649
|
|
|
650
|
-
if (NATIVE_WEAK_MAP || shared
|
|
651
|
-
var store = shared
|
|
650
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
651
|
+
var store = shared.state || (shared.state = new WeakMap());
|
|
652
652
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
653
653
|
store.get = store.get;
|
|
654
654
|
store.has = store.has;
|
|
@@ -672,7 +672,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
672
672
|
set = function (it, metadata) {
|
|
673
673
|
if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
674
674
|
metadata.facade = it;
|
|
675
|
-
createNonEnumerableProperty$
|
|
675
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
676
676
|
return metadata;
|
|
677
677
|
};
|
|
678
678
|
get = function (it) {
|
|
@@ -691,8 +691,8 @@ var internalState = {
|
|
|
691
691
|
getterFor: getterFor
|
|
692
692
|
};
|
|
693
693
|
|
|
694
|
-
var fails$
|
|
695
|
-
var isCallable$
|
|
694
|
+
var fails$5 = fails$c;
|
|
695
|
+
var isCallable$6 = isCallable$e;
|
|
696
696
|
var hasOwn$4 = hasOwnProperty_1;
|
|
697
697
|
var DESCRIPTORS$3 = descriptors;
|
|
698
698
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
@@ -700,11 +700,11 @@ var inspectSource = inspectSource$1;
|
|
|
700
700
|
var InternalStateModule$1 = internalState;
|
|
701
701
|
|
|
702
702
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
703
|
-
var getInternalState$
|
|
703
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
|
704
704
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
705
705
|
var defineProperty$4 = Object.defineProperty;
|
|
706
706
|
|
|
707
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$
|
|
707
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
|
|
708
708
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
709
709
|
});
|
|
710
710
|
|
|
@@ -738,19 +738,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
738
738
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
739
739
|
// eslint-disable-next-line no-extend-native -- required
|
|
740
740
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
741
|
-
return isCallable$
|
|
741
|
+
return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
|
|
742
742
|
}, 'toString');
|
|
743
743
|
|
|
744
|
-
var isCallable$
|
|
744
|
+
var isCallable$5 = isCallable$e;
|
|
745
745
|
var definePropertyModule$2 = objectDefineProperty;
|
|
746
746
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
747
747
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
748
748
|
|
|
749
|
-
var defineBuiltIn$
|
|
749
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
750
750
|
if (!options) options = {};
|
|
751
751
|
var simple = options.enumerable;
|
|
752
752
|
var name = options.name !== undefined ? options.name : key;
|
|
753
|
-
if (isCallable$
|
|
753
|
+
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
|
754
754
|
if (options.global) {
|
|
755
755
|
if (simple) O[key] = value;
|
|
756
756
|
else defineGlobalProperty$1(key, value);
|
|
@@ -772,55 +772,55 @@ var defineBuiltIn$4 = function (O, key, value, options) {
|
|
|
772
772
|
var objectGetOwnPropertyNames = {};
|
|
773
773
|
|
|
774
774
|
var ceil = Math.ceil;
|
|
775
|
-
var floor
|
|
775
|
+
var floor = Math.floor;
|
|
776
776
|
|
|
777
777
|
// `Math.trunc` method
|
|
778
778
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
779
779
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
780
780
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
781
781
|
var n = +x;
|
|
782
|
-
return (n > 0 ? floor
|
|
782
|
+
return (n > 0 ? floor : ceil)(n);
|
|
783
783
|
};
|
|
784
784
|
|
|
785
785
|
var trunc = mathTrunc;
|
|
786
786
|
|
|
787
787
|
// `ToIntegerOrInfinity` abstract operation
|
|
788
788
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
789
|
-
var toIntegerOrInfinity$
|
|
789
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
790
790
|
var number = +argument;
|
|
791
791
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
792
792
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
793
793
|
};
|
|
794
794
|
|
|
795
|
-
var toIntegerOrInfinity$
|
|
795
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
796
796
|
|
|
797
|
-
var max
|
|
798
|
-
var min$
|
|
797
|
+
var max = Math.max;
|
|
798
|
+
var min$1 = Math.min;
|
|
799
799
|
|
|
800
800
|
// Helper for a popular repeating case of the spec:
|
|
801
801
|
// Let integer be ? ToInteger(index).
|
|
802
802
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
803
803
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
804
|
-
var integer = toIntegerOrInfinity$
|
|
805
|
-
return integer < 0 ? max
|
|
804
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
805
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
806
806
|
};
|
|
807
807
|
|
|
808
|
-
var toIntegerOrInfinity
|
|
808
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
809
809
|
|
|
810
|
-
var min
|
|
810
|
+
var min = Math.min;
|
|
811
811
|
|
|
812
812
|
// `ToLength` abstract operation
|
|
813
813
|
// https://tc39.es/ecma262/#sec-tolength
|
|
814
|
-
var toLength$
|
|
815
|
-
return argument > 0 ? min
|
|
814
|
+
var toLength$1 = function (argument) {
|
|
815
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
816
816
|
};
|
|
817
817
|
|
|
818
|
-
var toLength
|
|
818
|
+
var toLength = toLength$1;
|
|
819
819
|
|
|
820
820
|
// `LengthOfArrayLike` abstract operation
|
|
821
821
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
822
822
|
var lengthOfArrayLike$2 = function (obj) {
|
|
823
|
-
return toLength
|
|
823
|
+
return toLength(obj.length);
|
|
824
824
|
};
|
|
825
825
|
|
|
826
826
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
@@ -828,7 +828,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
|
828
828
|
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
829
829
|
|
|
830
830
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
831
|
-
var createMethod$
|
|
831
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
832
832
|
return function ($this, el, fromIndex) {
|
|
833
833
|
var O = toIndexedObject$3($this);
|
|
834
834
|
var length = lengthOfArrayLike$1(O);
|
|
@@ -850,29 +850,29 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
850
850
|
var arrayIncludes = {
|
|
851
851
|
// `Array.prototype.includes` method
|
|
852
852
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
853
|
-
includes: createMethod$
|
|
853
|
+
includes: createMethod$1(true),
|
|
854
854
|
// `Array.prototype.indexOf` method
|
|
855
855
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
856
|
-
indexOf: createMethod$
|
|
856
|
+
indexOf: createMethod$1(false)
|
|
857
857
|
};
|
|
858
858
|
|
|
859
|
-
var uncurryThis$
|
|
859
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
860
860
|
var hasOwn$3 = hasOwnProperty_1;
|
|
861
861
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
862
|
-
var indexOf
|
|
862
|
+
var indexOf = arrayIncludes.indexOf;
|
|
863
863
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
864
864
|
|
|
865
|
-
var push
|
|
865
|
+
var push = uncurryThis$3([].push);
|
|
866
866
|
|
|
867
867
|
var objectKeysInternal = function (object, names) {
|
|
868
868
|
var O = toIndexedObject$2(object);
|
|
869
869
|
var i = 0;
|
|
870
870
|
var result = [];
|
|
871
871
|
var key;
|
|
872
|
-
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push
|
|
872
|
+
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
|
|
873
873
|
// Don't enum bug & hidden keys
|
|
874
874
|
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
875
|
-
~indexOf
|
|
875
|
+
~indexOf(result, key) || push(result, key);
|
|
876
876
|
}
|
|
877
877
|
return result;
|
|
878
878
|
};
|
|
@@ -906,18 +906,18 @@ var objectGetOwnPropertySymbols = {};
|
|
|
906
906
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
907
907
|
|
|
908
908
|
var getBuiltIn$1 = getBuiltIn$4;
|
|
909
|
-
var uncurryThis$
|
|
909
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
910
910
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
911
911
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
912
|
-
var anObject$
|
|
912
|
+
var anObject$3 = anObject$5;
|
|
913
913
|
|
|
914
|
-
var concat$
|
|
914
|
+
var concat$1 = uncurryThis$2([].concat);
|
|
915
915
|
|
|
916
916
|
// all object keys, includes non-enumerable and symbols
|
|
917
917
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
918
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
918
|
+
var keys = getOwnPropertyNamesModule.f(anObject$3(it));
|
|
919
919
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
920
|
-
return getOwnPropertySymbols ? concat$
|
|
920
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
921
921
|
};
|
|
922
922
|
|
|
923
923
|
var hasOwn$2 = hasOwnProperty_1;
|
|
@@ -937,8 +937,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
939
|
|
|
940
|
-
var fails$
|
|
941
|
-
var isCallable$
|
|
940
|
+
var fails$4 = fails$c;
|
|
941
|
+
var isCallable$4 = isCallable$e;
|
|
942
942
|
|
|
943
943
|
var replacement = /#|\.prototype\./;
|
|
944
944
|
|
|
@@ -946,7 +946,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
946
946
|
var value = data[normalize(feature)];
|
|
947
947
|
return value == POLYFILL ? true
|
|
948
948
|
: value == NATIVE ? false
|
|
949
|
-
: isCallable$
|
|
949
|
+
: isCallable$4(detection) ? fails$4(detection)
|
|
950
950
|
: !!detection;
|
|
951
951
|
};
|
|
952
952
|
|
|
@@ -960,10 +960,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
960
960
|
|
|
961
961
|
var isForced_1 = isForced$1;
|
|
962
962
|
|
|
963
|
-
var global$
|
|
963
|
+
var global$3 = global$c;
|
|
964
964
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
965
|
-
var createNonEnumerableProperty$
|
|
966
|
-
var defineBuiltIn$
|
|
965
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
966
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
967
967
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
968
968
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
969
969
|
var isForced = isForced_1;
|
|
@@ -989,11 +989,11 @@ var _export = function (options, source) {
|
|
|
989
989
|
var STATIC = options.stat;
|
|
990
990
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
991
991
|
if (GLOBAL) {
|
|
992
|
-
target = global$
|
|
992
|
+
target = global$3;
|
|
993
993
|
} else if (STATIC) {
|
|
994
|
-
target = global$
|
|
994
|
+
target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
|
|
995
995
|
} else {
|
|
996
|
-
target = (global$
|
|
996
|
+
target = (global$3[TARGET] || {}).prototype;
|
|
997
997
|
}
|
|
998
998
|
if (target) for (key in source) {
|
|
999
999
|
sourceProperty = source[key];
|
|
@@ -1009,9 +1009,9 @@ var _export = function (options, source) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
// add a flag to not completely full polyfills
|
|
1011
1011
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1012
|
-
createNonEnumerableProperty$
|
|
1012
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1013
1013
|
}
|
|
1014
|
-
defineBuiltIn$
|
|
1014
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1015
1015
|
}
|
|
1016
1016
|
};
|
|
1017
1017
|
|
|
@@ -1026,24 +1026,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1026
1026
|
};
|
|
1027
1027
|
|
|
1028
1028
|
var DESCRIPTORS$2 = descriptors;
|
|
1029
|
-
var uncurryThis$
|
|
1030
|
-
var call$
|
|
1031
|
-
var fails$
|
|
1029
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1030
|
+
var call$1 = functionCall;
|
|
1031
|
+
var fails$3 = fails$c;
|
|
1032
1032
|
var objectKeys$1 = objectKeys$2;
|
|
1033
1033
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1034
1034
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1035
|
-
var toObject$
|
|
1035
|
+
var toObject$2 = toObject$4;
|
|
1036
1036
|
var IndexedObject$1 = indexedObject;
|
|
1037
1037
|
|
|
1038
1038
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1039
1039
|
var $assign = Object.assign;
|
|
1040
1040
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1041
1041
|
var defineProperty$3 = Object.defineProperty;
|
|
1042
|
-
var concat
|
|
1042
|
+
var concat = uncurryThis$1([].concat);
|
|
1043
1043
|
|
|
1044
1044
|
// `Object.assign` method
|
|
1045
1045
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1046
|
-
var objectAssign = !$assign || fails$
|
|
1046
|
+
var objectAssign = !$assign || fails$3(function () {
|
|
1047
1047
|
// should have correct order of operations (Edge bug)
|
|
1048
1048
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1049
1049
|
enumerable: true,
|
|
@@ -1064,31 +1064,31 @@ var objectAssign = !$assign || fails$8(function () {
|
|
|
1064
1064
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1065
1065
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1066
1066
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1067
|
-
var T = toObject$
|
|
1067
|
+
var T = toObject$2(target);
|
|
1068
1068
|
var argumentsLength = arguments.length;
|
|
1069
1069
|
var index = 1;
|
|
1070
1070
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1071
1071
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1072
1072
|
while (argumentsLength > index) {
|
|
1073
1073
|
var S = IndexedObject$1(arguments[index++]);
|
|
1074
|
-
var keys = getOwnPropertySymbols ? concat
|
|
1074
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1075
1075
|
var length = keys.length;
|
|
1076
1076
|
var j = 0;
|
|
1077
1077
|
var key;
|
|
1078
1078
|
while (length > j) {
|
|
1079
1079
|
key = keys[j++];
|
|
1080
|
-
if (!DESCRIPTORS$2 || call$
|
|
1080
|
+
if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1081
1081
|
}
|
|
1082
1082
|
} return T;
|
|
1083
1083
|
} : $assign;
|
|
1084
1084
|
|
|
1085
|
-
var $$
|
|
1085
|
+
var $$2 = _export;
|
|
1086
1086
|
var assign = objectAssign;
|
|
1087
1087
|
|
|
1088
1088
|
// `Object.assign` method
|
|
1089
1089
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1090
1090
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1091
|
-
$$
|
|
1091
|
+
$$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1092
1092
|
assign: assign
|
|
1093
1093
|
});
|
|
1094
1094
|
|
|
@@ -1097,17 +1097,17 @@ const NinetailedContext = /*#__PURE__*/createContext(undefined);
|
|
|
1097
1097
|
const ExperimentsContext = /*#__PURE__*/createContext(undefined);
|
|
1098
1098
|
|
|
1099
1099
|
var aCallable = aCallable$2;
|
|
1100
|
-
var toObject$
|
|
1100
|
+
var toObject$1 = toObject$4;
|
|
1101
1101
|
var IndexedObject = indexedObject;
|
|
1102
1102
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1103
1103
|
|
|
1104
|
-
var $TypeError$
|
|
1104
|
+
var $TypeError$1 = TypeError;
|
|
1105
1105
|
|
|
1106
1106
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
1107
|
-
var createMethod
|
|
1107
|
+
var createMethod = function (IS_RIGHT) {
|
|
1108
1108
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
1109
1109
|
aCallable(callbackfn);
|
|
1110
|
-
var O = toObject$
|
|
1110
|
+
var O = toObject$1(that);
|
|
1111
1111
|
var self = IndexedObject(O);
|
|
1112
1112
|
var length = lengthOfArrayLike(O);
|
|
1113
1113
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
@@ -1120,7 +1120,7 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
index += i;
|
|
1122
1122
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
1123
|
-
throw $TypeError$
|
|
1123
|
+
throw $TypeError$1('Reduce of empty array with no initial value');
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -1133,28 +1133,28 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1133
1133
|
var arrayReduce = {
|
|
1134
1134
|
// `Array.prototype.reduce` method
|
|
1135
1135
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1136
|
-
left: createMethod
|
|
1136
|
+
left: createMethod(false),
|
|
1137
1137
|
// `Array.prototype.reduceRight` method
|
|
1138
1138
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1139
|
-
right: createMethod
|
|
1139
|
+
right: createMethod(true)
|
|
1140
1140
|
};
|
|
1141
1141
|
|
|
1142
|
-
var fails$
|
|
1142
|
+
var fails$2 = fails$c;
|
|
1143
1143
|
|
|
1144
1144
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1145
1145
|
var method = [][METHOD_NAME];
|
|
1146
|
-
return !!method && fails$
|
|
1146
|
+
return !!method && fails$2(function () {
|
|
1147
1147
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1148
1148
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1149
1149
|
});
|
|
1150
1150
|
};
|
|
1151
1151
|
|
|
1152
|
-
var classof
|
|
1153
|
-
var global$
|
|
1152
|
+
var classof = classofRaw;
|
|
1153
|
+
var global$2 = global$c;
|
|
1154
1154
|
|
|
1155
|
-
var engineIsNode = classof
|
|
1155
|
+
var engineIsNode = classof(global$2.process) == 'process';
|
|
1156
1156
|
|
|
1157
|
-
var $$
|
|
1157
|
+
var $$1 = _export;
|
|
1158
1158
|
var $reduce = arrayReduce.left;
|
|
1159
1159
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1160
1160
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -1167,7 +1167,7 @@ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
|
1167
1167
|
|
|
1168
1168
|
// `Array.prototype.reduce` method
|
|
1169
1169
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1170
|
-
$$
|
|
1170
|
+
$$1({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
1171
1171
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
1172
1172
|
var length = arguments.length;
|
|
1173
1173
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -1179,7 +1179,7 @@ var objectDefineProperties = {};
|
|
|
1179
1179
|
var DESCRIPTORS$1 = descriptors;
|
|
1180
1180
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1181
1181
|
var definePropertyModule = objectDefineProperty;
|
|
1182
|
-
var anObject$
|
|
1182
|
+
var anObject$2 = anObject$5;
|
|
1183
1183
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1184
1184
|
var objectKeys = objectKeys$2;
|
|
1185
1185
|
|
|
@@ -1187,7 +1187,7 @@ var objectKeys = objectKeys$2;
|
|
|
1187
1187
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1188
1188
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1189
1189
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1190
|
-
anObject$
|
|
1190
|
+
anObject$2(O);
|
|
1191
1191
|
var props = toIndexedObject$1(Properties);
|
|
1192
1192
|
var keys = objectKeys(Properties);
|
|
1193
1193
|
var length = keys.length;
|
|
@@ -1203,7 +1203,7 @@ var html$1 = getBuiltIn('document', 'documentElement');
|
|
|
1203
1203
|
|
|
1204
1204
|
/* global ActiveXObject -- old IE, WSH */
|
|
1205
1205
|
|
|
1206
|
-
var anObject$
|
|
1206
|
+
var anObject$1 = anObject$5;
|
|
1207
1207
|
var definePropertiesModule = objectDefineProperties;
|
|
1208
1208
|
var enumBugKeys = enumBugKeys$3;
|
|
1209
1209
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1277,7 +1277,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1277
1277
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1278
1278
|
var result;
|
|
1279
1279
|
if (O !== null) {
|
|
1280
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1280
|
+
EmptyConstructor[PROTOTYPE] = anObject$1(O);
|
|
1281
1281
|
result = new EmptyConstructor();
|
|
1282
1282
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1283
1283
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1286,11 +1286,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1286
1286
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1287
1287
|
};
|
|
1288
1288
|
|
|
1289
|
-
var wellKnownSymbol$
|
|
1290
|
-
var create$
|
|
1289
|
+
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
|
1290
|
+
var create$1 = objectCreate;
|
|
1291
1291
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1292
1292
|
|
|
1293
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1293
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
1294
1294
|
var ArrayPrototype = Array.prototype;
|
|
1295
1295
|
|
|
1296
1296
|
// Array.prototype[@@unscopables]
|
|
@@ -1298,7 +1298,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
1298
1298
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1299
1299
|
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
1300
1300
|
configurable: true,
|
|
1301
|
-
value: create$
|
|
1301
|
+
value: create$1(null)
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
@@ -1309,9 +1309,9 @@ var addToUnscopables$1 = function (key) {
|
|
|
1309
1309
|
|
|
1310
1310
|
var iterators = {};
|
|
1311
1311
|
|
|
1312
|
-
var fails$
|
|
1312
|
+
var fails$1 = fails$c;
|
|
1313
1313
|
|
|
1314
|
-
var correctPrototypeGetter = !fails$
|
|
1314
|
+
var correctPrototypeGetter = !fails$1(function () {
|
|
1315
1315
|
function F() { /* empty */ }
|
|
1316
1316
|
F.prototype.constructor = null;
|
|
1317
1317
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1319,35 +1319,35 @@ var correctPrototypeGetter = !fails$6(function () {
|
|
|
1319
1319
|
});
|
|
1320
1320
|
|
|
1321
1321
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1322
|
-
var isCallable$
|
|
1323
|
-
var toObject
|
|
1322
|
+
var isCallable$3 = isCallable$e;
|
|
1323
|
+
var toObject = toObject$4;
|
|
1324
1324
|
var sharedKey = sharedKey$3;
|
|
1325
1325
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1326
1326
|
|
|
1327
1327
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1328
|
-
var $Object
|
|
1329
|
-
var ObjectPrototype = $Object
|
|
1328
|
+
var $Object = Object;
|
|
1329
|
+
var ObjectPrototype = $Object.prototype;
|
|
1330
1330
|
|
|
1331
1331
|
// `Object.getPrototypeOf` method
|
|
1332
1332
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1333
1333
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1334
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object
|
|
1335
|
-
var object = toObject
|
|
1334
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1335
|
+
var object = toObject(O);
|
|
1336
1336
|
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1337
1337
|
var constructor = object.constructor;
|
|
1338
|
-
if (isCallable$
|
|
1338
|
+
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
1339
1339
|
return constructor.prototype;
|
|
1340
|
-
} return object instanceof $Object
|
|
1340
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1341
1341
|
};
|
|
1342
1342
|
|
|
1343
|
-
var fails
|
|
1344
|
-
var isCallable$
|
|
1343
|
+
var fails = fails$c;
|
|
1344
|
+
var isCallable$2 = isCallable$e;
|
|
1345
1345
|
var isObject = isObject$6;
|
|
1346
1346
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1347
|
-
var defineBuiltIn$
|
|
1348
|
-
var wellKnownSymbol$
|
|
1347
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1348
|
+
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
1349
1349
|
|
|
1350
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
1350
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
1351
1351
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1352
1352
|
|
|
1353
1353
|
// `%IteratorPrototype%` object
|
|
@@ -1365,7 +1365,7 @@ if ([].keys) {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
|
|
1368
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails
|
|
1368
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
|
|
1369
1369
|
var test = {};
|
|
1370
1370
|
// FF44- legacy iterators case
|
|
1371
1371
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1375,8 +1375,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1375
1375
|
|
|
1376
1376
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1377
1377
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1378
|
-
if (!isCallable$
|
|
1379
|
-
defineBuiltIn$
|
|
1378
|
+
if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
|
|
1379
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1380
1380
|
return this;
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
@@ -1388,19 +1388,19 @@ var iteratorsCore = {
|
|
|
1388
1388
|
|
|
1389
1389
|
var defineProperty$1 = objectDefineProperty.f;
|
|
1390
1390
|
var hasOwn = hasOwnProperty_1;
|
|
1391
|
-
var wellKnownSymbol$
|
|
1391
|
+
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
|
1392
1392
|
|
|
1393
|
-
var TO_STRING_TAG$
|
|
1393
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
1394
1394
|
|
|
1395
1395
|
var setToStringTag$2 = function (target, TAG, STATIC) {
|
|
1396
1396
|
if (target && !STATIC) target = target.prototype;
|
|
1397
|
-
if (target && !hasOwn(target, TO_STRING_TAG$
|
|
1398
|
-
defineProperty$1(target, TO_STRING_TAG$
|
|
1397
|
+
if (target && !hasOwn(target, TO_STRING_TAG$1)) {
|
|
1398
|
+
defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
1399
1399
|
}
|
|
1400
1400
|
};
|
|
1401
1401
|
|
|
1402
1402
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1403
|
-
var create
|
|
1403
|
+
var create = objectCreate;
|
|
1404
1404
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1405
1405
|
var setToStringTag$1 = setToStringTag$2;
|
|
1406
1406
|
var Iterators$2 = iterators;
|
|
@@ -1409,26 +1409,26 @@ var returnThis$1 = function () { return this; };
|
|
|
1409
1409
|
|
|
1410
1410
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1411
1411
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1412
|
-
IteratorConstructor.prototype = create
|
|
1412
|
+
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1413
1413
|
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
|
1414
1414
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1415
1415
|
return IteratorConstructor;
|
|
1416
1416
|
};
|
|
1417
1417
|
|
|
1418
|
-
var isCallable$
|
|
1418
|
+
var isCallable$1 = isCallable$e;
|
|
1419
1419
|
|
|
1420
|
-
var $String
|
|
1421
|
-
var $TypeError
|
|
1420
|
+
var $String = String;
|
|
1421
|
+
var $TypeError = TypeError;
|
|
1422
1422
|
|
|
1423
1423
|
var aPossiblePrototype$1 = function (argument) {
|
|
1424
|
-
if (typeof argument == 'object' || isCallable$
|
|
1425
|
-
throw $TypeError
|
|
1424
|
+
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
|
1425
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
1428
1428
|
/* eslint-disable no-proto -- safe */
|
|
1429
1429
|
|
|
1430
|
-
var uncurryThis
|
|
1431
|
-
var anObject
|
|
1430
|
+
var uncurryThis = functionUncurryThis;
|
|
1431
|
+
var anObject = anObject$5;
|
|
1432
1432
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1433
1433
|
|
|
1434
1434
|
// `Object.setPrototypeOf` method
|
|
@@ -1441,12 +1441,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1441
1441
|
var setter;
|
|
1442
1442
|
try {
|
|
1443
1443
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1444
|
-
setter = uncurryThis
|
|
1444
|
+
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1445
1445
|
setter(test, []);
|
|
1446
1446
|
CORRECT_SETTER = test instanceof Array;
|
|
1447
1447
|
} catch (error) { /* empty */ }
|
|
1448
1448
|
return function setPrototypeOf(O, proto) {
|
|
1449
|
-
anObject
|
|
1449
|
+
anObject(O);
|
|
1450
1450
|
aPossiblePrototype(proto);
|
|
1451
1451
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1452
1452
|
else O.__proto__ = proto;
|
|
@@ -1454,17 +1454,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1454
1454
|
};
|
|
1455
1455
|
}() : undefined);
|
|
1456
1456
|
|
|
1457
|
-
var
|
|
1458
|
-
var call
|
|
1457
|
+
var $ = _export;
|
|
1458
|
+
var call = functionCall;
|
|
1459
1459
|
var FunctionName = functionName;
|
|
1460
|
-
var isCallable
|
|
1460
|
+
var isCallable = isCallable$e;
|
|
1461
1461
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1462
1462
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1463
1463
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1464
1464
|
var setToStringTag = setToStringTag$2;
|
|
1465
|
-
var createNonEnumerableProperty$
|
|
1466
|
-
var defineBuiltIn
|
|
1467
|
-
var wellKnownSymbol$
|
|
1465
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1466
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
1467
|
+
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
|
1468
1468
|
var Iterators$1 = iterators;
|
|
1469
1469
|
var IteratorsCore = iteratorsCore;
|
|
1470
1470
|
|
|
@@ -1472,7 +1472,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
|
1472
1472
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1473
1473
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1474
1474
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1475
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
1475
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
1476
1476
|
var KEYS = 'keys';
|
|
1477
1477
|
var VALUES = 'values';
|
|
1478
1478
|
var ENTRIES = 'entries';
|
|
@@ -1509,8 +1509,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1509
1509
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1510
1510
|
if (setPrototypeOf) {
|
|
1511
1511
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1512
|
-
} else if (!isCallable
|
|
1513
|
-
defineBuiltIn
|
|
1512
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1513
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
1516
|
// Set @@toStringTag to native iterators
|
|
@@ -1521,10 +1521,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1521
1521
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1522
1522
|
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1523
1523
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1524
|
-
createNonEnumerableProperty$
|
|
1524
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1525
1525
|
} else {
|
|
1526
1526
|
INCORRECT_VALUES_NAME = true;
|
|
1527
|
-
defaultIterator = function values() { return call
|
|
1527
|
+
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
|
|
@@ -1537,14 +1537,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1537
1537
|
};
|
|
1538
1538
|
if (FORCED) for (KEY in methods) {
|
|
1539
1539
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1540
|
-
defineBuiltIn
|
|
1540
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1541
1541
|
}
|
|
1542
|
-
} else
|
|
1542
|
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
1545
|
// define iterator
|
|
1546
1546
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1547
|
-
defineBuiltIn
|
|
1547
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1548
1548
|
}
|
|
1549
1549
|
Iterators$1[NAME] = defaultIterator;
|
|
1550
1550
|
|
|
@@ -1568,7 +1568,7 @@ var DESCRIPTORS = descriptors;
|
|
|
1568
1568
|
|
|
1569
1569
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1570
1570
|
var setInternalState = InternalStateModule.set;
|
|
1571
|
-
var getInternalState
|
|
1571
|
+
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1572
1572
|
|
|
1573
1573
|
// `Array.prototype.entries` method
|
|
1574
1574
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1590,7 +1590,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1590
1590
|
// `%ArrayIteratorPrototype%.next` method
|
|
1591
1591
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1592
1592
|
}, function () {
|
|
1593
|
-
var state = getInternalState
|
|
1593
|
+
var state = getInternalState(this);
|
|
1594
1594
|
var target = state.target;
|
|
1595
1595
|
var kind = state.kind;
|
|
1596
1596
|
var index = state.index++;
|
|
@@ -1662,32 +1662,32 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1662
1662
|
|
|
1663
1663
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1664
1664
|
|
|
1665
|
-
var global$
|
|
1665
|
+
var global$1 = global$c;
|
|
1666
1666
|
var DOMIterables = domIterables;
|
|
1667
1667
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1668
1668
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1669
|
-
var createNonEnumerableProperty
|
|
1670
|
-
var wellKnownSymbol
|
|
1669
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1670
|
+
var wellKnownSymbol = wellKnownSymbol$6;
|
|
1671
1671
|
|
|
1672
|
-
var ITERATOR = wellKnownSymbol
|
|
1673
|
-
var TO_STRING_TAG
|
|
1672
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
1673
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1674
1674
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1675
1675
|
|
|
1676
1676
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1677
1677
|
if (CollectionPrototype) {
|
|
1678
1678
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1679
1679
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1680
|
-
createNonEnumerableProperty
|
|
1680
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1681
1681
|
} catch (error) {
|
|
1682
1682
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1683
1683
|
}
|
|
1684
|
-
if (!CollectionPrototype[TO_STRING_TAG
|
|
1685
|
-
createNonEnumerableProperty
|
|
1684
|
+
if (!CollectionPrototype[TO_STRING_TAG]) {
|
|
1685
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
|
1686
1686
|
}
|
|
1687
1687
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1688
1688
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1689
1689
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1690
|
-
createNonEnumerableProperty
|
|
1690
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1691
1691
|
} catch (error) {
|
|
1692
1692
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1693
1693
|
}
|
|
@@ -1696,7 +1696,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1696
1696
|
};
|
|
1697
1697
|
|
|
1698
1698
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1699
|
-
handlePrototype(global$
|
|
1699
|
+
handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
1702
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1986,595 +1986,21 @@ const Personalize = _a => {
|
|
|
1986
1986
|
}));
|
|
1987
1987
|
};
|
|
1988
1988
|
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
1995
|
-
|
|
1996
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1997
|
-
|
|
1998
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1999
|
-
var isCallable$2 = isCallable$h;
|
|
2000
|
-
var classofRaw$1 = classofRaw$2;
|
|
2001
|
-
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
2002
|
-
|
|
2003
|
-
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
2004
|
-
var $Object = Object;
|
|
2005
|
-
|
|
2006
|
-
// ES3 wrong here
|
|
2007
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
|
|
2008
|
-
|
|
2009
|
-
// fallback for IE11 Script Access Denied error
|
|
2010
|
-
var tryGet = function (it, key) {
|
|
2011
|
-
try {
|
|
2012
|
-
return it[key];
|
|
2013
|
-
} catch (error) { /* empty */ }
|
|
2014
|
-
};
|
|
2015
|
-
|
|
2016
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
2017
|
-
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
2018
|
-
var O, tag, result;
|
|
2019
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2020
|
-
// @@toStringTag case
|
|
2021
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
2022
|
-
// builtinTag case
|
|
2023
|
-
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
2024
|
-
// ES3 arguments fallback
|
|
2025
|
-
: (result = classofRaw$1(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
2026
|
-
};
|
|
2027
|
-
|
|
2028
|
-
var classof$1 = classof$2;
|
|
2029
|
-
|
|
2030
|
-
var $String = String;
|
|
2031
|
-
|
|
2032
|
-
var toString$3 = function (argument) {
|
|
2033
|
-
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
2034
|
-
return $String(argument);
|
|
2035
|
-
};
|
|
2036
|
-
|
|
2037
|
-
var anObject$2 = anObject$8;
|
|
2038
|
-
|
|
2039
|
-
// `RegExp.prototype.flags` getter implementation
|
|
2040
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2041
|
-
var regexpFlags$1 = function () {
|
|
2042
|
-
var that = anObject$2(this);
|
|
2043
|
-
var result = '';
|
|
2044
|
-
if (that.hasIndices) result += 'd';
|
|
2045
|
-
if (that.global) result += 'g';
|
|
2046
|
-
if (that.ignoreCase) result += 'i';
|
|
2047
|
-
if (that.multiline) result += 'm';
|
|
2048
|
-
if (that.dotAll) result += 's';
|
|
2049
|
-
if (that.unicode) result += 'u';
|
|
2050
|
-
if (that.unicodeSets) result += 'v';
|
|
2051
|
-
if (that.sticky) result += 'y';
|
|
2052
|
-
return result;
|
|
2053
|
-
};
|
|
2054
|
-
|
|
2055
|
-
var fails$4 = fails$h;
|
|
2056
|
-
var global$3 = global$f;
|
|
2057
|
-
|
|
2058
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2059
|
-
var $RegExp$2 = global$3.RegExp;
|
|
2060
|
-
|
|
2061
|
-
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
2062
|
-
var re = $RegExp$2('a', 'y');
|
|
2063
|
-
re.lastIndex = 2;
|
|
2064
|
-
return re.exec('abcd') != null;
|
|
2065
|
-
});
|
|
2066
|
-
|
|
2067
|
-
// UC Browser bug
|
|
2068
|
-
// https://github.com/zloirock/core-js/issues/1008
|
|
2069
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
2070
|
-
return !$RegExp$2('a', 'y').sticky;
|
|
2071
|
-
});
|
|
2072
|
-
|
|
2073
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
2074
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
2075
|
-
var re = $RegExp$2('^r', 'gy');
|
|
2076
|
-
re.lastIndex = 2;
|
|
2077
|
-
return re.exec('str') != null;
|
|
2078
|
-
});
|
|
2079
|
-
|
|
2080
|
-
var regexpStickyHelpers = {
|
|
2081
|
-
BROKEN_CARET: BROKEN_CARET,
|
|
2082
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
2083
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
var fails$3 = fails$h;
|
|
2087
|
-
var global$2 = global$f;
|
|
2088
|
-
|
|
2089
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
2090
|
-
var $RegExp$1 = global$2.RegExp;
|
|
2091
|
-
|
|
2092
|
-
var regexpUnsupportedDotAll = fails$3(function () {
|
|
2093
|
-
var re = $RegExp$1('.', 's');
|
|
2094
|
-
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
2095
|
-
});
|
|
2096
|
-
|
|
2097
|
-
var fails$2 = fails$h;
|
|
2098
|
-
var global$1 = global$f;
|
|
2099
|
-
|
|
2100
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
2101
|
-
var $RegExp = global$1.RegExp;
|
|
2102
|
-
|
|
2103
|
-
var regexpUnsupportedNcg = fails$2(function () {
|
|
2104
|
-
var re = $RegExp('(?<a>b)', 'g');
|
|
2105
|
-
return re.exec('b').groups.a !== 'b' ||
|
|
2106
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
|
2107
|
-
});
|
|
2108
|
-
|
|
2109
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
2110
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
2111
|
-
var call$3 = functionCall;
|
|
2112
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
2113
|
-
var toString$2 = toString$3;
|
|
2114
|
-
var regexpFlags = regexpFlags$1;
|
|
2115
|
-
var stickyHelpers = regexpStickyHelpers;
|
|
2116
|
-
var shared = shared$4.exports;
|
|
2117
|
-
var create = objectCreate;
|
|
2118
|
-
var getInternalState = internalState.get;
|
|
2119
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
2120
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
2121
|
-
|
|
2122
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
2123
|
-
var nativeExec = RegExp.prototype.exec;
|
|
2124
|
-
var patchedExec = nativeExec;
|
|
2125
|
-
var charAt$3 = uncurryThis$5(''.charAt);
|
|
2126
|
-
var indexOf = uncurryThis$5(''.indexOf);
|
|
2127
|
-
var replace$1 = uncurryThis$5(''.replace);
|
|
2128
|
-
var stringSlice$3 = uncurryThis$5(''.slice);
|
|
2129
|
-
|
|
2130
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
2131
|
-
var re1 = /a/;
|
|
2132
|
-
var re2 = /b*/g;
|
|
2133
|
-
call$3(nativeExec, re1, 'a');
|
|
2134
|
-
call$3(nativeExec, re2, 'a');
|
|
2135
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
2136
|
-
})();
|
|
2137
|
-
|
|
2138
|
-
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
2139
|
-
|
|
2140
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
2141
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
2142
|
-
|
|
2143
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
2144
|
-
|
|
2145
|
-
if (PATCH) {
|
|
2146
|
-
patchedExec = function exec(string) {
|
|
2147
|
-
var re = this;
|
|
2148
|
-
var state = getInternalState(re);
|
|
2149
|
-
var str = toString$2(string);
|
|
2150
|
-
var raw = state.raw;
|
|
2151
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
|
2152
|
-
|
|
2153
|
-
if (raw) {
|
|
2154
|
-
raw.lastIndex = re.lastIndex;
|
|
2155
|
-
result = call$3(patchedExec, raw, str);
|
|
2156
|
-
re.lastIndex = raw.lastIndex;
|
|
2157
|
-
return result;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
var groups = state.groups;
|
|
2161
|
-
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
2162
|
-
var flags = call$3(regexpFlags, re);
|
|
2163
|
-
var source = re.source;
|
|
2164
|
-
var charsAdded = 0;
|
|
2165
|
-
var strCopy = str;
|
|
2166
|
-
|
|
2167
|
-
if (sticky) {
|
|
2168
|
-
flags = replace$1(flags, 'y', '');
|
|
2169
|
-
if (indexOf(flags, 'g') === -1) {
|
|
2170
|
-
flags += 'g';
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
strCopy = stringSlice$3(str, re.lastIndex);
|
|
2174
|
-
// Support anchored sticky behavior.
|
|
2175
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
2176
|
-
source = '(?: ' + source + ')';
|
|
2177
|
-
strCopy = ' ' + strCopy;
|
|
2178
|
-
charsAdded++;
|
|
2179
|
-
}
|
|
2180
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
2181
|
-
// simulate the 'y' flag.
|
|
2182
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
if (NPCG_INCLUDED) {
|
|
2186
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
2187
|
-
}
|
|
2188
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2189
|
-
|
|
2190
|
-
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2191
|
-
|
|
2192
|
-
if (sticky) {
|
|
2193
|
-
if (match) {
|
|
2194
|
-
match.input = stringSlice$3(match.input, charsAdded);
|
|
2195
|
-
match[0] = stringSlice$3(match[0], charsAdded);
|
|
2196
|
-
match.index = re.lastIndex;
|
|
2197
|
-
re.lastIndex += match[0].length;
|
|
2198
|
-
} else re.lastIndex = 0;
|
|
2199
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
2200
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
2201
|
-
}
|
|
2202
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2203
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2204
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
2205
|
-
call$3(nativeReplace, match[0], reCopy, function () {
|
|
2206
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
2207
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
2208
|
-
}
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
if (match && groups) {
|
|
2213
|
-
match.groups = object = create(null);
|
|
2214
|
-
for (i = 0; i < groups.length; i++) {
|
|
2215
|
-
group = groups[i];
|
|
2216
|
-
object[group[0]] = match[group[1]];
|
|
2217
|
-
}
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
return match;
|
|
2221
|
-
};
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
var regexpExec$2 = patchedExec;
|
|
2225
|
-
|
|
2226
|
-
var $ = _export;
|
|
2227
|
-
var exec = regexpExec$2;
|
|
2228
|
-
|
|
2229
|
-
// `RegExp.prototype.exec` method
|
|
2230
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
2231
|
-
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
2232
|
-
exec: exec
|
|
2233
|
-
});
|
|
2234
|
-
|
|
2235
|
-
var NATIVE_BIND = functionBindNative;
|
|
2236
|
-
|
|
2237
|
-
var FunctionPrototype = Function.prototype;
|
|
2238
|
-
var apply$1 = FunctionPrototype.apply;
|
|
2239
|
-
var call$2 = FunctionPrototype.call;
|
|
2240
|
-
|
|
2241
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
2242
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
|
|
2243
|
-
return call$2.apply(apply$1, arguments);
|
|
2244
|
-
});
|
|
2245
|
-
|
|
2246
|
-
var classofRaw = classofRaw$2;
|
|
2247
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
2248
|
-
|
|
2249
|
-
var functionUncurryThisClause = function (fn) {
|
|
2250
|
-
// Nashorn bug:
|
|
2251
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
2252
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
2253
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
|
|
2254
|
-
};
|
|
2255
|
-
|
|
2256
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2257
|
-
|
|
2258
|
-
var uncurryThis$3 = functionUncurryThisClause;
|
|
2259
|
-
var defineBuiltIn = defineBuiltIn$4;
|
|
2260
|
-
var regexpExec$1 = regexpExec$2;
|
|
2261
|
-
var fails$1 = fails$h;
|
|
2262
|
-
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
2263
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
2264
|
-
|
|
2265
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
2266
|
-
var RegExpPrototype = RegExp.prototype;
|
|
2267
|
-
|
|
2268
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
2269
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
2270
|
-
|
|
2271
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
2272
|
-
// String methods call symbol-named RegEp methods
|
|
2273
|
-
var O = {};
|
|
2274
|
-
O[SYMBOL] = function () { return 7; };
|
|
2275
|
-
return ''[KEY](O) != 7;
|
|
2276
|
-
});
|
|
2277
|
-
|
|
2278
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
2279
|
-
// Symbol-named RegExp methods call .exec
|
|
2280
|
-
var execCalled = false;
|
|
2281
|
-
var re = /a/;
|
|
2282
|
-
|
|
2283
|
-
if (KEY === 'split') {
|
|
2284
|
-
// We can't use real regex here since it causes deoptimization
|
|
2285
|
-
// and serious performance degradation in V8
|
|
2286
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
2287
|
-
re = {};
|
|
2288
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
2289
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
2290
|
-
re.constructor = {};
|
|
2291
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
2292
|
-
re.flags = '';
|
|
2293
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
re.exec = function () { execCalled = true; return null; };
|
|
2297
|
-
|
|
2298
|
-
re[SYMBOL]('');
|
|
2299
|
-
return !execCalled;
|
|
1989
|
+
const generateSelectors = id => {
|
|
1990
|
+
return id.split('_').map((path, index, paths) => {
|
|
1991
|
+
const dotPath = paths.slice(0, index).join('.');
|
|
1992
|
+
const underScorePath = paths.slice(index).join('_');
|
|
1993
|
+
return [dotPath, underScorePath].filter(path => path !== '').join('.');
|
|
2300
1994
|
});
|
|
2301
|
-
|
|
2302
|
-
if (
|
|
2303
|
-
!DELEGATES_TO_SYMBOL ||
|
|
2304
|
-
!DELEGATES_TO_EXEC ||
|
|
2305
|
-
FORCED
|
|
2306
|
-
) {
|
|
2307
|
-
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
2308
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
2309
|
-
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
2310
|
-
var $exec = regexp.exec;
|
|
2311
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
2312
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
2313
|
-
// The native String method already delegates to @@method (this
|
|
2314
|
-
// polyfilled function), leasing to infinite recursion.
|
|
2315
|
-
// We avoid it by directly calling the native @@method method.
|
|
2316
|
-
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
2317
|
-
}
|
|
2318
|
-
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
2319
|
-
}
|
|
2320
|
-
return { done: false };
|
|
2321
|
-
});
|
|
2322
|
-
|
|
2323
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
2324
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
2325
|
-
}
|
|
2326
|
-
|
|
2327
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
2328
|
-
};
|
|
2329
|
-
|
|
2330
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
2331
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
2332
|
-
var toString$1 = toString$3;
|
|
2333
|
-
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
2334
|
-
|
|
2335
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
2336
|
-
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
2337
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
2338
|
-
|
|
2339
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
2340
|
-
return function ($this, pos) {
|
|
2341
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
2342
|
-
var position = toIntegerOrInfinity$1(pos);
|
|
2343
|
-
var size = S.length;
|
|
2344
|
-
var first, second;
|
|
2345
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
2346
|
-
first = charCodeAt(S, position);
|
|
2347
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
2348
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
2349
|
-
? CONVERT_TO_STRING
|
|
2350
|
-
? charAt$2(S, position)
|
|
2351
|
-
: first
|
|
2352
|
-
: CONVERT_TO_STRING
|
|
2353
|
-
? stringSlice$2(S, position, position + 2)
|
|
2354
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
2355
|
-
};
|
|
2356
1995
|
};
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
// `String.prototype.at` method
|
|
2363
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
2364
|
-
charAt: createMethod(true)
|
|
2365
|
-
};
|
|
2366
|
-
|
|
2367
|
-
var charAt$1 = stringMultibyte.charAt;
|
|
2368
|
-
|
|
2369
|
-
// `AdvanceStringIndex` abstract operation
|
|
2370
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
2371
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
2372
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
2373
|
-
};
|
|
2374
|
-
|
|
2375
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
2376
|
-
var toObject = toObject$5;
|
|
2377
|
-
|
|
2378
|
-
var floor = Math.floor;
|
|
2379
|
-
var charAt = uncurryThis$1(''.charAt);
|
|
2380
|
-
var replace = uncurryThis$1(''.replace);
|
|
2381
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
2382
|
-
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
2383
|
-
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
2384
|
-
|
|
2385
|
-
// `GetSubstitution` abstract operation
|
|
2386
|
-
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
2387
|
-
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
2388
|
-
var tailPos = position + matched.length;
|
|
2389
|
-
var m = captures.length;
|
|
2390
|
-
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2391
|
-
if (namedCaptures !== undefined) {
|
|
2392
|
-
namedCaptures = toObject(namedCaptures);
|
|
2393
|
-
symbols = SUBSTITUTION_SYMBOLS;
|
|
2394
|
-
}
|
|
2395
|
-
return replace(replacement, symbols, function (match, ch) {
|
|
2396
|
-
var capture;
|
|
2397
|
-
switch (charAt(ch, 0)) {
|
|
2398
|
-
case '$': return '$';
|
|
2399
|
-
case '&': return matched;
|
|
2400
|
-
case '`': return stringSlice$1(str, 0, position);
|
|
2401
|
-
case "'": return stringSlice$1(str, tailPos);
|
|
2402
|
-
case '<':
|
|
2403
|
-
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
2404
|
-
break;
|
|
2405
|
-
default: // \d\d?
|
|
2406
|
-
var n = +ch;
|
|
2407
|
-
if (n === 0) return match;
|
|
2408
|
-
if (n > m) {
|
|
2409
|
-
var f = floor(n / 10);
|
|
2410
|
-
if (f === 0) return match;
|
|
2411
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
2412
|
-
return match;
|
|
2413
|
-
}
|
|
2414
|
-
capture = captures[n - 1];
|
|
2415
|
-
}
|
|
2416
|
-
return capture === undefined ? '' : capture;
|
|
2417
|
-
});
|
|
2418
|
-
};
|
|
2419
|
-
|
|
2420
|
-
var call$1 = functionCall;
|
|
2421
|
-
var anObject$1 = anObject$8;
|
|
2422
|
-
var isCallable$1 = isCallable$h;
|
|
2423
|
-
var classof = classofRaw$2;
|
|
2424
|
-
var regexpExec = regexpExec$2;
|
|
2425
|
-
|
|
2426
|
-
var $TypeError = TypeError;
|
|
2427
|
-
|
|
2428
|
-
// `RegExpExec` abstract operation
|
|
2429
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
2430
|
-
var regexpExecAbstract = function (R, S) {
|
|
2431
|
-
var exec = R.exec;
|
|
2432
|
-
if (isCallable$1(exec)) {
|
|
2433
|
-
var result = call$1(exec, R, S);
|
|
2434
|
-
if (result !== null) anObject$1(result);
|
|
2435
|
-
return result;
|
|
1996
|
+
const selectValueFromProfile = (profile, id) => {
|
|
1997
|
+
const selectors = generateSelectors(id);
|
|
1998
|
+
const matchingSelector = selectors.find(selector => get$1(profile, selector));
|
|
1999
|
+
if (!matchingSelector) {
|
|
2000
|
+
return null;
|
|
2436
2001
|
}
|
|
2437
|
-
|
|
2438
|
-
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
2002
|
+
return get$1(profile, matchingSelector);
|
|
2439
2003
|
};
|
|
2440
|
-
|
|
2441
|
-
var apply = functionApply;
|
|
2442
|
-
var call = functionCall;
|
|
2443
|
-
var uncurryThis = functionUncurryThis;
|
|
2444
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2445
|
-
var fails = fails$h;
|
|
2446
|
-
var anObject = anObject$8;
|
|
2447
|
-
var isCallable = isCallable$h;
|
|
2448
|
-
var isNullOrUndefined = isNullOrUndefined$3;
|
|
2449
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
2450
|
-
var toLength = toLength$2;
|
|
2451
|
-
var toString = toString$3;
|
|
2452
|
-
var requireObjectCoercible = requireObjectCoercible$4;
|
|
2453
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
2454
|
-
var getMethod = getMethod$2;
|
|
2455
|
-
var getSubstitution = getSubstitution$1;
|
|
2456
|
-
var regExpExec = regexpExecAbstract;
|
|
2457
|
-
var wellKnownSymbol = wellKnownSymbol$a;
|
|
2458
|
-
|
|
2459
|
-
var REPLACE = wellKnownSymbol('replace');
|
|
2460
|
-
var max = Math.max;
|
|
2461
|
-
var min = Math.min;
|
|
2462
|
-
var concat = uncurryThis([].concat);
|
|
2463
|
-
var push = uncurryThis([].push);
|
|
2464
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
2465
|
-
var stringSlice = uncurryThis(''.slice);
|
|
2466
|
-
|
|
2467
|
-
var maybeToString = function (it) {
|
|
2468
|
-
return it === undefined ? it : String(it);
|
|
2469
|
-
};
|
|
2470
|
-
|
|
2471
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
2472
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
2473
|
-
var REPLACE_KEEPS_$0 = (function () {
|
|
2474
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
2475
|
-
return 'a'.replace(/./, '$0') === '$0';
|
|
2476
|
-
})();
|
|
2477
|
-
|
|
2478
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
2479
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
2480
|
-
if (/./[REPLACE]) {
|
|
2481
|
-
return /./[REPLACE]('a', '$0') === '';
|
|
2482
|
-
}
|
|
2483
|
-
return false;
|
|
2484
|
-
})();
|
|
2485
|
-
|
|
2486
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
2487
|
-
var re = /./;
|
|
2488
|
-
re.exec = function () {
|
|
2489
|
-
var result = [];
|
|
2490
|
-
result.groups = { a: '7' };
|
|
2491
|
-
return result;
|
|
2492
|
-
};
|
|
2493
|
-
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
2494
|
-
return ''.replace(re, '$<a>') !== '7';
|
|
2495
|
-
});
|
|
2496
|
-
|
|
2497
|
-
// @@replace logic
|
|
2498
|
-
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
2499
|
-
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2500
|
-
|
|
2501
|
-
return [
|
|
2502
|
-
// `String.prototype.replace` method
|
|
2503
|
-
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
2504
|
-
function replace(searchValue, replaceValue) {
|
|
2505
|
-
var O = requireObjectCoercible(this);
|
|
2506
|
-
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
2507
|
-
return replacer
|
|
2508
|
-
? call(replacer, searchValue, O, replaceValue)
|
|
2509
|
-
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
2510
|
-
},
|
|
2511
|
-
// `RegExp.prototype[@@replace]` method
|
|
2512
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2513
|
-
function (string, replaceValue) {
|
|
2514
|
-
var rx = anObject(this);
|
|
2515
|
-
var S = toString(string);
|
|
2516
|
-
|
|
2517
|
-
if (
|
|
2518
|
-
typeof replaceValue == 'string' &&
|
|
2519
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
2520
|
-
stringIndexOf(replaceValue, '$<') === -1
|
|
2521
|
-
) {
|
|
2522
|
-
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
2523
|
-
if (res.done) return res.value;
|
|
2524
|
-
}
|
|
2525
|
-
|
|
2526
|
-
var functionalReplace = isCallable(replaceValue);
|
|
2527
|
-
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
2528
|
-
|
|
2529
|
-
var global = rx.global;
|
|
2530
|
-
if (global) {
|
|
2531
|
-
var fullUnicode = rx.unicode;
|
|
2532
|
-
rx.lastIndex = 0;
|
|
2533
|
-
}
|
|
2534
|
-
var results = [];
|
|
2535
|
-
while (true) {
|
|
2536
|
-
var result = regExpExec(rx, S);
|
|
2537
|
-
if (result === null) break;
|
|
2538
|
-
|
|
2539
|
-
push(results, result);
|
|
2540
|
-
if (!global) break;
|
|
2541
|
-
|
|
2542
|
-
var matchStr = toString(result[0]);
|
|
2543
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
|
-
var accumulatedResult = '';
|
|
2547
|
-
var nextSourcePosition = 0;
|
|
2548
|
-
for (var i = 0; i < results.length; i++) {
|
|
2549
|
-
result = results[i];
|
|
2550
|
-
|
|
2551
|
-
var matched = toString(result[0]);
|
|
2552
|
-
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
2553
|
-
var captures = [];
|
|
2554
|
-
// NOTE: This is equivalent to
|
|
2555
|
-
// captures = result.slice(1).map(maybeToString)
|
|
2556
|
-
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2557
|
-
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2558
|
-
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2559
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
2560
|
-
var namedCaptures = result.groups;
|
|
2561
|
-
if (functionalReplace) {
|
|
2562
|
-
var replacerArgs = concat([matched], captures, position, S);
|
|
2563
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
2564
|
-
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
2565
|
-
} else {
|
|
2566
|
-
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2567
|
-
}
|
|
2568
|
-
if (position >= nextSourcePosition) {
|
|
2569
|
-
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
2570
|
-
nextSourcePosition = position + matched.length;
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
|
-
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
2574
|
-
}
|
|
2575
|
-
];
|
|
2576
|
-
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
2577
|
-
|
|
2578
2004
|
const MergeTag = ({
|
|
2579
2005
|
id
|
|
2580
2006
|
}) => {
|
|
@@ -2585,7 +2011,7 @@ const MergeTag = ({
|
|
|
2585
2011
|
if (loading || !profile) {
|
|
2586
2012
|
return null;
|
|
2587
2013
|
}
|
|
2588
|
-
const value =
|
|
2014
|
+
const value = selectValueFromProfile(profile, id);
|
|
2589
2015
|
// DON'T CHANGE
|
|
2590
2016
|
return jsx(Fragment, {
|
|
2591
2017
|
children: value
|