@sinco/react 1.0.2-rc.2 → 1.0.2-rc.3
Sign up to get free protection for your applications and to get access to all the features.
package/index.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import 'react';
|
2
|
+
|
1
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
2
4
|
|
3
5
|
var check = function (it) {
|
@@ -5,7 +7,7 @@ var check = function (it) {
|
|
5
7
|
};
|
6
8
|
|
7
9
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
8
|
-
var global$
|
10
|
+
var global$c =
|
9
11
|
// eslint-disable-next-line es/no-global-this -- safe
|
10
12
|
check(typeof globalThis == 'object' && globalThis) ||
|
11
13
|
check(typeof window == 'object' && window) ||
|
@@ -17,7 +19,7 @@ var global$b =
|
|
17
19
|
|
18
20
|
var objectGetOwnPropertyDescriptor = {};
|
19
21
|
|
20
|
-
var fails$
|
22
|
+
var fails$b = function (exec) {
|
21
23
|
try {
|
22
24
|
return !!exec();
|
23
25
|
} catch (error) {
|
@@ -25,17 +27,17 @@ var fails$9 = function (exec) {
|
|
25
27
|
}
|
26
28
|
};
|
27
29
|
|
28
|
-
var fails$
|
30
|
+
var fails$a = fails$b;
|
29
31
|
|
30
32
|
// Detect IE8's incomplete defineProperty implementation
|
31
|
-
var descriptors = !fails$
|
33
|
+
var descriptors = !fails$a(function () {
|
32
34
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
33
35
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
34
36
|
});
|
35
37
|
|
36
|
-
var fails$
|
38
|
+
var fails$9 = fails$b;
|
37
39
|
|
38
|
-
var functionBindNative = !fails$
|
40
|
+
var functionBindNative = !fails$9(function () {
|
39
41
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
40
42
|
var test = (function () { /* empty */ }).bind();
|
41
43
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
@@ -44,10 +46,10 @@ var functionBindNative = !fails$7(function () {
|
|
44
46
|
|
45
47
|
var NATIVE_BIND$1 = functionBindNative;
|
46
48
|
|
47
|
-
var call$
|
49
|
+
var call$6 = Function.prototype.call;
|
48
50
|
|
49
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
50
|
-
return call$
|
51
|
+
var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
|
52
|
+
return call$6.apply(call$6, arguments);
|
51
53
|
};
|
52
54
|
|
53
55
|
var objectPropertyIsEnumerable = {};
|
@@ -66,7 +68,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
66
68
|
return !!descriptor && descriptor.enumerable;
|
67
69
|
} : $propertyIsEnumerable;
|
68
70
|
|
69
|
-
var createPropertyDescriptor$
|
71
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
70
72
|
return {
|
71
73
|
enumerable: !(bitmap & 1),
|
72
74
|
configurable: !(bitmap & 2),
|
@@ -78,39 +80,39 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
78
80
|
var NATIVE_BIND = functionBindNative;
|
79
81
|
|
80
82
|
var FunctionPrototype$1 = Function.prototype;
|
81
|
-
var call$
|
82
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$
|
83
|
+
var call$5 = FunctionPrototype$1.call;
|
84
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
|
83
85
|
|
84
86
|
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
85
87
|
return function () {
|
86
|
-
return call$
|
88
|
+
return call$5.apply(fn, arguments);
|
87
89
|
};
|
88
90
|
};
|
89
91
|
|
90
|
-
var uncurryThis$
|
92
|
+
var uncurryThis$a = functionUncurryThis;
|
91
93
|
|
92
|
-
var toString$1 = uncurryThis$
|
93
|
-
var stringSlice$1 = uncurryThis$
|
94
|
+
var toString$1 = uncurryThis$a({}.toString);
|
95
|
+
var stringSlice$1 = uncurryThis$a(''.slice);
|
94
96
|
|
95
97
|
var classofRaw = function (it) {
|
96
98
|
return stringSlice$1(toString$1(it), 8, -1);
|
97
99
|
};
|
98
100
|
|
99
|
-
var uncurryThis$
|
100
|
-
var fails$
|
101
|
+
var uncurryThis$9 = functionUncurryThis;
|
102
|
+
var fails$8 = fails$b;
|
101
103
|
var classof = classofRaw;
|
102
104
|
|
103
|
-
var $Object$
|
104
|
-
var split = uncurryThis$
|
105
|
+
var $Object$3 = Object;
|
106
|
+
var split = uncurryThis$9(''.split);
|
105
107
|
|
106
108
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
107
|
-
var indexedObject = fails$
|
109
|
+
var indexedObject = fails$8(function () {
|
108
110
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
109
111
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
110
|
-
return !$Object$
|
112
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
111
113
|
}) ? function (it) {
|
112
|
-
return classof(it) == 'String' ? split(it, '') : $Object$
|
113
|
-
} : $Object$
|
114
|
+
return classof(it) == 'String' ? split(it, '') : $Object$3(it);
|
115
|
+
} : $Object$3;
|
114
116
|
|
115
117
|
// we can't use just `it == null` since of `document.all` special case
|
116
118
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
@@ -120,12 +122,12 @@ var isNullOrUndefined$2 = function (it) {
|
|
120
122
|
|
121
123
|
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
122
124
|
|
123
|
-
var $TypeError$
|
125
|
+
var $TypeError$6 = TypeError;
|
124
126
|
|
125
127
|
// `RequireObjectCoercible` abstract operation
|
126
128
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
127
129
|
var requireObjectCoercible$2 = function (it) {
|
128
|
-
if (isNullOrUndefined$1(it)) throw $TypeError$
|
130
|
+
if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
|
129
131
|
return it;
|
130
132
|
};
|
131
133
|
|
@@ -133,7 +135,7 @@ var requireObjectCoercible$2 = function (it) {
|
|
133
135
|
var IndexedObject$1 = indexedObject;
|
134
136
|
var requireObjectCoercible$1 = requireObjectCoercible$2;
|
135
137
|
|
136
|
-
var toIndexedObject$
|
138
|
+
var toIndexedObject$5 = function (it) {
|
137
139
|
return IndexedObject$1(requireObjectCoercible$1(it));
|
138
140
|
};
|
139
141
|
|
@@ -154,45 +156,45 @@ var documentAll$1 = $documentAll$1.all;
|
|
154
156
|
|
155
157
|
// `IsCallable` abstract operation
|
156
158
|
// https://tc39.es/ecma262/#sec-iscallable
|
157
|
-
var isCallable$
|
159
|
+
var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
158
160
|
return typeof argument == 'function' || argument === documentAll$1;
|
159
161
|
} : function (argument) {
|
160
162
|
return typeof argument == 'function';
|
161
163
|
};
|
162
164
|
|
163
|
-
var isCallable$
|
165
|
+
var isCallable$d = isCallable$e;
|
164
166
|
var $documentAll = documentAll_1;
|
165
167
|
|
166
168
|
var documentAll = $documentAll.all;
|
167
169
|
|
168
|
-
var isObject$
|
169
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
170
|
+
var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
|
171
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
|
170
172
|
} : function (it) {
|
171
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
173
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
172
174
|
};
|
173
175
|
|
174
|
-
var global$
|
175
|
-
var isCallable$
|
176
|
+
var global$b = global$c;
|
177
|
+
var isCallable$c = isCallable$e;
|
176
178
|
|
177
179
|
var aFunction = function (argument) {
|
178
|
-
return isCallable$
|
180
|
+
return isCallable$c(argument) ? argument : undefined;
|
179
181
|
};
|
180
182
|
|
181
|
-
var getBuiltIn$
|
182
|
-
return arguments.length < 2 ? aFunction(global$
|
183
|
+
var getBuiltIn$3 = function (namespace, method) {
|
184
|
+
return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
|
183
185
|
};
|
184
186
|
|
185
|
-
var uncurryThis$
|
187
|
+
var uncurryThis$8 = functionUncurryThis;
|
186
188
|
|
187
|
-
var objectIsPrototypeOf = uncurryThis$
|
189
|
+
var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
|
188
190
|
|
189
191
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
190
192
|
|
191
|
-
var global$
|
193
|
+
var global$a = global$c;
|
192
194
|
var userAgent = engineUserAgent;
|
193
195
|
|
194
|
-
var process$1 = global$
|
195
|
-
var Deno = global$
|
196
|
+
var process$1 = global$a.process;
|
197
|
+
var Deno = global$a.Deno;
|
196
198
|
var versions = process$1 && process$1.versions || Deno && Deno.version;
|
197
199
|
var v8 = versions && versions.v8;
|
198
200
|
var match, version;
|
@@ -219,19 +221,19 @@ var engineV8Version = version;
|
|
219
221
|
/* eslint-disable es/no-symbol -- required for testing */
|
220
222
|
|
221
223
|
var V8_VERSION = engineV8Version;
|
222
|
-
var fails$
|
223
|
-
var global$
|
224
|
+
var fails$7 = fails$b;
|
225
|
+
var global$9 = global$c;
|
224
226
|
|
225
|
-
var $String$
|
227
|
+
var $String$4 = global$9.String;
|
226
228
|
|
227
229
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
228
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
230
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
|
229
231
|
var symbol = Symbol();
|
230
232
|
// Chrome 38 Symbol has incorrect toString conversion
|
231
233
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
232
234
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
233
235
|
// of course, fail.
|
234
|
-
return !$String$
|
236
|
+
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
|
235
237
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
236
238
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
237
239
|
});
|
@@ -244,87 +246,87 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
244
246
|
&& !Symbol.sham
|
245
247
|
&& typeof Symbol.iterator == 'symbol';
|
246
248
|
|
247
|
-
var getBuiltIn$
|
248
|
-
var isCallable$
|
249
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
250
|
+
var isCallable$b = isCallable$e;
|
249
251
|
var isPrototypeOf = objectIsPrototypeOf;
|
250
252
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
251
253
|
|
252
|
-
var $Object$
|
254
|
+
var $Object$2 = Object;
|
253
255
|
|
254
256
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
255
257
|
return typeof it == 'symbol';
|
256
258
|
} : function (it) {
|
257
|
-
var $Symbol = getBuiltIn$
|
258
|
-
return isCallable$
|
259
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
260
|
+
return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
259
261
|
};
|
260
262
|
|
261
|
-
var $String$
|
263
|
+
var $String$3 = String;
|
262
264
|
|
263
265
|
var tryToString$1 = function (argument) {
|
264
266
|
try {
|
265
|
-
return $String$
|
267
|
+
return $String$3(argument);
|
266
268
|
} catch (error) {
|
267
269
|
return 'Object';
|
268
270
|
}
|
269
271
|
};
|
270
272
|
|
271
|
-
var isCallable$
|
273
|
+
var isCallable$a = isCallable$e;
|
272
274
|
var tryToString = tryToString$1;
|
273
275
|
|
274
|
-
var $TypeError$
|
276
|
+
var $TypeError$5 = TypeError;
|
275
277
|
|
276
278
|
// `Assert: IsCallable(argument) is true`
|
277
|
-
var aCallable$
|
278
|
-
if (isCallable$
|
279
|
-
throw $TypeError$
|
279
|
+
var aCallable$2 = function (argument) {
|
280
|
+
if (isCallable$a(argument)) return argument;
|
281
|
+
throw $TypeError$5(tryToString(argument) + ' is not a function');
|
280
282
|
};
|
281
283
|
|
282
|
-
var aCallable = aCallable$
|
284
|
+
var aCallable$1 = aCallable$2;
|
283
285
|
var isNullOrUndefined = isNullOrUndefined$2;
|
284
286
|
|
285
287
|
// `GetMethod` abstract operation
|
286
288
|
// https://tc39.es/ecma262/#sec-getmethod
|
287
289
|
var getMethod$1 = function (V, P) {
|
288
290
|
var func = V[P];
|
289
|
-
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
291
|
+
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
290
292
|
};
|
291
293
|
|
292
|
-
var call$
|
293
|
-
var isCallable$
|
294
|
-
var isObject$
|
294
|
+
var call$4 = functionCall;
|
295
|
+
var isCallable$9 = isCallable$e;
|
296
|
+
var isObject$5 = isObject$6;
|
295
297
|
|
296
|
-
var $TypeError$
|
298
|
+
var $TypeError$4 = TypeError;
|
297
299
|
|
298
300
|
// `OrdinaryToPrimitive` abstract operation
|
299
301
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
300
302
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
301
303
|
var fn, val;
|
302
|
-
if (pref === 'string' && isCallable$
|
303
|
-
if (isCallable$
|
304
|
-
if (pref !== 'string' && isCallable$
|
305
|
-
throw $TypeError$
|
304
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
305
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
|
306
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
|
307
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
306
308
|
};
|
307
309
|
|
308
310
|
var shared$3 = {exports: {}};
|
309
311
|
|
310
|
-
var global$
|
312
|
+
var global$8 = global$c;
|
311
313
|
|
312
314
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
313
|
-
var defineProperty$
|
315
|
+
var defineProperty$5 = Object.defineProperty;
|
314
316
|
|
315
317
|
var defineGlobalProperty$3 = function (key, value) {
|
316
318
|
try {
|
317
|
-
defineProperty$
|
319
|
+
defineProperty$5(global$8, key, { value: value, configurable: true, writable: true });
|
318
320
|
} catch (error) {
|
319
|
-
global$
|
321
|
+
global$8[key] = value;
|
320
322
|
} return value;
|
321
323
|
};
|
322
324
|
|
323
|
-
var global$
|
325
|
+
var global$7 = global$c;
|
324
326
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
325
327
|
|
326
328
|
var SHARED = '__core-js_shared__';
|
327
|
-
var store$3 = global$
|
329
|
+
var store$3 = global$7[SHARED] || defineGlobalProperty$2(SHARED, {});
|
328
330
|
|
329
331
|
var sharedStore = store$3;
|
330
332
|
|
@@ -333,85 +335,85 @@ var store$2 = sharedStore;
|
|
333
335
|
(shared$3.exports = function (key, value) {
|
334
336
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
335
337
|
})('versions', []).push({
|
336
|
-
version: '3.31.
|
338
|
+
version: '3.31.1',
|
337
339
|
mode: 'global',
|
338
340
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
339
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.31.
|
341
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE',
|
340
342
|
source: 'https://github.com/zloirock/core-js'
|
341
343
|
});
|
342
344
|
|
343
345
|
var requireObjectCoercible = requireObjectCoercible$2;
|
344
346
|
|
345
|
-
var $Object = Object;
|
347
|
+
var $Object$1 = Object;
|
346
348
|
|
347
349
|
// `ToObject` abstract operation
|
348
350
|
// https://tc39.es/ecma262/#sec-toobject
|
349
|
-
var toObject$
|
350
|
-
return $Object(requireObjectCoercible(argument));
|
351
|
+
var toObject$4 = function (argument) {
|
352
|
+
return $Object$1(requireObjectCoercible(argument));
|
351
353
|
};
|
352
354
|
|
353
|
-
var uncurryThis$
|
354
|
-
var toObject$
|
355
|
+
var uncurryThis$7 = functionUncurryThis;
|
356
|
+
var toObject$3 = toObject$4;
|
355
357
|
|
356
|
-
var hasOwnProperty$1 = uncurryThis$
|
358
|
+
var hasOwnProperty$1 = uncurryThis$7({}.hasOwnProperty);
|
357
359
|
|
358
360
|
// `HasOwnProperty` abstract operation
|
359
361
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
360
362
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
361
363
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
362
|
-
return hasOwnProperty$1(toObject$
|
364
|
+
return hasOwnProperty$1(toObject$3(it), key);
|
363
365
|
};
|
364
366
|
|
365
|
-
var uncurryThis$
|
367
|
+
var uncurryThis$6 = functionUncurryThis;
|
366
368
|
|
367
369
|
var id = 0;
|
368
370
|
var postfix = Math.random();
|
369
|
-
var toString = uncurryThis$
|
371
|
+
var toString = uncurryThis$6(1.0.toString);
|
370
372
|
|
371
373
|
var uid$2 = function (key) {
|
372
374
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
373
375
|
};
|
374
376
|
|
375
|
-
var global$
|
377
|
+
var global$6 = global$c;
|
376
378
|
var shared$2 = shared$3.exports;
|
377
|
-
var hasOwn$
|
379
|
+
var hasOwn$8 = hasOwnProperty_1;
|
378
380
|
var uid$1 = uid$2;
|
379
381
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
380
382
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
381
383
|
|
382
|
-
var Symbol$1 = global$
|
384
|
+
var Symbol$1 = global$6.Symbol;
|
383
385
|
var WellKnownSymbolsStore = shared$2('wks');
|
384
386
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
385
387
|
|
386
|
-
var wellKnownSymbol$
|
387
|
-
if (!hasOwn$
|
388
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
388
|
+
var wellKnownSymbol$6 = function (name) {
|
389
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
390
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
|
389
391
|
? Symbol$1[name]
|
390
392
|
: createWellKnownSymbol('Symbol.' + name);
|
391
393
|
} return WellKnownSymbolsStore[name];
|
392
394
|
};
|
393
395
|
|
394
|
-
var call$
|
395
|
-
var isObject$
|
396
|
+
var call$3 = functionCall;
|
397
|
+
var isObject$4 = isObject$6;
|
396
398
|
var isSymbol$1 = isSymbol$2;
|
397
399
|
var getMethod = getMethod$1;
|
398
400
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
399
|
-
var wellKnownSymbol = wellKnownSymbol$
|
401
|
+
var wellKnownSymbol$5 = wellKnownSymbol$6;
|
400
402
|
|
401
|
-
var $TypeError$
|
402
|
-
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
403
|
+
var $TypeError$3 = TypeError;
|
404
|
+
var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
403
405
|
|
404
406
|
// `ToPrimitive` abstract operation
|
405
407
|
// https://tc39.es/ecma262/#sec-toprimitive
|
406
408
|
var toPrimitive$1 = function (input, pref) {
|
407
|
-
if (!isObject$
|
409
|
+
if (!isObject$4(input) || isSymbol$1(input)) return input;
|
408
410
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
409
411
|
var result;
|
410
412
|
if (exoticToPrim) {
|
411
413
|
if (pref === undefined) pref = 'default';
|
412
|
-
result = call$
|
413
|
-
if (!isObject$
|
414
|
-
throw $TypeError$
|
414
|
+
result = call$3(exoticToPrim, input, pref);
|
415
|
+
if (!isObject$4(result) || isSymbol$1(result)) return result;
|
416
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
415
417
|
}
|
416
418
|
if (pref === undefined) pref = 'number';
|
417
419
|
return ordinaryToPrimitive(input, pref);
|
@@ -427,36 +429,36 @@ var toPropertyKey$2 = function (argument) {
|
|
427
429
|
return isSymbol(key) ? key : key + '';
|
428
430
|
};
|
429
431
|
|
430
|
-
var global$
|
431
|
-
var isObject$
|
432
|
+
var global$5 = global$c;
|
433
|
+
var isObject$3 = isObject$6;
|
432
434
|
|
433
|
-
var document$1 = global$
|
435
|
+
var document$1 = global$5.document;
|
434
436
|
// typeof document.createElement is 'object' in old IE
|
435
|
-
var EXISTS$1 = isObject$
|
437
|
+
var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
|
436
438
|
|
437
|
-
var documentCreateElement = function (it) {
|
439
|
+
var documentCreateElement$2 = function (it) {
|
438
440
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
439
441
|
};
|
440
442
|
|
441
|
-
var DESCRIPTORS$
|
442
|
-
var fails$
|
443
|
-
var createElement = documentCreateElement;
|
443
|
+
var DESCRIPTORS$9 = descriptors;
|
444
|
+
var fails$6 = fails$b;
|
445
|
+
var createElement = documentCreateElement$2;
|
444
446
|
|
445
447
|
// Thanks to IE8 for its funny defineProperty
|
446
|
-
var ie8DomDefine = !DESCRIPTORS$
|
448
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
|
447
449
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
448
450
|
return Object.defineProperty(createElement('div'), 'a', {
|
449
451
|
get: function () { return 7; }
|
450
452
|
}).a != 7;
|
451
453
|
});
|
452
454
|
|
453
|
-
var DESCRIPTORS$
|
454
|
-
var call$
|
455
|
+
var DESCRIPTORS$8 = descriptors;
|
456
|
+
var call$2 = functionCall;
|
455
457
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
456
|
-
var createPropertyDescriptor$
|
457
|
-
var toIndexedObject$
|
458
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
459
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
458
460
|
var toPropertyKey$1 = toPropertyKey$2;
|
459
|
-
var hasOwn$
|
461
|
+
var hasOwn$7 = hasOwnProperty_1;
|
460
462
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
461
463
|
|
462
464
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
@@ -464,23 +466,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
464
466
|
|
465
467
|
// `Object.getOwnPropertyDescriptor` method
|
466
468
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
467
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
468
|
-
O = toIndexedObject$
|
469
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
470
|
+
O = toIndexedObject$4(O);
|
469
471
|
P = toPropertyKey$1(P);
|
470
472
|
if (IE8_DOM_DEFINE$1) try {
|
471
473
|
return $getOwnPropertyDescriptor$1(O, P);
|
472
474
|
} catch (error) { /* empty */ }
|
473
|
-
if (hasOwn$
|
475
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
474
476
|
};
|
475
477
|
|
476
478
|
var objectDefineProperty = {};
|
477
479
|
|
478
|
-
var DESCRIPTORS$
|
479
|
-
var fails$
|
480
|
+
var DESCRIPTORS$7 = descriptors;
|
481
|
+
var fails$5 = fails$b;
|
480
482
|
|
481
483
|
// V8 ~ Chrome 36-
|
482
484
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
483
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
485
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
|
484
486
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
485
487
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
486
488
|
value: 42,
|
@@ -488,24 +490,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
|
|
488
490
|
}).prototype != 42;
|
489
491
|
});
|
490
492
|
|
491
|
-
var isObject$
|
493
|
+
var isObject$2 = isObject$6;
|
492
494
|
|
493
|
-
var $String$
|
494
|
-
var $TypeError$
|
495
|
+
var $String$2 = String;
|
496
|
+
var $TypeError$2 = TypeError;
|
495
497
|
|
496
498
|
// `Assert: Type(argument) is Object`
|
497
|
-
var anObject$
|
498
|
-
if (isObject$
|
499
|
-
throw $TypeError$
|
499
|
+
var anObject$5 = function (argument) {
|
500
|
+
if (isObject$2(argument)) return argument;
|
501
|
+
throw $TypeError$2($String$2(argument) + ' is not an object');
|
500
502
|
};
|
501
503
|
|
502
|
-
var DESCRIPTORS$
|
504
|
+
var DESCRIPTORS$6 = descriptors;
|
503
505
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
504
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
505
|
-
var anObject$
|
506
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
507
|
+
var anObject$4 = anObject$5;
|
506
508
|
var toPropertyKey = toPropertyKey$2;
|
507
509
|
|
508
|
-
var $TypeError = TypeError;
|
510
|
+
var $TypeError$1 = TypeError;
|
509
511
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
510
512
|
var $defineProperty = Object.defineProperty;
|
511
513
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
@@ -516,10 +518,10 @@ var WRITABLE = 'writable';
|
|
516
518
|
|
517
519
|
// `Object.defineProperty` method
|
518
520
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
519
|
-
objectDefineProperty.f = DESCRIPTORS$
|
520
|
-
anObject$
|
521
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
522
|
+
anObject$4(O);
|
521
523
|
P = toPropertyKey(P);
|
522
|
-
anObject$
|
524
|
+
anObject$4(Attributes);
|
523
525
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
524
526
|
var current = $getOwnPropertyDescriptor(O, P);
|
525
527
|
if (current && current[WRITABLE]) {
|
@@ -532,23 +534,23 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
532
534
|
}
|
533
535
|
} return $defineProperty(O, P, Attributes);
|
534
536
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
535
|
-
anObject$
|
537
|
+
anObject$4(O);
|
536
538
|
P = toPropertyKey(P);
|
537
|
-
anObject$
|
539
|
+
anObject$4(Attributes);
|
538
540
|
if (IE8_DOM_DEFINE) try {
|
539
541
|
return $defineProperty(O, P, Attributes);
|
540
542
|
} catch (error) { /* empty */ }
|
541
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
|
543
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
|
542
544
|
if ('value' in Attributes) O[P] = Attributes.value;
|
543
545
|
return O;
|
544
546
|
};
|
545
547
|
|
546
|
-
var DESCRIPTORS$
|
547
|
-
var definePropertyModule$
|
548
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
548
|
+
var DESCRIPTORS$5 = descriptors;
|
549
|
+
var definePropertyModule$3 = objectDefineProperty;
|
550
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
549
551
|
|
550
|
-
var createNonEnumerableProperty$
|
551
|
-
return definePropertyModule$
|
552
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
553
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
552
554
|
} : function (object, key, value) {
|
553
555
|
object[key] = value;
|
554
556
|
return object;
|
@@ -556,17 +558,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value
|
|
556
558
|
|
557
559
|
var makeBuiltIn$2 = {exports: {}};
|
558
560
|
|
559
|
-
var DESCRIPTORS$
|
560
|
-
var hasOwn$
|
561
|
+
var DESCRIPTORS$4 = descriptors;
|
562
|
+
var hasOwn$6 = hasOwnProperty_1;
|
561
563
|
|
562
564
|
var FunctionPrototype = Function.prototype;
|
563
565
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
564
|
-
var getDescriptor = DESCRIPTORS$
|
566
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
565
567
|
|
566
|
-
var EXISTS = hasOwn$
|
568
|
+
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
567
569
|
// additional protection from minified / mangled / dropped function names
|
568
570
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
569
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
571
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
570
572
|
|
571
573
|
var functionName = {
|
572
574
|
EXISTS: EXISTS,
|
@@ -574,14 +576,14 @@ var functionName = {
|
|
574
576
|
CONFIGURABLE: CONFIGURABLE
|
575
577
|
};
|
576
578
|
|
577
|
-
var uncurryThis$
|
578
|
-
var isCallable$
|
579
|
+
var uncurryThis$5 = functionUncurryThis;
|
580
|
+
var isCallable$8 = isCallable$e;
|
579
581
|
var store$1 = sharedStore;
|
580
582
|
|
581
|
-
var functionToString = uncurryThis$
|
583
|
+
var functionToString = uncurryThis$5(Function.toString);
|
582
584
|
|
583
585
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
584
|
-
if (!isCallable$
|
586
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
585
587
|
store$1.inspectSource = function (it) {
|
586
588
|
return functionToString(it);
|
587
589
|
};
|
@@ -589,36 +591,36 @@ if (!isCallable$4(store$1.inspectSource)) {
|
|
589
591
|
|
590
592
|
var inspectSource$1 = store$1.inspectSource;
|
591
593
|
|
592
|
-
var global$
|
593
|
-
var isCallable$
|
594
|
+
var global$4 = global$c;
|
595
|
+
var isCallable$7 = isCallable$e;
|
594
596
|
|
595
|
-
var WeakMap$1 = global$
|
597
|
+
var WeakMap$1 = global$4.WeakMap;
|
596
598
|
|
597
|
-
var weakMapBasicDetection = isCallable$
|
599
|
+
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
598
600
|
|
599
601
|
var shared$1 = shared$3.exports;
|
600
602
|
var uid = uid$2;
|
601
603
|
|
602
604
|
var keys = shared$1('keys');
|
603
605
|
|
604
|
-
var sharedKey$
|
606
|
+
var sharedKey$3 = function (key) {
|
605
607
|
return keys[key] || (keys[key] = uid(key));
|
606
608
|
};
|
607
609
|
|
608
|
-
var hiddenKeys$
|
610
|
+
var hiddenKeys$4 = {};
|
609
611
|
|
610
612
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
611
|
-
var global$
|
612
|
-
var isObject = isObject$
|
613
|
-
var createNonEnumerableProperty$
|
614
|
-
var hasOwn$
|
613
|
+
var global$3 = global$c;
|
614
|
+
var isObject$1 = isObject$6;
|
615
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
616
|
+
var hasOwn$5 = hasOwnProperty_1;
|
615
617
|
var shared = sharedStore;
|
616
|
-
var sharedKey = sharedKey$
|
617
|
-
var hiddenKeys$
|
618
|
+
var sharedKey$2 = sharedKey$3;
|
619
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
618
620
|
|
619
621
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
620
|
-
var TypeError$1 = global$
|
621
|
-
var WeakMap = global$
|
622
|
+
var TypeError$1 = global$3.TypeError;
|
623
|
+
var WeakMap = global$3.WeakMap;
|
622
624
|
var set, get, has$3;
|
623
625
|
|
624
626
|
var enforce = function (it) {
|
@@ -628,7 +630,7 @@ var enforce = function (it) {
|
|
628
630
|
var getterFor = function (TYPE) {
|
629
631
|
return function (it) {
|
630
632
|
var state;
|
631
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
633
|
+
if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
|
632
634
|
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
633
635
|
} return state;
|
634
636
|
};
|
@@ -654,19 +656,19 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
654
656
|
return store.has(it);
|
655
657
|
};
|
656
658
|
} else {
|
657
|
-
var STATE = sharedKey('state');
|
658
|
-
hiddenKeys$
|
659
|
+
var STATE = sharedKey$2('state');
|
660
|
+
hiddenKeys$3[STATE] = true;
|
659
661
|
set = function (it, metadata) {
|
660
|
-
if (hasOwn$
|
662
|
+
if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
661
663
|
metadata.facade = it;
|
662
|
-
createNonEnumerableProperty$
|
664
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
663
665
|
return metadata;
|
664
666
|
};
|
665
667
|
get = function (it) {
|
666
|
-
return hasOwn$
|
668
|
+
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
667
669
|
};
|
668
670
|
has$3 = function (it) {
|
669
|
-
return hasOwn$
|
671
|
+
return hasOwn$5(it, STATE);
|
670
672
|
};
|
671
673
|
}
|
672
674
|
|
@@ -678,51 +680,51 @@ var internalState = {
|
|
678
680
|
getterFor: getterFor
|
679
681
|
};
|
680
682
|
|
681
|
-
var uncurryThis$
|
682
|
-
var fails$
|
683
|
-
var isCallable$
|
684
|
-
var hasOwn$
|
685
|
-
var DESCRIPTORS$
|
686
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
683
|
+
var uncurryThis$4 = functionUncurryThis;
|
684
|
+
var fails$4 = fails$b;
|
685
|
+
var isCallable$6 = isCallable$e;
|
686
|
+
var hasOwn$4 = hasOwnProperty_1;
|
687
|
+
var DESCRIPTORS$3 = descriptors;
|
688
|
+
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
687
689
|
var inspectSource = inspectSource$1;
|
688
|
-
var InternalStateModule = internalState;
|
690
|
+
var InternalStateModule$1 = internalState;
|
689
691
|
|
690
|
-
var enforceInternalState = InternalStateModule.enforce;
|
691
|
-
var getInternalState = InternalStateModule.get;
|
692
|
-
var $String = String;
|
692
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
693
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
694
|
+
var $String$1 = String;
|
693
695
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
694
|
-
var defineProperty$
|
695
|
-
var stringSlice = uncurryThis$
|
696
|
-
var replace = uncurryThis$
|
697
|
-
var join = uncurryThis$
|
696
|
+
var defineProperty$4 = Object.defineProperty;
|
697
|
+
var stringSlice = uncurryThis$4(''.slice);
|
698
|
+
var replace = uncurryThis$4(''.replace);
|
699
|
+
var join = uncurryThis$4([].join);
|
698
700
|
|
699
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
700
|
-
return defineProperty$
|
701
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$4(function () {
|
702
|
+
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
701
703
|
});
|
702
704
|
|
703
705
|
var TEMPLATE = String(String).split('String');
|
704
706
|
|
705
707
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
706
|
-
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
707
|
-
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
708
|
+
if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
|
709
|
+
name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
708
710
|
}
|
709
711
|
if (options && options.getter) name = 'get ' + name;
|
710
712
|
if (options && options.setter) name = 'set ' + name;
|
711
|
-
if (!hasOwn$
|
712
|
-
if (DESCRIPTORS$
|
713
|
+
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
714
|
+
if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
|
713
715
|
else value.name = name;
|
714
716
|
}
|
715
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
716
|
-
defineProperty$
|
717
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
718
|
+
defineProperty$4(value, 'length', { value: options.arity });
|
717
719
|
}
|
718
720
|
try {
|
719
|
-
if (options && hasOwn$
|
720
|
-
if (DESCRIPTORS$
|
721
|
+
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
722
|
+
if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
|
721
723
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
722
724
|
} else if (value.prototype) value.prototype = undefined;
|
723
725
|
} catch (error) { /* empty */ }
|
724
726
|
var state = enforceInternalState(value);
|
725
|
-
if (!hasOwn$
|
727
|
+
if (!hasOwn$4(state, 'source')) {
|
726
728
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
727
729
|
} return value;
|
728
730
|
};
|
@@ -730,19 +732,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
730
732
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
731
733
|
// eslint-disable-next-line no-extend-native -- required
|
732
734
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
733
|
-
return isCallable$
|
735
|
+
return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
|
734
736
|
}, 'toString');
|
735
737
|
|
736
|
-
var isCallable$
|
737
|
-
var definePropertyModule$
|
738
|
+
var isCallable$5 = isCallable$e;
|
739
|
+
var definePropertyModule$2 = objectDefineProperty;
|
738
740
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
739
741
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
740
742
|
|
741
|
-
var defineBuiltIn$
|
743
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
742
744
|
if (!options) options = {};
|
743
745
|
var simple = options.enumerable;
|
744
746
|
var name = options.name !== undefined ? options.name : key;
|
745
|
-
if (isCallable$
|
747
|
+
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
746
748
|
if (options.global) {
|
747
749
|
if (simple) O[key] = value;
|
748
750
|
else defineGlobalProperty$1(key, value);
|
@@ -752,7 +754,7 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
752
754
|
else if (O[key]) simple = true;
|
753
755
|
} catch (error) { /* empty */ }
|
754
756
|
if (simple) O[key] = value;
|
755
|
-
else definePropertyModule$
|
757
|
+
else definePropertyModule$2.f(O, key, {
|
756
758
|
value: value,
|
757
759
|
enumerable: false,
|
758
760
|
configurable: !options.nonConfigurable,
|
@@ -815,14 +817,14 @@ var lengthOfArrayLike$1 = function (obj) {
|
|
815
817
|
return toLength(obj.length);
|
816
818
|
};
|
817
819
|
|
818
|
-
var toIndexedObject$
|
820
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
819
821
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
820
822
|
var lengthOfArrayLike = lengthOfArrayLike$1;
|
821
823
|
|
822
824
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
823
825
|
var createMethod = function (IS_INCLUDES) {
|
824
826
|
return function ($this, el, fromIndex) {
|
825
|
-
var O = toIndexedObject$
|
827
|
+
var O = toIndexedObject$3($this);
|
826
828
|
var length = lengthOfArrayLike(O);
|
827
829
|
var index = toAbsoluteIndex(fromIndex, length);
|
828
830
|
var value;
|
@@ -848,29 +850,29 @@ var arrayIncludes = {
|
|
848
850
|
indexOf: createMethod(false)
|
849
851
|
};
|
850
852
|
|
851
|
-
var uncurryThis$
|
852
|
-
var hasOwn$
|
853
|
-
var toIndexedObject = toIndexedObject$
|
853
|
+
var uncurryThis$3 = functionUncurryThis;
|
854
|
+
var hasOwn$3 = hasOwnProperty_1;
|
855
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
854
856
|
var indexOf = arrayIncludes.indexOf;
|
855
|
-
var hiddenKeys$
|
857
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
856
858
|
|
857
|
-
var push = uncurryThis$
|
859
|
+
var push = uncurryThis$3([].push);
|
858
860
|
|
859
861
|
var objectKeysInternal = function (object, names) {
|
860
|
-
var O = toIndexedObject(object);
|
862
|
+
var O = toIndexedObject$2(object);
|
861
863
|
var i = 0;
|
862
864
|
var result = [];
|
863
865
|
var key;
|
864
|
-
for (key in O) !hasOwn$
|
866
|
+
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
|
865
867
|
// Don't enum bug & hidden keys
|
866
|
-
while (names.length > i) if (hasOwn$
|
868
|
+
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
867
869
|
~indexOf(result, key) || push(result, key);
|
868
870
|
}
|
869
871
|
return result;
|
870
872
|
};
|
871
873
|
|
872
874
|
// IE8- don't enum bug keys
|
873
|
-
var enumBugKeys$
|
875
|
+
var enumBugKeys$3 = [
|
874
876
|
'constructor',
|
875
877
|
'hasOwnProperty',
|
876
878
|
'isPrototypeOf',
|
@@ -881,15 +883,15 @@ var enumBugKeys$2 = [
|
|
881
883
|
];
|
882
884
|
|
883
885
|
var internalObjectKeys$1 = objectKeysInternal;
|
884
|
-
var enumBugKeys$
|
886
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
885
887
|
|
886
|
-
var hiddenKeys = enumBugKeys$
|
888
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
887
889
|
|
888
890
|
// `Object.getOwnPropertyNames` method
|
889
891
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
890
892
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
891
893
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
892
|
-
return internalObjectKeys$1(O, hiddenKeys);
|
894
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
893
895
|
};
|
894
896
|
|
895
897
|
var objectGetOwnPropertySymbols = {};
|
@@ -897,40 +899,40 @@ var objectGetOwnPropertySymbols = {};
|
|
897
899
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
898
900
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
899
901
|
|
900
|
-
var getBuiltIn = getBuiltIn$
|
901
|
-
var uncurryThis$
|
902
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
903
|
+
var uncurryThis$2 = functionUncurryThis;
|
902
904
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
903
905
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
904
|
-
var anObject = anObject$
|
906
|
+
var anObject$3 = anObject$5;
|
905
907
|
|
906
|
-
var concat$1 = uncurryThis$
|
908
|
+
var concat$1 = uncurryThis$2([].concat);
|
907
909
|
|
908
910
|
// all object keys, includes non-enumerable and symbols
|
909
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
910
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
911
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
912
|
+
var keys = getOwnPropertyNamesModule.f(anObject$3(it));
|
911
913
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
912
914
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
913
915
|
};
|
914
916
|
|
915
|
-
var hasOwn = hasOwnProperty_1;
|
917
|
+
var hasOwn$2 = hasOwnProperty_1;
|
916
918
|
var ownKeys = ownKeys$1;
|
917
919
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
918
|
-
var definePropertyModule = objectDefineProperty;
|
920
|
+
var definePropertyModule$1 = objectDefineProperty;
|
919
921
|
|
920
922
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
921
923
|
var keys = ownKeys(source);
|
922
|
-
var defineProperty = definePropertyModule.f;
|
924
|
+
var defineProperty = definePropertyModule$1.f;
|
923
925
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
924
926
|
for (var i = 0; i < keys.length; i++) {
|
925
927
|
var key = keys[i];
|
926
|
-
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
928
|
+
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
927
929
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
928
930
|
}
|
929
931
|
}
|
930
932
|
};
|
931
933
|
|
932
|
-
var fails$
|
933
|
-
var isCallable = isCallable$
|
934
|
+
var fails$3 = fails$b;
|
935
|
+
var isCallable$4 = isCallable$e;
|
934
936
|
|
935
937
|
var replacement = /#|\.prototype\./;
|
936
938
|
|
@@ -938,7 +940,7 @@ var isForced$1 = function (feature, detection) {
|
|
938
940
|
var value = data[normalize(feature)];
|
939
941
|
return value == POLYFILL ? true
|
940
942
|
: value == NATIVE ? false
|
941
|
-
: isCallable(detection) ? fails$
|
943
|
+
: isCallable$4(detection) ? fails$3(detection)
|
942
944
|
: !!detection;
|
943
945
|
};
|
944
946
|
|
@@ -952,10 +954,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
952
954
|
|
953
955
|
var isForced_1 = isForced$1;
|
954
956
|
|
955
|
-
var global$
|
957
|
+
var global$2 = global$c;
|
956
958
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
957
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
958
|
-
var defineBuiltIn = defineBuiltIn$
|
959
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
960
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
959
961
|
var defineGlobalProperty = defineGlobalProperty$3;
|
960
962
|
var copyConstructorProperties = copyConstructorProperties$1;
|
961
963
|
var isForced = isForced_1;
|
@@ -981,11 +983,11 @@ var _export = function (options, source) {
|
|
981
983
|
var STATIC = options.stat;
|
982
984
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
983
985
|
if (GLOBAL) {
|
984
|
-
target = global$
|
986
|
+
target = global$2;
|
985
987
|
} else if (STATIC) {
|
986
|
-
target = global$
|
988
|
+
target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
|
987
989
|
} else {
|
988
|
-
target = (global$
|
990
|
+
target = (global$2[TARGET] || {}).prototype;
|
989
991
|
}
|
990
992
|
if (target) for (key in source) {
|
991
993
|
sourceProperty = source[key];
|
@@ -1001,46 +1003,46 @@ var _export = function (options, source) {
|
|
1001
1003
|
}
|
1002
1004
|
// add a flag to not completely full polyfills
|
1003
1005
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
1004
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
1006
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
1005
1007
|
}
|
1006
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
1008
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
1007
1009
|
}
|
1008
1010
|
};
|
1009
1011
|
|
1010
1012
|
var internalObjectKeys = objectKeysInternal;
|
1011
|
-
var enumBugKeys = enumBugKeys$
|
1013
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
1012
1014
|
|
1013
1015
|
// `Object.keys` method
|
1014
1016
|
// https://tc39.es/ecma262/#sec-object.keys
|
1015
1017
|
// eslint-disable-next-line es/no-object-keys -- safe
|
1016
|
-
var objectKeys$
|
1017
|
-
return internalObjectKeys(O, enumBugKeys);
|
1018
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
1019
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
1018
1020
|
};
|
1019
1021
|
|
1020
|
-
var DESCRIPTORS = descriptors;
|
1021
|
-
var uncurryThis = functionUncurryThis;
|
1022
|
-
var call = functionCall;
|
1023
|
-
var fails = fails$
|
1024
|
-
var objectKeys = objectKeys$
|
1022
|
+
var DESCRIPTORS$2 = descriptors;
|
1023
|
+
var uncurryThis$1 = functionUncurryThis;
|
1024
|
+
var call$1 = functionCall;
|
1025
|
+
var fails$2 = fails$b;
|
1026
|
+
var objectKeys$1 = objectKeys$2;
|
1025
1027
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
1026
1028
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
1027
|
-
var toObject$
|
1029
|
+
var toObject$2 = toObject$4;
|
1028
1030
|
var IndexedObject = indexedObject;
|
1029
1031
|
|
1030
1032
|
// eslint-disable-next-line es/no-object-assign -- safe
|
1031
1033
|
var $assign = Object.assign;
|
1032
1034
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1033
|
-
var defineProperty = Object.defineProperty;
|
1034
|
-
var concat = uncurryThis([].concat);
|
1035
|
+
var defineProperty$3 = Object.defineProperty;
|
1036
|
+
var concat = uncurryThis$1([].concat);
|
1035
1037
|
|
1036
1038
|
// `Object.assign` method
|
1037
1039
|
// https://tc39.es/ecma262/#sec-object.assign
|
1038
|
-
var objectAssign$1 = !$assign || fails(function () {
|
1040
|
+
var objectAssign$1 = !$assign || fails$2(function () {
|
1039
1041
|
// should have correct order of operations (Edge bug)
|
1040
|
-
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
1042
|
+
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
1041
1043
|
enumerable: true,
|
1042
1044
|
get: function () {
|
1043
|
-
defineProperty(this, 'b', {
|
1045
|
+
defineProperty$3(this, 'b', {
|
1044
1046
|
value: 3,
|
1045
1047
|
enumerable: false
|
1046
1048
|
});
|
@@ -1054,36 +1056,51 @@ var objectAssign$1 = !$assign || fails(function () {
|
|
1054
1056
|
var alphabet = 'abcdefghijklmnopqrst';
|
1055
1057
|
A[symbol] = 7;
|
1056
1058
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
1057
|
-
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
1059
|
+
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
1058
1060
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
1059
|
-
var T = toObject$
|
1061
|
+
var T = toObject$2(target);
|
1060
1062
|
var argumentsLength = arguments.length;
|
1061
1063
|
var index = 1;
|
1062
1064
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
1063
1065
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
1064
1066
|
while (argumentsLength > index) {
|
1065
1067
|
var S = IndexedObject(arguments[index++]);
|
1066
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
1068
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
1067
1069
|
var length = keys.length;
|
1068
1070
|
var j = 0;
|
1069
1071
|
var key;
|
1070
1072
|
while (length > j) {
|
1071
1073
|
key = keys[j++];
|
1072
|
-
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1074
|
+
if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1073
1075
|
}
|
1074
1076
|
} return T;
|
1075
1077
|
} : $assign;
|
1076
1078
|
|
1077
|
-
var
|
1079
|
+
var $$1 = _export;
|
1078
1080
|
var assign$1 = objectAssign$1;
|
1079
1081
|
|
1080
1082
|
// `Object.assign` method
|
1081
1083
|
// https://tc39.es/ecma262/#sec-object.assign
|
1082
1084
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
1083
|
-
|
1085
|
+
$$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
|
1084
1086
|
assign: assign$1
|
1085
1087
|
});
|
1086
1088
|
|
1089
|
+
function _extends$2() {
|
1090
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function (target) {
|
1091
|
+
for (var i = 1; i < arguments.length; i++) {
|
1092
|
+
var source = arguments[i];
|
1093
|
+
for (var key in source) {
|
1094
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
1095
|
+
target[key] = source[key];
|
1096
|
+
}
|
1097
|
+
}
|
1098
|
+
}
|
1099
|
+
return target;
|
1100
|
+
};
|
1101
|
+
return _extends$2.apply(this, arguments);
|
1102
|
+
}
|
1103
|
+
|
1087
1104
|
function isPlainObject(item) {
|
1088
1105
|
return item !== null && typeof item === 'object' && item.constructor === Object;
|
1089
1106
|
}
|
@@ -1100,9 +1117,7 @@ function deepClone(source) {
|
|
1100
1117
|
function deepmerge(target, source, options = {
|
1101
1118
|
clone: true
|
1102
1119
|
}) {
|
1103
|
-
const output = options.clone ? {
|
1104
|
-
...target
|
1105
|
-
} : target;
|
1120
|
+
const output = options.clone ? _extends$2({}, target) : target;
|
1106
1121
|
if (isPlainObject(target) && isPlainObject(source)) {
|
1107
1122
|
Object.keys(source).forEach(key => {
|
1108
1123
|
// Avoid prototype pollution
|
@@ -1340,7 +1355,7 @@ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1340
1355
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
1341
1356
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
1342
1357
|
|
1343
|
-
function toObject(val) {
|
1358
|
+
function toObject$1(val) {
|
1344
1359
|
if (val === null || val === undefined) {
|
1345
1360
|
throw new TypeError('Object.assign cannot be called with null or undefined');
|
1346
1361
|
}
|
@@ -1394,7 +1409,7 @@ function shouldUseNative() {
|
|
1394
1409
|
|
1395
1410
|
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
1396
1411
|
var from;
|
1397
|
-
var to = toObject(target);
|
1412
|
+
var to = toObject$1(target);
|
1398
1413
|
var symbols;
|
1399
1414
|
|
1400
1415
|
for (var s = 1; s < arguments.length; s++) {
|
@@ -2294,6 +2309,34 @@ function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {
|
|
2294
2309
|
return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator$1.generate(componentName)}-${slot}`;
|
2295
2310
|
}
|
2296
2311
|
|
2312
|
+
function _extends$1() {
|
2313
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
2314
|
+
for (var i = 1; i < arguments.length; i++) {
|
2315
|
+
var source = arguments[i];
|
2316
|
+
for (var key in source) {
|
2317
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
2318
|
+
target[key] = source[key];
|
2319
|
+
}
|
2320
|
+
}
|
2321
|
+
}
|
2322
|
+
return target;
|
2323
|
+
};
|
2324
|
+
return _extends$1.apply(this, arguments);
|
2325
|
+
}
|
2326
|
+
|
2327
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
2328
|
+
if (source == null) return {};
|
2329
|
+
var target = {};
|
2330
|
+
var sourceKeys = Object.keys(source);
|
2331
|
+
var key, i;
|
2332
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
2333
|
+
key = sourceKeys[i];
|
2334
|
+
if (excluded.indexOf(key) >= 0) continue;
|
2335
|
+
target[key] = source[key];
|
2336
|
+
}
|
2337
|
+
return target;
|
2338
|
+
}
|
2339
|
+
|
2297
2340
|
function _extends() {
|
2298
2341
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
2299
2342
|
for (var i = 1; i < arguments.length; i++) {
|
@@ -2420,7 +2463,7 @@ function merge(acc, item) {
|
|
2420
2463
|
|
2421
2464
|
// The breakpoint **start** at this value.
|
2422
2465
|
// For instance with the first breakpoint xs: [xs, sm[.
|
2423
|
-
const values = {
|
2466
|
+
const values$1 = {
|
2424
2467
|
xs: 0,
|
2425
2468
|
// phone
|
2426
2469
|
sm: 600,
|
@@ -2436,7 +2479,7 @@ const defaultBreakpoints = {
|
|
2436
2479
|
// Sorted ASC by size. That's important.
|
2437
2480
|
// It can't be configured as it's used statically for propTypes.
|
2438
2481
|
keys: ['xs', 'sm', 'md', 'lg', 'xl'],
|
2439
|
-
up: key => `@media (min-width:${values[key]}px)`
|
2482
|
+
up: key => `@media (min-width:${values$1[key]}px)`
|
2440
2483
|
};
|
2441
2484
|
function handleBreakpoints(props, propValue, styleFromPropValue) {
|
2442
2485
|
const theme = props.theme || {};
|
@@ -2451,7 +2494,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
2451
2494
|
const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
|
2452
2495
|
return Object.keys(propValue).reduce((acc, breakpoint) => {
|
2453
2496
|
// key is breakpoint
|
2454
|
-
if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {
|
2497
|
+
if (Object.keys(themeBreakpoints.values || values$1).indexOf(breakpoint) !== -1) {
|
2455
2498
|
const mediaKey = themeBreakpoints.up(breakpoint);
|
2456
2499
|
acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
|
2457
2500
|
} else {
|
@@ -2942,8 +2985,8 @@ const width = style$1({
|
|
2942
2985
|
const maxWidth = props => {
|
2943
2986
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
2944
2987
|
const styleFromPropValue = propValue => {
|
2945
|
-
var _props$theme
|
2946
|
-
const breakpoint = ((_props$theme = props.theme) == null
|
2988
|
+
var _props$theme;
|
2989
|
+
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values$1[propValue];
|
2947
2990
|
return {
|
2948
2991
|
maxWidth: breakpoint || sizingTransform(propValue)
|
2949
2992
|
};
|
@@ -3633,7 +3676,7 @@ function lighten(color, coefficient) {
|
|
3633
3676
|
}
|
3634
3677
|
|
3635
3678
|
function createMixins(breakpoints, mixins) {
|
3636
|
-
return _extends({
|
3679
|
+
return _extends$1({
|
3637
3680
|
toolbar: {
|
3638
3681
|
minHeight: 56,
|
3639
3682
|
[breakpoints.up('xs')]: {
|
@@ -3949,7 +3992,7 @@ function createPalette(palette) {
|
|
3949
3992
|
contrastThreshold = 3,
|
3950
3993
|
tonalOffset = 0.2
|
3951
3994
|
} = palette,
|
3952
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$3);
|
3995
|
+
other = _objectWithoutPropertiesLoose$1(palette, _excluded$3);
|
3953
3996
|
const primary = palette.primary || getDefaultPrimary(mode);
|
3954
3997
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
3955
3998
|
const error = palette.error || getDefaultError(mode);
|
@@ -3977,7 +4020,7 @@ function createPalette(palette) {
|
|
3977
4020
|
lightShade = 300,
|
3978
4021
|
darkShade = 700
|
3979
4022
|
}) => {
|
3980
|
-
color = _extends({}, color);
|
4023
|
+
color = _extends$1({}, color);
|
3981
4024
|
if (!color.main && color[mainShade]) {
|
3982
4025
|
color.main = color[mainShade];
|
3983
4026
|
}
|
@@ -4017,9 +4060,9 @@ const theme2 = createTheme({ palette: {
|
|
4017
4060
|
console.error(`MUI: The palette mode \`${mode}\` is not supported.`);
|
4018
4061
|
}
|
4019
4062
|
}
|
4020
|
-
const paletteOutput = deepmerge(_extends({
|
4063
|
+
const paletteOutput = deepmerge(_extends$1({
|
4021
4064
|
// A collection of common colors.
|
4022
|
-
common: _extends({}, common$1),
|
4065
|
+
common: _extends$1({}, common$1),
|
4023
4066
|
// prevent mutable object.
|
4024
4067
|
// The palette mode, can be light or dark.
|
4025
4068
|
mode,
|
@@ -4104,7 +4147,7 @@ function createTypography(palette, typography) {
|
|
4104
4147
|
allVariants,
|
4105
4148
|
pxToRem: pxToRem2
|
4106
4149
|
} = _ref,
|
4107
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
4150
|
+
other = _objectWithoutPropertiesLoose$1(_ref, _excluded$2);
|
4108
4151
|
if (process.env.NODE_ENV !== 'production') {
|
4109
4152
|
if (typeof fontSize !== 'number') {
|
4110
4153
|
console.error('MUI: `fontSize` is required to be a number.');
|
@@ -4115,7 +4158,7 @@ function createTypography(palette, typography) {
|
|
4115
4158
|
}
|
4116
4159
|
const coef = fontSize / 14;
|
4117
4160
|
const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);
|
4118
|
-
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({
|
4161
|
+
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$1({
|
4119
4162
|
fontFamily,
|
4120
4163
|
fontWeight,
|
4121
4164
|
fontSize: pxToRem(size),
|
@@ -4146,7 +4189,7 @@ function createTypography(palette, typography) {
|
|
4146
4189
|
letterSpacing: 'inherit'
|
4147
4190
|
}
|
4148
4191
|
};
|
4149
|
-
return deepmerge(_extends({
|
4192
|
+
return deepmerge(_extends$1({
|
4150
4193
|
htmlFontSize,
|
4151
4194
|
pxToRem,
|
4152
4195
|
fontFamily,
|
@@ -4214,15 +4257,15 @@ function getAutoHeightDuration(height) {
|
|
4214
4257
|
return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
|
4215
4258
|
}
|
4216
4259
|
function createTransitions(inputTransitions) {
|
4217
|
-
const mergedEasing = _extends({}, easing, inputTransitions.easing);
|
4218
|
-
const mergedDuration = _extends({}, duration, inputTransitions.duration);
|
4260
|
+
const mergedEasing = _extends$1({}, easing, inputTransitions.easing);
|
4261
|
+
const mergedDuration = _extends$1({}, duration, inputTransitions.duration);
|
4219
4262
|
const create = (props = ['all'], options = {}) => {
|
4220
4263
|
const {
|
4221
4264
|
duration: durationOption = mergedDuration.standard,
|
4222
4265
|
easing: easingOption = mergedEasing.easeInOut,
|
4223
4266
|
delay = 0
|
4224
4267
|
} = options,
|
4225
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$1);
|
4268
|
+
other = _objectWithoutPropertiesLoose$1(options, _excluded$1);
|
4226
4269
|
if (process.env.NODE_ENV !== 'production') {
|
4227
4270
|
const isString = value => typeof value === 'string';
|
4228
4271
|
// IE11 support, replace with Number.isNaN
|
@@ -4240,13 +4283,16 @@ function createTransitions(inputTransitions) {
|
|
4240
4283
|
if (!isNumber(delay) && !isString(delay)) {
|
4241
4284
|
console.error('MUI: Argument "delay" must be a number or a string.');
|
4242
4285
|
}
|
4286
|
+
if (typeof options !== 'object') {
|
4287
|
+
console.error(['MUI: Secong argument of transition.create must be an object.', "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join('\n'));
|
4288
|
+
}
|
4243
4289
|
if (Object.keys(other).length !== 0) {
|
4244
4290
|
console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);
|
4245
4291
|
}
|
4246
4292
|
}
|
4247
4293
|
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
|
4248
4294
|
};
|
4249
|
-
return _extends({
|
4295
|
+
return _extends$1({
|
4250
4296
|
getAutoHeightDuration,
|
4251
4297
|
create
|
4252
4298
|
}, inputTransitions, {
|
@@ -4277,7 +4323,7 @@ function createTheme(options = {}, ...args) {
|
|
4277
4323
|
transitions: transitionsInput = {},
|
4278
4324
|
typography: typographyInput = {}
|
4279
4325
|
} = options,
|
4280
|
-
other = _objectWithoutPropertiesLoose(options, _excluded);
|
4326
|
+
other = _objectWithoutPropertiesLoose$1(options, _excluded);
|
4281
4327
|
if (options.vars) {
|
4282
4328
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
4283
4329
|
Please use another name.` : formatMuiErrorMessage(18));
|
@@ -4291,7 +4337,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
4291
4337
|
shadows: shadows$1.slice(),
|
4292
4338
|
typography: createTypography(palette, typographyInput),
|
4293
4339
|
transitions: createTransitions(transitionsInput),
|
4294
|
-
zIndex: _extends({}, zIndex$1)
|
4340
|
+
zIndex: _extends$1({}, zIndex$1)
|
4295
4341
|
});
|
4296
4342
|
muiTheme = deepmerge(muiTheme, other);
|
4297
4343
|
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
@@ -4325,7 +4371,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
4325
4371
|
}
|
4326
4372
|
});
|
4327
4373
|
}
|
4328
|
-
muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
4374
|
+
muiTheme.unstable_sxConfig = _extends$1({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
|
4329
4375
|
muiTheme.unstable_sx = function sx(props) {
|
4330
4376
|
return styleFunctionSx$1({
|
4331
4377
|
sx: props,
|
@@ -4801,4 +4847,540 @@ const themeOptions = {
|
|
4801
4847
|
|
4802
4848
|
const SincoTheme = createTheme(Object.assign({}, themeOptions));
|
4803
4849
|
|
4850
|
+
var objectDefineProperties = {};
|
4851
|
+
|
4852
|
+
var DESCRIPTORS$1 = descriptors;
|
4853
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
4854
|
+
var definePropertyModule = objectDefineProperty;
|
4855
|
+
var anObject$2 = anObject$5;
|
4856
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
4857
|
+
var objectKeys = objectKeys$2;
|
4858
|
+
|
4859
|
+
// `Object.defineProperties` method
|
4860
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
4861
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
4862
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
4863
|
+
anObject$2(O);
|
4864
|
+
var props = toIndexedObject$1(Properties);
|
4865
|
+
var keys = objectKeys(Properties);
|
4866
|
+
var length = keys.length;
|
4867
|
+
var index = 0;
|
4868
|
+
var key;
|
4869
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
4870
|
+
return O;
|
4871
|
+
};
|
4872
|
+
|
4873
|
+
var getBuiltIn = getBuiltIn$3;
|
4874
|
+
|
4875
|
+
var html$1 = getBuiltIn('document', 'documentElement');
|
4876
|
+
|
4877
|
+
/* global ActiveXObject -- old IE, WSH */
|
4878
|
+
|
4879
|
+
var anObject$1 = anObject$5;
|
4880
|
+
var definePropertiesModule = objectDefineProperties;
|
4881
|
+
var enumBugKeys = enumBugKeys$3;
|
4882
|
+
var hiddenKeys = hiddenKeys$4;
|
4883
|
+
var html = html$1;
|
4884
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
4885
|
+
var sharedKey$1 = sharedKey$3;
|
4886
|
+
|
4887
|
+
var GT = '>';
|
4888
|
+
var LT = '<';
|
4889
|
+
var PROTOTYPE = 'prototype';
|
4890
|
+
var SCRIPT = 'script';
|
4891
|
+
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
4892
|
+
|
4893
|
+
var EmptyConstructor = function () { /* empty */ };
|
4894
|
+
|
4895
|
+
var scriptTag = function (content) {
|
4896
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
4897
|
+
};
|
4898
|
+
|
4899
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
4900
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
4901
|
+
activeXDocument.write(scriptTag(''));
|
4902
|
+
activeXDocument.close();
|
4903
|
+
var temp = activeXDocument.parentWindow.Object;
|
4904
|
+
activeXDocument = null; // avoid memory leak
|
4905
|
+
return temp;
|
4906
|
+
};
|
4907
|
+
|
4908
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
4909
|
+
var NullProtoObjectViaIFrame = function () {
|
4910
|
+
// Thrash, waste and sodomy: IE GC bug
|
4911
|
+
var iframe = documentCreateElement$1('iframe');
|
4912
|
+
var JS = 'java' + SCRIPT + ':';
|
4913
|
+
var iframeDocument;
|
4914
|
+
iframe.style.display = 'none';
|
4915
|
+
html.appendChild(iframe);
|
4916
|
+
// https://github.com/zloirock/core-js/issues/475
|
4917
|
+
iframe.src = String(JS);
|
4918
|
+
iframeDocument = iframe.contentWindow.document;
|
4919
|
+
iframeDocument.open();
|
4920
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
4921
|
+
iframeDocument.close();
|
4922
|
+
return iframeDocument.F;
|
4923
|
+
};
|
4924
|
+
|
4925
|
+
// Check for document.domain and active x support
|
4926
|
+
// No need to use active x approach when document.domain is not set
|
4927
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
4928
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
4929
|
+
// avoid IE GC bug
|
4930
|
+
var activeXDocument;
|
4931
|
+
var NullProtoObject = function () {
|
4932
|
+
try {
|
4933
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
4934
|
+
} catch (error) { /* ignore */ }
|
4935
|
+
NullProtoObject = typeof document != 'undefined'
|
4936
|
+
? document.domain && activeXDocument
|
4937
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
4938
|
+
: NullProtoObjectViaIFrame()
|
4939
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
4940
|
+
var length = enumBugKeys.length;
|
4941
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
4942
|
+
return NullProtoObject();
|
4943
|
+
};
|
4944
|
+
|
4945
|
+
hiddenKeys[IE_PROTO$1] = true;
|
4946
|
+
|
4947
|
+
// `Object.create` method
|
4948
|
+
// https://tc39.es/ecma262/#sec-object.create
|
4949
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
4950
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
4951
|
+
var result;
|
4952
|
+
if (O !== null) {
|
4953
|
+
EmptyConstructor[PROTOTYPE] = anObject$1(O);
|
4954
|
+
result = new EmptyConstructor();
|
4955
|
+
EmptyConstructor[PROTOTYPE] = null;
|
4956
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
4957
|
+
result[IE_PROTO$1] = O;
|
4958
|
+
} else result = NullProtoObject();
|
4959
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
4960
|
+
};
|
4961
|
+
|
4962
|
+
var wellKnownSymbol$4 = wellKnownSymbol$6;
|
4963
|
+
var create$1 = objectCreate;
|
4964
|
+
var defineProperty$2 = objectDefineProperty.f;
|
4965
|
+
|
4966
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
4967
|
+
var ArrayPrototype = Array.prototype;
|
4968
|
+
|
4969
|
+
// Array.prototype[@@unscopables]
|
4970
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
4971
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
4972
|
+
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
4973
|
+
configurable: true,
|
4974
|
+
value: create$1(null)
|
4975
|
+
});
|
4976
|
+
}
|
4977
|
+
|
4978
|
+
// add a key to Array.prototype[@@unscopables]
|
4979
|
+
var addToUnscopables$1 = function (key) {
|
4980
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
4981
|
+
};
|
4982
|
+
|
4983
|
+
var iterators = {};
|
4984
|
+
|
4985
|
+
var fails$1 = fails$b;
|
4986
|
+
|
4987
|
+
var correctPrototypeGetter = !fails$1(function () {
|
4988
|
+
function F() { /* empty */ }
|
4989
|
+
F.prototype.constructor = null;
|
4990
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
4991
|
+
return Object.getPrototypeOf(new F()) !== F.prototype;
|
4992
|
+
});
|
4993
|
+
|
4994
|
+
var hasOwn$1 = hasOwnProperty_1;
|
4995
|
+
var isCallable$3 = isCallable$e;
|
4996
|
+
var toObject = toObject$4;
|
4997
|
+
var sharedKey = sharedKey$3;
|
4998
|
+
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
4999
|
+
|
5000
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
5001
|
+
var $Object = Object;
|
5002
|
+
var ObjectPrototype = $Object.prototype;
|
5003
|
+
|
5004
|
+
// `Object.getPrototypeOf` method
|
5005
|
+
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
5006
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
5007
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
5008
|
+
var object = toObject(O);
|
5009
|
+
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
5010
|
+
var constructor = object.constructor;
|
5011
|
+
if (isCallable$3(constructor) && object instanceof constructor) {
|
5012
|
+
return constructor.prototype;
|
5013
|
+
} return object instanceof $Object ? ObjectPrototype : null;
|
5014
|
+
};
|
5015
|
+
|
5016
|
+
var fails = fails$b;
|
5017
|
+
var isCallable$2 = isCallable$e;
|
5018
|
+
var isObject = isObject$6;
|
5019
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
5020
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
5021
|
+
var wellKnownSymbol$3 = wellKnownSymbol$6;
|
5022
|
+
|
5023
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
5024
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
5025
|
+
|
5026
|
+
// `%IteratorPrototype%` object
|
5027
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
5028
|
+
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
5029
|
+
|
5030
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
5031
|
+
if ([].keys) {
|
5032
|
+
arrayIterator = [].keys();
|
5033
|
+
// Safari 8 has buggy iterators w/o `next`
|
5034
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
5035
|
+
else {
|
5036
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
5037
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
5038
|
+
}
|
5039
|
+
}
|
5040
|
+
|
5041
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
|
5042
|
+
var test = {};
|
5043
|
+
// FF44- legacy iterators case
|
5044
|
+
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
5045
|
+
});
|
5046
|
+
|
5047
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
5048
|
+
|
5049
|
+
// `%IteratorPrototype%[@@iterator]()` method
|
5050
|
+
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
5051
|
+
if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
|
5052
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
5053
|
+
return this;
|
5054
|
+
});
|
5055
|
+
}
|
5056
|
+
|
5057
|
+
var iteratorsCore = {
|
5058
|
+
IteratorPrototype: IteratorPrototype$2,
|
5059
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
5060
|
+
};
|
5061
|
+
|
5062
|
+
var defineProperty$1 = objectDefineProperty.f;
|
5063
|
+
var hasOwn = hasOwnProperty_1;
|
5064
|
+
var wellKnownSymbol$2 = wellKnownSymbol$6;
|
5065
|
+
|
5066
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
5067
|
+
|
5068
|
+
var setToStringTag$2 = function (target, TAG, STATIC) {
|
5069
|
+
if (target && !STATIC) target = target.prototype;
|
5070
|
+
if (target && !hasOwn(target, TO_STRING_TAG$1)) {
|
5071
|
+
defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
5072
|
+
}
|
5073
|
+
};
|
5074
|
+
|
5075
|
+
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
5076
|
+
var create = objectCreate;
|
5077
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
5078
|
+
var setToStringTag$1 = setToStringTag$2;
|
5079
|
+
var Iterators$2 = iterators;
|
5080
|
+
|
5081
|
+
var returnThis$1 = function () { return this; };
|
5082
|
+
|
5083
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
5084
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
5085
|
+
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
5086
|
+
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
5087
|
+
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
5088
|
+
return IteratorConstructor;
|
5089
|
+
};
|
5090
|
+
|
5091
|
+
var uncurryThis = functionUncurryThis;
|
5092
|
+
var aCallable = aCallable$2;
|
5093
|
+
|
5094
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
5095
|
+
try {
|
5096
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
5097
|
+
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
5098
|
+
} catch (error) { /* empty */ }
|
5099
|
+
};
|
5100
|
+
|
5101
|
+
var isCallable$1 = isCallable$e;
|
5102
|
+
|
5103
|
+
var $String = String;
|
5104
|
+
var $TypeError = TypeError;
|
5105
|
+
|
5106
|
+
var aPossiblePrototype$1 = function (argument) {
|
5107
|
+
if (typeof argument == 'object' || isCallable$1(argument)) return argument;
|
5108
|
+
throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
|
5109
|
+
};
|
5110
|
+
|
5111
|
+
/* eslint-disable no-proto -- safe */
|
5112
|
+
|
5113
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
5114
|
+
var anObject = anObject$5;
|
5115
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
5116
|
+
|
5117
|
+
// `Object.setPrototypeOf` method
|
5118
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
5119
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
5120
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
5121
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
5122
|
+
var CORRECT_SETTER = false;
|
5123
|
+
var test = {};
|
5124
|
+
var setter;
|
5125
|
+
try {
|
5126
|
+
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
5127
|
+
setter(test, []);
|
5128
|
+
CORRECT_SETTER = test instanceof Array;
|
5129
|
+
} catch (error) { /* empty */ }
|
5130
|
+
return function setPrototypeOf(O, proto) {
|
5131
|
+
anObject(O);
|
5132
|
+
aPossiblePrototype(proto);
|
5133
|
+
if (CORRECT_SETTER) setter(O, proto);
|
5134
|
+
else O.__proto__ = proto;
|
5135
|
+
return O;
|
5136
|
+
};
|
5137
|
+
}() : undefined);
|
5138
|
+
|
5139
|
+
var $ = _export;
|
5140
|
+
var call = functionCall;
|
5141
|
+
var FunctionName = functionName;
|
5142
|
+
var isCallable = isCallable$e;
|
5143
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
5144
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
5145
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
5146
|
+
var setToStringTag = setToStringTag$2;
|
5147
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
5148
|
+
var defineBuiltIn = defineBuiltIn$3;
|
5149
|
+
var wellKnownSymbol$1 = wellKnownSymbol$6;
|
5150
|
+
var Iterators$1 = iterators;
|
5151
|
+
var IteratorsCore = iteratorsCore;
|
5152
|
+
|
5153
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
5154
|
+
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
5155
|
+
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
5156
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
5157
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
5158
|
+
var KEYS = 'keys';
|
5159
|
+
var VALUES = 'values';
|
5160
|
+
var ENTRIES = 'entries';
|
5161
|
+
|
5162
|
+
var returnThis = function () { return this; };
|
5163
|
+
|
5164
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
5165
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
5166
|
+
|
5167
|
+
var getIterationMethod = function (KIND) {
|
5168
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
5169
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
5170
|
+
switch (KIND) {
|
5171
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
5172
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
5173
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
5174
|
+
} return function () { return new IteratorConstructor(this); };
|
5175
|
+
};
|
5176
|
+
|
5177
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
5178
|
+
var INCORRECT_VALUES_NAME = false;
|
5179
|
+
var IterablePrototype = Iterable.prototype;
|
5180
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
5181
|
+
|| IterablePrototype['@@iterator']
|
5182
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
5183
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
5184
|
+
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
5185
|
+
var CurrentIteratorPrototype, methods, KEY;
|
5186
|
+
|
5187
|
+
// fix native
|
5188
|
+
if (anyNativeIterator) {
|
5189
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
5190
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
5191
|
+
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
5192
|
+
if (setPrototypeOf) {
|
5193
|
+
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
5194
|
+
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
|
5195
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
5196
|
+
}
|
5197
|
+
}
|
5198
|
+
// Set @@toStringTag to native iterators
|
5199
|
+
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
5200
|
+
}
|
5201
|
+
}
|
5202
|
+
|
5203
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
5204
|
+
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
5205
|
+
if (CONFIGURABLE_FUNCTION_NAME) {
|
5206
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
5207
|
+
} else {
|
5208
|
+
INCORRECT_VALUES_NAME = true;
|
5209
|
+
defaultIterator = function values() { return call(nativeIterator, this); };
|
5210
|
+
}
|
5211
|
+
}
|
5212
|
+
|
5213
|
+
// export additional methods
|
5214
|
+
if (DEFAULT) {
|
5215
|
+
methods = {
|
5216
|
+
values: getIterationMethod(VALUES),
|
5217
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
5218
|
+
entries: getIterationMethod(ENTRIES)
|
5219
|
+
};
|
5220
|
+
if (FORCED) for (KEY in methods) {
|
5221
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
5222
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
5223
|
+
}
|
5224
|
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
5225
|
+
}
|
5226
|
+
|
5227
|
+
// define iterator
|
5228
|
+
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
5229
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
5230
|
+
}
|
5231
|
+
Iterators$1[NAME] = defaultIterator;
|
5232
|
+
|
5233
|
+
return methods;
|
5234
|
+
};
|
5235
|
+
|
5236
|
+
// `CreateIterResultObject` abstract operation
|
5237
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
5238
|
+
var createIterResultObject$1 = function (value, done) {
|
5239
|
+
return { value: value, done: done };
|
5240
|
+
};
|
5241
|
+
|
5242
|
+
var toIndexedObject = toIndexedObject$5;
|
5243
|
+
var addToUnscopables = addToUnscopables$1;
|
5244
|
+
var Iterators = iterators;
|
5245
|
+
var InternalStateModule = internalState;
|
5246
|
+
var defineProperty = objectDefineProperty.f;
|
5247
|
+
var defineIterator = iteratorDefine;
|
5248
|
+
var createIterResultObject = createIterResultObject$1;
|
5249
|
+
var DESCRIPTORS = descriptors;
|
5250
|
+
|
5251
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
5252
|
+
var setInternalState = InternalStateModule.set;
|
5253
|
+
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
5254
|
+
|
5255
|
+
// `Array.prototype.entries` method
|
5256
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
5257
|
+
// `Array.prototype.keys` method
|
5258
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
5259
|
+
// `Array.prototype.values` method
|
5260
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
5261
|
+
// `Array.prototype[@@iterator]` method
|
5262
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
5263
|
+
// `CreateArrayIterator` internal method
|
5264
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
5265
|
+
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
5266
|
+
setInternalState(this, {
|
5267
|
+
type: ARRAY_ITERATOR,
|
5268
|
+
target: toIndexedObject(iterated), // target
|
5269
|
+
index: 0, // next index
|
5270
|
+
kind: kind // kind
|
5271
|
+
});
|
5272
|
+
// `%ArrayIteratorPrototype%.next` method
|
5273
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
5274
|
+
}, function () {
|
5275
|
+
var state = getInternalState(this);
|
5276
|
+
var target = state.target;
|
5277
|
+
var kind = state.kind;
|
5278
|
+
var index = state.index++;
|
5279
|
+
if (!target || index >= target.length) {
|
5280
|
+
state.target = undefined;
|
5281
|
+
return createIterResultObject(undefined, true);
|
5282
|
+
}
|
5283
|
+
if (kind == 'keys') return createIterResultObject(index, false);
|
5284
|
+
if (kind == 'values') return createIterResultObject(target[index], false);
|
5285
|
+
return createIterResultObject([index, target[index]], false);
|
5286
|
+
}, 'values');
|
5287
|
+
|
5288
|
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
5289
|
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
5290
|
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
5291
|
+
var values = Iterators.Arguments = Iterators.Array;
|
5292
|
+
|
5293
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
5294
|
+
addToUnscopables('keys');
|
5295
|
+
addToUnscopables('values');
|
5296
|
+
addToUnscopables('entries');
|
5297
|
+
|
5298
|
+
// V8 ~ Chrome 45- bug
|
5299
|
+
if (DESCRIPTORS && values.name !== 'values') try {
|
5300
|
+
defineProperty(values, 'name', { value: 'values' });
|
5301
|
+
} catch (error) { /* empty */ }
|
5302
|
+
|
5303
|
+
// iterable DOM collections
|
5304
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
5305
|
+
var domIterables = {
|
5306
|
+
CSSRuleList: 0,
|
5307
|
+
CSSStyleDeclaration: 0,
|
5308
|
+
CSSValueList: 0,
|
5309
|
+
ClientRectList: 0,
|
5310
|
+
DOMRectList: 0,
|
5311
|
+
DOMStringList: 0,
|
5312
|
+
DOMTokenList: 1,
|
5313
|
+
DataTransferItemList: 0,
|
5314
|
+
FileList: 0,
|
5315
|
+
HTMLAllCollection: 0,
|
5316
|
+
HTMLCollection: 0,
|
5317
|
+
HTMLFormElement: 0,
|
5318
|
+
HTMLSelectElement: 0,
|
5319
|
+
MediaList: 0,
|
5320
|
+
MimeTypeArray: 0,
|
5321
|
+
NamedNodeMap: 0,
|
5322
|
+
NodeList: 1,
|
5323
|
+
PaintRequestList: 0,
|
5324
|
+
Plugin: 0,
|
5325
|
+
PluginArray: 0,
|
5326
|
+
SVGLengthList: 0,
|
5327
|
+
SVGNumberList: 0,
|
5328
|
+
SVGPathSegList: 0,
|
5329
|
+
SVGPointList: 0,
|
5330
|
+
SVGStringList: 0,
|
5331
|
+
SVGTransformList: 0,
|
5332
|
+
SourceBufferList: 0,
|
5333
|
+
StyleSheetList: 0,
|
5334
|
+
TextTrackCueList: 0,
|
5335
|
+
TextTrackList: 0,
|
5336
|
+
TouchList: 0
|
5337
|
+
};
|
5338
|
+
|
5339
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
5340
|
+
var documentCreateElement = documentCreateElement$2;
|
5341
|
+
|
5342
|
+
var classList = documentCreateElement('span').classList;
|
5343
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
5344
|
+
|
5345
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
5346
|
+
|
5347
|
+
var global$1 = global$c;
|
5348
|
+
var DOMIterables = domIterables;
|
5349
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
5350
|
+
var ArrayIteratorMethods = es_array_iterator;
|
5351
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
5352
|
+
var wellKnownSymbol = wellKnownSymbol$6;
|
5353
|
+
|
5354
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
5355
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
5356
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
5357
|
+
|
5358
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
5359
|
+
if (CollectionPrototype) {
|
5360
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
5361
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
5362
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
5363
|
+
} catch (error) {
|
5364
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
5365
|
+
}
|
5366
|
+
if (!CollectionPrototype[TO_STRING_TAG]) {
|
5367
|
+
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
5368
|
+
}
|
5369
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
5370
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
5371
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
5372
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
5373
|
+
} catch (error) {
|
5374
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
5375
|
+
}
|
5376
|
+
}
|
5377
|
+
}
|
5378
|
+
};
|
5379
|
+
|
5380
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
5381
|
+
handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
5382
|
+
}
|
5383
|
+
|
5384
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
5385
|
+
|
4804
5386
|
export { SincoTheme };
|