@ms-cloudpack/remote-cache 0.11.33 → 0.11.35
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/{AzureRemoteCacheClient-26RKIZEO.js → AzureRemoteCacheClient-VYVBH4QC.js} +31037 -380
- package/dist/{ReporterDecorator-VYNWC6CL.js → ReporterDecorator-XVIYJ2LO.js} +1 -1
- package/dist/{chunk-NFU5RQB4.js → chunk-457DVHAF.js} +4 -1
- package/dist/{chunk-DGXRDSNI.js → chunk-D66UYJ3Q.js} +116 -2363
- package/dist/chunk-TB3K2VFA.js +2339 -0
- package/dist/{getCredential-2W3PWZWV.js → getCredential-VBKM3VGR.js} +7 -7
- package/dist/{getListOfBlobs-BGP2V7PV.js → getListOfBlobs-7QFADTY2.js} +1 -1
- package/dist/index.js +32192 -6130
- package/package.json +3 -3
- package/dist/chunk-HSAXQLEO.js +0 -26571
- package/dist/chunk-N4V3CONX.js +0 -80
|
@@ -4,871 +4,22 @@ import topLevelUrl from 'node:url';
|
|
|
4
4
|
const require = topLevelCreateRequire(import.meta.url);
|
|
5
5
|
const __filename = topLevelUrl.fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = topLevelPath.dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
init_tslib_es6,
|
|
9
|
+
require_commonjs,
|
|
10
|
+
require_dist,
|
|
11
|
+
require_dist2,
|
|
12
|
+
require_logger,
|
|
13
|
+
require_state,
|
|
14
|
+
require_state2,
|
|
15
|
+
tslib_es6_exports
|
|
16
|
+
} from "./chunk-TB3K2VFA.js";
|
|
7
17
|
import {
|
|
8
18
|
__commonJS,
|
|
9
|
-
__esm,
|
|
10
|
-
__export,
|
|
11
19
|
__name,
|
|
12
20
|
__require,
|
|
13
21
|
__toCommonJS
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
|
|
16
|
-
// ../../node_modules/.store/tslib-npm-2.8.1-66590b21b8/package/tslib.es6.mjs
|
|
17
|
-
var tslib_es6_exports = {};
|
|
18
|
-
__export(tslib_es6_exports, {
|
|
19
|
-
__addDisposableResource: () => __addDisposableResource,
|
|
20
|
-
__assign: () => __assign,
|
|
21
|
-
__asyncDelegator: () => __asyncDelegator,
|
|
22
|
-
__asyncGenerator: () => __asyncGenerator,
|
|
23
|
-
__asyncValues: () => __asyncValues,
|
|
24
|
-
__await: () => __await,
|
|
25
|
-
__awaiter: () => __awaiter,
|
|
26
|
-
__classPrivateFieldGet: () => __classPrivateFieldGet,
|
|
27
|
-
__classPrivateFieldIn: () => __classPrivateFieldIn,
|
|
28
|
-
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
29
|
-
__createBinding: () => __createBinding,
|
|
30
|
-
__decorate: () => __decorate,
|
|
31
|
-
__disposeResources: () => __disposeResources,
|
|
32
|
-
__esDecorate: () => __esDecorate,
|
|
33
|
-
__exportStar: () => __exportStar,
|
|
34
|
-
__extends: () => __extends,
|
|
35
|
-
__generator: () => __generator,
|
|
36
|
-
__importDefault: () => __importDefault,
|
|
37
|
-
__importStar: () => __importStar,
|
|
38
|
-
__makeTemplateObject: () => __makeTemplateObject,
|
|
39
|
-
__metadata: () => __metadata,
|
|
40
|
-
__param: () => __param,
|
|
41
|
-
__propKey: () => __propKey,
|
|
42
|
-
__read: () => __read,
|
|
43
|
-
__rest: () => __rest,
|
|
44
|
-
__rewriteRelativeImportExtension: () => __rewriteRelativeImportExtension,
|
|
45
|
-
__runInitializers: () => __runInitializers,
|
|
46
|
-
__setFunctionName: () => __setFunctionName,
|
|
47
|
-
__spread: () => __spread,
|
|
48
|
-
__spreadArray: () => __spreadArray,
|
|
49
|
-
__spreadArrays: () => __spreadArrays,
|
|
50
|
-
__values: () => __values,
|
|
51
|
-
default: () => tslib_es6_default
|
|
52
|
-
});
|
|
53
|
-
function __extends(d, b) {
|
|
54
|
-
if (typeof b !== "function" && b !== null)
|
|
55
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
56
|
-
extendStatics(d, b);
|
|
57
|
-
function __() {
|
|
58
|
-
this.constructor = d;
|
|
59
|
-
}
|
|
60
|
-
__name(__, "__");
|
|
61
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
62
|
-
}
|
|
63
|
-
function __rest(s, e) {
|
|
64
|
-
var t = {};
|
|
65
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
66
|
-
t[p] = s[p];
|
|
67
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
68
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
69
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
70
|
-
t[p[i]] = s[p[i]];
|
|
71
|
-
}
|
|
72
|
-
return t;
|
|
73
|
-
}
|
|
74
|
-
function __decorate(decorators, target, key, desc) {
|
|
75
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
76
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
77
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
78
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
79
|
-
}
|
|
80
|
-
function __param(paramIndex, decorator) {
|
|
81
|
-
return function(target, key) {
|
|
82
|
-
decorator(target, key, paramIndex);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
86
|
-
function accept(f) {
|
|
87
|
-
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
88
|
-
return f;
|
|
89
|
-
}
|
|
90
|
-
__name(accept, "accept");
|
|
91
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
92
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
93
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
94
|
-
var _, done = false;
|
|
95
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
96
|
-
var context = {};
|
|
97
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
98
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
99
|
-
context.addInitializer = function(f) {
|
|
100
|
-
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
101
|
-
extraInitializers.push(accept(f || null));
|
|
102
|
-
};
|
|
103
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
104
|
-
if (kind === "accessor") {
|
|
105
|
-
if (result === void 0) continue;
|
|
106
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
107
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
108
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
109
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
110
|
-
} else if (_ = accept(result)) {
|
|
111
|
-
if (kind === "field") initializers.unshift(_);
|
|
112
|
-
else descriptor[key] = _;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
116
|
-
done = true;
|
|
117
|
-
}
|
|
118
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
119
|
-
var useValue = arguments.length > 2;
|
|
120
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
121
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
122
|
-
}
|
|
123
|
-
return useValue ? value : void 0;
|
|
124
|
-
}
|
|
125
|
-
function __propKey(x) {
|
|
126
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
127
|
-
}
|
|
128
|
-
function __setFunctionName(f, name, prefix) {
|
|
129
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
130
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
131
|
-
}
|
|
132
|
-
function __metadata(metadataKey, metadataValue) {
|
|
133
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
134
|
-
}
|
|
135
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
136
|
-
function adopt(value) {
|
|
137
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
138
|
-
resolve(value);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
__name(adopt, "adopt");
|
|
142
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
143
|
-
function fulfilled(value) {
|
|
144
|
-
try {
|
|
145
|
-
step(generator.next(value));
|
|
146
|
-
} catch (e) {
|
|
147
|
-
reject(e);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
__name(fulfilled, "fulfilled");
|
|
151
|
-
function rejected(value) {
|
|
152
|
-
try {
|
|
153
|
-
step(generator["throw"](value));
|
|
154
|
-
} catch (e) {
|
|
155
|
-
reject(e);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
__name(rejected, "rejected");
|
|
159
|
-
function step(result) {
|
|
160
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
161
|
-
}
|
|
162
|
-
__name(step, "step");
|
|
163
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
function __generator(thisArg, body) {
|
|
167
|
-
var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
|
|
168
|
-
if (t[0] & 1) throw t[1];
|
|
169
|
-
return t[1];
|
|
170
|
-
}, "sent"), trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
171
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
172
|
-
return this;
|
|
173
|
-
}), g;
|
|
174
|
-
function verb(n) {
|
|
175
|
-
return function(v) {
|
|
176
|
-
return step([n, v]);
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
__name(verb, "verb");
|
|
180
|
-
function step(op) {
|
|
181
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
182
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
183
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
184
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
185
|
-
switch (op[0]) {
|
|
186
|
-
case 0:
|
|
187
|
-
case 1:
|
|
188
|
-
t = op;
|
|
189
|
-
break;
|
|
190
|
-
case 4:
|
|
191
|
-
_.label++;
|
|
192
|
-
return { value: op[1], done: false };
|
|
193
|
-
case 5:
|
|
194
|
-
_.label++;
|
|
195
|
-
y = op[1];
|
|
196
|
-
op = [0];
|
|
197
|
-
continue;
|
|
198
|
-
case 7:
|
|
199
|
-
op = _.ops.pop();
|
|
200
|
-
_.trys.pop();
|
|
201
|
-
continue;
|
|
202
|
-
default:
|
|
203
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
204
|
-
_ = 0;
|
|
205
|
-
continue;
|
|
206
|
-
}
|
|
207
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
208
|
-
_.label = op[1];
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
212
|
-
_.label = t[1];
|
|
213
|
-
t = op;
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
if (t && _.label < t[2]) {
|
|
217
|
-
_.label = t[2];
|
|
218
|
-
_.ops.push(op);
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
if (t[2]) _.ops.pop();
|
|
222
|
-
_.trys.pop();
|
|
223
|
-
continue;
|
|
224
|
-
}
|
|
225
|
-
op = body.call(thisArg, _);
|
|
226
|
-
} catch (e) {
|
|
227
|
-
op = [6, e];
|
|
228
|
-
y = 0;
|
|
229
|
-
} finally {
|
|
230
|
-
f = t = 0;
|
|
231
|
-
}
|
|
232
|
-
if (op[0] & 5) throw op[1];
|
|
233
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
234
|
-
}
|
|
235
|
-
__name(step, "step");
|
|
236
|
-
}
|
|
237
|
-
function __exportStar(m, o) {
|
|
238
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
239
|
-
}
|
|
240
|
-
function __values(o) {
|
|
241
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
242
|
-
if (m) return m.call(o);
|
|
243
|
-
if (o && typeof o.length === "number") return {
|
|
244
|
-
next: /* @__PURE__ */ __name(function() {
|
|
245
|
-
if (o && i >= o.length) o = void 0;
|
|
246
|
-
return { value: o && o[i++], done: !o };
|
|
247
|
-
}, "next")
|
|
248
|
-
};
|
|
249
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
250
|
-
}
|
|
251
|
-
function __read(o, n) {
|
|
252
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
253
|
-
if (!m) return o;
|
|
254
|
-
var i = m.call(o), r, ar = [], e;
|
|
255
|
-
try {
|
|
256
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
257
|
-
} catch (error) {
|
|
258
|
-
e = { error };
|
|
259
|
-
} finally {
|
|
260
|
-
try {
|
|
261
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
262
|
-
} finally {
|
|
263
|
-
if (e) throw e.error;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return ar;
|
|
267
|
-
}
|
|
268
|
-
function __spread() {
|
|
269
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
270
|
-
ar = ar.concat(__read(arguments[i]));
|
|
271
|
-
return ar;
|
|
272
|
-
}
|
|
273
|
-
function __spreadArrays() {
|
|
274
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
275
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
276
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
277
|
-
r[k] = a[j];
|
|
278
|
-
return r;
|
|
279
|
-
}
|
|
280
|
-
function __spreadArray(to, from, pack) {
|
|
281
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
282
|
-
if (ar || !(i in from)) {
|
|
283
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
284
|
-
ar[i] = from[i];
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
288
|
-
}
|
|
289
|
-
function __await(v) {
|
|
290
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
291
|
-
}
|
|
292
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
293
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
294
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
295
|
-
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
296
|
-
return this;
|
|
297
|
-
}, i;
|
|
298
|
-
function awaitReturn(f) {
|
|
299
|
-
return function(v) {
|
|
300
|
-
return Promise.resolve(v).then(f, reject);
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
__name(awaitReturn, "awaitReturn");
|
|
304
|
-
function verb(n, f) {
|
|
305
|
-
if (g[n]) {
|
|
306
|
-
i[n] = function(v) {
|
|
307
|
-
return new Promise(function(a, b) {
|
|
308
|
-
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
309
|
-
});
|
|
310
|
-
};
|
|
311
|
-
if (f) i[n] = f(i[n]);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
__name(verb, "verb");
|
|
315
|
-
function resume(n, v) {
|
|
316
|
-
try {
|
|
317
|
-
step(g[n](v));
|
|
318
|
-
} catch (e) {
|
|
319
|
-
settle(q[0][3], e);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
__name(resume, "resume");
|
|
323
|
-
function step(r) {
|
|
324
|
-
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
325
|
-
}
|
|
326
|
-
__name(step, "step");
|
|
327
|
-
function fulfill(value) {
|
|
328
|
-
resume("next", value);
|
|
329
|
-
}
|
|
330
|
-
__name(fulfill, "fulfill");
|
|
331
|
-
function reject(value) {
|
|
332
|
-
resume("throw", value);
|
|
333
|
-
}
|
|
334
|
-
__name(reject, "reject");
|
|
335
|
-
function settle(f, v) {
|
|
336
|
-
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
337
|
-
}
|
|
338
|
-
__name(settle, "settle");
|
|
339
|
-
}
|
|
340
|
-
function __asyncDelegator(o) {
|
|
341
|
-
var i, p;
|
|
342
|
-
return i = {}, verb("next"), verb("throw", function(e) {
|
|
343
|
-
throw e;
|
|
344
|
-
}), verb("return"), i[Symbol.iterator] = function() {
|
|
345
|
-
return this;
|
|
346
|
-
}, i;
|
|
347
|
-
function verb(n, f) {
|
|
348
|
-
i[n] = o[n] ? function(v) {
|
|
349
|
-
return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
|
|
350
|
-
} : f;
|
|
351
|
-
}
|
|
352
|
-
__name(verb, "verb");
|
|
353
|
-
}
|
|
354
|
-
function __asyncValues(o) {
|
|
355
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
356
|
-
var m = o[Symbol.asyncIterator], i;
|
|
357
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
358
|
-
return this;
|
|
359
|
-
}, i);
|
|
360
|
-
function verb(n) {
|
|
361
|
-
i[n] = o[n] && function(v) {
|
|
362
|
-
return new Promise(function(resolve, reject) {
|
|
363
|
-
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
364
|
-
});
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
__name(verb, "verb");
|
|
368
|
-
function settle(resolve, reject, d, v) {
|
|
369
|
-
Promise.resolve(v).then(function(v2) {
|
|
370
|
-
resolve({ value: v2, done: d });
|
|
371
|
-
}, reject);
|
|
372
|
-
}
|
|
373
|
-
__name(settle, "settle");
|
|
374
|
-
}
|
|
375
|
-
function __makeTemplateObject(cooked, raw) {
|
|
376
|
-
if (Object.defineProperty) {
|
|
377
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
378
|
-
} else {
|
|
379
|
-
cooked.raw = raw;
|
|
380
|
-
}
|
|
381
|
-
return cooked;
|
|
382
|
-
}
|
|
383
|
-
function __importStar(mod) {
|
|
384
|
-
if (mod && mod.__esModule) return mod;
|
|
385
|
-
var result = {};
|
|
386
|
-
if (mod != null) {
|
|
387
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
388
|
-
}
|
|
389
|
-
__setModuleDefault(result, mod);
|
|
390
|
-
return result;
|
|
391
|
-
}
|
|
392
|
-
function __importDefault(mod) {
|
|
393
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
394
|
-
}
|
|
395
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
396
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
397
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
398
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
399
|
-
}
|
|
400
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
401
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
402
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
403
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
404
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
405
|
-
}
|
|
406
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
407
|
-
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
408
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
409
|
-
}
|
|
410
|
-
function __addDisposableResource(env, value, async) {
|
|
411
|
-
if (value !== null && value !== void 0) {
|
|
412
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
413
|
-
var dispose, inner;
|
|
414
|
-
if (async) {
|
|
415
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
416
|
-
dispose = value[Symbol.asyncDispose];
|
|
417
|
-
}
|
|
418
|
-
if (dispose === void 0) {
|
|
419
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
420
|
-
dispose = value[Symbol.dispose];
|
|
421
|
-
if (async) inner = dispose;
|
|
422
|
-
}
|
|
423
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
424
|
-
if (inner) dispose = /* @__PURE__ */ __name(function() {
|
|
425
|
-
try {
|
|
426
|
-
inner.call(this);
|
|
427
|
-
} catch (e) {
|
|
428
|
-
return Promise.reject(e);
|
|
429
|
-
}
|
|
430
|
-
}, "dispose");
|
|
431
|
-
env.stack.push({ value, dispose, async });
|
|
432
|
-
} else if (async) {
|
|
433
|
-
env.stack.push({ async: true });
|
|
434
|
-
}
|
|
435
|
-
return value;
|
|
436
|
-
}
|
|
437
|
-
function __disposeResources(env) {
|
|
438
|
-
function fail(e) {
|
|
439
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
440
|
-
env.hasError = true;
|
|
441
|
-
}
|
|
442
|
-
__name(fail, "fail");
|
|
443
|
-
var r, s = 0;
|
|
444
|
-
function next() {
|
|
445
|
-
while (r = env.stack.pop()) {
|
|
446
|
-
try {
|
|
447
|
-
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
448
|
-
if (r.dispose) {
|
|
449
|
-
var result = r.dispose.call(r.value);
|
|
450
|
-
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
|
|
451
|
-
fail(e);
|
|
452
|
-
return next();
|
|
453
|
-
});
|
|
454
|
-
} else s |= 1;
|
|
455
|
-
} catch (e) {
|
|
456
|
-
fail(e);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
460
|
-
if (env.hasError) throw env.error;
|
|
461
|
-
}
|
|
462
|
-
__name(next, "next");
|
|
463
|
-
return next();
|
|
464
|
-
}
|
|
465
|
-
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
466
|
-
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
467
|
-
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
468
|
-
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
return path;
|
|
472
|
-
}
|
|
473
|
-
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
|
|
474
|
-
var init_tslib_es6 = __esm({
|
|
475
|
-
"../../node_modules/.store/tslib-npm-2.8.1-66590b21b8/package/tslib.es6.mjs"() {
|
|
476
|
-
extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
477
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
478
|
-
d2.__proto__ = b2;
|
|
479
|
-
} || function(d2, b2) {
|
|
480
|
-
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
481
|
-
};
|
|
482
|
-
return extendStatics(d, b);
|
|
483
|
-
}, "extendStatics");
|
|
484
|
-
__name(__extends, "__extends");
|
|
485
|
-
__assign = /* @__PURE__ */ __name(function() {
|
|
486
|
-
__assign = Object.assign || /* @__PURE__ */ __name(function __assign2(t) {
|
|
487
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
488
|
-
s = arguments[i];
|
|
489
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
490
|
-
}
|
|
491
|
-
return t;
|
|
492
|
-
}, "__assign");
|
|
493
|
-
return __assign.apply(this, arguments);
|
|
494
|
-
}, "__assign");
|
|
495
|
-
__name(__rest, "__rest");
|
|
496
|
-
__name(__decorate, "__decorate");
|
|
497
|
-
__name(__param, "__param");
|
|
498
|
-
__name(__esDecorate, "__esDecorate");
|
|
499
|
-
__name(__runInitializers, "__runInitializers");
|
|
500
|
-
__name(__propKey, "__propKey");
|
|
501
|
-
__name(__setFunctionName, "__setFunctionName");
|
|
502
|
-
__name(__metadata, "__metadata");
|
|
503
|
-
__name(__awaiter, "__awaiter");
|
|
504
|
-
__name(__generator, "__generator");
|
|
505
|
-
__createBinding = Object.create ? function(o, m, k, k2) {
|
|
506
|
-
if (k2 === void 0) k2 = k;
|
|
507
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
508
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
509
|
-
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
510
|
-
return m[k];
|
|
511
|
-
}, "get") };
|
|
512
|
-
}
|
|
513
|
-
Object.defineProperty(o, k2, desc);
|
|
514
|
-
} : function(o, m, k, k2) {
|
|
515
|
-
if (k2 === void 0) k2 = k;
|
|
516
|
-
o[k2] = m[k];
|
|
517
|
-
};
|
|
518
|
-
__name(__exportStar, "__exportStar");
|
|
519
|
-
__name(__values, "__values");
|
|
520
|
-
__name(__read, "__read");
|
|
521
|
-
__name(__spread, "__spread");
|
|
522
|
-
__name(__spreadArrays, "__spreadArrays");
|
|
523
|
-
__name(__spreadArray, "__spreadArray");
|
|
524
|
-
__name(__await, "__await");
|
|
525
|
-
__name(__asyncGenerator, "__asyncGenerator");
|
|
526
|
-
__name(__asyncDelegator, "__asyncDelegator");
|
|
527
|
-
__name(__asyncValues, "__asyncValues");
|
|
528
|
-
__name(__makeTemplateObject, "__makeTemplateObject");
|
|
529
|
-
__setModuleDefault = Object.create ? function(o, v) {
|
|
530
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
531
|
-
} : function(o, v) {
|
|
532
|
-
o["default"] = v;
|
|
533
|
-
};
|
|
534
|
-
ownKeys = /* @__PURE__ */ __name(function(o) {
|
|
535
|
-
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
536
|
-
var ar = [];
|
|
537
|
-
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
538
|
-
return ar;
|
|
539
|
-
};
|
|
540
|
-
return ownKeys(o);
|
|
541
|
-
}, "ownKeys");
|
|
542
|
-
__name(__importStar, "__importStar");
|
|
543
|
-
__name(__importDefault, "__importDefault");
|
|
544
|
-
__name(__classPrivateFieldGet, "__classPrivateFieldGet");
|
|
545
|
-
__name(__classPrivateFieldSet, "__classPrivateFieldSet");
|
|
546
|
-
__name(__classPrivateFieldIn, "__classPrivateFieldIn");
|
|
547
|
-
__name(__addDisposableResource, "__addDisposableResource");
|
|
548
|
-
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
549
|
-
var e = new Error(message);
|
|
550
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
551
|
-
};
|
|
552
|
-
__name(__disposeResources, "__disposeResources");
|
|
553
|
-
__name(__rewriteRelativeImportExtension, "__rewriteRelativeImportExtension");
|
|
554
|
-
tslib_es6_default = {
|
|
555
|
-
__extends,
|
|
556
|
-
__assign,
|
|
557
|
-
__rest,
|
|
558
|
-
__decorate,
|
|
559
|
-
__param,
|
|
560
|
-
__esDecorate,
|
|
561
|
-
__runInitializers,
|
|
562
|
-
__propKey,
|
|
563
|
-
__setFunctionName,
|
|
564
|
-
__metadata,
|
|
565
|
-
__awaiter,
|
|
566
|
-
__generator,
|
|
567
|
-
__createBinding,
|
|
568
|
-
__exportStar,
|
|
569
|
-
__values,
|
|
570
|
-
__read,
|
|
571
|
-
__spread,
|
|
572
|
-
__spreadArrays,
|
|
573
|
-
__spreadArray,
|
|
574
|
-
__await,
|
|
575
|
-
__asyncGenerator,
|
|
576
|
-
__asyncDelegator,
|
|
577
|
-
__asyncValues,
|
|
578
|
-
__makeTemplateObject,
|
|
579
|
-
__importStar,
|
|
580
|
-
__importDefault,
|
|
581
|
-
__classPrivateFieldGet,
|
|
582
|
-
__classPrivateFieldSet,
|
|
583
|
-
__classPrivateFieldIn,
|
|
584
|
-
__addDisposableResource,
|
|
585
|
-
__disposeResources,
|
|
586
|
-
__rewriteRelativeImportExtension
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
|
|
591
|
-
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/log.js
|
|
592
|
-
var require_log = __commonJS({
|
|
593
|
-
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/log.js"(exports) {
|
|
594
|
-
"use strict";
|
|
595
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
596
|
-
exports.log = log;
|
|
597
|
-
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
598
|
-
var node_os_1 = __require("node:os");
|
|
599
|
-
var node_util_1 = tslib_1.__importDefault(__require("node:util"));
|
|
600
|
-
var process2 = tslib_1.__importStar(__require("node:process"));
|
|
601
|
-
function log(message, ...args) {
|
|
602
|
-
process2.stderr.write(`${node_util_1.default.format(message, ...args)}${node_os_1.EOL}`);
|
|
603
|
-
}
|
|
604
|
-
__name(log, "log");
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
|
|
608
|
-
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/debug.js
|
|
609
|
-
var require_debug = __commonJS({
|
|
610
|
-
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/debug.js"(exports) {
|
|
611
|
-
"use strict";
|
|
612
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
613
|
-
var log_js_1 = require_log();
|
|
614
|
-
var debugEnvVariable = typeof process !== "undefined" && process.env && process.env.DEBUG || void 0;
|
|
615
|
-
var enabledString;
|
|
616
|
-
var enabledNamespaces = [];
|
|
617
|
-
var skippedNamespaces = [];
|
|
618
|
-
var debuggers = [];
|
|
619
|
-
if (debugEnvVariable) {
|
|
620
|
-
enable(debugEnvVariable);
|
|
621
|
-
}
|
|
622
|
-
var debugObj = Object.assign((namespace) => {
|
|
623
|
-
return createDebugger(namespace);
|
|
624
|
-
}, {
|
|
625
|
-
enable,
|
|
626
|
-
enabled,
|
|
627
|
-
disable,
|
|
628
|
-
log: log_js_1.log
|
|
629
|
-
});
|
|
630
|
-
function enable(namespaces) {
|
|
631
|
-
enabledString = namespaces;
|
|
632
|
-
enabledNamespaces = [];
|
|
633
|
-
skippedNamespaces = [];
|
|
634
|
-
const wildcard = /\*/g;
|
|
635
|
-
const namespaceList = namespaces.split(",").map((ns) => ns.trim().replace(wildcard, ".*?"));
|
|
636
|
-
for (const ns of namespaceList) {
|
|
637
|
-
if (ns.startsWith("-")) {
|
|
638
|
-
skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`));
|
|
639
|
-
} else {
|
|
640
|
-
enabledNamespaces.push(new RegExp(`^${ns}$`));
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
for (const instance of debuggers) {
|
|
644
|
-
instance.enabled = enabled(instance.namespace);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
__name(enable, "enable");
|
|
648
|
-
function enabled(namespace) {
|
|
649
|
-
if (namespace.endsWith("*")) {
|
|
650
|
-
return true;
|
|
651
|
-
}
|
|
652
|
-
for (const skipped of skippedNamespaces) {
|
|
653
|
-
if (skipped.test(namespace)) {
|
|
654
|
-
return false;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
for (const enabledNamespace of enabledNamespaces) {
|
|
658
|
-
if (enabledNamespace.test(namespace)) {
|
|
659
|
-
return true;
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
return false;
|
|
663
|
-
}
|
|
664
|
-
__name(enabled, "enabled");
|
|
665
|
-
function disable() {
|
|
666
|
-
const result = enabledString || "";
|
|
667
|
-
enable("");
|
|
668
|
-
return result;
|
|
669
|
-
}
|
|
670
|
-
__name(disable, "disable");
|
|
671
|
-
function createDebugger(namespace) {
|
|
672
|
-
const newDebugger = Object.assign(debug, {
|
|
673
|
-
enabled: enabled(namespace),
|
|
674
|
-
destroy,
|
|
675
|
-
log: debugObj.log,
|
|
676
|
-
namespace,
|
|
677
|
-
extend
|
|
678
|
-
});
|
|
679
|
-
function debug(...args) {
|
|
680
|
-
if (!newDebugger.enabled) {
|
|
681
|
-
return;
|
|
682
|
-
}
|
|
683
|
-
if (args.length > 0) {
|
|
684
|
-
args[0] = `${namespace} ${args[0]}`;
|
|
685
|
-
}
|
|
686
|
-
newDebugger.log(...args);
|
|
687
|
-
}
|
|
688
|
-
__name(debug, "debug");
|
|
689
|
-
debuggers.push(newDebugger);
|
|
690
|
-
return newDebugger;
|
|
691
|
-
}
|
|
692
|
-
__name(createDebugger, "createDebugger");
|
|
693
|
-
function destroy() {
|
|
694
|
-
const index = debuggers.indexOf(this);
|
|
695
|
-
if (index >= 0) {
|
|
696
|
-
debuggers.splice(index, 1);
|
|
697
|
-
return true;
|
|
698
|
-
}
|
|
699
|
-
return false;
|
|
700
|
-
}
|
|
701
|
-
__name(destroy, "destroy");
|
|
702
|
-
function extend(namespace) {
|
|
703
|
-
const newDebugger = createDebugger(`${this.namespace}:${namespace}`);
|
|
704
|
-
newDebugger.log = this.log;
|
|
705
|
-
return newDebugger;
|
|
706
|
-
}
|
|
707
|
-
__name(extend, "extend");
|
|
708
|
-
exports.default = debugObj;
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
|
|
712
|
-
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/logger.js
|
|
713
|
-
var require_logger = __commonJS({
|
|
714
|
-
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/logger.js"(exports) {
|
|
715
|
-
"use strict";
|
|
716
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
717
|
-
exports.TypeSpecRuntimeLogger = void 0;
|
|
718
|
-
exports.createLoggerContext = createLoggerContext;
|
|
719
|
-
exports.setLogLevel = setLogLevel;
|
|
720
|
-
exports.getLogLevel = getLogLevel;
|
|
721
|
-
exports.createClientLogger = createClientLogger;
|
|
722
|
-
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
723
|
-
var debug_js_1 = tslib_1.__importDefault(require_debug());
|
|
724
|
-
var TYPESPEC_RUNTIME_LOG_LEVELS = ["verbose", "info", "warning", "error"];
|
|
725
|
-
var levelMap = {
|
|
726
|
-
verbose: 400,
|
|
727
|
-
info: 300,
|
|
728
|
-
warning: 200,
|
|
729
|
-
error: 100
|
|
730
|
-
};
|
|
731
|
-
function patchLogMethod(parent, child) {
|
|
732
|
-
child.log = (...args) => {
|
|
733
|
-
parent.log(...args);
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
__name(patchLogMethod, "patchLogMethod");
|
|
737
|
-
function isTypeSpecRuntimeLogLevel(level) {
|
|
738
|
-
return TYPESPEC_RUNTIME_LOG_LEVELS.includes(level);
|
|
739
|
-
}
|
|
740
|
-
__name(isTypeSpecRuntimeLogLevel, "isTypeSpecRuntimeLogLevel");
|
|
741
|
-
function createLoggerContext(options) {
|
|
742
|
-
const registeredLoggers = /* @__PURE__ */ new Set();
|
|
743
|
-
const logLevelFromEnv = typeof process !== "undefined" && process.env && process.env[options.logLevelEnvVarName] || void 0;
|
|
744
|
-
let logLevel;
|
|
745
|
-
const clientLogger = (0, debug_js_1.default)(options.namespace);
|
|
746
|
-
clientLogger.log = (...args) => {
|
|
747
|
-
debug_js_1.default.log(...args);
|
|
748
|
-
};
|
|
749
|
-
function contextSetLogLevel(level) {
|
|
750
|
-
if (level && !isTypeSpecRuntimeLogLevel(level)) {
|
|
751
|
-
throw new Error(`Unknown log level '${level}'. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(",")}`);
|
|
752
|
-
}
|
|
753
|
-
logLevel = level;
|
|
754
|
-
const enabledNamespaces = [];
|
|
755
|
-
for (const logger of registeredLoggers) {
|
|
756
|
-
if (shouldEnable(logger)) {
|
|
757
|
-
enabledNamespaces.push(logger.namespace);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
debug_js_1.default.enable(enabledNamespaces.join(","));
|
|
761
|
-
}
|
|
762
|
-
__name(contextSetLogLevel, "contextSetLogLevel");
|
|
763
|
-
if (logLevelFromEnv) {
|
|
764
|
-
if (isTypeSpecRuntimeLogLevel(logLevelFromEnv)) {
|
|
765
|
-
contextSetLogLevel(logLevelFromEnv);
|
|
766
|
-
} else {
|
|
767
|
-
console.error(`${options.logLevelEnvVarName} set to unknown log level '${logLevelFromEnv}'; logging is not enabled. Acceptable values: ${TYPESPEC_RUNTIME_LOG_LEVELS.join(", ")}.`);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
function shouldEnable(logger) {
|
|
771
|
-
return Boolean(logLevel && levelMap[logger.level] <= levelMap[logLevel]);
|
|
772
|
-
}
|
|
773
|
-
__name(shouldEnable, "shouldEnable");
|
|
774
|
-
function createLogger(parent, level) {
|
|
775
|
-
const logger = Object.assign(parent.extend(level), {
|
|
776
|
-
level
|
|
777
|
-
});
|
|
778
|
-
patchLogMethod(parent, logger);
|
|
779
|
-
if (shouldEnable(logger)) {
|
|
780
|
-
const enabledNamespaces = debug_js_1.default.disable();
|
|
781
|
-
debug_js_1.default.enable(enabledNamespaces + "," + logger.namespace);
|
|
782
|
-
}
|
|
783
|
-
registeredLoggers.add(logger);
|
|
784
|
-
return logger;
|
|
785
|
-
}
|
|
786
|
-
__name(createLogger, "createLogger");
|
|
787
|
-
function contextGetLogLevel() {
|
|
788
|
-
return logLevel;
|
|
789
|
-
}
|
|
790
|
-
__name(contextGetLogLevel, "contextGetLogLevel");
|
|
791
|
-
function contextCreateClientLogger(namespace) {
|
|
792
|
-
const clientRootLogger = clientLogger.extend(namespace);
|
|
793
|
-
patchLogMethod(clientLogger, clientRootLogger);
|
|
794
|
-
return {
|
|
795
|
-
error: createLogger(clientRootLogger, "error"),
|
|
796
|
-
warning: createLogger(clientRootLogger, "warning"),
|
|
797
|
-
info: createLogger(clientRootLogger, "info"),
|
|
798
|
-
verbose: createLogger(clientRootLogger, "verbose")
|
|
799
|
-
};
|
|
800
|
-
}
|
|
801
|
-
__name(contextCreateClientLogger, "contextCreateClientLogger");
|
|
802
|
-
return {
|
|
803
|
-
setLogLevel: contextSetLogLevel,
|
|
804
|
-
getLogLevel: contextGetLogLevel,
|
|
805
|
-
createClientLogger: contextCreateClientLogger,
|
|
806
|
-
logger: clientLogger
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
__name(createLoggerContext, "createLoggerContext");
|
|
810
|
-
var context = createLoggerContext({
|
|
811
|
-
logLevelEnvVarName: "TYPESPEC_RUNTIME_LOG_LEVEL",
|
|
812
|
-
namespace: "typeSpecRuntime"
|
|
813
|
-
});
|
|
814
|
-
exports.TypeSpecRuntimeLogger = context.logger;
|
|
815
|
-
function setLogLevel(logLevel) {
|
|
816
|
-
context.setLogLevel(logLevel);
|
|
817
|
-
}
|
|
818
|
-
__name(setLogLevel, "setLogLevel");
|
|
819
|
-
function getLogLevel() {
|
|
820
|
-
return context.getLogLevel();
|
|
821
|
-
}
|
|
822
|
-
__name(getLogLevel, "getLogLevel");
|
|
823
|
-
function createClientLogger(namespace) {
|
|
824
|
-
return context.createClientLogger(namespace);
|
|
825
|
-
}
|
|
826
|
-
__name(createClientLogger, "createClientLogger");
|
|
827
|
-
}
|
|
828
|
-
});
|
|
829
|
-
|
|
830
|
-
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/internal.js
|
|
831
|
-
var require_internal = __commonJS({
|
|
832
|
-
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/logger/internal.js"(exports) {
|
|
833
|
-
"use strict";
|
|
834
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
835
|
-
exports.createLoggerContext = void 0;
|
|
836
|
-
var logger_js_1 = require_logger();
|
|
837
|
-
Object.defineProperty(exports, "createLoggerContext", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
838
|
-
return logger_js_1.createLoggerContext;
|
|
839
|
-
}, "get") });
|
|
840
|
-
}
|
|
841
|
-
});
|
|
842
|
-
|
|
843
|
-
// ../../node_modules/.store/@azure-logger-npm-1.3.0-d53081e040/package/dist/commonjs/index.js
|
|
844
|
-
var require_commonjs = __commonJS({
|
|
845
|
-
"../../node_modules/.store/@azure-logger-npm-1.3.0-d53081e040/package/dist/commonjs/index.js"(exports) {
|
|
846
|
-
"use strict";
|
|
847
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
848
|
-
exports.AzureLogger = void 0;
|
|
849
|
-
exports.setLogLevel = setLogLevel;
|
|
850
|
-
exports.getLogLevel = getLogLevel;
|
|
851
|
-
exports.createClientLogger = createClientLogger;
|
|
852
|
-
var logger_1 = require_internal();
|
|
853
|
-
var context = (0, logger_1.createLoggerContext)({
|
|
854
|
-
logLevelEnvVarName: "AZURE_LOG_LEVEL",
|
|
855
|
-
namespace: "azure"
|
|
856
|
-
});
|
|
857
|
-
exports.AzureLogger = context.logger;
|
|
858
|
-
function setLogLevel(level) {
|
|
859
|
-
context.setLogLevel(level);
|
|
860
|
-
}
|
|
861
|
-
__name(setLogLevel, "setLogLevel");
|
|
862
|
-
function getLogLevel() {
|
|
863
|
-
return context.getLogLevel();
|
|
864
|
-
}
|
|
865
|
-
__name(getLogLevel, "getLogLevel");
|
|
866
|
-
function createClientLogger(namespace) {
|
|
867
|
-
return context.createClientLogger(namespace);
|
|
868
|
-
}
|
|
869
|
-
__name(createClientLogger, "createClientLogger");
|
|
870
|
-
}
|
|
871
|
-
});
|
|
22
|
+
} from "./chunk-457DVHAF.js";
|
|
872
23
|
|
|
873
24
|
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/util/random.js
|
|
874
25
|
var require_random = __commonJS({
|
|
@@ -1151,7 +302,7 @@ var require_sanitizer = __commonJS({
|
|
|
1151
302
|
});
|
|
1152
303
|
|
|
1153
304
|
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/util/internal.js
|
|
1154
|
-
var
|
|
305
|
+
var require_internal = __commonJS({
|
|
1155
306
|
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/util/internal.js"(exports) {
|
|
1156
307
|
"use strict";
|
|
1157
308
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1328,7 +479,7 @@ var require_delay2 = __commonJS({
|
|
|
1328
479
|
exports.delay = delay;
|
|
1329
480
|
exports.calculateRetryDelay = calculateRetryDelay;
|
|
1330
481
|
var createAbortablePromise_js_1 = require_createAbortablePromise();
|
|
1331
|
-
var util_1 =
|
|
482
|
+
var util_1 = require_internal();
|
|
1332
483
|
var StandardAbortMessage = "The delay was aborted.";
|
|
1333
484
|
function delay(timeInMs, options) {
|
|
1334
485
|
let token;
|
|
@@ -1358,7 +509,7 @@ var require_error2 = __commonJS({
|
|
|
1358
509
|
"use strict";
|
|
1359
510
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1360
511
|
exports.getErrorMessage = getErrorMessage;
|
|
1361
|
-
var util_1 =
|
|
512
|
+
var util_1 = require_internal();
|
|
1362
513
|
function getErrorMessage(e) {
|
|
1363
514
|
if ((0, util_1.isError)(e)) {
|
|
1364
515
|
return e.message;
|
|
@@ -1427,7 +578,7 @@ var require_commonjs3 = __commonJS({
|
|
|
1427
578
|
exports.uint8ArrayToString = uint8ArrayToString;
|
|
1428
579
|
exports.stringToUint8Array = stringToUint8Array;
|
|
1429
580
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
1430
|
-
var tspRuntime = tslib_1.__importStar(
|
|
581
|
+
var tspRuntime = tslib_1.__importStar(require_internal());
|
|
1431
582
|
var aborterUtils_js_1 = require_aborterUtils();
|
|
1432
583
|
Object.defineProperty(exports, "cancelablePromiseRace", { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
1433
584
|
return aborterUtils_js_1.cancelablePromiseRace;
|
|
@@ -1547,18 +698,6 @@ var require_tracingContext = __commonJS({
|
|
|
1547
698
|
}
|
|
1548
699
|
});
|
|
1549
700
|
|
|
1550
|
-
// ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/state.js
|
|
1551
|
-
var require_state = __commonJS({
|
|
1552
|
-
"../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/state.js"(exports) {
|
|
1553
|
-
"use strict";
|
|
1554
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1555
|
-
exports.state = void 0;
|
|
1556
|
-
exports.state = {
|
|
1557
|
-
instrumenterImplementation: void 0
|
|
1558
|
-
};
|
|
1559
|
-
}
|
|
1560
|
-
});
|
|
1561
|
-
|
|
1562
701
|
// ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/instrumenter.js
|
|
1563
702
|
var require_instrumenter = __commonJS({
|
|
1564
703
|
"../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/instrumenter.js"(exports) {
|
|
@@ -2124,7 +1263,7 @@ var require_restError = __commonJS({
|
|
|
2124
1263
|
});
|
|
2125
1264
|
|
|
2126
1265
|
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/log.js
|
|
2127
|
-
var
|
|
1266
|
+
var require_log = __commonJS({
|
|
2128
1267
|
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/log.js"(exports) {
|
|
2129
1268
|
"use strict";
|
|
2130
1269
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2149,7 +1288,7 @@ var require_nodeHttpClient = __commonJS({
|
|
|
2149
1288
|
var AbortError_js_1 = require_AbortError2();
|
|
2150
1289
|
var httpHeaders_js_1 = require_httpHeaders();
|
|
2151
1290
|
var restError_js_1 = require_restError();
|
|
2152
|
-
var log_js_1 =
|
|
1291
|
+
var log_js_1 = require_log();
|
|
2153
1292
|
var sanitizer_js_1 = require_sanitizer();
|
|
2154
1293
|
var DEFAULT_TLS_SETTINGS = {};
|
|
2155
1294
|
function isReadableStream(body) {
|
|
@@ -2473,7 +1612,7 @@ var require_logPolicy = __commonJS({
|
|
|
2473
1612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2474
1613
|
exports.logPolicyName = void 0;
|
|
2475
1614
|
exports.logPolicy = logPolicy;
|
|
2476
|
-
var log_js_1 =
|
|
1615
|
+
var log_js_1 = require_log();
|
|
2477
1616
|
var sanitizer_js_1 = require_sanitizer();
|
|
2478
1617
|
exports.logPolicyName = "logPolicy";
|
|
2479
1618
|
function logPolicy(options = {}) {
|
|
@@ -3042,1432 +2181,6 @@ var require_formDataPolicy = __commonJS({
|
|
|
3042
2181
|
}
|
|
3043
2182
|
});
|
|
3044
2183
|
|
|
3045
|
-
// ../../node_modules/.store/ms-npm-2.1.3-81ff3cfac1/package/index.js
|
|
3046
|
-
var require_package = __commonJS({
|
|
3047
|
-
"../../node_modules/.store/ms-npm-2.1.3-81ff3cfac1/package/index.js"(exports, module) {
|
|
3048
|
-
var s = 1e3;
|
|
3049
|
-
var m = s * 60;
|
|
3050
|
-
var h = m * 60;
|
|
3051
|
-
var d = h * 24;
|
|
3052
|
-
var w = d * 7;
|
|
3053
|
-
var y = d * 365.25;
|
|
3054
|
-
module.exports = function(val, options) {
|
|
3055
|
-
options = options || {};
|
|
3056
|
-
var type = typeof val;
|
|
3057
|
-
if (type === "string" && val.length > 0) {
|
|
3058
|
-
return parse(val);
|
|
3059
|
-
} else if (type === "number" && isFinite(val)) {
|
|
3060
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
3061
|
-
}
|
|
3062
|
-
throw new Error(
|
|
3063
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
3064
|
-
);
|
|
3065
|
-
};
|
|
3066
|
-
function parse(str) {
|
|
3067
|
-
str = String(str);
|
|
3068
|
-
if (str.length > 100) {
|
|
3069
|
-
return;
|
|
3070
|
-
}
|
|
3071
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
3072
|
-
str
|
|
3073
|
-
);
|
|
3074
|
-
if (!match) {
|
|
3075
|
-
return;
|
|
3076
|
-
}
|
|
3077
|
-
var n = parseFloat(match[1]);
|
|
3078
|
-
var type = (match[2] || "ms").toLowerCase();
|
|
3079
|
-
switch (type) {
|
|
3080
|
-
case "years":
|
|
3081
|
-
case "year":
|
|
3082
|
-
case "yrs":
|
|
3083
|
-
case "yr":
|
|
3084
|
-
case "y":
|
|
3085
|
-
return n * y;
|
|
3086
|
-
case "weeks":
|
|
3087
|
-
case "week":
|
|
3088
|
-
case "w":
|
|
3089
|
-
return n * w;
|
|
3090
|
-
case "days":
|
|
3091
|
-
case "day":
|
|
3092
|
-
case "d":
|
|
3093
|
-
return n * d;
|
|
3094
|
-
case "hours":
|
|
3095
|
-
case "hour":
|
|
3096
|
-
case "hrs":
|
|
3097
|
-
case "hr":
|
|
3098
|
-
case "h":
|
|
3099
|
-
return n * h;
|
|
3100
|
-
case "minutes":
|
|
3101
|
-
case "minute":
|
|
3102
|
-
case "mins":
|
|
3103
|
-
case "min":
|
|
3104
|
-
case "m":
|
|
3105
|
-
return n * m;
|
|
3106
|
-
case "seconds":
|
|
3107
|
-
case "second":
|
|
3108
|
-
case "secs":
|
|
3109
|
-
case "sec":
|
|
3110
|
-
case "s":
|
|
3111
|
-
return n * s;
|
|
3112
|
-
case "milliseconds":
|
|
3113
|
-
case "millisecond":
|
|
3114
|
-
case "msecs":
|
|
3115
|
-
case "msec":
|
|
3116
|
-
case "ms":
|
|
3117
|
-
return n;
|
|
3118
|
-
default:
|
|
3119
|
-
return void 0;
|
|
3120
|
-
}
|
|
3121
|
-
}
|
|
3122
|
-
__name(parse, "parse");
|
|
3123
|
-
function fmtShort(ms) {
|
|
3124
|
-
var msAbs = Math.abs(ms);
|
|
3125
|
-
if (msAbs >= d) {
|
|
3126
|
-
return Math.round(ms / d) + "d";
|
|
3127
|
-
}
|
|
3128
|
-
if (msAbs >= h) {
|
|
3129
|
-
return Math.round(ms / h) + "h";
|
|
3130
|
-
}
|
|
3131
|
-
if (msAbs >= m) {
|
|
3132
|
-
return Math.round(ms / m) + "m";
|
|
3133
|
-
}
|
|
3134
|
-
if (msAbs >= s) {
|
|
3135
|
-
return Math.round(ms / s) + "s";
|
|
3136
|
-
}
|
|
3137
|
-
return ms + "ms";
|
|
3138
|
-
}
|
|
3139
|
-
__name(fmtShort, "fmtShort");
|
|
3140
|
-
function fmtLong(ms) {
|
|
3141
|
-
var msAbs = Math.abs(ms);
|
|
3142
|
-
if (msAbs >= d) {
|
|
3143
|
-
return plural(ms, msAbs, d, "day");
|
|
3144
|
-
}
|
|
3145
|
-
if (msAbs >= h) {
|
|
3146
|
-
return plural(ms, msAbs, h, "hour");
|
|
3147
|
-
}
|
|
3148
|
-
if (msAbs >= m) {
|
|
3149
|
-
return plural(ms, msAbs, m, "minute");
|
|
3150
|
-
}
|
|
3151
|
-
if (msAbs >= s) {
|
|
3152
|
-
return plural(ms, msAbs, s, "second");
|
|
3153
|
-
}
|
|
3154
|
-
return ms + " ms";
|
|
3155
|
-
}
|
|
3156
|
-
__name(fmtLong, "fmtLong");
|
|
3157
|
-
function plural(ms, msAbs, n, name) {
|
|
3158
|
-
var isPlural = msAbs >= n * 1.5;
|
|
3159
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
3160
|
-
}
|
|
3161
|
-
__name(plural, "plural");
|
|
3162
|
-
}
|
|
3163
|
-
});
|
|
3164
|
-
|
|
3165
|
-
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/common.js
|
|
3166
|
-
var require_common = __commonJS({
|
|
3167
|
-
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/common.js"(exports, module) {
|
|
3168
|
-
function setup(env) {
|
|
3169
|
-
createDebug.debug = createDebug;
|
|
3170
|
-
createDebug.default = createDebug;
|
|
3171
|
-
createDebug.coerce = coerce;
|
|
3172
|
-
createDebug.disable = disable;
|
|
3173
|
-
createDebug.enable = enable;
|
|
3174
|
-
createDebug.enabled = enabled;
|
|
3175
|
-
createDebug.humanize = require_package();
|
|
3176
|
-
createDebug.destroy = destroy;
|
|
3177
|
-
Object.keys(env).forEach((key) => {
|
|
3178
|
-
createDebug[key] = env[key];
|
|
3179
|
-
});
|
|
3180
|
-
createDebug.names = [];
|
|
3181
|
-
createDebug.skips = [];
|
|
3182
|
-
createDebug.formatters = {};
|
|
3183
|
-
function selectColor(namespace) {
|
|
3184
|
-
let hash = 0;
|
|
3185
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
3186
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
3187
|
-
hash |= 0;
|
|
3188
|
-
}
|
|
3189
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
3190
|
-
}
|
|
3191
|
-
__name(selectColor, "selectColor");
|
|
3192
|
-
createDebug.selectColor = selectColor;
|
|
3193
|
-
function createDebug(namespace) {
|
|
3194
|
-
let prevTime;
|
|
3195
|
-
let enableOverride = null;
|
|
3196
|
-
let namespacesCache;
|
|
3197
|
-
let enabledCache;
|
|
3198
|
-
function debug(...args) {
|
|
3199
|
-
if (!debug.enabled) {
|
|
3200
|
-
return;
|
|
3201
|
-
}
|
|
3202
|
-
const self2 = debug;
|
|
3203
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
3204
|
-
const ms = curr - (prevTime || curr);
|
|
3205
|
-
self2.diff = ms;
|
|
3206
|
-
self2.prev = prevTime;
|
|
3207
|
-
self2.curr = curr;
|
|
3208
|
-
prevTime = curr;
|
|
3209
|
-
args[0] = createDebug.coerce(args[0]);
|
|
3210
|
-
if (typeof args[0] !== "string") {
|
|
3211
|
-
args.unshift("%O");
|
|
3212
|
-
}
|
|
3213
|
-
let index = 0;
|
|
3214
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
3215
|
-
if (match === "%%") {
|
|
3216
|
-
return "%";
|
|
3217
|
-
}
|
|
3218
|
-
index++;
|
|
3219
|
-
const formatter = createDebug.formatters[format];
|
|
3220
|
-
if (typeof formatter === "function") {
|
|
3221
|
-
const val = args[index];
|
|
3222
|
-
match = formatter.call(self2, val);
|
|
3223
|
-
args.splice(index, 1);
|
|
3224
|
-
index--;
|
|
3225
|
-
}
|
|
3226
|
-
return match;
|
|
3227
|
-
});
|
|
3228
|
-
createDebug.formatArgs.call(self2, args);
|
|
3229
|
-
const logFn = self2.log || createDebug.log;
|
|
3230
|
-
logFn.apply(self2, args);
|
|
3231
|
-
}
|
|
3232
|
-
__name(debug, "debug");
|
|
3233
|
-
debug.namespace = namespace;
|
|
3234
|
-
debug.useColors = createDebug.useColors();
|
|
3235
|
-
debug.color = createDebug.selectColor(namespace);
|
|
3236
|
-
debug.extend = extend;
|
|
3237
|
-
debug.destroy = createDebug.destroy;
|
|
3238
|
-
Object.defineProperty(debug, "enabled", {
|
|
3239
|
-
enumerable: true,
|
|
3240
|
-
configurable: false,
|
|
3241
|
-
get: /* @__PURE__ */ __name(() => {
|
|
3242
|
-
if (enableOverride !== null) {
|
|
3243
|
-
return enableOverride;
|
|
3244
|
-
}
|
|
3245
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
3246
|
-
namespacesCache = createDebug.namespaces;
|
|
3247
|
-
enabledCache = createDebug.enabled(namespace);
|
|
3248
|
-
}
|
|
3249
|
-
return enabledCache;
|
|
3250
|
-
}, "get"),
|
|
3251
|
-
set: /* @__PURE__ */ __name((v) => {
|
|
3252
|
-
enableOverride = v;
|
|
3253
|
-
}, "set")
|
|
3254
|
-
});
|
|
3255
|
-
if (typeof createDebug.init === "function") {
|
|
3256
|
-
createDebug.init(debug);
|
|
3257
|
-
}
|
|
3258
|
-
return debug;
|
|
3259
|
-
}
|
|
3260
|
-
__name(createDebug, "createDebug");
|
|
3261
|
-
function extend(namespace, delimiter) {
|
|
3262
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
3263
|
-
newDebug.log = this.log;
|
|
3264
|
-
return newDebug;
|
|
3265
|
-
}
|
|
3266
|
-
__name(extend, "extend");
|
|
3267
|
-
function enable(namespaces) {
|
|
3268
|
-
createDebug.save(namespaces);
|
|
3269
|
-
createDebug.namespaces = namespaces;
|
|
3270
|
-
createDebug.names = [];
|
|
3271
|
-
createDebug.skips = [];
|
|
3272
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
3273
|
-
for (const ns of split) {
|
|
3274
|
-
if (ns[0] === "-") {
|
|
3275
|
-
createDebug.skips.push(ns.slice(1));
|
|
3276
|
-
} else {
|
|
3277
|
-
createDebug.names.push(ns);
|
|
3278
|
-
}
|
|
3279
|
-
}
|
|
3280
|
-
}
|
|
3281
|
-
__name(enable, "enable");
|
|
3282
|
-
function matchesTemplate(search, template) {
|
|
3283
|
-
let searchIndex = 0;
|
|
3284
|
-
let templateIndex = 0;
|
|
3285
|
-
let starIndex = -1;
|
|
3286
|
-
let matchIndex = 0;
|
|
3287
|
-
while (searchIndex < search.length) {
|
|
3288
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
3289
|
-
if (template[templateIndex] === "*") {
|
|
3290
|
-
starIndex = templateIndex;
|
|
3291
|
-
matchIndex = searchIndex;
|
|
3292
|
-
templateIndex++;
|
|
3293
|
-
} else {
|
|
3294
|
-
searchIndex++;
|
|
3295
|
-
templateIndex++;
|
|
3296
|
-
}
|
|
3297
|
-
} else if (starIndex !== -1) {
|
|
3298
|
-
templateIndex = starIndex + 1;
|
|
3299
|
-
matchIndex++;
|
|
3300
|
-
searchIndex = matchIndex;
|
|
3301
|
-
} else {
|
|
3302
|
-
return false;
|
|
3303
|
-
}
|
|
3304
|
-
}
|
|
3305
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
3306
|
-
templateIndex++;
|
|
3307
|
-
}
|
|
3308
|
-
return templateIndex === template.length;
|
|
3309
|
-
}
|
|
3310
|
-
__name(matchesTemplate, "matchesTemplate");
|
|
3311
|
-
function disable() {
|
|
3312
|
-
const namespaces = [
|
|
3313
|
-
...createDebug.names,
|
|
3314
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
3315
|
-
].join(",");
|
|
3316
|
-
createDebug.enable("");
|
|
3317
|
-
return namespaces;
|
|
3318
|
-
}
|
|
3319
|
-
__name(disable, "disable");
|
|
3320
|
-
function enabled(name) {
|
|
3321
|
-
for (const skip of createDebug.skips) {
|
|
3322
|
-
if (matchesTemplate(name, skip)) {
|
|
3323
|
-
return false;
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3326
|
-
for (const ns of createDebug.names) {
|
|
3327
|
-
if (matchesTemplate(name, ns)) {
|
|
3328
|
-
return true;
|
|
3329
|
-
}
|
|
3330
|
-
}
|
|
3331
|
-
return false;
|
|
3332
|
-
}
|
|
3333
|
-
__name(enabled, "enabled");
|
|
3334
|
-
function coerce(val) {
|
|
3335
|
-
if (val instanceof Error) {
|
|
3336
|
-
return val.stack || val.message;
|
|
3337
|
-
}
|
|
3338
|
-
return val;
|
|
3339
|
-
}
|
|
3340
|
-
__name(coerce, "coerce");
|
|
3341
|
-
function destroy() {
|
|
3342
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
3343
|
-
}
|
|
3344
|
-
__name(destroy, "destroy");
|
|
3345
|
-
createDebug.enable(createDebug.load());
|
|
3346
|
-
return createDebug;
|
|
3347
|
-
}
|
|
3348
|
-
__name(setup, "setup");
|
|
3349
|
-
module.exports = setup;
|
|
3350
|
-
}
|
|
3351
|
-
});
|
|
3352
|
-
|
|
3353
|
-
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/browser.js
|
|
3354
|
-
var require_browser = __commonJS({
|
|
3355
|
-
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/browser.js"(exports, module) {
|
|
3356
|
-
exports.formatArgs = formatArgs;
|
|
3357
|
-
exports.save = save;
|
|
3358
|
-
exports.load = load;
|
|
3359
|
-
exports.useColors = useColors;
|
|
3360
|
-
exports.storage = localstorage();
|
|
3361
|
-
exports.destroy = /* @__PURE__ */ (() => {
|
|
3362
|
-
let warned = false;
|
|
3363
|
-
return () => {
|
|
3364
|
-
if (!warned) {
|
|
3365
|
-
warned = true;
|
|
3366
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
3367
|
-
}
|
|
3368
|
-
};
|
|
3369
|
-
})();
|
|
3370
|
-
exports.colors = [
|
|
3371
|
-
"#0000CC",
|
|
3372
|
-
"#0000FF",
|
|
3373
|
-
"#0033CC",
|
|
3374
|
-
"#0033FF",
|
|
3375
|
-
"#0066CC",
|
|
3376
|
-
"#0066FF",
|
|
3377
|
-
"#0099CC",
|
|
3378
|
-
"#0099FF",
|
|
3379
|
-
"#00CC00",
|
|
3380
|
-
"#00CC33",
|
|
3381
|
-
"#00CC66",
|
|
3382
|
-
"#00CC99",
|
|
3383
|
-
"#00CCCC",
|
|
3384
|
-
"#00CCFF",
|
|
3385
|
-
"#3300CC",
|
|
3386
|
-
"#3300FF",
|
|
3387
|
-
"#3333CC",
|
|
3388
|
-
"#3333FF",
|
|
3389
|
-
"#3366CC",
|
|
3390
|
-
"#3366FF",
|
|
3391
|
-
"#3399CC",
|
|
3392
|
-
"#3399FF",
|
|
3393
|
-
"#33CC00",
|
|
3394
|
-
"#33CC33",
|
|
3395
|
-
"#33CC66",
|
|
3396
|
-
"#33CC99",
|
|
3397
|
-
"#33CCCC",
|
|
3398
|
-
"#33CCFF",
|
|
3399
|
-
"#6600CC",
|
|
3400
|
-
"#6600FF",
|
|
3401
|
-
"#6633CC",
|
|
3402
|
-
"#6633FF",
|
|
3403
|
-
"#66CC00",
|
|
3404
|
-
"#66CC33",
|
|
3405
|
-
"#9900CC",
|
|
3406
|
-
"#9900FF",
|
|
3407
|
-
"#9933CC",
|
|
3408
|
-
"#9933FF",
|
|
3409
|
-
"#99CC00",
|
|
3410
|
-
"#99CC33",
|
|
3411
|
-
"#CC0000",
|
|
3412
|
-
"#CC0033",
|
|
3413
|
-
"#CC0066",
|
|
3414
|
-
"#CC0099",
|
|
3415
|
-
"#CC00CC",
|
|
3416
|
-
"#CC00FF",
|
|
3417
|
-
"#CC3300",
|
|
3418
|
-
"#CC3333",
|
|
3419
|
-
"#CC3366",
|
|
3420
|
-
"#CC3399",
|
|
3421
|
-
"#CC33CC",
|
|
3422
|
-
"#CC33FF",
|
|
3423
|
-
"#CC6600",
|
|
3424
|
-
"#CC6633",
|
|
3425
|
-
"#CC9900",
|
|
3426
|
-
"#CC9933",
|
|
3427
|
-
"#CCCC00",
|
|
3428
|
-
"#CCCC33",
|
|
3429
|
-
"#FF0000",
|
|
3430
|
-
"#FF0033",
|
|
3431
|
-
"#FF0066",
|
|
3432
|
-
"#FF0099",
|
|
3433
|
-
"#FF00CC",
|
|
3434
|
-
"#FF00FF",
|
|
3435
|
-
"#FF3300",
|
|
3436
|
-
"#FF3333",
|
|
3437
|
-
"#FF3366",
|
|
3438
|
-
"#FF3399",
|
|
3439
|
-
"#FF33CC",
|
|
3440
|
-
"#FF33FF",
|
|
3441
|
-
"#FF6600",
|
|
3442
|
-
"#FF6633",
|
|
3443
|
-
"#FF9900",
|
|
3444
|
-
"#FF9933",
|
|
3445
|
-
"#FFCC00",
|
|
3446
|
-
"#FFCC33"
|
|
3447
|
-
];
|
|
3448
|
-
function useColors() {
|
|
3449
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
3450
|
-
return true;
|
|
3451
|
-
}
|
|
3452
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
3453
|
-
return false;
|
|
3454
|
-
}
|
|
3455
|
-
let m;
|
|
3456
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
3457
|
-
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
3458
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
3459
|
-
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
|
|
3460
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
3461
|
-
}
|
|
3462
|
-
__name(useColors, "useColors");
|
|
3463
|
-
function formatArgs(args) {
|
|
3464
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
3465
|
-
if (!this.useColors) {
|
|
3466
|
-
return;
|
|
3467
|
-
}
|
|
3468
|
-
const c = "color: " + this.color;
|
|
3469
|
-
args.splice(1, 0, c, "color: inherit");
|
|
3470
|
-
let index = 0;
|
|
3471
|
-
let lastC = 0;
|
|
3472
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
3473
|
-
if (match === "%%") {
|
|
3474
|
-
return;
|
|
3475
|
-
}
|
|
3476
|
-
index++;
|
|
3477
|
-
if (match === "%c") {
|
|
3478
|
-
lastC = index;
|
|
3479
|
-
}
|
|
3480
|
-
});
|
|
3481
|
-
args.splice(lastC, 0, c);
|
|
3482
|
-
}
|
|
3483
|
-
__name(formatArgs, "formatArgs");
|
|
3484
|
-
exports.log = console.debug || console.log || (() => {
|
|
3485
|
-
});
|
|
3486
|
-
function save(namespaces) {
|
|
3487
|
-
try {
|
|
3488
|
-
if (namespaces) {
|
|
3489
|
-
exports.storage.setItem("debug", namespaces);
|
|
3490
|
-
} else {
|
|
3491
|
-
exports.storage.removeItem("debug");
|
|
3492
|
-
}
|
|
3493
|
-
} catch (error) {
|
|
3494
|
-
}
|
|
3495
|
-
}
|
|
3496
|
-
__name(save, "save");
|
|
3497
|
-
function load() {
|
|
3498
|
-
let r;
|
|
3499
|
-
try {
|
|
3500
|
-
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
3501
|
-
} catch (error) {
|
|
3502
|
-
}
|
|
3503
|
-
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
3504
|
-
r = process.env.DEBUG;
|
|
3505
|
-
}
|
|
3506
|
-
return r;
|
|
3507
|
-
}
|
|
3508
|
-
__name(load, "load");
|
|
3509
|
-
function localstorage() {
|
|
3510
|
-
try {
|
|
3511
|
-
return localStorage;
|
|
3512
|
-
} catch (error) {
|
|
3513
|
-
}
|
|
3514
|
-
}
|
|
3515
|
-
__name(localstorage, "localstorage");
|
|
3516
|
-
module.exports = require_common()(exports);
|
|
3517
|
-
var { formatters } = module.exports;
|
|
3518
|
-
formatters.j = function(v) {
|
|
3519
|
-
try {
|
|
3520
|
-
return JSON.stringify(v);
|
|
3521
|
-
} catch (error) {
|
|
3522
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
3523
|
-
}
|
|
3524
|
-
};
|
|
3525
|
-
}
|
|
3526
|
-
});
|
|
3527
|
-
|
|
3528
|
-
// ../../node_modules/.store/has-flag-npm-4.0.0-32af9f0536/package/index.js
|
|
3529
|
-
var require_package2 = __commonJS({
|
|
3530
|
-
"../../node_modules/.store/has-flag-npm-4.0.0-32af9f0536/package/index.js"(exports, module) {
|
|
3531
|
-
"use strict";
|
|
3532
|
-
module.exports = (flag, argv = process.argv) => {
|
|
3533
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
3534
|
-
const position = argv.indexOf(prefix + flag);
|
|
3535
|
-
const terminatorPosition = argv.indexOf("--");
|
|
3536
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
3537
|
-
};
|
|
3538
|
-
}
|
|
3539
|
-
});
|
|
3540
|
-
|
|
3541
|
-
// ../../node_modules/.store/supports-color-npm-8.1.1-289e937149/package/index.js
|
|
3542
|
-
var require_package3 = __commonJS({
|
|
3543
|
-
"../../node_modules/.store/supports-color-npm-8.1.1-289e937149/package/index.js"(exports, module) {
|
|
3544
|
-
"use strict";
|
|
3545
|
-
var os = __require("os");
|
|
3546
|
-
var tty = __require("tty");
|
|
3547
|
-
var hasFlag = require_package2();
|
|
3548
|
-
var { env } = process;
|
|
3549
|
-
var flagForceColor;
|
|
3550
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
3551
|
-
flagForceColor = 0;
|
|
3552
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
3553
|
-
flagForceColor = 1;
|
|
3554
|
-
}
|
|
3555
|
-
function envForceColor() {
|
|
3556
|
-
if ("FORCE_COLOR" in env) {
|
|
3557
|
-
if (env.FORCE_COLOR === "true") {
|
|
3558
|
-
return 1;
|
|
3559
|
-
}
|
|
3560
|
-
if (env.FORCE_COLOR === "false") {
|
|
3561
|
-
return 0;
|
|
3562
|
-
}
|
|
3563
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
3564
|
-
}
|
|
3565
|
-
}
|
|
3566
|
-
__name(envForceColor, "envForceColor");
|
|
3567
|
-
function translateLevel(level) {
|
|
3568
|
-
if (level === 0) {
|
|
3569
|
-
return false;
|
|
3570
|
-
}
|
|
3571
|
-
return {
|
|
3572
|
-
level,
|
|
3573
|
-
hasBasic: true,
|
|
3574
|
-
has256: level >= 2,
|
|
3575
|
-
has16m: level >= 3
|
|
3576
|
-
};
|
|
3577
|
-
}
|
|
3578
|
-
__name(translateLevel, "translateLevel");
|
|
3579
|
-
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
3580
|
-
const noFlagForceColor = envForceColor();
|
|
3581
|
-
if (noFlagForceColor !== void 0) {
|
|
3582
|
-
flagForceColor = noFlagForceColor;
|
|
3583
|
-
}
|
|
3584
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
3585
|
-
if (forceColor === 0) {
|
|
3586
|
-
return 0;
|
|
3587
|
-
}
|
|
3588
|
-
if (sniffFlags) {
|
|
3589
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
3590
|
-
return 3;
|
|
3591
|
-
}
|
|
3592
|
-
if (hasFlag("color=256")) {
|
|
3593
|
-
return 2;
|
|
3594
|
-
}
|
|
3595
|
-
}
|
|
3596
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
3597
|
-
return 0;
|
|
3598
|
-
}
|
|
3599
|
-
const min = forceColor || 0;
|
|
3600
|
-
if (env.TERM === "dumb") {
|
|
3601
|
-
return min;
|
|
3602
|
-
}
|
|
3603
|
-
if (process.platform === "win32") {
|
|
3604
|
-
const osRelease = os.release().split(".");
|
|
3605
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
3606
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
3607
|
-
}
|
|
3608
|
-
return 1;
|
|
3609
|
-
}
|
|
3610
|
-
if ("CI" in env) {
|
|
3611
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
3612
|
-
return 1;
|
|
3613
|
-
}
|
|
3614
|
-
return min;
|
|
3615
|
-
}
|
|
3616
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
3617
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
3618
|
-
}
|
|
3619
|
-
if (env.COLORTERM === "truecolor") {
|
|
3620
|
-
return 3;
|
|
3621
|
-
}
|
|
3622
|
-
if ("TERM_PROGRAM" in env) {
|
|
3623
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
3624
|
-
switch (env.TERM_PROGRAM) {
|
|
3625
|
-
case "iTerm.app":
|
|
3626
|
-
return version >= 3 ? 3 : 2;
|
|
3627
|
-
case "Apple_Terminal":
|
|
3628
|
-
return 2;
|
|
3629
|
-
}
|
|
3630
|
-
}
|
|
3631
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
3632
|
-
return 2;
|
|
3633
|
-
}
|
|
3634
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
3635
|
-
return 1;
|
|
3636
|
-
}
|
|
3637
|
-
if ("COLORTERM" in env) {
|
|
3638
|
-
return 1;
|
|
3639
|
-
}
|
|
3640
|
-
return min;
|
|
3641
|
-
}
|
|
3642
|
-
__name(supportsColor, "supportsColor");
|
|
3643
|
-
function getSupportLevel(stream, options = {}) {
|
|
3644
|
-
const level = supportsColor(stream, {
|
|
3645
|
-
streamIsTTY: stream && stream.isTTY,
|
|
3646
|
-
...options
|
|
3647
|
-
});
|
|
3648
|
-
return translateLevel(level);
|
|
3649
|
-
}
|
|
3650
|
-
__name(getSupportLevel, "getSupportLevel");
|
|
3651
|
-
module.exports = {
|
|
3652
|
-
supportsColor: getSupportLevel,
|
|
3653
|
-
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
3654
|
-
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
3655
|
-
};
|
|
3656
|
-
}
|
|
3657
|
-
});
|
|
3658
|
-
|
|
3659
|
-
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/node.js
|
|
3660
|
-
var require_node = __commonJS({
|
|
3661
|
-
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/node.js"(exports, module) {
|
|
3662
|
-
var tty = __require("tty");
|
|
3663
|
-
var util = __require("util");
|
|
3664
|
-
exports.init = init;
|
|
3665
|
-
exports.log = log;
|
|
3666
|
-
exports.formatArgs = formatArgs;
|
|
3667
|
-
exports.save = save;
|
|
3668
|
-
exports.load = load;
|
|
3669
|
-
exports.useColors = useColors;
|
|
3670
|
-
exports.destroy = util.deprecate(
|
|
3671
|
-
() => {
|
|
3672
|
-
},
|
|
3673
|
-
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
3674
|
-
);
|
|
3675
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
3676
|
-
try {
|
|
3677
|
-
const supportsColor = require_package3();
|
|
3678
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
3679
|
-
exports.colors = [
|
|
3680
|
-
20,
|
|
3681
|
-
21,
|
|
3682
|
-
26,
|
|
3683
|
-
27,
|
|
3684
|
-
32,
|
|
3685
|
-
33,
|
|
3686
|
-
38,
|
|
3687
|
-
39,
|
|
3688
|
-
40,
|
|
3689
|
-
41,
|
|
3690
|
-
42,
|
|
3691
|
-
43,
|
|
3692
|
-
44,
|
|
3693
|
-
45,
|
|
3694
|
-
56,
|
|
3695
|
-
57,
|
|
3696
|
-
62,
|
|
3697
|
-
63,
|
|
3698
|
-
68,
|
|
3699
|
-
69,
|
|
3700
|
-
74,
|
|
3701
|
-
75,
|
|
3702
|
-
76,
|
|
3703
|
-
77,
|
|
3704
|
-
78,
|
|
3705
|
-
79,
|
|
3706
|
-
80,
|
|
3707
|
-
81,
|
|
3708
|
-
92,
|
|
3709
|
-
93,
|
|
3710
|
-
98,
|
|
3711
|
-
99,
|
|
3712
|
-
112,
|
|
3713
|
-
113,
|
|
3714
|
-
128,
|
|
3715
|
-
129,
|
|
3716
|
-
134,
|
|
3717
|
-
135,
|
|
3718
|
-
148,
|
|
3719
|
-
149,
|
|
3720
|
-
160,
|
|
3721
|
-
161,
|
|
3722
|
-
162,
|
|
3723
|
-
163,
|
|
3724
|
-
164,
|
|
3725
|
-
165,
|
|
3726
|
-
166,
|
|
3727
|
-
167,
|
|
3728
|
-
168,
|
|
3729
|
-
169,
|
|
3730
|
-
170,
|
|
3731
|
-
171,
|
|
3732
|
-
172,
|
|
3733
|
-
173,
|
|
3734
|
-
178,
|
|
3735
|
-
179,
|
|
3736
|
-
184,
|
|
3737
|
-
185,
|
|
3738
|
-
196,
|
|
3739
|
-
197,
|
|
3740
|
-
198,
|
|
3741
|
-
199,
|
|
3742
|
-
200,
|
|
3743
|
-
201,
|
|
3744
|
-
202,
|
|
3745
|
-
203,
|
|
3746
|
-
204,
|
|
3747
|
-
205,
|
|
3748
|
-
206,
|
|
3749
|
-
207,
|
|
3750
|
-
208,
|
|
3751
|
-
209,
|
|
3752
|
-
214,
|
|
3753
|
-
215,
|
|
3754
|
-
220,
|
|
3755
|
-
221
|
|
3756
|
-
];
|
|
3757
|
-
}
|
|
3758
|
-
} catch (error) {
|
|
3759
|
-
}
|
|
3760
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
3761
|
-
return /^debug_/i.test(key);
|
|
3762
|
-
}).reduce((obj, key) => {
|
|
3763
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
3764
|
-
return k.toUpperCase();
|
|
3765
|
-
});
|
|
3766
|
-
let val = process.env[key];
|
|
3767
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
3768
|
-
val = true;
|
|
3769
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
3770
|
-
val = false;
|
|
3771
|
-
} else if (val === "null") {
|
|
3772
|
-
val = null;
|
|
3773
|
-
} else {
|
|
3774
|
-
val = Number(val);
|
|
3775
|
-
}
|
|
3776
|
-
obj[prop] = val;
|
|
3777
|
-
return obj;
|
|
3778
|
-
}, {});
|
|
3779
|
-
function useColors() {
|
|
3780
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
3781
|
-
}
|
|
3782
|
-
__name(useColors, "useColors");
|
|
3783
|
-
function formatArgs(args) {
|
|
3784
|
-
const { namespace: name, useColors: useColors2 } = this;
|
|
3785
|
-
if (useColors2) {
|
|
3786
|
-
const c = this.color;
|
|
3787
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
3788
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
3789
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
3790
|
-
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
3791
|
-
} else {
|
|
3792
|
-
args[0] = getDate() + name + " " + args[0];
|
|
3793
|
-
}
|
|
3794
|
-
}
|
|
3795
|
-
__name(formatArgs, "formatArgs");
|
|
3796
|
-
function getDate() {
|
|
3797
|
-
if (exports.inspectOpts.hideDate) {
|
|
3798
|
-
return "";
|
|
3799
|
-
}
|
|
3800
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
3801
|
-
}
|
|
3802
|
-
__name(getDate, "getDate");
|
|
3803
|
-
function log(...args) {
|
|
3804
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
3805
|
-
}
|
|
3806
|
-
__name(log, "log");
|
|
3807
|
-
function save(namespaces) {
|
|
3808
|
-
if (namespaces) {
|
|
3809
|
-
process.env.DEBUG = namespaces;
|
|
3810
|
-
} else {
|
|
3811
|
-
delete process.env.DEBUG;
|
|
3812
|
-
}
|
|
3813
|
-
}
|
|
3814
|
-
__name(save, "save");
|
|
3815
|
-
function load() {
|
|
3816
|
-
return process.env.DEBUG;
|
|
3817
|
-
}
|
|
3818
|
-
__name(load, "load");
|
|
3819
|
-
function init(debug) {
|
|
3820
|
-
debug.inspectOpts = {};
|
|
3821
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
3822
|
-
for (let i = 0; i < keys.length; i++) {
|
|
3823
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
3824
|
-
}
|
|
3825
|
-
}
|
|
3826
|
-
__name(init, "init");
|
|
3827
|
-
module.exports = require_common()(exports);
|
|
3828
|
-
var { formatters } = module.exports;
|
|
3829
|
-
formatters.o = function(v) {
|
|
3830
|
-
this.inspectOpts.colors = this.useColors;
|
|
3831
|
-
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
3832
|
-
};
|
|
3833
|
-
formatters.O = function(v) {
|
|
3834
|
-
this.inspectOpts.colors = this.useColors;
|
|
3835
|
-
return util.inspect(v, this.inspectOpts);
|
|
3836
|
-
};
|
|
3837
|
-
}
|
|
3838
|
-
});
|
|
3839
|
-
|
|
3840
|
-
// ../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/index.js
|
|
3841
|
-
var require_src = __commonJS({
|
|
3842
|
-
"../../node_modules/.store/debug-virtual-1bd1bed0f6/package/src/index.js"(exports, module) {
|
|
3843
|
-
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
3844
|
-
module.exports = require_browser();
|
|
3845
|
-
} else {
|
|
3846
|
-
module.exports = require_node();
|
|
3847
|
-
}
|
|
3848
|
-
}
|
|
3849
|
-
});
|
|
3850
|
-
|
|
3851
|
-
// ../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/helpers.js
|
|
3852
|
-
var require_helpers2 = __commonJS({
|
|
3853
|
-
"../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/helpers.js"(exports) {
|
|
3854
|
-
"use strict";
|
|
3855
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3856
|
-
if (k2 === void 0) k2 = k;
|
|
3857
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3858
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3859
|
-
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
3860
|
-
return m[k];
|
|
3861
|
-
}, "get") };
|
|
3862
|
-
}
|
|
3863
|
-
Object.defineProperty(o, k2, desc);
|
|
3864
|
-
} : function(o, m, k, k2) {
|
|
3865
|
-
if (k2 === void 0) k2 = k;
|
|
3866
|
-
o[k2] = m[k];
|
|
3867
|
-
});
|
|
3868
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
3869
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
3870
|
-
} : function(o, v) {
|
|
3871
|
-
o["default"] = v;
|
|
3872
|
-
});
|
|
3873
|
-
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
3874
|
-
if (mod && mod.__esModule) return mod;
|
|
3875
|
-
var result = {};
|
|
3876
|
-
if (mod != null) {
|
|
3877
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
3878
|
-
}
|
|
3879
|
-
__setModuleDefault2(result, mod);
|
|
3880
|
-
return result;
|
|
3881
|
-
};
|
|
3882
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3883
|
-
exports.req = exports.json = exports.toBuffer = void 0;
|
|
3884
|
-
var http = __importStar2(__require("http"));
|
|
3885
|
-
var https = __importStar2(__require("https"));
|
|
3886
|
-
async function toBuffer(stream) {
|
|
3887
|
-
let length = 0;
|
|
3888
|
-
const chunks = [];
|
|
3889
|
-
for await (const chunk of stream) {
|
|
3890
|
-
length += chunk.length;
|
|
3891
|
-
chunks.push(chunk);
|
|
3892
|
-
}
|
|
3893
|
-
return Buffer.concat(chunks, length);
|
|
3894
|
-
}
|
|
3895
|
-
__name(toBuffer, "toBuffer");
|
|
3896
|
-
exports.toBuffer = toBuffer;
|
|
3897
|
-
async function json(stream) {
|
|
3898
|
-
const buf = await toBuffer(stream);
|
|
3899
|
-
const str = buf.toString("utf8");
|
|
3900
|
-
try {
|
|
3901
|
-
return JSON.parse(str);
|
|
3902
|
-
} catch (_err) {
|
|
3903
|
-
const err = _err;
|
|
3904
|
-
err.message += ` (input: ${str})`;
|
|
3905
|
-
throw err;
|
|
3906
|
-
}
|
|
3907
|
-
}
|
|
3908
|
-
__name(json, "json");
|
|
3909
|
-
exports.json = json;
|
|
3910
|
-
function req(url, opts = {}) {
|
|
3911
|
-
const href = typeof url === "string" ? url : url.href;
|
|
3912
|
-
const req2 = (href.startsWith("https:") ? https : http).request(url, opts);
|
|
3913
|
-
const promise = new Promise((resolve, reject) => {
|
|
3914
|
-
req2.once("response", resolve).once("error", reject).end();
|
|
3915
|
-
});
|
|
3916
|
-
req2.then = promise.then.bind(promise);
|
|
3917
|
-
return req2;
|
|
3918
|
-
}
|
|
3919
|
-
__name(req, "req");
|
|
3920
|
-
exports.req = req;
|
|
3921
|
-
}
|
|
3922
|
-
});
|
|
3923
|
-
|
|
3924
|
-
// ../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/index.js
|
|
3925
|
-
var require_dist = __commonJS({
|
|
3926
|
-
"../../node_modules/.store/agent-base-npm-7.1.4-cb8b4604d5/package/dist/index.js"(exports) {
|
|
3927
|
-
"use strict";
|
|
3928
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3929
|
-
if (k2 === void 0) k2 = k;
|
|
3930
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3931
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3932
|
-
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
3933
|
-
return m[k];
|
|
3934
|
-
}, "get") };
|
|
3935
|
-
}
|
|
3936
|
-
Object.defineProperty(o, k2, desc);
|
|
3937
|
-
} : function(o, m, k, k2) {
|
|
3938
|
-
if (k2 === void 0) k2 = k;
|
|
3939
|
-
o[k2] = m[k];
|
|
3940
|
-
});
|
|
3941
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
3942
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
3943
|
-
} : function(o, v) {
|
|
3944
|
-
o["default"] = v;
|
|
3945
|
-
});
|
|
3946
|
-
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
3947
|
-
if (mod && mod.__esModule) return mod;
|
|
3948
|
-
var result = {};
|
|
3949
|
-
if (mod != null) {
|
|
3950
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
3951
|
-
}
|
|
3952
|
-
__setModuleDefault2(result, mod);
|
|
3953
|
-
return result;
|
|
3954
|
-
};
|
|
3955
|
-
var __exportStar2 = exports && exports.__exportStar || function(m, exports2) {
|
|
3956
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding2(exports2, m, p);
|
|
3957
|
-
};
|
|
3958
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3959
|
-
exports.Agent = void 0;
|
|
3960
|
-
var net = __importStar2(__require("net"));
|
|
3961
|
-
var http = __importStar2(__require("http"));
|
|
3962
|
-
var https_1 = __require("https");
|
|
3963
|
-
__exportStar2(require_helpers2(), exports);
|
|
3964
|
-
var INTERNAL = Symbol("AgentBaseInternalState");
|
|
3965
|
-
var _Agent = class _Agent extends http.Agent {
|
|
3966
|
-
constructor(opts) {
|
|
3967
|
-
super(opts);
|
|
3968
|
-
this[INTERNAL] = {};
|
|
3969
|
-
}
|
|
3970
|
-
/**
|
|
3971
|
-
* Determine whether this is an `http` or `https` request.
|
|
3972
|
-
*/
|
|
3973
|
-
isSecureEndpoint(options) {
|
|
3974
|
-
if (options) {
|
|
3975
|
-
if (typeof options.secureEndpoint === "boolean") {
|
|
3976
|
-
return options.secureEndpoint;
|
|
3977
|
-
}
|
|
3978
|
-
if (typeof options.protocol === "string") {
|
|
3979
|
-
return options.protocol === "https:";
|
|
3980
|
-
}
|
|
3981
|
-
}
|
|
3982
|
-
const { stack } = new Error();
|
|
3983
|
-
if (typeof stack !== "string")
|
|
3984
|
-
return false;
|
|
3985
|
-
return stack.split("\n").some((l) => l.indexOf("(https.js:") !== -1 || l.indexOf("node:https:") !== -1);
|
|
3986
|
-
}
|
|
3987
|
-
// In order to support async signatures in `connect()` and Node's native
|
|
3988
|
-
// connection pooling in `http.Agent`, the array of sockets for each origin
|
|
3989
|
-
// has to be updated synchronously. This is so the length of the array is
|
|
3990
|
-
// accurate when `addRequest()` is next called. We achieve this by creating a
|
|
3991
|
-
// fake socket and adding it to `sockets[origin]` and incrementing
|
|
3992
|
-
// `totalSocketCount`.
|
|
3993
|
-
incrementSockets(name) {
|
|
3994
|
-
if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) {
|
|
3995
|
-
return null;
|
|
3996
|
-
}
|
|
3997
|
-
if (!this.sockets[name]) {
|
|
3998
|
-
this.sockets[name] = [];
|
|
3999
|
-
}
|
|
4000
|
-
const fakeSocket = new net.Socket({ writable: false });
|
|
4001
|
-
this.sockets[name].push(fakeSocket);
|
|
4002
|
-
this.totalSocketCount++;
|
|
4003
|
-
return fakeSocket;
|
|
4004
|
-
}
|
|
4005
|
-
decrementSockets(name, socket) {
|
|
4006
|
-
if (!this.sockets[name] || socket === null) {
|
|
4007
|
-
return;
|
|
4008
|
-
}
|
|
4009
|
-
const sockets = this.sockets[name];
|
|
4010
|
-
const index = sockets.indexOf(socket);
|
|
4011
|
-
if (index !== -1) {
|
|
4012
|
-
sockets.splice(index, 1);
|
|
4013
|
-
this.totalSocketCount--;
|
|
4014
|
-
if (sockets.length === 0) {
|
|
4015
|
-
delete this.sockets[name];
|
|
4016
|
-
}
|
|
4017
|
-
}
|
|
4018
|
-
}
|
|
4019
|
-
// In order to properly update the socket pool, we need to call `getName()` on
|
|
4020
|
-
// the core `https.Agent` if it is a secureEndpoint.
|
|
4021
|
-
getName(options) {
|
|
4022
|
-
const secureEndpoint = this.isSecureEndpoint(options);
|
|
4023
|
-
if (secureEndpoint) {
|
|
4024
|
-
return https_1.Agent.prototype.getName.call(this, options);
|
|
4025
|
-
}
|
|
4026
|
-
return super.getName(options);
|
|
4027
|
-
}
|
|
4028
|
-
createSocket(req, options, cb) {
|
|
4029
|
-
const connectOpts = {
|
|
4030
|
-
...options,
|
|
4031
|
-
secureEndpoint: this.isSecureEndpoint(options)
|
|
4032
|
-
};
|
|
4033
|
-
const name = this.getName(connectOpts);
|
|
4034
|
-
const fakeSocket = this.incrementSockets(name);
|
|
4035
|
-
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
|
|
4036
|
-
this.decrementSockets(name, fakeSocket);
|
|
4037
|
-
if (socket instanceof http.Agent) {
|
|
4038
|
-
try {
|
|
4039
|
-
return socket.addRequest(req, connectOpts);
|
|
4040
|
-
} catch (err) {
|
|
4041
|
-
return cb(err);
|
|
4042
|
-
}
|
|
4043
|
-
}
|
|
4044
|
-
this[INTERNAL].currentSocket = socket;
|
|
4045
|
-
super.createSocket(req, options, cb);
|
|
4046
|
-
}, (err) => {
|
|
4047
|
-
this.decrementSockets(name, fakeSocket);
|
|
4048
|
-
cb(err);
|
|
4049
|
-
});
|
|
4050
|
-
}
|
|
4051
|
-
createConnection() {
|
|
4052
|
-
const socket = this[INTERNAL].currentSocket;
|
|
4053
|
-
this[INTERNAL].currentSocket = void 0;
|
|
4054
|
-
if (!socket) {
|
|
4055
|
-
throw new Error("No socket was returned in the `connect()` function");
|
|
4056
|
-
}
|
|
4057
|
-
return socket;
|
|
4058
|
-
}
|
|
4059
|
-
get defaultPort() {
|
|
4060
|
-
return this[INTERNAL].defaultPort ?? (this.protocol === "https:" ? 443 : 80);
|
|
4061
|
-
}
|
|
4062
|
-
set defaultPort(v) {
|
|
4063
|
-
if (this[INTERNAL]) {
|
|
4064
|
-
this[INTERNAL].defaultPort = v;
|
|
4065
|
-
}
|
|
4066
|
-
}
|
|
4067
|
-
get protocol() {
|
|
4068
|
-
return this[INTERNAL].protocol ?? (this.isSecureEndpoint() ? "https:" : "http:");
|
|
4069
|
-
}
|
|
4070
|
-
set protocol(v) {
|
|
4071
|
-
if (this[INTERNAL]) {
|
|
4072
|
-
this[INTERNAL].protocol = v;
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4075
|
-
};
|
|
4076
|
-
__name(_Agent, "Agent");
|
|
4077
|
-
var Agent = _Agent;
|
|
4078
|
-
exports.Agent = Agent;
|
|
4079
|
-
}
|
|
4080
|
-
});
|
|
4081
|
-
|
|
4082
|
-
// ../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/parse-proxy-response.js
|
|
4083
|
-
var require_parse_proxy_response = __commonJS({
|
|
4084
|
-
"../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/parse-proxy-response.js"(exports) {
|
|
4085
|
-
"use strict";
|
|
4086
|
-
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
4087
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
4088
|
-
};
|
|
4089
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4090
|
-
exports.parseProxyResponse = void 0;
|
|
4091
|
-
var debug_1 = __importDefault2(require_src());
|
|
4092
|
-
var debug = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
|
|
4093
|
-
function parseProxyResponse(socket) {
|
|
4094
|
-
return new Promise((resolve, reject) => {
|
|
4095
|
-
let buffersLength = 0;
|
|
4096
|
-
const buffers = [];
|
|
4097
|
-
function read() {
|
|
4098
|
-
const b = socket.read();
|
|
4099
|
-
if (b)
|
|
4100
|
-
ondata(b);
|
|
4101
|
-
else
|
|
4102
|
-
socket.once("readable", read);
|
|
4103
|
-
}
|
|
4104
|
-
__name(read, "read");
|
|
4105
|
-
function cleanup() {
|
|
4106
|
-
socket.removeListener("end", onend);
|
|
4107
|
-
socket.removeListener("error", onerror);
|
|
4108
|
-
socket.removeListener("readable", read);
|
|
4109
|
-
}
|
|
4110
|
-
__name(cleanup, "cleanup");
|
|
4111
|
-
function onend() {
|
|
4112
|
-
cleanup();
|
|
4113
|
-
debug("onend");
|
|
4114
|
-
reject(new Error("Proxy connection ended before receiving CONNECT response"));
|
|
4115
|
-
}
|
|
4116
|
-
__name(onend, "onend");
|
|
4117
|
-
function onerror(err) {
|
|
4118
|
-
cleanup();
|
|
4119
|
-
debug("onerror %o", err);
|
|
4120
|
-
reject(err);
|
|
4121
|
-
}
|
|
4122
|
-
__name(onerror, "onerror");
|
|
4123
|
-
function ondata(b) {
|
|
4124
|
-
buffers.push(b);
|
|
4125
|
-
buffersLength += b.length;
|
|
4126
|
-
const buffered = Buffer.concat(buffers, buffersLength);
|
|
4127
|
-
const endOfHeaders = buffered.indexOf("\r\n\r\n");
|
|
4128
|
-
if (endOfHeaders === -1) {
|
|
4129
|
-
debug("have not received end of HTTP headers yet...");
|
|
4130
|
-
read();
|
|
4131
|
-
return;
|
|
4132
|
-
}
|
|
4133
|
-
const headerParts = buffered.slice(0, endOfHeaders).toString("ascii").split("\r\n");
|
|
4134
|
-
const firstLine = headerParts.shift();
|
|
4135
|
-
if (!firstLine) {
|
|
4136
|
-
socket.destroy();
|
|
4137
|
-
return reject(new Error("No header received from proxy CONNECT response"));
|
|
4138
|
-
}
|
|
4139
|
-
const firstLineParts = firstLine.split(" ");
|
|
4140
|
-
const statusCode = +firstLineParts[1];
|
|
4141
|
-
const statusText = firstLineParts.slice(2).join(" ");
|
|
4142
|
-
const headers = {};
|
|
4143
|
-
for (const header of headerParts) {
|
|
4144
|
-
if (!header)
|
|
4145
|
-
continue;
|
|
4146
|
-
const firstColon = header.indexOf(":");
|
|
4147
|
-
if (firstColon === -1) {
|
|
4148
|
-
socket.destroy();
|
|
4149
|
-
return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`));
|
|
4150
|
-
}
|
|
4151
|
-
const key = header.slice(0, firstColon).toLowerCase();
|
|
4152
|
-
const value = header.slice(firstColon + 1).trimStart();
|
|
4153
|
-
const current = headers[key];
|
|
4154
|
-
if (typeof current === "string") {
|
|
4155
|
-
headers[key] = [current, value];
|
|
4156
|
-
} else if (Array.isArray(current)) {
|
|
4157
|
-
current.push(value);
|
|
4158
|
-
} else {
|
|
4159
|
-
headers[key] = value;
|
|
4160
|
-
}
|
|
4161
|
-
}
|
|
4162
|
-
debug("got proxy server response: %o %o", firstLine, headers);
|
|
4163
|
-
cleanup();
|
|
4164
|
-
resolve({
|
|
4165
|
-
connect: {
|
|
4166
|
-
statusCode,
|
|
4167
|
-
statusText,
|
|
4168
|
-
headers
|
|
4169
|
-
},
|
|
4170
|
-
buffered
|
|
4171
|
-
});
|
|
4172
|
-
}
|
|
4173
|
-
__name(ondata, "ondata");
|
|
4174
|
-
socket.on("error", onerror);
|
|
4175
|
-
socket.on("end", onend);
|
|
4176
|
-
read();
|
|
4177
|
-
});
|
|
4178
|
-
}
|
|
4179
|
-
__name(parseProxyResponse, "parseProxyResponse");
|
|
4180
|
-
exports.parseProxyResponse = parseProxyResponse;
|
|
4181
|
-
}
|
|
4182
|
-
});
|
|
4183
|
-
|
|
4184
|
-
// ../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/index.js
|
|
4185
|
-
var require_dist2 = __commonJS({
|
|
4186
|
-
"../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/index.js"(exports) {
|
|
4187
|
-
"use strict";
|
|
4188
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4189
|
-
if (k2 === void 0) k2 = k;
|
|
4190
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4191
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
4192
|
-
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4193
|
-
return m[k];
|
|
4194
|
-
}, "get") };
|
|
4195
|
-
}
|
|
4196
|
-
Object.defineProperty(o, k2, desc);
|
|
4197
|
-
} : function(o, m, k, k2) {
|
|
4198
|
-
if (k2 === void 0) k2 = k;
|
|
4199
|
-
o[k2] = m[k];
|
|
4200
|
-
});
|
|
4201
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
4202
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
4203
|
-
} : function(o, v) {
|
|
4204
|
-
o["default"] = v;
|
|
4205
|
-
});
|
|
4206
|
-
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
4207
|
-
if (mod && mod.__esModule) return mod;
|
|
4208
|
-
var result = {};
|
|
4209
|
-
if (mod != null) {
|
|
4210
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
4211
|
-
}
|
|
4212
|
-
__setModuleDefault2(result, mod);
|
|
4213
|
-
return result;
|
|
4214
|
-
};
|
|
4215
|
-
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
4216
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
4217
|
-
};
|
|
4218
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4219
|
-
exports.HttpsProxyAgent = void 0;
|
|
4220
|
-
var net = __importStar2(__require("net"));
|
|
4221
|
-
var tls = __importStar2(__require("tls"));
|
|
4222
|
-
var assert_1 = __importDefault2(__require("assert"));
|
|
4223
|
-
var debug_1 = __importDefault2(require_src());
|
|
4224
|
-
var agent_base_1 = require_dist();
|
|
4225
|
-
var url_1 = __require("url");
|
|
4226
|
-
var parse_proxy_response_1 = require_parse_proxy_response();
|
|
4227
|
-
var debug = (0, debug_1.default)("https-proxy-agent");
|
|
4228
|
-
var setServernameFromNonIpHost = /* @__PURE__ */ __name((options) => {
|
|
4229
|
-
if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
|
|
4230
|
-
return {
|
|
4231
|
-
...options,
|
|
4232
|
-
servername: options.host
|
|
4233
|
-
};
|
|
4234
|
-
}
|
|
4235
|
-
return options;
|
|
4236
|
-
}, "setServernameFromNonIpHost");
|
|
4237
|
-
var _HttpsProxyAgent = class _HttpsProxyAgent extends agent_base_1.Agent {
|
|
4238
|
-
constructor(proxy, opts) {
|
|
4239
|
-
super(opts);
|
|
4240
|
-
this.options = { path: void 0 };
|
|
4241
|
-
this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
|
|
4242
|
-
this.proxyHeaders = (opts == null ? void 0 : opts.headers) ?? {};
|
|
4243
|
-
debug("Creating new HttpsProxyAgent instance: %o", this.proxy.href);
|
|
4244
|
-
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
|
|
4245
|
-
const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
|
|
4246
|
-
this.connectOpts = {
|
|
4247
|
-
// Attempt to negotiate http/1.1 for proxy servers that support http/2
|
|
4248
|
-
ALPNProtocols: ["http/1.1"],
|
|
4249
|
-
...opts ? omit(opts, "headers") : null,
|
|
4250
|
-
host,
|
|
4251
|
-
port
|
|
4252
|
-
};
|
|
4253
|
-
}
|
|
4254
|
-
/**
|
|
4255
|
-
* Called when the node-core HTTP client library is creating a
|
|
4256
|
-
* new HTTP request.
|
|
4257
|
-
*/
|
|
4258
|
-
async connect(req, opts) {
|
|
4259
|
-
const { proxy } = this;
|
|
4260
|
-
if (!opts.host) {
|
|
4261
|
-
throw new TypeError('No "host" provided');
|
|
4262
|
-
}
|
|
4263
|
-
let socket;
|
|
4264
|
-
if (proxy.protocol === "https:") {
|
|
4265
|
-
debug("Creating `tls.Socket`: %o", this.connectOpts);
|
|
4266
|
-
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
|
|
4267
|
-
} else {
|
|
4268
|
-
debug("Creating `net.Socket`: %o", this.connectOpts);
|
|
4269
|
-
socket = net.connect(this.connectOpts);
|
|
4270
|
-
}
|
|
4271
|
-
const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
|
|
4272
|
-
const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host;
|
|
4273
|
-
let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r
|
|
4274
|
-
`;
|
|
4275
|
-
if (proxy.username || proxy.password) {
|
|
4276
|
-
const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
|
|
4277
|
-
headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
|
|
4278
|
-
}
|
|
4279
|
-
headers.Host = `${host}:${opts.port}`;
|
|
4280
|
-
if (!headers["Proxy-Connection"]) {
|
|
4281
|
-
headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
|
|
4282
|
-
}
|
|
4283
|
-
for (const name of Object.keys(headers)) {
|
|
4284
|
-
payload += `${name}: ${headers[name]}\r
|
|
4285
|
-
`;
|
|
4286
|
-
}
|
|
4287
|
-
const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket);
|
|
4288
|
-
socket.write(`${payload}\r
|
|
4289
|
-
`);
|
|
4290
|
-
const { connect, buffered } = await proxyResponsePromise;
|
|
4291
|
-
req.emit("proxyConnect", connect);
|
|
4292
|
-
this.emit("proxyConnect", connect, req);
|
|
4293
|
-
if (connect.statusCode === 200) {
|
|
4294
|
-
req.once("socket", resume);
|
|
4295
|
-
if (opts.secureEndpoint) {
|
|
4296
|
-
debug("Upgrading socket connection to TLS");
|
|
4297
|
-
return tls.connect({
|
|
4298
|
-
...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
|
|
4299
|
-
socket
|
|
4300
|
-
});
|
|
4301
|
-
}
|
|
4302
|
-
return socket;
|
|
4303
|
-
}
|
|
4304
|
-
socket.destroy();
|
|
4305
|
-
const fakeSocket = new net.Socket({ writable: false });
|
|
4306
|
-
fakeSocket.readable = true;
|
|
4307
|
-
req.once("socket", (s) => {
|
|
4308
|
-
debug("Replaying proxy buffer for failed request");
|
|
4309
|
-
(0, assert_1.default)(s.listenerCount("data") > 0);
|
|
4310
|
-
s.push(buffered);
|
|
4311
|
-
s.push(null);
|
|
4312
|
-
});
|
|
4313
|
-
return fakeSocket;
|
|
4314
|
-
}
|
|
4315
|
-
};
|
|
4316
|
-
__name(_HttpsProxyAgent, "HttpsProxyAgent");
|
|
4317
|
-
var HttpsProxyAgent = _HttpsProxyAgent;
|
|
4318
|
-
HttpsProxyAgent.protocols = ["http", "https"];
|
|
4319
|
-
exports.HttpsProxyAgent = HttpsProxyAgent;
|
|
4320
|
-
function resume(socket) {
|
|
4321
|
-
socket.resume();
|
|
4322
|
-
}
|
|
4323
|
-
__name(resume, "resume");
|
|
4324
|
-
function omit(obj, ...keys) {
|
|
4325
|
-
const ret = {};
|
|
4326
|
-
let key;
|
|
4327
|
-
for (key in obj) {
|
|
4328
|
-
if (!keys.includes(key)) {
|
|
4329
|
-
ret[key] = obj[key];
|
|
4330
|
-
}
|
|
4331
|
-
}
|
|
4332
|
-
return ret;
|
|
4333
|
-
}
|
|
4334
|
-
__name(omit, "omit");
|
|
4335
|
-
}
|
|
4336
|
-
});
|
|
4337
|
-
|
|
4338
|
-
// ../../node_modules/.store/http-proxy-agent-npm-7.0.2-643ed7cc33/package/dist/index.js
|
|
4339
|
-
var require_dist3 = __commonJS({
|
|
4340
|
-
"../../node_modules/.store/http-proxy-agent-npm-7.0.2-643ed7cc33/package/dist/index.js"(exports) {
|
|
4341
|
-
"use strict";
|
|
4342
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4343
|
-
if (k2 === void 0) k2 = k;
|
|
4344
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4345
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
4346
|
-
desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
|
|
4347
|
-
return m[k];
|
|
4348
|
-
}, "get") };
|
|
4349
|
-
}
|
|
4350
|
-
Object.defineProperty(o, k2, desc);
|
|
4351
|
-
} : function(o, m, k, k2) {
|
|
4352
|
-
if (k2 === void 0) k2 = k;
|
|
4353
|
-
o[k2] = m[k];
|
|
4354
|
-
});
|
|
4355
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
4356
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
4357
|
-
} : function(o, v) {
|
|
4358
|
-
o["default"] = v;
|
|
4359
|
-
});
|
|
4360
|
-
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
4361
|
-
if (mod && mod.__esModule) return mod;
|
|
4362
|
-
var result = {};
|
|
4363
|
-
if (mod != null) {
|
|
4364
|
-
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding2(result, mod, k);
|
|
4365
|
-
}
|
|
4366
|
-
__setModuleDefault2(result, mod);
|
|
4367
|
-
return result;
|
|
4368
|
-
};
|
|
4369
|
-
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
4370
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
4371
|
-
};
|
|
4372
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4373
|
-
exports.HttpProxyAgent = void 0;
|
|
4374
|
-
var net = __importStar2(__require("net"));
|
|
4375
|
-
var tls = __importStar2(__require("tls"));
|
|
4376
|
-
var debug_1 = __importDefault2(require_src());
|
|
4377
|
-
var events_1 = __require("events");
|
|
4378
|
-
var agent_base_1 = require_dist();
|
|
4379
|
-
var url_1 = __require("url");
|
|
4380
|
-
var debug = (0, debug_1.default)("http-proxy-agent");
|
|
4381
|
-
var _HttpProxyAgent = class _HttpProxyAgent extends agent_base_1.Agent {
|
|
4382
|
-
constructor(proxy, opts) {
|
|
4383
|
-
super(opts);
|
|
4384
|
-
this.proxy = typeof proxy === "string" ? new url_1.URL(proxy) : proxy;
|
|
4385
|
-
this.proxyHeaders = (opts == null ? void 0 : opts.headers) ?? {};
|
|
4386
|
-
debug("Creating new HttpProxyAgent instance: %o", this.proxy.href);
|
|
4387
|
-
const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, "");
|
|
4388
|
-
const port = this.proxy.port ? parseInt(this.proxy.port, 10) : this.proxy.protocol === "https:" ? 443 : 80;
|
|
4389
|
-
this.connectOpts = {
|
|
4390
|
-
...opts ? omit(opts, "headers") : null,
|
|
4391
|
-
host,
|
|
4392
|
-
port
|
|
4393
|
-
};
|
|
4394
|
-
}
|
|
4395
|
-
addRequest(req, opts) {
|
|
4396
|
-
req._header = null;
|
|
4397
|
-
this.setRequestProps(req, opts);
|
|
4398
|
-
super.addRequest(req, opts);
|
|
4399
|
-
}
|
|
4400
|
-
setRequestProps(req, opts) {
|
|
4401
|
-
const { proxy } = this;
|
|
4402
|
-
const protocol = opts.secureEndpoint ? "https:" : "http:";
|
|
4403
|
-
const hostname = req.getHeader("host") || "localhost";
|
|
4404
|
-
const base = `${protocol}//${hostname}`;
|
|
4405
|
-
const url = new url_1.URL(req.path, base);
|
|
4406
|
-
if (opts.port !== 80) {
|
|
4407
|
-
url.port = String(opts.port);
|
|
4408
|
-
}
|
|
4409
|
-
req.path = String(url);
|
|
4410
|
-
const headers = typeof this.proxyHeaders === "function" ? this.proxyHeaders() : { ...this.proxyHeaders };
|
|
4411
|
-
if (proxy.username || proxy.password) {
|
|
4412
|
-
const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`;
|
|
4413
|
-
headers["Proxy-Authorization"] = `Basic ${Buffer.from(auth).toString("base64")}`;
|
|
4414
|
-
}
|
|
4415
|
-
if (!headers["Proxy-Connection"]) {
|
|
4416
|
-
headers["Proxy-Connection"] = this.keepAlive ? "Keep-Alive" : "close";
|
|
4417
|
-
}
|
|
4418
|
-
for (const name of Object.keys(headers)) {
|
|
4419
|
-
const value = headers[name];
|
|
4420
|
-
if (value) {
|
|
4421
|
-
req.setHeader(name, value);
|
|
4422
|
-
}
|
|
4423
|
-
}
|
|
4424
|
-
}
|
|
4425
|
-
async connect(req, opts) {
|
|
4426
|
-
req._header = null;
|
|
4427
|
-
if (!req.path.includes("://")) {
|
|
4428
|
-
this.setRequestProps(req, opts);
|
|
4429
|
-
}
|
|
4430
|
-
let first;
|
|
4431
|
-
let endOfHeaders;
|
|
4432
|
-
debug("Regenerating stored HTTP header string for request");
|
|
4433
|
-
req._implicitHeader();
|
|
4434
|
-
if (req.outputData && req.outputData.length > 0) {
|
|
4435
|
-
debug("Patching connection write() output buffer with updated header");
|
|
4436
|
-
first = req.outputData[0].data;
|
|
4437
|
-
endOfHeaders = first.indexOf("\r\n\r\n") + 4;
|
|
4438
|
-
req.outputData[0].data = req._header + first.substring(endOfHeaders);
|
|
4439
|
-
debug("Output buffer: %o", req.outputData[0].data);
|
|
4440
|
-
}
|
|
4441
|
-
let socket;
|
|
4442
|
-
if (this.proxy.protocol === "https:") {
|
|
4443
|
-
debug("Creating `tls.Socket`: %o", this.connectOpts);
|
|
4444
|
-
socket = tls.connect(this.connectOpts);
|
|
4445
|
-
} else {
|
|
4446
|
-
debug("Creating `net.Socket`: %o", this.connectOpts);
|
|
4447
|
-
socket = net.connect(this.connectOpts);
|
|
4448
|
-
}
|
|
4449
|
-
await (0, events_1.once)(socket, "connect");
|
|
4450
|
-
return socket;
|
|
4451
|
-
}
|
|
4452
|
-
};
|
|
4453
|
-
__name(_HttpProxyAgent, "HttpProxyAgent");
|
|
4454
|
-
var HttpProxyAgent = _HttpProxyAgent;
|
|
4455
|
-
HttpProxyAgent.protocols = ["http", "https"];
|
|
4456
|
-
exports.HttpProxyAgent = HttpProxyAgent;
|
|
4457
|
-
function omit(obj, ...keys) {
|
|
4458
|
-
const ret = {};
|
|
4459
|
-
let key;
|
|
4460
|
-
for (key in obj) {
|
|
4461
|
-
if (!keys.includes(key)) {
|
|
4462
|
-
ret[key] = obj[key];
|
|
4463
|
-
}
|
|
4464
|
-
}
|
|
4465
|
-
return ret;
|
|
4466
|
-
}
|
|
4467
|
-
__name(omit, "omit");
|
|
4468
|
-
}
|
|
4469
|
-
});
|
|
4470
|
-
|
|
4471
2184
|
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/policies/proxyPolicy.js
|
|
4472
2185
|
var require_proxyPolicy = __commonJS({
|
|
4473
2186
|
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/policies/proxyPolicy.js"(exports) {
|
|
@@ -4477,9 +2190,9 @@ var require_proxyPolicy = __commonJS({
|
|
|
4477
2190
|
exports.loadNoProxy = loadNoProxy;
|
|
4478
2191
|
exports.getDefaultProxySettings = getDefaultProxySettings;
|
|
4479
2192
|
exports.proxyPolicy = proxyPolicy;
|
|
4480
|
-
var https_proxy_agent_1 =
|
|
4481
|
-
var http_proxy_agent_1 =
|
|
4482
|
-
var log_js_1 =
|
|
2193
|
+
var https_proxy_agent_1 = require_dist();
|
|
2194
|
+
var http_proxy_agent_1 = require_dist2();
|
|
2195
|
+
var log_js_1 = require_log();
|
|
4483
2196
|
var HTTPS_PROXY = "HTTPS_PROXY";
|
|
4484
2197
|
var HTTP_PROXY = "HTTP_PROXY";
|
|
4485
2198
|
var ALL_PROXY = "ALL_PROXY";
|
|
@@ -5013,7 +2726,7 @@ var require_checkInsecureConnection = __commonJS({
|
|
|
5013
2726
|
"use strict";
|
|
5014
2727
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5015
2728
|
exports.ensureSecureConnection = ensureSecureConnection;
|
|
5016
|
-
var log_js_1 =
|
|
2729
|
+
var log_js_1 = require_log();
|
|
5017
2730
|
var insecureConnectionWarningEmmitted = false;
|
|
5018
2731
|
function allowInsecureConnection(request, options) {
|
|
5019
2732
|
if (options.allowInsecureConnection && request.allowInsecureConnection) {
|
|
@@ -5856,7 +3569,7 @@ var require_pipeline2 = __commonJS({
|
|
|
5856
3569
|
});
|
|
5857
3570
|
|
|
5858
3571
|
// ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/commonjs/log.js
|
|
5859
|
-
var
|
|
3572
|
+
var require_log2 = __commonJS({
|
|
5860
3573
|
"../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/commonjs/log.js"(exports) {
|
|
5861
3574
|
"use strict";
|
|
5862
3575
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5940,7 +3653,7 @@ var require_throttlingRetryPolicy = __commonJS({
|
|
|
5940
3653
|
});
|
|
5941
3654
|
|
|
5942
3655
|
// ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/policies/internal.js
|
|
5943
|
-
var
|
|
3656
|
+
var require_internal2 = __commonJS({
|
|
5944
3657
|
"../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/commonjs/policies/internal.js"(exports) {
|
|
5945
3658
|
"use strict";
|
|
5946
3659
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6053,8 +3766,8 @@ var require_logPolicy2 = __commonJS({
|
|
|
6053
3766
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6054
3767
|
exports.logPolicyName = void 0;
|
|
6055
3768
|
exports.logPolicy = logPolicy;
|
|
6056
|
-
var log_js_1 =
|
|
6057
|
-
var policies_1 =
|
|
3769
|
+
var log_js_1 = require_log2();
|
|
3770
|
+
var policies_1 = require_internal2();
|
|
6058
3771
|
exports.logPolicyName = policies_1.logPolicyName;
|
|
6059
3772
|
function logPolicy(options = {}) {
|
|
6060
3773
|
return (0, policies_1.logPolicy)(Object.assign({ logger: log_js_1.logger.info }, options));
|
|
@@ -6070,7 +3783,7 @@ var require_redirectPolicy2 = __commonJS({
|
|
|
6070
3783
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6071
3784
|
exports.redirectPolicyName = void 0;
|
|
6072
3785
|
exports.redirectPolicy = redirectPolicy;
|
|
6073
|
-
var policies_1 =
|
|
3786
|
+
var policies_1 = require_internal2();
|
|
6074
3787
|
exports.redirectPolicyName = policies_1.redirectPolicyName;
|
|
6075
3788
|
function redirectPolicy(options = {}) {
|
|
6076
3789
|
return (0, policies_1.redirectPolicy)(options);
|
|
@@ -6252,7 +3965,7 @@ var require_multipartPolicy2 = __commonJS({
|
|
|
6252
3965
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6253
3966
|
exports.multipartPolicyName = void 0;
|
|
6254
3967
|
exports.multipartPolicy = multipartPolicy;
|
|
6255
|
-
var policies_1 =
|
|
3968
|
+
var policies_1 = require_internal2();
|
|
6256
3969
|
var file_js_1 = require_file();
|
|
6257
3970
|
exports.multipartPolicyName = policies_1.multipartPolicyName;
|
|
6258
3971
|
function multipartPolicy() {
|
|
@@ -6282,7 +3995,7 @@ var require_decompressResponsePolicy2 = __commonJS({
|
|
|
6282
3995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6283
3996
|
exports.decompressResponsePolicyName = void 0;
|
|
6284
3997
|
exports.decompressResponsePolicy = decompressResponsePolicy;
|
|
6285
|
-
var policies_1 =
|
|
3998
|
+
var policies_1 = require_internal2();
|
|
6286
3999
|
exports.decompressResponsePolicyName = policies_1.decompressResponsePolicyName;
|
|
6287
4000
|
function decompressResponsePolicy() {
|
|
6288
4001
|
return (0, policies_1.decompressResponsePolicy)();
|
|
@@ -6298,7 +4011,7 @@ var require_defaultRetryPolicy2 = __commonJS({
|
|
|
6298
4011
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6299
4012
|
exports.defaultRetryPolicyName = void 0;
|
|
6300
4013
|
exports.defaultRetryPolicy = defaultRetryPolicy;
|
|
6301
|
-
var policies_1 =
|
|
4014
|
+
var policies_1 = require_internal2();
|
|
6302
4015
|
exports.defaultRetryPolicyName = policies_1.defaultRetryPolicyName;
|
|
6303
4016
|
function defaultRetryPolicy(options = {}) {
|
|
6304
4017
|
return (0, policies_1.defaultRetryPolicy)(options);
|
|
@@ -6314,7 +4027,7 @@ var require_formDataPolicy2 = __commonJS({
|
|
|
6314
4027
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6315
4028
|
exports.formDataPolicyName = void 0;
|
|
6316
4029
|
exports.formDataPolicy = formDataPolicy;
|
|
6317
|
-
var policies_1 =
|
|
4030
|
+
var policies_1 = require_internal2();
|
|
6318
4031
|
exports.formDataPolicyName = policies_1.formDataPolicyName;
|
|
6319
4032
|
function formDataPolicy() {
|
|
6320
4033
|
return (0, policies_1.formDataPolicy)();
|
|
@@ -6331,7 +4044,7 @@ var require_proxyPolicy2 = __commonJS({
|
|
|
6331
4044
|
exports.proxyPolicyName = void 0;
|
|
6332
4045
|
exports.getDefaultProxySettings = getDefaultProxySettings;
|
|
6333
4046
|
exports.proxyPolicy = proxyPolicy;
|
|
6334
|
-
var policies_1 =
|
|
4047
|
+
var policies_1 = require_internal2();
|
|
6335
4048
|
exports.proxyPolicyName = policies_1.proxyPolicyName;
|
|
6336
4049
|
function getDefaultProxySettings(proxyUrl) {
|
|
6337
4050
|
return (0, policies_1.getDefaultProxySettings)(proxyUrl);
|
|
@@ -6374,7 +4087,7 @@ var require_agentPolicy2 = __commonJS({
|
|
|
6374
4087
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6375
4088
|
exports.agentPolicyName = void 0;
|
|
6376
4089
|
exports.agentPolicy = agentPolicy;
|
|
6377
|
-
var policies_1 =
|
|
4090
|
+
var policies_1 = require_internal2();
|
|
6378
4091
|
exports.agentPolicyName = policies_1.agentPolicyName;
|
|
6379
4092
|
function agentPolicy(agent) {
|
|
6380
4093
|
return (0, policies_1.agentPolicy)(agent);
|
|
@@ -6390,7 +4103,7 @@ var require_tlsPolicy2 = __commonJS({
|
|
|
6390
4103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6391
4104
|
exports.tlsPolicyName = void 0;
|
|
6392
4105
|
exports.tlsPolicy = tlsPolicy;
|
|
6393
|
-
var policies_1 =
|
|
4106
|
+
var policies_1 = require_internal2();
|
|
6394
4107
|
exports.tlsPolicyName = policies_1.tlsPolicyName;
|
|
6395
4108
|
function tlsPolicy(tlsSettings) {
|
|
6396
4109
|
return (0, policies_1.tlsPolicy)(tlsSettings);
|
|
@@ -6425,10 +4138,10 @@ var require_tracingPolicy = __commonJS({
|
|
|
6425
4138
|
var core_tracing_1 = require_commonjs4();
|
|
6426
4139
|
var constants_js_1 = require_constants2();
|
|
6427
4140
|
var userAgent_js_1 = require_userAgent2();
|
|
6428
|
-
var log_js_1 =
|
|
4141
|
+
var log_js_1 = require_log2();
|
|
6429
4142
|
var core_util_1 = require_commonjs3();
|
|
6430
4143
|
var restError_js_1 = require_restError3();
|
|
6431
|
-
var util_1 =
|
|
4144
|
+
var util_1 = require_internal();
|
|
6432
4145
|
exports.tracingPolicyName = "tracingPolicy";
|
|
6433
4146
|
function tracingPolicy(options = {}) {
|
|
6434
4147
|
const userAgentPromise = (0, userAgent_js_1.getUserAgentValue)(options.userAgentPrefix);
|
|
@@ -6717,7 +4430,7 @@ var require_exponentialRetryPolicy2 = __commonJS({
|
|
|
6717
4430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6718
4431
|
exports.exponentialRetryPolicyName = void 0;
|
|
6719
4432
|
exports.exponentialRetryPolicy = exponentialRetryPolicy;
|
|
6720
|
-
var policies_1 =
|
|
4433
|
+
var policies_1 = require_internal2();
|
|
6721
4434
|
exports.exponentialRetryPolicyName = policies_1.exponentialRetryPolicyName;
|
|
6722
4435
|
function exponentialRetryPolicy(options = {}) {
|
|
6723
4436
|
return (0, policies_1.exponentialRetryPolicy)(options);
|
|
@@ -6733,7 +4446,7 @@ var require_systemErrorRetryPolicy2 = __commonJS({
|
|
|
6733
4446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6734
4447
|
exports.systemErrorRetryPolicyName = void 0;
|
|
6735
4448
|
exports.systemErrorRetryPolicy = systemErrorRetryPolicy;
|
|
6736
|
-
var policies_1 =
|
|
4449
|
+
var policies_1 = require_internal2();
|
|
6737
4450
|
exports.systemErrorRetryPolicyName = policies_1.systemErrorRetryPolicyName;
|
|
6738
4451
|
function systemErrorRetryPolicy(options = {}) {
|
|
6739
4452
|
return (0, policies_1.systemErrorRetryPolicy)(options);
|
|
@@ -6749,7 +4462,7 @@ var require_throttlingRetryPolicy2 = __commonJS({
|
|
|
6749
4462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6750
4463
|
exports.throttlingRetryPolicyName = void 0;
|
|
6751
4464
|
exports.throttlingRetryPolicy = throttlingRetryPolicy;
|
|
6752
|
-
var policies_1 =
|
|
4465
|
+
var policies_1 = require_internal2();
|
|
6753
4466
|
exports.throttlingRetryPolicyName = policies_1.throttlingRetryPolicyName;
|
|
6754
4467
|
function throttlingRetryPolicy(options = {}) {
|
|
6755
4468
|
return (0, policies_1.throttlingRetryPolicy)(options);
|
|
@@ -6766,7 +4479,7 @@ var require_retryPolicy2 = __commonJS({
|
|
|
6766
4479
|
exports.retryPolicy = retryPolicy;
|
|
6767
4480
|
var logger_1 = require_commonjs();
|
|
6768
4481
|
var constants_js_1 = require_constants2();
|
|
6769
|
-
var policies_1 =
|
|
4482
|
+
var policies_1 = require_internal2();
|
|
6770
4483
|
var retryPolicyLogger = (0, logger_1.createClientLogger)("core-rest-pipeline retryPolicy");
|
|
6771
4484
|
function retryPolicy(strategies, options = { maxRetries: constants_js_1.DEFAULT_RETRY_POLICY_COUNT }) {
|
|
6772
4485
|
return (0, policies_1.retryPolicy)(strategies, Object.assign({ logger: retryPolicyLogger }, options));
|
|
@@ -6903,7 +4616,7 @@ var require_bearerTokenAuthenticationPolicy = __commonJS({
|
|
|
6903
4616
|
exports.bearerTokenAuthenticationPolicy = bearerTokenAuthenticationPolicy;
|
|
6904
4617
|
exports.parseChallenges = parseChallenges;
|
|
6905
4618
|
var tokenCycler_js_1 = require_tokenCycler();
|
|
6906
|
-
var log_js_1 =
|
|
4619
|
+
var log_js_1 = require_log2();
|
|
6907
4620
|
var restError_js_1 = require_restError3();
|
|
6908
4621
|
exports.bearerTokenAuthenticationPolicyName = "bearerTokenAuthenticationPolicy";
|
|
6909
4622
|
async function trySendRequest(request, next) {
|
|
@@ -7118,7 +4831,7 @@ var require_auxiliaryAuthenticationHeaderPolicy = __commonJS({
|
|
|
7118
4831
|
exports.auxiliaryAuthenticationHeaderPolicyName = void 0;
|
|
7119
4832
|
exports.auxiliaryAuthenticationHeaderPolicy = auxiliaryAuthenticationHeaderPolicy;
|
|
7120
4833
|
var tokenCycler_js_1 = require_tokenCycler();
|
|
7121
|
-
var log_js_1 =
|
|
4834
|
+
var log_js_1 = require_log2();
|
|
7122
4835
|
exports.auxiliaryAuthenticationHeaderPolicyName = "auxiliaryAuthenticationHeaderPolicy";
|
|
7123
4836
|
var AUTHORIZATION_AUXILIARY_HEADER = "x-ms-authorization-auxiliary";
|
|
7124
4837
|
async function sendAuthorizeRequest(options) {
|
|
@@ -8237,18 +5950,6 @@ var require_serializer = __commonJS({
|
|
|
8237
5950
|
}
|
|
8238
5951
|
});
|
|
8239
5952
|
|
|
8240
|
-
// ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/state.js
|
|
8241
|
-
var require_state2 = __commonJS({
|
|
8242
|
-
"../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/state.js"(exports) {
|
|
8243
|
-
"use strict";
|
|
8244
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8245
|
-
exports.state = void 0;
|
|
8246
|
-
exports.state = {
|
|
8247
|
-
operationRequestMap: /* @__PURE__ */ new WeakMap()
|
|
8248
|
-
};
|
|
8249
|
-
}
|
|
8250
|
-
});
|
|
8251
|
-
|
|
8252
5953
|
// ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/operationHelpers.js
|
|
8253
5954
|
var require_operationHelpers = __commonJS({
|
|
8254
5955
|
"../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/operationHelpers.js"(exports) {
|
|
@@ -8978,7 +6679,7 @@ var require_urlHelpers2 = __commonJS({
|
|
|
8978
6679
|
});
|
|
8979
6680
|
|
|
8980
6681
|
// ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/log.js
|
|
8981
|
-
var
|
|
6682
|
+
var require_log3 = __commonJS({
|
|
8982
6683
|
"../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/log.js"(exports) {
|
|
8983
6684
|
"use strict";
|
|
8984
6685
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9001,7 +6702,7 @@ var require_serviceClient = __commonJS({
|
|
|
9001
6702
|
var operationHelpers_js_1 = require_operationHelpers();
|
|
9002
6703
|
var urlHelpers_js_1 = require_urlHelpers2();
|
|
9003
6704
|
var interfaceHelpers_js_1 = require_interfaceHelpers();
|
|
9004
|
-
var log_js_1 =
|
|
6705
|
+
var log_js_1 = require_log3();
|
|
9005
6706
|
var _ServiceClient = class _ServiceClient {
|
|
9006
6707
|
/**
|
|
9007
6708
|
* The ServiceClient constructor
|
|
@@ -9143,7 +6844,7 @@ var require_authorizeRequestOnClaimChallenge = __commonJS({
|
|
|
9143
6844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9144
6845
|
exports.parseCAEChallenge = parseCAEChallenge;
|
|
9145
6846
|
exports.authorizeRequestOnClaimChallenge = authorizeRequestOnClaimChallenge;
|
|
9146
|
-
var log_js_1 =
|
|
6847
|
+
var log_js_1 = require_log3();
|
|
9147
6848
|
var base64_js_1 = require_base64();
|
|
9148
6849
|
function parseCAEChallenge(challenges) {
|
|
9149
6850
|
const bearerChallenges = `, ${challenges.trim()}`.split(", Bearer ").filter((x) => x);
|
|
@@ -9329,24 +7030,76 @@ var require_commonjs7 = __commonJS({
|
|
|
9329
7030
|
}
|
|
9330
7031
|
});
|
|
9331
7032
|
|
|
7033
|
+
// ../../node_modules/.store/safe-buffer-npm-5.2.1-3481c8aa9b/package/index.js
|
|
7034
|
+
var require_package = __commonJS({
|
|
7035
|
+
"../../node_modules/.store/safe-buffer-npm-5.2.1-3481c8aa9b/package/index.js"(exports, module) {
|
|
7036
|
+
var buffer = __require("buffer");
|
|
7037
|
+
var Buffer2 = buffer.Buffer;
|
|
7038
|
+
function copyProps(src, dst) {
|
|
7039
|
+
for (var key in src) {
|
|
7040
|
+
dst[key] = src[key];
|
|
7041
|
+
}
|
|
7042
|
+
}
|
|
7043
|
+
__name(copyProps, "copyProps");
|
|
7044
|
+
if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) {
|
|
7045
|
+
module.exports = buffer;
|
|
7046
|
+
} else {
|
|
7047
|
+
copyProps(buffer, exports);
|
|
7048
|
+
exports.Buffer = SafeBuffer;
|
|
7049
|
+
}
|
|
7050
|
+
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
7051
|
+
return Buffer2(arg, encodingOrOffset, length);
|
|
7052
|
+
}
|
|
7053
|
+
__name(SafeBuffer, "SafeBuffer");
|
|
7054
|
+
SafeBuffer.prototype = Object.create(Buffer2.prototype);
|
|
7055
|
+
copyProps(Buffer2, SafeBuffer);
|
|
7056
|
+
SafeBuffer.from = function(arg, encodingOrOffset, length) {
|
|
7057
|
+
if (typeof arg === "number") {
|
|
7058
|
+
throw new TypeError("Argument must not be a number");
|
|
7059
|
+
}
|
|
7060
|
+
return Buffer2(arg, encodingOrOffset, length);
|
|
7061
|
+
};
|
|
7062
|
+
SafeBuffer.alloc = function(size, fill, encoding) {
|
|
7063
|
+
if (typeof size !== "number") {
|
|
7064
|
+
throw new TypeError("Argument must be a number");
|
|
7065
|
+
}
|
|
7066
|
+
var buf = Buffer2(size);
|
|
7067
|
+
if (fill !== void 0) {
|
|
7068
|
+
if (typeof encoding === "string") {
|
|
7069
|
+
buf.fill(fill, encoding);
|
|
7070
|
+
} else {
|
|
7071
|
+
buf.fill(fill);
|
|
7072
|
+
}
|
|
7073
|
+
} else {
|
|
7074
|
+
buf.fill(0);
|
|
7075
|
+
}
|
|
7076
|
+
return buf;
|
|
7077
|
+
};
|
|
7078
|
+
SafeBuffer.allocUnsafe = function(size) {
|
|
7079
|
+
if (typeof size !== "number") {
|
|
7080
|
+
throw new TypeError("Argument must be a number");
|
|
7081
|
+
}
|
|
7082
|
+
return Buffer2(size);
|
|
7083
|
+
};
|
|
7084
|
+
SafeBuffer.allocUnsafeSlow = function(size) {
|
|
7085
|
+
if (typeof size !== "number") {
|
|
7086
|
+
throw new TypeError("Argument must be a number");
|
|
7087
|
+
}
|
|
7088
|
+
return buffer.SlowBuffer(size);
|
|
7089
|
+
};
|
|
7090
|
+
}
|
|
7091
|
+
});
|
|
7092
|
+
|
|
9332
7093
|
export {
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
init_tslib_es6,
|
|
9340
|
-
require_commonjs,
|
|
9341
|
-
require_package,
|
|
9342
|
-
require_package2,
|
|
9343
|
-
require_dist2 as require_dist,
|
|
9344
|
-
require_dist3 as require_dist2,
|
|
9345
|
-
require_commonjs2,
|
|
9346
|
-
require_commonjs3,
|
|
9347
|
-
require_state,
|
|
9348
|
-
require_commonjs4,
|
|
9349
|
-
require_commonjs6 as require_commonjs5,
|
|
9350
|
-
require_state2,
|
|
9351
|
-
require_commonjs7 as require_commonjs6
|
|
7094
|
+
require_commonjs2 as require_commonjs,
|
|
7095
|
+
require_commonjs3 as require_commonjs2,
|
|
7096
|
+
require_commonjs4 as require_commonjs3,
|
|
7097
|
+
require_commonjs6 as require_commonjs4,
|
|
7098
|
+
require_commonjs7 as require_commonjs5,
|
|
7099
|
+
require_package
|
|
9352
7100
|
};
|
|
7101
|
+
/*! Bundled license information:
|
|
7102
|
+
|
|
7103
|
+
.store/safe-buffer-npm-5.2.1-3481c8aa9b/package/index.js:
|
|
7104
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
7105
|
+
*/
|