mocha 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/hook.js +7 -1
- package/lib/suite.js +2 -2
- package/lib/test.js +1 -1
- package/mocha-es2018.js +12 -6
- package/mocha.js +399 -276
- package/mocha.js.map +1 -1
- package/package.json +9 -9
package/mocha.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// mocha@9.1.
|
|
1
|
+
// mocha@9.1.1 transpiled to javascript ES5
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -119,19 +119,97 @@
|
|
|
119
119
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
var
|
|
127
|
-
|
|
122
|
+
var aFunction$1 = function (variable) {
|
|
123
|
+
return typeof variable == 'function' ? variable : undefined;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
var getBuiltIn = function (namespace, method) {
|
|
127
|
+
return arguments.length < 2 ? aFunction$1(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
131
|
+
|
|
132
|
+
var process$5 = global_1.process;
|
|
133
|
+
var Deno = global_1.Deno;
|
|
134
|
+
var versions$2 = process$5 && process$5.versions || Deno && Deno.version;
|
|
135
|
+
var v8 = versions$2 && versions$2.v8;
|
|
136
|
+
var match, version$3;
|
|
137
|
+
|
|
138
|
+
if (v8) {
|
|
139
|
+
match = v8.split('.');
|
|
140
|
+
version$3 = match[0] < 4 ? 1 : match[0] + match[1];
|
|
141
|
+
} else if (engineUserAgent) {
|
|
142
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
143
|
+
if (!match || match[1] >= 74) {
|
|
144
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
145
|
+
if (match) version$3 = match[1];
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
var engineV8Version = version$3 && +version$3;
|
|
150
|
+
|
|
151
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
156
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
157
|
+
var symbol = Symbol();
|
|
158
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
159
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
160
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
161
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
162
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
var useSymbolAsUid = nativeSymbol
|
|
169
|
+
&& !Symbol.sham
|
|
170
|
+
&& typeof Symbol.iterator == 'symbol';
|
|
171
|
+
|
|
172
|
+
var isSymbol$1 = useSymbolAsUid ? function (it) {
|
|
173
|
+
return typeof it == 'symbol';
|
|
174
|
+
} : function (it) {
|
|
175
|
+
var $Symbol = getBuiltIn('Symbol');
|
|
176
|
+
return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
180
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
181
|
+
var ordinaryToPrimitive = function (input, pref) {
|
|
128
182
|
var fn, val;
|
|
129
|
-
if (
|
|
183
|
+
if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$1(val = fn.call(input))) return val;
|
|
130
184
|
if (typeof (fn = input.valueOf) == 'function' && !isObject$1(val = fn.call(input))) return val;
|
|
131
|
-
if (
|
|
185
|
+
if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$1(val = fn.call(input))) return val;
|
|
132
186
|
throw TypeError("Can't convert object to primitive value");
|
|
133
187
|
};
|
|
134
188
|
|
|
189
|
+
var setGlobal = function (key, value) {
|
|
190
|
+
try {
|
|
191
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
192
|
+
Object.defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
|
193
|
+
} catch (error) {
|
|
194
|
+
global_1[key] = value;
|
|
195
|
+
} return value;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
var SHARED = '__core-js_shared__';
|
|
199
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
|
200
|
+
|
|
201
|
+
var sharedStore = store$1;
|
|
202
|
+
|
|
203
|
+
var shared = createCommonjsModule(function (module) {
|
|
204
|
+
(module.exports = function (key, value) {
|
|
205
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
206
|
+
})('versions', []).push({
|
|
207
|
+
version: '3.16.3',
|
|
208
|
+
mode: 'global',
|
|
209
|
+
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
|
|
135
213
|
// `ToObject` abstract operation
|
|
136
214
|
// https://tc39.es/ecma262/#sec-toobject
|
|
137
215
|
var toObject = function (argument) {
|
|
@@ -144,6 +222,52 @@
|
|
|
144
222
|
return hasOwnProperty$1.call(toObject(it), key);
|
|
145
223
|
};
|
|
146
224
|
|
|
225
|
+
var id = 0;
|
|
226
|
+
var postfix = Math.random();
|
|
227
|
+
|
|
228
|
+
var uid = function (key) {
|
|
229
|
+
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
var WellKnownSymbolsStore$1 = shared('wks');
|
|
233
|
+
var Symbol$1 = global_1.Symbol;
|
|
234
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
235
|
+
|
|
236
|
+
var wellKnownSymbol = function (name) {
|
|
237
|
+
if (!has$1(WellKnownSymbolsStore$1, name) || !(nativeSymbol || typeof WellKnownSymbolsStore$1[name] == 'string')) {
|
|
238
|
+
if (nativeSymbol && has$1(Symbol$1, name)) {
|
|
239
|
+
WellKnownSymbolsStore$1[name] = Symbol$1[name];
|
|
240
|
+
} else {
|
|
241
|
+
WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name);
|
|
242
|
+
}
|
|
243
|
+
} return WellKnownSymbolsStore$1[name];
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
var TO_PRIMITIVE$1 = wellKnownSymbol('toPrimitive');
|
|
247
|
+
|
|
248
|
+
// `ToPrimitive` abstract operation
|
|
249
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
250
|
+
var toPrimitive = function (input, pref) {
|
|
251
|
+
if (!isObject$1(input) || isSymbol$1(input)) return input;
|
|
252
|
+
var exoticToPrim = input[TO_PRIMITIVE$1];
|
|
253
|
+
var result;
|
|
254
|
+
if (exoticToPrim !== undefined) {
|
|
255
|
+
if (pref === undefined) pref = 'default';
|
|
256
|
+
result = exoticToPrim.call(input, pref);
|
|
257
|
+
if (!isObject$1(result) || isSymbol$1(result)) return result;
|
|
258
|
+
throw TypeError("Can't convert object to primitive value");
|
|
259
|
+
}
|
|
260
|
+
if (pref === undefined) pref = 'number';
|
|
261
|
+
return ordinaryToPrimitive(input, pref);
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// `ToPropertyKey` abstract operation
|
|
265
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
266
|
+
var toPropertyKey = function (argument) {
|
|
267
|
+
var key = toPrimitive(argument, 'string');
|
|
268
|
+
return isSymbol$1(key) ? key : String(key);
|
|
269
|
+
};
|
|
270
|
+
|
|
147
271
|
var document$3 = global_1.document;
|
|
148
272
|
// typeof document.createElement is 'object' in old IE
|
|
149
273
|
var EXISTS = isObject$1(document$3) && isObject$1(document$3.createElement);
|
|
@@ -167,7 +291,7 @@
|
|
|
167
291
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
168
292
|
var f$6 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
169
293
|
O = toIndexedObject(O);
|
|
170
|
-
P =
|
|
294
|
+
P = toPropertyKey(P);
|
|
171
295
|
if (ie8DomDefine) try {
|
|
172
296
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
173
297
|
} catch (error) { /* empty */ }
|
|
@@ -191,7 +315,7 @@
|
|
|
191
315
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
192
316
|
var f$5 = descriptors ? $defineProperty$1 : function defineProperty(O, P, Attributes) {
|
|
193
317
|
anObject(O);
|
|
194
|
-
P =
|
|
318
|
+
P = toPropertyKey(P);
|
|
195
319
|
anObject(Attributes);
|
|
196
320
|
if (ie8DomDefine) try {
|
|
197
321
|
return $defineProperty$1(O, P, Attributes);
|
|
@@ -212,19 +336,6 @@
|
|
|
212
336
|
return object;
|
|
213
337
|
};
|
|
214
338
|
|
|
215
|
-
var setGlobal = function (key, value) {
|
|
216
|
-
try {
|
|
217
|
-
createNonEnumerableProperty(global_1, key, value);
|
|
218
|
-
} catch (error) {
|
|
219
|
-
global_1[key] = value;
|
|
220
|
-
} return value;
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
var SHARED = '__core-js_shared__';
|
|
224
|
-
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
|
225
|
-
|
|
226
|
-
var sharedStore = store$1;
|
|
227
|
-
|
|
228
339
|
var functionToString = Function.toString;
|
|
229
340
|
|
|
230
341
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
@@ -240,23 +351,6 @@
|
|
|
240
351
|
|
|
241
352
|
var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
|
|
242
353
|
|
|
243
|
-
var shared = createCommonjsModule(function (module) {
|
|
244
|
-
(module.exports = function (key, value) {
|
|
245
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
246
|
-
})('versions', []).push({
|
|
247
|
-
version: '3.15.2',
|
|
248
|
-
mode: 'global',
|
|
249
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
var id = 0;
|
|
254
|
-
var postfix = Math.random();
|
|
255
|
-
|
|
256
|
-
var uid = function (key) {
|
|
257
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
258
|
-
};
|
|
259
|
-
|
|
260
354
|
var keys$4 = shared('keys');
|
|
261
355
|
|
|
262
356
|
var sharedKey = function (key) {
|
|
@@ -360,24 +454,13 @@
|
|
|
360
454
|
});
|
|
361
455
|
});
|
|
362
456
|
|
|
363
|
-
var path$1 = global_1;
|
|
364
|
-
|
|
365
|
-
var aFunction$1 = function (variable) {
|
|
366
|
-
return typeof variable == 'function' ? variable : undefined;
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
var getBuiltIn = function (namespace, method) {
|
|
370
|
-
return arguments.length < 2 ? aFunction$1(path$1[namespace]) || aFunction$1(global_1[namespace])
|
|
371
|
-
: path$1[namespace] && path$1[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
|
372
|
-
};
|
|
373
|
-
|
|
374
457
|
var ceil = Math.ceil;
|
|
375
|
-
var floor$
|
|
458
|
+
var floor$6 = Math.floor;
|
|
376
459
|
|
|
377
460
|
// `ToInteger` abstract operation
|
|
378
461
|
// https://tc39.es/ecma262/#sec-tointeger
|
|
379
462
|
var toInteger = function (argument) {
|
|
380
|
-
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$
|
|
463
|
+
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$6 : ceil)(argument);
|
|
381
464
|
};
|
|
382
465
|
|
|
383
466
|
var min$7 = Math.min;
|
|
@@ -573,66 +656,11 @@
|
|
|
573
656
|
return classofRaw(arg) == 'Array';
|
|
574
657
|
};
|
|
575
658
|
|
|
576
|
-
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
577
|
-
|
|
578
|
-
var process$5 = global_1.process;
|
|
579
|
-
var versions$2 = process$5 && process$5.versions;
|
|
580
|
-
var v8 = versions$2 && versions$2.v8;
|
|
581
|
-
var match, version$3;
|
|
582
|
-
|
|
583
|
-
if (v8) {
|
|
584
|
-
match = v8.split('.');
|
|
585
|
-
version$3 = match[0] < 4 ? 1 : match[0] + match[1];
|
|
586
|
-
} else if (engineUserAgent) {
|
|
587
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
|
588
|
-
if (!match || match[1] >= 74) {
|
|
589
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
|
590
|
-
if (match) version$3 = match[1];
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
var engineV8Version = version$3 && +version$3;
|
|
595
|
-
|
|
596
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
601
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
602
|
-
var symbol = Symbol();
|
|
603
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
604
|
-
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
605
|
-
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
606
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
607
|
-
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
608
|
-
});
|
|
609
|
-
|
|
610
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
var useSymbolAsUid = nativeSymbol
|
|
614
|
-
&& !Symbol.sham
|
|
615
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
616
|
-
|
|
617
|
-
var WellKnownSymbolsStore$1 = shared('wks');
|
|
618
|
-
var Symbol$1 = global_1.Symbol;
|
|
619
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
620
|
-
|
|
621
|
-
var wellKnownSymbol = function (name) {
|
|
622
|
-
if (!has$1(WellKnownSymbolsStore$1, name) || !(nativeSymbol || typeof WellKnownSymbolsStore$1[name] == 'string')) {
|
|
623
|
-
if (nativeSymbol && has$1(Symbol$1, name)) {
|
|
624
|
-
WellKnownSymbolsStore$1[name] = Symbol$1[name];
|
|
625
|
-
} else {
|
|
626
|
-
WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name);
|
|
627
|
-
}
|
|
628
|
-
} return WellKnownSymbolsStore$1[name];
|
|
629
|
-
};
|
|
630
|
-
|
|
631
659
|
var SPECIES$6 = wellKnownSymbol('species');
|
|
632
660
|
|
|
633
|
-
// `ArraySpeciesCreate` abstract operation
|
|
661
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
|
634
662
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
635
|
-
var
|
|
663
|
+
var arraySpeciesConstructor = function (originalArray) {
|
|
636
664
|
var C;
|
|
637
665
|
if (isArray$3(originalArray)) {
|
|
638
666
|
C = originalArray.constructor;
|
|
@@ -642,11 +670,17 @@
|
|
|
642
670
|
C = C[SPECIES$6];
|
|
643
671
|
if (C === null) C = undefined;
|
|
644
672
|
}
|
|
645
|
-
} return
|
|
673
|
+
} return C === undefined ? Array : C;
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
// `ArraySpeciesCreate` abstract operation
|
|
677
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
678
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
|
679
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
646
680
|
};
|
|
647
681
|
|
|
648
682
|
var createProperty = function (object, key, value) {
|
|
649
|
-
var propertyKey =
|
|
683
|
+
var propertyKey = toPropertyKey(key);
|
|
650
684
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
651
685
|
else object[propertyKey] = value;
|
|
652
686
|
};
|
|
@@ -793,14 +827,14 @@
|
|
|
793
827
|
|
|
794
828
|
var push = [].push;
|
|
795
829
|
|
|
796
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
|
830
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
797
831
|
var createMethod$4 = function (TYPE) {
|
|
798
832
|
var IS_MAP = TYPE == 1;
|
|
799
833
|
var IS_FILTER = TYPE == 2;
|
|
800
834
|
var IS_SOME = TYPE == 3;
|
|
801
835
|
var IS_EVERY = TYPE == 4;
|
|
802
836
|
var IS_FIND_INDEX = TYPE == 6;
|
|
803
|
-
var
|
|
837
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
|
804
838
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
805
839
|
return function ($this, callbackfn, that, specificCreate) {
|
|
806
840
|
var O = toObject($this);
|
|
@@ -809,7 +843,7 @@
|
|
|
809
843
|
var length = toLength(self.length);
|
|
810
844
|
var index = 0;
|
|
811
845
|
var create = specificCreate || arraySpeciesCreate;
|
|
812
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
|
846
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
813
847
|
var value, result;
|
|
814
848
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
815
849
|
value = self[index];
|
|
@@ -823,7 +857,7 @@
|
|
|
823
857
|
case 2: push.call(target, value); // filter
|
|
824
858
|
} else switch (TYPE) {
|
|
825
859
|
case 4: return false; // every
|
|
826
|
-
case 7: push.call(target, value); //
|
|
860
|
+
case 7: push.call(target, value); // filterReject
|
|
827
861
|
}
|
|
828
862
|
}
|
|
829
863
|
}
|
|
@@ -853,9 +887,9 @@
|
|
|
853
887
|
// `Array.prototype.findIndex` method
|
|
854
888
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
855
889
|
findIndex: createMethod$4(6),
|
|
856
|
-
// `Array.prototype.
|
|
890
|
+
// `Array.prototype.filterReject` method
|
|
857
891
|
// https://github.com/tc39/proposal-array-filtering
|
|
858
|
-
|
|
892
|
+
filterReject: createMethod$4(7)
|
|
859
893
|
};
|
|
860
894
|
|
|
861
895
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
|
@@ -920,6 +954,11 @@
|
|
|
920
954
|
}
|
|
921
955
|
});
|
|
922
956
|
|
|
957
|
+
var toString_1 = function (argument) {
|
|
958
|
+
if (isSymbol$1(argument)) throw TypeError('Cannot convert a Symbol value to a string');
|
|
959
|
+
return String(argument);
|
|
960
|
+
};
|
|
961
|
+
|
|
923
962
|
// `RegExp.prototype.flags` getter implementation
|
|
924
963
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
925
964
|
var regexpFlags = function () {
|
|
@@ -934,20 +973,18 @@
|
|
|
934
973
|
return result;
|
|
935
974
|
};
|
|
936
975
|
|
|
937
|
-
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
938
|
-
var
|
|
939
|
-
return RegExp(s, f);
|
|
940
|
-
};
|
|
976
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
977
|
+
var $RegExp$2 = global_1.RegExp;
|
|
941
978
|
|
|
942
979
|
var UNSUPPORTED_Y$3 = fails(function () {
|
|
943
|
-
var re =
|
|
980
|
+
var re = $RegExp$2('a', 'y');
|
|
944
981
|
re.lastIndex = 2;
|
|
945
982
|
return re.exec('abcd') != null;
|
|
946
983
|
});
|
|
947
984
|
|
|
948
985
|
var BROKEN_CARET = fails(function () {
|
|
949
986
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
950
|
-
var re =
|
|
987
|
+
var re = $RegExp$2('^r', 'gy');
|
|
951
988
|
re.lastIndex = 2;
|
|
952
989
|
return re.exec('str') != null;
|
|
953
990
|
});
|
|
@@ -972,6 +1009,15 @@
|
|
|
972
1009
|
|
|
973
1010
|
var html$1 = getBuiltIn('document', 'documentElement');
|
|
974
1011
|
|
|
1012
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
|
|
975
1021
|
var GT = '>';
|
|
976
1022
|
var LT = '<';
|
|
977
1023
|
var PROTOTYPE$2 = 'prototype';
|
|
@@ -1018,10 +1064,13 @@
|
|
|
1018
1064
|
var activeXDocument;
|
|
1019
1065
|
var NullProtoObject = function () {
|
|
1020
1066
|
try {
|
|
1021
|
-
|
|
1022
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
1067
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1023
1068
|
} catch (error) { /* ignore */ }
|
|
1024
|
-
NullProtoObject =
|
|
1069
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1070
|
+
? document.domain && activeXDocument
|
|
1071
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1072
|
+
: NullProtoObjectViaIFrame()
|
|
1073
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1025
1074
|
var length = enumBugKeys.length;
|
|
1026
1075
|
while (length--) delete NullProtoObject[PROTOTYPE$2][enumBugKeys[length]];
|
|
1027
1076
|
return NullProtoObject();
|
|
@@ -1043,25 +1092,30 @@
|
|
|
1043
1092
|
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
|
1044
1093
|
};
|
|
1045
1094
|
|
|
1095
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1096
|
+
var $RegExp$1 = global_1.RegExp;
|
|
1097
|
+
|
|
1046
1098
|
var regexpUnsupportedDotAll = fails(function () {
|
|
1047
|
-
|
|
1048
|
-
var re = RegExp('.', (typeof '').charAt(0));
|
|
1099
|
+
var re = $RegExp$1('.', 's');
|
|
1049
1100
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1050
1101
|
});
|
|
1051
1102
|
|
|
1103
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1104
|
+
var $RegExp = global_1.RegExp;
|
|
1105
|
+
|
|
1052
1106
|
var regexpUnsupportedNcg = fails(function () {
|
|
1053
|
-
|
|
1054
|
-
var re = RegExp('(?<a>b)', (typeof '').charAt(5));
|
|
1107
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
1055
1108
|
return re.exec('b').groups.a !== 'b' ||
|
|
1056
1109
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
1057
1110
|
});
|
|
1058
1111
|
|
|
1059
|
-
/* eslint-disable regexp/no-
|
|
1112
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1060
1113
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1061
1114
|
|
|
1062
1115
|
|
|
1063
1116
|
|
|
1064
1117
|
|
|
1118
|
+
|
|
1065
1119
|
var getInternalState$5 = internalState.get;
|
|
1066
1120
|
|
|
1067
1121
|
|
|
@@ -1088,9 +1142,10 @@
|
|
|
1088
1142
|
|
|
1089
1143
|
if (PATCH) {
|
|
1090
1144
|
// eslint-disable-next-line max-statements -- TODO
|
|
1091
|
-
patchedExec = function exec(
|
|
1145
|
+
patchedExec = function exec(string) {
|
|
1092
1146
|
var re = this;
|
|
1093
1147
|
var state = getInternalState$5(re);
|
|
1148
|
+
var str = toString_1(string);
|
|
1094
1149
|
var raw = state.raw;
|
|
1095
1150
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1096
1151
|
|
|
@@ -1114,9 +1169,9 @@
|
|
|
1114
1169
|
flags += 'g';
|
|
1115
1170
|
}
|
|
1116
1171
|
|
|
1117
|
-
strCopy =
|
|
1172
|
+
strCopy = str.slice(re.lastIndex);
|
|
1118
1173
|
// Support anchored sticky behavior.
|
|
1119
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str
|
|
1174
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) {
|
|
1120
1175
|
source = '(?: ' + source + ')';
|
|
1121
1176
|
strCopy = ' ' + strCopy;
|
|
1122
1177
|
charsAdded++;
|
|
@@ -1280,16 +1335,16 @@
|
|
|
1280
1335
|
function search(regexp) {
|
|
1281
1336
|
var O = requireObjectCoercible(this);
|
|
1282
1337
|
var searcher = regexp == undefined ? undefined : regexp[SEARCH];
|
|
1283
|
-
return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](
|
|
1338
|
+
return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](toString_1(O));
|
|
1284
1339
|
},
|
|
1285
1340
|
// `RegExp.prototype[@@search]` method
|
|
1286
1341
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
1287
1342
|
function (string) {
|
|
1288
|
-
var res = maybeCallNative(nativeSearch, this, string);
|
|
1289
|
-
if (res.done) return res.value;
|
|
1290
|
-
|
|
1291
1343
|
var rx = anObject(this);
|
|
1292
|
-
var S =
|
|
1344
|
+
var S = toString_1(string);
|
|
1345
|
+
var res = maybeCallNative(nativeSearch, rx, S);
|
|
1346
|
+
|
|
1347
|
+
if (res.done) return res.value;
|
|
1293
1348
|
|
|
1294
1349
|
var previousLastIndex = rx.lastIndex;
|
|
1295
1350
|
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
|
@@ -1701,9 +1756,9 @@
|
|
|
1701
1756
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
1702
1757
|
redefine(RegExp.prototype, TO_STRING, function toString() {
|
|
1703
1758
|
var R = anObject(this);
|
|
1704
|
-
var p =
|
|
1759
|
+
var p = toString_1(R.source);
|
|
1705
1760
|
var rf = R.flags;
|
|
1706
|
-
var f =
|
|
1761
|
+
var f = toString_1(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$1) ? regexpFlags.call(R) : rf);
|
|
1707
1762
|
return '/' + p + '/' + f;
|
|
1708
1763
|
}, { unsafe: true });
|
|
1709
1764
|
}
|
|
@@ -2389,6 +2444,8 @@
|
|
|
2389
2444
|
function _possibleConstructorReturn(self, call) {
|
|
2390
2445
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
2391
2446
|
return call;
|
|
2447
|
+
} else if (call !== void 0) {
|
|
2448
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2392
2449
|
}
|
|
2393
2450
|
|
|
2394
2451
|
return _assertThisInitialized(self);
|
|
@@ -2459,10 +2516,10 @@
|
|
|
2459
2516
|
}
|
|
2460
2517
|
});
|
|
2461
2518
|
|
|
2462
|
-
// `String.prototype.
|
|
2519
|
+
// `String.prototype.codePointAt` methods implementation
|
|
2463
2520
|
var createMethod$3 = function (CONVERT_TO_STRING) {
|
|
2464
2521
|
return function ($this, pos) {
|
|
2465
|
-
var S =
|
|
2522
|
+
var S = toString_1(requireObjectCoercible($this));
|
|
2466
2523
|
var position = toInteger(pos);
|
|
2467
2524
|
var size = S.length;
|
|
2468
2525
|
var first, second;
|
|
@@ -2492,7 +2549,7 @@
|
|
|
2492
2549
|
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
2493
2550
|
};
|
|
2494
2551
|
|
|
2495
|
-
var floor$
|
|
2552
|
+
var floor$5 = Math.floor;
|
|
2496
2553
|
var replace = ''.replace;
|
|
2497
2554
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
2498
2555
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
@@ -2521,7 +2578,7 @@
|
|
|
2521
2578
|
var n = +ch;
|
|
2522
2579
|
if (n === 0) return match;
|
|
2523
2580
|
if (n > m) {
|
|
2524
|
-
var f = floor$
|
|
2581
|
+
var f = floor$5(n / 10);
|
|
2525
2582
|
if (f === 0) return match;
|
|
2526
2583
|
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
2527
2584
|
return match;
|
|
@@ -2562,6 +2619,7 @@
|
|
|
2562
2619
|
result.groups = { a: '7' };
|
|
2563
2620
|
return result;
|
|
2564
2621
|
};
|
|
2622
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
2565
2623
|
return ''.replace(re, '$<a>') !== '7';
|
|
2566
2624
|
});
|
|
2567
2625
|
|
|
@@ -2577,25 +2635,25 @@
|
|
|
2577
2635
|
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
|
2578
2636
|
return replacer !== undefined
|
|
2579
2637
|
? replacer.call(searchValue, O, replaceValue)
|
|
2580
|
-
: nativeReplace.call(
|
|
2638
|
+
: nativeReplace.call(toString_1(O), searchValue, replaceValue);
|
|
2581
2639
|
},
|
|
2582
2640
|
// `RegExp.prototype[@@replace]` method
|
|
2583
2641
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
2584
2642
|
function (string, replaceValue) {
|
|
2643
|
+
var rx = anObject(this);
|
|
2644
|
+
var S = toString_1(string);
|
|
2645
|
+
|
|
2585
2646
|
if (
|
|
2586
2647
|
typeof replaceValue === 'string' &&
|
|
2587
2648
|
replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 &&
|
|
2588
2649
|
replaceValue.indexOf('$<') === -1
|
|
2589
2650
|
) {
|
|
2590
|
-
var res = maybeCallNative(nativeReplace,
|
|
2651
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
2591
2652
|
if (res.done) return res.value;
|
|
2592
2653
|
}
|
|
2593
2654
|
|
|
2594
|
-
var rx = anObject(this);
|
|
2595
|
-
var S = String(string);
|
|
2596
|
-
|
|
2597
2655
|
var functionalReplace = typeof replaceValue === 'function';
|
|
2598
|
-
if (!functionalReplace) replaceValue =
|
|
2656
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
|
2599
2657
|
|
|
2600
2658
|
var global = rx.global;
|
|
2601
2659
|
if (global) {
|
|
@@ -2610,7 +2668,7 @@
|
|
|
2610
2668
|
results.push(result);
|
|
2611
2669
|
if (!global) break;
|
|
2612
2670
|
|
|
2613
|
-
var matchStr =
|
|
2671
|
+
var matchStr = toString_1(result[0]);
|
|
2614
2672
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2615
2673
|
}
|
|
2616
2674
|
|
|
@@ -2619,7 +2677,7 @@
|
|
|
2619
2677
|
for (var i = 0; i < results.length; i++) {
|
|
2620
2678
|
result = results[i];
|
|
2621
2679
|
|
|
2622
|
-
var matched =
|
|
2680
|
+
var matched = toString_1(result[0]);
|
|
2623
2681
|
var position = max$1(min$4(toInteger(result.index), S.length), 0);
|
|
2624
2682
|
var captures = [];
|
|
2625
2683
|
// NOTE: This is equivalent to
|
|
@@ -2632,7 +2690,7 @@
|
|
|
2632
2690
|
if (functionalReplace) {
|
|
2633
2691
|
var replacerArgs = [matched].concat(captures, position, S);
|
|
2634
2692
|
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
2635
|
-
var replacement =
|
|
2693
|
+
var replacement = toString_1(replaceValue.apply(undefined, replacerArgs));
|
|
2636
2694
|
} else {
|
|
2637
2695
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2638
2696
|
}
|
|
@@ -2705,7 +2763,7 @@
|
|
|
2705
2763
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
2706
2764
|
var createMethod$2 = function (TYPE) {
|
|
2707
2765
|
return function ($this) {
|
|
2708
|
-
var string =
|
|
2766
|
+
var string = toString_1(requireObjectCoercible($this));
|
|
2709
2767
|
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
2710
2768
|
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
2711
2769
|
return string;
|
|
@@ -2739,7 +2797,8 @@
|
|
|
2739
2797
|
// `ToNumber` abstract operation
|
|
2740
2798
|
// https://tc39.es/ecma262/#sec-tonumber
|
|
2741
2799
|
var toNumber = function (argument) {
|
|
2742
|
-
|
|
2800
|
+
if (isSymbol$1(argument)) throw TypeError('Cannot convert a Symbol value to a number');
|
|
2801
|
+
var it = toPrimitive(argument, 'number');
|
|
2743
2802
|
var first, third, radix, maxCode, digits, length, index, code;
|
|
2744
2803
|
if (typeof it == 'string' && it.length > 2) {
|
|
2745
2804
|
it = trim(it);
|
|
@@ -2825,6 +2884,7 @@
|
|
|
2825
2884
|
|
|
2826
2885
|
|
|
2827
2886
|
|
|
2887
|
+
|
|
2828
2888
|
var enforceInternalState = internalState.enforce;
|
|
2829
2889
|
|
|
2830
2890
|
|
|
@@ -2939,8 +2999,8 @@
|
|
|
2939
2999
|
if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : regexpFlags.call(rawPattern);
|
|
2940
3000
|
}
|
|
2941
3001
|
|
|
2942
|
-
pattern = pattern === undefined ? '' :
|
|
2943
|
-
flags = flags === undefined ? '' :
|
|
3002
|
+
pattern = pattern === undefined ? '' : toString_1(pattern);
|
|
3003
|
+
flags = flags === undefined ? '' : toString_1(flags);
|
|
2944
3004
|
rawPattern = pattern;
|
|
2945
3005
|
|
|
2946
3006
|
if (regexpUnsupportedDotAll && 'dotAll' in re1) {
|
|
@@ -3062,16 +3122,16 @@
|
|
|
3062
3122
|
function match(regexp) {
|
|
3063
3123
|
var O = requireObjectCoercible(this);
|
|
3064
3124
|
var matcher = regexp == undefined ? undefined : regexp[MATCH];
|
|
3065
|
-
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](
|
|
3125
|
+
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](toString_1(O));
|
|
3066
3126
|
},
|
|
3067
3127
|
// `RegExp.prototype[@@match]` method
|
|
3068
3128
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
3069
3129
|
function (string) {
|
|
3070
|
-
var res = maybeCallNative(nativeMatch, this, string);
|
|
3071
|
-
if (res.done) return res.value;
|
|
3072
|
-
|
|
3073
3130
|
var rx = anObject(this);
|
|
3074
|
-
var S =
|
|
3131
|
+
var S = toString_1(string);
|
|
3132
|
+
var res = maybeCallNative(nativeMatch, rx, S);
|
|
3133
|
+
|
|
3134
|
+
if (res.done) return res.value;
|
|
3075
3135
|
|
|
3076
3136
|
if (!rx.global) return regexpExecAbstract(rx, S);
|
|
3077
3137
|
|
|
@@ -3081,7 +3141,7 @@
|
|
|
3081
3141
|
var n = 0;
|
|
3082
3142
|
var result;
|
|
3083
3143
|
while ((result = regexpExecAbstract(rx, S)) !== null) {
|
|
3084
|
-
var matchStr =
|
|
3144
|
+
var matchStr = toString_1(result[0]);
|
|
3085
3145
|
A[n] = matchStr;
|
|
3086
3146
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
3087
3147
|
n++;
|
|
@@ -3140,13 +3200,13 @@
|
|
|
3140
3200
|
'test'.split(/(?:)/, -1).length != 4 ||
|
|
3141
3201
|
'ab'.split(/(?:ab)*/).length != 2 ||
|
|
3142
3202
|
'.'.split(/(.?)(.?)/).length != 4 ||
|
|
3143
|
-
// eslint-disable-next-line regexp/no-
|
|
3203
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
3144
3204
|
'.'.split(/()()/).length > 1 ||
|
|
3145
3205
|
''.split(/.?/).length
|
|
3146
3206
|
) {
|
|
3147
3207
|
// based on es5-shim implementation, need to rework it
|
|
3148
3208
|
internalSplit = function (separator, limit) {
|
|
3149
|
-
var string =
|
|
3209
|
+
var string = toString_1(requireObjectCoercible(this));
|
|
3150
3210
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3151
3211
|
if (lim === 0) return [];
|
|
3152
3212
|
if (separator === undefined) return [string];
|
|
@@ -3194,7 +3254,7 @@
|
|
|
3194
3254
|
var splitter = separator == undefined ? undefined : separator[SPLIT];
|
|
3195
3255
|
return splitter !== undefined
|
|
3196
3256
|
? splitter.call(separator, O, limit)
|
|
3197
|
-
: internalSplit.call(
|
|
3257
|
+
: internalSplit.call(toString_1(O), separator, limit);
|
|
3198
3258
|
},
|
|
3199
3259
|
// `RegExp.prototype[@@split]` method
|
|
3200
3260
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -3202,11 +3262,12 @@
|
|
|
3202
3262
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
3203
3263
|
// the 'y' flag.
|
|
3204
3264
|
function (string, limit) {
|
|
3205
|
-
var
|
|
3265
|
+
var rx = anObject(this);
|
|
3266
|
+
var S = toString_1(string);
|
|
3267
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
3268
|
+
|
|
3206
3269
|
if (res.done) return res.value;
|
|
3207
3270
|
|
|
3208
|
-
var rx = anObject(this);
|
|
3209
|
-
var S = String(string);
|
|
3210
3271
|
var C = speciesConstructor(rx, RegExp);
|
|
3211
3272
|
|
|
3212
3273
|
var unicodeMatching = rx.unicode;
|
|
@@ -3516,10 +3577,11 @@
|
|
|
3516
3577
|
|
|
3517
3578
|
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
3518
3579
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
3580
|
+
var TYPED_ARRAY_CONSTRUCTOR$1 = uid('TYPED_ARRAY_CONSTRUCTOR');
|
|
3519
3581
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
3520
3582
|
var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
3521
3583
|
var TYPED_ARRAY_TAG_REQIRED = false;
|
|
3522
|
-
var NAME;
|
|
3584
|
+
var NAME, Constructor, Prototype;
|
|
3523
3585
|
|
|
3524
3586
|
var TypedArrayConstructorsList = {
|
|
3525
3587
|
Int8Array: 1,
|
|
@@ -3558,15 +3620,10 @@
|
|
|
3558
3620
|
throw TypeError('Target is not a typed array');
|
|
3559
3621
|
};
|
|
3560
3622
|
|
|
3561
|
-
var aTypedArrayConstructor$
|
|
3562
|
-
if (objectSetPrototypeOf) {
|
|
3563
|
-
|
|
3564
|
-
}
|
|
3565
|
-
var TypedArrayConstructor = global_1[ARRAY];
|
|
3566
|
-
if (TypedArrayConstructor && (C === TypedArrayConstructor || isPrototypeOf.call(TypedArrayConstructor, C))) {
|
|
3567
|
-
return C;
|
|
3568
|
-
}
|
|
3569
|
-
} throw TypeError('Target is not a typed array constructor');
|
|
3623
|
+
var aTypedArrayConstructor$2 = function (C) {
|
|
3624
|
+
if (objectSetPrototypeOf && !isPrototypeOf.call(TypedArray, C)) {
|
|
3625
|
+
throw TypeError('Target is not a typed array constructor');
|
|
3626
|
+
} return C;
|
|
3570
3627
|
};
|
|
3571
3628
|
|
|
3572
3629
|
var exportTypedArrayMethod$n = function (KEY, property, forced) {
|
|
@@ -3609,7 +3666,16 @@
|
|
|
3609
3666
|
};
|
|
3610
3667
|
|
|
3611
3668
|
for (NAME in TypedArrayConstructorsList) {
|
|
3612
|
-
|
|
3669
|
+
Constructor = global_1[NAME];
|
|
3670
|
+
Prototype = Constructor && Constructor.prototype;
|
|
3671
|
+
if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR$1, Constructor);
|
|
3672
|
+
else NATIVE_ARRAY_BUFFER_VIEWS$1 = false;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
for (NAME in BigIntArrayConstructorsList) {
|
|
3676
|
+
Constructor = global_1[NAME];
|
|
3677
|
+
Prototype = Constructor && Constructor.prototype;
|
|
3678
|
+
if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR$1, Constructor);
|
|
3613
3679
|
}
|
|
3614
3680
|
|
|
3615
3681
|
// WebKit bug - typed arrays constructors prototype is Object.prototype
|
|
@@ -3647,9 +3713,10 @@
|
|
|
3647
3713
|
|
|
3648
3714
|
var arrayBufferViewCore = {
|
|
3649
3715
|
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS$1,
|
|
3716
|
+
TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR$1,
|
|
3650
3717
|
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,
|
|
3651
3718
|
aTypedArray: aTypedArray$m,
|
|
3652
|
-
aTypedArrayConstructor: aTypedArrayConstructor$
|
|
3719
|
+
aTypedArrayConstructor: aTypedArrayConstructor$2,
|
|
3653
3720
|
exportTypedArrayMethod: exportTypedArrayMethod$n,
|
|
3654
3721
|
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
|
|
3655
3722
|
isView: isView,
|
|
@@ -3705,7 +3772,7 @@
|
|
|
3705
3772
|
// IEEE754 conversions based on https://github.com/feross/ieee754
|
|
3706
3773
|
var abs = Math.abs;
|
|
3707
3774
|
var pow$1 = Math.pow;
|
|
3708
|
-
var floor$
|
|
3775
|
+
var floor$4 = Math.floor;
|
|
3709
3776
|
var log$2 = Math.log;
|
|
3710
3777
|
var LN2 = Math.LN2;
|
|
3711
3778
|
|
|
@@ -3725,7 +3792,7 @@
|
|
|
3725
3792
|
mantissa = number != number ? 1 : 0;
|
|
3726
3793
|
exponent = eMax;
|
|
3727
3794
|
} else {
|
|
3728
|
-
exponent = floor$
|
|
3795
|
+
exponent = floor$4(log$2(number) / LN2);
|
|
3729
3796
|
if (number * (c = pow$1(2, -exponent)) < 1) {
|
|
3730
3797
|
exponent--;
|
|
3731
3798
|
c *= 2;
|
|
@@ -4017,6 +4084,14 @@
|
|
|
4017
4084
|
DataView: $DataView
|
|
4018
4085
|
};
|
|
4019
4086
|
|
|
4087
|
+
var floor$3 = Math.floor;
|
|
4088
|
+
|
|
4089
|
+
// `Number.isInteger` method implementation
|
|
4090
|
+
// https://tc39.es/ecma262/#sec-number.isinteger
|
|
4091
|
+
var isInteger = function isInteger(it) {
|
|
4092
|
+
return !isObject$1(it) && isFinite(it) && floor$3(it) === it;
|
|
4093
|
+
};
|
|
4094
|
+
|
|
4020
4095
|
var toPositiveInteger = function (it) {
|
|
4021
4096
|
var result = toInteger(it);
|
|
4022
4097
|
if (result < 0) throw RangeError("The argument can't be less than 0");
|
|
@@ -4045,7 +4120,7 @@
|
|
|
4045
4120
|
return it !== undefined && (iterators.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
4046
4121
|
};
|
|
4047
4122
|
|
|
4048
|
-
var aTypedArrayConstructor$
|
|
4123
|
+
var aTypedArrayConstructor$1 = arrayBufferViewCore.aTypedArrayConstructor;
|
|
4049
4124
|
|
|
4050
4125
|
var typedArrayFrom = function from(source /* , mapfn, thisArg */) {
|
|
4051
4126
|
var O = toObject(source);
|
|
@@ -4066,7 +4141,7 @@
|
|
|
4066
4141
|
mapfn = functionBindContext(mapfn, arguments[2], 2);
|
|
4067
4142
|
}
|
|
4068
4143
|
length = toLength(O.length);
|
|
4069
|
-
result = new (aTypedArrayConstructor$
|
|
4144
|
+
result = new (aTypedArrayConstructor$1(this))(length);
|
|
4070
4145
|
for (i = 0; length > i; i++) {
|
|
4071
4146
|
result[i] = mapping ? mapfn(O[i], i) : O[i];
|
|
4072
4147
|
}
|
|
@@ -4092,6 +4167,8 @@
|
|
|
4092
4167
|
|
|
4093
4168
|
|
|
4094
4169
|
|
|
4170
|
+
|
|
4171
|
+
|
|
4095
4172
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4096
4173
|
|
|
4097
4174
|
var forEach = arrayIteration.forEach;
|
|
@@ -4110,6 +4187,7 @@
|
|
|
4110
4187
|
var ArrayBuffer = arrayBuffer.ArrayBuffer;
|
|
4111
4188
|
var DataView = arrayBuffer.DataView;
|
|
4112
4189
|
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
|
|
4190
|
+
var TYPED_ARRAY_CONSTRUCTOR = arrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
4113
4191
|
var TYPED_ARRAY_TAG = arrayBufferViewCore.TYPED_ARRAY_TAG;
|
|
4114
4192
|
var TypedArray = arrayBufferViewCore.TypedArray;
|
|
4115
4193
|
var TypedArrayPrototype = arrayBufferViewCore.TypedArrayPrototype;
|
|
@@ -4139,19 +4217,22 @@
|
|
|
4139
4217
|
|
|
4140
4218
|
var isTypedArrayIndex = function (target, key) {
|
|
4141
4219
|
return isTypedArray(target)
|
|
4142
|
-
&&
|
|
4220
|
+
&& !isSymbol$1(key)
|
|
4143
4221
|
&& key in target
|
|
4144
|
-
&&
|
|
4222
|
+
&& isInteger(+key)
|
|
4223
|
+
&& key >= 0;
|
|
4145
4224
|
};
|
|
4146
4225
|
|
|
4147
4226
|
var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
|
|
4148
|
-
|
|
4227
|
+
key = toPropertyKey(key);
|
|
4228
|
+
return isTypedArrayIndex(target, key)
|
|
4149
4229
|
? createPropertyDescriptor(2, target[key])
|
|
4150
4230
|
: nativeGetOwnPropertyDescriptor(target, key);
|
|
4151
4231
|
};
|
|
4152
4232
|
|
|
4153
4233
|
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
|
|
4154
|
-
|
|
4234
|
+
key = toPropertyKey(key);
|
|
4235
|
+
if (isTypedArrayIndex(target, key)
|
|
4155
4236
|
&& isObject$1(descriptor)
|
|
4156
4237
|
&& has$1(descriptor, 'value')
|
|
4157
4238
|
&& !has$1(descriptor, 'get')
|
|
@@ -4282,6 +4363,8 @@
|
|
|
4282
4363
|
createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);
|
|
4283
4364
|
}
|
|
4284
4365
|
|
|
4366
|
+
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_CONSTRUCTOR, TypedArrayConstructor);
|
|
4367
|
+
|
|
4285
4368
|
if (TYPED_ARRAY_TAG) {
|
|
4286
4369
|
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
|
|
4287
4370
|
}
|
|
@@ -4369,18 +4452,27 @@
|
|
|
4369
4452
|
return arrayFill.apply(aTypedArray$j(this), arguments);
|
|
4370
4453
|
});
|
|
4371
4454
|
|
|
4372
|
-
var
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
var typedArrayFromSpeciesAndList = function (instance, list) {
|
|
4376
|
-
var C = speciesConstructor(instance, instance.constructor);
|
|
4455
|
+
var arrayFromConstructorAndList = function (Constructor, list) {
|
|
4377
4456
|
var index = 0;
|
|
4378
4457
|
var length = list.length;
|
|
4379
|
-
var result = new (
|
|
4458
|
+
var result = new Constructor(length);
|
|
4380
4459
|
while (length > index) result[index] = list[index++];
|
|
4381
4460
|
return result;
|
|
4382
4461
|
};
|
|
4383
4462
|
|
|
4463
|
+
var TYPED_ARRAY_CONSTRUCTOR = arrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
4464
|
+
var aTypedArrayConstructor = arrayBufferViewCore.aTypedArrayConstructor;
|
|
4465
|
+
|
|
4466
|
+
// a part of `TypedArraySpeciesCreate` abstract operation
|
|
4467
|
+
// https://tc39.es/ecma262/#typedarray-species-create
|
|
4468
|
+
var typedArraySpeciesConstructor = function (originalArray) {
|
|
4469
|
+
return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR]));
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
var typedArrayFromSpeciesAndList = function (instance, list) {
|
|
4473
|
+
return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list);
|
|
4474
|
+
};
|
|
4475
|
+
|
|
4384
4476
|
var $filter = arrayIteration.filter;
|
|
4385
4477
|
|
|
4386
4478
|
|
|
@@ -4533,14 +4625,13 @@
|
|
|
4533
4625
|
|
|
4534
4626
|
|
|
4535
4627
|
var aTypedArray$9 = arrayBufferViewCore.aTypedArray;
|
|
4536
|
-
var aTypedArrayConstructor$1 = arrayBufferViewCore.aTypedArrayConstructor;
|
|
4537
4628
|
var exportTypedArrayMethod$a = arrayBufferViewCore.exportTypedArrayMethod;
|
|
4538
4629
|
|
|
4539
4630
|
// `%TypedArray%.prototype.map` method
|
|
4540
4631
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.map
|
|
4541
4632
|
exportTypedArrayMethod$a('map', function map(mapfn /* , thisArg */) {
|
|
4542
4633
|
return $map(aTypedArray$9(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
|
|
4543
|
-
return new (
|
|
4634
|
+
return new (typedArraySpeciesConstructor(O))(length);
|
|
4544
4635
|
});
|
|
4545
4636
|
});
|
|
4546
4637
|
|
|
@@ -4643,7 +4734,6 @@
|
|
|
4643
4734
|
}, FORCED$5);
|
|
4644
4735
|
|
|
4645
4736
|
var aTypedArray$4 = arrayBufferViewCore.aTypedArray;
|
|
4646
|
-
var aTypedArrayConstructor = arrayBufferViewCore.aTypedArrayConstructor;
|
|
4647
4737
|
var exportTypedArrayMethod$5 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
4648
4738
|
var $slice$1 = [].slice;
|
|
4649
4739
|
|
|
@@ -4656,10 +4746,10 @@
|
|
|
4656
4746
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice
|
|
4657
4747
|
exportTypedArrayMethod$5('slice', function slice(start, end) {
|
|
4658
4748
|
var list = $slice$1.call(aTypedArray$4(this), start, end);
|
|
4659
|
-
var C =
|
|
4749
|
+
var C = typedArraySpeciesConstructor(this);
|
|
4660
4750
|
var index = 0;
|
|
4661
4751
|
var length = list.length;
|
|
4662
|
-
var result = new
|
|
4752
|
+
var result = new C(length);
|
|
4663
4753
|
while (length > index) result[index] = list[index++];
|
|
4664
4754
|
return result;
|
|
4665
4755
|
}, FORCED$4);
|
|
@@ -4815,7 +4905,8 @@
|
|
|
4815
4905
|
var O = aTypedArray$1(this);
|
|
4816
4906
|
var length = O.length;
|
|
4817
4907
|
var beginIndex = toAbsoluteIndex(begin, length);
|
|
4818
|
-
|
|
4908
|
+
var C = typedArraySpeciesConstructor(O);
|
|
4909
|
+
return new C(
|
|
4819
4910
|
O.buffer,
|
|
4820
4911
|
O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT,
|
|
4821
4912
|
toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex)
|
|
@@ -4884,6 +4975,8 @@
|
|
|
4884
4975
|
f: f$1
|
|
4885
4976
|
};
|
|
4886
4977
|
|
|
4978
|
+
var path$1 = global_1;
|
|
4979
|
+
|
|
4887
4980
|
var defineProperty$2 = objectDefineProperty.f;
|
|
4888
4981
|
|
|
4889
4982
|
var defineWellKnownSymbol = function (NAME) {
|
|
@@ -4942,16 +5035,10 @@
|
|
|
4942
5035
|
return symbol;
|
|
4943
5036
|
};
|
|
4944
5037
|
|
|
4945
|
-
var isSymbol$1 = useSymbolAsUid ? function (it) {
|
|
4946
|
-
return typeof it == 'symbol';
|
|
4947
|
-
} : function (it) {
|
|
4948
|
-
return Object(it) instanceof $Symbol;
|
|
4949
|
-
};
|
|
4950
|
-
|
|
4951
5038
|
var $defineProperty = function defineProperty(O, P, Attributes) {
|
|
4952
5039
|
if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
4953
5040
|
anObject(O);
|
|
4954
|
-
var key =
|
|
5041
|
+
var key = toPropertyKey(P);
|
|
4955
5042
|
anObject(Attributes);
|
|
4956
5043
|
if (has$1(AllSymbols, key)) {
|
|
4957
5044
|
if (!Attributes.enumerable) {
|
|
@@ -4979,7 +5066,7 @@
|
|
|
4979
5066
|
};
|
|
4980
5067
|
|
|
4981
5068
|
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
|
4982
|
-
var P =
|
|
5069
|
+
var P = toPropertyKey(V);
|
|
4983
5070
|
var enumerable = nativePropertyIsEnumerable.call(this, P);
|
|
4984
5071
|
if (this === ObjectPrototype && has$1(AllSymbols, P) && !has$1(ObjectPrototypeSymbols, P)) return false;
|
|
4985
5072
|
return enumerable || !has$1(this, P) || !has$1(AllSymbols, P) || has$1(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
|
@@ -4987,7 +5074,7 @@
|
|
|
4987
5074
|
|
|
4988
5075
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
|
4989
5076
|
var it = toIndexedObject(O);
|
|
4990
|
-
var key =
|
|
5077
|
+
var key = toPropertyKey(P);
|
|
4991
5078
|
if (it === ObjectPrototype && has$1(AllSymbols, key) && !has$1(ObjectPrototypeSymbols, key)) return;
|
|
4992
5079
|
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
|
4993
5080
|
if (descriptor && has$1(AllSymbols, key) && !(has$1(it, HIDDEN) && it[HIDDEN][key])) {
|
|
@@ -5022,7 +5109,7 @@
|
|
|
5022
5109
|
if (!nativeSymbol) {
|
|
5023
5110
|
$Symbol = function Symbol() {
|
|
5024
5111
|
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
|
5025
|
-
var description = !arguments.length || arguments[0] === undefined ? undefined :
|
|
5112
|
+
var description = !arguments.length || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
|
|
5026
5113
|
var tag = uid(description);
|
|
5027
5114
|
var setter = function (value) {
|
|
5028
5115
|
if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
|
|
@@ -5077,7 +5164,7 @@
|
|
|
5077
5164
|
// `Symbol.for` method
|
|
5078
5165
|
// https://tc39.es/ecma262/#sec-symbol.for
|
|
5079
5166
|
'for': function (key) {
|
|
5080
|
-
var string =
|
|
5167
|
+
var string = toString_1(key);
|
|
5081
5168
|
if (has$1(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
|
5082
5169
|
var symbol = $Symbol(string);
|
|
5083
5170
|
StringToSymbolRegistry[string] = symbol;
|
|
@@ -5304,8 +5391,8 @@
|
|
|
5304
5391
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
5305
5392
|
_export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
|
|
5306
5393
|
includes: function includes(searchString /* , position = 0 */) {
|
|
5307
|
-
return !!~
|
|
5308
|
-
.indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
|
|
5394
|
+
return !!~toString_1(requireObjectCoercible(this))
|
|
5395
|
+
.indexOf(toString_1(notARegexp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
|
|
5309
5396
|
}
|
|
5310
5397
|
});
|
|
5311
5398
|
|
|
@@ -12106,6 +12193,7 @@
|
|
|
12106
12193
|
|
|
12107
12194
|
|
|
12108
12195
|
|
|
12196
|
+
|
|
12109
12197
|
var STRING_ITERATOR = 'String Iterator';
|
|
12110
12198
|
var setInternalState$2 = internalState.set;
|
|
12111
12199
|
var getInternalState$1 = internalState.getterFor(STRING_ITERATOR);
|
|
@@ -12115,7 +12203,7 @@
|
|
|
12115
12203
|
defineIterator(String, 'String', function (iterated) {
|
|
12116
12204
|
setInternalState$2(this, {
|
|
12117
12205
|
type: STRING_ITERATOR,
|
|
12118
|
-
string:
|
|
12206
|
+
string: toString_1(iterated),
|
|
12119
12207
|
index: 0
|
|
12120
12208
|
});
|
|
12121
12209
|
// `%StringIteratorPrototype%.next` method
|
|
@@ -12236,11 +12324,10 @@
|
|
|
12236
12324
|
} return new Result(false);
|
|
12237
12325
|
};
|
|
12238
12326
|
|
|
12239
|
-
var engineIsIos = /(?:iphone|ipod
|
|
12327
|
+
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent);
|
|
12240
12328
|
|
|
12241
12329
|
var engineIsNode = classofRaw(global_1.process) == 'process';
|
|
12242
12330
|
|
|
12243
|
-
var location$1 = global_1.location;
|
|
12244
12331
|
var set = global_1.setImmediate;
|
|
12245
12332
|
var clear = global_1.clearImmediate;
|
|
12246
12333
|
var process$2 = global_1.process;
|
|
@@ -12249,7 +12336,12 @@
|
|
|
12249
12336
|
var counter = 0;
|
|
12250
12337
|
var queue = {};
|
|
12251
12338
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
12252
|
-
var defer, channel, port;
|
|
12339
|
+
var location$1, defer, channel, port;
|
|
12340
|
+
|
|
12341
|
+
try {
|
|
12342
|
+
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
12343
|
+
location$1 = global_1.location;
|
|
12344
|
+
} catch (error) { /* empty */ }
|
|
12253
12345
|
|
|
12254
12346
|
var run = function (id) {
|
|
12255
12347
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -12272,15 +12364,16 @@
|
|
|
12272
12364
|
|
|
12273
12365
|
var post = function (id) {
|
|
12274
12366
|
// old engines have not location.origin
|
|
12275
|
-
global_1.postMessage(id
|
|
12367
|
+
global_1.postMessage(String(id), location$1.protocol + '//' + location$1.host);
|
|
12276
12368
|
};
|
|
12277
12369
|
|
|
12278
12370
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
12279
12371
|
if (!set || !clear) {
|
|
12280
12372
|
set = function setImmediate(fn) {
|
|
12281
12373
|
var args = [];
|
|
12374
|
+
var argumentsLength = arguments.length;
|
|
12282
12375
|
var i = 1;
|
|
12283
|
-
while (
|
|
12376
|
+
while (argumentsLength > i) args.push(arguments[i++]);
|
|
12284
12377
|
queue[++counter] = function () {
|
|
12285
12378
|
// eslint-disable-next-line no-new-func -- spec requirement
|
|
12286
12379
|
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
|
@@ -12340,6 +12433,8 @@
|
|
|
12340
12433
|
clear: clear
|
|
12341
12434
|
};
|
|
12342
12435
|
|
|
12436
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(engineUserAgent) && global_1.Pebble !== undefined;
|
|
12437
|
+
|
|
12343
12438
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(engineUserAgent);
|
|
12344
12439
|
|
|
12345
12440
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
@@ -12348,6 +12443,7 @@
|
|
|
12348
12443
|
|
|
12349
12444
|
|
|
12350
12445
|
|
|
12446
|
+
|
|
12351
12447
|
var MutationObserver = global_1.MutationObserver || global_1.WebKitMutationObserver;
|
|
12352
12448
|
var document$2 = global_1.document;
|
|
12353
12449
|
var process$1 = global_1.process;
|
|
@@ -12387,7 +12483,7 @@
|
|
|
12387
12483
|
node.data = toggle = !toggle;
|
|
12388
12484
|
};
|
|
12389
12485
|
// environments with maybe non-completely correct, but existent Promise
|
|
12390
|
-
} else if (Promise$1 && Promise$1.resolve) {
|
|
12486
|
+
} else if (!engineIsIosPebble && Promise$1 && Promise$1.resolve) {
|
|
12391
12487
|
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
12392
12488
|
promise = Promise$1.resolve(undefined);
|
|
12393
12489
|
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
@@ -13918,7 +14014,7 @@
|
|
|
13918
14014
|
if (y === undefined) return -1;
|
|
13919
14015
|
if (x === undefined) return 1;
|
|
13920
14016
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
13921
|
-
return
|
|
14017
|
+
return toString_1(x) > toString_1(y) ? 1 : -1;
|
|
13922
14018
|
};
|
|
13923
14019
|
};
|
|
13924
14020
|
|
|
@@ -15737,6 +15833,9 @@
|
|
|
15737
15833
|
|
|
15738
15834
|
|
|
15739
15835
|
|
|
15836
|
+
|
|
15837
|
+
|
|
15838
|
+
var REQUIRED = false;
|
|
15740
15839
|
var METADATA = uid('meta');
|
|
15741
15840
|
var id = 0;
|
|
15742
15841
|
|
|
@@ -15780,12 +15879,38 @@
|
|
|
15780
15879
|
|
|
15781
15880
|
// add metadata on freeze-family methods calling
|
|
15782
15881
|
var onFreeze = function (it) {
|
|
15783
|
-
if (freezing &&
|
|
15882
|
+
if (freezing && REQUIRED && isExtensible(it) && !has$1(it, METADATA)) setMetadata(it);
|
|
15784
15883
|
return it;
|
|
15785
15884
|
};
|
|
15786
15885
|
|
|
15886
|
+
var enable = function () {
|
|
15887
|
+
meta.enable = function () { /* empty */ };
|
|
15888
|
+
REQUIRED = true;
|
|
15889
|
+
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
15890
|
+
var splice = [].splice;
|
|
15891
|
+
var test = {};
|
|
15892
|
+
test[METADATA] = 1;
|
|
15893
|
+
|
|
15894
|
+
// prevent exposing of metadata key
|
|
15895
|
+
if (getOwnPropertyNames(test).length) {
|
|
15896
|
+
objectGetOwnPropertyNames.f = function (it) {
|
|
15897
|
+
var result = getOwnPropertyNames(it);
|
|
15898
|
+
for (var i = 0, length = result.length; i < length; i++) {
|
|
15899
|
+
if (result[i] === METADATA) {
|
|
15900
|
+
splice.call(result, i, 1);
|
|
15901
|
+
break;
|
|
15902
|
+
}
|
|
15903
|
+
} return result;
|
|
15904
|
+
};
|
|
15905
|
+
|
|
15906
|
+
_export({ target: 'Object', stat: true, forced: true }, {
|
|
15907
|
+
getOwnPropertyNames: objectGetOwnPropertyNamesExternal.f
|
|
15908
|
+
});
|
|
15909
|
+
}
|
|
15910
|
+
};
|
|
15911
|
+
|
|
15787
15912
|
var meta = module.exports = {
|
|
15788
|
-
|
|
15913
|
+
enable: enable,
|
|
15789
15914
|
fastKey: fastKey,
|
|
15790
15915
|
getWeakData: getWeakData,
|
|
15791
15916
|
onFreeze: onFreeze
|
|
@@ -15832,7 +15957,7 @@
|
|
|
15832
15957
|
if (REPLACE) {
|
|
15833
15958
|
// create collection constructor
|
|
15834
15959
|
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
|
|
15835
|
-
internalMetadata.
|
|
15960
|
+
internalMetadata.enable();
|
|
15836
15961
|
} else if (isForced_1(CONSTRUCTOR_NAME, true)) {
|
|
15837
15962
|
var instance = new Constructor();
|
|
15838
15963
|
// early implementations not supports chaining
|
|
@@ -22743,14 +22868,21 @@
|
|
|
22743
22868
|
|
|
22744
22869
|
Hook.prototype.serialize = function serialize() {
|
|
22745
22870
|
return _defineProperty({
|
|
22746
|
-
$$
|
|
22871
|
+
$$currentRetry: this.currentRetry(),
|
|
22872
|
+
$$fullTitle: this.fullTitle(),
|
|
22873
|
+
$$isPending: Boolean(this.isPending()),
|
|
22747
22874
|
$$titlePath: this.titlePath(),
|
|
22748
22875
|
ctx: this.ctx && this.ctx.currentTest ? {
|
|
22749
22876
|
currentTest: _defineProperty({
|
|
22750
22877
|
title: this.ctx.currentTest.title
|
|
22751
22878
|
}, MOCHA_ID_PROP_NAME$1, this.ctx.currentTest.id)
|
|
22752
22879
|
} : {},
|
|
22753
|
-
|
|
22880
|
+
duration: this.duration,
|
|
22881
|
+
file: this.file,
|
|
22882
|
+
parent: _defineProperty({
|
|
22883
|
+
$$fullTitle: this.parent.fullTitle()
|
|
22884
|
+
}, MOCHA_ID_PROP_NAME$1, this.parent.id),
|
|
22885
|
+
state: this.state,
|
|
22754
22886
|
title: this.title,
|
|
22755
22887
|
type: this.type
|
|
22756
22888
|
}, MOCHA_ID_PROP_NAME$1, this.id);
|
|
@@ -23387,15 +23519,15 @@
|
|
|
23387
23519
|
|
|
23388
23520
|
|
|
23389
23521
|
Suite.prototype.serialize = function serialize() {
|
|
23390
|
-
|
|
23522
|
+
var _ref2;
|
|
23523
|
+
|
|
23524
|
+
return _ref2 = {
|
|
23391
23525
|
_bail: this._bail,
|
|
23392
23526
|
$$fullTitle: this.fullTitle(),
|
|
23393
|
-
$$isPending: this.isPending(),
|
|
23527
|
+
$$isPending: Boolean(this.isPending()),
|
|
23394
23528
|
root: this.root,
|
|
23395
|
-
title: this.title
|
|
23396
|
-
|
|
23397
|
-
parent: this.parent ? _defineProperty({}, MOCHA_ID_PROP_NAME, this.parent.id) : null
|
|
23398
|
-
};
|
|
23529
|
+
title: this.title
|
|
23530
|
+
}, _defineProperty(_ref2, MOCHA_ID_PROP_NAME, this.id), _defineProperty(_ref2, "parent", this.parent ? _defineProperty({}, MOCHA_ID_PROP_NAME, this.parent.id) : null), _ref2;
|
|
23399
23531
|
};
|
|
23400
23532
|
|
|
23401
23533
|
var constants = defineConstants(
|
|
@@ -25974,7 +26106,7 @@
|
|
|
25974
26106
|
// `String.prototype.repeat` method implementation
|
|
25975
26107
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
25976
26108
|
var stringRepeat = function repeat(count) {
|
|
25977
|
-
var str =
|
|
26109
|
+
var str = toString_1(requireObjectCoercible(this));
|
|
25978
26110
|
var result = '';
|
|
25979
26111
|
var n = toInteger(count);
|
|
25980
26112
|
if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
|
|
@@ -27668,7 +27800,7 @@
|
|
|
27668
27800
|
});
|
|
27669
27801
|
|
|
27670
27802
|
var name = "mocha";
|
|
27671
|
-
var version = "9.1.
|
|
27803
|
+
var version = "9.1.1";
|
|
27672
27804
|
var homepage = "https://mochajs.org/";
|
|
27673
27805
|
var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
|
|
27674
27806
|
var _package = {
|
|
@@ -28071,7 +28203,7 @@
|
|
|
28071
28203
|
return _defineProperty({
|
|
28072
28204
|
$$currentRetry: this._currentRetry,
|
|
28073
28205
|
$$fullTitle: this.fullTitle(),
|
|
28074
|
-
$$isPending: this.pending,
|
|
28206
|
+
$$isPending: Boolean(this.pending),
|
|
28075
28207
|
$$retriedTest: this._retriedTest || null,
|
|
28076
28208
|
$$slow: this._slow,
|
|
28077
28209
|
$$titlePath: this.titlePath(),
|
|
@@ -30173,12 +30305,11 @@
|
|
|
30173
30305
|
var _runGlobalFixtures2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
30174
30306
|
var fixtureFns,
|
|
30175
30307
|
context,
|
|
30176
|
-
|
|
30308
|
+
_iteratorAbruptCompletion,
|
|
30177
30309
|
_didIteratorError,
|
|
30178
30310
|
_iteratorError,
|
|
30179
30311
|
_iterator,
|
|
30180
30312
|
_step,
|
|
30181
|
-
_value,
|
|
30182
30313
|
fixtureFn,
|
|
30183
30314
|
_args4 = arguments;
|
|
30184
30315
|
|
|
@@ -30188,7 +30319,7 @@
|
|
|
30188
30319
|
case 0:
|
|
30189
30320
|
fixtureFns = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : [];
|
|
30190
30321
|
context = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
30191
|
-
|
|
30322
|
+
_iteratorAbruptCompletion = false;
|
|
30192
30323
|
_didIteratorError = false;
|
|
30193
30324
|
_context4.prev = 4;
|
|
30194
30325
|
_iterator = _asyncIterator(fixtureFns);
|
|
@@ -30198,75 +30329,67 @@
|
|
|
30198
30329
|
return _iterator.next();
|
|
30199
30330
|
|
|
30200
30331
|
case 8:
|
|
30201
|
-
_step = _context4.sent
|
|
30202
|
-
|
|
30203
|
-
_context4.next = 12;
|
|
30204
|
-
return _step.value;
|
|
30205
|
-
|
|
30206
|
-
case 12:
|
|
30207
|
-
_value = _context4.sent;
|
|
30208
|
-
|
|
30209
|
-
if (_iteratorNormalCompletion) {
|
|
30210
|
-
_context4.next = 20;
|
|
30332
|
+
if (!(_iteratorAbruptCompletion = !(_step = _context4.sent).done)) {
|
|
30333
|
+
_context4.next = 15;
|
|
30211
30334
|
break;
|
|
30212
30335
|
}
|
|
30213
30336
|
|
|
30214
|
-
fixtureFn =
|
|
30215
|
-
_context4.next =
|
|
30337
|
+
fixtureFn = _step.value;
|
|
30338
|
+
_context4.next = 12;
|
|
30216
30339
|
return fixtureFn.call(context);
|
|
30217
30340
|
|
|
30218
|
-
case
|
|
30219
|
-
|
|
30341
|
+
case 12:
|
|
30342
|
+
_iteratorAbruptCompletion = false;
|
|
30220
30343
|
_context4.next = 6;
|
|
30221
30344
|
break;
|
|
30222
30345
|
|
|
30223
|
-
case
|
|
30224
|
-
_context4.next =
|
|
30346
|
+
case 15:
|
|
30347
|
+
_context4.next = 21;
|
|
30225
30348
|
break;
|
|
30226
30349
|
|
|
30227
|
-
case
|
|
30228
|
-
_context4.prev =
|
|
30350
|
+
case 17:
|
|
30351
|
+
_context4.prev = 17;
|
|
30229
30352
|
_context4.t0 = _context4["catch"](4);
|
|
30230
30353
|
_didIteratorError = true;
|
|
30231
30354
|
_iteratorError = _context4.t0;
|
|
30232
30355
|
|
|
30233
|
-
case
|
|
30234
|
-
_context4.prev =
|
|
30235
|
-
_context4.prev =
|
|
30356
|
+
case 21:
|
|
30357
|
+
_context4.prev = 21;
|
|
30358
|
+
_context4.prev = 22;
|
|
30236
30359
|
|
|
30237
|
-
if (!(
|
|
30238
|
-
_context4.next =
|
|
30360
|
+
if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
|
|
30361
|
+
_context4.next = 26;
|
|
30239
30362
|
break;
|
|
30240
30363
|
}
|
|
30241
30364
|
|
|
30242
|
-
_context4.next =
|
|
30365
|
+
_context4.next = 26;
|
|
30243
30366
|
return _iterator["return"]();
|
|
30244
30367
|
|
|
30245
|
-
case
|
|
30246
|
-
_context4.prev =
|
|
30368
|
+
case 26:
|
|
30369
|
+
_context4.prev = 26;
|
|
30247
30370
|
|
|
30248
30371
|
if (!_didIteratorError) {
|
|
30249
|
-
_context4.next =
|
|
30372
|
+
_context4.next = 29;
|
|
30250
30373
|
break;
|
|
30251
30374
|
}
|
|
30252
30375
|
|
|
30253
30376
|
throw _iteratorError;
|
|
30254
30377
|
|
|
30255
|
-
case
|
|
30256
|
-
return _context4.finish(31);
|
|
30257
|
-
|
|
30258
|
-
case 35:
|
|
30378
|
+
case 29:
|
|
30259
30379
|
return _context4.finish(26);
|
|
30260
30380
|
|
|
30261
|
-
case
|
|
30381
|
+
case 30:
|
|
30382
|
+
return _context4.finish(21);
|
|
30383
|
+
|
|
30384
|
+
case 31:
|
|
30262
30385
|
return _context4.abrupt("return", context);
|
|
30263
30386
|
|
|
30264
|
-
case
|
|
30387
|
+
case 32:
|
|
30265
30388
|
case "end":
|
|
30266
30389
|
return _context4.stop();
|
|
30267
30390
|
}
|
|
30268
30391
|
}
|
|
30269
|
-
}, _callee4, null, [[4,
|
|
30392
|
+
}, _callee4, null, [[4, 17, 21, 31], [22,, 26, 30]]);
|
|
30270
30393
|
}));
|
|
30271
30394
|
|
|
30272
30395
|
function _runGlobalFixtures() {
|