@nocobase/plugin-multi-keyword-filter 2.2.17 → 2.2.18

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 (46) hide show
  1. package/dist/client/103.b39ee70786cb13a7.js +10 -0
  2. package/dist/client/index.js +1 -1
  3. package/dist/client-v2/103.dfed67c95bcd8a1d.js +10 -0
  4. package/dist/client-v2/index.js +1 -1
  5. package/dist/externalVersion.js +4 -4
  6. package/dist/node_modules/qs/.editorconfig +4 -1
  7. package/dist/node_modules/qs/.github/SECURITY.md +11 -0
  8. package/dist/node_modules/qs/.github/THREAT_MODEL.md +78 -0
  9. package/dist/node_modules/qs/dist/qs.js +90 -2036
  10. package/dist/node_modules/qs/lib/index.js +1 -1
  11. package/dist/node_modules/qs/lib/parse.js +215 -66
  12. package/dist/node_modules/qs/lib/stringify.js +90 -32
  13. package/dist/node_modules/qs/lib/utils.js +189 -53
  14. package/dist/node_modules/qs/node_modules/es-define-property/.eslintrc +13 -0
  15. package/dist/node_modules/qs/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  16. package/dist/node_modules/qs/node_modules/es-define-property/.nycrc +9 -0
  17. package/dist/node_modules/qs/node_modules/es-define-property/index.d.ts +3 -0
  18. package/dist/node_modules/qs/node_modules/es-define-property/index.js +14 -0
  19. package/dist/node_modules/qs/node_modules/es-define-property/package.json +81 -0
  20. package/dist/node_modules/qs/node_modules/es-define-property/test/index.js +56 -0
  21. package/dist/node_modules/qs/node_modules/side-channel/.editorconfig +9 -0
  22. package/dist/node_modules/qs/node_modules/side-channel/.eslintrc +12 -0
  23. package/dist/node_modules/qs/node_modules/side-channel/.github/FUNDING.yml +12 -0
  24. package/dist/node_modules/qs/node_modules/side-channel/.nycrc +13 -0
  25. package/dist/node_modules/qs/node_modules/side-channel/index.d.ts +14 -0
  26. package/dist/node_modules/qs/node_modules/side-channel/index.js +46 -0
  27. package/dist/node_modules/qs/node_modules/side-channel/package.json +85 -0
  28. package/dist/node_modules/qs/node_modules/side-channel/test/index.js +120 -0
  29. package/dist/node_modules/qs/node_modules/side-channel-list/.editorconfig +9 -0
  30. package/dist/node_modules/qs/node_modules/side-channel-list/.eslintrc +11 -0
  31. package/dist/node_modules/qs/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  32. package/dist/node_modules/qs/node_modules/side-channel-list/.nycrc +13 -0
  33. package/dist/node_modules/qs/node_modules/side-channel-list/index.d.ts +13 -0
  34. package/dist/node_modules/qs/node_modules/side-channel-list/index.js +111 -0
  35. package/dist/node_modules/qs/node_modules/side-channel-list/list.d.ts +14 -0
  36. package/dist/node_modules/qs/node_modules/side-channel-list/package.json +77 -0
  37. package/dist/node_modules/qs/node_modules/side-channel-list/test/index.js +154 -0
  38. package/dist/node_modules/qs/package.json +1 -1
  39. package/dist/node_modules/qs/test/empty-keys-cases.js +261 -31
  40. package/dist/node_modules/qs/test/parse.js +1281 -57
  41. package/dist/node_modules/qs/test/stringify.js +851 -58
  42. package/dist/node_modules/qs/test/utils.js +505 -3
  43. package/package.json +5 -2
  44. package/dist/client/103.513149b773e262dc.js +0 -10
  45. package/dist/client-v2/103.8bcbf628d0af8457.js +0 -10
  46. package/dist/node_modules/qs/.eslintrc +0 -38
@@ -1,2087 +1,141 @@
1
1
  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2
- 'use strict';
3
-
4
- var replace = String.prototype.replace;
5
- var percentTwenties = /%20/g;
6
-
7
- var Format = {
8
- RFC1738: 'RFC1738',
9
- RFC3986: 'RFC3986'
10
- };
11
-
12
- module.exports = {
13
- 'default': Format.RFC3986,
14
- formatters: {
15
- RFC1738: function (value) {
16
- return replace.call(value, percentTwenties, '+');
17
- },
18
- RFC3986: function (value) {
19
- return String(value);
20
- }
21
- },
22
- RFC1738: Format.RFC1738,
23
- RFC3986: Format.RFC3986
24
- };
2
+ "use strict";var replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"};module.exports={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986};
25
3
 
26
4
  },{}],2:[function(require,module,exports){
27
- 'use strict';
28
-
29
- var stringify = require('./stringify');
30
- var parse = require('./parse');
31
- var formats = require('./formats');
32
-
33
- module.exports = {
34
- formats: formats,
35
- parse: parse,
36
- stringify: stringify
37
- };
38
-
39
- },{"./formats":1,"./parse":3,"./stringify":4}],3:[function(require,module,exports){
40
- 'use strict';
41
-
42
- var utils = require('./utils');
43
-
44
- var has = Object.prototype.hasOwnProperty;
45
- var isArray = Array.isArray;
46
-
47
- var defaults = {
48
- allowDots: false,
49
- allowPrototypes: false,
50
- allowSparse: false,
51
- arrayLimit: 20,
52
- charset: 'utf-8',
53
- charsetSentinel: false,
54
- comma: false,
55
- decoder: utils.decode,
56
- delimiter: '&',
57
- depth: 5,
58
- ignoreQueryPrefix: false,
59
- interpretNumericEntities: false,
60
- parameterLimit: 1000,
61
- parseArrays: true,
62
- plainObjects: false,
63
- strictNullHandling: false
64
- };
65
-
66
- var interpretNumericEntities = function (str) {
67
- return str.replace(/&#(\d+);/g, function ($0, numberStr) {
68
- return String.fromCharCode(parseInt(numberStr, 10));
69
- });
70
- };
71
-
72
- var parseArrayValue = function (val, options) {
73
- if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
74
- return val.split(',');
75
- }
76
-
77
- return val;
78
- };
79
-
80
- // This is what browsers will submit when the ✓ character occurs in an
81
- // application/x-www-form-urlencoded body and the encoding of the page containing
82
- // the form is iso-8859-1, or when the submitted form has an accept-charset
83
- // attribute of iso-8859-1. Presumably also with other charsets that do not contain
84
- // the ✓ character, such as us-ascii.
85
- var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
86
-
87
- // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
88
- var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
89
-
90
- var parseValues = function parseQueryStringValues(str, options) {
91
- var obj = { __proto__: null };
92
-
93
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
94
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
95
- var parts = cleanStr.split(options.delimiter, limit);
96
- var skipIndex = -1; // Keep track of where the utf8 sentinel was found
97
- var i;
98
-
99
- var charset = options.charset;
100
- if (options.charsetSentinel) {
101
- for (i = 0; i < parts.length; ++i) {
102
- if (parts[i].indexOf('utf8=') === 0) {
103
- if (parts[i] === charsetSentinel) {
104
- charset = 'utf-8';
105
- } else if (parts[i] === isoSentinel) {
106
- charset = 'iso-8859-1';
107
- }
108
- skipIndex = i;
109
- i = parts.length; // The eslint settings do not allow break;
110
- }
111
- }
112
- }
113
-
114
- for (i = 0; i < parts.length; ++i) {
115
- if (i === skipIndex) {
116
- continue;
117
- }
118
- var part = parts[i];
119
-
120
- var bracketEqualsPos = part.indexOf(']=');
121
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
122
-
123
- var key, val;
124
- if (pos === -1) {
125
- key = options.decoder(part, defaults.decoder, charset, 'key');
126
- val = options.strictNullHandling ? null : '';
127
- } else {
128
- key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
129
- val = utils.maybeMap(
130
- parseArrayValue(part.slice(pos + 1), options),
131
- function (encodedVal) {
132
- return options.decoder(encodedVal, defaults.decoder, charset, 'value');
133
- }
134
- );
135
- }
136
-
137
- if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
138
- val = interpretNumericEntities(val);
139
- }
140
-
141
- if (part.indexOf('[]=') > -1) {
142
- val = isArray(val) ? [val] : val;
143
- }
144
-
145
- if (has.call(obj, key)) {
146
- obj[key] = utils.combine(obj[key], val);
147
- } else {
148
- obj[key] = val;
149
- }
150
- }
151
-
152
- return obj;
153
- };
154
-
155
- var parseObject = function (chain, val, options, valuesParsed) {
156
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
157
-
158
- for (var i = chain.length - 1; i >= 0; --i) {
159
- var obj;
160
- var root = chain[i];
161
-
162
- if (root === '[]' && options.parseArrays) {
163
- obj = [].concat(leaf);
164
- } else {
165
- obj = options.plainObjects ? Object.create(null) : {};
166
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
167
- var index = parseInt(cleanRoot, 10);
168
- if (!options.parseArrays && cleanRoot === '') {
169
- obj = { 0: leaf };
170
- } else if (
171
- !isNaN(index)
172
- && root !== cleanRoot
173
- && String(index) === cleanRoot
174
- && index >= 0
175
- && (options.parseArrays && index <= options.arrayLimit)
176
- ) {
177
- obj = [];
178
- obj[index] = leaf;
179
- } else if (cleanRoot !== '__proto__') {
180
- obj[cleanRoot] = leaf;
181
- }
182
- }
183
-
184
- leaf = obj;
185
- }
186
-
187
- return leaf;
188
- };
189
-
190
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
191
- if (!givenKey) {
192
- return;
193
- }
194
-
195
- // Transform dot notation to bracket notation
196
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
197
-
198
- // The regex chunks
199
-
200
- var brackets = /(\[[^[\]]*])/;
201
- var child = /(\[[^[\]]*])/g;
202
-
203
- // Get the parent
204
-
205
- var segment = options.depth > 0 && brackets.exec(key);
206
- var parent = segment ? key.slice(0, segment.index) : key;
207
-
208
- // Stash the parent if it exists
209
-
210
- var keys = [];
211
- if (parent) {
212
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
213
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
214
- if (!options.allowPrototypes) {
215
- return;
216
- }
217
- }
218
-
219
- keys.push(parent);
220
- }
221
-
222
- // Loop through children appending to the array until we hit depth
223
-
224
- var i = 0;
225
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
226
- i += 1;
227
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
228
- if (!options.allowPrototypes) {
229
- return;
230
- }
231
- }
232
- keys.push(segment[1]);
233
- }
234
-
235
- // If there's a remainder, just add whatever is left
236
-
237
- if (segment) {
238
- keys.push('[' + key.slice(segment.index) + ']');
239
- }
240
-
241
- return parseObject(keys, val, options, valuesParsed);
242
- };
243
-
244
- var normalizeParseOptions = function normalizeParseOptions(opts) {
245
- if (!opts) {
246
- return defaults;
247
- }
248
-
249
- if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
250
- throw new TypeError('Decoder has to be a function.');
251
- }
252
-
253
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
254
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
255
- }
256
- var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
257
-
258
- return {
259
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
260
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
261
- allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
262
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
263
- charset: charset,
264
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
265
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
266
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
267
- delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
268
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
269
- depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
270
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
271
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
272
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
273
- parseArrays: opts.parseArrays !== false,
274
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
275
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
276
- };
277
- };
278
-
279
- module.exports = function (str, opts) {
280
- var options = normalizeParseOptions(opts);
281
-
282
- if (str === '' || str === null || typeof str === 'undefined') {
283
- return options.plainObjects ? Object.create(null) : {};
284
- }
285
-
286
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
287
- var obj = options.plainObjects ? Object.create(null) : {};
288
-
289
- // Iterate over the keys and setup the new object
290
-
291
- var keys = Object.keys(tempObj);
292
- for (var i = 0; i < keys.length; ++i) {
293
- var key = keys[i];
294
- var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
295
- obj = utils.merge(obj, newObj, options);
296
- }
297
-
298
- if (options.allowSparse === true) {
299
- return obj;
300
- }
301
-
302
- return utils.compact(obj);
303
- };
304
-
305
- },{"./utils":5}],4:[function(require,module,exports){
306
- 'use strict';
307
-
308
- var getSideChannel = require('side-channel');
309
- var utils = require('./utils');
310
- var formats = require('./formats');
311
- var has = Object.prototype.hasOwnProperty;
312
-
313
- var arrayPrefixGenerators = {
314
- brackets: function brackets(prefix) {
315
- return prefix + '[]';
316
- },
317
- comma: 'comma',
318
- indices: function indices(prefix, key) {
319
- return prefix + '[' + key + ']';
320
- },
321
- repeat: function repeat(prefix) {
322
- return prefix;
323
- }
324
- };
325
-
326
- var isArray = Array.isArray;
327
- var push = Array.prototype.push;
328
- var pushToArray = function (arr, valueOrArray) {
329
- push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
330
- };
331
-
332
- var toISO = Date.prototype.toISOString;
333
-
334
- var defaultFormat = formats['default'];
335
- var defaults = {
336
- addQueryPrefix: false,
337
- allowDots: false,
338
- charset: 'utf-8',
339
- charsetSentinel: false,
340
- delimiter: '&',
341
- encode: true,
342
- encoder: utils.encode,
343
- encodeValuesOnly: false,
344
- format: defaultFormat,
345
- formatter: formats.formatters[defaultFormat],
346
- // deprecated
347
- indices: false,
348
- serializeDate: function serializeDate(date) {
349
- return toISO.call(date);
350
- },
351
- skipNulls: false,
352
- strictNullHandling: false
353
- };
354
-
355
- var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
356
- return typeof v === 'string'
357
- || typeof v === 'number'
358
- || typeof v === 'boolean'
359
- || typeof v === 'symbol'
360
- || typeof v === 'bigint';
361
- };
362
-
363
- var sentinel = {};
364
-
365
- var stringify = function stringify(
366
- object,
367
- prefix,
368
- generateArrayPrefix,
369
- commaRoundTrip,
370
- strictNullHandling,
371
- skipNulls,
372
- encoder,
373
- filter,
374
- sort,
375
- allowDots,
376
- serializeDate,
377
- format,
378
- formatter,
379
- encodeValuesOnly,
380
- charset,
381
- sideChannel
382
- ) {
383
- var obj = object;
384
-
385
- var tmpSc = sideChannel;
386
- var step = 0;
387
- var findFlag = false;
388
- while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
389
- // Where object last appeared in the ref tree
390
- var pos = tmpSc.get(object);
391
- step += 1;
392
- if (typeof pos !== 'undefined') {
393
- if (pos === step) {
394
- throw new RangeError('Cyclic object value');
395
- } else {
396
- findFlag = true; // Break while
397
- }
398
- }
399
- if (typeof tmpSc.get(sentinel) === 'undefined') {
400
- step = 0;
401
- }
402
- }
403
-
404
- if (typeof filter === 'function') {
405
- obj = filter(prefix, obj);
406
- } else if (obj instanceof Date) {
407
- obj = serializeDate(obj);
408
- } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
409
- obj = utils.maybeMap(obj, function (value) {
410
- if (value instanceof Date) {
411
- return serializeDate(value);
412
- }
413
- return value;
414
- });
415
- }
416
-
417
- if (obj === null) {
418
- if (strictNullHandling) {
419
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
420
- }
421
-
422
- obj = '';
423
- }
424
-
425
- if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
426
- if (encoder) {
427
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
428
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
429
- }
430
- return [formatter(prefix) + '=' + formatter(String(obj))];
431
- }
432
-
433
- var values = [];
434
-
435
- if (typeof obj === 'undefined') {
436
- return values;
437
- }
438
-
439
- var objKeys;
440
- if (generateArrayPrefix === 'comma' && isArray(obj)) {
441
- // we need to join elements in
442
- if (encodeValuesOnly && encoder) {
443
- obj = utils.maybeMap(obj, encoder);
444
- }
445
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
446
- } else if (isArray(filter)) {
447
- objKeys = filter;
448
- } else {
449
- var keys = Object.keys(obj);
450
- objKeys = sort ? keys.sort(sort) : keys;
451
- }
452
-
453
- var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
454
-
455
- for (var j = 0; j < objKeys.length; ++j) {
456
- var key = objKeys[j];
457
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
458
-
459
- if (skipNulls && value === null) {
460
- continue;
461
- }
462
-
463
- var keyPrefix = isArray(obj)
464
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
465
- : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
466
-
467
- sideChannel.set(object, step);
468
- var valueSideChannel = getSideChannel();
469
- valueSideChannel.set(sentinel, sideChannel);
470
- pushToArray(values, stringify(
471
- value,
472
- keyPrefix,
473
- generateArrayPrefix,
474
- commaRoundTrip,
475
- strictNullHandling,
476
- skipNulls,
477
- generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
478
- filter,
479
- sort,
480
- allowDots,
481
- serializeDate,
482
- format,
483
- formatter,
484
- encodeValuesOnly,
485
- charset,
486
- valueSideChannel
487
- ));
488
- }
489
-
490
- return values;
491
- };
492
-
493
- var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
494
- if (!opts) {
495
- return defaults;
496
- }
497
-
498
- if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
499
- throw new TypeError('Encoder has to be a function.');
500
- }
501
-
502
- var charset = opts.charset || defaults.charset;
503
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
504
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
505
- }
506
-
507
- var format = formats['default'];
508
- if (typeof opts.format !== 'undefined') {
509
- if (!has.call(formats.formatters, opts.format)) {
510
- throw new TypeError('Unknown format option provided.');
511
- }
512
- format = opts.format;
513
- }
514
- var formatter = formats.formatters[format];
515
-
516
- var filter = defaults.filter;
517
- if (typeof opts.filter === 'function' || isArray(opts.filter)) {
518
- filter = opts.filter;
519
- }
520
-
521
- return {
522
- addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
523
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
524
- charset: charset,
525
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
526
- delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
527
- encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
528
- encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
529
- encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
530
- filter: filter,
531
- format: format,
532
- formatter: formatter,
533
- serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
534
- skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
535
- sort: typeof opts.sort === 'function' ? opts.sort : null,
536
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
537
- };
538
- };
539
-
540
- module.exports = function (object, opts) {
541
- var obj = object;
542
- var options = normalizeStringifyOptions(opts);
543
-
544
- var objKeys;
545
- var filter;
546
-
547
- if (typeof options.filter === 'function') {
548
- filter = options.filter;
549
- obj = filter('', obj);
550
- } else if (isArray(options.filter)) {
551
- filter = options.filter;
552
- objKeys = filter;
553
- }
554
-
555
- var keys = [];
556
-
557
- if (typeof obj !== 'object' || obj === null) {
558
- return '';
559
- }
560
-
561
- var arrayFormat;
562
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
563
- arrayFormat = opts.arrayFormat;
564
- } else if (opts && 'indices' in opts) {
565
- arrayFormat = opts.indices ? 'indices' : 'repeat';
566
- } else {
567
- arrayFormat = 'indices';
568
- }
569
-
570
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
571
- if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
572
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
573
- }
574
- var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
575
-
576
- if (!objKeys) {
577
- objKeys = Object.keys(obj);
578
- }
579
-
580
- if (options.sort) {
581
- objKeys.sort(options.sort);
582
- }
583
-
584
- var sideChannel = getSideChannel();
585
- for (var i = 0; i < objKeys.length; ++i) {
586
- var key = objKeys[i];
587
-
588
- if (options.skipNulls && obj[key] === null) {
589
- continue;
590
- }
591
- pushToArray(keys, stringify(
592
- obj[key],
593
- key,
594
- generateArrayPrefix,
595
- commaRoundTrip,
596
- options.strictNullHandling,
597
- options.skipNulls,
598
- options.encode ? options.encoder : null,
599
- options.filter,
600
- options.sort,
601
- options.allowDots,
602
- options.serializeDate,
603
- options.format,
604
- options.formatter,
605
- options.encodeValuesOnly,
606
- options.charset,
607
- sideChannel
608
- ));
609
- }
610
-
611
- var joined = keys.join(options.delimiter);
612
- var prefix = options.addQueryPrefix === true ? '?' : '';
613
-
614
- if (options.charsetSentinel) {
615
- if (options.charset === 'iso-8859-1') {
616
- // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
617
- prefix += 'utf8=%26%2310003%3B&';
618
- } else {
619
- // encodeURIComponent('✓')
620
- prefix += 'utf8=%E2%9C%93&';
621
- }
622
- }
623
-
624
- return joined.length > 0 ? prefix + joined : '';
625
- };
626
-
627
- },{"./formats":1,"./utils":5,"side-channel":17}],5:[function(require,module,exports){
628
- 'use strict';
629
-
630
- var formats = require('./formats');
631
-
632
- var has = Object.prototype.hasOwnProperty;
633
- var isArray = Array.isArray;
634
-
635
- var hexTable = (function () {
636
- var array = [];
637
- for (var i = 0; i < 256; ++i) {
638
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
639
- }
640
-
641
- return array;
642
- }());
643
-
644
- var compactQueue = function compactQueue(queue) {
645
- while (queue.length > 1) {
646
- var item = queue.pop();
647
- var obj = item.obj[item.prop];
648
-
649
- if (isArray(obj)) {
650
- var compacted = [];
651
-
652
- for (var j = 0; j < obj.length; ++j) {
653
- if (typeof obj[j] !== 'undefined') {
654
- compacted.push(obj[j]);
655
- }
656
- }
657
-
658
- item.obj[item.prop] = compacted;
659
- }
660
- }
661
- };
662
-
663
- var arrayToObject = function arrayToObject(source, options) {
664
- var obj = options && options.plainObjects ? Object.create(null) : {};
665
- for (var i = 0; i < source.length; ++i) {
666
- if (typeof source[i] !== 'undefined') {
667
- obj[i] = source[i];
668
- }
669
- }
670
-
671
- return obj;
672
- };
673
-
674
- var merge = function merge(target, source, options) {
675
- /* eslint no-param-reassign: 0 */
676
- if (!source) {
677
- return target;
678
- }
679
-
680
- if (typeof source !== 'object') {
681
- if (isArray(target)) {
682
- target.push(source);
683
- } else if (target && typeof target === 'object') {
684
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
685
- target[source] = true;
686
- }
687
- } else {
688
- return [target, source];
689
- }
690
-
691
- return target;
692
- }
5
+ "use strict";var stringify=require(4),parse=require(3),formats=require(1);module.exports={formats:formats,parse:parse,stringify:stringify};
693
6
 
694
- if (!target || typeof target !== 'object') {
695
- return [target].concat(source);
696
- }
7
+ },{"1":1,"3":3,"4":4}],3:[function(require,module,exports){
8
+ "use strict";var utils=require(5),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(",");a>-1;){if((i+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");a=e.indexOf(",",a+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function parseQueryStringValues(e,t){var r={__proto__:null},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var a=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==a?a+1:a);if(t.throwOnLimitExceeded&&void 0!==a&&o.length>a)throw new RangeError("Parameter limit exceeded. Only "+a+" parameter"+(1===a?"":"s")+" allowed.");var l,n=-1,s=t.charset;if(t.charsetSentinel)for(l=0;l<o.length;++l)0===o[l].indexOf("utf8=")&&(o[l]===charsetSentinel?s="utf-8":o[l]===isoSentinel&&(s="iso-8859-1"),n=l,l=o.length);for(l=0;l<o.length;++l)if(l!==n){var d,c,p=o[l],u=p.indexOf("]="),y=-1===u?p.indexOf("="):u+1;if(-1===y?(d=t.decoder(p,defaults.decoder,s,"key"),c=t.strictNullHandling?null:""):null!==(d=t.decoder(p.slice(0,y),defaults.decoder,s,"key"))&&(c=utils.maybeMap(parseArrayValue(p.slice(y+1),t,isArray(r[d])?r[d].length:0),function(e){return t.decoder(e,defaults.decoder,s,"value")})),c&&t.interpretNumericEntities&&"iso-8859-1"===s&&(c=interpretNumericEntities(String(c))),p.indexOf("[]=")>-1&&(c=isArray(c)?[c]:c),t.comma&&isArray(c)&&c.length>t.arrayLimit&&(c=utils.combine([],c,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==d){var f=has.call(r,d);f&&("combine"===t.duplicates||p.indexOf("[]=")>-1)?r[d]=utils.combine(r[d],c,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):f&&"last"!==t.duplicates||(r[d]=c)}}return r},parseObject=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var l=i?t:parseArrayValue(t,r,a),n=e.length-1;n>=0;--n){var s,d=e[n];if("[]"===d&&r.parseArrays)s=utils.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:utils.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{s=r.plainObjects?{__proto__:null}:{};var c="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,u=parseInt(p,10),y=!isNaN(u)&&d!==p&&String(u)===p&&u>=0&&r.parseArrays;if(r.parseArrays||""!==p)if(y&&u<r.arrayLimit)(s=[])[u]=l;else{if(y&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");y?(s[u]=l,utils.markOverflow(s,u)):"__proto__"!==p&&(s[p]=l)}else s={0:l}}l=s}return l},splitKeyIntoSegments=function splitKeyIntoSegments(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&has.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var i=[],a=r.indexOf("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&has.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var l=r.length,n=a,s=0;n>=0&&s<t.depth;){for(var d=1,c=n+1,p=-1;c<l&&p<0;){var u=r.charCodeAt(c);91===u?d+=1:93===u&&0==(d-=1)&&(p=c),c+=1}if(p<0)return i[i.length]="["+r.slice(n)+"]",i;var y=r.slice(n,p+1),f=y.slice(1,-1);if(!t.plainObjects&&has.call(Object.prototype,f)&&!t.allowPrototypes)return;i[i.length]=y,s+=1,n=r.indexOf("[",p+1)}if(n>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(n)+"]"}return i},parseKeys=function parseQueryStringKeys(e,t,r,i){if(e){var a=splitKeyIntoSegments(e,r);if(a)return parseObject(a,t,r,i)}},normalizeParseOptions=function normalizeParseOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?defaults.charset:e.charset,r=void 0===e.duplicates?defaults.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||defaults.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:defaults.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:defaults.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:defaults.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:defaults.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:defaults.decoder,delimiter:"string"==typeof e.delimiter||utils.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:defaults.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:defaults.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:defaults.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:defaults.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};module.exports=function(e,t){var r=normalizeParseOptions(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?parseValues(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),l=0;l<o.length;++l){var n=o[l],s=parseKeys(n,i[n],r,"string"==typeof e);a=utils.merge(a,s,r)}return!0===r.allowSparse?a:utils.compact(a)};
697
9
 
698
- var mergeTarget = target;
699
- if (isArray(target) && !isArray(source)) {
700
- mergeTarget = arrayToObject(target, options);
701
- }
10
+ },{"5":5}],4:[function(require,module,exports){
11
+ "use strict";var getSideChannel=require(46),utils=require(5),formats=require(1),has=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,r){return e+"["+r+"]"},repeat:function repeat(e){return e}},isArray=Array.isArray,push=Array.prototype.push,pushToArray=function(e,r){push.apply(e,isArray(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats.default,defaults={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",depth:1/0,encode:!0,encodeDotInKeys:!1,encoder:utils.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats.formatters[defaultFormat],indices:!1,serializeDate:function serializeDate(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},sentinel={},stringify=function stringify(e,r,t,o,n,a,i,l,s,f,u,d,y,c,p,m,h,v,g,w){var b=e;if(w>g)throw new RangeError("Input depth exceeded depth option of "+g);for(var D=v,A=0,S=!1;void 0!==(D=D.get(sentinel))&&!S;){var E=D.get(e);if(A+=1,void 0!==E){if(E===A)throw new RangeError("Cyclic object value");S=!0}void 0===D.get(sentinel)&&(A=0)}if((b="function"==typeof f?f(r,b):b)instanceof Date?b=y(b):"comma"===t&&isArray(b)&&(b=utils.maybeMap(b,function(e){return e instanceof Date?y(e):e})),null===b){if(a)return p(s&&!m?s(r,defaults.encoder,h,"key",c):r);b=""}if(isNonNullishPrimitive(b)||utils.isBuffer(b))return s?[p(m?r:s(r,defaults.encoder,h,"key",c))+"="+p(s(b,defaults.encoder,h,"value",c))]:[p(r)+"="+p(String(b))];var N,O=[];if(void 0===b)return O;if("comma"===t&&isArray(b))m&&s&&(b=utils.maybeMap(b,function(e){return null==e?e:s(e)})),N=[{value:b.length>0?b.join(",")||null:void 0}];else if(isArray(f))N=f;else{var T=Object.keys(b);N=u?T.sort(u):T}var k=l?String(r).replace(/\./g,"%2E"):String(r),I=o&&isArray(b)&&1===b.length?k+"[]":k;if(n&&isArray(b)&&0===b.length&&0===Object.keys(b).length)return I+"[]";for(var P=0;P<N.length;++P){var x=N[P],K="object"==typeof x&&x&&void 0!==x.value?x.value:b[x];if(!i||null!==K){var z=d&&l?String(x).replace(/\./g,"%2E"):String(x),j=isArray(b)?"function"==typeof t?t(I,z):I:I+(d?"."+z:"["+z+"]");v.set(e,A);var F=getSideChannel();F.set(sentinel,v),pushToArray(O,stringify(K,j,t,o,n,a,i,l,"comma"===t&&m&&isArray(b)?null:s,f,u,d,y,c,p,m,h,F,g,w+1))}}return O},normalizeStringifyOptions=function normalizeStringifyOptions(e){if(!e)return defaults;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||defaults.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=formats.default;if(void 0!==e.format){if(!has.call(formats.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var o,n=formats.formatters[t],a=defaults.filter;if(("function"==typeof e.filter||isArray(e.filter))&&(a=e.filter),o=e.arrayFormat in arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":defaults.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var i=void 0===e.allowDots?!0===e.encodeDotInKeys||defaults.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:defaults.addQueryPrefix,allowDots:i,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:defaults.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?defaults.delimiter:e.delimiter,depth:"number"==typeof e.depth?e.depth:defaults.depth,encode:"boolean"==typeof e.encode?e.encode:defaults.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:defaults.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:defaults.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:defaults.encodeValuesOnly,filter:a,format:t,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:defaults.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:defaults.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}};module.exports=function(e,r){var t,o=e,n=normalizeStringifyOptions(r);"function"==typeof n.filter?o=(0,n.filter)("",o):isArray(n.filter)&&(t=n.filter);var a=[];if("object"!=typeof o||null===o)return"";var i=arrayPrefixGenerators[n.arrayFormat],l="comma"===i&&n.commaRoundTrip;t||(t=Object.keys(o)),n.sort&&t.sort(n.sort);for(var s=getSideChannel(),f=0;f<t.length;++f){var u=t[f];if(null!=u){var d=o[u];if(!n.skipNulls||null!==d){var y=n.encodeDotInKeys?String(u).replace(/\./g,"%2E"):String(u);pushToArray(a,stringify(d,y,i,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s,n.depth,0))}}}var c=a.join(n.delimiter),p=!0===n.addQueryPrefix?"?":"";return n.charsetSentinel&&("iso-8859-1"===n.charset?p+="utf8=%26%2310003%3B"+n.delimiter:p+="utf8=%E2%9C%93"+n.delimiter),c.length>0?p+c:""};
702
12
 
703
- if (isArray(target) && isArray(source)) {
704
- source.forEach(function (item, i) {
705
- if (has.call(target, i)) {
706
- var targetItem = target[i];
707
- if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
708
- target[i] = merge(targetItem, item, options);
709
- } else {
710
- target.push(item);
711
- }
712
- } else {
713
- target[i] = item;
714
- }
715
- });
716
- return target;
717
- }
13
+ },{"1":1,"46":46,"5":5}],5:[function(require,module,exports){
14
+ "use strict";var formats=require(1),getSideChannel=require(46),defineProperty=require(14),has=Object.prototype.hasOwnProperty,isArray=Array.isArray,overflowChannel=getSideChannel(),markOverflow=function markOverflow(e,r){return overflowChannel.set(e,r),e},isOverflow=function isOverflow(e){return overflowChannel.has(e)},getMaxIndex=function getMaxIndex(e){return overflowChannel.get(e)},setMaxIndex=function setMaxIndex(e,r){overflowChannel.set(e,r)},hexTable=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),compactQueue=function compactQueue(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(isArray(t)){for(var n=[],a=0;a<t.length;++a)void 0!==t[a]&&(n[n.length]=t[a]);r.obj[r.prop]=n}}},arrayToObject=function arrayToObject(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(t[n]=e[n]);return t},setProperty=function setProperty(e,r,t){"__proto__"===r&&defineProperty?defineProperty(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t},merge=function merge(e,r,t){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(isArray(e)){var n=e.length;if(t&&"number"==typeof t.arrayLimit&&n>=t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e.concat(r),t),n)}e[n]=r}else{if(!e||"object"!=typeof e)return[e,r];if(isOverflow(e)){var a=getMaxIndex(e)+1;e[a]=r,setMaxIndex(e,a)}else{if(t&&t.strictMerge)return[e,r];(t&&(t.plainObjects||t.allowPrototypes)||!has.call(Object.prototype,r))&&(e[r]=!0)}}return e}if(!e||"object"!=typeof e){if(isOverflow(r)){for(var o=Object.keys(r),i=t&&t.plainObjects?{__proto__:null,0:e}:{0:e},l=0;l<o.length;l++)i[parseInt(o[l],10)+1]=r[o[l]];return markOverflow(i,getMaxIndex(r)+1)}var c=[e].concat(r);if(t&&"number"==typeof t.arrayLimit&&c.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(c,t),c.length-1)}return c}var f=e;if(isArray(e)&&!isArray(r)&&(f=arrayToObject(e,t)),isArray(e)&&isArray(r)){if(r.forEach(function(r,n){if(has.call(e,n)){var a=e[n];a&&"object"==typeof a&&r&&"object"==typeof r?e[n]=merge(a,r,t):e[e.length]=r}else e[n]=r}),t&&"number"==typeof t.arrayLimit&&e.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(e,t),e.length-1)}return e}return Object.keys(r).reduce(function(e,n){var a=r[n];if(has.call(e,n)?setProperty(e,n,merge(e[n],a,t)):setProperty(e,n,a),isOverflow(r)&&!isOverflow(e)&&markOverflow(e,getMaxIndex(r)),isOverflow(e)){var o=parseInt(n,10);String(o)===n&&o>=0&&o>getMaxIndex(e)&&setMaxIndex(e,o)}return e},f)},assign=function assignSingleSource(e,r){return Object.keys(r).reduce(function(e,t){return setProperty(e,t,r[t]),e},e)},decode=function(e,r,t){var n=e.replace(/\+/g," ");if("iso-8859-1"===t)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},limit=1024,encode=function encode(e,r,t,n,a){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===t)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",l=0;l<o.length;l+=limit){var c=o.length>=limit?o.slice(l,l+limit):o;if(l+limit<o.length){var f=c.charCodeAt(c.length-1);f>=55296&&f<=56319&&(c=c.slice(0,-1),l-=1)}for(var s=[],u=0;u<c.length;++u){var y=c.charCodeAt(u);45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||a===formats.RFC1738&&(40===y||41===y)?s[s.length]=c.charAt(u):y<128?s[s.length]=hexTable[y]:y<2048?s[s.length]=hexTable[192|y>>6]+hexTable[128|63&y]:y<55296||y>=57344?s[s.length]=hexTable[224|y>>12]+hexTable[128|y>>6&63]+hexTable[128|63&y]:(u+=1,y=65536+((1023&y)<<10|1023&c.charCodeAt(u)),s[s.length]=hexTable[240|y>>18]+hexTable[128|y>>12&63]+hexTable[128|y>>6&63]+hexTable[128|63&y])}i+=s.join("")}return i},compact=function compact(e){for(var r=[{obj:{o:e},prop:"o"}],t=getSideChannel(),n=0;n<r.length;++n)for(var a=r[n],o=a.obj[a.prop],i=Object.keys(o),l=0;l<i.length;++l){var c=i[l],f=o[c];"object"!=typeof f||null===f||t.has(f)||(r[r.length]={obj:o,prop:c},t.set(f,!0))}return compactQueue(r),e},isRegExp=function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer=function isBuffer(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},combine=function combine(e,r,t,n,a){if(isOverflow(e)){if(a)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");for(var o=isArray(r)?r:[r],i=getMaxIndex(e),l=0;l<o.length;++l)e[i+=1]=o[l];return setMaxIndex(e,i),e}var c=[].concat(e,r);if(c.length>t){if(a)throw new RangeError("Array limit exceeded. Only "+t+" element"+(1===t?"":"s")+" allowed in an array.");return markOverflow(arrayToObject(c,{plainObjects:n}),c.length-1)}return c},maybeMap=function maybeMap(e,r){if(isArray(e)){for(var t=[],n=0;n<e.length;n+=1)t[t.length]=r(e[n]);return t}return r(e)};module.exports={/* common-shake removed: arrayToObject:arrayToObject *//* common-shake removed: assign:assign */combine:combine,compact:compact,decode:decode,encode:encode,isBuffer:isBuffer,isOverflow:isOverflow,isRegExp:isRegExp,markOverflow:markOverflow,maybeMap:maybeMap,merge:merge};
718
15
 
719
- return Object.keys(source).reduce(function (acc, key) {
720
- var value = source[key];
16
+ },{"1":1,"14":14,"46":46}],46:[function(require,module,exports){
17
+ "use strict";var $TypeError=require(20),inspect=require(42),getSideChannelList=require(43),getSideChannelMap=require(44),getSideChannelWeakMap=require(45),makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList;module.exports=function getSideChannel(){var e,n={assert:function(e){if(!n.has(e)){var t=e&&Object(e)===e?"the given object key":inspect(e);throw new $TypeError("Side channel does not contain "+t)}},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,t){e||(e=makeChannel()),e.set(n,t)}};return n};
721
18
 
722
- if (has.call(acc, key)) {
723
- acc[key] = merge(acc[key], value, options);
724
- } else {
725
- acc[key] = value;
726
- }
727
- return acc;
728
- }, mergeTarget);
729
- };
19
+ },{"20":20,"42":42,"43":43,"44":44,"45":45}],14:[function(require,module,exports){
20
+ "use strict";var $defineProperty=Object.defineProperty||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch(e){$defineProperty=!1}module.exports=$defineProperty;
730
21
 
731
- var assign = function assignSingleSource(target, source) {
732
- return Object.keys(source).reduce(function (acc, key) {
733
- acc[key] = source[key];
734
- return acc;
735
- }, target);
736
- };
737
-
738
- var decode = function (str, decoder, charset) {
739
- var strWithoutPlus = str.replace(/\+/g, ' ');
740
- if (charset === 'iso-8859-1') {
741
- // unescape never throws, no try...catch needed:
742
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
743
- }
744
- // utf-8
745
- try {
746
- return decodeURIComponent(strWithoutPlus);
747
- } catch (e) {
748
- return strWithoutPlus;
749
- }
750
- };
751
-
752
- var encode = function encode(str, defaultEncoder, charset, kind, format) {
753
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
754
- // It has been adapted here for stricter adherence to RFC 3986
755
- if (str.length === 0) {
756
- return str;
757
- }
758
-
759
- var string = str;
760
- if (typeof str === 'symbol') {
761
- string = Symbol.prototype.toString.call(str);
762
- } else if (typeof str !== 'string') {
763
- string = String(str);
764
- }
765
-
766
- if (charset === 'iso-8859-1') {
767
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
768
- return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
769
- });
770
- }
771
-
772
- var out = '';
773
- for (var i = 0; i < string.length; ++i) {
774
- var c = string.charCodeAt(i);
775
-
776
- if (
777
- c === 0x2D // -
778
- || c === 0x2E // .
779
- || c === 0x5F // _
780
- || c === 0x7E // ~
781
- || (c >= 0x30 && c <= 0x39) // 0-9
782
- || (c >= 0x41 && c <= 0x5A) // a-z
783
- || (c >= 0x61 && c <= 0x7A) // A-Z
784
- || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
785
- ) {
786
- out += string.charAt(i);
787
- continue;
788
- }
789
-
790
- if (c < 0x80) {
791
- out = out + hexTable[c];
792
- continue;
793
- }
794
-
795
- if (c < 0x800) {
796
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
797
- continue;
798
- }
799
-
800
- if (c < 0xD800 || c >= 0xE000) {
801
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
802
- continue;
803
- }
804
-
805
- i += 1;
806
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
807
- /* eslint operator-linebreak: [2, "before"] */
808
- out += hexTable[0xF0 | (c >> 18)]
809
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
810
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
811
- + hexTable[0x80 | (c & 0x3F)];
812
- }
813
-
814
- return out;
815
- };
816
-
817
- var compact = function compact(value) {
818
- var queue = [{ obj: { o: value }, prop: 'o' }];
819
- var refs = [];
820
-
821
- for (var i = 0; i < queue.length; ++i) {
822
- var item = queue[i];
823
- var obj = item.obj[item.prop];
824
-
825
- var keys = Object.keys(obj);
826
- for (var j = 0; j < keys.length; ++j) {
827
- var key = keys[j];
828
- var val = obj[key];
829
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
830
- queue.push({ obj: obj, prop: key });
831
- refs.push(val);
832
- }
833
- }
834
- }
835
-
836
- compactQueue(queue);
837
-
838
- return value;
839
- };
840
-
841
- var isRegExp = function isRegExp(obj) {
842
- return Object.prototype.toString.call(obj) === '[object RegExp]';
843
- };
844
-
845
- var isBuffer = function isBuffer(obj) {
846
- if (!obj || typeof obj !== 'object') {
847
- return false;
848
- }
849
-
850
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
851
- };
852
-
853
- var combine = function combine(a, b) {
854
- return [].concat(a, b);
855
- };
856
-
857
- var maybeMap = function maybeMap(val, fn) {
858
- if (isArray(val)) {
859
- var mapped = [];
860
- for (var i = 0; i < val.length; i += 1) {
861
- mapped.push(fn(val[i]));
862
- }
863
- return mapped;
864
- }
865
- return fn(val);
866
- };
867
-
868
- module.exports = {
869
- arrayToObject: arrayToObject,
870
- assign: assign,
871
- combine: combine,
872
- compact: compact,
873
- decode: decode,
874
- encode: encode,
875
- isBuffer: isBuffer,
876
- isRegExp: isRegExp,
877
- maybeMap: maybeMap,
878
- merge: merge
879
- };
880
-
881
- },{"./formats":1}],6:[function(require,module,exports){
22
+ },{}],6:[function(require,module,exports){
882
23
 
883
24
  },{}],7:[function(require,module,exports){
884
- 'use strict';
885
-
886
- var GetIntrinsic = require('get-intrinsic');
887
-
888
- var callBind = require('./');
889
-
890
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
891
-
892
- module.exports = function callBoundIntrinsic(name, allowMissing) {
893
- var intrinsic = GetIntrinsic(name, !!allowMissing);
894
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
895
- return callBind(intrinsic);
896
- }
897
- return intrinsic;
898
- };
899
-
900
- },{"./":8,"get-intrinsic":11}],8:[function(require,module,exports){
901
- 'use strict';
25
+ "use strict";var bind=require(24),$apply=require(8),$call=require(9),$reflectApply=require(11);module.exports=$reflectApply||bind.call($call,$apply);
902
26
 
903
- var bind = require('function-bind');
904
- var GetIntrinsic = require('get-intrinsic');
27
+ },{"11":11,"24":24,"8":8,"9":9}],8:[function(require,module,exports){
28
+ "use strict";module.exports=Function.prototype.apply;
905
29
 
906
- var $apply = GetIntrinsic('%Function.prototype.apply%');
907
- var $call = GetIntrinsic('%Function.prototype.call%');
908
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
30
+ },{}],9:[function(require,module,exports){
31
+ "use strict";module.exports=Function.prototype.call;
909
32
 
910
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
911
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
912
- var $max = GetIntrinsic('%Math.max%');
33
+ },{}],24:[function(require,module,exports){
34
+ "use strict";var implementation=require(23);module.exports=Function.prototype.bind||implementation;
913
35
 
914
- if ($defineProperty) {
915
- try {
916
- $defineProperty({}, 'a', { value: 1 });
917
- } catch (e) {
918
- // IE 8 has a broken defineProperty
919
- $defineProperty = null;
920
- }
921
- }
922
-
923
- module.exports = function callBind(originalFunction) {
924
- var func = $reflectApply(bind, $call, arguments);
925
- if ($gOPD && $defineProperty) {
926
- var desc = $gOPD(func, 'length');
927
- if (desc.configurable) {
928
- // original length, plus the receiver, minus any additional arguments (after the receiver)
929
- $defineProperty(
930
- func,
931
- 'length',
932
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
933
- );
934
- }
935
- }
936
- return func;
937
- };
938
-
939
- var applyBind = function applyBind() {
940
- return $reflectApply(bind, $apply, arguments);
941
- };
942
-
943
- if ($defineProperty) {
944
- $defineProperty(module.exports, 'apply', { value: applyBind });
945
- } else {
946
- module.exports.apply = applyBind;
947
- }
948
-
949
- },{"function-bind":10,"get-intrinsic":11}],9:[function(require,module,exports){
950
- 'use strict';
951
-
952
- /* eslint no-invalid-this: 1 */
953
-
954
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
955
- var slice = Array.prototype.slice;
956
- var toStr = Object.prototype.toString;
957
- var funcType = '[object Function]';
958
-
959
- module.exports = function bind(that) {
960
- var target = this;
961
- if (typeof target !== 'function' || toStr.call(target) !== funcType) {
962
- throw new TypeError(ERROR_MESSAGE + target);
963
- }
964
- var args = slice.call(arguments, 1);
965
-
966
- var bound;
967
- var binder = function () {
968
- if (this instanceof bound) {
969
- var result = target.apply(
970
- this,
971
- args.concat(slice.call(arguments))
972
- );
973
- if (Object(result) === result) {
974
- return result;
975
- }
976
- return this;
977
- } else {
978
- return target.apply(
979
- that,
980
- args.concat(slice.call(arguments))
981
- );
982
- }
983
- };
984
-
985
- var boundLength = Math.max(0, target.length - args.length);
986
- var boundArgs = [];
987
- for (var i = 0; i < boundLength; i++) {
988
- boundArgs.push('$' + i);
989
- }
990
-
991
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
992
-
993
- if (target.prototype) {
994
- var Empty = function Empty() {};
995
- Empty.prototype = target.prototype;
996
- bound.prototype = new Empty();
997
- Empty.prototype = null;
998
- }
999
-
1000
- return bound;
1001
- };
36
+ },{"23":23}],11:[function(require,module,exports){
37
+ "use strict";module.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply;
1002
38
 
1003
39
  },{}],10:[function(require,module,exports){
1004
- 'use strict';
1005
-
1006
- var implementation = require('./implementation');
1007
-
1008
- module.exports = Function.prototype.bind || implementation;
1009
-
1010
- },{"./implementation":9}],11:[function(require,module,exports){
1011
- 'use strict';
1012
-
1013
- var undefined;
1014
-
1015
- var $SyntaxError = SyntaxError;
1016
- var $Function = Function;
1017
- var $TypeError = TypeError;
1018
-
1019
- // eslint-disable-next-line consistent-return
1020
- var getEvalledConstructor = function (expressionSyntax) {
1021
- try {
1022
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1023
- } catch (e) {}
1024
- };
1025
-
1026
- var $gOPD = Object.getOwnPropertyDescriptor;
1027
- if ($gOPD) {
1028
- try {
1029
- $gOPD({}, '');
1030
- } catch (e) {
1031
- $gOPD = null; // this is IE 8, which has a broken gOPD
1032
- }
1033
- }
1034
-
1035
- var throwTypeError = function () {
1036
- throw new $TypeError();
1037
- };
1038
- var ThrowTypeError = $gOPD
1039
- ? (function () {
1040
- try {
1041
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
1042
- arguments.callee; // IE 8 does not throw here
1043
- return throwTypeError;
1044
- } catch (calleeThrows) {
1045
- try {
1046
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1047
- return $gOPD(arguments, 'callee').get;
1048
- } catch (gOPDthrows) {
1049
- return throwTypeError;
1050
- }
1051
- }
1052
- }())
1053
- : throwTypeError;
1054
-
1055
- var hasSymbols = require('has-symbols')();
1056
- var hasProto = require('has-proto')();
1057
-
1058
- var getProto = Object.getPrototypeOf || (
1059
- hasProto
1060
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
1061
- : null
1062
- );
1063
-
1064
- var needsEval = {};
1065
-
1066
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
1067
-
1068
- var INTRINSICS = {
1069
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
1070
- '%Array%': Array,
1071
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
1072
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
1073
- '%AsyncFromSyncIteratorPrototype%': undefined,
1074
- '%AsyncFunction%': needsEval,
1075
- '%AsyncGenerator%': needsEval,
1076
- '%AsyncGeneratorFunction%': needsEval,
1077
- '%AsyncIteratorPrototype%': needsEval,
1078
- '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
1079
- '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
1080
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
1081
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
1082
- '%Boolean%': Boolean,
1083
- '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
1084
- '%Date%': Date,
1085
- '%decodeURI%': decodeURI,
1086
- '%decodeURIComponent%': decodeURIComponent,
1087
- '%encodeURI%': encodeURI,
1088
- '%encodeURIComponent%': encodeURIComponent,
1089
- '%Error%': Error,
1090
- '%eval%': eval, // eslint-disable-line no-eval
1091
- '%EvalError%': EvalError,
1092
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
1093
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
1094
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
1095
- '%Function%': $Function,
1096
- '%GeneratorFunction%': needsEval,
1097
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
1098
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
1099
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
1100
- '%isFinite%': isFinite,
1101
- '%isNaN%': isNaN,
1102
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
1103
- '%JSON%': typeof JSON === 'object' ? JSON : undefined,
1104
- '%Map%': typeof Map === 'undefined' ? undefined : Map,
1105
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
1106
- '%Math%': Math,
1107
- '%Number%': Number,
1108
- '%Object%': Object,
1109
- '%parseFloat%': parseFloat,
1110
- '%parseInt%': parseInt,
1111
- '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
1112
- '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
1113
- '%RangeError%': RangeError,
1114
- '%ReferenceError%': ReferenceError,
1115
- '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
1116
- '%RegExp%': RegExp,
1117
- '%Set%': typeof Set === 'undefined' ? undefined : Set,
1118
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
1119
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
1120
- '%String%': String,
1121
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
1122
- '%Symbol%': hasSymbols ? Symbol : undefined,
1123
- '%SyntaxError%': $SyntaxError,
1124
- '%ThrowTypeError%': ThrowTypeError,
1125
- '%TypedArray%': TypedArray,
1126
- '%TypeError%': $TypeError,
1127
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
1128
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
1129
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
1130
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
1131
- '%URIError%': URIError,
1132
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
1133
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
1134
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
1135
- };
1136
-
1137
- if (getProto) {
1138
- try {
1139
- null.error; // eslint-disable-line no-unused-expressions
1140
- } catch (e) {
1141
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
1142
- var errorProto = getProto(getProto(e));
1143
- INTRINSICS['%Error.prototype%'] = errorProto;
1144
- }
1145
- }
1146
-
1147
- var doEval = function doEval(name) {
1148
- var value;
1149
- if (name === '%AsyncFunction%') {
1150
- value = getEvalledConstructor('async function () {}');
1151
- } else if (name === '%GeneratorFunction%') {
1152
- value = getEvalledConstructor('function* () {}');
1153
- } else if (name === '%AsyncGeneratorFunction%') {
1154
- value = getEvalledConstructor('async function* () {}');
1155
- } else if (name === '%AsyncGenerator%') {
1156
- var fn = doEval('%AsyncGeneratorFunction%');
1157
- if (fn) {
1158
- value = fn.prototype;
1159
- }
1160
- } else if (name === '%AsyncIteratorPrototype%') {
1161
- var gen = doEval('%AsyncGenerator%');
1162
- if (gen && getProto) {
1163
- value = getProto(gen.prototype);
1164
- }
1165
- }
1166
-
1167
- INTRINSICS[name] = value;
1168
-
1169
- return value;
1170
- };
1171
-
1172
- var LEGACY_ALIASES = {
1173
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1174
- '%ArrayPrototype%': ['Array', 'prototype'],
1175
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1176
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1177
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1178
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1179
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1180
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1181
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1182
- '%BooleanPrototype%': ['Boolean', 'prototype'],
1183
- '%DataViewPrototype%': ['DataView', 'prototype'],
1184
- '%DatePrototype%': ['Date', 'prototype'],
1185
- '%ErrorPrototype%': ['Error', 'prototype'],
1186
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1187
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1188
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1189
- '%FunctionPrototype%': ['Function', 'prototype'],
1190
- '%Generator%': ['GeneratorFunction', 'prototype'],
1191
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1192
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1193
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1194
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1195
- '%JSONParse%': ['JSON', 'parse'],
1196
- '%JSONStringify%': ['JSON', 'stringify'],
1197
- '%MapPrototype%': ['Map', 'prototype'],
1198
- '%NumberPrototype%': ['Number', 'prototype'],
1199
- '%ObjectPrototype%': ['Object', 'prototype'],
1200
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1201
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1202
- '%PromisePrototype%': ['Promise', 'prototype'],
1203
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1204
- '%Promise_all%': ['Promise', 'all'],
1205
- '%Promise_reject%': ['Promise', 'reject'],
1206
- '%Promise_resolve%': ['Promise', 'resolve'],
1207
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1208
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1209
- '%RegExpPrototype%': ['RegExp', 'prototype'],
1210
- '%SetPrototype%': ['Set', 'prototype'],
1211
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1212
- '%StringPrototype%': ['String', 'prototype'],
1213
- '%SymbolPrototype%': ['Symbol', 'prototype'],
1214
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1215
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1216
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1217
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1218
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1219
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1220
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1221
- '%URIErrorPrototype%': ['URIError', 'prototype'],
1222
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1223
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
1224
- };
1225
-
1226
- var bind = require('function-bind');
1227
- var hasOwn = require('has');
1228
- var $concat = bind.call(Function.call, Array.prototype.concat);
1229
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
1230
- var $replace = bind.call(Function.call, String.prototype.replace);
1231
- var $strSlice = bind.call(Function.call, String.prototype.slice);
1232
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
1233
-
1234
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1235
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1236
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1237
- var stringToPath = function stringToPath(string) {
1238
- var first = $strSlice(string, 0, 1);
1239
- var last = $strSlice(string, -1);
1240
- if (first === '%' && last !== '%') {
1241
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1242
- } else if (last === '%' && first !== '%') {
1243
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1244
- }
1245
- var result = [];
1246
- $replace(string, rePropName, function (match, number, quote, subString) {
1247
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1248
- });
1249
- return result;
1250
- };
1251
- /* end adaptation */
1252
-
1253
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1254
- var intrinsicName = name;
1255
- var alias;
1256
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
1257
- alias = LEGACY_ALIASES[intrinsicName];
1258
- intrinsicName = '%' + alias[0] + '%';
1259
- }
1260
-
1261
- if (hasOwn(INTRINSICS, intrinsicName)) {
1262
- var value = INTRINSICS[intrinsicName];
1263
- if (value === needsEval) {
1264
- value = doEval(intrinsicName);
1265
- }
1266
- if (typeof value === 'undefined' && !allowMissing) {
1267
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1268
- }
1269
-
1270
- return {
1271
- alias: alias,
1272
- name: intrinsicName,
1273
- value: value
1274
- };
1275
- }
1276
-
1277
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
1278
- };
1279
-
1280
- module.exports = function GetIntrinsic(name, allowMissing) {
1281
- if (typeof name !== 'string' || name.length === 0) {
1282
- throw new $TypeError('intrinsic name must be a non-empty string');
1283
- }
1284
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1285
- throw new $TypeError('"allowMissing" argument must be a boolean');
1286
- }
1287
-
1288
- if ($exec(/^%?[^%]*%?$/, name) === null) {
1289
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
1290
- }
1291
- var parts = stringToPath(name);
1292
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1293
-
1294
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1295
- var intrinsicRealName = intrinsic.name;
1296
- var value = intrinsic.value;
1297
- var skipFurtherCaching = false;
1298
-
1299
- var alias = intrinsic.alias;
1300
- if (alias) {
1301
- intrinsicBaseName = alias[0];
1302
- $spliceApply(parts, $concat([0, 1], alias));
1303
- }
1304
-
1305
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1306
- var part = parts[i];
1307
- var first = $strSlice(part, 0, 1);
1308
- var last = $strSlice(part, -1);
1309
- if (
1310
- (
1311
- (first === '"' || first === "'" || first === '`')
1312
- || (last === '"' || last === "'" || last === '`')
1313
- )
1314
- && first !== last
1315
- ) {
1316
- throw new $SyntaxError('property names with quotes must have matching quotes');
1317
- }
1318
- if (part === 'constructor' || !isOwn) {
1319
- skipFurtherCaching = true;
1320
- }
1321
-
1322
- intrinsicBaseName += '.' + part;
1323
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1324
-
1325
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
1326
- value = INTRINSICS[intrinsicRealName];
1327
- } else if (value != null) {
1328
- if (!(part in value)) {
1329
- if (!allowMissing) {
1330
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1331
- }
1332
- return void undefined;
1333
- }
1334
- if ($gOPD && (i + 1) >= parts.length) {
1335
- var desc = $gOPD(value, part);
1336
- isOwn = !!desc;
1337
-
1338
- // By convention, when a data property is converted to an accessor
1339
- // property to emulate a data property that does not suffer from
1340
- // the override mistake, that accessor's getter is marked with
1341
- // an `originalValue` property. Here, when we detect this, we
1342
- // uphold the illusion by pretending to see that original data
1343
- // property, i.e., returning the value rather than the getter
1344
- // itself.
1345
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1346
- value = desc.get;
1347
- } else {
1348
- value = value[part];
1349
- }
1350
- } else {
1351
- isOwn = hasOwn(value, part);
1352
- value = value[part];
1353
- }
1354
-
1355
- if (isOwn && !skipFurtherCaching) {
1356
- INTRINSICS[intrinsicRealName] = value;
1357
- }
1358
- }
1359
- }
1360
- return value;
1361
- };
1362
-
1363
- },{"function-bind":10,"has":15,"has-proto":12,"has-symbols":13}],12:[function(require,module,exports){
1364
- 'use strict';
1365
-
1366
- var test = {
1367
- foo: {}
1368
- };
1369
-
1370
- var $Object = Object;
1371
-
1372
- module.exports = function hasProto() {
1373
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
1374
- };
1375
-
1376
- },{}],13:[function(require,module,exports){
1377
- 'use strict';
1378
-
1379
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1380
- var hasSymbolSham = require('./shams');
1381
-
1382
- module.exports = function hasNativeSymbols() {
1383
- if (typeof origSymbol !== 'function') { return false; }
1384
- if (typeof Symbol !== 'function') { return false; }
1385
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
1386
- if (typeof Symbol('bar') !== 'symbol') { return false; }
1387
-
1388
- return hasSymbolSham();
1389
- };
1390
-
1391
- },{"./shams":14}],14:[function(require,module,exports){
1392
- 'use strict';
1393
-
1394
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
1395
- module.exports = function hasSymbols() {
1396
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1397
- if (typeof Symbol.iterator === 'symbol') { return true; }
1398
-
1399
- var obj = {};
1400
- var sym = Symbol('test');
1401
- var symObj = Object(sym);
1402
- if (typeof sym === 'string') { return false; }
1403
-
1404
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1405
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1406
-
1407
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
1408
- // if (sym instanceof Symbol) { return false; }
1409
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1410
- // if (!(symObj instanceof Symbol)) { return false; }
1411
-
1412
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1413
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1414
-
1415
- var symVal = 42;
1416
- obj[sym] = symVal;
1417
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1418
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1419
-
1420
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1421
-
1422
- var syms = Object.getOwnPropertySymbols(obj);
1423
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
1424
-
1425
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1426
-
1427
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
1428
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1429
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1430
- }
1431
-
1432
- return true;
1433
- };
1434
-
1435
- },{}],15:[function(require,module,exports){
1436
- 'use strict';
1437
-
1438
- var bind = require('function-bind');
1439
-
1440
- module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
1441
-
1442
- },{"function-bind":10}],16:[function(require,module,exports){
1443
- var hasMap = typeof Map === 'function' && Map.prototype;
1444
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1445
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
1446
- var mapForEach = hasMap && Map.prototype.forEach;
1447
- var hasSet = typeof Set === 'function' && Set.prototype;
1448
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
1449
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
1450
- var setForEach = hasSet && Set.prototype.forEach;
1451
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
1452
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1453
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
1454
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1455
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
1456
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1457
- var booleanValueOf = Boolean.prototype.valueOf;
1458
- var objectToString = Object.prototype.toString;
1459
- var functionToString = Function.prototype.toString;
1460
- var $match = String.prototype.match;
1461
- var $slice = String.prototype.slice;
1462
- var $replace = String.prototype.replace;
1463
- var $toUpperCase = String.prototype.toUpperCase;
1464
- var $toLowerCase = String.prototype.toLowerCase;
1465
- var $test = RegExp.prototype.test;
1466
- var $concat = Array.prototype.concat;
1467
- var $join = Array.prototype.join;
1468
- var $arrSlice = Array.prototype.slice;
1469
- var $floor = Math.floor;
1470
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
1471
- var gOPS = Object.getOwnPropertySymbols;
1472
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
1473
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
1474
- // ie, `has-tostringtag/shams
1475
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
1476
- ? Symbol.toStringTag
1477
- : null;
1478
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1479
-
1480
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
1481
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
1482
- ? function (O) {
1483
- return O.__proto__; // eslint-disable-line no-proto
1484
- }
1485
- : null
1486
- );
1487
-
1488
- function addNumericSeparator(num, str) {
1489
- if (
1490
- num === Infinity
1491
- || num === -Infinity
1492
- || num !== num
1493
- || (num && num > -1000 && num < 1000)
1494
- || $test.call(/e/, str)
1495
- ) {
1496
- return str;
1497
- }
1498
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1499
- if (typeof num === 'number') {
1500
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
1501
- if (int !== num) {
1502
- var intStr = String(int);
1503
- var dec = $slice.call(str, intStr.length + 1);
1504
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1505
- }
1506
- }
1507
- return $replace.call(str, sepRegex, '$&_');
1508
- }
1509
-
1510
- var utilInspect = require('./util.inspect');
1511
- var inspectCustom = utilInspect.custom;
1512
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1513
-
1514
- module.exports = function inspect_(obj, options, depth, seen) {
1515
- var opts = options || {};
1516
-
1517
- if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
1518
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1519
- }
1520
- if (
1521
- has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
1522
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
1523
- : opts.maxStringLength !== null
1524
- )
1525
- ) {
1526
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1527
- }
1528
- var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
1529
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
1530
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
1531
- }
1532
-
1533
- if (
1534
- has(opts, 'indent')
1535
- && opts.indent !== null
1536
- && opts.indent !== '\t'
1537
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
1538
- ) {
1539
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1540
- }
1541
- if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1542
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1543
- }
1544
- var numericSeparator = opts.numericSeparator;
1545
-
1546
- if (typeof obj === 'undefined') {
1547
- return 'undefined';
1548
- }
1549
- if (obj === null) {
1550
- return 'null';
1551
- }
1552
- if (typeof obj === 'boolean') {
1553
- return obj ? 'true' : 'false';
1554
- }
1555
-
1556
- if (typeof obj === 'string') {
1557
- return inspectString(obj, opts);
1558
- }
1559
- if (typeof obj === 'number') {
1560
- if (obj === 0) {
1561
- return Infinity / obj > 0 ? '0' : '-0';
1562
- }
1563
- var str = String(obj);
1564
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1565
- }
1566
- if (typeof obj === 'bigint') {
1567
- var bigIntStr = String(obj) + 'n';
1568
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1569
- }
1570
-
1571
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
1572
- if (typeof depth === 'undefined') { depth = 0; }
1573
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
1574
- return isArray(obj) ? '[Array]' : '[Object]';
1575
- }
1576
-
1577
- var indent = getIndent(opts, depth);
1578
-
1579
- if (typeof seen === 'undefined') {
1580
- seen = [];
1581
- } else if (indexOf(seen, obj) >= 0) {
1582
- return '[Circular]';
1583
- }
1584
-
1585
- function inspect(value, from, noIndent) {
1586
- if (from) {
1587
- seen = $arrSlice.call(seen);
1588
- seen.push(from);
1589
- }
1590
- if (noIndent) {
1591
- var newOpts = {
1592
- depth: opts.depth
1593
- };
1594
- if (has(opts, 'quoteStyle')) {
1595
- newOpts.quoteStyle = opts.quoteStyle;
1596
- }
1597
- return inspect_(value, newOpts, depth + 1, seen);
1598
- }
1599
- return inspect_(value, opts, depth + 1, seen);
1600
- }
1601
-
1602
- if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
1603
- var name = nameOf(obj);
1604
- var keys = arrObjKeys(obj, inspect);
1605
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
1606
- }
1607
- if (isSymbol(obj)) {
1608
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1609
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
1610
- }
1611
- if (isElement(obj)) {
1612
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
1613
- var attrs = obj.attributes || [];
1614
- for (var i = 0; i < attrs.length; i++) {
1615
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
1616
- }
1617
- s += '>';
1618
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
1619
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
1620
- return s;
1621
- }
1622
- if (isArray(obj)) {
1623
- if (obj.length === 0) { return '[]'; }
1624
- var xs = arrObjKeys(obj, inspect);
1625
- if (indent && !singleLineValues(xs)) {
1626
- return '[' + indentedJoin(xs, indent) + ']';
1627
- }
1628
- return '[ ' + $join.call(xs, ', ') + ' ]';
1629
- }
1630
- if (isError(obj)) {
1631
- var parts = arrObjKeys(obj, inspect);
1632
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
1633
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1634
- }
1635
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
1636
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
1637
- }
1638
- if (typeof obj === 'object' && customInspect) {
1639
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1640
- return utilInspect(obj, { depth: maxDepth - depth });
1641
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
1642
- return obj.inspect();
1643
- }
1644
- }
1645
- if (isMap(obj)) {
1646
- var mapParts = [];
1647
- if (mapForEach) {
1648
- mapForEach.call(obj, function (value, key) {
1649
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
1650
- });
1651
- }
1652
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
1653
- }
1654
- if (isSet(obj)) {
1655
- var setParts = [];
1656
- if (setForEach) {
1657
- setForEach.call(obj, function (value) {
1658
- setParts.push(inspect(value, obj));
1659
- });
1660
- }
1661
- return collectionOf('Set', setSize.call(obj), setParts, indent);
1662
- }
1663
- if (isWeakMap(obj)) {
1664
- return weakCollectionOf('WeakMap');
1665
- }
1666
- if (isWeakSet(obj)) {
1667
- return weakCollectionOf('WeakSet');
1668
- }
1669
- if (isWeakRef(obj)) {
1670
- return weakCollectionOf('WeakRef');
1671
- }
1672
- if (isNumber(obj)) {
1673
- return markBoxed(inspect(Number(obj)));
1674
- }
1675
- if (isBigInt(obj)) {
1676
- return markBoxed(inspect(bigIntValueOf.call(obj)));
1677
- }
1678
- if (isBoolean(obj)) {
1679
- return markBoxed(booleanValueOf.call(obj));
1680
- }
1681
- if (isString(obj)) {
1682
- return markBoxed(inspect(String(obj)));
1683
- }
1684
- if (!isDate(obj) && !isRegExp(obj)) {
1685
- var ys = arrObjKeys(obj, inspect);
1686
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1687
- var protoTag = obj instanceof Object ? '' : 'null prototype';
1688
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
1689
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
1690
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1691
- if (ys.length === 0) { return tag + '{}'; }
1692
- if (indent) {
1693
- return tag + '{' + indentedJoin(ys, indent) + '}';
1694
- }
1695
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
1696
- }
1697
- return String(obj);
1698
- };
40
+ "use strict";var bind=require(24),$TypeError=require(20),$call=require(9),$actualApply=require(7);module.exports=function callBindBasic(r){if(r.length<1||"function"!=typeof r[0])throw new $TypeError("a function is required");return $actualApply(bind,$call,r)};
1699
41
 
1700
- function wrapQuotes(s, defaultStyle, opts) {
1701
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
1702
- return quoteChar + s + quoteChar;
1703
- }
42
+ },{"20":20,"24":24,"7":7,"9":9}],20:[function(require,module,exports){
43
+ "use strict";module.exports=TypeError;
1704
44
 
1705
- function quote(s) {
1706
- return $replace.call(String(s), /"/g, '&quot;');
1707
- }
45
+ },{}],12:[function(require,module,exports){
46
+ "use strict";var GetIntrinsic=require(25),callBindBasic=require(10),$indexOf=callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);module.exports=function callBoundIntrinsic(i,n){var t=GetIntrinsic(i,!!n);return"function"==typeof t&&$indexOf(i,".prototype.")>-1?callBindBasic([t]):t};
1708
47
 
1709
- function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1710
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1711
- function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1712
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1713
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1714
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
1715
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
48
+ },{"10":10,"25":25}],25:[function(require,module,exports){
49
+ "use strict";var undefined,$Object=require(22),$Error=require(16),$EvalError=require(15),$RangeError=require(17),$ReferenceError=require(18),$SyntaxError=require(19),$TypeError=require(20),$URIError=require(21),abs=require(34),floor=require(35),max=require(37),min=require(38),pow=require(39),round=require(40),sign=require(41),$Function=Function,getEvalledConstructor=function(r){try{return $Function('"use strict"; return ('+r+").constructor;")()}catch(r){}},$gOPD=require(30),$defineProperty=require(14),throwTypeError=function(){throw new $TypeError},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(r){try{return $gOPD(arguments,"callee").get}catch(r){return throwTypeError}}}():throwTypeError,hasSymbols=require(31)(),getProto=require(28),$ObjectGPO=require(26),$ReflectGPO=require(27),$apply=require(8),$call=require(9),needsEval={},TypedArray="undefined"!=typeof Uint8Array&&getProto?getProto(Uint8Array):undefined,INTRINSICS={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?undefined:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?undefined:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?undefined:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":"undefined"==typeof Float16Array?undefined:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?undefined:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?undefined:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":"undefined"==typeof Map?undefined:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols&&getProto?getProto((new Map)[Symbol.iterator]()):undefined,"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols&&getProto?getProto((new Set)[Symbol.iterator]()):undefined,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined,"%Symbol%":hasSymbols?Symbol:undefined,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined:Uint32Array,"%URIError%":$URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto)try{null.error}catch(r){var errorProto=getProto(getProto(r));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function doEval(r){var e;if("%AsyncFunction%"===r)e=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===r)e=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===r)e=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===r){var t=doEval("%AsyncGeneratorFunction%");t&&(e=t.prototype)}else if("%AsyncIteratorPrototype%"===r){var o=doEval("%AsyncGenerator%");o&&getProto&&(e=getProto(o.prototype))}return INTRINSICS[r]=e,e},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=require(24),hasOwn=require(33),$concat=bind.call($call,Array.prototype.concat),$spliceApply=bind.call($apply,Array.prototype.splice),$replace=bind.call($call,String.prototype.replace),$strSlice=bind.call($call,String.prototype.slice),$exec=bind.call($call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function stringToPath(r){var e=$strSlice(r,0,1),t=$strSlice(r,-1);if("%"===e&&"%"!==t)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==e)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var o=[];return $replace(r,rePropName,function(r,e,t,n){o[o.length]=t?$replace(n,reEscapeChar,"$1"):e||r}),o},getBaseIntrinsic=function getBaseIntrinsic(r,e){var t,o=r;if(hasOwn(LEGACY_ALIASES,o)&&(o="%"+(t=LEGACY_ALIASES[o])[0]+"%"),hasOwn(INTRINSICS,o)){var n=INTRINSICS[o];if(n===needsEval&&(n=doEval(o)),void 0===n&&!e)throw new $TypeError("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:t,name:o,value:n}}throw new $SyntaxError("intrinsic "+r+" does not exist!")};module.exports=function GetIntrinsic(r,e){if("string"!=typeof r||0===r.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,r))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=stringToPath(r),o=t.length>0?t[0]:"",n=getBaseIntrinsic("%"+o+"%",e),a=n.name,i=n.value,y=!1,p=n.alias;p&&(o=p[0],$spliceApply(t,$concat([0,1],p)));for(var d=1,s=!0;d<t.length;d+=1){var f=t[d],l=$strSlice(f,0,1),u=$strSlice(f,-1);if(('"'===l||"'"===l||"`"===l||'"'===u||"'"===u||"`"===u)&&l!==u)throw new $SyntaxError("property names with quotes must have matching quotes");if("constructor"!==f&&s||(y=!0),hasOwn(INTRINSICS,a="%"+(o+="."+f)+"%"))i=INTRINSICS[a];else if(null!=i){if(!(f in i)){if(!e)throw new $TypeError("base intrinsic for "+r+" exists, but the property is not available.");return}if($gOPD&&d+1>=t.length){var c=$gOPD(i,f);i=(s=!!c)&&"get"in c&&!("originalValue"in c.get)?c.get:i[f]}else s=hasOwn(i,f),i=i[f];s&&!y&&(INTRINSICS[a]=i)}}return i};
1716
50
 
1717
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
1718
- function isSymbol(obj) {
1719
- if (hasShammedSymbols) {
1720
- return obj && typeof obj === 'object' && obj instanceof Symbol;
1721
- }
1722
- if (typeof obj === 'symbol') {
1723
- return true;
1724
- }
1725
- if (!obj || typeof obj !== 'object' || !symToString) {
1726
- return false;
1727
- }
1728
- try {
1729
- symToString.call(obj);
1730
- return true;
1731
- } catch (e) {}
1732
- return false;
1733
- }
51
+ },{"14":14,"15":15,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"24":24,"26":26,"27":27,"28":28,"30":30,"31":31,"33":33,"34":34,"35":35,"37":37,"38":38,"39":39,"40":40,"41":41,"8":8,"9":9}],13:[function(require,module,exports){
52
+ "use strict";var hasProtoAccessor,callBind=require(10),gOPD=require(30);try{hasProtoAccessor=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var desc=!!hasProtoAccessor&&gOPD&&gOPD(Object.prototype,"__proto__"),$Object=Object,$getPrototypeOf=$Object.getPrototypeOf;module.exports=desc&&"function"==typeof desc.get?callBind([desc.get]):"function"==typeof $getPrototypeOf&&function getDunder(t){return $getPrototypeOf(null==t?t:$Object(t))};
1734
53
 
1735
- function isBigInt(obj) {
1736
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
1737
- return false;
1738
- }
1739
- try {
1740
- bigIntValueOf.call(obj);
1741
- return true;
1742
- } catch (e) {}
1743
- return false;
1744
- }
54
+ },{"10":10,"30":30}],30:[function(require,module,exports){
55
+ "use strict";var $gOPD=require(29);if($gOPD)try{$gOPD([],"length")}catch(g){$gOPD=null}module.exports=$gOPD;
1745
56
 
1746
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
1747
- function has(obj, key) {
1748
- return hasOwn.call(obj, key);
1749
- }
57
+ },{"29":29}],15:[function(require,module,exports){
58
+ "use strict";module.exports=EvalError;
1750
59
 
1751
- function toStr(obj) {
1752
- return objectToString.call(obj);
1753
- }
60
+ },{}],16:[function(require,module,exports){
61
+ "use strict";module.exports=Error;
1754
62
 
1755
- function nameOf(f) {
1756
- if (f.name) { return f.name; }
1757
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1758
- if (m) { return m[1]; }
1759
- return null;
1760
- }
63
+ },{}],17:[function(require,module,exports){
64
+ "use strict";module.exports=RangeError;
1761
65
 
1762
- function indexOf(xs, x) {
1763
- if (xs.indexOf) { return xs.indexOf(x); }
1764
- for (var i = 0, l = xs.length; i < l; i++) {
1765
- if (xs[i] === x) { return i; }
1766
- }
1767
- return -1;
1768
- }
66
+ },{}],18:[function(require,module,exports){
67
+ "use strict";module.exports=ReferenceError;
1769
68
 
1770
- function isMap(x) {
1771
- if (!mapSize || !x || typeof x !== 'object') {
1772
- return false;
1773
- }
1774
- try {
1775
- mapSize.call(x);
1776
- try {
1777
- setSize.call(x);
1778
- } catch (s) {
1779
- return true;
1780
- }
1781
- return x instanceof Map; // core-js workaround, pre-v2.5.0
1782
- } catch (e) {}
1783
- return false;
1784
- }
69
+ },{}],19:[function(require,module,exports){
70
+ "use strict";module.exports=SyntaxError;
1785
71
 
1786
- function isWeakMap(x) {
1787
- if (!weakMapHas || !x || typeof x !== 'object') {
1788
- return false;
1789
- }
1790
- try {
1791
- weakMapHas.call(x, weakMapHas);
1792
- try {
1793
- weakSetHas.call(x, weakSetHas);
1794
- } catch (s) {
1795
- return true;
1796
- }
1797
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
1798
- } catch (e) {}
1799
- return false;
1800
- }
72
+ },{}],21:[function(require,module,exports){
73
+ "use strict";module.exports=URIError;
1801
74
 
1802
- function isWeakRef(x) {
1803
- if (!weakRefDeref || !x || typeof x !== 'object') {
1804
- return false;
1805
- }
1806
- try {
1807
- weakRefDeref.call(x);
1808
- return true;
1809
- } catch (e) {}
1810
- return false;
1811
- }
75
+ },{}],22:[function(require,module,exports){
76
+ "use strict";module.exports=Object;
1812
77
 
1813
- function isSet(x) {
1814
- if (!setSize || !x || typeof x !== 'object') {
1815
- return false;
1816
- }
1817
- try {
1818
- setSize.call(x);
1819
- try {
1820
- mapSize.call(x);
1821
- } catch (m) {
1822
- return true;
1823
- }
1824
- return x instanceof Set; // core-js workaround, pre-v2.5.0
1825
- } catch (e) {}
1826
- return false;
1827
- }
78
+ },{}],23:[function(require,module,exports){
79
+ "use strict";var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function concatty(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var e=0;e<n.length;e+=1)r[e+t.length]=n[e];return r},slicy=function slicy(t,n){for(var r=[],o=n||0,e=0;o<t.length;o+=1,e+=1)r[e]=t[o];return r},joiny=function(t,n){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=n);return r};module.exports=function bind(t){var n=this;if("function"!=typeof n||toStr.apply(n)!==funcType)throw new TypeError(ERROR_MESSAGE+n);for(var r,o=slicy(arguments,1),e=max(0,n.length-o.length),i=[],c=0;c<e;c++)i[c]="$"+c;if(r=Function("binder","return function ("+joiny(i,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var e=n.apply(this,concatty(o,arguments));return Object(e)===e?e:this}return n.apply(t,concatty(o,arguments))}),n.prototype){var p=function Empty(){};p.prototype=n.prototype,r.prototype=new p,p.prototype=null}return r};
1828
80
 
1829
- function isWeakSet(x) {
1830
- if (!weakSetHas || !x || typeof x !== 'object') {
1831
- return false;
1832
- }
1833
- try {
1834
- weakSetHas.call(x, weakSetHas);
1835
- try {
1836
- weakMapHas.call(x, weakMapHas);
1837
- } catch (s) {
1838
- return true;
1839
- }
1840
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
1841
- } catch (e) {}
1842
- return false;
1843
- }
81
+ },{}],35:[function(require,module,exports){
82
+ "use strict";module.exports=Math.floor;
1844
83
 
1845
- function isElement(x) {
1846
- if (!x || typeof x !== 'object') { return false; }
1847
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
1848
- return true;
1849
- }
1850
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
1851
- }
84
+ },{}],34:[function(require,module,exports){
85
+ "use strict";module.exports=Math.abs;
1852
86
 
1853
- function inspectString(str, opts) {
1854
- if (str.length > opts.maxStringLength) {
1855
- var remaining = str.length - opts.maxStringLength;
1856
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
1857
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1858
- }
1859
- // eslint-disable-next-line no-control-regex
1860
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1861
- return wrapQuotes(s, 'single', opts);
1862
- }
87
+ },{}],37:[function(require,module,exports){
88
+ "use strict";module.exports=Math.max;
1863
89
 
1864
- function lowbyte(c) {
1865
- var n = c.charCodeAt(0);
1866
- var x = {
1867
- 8: 'b',
1868
- 9: 't',
1869
- 10: 'n',
1870
- 12: 'f',
1871
- 13: 'r'
1872
- }[n];
1873
- if (x) { return '\\' + x; }
1874
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
1875
- }
90
+ },{}],39:[function(require,module,exports){
91
+ "use strict";module.exports=Math.pow;
1876
92
 
1877
- function markBoxed(str) {
1878
- return 'Object(' + str + ')';
1879
- }
93
+ },{}],40:[function(require,module,exports){
94
+ "use strict";module.exports=Math.round;
1880
95
 
1881
- function weakCollectionOf(type) {
1882
- return type + ' { ? }';
1883
- }
96
+ },{}],38:[function(require,module,exports){
97
+ "use strict";module.exports=Math.min;
1884
98
 
1885
- function collectionOf(type, size, entries, indent) {
1886
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
1887
- return type + ' (' + size + ') {' + joinedEntries + '}';
1888
- }
99
+ },{}],27:[function(require,module,exports){
100
+ "use strict";module.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null;
1889
101
 
1890
- function singleLineValues(xs) {
1891
- for (var i = 0; i < xs.length; i++) {
1892
- if (indexOf(xs[i], '\n') >= 0) {
1893
- return false;
1894
- }
1895
- }
1896
- return true;
1897
- }
102
+ },{}],26:[function(require,module,exports){
103
+ "use strict";var $Object=require(22);module.exports=$Object.getPrototypeOf||null;
1898
104
 
1899
- function getIndent(opts, depth) {
1900
- var baseIndent;
1901
- if (opts.indent === '\t') {
1902
- baseIndent = '\t';
1903
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
1904
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
1905
- } else {
1906
- return null;
1907
- }
1908
- return {
1909
- base: baseIndent,
1910
- prev: $join.call(Array(depth + 1), baseIndent)
1911
- };
1912
- }
105
+ },{"22":22}],41:[function(require,module,exports){
106
+ "use strict";var $isNaN=require(36);module.exports=function sign(i){return $isNaN(i)||0===i?i:i<0?-1:1};
1913
107
 
1914
- function indentedJoin(xs, indent) {
1915
- if (xs.length === 0) { return ''; }
1916
- var lineJoiner = '\n' + indent.prev + indent.base;
1917
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1918
- }
108
+ },{"36":36}],33:[function(require,module,exports){
109
+ "use strict";var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require(24);module.exports=bind.call(call,$hasOwn);
1919
110
 
1920
- function arrObjKeys(obj, inspect) {
1921
- var isArr = isArray(obj);
1922
- var xs = [];
1923
- if (isArr) {
1924
- xs.length = obj.length;
1925
- for (var i = 0; i < obj.length; i++) {
1926
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
1927
- }
1928
- }
1929
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
1930
- var symMap;
1931
- if (hasShammedSymbols) {
1932
- symMap = {};
1933
- for (var k = 0; k < syms.length; k++) {
1934
- symMap['$' + syms[k]] = syms[k];
1935
- }
1936
- }
111
+ },{"24":24}],31:[function(require,module,exports){
112
+ "use strict";var origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=require(32);module.exports=function hasNativeSymbols(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()};
1937
113
 
1938
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
1939
- if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1940
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
1941
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
1942
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
1943
- continue; // eslint-disable-line no-restricted-syntax, no-continue
1944
- } else if ($test.call(/[^\w$]/, key)) {
1945
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
1946
- } else {
1947
- xs.push(key + ': ' + inspect(obj[key], obj));
1948
- }
1949
- }
1950
- if (typeof gOPS === 'function') {
1951
- for (var j = 0; j < syms.length; j++) {
1952
- if (isEnumerable.call(obj, syms[j])) {
1953
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
1954
- }
1955
- }
1956
- }
1957
- return xs;
1958
- }
114
+ },{"32":32}],28:[function(require,module,exports){
115
+ "use strict";var reflectGetProto=require(27),originalGetProto=require(26),getDunderProto=require(13);module.exports=reflectGetProto?function getProto(t){return reflectGetProto(t)}:originalGetProto?function getProto(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return originalGetProto(t)}:getDunderProto?function getProto(t){return getDunderProto(t)}:null;
1959
116
 
1960
- },{"./util.inspect":6}],17:[function(require,module,exports){
1961
- 'use strict';
117
+ },{"13":13,"26":26,"27":27}],29:[function(require,module,exports){
118
+ "use strict";module.exports=Object.getOwnPropertyDescriptor;
1962
119
 
1963
- var GetIntrinsic = require('get-intrinsic');
1964
- var callBound = require('call-bind/callBound');
1965
- var inspect = require('object-inspect');
120
+ },{}],32:[function(require,module,exports){
121
+ "use strict";module.exports=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var y=Object.getOwnPropertyDescriptor(t,e);if(42!==y.value||!0!==y.enumerable)return!1}return!0};
1966
122
 
1967
- var $TypeError = GetIntrinsic('%TypeError%');
1968
- var $WeakMap = GetIntrinsic('%WeakMap%', true);
1969
- var $Map = GetIntrinsic('%Map%', true);
123
+ },{}],36:[function(require,module,exports){
124
+ "use strict";module.exports=Number.isNaN||function isNaN(e){return e!=e};
1970
125
 
1971
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
1972
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
1973
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
1974
- var $mapGet = callBound('Map.prototype.get', true);
1975
- var $mapSet = callBound('Map.prototype.set', true);
1976
- var $mapHas = callBound('Map.prototype.has', true);
126
+ },{}],42:[function(require,module,exports){
127
+ (function (global){(function (){
128
+ var hasMap="function"==typeof Map&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&"function"==typeof mapSizeDescriptor.get?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet="function"==typeof Set&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&"function"==typeof setSizeDescriptor.get?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap="function"==typeof WeakMap&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet="function"==typeof WeakSet&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef="function"==typeof WeakRef&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf="function"==typeof BigInt?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,hasShammedSymbols="function"==typeof Symbol&&"object"==typeof Symbol.iterator,toStringTag="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function addNumericSeparator(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||$test.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-$floor(-t):$floor(t);if(n!==t){var o=String(n),i=$slice.call(e,o.length+1);return $replace.call(o,r,"$&_")+"."+$replace.call($replace.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(e,r,"$&_")}var utilInspect=require(6),inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function wrapQuotes(t,e,r){var n=r.quoteStyle||e,o=quotes[n];return o+t+o}function quote(t){return $replace.call(String(t),/"/g,"&quot;")}function canTrustToString(t){return!toStringTag||!("object"==typeof t&&(toStringTag in t||void 0!==t[toStringTag]))}function isArray(t){return"[object Array]"===toStr(t)&&canTrustToString(t)}function isDate(t){return"[object Date]"===toStr(t)&&canTrustToString(t)}function isRegExp(t){return"[object RegExp]"===toStr(t)&&canTrustToString(t)}function isError(t){return"[object Error]"===toStr(t)&&canTrustToString(t)}function isString(t){return"[object String]"===toStr(t)&&canTrustToString(t)}function isNumber(t){return"[object Number]"===toStr(t)&&canTrustToString(t)}function isBoolean(t){return"[object Boolean]"===toStr(t)&&canTrustToString(t)}function isSymbol(t){if(hasShammedSymbols)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!symToString)return!1;try{return symToString.call(t),!0}catch(t){}return!1}function isBigInt(t){if(!t||"object"!=typeof t||!bigIntValueOf)return!1;try{return bigIntValueOf.call(t),!0}catch(t){}return!1}module.exports=function inspect_(t,e,r,n){var o=e||{};if(has(o,"quoteStyle")&&!has(quotes,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has(o,"maxStringLength")&&("number"==typeof o.maxStringLength?o.maxStringLength<0&&o.maxStringLength!==1/0:null!==o.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!has(o,"customInspect")||o.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(o,"indent")&&null!==o.indent&&"\t"!==o.indent&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(o,"numericSeparator")&&"boolean"!=typeof o.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return inspectString(t,o);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var c=String(t);return a?addNumericSeparator(t,c):c}if("bigint"==typeof t){var l=String(t)+"n";return a?addNumericSeparator(t,l):l}var u=void 0===o.depth?5:o.depth;if(void 0===r&&(r=0),r>=u&&u>0&&"object"==typeof t)return isArray(t)?"[Array]":"[Object]";var p=getIndent(o,r);if(void 0===n)n=[];else if(indexOf(n,t)>=0)return"[Circular]";function inspect(t,e,i){if(e&&(n=$arrSlice.call(n)).push(e),i){var a={depth:o.depth};return has(o,"quoteStyle")&&(a.quoteStyle=o.quoteStyle),inspect_(t,a,r+1,n)}return inspect_(t,o,r+1,n)}if("function"==typeof t&&!isRegExp(t)){var s=nameOf(t),f=arrObjKeys(t,inspect);return"[Function"+(s?": "+s:" (anonymous)")+"]"+(f.length>0?" { "+$join.call(f,", ")+" }":"")}if(isSymbol(t)){var y=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return"object"!=typeof t||hasShammedSymbols?y:markBoxed(y)}if(isElement(t)){for(var S="<"+$toLowerCase.call(String(t.nodeName)),g=t.attributes||[],m=0;m<g.length;m++)S+=" "+g[m].name+"="+wrapQuotes(quote(g[m].value),"double",o);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+"</"+$toLowerCase.call(String(t.nodeName))+">"}if(isArray(t)){if(0===t.length)return"[]";var b=arrObjKeys(t,inspect);return p&&!singleLineValues(b)?"["+indentedJoin(b,p)+"]":"[ "+$join.call(b,", ")+" ]"}if(isError(t)){var h=arrObjKeys(t,inspect);return"cause"in Error.prototype||!("cause"in t)||isEnumerable.call(t,"cause")?0===h.length?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(h,", ")+" }":"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+inspect(t.cause),h),", ")+" }"}if("object"==typeof t&&i){if(inspectSymbol&&"function"==typeof t[inspectSymbol]&&utilInspect)return utilInspect(t,{depth:u-r});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(isMap(t)){var d=[];return mapForEach&&mapForEach.call(t,function(e,r){d.push(inspect(r,t,!0)+" => "+inspect(e,t))}),collectionOf("Map",mapSize.call(t),d,p)}if(isSet(t)){var O=[];return setForEach&&setForEach.call(t,function(e){O.push(inspect(e,t))}),collectionOf("Set",setSize.call(t),O,p)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber(t))return markBoxed(inspect(Number(t)));if(isBigInt(t))return markBoxed(inspect(bigIntValueOf.call(t)));if(isBoolean(t))return markBoxed(booleanValueOf.call(t));if(isString(t))return markBoxed(inspect(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof global&&t===global)return"{ [object globalThis] }";if(!isDate(t)&&!isRegExp(t)){var j=arrObjKeys(t,inspect),w=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",v=!w&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):$?"Object":"",k=(w||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(v||$?"["+$join.call($concat.call([],v||[],$||[]),": ")+"] ":"");return 0===j.length?k+"{}":p?k+"{"+indentedJoin(j,p)+"}":k+"{ "+$join.call(j,", ")+" }"}return String(t)};var hasOwn=Object.prototype.hasOwnProperty||function(t){return t in this};function has(t,e){return hasOwn.call(t,e)}function toStr(t){return objectToString.call(t)}function nameOf(t){if(t.name)return t.name;var e=$match.call(functionToString.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function indexOf(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function isMap(t){if(!mapSize||!t||"object"!=typeof t)return!1;try{mapSize.call(t);try{setSize.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}function isWeakMap(t){if(!weakMapHas||!t||"object"!=typeof t)return!1;try{weakMapHas.call(t,weakMapHas);try{weakSetHas.call(t,weakSetHas)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}function isWeakRef(t){if(!weakRefDeref||!t||"object"!=typeof t)return!1;try{return weakRefDeref.call(t),!0}catch(t){}return!1}function isSet(t){if(!setSize||!t||"object"!=typeof t)return!1;try{setSize.call(t);try{mapSize.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}function isWeakSet(t){if(!weakSetHas||!t||"object"!=typeof t)return!1;try{weakSetHas.call(t,weakSetHas);try{weakMapHas.call(t,weakMapHas)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}function isElement(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}function inspectString(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return inspectString($slice.call(t,0,e.maxStringLength),e)+n}var o=quoteREs[e.quoteStyle||"single"];return o.lastIndex=0,wrapQuotes($replace.call($replace.call(t,o,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",e)}function lowbyte(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$toUpperCase.call(e.toString(16))}function markBoxed(t){return"Object("+t+")"}function weakCollectionOf(t){return t+" { ? }"}function collectionOf(t,e,r,n){return t+" ("+e+") {"+(n?indentedJoin(r,n):$join.call(r,", "))+"}"}function singleLineValues(t){for(var e=0;e<t.length;e++)if(indexOf(t[e],"\n")>=0)return!1;return!0}function getIndent(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=$join.call(Array(t.indent+1)," ")}return{base:r,prev:$join.call(Array(e+1),r)}}function indentedJoin(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+$join.call(t,","+r)+"\n"+e.prev}function arrObjKeys(t,e){var r=isArray(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=has(t,o)?e(t[o],t):""}var i,a="function"==typeof gOPS?gOPS(t):[];if(hasShammedSymbols){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)has(t,l)&&(r&&String(Number(l))===l&&l<t.length||hasShammedSymbols&&i["$"+l]instanceof Symbol||($test.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if("function"==typeof gOPS)for(var u=0;u<a.length;u++)isEnumerable.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}
1977
129
 
1978
- /*
1979
- * This function traverses the list returning the node corresponding to the
1980
- * given key.
1981
- *
1982
- * That node is also moved to the head of the list, so that if it's accessed
1983
- * again we don't need to traverse the whole list. By doing so, all the recently
1984
- * used nodes can be accessed relatively quickly.
1985
- */
1986
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
1987
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
1988
- if (curr.key === key) {
1989
- prev.next = curr.next;
1990
- curr.next = list.next;
1991
- list.next = curr; // eslint-disable-line no-param-reassign
1992
- return curr;
1993
- }
1994
- }
1995
- };
130
+ }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
131
+ },{"6":6}],43:[function(require,module,exports){
132
+ "use strict";var inspect=require(42),$TypeError=require(20),listGetNode=function(e,t,n){for(var i,r=e;null!=(i=r.next);r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},listGet=function(e,t){if(e){var n=listGetNode(e,t);return n&&n.value}},listSet=function(e,t,n){var i=listGetNode(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}},listHas=function(e,t){return!!e&&!!listGetNode(e,t)},listDelete=function(e,t){if(e)return listGetNode(e,t,!0)};module.exports=function getSideChannelList(){var e,t={assert:function(e){if(!t.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},delete:function(t){var n=listDelete(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return listGet(e,t)},has:function(t){return listHas(e,t)},set:function(t,n){e||(e={next:void 0}),listSet(e,t,n)}};return t};
1996
133
 
1997
- var listGet = function (objects, key) {
1998
- var node = listGetNode(objects, key);
1999
- return node && node.value;
2000
- };
2001
- var listSet = function (objects, key, value) {
2002
- var node = listGetNode(objects, key);
2003
- if (node) {
2004
- node.value = value;
2005
- } else {
2006
- // Prepend the new node to the beginning of the list
2007
- objects.next = { // eslint-disable-line no-param-reassign
2008
- key: key,
2009
- next: objects.next,
2010
- value: value
2011
- };
2012
- }
2013
- };
2014
- var listHas = function (objects, key) {
2015
- return !!listGetNode(objects, key);
2016
- };
134
+ },{"20":20,"42":42}],44:[function(require,module,exports){
135
+ "use strict";var GetIntrinsic=require(25),callBound=require(12),inspect=require(42),$TypeError=require(20),$Map=GetIntrinsic("%Map%",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),$mapDelete=callBound("Map.prototype.delete",!0),$mapSize=callBound("Map.prototype.size",!0);module.exports=!!$Map&&function getSideChannelMap(){var e,t={assert:function(e){if(!t.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},delete:function(t){if(e){var n=$mapDelete(e,t);return 0===$mapSize(e)&&(e=void 0),n}return!1},get:function(t){if(e)return $mapGet(e,t)},has:function(t){return!!e&&$mapHas(e,t)},set:function(t,n){e||(e=new $Map),$mapSet(e,t,n)}};return t};
2017
136
 
2018
- module.exports = function getSideChannel() {
2019
- var $wm;
2020
- var $m;
2021
- var $o;
2022
- var channel = {
2023
- assert: function (key) {
2024
- if (!channel.has(key)) {
2025
- throw new $TypeError('Side channel does not contain ' + inspect(key));
2026
- }
2027
- },
2028
- get: function (key) { // eslint-disable-line consistent-return
2029
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2030
- if ($wm) {
2031
- return $weakMapGet($wm, key);
2032
- }
2033
- } else if ($Map) {
2034
- if ($m) {
2035
- return $mapGet($m, key);
2036
- }
2037
- } else {
2038
- if ($o) { // eslint-disable-line no-lonely-if
2039
- return listGet($o, key);
2040
- }
2041
- }
2042
- },
2043
- has: function (key) {
2044
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2045
- if ($wm) {
2046
- return $weakMapHas($wm, key);
2047
- }
2048
- } else if ($Map) {
2049
- if ($m) {
2050
- return $mapHas($m, key);
2051
- }
2052
- } else {
2053
- if ($o) { // eslint-disable-line no-lonely-if
2054
- return listHas($o, key);
2055
- }
2056
- }
2057
- return false;
2058
- },
2059
- set: function (key, value) {
2060
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2061
- if (!$wm) {
2062
- $wm = new $WeakMap();
2063
- }
2064
- $weakMapSet($wm, key, value);
2065
- } else if ($Map) {
2066
- if (!$m) {
2067
- $m = new $Map();
2068
- }
2069
- $mapSet($m, key, value);
2070
- } else {
2071
- if (!$o) {
2072
- /*
2073
- * Initialize the linked list as an empty node, so that we don't have
2074
- * to special-case handling of the first node: we can always refer to
2075
- * it as (previous node).next, instead of something like (list).head
2076
- */
2077
- $o = { key: {}, next: null };
2078
- }
2079
- listSet($o, key, value);
2080
- }
2081
- }
2082
- };
2083
- return channel;
2084
- };
137
+ },{"12":12,"20":20,"25":25,"42":42}],45:[function(require,module,exports){
138
+ "use strict";var GetIntrinsic=require(25),callBound=require(12),inspect=require(42),getSideChannelMap=require(44),$TypeError=require(20),$WeakMap=GetIntrinsic("%WeakMap%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$weakMapDelete=callBound("WeakMap.prototype.delete",!0);module.exports=$WeakMap?function getSideChannelWeakMap(){var e,t,a={assert:function(e){if(!a.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},delete:function(a){if($WeakMap&&a&&("object"==typeof a||"function"==typeof a)){if(e)return $weakMapDelete(e,a)}else if(getSideChannelMap&&t)return t.delete(a);return!1},get:function(a){return $WeakMap&&a&&("object"==typeof a||"function"==typeof a)&&e?$weakMapGet(e,a):t&&t.get(a)},has:function(a){return $WeakMap&&a&&("object"==typeof a||"function"==typeof a)&&e?$weakMapHas(e,a):!!t&&t.has(a)},set:function(a,n){$WeakMap&&a&&("object"==typeof a||"function"==typeof a)?(e||(e=new $WeakMap),$weakMapSet(e,a,n)):getSideChannelMap&&(t||(t=getSideChannelMap()),t.set(a,n))}};return a}:getSideChannelMap;
2085
139
 
2086
- },{"call-bind/callBound":7,"get-intrinsic":11,"object-inspect":16}]},{},[2])(2)
140
+ },{"12":12,"20":20,"25":25,"42":42,"44":44}]},{},[2])(2)
2087
141
  });