@trackunit/react-core-hooks 0.0.51 → 0.0.52
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.js +239 -212
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -6,22 +6,7 @@ import { AssetRuntime, CustomFieldRuntime, RestRuntime } from '@trackunit/iris-a
|
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
return it && it.Math == Math && it;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
14
|
-
var global$o =
|
|
15
|
-
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
16
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
17
|
-
check(typeof window == 'object' && window) ||
|
|
18
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
19
|
-
check(typeof self == 'object' && self) ||
|
|
20
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
21
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
22
|
-
(function () { return this; })() || Function('return this')();
|
|
23
|
-
|
|
24
|
-
var fails$a = function (exec) {
|
|
9
|
+
var fails$b = function (exec) {
|
|
25
10
|
try {
|
|
26
11
|
return !!exec();
|
|
27
12
|
} catch (error) {
|
|
@@ -29,9 +14,9 @@ var fails$a = function (exec) {
|
|
|
29
14
|
}
|
|
30
15
|
};
|
|
31
16
|
|
|
32
|
-
var fails$
|
|
17
|
+
var fails$a = fails$b;
|
|
33
18
|
|
|
34
|
-
var functionBindNative = !fails$
|
|
19
|
+
var functionBindNative = !fails$a(function () {
|
|
35
20
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
36
21
|
var test = (function () { /* empty */ }).bind();
|
|
37
22
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -62,31 +47,28 @@ var classofRaw = function (it) {
|
|
|
62
47
|
return stringSlice(toString$1(it), 8, -1);
|
|
63
48
|
};
|
|
64
49
|
|
|
65
|
-
var global$n = global$o;
|
|
66
50
|
var uncurryThis$9 = functionUncurryThis;
|
|
67
|
-
var fails$
|
|
51
|
+
var fails$9 = fails$b;
|
|
68
52
|
var classof = classofRaw;
|
|
69
53
|
|
|
70
|
-
var Object$
|
|
54
|
+
var $Object$3 = Object;
|
|
71
55
|
var split = uncurryThis$9(''.split);
|
|
72
56
|
|
|
73
57
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
74
|
-
var indexedObject = fails$
|
|
58
|
+
var indexedObject = fails$9(function () {
|
|
75
59
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
76
60
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
77
|
-
return
|
|
61
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
78
62
|
}) ? function (it) {
|
|
79
|
-
return classof(it) == 'String' ? split(it, '') : Object$
|
|
80
|
-
} : Object$
|
|
81
|
-
|
|
82
|
-
var global$m = global$o;
|
|
63
|
+
return classof(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
64
|
+
} : $Object$3;
|
|
83
65
|
|
|
84
|
-
var TypeError$
|
|
66
|
+
var $TypeError$6 = TypeError;
|
|
85
67
|
|
|
86
68
|
// `RequireObjectCoercible` abstract operation
|
|
87
69
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
88
70
|
var requireObjectCoercible$2 = function (it) {
|
|
89
|
-
if (it == undefined) throw TypeError$
|
|
71
|
+
if (it == undefined) throw $TypeError$6("Can't call method on " + it);
|
|
90
72
|
return it;
|
|
91
73
|
};
|
|
92
74
|
|
|
@@ -98,26 +80,41 @@ var toIndexedObject$5 = function (it) {
|
|
|
98
80
|
return IndexedObject$1(requireObjectCoercible$1(it));
|
|
99
81
|
};
|
|
100
82
|
|
|
83
|
+
var check = function (it) {
|
|
84
|
+
return it && it.Math == Math && it;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
88
|
+
var global$b =
|
|
89
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
90
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
91
|
+
check(typeof window == 'object' && window) ||
|
|
92
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
93
|
+
check(typeof self == 'object' && self) ||
|
|
94
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
95
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
96
|
+
(function () { return this; })() || Function('return this')();
|
|
97
|
+
|
|
101
98
|
var shared$3 = {exports: {}};
|
|
102
99
|
|
|
103
|
-
var global$
|
|
100
|
+
var global$a = global$b;
|
|
104
101
|
|
|
105
102
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
106
|
-
var defineProperty$
|
|
103
|
+
var defineProperty$5 = Object.defineProperty;
|
|
107
104
|
|
|
108
|
-
var
|
|
105
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
109
106
|
try {
|
|
110
|
-
defineProperty$
|
|
107
|
+
defineProperty$5(global$a, key, { value: value, configurable: true, writable: true });
|
|
111
108
|
} catch (error) {
|
|
112
|
-
global$
|
|
109
|
+
global$a[key] = value;
|
|
113
110
|
} return value;
|
|
114
111
|
};
|
|
115
112
|
|
|
116
|
-
var global$
|
|
117
|
-
var
|
|
113
|
+
var global$9 = global$b;
|
|
114
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
118
115
|
|
|
119
116
|
var SHARED = '__core-js_shared__';
|
|
120
|
-
var store$3 = global$
|
|
117
|
+
var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
121
118
|
|
|
122
119
|
var sharedStore = store$3;
|
|
123
120
|
|
|
@@ -126,22 +123,21 @@ var store$2 = sharedStore;
|
|
|
126
123
|
(shared$3.exports = function (key, value) {
|
|
127
124
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
128
125
|
})('versions', []).push({
|
|
129
|
-
version: '3.
|
|
126
|
+
version: '3.24.1',
|
|
130
127
|
mode: 'global',
|
|
131
128
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
132
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
129
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
133
130
|
source: 'https://github.com/zloirock/core-js'
|
|
134
131
|
});
|
|
135
132
|
|
|
136
|
-
var global$j = global$o;
|
|
137
133
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
138
134
|
|
|
139
|
-
var Object$
|
|
135
|
+
var $Object$2 = Object;
|
|
140
136
|
|
|
141
137
|
// `ToObject` abstract operation
|
|
142
138
|
// https://tc39.es/ecma262/#sec-toobject
|
|
143
139
|
var toObject$3 = function (argument) {
|
|
144
|
-
return Object$
|
|
140
|
+
return $Object$2(requireObjectCoercible(argument));
|
|
145
141
|
};
|
|
146
142
|
|
|
147
143
|
var uncurryThis$8 = functionUncurryThis;
|
|
@@ -168,30 +164,30 @@ var uid$2 = function (key) {
|
|
|
168
164
|
|
|
169
165
|
// `IsCallable` abstract operation
|
|
170
166
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
171
|
-
var isCallable$
|
|
167
|
+
var isCallable$e = function (argument) {
|
|
172
168
|
return typeof argument == 'function';
|
|
173
169
|
};
|
|
174
170
|
|
|
175
|
-
var global$
|
|
176
|
-
var isCallable$
|
|
171
|
+
var global$8 = global$b;
|
|
172
|
+
var isCallable$d = isCallable$e;
|
|
177
173
|
|
|
178
174
|
var aFunction = function (argument) {
|
|
179
|
-
return isCallable$
|
|
175
|
+
return isCallable$d(argument) ? argument : undefined;
|
|
180
176
|
};
|
|
181
177
|
|
|
182
178
|
var getBuiltIn$4 = function (namespace, method) {
|
|
183
|
-
return arguments.length < 2 ? aFunction(global$
|
|
179
|
+
return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
|
|
184
180
|
};
|
|
185
181
|
|
|
186
182
|
var getBuiltIn$3 = getBuiltIn$4;
|
|
187
183
|
|
|
188
184
|
var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
|
|
189
185
|
|
|
190
|
-
var global$
|
|
186
|
+
var global$7 = global$b;
|
|
191
187
|
var userAgent = engineUserAgent;
|
|
192
188
|
|
|
193
|
-
var process = global$
|
|
194
|
-
var Deno = global$
|
|
189
|
+
var process = global$7.process;
|
|
190
|
+
var Deno = global$7.Deno;
|
|
195
191
|
var versions = process && process.versions || Deno && Deno.version;
|
|
196
192
|
var v8 = versions && versions.v8;
|
|
197
193
|
var match, version;
|
|
@@ -218,10 +214,10 @@ var engineV8Version = version;
|
|
|
218
214
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
219
215
|
|
|
220
216
|
var V8_VERSION = engineV8Version;
|
|
221
|
-
var fails$
|
|
217
|
+
var fails$8 = fails$b;
|
|
222
218
|
|
|
223
219
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
224
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
220
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$8(function () {
|
|
225
221
|
var symbol = Symbol();
|
|
226
222
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
227
223
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -238,7 +234,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
238
234
|
&& !Symbol.sham
|
|
239
235
|
&& typeof Symbol.iterator == 'symbol';
|
|
240
236
|
|
|
241
|
-
var global$
|
|
237
|
+
var global$6 = global$b;
|
|
242
238
|
var shared$2 = shared$3.exports;
|
|
243
239
|
var hasOwn$8 = hasOwnProperty_1;
|
|
244
240
|
var uid$1 = uid$2;
|
|
@@ -246,7 +242,7 @@ var NATIVE_SYMBOL = nativeSymbol;
|
|
|
246
242
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
247
243
|
|
|
248
244
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
249
|
-
var Symbol$1 = global$
|
|
245
|
+
var Symbol$1 = global$6.Symbol;
|
|
250
246
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
251
247
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
252
248
|
|
|
@@ -263,40 +259,39 @@ var wellKnownSymbol$6 = function (name) {
|
|
|
263
259
|
} return WellKnownSymbolsStore[name];
|
|
264
260
|
};
|
|
265
261
|
|
|
266
|
-
var isCallable$
|
|
262
|
+
var isCallable$c = isCallable$e;
|
|
267
263
|
|
|
268
264
|
var isObject$5 = function (it) {
|
|
269
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
265
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
270
266
|
};
|
|
271
267
|
|
|
272
|
-
var global$f = global$o;
|
|
273
268
|
var isObject$4 = isObject$5;
|
|
274
269
|
|
|
275
|
-
var String$
|
|
276
|
-
var TypeError$
|
|
270
|
+
var $String$2 = String;
|
|
271
|
+
var $TypeError$5 = TypeError;
|
|
277
272
|
|
|
278
273
|
// `Assert: Type(argument) is Object`
|
|
279
274
|
var anObject$5 = function (argument) {
|
|
280
275
|
if (isObject$4(argument)) return argument;
|
|
281
|
-
throw TypeError$
|
|
276
|
+
throw $TypeError$5($String$2(argument) + ' is not an object');
|
|
282
277
|
};
|
|
283
278
|
|
|
284
279
|
var objectDefineProperties = {};
|
|
285
280
|
|
|
286
|
-
var fails$
|
|
281
|
+
var fails$7 = fails$b;
|
|
287
282
|
|
|
288
283
|
// Detect IE8's incomplete defineProperty implementation
|
|
289
|
-
var descriptors = !fails$
|
|
284
|
+
var descriptors = !fails$7(function () {
|
|
290
285
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
291
286
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
292
287
|
});
|
|
293
288
|
|
|
294
|
-
var DESCRIPTORS$
|
|
295
|
-
var fails$
|
|
289
|
+
var DESCRIPTORS$9 = descriptors;
|
|
290
|
+
var fails$6 = fails$b;
|
|
296
291
|
|
|
297
292
|
// V8 ~ Chrome 36-
|
|
298
293
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
299
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
294
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$6(function () {
|
|
300
295
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
301
296
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
302
297
|
value: 42,
|
|
@@ -306,10 +301,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
|
|
|
306
301
|
|
|
307
302
|
var objectDefineProperty = {};
|
|
308
303
|
|
|
309
|
-
var global$
|
|
304
|
+
var global$5 = global$b;
|
|
310
305
|
var isObject$3 = isObject$5;
|
|
311
306
|
|
|
312
|
-
var document$1 = global$
|
|
307
|
+
var document$1 = global$5.document;
|
|
313
308
|
// typeof document.createElement is 'object' in old IE
|
|
314
309
|
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
|
315
310
|
|
|
@@ -317,12 +312,12 @@ var documentCreateElement$2 = function (it) {
|
|
|
317
312
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
318
313
|
};
|
|
319
314
|
|
|
320
|
-
var DESCRIPTORS$
|
|
321
|
-
var fails$
|
|
315
|
+
var DESCRIPTORS$8 = descriptors;
|
|
316
|
+
var fails$5 = fails$b;
|
|
322
317
|
var createElement = documentCreateElement$2;
|
|
323
318
|
|
|
324
319
|
// Thanks to IE8 for its funny defineProperty
|
|
325
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
320
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
|
|
326
321
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
327
322
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
328
323
|
get: function () { return 7; }
|
|
@@ -341,43 +336,39 @@ var uncurryThis$6 = functionUncurryThis;
|
|
|
341
336
|
|
|
342
337
|
var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
|
|
343
338
|
|
|
344
|
-
var global$d = global$o;
|
|
345
339
|
var getBuiltIn$2 = getBuiltIn$4;
|
|
346
|
-
var isCallable$
|
|
340
|
+
var isCallable$b = isCallable$e;
|
|
347
341
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
348
342
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
349
343
|
|
|
350
|
-
var Object$
|
|
344
|
+
var $Object$1 = Object;
|
|
351
345
|
|
|
352
346
|
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
353
347
|
return typeof it == 'symbol';
|
|
354
348
|
} : function (it) {
|
|
355
349
|
var $Symbol = getBuiltIn$2('Symbol');
|
|
356
|
-
return isCallable$
|
|
350
|
+
return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
357
351
|
};
|
|
358
352
|
|
|
359
|
-
var
|
|
360
|
-
|
|
361
|
-
var String$2 = global$c.String;
|
|
353
|
+
var $String$1 = String;
|
|
362
354
|
|
|
363
355
|
var tryToString$1 = function (argument) {
|
|
364
356
|
try {
|
|
365
|
-
return String$
|
|
357
|
+
return $String$1(argument);
|
|
366
358
|
} catch (error) {
|
|
367
359
|
return 'Object';
|
|
368
360
|
}
|
|
369
361
|
};
|
|
370
362
|
|
|
371
|
-
var
|
|
372
|
-
var isCallable$9 = isCallable$d;
|
|
363
|
+
var isCallable$a = isCallable$e;
|
|
373
364
|
var tryToString = tryToString$1;
|
|
374
365
|
|
|
375
|
-
var TypeError$
|
|
366
|
+
var $TypeError$4 = TypeError;
|
|
376
367
|
|
|
377
368
|
// `Assert: IsCallable(argument) is true`
|
|
378
369
|
var aCallable$1 = function (argument) {
|
|
379
|
-
if (isCallable$
|
|
380
|
-
throw TypeError$
|
|
370
|
+
if (isCallable$a(argument)) return argument;
|
|
371
|
+
throw $TypeError$4(tryToString(argument) + ' is not a function');
|
|
381
372
|
};
|
|
382
373
|
|
|
383
374
|
var aCallable = aCallable$1;
|
|
@@ -389,24 +380,22 @@ var getMethod$1 = function (V, P) {
|
|
|
389
380
|
return func == null ? undefined : aCallable(func);
|
|
390
381
|
};
|
|
391
382
|
|
|
392
|
-
var global$a = global$o;
|
|
393
383
|
var call$4 = functionCall;
|
|
394
|
-
var isCallable$
|
|
384
|
+
var isCallable$9 = isCallable$e;
|
|
395
385
|
var isObject$2 = isObject$5;
|
|
396
386
|
|
|
397
|
-
var TypeError$
|
|
387
|
+
var $TypeError$3 = TypeError;
|
|
398
388
|
|
|
399
389
|
// `OrdinaryToPrimitive` abstract operation
|
|
400
390
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
401
391
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
402
392
|
var fn, val;
|
|
403
|
-
if (pref === 'string' && isCallable$
|
|
404
|
-
if (isCallable$
|
|
405
|
-
if (pref !== 'string' && isCallable$
|
|
406
|
-
throw TypeError$
|
|
393
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$2(val = call$4(fn, input))) return val;
|
|
394
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$2(val = call$4(fn, input))) return val;
|
|
395
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$2(val = call$4(fn, input))) return val;
|
|
396
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
407
397
|
};
|
|
408
398
|
|
|
409
|
-
var global$9 = global$o;
|
|
410
399
|
var call$3 = functionCall;
|
|
411
400
|
var isObject$1 = isObject$5;
|
|
412
401
|
var isSymbol$1 = isSymbol$2;
|
|
@@ -414,7 +403,7 @@ var getMethod = getMethod$1;
|
|
|
414
403
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
415
404
|
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
|
416
405
|
|
|
417
|
-
var TypeError$
|
|
406
|
+
var $TypeError$2 = TypeError;
|
|
418
407
|
var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
|
419
408
|
|
|
420
409
|
// `ToPrimitive` abstract operation
|
|
@@ -427,7 +416,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
427
416
|
if (pref === undefined) pref = 'default';
|
|
428
417
|
result = call$3(exoticToPrim, input, pref);
|
|
429
418
|
if (!isObject$1(result) || isSymbol$1(result)) return result;
|
|
430
|
-
throw TypeError$
|
|
419
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
431
420
|
}
|
|
432
421
|
if (pref === undefined) pref = 'number';
|
|
433
422
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -443,14 +432,13 @@ var toPropertyKey$2 = function (argument) {
|
|
|
443
432
|
return isSymbol(key) ? key : key + '';
|
|
444
433
|
};
|
|
445
434
|
|
|
446
|
-
var
|
|
447
|
-
var DESCRIPTORS$6 = descriptors;
|
|
435
|
+
var DESCRIPTORS$7 = descriptors;
|
|
448
436
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
449
437
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
450
438
|
var anObject$4 = anObject$5;
|
|
451
439
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
452
440
|
|
|
453
|
-
var TypeError$
|
|
441
|
+
var $TypeError$1 = TypeError;
|
|
454
442
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
455
443
|
var $defineProperty = Object.defineProperty;
|
|
456
444
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -461,7 +449,7 @@ var WRITABLE = 'writable';
|
|
|
461
449
|
|
|
462
450
|
// `Object.defineProperty` method
|
|
463
451
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
464
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
452
|
+
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
465
453
|
anObject$4(O);
|
|
466
454
|
P = toPropertyKey$1(P);
|
|
467
455
|
anObject$4(Attributes);
|
|
@@ -483,7 +471,7 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
483
471
|
if (IE8_DOM_DEFINE$1) try {
|
|
484
472
|
return $defineProperty(O, P, Attributes);
|
|
485
473
|
} catch (error) { /* empty */ }
|
|
486
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
474
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
|
|
487
475
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
488
476
|
return O;
|
|
489
477
|
};
|
|
@@ -491,12 +479,22 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
491
479
|
var ceil = Math.ceil;
|
|
492
480
|
var floor = Math.floor;
|
|
493
481
|
|
|
482
|
+
// `Math.trunc` method
|
|
483
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
484
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
485
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
486
|
+
var n = +x;
|
|
487
|
+
return (n > 0 ? floor : ceil)(n);
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
var trunc = mathTrunc;
|
|
491
|
+
|
|
494
492
|
// `ToIntegerOrInfinity` abstract operation
|
|
495
493
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
496
494
|
var toIntegerOrInfinity$2 = function (argument) {
|
|
497
495
|
var number = +argument;
|
|
498
|
-
// eslint-disable-next-line no-self-compare --
|
|
499
|
-
return number !== number || number === 0 ? 0 : (number
|
|
496
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
497
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
500
498
|
};
|
|
501
499
|
|
|
502
500
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
@@ -607,7 +605,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
607
605
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
608
606
|
};
|
|
609
607
|
|
|
610
|
-
var DESCRIPTORS$
|
|
608
|
+
var DESCRIPTORS$6 = descriptors;
|
|
611
609
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
612
610
|
var definePropertyModule$3 = objectDefineProperty;
|
|
613
611
|
var anObject$3 = anObject$5;
|
|
@@ -617,7 +615,7 @@ var objectKeys$1 = objectKeys$2;
|
|
|
617
615
|
// `Object.defineProperties` method
|
|
618
616
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
619
617
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
620
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
618
|
+
objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
621
619
|
anObject$3(O);
|
|
622
620
|
var props = toIndexedObject$2(Properties);
|
|
623
621
|
var keys = objectKeys$1(Properties);
|
|
@@ -728,7 +726,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
728
726
|
|
|
729
727
|
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
|
730
728
|
var create$1 = objectCreate;
|
|
731
|
-
var
|
|
729
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
732
730
|
|
|
733
731
|
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
734
732
|
var ArrayPrototype = Array.prototype;
|
|
@@ -736,7 +734,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
736
734
|
// Array.prototype[@@unscopables]
|
|
737
735
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
738
736
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
739
|
-
|
|
737
|
+
defineProperty$4(ArrayPrototype, UNSCOPABLES, {
|
|
740
738
|
configurable: true,
|
|
741
739
|
value: create$1(null)
|
|
742
740
|
});
|
|
@@ -750,13 +748,13 @@ var addToUnscopables$1 = function (key) {
|
|
|
750
748
|
var iterators = {};
|
|
751
749
|
|
|
752
750
|
var uncurryThis$4 = functionUncurryThis;
|
|
753
|
-
var isCallable$
|
|
751
|
+
var isCallable$8 = isCallable$e;
|
|
754
752
|
var store$1 = sharedStore;
|
|
755
753
|
|
|
756
754
|
var functionToString = uncurryThis$4(Function.toString);
|
|
757
755
|
|
|
758
756
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
759
|
-
if (!isCallable$
|
|
757
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
|
760
758
|
store$1.inspectSource = function (it) {
|
|
761
759
|
return functionToString(it);
|
|
762
760
|
};
|
|
@@ -764,13 +762,13 @@ if (!isCallable$7(store$1.inspectSource)) {
|
|
|
764
762
|
|
|
765
763
|
var inspectSource$2 = store$1.inspectSource;
|
|
766
764
|
|
|
767
|
-
var global$
|
|
768
|
-
var isCallable$
|
|
765
|
+
var global$4 = global$b;
|
|
766
|
+
var isCallable$7 = isCallable$e;
|
|
769
767
|
var inspectSource$1 = inspectSource$2;
|
|
770
768
|
|
|
771
|
-
var WeakMap$1 = global$
|
|
769
|
+
var WeakMap$1 = global$4.WeakMap;
|
|
772
770
|
|
|
773
|
-
var nativeWeakMap = isCallable$
|
|
771
|
+
var nativeWeakMap = isCallable$7(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
|
|
774
772
|
|
|
775
773
|
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
776
774
|
return {
|
|
@@ -781,30 +779,30 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
781
779
|
};
|
|
782
780
|
};
|
|
783
781
|
|
|
784
|
-
var DESCRIPTORS$
|
|
785
|
-
var definePropertyModule$
|
|
782
|
+
var DESCRIPTORS$5 = descriptors;
|
|
783
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
786
784
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
787
785
|
|
|
788
|
-
var createNonEnumerableProperty$
|
|
789
|
-
return definePropertyModule$
|
|
786
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
787
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
|
|
790
788
|
} : function (object, key, value) {
|
|
791
789
|
object[key] = value;
|
|
792
790
|
return object;
|
|
793
791
|
};
|
|
794
792
|
|
|
795
793
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
796
|
-
var global$
|
|
794
|
+
var global$3 = global$b;
|
|
797
795
|
var uncurryThis$3 = functionUncurryThis;
|
|
798
796
|
var isObject = isObject$5;
|
|
799
|
-
var createNonEnumerableProperty$
|
|
797
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
800
798
|
var hasOwn$6 = hasOwnProperty_1;
|
|
801
799
|
var shared = sharedStore;
|
|
802
800
|
var sharedKey$1 = sharedKey$3;
|
|
803
801
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
804
802
|
|
|
805
803
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
806
|
-
var TypeError$1 = global$
|
|
807
|
-
var WeakMap = global$
|
|
804
|
+
var TypeError$1 = global$3.TypeError;
|
|
805
|
+
var WeakMap = global$3.WeakMap;
|
|
808
806
|
var set, get, has;
|
|
809
807
|
|
|
810
808
|
var enforce = function (it) {
|
|
@@ -843,7 +841,7 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
843
841
|
set = function (it, metadata) {
|
|
844
842
|
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
845
843
|
metadata.facade = it;
|
|
846
|
-
createNonEnumerableProperty$
|
|
844
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
847
845
|
return metadata;
|
|
848
846
|
};
|
|
849
847
|
get = function (it) {
|
|
@@ -880,7 +878,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
880
878
|
return !!descriptor && descriptor.enumerable;
|
|
881
879
|
} : $propertyIsEnumerable;
|
|
882
880
|
|
|
883
|
-
var DESCRIPTORS$
|
|
881
|
+
var DESCRIPTORS$4 = descriptors;
|
|
884
882
|
var call$2 = functionCall;
|
|
885
883
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
886
884
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
@@ -894,7 +892,7 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
894
892
|
|
|
895
893
|
// `Object.getOwnPropertyDescriptor` method
|
|
896
894
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
897
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
895
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
898
896
|
O = toIndexedObject$1(O);
|
|
899
897
|
P = toPropertyKey(P);
|
|
900
898
|
if (IE8_DOM_DEFINE) try {
|
|
@@ -903,19 +901,19 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : f
|
|
|
903
901
|
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
904
902
|
};
|
|
905
903
|
|
|
906
|
-
var
|
|
904
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
907
905
|
|
|
908
|
-
var DESCRIPTORS$
|
|
906
|
+
var DESCRIPTORS$3 = descriptors;
|
|
909
907
|
var hasOwn$4 = hasOwnProperty_1;
|
|
910
908
|
|
|
911
909
|
var FunctionPrototype = Function.prototype;
|
|
912
910
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
913
|
-
var getDescriptor = DESCRIPTORS$
|
|
911
|
+
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
914
912
|
|
|
915
913
|
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
916
914
|
// additional protection from minified / mangled / dropped function names
|
|
917
915
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
918
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
916
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
919
917
|
|
|
920
918
|
var functionName = {
|
|
921
919
|
EXISTS: EXISTS,
|
|
@@ -923,52 +921,83 @@ var functionName = {
|
|
|
923
921
|
CONFIGURABLE: CONFIGURABLE
|
|
924
922
|
};
|
|
925
923
|
|
|
926
|
-
var
|
|
927
|
-
var isCallable$
|
|
924
|
+
var fails$4 = fails$b;
|
|
925
|
+
var isCallable$6 = isCallable$e;
|
|
928
926
|
var hasOwn$3 = hasOwnProperty_1;
|
|
929
|
-
var
|
|
930
|
-
var
|
|
927
|
+
var DESCRIPTORS$2 = descriptors;
|
|
928
|
+
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
931
929
|
var inspectSource = inspectSource$2;
|
|
932
930
|
var InternalStateModule$1 = internalState;
|
|
933
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
934
931
|
|
|
935
|
-
var getInternalState$1 = InternalStateModule$1.get;
|
|
936
932
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
933
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
|
934
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
935
|
+
var defineProperty$3 = Object.defineProperty;
|
|
936
|
+
|
|
937
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
|
|
938
|
+
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
939
|
+
});
|
|
940
|
+
|
|
937
941
|
var TEMPLATE = String(String).split('String');
|
|
938
942
|
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
943
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
944
|
-
var state;
|
|
945
|
-
if (isCallable$5(value)) {
|
|
946
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
947
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
948
|
-
}
|
|
949
|
-
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
950
|
-
createNonEnumerableProperty$3(value, 'name', name);
|
|
951
|
-
}
|
|
952
|
-
state = enforceInternalState(value);
|
|
953
|
-
if (!state.source) {
|
|
954
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
955
|
-
}
|
|
943
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
944
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
945
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
956
946
|
}
|
|
957
|
-
if (
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
947
|
+
if (options && options.getter) name = 'get ' + name;
|
|
948
|
+
if (options && options.setter) name = 'set ' + name;
|
|
949
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
950
|
+
if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
951
|
+
else value.name = name;
|
|
952
|
+
}
|
|
953
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
954
|
+
defineProperty$3(value, 'length', { value: options.arity });
|
|
965
955
|
}
|
|
966
|
-
|
|
967
|
-
|
|
956
|
+
try {
|
|
957
|
+
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
958
|
+
if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
|
|
959
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
960
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
961
|
+
} catch (error) { /* empty */ }
|
|
962
|
+
var state = enforceInternalState(value);
|
|
963
|
+
if (!hasOwn$3(state, 'source')) {
|
|
964
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
965
|
+
} return value;
|
|
966
|
+
};
|
|
967
|
+
|
|
968
968
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
970
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
971
|
+
return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
|
|
972
|
+
}, 'toString');
|
|
973
|
+
|
|
974
|
+
var isCallable$5 = isCallable$e;
|
|
975
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
976
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
977
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
978
|
+
|
|
979
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
980
|
+
if (!options) options = {};
|
|
981
|
+
var simple = options.enumerable;
|
|
982
|
+
var name = options.name !== undefined ? options.name : key;
|
|
983
|
+
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
|
984
|
+
if (options.global) {
|
|
985
|
+
if (simple) O[key] = value;
|
|
986
|
+
else defineGlobalProperty$1(key, value);
|
|
987
|
+
} else {
|
|
988
|
+
try {
|
|
989
|
+
if (!options.unsafe) delete O[key];
|
|
990
|
+
else if (O[key]) simple = true;
|
|
991
|
+
} catch (error) { /* empty */ }
|
|
992
|
+
if (simple) O[key] = value;
|
|
993
|
+
else definePropertyModule$1.f(O, key, {
|
|
994
|
+
value: value,
|
|
995
|
+
enumerable: false,
|
|
996
|
+
configurable: !options.nonConfigurable,
|
|
997
|
+
writable: !options.nonWritable
|
|
998
|
+
});
|
|
999
|
+
} return O;
|
|
1000
|
+
};
|
|
972
1001
|
|
|
973
1002
|
var objectGetOwnPropertyNames = {};
|
|
974
1003
|
|
|
@@ -1021,8 +1050,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
1021
1050
|
}
|
|
1022
1051
|
};
|
|
1023
1052
|
|
|
1024
|
-
var fails$3 = fails$
|
|
1025
|
-
var isCallable$4 = isCallable$
|
|
1053
|
+
var fails$3 = fails$b;
|
|
1054
|
+
var isCallable$4 = isCallable$e;
|
|
1026
1055
|
|
|
1027
1056
|
var replacement = /#|\.prototype\./;
|
|
1028
1057
|
|
|
@@ -1044,28 +1073,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
1044
1073
|
|
|
1045
1074
|
var isForced_1 = isForced$1;
|
|
1046
1075
|
|
|
1047
|
-
var global$
|
|
1076
|
+
var global$2 = global$b;
|
|
1048
1077
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1049
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$
|
|
1050
|
-
var
|
|
1051
|
-
var
|
|
1078
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1079
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1080
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1052
1081
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1053
1082
|
var isForced = isForced_1;
|
|
1054
1083
|
|
|
1055
1084
|
/*
|
|
1056
|
-
options.target
|
|
1057
|
-
options.global
|
|
1058
|
-
options.stat
|
|
1059
|
-
options.proto
|
|
1060
|
-
options.real
|
|
1061
|
-
options.forced
|
|
1062
|
-
options.bind
|
|
1063
|
-
options.wrap
|
|
1064
|
-
options.unsafe
|
|
1065
|
-
options.sham
|
|
1066
|
-
options.enumerable
|
|
1067
|
-
options.
|
|
1068
|
-
options.name
|
|
1085
|
+
options.target - name of the target object
|
|
1086
|
+
options.global - target is the global object
|
|
1087
|
+
options.stat - export as static methods of target
|
|
1088
|
+
options.proto - export as prototype methods of target
|
|
1089
|
+
options.real - real prototype method for the `pure` version
|
|
1090
|
+
options.forced - export even if the native feature is available
|
|
1091
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
1092
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1093
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1094
|
+
options.sham - add a flag to not completely full polyfills
|
|
1095
|
+
options.enumerable - export as enumerable property
|
|
1096
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
1097
|
+
options.name - the .name of the function if it does not match the key
|
|
1069
1098
|
*/
|
|
1070
1099
|
var _export = function (options, source) {
|
|
1071
1100
|
var TARGET = options.target;
|
|
@@ -1073,15 +1102,15 @@ var _export = function (options, source) {
|
|
|
1073
1102
|
var STATIC = options.stat;
|
|
1074
1103
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1075
1104
|
if (GLOBAL) {
|
|
1076
|
-
target = global$
|
|
1105
|
+
target = global$2;
|
|
1077
1106
|
} else if (STATIC) {
|
|
1078
|
-
target = global$
|
|
1107
|
+
target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1079
1108
|
} else {
|
|
1080
|
-
target = (global$
|
|
1109
|
+
target = (global$2[TARGET] || {}).prototype;
|
|
1081
1110
|
}
|
|
1082
1111
|
if (target) for (key in source) {
|
|
1083
1112
|
sourceProperty = source[key];
|
|
1084
|
-
if (options.
|
|
1113
|
+
if (options.dontCallGetSet) {
|
|
1085
1114
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1086
1115
|
targetProperty = descriptor && descriptor.value;
|
|
1087
1116
|
} else targetProperty = target[key];
|
|
@@ -1095,12 +1124,11 @@ var _export = function (options, source) {
|
|
|
1095
1124
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1096
1125
|
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1097
1126
|
}
|
|
1098
|
-
|
|
1099
|
-
redefine$2(target, key, sourceProperty, options);
|
|
1127
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1100
1128
|
}
|
|
1101
1129
|
};
|
|
1102
1130
|
|
|
1103
|
-
var fails$2 = fails$
|
|
1131
|
+
var fails$2 = fails$b;
|
|
1104
1132
|
|
|
1105
1133
|
var correctPrototypeGetter = !fails$2(function () {
|
|
1106
1134
|
function F() { /* empty */ }
|
|
@@ -1109,32 +1137,32 @@ var correctPrototypeGetter = !fails$2(function () {
|
|
|
1109
1137
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1110
1138
|
});
|
|
1111
1139
|
|
|
1112
|
-
var global$3 = global$o;
|
|
1113
1140
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1114
|
-
var isCallable$3 = isCallable$
|
|
1141
|
+
var isCallable$3 = isCallable$e;
|
|
1115
1142
|
var toObject$1 = toObject$3;
|
|
1116
1143
|
var sharedKey = sharedKey$3;
|
|
1117
1144
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1118
1145
|
|
|
1119
1146
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1120
|
-
var Object
|
|
1121
|
-
var ObjectPrototype = Object
|
|
1147
|
+
var $Object = Object;
|
|
1148
|
+
var ObjectPrototype = $Object.prototype;
|
|
1122
1149
|
|
|
1123
1150
|
// `Object.getPrototypeOf` method
|
|
1124
1151
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1125
|
-
|
|
1152
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
1153
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
1126
1154
|
var object = toObject$1(O);
|
|
1127
1155
|
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1128
1156
|
var constructor = object.constructor;
|
|
1129
1157
|
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
1130
1158
|
return constructor.prototype;
|
|
1131
|
-
} return object instanceof Object
|
|
1159
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1132
1160
|
};
|
|
1133
1161
|
|
|
1134
|
-
var fails$1 = fails$
|
|
1135
|
-
var isCallable$2 = isCallable$
|
|
1162
|
+
var fails$1 = fails$b;
|
|
1163
|
+
var isCallable$2 = isCallable$e;
|
|
1136
1164
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1137
|
-
var
|
|
1165
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1138
1166
|
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
|
1139
1167
|
|
|
1140
1168
|
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
@@ -1166,7 +1194,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1166
1194
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1167
1195
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1168
1196
|
if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
|
|
1169
|
-
|
|
1197
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1170
1198
|
return this;
|
|
1171
1199
|
});
|
|
1172
1200
|
}
|
|
@@ -1205,15 +1233,14 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1205
1233
|
return IteratorConstructor;
|
|
1206
1234
|
};
|
|
1207
1235
|
|
|
1208
|
-
var
|
|
1209
|
-
var isCallable$1 = isCallable$d;
|
|
1236
|
+
var isCallable$1 = isCallable$e;
|
|
1210
1237
|
|
|
1211
|
-
var String
|
|
1212
|
-
var TypeError =
|
|
1238
|
+
var $String = String;
|
|
1239
|
+
var $TypeError = TypeError;
|
|
1213
1240
|
|
|
1214
1241
|
var aPossiblePrototype$1 = function (argument) {
|
|
1215
1242
|
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
|
1216
|
-
throw TypeError("Can't set " + String
|
|
1243
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
|
1217
1244
|
};
|
|
1218
1245
|
|
|
1219
1246
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1248,13 +1275,13 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1248
1275
|
var $$1 = _export;
|
|
1249
1276
|
var call$1 = functionCall;
|
|
1250
1277
|
var FunctionName = functionName;
|
|
1251
|
-
var isCallable = isCallable$
|
|
1278
|
+
var isCallable = isCallable$e;
|
|
1252
1279
|
var createIteratorConstructor = createIteratorConstructor$1;
|
|
1253
1280
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1254
1281
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1255
1282
|
var setToStringTag = setToStringTag$2;
|
|
1256
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
1257
|
-
var
|
|
1283
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1284
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
1258
1285
|
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
|
1259
1286
|
var Iterators$1 = iterators;
|
|
1260
1287
|
var IteratorsCore = iteratorsCore;
|
|
@@ -1301,7 +1328,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1301
1328
|
if (setPrototypeOf) {
|
|
1302
1329
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1303
1330
|
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1304
|
-
|
|
1331
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1305
1332
|
}
|
|
1306
1333
|
}
|
|
1307
1334
|
// Set @@toStringTag to native iterators
|
|
@@ -1328,14 +1355,14 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1328
1355
|
};
|
|
1329
1356
|
if (FORCED) for (KEY in methods) {
|
|
1330
1357
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1331
|
-
|
|
1358
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1332
1359
|
}
|
|
1333
1360
|
} else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1334
1361
|
}
|
|
1335
1362
|
|
|
1336
1363
|
// define iterator
|
|
1337
1364
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1338
|
-
|
|
1365
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1339
1366
|
}
|
|
1340
1367
|
Iterators$1[NAME] = defaultIterator;
|
|
1341
1368
|
|
|
@@ -1446,11 +1473,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1446
1473
|
|
|
1447
1474
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1448
1475
|
|
|
1449
|
-
var global$1 = global$
|
|
1476
|
+
var global$1 = global$b;
|
|
1450
1477
|
var DOMIterables = domIterables;
|
|
1451
1478
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1452
1479
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1453
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1480
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1454
1481
|
var wellKnownSymbol = wellKnownSymbol$6;
|
|
1455
1482
|
|
|
1456
1483
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
@@ -1488,7 +1515,7 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
|
1488
1515
|
var DESCRIPTORS = descriptors;
|
|
1489
1516
|
var uncurryThis = functionUncurryThis;
|
|
1490
1517
|
var call = functionCall;
|
|
1491
|
-
var fails = fails$
|
|
1518
|
+
var fails = fails$b;
|
|
1492
1519
|
var objectKeys = objectKeys$2;
|
|
1493
1520
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1494
1521
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1548,7 +1575,7 @@ var assign = objectAssign;
|
|
|
1548
1575
|
// `Object.assign` method
|
|
1549
1576
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1550
1577
|
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
|
1551
|
-
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
1578
|
+
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1552
1579
|
assign: assign
|
|
1553
1580
|
});
|
|
1554
1581
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "./index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@trackunit/react-core-contexts-api": "0.0.
|
|
11
|
+
"@trackunit/react-core-contexts-api": "0.0.49",
|
|
12
12
|
"launchdarkly-react-client-sdk": "^2.25.1",
|
|
13
13
|
"react": "17.0.1",
|
|
14
|
-
"@trackunit/iris-app-runtime-core": "0.0.
|
|
14
|
+
"@trackunit/iris-app-runtime-core": "0.0.53"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {}
|
|
17
17
|
}
|