@arc-ui/components 6.4.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.bt.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.ee.css +1 -1
- package/dist/types/components/Card/Card.d.ts +7 -1
- package/package.json +3 -6
- package/dist/polyfills.js +0 -3383
- package/dist/polyfills.js.map +0 -1
- package/dist/types/polyfills.d.ts +0 -2
package/dist/polyfills.js
DELETED
|
@@ -1,3383 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
-
|
|
5
|
-
var rejectionTracking = {};
|
|
6
|
-
|
|
7
|
-
// Use the fastest means possible to execute a task in its own turn, with
|
|
8
|
-
// priority over other events including IO, animation, reflow, and redraw
|
|
9
|
-
// events in browsers.
|
|
10
|
-
//
|
|
11
|
-
// An exception thrown by a task will permanently interrupt the processing of
|
|
12
|
-
// subsequent tasks. The higher level `asap` function ensures that if an
|
|
13
|
-
// exception is thrown by a task, that the task queue will continue flushing as
|
|
14
|
-
// soon as possible, but if you use `rawAsap` directly, you are responsible to
|
|
15
|
-
// either ensure that no exceptions are thrown from your task, or to manually
|
|
16
|
-
// call `rawAsap.requestFlush` if an exception is thrown.
|
|
17
|
-
var browserRaw = rawAsap;
|
|
18
|
-
function rawAsap(task) {
|
|
19
|
-
if (!queue.length) {
|
|
20
|
-
requestFlush();
|
|
21
|
-
}
|
|
22
|
-
// Equivalent to push, but avoids a function call.
|
|
23
|
-
queue[queue.length] = task;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var queue = [];
|
|
27
|
-
// `requestFlush` is an implementation-specific method that attempts to kick
|
|
28
|
-
// off a `flush` event as quickly as possible. `flush` will attempt to exhaust
|
|
29
|
-
// the event queue before yielding to the browser's own event loop.
|
|
30
|
-
var requestFlush;
|
|
31
|
-
// The position of the next task to execute in the task queue. This is
|
|
32
|
-
// preserved between calls to `flush` so that it can be resumed if
|
|
33
|
-
// a task throws an exception.
|
|
34
|
-
var index = 0;
|
|
35
|
-
// If a task schedules additional tasks recursively, the task queue can grow
|
|
36
|
-
// unbounded. To prevent memory exhaustion, the task queue will periodically
|
|
37
|
-
// truncate already-completed tasks.
|
|
38
|
-
var capacity = 1024;
|
|
39
|
-
|
|
40
|
-
// The flush function processes all tasks that have been scheduled with
|
|
41
|
-
// `rawAsap` unless and until one of those tasks throws an exception.
|
|
42
|
-
// If a task throws an exception, `flush` ensures that its state will remain
|
|
43
|
-
// consistent and will resume where it left off when called again.
|
|
44
|
-
// However, `flush` does not make any arrangements to be called again if an
|
|
45
|
-
// exception is thrown.
|
|
46
|
-
function flush() {
|
|
47
|
-
while (index < queue.length) {
|
|
48
|
-
var currentIndex = index;
|
|
49
|
-
// Advance the index before calling the task. This ensures that we will
|
|
50
|
-
// begin flushing on the next task the task throws an error.
|
|
51
|
-
index = index + 1;
|
|
52
|
-
queue[currentIndex].call();
|
|
53
|
-
// Prevent leaking memory for long chains of recursive calls to `asap`.
|
|
54
|
-
// If we call `asap` within tasks scheduled by `asap`, the queue will
|
|
55
|
-
// grow, but to avoid an O(n) walk for every task we execute, we don't
|
|
56
|
-
// shift tasks off the queue after they have been executed.
|
|
57
|
-
// Instead, we periodically shift 1024 tasks off the queue.
|
|
58
|
-
if (index > capacity) {
|
|
59
|
-
// Manually shift all values starting at the index back to the
|
|
60
|
-
// beginning of the queue.
|
|
61
|
-
for (var scan = 0, newLength = queue.length - index; scan < newLength; scan++) {
|
|
62
|
-
queue[scan] = queue[scan + index];
|
|
63
|
-
}
|
|
64
|
-
queue.length -= index;
|
|
65
|
-
index = 0;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
queue.length = 0;
|
|
69
|
-
index = 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// `requestFlush` is implemented using a strategy based on data collected from
|
|
73
|
-
// every available SauceLabs Selenium web driver worker at time of writing.
|
|
74
|
-
// https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593
|
|
75
|
-
|
|
76
|
-
// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that
|
|
77
|
-
// have WebKitMutationObserver but not un-prefixed MutationObserver.
|
|
78
|
-
// Must use `global` or `self` instead of `window` to work in both frames and web
|
|
79
|
-
// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.
|
|
80
|
-
|
|
81
|
-
/* globals self */
|
|
82
|
-
var scope = typeof commonjsGlobal !== "undefined" ? commonjsGlobal : self;
|
|
83
|
-
var BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;
|
|
84
|
-
|
|
85
|
-
// MutationObservers are desirable because they have high priority and work
|
|
86
|
-
// reliably everywhere they are implemented.
|
|
87
|
-
// They are implemented in all modern browsers.
|
|
88
|
-
//
|
|
89
|
-
// - Android 4-4.3
|
|
90
|
-
// - Chrome 26-34
|
|
91
|
-
// - Firefox 14-29
|
|
92
|
-
// - Internet Explorer 11
|
|
93
|
-
// - iPad Safari 6-7.1
|
|
94
|
-
// - iPhone Safari 7-7.1
|
|
95
|
-
// - Safari 6-7
|
|
96
|
-
if (typeof BrowserMutationObserver === "function") {
|
|
97
|
-
requestFlush = makeRequestCallFromMutationObserver(flush);
|
|
98
|
-
|
|
99
|
-
// MessageChannels are desirable because they give direct access to the HTML
|
|
100
|
-
// task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera
|
|
101
|
-
// 11-12, and in web workers in many engines.
|
|
102
|
-
// Although message channels yield to any queued rendering and IO tasks, they
|
|
103
|
-
// would be better than imposing the 4ms delay of timers.
|
|
104
|
-
// However, they do not work reliably in Internet Explorer or Safari.
|
|
105
|
-
|
|
106
|
-
// Internet Explorer 10 is the only browser that has setImmediate but does
|
|
107
|
-
// not have MutationObservers.
|
|
108
|
-
// Although setImmediate yields to the browser's renderer, it would be
|
|
109
|
-
// preferrable to falling back to setTimeout since it does not have
|
|
110
|
-
// the minimum 4ms penalty.
|
|
111
|
-
// Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and
|
|
112
|
-
// Desktop to a lesser extent) that renders both setImmediate and
|
|
113
|
-
// MessageChannel useless for the purposes of ASAP.
|
|
114
|
-
// https://github.com/kriskowal/q/issues/396
|
|
115
|
-
|
|
116
|
-
// Timers are implemented universally.
|
|
117
|
-
// We fall back to timers in workers in most engines, and in foreground
|
|
118
|
-
// contexts in the following browsers.
|
|
119
|
-
// However, note that even this simple case requires nuances to operate in a
|
|
120
|
-
// broad spectrum of browsers.
|
|
121
|
-
//
|
|
122
|
-
// - Firefox 3-13
|
|
123
|
-
// - Internet Explorer 6-9
|
|
124
|
-
// - iPad Safari 4.3
|
|
125
|
-
// - Lynx 2.8.7
|
|
126
|
-
} else {
|
|
127
|
-
requestFlush = makeRequestCallFromTimer(flush);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// `requestFlush` requests that the high priority event queue be flushed as
|
|
131
|
-
// soon as possible.
|
|
132
|
-
// This is useful to prevent an error thrown in a task from stalling the event
|
|
133
|
-
// queue if the exception handled by Node.js’s
|
|
134
|
-
// `process.on("uncaughtException")` or by a domain.
|
|
135
|
-
rawAsap.requestFlush = requestFlush;
|
|
136
|
-
|
|
137
|
-
// To request a high priority event, we induce a mutation observer by toggling
|
|
138
|
-
// the text of a text node between "1" and "-1".
|
|
139
|
-
function makeRequestCallFromMutationObserver(callback) {
|
|
140
|
-
var toggle = 1;
|
|
141
|
-
var observer = new BrowserMutationObserver(callback);
|
|
142
|
-
var node = document.createTextNode("");
|
|
143
|
-
observer.observe(node, {characterData: true});
|
|
144
|
-
return function requestCall() {
|
|
145
|
-
toggle = -toggle;
|
|
146
|
-
node.data = toggle;
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// The message channel technique was discovered by Malte Ubl and was the
|
|
151
|
-
// original foundation for this library.
|
|
152
|
-
// http://www.nonblocking.io/2011/06/windownexttick.html
|
|
153
|
-
|
|
154
|
-
// Safari 6.0.5 (at least) intermittently fails to create message ports on a
|
|
155
|
-
// page's first load. Thankfully, this version of Safari supports
|
|
156
|
-
// MutationObservers, so we don't need to fall back in that case.
|
|
157
|
-
|
|
158
|
-
// function makeRequestCallFromMessageChannel(callback) {
|
|
159
|
-
// var channel = new MessageChannel();
|
|
160
|
-
// channel.port1.onmessage = callback;
|
|
161
|
-
// return function requestCall() {
|
|
162
|
-
// channel.port2.postMessage(0);
|
|
163
|
-
// };
|
|
164
|
-
// }
|
|
165
|
-
|
|
166
|
-
// For reasons explained above, we are also unable to use `setImmediate`
|
|
167
|
-
// under any circumstances.
|
|
168
|
-
// Even if we were, there is another bug in Internet Explorer 10.
|
|
169
|
-
// It is not sufficient to assign `setImmediate` to `requestFlush` because
|
|
170
|
-
// `setImmediate` must be called *by name* and therefore must be wrapped in a
|
|
171
|
-
// closure.
|
|
172
|
-
// Never forget.
|
|
173
|
-
|
|
174
|
-
// function makeRequestCallFromSetImmediate(callback) {
|
|
175
|
-
// return function requestCall() {
|
|
176
|
-
// setImmediate(callback);
|
|
177
|
-
// };
|
|
178
|
-
// }
|
|
179
|
-
|
|
180
|
-
// Safari 6.0 has a problem where timers will get lost while the user is
|
|
181
|
-
// scrolling. This problem does not impact ASAP because Safari 6.0 supports
|
|
182
|
-
// mutation observers, so that implementation is used instead.
|
|
183
|
-
// However, if we ever elect to use timers in Safari, the prevalent work-around
|
|
184
|
-
// is to add a scroll event listener that calls for a flush.
|
|
185
|
-
|
|
186
|
-
// `setTimeout` does not call the passed callback if the delay is less than
|
|
187
|
-
// approximately 7 in web workers in Firefox 8 through 18, and sometimes not
|
|
188
|
-
// even then.
|
|
189
|
-
|
|
190
|
-
function makeRequestCallFromTimer(callback) {
|
|
191
|
-
return function requestCall() {
|
|
192
|
-
// We dispatch a timeout with a specified delay of 0 for engines that
|
|
193
|
-
// can reliably accommodate that request. This will usually be snapped
|
|
194
|
-
// to a 4 milisecond delay, but once we're flushing, there's no delay
|
|
195
|
-
// between events.
|
|
196
|
-
var timeoutHandle = setTimeout(handleTimer, 0);
|
|
197
|
-
// However, since this timer gets frequently dropped in Firefox
|
|
198
|
-
// workers, we enlist an interval handle that will try to fire
|
|
199
|
-
// an event 20 times per second until it succeeds.
|
|
200
|
-
var intervalHandle = setInterval(handleTimer, 50);
|
|
201
|
-
|
|
202
|
-
function handleTimer() {
|
|
203
|
-
// Whichever timer succeeds will cancel both timers and
|
|
204
|
-
// execute the callback.
|
|
205
|
-
clearTimeout(timeoutHandle);
|
|
206
|
-
clearInterval(intervalHandle);
|
|
207
|
-
callback();
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// This is for `asap.js` only.
|
|
213
|
-
// Its name will be periodically randomized to break any code that depends on
|
|
214
|
-
// its existence.
|
|
215
|
-
rawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer;
|
|
216
|
-
|
|
217
|
-
var asap = browserRaw;
|
|
218
|
-
|
|
219
|
-
function noop() {}
|
|
220
|
-
|
|
221
|
-
// States:
|
|
222
|
-
//
|
|
223
|
-
// 0 - pending
|
|
224
|
-
// 1 - fulfilled with _value
|
|
225
|
-
// 2 - rejected with _value
|
|
226
|
-
// 3 - adopted the state of another promise, _value
|
|
227
|
-
//
|
|
228
|
-
// once the state is no longer pending (0) it is immutable
|
|
229
|
-
|
|
230
|
-
// All `_` prefixed properties will be reduced to `_{random number}`
|
|
231
|
-
// at build time to obfuscate them and discourage their use.
|
|
232
|
-
// We don't use symbols or Object.defineProperty to fully hide them
|
|
233
|
-
// because the performance isn't good enough.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
// to avoid using try/catch inside critical functions, we
|
|
237
|
-
// extract them to here.
|
|
238
|
-
var LAST_ERROR = null;
|
|
239
|
-
var IS_ERROR = {};
|
|
240
|
-
function getThen(obj) {
|
|
241
|
-
try {
|
|
242
|
-
return obj.then;
|
|
243
|
-
} catch (ex) {
|
|
244
|
-
LAST_ERROR = ex;
|
|
245
|
-
return IS_ERROR;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
function tryCallOne(fn, a) {
|
|
250
|
-
try {
|
|
251
|
-
return fn(a);
|
|
252
|
-
} catch (ex) {
|
|
253
|
-
LAST_ERROR = ex;
|
|
254
|
-
return IS_ERROR;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
function tryCallTwo(fn, a, b) {
|
|
258
|
-
try {
|
|
259
|
-
fn(a, b);
|
|
260
|
-
} catch (ex) {
|
|
261
|
-
LAST_ERROR = ex;
|
|
262
|
-
return IS_ERROR;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
var core = Promise$3;
|
|
267
|
-
|
|
268
|
-
function Promise$3(fn) {
|
|
269
|
-
if (typeof this !== 'object') {
|
|
270
|
-
throw new TypeError('Promises must be constructed via new');
|
|
271
|
-
}
|
|
272
|
-
if (typeof fn !== 'function') {
|
|
273
|
-
throw new TypeError('Promise constructor\'s argument is not a function');
|
|
274
|
-
}
|
|
275
|
-
this._U = 0;
|
|
276
|
-
this._V = 0;
|
|
277
|
-
this._W = null;
|
|
278
|
-
this._X = null;
|
|
279
|
-
if (fn === noop) return;
|
|
280
|
-
doResolve(fn, this);
|
|
281
|
-
}
|
|
282
|
-
Promise$3._Y = null;
|
|
283
|
-
Promise$3._Z = null;
|
|
284
|
-
Promise$3._0 = noop;
|
|
285
|
-
|
|
286
|
-
Promise$3.prototype.then = function(onFulfilled, onRejected) {
|
|
287
|
-
if (this.constructor !== Promise$3) {
|
|
288
|
-
return safeThen(this, onFulfilled, onRejected);
|
|
289
|
-
}
|
|
290
|
-
var res = new Promise$3(noop);
|
|
291
|
-
handle(this, new Handler(onFulfilled, onRejected, res));
|
|
292
|
-
return res;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
function safeThen(self, onFulfilled, onRejected) {
|
|
296
|
-
return new self.constructor(function (resolve, reject) {
|
|
297
|
-
var res = new Promise$3(noop);
|
|
298
|
-
res.then(resolve, reject);
|
|
299
|
-
handle(self, new Handler(onFulfilled, onRejected, res));
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
function handle(self, deferred) {
|
|
303
|
-
while (self._V === 3) {
|
|
304
|
-
self = self._W;
|
|
305
|
-
}
|
|
306
|
-
if (Promise$3._Y) {
|
|
307
|
-
Promise$3._Y(self);
|
|
308
|
-
}
|
|
309
|
-
if (self._V === 0) {
|
|
310
|
-
if (self._U === 0) {
|
|
311
|
-
self._U = 1;
|
|
312
|
-
self._X = deferred;
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
if (self._U === 1) {
|
|
316
|
-
self._U = 2;
|
|
317
|
-
self._X = [self._X, deferred];
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
self._X.push(deferred);
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
handleResolved(self, deferred);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
function handleResolved(self, deferred) {
|
|
327
|
-
asap(function() {
|
|
328
|
-
var cb = self._V === 1 ? deferred.onFulfilled : deferred.onRejected;
|
|
329
|
-
if (cb === null) {
|
|
330
|
-
if (self._V === 1) {
|
|
331
|
-
resolve(deferred.promise, self._W);
|
|
332
|
-
} else {
|
|
333
|
-
reject(deferred.promise, self._W);
|
|
334
|
-
}
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
var ret = tryCallOne(cb, self._W);
|
|
338
|
-
if (ret === IS_ERROR) {
|
|
339
|
-
reject(deferred.promise, LAST_ERROR);
|
|
340
|
-
} else {
|
|
341
|
-
resolve(deferred.promise, ret);
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
function resolve(self, newValue) {
|
|
346
|
-
// Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
|
|
347
|
-
if (newValue === self) {
|
|
348
|
-
return reject(
|
|
349
|
-
self,
|
|
350
|
-
new TypeError('A promise cannot be resolved with itself.')
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
if (
|
|
354
|
-
newValue &&
|
|
355
|
-
(typeof newValue === 'object' || typeof newValue === 'function')
|
|
356
|
-
) {
|
|
357
|
-
var then = getThen(newValue);
|
|
358
|
-
if (then === IS_ERROR) {
|
|
359
|
-
return reject(self, LAST_ERROR);
|
|
360
|
-
}
|
|
361
|
-
if (
|
|
362
|
-
then === self.then &&
|
|
363
|
-
newValue instanceof Promise$3
|
|
364
|
-
) {
|
|
365
|
-
self._V = 3;
|
|
366
|
-
self._W = newValue;
|
|
367
|
-
finale(self);
|
|
368
|
-
return;
|
|
369
|
-
} else if (typeof then === 'function') {
|
|
370
|
-
doResolve(then.bind(newValue), self);
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
self._V = 1;
|
|
375
|
-
self._W = newValue;
|
|
376
|
-
finale(self);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
function reject(self, newValue) {
|
|
380
|
-
self._V = 2;
|
|
381
|
-
self._W = newValue;
|
|
382
|
-
if (Promise$3._Z) {
|
|
383
|
-
Promise$3._Z(self, newValue);
|
|
384
|
-
}
|
|
385
|
-
finale(self);
|
|
386
|
-
}
|
|
387
|
-
function finale(self) {
|
|
388
|
-
if (self._U === 1) {
|
|
389
|
-
handle(self, self._X);
|
|
390
|
-
self._X = null;
|
|
391
|
-
}
|
|
392
|
-
if (self._U === 2) {
|
|
393
|
-
for (var i = 0; i < self._X.length; i++) {
|
|
394
|
-
handle(self, self._X[i]);
|
|
395
|
-
}
|
|
396
|
-
self._X = null;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
function Handler(onFulfilled, onRejected, promise){
|
|
401
|
-
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
|
402
|
-
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
|
403
|
-
this.promise = promise;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Take a potentially misbehaving resolver function and make sure
|
|
408
|
-
* onFulfilled and onRejected are only called once.
|
|
409
|
-
*
|
|
410
|
-
* Makes no guarantees about asynchrony.
|
|
411
|
-
*/
|
|
412
|
-
function doResolve(fn, promise) {
|
|
413
|
-
var done = false;
|
|
414
|
-
var res = tryCallTwo(fn, function (value) {
|
|
415
|
-
if (done) return;
|
|
416
|
-
done = true;
|
|
417
|
-
resolve(promise, value);
|
|
418
|
-
}, function (reason) {
|
|
419
|
-
if (done) return;
|
|
420
|
-
done = true;
|
|
421
|
-
reject(promise, reason);
|
|
422
|
-
});
|
|
423
|
-
if (!done && res === IS_ERROR) {
|
|
424
|
-
done = true;
|
|
425
|
-
reject(promise, LAST_ERROR);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
var Promise$2 = core;
|
|
430
|
-
|
|
431
|
-
var DEFAULT_WHITELIST = [
|
|
432
|
-
ReferenceError,
|
|
433
|
-
TypeError,
|
|
434
|
-
RangeError
|
|
435
|
-
];
|
|
436
|
-
|
|
437
|
-
var enabled = false;
|
|
438
|
-
rejectionTracking.disable = disable;
|
|
439
|
-
function disable() {
|
|
440
|
-
enabled = false;
|
|
441
|
-
Promise$2._Y = null;
|
|
442
|
-
Promise$2._Z = null;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
rejectionTracking.enable = enable;
|
|
446
|
-
function enable(options) {
|
|
447
|
-
options = options || {};
|
|
448
|
-
if (enabled) disable();
|
|
449
|
-
enabled = true;
|
|
450
|
-
var id = 0;
|
|
451
|
-
var displayId = 0;
|
|
452
|
-
var rejections = {};
|
|
453
|
-
Promise$2._Y = function (promise) {
|
|
454
|
-
if (
|
|
455
|
-
promise._V === 2 && // IS REJECTED
|
|
456
|
-
rejections[promise._1]
|
|
457
|
-
) {
|
|
458
|
-
if (rejections[promise._1].logged) {
|
|
459
|
-
onHandled(promise._1);
|
|
460
|
-
} else {
|
|
461
|
-
clearTimeout(rejections[promise._1].timeout);
|
|
462
|
-
}
|
|
463
|
-
delete rejections[promise._1];
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
Promise$2._Z = function (promise, err) {
|
|
467
|
-
if (promise._U === 0) { // not yet handled
|
|
468
|
-
promise._1 = id++;
|
|
469
|
-
rejections[promise._1] = {
|
|
470
|
-
displayId: null,
|
|
471
|
-
error: err,
|
|
472
|
-
timeout: setTimeout(
|
|
473
|
-
onUnhandled.bind(null, promise._1),
|
|
474
|
-
// For reference errors and type errors, this almost always
|
|
475
|
-
// means the programmer made a mistake, so log them after just
|
|
476
|
-
// 100ms
|
|
477
|
-
// otherwise, wait 2 seconds to see if they get handled
|
|
478
|
-
matchWhitelist(err, DEFAULT_WHITELIST)
|
|
479
|
-
? 100
|
|
480
|
-
: 2000
|
|
481
|
-
),
|
|
482
|
-
logged: false
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
function onUnhandled(id) {
|
|
487
|
-
if (
|
|
488
|
-
options.allRejections ||
|
|
489
|
-
matchWhitelist(
|
|
490
|
-
rejections[id].error,
|
|
491
|
-
options.whitelist || DEFAULT_WHITELIST
|
|
492
|
-
)
|
|
493
|
-
) {
|
|
494
|
-
rejections[id].displayId = displayId++;
|
|
495
|
-
if (options.onUnhandled) {
|
|
496
|
-
rejections[id].logged = true;
|
|
497
|
-
options.onUnhandled(
|
|
498
|
-
rejections[id].displayId,
|
|
499
|
-
rejections[id].error
|
|
500
|
-
);
|
|
501
|
-
} else {
|
|
502
|
-
rejections[id].logged = true;
|
|
503
|
-
logError(
|
|
504
|
-
rejections[id].displayId,
|
|
505
|
-
rejections[id].error
|
|
506
|
-
);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function onHandled(id) {
|
|
511
|
-
if (rejections[id].logged) {
|
|
512
|
-
if (options.onHandled) {
|
|
513
|
-
options.onHandled(rejections[id].displayId, rejections[id].error);
|
|
514
|
-
} else if (!rejections[id].onUnhandled) {
|
|
515
|
-
console.warn(
|
|
516
|
-
'Promise Rejection Handled (id: ' + rejections[id].displayId + '):'
|
|
517
|
-
);
|
|
518
|
-
console.warn(
|
|
519
|
-
' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ' +
|
|
520
|
-
rejections[id].displayId + '.'
|
|
521
|
-
);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
function logError(id, error) {
|
|
528
|
-
console.warn('Possible Unhandled Promise Rejection (id: ' + id + '):');
|
|
529
|
-
var errStr = (error && (error.stack || error)) + '';
|
|
530
|
-
errStr.split('\n').forEach(function (line) {
|
|
531
|
-
console.warn(' ' + line);
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
function matchWhitelist(error, list) {
|
|
536
|
-
return list.some(function (cls) {
|
|
537
|
-
return error instanceof cls;
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
//This file contains the ES6 extensions to the core Promises/A+ API
|
|
542
|
-
|
|
543
|
-
var Promise$1 = core;
|
|
544
|
-
|
|
545
|
-
var es6Extensions = Promise$1;
|
|
546
|
-
|
|
547
|
-
/* Static Functions */
|
|
548
|
-
|
|
549
|
-
var TRUE = valuePromise(true);
|
|
550
|
-
var FALSE = valuePromise(false);
|
|
551
|
-
var NULL = valuePromise(null);
|
|
552
|
-
var UNDEFINED = valuePromise(undefined);
|
|
553
|
-
var ZERO = valuePromise(0);
|
|
554
|
-
var EMPTYSTRING = valuePromise('');
|
|
555
|
-
|
|
556
|
-
function valuePromise(value) {
|
|
557
|
-
var p = new Promise$1(Promise$1._0);
|
|
558
|
-
p._V = 1;
|
|
559
|
-
p._W = value;
|
|
560
|
-
return p;
|
|
561
|
-
}
|
|
562
|
-
Promise$1.resolve = function (value) {
|
|
563
|
-
if (value instanceof Promise$1) return value;
|
|
564
|
-
|
|
565
|
-
if (value === null) return NULL;
|
|
566
|
-
if (value === undefined) return UNDEFINED;
|
|
567
|
-
if (value === true) return TRUE;
|
|
568
|
-
if (value === false) return FALSE;
|
|
569
|
-
if (value === 0) return ZERO;
|
|
570
|
-
if (value === '') return EMPTYSTRING;
|
|
571
|
-
|
|
572
|
-
if (typeof value === 'object' || typeof value === 'function') {
|
|
573
|
-
try {
|
|
574
|
-
var then = value.then;
|
|
575
|
-
if (typeof then === 'function') {
|
|
576
|
-
return new Promise$1(then.bind(value));
|
|
577
|
-
}
|
|
578
|
-
} catch (ex) {
|
|
579
|
-
return new Promise$1(function (resolve, reject) {
|
|
580
|
-
reject(ex);
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return valuePromise(value);
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
var iterableToArray = function (iterable) {
|
|
588
|
-
if (typeof Array.from === 'function') {
|
|
589
|
-
// ES2015+, iterables exist
|
|
590
|
-
iterableToArray = Array.from;
|
|
591
|
-
return Array.from(iterable);
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
// ES5, only arrays and array-likes exist
|
|
595
|
-
iterableToArray = function (x) { return Array.prototype.slice.call(x); };
|
|
596
|
-
return Array.prototype.slice.call(iterable);
|
|
597
|
-
};
|
|
598
|
-
|
|
599
|
-
Promise$1.all = function (arr) {
|
|
600
|
-
var args = iterableToArray(arr);
|
|
601
|
-
|
|
602
|
-
return new Promise$1(function (resolve, reject) {
|
|
603
|
-
if (args.length === 0) return resolve([]);
|
|
604
|
-
var remaining = args.length;
|
|
605
|
-
function res(i, val) {
|
|
606
|
-
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
607
|
-
if (val instanceof Promise$1 && val.then === Promise$1.prototype.then) {
|
|
608
|
-
while (val._V === 3) {
|
|
609
|
-
val = val._W;
|
|
610
|
-
}
|
|
611
|
-
if (val._V === 1) return res(i, val._W);
|
|
612
|
-
if (val._V === 2) reject(val._W);
|
|
613
|
-
val.then(function (val) {
|
|
614
|
-
res(i, val);
|
|
615
|
-
}, reject);
|
|
616
|
-
return;
|
|
617
|
-
} else {
|
|
618
|
-
var then = val.then;
|
|
619
|
-
if (typeof then === 'function') {
|
|
620
|
-
var p = new Promise$1(then.bind(val));
|
|
621
|
-
p.then(function (val) {
|
|
622
|
-
res(i, val);
|
|
623
|
-
}, reject);
|
|
624
|
-
return;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
args[i] = val;
|
|
629
|
-
if (--remaining === 0) {
|
|
630
|
-
resolve(args);
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
for (var i = 0; i < args.length; i++) {
|
|
634
|
-
res(i, args[i]);
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
Promise$1.reject = function (value) {
|
|
640
|
-
return new Promise$1(function (resolve, reject) {
|
|
641
|
-
reject(value);
|
|
642
|
-
});
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
Promise$1.race = function (values) {
|
|
646
|
-
return new Promise$1(function (resolve, reject) {
|
|
647
|
-
iterableToArray(values).forEach(function(value){
|
|
648
|
-
Promise$1.resolve(value).then(resolve, reject);
|
|
649
|
-
});
|
|
650
|
-
});
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
/* Prototype Methods */
|
|
654
|
-
|
|
655
|
-
Promise$1.prototype['catch'] = function (onRejected) {
|
|
656
|
-
return this.then(null, onRejected);
|
|
657
|
-
};
|
|
658
|
-
|
|
659
|
-
var global$g =
|
|
660
|
-
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
661
|
-
(typeof self !== 'undefined' && self) ||
|
|
662
|
-
(typeof global$g !== 'undefined' && global$g);
|
|
663
|
-
|
|
664
|
-
var support = {
|
|
665
|
-
searchParams: 'URLSearchParams' in global$g,
|
|
666
|
-
iterable: 'Symbol' in global$g && 'iterator' in Symbol,
|
|
667
|
-
blob:
|
|
668
|
-
'FileReader' in global$g &&
|
|
669
|
-
'Blob' in global$g &&
|
|
670
|
-
(function() {
|
|
671
|
-
try {
|
|
672
|
-
new Blob();
|
|
673
|
-
return true
|
|
674
|
-
} catch (e) {
|
|
675
|
-
return false
|
|
676
|
-
}
|
|
677
|
-
})(),
|
|
678
|
-
formData: 'FormData' in global$g,
|
|
679
|
-
arrayBuffer: 'ArrayBuffer' in global$g
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
function isDataView(obj) {
|
|
683
|
-
return obj && DataView.prototype.isPrototypeOf(obj)
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
if (support.arrayBuffer) {
|
|
687
|
-
var viewClasses = [
|
|
688
|
-
'[object Int8Array]',
|
|
689
|
-
'[object Uint8Array]',
|
|
690
|
-
'[object Uint8ClampedArray]',
|
|
691
|
-
'[object Int16Array]',
|
|
692
|
-
'[object Uint16Array]',
|
|
693
|
-
'[object Int32Array]',
|
|
694
|
-
'[object Uint32Array]',
|
|
695
|
-
'[object Float32Array]',
|
|
696
|
-
'[object Float64Array]'
|
|
697
|
-
];
|
|
698
|
-
|
|
699
|
-
var isArrayBufferView =
|
|
700
|
-
ArrayBuffer.isView ||
|
|
701
|
-
function(obj) {
|
|
702
|
-
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1
|
|
703
|
-
};
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
function normalizeName(name) {
|
|
707
|
-
if (typeof name !== 'string') {
|
|
708
|
-
name = String(name);
|
|
709
|
-
}
|
|
710
|
-
if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {
|
|
711
|
-
throw new TypeError('Invalid character in header field name: "' + name + '"')
|
|
712
|
-
}
|
|
713
|
-
return name.toLowerCase()
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
function normalizeValue(value) {
|
|
717
|
-
if (typeof value !== 'string') {
|
|
718
|
-
value = String(value);
|
|
719
|
-
}
|
|
720
|
-
return value
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
// Build a destructive iterator for the value list
|
|
724
|
-
function iteratorFor(items) {
|
|
725
|
-
var iterator = {
|
|
726
|
-
next: function() {
|
|
727
|
-
var value = items.shift();
|
|
728
|
-
return {done: value === undefined, value: value}
|
|
729
|
-
}
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
if (support.iterable) {
|
|
733
|
-
iterator[Symbol.iterator] = function() {
|
|
734
|
-
return iterator
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
return iterator
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
function Headers(headers) {
|
|
742
|
-
this.map = {};
|
|
743
|
-
|
|
744
|
-
if (headers instanceof Headers) {
|
|
745
|
-
headers.forEach(function(value, name) {
|
|
746
|
-
this.append(name, value);
|
|
747
|
-
}, this);
|
|
748
|
-
} else if (Array.isArray(headers)) {
|
|
749
|
-
headers.forEach(function(header) {
|
|
750
|
-
this.append(header[0], header[1]);
|
|
751
|
-
}, this);
|
|
752
|
-
} else if (headers) {
|
|
753
|
-
Object.getOwnPropertyNames(headers).forEach(function(name) {
|
|
754
|
-
this.append(name, headers[name]);
|
|
755
|
-
}, this);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
Headers.prototype.append = function(name, value) {
|
|
760
|
-
name = normalizeName(name);
|
|
761
|
-
value = normalizeValue(value);
|
|
762
|
-
var oldValue = this.map[name];
|
|
763
|
-
this.map[name] = oldValue ? oldValue + ', ' + value : value;
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
Headers.prototype['delete'] = function(name) {
|
|
767
|
-
delete this.map[normalizeName(name)];
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
Headers.prototype.get = function(name) {
|
|
771
|
-
name = normalizeName(name);
|
|
772
|
-
return this.has(name) ? this.map[name] : null
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
Headers.prototype.has = function(name) {
|
|
776
|
-
return this.map.hasOwnProperty(normalizeName(name))
|
|
777
|
-
};
|
|
778
|
-
|
|
779
|
-
Headers.prototype.set = function(name, value) {
|
|
780
|
-
this.map[normalizeName(name)] = normalizeValue(value);
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
Headers.prototype.forEach = function(callback, thisArg) {
|
|
784
|
-
for (var name in this.map) {
|
|
785
|
-
if (this.map.hasOwnProperty(name)) {
|
|
786
|
-
callback.call(thisArg, this.map[name], name, this);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
Headers.prototype.keys = function() {
|
|
792
|
-
var items = [];
|
|
793
|
-
this.forEach(function(value, name) {
|
|
794
|
-
items.push(name);
|
|
795
|
-
});
|
|
796
|
-
return iteratorFor(items)
|
|
797
|
-
};
|
|
798
|
-
|
|
799
|
-
Headers.prototype.values = function() {
|
|
800
|
-
var items = [];
|
|
801
|
-
this.forEach(function(value) {
|
|
802
|
-
items.push(value);
|
|
803
|
-
});
|
|
804
|
-
return iteratorFor(items)
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
Headers.prototype.entries = function() {
|
|
808
|
-
var items = [];
|
|
809
|
-
this.forEach(function(value, name) {
|
|
810
|
-
items.push([name, value]);
|
|
811
|
-
});
|
|
812
|
-
return iteratorFor(items)
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
if (support.iterable) {
|
|
816
|
-
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
function consumed(body) {
|
|
820
|
-
if (body.bodyUsed) {
|
|
821
|
-
return Promise.reject(new TypeError('Already read'))
|
|
822
|
-
}
|
|
823
|
-
body.bodyUsed = true;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
function fileReaderReady(reader) {
|
|
827
|
-
return new Promise(function(resolve, reject) {
|
|
828
|
-
reader.onload = function() {
|
|
829
|
-
resolve(reader.result);
|
|
830
|
-
};
|
|
831
|
-
reader.onerror = function() {
|
|
832
|
-
reject(reader.error);
|
|
833
|
-
};
|
|
834
|
-
})
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
function readBlobAsArrayBuffer(blob) {
|
|
838
|
-
var reader = new FileReader();
|
|
839
|
-
var promise = fileReaderReady(reader);
|
|
840
|
-
reader.readAsArrayBuffer(blob);
|
|
841
|
-
return promise
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
function readBlobAsText(blob) {
|
|
845
|
-
var reader = new FileReader();
|
|
846
|
-
var promise = fileReaderReady(reader);
|
|
847
|
-
reader.readAsText(blob);
|
|
848
|
-
return promise
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
function readArrayBufferAsText(buf) {
|
|
852
|
-
var view = new Uint8Array(buf);
|
|
853
|
-
var chars = new Array(view.length);
|
|
854
|
-
|
|
855
|
-
for (var i = 0; i < view.length; i++) {
|
|
856
|
-
chars[i] = String.fromCharCode(view[i]);
|
|
857
|
-
}
|
|
858
|
-
return chars.join('')
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
function bufferClone(buf) {
|
|
862
|
-
if (buf.slice) {
|
|
863
|
-
return buf.slice(0)
|
|
864
|
-
} else {
|
|
865
|
-
var view = new Uint8Array(buf.byteLength);
|
|
866
|
-
view.set(new Uint8Array(buf));
|
|
867
|
-
return view.buffer
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
function Body() {
|
|
872
|
-
this.bodyUsed = false;
|
|
873
|
-
|
|
874
|
-
this._initBody = function(body) {
|
|
875
|
-
/*
|
|
876
|
-
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
877
|
-
provide useful test harness features such as flush. However, on
|
|
878
|
-
ES5 browsers without fetch or Proxy support pollyfills must be used;
|
|
879
|
-
the proxy-pollyfill is unable to proxy an attribute unless it exists
|
|
880
|
-
on the object before the Proxy is created. This change ensures
|
|
881
|
-
Response.bodyUsed exists on the instance, while maintaining the
|
|
882
|
-
semantic of setting Request.bodyUsed in the constructor before
|
|
883
|
-
_initBody is called.
|
|
884
|
-
*/
|
|
885
|
-
this.bodyUsed = this.bodyUsed;
|
|
886
|
-
this._bodyInit = body;
|
|
887
|
-
if (!body) {
|
|
888
|
-
this._bodyText = '';
|
|
889
|
-
} else if (typeof body === 'string') {
|
|
890
|
-
this._bodyText = body;
|
|
891
|
-
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
|
|
892
|
-
this._bodyBlob = body;
|
|
893
|
-
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
|
|
894
|
-
this._bodyFormData = body;
|
|
895
|
-
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
896
|
-
this._bodyText = body.toString();
|
|
897
|
-
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
|
|
898
|
-
this._bodyArrayBuffer = bufferClone(body.buffer);
|
|
899
|
-
// IE 10-11 can't handle a DataView body.
|
|
900
|
-
this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
901
|
-
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
|
|
902
|
-
this._bodyArrayBuffer = bufferClone(body);
|
|
903
|
-
} else {
|
|
904
|
-
this._bodyText = body = Object.prototype.toString.call(body);
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
if (!this.headers.get('content-type')) {
|
|
908
|
-
if (typeof body === 'string') {
|
|
909
|
-
this.headers.set('content-type', 'text/plain;charset=UTF-8');
|
|
910
|
-
} else if (this._bodyBlob && this._bodyBlob.type) {
|
|
911
|
-
this.headers.set('content-type', this._bodyBlob.type);
|
|
912
|
-
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
|
|
913
|
-
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
if (support.blob) {
|
|
919
|
-
this.blob = function() {
|
|
920
|
-
var rejected = consumed(this);
|
|
921
|
-
if (rejected) {
|
|
922
|
-
return rejected
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
if (this._bodyBlob) {
|
|
926
|
-
return Promise.resolve(this._bodyBlob)
|
|
927
|
-
} else if (this._bodyArrayBuffer) {
|
|
928
|
-
return Promise.resolve(new Blob([this._bodyArrayBuffer]))
|
|
929
|
-
} else if (this._bodyFormData) {
|
|
930
|
-
throw new Error('could not read FormData body as blob')
|
|
931
|
-
} else {
|
|
932
|
-
return Promise.resolve(new Blob([this._bodyText]))
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
this.arrayBuffer = function() {
|
|
937
|
-
if (this._bodyArrayBuffer) {
|
|
938
|
-
var isConsumed = consumed(this);
|
|
939
|
-
if (isConsumed) {
|
|
940
|
-
return isConsumed
|
|
941
|
-
}
|
|
942
|
-
if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
|
|
943
|
-
return Promise.resolve(
|
|
944
|
-
this._bodyArrayBuffer.buffer.slice(
|
|
945
|
-
this._bodyArrayBuffer.byteOffset,
|
|
946
|
-
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
|
947
|
-
)
|
|
948
|
-
)
|
|
949
|
-
} else {
|
|
950
|
-
return Promise.resolve(this._bodyArrayBuffer)
|
|
951
|
-
}
|
|
952
|
-
} else {
|
|
953
|
-
return this.blob().then(readBlobAsArrayBuffer)
|
|
954
|
-
}
|
|
955
|
-
};
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
this.text = function() {
|
|
959
|
-
var rejected = consumed(this);
|
|
960
|
-
if (rejected) {
|
|
961
|
-
return rejected
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
if (this._bodyBlob) {
|
|
965
|
-
return readBlobAsText(this._bodyBlob)
|
|
966
|
-
} else if (this._bodyArrayBuffer) {
|
|
967
|
-
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
|
968
|
-
} else if (this._bodyFormData) {
|
|
969
|
-
throw new Error('could not read FormData body as text')
|
|
970
|
-
} else {
|
|
971
|
-
return Promise.resolve(this._bodyText)
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
|
|
975
|
-
if (support.formData) {
|
|
976
|
-
this.formData = function() {
|
|
977
|
-
return this.text().then(decode)
|
|
978
|
-
};
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
this.json = function() {
|
|
982
|
-
return this.text().then(JSON.parse)
|
|
983
|
-
};
|
|
984
|
-
|
|
985
|
-
return this
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
// HTTP methods whose capitalization should be normalized
|
|
989
|
-
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
|
|
990
|
-
|
|
991
|
-
function normalizeMethod(method) {
|
|
992
|
-
var upcased = method.toUpperCase();
|
|
993
|
-
return methods.indexOf(upcased) > -1 ? upcased : method
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
function Request(input, options) {
|
|
997
|
-
if (!(this instanceof Request)) {
|
|
998
|
-
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
options = options || {};
|
|
1002
|
-
var body = options.body;
|
|
1003
|
-
|
|
1004
|
-
if (input instanceof Request) {
|
|
1005
|
-
if (input.bodyUsed) {
|
|
1006
|
-
throw new TypeError('Already read')
|
|
1007
|
-
}
|
|
1008
|
-
this.url = input.url;
|
|
1009
|
-
this.credentials = input.credentials;
|
|
1010
|
-
if (!options.headers) {
|
|
1011
|
-
this.headers = new Headers(input.headers);
|
|
1012
|
-
}
|
|
1013
|
-
this.method = input.method;
|
|
1014
|
-
this.mode = input.mode;
|
|
1015
|
-
this.signal = input.signal;
|
|
1016
|
-
if (!body && input._bodyInit != null) {
|
|
1017
|
-
body = input._bodyInit;
|
|
1018
|
-
input.bodyUsed = true;
|
|
1019
|
-
}
|
|
1020
|
-
} else {
|
|
1021
|
-
this.url = String(input);
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
this.credentials = options.credentials || this.credentials || 'same-origin';
|
|
1025
|
-
if (options.headers || !this.headers) {
|
|
1026
|
-
this.headers = new Headers(options.headers);
|
|
1027
|
-
}
|
|
1028
|
-
this.method = normalizeMethod(options.method || this.method || 'GET');
|
|
1029
|
-
this.mode = options.mode || this.mode || null;
|
|
1030
|
-
this.signal = options.signal || this.signal;
|
|
1031
|
-
this.referrer = null;
|
|
1032
|
-
|
|
1033
|
-
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
|
1034
|
-
throw new TypeError('Body not allowed for GET or HEAD requests')
|
|
1035
|
-
}
|
|
1036
|
-
this._initBody(body);
|
|
1037
|
-
|
|
1038
|
-
if (this.method === 'GET' || this.method === 'HEAD') {
|
|
1039
|
-
if (options.cache === 'no-store' || options.cache === 'no-cache') {
|
|
1040
|
-
// Search for a '_' parameter in the query string
|
|
1041
|
-
var reParamSearch = /([?&])_=[^&]*/;
|
|
1042
|
-
if (reParamSearch.test(this.url)) {
|
|
1043
|
-
// If it already exists then set the value with the current time
|
|
1044
|
-
this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime());
|
|
1045
|
-
} else {
|
|
1046
|
-
// Otherwise add a new '_' parameter to the end with the current time
|
|
1047
|
-
var reQueryString = /\?/;
|
|
1048
|
-
this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
Request.prototype.clone = function() {
|
|
1055
|
-
return new Request(this, {body: this._bodyInit})
|
|
1056
|
-
};
|
|
1057
|
-
|
|
1058
|
-
function decode(body) {
|
|
1059
|
-
var form = new FormData();
|
|
1060
|
-
body
|
|
1061
|
-
.trim()
|
|
1062
|
-
.split('&')
|
|
1063
|
-
.forEach(function(bytes) {
|
|
1064
|
-
if (bytes) {
|
|
1065
|
-
var split = bytes.split('=');
|
|
1066
|
-
var name = split.shift().replace(/\+/g, ' ');
|
|
1067
|
-
var value = split.join('=').replace(/\+/g, ' ');
|
|
1068
|
-
form.append(decodeURIComponent(name), decodeURIComponent(value));
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
return form
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
function parseHeaders(rawHeaders) {
|
|
1075
|
-
var headers = new Headers();
|
|
1076
|
-
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
1077
|
-
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
1078
|
-
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
1079
|
-
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
1080
|
-
// https://github.com/github/fetch/issues/748
|
|
1081
|
-
// https://github.com/zloirock/core-js/issues/751
|
|
1082
|
-
preProcessedHeaders
|
|
1083
|
-
.split('\r')
|
|
1084
|
-
.map(function(header) {
|
|
1085
|
-
return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header
|
|
1086
|
-
})
|
|
1087
|
-
.forEach(function(line) {
|
|
1088
|
-
var parts = line.split(':');
|
|
1089
|
-
var key = parts.shift().trim();
|
|
1090
|
-
if (key) {
|
|
1091
|
-
var value = parts.join(':').trim();
|
|
1092
|
-
headers.append(key, value);
|
|
1093
|
-
}
|
|
1094
|
-
});
|
|
1095
|
-
return headers
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
Body.call(Request.prototype);
|
|
1099
|
-
|
|
1100
|
-
function Response(bodyInit, options) {
|
|
1101
|
-
if (!(this instanceof Response)) {
|
|
1102
|
-
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
|
|
1103
|
-
}
|
|
1104
|
-
if (!options) {
|
|
1105
|
-
options = {};
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
this.type = 'default';
|
|
1109
|
-
this.status = options.status === undefined ? 200 : options.status;
|
|
1110
|
-
this.ok = this.status >= 200 && this.status < 300;
|
|
1111
|
-
this.statusText = options.statusText === undefined ? '' : '' + options.statusText;
|
|
1112
|
-
this.headers = new Headers(options.headers);
|
|
1113
|
-
this.url = options.url || '';
|
|
1114
|
-
this._initBody(bodyInit);
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
Body.call(Response.prototype);
|
|
1118
|
-
|
|
1119
|
-
Response.prototype.clone = function() {
|
|
1120
|
-
return new Response(this._bodyInit, {
|
|
1121
|
-
status: this.status,
|
|
1122
|
-
statusText: this.statusText,
|
|
1123
|
-
headers: new Headers(this.headers),
|
|
1124
|
-
url: this.url
|
|
1125
|
-
})
|
|
1126
|
-
};
|
|
1127
|
-
|
|
1128
|
-
Response.error = function() {
|
|
1129
|
-
var response = new Response(null, {status: 0, statusText: ''});
|
|
1130
|
-
response.type = 'error';
|
|
1131
|
-
return response
|
|
1132
|
-
};
|
|
1133
|
-
|
|
1134
|
-
var redirectStatuses = [301, 302, 303, 307, 308];
|
|
1135
|
-
|
|
1136
|
-
Response.redirect = function(url, status) {
|
|
1137
|
-
if (redirectStatuses.indexOf(status) === -1) {
|
|
1138
|
-
throw new RangeError('Invalid status code')
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
return new Response(null, {status: status, headers: {location: url}})
|
|
1142
|
-
};
|
|
1143
|
-
|
|
1144
|
-
var DOMException = global$g.DOMException;
|
|
1145
|
-
try {
|
|
1146
|
-
new DOMException();
|
|
1147
|
-
} catch (err) {
|
|
1148
|
-
DOMException = function(message, name) {
|
|
1149
|
-
this.message = message;
|
|
1150
|
-
this.name = name;
|
|
1151
|
-
var error = Error(message);
|
|
1152
|
-
this.stack = error.stack;
|
|
1153
|
-
};
|
|
1154
|
-
DOMException.prototype = Object.create(Error.prototype);
|
|
1155
|
-
DOMException.prototype.constructor = DOMException;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
function fetch(input, init) {
|
|
1159
|
-
return new Promise(function(resolve, reject) {
|
|
1160
|
-
var request = new Request(input, init);
|
|
1161
|
-
|
|
1162
|
-
if (request.signal && request.signal.aborted) {
|
|
1163
|
-
return reject(new DOMException('Aborted', 'AbortError'))
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
var xhr = new XMLHttpRequest();
|
|
1167
|
-
|
|
1168
|
-
function abortXhr() {
|
|
1169
|
-
xhr.abort();
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
xhr.onload = function() {
|
|
1173
|
-
var options = {
|
|
1174
|
-
status: xhr.status,
|
|
1175
|
-
statusText: xhr.statusText,
|
|
1176
|
-
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
|
1177
|
-
};
|
|
1178
|
-
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
|
1179
|
-
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
|
1180
|
-
setTimeout(function() {
|
|
1181
|
-
resolve(new Response(body, options));
|
|
1182
|
-
}, 0);
|
|
1183
|
-
};
|
|
1184
|
-
|
|
1185
|
-
xhr.onerror = function() {
|
|
1186
|
-
setTimeout(function() {
|
|
1187
|
-
reject(new TypeError('Network request failed'));
|
|
1188
|
-
}, 0);
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
|
-
xhr.ontimeout = function() {
|
|
1192
|
-
setTimeout(function() {
|
|
1193
|
-
reject(new TypeError('Network request failed'));
|
|
1194
|
-
}, 0);
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
xhr.onabort = function() {
|
|
1198
|
-
setTimeout(function() {
|
|
1199
|
-
reject(new DOMException('Aborted', 'AbortError'));
|
|
1200
|
-
}, 0);
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
function fixUrl(url) {
|
|
1204
|
-
try {
|
|
1205
|
-
return url === '' && global$g.location.href ? global$g.location.href : url
|
|
1206
|
-
} catch (e) {
|
|
1207
|
-
return url
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
xhr.open(request.method, fixUrl(request.url), true);
|
|
1212
|
-
|
|
1213
|
-
if (request.credentials === 'include') {
|
|
1214
|
-
xhr.withCredentials = true;
|
|
1215
|
-
} else if (request.credentials === 'omit') {
|
|
1216
|
-
xhr.withCredentials = false;
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
if ('responseType' in xhr) {
|
|
1220
|
-
if (support.blob) {
|
|
1221
|
-
xhr.responseType = 'blob';
|
|
1222
|
-
} else if (
|
|
1223
|
-
support.arrayBuffer &&
|
|
1224
|
-
request.headers.get('Content-Type') &&
|
|
1225
|
-
request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
|
|
1226
|
-
) {
|
|
1227
|
-
xhr.responseType = 'arraybuffer';
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
|
|
1232
|
-
Object.getOwnPropertyNames(init.headers).forEach(function(name) {
|
|
1233
|
-
xhr.setRequestHeader(name, normalizeValue(init.headers[name]));
|
|
1234
|
-
});
|
|
1235
|
-
} else {
|
|
1236
|
-
request.headers.forEach(function(value, name) {
|
|
1237
|
-
xhr.setRequestHeader(name, value);
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
if (request.signal) {
|
|
1242
|
-
request.signal.addEventListener('abort', abortXhr);
|
|
1243
|
-
|
|
1244
|
-
xhr.onreadystatechange = function() {
|
|
1245
|
-
// DONE (success or failure)
|
|
1246
|
-
if (xhr.readyState === 4) {
|
|
1247
|
-
request.signal.removeEventListener('abort', abortXhr);
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);
|
|
1253
|
-
})
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
fetch.polyfill = true;
|
|
1257
|
-
|
|
1258
|
-
if (!global$g.fetch) {
|
|
1259
|
-
global$g.fetch = fetch;
|
|
1260
|
-
global$g.Headers = Headers;
|
|
1261
|
-
global$g.Request = Request;
|
|
1262
|
-
global$g.Response = Response;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
/*
|
|
1266
|
-
object-assign
|
|
1267
|
-
(c) Sindre Sorhus
|
|
1268
|
-
@license MIT
|
|
1269
|
-
*/
|
|
1270
|
-
/* eslint-disable no-unused-vars */
|
|
1271
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1272
|
-
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1273
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1274
|
-
|
|
1275
|
-
function toObject$6(val) {
|
|
1276
|
-
if (val === null || val === undefined) {
|
|
1277
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
return Object(val);
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
function shouldUseNative() {
|
|
1284
|
-
try {
|
|
1285
|
-
if (!Object.assign) {
|
|
1286
|
-
return false;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
1290
|
-
|
|
1291
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
1292
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
1293
|
-
test1[5] = 'de';
|
|
1294
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
1295
|
-
return false;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1299
|
-
var test2 = {};
|
|
1300
|
-
for (var i = 0; i < 10; i++) {
|
|
1301
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
1302
|
-
}
|
|
1303
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
1304
|
-
return test2[n];
|
|
1305
|
-
});
|
|
1306
|
-
if (order2.join('') !== '0123456789') {
|
|
1307
|
-
return false;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
1311
|
-
var test3 = {};
|
|
1312
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
1313
|
-
test3[letter] = letter;
|
|
1314
|
-
});
|
|
1315
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
1316
|
-
'abcdefghijklmnopqrst') {
|
|
1317
|
-
return false;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
return true;
|
|
1321
|
-
} catch (err) {
|
|
1322
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
1323
|
-
return false;
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
1328
|
-
var from;
|
|
1329
|
-
var to = toObject$6(target);
|
|
1330
|
-
var symbols;
|
|
1331
|
-
|
|
1332
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
1333
|
-
from = Object(arguments[s]);
|
|
1334
|
-
|
|
1335
|
-
for (var key in from) {
|
|
1336
|
-
if (hasOwnProperty$1.call(from, key)) {
|
|
1337
|
-
to[key] = from[key];
|
|
1338
|
-
}
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
if (getOwnPropertySymbols) {
|
|
1342
|
-
symbols = getOwnPropertySymbols(from);
|
|
1343
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
1344
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
1345
|
-
to[symbols[i]] = from[symbols[i]];
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
return to;
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
var check = function (it) {
|
|
1355
|
-
return it && it.Math == Math && it;
|
|
1356
|
-
};
|
|
1357
|
-
|
|
1358
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1359
|
-
var global$f =
|
|
1360
|
-
// eslint-disable-next-line no-undef
|
|
1361
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
1362
|
-
check(typeof window == 'object' && window) ||
|
|
1363
|
-
check(typeof self == 'object' && self) ||
|
|
1364
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
1365
|
-
// eslint-disable-next-line no-new-func
|
|
1366
|
-
Function('return this')();
|
|
1367
|
-
|
|
1368
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
1369
|
-
|
|
1370
|
-
var fails$9 = function (exec) {
|
|
1371
|
-
try {
|
|
1372
|
-
return !!exec();
|
|
1373
|
-
} catch (error) {
|
|
1374
|
-
return true;
|
|
1375
|
-
}
|
|
1376
|
-
};
|
|
1377
|
-
|
|
1378
|
-
var fails$8 = fails$9;
|
|
1379
|
-
|
|
1380
|
-
// Thank's IE8 for his funny defineProperty
|
|
1381
|
-
var descriptors = !fails$8(function () {
|
|
1382
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
1383
|
-
});
|
|
1384
|
-
|
|
1385
|
-
var objectPropertyIsEnumerable = {};
|
|
1386
|
-
|
|
1387
|
-
var nativePropertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
|
1388
|
-
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
1389
|
-
|
|
1390
|
-
// Nashorn ~ JDK8 bug
|
|
1391
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable$1.call({ 1: 2 }, 1);
|
|
1392
|
-
|
|
1393
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1394
|
-
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1395
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1396
|
-
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
1397
|
-
return !!descriptor && descriptor.enumerable;
|
|
1398
|
-
} : nativePropertyIsEnumerable$1;
|
|
1399
|
-
|
|
1400
|
-
var createPropertyDescriptor$5 = function (bitmap, value) {
|
|
1401
|
-
return {
|
|
1402
|
-
enumerable: !(bitmap & 1),
|
|
1403
|
-
configurable: !(bitmap & 2),
|
|
1404
|
-
writable: !(bitmap & 4),
|
|
1405
|
-
value: value
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
|
|
1409
|
-
var toString$2 = {}.toString;
|
|
1410
|
-
|
|
1411
|
-
var classofRaw$1 = function (it) {
|
|
1412
|
-
return toString$2.call(it).slice(8, -1);
|
|
1413
|
-
};
|
|
1414
|
-
|
|
1415
|
-
var fails$7 = fails$9;
|
|
1416
|
-
var classof$4 = classofRaw$1;
|
|
1417
|
-
|
|
1418
|
-
var split = ''.split;
|
|
1419
|
-
|
|
1420
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1421
|
-
var indexedObject = fails$7(function () {
|
|
1422
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
1423
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
1424
|
-
return !Object('z').propertyIsEnumerable(0);
|
|
1425
|
-
}) ? function (it) {
|
|
1426
|
-
return classof$4(it) == 'String' ? split.call(it, '') : Object(it);
|
|
1427
|
-
} : Object;
|
|
1428
|
-
|
|
1429
|
-
// `RequireObjectCoercible` abstract operation
|
|
1430
|
-
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
|
|
1431
|
-
var requireObjectCoercible$3 = function (it) {
|
|
1432
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
1433
|
-
return it;
|
|
1434
|
-
};
|
|
1435
|
-
|
|
1436
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
1437
|
-
var IndexedObject$1 = indexedObject;
|
|
1438
|
-
var requireObjectCoercible$2 = requireObjectCoercible$3;
|
|
1439
|
-
|
|
1440
|
-
var toIndexedObject$5 = function (it) {
|
|
1441
|
-
return IndexedObject$1(requireObjectCoercible$2(it));
|
|
1442
|
-
};
|
|
1443
|
-
|
|
1444
|
-
var isObject$9 = function (it) {
|
|
1445
|
-
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1448
|
-
var isObject$8 = isObject$9;
|
|
1449
|
-
|
|
1450
|
-
// `ToPrimitive` abstract operation
|
|
1451
|
-
// https://tc39.github.io/ecma262/#sec-toprimitive
|
|
1452
|
-
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
|
1453
|
-
// and the second argument - flag - preferred type is a string
|
|
1454
|
-
var toPrimitive$4 = function (input, PREFERRED_STRING) {
|
|
1455
|
-
if (!isObject$8(input)) return input;
|
|
1456
|
-
var fn, val;
|
|
1457
|
-
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$8(val = fn.call(input))) return val;
|
|
1458
|
-
if (typeof (fn = input.valueOf) == 'function' && !isObject$8(val = fn.call(input))) return val;
|
|
1459
|
-
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$8(val = fn.call(input))) return val;
|
|
1460
|
-
throw TypeError("Can't convert object to primitive value");
|
|
1461
|
-
};
|
|
1462
|
-
|
|
1463
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
1464
|
-
|
|
1465
|
-
var has$c = function (it, key) {
|
|
1466
|
-
return hasOwnProperty.call(it, key);
|
|
1467
|
-
};
|
|
1468
|
-
|
|
1469
|
-
var global$e = global$f;
|
|
1470
|
-
var isObject$7 = isObject$9;
|
|
1471
|
-
|
|
1472
|
-
var document$1 = global$e.document;
|
|
1473
|
-
// typeof document.createElement is 'object' in old IE
|
|
1474
|
-
var EXISTS = isObject$7(document$1) && isObject$7(document$1.createElement);
|
|
1475
|
-
|
|
1476
|
-
var documentCreateElement$1 = function (it) {
|
|
1477
|
-
return EXISTS ? document$1.createElement(it) : {};
|
|
1478
|
-
};
|
|
1479
|
-
|
|
1480
|
-
var DESCRIPTORS$6 = descriptors;
|
|
1481
|
-
var fails$6 = fails$9;
|
|
1482
|
-
var createElement = documentCreateElement$1;
|
|
1483
|
-
|
|
1484
|
-
// Thank's IE8 for his funny defineProperty
|
|
1485
|
-
var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () {
|
|
1486
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
1487
|
-
get: function () { return 7; }
|
|
1488
|
-
}).a != 7;
|
|
1489
|
-
});
|
|
1490
|
-
|
|
1491
|
-
var DESCRIPTORS$5 = descriptors;
|
|
1492
|
-
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
1493
|
-
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
1494
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
1495
|
-
var toPrimitive$3 = toPrimitive$4;
|
|
1496
|
-
var has$b = has$c;
|
|
1497
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
1498
|
-
|
|
1499
|
-
var nativeGetOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
1500
|
-
|
|
1501
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
1502
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
|
|
1503
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? nativeGetOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
1504
|
-
O = toIndexedObject$4(O);
|
|
1505
|
-
P = toPrimitive$3(P, true);
|
|
1506
|
-
if (IE8_DOM_DEFINE$1) try {
|
|
1507
|
-
return nativeGetOwnPropertyDescriptor$1(O, P);
|
|
1508
|
-
} catch (error) { /* empty */ }
|
|
1509
|
-
if (has$b(O, P)) return createPropertyDescriptor$4(!propertyIsEnumerableModule$1.f.call(O, P), O[P]);
|
|
1510
|
-
};
|
|
1511
|
-
|
|
1512
|
-
var objectDefineProperty = {};
|
|
1513
|
-
|
|
1514
|
-
var isObject$6 = isObject$9;
|
|
1515
|
-
|
|
1516
|
-
var anObject$7 = function (it) {
|
|
1517
|
-
if (!isObject$6(it)) {
|
|
1518
|
-
throw TypeError(String(it) + ' is not an object');
|
|
1519
|
-
} return it;
|
|
1520
|
-
};
|
|
1521
|
-
|
|
1522
|
-
var DESCRIPTORS$4 = descriptors;
|
|
1523
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
1524
|
-
var anObject$6 = anObject$7;
|
|
1525
|
-
var toPrimitive$2 = toPrimitive$4;
|
|
1526
|
-
|
|
1527
|
-
var nativeDefineProperty$1 = Object.defineProperty;
|
|
1528
|
-
|
|
1529
|
-
// `Object.defineProperty` method
|
|
1530
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
1531
|
-
objectDefineProperty.f = DESCRIPTORS$4 ? nativeDefineProperty$1 : function defineProperty(O, P, Attributes) {
|
|
1532
|
-
anObject$6(O);
|
|
1533
|
-
P = toPrimitive$2(P, true);
|
|
1534
|
-
anObject$6(Attributes);
|
|
1535
|
-
if (IE8_DOM_DEFINE) try {
|
|
1536
|
-
return nativeDefineProperty$1(O, P, Attributes);
|
|
1537
|
-
} catch (error) { /* empty */ }
|
|
1538
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
1539
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
1540
|
-
return O;
|
|
1541
|
-
};
|
|
1542
|
-
|
|
1543
|
-
var DESCRIPTORS$3 = descriptors;
|
|
1544
|
-
var definePropertyModule$4 = objectDefineProperty;
|
|
1545
|
-
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
1546
|
-
|
|
1547
|
-
var createNonEnumerableProperty$7 = DESCRIPTORS$3 ? function (object, key, value) {
|
|
1548
|
-
return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
|
|
1549
|
-
} : function (object, key, value) {
|
|
1550
|
-
object[key] = value;
|
|
1551
|
-
return object;
|
|
1552
|
-
};
|
|
1553
|
-
|
|
1554
|
-
var redefine$4 = {exports: {}};
|
|
1555
|
-
|
|
1556
|
-
var global$d = global$f;
|
|
1557
|
-
var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
|
|
1558
|
-
|
|
1559
|
-
var setGlobal$3 = function (key, value) {
|
|
1560
|
-
try {
|
|
1561
|
-
createNonEnumerableProperty$6(global$d, key, value);
|
|
1562
|
-
} catch (error) {
|
|
1563
|
-
global$d[key] = value;
|
|
1564
|
-
} return value;
|
|
1565
|
-
};
|
|
1566
|
-
|
|
1567
|
-
var global$c = global$f;
|
|
1568
|
-
var setGlobal$2 = setGlobal$3;
|
|
1569
|
-
|
|
1570
|
-
var SHARED = '__core-js_shared__';
|
|
1571
|
-
var store$3 = global$c[SHARED] || setGlobal$2(SHARED, {});
|
|
1572
|
-
|
|
1573
|
-
var sharedStore = store$3;
|
|
1574
|
-
|
|
1575
|
-
var store$2 = sharedStore;
|
|
1576
|
-
|
|
1577
|
-
var functionToString = Function.toString;
|
|
1578
|
-
|
|
1579
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1580
|
-
if (typeof store$2.inspectSource != 'function') {
|
|
1581
|
-
store$2.inspectSource = function (it) {
|
|
1582
|
-
return functionToString.call(it);
|
|
1583
|
-
};
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
var inspectSource$2 = store$2.inspectSource;
|
|
1587
|
-
|
|
1588
|
-
var global$b = global$f;
|
|
1589
|
-
var inspectSource$1 = inspectSource$2;
|
|
1590
|
-
|
|
1591
|
-
var WeakMap$1 = global$b.WeakMap;
|
|
1592
|
-
|
|
1593
|
-
var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource$1(WeakMap$1));
|
|
1594
|
-
|
|
1595
|
-
var shared$3 = {exports: {}};
|
|
1596
|
-
|
|
1597
|
-
var store$1 = sharedStore;
|
|
1598
|
-
|
|
1599
|
-
(shared$3.exports = function (key, value) {
|
|
1600
|
-
return store$1[key] || (store$1[key] = value !== undefined ? value : {});
|
|
1601
|
-
})('versions', []).push({
|
|
1602
|
-
version: '3.6.5',
|
|
1603
|
-
mode: 'global',
|
|
1604
|
-
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
|
1605
|
-
});
|
|
1606
|
-
|
|
1607
|
-
var id = 0;
|
|
1608
|
-
var postfix = Math.random();
|
|
1609
|
-
|
|
1610
|
-
var uid$3 = function (key) {
|
|
1611
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
1612
|
-
};
|
|
1613
|
-
|
|
1614
|
-
var shared$2 = shared$3.exports;
|
|
1615
|
-
var uid$2 = uid$3;
|
|
1616
|
-
|
|
1617
|
-
var keys = shared$2('keys');
|
|
1618
|
-
|
|
1619
|
-
var sharedKey$4 = function (key) {
|
|
1620
|
-
return keys[key] || (keys[key] = uid$2(key));
|
|
1621
|
-
};
|
|
1622
|
-
|
|
1623
|
-
var hiddenKeys$5 = {};
|
|
1624
|
-
|
|
1625
|
-
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
1626
|
-
var global$a = global$f;
|
|
1627
|
-
var isObject$5 = isObject$9;
|
|
1628
|
-
var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
|
|
1629
|
-
var objectHas = has$c;
|
|
1630
|
-
var sharedKey$3 = sharedKey$4;
|
|
1631
|
-
var hiddenKeys$4 = hiddenKeys$5;
|
|
1632
|
-
|
|
1633
|
-
var WeakMap = global$a.WeakMap;
|
|
1634
|
-
var set, get, has$a;
|
|
1635
|
-
|
|
1636
|
-
var enforce = function (it) {
|
|
1637
|
-
return has$a(it) ? get(it) : set(it, {});
|
|
1638
|
-
};
|
|
1639
|
-
|
|
1640
|
-
var getterFor = function (TYPE) {
|
|
1641
|
-
return function (it) {
|
|
1642
|
-
var state;
|
|
1643
|
-
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
1644
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
1645
|
-
} return state;
|
|
1646
|
-
};
|
|
1647
|
-
};
|
|
1648
|
-
|
|
1649
|
-
if (NATIVE_WEAK_MAP) {
|
|
1650
|
-
var store = new WeakMap();
|
|
1651
|
-
var wmget = store.get;
|
|
1652
|
-
var wmhas = store.has;
|
|
1653
|
-
var wmset = store.set;
|
|
1654
|
-
set = function (it, metadata) {
|
|
1655
|
-
wmset.call(store, it, metadata);
|
|
1656
|
-
return metadata;
|
|
1657
|
-
};
|
|
1658
|
-
get = function (it) {
|
|
1659
|
-
return wmget.call(store, it) || {};
|
|
1660
|
-
};
|
|
1661
|
-
has$a = function (it) {
|
|
1662
|
-
return wmhas.call(store, it);
|
|
1663
|
-
};
|
|
1664
|
-
} else {
|
|
1665
|
-
var STATE = sharedKey$3('state');
|
|
1666
|
-
hiddenKeys$4[STATE] = true;
|
|
1667
|
-
set = function (it, metadata) {
|
|
1668
|
-
createNonEnumerableProperty$5(it, STATE, metadata);
|
|
1669
|
-
return metadata;
|
|
1670
|
-
};
|
|
1671
|
-
get = function (it) {
|
|
1672
|
-
return objectHas(it, STATE) ? it[STATE] : {};
|
|
1673
|
-
};
|
|
1674
|
-
has$a = function (it) {
|
|
1675
|
-
return objectHas(it, STATE);
|
|
1676
|
-
};
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
var internalState = {
|
|
1680
|
-
set: set,
|
|
1681
|
-
get: get,
|
|
1682
|
-
has: has$a,
|
|
1683
|
-
enforce: enforce,
|
|
1684
|
-
getterFor: getterFor
|
|
1685
|
-
};
|
|
1686
|
-
|
|
1687
|
-
var global$9 = global$f;
|
|
1688
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
|
|
1689
|
-
var has$9 = has$c;
|
|
1690
|
-
var setGlobal$1 = setGlobal$3;
|
|
1691
|
-
var inspectSource = inspectSource$2;
|
|
1692
|
-
var InternalStateModule$2 = internalState;
|
|
1693
|
-
|
|
1694
|
-
var getInternalState$2 = InternalStateModule$2.get;
|
|
1695
|
-
var enforceInternalState = InternalStateModule$2.enforce;
|
|
1696
|
-
var TEMPLATE = String(String).split('String');
|
|
1697
|
-
|
|
1698
|
-
(redefine$4.exports = function (O, key, value, options) {
|
|
1699
|
-
var unsafe = options ? !!options.unsafe : false;
|
|
1700
|
-
var simple = options ? !!options.enumerable : false;
|
|
1701
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
1702
|
-
if (typeof value == 'function') {
|
|
1703
|
-
if (typeof key == 'string' && !has$9(value, 'name')) createNonEnumerableProperty$4(value, 'name', key);
|
|
1704
|
-
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
1705
|
-
}
|
|
1706
|
-
if (O === global$9) {
|
|
1707
|
-
if (simple) O[key] = value;
|
|
1708
|
-
else setGlobal$1(key, value);
|
|
1709
|
-
return;
|
|
1710
|
-
} else if (!unsafe) {
|
|
1711
|
-
delete O[key];
|
|
1712
|
-
} else if (!noTargetGet && O[key]) {
|
|
1713
|
-
simple = true;
|
|
1714
|
-
}
|
|
1715
|
-
if (simple) O[key] = value;
|
|
1716
|
-
else createNonEnumerableProperty$4(O, key, value);
|
|
1717
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1718
|
-
})(Function.prototype, 'toString', function toString() {
|
|
1719
|
-
return typeof this == 'function' && getInternalState$2(this).source || inspectSource(this);
|
|
1720
|
-
});
|
|
1721
|
-
|
|
1722
|
-
var global$8 = global$f;
|
|
1723
|
-
|
|
1724
|
-
var path$4 = global$8;
|
|
1725
|
-
|
|
1726
|
-
var path$3 = path$4;
|
|
1727
|
-
var global$7 = global$f;
|
|
1728
|
-
|
|
1729
|
-
var aFunction$2 = function (variable) {
|
|
1730
|
-
return typeof variable == 'function' ? variable : undefined;
|
|
1731
|
-
};
|
|
1732
|
-
|
|
1733
|
-
var getBuiltIn$4 = function (namespace, method) {
|
|
1734
|
-
return arguments.length < 2 ? aFunction$2(path$3[namespace]) || aFunction$2(global$7[namespace])
|
|
1735
|
-
: path$3[namespace] && path$3[namespace][method] || global$7[namespace] && global$7[namespace][method];
|
|
1736
|
-
};
|
|
1737
|
-
|
|
1738
|
-
var objectGetOwnPropertyNames = {};
|
|
1739
|
-
|
|
1740
|
-
var ceil = Math.ceil;
|
|
1741
|
-
var floor = Math.floor;
|
|
1742
|
-
|
|
1743
|
-
// `ToInteger` abstract operation
|
|
1744
|
-
// https://tc39.github.io/ecma262/#sec-tointeger
|
|
1745
|
-
var toInteger$3 = function (argument) {
|
|
1746
|
-
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
|
1747
|
-
};
|
|
1748
|
-
|
|
1749
|
-
var toInteger$2 = toInteger$3;
|
|
1750
|
-
|
|
1751
|
-
var min$1 = Math.min;
|
|
1752
|
-
|
|
1753
|
-
// `ToLength` abstract operation
|
|
1754
|
-
// https://tc39.github.io/ecma262/#sec-tolength
|
|
1755
|
-
var toLength$4 = function (argument) {
|
|
1756
|
-
return argument > 0 ? min$1(toInteger$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
1757
|
-
};
|
|
1758
|
-
|
|
1759
|
-
var toInteger$1 = toInteger$3;
|
|
1760
|
-
|
|
1761
|
-
var max = Math.max;
|
|
1762
|
-
var min = Math.min;
|
|
1763
|
-
|
|
1764
|
-
// Helper for a popular repeating case of the spec:
|
|
1765
|
-
// Let integer be ? ToInteger(index).
|
|
1766
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
1767
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
1768
|
-
var integer = toInteger$1(index);
|
|
1769
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
1770
|
-
};
|
|
1771
|
-
|
|
1772
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
1773
|
-
var toLength$3 = toLength$4;
|
|
1774
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
1775
|
-
|
|
1776
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
1777
|
-
var createMethod$2 = function (IS_INCLUDES) {
|
|
1778
|
-
return function ($this, el, fromIndex) {
|
|
1779
|
-
var O = toIndexedObject$3($this);
|
|
1780
|
-
var length = toLength$3(O.length);
|
|
1781
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
1782
|
-
var value;
|
|
1783
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
1784
|
-
// eslint-disable-next-line no-self-compare
|
|
1785
|
-
if (IS_INCLUDES && el != el) while (length > index) {
|
|
1786
|
-
value = O[index++];
|
|
1787
|
-
// eslint-disable-next-line no-self-compare
|
|
1788
|
-
if (value != value) return true;
|
|
1789
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
1790
|
-
} else for (;length > index; index++) {
|
|
1791
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
1792
|
-
} return !IS_INCLUDES && -1;
|
|
1793
|
-
};
|
|
1794
|
-
};
|
|
1795
|
-
|
|
1796
|
-
var arrayIncludes = {
|
|
1797
|
-
// `Array.prototype.includes` method
|
|
1798
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
|
|
1799
|
-
includes: createMethod$2(true),
|
|
1800
|
-
// `Array.prototype.indexOf` method
|
|
1801
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
|
|
1802
|
-
indexOf: createMethod$2(false)
|
|
1803
|
-
};
|
|
1804
|
-
|
|
1805
|
-
var has$8 = has$c;
|
|
1806
|
-
var toIndexedObject$2 = toIndexedObject$5;
|
|
1807
|
-
var indexOf = arrayIncludes.indexOf;
|
|
1808
|
-
var hiddenKeys$3 = hiddenKeys$5;
|
|
1809
|
-
|
|
1810
|
-
var objectKeysInternal = function (object, names) {
|
|
1811
|
-
var O = toIndexedObject$2(object);
|
|
1812
|
-
var i = 0;
|
|
1813
|
-
var result = [];
|
|
1814
|
-
var key;
|
|
1815
|
-
for (key in O) !has$8(hiddenKeys$3, key) && has$8(O, key) && result.push(key);
|
|
1816
|
-
// Don't enum bug & hidden keys
|
|
1817
|
-
while (names.length > i) if (has$8(O, key = names[i++])) {
|
|
1818
|
-
~indexOf(result, key) || result.push(key);
|
|
1819
|
-
}
|
|
1820
|
-
return result;
|
|
1821
|
-
};
|
|
1822
|
-
|
|
1823
|
-
// IE8- don't enum bug keys
|
|
1824
|
-
var enumBugKeys$3 = [
|
|
1825
|
-
'constructor',
|
|
1826
|
-
'hasOwnProperty',
|
|
1827
|
-
'isPrototypeOf',
|
|
1828
|
-
'propertyIsEnumerable',
|
|
1829
|
-
'toLocaleString',
|
|
1830
|
-
'toString',
|
|
1831
|
-
'valueOf'
|
|
1832
|
-
];
|
|
1833
|
-
|
|
1834
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
1835
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
1836
|
-
|
|
1837
|
-
var hiddenKeys$2 = enumBugKeys$2.concat('length', 'prototype');
|
|
1838
|
-
|
|
1839
|
-
// `Object.getOwnPropertyNames` method
|
|
1840
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
1841
|
-
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1842
|
-
return internalObjectKeys$1(O, hiddenKeys$2);
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
var objectGetOwnPropertySymbols = {};
|
|
1846
|
-
|
|
1847
|
-
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1848
|
-
|
|
1849
|
-
var getBuiltIn$3 = getBuiltIn$4;
|
|
1850
|
-
var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
|
|
1851
|
-
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1852
|
-
var anObject$5 = anObject$7;
|
|
1853
|
-
|
|
1854
|
-
// all object keys, includes non-enumerable and symbols
|
|
1855
|
-
var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1856
|
-
var keys = getOwnPropertyNamesModule$1.f(anObject$5(it));
|
|
1857
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1858
|
-
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
1859
|
-
};
|
|
1860
|
-
|
|
1861
|
-
var has$7 = has$c;
|
|
1862
|
-
var ownKeys = ownKeys$1;
|
|
1863
|
-
var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
|
|
1864
|
-
var definePropertyModule$3 = objectDefineProperty;
|
|
1865
|
-
|
|
1866
|
-
var copyConstructorProperties$2 = function (target, source) {
|
|
1867
|
-
var keys = ownKeys(source);
|
|
1868
|
-
var defineProperty = definePropertyModule$3.f;
|
|
1869
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
|
|
1870
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1871
|
-
var key = keys[i];
|
|
1872
|
-
if (!has$7(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1873
|
-
}
|
|
1874
|
-
};
|
|
1875
|
-
|
|
1876
|
-
var fails$5 = fails$9;
|
|
1877
|
-
|
|
1878
|
-
var replacement = /#|\.prototype\./;
|
|
1879
|
-
|
|
1880
|
-
var isForced$1 = function (feature, detection) {
|
|
1881
|
-
var value = data[normalize(feature)];
|
|
1882
|
-
return value == POLYFILL ? true
|
|
1883
|
-
: value == NATIVE ? false
|
|
1884
|
-
: typeof detection == 'function' ? fails$5(detection)
|
|
1885
|
-
: !!detection;
|
|
1886
|
-
};
|
|
1887
|
-
|
|
1888
|
-
var normalize = isForced$1.normalize = function (string) {
|
|
1889
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
1890
|
-
};
|
|
1891
|
-
|
|
1892
|
-
var data = isForced$1.data = {};
|
|
1893
|
-
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1894
|
-
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
1895
|
-
|
|
1896
|
-
var isForced_1 = isForced$1;
|
|
1897
|
-
|
|
1898
|
-
var global$6 = global$f;
|
|
1899
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1900
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
|
|
1901
|
-
var redefine$3 = redefine$4.exports;
|
|
1902
|
-
var setGlobal = setGlobal$3;
|
|
1903
|
-
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1904
|
-
var isForced = isForced_1;
|
|
1905
|
-
|
|
1906
|
-
/*
|
|
1907
|
-
options.target - name of the target object
|
|
1908
|
-
options.global - target is the global object
|
|
1909
|
-
options.stat - export as static methods of target
|
|
1910
|
-
options.proto - export as prototype methods of target
|
|
1911
|
-
options.real - real prototype method for the `pure` version
|
|
1912
|
-
options.forced - export even if the native feature is available
|
|
1913
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
1914
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
1915
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
1916
|
-
options.sham - add a flag to not completely full polyfills
|
|
1917
|
-
options.enumerable - export as enumerable property
|
|
1918
|
-
options.noTargetGet - prevent calling a getter on target
|
|
1919
|
-
*/
|
|
1920
|
-
var _export = function (options, source) {
|
|
1921
|
-
var TARGET = options.target;
|
|
1922
|
-
var GLOBAL = options.global;
|
|
1923
|
-
var STATIC = options.stat;
|
|
1924
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1925
|
-
if (GLOBAL) {
|
|
1926
|
-
target = global$6;
|
|
1927
|
-
} else if (STATIC) {
|
|
1928
|
-
target = global$6[TARGET] || setGlobal(TARGET, {});
|
|
1929
|
-
} else {
|
|
1930
|
-
target = (global$6[TARGET] || {}).prototype;
|
|
1931
|
-
}
|
|
1932
|
-
if (target) for (key in source) {
|
|
1933
|
-
sourceProperty = source[key];
|
|
1934
|
-
if (options.noTargetGet) {
|
|
1935
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1936
|
-
targetProperty = descriptor && descriptor.value;
|
|
1937
|
-
} else targetProperty = target[key];
|
|
1938
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1939
|
-
// contained in target
|
|
1940
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
1941
|
-
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
1942
|
-
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
1943
|
-
}
|
|
1944
|
-
// add a flag to not completely full polyfills
|
|
1945
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1946
|
-
createNonEnumerableProperty$3(sourceProperty, 'sham', true);
|
|
1947
|
-
}
|
|
1948
|
-
// extend global
|
|
1949
|
-
redefine$3(target, key, sourceProperty, options);
|
|
1950
|
-
}
|
|
1951
|
-
};
|
|
1952
|
-
|
|
1953
|
-
var classof$3 = classofRaw$1;
|
|
1954
|
-
|
|
1955
|
-
// `IsArray` abstract operation
|
|
1956
|
-
// https://tc39.github.io/ecma262/#sec-isarray
|
|
1957
|
-
var isArray$3 = Array.isArray || function isArray(arg) {
|
|
1958
|
-
return classof$3(arg) == 'Array';
|
|
1959
|
-
};
|
|
1960
|
-
|
|
1961
|
-
var requireObjectCoercible$1 = requireObjectCoercible$3;
|
|
1962
|
-
|
|
1963
|
-
// `ToObject` abstract operation
|
|
1964
|
-
// https://tc39.github.io/ecma262/#sec-toobject
|
|
1965
|
-
var toObject$5 = function (argument) {
|
|
1966
|
-
return Object(requireObjectCoercible$1(argument));
|
|
1967
|
-
};
|
|
1968
|
-
|
|
1969
|
-
var toPrimitive$1 = toPrimitive$4;
|
|
1970
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
1971
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
1972
|
-
|
|
1973
|
-
var createProperty$2 = function (object, key, value) {
|
|
1974
|
-
var propertyKey = toPrimitive$1(key);
|
|
1975
|
-
if (propertyKey in object) definePropertyModule$2.f(object, propertyKey, createPropertyDescriptor$2(0, value));
|
|
1976
|
-
else object[propertyKey] = value;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
var fails$4 = fails$9;
|
|
1980
|
-
|
|
1981
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$4(function () {
|
|
1982
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
1983
|
-
// eslint-disable-next-line no-undef
|
|
1984
|
-
return !String(Symbol());
|
|
1985
|
-
});
|
|
1986
|
-
|
|
1987
|
-
var NATIVE_SYMBOL$2 = nativeSymbol;
|
|
1988
|
-
|
|
1989
|
-
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
1990
|
-
// eslint-disable-next-line no-undef
|
|
1991
|
-
&& !Symbol.sham
|
|
1992
|
-
// eslint-disable-next-line no-undef
|
|
1993
|
-
&& typeof Symbol.iterator == 'symbol';
|
|
1994
|
-
|
|
1995
|
-
var global$5 = global$f;
|
|
1996
|
-
var shared$1 = shared$3.exports;
|
|
1997
|
-
var has$6 = has$c;
|
|
1998
|
-
var uid$1 = uid$3;
|
|
1999
|
-
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
2000
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
2001
|
-
|
|
2002
|
-
var WellKnownSymbolsStore$1 = shared$1('wks');
|
|
2003
|
-
var Symbol$1 = global$5.Symbol;
|
|
2004
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
2005
|
-
|
|
2006
|
-
var wellKnownSymbol$d = function (name) {
|
|
2007
|
-
if (!has$6(WellKnownSymbolsStore$1, name)) {
|
|
2008
|
-
if (NATIVE_SYMBOL$1 && has$6(Symbol$1, name)) WellKnownSymbolsStore$1[name] = Symbol$1[name];
|
|
2009
|
-
else WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name);
|
|
2010
|
-
} return WellKnownSymbolsStore$1[name];
|
|
2011
|
-
};
|
|
2012
|
-
|
|
2013
|
-
var isObject$4 = isObject$9;
|
|
2014
|
-
var isArray$2 = isArray$3;
|
|
2015
|
-
var wellKnownSymbol$c = wellKnownSymbol$d;
|
|
2016
|
-
|
|
2017
|
-
var SPECIES$1 = wellKnownSymbol$c('species');
|
|
2018
|
-
|
|
2019
|
-
// `ArraySpeciesCreate` abstract operation
|
|
2020
|
-
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate
|
|
2021
|
-
var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
2022
|
-
var C;
|
|
2023
|
-
if (isArray$2(originalArray)) {
|
|
2024
|
-
C = originalArray.constructor;
|
|
2025
|
-
// cross-realm fallback
|
|
2026
|
-
if (typeof C == 'function' && (C === Array || isArray$2(C.prototype))) C = undefined;
|
|
2027
|
-
else if (isObject$4(C)) {
|
|
2028
|
-
C = C[SPECIES$1];
|
|
2029
|
-
if (C === null) C = undefined;
|
|
2030
|
-
}
|
|
2031
|
-
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
|
2032
|
-
};
|
|
2033
|
-
|
|
2034
|
-
var getBuiltIn$2 = getBuiltIn$4;
|
|
2035
|
-
|
|
2036
|
-
var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
|
|
2037
|
-
|
|
2038
|
-
var global$4 = global$f;
|
|
2039
|
-
var userAgent = engineUserAgent;
|
|
2040
|
-
|
|
2041
|
-
var process = global$4.process;
|
|
2042
|
-
var versions = process && process.versions;
|
|
2043
|
-
var v8 = versions && versions.v8;
|
|
2044
|
-
var match, version;
|
|
2045
|
-
|
|
2046
|
-
if (v8) {
|
|
2047
|
-
match = v8.split('.');
|
|
2048
|
-
version = match[0] + match[1];
|
|
2049
|
-
} else if (userAgent) {
|
|
2050
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
2051
|
-
if (!match || match[1] >= 74) {
|
|
2052
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
2053
|
-
if (match) version = match[1];
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
var engineV8Version = version && +version;
|
|
2058
|
-
|
|
2059
|
-
var fails$3 = fails$9;
|
|
2060
|
-
var wellKnownSymbol$b = wellKnownSymbol$d;
|
|
2061
|
-
var V8_VERSION$1 = engineV8Version;
|
|
2062
|
-
|
|
2063
|
-
var SPECIES = wellKnownSymbol$b('species');
|
|
2064
|
-
|
|
2065
|
-
var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
|
|
2066
|
-
// We can't use this feature detection in V8 since it causes
|
|
2067
|
-
// deoptimization and serious performance degradation
|
|
2068
|
-
// https://github.com/zloirock/core-js/issues/677
|
|
2069
|
-
return V8_VERSION$1 >= 51 || !fails$3(function () {
|
|
2070
|
-
var array = [];
|
|
2071
|
-
var constructor = array.constructor = {};
|
|
2072
|
-
constructor[SPECIES] = function () {
|
|
2073
|
-
return { foo: 1 };
|
|
2074
|
-
};
|
|
2075
|
-
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
2076
|
-
});
|
|
2077
|
-
};
|
|
2078
|
-
|
|
2079
|
-
var $$4 = _export;
|
|
2080
|
-
var fails$2 = fails$9;
|
|
2081
|
-
var isArray$1 = isArray$3;
|
|
2082
|
-
var isObject$3 = isObject$9;
|
|
2083
|
-
var toObject$4 = toObject$5;
|
|
2084
|
-
var toLength$2 = toLength$4;
|
|
2085
|
-
var createProperty$1 = createProperty$2;
|
|
2086
|
-
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
2087
|
-
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
|
|
2088
|
-
var wellKnownSymbol$a = wellKnownSymbol$d;
|
|
2089
|
-
var V8_VERSION = engineV8Version;
|
|
2090
|
-
|
|
2091
|
-
var IS_CONCAT_SPREADABLE = wellKnownSymbol$a('isConcatSpreadable');
|
|
2092
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
2093
|
-
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
2094
|
-
|
|
2095
|
-
// We can't use this feature detection in V8 since it causes
|
|
2096
|
-
// deoptimization and serious performance degradation
|
|
2097
|
-
// https://github.com/zloirock/core-js/issues/679
|
|
2098
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
|
|
2099
|
-
var array = [];
|
|
2100
|
-
array[IS_CONCAT_SPREADABLE] = false;
|
|
2101
|
-
return array.concat()[0] !== array;
|
|
2102
|
-
});
|
|
2103
|
-
|
|
2104
|
-
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
|
2105
|
-
|
|
2106
|
-
var isConcatSpreadable = function (O) {
|
|
2107
|
-
if (!isObject$3(O)) return false;
|
|
2108
|
-
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
2109
|
-
return spreadable !== undefined ? !!spreadable : isArray$1(O);
|
|
2110
|
-
};
|
|
2111
|
-
|
|
2112
|
-
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
2113
|
-
|
|
2114
|
-
// `Array.prototype.concat` method
|
|
2115
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.concat
|
|
2116
|
-
// with adding support of @@isConcatSpreadable and @@species
|
|
2117
|
-
$$4({ target: 'Array', proto: true, forced: FORCED }, {
|
|
2118
|
-
concat: function concat(arg) { // eslint-disable-line no-unused-vars
|
|
2119
|
-
var O = toObject$4(this);
|
|
2120
|
-
var A = arraySpeciesCreate$1(O, 0);
|
|
2121
|
-
var n = 0;
|
|
2122
|
-
var i, k, length, len, E;
|
|
2123
|
-
for (i = -1, length = arguments.length; i < length; i++) {
|
|
2124
|
-
E = i === -1 ? O : arguments[i];
|
|
2125
|
-
if (isConcatSpreadable(E)) {
|
|
2126
|
-
len = toLength$2(E.length);
|
|
2127
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
2128
|
-
for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
|
|
2129
|
-
} else {
|
|
2130
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
2131
|
-
createProperty$1(A, n++, E);
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
|
-
A.length = n;
|
|
2135
|
-
return A;
|
|
2136
|
-
}
|
|
2137
|
-
});
|
|
2138
|
-
|
|
2139
|
-
var wellKnownSymbol$9 = wellKnownSymbol$d;
|
|
2140
|
-
|
|
2141
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$9('toStringTag');
|
|
2142
|
-
var test = {};
|
|
2143
|
-
|
|
2144
|
-
test[TO_STRING_TAG$2] = 'z';
|
|
2145
|
-
|
|
2146
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
2147
|
-
|
|
2148
|
-
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
2149
|
-
var classofRaw = classofRaw$1;
|
|
2150
|
-
var wellKnownSymbol$8 = wellKnownSymbol$d;
|
|
2151
|
-
|
|
2152
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
2153
|
-
// ES3 wrong here
|
|
2154
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
2155
|
-
|
|
2156
|
-
// fallback for IE11 Script Access Denied error
|
|
2157
|
-
var tryGet = function (it, key) {
|
|
2158
|
-
try {
|
|
2159
|
-
return it[key];
|
|
2160
|
-
} catch (error) { /* empty */ }
|
|
2161
|
-
};
|
|
2162
|
-
|
|
2163
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
2164
|
-
var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
2165
|
-
var O, tag, result;
|
|
2166
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2167
|
-
// @@toStringTag case
|
|
2168
|
-
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
|
|
2169
|
-
// builtinTag case
|
|
2170
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2171
|
-
// ES3 arguments fallback
|
|
2172
|
-
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
|
|
2173
|
-
};
|
|
2174
|
-
|
|
2175
|
-
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
2176
|
-
var classof$1 = classof$2;
|
|
2177
|
-
|
|
2178
|
-
// `Object.prototype.toString` method implementation
|
|
2179
|
-
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
2180
|
-
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
2181
|
-
return '[object ' + classof$1(this) + ']';
|
|
2182
|
-
};
|
|
2183
|
-
|
|
2184
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2185
|
-
var redefine$2 = redefine$4.exports;
|
|
2186
|
-
var toString$1 = objectToString;
|
|
2187
|
-
|
|
2188
|
-
// `Object.prototype.toString` method
|
|
2189
|
-
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
|
|
2190
|
-
if (!TO_STRING_TAG_SUPPORT) {
|
|
2191
|
-
redefine$2(Object.prototype, 'toString', toString$1, { unsafe: true });
|
|
2192
|
-
}
|
|
2193
|
-
|
|
2194
|
-
var internalObjectKeys = objectKeysInternal;
|
|
2195
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
2196
|
-
|
|
2197
|
-
// `Object.keys` method
|
|
2198
|
-
// https://tc39.github.io/ecma262/#sec-object.keys
|
|
2199
|
-
var objectKeys$2 = Object.keys || function keys(O) {
|
|
2200
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
2201
|
-
};
|
|
2202
|
-
|
|
2203
|
-
var DESCRIPTORS$2 = descriptors;
|
|
2204
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
2205
|
-
var anObject$4 = anObject$7;
|
|
2206
|
-
var objectKeys$1 = objectKeys$2;
|
|
2207
|
-
|
|
2208
|
-
// `Object.defineProperties` method
|
|
2209
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperties
|
|
2210
|
-
var objectDefineProperties = DESCRIPTORS$2 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2211
|
-
anObject$4(O);
|
|
2212
|
-
var keys = objectKeys$1(Properties);
|
|
2213
|
-
var length = keys.length;
|
|
2214
|
-
var index = 0;
|
|
2215
|
-
var key;
|
|
2216
|
-
while (length > index) definePropertyModule$1.f(O, key = keys[index++], Properties[key]);
|
|
2217
|
-
return O;
|
|
2218
|
-
};
|
|
2219
|
-
|
|
2220
|
-
var getBuiltIn$1 = getBuiltIn$4;
|
|
2221
|
-
|
|
2222
|
-
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
2223
|
-
|
|
2224
|
-
var anObject$3 = anObject$7;
|
|
2225
|
-
var defineProperties = objectDefineProperties;
|
|
2226
|
-
var enumBugKeys = enumBugKeys$3;
|
|
2227
|
-
var hiddenKeys$1 = hiddenKeys$5;
|
|
2228
|
-
var html = html$1;
|
|
2229
|
-
var documentCreateElement = documentCreateElement$1;
|
|
2230
|
-
var sharedKey$2 = sharedKey$4;
|
|
2231
|
-
|
|
2232
|
-
var GT = '>';
|
|
2233
|
-
var LT = '<';
|
|
2234
|
-
var PROTOTYPE$1 = 'prototype';
|
|
2235
|
-
var SCRIPT = 'script';
|
|
2236
|
-
var IE_PROTO$1 = sharedKey$2('IE_PROTO');
|
|
2237
|
-
|
|
2238
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
2239
|
-
|
|
2240
|
-
var scriptTag = function (content) {
|
|
2241
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
2242
|
-
};
|
|
2243
|
-
|
|
2244
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
2245
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
2246
|
-
activeXDocument.write(scriptTag(''));
|
|
2247
|
-
activeXDocument.close();
|
|
2248
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
2249
|
-
activeXDocument = null; // avoid memory leak
|
|
2250
|
-
return temp;
|
|
2251
|
-
};
|
|
2252
|
-
|
|
2253
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
2254
|
-
var NullProtoObjectViaIFrame = function () {
|
|
2255
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
2256
|
-
var iframe = documentCreateElement('iframe');
|
|
2257
|
-
var JS = 'java' + SCRIPT + ':';
|
|
2258
|
-
var iframeDocument;
|
|
2259
|
-
iframe.style.display = 'none';
|
|
2260
|
-
html.appendChild(iframe);
|
|
2261
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
2262
|
-
iframe.src = String(JS);
|
|
2263
|
-
iframeDocument = iframe.contentWindow.document;
|
|
2264
|
-
iframeDocument.open();
|
|
2265
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
2266
|
-
iframeDocument.close();
|
|
2267
|
-
return iframeDocument.F;
|
|
2268
|
-
};
|
|
2269
|
-
|
|
2270
|
-
// Check for document.domain and active x support
|
|
2271
|
-
// No need to use active x approach when document.domain is not set
|
|
2272
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
2273
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
2274
|
-
// avoid IE GC bug
|
|
2275
|
-
var activeXDocument;
|
|
2276
|
-
var NullProtoObject = function () {
|
|
2277
|
-
try {
|
|
2278
|
-
/* global ActiveXObject */
|
|
2279
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
2280
|
-
} catch (error) { /* ignore */ }
|
|
2281
|
-
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
|
2282
|
-
var length = enumBugKeys.length;
|
|
2283
|
-
while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys[length]];
|
|
2284
|
-
return NullProtoObject();
|
|
2285
|
-
};
|
|
2286
|
-
|
|
2287
|
-
hiddenKeys$1[IE_PROTO$1] = true;
|
|
2288
|
-
|
|
2289
|
-
// `Object.create` method
|
|
2290
|
-
// https://tc39.github.io/ecma262/#sec-object.create
|
|
2291
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
2292
|
-
var result;
|
|
2293
|
-
if (O !== null) {
|
|
2294
|
-
EmptyConstructor[PROTOTYPE$1] = anObject$3(O);
|
|
2295
|
-
result = new EmptyConstructor();
|
|
2296
|
-
EmptyConstructor[PROTOTYPE$1] = null;
|
|
2297
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
2298
|
-
result[IE_PROTO$1] = O;
|
|
2299
|
-
} else result = NullProtoObject();
|
|
2300
|
-
return Properties === undefined ? result : defineProperties(result, Properties);
|
|
2301
|
-
};
|
|
2302
|
-
|
|
2303
|
-
var objectGetOwnPropertyNamesExternal = {};
|
|
2304
|
-
|
|
2305
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
2306
|
-
var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
|
|
2307
|
-
|
|
2308
|
-
var toString = {}.toString;
|
|
2309
|
-
|
|
2310
|
-
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
|
2311
|
-
? Object.getOwnPropertyNames(window) : [];
|
|
2312
|
-
|
|
2313
|
-
var getWindowNames = function (it) {
|
|
2314
|
-
try {
|
|
2315
|
-
return nativeGetOwnPropertyNames$1(it);
|
|
2316
|
-
} catch (error) {
|
|
2317
|
-
return windowNames.slice();
|
|
2318
|
-
}
|
|
2319
|
-
};
|
|
2320
|
-
|
|
2321
|
-
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
|
2322
|
-
objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
|
|
2323
|
-
return windowNames && toString.call(it) == '[object Window]'
|
|
2324
|
-
? getWindowNames(it)
|
|
2325
|
-
: nativeGetOwnPropertyNames$1(toIndexedObject$1(it));
|
|
2326
|
-
};
|
|
2327
|
-
|
|
2328
|
-
var wellKnownSymbolWrapped = {};
|
|
2329
|
-
|
|
2330
|
-
var wellKnownSymbol$7 = wellKnownSymbol$d;
|
|
2331
|
-
|
|
2332
|
-
wellKnownSymbolWrapped.f = wellKnownSymbol$7;
|
|
2333
|
-
|
|
2334
|
-
var path$2 = path$4;
|
|
2335
|
-
var has$5 = has$c;
|
|
2336
|
-
var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
|
|
2337
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
2338
|
-
|
|
2339
|
-
var defineWellKnownSymbol$j = function (NAME) {
|
|
2340
|
-
var Symbol = path$2.Symbol || (path$2.Symbol = {});
|
|
2341
|
-
if (!has$5(Symbol, NAME)) defineProperty$2(Symbol, NAME, {
|
|
2342
|
-
value: wrappedWellKnownSymbolModule$1.f(NAME)
|
|
2343
|
-
});
|
|
2344
|
-
};
|
|
2345
|
-
|
|
2346
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
2347
|
-
var has$4 = has$c;
|
|
2348
|
-
var wellKnownSymbol$6 = wellKnownSymbol$d;
|
|
2349
|
-
|
|
2350
|
-
var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
|
|
2351
|
-
|
|
2352
|
-
var setToStringTag$5 = function (it, TAG, STATIC) {
|
|
2353
|
-
if (it && !has$4(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
|
2354
|
-
defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
2355
|
-
}
|
|
2356
|
-
};
|
|
2357
|
-
|
|
2358
|
-
var aFunction$1 = function (it) {
|
|
2359
|
-
if (typeof it != 'function') {
|
|
2360
|
-
throw TypeError(String(it) + ' is not a function');
|
|
2361
|
-
} return it;
|
|
2362
|
-
};
|
|
2363
|
-
|
|
2364
|
-
var aFunction = aFunction$1;
|
|
2365
|
-
|
|
2366
|
-
// optional / simple context binding
|
|
2367
|
-
var functionBindContext = function (fn, that, length) {
|
|
2368
|
-
aFunction(fn);
|
|
2369
|
-
if (that === undefined) return fn;
|
|
2370
|
-
switch (length) {
|
|
2371
|
-
case 0: return function () {
|
|
2372
|
-
return fn.call(that);
|
|
2373
|
-
};
|
|
2374
|
-
case 1: return function (a) {
|
|
2375
|
-
return fn.call(that, a);
|
|
2376
|
-
};
|
|
2377
|
-
case 2: return function (a, b) {
|
|
2378
|
-
return fn.call(that, a, b);
|
|
2379
|
-
};
|
|
2380
|
-
case 3: return function (a, b, c) {
|
|
2381
|
-
return fn.call(that, a, b, c);
|
|
2382
|
-
};
|
|
2383
|
-
}
|
|
2384
|
-
return function (/* ...args */) {
|
|
2385
|
-
return fn.apply(that, arguments);
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
|
|
2389
|
-
var bind$1 = functionBindContext;
|
|
2390
|
-
var IndexedObject = indexedObject;
|
|
2391
|
-
var toObject$3 = toObject$5;
|
|
2392
|
-
var toLength$1 = toLength$4;
|
|
2393
|
-
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
2394
|
-
|
|
2395
|
-
var push = [].push;
|
|
2396
|
-
|
|
2397
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
|
|
2398
|
-
var createMethod$1 = function (TYPE) {
|
|
2399
|
-
var IS_MAP = TYPE == 1;
|
|
2400
|
-
var IS_FILTER = TYPE == 2;
|
|
2401
|
-
var IS_SOME = TYPE == 3;
|
|
2402
|
-
var IS_EVERY = TYPE == 4;
|
|
2403
|
-
var IS_FIND_INDEX = TYPE == 6;
|
|
2404
|
-
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
2405
|
-
return function ($this, callbackfn, that, specificCreate) {
|
|
2406
|
-
var O = toObject$3($this);
|
|
2407
|
-
var self = IndexedObject(O);
|
|
2408
|
-
var boundFunction = bind$1(callbackfn, that, 3);
|
|
2409
|
-
var length = toLength$1(self.length);
|
|
2410
|
-
var index = 0;
|
|
2411
|
-
var create = specificCreate || arraySpeciesCreate;
|
|
2412
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
|
2413
|
-
var value, result;
|
|
2414
|
-
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
2415
|
-
value = self[index];
|
|
2416
|
-
result = boundFunction(value, index, O);
|
|
2417
|
-
if (TYPE) {
|
|
2418
|
-
if (IS_MAP) target[index] = result; // map
|
|
2419
|
-
else if (result) switch (TYPE) {
|
|
2420
|
-
case 3: return true; // some
|
|
2421
|
-
case 5: return value; // find
|
|
2422
|
-
case 6: return index; // findIndex
|
|
2423
|
-
case 2: push.call(target, value); // filter
|
|
2424
|
-
} else if (IS_EVERY) return false; // every
|
|
2425
|
-
}
|
|
2426
|
-
}
|
|
2427
|
-
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
2428
|
-
};
|
|
2429
|
-
};
|
|
2430
|
-
|
|
2431
|
-
var arrayIteration = {
|
|
2432
|
-
// `Array.prototype.forEach` method
|
|
2433
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
|
|
2434
|
-
forEach: createMethod$1(0),
|
|
2435
|
-
// `Array.prototype.map` method
|
|
2436
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.map
|
|
2437
|
-
map: createMethod$1(1),
|
|
2438
|
-
// `Array.prototype.filter` method
|
|
2439
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
|
|
2440
|
-
filter: createMethod$1(2),
|
|
2441
|
-
// `Array.prototype.some` method
|
|
2442
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.some
|
|
2443
|
-
some: createMethod$1(3),
|
|
2444
|
-
// `Array.prototype.every` method
|
|
2445
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.every
|
|
2446
|
-
every: createMethod$1(4),
|
|
2447
|
-
// `Array.prototype.find` method
|
|
2448
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.find
|
|
2449
|
-
find: createMethod$1(5),
|
|
2450
|
-
// `Array.prototype.findIndex` method
|
|
2451
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
|
|
2452
|
-
findIndex: createMethod$1(6)
|
|
2453
|
-
};
|
|
2454
|
-
|
|
2455
|
-
var $$3 = _export;
|
|
2456
|
-
var global$3 = global$f;
|
|
2457
|
-
var getBuiltIn = getBuiltIn$4;
|
|
2458
|
-
var DESCRIPTORS$1 = descriptors;
|
|
2459
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
2460
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
2461
|
-
var fails$1 = fails$9;
|
|
2462
|
-
var has$3 = has$c;
|
|
2463
|
-
var isArray = isArray$3;
|
|
2464
|
-
var isObject$2 = isObject$9;
|
|
2465
|
-
var anObject$2 = anObject$7;
|
|
2466
|
-
var toObject$2 = toObject$5;
|
|
2467
|
-
var toIndexedObject = toIndexedObject$5;
|
|
2468
|
-
var toPrimitive = toPrimitive$4;
|
|
2469
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
2470
|
-
var nativeObjectCreate = objectCreate;
|
|
2471
|
-
var objectKeys = objectKeys$2;
|
|
2472
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
2473
|
-
var getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal;
|
|
2474
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2475
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
2476
|
-
var definePropertyModule = objectDefineProperty;
|
|
2477
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2478
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
|
|
2479
|
-
var redefine$1 = redefine$4.exports;
|
|
2480
|
-
var shared = shared$3.exports;
|
|
2481
|
-
var sharedKey$1 = sharedKey$4;
|
|
2482
|
-
var hiddenKeys = hiddenKeys$5;
|
|
2483
|
-
var uid = uid$3;
|
|
2484
|
-
var wellKnownSymbol$5 = wellKnownSymbol$d;
|
|
2485
|
-
var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;
|
|
2486
|
-
var defineWellKnownSymbol$i = defineWellKnownSymbol$j;
|
|
2487
|
-
var setToStringTag$4 = setToStringTag$5;
|
|
2488
|
-
var InternalStateModule$1 = internalState;
|
|
2489
|
-
var $forEach = arrayIteration.forEach;
|
|
2490
|
-
|
|
2491
|
-
var HIDDEN = sharedKey$1('hidden');
|
|
2492
|
-
var SYMBOL = 'Symbol';
|
|
2493
|
-
var PROTOTYPE = 'prototype';
|
|
2494
|
-
var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
|
|
2495
|
-
var setInternalState$1 = InternalStateModule$1.set;
|
|
2496
|
-
var getInternalState$1 = InternalStateModule$1.getterFor(SYMBOL);
|
|
2497
|
-
var ObjectPrototype$1 = Object[PROTOTYPE];
|
|
2498
|
-
var $Symbol = global$3.Symbol;
|
|
2499
|
-
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
2500
|
-
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
2501
|
-
var nativeDefineProperty = definePropertyModule.f;
|
|
2502
|
-
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
|
|
2503
|
-
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
2504
|
-
var AllSymbols = shared('symbols');
|
|
2505
|
-
var ObjectPrototypeSymbols = shared('op-symbols');
|
|
2506
|
-
var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
|
2507
|
-
var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
|
2508
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
2509
|
-
var QObject = global$3.QObject;
|
|
2510
|
-
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
|
2511
|
-
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
2512
|
-
|
|
2513
|
-
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
|
2514
|
-
var setSymbolDescriptor = DESCRIPTORS$1 && fails$1(function () {
|
|
2515
|
-
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
|
2516
|
-
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
|
2517
|
-
})).a != 7;
|
|
2518
|
-
}) ? function (O, P, Attributes) {
|
|
2519
|
-
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype$1, P);
|
|
2520
|
-
if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P];
|
|
2521
|
-
nativeDefineProperty(O, P, Attributes);
|
|
2522
|
-
if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) {
|
|
2523
|
-
nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor);
|
|
2524
|
-
}
|
|
2525
|
-
} : nativeDefineProperty;
|
|
2526
|
-
|
|
2527
|
-
var wrap = function (tag, description) {
|
|
2528
|
-
var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
|
|
2529
|
-
setInternalState$1(symbol, {
|
|
2530
|
-
type: SYMBOL,
|
|
2531
|
-
tag: tag,
|
|
2532
|
-
description: description
|
|
2533
|
-
});
|
|
2534
|
-
if (!DESCRIPTORS$1) symbol.description = description;
|
|
2535
|
-
return symbol;
|
|
2536
|
-
};
|
|
2537
|
-
|
|
2538
|
-
var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
|
|
2539
|
-
return typeof it == 'symbol';
|
|
2540
|
-
} : function (it) {
|
|
2541
|
-
return Object(it) instanceof $Symbol;
|
|
2542
|
-
};
|
|
2543
|
-
|
|
2544
|
-
var $defineProperty = function defineProperty(O, P, Attributes) {
|
|
2545
|
-
if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2546
|
-
anObject$2(O);
|
|
2547
|
-
var key = toPrimitive(P, true);
|
|
2548
|
-
anObject$2(Attributes);
|
|
2549
|
-
if (has$3(AllSymbols, key)) {
|
|
2550
|
-
if (!Attributes.enumerable) {
|
|
2551
|
-
if (!has$3(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
|
|
2552
|
-
O[HIDDEN][key] = true;
|
|
2553
|
-
} else {
|
|
2554
|
-
if (has$3(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
|
2555
|
-
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$1(0, false) });
|
|
2556
|
-
} return setSymbolDescriptor(O, key, Attributes);
|
|
2557
|
-
} return nativeDefineProperty(O, key, Attributes);
|
|
2558
|
-
};
|
|
2559
|
-
|
|
2560
|
-
var $defineProperties = function defineProperties(O, Properties) {
|
|
2561
|
-
anObject$2(O);
|
|
2562
|
-
var properties = toIndexedObject(Properties);
|
|
2563
|
-
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
|
|
2564
|
-
$forEach(keys, function (key) {
|
|
2565
|
-
if (!DESCRIPTORS$1 || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
|
|
2566
|
-
});
|
|
2567
|
-
return O;
|
|
2568
|
-
};
|
|
2569
|
-
|
|
2570
|
-
var $create = function create(O, Properties) {
|
|
2571
|
-
return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
|
|
2572
|
-
};
|
|
2573
|
-
|
|
2574
|
-
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
|
2575
|
-
var P = toPrimitive(V, true);
|
|
2576
|
-
var enumerable = nativePropertyIsEnumerable.call(this, P);
|
|
2577
|
-
if (this === ObjectPrototype$1 && has$3(AllSymbols, P) && !has$3(ObjectPrototypeSymbols, P)) return false;
|
|
2578
|
-
return enumerable || !has$3(this, P) || !has$3(AllSymbols, P) || has$3(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
|
2579
|
-
};
|
|
2580
|
-
|
|
2581
|
-
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
|
2582
|
-
var it = toIndexedObject(O);
|
|
2583
|
-
var key = toPrimitive(P, true);
|
|
2584
|
-
if (it === ObjectPrototype$1 && has$3(AllSymbols, key) && !has$3(ObjectPrototypeSymbols, key)) return;
|
|
2585
|
-
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
|
2586
|
-
if (descriptor && has$3(AllSymbols, key) && !(has$3(it, HIDDEN) && it[HIDDEN][key])) {
|
|
2587
|
-
descriptor.enumerable = true;
|
|
2588
|
-
}
|
|
2589
|
-
return descriptor;
|
|
2590
|
-
};
|
|
2591
|
-
|
|
2592
|
-
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
|
2593
|
-
var names = nativeGetOwnPropertyNames(toIndexedObject(O));
|
|
2594
|
-
var result = [];
|
|
2595
|
-
$forEach(names, function (key) {
|
|
2596
|
-
if (!has$3(AllSymbols, key) && !has$3(hiddenKeys, key)) result.push(key);
|
|
2597
|
-
});
|
|
2598
|
-
return result;
|
|
2599
|
-
};
|
|
2600
|
-
|
|
2601
|
-
var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
|
2602
|
-
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$1;
|
|
2603
|
-
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
|
|
2604
|
-
var result = [];
|
|
2605
|
-
$forEach(names, function (key) {
|
|
2606
|
-
if (has$3(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has$3(ObjectPrototype$1, key))) {
|
|
2607
|
-
result.push(AllSymbols[key]);
|
|
2608
|
-
}
|
|
2609
|
-
});
|
|
2610
|
-
return result;
|
|
2611
|
-
};
|
|
2612
|
-
|
|
2613
|
-
// `Symbol` constructor
|
|
2614
|
-
// https://tc39.github.io/ecma262/#sec-symbol-constructor
|
|
2615
|
-
if (!NATIVE_SYMBOL) {
|
|
2616
|
-
$Symbol = function Symbol() {
|
|
2617
|
-
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
|
2618
|
-
var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
|
|
2619
|
-
var tag = uid(description);
|
|
2620
|
-
var setter = function (value) {
|
|
2621
|
-
if (this === ObjectPrototype$1) setter.call(ObjectPrototypeSymbols, value);
|
|
2622
|
-
if (has$3(this, HIDDEN) && has$3(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
2623
|
-
setSymbolDescriptor(this, tag, createPropertyDescriptor$1(1, value));
|
|
2624
|
-
};
|
|
2625
|
-
if (DESCRIPTORS$1 && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
2626
|
-
return wrap(tag, description);
|
|
2627
|
-
};
|
|
2628
|
-
|
|
2629
|
-
redefine$1($Symbol[PROTOTYPE], 'toString', function toString() {
|
|
2630
|
-
return getInternalState$1(this).tag;
|
|
2631
|
-
});
|
|
2632
|
-
|
|
2633
|
-
redefine$1($Symbol, 'withoutSetter', function (description) {
|
|
2634
|
-
return wrap(uid(description), description);
|
|
2635
|
-
});
|
|
2636
|
-
|
|
2637
|
-
propertyIsEnumerableModule.f = $propertyIsEnumerable;
|
|
2638
|
-
definePropertyModule.f = $defineProperty;
|
|
2639
|
-
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
|
2640
|
-
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
|
2641
|
-
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
|
|
2642
|
-
|
|
2643
|
-
wrappedWellKnownSymbolModule.f = function (name) {
|
|
2644
|
-
return wrap(wellKnownSymbol$5(name), name);
|
|
2645
|
-
};
|
|
2646
|
-
|
|
2647
|
-
if (DESCRIPTORS$1) {
|
|
2648
|
-
// https://github.com/tc39/proposal-Symbol-description
|
|
2649
|
-
nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
|
|
2650
|
-
configurable: true,
|
|
2651
|
-
get: function description() {
|
|
2652
|
-
return getInternalState$1(this).description;
|
|
2653
|
-
}
|
|
2654
|
-
});
|
|
2655
|
-
{
|
|
2656
|
-
redefine$1(ObjectPrototype$1, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2660
|
-
|
|
2661
|
-
$$3({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
|
2662
|
-
Symbol: $Symbol
|
|
2663
|
-
});
|
|
2664
|
-
|
|
2665
|
-
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
|
|
2666
|
-
defineWellKnownSymbol$i(name);
|
|
2667
|
-
});
|
|
2668
|
-
|
|
2669
|
-
$$3({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
|
2670
|
-
// `Symbol.for` method
|
|
2671
|
-
// https://tc39.github.io/ecma262/#sec-symbol.for
|
|
2672
|
-
'for': function (key) {
|
|
2673
|
-
var string = String(key);
|
|
2674
|
-
if (has$3(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
|
2675
|
-
var symbol = $Symbol(string);
|
|
2676
|
-
StringToSymbolRegistry[string] = symbol;
|
|
2677
|
-
SymbolToStringRegistry[symbol] = string;
|
|
2678
|
-
return symbol;
|
|
2679
|
-
},
|
|
2680
|
-
// `Symbol.keyFor` method
|
|
2681
|
-
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
|
|
2682
|
-
keyFor: function keyFor(sym) {
|
|
2683
|
-
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
|
2684
|
-
if (has$3(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
2685
|
-
},
|
|
2686
|
-
useSetter: function () { USE_SETTER = true; },
|
|
2687
|
-
useSimple: function () { USE_SETTER = false; }
|
|
2688
|
-
});
|
|
2689
|
-
|
|
2690
|
-
$$3({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$1 }, {
|
|
2691
|
-
// `Object.create` method
|
|
2692
|
-
// https://tc39.github.io/ecma262/#sec-object.create
|
|
2693
|
-
create: $create,
|
|
2694
|
-
// `Object.defineProperty` method
|
|
2695
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
2696
|
-
defineProperty: $defineProperty,
|
|
2697
|
-
// `Object.defineProperties` method
|
|
2698
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperties
|
|
2699
|
-
defineProperties: $defineProperties,
|
|
2700
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
2701
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
|
|
2702
|
-
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
|
2703
|
-
});
|
|
2704
|
-
|
|
2705
|
-
$$3({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
|
2706
|
-
// `Object.getOwnPropertyNames` method
|
|
2707
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
2708
|
-
getOwnPropertyNames: $getOwnPropertyNames,
|
|
2709
|
-
// `Object.getOwnPropertySymbols` method
|
|
2710
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
|
|
2711
|
-
getOwnPropertySymbols: $getOwnPropertySymbols
|
|
2712
|
-
});
|
|
2713
|
-
|
|
2714
|
-
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
|
2715
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
|
2716
|
-
$$3({ target: 'Object', stat: true, forced: fails$1(function () { getOwnPropertySymbolsModule.f(1); }) }, {
|
|
2717
|
-
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
|
2718
|
-
return getOwnPropertySymbolsModule.f(toObject$2(it));
|
|
2719
|
-
}
|
|
2720
|
-
});
|
|
2721
|
-
|
|
2722
|
-
// `JSON.stringify` method behavior with symbols
|
|
2723
|
-
// https://tc39.github.io/ecma262/#sec-json.stringify
|
|
2724
|
-
if ($stringify) {
|
|
2725
|
-
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$1(function () {
|
|
2726
|
-
var symbol = $Symbol();
|
|
2727
|
-
// MS Edge converts symbol values to JSON as {}
|
|
2728
|
-
return $stringify([symbol]) != '[null]'
|
|
2729
|
-
// WebKit converts symbol values to JSON as null
|
|
2730
|
-
|| $stringify({ a: symbol }) != '{}'
|
|
2731
|
-
// V8 throws on boxed symbols
|
|
2732
|
-
|| $stringify(Object(symbol)) != '{}';
|
|
2733
|
-
});
|
|
2734
|
-
|
|
2735
|
-
$$3({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
|
2736
|
-
// eslint-disable-next-line no-unused-vars
|
|
2737
|
-
stringify: function stringify(it, replacer, space) {
|
|
2738
|
-
var args = [it];
|
|
2739
|
-
var index = 1;
|
|
2740
|
-
var $replacer;
|
|
2741
|
-
while (arguments.length > index) args.push(arguments[index++]);
|
|
2742
|
-
$replacer = replacer;
|
|
2743
|
-
if (!isObject$2(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
|
2744
|
-
if (!isArray(replacer)) replacer = function (key, value) {
|
|
2745
|
-
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
|
2746
|
-
if (!isSymbol(value)) return value;
|
|
2747
|
-
};
|
|
2748
|
-
args[1] = replacer;
|
|
2749
|
-
return $stringify.apply(null, args);
|
|
2750
|
-
}
|
|
2751
|
-
});
|
|
2752
|
-
}
|
|
2753
|
-
|
|
2754
|
-
// `Symbol.prototype[@@toPrimitive]` method
|
|
2755
|
-
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
|
|
2756
|
-
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
|
|
2757
|
-
createNonEnumerableProperty$2($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
|
2758
|
-
}
|
|
2759
|
-
// `Symbol.prototype[@@toStringTag]` property
|
|
2760
|
-
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
|
|
2761
|
-
setToStringTag$4($Symbol, SYMBOL);
|
|
2762
|
-
|
|
2763
|
-
hiddenKeys[HIDDEN] = true;
|
|
2764
|
-
|
|
2765
|
-
var defineWellKnownSymbol$h = defineWellKnownSymbol$j;
|
|
2766
|
-
|
|
2767
|
-
// `Symbol.asyncIterator` well-known symbol
|
|
2768
|
-
// https://tc39.github.io/ecma262/#sec-symbol.asynciterator
|
|
2769
|
-
defineWellKnownSymbol$h('asyncIterator');
|
|
2770
|
-
|
|
2771
|
-
var $$2 = _export;
|
|
2772
|
-
var DESCRIPTORS = descriptors;
|
|
2773
|
-
var global$2 = global$f;
|
|
2774
|
-
var has$2 = has$c;
|
|
2775
|
-
var isObject$1 = isObject$9;
|
|
2776
|
-
var defineProperty = objectDefineProperty.f;
|
|
2777
|
-
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2778
|
-
|
|
2779
|
-
var NativeSymbol = global$2.Symbol;
|
|
2780
|
-
|
|
2781
|
-
if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
|
2782
|
-
// Safari 12 bug
|
|
2783
|
-
NativeSymbol().description !== undefined
|
|
2784
|
-
)) {
|
|
2785
|
-
var EmptyStringDescriptionStore = {};
|
|
2786
|
-
// wrap Symbol constructor for correct work with undefined description
|
|
2787
|
-
var SymbolWrapper = function Symbol() {
|
|
2788
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
|
2789
|
-
var result = this instanceof SymbolWrapper
|
|
2790
|
-
? new NativeSymbol(description)
|
|
2791
|
-
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
2792
|
-
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
2793
|
-
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
2794
|
-
return result;
|
|
2795
|
-
};
|
|
2796
|
-
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
2797
|
-
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
|
2798
|
-
symbolPrototype.constructor = SymbolWrapper;
|
|
2799
|
-
|
|
2800
|
-
var symbolToString = symbolPrototype.toString;
|
|
2801
|
-
var native = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
2802
|
-
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
2803
|
-
defineProperty(symbolPrototype, 'description', {
|
|
2804
|
-
configurable: true,
|
|
2805
|
-
get: function description() {
|
|
2806
|
-
var symbol = isObject$1(this) ? this.valueOf() : this;
|
|
2807
|
-
var string = symbolToString.call(symbol);
|
|
2808
|
-
if (has$2(EmptyStringDescriptionStore, symbol)) return '';
|
|
2809
|
-
var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
|
|
2810
|
-
return desc === '' ? undefined : desc;
|
|
2811
|
-
}
|
|
2812
|
-
});
|
|
2813
|
-
|
|
2814
|
-
$$2({ global: true, forced: true }, {
|
|
2815
|
-
Symbol: SymbolWrapper
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
|
-
var defineWellKnownSymbol$g = defineWellKnownSymbol$j;
|
|
2820
|
-
|
|
2821
|
-
// `Symbol.hasInstance` well-known symbol
|
|
2822
|
-
// https://tc39.github.io/ecma262/#sec-symbol.hasinstance
|
|
2823
|
-
defineWellKnownSymbol$g('hasInstance');
|
|
2824
|
-
|
|
2825
|
-
var defineWellKnownSymbol$f = defineWellKnownSymbol$j;
|
|
2826
|
-
|
|
2827
|
-
// `Symbol.isConcatSpreadable` well-known symbol
|
|
2828
|
-
// https://tc39.github.io/ecma262/#sec-symbol.isconcatspreadable
|
|
2829
|
-
defineWellKnownSymbol$f('isConcatSpreadable');
|
|
2830
|
-
|
|
2831
|
-
var defineWellKnownSymbol$e = defineWellKnownSymbol$j;
|
|
2832
|
-
|
|
2833
|
-
// `Symbol.iterator` well-known symbol
|
|
2834
|
-
// https://tc39.github.io/ecma262/#sec-symbol.iterator
|
|
2835
|
-
defineWellKnownSymbol$e('iterator');
|
|
2836
|
-
|
|
2837
|
-
var defineWellKnownSymbol$d = defineWellKnownSymbol$j;
|
|
2838
|
-
|
|
2839
|
-
// `Symbol.match` well-known symbol
|
|
2840
|
-
// https://tc39.github.io/ecma262/#sec-symbol.match
|
|
2841
|
-
defineWellKnownSymbol$d('match');
|
|
2842
|
-
|
|
2843
|
-
var defineWellKnownSymbol$c = defineWellKnownSymbol$j;
|
|
2844
|
-
|
|
2845
|
-
// `Symbol.matchAll` well-known symbol
|
|
2846
|
-
defineWellKnownSymbol$c('matchAll');
|
|
2847
|
-
|
|
2848
|
-
var defineWellKnownSymbol$b = defineWellKnownSymbol$j;
|
|
2849
|
-
|
|
2850
|
-
// `Symbol.replace` well-known symbol
|
|
2851
|
-
// https://tc39.github.io/ecma262/#sec-symbol.replace
|
|
2852
|
-
defineWellKnownSymbol$b('replace');
|
|
2853
|
-
|
|
2854
|
-
var defineWellKnownSymbol$a = defineWellKnownSymbol$j;
|
|
2855
|
-
|
|
2856
|
-
// `Symbol.search` well-known symbol
|
|
2857
|
-
// https://tc39.github.io/ecma262/#sec-symbol.search
|
|
2858
|
-
defineWellKnownSymbol$a('search');
|
|
2859
|
-
|
|
2860
|
-
var defineWellKnownSymbol$9 = defineWellKnownSymbol$j;
|
|
2861
|
-
|
|
2862
|
-
// `Symbol.species` well-known symbol
|
|
2863
|
-
// https://tc39.github.io/ecma262/#sec-symbol.species
|
|
2864
|
-
defineWellKnownSymbol$9('species');
|
|
2865
|
-
|
|
2866
|
-
var defineWellKnownSymbol$8 = defineWellKnownSymbol$j;
|
|
2867
|
-
|
|
2868
|
-
// `Symbol.split` well-known symbol
|
|
2869
|
-
// https://tc39.github.io/ecma262/#sec-symbol.split
|
|
2870
|
-
defineWellKnownSymbol$8('split');
|
|
2871
|
-
|
|
2872
|
-
var defineWellKnownSymbol$7 = defineWellKnownSymbol$j;
|
|
2873
|
-
|
|
2874
|
-
// `Symbol.toPrimitive` well-known symbol
|
|
2875
|
-
// https://tc39.github.io/ecma262/#sec-symbol.toprimitive
|
|
2876
|
-
defineWellKnownSymbol$7('toPrimitive');
|
|
2877
|
-
|
|
2878
|
-
var defineWellKnownSymbol$6 = defineWellKnownSymbol$j;
|
|
2879
|
-
|
|
2880
|
-
// `Symbol.toStringTag` well-known symbol
|
|
2881
|
-
// https://tc39.github.io/ecma262/#sec-symbol.tostringtag
|
|
2882
|
-
defineWellKnownSymbol$6('toStringTag');
|
|
2883
|
-
|
|
2884
|
-
var defineWellKnownSymbol$5 = defineWellKnownSymbol$j;
|
|
2885
|
-
|
|
2886
|
-
// `Symbol.unscopables` well-known symbol
|
|
2887
|
-
// https://tc39.github.io/ecma262/#sec-symbol.unscopables
|
|
2888
|
-
defineWellKnownSymbol$5('unscopables');
|
|
2889
|
-
|
|
2890
|
-
var setToStringTag$3 = setToStringTag$5;
|
|
2891
|
-
|
|
2892
|
-
// Math[@@toStringTag] property
|
|
2893
|
-
// https://tc39.github.io/ecma262/#sec-math-@@tostringtag
|
|
2894
|
-
setToStringTag$3(Math, 'Math', true);
|
|
2895
|
-
|
|
2896
|
-
var global$1 = global$f;
|
|
2897
|
-
var setToStringTag$2 = setToStringTag$5;
|
|
2898
|
-
|
|
2899
|
-
// JSON[@@toStringTag] property
|
|
2900
|
-
// https://tc39.github.io/ecma262/#sec-json-@@tostringtag
|
|
2901
|
-
setToStringTag$2(global$1.JSON, 'JSON', true);
|
|
2902
|
-
|
|
2903
|
-
var path$1 = path$4;
|
|
2904
|
-
|
|
2905
|
-
path$1.Symbol;
|
|
2906
|
-
|
|
2907
|
-
var defineWellKnownSymbol$4 = defineWellKnownSymbol$j;
|
|
2908
|
-
|
|
2909
|
-
// `Symbol.asyncDispose` well-known symbol
|
|
2910
|
-
// https://github.com/tc39/proposal-using-statement
|
|
2911
|
-
defineWellKnownSymbol$4('asyncDispose');
|
|
2912
|
-
|
|
2913
|
-
var defineWellKnownSymbol$3 = defineWellKnownSymbol$j;
|
|
2914
|
-
|
|
2915
|
-
// `Symbol.dispose` well-known symbol
|
|
2916
|
-
// https://github.com/tc39/proposal-using-statement
|
|
2917
|
-
defineWellKnownSymbol$3('dispose');
|
|
2918
|
-
|
|
2919
|
-
var defineWellKnownSymbol$2 = defineWellKnownSymbol$j;
|
|
2920
|
-
|
|
2921
|
-
// `Symbol.observable` well-known symbol
|
|
2922
|
-
// https://github.com/tc39/proposal-observable
|
|
2923
|
-
defineWellKnownSymbol$2('observable');
|
|
2924
|
-
|
|
2925
|
-
var defineWellKnownSymbol$1 = defineWellKnownSymbol$j;
|
|
2926
|
-
|
|
2927
|
-
// `Symbol.patternMatch` well-known symbol
|
|
2928
|
-
// https://github.com/tc39/proposal-pattern-matching
|
|
2929
|
-
defineWellKnownSymbol$1('patternMatch');
|
|
2930
|
-
|
|
2931
|
-
// TODO: remove from `core-js@4`
|
|
2932
|
-
var defineWellKnownSymbol = defineWellKnownSymbol$j;
|
|
2933
|
-
|
|
2934
|
-
defineWellKnownSymbol('replaceAll');
|
|
2935
|
-
|
|
2936
|
-
var toInteger = toInteger$3;
|
|
2937
|
-
var requireObjectCoercible = requireObjectCoercible$3;
|
|
2938
|
-
|
|
2939
|
-
// `String.prototype.{ codePointAt, at }` methods implementation
|
|
2940
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
2941
|
-
return function ($this, pos) {
|
|
2942
|
-
var S = String(requireObjectCoercible($this));
|
|
2943
|
-
var position = toInteger(pos);
|
|
2944
|
-
var size = S.length;
|
|
2945
|
-
var first, second;
|
|
2946
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
2947
|
-
first = S.charCodeAt(position);
|
|
2948
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
2949
|
-
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
|
2950
|
-
? CONVERT_TO_STRING ? S.charAt(position) : first
|
|
2951
|
-
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
2952
|
-
};
|
|
2953
|
-
};
|
|
2954
|
-
|
|
2955
|
-
var stringMultibyte = {
|
|
2956
|
-
// `String.prototype.codePointAt` method
|
|
2957
|
-
// https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
|
|
2958
|
-
codeAt: createMethod(false),
|
|
2959
|
-
// `String.prototype.at` method
|
|
2960
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
2961
|
-
charAt: createMethod(true)
|
|
2962
|
-
};
|
|
2963
|
-
|
|
2964
|
-
var fails = fails$9;
|
|
2965
|
-
|
|
2966
|
-
var correctPrototypeGetter = !fails(function () {
|
|
2967
|
-
function F() { /* empty */ }
|
|
2968
|
-
F.prototype.constructor = null;
|
|
2969
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
2970
|
-
});
|
|
2971
|
-
|
|
2972
|
-
var has$1 = has$c;
|
|
2973
|
-
var toObject$1 = toObject$5;
|
|
2974
|
-
var sharedKey = sharedKey$4;
|
|
2975
|
-
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
2976
|
-
|
|
2977
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
2978
|
-
var ObjectPrototype = Object.prototype;
|
|
2979
|
-
|
|
2980
|
-
// `Object.getPrototypeOf` method
|
|
2981
|
-
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
|
|
2982
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
|
2983
|
-
O = toObject$1(O);
|
|
2984
|
-
if (has$1(O, IE_PROTO)) return O[IE_PROTO];
|
|
2985
|
-
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
|
2986
|
-
return O.constructor.prototype;
|
|
2987
|
-
} return O instanceof Object ? ObjectPrototype : null;
|
|
2988
|
-
};
|
|
2989
|
-
|
|
2990
|
-
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
2991
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
|
|
2992
|
-
var has = has$c;
|
|
2993
|
-
var wellKnownSymbol$4 = wellKnownSymbol$d;
|
|
2994
|
-
|
|
2995
|
-
var ITERATOR$4 = wellKnownSymbol$4('iterator');
|
|
2996
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
2997
|
-
|
|
2998
|
-
var returnThis$2 = function () { return this; };
|
|
2999
|
-
|
|
3000
|
-
// `%IteratorPrototype%` object
|
|
3001
|
-
// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
|
|
3002
|
-
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
3003
|
-
|
|
3004
|
-
if ([].keys) {
|
|
3005
|
-
arrayIterator = [].keys();
|
|
3006
|
-
// Safari 8 has buggy iterators w/o `next`
|
|
3007
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
3008
|
-
else {
|
|
3009
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
3010
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
|
3011
|
-
}
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
if (IteratorPrototype$2 == undefined) IteratorPrototype$2 = {};
|
|
3015
|
-
|
|
3016
|
-
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
|
3017
|
-
if (!has(IteratorPrototype$2, ITERATOR$4)) {
|
|
3018
|
-
createNonEnumerableProperty$1(IteratorPrototype$2, ITERATOR$4, returnThis$2);
|
|
3019
|
-
}
|
|
3020
|
-
|
|
3021
|
-
var iteratorsCore = {
|
|
3022
|
-
IteratorPrototype: IteratorPrototype$2,
|
|
3023
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
3024
|
-
};
|
|
3025
|
-
|
|
3026
|
-
var iterators = {};
|
|
3027
|
-
|
|
3028
|
-
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
3029
|
-
var create = objectCreate;
|
|
3030
|
-
var createPropertyDescriptor = createPropertyDescriptor$5;
|
|
3031
|
-
var setToStringTag$1 = setToStringTag$5;
|
|
3032
|
-
var Iterators$3 = iterators;
|
|
3033
|
-
|
|
3034
|
-
var returnThis$1 = function () { return this; };
|
|
3035
|
-
|
|
3036
|
-
var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next) {
|
|
3037
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
3038
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
|
|
3039
|
-
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
|
3040
|
-
Iterators$3[TO_STRING_TAG] = returnThis$1;
|
|
3041
|
-
return IteratorConstructor;
|
|
3042
|
-
};
|
|
3043
|
-
|
|
3044
|
-
var isObject = isObject$9;
|
|
3045
|
-
|
|
3046
|
-
var aPossiblePrototype$1 = function (it) {
|
|
3047
|
-
if (!isObject(it) && it !== null) {
|
|
3048
|
-
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
|
3049
|
-
} return it;
|
|
3050
|
-
};
|
|
3051
|
-
|
|
3052
|
-
var anObject$1 = anObject$7;
|
|
3053
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
3054
|
-
|
|
3055
|
-
// `Object.setPrototypeOf` method
|
|
3056
|
-
// https://tc39.github.io/ecma262/#sec-object.setprototypeof
|
|
3057
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
3058
|
-
/* eslint-disable no-proto */
|
|
3059
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
3060
|
-
var CORRECT_SETTER = false;
|
|
3061
|
-
var test = {};
|
|
3062
|
-
var setter;
|
|
3063
|
-
try {
|
|
3064
|
-
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
|
3065
|
-
setter.call(test, []);
|
|
3066
|
-
CORRECT_SETTER = test instanceof Array;
|
|
3067
|
-
} catch (error) { /* empty */ }
|
|
3068
|
-
return function setPrototypeOf(O, proto) {
|
|
3069
|
-
anObject$1(O);
|
|
3070
|
-
aPossiblePrototype(proto);
|
|
3071
|
-
if (CORRECT_SETTER) setter.call(O, proto);
|
|
3072
|
-
else O.__proto__ = proto;
|
|
3073
|
-
return O;
|
|
3074
|
-
};
|
|
3075
|
-
}() : undefined);
|
|
3076
|
-
|
|
3077
|
-
var $$1 = _export;
|
|
3078
|
-
var createIteratorConstructor = createIteratorConstructor$1;
|
|
3079
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
3080
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
3081
|
-
var setToStringTag = setToStringTag$5;
|
|
3082
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$7;
|
|
3083
|
-
var redefine = redefine$4.exports;
|
|
3084
|
-
var wellKnownSymbol$3 = wellKnownSymbol$d;
|
|
3085
|
-
var Iterators$2 = iterators;
|
|
3086
|
-
var IteratorsCore = iteratorsCore;
|
|
3087
|
-
|
|
3088
|
-
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
3089
|
-
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
3090
|
-
var ITERATOR$3 = wellKnownSymbol$3('iterator');
|
|
3091
|
-
var KEYS = 'keys';
|
|
3092
|
-
var VALUES = 'values';
|
|
3093
|
-
var ENTRIES = 'entries';
|
|
3094
|
-
|
|
3095
|
-
var returnThis = function () { return this; };
|
|
3096
|
-
|
|
3097
|
-
var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
3098
|
-
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
3099
|
-
|
|
3100
|
-
var getIterationMethod = function (KIND) {
|
|
3101
|
-
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
3102
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
3103
|
-
switch (KIND) {
|
|
3104
|
-
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
3105
|
-
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
3106
|
-
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
3107
|
-
} return function () { return new IteratorConstructor(this); };
|
|
3108
|
-
};
|
|
3109
|
-
|
|
3110
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
3111
|
-
var INCORRECT_VALUES_NAME = false;
|
|
3112
|
-
var IterablePrototype = Iterable.prototype;
|
|
3113
|
-
var nativeIterator = IterablePrototype[ITERATOR$3]
|
|
3114
|
-
|| IterablePrototype['@@iterator']
|
|
3115
|
-
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
3116
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
3117
|
-
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
3118
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
3119
|
-
|
|
3120
|
-
// fix native
|
|
3121
|
-
if (anyNativeIterator) {
|
|
3122
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
3123
|
-
if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
3124
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
3125
|
-
if (setPrototypeOf) {
|
|
3126
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
3127
|
-
} else if (typeof CurrentIteratorPrototype[ITERATOR$3] != 'function') {
|
|
3128
|
-
createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$3, returnThis);
|
|
3129
|
-
}
|
|
3130
|
-
}
|
|
3131
|
-
// Set @@toStringTag to native iterators
|
|
3132
|
-
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
3133
|
-
}
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
// fix Array#{values, @@iterator}.name in V8 / FF
|
|
3137
|
-
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
3138
|
-
INCORRECT_VALUES_NAME = true;
|
|
3139
|
-
defaultIterator = function values() { return nativeIterator.call(this); };
|
|
3140
|
-
}
|
|
3141
|
-
|
|
3142
|
-
// define iterator
|
|
3143
|
-
if (IterablePrototype[ITERATOR$3] !== defaultIterator) {
|
|
3144
|
-
createNonEnumerableProperty(IterablePrototype, ITERATOR$3, defaultIterator);
|
|
3145
|
-
}
|
|
3146
|
-
Iterators$2[NAME] = defaultIterator;
|
|
3147
|
-
|
|
3148
|
-
// export additional methods
|
|
3149
|
-
if (DEFAULT) {
|
|
3150
|
-
methods = {
|
|
3151
|
-
values: getIterationMethod(VALUES),
|
|
3152
|
-
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
3153
|
-
entries: getIterationMethod(ENTRIES)
|
|
3154
|
-
};
|
|
3155
|
-
if (FORCED) for (KEY in methods) {
|
|
3156
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
3157
|
-
redefine(IterablePrototype, KEY, methods[KEY]);
|
|
3158
|
-
}
|
|
3159
|
-
} else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
3160
|
-
}
|
|
3161
|
-
|
|
3162
|
-
return methods;
|
|
3163
|
-
};
|
|
3164
|
-
|
|
3165
|
-
var charAt = stringMultibyte.charAt;
|
|
3166
|
-
var InternalStateModule = internalState;
|
|
3167
|
-
var defineIterator = defineIterator$1;
|
|
3168
|
-
|
|
3169
|
-
var STRING_ITERATOR = 'String Iterator';
|
|
3170
|
-
var setInternalState = InternalStateModule.set;
|
|
3171
|
-
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
|
|
3172
|
-
|
|
3173
|
-
// `String.prototype[@@iterator]` method
|
|
3174
|
-
// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
|
|
3175
|
-
defineIterator(String, 'String', function (iterated) {
|
|
3176
|
-
setInternalState(this, {
|
|
3177
|
-
type: STRING_ITERATOR,
|
|
3178
|
-
string: String(iterated),
|
|
3179
|
-
index: 0
|
|
3180
|
-
});
|
|
3181
|
-
// `%StringIteratorPrototype%.next` method
|
|
3182
|
-
// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
|
|
3183
|
-
}, function next() {
|
|
3184
|
-
var state = getInternalState(this);
|
|
3185
|
-
var string = state.string;
|
|
3186
|
-
var index = state.index;
|
|
3187
|
-
var point;
|
|
3188
|
-
if (index >= string.length) return { value: undefined, done: true };
|
|
3189
|
-
point = charAt(string, index);
|
|
3190
|
-
state.index += point.length;
|
|
3191
|
-
return { value: point, done: false };
|
|
3192
|
-
});
|
|
3193
|
-
|
|
3194
|
-
var anObject = anObject$7;
|
|
3195
|
-
|
|
3196
|
-
// call something on iterator step with safe closing on error
|
|
3197
|
-
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
3198
|
-
try {
|
|
3199
|
-
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
3200
|
-
// 7.4.6 IteratorClose(iterator, completion)
|
|
3201
|
-
} catch (error) {
|
|
3202
|
-
var returnMethod = iterator['return'];
|
|
3203
|
-
if (returnMethod !== undefined) anObject(returnMethod.call(iterator));
|
|
3204
|
-
throw error;
|
|
3205
|
-
}
|
|
3206
|
-
};
|
|
3207
|
-
|
|
3208
|
-
var wellKnownSymbol$2 = wellKnownSymbol$d;
|
|
3209
|
-
var Iterators$1 = iterators;
|
|
3210
|
-
|
|
3211
|
-
var ITERATOR$2 = wellKnownSymbol$2('iterator');
|
|
3212
|
-
var ArrayPrototype = Array.prototype;
|
|
3213
|
-
|
|
3214
|
-
// check on default Array iterator
|
|
3215
|
-
var isArrayIteratorMethod$1 = function (it) {
|
|
3216
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
3217
|
-
};
|
|
3218
|
-
|
|
3219
|
-
var classof = classof$2;
|
|
3220
|
-
var Iterators = iterators;
|
|
3221
|
-
var wellKnownSymbol$1 = wellKnownSymbol$d;
|
|
3222
|
-
|
|
3223
|
-
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
3224
|
-
|
|
3225
|
-
var getIteratorMethod$1 = function (it) {
|
|
3226
|
-
if (it != undefined) return it[ITERATOR$1]
|
|
3227
|
-
|| it['@@iterator']
|
|
3228
|
-
|| Iterators[classof(it)];
|
|
3229
|
-
};
|
|
3230
|
-
|
|
3231
|
-
var bind = functionBindContext;
|
|
3232
|
-
var toObject = toObject$5;
|
|
3233
|
-
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
3234
|
-
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
3235
|
-
var toLength = toLength$4;
|
|
3236
|
-
var createProperty = createProperty$2;
|
|
3237
|
-
var getIteratorMethod = getIteratorMethod$1;
|
|
3238
|
-
|
|
3239
|
-
// `Array.from` method implementation
|
|
3240
|
-
// https://tc39.github.io/ecma262/#sec-array.from
|
|
3241
|
-
var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
|
3242
|
-
var O = toObject(arrayLike);
|
|
3243
|
-
var C = typeof this == 'function' ? this : Array;
|
|
3244
|
-
var argumentsLength = arguments.length;
|
|
3245
|
-
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
3246
|
-
var mapping = mapfn !== undefined;
|
|
3247
|
-
var iteratorMethod = getIteratorMethod(O);
|
|
3248
|
-
var index = 0;
|
|
3249
|
-
var length, result, step, iterator, next, value;
|
|
3250
|
-
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
|
|
3251
|
-
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
3252
|
-
if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
3253
|
-
iterator = iteratorMethod.call(O);
|
|
3254
|
-
next = iterator.next;
|
|
3255
|
-
result = new C();
|
|
3256
|
-
for (;!(step = next.call(iterator)).done; index++) {
|
|
3257
|
-
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
|
3258
|
-
createProperty(result, index, value);
|
|
3259
|
-
}
|
|
3260
|
-
} else {
|
|
3261
|
-
length = toLength(O.length);
|
|
3262
|
-
result = new C(length);
|
|
3263
|
-
for (;length > index; index++) {
|
|
3264
|
-
value = mapping ? mapfn(O[index], index) : O[index];
|
|
3265
|
-
createProperty(result, index, value);
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
result.length = index;
|
|
3269
|
-
return result;
|
|
3270
|
-
};
|
|
3271
|
-
|
|
3272
|
-
var wellKnownSymbol = wellKnownSymbol$d;
|
|
3273
|
-
|
|
3274
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
3275
|
-
var SAFE_CLOSING = false;
|
|
3276
|
-
|
|
3277
|
-
try {
|
|
3278
|
-
var called = 0;
|
|
3279
|
-
var iteratorWithReturn = {
|
|
3280
|
-
next: function () {
|
|
3281
|
-
return { done: !!called++ };
|
|
3282
|
-
},
|
|
3283
|
-
'return': function () {
|
|
3284
|
-
SAFE_CLOSING = true;
|
|
3285
|
-
}
|
|
3286
|
-
};
|
|
3287
|
-
iteratorWithReturn[ITERATOR] = function () {
|
|
3288
|
-
return this;
|
|
3289
|
-
};
|
|
3290
|
-
// eslint-disable-next-line no-throw-literal
|
|
3291
|
-
Array.from(iteratorWithReturn, function () { throw 2; });
|
|
3292
|
-
} catch (error) { /* empty */ }
|
|
3293
|
-
|
|
3294
|
-
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
3295
|
-
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
3296
|
-
var ITERATION_SUPPORT = false;
|
|
3297
|
-
try {
|
|
3298
|
-
var object = {};
|
|
3299
|
-
object[ITERATOR] = function () {
|
|
3300
|
-
return {
|
|
3301
|
-
next: function () {
|
|
3302
|
-
return { done: ITERATION_SUPPORT = true };
|
|
3303
|
-
}
|
|
3304
|
-
};
|
|
3305
|
-
};
|
|
3306
|
-
exec(object);
|
|
3307
|
-
} catch (error) { /* empty */ }
|
|
3308
|
-
return ITERATION_SUPPORT;
|
|
3309
|
-
};
|
|
3310
|
-
|
|
3311
|
-
var $ = _export;
|
|
3312
|
-
var from = arrayFrom;
|
|
3313
|
-
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
3314
|
-
|
|
3315
|
-
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
|
3316
|
-
Array.from(iterable);
|
|
3317
|
-
});
|
|
3318
|
-
|
|
3319
|
-
// `Array.from` method
|
|
3320
|
-
// https://tc39.github.io/ecma262/#sec-array.from
|
|
3321
|
-
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
|
3322
|
-
from: from
|
|
3323
|
-
});
|
|
3324
|
-
|
|
3325
|
-
var path = path$4;
|
|
3326
|
-
|
|
3327
|
-
path.Array.from;
|
|
3328
|
-
|
|
3329
|
-
/**
|
|
3330
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3331
|
-
*
|
|
3332
|
-
* This source code is licensed under the MIT license found in the
|
|
3333
|
-
* LICENSE file in the root directory of this source tree.
|
|
3334
|
-
*/
|
|
3335
|
-
|
|
3336
|
-
if (typeof Promise === 'undefined') {
|
|
3337
|
-
// Rejection tracking prevents a common issue where React gets into an
|
|
3338
|
-
// inconsistent state due to an error, but it gets swallowed by a Promise,
|
|
3339
|
-
// and the user has no idea what causes React's erratic future behavior.
|
|
3340
|
-
rejectionTracking.enable();
|
|
3341
|
-
self.Promise = es6Extensions;
|
|
3342
|
-
}
|
|
3343
|
-
|
|
3344
|
-
// Object.assign() is commonly used with React.
|
|
3345
|
-
// It will use the native implementation if it's present and isn't buggy.
|
|
3346
|
-
Object.assign = objectAssign;
|
|
3347
|
-
|
|
3348
|
-
if (!Array.prototype.find) {
|
|
3349
|
-
Object.defineProperty(Array.prototype, 'find', {
|
|
3350
|
-
value: function (predicate) {
|
|
3351
|
-
|
|
3352
|
-
if (this == null) {
|
|
3353
|
-
throw new TypeError('this is null or not defined');
|
|
3354
|
-
}
|
|
3355
|
-
|
|
3356
|
-
var obj = Object(this);
|
|
3357
|
-
var len = obj.length >>> 0;
|
|
3358
|
-
|
|
3359
|
-
if (typeof predicate !== 'function') {
|
|
3360
|
-
throw new TypeError('predicate must be a function');
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
|
-
var thisArg = arguments[1];
|
|
3364
|
-
|
|
3365
|
-
var index = 0;
|
|
3366
|
-
|
|
3367
|
-
while (index < len) {
|
|
3368
|
-
var iValue = obj[index];
|
|
3369
|
-
if (predicate.call(thisArg, iValue, index, obj)) {
|
|
3370
|
-
return iValue;
|
|
3371
|
-
}
|
|
3372
|
-
index++;
|
|
3373
|
-
}
|
|
3374
|
-
|
|
3375
|
-
return undefined;
|
|
3376
|
-
}
|
|
3377
|
-
});
|
|
3378
|
-
}
|
|
3379
|
-
|
|
3380
|
-
if (typeof Element !== "undefined" && !Element.prototype.matches) {
|
|
3381
|
-
Element.prototype.matches = Element.prototype.msMatchesSelector;
|
|
3382
|
-
}
|
|
3383
|
-
//# sourceMappingURL=polyfills.js.map
|