@mendable/firecrawl-js 1.23.5 → 1.23.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/dist/index.cjs +489 -1687
  2. package/dist/index.js +488 -1686
  3. package/package.json +1 -1
  4. package/dump.rdb +0 -0
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ var require_delayed_stream = __commonJS({
39
39
  "node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
40
40
  "use strict";
41
41
  var Stream = __require("stream").Stream;
42
- var util3 = __require("util");
42
+ var util2 = __require("util");
43
43
  module.exports = DelayedStream;
44
44
  function DelayedStream() {
45
45
  this.source = null;
@@ -50,7 +50,7 @@ var require_delayed_stream = __commonJS({
50
50
  this._released = false;
51
51
  this._bufferedEvents = [];
52
52
  }
53
- util3.inherits(DelayedStream, Stream);
53
+ util2.inherits(DelayedStream, Stream);
54
54
  DelayedStream.create = function(source, options) {
55
55
  var delayedStream = new this();
56
56
  options = options || {};
@@ -130,7 +130,7 @@ var require_delayed_stream = __commonJS({
130
130
  var require_combined_stream = __commonJS({
131
131
  "node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
132
132
  "use strict";
133
- var util3 = __require("util");
133
+ var util2 = __require("util");
134
134
  var Stream = __require("stream").Stream;
135
135
  var DelayedStream = require_delayed_stream();
136
136
  module.exports = CombinedStream;
@@ -146,7 +146,7 @@ var require_combined_stream = __commonJS({
146
146
  this._insideLoop = false;
147
147
  this._pendingNext = false;
148
148
  }
149
- util3.inherits(CombinedStream, Stream);
149
+ util2.inherits(CombinedStream, Stream);
150
150
  CombinedStream.create = function(options) {
151
151
  var combinedStream = new this();
152
152
  options = options || {};
@@ -9138,852 +9138,6 @@ var require_asynckit = __commonJS({
9138
9138
  }
9139
9139
  });
9140
9140
 
9141
- // node_modules/es-object-atoms/index.js
9142
- var require_es_object_atoms = __commonJS({
9143
- "node_modules/es-object-atoms/index.js"(exports, module) {
9144
- "use strict";
9145
- module.exports = Object;
9146
- }
9147
- });
9148
-
9149
- // node_modules/es-errors/index.js
9150
- var require_es_errors = __commonJS({
9151
- "node_modules/es-errors/index.js"(exports, module) {
9152
- "use strict";
9153
- module.exports = Error;
9154
- }
9155
- });
9156
-
9157
- // node_modules/es-errors/eval.js
9158
- var require_eval = __commonJS({
9159
- "node_modules/es-errors/eval.js"(exports, module) {
9160
- "use strict";
9161
- module.exports = EvalError;
9162
- }
9163
- });
9164
-
9165
- // node_modules/es-errors/range.js
9166
- var require_range = __commonJS({
9167
- "node_modules/es-errors/range.js"(exports, module) {
9168
- "use strict";
9169
- module.exports = RangeError;
9170
- }
9171
- });
9172
-
9173
- // node_modules/es-errors/ref.js
9174
- var require_ref = __commonJS({
9175
- "node_modules/es-errors/ref.js"(exports, module) {
9176
- "use strict";
9177
- module.exports = ReferenceError;
9178
- }
9179
- });
9180
-
9181
- // node_modules/es-errors/syntax.js
9182
- var require_syntax = __commonJS({
9183
- "node_modules/es-errors/syntax.js"(exports, module) {
9184
- "use strict";
9185
- module.exports = SyntaxError;
9186
- }
9187
- });
9188
-
9189
- // node_modules/es-errors/type.js
9190
- var require_type = __commonJS({
9191
- "node_modules/es-errors/type.js"(exports, module) {
9192
- "use strict";
9193
- module.exports = TypeError;
9194
- }
9195
- });
9196
-
9197
- // node_modules/es-errors/uri.js
9198
- var require_uri = __commonJS({
9199
- "node_modules/es-errors/uri.js"(exports, module) {
9200
- "use strict";
9201
- module.exports = URIError;
9202
- }
9203
- });
9204
-
9205
- // node_modules/math-intrinsics/abs.js
9206
- var require_abs = __commonJS({
9207
- "node_modules/math-intrinsics/abs.js"(exports, module) {
9208
- "use strict";
9209
- module.exports = Math.abs;
9210
- }
9211
- });
9212
-
9213
- // node_modules/math-intrinsics/floor.js
9214
- var require_floor = __commonJS({
9215
- "node_modules/math-intrinsics/floor.js"(exports, module) {
9216
- "use strict";
9217
- module.exports = Math.floor;
9218
- }
9219
- });
9220
-
9221
- // node_modules/math-intrinsics/max.js
9222
- var require_max = __commonJS({
9223
- "node_modules/math-intrinsics/max.js"(exports, module) {
9224
- "use strict";
9225
- module.exports = Math.max;
9226
- }
9227
- });
9228
-
9229
- // node_modules/math-intrinsics/min.js
9230
- var require_min = __commonJS({
9231
- "node_modules/math-intrinsics/min.js"(exports, module) {
9232
- "use strict";
9233
- module.exports = Math.min;
9234
- }
9235
- });
9236
-
9237
- // node_modules/math-intrinsics/pow.js
9238
- var require_pow = __commonJS({
9239
- "node_modules/math-intrinsics/pow.js"(exports, module) {
9240
- "use strict";
9241
- module.exports = Math.pow;
9242
- }
9243
- });
9244
-
9245
- // node_modules/math-intrinsics/round.js
9246
- var require_round = __commonJS({
9247
- "node_modules/math-intrinsics/round.js"(exports, module) {
9248
- "use strict";
9249
- module.exports = Math.round;
9250
- }
9251
- });
9252
-
9253
- // node_modules/math-intrinsics/isNaN.js
9254
- var require_isNaN = __commonJS({
9255
- "node_modules/math-intrinsics/isNaN.js"(exports, module) {
9256
- "use strict";
9257
- module.exports = Number.isNaN || function isNaN2(a) {
9258
- return a !== a;
9259
- };
9260
- }
9261
- });
9262
-
9263
- // node_modules/math-intrinsics/sign.js
9264
- var require_sign = __commonJS({
9265
- "node_modules/math-intrinsics/sign.js"(exports, module) {
9266
- "use strict";
9267
- var $isNaN = require_isNaN();
9268
- module.exports = function sign(number) {
9269
- if ($isNaN(number) || number === 0) {
9270
- return number;
9271
- }
9272
- return number < 0 ? -1 : 1;
9273
- };
9274
- }
9275
- });
9276
-
9277
- // node_modules/gopd/gOPD.js
9278
- var require_gOPD = __commonJS({
9279
- "node_modules/gopd/gOPD.js"(exports, module) {
9280
- "use strict";
9281
- module.exports = Object.getOwnPropertyDescriptor;
9282
- }
9283
- });
9284
-
9285
- // node_modules/gopd/index.js
9286
- var require_gopd = __commonJS({
9287
- "node_modules/gopd/index.js"(exports, module) {
9288
- "use strict";
9289
- var $gOPD = require_gOPD();
9290
- if ($gOPD) {
9291
- try {
9292
- $gOPD([], "length");
9293
- } catch (e2) {
9294
- $gOPD = null;
9295
- }
9296
- }
9297
- module.exports = $gOPD;
9298
- }
9299
- });
9300
-
9301
- // node_modules/es-define-property/index.js
9302
- var require_es_define_property = __commonJS({
9303
- "node_modules/es-define-property/index.js"(exports, module) {
9304
- "use strict";
9305
- var $defineProperty = Object.defineProperty || false;
9306
- if ($defineProperty) {
9307
- try {
9308
- $defineProperty({}, "a", { value: 1 });
9309
- } catch (e2) {
9310
- $defineProperty = false;
9311
- }
9312
- }
9313
- module.exports = $defineProperty;
9314
- }
9315
- });
9316
-
9317
- // node_modules/has-symbols/shams.js
9318
- var require_shams = __commonJS({
9319
- "node_modules/has-symbols/shams.js"(exports, module) {
9320
- "use strict";
9321
- module.exports = function hasSymbols() {
9322
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
9323
- return false;
9324
- }
9325
- if (typeof Symbol.iterator === "symbol") {
9326
- return true;
9327
- }
9328
- var obj = {};
9329
- var sym = Symbol("test");
9330
- var symObj = Object(sym);
9331
- if (typeof sym === "string") {
9332
- return false;
9333
- }
9334
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
9335
- return false;
9336
- }
9337
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
9338
- return false;
9339
- }
9340
- var symVal = 42;
9341
- obj[sym] = symVal;
9342
- for (var _ in obj) {
9343
- return false;
9344
- }
9345
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
9346
- return false;
9347
- }
9348
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
9349
- return false;
9350
- }
9351
- var syms = Object.getOwnPropertySymbols(obj);
9352
- if (syms.length !== 1 || syms[0] !== sym) {
9353
- return false;
9354
- }
9355
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
9356
- return false;
9357
- }
9358
- if (typeof Object.getOwnPropertyDescriptor === "function") {
9359
- var descriptor = (
9360
- /** @type {PropertyDescriptor} */
9361
- Object.getOwnPropertyDescriptor(obj, sym)
9362
- );
9363
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
9364
- return false;
9365
- }
9366
- }
9367
- return true;
9368
- };
9369
- }
9370
- });
9371
-
9372
- // node_modules/has-symbols/index.js
9373
- var require_has_symbols = __commonJS({
9374
- "node_modules/has-symbols/index.js"(exports, module) {
9375
- "use strict";
9376
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
9377
- var hasSymbolSham = require_shams();
9378
- module.exports = function hasNativeSymbols() {
9379
- if (typeof origSymbol !== "function") {
9380
- return false;
9381
- }
9382
- if (typeof Symbol !== "function") {
9383
- return false;
9384
- }
9385
- if (typeof origSymbol("foo") !== "symbol") {
9386
- return false;
9387
- }
9388
- if (typeof Symbol("bar") !== "symbol") {
9389
- return false;
9390
- }
9391
- return hasSymbolSham();
9392
- };
9393
- }
9394
- });
9395
-
9396
- // node_modules/get-proto/Reflect.getPrototypeOf.js
9397
- var require_Reflect_getPrototypeOf = __commonJS({
9398
- "node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
9399
- "use strict";
9400
- module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
9401
- }
9402
- });
9403
-
9404
- // node_modules/get-proto/Object.getPrototypeOf.js
9405
- var require_Object_getPrototypeOf = __commonJS({
9406
- "node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
9407
- "use strict";
9408
- var $Object = require_es_object_atoms();
9409
- module.exports = $Object.getPrototypeOf || null;
9410
- }
9411
- });
9412
-
9413
- // node_modules/function-bind/implementation.js
9414
- var require_implementation = __commonJS({
9415
- "node_modules/function-bind/implementation.js"(exports, module) {
9416
- "use strict";
9417
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
9418
- var toStr = Object.prototype.toString;
9419
- var max = Math.max;
9420
- var funcType = "[object Function]";
9421
- var concatty = function concatty2(a, b) {
9422
- var arr = [];
9423
- for (var i = 0; i < a.length; i += 1) {
9424
- arr[i] = a[i];
9425
- }
9426
- for (var j = 0; j < b.length; j += 1) {
9427
- arr[j + a.length] = b[j];
9428
- }
9429
- return arr;
9430
- };
9431
- var slicy = function slicy2(arrLike, offset) {
9432
- var arr = [];
9433
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
9434
- arr[j] = arrLike[i];
9435
- }
9436
- return arr;
9437
- };
9438
- var joiny = function(arr, joiner) {
9439
- var str = "";
9440
- for (var i = 0; i < arr.length; i += 1) {
9441
- str += arr[i];
9442
- if (i + 1 < arr.length) {
9443
- str += joiner;
9444
- }
9445
- }
9446
- return str;
9447
- };
9448
- module.exports = function bind2(that) {
9449
- var target = this;
9450
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
9451
- throw new TypeError(ERROR_MESSAGE + target);
9452
- }
9453
- var args = slicy(arguments, 1);
9454
- var bound;
9455
- var binder = function() {
9456
- if (this instanceof bound) {
9457
- var result = target.apply(
9458
- this,
9459
- concatty(args, arguments)
9460
- );
9461
- if (Object(result) === result) {
9462
- return result;
9463
- }
9464
- return this;
9465
- }
9466
- return target.apply(
9467
- that,
9468
- concatty(args, arguments)
9469
- );
9470
- };
9471
- var boundLength = max(0, target.length - args.length);
9472
- var boundArgs = [];
9473
- for (var i = 0; i < boundLength; i++) {
9474
- boundArgs[i] = "$" + i;
9475
- }
9476
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
9477
- if (target.prototype) {
9478
- var Empty = function Empty2() {
9479
- };
9480
- Empty.prototype = target.prototype;
9481
- bound.prototype = new Empty();
9482
- Empty.prototype = null;
9483
- }
9484
- return bound;
9485
- };
9486
- }
9487
- });
9488
-
9489
- // node_modules/function-bind/index.js
9490
- var require_function_bind = __commonJS({
9491
- "node_modules/function-bind/index.js"(exports, module) {
9492
- "use strict";
9493
- var implementation = require_implementation();
9494
- module.exports = Function.prototype.bind || implementation;
9495
- }
9496
- });
9497
-
9498
- // node_modules/call-bind-apply-helpers/functionCall.js
9499
- var require_functionCall = __commonJS({
9500
- "node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
9501
- "use strict";
9502
- module.exports = Function.prototype.call;
9503
- }
9504
- });
9505
-
9506
- // node_modules/call-bind-apply-helpers/functionApply.js
9507
- var require_functionApply = __commonJS({
9508
- "node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
9509
- "use strict";
9510
- module.exports = Function.prototype.apply;
9511
- }
9512
- });
9513
-
9514
- // node_modules/call-bind-apply-helpers/reflectApply.js
9515
- var require_reflectApply = __commonJS({
9516
- "node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
9517
- "use strict";
9518
- module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
9519
- }
9520
- });
9521
-
9522
- // node_modules/call-bind-apply-helpers/actualApply.js
9523
- var require_actualApply = __commonJS({
9524
- "node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
9525
- "use strict";
9526
- var bind2 = require_function_bind();
9527
- var $apply = require_functionApply();
9528
- var $call = require_functionCall();
9529
- var $reflectApply = require_reflectApply();
9530
- module.exports = $reflectApply || bind2.call($call, $apply);
9531
- }
9532
- });
9533
-
9534
- // node_modules/call-bind-apply-helpers/index.js
9535
- var require_call_bind_apply_helpers = __commonJS({
9536
- "node_modules/call-bind-apply-helpers/index.js"(exports, module) {
9537
- "use strict";
9538
- var bind2 = require_function_bind();
9539
- var $TypeError = require_type();
9540
- var $call = require_functionCall();
9541
- var $actualApply = require_actualApply();
9542
- module.exports = function callBindBasic(args) {
9543
- if (args.length < 1 || typeof args[0] !== "function") {
9544
- throw new $TypeError("a function is required");
9545
- }
9546
- return $actualApply(bind2, $call, args);
9547
- };
9548
- }
9549
- });
9550
-
9551
- // node_modules/dunder-proto/get.js
9552
- var require_get = __commonJS({
9553
- "node_modules/dunder-proto/get.js"(exports, module) {
9554
- "use strict";
9555
- var callBind = require_call_bind_apply_helpers();
9556
- var gOPD = require_gopd();
9557
- var hasProtoAccessor;
9558
- try {
9559
- hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
9560
- [].__proto__ === Array.prototype;
9561
- } catch (e2) {
9562
- if (!e2 || typeof e2 !== "object" || !("code" in e2) || e2.code !== "ERR_PROTO_ACCESS") {
9563
- throw e2;
9564
- }
9565
- }
9566
- var desc = !!hasProtoAccessor && gOPD && gOPD(
9567
- Object.prototype,
9568
- /** @type {keyof typeof Object.prototype} */
9569
- "__proto__"
9570
- );
9571
- var $Object = Object;
9572
- var $getPrototypeOf = $Object.getPrototypeOf;
9573
- module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
9574
- /** @type {import('./get')} */
9575
- function getDunder(value) {
9576
- return $getPrototypeOf(value == null ? value : $Object(value));
9577
- }
9578
- ) : false;
9579
- }
9580
- });
9581
-
9582
- // node_modules/get-proto/index.js
9583
- var require_get_proto = __commonJS({
9584
- "node_modules/get-proto/index.js"(exports, module) {
9585
- "use strict";
9586
- var reflectGetProto = require_Reflect_getPrototypeOf();
9587
- var originalGetProto = require_Object_getPrototypeOf();
9588
- var getDunderProto = require_get();
9589
- module.exports = reflectGetProto ? function getProto(O) {
9590
- return reflectGetProto(O);
9591
- } : originalGetProto ? function getProto(O) {
9592
- if (!O || typeof O !== "object" && typeof O !== "function") {
9593
- throw new TypeError("getProto: not an object");
9594
- }
9595
- return originalGetProto(O);
9596
- } : getDunderProto ? function getProto(O) {
9597
- return getDunderProto(O);
9598
- } : null;
9599
- }
9600
- });
9601
-
9602
- // node_modules/hasown/index.js
9603
- var require_hasown = __commonJS({
9604
- "node_modules/hasown/index.js"(exports, module) {
9605
- "use strict";
9606
- var call = Function.prototype.call;
9607
- var $hasOwn = Object.prototype.hasOwnProperty;
9608
- var bind2 = require_function_bind();
9609
- module.exports = bind2.call(call, $hasOwn);
9610
- }
9611
- });
9612
-
9613
- // node_modules/get-intrinsic/index.js
9614
- var require_get_intrinsic = __commonJS({
9615
- "node_modules/get-intrinsic/index.js"(exports, module) {
9616
- "use strict";
9617
- var undefined2;
9618
- var $Object = require_es_object_atoms();
9619
- var $Error = require_es_errors();
9620
- var $EvalError = require_eval();
9621
- var $RangeError = require_range();
9622
- var $ReferenceError = require_ref();
9623
- var $SyntaxError = require_syntax();
9624
- var $TypeError = require_type();
9625
- var $URIError = require_uri();
9626
- var abs = require_abs();
9627
- var floor = require_floor();
9628
- var max = require_max();
9629
- var min = require_min();
9630
- var pow = require_pow();
9631
- var round = require_round();
9632
- var sign = require_sign();
9633
- var $Function = Function;
9634
- var getEvalledConstructor = function(expressionSyntax) {
9635
- try {
9636
- return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
9637
- } catch (e2) {
9638
- }
9639
- };
9640
- var $gOPD = require_gopd();
9641
- var $defineProperty = require_es_define_property();
9642
- var throwTypeError = function() {
9643
- throw new $TypeError();
9644
- };
9645
- var ThrowTypeError = $gOPD ? function() {
9646
- try {
9647
- arguments.callee;
9648
- return throwTypeError;
9649
- } catch (calleeThrows) {
9650
- try {
9651
- return $gOPD(arguments, "callee").get;
9652
- } catch (gOPDthrows) {
9653
- return throwTypeError;
9654
- }
9655
- }
9656
- }() : throwTypeError;
9657
- var hasSymbols = require_has_symbols()();
9658
- var getProto = require_get_proto();
9659
- var $ObjectGPO = require_Object_getPrototypeOf();
9660
- var $ReflectGPO = require_Reflect_getPrototypeOf();
9661
- var $apply = require_functionApply();
9662
- var $call = require_functionCall();
9663
- var needsEval = {};
9664
- var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
9665
- var INTRINSICS = {
9666
- __proto__: null,
9667
- "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
9668
- "%Array%": Array,
9669
- "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
9670
- "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
9671
- "%AsyncFromSyncIteratorPrototype%": undefined2,
9672
- "%AsyncFunction%": needsEval,
9673
- "%AsyncGenerator%": needsEval,
9674
- "%AsyncGeneratorFunction%": needsEval,
9675
- "%AsyncIteratorPrototype%": needsEval,
9676
- "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
9677
- "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
9678
- "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
9679
- "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
9680
- "%Boolean%": Boolean,
9681
- "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
9682
- "%Date%": Date,
9683
- "%decodeURI%": decodeURI,
9684
- "%decodeURIComponent%": decodeURIComponent,
9685
- "%encodeURI%": encodeURI,
9686
- "%encodeURIComponent%": encodeURIComponent,
9687
- "%Error%": $Error,
9688
- "%eval%": eval,
9689
- // eslint-disable-line no-eval
9690
- "%EvalError%": $EvalError,
9691
- "%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
9692
- "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
9693
- "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
9694
- "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
9695
- "%Function%": $Function,
9696
- "%GeneratorFunction%": needsEval,
9697
- "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
9698
- "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
9699
- "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
9700
- "%isFinite%": isFinite,
9701
- "%isNaN%": isNaN,
9702
- "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
9703
- "%JSON%": typeof JSON === "object" ? JSON : undefined2,
9704
- "%Map%": typeof Map === "undefined" ? undefined2 : Map,
9705
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
9706
- "%Math%": Math,
9707
- "%Number%": Number,
9708
- "%Object%": $Object,
9709
- "%Object.getOwnPropertyDescriptor%": $gOPD,
9710
- "%parseFloat%": parseFloat,
9711
- "%parseInt%": parseInt,
9712
- "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
9713
- "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
9714
- "%RangeError%": $RangeError,
9715
- "%ReferenceError%": $ReferenceError,
9716
- "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
9717
- "%RegExp%": RegExp,
9718
- "%Set%": typeof Set === "undefined" ? undefined2 : Set,
9719
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
9720
- "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
9721
- "%String%": String,
9722
- "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
9723
- "%Symbol%": hasSymbols ? Symbol : undefined2,
9724
- "%SyntaxError%": $SyntaxError,
9725
- "%ThrowTypeError%": ThrowTypeError,
9726
- "%TypedArray%": TypedArray,
9727
- "%TypeError%": $TypeError,
9728
- "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
9729
- "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
9730
- "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
9731
- "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
9732
- "%URIError%": $URIError,
9733
- "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
9734
- "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
9735
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
9736
- "%Function.prototype.call%": $call,
9737
- "%Function.prototype.apply%": $apply,
9738
- "%Object.defineProperty%": $defineProperty,
9739
- "%Object.getPrototypeOf%": $ObjectGPO,
9740
- "%Math.abs%": abs,
9741
- "%Math.floor%": floor,
9742
- "%Math.max%": max,
9743
- "%Math.min%": min,
9744
- "%Math.pow%": pow,
9745
- "%Math.round%": round,
9746
- "%Math.sign%": sign,
9747
- "%Reflect.getPrototypeOf%": $ReflectGPO
9748
- };
9749
- if (getProto) {
9750
- try {
9751
- null.error;
9752
- } catch (e2) {
9753
- errorProto = getProto(getProto(e2));
9754
- INTRINSICS["%Error.prototype%"] = errorProto;
9755
- }
9756
- }
9757
- var errorProto;
9758
- var doEval = function doEval2(name) {
9759
- var value;
9760
- if (name === "%AsyncFunction%") {
9761
- value = getEvalledConstructor("async function () {}");
9762
- } else if (name === "%GeneratorFunction%") {
9763
- value = getEvalledConstructor("function* () {}");
9764
- } else if (name === "%AsyncGeneratorFunction%") {
9765
- value = getEvalledConstructor("async function* () {}");
9766
- } else if (name === "%AsyncGenerator%") {
9767
- var fn = doEval2("%AsyncGeneratorFunction%");
9768
- if (fn) {
9769
- value = fn.prototype;
9770
- }
9771
- } else if (name === "%AsyncIteratorPrototype%") {
9772
- var gen = doEval2("%AsyncGenerator%");
9773
- if (gen && getProto) {
9774
- value = getProto(gen.prototype);
9775
- }
9776
- }
9777
- INTRINSICS[name] = value;
9778
- return value;
9779
- };
9780
- var LEGACY_ALIASES = {
9781
- __proto__: null,
9782
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
9783
- "%ArrayPrototype%": ["Array", "prototype"],
9784
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
9785
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
9786
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
9787
- "%ArrayProto_values%": ["Array", "prototype", "values"],
9788
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
9789
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
9790
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
9791
- "%BooleanPrototype%": ["Boolean", "prototype"],
9792
- "%DataViewPrototype%": ["DataView", "prototype"],
9793
- "%DatePrototype%": ["Date", "prototype"],
9794
- "%ErrorPrototype%": ["Error", "prototype"],
9795
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
9796
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
9797
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
9798
- "%FunctionPrototype%": ["Function", "prototype"],
9799
- "%Generator%": ["GeneratorFunction", "prototype"],
9800
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
9801
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
9802
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
9803
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
9804
- "%JSONParse%": ["JSON", "parse"],
9805
- "%JSONStringify%": ["JSON", "stringify"],
9806
- "%MapPrototype%": ["Map", "prototype"],
9807
- "%NumberPrototype%": ["Number", "prototype"],
9808
- "%ObjectPrototype%": ["Object", "prototype"],
9809
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
9810
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
9811
- "%PromisePrototype%": ["Promise", "prototype"],
9812
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
9813
- "%Promise_all%": ["Promise", "all"],
9814
- "%Promise_reject%": ["Promise", "reject"],
9815
- "%Promise_resolve%": ["Promise", "resolve"],
9816
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
9817
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
9818
- "%RegExpPrototype%": ["RegExp", "prototype"],
9819
- "%SetPrototype%": ["Set", "prototype"],
9820
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
9821
- "%StringPrototype%": ["String", "prototype"],
9822
- "%SymbolPrototype%": ["Symbol", "prototype"],
9823
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
9824
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
9825
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
9826
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
9827
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
9828
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
9829
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
9830
- "%URIErrorPrototype%": ["URIError", "prototype"],
9831
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
9832
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
9833
- };
9834
- var bind2 = require_function_bind();
9835
- var hasOwn = require_hasown();
9836
- var $concat = bind2.call($call, Array.prototype.concat);
9837
- var $spliceApply = bind2.call($apply, Array.prototype.splice);
9838
- var $replace = bind2.call($call, String.prototype.replace);
9839
- var $strSlice = bind2.call($call, String.prototype.slice);
9840
- var $exec = bind2.call($call, RegExp.prototype.exec);
9841
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
9842
- var reEscapeChar = /\\(\\)?/g;
9843
- var stringToPath = function stringToPath2(string) {
9844
- var first = $strSlice(string, 0, 1);
9845
- var last = $strSlice(string, -1);
9846
- if (first === "%" && last !== "%") {
9847
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
9848
- } else if (last === "%" && first !== "%") {
9849
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
9850
- }
9851
- var result = [];
9852
- $replace(string, rePropName, function(match, number, quote, subString) {
9853
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
9854
- });
9855
- return result;
9856
- };
9857
- var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
9858
- var intrinsicName = name;
9859
- var alias;
9860
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
9861
- alias = LEGACY_ALIASES[intrinsicName];
9862
- intrinsicName = "%" + alias[0] + "%";
9863
- }
9864
- if (hasOwn(INTRINSICS, intrinsicName)) {
9865
- var value = INTRINSICS[intrinsicName];
9866
- if (value === needsEval) {
9867
- value = doEval(intrinsicName);
9868
- }
9869
- if (typeof value === "undefined" && !allowMissing) {
9870
- throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
9871
- }
9872
- return {
9873
- alias,
9874
- name: intrinsicName,
9875
- value
9876
- };
9877
- }
9878
- throw new $SyntaxError("intrinsic " + name + " does not exist!");
9879
- };
9880
- module.exports = function GetIntrinsic(name, allowMissing) {
9881
- if (typeof name !== "string" || name.length === 0) {
9882
- throw new $TypeError("intrinsic name must be a non-empty string");
9883
- }
9884
- if (arguments.length > 1 && typeof allowMissing !== "boolean") {
9885
- throw new $TypeError('"allowMissing" argument must be a boolean');
9886
- }
9887
- if ($exec(/^%?[^%]*%?$/, name) === null) {
9888
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
9889
- }
9890
- var parts = stringToPath(name);
9891
- var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
9892
- var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
9893
- var intrinsicRealName = intrinsic.name;
9894
- var value = intrinsic.value;
9895
- var skipFurtherCaching = false;
9896
- var alias = intrinsic.alias;
9897
- if (alias) {
9898
- intrinsicBaseName = alias[0];
9899
- $spliceApply(parts, $concat([0, 1], alias));
9900
- }
9901
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
9902
- var part = parts[i];
9903
- var first = $strSlice(part, 0, 1);
9904
- var last = $strSlice(part, -1);
9905
- if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
9906
- throw new $SyntaxError("property names with quotes must have matching quotes");
9907
- }
9908
- if (part === "constructor" || !isOwn) {
9909
- skipFurtherCaching = true;
9910
- }
9911
- intrinsicBaseName += "." + part;
9912
- intrinsicRealName = "%" + intrinsicBaseName + "%";
9913
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
9914
- value = INTRINSICS[intrinsicRealName];
9915
- } else if (value != null) {
9916
- if (!(part in value)) {
9917
- if (!allowMissing) {
9918
- throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
9919
- }
9920
- return void undefined2;
9921
- }
9922
- if ($gOPD && i + 1 >= parts.length) {
9923
- var desc = $gOPD(value, part);
9924
- isOwn = !!desc;
9925
- if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
9926
- value = desc.get;
9927
- } else {
9928
- value = value[part];
9929
- }
9930
- } else {
9931
- isOwn = hasOwn(value, part);
9932
- value = value[part];
9933
- }
9934
- if (isOwn && !skipFurtherCaching) {
9935
- INTRINSICS[intrinsicRealName] = value;
9936
- }
9937
- }
9938
- }
9939
- return value;
9940
- };
9941
- }
9942
- });
9943
-
9944
- // node_modules/has-tostringtag/shams.js
9945
- var require_shams2 = __commonJS({
9946
- "node_modules/has-tostringtag/shams.js"(exports, module) {
9947
- "use strict";
9948
- var hasSymbols = require_shams();
9949
- module.exports = function hasToStringTagShams() {
9950
- return hasSymbols() && !!Symbol.toStringTag;
9951
- };
9952
- }
9953
- });
9954
-
9955
- // node_modules/es-set-tostringtag/index.js
9956
- var require_es_set_tostringtag = __commonJS({
9957
- "node_modules/es-set-tostringtag/index.js"(exports, module) {
9958
- "use strict";
9959
- var GetIntrinsic = require_get_intrinsic();
9960
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
9961
- var hasToStringTag = require_shams2()();
9962
- var hasOwn = require_hasown();
9963
- var $TypeError = require_type();
9964
- var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
9965
- module.exports = function setToStringTag(object, value) {
9966
- var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
9967
- var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
9968
- if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
9969
- throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
9970
- }
9971
- if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
9972
- if ($defineProperty) {
9973
- $defineProperty(object, toStringTag, {
9974
- configurable: !nonConfigurable,
9975
- enumerable: false,
9976
- value,
9977
- writable: false
9978
- });
9979
- } else {
9980
- object[toStringTag] = value;
9981
- }
9982
- }
9983
- };
9984
- }
9985
- });
9986
-
9987
9141
  // node_modules/form-data/lib/populate.js
9988
9142
  var require_populate = __commonJS({
9989
9143
  "node_modules/form-data/lib/populate.js"(exports, module) {
@@ -10002,7 +9156,7 @@ var require_form_data = __commonJS({
10002
9156
  "node_modules/form-data/lib/form_data.js"(exports, module) {
10003
9157
  "use strict";
10004
9158
  var CombinedStream = require_combined_stream();
10005
- var util3 = __require("util");
9159
+ var util2 = __require("util");
10006
9160
  var path = __require("path");
10007
9161
  var http2 = __require("http");
10008
9162
  var https2 = __require("https");
@@ -10011,10 +9165,9 @@ var require_form_data = __commonJS({
10011
9165
  var Stream = __require("stream").Stream;
10012
9166
  var mime = require_mime_types();
10013
9167
  var asynckit = require_asynckit();
10014
- var setToStringTag = require_es_set_tostringtag();
10015
9168
  var populate = require_populate();
10016
9169
  module.exports = FormData3;
10017
- util3.inherits(FormData3, CombinedStream);
9170
+ util2.inherits(FormData3, CombinedStream);
10018
9171
  function FormData3(options) {
10019
9172
  if (!(this instanceof FormData3)) {
10020
9173
  return new FormData3(options);
@@ -10039,7 +9192,7 @@ var require_form_data = __commonJS({
10039
9192
  if (typeof value == "number") {
10040
9193
  value = "" + value;
10041
9194
  }
10042
- if (Array.isArray(value)) {
9195
+ if (util2.isArray(value)) {
10043
9196
  this._error(new Error("Arrays are not supported."));
10044
9197
  return;
10045
9198
  }
@@ -10061,7 +9214,7 @@ var require_form_data = __commonJS({
10061
9214
  }
10062
9215
  this._valueLength += valueLength;
10063
9216
  this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
10064
- if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {
9217
+ if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) {
10065
9218
  return;
10066
9219
  }
10067
9220
  if (!options.knownLength) {
@@ -10069,7 +9222,7 @@ var require_form_data = __commonJS({
10069
9222
  }
10070
9223
  };
10071
9224
  FormData3.prototype._lengthRetriever = function(value, callback) {
10072
- if (Object.prototype.hasOwnProperty.call(value, "fd")) {
9225
+ if (value.hasOwnProperty("fd")) {
10073
9226
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
10074
9227
  callback(null, value.end + 1 - (value.start ? value.start : 0));
10075
9228
  } else {
@@ -10083,9 +9236,9 @@ var require_form_data = __commonJS({
10083
9236
  callback(null, fileSize);
10084
9237
  });
10085
9238
  }
10086
- } else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
9239
+ } else if (value.hasOwnProperty("httpVersion")) {
10087
9240
  callback(null, +value.headers["content-length"]);
10088
- } else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {
9241
+ } else if (value.hasOwnProperty("httpModule")) {
10089
9242
  value.on("response", function(response) {
10090
9243
  value.pause();
10091
9244
  callback(null, +response.headers["content-length"]);
@@ -10113,17 +9266,16 @@ var require_form_data = __commonJS({
10113
9266
  }
10114
9267
  var header;
10115
9268
  for (var prop in headers) {
10116
- if (Object.prototype.hasOwnProperty.call(headers, prop)) {
10117
- header = headers[prop];
10118
- if (header == null) {
10119
- continue;
10120
- }
10121
- if (!Array.isArray(header)) {
10122
- header = [header];
10123
- }
10124
- if (header.length) {
10125
- contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
10126
- }
9269
+ if (!headers.hasOwnProperty(prop)) continue;
9270
+ header = headers[prop];
9271
+ if (header == null) {
9272
+ continue;
9273
+ }
9274
+ if (!Array.isArray(header)) {
9275
+ header = [header];
9276
+ }
9277
+ if (header.length) {
9278
+ contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
10127
9279
  }
10128
9280
  }
10129
9281
  return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
@@ -10134,7 +9286,7 @@ var require_form_data = __commonJS({
10134
9286
  filename = path.normalize(options.filepath).replace(/\\/g, "/");
10135
9287
  } else if (options.filename || value.name || value.path) {
10136
9288
  filename = path.basename(options.filename || value.name || value.path);
10137
- } else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
9289
+ } else if (value.readable && value.hasOwnProperty("httpVersion")) {
10138
9290
  filename = path.basename(value.client._httpMessage.path || "");
10139
9291
  }
10140
9292
  if (filename) {
@@ -10150,7 +9302,7 @@ var require_form_data = __commonJS({
10150
9302
  if (!contentType && value.path) {
10151
9303
  contentType = mime.lookup(value.path);
10152
9304
  }
10153
- if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
9305
+ if (!contentType && value.readable && value.hasOwnProperty("httpVersion")) {
10154
9306
  contentType = value.headers["content-type"];
10155
9307
  }
10156
9308
  if (!contentType && (options.filepath || options.filename)) {
@@ -10180,7 +9332,7 @@ var require_form_data = __commonJS({
10180
9332
  "content-type": "multipart/form-data; boundary=" + this.getBoundary()
10181
9333
  };
10182
9334
  for (header in userHeaders) {
10183
- if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
9335
+ if (userHeaders.hasOwnProperty(header)) {
10184
9336
  formHeaders[header.toLowerCase()] = userHeaders[header];
10185
9337
  }
10186
9338
  }
@@ -10311,7 +9463,6 @@ var require_form_data = __commonJS({
10311
9463
  FormData3.prototype.toString = function() {
10312
9464
  return "[object FormData]";
10313
9465
  };
10314
- setToStringTag(FormData3, "FormData");
10315
9466
  }
10316
9467
  });
10317
9468
 
@@ -10331,7 +9482,7 @@ var require_proxy_from_env = __commonJS({
10331
9482
  var stringEndsWith = String.prototype.endsWith || function(s) {
10332
9483
  return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
10333
9484
  };
10334
- function getProxyForUrl(url2) {
9485
+ function getProxyForUrl2(url2) {
10335
9486
  var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
10336
9487
  var proto = parsedUrl.protocol;
10337
9488
  var hostname = parsedUrl.host;
@@ -10381,7 +9532,7 @@ var require_proxy_from_env = __commonJS({
10381
9532
  function getEnv(key) {
10382
9533
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
10383
9534
  }
10384
- exports.getProxyForUrl = getProxyForUrl;
9535
+ exports.getProxyForUrl = getProxyForUrl2;
10385
9536
  }
10386
9537
  });
10387
9538
 
@@ -10606,64 +9757,50 @@ var require_common = __commonJS({
10606
9757
  createDebug.namespaces = namespaces;
10607
9758
  createDebug.names = [];
10608
9759
  createDebug.skips = [];
10609
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
10610
- for (const ns of split) {
10611
- if (ns[0] === "-") {
10612
- createDebug.skips.push(ns.slice(1));
10613
- } else {
10614
- createDebug.names.push(ns);
9760
+ let i;
9761
+ const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
9762
+ const len = split.length;
9763
+ for (i = 0; i < len; i++) {
9764
+ if (!split[i]) {
9765
+ continue;
10615
9766
  }
10616
- }
10617
- }
10618
- function matchesTemplate(search, template) {
10619
- let searchIndex = 0;
10620
- let templateIndex = 0;
10621
- let starIndex = -1;
10622
- let matchIndex = 0;
10623
- while (searchIndex < search.length) {
10624
- if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
10625
- if (template[templateIndex] === "*") {
10626
- starIndex = templateIndex;
10627
- matchIndex = searchIndex;
10628
- templateIndex++;
10629
- } else {
10630
- searchIndex++;
10631
- templateIndex++;
10632
- }
10633
- } else if (starIndex !== -1) {
10634
- templateIndex = starIndex + 1;
10635
- matchIndex++;
10636
- searchIndex = matchIndex;
9767
+ namespaces = split[i].replace(/\*/g, ".*?");
9768
+ if (namespaces[0] === "-") {
9769
+ createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
10637
9770
  } else {
10638
- return false;
9771
+ createDebug.names.push(new RegExp("^" + namespaces + "$"));
10639
9772
  }
10640
9773
  }
10641
- while (templateIndex < template.length && template[templateIndex] === "*") {
10642
- templateIndex++;
10643
- }
10644
- return templateIndex === template.length;
10645
9774
  }
10646
9775
  function disable() {
10647
9776
  const namespaces = [
10648
- ...createDebug.names,
10649
- ...createDebug.skips.map((namespace) => "-" + namespace)
9777
+ ...createDebug.names.map(toNamespace),
9778
+ ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
10650
9779
  ].join(",");
10651
9780
  createDebug.enable("");
10652
9781
  return namespaces;
10653
9782
  }
10654
9783
  function enabled(name) {
10655
- for (const skip of createDebug.skips) {
10656
- if (matchesTemplate(name, skip)) {
9784
+ if (name[name.length - 1] === "*") {
9785
+ return true;
9786
+ }
9787
+ let i;
9788
+ let len;
9789
+ for (i = 0, len = createDebug.skips.length; i < len; i++) {
9790
+ if (createDebug.skips[i].test(name)) {
10657
9791
  return false;
10658
9792
  }
10659
9793
  }
10660
- for (const ns of createDebug.names) {
10661
- if (matchesTemplate(name, ns)) {
9794
+ for (i = 0, len = createDebug.names.length; i < len; i++) {
9795
+ if (createDebug.names[i].test(name)) {
10662
9796
  return true;
10663
9797
  }
10664
9798
  }
10665
9799
  return false;
10666
9800
  }
9801
+ function toNamespace(regexp) {
9802
+ return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
9803
+ }
10667
9804
  function coerce(val) {
10668
9805
  if (val instanceof Error) {
10669
9806
  return val.stack || val.message;
@@ -10971,14 +10108,14 @@ var require_node = __commonJS({
10971
10108
  "node_modules/debug/src/node.js"(exports, module) {
10972
10109
  "use strict";
10973
10110
  var tty = __require("tty");
10974
- var util3 = __require("util");
10111
+ var util2 = __require("util");
10975
10112
  exports.init = init;
10976
10113
  exports.log = log;
10977
10114
  exports.formatArgs = formatArgs;
10978
10115
  exports.save = save;
10979
10116
  exports.load = load;
10980
10117
  exports.useColors = useColors;
10981
- exports.destroy = util3.deprecate(
10118
+ exports.destroy = util2.deprecate(
10982
10119
  () => {
10983
10120
  },
10984
10121
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -11109,7 +10246,7 @@ var require_node = __commonJS({
11109
10246
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
11110
10247
  }
11111
10248
  function log(...args) {
11112
- return process.stderr.write(util3.formatWithOptions(exports.inspectOpts, ...args) + "\n");
10249
+ return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
11113
10250
  }
11114
10251
  function save(namespaces) {
11115
10252
  if (namespaces) {
@@ -11132,11 +10269,11 @@ var require_node = __commonJS({
11132
10269
  var { formatters } = module.exports;
11133
10270
  formatters.o = function(v) {
11134
10271
  this.inspectOpts.colors = this.useColors;
11135
- return util3.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
10272
+ return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
11136
10273
  };
11137
10274
  formatters.O = function(v) {
11138
10275
  this.inspectOpts.colors = this.useColors;
11139
- return util3.inspect(v, this.inspectOpts);
10276
+ return util2.inspect(v, this.inspectOpts);
11140
10277
  };
11141
10278
  }
11142
10279
  });
@@ -11185,17 +10322,9 @@ var require_follow_redirects = __commonJS({
11185
10322
  var Writable = __require("stream").Writable;
11186
10323
  var assert = __require("assert");
11187
10324
  var debug = require_debug();
11188
- (function detectUnsupportedEnvironment() {
11189
- var looksLikeNode = typeof process !== "undefined";
11190
- var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
11191
- var looksLikeV8 = isFunction2(Error.captureStackTrace);
11192
- if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
11193
- console.warn("The follow-redirects package should be excluded from browser builds.");
11194
- }
11195
- })();
11196
10325
  var useNativeURL = false;
11197
10326
  try {
11198
- assert(new URL2(""));
10327
+ assert(new URL2());
11199
10328
  } catch (error) {
11200
10329
  useNativeURL = error.code === "ERR_INVALID_URL";
11201
10330
  }
@@ -11622,9 +10751,7 @@ var require_follow_redirects = __commonJS({
11622
10751
  }
11623
10752
  function createErrorType(code, message, baseClass) {
11624
10753
  function CustomError(properties) {
11625
- if (isFunction2(Error.captureStackTrace)) {
11626
- Error.captureStackTrace(this, this.constructor);
11627
- }
10754
+ Error.captureStackTrace(this, this.constructor);
11628
10755
  Object.assign(this, properties || {});
11629
10756
  this.code = code;
11630
10757
  this.message = this.cause ? message + ": " + this.cause.message : message;
@@ -11728,7 +10855,6 @@ var isFormData = (thing) => {
11728
10855
  kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
11729
10856
  };
11730
10857
  var isURLSearchParams = kindOfTest("URLSearchParams");
11731
- var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
11732
10858
  var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
11733
10859
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
11734
10860
  if (obj === null || typeof obj === "undefined") {
@@ -11932,7 +11058,23 @@ var toObjectSet = (arrayOrString, delimiter) => {
11932
11058
  var noop = () => {
11933
11059
  };
11934
11060
  var toFiniteNumber = (value, defaultValue) => {
11935
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
11061
+ value = +value;
11062
+ return Number.isFinite(value) ? value : defaultValue;
11063
+ };
11064
+ var ALPHA = "abcdefghijklmnopqrstuvwxyz";
11065
+ var DIGIT = "0123456789";
11066
+ var ALPHABET = {
11067
+ DIGIT,
11068
+ ALPHA,
11069
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
11070
+ };
11071
+ var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
11072
+ let str = "";
11073
+ const { length } = alphabet;
11074
+ while (size--) {
11075
+ str += alphabet[Math.random() * length | 0];
11076
+ }
11077
+ return str;
11936
11078
  };
11937
11079
  function isSpecCompliantForm(thing) {
11938
11080
  return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
@@ -11961,26 +11103,6 @@ var toJSONObject = (obj) => {
11961
11103
  };
11962
11104
  var isAsyncFn = kindOfTest("AsyncFunction");
11963
11105
  var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
11964
- var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
11965
- if (setImmediateSupported) {
11966
- return setImmediate;
11967
- }
11968
- return postMessageSupported ? ((token, callbacks) => {
11969
- _global.addEventListener("message", ({ source, data }) => {
11970
- if (source === _global && data === token) {
11971
- callbacks.length && callbacks.shift()();
11972
- }
11973
- }, false);
11974
- return (cb) => {
11975
- callbacks.push(cb);
11976
- _global.postMessage(token, "*");
11977
- };
11978
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
11979
- })(
11980
- typeof setImmediate === "function",
11981
- isFunction(_global.postMessage)
11982
- );
11983
- var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
11984
11106
  var utils_default = {
11985
11107
  isArray,
11986
11108
  isArrayBuffer,
@@ -11992,10 +11114,6 @@ var utils_default = {
11992
11114
  isBoolean,
11993
11115
  isObject,
11994
11116
  isPlainObject,
11995
- isReadableStream,
11996
- isRequest,
11997
- isResponse,
11998
- isHeaders,
11999
11117
  isUndefined,
12000
11118
  isDate,
12001
11119
  isFile,
@@ -12032,12 +11150,12 @@ var utils_default = {
12032
11150
  findKey,
12033
11151
  global: _global,
12034
11152
  isContextDefined,
11153
+ ALPHABET,
11154
+ generateString,
12035
11155
  isSpecCompliantForm,
12036
11156
  toJSONObject,
12037
11157
  isAsyncFn,
12038
- isThenable,
12039
- setImmediate: _setImmediate,
12040
- asap
11158
+ isThenable
12041
11159
  };
12042
11160
 
12043
11161
  // node_modules/axios/lib/core/AxiosError.js
@@ -12053,10 +11171,7 @@ function AxiosError(message, code, config, request, response) {
12053
11171
  code && (this.code = code);
12054
11172
  config && (this.config = config);
12055
11173
  request && (this.request = request);
12056
- if (response) {
12057
- this.response = response;
12058
- this.status = response.status ? response.status : null;
12059
- }
11174
+ response && (this.response = response);
12060
11175
  }
12061
11176
  utils_default.inherits(AxiosError, Error, {
12062
11177
  toJSON: function toJSON() {
@@ -12075,7 +11190,7 @@ utils_default.inherits(AxiosError, Error, {
12075
11190
  // Axios
12076
11191
  config: utils_default.toJSONObject(this.config),
12077
11192
  code: this.code,
12078
- status: this.status
11193
+ status: this.response && this.response.status ? this.response.status : null
12079
11194
  };
12080
11195
  }
12081
11196
  });
@@ -12273,11 +11388,6 @@ function buildURL(url2, params, options) {
12273
11388
  return url2;
12274
11389
  }
12275
11390
  const _encode = options && options.encode || encode2;
12276
- if (utils_default.isFunction(options)) {
12277
- options = {
12278
- serialize: options
12279
- };
12280
- }
12281
11391
  const serializeFn = options && options.serialize;
12282
11392
  let serializedParams;
12283
11393
  if (serializeFn) {
@@ -12366,31 +11476,11 @@ var transitional_default = {
12366
11476
  clarifyTimeoutError: false
12367
11477
  };
12368
11478
 
12369
- // node_modules/axios/lib/platform/node/index.js
12370
- import crypto from "crypto";
12371
-
12372
11479
  // node_modules/axios/lib/platform/node/classes/URLSearchParams.js
12373
11480
  import url from "url";
12374
11481
  var URLSearchParams_default = url.URLSearchParams;
12375
11482
 
12376
11483
  // node_modules/axios/lib/platform/node/index.js
12377
- var ALPHA = "abcdefghijklmnopqrstuvwxyz";
12378
- var DIGIT = "0123456789";
12379
- var ALPHABET = {
12380
- DIGIT,
12381
- ALPHA,
12382
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
12383
- };
12384
- var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
12385
- let str = "";
12386
- const { length } = alphabet;
12387
- const randomValues = new Uint32Array(size);
12388
- crypto.randomFillSync(randomValues);
12389
- for (let i = 0; i < size; i++) {
12390
- str += alphabet[randomValues[i] % length];
12391
- }
12392
- return str;
12393
- };
12394
11484
  var node_default = {
12395
11485
  isNode: true,
12396
11486
  classes: {
@@ -12398,8 +11488,6 @@ var node_default = {
12398
11488
  FormData: FormData_default,
12399
11489
  Blob: typeof Blob !== "undefined" && Blob || null
12400
11490
  },
12401
- ALPHABET,
12402
- generateString,
12403
11491
  protocols: ["http", "https", "file", "data"]
12404
11492
  };
12405
11493
 
@@ -12408,18 +11496,16 @@ var utils_exports = {};
12408
11496
  __export(utils_exports, {
12409
11497
  hasBrowserEnv: () => hasBrowserEnv,
12410
11498
  hasStandardBrowserEnv: () => hasStandardBrowserEnv,
12411
- hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
12412
- navigator: () => _navigator,
12413
- origin: () => origin
11499
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
12414
11500
  });
12415
11501
  var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
12416
- var _navigator = typeof navigator === "object" && navigator || void 0;
12417
- var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
11502
+ var hasStandardBrowserEnv = ((product) => {
11503
+ return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
11504
+ })(typeof navigator !== "undefined" && navigator.product);
12418
11505
  var hasStandardBrowserWebWorkerEnv = (() => {
12419
11506
  return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
12420
11507
  self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
12421
11508
  })();
12422
- var origin = hasBrowserEnv && window.location.href || "http://localhost";
12423
11509
 
12424
11510
  // node_modules/axios/lib/platform/index.js
12425
11511
  var platform_default = {
@@ -12509,7 +11595,7 @@ function stringifySafely(rawValue, parser, encoder) {
12509
11595
  }
12510
11596
  var defaults = {
12511
11597
  transitional: transitional_default,
12512
- adapter: ["xhr", "http", "fetch"],
11598
+ adapter: ["xhr", "http"],
12513
11599
  transformRequest: [function transformRequest(data, headers) {
12514
11600
  const contentType = headers.getContentType() || "";
12515
11601
  const hasJSONContentType = contentType.indexOf("application/json") > -1;
@@ -12521,7 +11607,7 @@ var defaults = {
12521
11607
  if (isFormData2) {
12522
11608
  return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
12523
11609
  }
12524
- if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data) || utils_default.isReadableStream(data)) {
11610
+ if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
12525
11611
  return data;
12526
11612
  }
12527
11613
  if (utils_default.isArrayBufferView(data)) {
@@ -12555,9 +11641,6 @@ var defaults = {
12555
11641
  const transitional2 = this.transitional || defaults.transitional;
12556
11642
  const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
12557
11643
  const JSONRequested = this.responseType === "json";
12558
- if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
12559
- return data;
12560
- }
12561
11644
  if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
12562
11645
  const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
12563
11646
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
@@ -12720,10 +11803,6 @@ var AxiosHeaders = class {
12720
11803
  setHeaders(header, valueOrRewrite);
12721
11804
  } else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
12722
11805
  setHeaders(parseHeaders_default(header), valueOrRewrite);
12723
- } else if (utils_default.isHeaders(header)) {
12724
- for (const [key, value] of header.entries()) {
12725
- setHeader(value, key, rewrite);
12726
- }
12727
11806
  } else {
12728
11807
  header != null && setHeader(valueOrRewrite, header, rewrite);
12729
11808
  }
@@ -12923,9 +12002,8 @@ function combineURLs(baseURL, relativeURL) {
12923
12002
  }
12924
12003
 
12925
12004
  // node_modules/axios/lib/core/buildFullPath.js
12926
- function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
12927
- let isRelativeUrl = !isAbsoluteURL(requestedURL);
12928
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
12005
+ function buildFullPath(baseURL, requestedURL) {
12006
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
12929
12007
  return combineURLs(baseURL, requestedURL);
12930
12008
  }
12931
12009
  return requestedURL;
@@ -12936,11 +12014,11 @@ var import_proxy_from_env = __toESM(require_proxy_from_env(), 1);
12936
12014
  var import_follow_redirects = __toESM(require_follow_redirects(), 1);
12937
12015
  import http from "http";
12938
12016
  import https from "https";
12939
- import util2 from "util";
12017
+ import util from "util";
12940
12018
  import zlib from "zlib";
12941
12019
 
12942
12020
  // node_modules/axios/lib/env/data.js
12943
- var VERSION = "1.8.4";
12021
+ var VERSION = "1.6.8";
12944
12022
 
12945
12023
  // node_modules/axios/lib/helpers/parseProtocol.js
12946
12024
  function parseProtocol(url2) {
@@ -12962,26 +12040,90 @@ function fromDataURI(uri, asBlob, options) {
12962
12040
  if (!match) {
12963
12041
  throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
12964
12042
  }
12965
- const mime = match[1];
12966
- const isBase64 = match[2];
12967
- const body = match[3];
12968
- const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
12969
- if (asBlob) {
12970
- if (!_Blob) {
12971
- throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
12972
- }
12973
- return new _Blob([buffer], { type: mime });
12043
+ const mime = match[1];
12044
+ const isBase64 = match[2];
12045
+ const body = match[3];
12046
+ const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
12047
+ if (asBlob) {
12048
+ if (!_Blob) {
12049
+ throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
12050
+ }
12051
+ return new _Blob([buffer], { type: mime });
12052
+ }
12053
+ return buffer;
12054
+ }
12055
+ throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
12056
+ }
12057
+
12058
+ // node_modules/axios/lib/adapters/http.js
12059
+ import stream3 from "stream";
12060
+
12061
+ // node_modules/axios/lib/helpers/AxiosTransformStream.js
12062
+ import stream from "stream";
12063
+
12064
+ // node_modules/axios/lib/helpers/throttle.js
12065
+ function throttle(fn, freq) {
12066
+ let timestamp = 0;
12067
+ const threshold = 1e3 / freq;
12068
+ let timer = null;
12069
+ return function throttled(force, args) {
12070
+ const now = Date.now();
12071
+ if (force || now - timestamp > threshold) {
12072
+ if (timer) {
12073
+ clearTimeout(timer);
12074
+ timer = null;
12075
+ }
12076
+ timestamp = now;
12077
+ return fn.apply(null, args);
12078
+ }
12079
+ if (!timer) {
12080
+ timer = setTimeout(() => {
12081
+ timer = null;
12082
+ timestamp = Date.now();
12083
+ return fn.apply(null, args);
12084
+ }, threshold - (now - timestamp));
12085
+ }
12086
+ };
12087
+ }
12088
+ var throttle_default = throttle;
12089
+
12090
+ // node_modules/axios/lib/helpers/speedometer.js
12091
+ function speedometer(samplesCount, min) {
12092
+ samplesCount = samplesCount || 10;
12093
+ const bytes = new Array(samplesCount);
12094
+ const timestamps = new Array(samplesCount);
12095
+ let head = 0;
12096
+ let tail = 0;
12097
+ let firstSampleTS;
12098
+ min = min !== void 0 ? min : 1e3;
12099
+ return function push(chunkLength) {
12100
+ const now = Date.now();
12101
+ const startedAt = timestamps[tail];
12102
+ if (!firstSampleTS) {
12103
+ firstSampleTS = now;
12104
+ }
12105
+ bytes[head] = chunkLength;
12106
+ timestamps[head] = now;
12107
+ let i = tail;
12108
+ let bytesCount = 0;
12109
+ while (i !== head) {
12110
+ bytesCount += bytes[i++];
12111
+ i = i % samplesCount;
12974
12112
  }
12975
- return buffer;
12976
- }
12977
- throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
12113
+ head = (head + 1) % samplesCount;
12114
+ if (head === tail) {
12115
+ tail = (tail + 1) % samplesCount;
12116
+ }
12117
+ if (now - firstSampleTS < min) {
12118
+ return;
12119
+ }
12120
+ const passed = startedAt && now - startedAt;
12121
+ return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
12122
+ };
12978
12123
  }
12979
-
12980
- // node_modules/axios/lib/adapters/http.js
12981
- import stream3 from "stream";
12124
+ var speedometer_default = speedometer;
12982
12125
 
12983
12126
  // node_modules/axios/lib/helpers/AxiosTransformStream.js
12984
- import stream from "stream";
12985
12127
  var kInternals = Symbol("internals");
12986
12128
  var AxiosTransformStream = class extends stream.Transform {
12987
12129
  constructor(options) {
@@ -12998,8 +12140,11 @@ var AxiosTransformStream = class extends stream.Transform {
12998
12140
  super({
12999
12141
  readableHighWaterMark: options.chunkSize
13000
12142
  });
12143
+ const self2 = this;
13001
12144
  const internals = this[kInternals] = {
12145
+ length: options.length,
13002
12146
  timeWindow: options.timeWindow,
12147
+ ticksRate: options.ticksRate,
13003
12148
  chunkSize: options.chunkSize,
13004
12149
  maxRate: options.maxRate,
13005
12150
  minChunkSize: options.minChunkSize,
@@ -13010,6 +12155,7 @@ var AxiosTransformStream = class extends stream.Transform {
13010
12155
  bytes: 0,
13011
12156
  onReadCallback: null
13012
12157
  };
12158
+ const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
13013
12159
  this.on("newListener", (event) => {
13014
12160
  if (event === "progress") {
13015
12161
  if (!internals.isCaptured) {
@@ -13017,6 +12163,30 @@ var AxiosTransformStream = class extends stream.Transform {
13017
12163
  }
13018
12164
  }
13019
12165
  });
12166
+ let bytesNotified = 0;
12167
+ internals.updateProgress = throttle_default(function throttledHandler() {
12168
+ const totalBytes = internals.length;
12169
+ const bytesTransferred = internals.bytesSeen;
12170
+ const progressBytes = bytesTransferred - bytesNotified;
12171
+ if (!progressBytes || self2.destroyed) return;
12172
+ const rate = _speedometer(progressBytes);
12173
+ bytesNotified = bytesTransferred;
12174
+ process.nextTick(() => {
12175
+ self2.emit("progress", {
12176
+ "loaded": bytesTransferred,
12177
+ "total": totalBytes,
12178
+ "progress": totalBytes ? bytesTransferred / totalBytes : void 0,
12179
+ "bytes": progressBytes,
12180
+ "rate": rate ? rate : void 0,
12181
+ "estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
12182
+ });
12183
+ });
12184
+ }, internals.ticksRate);
12185
+ const onFinish = () => {
12186
+ internals.updateProgress(true);
12187
+ };
12188
+ this.once("end", onFinish);
12189
+ this.once("error", onFinish);
13020
12190
  }
13021
12191
  _read(size) {
13022
12192
  const internals = this[kInternals];
@@ -13026,6 +12196,7 @@ var AxiosTransformStream = class extends stream.Transform {
13026
12196
  return super._read(size);
13027
12197
  }
13028
12198
  _transform(chunk, encoding, callback) {
12199
+ const self2 = this;
13029
12200
  const internals = this[kInternals];
13030
12201
  const maxRate = internals.maxRate;
13031
12202
  const readableHighWaterMark = this.readableHighWaterMark;
@@ -13033,12 +12204,14 @@ var AxiosTransformStream = class extends stream.Transform {
13033
12204
  const divider = 1e3 / timeWindow;
13034
12205
  const bytesThreshold = maxRate / divider;
13035
12206
  const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
13036
- const pushChunk = (_chunk, _callback) => {
12207
+ function pushChunk(_chunk, _callback) {
13037
12208
  const bytes = Buffer.byteLength(_chunk);
13038
12209
  internals.bytesSeen += bytes;
13039
12210
  internals.bytes += bytes;
13040
- internals.isCaptured && this.emit("progress", internals.bytesSeen);
13041
- if (this.push(_chunk)) {
12211
+ if (internals.isCaptured) {
12212
+ internals.updateProgress();
12213
+ }
12214
+ if (self2.push(_chunk)) {
13042
12215
  process.nextTick(_callback);
13043
12216
  } else {
13044
12217
  internals.onReadCallback = () => {
@@ -13046,7 +12219,7 @@ var AxiosTransformStream = class extends stream.Transform {
13046
12219
  process.nextTick(_callback);
13047
12220
  };
13048
12221
  }
13049
- };
12222
+ }
13050
12223
  const transformChunk = (_chunk, _callback) => {
13051
12224
  const chunkSize = Buffer.byteLength(_chunk);
13052
12225
  let chunkRemainder = null;
@@ -13092,6 +12265,10 @@ var AxiosTransformStream = class extends stream.Transform {
13092
12265
  }
13093
12266
  });
13094
12267
  }
12268
+ setLength(length) {
12269
+ this[kInternals].length = +length;
12270
+ return this;
12271
+ }
13095
12272
  };
13096
12273
  var AxiosTransformStream_default = AxiosTransformStream;
13097
12274
 
@@ -13099,7 +12276,7 @@ var AxiosTransformStream_default = AxiosTransformStream;
13099
12276
  import { EventEmitter } from "events";
13100
12277
 
13101
12278
  // node_modules/axios/lib/helpers/formDataToStream.js
13102
- import util from "util";
12279
+ import { TextEncoder } from "util";
13103
12280
  import { Readable } from "stream";
13104
12281
 
13105
12282
  // node_modules/axios/lib/helpers/readBlob.js
@@ -13118,8 +12295,8 @@ var readBlob = async function* (blob) {
13118
12295
  var readBlob_default = readBlob;
13119
12296
 
13120
12297
  // node_modules/axios/lib/helpers/formDataToStream.js
13121
- var BOUNDARY_ALPHABET = platform_default.ALPHABET.ALPHA_DIGIT + "-_";
13122
- var textEncoder = typeof TextEncoder === "function" ? new TextEncoder() : new util.TextEncoder();
12298
+ var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
12299
+ var textEncoder = new TextEncoder();
13123
12300
  var CRLF = "\r\n";
13124
12301
  var CRLF_BYTES = textEncoder.encode(CRLF);
13125
12302
  var CRLF_BYTES_COUNT = 2;
@@ -13161,7 +12338,7 @@ var formDataToStream = (form, headersHandler, options) => {
13161
12338
  const {
13162
12339
  tag = "form-data-boundary",
13163
12340
  size = 25,
13164
- boundary = tag + "-" + platform_default.generateString(size, BOUNDARY_ALPHABET)
12341
+ boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
13165
12342
  } = options || {};
13166
12343
  if (!utils_default.isFormData(form)) {
13167
12344
  throw TypeError("FormData instance required");
@@ -13233,112 +12410,6 @@ var callbackify = (fn, reducer) => {
13233
12410
  };
13234
12411
  var callbackify_default = callbackify;
13235
12412
 
13236
- // node_modules/axios/lib/helpers/speedometer.js
13237
- function speedometer(samplesCount, min) {
13238
- samplesCount = samplesCount || 10;
13239
- const bytes = new Array(samplesCount);
13240
- const timestamps = new Array(samplesCount);
13241
- let head = 0;
13242
- let tail = 0;
13243
- let firstSampleTS;
13244
- min = min !== void 0 ? min : 1e3;
13245
- return function push(chunkLength) {
13246
- const now = Date.now();
13247
- const startedAt = timestamps[tail];
13248
- if (!firstSampleTS) {
13249
- firstSampleTS = now;
13250
- }
13251
- bytes[head] = chunkLength;
13252
- timestamps[head] = now;
13253
- let i = tail;
13254
- let bytesCount = 0;
13255
- while (i !== head) {
13256
- bytesCount += bytes[i++];
13257
- i = i % samplesCount;
13258
- }
13259
- head = (head + 1) % samplesCount;
13260
- if (head === tail) {
13261
- tail = (tail + 1) % samplesCount;
13262
- }
13263
- if (now - firstSampleTS < min) {
13264
- return;
13265
- }
13266
- const passed = startedAt && now - startedAt;
13267
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
13268
- };
13269
- }
13270
- var speedometer_default = speedometer;
13271
-
13272
- // node_modules/axios/lib/helpers/throttle.js
13273
- function throttle(fn, freq) {
13274
- let timestamp = 0;
13275
- let threshold = 1e3 / freq;
13276
- let lastArgs;
13277
- let timer;
13278
- const invoke = (args, now = Date.now()) => {
13279
- timestamp = now;
13280
- lastArgs = null;
13281
- if (timer) {
13282
- clearTimeout(timer);
13283
- timer = null;
13284
- }
13285
- fn.apply(null, args);
13286
- };
13287
- const throttled = (...args) => {
13288
- const now = Date.now();
13289
- const passed = now - timestamp;
13290
- if (passed >= threshold) {
13291
- invoke(args, now);
13292
- } else {
13293
- lastArgs = args;
13294
- if (!timer) {
13295
- timer = setTimeout(() => {
13296
- timer = null;
13297
- invoke(lastArgs);
13298
- }, threshold - passed);
13299
- }
13300
- }
13301
- };
13302
- const flush = () => lastArgs && invoke(lastArgs);
13303
- return [throttled, flush];
13304
- }
13305
- var throttle_default = throttle;
13306
-
13307
- // node_modules/axios/lib/helpers/progressEventReducer.js
13308
- var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
13309
- let bytesNotified = 0;
13310
- const _speedometer = speedometer_default(50, 250);
13311
- return throttle_default((e2) => {
13312
- const loaded = e2.loaded;
13313
- const total = e2.lengthComputable ? e2.total : void 0;
13314
- const progressBytes = loaded - bytesNotified;
13315
- const rate = _speedometer(progressBytes);
13316
- const inRange = loaded <= total;
13317
- bytesNotified = loaded;
13318
- const data = {
13319
- loaded,
13320
- total,
13321
- progress: total ? loaded / total : void 0,
13322
- bytes: progressBytes,
13323
- rate: rate ? rate : void 0,
13324
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13325
- event: e2,
13326
- lengthComputable: total != null,
13327
- [isDownloadStream ? "download" : "upload"]: true
13328
- };
13329
- listener(data);
13330
- }, freq);
13331
- };
13332
- var progressEventDecorator = (total, throttled) => {
13333
- const lengthComputable = total != null;
13334
- return [(loaded) => throttled[0]({
13335
- lengthComputable,
13336
- total,
13337
- loaded
13338
- }), throttled[1]];
13339
- };
13340
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
13341
-
13342
12413
  // node_modules/axios/lib/adapters/http.js
13343
12414
  var zlibOptions = {
13344
12415
  flush: zlib.constants.Z_SYNC_FLUSH,
@@ -13354,10 +12425,6 @@ var isHttps = /https:?/;
13354
12425
  var supportedProtocols = platform_default.protocols.map((protocol) => {
13355
12426
  return protocol + ":";
13356
12427
  });
13357
- var flushOnFinish = (stream4, [throttled, flush]) => {
13358
- stream4.on("end", flush).on("error", flush);
13359
- return throttled;
13360
- };
13361
12428
  function dispatchBeforeRedirect(options, responseDetails) {
13362
12429
  if (options.beforeRedirects.proxy) {
13363
12430
  options.beforeRedirects.proxy(options);
@@ -13369,7 +12436,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
13369
12436
  function setProxy(options, configProxy, location) {
13370
12437
  let proxy = configProxy;
13371
12438
  if (!proxy && proxy !== false) {
13372
- const proxyUrl = import_proxy_from_env.default.getProxyForUrl(location);
12439
+ const proxyUrl = (0, import_proxy_from_env.getProxyForUrl)(location);
13373
12440
  if (proxyUrl) {
13374
12441
  proxy = new URL(proxyUrl);
13375
12442
  }
@@ -13477,8 +12544,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13477
12544
  config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
13478
12545
  }
13479
12546
  }
13480
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
13481
- const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
12547
+ const fullPath = buildFullPath(config.baseURL, config.url);
12548
+ const parsed = new URL(fullPath, "http://localhost");
13482
12549
  const protocol = parsed.protocol || supportedProtocols[0];
13483
12550
  if (protocol === "data:") {
13484
12551
  let convertedData;
@@ -13522,7 +12589,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13522
12589
  }
13523
12590
  const headers = AxiosHeaders_default.from(config.headers).normalize();
13524
12591
  headers.set("User-Agent", "axios/" + VERSION, false);
13525
- const { onUploadProgress, onDownloadProgress } = config;
12592
+ const onDownloadProgress = config.onDownloadProgress;
12593
+ const onUploadProgress = config.onUploadProgress;
13526
12594
  const maxRate = config.maxRate;
13527
12595
  let maxUploadRate = void 0;
13528
12596
  let maxDownloadRate = void 0;
@@ -13538,12 +12606,12 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13538
12606
  headers.set(data.getHeaders());
13539
12607
  if (!headers.hasContentLength()) {
13540
12608
  try {
13541
- const knownLength = await util2.promisify(data.getLength).call(data);
12609
+ const knownLength = await util.promisify(data.getLength).call(data);
13542
12610
  Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
13543
12611
  } catch (e2) {
13544
12612
  }
13545
12613
  }
13546
- } else if (utils_default.isBlob(data) || utils_default.isFile(data)) {
12614
+ } else if (utils_default.isBlob(data)) {
13547
12615
  data.size && headers.setContentType(data.type || "application/octet-stream");
13548
12616
  headers.setContentLength(data.size || 0);
13549
12617
  data = stream3.Readable.from(readBlob_default(data));
@@ -13581,15 +12649,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13581
12649
  data = stream3.Readable.from(data, { objectMode: false });
13582
12650
  }
13583
12651
  data = stream3.pipeline([data, new AxiosTransformStream_default({
12652
+ length: contentLength,
13584
12653
  maxRate: utils_default.toFiniteNumber(maxUploadRate)
13585
12654
  })], utils_default.noop);
13586
- onUploadProgress && data.on("progress", flushOnFinish(
13587
- data,
13588
- progressEventDecorator(
13589
- contentLength,
13590
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
13591
- )
13592
- ));
12655
+ onUploadProgress && data.on("progress", (progress) => {
12656
+ onUploadProgress(Object.assign(progress, {
12657
+ upload: true
12658
+ }));
12659
+ });
13593
12660
  }
13594
12661
  let auth = void 0;
13595
12662
  if (config.auth) {
@@ -13637,7 +12704,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13637
12704
  if (config.socketPath) {
13638
12705
  options.socketPath = config.socketPath;
13639
12706
  } else {
13640
- options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
12707
+ options.hostname = parsed.hostname;
13641
12708
  options.port = parsed.port;
13642
12709
  setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
13643
12710
  }
@@ -13669,17 +12736,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13669
12736
  if (req.destroyed) return;
13670
12737
  const streams = [res];
13671
12738
  const responseLength = +res.headers["content-length"];
13672
- if (onDownloadProgress || maxDownloadRate) {
12739
+ if (onDownloadProgress) {
13673
12740
  const transformStream = new AxiosTransformStream_default({
12741
+ length: utils_default.toFiniteNumber(responseLength),
13674
12742
  maxRate: utils_default.toFiniteNumber(maxDownloadRate)
13675
12743
  });
13676
- onDownloadProgress && transformStream.on("progress", flushOnFinish(
13677
- transformStream,
13678
- progressEventDecorator(
13679
- responseLength,
13680
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
13681
- )
13682
- ));
12744
+ onDownloadProgress && transformStream.on("progress", (progress) => {
12745
+ onDownloadProgress(Object.assign(progress, {
12746
+ download: true
12747
+ }));
12748
+ });
13683
12749
  streams.push(transformStream);
13684
12750
  }
13685
12751
  let responseStream = res;
@@ -13746,7 +12812,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13746
12812
  return;
13747
12813
  }
13748
12814
  const err = new AxiosError_default(
13749
- "stream has been aborted",
12815
+ "maxContentLength size of " + config.maxContentLength + " exceeded",
13750
12816
  AxiosError_default.ERR_BAD_RESPONSE,
13751
12817
  config,
13752
12818
  lastRequest
@@ -13815,206 +12881,162 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
13815
12881
  config,
13816
12882
  req
13817
12883
  ));
13818
- abort();
13819
- });
13820
- }
13821
- if (utils_default.isStream(data)) {
13822
- let ended = false;
13823
- let errored = false;
13824
- data.on("end", () => {
13825
- ended = true;
13826
- });
13827
- data.once("error", (err) => {
13828
- errored = true;
13829
- req.destroy(err);
13830
- });
13831
- data.on("close", () => {
13832
- if (!ended && !errored) {
13833
- abort(new CanceledError_default("Request stream has been aborted", config, req));
13834
- }
13835
- });
13836
- data.pipe(req);
13837
- } else {
13838
- req.end(data);
13839
- }
13840
- });
13841
- };
13842
-
13843
- // node_modules/axios/lib/helpers/isURLSameOrigin.js
13844
- var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
13845
- url2 = new URL(url2, platform_default.origin);
13846
- return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
13847
- })(
13848
- new URL(platform_default.origin),
13849
- platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
13850
- ) : () => true;
13851
-
13852
- // node_modules/axios/lib/helpers/cookies.js
13853
- var cookies_default = platform_default.hasStandardBrowserEnv ? (
13854
- // Standard browser envs support document.cookie
13855
- {
13856
- write(name, value, expires, path, domain, secure) {
13857
- const cookie = [name + "=" + encodeURIComponent(value)];
13858
- utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
13859
- utils_default.isString(path) && cookie.push("path=" + path);
13860
- utils_default.isString(domain) && cookie.push("domain=" + domain);
13861
- secure === true && cookie.push("secure");
13862
- document.cookie = cookie.join("; ");
13863
- },
13864
- read(name) {
13865
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
13866
- return match ? decodeURIComponent(match[3]) : null;
13867
- },
13868
- remove(name) {
13869
- this.write(name, "", Date.now() - 864e5);
13870
- }
13871
- }
13872
- ) : (
13873
- // Non-standard browser env (web workers, react-native) lack needed support.
13874
- {
13875
- write() {
13876
- },
13877
- read() {
13878
- return null;
13879
- },
13880
- remove() {
13881
- }
13882
- }
13883
- );
13884
-
13885
- // node_modules/axios/lib/core/mergeConfig.js
13886
- var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
13887
- function mergeConfig(config1, config2) {
13888
- config2 = config2 || {};
13889
- const config = {};
13890
- function getMergedValue(target, source, prop, caseless) {
13891
- if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
13892
- return utils_default.merge.call({ caseless }, target, source);
13893
- } else if (utils_default.isPlainObject(source)) {
13894
- return utils_default.merge({}, source);
13895
- } else if (utils_default.isArray(source)) {
13896
- return source.slice();
13897
- }
13898
- return source;
13899
- }
13900
- function mergeDeepProperties(a, b, prop, caseless) {
13901
- if (!utils_default.isUndefined(b)) {
13902
- return getMergedValue(a, b, prop, caseless);
13903
- } else if (!utils_default.isUndefined(a)) {
13904
- return getMergedValue(void 0, a, prop, caseless);
13905
- }
13906
- }
13907
- function valueFromConfig2(a, b) {
13908
- if (!utils_default.isUndefined(b)) {
13909
- return getMergedValue(void 0, b);
13910
- }
13911
- }
13912
- function defaultToConfig2(a, b) {
13913
- if (!utils_default.isUndefined(b)) {
13914
- return getMergedValue(void 0, b);
13915
- } else if (!utils_default.isUndefined(a)) {
13916
- return getMergedValue(void 0, a);
13917
- }
13918
- }
13919
- function mergeDirectKeys(a, b, prop) {
13920
- if (prop in config2) {
13921
- return getMergedValue(a, b);
13922
- } else if (prop in config1) {
13923
- return getMergedValue(void 0, a);
13924
- }
13925
- }
13926
- const mergeMap = {
13927
- url: valueFromConfig2,
13928
- method: valueFromConfig2,
13929
- data: valueFromConfig2,
13930
- baseURL: defaultToConfig2,
13931
- transformRequest: defaultToConfig2,
13932
- transformResponse: defaultToConfig2,
13933
- paramsSerializer: defaultToConfig2,
13934
- timeout: defaultToConfig2,
13935
- timeoutMessage: defaultToConfig2,
13936
- withCredentials: defaultToConfig2,
13937
- withXSRFToken: defaultToConfig2,
13938
- adapter: defaultToConfig2,
13939
- responseType: defaultToConfig2,
13940
- xsrfCookieName: defaultToConfig2,
13941
- xsrfHeaderName: defaultToConfig2,
13942
- onUploadProgress: defaultToConfig2,
13943
- onDownloadProgress: defaultToConfig2,
13944
- decompress: defaultToConfig2,
13945
- maxContentLength: defaultToConfig2,
13946
- maxBodyLength: defaultToConfig2,
13947
- beforeRedirect: defaultToConfig2,
13948
- transport: defaultToConfig2,
13949
- httpAgent: defaultToConfig2,
13950
- httpsAgent: defaultToConfig2,
13951
- cancelToken: defaultToConfig2,
13952
- socketPath: defaultToConfig2,
13953
- responseEncoding: defaultToConfig2,
13954
- validateStatus: mergeDirectKeys,
13955
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
13956
- };
13957
- utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
13958
- const merge2 = mergeMap[prop] || mergeDeepProperties;
13959
- const configValue = merge2(config1[prop], config2[prop], prop);
13960
- utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
12884
+ abort();
12885
+ });
12886
+ }
12887
+ if (utils_default.isStream(data)) {
12888
+ let ended = false;
12889
+ let errored = false;
12890
+ data.on("end", () => {
12891
+ ended = true;
12892
+ });
12893
+ data.once("error", (err) => {
12894
+ errored = true;
12895
+ req.destroy(err);
12896
+ });
12897
+ data.on("close", () => {
12898
+ if (!ended && !errored) {
12899
+ abort(new CanceledError_default("Request stream has been aborted", config, req));
12900
+ }
12901
+ });
12902
+ data.pipe(req);
12903
+ } else {
12904
+ req.end(data);
12905
+ }
13961
12906
  });
13962
- return config;
13963
- }
12907
+ };
13964
12908
 
13965
- // node_modules/axios/lib/helpers/resolveConfig.js
13966
- var resolveConfig_default = (config) => {
13967
- const newConfig = mergeConfig({}, config);
13968
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
13969
- newConfig.headers = headers = AxiosHeaders_default.from(headers);
13970
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
13971
- if (auth) {
13972
- headers.set(
13973
- "Authorization",
13974
- "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
13975
- );
13976
- }
13977
- let contentType;
13978
- if (utils_default.isFormData(data)) {
13979
- if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
13980
- headers.setContentType(void 0);
13981
- } else if ((contentType = headers.getContentType()) !== false) {
13982
- const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
13983
- headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
12909
+ // node_modules/axios/lib/helpers/cookies.js
12910
+ var cookies_default = platform_default.hasStandardBrowserEnv ? (
12911
+ // Standard browser envs support document.cookie
12912
+ {
12913
+ write(name, value, expires, path, domain, secure) {
12914
+ const cookie = [name + "=" + encodeURIComponent(value)];
12915
+ utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
12916
+ utils_default.isString(path) && cookie.push("path=" + path);
12917
+ utils_default.isString(domain) && cookie.push("domain=" + domain);
12918
+ secure === true && cookie.push("secure");
12919
+ document.cookie = cookie.join("; ");
12920
+ },
12921
+ read(name) {
12922
+ const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
12923
+ return match ? decodeURIComponent(match[3]) : null;
12924
+ },
12925
+ remove(name) {
12926
+ this.write(name, "", Date.now() - 864e5);
13984
12927
  }
13985
12928
  }
13986
- if (platform_default.hasStandardBrowserEnv) {
13987
- withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
13988
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(newConfig.url)) {
13989
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies_default.read(xsrfCookieName);
13990
- if (xsrfValue) {
13991
- headers.set(xsrfHeaderName, xsrfValue);
13992
- }
12929
+ ) : (
12930
+ // Non-standard browser env (web workers, react-native) lack needed support.
12931
+ {
12932
+ write() {
12933
+ },
12934
+ read() {
12935
+ return null;
12936
+ },
12937
+ remove() {
13993
12938
  }
13994
12939
  }
13995
- return newConfig;
13996
- };
12940
+ );
12941
+
12942
+ // node_modules/axios/lib/helpers/isURLSameOrigin.js
12943
+ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
12944
+ // Standard browser envs have full support of the APIs needed to test
12945
+ // whether the request URL is of the same origin as current location.
12946
+ function standardBrowserEnv() {
12947
+ const msie = /(msie|trident)/i.test(navigator.userAgent);
12948
+ const urlParsingNode = document.createElement("a");
12949
+ let originURL;
12950
+ function resolveURL(url2) {
12951
+ let href = url2;
12952
+ if (msie) {
12953
+ urlParsingNode.setAttribute("href", href);
12954
+ href = urlParsingNode.href;
12955
+ }
12956
+ urlParsingNode.setAttribute("href", href);
12957
+ return {
12958
+ href: urlParsingNode.href,
12959
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
12960
+ host: urlParsingNode.host,
12961
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
12962
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
12963
+ hostname: urlParsingNode.hostname,
12964
+ port: urlParsingNode.port,
12965
+ pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
12966
+ };
12967
+ }
12968
+ originURL = resolveURL(window.location.href);
12969
+ return function isURLSameOrigin(requestURL) {
12970
+ const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
12971
+ return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
12972
+ };
12973
+ }()
12974
+ ) : (
12975
+ // Non standard browser envs (web workers, react-native) lack needed support.
12976
+ /* @__PURE__ */ function nonStandardBrowserEnv() {
12977
+ return function isURLSameOrigin() {
12978
+ return true;
12979
+ };
12980
+ }()
12981
+ );
13997
12982
 
13998
12983
  // node_modules/axios/lib/adapters/xhr.js
12984
+ function progressEventReducer(listener, isDownloadStream) {
12985
+ let bytesNotified = 0;
12986
+ const _speedometer = speedometer_default(50, 250);
12987
+ return (e2) => {
12988
+ const loaded = e2.loaded;
12989
+ const total = e2.lengthComputable ? e2.total : void 0;
12990
+ const progressBytes = loaded - bytesNotified;
12991
+ const rate = _speedometer(progressBytes);
12992
+ const inRange = loaded <= total;
12993
+ bytesNotified = loaded;
12994
+ const data = {
12995
+ loaded,
12996
+ total,
12997
+ progress: total ? loaded / total : void 0,
12998
+ bytes: progressBytes,
12999
+ rate: rate ? rate : void 0,
13000
+ estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
13001
+ event: e2
13002
+ };
13003
+ data[isDownloadStream ? "download" : "upload"] = true;
13004
+ listener(data);
13005
+ };
13006
+ }
13999
13007
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
14000
13008
  var xhr_default = isXHRAdapterSupported && function(config) {
14001
13009
  return new Promise(function dispatchXhrRequest(resolve, reject) {
14002
- const _config = resolveConfig_default(config);
14003
- let requestData = _config.data;
14004
- const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
14005
- let { responseType, onUploadProgress, onDownloadProgress } = _config;
13010
+ let requestData = config.data;
13011
+ const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
13012
+ let { responseType, withXSRFToken } = config;
14006
13013
  let onCanceled;
14007
- let uploadThrottled, downloadThrottled;
14008
- let flushUpload, flushDownload;
14009
13014
  function done() {
14010
- flushUpload && flushUpload();
14011
- flushDownload && flushDownload();
14012
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
14013
- _config.signal && _config.signal.removeEventListener("abort", onCanceled);
13015
+ if (config.cancelToken) {
13016
+ config.cancelToken.unsubscribe(onCanceled);
13017
+ }
13018
+ if (config.signal) {
13019
+ config.signal.removeEventListener("abort", onCanceled);
13020
+ }
13021
+ }
13022
+ let contentType;
13023
+ if (utils_default.isFormData(requestData)) {
13024
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
13025
+ requestHeaders.setContentType(false);
13026
+ } else if ((contentType = requestHeaders.getContentType()) !== false) {
13027
+ const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
13028
+ requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
13029
+ }
14014
13030
  }
14015
13031
  let request = new XMLHttpRequest();
14016
- request.open(_config.method.toUpperCase(), _config.url, true);
14017
- request.timeout = _config.timeout;
13032
+ if (config.auth) {
13033
+ const username = config.auth.username || "";
13034
+ const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
13035
+ requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
13036
+ }
13037
+ const fullPath = buildFullPath(config.baseURL, config.url);
13038
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
13039
+ request.timeout = config.timeout;
14018
13040
  function onloadend() {
14019
13041
  if (!request) {
14020
13042
  return;
@@ -14065,10 +13087,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14065
13087
  request = null;
14066
13088
  };
14067
13089
  request.ontimeout = function handleTimeout() {
14068
- let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
14069
- const transitional2 = _config.transitional || transitional_default;
14070
- if (_config.timeoutErrorMessage) {
14071
- timeoutErrorMessage = _config.timeoutErrorMessage;
13090
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
13091
+ const transitional2 = config.transitional || transitional_default;
13092
+ if (config.timeoutErrorMessage) {
13093
+ timeoutErrorMessage = config.timeoutErrorMessage;
14072
13094
  }
14073
13095
  reject(new AxiosError_default(
14074
13096
  timeoutErrorMessage,
@@ -14078,28 +13100,34 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14078
13100
  ));
14079
13101
  request = null;
14080
13102
  };
13103
+ if (platform_default.hasStandardBrowserEnv) {
13104
+ withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
13105
+ if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
13106
+ const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
13107
+ if (xsrfValue) {
13108
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
13109
+ }
13110
+ }
13111
+ }
14081
13112
  requestData === void 0 && requestHeaders.setContentType(null);
14082
13113
  if ("setRequestHeader" in request) {
14083
13114
  utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
14084
13115
  request.setRequestHeader(key, val);
14085
13116
  });
14086
13117
  }
14087
- if (!utils_default.isUndefined(_config.withCredentials)) {
14088
- request.withCredentials = !!_config.withCredentials;
13118
+ if (!utils_default.isUndefined(config.withCredentials)) {
13119
+ request.withCredentials = !!config.withCredentials;
14089
13120
  }
14090
13121
  if (responseType && responseType !== "json") {
14091
- request.responseType = _config.responseType;
13122
+ request.responseType = config.responseType;
14092
13123
  }
14093
- if (onDownloadProgress) {
14094
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
14095
- request.addEventListener("progress", downloadThrottled);
13124
+ if (typeof config.onDownloadProgress === "function") {
13125
+ request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
14096
13126
  }
14097
- if (onUploadProgress && request.upload) {
14098
- [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
14099
- request.upload.addEventListener("progress", uploadThrottled);
14100
- request.upload.addEventListener("loadend", flushUpload);
13127
+ if (typeof config.onUploadProgress === "function" && request.upload) {
13128
+ request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
14101
13129
  }
14102
- if (_config.cancelToken || _config.signal) {
13130
+ if (config.cancelToken || config.signal) {
14103
13131
  onCanceled = (cancel) => {
14104
13132
  if (!request) {
14105
13133
  return;
@@ -14108,12 +13136,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14108
13136
  request.abort();
14109
13137
  request = null;
14110
13138
  };
14111
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
14112
- if (_config.signal) {
14113
- _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
13139
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
13140
+ if (config.signal) {
13141
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
14114
13142
  }
14115
13143
  }
14116
- const protocol = parseProtocol(_config.url);
13144
+ const protocol = parseProtocol(fullPath);
14117
13145
  if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
14118
13146
  reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
14119
13147
  return;
@@ -14122,288 +13150,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
14122
13150
  });
14123
13151
  };
14124
13152
 
14125
- // node_modules/axios/lib/helpers/composeSignals.js
14126
- var composeSignals = (signals, timeout) => {
14127
- const { length } = signals = signals ? signals.filter(Boolean) : [];
14128
- if (timeout || length) {
14129
- let controller = new AbortController();
14130
- let aborted;
14131
- const onabort = function(reason) {
14132
- if (!aborted) {
14133
- aborted = true;
14134
- unsubscribe();
14135
- const err = reason instanceof Error ? reason : this.reason;
14136
- controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
14137
- }
14138
- };
14139
- let timer = timeout && setTimeout(() => {
14140
- timer = null;
14141
- onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
14142
- }, timeout);
14143
- const unsubscribe = () => {
14144
- if (signals) {
14145
- timer && clearTimeout(timer);
14146
- timer = null;
14147
- signals.forEach((signal2) => {
14148
- signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
14149
- });
14150
- signals = null;
14151
- }
14152
- };
14153
- signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
14154
- const { signal } = controller;
14155
- signal.unsubscribe = () => utils_default.asap(unsubscribe);
14156
- return signal;
14157
- }
14158
- };
14159
- var composeSignals_default = composeSignals;
14160
-
14161
- // node_modules/axios/lib/helpers/trackStream.js
14162
- var streamChunk = function* (chunk, chunkSize) {
14163
- let len = chunk.byteLength;
14164
- if (!chunkSize || len < chunkSize) {
14165
- yield chunk;
14166
- return;
14167
- }
14168
- let pos = 0;
14169
- let end;
14170
- while (pos < len) {
14171
- end = pos + chunkSize;
14172
- yield chunk.slice(pos, end);
14173
- pos = end;
14174
- }
14175
- };
14176
- var readBytes = async function* (iterable, chunkSize) {
14177
- for await (const chunk of readStream(iterable)) {
14178
- yield* streamChunk(chunk, chunkSize);
14179
- }
14180
- };
14181
- var readStream = async function* (stream4) {
14182
- if (stream4[Symbol.asyncIterator]) {
14183
- yield* stream4;
14184
- return;
14185
- }
14186
- const reader = stream4.getReader();
14187
- try {
14188
- for (; ; ) {
14189
- const { done, value } = await reader.read();
14190
- if (done) {
14191
- break;
14192
- }
14193
- yield value;
14194
- }
14195
- } finally {
14196
- await reader.cancel();
14197
- }
14198
- };
14199
- var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
14200
- const iterator = readBytes(stream4, chunkSize);
14201
- let bytes = 0;
14202
- let done;
14203
- let _onFinish = (e2) => {
14204
- if (!done) {
14205
- done = true;
14206
- onFinish && onFinish(e2);
14207
- }
14208
- };
14209
- return new ReadableStream({
14210
- async pull(controller) {
14211
- try {
14212
- const { done: done2, value } = await iterator.next();
14213
- if (done2) {
14214
- _onFinish();
14215
- controller.close();
14216
- return;
14217
- }
14218
- let len = value.byteLength;
14219
- if (onProgress) {
14220
- let loadedBytes = bytes += len;
14221
- onProgress(loadedBytes);
14222
- }
14223
- controller.enqueue(new Uint8Array(value));
14224
- } catch (err) {
14225
- _onFinish(err);
14226
- throw err;
14227
- }
14228
- },
14229
- cancel(reason) {
14230
- _onFinish(reason);
14231
- return iterator.return();
14232
- }
14233
- }, {
14234
- highWaterMark: 2
14235
- });
14236
- };
14237
-
14238
- // node_modules/axios/lib/adapters/fetch.js
14239
- var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
14240
- var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
14241
- var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
14242
- var test = (fn, ...args) => {
14243
- try {
14244
- return !!fn(...args);
14245
- } catch (e2) {
14246
- return false;
14247
- }
14248
- };
14249
- var supportsRequestStream = isReadableStreamSupported && test(() => {
14250
- let duplexAccessed = false;
14251
- const hasContentType = new Request(platform_default.origin, {
14252
- body: new ReadableStream(),
14253
- method: "POST",
14254
- get duplex() {
14255
- duplexAccessed = true;
14256
- return "half";
14257
- }
14258
- }).headers.has("Content-Type");
14259
- return duplexAccessed && !hasContentType;
14260
- });
14261
- var DEFAULT_CHUNK_SIZE = 64 * 1024;
14262
- var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
14263
- var resolvers = {
14264
- stream: supportsResponseStream && ((res) => res.body)
14265
- };
14266
- isFetchSupported && ((res) => {
14267
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
14268
- !resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
14269
- throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
14270
- });
14271
- });
14272
- })(new Response());
14273
- var getBodyLength = async (body) => {
14274
- if (body == null) {
14275
- return 0;
14276
- }
14277
- if (utils_default.isBlob(body)) {
14278
- return body.size;
14279
- }
14280
- if (utils_default.isSpecCompliantForm(body)) {
14281
- const _request = new Request(platform_default.origin, {
14282
- method: "POST",
14283
- body
14284
- });
14285
- return (await _request.arrayBuffer()).byteLength;
14286
- }
14287
- if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
14288
- return body.byteLength;
14289
- }
14290
- if (utils_default.isURLSearchParams(body)) {
14291
- body = body + "";
14292
- }
14293
- if (utils_default.isString(body)) {
14294
- return (await encodeText(body)).byteLength;
14295
- }
14296
- };
14297
- var resolveBodyLength = async (headers, body) => {
14298
- const length = utils_default.toFiniteNumber(headers.getContentLength());
14299
- return length == null ? getBodyLength(body) : length;
14300
- };
14301
- var fetch_default = isFetchSupported && (async (config) => {
14302
- let {
14303
- url: url2,
14304
- method,
14305
- data,
14306
- signal,
14307
- cancelToken,
14308
- timeout,
14309
- onDownloadProgress,
14310
- onUploadProgress,
14311
- responseType,
14312
- headers,
14313
- withCredentials = "same-origin",
14314
- fetchOptions
14315
- } = resolveConfig_default(config);
14316
- responseType = responseType ? (responseType + "").toLowerCase() : "text";
14317
- let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
14318
- let request;
14319
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
14320
- composedSignal.unsubscribe();
14321
- });
14322
- let requestContentLength;
14323
- try {
14324
- if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
14325
- let _request = new Request(url2, {
14326
- method: "POST",
14327
- body: data,
14328
- duplex: "half"
14329
- });
14330
- let contentTypeHeader;
14331
- if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
14332
- headers.setContentType(contentTypeHeader);
14333
- }
14334
- if (_request.body) {
14335
- const [onProgress, flush] = progressEventDecorator(
14336
- requestContentLength,
14337
- progressEventReducer(asyncDecorator(onUploadProgress))
14338
- );
14339
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
14340
- }
14341
- }
14342
- if (!utils_default.isString(withCredentials)) {
14343
- withCredentials = withCredentials ? "include" : "omit";
14344
- }
14345
- const isCredentialsSupported = "credentials" in Request.prototype;
14346
- request = new Request(url2, {
14347
- ...fetchOptions,
14348
- signal: composedSignal,
14349
- method: method.toUpperCase(),
14350
- headers: headers.normalize().toJSON(),
14351
- body: data,
14352
- duplex: "half",
14353
- credentials: isCredentialsSupported ? withCredentials : void 0
14354
- });
14355
- let response = await fetch(request);
14356
- const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
14357
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
14358
- const options = {};
14359
- ["status", "statusText", "headers"].forEach((prop) => {
14360
- options[prop] = response[prop];
14361
- });
14362
- const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
14363
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
14364
- responseContentLength,
14365
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
14366
- ) || [];
14367
- response = new Response(
14368
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
14369
- flush && flush();
14370
- unsubscribe && unsubscribe();
14371
- }),
14372
- options
14373
- );
14374
- }
14375
- responseType = responseType || "text";
14376
- let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
14377
- !isStreamResponse && unsubscribe && unsubscribe();
14378
- return await new Promise((resolve, reject) => {
14379
- settle(resolve, reject, {
14380
- data: responseData,
14381
- headers: AxiosHeaders_default.from(response.headers),
14382
- status: response.status,
14383
- statusText: response.statusText,
14384
- config,
14385
- request
14386
- });
14387
- });
14388
- } catch (err) {
14389
- unsubscribe && unsubscribe();
14390
- if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
14391
- throw Object.assign(
14392
- new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
14393
- {
14394
- cause: err.cause || err
14395
- }
14396
- );
14397
- }
14398
- throw AxiosError_default.from(err, err && err.code, config, request);
14399
- }
14400
- });
14401
-
14402
13153
  // node_modules/axios/lib/adapters/adapters.js
14403
13154
  var knownAdapters = {
14404
13155
  http: http_default,
14405
- xhr: xhr_default,
14406
- fetch: fetch_default
13156
+ xhr: xhr_default
14407
13157
  };
14408
13158
  utils_default.forEach(knownAdapters, (fn, value) => {
14409
13159
  if (fn) {
@@ -14498,6 +13248,86 @@ function dispatchRequest(config) {
14498
13248
  });
14499
13249
  }
14500
13250
 
13251
+ // node_modules/axios/lib/core/mergeConfig.js
13252
+ var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
13253
+ function mergeConfig(config1, config2) {
13254
+ config2 = config2 || {};
13255
+ const config = {};
13256
+ function getMergedValue(target, source, caseless) {
13257
+ if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
13258
+ return utils_default.merge.call({ caseless }, target, source);
13259
+ } else if (utils_default.isPlainObject(source)) {
13260
+ return utils_default.merge({}, source);
13261
+ } else if (utils_default.isArray(source)) {
13262
+ return source.slice();
13263
+ }
13264
+ return source;
13265
+ }
13266
+ function mergeDeepProperties(a, b, caseless) {
13267
+ if (!utils_default.isUndefined(b)) {
13268
+ return getMergedValue(a, b, caseless);
13269
+ } else if (!utils_default.isUndefined(a)) {
13270
+ return getMergedValue(void 0, a, caseless);
13271
+ }
13272
+ }
13273
+ function valueFromConfig2(a, b) {
13274
+ if (!utils_default.isUndefined(b)) {
13275
+ return getMergedValue(void 0, b);
13276
+ }
13277
+ }
13278
+ function defaultToConfig2(a, b) {
13279
+ if (!utils_default.isUndefined(b)) {
13280
+ return getMergedValue(void 0, b);
13281
+ } else if (!utils_default.isUndefined(a)) {
13282
+ return getMergedValue(void 0, a);
13283
+ }
13284
+ }
13285
+ function mergeDirectKeys(a, b, prop) {
13286
+ if (prop in config2) {
13287
+ return getMergedValue(a, b);
13288
+ } else if (prop in config1) {
13289
+ return getMergedValue(void 0, a);
13290
+ }
13291
+ }
13292
+ const mergeMap = {
13293
+ url: valueFromConfig2,
13294
+ method: valueFromConfig2,
13295
+ data: valueFromConfig2,
13296
+ baseURL: defaultToConfig2,
13297
+ transformRequest: defaultToConfig2,
13298
+ transformResponse: defaultToConfig2,
13299
+ paramsSerializer: defaultToConfig2,
13300
+ timeout: defaultToConfig2,
13301
+ timeoutMessage: defaultToConfig2,
13302
+ withCredentials: defaultToConfig2,
13303
+ withXSRFToken: defaultToConfig2,
13304
+ adapter: defaultToConfig2,
13305
+ responseType: defaultToConfig2,
13306
+ xsrfCookieName: defaultToConfig2,
13307
+ xsrfHeaderName: defaultToConfig2,
13308
+ onUploadProgress: defaultToConfig2,
13309
+ onDownloadProgress: defaultToConfig2,
13310
+ decompress: defaultToConfig2,
13311
+ maxContentLength: defaultToConfig2,
13312
+ maxBodyLength: defaultToConfig2,
13313
+ beforeRedirect: defaultToConfig2,
13314
+ transport: defaultToConfig2,
13315
+ httpAgent: defaultToConfig2,
13316
+ httpsAgent: defaultToConfig2,
13317
+ cancelToken: defaultToConfig2,
13318
+ socketPath: defaultToConfig2,
13319
+ responseEncoding: defaultToConfig2,
13320
+ validateStatus: mergeDirectKeys,
13321
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
13322
+ };
13323
+ utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
13324
+ const merge2 = mergeMap[prop] || mergeDeepProperties;
13325
+ const configValue = merge2(config1[prop], config2[prop], prop);
13326
+ utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
13327
+ });
13328
+ return config;
13329
+ }
13330
+
14501
13331
  // node_modules/axios/lib/helpers/validator.js
14502
13332
  var validators = {};
14503
13333
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
@@ -14529,12 +13359,6 @@ validators.transitional = function transitional(validator, version, message) {
14529
13359
  return validator ? validator(value, opt, opts) : true;
14530
13360
  };
14531
13361
  };
14532
- validators.spelling = function spelling(correctSpelling) {
14533
- return (value, opt) => {
14534
- console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
14535
- return true;
14536
- };
14537
- };
14538
13362
  function assertOptions(options, schema, allowUnknown) {
14539
13363
  if (typeof options !== "object") {
14540
13364
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
@@ -14585,16 +13409,13 @@ var Axios = class {
14585
13409
  return await this._request(configOrUrl, config);
14586
13410
  } catch (err) {
14587
13411
  if (err instanceof Error) {
14588
- let dummy = {};
14589
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
13412
+ let dummy;
13413
+ Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
14590
13414
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
14591
- try {
14592
- if (!err.stack) {
14593
- err.stack = stack;
14594
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
14595
- err.stack += "\n" + stack;
14596
- }
14597
- } catch (e2) {
13415
+ if (!err.stack) {
13416
+ err.stack = stack;
13417
+ } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
13418
+ err.stack += "\n" + stack;
14598
13419
  }
14599
13420
  }
14600
13421
  throw err;
@@ -14628,16 +13449,6 @@ var Axios = class {
14628
13449
  }, true);
14629
13450
  }
14630
13451
  }
14631
- if (config.allowAbsoluteUrls !== void 0) {
14632
- } else if (this.defaults.allowAbsoluteUrls !== void 0) {
14633
- config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
14634
- } else {
14635
- config.allowAbsoluteUrls = true;
14636
- }
14637
- validator_default.assertOptions(config, {
14638
- baseUrl: validators2.spelling("baseURL"),
14639
- withXsrfToken: validators2.spelling("withXSRFToken")
14640
- }, true);
14641
13452
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
14642
13453
  let contextHeaders = headers && utils_default.merge(
14643
13454
  headers.common,
@@ -14704,7 +13515,7 @@ var Axios = class {
14704
13515
  }
14705
13516
  getUri(config) {
14706
13517
  config = mergeConfig(this.defaults, config);
14707
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
13518
+ const fullPath = buildFullPath(config.baseURL, config.url);
14708
13519
  return buildURL(fullPath, config.params, config.paramsSerializer);
14709
13520
  }
14710
13521
  };
@@ -14807,15 +13618,6 @@ var CancelToken = class _CancelToken {
14807
13618
  this._listeners.splice(index, 1);
14808
13619
  }
14809
13620
  }
14810
- toAbortSignal() {
14811
- const controller = new AbortController();
14812
- const abort = (err) => {
14813
- controller.abort(err);
14814
- };
14815
- this.subscribe(abort);
14816
- controller.signal.unsubscribe = () => this.unsubscribe(abort);
14817
- return controller.signal;
14818
- }
14819
13621
  /**
14820
13622
  * Returns an object that contains a new `CancelToken` and a function that, when called,
14821
13623
  * cancels the `CancelToken`.