@tonyclaw/agent-inspector 4.0.8 → 4.0.10

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 (119) hide show
  1. package/.output/backend/nitro.json +1 -1
  2. package/.output/cli.js +915 -25970
  3. package/.output/server/_chunks/ssr-renderer.mjs +1 -38
  4. package/.output/server/_libs/@opentelemetry/semantic-conventions+[...].mjs +1 -2658
  5. package/.output/server/_libs/agent-base.mjs +2 -234
  6. package/.output/server/_libs/ajv-formats.mjs +1 -330
  7. package/.output/server/_libs/ajv.mjs +8 -6080
  8. package/.output/server/_libs/anthropic-ai__sdk.mjs +19 -6021
  9. package/.output/server/_libs/atomically.mjs +1 -155
  10. package/.output/server/_libs/base64-js.mjs +1 -102
  11. package/.output/server/_libs/bignumber.js.mjs +1 -1353
  12. package/.output/server/_libs/buffer-equal-constant-time.mjs +1 -38
  13. package/.output/server/_libs/conf.mjs +1 -635
  14. package/.output/server/_libs/cookie-es.mjs +1 -44
  15. package/.output/server/_libs/core-util-is.mjs +1 -75
  16. package/.output/server/_libs/data-uri-to-buffer.mjs +1 -39
  17. package/.output/server/_libs/debounce-fn.mjs +1 -69
  18. package/.output/server/_libs/debug.mjs +5 -547
  19. package/.output/server/_libs/dot-prop.mjs +1 -265
  20. package/.output/server/_libs/ecdsa-sig-formatter.mjs +1 -162
  21. package/.output/server/_libs/env-paths.mjs +1 -57
  22. package/.output/server/_libs/extend.mjs +1 -94
  23. package/.output/server/_libs/fast-deep-equal.mjs +1 -38
  24. package/.output/server/_libs/fast-uri.mjs +1 -812
  25. package/.output/server/_libs/fetch-blob.mjs +1 -287
  26. package/.output/server/_libs/formdata-polyfill.mjs +9 -86
  27. package/.output/server/_libs/gaxios.mjs +5 -926
  28. package/.output/server/_libs/gcp-metadata.mjs +1 -322
  29. package/.output/server/_libs/google-auth-library.mjs +16 -6339
  30. package/.output/server/_libs/google-logging-utils.mjs +1 -385
  31. package/.output/server/_libs/google__genai.mjs +13 -18034
  32. package/.output/server/_libs/h3-v2.mjs +2 -287
  33. package/.output/server/_libs/h3.mjs +2 -408
  34. package/.output/server/_libs/has-flag.mjs +1 -16
  35. package/.output/server/_libs/https-proxy-agent.mjs +7 -280
  36. package/.output/server/_libs/immediate.mjs +1 -74
  37. package/.output/server/_libs/inherits.mjs +1 -50
  38. package/.output/server/_libs/isarray.mjs +1 -14
  39. package/.output/server/_libs/isbot.mjs +1 -20
  40. package/.output/server/_libs/json-bigint.mjs +8 -413
  41. package/.output/server/_libs/json-schema-traverse.mjs +1 -91
  42. package/.output/server/_libs/jszip.mjs +2 -3051
  43. package/.output/server/_libs/jwa.mjs +3 -233
  44. package/.output/server/_libs/jws.mjs +1 -298
  45. package/.output/server/_libs/lie.mjs +1 -273
  46. package/.output/server/_libs/mariozechner__pi-agent-core.mjs +1 -824
  47. package/.output/server/_libs/mariozechner__pi-ai.mjs +34 -22887
  48. package/.output/server/_libs/mimic-function.mjs +2 -47
  49. package/.output/server/_libs/mistralai__mistralai.mjs +7 -32045
  50. package/.output/server/_libs/modelcontextprotocol__core.mjs +1 -1121
  51. package/.output/server/_libs/modelcontextprotocol__server.mjs +13 -13205
  52. package/.output/server/_libs/ms.mjs +1 -120
  53. package/.output/server/_libs/node-domexception.mjs +1 -17
  54. package/.output/server/_libs/node-fetch.mjs +4 -1578
  55. package/.output/server/_libs/ohash.mjs +1 -1
  56. package/.output/server/_libs/openai.mjs +23 -6766
  57. package/.output/server/_libs/opentelemetry__api.mjs +1 -1678
  58. package/.output/server/_libs/p-retry.mjs +1 -87
  59. package/.output/server/_libs/pako.mjs +1 -4223
  60. package/.output/server/_libs/partial-json.mjs +2 -244
  61. package/.output/server/_libs/process-nextick-args.mjs +1 -48
  62. package/.output/server/_libs/react-dom.mjs +62 -10778
  63. package/.output/server/_libs/react.mjs +1 -519
  64. package/.output/server/_libs/readable-stream.mjs +1 -1518
  65. package/.output/server/_libs/retry.mjs +1 -236
  66. package/.output/server/_libs/rou3.mjs +1 -14
  67. package/.output/server/_libs/safe-buffer.mjs +1 -126
  68. package/.output/server/_libs/semver.mjs +1 -1938
  69. package/.output/server/_libs/seroval-plugins.mjs +1 -58
  70. package/.output/server/_libs/seroval.mjs +3 -1775
  71. package/.output/server/_libs/setimmediate.mjs +1 -152
  72. package/.output/server/_libs/srvx.mjs +4 -1390
  73. package/.output/server/_libs/stubborn-fs.mjs +1 -91
  74. package/.output/server/_libs/stubborn-utils.mjs +1 -66
  75. package/.output/server/_libs/supports-color.mjs +1 -108
  76. package/.output/server/_libs/tanstack__history.mjs +1 -230
  77. package/.output/server/_libs/tanstack__react-router.mjs +1 -848
  78. package/.output/server/_libs/tanstack__react-store.mjs +1 -1
  79. package/.output/server/_libs/tanstack__router-core.mjs +1 -4839
  80. package/.output/server/_libs/typebox.mjs +3 -6596
  81. package/.output/server/_libs/ufo.mjs +1 -54
  82. package/.output/server/_libs/uint8array-extras.mjs +1 -69
  83. package/.output/server/_libs/util-deprecate.mjs +1 -12
  84. package/.output/server/_libs/web-streams-polyfill.mjs +1 -4282
  85. package/.output/server/_libs/when-exit.mjs +1 -53
  86. package/.output/server/_libs/ws.mjs +7 -3715
  87. package/.output/server/_libs/zod-to-json-schema.mjs +5 -1207
  88. package/.output/server/_libs/zod.mjs +59 -9958
  89. package/.output/server/_ssr/empty-plugin-adapters-C3Q1xu4u.mjs +1 -0
  90. package/.output/server/_ssr/index.mjs +2 -1512
  91. package/.output/server/_ssr/publicBasePathContext--TAQS2_5.mjs +1 -0
  92. package/.output/server/_ssr/router-B3jax4sN.mjs +341 -0
  93. package/.output/server/_ssr/start-PDVGOqUN.mjs +1 -0
  94. package/.output/server/_tanstack-start-manifest_v-D7cKwKzM.mjs +1 -0
  95. package/.output/server/index.mjs +1 -320
  96. package/.output/ui/assets/{CompareDrawer-DafpfgaT.js → CompareDrawer-D8fg0prL.js} +1 -1
  97. package/.output/ui/assets/{InspectorPet-Brsmmfzx.js → InspectorPet-BAY7SAee.js} +1 -1
  98. package/.output/ui/assets/{ProxyViewerContainer-D2pq1fUr.js → ProxyViewerContainer-BPITPKYp.js} +4 -4
  99. package/.output/ui/assets/{ReplayDialog-D4mXXgT9.js → ReplayDialog-NLGOmBsc.js} +1 -1
  100. package/.output/ui/assets/{RequestAnatomy-Ccnsq12U.js → RequestAnatomy-DBhRhis7.js} +1 -1
  101. package/.output/ui/assets/{ResponseView-CJv3vB5X.js → ResponseView-DNXX-dzj.js} +1 -1
  102. package/.output/ui/assets/{StreamingChunkSequence-CEkLnOF6.js → StreamingChunkSequence-CLiT5Xun.js} +1 -1
  103. package/.output/ui/assets/{_sessionId-C7s68UH3.js → _sessionId-CY0Jj2Xv.js} +1 -1
  104. package/.output/ui/assets/{_sessionId-DlG-yHoI.js → _sessionId-Cf0So2vy.js} +1 -1
  105. package/.output/ui/assets/{index-ChZZrVHa.js → index-BIMJaHOR.js} +1 -1
  106. package/.output/ui/assets/{index-CFqnSirZ.js → index-DLG3AIXx.js} +1 -1
  107. package/.output/ui/assets/{index-B0NCZQ93.js → index-DTj5ErVh.js} +2 -2
  108. package/.output/ui/assets/{index-Cqh47jeU.js → index-ujyZ2AyC.js} +1 -1
  109. package/.output/ui/assets/{json-viewer-DvpI0vbY.js → json-viewer-BwPQ5x7s.js} +1 -1
  110. package/.output/ui/assets/{jszip.min-5AG8hW2c.js → jszip.min-CDwYiHmS.js} +1 -1
  111. package/.output/ui/index.html +1 -1
  112. package/.output/workers/logFinalizer.worker.js +41 -17739
  113. package/.output/workers/sessionWorkerEntry.js +41 -17735
  114. package/package.json +7 -7
  115. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +0 -6
  116. package/.output/server/_ssr/publicBasePathContext-IH2ilOfu.mjs +0 -176
  117. package/.output/server/_ssr/router-BDyF-OMB.mjs +0 -27187
  118. package/.output/server/_ssr/start-COQu_AgD.mjs +0 -57
  119. package/.output/server/_tanstack-start-manifest_v-ClTaMkEj.mjs +0 -4
@@ -1,547 +1,5 @@
1
- import { r as requireMs } from "./ms.mjs";
2
- import require$$1 from "tty";
3
- import require$$2 from "util";
4
- import { r as requireSupportsColor } from "./supports-color.mjs";
5
- var src = { exports: {} };
6
- var browser = { exports: {} };
7
- var common;
8
- var hasRequiredCommon;
9
- function requireCommon() {
10
- if (hasRequiredCommon) return common;
11
- hasRequiredCommon = 1;
12
- function setup(env) {
13
- createDebug.debug = createDebug;
14
- createDebug.default = createDebug;
15
- createDebug.coerce = coerce;
16
- createDebug.disable = disable;
17
- createDebug.enable = enable;
18
- createDebug.enabled = enabled;
19
- createDebug.humanize = requireMs();
20
- createDebug.destroy = destroy;
21
- Object.keys(env).forEach((key) => {
22
- createDebug[key] = env[key];
23
- });
24
- createDebug.names = [];
25
- createDebug.skips = [];
26
- createDebug.formatters = {};
27
- function selectColor(namespace) {
28
- let hash = 0;
29
- for (let i = 0; i < namespace.length; i++) {
30
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
31
- hash |= 0;
32
- }
33
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
34
- }
35
- createDebug.selectColor = selectColor;
36
- function createDebug(namespace) {
37
- let prevTime;
38
- let enableOverride = null;
39
- let namespacesCache;
40
- let enabledCache;
41
- function debug(...args) {
42
- if (!debug.enabled) {
43
- return;
44
- }
45
- const self = debug;
46
- const curr = Number(/* @__PURE__ */ new Date());
47
- const ms = curr - (prevTime || curr);
48
- self.diff = ms;
49
- self.prev = prevTime;
50
- self.curr = curr;
51
- prevTime = curr;
52
- args[0] = createDebug.coerce(args[0]);
53
- if (typeof args[0] !== "string") {
54
- args.unshift("%O");
55
- }
56
- let index = 0;
57
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
58
- if (match === "%%") {
59
- return "%";
60
- }
61
- index++;
62
- const formatter = createDebug.formatters[format];
63
- if (typeof formatter === "function") {
64
- const val = args[index];
65
- match = formatter.call(self, val);
66
- args.splice(index, 1);
67
- index--;
68
- }
69
- return match;
70
- });
71
- createDebug.formatArgs.call(self, args);
72
- const logFn = self.log || createDebug.log;
73
- logFn.apply(self, args);
74
- }
75
- debug.namespace = namespace;
76
- debug.useColors = createDebug.useColors();
77
- debug.color = createDebug.selectColor(namespace);
78
- debug.extend = extend;
79
- debug.destroy = createDebug.destroy;
80
- Object.defineProperty(debug, "enabled", {
81
- enumerable: true,
82
- configurable: false,
83
- get: () => {
84
- if (enableOverride !== null) {
85
- return enableOverride;
86
- }
87
- if (namespacesCache !== createDebug.namespaces) {
88
- namespacesCache = createDebug.namespaces;
89
- enabledCache = createDebug.enabled(namespace);
90
- }
91
- return enabledCache;
92
- },
93
- set: (v) => {
94
- enableOverride = v;
95
- }
96
- });
97
- if (typeof createDebug.init === "function") {
98
- createDebug.init(debug);
99
- }
100
- return debug;
101
- }
102
- function extend(namespace, delimiter) {
103
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
104
- newDebug.log = this.log;
105
- return newDebug;
106
- }
107
- function enable(namespaces) {
108
- createDebug.save(namespaces);
109
- createDebug.namespaces = namespaces;
110
- createDebug.names = [];
111
- createDebug.skips = [];
112
- const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
113
- for (const ns of split) {
114
- if (ns[0] === "-") {
115
- createDebug.skips.push(ns.slice(1));
116
- } else {
117
- createDebug.names.push(ns);
118
- }
119
- }
120
- }
121
- function matchesTemplate(search, template) {
122
- let searchIndex = 0;
123
- let templateIndex = 0;
124
- let starIndex = -1;
125
- let matchIndex = 0;
126
- while (searchIndex < search.length) {
127
- if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
128
- if (template[templateIndex] === "*") {
129
- starIndex = templateIndex;
130
- matchIndex = searchIndex;
131
- templateIndex++;
132
- } else {
133
- searchIndex++;
134
- templateIndex++;
135
- }
136
- } else if (starIndex !== -1) {
137
- templateIndex = starIndex + 1;
138
- matchIndex++;
139
- searchIndex = matchIndex;
140
- } else {
141
- return false;
142
- }
143
- }
144
- while (templateIndex < template.length && template[templateIndex] === "*") {
145
- templateIndex++;
146
- }
147
- return templateIndex === template.length;
148
- }
149
- function disable() {
150
- const namespaces = [
151
- ...createDebug.names,
152
- ...createDebug.skips.map((namespace) => "-" + namespace)
153
- ].join(",");
154
- createDebug.enable("");
155
- return namespaces;
156
- }
157
- function enabled(name) {
158
- for (const skip of createDebug.skips) {
159
- if (matchesTemplate(name, skip)) {
160
- return false;
161
- }
162
- }
163
- for (const ns of createDebug.names) {
164
- if (matchesTemplate(name, ns)) {
165
- return true;
166
- }
167
- }
168
- return false;
169
- }
170
- function coerce(val) {
171
- if (val instanceof Error) {
172
- return val.stack || val.message;
173
- }
174
- return val;
175
- }
176
- function destroy() {
177
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
178
- }
179
- createDebug.enable(createDebug.load());
180
- return createDebug;
181
- }
182
- common = setup;
183
- return common;
184
- }
185
- var hasRequiredBrowser;
186
- function requireBrowser() {
187
- if (hasRequiredBrowser) return browser.exports;
188
- hasRequiredBrowser = 1;
189
- (function(module, exports$1) {
190
- exports$1.formatArgs = formatArgs;
191
- exports$1.save = save;
192
- exports$1.load = load;
193
- exports$1.useColors = useColors;
194
- exports$1.storage = localstorage();
195
- exports$1.destroy = /* @__PURE__ */ (() => {
196
- let warned = false;
197
- return () => {
198
- if (!warned) {
199
- warned = true;
200
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
201
- }
202
- };
203
- })();
204
- exports$1.colors = [
205
- "#0000CC",
206
- "#0000FF",
207
- "#0033CC",
208
- "#0033FF",
209
- "#0066CC",
210
- "#0066FF",
211
- "#0099CC",
212
- "#0099FF",
213
- "#00CC00",
214
- "#00CC33",
215
- "#00CC66",
216
- "#00CC99",
217
- "#00CCCC",
218
- "#00CCFF",
219
- "#3300CC",
220
- "#3300FF",
221
- "#3333CC",
222
- "#3333FF",
223
- "#3366CC",
224
- "#3366FF",
225
- "#3399CC",
226
- "#3399FF",
227
- "#33CC00",
228
- "#33CC33",
229
- "#33CC66",
230
- "#33CC99",
231
- "#33CCCC",
232
- "#33CCFF",
233
- "#6600CC",
234
- "#6600FF",
235
- "#6633CC",
236
- "#6633FF",
237
- "#66CC00",
238
- "#66CC33",
239
- "#9900CC",
240
- "#9900FF",
241
- "#9933CC",
242
- "#9933FF",
243
- "#99CC00",
244
- "#99CC33",
245
- "#CC0000",
246
- "#CC0033",
247
- "#CC0066",
248
- "#CC0099",
249
- "#CC00CC",
250
- "#CC00FF",
251
- "#CC3300",
252
- "#CC3333",
253
- "#CC3366",
254
- "#CC3399",
255
- "#CC33CC",
256
- "#CC33FF",
257
- "#CC6600",
258
- "#CC6633",
259
- "#CC9900",
260
- "#CC9933",
261
- "#CCCC00",
262
- "#CCCC33",
263
- "#FF0000",
264
- "#FF0033",
265
- "#FF0066",
266
- "#FF0099",
267
- "#FF00CC",
268
- "#FF00FF",
269
- "#FF3300",
270
- "#FF3333",
271
- "#FF3366",
272
- "#FF3399",
273
- "#FF33CC",
274
- "#FF33FF",
275
- "#FF6600",
276
- "#FF6633",
277
- "#FF9900",
278
- "#FF9933",
279
- "#FFCC00",
280
- "#FFCC33"
281
- ];
282
- function useColors() {
283
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
284
- return true;
285
- }
286
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
287
- return false;
288
- }
289
- let m;
290
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
291
- typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
292
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
293
- typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
294
- typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
295
- }
296
- function formatArgs(args) {
297
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
298
- if (!this.useColors) {
299
- return;
300
- }
301
- const c = "color: " + this.color;
302
- args.splice(1, 0, c, "color: inherit");
303
- let index = 0;
304
- let lastC = 0;
305
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
306
- if (match === "%%") {
307
- return;
308
- }
309
- index++;
310
- if (match === "%c") {
311
- lastC = index;
312
- }
313
- });
314
- args.splice(lastC, 0, c);
315
- }
316
- exports$1.log = console.debug || console.log || (() => {
317
- });
318
- function save(namespaces) {
319
- try {
320
- if (namespaces) {
321
- exports$1.storage.setItem("debug", namespaces);
322
- } else {
323
- exports$1.storage.removeItem("debug");
324
- }
325
- } catch (error) {
326
- }
327
- }
328
- function load() {
329
- let r;
330
- try {
331
- r = exports$1.storage.getItem("debug") || exports$1.storage.getItem("DEBUG");
332
- } catch (error) {
333
- }
334
- if (!r && typeof process !== "undefined" && "env" in process) {
335
- r = process.env.DEBUG;
336
- }
337
- return r;
338
- }
339
- function localstorage() {
340
- try {
341
- return localStorage;
342
- } catch (error) {
343
- }
344
- }
345
- module.exports = requireCommon()(exports$1);
346
- const { formatters } = module.exports;
347
- formatters.j = function(v) {
348
- try {
349
- return JSON.stringify(v);
350
- } catch (error) {
351
- return "[UnexpectedJSONParseError]: " + error.message;
352
- }
353
- };
354
- })(browser, browser.exports);
355
- return browser.exports;
356
- }
357
- var node = { exports: {} };
358
- var hasRequiredNode;
359
- function requireNode() {
360
- if (hasRequiredNode) return node.exports;
361
- hasRequiredNode = 1;
362
- (function(module, exports$1) {
363
- const tty = require$$1;
364
- const util = require$$2;
365
- exports$1.init = init;
366
- exports$1.log = log;
367
- exports$1.formatArgs = formatArgs;
368
- exports$1.save = save;
369
- exports$1.load = load;
370
- exports$1.useColors = useColors;
371
- exports$1.destroy = util.deprecate(
372
- () => {
373
- },
374
- "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
375
- );
376
- exports$1.colors = [6, 2, 3, 4, 5, 1];
377
- try {
378
- const supportsColor = requireSupportsColor();
379
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
380
- exports$1.colors = [
381
- 20,
382
- 21,
383
- 26,
384
- 27,
385
- 32,
386
- 33,
387
- 38,
388
- 39,
389
- 40,
390
- 41,
391
- 42,
392
- 43,
393
- 44,
394
- 45,
395
- 56,
396
- 57,
397
- 62,
398
- 63,
399
- 68,
400
- 69,
401
- 74,
402
- 75,
403
- 76,
404
- 77,
405
- 78,
406
- 79,
407
- 80,
408
- 81,
409
- 92,
410
- 93,
411
- 98,
412
- 99,
413
- 112,
414
- 113,
415
- 128,
416
- 129,
417
- 134,
418
- 135,
419
- 148,
420
- 149,
421
- 160,
422
- 161,
423
- 162,
424
- 163,
425
- 164,
426
- 165,
427
- 166,
428
- 167,
429
- 168,
430
- 169,
431
- 170,
432
- 171,
433
- 172,
434
- 173,
435
- 178,
436
- 179,
437
- 184,
438
- 185,
439
- 196,
440
- 197,
441
- 198,
442
- 199,
443
- 200,
444
- 201,
445
- 202,
446
- 203,
447
- 204,
448
- 205,
449
- 206,
450
- 207,
451
- 208,
452
- 209,
453
- 214,
454
- 215,
455
- 220,
456
- 221
457
- ];
458
- }
459
- } catch (error) {
460
- }
461
- exports$1.inspectOpts = Object.keys(process.env).filter((key) => {
462
- return /^debug_/i.test(key);
463
- }).reduce((obj, key) => {
464
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
465
- return k.toUpperCase();
466
- });
467
- let val = process.env[key];
468
- if (/^(yes|on|true|enabled)$/i.test(val)) {
469
- val = true;
470
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
471
- val = false;
472
- } else if (val === "null") {
473
- val = null;
474
- } else {
475
- val = Number(val);
476
- }
477
- obj[prop] = val;
478
- return obj;
479
- }, {});
480
- function useColors() {
481
- return "colors" in exports$1.inspectOpts ? Boolean(exports$1.inspectOpts.colors) : tty.isatty(process.stderr.fd);
482
- }
483
- function formatArgs(args) {
484
- const { namespace: name, useColors: useColors2 } = this;
485
- if (useColors2) {
486
- const c = this.color;
487
- const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
488
- const prefix = ` ${colorCode};1m${name} \x1B[0m`;
489
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
490
- args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
491
- } else {
492
- args[0] = getDate() + name + " " + args[0];
493
- }
494
- }
495
- function getDate() {
496
- if (exports$1.inspectOpts.hideDate) {
497
- return "";
498
- }
499
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
500
- }
501
- function log(...args) {
502
- return process.stderr.write(util.formatWithOptions(exports$1.inspectOpts, ...args) + "\n");
503
- }
504
- function save(namespaces) {
505
- if (namespaces) {
506
- process.env.DEBUG = namespaces;
507
- } else {
508
- delete process.env.DEBUG;
509
- }
510
- }
511
- function load() {
512
- return process.env.DEBUG;
513
- }
514
- function init(debug) {
515
- debug.inspectOpts = {};
516
- const keys = Object.keys(exports$1.inspectOpts);
517
- for (let i = 0; i < keys.length; i++) {
518
- debug.inspectOpts[keys[i]] = exports$1.inspectOpts[keys[i]];
519
- }
520
- }
521
- module.exports = requireCommon()(exports$1);
522
- const { formatters } = module.exports;
523
- formatters.o = function(v) {
524
- this.inspectOpts.colors = this.useColors;
525
- return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
526
- };
527
- formatters.O = function(v) {
528
- this.inspectOpts.colors = this.useColors;
529
- return util.inspect(v, this.inspectOpts);
530
- };
531
- })(node, node.exports);
532
- return node.exports;
533
- }
534
- var hasRequiredSrc;
535
- function requireSrc() {
536
- if (hasRequiredSrc) return src.exports;
537
- hasRequiredSrc = 1;
538
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
539
- src.exports = requireBrowser();
540
- } else {
541
- src.exports = requireNode();
542
- }
543
- return src.exports;
544
- }
545
- export {
546
- requireSrc as r
547
- };
1
+ import{r as _}from"./ms.mjs";import z from"tty";import N from"util";import{r as G}from"./supports-color.mjs";var w={exports:{}},v={exports:{}},A,q;function E(){if(q)return A;q=1;function f(r){t.debug=t,t.default=t,t.coerce=a,t.disable=h,t.enable=g,t.enabled=s,t.humanize=_(),t.destroy=p,Object.keys(r).forEach(n=>{t[n]=r[n]}),t.names=[],t.skips=[],t.formatters={};function F(n){let e=0;for(let o=0;o<n.length;o++)e=(e<<5)-e+n.charCodeAt(o),e|=0;return t.colors[Math.abs(e)%t.colors.length]}t.selectColor=F;function t(n){let e,o=null,i,c;function u(...l){if(!u.enabled)return;const C=u,b=Number(new Date),S=b-(e||b);C.diff=S,C.prev=e,C.curr=b,e=b,l[0]=t.coerce(l[0]),typeof l[0]!="string"&&l.unshift("%O");let y=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,(I,x)=>{if(I==="%%")return"%";y++;const j=t.formatters[x];if(typeof j=="function"){const U=l[y];I=j.call(C,U),l.splice(y,1),y--}return I}),t.formatArgs.call(C,l),(C.log||t.log).apply(C,l)}return u.namespace=n,u.useColors=t.useColors(),u.color=t.selectColor(n),u.extend=m,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:()=>o!==null?o:(i!==t.namespaces&&(i=t.namespaces,c=t.enabled(n)),c),set:l=>{o=l}}),typeof t.init=="function"&&t.init(u),u}function m(n,e){const o=t(this.namespace+(typeof e>"u"?":":e)+n);return o.log=this.log,o}function g(n){t.save(n),t.namespaces=n,t.names=[],t.skips=[];const e=(typeof n=="string"?n:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const o of e)o[0]==="-"?t.skips.push(o.slice(1)):t.names.push(o)}function d(n,e){let o=0,i=0,c=-1,u=0;for(;o<n.length;)if(i<e.length&&(e[i]===n[o]||e[i]==="*"))e[i]==="*"?(c=i,u=o,i++):(o++,i++);else if(c!==-1)i=c+1,u++,o=u;else return!1;for(;i<e.length&&e[i]==="*";)i++;return i===e.length}function h(){const n=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),n}function s(n){for(const e of t.skips)if(d(n,e))return!1;for(const e of t.names)if(d(n,e))return!0;return!1}function a(n){return n instanceof Error?n.stack||n.message:n}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}return A=f,A}var B;function L(){return B||(B=1,(function(f,r){r.formatArgs=t,r.save=m,r.load=g,r.useColors=F,r.storage=d(),r.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function F(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let s;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(s=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(s[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function t(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+f.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;s.splice(1,0,a,"color: inherit");let p=0,n=0;s[0].replace(/%[a-zA-Z%]/g,e=>{e!=="%%"&&(p++,e==="%c"&&(n=p))}),s.splice(n,0,a)}r.log=console.debug||console.log||(()=>{});function m(s){try{s?r.storage.setItem("debug",s):r.storage.removeItem("debug")}catch{}}function g(){let s;try{s=r.storage.getItem("debug")||r.storage.getItem("DEBUG")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}function d(){try{return localStorage}catch{}}f.exports=E()(r);const{formatters:h}=f.exports;h.j=function(s){try{return JSON.stringify(s)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}})(v,v.exports)),v.exports}var O={exports:{}},k;function R(){return k||(k=1,(function(f,r){const F=z,t=N;r.init=p,r.log=h,r.formatArgs=g,r.save=s,r.load=a,r.useColors=m,r.destroy=t.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),r.colors=[6,2,3,4,5,1];try{const e=G();e&&(e.stderr||e).level>=2&&(r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}r.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,o)=>{const i=o.substring(6).toLowerCase().replace(/_([a-z])/g,(u,l)=>l.toUpperCase());let c=process.env[o];return/^(yes|on|true|enabled)$/i.test(c)?c=!0:/^(no|off|false|disabled)$/i.test(c)?c=!1:c==="null"?c=null:c=Number(c),e[i]=c,e},{});function m(){return"colors"in r.inspectOpts?!!r.inspectOpts.colors:F.isatty(process.stderr.fd)}function g(e){const{namespace:o,useColors:i}=this;if(i){const c=this.color,u="\x1B[3"+(c<8?c:"8;5;"+c),l=` ${u};1m${o} \x1B[0m`;e[0]=l+e[0].split(`
2
+ `).join(`
3
+ `+l),e.push(u+"m+"+f.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=d()+o+" "+e[0]}function d(){return r.inspectOpts.hideDate?"":new Date().toISOString()+" "}function h(...e){return process.stderr.write(t.formatWithOptions(r.inspectOpts,...e)+`
4
+ `)}function s(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function a(){return process.env.DEBUG}function p(e){e.inspectOpts={};const o=Object.keys(r.inspectOpts);for(let i=0;i<o.length;i++)e.inspectOpts[o[i]]=r.inspectOpts[o[i]]}f.exports=E()(r);const{formatters:n}=f.exports;n.o=function(e){return this.inspectOpts.colors=this.useColors,t.inspect(e,this.inspectOpts).split(`
5
+ `).map(o=>o.trim()).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,t.inspect(e,this.inspectOpts)}})(O,O.exports)),O.exports}var D;function Z(){return D||(D=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?w.exports=L():w.exports=R()),w.exports}export{Z as r};