@holydeck/cli 2026.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -0
  3. package/dist/BrowserWebSocketTransport-H3D6MINS.js +12 -0
  4. package/dist/BrowserWebSocketTransport-H3D6MINS.js.map +1 -0
  5. package/dist/LaunchOptions-42ZS55HH.js +12 -0
  6. package/dist/LaunchOptions-42ZS55HH.js.map +1 -0
  7. package/dist/NodeWebSocketTransport-BXHQGXRM.js +15 -0
  8. package/dist/NodeWebSocketTransport-BXHQGXRM.js.map +1 -0
  9. package/dist/bidi-25S23FWJ.js +18358 -0
  10. package/dist/bidi-25S23FWJ.js.map +1 -0
  11. package/dist/chunk-2BLOYUSF.js +795 -0
  12. package/dist/chunk-2BLOYUSF.js.map +1 -0
  13. package/dist/chunk-43CZTS57.js +38 -0
  14. package/dist/chunk-43CZTS57.js.map +1 -0
  15. package/dist/chunk-DIBLSFAG.js +34 -0
  16. package/dist/chunk-DIBLSFAG.js.map +1 -0
  17. package/dist/chunk-IEJ3OX3N.js +52 -0
  18. package/dist/chunk-IEJ3OX3N.js.map +1 -0
  19. package/dist/chunk-JM4YIWBN.js +3796 -0
  20. package/dist/chunk-JM4YIWBN.js.map +1 -0
  21. package/dist/chunk-NP3DTWF7.js +23282 -0
  22. package/dist/chunk-NP3DTWF7.js.map +1 -0
  23. package/dist/chunk-SWG4X375.js +51 -0
  24. package/dist/chunk-SWG4X375.js.map +1 -0
  25. package/dist/chunk-UC6TFXMD.js +2821 -0
  26. package/dist/chunk-UC6TFXMD.js.map +1 -0
  27. package/dist/chunk-V4BIHFVZ.js +2287 -0
  28. package/dist/chunk-V4BIHFVZ.js.map +1 -0
  29. package/dist/chunk-V77AQPDK.js +20 -0
  30. package/dist/chunk-V77AQPDK.js.map +1 -0
  31. package/dist/chunk-XAENXL52.js +101 -0
  32. package/dist/chunk-XAENXL52.js.map +1 -0
  33. package/dist/cli.js +64101 -0
  34. package/dist/cli.js.map +1 -0
  35. package/dist/dist-3ZE2HBJQ.js +20447 -0
  36. package/dist/dist-3ZE2HBJQ.js.map +1 -0
  37. package/dist/dist-575AQY5L.js +1161 -0
  38. package/dist/dist-575AQY5L.js.map +1 -0
  39. package/dist/dist-DL5M2SDJ.js +117 -0
  40. package/dist/dist-DL5M2SDJ.js.map +1 -0
  41. package/dist/dist-OMWR53J4.js +4713 -0
  42. package/dist/dist-OMWR53J4.js.map +1 -0
  43. package/dist/dist-UT6HKKCD.js +281 -0
  44. package/dist/dist-UT6HKKCD.js.map +1 -0
  45. package/dist/fs-P6GYHPGZ.js +1685 -0
  46. package/dist/fs-P6GYHPGZ.js.map +1 -0
  47. package/dist/helpers-64DWIL6C.js +21 -0
  48. package/dist/helpers-64DWIL6C.js.map +1 -0
  49. package/dist/main-IQ64YDOJ.js +61 -0
  50. package/dist/main-IQ64YDOJ.js.map +1 -0
  51. package/dist/puppeteer-RDWY6FSG.js +2386 -0
  52. package/dist/puppeteer-RDWY6FSG.js.map +1 -0
  53. package/dist/yargs-KMQWKLG6.js +3264 -0
  54. package/dist/yargs-KMQWKLG6.js.map +1 -0
  55. package/dist/yauzl-7KG7KPPF.js +1355 -0
  56. package/dist/yauzl-7KG7KPPF.js.map +1 -0
  57. package/package.json +44 -0
@@ -0,0 +1,1161 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __holydeckCreateRequire } from 'node:module';
3
+ const require = __holydeckCreateRequire(import.meta.url);
4
+ import {
5
+ Agent,
6
+ require_src
7
+ } from "./chunk-2BLOYUSF.js";
8
+ import {
9
+ __toESM
10
+ } from "./chunk-IEJ3OX3N.js";
11
+
12
+ // ../../node_modules/.pnpm/proxy-agent@8.0.2/node_modules/proxy-agent/dist/index.js
13
+ import * as http from "http";
14
+ import * as https from "https";
15
+ import { URL as URL2 } from "url";
16
+
17
+ // ../../node_modules/.pnpm/lru-cache@7.18.3/node_modules/lru-cache/index.mjs
18
+ var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
19
+ var hasAbortController = typeof AbortController === "function";
20
+ var AC = hasAbortController ? AbortController : class AbortController2 {
21
+ constructor() {
22
+ this.signal = new AS();
23
+ }
24
+ abort(reason = new Error("This operation was aborted")) {
25
+ this.signal.reason = this.signal.reason || reason;
26
+ this.signal.aborted = true;
27
+ this.signal.dispatchEvent({
28
+ type: "abort",
29
+ target: this.signal
30
+ });
31
+ }
32
+ };
33
+ var hasAbortSignal = typeof AbortSignal === "function";
34
+ var hasACAbortSignal = typeof AC.AbortSignal === "function";
35
+ var AS = hasAbortSignal ? AbortSignal : hasACAbortSignal ? AC.AbortController : class AbortSignal2 {
36
+ constructor() {
37
+ this.reason = void 0;
38
+ this.aborted = false;
39
+ this._listeners = [];
40
+ }
41
+ dispatchEvent(e) {
42
+ if (e.type === "abort") {
43
+ this.aborted = true;
44
+ this.onabort(e);
45
+ this._listeners.forEach((f) => f(e), this);
46
+ }
47
+ }
48
+ onabort() {
49
+ }
50
+ addEventListener(ev, fn) {
51
+ if (ev === "abort") {
52
+ this._listeners.push(fn);
53
+ }
54
+ }
55
+ removeEventListener(ev, fn) {
56
+ if (ev === "abort") {
57
+ this._listeners = this._listeners.filter((f) => f !== fn);
58
+ }
59
+ }
60
+ };
61
+ var warned = /* @__PURE__ */ new Set();
62
+ var deprecatedOption = (opt, instead) => {
63
+ const code = `LRU_CACHE_OPTION_${opt}`;
64
+ if (shouldWarn(code)) {
65
+ warn(code, `${opt} option`, `options.${instead}`, LRUCache);
66
+ }
67
+ };
68
+ var deprecatedMethod = (method, instead) => {
69
+ const code = `LRU_CACHE_METHOD_${method}`;
70
+ if (shouldWarn(code)) {
71
+ const { prototype } = LRUCache;
72
+ const { get } = Object.getOwnPropertyDescriptor(prototype, method);
73
+ warn(code, `${method} method`, `cache.${instead}()`, get);
74
+ }
75
+ };
76
+ var deprecatedProperty = (field, instead) => {
77
+ const code = `LRU_CACHE_PROPERTY_${field}`;
78
+ if (shouldWarn(code)) {
79
+ const { prototype } = LRUCache;
80
+ const { get } = Object.getOwnPropertyDescriptor(prototype, field);
81
+ warn(code, `${field} property`, `cache.${instead}`, get);
82
+ }
83
+ };
84
+ var emitWarning = (...a) => {
85
+ typeof process === "object" && process && typeof process.emitWarning === "function" ? process.emitWarning(...a) : console.error(...a);
86
+ };
87
+ var shouldWarn = (code) => !warned.has(code);
88
+ var warn = (code, what, instead, fn) => {
89
+ warned.add(code);
90
+ const msg = `The ${what} is deprecated. Please use ${instead} instead.`;
91
+ emitWarning(msg, "DeprecationWarning", code, fn);
92
+ };
93
+ var isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
94
+ var getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
95
+ var ZeroArray = class extends Array {
96
+ constructor(size) {
97
+ super(size);
98
+ this.fill(0);
99
+ }
100
+ };
101
+ var Stack = class {
102
+ constructor(max) {
103
+ if (max === 0) {
104
+ return [];
105
+ }
106
+ const UintArray = getUintArray(max);
107
+ this.heap = new UintArray(max);
108
+ this.length = 0;
109
+ }
110
+ push(n) {
111
+ this.heap[this.length++] = n;
112
+ }
113
+ pop() {
114
+ return this.heap[--this.length];
115
+ }
116
+ };
117
+ var LRUCache = class _LRUCache {
118
+ constructor(options = {}) {
119
+ const {
120
+ max = 0,
121
+ ttl,
122
+ ttlResolution = 1,
123
+ ttlAutopurge,
124
+ updateAgeOnGet,
125
+ updateAgeOnHas,
126
+ allowStale,
127
+ dispose,
128
+ disposeAfter,
129
+ noDisposeOnSet,
130
+ noUpdateTTL,
131
+ maxSize = 0,
132
+ maxEntrySize = 0,
133
+ sizeCalculation,
134
+ fetchMethod,
135
+ fetchContext,
136
+ noDeleteOnFetchRejection,
137
+ noDeleteOnStaleGet,
138
+ allowStaleOnFetchRejection,
139
+ allowStaleOnFetchAbort,
140
+ ignoreFetchAbort
141
+ } = options;
142
+ const { length, maxAge, stale } = options instanceof _LRUCache ? {} : options;
143
+ if (max !== 0 && !isPosInt(max)) {
144
+ throw new TypeError("max option must be a nonnegative integer");
145
+ }
146
+ const UintArray = max ? getUintArray(max) : Array;
147
+ if (!UintArray) {
148
+ throw new Error("invalid max value: " + max);
149
+ }
150
+ this.max = max;
151
+ this.maxSize = maxSize;
152
+ this.maxEntrySize = maxEntrySize || this.maxSize;
153
+ this.sizeCalculation = sizeCalculation || length;
154
+ if (this.sizeCalculation) {
155
+ if (!this.maxSize && !this.maxEntrySize) {
156
+ throw new TypeError(
157
+ "cannot set sizeCalculation without setting maxSize or maxEntrySize"
158
+ );
159
+ }
160
+ if (typeof this.sizeCalculation !== "function") {
161
+ throw new TypeError("sizeCalculation set to non-function");
162
+ }
163
+ }
164
+ this.fetchMethod = fetchMethod || null;
165
+ if (this.fetchMethod && typeof this.fetchMethod !== "function") {
166
+ throw new TypeError(
167
+ "fetchMethod must be a function if specified"
168
+ );
169
+ }
170
+ this.fetchContext = fetchContext;
171
+ if (!this.fetchMethod && fetchContext !== void 0) {
172
+ throw new TypeError(
173
+ "cannot set fetchContext without fetchMethod"
174
+ );
175
+ }
176
+ this.keyMap = /* @__PURE__ */ new Map();
177
+ this.keyList = new Array(max).fill(null);
178
+ this.valList = new Array(max).fill(null);
179
+ this.next = new UintArray(max);
180
+ this.prev = new UintArray(max);
181
+ this.head = 0;
182
+ this.tail = 0;
183
+ this.free = new Stack(max);
184
+ this.initialFill = 1;
185
+ this.size = 0;
186
+ if (typeof dispose === "function") {
187
+ this.dispose = dispose;
188
+ }
189
+ if (typeof disposeAfter === "function") {
190
+ this.disposeAfter = disposeAfter;
191
+ this.disposed = [];
192
+ } else {
193
+ this.disposeAfter = null;
194
+ this.disposed = null;
195
+ }
196
+ this.noDisposeOnSet = !!noDisposeOnSet;
197
+ this.noUpdateTTL = !!noUpdateTTL;
198
+ this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
199
+ this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
200
+ this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
201
+ this.ignoreFetchAbort = !!ignoreFetchAbort;
202
+ if (this.maxEntrySize !== 0) {
203
+ if (this.maxSize !== 0) {
204
+ if (!isPosInt(this.maxSize)) {
205
+ throw new TypeError(
206
+ "maxSize must be a positive integer if specified"
207
+ );
208
+ }
209
+ }
210
+ if (!isPosInt(this.maxEntrySize)) {
211
+ throw new TypeError(
212
+ "maxEntrySize must be a positive integer if specified"
213
+ );
214
+ }
215
+ this.initializeSizeTracking();
216
+ }
217
+ this.allowStale = !!allowStale || !!stale;
218
+ this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
219
+ this.updateAgeOnGet = !!updateAgeOnGet;
220
+ this.updateAgeOnHas = !!updateAgeOnHas;
221
+ this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
222
+ this.ttlAutopurge = !!ttlAutopurge;
223
+ this.ttl = ttl || maxAge || 0;
224
+ if (this.ttl) {
225
+ if (!isPosInt(this.ttl)) {
226
+ throw new TypeError(
227
+ "ttl must be a positive integer if specified"
228
+ );
229
+ }
230
+ this.initializeTTLTracking();
231
+ }
232
+ if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {
233
+ throw new TypeError(
234
+ "At least one of max, maxSize, or ttl is required"
235
+ );
236
+ }
237
+ if (!this.ttlAutopurge && !this.max && !this.maxSize) {
238
+ const code = "LRU_CACHE_UNBOUNDED";
239
+ if (shouldWarn(code)) {
240
+ warned.add(code);
241
+ const msg = "TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";
242
+ emitWarning(msg, "UnboundedCacheWarning", code, _LRUCache);
243
+ }
244
+ }
245
+ if (stale) {
246
+ deprecatedOption("stale", "allowStale");
247
+ }
248
+ if (maxAge) {
249
+ deprecatedOption("maxAge", "ttl");
250
+ }
251
+ if (length) {
252
+ deprecatedOption("length", "sizeCalculation");
253
+ }
254
+ }
255
+ getRemainingTTL(key) {
256
+ return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0;
257
+ }
258
+ initializeTTLTracking() {
259
+ this.ttls = new ZeroArray(this.max);
260
+ this.starts = new ZeroArray(this.max);
261
+ this.setItemTTL = (index, ttl, start = perf.now()) => {
262
+ this.starts[index] = ttl !== 0 ? start : 0;
263
+ this.ttls[index] = ttl;
264
+ if (ttl !== 0 && this.ttlAutopurge) {
265
+ const t = setTimeout(() => {
266
+ if (this.isStale(index)) {
267
+ this.delete(this.keyList[index]);
268
+ }
269
+ }, ttl + 1);
270
+ if (t.unref) {
271
+ t.unref();
272
+ }
273
+ }
274
+ };
275
+ this.updateItemAge = (index) => {
276
+ this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0;
277
+ };
278
+ this.statusTTL = (status, index) => {
279
+ if (status) {
280
+ status.ttl = this.ttls[index];
281
+ status.start = this.starts[index];
282
+ status.now = cachedNow || getNow();
283
+ status.remainingTTL = status.now + status.ttl - status.start;
284
+ }
285
+ };
286
+ let cachedNow = 0;
287
+ const getNow = () => {
288
+ const n = perf.now();
289
+ if (this.ttlResolution > 0) {
290
+ cachedNow = n;
291
+ const t = setTimeout(
292
+ () => cachedNow = 0,
293
+ this.ttlResolution
294
+ );
295
+ if (t.unref) {
296
+ t.unref();
297
+ }
298
+ }
299
+ return n;
300
+ };
301
+ this.getRemainingTTL = (key) => {
302
+ const index = this.keyMap.get(key);
303
+ if (index === void 0) {
304
+ return 0;
305
+ }
306
+ return this.ttls[index] === 0 || this.starts[index] === 0 ? Infinity : this.starts[index] + this.ttls[index] - (cachedNow || getNow());
307
+ };
308
+ this.isStale = (index) => {
309
+ return this.ttls[index] !== 0 && this.starts[index] !== 0 && (cachedNow || getNow()) - this.starts[index] > this.ttls[index];
310
+ };
311
+ }
312
+ updateItemAge(_index) {
313
+ }
314
+ statusTTL(_status, _index) {
315
+ }
316
+ setItemTTL(_index, _ttl, _start) {
317
+ }
318
+ isStale(_index) {
319
+ return false;
320
+ }
321
+ initializeSizeTracking() {
322
+ this.calculatedSize = 0;
323
+ this.sizes = new ZeroArray(this.max);
324
+ this.removeItemSize = (index) => {
325
+ this.calculatedSize -= this.sizes[index];
326
+ this.sizes[index] = 0;
327
+ };
328
+ this.requireSize = (k, v, size, sizeCalculation) => {
329
+ if (this.isBackgroundFetch(v)) {
330
+ return 0;
331
+ }
332
+ if (!isPosInt(size)) {
333
+ if (sizeCalculation) {
334
+ if (typeof sizeCalculation !== "function") {
335
+ throw new TypeError("sizeCalculation must be a function");
336
+ }
337
+ size = sizeCalculation(v, k);
338
+ if (!isPosInt(size)) {
339
+ throw new TypeError(
340
+ "sizeCalculation return invalid (expect positive integer)"
341
+ );
342
+ }
343
+ } else {
344
+ throw new TypeError(
345
+ "invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set."
346
+ );
347
+ }
348
+ }
349
+ return size;
350
+ };
351
+ this.addItemSize = (index, size, status) => {
352
+ this.sizes[index] = size;
353
+ if (this.maxSize) {
354
+ const maxSize = this.maxSize - this.sizes[index];
355
+ while (this.calculatedSize > maxSize) {
356
+ this.evict(true);
357
+ }
358
+ }
359
+ this.calculatedSize += this.sizes[index];
360
+ if (status) {
361
+ status.entrySize = size;
362
+ status.totalCalculatedSize = this.calculatedSize;
363
+ }
364
+ };
365
+ }
366
+ removeItemSize(_index) {
367
+ }
368
+ addItemSize(_index, _size) {
369
+ }
370
+ requireSize(_k, _v, size, sizeCalculation) {
371
+ if (size || sizeCalculation) {
372
+ throw new TypeError(
373
+ "cannot set size without setting maxSize or maxEntrySize on cache"
374
+ );
375
+ }
376
+ }
377
+ *indexes({ allowStale = this.allowStale } = {}) {
378
+ if (this.size) {
379
+ for (let i = this.tail; true; ) {
380
+ if (!this.isValidIndex(i)) {
381
+ break;
382
+ }
383
+ if (allowStale || !this.isStale(i)) {
384
+ yield i;
385
+ }
386
+ if (i === this.head) {
387
+ break;
388
+ } else {
389
+ i = this.prev[i];
390
+ }
391
+ }
392
+ }
393
+ }
394
+ *rindexes({ allowStale = this.allowStale } = {}) {
395
+ if (this.size) {
396
+ for (let i = this.head; true; ) {
397
+ if (!this.isValidIndex(i)) {
398
+ break;
399
+ }
400
+ if (allowStale || !this.isStale(i)) {
401
+ yield i;
402
+ }
403
+ if (i === this.tail) {
404
+ break;
405
+ } else {
406
+ i = this.next[i];
407
+ }
408
+ }
409
+ }
410
+ }
411
+ isValidIndex(index) {
412
+ return index !== void 0 && this.keyMap.get(this.keyList[index]) === index;
413
+ }
414
+ *entries() {
415
+ for (const i of this.indexes()) {
416
+ if (this.valList[i] !== void 0 && this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
417
+ yield [this.keyList[i], this.valList[i]];
418
+ }
419
+ }
420
+ }
421
+ *rentries() {
422
+ for (const i of this.rindexes()) {
423
+ if (this.valList[i] !== void 0 && this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
424
+ yield [this.keyList[i], this.valList[i]];
425
+ }
426
+ }
427
+ }
428
+ *keys() {
429
+ for (const i of this.indexes()) {
430
+ if (this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
431
+ yield this.keyList[i];
432
+ }
433
+ }
434
+ }
435
+ *rkeys() {
436
+ for (const i of this.rindexes()) {
437
+ if (this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
438
+ yield this.keyList[i];
439
+ }
440
+ }
441
+ }
442
+ *values() {
443
+ for (const i of this.indexes()) {
444
+ if (this.valList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
445
+ yield this.valList[i];
446
+ }
447
+ }
448
+ }
449
+ *rvalues() {
450
+ for (const i of this.rindexes()) {
451
+ if (this.valList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
452
+ yield this.valList[i];
453
+ }
454
+ }
455
+ }
456
+ [Symbol.iterator]() {
457
+ return this.entries();
458
+ }
459
+ find(fn, getOptions) {
460
+ for (const i of this.indexes()) {
461
+ const v = this.valList[i];
462
+ const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
463
+ if (value === void 0) continue;
464
+ if (fn(value, this.keyList[i], this)) {
465
+ return this.get(this.keyList[i], getOptions);
466
+ }
467
+ }
468
+ }
469
+ forEach(fn, thisp = this) {
470
+ for (const i of this.indexes()) {
471
+ const v = this.valList[i];
472
+ const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
473
+ if (value === void 0) continue;
474
+ fn.call(thisp, value, this.keyList[i], this);
475
+ }
476
+ }
477
+ rforEach(fn, thisp = this) {
478
+ for (const i of this.rindexes()) {
479
+ const v = this.valList[i];
480
+ const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
481
+ if (value === void 0) continue;
482
+ fn.call(thisp, value, this.keyList[i], this);
483
+ }
484
+ }
485
+ get prune() {
486
+ deprecatedMethod("prune", "purgeStale");
487
+ return this.purgeStale;
488
+ }
489
+ purgeStale() {
490
+ let deleted = false;
491
+ for (const i of this.rindexes({ allowStale: true })) {
492
+ if (this.isStale(i)) {
493
+ this.delete(this.keyList[i]);
494
+ deleted = true;
495
+ }
496
+ }
497
+ return deleted;
498
+ }
499
+ dump() {
500
+ const arr = [];
501
+ for (const i of this.indexes({ allowStale: true })) {
502
+ const key = this.keyList[i];
503
+ const v = this.valList[i];
504
+ const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
505
+ if (value === void 0) continue;
506
+ const entry = { value };
507
+ if (this.ttls) {
508
+ entry.ttl = this.ttls[i];
509
+ const age = perf.now() - this.starts[i];
510
+ entry.start = Math.floor(Date.now() - age);
511
+ }
512
+ if (this.sizes) {
513
+ entry.size = this.sizes[i];
514
+ }
515
+ arr.unshift([key, entry]);
516
+ }
517
+ return arr;
518
+ }
519
+ load(arr) {
520
+ this.clear();
521
+ for (const [key, entry] of arr) {
522
+ if (entry.start) {
523
+ const age = Date.now() - entry.start;
524
+ entry.start = perf.now() - age;
525
+ }
526
+ this.set(key, entry.value, entry);
527
+ }
528
+ }
529
+ dispose(_v, _k, _reason) {
530
+ }
531
+ set(k, v, {
532
+ ttl = this.ttl,
533
+ start,
534
+ noDisposeOnSet = this.noDisposeOnSet,
535
+ size = 0,
536
+ sizeCalculation = this.sizeCalculation,
537
+ noUpdateTTL = this.noUpdateTTL,
538
+ status
539
+ } = {}) {
540
+ size = this.requireSize(k, v, size, sizeCalculation);
541
+ if (this.maxEntrySize && size > this.maxEntrySize) {
542
+ if (status) {
543
+ status.set = "miss";
544
+ status.maxEntrySizeExceeded = true;
545
+ }
546
+ this.delete(k);
547
+ return this;
548
+ }
549
+ let index = this.size === 0 ? void 0 : this.keyMap.get(k);
550
+ if (index === void 0) {
551
+ index = this.newIndex();
552
+ this.keyList[index] = k;
553
+ this.valList[index] = v;
554
+ this.keyMap.set(k, index);
555
+ this.next[this.tail] = index;
556
+ this.prev[index] = this.tail;
557
+ this.tail = index;
558
+ this.size++;
559
+ this.addItemSize(index, size, status);
560
+ if (status) {
561
+ status.set = "add";
562
+ }
563
+ noUpdateTTL = false;
564
+ } else {
565
+ this.moveToTail(index);
566
+ const oldVal = this.valList[index];
567
+ if (v !== oldVal) {
568
+ if (this.isBackgroundFetch(oldVal)) {
569
+ oldVal.__abortController.abort(new Error("replaced"));
570
+ } else {
571
+ if (!noDisposeOnSet) {
572
+ this.dispose(oldVal, k, "set");
573
+ if (this.disposeAfter) {
574
+ this.disposed.push([oldVal, k, "set"]);
575
+ }
576
+ }
577
+ }
578
+ this.removeItemSize(index);
579
+ this.valList[index] = v;
580
+ this.addItemSize(index, size, status);
581
+ if (status) {
582
+ status.set = "replace";
583
+ const oldValue = oldVal && this.isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
584
+ if (oldValue !== void 0) status.oldValue = oldValue;
585
+ }
586
+ } else if (status) {
587
+ status.set = "update";
588
+ }
589
+ }
590
+ if (ttl !== 0 && this.ttl === 0 && !this.ttls) {
591
+ this.initializeTTLTracking();
592
+ }
593
+ if (!noUpdateTTL) {
594
+ this.setItemTTL(index, ttl, start);
595
+ }
596
+ this.statusTTL(status, index);
597
+ if (this.disposeAfter) {
598
+ while (this.disposed.length) {
599
+ this.disposeAfter(...this.disposed.shift());
600
+ }
601
+ }
602
+ return this;
603
+ }
604
+ newIndex() {
605
+ if (this.size === 0) {
606
+ return this.tail;
607
+ }
608
+ if (this.size === this.max && this.max !== 0) {
609
+ return this.evict(false);
610
+ }
611
+ if (this.free.length !== 0) {
612
+ return this.free.pop();
613
+ }
614
+ return this.initialFill++;
615
+ }
616
+ pop() {
617
+ if (this.size) {
618
+ const val = this.valList[this.head];
619
+ this.evict(true);
620
+ return val;
621
+ }
622
+ }
623
+ evict(free) {
624
+ const head = this.head;
625
+ const k = this.keyList[head];
626
+ const v = this.valList[head];
627
+ if (this.isBackgroundFetch(v)) {
628
+ v.__abortController.abort(new Error("evicted"));
629
+ } else {
630
+ this.dispose(v, k, "evict");
631
+ if (this.disposeAfter) {
632
+ this.disposed.push([v, k, "evict"]);
633
+ }
634
+ }
635
+ this.removeItemSize(head);
636
+ if (free) {
637
+ this.keyList[head] = null;
638
+ this.valList[head] = null;
639
+ this.free.push(head);
640
+ }
641
+ this.head = this.next[head];
642
+ this.keyMap.delete(k);
643
+ this.size--;
644
+ return head;
645
+ }
646
+ has(k, { updateAgeOnHas = this.updateAgeOnHas, status } = {}) {
647
+ const index = this.keyMap.get(k);
648
+ if (index !== void 0) {
649
+ if (!this.isStale(index)) {
650
+ if (updateAgeOnHas) {
651
+ this.updateItemAge(index);
652
+ }
653
+ if (status) status.has = "hit";
654
+ this.statusTTL(status, index);
655
+ return true;
656
+ } else if (status) {
657
+ status.has = "stale";
658
+ this.statusTTL(status, index);
659
+ }
660
+ } else if (status) {
661
+ status.has = "miss";
662
+ }
663
+ return false;
664
+ }
665
+ // like get(), but without any LRU updating or TTL expiration
666
+ peek(k, { allowStale = this.allowStale } = {}) {
667
+ const index = this.keyMap.get(k);
668
+ if (index !== void 0 && (allowStale || !this.isStale(index))) {
669
+ const v = this.valList[index];
670
+ return this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
671
+ }
672
+ }
673
+ backgroundFetch(k, index, options, context) {
674
+ const v = index === void 0 ? void 0 : this.valList[index];
675
+ if (this.isBackgroundFetch(v)) {
676
+ return v;
677
+ }
678
+ const ac = new AC();
679
+ if (options.signal) {
680
+ options.signal.addEventListener(
681
+ "abort",
682
+ () => ac.abort(options.signal.reason)
683
+ );
684
+ }
685
+ const fetchOpts = {
686
+ signal: ac.signal,
687
+ options,
688
+ context
689
+ };
690
+ const cb = (v2, updateCache = false) => {
691
+ const { aborted } = ac.signal;
692
+ const ignoreAbort = options.ignoreFetchAbort && v2 !== void 0;
693
+ if (options.status) {
694
+ if (aborted && !updateCache) {
695
+ options.status.fetchAborted = true;
696
+ options.status.fetchError = ac.signal.reason;
697
+ if (ignoreAbort) options.status.fetchAbortIgnored = true;
698
+ } else {
699
+ options.status.fetchResolved = true;
700
+ }
701
+ }
702
+ if (aborted && !ignoreAbort && !updateCache) {
703
+ return fetchFail(ac.signal.reason);
704
+ }
705
+ if (this.valList[index] === p) {
706
+ if (v2 === void 0) {
707
+ if (p.__staleWhileFetching) {
708
+ this.valList[index] = p.__staleWhileFetching;
709
+ } else {
710
+ this.delete(k);
711
+ }
712
+ } else {
713
+ if (options.status) options.status.fetchUpdated = true;
714
+ this.set(k, v2, fetchOpts.options);
715
+ }
716
+ }
717
+ return v2;
718
+ };
719
+ const eb = (er) => {
720
+ if (options.status) {
721
+ options.status.fetchRejected = true;
722
+ options.status.fetchError = er;
723
+ }
724
+ return fetchFail(er);
725
+ };
726
+ const fetchFail = (er) => {
727
+ const { aborted } = ac.signal;
728
+ const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
729
+ const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
730
+ const noDelete = allowStale || options.noDeleteOnFetchRejection;
731
+ if (this.valList[index] === p) {
732
+ const del = !noDelete || p.__staleWhileFetching === void 0;
733
+ if (del) {
734
+ this.delete(k);
735
+ } else if (!allowStaleAborted) {
736
+ this.valList[index] = p.__staleWhileFetching;
737
+ }
738
+ }
739
+ if (allowStale) {
740
+ if (options.status && p.__staleWhileFetching !== void 0) {
741
+ options.status.returnedStale = true;
742
+ }
743
+ return p.__staleWhileFetching;
744
+ } else if (p.__returned === p) {
745
+ throw er;
746
+ }
747
+ };
748
+ const pcall = (res, rej) => {
749
+ this.fetchMethod(k, v, fetchOpts).then((v2) => res(v2), rej);
750
+ ac.signal.addEventListener("abort", () => {
751
+ if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
752
+ res();
753
+ if (options.allowStaleOnFetchAbort) {
754
+ res = (v2) => cb(v2, true);
755
+ }
756
+ }
757
+ });
758
+ };
759
+ if (options.status) options.status.fetchDispatched = true;
760
+ const p = new Promise(pcall).then(cb, eb);
761
+ p.__abortController = ac;
762
+ p.__staleWhileFetching = v;
763
+ p.__returned = null;
764
+ if (index === void 0) {
765
+ this.set(k, p, { ...fetchOpts.options, status: void 0 });
766
+ index = this.keyMap.get(k);
767
+ } else {
768
+ this.valList[index] = p;
769
+ }
770
+ return p;
771
+ }
772
+ isBackgroundFetch(p) {
773
+ return p && typeof p === "object" && typeof p.then === "function" && Object.prototype.hasOwnProperty.call(
774
+ p,
775
+ "__staleWhileFetching"
776
+ ) && Object.prototype.hasOwnProperty.call(p, "__returned") && (p.__returned === p || p.__returned === null);
777
+ }
778
+ // this takes the union of get() and set() opts, because it does both
779
+ async fetch(k, {
780
+ // get options
781
+ allowStale = this.allowStale,
782
+ updateAgeOnGet = this.updateAgeOnGet,
783
+ noDeleteOnStaleGet = this.noDeleteOnStaleGet,
784
+ // set options
785
+ ttl = this.ttl,
786
+ noDisposeOnSet = this.noDisposeOnSet,
787
+ size = 0,
788
+ sizeCalculation = this.sizeCalculation,
789
+ noUpdateTTL = this.noUpdateTTL,
790
+ // fetch exclusive options
791
+ noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
792
+ allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
793
+ ignoreFetchAbort = this.ignoreFetchAbort,
794
+ allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
795
+ fetchContext = this.fetchContext,
796
+ forceRefresh = false,
797
+ status,
798
+ signal
799
+ } = {}) {
800
+ if (!this.fetchMethod) {
801
+ if (status) status.fetch = "get";
802
+ return this.get(k, {
803
+ allowStale,
804
+ updateAgeOnGet,
805
+ noDeleteOnStaleGet,
806
+ status
807
+ });
808
+ }
809
+ const options = {
810
+ allowStale,
811
+ updateAgeOnGet,
812
+ noDeleteOnStaleGet,
813
+ ttl,
814
+ noDisposeOnSet,
815
+ size,
816
+ sizeCalculation,
817
+ noUpdateTTL,
818
+ noDeleteOnFetchRejection,
819
+ allowStaleOnFetchRejection,
820
+ allowStaleOnFetchAbort,
821
+ ignoreFetchAbort,
822
+ status,
823
+ signal
824
+ };
825
+ let index = this.keyMap.get(k);
826
+ if (index === void 0) {
827
+ if (status) status.fetch = "miss";
828
+ const p = this.backgroundFetch(k, index, options, fetchContext);
829
+ return p.__returned = p;
830
+ } else {
831
+ const v = this.valList[index];
832
+ if (this.isBackgroundFetch(v)) {
833
+ const stale = allowStale && v.__staleWhileFetching !== void 0;
834
+ if (status) {
835
+ status.fetch = "inflight";
836
+ if (stale) status.returnedStale = true;
837
+ }
838
+ return stale ? v.__staleWhileFetching : v.__returned = v;
839
+ }
840
+ const isStale = this.isStale(index);
841
+ if (!forceRefresh && !isStale) {
842
+ if (status) status.fetch = "hit";
843
+ this.moveToTail(index);
844
+ if (updateAgeOnGet) {
845
+ this.updateItemAge(index);
846
+ }
847
+ this.statusTTL(status, index);
848
+ return v;
849
+ }
850
+ const p = this.backgroundFetch(k, index, options, fetchContext);
851
+ const hasStale = p.__staleWhileFetching !== void 0;
852
+ const staleVal = hasStale && allowStale;
853
+ if (status) {
854
+ status.fetch = hasStale && isStale ? "stale" : "refresh";
855
+ if (staleVal && isStale) status.returnedStale = true;
856
+ }
857
+ return staleVal ? p.__staleWhileFetching : p.__returned = p;
858
+ }
859
+ }
860
+ get(k, {
861
+ allowStale = this.allowStale,
862
+ updateAgeOnGet = this.updateAgeOnGet,
863
+ noDeleteOnStaleGet = this.noDeleteOnStaleGet,
864
+ status
865
+ } = {}) {
866
+ const index = this.keyMap.get(k);
867
+ if (index !== void 0) {
868
+ const value = this.valList[index];
869
+ const fetching = this.isBackgroundFetch(value);
870
+ this.statusTTL(status, index);
871
+ if (this.isStale(index)) {
872
+ if (status) status.get = "stale";
873
+ if (!fetching) {
874
+ if (!noDeleteOnStaleGet) {
875
+ this.delete(k);
876
+ }
877
+ if (status) status.returnedStale = allowStale;
878
+ return allowStale ? value : void 0;
879
+ } else {
880
+ if (status) {
881
+ status.returnedStale = allowStale && value.__staleWhileFetching !== void 0;
882
+ }
883
+ return allowStale ? value.__staleWhileFetching : void 0;
884
+ }
885
+ } else {
886
+ if (status) status.get = "hit";
887
+ if (fetching) {
888
+ return value.__staleWhileFetching;
889
+ }
890
+ this.moveToTail(index);
891
+ if (updateAgeOnGet) {
892
+ this.updateItemAge(index);
893
+ }
894
+ return value;
895
+ }
896
+ } else if (status) {
897
+ status.get = "miss";
898
+ }
899
+ }
900
+ connect(p, n) {
901
+ this.prev[n] = p;
902
+ this.next[p] = n;
903
+ }
904
+ moveToTail(index) {
905
+ if (index !== this.tail) {
906
+ if (index === this.head) {
907
+ this.head = this.next[index];
908
+ } else {
909
+ this.connect(this.prev[index], this.next[index]);
910
+ }
911
+ this.connect(this.tail, index);
912
+ this.tail = index;
913
+ }
914
+ }
915
+ get del() {
916
+ deprecatedMethod("del", "delete");
917
+ return this.delete;
918
+ }
919
+ delete(k) {
920
+ let deleted = false;
921
+ if (this.size !== 0) {
922
+ const index = this.keyMap.get(k);
923
+ if (index !== void 0) {
924
+ deleted = true;
925
+ if (this.size === 1) {
926
+ this.clear();
927
+ } else {
928
+ this.removeItemSize(index);
929
+ const v = this.valList[index];
930
+ if (this.isBackgroundFetch(v)) {
931
+ v.__abortController.abort(new Error("deleted"));
932
+ } else {
933
+ this.dispose(v, k, "delete");
934
+ if (this.disposeAfter) {
935
+ this.disposed.push([v, k, "delete"]);
936
+ }
937
+ }
938
+ this.keyMap.delete(k);
939
+ this.keyList[index] = null;
940
+ this.valList[index] = null;
941
+ if (index === this.tail) {
942
+ this.tail = this.prev[index];
943
+ } else if (index === this.head) {
944
+ this.head = this.next[index];
945
+ } else {
946
+ this.next[this.prev[index]] = this.next[index];
947
+ this.prev[this.next[index]] = this.prev[index];
948
+ }
949
+ this.size--;
950
+ this.free.push(index);
951
+ }
952
+ }
953
+ }
954
+ if (this.disposed) {
955
+ while (this.disposed.length) {
956
+ this.disposeAfter(...this.disposed.shift());
957
+ }
958
+ }
959
+ return deleted;
960
+ }
961
+ clear() {
962
+ for (const index of this.rindexes({ allowStale: true })) {
963
+ const v = this.valList[index];
964
+ if (this.isBackgroundFetch(v)) {
965
+ v.__abortController.abort(new Error("deleted"));
966
+ } else {
967
+ const k = this.keyList[index];
968
+ this.dispose(v, k, "delete");
969
+ if (this.disposeAfter) {
970
+ this.disposed.push([v, k, "delete"]);
971
+ }
972
+ }
973
+ }
974
+ this.keyMap.clear();
975
+ this.valList.fill(null);
976
+ this.keyList.fill(null);
977
+ if (this.ttls) {
978
+ this.ttls.fill(0);
979
+ this.starts.fill(0);
980
+ }
981
+ if (this.sizes) {
982
+ this.sizes.fill(0);
983
+ }
984
+ this.head = 0;
985
+ this.tail = 0;
986
+ this.initialFill = 1;
987
+ this.free.length = 0;
988
+ this.calculatedSize = 0;
989
+ this.size = 0;
990
+ if (this.disposed) {
991
+ while (this.disposed.length) {
992
+ this.disposeAfter(...this.disposed.shift());
993
+ }
994
+ }
995
+ }
996
+ get reset() {
997
+ deprecatedMethod("reset", "clear");
998
+ return this.clear;
999
+ }
1000
+ get length() {
1001
+ deprecatedProperty("length", "size");
1002
+ return this.size;
1003
+ }
1004
+ static get AbortController() {
1005
+ return AC;
1006
+ }
1007
+ static get AbortSignal() {
1008
+ return AS;
1009
+ }
1010
+ };
1011
+ var lru_cache_default = LRUCache;
1012
+
1013
+ // ../../node_modules/.pnpm/proxy-agent@8.0.2/node_modules/proxy-agent/dist/index.js
1014
+ var import_debug = __toESM(require_src(), 1);
1015
+
1016
+ // ../../node_modules/.pnpm/proxy-from-env@2.1.0/node_modules/proxy-from-env/index.js
1017
+ var DEFAULT_PORTS = {
1018
+ ftp: 21,
1019
+ gopher: 70,
1020
+ http: 80,
1021
+ https: 443,
1022
+ ws: 80,
1023
+ wss: 443
1024
+ };
1025
+ function parseUrl(urlString) {
1026
+ try {
1027
+ return new URL(urlString);
1028
+ } catch {
1029
+ return null;
1030
+ }
1031
+ }
1032
+ function getProxyForUrl(url) {
1033
+ var parsedUrl = (typeof url === "string" ? parseUrl(url) : url) || {};
1034
+ var proto = parsedUrl.protocol;
1035
+ var hostname = parsedUrl.host;
1036
+ var port = parsedUrl.port;
1037
+ if (typeof hostname !== "string" || !hostname || typeof proto !== "string") {
1038
+ return "";
1039
+ }
1040
+ proto = proto.split(":", 1)[0];
1041
+ hostname = hostname.replace(/:\d*$/, "");
1042
+ port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
1043
+ if (!shouldProxy(hostname, port)) {
1044
+ return "";
1045
+ }
1046
+ var proxy = getEnv(proto + "_proxy") || getEnv("all_proxy");
1047
+ if (proxy && proxy.indexOf("://") === -1) {
1048
+ proxy = proto + "://" + proxy;
1049
+ }
1050
+ return proxy;
1051
+ }
1052
+ function shouldProxy(hostname, port) {
1053
+ var NO_PROXY = getEnv("no_proxy").toLowerCase();
1054
+ if (!NO_PROXY) {
1055
+ return true;
1056
+ }
1057
+ if (NO_PROXY === "*") {
1058
+ return false;
1059
+ }
1060
+ return NO_PROXY.split(/[,\s]/).every(function(proxy) {
1061
+ if (!proxy) {
1062
+ return true;
1063
+ }
1064
+ var parsedProxy = proxy.match(/^(.+):(\d+)$/);
1065
+ var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
1066
+ var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
1067
+ if (parsedProxyPort && parsedProxyPort !== port) {
1068
+ return true;
1069
+ }
1070
+ if (!/^[.*]/.test(parsedProxyHostname)) {
1071
+ return hostname !== parsedProxyHostname;
1072
+ }
1073
+ if (parsedProxyHostname.charAt(0) === "*") {
1074
+ parsedProxyHostname = parsedProxyHostname.slice(1);
1075
+ }
1076
+ return !hostname.endsWith(parsedProxyHostname);
1077
+ });
1078
+ }
1079
+ function getEnv(key) {
1080
+ return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
1081
+ }
1082
+
1083
+ // ../../node_modules/.pnpm/proxy-agent@8.0.2/node_modules/proxy-agent/dist/index.js
1084
+ var debug = (0, import_debug.default)("proxy-agent");
1085
+ var wellKnownAgents = {
1086
+ http: async () => (await import("./dist-DL5M2SDJ.js")).HttpProxyAgent,
1087
+ https: async () => (await import("./dist-UT6HKKCD.js")).HttpsProxyAgent,
1088
+ socks: async () => (await import("./dist-OMWR53J4.js")).SocksProxyAgent,
1089
+ pac: async () => (await import("./dist-3ZE2HBJQ.js")).PacProxyAgent
1090
+ };
1091
+ var proxies = {
1092
+ http: [wellKnownAgents.http, wellKnownAgents.https],
1093
+ https: [wellKnownAgents.http, wellKnownAgents.https],
1094
+ socks: [wellKnownAgents.socks, wellKnownAgents.socks],
1095
+ socks4: [wellKnownAgents.socks, wellKnownAgents.socks],
1096
+ socks4a: [wellKnownAgents.socks, wellKnownAgents.socks],
1097
+ socks5: [wellKnownAgents.socks, wellKnownAgents.socks],
1098
+ socks5h: [wellKnownAgents.socks, wellKnownAgents.socks],
1099
+ "pac+data": [wellKnownAgents.pac, wellKnownAgents.pac],
1100
+ "pac+file": [wellKnownAgents.pac, wellKnownAgents.pac],
1101
+ "pac+ftp": [wellKnownAgents.pac, wellKnownAgents.pac],
1102
+ "pac+http": [wellKnownAgents.pac, wellKnownAgents.pac],
1103
+ "pac+https": [wellKnownAgents.pac, wellKnownAgents.pac]
1104
+ };
1105
+ function isValidProtocol(v) {
1106
+ return Object.keys(proxies).includes(v);
1107
+ }
1108
+ var ProxyAgent = class extends Agent {
1109
+ constructor(opts) {
1110
+ super(opts);
1111
+ this.cache = new lru_cache_default({
1112
+ max: 20,
1113
+ dispose: (agent) => agent.destroy()
1114
+ });
1115
+ debug("Creating new ProxyAgent instance: %o", opts);
1116
+ this.connectOpts = opts;
1117
+ this.httpAgent = opts?.httpAgent || new http.Agent(opts);
1118
+ this.httpsAgent = opts?.httpsAgent || new https.Agent(opts);
1119
+ this.getProxyForUrl = opts?.getProxyForUrl || getProxyForUrl;
1120
+ }
1121
+ async connect(req, opts) {
1122
+ const { secureEndpoint } = opts;
1123
+ const isWebSocket = req.getHeader("upgrade") === "websocket";
1124
+ const protocol = secureEndpoint ? isWebSocket ? "wss:" : "https:" : isWebSocket ? "ws:" : "http:";
1125
+ const host = req.getHeader("host");
1126
+ const url = new URL2(req.path, `${protocol}//${host}`).href;
1127
+ const proxy = await this.getProxyForUrl(url, req);
1128
+ if (!proxy) {
1129
+ debug("Proxy not enabled for URL: %o", url);
1130
+ return secureEndpoint ? this.httpsAgent : this.httpAgent;
1131
+ }
1132
+ debug("Request URL: %o", url);
1133
+ debug("Proxy URL: %o", proxy);
1134
+ const cacheKey = `${protocol}+${proxy}`;
1135
+ let agent = this.cache.get(cacheKey);
1136
+ if (!agent) {
1137
+ const proxyUrl = new URL2(proxy);
1138
+ const proxyProto = proxyUrl.protocol.replace(":", "");
1139
+ if (!isValidProtocol(proxyProto)) {
1140
+ throw new Error(`Unsupported protocol for proxy URL: ${proxy}`);
1141
+ }
1142
+ const ctor = await proxies[proxyProto][secureEndpoint || isWebSocket ? 1 : 0]();
1143
+ agent = new ctor(proxy, this.connectOpts);
1144
+ this.cache.set(cacheKey, agent);
1145
+ } else {
1146
+ debug("Cache hit for proxy URL: %o", proxy);
1147
+ }
1148
+ return agent;
1149
+ }
1150
+ destroy() {
1151
+ for (const agent of this.cache.values()) {
1152
+ agent.destroy();
1153
+ }
1154
+ super.destroy();
1155
+ }
1156
+ };
1157
+ export {
1158
+ ProxyAgent,
1159
+ proxies
1160
+ };
1161
+ //# sourceMappingURL=dist-575AQY5L.js.map