@vypdev/copilot 3.10.1 → 3.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2139,7 +2139,7 @@ exports.getProxyAgentDispatcher = getProxyAgentDispatcher;
2139
2139
  exports.getProxyFetch = getProxyFetch;
2140
2140
  exports.getApiBaseUrl = getApiBaseUrl;
2141
2141
  const httpClient = __importStar(__nccwpck_require__(75784));
2142
- const undici_1 = __nccwpck_require__(18381);
2142
+ const undici_1 = __nccwpck_require__(31241);
2143
2143
  function getAuthString(token, options) {
2144
2144
  if (!token && !options.auth) {
2145
2145
  throw new Error('Parameter token or opts.auth is required');
@@ -2391,7 +2391,7 @@ const http = __importStar(__nccwpck_require__(13685));
2391
2391
  const https = __importStar(__nccwpck_require__(95687));
2392
2392
  const pm = __importStar(__nccwpck_require__(34583));
2393
2393
  const tunnel = __importStar(__nccwpck_require__(64249));
2394
- const undici_1 = __nccwpck_require__(18381);
2394
+ const undici_1 = __nccwpck_require__(31241);
2395
2395
  var HttpCodes;
2396
2396
  (function (HttpCodes) {
2397
2397
  HttpCodes[HttpCodes["OK"] = 200] = "OK";
@@ -8503,34 +8503,34 @@ exports.debug = debug; // for test
8503
8503
 
8504
8504
  /***/ }),
8505
8505
 
8506
- /***/ 18381:
8506
+ /***/ 31241:
8507
8507
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
8508
8508
 
8509
8509
  "use strict";
8510
8510
 
8511
8511
 
8512
- const Client = __nccwpck_require__(85849)
8513
- const Dispatcher = __nccwpck_require__(66071)
8514
- const Pool = __nccwpck_require__(80229)
8515
- const BalancedPool = __nccwpck_require__(68255)
8516
- const Agent = __nccwpck_require__(73274)
8517
- const ProxyAgent = __nccwpck_require__(87187)
8518
- const EnvHttpProxyAgent = __nccwpck_require__(29941)
8519
- const RetryAgent = __nccwpck_require__(55184)
8520
- const errors = __nccwpck_require__(35990)
8521
- const util = __nccwpck_require__(50011)
8512
+ const Client = __nccwpck_require__(6237)
8513
+ const Dispatcher = __nccwpck_require__(32171)
8514
+ const Pool = __nccwpck_require__(49771)
8515
+ const BalancedPool = __nccwpck_require__(88214)
8516
+ const Agent = __nccwpck_require__(1880)
8517
+ const ProxyAgent = __nccwpck_require__(57912)
8518
+ const EnvHttpProxyAgent = __nccwpck_require__(42547)
8519
+ const RetryAgent = __nccwpck_require__(42626)
8520
+ const errors = __nccwpck_require__(47926)
8521
+ const util = __nccwpck_require__(31014)
8522
8522
  const { InvalidArgumentError } = errors
8523
- const api = __nccwpck_require__(20617)
8524
- const buildConnector = __nccwpck_require__(41429)
8525
- const MockClient = __nccwpck_require__(4227)
8526
- const MockAgent = __nccwpck_require__(46432)
8527
- const MockPool = __nccwpck_require__(36575)
8528
- const mockErrors = __nccwpck_require__(19329)
8529
- const RetryHandler = __nccwpck_require__(64524)
8530
- const { getGlobalDispatcher, setGlobalDispatcher } = __nccwpck_require__(19405)
8531
- const DecoratorHandler = __nccwpck_require__(41738)
8532
- const RedirectHandler = __nccwpck_require__(64014)
8533
- const createRedirectInterceptor = __nccwpck_require__(40928)
8523
+ const api = __nccwpck_require__(39663)
8524
+ const buildConnector = __nccwpck_require__(63447)
8525
+ const MockClient = __nccwpck_require__(69636)
8526
+ const MockAgent = __nccwpck_require__(89937)
8527
+ const MockPool = __nccwpck_require__(40660)
8528
+ const mockErrors = __nccwpck_require__(33519)
8529
+ const RetryHandler = __nccwpck_require__(12671)
8530
+ const { getGlobalDispatcher, setGlobalDispatcher } = __nccwpck_require__(53139)
8531
+ const DecoratorHandler = __nccwpck_require__(59280)
8532
+ const RedirectHandler = __nccwpck_require__(90008)
8533
+ const createRedirectInterceptor = __nccwpck_require__(91467)
8534
8534
 
8535
8535
  Object.assign(Dispatcher.prototype, api)
8536
8536
 
@@ -8548,10 +8548,10 @@ module.exports.DecoratorHandler = DecoratorHandler
8548
8548
  module.exports.RedirectHandler = RedirectHandler
8549
8549
  module.exports.createRedirectInterceptor = createRedirectInterceptor
8550
8550
  module.exports.interceptors = {
8551
- redirect: __nccwpck_require__(74872),
8552
- retry: __nccwpck_require__(79637),
8553
- dump: __nccwpck_require__(12493),
8554
- dns: __nccwpck_require__(20346)
8551
+ redirect: __nccwpck_require__(42182),
8552
+ retry: __nccwpck_require__(17389),
8553
+ dump: __nccwpck_require__(9408),
8554
+ dns: __nccwpck_require__(26290)
8555
8555
  }
8556
8556
 
8557
8557
  module.exports.buildConnector = buildConnector
@@ -8613,7 +8613,7 @@ function makeDispatcher (fn) {
8613
8613
  module.exports.setGlobalDispatcher = setGlobalDispatcher
8614
8614
  module.exports.getGlobalDispatcher = getGlobalDispatcher
8615
8615
 
8616
- const fetchImpl = (__nccwpck_require__(78329).fetch)
8616
+ const fetchImpl = (__nccwpck_require__(87321).fetch)
8617
8617
  module.exports.fetch = async function fetch (init, options = undefined) {
8618
8618
  try {
8619
8619
  return await fetchImpl(init, options)
@@ -8625,39 +8625,39 @@ module.exports.fetch = async function fetch (init, options = undefined) {
8625
8625
  throw err
8626
8626
  }
8627
8627
  }
8628
- module.exports.Headers = __nccwpck_require__(10561).Headers
8629
- module.exports.Response = __nccwpck_require__(51132).Response
8630
- module.exports.Request = __nccwpck_require__(83211).Request
8631
- module.exports.FormData = __nccwpck_require__(62598).FormData
8628
+ module.exports.Headers = __nccwpck_require__(33924).Headers
8629
+ module.exports.Response = __nccwpck_require__(63042).Response
8630
+ module.exports.Request = __nccwpck_require__(11192).Request
8631
+ module.exports.FormData = __nccwpck_require__(59550).FormData
8632
8632
  module.exports.File = globalThis.File ?? (__nccwpck_require__(72254).File)
8633
- module.exports.FileReader = __nccwpck_require__(65153).FileReader
8633
+ module.exports.FileReader = __nccwpck_require__(62596).FileReader
8634
8634
 
8635
- const { setGlobalOrigin, getGlobalOrigin } = __nccwpck_require__(13924)
8635
+ const { setGlobalOrigin, getGlobalOrigin } = __nccwpck_require__(22407)
8636
8636
 
8637
8637
  module.exports.setGlobalOrigin = setGlobalOrigin
8638
8638
  module.exports.getGlobalOrigin = getGlobalOrigin
8639
8639
 
8640
- const { CacheStorage } = __nccwpck_require__(11069)
8641
- const { kConstruct } = __nccwpck_require__(50591)
8640
+ const { CacheStorage } = __nccwpck_require__(13256)
8641
+ const { kConstruct } = __nccwpck_require__(275)
8642
8642
 
8643
8643
  // Cache & CacheStorage are tightly coupled with fetch. Even if it may run
8644
8644
  // in an older version of Node, it doesn't have any use without fetch.
8645
8645
  module.exports.caches = new CacheStorage(kConstruct)
8646
8646
 
8647
- const { deleteCookie, getCookies, getSetCookies, setCookie } = __nccwpck_require__(15855)
8647
+ const { deleteCookie, getCookies, getSetCookies, setCookie } = __nccwpck_require__(84245)
8648
8648
 
8649
8649
  module.exports.deleteCookie = deleteCookie
8650
8650
  module.exports.getCookies = getCookies
8651
8651
  module.exports.getSetCookies = getSetCookies
8652
8652
  module.exports.setCookie = setCookie
8653
8653
 
8654
- const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(96730)
8654
+ const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(68889)
8655
8655
 
8656
8656
  module.exports.parseMIMEType = parseMIMEType
8657
8657
  module.exports.serializeAMimeType = serializeAMimeType
8658
8658
 
8659
- const { CloseEvent, ErrorEvent, MessageEvent } = __nccwpck_require__(69459)
8660
- module.exports.WebSocket = __nccwpck_require__(16416).WebSocket
8659
+ const { CloseEvent, ErrorEvent, MessageEvent } = __nccwpck_require__(85021)
8660
+ module.exports.WebSocket = __nccwpck_require__(43590).WebSocket
8661
8661
  module.exports.CloseEvent = CloseEvent
8662
8662
  module.exports.ErrorEvent = ErrorEvent
8663
8663
  module.exports.MessageEvent = MessageEvent
@@ -8673,18 +8673,18 @@ module.exports.MockPool = MockPool
8673
8673
  module.exports.MockAgent = MockAgent
8674
8674
  module.exports.mockErrors = mockErrors
8675
8675
 
8676
- const { EventSource } = __nccwpck_require__(6731)
8676
+ const { EventSource } = __nccwpck_require__(74292)
8677
8677
 
8678
8678
  module.exports.EventSource = EventSource
8679
8679
 
8680
8680
 
8681
8681
  /***/ }),
8682
8682
 
8683
- /***/ 97433:
8683
+ /***/ 44378:
8684
8684
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
8685
8685
 
8686
- const { addAbortListener } = __nccwpck_require__(50011)
8687
- const { RequestAbortedError } = __nccwpck_require__(35990)
8686
+ const { addAbortListener } = __nccwpck_require__(31014)
8687
+ const { RequestAbortedError } = __nccwpck_require__(47926)
8688
8688
 
8689
8689
  const kListener = Symbol('kListener')
8690
8690
  const kSignal = Symbol('kSignal')
@@ -8744,7 +8744,7 @@ module.exports = {
8744
8744
 
8745
8745
  /***/ }),
8746
8746
 
8747
- /***/ 93671:
8747
+ /***/ 48105:
8748
8748
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
8749
8749
 
8750
8750
  "use strict";
@@ -8752,9 +8752,9 @@ module.exports = {
8752
8752
 
8753
8753
  const assert = __nccwpck_require__(98061)
8754
8754
  const { AsyncResource } = __nccwpck_require__(92761)
8755
- const { InvalidArgumentError, SocketError } = __nccwpck_require__(35990)
8756
- const util = __nccwpck_require__(50011)
8757
- const { addSignal, removeSignal } = __nccwpck_require__(97433)
8755
+ const { InvalidArgumentError, SocketError } = __nccwpck_require__(47926)
8756
+ const util = __nccwpck_require__(31014)
8757
+ const { addSignal, removeSignal } = __nccwpck_require__(44378)
8758
8758
 
8759
8759
  class ConnectHandler extends AsyncResource {
8760
8760
  constructor (opts, callback) {
@@ -8860,7 +8860,7 @@ module.exports = connect
8860
8860
 
8861
8861
  /***/ }),
8862
8862
 
8863
- /***/ 281:
8863
+ /***/ 25050:
8864
8864
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
8865
8865
 
8866
8866
  "use strict";
@@ -8875,10 +8875,10 @@ const {
8875
8875
  InvalidArgumentError,
8876
8876
  InvalidReturnValueError,
8877
8877
  RequestAbortedError
8878
- } = __nccwpck_require__(35990)
8879
- const util = __nccwpck_require__(50011)
8878
+ } = __nccwpck_require__(47926)
8879
+ const util = __nccwpck_require__(31014)
8880
8880
  const { AsyncResource } = __nccwpck_require__(92761)
8881
- const { addSignal, removeSignal } = __nccwpck_require__(97433)
8881
+ const { addSignal, removeSignal } = __nccwpck_require__(44378)
8882
8882
  const assert = __nccwpck_require__(98061)
8883
8883
 
8884
8884
  const kResume = Symbol('resume')
@@ -9119,17 +9119,17 @@ module.exports = pipeline
9119
9119
 
9120
9120
  /***/ }),
9121
9121
 
9122
- /***/ 26562:
9122
+ /***/ 53067:
9123
9123
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
9124
9124
 
9125
9125
  "use strict";
9126
9126
 
9127
9127
 
9128
9128
  const assert = __nccwpck_require__(98061)
9129
- const { Readable } = __nccwpck_require__(93401)
9130
- const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(35990)
9131
- const util = __nccwpck_require__(50011)
9132
- const { getResolveErrorBodyCallback } = __nccwpck_require__(80710)
9129
+ const { Readable } = __nccwpck_require__(67646)
9130
+ const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(47926)
9131
+ const util = __nccwpck_require__(31014)
9132
+ const { getResolveErrorBodyCallback } = __nccwpck_require__(78393)
9133
9133
  const { AsyncResource } = __nccwpck_require__(92761)
9134
9134
 
9135
9135
  class RequestHandler extends AsyncResource {
@@ -9341,7 +9341,7 @@ module.exports.RequestHandler = RequestHandler
9341
9341
 
9342
9342
  /***/ }),
9343
9343
 
9344
- /***/ 75059:
9344
+ /***/ 21890:
9345
9345
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
9346
9346
 
9347
9347
  "use strict";
@@ -9349,11 +9349,11 @@ module.exports.RequestHandler = RequestHandler
9349
9349
 
9350
9350
  const assert = __nccwpck_require__(98061)
9351
9351
  const { finished, PassThrough } = __nccwpck_require__(84492)
9352
- const { InvalidArgumentError, InvalidReturnValueError } = __nccwpck_require__(35990)
9353
- const util = __nccwpck_require__(50011)
9354
- const { getResolveErrorBodyCallback } = __nccwpck_require__(80710)
9352
+ const { InvalidArgumentError, InvalidReturnValueError } = __nccwpck_require__(47926)
9353
+ const util = __nccwpck_require__(31014)
9354
+ const { getResolveErrorBodyCallback } = __nccwpck_require__(78393)
9355
9355
  const { AsyncResource } = __nccwpck_require__(92761)
9356
- const { addSignal, removeSignal } = __nccwpck_require__(97433)
9356
+ const { addSignal, removeSignal } = __nccwpck_require__(44378)
9357
9357
 
9358
9358
  class StreamHandler extends AsyncResource {
9359
9359
  constructor (opts, factory, callback) {
@@ -9569,16 +9569,16 @@ module.exports = stream
9569
9569
 
9570
9570
  /***/ }),
9571
9571
 
9572
- /***/ 23792:
9572
+ /***/ 94422:
9573
9573
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
9574
9574
 
9575
9575
  "use strict";
9576
9576
 
9577
9577
 
9578
- const { InvalidArgumentError, SocketError } = __nccwpck_require__(35990)
9578
+ const { InvalidArgumentError, SocketError } = __nccwpck_require__(47926)
9579
9579
  const { AsyncResource } = __nccwpck_require__(92761)
9580
- const util = __nccwpck_require__(50011)
9581
- const { addSignal, removeSignal } = __nccwpck_require__(97433)
9580
+ const util = __nccwpck_require__(31014)
9581
+ const { addSignal, removeSignal } = __nccwpck_require__(44378)
9582
9582
  const assert = __nccwpck_require__(98061)
9583
9583
 
9584
9584
  class UpgradeHandler extends AsyncResource {
@@ -9685,22 +9685,22 @@ module.exports = upgrade
9685
9685
 
9686
9686
  /***/ }),
9687
9687
 
9688
- /***/ 20617:
9688
+ /***/ 39663:
9689
9689
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
9690
9690
 
9691
9691
  "use strict";
9692
9692
 
9693
9693
 
9694
- module.exports.request = __nccwpck_require__(26562)
9695
- module.exports.stream = __nccwpck_require__(75059)
9696
- module.exports.pipeline = __nccwpck_require__(281)
9697
- module.exports.upgrade = __nccwpck_require__(23792)
9698
- module.exports.connect = __nccwpck_require__(93671)
9694
+ module.exports.request = __nccwpck_require__(53067)
9695
+ module.exports.stream = __nccwpck_require__(21890)
9696
+ module.exports.pipeline = __nccwpck_require__(25050)
9697
+ module.exports.upgrade = __nccwpck_require__(94422)
9698
+ module.exports.connect = __nccwpck_require__(48105)
9699
9699
 
9700
9700
 
9701
9701
  /***/ }),
9702
9702
 
9703
- /***/ 93401:
9703
+ /***/ 67646:
9704
9704
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
9705
9705
 
9706
9706
  "use strict";
@@ -9710,9 +9710,9 @@ module.exports.connect = __nccwpck_require__(93671)
9710
9710
 
9711
9711
  const assert = __nccwpck_require__(98061)
9712
9712
  const { Readable } = __nccwpck_require__(84492)
9713
- const { RequestAbortedError, NotSupportedError, InvalidArgumentError, AbortError } = __nccwpck_require__(35990)
9714
- const util = __nccwpck_require__(50011)
9715
- const { ReadableStreamFrom } = __nccwpck_require__(50011)
9713
+ const { RequestAbortedError, NotSupportedError, InvalidArgumentError, AbortError } = __nccwpck_require__(47926)
9714
+ const util = __nccwpck_require__(31014)
9715
+ const { ReadableStreamFrom } = __nccwpck_require__(31014)
9716
9716
 
9717
9717
  const kConsume = Symbol('kConsume')
9718
9718
  const kReading = Symbol('kReading')
@@ -10093,15 +10093,15 @@ module.exports = { Readable: BodyReadable, chunksDecode }
10093
10093
 
10094
10094
  /***/ }),
10095
10095
 
10096
- /***/ 80710:
10096
+ /***/ 78393:
10097
10097
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
10098
10098
 
10099
10099
  const assert = __nccwpck_require__(98061)
10100
10100
  const {
10101
10101
  ResponseStatusCodeError
10102
- } = __nccwpck_require__(35990)
10102
+ } = __nccwpck_require__(47926)
10103
10103
 
10104
- const { chunksDecode } = __nccwpck_require__(93401)
10104
+ const { chunksDecode } = __nccwpck_require__(67646)
10105
10105
  const CHUNK_LIMIT = 128 * 1024
10106
10106
 
10107
10107
  async function getResolveErrorBodyCallback ({ callback, body, contentType, statusCode, statusMessage, headers }) {
@@ -10193,7 +10193,7 @@ module.exports = {
10193
10193
 
10194
10194
  /***/ }),
10195
10195
 
10196
- /***/ 41429:
10196
+ /***/ 63447:
10197
10197
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
10198
10198
 
10199
10199
  "use strict";
@@ -10201,9 +10201,9 @@ module.exports = {
10201
10201
 
10202
10202
  const net = __nccwpck_require__(87503)
10203
10203
  const assert = __nccwpck_require__(98061)
10204
- const util = __nccwpck_require__(50011)
10205
- const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(35990)
10206
- const timers = __nccwpck_require__(77512)
10204
+ const util = __nccwpck_require__(31014)
10205
+ const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(47926)
10206
+ const timers = __nccwpck_require__(63125)
10207
10207
 
10208
10208
  function noop () {}
10209
10209
 
@@ -10441,7 +10441,7 @@ module.exports = buildConnector
10441
10441
 
10442
10442
  /***/ }),
10443
10443
 
10444
- /***/ 53451:
10444
+ /***/ 91362:
10445
10445
  /***/ ((module) => {
10446
10446
 
10447
10447
  "use strict";
@@ -10567,7 +10567,7 @@ module.exports = {
10567
10567
 
10568
10568
  /***/ }),
10569
10569
 
10570
- /***/ 65543:
10570
+ /***/ 96005:
10571
10571
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
10572
10572
 
10573
10573
  "use strict";
@@ -10777,7 +10777,7 @@ module.exports = {
10777
10777
 
10778
10778
  /***/ }),
10779
10779
 
10780
- /***/ 35990:
10780
+ /***/ 47926:
10781
10781
  /***/ ((module) => {
10782
10782
 
10783
10783
  "use strict";
@@ -11210,7 +11210,7 @@ module.exports = {
11210
11210
 
11211
11211
  /***/ }),
11212
11212
 
11213
- /***/ 13484:
11213
+ /***/ 82075:
11214
11214
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
11215
11215
 
11216
11216
  "use strict";
@@ -11219,7 +11219,7 @@ module.exports = {
11219
11219
  const {
11220
11220
  InvalidArgumentError,
11221
11221
  NotSupportedError
11222
- } = __nccwpck_require__(35990)
11222
+ } = __nccwpck_require__(47926)
11223
11223
  const assert = __nccwpck_require__(98061)
11224
11224
  const {
11225
11225
  isValidHTTPToken,
@@ -11234,9 +11234,9 @@ const {
11234
11234
  validateHandler,
11235
11235
  getServerName,
11236
11236
  normalizedMethodRecords
11237
- } = __nccwpck_require__(50011)
11238
- const { channels } = __nccwpck_require__(65543)
11239
- const { headerNameLowerCasedRecord } = __nccwpck_require__(53451)
11237
+ } = __nccwpck_require__(31014)
11238
+ const { channels } = __nccwpck_require__(96005)
11239
+ const { headerNameLowerCasedRecord } = __nccwpck_require__(91362)
11240
11240
 
11241
11241
  // Verifies that a given path is valid does not contain control chars \x00 to \x20
11242
11242
  const invalidPathRegex = /[^\u0021-\u00ff]/
@@ -11479,11 +11479,77 @@ class Request {
11479
11479
  }
11480
11480
  }
11481
11481
 
11482
- onUpgrade (statusCode, headers, socket) {
11482
+ /**
11483
+ * @param {number|null} statusCode
11484
+ * @param {Buffer[]|null} headers
11485
+ * @param {import('node:stream').Duplex} socket
11486
+ * @param {string} [statusText]
11487
+ */
11488
+ onUpgrade (statusCode, headers, socket, statusText = '') {
11489
+ this.onFinally()
11490
+
11483
11491
  assert(!this.aborted)
11484
11492
  assert(!this.completed)
11485
11493
 
11486
- return this[kHandler].onUpgrade(statusCode, headers, socket)
11494
+ if (statusCode !== null) {
11495
+ this.#publishUpgradeHeaders(statusCode, headers, statusText)
11496
+ }
11497
+
11498
+ const result = this[kHandler].onUpgrade(statusCode, headers, socket)
11499
+
11500
+ if (!this.aborted) {
11501
+ this.completed = true
11502
+ if (statusCode !== null) {
11503
+ this.#publishUpgradeTrailers()
11504
+ }
11505
+ }
11506
+
11507
+ return result
11508
+ }
11509
+
11510
+ /**
11511
+ * @param {number} statusCode
11512
+ * @param {import('node:http2').IncomingHttpHeaders} headers
11513
+ * @param {(headers: import('node:http2').IncomingHttpHeaders) => Buffer[]} parseHeaders
11514
+ * @param {string} [statusText]
11515
+ */
11516
+ onUpgradeResponse (statusCode, headers, parseHeaders, statusText = '') {
11517
+ assert(!this.aborted)
11518
+ assert(this.completed)
11519
+
11520
+ if (channels.headers.hasSubscribers) {
11521
+ this.#publishUpgradeHeaders(statusCode, parseHeaders(headers), statusText)
11522
+ }
11523
+ this.#publishUpgradeTrailers()
11524
+ }
11525
+
11526
+ /**
11527
+ * @param {Error} error
11528
+ */
11529
+ onUpgradeError (error) {
11530
+ assert(!this.aborted)
11531
+ assert(this.completed)
11532
+
11533
+ if (channels.error.hasSubscribers) {
11534
+ channels.error.publish({ request: this, error })
11535
+ }
11536
+ }
11537
+
11538
+ /**
11539
+ * @param {number} statusCode
11540
+ * @param {Buffer[]} headers
11541
+ * @param {string} statusText
11542
+ */
11543
+ #publishUpgradeHeaders (statusCode, headers, statusText) {
11544
+ if (channels.headers.hasSubscribers) {
11545
+ channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })
11546
+ }
11547
+ }
11548
+
11549
+ #publishUpgradeTrailers () {
11550
+ if (channels.trailers.hasSubscribers) {
11551
+ channels.trailers.publish({ request: this, trailers: [] })
11552
+ }
11487
11553
  }
11488
11554
 
11489
11555
  onComplete (trailers) {
@@ -11634,7 +11700,7 @@ module.exports = Request
11634
11700
 
11635
11701
  /***/ }),
11636
11702
 
11637
- /***/ 13638:
11703
+ /***/ 94822:
11638
11704
  /***/ ((module) => {
11639
11705
 
11640
11706
  module.exports = {
@@ -11708,7 +11774,7 @@ module.exports = {
11708
11774
 
11709
11775
  /***/ }),
11710
11776
 
11711
- /***/ 30723:
11777
+ /***/ 52731:
11712
11778
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
11713
11779
 
11714
11780
  "use strict";
@@ -11717,7 +11783,7 @@ module.exports = {
11717
11783
  const {
11718
11784
  wellknownHeaderNames,
11719
11785
  headerNameLowerCasedRecord
11720
- } = __nccwpck_require__(53451)
11786
+ } = __nccwpck_require__(91362)
11721
11787
 
11722
11788
  class TstNode {
11723
11789
  /** @type {any} */
@@ -11868,14 +11934,14 @@ module.exports = {
11868
11934
 
11869
11935
  /***/ }),
11870
11936
 
11871
- /***/ 50011:
11937
+ /***/ 31014:
11872
11938
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
11873
11939
 
11874
11940
  "use strict";
11875
11941
 
11876
11942
 
11877
11943
  const assert = __nccwpck_require__(98061)
11878
- const { kDestroyed, kBodyUsed, kListeners, kBody } = __nccwpck_require__(13638)
11944
+ const { kDestroyed, kBodyUsed, kListeners, kBody } = __nccwpck_require__(94822)
11879
11945
  const { IncomingMessage } = __nccwpck_require__(88849)
11880
11946
  const stream = __nccwpck_require__(84492)
11881
11947
  const net = __nccwpck_require__(87503)
@@ -11883,9 +11949,9 @@ const { Blob } = __nccwpck_require__(72254)
11883
11949
  const nodeUtil = __nccwpck_require__(47261)
11884
11950
  const { stringify } = __nccwpck_require__(39630)
11885
11951
  const { EventEmitter: EE } = __nccwpck_require__(15673)
11886
- const { InvalidArgumentError } = __nccwpck_require__(35990)
11887
- const { headerNameLowerCasedRecord } = __nccwpck_require__(53451)
11888
- const { tree } = __nccwpck_require__(30723)
11952
+ const { InvalidArgumentError } = __nccwpck_require__(47926)
11953
+ const { headerNameLowerCasedRecord } = __nccwpck_require__(91362)
11954
+ const { tree } = __nccwpck_require__(52731)
11889
11955
 
11890
11956
  const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))
11891
11957
 
@@ -12595,19 +12661,19 @@ module.exports = {
12595
12661
 
12596
12662
  /***/ }),
12597
12663
 
12598
- /***/ 73274:
12664
+ /***/ 1880:
12599
12665
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
12600
12666
 
12601
12667
  "use strict";
12602
12668
 
12603
12669
 
12604
- const { InvalidArgumentError } = __nccwpck_require__(35990)
12605
- const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(13638)
12606
- const DispatcherBase = __nccwpck_require__(39504)
12607
- const Pool = __nccwpck_require__(80229)
12608
- const Client = __nccwpck_require__(85849)
12609
- const util = __nccwpck_require__(50011)
12610
- const createRedirectInterceptor = __nccwpck_require__(40928)
12670
+ const { InvalidArgumentError } = __nccwpck_require__(47926)
12671
+ const { kClients, kRunning, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(94822)
12672
+ const DispatcherBase = __nccwpck_require__(26844)
12673
+ const Pool = __nccwpck_require__(49771)
12674
+ const Client = __nccwpck_require__(6237)
12675
+ const util = __nccwpck_require__(31014)
12676
+ const createRedirectInterceptor = __nccwpck_require__(91467)
12611
12677
 
12612
12678
  const kOnConnect = Symbol('onConnect')
12613
12679
  const kOnDisconnect = Symbol('onDisconnect')
@@ -12624,7 +12690,7 @@ function defaultFactory (origin, opts) {
12624
12690
  }
12625
12691
 
12626
12692
  class Agent extends DispatcherBase {
12627
- constructor ({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) {
12693
+ constructor ({ factory = defaultFactory, maxRedirections = 0, connect, tls, ...options } = {}) {
12628
12694
  if (typeof factory !== 'function') {
12629
12695
  throw new InvalidArgumentError('factory must be a function.')
12630
12696
  }
@@ -12643,11 +12709,15 @@ class Agent extends DispatcherBase {
12643
12709
  connect = { ...connect }
12644
12710
  }
12645
12711
 
12712
+ if (tls && typeof tls !== 'function') {
12713
+ tls = { ...tls }
12714
+ }
12715
+
12646
12716
  this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent)
12647
12717
  ? options.interceptors.Agent
12648
12718
  : [createRedirectInterceptor({ maxRedirections })]
12649
12719
 
12650
- this[kOptions] = { ...util.deepClone(options), connect }
12720
+ this[kOptions] = { ...util.deepClone(options), connect, tls }
12651
12721
  this[kOptions].interceptors = options.interceptors
12652
12722
  ? { ...options.interceptors }
12653
12723
  : undefined
@@ -12732,7 +12802,7 @@ module.exports = Agent
12732
12802
 
12733
12803
  /***/ }),
12734
12804
 
12735
- /***/ 68255:
12805
+ /***/ 88214:
12736
12806
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
12737
12807
 
12738
12808
  "use strict";
@@ -12741,7 +12811,7 @@ module.exports = Agent
12741
12811
  const {
12742
12812
  BalancedPoolMissingUpstreamError,
12743
12813
  InvalidArgumentError
12744
- } = __nccwpck_require__(35990)
12814
+ } = __nccwpck_require__(47926)
12745
12815
  const {
12746
12816
  PoolBase,
12747
12817
  kClients,
@@ -12749,10 +12819,10 @@ const {
12749
12819
  kAddClient,
12750
12820
  kRemoveClient,
12751
12821
  kGetDispatcher
12752
- } = __nccwpck_require__(1467)
12753
- const Pool = __nccwpck_require__(80229)
12754
- const { kUrl, kInterceptors } = __nccwpck_require__(13638)
12755
- const { parseOrigin } = __nccwpck_require__(50011)
12822
+ } = __nccwpck_require__(97367)
12823
+ const Pool = __nccwpck_require__(49771)
12824
+ const { kUrl, kInterceptors } = __nccwpck_require__(94822)
12825
+ const { parseOrigin } = __nccwpck_require__(31014)
12756
12826
  const kFactory = Symbol('factory')
12757
12827
 
12758
12828
  const kOptions = Symbol('options')
@@ -12949,7 +13019,7 @@ module.exports = BalancedPool
12949
13019
 
12950
13020
  /***/ }),
12951
13021
 
12952
- /***/ 14429:
13022
+ /***/ 78365:
12953
13023
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
12954
13024
 
12955
13025
  "use strict";
@@ -12958,9 +13028,9 @@ module.exports = BalancedPool
12958
13028
  /* global WebAssembly */
12959
13029
 
12960
13030
  const assert = __nccwpck_require__(98061)
12961
- const util = __nccwpck_require__(50011)
12962
- const { channels } = __nccwpck_require__(65543)
12963
- const timers = __nccwpck_require__(77512)
13031
+ const util = __nccwpck_require__(31014)
13032
+ const { channels } = __nccwpck_require__(96005)
13033
+ const timers = __nccwpck_require__(63125)
12964
13034
  const {
12965
13035
  RequestContentLengthMismatchError,
12966
13036
  ResponseContentLengthMismatchError,
@@ -12973,7 +13043,7 @@ const {
12973
13043
  BodyTimeoutError,
12974
13044
  HTTPParserError,
12975
13045
  ResponseExceededMaxSizeError
12976
- } = __nccwpck_require__(35990)
13046
+ } = __nccwpck_require__(47926)
12977
13047
  const {
12978
13048
  kUrl,
12979
13049
  kReset,
@@ -13006,9 +13076,9 @@ const {
13006
13076
  kOnError,
13007
13077
  kResume,
13008
13078
  kHTTPContext
13009
- } = __nccwpck_require__(13638)
13079
+ } = __nccwpck_require__(94822)
13010
13080
 
13011
- const constants = __nccwpck_require__(41721)
13081
+ const constants = __nccwpck_require__(27692)
13012
13082
  const EMPTY_BUF = Buffer.alloc(0)
13013
13083
  const FastBuffer = Buffer[Symbol.species]
13014
13084
  const addListener = util.addListener
@@ -13020,11 +13090,11 @@ const kSocketUsed = Symbol('kSocketUsed')
13020
13090
  let extractBody
13021
13091
 
13022
13092
  async function lazyllhttp () {
13023
- const llhttpWasmData = process.env.JEST_WORKER_ID ? __nccwpck_require__(46081) : undefined
13093
+ const llhttpWasmData = process.env.JEST_WORKER_ID ? __nccwpck_require__(84888) : undefined
13024
13094
 
13025
13095
  let mod
13026
13096
  try {
13027
- mod = await WebAssembly.compile(__nccwpck_require__(97877))
13097
+ mod = await WebAssembly.compile(__nccwpck_require__(31445))
13028
13098
  } catch (e) {
13029
13099
  /* istanbul ignore next */
13030
13100
 
@@ -13032,7 +13102,7 @@ async function lazyllhttp () {
13032
13102
  // being enabled, but the occurring of this other error
13033
13103
  // * https://github.com/emscripten-core/emscripten/issues/11495
13034
13104
  // got me to remove that check to avoid breaking Node 12.
13035
- mod = await WebAssembly.compile(llhttpWasmData || __nccwpck_require__(46081))
13105
+ mod = await WebAssembly.compile(llhttpWasmData || __nccwpck_require__(84888))
13036
13106
  }
13037
13107
 
13038
13108
  return await WebAssembly.instantiate(mod, {
@@ -13387,7 +13457,7 @@ class Parser {
13387
13457
  }
13388
13458
 
13389
13459
  onUpgrade (head) {
13390
- const { upgrade, client, socket, headers, statusCode } = this
13460
+ const { upgrade, client, socket, headers, statusCode, statusText } = this
13391
13461
 
13392
13462
  assert(upgrade)
13393
13463
  assert(client[kSocket] === socket)
@@ -13422,9 +13492,10 @@ class Parser {
13422
13492
  client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'))
13423
13493
 
13424
13494
  try {
13425
- request.onUpgrade(statusCode, headers, socket)
13426
- } catch (err) {
13427
- util.destroy(socket, err)
13495
+ request.onUpgrade(statusCode, headers, socket, statusText)
13496
+ } catch (error) {
13497
+ util.errorRequest(client, request, error)
13498
+ util.destroy(socket, error)
13428
13499
  }
13429
13500
 
13430
13501
  client[kResume]()
@@ -13681,8 +13752,6 @@ async function connectH1 (client, socket) {
13681
13752
  socket[kParser] = new Parser(client, socket, llhttpInstance)
13682
13753
 
13683
13754
  addListener(socket, 'error', function (err) {
13684
- assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
13685
-
13686
13755
  const parser = this[kParser]
13687
13756
 
13688
13757
  // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded
@@ -13948,7 +14017,7 @@ function writeH1 (client, request) {
13948
14017
 
13949
14018
  if (util.isFormDataLike(body)) {
13950
14019
  if (!extractBody) {
13951
- extractBody = (__nccwpck_require__(12749).extractBody)
14020
+ extractBody = (__nccwpck_require__(48203).extractBody)
13952
14021
  }
13953
14022
 
13954
14023
  const [bodyStream, contentType] = extractBody(body)
@@ -14005,12 +14074,22 @@ function writeH1 (client, request) {
14005
14074
  const socket = client[kSocket]
14006
14075
  clearIdleSocketValidation(socket)
14007
14076
 
14008
- const abort = (err) => {
14009
- if (request.aborted || request.completed) {
14077
+ /**
14078
+ * @param {Error} [error]
14079
+ */
14080
+ const abort = (error) => {
14081
+ if (request.aborted) {
14010
14082
  return
14011
14083
  }
14012
14084
 
14013
- util.errorRequest(client, request, err || new RequestAbortedError())
14085
+ if (request.completed) {
14086
+ if (request.upgrade || request.method === 'CONNECT') {
14087
+ util.destroy(socket, new InformationalError('aborted'))
14088
+ }
14089
+ return
14090
+ }
14091
+
14092
+ util.errorRequest(client, request, error || new RequestAbortedError())
14014
14093
 
14015
14094
  util.destroy(body)
14016
14095
  util.destroy(socket, new InformationalError('aborted'))
@@ -14461,21 +14540,22 @@ module.exports = connectH1
14461
14540
 
14462
14541
  /***/ }),
14463
14542
 
14464
- /***/ 34879:
14543
+ /***/ 55267:
14465
14544
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
14466
14545
 
14467
14546
  "use strict";
14468
14547
 
14469
14548
 
14470
14549
  const assert = __nccwpck_require__(98061)
14550
+ const { errorMonitor } = __nccwpck_require__(15673)
14471
14551
  const { pipeline } = __nccwpck_require__(84492)
14472
- const util = __nccwpck_require__(50011)
14552
+ const util = __nccwpck_require__(31014)
14473
14553
  const {
14474
14554
  RequestContentLengthMismatchError,
14475
14555
  RequestAbortedError,
14476
14556
  SocketError,
14477
14557
  InformationalError
14478
- } = __nccwpck_require__(35990)
14558
+ } = __nccwpck_require__(47926)
14479
14559
  const {
14480
14560
  kUrl,
14481
14561
  kReset,
@@ -14494,7 +14574,7 @@ const {
14494
14574
  kResume,
14495
14575
  kSize,
14496
14576
  kHTTPContext
14497
- } = __nccwpck_require__(13638)
14577
+ } = __nccwpck_require__(94822)
14498
14578
 
14499
14579
  const kOpenStreams = Symbol('open streams')
14500
14580
 
@@ -14544,6 +14624,15 @@ function parseH2Headers (headers) {
14544
14624
  return result
14545
14625
  }
14546
14626
 
14627
+ /**
14628
+ * @param {import('node:http2').IncomingHttpHeaders} headers
14629
+ * @returns {Buffer[]}
14630
+ */
14631
+ function parseH2ResponseHeaders (headers) {
14632
+ const { [HTTP2_HEADER_STATUS]: _statusCode, ...realHeaders } = headers
14633
+ return parseH2Headers(realHeaders)
14634
+ }
14635
+
14547
14636
  async function connectH2 (client, socket) {
14548
14637
  client[kSocket] = socket
14549
14638
 
@@ -14593,8 +14682,6 @@ async function connectH2 (client, socket) {
14593
14682
  socket[kHTTP2Session] = session
14594
14683
 
14595
14684
  util.addListener(socket, 'error', function (err) {
14596
- assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
14597
-
14598
14685
  this[kError] = err
14599
14686
 
14600
14687
  this[kClient][kOnError](err)
@@ -14668,8 +14755,6 @@ function resumeH2 (client) {
14668
14755
  }
14669
14756
 
14670
14757
  function onHttp2SessionError (err) {
14671
- assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
14672
-
14673
14758
  this[kSocket][kError] = err
14674
14759
  this[kClient][kOnError](err)
14675
14760
  }
@@ -14764,22 +14849,32 @@ function writeH2 (client, request) {
14764
14849
  headers[HTTP2_HEADER_AUTHORITY] = host || `${hostname}${port ? `:${port}` : ''}`
14765
14850
  headers[HTTP2_HEADER_METHOD] = method
14766
14851
 
14767
- const abort = (err) => {
14768
- if (request.aborted || request.completed) {
14852
+ /**
14853
+ * @param {Error} [error]
14854
+ */
14855
+ const abort = (error) => {
14856
+ if (request.aborted) {
14769
14857
  return
14770
14858
  }
14771
14859
 
14772
- err = err || new RequestAbortedError()
14860
+ if (request.completed) {
14861
+ if (method === 'CONNECT' && stream != null) {
14862
+ util.destroy(stream, error || new RequestAbortedError())
14863
+ }
14864
+ return
14865
+ }
14773
14866
 
14774
- util.errorRequest(client, request, err)
14867
+ error = error || new RequestAbortedError()
14868
+
14869
+ util.errorRequest(client, request, error)
14775
14870
 
14776
14871
  if (stream != null) {
14777
- util.destroy(stream, err)
14872
+ util.destroy(stream, error)
14778
14873
  }
14779
14874
 
14780
14875
  // We do not destroy the socket as we can continue using the session
14781
14876
  // the stream get's destroyed and the session remains to create new streams
14782
- util.destroy(body, err)
14877
+ util.destroy(body, error)
14783
14878
  client[kQueue][client[kRunningIdx]++] = null
14784
14879
  client[kResume]()
14785
14880
  }
@@ -14798,25 +14893,57 @@ function writeH2 (client, request) {
14798
14893
 
14799
14894
  if (method === 'CONNECT') {
14800
14895
  session.ref()
14801
- // We are already connected, streams are pending, first request
14802
- // will create a new stream. We trigger a request to create the stream and wait until
14803
- // `ready` event is triggered
14804
14896
  // We disabled endStream to allow the user to write to the stream
14805
14897
  stream = session.request(headers, { endStream: false, signal })
14898
+ let upgradeResponseFinished = false
14806
14899
 
14807
- if (stream.id && !stream.pending) {
14808
- request.onUpgrade(null, null, stream)
14809
- ++session[kOpenStreams]
14810
- client[kQueue][client[kRunningIdx]++] = null
14811
- } else {
14812
- stream.once('ready', () => {
14900
+ /**
14901
+ * @param {import('node:http2').IncomingHttpHeaders} headers
14902
+ */
14903
+ const onResponse = (headers) => {
14904
+ upgradeResponseFinished = true
14905
+ stream.off(errorMonitor, onUpgradeError)
14906
+ request.onUpgradeResponse(Number(headers[HTTP2_HEADER_STATUS]), headers, parseH2ResponseHeaders)
14907
+ }
14908
+
14909
+ /**
14910
+ * @param {Error} error
14911
+ */
14912
+ const onUpgradeError = (error) => {
14913
+ upgradeResponseFinished = true
14914
+ stream.off('response', onResponse)
14915
+ request.onUpgradeError(error)
14916
+ }
14917
+
14918
+ const onReady = () => {
14919
+ try {
14813
14920
  request.onUpgrade(null, null, stream)
14814
- ++session[kOpenStreams]
14815
- client[kQueue][client[kRunningIdx]++] = null
14816
- })
14921
+ } catch (error) {
14922
+ stream.off('response', onResponse)
14923
+ abort(error)
14924
+ return
14925
+ }
14926
+
14927
+ if (request.aborted) {
14928
+ return
14929
+ }
14930
+
14931
+ stream.off('error', abort)
14932
+ stream.once(errorMonitor, onUpgradeError)
14933
+ client[kQueue][client[kRunningIdx]++] = null
14817
14934
  }
14818
14935
 
14936
+ stream.once('response', onResponse)
14937
+ stream.once('error', abort)
14938
+ ++session[kOpenStreams]
14939
+ onReady()
14940
+
14819
14941
  stream.once('close', () => {
14942
+ if (!upgradeResponseFinished && request.completed) {
14943
+ stream.off('response', onResponse)
14944
+ stream.off(errorMonitor, onUpgradeError)
14945
+ request.onUpgradeError(new InformationalError(`HTTP/2: "stream error" received - code ${stream.rstCode}`))
14946
+ }
14820
14947
  session[kOpenStreams] -= 1
14821
14948
  if (session[kOpenStreams] === 0) session.unref()
14822
14949
  })
@@ -14853,7 +14980,7 @@ function writeH2 (client, request) {
14853
14980
  let contentLength = util.bodyLength(body)
14854
14981
 
14855
14982
  if (util.isFormDataLike(body)) {
14856
- extractBody ??= (__nccwpck_require__(12749).extractBody)
14983
+ extractBody ??= (__nccwpck_require__(48203).extractBody)
14857
14984
 
14858
14985
  const [bodyStream, contentType] = extractBody(body)
14859
14986
  headers['content-type'] = contentType
@@ -15213,7 +15340,7 @@ module.exports = connectH2
15213
15340
 
15214
15341
  /***/ }),
15215
15342
 
15216
- /***/ 85849:
15343
+ /***/ 6237:
15217
15344
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
15218
15345
 
15219
15346
  "use strict";
@@ -15224,16 +15351,16 @@ module.exports = connectH2
15224
15351
  const assert = __nccwpck_require__(98061)
15225
15352
  const net = __nccwpck_require__(87503)
15226
15353
  const http = __nccwpck_require__(88849)
15227
- const util = __nccwpck_require__(50011)
15228
- const { channels } = __nccwpck_require__(65543)
15229
- const Request = __nccwpck_require__(13484)
15230
- const DispatcherBase = __nccwpck_require__(39504)
15354
+ const util = __nccwpck_require__(31014)
15355
+ const { channels } = __nccwpck_require__(96005)
15356
+ const Request = __nccwpck_require__(82075)
15357
+ const DispatcherBase = __nccwpck_require__(26844)
15231
15358
  const {
15232
15359
  InvalidArgumentError,
15233
15360
  InformationalError,
15234
15361
  ClientDestroyedError
15235
- } = __nccwpck_require__(35990)
15236
- const buildConnector = __nccwpck_require__(41429)
15362
+ } = __nccwpck_require__(47926)
15363
+ const buildConnector = __nccwpck_require__(63447)
15237
15364
  const {
15238
15365
  kUrl,
15239
15366
  kServerName,
@@ -15275,9 +15402,9 @@ const {
15275
15402
  kHTTPContext,
15276
15403
  kMaxConcurrentStreams,
15277
15404
  kResume
15278
- } = __nccwpck_require__(13638)
15279
- const connectH1 = __nccwpck_require__(14429)
15280
- const connectH2 = __nccwpck_require__(34879)
15405
+ } = __nccwpck_require__(94822)
15406
+ const connectH1 = __nccwpck_require__(78365)
15407
+ const connectH2 = __nccwpck_require__(55267)
15281
15408
  let deprecatedInterceptorWarned = false
15282
15409
 
15283
15410
  const kClosedResolve = Symbol('kClosedResolve')
@@ -15326,9 +15453,10 @@ class Client extends DispatcherBase {
15326
15453
  // h2
15327
15454
  maxConcurrentStreams,
15328
15455
  allowH2,
15329
- webSocket
15456
+ webSocket,
15457
+ eventSource
15330
15458
  } = {}) {
15331
- super({ webSocket })
15459
+ super({ webSocket, eventSource })
15332
15460
 
15333
15461
  if (keepAlive !== undefined) {
15334
15462
  throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')
@@ -15584,7 +15712,7 @@ class Client extends DispatcherBase {
15584
15712
  }
15585
15713
  }
15586
15714
 
15587
- const createRedirectInterceptor = __nccwpck_require__(40928)
15715
+ const createRedirectInterceptor = __nccwpck_require__(91467)
15588
15716
 
15589
15717
  function onError (client, err) {
15590
15718
  if (
@@ -15844,24 +15972,26 @@ module.exports = Client
15844
15972
 
15845
15973
  /***/ }),
15846
15974
 
15847
- /***/ 39504:
15975
+ /***/ 26844:
15848
15976
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
15849
15977
 
15850
15978
  "use strict";
15851
15979
 
15852
15980
 
15853
- const Dispatcher = __nccwpck_require__(66071)
15981
+ const buffer = __nccwpck_require__(72254)
15982
+ const Dispatcher = __nccwpck_require__(32171)
15854
15983
  const {
15855
15984
  ClientDestroyedError,
15856
15985
  ClientClosedError,
15857
15986
  InvalidArgumentError
15858
- } = __nccwpck_require__(35990)
15859
- const { kDestroy, kClose, kClosed, kDestroyed, kDispatch, kInterceptors } = __nccwpck_require__(13638)
15987
+ } = __nccwpck_require__(47926)
15988
+ const { kDestroy, kClose, kClosed, kDestroyed, kDispatch, kInterceptors } = __nccwpck_require__(94822)
15860
15989
 
15861
15990
  const kOnDestroyed = Symbol('onDestroyed')
15862
15991
  const kOnClosed = Symbol('onClosed')
15863
15992
  const kInterceptedDispatch = Symbol('Intercepted Dispatch')
15864
15993
  const kWebSocketOptions = Symbol('webSocketOptions')
15994
+ const kEventSourceOptions = Symbol('eventSourceOptions')
15865
15995
 
15866
15996
  class DispatcherBase extends Dispatcher {
15867
15997
  constructor (opts) {
@@ -15872,6 +16002,7 @@ class DispatcherBase extends Dispatcher {
15872
16002
  this[kClosed] = false
15873
16003
  this[kOnClosed] = []
15874
16004
  this[kWebSocketOptions] = opts?.webSocket ?? {}
16005
+ this[kEventSourceOptions] = opts?.eventSource ?? {}
15875
16006
  }
15876
16007
 
15877
16008
  get webSocketOptions () {
@@ -15881,6 +16012,12 @@ class DispatcherBase extends Dispatcher {
15881
16012
  }
15882
16013
  }
15883
16014
 
16015
+ get eventSourceOptions () {
16016
+ return {
16017
+ maxEventSize: this[kEventSourceOptions].maxEventSize ?? buffer.kStringMaxLength
16018
+ }
16019
+ }
16020
+
15884
16021
  get destroyed () {
15885
16022
  return this[kDestroyed]
15886
16023
  }
@@ -16051,7 +16188,7 @@ module.exports = DispatcherBase
16051
16188
 
16052
16189
  /***/ }),
16053
16190
 
16054
- /***/ 66071:
16191
+ /***/ 32171:
16055
16192
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
16056
16193
 
16057
16194
  "use strict";
@@ -16124,16 +16261,16 @@ module.exports = Dispatcher
16124
16261
 
16125
16262
  /***/ }),
16126
16263
 
16127
- /***/ 29941:
16264
+ /***/ 42547:
16128
16265
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
16129
16266
 
16130
16267
  "use strict";
16131
16268
 
16132
16269
 
16133
- const DispatcherBase = __nccwpck_require__(39504)
16134
- const { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = __nccwpck_require__(13638)
16135
- const ProxyAgent = __nccwpck_require__(87187)
16136
- const Agent = __nccwpck_require__(73274)
16270
+ const DispatcherBase = __nccwpck_require__(26844)
16271
+ const { kClose, kDestroy, kClosed, kDestroyed, kDispatch, kNoProxyAgent, kHttpProxyAgent, kHttpsProxyAgent } = __nccwpck_require__(94822)
16272
+ const ProxyAgent = __nccwpck_require__(57912)
16273
+ const Agent = __nccwpck_require__(1880)
16137
16274
 
16138
16275
  const DEFAULT_PORTS = {
16139
16276
  'http:': 80,
@@ -16292,7 +16429,7 @@ module.exports = EnvHttpProxyAgent
16292
16429
 
16293
16430
  /***/ }),
16294
16431
 
16295
- /***/ 27092:
16432
+ /***/ 94856:
16296
16433
  /***/ ((module) => {
16297
16434
 
16298
16435
  "use strict";
@@ -16417,16 +16554,16 @@ module.exports = class FixedQueue {
16417
16554
 
16418
16555
  /***/ }),
16419
16556
 
16420
- /***/ 1467:
16557
+ /***/ 97367:
16421
16558
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
16422
16559
 
16423
16560
  "use strict";
16424
16561
 
16425
16562
 
16426
- const DispatcherBase = __nccwpck_require__(39504)
16427
- const FixedQueue = __nccwpck_require__(27092)
16428
- const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(13638)
16429
- const PoolStats = __nccwpck_require__(48309)
16563
+ const DispatcherBase = __nccwpck_require__(26844)
16564
+ const FixedQueue = __nccwpck_require__(94856)
16565
+ const { kConnected, kSize, kRunning, kPending, kQueued, kBusy, kFree, kUrl, kClose, kDestroy, kDispatch } = __nccwpck_require__(94822)
16566
+ const PoolStats = __nccwpck_require__(61279)
16430
16567
 
16431
16568
  const kClients = Symbol('clients')
16432
16569
  const kNeedDrain = Symbol('needDrain')
@@ -16619,10 +16756,10 @@ module.exports = {
16619
16756
 
16620
16757
  /***/ }),
16621
16758
 
16622
- /***/ 48309:
16759
+ /***/ 61279:
16623
16760
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
16624
16761
 
16625
- const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = __nccwpck_require__(13638)
16762
+ const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = __nccwpck_require__(94822)
16626
16763
  const kPool = Symbol('pool')
16627
16764
 
16628
16765
  class PoolStats {
@@ -16660,7 +16797,7 @@ module.exports = PoolStats
16660
16797
 
16661
16798
  /***/ }),
16662
16799
 
16663
- /***/ 80229:
16800
+ /***/ 49771:
16664
16801
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
16665
16802
 
16666
16803
  "use strict";
@@ -16672,14 +16809,14 @@ const {
16672
16809
  kNeedDrain,
16673
16810
  kAddClient,
16674
16811
  kGetDispatcher
16675
- } = __nccwpck_require__(1467)
16676
- const Client = __nccwpck_require__(85849)
16812
+ } = __nccwpck_require__(97367)
16813
+ const Client = __nccwpck_require__(6237)
16677
16814
  const {
16678
16815
  InvalidArgumentError
16679
- } = __nccwpck_require__(35990)
16680
- const util = __nccwpck_require__(50011)
16681
- const { kUrl, kInterceptors } = __nccwpck_require__(13638)
16682
- const buildConnector = __nccwpck_require__(41429)
16816
+ } = __nccwpck_require__(47926)
16817
+ const util = __nccwpck_require__(31014)
16818
+ const { kUrl, kInterceptors } = __nccwpck_require__(94822)
16819
+ const buildConnector = __nccwpck_require__(63447)
16683
16820
 
16684
16821
  const kOptions = Symbol('options')
16685
16822
  const kConnections = Symbol('connections')
@@ -16775,20 +16912,20 @@ module.exports = Pool
16775
16912
 
16776
16913
  /***/ }),
16777
16914
 
16778
- /***/ 87187:
16915
+ /***/ 57912:
16779
16916
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
16780
16917
 
16781
16918
  "use strict";
16782
16919
 
16783
16920
 
16784
- const { kProxy, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(13638)
16921
+ const { kProxy, kClose, kDestroy, kDispatch, kInterceptors } = __nccwpck_require__(94822)
16785
16922
  const { URL } = __nccwpck_require__(41041)
16786
- const Agent = __nccwpck_require__(73274)
16787
- const Pool = __nccwpck_require__(80229)
16788
- const DispatcherBase = __nccwpck_require__(39504)
16789
- const { InvalidArgumentError, RequestAbortedError, SecureProxyConnectionError } = __nccwpck_require__(35990)
16790
- const buildConnector = __nccwpck_require__(41429)
16791
- const Client = __nccwpck_require__(85849)
16923
+ const Agent = __nccwpck_require__(1880)
16924
+ const Pool = __nccwpck_require__(49771)
16925
+ const DispatcherBase = __nccwpck_require__(26844)
16926
+ const { InvalidArgumentError, RequestAbortedError, SecureProxyConnectionError } = __nccwpck_require__(47926)
16927
+ const buildConnector = __nccwpck_require__(63447)
16928
+ const Client = __nccwpck_require__(6237)
16792
16929
 
16793
16930
  const kAgent = Symbol('proxy agent')
16794
16931
  const kClient = Symbol('proxy client')
@@ -17057,14 +17194,14 @@ module.exports = ProxyAgent
17057
17194
 
17058
17195
  /***/ }),
17059
17196
 
17060
- /***/ 55184:
17197
+ /***/ 42626:
17061
17198
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
17062
17199
 
17063
17200
  "use strict";
17064
17201
 
17065
17202
 
17066
- const Dispatcher = __nccwpck_require__(66071)
17067
- const RetryHandler = __nccwpck_require__(64524)
17203
+ const Dispatcher = __nccwpck_require__(32171)
17204
+ const RetryHandler = __nccwpck_require__(12671)
17068
17205
 
17069
17206
  class RetryAgent extends Dispatcher {
17070
17207
  #agent = null
@@ -17100,7 +17237,7 @@ module.exports = RetryAgent
17100
17237
 
17101
17238
  /***/ }),
17102
17239
 
17103
- /***/ 19405:
17240
+ /***/ 53139:
17104
17241
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
17105
17242
 
17106
17243
  "use strict";
@@ -17109,8 +17246,8 @@ module.exports = RetryAgent
17109
17246
  // We include a version number for the Dispatcher API. In case of breaking changes,
17110
17247
  // this version number must be increased to avoid conflicts.
17111
17248
  const globalDispatcher = Symbol.for('undici.globalDispatcher.1')
17112
- const { InvalidArgumentError } = __nccwpck_require__(35990)
17113
- const Agent = __nccwpck_require__(73274)
17249
+ const { InvalidArgumentError } = __nccwpck_require__(47926)
17250
+ const Agent = __nccwpck_require__(1880)
17114
17251
 
17115
17252
  if (getGlobalDispatcher() === undefined) {
17116
17253
  setGlobalDispatcher(new Agent())
@@ -17140,7 +17277,7 @@ module.exports = {
17140
17277
 
17141
17278
  /***/ }),
17142
17279
 
17143
- /***/ 41738:
17280
+ /***/ 59280:
17144
17281
  /***/ ((module) => {
17145
17282
 
17146
17283
  "use strict";
@@ -17192,16 +17329,16 @@ module.exports = class DecoratorHandler {
17192
17329
 
17193
17330
  /***/ }),
17194
17331
 
17195
- /***/ 64014:
17332
+ /***/ 90008:
17196
17333
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
17197
17334
 
17198
17335
  "use strict";
17199
17336
 
17200
17337
 
17201
- const util = __nccwpck_require__(50011)
17202
- const { kBodyUsed } = __nccwpck_require__(13638)
17338
+ const util = __nccwpck_require__(31014)
17339
+ const { kBodyUsed } = __nccwpck_require__(94822)
17203
17340
  const assert = __nccwpck_require__(98061)
17204
- const { InvalidArgumentError } = __nccwpck_require__(35990)
17341
+ const { InvalidArgumentError } = __nccwpck_require__(47926)
17205
17342
  const EE = __nccwpck_require__(15673)
17206
17343
 
17207
17344
  const redirectableStatusCodes = [300, 301, 302, 303, 307, 308]
@@ -17432,21 +17569,21 @@ module.exports = RedirectHandler
17432
17569
 
17433
17570
  /***/ }),
17434
17571
 
17435
- /***/ 64524:
17572
+ /***/ 12671:
17436
17573
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
17437
17574
 
17438
17575
  "use strict";
17439
17576
 
17440
17577
  const assert = __nccwpck_require__(98061)
17441
17578
 
17442
- const { kRetryHandlerDefaultRetry } = __nccwpck_require__(13638)
17443
- const { RequestRetryError } = __nccwpck_require__(35990)
17579
+ const { kRetryHandlerDefaultRetry } = __nccwpck_require__(94822)
17580
+ const { RequestRetryError } = __nccwpck_require__(47926)
17444
17581
  const {
17445
17582
  isDisturbed,
17446
17583
  parseHeaders,
17447
17584
  parseRangeHeader,
17448
17585
  wrapRequestBody
17449
- } = __nccwpck_require__(50011)
17586
+ } = __nccwpck_require__(31014)
17450
17587
 
17451
17588
  function calculateRetryAfterHeader (retryAfter) {
17452
17589
  const current = Date.now()
@@ -17643,7 +17780,10 @@ class RetryHandler {
17643
17780
  this.retryCount += 1
17644
17781
 
17645
17782
  if (statusCode >= 300) {
17646
- if (this.retryOpts.statusCodes.includes(statusCode) === false) {
17783
+ // Only expose a response if no earlier attempt has reached the caller.
17784
+ // Otherwise abort this attempt so the error settles the existing body
17785
+ // instead of replacing it with a new response.
17786
+ if (!this.headersSent && this.retryOpts.statusCodes.includes(statusCode) === false) {
17647
17787
  this.headersSent = true
17648
17788
  this.checkpointResponseEnd(headers, resume)
17649
17789
  return this.handler.onHeaders(
@@ -17874,15 +18014,15 @@ module.exports = RetryHandler
17874
18014
 
17875
18015
  /***/ }),
17876
18016
 
17877
- /***/ 20346:
18017
+ /***/ 26290:
17878
18018
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
17879
18019
 
17880
18020
  "use strict";
17881
18021
 
17882
18022
  const { isIP } = __nccwpck_require__(87503)
17883
18023
  const { lookup } = __nccwpck_require__(30604)
17884
- const DecoratorHandler = __nccwpck_require__(41738)
17885
- const { InvalidArgumentError, InformationalError } = __nccwpck_require__(35990)
18024
+ const DecoratorHandler = __nccwpck_require__(59280)
18025
+ const { InvalidArgumentError, InformationalError } = __nccwpck_require__(47926)
17886
18026
  const maxInt = Math.pow(2, 31) - 1
17887
18027
 
17888
18028
  class DNSInstance {
@@ -18257,15 +18397,15 @@ module.exports = interceptorOpts => {
18257
18397
 
18258
18398
  /***/ }),
18259
18399
 
18260
- /***/ 12493:
18400
+ /***/ 9408:
18261
18401
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18262
18402
 
18263
18403
  "use strict";
18264
18404
 
18265
18405
 
18266
- const util = __nccwpck_require__(50011)
18267
- const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(35990)
18268
- const DecoratorHandler = __nccwpck_require__(41738)
18406
+ const util = __nccwpck_require__(31014)
18407
+ const { InvalidArgumentError, RequestAbortedError } = __nccwpck_require__(47926)
18408
+ const DecoratorHandler = __nccwpck_require__(59280)
18269
18409
 
18270
18410
  class DumpHandler extends DecoratorHandler {
18271
18411
  #maxSize = 1024 * 1024
@@ -18388,13 +18528,13 @@ module.exports = createDumpInterceptor
18388
18528
 
18389
18529
  /***/ }),
18390
18530
 
18391
- /***/ 40928:
18531
+ /***/ 91467:
18392
18532
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18393
18533
 
18394
18534
  "use strict";
18395
18535
 
18396
18536
 
18397
- const RedirectHandler = __nccwpck_require__(64014)
18537
+ const RedirectHandler = __nccwpck_require__(90008)
18398
18538
 
18399
18539
  function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {
18400
18540
  return (dispatch) => {
@@ -18417,12 +18557,12 @@ module.exports = createRedirectInterceptor
18417
18557
 
18418
18558
  /***/ }),
18419
18559
 
18420
- /***/ 74872:
18560
+ /***/ 42182:
18421
18561
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18422
18562
 
18423
18563
  "use strict";
18424
18564
 
18425
- const RedirectHandler = __nccwpck_require__(64014)
18565
+ const RedirectHandler = __nccwpck_require__(90008)
18426
18566
 
18427
18567
  module.exports = opts => {
18428
18568
  const globalMaxRedirections = opts?.maxRedirections
@@ -18449,12 +18589,12 @@ module.exports = opts => {
18449
18589
 
18450
18590
  /***/ }),
18451
18591
 
18452
- /***/ 79637:
18592
+ /***/ 17389:
18453
18593
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18454
18594
 
18455
18595
  "use strict";
18456
18596
 
18457
- const RetryHandler = __nccwpck_require__(64524)
18597
+ const RetryHandler = __nccwpck_require__(12671)
18458
18598
 
18459
18599
  module.exports = globalOpts => {
18460
18600
  return dispatch => {
@@ -18476,14 +18616,14 @@ module.exports = globalOpts => {
18476
18616
 
18477
18617
  /***/ }),
18478
18618
 
18479
- /***/ 41721:
18619
+ /***/ 27692:
18480
18620
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
18481
18621
 
18482
18622
  "use strict";
18483
18623
 
18484
18624
  Object.defineProperty(exports, "__esModule", ({ value: true }));
18485
18625
  exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0;
18486
- const utils_1 = __nccwpck_require__(69573);
18626
+ const utils_1 = __nccwpck_require__(5608);
18487
18627
  // C headers
18488
18628
  var ERROR;
18489
18629
  (function (ERROR) {
@@ -18761,7 +18901,7 @@ exports.SPECIAL_HEADERS = {
18761
18901
 
18762
18902
  /***/ }),
18763
18903
 
18764
- /***/ 46081:
18904
+ /***/ 84888:
18765
18905
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18766
18906
 
18767
18907
  "use strict";
@@ -18774,7 +18914,7 @@ module.exports = Buffer.from('AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f3
18774
18914
 
18775
18915
  /***/ }),
18776
18916
 
18777
- /***/ 97877:
18917
+ /***/ 31445:
18778
18918
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18779
18919
 
18780
18920
  "use strict";
@@ -18787,7 +18927,7 @@ module.exports = Buffer.from('AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f3
18787
18927
 
18788
18928
  /***/ }),
18789
18929
 
18790
- /***/ 69573:
18930
+ /***/ 5608:
18791
18931
  /***/ ((__unused_webpack_module, exports) => {
18792
18932
 
18793
18933
  "use strict";
@@ -18809,14 +18949,14 @@ exports.enumToMap = enumToMap;
18809
18949
 
18810
18950
  /***/ }),
18811
18951
 
18812
- /***/ 46432:
18952
+ /***/ 89937:
18813
18953
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18814
18954
 
18815
18955
  "use strict";
18816
18956
 
18817
18957
 
18818
- const { kClients } = __nccwpck_require__(13638)
18819
- const Agent = __nccwpck_require__(73274)
18958
+ const { kClients } = __nccwpck_require__(94822)
18959
+ const Agent = __nccwpck_require__(1880)
18820
18960
  const {
18821
18961
  kAgent,
18822
18962
  kMockAgentSet,
@@ -18827,14 +18967,14 @@ const {
18827
18967
  kGetNetConnect,
18828
18968
  kOptions,
18829
18969
  kFactory
18830
- } = __nccwpck_require__(63822)
18831
- const MockClient = __nccwpck_require__(4227)
18832
- const MockPool = __nccwpck_require__(36575)
18833
- const { matchValue, buildMockOptions } = __nccwpck_require__(38053)
18834
- const { InvalidArgumentError, UndiciError } = __nccwpck_require__(35990)
18835
- const Dispatcher = __nccwpck_require__(66071)
18836
- const Pluralizer = __nccwpck_require__(97472)
18837
- const PendingInterceptorsFormatter = __nccwpck_require__(56155)
18970
+ } = __nccwpck_require__(89083)
18971
+ const MockClient = __nccwpck_require__(69636)
18972
+ const MockPool = __nccwpck_require__(40660)
18973
+ const { matchValue, buildMockOptions } = __nccwpck_require__(16826)
18974
+ const { InvalidArgumentError, UndiciError } = __nccwpck_require__(47926)
18975
+ const Dispatcher = __nccwpck_require__(32171)
18976
+ const Pluralizer = __nccwpck_require__(69437)
18977
+ const PendingInterceptorsFormatter = __nccwpck_require__(9965)
18838
18978
 
18839
18979
  class MockAgent extends Dispatcher {
18840
18980
  constructor (opts) {
@@ -18977,15 +19117,15 @@ module.exports = MockAgent
18977
19117
 
18978
19118
  /***/ }),
18979
19119
 
18980
- /***/ 4227:
19120
+ /***/ 69636:
18981
19121
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
18982
19122
 
18983
19123
  "use strict";
18984
19124
 
18985
19125
 
18986
19126
  const { promisify } = __nccwpck_require__(47261)
18987
- const Client = __nccwpck_require__(85849)
18988
- const { buildMockDispatch } = __nccwpck_require__(38053)
19127
+ const Client = __nccwpck_require__(6237)
19128
+ const { buildMockDispatch } = __nccwpck_require__(16826)
18989
19129
  const {
18990
19130
  kDispatches,
18991
19131
  kMockAgent,
@@ -18994,10 +19134,10 @@ const {
18994
19134
  kOrigin,
18995
19135
  kOriginalDispatch,
18996
19136
  kConnected
18997
- } = __nccwpck_require__(63822)
18998
- const { MockInterceptor } = __nccwpck_require__(9238)
18999
- const Symbols = __nccwpck_require__(13638)
19000
- const { InvalidArgumentError } = __nccwpck_require__(35990)
19137
+ } = __nccwpck_require__(89083)
19138
+ const { MockInterceptor } = __nccwpck_require__(73387)
19139
+ const Symbols = __nccwpck_require__(94822)
19140
+ const { InvalidArgumentError } = __nccwpck_require__(47926)
19001
19141
 
19002
19142
  /**
19003
19143
  * MockClient provides an API that extends the Client to influence the mockDispatches.
@@ -19044,13 +19184,13 @@ module.exports = MockClient
19044
19184
 
19045
19185
  /***/ }),
19046
19186
 
19047
- /***/ 19329:
19187
+ /***/ 33519:
19048
19188
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
19049
19189
 
19050
19190
  "use strict";
19051
19191
 
19052
19192
 
19053
- const { UndiciError } = __nccwpck_require__(35990)
19193
+ const { UndiciError } = __nccwpck_require__(47926)
19054
19194
 
19055
19195
  const kMockNotMatchedError = Symbol.for('undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED')
19056
19196
 
@@ -19080,13 +19220,13 @@ module.exports = {
19080
19220
 
19081
19221
  /***/ }),
19082
19222
 
19083
- /***/ 9238:
19223
+ /***/ 73387:
19084
19224
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
19085
19225
 
19086
19226
  "use strict";
19087
19227
 
19088
19228
 
19089
- const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(38053)
19229
+ const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(16826)
19090
19230
  const {
19091
19231
  kDispatches,
19092
19232
  kDispatchKey,
@@ -19094,9 +19234,9 @@ const {
19094
19234
  kDefaultTrailers,
19095
19235
  kContentLength,
19096
19236
  kMockDispatch
19097
- } = __nccwpck_require__(63822)
19098
- const { InvalidArgumentError } = __nccwpck_require__(35990)
19099
- const { buildURL } = __nccwpck_require__(50011)
19237
+ } = __nccwpck_require__(89083)
19238
+ const { InvalidArgumentError } = __nccwpck_require__(47926)
19239
+ const { buildURL } = __nccwpck_require__(31014)
19100
19240
 
19101
19241
  /**
19102
19242
  * Defines the scope API for an interceptor reply
@@ -19295,15 +19435,15 @@ module.exports.MockScope = MockScope
19295
19435
 
19296
19436
  /***/ }),
19297
19437
 
19298
- /***/ 36575:
19438
+ /***/ 40660:
19299
19439
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
19300
19440
 
19301
19441
  "use strict";
19302
19442
 
19303
19443
 
19304
19444
  const { promisify } = __nccwpck_require__(47261)
19305
- const Pool = __nccwpck_require__(80229)
19306
- const { buildMockDispatch } = __nccwpck_require__(38053)
19445
+ const Pool = __nccwpck_require__(49771)
19446
+ const { buildMockDispatch } = __nccwpck_require__(16826)
19307
19447
  const {
19308
19448
  kDispatches,
19309
19449
  kMockAgent,
@@ -19312,10 +19452,10 @@ const {
19312
19452
  kOrigin,
19313
19453
  kOriginalDispatch,
19314
19454
  kConnected
19315
- } = __nccwpck_require__(63822)
19316
- const { MockInterceptor } = __nccwpck_require__(9238)
19317
- const Symbols = __nccwpck_require__(13638)
19318
- const { InvalidArgumentError } = __nccwpck_require__(35990)
19455
+ } = __nccwpck_require__(89083)
19456
+ const { MockInterceptor } = __nccwpck_require__(73387)
19457
+ const Symbols = __nccwpck_require__(94822)
19458
+ const { InvalidArgumentError } = __nccwpck_require__(47926)
19319
19459
 
19320
19460
  /**
19321
19461
  * MockPool provides an API that extends the Pool to influence the mockDispatches.
@@ -19362,7 +19502,7 @@ module.exports = MockPool
19362
19502
 
19363
19503
  /***/ }),
19364
19504
 
19365
- /***/ 63822:
19505
+ /***/ 89083:
19366
19506
  /***/ ((module) => {
19367
19507
 
19368
19508
  "use strict";
@@ -19393,21 +19533,21 @@ module.exports = {
19393
19533
 
19394
19534
  /***/ }),
19395
19535
 
19396
- /***/ 38053:
19536
+ /***/ 16826:
19397
19537
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
19398
19538
 
19399
19539
  "use strict";
19400
19540
 
19401
19541
 
19402
- const { MockNotMatchedError } = __nccwpck_require__(19329)
19542
+ const { MockNotMatchedError } = __nccwpck_require__(33519)
19403
19543
  const {
19404
19544
  kDispatches,
19405
19545
  kMockAgent,
19406
19546
  kOriginalDispatch,
19407
19547
  kOrigin,
19408
19548
  kGetNetConnect
19409
- } = __nccwpck_require__(63822)
19410
- const { buildURL } = __nccwpck_require__(50011)
19549
+ } = __nccwpck_require__(89083)
19550
+ const { buildURL } = __nccwpck_require__(31014)
19411
19551
  const { STATUS_CODES } = __nccwpck_require__(88849)
19412
19552
  const {
19413
19553
  types: {
@@ -19768,7 +19908,7 @@ module.exports = {
19768
19908
 
19769
19909
  /***/ }),
19770
19910
 
19771
- /***/ 56155:
19911
+ /***/ 9965:
19772
19912
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
19773
19913
 
19774
19914
  "use strict";
@@ -19819,7 +19959,7 @@ module.exports = class PendingInterceptorsFormatter {
19819
19959
 
19820
19960
  /***/ }),
19821
19961
 
19822
- /***/ 97472:
19962
+ /***/ 69437:
19823
19963
  /***/ ((module) => {
19824
19964
 
19825
19965
  "use strict";
@@ -19856,7 +19996,7 @@ module.exports = class Pluralizer {
19856
19996
 
19857
19997
  /***/ }),
19858
19998
 
19859
- /***/ 77512:
19999
+ /***/ 63125:
19860
20000
  /***/ ((module) => {
19861
20001
 
19862
20002
  "use strict";
@@ -20287,21 +20427,21 @@ module.exports = {
20287
20427
 
20288
20428
  /***/ }),
20289
20429
 
20290
- /***/ 12714:
20430
+ /***/ 37917:
20291
20431
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
20292
20432
 
20293
20433
  "use strict";
20294
20434
 
20295
20435
 
20296
- const { kConstruct } = __nccwpck_require__(50591)
20297
- const { urlEquals, getFieldValues } = __nccwpck_require__(99205)
20298
- const { kEnumerableProperty, isDisturbed } = __nccwpck_require__(50011)
20299
- const { webidl } = __nccwpck_require__(2227)
20300
- const { Response, cloneResponse, fromInnerResponse } = __nccwpck_require__(51132)
20301
- const { Request, fromInnerRequest } = __nccwpck_require__(83211)
20302
- const { kState } = __nccwpck_require__(14935)
20303
- const { fetching } = __nccwpck_require__(78329)
20304
- const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = __nccwpck_require__(98730)
20436
+ const { kConstruct } = __nccwpck_require__(275)
20437
+ const { urlEquals, getFieldValues } = __nccwpck_require__(40424)
20438
+ const { kEnumerableProperty, isDisturbed } = __nccwpck_require__(31014)
20439
+ const { webidl } = __nccwpck_require__(96163)
20440
+ const { Response, cloneResponse, fromInnerResponse } = __nccwpck_require__(63042)
20441
+ const { Request, fromInnerRequest } = __nccwpck_require__(11192)
20442
+ const { kState } = __nccwpck_require__(23200)
20443
+ const { fetching } = __nccwpck_require__(87321)
20444
+ const { urlIsHttpHttpsScheme, createDeferredPromise, readAllBytes } = __nccwpck_require__(40667)
20305
20445
  const assert = __nccwpck_require__(98061)
20306
20446
 
20307
20447
  /**
@@ -21154,16 +21294,16 @@ module.exports = {
21154
21294
 
21155
21295
  /***/ }),
21156
21296
 
21157
- /***/ 11069:
21297
+ /***/ 13256:
21158
21298
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
21159
21299
 
21160
21300
  "use strict";
21161
21301
 
21162
21302
 
21163
- const { kConstruct } = __nccwpck_require__(50591)
21164
- const { Cache } = __nccwpck_require__(12714)
21165
- const { webidl } = __nccwpck_require__(2227)
21166
- const { kEnumerableProperty } = __nccwpck_require__(50011)
21303
+ const { kConstruct } = __nccwpck_require__(275)
21304
+ const { Cache } = __nccwpck_require__(37917)
21305
+ const { webidl } = __nccwpck_require__(96163)
21306
+ const { kEnumerableProperty } = __nccwpck_require__(31014)
21167
21307
 
21168
21308
  class CacheStorage {
21169
21309
  /**
@@ -21314,28 +21454,28 @@ module.exports = {
21314
21454
 
21315
21455
  /***/ }),
21316
21456
 
21317
- /***/ 50591:
21457
+ /***/ 275:
21318
21458
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
21319
21459
 
21320
21460
  "use strict";
21321
21461
 
21322
21462
 
21323
21463
  module.exports = {
21324
- kConstruct: (__nccwpck_require__(13638).kConstruct)
21464
+ kConstruct: (__nccwpck_require__(94822).kConstruct)
21325
21465
  }
21326
21466
 
21327
21467
 
21328
21468
  /***/ }),
21329
21469
 
21330
- /***/ 99205:
21470
+ /***/ 40424:
21331
21471
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
21332
21472
 
21333
21473
  "use strict";
21334
21474
 
21335
21475
 
21336
21476
  const assert = __nccwpck_require__(98061)
21337
- const { URLSerializer } = __nccwpck_require__(96730)
21338
- const { isValidHeaderName } = __nccwpck_require__(98730)
21477
+ const { URLSerializer } = __nccwpck_require__(68889)
21478
+ const { isValidHeaderName } = __nccwpck_require__(40667)
21339
21479
 
21340
21480
  /**
21341
21481
  * @see https://url.spec.whatwg.org/#concept-url-equals
@@ -21380,7 +21520,7 @@ module.exports = {
21380
21520
 
21381
21521
  /***/ }),
21382
21522
 
21383
- /***/ 16155:
21523
+ /***/ 40503:
21384
21524
  /***/ ((module) => {
21385
21525
 
21386
21526
  "use strict";
@@ -21400,16 +21540,16 @@ module.exports = {
21400
21540
 
21401
21541
  /***/ }),
21402
21542
 
21403
- /***/ 15855:
21543
+ /***/ 84245:
21404
21544
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
21405
21545
 
21406
21546
  "use strict";
21407
21547
 
21408
21548
 
21409
- const { parseSetCookie } = __nccwpck_require__(80742)
21410
- const { stringify } = __nccwpck_require__(93989)
21411
- const { webidl } = __nccwpck_require__(2227)
21412
- const { Headers } = __nccwpck_require__(10561)
21549
+ const { parseSetCookie } = __nccwpck_require__(89386)
21550
+ const { stringify } = __nccwpck_require__(74600)
21551
+ const { webidl } = __nccwpck_require__(96163)
21552
+ const { Headers } = __nccwpck_require__(33924)
21413
21553
 
21414
21554
  /**
21415
21555
  * @typedef {Object} Cookie
@@ -21592,15 +21732,15 @@ module.exports = {
21592
21732
 
21593
21733
  /***/ }),
21594
21734
 
21595
- /***/ 80742:
21735
+ /***/ 89386:
21596
21736
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
21597
21737
 
21598
21738
  "use strict";
21599
21739
 
21600
21740
 
21601
- const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(16155)
21602
- const { isCTLExcludingHtab } = __nccwpck_require__(93989)
21603
- const { collectASequenceOfCodePointsFast } = __nccwpck_require__(96730)
21741
+ const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(40503)
21742
+ const { isCTLExcludingHtab } = __nccwpck_require__(74600)
21743
+ const { collectASequenceOfCodePointsFast } = __nccwpck_require__(68889)
21604
21744
  const assert = __nccwpck_require__(98061)
21605
21745
 
21606
21746
  /**
@@ -21910,7 +22050,7 @@ module.exports = {
21910
22050
 
21911
22051
  /***/ }),
21912
22052
 
21913
- /***/ 93989:
22053
+ /***/ 74600:
21914
22054
  /***/ ((module) => {
21915
22055
 
21916
22056
  "use strict";
@@ -22270,13 +22410,14 @@ module.exports = {
22270
22410
 
22271
22411
  /***/ }),
22272
22412
 
22273
- /***/ 41408:
22413
+ /***/ 71054:
22274
22414
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
22275
22415
 
22276
22416
  "use strict";
22277
22417
 
22418
+ const buffer = __nccwpck_require__(72254)
22278
22419
  const { Transform } = __nccwpck_require__(84492)
22279
- const { isASCIINumber, isValidLastEventId } = __nccwpck_require__(19079)
22420
+ const { isASCIINumber, isValidLastEventId } = __nccwpck_require__(97409)
22280
22421
 
22281
22422
  /**
22282
22423
  * @type {number[]} BOM
@@ -22299,11 +22440,19 @@ const COLON = 0x3A
22299
22440
  */
22300
22441
  const SPACE = 0x20
22301
22442
 
22443
+ const defaultMaxEventSize = buffer.kStringMaxLength
22444
+
22302
22445
  const DATA = Buffer.from('data')
22303
22446
  const EVENT = Buffer.from('event')
22304
22447
  const ID = Buffer.from('id')
22305
22448
  const RETRY = Buffer.from('retry')
22306
22449
 
22450
+ // Each data field creates a string node, and each unconsumed input chunk keeps
22451
+ // a Buffer wrapper. The absolute ceiling protects the large default byte limit.
22452
+ const minParserItems = 1024
22453
+ const maxParserItems = 131072
22454
+ const bytesPerParserItem = 128
22455
+
22307
22456
  function isASCIINumberBytes (buffer, start) {
22308
22457
  if (start >= buffer.length) {
22309
22458
  return false
@@ -22342,6 +22491,12 @@ function isFieldName (line, length, field) {
22342
22491
  return true
22343
22492
  }
22344
22493
 
22494
+ function createMaxEventSizeExceededError () {
22495
+ const error = new Error('EventSource message size exceeded')
22496
+ error.aborted = false
22497
+ return error
22498
+ }
22499
+
22345
22500
  /**
22346
22501
  * @typedef {object} EventSourceStreamEvent
22347
22502
  * @type {object}
@@ -22390,6 +22545,13 @@ class EventSourceStream extends Transform {
22390
22545
  pos = 0
22391
22546
  lineChunkIndex = 0
22392
22547
  linePos = 0
22548
+ lineLength = 0
22549
+ eventSize = 0
22550
+ eventFieldSizes = { data: 0, event: 0, id: 0, retry: 0 }
22551
+ dataLineCount = 0
22552
+ maxEventSize
22553
+ maxDataLines
22554
+ maxBufferedChunks
22393
22555
 
22394
22556
  event = {
22395
22557
  data: undefined,
@@ -22400,6 +22562,7 @@ class EventSourceStream extends Transform {
22400
22562
 
22401
22563
  /**
22402
22564
  * @param {object} options
22565
+ * @param {number} [options.maxEventSize]
22403
22566
  * @param {eventSourceSettings} options.eventSourceSettings
22404
22567
  * @param {Function} [options.push]
22405
22568
  */
@@ -22411,6 +22574,12 @@ class EventSourceStream extends Transform {
22411
22574
  super(options)
22412
22575
 
22413
22576
  this.state = options.eventSourceSettings || {}
22577
+ this.maxEventSize = options.maxEventSize ?? defaultMaxEventSize
22578
+ const parserItemLimit = this.maxEventSize > 0
22579
+ ? Math.min(maxParserItems, Math.max(minParserItems, Math.floor(this.maxEventSize / bytesPerParserItem)))
22580
+ : 0
22581
+ this.maxDataLines = parserItemLimit
22582
+ this.maxBufferedChunks = parserItemLimit
22414
22583
  if (options.push) {
22415
22584
  this.push = options.push
22416
22585
  }
@@ -22428,6 +22597,14 @@ class EventSourceStream extends Transform {
22428
22597
  return
22429
22598
  }
22430
22599
 
22600
+ // A leading line ending can immediately release the currently buffered
22601
+ // line, even when it uses the final allowed chunk slot.
22602
+ if (this.maxEventSize > 0 &&
22603
+ this.chunks.length >= this.maxBufferedChunks &&
22604
+ chunk[0] !== LF && chunk[0] !== CR) {
22605
+ callback(createMaxEventSizeExceededError())
22606
+ return
22607
+ }
22431
22608
  this.chunks.push(chunk)
22432
22609
 
22433
22610
  // Strip leading byte-order-mark if we opened the stream and started
@@ -22506,7 +22683,12 @@ class EventSourceStream extends Transform {
22506
22683
 
22507
22684
  // In any case, we can process the line as we reached an
22508
22685
  // end-of-line character
22509
- this.parseLine(this.readLine(), this.event)
22686
+ try {
22687
+ this.parseLine(this.readLine(), this.event)
22688
+ } catch (error) {
22689
+ callback(error)
22690
+ return
22691
+ }
22510
22692
  this.consumeCurrentByte()
22511
22693
  // A line was processed and this could be the end of the event. We need
22512
22694
  // to check if the next line is empty to determine if the event is
@@ -22515,15 +22697,28 @@ class EventSourceStream extends Transform {
22515
22697
  continue
22516
22698
  }
22517
22699
 
22700
+ // readLine() is only called after CR or LF. Reject an unfinished line
22701
+ // before it can retain an unbounded number of decoded chunks. The seven
22702
+ // extra bytes allow the longest field prefix ("event: " or "retry: ").
22703
+ if (this.maxEventSize > 0 && ++this.lineLength > this.maxEventSize + 7) {
22704
+ callback(createMaxEventSizeExceededError())
22705
+ return
22706
+ }
22518
22707
  this.advanceCursor()
22519
22708
  }
22520
22709
 
22521
22710
  callback()
22522
22711
  }
22523
22712
 
22713
+ _destroy (error, callback) {
22714
+ this.chunks.length = 0
22715
+ this.clearEvent()
22716
+ super._destroy(error, callback)
22717
+ }
22718
+
22524
22719
  /**
22525
22720
  * @param {Buffer} line
22526
- * @param {EventStreamEvent} event
22721
+ * @param {EventSourceStreamEvent} event
22527
22722
  */
22528
22723
  parseLine (line, event) {
22529
22724
  // If the line is empty (a blank line)
@@ -22557,6 +22752,13 @@ class EventSourceStream extends Transform {
22557
22752
  }
22558
22753
 
22559
22754
  if (isFieldName(line, fieldLength, DATA)) {
22755
+ if (this.maxEventSize > 0 && this.dataLineCount >= this.maxDataLines) {
22756
+ throw createMaxEventSizeExceededError()
22757
+ }
22758
+ const valueBytes = line.length - valueStart
22759
+ const dataSize = this.eventFieldSizes.data + (event.data === undefined ? 0 : 1) + valueBytes
22760
+ this.setEventFieldSize('data', dataSize)
22761
+
22560
22762
  const value = line.toString('utf8', valueStart)
22561
22763
 
22562
22764
  if (event.data === undefined) {
@@ -22564,11 +22766,13 @@ class EventSourceStream extends Transform {
22564
22766
  } else {
22565
22767
  event.data += `\n${value}`
22566
22768
  }
22769
+ this.dataLineCount++
22567
22770
  return
22568
22771
  }
22569
22772
 
22570
22773
  if (isFieldName(line, fieldLength, RETRY)) {
22571
22774
  if (isASCIINumberBytes(line, valueStart)) {
22775
+ this.setEventFieldSize('retry', line.length - valueStart)
22572
22776
  event.retry = line.toString('utf8', valueStart)
22573
22777
  }
22574
22778
  return
@@ -22576,20 +22780,29 @@ class EventSourceStream extends Transform {
22576
22780
 
22577
22781
  if (isFieldName(line, fieldLength, ID)) {
22578
22782
  if (isValidLastEventIdBytes(line, valueStart)) {
22783
+ this.setEventFieldSize('id', line.length - valueStart)
22579
22784
  event.id = line.toString('utf8', valueStart)
22580
22785
  }
22581
22786
  return
22582
22787
  }
22583
22788
 
22584
22789
  if (isFieldName(line, fieldLength, EVENT)) {
22585
- const value = line.toString('utf8', valueStart)
22586
-
22587
- if (value.length > 0) {
22588
- event.event = value
22790
+ if (valueStart < line.length) {
22791
+ this.setEventFieldSize('event', line.length - valueStart)
22792
+ event.event = line.toString('utf8', valueStart)
22589
22793
  }
22590
22794
  }
22591
22795
  }
22592
22796
 
22797
+ setEventFieldSize (field, size) {
22798
+ const eventSize = this.eventSize - this.eventFieldSizes[field] + size
22799
+ if (this.maxEventSize > 0 && eventSize > this.maxEventSize) {
22800
+ throw createMaxEventSizeExceededError()
22801
+ }
22802
+ this.eventSize = eventSize
22803
+ this.eventFieldSizes[field] = size
22804
+ }
22805
+
22593
22806
  /**
22594
22807
  * @param {EventSourceStreamEvent} event
22595
22808
  */
@@ -22620,6 +22833,12 @@ class EventSourceStream extends Transform {
22620
22833
  this.event.event = undefined
22621
22834
  this.event.id = undefined
22622
22835
  this.event.retry = undefined
22836
+ this.eventSize = 0
22837
+ this.dataLineCount = 0
22838
+ this.eventFieldSizes.data = 0
22839
+ this.eventFieldSizes.event = 0
22840
+ this.eventFieldSizes.id = 0
22841
+ this.eventFieldSizes.retry = 0
22623
22842
  }
22624
22843
 
22625
22844
  hasPendingEvent () {
@@ -22655,14 +22874,16 @@ class EventSourceStream extends Transform {
22655
22874
  syncLineStartToCursor () {
22656
22875
  this.lineChunkIndex = this.chunkIndex
22657
22876
  this.linePos = this.pos
22877
+ this.lineLength = 0
22658
22878
  this.dropConsumedChunks()
22659
22879
  }
22660
22880
 
22661
22881
  dropConsumedChunks () {
22662
- while (this.lineChunkIndex > 0) {
22663
- this.chunks.shift()
22664
- this.lineChunkIndex--
22665
- this.chunkIndex--
22882
+ if (this.lineChunkIndex > 0) {
22883
+ const consumed = this.lineChunkIndex
22884
+ this.chunks.splice(0, consumed)
22885
+ this.lineChunkIndex = 0
22886
+ this.chunkIndex -= consumed
22666
22887
  }
22667
22888
 
22668
22889
  if (this.chunkIndex === this.chunks.length) {
@@ -22771,23 +22992,24 @@ module.exports = {
22771
22992
 
22772
22993
  /***/ }),
22773
22994
 
22774
- /***/ 6731:
22995
+ /***/ 74292:
22775
22996
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
22776
22997
 
22777
22998
  "use strict";
22778
22999
 
22779
23000
 
22780
23001
  const { pipeline } = __nccwpck_require__(84492)
22781
- const { fetching } = __nccwpck_require__(78329)
22782
- const { makeRequest } = __nccwpck_require__(83211)
22783
- const { webidl } = __nccwpck_require__(2227)
22784
- const { EventSourceStream } = __nccwpck_require__(41408)
22785
- const { parseMIMEType } = __nccwpck_require__(96730)
22786
- const { createFastMessageEvent } = __nccwpck_require__(69459)
22787
- const { isNetworkError } = __nccwpck_require__(51132)
22788
- const { delay } = __nccwpck_require__(19079)
22789
- const { kEnumerableProperty } = __nccwpck_require__(50011)
22790
- const { environmentSettingsObject } = __nccwpck_require__(98730)
23002
+ const { fetching } = __nccwpck_require__(87321)
23003
+ const { makeRequest } = __nccwpck_require__(11192)
23004
+ const { webidl } = __nccwpck_require__(96163)
23005
+ const { EventSourceStream } = __nccwpck_require__(71054)
23006
+ const { parseMIMEType } = __nccwpck_require__(68889)
23007
+ const { createFastMessageEvent } = __nccwpck_require__(85021)
23008
+ const { isNetworkError } = __nccwpck_require__(63042)
23009
+ const { delay } = __nccwpck_require__(97409)
23010
+ const { kEnumerableProperty } = __nccwpck_require__(31014)
23011
+ const { environmentSettingsObject } = __nccwpck_require__(40667)
23012
+ const { getGlobalDispatcher } = __nccwpck_require__(53139)
22791
23013
 
22792
23014
  let experimentalWarned = false
22793
23015
 
@@ -23069,6 +23291,7 @@ class EventSource extends EventTarget {
23069
23291
 
23070
23292
  const eventSourceStream = new EventSourceStream({
23071
23293
  eventSourceSettings: this.#state,
23294
+ maxEventSize: this.#dispatcher.eventSourceOptions?.maxEventSize,
23072
23295
  push: (event) => {
23073
23296
  this.dispatchEvent(createFastMessageEvent(
23074
23297
  event.type,
@@ -23247,7 +23470,8 @@ webidl.converters.EventSourceInitDict = webidl.dictionaryConverter([
23247
23470
  },
23248
23471
  {
23249
23472
  key: 'dispatcher', // undici only
23250
- converter: webidl.converters.any
23473
+ converter: webidl.converters.any,
23474
+ defaultValue: () => getGlobalDispatcher()
23251
23475
  }
23252
23476
  ])
23253
23477
 
@@ -23259,7 +23483,7 @@ module.exports = {
23259
23483
 
23260
23484
  /***/ }),
23261
23485
 
23262
- /***/ 19079:
23486
+ /***/ 97409:
23263
23487
  /***/ ((module) => {
23264
23488
 
23265
23489
  "use strict";
@@ -23304,13 +23528,13 @@ module.exports = {
23304
23528
 
23305
23529
  /***/ }),
23306
23530
 
23307
- /***/ 12749:
23531
+ /***/ 48203:
23308
23532
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
23309
23533
 
23310
23534
  "use strict";
23311
23535
 
23312
23536
 
23313
- const util = __nccwpck_require__(50011)
23537
+ const util = __nccwpck_require__(31014)
23314
23538
  const {
23315
23539
  ReadableStreamFrom,
23316
23540
  isBlobLike,
@@ -23320,16 +23544,16 @@ const {
23320
23544
  fullyReadBody,
23321
23545
  extractMimeType,
23322
23546
  utf8DecodeBytes
23323
- } = __nccwpck_require__(98730)
23324
- const { FormData } = __nccwpck_require__(62598)
23325
- const { kState } = __nccwpck_require__(14935)
23326
- const { webidl } = __nccwpck_require__(2227)
23547
+ } = __nccwpck_require__(40667)
23548
+ const { FormData } = __nccwpck_require__(59550)
23549
+ const { kState } = __nccwpck_require__(23200)
23550
+ const { webidl } = __nccwpck_require__(96163)
23327
23551
  const { Blob } = __nccwpck_require__(72254)
23328
23552
  const assert = __nccwpck_require__(98061)
23329
23553
  const { isErrored, isDisturbed } = __nccwpck_require__(84492)
23330
23554
  const { isArrayBuffer } = __nccwpck_require__(93746)
23331
- const { serializeAMimeType } = __nccwpck_require__(96730)
23332
- const { multipartFormDataParser } = __nccwpck_require__(25152)
23555
+ const { serializeAMimeType } = __nccwpck_require__(68889)
23556
+ const { multipartFormDataParser } = __nccwpck_require__(95600)
23333
23557
  let random
23334
23558
 
23335
23559
  try {
@@ -23841,7 +24065,7 @@ module.exports = {
23841
24065
 
23842
24066
  /***/ }),
23843
24067
 
23844
- /***/ 54823:
24068
+ /***/ 49316:
23845
24069
  /***/ ((module) => {
23846
24070
 
23847
24071
  "use strict";
@@ -23973,7 +24197,7 @@ module.exports = {
23973
24197
 
23974
24198
  /***/ }),
23975
24199
 
23976
- /***/ 96730:
24200
+ /***/ 68889:
23977
24201
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
23978
24202
 
23979
24203
  "use strict";
@@ -24725,13 +24949,13 @@ module.exports = {
24725
24949
 
24726
24950
  /***/ }),
24727
24951
 
24728
- /***/ 61451:
24952
+ /***/ 65895:
24729
24953
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
24730
24954
 
24731
24955
  "use strict";
24732
24956
 
24733
24957
 
24734
- const { kConnected, kSize } = __nccwpck_require__(13638)
24958
+ const { kConnected, kSize } = __nccwpck_require__(94822)
24735
24959
 
24736
24960
  class CompatWeakRef {
24737
24961
  constructor (value) {
@@ -24779,15 +25003,15 @@ module.exports = function () {
24779
25003
 
24780
25004
  /***/ }),
24781
25005
 
24782
- /***/ 60027:
25006
+ /***/ 5583:
24783
25007
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
24784
25008
 
24785
25009
  "use strict";
24786
25010
 
24787
25011
 
24788
25012
  const { Blob, File } = __nccwpck_require__(72254)
24789
- const { kState } = __nccwpck_require__(14935)
24790
- const { webidl } = __nccwpck_require__(2227)
25013
+ const { kState } = __nccwpck_require__(23200)
25014
+ const { webidl } = __nccwpck_require__(96163)
24791
25015
 
24792
25016
  // TODO(@KhafraDev): remove
24793
25017
  class FileLike {
@@ -24913,17 +25137,17 @@ module.exports = { FileLike, isFileLike }
24913
25137
 
24914
25138
  /***/ }),
24915
25139
 
24916
- /***/ 25152:
25140
+ /***/ 95600:
24917
25141
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
24918
25142
 
24919
25143
  "use strict";
24920
25144
 
24921
25145
 
24922
- const { isUSVString, bufferToLowerCasedHeaderName } = __nccwpck_require__(50011)
24923
- const { utf8DecodeBytes } = __nccwpck_require__(98730)
24924
- const { HTTP_TOKEN_CODEPOINTS, isomorphicDecode } = __nccwpck_require__(96730)
24925
- const { isFileLike } = __nccwpck_require__(60027)
24926
- const { makeEntry } = __nccwpck_require__(62598)
25146
+ const { isUSVString, bufferToLowerCasedHeaderName } = __nccwpck_require__(31014)
25147
+ const { utf8DecodeBytes } = __nccwpck_require__(40667)
25148
+ const { HTTP_TOKEN_CODEPOINTS, isomorphicDecode } = __nccwpck_require__(68889)
25149
+ const { isFileLike } = __nccwpck_require__(5583)
25150
+ const { makeEntry } = __nccwpck_require__(59550)
24927
25151
  const assert = __nccwpck_require__(98061)
24928
25152
  const { File: NodeFile } = __nccwpck_require__(72254)
24929
25153
 
@@ -25395,17 +25619,17 @@ module.exports = {
25395
25619
 
25396
25620
  /***/ }),
25397
25621
 
25398
- /***/ 62598:
25622
+ /***/ 59550:
25399
25623
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
25400
25624
 
25401
25625
  "use strict";
25402
25626
 
25403
25627
 
25404
- const { isBlobLike, iteratorMixin } = __nccwpck_require__(98730)
25405
- const { kState } = __nccwpck_require__(14935)
25406
- const { kEnumerableProperty } = __nccwpck_require__(50011)
25407
- const { FileLike, isFileLike } = __nccwpck_require__(60027)
25408
- const { webidl } = __nccwpck_require__(2227)
25628
+ const { isBlobLike, iteratorMixin } = __nccwpck_require__(40667)
25629
+ const { kState } = __nccwpck_require__(23200)
25630
+ const { kEnumerableProperty } = __nccwpck_require__(31014)
25631
+ const { FileLike, isFileLike } = __nccwpck_require__(5583)
25632
+ const { webidl } = __nccwpck_require__(96163)
25409
25633
  const { File: NativeFile } = __nccwpck_require__(72254)
25410
25634
  const nodeUtil = __nccwpck_require__(47261)
25411
25635
 
@@ -25655,7 +25879,7 @@ module.exports = { FormData, makeEntry }
25655
25879
 
25656
25880
  /***/ }),
25657
25881
 
25658
- /***/ 13924:
25882
+ /***/ 22407:
25659
25883
  /***/ ((module) => {
25660
25884
 
25661
25885
  "use strict";
@@ -25703,7 +25927,7 @@ module.exports = {
25703
25927
 
25704
25928
  /***/ }),
25705
25929
 
25706
- /***/ 10561:
25930
+ /***/ 33924:
25707
25931
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
25708
25932
 
25709
25933
  "use strict";
@@ -25711,14 +25935,14 @@ module.exports = {
25711
25935
 
25712
25936
 
25713
25937
 
25714
- const { kConstruct } = __nccwpck_require__(13638)
25715
- const { kEnumerableProperty } = __nccwpck_require__(50011)
25938
+ const { kConstruct } = __nccwpck_require__(94822)
25939
+ const { kEnumerableProperty } = __nccwpck_require__(31014)
25716
25940
  const {
25717
25941
  iteratorMixin,
25718
25942
  isValidHeaderName,
25719
25943
  isValidHeaderValue
25720
- } = __nccwpck_require__(98730)
25721
- const { webidl } = __nccwpck_require__(2227)
25944
+ } = __nccwpck_require__(40667)
25945
+ const { webidl } = __nccwpck_require__(96163)
25722
25946
  const assert = __nccwpck_require__(98061)
25723
25947
  const util = __nccwpck_require__(47261)
25724
25948
 
@@ -26398,7 +26622,7 @@ module.exports = {
26398
26622
 
26399
26623
  /***/ }),
26400
26624
 
26401
- /***/ 78329:
26625
+ /***/ 87321:
26402
26626
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
26403
26627
 
26404
26628
  "use strict";
@@ -26412,9 +26636,9 @@ const {
26412
26636
  filterResponse,
26413
26637
  makeResponse,
26414
26638
  fromInnerResponse
26415
- } = __nccwpck_require__(51132)
26416
- const { HeadersList } = __nccwpck_require__(10561)
26417
- const { Request, cloneRequest } = __nccwpck_require__(83211)
26639
+ } = __nccwpck_require__(63042)
26640
+ const { HeadersList } = __nccwpck_require__(33924)
26641
+ const { Request, cloneRequest } = __nccwpck_require__(11192)
26418
26642
  const zlib = __nccwpck_require__(65628)
26419
26643
  const {
26420
26644
  bytesMatch,
@@ -26450,23 +26674,23 @@ const {
26450
26674
  buildContentRange,
26451
26675
  createInflate,
26452
26676
  extractMimeType
26453
- } = __nccwpck_require__(98730)
26454
- const { kState, kDispatcher } = __nccwpck_require__(14935)
26677
+ } = __nccwpck_require__(40667)
26678
+ const { kState, kDispatcher } = __nccwpck_require__(23200)
26455
26679
  const assert = __nccwpck_require__(98061)
26456
- const { safelyExtractBody, extractBody } = __nccwpck_require__(12749)
26680
+ const { safelyExtractBody, extractBody } = __nccwpck_require__(48203)
26457
26681
  const {
26458
26682
  redirectStatusSet,
26459
26683
  nullBodyStatus,
26460
26684
  safeMethodsSet,
26461
26685
  requestBodyHeader,
26462
26686
  subresourceSet
26463
- } = __nccwpck_require__(54823)
26687
+ } = __nccwpck_require__(49316)
26464
26688
  const EE = __nccwpck_require__(15673)
26465
26689
  const { Readable, pipeline, finished } = __nccwpck_require__(84492)
26466
- const { addAbortListener, isErrored, isReadable, bufferToLowerCasedHeaderName } = __nccwpck_require__(50011)
26467
- const { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = __nccwpck_require__(96730)
26468
- const { getGlobalDispatcher } = __nccwpck_require__(19405)
26469
- const { webidl } = __nccwpck_require__(2227)
26690
+ const { addAbortListener, isErrored, isReadable, bufferToLowerCasedHeaderName } = __nccwpck_require__(31014)
26691
+ const { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = __nccwpck_require__(68889)
26692
+ const { getGlobalDispatcher } = __nccwpck_require__(53139)
26693
+ const { webidl } = __nccwpck_require__(96163)
26470
26694
  const { STATUS_CODES } = __nccwpck_require__(88849)
26471
26695
  const GET_OR_HEAD = ['GET', 'HEAD']
26472
26696
 
@@ -28354,8 +28578,10 @@ async function httpNetworkFetch (
28354
28578
  // 19. Run these steps in parallel:
28355
28579
 
28356
28580
  // 1. Run these steps, but abort when fetchParams is canceled:
28357
- fetchParams.controller.onAborted = onAborted
28358
- fetchParams.controller.on('terminated', onAborted)
28581
+ if (!fetchParams.controller.resume) {
28582
+ fetchParams.controller.on('terminated', onAborted)
28583
+ }
28584
+
28359
28585
  fetchParams.controller.resume = async () => {
28360
28586
  // 1. While true
28361
28587
  while (true) {
@@ -28524,8 +28750,6 @@ async function httpNetworkFetch (
28524
28750
  }
28525
28751
  location = headersList.get('location', true)
28526
28752
 
28527
- this.body = new Readable({ read: resume })
28528
-
28529
28753
  const decoders = []
28530
28754
 
28531
28755
  const willFollow = location && request.redirect === 'follow' &&
@@ -28543,7 +28767,7 @@ async function httpNetworkFetch (
28543
28767
  // CVE fix similar to urllib3 (GHSA-gm62-xv2j-4w53) and curl (CVE-2022-32206).
28544
28768
  const maxContentEncodings = 5
28545
28769
  if (codings.length > maxContentEncodings) {
28546
- reject(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`))
28770
+ this.abort(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`))
28547
28771
  return true
28548
28772
  }
28549
28773
 
@@ -28576,6 +28800,8 @@ async function httpNetworkFetch (
28576
28800
  }
28577
28801
  }
28578
28802
 
28803
+ this.body = new Readable({ read: resume })
28804
+
28579
28805
  const onError = this.onError.bind(this)
28580
28806
 
28581
28807
  resolve({
@@ -28622,10 +28848,6 @@ async function httpNetworkFetch (
28622
28848
  fetchParams.controller.off('terminated', this.abort)
28623
28849
  }
28624
28850
 
28625
- if (fetchParams.controller.onAborted) {
28626
- fetchParams.controller.off('terminated', fetchParams.controller.onAborted)
28627
- }
28628
-
28629
28851
  fetchParams.controller.ended = true
28630
28852
 
28631
28853
  this.body.push(null)
@@ -28678,7 +28900,7 @@ module.exports = {
28678
28900
 
28679
28901
  /***/ }),
28680
28902
 
28681
- /***/ 83211:
28903
+ /***/ 11192:
28682
28904
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
28683
28905
 
28684
28906
  "use strict";
@@ -28686,16 +28908,16 @@ module.exports = {
28686
28908
 
28687
28909
 
28688
28910
 
28689
- const { extractBody, mixinBody, cloneBody, bodyUnusable } = __nccwpck_require__(12749)
28690
- const { Headers, fill: fillHeaders, HeadersList, setHeadersGuard, getHeadersGuard, setHeadersList, getHeadersList } = __nccwpck_require__(10561)
28691
- const { FinalizationRegistry } = __nccwpck_require__(61451)()
28692
- const util = __nccwpck_require__(50011)
28911
+ const { extractBody, mixinBody, cloneBody, bodyUnusable } = __nccwpck_require__(48203)
28912
+ const { Headers, fill: fillHeaders, HeadersList, setHeadersGuard, getHeadersGuard, setHeadersList, getHeadersList } = __nccwpck_require__(33924)
28913
+ const { FinalizationRegistry } = __nccwpck_require__(65895)()
28914
+ const util = __nccwpck_require__(31014)
28693
28915
  const nodeUtil = __nccwpck_require__(47261)
28694
28916
  const {
28695
28917
  isValidHTTPToken,
28696
28918
  sameOrigin,
28697
28919
  environmentSettingsObject
28698
- } = __nccwpck_require__(98730)
28920
+ } = __nccwpck_require__(40667)
28699
28921
  const {
28700
28922
  forbiddenMethodsSet,
28701
28923
  corsSafeListedMethodsSet,
@@ -28705,12 +28927,12 @@ const {
28705
28927
  requestCredentials,
28706
28928
  requestCache,
28707
28929
  requestDuplex
28708
- } = __nccwpck_require__(54823)
28930
+ } = __nccwpck_require__(49316)
28709
28931
  const { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util
28710
- const { kHeaders, kSignal, kState, kDispatcher } = __nccwpck_require__(14935)
28711
- const { webidl } = __nccwpck_require__(2227)
28712
- const { URLSerializer } = __nccwpck_require__(96730)
28713
- const { kConstruct } = __nccwpck_require__(13638)
28932
+ const { kHeaders, kSignal, kState, kDispatcher } = __nccwpck_require__(23200)
28933
+ const { webidl } = __nccwpck_require__(96163)
28934
+ const { URLSerializer } = __nccwpck_require__(68889)
28935
+ const { kConstruct } = __nccwpck_require__(94822)
28714
28936
  const assert = __nccwpck_require__(98061)
28715
28937
  const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __nccwpck_require__(15673)
28716
28938
 
@@ -29723,15 +29945,15 @@ module.exports = { Request, makeRequest, fromInnerRequest, cloneRequest }
29723
29945
 
29724
29946
  /***/ }),
29725
29947
 
29726
- /***/ 51132:
29948
+ /***/ 63042:
29727
29949
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
29728
29950
 
29729
29951
  "use strict";
29730
29952
 
29731
29953
 
29732
- const { Headers, HeadersList, fill, getHeadersGuard, setHeadersGuard, setHeadersList } = __nccwpck_require__(10561)
29733
- const { extractBody, cloneBody, mixinBody, hasFinalizationRegistry, streamRegistry, bodyUnusable } = __nccwpck_require__(12749)
29734
- const util = __nccwpck_require__(50011)
29954
+ const { Headers, HeadersList, fill, getHeadersGuard, setHeadersGuard, setHeadersList } = __nccwpck_require__(33924)
29955
+ const { extractBody, cloneBody, mixinBody, hasFinalizationRegistry, streamRegistry, bodyUnusable } = __nccwpck_require__(48203)
29956
+ const util = __nccwpck_require__(31014)
29735
29957
  const nodeUtil = __nccwpck_require__(47261)
29736
29958
  const { kEnumerableProperty } = util
29737
29959
  const {
@@ -29743,16 +29965,16 @@ const {
29743
29965
  isErrorLike,
29744
29966
  isomorphicEncode,
29745
29967
  environmentSettingsObject: relevantRealm
29746
- } = __nccwpck_require__(98730)
29968
+ } = __nccwpck_require__(40667)
29747
29969
  const {
29748
29970
  redirectStatusSet,
29749
29971
  nullBodyStatus
29750
- } = __nccwpck_require__(54823)
29751
- const { kState, kHeaders } = __nccwpck_require__(14935)
29752
- const { webidl } = __nccwpck_require__(2227)
29753
- const { FormData } = __nccwpck_require__(62598)
29754
- const { URLSerializer } = __nccwpck_require__(96730)
29755
- const { kConstruct } = __nccwpck_require__(13638)
29972
+ } = __nccwpck_require__(49316)
29973
+ const { kState, kHeaders } = __nccwpck_require__(23200)
29974
+ const { webidl } = __nccwpck_require__(96163)
29975
+ const { FormData } = __nccwpck_require__(59550)
29976
+ const { URLSerializer } = __nccwpck_require__(68889)
29977
+ const { kConstruct } = __nccwpck_require__(94822)
29756
29978
  const assert = __nccwpck_require__(98061)
29757
29979
  const { types } = __nccwpck_require__(47261)
29758
29980
 
@@ -30341,7 +30563,7 @@ module.exports = {
30341
30563
 
30342
30564
  /***/ }),
30343
30565
 
30344
- /***/ 14935:
30566
+ /***/ 23200:
30345
30567
  /***/ ((module) => {
30346
30568
 
30347
30569
  "use strict";
@@ -30358,7 +30580,7 @@ module.exports = {
30358
30580
 
30359
30581
  /***/ }),
30360
30582
 
30361
- /***/ 98730:
30583
+ /***/ 40667:
30362
30584
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
30363
30585
 
30364
30586
  "use strict";
@@ -30366,14 +30588,14 @@ module.exports = {
30366
30588
 
30367
30589
  const { Transform } = __nccwpck_require__(84492)
30368
30590
  const zlib = __nccwpck_require__(65628)
30369
- const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = __nccwpck_require__(54823)
30370
- const { getGlobalOrigin } = __nccwpck_require__(13924)
30371
- const { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = __nccwpck_require__(96730)
30591
+ const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = __nccwpck_require__(49316)
30592
+ const { getGlobalOrigin } = __nccwpck_require__(22407)
30593
+ const { collectASequenceOfCodePoints, collectAnHTTPQuotedString, removeChars, parseMIMEType } = __nccwpck_require__(68889)
30372
30594
  const { performance } = __nccwpck_require__(38846)
30373
- const { isBlobLike, ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = __nccwpck_require__(50011)
30595
+ const { isBlobLike, ReadableStreamFrom, isValidHTTPToken, normalizedMethodRecordsBase } = __nccwpck_require__(31014)
30374
30596
  const assert = __nccwpck_require__(98061)
30375
30597
  const { isUint8Array } = __nccwpck_require__(93746)
30376
- const { webidl } = __nccwpck_require__(2227)
30598
+ const { webidl } = __nccwpck_require__(96163)
30377
30599
 
30378
30600
  let supportedHashes = []
30379
30601
 
@@ -31998,7 +32220,7 @@ module.exports = {
31998
32220
 
31999
32221
  /***/ }),
32000
32222
 
32001
- /***/ 2227:
32223
+ /***/ 96163:
32002
32224
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
32003
32225
 
32004
32226
  "use strict";
@@ -32006,7 +32228,7 @@ module.exports = {
32006
32228
 
32007
32229
  const { types, inspect } = __nccwpck_require__(47261)
32008
32230
  const { markAsUncloneable } = __nccwpck_require__(24086)
32009
- const { toUSVString } = __nccwpck_require__(50011)
32231
+ const { toUSVString } = __nccwpck_require__(31014)
32010
32232
 
32011
32233
  /** @type {import('../../../types/webidl').Webidl} */
32012
32234
  const webidl = {}
@@ -32701,7 +32923,7 @@ module.exports = {
32701
32923
 
32702
32924
  /***/ }),
32703
32925
 
32704
- /***/ 74973:
32926
+ /***/ 73760:
32705
32927
  /***/ ((module) => {
32706
32928
 
32707
32929
  "use strict";
@@ -32999,7 +33221,7 @@ module.exports = {
32999
33221
 
33000
33222
  /***/ }),
33001
33223
 
33002
- /***/ 65153:
33224
+ /***/ 62596:
33003
33225
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
33004
33226
 
33005
33227
  "use strict";
@@ -33009,16 +33231,16 @@ const {
33009
33231
  staticPropertyDescriptors,
33010
33232
  readOperation,
33011
33233
  fireAProgressEvent
33012
- } = __nccwpck_require__(24277)
33234
+ } = __nccwpck_require__(86751)
33013
33235
  const {
33014
33236
  kState,
33015
33237
  kError,
33016
33238
  kResult,
33017
33239
  kEvents,
33018
33240
  kAborted
33019
- } = __nccwpck_require__(30010)
33020
- const { webidl } = __nccwpck_require__(2227)
33021
- const { kEnumerableProperty } = __nccwpck_require__(50011)
33241
+ } = __nccwpck_require__(42047)
33242
+ const { webidl } = __nccwpck_require__(96163)
33243
+ const { kEnumerableProperty } = __nccwpck_require__(31014)
33022
33244
 
33023
33245
  class FileReader extends EventTarget {
33024
33246
  constructor () {
@@ -33351,13 +33573,13 @@ module.exports = {
33351
33573
 
33352
33574
  /***/ }),
33353
33575
 
33354
- /***/ 53788:
33576
+ /***/ 30183:
33355
33577
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
33356
33578
 
33357
33579
  "use strict";
33358
33580
 
33359
33581
 
33360
- const { webidl } = __nccwpck_require__(2227)
33582
+ const { webidl } = __nccwpck_require__(96163)
33361
33583
 
33362
33584
  const kState = Symbol('ProgressEvent state')
33363
33585
 
@@ -33437,7 +33659,7 @@ module.exports = {
33437
33659
 
33438
33660
  /***/ }),
33439
33661
 
33440
- /***/ 30010:
33662
+ /***/ 42047:
33441
33663
  /***/ ((module) => {
33442
33664
 
33443
33665
  "use strict";
@@ -33455,7 +33677,7 @@ module.exports = {
33455
33677
 
33456
33678
  /***/ }),
33457
33679
 
33458
- /***/ 24277:
33680
+ /***/ 86751:
33459
33681
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
33460
33682
 
33461
33683
  "use strict";
@@ -33467,10 +33689,10 @@ const {
33467
33689
  kResult,
33468
33690
  kAborted,
33469
33691
  kLastProgressEventFired
33470
- } = __nccwpck_require__(30010)
33471
- const { ProgressEvent } = __nccwpck_require__(53788)
33472
- const { getEncoding } = __nccwpck_require__(74973)
33473
- const { serializeAMimeType, parseMIMEType } = __nccwpck_require__(96730)
33692
+ } = __nccwpck_require__(42047)
33693
+ const { ProgressEvent } = __nccwpck_require__(30183)
33694
+ const { getEncoding } = __nccwpck_require__(73760)
33695
+ const { serializeAMimeType, parseMIMEType } = __nccwpck_require__(68889)
33474
33696
  const { types } = __nccwpck_require__(47261)
33475
33697
  const { StringDecoder } = __nccwpck_require__(71576)
33476
33698
  const { btoa } = __nccwpck_require__(72254)
@@ -33854,28 +34076,28 @@ module.exports = {
33854
34076
 
33855
34077
  /***/ }),
33856
34078
 
33857
- /***/ 17299:
34079
+ /***/ 47524:
33858
34080
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
33859
34081
 
33860
34082
  "use strict";
33861
34083
 
33862
34084
 
33863
- const { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = __nccwpck_require__(44285)
34085
+ const { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = __nccwpck_require__(56004)
33864
34086
  const {
33865
34087
  kReadyState,
33866
34088
  kSentClose,
33867
34089
  kByteParser,
33868
34090
  kReceivedClose,
33869
34091
  kResponse
33870
- } = __nccwpck_require__(34939)
33871
- const { fireEvent, failWebsocketConnection, isClosing, isClosed, isEstablished, parseExtensions } = __nccwpck_require__(93194)
33872
- const { channels } = __nccwpck_require__(65543)
33873
- const { CloseEvent } = __nccwpck_require__(69459)
33874
- const { makeRequest } = __nccwpck_require__(83211)
33875
- const { fetching } = __nccwpck_require__(78329)
33876
- const { Headers, getHeadersList } = __nccwpck_require__(10561)
33877
- const { getDecodeSplit } = __nccwpck_require__(98730)
33878
- const { WebsocketFrameSend } = __nccwpck_require__(84618)
34092
+ } = __nccwpck_require__(23992)
34093
+ const { fireEvent, failWebsocketConnection, isClosing, isClosed, isEstablished, parseExtensions } = __nccwpck_require__(82487)
34094
+ const { channels } = __nccwpck_require__(96005)
34095
+ const { CloseEvent } = __nccwpck_require__(85021)
34096
+ const { makeRequest } = __nccwpck_require__(11192)
34097
+ const { fetching } = __nccwpck_require__(87321)
34098
+ const { Headers, getHeadersList } = __nccwpck_require__(33924)
34099
+ const { getDecodeSplit } = __nccwpck_require__(40667)
34100
+ const { WebsocketFrameSend } = __nccwpck_require__(4712)
33879
34101
 
33880
34102
  /** @type {import('crypto')} */
33881
34103
  let crypto
@@ -34233,7 +34455,7 @@ module.exports = {
34233
34455
 
34234
34456
  /***/ }),
34235
34457
 
34236
- /***/ 44285:
34458
+ /***/ 56004:
34237
34459
  /***/ ((module) => {
34238
34460
 
34239
34461
  "use strict";
@@ -34307,15 +34529,15 @@ module.exports = {
34307
34529
 
34308
34530
  /***/ }),
34309
34531
 
34310
- /***/ 69459:
34532
+ /***/ 85021:
34311
34533
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
34312
34534
 
34313
34535
  "use strict";
34314
34536
 
34315
34537
 
34316
- const { webidl } = __nccwpck_require__(2227)
34317
- const { kEnumerableProperty } = __nccwpck_require__(50011)
34318
- const { kConstruct } = __nccwpck_require__(13638)
34538
+ const { webidl } = __nccwpck_require__(96163)
34539
+ const { kEnumerableProperty } = __nccwpck_require__(31014)
34540
+ const { kConstruct } = __nccwpck_require__(94822)
34319
34541
  const { MessagePort } = __nccwpck_require__(24086)
34320
34542
 
34321
34543
  /**
@@ -34644,13 +34866,13 @@ module.exports = {
34644
34866
 
34645
34867
  /***/ }),
34646
34868
 
34647
- /***/ 84618:
34869
+ /***/ 4712:
34648
34870
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
34649
34871
 
34650
34872
  "use strict";
34651
34873
 
34652
34874
 
34653
- const { maxUnsigned16Bit } = __nccwpck_require__(44285)
34875
+ const { maxUnsigned16Bit } = __nccwpck_require__(56004)
34654
34876
 
34655
34877
  const BUFFER_SIZE = 16386
34656
34878
 
@@ -34748,15 +34970,15 @@ module.exports = {
34748
34970
 
34749
34971
  /***/ }),
34750
34972
 
34751
- /***/ 7133:
34973
+ /***/ 93711:
34752
34974
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
34753
34975
 
34754
34976
  "use strict";
34755
34977
 
34756
34978
 
34757
34979
  const { createInflateRaw, Z_DEFAULT_WINDOWBITS } = __nccwpck_require__(65628)
34758
- const { isValidClientWindowBits } = __nccwpck_require__(93194)
34759
- const { MessageSizeExceededError } = __nccwpck_require__(35990)
34980
+ const { isValidClientWindowBits } = __nccwpck_require__(82487)
34981
+ const { MessageSizeExceededError } = __nccwpck_require__(47926)
34760
34982
 
34761
34983
  const tail = Buffer.from([0x00, 0x00, 0xff, 0xff])
34762
34984
  const kBuffer = Symbol('kBuffer')
@@ -34861,7 +35083,7 @@ module.exports = { PerMessageDeflate }
34861
35083
 
34862
35084
  /***/ }),
34863
35085
 
34864
- /***/ 46080:
35086
+ /***/ 44894:
34865
35087
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
34866
35088
 
34867
35089
  "use strict";
@@ -34869,9 +35091,9 @@ module.exports = { PerMessageDeflate }
34869
35091
 
34870
35092
  const { Writable } = __nccwpck_require__(84492)
34871
35093
  const assert = __nccwpck_require__(98061)
34872
- const { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = __nccwpck_require__(44285)
34873
- const { kReadyState, kSentClose, kResponse, kReceivedClose } = __nccwpck_require__(34939)
34874
- const { channels } = __nccwpck_require__(65543)
35094
+ const { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = __nccwpck_require__(56004)
35095
+ const { kReadyState, kSentClose, kResponse, kReceivedClose } = __nccwpck_require__(23992)
35096
+ const { channels } = __nccwpck_require__(96005)
34875
35097
  const {
34876
35098
  isValidStatusCode,
34877
35099
  isValidOpcode,
@@ -34881,11 +35103,11 @@ const {
34881
35103
  isControlFrame,
34882
35104
  isTextBinaryFrame,
34883
35105
  isContinuationFrame
34884
- } = __nccwpck_require__(93194)
34885
- const { WebsocketFrameSend } = __nccwpck_require__(84618)
34886
- const { closeWebSocketConnection } = __nccwpck_require__(17299)
34887
- const { PerMessageDeflate } = __nccwpck_require__(7133)
34888
- const { MessageSizeExceededError } = __nccwpck_require__(35990)
35106
+ } = __nccwpck_require__(82487)
35107
+ const { WebsocketFrameSend } = __nccwpck_require__(4712)
35108
+ const { closeWebSocketConnection } = __nccwpck_require__(47524)
35109
+ const { PerMessageDeflate } = __nccwpck_require__(93711)
35110
+ const { MessageSizeExceededError } = __nccwpck_require__(47926)
34889
35111
 
34890
35112
  function failWebsocketConnectionWithCode (ws, code, reason) {
34891
35113
  closeWebSocketConnection(ws, code, reason, Buffer.byteLength(reason))
@@ -35116,6 +35338,20 @@ class ByteParser extends Writable {
35116
35338
  if (isControlFrame(this.#info.opcode)) {
35117
35339
  this.#loop = this.parseControlFrame(body)
35118
35340
  this.#state = parserStates.INFO
35341
+
35342
+ // If the automatic PONG/CLOSE reply filled the socket's write buffer,
35343
+ // stop parsing and resume on drain so a PING flood cannot grow the
35344
+ // outbound queue without bound.
35345
+ const socket = this.ws[kResponse].socket
35346
+ if (this.#loop && socket.writableNeedDrain) {
35347
+ this.#loop = false
35348
+ socket.once('drain', () => {
35349
+ if (this.destroyed) return
35350
+ this.#loop = true
35351
+ this.run(callback)
35352
+ })
35353
+ return
35354
+ }
35119
35355
  } else {
35120
35356
  if (!this.#info.compressed) {
35121
35357
  if (!this.writeFragments(body)) {
@@ -35382,15 +35618,15 @@ module.exports = {
35382
35618
 
35383
35619
  /***/ }),
35384
35620
 
35385
- /***/ 26515:
35621
+ /***/ 10243:
35386
35622
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
35387
35623
 
35388
35624
  "use strict";
35389
35625
 
35390
35626
 
35391
- const { WebsocketFrameSend } = __nccwpck_require__(84618)
35392
- const { opcodes, sendHints } = __nccwpck_require__(44285)
35393
- const FixedQueue = __nccwpck_require__(27092)
35627
+ const { WebsocketFrameSend } = __nccwpck_require__(4712)
35628
+ const { opcodes, sendHints } = __nccwpck_require__(56004)
35629
+ const FixedQueue = __nccwpck_require__(94856)
35394
35630
 
35395
35631
  /** @type {typeof Uint8Array} */
35396
35632
  const FastBuffer = Buffer[Symbol.species]
@@ -35494,7 +35730,7 @@ module.exports = { SendQueue }
35494
35730
 
35495
35731
  /***/ }),
35496
35732
 
35497
- /***/ 34939:
35733
+ /***/ 23992:
35498
35734
  /***/ ((module) => {
35499
35735
 
35500
35736
  "use strict";
@@ -35514,17 +35750,17 @@ module.exports = {
35514
35750
 
35515
35751
  /***/ }),
35516
35752
 
35517
- /***/ 93194:
35753
+ /***/ 82487:
35518
35754
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
35519
35755
 
35520
35756
  "use strict";
35521
35757
 
35522
35758
 
35523
- const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(34939)
35524
- const { states, opcodes } = __nccwpck_require__(44285)
35525
- const { ErrorEvent, createFastMessageEvent } = __nccwpck_require__(69459)
35759
+ const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(23992)
35760
+ const { states, opcodes } = __nccwpck_require__(56004)
35761
+ const { ErrorEvent, createFastMessageEvent } = __nccwpck_require__(85021)
35526
35762
  const { isUtf8 } = __nccwpck_require__(72254)
35527
- const { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = __nccwpck_require__(96730)
35763
+ const { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = __nccwpck_require__(68889)
35528
35764
 
35529
35765
  /* globals Blob */
35530
35766
 
@@ -35844,16 +36080,16 @@ module.exports = {
35844
36080
 
35845
36081
  /***/ }),
35846
36082
 
35847
- /***/ 16416:
36083
+ /***/ 43590:
35848
36084
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
35849
36085
 
35850
36086
  "use strict";
35851
36087
 
35852
36088
 
35853
- const { webidl } = __nccwpck_require__(2227)
35854
- const { URLSerializer } = __nccwpck_require__(96730)
35855
- const { environmentSettingsObject } = __nccwpck_require__(98730)
35856
- const { staticPropertyDescriptors, states, sentCloseFrameState, sendHints } = __nccwpck_require__(44285)
36089
+ const { webidl } = __nccwpck_require__(96163)
36090
+ const { URLSerializer } = __nccwpck_require__(68889)
36091
+ const { environmentSettingsObject } = __nccwpck_require__(40667)
36092
+ const { staticPropertyDescriptors, states, sentCloseFrameState, sendHints } = __nccwpck_require__(56004)
35857
36093
  const {
35858
36094
  kWebSocketURL,
35859
36095
  kReadyState,
@@ -35862,21 +36098,21 @@ const {
35862
36098
  kResponse,
35863
36099
  kSentClose,
35864
36100
  kByteParser
35865
- } = __nccwpck_require__(34939)
36101
+ } = __nccwpck_require__(23992)
35866
36102
  const {
35867
36103
  isConnecting,
35868
36104
  isEstablished,
35869
36105
  isClosing,
35870
36106
  isValidSubprotocol,
35871
36107
  fireEvent
35872
- } = __nccwpck_require__(93194)
35873
- const { establishWebSocketConnection, closeWebSocketConnection } = __nccwpck_require__(17299)
35874
- const { ByteParser } = __nccwpck_require__(46080)
35875
- const { kEnumerableProperty, isBlobLike } = __nccwpck_require__(50011)
35876
- const { getGlobalDispatcher } = __nccwpck_require__(19405)
36108
+ } = __nccwpck_require__(82487)
36109
+ const { establishWebSocketConnection, closeWebSocketConnection } = __nccwpck_require__(47524)
36110
+ const { ByteParser } = __nccwpck_require__(44894)
36111
+ const { kEnumerableProperty, isBlobLike } = __nccwpck_require__(31014)
36112
+ const { getGlobalDispatcher } = __nccwpck_require__(53139)
35877
36113
  const { types } = __nccwpck_require__(47261)
35878
- const { ErrorEvent, CloseEvent } = __nccwpck_require__(69459)
35879
- const { SendQueue } = __nccwpck_require__(26515)
36114
+ const { ErrorEvent, CloseEvent } = __nccwpck_require__(85021)
36115
+ const { SendQueue } = __nccwpck_require__(10243)
35880
36116
 
35881
36117
  // https://websockets.spec.whatwg.org/#interface-definition
35882
36118
  class WebSocket extends EventTarget {
@@ -62012,7 +62248,7 @@ async function resolveParentCommentBody(param, contextPorts) {
62012
62248
 
62013
62249
  /***/ }),
62014
62250
 
62015
- /***/ 37685:
62251
+ /***/ 281:
62016
62252
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
62017
62253
 
62018
62254
  "use strict";
@@ -72882,7 +73118,7 @@ exports.BranchNameRepository = BranchNameRepository;
72882
73118
 
72883
73119
  /***/ }),
72884
73120
 
72885
- /***/ 54874:
73121
+ /***/ 80742:
72886
73122
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
72887
73123
 
72888
73124
  "use strict";
@@ -72972,7 +73208,7 @@ function uniqueValidDependencies(candidates) {
72972
73208
 
72973
73209
  Object.defineProperty(exports, "__esModule", ({ value: true }));
72974
73210
  exports.BranchDependencyRepository = void 0;
72975
- const branch_dependency_policy_1 = __nccwpck_require__(54874);
73211
+ const branch_dependency_policy_1 = __nccwpck_require__(80742);
72976
73212
  const OPEN_DEPENDENCIES_QUERY = `
72977
73213
  query BranchSyncDependencies($owner: String!, $repo: String!, $issuesCursor: String, $pullsCursor: String) {
72978
73214
  repository(owner: $owner, name: $repo) {
@@ -84828,14 +85064,41 @@ function downloadScript(url, destination, environment) {
84828
85064
  }
84829
85065
  return contents.toString('utf8');
84830
85066
  }
84831
- function runScript(provider, root, environment) {
85067
+ /** Recovery is fixed in the reviewed manifest, never supplied by a repository or environment. */
85068
+ function downloadInstallerScript(provider, script, environment) {
84832
85069
  const source = (0, agent_runtime_manifest_1.getAgentRuntimeManifestEntry)(provider).installation;
84833
85070
  const windows = process.platform === 'win32';
84834
85071
  const url = windows ? source.windowsScript : source.unixScript;
84835
85072
  if (!url)
84836
85073
  throw new Error(`No official ${provider} installer supports this platform.`);
85074
+ try {
85075
+ downloadScript(url, script, environment);
85076
+ return;
85077
+ }
85078
+ catch (error) {
85079
+ if (provider !== 'codex' || !(error instanceof OfficialAgentInstallationError) || error.stage !== 'download') {
85080
+ throw error;
85081
+ }
85082
+ const recovery = windows ? source.scriptRecovery?.windows : source.scriptRecovery?.unix;
85083
+ if (!recovery)
85084
+ throw error;
85085
+ const suffix = windows ? 'ps1' : 'sh';
85086
+ const officialSource = new RegExp(`^https://raw\\.githubusercontent\\.com/openai/codex/[a-f0-9]{40}/scripts/install/install\\.${suffix}$`, 'u');
85087
+ if (!officialSource.test(recovery.url) || !/^[a-f0-9]{64}$/u.test(recovery.sha256)) {
85088
+ throw new OfficialAgentInstallationError('download', 'Official installer recovery source is invalid.', undefined, undefined, 'recovery-source');
85089
+ }
85090
+ // download() removes a partial primary transfer. This is the only recovery attempt.
85091
+ downloadScript(recovery.url, script, environment);
85092
+ if ((0, node_crypto_1.createHash)('sha256').update((0, node_fs_1.readFileSync)(script)).digest('hex') !== recovery.sha256) {
85093
+ (0, node_fs_1.rmSync)(script, { force: true });
85094
+ throw new OfficialAgentInstallationError('download', 'Official installer recovery checksum did not match.', undefined, undefined, 'checksum');
85095
+ }
85096
+ }
85097
+ }
85098
+ function runScript(provider, root, environment) {
85099
+ const windows = process.platform === 'win32';
84837
85100
  const script = (0, node_path_1.join)(root, windows ? 'install.ps1' : 'install.sh');
84838
- downloadScript(url, script, environment);
85101
+ downloadInstallerScript(provider, script, environment);
84839
85102
  if (windows) {
84840
85103
  const powershell = (0, agent_trusted_system_tools_1.trustedWindowsSystemTool)((0, node_path_1.join)('WindowsPowerShell', 'v1.0', 'powershell.exe'));
84841
85104
  try {
@@ -86990,7 +87253,7 @@ const check_changes_issue_size_use_case_1 = __nccwpck_require__(28356);
86990
87253
  const change_size_project_membership_composition_root_1 = __nccwpck_require__(99375);
86991
87254
  const bugbot_autofix_use_case_1 = __nccwpck_require__(45446);
86992
87255
  const detect_bugbot_fix_intent_use_case_1 = __nccwpck_require__(76234);
86993
- const dismiss_bugbot_findings_use_case_1 = __nccwpck_require__(37685);
87256
+ const dismiss_bugbot_findings_use_case_1 = __nccwpck_require__(281);
86994
87257
  const remember_bugbot_rule_use_case_1 = __nccwpck_require__(17437);
86995
87258
  const detect_potential_problems_use_case_1 = __nccwpck_require__(6287);
86996
87259
  const notify_new_commit_on_issue_use_case_1 = __nccwpck_require__(33276);
@@ -101380,7 +101643,7 @@ module.exports = JSON.parse('{"single":{"topLeft":"┌","top":"─","topRight":"
101380
101643
  /***/ ((module) => {
101381
101644
 
101382
101645
  "use strict";
101383
- module.exports = JSON.parse('{"revision":"2026-10-02.standalone.1","providers":{"codex":{"executable":"codex","reviewedVersion":"codex-cli 0.156.1","legacyNpmPackage":"@openai/codex","installation":{"unixScript":"https://chatgpt.com/codex/install.sh","windowsScript":"https://chatgpt.com/codex/install.ps1"}},"opencode":{"executable":"opencode","reviewedVersion":"1.18.3","legacyNpmPackage":"opencode-ai","installation":{"unixScript":"https://opencode.ai/install","windowsReleaseApi":"https://api.github.com/repos/anomalyco/opencode/releases/latest"}},"cursor":{"executable":"agent","reviewedVersion":"2026.09.10-fd3934a","installation":{"unixScript":"https://cursor.com/install","windowsScript":"https://cursor.com/install?win32=true"}}}}');
101646
+ module.exports = JSON.parse('{"revision":"2026-10-24.standalone.2","providers":{"codex":{"executable":"codex","reviewedVersion":"codex-cli 0.156.1","legacyNpmPackage":"@openai/codex","installation":{"unixScript":"https://chatgpt.com/codex/install.sh","windowsScript":"https://chatgpt.com/codex/install.ps1","scriptRecovery":{"unix":{"url":"https://raw.githubusercontent.com/openai/codex/b412ff32c417f855c2b2d1581b77058eed87c84b/scripts/install/install.sh","sha256":"150e3cf675682efeaac115aa3747add3f27887896d04ce6d0b56478d8b428bf6"},"windows":{"url":"https://raw.githubusercontent.com/openai/codex/b412ff32c417f855c2b2d1581b77058eed87c84b/scripts/install/install.ps1","sha256":"3522b77d4485eac014e70fa946787c95fad3874a4e9047557c1e044eb268d13e"}}}},"opencode":{"executable":"opencode","reviewedVersion":"1.18.3","legacyNpmPackage":"opencode-ai","installation":{"unixScript":"https://opencode.ai/install","windowsReleaseApi":"https://api.github.com/repos/anomalyco/opencode/releases/latest"}},"cursor":{"executable":"agent","reviewedVersion":"2026.09.10-fd3934a","installation":{"unixScript":"https://cursor.com/install","windowsScript":"https://cursor.com/install?win32=true"}}}}');
101384
101647
 
101385
101648
  /***/ })
101386
101649