@danielgindi/dom-utils 1.0.7 → 1.0.8
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/dist/lib.cjs.js +1105 -519
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +13 -2
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +1105 -519
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/Css.js +12 -1
- package/package.json +11 -11
package/dist/lib.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/dom-utils 1.0.
|
|
2
|
+
* @danielgindi/dom-utils 1.0.8
|
|
3
3
|
* git://github.com/danielgindi/dom-utils.git
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -8,48 +8,348 @@
|
|
|
8
8
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.domutils = {}));
|
|
9
9
|
})(this, (function (exports) { 'use strict';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
|
|
12
|
+
return {
|
|
13
|
+
getMetadata: function (key) {
|
|
14
|
+
assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key);
|
|
15
|
+
var metadataForKey = metadataMap[key];
|
|
16
|
+
if (void 0 !== metadataForKey) if (1 === kind) {
|
|
17
|
+
var pub = metadataForKey.public;
|
|
18
|
+
if (void 0 !== pub) return pub[property];
|
|
19
|
+
} else if (2 === kind) {
|
|
20
|
+
var priv = metadataForKey.private;
|
|
21
|
+
if (void 0 !== priv) return priv.get(property);
|
|
22
|
+
} else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor;
|
|
23
|
+
},
|
|
24
|
+
setMetadata: function (key, value) {
|
|
25
|
+
assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key);
|
|
26
|
+
var metadataForKey = metadataMap[key];
|
|
27
|
+
|
|
28
|
+
if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) {
|
|
29
|
+
var pub = metadataForKey.public;
|
|
30
|
+
void 0 === pub && (pub = metadataForKey.public = {}), pub[property] = value;
|
|
31
|
+
} else if (2 === kind) {
|
|
32
|
+
var priv = metadataForKey.priv;
|
|
33
|
+
void 0 === priv && (priv = metadataForKey.private = new Map()), priv.set(property, value);
|
|
34
|
+
} else metadataForKey.constructor = value;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
12
38
|
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
39
|
+
function convertMetadataMapToFinal(obj, metadataMap) {
|
|
40
|
+
var parentMetadataMap = obj[Symbol.metadata || Symbol.for("Symbol.metadata")],
|
|
41
|
+
metadataKeys = Object.getOwnPropertySymbols(metadataMap);
|
|
42
|
+
|
|
43
|
+
if (0 !== metadataKeys.length) {
|
|
44
|
+
for (var i = 0; i < metadataKeys.length; i++) {
|
|
45
|
+
var key = metadataKeys[i],
|
|
46
|
+
metaForKey = metadataMap[key],
|
|
47
|
+
parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null,
|
|
48
|
+
pub = metaForKey.public,
|
|
49
|
+
parentPub = parentMetaForKey ? parentMetaForKey.public : null;
|
|
50
|
+
pub && parentPub && Object.setPrototypeOf(pub, parentPub);
|
|
51
|
+
var priv = metaForKey.private;
|
|
52
|
+
|
|
53
|
+
if (priv) {
|
|
54
|
+
var privArr = Array.from(priv.values()),
|
|
55
|
+
parentPriv = parentMetaForKey ? parentMetaForKey.private : null;
|
|
56
|
+
parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey.private = privArr;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol.for("Symbol.metadata")] = metadataMap;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
|
67
|
+
return function (initializer) {
|
|
68
|
+
assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
|
|
73
|
+
var kindStr;
|
|
74
|
+
|
|
75
|
+
switch (kind) {
|
|
76
|
+
case 1:
|
|
77
|
+
kindStr = "accessor";
|
|
78
|
+
break;
|
|
79
|
+
|
|
80
|
+
case 2:
|
|
81
|
+
kindStr = "method";
|
|
82
|
+
break;
|
|
83
|
+
|
|
84
|
+
case 3:
|
|
85
|
+
kindStr = "getter";
|
|
86
|
+
break;
|
|
87
|
+
|
|
88
|
+
case 4:
|
|
89
|
+
kindStr = "setter";
|
|
90
|
+
break;
|
|
91
|
+
|
|
92
|
+
default:
|
|
93
|
+
kindStr = "field";
|
|
16
94
|
}
|
|
17
95
|
|
|
18
|
-
var
|
|
19
|
-
|
|
96
|
+
var metadataKind,
|
|
97
|
+
metadataName,
|
|
98
|
+
ctx = {
|
|
99
|
+
kind: kindStr,
|
|
100
|
+
name: isPrivate ? "#" + name : name,
|
|
101
|
+
isStatic: isStatic,
|
|
102
|
+
isPrivate: isPrivate
|
|
103
|
+
},
|
|
104
|
+
decoratorFinishedRef = {
|
|
105
|
+
v: !1
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) {
|
|
109
|
+
metadataKind = 2, metadataName = Symbol(name);
|
|
110
|
+
var access = {};
|
|
111
|
+
0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () {
|
|
112
|
+
return desc.value;
|
|
113
|
+
} : (1 !== kind && 3 !== kind || (access.get = function () {
|
|
114
|
+
return desc.get.call(this);
|
|
115
|
+
}), 1 !== kind && 4 !== kind || (access.set = function (v) {
|
|
116
|
+
desc.set.call(this, v);
|
|
117
|
+
})), ctx.access = access;
|
|
118
|
+
} else metadataKind = 1, metadataName = name;
|
|
20
119
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
120
|
+
try {
|
|
121
|
+
return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
|
|
122
|
+
} finally {
|
|
123
|
+
decoratorFinishedRef.v = !0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function assertNotFinished(decoratorFinishedRef, fnName) {
|
|
128
|
+
if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function assertMetadataKey(key) {
|
|
132
|
+
if ("symbol" != typeof key) throw new TypeError("Metadata keys must be symbols, received: " + key);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function assertCallable(fn, hint) {
|
|
136
|
+
if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function assertValidReturnValue(kind, value) {
|
|
140
|
+
var type = typeof value;
|
|
141
|
+
|
|
142
|
+
if (1 === kind) {
|
|
143
|
+
if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
144
|
+
void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer");
|
|
145
|
+
} else if ("function" !== type) {
|
|
146
|
+
var hint;
|
|
147
|
+
throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function getInit(desc) {
|
|
152
|
+
var initializer;
|
|
153
|
+
return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
|
|
157
|
+
var desc,
|
|
158
|
+
initializer,
|
|
159
|
+
value,
|
|
160
|
+
newValue,
|
|
161
|
+
get,
|
|
162
|
+
set,
|
|
163
|
+
decs = decInfo[0];
|
|
164
|
+
if (isPrivate ? desc = 0 === kind || 1 === kind ? {
|
|
165
|
+
get: decInfo[3],
|
|
166
|
+
set: decInfo[4]
|
|
167
|
+
} : 3 === kind ? {
|
|
168
|
+
get: decInfo[3]
|
|
169
|
+
} : 4 === kind ? {
|
|
170
|
+
set: decInfo[3]
|
|
171
|
+
} : {
|
|
172
|
+
value: decInfo[3]
|
|
173
|
+
} : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
|
|
174
|
+
get: desc.get,
|
|
175
|
+
set: desc.set
|
|
176
|
+
} : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
|
177
|
+
get: get,
|
|
178
|
+
set: set
|
|
179
|
+
}) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
|
|
180
|
+
var newInit;
|
|
181
|
+
if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
|
182
|
+
get: get,
|
|
183
|
+
set: set
|
|
184
|
+
}) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit));
|
|
25
185
|
}
|
|
26
186
|
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
187
|
+
if (0 === kind || 1 === kind) {
|
|
188
|
+
if (void 0 === initializer) initializer = function (instance, init) {
|
|
189
|
+
return init;
|
|
190
|
+
};else if ("function" != typeof initializer) {
|
|
191
|
+
var ownInitializers = initializer;
|
|
31
192
|
|
|
32
|
-
|
|
33
|
-
|
|
193
|
+
initializer = function (instance, init) {
|
|
194
|
+
for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value);
|
|
195
|
+
|
|
196
|
+
return value;
|
|
197
|
+
};
|
|
198
|
+
} else {
|
|
199
|
+
var originalInitializer = initializer;
|
|
200
|
+
|
|
201
|
+
initializer = function (instance, init) {
|
|
202
|
+
return originalInitializer.call(instance, init);
|
|
203
|
+
};
|
|
34
204
|
}
|
|
205
|
+
ret.push(initializer);
|
|
206
|
+
}
|
|
35
207
|
|
|
36
|
-
|
|
208
|
+
0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
|
|
209
|
+
return value.get.call(instance, args);
|
|
210
|
+
}), ret.push(function (instance, args) {
|
|
211
|
+
return value.set.call(instance, args);
|
|
212
|
+
})) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
|
|
213
|
+
return value.call(instance, args);
|
|
214
|
+
}) : Object.defineProperty(base, name, desc));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
|
|
218
|
+
for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
|
|
219
|
+
var decInfo = decInfos[i];
|
|
220
|
+
|
|
221
|
+
if (Array.isArray(decInfo)) {
|
|
222
|
+
var base,
|
|
223
|
+
metadataMap,
|
|
224
|
+
initializers,
|
|
225
|
+
kind = decInfo[1],
|
|
226
|
+
name = decInfo[2],
|
|
227
|
+
isPrivate = decInfo.length > 3,
|
|
228
|
+
isStatic = kind >= 5;
|
|
229
|
+
|
|
230
|
+
if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
|
|
231
|
+
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
|
|
232
|
+
existingKind = existingNonFields.get(name) || 0;
|
|
233
|
+
if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
|
234
|
+
!existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
|
|
238
|
+
}
|
|
37
239
|
}
|
|
38
240
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
241
|
+
pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function pushInitializers(ret, initializers) {
|
|
245
|
+
initializers && ret.push(function (instance) {
|
|
246
|
+
for (var i = 0; i < initializers.length; i++) initializers[i].call(instance);
|
|
247
|
+
|
|
248
|
+
return instance;
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function applyClassDecs(ret, targetClass, metadataMap, classDecs) {
|
|
253
|
+
if (classDecs.length > 0) {
|
|
254
|
+
for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
|
|
255
|
+
var decoratorFinishedRef = {
|
|
256
|
+
v: !1
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
try {
|
|
260
|
+
var ctx = Object.assign({
|
|
261
|
+
kind: "class",
|
|
262
|
+
name: name,
|
|
263
|
+
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
|
|
264
|
+
}, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)),
|
|
265
|
+
nextNewClass = classDecs[i](newClass, ctx);
|
|
266
|
+
} finally {
|
|
267
|
+
decoratorFinishedRef.v = !0;
|
|
43
268
|
}
|
|
269
|
+
|
|
270
|
+
void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
|
|
44
271
|
}
|
|
45
|
-
|
|
46
|
-
|
|
272
|
+
|
|
273
|
+
ret.push(newClass, function () {
|
|
274
|
+
for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass);
|
|
275
|
+
});
|
|
47
276
|
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function _applyDecs(targetClass, memberDecs, classDecs) {
|
|
280
|
+
var ret = [],
|
|
281
|
+
staticMetadataMap = {},
|
|
282
|
+
protoMetadataMap = {};
|
|
283
|
+
return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret;
|
|
284
|
+
}
|
|
48
285
|
|
|
286
|
+
function _asyncIterator(iterable) {
|
|
287
|
+
var method,
|
|
288
|
+
async,
|
|
289
|
+
sync,
|
|
290
|
+
retry = 2;
|
|
291
|
+
|
|
292
|
+
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
|
|
293
|
+
if (async && null != (method = iterable[async])) return method.call(iterable);
|
|
294
|
+
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
|
|
295
|
+
async = "@@asyncIterator", sync = "@@iterator";
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
throw new TypeError("Object is not async iterable");
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function AsyncFromSyncIterator(s) {
|
|
302
|
+
function AsyncFromSyncIteratorContinuation(r) {
|
|
303
|
+
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
|
|
304
|
+
var done = r.done;
|
|
305
|
+
return Promise.resolve(r.value).then(function (value) {
|
|
306
|
+
return {
|
|
307
|
+
value: value,
|
|
308
|
+
done: done
|
|
309
|
+
};
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
return AsyncFromSyncIterator = function (s) {
|
|
314
|
+
this.s = s, this.n = s.next;
|
|
315
|
+
}, AsyncFromSyncIterator.prototype = {
|
|
316
|
+
s: null,
|
|
317
|
+
n: null,
|
|
318
|
+
next: function () {
|
|
319
|
+
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
|
320
|
+
},
|
|
321
|
+
return: function (value) {
|
|
322
|
+
var ret = this.s.return;
|
|
323
|
+
return void 0 === ret ? Promise.resolve({
|
|
324
|
+
value: value,
|
|
325
|
+
done: !0
|
|
326
|
+
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
|
|
327
|
+
},
|
|
328
|
+
throw: function (value) {
|
|
329
|
+
var thr = this.s.return;
|
|
330
|
+
return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
|
331
|
+
}
|
|
332
|
+
}, new AsyncFromSyncIterator(s);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
var REACT_ELEMENT_TYPE;
|
|
336
|
+
|
|
337
|
+
function _jsx(type, props, key, children) {
|
|
338
|
+
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103);
|
|
339
|
+
var defaultProps = type && type.defaultProps,
|
|
340
|
+
childrenLength = arguments.length - 3;
|
|
341
|
+
if (props || 0 === childrenLength || (props = {
|
|
342
|
+
children: void 0
|
|
343
|
+
}), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
|
|
344
|
+
for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3];
|
|
345
|
+
|
|
346
|
+
props.children = childArray;
|
|
347
|
+
}
|
|
348
|
+
if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {});
|
|
49
349
|
return {
|
|
50
350
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
51
351
|
type: type,
|
|
52
|
-
key:
|
|
352
|
+
key: void 0 === key ? null : "" + key,
|
|
53
353
|
ref: null,
|
|
54
354
|
props: props,
|
|
55
355
|
_owner: null
|
|
@@ -61,14 +361,9 @@
|
|
|
61
361
|
|
|
62
362
|
if (Object.getOwnPropertySymbols) {
|
|
63
363
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
keys.push.apply(keys, symbols);
|
|
364
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
365
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
366
|
+
})), keys.push.apply(keys, symbols);
|
|
72
367
|
}
|
|
73
368
|
|
|
74
369
|
return keys;
|
|
@@ -76,19 +371,12 @@
|
|
|
76
371
|
|
|
77
372
|
function _objectSpread2(target) {
|
|
78
373
|
for (var i = 1; i < arguments.length; i++) {
|
|
79
|
-
var source = arguments[i]
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
86
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
87
|
-
} else {
|
|
88
|
-
ownKeys$2(Object(source)).forEach(function (key) {
|
|
89
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
90
|
-
});
|
|
91
|
-
}
|
|
374
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
375
|
+
i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
|
|
376
|
+
_defineProperty(target, key, source[key]);
|
|
377
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
|
|
378
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
379
|
+
});
|
|
92
380
|
}
|
|
93
381
|
|
|
94
382
|
return target;
|
|
@@ -97,94 +385,59 @@
|
|
|
97
385
|
function _typeof(obj) {
|
|
98
386
|
"@babel/helpers - typeof";
|
|
99
387
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
_typeof = function (obj) {
|
|
106
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return _typeof(obj);
|
|
388
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
389
|
+
return typeof obj;
|
|
390
|
+
} : function (obj) {
|
|
391
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
392
|
+
}, _typeof(obj);
|
|
111
393
|
}
|
|
112
394
|
|
|
113
395
|
function _wrapRegExp() {
|
|
114
396
|
_wrapRegExp = function (re, groups) {
|
|
115
|
-
return new BabelRegExp(re,
|
|
397
|
+
return new BabelRegExp(re, void 0, groups);
|
|
116
398
|
};
|
|
117
399
|
|
|
118
|
-
var _super = RegExp.prototype
|
|
119
|
-
|
|
120
|
-
var _groups = new WeakMap();
|
|
400
|
+
var _super = RegExp.prototype,
|
|
401
|
+
_groups = new WeakMap();
|
|
121
402
|
|
|
122
403
|
function BabelRegExp(re, flags, groups) {
|
|
123
404
|
var _this = new RegExp(re, flags);
|
|
124
405
|
|
|
125
|
-
_groups.set(_this, groups || _groups.get(re));
|
|
126
|
-
|
|
127
|
-
return _setPrototypeOf(_this, BabelRegExp.prototype);
|
|
406
|
+
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
|
128
407
|
}
|
|
129
408
|
|
|
130
|
-
|
|
409
|
+
function buildGroups(result, re) {
|
|
410
|
+
var g = _groups.get(re);
|
|
131
411
|
|
|
132
|
-
|
|
133
|
-
|
|
412
|
+
return Object.keys(g).reduce(function (groups, name) {
|
|
413
|
+
return groups[name] = result[g[name]], groups;
|
|
414
|
+
}, Object.create(null));
|
|
415
|
+
}
|
|
134
416
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
};
|
|
417
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
|
418
|
+
var result = _super.exec.call(this, str);
|
|
138
419
|
|
|
139
|
-
|
|
140
|
-
|
|
420
|
+
return result && (result.groups = buildGroups(result, this)), result;
|
|
421
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
422
|
+
if ("string" == typeof substitution) {
|
|
141
423
|
var groups = _groups.get(this);
|
|
142
424
|
|
|
143
425
|
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
144
426
|
return "$" + groups[name];
|
|
145
427
|
}));
|
|
146
|
-
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if ("function" == typeof substitution) {
|
|
147
431
|
var _this = this;
|
|
148
432
|
|
|
149
433
|
return _super[Symbol.replace].call(this, str, function () {
|
|
150
434
|
var args = arguments;
|
|
151
|
-
|
|
152
|
-
if (typeof args[args.length - 1] !== "object") {
|
|
153
|
-
args = [].slice.call(args);
|
|
154
|
-
args.push(buildGroups(args, _this));
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
return substitution.apply(this, args);
|
|
435
|
+
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
|
158
436
|
});
|
|
159
|
-
} else {
|
|
160
|
-
return _super[Symbol.replace].call(this, str, substitution);
|
|
161
437
|
}
|
|
162
|
-
};
|
|
163
438
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
return Object.keys(g).reduce(function (groups, name) {
|
|
168
|
-
groups[name] = result[g[name]];
|
|
169
|
-
return groups;
|
|
170
|
-
}, Object.create(null));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return _wrapRegExp.apply(this, arguments);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function _asyncIterator(iterable) {
|
|
177
|
-
var method;
|
|
178
|
-
|
|
179
|
-
if (typeof Symbol !== "undefined") {
|
|
180
|
-
if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
|
|
181
|
-
if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (method == null) method = iterable["@@asyncIterator"];
|
|
185
|
-
if (method == null) method = iterable["@@iterator"];
|
|
186
|
-
if (method == null) throw new TypeError("Object is not async iterable");
|
|
187
|
-
return method.call(iterable);
|
|
439
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
|
440
|
+
}, _wrapRegExp.apply(this, arguments);
|
|
188
441
|
}
|
|
189
442
|
|
|
190
443
|
function _AwaitValue(value) {
|
|
@@ -406,6 +659,9 @@
|
|
|
406
659
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
407
660
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
408
661
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
662
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
663
|
+
writable: false
|
|
664
|
+
});
|
|
409
665
|
return Constructor;
|
|
410
666
|
}
|
|
411
667
|
|
|
@@ -511,6 +767,9 @@
|
|
|
511
767
|
configurable: true
|
|
512
768
|
}
|
|
513
769
|
});
|
|
770
|
+
Object.defineProperty(subClass, "prototype", {
|
|
771
|
+
writable: false
|
|
772
|
+
});
|
|
514
773
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
515
774
|
}
|
|
516
775
|
|
|
@@ -761,7 +1020,7 @@
|
|
|
761
1020
|
return object;
|
|
762
1021
|
}
|
|
763
1022
|
|
|
764
|
-
function _get(
|
|
1023
|
+
function _get() {
|
|
765
1024
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
766
1025
|
_get = Reflect.get;
|
|
767
1026
|
} else {
|
|
@@ -772,14 +1031,14 @@
|
|
|
772
1031
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
773
1032
|
|
|
774
1033
|
if (desc.get) {
|
|
775
|
-
return desc.get.call(receiver);
|
|
1034
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
776
1035
|
}
|
|
777
1036
|
|
|
778
1037
|
return desc.value;
|
|
779
1038
|
};
|
|
780
1039
|
}
|
|
781
1040
|
|
|
782
|
-
return _get(
|
|
1041
|
+
return _get.apply(this, arguments);
|
|
783
1042
|
}
|
|
784
1043
|
|
|
785
1044
|
function set$1(target, property, value, receiver) {
|
|
@@ -1688,6 +1947,10 @@
|
|
|
1688
1947
|
throw new TypeError("attempted to reassign private method");
|
|
1689
1948
|
}
|
|
1690
1949
|
|
|
1950
|
+
function _identity(x) {
|
|
1951
|
+
return x;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1691
1954
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1692
1955
|
|
|
1693
1956
|
function getDefaultExportFromCjs (x) {
|
|
@@ -1721,14 +1984,14 @@
|
|
|
1721
1984
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1722
1985
|
}
|
|
1723
1986
|
|
|
1724
|
-
var
|
|
1987
|
+
var es_parseFloat = {};
|
|
1725
1988
|
|
|
1726
1989
|
var check = function (it) {
|
|
1727
1990
|
return it && it.Math == Math && it;
|
|
1728
1991
|
};
|
|
1729
1992
|
|
|
1730
1993
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1731
|
-
var global$
|
|
1994
|
+
var global$w =
|
|
1732
1995
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
1733
1996
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
1734
1997
|
check(typeof window == 'object' && window) ||
|
|
@@ -1740,7 +2003,7 @@
|
|
|
1740
2003
|
|
|
1741
2004
|
var objectGetOwnPropertyDescriptor = {};
|
|
1742
2005
|
|
|
1743
|
-
var fails$
|
|
2006
|
+
var fails$i = function (exec) {
|
|
1744
2007
|
try {
|
|
1745
2008
|
return !!exec();
|
|
1746
2009
|
} catch (error) {
|
|
@@ -1748,32 +2011,48 @@
|
|
|
1748
2011
|
}
|
|
1749
2012
|
};
|
|
1750
2013
|
|
|
1751
|
-
var fails$
|
|
2014
|
+
var fails$h = fails$i;
|
|
1752
2015
|
|
|
1753
2016
|
// Detect IE8's incomplete defineProperty implementation
|
|
1754
|
-
var descriptors = !fails$
|
|
2017
|
+
var descriptors = !fails$h(function () {
|
|
1755
2018
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1756
2019
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
1757
2020
|
});
|
|
1758
2021
|
|
|
2022
|
+
var fails$g = fails$i;
|
|
2023
|
+
|
|
2024
|
+
var functionBindNative = !fails$g(function () {
|
|
2025
|
+
var test = (function () { /* empty */ }).bind();
|
|
2026
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
2027
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
2028
|
+
});
|
|
2029
|
+
|
|
2030
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
2031
|
+
|
|
2032
|
+
var call$b = Function.prototype.call;
|
|
2033
|
+
|
|
2034
|
+
var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () {
|
|
2035
|
+
return call$b.apply(call$b, arguments);
|
|
2036
|
+
};
|
|
2037
|
+
|
|
1759
2038
|
var objectPropertyIsEnumerable = {};
|
|
1760
2039
|
|
|
1761
2040
|
'use strict';
|
|
1762
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
2041
|
+
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
|
1763
2042
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1764
2043
|
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
1765
2044
|
|
|
1766
2045
|
// Nashorn ~ JDK8 bug
|
|
1767
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
2046
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
|
|
1768
2047
|
|
|
1769
2048
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1770
2049
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1771
|
-
var f$
|
|
2050
|
+
var f$5 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1772
2051
|
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
1773
2052
|
return !!descriptor && descriptor.enumerable;
|
|
1774
|
-
} : $propertyIsEnumerable;
|
|
2053
|
+
} : $propertyIsEnumerable$1;
|
|
1775
2054
|
|
|
1776
|
-
var createPropertyDescriptor$
|
|
2055
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
1777
2056
|
return {
|
|
1778
2057
|
enumerable: !(bitmap & 1),
|
|
1779
2058
|
configurable: !(bitmap & 2),
|
|
@@ -1782,30 +2061,55 @@
|
|
|
1782
2061
|
};
|
|
1783
2062
|
};
|
|
1784
2063
|
|
|
1785
|
-
var
|
|
2064
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
2065
|
+
|
|
2066
|
+
var FunctionPrototype$3 = Function.prototype;
|
|
2067
|
+
var bind$2 = FunctionPrototype$3.bind;
|
|
2068
|
+
var call$a = FunctionPrototype$3.call;
|
|
2069
|
+
var uncurryThis$o = NATIVE_BIND$2 && bind$2.bind(call$a, call$a);
|
|
2070
|
+
|
|
2071
|
+
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
2072
|
+
return fn && uncurryThis$o(fn);
|
|
2073
|
+
} : function (fn) {
|
|
2074
|
+
return fn && function () {
|
|
2075
|
+
return call$a.apply(fn, arguments);
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2079
|
+
var uncurryThis$n = functionUncurryThis;
|
|
2080
|
+
|
|
2081
|
+
var toString$b = uncurryThis$n({}.toString);
|
|
2082
|
+
var stringSlice$5 = uncurryThis$n(''.slice);
|
|
1786
2083
|
|
|
1787
2084
|
var classofRaw$1 = function (it) {
|
|
1788
|
-
return toString$
|
|
2085
|
+
return stringSlice$5(toString$b(it), 8, -1);
|
|
1789
2086
|
};
|
|
1790
2087
|
|
|
1791
|
-
var
|
|
1792
|
-
var
|
|
2088
|
+
var global$v = global$w;
|
|
2089
|
+
var uncurryThis$m = functionUncurryThis;
|
|
2090
|
+
var fails$f = fails$i;
|
|
2091
|
+
var classof$7 = classofRaw$1;
|
|
1793
2092
|
|
|
1794
|
-
var
|
|
2093
|
+
var Object$4 = global$v.Object;
|
|
2094
|
+
var split = uncurryThis$m(''.split);
|
|
1795
2095
|
|
|
1796
2096
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1797
|
-
var indexedObject = fails$
|
|
2097
|
+
var indexedObject = fails$f(function () {
|
|
1798
2098
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
1799
2099
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1800
|
-
return !Object('z').propertyIsEnumerable(0);
|
|
2100
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
|
1801
2101
|
}) ? function (it) {
|
|
1802
|
-
return classof$
|
|
1803
|
-
} : Object;
|
|
2102
|
+
return classof$7(it) == 'String' ? split(it, '') : Object$4(it);
|
|
2103
|
+
} : Object$4;
|
|
2104
|
+
|
|
2105
|
+
var global$u = global$w;
|
|
2106
|
+
|
|
2107
|
+
var TypeError$a = global$u.TypeError;
|
|
1804
2108
|
|
|
1805
2109
|
// `RequireObjectCoercible` abstract operation
|
|
1806
2110
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
1807
2111
|
var requireObjectCoercible$8 = function (it) {
|
|
1808
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
2112
|
+
if (it == undefined) throw TypeError$a("Can't call method on " + it);
|
|
1809
2113
|
return it;
|
|
1810
2114
|
};
|
|
1811
2115
|
|
|
@@ -1813,23 +2117,23 @@
|
|
|
1813
2117
|
var IndexedObject$2 = indexedObject;
|
|
1814
2118
|
var requireObjectCoercible$7 = requireObjectCoercible$8;
|
|
1815
2119
|
|
|
1816
|
-
var toIndexedObject$
|
|
2120
|
+
var toIndexedObject$5 = function (it) {
|
|
1817
2121
|
return IndexedObject$2(requireObjectCoercible$7(it));
|
|
1818
2122
|
};
|
|
1819
2123
|
|
|
1820
2124
|
// `IsCallable` abstract operation
|
|
1821
2125
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
1822
2126
|
var isCallable$d = function (argument) {
|
|
1823
|
-
return typeof argument
|
|
2127
|
+
return typeof argument == 'function';
|
|
1824
2128
|
};
|
|
1825
2129
|
|
|
1826
2130
|
var isCallable$c = isCallable$d;
|
|
1827
2131
|
|
|
1828
2132
|
var isObject$7 = function (it) {
|
|
1829
|
-
return typeof it
|
|
2133
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
1830
2134
|
};
|
|
1831
2135
|
|
|
1832
|
-
var global$
|
|
2136
|
+
var global$t = global$w;
|
|
1833
2137
|
var isCallable$b = isCallable$d;
|
|
1834
2138
|
|
|
1835
2139
|
var aFunction = function (argument) {
|
|
@@ -1837,42 +2141,52 @@
|
|
|
1837
2141
|
};
|
|
1838
2142
|
|
|
1839
2143
|
var getBuiltIn$5 = function (namespace, method) {
|
|
1840
|
-
return arguments.length < 2 ? aFunction(global$
|
|
2144
|
+
return arguments.length < 2 ? aFunction(global$t[namespace]) : global$t[namespace] && global$t[namespace][method];
|
|
1841
2145
|
};
|
|
1842
2146
|
|
|
2147
|
+
var uncurryThis$l = functionUncurryThis;
|
|
2148
|
+
|
|
2149
|
+
var objectIsPrototypeOf = uncurryThis$l({}.isPrototypeOf);
|
|
2150
|
+
|
|
1843
2151
|
var getBuiltIn$4 = getBuiltIn$5;
|
|
1844
2152
|
|
|
1845
2153
|
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
1846
2154
|
|
|
1847
|
-
var global$
|
|
2155
|
+
var global$s = global$w;
|
|
1848
2156
|
var userAgent = engineUserAgent;
|
|
1849
2157
|
|
|
1850
|
-
var process = global$
|
|
1851
|
-
var Deno = global$
|
|
2158
|
+
var process = global$s.process;
|
|
2159
|
+
var Deno = global$s.Deno;
|
|
1852
2160
|
var versions = process && process.versions || Deno && Deno.version;
|
|
1853
2161
|
var v8 = versions && versions.v8;
|
|
1854
2162
|
var match, version;
|
|
1855
2163
|
|
|
1856
2164
|
if (v8) {
|
|
1857
2165
|
match = v8.split('.');
|
|
1858
|
-
|
|
1859
|
-
|
|
2166
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
2167
|
+
// but their correct versions are not interesting for us
|
|
2168
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
2172
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
2173
|
+
if (!version && userAgent) {
|
|
1860
2174
|
match = userAgent.match(/Edge\/(\d+)/);
|
|
1861
2175
|
if (!match || match[1] >= 74) {
|
|
1862
2176
|
match = userAgent.match(/Chrome\/(\d+)/);
|
|
1863
|
-
if (match) version = match[1];
|
|
2177
|
+
if (match) version = +match[1];
|
|
1864
2178
|
}
|
|
1865
2179
|
}
|
|
1866
2180
|
|
|
1867
|
-
var engineV8Version = version
|
|
2181
|
+
var engineV8Version = version;
|
|
1868
2182
|
|
|
1869
2183
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1870
2184
|
|
|
1871
2185
|
var V8_VERSION$1 = engineV8Version;
|
|
1872
|
-
var fails$
|
|
2186
|
+
var fails$e = fails$i;
|
|
1873
2187
|
|
|
1874
2188
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1875
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
2189
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
1876
2190
|
var symbol = Symbol();
|
|
1877
2191
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
1878
2192
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -1889,32 +2203,43 @@
|
|
|
1889
2203
|
&& !Symbol.sham
|
|
1890
2204
|
&& typeof Symbol.iterator == 'symbol';
|
|
1891
2205
|
|
|
1892
|
-
var
|
|
2206
|
+
var global$r = global$w;
|
|
1893
2207
|
var getBuiltIn$3 = getBuiltIn$5;
|
|
2208
|
+
var isCallable$a = isCallable$d;
|
|
2209
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
1894
2210
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
1895
2211
|
|
|
2212
|
+
var Object$3 = global$r.Object;
|
|
2213
|
+
|
|
1896
2214
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
1897
2215
|
return typeof it == 'symbol';
|
|
1898
2216
|
} : function (it) {
|
|
1899
2217
|
var $Symbol = getBuiltIn$3('Symbol');
|
|
1900
|
-
return isCallable$a($Symbol) && Object(it)
|
|
2218
|
+
return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
|
|
1901
2219
|
};
|
|
1902
2220
|
|
|
2221
|
+
var global$q = global$w;
|
|
2222
|
+
|
|
2223
|
+
var String$3 = global$q.String;
|
|
2224
|
+
|
|
1903
2225
|
var tryToString$2 = function (argument) {
|
|
1904
2226
|
try {
|
|
1905
|
-
return String(argument);
|
|
2227
|
+
return String$3(argument);
|
|
1906
2228
|
} catch (error) {
|
|
1907
2229
|
return 'Object';
|
|
1908
2230
|
}
|
|
1909
2231
|
};
|
|
1910
2232
|
|
|
2233
|
+
var global$p = global$w;
|
|
1911
2234
|
var isCallable$9 = isCallable$d;
|
|
1912
2235
|
var tryToString$1 = tryToString$2;
|
|
1913
2236
|
|
|
2237
|
+
var TypeError$9 = global$p.TypeError;
|
|
2238
|
+
|
|
1914
2239
|
// `Assert: IsCallable(argument) is true`
|
|
1915
2240
|
var aCallable$2 = function (argument) {
|
|
1916
2241
|
if (isCallable$9(argument)) return argument;
|
|
1917
|
-
throw TypeError(tryToString$1(argument) + ' is not a function');
|
|
2242
|
+
throw TypeError$9(tryToString$1(argument) + ' is not a function');
|
|
1918
2243
|
};
|
|
1919
2244
|
|
|
1920
2245
|
var aCallable$1 = aCallable$2;
|
|
@@ -1926,39 +2251,45 @@
|
|
|
1926
2251
|
return func == null ? undefined : aCallable$1(func);
|
|
1927
2252
|
};
|
|
1928
2253
|
|
|
2254
|
+
var global$o = global$w;
|
|
2255
|
+
var call$9 = functionCall;
|
|
1929
2256
|
var isCallable$8 = isCallable$d;
|
|
1930
2257
|
var isObject$6 = isObject$7;
|
|
1931
2258
|
|
|
2259
|
+
var TypeError$8 = global$o.TypeError;
|
|
2260
|
+
|
|
1932
2261
|
// `OrdinaryToPrimitive` abstract operation
|
|
1933
2262
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1934
2263
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
1935
2264
|
var fn, val;
|
|
1936
|
-
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$6(val =
|
|
1937
|
-
if (isCallable$8(fn = input.valueOf) && !isObject$6(val =
|
|
1938
|
-
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$6(val =
|
|
1939
|
-
throw TypeError("Can't convert object to primitive value");
|
|
2265
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
|
|
2266
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$6(val = call$9(fn, input))) return val;
|
|
2267
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
|
|
2268
|
+
throw TypeError$8("Can't convert object to primitive value");
|
|
1940
2269
|
};
|
|
1941
2270
|
|
|
1942
2271
|
var shared$5 = {exports: {}};
|
|
1943
2272
|
|
|
1944
2273
|
var isPure = false;
|
|
1945
2274
|
|
|
1946
|
-
var global$
|
|
2275
|
+
var global$n = global$w;
|
|
2276
|
+
|
|
2277
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2278
|
+
var defineProperty$2 = Object.defineProperty;
|
|
1947
2279
|
|
|
1948
2280
|
var setGlobal$3 = function (key, value) {
|
|
1949
2281
|
try {
|
|
1950
|
-
|
|
1951
|
-
Object.defineProperty(global$b, key, { value: value, configurable: true, writable: true });
|
|
2282
|
+
defineProperty$2(global$n, key, { value: value, configurable: true, writable: true });
|
|
1952
2283
|
} catch (error) {
|
|
1953
|
-
global$
|
|
2284
|
+
global$n[key] = value;
|
|
1954
2285
|
} return value;
|
|
1955
2286
|
};
|
|
1956
2287
|
|
|
1957
|
-
var global$
|
|
2288
|
+
var global$m = global$w;
|
|
1958
2289
|
var setGlobal$2 = setGlobal$3;
|
|
1959
2290
|
|
|
1960
2291
|
var SHARED = '__core-js_shared__';
|
|
1961
|
-
var store$3 = global$
|
|
2292
|
+
var store$3 = global$m[SHARED] || setGlobal$2(SHARED, {});
|
|
1962
2293
|
|
|
1963
2294
|
var sharedStore = store$3;
|
|
1964
2295
|
|
|
@@ -1968,39 +2299,48 @@
|
|
|
1968
2299
|
(shared$5.exports = function (key, value) {
|
|
1969
2300
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
1970
2301
|
})('versions', []).push({
|
|
1971
|
-
version: '3.
|
|
2302
|
+
version: '3.21.1',
|
|
1972
2303
|
mode: IS_PURE$1 ? 'pure' : 'global',
|
|
1973
|
-
copyright: '©
|
|
2304
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
2305
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
|
2306
|
+
source: 'https://github.com/zloirock/core-js'
|
|
1974
2307
|
});
|
|
1975
2308
|
|
|
1976
2309
|
var shared$4 = shared$5.exports;
|
|
1977
2310
|
|
|
2311
|
+
var global$l = global$w;
|
|
1978
2312
|
var requireObjectCoercible$6 = requireObjectCoercible$8;
|
|
1979
2313
|
|
|
2314
|
+
var Object$2 = global$l.Object;
|
|
2315
|
+
|
|
1980
2316
|
// `ToObject` abstract operation
|
|
1981
2317
|
// https://tc39.es/ecma262/#sec-toobject
|
|
1982
2318
|
var toObject$4 = function (argument) {
|
|
1983
|
-
return Object(requireObjectCoercible$6(argument));
|
|
2319
|
+
return Object$2(requireObjectCoercible$6(argument));
|
|
1984
2320
|
};
|
|
1985
2321
|
|
|
2322
|
+
var uncurryThis$k = functionUncurryThis;
|
|
1986
2323
|
var toObject$3 = toObject$4;
|
|
1987
2324
|
|
|
1988
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
2325
|
+
var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
|
|
1989
2326
|
|
|
1990
2327
|
// `HasOwnProperty` abstract operation
|
|
1991
2328
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
1992
2329
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
1993
|
-
return hasOwnProperty
|
|
2330
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
1994
2331
|
};
|
|
1995
2332
|
|
|
2333
|
+
var uncurryThis$j = functionUncurryThis;
|
|
2334
|
+
|
|
1996
2335
|
var id = 0;
|
|
1997
2336
|
var postfix = Math.random();
|
|
2337
|
+
var toString$a = uncurryThis$j(1.0.toString);
|
|
1998
2338
|
|
|
1999
2339
|
var uid$2 = function (key) {
|
|
2000
|
-
return 'Symbol(' +
|
|
2340
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
|
|
2001
2341
|
};
|
|
2002
2342
|
|
|
2003
|
-
var global$
|
|
2343
|
+
var global$k = global$w;
|
|
2004
2344
|
var shared$3 = shared$5.exports;
|
|
2005
2345
|
var hasOwn$6 = hasOwnProperty_1;
|
|
2006
2346
|
var uid$1 = uid$2;
|
|
@@ -2008,25 +2348,32 @@
|
|
|
2008
2348
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
2009
2349
|
|
|
2010
2350
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
2011
|
-
var Symbol$
|
|
2012
|
-
var
|
|
2351
|
+
var Symbol$2 = global$k.Symbol;
|
|
2352
|
+
var symbolFor = Symbol$2 && Symbol$2['for'];
|
|
2353
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
2013
2354
|
|
|
2014
2355
|
var wellKnownSymbol$a = function (name) {
|
|
2015
2356
|
if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
2016
|
-
|
|
2017
|
-
|
|
2357
|
+
var description = 'Symbol.' + name;
|
|
2358
|
+
if (NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)) {
|
|
2359
|
+
WellKnownSymbolsStore[name] = Symbol$2[name];
|
|
2360
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
2361
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
2018
2362
|
} else {
|
|
2019
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(
|
|
2363
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
2020
2364
|
}
|
|
2021
2365
|
} return WellKnownSymbolsStore[name];
|
|
2022
2366
|
};
|
|
2023
2367
|
|
|
2368
|
+
var global$j = global$w;
|
|
2369
|
+
var call$8 = functionCall;
|
|
2024
2370
|
var isObject$5 = isObject$7;
|
|
2025
2371
|
var isSymbol$1 = isSymbol$2;
|
|
2026
2372
|
var getMethod$3 = getMethod$4;
|
|
2027
2373
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
2028
2374
|
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
2029
2375
|
|
|
2376
|
+
var TypeError$7 = global$j.TypeError;
|
|
2030
2377
|
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
2031
2378
|
|
|
2032
2379
|
// `ToPrimitive` abstract operation
|
|
@@ -2037,9 +2384,9 @@
|
|
|
2037
2384
|
var result;
|
|
2038
2385
|
if (exoticToPrim) {
|
|
2039
2386
|
if (pref === undefined) pref = 'default';
|
|
2040
|
-
result =
|
|
2387
|
+
result = call$8(exoticToPrim, input, pref);
|
|
2041
2388
|
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
2042
|
-
throw TypeError("Can't convert object to primitive value");
|
|
2389
|
+
throw TypeError$7("Can't convert object to primitive value");
|
|
2043
2390
|
}
|
|
2044
2391
|
if (pref === undefined) pref = 'number';
|
|
2045
2392
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -2050,15 +2397,15 @@
|
|
|
2050
2397
|
|
|
2051
2398
|
// `ToPropertyKey` abstract operation
|
|
2052
2399
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
2053
|
-
var toPropertyKey$
|
|
2400
|
+
var toPropertyKey$3 = function (argument) {
|
|
2054
2401
|
var key = toPrimitive(argument, 'string');
|
|
2055
|
-
return isSymbol(key) ? key :
|
|
2402
|
+
return isSymbol(key) ? key : key + '';
|
|
2056
2403
|
};
|
|
2057
2404
|
|
|
2058
|
-
var global$
|
|
2405
|
+
var global$i = global$w;
|
|
2059
2406
|
var isObject$4 = isObject$7;
|
|
2060
2407
|
|
|
2061
|
-
var document$1 = global$
|
|
2408
|
+
var document$1 = global$i.document;
|
|
2062
2409
|
// typeof document.createElement is 'object' in old IE
|
|
2063
2410
|
var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
2064
2411
|
|
|
@@ -2066,104 +2413,146 @@
|
|
|
2066
2413
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
2067
2414
|
};
|
|
2068
2415
|
|
|
2069
|
-
var DESCRIPTORS$
|
|
2070
|
-
var fails$
|
|
2416
|
+
var DESCRIPTORS$9 = descriptors;
|
|
2417
|
+
var fails$d = fails$i;
|
|
2071
2418
|
var createElement$1 = documentCreateElement$1;
|
|
2072
2419
|
|
|
2073
|
-
//
|
|
2074
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
2075
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
|
2420
|
+
// Thanks to IE8 for its funny defineProperty
|
|
2421
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$d(function () {
|
|
2422
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
2076
2423
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
2077
2424
|
get: function () { return 7; }
|
|
2078
2425
|
}).a != 7;
|
|
2079
2426
|
});
|
|
2080
2427
|
|
|
2081
|
-
var DESCRIPTORS$
|
|
2428
|
+
var DESCRIPTORS$8 = descriptors;
|
|
2429
|
+
var call$7 = functionCall;
|
|
2082
2430
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
2083
|
-
var createPropertyDescriptor$
|
|
2084
|
-
var toIndexedObject$
|
|
2085
|
-
var toPropertyKey$
|
|
2431
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
2432
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
2433
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
2086
2434
|
var hasOwn$5 = hasOwnProperty_1;
|
|
2087
2435
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
2088
2436
|
|
|
2089
2437
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2090
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2438
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
2091
2439
|
|
|
2092
2440
|
// `Object.getOwnPropertyDescriptor` method
|
|
2093
2441
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
2094
|
-
var f$
|
|
2095
|
-
O = toIndexedObject$
|
|
2096
|
-
P = toPropertyKey$
|
|
2442
|
+
var f$4 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
2443
|
+
O = toIndexedObject$4(O);
|
|
2444
|
+
P = toPropertyKey$2(P);
|
|
2097
2445
|
if (IE8_DOM_DEFINE$1) try {
|
|
2098
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
2446
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
2099
2447
|
} catch (error) { /* empty */ }
|
|
2100
|
-
if (hasOwn$5(O, P)) return createPropertyDescriptor$
|
|
2448
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
2101
2449
|
};
|
|
2102
2450
|
|
|
2103
2451
|
var objectDefineProperty = {};
|
|
2104
2452
|
|
|
2453
|
+
var DESCRIPTORS$7 = descriptors;
|
|
2454
|
+
var fails$c = fails$i;
|
|
2455
|
+
|
|
2456
|
+
// V8 ~ Chrome 36-
|
|
2457
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
2458
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$c(function () {
|
|
2459
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
2460
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
2461
|
+
value: 42,
|
|
2462
|
+
writable: false
|
|
2463
|
+
}).prototype != 42;
|
|
2464
|
+
});
|
|
2465
|
+
|
|
2466
|
+
var global$h = global$w;
|
|
2105
2467
|
var isObject$3 = isObject$7;
|
|
2106
2468
|
|
|
2469
|
+
var String$2 = global$h.String;
|
|
2470
|
+
var TypeError$6 = global$h.TypeError;
|
|
2471
|
+
|
|
2107
2472
|
// `Assert: Type(argument) is Object`
|
|
2108
2473
|
var anObject$a = function (argument) {
|
|
2109
2474
|
if (isObject$3(argument)) return argument;
|
|
2110
|
-
throw TypeError(String(argument) + ' is not an object');
|
|
2475
|
+
throw TypeError$6(String$2(argument) + ' is not an object');
|
|
2111
2476
|
};
|
|
2112
2477
|
|
|
2478
|
+
var global$g = global$w;
|
|
2113
2479
|
var DESCRIPTORS$6 = descriptors;
|
|
2114
2480
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
2481
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
2115
2482
|
var anObject$9 = anObject$a;
|
|
2116
|
-
var toPropertyKey = toPropertyKey$
|
|
2483
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
2117
2484
|
|
|
2485
|
+
var TypeError$5 = global$g.TypeError;
|
|
2118
2486
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2119
2487
|
var $defineProperty = Object.defineProperty;
|
|
2488
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2489
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2490
|
+
var ENUMERABLE = 'enumerable';
|
|
2491
|
+
var CONFIGURABLE$1 = 'configurable';
|
|
2492
|
+
var WRITABLE = 'writable';
|
|
2120
2493
|
|
|
2121
2494
|
// `Object.defineProperty` method
|
|
2122
2495
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
2123
|
-
var f$
|
|
2496
|
+
var f$3 = objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
2124
2497
|
anObject$9(O);
|
|
2125
|
-
P = toPropertyKey(P);
|
|
2498
|
+
P = toPropertyKey$1(P);
|
|
2499
|
+
anObject$9(Attributes);
|
|
2500
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
2501
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
2502
|
+
if (current && current[WRITABLE]) {
|
|
2503
|
+
O[P] = Attributes.value;
|
|
2504
|
+
Attributes = {
|
|
2505
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
2506
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
2507
|
+
writable: false
|
|
2508
|
+
};
|
|
2509
|
+
}
|
|
2510
|
+
} return $defineProperty(O, P, Attributes);
|
|
2511
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
2512
|
+
anObject$9(O);
|
|
2513
|
+
P = toPropertyKey$1(P);
|
|
2126
2514
|
anObject$9(Attributes);
|
|
2127
2515
|
if (IE8_DOM_DEFINE) try {
|
|
2128
2516
|
return $defineProperty(O, P, Attributes);
|
|
2129
2517
|
} catch (error) { /* empty */ }
|
|
2130
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
2518
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
|
|
2131
2519
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
2132
2520
|
return O;
|
|
2133
2521
|
};
|
|
2134
2522
|
|
|
2135
2523
|
var DESCRIPTORS$5 = descriptors;
|
|
2136
|
-
var definePropertyModule$
|
|
2137
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
2524
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
2525
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
2138
2526
|
|
|
2139
2527
|
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
2140
|
-
return definePropertyModule$
|
|
2528
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
2141
2529
|
} : function (object, key, value) {
|
|
2142
2530
|
object[key] = value;
|
|
2143
2531
|
return object;
|
|
2144
2532
|
};
|
|
2145
2533
|
|
|
2146
|
-
var redefine$
|
|
2534
|
+
var redefine$4 = {exports: {}};
|
|
2147
2535
|
|
|
2536
|
+
var uncurryThis$i = functionUncurryThis;
|
|
2148
2537
|
var isCallable$7 = isCallable$d;
|
|
2149
2538
|
var store$1 = sharedStore;
|
|
2150
2539
|
|
|
2151
|
-
var functionToString = Function.toString;
|
|
2540
|
+
var functionToString$1 = uncurryThis$i(Function.toString);
|
|
2152
2541
|
|
|
2153
2542
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
2154
2543
|
if (!isCallable$7(store$1.inspectSource)) {
|
|
2155
2544
|
store$1.inspectSource = function (it) {
|
|
2156
|
-
return functionToString
|
|
2545
|
+
return functionToString$1(it);
|
|
2157
2546
|
};
|
|
2158
2547
|
}
|
|
2159
2548
|
|
|
2160
2549
|
var inspectSource$3 = store$1.inspectSource;
|
|
2161
2550
|
|
|
2162
|
-
var global$
|
|
2551
|
+
var global$f = global$w;
|
|
2163
2552
|
var isCallable$6 = isCallable$d;
|
|
2164
2553
|
var inspectSource$2 = inspectSource$3;
|
|
2165
2554
|
|
|
2166
|
-
var WeakMap$2 = global$
|
|
2555
|
+
var WeakMap$2 = global$f.WeakMap;
|
|
2167
2556
|
|
|
2168
2557
|
var nativeWeakMap = isCallable$6(WeakMap$2) && /native code/.test(inspectSource$2(WeakMap$2));
|
|
2169
2558
|
|
|
@@ -2179,7 +2568,8 @@
|
|
|
2179
2568
|
var hiddenKeys$4 = {};
|
|
2180
2569
|
|
|
2181
2570
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
2182
|
-
var global$
|
|
2571
|
+
var global$e = global$w;
|
|
2572
|
+
var uncurryThis$h = functionUncurryThis;
|
|
2183
2573
|
var isObject$2 = isObject$7;
|
|
2184
2574
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
2185
2575
|
var hasOwn$4 = hasOwnProperty_1;
|
|
@@ -2188,7 +2578,8 @@
|
|
|
2188
2578
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
2189
2579
|
|
|
2190
2580
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
2191
|
-
var
|
|
2581
|
+
var TypeError$4 = global$e.TypeError;
|
|
2582
|
+
var WeakMap$1 = global$e.WeakMap;
|
|
2192
2583
|
var set, get, has;
|
|
2193
2584
|
|
|
2194
2585
|
var enforce = function (it) {
|
|
@@ -2199,33 +2590,33 @@
|
|
|
2199
2590
|
return function (it) {
|
|
2200
2591
|
var state;
|
|
2201
2592
|
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
2202
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
2593
|
+
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
2203
2594
|
} return state;
|
|
2204
2595
|
};
|
|
2205
2596
|
};
|
|
2206
2597
|
|
|
2207
2598
|
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
2208
2599
|
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
2209
|
-
var wmget = store.get;
|
|
2210
|
-
var wmhas = store.has;
|
|
2211
|
-
var wmset = store.set;
|
|
2600
|
+
var wmget = uncurryThis$h(store.get);
|
|
2601
|
+
var wmhas = uncurryThis$h(store.has);
|
|
2602
|
+
var wmset = uncurryThis$h(store.set);
|
|
2212
2603
|
set = function (it, metadata) {
|
|
2213
|
-
if (wmhas
|
|
2604
|
+
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
2214
2605
|
metadata.facade = it;
|
|
2215
|
-
wmset
|
|
2606
|
+
wmset(store, it, metadata);
|
|
2216
2607
|
return metadata;
|
|
2217
2608
|
};
|
|
2218
2609
|
get = function (it) {
|
|
2219
|
-
return wmget
|
|
2610
|
+
return wmget(store, it) || {};
|
|
2220
2611
|
};
|
|
2221
2612
|
has = function (it) {
|
|
2222
|
-
return wmhas
|
|
2613
|
+
return wmhas(store, it);
|
|
2223
2614
|
};
|
|
2224
2615
|
} else {
|
|
2225
2616
|
var STATE = sharedKey$1('state');
|
|
2226
2617
|
hiddenKeys$3[STATE] = true;
|
|
2227
2618
|
set = function (it, metadata) {
|
|
2228
|
-
if (hasOwn$4(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
2619
|
+
if (hasOwn$4(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
2229
2620
|
metadata.facade = it;
|
|
2230
2621
|
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
2231
2622
|
return metadata;
|
|
@@ -2249,14 +2640,14 @@
|
|
|
2249
2640
|
var DESCRIPTORS$4 = descriptors;
|
|
2250
2641
|
var hasOwn$3 = hasOwnProperty_1;
|
|
2251
2642
|
|
|
2252
|
-
var FunctionPrototype$
|
|
2643
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
2253
2644
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2254
2645
|
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
2255
2646
|
|
|
2256
|
-
var EXISTS = hasOwn$3(FunctionPrototype$
|
|
2647
|
+
var EXISTS = hasOwn$3(FunctionPrototype$2, 'name');
|
|
2257
2648
|
// additional protection from minified / mangled / dropped function names
|
|
2258
2649
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
2259
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$
|
|
2650
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$2, 'name').configurable));
|
|
2260
2651
|
|
|
2261
2652
|
var functionName = {
|
|
2262
2653
|
EXISTS: EXISTS,
|
|
@@ -2264,7 +2655,7 @@
|
|
|
2264
2655
|
CONFIGURABLE: CONFIGURABLE
|
|
2265
2656
|
};
|
|
2266
2657
|
|
|
2267
|
-
var global$
|
|
2658
|
+
var global$d = global$w;
|
|
2268
2659
|
var isCallable$5 = isCallable$d;
|
|
2269
2660
|
var hasOwn$2 = hasOwnProperty_1;
|
|
2270
2661
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
@@ -2277,7 +2668,7 @@
|
|
|
2277
2668
|
var enforceInternalState = InternalStateModule.enforce;
|
|
2278
2669
|
var TEMPLATE = String(String).split('String');
|
|
2279
2670
|
|
|
2280
|
-
(redefine$
|
|
2671
|
+
(redefine$4.exports = function (O, key, value, options) {
|
|
2281
2672
|
var unsafe = options ? !!options.unsafe : false;
|
|
2282
2673
|
var simple = options ? !!options.enumerable : false;
|
|
2283
2674
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
@@ -2295,7 +2686,7 @@
|
|
|
2295
2686
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
2296
2687
|
}
|
|
2297
2688
|
}
|
|
2298
|
-
if (O === global$
|
|
2689
|
+
if (O === global$d) {
|
|
2299
2690
|
if (simple) O[key] = value;
|
|
2300
2691
|
else setGlobal$1(key, value);
|
|
2301
2692
|
return;
|
|
@@ -2311,7 +2702,7 @@
|
|
|
2311
2702
|
return isCallable$5(this) && getInternalState$1(this).source || inspectSource$1(this);
|
|
2312
2703
|
});
|
|
2313
2704
|
|
|
2314
|
-
var redefine$
|
|
2705
|
+
var redefine$3 = redefine$4.exports;
|
|
2315
2706
|
|
|
2316
2707
|
var objectGetOwnPropertyNames = {};
|
|
2317
2708
|
|
|
@@ -2328,15 +2719,15 @@
|
|
|
2328
2719
|
|
|
2329
2720
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
2330
2721
|
|
|
2331
|
-
var max$
|
|
2722
|
+
var max$2 = Math.max;
|
|
2332
2723
|
var min$4 = Math.min;
|
|
2333
2724
|
|
|
2334
2725
|
// Helper for a popular repeating case of the spec:
|
|
2335
2726
|
// Let integer be ? ToInteger(index).
|
|
2336
2727
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
2337
|
-
var toAbsoluteIndex$
|
|
2728
|
+
var toAbsoluteIndex$2 = function (index, length) {
|
|
2338
2729
|
var integer = toIntegerOrInfinity$3(index);
|
|
2339
|
-
return integer < 0 ? max$
|
|
2730
|
+
return integer < 0 ? max$2(integer + length, 0) : min$4(integer, length);
|
|
2340
2731
|
};
|
|
2341
2732
|
|
|
2342
2733
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
@@ -2353,20 +2744,20 @@
|
|
|
2353
2744
|
|
|
2354
2745
|
// `LengthOfArrayLike` abstract operation
|
|
2355
2746
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
2356
|
-
var lengthOfArrayLike$
|
|
2747
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
2357
2748
|
return toLength$4(obj.length);
|
|
2358
2749
|
};
|
|
2359
2750
|
|
|
2360
|
-
var toIndexedObject$
|
|
2361
|
-
var toAbsoluteIndex = toAbsoluteIndex$
|
|
2362
|
-
var lengthOfArrayLike$
|
|
2751
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
2752
|
+
var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
2753
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
2363
2754
|
|
|
2364
2755
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
2365
2756
|
var createMethod$4 = function (IS_INCLUDES) {
|
|
2366
2757
|
return function ($this, el, fromIndex) {
|
|
2367
|
-
var O = toIndexedObject$
|
|
2368
|
-
var length = lengthOfArrayLike$
|
|
2369
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
2758
|
+
var O = toIndexedObject$3($this);
|
|
2759
|
+
var length = lengthOfArrayLike$2(O);
|
|
2760
|
+
var index = toAbsoluteIndex$1(fromIndex, length);
|
|
2370
2761
|
var value;
|
|
2371
2762
|
// Array#includes uses SameValueZero equality algorithm
|
|
2372
2763
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
@@ -2390,20 +2781,23 @@
|
|
|
2390
2781
|
indexOf: createMethod$4(false)
|
|
2391
2782
|
};
|
|
2392
2783
|
|
|
2784
|
+
var uncurryThis$g = functionUncurryThis;
|
|
2393
2785
|
var hasOwn$1 = hasOwnProperty_1;
|
|
2394
|
-
var toIndexedObject$
|
|
2395
|
-
var indexOf = arrayIncludes.indexOf;
|
|
2786
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
2787
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
2396
2788
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
2397
2789
|
|
|
2790
|
+
var push$4 = uncurryThis$g([].push);
|
|
2791
|
+
|
|
2398
2792
|
var objectKeysInternal = function (object, names) {
|
|
2399
|
-
var O = toIndexedObject$
|
|
2793
|
+
var O = toIndexedObject$2(object);
|
|
2400
2794
|
var i = 0;
|
|
2401
2795
|
var result = [];
|
|
2402
2796
|
var key;
|
|
2403
|
-
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) &&
|
|
2797
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$4(result, key);
|
|
2404
2798
|
// Don't enum bug & hidden keys
|
|
2405
2799
|
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
2406
|
-
~indexOf(result, key) ||
|
|
2800
|
+
~indexOf$1(result, key) || push$4(result, key);
|
|
2407
2801
|
}
|
|
2408
2802
|
return result;
|
|
2409
2803
|
};
|
|
@@ -2427,43 +2821,48 @@
|
|
|
2427
2821
|
// `Object.getOwnPropertyNames` method
|
|
2428
2822
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
2429
2823
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
2430
|
-
var f$
|
|
2824
|
+
var f$2 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
2431
2825
|
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
2432
2826
|
};
|
|
2433
2827
|
|
|
2434
2828
|
var objectGetOwnPropertySymbols = {};
|
|
2435
2829
|
|
|
2436
2830
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
2437
|
-
var f = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
2831
|
+
var f$1 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
2438
2832
|
|
|
2439
2833
|
var getBuiltIn$2 = getBuiltIn$5;
|
|
2834
|
+
var uncurryThis$f = functionUncurryThis;
|
|
2440
2835
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
2441
2836
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
2442
2837
|
var anObject$8 = anObject$a;
|
|
2443
2838
|
|
|
2839
|
+
var concat$2 = uncurryThis$f([].concat);
|
|
2840
|
+
|
|
2444
2841
|
// all object keys, includes non-enumerable and symbols
|
|
2445
2842
|
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2446
2843
|
var keys = getOwnPropertyNamesModule.f(anObject$8(it));
|
|
2447
2844
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
2448
|
-
return getOwnPropertySymbols ?
|
|
2845
|
+
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
2449
2846
|
};
|
|
2450
2847
|
|
|
2451
2848
|
var hasOwn = hasOwnProperty_1;
|
|
2452
2849
|
var ownKeys = ownKeys$1;
|
|
2453
2850
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
2454
|
-
var definePropertyModule$
|
|
2851
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
2455
2852
|
|
|
2456
|
-
var copyConstructorProperties$1 = function (target, source) {
|
|
2853
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
2457
2854
|
var keys = ownKeys(source);
|
|
2458
|
-
var defineProperty = definePropertyModule$
|
|
2855
|
+
var defineProperty = definePropertyModule$2.f;
|
|
2459
2856
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
2460
2857
|
for (var i = 0; i < keys.length; i++) {
|
|
2461
2858
|
var key = keys[i];
|
|
2462
|
-
if (!hasOwn(target, key)
|
|
2859
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
2860
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
2861
|
+
}
|
|
2463
2862
|
}
|
|
2464
2863
|
};
|
|
2465
2864
|
|
|
2466
|
-
var fails$
|
|
2865
|
+
var fails$b = fails$i;
|
|
2467
2866
|
var isCallable$4 = isCallable$d;
|
|
2468
2867
|
|
|
2469
2868
|
var replacement = /#|\.prototype\./;
|
|
@@ -2472,7 +2871,7 @@
|
|
|
2472
2871
|
var value = data[normalize(feature)];
|
|
2473
2872
|
return value == POLYFILL ? true
|
|
2474
2873
|
: value == NATIVE ? false
|
|
2475
|
-
: isCallable$4(detection) ? fails$
|
|
2874
|
+
: isCallable$4(detection) ? fails$b(detection)
|
|
2476
2875
|
: !!detection;
|
|
2477
2876
|
};
|
|
2478
2877
|
|
|
@@ -2486,10 +2885,10 @@
|
|
|
2486
2885
|
|
|
2487
2886
|
var isForced_1 = isForced$1;
|
|
2488
2887
|
|
|
2489
|
-
var global$
|
|
2888
|
+
var global$c = global$w;
|
|
2490
2889
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
2491
2890
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
2492
|
-
var redefine$
|
|
2891
|
+
var redefine$2 = redefine$4.exports;
|
|
2493
2892
|
var setGlobal = setGlobal$3;
|
|
2494
2893
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
2495
2894
|
var isForced = isForced_1;
|
|
@@ -2515,11 +2914,11 @@
|
|
|
2515
2914
|
var STATIC = options.stat;
|
|
2516
2915
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
2517
2916
|
if (GLOBAL) {
|
|
2518
|
-
target = global$
|
|
2917
|
+
target = global$c;
|
|
2519
2918
|
} else if (STATIC) {
|
|
2520
|
-
target = global$
|
|
2919
|
+
target = global$c[TARGET] || setGlobal(TARGET, {});
|
|
2521
2920
|
} else {
|
|
2522
|
-
target = (global$
|
|
2921
|
+
target = (global$c[TARGET] || {}).prototype;
|
|
2523
2922
|
}
|
|
2524
2923
|
if (target) for (key in source) {
|
|
2525
2924
|
sourceProperty = source[key];
|
|
@@ -2530,7 +2929,7 @@
|
|
|
2530
2929
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
2531
2930
|
// contained in target
|
|
2532
2931
|
if (!FORCED && targetProperty !== undefined) {
|
|
2533
|
-
if (typeof sourceProperty
|
|
2932
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
2534
2933
|
copyConstructorProperties(sourceProperty, targetProperty);
|
|
2535
2934
|
}
|
|
2536
2935
|
// add a flag to not completely full polyfills
|
|
@@ -2538,10 +2937,130 @@
|
|
|
2538
2937
|
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
2539
2938
|
}
|
|
2540
2939
|
// extend global
|
|
2541
|
-
redefine$
|
|
2940
|
+
redefine$2(target, key, sourceProperty, options);
|
|
2542
2941
|
}
|
|
2543
2942
|
};
|
|
2544
2943
|
|
|
2944
|
+
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
2945
|
+
|
|
2946
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
2947
|
+
var test = {};
|
|
2948
|
+
|
|
2949
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
2950
|
+
|
|
2951
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
2952
|
+
|
|
2953
|
+
var global$b = global$w;
|
|
2954
|
+
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
2955
|
+
var isCallable$3 = isCallable$d;
|
|
2956
|
+
var classofRaw = classofRaw$1;
|
|
2957
|
+
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
2958
|
+
|
|
2959
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
2960
|
+
var Object$1 = global$b.Object;
|
|
2961
|
+
|
|
2962
|
+
// ES3 wrong here
|
|
2963
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
2964
|
+
|
|
2965
|
+
// fallback for IE11 Script Access Denied error
|
|
2966
|
+
var tryGet = function (it, key) {
|
|
2967
|
+
try {
|
|
2968
|
+
return it[key];
|
|
2969
|
+
} catch (error) { /* empty */ }
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2972
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
2973
|
+
var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
2974
|
+
var O, tag, result;
|
|
2975
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2976
|
+
// @@toStringTag case
|
|
2977
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
|
2978
|
+
// builtinTag case
|
|
2979
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2980
|
+
// ES3 arguments fallback
|
|
2981
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
var global$a = global$w;
|
|
2985
|
+
var classof$5 = classof$6;
|
|
2986
|
+
|
|
2987
|
+
var String$1 = global$a.String;
|
|
2988
|
+
|
|
2989
|
+
var toString$9 = function (argument) {
|
|
2990
|
+
if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
2991
|
+
return String$1(argument);
|
|
2992
|
+
};
|
|
2993
|
+
|
|
2994
|
+
// a string of all valid unicode whitespaces
|
|
2995
|
+
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
2996
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
2997
|
+
|
|
2998
|
+
var uncurryThis$e = functionUncurryThis;
|
|
2999
|
+
var requireObjectCoercible$5 = requireObjectCoercible$8;
|
|
3000
|
+
var toString$8 = toString$9;
|
|
3001
|
+
var whitespaces$2 = whitespaces$3;
|
|
3002
|
+
|
|
3003
|
+
var replace$2 = uncurryThis$e(''.replace);
|
|
3004
|
+
var whitespace = '[' + whitespaces$2 + ']';
|
|
3005
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
3006
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
3007
|
+
|
|
3008
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
3009
|
+
var createMethod$3 = function (TYPE) {
|
|
3010
|
+
return function ($this) {
|
|
3011
|
+
var string = toString$8(requireObjectCoercible$5($this));
|
|
3012
|
+
if (TYPE & 1) string = replace$2(string, ltrim, '');
|
|
3013
|
+
if (TYPE & 2) string = replace$2(string, rtrim, '');
|
|
3014
|
+
return string;
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
|
|
3018
|
+
var stringTrim = {
|
|
3019
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
3020
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
3021
|
+
start: createMethod$3(1),
|
|
3022
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
3023
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
3024
|
+
end: createMethod$3(2),
|
|
3025
|
+
// `String.prototype.trim` method
|
|
3026
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
3027
|
+
trim: createMethod$3(3)
|
|
3028
|
+
};
|
|
3029
|
+
|
|
3030
|
+
var global$9 = global$w;
|
|
3031
|
+
var fails$a = fails$i;
|
|
3032
|
+
var uncurryThis$d = functionUncurryThis;
|
|
3033
|
+
var toString$7 = toString$9;
|
|
3034
|
+
var trim = stringTrim.trim;
|
|
3035
|
+
var whitespaces$1 = whitespaces$3;
|
|
3036
|
+
|
|
3037
|
+
var charAt$4 = uncurryThis$d(''.charAt);
|
|
3038
|
+
var n$ParseFloat = global$9.parseFloat;
|
|
3039
|
+
var Symbol$1 = global$9.Symbol;
|
|
3040
|
+
var ITERATOR = Symbol$1 && Symbol$1.iterator;
|
|
3041
|
+
var FORCED = 1 / n$ParseFloat(whitespaces$1 + '-0') !== -Infinity
|
|
3042
|
+
// MS Edge 18- broken with boxed symbols
|
|
3043
|
+
|| (ITERATOR && !fails$a(function () { n$ParseFloat(Object(ITERATOR)); }));
|
|
3044
|
+
|
|
3045
|
+
// `parseFloat` method
|
|
3046
|
+
// https://tc39.es/ecma262/#sec-parsefloat-string
|
|
3047
|
+
var numberParseFloat = FORCED ? function parseFloat(string) {
|
|
3048
|
+
var trimmedString = trim(toString$7(string));
|
|
3049
|
+
var result = n$ParseFloat(trimmedString);
|
|
3050
|
+
return result === 0 && charAt$4(trimmedString, 0) == '-' ? -0 : result;
|
|
3051
|
+
} : n$ParseFloat;
|
|
3052
|
+
|
|
3053
|
+
var $$8 = _export;
|
|
3054
|
+
var $parseFloat = numberParseFloat;
|
|
3055
|
+
|
|
3056
|
+
// `parseFloat` method
|
|
3057
|
+
// https://tc39.es/ecma262/#sec-parsefloat-string
|
|
3058
|
+
$$8({ global: true, forced: parseFloat != $parseFloat }, {
|
|
3059
|
+
parseFloat: $parseFloat
|
|
3060
|
+
});
|
|
3061
|
+
|
|
3062
|
+
var es_object_entries = {};
|
|
3063
|
+
|
|
2545
3064
|
var internalObjectKeys = objectKeysInternal;
|
|
2546
3065
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
2547
3066
|
|
|
@@ -2553,14 +3072,18 @@
|
|
|
2553
3072
|
};
|
|
2554
3073
|
|
|
2555
3074
|
var DESCRIPTORS$3 = descriptors;
|
|
3075
|
+
var uncurryThis$c = functionUncurryThis;
|
|
2556
3076
|
var objectKeys$2 = objectKeys$3;
|
|
2557
|
-
var toIndexedObject = toIndexedObject$
|
|
2558
|
-
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
3077
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
3078
|
+
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
3079
|
+
|
|
3080
|
+
var propertyIsEnumerable = uncurryThis$c($propertyIsEnumerable);
|
|
3081
|
+
var push$3 = uncurryThis$c([].push);
|
|
2559
3082
|
|
|
2560
3083
|
// `Object.{ entries, values }` methods implementation
|
|
2561
|
-
var createMethod$
|
|
3084
|
+
var createMethod$2 = function (TO_ENTRIES) {
|
|
2562
3085
|
return function (it) {
|
|
2563
|
-
var O = toIndexedObject(it);
|
|
3086
|
+
var O = toIndexedObject$1(it);
|
|
2564
3087
|
var keys = objectKeys$2(O);
|
|
2565
3088
|
var length = keys.length;
|
|
2566
3089
|
var i = 0;
|
|
@@ -2568,8 +3091,8 @@
|
|
|
2568
3091
|
var key;
|
|
2569
3092
|
while (length > i) {
|
|
2570
3093
|
key = keys[i++];
|
|
2571
|
-
if (!DESCRIPTORS$3 || propertyIsEnumerable
|
|
2572
|
-
|
|
3094
|
+
if (!DESCRIPTORS$3 || propertyIsEnumerable(O, key)) {
|
|
3095
|
+
push$3(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
2573
3096
|
}
|
|
2574
3097
|
}
|
|
2575
3098
|
return result;
|
|
@@ -2579,10 +3102,10 @@
|
|
|
2579
3102
|
var objectToArray = {
|
|
2580
3103
|
// `Object.entries` method
|
|
2581
3104
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
2582
|
-
entries: createMethod$
|
|
3105
|
+
entries: createMethod$2(true),
|
|
2583
3106
|
// `Object.values` method
|
|
2584
3107
|
// https://tc39.es/ecma262/#sec-object.values
|
|
2585
|
-
values: createMethod$
|
|
3108
|
+
values: createMethod$2(false)
|
|
2586
3109
|
};
|
|
2587
3110
|
|
|
2588
3111
|
var $$7 = _export;
|
|
@@ -2598,52 +3121,8 @@
|
|
|
2598
3121
|
|
|
2599
3122
|
var es_string_endsWith = {};
|
|
2600
3123
|
|
|
2601
|
-
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
2602
|
-
|
|
2603
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
2604
|
-
var test = {};
|
|
2605
|
-
|
|
2606
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
2607
|
-
|
|
2608
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
2609
|
-
|
|
2610
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2611
|
-
var isCallable$3 = isCallable$d;
|
|
2612
|
-
var classofRaw = classofRaw$1;
|
|
2613
|
-
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
2614
|
-
|
|
2615
|
-
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
2616
|
-
// ES3 wrong here
|
|
2617
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
2618
|
-
|
|
2619
|
-
// fallback for IE11 Script Access Denied error
|
|
2620
|
-
var tryGet = function (it, key) {
|
|
2621
|
-
try {
|
|
2622
|
-
return it[key];
|
|
2623
|
-
} catch (error) { /* empty */ }
|
|
2624
|
-
};
|
|
2625
|
-
|
|
2626
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
2627
|
-
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
2628
|
-
var O, tag, result;
|
|
2629
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2630
|
-
// @@toStringTag case
|
|
2631
|
-
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
2632
|
-
// builtinTag case
|
|
2633
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2634
|
-
// ES3 arguments fallback
|
|
2635
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
2636
|
-
};
|
|
2637
|
-
|
|
2638
|
-
var classof$4 = classof$5;
|
|
2639
|
-
|
|
2640
|
-
var toString$7 = function (argument) {
|
|
2641
|
-
if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
2642
|
-
return String(argument);
|
|
2643
|
-
};
|
|
2644
|
-
|
|
2645
3124
|
var isObject$1 = isObject$7;
|
|
2646
|
-
var classof$
|
|
3125
|
+
var classof$4 = classofRaw$1;
|
|
2647
3126
|
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
2648
3127
|
|
|
2649
3128
|
var MATCH$1 = wellKnownSymbol$6('match');
|
|
@@ -2652,14 +3131,17 @@
|
|
|
2652
3131
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
2653
3132
|
var isRegexp = function (it) {
|
|
2654
3133
|
var isRegExp;
|
|
2655
|
-
return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$
|
|
3134
|
+
return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp');
|
|
2656
3135
|
};
|
|
2657
3136
|
|
|
3137
|
+
var global$8 = global$w;
|
|
2658
3138
|
var isRegExp$1 = isRegexp;
|
|
2659
3139
|
|
|
3140
|
+
var TypeError$3 = global$8.TypeError;
|
|
3141
|
+
|
|
2660
3142
|
var notARegexp = function (it) {
|
|
2661
3143
|
if (isRegExp$1(it)) {
|
|
2662
|
-
throw TypeError("The method doesn't accept regular expressions");
|
|
3144
|
+
throw TypeError$3("The method doesn't accept regular expressions");
|
|
2663
3145
|
} return it;
|
|
2664
3146
|
};
|
|
2665
3147
|
|
|
@@ -2681,16 +3163,18 @@
|
|
|
2681
3163
|
|
|
2682
3164
|
'use strict';
|
|
2683
3165
|
var $$6 = _export;
|
|
3166
|
+
var uncurryThis$b = functionUncurryThis;
|
|
2684
3167
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
2685
3168
|
var toLength$3 = toLength$5;
|
|
2686
|
-
var toString$6 = toString$
|
|
3169
|
+
var toString$6 = toString$9;
|
|
2687
3170
|
var notARegExp = notARegexp;
|
|
2688
|
-
var requireObjectCoercible$
|
|
3171
|
+
var requireObjectCoercible$4 = requireObjectCoercible$8;
|
|
2689
3172
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2690
3173
|
var IS_PURE = isPure;
|
|
2691
3174
|
|
|
2692
3175
|
// eslint-disable-next-line es/no-string-prototype-endswith -- safe
|
|
2693
|
-
var $
|
|
3176
|
+
var un$EndsWith = uncurryThis$b(''.endsWith);
|
|
3177
|
+
var slice = uncurryThis$b(''.slice);
|
|
2694
3178
|
var min$2 = Math.min;
|
|
2695
3179
|
|
|
2696
3180
|
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
|
|
@@ -2704,15 +3188,15 @@
|
|
|
2704
3188
|
// https://tc39.es/ecma262/#sec-string.prototype.endswith
|
|
2705
3189
|
$$6({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
2706
3190
|
endsWith: function endsWith(searchString /* , endPosition = @length */) {
|
|
2707
|
-
var that = toString$6(requireObjectCoercible$
|
|
3191
|
+
var that = toString$6(requireObjectCoercible$4(this));
|
|
2708
3192
|
notARegExp(searchString);
|
|
2709
3193
|
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
|
|
2710
3194
|
var len = that.length;
|
|
2711
3195
|
var end = endPosition === undefined ? len : min$2(toLength$3(endPosition), len);
|
|
2712
3196
|
var search = toString$6(searchString);
|
|
2713
|
-
return $
|
|
2714
|
-
? $
|
|
2715
|
-
:
|
|
3197
|
+
return un$EndsWith
|
|
3198
|
+
? un$EndsWith(that, search, end)
|
|
3199
|
+
: slice(that, end - search.length, end) === search;
|
|
2716
3200
|
}
|
|
2717
3201
|
});
|
|
2718
3202
|
|
|
@@ -2735,42 +3219,57 @@
|
|
|
2735
3219
|
return result;
|
|
2736
3220
|
};
|
|
2737
3221
|
|
|
2738
|
-
var
|
|
2739
|
-
|
|
2740
|
-
var fails$9 = fails$f;
|
|
2741
|
-
var global$3 = global$e;
|
|
3222
|
+
var fails$9 = fails$i;
|
|
3223
|
+
var global$7 = global$w;
|
|
2742
3224
|
|
|
2743
3225
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2744
|
-
var $RegExp$2 = global$
|
|
3226
|
+
var $RegExp$2 = global$7.RegExp;
|
|
2745
3227
|
|
|
2746
|
-
var UNSUPPORTED_Y$2 =
|
|
3228
|
+
var UNSUPPORTED_Y$2 = fails$9(function () {
|
|
2747
3229
|
var re = $RegExp$2('a', 'y');
|
|
2748
3230
|
re.lastIndex = 2;
|
|
2749
3231
|
return re.exec('abcd') != null;
|
|
2750
3232
|
});
|
|
2751
3233
|
|
|
2752
|
-
|
|
3234
|
+
// UC Browser bug
|
|
3235
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
3236
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$9(function () {
|
|
3237
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
3238
|
+
});
|
|
3239
|
+
|
|
3240
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$9(function () {
|
|
2753
3241
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
2754
3242
|
var re = $RegExp$2('^r', 'gy');
|
|
2755
3243
|
re.lastIndex = 2;
|
|
2756
3244
|
return re.exec('str') != null;
|
|
2757
3245
|
});
|
|
2758
3246
|
|
|
3247
|
+
var regexpStickyHelpers = {
|
|
3248
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
3249
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
3250
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
3251
|
+
};
|
|
3252
|
+
|
|
3253
|
+
var objectDefineProperties = {};
|
|
3254
|
+
|
|
2759
3255
|
var DESCRIPTORS$2 = descriptors;
|
|
2760
|
-
var
|
|
3256
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
3257
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
2761
3258
|
var anObject$6 = anObject$a;
|
|
3259
|
+
var toIndexedObject = toIndexedObject$5;
|
|
2762
3260
|
var objectKeys$1 = objectKeys$3;
|
|
2763
3261
|
|
|
2764
3262
|
// `Object.defineProperties` method
|
|
2765
3263
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
2766
3264
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2767
|
-
var objectDefineProperties = DESCRIPTORS$2 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
3265
|
+
var f = objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2768
3266
|
anObject$6(O);
|
|
3267
|
+
var props = toIndexedObject(Properties);
|
|
2769
3268
|
var keys = objectKeys$1(Properties);
|
|
2770
3269
|
var length = keys.length;
|
|
2771
3270
|
var index = 0;
|
|
2772
3271
|
var key;
|
|
2773
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++],
|
|
3272
|
+
while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
|
|
2774
3273
|
return O;
|
|
2775
3274
|
};
|
|
2776
3275
|
|
|
@@ -2781,7 +3280,7 @@
|
|
|
2781
3280
|
/* global ActiveXObject -- old IE, WSH */
|
|
2782
3281
|
|
|
2783
3282
|
var anObject$5 = anObject$a;
|
|
2784
|
-
var
|
|
3283
|
+
var definePropertiesModule = objectDefineProperties;
|
|
2785
3284
|
var enumBugKeys = enumBugKeys$3;
|
|
2786
3285
|
var hiddenKeys = hiddenKeys$4;
|
|
2787
3286
|
var html = html$1;
|
|
@@ -2859,25 +3358,25 @@
|
|
|
2859
3358
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
2860
3359
|
result[IE_PROTO] = O;
|
|
2861
3360
|
} else result = NullProtoObject();
|
|
2862
|
-
return Properties === undefined ? result :
|
|
3361
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
2863
3362
|
};
|
|
2864
3363
|
|
|
2865
|
-
var fails$8 = fails$
|
|
2866
|
-
var global$
|
|
3364
|
+
var fails$8 = fails$i;
|
|
3365
|
+
var global$6 = global$w;
|
|
2867
3366
|
|
|
2868
3367
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
2869
|
-
var $RegExp$1 = global$
|
|
3368
|
+
var $RegExp$1 = global$6.RegExp;
|
|
2870
3369
|
|
|
2871
3370
|
var regexpUnsupportedDotAll = fails$8(function () {
|
|
2872
3371
|
var re = $RegExp$1('.', 's');
|
|
2873
3372
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
2874
3373
|
});
|
|
2875
3374
|
|
|
2876
|
-
var fails$7 = fails$
|
|
2877
|
-
var global$
|
|
3375
|
+
var fails$7 = fails$i;
|
|
3376
|
+
var global$5 = global$w;
|
|
2878
3377
|
|
|
2879
3378
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
2880
|
-
var $RegExp = global$
|
|
3379
|
+
var $RegExp = global$5.RegExp;
|
|
2881
3380
|
|
|
2882
3381
|
var regexpUnsupportedNcg = fails$7(function () {
|
|
2883
3382
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -2888,7 +3387,9 @@
|
|
|
2888
3387
|
'use strict';
|
|
2889
3388
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
2890
3389
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
2891
|
-
var
|
|
3390
|
+
var call$6 = functionCall;
|
|
3391
|
+
var uncurryThis$a = functionUncurryThis;
|
|
3392
|
+
var toString$5 = toString$9;
|
|
2892
3393
|
var regexpFlags = regexpFlags$1;
|
|
2893
3394
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
2894
3395
|
var shared = shared$5.exports;
|
|
@@ -2897,20 +3398,23 @@
|
|
|
2897
3398
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
2898
3399
|
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
2899
3400
|
|
|
2900
|
-
var nativeExec = RegExp.prototype.exec;
|
|
2901
3401
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
2902
|
-
|
|
3402
|
+
var nativeExec = RegExp.prototype.exec;
|
|
2903
3403
|
var patchedExec = nativeExec;
|
|
3404
|
+
var charAt$3 = uncurryThis$a(''.charAt);
|
|
3405
|
+
var indexOf = uncurryThis$a(''.indexOf);
|
|
3406
|
+
var replace$1 = uncurryThis$a(''.replace);
|
|
3407
|
+
var stringSlice$4 = uncurryThis$a(''.slice);
|
|
2904
3408
|
|
|
2905
3409
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
2906
3410
|
var re1 = /a/;
|
|
2907
3411
|
var re2 = /b*/g;
|
|
2908
|
-
|
|
2909
|
-
|
|
3412
|
+
call$6(nativeExec, re1, 'a');
|
|
3413
|
+
call$6(nativeExec, re2, 'a');
|
|
2910
3414
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
2911
3415
|
})();
|
|
2912
3416
|
|
|
2913
|
-
var UNSUPPORTED_Y$1 = stickyHelpers$1.
|
|
3417
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
2914
3418
|
|
|
2915
3419
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
2916
3420
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
@@ -2918,7 +3422,6 @@
|
|
|
2918
3422
|
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
2919
3423
|
|
|
2920
3424
|
if (PATCH) {
|
|
2921
|
-
// eslint-disable-next-line max-statements -- TODO
|
|
2922
3425
|
patchedExec = function exec(string) {
|
|
2923
3426
|
var re = this;
|
|
2924
3427
|
var state = getInternalState(re);
|
|
@@ -2928,27 +3431,27 @@
|
|
|
2928
3431
|
|
|
2929
3432
|
if (raw) {
|
|
2930
3433
|
raw.lastIndex = re.lastIndex;
|
|
2931
|
-
result =
|
|
3434
|
+
result = call$6(patchedExec, raw, str);
|
|
2932
3435
|
re.lastIndex = raw.lastIndex;
|
|
2933
3436
|
return result;
|
|
2934
3437
|
}
|
|
2935
3438
|
|
|
2936
3439
|
var groups = state.groups;
|
|
2937
3440
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
2938
|
-
var flags =
|
|
3441
|
+
var flags = call$6(regexpFlags, re);
|
|
2939
3442
|
var source = re.source;
|
|
2940
3443
|
var charsAdded = 0;
|
|
2941
3444
|
var strCopy = str;
|
|
2942
3445
|
|
|
2943
3446
|
if (sticky) {
|
|
2944
|
-
flags =
|
|
2945
|
-
if (
|
|
3447
|
+
flags = replace$1(flags, 'y', '');
|
|
3448
|
+
if (indexOf(flags, 'g') === -1) {
|
|
2946
3449
|
flags += 'g';
|
|
2947
3450
|
}
|
|
2948
3451
|
|
|
2949
|
-
strCopy = str
|
|
3452
|
+
strCopy = stringSlice$4(str, re.lastIndex);
|
|
2950
3453
|
// Support anchored sticky behavior.
|
|
2951
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline &&
|
|
3454
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
2952
3455
|
source = '(?: ' + source + ')';
|
|
2953
3456
|
strCopy = ' ' + strCopy;
|
|
2954
3457
|
charsAdded++;
|
|
@@ -2963,12 +3466,12 @@
|
|
|
2963
3466
|
}
|
|
2964
3467
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
2965
3468
|
|
|
2966
|
-
match =
|
|
3469
|
+
match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
|
|
2967
3470
|
|
|
2968
3471
|
if (sticky) {
|
|
2969
3472
|
if (match) {
|
|
2970
|
-
match.input = match.input
|
|
2971
|
-
match[0] = match[0]
|
|
3473
|
+
match.input = stringSlice$4(match.input, charsAdded);
|
|
3474
|
+
match[0] = stringSlice$4(match[0], charsAdded);
|
|
2972
3475
|
match.index = re.lastIndex;
|
|
2973
3476
|
re.lastIndex += match[0].length;
|
|
2974
3477
|
} else re.lastIndex = 0;
|
|
@@ -2978,7 +3481,7 @@
|
|
|
2978
3481
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
2979
3482
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
2980
3483
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
2981
|
-
|
|
3484
|
+
call$6(nativeReplace, match[0], reCopy, function () {
|
|
2982
3485
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
2983
3486
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
2984
3487
|
}
|
|
@@ -3001,22 +3504,34 @@
|
|
|
3001
3504
|
|
|
3002
3505
|
'use strict';
|
|
3003
3506
|
var $$5 = _export;
|
|
3004
|
-
var exec$
|
|
3507
|
+
var exec$2 = regexpExec$3;
|
|
3005
3508
|
|
|
3006
3509
|
// `RegExp.prototype.exec` method
|
|
3007
3510
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3008
|
-
$$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec$
|
|
3009
|
-
exec: exec$
|
|
3511
|
+
$$5({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
|
|
3512
|
+
exec: exec$2
|
|
3010
3513
|
});
|
|
3011
3514
|
|
|
3012
3515
|
var es_string_split = {};
|
|
3013
3516
|
|
|
3517
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
3518
|
+
|
|
3519
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
3520
|
+
var apply$2 = FunctionPrototype$1.apply;
|
|
3521
|
+
var call$5 = FunctionPrototype$1.call;
|
|
3522
|
+
|
|
3523
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
3524
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$5.bind(apply$2) : function () {
|
|
3525
|
+
return call$5.apply(apply$2, arguments);
|
|
3526
|
+
});
|
|
3527
|
+
|
|
3014
3528
|
'use strict';
|
|
3015
3529
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3016
3530
|
|
|
3017
|
-
var
|
|
3531
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
3532
|
+
var redefine$1 = redefine$4.exports;
|
|
3018
3533
|
var regexpExec$2 = regexpExec$3;
|
|
3019
|
-
var fails$6 = fails$
|
|
3534
|
+
var fails$6 = fails$i;
|
|
3020
3535
|
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
3021
3536
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
3022
3537
|
|
|
@@ -3062,60 +3577,72 @@
|
|
|
3062
3577
|
!DELEGATES_TO_EXEC ||
|
|
3063
3578
|
FORCED
|
|
3064
3579
|
) {
|
|
3065
|
-
var
|
|
3580
|
+
var uncurriedNativeRegExpMethod = uncurryThis$9(/./[SYMBOL]);
|
|
3066
3581
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3582
|
+
var uncurriedNativeMethod = uncurryThis$9(nativeMethod);
|
|
3067
3583
|
var $exec = regexp.exec;
|
|
3068
3584
|
if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
|
|
3069
3585
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
3070
3586
|
// The native String method already delegates to @@method (this
|
|
3071
3587
|
// polyfilled function), leasing to infinite recursion.
|
|
3072
3588
|
// We avoid it by directly calling the native @@method method.
|
|
3073
|
-
return { done: true, value:
|
|
3589
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
3074
3590
|
}
|
|
3075
|
-
return { done: true, value:
|
|
3591
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
3076
3592
|
}
|
|
3077
3593
|
return { done: false };
|
|
3078
3594
|
});
|
|
3079
3595
|
|
|
3080
|
-
redefine(String.prototype, KEY, methods[0]);
|
|
3081
|
-
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
|
3596
|
+
redefine$1(String.prototype, KEY, methods[0]);
|
|
3597
|
+
redefine$1(RegExpPrototype, SYMBOL, methods[1]);
|
|
3082
3598
|
}
|
|
3083
3599
|
|
|
3084
3600
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
3085
3601
|
};
|
|
3086
3602
|
|
|
3087
|
-
var
|
|
3603
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
3604
|
+
var fails$5 = fails$i;
|
|
3088
3605
|
var isCallable$2 = isCallable$d;
|
|
3089
|
-
var classof$
|
|
3606
|
+
var classof$3 = classof$6;
|
|
3090
3607
|
var getBuiltIn = getBuiltIn$5;
|
|
3091
3608
|
var inspectSource = inspectSource$3;
|
|
3092
3609
|
|
|
3610
|
+
var noop = function () { /* empty */ };
|
|
3093
3611
|
var empty = [];
|
|
3094
3612
|
var construct = getBuiltIn('Reflect', 'construct');
|
|
3095
3613
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
3096
|
-
var exec = constructorRegExp.exec;
|
|
3097
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(
|
|
3614
|
+
var exec$1 = uncurryThis$8(constructorRegExp.exec);
|
|
3615
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
3098
3616
|
|
|
3099
|
-
var isConstructorModern = function (argument) {
|
|
3617
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
3100
3618
|
if (!isCallable$2(argument)) return false;
|
|
3101
3619
|
try {
|
|
3102
|
-
construct(
|
|
3620
|
+
construct(noop, empty, argument);
|
|
3103
3621
|
return true;
|
|
3104
3622
|
} catch (error) {
|
|
3105
3623
|
return false;
|
|
3106
3624
|
}
|
|
3107
3625
|
};
|
|
3108
3626
|
|
|
3109
|
-
var isConstructorLegacy = function (argument) {
|
|
3627
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
|
3110
3628
|
if (!isCallable$2(argument)) return false;
|
|
3111
|
-
switch (classof$
|
|
3629
|
+
switch (classof$3(argument)) {
|
|
3112
3630
|
case 'AsyncFunction':
|
|
3113
3631
|
case 'GeneratorFunction':
|
|
3114
3632
|
case 'AsyncGeneratorFunction': return false;
|
|
3633
|
+
}
|
|
3634
|
+
try {
|
|
3115
3635
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
3116
|
-
|
|
3636
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
|
3637
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
|
3638
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
|
3639
|
+
} catch (error) {
|
|
3640
|
+
return true;
|
|
3641
|
+
}
|
|
3117
3642
|
};
|
|
3118
3643
|
|
|
3644
|
+
isConstructorLegacy.sham = true;
|
|
3645
|
+
|
|
3119
3646
|
// `IsConstructor` abstract operation
|
|
3120
3647
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
3121
3648
|
var isConstructor$2 = !construct || fails$5(function () {
|
|
@@ -3126,13 +3653,16 @@
|
|
|
3126
3653
|
|| called;
|
|
3127
3654
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
3128
3655
|
|
|
3656
|
+
var global$4 = global$w;
|
|
3129
3657
|
var isConstructor$1 = isConstructor$2;
|
|
3130
3658
|
var tryToString = tryToString$2;
|
|
3131
3659
|
|
|
3660
|
+
var TypeError$2 = global$4.TypeError;
|
|
3661
|
+
|
|
3132
3662
|
// `Assert: IsConstructor(argument) is true`
|
|
3133
3663
|
var aConstructor$1 = function (argument) {
|
|
3134
3664
|
if (isConstructor$1(argument)) return argument;
|
|
3135
|
-
throw TypeError(tryToString(argument) + ' is not a constructor');
|
|
3665
|
+
throw TypeError$2(tryToString(argument) + ' is not a constructor');
|
|
3136
3666
|
};
|
|
3137
3667
|
|
|
3138
3668
|
var anObject$4 = anObject$a;
|
|
@@ -3149,80 +3679,129 @@
|
|
|
3149
3679
|
return C === undefined || (S = anObject$4(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
|
|
3150
3680
|
};
|
|
3151
3681
|
|
|
3682
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
3152
3683
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
3153
|
-
var toString$4 = toString$
|
|
3154
|
-
var requireObjectCoercible$
|
|
3684
|
+
var toString$4 = toString$9;
|
|
3685
|
+
var requireObjectCoercible$3 = requireObjectCoercible$8;
|
|
3155
3686
|
|
|
3156
|
-
var
|
|
3687
|
+
var charAt$2 = uncurryThis$7(''.charAt);
|
|
3688
|
+
var charCodeAt = uncurryThis$7(''.charCodeAt);
|
|
3689
|
+
var stringSlice$3 = uncurryThis$7(''.slice);
|
|
3690
|
+
|
|
3691
|
+
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
3157
3692
|
return function ($this, pos) {
|
|
3158
|
-
var S = toString$4(requireObjectCoercible$
|
|
3693
|
+
var S = toString$4(requireObjectCoercible$3($this));
|
|
3159
3694
|
var position = toIntegerOrInfinity$1(pos);
|
|
3160
3695
|
var size = S.length;
|
|
3161
3696
|
var first, second;
|
|
3162
3697
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3163
|
-
first =
|
|
3698
|
+
first = charCodeAt(S, position);
|
|
3164
3699
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3165
|
-
|| (second =
|
|
3166
|
-
? CONVERT_TO_STRING
|
|
3167
|
-
|
|
3700
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3701
|
+
? CONVERT_TO_STRING
|
|
3702
|
+
? charAt$2(S, position)
|
|
3703
|
+
: first
|
|
3704
|
+
: CONVERT_TO_STRING
|
|
3705
|
+
? stringSlice$3(S, position, position + 2)
|
|
3706
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3168
3707
|
};
|
|
3169
3708
|
};
|
|
3170
3709
|
|
|
3171
3710
|
var stringMultibyte = {
|
|
3172
3711
|
// `String.prototype.codePointAt` method
|
|
3173
3712
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
3174
|
-
codeAt: createMethod$
|
|
3713
|
+
codeAt: createMethod$1(false),
|
|
3175
3714
|
// `String.prototype.at` method
|
|
3176
3715
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
3177
|
-
charAt: createMethod$
|
|
3716
|
+
charAt: createMethod$1(true)
|
|
3178
3717
|
};
|
|
3179
3718
|
|
|
3180
3719
|
'use strict';
|
|
3181
|
-
var charAt = stringMultibyte.charAt;
|
|
3720
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
3182
3721
|
|
|
3183
3722
|
// `AdvanceStringIndex` abstract operation
|
|
3184
3723
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3185
3724
|
var advanceStringIndex$3 = function (S, index, unicode) {
|
|
3186
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
|
3725
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
3726
|
+
};
|
|
3727
|
+
|
|
3728
|
+
'use strict';
|
|
3729
|
+
var toPropertyKey = toPropertyKey$3;
|
|
3730
|
+
var definePropertyModule = objectDefineProperty;
|
|
3731
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
3732
|
+
|
|
3733
|
+
var createProperty$1 = function (object, key, value) {
|
|
3734
|
+
var propertyKey = toPropertyKey(key);
|
|
3735
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
3736
|
+
else object[propertyKey] = value;
|
|
3187
3737
|
};
|
|
3188
3738
|
|
|
3739
|
+
var global$3 = global$w;
|
|
3740
|
+
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
3741
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
3742
|
+
var createProperty = createProperty$1;
|
|
3743
|
+
|
|
3744
|
+
var Array$2 = global$3.Array;
|
|
3745
|
+
var max$1 = Math.max;
|
|
3746
|
+
|
|
3747
|
+
var arraySliceSimple = function (O, start, end) {
|
|
3748
|
+
var length = lengthOfArrayLike$1(O);
|
|
3749
|
+
var k = toAbsoluteIndex(start, length);
|
|
3750
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
3751
|
+
var result = Array$2(max$1(fin - k, 0));
|
|
3752
|
+
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
3753
|
+
result.length = n;
|
|
3754
|
+
return result;
|
|
3755
|
+
};
|
|
3756
|
+
|
|
3757
|
+
var global$2 = global$w;
|
|
3758
|
+
var call$4 = functionCall;
|
|
3189
3759
|
var anObject$3 = anObject$a;
|
|
3190
3760
|
var isCallable$1 = isCallable$d;
|
|
3191
|
-
var classof$
|
|
3761
|
+
var classof$2 = classofRaw$1;
|
|
3192
3762
|
var regexpExec$1 = regexpExec$3;
|
|
3193
3763
|
|
|
3764
|
+
var TypeError$1 = global$2.TypeError;
|
|
3765
|
+
|
|
3194
3766
|
// `RegExpExec` abstract operation
|
|
3195
3767
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3196
3768
|
var regexpExecAbstract = function (R, S) {
|
|
3197
3769
|
var exec = R.exec;
|
|
3198
3770
|
if (isCallable$1(exec)) {
|
|
3199
|
-
var result =
|
|
3771
|
+
var result = call$4(exec, R, S);
|
|
3200
3772
|
if (result !== null) anObject$3(result);
|
|
3201
3773
|
return result;
|
|
3202
3774
|
}
|
|
3203
|
-
if (classof$
|
|
3204
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
3775
|
+
if (classof$2(R) === 'RegExp') return call$4(regexpExec$1, R, S);
|
|
3776
|
+
throw TypeError$1('RegExp#exec called on incompatible receiver');
|
|
3205
3777
|
};
|
|
3206
3778
|
|
|
3207
3779
|
'use strict';
|
|
3780
|
+
var apply$1 = functionApply;
|
|
3781
|
+
var call$3 = functionCall;
|
|
3782
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
3208
3783
|
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
|
3209
3784
|
var isRegExp = isRegexp;
|
|
3210
3785
|
var anObject$2 = anObject$a;
|
|
3211
|
-
var requireObjectCoercible$
|
|
3786
|
+
var requireObjectCoercible$2 = requireObjectCoercible$8;
|
|
3212
3787
|
var speciesConstructor = speciesConstructor$1;
|
|
3213
3788
|
var advanceStringIndex$2 = advanceStringIndex$3;
|
|
3214
3789
|
var toLength$2 = toLength$5;
|
|
3215
|
-
var toString$3 = toString$
|
|
3790
|
+
var toString$3 = toString$9;
|
|
3216
3791
|
var getMethod$2 = getMethod$4;
|
|
3792
|
+
var arraySlice = arraySliceSimple;
|
|
3217
3793
|
var callRegExpExec = regexpExecAbstract;
|
|
3218
3794
|
var regexpExec = regexpExec$3;
|
|
3219
3795
|
var stickyHelpers = regexpStickyHelpers;
|
|
3220
|
-
var fails$4 = fails$
|
|
3796
|
+
var fails$4 = fails$i;
|
|
3221
3797
|
|
|
3222
3798
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
3223
|
-
var arrayPush = [].push;
|
|
3224
|
-
var min$1 = Math.min;
|
|
3225
3799
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
3800
|
+
var min$1 = Math.min;
|
|
3801
|
+
var $push = [].push;
|
|
3802
|
+
var exec = uncurryThis$6(/./.exec);
|
|
3803
|
+
var push$2 = uncurryThis$6($push);
|
|
3804
|
+
var stringSlice$2 = uncurryThis$6(''.slice);
|
|
3226
3805
|
|
|
3227
3806
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
3228
3807
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
@@ -3250,13 +3829,13 @@
|
|
|
3250
3829
|
) {
|
|
3251
3830
|
// based on es5-shim implementation, need to rework it
|
|
3252
3831
|
internalSplit = function (separator, limit) {
|
|
3253
|
-
var string = toString$3(requireObjectCoercible$
|
|
3832
|
+
var string = toString$3(requireObjectCoercible$2(this));
|
|
3254
3833
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3255
3834
|
if (lim === 0) return [];
|
|
3256
3835
|
if (separator === undefined) return [string];
|
|
3257
3836
|
// If `separator` is not a regex, use native split
|
|
3258
3837
|
if (!isRegExp(separator)) {
|
|
3259
|
-
return
|
|
3838
|
+
return call$3(nativeSplit, string, separator, lim);
|
|
3260
3839
|
}
|
|
3261
3840
|
var output = [];
|
|
3262
3841
|
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
@@ -3267,11 +3846,11 @@
|
|
|
3267
3846
|
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
3268
3847
|
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
3269
3848
|
var match, lastIndex, lastLength;
|
|
3270
|
-
while (match =
|
|
3849
|
+
while (match = call$3(regexpExec, separatorCopy, string)) {
|
|
3271
3850
|
lastIndex = separatorCopy.lastIndex;
|
|
3272
3851
|
if (lastIndex > lastLastIndex) {
|
|
3273
|
-
|
|
3274
|
-
if (match.length > 1 && match.index < string.length)
|
|
3852
|
+
push$2(output, stringSlice$2(string, lastLastIndex, match.index));
|
|
3853
|
+
if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice(match, 1));
|
|
3275
3854
|
lastLength = match[0].length;
|
|
3276
3855
|
lastLastIndex = lastIndex;
|
|
3277
3856
|
if (output.length >= lim) break;
|
|
@@ -3279,14 +3858,14 @@
|
|
|
3279
3858
|
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
3280
3859
|
}
|
|
3281
3860
|
if (lastLastIndex === string.length) {
|
|
3282
|
-
if (lastLength || !separatorCopy
|
|
3283
|
-
} else
|
|
3284
|
-
return output.length > lim ? output
|
|
3861
|
+
if (lastLength || !exec(separatorCopy, '')) push$2(output, '');
|
|
3862
|
+
} else push$2(output, stringSlice$2(string, lastLastIndex));
|
|
3863
|
+
return output.length > lim ? arraySlice(output, 0, lim) : output;
|
|
3285
3864
|
};
|
|
3286
3865
|
// Chakra, V8
|
|
3287
3866
|
} else if ('0'.split(undefined, 0).length) {
|
|
3288
3867
|
internalSplit = function (separator, limit) {
|
|
3289
|
-
return separator === undefined && limit === 0 ? [] :
|
|
3868
|
+
return separator === undefined && limit === 0 ? [] : call$3(nativeSplit, this, separator, limit);
|
|
3290
3869
|
};
|
|
3291
3870
|
} else internalSplit = nativeSplit;
|
|
3292
3871
|
|
|
@@ -3294,11 +3873,11 @@
|
|
|
3294
3873
|
// `String.prototype.split` method
|
|
3295
3874
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
3296
3875
|
function split(separator, limit) {
|
|
3297
|
-
var O = requireObjectCoercible$
|
|
3876
|
+
var O = requireObjectCoercible$2(this);
|
|
3298
3877
|
var splitter = separator == undefined ? undefined : getMethod$2(separator, SPLIT);
|
|
3299
3878
|
return splitter
|
|
3300
|
-
?
|
|
3301
|
-
:
|
|
3879
|
+
? call$3(splitter, separator, O, limit)
|
|
3880
|
+
: call$3(internalSplit, toString$3(O), separator, limit);
|
|
3302
3881
|
},
|
|
3303
3882
|
// `RegExp.prototype[@@split]` method
|
|
3304
3883
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -3331,7 +3910,7 @@
|
|
|
3331
3910
|
var A = [];
|
|
3332
3911
|
while (q < S.length) {
|
|
3333
3912
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
3334
|
-
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? S
|
|
3913
|
+
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
|
|
3335
3914
|
var e;
|
|
3336
3915
|
if (
|
|
3337
3916
|
z === null ||
|
|
@@ -3339,16 +3918,16 @@
|
|
|
3339
3918
|
) {
|
|
3340
3919
|
q = advanceStringIndex$2(S, q, unicodeMatching);
|
|
3341
3920
|
} else {
|
|
3342
|
-
|
|
3921
|
+
push$2(A, stringSlice$2(S, p, q));
|
|
3343
3922
|
if (A.length === lim) return A;
|
|
3344
3923
|
for (var i = 1; i <= z.length - 1; i++) {
|
|
3345
|
-
|
|
3924
|
+
push$2(A, z[i]);
|
|
3346
3925
|
if (A.length === lim) return A;
|
|
3347
3926
|
}
|
|
3348
3927
|
q = p = e;
|
|
3349
3928
|
}
|
|
3350
3929
|
}
|
|
3351
|
-
|
|
3930
|
+
push$2(A, stringSlice$2(S, p));
|
|
3352
3931
|
return A;
|
|
3353
3932
|
}
|
|
3354
3933
|
];
|
|
@@ -3356,46 +3935,37 @@
|
|
|
3356
3935
|
|
|
3357
3936
|
var es_array_map = {};
|
|
3358
3937
|
|
|
3938
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
3359
3939
|
var aCallable = aCallable$2;
|
|
3940
|
+
var NATIVE_BIND = functionBindNative;
|
|
3941
|
+
|
|
3942
|
+
var bind$1 = uncurryThis$5(uncurryThis$5.bind);
|
|
3360
3943
|
|
|
3361
3944
|
// optional / simple context binding
|
|
3362
|
-
var functionBindContext = function (fn, that
|
|
3945
|
+
var functionBindContext = function (fn, that) {
|
|
3363
3946
|
aCallable(fn);
|
|
3364
|
-
|
|
3365
|
-
switch (length) {
|
|
3366
|
-
case 0: return function () {
|
|
3367
|
-
return fn.call(that);
|
|
3368
|
-
};
|
|
3369
|
-
case 1: return function (a) {
|
|
3370
|
-
return fn.call(that, a);
|
|
3371
|
-
};
|
|
3372
|
-
case 2: return function (a, b) {
|
|
3373
|
-
return fn.call(that, a, b);
|
|
3374
|
-
};
|
|
3375
|
-
case 3: return function (a, b, c) {
|
|
3376
|
-
return fn.call(that, a, b, c);
|
|
3377
|
-
};
|
|
3378
|
-
}
|
|
3379
|
-
return function (/* ...args */) {
|
|
3947
|
+
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
3380
3948
|
return fn.apply(that, arguments);
|
|
3381
3949
|
};
|
|
3382
3950
|
};
|
|
3383
3951
|
|
|
3384
|
-
var classof = classofRaw$1;
|
|
3952
|
+
var classof$1 = classofRaw$1;
|
|
3385
3953
|
|
|
3386
3954
|
// `IsArray` abstract operation
|
|
3387
3955
|
// https://tc39.es/ecma262/#sec-isarray
|
|
3388
3956
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
3389
3957
|
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
3390
|
-
return classof(argument) == 'Array';
|
|
3958
|
+
return classof$1(argument) == 'Array';
|
|
3391
3959
|
};
|
|
3392
3960
|
|
|
3961
|
+
var global$1 = global$w;
|
|
3393
3962
|
var isArray = isArray$1;
|
|
3394
3963
|
var isConstructor = isConstructor$2;
|
|
3395
3964
|
var isObject = isObject$7;
|
|
3396
3965
|
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
3397
3966
|
|
|
3398
3967
|
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
3968
|
+
var Array$1 = global$1.Array;
|
|
3399
3969
|
|
|
3400
3970
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
3401
3971
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -3404,12 +3974,12 @@
|
|
|
3404
3974
|
if (isArray(originalArray)) {
|
|
3405
3975
|
C = originalArray.constructor;
|
|
3406
3976
|
// cross-realm fallback
|
|
3407
|
-
if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;
|
|
3977
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
|
3408
3978
|
else if (isObject(C)) {
|
|
3409
3979
|
C = C[SPECIES$1];
|
|
3410
3980
|
if (C === null) C = undefined;
|
|
3411
3981
|
}
|
|
3412
|
-
} return C === undefined ? Array : C;
|
|
3982
|
+
} return C === undefined ? Array$1 : C;
|
|
3413
3983
|
};
|
|
3414
3984
|
|
|
3415
3985
|
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
@@ -3421,15 +3991,16 @@
|
|
|
3421
3991
|
};
|
|
3422
3992
|
|
|
3423
3993
|
var bind = functionBindContext;
|
|
3994
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
3424
3995
|
var IndexedObject$1 = indexedObject;
|
|
3425
3996
|
var toObject$2 = toObject$4;
|
|
3426
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
3997
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
3427
3998
|
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
3428
3999
|
|
|
3429
|
-
var push = [].push;
|
|
4000
|
+
var push$1 = uncurryThis$4([].push);
|
|
3430
4001
|
|
|
3431
4002
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
3432
|
-
var createMethod
|
|
4003
|
+
var createMethod = function (TYPE) {
|
|
3433
4004
|
var IS_MAP = TYPE == 1;
|
|
3434
4005
|
var IS_FILTER = TYPE == 2;
|
|
3435
4006
|
var IS_SOME = TYPE == 3;
|
|
@@ -3440,7 +4011,7 @@
|
|
|
3440
4011
|
return function ($this, callbackfn, that, specificCreate) {
|
|
3441
4012
|
var O = toObject$2($this);
|
|
3442
4013
|
var self = IndexedObject$1(O);
|
|
3443
|
-
var boundFunction = bind(callbackfn, that
|
|
4014
|
+
var boundFunction = bind(callbackfn, that);
|
|
3444
4015
|
var length = lengthOfArrayLike(self);
|
|
3445
4016
|
var index = 0;
|
|
3446
4017
|
var create = specificCreate || arraySpeciesCreate;
|
|
@@ -3455,10 +4026,10 @@
|
|
|
3455
4026
|
case 3: return true; // some
|
|
3456
4027
|
case 5: return value; // find
|
|
3457
4028
|
case 6: return index; // findIndex
|
|
3458
|
-
case 2: push
|
|
4029
|
+
case 2: push$1(target, value); // filter
|
|
3459
4030
|
} else switch (TYPE) {
|
|
3460
4031
|
case 4: return false; // every
|
|
3461
|
-
case 7: push
|
|
4032
|
+
case 7: push$1(target, value); // filterReject
|
|
3462
4033
|
}
|
|
3463
4034
|
}
|
|
3464
4035
|
}
|
|
@@ -3469,31 +4040,31 @@
|
|
|
3469
4040
|
var arrayIteration = {
|
|
3470
4041
|
// `Array.prototype.forEach` method
|
|
3471
4042
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
3472
|
-
forEach: createMethod
|
|
4043
|
+
forEach: createMethod(0),
|
|
3473
4044
|
// `Array.prototype.map` method
|
|
3474
4045
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
3475
|
-
map: createMethod
|
|
4046
|
+
map: createMethod(1),
|
|
3476
4047
|
// `Array.prototype.filter` method
|
|
3477
4048
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
3478
|
-
filter: createMethod
|
|
4049
|
+
filter: createMethod(2),
|
|
3479
4050
|
// `Array.prototype.some` method
|
|
3480
4051
|
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
3481
|
-
some: createMethod
|
|
4052
|
+
some: createMethod(3),
|
|
3482
4053
|
// `Array.prototype.every` method
|
|
3483
4054
|
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
3484
|
-
every: createMethod
|
|
4055
|
+
every: createMethod(4),
|
|
3485
4056
|
// `Array.prototype.find` method
|
|
3486
4057
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
3487
|
-
find: createMethod
|
|
4058
|
+
find: createMethod(5),
|
|
3488
4059
|
// `Array.prototype.findIndex` method
|
|
3489
4060
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
3490
|
-
findIndex: createMethod
|
|
4061
|
+
findIndex: createMethod(6),
|
|
3491
4062
|
// `Array.prototype.filterReject` method
|
|
3492
4063
|
// https://github.com/tc39/proposal-array-filtering
|
|
3493
|
-
filterReject: createMethod
|
|
4064
|
+
filterReject: createMethod(7)
|
|
3494
4065
|
};
|
|
3495
4066
|
|
|
3496
|
-
var fails$3 = fails$
|
|
4067
|
+
var fails$3 = fails$i;
|
|
3497
4068
|
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
3498
4069
|
var V8_VERSION = engineV8Version;
|
|
3499
4070
|
|
|
@@ -3547,17 +4118,40 @@
|
|
|
3547
4118
|
}
|
|
3548
4119
|
});
|
|
3549
4120
|
|
|
4121
|
+
var es_object_toString = {};
|
|
4122
|
+
|
|
4123
|
+
'use strict';
|
|
4124
|
+
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
4125
|
+
var classof = classof$6;
|
|
4126
|
+
|
|
4127
|
+
// `Object.prototype.toString` method implementation
|
|
4128
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
4129
|
+
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
4130
|
+
return '[object ' + classof(this) + ']';
|
|
4131
|
+
};
|
|
4132
|
+
|
|
4133
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
4134
|
+
var redefine = redefine$4.exports;
|
|
4135
|
+
var toString$2 = objectToString;
|
|
4136
|
+
|
|
4137
|
+
// `Object.prototype.toString` method
|
|
4138
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
4139
|
+
if (!TO_STRING_TAG_SUPPORT) {
|
|
4140
|
+
redefine(Object.prototype, 'toString', toString$2, { unsafe: true });
|
|
4141
|
+
}
|
|
4142
|
+
|
|
3550
4143
|
var es_string_match = {};
|
|
3551
4144
|
|
|
3552
4145
|
'use strict';
|
|
4146
|
+
var call$2 = functionCall;
|
|
3553
4147
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
3554
4148
|
var anObject$1 = anObject$a;
|
|
3555
4149
|
var toLength$1 = toLength$5;
|
|
3556
|
-
var toString$
|
|
3557
|
-
var requireObjectCoercible$
|
|
4150
|
+
var toString$1 = toString$9;
|
|
4151
|
+
var requireObjectCoercible$1 = requireObjectCoercible$8;
|
|
3558
4152
|
var getMethod$1 = getMethod$4;
|
|
3559
4153
|
var advanceStringIndex$1 = advanceStringIndex$3;
|
|
3560
|
-
var regExpExec$
|
|
4154
|
+
var regExpExec$2 = regexpExecAbstract;
|
|
3561
4155
|
|
|
3562
4156
|
// @@match logic
|
|
3563
4157
|
fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
|
|
@@ -3565,28 +4159,28 @@
|
|
|
3565
4159
|
// `String.prototype.match` method
|
|
3566
4160
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
3567
4161
|
function match(regexp) {
|
|
3568
|
-
var O = requireObjectCoercible$
|
|
4162
|
+
var O = requireObjectCoercible$1(this);
|
|
3569
4163
|
var matcher = regexp == undefined ? undefined : getMethod$1(regexp, MATCH);
|
|
3570
|
-
return matcher ?
|
|
4164
|
+
return matcher ? call$2(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$1(O));
|
|
3571
4165
|
},
|
|
3572
4166
|
// `RegExp.prototype[@@match]` method
|
|
3573
4167
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
3574
4168
|
function (string) {
|
|
3575
4169
|
var rx = anObject$1(this);
|
|
3576
|
-
var S = toString$
|
|
4170
|
+
var S = toString$1(string);
|
|
3577
4171
|
var res = maybeCallNative(nativeMatch, rx, S);
|
|
3578
4172
|
|
|
3579
4173
|
if (res.done) return res.value;
|
|
3580
4174
|
|
|
3581
|
-
if (!rx.global) return regExpExec$
|
|
4175
|
+
if (!rx.global) return regExpExec$2(rx, S);
|
|
3582
4176
|
|
|
3583
4177
|
var fullUnicode = rx.unicode;
|
|
3584
4178
|
rx.lastIndex = 0;
|
|
3585
4179
|
var A = [];
|
|
3586
4180
|
var n = 0;
|
|
3587
4181
|
var result;
|
|
3588
|
-
while ((result = regExpExec$
|
|
3589
|
-
var matchStr = toString$
|
|
4182
|
+
while ((result = regExpExec$2(rx, S)) !== null) {
|
|
4183
|
+
var matchStr = toString$1(result[0]);
|
|
3590
4184
|
A[n] = matchStr;
|
|
3591
4185
|
if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
|
|
3592
4186
|
n++;
|
|
@@ -3598,43 +4192,9 @@
|
|
|
3598
4192
|
|
|
3599
4193
|
var es_string_trim = {};
|
|
3600
4194
|
|
|
3601
|
-
// a string of all valid unicode whitespaces
|
|
3602
|
-
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
3603
|
-
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
3604
|
-
|
|
3605
|
-
var requireObjectCoercible$1 = requireObjectCoercible$8;
|
|
3606
|
-
var toString$1 = toString$7;
|
|
3607
|
-
var whitespaces$1 = whitespaces$2;
|
|
3608
|
-
|
|
3609
|
-
var whitespace = '[' + whitespaces$1 + ']';
|
|
3610
|
-
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
3611
|
-
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
3612
|
-
|
|
3613
|
-
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
3614
|
-
var createMethod = function (TYPE) {
|
|
3615
|
-
return function ($this) {
|
|
3616
|
-
var string = toString$1(requireObjectCoercible$1($this));
|
|
3617
|
-
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
3618
|
-
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
3619
|
-
return string;
|
|
3620
|
-
};
|
|
3621
|
-
};
|
|
3622
|
-
|
|
3623
|
-
var stringTrim = {
|
|
3624
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
3625
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
3626
|
-
start: createMethod(1),
|
|
3627
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
3628
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
3629
|
-
end: createMethod(2),
|
|
3630
|
-
// `String.prototype.trim` method
|
|
3631
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
3632
|
-
trim: createMethod(3)
|
|
3633
|
-
};
|
|
3634
|
-
|
|
3635
4195
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3636
|
-
var fails$2 = fails$
|
|
3637
|
-
var whitespaces = whitespaces$
|
|
4196
|
+
var fails$2 = fails$i;
|
|
4197
|
+
var whitespaces = whitespaces$3;
|
|
3638
4198
|
|
|
3639
4199
|
var non = '\u200B\u0085\u180E';
|
|
3640
4200
|
|
|
@@ -4036,6 +4596,11 @@
|
|
|
4036
4596
|
return /^-?(0?\.)?\d+m?s$/.test(value);
|
|
4037
4597
|
};
|
|
4038
4598
|
|
|
4599
|
+
/**
|
|
4600
|
+
*
|
|
4601
|
+
* @param {string} transition
|
|
4602
|
+
* @return {{duration: number, delay: number, name: string, timingFunction: string?}}
|
|
4603
|
+
*/
|
|
4039
4604
|
var parseSingleTransition = function parseSingleTransition(transition) {
|
|
4040
4605
|
var parts = transition.split(/\s+/),
|
|
4041
4606
|
name = parts[0],
|
|
@@ -4059,8 +4624,14 @@
|
|
|
4059
4624
|
|
|
4060
4625
|
};
|
|
4061
4626
|
|
|
4062
|
-
|
|
4063
|
-
|
|
4627
|
+
/**
|
|
4628
|
+
*
|
|
4629
|
+
* @param {string} transition
|
|
4630
|
+
* @return {{duration: number, delay: number, name: string, timingFunction: string?}[]}
|
|
4631
|
+
*/
|
|
4632
|
+
var parseTransition = function parseTransition(transition) {var _transition$match;
|
|
4633
|
+
if (!transition) return [];
|
|
4634
|
+
return ((_transition$match = transition.match(/([^,()]|\([^)]*\))+/g)) !== null && _transition$match !== void 0 ? _transition$match : []).map(function (value) {return value.trim();}).filter(function (value) {return value.length > 0;}).map(parseSingleTransition);
|
|
4064
4635
|
};
|
|
4065
4636
|
|
|
4066
4637
|
var Css = /*#__PURE__*/Object.freeze({
|
|
@@ -4215,10 +4786,13 @@
|
|
|
4215
4786
|
|
|
4216
4787
|
var es_string_replace = {};
|
|
4217
4788
|
|
|
4789
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
4218
4790
|
var toObject$1 = toObject$4;
|
|
4219
4791
|
|
|
4220
4792
|
var floor = Math.floor;
|
|
4221
|
-
var
|
|
4793
|
+
var charAt = uncurryThis$3(''.charAt);
|
|
4794
|
+
var replace = uncurryThis$3(''.replace);
|
|
4795
|
+
var stringSlice$1 = uncurryThis$3(''.slice);
|
|
4222
4796
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
4223
4797
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
4224
4798
|
|
|
@@ -4232,15 +4806,15 @@
|
|
|
4232
4806
|
namedCaptures = toObject$1(namedCaptures);
|
|
4233
4807
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
4234
4808
|
}
|
|
4235
|
-
return replace
|
|
4809
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
4236
4810
|
var capture;
|
|
4237
|
-
switch (
|
|
4811
|
+
switch (charAt(ch, 0)) {
|
|
4238
4812
|
case '$': return '$';
|
|
4239
4813
|
case '&': return matched;
|
|
4240
|
-
case '`': return str
|
|
4241
|
-
case "'": return str
|
|
4814
|
+
case '`': return stringSlice$1(str, 0, position);
|
|
4815
|
+
case "'": return stringSlice$1(str, tailPos);
|
|
4242
4816
|
case '<':
|
|
4243
|
-
capture = namedCaptures[ch
|
|
4817
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
4244
4818
|
break;
|
|
4245
4819
|
default: // \d\d?
|
|
4246
4820
|
var n = +ch;
|
|
@@ -4248,7 +4822,7 @@
|
|
|
4248
4822
|
if (n > m) {
|
|
4249
4823
|
var f = floor(n / 10);
|
|
4250
4824
|
if (f === 0) return match;
|
|
4251
|
-
if (f <= m) return captures[f - 1] === undefined ?
|
|
4825
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
4252
4826
|
return match;
|
|
4253
4827
|
}
|
|
4254
4828
|
capture = captures[n - 1];
|
|
@@ -4258,23 +4832,30 @@
|
|
|
4258
4832
|
};
|
|
4259
4833
|
|
|
4260
4834
|
'use strict';
|
|
4835
|
+
var apply = functionApply;
|
|
4836
|
+
var call$1 = functionCall;
|
|
4837
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
4261
4838
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
4262
|
-
var fails$1 = fails$
|
|
4839
|
+
var fails$1 = fails$i;
|
|
4263
4840
|
var anObject = anObject$a;
|
|
4264
4841
|
var isCallable = isCallable$d;
|
|
4265
4842
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
4266
4843
|
var toLength = toLength$5;
|
|
4267
|
-
var toString = toString$
|
|
4844
|
+
var toString = toString$9;
|
|
4268
4845
|
var requireObjectCoercible = requireObjectCoercible$8;
|
|
4269
4846
|
var advanceStringIndex = advanceStringIndex$3;
|
|
4270
4847
|
var getMethod = getMethod$4;
|
|
4271
4848
|
var getSubstitution = getSubstitution$1;
|
|
4272
|
-
var regExpExec = regexpExecAbstract;
|
|
4849
|
+
var regExpExec$1 = regexpExecAbstract;
|
|
4273
4850
|
var wellKnownSymbol = wellKnownSymbol$a;
|
|
4274
4851
|
|
|
4275
4852
|
var REPLACE = wellKnownSymbol('replace');
|
|
4276
4853
|
var max = Math.max;
|
|
4277
4854
|
var min = Math.min;
|
|
4855
|
+
var concat$1 = uncurryThis$2([].concat);
|
|
4856
|
+
var push = uncurryThis$2([].push);
|
|
4857
|
+
var stringIndexOf = uncurryThis$2(''.indexOf);
|
|
4858
|
+
var stringSlice = uncurryThis$2(''.slice);
|
|
4278
4859
|
|
|
4279
4860
|
var maybeToString = function (it) {
|
|
4280
4861
|
return it === undefined ? it : String(it);
|
|
@@ -4317,8 +4898,8 @@
|
|
|
4317
4898
|
var O = requireObjectCoercible(this);
|
|
4318
4899
|
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
4319
4900
|
return replacer
|
|
4320
|
-
?
|
|
4321
|
-
:
|
|
4901
|
+
? call$1(replacer, searchValue, O, replaceValue)
|
|
4902
|
+
: call$1(nativeReplace, toString(O), searchValue, replaceValue);
|
|
4322
4903
|
},
|
|
4323
4904
|
// `RegExp.prototype[@@replace]` method
|
|
4324
4905
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
@@ -4327,9 +4908,9 @@
|
|
|
4327
4908
|
var S = toString(string);
|
|
4328
4909
|
|
|
4329
4910
|
if (
|
|
4330
|
-
typeof replaceValue
|
|
4331
|
-
replaceValue
|
|
4332
|
-
replaceValue
|
|
4911
|
+
typeof replaceValue == 'string' &&
|
|
4912
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
4913
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
4333
4914
|
) {
|
|
4334
4915
|
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
4335
4916
|
if (res.done) return res.value;
|
|
@@ -4345,10 +4926,10 @@
|
|
|
4345
4926
|
}
|
|
4346
4927
|
var results = [];
|
|
4347
4928
|
while (true) {
|
|
4348
|
-
var result = regExpExec(rx, S);
|
|
4929
|
+
var result = regExpExec$1(rx, S);
|
|
4349
4930
|
if (result === null) break;
|
|
4350
4931
|
|
|
4351
|
-
|
|
4932
|
+
push(results, result);
|
|
4352
4933
|
if (!global) break;
|
|
4353
4934
|
|
|
4354
4935
|
var matchStr = toString(result[0]);
|
|
@@ -4368,21 +4949,21 @@
|
|
|
4368
4949
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
4369
4950
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
4370
4951
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
4371
|
-
for (var j = 1; j < result.length; j++)
|
|
4952
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
4372
4953
|
var namedCaptures = result.groups;
|
|
4373
4954
|
if (functionalReplace) {
|
|
4374
|
-
var replacerArgs = [matched]
|
|
4375
|
-
if (namedCaptures !== undefined)
|
|
4376
|
-
var replacement = toString(
|
|
4955
|
+
var replacerArgs = concat$1([matched], captures, position, S);
|
|
4956
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
4957
|
+
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
4377
4958
|
} else {
|
|
4378
4959
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
4379
4960
|
}
|
|
4380
4961
|
if (position >= nextSourcePosition) {
|
|
4381
|
-
accumulatedResult += S
|
|
4962
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
4382
4963
|
nextSourcePosition = position + matched.length;
|
|
4383
4964
|
}
|
|
4384
4965
|
}
|
|
4385
|
-
return accumulatedResult + S
|
|
4966
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
4386
4967
|
}
|
|
4387
4968
|
];
|
|
4388
4969
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
@@ -4666,11 +5247,13 @@
|
|
|
4666
5247
|
|
|
4667
5248
|
var DESCRIPTORS$1 = descriptors;
|
|
4668
5249
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
5250
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
4669
5251
|
var defineProperty$1 = objectDefineProperty.f;
|
|
4670
5252
|
|
|
4671
5253
|
var FunctionPrototype = Function.prototype;
|
|
4672
|
-
var
|
|
4673
|
-
var nameRE =
|
|
5254
|
+
var functionToString = uncurryThis$1(FunctionPrototype.toString);
|
|
5255
|
+
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
5256
|
+
var regExpExec = uncurryThis$1(nameRE.exec);
|
|
4674
5257
|
var NAME = 'name';
|
|
4675
5258
|
|
|
4676
5259
|
// Function instances `.name` property
|
|
@@ -4680,7 +5263,7 @@
|
|
|
4680
5263
|
configurable: true,
|
|
4681
5264
|
get: function () {
|
|
4682
5265
|
try {
|
|
4683
|
-
return
|
|
5266
|
+
return regExpExec(nameRE, functionToString(this))[1];
|
|
4684
5267
|
} catch (error) {
|
|
4685
5268
|
return '';
|
|
4686
5269
|
}
|
|
@@ -4882,7 +5465,9 @@
|
|
|
4882
5465
|
|
|
4883
5466
|
'use strict';
|
|
4884
5467
|
var DESCRIPTORS = descriptors;
|
|
4885
|
-
var
|
|
5468
|
+
var uncurryThis = functionUncurryThis;
|
|
5469
|
+
var call = functionCall;
|
|
5470
|
+
var fails = fails$i;
|
|
4886
5471
|
var objectKeys = objectKeys$3;
|
|
4887
5472
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
4888
5473
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -4893,6 +5478,7 @@
|
|
|
4893
5478
|
var $assign = Object.assign;
|
|
4894
5479
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
4895
5480
|
var defineProperty = Object.defineProperty;
|
|
5481
|
+
var concat = uncurryThis([].concat);
|
|
4896
5482
|
|
|
4897
5483
|
// `Object.assign` method
|
|
4898
5484
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
@@ -4924,13 +5510,13 @@
|
|
|
4924
5510
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
4925
5511
|
while (argumentsLength > index) {
|
|
4926
5512
|
var S = IndexedObject(arguments[index++]);
|
|
4927
|
-
var keys = getOwnPropertySymbols ? objectKeys(S)
|
|
5513
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
4928
5514
|
var length = keys.length;
|
|
4929
5515
|
var j = 0;
|
|
4930
5516
|
var key;
|
|
4931
5517
|
while (length > j) {
|
|
4932
5518
|
key = keys[j++];
|
|
4933
|
-
if (!DESCRIPTORS ||
|
|
5519
|
+
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
4934
5520
|
}
|
|
4935
5521
|
} return T;
|
|
4936
5522
|
} : $assign;
|