@beeq/tailwindcss 1.12.14-beta.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1095 -554
- package/index.esm.js +1095 -554
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -29,7 +29,7 @@ var globalThis_1 =
|
|
|
29
29
|
|
|
30
30
|
var objectGetOwnPropertyDescriptor = {};
|
|
31
31
|
|
|
32
|
-
var fails$
|
|
32
|
+
var fails$f = function (exec) {
|
|
33
33
|
try {
|
|
34
34
|
return !!exec();
|
|
35
35
|
} catch (error) {
|
|
@@ -37,29 +37,29 @@ var fails$e = function (exec) {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
var fails$
|
|
40
|
+
var fails$e = fails$f;
|
|
41
41
|
|
|
42
42
|
// Detect IE8's incomplete defineProperty implementation
|
|
43
|
-
var descriptors = !fails$
|
|
43
|
+
var descriptors = !fails$e(function () {
|
|
44
44
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
45
45
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
var fails$
|
|
48
|
+
var fails$d = fails$f;
|
|
49
49
|
|
|
50
|
-
var functionBindNative = !fails$
|
|
50
|
+
var functionBindNative = !fails$d(function () {
|
|
51
51
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
52
|
-
var test =
|
|
52
|
+
var test = function () { /* empty */ }.bind();
|
|
53
53
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
54
54
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
var NATIVE_BIND$3 = functionBindNative;
|
|
58
58
|
|
|
59
|
-
var call$
|
|
59
|
+
var call$e = Function.prototype.call;
|
|
60
60
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
61
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
62
|
-
return call$
|
|
61
|
+
var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () {
|
|
62
|
+
return call$e.apply(call$e, arguments);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
var objectPropertyIsEnumerable = {};
|
|
@@ -78,7 +78,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
78
78
|
return !!descriptor && descriptor.enumerable;
|
|
79
79
|
} : $propertyIsEnumerable;
|
|
80
80
|
|
|
81
|
-
var createPropertyDescriptor$
|
|
81
|
+
var createPropertyDescriptor$5 = function (bitmap, value) {
|
|
82
82
|
return {
|
|
83
83
|
enumerable: !(bitmap & 1),
|
|
84
84
|
configurable: !(bitmap & 2),
|
|
@@ -90,39 +90,39 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
90
90
|
var NATIVE_BIND$2 = functionBindNative;
|
|
91
91
|
|
|
92
92
|
var FunctionPrototype$2 = Function.prototype;
|
|
93
|
-
var call$
|
|
93
|
+
var call$d = FunctionPrototype$2.call;
|
|
94
94
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
95
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
95
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$d, call$d);
|
|
96
96
|
|
|
97
97
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
98
98
|
return function () {
|
|
99
|
-
return call$
|
|
99
|
+
return call$d.apply(fn, arguments);
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
var uncurryThis$
|
|
103
|
+
var uncurryThis$f = functionUncurryThis;
|
|
104
104
|
|
|
105
|
-
var toString$
|
|
106
|
-
var stringSlice$1 = uncurryThis$
|
|
105
|
+
var toString$3 = uncurryThis$f({}.toString);
|
|
106
|
+
var stringSlice$1 = uncurryThis$f(''.slice);
|
|
107
107
|
|
|
108
108
|
var classofRaw$2 = function (it) {
|
|
109
|
-
return stringSlice$1(toString$
|
|
109
|
+
return stringSlice$1(toString$3(it), 8, -1);
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
var uncurryThis$
|
|
113
|
-
var fails$
|
|
114
|
-
var classof$
|
|
112
|
+
var uncurryThis$e = functionUncurryThis;
|
|
113
|
+
var fails$c = fails$f;
|
|
114
|
+
var classof$3 = classofRaw$2;
|
|
115
115
|
|
|
116
116
|
var $Object$4 = Object;
|
|
117
|
-
var split = uncurryThis$
|
|
117
|
+
var split = uncurryThis$e(''.split);
|
|
118
118
|
|
|
119
119
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
120
|
-
var indexedObject = fails$
|
|
120
|
+
var indexedObject = fails$c(function () {
|
|
121
121
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
122
122
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
123
123
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
124
124
|
}) ? function (it) {
|
|
125
|
-
return classof$
|
|
125
|
+
return classof$3(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
126
126
|
} : $Object$4;
|
|
127
127
|
|
|
128
128
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -133,21 +133,21 @@ var isNullOrUndefined$3 = function (it) {
|
|
|
133
133
|
|
|
134
134
|
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
135
135
|
|
|
136
|
-
var $TypeError$
|
|
136
|
+
var $TypeError$c = TypeError;
|
|
137
137
|
|
|
138
138
|
// `RequireObjectCoercible` abstract operation
|
|
139
139
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
140
|
-
var requireObjectCoercible$
|
|
141
|
-
if (isNullOrUndefined$2(it)) throw new $TypeError$
|
|
140
|
+
var requireObjectCoercible$3 = function (it) {
|
|
141
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$c("Can't call method on " + it);
|
|
142
142
|
return it;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
// toObject with fallback for non-array-like ES3 strings
|
|
146
146
|
var IndexedObject = indexedObject;
|
|
147
|
-
var requireObjectCoercible$
|
|
147
|
+
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
148
148
|
|
|
149
|
-
var toIndexedObject$
|
|
150
|
-
return IndexedObject(requireObjectCoercible$
|
|
149
|
+
var toIndexedObject$5 = function (it) {
|
|
150
|
+
return IndexedObject(requireObjectCoercible$2(it));
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -156,45 +156,45 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
156
156
|
// `IsCallable` abstract operation
|
|
157
157
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
158
158
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
159
|
-
var isCallable$
|
|
159
|
+
var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
160
160
|
return typeof argument == 'function' || argument === documentAll;
|
|
161
161
|
} : function (argument) {
|
|
162
162
|
return typeof argument == 'function';
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
var isCallable$
|
|
165
|
+
var isCallable$f = isCallable$g;
|
|
166
166
|
|
|
167
|
-
var isObject$
|
|
168
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
167
|
+
var isObject$a = function (it) {
|
|
168
|
+
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
-
var globalThis$
|
|
172
|
-
var isCallable$
|
|
171
|
+
var globalThis$f = globalThis_1;
|
|
172
|
+
var isCallable$e = isCallable$g;
|
|
173
173
|
|
|
174
174
|
var aFunction = function (argument) {
|
|
175
|
-
return isCallable$
|
|
175
|
+
return isCallable$e(argument) ? argument : undefined;
|
|
176
176
|
};
|
|
177
177
|
|
|
178
|
-
var getBuiltIn$
|
|
179
|
-
return arguments.length < 2 ? aFunction(globalThis$
|
|
178
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
179
|
+
return arguments.length < 2 ? aFunction(globalThis$f[namespace]) : globalThis$f[namespace] && globalThis$f[namespace][method];
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
var uncurryThis$
|
|
182
|
+
var uncurryThis$d = functionUncurryThis;
|
|
183
183
|
|
|
184
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
184
|
+
var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
|
|
185
185
|
|
|
186
|
-
var globalThis$
|
|
186
|
+
var globalThis$e = globalThis_1;
|
|
187
187
|
|
|
188
|
-
var navigator = globalThis$
|
|
188
|
+
var navigator = globalThis$e.navigator;
|
|
189
189
|
var userAgent$1 = navigator && navigator.userAgent;
|
|
190
190
|
|
|
191
191
|
var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
|
|
192
192
|
|
|
193
|
-
var globalThis$
|
|
193
|
+
var globalThis$d = globalThis_1;
|
|
194
194
|
var userAgent = environmentUserAgent;
|
|
195
195
|
|
|
196
|
-
var process = globalThis$
|
|
197
|
-
var Deno = globalThis$
|
|
196
|
+
var process = globalThis$d.process;
|
|
197
|
+
var Deno = globalThis$d.Deno;
|
|
198
198
|
var versions = process && process.versions || Deno && Deno.version;
|
|
199
199
|
var v8 = versions && versions.v8;
|
|
200
200
|
var match, version;
|
|
@@ -220,19 +220,19 @@ var environmentV8Version = version;
|
|
|
220
220
|
|
|
221
221
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
222
222
|
var V8_VERSION = environmentV8Version;
|
|
223
|
-
var fails$
|
|
224
|
-
var globalThis$
|
|
223
|
+
var fails$b = fails$f;
|
|
224
|
+
var globalThis$c = globalThis_1;
|
|
225
225
|
|
|
226
|
-
var $String$
|
|
226
|
+
var $String$5 = globalThis$c.String;
|
|
227
227
|
|
|
228
228
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
229
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
229
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
|
|
230
230
|
var symbol = Symbol('symbol detection');
|
|
231
231
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
232
232
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
233
233
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
234
234
|
// of course, fail.
|
|
235
|
-
return !$String$
|
|
235
|
+
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
236
236
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
237
237
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
238
238
|
});
|
|
@@ -244,9 +244,9 @@ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
|
|
|
244
244
|
!Symbol.sham &&
|
|
245
245
|
typeof Symbol.iterator == 'symbol';
|
|
246
246
|
|
|
247
|
-
var getBuiltIn$
|
|
248
|
-
var isCallable$
|
|
249
|
-
var isPrototypeOf$
|
|
247
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
248
|
+
var isCallable$d = isCallable$g;
|
|
249
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
250
250
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
251
251
|
|
|
252
252
|
var $Object$3 = Object;
|
|
@@ -254,29 +254,29 @@ var $Object$3 = Object;
|
|
|
254
254
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
255
255
|
return typeof it == 'symbol';
|
|
256
256
|
} : function (it) {
|
|
257
|
-
var $Symbol = getBuiltIn$
|
|
258
|
-
return isCallable$
|
|
257
|
+
var $Symbol = getBuiltIn$4('Symbol');
|
|
258
|
+
return isCallable$d($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
var $String$
|
|
261
|
+
var $String$4 = String;
|
|
262
262
|
|
|
263
263
|
var tryToString$3 = function (argument) {
|
|
264
264
|
try {
|
|
265
|
-
return $String$
|
|
265
|
+
return $String$4(argument);
|
|
266
266
|
} catch (error) {
|
|
267
267
|
return 'Object';
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
-
var isCallable$
|
|
271
|
+
var isCallable$c = isCallable$g;
|
|
272
272
|
var tryToString$2 = tryToString$3;
|
|
273
273
|
|
|
274
|
-
var $TypeError$
|
|
274
|
+
var $TypeError$b = TypeError;
|
|
275
275
|
|
|
276
276
|
// `Assert: IsCallable(argument) is true`
|
|
277
277
|
var aCallable$9 = function (argument) {
|
|
278
|
-
if (isCallable$
|
|
279
|
-
throw new $TypeError$
|
|
278
|
+
if (isCallable$c(argument)) return argument;
|
|
279
|
+
throw new $TypeError$b(tryToString$2(argument) + ' is not a function');
|
|
280
280
|
};
|
|
281
281
|
|
|
282
282
|
var aCallable$8 = aCallable$9;
|
|
@@ -289,50 +289,50 @@ var getMethod$4 = function (V, P) {
|
|
|
289
289
|
return isNullOrUndefined$1(func) ? undefined : aCallable$8(func);
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
-
var call$
|
|
293
|
-
var isCallable$
|
|
294
|
-
var isObject$
|
|
292
|
+
var call$c = functionCall;
|
|
293
|
+
var isCallable$b = isCallable$g;
|
|
294
|
+
var isObject$9 = isObject$a;
|
|
295
295
|
|
|
296
|
-
var $TypeError$
|
|
296
|
+
var $TypeError$a = TypeError;
|
|
297
297
|
|
|
298
298
|
// `OrdinaryToPrimitive` abstract operation
|
|
299
299
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
300
300
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
301
301
|
var fn, val;
|
|
302
|
-
if (pref === 'string' && isCallable$
|
|
303
|
-
if (isCallable$
|
|
304
|
-
if (pref !== 'string' && isCallable$
|
|
305
|
-
throw new $TypeError$
|
|
302
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$9(val = call$c(fn, input))) return val;
|
|
303
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$9(val = call$c(fn, input))) return val;
|
|
304
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$9(val = call$c(fn, input))) return val;
|
|
305
|
+
throw new $TypeError$a("Can't convert object to primitive value");
|
|
306
306
|
};
|
|
307
307
|
|
|
308
308
|
var sharedStore = {exports: {}};
|
|
309
309
|
|
|
310
310
|
var isPure = false;
|
|
311
311
|
|
|
312
|
-
var globalThis$
|
|
312
|
+
var globalThis$b = globalThis_1;
|
|
313
313
|
|
|
314
314
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
315
|
-
var defineProperty$
|
|
315
|
+
var defineProperty$6 = Object.defineProperty;
|
|
316
316
|
|
|
317
317
|
var defineGlobalProperty$3 = function (key, value) {
|
|
318
318
|
try {
|
|
319
|
-
defineProperty$
|
|
319
|
+
defineProperty$6(globalThis$b, key, { value: value, configurable: true, writable: true });
|
|
320
320
|
} catch (error) {
|
|
321
|
-
globalThis$
|
|
321
|
+
globalThis$b[key] = value;
|
|
322
322
|
} return value;
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
-
var globalThis$
|
|
325
|
+
var globalThis$a = globalThis_1;
|
|
326
326
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
327
327
|
|
|
328
328
|
var SHARED = '__core-js_shared__';
|
|
329
|
-
var store$3 = sharedStore.exports = globalThis$
|
|
329
|
+
var store$3 = sharedStore.exports = globalThis$a[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
330
330
|
|
|
331
331
|
(store$3.versions || (store$3.versions = [])).push({
|
|
332
|
-
version: '3.
|
|
332
|
+
version: '3.49.0',
|
|
333
333
|
mode: 'global',
|
|
334
|
-
copyright: '©
|
|
335
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
334
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
335
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
|
|
336
336
|
source: 'https://github.com/zloirock/core-js'
|
|
337
337
|
});
|
|
338
338
|
|
|
@@ -344,20 +344,20 @@ var shared$3 = function (key, value) {
|
|
|
344
344
|
return store$2[key] || (store$2[key] = value || {});
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
347
|
+
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
348
348
|
|
|
349
349
|
var $Object$2 = Object;
|
|
350
350
|
|
|
351
351
|
// `ToObject` abstract operation
|
|
352
352
|
// https://tc39.es/ecma262/#sec-toobject
|
|
353
353
|
var toObject$2 = function (argument) {
|
|
354
|
-
return $Object$2(requireObjectCoercible(argument));
|
|
354
|
+
return $Object$2(requireObjectCoercible$1(argument));
|
|
355
355
|
};
|
|
356
356
|
|
|
357
|
-
var uncurryThis$
|
|
357
|
+
var uncurryThis$c = functionUncurryThis;
|
|
358
358
|
var toObject$1 = toObject$2;
|
|
359
359
|
|
|
360
|
-
var hasOwnProperty = uncurryThis$
|
|
360
|
+
var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
|
|
361
361
|
|
|
362
362
|
// `HasOwnProperty` abstract operation
|
|
363
363
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -366,56 +366,56 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
366
366
|
return hasOwnProperty(toObject$1(it), key);
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
-
var uncurryThis$
|
|
369
|
+
var uncurryThis$b = functionUncurryThis;
|
|
370
370
|
|
|
371
371
|
var id = 0;
|
|
372
372
|
var postfix = Math.random();
|
|
373
|
-
var toString = uncurryThis$
|
|
373
|
+
var toString$2 = uncurryThis$b(1.1.toString);
|
|
374
374
|
|
|
375
375
|
var uid$2 = function (key) {
|
|
376
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
376
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
var globalThis$
|
|
379
|
+
var globalThis$9 = globalThis_1;
|
|
380
380
|
var shared$2 = shared$3;
|
|
381
|
-
var hasOwn$
|
|
381
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
382
382
|
var uid$1 = uid$2;
|
|
383
383
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
384
384
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
385
385
|
|
|
386
|
-
var Symbol$1 = globalThis$
|
|
386
|
+
var Symbol$1 = globalThis$9.Symbol;
|
|
387
387
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
388
388
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
389
389
|
|
|
390
|
-
var wellKnownSymbol$
|
|
391
|
-
if (!hasOwn$
|
|
392
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
390
|
+
var wellKnownSymbol$c = function (name) {
|
|
391
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
392
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
|
|
393
393
|
? Symbol$1[name]
|
|
394
394
|
: createWellKnownSymbol('Symbol.' + name);
|
|
395
395
|
} return WellKnownSymbolsStore[name];
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
var call$
|
|
399
|
-
var isObject$
|
|
398
|
+
var call$b = functionCall;
|
|
399
|
+
var isObject$8 = isObject$a;
|
|
400
400
|
var isSymbol$1 = isSymbol$2;
|
|
401
401
|
var getMethod$3 = getMethod$4;
|
|
402
402
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
403
|
-
var wellKnownSymbol$
|
|
403
|
+
var wellKnownSymbol$b = wellKnownSymbol$c;
|
|
404
404
|
|
|
405
|
-
var $TypeError$
|
|
406
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
405
|
+
var $TypeError$9 = TypeError;
|
|
406
|
+
var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
|
|
407
407
|
|
|
408
408
|
// `ToPrimitive` abstract operation
|
|
409
409
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
410
410
|
var toPrimitive$1 = function (input, pref) {
|
|
411
|
-
if (!isObject$
|
|
411
|
+
if (!isObject$8(input) || isSymbol$1(input)) return input;
|
|
412
412
|
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
413
413
|
var result;
|
|
414
414
|
if (exoticToPrim) {
|
|
415
415
|
if (pref === undefined) pref = 'default';
|
|
416
|
-
result = call$
|
|
417
|
-
if (!isObject$
|
|
418
|
-
throw new $TypeError$
|
|
416
|
+
result = call$b(exoticToPrim, input, pref);
|
|
417
|
+
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
|
418
|
+
throw new $TypeError$9("Can't convert object to primitive value");
|
|
419
419
|
}
|
|
420
420
|
if (pref === undefined) pref = 'number';
|
|
421
421
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -431,36 +431,36 @@ var toPropertyKey$2 = function (argument) {
|
|
|
431
431
|
return isSymbol(key) ? key : key + '';
|
|
432
432
|
};
|
|
433
433
|
|
|
434
|
-
var globalThis$
|
|
435
|
-
var isObject$
|
|
434
|
+
var globalThis$8 = globalThis_1;
|
|
435
|
+
var isObject$7 = isObject$a;
|
|
436
436
|
|
|
437
|
-
var document$1 = globalThis$
|
|
437
|
+
var document$1 = globalThis$8.document;
|
|
438
438
|
// typeof document.createElement is 'object' in old IE
|
|
439
|
-
var EXISTS$1 = isObject$
|
|
439
|
+
var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
|
|
440
440
|
|
|
441
|
-
var documentCreateElement$
|
|
441
|
+
var documentCreateElement$2 = function (it) {
|
|
442
442
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
443
443
|
};
|
|
444
444
|
|
|
445
|
-
var DESCRIPTORS$
|
|
446
|
-
var fails$
|
|
447
|
-
var createElement = documentCreateElement$
|
|
445
|
+
var DESCRIPTORS$b = descriptors;
|
|
446
|
+
var fails$a = fails$f;
|
|
447
|
+
var createElement = documentCreateElement$2;
|
|
448
448
|
|
|
449
449
|
// Thanks to IE8 for its funny defineProperty
|
|
450
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
450
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$a(function () {
|
|
451
451
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
452
452
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
453
453
|
get: function () { return 7; }
|
|
454
454
|
}).a !== 7;
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
var DESCRIPTORS$
|
|
458
|
-
var call$
|
|
457
|
+
var DESCRIPTORS$a = descriptors;
|
|
458
|
+
var call$a = functionCall;
|
|
459
459
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
460
|
-
var createPropertyDescriptor$
|
|
461
|
-
var toIndexedObject$
|
|
460
|
+
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
461
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
462
462
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
463
|
-
var hasOwn$
|
|
463
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
464
464
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
465
465
|
|
|
466
466
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -468,23 +468,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
468
468
|
|
|
469
469
|
// `Object.getOwnPropertyDescriptor` method
|
|
470
470
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
471
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
472
|
-
O = toIndexedObject$
|
|
471
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
472
|
+
O = toIndexedObject$4(O);
|
|
473
473
|
P = toPropertyKey$1(P);
|
|
474
474
|
if (IE8_DOM_DEFINE$1) try {
|
|
475
475
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
476
476
|
} catch (error) { /* empty */ }
|
|
477
|
-
if (hasOwn$
|
|
477
|
+
if (hasOwn$9(O, P)) return createPropertyDescriptor$4(!call$a(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
478
478
|
};
|
|
479
479
|
|
|
480
480
|
var objectDefineProperty = {};
|
|
481
481
|
|
|
482
|
-
var DESCRIPTORS$
|
|
483
|
-
var fails$
|
|
482
|
+
var DESCRIPTORS$9 = descriptors;
|
|
483
|
+
var fails$9 = fails$f;
|
|
484
484
|
|
|
485
485
|
// V8 ~ Chrome 36-
|
|
486
486
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
487
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
487
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$9(function () {
|
|
488
488
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
489
489
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
490
490
|
value: 42,
|
|
@@ -492,24 +492,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$8(function () {
|
|
|
492
492
|
}).prototype !== 42;
|
|
493
493
|
});
|
|
494
494
|
|
|
495
|
-
var isObject$
|
|
495
|
+
var isObject$6 = isObject$a;
|
|
496
496
|
|
|
497
|
-
var $String$
|
|
498
|
-
var $TypeError$
|
|
497
|
+
var $String$3 = String;
|
|
498
|
+
var $TypeError$8 = TypeError;
|
|
499
499
|
|
|
500
500
|
// `Assert: Type(argument) is Object`
|
|
501
501
|
var anObject$d = function (argument) {
|
|
502
|
-
if (isObject$
|
|
503
|
-
throw new $TypeError$
|
|
502
|
+
if (isObject$6(argument)) return argument;
|
|
503
|
+
throw new $TypeError$8($String$3(argument) + ' is not an object');
|
|
504
504
|
};
|
|
505
505
|
|
|
506
|
-
var DESCRIPTORS$
|
|
506
|
+
var DESCRIPTORS$8 = descriptors;
|
|
507
507
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
508
508
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
509
509
|
var anObject$c = anObject$d;
|
|
510
510
|
var toPropertyKey = toPropertyKey$2;
|
|
511
511
|
|
|
512
|
-
var $TypeError$
|
|
512
|
+
var $TypeError$7 = TypeError;
|
|
513
513
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
514
514
|
var $defineProperty = Object.defineProperty;
|
|
515
515
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -520,7 +520,7 @@ var WRITABLE = 'writable';
|
|
|
520
520
|
|
|
521
521
|
// `Object.defineProperty` method
|
|
522
522
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
523
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
523
|
+
objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
524
524
|
anObject$c(O);
|
|
525
525
|
P = toPropertyKey(P);
|
|
526
526
|
anObject$c(Attributes);
|
|
@@ -542,17 +542,17 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
542
542
|
if (IE8_DOM_DEFINE) try {
|
|
543
543
|
return $defineProperty(O, P, Attributes);
|
|
544
544
|
} catch (error) { /* empty */ }
|
|
545
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
545
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
|
|
546
546
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
547
547
|
return O;
|
|
548
548
|
};
|
|
549
549
|
|
|
550
|
-
var DESCRIPTORS$
|
|
550
|
+
var DESCRIPTORS$7 = descriptors;
|
|
551
551
|
var definePropertyModule$4 = objectDefineProperty;
|
|
552
|
-
var createPropertyDescriptor$
|
|
552
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
553
553
|
|
|
554
|
-
var createNonEnumerableProperty$
|
|
555
|
-
return definePropertyModule$4.f(object, key, createPropertyDescriptor$
|
|
554
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$7 ? function (object, key, value) {
|
|
555
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
|
|
556
556
|
} : function (object, key, value) {
|
|
557
557
|
object[key] = value;
|
|
558
558
|
return object;
|
|
@@ -560,28 +560,31 @@ var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value
|
|
|
560
560
|
|
|
561
561
|
var makeBuiltIn$3 = {exports: {}};
|
|
562
562
|
|
|
563
|
-
var DESCRIPTORS$
|
|
564
|
-
var hasOwn$
|
|
563
|
+
var DESCRIPTORS$6 = descriptors;
|
|
564
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
565
565
|
|
|
566
566
|
var FunctionPrototype$1 = Function.prototype;
|
|
567
567
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
568
|
-
var getDescriptor = DESCRIPTORS$
|
|
568
|
+
var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
|
|
569
569
|
|
|
570
|
-
var EXISTS = hasOwn$
|
|
571
|
-
|
|
570
|
+
var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
|
|
571
|
+
// additional protection from minified / mangled / dropped function names
|
|
572
|
+
var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
|
|
573
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
572
574
|
|
|
573
575
|
var functionName = {
|
|
576
|
+
PROPER: PROPER,
|
|
574
577
|
CONFIGURABLE: CONFIGURABLE
|
|
575
578
|
};
|
|
576
579
|
|
|
577
|
-
var uncurryThis$
|
|
578
|
-
var isCallable$
|
|
580
|
+
var uncurryThis$a = functionUncurryThis;
|
|
581
|
+
var isCallable$a = isCallable$g;
|
|
579
582
|
var store$1 = sharedStoreExports;
|
|
580
583
|
|
|
581
|
-
var functionToString = uncurryThis$
|
|
584
|
+
var functionToString = uncurryThis$a(Function.toString);
|
|
582
585
|
|
|
583
586
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
584
|
-
if (!isCallable$
|
|
587
|
+
if (!isCallable$a(store$1.inspectSource)) {
|
|
585
588
|
store$1.inspectSource = function (it) {
|
|
586
589
|
return functionToString(it);
|
|
587
590
|
};
|
|
@@ -589,12 +592,12 @@ if (!isCallable$8(store$1.inspectSource)) {
|
|
|
589
592
|
|
|
590
593
|
var inspectSource$1 = store$1.inspectSource;
|
|
591
594
|
|
|
592
|
-
var globalThis$
|
|
593
|
-
var isCallable$
|
|
595
|
+
var globalThis$7 = globalThis_1;
|
|
596
|
+
var isCallable$9 = isCallable$g;
|
|
594
597
|
|
|
595
|
-
var WeakMap$1 = globalThis$
|
|
598
|
+
var WeakMap$1 = globalThis$7.WeakMap;
|
|
596
599
|
|
|
597
|
-
var weakMapBasicDetection = isCallable$
|
|
600
|
+
var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
598
601
|
|
|
599
602
|
var shared$1 = shared$3;
|
|
600
603
|
var uid = uid$2;
|
|
@@ -608,27 +611,27 @@ var sharedKey$3 = function (key) {
|
|
|
608
611
|
var hiddenKeys$4 = {};
|
|
609
612
|
|
|
610
613
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
611
|
-
var globalThis$
|
|
612
|
-
var isObject$
|
|
613
|
-
var createNonEnumerableProperty$
|
|
614
|
-
var hasOwn$
|
|
614
|
+
var globalThis$6 = globalThis_1;
|
|
615
|
+
var isObject$5 = isObject$a;
|
|
616
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
617
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
615
618
|
var shared = sharedStoreExports;
|
|
616
619
|
var sharedKey$2 = sharedKey$3;
|
|
617
620
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
618
621
|
|
|
619
622
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
620
|
-
var TypeError$1 = globalThis$
|
|
621
|
-
var WeakMap = globalThis$
|
|
622
|
-
var set$2, get$2, has$
|
|
623
|
+
var TypeError$1 = globalThis$6.TypeError;
|
|
624
|
+
var WeakMap = globalThis$6.WeakMap;
|
|
625
|
+
var set$2, get$2, has$8;
|
|
623
626
|
|
|
624
627
|
var enforce = function (it) {
|
|
625
|
-
return has$
|
|
628
|
+
return has$8(it) ? get$2(it) : set$2(it, {});
|
|
626
629
|
};
|
|
627
630
|
|
|
628
631
|
var getterFor = function (TYPE) {
|
|
629
632
|
return function (it) {
|
|
630
633
|
var state;
|
|
631
|
-
if (!isObject$
|
|
634
|
+
if (!isObject$5(it) || (state = get$2(it)).type !== TYPE) {
|
|
632
635
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
633
636
|
} return state;
|
|
634
637
|
};
|
|
@@ -650,79 +653,79 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
650
653
|
get$2 = function (it) {
|
|
651
654
|
return store.get(it) || {};
|
|
652
655
|
};
|
|
653
|
-
has$
|
|
656
|
+
has$8 = function (it) {
|
|
654
657
|
return store.has(it);
|
|
655
658
|
};
|
|
656
659
|
} else {
|
|
657
660
|
var STATE = sharedKey$2('state');
|
|
658
661
|
hiddenKeys$3[STATE] = true;
|
|
659
662
|
set$2 = function (it, metadata) {
|
|
660
|
-
if (hasOwn$
|
|
663
|
+
if (hasOwn$7(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
661
664
|
metadata.facade = it;
|
|
662
|
-
createNonEnumerableProperty$
|
|
665
|
+
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
663
666
|
return metadata;
|
|
664
667
|
};
|
|
665
668
|
get$2 = function (it) {
|
|
666
|
-
return hasOwn$
|
|
669
|
+
return hasOwn$7(it, STATE) ? it[STATE] : {};
|
|
667
670
|
};
|
|
668
|
-
has$
|
|
669
|
-
return hasOwn$
|
|
671
|
+
has$8 = function (it) {
|
|
672
|
+
return hasOwn$7(it, STATE);
|
|
670
673
|
};
|
|
671
674
|
}
|
|
672
675
|
|
|
673
676
|
var internalState = {
|
|
674
677
|
set: set$2,
|
|
675
678
|
get: get$2,
|
|
676
|
-
has: has$
|
|
679
|
+
has: has$8,
|
|
677
680
|
enforce: enforce,
|
|
678
681
|
getterFor: getterFor
|
|
679
682
|
};
|
|
680
683
|
|
|
681
|
-
var uncurryThis$
|
|
682
|
-
var fails$
|
|
683
|
-
var isCallable$
|
|
684
|
-
var hasOwn$
|
|
685
|
-
var DESCRIPTORS$
|
|
686
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
684
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
685
|
+
var fails$8 = fails$f;
|
|
686
|
+
var isCallable$8 = isCallable$g;
|
|
687
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
688
|
+
var DESCRIPTORS$5 = descriptors;
|
|
689
|
+
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
687
690
|
var inspectSource = inspectSource$1;
|
|
688
|
-
var InternalStateModule$
|
|
691
|
+
var InternalStateModule$2 = internalState;
|
|
689
692
|
|
|
690
|
-
var enforceInternalState = InternalStateModule$
|
|
691
|
-
var getInternalState = InternalStateModule$
|
|
692
|
-
var $String = String;
|
|
693
|
+
var enforceInternalState = InternalStateModule$2.enforce;
|
|
694
|
+
var getInternalState$1 = InternalStateModule$2.get;
|
|
695
|
+
var $String$2 = String;
|
|
693
696
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
694
|
-
var defineProperty$
|
|
695
|
-
var stringSlice = uncurryThis$
|
|
696
|
-
var replace = uncurryThis$
|
|
697
|
-
var join = uncurryThis$
|
|
697
|
+
var defineProperty$5 = Object.defineProperty;
|
|
698
|
+
var stringSlice = uncurryThis$9(''.slice);
|
|
699
|
+
var replace$1 = uncurryThis$9(''.replace);
|
|
700
|
+
var join = uncurryThis$9([].join);
|
|
698
701
|
|
|
699
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
700
|
-
return defineProperty$
|
|
702
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$8(function () {
|
|
703
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
701
704
|
});
|
|
702
705
|
|
|
703
706
|
var TEMPLATE = String(String).split('String');
|
|
704
707
|
|
|
705
708
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
706
|
-
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
707
|
-
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
709
|
+
if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
|
|
710
|
+
name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
708
711
|
}
|
|
709
712
|
if (options && options.getter) name = 'get ' + name;
|
|
710
713
|
if (options && options.setter) name = 'set ' + name;
|
|
711
|
-
if (!hasOwn$
|
|
712
|
-
if (DESCRIPTORS$
|
|
714
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
715
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
713
716
|
else value.name = name;
|
|
714
717
|
}
|
|
715
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
716
|
-
defineProperty$
|
|
718
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
719
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
717
720
|
}
|
|
718
721
|
try {
|
|
719
|
-
if (options && hasOwn$
|
|
720
|
-
if (DESCRIPTORS$
|
|
722
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
723
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
|
|
721
724
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
722
725
|
} else if (value.prototype) value.prototype = undefined;
|
|
723
726
|
} catch (error) { /* empty */ }
|
|
724
727
|
var state = enforceInternalState(value);
|
|
725
|
-
if (!hasOwn$
|
|
728
|
+
if (!hasOwn$6(state, 'source')) {
|
|
726
729
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
727
730
|
} return value;
|
|
728
731
|
};
|
|
@@ -730,21 +733,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
730
733
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
731
734
|
// eslint-disable-next-line no-extend-native -- required
|
|
732
735
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
733
|
-
return isCallable$
|
|
736
|
+
return isCallable$8(this) && getInternalState$1(this).source || inspectSource(this);
|
|
734
737
|
}, 'toString');
|
|
735
738
|
|
|
736
739
|
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
737
740
|
|
|
738
|
-
var isCallable$
|
|
741
|
+
var isCallable$7 = isCallable$g;
|
|
739
742
|
var definePropertyModule$3 = objectDefineProperty;
|
|
740
743
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
741
744
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
742
745
|
|
|
743
|
-
var defineBuiltIn$
|
|
746
|
+
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
744
747
|
if (!options) options = {};
|
|
745
748
|
var simple = options.enumerable;
|
|
746
749
|
var name = options.name !== undefined ? options.name : key;
|
|
747
|
-
if (isCallable$
|
|
750
|
+
if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
|
|
748
751
|
if (options.global) {
|
|
749
752
|
if (simple) O[key] = value;
|
|
750
753
|
else defineGlobalProperty$1(key, value);
|
|
@@ -818,14 +821,14 @@ var lengthOfArrayLike$2 = function (obj) {
|
|
|
818
821
|
return toLength(obj.length);
|
|
819
822
|
};
|
|
820
823
|
|
|
821
|
-
var toIndexedObject$
|
|
824
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
822
825
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
823
826
|
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
824
827
|
|
|
825
828
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
826
829
|
var createMethod = function (IS_INCLUDES) {
|
|
827
830
|
return function ($this, el, fromIndex) {
|
|
828
|
-
var O = toIndexedObject$
|
|
831
|
+
var O = toIndexedObject$3($this);
|
|
829
832
|
var length = lengthOfArrayLike$1(O);
|
|
830
833
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
831
834
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
@@ -849,22 +852,22 @@ var arrayIncludes = {
|
|
|
849
852
|
indexOf: createMethod(false)
|
|
850
853
|
};
|
|
851
854
|
|
|
852
|
-
var uncurryThis$
|
|
853
|
-
var hasOwn$
|
|
854
|
-
var toIndexedObject$
|
|
855
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
856
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
857
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
855
858
|
var indexOf = arrayIncludes.indexOf;
|
|
856
859
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
857
860
|
|
|
858
|
-
var push = uncurryThis$
|
|
861
|
+
var push = uncurryThis$8([].push);
|
|
859
862
|
|
|
860
863
|
var objectKeysInternal = function (object, names) {
|
|
861
|
-
var O = toIndexedObject$
|
|
864
|
+
var O = toIndexedObject$2(object);
|
|
862
865
|
var i = 0;
|
|
863
866
|
var result = [];
|
|
864
867
|
var key;
|
|
865
|
-
for (key in O) !hasOwn$
|
|
868
|
+
for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push(result, key);
|
|
866
869
|
// Don't enum bug & hidden keys
|
|
867
|
-
while (names.length > i) if (hasOwn$
|
|
870
|
+
while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
|
|
868
871
|
~indexOf(result, key) || push(result, key);
|
|
869
872
|
}
|
|
870
873
|
return result;
|
|
@@ -898,40 +901,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
898
901
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
899
902
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
900
903
|
|
|
901
|
-
var getBuiltIn$
|
|
902
|
-
var uncurryThis$
|
|
904
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
905
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
903
906
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
904
907
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
905
908
|
var anObject$b = anObject$d;
|
|
906
909
|
|
|
907
|
-
var concat = uncurryThis$
|
|
910
|
+
var concat = uncurryThis$7([].concat);
|
|
908
911
|
|
|
909
912
|
// all object keys, includes non-enumerable and symbols
|
|
910
|
-
var ownKeys$1 = getBuiltIn$
|
|
913
|
+
var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
911
914
|
var keys = getOwnPropertyNamesModule.f(anObject$b(it));
|
|
912
915
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
913
916
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
914
917
|
};
|
|
915
918
|
|
|
916
|
-
var hasOwn$
|
|
919
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
917
920
|
var ownKeys = ownKeys$1;
|
|
918
921
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
919
922
|
var definePropertyModule$2 = objectDefineProperty;
|
|
920
923
|
|
|
921
|
-
var copyConstructorProperties$
|
|
924
|
+
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
922
925
|
var keys = ownKeys(source);
|
|
923
926
|
var defineProperty = definePropertyModule$2.f;
|
|
924
927
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
925
928
|
for (var i = 0; i < keys.length; i++) {
|
|
926
929
|
var key = keys[i];
|
|
927
|
-
if (!hasOwn$
|
|
930
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
928
931
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
929
932
|
}
|
|
930
933
|
}
|
|
931
934
|
};
|
|
932
935
|
|
|
933
|
-
var fails$
|
|
934
|
-
var isCallable$
|
|
936
|
+
var fails$7 = fails$f;
|
|
937
|
+
var isCallable$6 = isCallable$g;
|
|
935
938
|
|
|
936
939
|
var replacement = /#|\.prototype\./;
|
|
937
940
|
|
|
@@ -939,7 +942,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
939
942
|
var value = data[normalize(feature)];
|
|
940
943
|
return value === POLYFILL ? true
|
|
941
944
|
: value === NATIVE ? false
|
|
942
|
-
: isCallable$
|
|
945
|
+
: isCallable$6(detection) ? fails$7(detection)
|
|
943
946
|
: !!detection;
|
|
944
947
|
};
|
|
945
948
|
|
|
@@ -953,12 +956,12 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
953
956
|
|
|
954
957
|
var isForced_1 = isForced$1;
|
|
955
958
|
|
|
956
|
-
var globalThis$
|
|
959
|
+
var globalThis$5 = globalThis_1;
|
|
957
960
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
958
|
-
var createNonEnumerableProperty$
|
|
959
|
-
var defineBuiltIn$
|
|
961
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
962
|
+
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
960
963
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
961
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
964
|
+
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
962
965
|
var isForced = isForced_1;
|
|
963
966
|
|
|
964
967
|
/*
|
|
@@ -982,11 +985,11 @@ var _export = function (options, source) {
|
|
|
982
985
|
var STATIC = options.stat;
|
|
983
986
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
984
987
|
if (GLOBAL) {
|
|
985
|
-
target = globalThis$
|
|
988
|
+
target = globalThis$5;
|
|
986
989
|
} else if (STATIC) {
|
|
987
|
-
target = globalThis$
|
|
990
|
+
target = globalThis$5[TARGET] || defineGlobalProperty(TARGET, {});
|
|
988
991
|
} else {
|
|
989
|
-
target = globalThis$
|
|
992
|
+
target = globalThis$5[TARGET] && globalThis$5[TARGET].prototype;
|
|
990
993
|
}
|
|
991
994
|
if (target) for (key in source) {
|
|
992
995
|
sourceProperty = source[key];
|
|
@@ -998,36 +1001,36 @@ var _export = function (options, source) {
|
|
|
998
1001
|
// contained in target
|
|
999
1002
|
if (!FORCED && targetProperty !== undefined) {
|
|
1000
1003
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1001
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1004
|
+
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
1002
1005
|
}
|
|
1003
1006
|
// add a flag to not completely full polyfills
|
|
1004
1007
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1005
|
-
createNonEnumerableProperty$
|
|
1008
|
+
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1006
1009
|
}
|
|
1007
|
-
defineBuiltIn$
|
|
1010
|
+
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
1008
1011
|
}
|
|
1009
1012
|
};
|
|
1010
1013
|
|
|
1011
|
-
var isPrototypeOf$
|
|
1014
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1012
1015
|
|
|
1013
|
-
var $TypeError$
|
|
1016
|
+
var $TypeError$6 = TypeError;
|
|
1014
1017
|
|
|
1015
1018
|
var anInstance$1 = function (it, Prototype) {
|
|
1016
|
-
if (isPrototypeOf$
|
|
1017
|
-
throw new $TypeError$
|
|
1019
|
+
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
1020
|
+
throw new $TypeError$6('Incorrect invocation');
|
|
1018
1021
|
};
|
|
1019
1022
|
|
|
1020
|
-
var fails$
|
|
1023
|
+
var fails$6 = fails$f;
|
|
1021
1024
|
|
|
1022
|
-
var correctPrototypeGetter = !fails$
|
|
1025
|
+
var correctPrototypeGetter = !fails$6(function () {
|
|
1023
1026
|
function F() { /* empty */ }
|
|
1024
1027
|
F.prototype.constructor = null;
|
|
1025
1028
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1026
1029
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1027
1030
|
});
|
|
1028
1031
|
|
|
1029
|
-
var hasOwn$
|
|
1030
|
-
var isCallable$
|
|
1032
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1033
|
+
var isCallable$5 = isCallable$g;
|
|
1031
1034
|
var toObject = toObject$2;
|
|
1032
1035
|
var sharedKey$1 = sharedKey$3;
|
|
1033
1036
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -1041,28 +1044,28 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1041
1044
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1042
1045
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1043
1046
|
var object = toObject(O);
|
|
1044
|
-
if (hasOwn$
|
|
1047
|
+
if (hasOwn$3(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
1045
1048
|
var constructor = object.constructor;
|
|
1046
|
-
if (isCallable$
|
|
1049
|
+
if (isCallable$5(constructor) && object instanceof constructor) {
|
|
1047
1050
|
return constructor.prototype;
|
|
1048
1051
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1049
1052
|
};
|
|
1050
1053
|
|
|
1051
1054
|
var makeBuiltIn = makeBuiltInExports;
|
|
1052
|
-
var defineProperty = objectDefineProperty;
|
|
1055
|
+
var defineProperty$4 = objectDefineProperty;
|
|
1053
1056
|
|
|
1054
1057
|
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
1055
1058
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1056
1059
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1057
|
-
return defineProperty.f(target, name, descriptor);
|
|
1060
|
+
return defineProperty$4.f(target, name, descriptor);
|
|
1058
1061
|
};
|
|
1059
1062
|
|
|
1060
|
-
var DESCRIPTORS$
|
|
1063
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1061
1064
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1062
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1065
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
1063
1066
|
|
|
1064
|
-
var createProperty$
|
|
1065
|
-
if (DESCRIPTORS$
|
|
1067
|
+
var createProperty$2 = function (object, key, value) {
|
|
1068
|
+
if (DESCRIPTORS$4) definePropertyModule$1.f(object, key, createPropertyDescriptor$2(0, value));
|
|
1066
1069
|
else object[key] = value;
|
|
1067
1070
|
};
|
|
1068
1071
|
|
|
@@ -1078,19 +1081,19 @@ var objectKeys$1 = Object.keys || function keys(O) {
|
|
|
1078
1081
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1079
1082
|
};
|
|
1080
1083
|
|
|
1081
|
-
var DESCRIPTORS$
|
|
1084
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1082
1085
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1083
1086
|
var definePropertyModule = objectDefineProperty;
|
|
1084
1087
|
var anObject$a = anObject$d;
|
|
1085
|
-
var toIndexedObject = toIndexedObject$
|
|
1088
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1086
1089
|
var objectKeys = objectKeys$1;
|
|
1087
1090
|
|
|
1088
1091
|
// `Object.defineProperties` method
|
|
1089
1092
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1090
1093
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1091
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1094
|
+
objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1092
1095
|
anObject$a(O);
|
|
1093
|
-
var props = toIndexedObject(Properties);
|
|
1096
|
+
var props = toIndexedObject$1(Properties);
|
|
1094
1097
|
var keys = objectKeys(Properties);
|
|
1095
1098
|
var length = keys.length;
|
|
1096
1099
|
var index = 0;
|
|
@@ -1099,9 +1102,9 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1099
1102
|
return O;
|
|
1100
1103
|
};
|
|
1101
1104
|
|
|
1102
|
-
var getBuiltIn$
|
|
1105
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1103
1106
|
|
|
1104
|
-
var html$1 = getBuiltIn$
|
|
1107
|
+
var html$1 = getBuiltIn$2('document', 'documentElement');
|
|
1105
1108
|
|
|
1106
1109
|
/* global ActiveXObject -- old IE, WSH */
|
|
1107
1110
|
var anObject$9 = anObject$d;
|
|
@@ -1109,7 +1112,7 @@ var definePropertiesModule = objectDefineProperties;
|
|
|
1109
1112
|
var enumBugKeys = enumBugKeys$3;
|
|
1110
1113
|
var hiddenKeys = hiddenKeys$4;
|
|
1111
1114
|
var html = html$1;
|
|
1112
|
-
var documentCreateElement = documentCreateElement$
|
|
1115
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
1113
1116
|
var sharedKey = sharedKey$3;
|
|
1114
1117
|
|
|
1115
1118
|
var GT = '>';
|
|
@@ -1137,7 +1140,7 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
|
1137
1140
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1138
1141
|
var NullProtoObjectViaIFrame = function () {
|
|
1139
1142
|
// Thrash, waste and sodomy: IE GC bug
|
|
1140
|
-
var iframe = documentCreateElement('iframe');
|
|
1143
|
+
var iframe = documentCreateElement$1('iframe');
|
|
1141
1144
|
var JS = 'java' + SCRIPT + ':';
|
|
1142
1145
|
var iframeDocument;
|
|
1143
1146
|
iframe.style.display = 'none';
|
|
@@ -1188,127 +1191,130 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1188
1191
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1189
1192
|
};
|
|
1190
1193
|
|
|
1191
|
-
var fails$
|
|
1192
|
-
var isCallable$
|
|
1193
|
-
var isObject = isObject$
|
|
1194
|
-
var getPrototypeOf$
|
|
1195
|
-
var defineBuiltIn$
|
|
1196
|
-
var wellKnownSymbol$
|
|
1194
|
+
var fails$5 = fails$f;
|
|
1195
|
+
var isCallable$4 = isCallable$g;
|
|
1196
|
+
var isObject$4 = isObject$a;
|
|
1197
|
+
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1198
|
+
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1199
|
+
var wellKnownSymbol$a = wellKnownSymbol$c;
|
|
1197
1200
|
|
|
1198
|
-
var ITERATOR$
|
|
1201
|
+
var ITERATOR$5 = wellKnownSymbol$a('iterator');
|
|
1202
|
+
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1199
1203
|
|
|
1200
1204
|
// `%IteratorPrototype%` object
|
|
1201
1205
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1202
|
-
var IteratorPrototype$
|
|
1206
|
+
var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1203
1207
|
|
|
1204
1208
|
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1205
1209
|
if ([].keys) {
|
|
1206
1210
|
arrayIterator = [].keys();
|
|
1207
1211
|
// Safari 8 has buggy iterators w/o `next`
|
|
1208
|
-
if (!('next' in arrayIterator)) ;
|
|
1212
|
+
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1209
1213
|
else {
|
|
1210
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$
|
|
1211
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$
|
|
1214
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
|
|
1215
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
|
|
1212
1216
|
}
|
|
1213
1217
|
}
|
|
1214
1218
|
|
|
1215
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$
|
|
1219
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$4) || fails$5(function () {
|
|
1216
1220
|
var test = {};
|
|
1217
1221
|
// FF44- legacy iterators case
|
|
1218
|
-
return IteratorPrototype$
|
|
1222
|
+
return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
|
|
1219
1223
|
});
|
|
1220
1224
|
|
|
1221
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$
|
|
1225
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
|
|
1222
1226
|
|
|
1223
1227
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1224
1228
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1225
|
-
if (!isCallable$
|
|
1226
|
-
defineBuiltIn$
|
|
1229
|
+
if (!isCallable$4(IteratorPrototype$4[ITERATOR$5])) {
|
|
1230
|
+
defineBuiltIn$2(IteratorPrototype$4, ITERATOR$5, function () {
|
|
1227
1231
|
return this;
|
|
1228
1232
|
});
|
|
1229
1233
|
}
|
|
1230
1234
|
|
|
1231
1235
|
var iteratorsCore = {
|
|
1232
|
-
IteratorPrototype: IteratorPrototype$
|
|
1236
|
+
IteratorPrototype: IteratorPrototype$4,
|
|
1237
|
+
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1238
|
+
};
|
|
1233
1239
|
|
|
1234
|
-
var $$
|
|
1235
|
-
var globalThis$
|
|
1240
|
+
var $$f = _export;
|
|
1241
|
+
var globalThis$4 = globalThis_1;
|
|
1236
1242
|
var anInstance = anInstance$1;
|
|
1237
1243
|
var anObject$8 = anObject$d;
|
|
1238
|
-
var isCallable$
|
|
1239
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
1244
|
+
var isCallable$3 = isCallable$g;
|
|
1245
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1240
1246
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
1241
|
-
var createProperty = createProperty$
|
|
1242
|
-
var fails$
|
|
1243
|
-
var hasOwn = hasOwnProperty_1;
|
|
1244
|
-
var wellKnownSymbol$
|
|
1245
|
-
var IteratorPrototype$
|
|
1246
|
-
var DESCRIPTORS = descriptors;
|
|
1247
|
+
var createProperty$1 = createProperty$2;
|
|
1248
|
+
var fails$4 = fails$f;
|
|
1249
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1250
|
+
var wellKnownSymbol$9 = wellKnownSymbol$c;
|
|
1251
|
+
var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
|
|
1252
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1247
1253
|
|
|
1248
1254
|
var CONSTRUCTOR = 'constructor';
|
|
1249
|
-
var ITERATOR$
|
|
1250
|
-
var TO_STRING_TAG$
|
|
1255
|
+
var ITERATOR$4 = 'Iterator';
|
|
1256
|
+
var TO_STRING_TAG$4 = wellKnownSymbol$9('toStringTag');
|
|
1251
1257
|
|
|
1252
|
-
var $TypeError$
|
|
1253
|
-
var NativeIterator = globalThis$
|
|
1258
|
+
var $TypeError$5 = TypeError;
|
|
1259
|
+
var NativeIterator = globalThis$4[ITERATOR$4];
|
|
1254
1260
|
|
|
1255
1261
|
// FF56- have non-standard global helper `Iterator`
|
|
1256
|
-
var FORCED$
|
|
1257
|
-
|| NativeIterator.prototype !== IteratorPrototype$
|
|
1262
|
+
var FORCED$5 = !isCallable$3(NativeIterator)
|
|
1263
|
+
|| NativeIterator.prototype !== IteratorPrototype$3
|
|
1258
1264
|
// FF44- non-standard `Iterator` passes previous tests
|
|
1259
|
-
|| !fails$
|
|
1265
|
+
|| !fails$4(function () { NativeIterator({}); });
|
|
1260
1266
|
|
|
1261
1267
|
var IteratorConstructor = function Iterator() {
|
|
1262
|
-
anInstance(this, IteratorPrototype$
|
|
1263
|
-
if (getPrototypeOf(this) === IteratorPrototype$
|
|
1268
|
+
anInstance(this, IteratorPrototype$3);
|
|
1269
|
+
if (getPrototypeOf$1(this) === IteratorPrototype$3) throw new $TypeError$5('Abstract class Iterator not directly constructable');
|
|
1264
1270
|
};
|
|
1265
1271
|
|
|
1266
1272
|
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
1267
|
-
if (DESCRIPTORS) {
|
|
1268
|
-
defineBuiltInAccessor(IteratorPrototype$
|
|
1273
|
+
if (DESCRIPTORS$2) {
|
|
1274
|
+
defineBuiltInAccessor(IteratorPrototype$3, key, {
|
|
1269
1275
|
configurable: true,
|
|
1270
1276
|
get: function () {
|
|
1271
1277
|
return value;
|
|
1272
1278
|
},
|
|
1273
1279
|
set: function (replacement) {
|
|
1274
1280
|
anObject$8(this);
|
|
1275
|
-
if (this === IteratorPrototype$
|
|
1276
|
-
if (hasOwn(this, key)) this[key] = replacement;
|
|
1277
|
-
else createProperty(this, key, replacement);
|
|
1281
|
+
if (this === IteratorPrototype$3) throw new $TypeError$5("You can't redefine this property");
|
|
1282
|
+
if (hasOwn$2(this, key)) this[key] = replacement;
|
|
1283
|
+
else createProperty$1(this, key, replacement);
|
|
1278
1284
|
}
|
|
1279
1285
|
});
|
|
1280
|
-
} else IteratorPrototype$
|
|
1286
|
+
} else IteratorPrototype$3[key] = value;
|
|
1281
1287
|
};
|
|
1282
1288
|
|
|
1283
|
-
if (!hasOwn(IteratorPrototype$
|
|
1289
|
+
if (!hasOwn$2(IteratorPrototype$3, TO_STRING_TAG$4)) defineIteratorPrototypeAccessor(TO_STRING_TAG$4, ITERATOR$4);
|
|
1284
1290
|
|
|
1285
|
-
if (FORCED$
|
|
1291
|
+
if (FORCED$5 || !hasOwn$2(IteratorPrototype$3, CONSTRUCTOR) || IteratorPrototype$3[CONSTRUCTOR] === Object) {
|
|
1286
1292
|
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
1287
1293
|
}
|
|
1288
1294
|
|
|
1289
|
-
IteratorConstructor.prototype = IteratorPrototype$
|
|
1295
|
+
IteratorConstructor.prototype = IteratorPrototype$3;
|
|
1290
1296
|
|
|
1291
1297
|
// `Iterator` constructor
|
|
1292
1298
|
// https://tc39.es/ecma262/#sec-iterator
|
|
1293
|
-
$$
|
|
1299
|
+
$$f({ global: true, constructor: true, forced: FORCED$5 }, {
|
|
1294
1300
|
Iterator: IteratorConstructor
|
|
1295
1301
|
});
|
|
1296
1302
|
|
|
1297
1303
|
var classofRaw$1 = classofRaw$2;
|
|
1298
|
-
var uncurryThis$
|
|
1304
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1299
1305
|
|
|
1300
1306
|
var functionUncurryThisClause = function (fn) {
|
|
1301
1307
|
// Nashorn bug:
|
|
1302
1308
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1303
1309
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1304
|
-
if (classofRaw$1(fn) === 'Function') return uncurryThis$
|
|
1310
|
+
if (classofRaw$1(fn) === 'Function') return uncurryThis$6(fn);
|
|
1305
1311
|
};
|
|
1306
1312
|
|
|
1307
|
-
var uncurryThis$
|
|
1313
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
1308
1314
|
var aCallable$7 = aCallable$9;
|
|
1309
1315
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1310
1316
|
|
|
1311
|
-
var bind$1 = uncurryThis$
|
|
1317
|
+
var bind$1 = uncurryThis$5(uncurryThis$5.bind);
|
|
1312
1318
|
|
|
1313
1319
|
// optional / simple context binding
|
|
1314
1320
|
var functionBindContext = function (fn, that) {
|
|
@@ -1320,32 +1326,32 @@ var functionBindContext = function (fn, that) {
|
|
|
1320
1326
|
|
|
1321
1327
|
var iterators = {};
|
|
1322
1328
|
|
|
1323
|
-
var wellKnownSymbol$
|
|
1324
|
-
var Iterators$
|
|
1329
|
+
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1330
|
+
var Iterators$4 = iterators;
|
|
1325
1331
|
|
|
1326
|
-
var ITERATOR$
|
|
1327
|
-
var ArrayPrototype = Array.prototype;
|
|
1332
|
+
var ITERATOR$3 = wellKnownSymbol$8('iterator');
|
|
1333
|
+
var ArrayPrototype$1 = Array.prototype;
|
|
1328
1334
|
|
|
1329
1335
|
// check on default Array iterator
|
|
1330
1336
|
var isArrayIteratorMethod$1 = function (it) {
|
|
1331
|
-
return it !== undefined && (Iterators$
|
|
1337
|
+
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$3] === it);
|
|
1332
1338
|
};
|
|
1333
1339
|
|
|
1334
|
-
var wellKnownSymbol$
|
|
1340
|
+
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1335
1341
|
|
|
1336
|
-
var TO_STRING_TAG$
|
|
1342
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$7('toStringTag');
|
|
1337
1343
|
var test = {};
|
|
1338
1344
|
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1339
|
-
test[TO_STRING_TAG$
|
|
1345
|
+
test[TO_STRING_TAG$3] = 'z';
|
|
1340
1346
|
|
|
1341
1347
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1342
1348
|
|
|
1343
1349
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1344
|
-
var isCallable = isCallable$
|
|
1350
|
+
var isCallable$2 = isCallable$g;
|
|
1345
1351
|
var classofRaw = classofRaw$2;
|
|
1346
|
-
var wellKnownSymbol$
|
|
1352
|
+
var wellKnownSymbol$6 = wellKnownSymbol$c;
|
|
1347
1353
|
|
|
1348
|
-
var TO_STRING_TAG$
|
|
1354
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
|
|
1349
1355
|
var $Object = Object;
|
|
1350
1356
|
|
|
1351
1357
|
// ES3 wrong here
|
|
@@ -1359,46 +1365,46 @@ var tryGet = function (it, key) {
|
|
|
1359
1365
|
};
|
|
1360
1366
|
|
|
1361
1367
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1362
|
-
var classof$
|
|
1368
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1363
1369
|
var O, tag, result;
|
|
1364
1370
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1365
1371
|
// @@toStringTag case
|
|
1366
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$
|
|
1372
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$2)) == 'string' ? tag
|
|
1367
1373
|
// builtinTag case
|
|
1368
1374
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1369
1375
|
// ES3 arguments fallback
|
|
1370
|
-
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1376
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1371
1377
|
};
|
|
1372
1378
|
|
|
1373
|
-
var classof = classof$
|
|
1379
|
+
var classof$1 = classof$2;
|
|
1374
1380
|
var getMethod$2 = getMethod$4;
|
|
1375
1381
|
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1376
|
-
var Iterators = iterators;
|
|
1377
|
-
var wellKnownSymbol$
|
|
1382
|
+
var Iterators$3 = iterators;
|
|
1383
|
+
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
1378
1384
|
|
|
1379
|
-
var ITERATOR = wellKnownSymbol$
|
|
1385
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
1380
1386
|
|
|
1381
1387
|
var getIteratorMethod$2 = function (it) {
|
|
1382
|
-
if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR)
|
|
1388
|
+
if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR$2)
|
|
1383
1389
|
|| getMethod$2(it, '@@iterator')
|
|
1384
|
-
|| Iterators[classof(it)];
|
|
1390
|
+
|| Iterators$3[classof$1(it)];
|
|
1385
1391
|
};
|
|
1386
1392
|
|
|
1387
|
-
var call$
|
|
1393
|
+
var call$9 = functionCall;
|
|
1388
1394
|
var aCallable$6 = aCallable$9;
|
|
1389
1395
|
var anObject$7 = anObject$d;
|
|
1390
1396
|
var tryToString$1 = tryToString$3;
|
|
1391
1397
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1392
1398
|
|
|
1393
|
-
var $TypeError$
|
|
1399
|
+
var $TypeError$4 = TypeError;
|
|
1394
1400
|
|
|
1395
1401
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1396
1402
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1397
|
-
if (aCallable$6(iteratorMethod)) return anObject$7(call$
|
|
1398
|
-
throw new $TypeError$
|
|
1403
|
+
if (aCallable$6(iteratorMethod)) return anObject$7(call$9(iteratorMethod, argument));
|
|
1404
|
+
throw new $TypeError$4(tryToString$1(argument) + ' is not iterable');
|
|
1399
1405
|
};
|
|
1400
1406
|
|
|
1401
|
-
var call$
|
|
1407
|
+
var call$8 = functionCall;
|
|
1402
1408
|
var anObject$6 = anObject$d;
|
|
1403
1409
|
var getMethod$1 = getMethod$4;
|
|
1404
1410
|
|
|
@@ -1411,7 +1417,7 @@ var iteratorClose$9 = function (iterator, kind, value) {
|
|
|
1411
1417
|
if (kind === 'throw') throw value;
|
|
1412
1418
|
return value;
|
|
1413
1419
|
}
|
|
1414
|
-
innerResult = call$
|
|
1420
|
+
innerResult = call$8(innerResult, iterator);
|
|
1415
1421
|
} catch (error) {
|
|
1416
1422
|
innerError = true;
|
|
1417
1423
|
innerResult = error;
|
|
@@ -1423,17 +1429,17 @@ var iteratorClose$9 = function (iterator, kind, value) {
|
|
|
1423
1429
|
};
|
|
1424
1430
|
|
|
1425
1431
|
var bind = functionBindContext;
|
|
1426
|
-
var call$
|
|
1432
|
+
var call$7 = functionCall;
|
|
1427
1433
|
var anObject$5 = anObject$d;
|
|
1428
1434
|
var tryToString = tryToString$3;
|
|
1429
1435
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1430
1436
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
1431
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1437
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1432
1438
|
var getIterator = getIterator$1;
|
|
1433
1439
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1434
1440
|
var iteratorClose$8 = iteratorClose$9;
|
|
1435
1441
|
|
|
1436
|
-
var $TypeError$
|
|
1442
|
+
var $TypeError$3 = TypeError;
|
|
1437
1443
|
|
|
1438
1444
|
var Result = function (stopped, result) {
|
|
1439
1445
|
this.stopped = stopped;
|
|
@@ -1442,7 +1448,7 @@ var Result = function (stopped, result) {
|
|
|
1442
1448
|
|
|
1443
1449
|
var ResultPrototype = Result.prototype;
|
|
1444
1450
|
|
|
1445
|
-
var iterate$
|
|
1451
|
+
var iterate$5 = function (iterable, unboundFunction, options) {
|
|
1446
1452
|
var that = options && options.that;
|
|
1447
1453
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1448
1454
|
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
@@ -1452,7 +1458,9 @@ var iterate$4 = function (iterable, unboundFunction, options) {
|
|
|
1452
1458
|
var iterator, iterFn, index, length, result, next, step;
|
|
1453
1459
|
|
|
1454
1460
|
var stop = function (condition) {
|
|
1455
|
-
|
|
1461
|
+
var $iterator = iterator;
|
|
1462
|
+
iterator = undefined;
|
|
1463
|
+
if ($iterator) iteratorClose$8($iterator, 'normal');
|
|
1456
1464
|
return new Result(true, condition);
|
|
1457
1465
|
};
|
|
1458
1466
|
|
|
@@ -1469,25 +1477,28 @@ var iterate$4 = function (iterable, unboundFunction, options) {
|
|
|
1469
1477
|
iterator = iterable;
|
|
1470
1478
|
} else {
|
|
1471
1479
|
iterFn = getIteratorMethod(iterable);
|
|
1472
|
-
if (!iterFn) throw new $TypeError$
|
|
1480
|
+
if (!iterFn) throw new $TypeError$3(tryToString(iterable) + ' is not iterable');
|
|
1473
1481
|
// optimisation for array iterators
|
|
1474
1482
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1475
1483
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1476
1484
|
result = callFn(iterable[index]);
|
|
1477
|
-
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1485
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
1478
1486
|
} return new Result(false);
|
|
1479
1487
|
}
|
|
1480
1488
|
iterator = getIterator(iterable, iterFn);
|
|
1481
1489
|
}
|
|
1482
1490
|
|
|
1483
1491
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1484
|
-
while (!(step = call$
|
|
1492
|
+
while (!(step = call$7(next, iterator)).done) {
|
|
1493
|
+
// `IteratorValue` errors should propagate without closing the iterator
|
|
1494
|
+
var value = step.value;
|
|
1485
1495
|
try {
|
|
1486
|
-
result = callFn(
|
|
1496
|
+
result = callFn(value);
|
|
1487
1497
|
} catch (error) {
|
|
1488
|
-
iteratorClose$8(iterator, 'throw', error);
|
|
1498
|
+
if (iterator) iteratorClose$8(iterator, 'throw', error);
|
|
1499
|
+
else throw error;
|
|
1489
1500
|
}
|
|
1490
|
-
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
1501
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
1491
1502
|
} return new Result(false);
|
|
1492
1503
|
};
|
|
1493
1504
|
|
|
@@ -1501,11 +1512,11 @@ var getIteratorDirect$4 = function (obj) {
|
|
|
1501
1512
|
};
|
|
1502
1513
|
};
|
|
1503
1514
|
|
|
1504
|
-
var globalThis$
|
|
1515
|
+
var globalThis$3 = globalThis_1;
|
|
1505
1516
|
|
|
1506
1517
|
// https://github.com/tc39/ecma262/pull/3467
|
|
1507
1518
|
var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, ExpectedError) {
|
|
1508
|
-
var Iterator = globalThis$
|
|
1519
|
+
var Iterator = globalThis$3.Iterator;
|
|
1509
1520
|
var IteratorPrototype = Iterator && Iterator.prototype;
|
|
1510
1521
|
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
1511
1522
|
|
|
@@ -1524,9 +1535,9 @@ var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, Expected
|
|
|
1524
1535
|
if (!CLOSED) return method;
|
|
1525
1536
|
};
|
|
1526
1537
|
|
|
1527
|
-
var $$
|
|
1528
|
-
var call$
|
|
1529
|
-
var iterate$
|
|
1538
|
+
var $$e = _export;
|
|
1539
|
+
var call$6 = functionCall;
|
|
1540
|
+
var iterate$4 = iterate$5;
|
|
1530
1541
|
var aCallable$5 = aCallable$9;
|
|
1531
1542
|
var anObject$4 = anObject$d;
|
|
1532
1543
|
var getIteratorDirect$3 = getIteratorDirect$4;
|
|
@@ -1537,7 +1548,7 @@ var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError
|
|
|
1537
1548
|
|
|
1538
1549
|
// `Iterator.prototype.forEach` method
|
|
1539
1550
|
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
1540
|
-
$$
|
|
1551
|
+
$$e({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
1541
1552
|
forEach: function forEach(fn) {
|
|
1542
1553
|
anObject$4(this);
|
|
1543
1554
|
try {
|
|
@@ -1546,16 +1557,369 @@ $$b({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosing
|
|
|
1546
1557
|
iteratorClose$7(this, 'throw', error);
|
|
1547
1558
|
}
|
|
1548
1559
|
|
|
1549
|
-
if (forEachWithoutClosingOnEarlyError) return call$
|
|
1560
|
+
if (forEachWithoutClosingOnEarlyError) return call$6(forEachWithoutClosingOnEarlyError, this, fn);
|
|
1550
1561
|
|
|
1551
1562
|
var record = getIteratorDirect$3(this);
|
|
1552
1563
|
var counter = 0;
|
|
1553
|
-
iterate$
|
|
1564
|
+
iterate$4(record, function (value) {
|
|
1554
1565
|
fn(value, counter++);
|
|
1555
1566
|
}, { IS_RECORD: true });
|
|
1556
1567
|
}
|
|
1557
1568
|
});
|
|
1558
1569
|
|
|
1570
|
+
// iterable DOM collections
|
|
1571
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1572
|
+
var domIterables = {
|
|
1573
|
+
CSSRuleList: 0,
|
|
1574
|
+
CSSStyleDeclaration: 0,
|
|
1575
|
+
CSSValueList: 0,
|
|
1576
|
+
ClientRectList: 0,
|
|
1577
|
+
DOMRectList: 0,
|
|
1578
|
+
DOMStringList: 0,
|
|
1579
|
+
DOMTokenList: 1,
|
|
1580
|
+
DataTransferItemList: 0,
|
|
1581
|
+
FileList: 0,
|
|
1582
|
+
HTMLAllCollection: 0,
|
|
1583
|
+
HTMLCollection: 0,
|
|
1584
|
+
HTMLFormElement: 0,
|
|
1585
|
+
HTMLSelectElement: 0,
|
|
1586
|
+
MediaList: 0,
|
|
1587
|
+
MimeTypeArray: 0,
|
|
1588
|
+
NamedNodeMap: 0,
|
|
1589
|
+
NodeList: 1,
|
|
1590
|
+
PaintRequestList: 0,
|
|
1591
|
+
Plugin: 0,
|
|
1592
|
+
PluginArray: 0,
|
|
1593
|
+
SVGLengthList: 0,
|
|
1594
|
+
SVGNumberList: 0,
|
|
1595
|
+
SVGPathSegList: 0,
|
|
1596
|
+
SVGPointList: 0,
|
|
1597
|
+
SVGStringList: 0,
|
|
1598
|
+
SVGTransformList: 0,
|
|
1599
|
+
SourceBufferList: 0,
|
|
1600
|
+
StyleSheetList: 0,
|
|
1601
|
+
TextTrackCueList: 0,
|
|
1602
|
+
TextTrackList: 0,
|
|
1603
|
+
TouchList: 0
|
|
1604
|
+
};
|
|
1605
|
+
|
|
1606
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1607
|
+
var documentCreateElement = documentCreateElement$2;
|
|
1608
|
+
|
|
1609
|
+
var classList = documentCreateElement('span').classList;
|
|
1610
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1611
|
+
|
|
1612
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1613
|
+
|
|
1614
|
+
var wellKnownSymbol$4 = wellKnownSymbol$c;
|
|
1615
|
+
var create$2 = objectCreate;
|
|
1616
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1617
|
+
|
|
1618
|
+
var UNSCOPABLES = wellKnownSymbol$4('unscopables');
|
|
1619
|
+
var ArrayPrototype = Array.prototype;
|
|
1620
|
+
|
|
1621
|
+
// Array.prototype[@@unscopables]
|
|
1622
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1623
|
+
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1624
|
+
defineProperty$3(ArrayPrototype, UNSCOPABLES, {
|
|
1625
|
+
configurable: true,
|
|
1626
|
+
value: create$2(null)
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1631
|
+
var addToUnscopables$1 = function (key) {
|
|
1632
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1636
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1637
|
+
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
1638
|
+
|
|
1639
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
1640
|
+
|
|
1641
|
+
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1642
|
+
if (target && !STATIC) target = target.prototype;
|
|
1643
|
+
if (target && !hasOwn$1(target, TO_STRING_TAG$1)) {
|
|
1644
|
+
defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
1649
|
+
var create$1 = objectCreate;
|
|
1650
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
1651
|
+
var setToStringTag$2 = setToStringTag$3;
|
|
1652
|
+
var Iterators$2 = iterators;
|
|
1653
|
+
|
|
1654
|
+
var returnThis$1 = function () { return this; };
|
|
1655
|
+
|
|
1656
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1657
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1658
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$2, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1659
|
+
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1660
|
+
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1661
|
+
return IteratorConstructor;
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1665
|
+
var aCallable$4 = aCallable$9;
|
|
1666
|
+
|
|
1667
|
+
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1668
|
+
try {
|
|
1669
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1670
|
+
return uncurryThis$4(aCallable$4(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1671
|
+
} catch (error) { /* empty */ }
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
var isObject$3 = isObject$a;
|
|
1675
|
+
|
|
1676
|
+
var isPossiblePrototype$1 = function (argument) {
|
|
1677
|
+
return isObject$3(argument) || argument === null;
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1681
|
+
|
|
1682
|
+
var $String$1 = String;
|
|
1683
|
+
var $TypeError$2 = TypeError;
|
|
1684
|
+
|
|
1685
|
+
var aPossiblePrototype$1 = function (argument) {
|
|
1686
|
+
if (isPossiblePrototype(argument)) return argument;
|
|
1687
|
+
throw new $TypeError$2("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1688
|
+
};
|
|
1689
|
+
|
|
1690
|
+
/* eslint-disable no-proto -- safe */
|
|
1691
|
+
var uncurryThisAccessor$1 = functionUncurryThisAccessor;
|
|
1692
|
+
var isObject$2 = isObject$a;
|
|
1693
|
+
var requireObjectCoercible = requireObjectCoercible$3;
|
|
1694
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1695
|
+
|
|
1696
|
+
// `Object.setPrototypeOf` method
|
|
1697
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1698
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1699
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1700
|
+
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1701
|
+
var CORRECT_SETTER = false;
|
|
1702
|
+
var test = {};
|
|
1703
|
+
var setter;
|
|
1704
|
+
try {
|
|
1705
|
+
setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
|
|
1706
|
+
setter(test, []);
|
|
1707
|
+
CORRECT_SETTER = test instanceof Array;
|
|
1708
|
+
} catch (error) { /* empty */ }
|
|
1709
|
+
return function setPrototypeOf(O, proto) {
|
|
1710
|
+
requireObjectCoercible(O);
|
|
1711
|
+
aPossiblePrototype(proto);
|
|
1712
|
+
if (!isObject$2(O)) return O;
|
|
1713
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
1714
|
+
else O.__proto__ = proto;
|
|
1715
|
+
return O;
|
|
1716
|
+
};
|
|
1717
|
+
}() : undefined);
|
|
1718
|
+
|
|
1719
|
+
var $$d = _export;
|
|
1720
|
+
var call$5 = functionCall;
|
|
1721
|
+
var FunctionName = functionName;
|
|
1722
|
+
var isCallable$1 = isCallable$g;
|
|
1723
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1724
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
1725
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1726
|
+
var setToStringTag$1 = setToStringTag$3;
|
|
1727
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1728
|
+
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1729
|
+
var wellKnownSymbol$2 = wellKnownSymbol$c;
|
|
1730
|
+
var Iterators$1 = iterators;
|
|
1731
|
+
var IteratorsCore = iteratorsCore;
|
|
1732
|
+
|
|
1733
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1734
|
+
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1735
|
+
var IteratorPrototype$1 = IteratorsCore.IteratorPrototype;
|
|
1736
|
+
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1737
|
+
var ITERATOR$1 = wellKnownSymbol$2('iterator');
|
|
1738
|
+
var KEYS = 'keys';
|
|
1739
|
+
var VALUES = 'values';
|
|
1740
|
+
var ENTRIES = 'entries';
|
|
1741
|
+
|
|
1742
|
+
var returnThis = function () { return this; };
|
|
1743
|
+
|
|
1744
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1745
|
+
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1746
|
+
|
|
1747
|
+
var getIterationMethod = function (KIND) {
|
|
1748
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1749
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1750
|
+
|
|
1751
|
+
switch (KIND) {
|
|
1752
|
+
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1753
|
+
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1754
|
+
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
return function () { return new IteratorConstructor(this); };
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1761
|
+
var INCORRECT_VALUES_NAME = false;
|
|
1762
|
+
var IterablePrototype = Iterable.prototype;
|
|
1763
|
+
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
1764
|
+
|| IterablePrototype['@@iterator']
|
|
1765
|
+
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1766
|
+
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1767
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1768
|
+
var CurrentIteratorPrototype, methods, KEY;
|
|
1769
|
+
|
|
1770
|
+
// fix native
|
|
1771
|
+
if (anyNativeIterator) {
|
|
1772
|
+
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1773
|
+
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1774
|
+
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$1) {
|
|
1775
|
+
if (setPrototypeOf$2) {
|
|
1776
|
+
setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype$1);
|
|
1777
|
+
} else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1778
|
+
defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
// Set @@toStringTag to native iterators
|
|
1782
|
+
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1787
|
+
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1788
|
+
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1789
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1790
|
+
} else {
|
|
1791
|
+
INCORRECT_VALUES_NAME = true;
|
|
1792
|
+
defaultIterator = function values() { return call$5(nativeIterator, this); };
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
// export additional methods
|
|
1797
|
+
if (DEFAULT) {
|
|
1798
|
+
methods = {
|
|
1799
|
+
values: getIterationMethod(VALUES),
|
|
1800
|
+
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1801
|
+
entries: getIterationMethod(ENTRIES)
|
|
1802
|
+
};
|
|
1803
|
+
if (FORCED) for (KEY in methods) {
|
|
1804
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1805
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1806
|
+
}
|
|
1807
|
+
} else $$d({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
// define iterator
|
|
1811
|
+
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1812
|
+
defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1813
|
+
}
|
|
1814
|
+
Iterators$1[NAME] = defaultIterator;
|
|
1815
|
+
|
|
1816
|
+
return methods;
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1819
|
+
// `CreateIterResultObject` abstract operation
|
|
1820
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1821
|
+
var createIterResultObject$2 = function (value, done) {
|
|
1822
|
+
return { value: value, done: done };
|
|
1823
|
+
};
|
|
1824
|
+
|
|
1825
|
+
var toIndexedObject = toIndexedObject$5;
|
|
1826
|
+
var addToUnscopables = addToUnscopables$1;
|
|
1827
|
+
var Iterators = iterators;
|
|
1828
|
+
var InternalStateModule$1 = internalState;
|
|
1829
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1830
|
+
var defineIterator = iteratorDefine;
|
|
1831
|
+
var createIterResultObject$1 = createIterResultObject$2;
|
|
1832
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1833
|
+
|
|
1834
|
+
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1835
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
1836
|
+
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1837
|
+
|
|
1838
|
+
// `Array.prototype.entries` method
|
|
1839
|
+
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
1840
|
+
// `Array.prototype.keys` method
|
|
1841
|
+
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
1842
|
+
// `Array.prototype.values` method
|
|
1843
|
+
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
1844
|
+
// `Array.prototype[@@iterator]` method
|
|
1845
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
1846
|
+
// `CreateArrayIterator` internal method
|
|
1847
|
+
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1848
|
+
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1849
|
+
setInternalState$1(this, {
|
|
1850
|
+
type: ARRAY_ITERATOR,
|
|
1851
|
+
target: toIndexedObject(iterated), // target
|
|
1852
|
+
index: 0, // next index
|
|
1853
|
+
kind: kind // kind
|
|
1854
|
+
});
|
|
1855
|
+
// `%ArrayIteratorPrototype%.next` method
|
|
1856
|
+
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1857
|
+
}, function () {
|
|
1858
|
+
var state = getInternalState(this);
|
|
1859
|
+
var target = state.target;
|
|
1860
|
+
var index = state.index++;
|
|
1861
|
+
if (!target || index >= target.length) {
|
|
1862
|
+
state.target = null;
|
|
1863
|
+
return createIterResultObject$1(undefined, true);
|
|
1864
|
+
}
|
|
1865
|
+
switch (state.kind) {
|
|
1866
|
+
case 'keys': return createIterResultObject$1(index, false);
|
|
1867
|
+
case 'values': return createIterResultObject$1(target[index], false);
|
|
1868
|
+
} return createIterResultObject$1([index, target[index]], false);
|
|
1869
|
+
}, 'values');
|
|
1870
|
+
|
|
1871
|
+
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1872
|
+
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1873
|
+
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1874
|
+
var values = Iterators.Arguments = Iterators.Array;
|
|
1875
|
+
|
|
1876
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1877
|
+
addToUnscopables('keys');
|
|
1878
|
+
addToUnscopables('values');
|
|
1879
|
+
addToUnscopables('entries');
|
|
1880
|
+
|
|
1881
|
+
// V8 ~ Chrome 45- bug
|
|
1882
|
+
if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
1883
|
+
defineProperty$1(values, 'name', { value: 'values' });
|
|
1884
|
+
} catch (error) { /* empty */ }
|
|
1885
|
+
|
|
1886
|
+
var globalThis$2 = globalThis_1;
|
|
1887
|
+
var DOMIterables = domIterables;
|
|
1888
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1889
|
+
var ArrayIteratorMethods = es_array_iterator;
|
|
1890
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
1891
|
+
var setToStringTag = setToStringTag$3;
|
|
1892
|
+
var wellKnownSymbol$1 = wellKnownSymbol$c;
|
|
1893
|
+
|
|
1894
|
+
var ITERATOR = wellKnownSymbol$1('iterator');
|
|
1895
|
+
var ArrayValues = ArrayIteratorMethods.values;
|
|
1896
|
+
|
|
1897
|
+
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1898
|
+
if (CollectionPrototype) {
|
|
1899
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1900
|
+
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1901
|
+
createNonEnumerableProperty$4(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1902
|
+
} catch (error) {
|
|
1903
|
+
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1904
|
+
}
|
|
1905
|
+
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1906
|
+
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1907
|
+
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1908
|
+
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1909
|
+
createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1910
|
+
} catch (error) {
|
|
1911
|
+
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
};
|
|
1916
|
+
|
|
1917
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
1918
|
+
handlePrototype(globalThis$2[COLLECTION_NAME] && globalThis$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1922
|
+
|
|
1559
1923
|
function flattenObject(obj, prefix = '', result = {}) {
|
|
1560
1924
|
Object.entries(obj).forEach(([key, value]) => {
|
|
1561
1925
|
const newKey = prefix ? `${prefix}-${key}` : key;
|
|
@@ -1576,7 +1940,7 @@ function moduleExists(modulePath) {
|
|
|
1576
1940
|
try {
|
|
1577
1941
|
require.resolve(modulePath);
|
|
1578
1942
|
return true;
|
|
1579
|
-
} catch {
|
|
1943
|
+
} catch (_unused) {
|
|
1580
1944
|
return false;
|
|
1581
1945
|
}
|
|
1582
1946
|
}
|
|
@@ -1589,7 +1953,7 @@ function flattenColorPalette(colors) {
|
|
|
1589
1953
|
default: twFlattenColorPalette
|
|
1590
1954
|
} = require('tailwindcss/lib/util/flattenColorPalette');
|
|
1591
1955
|
return twFlattenColorPalette(colors);
|
|
1592
|
-
} catch {
|
|
1956
|
+
} catch (_unused2) {
|
|
1593
1957
|
return customFlattenColorPalette(colors);
|
|
1594
1958
|
}
|
|
1595
1959
|
}
|
|
@@ -1827,19 +2191,245 @@ const LogicalProperties = plugin(({
|
|
|
1827
2191
|
});
|
|
1828
2192
|
});
|
|
1829
2193
|
|
|
1830
|
-
var
|
|
2194
|
+
var NATIVE_BIND = functionBindNative;
|
|
2195
|
+
|
|
2196
|
+
var FunctionPrototype = Function.prototype;
|
|
2197
|
+
var apply$2 = FunctionPrototype.apply;
|
|
2198
|
+
var call$4 = FunctionPrototype.call;
|
|
2199
|
+
|
|
2200
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
2201
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$2) : function () {
|
|
2202
|
+
return call$4.apply(apply$2, arguments);
|
|
2203
|
+
});
|
|
2204
|
+
|
|
2205
|
+
var defineProperty = objectDefineProperty.f;
|
|
2206
|
+
|
|
2207
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
2208
|
+
key in Target || defineProperty(Target, key, {
|
|
2209
|
+
configurable: true,
|
|
2210
|
+
get: function () { return Source[key]; },
|
|
2211
|
+
set: function (it) { Source[key] = it; }
|
|
2212
|
+
});
|
|
2213
|
+
};
|
|
2214
|
+
|
|
2215
|
+
var isCallable = isCallable$g;
|
|
2216
|
+
var isObject$1 = isObject$a;
|
|
2217
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
2218
|
+
|
|
2219
|
+
// makes subclassing work correct for wrapped built-ins
|
|
2220
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
2221
|
+
var NewTarget, NewTargetPrototype;
|
|
2222
|
+
if (
|
|
2223
|
+
// it can work only with native `setPrototypeOf`
|
|
2224
|
+
setPrototypeOf$1 &&
|
|
2225
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
2226
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
2227
|
+
NewTarget !== Wrapper &&
|
|
2228
|
+
isObject$1(NewTargetPrototype = NewTarget.prototype) &&
|
|
2229
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
2230
|
+
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
2231
|
+
return $this;
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
var classof = classof$2;
|
|
2235
|
+
|
|
2236
|
+
var $String = String;
|
|
2237
|
+
|
|
2238
|
+
var toString$1 = function (argument) {
|
|
2239
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2240
|
+
return $String(argument);
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
var toString = toString$1;
|
|
2244
|
+
|
|
2245
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
2246
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
2247
|
+
};
|
|
2248
|
+
|
|
2249
|
+
var isObject = isObject$a;
|
|
2250
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
2251
|
+
|
|
2252
|
+
// `InstallErrorCause` abstract operation
|
|
2253
|
+
// https://tc39.es/ecma262/#sec-installerrorcause
|
|
2254
|
+
var installErrorCause$1 = function (O, options) {
|
|
2255
|
+
if (isObject(options) && 'cause' in options) {
|
|
2256
|
+
createNonEnumerableProperty$3(O, 'cause', options.cause);
|
|
2257
|
+
}
|
|
2258
|
+
};
|
|
2259
|
+
|
|
2260
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2261
|
+
|
|
2262
|
+
var $Error = Error;
|
|
2263
|
+
var replace = uncurryThis$3(''.replace);
|
|
2264
|
+
|
|
2265
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
2266
|
+
// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
|
|
2267
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
2268
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
2269
|
+
|
|
2270
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
2271
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
2272
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
2273
|
+
} return stack;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2276
|
+
var fails$3 = fails$f;
|
|
2277
|
+
var createPropertyDescriptor = createPropertyDescriptor$5;
|
|
2278
|
+
|
|
2279
|
+
var errorStackInstallable = !fails$3(function () {
|
|
2280
|
+
var error = new Error('a');
|
|
2281
|
+
if (!('stack' in error)) return true;
|
|
2282
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2283
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
2284
|
+
return error.stack !== 7;
|
|
2285
|
+
});
|
|
2286
|
+
|
|
2287
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
2288
|
+
var clearErrorStack = errorStackClear;
|
|
2289
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
2290
|
+
|
|
2291
|
+
// non-standard V8
|
|
2292
|
+
// eslint-disable-next-line es/no-nonstandard-error-properties -- safe
|
|
2293
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
2294
|
+
|
|
2295
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
2296
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
2297
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
2298
|
+
else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
2299
|
+
}
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2302
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
2303
|
+
var hasOwn = hasOwnProperty_1;
|
|
2304
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
2305
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
2306
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
2307
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2308
|
+
var proxyAccessor = proxyAccessor$1;
|
|
2309
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
2310
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
2311
|
+
var installErrorCause = installErrorCause$1;
|
|
2312
|
+
var installErrorStack = errorStackInstall;
|
|
2313
|
+
var DESCRIPTORS = descriptors;
|
|
2314
|
+
|
|
2315
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
2316
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
2317
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
2318
|
+
var path = FULL_NAME.split('.');
|
|
2319
|
+
var ERROR_NAME = path[path.length - 1];
|
|
2320
|
+
var OriginalError = getBuiltIn$1.apply(null, path);
|
|
2321
|
+
|
|
2322
|
+
if (!OriginalError) return;
|
|
2323
|
+
|
|
2324
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
2325
|
+
|
|
2326
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
2327
|
+
if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
2328
|
+
|
|
2329
|
+
if (!FORCED) return OriginalError;
|
|
2330
|
+
|
|
2331
|
+
var BaseError = getBuiltIn$1('Error');
|
|
2332
|
+
|
|
2333
|
+
var WrappedError = wrapper(function (a, b) {
|
|
2334
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
2335
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
2336
|
+
if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
|
|
2337
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
2338
|
+
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
2339
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
2340
|
+
return result;
|
|
2341
|
+
});
|
|
2342
|
+
|
|
2343
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
2344
|
+
|
|
2345
|
+
if (ERROR_NAME !== 'Error') {
|
|
2346
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
2347
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
2348
|
+
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
2349
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
2350
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
2354
|
+
|
|
2355
|
+
try {
|
|
2356
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
2357
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
2358
|
+
createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
2359
|
+
}
|
|
2360
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
2361
|
+
} catch (error) { /* empty */ }
|
|
2362
|
+
|
|
2363
|
+
return WrappedError;
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2366
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
2367
|
+
var $$c = _export;
|
|
2368
|
+
var globalThis$1 = globalThis_1;
|
|
2369
|
+
var apply$1 = functionApply;
|
|
2370
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
2371
|
+
|
|
2372
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
2373
|
+
var WebAssembly = globalThis$1[WEB_ASSEMBLY];
|
|
2374
|
+
|
|
2375
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
2376
|
+
var FORCED$4 = new Error('e', { cause: 7 }).cause !== 7;
|
|
2377
|
+
|
|
2378
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2379
|
+
var O = {};
|
|
2380
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
2381
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$4);
|
|
2382
|
+
$$c({ global: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
|
|
2383
|
+
};
|
|
2384
|
+
|
|
2385
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
2386
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
2387
|
+
var O = {};
|
|
2388
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
2389
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$4);
|
|
2390
|
+
$$c({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$4 }, O);
|
|
2391
|
+
}
|
|
2392
|
+
};
|
|
2393
|
+
|
|
2394
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
2395
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
2396
|
+
return function Error(message) { return apply$1(init, this, arguments); };
|
|
2397
|
+
});
|
|
2398
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
2399
|
+
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
2400
|
+
});
|
|
2401
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
2402
|
+
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
2403
|
+
});
|
|
2404
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
2405
|
+
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
2406
|
+
});
|
|
2407
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
2408
|
+
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
2409
|
+
});
|
|
2410
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
2411
|
+
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
2412
|
+
});
|
|
2413
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
2414
|
+
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
2415
|
+
});
|
|
2416
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
2417
|
+
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
2418
|
+
});
|
|
2419
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
2420
|
+
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
2421
|
+
});
|
|
2422
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
2423
|
+
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
2424
|
+
});
|
|
2425
|
+
|
|
2426
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
1831
2427
|
|
|
1832
2428
|
var defineBuiltIns$1 = function (target, src, options) {
|
|
1833
2429
|
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
|
1834
2430
|
return target;
|
|
1835
2431
|
};
|
|
1836
2432
|
|
|
1837
|
-
// `CreateIterResultObject` abstract operation
|
|
1838
|
-
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1839
|
-
var createIterResultObject$1 = function (value, done) {
|
|
1840
|
-
return { value: value, done: done };
|
|
1841
|
-
};
|
|
1842
|
-
|
|
1843
2433
|
var iteratorClose$6 = iteratorClose$9;
|
|
1844
2434
|
|
|
1845
2435
|
var iteratorCloseAll$1 = function (iters, kind, value) {
|
|
@@ -1856,15 +2446,15 @@ var iteratorCloseAll$1 = function (iters, kind, value) {
|
|
|
1856
2446
|
return value;
|
|
1857
2447
|
};
|
|
1858
2448
|
|
|
1859
|
-
var call$
|
|
2449
|
+
var call$3 = functionCall;
|
|
1860
2450
|
var create = objectCreate;
|
|
1861
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
2451
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
1862
2452
|
var defineBuiltIns = defineBuiltIns$1;
|
|
1863
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
2453
|
+
var wellKnownSymbol = wellKnownSymbol$c;
|
|
1864
2454
|
var InternalStateModule = internalState;
|
|
1865
2455
|
var getMethod = getMethod$4;
|
|
1866
2456
|
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
1867
|
-
var createIterResultObject = createIterResultObject$
|
|
2457
|
+
var createIterResultObject = createIterResultObject$2;
|
|
1868
2458
|
var iteratorClose$5 = iteratorClose$9;
|
|
1869
2459
|
var iteratorCloseAll = iteratorCloseAll$1;
|
|
1870
2460
|
|
|
@@ -1897,11 +2487,13 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
1897
2487
|
'return': function () {
|
|
1898
2488
|
var state = getInternalState(this);
|
|
1899
2489
|
var iterator = state.iterator;
|
|
2490
|
+
var done = state.done;
|
|
1900
2491
|
state.done = true;
|
|
1901
2492
|
if (IS_ITERATOR) {
|
|
1902
2493
|
var returnMethod = getMethod(iterator, 'return');
|
|
1903
|
-
return returnMethod ? call$
|
|
2494
|
+
return returnMethod ? call$3(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
1904
2495
|
}
|
|
2496
|
+
if (done) return createIterResultObject(undefined, true);
|
|
1905
2497
|
if (state.inner) try {
|
|
1906
2498
|
iteratorClose$5(state.inner.iterator, NORMAL);
|
|
1907
2499
|
} catch (error) {
|
|
@@ -1910,7 +2502,8 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
1910
2502
|
if (state.openIters) try {
|
|
1911
2503
|
iteratorCloseAll(state.openIters, NORMAL);
|
|
1912
2504
|
} catch (error) {
|
|
1913
|
-
return iteratorClose$5(iterator, THROW, error);
|
|
2505
|
+
if (iterator) return iteratorClose$5(iterator, THROW, error);
|
|
2506
|
+
throw error;
|
|
1914
2507
|
}
|
|
1915
2508
|
if (iterator) iteratorClose$5(iterator, NORMAL);
|
|
1916
2509
|
return createIterResultObject(undefined, true);
|
|
@@ -1966,9 +2559,9 @@ var iteratorHelperThrowsOnInvalidIterator$1 = function (methodName, argument) {
|
|
|
1966
2559
|
}
|
|
1967
2560
|
};
|
|
1968
2561
|
|
|
1969
|
-
var $$
|
|
1970
|
-
var call$
|
|
1971
|
-
var aCallable$
|
|
2562
|
+
var $$b = _export;
|
|
2563
|
+
var call$2 = functionCall;
|
|
2564
|
+
var aCallable$3 = aCallable$9;
|
|
1972
2565
|
var anObject$2 = anObject$d;
|
|
1973
2566
|
var getIteratorDirect$2 = getIteratorDirect$4;
|
|
1974
2567
|
var createIteratorProxy = iteratorCreateProxy;
|
|
@@ -1985,23 +2578,23 @@ var FORCED$3 = MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEa
|
|
|
1985
2578
|
|
|
1986
2579
|
var IteratorProxy = createIteratorProxy(function () {
|
|
1987
2580
|
var iterator = this.iterator;
|
|
1988
|
-
var result = anObject$2(call$
|
|
2581
|
+
var result = anObject$2(call$2(this.next, iterator));
|
|
1989
2582
|
var done = this.done = !!result.done;
|
|
1990
2583
|
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
1991
2584
|
});
|
|
1992
2585
|
|
|
1993
2586
|
// `Iterator.prototype.map` method
|
|
1994
2587
|
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
1995
|
-
$$
|
|
2588
|
+
$$b({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
|
|
1996
2589
|
map: function map(mapper) {
|
|
1997
2590
|
anObject$2(this);
|
|
1998
2591
|
try {
|
|
1999
|
-
aCallable$
|
|
2592
|
+
aCallable$3(mapper);
|
|
2000
2593
|
} catch (error) {
|
|
2001
2594
|
iteratorClose$3(this, 'throw', error);
|
|
2002
2595
|
}
|
|
2003
2596
|
|
|
2004
|
-
if (mapWithoutClosingOnEarlyError) return call$
|
|
2597
|
+
if (mapWithoutClosingOnEarlyError) return call$2(mapWithoutClosingOnEarlyError, this, mapper);
|
|
2005
2598
|
|
|
2006
2599
|
return new IteratorProxy(getIteratorDirect$2(this), {
|
|
2007
2600
|
mapper: mapper
|
|
@@ -2009,26 +2602,15 @@ $$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
|
|
|
2009
2602
|
}
|
|
2010
2603
|
});
|
|
2011
2604
|
|
|
2012
|
-
var
|
|
2013
|
-
|
|
2014
|
-
var
|
|
2015
|
-
var apply$1 = FunctionPrototype.apply;
|
|
2016
|
-
var call$2 = FunctionPrototype.call;
|
|
2017
|
-
|
|
2018
|
-
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
2019
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
|
|
2020
|
-
return call$2.apply(apply$1, arguments);
|
|
2021
|
-
});
|
|
2022
|
-
|
|
2023
|
-
var $$9 = _export;
|
|
2024
|
-
var iterate$2 = iterate$4;
|
|
2025
|
-
var aCallable$3 = aCallable$9;
|
|
2605
|
+
var $$a = _export;
|
|
2606
|
+
var iterate$3 = iterate$5;
|
|
2607
|
+
var aCallable$2 = aCallable$9;
|
|
2026
2608
|
var anObject$1 = anObject$d;
|
|
2027
2609
|
var getIteratorDirect$1 = getIteratorDirect$4;
|
|
2028
2610
|
var iteratorClose$2 = iteratorClose$9;
|
|
2029
2611
|
var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
2030
2612
|
var apply = functionApply;
|
|
2031
|
-
var fails$2 = fails$
|
|
2613
|
+
var fails$2 = fails$f;
|
|
2032
2614
|
|
|
2033
2615
|
var $TypeError$1 = TypeError;
|
|
2034
2616
|
|
|
@@ -2042,11 +2624,11 @@ var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHe
|
|
|
2042
2624
|
|
|
2043
2625
|
// `Iterator.prototype.reduce` method
|
|
2044
2626
|
// https://tc39.es/ecma262/#sec-iterator.prototype.reduce
|
|
2045
|
-
$$
|
|
2627
|
+
$$a({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
|
|
2046
2628
|
reduce: function reduce(reducer /* , initialValue */) {
|
|
2047
2629
|
anObject$1(this);
|
|
2048
2630
|
try {
|
|
2049
|
-
aCallable$
|
|
2631
|
+
aCallable$2(reducer);
|
|
2050
2632
|
} catch (error) {
|
|
2051
2633
|
iteratorClose$2(this, 'throw', error);
|
|
2052
2634
|
}
|
|
@@ -2058,7 +2640,7 @@ $$9({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDE
|
|
|
2058
2640
|
}
|
|
2059
2641
|
var record = getIteratorDirect$1(this);
|
|
2060
2642
|
var counter = 0;
|
|
2061
|
-
iterate$
|
|
2643
|
+
iterate$3(record, function (value) {
|
|
2062
2644
|
if (noInitial) {
|
|
2063
2645
|
noInitial = false;
|
|
2064
2646
|
accumulator = value;
|
|
@@ -2072,7 +2654,76 @@ $$9({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDE
|
|
|
2072
2654
|
}
|
|
2073
2655
|
});
|
|
2074
2656
|
|
|
2075
|
-
var uncurryThis$
|
|
2657
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2658
|
+
|
|
2659
|
+
// eslint-disable-next-line es/no-map -- safe
|
|
2660
|
+
var MapPrototype = Map.prototype;
|
|
2661
|
+
|
|
2662
|
+
var mapHelpers = {
|
|
2663
|
+
set: uncurryThis$2(MapPrototype.set),
|
|
2664
|
+
get: uncurryThis$2(MapPrototype.get),
|
|
2665
|
+
has: uncurryThis$2(MapPrototype.has),
|
|
2666
|
+
remove: uncurryThis$2(MapPrototype['delete'])};
|
|
2667
|
+
|
|
2668
|
+
var $$9 = _export;
|
|
2669
|
+
var MapHelpers$1 = mapHelpers;
|
|
2670
|
+
var IS_PURE$1 = isPure;
|
|
2671
|
+
|
|
2672
|
+
var get$1 = MapHelpers$1.get;
|
|
2673
|
+
var has$7 = MapHelpers$1.has;
|
|
2674
|
+
var set$1 = MapHelpers$1.set;
|
|
2675
|
+
|
|
2676
|
+
// `Map.prototype.getOrInsert` method
|
|
2677
|
+
// https://tc39.es/ecma262/#sec-map.prototype.getorinsert
|
|
2678
|
+
$$9({ target: 'Map', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
2679
|
+
getOrInsert: function getOrInsert(key, value) {
|
|
2680
|
+
if (has$7(this, key)) return get$1(this, key);
|
|
2681
|
+
set$1(this, key, value);
|
|
2682
|
+
return value;
|
|
2683
|
+
}
|
|
2684
|
+
});
|
|
2685
|
+
|
|
2686
|
+
var $$8 = _export;
|
|
2687
|
+
var aCallable$1 = aCallable$9;
|
|
2688
|
+
var MapHelpers = mapHelpers;
|
|
2689
|
+
var IS_PURE = isPure;
|
|
2690
|
+
|
|
2691
|
+
var get = MapHelpers.get;
|
|
2692
|
+
var has$6 = MapHelpers.has;
|
|
2693
|
+
var set = MapHelpers.set;
|
|
2694
|
+
|
|
2695
|
+
// `Map.prototype.getOrInsertComputed` method
|
|
2696
|
+
// https://tc39.es/ecma262/#sec-map.prototype.getorinsertcomputed
|
|
2697
|
+
$$8({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
|
|
2698
|
+
getOrInsertComputed: function getOrInsertComputed(key, callbackfn) {
|
|
2699
|
+
var hasKey = has$6(this, key);
|
|
2700
|
+
aCallable$1(callbackfn);
|
|
2701
|
+
if (hasKey) return get(this, key);
|
|
2702
|
+
// CanonicalizeKeyedCollectionKey
|
|
2703
|
+
if (key === 0 && 1 / key === -Infinity) key = 0;
|
|
2704
|
+
var value = callbackfn(key);
|
|
2705
|
+
set(this, key, value);
|
|
2706
|
+
return value;
|
|
2707
|
+
}
|
|
2708
|
+
});
|
|
2709
|
+
|
|
2710
|
+
var $$7 = _export;
|
|
2711
|
+
var iterate$2 = iterate$5;
|
|
2712
|
+
var createProperty = createProperty$2;
|
|
2713
|
+
|
|
2714
|
+
// `Object.fromEntries` method
|
|
2715
|
+
// https://tc39.es/ecma262/#sec-object.fromentries
|
|
2716
|
+
$$7({ target: 'Object', stat: true }, {
|
|
2717
|
+
fromEntries: function fromEntries(iterable) {
|
|
2718
|
+
var obj = {};
|
|
2719
|
+
iterate$2(iterable, function (k, v) {
|
|
2720
|
+
createProperty(obj, k, v);
|
|
2721
|
+
}, { AS_ENTRIES: true });
|
|
2722
|
+
return obj;
|
|
2723
|
+
}
|
|
2724
|
+
});
|
|
2725
|
+
|
|
2726
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2076
2727
|
|
|
2077
2728
|
// eslint-disable-next-line es/no-set -- safe
|
|
2078
2729
|
var SetPrototype$1 = Set.prototype;
|
|
@@ -2080,17 +2731,17 @@ var SetPrototype$1 = Set.prototype;
|
|
|
2080
2731
|
var setHelpers = {
|
|
2081
2732
|
// eslint-disable-next-line es/no-set -- safe
|
|
2082
2733
|
Set: Set,
|
|
2083
|
-
add: uncurryThis$
|
|
2084
|
-
has: uncurryThis$
|
|
2085
|
-
remove: uncurryThis$
|
|
2734
|
+
add: uncurryThis$1(SetPrototype$1.add),
|
|
2735
|
+
has: uncurryThis$1(SetPrototype$1.has),
|
|
2736
|
+
remove: uncurryThis$1(SetPrototype$1['delete']),
|
|
2086
2737
|
proto: SetPrototype$1
|
|
2087
2738
|
};
|
|
2088
2739
|
|
|
2089
|
-
var has$
|
|
2740
|
+
var has$5 = setHelpers.has;
|
|
2090
2741
|
|
|
2091
2742
|
// Perform ? RequireInternalSlot(M, [[SetData]])
|
|
2092
2743
|
var aSet$7 = function (it) {
|
|
2093
|
-
has$
|
|
2744
|
+
has$5(it);
|
|
2094
2745
|
return it;
|
|
2095
2746
|
};
|
|
2096
2747
|
|
|
@@ -2106,14 +2757,14 @@ var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
|
2106
2757
|
}
|
|
2107
2758
|
};
|
|
2108
2759
|
|
|
2109
|
-
var uncurryThis
|
|
2760
|
+
var uncurryThis = functionUncurryThis;
|
|
2110
2761
|
var iterateSimple$6 = iterateSimple$7;
|
|
2111
2762
|
var SetHelpers$5 = setHelpers;
|
|
2112
2763
|
|
|
2113
2764
|
var Set$3 = SetHelpers$5.Set;
|
|
2114
2765
|
var SetPrototype = SetHelpers$5.proto;
|
|
2115
|
-
var forEach = uncurryThis
|
|
2116
|
-
var keys = uncurryThis
|
|
2766
|
+
var forEach = uncurryThis(SetPrototype.forEach);
|
|
2767
|
+
var keys = uncurryThis(SetPrototype.keys);
|
|
2117
2768
|
var next = keys(new Set$3()).next;
|
|
2118
2769
|
|
|
2119
2770
|
var setIterate = function (set, fn, interruptible) {
|
|
@@ -2134,16 +2785,6 @@ var setClone = function (set) {
|
|
|
2134
2785
|
return result;
|
|
2135
2786
|
};
|
|
2136
2787
|
|
|
2137
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
2138
|
-
var aCallable$2 = aCallable$9;
|
|
2139
|
-
|
|
2140
|
-
var functionUncurryThisAccessor = function (object, key, method) {
|
|
2141
|
-
try {
|
|
2142
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2143
|
-
return uncurryThis$1(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
2144
|
-
} catch (error) { /* empty */ }
|
|
2145
|
-
};
|
|
2146
|
-
|
|
2147
2788
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
2148
2789
|
var SetHelpers$3 = setHelpers;
|
|
2149
2790
|
|
|
@@ -2151,7 +2792,7 @@ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function
|
|
|
2151
2792
|
return set.size;
|
|
2152
2793
|
};
|
|
2153
2794
|
|
|
2154
|
-
var aCallable
|
|
2795
|
+
var aCallable = aCallable$9;
|
|
2155
2796
|
var anObject = anObject$d;
|
|
2156
2797
|
var call = functionCall;
|
|
2157
2798
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
@@ -2165,8 +2806,8 @@ var max = Math.max;
|
|
|
2165
2806
|
var SetRecord = function (set, intSize) {
|
|
2166
2807
|
this.set = set;
|
|
2167
2808
|
this.size = max(intSize, 0);
|
|
2168
|
-
this.has = aCallable
|
|
2169
|
-
this.keys = aCallable
|
|
2809
|
+
this.has = aCallable(set.has);
|
|
2810
|
+
this.keys = aCallable(set.keys);
|
|
2170
2811
|
};
|
|
2171
2812
|
|
|
2172
2813
|
SetRecord.prototype = {
|
|
@@ -2199,7 +2840,7 @@ var getSetRecord$6 = getSetRecord$7;
|
|
|
2199
2840
|
var iterateSet$2 = setIterate;
|
|
2200
2841
|
var iterateSimple$5 = iterateSimple$7;
|
|
2201
2842
|
|
|
2202
|
-
var has$
|
|
2843
|
+
var has$4 = SetHelpers$2.has;
|
|
2203
2844
|
var remove$1 = SetHelpers$2.remove;
|
|
2204
2845
|
|
|
2205
2846
|
// `Set.prototype.difference` method
|
|
@@ -2208,16 +2849,16 @@ var setDifference = function difference(other) {
|
|
|
2208
2849
|
var O = aSet$6(this);
|
|
2209
2850
|
var otherRec = getSetRecord$6(other);
|
|
2210
2851
|
var result = clone$2(O);
|
|
2211
|
-
if (size$4(
|
|
2852
|
+
if (size$4(result) <= otherRec.size) iterateSet$2(result, function (e) {
|
|
2212
2853
|
if (otherRec.includes(e)) remove$1(result, e);
|
|
2213
2854
|
});
|
|
2214
2855
|
else iterateSimple$5(otherRec.getIterator(), function (e) {
|
|
2215
|
-
if (has$
|
|
2856
|
+
if (has$4(result, e)) remove$1(result, e);
|
|
2216
2857
|
});
|
|
2217
2858
|
return result;
|
|
2218
2859
|
};
|
|
2219
2860
|
|
|
2220
|
-
var getBuiltIn = getBuiltIn$
|
|
2861
|
+
var getBuiltIn = getBuiltIn$5;
|
|
2221
2862
|
|
|
2222
2863
|
var createSetLike = function (size) {
|
|
2223
2864
|
return {
|
|
@@ -2275,9 +2916,9 @@ var setMethodAcceptSetLike$7 = function (name, callback) {
|
|
|
2275
2916
|
}
|
|
2276
2917
|
};
|
|
2277
2918
|
|
|
2278
|
-
var $$
|
|
2919
|
+
var $$6 = _export;
|
|
2279
2920
|
var difference = setDifference;
|
|
2280
|
-
var fails$1 = fails$
|
|
2921
|
+
var fails$1 = fails$f;
|
|
2281
2922
|
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
2282
2923
|
|
|
2283
2924
|
var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
|
|
@@ -2308,7 +2949,7 @@ var FORCED$2 = SET_LIKE_INCORRECT_BEHAVIOR || fails$1(function () {
|
|
|
2308
2949
|
|
|
2309
2950
|
// `Set.prototype.difference` method
|
|
2310
2951
|
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
2311
|
-
$$
|
|
2952
|
+
$$6({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
|
|
2312
2953
|
difference: difference
|
|
2313
2954
|
});
|
|
2314
2955
|
|
|
@@ -2321,7 +2962,7 @@ var iterateSimple$4 = iterateSimple$7;
|
|
|
2321
2962
|
|
|
2322
2963
|
var Set$1 = SetHelpers$1.Set;
|
|
2323
2964
|
var add$2 = SetHelpers$1.add;
|
|
2324
|
-
var has$
|
|
2965
|
+
var has$3 = SetHelpers$1.has;
|
|
2325
2966
|
|
|
2326
2967
|
// `Set.prototype.intersection` method
|
|
2327
2968
|
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
@@ -2332,7 +2973,7 @@ var setIntersection = function intersection(other) {
|
|
|
2332
2973
|
|
|
2333
2974
|
if (size$3(O) > otherRec.size) {
|
|
2334
2975
|
iterateSimple$4(otherRec.getIterator(), function (e) {
|
|
2335
|
-
if (has$
|
|
2976
|
+
if (has$3(O, e)) add$2(result, e);
|
|
2336
2977
|
});
|
|
2337
2978
|
} else {
|
|
2338
2979
|
iterateSet$1(O, function (e) {
|
|
@@ -2343,8 +2984,8 @@ var setIntersection = function intersection(other) {
|
|
|
2343
2984
|
return result;
|
|
2344
2985
|
};
|
|
2345
2986
|
|
|
2346
|
-
var $$
|
|
2347
|
-
var fails = fails$
|
|
2987
|
+
var $$5 = _export;
|
|
2988
|
+
var fails = fails$f;
|
|
2348
2989
|
var intersection = setIntersection;
|
|
2349
2990
|
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
2350
2991
|
|
|
@@ -2357,12 +2998,12 @@ var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
|
|
|
2357
2998
|
|
|
2358
2999
|
// `Set.prototype.intersection` method
|
|
2359
3000
|
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
2360
|
-
$$
|
|
3001
|
+
$$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
|
|
2361
3002
|
intersection: intersection
|
|
2362
3003
|
});
|
|
2363
3004
|
|
|
2364
3005
|
var aSet$4 = aSet$7;
|
|
2365
|
-
var has$
|
|
3006
|
+
var has$2 = setHelpers.has;
|
|
2366
3007
|
var size$2 = setSize;
|
|
2367
3008
|
var getSetRecord$4 = getSetRecord$7;
|
|
2368
3009
|
var iterateSet = setIterate;
|
|
@@ -2379,11 +3020,11 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
|
2379
3020
|
}, true) !== false;
|
|
2380
3021
|
var iterator = otherRec.getIterator();
|
|
2381
3022
|
return iterateSimple$3(iterator, function (e) {
|
|
2382
|
-
if (has$
|
|
3023
|
+
if (has$2(O, e)) return iteratorClose$1(iterator.iterator, 'normal', false);
|
|
2383
3024
|
}) !== false;
|
|
2384
3025
|
};
|
|
2385
3026
|
|
|
2386
|
-
var $$
|
|
3027
|
+
var $$4 = _export;
|
|
2387
3028
|
var isDisjointFrom = setIsDisjointFrom;
|
|
2388
3029
|
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
2389
3030
|
|
|
@@ -2393,7 +3034,7 @@ var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result)
|
|
|
2393
3034
|
|
|
2394
3035
|
// `Set.prototype.isDisjointFrom` method
|
|
2395
3036
|
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
2396
|
-
$$
|
|
3037
|
+
$$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
|
|
2397
3038
|
isDisjointFrom: isDisjointFrom
|
|
2398
3039
|
});
|
|
2399
3040
|
|
|
@@ -2413,7 +3054,7 @@ var setIsSubsetOf = function isSubsetOf(other) {
|
|
|
2413
3054
|
}, true) !== false;
|
|
2414
3055
|
};
|
|
2415
3056
|
|
|
2416
|
-
var $$
|
|
3057
|
+
var $$3 = _export;
|
|
2417
3058
|
var isSubsetOf = setIsSubsetOf;
|
|
2418
3059
|
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
2419
3060
|
|
|
@@ -2423,12 +3064,12 @@ var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
|
|
|
2423
3064
|
|
|
2424
3065
|
// `Set.prototype.isSubsetOf` method
|
|
2425
3066
|
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
2426
|
-
$$
|
|
3067
|
+
$$3({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
|
|
2427
3068
|
isSubsetOf: isSubsetOf
|
|
2428
3069
|
});
|
|
2429
3070
|
|
|
2430
3071
|
var aSet$2 = aSet$7;
|
|
2431
|
-
var has$
|
|
3072
|
+
var has$1 = setHelpers.has;
|
|
2432
3073
|
var size = setSize;
|
|
2433
3074
|
var getSetRecord$2 = getSetRecord$7;
|
|
2434
3075
|
var iterateSimple$2 = iterateSimple$7;
|
|
@@ -2442,11 +3083,11 @@ var setIsSupersetOf = function isSupersetOf(other) {
|
|
|
2442
3083
|
if (size(O) < otherRec.size) return false;
|
|
2443
3084
|
var iterator = otherRec.getIterator();
|
|
2444
3085
|
return iterateSimple$2(iterator, function (e) {
|
|
2445
|
-
if (!has$
|
|
3086
|
+
if (!has$1(O, e)) return iteratorClose(iterator.iterator, 'normal', false);
|
|
2446
3087
|
}) !== false;
|
|
2447
3088
|
};
|
|
2448
3089
|
|
|
2449
|
-
var $$
|
|
3090
|
+
var $$2 = _export;
|
|
2450
3091
|
var isSupersetOf = setIsSupersetOf;
|
|
2451
3092
|
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
2452
3093
|
|
|
@@ -2456,7 +3097,7 @@ var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
|
|
|
2456
3097
|
|
|
2457
3098
|
// `Set.prototype.isSupersetOf` method
|
|
2458
3099
|
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
2459
|
-
$$
|
|
3100
|
+
$$2({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
2460
3101
|
isSupersetOf: isSupersetOf
|
|
2461
3102
|
});
|
|
2462
3103
|
|
|
@@ -2467,7 +3108,7 @@ var getSetRecord$1 = getSetRecord$7;
|
|
|
2467
3108
|
var iterateSimple$1 = iterateSimple$7;
|
|
2468
3109
|
|
|
2469
3110
|
var add$1 = SetHelpers.add;
|
|
2470
|
-
var has
|
|
3111
|
+
var has = SetHelpers.has;
|
|
2471
3112
|
var remove = SetHelpers.remove;
|
|
2472
3113
|
|
|
2473
3114
|
// `Set.prototype.symmetricDifference` method
|
|
@@ -2477,7 +3118,7 @@ var setSymmetricDifference = function symmetricDifference(other) {
|
|
|
2477
3118
|
var keysIter = getSetRecord$1(other).getIterator();
|
|
2478
3119
|
var result = clone$1(O);
|
|
2479
3120
|
iterateSimple$1(keysIter, function (e) {
|
|
2480
|
-
if (has
|
|
3121
|
+
if (has(O, e)) remove(result, e);
|
|
2481
3122
|
else add$1(result, e);
|
|
2482
3123
|
});
|
|
2483
3124
|
return result;
|
|
@@ -2513,7 +3154,7 @@ var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
|
|
|
2513
3154
|
}
|
|
2514
3155
|
};
|
|
2515
3156
|
|
|
2516
|
-
var $$
|
|
3157
|
+
var $$1 = _export;
|
|
2517
3158
|
var symmetricDifference = setSymmetricDifference;
|
|
2518
3159
|
var setMethodGetKeysBeforeCloning$1 = setMethodGetKeysBeforeCloningDetection;
|
|
2519
3160
|
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
@@ -2522,7 +3163,7 @@ var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGet
|
|
|
2522
3163
|
|
|
2523
3164
|
// `Set.prototype.symmetricDifference` method
|
|
2524
3165
|
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
2525
|
-
$$
|
|
3166
|
+
$$1({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
|
|
2526
3167
|
symmetricDifference: symmetricDifference
|
|
2527
3168
|
});
|
|
2528
3169
|
|
|
@@ -2544,7 +3185,7 @@ var setUnion = function union(other) {
|
|
|
2544
3185
|
return result;
|
|
2545
3186
|
};
|
|
2546
3187
|
|
|
2547
|
-
var
|
|
3188
|
+
var $ = _export;
|
|
2548
3189
|
var union = setUnion;
|
|
2549
3190
|
var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
|
|
2550
3191
|
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
@@ -2553,73 +3194,10 @@ var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning(
|
|
|
2553
3194
|
|
|
2554
3195
|
// `Set.prototype.union` method
|
|
2555
3196
|
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
2556
|
-
|
|
3197
|
+
$({ target: 'Set', proto: true, real: true, forced: FORCED }, {
|
|
2557
3198
|
union: union
|
|
2558
3199
|
});
|
|
2559
3200
|
|
|
2560
|
-
var uncurryThis = functionUncurryThis;
|
|
2561
|
-
|
|
2562
|
-
// eslint-disable-next-line es/no-map -- safe
|
|
2563
|
-
var MapPrototype = Map.prototype;
|
|
2564
|
-
|
|
2565
|
-
var mapHelpers = {
|
|
2566
|
-
set: uncurryThis(MapPrototype.set),
|
|
2567
|
-
get: uncurryThis(MapPrototype.get),
|
|
2568
|
-
has: uncurryThis(MapPrototype.has),
|
|
2569
|
-
remove: uncurryThis(MapPrototype['delete'])};
|
|
2570
|
-
|
|
2571
|
-
var has$2 = mapHelpers.has;
|
|
2572
|
-
|
|
2573
|
-
// Perform ? RequireInternalSlot(M, [[MapData]])
|
|
2574
|
-
var aMap$2 = function (it) {
|
|
2575
|
-
has$2(it);
|
|
2576
|
-
return it;
|
|
2577
|
-
};
|
|
2578
|
-
|
|
2579
|
-
var $$1 = _export;
|
|
2580
|
-
var aMap$1 = aMap$2;
|
|
2581
|
-
var MapHelpers$1 = mapHelpers;
|
|
2582
|
-
var IS_PURE$1 = isPure;
|
|
2583
|
-
|
|
2584
|
-
var get$1 = MapHelpers$1.get;
|
|
2585
|
-
var has$1 = MapHelpers$1.has;
|
|
2586
|
-
var set$1 = MapHelpers$1.set;
|
|
2587
|
-
|
|
2588
|
-
// `Map.prototype.getOrInsert` method
|
|
2589
|
-
// https://github.com/tc39/proposal-upsert
|
|
2590
|
-
$$1({ target: 'Map', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
2591
|
-
getOrInsert: function getOrInsert(key, value) {
|
|
2592
|
-
if (has$1(aMap$1(this), key)) return get$1(this, key);
|
|
2593
|
-
set$1(this, key, value);
|
|
2594
|
-
return value;
|
|
2595
|
-
}
|
|
2596
|
-
});
|
|
2597
|
-
|
|
2598
|
-
var $ = _export;
|
|
2599
|
-
var aCallable = aCallable$9;
|
|
2600
|
-
var aMap = aMap$2;
|
|
2601
|
-
var MapHelpers = mapHelpers;
|
|
2602
|
-
var IS_PURE = isPure;
|
|
2603
|
-
|
|
2604
|
-
var get = MapHelpers.get;
|
|
2605
|
-
var has = MapHelpers.has;
|
|
2606
|
-
var set = MapHelpers.set;
|
|
2607
|
-
|
|
2608
|
-
// `Map.prototype.getOrInsertComputed` method
|
|
2609
|
-
// https://github.com/tc39/proposal-upsert
|
|
2610
|
-
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
|
|
2611
|
-
getOrInsertComputed: function getOrInsertComputed(key, callbackfn) {
|
|
2612
|
-
aMap(this);
|
|
2613
|
-
aCallable(callbackfn);
|
|
2614
|
-
if (has(this, key)) return get(this, key);
|
|
2615
|
-
// CanonicalizeKeyedCollectionKey
|
|
2616
|
-
if (key === 0 && 1 / key === -Infinity) key = 0;
|
|
2617
|
-
var value = callbackfn(key);
|
|
2618
|
-
set(this, key, value);
|
|
2619
|
-
return value;
|
|
2620
|
-
}
|
|
2621
|
-
});
|
|
2622
|
-
|
|
2623
3201
|
const cache = new Map();
|
|
2624
3202
|
const processVariables = (theme, prefix, cacheKey) => {
|
|
2625
3203
|
if (cache.has(cacheKey)) return cache.get(cacheKey);
|
|
@@ -2637,17 +3215,11 @@ const resolveInheritance = themes => {
|
|
|
2637
3215
|
if (resolved.has(name)) return resolved.get(name);
|
|
2638
3216
|
const theme = themeMap.get(name);
|
|
2639
3217
|
if (!theme) throw new Error(`Theme "${name}" not found`);
|
|
2640
|
-
const merged = theme.extends ? {
|
|
2641
|
-
...resolve(theme.extends),
|
|
2642
|
-
...theme.theme
|
|
2643
|
-
} : {
|
|
2644
|
-
...theme.theme
|
|
2645
|
-
};
|
|
3218
|
+
const merged = theme.extends ? Object.assign({}, resolve(theme.extends), theme.theme) : Object.assign({}, theme.theme);
|
|
2646
3219
|
resolved.set(name, merged);
|
|
2647
3220
|
return merged;
|
|
2648
3221
|
};
|
|
2649
|
-
return themes.map(t => ({
|
|
2650
|
-
...t,
|
|
3222
|
+
return themes.map(t => Object.assign({}, t, {
|
|
2651
3223
|
theme: resolve(t.name)
|
|
2652
3224
|
}));
|
|
2653
3225
|
};
|
|
@@ -2659,7 +3231,7 @@ function createThemeSwapper({
|
|
|
2659
3231
|
return ({
|
|
2660
3232
|
addBase
|
|
2661
3233
|
}) => {
|
|
2662
|
-
if (!themes
|
|
3234
|
+
if (!(themes != null && themes.length)) throw new Error('At least one theme required');
|
|
2663
3235
|
const names = new Set();
|
|
2664
3236
|
themes.forEach(({
|
|
2665
3237
|
name,
|
|
@@ -2667,7 +3239,7 @@ function createThemeSwapper({
|
|
|
2667
3239
|
}, i) => {
|
|
2668
3240
|
if (!name) throw new Error(`Theme at index ${i} missing name`);
|
|
2669
3241
|
if (names.has(name)) throw new Error(`Duplicate theme: "${name}"`);
|
|
2670
|
-
if (!selectors
|
|
3242
|
+
if (!(selectors != null && selectors.length)) throw new Error(`Theme "${name}" needs selectors`);
|
|
2671
3243
|
names.add(name);
|
|
2672
3244
|
});
|
|
2673
3245
|
if (debug) {
|
|
@@ -3698,22 +4270,16 @@ const TYPOGRAPHY_DEFAULT = {
|
|
|
3698
4270
|
const inherit = 'inherit';
|
|
3699
4271
|
var index = {
|
|
3700
4272
|
theme: {
|
|
3701
|
-
colors: {
|
|
4273
|
+
colors: Object.assign({
|
|
3702
4274
|
inherit,
|
|
3703
4275
|
current: 'currentColor',
|
|
3704
|
-
transparent: 'transparent'
|
|
3705
|
-
|
|
4276
|
+
transparent: 'transparent'
|
|
4277
|
+
}, PRIMITIVE_COLORS, {
|
|
3706
4278
|
focus: DECLARATIVE_COLORS.focus,
|
|
3707
|
-
data: {
|
|
3708
|
-
|
|
3709
|
-
},
|
|
3710
|
-
|
|
3711
|
-
...DECLARATIVE_COLORS.icon
|
|
3712
|
-
},
|
|
3713
|
-
ui: {
|
|
3714
|
-
...DECLARATIVE_COLORS.ui
|
|
3715
|
-
}
|
|
3716
|
-
},
|
|
4279
|
+
data: Object.assign({}, DECLARATIVE_COLORS.data),
|
|
4280
|
+
icon: Object.assign({}, DECLARATIVE_COLORS.icon),
|
|
4281
|
+
ui: Object.assign({}, DECLARATIVE_COLORS.ui)
|
|
4282
|
+
}),
|
|
3717
4283
|
borderRadius: {
|
|
3718
4284
|
none: 'var(--bq-radius--none)',
|
|
3719
4285
|
xs2: 'var(--bq-radius--xs2)',
|
|
@@ -3775,21 +4341,11 @@ var index = {
|
|
|
3775
4341
|
l: 'var(--bq-stroke-l)'
|
|
3776
4342
|
},
|
|
3777
4343
|
extend: {
|
|
3778
|
-
backgroundColor: {
|
|
3779
|
-
|
|
3780
|
-
},
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
},
|
|
3784
|
-
stroke: {
|
|
3785
|
-
...DECLARATIVE_COLORS.stroke
|
|
3786
|
-
},
|
|
3787
|
-
textColor: {
|
|
3788
|
-
...DECLARATIVE_COLORS.text
|
|
3789
|
-
},
|
|
3790
|
-
fill: {
|
|
3791
|
-
...DECLARATIVE_COLORS.icon
|
|
3792
|
-
},
|
|
4344
|
+
backgroundColor: Object.assign({}, DECLARATIVE_COLORS.bg),
|
|
4345
|
+
borderColor: Object.assign({}, DECLARATIVE_COLORS.stroke),
|
|
4346
|
+
stroke: Object.assign({}, DECLARATIVE_COLORS.stroke),
|
|
4347
|
+
textColor: Object.assign({}, DECLARATIVE_COLORS.text),
|
|
4348
|
+
fill: Object.assign({}, DECLARATIVE_COLORS.icon),
|
|
3793
4349
|
content: {
|
|
3794
4350
|
empty: "''"
|
|
3795
4351
|
},
|
|
@@ -3820,12 +4376,9 @@ var index = {
|
|
|
3820
4376
|
addComponents,
|
|
3821
4377
|
theme
|
|
3822
4378
|
}) => {
|
|
3823
|
-
addBase({
|
|
3824
|
-
':root, ::backdrop': {
|
|
3825
|
-
|
|
3826
|
-
},
|
|
3827
|
-
...reset
|
|
3828
|
-
});
|
|
4379
|
+
addBase(Object.assign({
|
|
4380
|
+
':root, ::backdrop': Object.assign({}, CSS_COLORS)
|
|
4381
|
+
}, reset));
|
|
3829
4382
|
addComponents({
|
|
3830
4383
|
'.focus': {
|
|
3831
4384
|
outline: `var(--bq-ring-width, 2px) solid var(--bq-ring-color-focus, ${String(theme('colors.focus'))})`,
|
|
@@ -3836,42 +4389,30 @@ var index = {
|
|
|
3836
4389
|
themes: [{
|
|
3837
4390
|
name: 'base',
|
|
3838
4391
|
selectors: [':root'],
|
|
3839
|
-
theme: {
|
|
3840
|
-
...DefaultRootTheme
|
|
3841
|
-
}
|
|
4392
|
+
theme: Object.assign({}, DefaultRootTheme)
|
|
3842
4393
|
}, {
|
|
3843
4394
|
name: 'light',
|
|
3844
4395
|
selectors: [':root:not([bq-theme]):not([bq-mode])', ':root[bq-theme="beeq"]:not([bq-mode])', '.beeq:not([bq-mode])', '[bq-mode="light"]', '.light'],
|
|
3845
|
-
theme: {
|
|
3846
|
-
...DefaultLightTheme
|
|
3847
|
-
},
|
|
4396
|
+
theme: Object.assign({}, DefaultLightTheme),
|
|
3848
4397
|
mode: true
|
|
3849
4398
|
}, {
|
|
3850
4399
|
name: 'dark',
|
|
3851
4400
|
selectors: ['[bq-mode="dark"]', '.dark'],
|
|
3852
|
-
theme: {
|
|
3853
|
-
...DefaultDarkTheme
|
|
3854
|
-
},
|
|
4401
|
+
theme: Object.assign({}, DefaultDarkTheme),
|
|
3855
4402
|
mode: true
|
|
3856
4403
|
}, {
|
|
3857
4404
|
name: 'endava',
|
|
3858
4405
|
selectors: ['[bq-theme="endava"]', '.endava'],
|
|
3859
|
-
theme: {
|
|
3860
|
-
...EndavaRootTheme
|
|
3861
|
-
}
|
|
4406
|
+
theme: Object.assign({}, EndavaRootTheme)
|
|
3862
4407
|
}, {
|
|
3863
4408
|
name: 'endava-light',
|
|
3864
4409
|
selectors: ['[bq-theme="endava"]:not([bq-mode])', '.endava:not([bq-mode])', '[bq-theme="endava"][bq-mode="light"]', '.endava.light'],
|
|
3865
|
-
theme: {
|
|
3866
|
-
...EndavaLightTheme
|
|
3867
|
-
},
|
|
4410
|
+
theme: Object.assign({}, EndavaLightTheme),
|
|
3868
4411
|
mode: true
|
|
3869
4412
|
}, {
|
|
3870
4413
|
name: 'endava-dark',
|
|
3871
4414
|
selectors: ['[bq-theme="endava"][bq-mode="dark"]', '.endava.dark'],
|
|
3872
|
-
theme: {
|
|
3873
|
-
...EndavaDarkTheme
|
|
3874
|
-
},
|
|
4415
|
+
theme: Object.assign({}, EndavaDarkTheme),
|
|
3875
4416
|
mode: true
|
|
3876
4417
|
}]
|
|
3877
4418
|
})]
|