extra-request 4.0.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
9
- var es2018$2 = {};
9
+ var es2018$7 = {};
10
10
 
11
11
  var fetch_browser = {};
12
12
 
@@ -38,11 +38,6 @@
38
38
  abortController_browser.AbortController = void 0;
39
39
  abortController_browser.AbortController = globalThis.AbortController;
40
40
 
41
- var abortError_browser = {};
42
-
43
- abortError_browser.AbortError = void 0;
44
- abortError_browser.AbortError = globalThis.DOMException;
45
-
46
41
  var blob_browser = {};
47
42
 
48
43
  blob_browser.Blob = void 0;
@@ -69,199 +64,198 @@
69
64
  __exportStar(response_browser, exports);
70
65
  __exportStar(formData_browser, exports);
71
66
  __exportStar(abortController_browser, exports);
72
- __exportStar(abortError_browser, exports);
73
67
  __exportStar(blob_browser, exports);
74
68
  __exportStar(eventSource_browser, exports);
75
69
 
76
- }(es2018$2));
70
+ }(es2018$7));
77
71
 
78
- var es2018$1 = {};
72
+ var es2018$6 = {};
79
73
 
80
- var array = {};
74
+ var array$1 = {};
81
75
 
82
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
83
- function isArray(val) {
76
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
77
+ function isArray$1(val) {
84
78
  return Array.isArray(val);
85
79
  }
86
- array.isArray = isArray;
87
- function isntArray(val) {
88
- return !isArray(val);
80
+ array$1.isArray = isArray$1;
81
+ function isntArray$1(val) {
82
+ return !isArray$1(val);
89
83
  }
90
- array.isntArray = isntArray;
91
- function isEmptyArray(val) {
84
+ array$1.isntArray = isntArray$1;
85
+ function isEmptyArray$1(val) {
92
86
  return val.length === 0;
93
87
  }
94
- array.isEmptyArray = isEmptyArray;
95
- function isntEmptyArray(val) {
88
+ array$1.isEmptyArray = isEmptyArray$1;
89
+ function isntEmptyArray$1(val) {
96
90
  return val.length !== 0;
97
91
  }
98
- array.isntEmptyArray = isntEmptyArray;
92
+ array$1.isntEmptyArray = isntEmptyArray$1;
99
93
 
100
- var asyncIterable = {};
94
+ var asyncIterable$1 = {};
101
95
 
102
- var _null = {};
96
+ var _null$1 = {};
103
97
 
104
- _null.isntNull = _null.isNull = void 0;
105
- function isNull(val) {
98
+ _null$1.isntNull = _null$1.isNull = void 0;
99
+ function isNull$1(val) {
106
100
  return val === null;
107
101
  }
108
- _null.isNull = isNull;
109
- function isntNull(val) {
110
- return !isNull(val);
102
+ _null$1.isNull = isNull$1;
103
+ function isntNull$1(val) {
104
+ return !isNull$1(val);
111
105
  }
112
- _null.isntNull = isntNull;
106
+ _null$1.isntNull = isntNull$1;
113
107
 
114
- var _undefined = {};
108
+ var _undefined$1 = {};
115
109
 
116
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
117
- function isUndefined(val) {
110
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
111
+ function isUndefined$1(val) {
118
112
  return val === undefined;
119
113
  }
120
- _undefined.isUndefined = isUndefined;
121
- function isntUndefined(val) {
122
- return !isUndefined(val);
114
+ _undefined$1.isUndefined = isUndefined$1;
115
+ function isntUndefined$1(val) {
116
+ return !isUndefined$1(val);
123
117
  }
124
- _undefined.isntUndefined = isntUndefined;
118
+ _undefined$1.isntUndefined = isntUndefined$1;
125
119
 
126
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
127
- const null_1$1 = _null;
128
- const undefined_1$2 = _undefined;
129
- function isAsyncIterable(val) {
130
- return (0, null_1$1.isntNull)(val)
131
- && (0, undefined_1$2.isntUndefined)(val)
120
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
121
+ const null_1$3 = _null$1;
122
+ const undefined_1$5 = _undefined$1;
123
+ function isAsyncIterable$1(val) {
124
+ return (0, null_1$3.isntNull)(val)
125
+ && (0, undefined_1$5.isntUndefined)(val)
132
126
  && typeof val[Symbol.asyncIterator] === 'function';
133
127
  }
134
- asyncIterable.isAsyncIterable = isAsyncIterable;
135
- function isntAsyncIterable(val) {
136
- return !isAsyncIterable(val);
128
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
129
+ function isntAsyncIterable$1(val) {
130
+ return !isAsyncIterable$1(val);
137
131
  }
138
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
132
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
139
133
 
140
- var bigint = {};
134
+ var bigint$1 = {};
141
135
 
142
- bigint.isntBigInt = bigint.isBigInt = void 0;
143
- function isBigInt(val) {
136
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
137
+ function isBigInt$1(val) {
144
138
  return typeof val === 'bigint';
145
139
  }
146
- bigint.isBigInt = isBigInt;
147
- function isntBigInt(val) {
148
- return !isBigInt(val);
140
+ bigint$1.isBigInt = isBigInt$1;
141
+ function isntBigInt$1(val) {
142
+ return !isBigInt$1(val);
149
143
  }
150
- bigint.isntBigInt = isntBigInt;
144
+ bigint$1.isntBigInt = isntBigInt$1;
151
145
 
152
- var boolean = {};
146
+ var boolean$1 = {};
153
147
 
154
- boolean.isntBoolean = boolean.isBoolean = void 0;
155
- function isBoolean(val) {
148
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
149
+ function isBoolean$1(val) {
156
150
  return typeof val === 'boolean';
157
151
  }
158
- boolean.isBoolean = isBoolean;
159
- function isntBoolean(val) {
160
- return !isBoolean(val);
152
+ boolean$1.isBoolean = isBoolean$1;
153
+ function isntBoolean$1(val) {
154
+ return !isBoolean$1(val);
161
155
  }
162
- boolean.isntBoolean = isntBoolean;
156
+ boolean$1.isntBoolean = isntBoolean$1;
163
157
 
164
- var char = {};
158
+ var char$1 = {};
165
159
 
166
- var string = {};
160
+ var string$1 = {};
167
161
 
168
- string.isntString = string.isString = void 0;
169
- function isString(val) {
162
+ string$1.isntString = string$1.isString = void 0;
163
+ function isString$1(val) {
170
164
  return typeof val === 'string';
171
165
  }
172
- string.isString = isString;
173
- function isntString(val) {
174
- return !isString(val);
166
+ string$1.isString = isString$1;
167
+ function isntString$1(val) {
168
+ return !isString$1(val);
175
169
  }
176
- string.isntString = isntString;
170
+ string$1.isntString = isntString$1;
177
171
 
178
- char.isntChar = char.isChar = void 0;
179
- const string_1$1 = string;
180
- function isChar(val) {
181
- return (0, string_1$1.isString)(val)
172
+ char$1.isntChar = char$1.isChar = void 0;
173
+ const string_1$3 = string$1;
174
+ function isChar$1(val) {
175
+ return (0, string_1$3.isString)(val)
182
176
  && val.length === 1;
183
177
  }
184
- char.isChar = isChar;
185
- function isntChar(val) {
186
- return !isChar(val);
178
+ char$1.isChar = isChar$1;
179
+ function isntChar$1(val) {
180
+ return !isChar$1(val);
187
181
  }
188
- char.isntChar = isntChar;
182
+ char$1.isntChar = isntChar$1;
189
183
 
190
- var date = {};
184
+ var date$1 = {};
191
185
 
192
- date.isntDate = date.isDate = void 0;
193
- function isDate(val) {
186
+ date$1.isntDate = date$1.isDate = void 0;
187
+ function isDate$1(val) {
194
188
  return val instanceof Date;
195
189
  }
196
- date.isDate = isDate;
197
- function isntDate(val) {
198
- return !isDate(val);
190
+ date$1.isDate = isDate$1;
191
+ function isntDate$1(val) {
192
+ return !isDate$1(val);
199
193
  }
200
- date.isntDate = isntDate;
194
+ date$1.isntDate = isntDate$1;
201
195
 
202
- var _enum = {};
196
+ var _enum$1 = {};
203
197
 
204
- _enum.inEnum = void 0;
205
- function inEnum(val, _enum) {
198
+ _enum$1.inEnum = void 0;
199
+ function inEnum$1(val, _enum) {
206
200
  return Object.values(_enum).includes(val);
207
201
  }
208
- _enum.inEnum = inEnum;
202
+ _enum$1.inEnum = inEnum$1;
209
203
 
210
- var error = {};
204
+ var error$1 = {};
211
205
 
212
- error.isntError = error.isError = void 0;
213
- function isError(val) {
206
+ error$1.isntError = error$1.isError = void 0;
207
+ function isError$1(val) {
214
208
  return val instanceof Error;
215
209
  }
216
- error.isError = isError;
217
- function isntError(val) {
218
- return !isError(val);
210
+ error$1.isError = isError$1;
211
+ function isntError$1(val) {
212
+ return !isError$1(val);
219
213
  }
220
- error.isntError = isntError;
214
+ error$1.isntError = isntError$1;
221
215
 
222
- var falsy = {};
216
+ var falsy$1 = {};
223
217
 
224
- falsy.isntFalsy = falsy.isFalsy = void 0;
225
- function isFalsy(val) {
218
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
219
+ function isFalsy$1(val) {
226
220
  return !val;
227
221
  }
228
- falsy.isFalsy = isFalsy;
229
- function isntFalsy(val) {
230
- return !isFalsy(val);
222
+ falsy$1.isFalsy = isFalsy$1;
223
+ function isntFalsy$1(val) {
224
+ return !isFalsy$1(val);
231
225
  }
232
- falsy.isntFalsy = isntFalsy;
226
+ falsy$1.isntFalsy = isntFalsy$1;
233
227
 
234
- var _function = {};
228
+ var _function$1 = {};
235
229
 
236
- _function.isntFunction = _function.isFunction = void 0;
237
- function isFunction(val) {
230
+ _function$1.isntFunction = _function$1.isFunction = void 0;
231
+ function isFunction$1(val) {
238
232
  return typeof val === 'function';
239
233
  }
240
- _function.isFunction = isFunction;
241
- function isntFunction(val) {
242
- return !isFunction(val);
234
+ _function$1.isFunction = isFunction$1;
235
+ function isntFunction$1(val) {
236
+ return !isFunction$1(val);
243
237
  }
244
- _function.isntFunction = isntFunction;
238
+ _function$1.isntFunction = isntFunction$1;
245
239
 
246
- var iterable = {};
240
+ var iterable$1 = {};
247
241
 
248
- iterable.isntIterable = iterable.isIterable = void 0;
249
- const null_1 = _null;
250
- const undefined_1$1 = _undefined;
251
- function isIterable(val) {
252
- return (0, null_1.isntNull)(val)
253
- && (0, undefined_1$1.isntUndefined)(val)
242
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
243
+ const null_1$2 = _null$1;
244
+ const undefined_1$4 = _undefined$1;
245
+ function isIterable$1(val) {
246
+ return (0, null_1$2.isntNull)(val)
247
+ && (0, undefined_1$4.isntUndefined)(val)
254
248
  && typeof val[Symbol.iterator] === 'function';
255
249
  }
256
- iterable.isIterable = isIterable;
257
- function isntIterable(val) {
258
- return !isIterable(val);
250
+ iterable$1.isIterable = isIterable$1;
251
+ function isntIterable$1(val) {
252
+ return !isIterable$1(val);
259
253
  }
260
- iterable.isntIterable = isntIterable;
254
+ iterable$1.isntIterable = isntIterable$1;
261
255
 
262
- var jsonRpc = {};
256
+ var jsonRpc$1 = {};
263
257
 
264
- var object = {};
258
+ var object$1 = {};
265
259
 
266
260
  /**
267
261
  * lodash (Custom Build) <https://lodash.com/>
@@ -405,115 +399,115 @@
405
399
 
406
400
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
407
401
  return (mod && mod.__esModule) ? mod : { "default": mod };
408
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
402
+ };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
409
403
  const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
410
- function isObject(val) {
404
+ function isObject$1(val) {
411
405
  return val !== null
412
406
  && typeof val === 'object';
413
407
  }
414
- object.isObject = isObject;
415
- function isntObject(val) {
416
- return !isObject(val);
408
+ object$1.isObject = isObject$1;
409
+ function isntObject$1(val) {
410
+ return !isObject$1(val);
417
411
  }
418
- object.isntObject = isntObject;
412
+ object$1.isntObject = isntObject$1;
419
413
  function isPlainObject(val) {
420
414
  return (0, lodash_isplainobject_1.default)(val);
421
415
  }
422
- object.isPlainObject = isPlainObject;
416
+ object$1.isPlainObject = isPlainObject;
423
417
  function isntPlainObject(val) {
424
418
  return !isPlainObject(val);
425
419
  }
426
- object.isntPlainObject = isntPlainObject;
427
- function isEmptyObject(val) {
420
+ object$1.isntPlainObject = isntPlainObject;
421
+ function isEmptyObject$1(val) {
428
422
  return Object.keys(val).length === 0;
429
423
  }
430
- object.isEmptyObject = isEmptyObject;
431
- function isntEmptyObject(val) {
424
+ object$1.isEmptyObject = isEmptyObject$1;
425
+ function isntEmptyObject$1(val) {
432
426
  return Object.keys(val).length !== 0;
433
427
  }
434
- object.isntEmptyObject = isntEmptyObject;
428
+ object$1.isntEmptyObject = isntEmptyObject$1;
435
429
 
436
- var number = {};
430
+ var number$1 = {};
437
431
 
438
- number.isntNumber = number.isNumber = void 0;
439
- function isNumber(val) {
432
+ number$1.isntNumber = number$1.isNumber = void 0;
433
+ function isNumber$1(val) {
440
434
  return typeof val === 'number';
441
435
  }
442
- number.isNumber = isNumber;
443
- function isntNumber(val) {
444
- return !isNumber(val);
445
- }
446
- number.isntNumber = isntNumber;
447
-
448
- jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
449
- const array_1 = array;
450
- const object_1 = object;
451
- const string_1 = string;
452
- const number_1 = number;
453
- const undefined_1 = _undefined;
454
- function isJsonRpcId(val) {
455
- return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
456
- }
457
- function isJsonRpcParams(val) {
458
- return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
459
- }
460
- function isJsonRpcNotification(val) {
461
- return (0, object_1.isPlainObject)(val)
462
- && (0, string_1.isString)(val.jsonrpc)
463
- && (0, string_1.isString)(val.method)
464
- && (0, undefined_1.isUndefined)(val.id)
465
- && isJsonRpcParams(val.params);
466
- }
467
- jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
468
- function isntJsonRpcNotification(val) {
469
- return !isJsonRpcNotification(val);
470
- }
471
- jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
472
- function isJsonRpcRequest(val) {
473
- return (0, object_1.isPlainObject)(val)
474
- && (0, string_1.isString)(val.jsonrpc)
475
- && (0, string_1.isString)(val.method)
476
- && isJsonRpcId(val.id)
477
- && isJsonRpcParams(val.params);
478
- }
479
- jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
480
- function isntJsonRpcRequest(val) {
481
- return !isJsonRpcRequest(val);
482
- }
483
- jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
484
- function isJsonRpcSuccess(val) {
485
- return (0, object_1.isPlainObject)(val)
486
- && (0, string_1.isString)(val.jsonrpc)
487
- && (0, string_1.isString)(val.id)
436
+ number$1.isNumber = isNumber$1;
437
+ function isntNumber$1(val) {
438
+ return !isNumber$1(val);
439
+ }
440
+ number$1.isntNumber = isntNumber$1;
441
+
442
+ jsonRpc$1.isntJsonRpcError = jsonRpc$1.isJsonRpcError = jsonRpc$1.isntJsonRpcSuccess = jsonRpc$1.isJsonRpcSuccess = jsonRpc$1.isntJsonRpcRequest = jsonRpc$1.isJsonRpcRequest = jsonRpc$1.isntJsonRpcNotification = jsonRpc$1.isJsonRpcNotification = void 0;
443
+ const array_1$1 = array$1;
444
+ const object_1$1 = object$1;
445
+ const string_1$2 = string$1;
446
+ const number_1$1 = number$1;
447
+ const undefined_1$3 = _undefined$1;
448
+ function isJsonRpcId$1(val) {
449
+ return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
450
+ }
451
+ function isJsonRpcParams$1(val) {
452
+ return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
453
+ }
454
+ function isJsonRpcNotification$1(val) {
455
+ return (0, object_1$1.isPlainObject)(val)
456
+ && (0, string_1$2.isString)(val.jsonrpc)
457
+ && (0, string_1$2.isString)(val.method)
458
+ && (0, undefined_1$3.isUndefined)(val.id)
459
+ && isJsonRpcParams$1(val.params);
460
+ }
461
+ jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
462
+ function isntJsonRpcNotification$1(val) {
463
+ return !isJsonRpcNotification$1(val);
464
+ }
465
+ jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
466
+ function isJsonRpcRequest$1(val) {
467
+ return (0, object_1$1.isPlainObject)(val)
468
+ && (0, string_1$2.isString)(val.jsonrpc)
469
+ && (0, string_1$2.isString)(val.method)
470
+ && isJsonRpcId$1(val.id)
471
+ && isJsonRpcParams$1(val.params);
472
+ }
473
+ jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
474
+ function isntJsonRpcRequest$1(val) {
475
+ return !isJsonRpcRequest$1(val);
476
+ }
477
+ jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
478
+ function isJsonRpcSuccess$1(val) {
479
+ return (0, object_1$1.isPlainObject)(val)
480
+ && (0, string_1$2.isString)(val.jsonrpc)
481
+ && (0, string_1$2.isString)(val.id)
488
482
  && 'result' in val;
489
483
  }
490
- jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
491
- function isntJsonRpcSuccess(val) {
492
- return !isJsonRpcSuccess(val);
484
+ jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
485
+ function isntJsonRpcSuccess$1(val) {
486
+ return !isJsonRpcSuccess$1(val);
493
487
  }
494
- jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
495
- function isJsonRpcError(val) {
496
- return (0, object_1.isPlainObject)(val)
497
- && (0, string_1.isString)(val.jsonrpc)
498
- && isJsonRpcId(val.id)
499
- && isJsonRpcErrorObject(val.error);
488
+ jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
489
+ function isJsonRpcError$1(val) {
490
+ return (0, object_1$1.isPlainObject)(val)
491
+ && (0, string_1$2.isString)(val.jsonrpc)
492
+ && isJsonRpcId$1(val.id)
493
+ && isJsonRpcErrorObject$1(val.error);
500
494
  }
501
- jsonRpc.isJsonRpcError = isJsonRpcError;
502
- function isntJsonRpcError(val) {
503
- return !isJsonRpcError(val);
495
+ jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
496
+ function isntJsonRpcError$1(val) {
497
+ return !isJsonRpcError$1(val);
504
498
  }
505
- jsonRpc.isntJsonRpcError = isntJsonRpcError;
506
- function isJsonRpcErrorObject(val) {
507
- return (0, object_1.isPlainObject)(val)
508
- && (0, number_1.isNumber)(val.code)
509
- && (0, string_1.isString)(val.message)
510
- && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
499
+ jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
500
+ function isJsonRpcErrorObject$1(val) {
501
+ return (0, object_1$1.isPlainObject)(val)
502
+ && (0, number_1$1.isNumber)(val.code)
503
+ && (0, string_1$2.isString)(val.message)
504
+ && ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
511
505
  }
512
506
 
513
- var json$1 = {};
507
+ var json$2 = {};
514
508
 
515
- json$1.isntJson = json$1.isJson = void 0;
516
- function isJson(val) {
509
+ json$2.isntJson = json$2.isJson = void 0;
510
+ function isJson$1(val) {
517
511
  try {
518
512
  JSON.stringify(val);
519
513
  return true;
@@ -522,16 +516,16 @@
522
516
  return false;
523
517
  }
524
518
  }
525
- json$1.isJson = isJson;
526
- function isntJson(val) {
527
- return !isntJson();
519
+ json$2.isJson = isJson$1;
520
+ function isntJson$1(val) {
521
+ return !isntJson$1();
528
522
  }
529
- json$1.isntJson = isntJson;
523
+ json$2.isntJson = isntJson$1;
530
524
 
531
- var url$1 = {};
525
+ var url$2 = {};
532
526
 
533
- url$1.isAbsoluteURL = void 0;
534
- function isAbsoluteURL(str) {
527
+ url$2.isAbsoluteURL = void 0;
528
+ function isAbsoluteURL$1(str) {
535
529
  try {
536
530
  new URL(str);
537
531
  return true;
@@ -540,7 +534,7 @@
540
534
  return false;
541
535
  }
542
536
  }
543
- url$1.isAbsoluteURL = isAbsoluteURL;
537
+ url$2.isAbsoluteURL = isAbsoluteURL$1;
544
538
 
545
539
  (function (exports) {
546
540
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -552,27 +546,27 @@
552
546
  }));
553
547
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
554
548
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
555
- };__exportStar(array, exports);
556
- __exportStar(asyncIterable, exports);
557
- __exportStar(bigint, exports);
558
- __exportStar(boolean, exports);
559
- __exportStar(char, exports);
560
- __exportStar(date, exports);
561
- __exportStar(_enum, exports);
562
- __exportStar(error, exports);
563
- __exportStar(falsy, exports);
564
- __exportStar(_function, exports);
565
- __exportStar(iterable, exports);
566
- __exportStar(jsonRpc, exports);
567
- __exportStar(json$1, exports);
568
- __exportStar(_null, exports);
569
- __exportStar(number, exports);
570
- __exportStar(object, exports);
571
- __exportStar(string, exports);
572
- __exportStar(_undefined, exports);
573
- __exportStar(url$1, exports);
574
-
575
- }(es2018$1));
549
+ };__exportStar(array$1, exports);
550
+ __exportStar(asyncIterable$1, exports);
551
+ __exportStar(bigint$1, exports);
552
+ __exportStar(boolean$1, exports);
553
+ __exportStar(char$1, exports);
554
+ __exportStar(date$1, exports);
555
+ __exportStar(_enum$1, exports);
556
+ __exportStar(error$1, exports);
557
+ __exportStar(falsy$1, exports);
558
+ __exportStar(_function$1, exports);
559
+ __exportStar(iterable$1, exports);
560
+ __exportStar(jsonRpc$1, exports);
561
+ __exportStar(json$2, exports);
562
+ __exportStar(_null$1, exports);
563
+ __exportStar(number$1, exports);
564
+ __exportStar(object$1, exports);
565
+ __exportStar(string$1, exports);
566
+ __exportStar(_undefined$1, exports);
567
+ __exportStar(url$2, exports);
568
+
569
+ }(es2018$6));
576
570
 
577
571
  function get(...transformers) {
578
572
  return request('GET', ...transformers);
@@ -593,12 +587,12 @@
593
587
  return request('DELETE', ...transformers);
594
588
  }
595
589
  function request(method, ...transformers) {
596
- const options = transformers.reduce((options, trans) => es2018$1.isFunction(trans) ? trans(options) : options, {
590
+ const options = transformers.reduce((options, trans) => es2018$6.isFunction(trans) ? trans(options) : options, {
597
591
  url: new URL('http://localhost'),
598
- headers: new es2018$2.Headers()
592
+ headers: new es2018$7.Headers()
599
593
  });
600
- const headers = new es2018$2.Headers(options.headers);
601
- return new es2018$2.Request(options.url.href, {
594
+ const headers = new es2018$7.Headers(options.headers);
595
+ return new es2018$7.Request(options.url.href, {
602
596
  method,
603
597
  headers,
604
598
  signal: options.signal,
@@ -607,7 +601,7 @@
607
601
  });
608
602
  }
609
603
 
610
- function url(...urls) {
604
+ function url$1(...urls) {
611
605
  return (options) => {
612
606
  const url = new URL(urls.reduce((acc, cur) => new URL(cur, acc).href));
613
607
  return {
@@ -619,7 +613,7 @@
619
613
 
620
614
  function text(payload) {
621
615
  return (options) => {
622
- const headers = new es2018$2.Headers(options.headers);
616
+ const headers = new es2018$7.Headers(options.headers);
623
617
  headers.set('Content-Type', 'application/x-www-form-urlencoded');
624
618
  return {
625
619
  ...options,
@@ -629,9 +623,9 @@
629
623
  };
630
624
  }
631
625
 
632
- function json(payload) {
626
+ function json$1(payload) {
633
627
  return (options) => {
634
- const headers = new es2018$2.Headers(options.headers);
628
+ const headers = new es2018$7.Headers(options.headers);
635
629
  headers.set('Content-Type', 'application/json');
636
630
  return {
637
631
  ...options,
@@ -654,38 +648,72 @@
654
648
  !function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);"boolean"==typeof t.escapeFormulae&&(o=t.escapeFormulae);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===o&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var i=e.toString().replace(h,a),r="boolean"==typeof n&&n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1);return r?s+i+s:i}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){if(c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines)for(var e=0;e<c.data.length;e++)y(c.data[e])&&c.data.splice(e--,1);return _()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r[m+1+y]===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
655
649
  }(papaparse_min));
656
650
 
657
- var es2018 = {};
651
+ var es2018$5 = {};
652
+
653
+ var customError$1 = {};
654
+
655
+ var es2018$4 = {};
656
+
657
+ var middleware = {};
658
+
659
+ var chunkAsync$1 = {};
660
+
661
+ var es2018$3 = {};
662
+
663
+ var go$1 = {};
664
+
665
+ go$1.go = void 0;
666
+ function go(fn) {
667
+ return fn();
668
+ }
669
+ go$1.go = go;
670
+
671
+ (function (exports) {
672
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
673
+ if (k2 === undefined) k2 = k;
674
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
675
+ }) : (function(o, m, k, k2) {
676
+ if (k2 === undefined) k2 = k;
677
+ o[k2] = m[k];
678
+ }));
679
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
680
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
681
+ };__exportStar(go$1, exports);
682
+
683
+ }(es2018$3));
684
+
685
+ var es2018$2 = {};
658
686
 
659
687
  var customError = {};
660
688
 
661
689
  customError.CustomError = void 0;
662
- class CustomError extends Error {
690
+ class CustomError$1 extends Error {
663
691
  get name() {
664
692
  return this.constructor.name;
665
693
  }
666
694
  }
667
- customError.CustomError = CustomError;
695
+ customError.CustomError = CustomError$1;
668
696
 
669
697
  var expectedError = {};
670
698
 
671
699
  expectedError.ExpectedError = void 0;
672
- const custom_error_1$1 = customError;
673
- class ExpectedError extends custom_error_1$1.CustomError {
700
+ const custom_error_1$2 = customError;
701
+ class ExpectedError extends custom_error_1$2.CustomError {
674
702
  }
675
703
  expectedError.ExpectedError = ExpectedError;
676
704
 
677
- var assertionError = {};
705
+ var assertionError$1 = {};
678
706
 
679
- assertionError.AssertionError = void 0;
680
- const custom_error_1 = customError;
681
- class AssertionError extends custom_error_1.CustomError {
707
+ assertionError$1.AssertionError = void 0;
708
+ const custom_error_1$1 = customError;
709
+ class AssertionError$1 extends custom_error_1$1.CustomError {
682
710
  }
683
- assertionError.AssertionError = AssertionError;
711
+ assertionError$1.AssertionError = AssertionError$1;
684
712
 
685
- var normalize$1 = {};
713
+ var normalize$3 = {};
686
714
 
687
- normalize$1.normalize = void 0;
688
- function normalize(err) {
715
+ normalize$3.normalize = void 0;
716
+ function normalize$2(err) {
689
717
  var _a;
690
718
  return {
691
719
  name: err.name,
@@ -693,7 +721,7 @@
693
721
  stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
694
722
  };
695
723
  }
696
- normalize$1.normalize = normalize;
724
+ normalize$3.normalize = normalize$2;
697
725
 
698
726
  var refute$1 = {};
699
727
 
@@ -705,15 +733,15 @@
705
733
  }
706
734
  refute$1.refute = refute;
707
735
 
708
- var assert$1 = {};
736
+ var assert$3 = {};
709
737
 
710
- assert$1.assert = void 0;
711
- const assertion_error_1 = assertionError;
712
- function assert(condition, message) {
738
+ assert$3.assert = void 0;
739
+ const assertion_error_1$1 = assertionError$1;
740
+ function assert$2(condition, message) {
713
741
  if (!condition)
714
- throw new assertion_error_1.AssertionError(message);
742
+ throw new assertion_error_1$1.AssertionError(message);
715
743
  }
716
- assert$1.assert = assert;
744
+ assert$3.assert = assert$2;
717
745
 
718
746
  (function (exports) {
719
747
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -727,17 +755,2309 @@
727
755
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
728
756
  };__exportStar(customError, exports);
729
757
  __exportStar(expectedError, exports);
730
- __exportStar(assertionError, exports);
731
- __exportStar(normalize$1, exports);
758
+ __exportStar(assertionError$1, exports);
759
+ __exportStar(normalize$3, exports);
732
760
  __exportStar(refute$1, exports);
733
- __exportStar(assert$1, exports);
761
+ __exportStar(assert$3, exports);
734
762
 
735
- }(es2018));
763
+ }(es2018$2));
764
+
765
+ chunkAsync$1.chunkAsync = void 0;
766
+ const go_1$f = es2018$3;
767
+ const errors_1$f = es2018$2;
768
+ function chunkAsync(iterable, size) {
769
+ (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
770
+ (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
771
+ return (0, go_1$f.go)(async function* () {
772
+ let buffer = [];
773
+ for await (const element of iterable) {
774
+ buffer.push(element);
775
+ if (buffer.length >= size) {
776
+ yield buffer;
777
+ buffer = [];
778
+ }
779
+ }
780
+ if (buffer.length)
781
+ yield buffer;
782
+ });
783
+ }
784
+ chunkAsync$1.chunkAsync = chunkAsync;
785
+
786
+ var chunkByAsync$1 = {};
787
+
788
+ var es2018$1 = {};
789
+
790
+ var array = {};
791
+
792
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
793
+ function isArray(val) {
794
+ return Array.isArray(val);
795
+ }
796
+ array.isArray = isArray;
797
+ function isntArray(val) {
798
+ return !isArray(val);
799
+ }
800
+ array.isntArray = isntArray;
801
+ function isEmptyArray(val) {
802
+ return val.length === 0;
803
+ }
804
+ array.isEmptyArray = isEmptyArray;
805
+ function isntEmptyArray(val) {
806
+ return val.length !== 0;
807
+ }
808
+ array.isntEmptyArray = isntEmptyArray;
809
+
810
+ var asyncIterable = {};
811
+
812
+ var _null = {};
813
+
814
+ _null.isntNull = _null.isNull = void 0;
815
+ function isNull(val) {
816
+ return val === null;
817
+ }
818
+ _null.isNull = isNull;
819
+ function isntNull(val) {
820
+ return !isNull(val);
821
+ }
822
+ _null.isntNull = isntNull;
823
+
824
+ var _undefined = {};
825
+
826
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
827
+ function isUndefined(val) {
828
+ return val === undefined;
829
+ }
830
+ _undefined.isUndefined = isUndefined;
831
+ function isntUndefined(val) {
832
+ return !isUndefined(val);
833
+ }
834
+ _undefined.isntUndefined = isntUndefined;
835
+
836
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
837
+ const null_1$1 = _null;
838
+ const undefined_1$2 = _undefined;
839
+ function isAsyncIterable(val) {
840
+ return (0, null_1$1.isntNull)(val)
841
+ && (0, undefined_1$2.isntUndefined)(val)
842
+ && typeof val[Symbol.asyncIterator] === 'function';
843
+ }
844
+ asyncIterable.isAsyncIterable = isAsyncIterable;
845
+ function isntAsyncIterable(val) {
846
+ return !isAsyncIterable(val);
847
+ }
848
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
849
+
850
+ var bigint = {};
851
+
852
+ bigint.isntBigInt = bigint.isBigInt = void 0;
853
+ function isBigInt(val) {
854
+ return typeof val === 'bigint';
855
+ }
856
+ bigint.isBigInt = isBigInt;
857
+ function isntBigInt(val) {
858
+ return !isBigInt(val);
859
+ }
860
+ bigint.isntBigInt = isntBigInt;
861
+
862
+ var boolean = {};
863
+
864
+ boolean.isntBoolean = boolean.isBoolean = void 0;
865
+ function isBoolean(val) {
866
+ return typeof val === 'boolean';
867
+ }
868
+ boolean.isBoolean = isBoolean;
869
+ function isntBoolean(val) {
870
+ return !isBoolean(val);
871
+ }
872
+ boolean.isntBoolean = isntBoolean;
873
+
874
+ var char = {};
875
+
876
+ var string = {};
877
+
878
+ string.isntString = string.isString = void 0;
879
+ function isString(val) {
880
+ return typeof val === 'string';
881
+ }
882
+ string.isString = isString;
883
+ function isntString(val) {
884
+ return !isString(val);
885
+ }
886
+ string.isntString = isntString;
887
+
888
+ char.isntChar = char.isChar = void 0;
889
+ const string_1$1 = string;
890
+ function isChar(val) {
891
+ return (0, string_1$1.isString)(val)
892
+ && val.length === 1;
893
+ }
894
+ char.isChar = isChar;
895
+ function isntChar(val) {
896
+ return !isChar(val);
897
+ }
898
+ char.isntChar = isntChar;
899
+
900
+ var date = {};
901
+
902
+ date.isntDate = date.isDate = void 0;
903
+ function isDate(val) {
904
+ return val instanceof Date;
905
+ }
906
+ date.isDate = isDate;
907
+ function isntDate(val) {
908
+ return !isDate(val);
909
+ }
910
+ date.isntDate = isntDate;
911
+
912
+ var _enum = {};
913
+
914
+ _enum.inEnum = void 0;
915
+ function inEnum(val, _enum) {
916
+ return Object.values(_enum).includes(val);
917
+ }
918
+ _enum.inEnum = inEnum;
919
+
920
+ var error = {};
921
+
922
+ error.isntError = error.isError = void 0;
923
+ function isError(val) {
924
+ return val instanceof Error;
925
+ }
926
+ error.isError = isError;
927
+ function isntError(val) {
928
+ return !isError(val);
929
+ }
930
+ error.isntError = isntError;
931
+
932
+ var falsy = {};
933
+
934
+ falsy.isntFalsy = falsy.isFalsy = void 0;
935
+ function isFalsy(val) {
936
+ return !val;
937
+ }
938
+ falsy.isFalsy = isFalsy;
939
+ function isntFalsy(val) {
940
+ return !isFalsy(val);
941
+ }
942
+ falsy.isntFalsy = isntFalsy;
943
+
944
+ var _function = {};
945
+
946
+ _function.isntFunction = _function.isFunction = void 0;
947
+ function isFunction(val) {
948
+ return typeof val === 'function';
949
+ }
950
+ _function.isFunction = isFunction;
951
+ function isntFunction(val) {
952
+ return !isFunction(val);
953
+ }
954
+ _function.isntFunction = isntFunction;
955
+
956
+ var iterable = {};
957
+
958
+ iterable.isntIterable = iterable.isIterable = void 0;
959
+ const null_1 = _null;
960
+ const undefined_1$1 = _undefined;
961
+ function isIterable(val) {
962
+ return (0, null_1.isntNull)(val)
963
+ && (0, undefined_1$1.isntUndefined)(val)
964
+ && typeof val[Symbol.iterator] === 'function';
965
+ }
966
+ iterable.isIterable = isIterable;
967
+ function isntIterable(val) {
968
+ return !isIterable(val);
969
+ }
970
+ iterable.isntIterable = isntIterable;
971
+
972
+ var jsonRpc = {};
973
+
974
+ var object = {};
975
+
976
+ object.isntEmptyObject = object.isEmptyObject = object.isRecord = object.isntObject = object.isObject = void 0;
977
+ function isObject(val) {
978
+ return val !== null && typeof val === 'object';
979
+ }
980
+ object.isObject = isObject;
981
+ function isntObject(val) {
982
+ return !isObject(val);
983
+ }
984
+ object.isntObject = isntObject;
985
+ function isRecord(val) {
986
+ return isObject(val);
987
+ }
988
+ object.isRecord = isRecord;
989
+ function isEmptyObject(val) {
990
+ return Object.keys(val).length === 0;
991
+ }
992
+ object.isEmptyObject = isEmptyObject;
993
+ function isntEmptyObject(val) {
994
+ return Object.keys(val).length !== 0;
995
+ }
996
+ object.isntEmptyObject = isntEmptyObject;
997
+
998
+ var number = {};
999
+
1000
+ number.isntNumber = number.isNumber = void 0;
1001
+ function isNumber(val) {
1002
+ return typeof val === 'number';
1003
+ }
1004
+ number.isNumber = isNumber;
1005
+ function isntNumber(val) {
1006
+ return !isNumber(val);
1007
+ }
1008
+ number.isntNumber = isntNumber;
1009
+
1010
+ jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
1011
+ const array_1 = array;
1012
+ const object_1 = object;
1013
+ const string_1 = string;
1014
+ const number_1 = number;
1015
+ const undefined_1 = _undefined;
1016
+ function isJsonRpcId(val) {
1017
+ return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
1018
+ }
1019
+ function isJsonRpcParams(val) {
1020
+ return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
1021
+ }
1022
+ function isJsonRpcNotification(val) {
1023
+ return (0, object_1.isRecord)(val)
1024
+ && (0, string_1.isString)(val.jsonrpc)
1025
+ && (0, string_1.isString)(val.method)
1026
+ && (0, undefined_1.isUndefined)(val.id)
1027
+ && isJsonRpcParams(val.params);
1028
+ }
1029
+ jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
1030
+ function isntJsonRpcNotification(val) {
1031
+ return !isJsonRpcNotification(val);
1032
+ }
1033
+ jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
1034
+ function isJsonRpcRequest(val) {
1035
+ return (0, object_1.isRecord)(val)
1036
+ && (0, string_1.isString)(val.jsonrpc)
1037
+ && (0, string_1.isString)(val.method)
1038
+ && isJsonRpcId(val.id)
1039
+ && isJsonRpcParams(val.params);
1040
+ }
1041
+ jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
1042
+ function isntJsonRpcRequest(val) {
1043
+ return !isJsonRpcRequest(val);
1044
+ }
1045
+ jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
1046
+ function isJsonRpcSuccess(val) {
1047
+ return (0, object_1.isRecord)(val)
1048
+ && (0, string_1.isString)(val.jsonrpc)
1049
+ && (0, string_1.isString)(val.id)
1050
+ && (0, undefined_1.isntUndefined)(val.result);
1051
+ }
1052
+ jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
1053
+ function isntJsonRpcSuccess(val) {
1054
+ return !isJsonRpcSuccess(val);
1055
+ }
1056
+ jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
1057
+ function isJsonRpcError(val) {
1058
+ return (0, object_1.isRecord)(val)
1059
+ && (0, string_1.isString)(val.jsonrpc)
1060
+ && isJsonRpcId(val.id)
1061
+ && isJsonRpcErrorObject(val.error);
1062
+ }
1063
+ jsonRpc.isJsonRpcError = isJsonRpcError;
1064
+ function isntJsonRpcError(val) {
1065
+ return !isJsonRpcError(val);
1066
+ }
1067
+ jsonRpc.isntJsonRpcError = isntJsonRpcError;
1068
+ function isJsonRpcErrorObject(val) {
1069
+ return (0, object_1.isRecord)(val)
1070
+ && (0, number_1.isNumber)(val.code)
1071
+ && (0, string_1.isString)(val.message)
1072
+ && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
1073
+ }
1074
+
1075
+ var json = {};
1076
+
1077
+ json.isntJson = json.isJson = void 0;
1078
+ function isJson(val) {
1079
+ try {
1080
+ JSON.stringify(val);
1081
+ return true;
1082
+ }
1083
+ catch (_a) {
1084
+ return false;
1085
+ }
1086
+ }
1087
+ json.isJson = isJson;
1088
+ function isntJson(val) {
1089
+ return !isntJson();
1090
+ }
1091
+ json.isntJson = isntJson;
1092
+
1093
+ var url = {};
1094
+
1095
+ url.isAbsoluteURL = void 0;
1096
+ function isAbsoluteURL(str) {
1097
+ try {
1098
+ new URL(str);
1099
+ return true;
1100
+ }
1101
+ catch (_a) {
1102
+ return false;
1103
+ }
1104
+ }
1105
+ url.isAbsoluteURL = isAbsoluteURL;
1106
+
1107
+ (function (exports) {
1108
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1109
+ if (k2 === undefined) k2 = k;
1110
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
1111
+ }) : (function(o, m, k, k2) {
1112
+ if (k2 === undefined) k2 = k;
1113
+ o[k2] = m[k];
1114
+ }));
1115
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
1116
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1117
+ };__exportStar(array, exports);
1118
+ __exportStar(asyncIterable, exports);
1119
+ __exportStar(bigint, exports);
1120
+ __exportStar(boolean, exports);
1121
+ __exportStar(char, exports);
1122
+ __exportStar(date, exports);
1123
+ __exportStar(_enum, exports);
1124
+ __exportStar(error, exports);
1125
+ __exportStar(falsy, exports);
1126
+ __exportStar(_function, exports);
1127
+ __exportStar(iterable, exports);
1128
+ __exportStar(jsonRpc, exports);
1129
+ __exportStar(json, exports);
1130
+ __exportStar(_null, exports);
1131
+ __exportStar(number, exports);
1132
+ __exportStar(object, exports);
1133
+ __exportStar(string, exports);
1134
+ __exportStar(_undefined, exports);
1135
+ __exportStar(url, exports);
1136
+
1137
+ }(es2018$1));
1138
+
1139
+ chunkByAsync$1.chunkByAsync = void 0;
1140
+ const types_1$k = es2018$1;
1141
+ function chunkByAsync(iterable, predicate) {
1142
+ if ((0, types_1$k.isAsyncIterable)(iterable)) {
1143
+ return chunkByAsyncIterable(iterable);
1144
+ }
1145
+ else {
1146
+ return chunkByIterable(iterable);
1147
+ }
1148
+ async function* chunkByAsyncIterable(iterable) {
1149
+ let buffer = [];
1150
+ let index = 0;
1151
+ for await (const element of iterable) {
1152
+ buffer.push(element);
1153
+ if (await predicate(element, index)) {
1154
+ yield buffer;
1155
+ buffer = [];
1156
+ }
1157
+ index++;
1158
+ }
1159
+ if (buffer.length)
1160
+ yield buffer;
1161
+ }
1162
+ async function* chunkByIterable(iterable) {
1163
+ let buffer = [];
1164
+ let index = 0;
1165
+ for (const element of iterable) {
1166
+ buffer.push(element);
1167
+ if (await predicate(element, index)) {
1168
+ yield buffer;
1169
+ buffer = [];
1170
+ }
1171
+ index++;
1172
+ }
1173
+ if (buffer.length)
1174
+ yield buffer;
1175
+ }
1176
+ }
1177
+ chunkByAsync$1.chunkByAsync = chunkByAsync;
1178
+
1179
+ var chunkBy$1 = {};
1180
+
1181
+ chunkBy$1.chunkBy = void 0;
1182
+ function* chunkBy(iterable, predicate) {
1183
+ let buffer = [];
1184
+ let index = 0;
1185
+ for (const element of iterable) {
1186
+ buffer.push(element);
1187
+ if (predicate(element, index)) {
1188
+ yield buffer;
1189
+ buffer = [];
1190
+ }
1191
+ index++;
1192
+ }
1193
+ if (buffer.length)
1194
+ yield buffer;
1195
+ }
1196
+ chunkBy$1.chunkBy = chunkBy;
1197
+
1198
+ var chunk$1 = {};
1199
+
1200
+ chunk$1.chunk = void 0;
1201
+ const go_1$e = es2018$3;
1202
+ const errors_1$e = es2018$2;
1203
+ function chunk(iterable, size) {
1204
+ (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
1205
+ (0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
1206
+ return (0, go_1$e.go)(function* () {
1207
+ let buffer = [];
1208
+ for (const element of iterable) {
1209
+ buffer.push(element);
1210
+ if (buffer.length >= size) {
1211
+ yield buffer;
1212
+ buffer = [];
1213
+ }
1214
+ }
1215
+ if (buffer.length)
1216
+ yield buffer;
1217
+ });
1218
+ }
1219
+ chunk$1.chunk = chunk;
1220
+
1221
+ var concatAsync$1 = {};
1222
+
1223
+ concatAsync$1.concatAsync = void 0;
1224
+ const types_1$j = es2018$1;
1225
+ const go_1$d = es2018$3;
1226
+ function concatAsync(iterable, ...otherIterables) {
1227
+ return (0, go_1$d.go)(async function* () {
1228
+ for (const iter of [iterable, ...otherIterables]) {
1229
+ if ((0, types_1$j.isAsyncIterable)(iter)) {
1230
+ for await (const element of iter) {
1231
+ yield element;
1232
+ }
1233
+ }
1234
+ else {
1235
+ for (const element of iter) {
1236
+ yield element;
1237
+ }
1238
+ }
1239
+ }
1240
+ });
1241
+ }
1242
+ concatAsync$1.concatAsync = concatAsync;
1243
+
1244
+ var concat$1 = {};
1245
+
1246
+ concat$1.concat = void 0;
1247
+ const go_1$c = es2018$3;
1248
+ function concat(iterable, ...otherIterables) {
1249
+ return (0, go_1$c.go)(function* () {
1250
+ for (const iter of [iterable, ...otherIterables]) {
1251
+ yield* iter;
1252
+ }
1253
+ });
1254
+ }
1255
+ concat$1.concat = concat;
1256
+
1257
+ var dropAsync$1 = {};
1258
+
1259
+ var utils = {};
1260
+
1261
+ utils.copyIterable = utils.copyAsyncIterable = void 0;
1262
+ async function* copyAsyncIterable(iterable) {
1263
+ for await (const element of iterable) {
1264
+ yield element;
1265
+ }
1266
+ }
1267
+ utils.copyAsyncIterable = copyAsyncIterable;
1268
+ function* copyIterable(iterable) {
1269
+ for (const element of iterable) {
1270
+ yield element;
1271
+ }
1272
+ }
1273
+ utils.copyIterable = copyIterable;
1274
+
1275
+ dropAsync$1.dropAsync = void 0;
1276
+ const go_1$b = es2018$3;
1277
+ const utils_1$3 = utils;
1278
+ const errors_1$d = es2018$2;
1279
+ function dropAsync(iterable, count) {
1280
+ (0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1281
+ (0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1282
+ if (count === 0)
1283
+ return (0, utils_1$3.copyAsyncIterable)(iterable);
1284
+ return (0, go_1$b.go)(async function* () {
1285
+ var _a;
1286
+ const iterator = iterable[Symbol.asyncIterator]();
1287
+ let done;
1288
+ try {
1289
+ let value;
1290
+ while ({ value, done } = await iterator.next(), !done) {
1291
+ if (count <= 0)
1292
+ break;
1293
+ count--;
1294
+ }
1295
+ while (!done) {
1296
+ yield value;
1297
+ ({ value, done } = await iterator.next());
1298
+ }
1299
+ }
1300
+ finally {
1301
+ if (!done)
1302
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1303
+ }
1304
+ });
1305
+ }
1306
+ dropAsync$1.dropAsync = dropAsync;
1307
+
1308
+ var dropRightAsync$1 = {};
1309
+
1310
+ dropRightAsync$1.dropRightAsync = void 0;
1311
+ const go_1$a = es2018$3;
1312
+ const utils_1$2 = utils;
1313
+ const errors_1$c = es2018$2;
1314
+ function dropRightAsync(iterable, count) {
1315
+ (0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1316
+ (0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1317
+ if (count === 0)
1318
+ return (0, utils_1$2.copyAsyncIterable)(iterable);
1319
+ return (0, go_1$a.go)(async function* () {
1320
+ const arr = await toArrayAsync$2(iterable);
1321
+ const result = arr.slice(0, -count);
1322
+ for (const value of result) {
1323
+ yield value;
1324
+ }
1325
+ });
1326
+ }
1327
+ dropRightAsync$1.dropRightAsync = dropRightAsync;
1328
+ async function toArrayAsync$2(iterable) {
1329
+ const result = [];
1330
+ for await (const element of iterable) {
1331
+ result.push(element);
1332
+ }
1333
+ return result;
1334
+ }
1335
+
1336
+ var dropRight$1 = {};
1337
+
1338
+ dropRight$1.dropRight = void 0;
1339
+ const go_1$9 = es2018$3;
1340
+ const utils_1$1 = utils;
1341
+ const errors_1$b = es2018$2;
1342
+ function dropRight(iterable, count) {
1343
+ (0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1344
+ (0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1345
+ if (count === 0)
1346
+ return (0, utils_1$1.copyIterable)(iterable);
1347
+ return (0, go_1$9.go)(function* () {
1348
+ const arr = Array.from(iterable);
1349
+ yield* arr.slice(0, -count);
1350
+ });
1351
+ }
1352
+ dropRight$1.dropRight = dropRight;
1353
+
1354
+ var dropUntilAsync$1 = {};
1355
+
1356
+ dropUntilAsync$1.dropUntilAsync = void 0;
1357
+ const types_1$i = es2018$1;
1358
+ function dropUntilAsync(iterable, predicate) {
1359
+ if ((0, types_1$i.isAsyncIterable)(iterable)) {
1360
+ return dropUntilAsyncIterable(iterable);
1361
+ }
1362
+ else {
1363
+ return dropUntilIterable(iterable);
1364
+ }
1365
+ async function* dropUntilAsyncIterable(iterable) {
1366
+ var _a;
1367
+ const iterator = iterable[Symbol.asyncIterator]();
1368
+ let done;
1369
+ try {
1370
+ let index = 0;
1371
+ let value;
1372
+ while ({ value, done } = await iterator.next(), !done) {
1373
+ if (await predicate(value, index++))
1374
+ break;
1375
+ }
1376
+ while (!done) {
1377
+ yield value;
1378
+ ({ value, done } = await iterator.next());
1379
+ }
1380
+ }
1381
+ finally {
1382
+ if (!done)
1383
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1384
+ }
1385
+ }
1386
+ async function* dropUntilIterable(iterable) {
1387
+ var _a;
1388
+ const iterator = iterable[Symbol.iterator]();
1389
+ let done;
1390
+ try {
1391
+ let index = 0;
1392
+ let value;
1393
+ while ({ value, done } = iterator.next(), !done) {
1394
+ if (await predicate(value, index++))
1395
+ break;
1396
+ }
1397
+ while (!done) {
1398
+ yield value;
1399
+ ({ value, done } = iterator.next());
1400
+ }
1401
+ }
1402
+ finally {
1403
+ if (!done)
1404
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1405
+ }
1406
+ }
1407
+ }
1408
+ dropUntilAsync$1.dropUntilAsync = dropUntilAsync;
1409
+
1410
+ var dropUntil$1 = {};
1411
+
1412
+ dropUntil$1.dropUntil = void 0;
1413
+ function* dropUntil(iterable, predicate) {
1414
+ var _a;
1415
+ const iterator = iterable[Symbol.iterator]();
1416
+ let done;
1417
+ try {
1418
+ let index = 0;
1419
+ let value;
1420
+ while ({ value, done } = iterator.next(), !done) {
1421
+ if (predicate(value, index++))
1422
+ break;
1423
+ }
1424
+ while (!done) {
1425
+ yield value;
1426
+ ({ value, done } = iterator.next());
1427
+ }
1428
+ }
1429
+ finally {
1430
+ if (!done)
1431
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1432
+ }
1433
+ }
1434
+ dropUntil$1.dropUntil = dropUntil;
1435
+
1436
+ var drop$1 = {};
1437
+
1438
+ drop$1.drop = void 0;
1439
+ const go_1$8 = es2018$3;
1440
+ const utils_1 = utils;
1441
+ const errors_1$a = es2018$2;
1442
+ function drop(iterable, count) {
1443
+ (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1444
+ (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1445
+ if (count === 0)
1446
+ return (0, utils_1.copyIterable)(iterable);
1447
+ return (0, go_1$8.go)(function* () {
1448
+ var _a;
1449
+ const iterator = iterable[Symbol.iterator]();
1450
+ let done;
1451
+ try {
1452
+ let value;
1453
+ while ({ value, done } = iterator.next(), !done) {
1454
+ if (count <= 0)
1455
+ break;
1456
+ count--;
1457
+ }
1458
+ while (!done) {
1459
+ yield value;
1460
+ ({ value, done } = iterator.next());
1461
+ }
1462
+ }
1463
+ finally {
1464
+ if (!done)
1465
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1466
+ }
1467
+ });
1468
+ }
1469
+ drop$1.drop = drop;
1470
+
1471
+ var filterAsync$1 = {};
1472
+
1473
+ filterAsync$1.filterAsync = void 0;
1474
+ const types_1$h = es2018$1;
1475
+ function filterAsync(iterable, predicate) {
1476
+ if ((0, types_1$h.isAsyncIterable)(iterable)) {
1477
+ return filterAsyncIterable(iterable);
1478
+ }
1479
+ else {
1480
+ return filterIterable(iterable);
1481
+ }
1482
+ async function* filterAsyncIterable(iterable) {
1483
+ let index = 0;
1484
+ for await (const element of iterable) {
1485
+ if (await predicate(element, index))
1486
+ yield element;
1487
+ index++;
1488
+ }
1489
+ }
1490
+ async function* filterIterable(iterable) {
1491
+ let index = 0;
1492
+ for (const element of iterable) {
1493
+ if (await predicate(element, index))
1494
+ yield element;
1495
+ index++;
1496
+ }
1497
+ }
1498
+ }
1499
+ filterAsync$1.filterAsync = filterAsync;
1500
+
1501
+ var filter$1 = {};
1502
+
1503
+ filter$1.filter = void 0;
1504
+ function* filter(iterable, predicate) {
1505
+ let index = 0;
1506
+ for (const element of iterable) {
1507
+ if (predicate(element, index))
1508
+ yield element;
1509
+ index++;
1510
+ }
1511
+ }
1512
+ filter$1.filter = filter;
1513
+
1514
+ var flattenAsync$1 = {};
1515
+
1516
+ var flattenDeepAsync$1 = {};
1517
+
1518
+ var flattenByAsync$1 = {};
1519
+
1520
+ flattenByAsync$1.flattenByAsync = void 0;
1521
+ const types_1$g = es2018$1;
1522
+ function flattenByAsync(iterable, predicate) {
1523
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
1524
+ return flattenByAsyncIterable(iterable);
1525
+ }
1526
+ else {
1527
+ return flattenByIterable(iterable);
1528
+ }
1529
+ async function* flattenByAsyncIterable(iterable) {
1530
+ const level = 1;
1531
+ for await (const element of iterable) {
1532
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1533
+ yield* flatten(element, level + 1);
1534
+ }
1535
+ else {
1536
+ yield element;
1537
+ }
1538
+ }
1539
+ }
1540
+ function flattenByIterable(iterable) {
1541
+ return flatten(iterable, 1);
1542
+ }
1543
+ async function* flatten(iterable, level) {
1544
+ for (const element of iterable) {
1545
+ if (isFiniteIterable$1(element) && await predicate(element, level)) {
1546
+ yield* flatten(element, level + 1);
1547
+ }
1548
+ else {
1549
+ yield element;
1550
+ }
1551
+ }
1552
+ }
1553
+ }
1554
+ flattenByAsync$1.flattenByAsync = flattenByAsync;
1555
+ function isFiniteIterable$1(val) {
1556
+ return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
1557
+ }
1558
+
1559
+ flattenDeepAsync$1.flattenDeepAsync = void 0;
1560
+ const flatten_by_async_1 = flattenByAsync$1;
1561
+ const errors_1$9 = es2018$2;
1562
+ function flattenDeepAsync(iterable, depth = Infinity) {
1563
+ (0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1564
+ (0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
1565
+ return (0, flatten_by_async_1.flattenByAsync)(iterable, (_, level) => level <= depth);
1566
+ }
1567
+ flattenDeepAsync$1.flattenDeepAsync = flattenDeepAsync;
1568
+
1569
+ flattenAsync$1.flattenAsync = void 0;
1570
+ const flatten_deep_async_1 = flattenDeepAsync$1;
1571
+ function flattenAsync(iterable) {
1572
+ return (0, flatten_deep_async_1.flattenDeepAsync)(iterable, 1);
1573
+ }
1574
+ flattenAsync$1.flattenAsync = flattenAsync;
1575
+
1576
+ var flattenBy$1 = {};
1577
+
1578
+ flattenBy$1.flattenBy = void 0;
1579
+ const types_1$f = es2018$1;
1580
+ function flattenBy(iterable, predicate) {
1581
+ return flatten(iterable, 1);
1582
+ function* flatten(iterable, level) {
1583
+ for (const element of iterable) {
1584
+ if (isFiniteIterable(element) && predicate(element, level)) {
1585
+ yield* flatten(element, level + 1);
1586
+ }
1587
+ else {
1588
+ yield element;
1589
+ }
1590
+ }
1591
+ }
1592
+ }
1593
+ flattenBy$1.flattenBy = flattenBy;
1594
+ function isFiniteIterable(val) {
1595
+ return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
1596
+ }
1597
+
1598
+ var flattenDeep$1 = {};
1599
+
1600
+ flattenDeep$1.flattenDeep = void 0;
1601
+ const flatten_by_1 = flattenBy$1;
1602
+ const errors_1$8 = es2018$2;
1603
+ function flattenDeep(iterable, depth = Infinity) {
1604
+ (0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1605
+ (0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
1606
+ return (0, flatten_by_1.flattenBy)(iterable, (_, level) => level <= depth);
1607
+ }
1608
+ flattenDeep$1.flattenDeep = flattenDeep;
1609
+
1610
+ var flatten$1 = {};
1611
+
1612
+ flatten$1.flatten = void 0;
1613
+ const flatten_deep_1 = flattenDeep$1;
1614
+ function flatten(iterable) {
1615
+ return (0, flatten_deep_1.flattenDeep)(iterable, 1);
1616
+ }
1617
+ flatten$1.flatten = flatten;
1618
+
1619
+ var mapAsync$1 = {};
1620
+
1621
+ mapAsync$1.mapAsync = void 0;
1622
+ const types_1$e = es2018$1;
1623
+ function mapAsync(iterable, fn) {
1624
+ if ((0, types_1$e.isAsyncIterable)(iterable)) {
1625
+ return mapAsyncIterable(iterable);
1626
+ }
1627
+ else {
1628
+ return mapIterable(iterable);
1629
+ }
1630
+ async function* mapAsyncIterable(iterable) {
1631
+ let index = 0;
1632
+ for await (const element of iterable) {
1633
+ yield await fn(element, index);
1634
+ index++;
1635
+ }
1636
+ }
1637
+ async function* mapIterable(iterable) {
1638
+ let index = 0;
1639
+ for (const element of iterable) {
1640
+ yield await fn(element, index);
1641
+ index++;
1642
+ }
1643
+ }
1644
+ }
1645
+ mapAsync$1.mapAsync = mapAsync;
1646
+
1647
+ var map$1 = {};
1648
+
1649
+ map$1.map = void 0;
1650
+ function* map(iterable, fn) {
1651
+ let index = 0;
1652
+ for (const element of iterable) {
1653
+ yield fn(element, index);
1654
+ index++;
1655
+ }
1656
+ }
1657
+ map$1.map = map;
1658
+
1659
+ var repeatAsync$1 = {};
1660
+
1661
+ repeatAsync$1.repeatAsync = void 0;
1662
+ const go_1$7 = es2018$3;
1663
+ const errors_1$7 = es2018$2;
1664
+ function repeatAsync(iterable, times) {
1665
+ (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1666
+ (0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1667
+ if (times === Infinity)
1668
+ warnInfiniteLoop$1();
1669
+ return (0, go_1$7.go)(async function* () {
1670
+ const cache = [];
1671
+ if (times > 0) {
1672
+ for await (const element of iterable) {
1673
+ yield element;
1674
+ cache.push(element);
1675
+ }
1676
+ times--;
1677
+ }
1678
+ while (times > 0) {
1679
+ yield* cache;
1680
+ times--;
1681
+ }
1682
+ });
1683
+ }
1684
+ repeatAsync$1.repeatAsync = repeatAsync;
1685
+ function warnInfiniteLoop$1() {
1686
+ if (isProduction$1())
1687
+ return;
1688
+ console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
1689
+ }
1690
+ function isProduction$1() {
1691
+ return process.env.NODE_ENV === 'production';
1692
+ }
1693
+
1694
+ var repeat$1 = {};
1695
+
1696
+ repeat$1.repeat = void 0;
1697
+ const go_1$6 = es2018$3;
1698
+ const errors_1$6 = es2018$2;
1699
+ function repeat(iterable, times) {
1700
+ (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1701
+ (0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
1702
+ if (times === Infinity)
1703
+ warnInfiniteLoop();
1704
+ return (0, go_1$6.go)(function* () {
1705
+ const cache = [];
1706
+ if (times > 0) {
1707
+ for (const element of iterable) {
1708
+ yield element;
1709
+ cache.push(element);
1710
+ }
1711
+ times--;
1712
+ }
1713
+ while (times > 0) {
1714
+ yield* cache;
1715
+ times--;
1716
+ }
1717
+ });
1718
+ }
1719
+ repeat$1.repeat = repeat;
1720
+ function warnInfiniteLoop() {
1721
+ if (isProduction())
1722
+ return;
1723
+ console.warn('When iterable has no elements and times is Infinity, repeat() will be in dead loop');
1724
+ }
1725
+ function isProduction() {
1726
+ return process.env.NODE_ENV === 'production';
1727
+ }
1728
+
1729
+ var sliceAsync$1 = {};
1730
+
1731
+ sliceAsync$1.sliceAsync = void 0;
1732
+ const go_1$5 = es2018$3;
1733
+ const errors_1$5 = es2018$2;
1734
+ function sliceAsync(iterable, start, end = Infinity) {
1735
+ (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1736
+ (0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1737
+ (0, errors_1$5.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1738
+ (0, errors_1$5.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1739
+ return (0, go_1$5.go)(async function* () {
1740
+ let index = 0;
1741
+ for await (const element of iterable) {
1742
+ if (index >= end)
1743
+ break;
1744
+ if (index >= start)
1745
+ yield element;
1746
+ index++;
1747
+ }
1748
+ });
1749
+ }
1750
+ sliceAsync$1.sliceAsync = sliceAsync;
1751
+
1752
+ var slice$1 = {};
1753
+
1754
+ slice$1.slice = void 0;
1755
+ const go_1$4 = es2018$3;
1756
+ const errors_1$4 = es2018$2;
1757
+ function slice(iterable, start, end = Infinity) {
1758
+ (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1759
+ (0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
1760
+ (0, errors_1$4.assert)(Number.isInteger(end), 'The parameter end must be an integer');
1761
+ (0, errors_1$4.assert)(end >= start, 'The parameter end must be greater than or equal to start');
1762
+ return (0, go_1$4.go)(function* () {
1763
+ let index = 0;
1764
+ for (const element of iterable) {
1765
+ if (index >= end)
1766
+ break;
1767
+ if (index >= start)
1768
+ yield element;
1769
+ index++;
1770
+ }
1771
+ });
1772
+ }
1773
+ slice$1.slice = slice;
1774
+
1775
+ var splitAsync$1 = {};
1776
+
1777
+ splitAsync$1.splitAsync = void 0;
1778
+ async function* splitAsync(iterable, separator) {
1779
+ let buffer = [];
1780
+ for await (const element of iterable) {
1781
+ if (element === separator) {
1782
+ yield buffer;
1783
+ buffer = [];
1784
+ }
1785
+ else {
1786
+ buffer.push(element);
1787
+ }
1788
+ }
1789
+ yield buffer;
1790
+ }
1791
+ splitAsync$1.splitAsync = splitAsync;
1792
+
1793
+ var splitByAsync$1 = {};
1794
+
1795
+ splitByAsync$1.splitByAsync = void 0;
1796
+ const types_1$d = es2018$1;
1797
+ function splitByAsync(iterable, predicate) {
1798
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
1799
+ return splitByAsyncIterable(iterable);
1800
+ }
1801
+ else {
1802
+ return splitByIterable(iterable);
1803
+ }
1804
+ async function* splitByIterable(iterable) {
1805
+ let buffer = [];
1806
+ let index = 0;
1807
+ for (const element of iterable) {
1808
+ if (await predicate(element, index)) {
1809
+ yield buffer;
1810
+ buffer = [];
1811
+ }
1812
+ else {
1813
+ buffer.push(element);
1814
+ }
1815
+ index++;
1816
+ }
1817
+ yield buffer;
1818
+ }
1819
+ async function* splitByAsyncIterable(iterable) {
1820
+ let buffer = [];
1821
+ let index = 0;
1822
+ for await (const element of iterable) {
1823
+ if (await predicate(element, index)) {
1824
+ yield buffer;
1825
+ buffer = [];
1826
+ }
1827
+ else {
1828
+ buffer.push(element);
1829
+ }
1830
+ index++;
1831
+ }
1832
+ yield buffer;
1833
+ }
1834
+ }
1835
+ splitByAsync$1.splitByAsync = splitByAsync;
1836
+
1837
+ var splitBy$1 = {};
1838
+
1839
+ splitBy$1.splitBy = void 0;
1840
+ function* splitBy(iterable, predicate) {
1841
+ let buffer = [];
1842
+ let index = 0;
1843
+ for (const element of iterable) {
1844
+ if (predicate(element, index)) {
1845
+ yield buffer;
1846
+ buffer = [];
1847
+ }
1848
+ else {
1849
+ buffer.push(element);
1850
+ }
1851
+ index++;
1852
+ }
1853
+ yield buffer;
1854
+ }
1855
+ splitBy$1.splitBy = splitBy;
1856
+
1857
+ var split$1 = {};
1858
+
1859
+ split$1.split = void 0;
1860
+ function* split(iterable, separator) {
1861
+ let buffer = [];
1862
+ for (const element of iterable) {
1863
+ if (element === separator) {
1864
+ yield buffer;
1865
+ buffer = [];
1866
+ }
1867
+ else {
1868
+ buffer.push(element);
1869
+ }
1870
+ }
1871
+ yield buffer;
1872
+ }
1873
+ split$1.split = split;
1874
+
1875
+ var takeAsync$1 = {};
1876
+
1877
+ takeAsync$1.takeAsync = void 0;
1878
+ const go_1$3 = es2018$3;
1879
+ const errors_1$3 = es2018$2;
1880
+ function takeAsync(iterable, count) {
1881
+ (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1882
+ (0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1883
+ return (0, go_1$3.go)(async function* () {
1884
+ if (count === 0)
1885
+ return;
1886
+ for await (const element of iterable) {
1887
+ yield element;
1888
+ count--;
1889
+ if (count === 0)
1890
+ break;
1891
+ }
1892
+ });
1893
+ }
1894
+ takeAsync$1.takeAsync = takeAsync;
1895
+
1896
+ var takeRightAsync$1 = {};
1897
+
1898
+ takeRightAsync$1.takeRightAsync = void 0;
1899
+ const go_1$2 = es2018$3;
1900
+ const errors_1$2 = es2018$2;
1901
+ function takeRightAsync(iterable, count) {
1902
+ (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1903
+ (0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1904
+ return (0, go_1$2.go)(async function* () {
1905
+ var _a;
1906
+ const iterator = iterable[Symbol.asyncIterator]();
1907
+ let done;
1908
+ try {
1909
+ const buffer = [];
1910
+ let value;
1911
+ while ({ value, done } = await iterator.next(), !done) {
1912
+ buffer.push(value);
1913
+ if (buffer.length > count)
1914
+ buffer.shift();
1915
+ }
1916
+ yield* buffer;
1917
+ }
1918
+ finally {
1919
+ if (!done)
1920
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
1921
+ }
1922
+ });
1923
+ }
1924
+ takeRightAsync$1.takeRightAsync = takeRightAsync;
1925
+
1926
+ var takeRight$1 = {};
1927
+
1928
+ takeRight$1.takeRight = void 0;
1929
+ const go_1$1 = es2018$3;
1930
+ const errors_1$1 = es2018$2;
1931
+ function takeRight(iterable, count) {
1932
+ (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1933
+ (0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
1934
+ return (0, go_1$1.go)(function* () {
1935
+ var _a;
1936
+ const iterator = iterable[Symbol.iterator]();
1937
+ let done;
1938
+ try {
1939
+ const buffer = [];
1940
+ let value;
1941
+ while ({ value, done } = iterator.next(), !done) {
1942
+ buffer.push(value);
1943
+ if (buffer.length > count)
1944
+ buffer.shift();
1945
+ }
1946
+ yield* buffer;
1947
+ }
1948
+ finally {
1949
+ if (!done)
1950
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
1951
+ }
1952
+ });
1953
+ }
1954
+ takeRight$1.takeRight = takeRight;
1955
+
1956
+ var takeUntilAsync$1 = {};
1957
+
1958
+ takeUntilAsync$1.takeUntilAsync = void 0;
1959
+ const types_1$c = es2018$1;
1960
+ function takeUntilAsync(iterable, predicate) {
1961
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
1962
+ return takeUntilAsyncIterable(iterable);
1963
+ }
1964
+ else {
1965
+ return takeUntilIterable(iterable);
1966
+ }
1967
+ async function* takeUntilAsyncIterable(iterable) {
1968
+ let index = 0;
1969
+ for await (const element of iterable) {
1970
+ if (await predicate(element, index))
1971
+ break;
1972
+ yield element;
1973
+ index++;
1974
+ }
1975
+ }
1976
+ async function* takeUntilIterable(iterable) {
1977
+ let index = 0;
1978
+ for (const element of iterable) {
1979
+ if (await predicate(element, index))
1980
+ break;
1981
+ yield element;
1982
+ index++;
1983
+ }
1984
+ }
1985
+ }
1986
+ takeUntilAsync$1.takeUntilAsync = takeUntilAsync;
1987
+
1988
+ var takeUntil$1 = {};
1989
+
1990
+ takeUntil$1.takeUntil = void 0;
1991
+ function* takeUntil(iterable, predicate) {
1992
+ let index = 0;
1993
+ for (const element of iterable) {
1994
+ if (predicate(element, index))
1995
+ break;
1996
+ yield element;
1997
+ index++;
1998
+ }
1999
+ }
2000
+ takeUntil$1.takeUntil = takeUntil;
2001
+
2002
+ var take$1 = {};
2003
+
2004
+ take$1.take = void 0;
2005
+ const go_1 = es2018$3;
2006
+ const errors_1 = es2018$2;
2007
+ function take(iterable, count) {
2008
+ (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
2009
+ (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
2010
+ return (0, go_1.go)(function* () {
2011
+ if (count === 0)
2012
+ return;
2013
+ for (const element of iterable) {
2014
+ yield element;
2015
+ count--;
2016
+ if (count === 0)
2017
+ break;
2018
+ }
2019
+ });
2020
+ }
2021
+ take$1.take = take;
2022
+
2023
+ var tapAsync$1 = {};
2024
+
2025
+ tapAsync$1.tapAsync = void 0;
2026
+ const types_1$b = es2018$1;
2027
+ function tapAsync(iterable, fn) {
2028
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
2029
+ return tapAsyncIterable(iterable);
2030
+ }
2031
+ else {
2032
+ return tapIterable(iterable);
2033
+ }
2034
+ async function* tapIterable(iterable) {
2035
+ let index = 0;
2036
+ for (const element of iterable) {
2037
+ await fn(element, index);
2038
+ yield element;
2039
+ index++;
2040
+ }
2041
+ }
2042
+ async function* tapAsyncIterable(iterable) {
2043
+ let index = 0;
2044
+ for await (const element of iterable) {
2045
+ await fn(element, index);
2046
+ yield element;
2047
+ index++;
2048
+ }
2049
+ }
2050
+ }
2051
+ tapAsync$1.tapAsync = tapAsync;
2052
+
2053
+ var tap$1 = {};
2054
+
2055
+ tap$1.tap = void 0;
2056
+ function* tap(iterable, fn) {
2057
+ let index = 0;
2058
+ for (const element of iterable) {
2059
+ fn(element, index);
2060
+ yield element;
2061
+ index++;
2062
+ }
2063
+ }
2064
+ tap$1.tap = tap;
2065
+
2066
+ var toAsyncIterable$1 = {};
2067
+
2068
+ toAsyncIterable$1.toAsyncIterable = void 0;
2069
+ async function* toAsyncIterable(iterable) {
2070
+ for (const value of iterable) {
2071
+ yield value;
2072
+ }
2073
+ }
2074
+ toAsyncIterable$1.toAsyncIterable = toAsyncIterable;
2075
+
2076
+ var transformAsync$1 = {};
2077
+
2078
+ transformAsync$1.transformAsync = void 0;
2079
+ async function* transformAsync(iterable, transformer) {
2080
+ yield* transformer(iterable);
2081
+ }
2082
+ transformAsync$1.transformAsync = transformAsync;
2083
+
2084
+ var transform$1 = {};
2085
+
2086
+ transform$1.transform = void 0;
2087
+ function* transform(iterable, transformer) {
2088
+ yield* transformer(iterable);
2089
+ }
2090
+ transform$1.transform = transform;
2091
+
2092
+ var uniqAsync$1 = {};
2093
+
2094
+ uniqAsync$1.uniqAsync = void 0;
2095
+ async function* uniqAsync(iterable) {
2096
+ const bucket = new Set();
2097
+ for await (const element of iterable) {
2098
+ if (!bucket.has(element)) {
2099
+ yield element;
2100
+ bucket.add(element);
2101
+ }
2102
+ }
2103
+ }
2104
+ uniqAsync$1.uniqAsync = uniqAsync;
2105
+
2106
+ var uniqByAsync$1 = {};
2107
+
2108
+ uniqByAsync$1.uniqByAsync = void 0;
2109
+ const types_1$a = es2018$1;
2110
+ function uniqByAsync(iterable, fn) {
2111
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
2112
+ return uniqByAsyncIterable(iterable);
2113
+ }
2114
+ else {
2115
+ return uniqByIterable(iterable);
2116
+ }
2117
+ async function* uniqByAsyncIterable(iterable) {
2118
+ const bucket = new Set();
2119
+ let index = 0;
2120
+ for await (const element of iterable) {
2121
+ const result = await fn(element, index);
2122
+ if (!bucket.has(result)) {
2123
+ yield element;
2124
+ bucket.add(result);
2125
+ }
2126
+ index++;
2127
+ }
2128
+ }
2129
+ async function* uniqByIterable(iterable) {
2130
+ const bucket = new Set();
2131
+ let index = 0;
2132
+ for (const element of iterable) {
2133
+ const result = await fn(element, index);
2134
+ if (!bucket.has(result)) {
2135
+ yield element;
2136
+ bucket.add(result);
2137
+ }
2138
+ index++;
2139
+ }
2140
+ }
2141
+ }
2142
+ uniqByAsync$1.uniqByAsync = uniqByAsync;
2143
+
2144
+ var uniqBy$1 = {};
2145
+
2146
+ uniqBy$1.uniqBy = void 0;
2147
+ function* uniqBy(iterable, fn) {
2148
+ const bucket = new Set();
2149
+ let index = 0;
2150
+ for (const element of iterable) {
2151
+ const result = fn(element, index);
2152
+ if (!bucket.has(result)) {
2153
+ yield element;
2154
+ bucket.add(result);
2155
+ }
2156
+ index++;
2157
+ }
2158
+ }
2159
+ uniqBy$1.uniqBy = uniqBy;
2160
+
2161
+ var uniq$1 = {};
2162
+
2163
+ uniq$1.uniq = void 0;
2164
+ function* uniq(iterable) {
2165
+ const bucket = new Set();
2166
+ for (const element of iterable) {
2167
+ if (!bucket.has(element)) {
2168
+ yield element;
2169
+ bucket.add(element);
2170
+ }
2171
+ }
2172
+ }
2173
+ uniq$1.uniq = uniq;
2174
+
2175
+ var zipAsync$1 = {};
2176
+
2177
+ zipAsync$1.zipAsync = void 0;
2178
+ const types_1$9 = es2018$1;
2179
+ var Kind;
2180
+ (function (Kind) {
2181
+ Kind[Kind["Sync"] = 0] = "Sync";
2182
+ Kind[Kind["Async"] = 1] = "Async";
2183
+ })(Kind || (Kind = {}));
2184
+ function zipAsync(iterable, ...otherIterables) {
2185
+ return zipWithSize$1(iterable, ...otherIterables);
2186
+ }
2187
+ zipAsync$1.zipAsync = zipAsync;
2188
+ async function* zipWithSize$1(...iterables) {
2189
+ var _a, _b, _c, _d;
2190
+ const length = iterables.length;
2191
+ const iterators = iterables.map(iterable => {
2192
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
2193
+ return [Kind.Async, iterable[Symbol.asyncIterator]()];
2194
+ }
2195
+ else {
2196
+ return [Kind.Sync, iterable[Symbol.iterator]()];
2197
+ }
2198
+ });
2199
+ const dones = iterators.map(() => false);
2200
+ try {
2201
+ while (true) {
2202
+ const result = new Array(length);
2203
+ for (let i = 0; i < length; i++) {
2204
+ const [kind, iterator] = iterators[i];
2205
+ let temp;
2206
+ if (kind === Kind.Async) {
2207
+ temp = await iterator.next();
2208
+ }
2209
+ else {
2210
+ temp = iterator.next();
2211
+ }
2212
+ if (temp.done) {
2213
+ dones[i] = true;
2214
+ return;
2215
+ }
2216
+ result[i] = temp.value;
2217
+ }
2218
+ yield result;
2219
+ }
2220
+ }
2221
+ finally {
2222
+ const undoneIterators = iterators.filter((_, i) => !dones[i]);
2223
+ for (const [kind, iterator] of undoneIterators) {
2224
+ if (kind === Kind.Async) {
2225
+ await ((_b = (_a = iterator).return) === null || _b === void 0 ? void 0 : _b.call(_a));
2226
+ }
2227
+ else {
2228
+ (_d = (_c = iterator).return) === null || _d === void 0 ? void 0 : _d.call(_c);
2229
+ }
2230
+ }
2231
+ }
2232
+ }
2233
+
2234
+ var zip$1 = {};
2235
+
2236
+ zip$1.zip = void 0;
2237
+ function zip(iterable, ...otherIterables) {
2238
+ return zipWithSize(iterable, ...otherIterables);
2239
+ }
2240
+ zip$1.zip = zip;
2241
+ function* zipWithSize(...iterables) {
2242
+ const length = iterables.length;
2243
+ const iterators = iterables.map(iterable => iterable[Symbol.iterator]());
2244
+ const dones = iterators.map(() => false);
2245
+ try {
2246
+ while (true) {
2247
+ const result = new Array(length);
2248
+ for (let i = 0; i < length; i++) {
2249
+ const { value, done } = iterators[i].next();
2250
+ if (done) {
2251
+ dones[i] = true;
2252
+ return;
2253
+ }
2254
+ result[i] = value;
2255
+ }
2256
+ yield result;
2257
+ }
2258
+ }
2259
+ finally {
2260
+ const undoneIterators = iterators.filter((_, i) => !dones[i]);
2261
+ undoneIterators.forEach(x => { var _a; return (_a = x.return) === null || _a === void 0 ? void 0 : _a.call(x); });
2262
+ }
2263
+ }
2264
+
2265
+ (function (exports) {
2266
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2267
+ if (k2 === undefined) k2 = k;
2268
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2269
+ }) : (function(o, m, k, k2) {
2270
+ if (k2 === undefined) k2 = k;
2271
+ o[k2] = m[k];
2272
+ }));
2273
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2274
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2275
+ };__exportStar(chunkAsync$1, exports);
2276
+ __exportStar(chunkByAsync$1, exports);
2277
+ __exportStar(chunkBy$1, exports);
2278
+ __exportStar(chunk$1, exports);
2279
+ __exportStar(concatAsync$1, exports);
2280
+ __exportStar(concat$1, exports);
2281
+ __exportStar(dropAsync$1, exports);
2282
+ __exportStar(dropRightAsync$1, exports);
2283
+ __exportStar(dropRight$1, exports);
2284
+ __exportStar(dropUntilAsync$1, exports);
2285
+ __exportStar(dropUntil$1, exports);
2286
+ __exportStar(drop$1, exports);
2287
+ __exportStar(filterAsync$1, exports);
2288
+ __exportStar(filter$1, exports);
2289
+ __exportStar(flattenAsync$1, exports);
2290
+ __exportStar(flattenByAsync$1, exports);
2291
+ __exportStar(flattenBy$1, exports);
2292
+ __exportStar(flattenDeepAsync$1, exports);
2293
+ __exportStar(flattenDeep$1, exports);
2294
+ __exportStar(flatten$1, exports);
2295
+ __exportStar(mapAsync$1, exports);
2296
+ __exportStar(map$1, exports);
2297
+ __exportStar(repeatAsync$1, exports);
2298
+ __exportStar(repeat$1, exports);
2299
+ __exportStar(sliceAsync$1, exports);
2300
+ __exportStar(slice$1, exports);
2301
+ __exportStar(splitAsync$1, exports);
2302
+ __exportStar(splitByAsync$1, exports);
2303
+ __exportStar(splitBy$1, exports);
2304
+ __exportStar(split$1, exports);
2305
+ __exportStar(takeAsync$1, exports);
2306
+ __exportStar(takeRightAsync$1, exports);
2307
+ __exportStar(takeRight$1, exports);
2308
+ __exportStar(takeUntilAsync$1, exports);
2309
+ __exportStar(takeUntil$1, exports);
2310
+ __exportStar(take$1, exports);
2311
+ __exportStar(tapAsync$1, exports);
2312
+ __exportStar(tap$1, exports);
2313
+ __exportStar(toAsyncIterable$1, exports);
2314
+ __exportStar(transformAsync$1, exports);
2315
+ __exportStar(transform$1, exports);
2316
+ __exportStar(uniqAsync$1, exports);
2317
+ __exportStar(uniqByAsync$1, exports);
2318
+ __exportStar(uniqBy$1, exports);
2319
+ __exportStar(uniq$1, exports);
2320
+ __exportStar(zipAsync$1, exports);
2321
+ __exportStar(zip$1, exports);
2322
+
2323
+ }(middleware));
2324
+
2325
+ var output = {};
2326
+
2327
+ var consume$1 = {};
2328
+
2329
+ consume$1.consume = void 0;
2330
+ function consume(iterable, consumer) {
2331
+ return consumer(iterable);
2332
+ }
2333
+ consume$1.consume = consume;
2334
+
2335
+ var eachAsync$1 = {};
2336
+
2337
+ eachAsync$1.eachAsync = void 0;
2338
+ const types_1$8 = es2018$1;
2339
+ function eachAsync(iterable, fn) {
2340
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
2341
+ return eachAsyncIterable(iterable);
2342
+ }
2343
+ else {
2344
+ return eachIterable(iterable);
2345
+ }
2346
+ async function eachAsyncIterable(iterable) {
2347
+ let index = 0;
2348
+ for await (const element of iterable) {
2349
+ await fn(element, index);
2350
+ index++;
2351
+ }
2352
+ }
2353
+ async function eachIterable(iterable) {
2354
+ let index = 0;
2355
+ for (const element of iterable) {
2356
+ await fn(element, index);
2357
+ index++;
2358
+ }
2359
+ }
2360
+ }
2361
+ eachAsync$1.eachAsync = eachAsync;
2362
+
2363
+ var each$1 = {};
2364
+
2365
+ each$1.each = void 0;
2366
+ function each(iterable, fn) {
2367
+ let index = 0;
2368
+ for (const element of iterable) {
2369
+ fn(element, index);
2370
+ index++;
2371
+ }
2372
+ }
2373
+ each$1.each = each;
2374
+
2375
+ var everyAsync$1 = {};
2376
+
2377
+ everyAsync$1.everyAsync = void 0;
2378
+ const types_1$7 = es2018$1;
2379
+ function everyAsync(iterable, predicate) {
2380
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
2381
+ return everyAsyncIterable(iterable);
2382
+ }
2383
+ else {
2384
+ return everyIterable(iterable);
2385
+ }
2386
+ async function everyIterable(iterable) {
2387
+ let index = 0;
2388
+ for (const element of iterable) {
2389
+ if (!await predicate(element, index))
2390
+ return false;
2391
+ index++;
2392
+ }
2393
+ return true;
2394
+ }
2395
+ async function everyAsyncIterable(iterable) {
2396
+ let index = 0;
2397
+ for await (const element of iterable) {
2398
+ if (!await predicate(element, index))
2399
+ return false;
2400
+ index++;
2401
+ }
2402
+ return true;
2403
+ }
2404
+ }
2405
+ everyAsync$1.everyAsync = everyAsync;
2406
+
2407
+ var every$1 = {};
2408
+
2409
+ every$1.every = void 0;
2410
+ function every(iterable, predicate) {
2411
+ let index = 0;
2412
+ for (const element of iterable) {
2413
+ if (!predicate(element, index))
2414
+ return false;
2415
+ index++;
2416
+ }
2417
+ return true;
2418
+ }
2419
+ every$1.every = every;
2420
+
2421
+ var findAsync$1 = {};
2422
+
2423
+ findAsync$1.findAsync = void 0;
2424
+ const types_1$6 = es2018$1;
2425
+ function findAsync(iterable, predicate) {
2426
+ if ((0, types_1$6.isAsyncIterable)(iterable)) {
2427
+ return findAsyncIterable(iterable);
2428
+ }
2429
+ else {
2430
+ return findIterable(iterable);
2431
+ }
2432
+ async function findIterable(iterable) {
2433
+ let index = 0;
2434
+ for (const element of iterable) {
2435
+ if (await predicate(element, index))
2436
+ return element;
2437
+ index++;
2438
+ }
2439
+ return undefined;
2440
+ }
2441
+ async function findAsyncIterable(iterable) {
2442
+ let index = 0;
2443
+ for await (const element of iterable) {
2444
+ if (await predicate(element, index))
2445
+ return element;
2446
+ index++;
2447
+ }
2448
+ return undefined;
2449
+ }
2450
+ }
2451
+ findAsync$1.findAsync = findAsync;
2452
+
2453
+ var find$1 = {};
2454
+
2455
+ find$1.find = void 0;
2456
+ function find(iterable, predicate) {
2457
+ let index = 0;
2458
+ for (const element of iterable) {
2459
+ if (predicate(element, index))
2460
+ return element;
2461
+ index++;
2462
+ }
2463
+ return undefined;
2464
+ }
2465
+ find$1.find = find;
2466
+
2467
+ var firstAsync$1 = {};
2468
+
2469
+ firstAsync$1.firstAsync = void 0;
2470
+ async function firstAsync(iterable) {
2471
+ for await (const element of iterable) {
2472
+ return element;
2473
+ }
2474
+ return undefined;
2475
+ }
2476
+ firstAsync$1.firstAsync = firstAsync;
2477
+
2478
+ var first$1 = {};
2479
+
2480
+ first$1.first = void 0;
2481
+ function first(iterable) {
2482
+ for (const element of iterable) {
2483
+ return element;
2484
+ }
2485
+ return undefined;
2486
+ }
2487
+ first$1.first = first;
2488
+
2489
+ var includesAsync$1 = {};
2490
+
2491
+ includesAsync$1.includesAsync = void 0;
2492
+ async function includesAsync(iterable, value) {
2493
+ for await (const element of iterable) {
2494
+ if (element === value)
2495
+ return true;
2496
+ }
2497
+ return false;
2498
+ }
2499
+ includesAsync$1.includesAsync = includesAsync;
2500
+
2501
+ var includes$1 = {};
2502
+
2503
+ includes$1.includes = void 0;
2504
+ function includes(iterable, value) {
2505
+ for (const element of iterable) {
2506
+ if (element === value)
2507
+ return true;
2508
+ }
2509
+ return false;
2510
+ }
2511
+ includes$1.includes = includes;
2512
+
2513
+ var matchAsync$1 = {};
2514
+
2515
+ matchAsync$1.matchAsync = void 0;
2516
+ async function matchAsync(iterable, sequence) {
2517
+ const sequenceLength = sequence.length;
2518
+ let matchCount = 0;
2519
+ for await (const element of iterable) {
2520
+ if (element === sequence[matchCount])
2521
+ matchCount++;
2522
+ if (matchCount === sequenceLength)
2523
+ return true;
2524
+ }
2525
+ return false;
2526
+ }
2527
+ matchAsync$1.matchAsync = matchAsync;
2528
+
2529
+ var match$1 = {};
2530
+
2531
+ match$1.match = void 0;
2532
+ function match(iterable, sequence) {
2533
+ const sequenceLength = sequence.length;
2534
+ let matchCount = 0;
2535
+ for (const element of iterable) {
2536
+ if (element === sequence[matchCount])
2537
+ matchCount++;
2538
+ if (matchCount === sequenceLength)
2539
+ return true;
2540
+ }
2541
+ return false;
2542
+ }
2543
+ match$1.match = match;
2544
+
2545
+ var reduceAsync$1 = {};
2546
+
2547
+ reduceAsync$1.reduceAsync = void 0;
2548
+ const types_1$5 = es2018$1;
2549
+ function reduceAsync(iterable, fn, initialValue) {
2550
+ if ((0, types_1$5.isUndefined)(initialValue)) {
2551
+ return reduceAsyncWithoutInitialValue(iterable, fn);
2552
+ }
2553
+ else {
2554
+ return reduceAsyncWithInitialValue(iterable, fn, initialValue);
2555
+ }
2556
+ }
2557
+ reduceAsync$1.reduceAsync = reduceAsync;
2558
+ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2559
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2560
+ return reduceAsyncIterable(iterable);
2561
+ }
2562
+ else {
2563
+ return reduceIterable(iterable);
2564
+ }
2565
+ async function reduceIterable(iterable) {
2566
+ let result = initialValue, index = 0;
2567
+ for (const currentValue of iterable) {
2568
+ result = await fn(result, currentValue, index++);
2569
+ }
2570
+ return result;
2571
+ }
2572
+ async function reduceAsyncIterable(iterable) {
2573
+ let result = initialValue, index = 0;
2574
+ for await (const currentValue of iterable) {
2575
+ result = await fn(result, currentValue, index++);
2576
+ }
2577
+ return result;
2578
+ }
2579
+ }
2580
+ function reduceAsyncWithoutInitialValue(iterable, fn) {
2581
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2582
+ return reduceAsyncIterable(iterable);
2583
+ }
2584
+ else {
2585
+ return reduceIterable(iterable);
2586
+ }
2587
+ async function reduceAsyncIterable(iterable) {
2588
+ var _a;
2589
+ const iterator = iterable[Symbol.asyncIterator]();
2590
+ let done;
2591
+ try {
2592
+ let result = await readInitialValue(iterator);
2593
+ let index = 1;
2594
+ let value;
2595
+ while ({ value, done } = await iterator.next(), !done) {
2596
+ result = await fn(result, value, index++);
2597
+ }
2598
+ return result;
2599
+ }
2600
+ finally {
2601
+ if (!done)
2602
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
2603
+ }
2604
+ async function readInitialValue(iterator) {
2605
+ const result = await iterator.next();
2606
+ if (result.done) {
2607
+ done = true;
2608
+ throw new Error('Reduce of empty iterable with no initial value');
2609
+ }
2610
+ return result.value;
2611
+ }
2612
+ }
2613
+ async function reduceIterable(iterable) {
2614
+ var _a;
2615
+ const iterator = iterable[Symbol.iterator]();
2616
+ let done;
2617
+ try {
2618
+ let result = readInitialValue(iterator);
2619
+ let index = 1;
2620
+ let value;
2621
+ while ({ value, done } = iterator.next(), !done) {
2622
+ result = await fn(result, value, index++);
2623
+ }
2624
+ return result;
2625
+ }
2626
+ finally {
2627
+ if (!done)
2628
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
2629
+ }
2630
+ function readInitialValue(iterator) {
2631
+ const result = iterator.next();
2632
+ if (result.done) {
2633
+ done = true;
2634
+ throw new Error('Reduce of empty iterable with no initial value');
2635
+ }
2636
+ return result.value;
2637
+ }
2638
+ }
2639
+ }
2640
+
2641
+ var reduce$1 = {};
2642
+
2643
+ reduce$1.reduce = void 0;
2644
+ const types_1$4 = es2018$1;
2645
+ function reduce(iterable, fn, initialValue) {
2646
+ if ((0, types_1$4.isUndefined)(initialValue)) {
2647
+ return reduceWithoutInitialValue(iterable, fn);
2648
+ }
2649
+ else {
2650
+ return reduceWithInitialValue(iterable, fn, initialValue);
2651
+ }
2652
+ }
2653
+ reduce$1.reduce = reduce;
2654
+ function reduceWithInitialValue(iterable, fn, initialValue) {
2655
+ let result = initialValue, index = 0;
2656
+ for (const currentValue of iterable) {
2657
+ result = fn(result, currentValue, index++);
2658
+ }
2659
+ return result;
2660
+ }
2661
+ function reduceWithoutInitialValue(iterable, fn) {
2662
+ var _a;
2663
+ const iterator = iterable[Symbol.iterator]();
2664
+ let done;
2665
+ try {
2666
+ let result = readInitialValue(iterator);
2667
+ let index = 1;
2668
+ let value;
2669
+ while ({ value, done } = iterator.next(), !done) {
2670
+ result = fn(result, value, index++);
2671
+ }
2672
+ return result;
2673
+ }
2674
+ finally {
2675
+ if (!done)
2676
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
2677
+ }
2678
+ function readInitialValue(iterator) {
2679
+ const result = iterator.next();
2680
+ if (result.done) {
2681
+ done = true;
2682
+ throw new Error('Reduce of empty iterable with no initial value');
2683
+ }
2684
+ return result.value;
2685
+ }
2686
+ }
2687
+
2688
+ var someAsync$1 = {};
2689
+
2690
+ someAsync$1.someAsync = void 0;
2691
+ const types_1$3 = es2018$1;
2692
+ function someAsync(iterable, predicate) {
2693
+ if ((0, types_1$3.isAsyncIterable)(iterable)) {
2694
+ return someAsyncIterable(iterable);
2695
+ }
2696
+ else {
2697
+ return someIterable(iterable);
2698
+ }
2699
+ async function someIterable(iterable) {
2700
+ let index = 0;
2701
+ for (const element of iterable) {
2702
+ if (await predicate(element, index))
2703
+ return true;
2704
+ index++;
2705
+ }
2706
+ return false;
2707
+ }
2708
+ async function someAsyncIterable(iterable) {
2709
+ let index = 0;
2710
+ for await (const element of iterable) {
2711
+ if (await predicate(element, index))
2712
+ return true;
2713
+ index++;
2714
+ }
2715
+ return false;
2716
+ }
2717
+ }
2718
+ someAsync$1.someAsync = someAsync;
2719
+
2720
+ var some$1 = {};
2721
+
2722
+ some$1.some = void 0;
2723
+ function some(iterable, predicate) {
2724
+ let index = 0;
2725
+ for (const element of iterable) {
2726
+ if (predicate(element, index))
2727
+ return true;
2728
+ index++;
2729
+ }
2730
+ return false;
2731
+ }
2732
+ some$1.some = some;
2733
+
2734
+ var lastAsync$1 = {};
2735
+
2736
+ lastAsync$1.lastAsync = void 0;
2737
+ async function lastAsync(iterable) {
2738
+ var _a;
2739
+ const iterator = iterable[Symbol.asyncIterator]();
2740
+ let done;
2741
+ try {
2742
+ let value;
2743
+ let result;
2744
+ while ({ value, done } = await iterator.next(), !done) {
2745
+ result = value;
2746
+ }
2747
+ return result;
2748
+ }
2749
+ finally {
2750
+ if (!done)
2751
+ await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
2752
+ }
2753
+ }
2754
+ lastAsync$1.lastAsync = lastAsync;
2755
+
2756
+ var last$1 = {};
2757
+
2758
+ last$1.last = void 0;
2759
+ function last(iterable) {
2760
+ var _a;
2761
+ const iterator = iterable[Symbol.iterator]();
2762
+ let done;
2763
+ try {
2764
+ let value;
2765
+ let result;
2766
+ while ({ value, done } = iterator.next(), !done) {
2767
+ result = value;
2768
+ }
2769
+ return result;
2770
+ }
2771
+ finally {
2772
+ if (!done)
2773
+ (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
2774
+ }
2775
+ }
2776
+ last$1.last = last;
2777
+
2778
+ var toArrayAsync$1 = {};
2779
+
2780
+ toArrayAsync$1.toArrayAsync = void 0;
2781
+ const consume_1$3 = consume$1;
2782
+ function toArrayAsync(iterable) {
2783
+ return (0, consume_1$3.consume)(iterable, async (iterable) => {
2784
+ const result = [];
2785
+ for await (const element of iterable) {
2786
+ result.push(element);
2787
+ }
2788
+ return result;
2789
+ });
2790
+ }
2791
+ toArrayAsync$1.toArrayAsync = toArrayAsync;
2792
+
2793
+ var toArray$1 = {};
2794
+
2795
+ toArray$1.toArray = void 0;
2796
+ const consume_1$2 = consume$1;
2797
+ function toArray(iterable) {
2798
+ return (0, consume_1$2.consume)(iterable, iterable => Array.from(iterable));
2799
+ }
2800
+ toArray$1.toArray = toArray;
2801
+
2802
+ var toSetAsync$1 = {};
2803
+
2804
+ toSetAsync$1.toSetAsync = void 0;
2805
+ const consume_1$1 = consume$1;
2806
+ function toSetAsync(iterable) {
2807
+ return (0, consume_1$1.consume)(iterable, async (iterable) => {
2808
+ const result = new Set();
2809
+ for await (const element of iterable) {
2810
+ result.add(element);
2811
+ }
2812
+ return result;
2813
+ });
2814
+ }
2815
+ toSetAsync$1.toSetAsync = toSetAsync;
2816
+
2817
+ var toSet$1 = {};
2818
+
2819
+ toSet$1.toSet = void 0;
2820
+ const consume_1 = consume$1;
2821
+ function toSet(iterable) {
2822
+ return (0, consume_1.consume)(iterable, iterable => new Set(iterable));
2823
+ }
2824
+ toSet$1.toSet = toSet;
2825
+
2826
+ (function (exports) {
2827
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2828
+ if (k2 === undefined) k2 = k;
2829
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2830
+ }) : (function(o, m, k, k2) {
2831
+ if (k2 === undefined) k2 = k;
2832
+ o[k2] = m[k];
2833
+ }));
2834
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2835
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2836
+ };__exportStar(consume$1, exports);
2837
+ __exportStar(eachAsync$1, exports);
2838
+ __exportStar(each$1, exports);
2839
+ __exportStar(everyAsync$1, exports);
2840
+ __exportStar(every$1, exports);
2841
+ __exportStar(findAsync$1, exports);
2842
+ __exportStar(find$1, exports);
2843
+ __exportStar(firstAsync$1, exports);
2844
+ __exportStar(first$1, exports);
2845
+ __exportStar(includesAsync$1, exports);
2846
+ __exportStar(includes$1, exports);
2847
+ __exportStar(matchAsync$1, exports);
2848
+ __exportStar(match$1, exports);
2849
+ __exportStar(reduceAsync$1, exports);
2850
+ __exportStar(reduce$1, exports);
2851
+ __exportStar(someAsync$1, exports);
2852
+ __exportStar(some$1, exports);
2853
+ __exportStar(lastAsync$1, exports);
2854
+ __exportStar(last$1, exports);
2855
+ __exportStar(toArrayAsync$1, exports);
2856
+ __exportStar(toArray$1, exports);
2857
+ __exportStar(toSetAsync$1, exports);
2858
+ __exportStar(toSet$1, exports);
2859
+
2860
+ }(output));
2861
+
2862
+ (function (exports) {
2863
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2864
+ if (k2 === undefined) k2 = k;
2865
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2866
+ }) : (function(o, m, k, k2) {
2867
+ if (k2 === undefined) k2 = k;
2868
+ o[k2] = m[k];
2869
+ }));
2870
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2871
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2872
+ };__exportStar(middleware, exports);
2873
+ __exportStar(output, exports);
2874
+
2875
+ }(es2018$4));
2876
+
2877
+ var getErrorNames$1 = {};
2878
+
2879
+ var traverseErrorPrototypeChain$1 = {};
2880
+
2881
+ traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = void 0;
2882
+ function* traverseErrorPrototypeChain(err) {
2883
+ let current = err;
2884
+ while ((current = Object.getPrototypeOf(current))) {
2885
+ yield current;
2886
+ if (current === Error.prototype)
2887
+ break;
2888
+ }
2889
+ }
2890
+ traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
2891
+
2892
+ getErrorNames$1.getErrorNames = void 0;
2893
+ const types_1$2 = es2018$6;
2894
+ const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
2895
+ function* getErrorNames(err) {
2896
+ var _a;
2897
+ if ((0, types_1$2.isError)(err)) {
2898
+ for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
2899
+ if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
2900
+ yield prototype.constructor.name;
2901
+ }
2902
+ }
2903
+ }
2904
+ else {
2905
+ yield err.name;
2906
+ yield* err.ancestors;
2907
+ }
2908
+ }
2909
+ getErrorNames$1.getErrorNames = getErrorNames;
2910
+
2911
+ var serializableError = {};
2912
+
2913
+ serializableError.isSerializableError = void 0;
2914
+ const types_1$1 = es2018$6;
2915
+ function isSerializableError(val) {
2916
+ return (0, types_1$1.isObject)(val)
2917
+ && (0, types_1$1.isString)(val.name)
2918
+ && (0, types_1$1.isString)(val.message)
2919
+ && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
2920
+ && ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
2921
+ }
2922
+ serializableError.isSerializableError = isSerializableError;
2923
+
2924
+ customError$1.CustomError = void 0;
2925
+ const iterable_operator_1$1 = es2018$4;
2926
+ const get_error_names_1$1 = getErrorNames$1;
2927
+ const types_1 = es2018$6;
2928
+ const serializable_error_1 = serializableError;
2929
+ class CustomError extends Error {
2930
+ get name() {
2931
+ var _a, _b;
2932
+ return (_b = (_a = (0, iterable_operator_1$1.first)((0, get_error_names_1$1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
2933
+ }
2934
+ static [Symbol.hasInstance](instance) {
2935
+ var _a;
2936
+ if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
2937
+ const reversedClassNames = [
2938
+ (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
2939
+ ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
2940
+ ].reverse();
2941
+ const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
2942
+ return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
2943
+ }
2944
+ else {
2945
+ return false;
2946
+ }
2947
+ }
2948
+ }
2949
+ customError$1.CustomError = CustomError;
2950
+
2951
+ var assertionError = {};
2952
+
2953
+ assertionError.AssertionError = void 0;
2954
+ const custom_error_1 = customError$1;
2955
+ class AssertionError extends custom_error_1.CustomError {
2956
+ }
2957
+ assertionError.AssertionError = AssertionError;
2958
+
2959
+ var normalize$1 = {};
2960
+
2961
+ normalize$1.normalize = void 0;
2962
+ const get_error_names_1 = getErrorNames$1;
2963
+ const iterable_operator_1 = es2018$4;
2964
+ function normalize(err) {
2965
+ var _a;
2966
+ const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
2967
+ return {
2968
+ name,
2969
+ ancestors,
2970
+ message: err.message,
2971
+ stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
2972
+ };
2973
+ }
2974
+ normalize$1.normalize = normalize;
2975
+
2976
+ var hydrate$1 = {};
2977
+
2978
+ var es2018 = {};
2979
+
2980
+ var pass$1 = {};
2981
+
2982
+ pass$1.pass = void 0;
2983
+ function pass() { }
2984
+ pass$1.pass = pass;
2985
+
2986
+ (function (exports) {
2987
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2988
+ if (k2 === undefined) k2 = k;
2989
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2990
+ }) : (function(o, m, k, k2) {
2991
+ if (k2 === undefined) k2 = k;
2992
+ o[k2] = m[k];
2993
+ }));
2994
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2995
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2996
+ };__exportStar(pass$1, exports);
2997
+
2998
+ }(es2018));
2999
+
3000
+ hydrate$1.hydrate = void 0;
3001
+ const pass_1 = es2018;
3002
+ function hydrate(err) {
3003
+ var _a;
3004
+ const errorNames = [err.name, ...err.ancestors]
3005
+ .slice(0, -1)
3006
+ .reverse();
3007
+ let errorConstructor = Error;
3008
+ for (const name of errorNames) {
3009
+ errorConstructor = createChildErrorConstructor(errorConstructor, name);
3010
+ }
3011
+ const result = new errorConstructor();
3012
+ result.name = err.name;
3013
+ result.message = err.message;
3014
+ result.stack = (_a = err.stack) !== null && _a !== void 0 ? _a : undefined;
3015
+ return result;
3016
+ }
3017
+ hydrate$1.hydrate = hydrate;
3018
+ function createChildErrorConstructor(parentErrorConstructor, name) {
3019
+ const constructor = function () { (0, pass_1.pass)(); };
3020
+ constructor.prototype = Object.create(parentErrorConstructor.prototype);
3021
+ constructor.prototype.constructor = constructor;
3022
+ Object.defineProperty(constructor, 'name', { value: name });
3023
+ return constructor;
3024
+ }
3025
+
3026
+ var assert$1 = {};
3027
+
3028
+ assert$1.assert = void 0;
3029
+ const assertion_error_1 = assertionError;
3030
+ function assert(condition, message) {
3031
+ if (!condition)
3032
+ throw new assertion_error_1.AssertionError(message);
3033
+ }
3034
+ assert$1.assert = assert;
3035
+
3036
+ (function (exports) {
3037
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3038
+ if (k2 === undefined) k2 = k;
3039
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3040
+ }) : (function(o, m, k, k2) {
3041
+ if (k2 === undefined) k2 = k;
3042
+ o[k2] = m[k];
3043
+ }));
3044
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3045
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3046
+ };__exportStar(customError$1, exports);
3047
+ __exportStar(assertionError, exports);
3048
+ __exportStar(serializableError, exports);
3049
+ __exportStar(normalize$1, exports);
3050
+ __exportStar(hydrate$1, exports);
3051
+ __exportStar(assert$1, exports);
3052
+ __exportStar(getErrorNames$1, exports);
3053
+ __exportStar(traverseErrorPrototypeChain$1, exports);
3054
+
3055
+ }(es2018$5));
736
3056
 
737
3057
  function csv(payload) {
738
- es2018.assert(payload.length > 0, 'payload must be a non-empty array');
3058
+ es2018$5.assert(payload.length > 0, 'payload must be a non-empty array');
739
3059
  return (options) => {
740
- const headers = new es2018$2.Headers(options.headers);
3060
+ const headers = new es2018$7.Headers(options.headers);
741
3061
  headers.set('Content-Type', 'text/csv');
742
3062
  return {
743
3063
  ...options,
@@ -762,7 +3082,7 @@
762
3082
 
763
3083
  function header(name, value) {
764
3084
  return (options) => {
765
- const headers = new es2018$2.Headers(options.headers);
3085
+ const headers = new es2018$7.Headers(options.headers);
766
3086
  headers.set(name, value);
767
3087
  return {
768
3088
  ...options,
@@ -773,7 +3093,7 @@
773
3093
 
774
3094
  function appendHeader(name, value) {
775
3095
  return (options) => {
776
- const headers = new es2018$2.Headers(options.headers);
3096
+ const headers = new es2018$7.Headers(options.headers);
777
3097
  headers.append(name, value);
778
3098
  return {
779
3099
  ...options,
@@ -784,7 +3104,7 @@
784
3104
 
785
3105
  function headers(headers) {
786
3106
  return (options) => {
787
- const newHeaders = new es2018$2.Headers(options.headers);
3107
+ const newHeaders = new es2018$7.Headers(options.headers);
788
3108
  for (const [name, value] of Object.entries(headers)) {
789
3109
  newHeaders.set(name, value);
790
3110
  }
@@ -886,10 +3206,10 @@
886
3206
 
887
3207
  function formDataField(name, value) {
888
3208
  return (options) => {
889
- const formData = options.payload instanceof es2018$2.FormData
3209
+ const formData = options.payload instanceof es2018$7.FormData
890
3210
  ? cloneFormData(options.payload)
891
- : new es2018$2.FormData();
892
- if (es2018$1.isArray(value)) {
3211
+ : new es2018$7.FormData();
3212
+ if (es2018$6.isArray(value)) {
893
3213
  value.forEach(x => formData.append(name, x));
894
3214
  }
895
3215
  else {
@@ -902,7 +3222,7 @@
902
3222
  };
903
3223
  }
904
3224
  function cloneFormData(formData) {
905
- const result = new es2018$2.FormData();
3225
+ const result = new es2018$7.FormData();
906
3226
  for (const [name, value] of formData.entries()) {
907
3227
  result.append(name, value);
908
3228
  }
@@ -994,7 +3314,7 @@
994
3314
  exports.header = header;
995
3315
  exports.headers = headers;
996
3316
  exports.host = host;
997
- exports.json = json;
3317
+ exports.json = json$1;
998
3318
  exports.keepalive = keepalive;
999
3319
  exports.patch = patch;
1000
3320
  exports.pathname = pathname;
@@ -1006,7 +3326,7 @@
1006
3326
  exports.searchParams = searchParams;
1007
3327
  exports.signal = signal;
1008
3328
  exports.text = text;
1009
- exports.url = url;
3329
+ exports.url = url$1;
1010
3330
 
1011
3331
  Object.defineProperty(exports, '__esModule', { value: true });
1012
3332