@prisma/migrate 6.18.0-dev.12 → 6.18.0-dev.14
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.
- package/dist/bin.js +3 -3
- package/dist/{chunk-IVZSWYCG.js → chunk-H5CDIF7X.js} +31 -55
- package/dist/chunk-OP2BDF75.js +792 -0
- package/dist/commands/MigrateDiff.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/setupMSSQL.js +774 -778
- package/dist/utils/setupMongo.js +164 -692
- package/package.json +11 -11
- package/dist/chunk-Y5WDJ6P7.js +0 -263
package/dist/utils/setupMSSQL.js
CHANGED
|
@@ -32,7 +32,7 @@ __export(setupMSSQL_exports, {
|
|
|
32
32
|
tearDownMSSQL: () => tearDownMSSQL
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(setupMSSQL_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_OP2BDF75 = require("../chunk-OP2BDF75.js");
|
|
36
36
|
var import_chunk_5R44VVVX = require("../chunk-5R44VVVX.js");
|
|
37
37
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
38
38
|
var import_util = __toESM(require("util"));
|
|
@@ -69,534 +69,6 @@ var import_fs3 = require("fs");
|
|
|
69
69
|
var import_fs4 = __toESM(require("fs"));
|
|
70
70
|
var import_path3 = __toESM(require("path"));
|
|
71
71
|
var import_url = require("url");
|
|
72
|
-
var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
73
|
-
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
74
|
-
"use strict";
|
|
75
|
-
function setup(env) {
|
|
76
|
-
createDebug.debug = createDebug;
|
|
77
|
-
createDebug.default = createDebug;
|
|
78
|
-
createDebug.coerce = coerce;
|
|
79
|
-
createDebug.disable = disable2;
|
|
80
|
-
createDebug.enable = enable2;
|
|
81
|
-
createDebug.enabled = enabled2;
|
|
82
|
-
createDebug.humanize = (0, import_chunk_Y5WDJ6P7.require_ms)();
|
|
83
|
-
createDebug.destroy = destroy2;
|
|
84
|
-
Object.keys(env).forEach((key) => {
|
|
85
|
-
createDebug[key] = env[key];
|
|
86
|
-
});
|
|
87
|
-
createDebug.names = [];
|
|
88
|
-
createDebug.skips = [];
|
|
89
|
-
createDebug.formatters = {};
|
|
90
|
-
function selectColor(namespace) {
|
|
91
|
-
let hash = 0;
|
|
92
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
93
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
94
|
-
hash |= 0;
|
|
95
|
-
}
|
|
96
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
97
|
-
}
|
|
98
|
-
createDebug.selectColor = selectColor;
|
|
99
|
-
function createDebug(namespace) {
|
|
100
|
-
let prevTime;
|
|
101
|
-
let enableOverride = null;
|
|
102
|
-
let namespacesCache;
|
|
103
|
-
let enabledCache;
|
|
104
|
-
function debug(...args) {
|
|
105
|
-
if (!debug.enabled) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
const self2 = debug;
|
|
109
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
110
|
-
const ms = curr - (prevTime || curr);
|
|
111
|
-
self2.diff = ms;
|
|
112
|
-
self2.prev = prevTime;
|
|
113
|
-
self2.curr = curr;
|
|
114
|
-
prevTime = curr;
|
|
115
|
-
args[0] = createDebug.coerce(args[0]);
|
|
116
|
-
if (typeof args[0] !== "string") {
|
|
117
|
-
args.unshift("%O");
|
|
118
|
-
}
|
|
119
|
-
let index = 0;
|
|
120
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
121
|
-
if (match === "%%") {
|
|
122
|
-
return "%";
|
|
123
|
-
}
|
|
124
|
-
index++;
|
|
125
|
-
const formatter = createDebug.formatters[format];
|
|
126
|
-
if (typeof formatter === "function") {
|
|
127
|
-
const val = args[index];
|
|
128
|
-
match = formatter.call(self2, val);
|
|
129
|
-
args.splice(index, 1);
|
|
130
|
-
index--;
|
|
131
|
-
}
|
|
132
|
-
return match;
|
|
133
|
-
});
|
|
134
|
-
createDebug.formatArgs.call(self2, args);
|
|
135
|
-
const logFn = self2.log || createDebug.log;
|
|
136
|
-
logFn.apply(self2, args);
|
|
137
|
-
}
|
|
138
|
-
debug.namespace = namespace;
|
|
139
|
-
debug.useColors = createDebug.useColors();
|
|
140
|
-
debug.color = createDebug.selectColor(namespace);
|
|
141
|
-
debug.extend = extend2;
|
|
142
|
-
debug.destroy = createDebug.destroy;
|
|
143
|
-
Object.defineProperty(debug, "enabled", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
configurable: false,
|
|
146
|
-
get: () => {
|
|
147
|
-
if (enableOverride !== null) {
|
|
148
|
-
return enableOverride;
|
|
149
|
-
}
|
|
150
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
151
|
-
namespacesCache = createDebug.namespaces;
|
|
152
|
-
enabledCache = createDebug.enabled(namespace);
|
|
153
|
-
}
|
|
154
|
-
return enabledCache;
|
|
155
|
-
},
|
|
156
|
-
set: (v) => {
|
|
157
|
-
enableOverride = v;
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
if (typeof createDebug.init === "function") {
|
|
161
|
-
createDebug.init(debug);
|
|
162
|
-
}
|
|
163
|
-
return debug;
|
|
164
|
-
}
|
|
165
|
-
function extend2(namespace, delimiter) {
|
|
166
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
167
|
-
newDebug.log = this.log;
|
|
168
|
-
return newDebug;
|
|
169
|
-
}
|
|
170
|
-
function enable2(namespaces) {
|
|
171
|
-
createDebug.save(namespaces);
|
|
172
|
-
createDebug.namespaces = namespaces;
|
|
173
|
-
createDebug.names = [];
|
|
174
|
-
createDebug.skips = [];
|
|
175
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
176
|
-
for (const ns of split) {
|
|
177
|
-
if (ns[0] === "-") {
|
|
178
|
-
createDebug.skips.push(ns.slice(1));
|
|
179
|
-
} else {
|
|
180
|
-
createDebug.names.push(ns);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
function matchesTemplate(search, template) {
|
|
185
|
-
let searchIndex = 0;
|
|
186
|
-
let templateIndex = 0;
|
|
187
|
-
let starIndex = -1;
|
|
188
|
-
let matchIndex = 0;
|
|
189
|
-
while (searchIndex < search.length) {
|
|
190
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
191
|
-
if (template[templateIndex] === "*") {
|
|
192
|
-
starIndex = templateIndex;
|
|
193
|
-
matchIndex = searchIndex;
|
|
194
|
-
templateIndex++;
|
|
195
|
-
} else {
|
|
196
|
-
searchIndex++;
|
|
197
|
-
templateIndex++;
|
|
198
|
-
}
|
|
199
|
-
} else if (starIndex !== -1) {
|
|
200
|
-
templateIndex = starIndex + 1;
|
|
201
|
-
matchIndex++;
|
|
202
|
-
searchIndex = matchIndex;
|
|
203
|
-
} else {
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
208
|
-
templateIndex++;
|
|
209
|
-
}
|
|
210
|
-
return templateIndex === template.length;
|
|
211
|
-
}
|
|
212
|
-
function disable2() {
|
|
213
|
-
const namespaces = [
|
|
214
|
-
...createDebug.names,
|
|
215
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
216
|
-
].join(",");
|
|
217
|
-
createDebug.enable("");
|
|
218
|
-
return namespaces;
|
|
219
|
-
}
|
|
220
|
-
function enabled2(name3) {
|
|
221
|
-
for (const skip of createDebug.skips) {
|
|
222
|
-
if (matchesTemplate(name3, skip)) {
|
|
223
|
-
return false;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
for (const ns of createDebug.names) {
|
|
227
|
-
if (matchesTemplate(name3, ns)) {
|
|
228
|
-
return true;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
function coerce(val) {
|
|
234
|
-
if (val instanceof Error) {
|
|
235
|
-
return val.stack || val.message;
|
|
236
|
-
}
|
|
237
|
-
return val;
|
|
238
|
-
}
|
|
239
|
-
function destroy2() {
|
|
240
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
241
|
-
}
|
|
242
|
-
createDebug.enable(createDebug.load());
|
|
243
|
-
return createDebug;
|
|
244
|
-
}
|
|
245
|
-
module2.exports = setup;
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
249
|
-
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
250
|
-
"use strict";
|
|
251
|
-
exports.formatArgs = formatArgs;
|
|
252
|
-
exports.save = save;
|
|
253
|
-
exports.load = load;
|
|
254
|
-
exports.useColors = useColors;
|
|
255
|
-
exports.storage = localstorage();
|
|
256
|
-
exports.destroy = /* @__PURE__ */ (() => {
|
|
257
|
-
let warned = false;
|
|
258
|
-
return () => {
|
|
259
|
-
if (!warned) {
|
|
260
|
-
warned = true;
|
|
261
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
})();
|
|
265
|
-
exports.colors = [
|
|
266
|
-
"#0000CC",
|
|
267
|
-
"#0000FF",
|
|
268
|
-
"#0033CC",
|
|
269
|
-
"#0033FF",
|
|
270
|
-
"#0066CC",
|
|
271
|
-
"#0066FF",
|
|
272
|
-
"#0099CC",
|
|
273
|
-
"#0099FF",
|
|
274
|
-
"#00CC00",
|
|
275
|
-
"#00CC33",
|
|
276
|
-
"#00CC66",
|
|
277
|
-
"#00CC99",
|
|
278
|
-
"#00CCCC",
|
|
279
|
-
"#00CCFF",
|
|
280
|
-
"#3300CC",
|
|
281
|
-
"#3300FF",
|
|
282
|
-
"#3333CC",
|
|
283
|
-
"#3333FF",
|
|
284
|
-
"#3366CC",
|
|
285
|
-
"#3366FF",
|
|
286
|
-
"#3399CC",
|
|
287
|
-
"#3399FF",
|
|
288
|
-
"#33CC00",
|
|
289
|
-
"#33CC33",
|
|
290
|
-
"#33CC66",
|
|
291
|
-
"#33CC99",
|
|
292
|
-
"#33CCCC",
|
|
293
|
-
"#33CCFF",
|
|
294
|
-
"#6600CC",
|
|
295
|
-
"#6600FF",
|
|
296
|
-
"#6633CC",
|
|
297
|
-
"#6633FF",
|
|
298
|
-
"#66CC00",
|
|
299
|
-
"#66CC33",
|
|
300
|
-
"#9900CC",
|
|
301
|
-
"#9900FF",
|
|
302
|
-
"#9933CC",
|
|
303
|
-
"#9933FF",
|
|
304
|
-
"#99CC00",
|
|
305
|
-
"#99CC33",
|
|
306
|
-
"#CC0000",
|
|
307
|
-
"#CC0033",
|
|
308
|
-
"#CC0066",
|
|
309
|
-
"#CC0099",
|
|
310
|
-
"#CC00CC",
|
|
311
|
-
"#CC00FF",
|
|
312
|
-
"#CC3300",
|
|
313
|
-
"#CC3333",
|
|
314
|
-
"#CC3366",
|
|
315
|
-
"#CC3399",
|
|
316
|
-
"#CC33CC",
|
|
317
|
-
"#CC33FF",
|
|
318
|
-
"#CC6600",
|
|
319
|
-
"#CC6633",
|
|
320
|
-
"#CC9900",
|
|
321
|
-
"#CC9933",
|
|
322
|
-
"#CCCC00",
|
|
323
|
-
"#CCCC33",
|
|
324
|
-
"#FF0000",
|
|
325
|
-
"#FF0033",
|
|
326
|
-
"#FF0066",
|
|
327
|
-
"#FF0099",
|
|
328
|
-
"#FF00CC",
|
|
329
|
-
"#FF00FF",
|
|
330
|
-
"#FF3300",
|
|
331
|
-
"#FF3333",
|
|
332
|
-
"#FF3366",
|
|
333
|
-
"#FF3399",
|
|
334
|
-
"#FF33CC",
|
|
335
|
-
"#FF33FF",
|
|
336
|
-
"#FF6600",
|
|
337
|
-
"#FF6633",
|
|
338
|
-
"#FF9900",
|
|
339
|
-
"#FF9933",
|
|
340
|
-
"#FFCC00",
|
|
341
|
-
"#FFCC33"
|
|
342
|
-
];
|
|
343
|
-
function useColors() {
|
|
344
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
345
|
-
return true;
|
|
346
|
-
}
|
|
347
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
348
|
-
return false;
|
|
349
|
-
}
|
|
350
|
-
let m;
|
|
351
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
352
|
-
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
353
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
354
|
-
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
|
|
355
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
356
|
-
}
|
|
357
|
-
function formatArgs(args) {
|
|
358
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
359
|
-
if (!this.useColors) {
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
const c = "color: " + this.color;
|
|
363
|
-
args.splice(1, 0, c, "color: inherit");
|
|
364
|
-
let index = 0;
|
|
365
|
-
let lastC = 0;
|
|
366
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
367
|
-
if (match === "%%") {
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
index++;
|
|
371
|
-
if (match === "%c") {
|
|
372
|
-
lastC = index;
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
args.splice(lastC, 0, c);
|
|
376
|
-
}
|
|
377
|
-
exports.log = console.debug || console.log || (() => {
|
|
378
|
-
});
|
|
379
|
-
function save(namespaces) {
|
|
380
|
-
try {
|
|
381
|
-
if (namespaces) {
|
|
382
|
-
exports.storage.setItem("debug", namespaces);
|
|
383
|
-
} else {
|
|
384
|
-
exports.storage.removeItem("debug");
|
|
385
|
-
}
|
|
386
|
-
} catch (error) {
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
function load() {
|
|
390
|
-
let r;
|
|
391
|
-
try {
|
|
392
|
-
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
393
|
-
} catch (error) {
|
|
394
|
-
}
|
|
395
|
-
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
396
|
-
r = process.env.DEBUG;
|
|
397
|
-
}
|
|
398
|
-
return r;
|
|
399
|
-
}
|
|
400
|
-
function localstorage() {
|
|
401
|
-
try {
|
|
402
|
-
return localStorage;
|
|
403
|
-
} catch (error) {
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
module2.exports = require_common()(exports);
|
|
407
|
-
var { formatters } = module2.exports;
|
|
408
|
-
formatters.j = function(v) {
|
|
409
|
-
try {
|
|
410
|
-
return JSON.stringify(v);
|
|
411
|
-
} catch (error) {
|
|
412
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
418
|
-
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
419
|
-
"use strict";
|
|
420
|
-
var tty = (0, import_chunk_2ESYSVXG.__require)("tty");
|
|
421
|
-
var util2 = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
422
|
-
exports.init = init2;
|
|
423
|
-
exports.log = log2;
|
|
424
|
-
exports.formatArgs = formatArgs;
|
|
425
|
-
exports.save = save;
|
|
426
|
-
exports.load = load;
|
|
427
|
-
exports.useColors = useColors;
|
|
428
|
-
exports.destroy = util2.deprecate(
|
|
429
|
-
() => {
|
|
430
|
-
},
|
|
431
|
-
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
432
|
-
);
|
|
433
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
434
|
-
try {
|
|
435
|
-
const supportsColor = (0, import_chunk_Y5WDJ6P7.require_supports_color)();
|
|
436
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
437
|
-
exports.colors = [
|
|
438
|
-
20,
|
|
439
|
-
21,
|
|
440
|
-
26,
|
|
441
|
-
27,
|
|
442
|
-
32,
|
|
443
|
-
33,
|
|
444
|
-
38,
|
|
445
|
-
39,
|
|
446
|
-
40,
|
|
447
|
-
41,
|
|
448
|
-
42,
|
|
449
|
-
43,
|
|
450
|
-
44,
|
|
451
|
-
45,
|
|
452
|
-
56,
|
|
453
|
-
57,
|
|
454
|
-
62,
|
|
455
|
-
63,
|
|
456
|
-
68,
|
|
457
|
-
69,
|
|
458
|
-
74,
|
|
459
|
-
75,
|
|
460
|
-
76,
|
|
461
|
-
77,
|
|
462
|
-
78,
|
|
463
|
-
79,
|
|
464
|
-
80,
|
|
465
|
-
81,
|
|
466
|
-
92,
|
|
467
|
-
93,
|
|
468
|
-
98,
|
|
469
|
-
99,
|
|
470
|
-
112,
|
|
471
|
-
113,
|
|
472
|
-
128,
|
|
473
|
-
129,
|
|
474
|
-
134,
|
|
475
|
-
135,
|
|
476
|
-
148,
|
|
477
|
-
149,
|
|
478
|
-
160,
|
|
479
|
-
161,
|
|
480
|
-
162,
|
|
481
|
-
163,
|
|
482
|
-
164,
|
|
483
|
-
165,
|
|
484
|
-
166,
|
|
485
|
-
167,
|
|
486
|
-
168,
|
|
487
|
-
169,
|
|
488
|
-
170,
|
|
489
|
-
171,
|
|
490
|
-
172,
|
|
491
|
-
173,
|
|
492
|
-
178,
|
|
493
|
-
179,
|
|
494
|
-
184,
|
|
495
|
-
185,
|
|
496
|
-
196,
|
|
497
|
-
197,
|
|
498
|
-
198,
|
|
499
|
-
199,
|
|
500
|
-
200,
|
|
501
|
-
201,
|
|
502
|
-
202,
|
|
503
|
-
203,
|
|
504
|
-
204,
|
|
505
|
-
205,
|
|
506
|
-
206,
|
|
507
|
-
207,
|
|
508
|
-
208,
|
|
509
|
-
209,
|
|
510
|
-
214,
|
|
511
|
-
215,
|
|
512
|
-
220,
|
|
513
|
-
221
|
|
514
|
-
];
|
|
515
|
-
}
|
|
516
|
-
} catch (error) {
|
|
517
|
-
}
|
|
518
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
519
|
-
return /^debug_/i.test(key);
|
|
520
|
-
}).reduce((obj, key) => {
|
|
521
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2, k) => {
|
|
522
|
-
return k.toUpperCase();
|
|
523
|
-
});
|
|
524
|
-
let val = process.env[key];
|
|
525
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
526
|
-
val = true;
|
|
527
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
528
|
-
val = false;
|
|
529
|
-
} else if (val === "null") {
|
|
530
|
-
val = null;
|
|
531
|
-
} else {
|
|
532
|
-
val = Number(val);
|
|
533
|
-
}
|
|
534
|
-
obj[prop] = val;
|
|
535
|
-
return obj;
|
|
536
|
-
}, {});
|
|
537
|
-
function useColors() {
|
|
538
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
539
|
-
}
|
|
540
|
-
function formatArgs(args) {
|
|
541
|
-
const { namespace: name3, useColors: useColors2 } = this;
|
|
542
|
-
if (useColors2) {
|
|
543
|
-
const c = this.color;
|
|
544
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
545
|
-
const prefix = ` ${colorCode};1m${name3} \x1B[0m`;
|
|
546
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
547
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
548
|
-
} else {
|
|
549
|
-
args[0] = getDate() + name3 + " " + args[0];
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
function getDate() {
|
|
553
|
-
if (exports.inspectOpts.hideDate) {
|
|
554
|
-
return "";
|
|
555
|
-
}
|
|
556
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
557
|
-
}
|
|
558
|
-
function log2(...args) {
|
|
559
|
-
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
560
|
-
}
|
|
561
|
-
function save(namespaces) {
|
|
562
|
-
if (namespaces) {
|
|
563
|
-
process.env.DEBUG = namespaces;
|
|
564
|
-
} else {
|
|
565
|
-
delete process.env.DEBUG;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
function load() {
|
|
569
|
-
return process.env.DEBUG;
|
|
570
|
-
}
|
|
571
|
-
function init2(debug) {
|
|
572
|
-
debug.inspectOpts = {};
|
|
573
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
574
|
-
for (let i = 0; i < keys.length; i++) {
|
|
575
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
module2.exports = require_common()(exports);
|
|
579
|
-
var { formatters } = module2.exports;
|
|
580
|
-
formatters.o = function(v) {
|
|
581
|
-
this.inspectOpts.colors = this.useColors;
|
|
582
|
-
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
583
|
-
};
|
|
584
|
-
formatters.O = function(v) {
|
|
585
|
-
this.inspectOpts.colors = this.useColors;
|
|
586
|
-
return util2.inspect(v, this.inspectOpts);
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
591
|
-
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
592
|
-
"use strict";
|
|
593
|
-
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
594
|
-
module2.exports = require_browser();
|
|
595
|
-
} else {
|
|
596
|
-
module2.exports = require_node();
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
});
|
|
600
72
|
var require_connection_string = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
601
73
|
"../../node_modules/.pnpm/@tediousjs+connection-string@0.5.0/node_modules/@tediousjs/connection-string/lib/parser/connection-string.js"(exports) {
|
|
602
74
|
"use strict";
|
|
@@ -2247,7 +1719,7 @@ var require_shared = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2247
1719
|
}
|
|
2248
1720
|
});
|
|
2249
1721
|
var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2250
|
-
"../../node_modules/.pnpm/rfdc@1.
|
|
1722
|
+
"../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/index.js"(exports, module2) {
|
|
2251
1723
|
"use strict";
|
|
2252
1724
|
module2.exports = rfdc;
|
|
2253
1725
|
function copyBuffer(cur) {
|
|
@@ -2259,27 +1731,17 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2259
1731
|
function rfdc(opts) {
|
|
2260
1732
|
opts = opts || {};
|
|
2261
1733
|
if (opts.circles) return rfdcCircles(opts);
|
|
2262
|
-
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
2263
|
-
constructorHandlers.set(Date, (o) => new Date(o));
|
|
2264
|
-
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
2265
|
-
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
2266
|
-
if (opts.constructorHandlers) {
|
|
2267
|
-
for (const handler2 of opts.constructorHandlers) {
|
|
2268
|
-
constructorHandlers.set(handler2[0], handler2[1]);
|
|
2269
|
-
}
|
|
2270
|
-
}
|
|
2271
|
-
let handler = null;
|
|
2272
1734
|
return opts.proto ? cloneProto : clone;
|
|
2273
1735
|
function cloneArray(a, fn) {
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
for (
|
|
2277
|
-
|
|
2278
|
-
|
|
1736
|
+
var keys = Object.keys(a);
|
|
1737
|
+
var a2 = new Array(keys.length);
|
|
1738
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1739
|
+
var k = keys[i];
|
|
1740
|
+
var cur = a[k];
|
|
2279
1741
|
if (typeof cur !== "object" || cur === null) {
|
|
2280
1742
|
a2[k] = cur;
|
|
2281
|
-
} else if (cur
|
|
2282
|
-
a2[k] =
|
|
1743
|
+
} else if (cur instanceof Date) {
|
|
1744
|
+
a2[k] = new Date(cur);
|
|
2283
1745
|
} else if (ArrayBuffer.isView(cur)) {
|
|
2284
1746
|
a2[k] = copyBuffer(cur);
|
|
2285
1747
|
} else {
|
|
@@ -2290,18 +1752,22 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2290
1752
|
}
|
|
2291
1753
|
function clone(o) {
|
|
2292
1754
|
if (typeof o !== "object" || o === null) return o;
|
|
1755
|
+
if (o instanceof Date) return new Date(o);
|
|
2293
1756
|
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
2294
|
-
if (o
|
|
2295
|
-
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
for (const k in o) {
|
|
1757
|
+
if (o instanceof Map) return new Map(cloneArray(Array.from(o), clone));
|
|
1758
|
+
if (o instanceof Set) return new Set(cloneArray(Array.from(o), clone));
|
|
1759
|
+
var o2 = {};
|
|
1760
|
+
for (var k in o) {
|
|
2299
1761
|
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
2300
|
-
|
|
1762
|
+
var cur = o[k];
|
|
2301
1763
|
if (typeof cur !== "object" || cur === null) {
|
|
2302
1764
|
o2[k] = cur;
|
|
2303
|
-
} else if (cur
|
|
2304
|
-
o2[k] =
|
|
1765
|
+
} else if (cur instanceof Date) {
|
|
1766
|
+
o2[k] = new Date(cur);
|
|
1767
|
+
} else if (cur instanceof Map) {
|
|
1768
|
+
o2[k] = new Map(cloneArray(Array.from(cur), clone));
|
|
1769
|
+
} else if (cur instanceof Set) {
|
|
1770
|
+
o2[k] = new Set(cloneArray(Array.from(cur), clone));
|
|
2305
1771
|
} else if (ArrayBuffer.isView(cur)) {
|
|
2306
1772
|
o2[k] = copyBuffer(cur);
|
|
2307
1773
|
} else {
|
|
@@ -2312,17 +1778,21 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2312
1778
|
}
|
|
2313
1779
|
function cloneProto(o) {
|
|
2314
1780
|
if (typeof o !== "object" || o === null) return o;
|
|
1781
|
+
if (o instanceof Date) return new Date(o);
|
|
2315
1782
|
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
2316
|
-
if (o
|
|
2317
|
-
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
const cur = o[k];
|
|
1783
|
+
if (o instanceof Map) return new Map(cloneArray(Array.from(o), cloneProto));
|
|
1784
|
+
if (o instanceof Set) return new Set(cloneArray(Array.from(o), cloneProto));
|
|
1785
|
+
var o2 = {};
|
|
1786
|
+
for (var k in o) {
|
|
1787
|
+
var cur = o[k];
|
|
2322
1788
|
if (typeof cur !== "object" || cur === null) {
|
|
2323
1789
|
o2[k] = cur;
|
|
2324
|
-
} else if (cur
|
|
2325
|
-
o2[k] =
|
|
1790
|
+
} else if (cur instanceof Date) {
|
|
1791
|
+
o2[k] = new Date(cur);
|
|
1792
|
+
} else if (cur instanceof Map) {
|
|
1793
|
+
o2[k] = new Map(cloneArray(Array.from(cur), cloneProto));
|
|
1794
|
+
} else if (cur instanceof Set) {
|
|
1795
|
+
o2[k] = new Set(cloneArray(Array.from(cur), cloneProto));
|
|
2326
1796
|
} else if (ArrayBuffer.isView(cur)) {
|
|
2327
1797
|
o2[k] = copyBuffer(cur);
|
|
2328
1798
|
} else {
|
|
@@ -2333,33 +1803,23 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2333
1803
|
}
|
|
2334
1804
|
}
|
|
2335
1805
|
function rfdcCircles(opts) {
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
2339
|
-
constructorHandlers.set(Date, (o) => new Date(o));
|
|
2340
|
-
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
2341
|
-
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
2342
|
-
if (opts.constructorHandlers) {
|
|
2343
|
-
for (const handler2 of opts.constructorHandlers) {
|
|
2344
|
-
constructorHandlers.set(handler2[0], handler2[1]);
|
|
2345
|
-
}
|
|
2346
|
-
}
|
|
2347
|
-
let handler = null;
|
|
1806
|
+
var refs = [];
|
|
1807
|
+
var refsNew = [];
|
|
2348
1808
|
return opts.proto ? cloneProto : clone;
|
|
2349
1809
|
function cloneArray(a, fn) {
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
for (
|
|
2353
|
-
|
|
2354
|
-
|
|
1810
|
+
var keys = Object.keys(a);
|
|
1811
|
+
var a2 = new Array(keys.length);
|
|
1812
|
+
for (var i = 0; i < keys.length; i++) {
|
|
1813
|
+
var k = keys[i];
|
|
1814
|
+
var cur = a[k];
|
|
2355
1815
|
if (typeof cur !== "object" || cur === null) {
|
|
2356
1816
|
a2[k] = cur;
|
|
2357
|
-
} else if (cur
|
|
2358
|
-
a2[k] =
|
|
1817
|
+
} else if (cur instanceof Date) {
|
|
1818
|
+
a2[k] = new Date(cur);
|
|
2359
1819
|
} else if (ArrayBuffer.isView(cur)) {
|
|
2360
1820
|
a2[k] = copyBuffer(cur);
|
|
2361
1821
|
} else {
|
|
2362
|
-
|
|
1822
|
+
var index = refs.indexOf(cur);
|
|
2363
1823
|
if (index !== -1) {
|
|
2364
1824
|
a2[k] = refsNew[index];
|
|
2365
1825
|
} else {
|
|
@@ -2371,24 +1831,28 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2371
1831
|
}
|
|
2372
1832
|
function clone(o) {
|
|
2373
1833
|
if (typeof o !== "object" || o === null) return o;
|
|
1834
|
+
if (o instanceof Date) return new Date(o);
|
|
2374
1835
|
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
2375
|
-
if (o
|
|
2376
|
-
|
|
2377
|
-
}
|
|
2378
|
-
const o2 = {};
|
|
1836
|
+
if (o instanceof Map) return new Map(cloneArray(Array.from(o), clone));
|
|
1837
|
+
if (o instanceof Set) return new Set(cloneArray(Array.from(o), clone));
|
|
1838
|
+
var o2 = {};
|
|
2379
1839
|
refs.push(o);
|
|
2380
1840
|
refsNew.push(o2);
|
|
2381
|
-
for (
|
|
1841
|
+
for (var k in o) {
|
|
2382
1842
|
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
2383
|
-
|
|
1843
|
+
var cur = o[k];
|
|
2384
1844
|
if (typeof cur !== "object" || cur === null) {
|
|
2385
1845
|
o2[k] = cur;
|
|
2386
|
-
} else if (cur
|
|
2387
|
-
o2[k] =
|
|
1846
|
+
} else if (cur instanceof Date) {
|
|
1847
|
+
o2[k] = new Date(cur);
|
|
1848
|
+
} else if (cur instanceof Map) {
|
|
1849
|
+
o2[k] = new Map(cloneArray(Array.from(cur), clone));
|
|
1850
|
+
} else if (cur instanceof Set) {
|
|
1851
|
+
o2[k] = new Set(cloneArray(Array.from(cur), clone));
|
|
2388
1852
|
} else if (ArrayBuffer.isView(cur)) {
|
|
2389
1853
|
o2[k] = copyBuffer(cur);
|
|
2390
1854
|
} else {
|
|
2391
|
-
|
|
1855
|
+
var i = refs.indexOf(cur);
|
|
2392
1856
|
if (i !== -1) {
|
|
2393
1857
|
o2[k] = refsNew[i];
|
|
2394
1858
|
} else {
|
|
@@ -2402,23 +1866,27 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2402
1866
|
}
|
|
2403
1867
|
function cloneProto(o) {
|
|
2404
1868
|
if (typeof o !== "object" || o === null) return o;
|
|
1869
|
+
if (o instanceof Date) return new Date(o);
|
|
2405
1870
|
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
2406
|
-
if (o
|
|
2407
|
-
|
|
2408
|
-
}
|
|
2409
|
-
const o2 = {};
|
|
1871
|
+
if (o instanceof Map) return new Map(cloneArray(Array.from(o), cloneProto));
|
|
1872
|
+
if (o instanceof Set) return new Set(cloneArray(Array.from(o), cloneProto));
|
|
1873
|
+
var o2 = {};
|
|
2410
1874
|
refs.push(o);
|
|
2411
1875
|
refsNew.push(o2);
|
|
2412
|
-
for (
|
|
2413
|
-
|
|
1876
|
+
for (var k in o) {
|
|
1877
|
+
var cur = o[k];
|
|
2414
1878
|
if (typeof cur !== "object" || cur === null) {
|
|
2415
1879
|
o2[k] = cur;
|
|
2416
|
-
} else if (cur
|
|
2417
|
-
o2[k] =
|
|
1880
|
+
} else if (cur instanceof Date) {
|
|
1881
|
+
o2[k] = new Date(cur);
|
|
1882
|
+
} else if (cur instanceof Map) {
|
|
1883
|
+
o2[k] = new Map(cloneArray(Array.from(cur), cloneProto));
|
|
1884
|
+
} else if (cur instanceof Set) {
|
|
1885
|
+
o2[k] = new Set(cloneArray(Array.from(cur), cloneProto));
|
|
2418
1886
|
} else if (ArrayBuffer.isView(cur)) {
|
|
2419
1887
|
o2[k] = copyBuffer(cur);
|
|
2420
1888
|
} else {
|
|
2421
|
-
|
|
1889
|
+
var i = refs.indexOf(cur);
|
|
2422
1890
|
if (i !== -1) {
|
|
2423
1891
|
o2[k] = refsNew[i];
|
|
2424
1892
|
} else {
|
|
@@ -2434,7 +1902,7 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2434
1902
|
}
|
|
2435
1903
|
});
|
|
2436
1904
|
var require_default = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2437
|
-
"../../node_modules/.pnpm/rfdc@1.
|
|
1905
|
+
"../../node_modules/.pnpm/rfdc@1.3.1/node_modules/rfdc/default.js"(exports, module2) {
|
|
2438
1906
|
"use strict";
|
|
2439
1907
|
module2.exports = require_rfdc()();
|
|
2440
1908
|
}
|
|
@@ -2538,7 +2006,7 @@ var require_connection_pool = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2538
2006
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/connection-pool.js"(exports, module2) {
|
|
2539
2007
|
"use strict";
|
|
2540
2008
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
2541
|
-
var debug = require_src()("mssql:base");
|
|
2009
|
+
var debug = (0, import_chunk_OP2BDF75.require_src)()("mssql:base");
|
|
2542
2010
|
var { parseSqlConnectionString } = require_lib2();
|
|
2543
2011
|
var tarn = require_tarn();
|
|
2544
2012
|
var { IDS } = require_utils2();
|
|
@@ -3212,7 +2680,7 @@ var require_global_connection = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
3212
2680
|
var require_prepared_statement = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3213
2681
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/prepared-statement.js"(exports, module2) {
|
|
3214
2682
|
"use strict";
|
|
3215
|
-
var debug = require_src()("mssql:base");
|
|
2683
|
+
var debug = (0, import_chunk_OP2BDF75.require_src)()("mssql:base");
|
|
3216
2684
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
3217
2685
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|
|
3218
2686
|
var globalConnection = require_global_connection();
|
|
@@ -3521,7 +2989,7 @@ var require_prepared_statement = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
3521
2989
|
var require_request = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3522
2990
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/request.js"(exports, module2) {
|
|
3523
2991
|
"use strict";
|
|
3524
|
-
var debug = require_src()("mssql:base");
|
|
2992
|
+
var debug = (0, import_chunk_OP2BDF75.require_src)()("mssql:base");
|
|
3525
2993
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
3526
2994
|
var { Readable } = (0, import_chunk_2ESYSVXG.__require)("node:stream");
|
|
3527
2995
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|
|
@@ -4069,7 +3537,7 @@ var require_isolationlevel = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
4069
3537
|
var require_transaction = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4070
3538
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/transaction.js"(exports, module2) {
|
|
4071
3539
|
"use strict";
|
|
4072
|
-
var debug = require_src()("mssql:base");
|
|
3540
|
+
var debug = (0, import_chunk_OP2BDF75.require_src)()("mssql:base");
|
|
4073
3541
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
4074
3542
|
var { IDS } = require_utils2();
|
|
4075
3543
|
var globalConnection = require_global_connection();
|
|
@@ -17028,195 +16496,723 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17028
16496
|
if (!this._boundary) {
|
|
17029
16497
|
this._generateBoundary();
|
|
17030
16498
|
}
|
|
17031
|
-
return this._boundary;
|
|
17032
|
-
};
|
|
17033
|
-
FormData2.prototype.getBuffer = function() {
|
|
17034
|
-
var dataBuffer = new Buffer.alloc(0);
|
|
17035
|
-
var boundary = this.getBoundary();
|
|
17036
|
-
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
17037
|
-
if (typeof this._streams[i] !== "function") {
|
|
17038
|
-
if (Buffer.isBuffer(this._streams[i])) {
|
|
17039
|
-
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
17040
|
-
} else {
|
|
17041
|
-
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
16499
|
+
return this._boundary;
|
|
16500
|
+
};
|
|
16501
|
+
FormData2.prototype.getBuffer = function() {
|
|
16502
|
+
var dataBuffer = new Buffer.alloc(0);
|
|
16503
|
+
var boundary = this.getBoundary();
|
|
16504
|
+
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
16505
|
+
if (typeof this._streams[i] !== "function") {
|
|
16506
|
+
if (Buffer.isBuffer(this._streams[i])) {
|
|
16507
|
+
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
16508
|
+
} else {
|
|
16509
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
16510
|
+
}
|
|
16511
|
+
if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
16512
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]);
|
|
16513
|
+
}
|
|
16514
|
+
}
|
|
16515
|
+
}
|
|
16516
|
+
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
16517
|
+
};
|
|
16518
|
+
FormData2.prototype._generateBoundary = function() {
|
|
16519
|
+
var boundary = "--------------------------";
|
|
16520
|
+
for (var i = 0; i < 24; i++) {
|
|
16521
|
+
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
16522
|
+
}
|
|
16523
|
+
this._boundary = boundary;
|
|
16524
|
+
};
|
|
16525
|
+
FormData2.prototype.getLengthSync = function() {
|
|
16526
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
16527
|
+
if (this._streams.length) {
|
|
16528
|
+
knownLength += this._lastBoundary().length;
|
|
16529
|
+
}
|
|
16530
|
+
if (!this.hasKnownLength()) {
|
|
16531
|
+
this._error(new Error("Cannot calculate proper length in synchronous way."));
|
|
16532
|
+
}
|
|
16533
|
+
return knownLength;
|
|
16534
|
+
};
|
|
16535
|
+
FormData2.prototype.hasKnownLength = function() {
|
|
16536
|
+
var hasKnownLength = true;
|
|
16537
|
+
if (this._valuesToMeasure.length) {
|
|
16538
|
+
hasKnownLength = false;
|
|
16539
|
+
}
|
|
16540
|
+
return hasKnownLength;
|
|
16541
|
+
};
|
|
16542
|
+
FormData2.prototype.getLength = function(cb) {
|
|
16543
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
16544
|
+
if (this._streams.length) {
|
|
16545
|
+
knownLength += this._lastBoundary().length;
|
|
16546
|
+
}
|
|
16547
|
+
if (!this._valuesToMeasure.length) {
|
|
16548
|
+
process.nextTick(cb.bind(this, null, knownLength));
|
|
16549
|
+
return;
|
|
16550
|
+
}
|
|
16551
|
+
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
16552
|
+
if (err) {
|
|
16553
|
+
cb(err);
|
|
16554
|
+
return;
|
|
16555
|
+
}
|
|
16556
|
+
values.forEach(function(length) {
|
|
16557
|
+
knownLength += length;
|
|
16558
|
+
});
|
|
16559
|
+
cb(null, knownLength);
|
|
16560
|
+
});
|
|
16561
|
+
};
|
|
16562
|
+
FormData2.prototype.submit = function(params, cb) {
|
|
16563
|
+
var request3, options, defaults = { method: "post" };
|
|
16564
|
+
if (typeof params == "string") {
|
|
16565
|
+
params = parseUrl(params);
|
|
16566
|
+
options = populate({
|
|
16567
|
+
port: params.port,
|
|
16568
|
+
path: params.pathname,
|
|
16569
|
+
host: params.hostname,
|
|
16570
|
+
protocol: params.protocol
|
|
16571
|
+
}, defaults);
|
|
16572
|
+
} else {
|
|
16573
|
+
options = populate(params, defaults);
|
|
16574
|
+
if (!options.port) {
|
|
16575
|
+
options.port = options.protocol == "https:" ? 443 : 80;
|
|
16576
|
+
}
|
|
16577
|
+
}
|
|
16578
|
+
options.headers = this.getHeaders(params.headers);
|
|
16579
|
+
if (options.protocol == "https:") {
|
|
16580
|
+
request3 = https4.request(options);
|
|
16581
|
+
} else {
|
|
16582
|
+
request3 = http4.request(options);
|
|
16583
|
+
}
|
|
16584
|
+
this.getLength(function(err, length) {
|
|
16585
|
+
if (err && err !== "Unknown stream") {
|
|
16586
|
+
this._error(err);
|
|
16587
|
+
return;
|
|
16588
|
+
}
|
|
16589
|
+
if (length) {
|
|
16590
|
+
request3.setHeader("Content-Length", length);
|
|
16591
|
+
}
|
|
16592
|
+
this.pipe(request3);
|
|
16593
|
+
if (cb) {
|
|
16594
|
+
var onResponse;
|
|
16595
|
+
var callback = function(error, responce) {
|
|
16596
|
+
request3.removeListener("error", callback);
|
|
16597
|
+
request3.removeListener("response", onResponse);
|
|
16598
|
+
return cb.call(this, error, responce);
|
|
16599
|
+
};
|
|
16600
|
+
onResponse = callback.bind(this, null);
|
|
16601
|
+
request3.on("error", callback);
|
|
16602
|
+
request3.on("response", onResponse);
|
|
16603
|
+
}
|
|
16604
|
+
}.bind(this));
|
|
16605
|
+
return request3;
|
|
16606
|
+
};
|
|
16607
|
+
FormData2.prototype._error = function(err) {
|
|
16608
|
+
if (!this.error) {
|
|
16609
|
+
this.error = err;
|
|
16610
|
+
this.pause();
|
|
16611
|
+
this.emit("error", err);
|
|
16612
|
+
}
|
|
16613
|
+
};
|
|
16614
|
+
FormData2.prototype.toString = function() {
|
|
16615
|
+
return "[object FormData]";
|
|
16616
|
+
};
|
|
16617
|
+
setToStringTag(FormData2, "FormData");
|
|
16618
|
+
}
|
|
16619
|
+
});
|
|
16620
|
+
function formDataPolicy() {
|
|
16621
|
+
return {
|
|
16622
|
+
name: formDataPolicyName,
|
|
16623
|
+
async sendRequest(request3, next) {
|
|
16624
|
+
if (request3.formData) {
|
|
16625
|
+
const contentType = request3.headers.get("Content-Type");
|
|
16626
|
+
if (contentType && contentType.indexOf("application/x-www-form-urlencoded") !== -1) {
|
|
16627
|
+
request3.body = wwwFormUrlEncode(request3.formData);
|
|
16628
|
+
request3.formData = void 0;
|
|
16629
|
+
} else {
|
|
16630
|
+
prepareFormData(request3.formData, request3);
|
|
16631
|
+
}
|
|
16632
|
+
}
|
|
16633
|
+
return next(request3);
|
|
16634
|
+
}
|
|
16635
|
+
};
|
|
16636
|
+
}
|
|
16637
|
+
function wwwFormUrlEncode(formData) {
|
|
16638
|
+
const urlSearchParams = new URLSearchParams();
|
|
16639
|
+
for (const [key, value] of Object.entries(formData)) {
|
|
16640
|
+
if (Array.isArray(value)) {
|
|
16641
|
+
for (const subValue of value) {
|
|
16642
|
+
urlSearchParams.append(key, subValue.toString());
|
|
16643
|
+
}
|
|
16644
|
+
} else {
|
|
16645
|
+
urlSearchParams.append(key, value.toString());
|
|
16646
|
+
}
|
|
16647
|
+
}
|
|
16648
|
+
return urlSearchParams.toString();
|
|
16649
|
+
}
|
|
16650
|
+
async function prepareFormData(formData, request3) {
|
|
16651
|
+
const requestForm = new import_form_data.default();
|
|
16652
|
+
for (const formKey of Object.keys(formData)) {
|
|
16653
|
+
const formValue = formData[formKey];
|
|
16654
|
+
if (Array.isArray(formValue)) {
|
|
16655
|
+
for (const subValue of formValue) {
|
|
16656
|
+
requestForm.append(formKey, subValue);
|
|
16657
|
+
}
|
|
16658
|
+
} else {
|
|
16659
|
+
requestForm.append(formKey, formValue);
|
|
16660
|
+
}
|
|
16661
|
+
}
|
|
16662
|
+
request3.body = requestForm;
|
|
16663
|
+
request3.formData = void 0;
|
|
16664
|
+
const contentType = request3.headers.get("Content-Type");
|
|
16665
|
+
if (contentType && contentType.indexOf("multipart/form-data") !== -1) {
|
|
16666
|
+
request3.headers.set("Content-Type", `multipart/form-data; boundary=${requestForm.getBoundary()}`);
|
|
16667
|
+
}
|
|
16668
|
+
try {
|
|
16669
|
+
const contentLength = await new Promise((resolve, reject) => {
|
|
16670
|
+
requestForm.getLength((err, length) => {
|
|
16671
|
+
if (err) {
|
|
16672
|
+
reject(err);
|
|
16673
|
+
} else {
|
|
16674
|
+
resolve(length);
|
|
16675
|
+
}
|
|
16676
|
+
});
|
|
16677
|
+
});
|
|
16678
|
+
request3.headers.set("Content-Length", contentLength);
|
|
16679
|
+
} catch (e) {
|
|
16680
|
+
}
|
|
16681
|
+
}
|
|
16682
|
+
var import_form_data, formDataPolicyName;
|
|
16683
|
+
var init_formDataPolicy = (0, import_chunk_2ESYSVXG.__esm)({
|
|
16684
|
+
"../../node_modules/.pnpm/@azure+core-rest-pipeline@1.9.2/node_modules/@azure/core-rest-pipeline/dist-esm/src/policies/formDataPolicy.js"() {
|
|
16685
|
+
"use strict";
|
|
16686
|
+
import_form_data = (0, import_chunk_2ESYSVXG.__toESM)(require_form_data());
|
|
16687
|
+
formDataPolicyName = "formDataPolicy";
|
|
16688
|
+
}
|
|
16689
|
+
});
|
|
16690
|
+
var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
16691
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
16692
|
+
"use strict";
|
|
16693
|
+
function setup(env) {
|
|
16694
|
+
createDebug.debug = createDebug;
|
|
16695
|
+
createDebug.default = createDebug;
|
|
16696
|
+
createDebug.coerce = coerce;
|
|
16697
|
+
createDebug.disable = disable2;
|
|
16698
|
+
createDebug.enable = enable2;
|
|
16699
|
+
createDebug.enabled = enabled2;
|
|
16700
|
+
createDebug.humanize = (0, import_chunk_OP2BDF75.require_ms)();
|
|
16701
|
+
createDebug.destroy = destroy2;
|
|
16702
|
+
Object.keys(env).forEach((key) => {
|
|
16703
|
+
createDebug[key] = env[key];
|
|
16704
|
+
});
|
|
16705
|
+
createDebug.names = [];
|
|
16706
|
+
createDebug.skips = [];
|
|
16707
|
+
createDebug.formatters = {};
|
|
16708
|
+
function selectColor(namespace) {
|
|
16709
|
+
let hash = 0;
|
|
16710
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
16711
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
16712
|
+
hash |= 0;
|
|
16713
|
+
}
|
|
16714
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
16715
|
+
}
|
|
16716
|
+
createDebug.selectColor = selectColor;
|
|
16717
|
+
function createDebug(namespace) {
|
|
16718
|
+
let prevTime;
|
|
16719
|
+
let enableOverride = null;
|
|
16720
|
+
let namespacesCache;
|
|
16721
|
+
let enabledCache;
|
|
16722
|
+
function debug(...args) {
|
|
16723
|
+
if (!debug.enabled) {
|
|
16724
|
+
return;
|
|
16725
|
+
}
|
|
16726
|
+
const self2 = debug;
|
|
16727
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
16728
|
+
const ms = curr - (prevTime || curr);
|
|
16729
|
+
self2.diff = ms;
|
|
16730
|
+
self2.prev = prevTime;
|
|
16731
|
+
self2.curr = curr;
|
|
16732
|
+
prevTime = curr;
|
|
16733
|
+
args[0] = createDebug.coerce(args[0]);
|
|
16734
|
+
if (typeof args[0] !== "string") {
|
|
16735
|
+
args.unshift("%O");
|
|
16736
|
+
}
|
|
16737
|
+
let index = 0;
|
|
16738
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
16739
|
+
if (match === "%%") {
|
|
16740
|
+
return "%";
|
|
16741
|
+
}
|
|
16742
|
+
index++;
|
|
16743
|
+
const formatter = createDebug.formatters[format];
|
|
16744
|
+
if (typeof formatter === "function") {
|
|
16745
|
+
const val = args[index];
|
|
16746
|
+
match = formatter.call(self2, val);
|
|
16747
|
+
args.splice(index, 1);
|
|
16748
|
+
index--;
|
|
16749
|
+
}
|
|
16750
|
+
return match;
|
|
16751
|
+
});
|
|
16752
|
+
createDebug.formatArgs.call(self2, args);
|
|
16753
|
+
const logFn = self2.log || createDebug.log;
|
|
16754
|
+
logFn.apply(self2, args);
|
|
16755
|
+
}
|
|
16756
|
+
debug.namespace = namespace;
|
|
16757
|
+
debug.useColors = createDebug.useColors();
|
|
16758
|
+
debug.color = createDebug.selectColor(namespace);
|
|
16759
|
+
debug.extend = extend2;
|
|
16760
|
+
debug.destroy = createDebug.destroy;
|
|
16761
|
+
Object.defineProperty(debug, "enabled", {
|
|
16762
|
+
enumerable: true,
|
|
16763
|
+
configurable: false,
|
|
16764
|
+
get: () => {
|
|
16765
|
+
if (enableOverride !== null) {
|
|
16766
|
+
return enableOverride;
|
|
16767
|
+
}
|
|
16768
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
16769
|
+
namespacesCache = createDebug.namespaces;
|
|
16770
|
+
enabledCache = createDebug.enabled(namespace);
|
|
16771
|
+
}
|
|
16772
|
+
return enabledCache;
|
|
16773
|
+
},
|
|
16774
|
+
set: (v) => {
|
|
16775
|
+
enableOverride = v;
|
|
16776
|
+
}
|
|
16777
|
+
});
|
|
16778
|
+
if (typeof createDebug.init === "function") {
|
|
16779
|
+
createDebug.init(debug);
|
|
16780
|
+
}
|
|
16781
|
+
return debug;
|
|
16782
|
+
}
|
|
16783
|
+
function extend2(namespace, delimiter) {
|
|
16784
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
16785
|
+
newDebug.log = this.log;
|
|
16786
|
+
return newDebug;
|
|
16787
|
+
}
|
|
16788
|
+
function enable2(namespaces) {
|
|
16789
|
+
createDebug.save(namespaces);
|
|
16790
|
+
createDebug.namespaces = namespaces;
|
|
16791
|
+
createDebug.names = [];
|
|
16792
|
+
createDebug.skips = [];
|
|
16793
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
16794
|
+
for (const ns of split) {
|
|
16795
|
+
if (ns[0] === "-") {
|
|
16796
|
+
createDebug.skips.push(ns.slice(1));
|
|
16797
|
+
} else {
|
|
16798
|
+
createDebug.names.push(ns);
|
|
16799
|
+
}
|
|
16800
|
+
}
|
|
16801
|
+
}
|
|
16802
|
+
function matchesTemplate(search, template) {
|
|
16803
|
+
let searchIndex = 0;
|
|
16804
|
+
let templateIndex = 0;
|
|
16805
|
+
let starIndex = -1;
|
|
16806
|
+
let matchIndex = 0;
|
|
16807
|
+
while (searchIndex < search.length) {
|
|
16808
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
16809
|
+
if (template[templateIndex] === "*") {
|
|
16810
|
+
starIndex = templateIndex;
|
|
16811
|
+
matchIndex = searchIndex;
|
|
16812
|
+
templateIndex++;
|
|
16813
|
+
} else {
|
|
16814
|
+
searchIndex++;
|
|
16815
|
+
templateIndex++;
|
|
16816
|
+
}
|
|
16817
|
+
} else if (starIndex !== -1) {
|
|
16818
|
+
templateIndex = starIndex + 1;
|
|
16819
|
+
matchIndex++;
|
|
16820
|
+
searchIndex = matchIndex;
|
|
16821
|
+
} else {
|
|
16822
|
+
return false;
|
|
16823
|
+
}
|
|
16824
|
+
}
|
|
16825
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
16826
|
+
templateIndex++;
|
|
16827
|
+
}
|
|
16828
|
+
return templateIndex === template.length;
|
|
16829
|
+
}
|
|
16830
|
+
function disable2() {
|
|
16831
|
+
const namespaces = [
|
|
16832
|
+
...createDebug.names,
|
|
16833
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
16834
|
+
].join(",");
|
|
16835
|
+
createDebug.enable("");
|
|
16836
|
+
return namespaces;
|
|
16837
|
+
}
|
|
16838
|
+
function enabled2(name3) {
|
|
16839
|
+
for (const skip of createDebug.skips) {
|
|
16840
|
+
if (matchesTemplate(name3, skip)) {
|
|
16841
|
+
return false;
|
|
17042
16842
|
}
|
|
17043
|
-
|
|
17044
|
-
|
|
16843
|
+
}
|
|
16844
|
+
for (const ns of createDebug.names) {
|
|
16845
|
+
if (matchesTemplate(name3, ns)) {
|
|
16846
|
+
return true;
|
|
17045
16847
|
}
|
|
17046
16848
|
}
|
|
16849
|
+
return false;
|
|
17047
16850
|
}
|
|
17048
|
-
|
|
17049
|
-
|
|
17050
|
-
|
|
17051
|
-
|
|
17052
|
-
|
|
17053
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
17054
|
-
}
|
|
17055
|
-
this._boundary = boundary;
|
|
17056
|
-
};
|
|
17057
|
-
FormData2.prototype.getLengthSync = function() {
|
|
17058
|
-
var knownLength = this._overheadLength + this._valueLength;
|
|
17059
|
-
if (this._streams.length) {
|
|
17060
|
-
knownLength += this._lastBoundary().length;
|
|
16851
|
+
function coerce(val) {
|
|
16852
|
+
if (val instanceof Error) {
|
|
16853
|
+
return val.stack || val.message;
|
|
16854
|
+
}
|
|
16855
|
+
return val;
|
|
17061
16856
|
}
|
|
17062
|
-
|
|
17063
|
-
|
|
16857
|
+
function destroy2() {
|
|
16858
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
17064
16859
|
}
|
|
17065
|
-
|
|
17066
|
-
|
|
17067
|
-
|
|
17068
|
-
|
|
17069
|
-
|
|
17070
|
-
|
|
16860
|
+
createDebug.enable(createDebug.load());
|
|
16861
|
+
return createDebug;
|
|
16862
|
+
}
|
|
16863
|
+
module2.exports = setup;
|
|
16864
|
+
}
|
|
16865
|
+
});
|
|
16866
|
+
var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
16867
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
16868
|
+
"use strict";
|
|
16869
|
+
exports.formatArgs = formatArgs;
|
|
16870
|
+
exports.save = save;
|
|
16871
|
+
exports.load = load;
|
|
16872
|
+
exports.useColors = useColors;
|
|
16873
|
+
exports.storage = localstorage();
|
|
16874
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
16875
|
+
let warned = false;
|
|
16876
|
+
return () => {
|
|
16877
|
+
if (!warned) {
|
|
16878
|
+
warned = true;
|
|
16879
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
16880
|
+
}
|
|
16881
|
+
};
|
|
16882
|
+
})();
|
|
16883
|
+
exports.colors = [
|
|
16884
|
+
"#0000CC",
|
|
16885
|
+
"#0000FF",
|
|
16886
|
+
"#0033CC",
|
|
16887
|
+
"#0033FF",
|
|
16888
|
+
"#0066CC",
|
|
16889
|
+
"#0066FF",
|
|
16890
|
+
"#0099CC",
|
|
16891
|
+
"#0099FF",
|
|
16892
|
+
"#00CC00",
|
|
16893
|
+
"#00CC33",
|
|
16894
|
+
"#00CC66",
|
|
16895
|
+
"#00CC99",
|
|
16896
|
+
"#00CCCC",
|
|
16897
|
+
"#00CCFF",
|
|
16898
|
+
"#3300CC",
|
|
16899
|
+
"#3300FF",
|
|
16900
|
+
"#3333CC",
|
|
16901
|
+
"#3333FF",
|
|
16902
|
+
"#3366CC",
|
|
16903
|
+
"#3366FF",
|
|
16904
|
+
"#3399CC",
|
|
16905
|
+
"#3399FF",
|
|
16906
|
+
"#33CC00",
|
|
16907
|
+
"#33CC33",
|
|
16908
|
+
"#33CC66",
|
|
16909
|
+
"#33CC99",
|
|
16910
|
+
"#33CCCC",
|
|
16911
|
+
"#33CCFF",
|
|
16912
|
+
"#6600CC",
|
|
16913
|
+
"#6600FF",
|
|
16914
|
+
"#6633CC",
|
|
16915
|
+
"#6633FF",
|
|
16916
|
+
"#66CC00",
|
|
16917
|
+
"#66CC33",
|
|
16918
|
+
"#9900CC",
|
|
16919
|
+
"#9900FF",
|
|
16920
|
+
"#9933CC",
|
|
16921
|
+
"#9933FF",
|
|
16922
|
+
"#99CC00",
|
|
16923
|
+
"#99CC33",
|
|
16924
|
+
"#CC0000",
|
|
16925
|
+
"#CC0033",
|
|
16926
|
+
"#CC0066",
|
|
16927
|
+
"#CC0099",
|
|
16928
|
+
"#CC00CC",
|
|
16929
|
+
"#CC00FF",
|
|
16930
|
+
"#CC3300",
|
|
16931
|
+
"#CC3333",
|
|
16932
|
+
"#CC3366",
|
|
16933
|
+
"#CC3399",
|
|
16934
|
+
"#CC33CC",
|
|
16935
|
+
"#CC33FF",
|
|
16936
|
+
"#CC6600",
|
|
16937
|
+
"#CC6633",
|
|
16938
|
+
"#CC9900",
|
|
16939
|
+
"#CC9933",
|
|
16940
|
+
"#CCCC00",
|
|
16941
|
+
"#CCCC33",
|
|
16942
|
+
"#FF0000",
|
|
16943
|
+
"#FF0033",
|
|
16944
|
+
"#FF0066",
|
|
16945
|
+
"#FF0099",
|
|
16946
|
+
"#FF00CC",
|
|
16947
|
+
"#FF00FF",
|
|
16948
|
+
"#FF3300",
|
|
16949
|
+
"#FF3333",
|
|
16950
|
+
"#FF3366",
|
|
16951
|
+
"#FF3399",
|
|
16952
|
+
"#FF33CC",
|
|
16953
|
+
"#FF33FF",
|
|
16954
|
+
"#FF6600",
|
|
16955
|
+
"#FF6633",
|
|
16956
|
+
"#FF9900",
|
|
16957
|
+
"#FF9933",
|
|
16958
|
+
"#FFCC00",
|
|
16959
|
+
"#FFCC33"
|
|
16960
|
+
];
|
|
16961
|
+
function useColors() {
|
|
16962
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
16963
|
+
return true;
|
|
17071
16964
|
}
|
|
17072
|
-
|
|
17073
|
-
|
|
17074
|
-
FormData2.prototype.getLength = function(cb) {
|
|
17075
|
-
var knownLength = this._overheadLength + this._valueLength;
|
|
17076
|
-
if (this._streams.length) {
|
|
17077
|
-
knownLength += this._lastBoundary().length;
|
|
16965
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
16966
|
+
return false;
|
|
17078
16967
|
}
|
|
17079
|
-
|
|
17080
|
-
|
|
16968
|
+
let m;
|
|
16969
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
16970
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
16971
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
16972
|
+
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
|
|
16973
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
16974
|
+
}
|
|
16975
|
+
function formatArgs(args) {
|
|
16976
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
16977
|
+
if (!this.useColors) {
|
|
17081
16978
|
return;
|
|
17082
16979
|
}
|
|
17083
|
-
|
|
17084
|
-
|
|
17085
|
-
|
|
16980
|
+
const c = "color: " + this.color;
|
|
16981
|
+
args.splice(1, 0, c, "color: inherit");
|
|
16982
|
+
let index = 0;
|
|
16983
|
+
let lastC = 0;
|
|
16984
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
16985
|
+
if (match === "%%") {
|
|
17086
16986
|
return;
|
|
17087
16987
|
}
|
|
17088
|
-
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
|
|
16988
|
+
index++;
|
|
16989
|
+
if (match === "%c") {
|
|
16990
|
+
lastC = index;
|
|
16991
|
+
}
|
|
17092
16992
|
});
|
|
17093
|
-
|
|
17094
|
-
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
}, defaults);
|
|
17104
|
-
} else {
|
|
17105
|
-
options = populate(params, defaults);
|
|
17106
|
-
if (!options.port) {
|
|
17107
|
-
options.port = options.protocol == "https:" ? 443 : 80;
|
|
16993
|
+
args.splice(lastC, 0, c);
|
|
16994
|
+
}
|
|
16995
|
+
exports.log = console.debug || console.log || (() => {
|
|
16996
|
+
});
|
|
16997
|
+
function save(namespaces) {
|
|
16998
|
+
try {
|
|
16999
|
+
if (namespaces) {
|
|
17000
|
+
exports.storage.setItem("debug", namespaces);
|
|
17001
|
+
} else {
|
|
17002
|
+
exports.storage.removeItem("debug");
|
|
17108
17003
|
}
|
|
17004
|
+
} catch (error) {
|
|
17109
17005
|
}
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
|
|
17114
|
-
|
|
17006
|
+
}
|
|
17007
|
+
function load() {
|
|
17008
|
+
let r;
|
|
17009
|
+
try {
|
|
17010
|
+
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
17011
|
+
} catch (error) {
|
|
17115
17012
|
}
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17123
|
-
|
|
17124
|
-
|
|
17125
|
-
|
|
17126
|
-
|
|
17127
|
-
|
|
17128
|
-
|
|
17129
|
-
|
|
17130
|
-
|
|
17131
|
-
|
|
17132
|
-
|
|
17133
|
-
|
|
17134
|
-
request3.on("response", onResponse);
|
|
17135
|
-
}
|
|
17136
|
-
}.bind(this));
|
|
17137
|
-
return request3;
|
|
17138
|
-
};
|
|
17139
|
-
FormData2.prototype._error = function(err) {
|
|
17140
|
-
if (!this.error) {
|
|
17141
|
-
this.error = err;
|
|
17142
|
-
this.pause();
|
|
17143
|
-
this.emit("error", err);
|
|
17013
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
17014
|
+
r = process.env.DEBUG;
|
|
17015
|
+
}
|
|
17016
|
+
return r;
|
|
17017
|
+
}
|
|
17018
|
+
function localstorage() {
|
|
17019
|
+
try {
|
|
17020
|
+
return localStorage;
|
|
17021
|
+
} catch (error) {
|
|
17022
|
+
}
|
|
17023
|
+
}
|
|
17024
|
+
module2.exports = require_common()(exports);
|
|
17025
|
+
var { formatters } = module2.exports;
|
|
17026
|
+
formatters.j = function(v) {
|
|
17027
|
+
try {
|
|
17028
|
+
return JSON.stringify(v);
|
|
17029
|
+
} catch (error) {
|
|
17030
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
17144
17031
|
}
|
|
17145
17032
|
};
|
|
17146
|
-
FormData2.prototype.toString = function() {
|
|
17147
|
-
return "[object FormData]";
|
|
17148
|
-
};
|
|
17149
|
-
setToStringTag(FormData2, "FormData");
|
|
17150
17033
|
}
|
|
17151
17034
|
});
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
|
|
17155
|
-
|
|
17156
|
-
|
|
17157
|
-
|
|
17158
|
-
|
|
17159
|
-
|
|
17160
|
-
|
|
17161
|
-
|
|
17162
|
-
|
|
17163
|
-
|
|
17035
|
+
var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
17036
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
17037
|
+
"use strict";
|
|
17038
|
+
var tty = (0, import_chunk_2ESYSVXG.__require)("tty");
|
|
17039
|
+
var util2 = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
17040
|
+
exports.init = init2;
|
|
17041
|
+
exports.log = log2;
|
|
17042
|
+
exports.formatArgs = formatArgs;
|
|
17043
|
+
exports.save = save;
|
|
17044
|
+
exports.load = load;
|
|
17045
|
+
exports.useColors = useColors;
|
|
17046
|
+
exports.destroy = util2.deprecate(
|
|
17047
|
+
() => {
|
|
17048
|
+
},
|
|
17049
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
17050
|
+
);
|
|
17051
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
17052
|
+
try {
|
|
17053
|
+
const supportsColor = (0, import_chunk_OP2BDF75.require_supports_color)();
|
|
17054
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
17055
|
+
exports.colors = [
|
|
17056
|
+
20,
|
|
17057
|
+
21,
|
|
17058
|
+
26,
|
|
17059
|
+
27,
|
|
17060
|
+
32,
|
|
17061
|
+
33,
|
|
17062
|
+
38,
|
|
17063
|
+
39,
|
|
17064
|
+
40,
|
|
17065
|
+
41,
|
|
17066
|
+
42,
|
|
17067
|
+
43,
|
|
17068
|
+
44,
|
|
17069
|
+
45,
|
|
17070
|
+
56,
|
|
17071
|
+
57,
|
|
17072
|
+
62,
|
|
17073
|
+
63,
|
|
17074
|
+
68,
|
|
17075
|
+
69,
|
|
17076
|
+
74,
|
|
17077
|
+
75,
|
|
17078
|
+
76,
|
|
17079
|
+
77,
|
|
17080
|
+
78,
|
|
17081
|
+
79,
|
|
17082
|
+
80,
|
|
17083
|
+
81,
|
|
17084
|
+
92,
|
|
17085
|
+
93,
|
|
17086
|
+
98,
|
|
17087
|
+
99,
|
|
17088
|
+
112,
|
|
17089
|
+
113,
|
|
17090
|
+
128,
|
|
17091
|
+
129,
|
|
17092
|
+
134,
|
|
17093
|
+
135,
|
|
17094
|
+
148,
|
|
17095
|
+
149,
|
|
17096
|
+
160,
|
|
17097
|
+
161,
|
|
17098
|
+
162,
|
|
17099
|
+
163,
|
|
17100
|
+
164,
|
|
17101
|
+
165,
|
|
17102
|
+
166,
|
|
17103
|
+
167,
|
|
17104
|
+
168,
|
|
17105
|
+
169,
|
|
17106
|
+
170,
|
|
17107
|
+
171,
|
|
17108
|
+
172,
|
|
17109
|
+
173,
|
|
17110
|
+
178,
|
|
17111
|
+
179,
|
|
17112
|
+
184,
|
|
17113
|
+
185,
|
|
17114
|
+
196,
|
|
17115
|
+
197,
|
|
17116
|
+
198,
|
|
17117
|
+
199,
|
|
17118
|
+
200,
|
|
17119
|
+
201,
|
|
17120
|
+
202,
|
|
17121
|
+
203,
|
|
17122
|
+
204,
|
|
17123
|
+
205,
|
|
17124
|
+
206,
|
|
17125
|
+
207,
|
|
17126
|
+
208,
|
|
17127
|
+
209,
|
|
17128
|
+
214,
|
|
17129
|
+
215,
|
|
17130
|
+
220,
|
|
17131
|
+
221
|
|
17132
|
+
];
|
|
17164
17133
|
}
|
|
17165
|
-
|
|
17134
|
+
} catch (error) {
|
|
17166
17135
|
}
|
|
17167
|
-
|
|
17168
|
-
|
|
17169
|
-
|
|
17170
|
-
|
|
17171
|
-
|
|
17172
|
-
|
|
17173
|
-
|
|
17174
|
-
|
|
17136
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
17137
|
+
return /^debug_/i.test(key);
|
|
17138
|
+
}).reduce((obj, key) => {
|
|
17139
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2, k) => {
|
|
17140
|
+
return k.toUpperCase();
|
|
17141
|
+
});
|
|
17142
|
+
let val = process.env[key];
|
|
17143
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
17144
|
+
val = true;
|
|
17145
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
17146
|
+
val = false;
|
|
17147
|
+
} else if (val === "null") {
|
|
17148
|
+
val = null;
|
|
17149
|
+
} else {
|
|
17150
|
+
val = Number(val);
|
|
17175
17151
|
}
|
|
17176
|
-
|
|
17177
|
-
|
|
17152
|
+
obj[prop] = val;
|
|
17153
|
+
return obj;
|
|
17154
|
+
}, {});
|
|
17155
|
+
function useColors() {
|
|
17156
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
17178
17157
|
}
|
|
17179
|
-
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17158
|
+
function formatArgs(args) {
|
|
17159
|
+
const { namespace: name3, useColors: useColors2 } = this;
|
|
17160
|
+
if (useColors2) {
|
|
17161
|
+
const c = this.color;
|
|
17162
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
17163
|
+
const prefix = ` ${colorCode};1m${name3} \x1B[0m`;
|
|
17164
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
17165
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
17166
|
+
} else {
|
|
17167
|
+
args[0] = getDate() + name3 + " " + args[0];
|
|
17189
17168
|
}
|
|
17190
|
-
} else {
|
|
17191
|
-
requestForm.append(formKey, formValue);
|
|
17192
17169
|
}
|
|
17170
|
+
function getDate() {
|
|
17171
|
+
if (exports.inspectOpts.hideDate) {
|
|
17172
|
+
return "";
|
|
17173
|
+
}
|
|
17174
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
17175
|
+
}
|
|
17176
|
+
function log2(...args) {
|
|
17177
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
17178
|
+
}
|
|
17179
|
+
function save(namespaces) {
|
|
17180
|
+
if (namespaces) {
|
|
17181
|
+
process.env.DEBUG = namespaces;
|
|
17182
|
+
} else {
|
|
17183
|
+
delete process.env.DEBUG;
|
|
17184
|
+
}
|
|
17185
|
+
}
|
|
17186
|
+
function load() {
|
|
17187
|
+
return process.env.DEBUG;
|
|
17188
|
+
}
|
|
17189
|
+
function init2(debug) {
|
|
17190
|
+
debug.inspectOpts = {};
|
|
17191
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
17192
|
+
for (let i = 0; i < keys.length; i++) {
|
|
17193
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
17194
|
+
}
|
|
17195
|
+
}
|
|
17196
|
+
module2.exports = require_common()(exports);
|
|
17197
|
+
var { formatters } = module2.exports;
|
|
17198
|
+
formatters.o = function(v) {
|
|
17199
|
+
this.inspectOpts.colors = this.useColors;
|
|
17200
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
17201
|
+
};
|
|
17202
|
+
formatters.O = function(v) {
|
|
17203
|
+
this.inspectOpts.colors = this.useColors;
|
|
17204
|
+
return util2.inspect(v, this.inspectOpts);
|
|
17205
|
+
};
|
|
17193
17206
|
}
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
if (contentType && contentType.indexOf("multipart/form-data") !== -1) {
|
|
17198
|
-
request3.headers.set("Content-Type", `multipart/form-data; boundary=${requestForm.getBoundary()}`);
|
|
17199
|
-
}
|
|
17200
|
-
try {
|
|
17201
|
-
const contentLength = await new Promise((resolve, reject) => {
|
|
17202
|
-
requestForm.getLength((err, length) => {
|
|
17203
|
-
if (err) {
|
|
17204
|
-
reject(err);
|
|
17205
|
-
} else {
|
|
17206
|
-
resolve(length);
|
|
17207
|
-
}
|
|
17208
|
-
});
|
|
17209
|
-
});
|
|
17210
|
-
request3.headers.set("Content-Length", contentLength);
|
|
17211
|
-
} catch (e) {
|
|
17212
|
-
}
|
|
17213
|
-
}
|
|
17214
|
-
var import_form_data, formDataPolicyName;
|
|
17215
|
-
var init_formDataPolicy = (0, import_chunk_2ESYSVXG.__esm)({
|
|
17216
|
-
"../../node_modules/.pnpm/@azure+core-rest-pipeline@1.9.2/node_modules/@azure/core-rest-pipeline/dist-esm/src/policies/formDataPolicy.js"() {
|
|
17207
|
+
});
|
|
17208
|
+
var require_src2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
17209
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
17217
17210
|
"use strict";
|
|
17218
|
-
|
|
17219
|
-
|
|
17211
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
17212
|
+
module2.exports = require_browser();
|
|
17213
|
+
} else {
|
|
17214
|
+
module2.exports = require_node();
|
|
17215
|
+
}
|
|
17220
17216
|
}
|
|
17221
17217
|
});
|
|
17222
17218
|
var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
@@ -17239,14 +17235,14 @@ var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17239
17235
|
exports.default = promisify2;
|
|
17240
17236
|
}
|
|
17241
17237
|
});
|
|
17242
|
-
var
|
|
17238
|
+
var require_src3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
17243
17239
|
"../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module2) {
|
|
17244
17240
|
"use strict";
|
|
17245
17241
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
17246
17242
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17247
17243
|
};
|
|
17248
17244
|
var events_1 = (0, import_chunk_2ESYSVXG.__require)("events");
|
|
17249
|
-
var debug_1 = __importDefault(
|
|
17245
|
+
var debug_1 = __importDefault(require_src2());
|
|
17250
17246
|
var promisify_1 = __importDefault(require_promisify());
|
|
17251
17247
|
var debug = debug_1.default("agent-base");
|
|
17252
17248
|
function isAgent(v) {
|
|
@@ -17427,7 +17423,7 @@ var require_parse_proxy_response = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17427
17423
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17428
17424
|
};
|
|
17429
17425
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17430
|
-
var debug_1 = __importDefault(
|
|
17426
|
+
var debug_1 = __importDefault(require_src2());
|
|
17431
17427
|
var debug = debug_1.default("https-proxy-agent:parse-proxy-response");
|
|
17432
17428
|
function parseProxyResponse(socket) {
|
|
17433
17429
|
return new Promise((resolve, reject) => {
|
|
@@ -17522,8 +17518,8 @@ var require_agent = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17522
17518
|
var tls_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("tls"));
|
|
17523
17519
|
var url_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("url"));
|
|
17524
17520
|
var assert_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("assert"));
|
|
17525
|
-
var debug_1 = __importDefault(
|
|
17526
|
-
var agent_base_1 =
|
|
17521
|
+
var debug_1 = __importDefault(require_src2());
|
|
17522
|
+
var agent_base_1 = require_src3();
|
|
17527
17523
|
var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
|
|
17528
17524
|
var debug = debug_1.default("https-proxy-agent:agent");
|
|
17529
17525
|
var HttpsProxyAgent2 = class extends agent_base_1.Agent {
|
|
@@ -17723,9 +17719,9 @@ var require_agent2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17723
17719
|
var net_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("net"));
|
|
17724
17720
|
var tls_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("tls"));
|
|
17725
17721
|
var url_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("url"));
|
|
17726
|
-
var debug_1 = __importDefault(
|
|
17722
|
+
var debug_1 = __importDefault(require_src2());
|
|
17727
17723
|
var once_1 = __importDefault(require_dist2());
|
|
17728
|
-
var agent_base_1 =
|
|
17724
|
+
var agent_base_1 = require_src3();
|
|
17729
17725
|
var debug = (0, debug_1.default)("http-proxy-agent");
|
|
17730
17726
|
function isHTTPS(protocol) {
|
|
17731
17727
|
return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
|
|
@@ -30140,7 +30136,7 @@ var require_TokenExpiredError = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
30140
30136
|
var require_timespan = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
30141
30137
|
"../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/timespan.js"(exports, module2) {
|
|
30142
30138
|
"use strict";
|
|
30143
|
-
var ms = (0,
|
|
30139
|
+
var ms = (0, import_chunk_OP2BDF75.require_ms)();
|
|
30144
30140
|
module2.exports = function(time, iat) {
|
|
30145
30141
|
var timestamp = iat || Math.floor(Date.now() / 1e3);
|
|
30146
30142
|
if (typeof time === "string") {
|
|
@@ -67601,7 +67597,7 @@ var require_connection_pool2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
67601
67597
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/connection-pool.js"(exports, module2) {
|
|
67602
67598
|
"use strict";
|
|
67603
67599
|
var tds = require_tedious();
|
|
67604
|
-
var debug = require_src()("mssql:tedi");
|
|
67600
|
+
var debug = (0, import_chunk_OP2BDF75.require_src)()("mssql:tedi");
|
|
67605
67601
|
var BaseConnectionPool = require_connection_pool();
|
|
67606
67602
|
var { IDS } = require_utils2();
|
|
67607
67603
|
var shared = require_shared();
|
|
@@ -67744,7 +67740,7 @@ var require_connection_pool2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
67744
67740
|
var require_transaction3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
67745
67741
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/transaction.js"(exports, module2) {
|
|
67746
67742
|
"use strict";
|
|
67747
|
-
var debug = require_src()("mssql:tedi");
|
|
67743
|
+
var debug = (0, import_chunk_OP2BDF75.require_src)()("mssql:tedi");
|
|
67748
67744
|
var BaseTransaction = require_transaction();
|
|
67749
67745
|
var { IDS } = require_utils2();
|
|
67750
67746
|
var TransactionError = require_transaction_error();
|
|
@@ -68023,7 +68019,7 @@ var require_request3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
68023
68019
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/request.js"(exports, module2) {
|
|
68024
68020
|
"use strict";
|
|
68025
68021
|
var tds = require_tedious();
|
|
68026
|
-
var debug = require_src()("mssql:tedi");
|
|
68022
|
+
var debug = (0, import_chunk_OP2BDF75.require_src)()("mssql:tedi");
|
|
68027
68023
|
var BaseRequest = require_request();
|
|
68028
68024
|
var RequestError = require_request_error();
|
|
68029
68025
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|