xianniu-ui 0.5.2-beta.0 → 0.5.2-beta.3

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.
Files changed (40) hide show
  1. package/lib/static/fonts/element-icons.535877f5.woff +0 -0
  2. package/lib/static/fonts/element-icons.732389de.ttf +0 -0
  3. package/lib/xianniu-ui.common.js +50276 -62
  4. package/lib/xianniu-ui.css +1 -0
  5. package/lib/xianniu-ui.umd.js +50287 -63
  6. package/lib/xianniu-ui.umd.min.js +16 -1
  7. package/package.json +1 -1
  8. package/lib/static/css/xianniu-ui.common.5be6bd50.css +0 -1
  9. package/lib/static/css/xianniu-ui.umd.5be6bd50.css +0 -1
  10. package/lib/static/css/xianniu-ui.umd.min.5be6bd50.css +0 -1
  11. package/lib/xianniu-ui.common.chunk-elementUI.js +0 -69440
  12. package/lib/xianniu-ui.common.chunk-libs~253ae210.js +0 -3816
  13. package/lib/xianniu-ui.common.chunk-libs~31ecd969.js +0 -1267
  14. package/lib/xianniu-ui.common.chunk-libs~6cb95173.js +0 -1594
  15. package/lib/xianniu-ui.common.chunk-libs~93acefaf.js +0 -3328
  16. package/lib/xianniu-ui.common.chunk-libs~af0f4b76.js +0 -17212
  17. package/lib/xianniu-ui.common.chunk-libs~b58f7129.js +0 -1723
  18. package/lib/xianniu-ui.common.chunk-libs~d939e436.js +0 -2356
  19. package/lib/xianniu-ui.common.chunk-libs~dfe5688e.js +0 -4924
  20. package/lib/xianniu-ui.common.xianniu-ui.common.js +0 -17165
  21. package/lib/xianniu-ui.umd.chunk-elementUI.js +0 -69440
  22. package/lib/xianniu-ui.umd.chunk-libs~253ae210.js +0 -3816
  23. package/lib/xianniu-ui.umd.chunk-libs~31ecd969.js +0 -1267
  24. package/lib/xianniu-ui.umd.chunk-libs~6cb95173.js +0 -1594
  25. package/lib/xianniu-ui.umd.chunk-libs~93acefaf.js +0 -3328
  26. package/lib/xianniu-ui.umd.chunk-libs~af0f4b76.js +0 -17212
  27. package/lib/xianniu-ui.umd.chunk-libs~b58f7129.js +0 -1723
  28. package/lib/xianniu-ui.umd.chunk-libs~d939e436.js +0 -2356
  29. package/lib/xianniu-ui.umd.chunk-libs~dfe5688e.js +0 -4924
  30. package/lib/xianniu-ui.umd.min.chunk-elementUI.js +0 -9
  31. package/lib/xianniu-ui.umd.min.chunk-libs~253ae210.js +0 -1
  32. package/lib/xianniu-ui.umd.min.chunk-libs~31ecd969.js +0 -1
  33. package/lib/xianniu-ui.umd.min.chunk-libs~6cb95173.js +0 -1
  34. package/lib/xianniu-ui.umd.min.chunk-libs~93acefaf.js +0 -1
  35. package/lib/xianniu-ui.umd.min.chunk-libs~af0f4b76.js +0 -9
  36. package/lib/xianniu-ui.umd.min.chunk-libs~b58f7129.js +0 -16
  37. package/lib/xianniu-ui.umd.min.chunk-libs~d939e436.js +0 -1
  38. package/lib/xianniu-ui.umd.min.chunk-libs~dfe5688e.js +0 -8
  39. package/lib/xianniu-ui.umd.min.xianniu-ui.umd.min.js +0 -1
  40. package/lib/xianniu-ui.umd.xianniu-ui.umd.js +0 -17175
@@ -1,2356 +0,0 @@
1
- ((typeof self !== 'undefined' ? self : this)["webpackJsonpxianniu_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpxianniu_ui"] || []).push([[7],{
2
-
3
- /***/ "159b":
4
- /***/ (function(module, exports, __webpack_require__) {
5
-
6
- var global = __webpack_require__("da84");
7
- var DOMIterables = __webpack_require__("fdbc");
8
- var DOMTokenListPrototype = __webpack_require__("785a");
9
- var forEach = __webpack_require__("17c2");
10
- var createNonEnumerableProperty = __webpack_require__("9112");
11
-
12
- var handlePrototype = function (CollectionPrototype) {
13
- // some Chrome versions have non-configurable methods on DOMTokenList
14
- if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
15
- createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
16
- } catch (error) {
17
- CollectionPrototype.forEach = forEach;
18
- }
19
- };
20
-
21
- for (var COLLECTION_NAME in DOMIterables) {
22
- if (DOMIterables[COLLECTION_NAME]) {
23
- handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);
24
- }
25
- }
26
-
27
- handlePrototype(DOMTokenListPrototype);
28
-
29
-
30
- /***/ }),
31
-
32
- /***/ "2532":
33
- /***/ (function(module, exports, __webpack_require__) {
34
-
35
- "use strict";
36
-
37
- var $ = __webpack_require__("23e7");
38
- var uncurryThis = __webpack_require__("e330");
39
- var notARegExp = __webpack_require__("5a34");
40
- var requireObjectCoercible = __webpack_require__("1d80");
41
- var toString = __webpack_require__("577e");
42
- var correctIsRegExpLogic = __webpack_require__("ab13");
43
-
44
- var stringIndexOf = uncurryThis(''.indexOf);
45
-
46
- // `String.prototype.includes` method
47
- // https://tc39.es/ecma262/#sec-string.prototype.includes
48
- $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
49
- includes: function includes(searchString /* , position = 0 */) {
50
- return !!~stringIndexOf(
51
- toString(requireObjectCoercible(this)),
52
- toString(notARegExp(searchString)),
53
- arguments.length > 1 ? arguments[1] : undefined
54
- );
55
- }
56
- });
57
-
58
-
59
- /***/ }),
60
-
61
- /***/ "2b3d":
62
- /***/ (function(module, exports, __webpack_require__) {
63
-
64
- "use strict";
65
-
66
- // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
67
- __webpack_require__("3ca3");
68
- var $ = __webpack_require__("23e7");
69
- var DESCRIPTORS = __webpack_require__("83ab");
70
- var USE_NATIVE_URL = __webpack_require__("0d3b");
71
- var global = __webpack_require__("da84");
72
- var bind = __webpack_require__("0366");
73
- var uncurryThis = __webpack_require__("e330");
74
- var defineProperties = __webpack_require__("37e8").f;
75
- var redefine = __webpack_require__("6eeb");
76
- var anInstance = __webpack_require__("19aa");
77
- var hasOwn = __webpack_require__("1a2d");
78
- var assign = __webpack_require__("60da");
79
- var arrayFrom = __webpack_require__("4df4");
80
- var arraySlice = __webpack_require__("4dae");
81
- var codeAt = __webpack_require__("6547").codeAt;
82
- var toASCII = __webpack_require__("5fb2");
83
- var $toString = __webpack_require__("577e");
84
- var setToStringTag = __webpack_require__("d44e");
85
- var URLSearchParamsModule = __webpack_require__("9861");
86
- var InternalStateModule = __webpack_require__("69f3");
87
-
88
- var setInternalState = InternalStateModule.set;
89
- var getInternalURLState = InternalStateModule.getterFor('URL');
90
- var URLSearchParams = URLSearchParamsModule.URLSearchParams;
91
- var getInternalSearchParamsState = URLSearchParamsModule.getState;
92
-
93
- var NativeURL = global.URL;
94
- var TypeError = global.TypeError;
95
- var parseInt = global.parseInt;
96
- var floor = Math.floor;
97
- var pow = Math.pow;
98
- var charAt = uncurryThis(''.charAt);
99
- var exec = uncurryThis(/./.exec);
100
- var join = uncurryThis([].join);
101
- var numberToString = uncurryThis(1.0.toString);
102
- var pop = uncurryThis([].pop);
103
- var push = uncurryThis([].push);
104
- var replace = uncurryThis(''.replace);
105
- var shift = uncurryThis([].shift);
106
- var split = uncurryThis(''.split);
107
- var stringSlice = uncurryThis(''.slice);
108
- var toLowerCase = uncurryThis(''.toLowerCase);
109
- var unshift = uncurryThis([].unshift);
110
-
111
- var INVALID_AUTHORITY = 'Invalid authority';
112
- var INVALID_SCHEME = 'Invalid scheme';
113
- var INVALID_HOST = 'Invalid host';
114
- var INVALID_PORT = 'Invalid port';
115
-
116
- var ALPHA = /[a-z]/i;
117
- // eslint-disable-next-line regexp/no-obscure-range -- safe
118
- var ALPHANUMERIC = /[\d+-.a-z]/i;
119
- var DIGIT = /\d/;
120
- var HEX_START = /^0x/i;
121
- var OCT = /^[0-7]+$/;
122
- var DEC = /^\d+$/;
123
- var HEX = /^[\da-f]+$/i;
124
- /* eslint-disable regexp/no-control-character -- safe */
125
- var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
126
- var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
127
- var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g;
128
- var TAB_AND_NEW_LINE = /[\t\n\r]/g;
129
- /* eslint-enable regexp/no-control-character -- safe */
130
- var EOF;
131
-
132
- // https://url.spec.whatwg.org/#ipv4-number-parser
133
- var parseIPv4 = function (input) {
134
- var parts = split(input, '.');
135
- var partsLength, numbers, index, part, radix, number, ipv4;
136
- if (parts.length && parts[parts.length - 1] == '') {
137
- parts.length--;
138
- }
139
- partsLength = parts.length;
140
- if (partsLength > 4) return input;
141
- numbers = [];
142
- for (index = 0; index < partsLength; index++) {
143
- part = parts[index];
144
- if (part == '') return input;
145
- radix = 10;
146
- if (part.length > 1 && charAt(part, 0) == '0') {
147
- radix = exec(HEX_START, part) ? 16 : 8;
148
- part = stringSlice(part, radix == 8 ? 1 : 2);
149
- }
150
- if (part === '') {
151
- number = 0;
152
- } else {
153
- if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part)) return input;
154
- number = parseInt(part, radix);
155
- }
156
- push(numbers, number);
157
- }
158
- for (index = 0; index < partsLength; index++) {
159
- number = numbers[index];
160
- if (index == partsLength - 1) {
161
- if (number >= pow(256, 5 - partsLength)) return null;
162
- } else if (number > 255) return null;
163
- }
164
- ipv4 = pop(numbers);
165
- for (index = 0; index < numbers.length; index++) {
166
- ipv4 += numbers[index] * pow(256, 3 - index);
167
- }
168
- return ipv4;
169
- };
170
-
171
- // https://url.spec.whatwg.org/#concept-ipv6-parser
172
- // eslint-disable-next-line max-statements -- TODO
173
- var parseIPv6 = function (input) {
174
- var address = [0, 0, 0, 0, 0, 0, 0, 0];
175
- var pieceIndex = 0;
176
- var compress = null;
177
- var pointer = 0;
178
- var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
179
-
180
- var chr = function () {
181
- return charAt(input, pointer);
182
- };
183
-
184
- if (chr() == ':') {
185
- if (charAt(input, 1) != ':') return;
186
- pointer += 2;
187
- pieceIndex++;
188
- compress = pieceIndex;
189
- }
190
- while (chr()) {
191
- if (pieceIndex == 8) return;
192
- if (chr() == ':') {
193
- if (compress !== null) return;
194
- pointer++;
195
- pieceIndex++;
196
- compress = pieceIndex;
197
- continue;
198
- }
199
- value = length = 0;
200
- while (length < 4 && exec(HEX, chr())) {
201
- value = value * 16 + parseInt(chr(), 16);
202
- pointer++;
203
- length++;
204
- }
205
- if (chr() == '.') {
206
- if (length == 0) return;
207
- pointer -= length;
208
- if (pieceIndex > 6) return;
209
- numbersSeen = 0;
210
- while (chr()) {
211
- ipv4Piece = null;
212
- if (numbersSeen > 0) {
213
- if (chr() == '.' && numbersSeen < 4) pointer++;
214
- else return;
215
- }
216
- if (!exec(DIGIT, chr())) return;
217
- while (exec(DIGIT, chr())) {
218
- number = parseInt(chr(), 10);
219
- if (ipv4Piece === null) ipv4Piece = number;
220
- else if (ipv4Piece == 0) return;
221
- else ipv4Piece = ipv4Piece * 10 + number;
222
- if (ipv4Piece > 255) return;
223
- pointer++;
224
- }
225
- address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
226
- numbersSeen++;
227
- if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
228
- }
229
- if (numbersSeen != 4) return;
230
- break;
231
- } else if (chr() == ':') {
232
- pointer++;
233
- if (!chr()) return;
234
- } else if (chr()) return;
235
- address[pieceIndex++] = value;
236
- }
237
- if (compress !== null) {
238
- swaps = pieceIndex - compress;
239
- pieceIndex = 7;
240
- while (pieceIndex != 0 && swaps > 0) {
241
- swap = address[pieceIndex];
242
- address[pieceIndex--] = address[compress + swaps - 1];
243
- address[compress + --swaps] = swap;
244
- }
245
- } else if (pieceIndex != 8) return;
246
- return address;
247
- };
248
-
249
- var findLongestZeroSequence = function (ipv6) {
250
- var maxIndex = null;
251
- var maxLength = 1;
252
- var currStart = null;
253
- var currLength = 0;
254
- var index = 0;
255
- for (; index < 8; index++) {
256
- if (ipv6[index] !== 0) {
257
- if (currLength > maxLength) {
258
- maxIndex = currStart;
259
- maxLength = currLength;
260
- }
261
- currStart = null;
262
- currLength = 0;
263
- } else {
264
- if (currStart === null) currStart = index;
265
- ++currLength;
266
- }
267
- }
268
- if (currLength > maxLength) {
269
- maxIndex = currStart;
270
- maxLength = currLength;
271
- }
272
- return maxIndex;
273
- };
274
-
275
- // https://url.spec.whatwg.org/#host-serializing
276
- var serializeHost = function (host) {
277
- var result, index, compress, ignore0;
278
- // ipv4
279
- if (typeof host == 'number') {
280
- result = [];
281
- for (index = 0; index < 4; index++) {
282
- unshift(result, host % 256);
283
- host = floor(host / 256);
284
- } return join(result, '.');
285
- // ipv6
286
- } else if (typeof host == 'object') {
287
- result = '';
288
- compress = findLongestZeroSequence(host);
289
- for (index = 0; index < 8; index++) {
290
- if (ignore0 && host[index] === 0) continue;
291
- if (ignore0) ignore0 = false;
292
- if (compress === index) {
293
- result += index ? ':' : '::';
294
- ignore0 = true;
295
- } else {
296
- result += numberToString(host[index], 16);
297
- if (index < 7) result += ':';
298
- }
299
- }
300
- return '[' + result + ']';
301
- } return host;
302
- };
303
-
304
- var C0ControlPercentEncodeSet = {};
305
- var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
306
- ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
307
- });
308
- var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
309
- '#': 1, '?': 1, '{': 1, '}': 1
310
- });
311
- var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
312
- '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
313
- });
314
-
315
- var percentEncode = function (chr, set) {
316
- var code = codeAt(chr, 0);
317
- return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
318
- };
319
-
320
- // https://url.spec.whatwg.org/#special-scheme
321
- var specialSchemes = {
322
- ftp: 21,
323
- file: null,
324
- http: 80,
325
- https: 443,
326
- ws: 80,
327
- wss: 443
328
- };
329
-
330
- // https://url.spec.whatwg.org/#windows-drive-letter
331
- var isWindowsDriveLetter = function (string, normalized) {
332
- var second;
333
- return string.length == 2 && exec(ALPHA, charAt(string, 0))
334
- && ((second = charAt(string, 1)) == ':' || (!normalized && second == '|'));
335
- };
336
-
337
- // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
338
- var startsWithWindowsDriveLetter = function (string) {
339
- var third;
340
- return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
341
- string.length == 2 ||
342
- ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
343
- );
344
- };
345
-
346
- // https://url.spec.whatwg.org/#single-dot-path-segment
347
- var isSingleDot = function (segment) {
348
- return segment === '.' || toLowerCase(segment) === '%2e';
349
- };
350
-
351
- // https://url.spec.whatwg.org/#double-dot-path-segment
352
- var isDoubleDot = function (segment) {
353
- segment = toLowerCase(segment);
354
- return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
355
- };
356
-
357
- // States:
358
- var SCHEME_START = {};
359
- var SCHEME = {};
360
- var NO_SCHEME = {};
361
- var SPECIAL_RELATIVE_OR_AUTHORITY = {};
362
- var PATH_OR_AUTHORITY = {};
363
- var RELATIVE = {};
364
- var RELATIVE_SLASH = {};
365
- var SPECIAL_AUTHORITY_SLASHES = {};
366
- var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
367
- var AUTHORITY = {};
368
- var HOST = {};
369
- var HOSTNAME = {};
370
- var PORT = {};
371
- var FILE = {};
372
- var FILE_SLASH = {};
373
- var FILE_HOST = {};
374
- var PATH_START = {};
375
- var PATH = {};
376
- var CANNOT_BE_A_BASE_URL_PATH = {};
377
- var QUERY = {};
378
- var FRAGMENT = {};
379
-
380
- var URLState = function (url, isBase, base) {
381
- var urlString = $toString(url);
382
- var baseState, failure, searchParams;
383
- if (isBase) {
384
- failure = this.parse(urlString);
385
- if (failure) throw TypeError(failure);
386
- this.searchParams = null;
387
- } else {
388
- if (base !== undefined) baseState = new URLState(base, true);
389
- failure = this.parse(urlString, null, baseState);
390
- if (failure) throw TypeError(failure);
391
- searchParams = getInternalSearchParamsState(new URLSearchParams());
392
- searchParams.bindURL(this);
393
- this.searchParams = searchParams;
394
- }
395
- };
396
-
397
- URLState.prototype = {
398
- type: 'URL',
399
- // https://url.spec.whatwg.org/#url-parsing
400
- // eslint-disable-next-line max-statements -- TODO
401
- parse: function (input, stateOverride, base) {
402
- var url = this;
403
- var state = stateOverride || SCHEME_START;
404
- var pointer = 0;
405
- var buffer = '';
406
- var seenAt = false;
407
- var seenBracket = false;
408
- var seenPasswordToken = false;
409
- var codePoints, chr, bufferCodePoints, failure;
410
-
411
- input = $toString(input);
412
-
413
- if (!stateOverride) {
414
- url.scheme = '';
415
- url.username = '';
416
- url.password = '';
417
- url.host = null;
418
- url.port = null;
419
- url.path = [];
420
- url.query = null;
421
- url.fragment = null;
422
- url.cannotBeABaseURL = false;
423
- input = replace(input, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
424
- }
425
-
426
- input = replace(input, TAB_AND_NEW_LINE, '');
427
-
428
- codePoints = arrayFrom(input);
429
-
430
- while (pointer <= codePoints.length) {
431
- chr = codePoints[pointer];
432
- switch (state) {
433
- case SCHEME_START:
434
- if (chr && exec(ALPHA, chr)) {
435
- buffer += toLowerCase(chr);
436
- state = SCHEME;
437
- } else if (!stateOverride) {
438
- state = NO_SCHEME;
439
- continue;
440
- } else return INVALID_SCHEME;
441
- break;
442
-
443
- case SCHEME:
444
- if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) {
445
- buffer += toLowerCase(chr);
446
- } else if (chr == ':') {
447
- if (stateOverride && (
448
- (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
449
- (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
450
- (url.scheme == 'file' && !url.host)
451
- )) return;
452
- url.scheme = buffer;
453
- if (stateOverride) {
454
- if (url.isSpecial() && specialSchemes[url.scheme] == url.port) url.port = null;
455
- return;
456
- }
457
- buffer = '';
458
- if (url.scheme == 'file') {
459
- state = FILE;
460
- } else if (url.isSpecial() && base && base.scheme == url.scheme) {
461
- state = SPECIAL_RELATIVE_OR_AUTHORITY;
462
- } else if (url.isSpecial()) {
463
- state = SPECIAL_AUTHORITY_SLASHES;
464
- } else if (codePoints[pointer + 1] == '/') {
465
- state = PATH_OR_AUTHORITY;
466
- pointer++;
467
- } else {
468
- url.cannotBeABaseURL = true;
469
- push(url.path, '');
470
- state = CANNOT_BE_A_BASE_URL_PATH;
471
- }
472
- } else if (!stateOverride) {
473
- buffer = '';
474
- state = NO_SCHEME;
475
- pointer = 0;
476
- continue;
477
- } else return INVALID_SCHEME;
478
- break;
479
-
480
- case NO_SCHEME:
481
- if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME;
482
- if (base.cannotBeABaseURL && chr == '#') {
483
- url.scheme = base.scheme;
484
- url.path = arraySlice(base.path);
485
- url.query = base.query;
486
- url.fragment = '';
487
- url.cannotBeABaseURL = true;
488
- state = FRAGMENT;
489
- break;
490
- }
491
- state = base.scheme == 'file' ? FILE : RELATIVE;
492
- continue;
493
-
494
- case SPECIAL_RELATIVE_OR_AUTHORITY:
495
- if (chr == '/' && codePoints[pointer + 1] == '/') {
496
- state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
497
- pointer++;
498
- } else {
499
- state = RELATIVE;
500
- continue;
501
- } break;
502
-
503
- case PATH_OR_AUTHORITY:
504
- if (chr == '/') {
505
- state = AUTHORITY;
506
- break;
507
- } else {
508
- state = PATH;
509
- continue;
510
- }
511
-
512
- case RELATIVE:
513
- url.scheme = base.scheme;
514
- if (chr == EOF) {
515
- url.username = base.username;
516
- url.password = base.password;
517
- url.host = base.host;
518
- url.port = base.port;
519
- url.path = arraySlice(base.path);
520
- url.query = base.query;
521
- } else if (chr == '/' || (chr == '\\' && url.isSpecial())) {
522
- state = RELATIVE_SLASH;
523
- } else if (chr == '?') {
524
- url.username = base.username;
525
- url.password = base.password;
526
- url.host = base.host;
527
- url.port = base.port;
528
- url.path = arraySlice(base.path);
529
- url.query = '';
530
- state = QUERY;
531
- } else if (chr == '#') {
532
- url.username = base.username;
533
- url.password = base.password;
534
- url.host = base.host;
535
- url.port = base.port;
536
- url.path = arraySlice(base.path);
537
- url.query = base.query;
538
- url.fragment = '';
539
- state = FRAGMENT;
540
- } else {
541
- url.username = base.username;
542
- url.password = base.password;
543
- url.host = base.host;
544
- url.port = base.port;
545
- url.path = arraySlice(base.path);
546
- url.path.length--;
547
- state = PATH;
548
- continue;
549
- } break;
550
-
551
- case RELATIVE_SLASH:
552
- if (url.isSpecial() && (chr == '/' || chr == '\\')) {
553
- state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
554
- } else if (chr == '/') {
555
- state = AUTHORITY;
556
- } else {
557
- url.username = base.username;
558
- url.password = base.password;
559
- url.host = base.host;
560
- url.port = base.port;
561
- state = PATH;
562
- continue;
563
- } break;
564
-
565
- case SPECIAL_AUTHORITY_SLASHES:
566
- state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
567
- if (chr != '/' || charAt(buffer, pointer + 1) != '/') continue;
568
- pointer++;
569
- break;
570
-
571
- case SPECIAL_AUTHORITY_IGNORE_SLASHES:
572
- if (chr != '/' && chr != '\\') {
573
- state = AUTHORITY;
574
- continue;
575
- } break;
576
-
577
- case AUTHORITY:
578
- if (chr == '@') {
579
- if (seenAt) buffer = '%40' + buffer;
580
- seenAt = true;
581
- bufferCodePoints = arrayFrom(buffer);
582
- for (var i = 0; i < bufferCodePoints.length; i++) {
583
- var codePoint = bufferCodePoints[i];
584
- if (codePoint == ':' && !seenPasswordToken) {
585
- seenPasswordToken = true;
586
- continue;
587
- }
588
- var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
589
- if (seenPasswordToken) url.password += encodedCodePoints;
590
- else url.username += encodedCodePoints;
591
- }
592
- buffer = '';
593
- } else if (
594
- chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
595
- (chr == '\\' && url.isSpecial())
596
- ) {
597
- if (seenAt && buffer == '') return INVALID_AUTHORITY;
598
- pointer -= arrayFrom(buffer).length + 1;
599
- buffer = '';
600
- state = HOST;
601
- } else buffer += chr;
602
- break;
603
-
604
- case HOST:
605
- case HOSTNAME:
606
- if (stateOverride && url.scheme == 'file') {
607
- state = FILE_HOST;
608
- continue;
609
- } else if (chr == ':' && !seenBracket) {
610
- if (buffer == '') return INVALID_HOST;
611
- failure = url.parseHost(buffer);
612
- if (failure) return failure;
613
- buffer = '';
614
- state = PORT;
615
- if (stateOverride == HOSTNAME) return;
616
- } else if (
617
- chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
618
- (chr == '\\' && url.isSpecial())
619
- ) {
620
- if (url.isSpecial() && buffer == '') return INVALID_HOST;
621
- if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null)) return;
622
- failure = url.parseHost(buffer);
623
- if (failure) return failure;
624
- buffer = '';
625
- state = PATH_START;
626
- if (stateOverride) return;
627
- continue;
628
- } else {
629
- if (chr == '[') seenBracket = true;
630
- else if (chr == ']') seenBracket = false;
631
- buffer += chr;
632
- } break;
633
-
634
- case PORT:
635
- if (exec(DIGIT, chr)) {
636
- buffer += chr;
637
- } else if (
638
- chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
639
- (chr == '\\' && url.isSpecial()) ||
640
- stateOverride
641
- ) {
642
- if (buffer != '') {
643
- var port = parseInt(buffer, 10);
644
- if (port > 0xFFFF) return INVALID_PORT;
645
- url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
646
- buffer = '';
647
- }
648
- if (stateOverride) return;
649
- state = PATH_START;
650
- continue;
651
- } else return INVALID_PORT;
652
- break;
653
-
654
- case FILE:
655
- url.scheme = 'file';
656
- if (chr == '/' || chr == '\\') state = FILE_SLASH;
657
- else if (base && base.scheme == 'file') {
658
- if (chr == EOF) {
659
- url.host = base.host;
660
- url.path = arraySlice(base.path);
661
- url.query = base.query;
662
- } else if (chr == '?') {
663
- url.host = base.host;
664
- url.path = arraySlice(base.path);
665
- url.query = '';
666
- state = QUERY;
667
- } else if (chr == '#') {
668
- url.host = base.host;
669
- url.path = arraySlice(base.path);
670
- url.query = base.query;
671
- url.fragment = '';
672
- state = FRAGMENT;
673
- } else {
674
- if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
675
- url.host = base.host;
676
- url.path = arraySlice(base.path);
677
- url.shortenPath();
678
- }
679
- state = PATH;
680
- continue;
681
- }
682
- } else {
683
- state = PATH;
684
- continue;
685
- } break;
686
-
687
- case FILE_SLASH:
688
- if (chr == '/' || chr == '\\') {
689
- state = FILE_HOST;
690
- break;
691
- }
692
- if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
693
- if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
694
- else url.host = base.host;
695
- }
696
- state = PATH;
697
- continue;
698
-
699
- case FILE_HOST:
700
- if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
701
- if (!stateOverride && isWindowsDriveLetter(buffer)) {
702
- state = PATH;
703
- } else if (buffer == '') {
704
- url.host = '';
705
- if (stateOverride) return;
706
- state = PATH_START;
707
- } else {
708
- failure = url.parseHost(buffer);
709
- if (failure) return failure;
710
- if (url.host == 'localhost') url.host = '';
711
- if (stateOverride) return;
712
- buffer = '';
713
- state = PATH_START;
714
- } continue;
715
- } else buffer += chr;
716
- break;
717
-
718
- case PATH_START:
719
- if (url.isSpecial()) {
720
- state = PATH;
721
- if (chr != '/' && chr != '\\') continue;
722
- } else if (!stateOverride && chr == '?') {
723
- url.query = '';
724
- state = QUERY;
725
- } else if (!stateOverride && chr == '#') {
726
- url.fragment = '';
727
- state = FRAGMENT;
728
- } else if (chr != EOF) {
729
- state = PATH;
730
- if (chr != '/') continue;
731
- } break;
732
-
733
- case PATH:
734
- if (
735
- chr == EOF || chr == '/' ||
736
- (chr == '\\' && url.isSpecial()) ||
737
- (!stateOverride && (chr == '?' || chr == '#'))
738
- ) {
739
- if (isDoubleDot(buffer)) {
740
- url.shortenPath();
741
- if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
742
- push(url.path, '');
743
- }
744
- } else if (isSingleDot(buffer)) {
745
- if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
746
- push(url.path, '');
747
- }
748
- } else {
749
- if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
750
- if (url.host) url.host = '';
751
- buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
752
- }
753
- push(url.path, buffer);
754
- }
755
- buffer = '';
756
- if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
757
- while (url.path.length > 1 && url.path[0] === '') {
758
- shift(url.path);
759
- }
760
- }
761
- if (chr == '?') {
762
- url.query = '';
763
- state = QUERY;
764
- } else if (chr == '#') {
765
- url.fragment = '';
766
- state = FRAGMENT;
767
- }
768
- } else {
769
- buffer += percentEncode(chr, pathPercentEncodeSet);
770
- } break;
771
-
772
- case CANNOT_BE_A_BASE_URL_PATH:
773
- if (chr == '?') {
774
- url.query = '';
775
- state = QUERY;
776
- } else if (chr == '#') {
777
- url.fragment = '';
778
- state = FRAGMENT;
779
- } else if (chr != EOF) {
780
- url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
781
- } break;
782
-
783
- case QUERY:
784
- if (!stateOverride && chr == '#') {
785
- url.fragment = '';
786
- state = FRAGMENT;
787
- } else if (chr != EOF) {
788
- if (chr == "'" && url.isSpecial()) url.query += '%27';
789
- else if (chr == '#') url.query += '%23';
790
- else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
791
- } break;
792
-
793
- case FRAGMENT:
794
- if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
795
- break;
796
- }
797
-
798
- pointer++;
799
- }
800
- },
801
- // https://url.spec.whatwg.org/#host-parsing
802
- parseHost: function (input) {
803
- var result, codePoints, index;
804
- if (charAt(input, 0) == '[') {
805
- if (charAt(input, input.length - 1) != ']') return INVALID_HOST;
806
- result = parseIPv6(stringSlice(input, 1, -1));
807
- if (!result) return INVALID_HOST;
808
- this.host = result;
809
- // opaque host
810
- } else if (!this.isSpecial()) {
811
- if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
812
- result = '';
813
- codePoints = arrayFrom(input);
814
- for (index = 0; index < codePoints.length; index++) {
815
- result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
816
- }
817
- this.host = result;
818
- } else {
819
- input = toASCII(input);
820
- if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
821
- result = parseIPv4(input);
822
- if (result === null) return INVALID_HOST;
823
- this.host = result;
824
- }
825
- },
826
- // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
827
- cannotHaveUsernamePasswordPort: function () {
828
- return !this.host || this.cannotBeABaseURL || this.scheme == 'file';
829
- },
830
- // https://url.spec.whatwg.org/#include-credentials
831
- includesCredentials: function () {
832
- return this.username != '' || this.password != '';
833
- },
834
- // https://url.spec.whatwg.org/#is-special
835
- isSpecial: function () {
836
- return hasOwn(specialSchemes, this.scheme);
837
- },
838
- // https://url.spec.whatwg.org/#shorten-a-urls-path
839
- shortenPath: function () {
840
- var path = this.path;
841
- var pathSize = path.length;
842
- if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
843
- path.length--;
844
- }
845
- },
846
- // https://url.spec.whatwg.org/#concept-url-serializer
847
- serialize: function () {
848
- var url = this;
849
- var scheme = url.scheme;
850
- var username = url.username;
851
- var password = url.password;
852
- var host = url.host;
853
- var port = url.port;
854
- var path = url.path;
855
- var query = url.query;
856
- var fragment = url.fragment;
857
- var output = scheme + ':';
858
- if (host !== null) {
859
- output += '//';
860
- if (url.includesCredentials()) {
861
- output += username + (password ? ':' + password : '') + '@';
862
- }
863
- output += serializeHost(host);
864
- if (port !== null) output += ':' + port;
865
- } else if (scheme == 'file') output += '//';
866
- output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
867
- if (query !== null) output += '?' + query;
868
- if (fragment !== null) output += '#' + fragment;
869
- return output;
870
- },
871
- // https://url.spec.whatwg.org/#dom-url-href
872
- setHref: function (href) {
873
- var failure = this.parse(href);
874
- if (failure) throw TypeError(failure);
875
- this.searchParams.update();
876
- },
877
- // https://url.spec.whatwg.org/#dom-url-origin
878
- getOrigin: function () {
879
- var scheme = this.scheme;
880
- var port = this.port;
881
- if (scheme == 'blob') try {
882
- return new URLConstructor(scheme.path[0]).origin;
883
- } catch (error) {
884
- return 'null';
885
- }
886
- if (scheme == 'file' || !this.isSpecial()) return 'null';
887
- return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
888
- },
889
- // https://url.spec.whatwg.org/#dom-url-protocol
890
- getProtocol: function () {
891
- return this.scheme + ':';
892
- },
893
- setProtocol: function (protocol) {
894
- this.parse($toString(protocol) + ':', SCHEME_START);
895
- },
896
- // https://url.spec.whatwg.org/#dom-url-username
897
- getUsername: function () {
898
- return this.username;
899
- },
900
- setUsername: function (username) {
901
- var codePoints = arrayFrom($toString(username));
902
- if (this.cannotHaveUsernamePasswordPort()) return;
903
- this.username = '';
904
- for (var i = 0; i < codePoints.length; i++) {
905
- this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
906
- }
907
- },
908
- // https://url.spec.whatwg.org/#dom-url-password
909
- getPassword: function () {
910
- return this.password;
911
- },
912
- setPassword: function (password) {
913
- var codePoints = arrayFrom($toString(password));
914
- if (this.cannotHaveUsernamePasswordPort()) return;
915
- this.password = '';
916
- for (var i = 0; i < codePoints.length; i++) {
917
- this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
918
- }
919
- },
920
- // https://url.spec.whatwg.org/#dom-url-host
921
- getHost: function () {
922
- var host = this.host;
923
- var port = this.port;
924
- return host === null ? ''
925
- : port === null ? serializeHost(host)
926
- : serializeHost(host) + ':' + port;
927
- },
928
- setHost: function (host) {
929
- if (this.cannotBeABaseURL) return;
930
- this.parse(host, HOST);
931
- },
932
- // https://url.spec.whatwg.org/#dom-url-hostname
933
- getHostname: function () {
934
- var host = this.host;
935
- return host === null ? '' : serializeHost(host);
936
- },
937
- setHostname: function (hostname) {
938
- if (this.cannotBeABaseURL) return;
939
- this.parse(hostname, HOSTNAME);
940
- },
941
- // https://url.spec.whatwg.org/#dom-url-port
942
- getPort: function () {
943
- var port = this.port;
944
- return port === null ? '' : $toString(port);
945
- },
946
- setPort: function (port) {
947
- if (this.cannotHaveUsernamePasswordPort()) return;
948
- port = $toString(port);
949
- if (port == '') this.port = null;
950
- else this.parse(port, PORT);
951
- },
952
- // https://url.spec.whatwg.org/#dom-url-pathname
953
- getPathname: function () {
954
- var path = this.path;
955
- return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
956
- },
957
- setPathname: function (pathname) {
958
- if (this.cannotBeABaseURL) return;
959
- this.path = [];
960
- this.parse(pathname, PATH_START);
961
- },
962
- // https://url.spec.whatwg.org/#dom-url-search
963
- getSearch: function () {
964
- var query = this.query;
965
- return query ? '?' + query : '';
966
- },
967
- setSearch: function (search) {
968
- search = $toString(search);
969
- if (search == '') {
970
- this.query = null;
971
- } else {
972
- if ('?' == charAt(search, 0)) search = stringSlice(search, 1);
973
- this.query = '';
974
- this.parse(search, QUERY);
975
- }
976
- this.searchParams.update();
977
- },
978
- // https://url.spec.whatwg.org/#dom-url-searchparams
979
- getSearchParams: function () {
980
- return this.searchParams.facade;
981
- },
982
- // https://url.spec.whatwg.org/#dom-url-hash
983
- getHash: function () {
984
- var fragment = this.fragment;
985
- return fragment ? '#' + fragment : '';
986
- },
987
- setHash: function (hash) {
988
- hash = $toString(hash);
989
- if (hash == '') {
990
- this.fragment = null;
991
- return;
992
- }
993
- if ('#' == charAt(hash, 0)) hash = stringSlice(hash, 1);
994
- this.fragment = '';
995
- this.parse(hash, FRAGMENT);
996
- },
997
- update: function () {
998
- this.query = this.searchParams.serialize() || null;
999
- }
1000
- };
1001
-
1002
- // `URL` constructor
1003
- // https://url.spec.whatwg.org/#url-class
1004
- var URLConstructor = function URL(url /* , base */) {
1005
- var that = anInstance(this, URLPrototype);
1006
- var base = arguments.length > 1 ? arguments[1] : undefined;
1007
- var state = setInternalState(that, new URLState(url, false, base));
1008
- if (!DESCRIPTORS) {
1009
- that.href = state.serialize();
1010
- that.origin = state.getOrigin();
1011
- that.protocol = state.getProtocol();
1012
- that.username = state.getUsername();
1013
- that.password = state.getPassword();
1014
- that.host = state.getHost();
1015
- that.hostname = state.getHostname();
1016
- that.port = state.getPort();
1017
- that.pathname = state.getPathname();
1018
- that.search = state.getSearch();
1019
- that.searchParams = state.getSearchParams();
1020
- that.hash = state.getHash();
1021
- }
1022
- };
1023
-
1024
- var URLPrototype = URLConstructor.prototype;
1025
-
1026
- var accessorDescriptor = function (getter, setter) {
1027
- return {
1028
- get: function () {
1029
- return getInternalURLState(this)[getter]();
1030
- },
1031
- set: setter && function (value) {
1032
- return getInternalURLState(this)[setter](value);
1033
- },
1034
- configurable: true,
1035
- enumerable: true
1036
- };
1037
- };
1038
-
1039
- if (DESCRIPTORS) {
1040
- defineProperties(URLPrototype, {
1041
- // `URL.prototype.href` accessors pair
1042
- // https://url.spec.whatwg.org/#dom-url-href
1043
- href: accessorDescriptor('serialize', 'setHref'),
1044
- // `URL.prototype.origin` getter
1045
- // https://url.spec.whatwg.org/#dom-url-origin
1046
- origin: accessorDescriptor('getOrigin'),
1047
- // `URL.prototype.protocol` accessors pair
1048
- // https://url.spec.whatwg.org/#dom-url-protocol
1049
- protocol: accessorDescriptor('getProtocol', 'setProtocol'),
1050
- // `URL.prototype.username` accessors pair
1051
- // https://url.spec.whatwg.org/#dom-url-username
1052
- username: accessorDescriptor('getUsername', 'setUsername'),
1053
- // `URL.prototype.password` accessors pair
1054
- // https://url.spec.whatwg.org/#dom-url-password
1055
- password: accessorDescriptor('getPassword', 'setPassword'),
1056
- // `URL.prototype.host` accessors pair
1057
- // https://url.spec.whatwg.org/#dom-url-host
1058
- host: accessorDescriptor('getHost', 'setHost'),
1059
- // `URL.prototype.hostname` accessors pair
1060
- // https://url.spec.whatwg.org/#dom-url-hostname
1061
- hostname: accessorDescriptor('getHostname', 'setHostname'),
1062
- // `URL.prototype.port` accessors pair
1063
- // https://url.spec.whatwg.org/#dom-url-port
1064
- port: accessorDescriptor('getPort', 'setPort'),
1065
- // `URL.prototype.pathname` accessors pair
1066
- // https://url.spec.whatwg.org/#dom-url-pathname
1067
- pathname: accessorDescriptor('getPathname', 'setPathname'),
1068
- // `URL.prototype.search` accessors pair
1069
- // https://url.spec.whatwg.org/#dom-url-search
1070
- search: accessorDescriptor('getSearch', 'setSearch'),
1071
- // `URL.prototype.searchParams` getter
1072
- // https://url.spec.whatwg.org/#dom-url-searchparams
1073
- searchParams: accessorDescriptor('getSearchParams'),
1074
- // `URL.prototype.hash` accessors pair
1075
- // https://url.spec.whatwg.org/#dom-url-hash
1076
- hash: accessorDescriptor('getHash', 'setHash')
1077
- });
1078
- }
1079
-
1080
- // `URL.prototype.toJSON` method
1081
- // https://url.spec.whatwg.org/#dom-url-tojson
1082
- redefine(URLPrototype, 'toJSON', function toJSON() {
1083
- return getInternalURLState(this).serialize();
1084
- }, { enumerable: true });
1085
-
1086
- // `URL.prototype.toString` method
1087
- // https://url.spec.whatwg.org/#URL-stringification-behavior
1088
- redefine(URLPrototype, 'toString', function toString() {
1089
- return getInternalURLState(this).serialize();
1090
- }, { enumerable: true });
1091
-
1092
- if (NativeURL) {
1093
- var nativeCreateObjectURL = NativeURL.createObjectURL;
1094
- var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
1095
- // `URL.createObjectURL` method
1096
- // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
1097
- if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
1098
- // `URL.revokeObjectURL` method
1099
- // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
1100
- if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
1101
- }
1102
-
1103
- setToStringTag(URLConstructor, 'URL');
1104
-
1105
- $({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
1106
- URL: URLConstructor
1107
- });
1108
-
1109
-
1110
- /***/ }),
1111
-
1112
- /***/ "3c4e":
1113
- /***/ (function(module, exports, __webpack_require__) {
1114
-
1115
- "use strict";
1116
-
1117
-
1118
- var isMergeableObject = function isMergeableObject(value) {
1119
- return isNonNullObject(value)
1120
- && !isSpecial(value)
1121
- };
1122
-
1123
- function isNonNullObject(value) {
1124
- return !!value && typeof value === 'object'
1125
- }
1126
-
1127
- function isSpecial(value) {
1128
- var stringValue = Object.prototype.toString.call(value);
1129
-
1130
- return stringValue === '[object RegExp]'
1131
- || stringValue === '[object Date]'
1132
- || isReactElement(value)
1133
- }
1134
-
1135
- // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
1136
- var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
1137
- var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
1138
-
1139
- function isReactElement(value) {
1140
- return value.$$typeof === REACT_ELEMENT_TYPE
1141
- }
1142
-
1143
- function emptyTarget(val) {
1144
- return Array.isArray(val) ? [] : {}
1145
- }
1146
-
1147
- function cloneIfNecessary(value, optionsArgument) {
1148
- var clone = optionsArgument && optionsArgument.clone === true;
1149
- return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
1150
- }
1151
-
1152
- function defaultArrayMerge(target, source, optionsArgument) {
1153
- var destination = target.slice();
1154
- source.forEach(function(e, i) {
1155
- if (typeof destination[i] === 'undefined') {
1156
- destination[i] = cloneIfNecessary(e, optionsArgument);
1157
- } else if (isMergeableObject(e)) {
1158
- destination[i] = deepmerge(target[i], e, optionsArgument);
1159
- } else if (target.indexOf(e) === -1) {
1160
- destination.push(cloneIfNecessary(e, optionsArgument));
1161
- }
1162
- });
1163
- return destination
1164
- }
1165
-
1166
- function mergeObject(target, source, optionsArgument) {
1167
- var destination = {};
1168
- if (isMergeableObject(target)) {
1169
- Object.keys(target).forEach(function(key) {
1170
- destination[key] = cloneIfNecessary(target[key], optionsArgument);
1171
- });
1172
- }
1173
- Object.keys(source).forEach(function(key) {
1174
- if (!isMergeableObject(source[key]) || !target[key]) {
1175
- destination[key] = cloneIfNecessary(source[key], optionsArgument);
1176
- } else {
1177
- destination[key] = deepmerge(target[key], source[key], optionsArgument);
1178
- }
1179
- });
1180
- return destination
1181
- }
1182
-
1183
- function deepmerge(target, source, optionsArgument) {
1184
- var sourceIsArray = Array.isArray(source);
1185
- var targetIsArray = Array.isArray(target);
1186
- var options = optionsArgument || { arrayMerge: defaultArrayMerge };
1187
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
1188
-
1189
- if (!sourceAndTargetTypesMatch) {
1190
- return cloneIfNecessary(source, optionsArgument)
1191
- } else if (sourceIsArray) {
1192
- var arrayMerge = options.arrayMerge || defaultArrayMerge;
1193
- return arrayMerge(target, source, optionsArgument)
1194
- } else {
1195
- return mergeObject(target, source, optionsArgument)
1196
- }
1197
- }
1198
-
1199
- deepmerge.all = function deepmergeAll(array, optionsArgument) {
1200
- if (!Array.isArray(array) || array.length < 2) {
1201
- throw new Error('first argument should be an array with at least two elements')
1202
- }
1203
-
1204
- // we are sure there are at least 2 values, so it is safe to have no initial value
1205
- return array.reduce(function(prev, next) {
1206
- return deepmerge(prev, next, optionsArgument)
1207
- })
1208
- };
1209
-
1210
- var deepmerge_1 = deepmerge;
1211
-
1212
- module.exports = deepmerge_1;
1213
-
1214
-
1215
- /***/ }),
1216
-
1217
- /***/ "3ca3":
1218
- /***/ (function(module, exports, __webpack_require__) {
1219
-
1220
- "use strict";
1221
-
1222
- var charAt = __webpack_require__("6547").charAt;
1223
- var toString = __webpack_require__("577e");
1224
- var InternalStateModule = __webpack_require__("69f3");
1225
- var defineIterator = __webpack_require__("7dd0");
1226
-
1227
- var STRING_ITERATOR = 'String Iterator';
1228
- var setInternalState = InternalStateModule.set;
1229
- var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
1230
-
1231
- // `String.prototype[@@iterator]` method
1232
- // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
1233
- defineIterator(String, 'String', function (iterated) {
1234
- setInternalState(this, {
1235
- type: STRING_ITERATOR,
1236
- string: toString(iterated),
1237
- index: 0
1238
- });
1239
- // `%StringIteratorPrototype%.next` method
1240
- // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
1241
- }, function next() {
1242
- var state = getInternalState(this);
1243
- var string = state.string;
1244
- var index = state.index;
1245
- var point;
1246
- if (index >= string.length) return { value: undefined, done: true };
1247
- point = charAt(string, index);
1248
- state.index += point.length;
1249
- return { value: point, done: false };
1250
- });
1251
-
1252
-
1253
- /***/ }),
1254
-
1255
- /***/ "466d":
1256
- /***/ (function(module, exports, __webpack_require__) {
1257
-
1258
- "use strict";
1259
-
1260
- var call = __webpack_require__("c65b");
1261
- var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
1262
- var anObject = __webpack_require__("825a");
1263
- var toLength = __webpack_require__("50c4");
1264
- var toString = __webpack_require__("577e");
1265
- var requireObjectCoercible = __webpack_require__("1d80");
1266
- var getMethod = __webpack_require__("dc4a");
1267
- var advanceStringIndex = __webpack_require__("8aa5");
1268
- var regExpExec = __webpack_require__("14c3");
1269
-
1270
- // @@match logic
1271
- fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
1272
- return [
1273
- // `String.prototype.match` method
1274
- // https://tc39.es/ecma262/#sec-string.prototype.match
1275
- function match(regexp) {
1276
- var O = requireObjectCoercible(this);
1277
- var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH);
1278
- return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));
1279
- },
1280
- // `RegExp.prototype[@@match]` method
1281
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
1282
- function (string) {
1283
- var rx = anObject(this);
1284
- var S = toString(string);
1285
- var res = maybeCallNative(nativeMatch, rx, S);
1286
-
1287
- if (res.done) return res.value;
1288
-
1289
- if (!rx.global) return regExpExec(rx, S);
1290
-
1291
- var fullUnicode = rx.unicode;
1292
- rx.lastIndex = 0;
1293
- var A = [];
1294
- var n = 0;
1295
- var result;
1296
- while ((result = regExpExec(rx, S)) !== null) {
1297
- var matchStr = toString(result[0]);
1298
- A[n] = matchStr;
1299
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1300
- n++;
1301
- }
1302
- return n === 0 ? null : A;
1303
- }
1304
- ];
1305
- });
1306
-
1307
-
1308
- /***/ }),
1309
-
1310
- /***/ "7db0":
1311
- /***/ (function(module, exports, __webpack_require__) {
1312
-
1313
- "use strict";
1314
-
1315
- var $ = __webpack_require__("23e7");
1316
- var $find = __webpack_require__("b727").find;
1317
- var addToUnscopables = __webpack_require__("44d2");
1318
-
1319
- var FIND = 'find';
1320
- var SKIPS_HOLES = true;
1321
-
1322
- // Shouldn't skip holes
1323
- if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1324
-
1325
- // `Array.prototype.find` method
1326
- // https://tc39.es/ecma262/#sec-array.prototype.find
1327
- $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1328
- find: function find(callbackfn /* , that = undefined */) {
1329
- return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1330
- }
1331
- });
1332
-
1333
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1334
- addToUnscopables(FIND);
1335
-
1336
-
1337
- /***/ }),
1338
-
1339
- /***/ "9861":
1340
- /***/ (function(module, exports, __webpack_require__) {
1341
-
1342
- "use strict";
1343
-
1344
- // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
1345
- __webpack_require__("e260");
1346
- var $ = __webpack_require__("23e7");
1347
- var global = __webpack_require__("da84");
1348
- var getBuiltIn = __webpack_require__("d066");
1349
- var call = __webpack_require__("c65b");
1350
- var uncurryThis = __webpack_require__("e330");
1351
- var USE_NATIVE_URL = __webpack_require__("0d3b");
1352
- var redefine = __webpack_require__("6eeb");
1353
- var redefineAll = __webpack_require__("e2cc");
1354
- var setToStringTag = __webpack_require__("d44e");
1355
- var createIteratorConstructor = __webpack_require__("9ed3");
1356
- var InternalStateModule = __webpack_require__("69f3");
1357
- var anInstance = __webpack_require__("19aa");
1358
- var isCallable = __webpack_require__("1626");
1359
- var hasOwn = __webpack_require__("1a2d");
1360
- var bind = __webpack_require__("0366");
1361
- var classof = __webpack_require__("f5df");
1362
- var anObject = __webpack_require__("825a");
1363
- var isObject = __webpack_require__("861d");
1364
- var $toString = __webpack_require__("577e");
1365
- var create = __webpack_require__("7c73");
1366
- var createPropertyDescriptor = __webpack_require__("5c6c");
1367
- var getIterator = __webpack_require__("9a1f");
1368
- var getIteratorMethod = __webpack_require__("35a1");
1369
- var wellKnownSymbol = __webpack_require__("b622");
1370
- var arraySort = __webpack_require__("addb");
1371
-
1372
- var ITERATOR = wellKnownSymbol('iterator');
1373
- var URL_SEARCH_PARAMS = 'URLSearchParams';
1374
- var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
1375
- var setInternalState = InternalStateModule.set;
1376
- var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
1377
- var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
1378
-
1379
- var n$Fetch = getBuiltIn('fetch');
1380
- var N$Request = getBuiltIn('Request');
1381
- var Headers = getBuiltIn('Headers');
1382
- var RequestPrototype = N$Request && N$Request.prototype;
1383
- var HeadersPrototype = Headers && Headers.prototype;
1384
- var RegExp = global.RegExp;
1385
- var TypeError = global.TypeError;
1386
- var decodeURIComponent = global.decodeURIComponent;
1387
- var encodeURIComponent = global.encodeURIComponent;
1388
- var charAt = uncurryThis(''.charAt);
1389
- var join = uncurryThis([].join);
1390
- var push = uncurryThis([].push);
1391
- var replace = uncurryThis(''.replace);
1392
- var shift = uncurryThis([].shift);
1393
- var splice = uncurryThis([].splice);
1394
- var split = uncurryThis(''.split);
1395
- var stringSlice = uncurryThis(''.slice);
1396
-
1397
- var plus = /\+/g;
1398
- var sequences = Array(4);
1399
-
1400
- var percentSequence = function (bytes) {
1401
- return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
1402
- };
1403
-
1404
- var percentDecode = function (sequence) {
1405
- try {
1406
- return decodeURIComponent(sequence);
1407
- } catch (error) {
1408
- return sequence;
1409
- }
1410
- };
1411
-
1412
- var deserialize = function (it) {
1413
- var result = replace(it, plus, ' ');
1414
- var bytes = 4;
1415
- try {
1416
- return decodeURIComponent(result);
1417
- } catch (error) {
1418
- while (bytes) {
1419
- result = replace(result, percentSequence(bytes--), percentDecode);
1420
- }
1421
- return result;
1422
- }
1423
- };
1424
-
1425
- var find = /[!'()~]|%20/g;
1426
-
1427
- var replacements = {
1428
- '!': '%21',
1429
- "'": '%27',
1430
- '(': '%28',
1431
- ')': '%29',
1432
- '~': '%7E',
1433
- '%20': '+'
1434
- };
1435
-
1436
- var replacer = function (match) {
1437
- return replacements[match];
1438
- };
1439
-
1440
- var serialize = function (it) {
1441
- return replace(encodeURIComponent(it), find, replacer);
1442
- };
1443
-
1444
- var validateArgumentsLength = function (passed, required) {
1445
- if (passed < required) throw TypeError('Not enough arguments');
1446
- };
1447
-
1448
- var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
1449
- setInternalState(this, {
1450
- type: URL_SEARCH_PARAMS_ITERATOR,
1451
- iterator: getIterator(getInternalParamsState(params).entries),
1452
- kind: kind
1453
- });
1454
- }, 'Iterator', function next() {
1455
- var state = getInternalIteratorState(this);
1456
- var kind = state.kind;
1457
- var step = state.iterator.next();
1458
- var entry = step.value;
1459
- if (!step.done) {
1460
- step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
1461
- } return step;
1462
- }, true);
1463
-
1464
- var URLSearchParamsState = function (init) {
1465
- this.entries = [];
1466
- this.url = null;
1467
-
1468
- if (init !== undefined) {
1469
- if (isObject(init)) this.parseObject(init);
1470
- else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
1471
- }
1472
- };
1473
-
1474
- URLSearchParamsState.prototype = {
1475
- type: URL_SEARCH_PARAMS,
1476
- bindURL: function (url) {
1477
- this.url = url;
1478
- this.update();
1479
- },
1480
- parseObject: function (object) {
1481
- var iteratorMethod = getIteratorMethod(object);
1482
- var iterator, next, step, entryIterator, entryNext, first, second;
1483
-
1484
- if (iteratorMethod) {
1485
- iterator = getIterator(object, iteratorMethod);
1486
- next = iterator.next;
1487
- while (!(step = call(next, iterator)).done) {
1488
- entryIterator = getIterator(anObject(step.value));
1489
- entryNext = entryIterator.next;
1490
- if (
1491
- (first = call(entryNext, entryIterator)).done ||
1492
- (second = call(entryNext, entryIterator)).done ||
1493
- !call(entryNext, entryIterator).done
1494
- ) throw TypeError('Expected sequence with length 2');
1495
- push(this.entries, { key: $toString(first.value), value: $toString(second.value) });
1496
- }
1497
- } else for (var key in object) if (hasOwn(object, key)) {
1498
- push(this.entries, { key: key, value: $toString(object[key]) });
1499
- }
1500
- },
1501
- parseQuery: function (query) {
1502
- if (query) {
1503
- var attributes = split(query, '&');
1504
- var index = 0;
1505
- var attribute, entry;
1506
- while (index < attributes.length) {
1507
- attribute = attributes[index++];
1508
- if (attribute.length) {
1509
- entry = split(attribute, '=');
1510
- push(this.entries, {
1511
- key: deserialize(shift(entry)),
1512
- value: deserialize(join(entry, '='))
1513
- });
1514
- }
1515
- }
1516
- }
1517
- },
1518
- serialize: function () {
1519
- var entries = this.entries;
1520
- var result = [];
1521
- var index = 0;
1522
- var entry;
1523
- while (index < entries.length) {
1524
- entry = entries[index++];
1525
- push(result, serialize(entry.key) + '=' + serialize(entry.value));
1526
- } return join(result, '&');
1527
- },
1528
- update: function () {
1529
- this.entries.length = 0;
1530
- this.parseQuery(this.url.query);
1531
- },
1532
- updateURL: function () {
1533
- if (this.url) this.url.update();
1534
- }
1535
- };
1536
-
1537
- // `URLSearchParams` constructor
1538
- // https://url.spec.whatwg.org/#interface-urlsearchparams
1539
- var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
1540
- anInstance(this, URLSearchParamsPrototype);
1541
- var init = arguments.length > 0 ? arguments[0] : undefined;
1542
- setInternalState(this, new URLSearchParamsState(init));
1543
- };
1544
-
1545
- var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
1546
-
1547
- redefineAll(URLSearchParamsPrototype, {
1548
- // `URLSearchParams.prototype.append` method
1549
- // https://url.spec.whatwg.org/#dom-urlsearchparams-append
1550
- append: function append(name, value) {
1551
- validateArgumentsLength(arguments.length, 2);
1552
- var state = getInternalParamsState(this);
1553
- push(state.entries, { key: $toString(name), value: $toString(value) });
1554
- state.updateURL();
1555
- },
1556
- // `URLSearchParams.prototype.delete` method
1557
- // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
1558
- 'delete': function (name) {
1559
- validateArgumentsLength(arguments.length, 1);
1560
- var state = getInternalParamsState(this);
1561
- var entries = state.entries;
1562
- var key = $toString(name);
1563
- var index = 0;
1564
- while (index < entries.length) {
1565
- if (entries[index].key === key) splice(entries, index, 1);
1566
- else index++;
1567
- }
1568
- state.updateURL();
1569
- },
1570
- // `URLSearchParams.prototype.get` method
1571
- // https://url.spec.whatwg.org/#dom-urlsearchparams-get
1572
- get: function get(name) {
1573
- validateArgumentsLength(arguments.length, 1);
1574
- var entries = getInternalParamsState(this).entries;
1575
- var key = $toString(name);
1576
- var index = 0;
1577
- for (; index < entries.length; index++) {
1578
- if (entries[index].key === key) return entries[index].value;
1579
- }
1580
- return null;
1581
- },
1582
- // `URLSearchParams.prototype.getAll` method
1583
- // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
1584
- getAll: function getAll(name) {
1585
- validateArgumentsLength(arguments.length, 1);
1586
- var entries = getInternalParamsState(this).entries;
1587
- var key = $toString(name);
1588
- var result = [];
1589
- var index = 0;
1590
- for (; index < entries.length; index++) {
1591
- if (entries[index].key === key) push(result, entries[index].value);
1592
- }
1593
- return result;
1594
- },
1595
- // `URLSearchParams.prototype.has` method
1596
- // https://url.spec.whatwg.org/#dom-urlsearchparams-has
1597
- has: function has(name) {
1598
- validateArgumentsLength(arguments.length, 1);
1599
- var entries = getInternalParamsState(this).entries;
1600
- var key = $toString(name);
1601
- var index = 0;
1602
- while (index < entries.length) {
1603
- if (entries[index++].key === key) return true;
1604
- }
1605
- return false;
1606
- },
1607
- // `URLSearchParams.prototype.set` method
1608
- // https://url.spec.whatwg.org/#dom-urlsearchparams-set
1609
- set: function set(name, value) {
1610
- validateArgumentsLength(arguments.length, 1);
1611
- var state = getInternalParamsState(this);
1612
- var entries = state.entries;
1613
- var found = false;
1614
- var key = $toString(name);
1615
- var val = $toString(value);
1616
- var index = 0;
1617
- var entry;
1618
- for (; index < entries.length; index++) {
1619
- entry = entries[index];
1620
- if (entry.key === key) {
1621
- if (found) splice(entries, index--, 1);
1622
- else {
1623
- found = true;
1624
- entry.value = val;
1625
- }
1626
- }
1627
- }
1628
- if (!found) push(entries, { key: key, value: val });
1629
- state.updateURL();
1630
- },
1631
- // `URLSearchParams.prototype.sort` method
1632
- // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
1633
- sort: function sort() {
1634
- var state = getInternalParamsState(this);
1635
- arraySort(state.entries, function (a, b) {
1636
- return a.key > b.key ? 1 : -1;
1637
- });
1638
- state.updateURL();
1639
- },
1640
- // `URLSearchParams.prototype.forEach` method
1641
- forEach: function forEach(callback /* , thisArg */) {
1642
- var entries = getInternalParamsState(this).entries;
1643
- var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
1644
- var index = 0;
1645
- var entry;
1646
- while (index < entries.length) {
1647
- entry = entries[index++];
1648
- boundFunction(entry.value, entry.key, this);
1649
- }
1650
- },
1651
- // `URLSearchParams.prototype.keys` method
1652
- keys: function keys() {
1653
- return new URLSearchParamsIterator(this, 'keys');
1654
- },
1655
- // `URLSearchParams.prototype.values` method
1656
- values: function values() {
1657
- return new URLSearchParamsIterator(this, 'values');
1658
- },
1659
- // `URLSearchParams.prototype.entries` method
1660
- entries: function entries() {
1661
- return new URLSearchParamsIterator(this, 'entries');
1662
- }
1663
- }, { enumerable: true });
1664
-
1665
- // `URLSearchParams.prototype[@@iterator]` method
1666
- redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
1667
-
1668
- // `URLSearchParams.prototype.toString` method
1669
- // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
1670
- redefine(URLSearchParamsPrototype, 'toString', function toString() {
1671
- return getInternalParamsState(this).serialize();
1672
- }, { enumerable: true });
1673
-
1674
- setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
1675
-
1676
- $({ global: true, forced: !USE_NATIVE_URL }, {
1677
- URLSearchParams: URLSearchParamsConstructor
1678
- });
1679
-
1680
- // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
1681
- if (!USE_NATIVE_URL && isCallable(Headers)) {
1682
- var headersHas = uncurryThis(HeadersPrototype.has);
1683
- var headersSet = uncurryThis(HeadersPrototype.set);
1684
-
1685
- var wrapRequestOptions = function (init) {
1686
- if (isObject(init)) {
1687
- var body = init.body;
1688
- var headers;
1689
- if (classof(body) === URL_SEARCH_PARAMS) {
1690
- headers = init.headers ? new Headers(init.headers) : new Headers();
1691
- if (!headersHas(headers, 'content-type')) {
1692
- headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
1693
- }
1694
- return create(init, {
1695
- body: createPropertyDescriptor(0, $toString(body)),
1696
- headers: createPropertyDescriptor(0, headers)
1697
- });
1698
- }
1699
- } return init;
1700
- };
1701
-
1702
- if (isCallable(n$Fetch)) {
1703
- $({ global: true, enumerable: true, forced: true }, {
1704
- fetch: function fetch(input /* , init */) {
1705
- return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
1706
- }
1707
- });
1708
- }
1709
-
1710
- if (isCallable(N$Request)) {
1711
- var RequestConstructor = function Request(input /* , init */) {
1712
- anInstance(this, RequestPrototype);
1713
- return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
1714
- };
1715
-
1716
- RequestPrototype.constructor = RequestConstructor;
1717
- RequestConstructor.prototype = RequestPrototype;
1718
-
1719
- $({ global: true, forced: true }, {
1720
- Request: RequestConstructor
1721
- });
1722
- }
1723
- }
1724
-
1725
- module.exports = {
1726
- URLSearchParams: URLSearchParamsConstructor,
1727
- getState: getInternalParamsState
1728
- };
1729
-
1730
-
1731
- /***/ }),
1732
-
1733
- /***/ "99af":
1734
- /***/ (function(module, exports, __webpack_require__) {
1735
-
1736
- "use strict";
1737
-
1738
- var $ = __webpack_require__("23e7");
1739
- var global = __webpack_require__("da84");
1740
- var fails = __webpack_require__("d039");
1741
- var isArray = __webpack_require__("e8b5");
1742
- var isObject = __webpack_require__("861d");
1743
- var toObject = __webpack_require__("7b0b");
1744
- var lengthOfArrayLike = __webpack_require__("07fa");
1745
- var createProperty = __webpack_require__("8418");
1746
- var arraySpeciesCreate = __webpack_require__("65f0");
1747
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
1748
- var wellKnownSymbol = __webpack_require__("b622");
1749
- var V8_VERSION = __webpack_require__("2d00");
1750
-
1751
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1752
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1753
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1754
- var TypeError = global.TypeError;
1755
-
1756
- // We can't use this feature detection in V8 since it causes
1757
- // deoptimization and serious performance degradation
1758
- // https://github.com/zloirock/core-js/issues/679
1759
- var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
1760
- var array = [];
1761
- array[IS_CONCAT_SPREADABLE] = false;
1762
- return array.concat()[0] !== array;
1763
- });
1764
-
1765
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1766
-
1767
- var isConcatSpreadable = function (O) {
1768
- if (!isObject(O)) return false;
1769
- var spreadable = O[IS_CONCAT_SPREADABLE];
1770
- return spreadable !== undefined ? !!spreadable : isArray(O);
1771
- };
1772
-
1773
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1774
-
1775
- // `Array.prototype.concat` method
1776
- // https://tc39.es/ecma262/#sec-array.prototype.concat
1777
- // with adding support of @@isConcatSpreadable and @@species
1778
- $({ target: 'Array', proto: true, forced: FORCED }, {
1779
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1780
- concat: function concat(arg) {
1781
- var O = toObject(this);
1782
- var A = arraySpeciesCreate(O, 0);
1783
- var n = 0;
1784
- var i, k, length, len, E;
1785
- for (i = -1, length = arguments.length; i < length; i++) {
1786
- E = i === -1 ? O : arguments[i];
1787
- if (isConcatSpreadable(E)) {
1788
- len = lengthOfArrayLike(E);
1789
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1790
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1791
- } else {
1792
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1793
- createProperty(A, n++, E);
1794
- }
1795
- }
1796
- A.length = n;
1797
- return A;
1798
- }
1799
- });
1800
-
1801
-
1802
- /***/ }),
1803
-
1804
- /***/ "a15b":
1805
- /***/ (function(module, exports, __webpack_require__) {
1806
-
1807
- "use strict";
1808
-
1809
- var $ = __webpack_require__("23e7");
1810
- var uncurryThis = __webpack_require__("e330");
1811
- var IndexedObject = __webpack_require__("44ad");
1812
- var toIndexedObject = __webpack_require__("fc6a");
1813
- var arrayMethodIsStrict = __webpack_require__("a640");
1814
-
1815
- var un$Join = uncurryThis([].join);
1816
-
1817
- var ES3_STRINGS = IndexedObject != Object;
1818
- var STRICT_METHOD = arrayMethodIsStrict('join', ',');
1819
-
1820
- // `Array.prototype.join` method
1821
- // https://tc39.es/ecma262/#sec-array.prototype.join
1822
- $({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
1823
- join: function join(separator) {
1824
- return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
1825
- }
1826
- });
1827
-
1828
-
1829
- /***/ }),
1830
-
1831
- /***/ "a434":
1832
- /***/ (function(module, exports, __webpack_require__) {
1833
-
1834
- "use strict";
1835
-
1836
- var $ = __webpack_require__("23e7");
1837
- var global = __webpack_require__("da84");
1838
- var toAbsoluteIndex = __webpack_require__("23cb");
1839
- var toIntegerOrInfinity = __webpack_require__("5926");
1840
- var lengthOfArrayLike = __webpack_require__("07fa");
1841
- var toObject = __webpack_require__("7b0b");
1842
- var arraySpeciesCreate = __webpack_require__("65f0");
1843
- var createProperty = __webpack_require__("8418");
1844
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
1845
-
1846
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
1847
-
1848
- var TypeError = global.TypeError;
1849
- var max = Math.max;
1850
- var min = Math.min;
1851
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1852
- var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
1853
-
1854
- // `Array.prototype.splice` method
1855
- // https://tc39.es/ecma262/#sec-array.prototype.splice
1856
- // with adding support of @@species
1857
- $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1858
- splice: function splice(start, deleteCount /* , ...items */) {
1859
- var O = toObject(this);
1860
- var len = lengthOfArrayLike(O);
1861
- var actualStart = toAbsoluteIndex(start, len);
1862
- var argumentsLength = arguments.length;
1863
- var insertCount, actualDeleteCount, A, k, from, to;
1864
- if (argumentsLength === 0) {
1865
- insertCount = actualDeleteCount = 0;
1866
- } else if (argumentsLength === 1) {
1867
- insertCount = 0;
1868
- actualDeleteCount = len - actualStart;
1869
- } else {
1870
- insertCount = argumentsLength - 2;
1871
- actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
1872
- }
1873
- if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
1874
- throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
1875
- }
1876
- A = arraySpeciesCreate(O, actualDeleteCount);
1877
- for (k = 0; k < actualDeleteCount; k++) {
1878
- from = actualStart + k;
1879
- if (from in O) createProperty(A, k, O[from]);
1880
- }
1881
- A.length = actualDeleteCount;
1882
- if (insertCount < actualDeleteCount) {
1883
- for (k = actualStart; k < len - actualDeleteCount; k++) {
1884
- from = k + actualDeleteCount;
1885
- to = k + insertCount;
1886
- if (from in O) O[to] = O[from];
1887
- else delete O[to];
1888
- }
1889
- for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
1890
- } else if (insertCount > actualDeleteCount) {
1891
- for (k = len - actualDeleteCount; k > actualStart; k--) {
1892
- from = k + actualDeleteCount - 1;
1893
- to = k + insertCount - 1;
1894
- if (from in O) O[to] = O[from];
1895
- else delete O[to];
1896
- }
1897
- }
1898
- for (k = 0; k < insertCount; k++) {
1899
- O[k + actualStart] = arguments[k + 2];
1900
- }
1901
- O.length = len - actualDeleteCount + insertCount;
1902
- return A;
1903
- }
1904
- });
1905
-
1906
-
1907
- /***/ }),
1908
-
1909
- /***/ "a9e3":
1910
- /***/ (function(module, exports, __webpack_require__) {
1911
-
1912
- "use strict";
1913
-
1914
- var DESCRIPTORS = __webpack_require__("83ab");
1915
- var global = __webpack_require__("da84");
1916
- var uncurryThis = __webpack_require__("e330");
1917
- var isForced = __webpack_require__("94ca");
1918
- var redefine = __webpack_require__("6eeb");
1919
- var hasOwn = __webpack_require__("1a2d");
1920
- var inheritIfRequired = __webpack_require__("7156");
1921
- var isPrototypeOf = __webpack_require__("3a9b");
1922
- var isSymbol = __webpack_require__("d9b5");
1923
- var toPrimitive = __webpack_require__("c04e");
1924
- var fails = __webpack_require__("d039");
1925
- var getOwnPropertyNames = __webpack_require__("241c").f;
1926
- var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
1927
- var defineProperty = __webpack_require__("9bf2").f;
1928
- var thisNumberValue = __webpack_require__("408a");
1929
- var trim = __webpack_require__("58a8").trim;
1930
-
1931
- var NUMBER = 'Number';
1932
- var NativeNumber = global[NUMBER];
1933
- var NumberPrototype = NativeNumber.prototype;
1934
- var TypeError = global.TypeError;
1935
- var arraySlice = uncurryThis(''.slice);
1936
- var charCodeAt = uncurryThis(''.charCodeAt);
1937
-
1938
- // `ToNumeric` abstract operation
1939
- // https://tc39.es/ecma262/#sec-tonumeric
1940
- var toNumeric = function (value) {
1941
- var primValue = toPrimitive(value, 'number');
1942
- return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
1943
- };
1944
-
1945
- // `ToNumber` abstract operation
1946
- // https://tc39.es/ecma262/#sec-tonumber
1947
- var toNumber = function (argument) {
1948
- var it = toPrimitive(argument, 'number');
1949
- var first, third, radix, maxCode, digits, length, index, code;
1950
- if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');
1951
- if (typeof it == 'string' && it.length > 2) {
1952
- it = trim(it);
1953
- first = charCodeAt(it, 0);
1954
- if (first === 43 || first === 45) {
1955
- third = charCodeAt(it, 2);
1956
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
1957
- } else if (first === 48) {
1958
- switch (charCodeAt(it, 1)) {
1959
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
1960
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
1961
- default: return +it;
1962
- }
1963
- digits = arraySlice(it, 2);
1964
- length = digits.length;
1965
- for (index = 0; index < length; index++) {
1966
- code = charCodeAt(digits, index);
1967
- // parseInt parses a string to a first unavailable symbol
1968
- // but ToNumber should return NaN if a string contains unavailable symbols
1969
- if (code < 48 || code > maxCode) return NaN;
1970
- } return parseInt(digits, radix);
1971
- }
1972
- } return +it;
1973
- };
1974
-
1975
- // `Number` constructor
1976
- // https://tc39.es/ecma262/#sec-number-constructor
1977
- if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
1978
- var NumberWrapper = function Number(value) {
1979
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
1980
- var dummy = this;
1981
- // check on 1..constructor(foo) case
1982
- return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
1983
- ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
1984
- };
1985
- for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
1986
- // ES3:
1987
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
1988
- // ES2015 (in case, if modules with ES2015 Number statics required before):
1989
- 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
1990
- // ESNext
1991
- 'fromString,range'
1992
- ).split(','), j = 0, key; keys.length > j; j++) {
1993
- if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
1994
- defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
1995
- }
1996
- }
1997
- NumberWrapper.prototype = NumberPrototype;
1998
- NumberPrototype.constructor = NumberWrapper;
1999
- redefine(global, NUMBER, NumberWrapper);
2000
- }
2001
-
2002
-
2003
- /***/ }),
2004
-
2005
- /***/ "ac1f":
2006
- /***/ (function(module, exports, __webpack_require__) {
2007
-
2008
- "use strict";
2009
-
2010
- var $ = __webpack_require__("23e7");
2011
- var exec = __webpack_require__("9263");
2012
-
2013
- // `RegExp.prototype.exec` method
2014
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2015
- $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2016
- exec: exec
2017
- });
2018
-
2019
-
2020
- /***/ }),
2021
-
2022
- /***/ "b0c0":
2023
- /***/ (function(module, exports, __webpack_require__) {
2024
-
2025
- var DESCRIPTORS = __webpack_require__("83ab");
2026
- var FUNCTION_NAME_EXISTS = __webpack_require__("5e77").EXISTS;
2027
- var uncurryThis = __webpack_require__("e330");
2028
- var defineProperty = __webpack_require__("9bf2").f;
2029
-
2030
- var FunctionPrototype = Function.prototype;
2031
- var functionToString = uncurryThis(FunctionPrototype.toString);
2032
- var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
2033
- var regExpExec = uncurryThis(nameRE.exec);
2034
- var NAME = 'name';
2035
-
2036
- // Function instances `.name` property
2037
- // https://tc39.es/ecma262/#sec-function-instances-name
2038
- if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
2039
- defineProperty(FunctionPrototype, NAME, {
2040
- configurable: true,
2041
- get: function () {
2042
- try {
2043
- return regExpExec(nameRE, functionToString(this))[1];
2044
- } catch (error) {
2045
- return '';
2046
- }
2047
- }
2048
- });
2049
- }
2050
-
2051
-
2052
- /***/ }),
2053
-
2054
- /***/ "caad":
2055
- /***/ (function(module, exports, __webpack_require__) {
2056
-
2057
- "use strict";
2058
-
2059
- var $ = __webpack_require__("23e7");
2060
- var $includes = __webpack_require__("4d64").includes;
2061
- var addToUnscopables = __webpack_require__("44d2");
2062
-
2063
- // `Array.prototype.includes` method
2064
- // https://tc39.es/ecma262/#sec-array.prototype.includes
2065
- $({ target: 'Array', proto: true }, {
2066
- includes: function includes(el /* , fromIndex = 0 */) {
2067
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2068
- }
2069
- });
2070
-
2071
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2072
- addToUnscopables('includes');
2073
-
2074
-
2075
- /***/ }),
2076
-
2077
- /***/ "cca6":
2078
- /***/ (function(module, exports, __webpack_require__) {
2079
-
2080
- var $ = __webpack_require__("23e7");
2081
- var assign = __webpack_require__("60da");
2082
-
2083
- // `Object.assign` method
2084
- // https://tc39.es/ecma262/#sec-object.assign
2085
- // eslint-disable-next-line es/no-object-assign -- required for testing
2086
- $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
2087
- assign: assign
2088
- });
2089
-
2090
-
2091
- /***/ }),
2092
-
2093
- /***/ "d3b7":
2094
- /***/ (function(module, exports, __webpack_require__) {
2095
-
2096
- var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
2097
- var redefine = __webpack_require__("6eeb");
2098
- var toString = __webpack_require__("b041");
2099
-
2100
- // `Object.prototype.toString` method
2101
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
2102
- if (!TO_STRING_TAG_SUPPORT) {
2103
- redefine(Object.prototype, 'toString', toString, { unsafe: true });
2104
- }
2105
-
2106
-
2107
- /***/ }),
2108
-
2109
- /***/ "d81d":
2110
- /***/ (function(module, exports, __webpack_require__) {
2111
-
2112
- "use strict";
2113
-
2114
- var $ = __webpack_require__("23e7");
2115
- var $map = __webpack_require__("b727").map;
2116
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
2117
-
2118
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
2119
-
2120
- // `Array.prototype.map` method
2121
- // https://tc39.es/ecma262/#sec-array.prototype.map
2122
- // with adding support of @@species
2123
- $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2124
- map: function map(callbackfn /* , thisArg */) {
2125
- return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2126
- }
2127
- });
2128
-
2129
-
2130
- /***/ }),
2131
-
2132
- /***/ "ddb0":
2133
- /***/ (function(module, exports, __webpack_require__) {
2134
-
2135
- var global = __webpack_require__("da84");
2136
- var DOMIterables = __webpack_require__("fdbc");
2137
- var DOMTokenListPrototype = __webpack_require__("785a");
2138
- var ArrayIteratorMethods = __webpack_require__("e260");
2139
- var createNonEnumerableProperty = __webpack_require__("9112");
2140
- var wellKnownSymbol = __webpack_require__("b622");
2141
-
2142
- var ITERATOR = wellKnownSymbol('iterator');
2143
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2144
- var ArrayValues = ArrayIteratorMethods.values;
2145
-
2146
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2147
- if (CollectionPrototype) {
2148
- // some Chrome versions have non-configurable methods on DOMTokenList
2149
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2150
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2151
- } catch (error) {
2152
- CollectionPrototype[ITERATOR] = ArrayValues;
2153
- }
2154
- if (!CollectionPrototype[TO_STRING_TAG]) {
2155
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
2156
- }
2157
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2158
- // some Chrome versions have non-configurable methods on DOMTokenList
2159
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2160
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2161
- } catch (error) {
2162
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2163
- }
2164
- }
2165
- }
2166
- };
2167
-
2168
- for (var COLLECTION_NAME in DOMIterables) {
2169
- handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);
2170
- }
2171
-
2172
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2173
-
2174
-
2175
- /***/ }),
2176
-
2177
- /***/ "e260":
2178
- /***/ (function(module, exports, __webpack_require__) {
2179
-
2180
- "use strict";
2181
-
2182
- var toIndexedObject = __webpack_require__("fc6a");
2183
- var addToUnscopables = __webpack_require__("44d2");
2184
- var Iterators = __webpack_require__("3f8c");
2185
- var InternalStateModule = __webpack_require__("69f3");
2186
- var defineProperty = __webpack_require__("9bf2").f;
2187
- var defineIterator = __webpack_require__("7dd0");
2188
- var IS_PURE = __webpack_require__("c430");
2189
- var DESCRIPTORS = __webpack_require__("83ab");
2190
-
2191
- var ARRAY_ITERATOR = 'Array Iterator';
2192
- var setInternalState = InternalStateModule.set;
2193
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
2194
-
2195
- // `Array.prototype.entries` method
2196
- // https://tc39.es/ecma262/#sec-array.prototype.entries
2197
- // `Array.prototype.keys` method
2198
- // https://tc39.es/ecma262/#sec-array.prototype.keys
2199
- // `Array.prototype.values` method
2200
- // https://tc39.es/ecma262/#sec-array.prototype.values
2201
- // `Array.prototype[@@iterator]` method
2202
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
2203
- // `CreateArrayIterator` internal method
2204
- // https://tc39.es/ecma262/#sec-createarrayiterator
2205
- module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
2206
- setInternalState(this, {
2207
- type: ARRAY_ITERATOR,
2208
- target: toIndexedObject(iterated), // target
2209
- index: 0, // next index
2210
- kind: kind // kind
2211
- });
2212
- // `%ArrayIteratorPrototype%.next` method
2213
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2214
- }, function () {
2215
- var state = getInternalState(this);
2216
- var target = state.target;
2217
- var kind = state.kind;
2218
- var index = state.index++;
2219
- if (!target || index >= target.length) {
2220
- state.target = undefined;
2221
- return { value: undefined, done: true };
2222
- }
2223
- if (kind == 'keys') return { value: index, done: false };
2224
- if (kind == 'values') return { value: target[index], done: false };
2225
- return { value: [index, target[index]], done: false };
2226
- }, 'values');
2227
-
2228
- // argumentsList[@@iterator] is %ArrayProto_values%
2229
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2230
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2231
- var values = Iterators.Arguments = Iterators.Array;
2232
-
2233
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2234
- addToUnscopables('keys');
2235
- addToUnscopables('values');
2236
- addToUnscopables('entries');
2237
-
2238
- // V8 ~ Chrome 45- bug
2239
- if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
2240
- defineProperty(values, 'name', { value: 'values' });
2241
- } catch (error) { /* empty */ }
2242
-
2243
-
2244
- /***/ }),
2245
-
2246
- /***/ "e9c4":
2247
- /***/ (function(module, exports, __webpack_require__) {
2248
-
2249
- var $ = __webpack_require__("23e7");
2250
- var global = __webpack_require__("da84");
2251
- var getBuiltIn = __webpack_require__("d066");
2252
- var apply = __webpack_require__("2ba4");
2253
- var uncurryThis = __webpack_require__("e330");
2254
- var fails = __webpack_require__("d039");
2255
-
2256
- var Array = global.Array;
2257
- var $stringify = getBuiltIn('JSON', 'stringify');
2258
- var exec = uncurryThis(/./.exec);
2259
- var charAt = uncurryThis(''.charAt);
2260
- var charCodeAt = uncurryThis(''.charCodeAt);
2261
- var replace = uncurryThis(''.replace);
2262
- var numberToString = uncurryThis(1.0.toString);
2263
-
2264
- var tester = /[\uD800-\uDFFF]/g;
2265
- var low = /^[\uD800-\uDBFF]$/;
2266
- var hi = /^[\uDC00-\uDFFF]$/;
2267
-
2268
- var fix = function (match, offset, string) {
2269
- var prev = charAt(string, offset - 1);
2270
- var next = charAt(string, offset + 1);
2271
- if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
2272
- return '\\u' + numberToString(charCodeAt(match, 0), 16);
2273
- } return match;
2274
- };
2275
-
2276
- var FORCED = fails(function () {
2277
- return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
2278
- || $stringify('\uDEAD') !== '"\\udead"';
2279
- });
2280
-
2281
- if ($stringify) {
2282
- // `JSON.stringify` method
2283
- // https://tc39.es/ecma262/#sec-json.stringify
2284
- // https://github.com/tc39/proposal-well-formed-stringify
2285
- $({ target: 'JSON', stat: true, forced: FORCED }, {
2286
- // eslint-disable-next-line no-unused-vars -- required for `.length`
2287
- stringify: function stringify(it, replacer, space) {
2288
- for (var i = 0, l = arguments.length, args = Array(l); i < l; i++) args[i] = arguments[i];
2289
- var result = apply($stringify, null, args);
2290
- return typeof result == 'string' ? replace(result, tester, fix) : result;
2291
- }
2292
- });
2293
- }
2294
-
2295
-
2296
- /***/ }),
2297
-
2298
- /***/ "fb6a":
2299
- /***/ (function(module, exports, __webpack_require__) {
2300
-
2301
- "use strict";
2302
-
2303
- var $ = __webpack_require__("23e7");
2304
- var global = __webpack_require__("da84");
2305
- var isArray = __webpack_require__("e8b5");
2306
- var isConstructor = __webpack_require__("68ee");
2307
- var isObject = __webpack_require__("861d");
2308
- var toAbsoluteIndex = __webpack_require__("23cb");
2309
- var lengthOfArrayLike = __webpack_require__("07fa");
2310
- var toIndexedObject = __webpack_require__("fc6a");
2311
- var createProperty = __webpack_require__("8418");
2312
- var wellKnownSymbol = __webpack_require__("b622");
2313
- var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
2314
- var un$Slice = __webpack_require__("f36a");
2315
-
2316
- var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
2317
-
2318
- var SPECIES = wellKnownSymbol('species');
2319
- var Array = global.Array;
2320
- var max = Math.max;
2321
-
2322
- // `Array.prototype.slice` method
2323
- // https://tc39.es/ecma262/#sec-array.prototype.slice
2324
- // fallback for not array-like ES3 strings and DOM objects
2325
- $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2326
- slice: function slice(start, end) {
2327
- var O = toIndexedObject(this);
2328
- var length = lengthOfArrayLike(O);
2329
- var k = toAbsoluteIndex(start, length);
2330
- var fin = toAbsoluteIndex(end === undefined ? length : end, length);
2331
- // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
2332
- var Constructor, result, n;
2333
- if (isArray(O)) {
2334
- Constructor = O.constructor;
2335
- // cross-realm fallback
2336
- if (isConstructor(Constructor) && (Constructor === Array || isArray(Constructor.prototype))) {
2337
- Constructor = undefined;
2338
- } else if (isObject(Constructor)) {
2339
- Constructor = Constructor[SPECIES];
2340
- if (Constructor === null) Constructor = undefined;
2341
- }
2342
- if (Constructor === Array || Constructor === undefined) {
2343
- return un$Slice(O, k, fin);
2344
- }
2345
- }
2346
- result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
2347
- for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
2348
- result.length = n;
2349
- return result;
2350
- }
2351
- });
2352
-
2353
-
2354
- /***/ })
2355
-
2356
- }]);