@vonage/vivid 3.0.0-next.18 → 3.0.0-next.20
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/action-group/index.js +34 -0
- package/badge/index.js +1 -1
- package/banner/index.js +1 -1
- package/breadcrumb/index.js +2 -0
- package/button/index.js +1 -1
- package/calendar/index.js +4 -0
- package/card/index.js +1 -1
- package/fab/index.js +1 -1
- package/icon/index.js +1 -1
- package/index.js +2 -0
- package/lib/action-group/action-group.d.ts +9 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/badge/badge.d.ts +1 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/components.d.ts +2 -0
- package/lib/enums.d.ts +1 -2
- package/lib/fab/fab.d.ts +1 -1
- package/lib/icon/icon.d.ts +1 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +1 -1
- package/lib/text/text.d.ts +1 -1
- package/note/index.js +1 -1
- package/package.json +6 -5
- package/popup/index.js +19 -22
- package/progress/index.js +3 -3
- package/progress-ring/index.js +4 -3
- package/shared/anchor.js +8 -1
- package/shared/base-progress.js +5 -0
- package/shared/button.js +8 -1
- package/shared/enums.js +1 -2
- package/shared/es.object.assign.js +6 -6
- package/shared/icon.js +509 -462
- package/shared/index.js +55 -54
- package/shared/object-set-prototype-of.js +220 -199
- package/shared/web.dom-collections.iterator.js +22 -21
- package/text/index.js +1 -1
- package/text-field/index.js +31 -9
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
return it && it.Math == Math && it;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
8
|
-
var global$m =
|
|
9
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
10
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
11
|
-
check(typeof window == 'object' && window) ||
|
|
12
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
13
|
-
check(typeof self == 'object' && self) ||
|
|
14
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
15
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
16
|
-
(function () { return this; })() || Function('return this')();
|
|
17
|
-
|
|
18
|
-
var fails$7 = function (exec) {
|
|
3
|
+
var fails$8 = function (exec) {
|
|
19
4
|
try {
|
|
20
5
|
return !!exec();
|
|
21
6
|
} catch (error) {
|
|
@@ -23,9 +8,10 @@ var fails$7 = function (exec) {
|
|
|
23
8
|
}
|
|
24
9
|
};
|
|
25
10
|
|
|
26
|
-
var fails$
|
|
11
|
+
var fails$7 = fails$8;
|
|
27
12
|
|
|
28
|
-
var functionBindNative = !fails$
|
|
13
|
+
var functionBindNative = !fails$7(function () {
|
|
14
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
29
15
|
var test = (function () { /* empty */ }).bind();
|
|
30
16
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
31
17
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -55,31 +41,28 @@ var classofRaw = function (it) {
|
|
|
55
41
|
return stringSlice(toString$1(it), 8, -1);
|
|
56
42
|
};
|
|
57
43
|
|
|
58
|
-
var global$l = global$m;
|
|
59
44
|
var uncurryThis$8 = functionUncurryThis;
|
|
60
|
-
var fails$
|
|
45
|
+
var fails$6 = fails$8;
|
|
61
46
|
var classof = classofRaw;
|
|
62
47
|
|
|
63
|
-
var Object$
|
|
48
|
+
var $Object$2 = Object;
|
|
64
49
|
var split = uncurryThis$8(''.split);
|
|
65
50
|
|
|
66
51
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
67
|
-
var indexedObject = fails$
|
|
52
|
+
var indexedObject = fails$6(function () {
|
|
68
53
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
69
54
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
70
|
-
return
|
|
55
|
+
return !$Object$2('z').propertyIsEnumerable(0);
|
|
71
56
|
}) ? function (it) {
|
|
72
|
-
return classof(it) == 'String' ? split(it, '') : Object$
|
|
73
|
-
} : Object$
|
|
74
|
-
|
|
75
|
-
var global$k = global$m;
|
|
57
|
+
return classof(it) == 'String' ? split(it, '') : $Object$2(it);
|
|
58
|
+
} : $Object$2;
|
|
76
59
|
|
|
77
|
-
var TypeError$
|
|
60
|
+
var $TypeError$6 = TypeError;
|
|
78
61
|
|
|
79
62
|
// `RequireObjectCoercible` abstract operation
|
|
80
63
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
81
64
|
var requireObjectCoercible$2 = function (it) {
|
|
82
|
-
if (it == undefined) throw TypeError$
|
|
65
|
+
if (it == undefined) throw $TypeError$6("Can't call method on " + it);
|
|
83
66
|
return it;
|
|
84
67
|
};
|
|
85
68
|
|
|
@@ -91,26 +74,41 @@ var toIndexedObject$3 = function (it) {
|
|
|
91
74
|
return IndexedObject(requireObjectCoercible$1(it));
|
|
92
75
|
};
|
|
93
76
|
|
|
77
|
+
var check = function (it) {
|
|
78
|
+
return it && it.Math == Math && it;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
82
|
+
var global$a =
|
|
83
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
84
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
85
|
+
check(typeof window == 'object' && window) ||
|
|
86
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
87
|
+
check(typeof self == 'object' && self) ||
|
|
88
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
89
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
90
|
+
(function () { return this; })() || Function('return this')();
|
|
91
|
+
|
|
94
92
|
var shared$3 = {exports: {}};
|
|
95
93
|
|
|
96
|
-
var global$
|
|
94
|
+
var global$9 = global$a;
|
|
97
95
|
|
|
98
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
99
|
-
var defineProperty$
|
|
96
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
97
|
+
var defineProperty$2 = Object.defineProperty;
|
|
100
98
|
|
|
101
|
-
var
|
|
99
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
102
100
|
try {
|
|
103
|
-
defineProperty$
|
|
101
|
+
defineProperty$2(global$9, key, { value: value, configurable: true, writable: true });
|
|
104
102
|
} catch (error) {
|
|
105
|
-
global$
|
|
103
|
+
global$9[key] = value;
|
|
106
104
|
} return value;
|
|
107
105
|
};
|
|
108
106
|
|
|
109
|
-
var global$
|
|
110
|
-
var
|
|
107
|
+
var global$8 = global$a;
|
|
108
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
111
109
|
|
|
112
110
|
var SHARED = '__core-js_shared__';
|
|
113
|
-
var store$3 = global$
|
|
111
|
+
var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
114
112
|
|
|
115
113
|
var sharedStore = store$3;
|
|
116
114
|
|
|
@@ -119,22 +117,21 @@ var store$2 = sharedStore;
|
|
|
119
117
|
(shared$3.exports = function (key, value) {
|
|
120
118
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
121
119
|
})('versions', []).push({
|
|
122
|
-
version: '3.
|
|
120
|
+
version: '3.22.8',
|
|
123
121
|
mode: 'global',
|
|
124
122
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
125
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
123
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
|
|
126
124
|
source: 'https://github.com/zloirock/core-js'
|
|
127
125
|
});
|
|
128
126
|
|
|
129
|
-
var global$h = global$m;
|
|
130
127
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
131
128
|
|
|
132
|
-
var Object$
|
|
129
|
+
var $Object$1 = Object;
|
|
133
130
|
|
|
134
131
|
// `ToObject` abstract operation
|
|
135
132
|
// https://tc39.es/ecma262/#sec-toobject
|
|
136
133
|
var toObject$1 = function (argument) {
|
|
137
|
-
return Object$
|
|
134
|
+
return $Object$1(requireObjectCoercible(argument));
|
|
138
135
|
};
|
|
139
136
|
|
|
140
137
|
var uncurryThis$7 = functionUncurryThis;
|
|
@@ -144,6 +141,7 @@ var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
|
144
141
|
|
|
145
142
|
// `HasOwnProperty` abstract operation
|
|
146
143
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
144
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
147
145
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
148
146
|
return hasOwnProperty(toObject(it), key);
|
|
149
147
|
};
|
|
@@ -160,30 +158,30 @@ var uid$2 = function (key) {
|
|
|
160
158
|
|
|
161
159
|
// `IsCallable` abstract operation
|
|
162
160
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
163
|
-
var isCallable$
|
|
161
|
+
var isCallable$b = function (argument) {
|
|
164
162
|
return typeof argument == 'function';
|
|
165
163
|
};
|
|
166
164
|
|
|
167
|
-
var global$
|
|
168
|
-
var isCallable$
|
|
165
|
+
var global$7 = global$a;
|
|
166
|
+
var isCallable$a = isCallable$b;
|
|
169
167
|
|
|
170
168
|
var aFunction = function (argument) {
|
|
171
|
-
return isCallable$
|
|
169
|
+
return isCallable$a(argument) ? argument : undefined;
|
|
172
170
|
};
|
|
173
171
|
|
|
174
172
|
var getBuiltIn$4 = function (namespace, method) {
|
|
175
|
-
return arguments.length < 2 ? aFunction(global$
|
|
173
|
+
return arguments.length < 2 ? aFunction(global$7[namespace]) : global$7[namespace] && global$7[namespace][method];
|
|
176
174
|
};
|
|
177
175
|
|
|
178
176
|
var getBuiltIn$3 = getBuiltIn$4;
|
|
179
177
|
|
|
180
178
|
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
181
179
|
|
|
182
|
-
var global$
|
|
180
|
+
var global$6 = global$a;
|
|
183
181
|
var userAgent = engineUserAgent;
|
|
184
182
|
|
|
185
|
-
var process = global$
|
|
186
|
-
var Deno = global$
|
|
183
|
+
var process = global$6.process;
|
|
184
|
+
var Deno = global$6.Deno;
|
|
187
185
|
var versions = process && process.versions || Deno && Deno.version;
|
|
188
186
|
var v8 = versions && versions.v8;
|
|
189
187
|
var match, version;
|
|
@@ -207,13 +205,13 @@ if (!version && userAgent) {
|
|
|
207
205
|
|
|
208
206
|
var engineV8Version = version;
|
|
209
207
|
|
|
210
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
208
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
211
209
|
|
|
212
210
|
var V8_VERSION = engineV8Version;
|
|
213
|
-
var fails$
|
|
211
|
+
var fails$5 = fails$8;
|
|
214
212
|
|
|
215
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
216
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
213
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
214
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$5(function () {
|
|
217
215
|
var symbol = Symbol();
|
|
218
216
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
219
217
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -222,7 +220,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$4(function () {
|
|
|
222
220
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
223
221
|
});
|
|
224
222
|
|
|
225
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
223
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
226
224
|
|
|
227
225
|
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
228
226
|
|
|
@@ -230,7 +228,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
230
228
|
&& !Symbol.sham
|
|
231
229
|
&& typeof Symbol.iterator == 'symbol';
|
|
232
230
|
|
|
233
|
-
var global$
|
|
231
|
+
var global$5 = global$a;
|
|
234
232
|
var shared$2 = shared$3.exports;
|
|
235
233
|
var hasOwn$7 = hasOwnProperty_1;
|
|
236
234
|
var uid$1 = uid$2;
|
|
@@ -238,7 +236,7 @@ var NATIVE_SYMBOL = nativeSymbol;
|
|
|
238
236
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
239
237
|
|
|
240
238
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
241
|
-
var Symbol$1 = global$
|
|
239
|
+
var Symbol$1 = global$5.Symbol;
|
|
242
240
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
243
241
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
244
242
|
|
|
@@ -255,39 +253,38 @@ var wellKnownSymbol$2 = function (name) {
|
|
|
255
253
|
} return WellKnownSymbolsStore[name];
|
|
256
254
|
};
|
|
257
255
|
|
|
258
|
-
var isCallable$
|
|
256
|
+
var isCallable$9 = isCallable$b;
|
|
259
257
|
|
|
260
258
|
var isObject$5 = function (it) {
|
|
261
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
259
|
+
return typeof it == 'object' ? it !== null : isCallable$9(it);
|
|
262
260
|
};
|
|
263
261
|
|
|
264
|
-
var global$d = global$m;
|
|
265
262
|
var isObject$4 = isObject$5;
|
|
266
263
|
|
|
267
|
-
var String$
|
|
268
|
-
var TypeError$
|
|
264
|
+
var $String$2 = String;
|
|
265
|
+
var $TypeError$5 = TypeError;
|
|
269
266
|
|
|
270
267
|
// `Assert: Type(argument) is Object`
|
|
271
268
|
var anObject$3 = function (argument) {
|
|
272
269
|
if (isObject$4(argument)) return argument;
|
|
273
|
-
throw TypeError$
|
|
270
|
+
throw $TypeError$5($String$2(argument) + ' is not an object');
|
|
274
271
|
};
|
|
275
272
|
|
|
276
|
-
var fails$
|
|
273
|
+
var fails$4 = fails$8;
|
|
277
274
|
|
|
278
275
|
// Detect IE8's incomplete defineProperty implementation
|
|
279
|
-
var descriptors = !fails$
|
|
280
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
276
|
+
var descriptors = !fails$4(function () {
|
|
277
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
281
278
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
282
279
|
});
|
|
283
280
|
|
|
284
|
-
var DESCRIPTORS$
|
|
285
|
-
var fails$
|
|
281
|
+
var DESCRIPTORS$6 = descriptors;
|
|
282
|
+
var fails$3 = fails$8;
|
|
286
283
|
|
|
287
284
|
// V8 ~ Chrome 36-
|
|
288
285
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
289
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
290
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
286
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$3(function () {
|
|
287
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
291
288
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
292
289
|
value: 42,
|
|
293
290
|
writable: false
|
|
@@ -296,10 +293,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$2(function () {
|
|
|
296
293
|
|
|
297
294
|
var objectDefineProperty = {};
|
|
298
295
|
|
|
299
|
-
var global$
|
|
296
|
+
var global$4 = global$a;
|
|
300
297
|
var isObject$3 = isObject$5;
|
|
301
298
|
|
|
302
|
-
var document = global$
|
|
299
|
+
var document = global$4.document;
|
|
303
300
|
// typeof document.createElement is 'object' in old IE
|
|
304
301
|
var EXISTS$1 = isObject$3(document) && isObject$3(document.createElement);
|
|
305
302
|
|
|
@@ -307,13 +304,13 @@ var documentCreateElement = function (it) {
|
|
|
307
304
|
return EXISTS$1 ? document.createElement(it) : {};
|
|
308
305
|
};
|
|
309
306
|
|
|
310
|
-
var DESCRIPTORS$
|
|
311
|
-
var fails$
|
|
307
|
+
var DESCRIPTORS$5 = descriptors;
|
|
308
|
+
var fails$2 = fails$8;
|
|
312
309
|
var createElement = documentCreateElement;
|
|
313
310
|
|
|
314
311
|
// Thanks to IE8 for its funny defineProperty
|
|
315
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
316
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
312
|
+
var ie8DomDefine = !DESCRIPTORS$5 && !fails$2(function () {
|
|
313
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
317
314
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
318
315
|
get: function () { return 7; }
|
|
319
316
|
}).a != 7;
|
|
@@ -331,43 +328,39 @@ var uncurryThis$5 = functionUncurryThis;
|
|
|
331
328
|
|
|
332
329
|
var objectIsPrototypeOf = uncurryThis$5({}.isPrototypeOf);
|
|
333
330
|
|
|
334
|
-
var global$b = global$m;
|
|
335
331
|
var getBuiltIn$2 = getBuiltIn$4;
|
|
336
|
-
var isCallable$
|
|
332
|
+
var isCallable$8 = isCallable$b;
|
|
337
333
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
338
334
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
339
335
|
|
|
340
|
-
var Object
|
|
336
|
+
var $Object = Object;
|
|
341
337
|
|
|
342
338
|
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
343
339
|
return typeof it == 'symbol';
|
|
344
340
|
} : function (it) {
|
|
345
341
|
var $Symbol = getBuiltIn$2('Symbol');
|
|
346
|
-
return isCallable$
|
|
342
|
+
return isCallable$8($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
|
347
343
|
};
|
|
348
344
|
|
|
349
|
-
var
|
|
350
|
-
|
|
351
|
-
var String$2 = global$a.String;
|
|
345
|
+
var $String$1 = String;
|
|
352
346
|
|
|
353
347
|
var tryToString$1 = function (argument) {
|
|
354
348
|
try {
|
|
355
|
-
return String$
|
|
349
|
+
return $String$1(argument);
|
|
356
350
|
} catch (error) {
|
|
357
351
|
return 'Object';
|
|
358
352
|
}
|
|
359
353
|
};
|
|
360
354
|
|
|
361
|
-
var
|
|
362
|
-
var isCallable$6 = isCallable$a;
|
|
355
|
+
var isCallable$7 = isCallable$b;
|
|
363
356
|
var tryToString = tryToString$1;
|
|
364
357
|
|
|
365
|
-
var TypeError$
|
|
358
|
+
var $TypeError$4 = TypeError;
|
|
366
359
|
|
|
367
360
|
// `Assert: IsCallable(argument) is true`
|
|
368
361
|
var aCallable$1 = function (argument) {
|
|
369
|
-
if (isCallable$
|
|
370
|
-
throw TypeError$
|
|
362
|
+
if (isCallable$7(argument)) return argument;
|
|
363
|
+
throw $TypeError$4(tryToString(argument) + ' is not a function');
|
|
371
364
|
};
|
|
372
365
|
|
|
373
366
|
var aCallable = aCallable$1;
|
|
@@ -379,24 +372,22 @@ var getMethod$1 = function (V, P) {
|
|
|
379
372
|
return func == null ? undefined : aCallable(func);
|
|
380
373
|
};
|
|
381
374
|
|
|
382
|
-
var global$8 = global$m;
|
|
383
375
|
var call$2 = functionCall;
|
|
384
|
-
var isCallable$
|
|
376
|
+
var isCallable$6 = isCallable$b;
|
|
385
377
|
var isObject$2 = isObject$5;
|
|
386
378
|
|
|
387
|
-
var TypeError$
|
|
379
|
+
var $TypeError$3 = TypeError;
|
|
388
380
|
|
|
389
381
|
// `OrdinaryToPrimitive` abstract operation
|
|
390
382
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
391
383
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
392
384
|
var fn, val;
|
|
393
|
-
if (pref === 'string' && isCallable$
|
|
394
|
-
if (isCallable$
|
|
395
|
-
if (pref !== 'string' && isCallable$
|
|
396
|
-
throw TypeError$
|
|
385
|
+
if (pref === 'string' && isCallable$6(fn = input.toString) && !isObject$2(val = call$2(fn, input))) return val;
|
|
386
|
+
if (isCallable$6(fn = input.valueOf) && !isObject$2(val = call$2(fn, input))) return val;
|
|
387
|
+
if (pref !== 'string' && isCallable$6(fn = input.toString) && !isObject$2(val = call$2(fn, input))) return val;
|
|
388
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
397
389
|
};
|
|
398
390
|
|
|
399
|
-
var global$7 = global$m;
|
|
400
391
|
var call$1 = functionCall;
|
|
401
392
|
var isObject$1 = isObject$5;
|
|
402
393
|
var isSymbol$1 = isSymbol$2;
|
|
@@ -404,7 +395,7 @@ var getMethod = getMethod$1;
|
|
|
404
395
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
405
396
|
var wellKnownSymbol$1 = wellKnownSymbol$2;
|
|
406
397
|
|
|
407
|
-
var TypeError$
|
|
398
|
+
var $TypeError$2 = TypeError;
|
|
408
399
|
var TO_PRIMITIVE = wellKnownSymbol$1('toPrimitive');
|
|
409
400
|
|
|
410
401
|
// `ToPrimitive` abstract operation
|
|
@@ -417,7 +408,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
417
408
|
if (pref === undefined) pref = 'default';
|
|
418
409
|
result = call$1(exoticToPrim, input, pref);
|
|
419
410
|
if (!isObject$1(result) || isSymbol$1(result)) return result;
|
|
420
|
-
throw TypeError$
|
|
411
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
421
412
|
}
|
|
422
413
|
if (pref === undefined) pref = 'number';
|
|
423
414
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -433,17 +424,16 @@ var toPropertyKey$2 = function (argument) {
|
|
|
433
424
|
return isSymbol(key) ? key : key + '';
|
|
434
425
|
};
|
|
435
426
|
|
|
436
|
-
var
|
|
437
|
-
var DESCRIPTORS$3 = descriptors;
|
|
427
|
+
var DESCRIPTORS$4 = descriptors;
|
|
438
428
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
439
429
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
440
430
|
var anObject$2 = anObject$3;
|
|
441
431
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
442
432
|
|
|
443
|
-
var TypeError$
|
|
444
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
433
|
+
var $TypeError$1 = TypeError;
|
|
434
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
445
435
|
var $defineProperty = Object.defineProperty;
|
|
446
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
436
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
447
437
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
448
438
|
var ENUMERABLE = 'enumerable';
|
|
449
439
|
var CONFIGURABLE$1 = 'configurable';
|
|
@@ -451,7 +441,7 @@ var WRITABLE = 'writable';
|
|
|
451
441
|
|
|
452
442
|
// `Object.defineProperty` method
|
|
453
443
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
454
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
444
|
+
objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
455
445
|
anObject$2(O);
|
|
456
446
|
P = toPropertyKey$1(P);
|
|
457
447
|
anObject$2(Attributes);
|
|
@@ -473,7 +463,7 @@ objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
473
463
|
if (IE8_DOM_DEFINE$1) try {
|
|
474
464
|
return $defineProperty(O, P, Attributes);
|
|
475
465
|
} catch (error) { /* empty */ }
|
|
476
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
466
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
|
|
477
467
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
478
468
|
return O;
|
|
479
469
|
};
|
|
@@ -481,12 +471,22 @@ objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
481
471
|
var ceil = Math.ceil;
|
|
482
472
|
var floor = Math.floor;
|
|
483
473
|
|
|
474
|
+
// `Math.trunc` method
|
|
475
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
476
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
477
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
478
|
+
var n = +x;
|
|
479
|
+
return (n > 0 ? floor : ceil)(n);
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
var trunc = mathTrunc;
|
|
483
|
+
|
|
484
484
|
// `ToIntegerOrInfinity` abstract operation
|
|
485
485
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
486
486
|
var toIntegerOrInfinity$2 = function (argument) {
|
|
487
487
|
var number = +argument;
|
|
488
|
-
// eslint-disable-next-line no-self-compare --
|
|
489
|
-
return number !== number || number === 0 ? 0 : (number
|
|
488
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
489
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
490
490
|
};
|
|
491
491
|
|
|
492
492
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
@@ -603,13 +603,13 @@ var sharedKey$1 = function (key) {
|
|
|
603
603
|
var iterators = {};
|
|
604
604
|
|
|
605
605
|
var uncurryThis$3 = functionUncurryThis;
|
|
606
|
-
var isCallable$
|
|
606
|
+
var isCallable$5 = isCallable$b;
|
|
607
607
|
var store$1 = sharedStore;
|
|
608
608
|
|
|
609
609
|
var functionToString = uncurryThis$3(Function.toString);
|
|
610
610
|
|
|
611
611
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
612
|
-
if (!isCallable$
|
|
612
|
+
if (!isCallable$5(store$1.inspectSource)) {
|
|
613
613
|
store$1.inspectSource = function (it) {
|
|
614
614
|
return functionToString(it);
|
|
615
615
|
};
|
|
@@ -617,13 +617,13 @@ if (!isCallable$4(store$1.inspectSource)) {
|
|
|
617
617
|
|
|
618
618
|
var inspectSource$2 = store$1.inspectSource;
|
|
619
619
|
|
|
620
|
-
var global$
|
|
621
|
-
var isCallable$
|
|
620
|
+
var global$3 = global$a;
|
|
621
|
+
var isCallable$4 = isCallable$b;
|
|
622
622
|
var inspectSource$1 = inspectSource$2;
|
|
623
623
|
|
|
624
|
-
var WeakMap$1 = global$
|
|
624
|
+
var WeakMap$1 = global$3.WeakMap;
|
|
625
625
|
|
|
626
|
-
var nativeWeakMap = isCallable$
|
|
626
|
+
var nativeWeakMap = isCallable$4(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
|
|
627
627
|
|
|
628
628
|
var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
629
629
|
return {
|
|
@@ -634,11 +634,11 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
|
634
634
|
};
|
|
635
635
|
};
|
|
636
636
|
|
|
637
|
-
var DESCRIPTORS$
|
|
637
|
+
var DESCRIPTORS$3 = descriptors;
|
|
638
638
|
var definePropertyModule$1 = objectDefineProperty;
|
|
639
639
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
640
640
|
|
|
641
|
-
var createNonEnumerableProperty$3 = DESCRIPTORS$
|
|
641
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$3 ? function (object, key, value) {
|
|
642
642
|
return definePropertyModule$1.f(object, key, createPropertyDescriptor$1(1, value));
|
|
643
643
|
} : function (object, key, value) {
|
|
644
644
|
object[key] = value;
|
|
@@ -646,7 +646,7 @@ var createNonEnumerableProperty$3 = DESCRIPTORS$2 ? function (object, key, value
|
|
|
646
646
|
};
|
|
647
647
|
|
|
648
648
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
649
|
-
var global$
|
|
649
|
+
var global$2 = global$a;
|
|
650
650
|
var uncurryThis$2 = functionUncurryThis;
|
|
651
651
|
var isObject = isObject$5;
|
|
652
652
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
@@ -656,8 +656,8 @@ var sharedKey = sharedKey$1;
|
|
|
656
656
|
var hiddenKeys$1 = hiddenKeys$3;
|
|
657
657
|
|
|
658
658
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
659
|
-
var TypeError$1 = global$
|
|
660
|
-
var WeakMap = global$
|
|
659
|
+
var TypeError$1 = global$2.TypeError;
|
|
660
|
+
var WeakMap = global$2.WeakMap;
|
|
661
661
|
var set, get, has;
|
|
662
662
|
|
|
663
663
|
var enforce = function (it) {
|
|
@@ -720,7 +720,7 @@ var objectGetOwnPropertyDescriptor = {};
|
|
|
720
720
|
var objectPropertyIsEnumerable = {};
|
|
721
721
|
|
|
722
722
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
723
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
723
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
724
724
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
725
725
|
|
|
726
726
|
// Nashorn ~ JDK8 bug
|
|
@@ -733,7 +733,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
733
733
|
return !!descriptor && descriptor.enumerable;
|
|
734
734
|
} : $propertyIsEnumerable;
|
|
735
735
|
|
|
736
|
-
var DESCRIPTORS$
|
|
736
|
+
var DESCRIPTORS$2 = descriptors;
|
|
737
737
|
var call = functionCall;
|
|
738
738
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
739
739
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
@@ -742,12 +742,12 @@ var toPropertyKey = toPropertyKey$2;
|
|
|
742
742
|
var hasOwn$4 = hasOwnProperty_1;
|
|
743
743
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
744
744
|
|
|
745
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
745
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
746
746
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
747
747
|
|
|
748
748
|
// `Object.getOwnPropertyDescriptor` method
|
|
749
749
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
750
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
750
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$2 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
751
751
|
O = toIndexedObject(O);
|
|
752
752
|
P = toPropertyKey(P);
|
|
753
753
|
if (IE8_DOM_DEFINE) try {
|
|
@@ -756,19 +756,19 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$1 ? $getOwnPropertyDescriptor : f
|
|
|
756
756
|
if (hasOwn$4(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
757
757
|
};
|
|
758
758
|
|
|
759
|
-
var
|
|
759
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
760
760
|
|
|
761
|
-
var DESCRIPTORS = descriptors;
|
|
761
|
+
var DESCRIPTORS$1 = descriptors;
|
|
762
762
|
var hasOwn$3 = hasOwnProperty_1;
|
|
763
763
|
|
|
764
764
|
var FunctionPrototype = Function.prototype;
|
|
765
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
766
|
-
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
765
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
766
|
+
var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
|
|
767
767
|
|
|
768
768
|
var EXISTS = hasOwn$3(FunctionPrototype, 'name');
|
|
769
769
|
// additional protection from minified / mangled / dropped function names
|
|
770
770
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
771
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
771
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
772
772
|
|
|
773
773
|
var functionName = {
|
|
774
774
|
EXISTS: EXISTS,
|
|
@@ -776,52 +776,75 @@ var functionName = {
|
|
|
776
776
|
CONFIGURABLE: CONFIGURABLE
|
|
777
777
|
};
|
|
778
778
|
|
|
779
|
-
var
|
|
780
|
-
var isCallable$
|
|
779
|
+
var fails$1 = fails$8;
|
|
780
|
+
var isCallable$3 = isCallable$b;
|
|
781
781
|
var hasOwn$2 = hasOwnProperty_1;
|
|
782
|
-
var
|
|
783
|
-
var
|
|
782
|
+
var DESCRIPTORS = descriptors;
|
|
783
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
784
784
|
var inspectSource = inspectSource$2;
|
|
785
785
|
var InternalStateModule = internalState;
|
|
786
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
787
786
|
|
|
788
|
-
var getInternalState = InternalStateModule.get;
|
|
789
787
|
var enforceInternalState = InternalStateModule.enforce;
|
|
788
|
+
var getInternalState = InternalStateModule.get;
|
|
789
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
790
|
+
var defineProperty$1 = Object.defineProperty;
|
|
791
|
+
|
|
792
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$1(function () {
|
|
793
|
+
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
794
|
+
});
|
|
795
|
+
|
|
790
796
|
var TEMPLATE = String(String).split('String');
|
|
791
797
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
796
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
797
|
-
var state;
|
|
798
|
-
if (isCallable$2(value)) {
|
|
799
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
800
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
801
|
-
}
|
|
802
|
-
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
803
|
-
createNonEnumerableProperty$1(value, 'name', name);
|
|
804
|
-
}
|
|
805
|
-
state = enforceInternalState(value);
|
|
806
|
-
if (!state.source) {
|
|
807
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
808
|
-
}
|
|
798
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
799
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
800
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
809
801
|
}
|
|
810
|
-
if (
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
simple = true;
|
|
802
|
+
if (options && options.getter) name = 'get ' + name;
|
|
803
|
+
if (options && options.setter) name = 'set ' + name;
|
|
804
|
+
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
805
|
+
defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
806
|
+
}
|
|
807
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
808
|
+
defineProperty$1(value, 'length', { value: options.arity });
|
|
818
809
|
}
|
|
819
|
-
|
|
820
|
-
|
|
810
|
+
try {
|
|
811
|
+
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
812
|
+
if (DESCRIPTORS) defineProperty$1(value, 'prototype', { writable: false });
|
|
813
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
814
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
815
|
+
} catch (error) { /* empty */ }
|
|
816
|
+
var state = enforceInternalState(value);
|
|
817
|
+
if (!hasOwn$2(state, 'source')) {
|
|
818
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
819
|
+
} return value;
|
|
820
|
+
};
|
|
821
|
+
|
|
821
822
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
823
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
824
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
825
|
+
return isCallable$3(this) && getInternalState(this).source || inspectSource(this);
|
|
826
|
+
}, 'toString');
|
|
827
|
+
|
|
828
|
+
var isCallable$2 = isCallable$b;
|
|
829
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
830
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
831
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
832
|
+
|
|
833
|
+
var defineBuiltIn$1 = function (O, key, value, options) {
|
|
834
|
+
if (!options) options = {};
|
|
835
|
+
var simple = options.enumerable;
|
|
836
|
+
var name = options.name !== undefined ? options.name : key;
|
|
837
|
+
if (isCallable$2(value)) makeBuiltIn(value, name, options);
|
|
838
|
+
if (options.global) {
|
|
839
|
+
if (simple) O[key] = value;
|
|
840
|
+
else defineGlobalProperty$1(key, value);
|
|
841
|
+
} else {
|
|
842
|
+
if (!options.unsafe) delete O[key];
|
|
843
|
+
else if (O[key]) simple = true;
|
|
844
|
+
if (simple) O[key] = value;
|
|
845
|
+
else createNonEnumerableProperty$1(O, key, value);
|
|
846
|
+
} return O;
|
|
847
|
+
};
|
|
825
848
|
|
|
826
849
|
var objectGetOwnPropertyNames = {};
|
|
827
850
|
|
|
@@ -832,14 +855,14 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
|
832
855
|
|
|
833
856
|
// `Object.getOwnPropertyNames` method
|
|
834
857
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
835
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
858
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
836
859
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
837
860
|
return internalObjectKeys(O, hiddenKeys);
|
|
838
861
|
};
|
|
839
862
|
|
|
840
863
|
var objectGetOwnPropertySymbols = {};
|
|
841
864
|
|
|
842
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
865
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
843
866
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
844
867
|
|
|
845
868
|
var getBuiltIn = getBuiltIn$4;
|
|
@@ -874,8 +897,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
874
897
|
}
|
|
875
898
|
};
|
|
876
899
|
|
|
877
|
-
var fails = fails$
|
|
878
|
-
var isCallable$1 = isCallable$
|
|
900
|
+
var fails = fails$8;
|
|
901
|
+
var isCallable$1 = isCallable$b;
|
|
879
902
|
|
|
880
903
|
var replacement = /#|\.prototype\./;
|
|
881
904
|
|
|
@@ -897,28 +920,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
897
920
|
|
|
898
921
|
var isForced_1 = isForced$1;
|
|
899
922
|
|
|
900
|
-
var global$
|
|
923
|
+
var global$1 = global$a;
|
|
901
924
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
902
925
|
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
903
|
-
var
|
|
904
|
-
var
|
|
926
|
+
var defineBuiltIn = defineBuiltIn$1;
|
|
927
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
905
928
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
906
929
|
var isForced = isForced_1;
|
|
907
930
|
|
|
908
931
|
/*
|
|
909
|
-
options.target
|
|
910
|
-
options.global
|
|
911
|
-
options.stat
|
|
912
|
-
options.proto
|
|
913
|
-
options.real
|
|
914
|
-
options.forced
|
|
915
|
-
options.bind
|
|
916
|
-
options.wrap
|
|
917
|
-
options.unsafe
|
|
918
|
-
options.sham
|
|
919
|
-
options.enumerable
|
|
920
|
-
options.
|
|
921
|
-
options.name
|
|
932
|
+
options.target - name of the target object
|
|
933
|
+
options.global - target is the global object
|
|
934
|
+
options.stat - export as static methods of target
|
|
935
|
+
options.proto - export as prototype methods of target
|
|
936
|
+
options.real - real prototype method for the `pure` version
|
|
937
|
+
options.forced - export even if the native feature is available
|
|
938
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
939
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
940
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
941
|
+
options.sham - add a flag to not completely full polyfills
|
|
942
|
+
options.enumerable - export as enumerable property
|
|
943
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
944
|
+
options.name - the .name of the function if it does not match the key
|
|
922
945
|
*/
|
|
923
946
|
var _export = function (options, source) {
|
|
924
947
|
var TARGET = options.target;
|
|
@@ -926,15 +949,15 @@ var _export = function (options, source) {
|
|
|
926
949
|
var STATIC = options.stat;
|
|
927
950
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
928
951
|
if (GLOBAL) {
|
|
929
|
-
target = global$
|
|
952
|
+
target = global$1;
|
|
930
953
|
} else if (STATIC) {
|
|
931
|
-
target = global$
|
|
954
|
+
target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
|
|
932
955
|
} else {
|
|
933
|
-
target = (global$
|
|
956
|
+
target = (global$1[TARGET] || {}).prototype;
|
|
934
957
|
}
|
|
935
958
|
if (target) for (key in source) {
|
|
936
959
|
sourceProperty = source[key];
|
|
937
|
-
if (options.
|
|
960
|
+
if (options.dontCallGetSet) {
|
|
938
961
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
939
962
|
targetProperty = descriptor && descriptor.value;
|
|
940
963
|
} else targetProperty = target[key];
|
|
@@ -948,8 +971,7 @@ var _export = function (options, source) {
|
|
|
948
971
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
949
972
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
950
973
|
}
|
|
951
|
-
|
|
952
|
-
redefine(target, key, sourceProperty, options);
|
|
974
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
|
953
975
|
}
|
|
954
976
|
};
|
|
955
977
|
|
|
@@ -966,15 +988,14 @@ var setToStringTag = function (target, TAG, STATIC) {
|
|
|
966
988
|
}
|
|
967
989
|
};
|
|
968
990
|
|
|
969
|
-
var
|
|
970
|
-
var isCallable = isCallable$a;
|
|
991
|
+
var isCallable = isCallable$b;
|
|
971
992
|
|
|
972
|
-
var String
|
|
973
|
-
var TypeError =
|
|
993
|
+
var $String = String;
|
|
994
|
+
var $TypeError = TypeError;
|
|
974
995
|
|
|
975
996
|
var aPossiblePrototype$1 = function (argument) {
|
|
976
997
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
977
|
-
throw TypeError("Can't set " + String
|
|
998
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
978
999
|
};
|
|
979
1000
|
|
|
980
1001
|
/* eslint-disable no-proto -- safe */
|
|
@@ -986,13 +1007,13 @@ var aPossiblePrototype = aPossiblePrototype$1;
|
|
|
986
1007
|
// `Object.setPrototypeOf` method
|
|
987
1008
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
988
1009
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
989
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1010
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
990
1011
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
991
1012
|
var CORRECT_SETTER = false;
|
|
992
1013
|
var test = {};
|
|
993
1014
|
var setter;
|
|
994
1015
|
try {
|
|
995
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1016
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
996
1017
|
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
997
1018
|
setter(test, []);
|
|
998
1019
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -1006,4 +1027,4 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1006
1027
|
};
|
|
1007
1028
|
}() : undefined);
|
|
1008
1029
|
|
|
1009
|
-
export {
|
|
1030
|
+
export { classofRaw as A, getBuiltIn$4 as B, objectIsPrototypeOf as C, functionUncurryThis as D, inspectSource$2 as E, tryToString$1 as F, functionBindNative as G, aCallable$1 as H, engineUserAgent as I, objectGetOwnPropertyDescriptor as J, isForced_1 as K, engineV8Version as L, isObject$5 as M, getMethod$1 as N, lengthOfArrayLike$1 as O, requireObjectCoercible$2 as P, indexedObject as Q, objectGetOwnPropertySymbols as R, objectPropertyIsEnumerable as S, shared$3 as T, toIntegerOrInfinity$2 as U, toPropertyKey$2 as V, toAbsoluteIndex$1 as W, toLength$1 as X, _export as _, objectDefineProperty as a, anObject$3 as b, html as c, descriptors as d, enumBugKeys$1 as e, documentCreateElement as f, fails$8 as g, hiddenKeys$3 as h, hasOwnProperty_1 as i, isCallable$b as j, toObject$1 as k, defineBuiltIn$1 as l, createPropertyDescriptor$2 as m, setToStringTag as n, objectKeysInternal as o, iterators as p, objectSetPrototypeOf as q, createNonEnumerableProperty$3 as r, sharedKey$1 as s, toIndexedObject$3 as t, functionCall as u, v8PrototypeDefineBug as v, wellKnownSymbol$2 as w, functionName as x, internalState as y, global$a as z };
|