vercel 54.9.0 → 54.10.0
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/chunks/{add-PFVGXHF2.js → add-5DY5F6KR.js} +5 -5
- package/dist/chunks/{chunk-BLSNH6GW.js → chunk-3QEUKH37.js} +1 -1
- package/dist/chunks/{chunk-ZEG75UDS.js → chunk-6B7TYTF6.js} +4 -4
- package/dist/chunks/{chunk-MHQ3YMRD.js → chunk-6ESIT3CL.js} +1 -1
- package/dist/chunks/{chunk-2KRTC3Z6.js → chunk-6UWHSMGM.js} +2 -2
- package/dist/chunks/{chunk-PQ6FQ427.js → chunk-7V42ARD4.js} +6 -6
- package/dist/chunks/{chunk-5QPKXSAQ.js → chunk-ERHL5CQY.js} +80 -12
- package/dist/chunks/{chunk-QED7VSDY.js → chunk-GPBBIDQ5.js} +1 -1
- package/dist/chunks/{chunk-CNZVD6AY.js → chunk-GSR2GQLJ.js} +2247 -191
- package/dist/chunks/{chunk-WHVOX5C7.js → chunk-IUBY6GNH.js} +1 -1
- package/dist/chunks/{chunk-DPXUXH7G.js → chunk-J5273CSE.js} +2 -2
- package/dist/chunks/{chunk-XK2FJELV.js → chunk-J763BFOA.js} +1 -1
- package/dist/chunks/{chunk-4XMJHCJ5.js → chunk-JK7NBOHR.js} +1 -1
- package/dist/chunks/{chunk-RM5VGLCD.js → chunk-LFHOOCSD.js} +2 -2
- package/dist/chunks/{chunk-GHIWUCX4.js → chunk-MBDHDIBC.js} +6 -6
- package/dist/chunks/{chunk-FRCPMIYP.js → chunk-PAB6JAI7.js} +1 -1
- package/dist/chunks/{chunk-KV23GR7J.js → chunk-PV533MBH.js} +1 -1
- package/dist/chunks/{chunk-3XKN4LMN.js → chunk-R3OUWO35.js} +10 -3
- package/dist/chunks/{chunk-2LJ4CNBS.js → chunk-SHWTWKFP.js} +130 -95
- package/dist/chunks/{chunk-ZBDCE356.js → chunk-TMD7R76P.js} +1 -1
- package/dist/chunks/{chunk-5ZJHY4AC.js → chunk-VNUNCNPE.js} +1 -1
- package/dist/chunks/{chunk-AW3VO6AO.js → chunk-WBFTHBNH.js} +1 -1
- package/dist/chunks/{chunk-TAHQ6VAS.js → chunk-WFRHKZFI.js} +2 -1
- package/dist/chunks/{chunk-BBJUIDZF.js → chunk-YI3JV6GM.js} +3 -3
- package/dist/chunks/{chunk-27O5ZTLD.js → chunk-YSBVITVJ.js} +8 -5
- package/dist/chunks/{compile-vercel-config-7U2LIW43.js → compile-vercel-config-E3BX5VFO.js} +2 -2
- package/dist/chunks/{delete-DE3UHP2L.js → delete-RKFK2KFA.js} +4 -4
- package/dist/chunks/{disable-B6GG7O7J.js → disable-RD33Y4KE.js} +4 -4
- package/dist/chunks/{discard-MGA5ZYKO.js → discard-ITS7653Z.js} +4 -4
- package/dist/chunks/{edit-L4Y2YIBV.js → edit-ANQBSFXA.js} +6 -6
- package/dist/chunks/{enable-O7FEPQAF.js → enable-7WGWM77Y.js} +4 -4
- package/dist/chunks/{exec-JSOL4CYJ.js → exec-HI4HF4GY.js} +1 -1
- package/dist/chunks/{export-UB7HUJAY.js → export-VTGALJ7L.js} +4 -4
- package/dist/chunks/{inspect-IV2WSOKU.js → inspect-3CNYVFQE.js} +4 -4
- package/dist/chunks/{list-IRG73TQ7.js → list-B4QVO4HZ.js} +4 -4
- package/dist/chunks/{list-7S77FPG6.js → list-G634SMGU.js} +3 -3
- package/dist/chunks/{ls-FP6I5BJ4.js → ls-OY7LDCQP.js} +5 -5
- package/dist/chunks/{publish-ZEXEMS6A.js → publish-VATWAP53.js} +4 -4
- package/dist/chunks/{query-F5RJNYCZ.js → query-S26UM5S4.js} +3 -3
- package/dist/chunks/{reorder-JJY5X5NU.js → reorder-7WO5ZX6S.js} +4 -4
- package/dist/chunks/{restore-753XEXA7.js → restore-WXOV5IWA.js} +4 -4
- package/dist/chunks/{rm-5DVLPTLD.js → rm-FT6BU2BM.js} +5 -5
- package/dist/chunks/{routes-3OHKNMGT.js → routes-EAMQVFU2.js} +2 -2
- package/dist/chunks/{rule-inspect-BA25TI3G.js → rule-inspect-7WQCBK25.js} +5 -5
- package/dist/chunks/{rules-JL4NLPIC.js → rules-J5RKONBR.js} +6 -6
- package/dist/chunks/{schema-NL2KEDWL.js → schema-7W6TY5ST.js} +3 -3
- package/dist/chunks/{update-3LTUTJJB.js → update-GKAXCULF.js} +5 -5
- package/dist/commands/build/index.js +334 -110
- package/dist/commands/deploy/index.js +13 -13
- package/dist/commands/dev/index.js +40 -18
- package/dist/commands/env/index.js +8 -8
- package/dist/commands/link/index.js +10 -10
- package/dist/commands/list/index.js +5 -5
- package/dist/commands-bulk.js +697 -89
- package/dist/index.js +12 -12
- package/dist/version.mjs +1 -1
- package/package.json +20 -20
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
TelemetryClient,
|
|
9
9
|
require_dist as require_dist2,
|
|
10
10
|
require_graceful_fs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J5273CSE.js";
|
|
12
12
|
import {
|
|
13
13
|
buildCommandWithYes,
|
|
14
14
|
getPreservedArgsForEnvPull,
|
|
@@ -890,7 +890,7 @@ var require_uri_all = __commonJS({
|
|
|
890
890
|
target.fragment = relative2.fragment;
|
|
891
891
|
return target;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function resolve5(baseURI, relativeURI, options) {
|
|
894
894
|
var schemelessOptions = assign({ scheme: "null" }, options);
|
|
895
895
|
return serialize(resolveComponents(parse3(baseURI, schemelessOptions), parse3(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
|
|
896
896
|
}
|
|
@@ -1158,7 +1158,7 @@ var require_uri_all = __commonJS({
|
|
|
1158
1158
|
exports2.removeDotSegments = removeDotSegments;
|
|
1159
1159
|
exports2.serialize = serialize;
|
|
1160
1160
|
exports2.resolveComponents = resolveComponents;
|
|
1161
|
-
exports2.resolve =
|
|
1161
|
+
exports2.resolve = resolve5;
|
|
1162
1162
|
exports2.normalize = normalize;
|
|
1163
1163
|
exports2.equal = equal;
|
|
1164
1164
|
exports2.escapeComponent = escapeComponent;
|
|
@@ -1544,20 +1544,20 @@ var require_resolve = __commonJS({
|
|
|
1544
1544
|
var util = require_util();
|
|
1545
1545
|
var SchemaObject = require_schema_obj();
|
|
1546
1546
|
var traverse = require_json_schema_traverse();
|
|
1547
|
-
module.exports =
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
function
|
|
1547
|
+
module.exports = resolve5;
|
|
1548
|
+
resolve5.normalizeId = normalizeId;
|
|
1549
|
+
resolve5.fullPath = getFullPath;
|
|
1550
|
+
resolve5.url = resolveUrl;
|
|
1551
|
+
resolve5.ids = resolveIds;
|
|
1552
|
+
resolve5.inlineRef = inlineRef;
|
|
1553
|
+
resolve5.schema = resolveSchema;
|
|
1554
|
+
function resolve5(compile, root, ref) {
|
|
1555
1555
|
var refVal = this._refs[ref];
|
|
1556
1556
|
if (typeof refVal == "string") {
|
|
1557
1557
|
if (this._refs[refVal])
|
|
1558
1558
|
refVal = this._refs[refVal];
|
|
1559
1559
|
else
|
|
1560
|
-
return
|
|
1560
|
+
return resolve5.call(this, compile, root, refVal);
|
|
1561
1561
|
}
|
|
1562
1562
|
refVal = refVal || this._schemas[ref];
|
|
1563
1563
|
if (refVal instanceof SchemaObject) {
|
|
@@ -1783,7 +1783,7 @@ var require_resolve = __commonJS({
|
|
|
1783
1783
|
var require_error_classes = __commonJS({
|
|
1784
1784
|
"../../node_modules/.pnpm/ajv@6.12.3/node_modules/ajv/lib/compile/error_classes.js"(exports, module) {
|
|
1785
1785
|
"use strict";
|
|
1786
|
-
var
|
|
1786
|
+
var resolve5 = require_resolve();
|
|
1787
1787
|
module.exports = {
|
|
1788
1788
|
Validation: errorSubclass(ValidationError2),
|
|
1789
1789
|
MissingRef: errorSubclass(MissingRefError)
|
|
@@ -1798,8 +1798,8 @@ var require_error_classes = __commonJS({
|
|
|
1798
1798
|
};
|
|
1799
1799
|
function MissingRefError(baseId, ref, message) {
|
|
1800
1800
|
this.message = message || MissingRefError.message(baseId, ref);
|
|
1801
|
-
this.missingRef =
|
|
1802
|
-
this.missingSchema =
|
|
1801
|
+
this.missingRef = resolve5.url(baseId, ref);
|
|
1802
|
+
this.missingSchema = resolve5.normalizeId(resolve5.fullPath(this.missingRef));
|
|
1803
1803
|
}
|
|
1804
1804
|
function errorSubclass(Subclass) {
|
|
1805
1805
|
Subclass.prototype = Object.create(Error.prototype);
|
|
@@ -2358,7 +2358,7 @@ var require_validate = __commonJS({
|
|
|
2358
2358
|
var require_compile = __commonJS({
|
|
2359
2359
|
"../../node_modules/.pnpm/ajv@6.12.3/node_modules/ajv/lib/compile/index.js"(exports, module) {
|
|
2360
2360
|
"use strict";
|
|
2361
|
-
var
|
|
2361
|
+
var resolve5 = require_resolve();
|
|
2362
2362
|
var util = require_util();
|
|
2363
2363
|
var errorClasses = require_error_classes();
|
|
2364
2364
|
var stableStringify = require_fast_json_stable_stringify();
|
|
@@ -2418,7 +2418,7 @@ var require_compile = __commonJS({
|
|
|
2418
2418
|
RULES,
|
|
2419
2419
|
validate: validateGenerator,
|
|
2420
2420
|
util,
|
|
2421
|
-
resolve:
|
|
2421
|
+
resolve: resolve5,
|
|
2422
2422
|
resolveRef,
|
|
2423
2423
|
usePattern,
|
|
2424
2424
|
useDefault,
|
|
@@ -2480,7 +2480,7 @@ var require_compile = __commonJS({
|
|
|
2480
2480
|
return validate2;
|
|
2481
2481
|
}
|
|
2482
2482
|
function resolveRef(baseId2, ref, isRoot) {
|
|
2483
|
-
ref =
|
|
2483
|
+
ref = resolve5.url(baseId2, ref);
|
|
2484
2484
|
var refIndex = refs[ref];
|
|
2485
2485
|
var _refVal, refCode;
|
|
2486
2486
|
if (refIndex !== void 0) {
|
|
@@ -2497,11 +2497,11 @@ var require_compile = __commonJS({
|
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
2499
|
refCode = addLocalRef(ref);
|
|
2500
|
-
var v2 =
|
|
2500
|
+
var v2 = resolve5.call(self2, localCompile, root, ref);
|
|
2501
2501
|
if (v2 === void 0) {
|
|
2502
2502
|
var localSchema = localRefs && localRefs[ref];
|
|
2503
2503
|
if (localSchema) {
|
|
2504
|
-
v2 =
|
|
2504
|
+
v2 = resolve5.inlineRef(localSchema, opts.inlineRefs) ? localSchema : compile.call(self2, localSchema, root, localRefs, baseId2);
|
|
2505
2505
|
}
|
|
2506
2506
|
}
|
|
2507
2507
|
if (v2 === void 0) {
|
|
@@ -6136,7 +6136,7 @@ var require_ajv = __commonJS({
|
|
|
6136
6136
|
"../../node_modules/.pnpm/ajv@6.12.3/node_modules/ajv/lib/ajv.js"(exports, module) {
|
|
6137
6137
|
"use strict";
|
|
6138
6138
|
var compileSchema = require_compile();
|
|
6139
|
-
var
|
|
6139
|
+
var resolve5 = require_resolve();
|
|
6140
6140
|
var Cache = require_cache();
|
|
6141
6141
|
var SchemaObject = require_schema_obj();
|
|
6142
6142
|
var stableStringify = require_fast_json_stable_stringify();
|
|
@@ -6228,7 +6228,7 @@ var require_ajv = __commonJS({
|
|
|
6228
6228
|
var id = this._getId(schema);
|
|
6229
6229
|
if (id !== void 0 && typeof id != "string")
|
|
6230
6230
|
throw new Error("schema id must be string");
|
|
6231
|
-
key =
|
|
6231
|
+
key = resolve5.normalizeId(key || id);
|
|
6232
6232
|
checkUnique(this, key);
|
|
6233
6233
|
this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
|
|
6234
6234
|
return this;
|
|
@@ -6274,7 +6274,7 @@ var require_ajv = __commonJS({
|
|
|
6274
6274
|
}
|
|
6275
6275
|
}
|
|
6276
6276
|
function _getSchemaFragment(self2, ref) {
|
|
6277
|
-
var res =
|
|
6277
|
+
var res = resolve5.schema.call(self2, { schema: {} }, ref);
|
|
6278
6278
|
if (res) {
|
|
6279
6279
|
var schema = res.schema, root = res.root, baseId = res.baseId;
|
|
6280
6280
|
var v = compileSchema.call(self2, schema, root, void 0, baseId);
|
|
@@ -6290,7 +6290,7 @@ var require_ajv = __commonJS({
|
|
|
6290
6290
|
}
|
|
6291
6291
|
}
|
|
6292
6292
|
function _getSchemaObj(self2, keyRef) {
|
|
6293
|
-
keyRef =
|
|
6293
|
+
keyRef = resolve5.normalizeId(keyRef);
|
|
6294
6294
|
return self2._schemas[keyRef] || self2._refs[keyRef] || self2._fragments[keyRef];
|
|
6295
6295
|
}
|
|
6296
6296
|
function removeSchema(schemaKeyRef) {
|
|
@@ -6318,7 +6318,7 @@ var require_ajv = __commonJS({
|
|
|
6318
6318
|
this._cache.del(cacheKey);
|
|
6319
6319
|
var id = this._getId(schemaKeyRef);
|
|
6320
6320
|
if (id) {
|
|
6321
|
-
id =
|
|
6321
|
+
id = resolve5.normalizeId(id);
|
|
6322
6322
|
delete this._schemas[id];
|
|
6323
6323
|
delete this._refs[id];
|
|
6324
6324
|
}
|
|
@@ -6343,14 +6343,14 @@ var require_ajv = __commonJS({
|
|
|
6343
6343
|
if (cached)
|
|
6344
6344
|
return cached;
|
|
6345
6345
|
shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
|
|
6346
|
-
var id =
|
|
6346
|
+
var id = resolve5.normalizeId(this._getId(schema));
|
|
6347
6347
|
if (id && shouldAddSchema)
|
|
6348
6348
|
checkUnique(this, id);
|
|
6349
6349
|
var willValidate = this._opts.validateSchema !== false && !skipValidation;
|
|
6350
6350
|
var recursiveMeta;
|
|
6351
|
-
if (willValidate && !(recursiveMeta = id && id ==
|
|
6351
|
+
if (willValidate && !(recursiveMeta = id && id == resolve5.normalizeId(schema.$schema)))
|
|
6352
6352
|
this.validateSchema(schema, true);
|
|
6353
|
-
var localRefs =
|
|
6353
|
+
var localRefs = resolve5.ids.call(this, schema);
|
|
6354
6354
|
var schemaObj = new SchemaObject({
|
|
6355
6355
|
id,
|
|
6356
6356
|
schema,
|
|
@@ -6522,8 +6522,8 @@ var require_universalify = __commonJS({
|
|
|
6522
6522
|
if (typeof args[args.length - 1] === "function")
|
|
6523
6523
|
fn.apply(this, args);
|
|
6524
6524
|
else {
|
|
6525
|
-
return new Promise((
|
|
6526
|
-
args.push((err, res) => err != null ? reject(err) :
|
|
6525
|
+
return new Promise((resolve5, reject) => {
|
|
6526
|
+
args.push((err, res) => err != null ? reject(err) : resolve5(res));
|
|
6527
6527
|
fn.apply(this, args);
|
|
6528
6528
|
});
|
|
6529
6529
|
}
|
|
@@ -6596,19 +6596,19 @@ var require_fs = __commonJS({
|
|
|
6596
6596
|
if (typeof callback === "function") {
|
|
6597
6597
|
return fs5.exists(filename, callback);
|
|
6598
6598
|
}
|
|
6599
|
-
return new Promise((
|
|
6600
|
-
return fs5.exists(filename,
|
|
6599
|
+
return new Promise((resolve5) => {
|
|
6600
|
+
return fs5.exists(filename, resolve5);
|
|
6601
6601
|
});
|
|
6602
6602
|
};
|
|
6603
6603
|
exports.read = function(fd, buffer, offset, length, position, callback) {
|
|
6604
6604
|
if (typeof callback === "function") {
|
|
6605
6605
|
return fs5.read(fd, buffer, offset, length, position, callback);
|
|
6606
6606
|
}
|
|
6607
|
-
return new Promise((
|
|
6607
|
+
return new Promise((resolve5, reject) => {
|
|
6608
6608
|
fs5.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
6609
6609
|
if (err)
|
|
6610
6610
|
return reject(err);
|
|
6611
|
-
|
|
6611
|
+
resolve5({ bytesRead, buffer: buffer2 });
|
|
6612
6612
|
});
|
|
6613
6613
|
});
|
|
6614
6614
|
};
|
|
@@ -6616,11 +6616,11 @@ var require_fs = __commonJS({
|
|
|
6616
6616
|
if (typeof args[args.length - 1] === "function") {
|
|
6617
6617
|
return fs5.write(fd, buffer, ...args);
|
|
6618
6618
|
}
|
|
6619
|
-
return new Promise((
|
|
6619
|
+
return new Promise((resolve5, reject) => {
|
|
6620
6620
|
fs5.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
6621
6621
|
if (err)
|
|
6622
6622
|
return reject(err);
|
|
6623
|
-
|
|
6623
|
+
resolve5({ bytesWritten, buffer: buffer2 });
|
|
6624
6624
|
});
|
|
6625
6625
|
});
|
|
6626
6626
|
};
|
|
@@ -6629,11 +6629,11 @@ var require_fs = __commonJS({
|
|
|
6629
6629
|
if (typeof args[args.length - 1] === "function") {
|
|
6630
6630
|
return fs5.writev(fd, buffers, ...args);
|
|
6631
6631
|
}
|
|
6632
|
-
return new Promise((
|
|
6632
|
+
return new Promise((resolve5, reject) => {
|
|
6633
6633
|
fs5.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
6634
6634
|
if (err)
|
|
6635
6635
|
return reject(err);
|
|
6636
|
-
|
|
6636
|
+
resolve5({ bytesWritten, buffers: buffers2 });
|
|
6637
6637
|
});
|
|
6638
6638
|
});
|
|
6639
6639
|
};
|
|
@@ -7955,12 +7955,15 @@ var require_ensure = __commonJS({
|
|
|
7955
7955
|
}
|
|
7956
7956
|
});
|
|
7957
7957
|
|
|
7958
|
-
// ../../node_modules/.pnpm/jsonfile@6.1
|
|
7958
|
+
// ../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/utils.js
|
|
7959
7959
|
var require_utils2 = __commonJS({
|
|
7960
|
-
"../../node_modules/.pnpm/jsonfile@6.1
|
|
7960
|
+
"../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/utils.js"(exports, module) {
|
|
7961
7961
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
7962
7962
|
const EOF = finalEOL ? EOL : "";
|
|
7963
7963
|
const str = JSON.stringify(obj, replacer, spaces);
|
|
7964
|
+
if (str === void 0) {
|
|
7965
|
+
throw new TypeError(`Converting ${typeof obj} value to JSON is not supported`);
|
|
7966
|
+
}
|
|
7964
7967
|
return str.replace(/\n/g, EOL) + EOF;
|
|
7965
7968
|
}
|
|
7966
7969
|
function stripBom(content) {
|
|
@@ -7972,9 +7975,9 @@ var require_utils2 = __commonJS({
|
|
|
7972
7975
|
}
|
|
7973
7976
|
});
|
|
7974
7977
|
|
|
7975
|
-
// ../../node_modules/.pnpm/jsonfile@6.1
|
|
7978
|
+
// ../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/index.js
|
|
7976
7979
|
var require_jsonfile = __commonJS({
|
|
7977
|
-
"../../node_modules/.pnpm/jsonfile@6.1
|
|
7980
|
+
"../../node_modules/.pnpm/jsonfile@6.2.1/node_modules/jsonfile/index.js"(exports, module) {
|
|
7978
7981
|
var _fs;
|
|
7979
7982
|
try {
|
|
7980
7983
|
_fs = require_graceful_fs();
|
|
@@ -8035,13 +8038,12 @@ var require_jsonfile = __commonJS({
|
|
|
8035
8038
|
const str = stringify(obj, options);
|
|
8036
8039
|
return fs5.writeFileSync(file, str, options);
|
|
8037
8040
|
}
|
|
8038
|
-
|
|
8041
|
+
module.exports = {
|
|
8039
8042
|
readFile: readFile7,
|
|
8040
8043
|
readFileSync,
|
|
8041
8044
|
writeFile: writeFile6,
|
|
8042
8045
|
writeFileSync
|
|
8043
8046
|
};
|
|
8044
|
-
module.exports = jsonfile;
|
|
8045
8047
|
}
|
|
8046
8048
|
});
|
|
8047
8049
|
|
|
@@ -16010,6 +16012,40 @@ var require_frameworks = __commonJS({
|
|
|
16010
16012
|
getOutputDirName: async () => ".output",
|
|
16011
16013
|
experimental: true
|
|
16012
16014
|
},
|
|
16015
|
+
{
|
|
16016
|
+
name: "Eve",
|
|
16017
|
+
slug: "eve",
|
|
16018
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/eve.svg",
|
|
16019
|
+
darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/eve-dark.svg",
|
|
16020
|
+
tagline: "A filesystem-first framework for durable backend agents on Vercel.",
|
|
16021
|
+
description: "An Eve app: agents authored as a directory of files, compiled and served on Vercel.",
|
|
16022
|
+
detectors: {
|
|
16023
|
+
every: [
|
|
16024
|
+
{
|
|
16025
|
+
path: "package.json",
|
|
16026
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"eve":\\s*".+?"[^}]*}'
|
|
16027
|
+
}
|
|
16028
|
+
]
|
|
16029
|
+
},
|
|
16030
|
+
settings: {
|
|
16031
|
+
installCommand: {
|
|
16032
|
+
placeholder: "`pnpm install`, `yarn install`, or `npm install`"
|
|
16033
|
+
},
|
|
16034
|
+
buildCommand: {
|
|
16035
|
+
value: "eve build",
|
|
16036
|
+
placeholder: "`npm run build` or `eve build`"
|
|
16037
|
+
},
|
|
16038
|
+
devCommand: {
|
|
16039
|
+
value: "eve dev",
|
|
16040
|
+
placeholder: "eve dev"
|
|
16041
|
+
},
|
|
16042
|
+
outputDirectory: {
|
|
16043
|
+
value: ".output"
|
|
16044
|
+
}
|
|
16045
|
+
},
|
|
16046
|
+
getOutputDirName: async () => ".output",
|
|
16047
|
+
experimental: true
|
|
16048
|
+
},
|
|
16013
16049
|
{
|
|
16014
16050
|
name: "Sanity",
|
|
16015
16051
|
slug: "sanity",
|
|
@@ -16069,7 +16105,7 @@ var require_frameworks = __commonJS({
|
|
|
16069
16105
|
]
|
|
16070
16106
|
},
|
|
16071
16107
|
{
|
|
16072
|
-
name: "Sanity (v2)",
|
|
16108
|
+
name: "Sanity (v2 - legacy)",
|
|
16073
16109
|
slug: "sanity-v2",
|
|
16074
16110
|
demo: "https://sanity-studio-template.vercel.app",
|
|
16075
16111
|
logo: "https://api-frameworks.vercel.sh/framework-logos/sanity-v2.svg",
|
|
@@ -18116,9 +18152,9 @@ var require_balanced_match = __commonJS({
|
|
|
18116
18152
|
}
|
|
18117
18153
|
});
|
|
18118
18154
|
|
|
18119
|
-
// ../../node_modules/.pnpm/brace-expansion@1.1.
|
|
18155
|
+
// ../../node_modules/.pnpm/brace-expansion@1.1.15/node_modules/brace-expansion/index.js
|
|
18120
18156
|
var require_brace_expansion = __commonJS({
|
|
18121
|
-
"../../node_modules/.pnpm/brace-expansion@1.1.
|
|
18157
|
+
"../../node_modules/.pnpm/brace-expansion@1.1.15/node_modules/brace-expansion/index.js"(exports, module) {
|
|
18122
18158
|
var concatMap = require_concat_map();
|
|
18123
18159
|
var balanced = require_balanced_match();
|
|
18124
18160
|
module.exports = expandTop;
|
|
@@ -18156,13 +18192,15 @@ var require_brace_expansion = __commonJS({
|
|
|
18156
18192
|
parts.push.apply(parts, p);
|
|
18157
18193
|
return parts;
|
|
18158
18194
|
}
|
|
18159
|
-
function expandTop(str) {
|
|
18195
|
+
function expandTop(str, options) {
|
|
18160
18196
|
if (!str)
|
|
18161
18197
|
return [];
|
|
18198
|
+
options = options || {};
|
|
18199
|
+
var max = options.max == null ? Infinity : options.max;
|
|
18162
18200
|
if (str.substr(0, 2) === "{}") {
|
|
18163
18201
|
str = "\\{\\}" + str.substr(2);
|
|
18164
18202
|
}
|
|
18165
|
-
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
18203
|
+
return expand(escapeBraces(str), max, true).map(unescapeBraces);
|
|
18166
18204
|
}
|
|
18167
18205
|
function embrace(str) {
|
|
18168
18206
|
return "{" + str + "}";
|
|
@@ -18176,7 +18214,7 @@ var require_brace_expansion = __commonJS({
|
|
|
18176
18214
|
function gte(i, y) {
|
|
18177
18215
|
return i >= y;
|
|
18178
18216
|
}
|
|
18179
|
-
function expand(str, isTop) {
|
|
18217
|
+
function expand(str, max, isTop) {
|
|
18180
18218
|
var expansions = [];
|
|
18181
18219
|
var m = balanced("{", "}", str);
|
|
18182
18220
|
if (!m || /\$$/.test(m.pre))
|
|
@@ -18186,9 +18224,9 @@ var require_brace_expansion = __commonJS({
|
|
|
18186
18224
|
var isSequence = isNumericSequence || isAlphaSequence;
|
|
18187
18225
|
var isOptions = m.body.indexOf(",") >= 0;
|
|
18188
18226
|
if (!isSequence && !isOptions) {
|
|
18189
|
-
if (m.post.match(
|
|
18227
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
18190
18228
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
18191
|
-
return expand(str);
|
|
18229
|
+
return expand(str, max, true);
|
|
18192
18230
|
}
|
|
18193
18231
|
return [str];
|
|
18194
18232
|
}
|
|
@@ -18198,9 +18236,9 @@ var require_brace_expansion = __commonJS({
|
|
|
18198
18236
|
} else {
|
|
18199
18237
|
n = parseCommaParts(m.body);
|
|
18200
18238
|
if (n.length === 1) {
|
|
18201
|
-
n = expand(n[0], false).map(embrace);
|
|
18239
|
+
n = expand(n[0], max, false).map(embrace);
|
|
18202
18240
|
if (n.length === 1) {
|
|
18203
|
-
var post = m.post.length ? expand(m.post, false) : [""];
|
|
18241
|
+
var post = m.post.length ? expand(m.post, max, false) : [""];
|
|
18204
18242
|
return post.map(function(p) {
|
|
18205
18243
|
return m.pre + n[0] + p;
|
|
18206
18244
|
});
|
|
@@ -18208,13 +18246,13 @@ var require_brace_expansion = __commonJS({
|
|
|
18208
18246
|
}
|
|
18209
18247
|
}
|
|
18210
18248
|
var pre = m.pre;
|
|
18211
|
-
var post = m.post.length ? expand(m.post, false) : [""];
|
|
18249
|
+
var post = m.post.length ? expand(m.post, max, false) : [""];
|
|
18212
18250
|
var N;
|
|
18213
18251
|
if (isSequence) {
|
|
18214
18252
|
var x = numeric(n[0]);
|
|
18215
18253
|
var y = numeric(n[1]);
|
|
18216
18254
|
var width = Math.max(n[0].length, n[1].length);
|
|
18217
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
18255
|
+
var incr = n.length == 3 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
18218
18256
|
var test = lte;
|
|
18219
18257
|
var reverse = y < x;
|
|
18220
18258
|
if (reverse) {
|
|
@@ -18223,7 +18261,7 @@ var require_brace_expansion = __commonJS({
|
|
|
18223
18261
|
}
|
|
18224
18262
|
var pad = n.some(isPadded);
|
|
18225
18263
|
N = [];
|
|
18226
|
-
for (var i = x; test(i, y); i += incr) {
|
|
18264
|
+
for (var i = x; test(i, y) && N.length < max; i += incr) {
|
|
18227
18265
|
var c;
|
|
18228
18266
|
if (isAlphaSequence) {
|
|
18229
18267
|
c = String.fromCharCode(i);
|
|
@@ -18246,11 +18284,11 @@ var require_brace_expansion = __commonJS({
|
|
|
18246
18284
|
}
|
|
18247
18285
|
} else {
|
|
18248
18286
|
N = concatMap(n, function(el) {
|
|
18249
|
-
return expand(el, false);
|
|
18287
|
+
return expand(el, max, false);
|
|
18250
18288
|
});
|
|
18251
18289
|
}
|
|
18252
18290
|
for (var j = 0; j < N.length; j++) {
|
|
18253
|
-
for (var k = 0; k < post.length; k++) {
|
|
18291
|
+
for (var k = 0; k < post.length && expansions.length < max; k++) {
|
|
18254
18292
|
var expansion = pre + N[j] + post[k];
|
|
18255
18293
|
if (!isTop || isSequence || expansion)
|
|
18256
18294
|
expansions.push(expansion);
|
|
@@ -23125,8 +23163,13 @@ var require_resolve2 = __commonJS({
|
|
|
23125
23163
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23126
23164
|
var resolve_exports = {};
|
|
23127
23165
|
__export2(resolve_exports, {
|
|
23166
|
+
detectFrameworkFromWorkspace: () => detectFrameworkFromWorkspace,
|
|
23167
|
+
getServiceFs: () => getServiceFs,
|
|
23168
|
+
inferWorkspaceFromNearestManifest: () => inferWorkspaceFromNearestManifest,
|
|
23169
|
+
parsePyModuleAttrEntrypoint: () => parsePyModuleAttrEntrypoint,
|
|
23128
23170
|
resolveAllConfiguredServices: () => resolveAllConfiguredServices,
|
|
23129
23171
|
resolveConfiguredService: () => resolveConfiguredService,
|
|
23172
|
+
resolveEntrypointPath: () => resolveEntrypointPath,
|
|
23130
23173
|
validateServiceConfig: () => validateServiceConfig,
|
|
23131
23174
|
validateServiceEntrypoint: () => validateServiceEntrypoint
|
|
23132
23175
|
});
|
|
@@ -23773,6 +23816,7 @@ var require_resolve2 = __commonJS({
|
|
|
23773
23816
|
builderConfig.handlerFunction = moduleAttrParsed.attrName;
|
|
23774
23817
|
}
|
|
23775
23818
|
return {
|
|
23819
|
+
schema: "experimentalServices",
|
|
23776
23820
|
name,
|
|
23777
23821
|
type,
|
|
23778
23822
|
trigger,
|
|
@@ -23978,6 +24022,270 @@ var require_resolve2 = __commonJS({
|
|
|
23978
24022
|
}
|
|
23979
24023
|
});
|
|
23980
24024
|
|
|
24025
|
+
// ../fs-detectors/dist/services/resolve-v2.js
|
|
24026
|
+
var require_resolve_v2 = __commonJS({
|
|
24027
|
+
"../fs-detectors/dist/services/resolve-v2.js"(exports, module) {
|
|
24028
|
+
"use strict";
|
|
24029
|
+
var __defProp = Object.defineProperty;
|
|
24030
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
24031
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
24032
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
24033
|
+
var __export2 = (target, all) => {
|
|
24034
|
+
for (var name in all)
|
|
24035
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
24036
|
+
};
|
|
24037
|
+
var __copyProps = (to, from, except, desc) => {
|
|
24038
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
24039
|
+
for (let key of __getOwnPropNames(from))
|
|
24040
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24041
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24042
|
+
}
|
|
24043
|
+
return to;
|
|
24044
|
+
};
|
|
24045
|
+
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24046
|
+
var resolve_v2_exports = {};
|
|
24047
|
+
__export2(resolve_v2_exports, {
|
|
24048
|
+
resolveAllConfiguredServicesV2: () => resolveAllConfiguredServicesV22,
|
|
24049
|
+
resolveConfiguredServiceV2: () => resolveConfiguredServiceV22,
|
|
24050
|
+
validateServiceConfigV2: () => validateServiceConfigV22
|
|
24051
|
+
});
|
|
24052
|
+
module.exports = __toCommonJS2(resolve_v2_exports);
|
|
24053
|
+
var import_path12 = __require("path");
|
|
24054
|
+
var import_build_utils6 = __require("@vercel/build-utils");
|
|
24055
|
+
var import_frameworks2 = require_frameworks();
|
|
24056
|
+
var import_types = require_types3();
|
|
24057
|
+
var import_resolve = require_resolve2();
|
|
24058
|
+
var import_utils4 = require_utils3();
|
|
24059
|
+
var frameworksBySlug = new Map(import_frameworks2.frameworkList.map((f) => [f.slug, f]));
|
|
24060
|
+
var SERVICE_NAME_REGEX = /^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$/;
|
|
24061
|
+
function validateServiceConfigV22(name, config) {
|
|
24062
|
+
if (!SERVICE_NAME_REGEX.test(name)) {
|
|
24063
|
+
return {
|
|
24064
|
+
code: "INVALID_SERVICE_NAME",
|
|
24065
|
+
message: `Service name "${name}" is invalid. Names must start with a letter, end with an alphanumeric character, and contain only alphanumeric characters, hyphens, and underscores.`,
|
|
24066
|
+
serviceName: name
|
|
24067
|
+
};
|
|
24068
|
+
}
|
|
24069
|
+
if (!config || typeof config !== "object") {
|
|
24070
|
+
return {
|
|
24071
|
+
code: "INVALID_SERVICE_CONFIG",
|
|
24072
|
+
message: `Service "${name}" has an invalid configuration. Expected an object.`,
|
|
24073
|
+
serviceName: name
|
|
24074
|
+
};
|
|
24075
|
+
}
|
|
24076
|
+
if (typeof config.root !== "string" || config.root.length === 0) {
|
|
24077
|
+
return {
|
|
24078
|
+
code: "MISSING_ROOT",
|
|
24079
|
+
message: `Service "${name}" must specify a "root".`,
|
|
24080
|
+
serviceName: name
|
|
24081
|
+
};
|
|
24082
|
+
}
|
|
24083
|
+
const normalizedRoot = import_path12.posix.normalize(config.root);
|
|
24084
|
+
if (normalizedRoot.startsWith("/")) {
|
|
24085
|
+
return {
|
|
24086
|
+
code: "INVALID_ROOT",
|
|
24087
|
+
message: `Service "${name}" has invalid "root" "${config.root}". Must be a relative path.`,
|
|
24088
|
+
serviceName: name
|
|
24089
|
+
};
|
|
24090
|
+
}
|
|
24091
|
+
if (normalizedRoot === ".." || normalizedRoot.startsWith("../")) {
|
|
24092
|
+
return {
|
|
24093
|
+
code: "INVALID_ROOT",
|
|
24094
|
+
message: `Service "${name}" has invalid "root" "${config.root}". Must not escape the project root.`,
|
|
24095
|
+
serviceName: name
|
|
24096
|
+
};
|
|
24097
|
+
}
|
|
24098
|
+
if (config.runtime && !(config.runtime in import_types.RUNTIME_BUILDERS)) {
|
|
24099
|
+
return {
|
|
24100
|
+
code: "INVALID_RUNTIME",
|
|
24101
|
+
message: `Service "${name}" has invalid runtime "${config.runtime}".`,
|
|
24102
|
+
serviceName: name
|
|
24103
|
+
};
|
|
24104
|
+
}
|
|
24105
|
+
if (config.framework && !frameworksBySlug.has(config.framework)) {
|
|
24106
|
+
return {
|
|
24107
|
+
code: "INVALID_FRAMEWORK",
|
|
24108
|
+
message: `Service "${name}" has invalid framework "${config.framework}".`,
|
|
24109
|
+
serviceName: name
|
|
24110
|
+
};
|
|
24111
|
+
}
|
|
24112
|
+
if (config.runtime && config.framework) {
|
|
24113
|
+
const frameworkRuntime = (0, import_utils4.inferRuntimeFromFramework)(config.framework);
|
|
24114
|
+
if (frameworkRuntime && frameworkRuntime !== config.runtime) {
|
|
24115
|
+
return {
|
|
24116
|
+
code: "RUNTIME_FRAMEWORK_MISMATCH",
|
|
24117
|
+
message: `Service "${name}" has conflicting runtime/framework: runtime "${config.runtime}" is incompatible with framework "${config.framework}" (runtime "${frameworkRuntime}").`,
|
|
24118
|
+
serviceName: name
|
|
24119
|
+
};
|
|
24120
|
+
}
|
|
24121
|
+
}
|
|
24122
|
+
if (!config.framework && !config.entrypoint) {
|
|
24123
|
+
return {
|
|
24124
|
+
code: "MISSING_SERVICE_CONFIG",
|
|
24125
|
+
message: `Service "${name}" must specify "framework" or "entrypoint".`,
|
|
24126
|
+
serviceName: name
|
|
24127
|
+
};
|
|
24128
|
+
}
|
|
24129
|
+
return null;
|
|
24130
|
+
}
|
|
24131
|
+
async function resolveConfiguredServiceV22(name, config, fs5) {
|
|
24132
|
+
const root = config.root;
|
|
24133
|
+
const normalizedRoot = import_path12.posix.normalize(root);
|
|
24134
|
+
const serviceFsResult = normalizedRoot === "." ? { fs: fs5 } : await (0, import_resolve.getServiceFs)(fs5, name, root);
|
|
24135
|
+
if (serviceFsResult.error) {
|
|
24136
|
+
return { error: serviceFsResult.error };
|
|
24137
|
+
}
|
|
24138
|
+
const serviceFs = serviceFsResult.fs;
|
|
24139
|
+
const rawEntrypoint = config.entrypoint;
|
|
24140
|
+
const moduleAttr = typeof rawEntrypoint === "string" ? (0, import_resolve.parsePyModuleAttrEntrypoint)(rawEntrypoint) : null;
|
|
24141
|
+
let normalizedEntrypoint;
|
|
24142
|
+
let entrypointIsDirectory = false;
|
|
24143
|
+
if (typeof rawEntrypoint === "string") {
|
|
24144
|
+
const entrypointToResolve = moduleAttr ? moduleAttr.filePath : rawEntrypoint;
|
|
24145
|
+
const resolved = await (0, import_resolve.resolveEntrypointPath)({
|
|
24146
|
+
fs: serviceFs,
|
|
24147
|
+
serviceName: name,
|
|
24148
|
+
entrypoint: entrypointToResolve
|
|
24149
|
+
});
|
|
24150
|
+
if (resolved.error) {
|
|
24151
|
+
return { error: resolved.error };
|
|
24152
|
+
}
|
|
24153
|
+
normalizedEntrypoint = resolved.entrypoint?.normalized;
|
|
24154
|
+
entrypointIsDirectory = Boolean(resolved.entrypoint?.isDirectory);
|
|
24155
|
+
}
|
|
24156
|
+
const entrypointFile = entrypointIsDirectory || !normalizedEntrypoint ? void 0 : normalizedEntrypoint;
|
|
24157
|
+
const inferredRuntime = (0, import_utils4.inferServiceRuntime)({
|
|
24158
|
+
runtime: config.runtime,
|
|
24159
|
+
framework: config.framework,
|
|
24160
|
+
entrypoint: entrypointFile
|
|
24161
|
+
});
|
|
24162
|
+
let framework = config.framework;
|
|
24163
|
+
if (!framework && normalizedEntrypoint) {
|
|
24164
|
+
const workspace = entrypointIsDirectory ? normalizedEntrypoint : import_path12.posix.dirname(normalizedEntrypoint) || ".";
|
|
24165
|
+
const detection = await (0, import_resolve.detectFrameworkFromWorkspace)({
|
|
24166
|
+
fs: serviceFs,
|
|
24167
|
+
workspace,
|
|
24168
|
+
serviceName: name,
|
|
24169
|
+
runtime: inferredRuntime
|
|
24170
|
+
});
|
|
24171
|
+
if (detection.error) {
|
|
24172
|
+
return { error: detection.error };
|
|
24173
|
+
}
|
|
24174
|
+
framework = detection.framework;
|
|
24175
|
+
}
|
|
24176
|
+
if (entrypointIsDirectory && !framework) {
|
|
24177
|
+
return {
|
|
24178
|
+
error: {
|
|
24179
|
+
code: "MISSING_SERVICE_FRAMEWORK",
|
|
24180
|
+
message: `Service "${name}" uses directory entrypoint "${config.entrypoint}" but no framework could be detected. Specify "framework" explicitly or use a file entrypoint.`,
|
|
24181
|
+
serviceName: name
|
|
24182
|
+
}
|
|
24183
|
+
};
|
|
24184
|
+
}
|
|
24185
|
+
const frameworkDefinition = framework ? frameworksBySlug.get(framework) : void 0;
|
|
24186
|
+
let builderUse;
|
|
24187
|
+
let builderSrc;
|
|
24188
|
+
if (framework) {
|
|
24189
|
+
builderUse = (0, import_build_utils6.isNodeBackendFramework)(framework) ? "@vercel/backends" : frameworkDefinition?.useRuntime?.use || "@vercel/static-build";
|
|
24190
|
+
builderSrc = entrypointFile || frameworkDefinition?.useRuntime?.src || "package.json";
|
|
24191
|
+
} else {
|
|
24192
|
+
if (!inferredRuntime) {
|
|
24193
|
+
return {
|
|
24194
|
+
error: {
|
|
24195
|
+
code: "MISSING_SERVICE_CONFIG",
|
|
24196
|
+
message: `Service "${name}" must specify "framework" or a runtime-resolvable "entrypoint".`,
|
|
24197
|
+
serviceName: name
|
|
24198
|
+
}
|
|
24199
|
+
};
|
|
24200
|
+
}
|
|
24201
|
+
builderUse = inferredRuntime === "node" ? "@vercel/backends" : (0, import_utils4.getBuilderForRuntime)(inferredRuntime);
|
|
24202
|
+
builderSrc = entrypointFile;
|
|
24203
|
+
}
|
|
24204
|
+
const isRoot = normalizedRoot === ".";
|
|
24205
|
+
const projectRelativeSrc = isRoot ? builderSrc : import_path12.posix.join(normalizedRoot, builderSrc);
|
|
24206
|
+
const builderConfig = { zeroConfig: true };
|
|
24207
|
+
if (builderUse === "@vercel/backends") {
|
|
24208
|
+
builderConfig.serviceName = name;
|
|
24209
|
+
}
|
|
24210
|
+
if (framework) {
|
|
24211
|
+
builderConfig.framework = framework;
|
|
24212
|
+
}
|
|
24213
|
+
if (!isRoot) {
|
|
24214
|
+
builderConfig.workspace = normalizedRoot;
|
|
24215
|
+
}
|
|
24216
|
+
if (moduleAttr) {
|
|
24217
|
+
builderConfig.handlerFunction = moduleAttr.attrName;
|
|
24218
|
+
}
|
|
24219
|
+
const runtime = import_types.STATIC_BUILDERS.has(builderUse) ? void 0 : inferredRuntime;
|
|
24220
|
+
return {
|
|
24221
|
+
service: {
|
|
24222
|
+
schema: "experimentalServicesV2",
|
|
24223
|
+
name,
|
|
24224
|
+
root,
|
|
24225
|
+
framework,
|
|
24226
|
+
runtime,
|
|
24227
|
+
entrypoint: entrypointFile,
|
|
24228
|
+
builder: {
|
|
24229
|
+
src: projectRelativeSrc,
|
|
24230
|
+
use: builderUse,
|
|
24231
|
+
config: builderConfig
|
|
24232
|
+
},
|
|
24233
|
+
installCommand: config.installCommand,
|
|
24234
|
+
buildCommand: config.buildCommand,
|
|
24235
|
+
devCommand: config.devCommand,
|
|
24236
|
+
ignoreCommand: config.ignoreCommand,
|
|
24237
|
+
outputDirectory: config.outputDirectory,
|
|
24238
|
+
bindings: config.bindings,
|
|
24239
|
+
functions: config.functions,
|
|
24240
|
+
headers: config.headers,
|
|
24241
|
+
redirects: config.redirects,
|
|
24242
|
+
rewrites: config.rewrites,
|
|
24243
|
+
routes: config.routes,
|
|
24244
|
+
cleanUrls: config.cleanUrls,
|
|
24245
|
+
trailingSlash: config.trailingSlash
|
|
24246
|
+
}
|
|
24247
|
+
};
|
|
24248
|
+
}
|
|
24249
|
+
async function resolveAllConfiguredServicesV22(services, fs5) {
|
|
24250
|
+
const resolved = [];
|
|
24251
|
+
const errors = [];
|
|
24252
|
+
for (const name of Object.keys(services)) {
|
|
24253
|
+
const config = services[name];
|
|
24254
|
+
const validationError = validateServiceConfigV22(name, config);
|
|
24255
|
+
if (validationError) {
|
|
24256
|
+
errors.push(validationError);
|
|
24257
|
+
continue;
|
|
24258
|
+
}
|
|
24259
|
+
const { service, error } = await resolveConfiguredServiceV22(
|
|
24260
|
+
name,
|
|
24261
|
+
config,
|
|
24262
|
+
fs5
|
|
24263
|
+
);
|
|
24264
|
+
if (error) {
|
|
24265
|
+
errors.push(error);
|
|
24266
|
+
continue;
|
|
24267
|
+
}
|
|
24268
|
+
if (service) {
|
|
24269
|
+
resolved.push(service);
|
|
24270
|
+
}
|
|
24271
|
+
}
|
|
24272
|
+
const serviceNames = new Set(Object.keys(services));
|
|
24273
|
+
for (const service of resolved) {
|
|
24274
|
+
for (const binding of service.bindings ?? []) {
|
|
24275
|
+
if (!serviceNames.has(binding.service)) {
|
|
24276
|
+
errors.push({
|
|
24277
|
+
code: "UNKNOWN_SERVICE_BINDING",
|
|
24278
|
+
message: `Service "${service.name}" declares a binding to unknown service "${binding.service}".`,
|
|
24279
|
+
serviceName: service.name
|
|
24280
|
+
});
|
|
24281
|
+
}
|
|
24282
|
+
}
|
|
24283
|
+
}
|
|
24284
|
+
return { services: resolved, errors };
|
|
24285
|
+
}
|
|
24286
|
+
}
|
|
24287
|
+
});
|
|
24288
|
+
|
|
23981
24289
|
// ../fs-detectors/dist/services/auto-detect.js
|
|
23982
24290
|
var require_auto_detect = __commonJS({
|
|
23983
24291
|
"../fs-detectors/dist/services/auto-detect.js"(exports, module) {
|
|
@@ -27869,6 +28177,7 @@ var require_detect_services = __commonJS({
|
|
|
27869
28177
|
var import_routing_utils2 = require_dist5();
|
|
27870
28178
|
var import_utils4 = require_utils3();
|
|
27871
28179
|
var import_resolve = require_resolve2();
|
|
28180
|
+
var import_resolve_v2 = require_resolve_v2();
|
|
27872
28181
|
var import_auto_detect = require_auto_detect();
|
|
27873
28182
|
var import_detect_railway = require_detect_railway();
|
|
27874
28183
|
var import_detect_render = require_detect_render();
|
|
@@ -27933,7 +28242,8 @@ var require_detect_services = __commonJS({
|
|
|
27933
28242
|
fs: fs5,
|
|
27934
28243
|
workPath,
|
|
27935
28244
|
detectEntrypoint,
|
|
27936
|
-
configuredServices: providedConfiguredServices
|
|
28245
|
+
configuredServices: providedConfiguredServices,
|
|
28246
|
+
configuredServicesType: providedConfiguredServicesType
|
|
27937
28247
|
} = options;
|
|
27938
28248
|
const scopedFs = workPath ? fs5.chdir(workPath) : fs5;
|
|
27939
28249
|
const { config: vercelConfig, error: configError } = await (0, import_utils4.readVercelConfig)(scopedFs);
|
|
@@ -27948,9 +28258,26 @@ var require_detect_services = __commonJS({
|
|
|
27948
28258
|
});
|
|
27949
28259
|
}
|
|
27950
28260
|
const hasProvidedConfiguredServices = providedConfiguredServices && Object.keys(providedConfiguredServices).length > 0;
|
|
27951
|
-
const
|
|
27952
|
-
|
|
27953
|
-
|
|
28261
|
+
const experimentalServicesV2 = hasProvidedConfiguredServices && providedConfiguredServicesType === "experimentalServicesV2" ? providedConfiguredServices : hasProvidedConfiguredServices ? void 0 : vercelConfig?.experimentalServicesV2;
|
|
28262
|
+
if (experimentalServicesV2 && Object.keys(experimentalServicesV2).length > 0) {
|
|
28263
|
+
const result2 = await (0, import_resolve_v2.resolveAllConfiguredServicesV2)(
|
|
28264
|
+
experimentalServicesV2,
|
|
28265
|
+
scopedFs
|
|
28266
|
+
);
|
|
28267
|
+
return withResolvedResult({
|
|
28268
|
+
services: result2.services,
|
|
28269
|
+
source: "configured",
|
|
28270
|
+
// V2 uses explicit `bindings`, so no implicit `{NAME}_URL` injection.
|
|
28271
|
+
useImplicitEnvInjection: false,
|
|
28272
|
+
// V2 routes are explicitly carried per-service to output them separately.
|
|
28273
|
+
routes: emptyRoutes(),
|
|
28274
|
+
errors: result2.errors,
|
|
28275
|
+
warnings: []
|
|
28276
|
+
});
|
|
28277
|
+
}
|
|
28278
|
+
const experimentalServicesV1 = hasProvidedConfiguredServices ? providedConfiguredServices : vercelConfig?.experimentalServices;
|
|
28279
|
+
const hasExperimentalServicesV1 = experimentalServicesV1 && Object.keys(experimentalServicesV1).length > 0;
|
|
28280
|
+
if (!hasExperimentalServicesV1) {
|
|
27954
28281
|
const detectors = [
|
|
27955
28282
|
{ detect: import_detect_railway.detectRailwayServices, source: "railway" },
|
|
27956
28283
|
{ detect: import_detect_render.detectRenderServices, source: "render" },
|
|
@@ -27978,7 +28305,7 @@ var require_detect_services = __commonJS({
|
|
|
27978
28305
|
});
|
|
27979
28306
|
}
|
|
27980
28307
|
const result = await (0, import_resolve.resolveAllConfiguredServices)(
|
|
27981
|
-
|
|
28308
|
+
experimentalServicesV1,
|
|
27982
28309
|
scopedFs,
|
|
27983
28310
|
"configured"
|
|
27984
28311
|
);
|
|
@@ -28053,7 +28380,8 @@ var require_detect_services = __commonJS({
|
|
|
28053
28380
|
inferred
|
|
28054
28381
|
);
|
|
28055
28382
|
}
|
|
28056
|
-
function generateServicesRoutes2(
|
|
28383
|
+
function generateServicesRoutes2(allServices) {
|
|
28384
|
+
const services = allServices.filter(import_build_utils6.isExperimentalService);
|
|
28057
28385
|
const hostRewrites = [];
|
|
28058
28386
|
const rewrites = [];
|
|
28059
28387
|
const defaults = [];
|
|
@@ -28394,7 +28722,8 @@ var require_get_services_builders = __commonJS({
|
|
|
28394
28722
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28395
28723
|
var get_services_builders_exports = {};
|
|
28396
28724
|
__export2(get_services_builders_exports, {
|
|
28397
|
-
getServicesBuilders: () => getServicesBuilders2
|
|
28725
|
+
getServicesBuilders: () => getServicesBuilders2,
|
|
28726
|
+
warnIgnoredDirectories: () => warnIgnoredDirectories
|
|
28398
28727
|
});
|
|
28399
28728
|
module.exports = __toCommonJS2(get_services_builders_exports);
|
|
28400
28729
|
var import_detect_services2 = require_detect_services();
|
|
@@ -28510,6 +28839,23 @@ var require_get_services_builders = __commonJS({
|
|
|
28510
28839
|
useImplicitEnvInjection: result.useImplicitEnvInjection
|
|
28511
28840
|
};
|
|
28512
28841
|
}
|
|
28842
|
+
function warnIgnoredDirectories(files, configuredServices) {
|
|
28843
|
+
const warnings = [];
|
|
28844
|
+
if (files.some((f) => f.startsWith("api/"))) {
|
|
28845
|
+
const serviceCoversApi = Object.values(configuredServices).some((service) => {
|
|
28846
|
+
const root = service.root ?? ".";
|
|
28847
|
+
const entrypoint = service.entrypoint ?? "";
|
|
28848
|
+
return root === "api" || root.startsWith("api/") || root === "." && entrypoint.startsWith("api/");
|
|
28849
|
+
});
|
|
28850
|
+
if (!serviceCoversApi) {
|
|
28851
|
+
warnings.push({
|
|
28852
|
+
code: "api_dir_ignored",
|
|
28853
|
+
message: "The `api/` directory will not be built because `experimentalServices` is configured. To serve these files, declare them as a service in your `vercel.json`."
|
|
28854
|
+
});
|
|
28855
|
+
}
|
|
28856
|
+
}
|
|
28857
|
+
return warnings;
|
|
28858
|
+
}
|
|
28513
28859
|
}
|
|
28514
28860
|
});
|
|
28515
28861
|
|
|
@@ -28610,18 +28956,28 @@ var require_detect_builders = __commonJS({
|
|
|
28610
28956
|
return publicBuilder ? publicBuilder.src.replace("/**/*", "") : null;
|
|
28611
28957
|
}
|
|
28612
28958
|
async function detectBuilders2(files, pkg, options = {}) {
|
|
28613
|
-
const {
|
|
28959
|
+
const {
|
|
28960
|
+
experimentalServices: experimentalServicesV1,
|
|
28961
|
+
experimentalServicesV2,
|
|
28962
|
+
projectSettings = {}
|
|
28963
|
+
} = options;
|
|
28614
28964
|
const { framework } = projectSettings;
|
|
28615
|
-
const configuredServices =
|
|
28616
|
-
const configuredServicesType = "experimentalServices";
|
|
28965
|
+
const configuredServices = experimentalServicesV2 ?? experimentalServicesV1;
|
|
28966
|
+
const configuredServicesType = experimentalServicesV2 ? "experimentalServicesV2" : "experimentalServices";
|
|
28617
28967
|
const hasServicesConfig = configuredServices != null && typeof configuredServices === "object";
|
|
28618
28968
|
if (hasServicesConfig || framework === "services") {
|
|
28619
|
-
|
|
28969
|
+
const result = await (0, import_get_services_builders.getServicesBuilders)({
|
|
28620
28970
|
workPath: options.workPath,
|
|
28621
28971
|
configuredServices,
|
|
28622
28972
|
configuredServicesType,
|
|
28623
28973
|
projectFramework: framework
|
|
28624
28974
|
});
|
|
28975
|
+
if (configuredServices != null) {
|
|
28976
|
+
result.warnings.push(
|
|
28977
|
+
...(0, import_get_services_builders.warnIgnoredDirectories)(files, configuredServices)
|
|
28978
|
+
);
|
|
28979
|
+
}
|
|
28980
|
+
return result;
|
|
28625
28981
|
}
|
|
28626
28982
|
const errors = [];
|
|
28627
28983
|
const warnings = [];
|
|
@@ -29004,10 +29360,11 @@ var require_detect_builders = __commonJS({
|
|
|
29004
29360
|
message: "Function must contain at least one property."
|
|
29005
29361
|
};
|
|
29006
29362
|
}
|
|
29007
|
-
|
|
29363
|
+
const maxDurationLimit = (0, import_build_utils6.getMaxDurationLimit)();
|
|
29364
|
+
if (func.maxDuration !== void 0 && func.maxDuration !== "max" && (func.maxDuration < 1 || maxDurationLimit !== void 0 && func.maxDuration > maxDurationLimit || !Number.isInteger(func.maxDuration))) {
|
|
29008
29365
|
return {
|
|
29009
29366
|
code: "invalid_function_duration",
|
|
29010
|
-
message:
|
|
29367
|
+
message: maxDurationLimit !== void 0 ? `Functions must have a maxDuration between 1 and ${maxDurationLimit}, or "max".` : 'Functions must have a positive integer maxDuration, or "max".'
|
|
29011
29368
|
};
|
|
29012
29369
|
}
|
|
29013
29370
|
if (func.memory !== void 0 && (func.memory < 128 || func.memory > 10240)) {
|
|
@@ -30082,9 +30439,9 @@ var require_path = __commonJS({
|
|
|
30082
30439
|
}
|
|
30083
30440
|
});
|
|
30084
30441
|
|
|
30085
|
-
// ../../node_modules/.pnpm/brace-expansion@2.
|
|
30442
|
+
// ../../node_modules/.pnpm/brace-expansion@2.1.1/node_modules/brace-expansion/index.js
|
|
30086
30443
|
var require_brace_expansion2 = __commonJS({
|
|
30087
|
-
"../../node_modules/.pnpm/brace-expansion@2.
|
|
30444
|
+
"../../node_modules/.pnpm/brace-expansion@2.1.1/node_modules/brace-expansion/index.js"(exports, module) {
|
|
30088
30445
|
var balanced = require_balanced_match();
|
|
30089
30446
|
module.exports = expandTop;
|
|
30090
30447
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
@@ -30121,13 +30478,15 @@ var require_brace_expansion2 = __commonJS({
|
|
|
30121
30478
|
parts.push.apply(parts, p);
|
|
30122
30479
|
return parts;
|
|
30123
30480
|
}
|
|
30124
|
-
function expandTop(str) {
|
|
30481
|
+
function expandTop(str, options) {
|
|
30125
30482
|
if (!str)
|
|
30126
30483
|
return [];
|
|
30484
|
+
options = options || {};
|
|
30485
|
+
var max = options.max == null ? Infinity : options.max;
|
|
30127
30486
|
if (str.substr(0, 2) === "{}") {
|
|
30128
30487
|
str = "\\{\\}" + str.substr(2);
|
|
30129
30488
|
}
|
|
30130
|
-
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
30489
|
+
return expand(escapeBraces(str), max, true).map(unescapeBraces);
|
|
30131
30490
|
}
|
|
30132
30491
|
function embrace(str) {
|
|
30133
30492
|
return "{" + str + "}";
|
|
@@ -30141,15 +30500,15 @@ var require_brace_expansion2 = __commonJS({
|
|
|
30141
30500
|
function gte(i, y) {
|
|
30142
30501
|
return i >= y;
|
|
30143
30502
|
}
|
|
30144
|
-
function expand(str, isTop) {
|
|
30503
|
+
function expand(str, max, isTop) {
|
|
30145
30504
|
var expansions = [];
|
|
30146
30505
|
var m = balanced("{", "}", str);
|
|
30147
30506
|
if (!m)
|
|
30148
30507
|
return [str];
|
|
30149
30508
|
var pre = m.pre;
|
|
30150
|
-
var post = m.post.length ? expand(m.post, false) : [""];
|
|
30509
|
+
var post = m.post.length ? expand(m.post, max, false) : [""];
|
|
30151
30510
|
if (/\$$/.test(m.pre)) {
|
|
30152
|
-
for (var k = 0; k < post.length; k++) {
|
|
30511
|
+
for (var k = 0; k < post.length && k < max; k++) {
|
|
30153
30512
|
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
30154
30513
|
expansions.push(expansion);
|
|
30155
30514
|
}
|
|
@@ -30159,9 +30518,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
30159
30518
|
var isSequence = isNumericSequence || isAlphaSequence;
|
|
30160
30519
|
var isOptions = m.body.indexOf(",") >= 0;
|
|
30161
30520
|
if (!isSequence && !isOptions) {
|
|
30162
|
-
if (m.post.match(
|
|
30521
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
30163
30522
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
30164
|
-
return expand(str);
|
|
30523
|
+
return expand(str, max, true);
|
|
30165
30524
|
}
|
|
30166
30525
|
return [str];
|
|
30167
30526
|
}
|
|
@@ -30171,7 +30530,7 @@ var require_brace_expansion2 = __commonJS({
|
|
|
30171
30530
|
} else {
|
|
30172
30531
|
n = parseCommaParts(m.body);
|
|
30173
30532
|
if (n.length === 1) {
|
|
30174
|
-
n = expand(n[0], false).map(embrace);
|
|
30533
|
+
n = expand(n[0], max, false).map(embrace);
|
|
30175
30534
|
if (n.length === 1) {
|
|
30176
30535
|
return post.map(function(p) {
|
|
30177
30536
|
return m.pre + n[0] + p;
|
|
@@ -30184,7 +30543,7 @@ var require_brace_expansion2 = __commonJS({
|
|
|
30184
30543
|
var x = numeric(n[0]);
|
|
30185
30544
|
var y = numeric(n[1]);
|
|
30186
30545
|
var width = Math.max(n[0].length, n[1].length);
|
|
30187
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
30546
|
+
var incr = n.length == 3 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
30188
30547
|
var test = lte;
|
|
30189
30548
|
var reverse = y < x;
|
|
30190
30549
|
if (reverse) {
|
|
@@ -30193,7 +30552,7 @@ var require_brace_expansion2 = __commonJS({
|
|
|
30193
30552
|
}
|
|
30194
30553
|
var pad = n.some(isPadded);
|
|
30195
30554
|
N = [];
|
|
30196
|
-
for (var i = x; test(i, y); i += incr) {
|
|
30555
|
+
for (var i = x; test(i, y) && N.length < max; i += incr) {
|
|
30197
30556
|
var c;
|
|
30198
30557
|
if (isAlphaSequence) {
|
|
30199
30558
|
c = String.fromCharCode(i);
|
|
@@ -30217,11 +30576,11 @@ var require_brace_expansion2 = __commonJS({
|
|
|
30217
30576
|
} else {
|
|
30218
30577
|
N = [];
|
|
30219
30578
|
for (var j = 0; j < n.length; j++) {
|
|
30220
|
-
N.push.apply(N, expand(n[j], false));
|
|
30579
|
+
N.push.apply(N, expand(n[j], max, false));
|
|
30221
30580
|
}
|
|
30222
30581
|
}
|
|
30223
30582
|
for (var j = 0; j < N.length; j++) {
|
|
30224
|
-
for (var k = 0; k < post.length; k++) {
|
|
30583
|
+
for (var k = 0; k < post.length && expansions.length < max; k++) {
|
|
30225
30584
|
var expansion = pre + N[j] + post[k];
|
|
30226
30585
|
if (!isTop || isSequence || expansion)
|
|
30227
30586
|
expansions.push(expansion);
|
|
@@ -33256,7 +33615,7 @@ var require_get_workspace_package_paths = __commonJS({
|
|
|
33256
33615
|
async function getPackagePaths(packages, fs5) {
|
|
33257
33616
|
return (await Promise.all(
|
|
33258
33617
|
packages.map(
|
|
33259
|
-
(packageGlob) => new Promise((
|
|
33618
|
+
(packageGlob) => new Promise((resolve5, reject) => {
|
|
33260
33619
|
(0, import_glob.default)(
|
|
33261
33620
|
normalizePath3(posixPath.join(packageGlob, "package.json")),
|
|
33262
33621
|
{
|
|
@@ -33267,7 +33626,7 @@ var require_get_workspace_package_paths = __commonJS({
|
|
|
33267
33626
|
if (err)
|
|
33268
33627
|
reject(err);
|
|
33269
33628
|
else
|
|
33270
|
-
|
|
33629
|
+
resolve5(matches);
|
|
33271
33630
|
}
|
|
33272
33631
|
);
|
|
33273
33632
|
})
|
|
@@ -33865,17 +34224,24 @@ var require_dist6 = __commonJS({
|
|
|
33865
34224
|
getServicesBuilders: () => import_get_services_builders.getServicesBuilders,
|
|
33866
34225
|
getWorkspacePackagePaths: () => import_get_workspace_package_paths.getWorkspacePackagePaths,
|
|
33867
34226
|
getWorkspaces: () => import_get_workspaces.getWorkspaces,
|
|
34227
|
+
isExperimentalService: () => import_build_utils6.isExperimentalService,
|
|
34228
|
+
isExperimentalServiceV2: () => import_build_utils6.isExperimentalServiceV2,
|
|
33868
34229
|
isOfficialRuntime: () => import_is_official_runtime.isOfficialRuntime,
|
|
33869
34230
|
isRouteOwningBuilder: () => import_utils4.isRouteOwningBuilder,
|
|
33870
34231
|
isStaticBuild: () => import_utils4.isStaticBuild,
|
|
33871
34232
|
isStaticRuntime: () => import_is_official_runtime.isStaticRuntime,
|
|
33872
34233
|
monorepoManagers: () => import_monorepo_managers.monorepoManagers,
|
|
33873
34234
|
packageManagers: () => import_package_managers.packageManagers,
|
|
34235
|
+
resolveAllConfiguredServicesV2: () => import_resolve_v2.resolveAllConfiguredServicesV2,
|
|
34236
|
+
resolveConfiguredServiceV2: () => import_resolve_v2.resolveConfiguredServiceV2,
|
|
34237
|
+
validateServiceConfigV2: () => import_resolve_v2.validateServiceConfigV2,
|
|
33874
34238
|
workspaceManagers: () => import_workspace_managers.workspaceManagers
|
|
33875
34239
|
});
|
|
33876
34240
|
module.exports = __toCommonJS2(src_exports);
|
|
33877
34241
|
var import_detect_builders = require_detect_builders();
|
|
33878
34242
|
var import_detect_services2 = require_detect_services();
|
|
34243
|
+
var import_resolve_v2 = require_resolve_v2();
|
|
34244
|
+
var import_build_utils6 = __require("@vercel/build-utils");
|
|
33879
34245
|
var import_auto_detect = require_auto_detect();
|
|
33880
34246
|
var import_utils4 = require_utils3();
|
|
33881
34247
|
var import_get_services_builders = require_get_services_builders();
|
|
@@ -34161,14 +34527,14 @@ var require_open = __commonJS({
|
|
|
34161
34527
|
}
|
|
34162
34528
|
const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
|
|
34163
34529
|
if (options.wait) {
|
|
34164
|
-
return new Promise((
|
|
34530
|
+
return new Promise((resolve5, reject) => {
|
|
34165
34531
|
subprocess.once("error", reject);
|
|
34166
34532
|
subprocess.once("close", (exitCode) => {
|
|
34167
34533
|
if (options.allowNonzeroExitCode && exitCode > 0) {
|
|
34168
34534
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
34169
34535
|
return;
|
|
34170
34536
|
}
|
|
34171
|
-
|
|
34537
|
+
resolve5(subprocess);
|
|
34172
34538
|
});
|
|
34173
34539
|
});
|
|
34174
34540
|
}
|
|
@@ -34259,11 +34625,11 @@ var require_universalify2 = __commonJS({
|
|
|
34259
34625
|
if (typeof arguments[arguments.length - 1] === "function")
|
|
34260
34626
|
fn.apply(this, arguments);
|
|
34261
34627
|
else {
|
|
34262
|
-
return new Promise((
|
|
34628
|
+
return new Promise((resolve5, reject) => {
|
|
34263
34629
|
arguments[arguments.length] = (err, res) => {
|
|
34264
34630
|
if (err)
|
|
34265
34631
|
return reject(err);
|
|
34266
|
-
|
|
34632
|
+
resolve5(res);
|
|
34267
34633
|
};
|
|
34268
34634
|
arguments.length++;
|
|
34269
34635
|
fn.apply(this, arguments);
|
|
@@ -34338,19 +34704,19 @@ var require_fs3 = __commonJS({
|
|
|
34338
34704
|
if (typeof callback === "function") {
|
|
34339
34705
|
return fs5.exists(filename, callback);
|
|
34340
34706
|
}
|
|
34341
|
-
return new Promise((
|
|
34342
|
-
return fs5.exists(filename,
|
|
34707
|
+
return new Promise((resolve5) => {
|
|
34708
|
+
return fs5.exists(filename, resolve5);
|
|
34343
34709
|
});
|
|
34344
34710
|
};
|
|
34345
34711
|
exports.read = function(fd, buffer, offset, length, position, callback) {
|
|
34346
34712
|
if (typeof callback === "function") {
|
|
34347
34713
|
return fs5.read(fd, buffer, offset, length, position, callback);
|
|
34348
34714
|
}
|
|
34349
|
-
return new Promise((
|
|
34715
|
+
return new Promise((resolve5, reject) => {
|
|
34350
34716
|
fs5.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
34351
34717
|
if (err)
|
|
34352
34718
|
return reject(err);
|
|
34353
|
-
|
|
34719
|
+
resolve5({ bytesRead, buffer: buffer2 });
|
|
34354
34720
|
});
|
|
34355
34721
|
});
|
|
34356
34722
|
};
|
|
@@ -34358,11 +34724,11 @@ var require_fs3 = __commonJS({
|
|
|
34358
34724
|
if (typeof args[args.length - 1] === "function") {
|
|
34359
34725
|
return fs5.write(fd, buffer, ...args);
|
|
34360
34726
|
}
|
|
34361
|
-
return new Promise((
|
|
34727
|
+
return new Promise((resolve5, reject) => {
|
|
34362
34728
|
fs5.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
34363
34729
|
if (err)
|
|
34364
34730
|
return reject(err);
|
|
34365
|
-
|
|
34731
|
+
resolve5({ bytesWritten, buffer: buffer2 });
|
|
34366
34732
|
});
|
|
34367
34733
|
});
|
|
34368
34734
|
};
|
|
@@ -36374,12 +36740,12 @@ var require_lib7 = __commonJS({
|
|
|
36374
36740
|
if (token !== void 0) {
|
|
36375
36741
|
return token;
|
|
36376
36742
|
}
|
|
36377
|
-
return new Promise((
|
|
36743
|
+
return new Promise((resolve5, reject) => {
|
|
36378
36744
|
if (this.pauseFn && !this.paused) {
|
|
36379
36745
|
this.paused = true;
|
|
36380
36746
|
this.pauseFn();
|
|
36381
36747
|
}
|
|
36382
|
-
this.waiting.push({ resolve:
|
|
36748
|
+
this.waiting.push({ resolve: resolve5, reject });
|
|
36383
36749
|
});
|
|
36384
36750
|
}
|
|
36385
36751
|
release(token) {
|
|
@@ -36920,7 +37286,7 @@ var require_package = __commonJS({
|
|
|
36920
37286
|
"../client/package.json"(exports, module) {
|
|
36921
37287
|
module.exports = {
|
|
36922
37288
|
name: "@vercel/client",
|
|
36923
|
-
version: "17.5.
|
|
37289
|
+
version: "17.5.11",
|
|
36924
37290
|
main: "dist/index.js",
|
|
36925
37291
|
typings: "dist/index.d.ts",
|
|
36926
37292
|
homepage: "https://vercel.com",
|
|
@@ -37061,14 +37427,14 @@ var require_readdir_recursive = __commonJS({
|
|
|
37061
37427
|
function readdir(path, ignores) {
|
|
37062
37428
|
ignores = ignores.map(toMatcherFunction);
|
|
37063
37429
|
let list2 = [];
|
|
37064
|
-
return new Promise(function(
|
|
37430
|
+
return new Promise(function(resolve5, reject) {
|
|
37065
37431
|
import_fs4.default.readdir(path, function(err, files) {
|
|
37066
37432
|
if (err) {
|
|
37067
37433
|
return reject(err);
|
|
37068
37434
|
}
|
|
37069
37435
|
let pending = files.length;
|
|
37070
37436
|
if (!pending) {
|
|
37071
|
-
return
|
|
37437
|
+
return resolve5(list2);
|
|
37072
37438
|
}
|
|
37073
37439
|
files.forEach(function(file) {
|
|
37074
37440
|
const filePath = import_path12.default.join(path, file);
|
|
@@ -37080,7 +37446,7 @@ var require_readdir_recursive = __commonJS({
|
|
|
37080
37446
|
if (matches) {
|
|
37081
37447
|
pending -= 1;
|
|
37082
37448
|
if (!pending) {
|
|
37083
|
-
return
|
|
37449
|
+
return resolve5(list2);
|
|
37084
37450
|
}
|
|
37085
37451
|
return null;
|
|
37086
37452
|
}
|
|
@@ -37092,14 +37458,14 @@ var require_readdir_recursive = __commonJS({
|
|
|
37092
37458
|
list2 = list2.concat(res);
|
|
37093
37459
|
pending -= 1;
|
|
37094
37460
|
if (!pending) {
|
|
37095
|
-
return
|
|
37461
|
+
return resolve5(list2);
|
|
37096
37462
|
}
|
|
37097
37463
|
}).catch(reject);
|
|
37098
37464
|
} else {
|
|
37099
37465
|
list2.push(filePath);
|
|
37100
37466
|
pending -= 1;
|
|
37101
37467
|
if (!pending) {
|
|
37102
|
-
return
|
|
37468
|
+
return resolve5(list2);
|
|
37103
37469
|
}
|
|
37104
37470
|
}
|
|
37105
37471
|
});
|
|
@@ -40175,13 +40541,14 @@ var require_braces = __commonJS({
|
|
|
40175
40541
|
}
|
|
40176
40542
|
});
|
|
40177
40543
|
|
|
40178
|
-
// ../../node_modules/.pnpm/picomatch@2.3.
|
|
40544
|
+
// ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
40179
40545
|
var require_constants2 = __commonJS({
|
|
40180
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
40546
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
40181
40547
|
"use strict";
|
|
40182
40548
|
var path = __require("path");
|
|
40183
40549
|
var WIN_SLASH = "\\\\/";
|
|
40184
40550
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
40551
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
40185
40552
|
var DOT_LITERAL = "\\.";
|
|
40186
40553
|
var PLUS_LITERAL = "\\+";
|
|
40187
40554
|
var QMARK_LITERAL = "\\?";
|
|
@@ -40229,6 +40596,7 @@ var require_constants2 = __commonJS({
|
|
|
40229
40596
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
40230
40597
|
};
|
|
40231
40598
|
var POSIX_REGEX_SOURCE = {
|
|
40599
|
+
__proto__: null,
|
|
40232
40600
|
alnum: "a-zA-Z0-9",
|
|
40233
40601
|
alpha: "a-zA-Z",
|
|
40234
40602
|
ascii: "\\x00-\\x7F",
|
|
@@ -40245,6 +40613,7 @@ var require_constants2 = __commonJS({
|
|
|
40245
40613
|
xdigit: "A-Fa-f0-9"
|
|
40246
40614
|
};
|
|
40247
40615
|
module.exports = {
|
|
40616
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
40248
40617
|
MAX_LENGTH: 1024 * 64,
|
|
40249
40618
|
POSIX_REGEX_SOURCE,
|
|
40250
40619
|
// regular expressions
|
|
@@ -40256,6 +40625,7 @@ var require_constants2 = __commonJS({
|
|
|
40256
40625
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
40257
40626
|
// Replace globs with equivalent patterns to reduce parsing time.
|
|
40258
40627
|
REPLACEMENTS: {
|
|
40628
|
+
__proto__: null,
|
|
40259
40629
|
"***": "*",
|
|
40260
40630
|
"**/**": "**",
|
|
40261
40631
|
"**/**/**": "**"
|
|
@@ -40372,9 +40742,9 @@ var require_constants2 = __commonJS({
|
|
|
40372
40742
|
}
|
|
40373
40743
|
});
|
|
40374
40744
|
|
|
40375
|
-
// ../../node_modules/.pnpm/picomatch@2.3.
|
|
40745
|
+
// ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
40376
40746
|
var require_utils5 = __commonJS({
|
|
40377
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
40747
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js"(exports) {
|
|
40378
40748
|
"use strict";
|
|
40379
40749
|
var path = __require("path");
|
|
40380
40750
|
var win32 = process.platform === "win32";
|
|
@@ -40435,9 +40805,9 @@ var require_utils5 = __commonJS({
|
|
|
40435
40805
|
}
|
|
40436
40806
|
});
|
|
40437
40807
|
|
|
40438
|
-
// ../../node_modules/.pnpm/picomatch@2.3.
|
|
40808
|
+
// ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
|
|
40439
40809
|
var require_scan = __commonJS({
|
|
40440
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
40810
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
40441
40811
|
"use strict";
|
|
40442
40812
|
var utils = require_utils5();
|
|
40443
40813
|
var {
|
|
@@ -40768,9 +41138,9 @@ var require_scan = __commonJS({
|
|
|
40768
41138
|
}
|
|
40769
41139
|
});
|
|
40770
41140
|
|
|
40771
|
-
// ../../node_modules/.pnpm/picomatch@2.3.
|
|
41141
|
+
// ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
|
|
40772
41142
|
var require_parse3 = __commonJS({
|
|
40773
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
41143
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
40774
41144
|
"use strict";
|
|
40775
41145
|
var constants = require_constants2();
|
|
40776
41146
|
var utils = require_utils5();
|
|
@@ -40797,6 +41167,213 @@ var require_parse3 = __commonJS({
|
|
|
40797
41167
|
var syntaxError = (type, char) => {
|
|
40798
41168
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
40799
41169
|
};
|
|
41170
|
+
var splitTopLevel = (input) => {
|
|
41171
|
+
const parts = [];
|
|
41172
|
+
let bracket = 0;
|
|
41173
|
+
let paren = 0;
|
|
41174
|
+
let quote = 0;
|
|
41175
|
+
let value = "";
|
|
41176
|
+
let escaped = false;
|
|
41177
|
+
for (const ch of input) {
|
|
41178
|
+
if (escaped === true) {
|
|
41179
|
+
value += ch;
|
|
41180
|
+
escaped = false;
|
|
41181
|
+
continue;
|
|
41182
|
+
}
|
|
41183
|
+
if (ch === "\\") {
|
|
41184
|
+
value += ch;
|
|
41185
|
+
escaped = true;
|
|
41186
|
+
continue;
|
|
41187
|
+
}
|
|
41188
|
+
if (ch === '"') {
|
|
41189
|
+
quote = quote === 1 ? 0 : 1;
|
|
41190
|
+
value += ch;
|
|
41191
|
+
continue;
|
|
41192
|
+
}
|
|
41193
|
+
if (quote === 0) {
|
|
41194
|
+
if (ch === "[") {
|
|
41195
|
+
bracket++;
|
|
41196
|
+
} else if (ch === "]" && bracket > 0) {
|
|
41197
|
+
bracket--;
|
|
41198
|
+
} else if (bracket === 0) {
|
|
41199
|
+
if (ch === "(") {
|
|
41200
|
+
paren++;
|
|
41201
|
+
} else if (ch === ")" && paren > 0) {
|
|
41202
|
+
paren--;
|
|
41203
|
+
} else if (ch === "|" && paren === 0) {
|
|
41204
|
+
parts.push(value);
|
|
41205
|
+
value = "";
|
|
41206
|
+
continue;
|
|
41207
|
+
}
|
|
41208
|
+
}
|
|
41209
|
+
}
|
|
41210
|
+
value += ch;
|
|
41211
|
+
}
|
|
41212
|
+
parts.push(value);
|
|
41213
|
+
return parts;
|
|
41214
|
+
};
|
|
41215
|
+
var isPlainBranch = (branch) => {
|
|
41216
|
+
let escaped = false;
|
|
41217
|
+
for (const ch of branch) {
|
|
41218
|
+
if (escaped === true) {
|
|
41219
|
+
escaped = false;
|
|
41220
|
+
continue;
|
|
41221
|
+
}
|
|
41222
|
+
if (ch === "\\") {
|
|
41223
|
+
escaped = true;
|
|
41224
|
+
continue;
|
|
41225
|
+
}
|
|
41226
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
41227
|
+
return false;
|
|
41228
|
+
}
|
|
41229
|
+
}
|
|
41230
|
+
return true;
|
|
41231
|
+
};
|
|
41232
|
+
var normalizeSimpleBranch = (branch) => {
|
|
41233
|
+
let value = branch.trim();
|
|
41234
|
+
let changed = true;
|
|
41235
|
+
while (changed === true) {
|
|
41236
|
+
changed = false;
|
|
41237
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
41238
|
+
value = value.slice(2, -1);
|
|
41239
|
+
changed = true;
|
|
41240
|
+
}
|
|
41241
|
+
}
|
|
41242
|
+
if (!isPlainBranch(value)) {
|
|
41243
|
+
return;
|
|
41244
|
+
}
|
|
41245
|
+
return value.replace(/\\(.)/g, "$1");
|
|
41246
|
+
};
|
|
41247
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
41248
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
41249
|
+
for (let i = 0; i < values.length; i++) {
|
|
41250
|
+
for (let j = i + 1; j < values.length; j++) {
|
|
41251
|
+
const a = values[i];
|
|
41252
|
+
const b = values[j];
|
|
41253
|
+
const char = a[0];
|
|
41254
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
41255
|
+
continue;
|
|
41256
|
+
}
|
|
41257
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
41258
|
+
return true;
|
|
41259
|
+
}
|
|
41260
|
+
}
|
|
41261
|
+
}
|
|
41262
|
+
return false;
|
|
41263
|
+
};
|
|
41264
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
41265
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
41266
|
+
return;
|
|
41267
|
+
}
|
|
41268
|
+
let bracket = 0;
|
|
41269
|
+
let paren = 0;
|
|
41270
|
+
let quote = 0;
|
|
41271
|
+
let escaped = false;
|
|
41272
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
41273
|
+
const ch = pattern[i];
|
|
41274
|
+
if (escaped === true) {
|
|
41275
|
+
escaped = false;
|
|
41276
|
+
continue;
|
|
41277
|
+
}
|
|
41278
|
+
if (ch === "\\") {
|
|
41279
|
+
escaped = true;
|
|
41280
|
+
continue;
|
|
41281
|
+
}
|
|
41282
|
+
if (ch === '"') {
|
|
41283
|
+
quote = quote === 1 ? 0 : 1;
|
|
41284
|
+
continue;
|
|
41285
|
+
}
|
|
41286
|
+
if (quote === 1) {
|
|
41287
|
+
continue;
|
|
41288
|
+
}
|
|
41289
|
+
if (ch === "[") {
|
|
41290
|
+
bracket++;
|
|
41291
|
+
continue;
|
|
41292
|
+
}
|
|
41293
|
+
if (ch === "]" && bracket > 0) {
|
|
41294
|
+
bracket--;
|
|
41295
|
+
continue;
|
|
41296
|
+
}
|
|
41297
|
+
if (bracket > 0) {
|
|
41298
|
+
continue;
|
|
41299
|
+
}
|
|
41300
|
+
if (ch === "(") {
|
|
41301
|
+
paren++;
|
|
41302
|
+
continue;
|
|
41303
|
+
}
|
|
41304
|
+
if (ch === ")") {
|
|
41305
|
+
paren--;
|
|
41306
|
+
if (paren === 0) {
|
|
41307
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
41308
|
+
return;
|
|
41309
|
+
}
|
|
41310
|
+
return {
|
|
41311
|
+
type: pattern[0],
|
|
41312
|
+
body: pattern.slice(2, i),
|
|
41313
|
+
end: i
|
|
41314
|
+
};
|
|
41315
|
+
}
|
|
41316
|
+
}
|
|
41317
|
+
}
|
|
41318
|
+
};
|
|
41319
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
41320
|
+
let index = 0;
|
|
41321
|
+
const chars = [];
|
|
41322
|
+
while (index < pattern.length) {
|
|
41323
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
41324
|
+
if (!match || match.type !== "*") {
|
|
41325
|
+
return;
|
|
41326
|
+
}
|
|
41327
|
+
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
41328
|
+
if (branches.length !== 1) {
|
|
41329
|
+
return;
|
|
41330
|
+
}
|
|
41331
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
41332
|
+
if (!branch || branch.length !== 1) {
|
|
41333
|
+
return;
|
|
41334
|
+
}
|
|
41335
|
+
chars.push(branch);
|
|
41336
|
+
index += match.end + 1;
|
|
41337
|
+
}
|
|
41338
|
+
if (chars.length < 1) {
|
|
41339
|
+
return;
|
|
41340
|
+
}
|
|
41341
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
41342
|
+
return `${source}*`;
|
|
41343
|
+
};
|
|
41344
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
41345
|
+
let depth = 0;
|
|
41346
|
+
let value = pattern.trim();
|
|
41347
|
+
let match = parseRepeatedExtglob(value);
|
|
41348
|
+
while (match) {
|
|
41349
|
+
depth++;
|
|
41350
|
+
value = match.body.trim();
|
|
41351
|
+
match = parseRepeatedExtglob(value);
|
|
41352
|
+
}
|
|
41353
|
+
return depth;
|
|
41354
|
+
};
|
|
41355
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
41356
|
+
if (options.maxExtglobRecursion === false) {
|
|
41357
|
+
return { risky: false };
|
|
41358
|
+
}
|
|
41359
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
41360
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
41361
|
+
if (branches.length > 1) {
|
|
41362
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
41363
|
+
return { risky: true };
|
|
41364
|
+
}
|
|
41365
|
+
}
|
|
41366
|
+
for (const branch of branches) {
|
|
41367
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
41368
|
+
if (safeOutput) {
|
|
41369
|
+
return { risky: true, safeOutput };
|
|
41370
|
+
}
|
|
41371
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
41372
|
+
return { risky: true };
|
|
41373
|
+
}
|
|
41374
|
+
}
|
|
41375
|
+
return { risky: false };
|
|
41376
|
+
};
|
|
40800
41377
|
var parse3 = (input, options) => {
|
|
40801
41378
|
if (typeof input !== "string") {
|
|
40802
41379
|
throw new TypeError("Expected a string");
|
|
@@ -40929,6 +41506,8 @@ var require_parse3 = __commonJS({
|
|
|
40929
41506
|
token.prev = prev;
|
|
40930
41507
|
token.parens = state.parens;
|
|
40931
41508
|
token.output = state.output;
|
|
41509
|
+
token.startIndex = state.index;
|
|
41510
|
+
token.tokensIndex = tokens.length;
|
|
40932
41511
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
40933
41512
|
increment("parens");
|
|
40934
41513
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -40936,6 +41515,26 @@ var require_parse3 = __commonJS({
|
|
|
40936
41515
|
extglobs.push(token);
|
|
40937
41516
|
};
|
|
40938
41517
|
const extglobClose = (token) => {
|
|
41518
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
41519
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
41520
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
41521
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
41522
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
41523
|
+
const open2 = tokens[token.tokensIndex];
|
|
41524
|
+
open2.type = "text";
|
|
41525
|
+
open2.value = literal;
|
|
41526
|
+
open2.output = safeOutput || utils.escapeRegex(literal);
|
|
41527
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
41528
|
+
tokens[i].value = "";
|
|
41529
|
+
tokens[i].output = "";
|
|
41530
|
+
delete tokens[i].suffix;
|
|
41531
|
+
}
|
|
41532
|
+
state.output = token.output + open2.output;
|
|
41533
|
+
state.backtrack = true;
|
|
41534
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
41535
|
+
decrement("parens");
|
|
41536
|
+
return;
|
|
41537
|
+
}
|
|
40939
41538
|
let output = token.close + (opts.capture ? ")" : "");
|
|
40940
41539
|
let rest;
|
|
40941
41540
|
if (token.type === "negate") {
|
|
@@ -41549,9 +42148,9 @@ var require_parse3 = __commonJS({
|
|
|
41549
42148
|
}
|
|
41550
42149
|
});
|
|
41551
42150
|
|
|
41552
|
-
// ../../node_modules/.pnpm/picomatch@2.3.
|
|
42151
|
+
// ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
41553
42152
|
var require_picomatch = __commonJS({
|
|
41554
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
42153
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
41555
42154
|
"use strict";
|
|
41556
42155
|
var path = __require("path");
|
|
41557
42156
|
var scan = require_scan();
|
|
@@ -41693,9 +42292,9 @@ var require_picomatch = __commonJS({
|
|
|
41693
42292
|
}
|
|
41694
42293
|
});
|
|
41695
42294
|
|
|
41696
|
-
// ../../node_modules/.pnpm/picomatch@2.3.
|
|
42295
|
+
// ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/index.js
|
|
41697
42296
|
var require_picomatch2 = __commonJS({
|
|
41698
|
-
"../../node_modules/.pnpm/picomatch@2.3.
|
|
42297
|
+
"../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/index.js"(exports, module) {
|
|
41699
42298
|
"use strict";
|
|
41700
42299
|
module.exports = require_picomatch();
|
|
41701
42300
|
}
|
|
@@ -42880,9 +43479,9 @@ var require_reusify = __commonJS({
|
|
|
42880
43479
|
}
|
|
42881
43480
|
});
|
|
42882
43481
|
|
|
42883
|
-
// ../../node_modules/.pnpm/fastq@1.
|
|
43482
|
+
// ../../node_modules/.pnpm/fastq@1.20.1/node_modules/fastq/queue.js
|
|
42884
43483
|
var require_queue = __commonJS({
|
|
42885
|
-
"../../node_modules/.pnpm/fastq@1.
|
|
43484
|
+
"../../node_modules/.pnpm/fastq@1.20.1/node_modules/fastq/queue.js"(exports, module) {
|
|
42886
43485
|
"use strict";
|
|
42887
43486
|
var reusify = require_reusify();
|
|
42888
43487
|
function fastqueue(context, worker, _concurrency) {
|
|
@@ -42929,7 +43528,8 @@ var require_queue = __commonJS({
|
|
|
42929
43528
|
empty: noop,
|
|
42930
43529
|
kill,
|
|
42931
43530
|
killAndDrain,
|
|
42932
|
-
error
|
|
43531
|
+
error,
|
|
43532
|
+
abort
|
|
42933
43533
|
};
|
|
42934
43534
|
return self2;
|
|
42935
43535
|
function running() {
|
|
@@ -43049,6 +43649,28 @@ var require_queue = __commonJS({
|
|
|
43049
43649
|
self2.drain();
|
|
43050
43650
|
self2.drain = noop;
|
|
43051
43651
|
}
|
|
43652
|
+
function abort() {
|
|
43653
|
+
var current = queueHead;
|
|
43654
|
+
queueHead = null;
|
|
43655
|
+
queueTail = null;
|
|
43656
|
+
while (current) {
|
|
43657
|
+
var next = current.next;
|
|
43658
|
+
var callback = current.callback;
|
|
43659
|
+
var errorHandler2 = current.errorHandler;
|
|
43660
|
+
var val = current.value;
|
|
43661
|
+
var context2 = current.context;
|
|
43662
|
+
current.value = null;
|
|
43663
|
+
current.callback = noop;
|
|
43664
|
+
current.errorHandler = null;
|
|
43665
|
+
if (errorHandler2) {
|
|
43666
|
+
errorHandler2(new Error("abort"), val);
|
|
43667
|
+
}
|
|
43668
|
+
callback.call(context2, new Error("abort"));
|
|
43669
|
+
current.release(current);
|
|
43670
|
+
current = next;
|
|
43671
|
+
}
|
|
43672
|
+
self2.drain = noop;
|
|
43673
|
+
}
|
|
43052
43674
|
function error(handler) {
|
|
43053
43675
|
errorHandler = handler;
|
|
43054
43676
|
}
|
|
@@ -43095,42 +43717,42 @@ var require_queue = __commonJS({
|
|
|
43095
43717
|
queue.drained = drained;
|
|
43096
43718
|
return queue;
|
|
43097
43719
|
function push(value) {
|
|
43098
|
-
var p = new Promise(function(
|
|
43720
|
+
var p = new Promise(function(resolve5, reject) {
|
|
43099
43721
|
pushCb(value, function(err, result) {
|
|
43100
43722
|
if (err) {
|
|
43101
43723
|
reject(err);
|
|
43102
43724
|
return;
|
|
43103
43725
|
}
|
|
43104
|
-
|
|
43726
|
+
resolve5(result);
|
|
43105
43727
|
});
|
|
43106
43728
|
});
|
|
43107
43729
|
p.catch(noop);
|
|
43108
43730
|
return p;
|
|
43109
43731
|
}
|
|
43110
43732
|
function unshift(value) {
|
|
43111
|
-
var p = new Promise(function(
|
|
43733
|
+
var p = new Promise(function(resolve5, reject) {
|
|
43112
43734
|
unshiftCb(value, function(err, result) {
|
|
43113
43735
|
if (err) {
|
|
43114
43736
|
reject(err);
|
|
43115
43737
|
return;
|
|
43116
43738
|
}
|
|
43117
|
-
|
|
43739
|
+
resolve5(result);
|
|
43118
43740
|
});
|
|
43119
43741
|
});
|
|
43120
43742
|
p.catch(noop);
|
|
43121
43743
|
return p;
|
|
43122
43744
|
}
|
|
43123
43745
|
function drained() {
|
|
43124
|
-
var p = new Promise(function(
|
|
43746
|
+
var p = new Promise(function(resolve5) {
|
|
43125
43747
|
process.nextTick(function() {
|
|
43126
43748
|
if (queue.idle()) {
|
|
43127
|
-
|
|
43749
|
+
resolve5();
|
|
43128
43750
|
} else {
|
|
43129
43751
|
var previousDrain = queue.drain;
|
|
43130
43752
|
queue.drain = function() {
|
|
43131
43753
|
if (typeof previousDrain === "function")
|
|
43132
43754
|
previousDrain();
|
|
43133
|
-
|
|
43755
|
+
resolve5();
|
|
43134
43756
|
queue.drain = previousDrain;
|
|
43135
43757
|
};
|
|
43136
43758
|
}
|
|
@@ -43616,9 +44238,9 @@ var require_stream3 = __commonJS({
|
|
|
43616
44238
|
});
|
|
43617
44239
|
}
|
|
43618
44240
|
_getStat(filepath) {
|
|
43619
|
-
return new Promise((
|
|
44241
|
+
return new Promise((resolve5, reject) => {
|
|
43620
44242
|
this._stat(filepath, this._fsStatSettings, (error, stats) => {
|
|
43621
|
-
return error === null ?
|
|
44243
|
+
return error === null ? resolve5(stats) : reject(error);
|
|
43622
44244
|
});
|
|
43623
44245
|
});
|
|
43624
44246
|
}
|
|
@@ -43642,10 +44264,10 @@ var require_async6 = __commonJS({
|
|
|
43642
44264
|
this._readerStream = new stream_1.default(this._settings);
|
|
43643
44265
|
}
|
|
43644
44266
|
dynamic(root, options) {
|
|
43645
|
-
return new Promise((
|
|
44267
|
+
return new Promise((resolve5, reject) => {
|
|
43646
44268
|
this._walkAsync(root, options, (error, entries) => {
|
|
43647
44269
|
if (error === null) {
|
|
43648
|
-
|
|
44270
|
+
resolve5(entries);
|
|
43649
44271
|
} else {
|
|
43650
44272
|
reject(error);
|
|
43651
44273
|
}
|
|
@@ -43655,10 +44277,10 @@ var require_async6 = __commonJS({
|
|
|
43655
44277
|
async static(patterns, options) {
|
|
43656
44278
|
const entries = [];
|
|
43657
44279
|
const stream = this._readerStream.static(patterns, options);
|
|
43658
|
-
return new Promise((
|
|
44280
|
+
return new Promise((resolve5, reject) => {
|
|
43659
44281
|
stream.once("error", reject);
|
|
43660
44282
|
stream.on("data", (entry) => entries.push(entry));
|
|
43661
|
-
stream.once("end", () =>
|
|
44283
|
+
stream.once("end", () => resolve5(entries));
|
|
43662
44284
|
});
|
|
43663
44285
|
}
|
|
43664
44286
|
};
|
|
@@ -44315,9 +44937,9 @@ var require_out4 = __commonJS({
|
|
|
44315
44937
|
}
|
|
44316
44938
|
});
|
|
44317
44939
|
|
|
44318
|
-
// ../../node_modules/.pnpm/@vercel+microfrontends@1.2.
|
|
44940
|
+
// ../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@opentelemetry+api@1.9.0_react-dom@18.3.1_reac_b13a023d57c40c23bf6db80d3c0ecc70/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs
|
|
44319
44941
|
var require_utils8 = __commonJS({
|
|
44320
|
-
"../../node_modules/.pnpm/@vercel+microfrontends@1.2.
|
|
44942
|
+
"../../node_modules/.pnpm/@vercel+microfrontends@1.2.2_next@16.2.6_@opentelemetry+api@1.9.0_react-dom@18.3.1_reac_b13a023d57c40c23bf6db80d3c0ecc70/node_modules/@vercel/microfrontends/dist/microfrontends/utils.cjs"(exports, module) {
|
|
44321
44943
|
"use strict";
|
|
44322
44944
|
var __create = Object.create;
|
|
44323
44945
|
var __defProp = Object.defineProperty;
|
|
@@ -45557,7 +46179,7 @@ var require_lib8 = __commonJS({
|
|
|
45557
46179
|
"../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js"(exports, module) {
|
|
45558
46180
|
var retrier = require_retry2();
|
|
45559
46181
|
function retry(fn, opts) {
|
|
45560
|
-
function run(
|
|
46182
|
+
function run(resolve5, reject) {
|
|
45561
46183
|
var options = opts || {};
|
|
45562
46184
|
var op = retrier.operation(options);
|
|
45563
46185
|
function bail(err) {
|
|
@@ -45582,7 +46204,7 @@ var require_lib8 = __commonJS({
|
|
|
45582
46204
|
onError(err, num);
|
|
45583
46205
|
return;
|
|
45584
46206
|
}
|
|
45585
|
-
Promise.resolve(val).then(
|
|
46207
|
+
Promise.resolve(val).then(resolve5).catch(function catchIt(err) {
|
|
45586
46208
|
onError(err, num);
|
|
45587
46209
|
});
|
|
45588
46210
|
}
|
|
@@ -48389,23 +49011,1441 @@ var require_immutable = __commonJS({
|
|
|
48389
49011
|
}
|
|
48390
49012
|
});
|
|
48391
49013
|
|
|
48392
|
-
// ../../node_modules/.pnpm/
|
|
48393
|
-
var
|
|
48394
|
-
"../../node_modules/.pnpm/
|
|
48395
|
-
|
|
48396
|
-
|
|
48397
|
-
|
|
48398
|
-
|
|
49014
|
+
// ../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js
|
|
49015
|
+
var require_isarray2 = __commonJS({
|
|
49016
|
+
"../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js"(exports, module) {
|
|
49017
|
+
var toString = {}.toString;
|
|
49018
|
+
module.exports = Array.isArray || function(arr) {
|
|
49019
|
+
return toString.call(arr) == "[object Array]";
|
|
49020
|
+
};
|
|
49021
|
+
}
|
|
49022
|
+
});
|
|
49023
|
+
|
|
49024
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
49025
|
+
var require_type3 = __commonJS({
|
|
49026
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module) {
|
|
49027
|
+
"use strict";
|
|
49028
|
+
module.exports = TypeError;
|
|
49029
|
+
}
|
|
49030
|
+
});
|
|
49031
|
+
|
|
49032
|
+
// ../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js
|
|
49033
|
+
var require_es_object_atoms = __commonJS({
|
|
49034
|
+
"../../node_modules/.pnpm/es-object-atoms@1.1.2/node_modules/es-object-atoms/index.js"(exports, module) {
|
|
49035
|
+
"use strict";
|
|
49036
|
+
module.exports = Object;
|
|
49037
|
+
}
|
|
49038
|
+
});
|
|
49039
|
+
|
|
49040
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
|
|
49041
|
+
var require_es_errors = __commonJS({
|
|
49042
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
|
|
49043
|
+
"use strict";
|
|
49044
|
+
module.exports = Error;
|
|
49045
|
+
}
|
|
49046
|
+
});
|
|
49047
|
+
|
|
49048
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
|
|
49049
|
+
var require_eval = __commonJS({
|
|
49050
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
|
|
49051
|
+
"use strict";
|
|
49052
|
+
module.exports = EvalError;
|
|
49053
|
+
}
|
|
49054
|
+
});
|
|
49055
|
+
|
|
49056
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
|
|
49057
|
+
var require_range = __commonJS({
|
|
49058
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
|
|
49059
|
+
"use strict";
|
|
49060
|
+
module.exports = RangeError;
|
|
49061
|
+
}
|
|
49062
|
+
});
|
|
49063
|
+
|
|
49064
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
|
|
49065
|
+
var require_ref2 = __commonJS({
|
|
49066
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
|
|
49067
|
+
"use strict";
|
|
49068
|
+
module.exports = ReferenceError;
|
|
49069
|
+
}
|
|
49070
|
+
});
|
|
49071
|
+
|
|
49072
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
|
|
49073
|
+
var require_syntax = __commonJS({
|
|
49074
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
|
|
49075
|
+
"use strict";
|
|
49076
|
+
module.exports = SyntaxError;
|
|
49077
|
+
}
|
|
49078
|
+
});
|
|
49079
|
+
|
|
49080
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
|
|
49081
|
+
var require_uri = __commonJS({
|
|
49082
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
|
|
49083
|
+
"use strict";
|
|
49084
|
+
module.exports = URIError;
|
|
49085
|
+
}
|
|
49086
|
+
});
|
|
49087
|
+
|
|
49088
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
|
|
49089
|
+
var require_abs = __commonJS({
|
|
49090
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module) {
|
|
49091
|
+
"use strict";
|
|
49092
|
+
module.exports = Math.abs;
|
|
49093
|
+
}
|
|
49094
|
+
});
|
|
49095
|
+
|
|
49096
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
|
|
49097
|
+
var require_floor = __commonJS({
|
|
49098
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module) {
|
|
49099
|
+
"use strict";
|
|
49100
|
+
module.exports = Math.floor;
|
|
49101
|
+
}
|
|
49102
|
+
});
|
|
49103
|
+
|
|
49104
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
|
|
49105
|
+
var require_max = __commonJS({
|
|
49106
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module) {
|
|
49107
|
+
"use strict";
|
|
49108
|
+
module.exports = Math.max;
|
|
49109
|
+
}
|
|
49110
|
+
});
|
|
49111
|
+
|
|
49112
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
|
|
49113
|
+
var require_min = __commonJS({
|
|
49114
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module) {
|
|
49115
|
+
"use strict";
|
|
49116
|
+
module.exports = Math.min;
|
|
49117
|
+
}
|
|
49118
|
+
});
|
|
49119
|
+
|
|
49120
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
|
|
49121
|
+
var require_pow = __commonJS({
|
|
49122
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module) {
|
|
49123
|
+
"use strict";
|
|
49124
|
+
module.exports = Math.pow;
|
|
49125
|
+
}
|
|
49126
|
+
});
|
|
49127
|
+
|
|
49128
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
|
|
49129
|
+
var require_round = __commonJS({
|
|
49130
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module) {
|
|
49131
|
+
"use strict";
|
|
49132
|
+
module.exports = Math.round;
|
|
49133
|
+
}
|
|
49134
|
+
});
|
|
49135
|
+
|
|
49136
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
|
|
49137
|
+
var require_isNaN = __commonJS({
|
|
49138
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module) {
|
|
49139
|
+
"use strict";
|
|
49140
|
+
module.exports = Number.isNaN || function isNaN2(a) {
|
|
49141
|
+
return a !== a;
|
|
49142
|
+
};
|
|
49143
|
+
}
|
|
49144
|
+
});
|
|
49145
|
+
|
|
49146
|
+
// ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
|
|
49147
|
+
var require_sign = __commonJS({
|
|
49148
|
+
"../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module) {
|
|
49149
|
+
"use strict";
|
|
49150
|
+
var $isNaN = require_isNaN();
|
|
49151
|
+
module.exports = function sign(number) {
|
|
49152
|
+
if ($isNaN(number) || number === 0) {
|
|
49153
|
+
return number;
|
|
49154
|
+
}
|
|
49155
|
+
return number < 0 ? -1 : 1;
|
|
49156
|
+
};
|
|
49157
|
+
}
|
|
49158
|
+
});
|
|
49159
|
+
|
|
49160
|
+
// ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
|
|
49161
|
+
var require_gOPD = __commonJS({
|
|
49162
|
+
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module) {
|
|
49163
|
+
"use strict";
|
|
49164
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
49165
|
+
}
|
|
49166
|
+
});
|
|
49167
|
+
|
|
49168
|
+
// ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
|
|
49169
|
+
var require_gopd = __commonJS({
|
|
49170
|
+
"../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module) {
|
|
49171
|
+
"use strict";
|
|
49172
|
+
var $gOPD = require_gOPD();
|
|
49173
|
+
if ($gOPD) {
|
|
49174
|
+
try {
|
|
49175
|
+
$gOPD([], "length");
|
|
49176
|
+
} catch (e) {
|
|
49177
|
+
$gOPD = null;
|
|
49178
|
+
}
|
|
49179
|
+
}
|
|
49180
|
+
module.exports = $gOPD;
|
|
49181
|
+
}
|
|
49182
|
+
});
|
|
49183
|
+
|
|
49184
|
+
// ../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
|
|
49185
|
+
var require_es_define_property = __commonJS({
|
|
49186
|
+
"../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module) {
|
|
49187
|
+
"use strict";
|
|
49188
|
+
var $defineProperty = Object.defineProperty || false;
|
|
49189
|
+
if ($defineProperty) {
|
|
49190
|
+
try {
|
|
49191
|
+
$defineProperty({}, "a", { value: 1 });
|
|
49192
|
+
} catch (e) {
|
|
49193
|
+
$defineProperty = false;
|
|
49194
|
+
}
|
|
49195
|
+
}
|
|
49196
|
+
module.exports = $defineProperty;
|
|
49197
|
+
}
|
|
49198
|
+
});
|
|
49199
|
+
|
|
49200
|
+
// ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
|
|
49201
|
+
var require_shams = __commonJS({
|
|
49202
|
+
"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module) {
|
|
49203
|
+
"use strict";
|
|
49204
|
+
module.exports = function hasSymbols() {
|
|
49205
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
49206
|
+
return false;
|
|
49207
|
+
}
|
|
49208
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
49209
|
+
return true;
|
|
49210
|
+
}
|
|
49211
|
+
var obj = {};
|
|
49212
|
+
var sym = Symbol("test");
|
|
49213
|
+
var symObj = Object(sym);
|
|
49214
|
+
if (typeof sym === "string") {
|
|
49215
|
+
return false;
|
|
49216
|
+
}
|
|
49217
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
49218
|
+
return false;
|
|
49219
|
+
}
|
|
49220
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
49221
|
+
return false;
|
|
49222
|
+
}
|
|
49223
|
+
var symVal = 42;
|
|
49224
|
+
obj[sym] = symVal;
|
|
49225
|
+
for (var _ in obj) {
|
|
49226
|
+
return false;
|
|
49227
|
+
}
|
|
49228
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
49229
|
+
return false;
|
|
49230
|
+
}
|
|
49231
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
49232
|
+
return false;
|
|
49233
|
+
}
|
|
49234
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
49235
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
49236
|
+
return false;
|
|
49237
|
+
}
|
|
49238
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
49239
|
+
return false;
|
|
49240
|
+
}
|
|
49241
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
49242
|
+
var descriptor = (
|
|
49243
|
+
/** @type {PropertyDescriptor} */
|
|
49244
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
49245
|
+
);
|
|
49246
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
49247
|
+
return false;
|
|
49248
|
+
}
|
|
49249
|
+
}
|
|
49250
|
+
return true;
|
|
49251
|
+
};
|
|
49252
|
+
}
|
|
49253
|
+
});
|
|
49254
|
+
|
|
49255
|
+
// ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
|
|
49256
|
+
var require_has_symbols = __commonJS({
|
|
49257
|
+
"../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module) {
|
|
49258
|
+
"use strict";
|
|
49259
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
49260
|
+
var hasSymbolSham = require_shams();
|
|
49261
|
+
module.exports = function hasNativeSymbols() {
|
|
49262
|
+
if (typeof origSymbol !== "function") {
|
|
49263
|
+
return false;
|
|
49264
|
+
}
|
|
49265
|
+
if (typeof Symbol !== "function") {
|
|
49266
|
+
return false;
|
|
49267
|
+
}
|
|
49268
|
+
if (typeof origSymbol("foo") !== "symbol") {
|
|
49269
|
+
return false;
|
|
49270
|
+
}
|
|
49271
|
+
if (typeof Symbol("bar") !== "symbol") {
|
|
49272
|
+
return false;
|
|
49273
|
+
}
|
|
49274
|
+
return hasSymbolSham();
|
|
49275
|
+
};
|
|
49276
|
+
}
|
|
49277
|
+
});
|
|
49278
|
+
|
|
49279
|
+
// ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
49280
|
+
var require_Reflect_getPrototypeOf = __commonJS({
|
|
49281
|
+
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
|
|
49282
|
+
"use strict";
|
|
49283
|
+
module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
49284
|
+
}
|
|
49285
|
+
});
|
|
49286
|
+
|
|
49287
|
+
// ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
|
|
49288
|
+
var require_Object_getPrototypeOf = __commonJS({
|
|
49289
|
+
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
|
|
49290
|
+
"use strict";
|
|
49291
|
+
var $Object = require_es_object_atoms();
|
|
49292
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
49293
|
+
}
|
|
49294
|
+
});
|
|
49295
|
+
|
|
49296
|
+
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
|
|
49297
|
+
var require_implementation = __commonJS({
|
|
49298
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
|
|
49299
|
+
"use strict";
|
|
49300
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
49301
|
+
var toStr = Object.prototype.toString;
|
|
49302
|
+
var max = Math.max;
|
|
49303
|
+
var funcType = "[object Function]";
|
|
49304
|
+
var concatty = function concatty2(a, b) {
|
|
49305
|
+
var arr = [];
|
|
49306
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
49307
|
+
arr[i] = a[i];
|
|
49308
|
+
}
|
|
49309
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
49310
|
+
arr[j + a.length] = b[j];
|
|
49311
|
+
}
|
|
49312
|
+
return arr;
|
|
49313
|
+
};
|
|
49314
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
49315
|
+
var arr = [];
|
|
49316
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
49317
|
+
arr[j] = arrLike[i];
|
|
49318
|
+
}
|
|
49319
|
+
return arr;
|
|
49320
|
+
};
|
|
49321
|
+
var joiny = function(arr, joiner) {
|
|
49322
|
+
var str = "";
|
|
49323
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
49324
|
+
str += arr[i];
|
|
49325
|
+
if (i + 1 < arr.length) {
|
|
49326
|
+
str += joiner;
|
|
49327
|
+
}
|
|
49328
|
+
}
|
|
49329
|
+
return str;
|
|
49330
|
+
};
|
|
49331
|
+
module.exports = function bind(that) {
|
|
49332
|
+
var target = this;
|
|
49333
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
49334
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
49335
|
+
}
|
|
49336
|
+
var args = slicy(arguments, 1);
|
|
49337
|
+
var bound;
|
|
49338
|
+
var binder = function() {
|
|
49339
|
+
if (this instanceof bound) {
|
|
49340
|
+
var result = target.apply(
|
|
49341
|
+
this,
|
|
49342
|
+
concatty(args, arguments)
|
|
49343
|
+
);
|
|
49344
|
+
if (Object(result) === result) {
|
|
49345
|
+
return result;
|
|
49346
|
+
}
|
|
49347
|
+
return this;
|
|
49348
|
+
}
|
|
49349
|
+
return target.apply(
|
|
49350
|
+
that,
|
|
49351
|
+
concatty(args, arguments)
|
|
49352
|
+
);
|
|
49353
|
+
};
|
|
49354
|
+
var boundLength = max(0, target.length - args.length);
|
|
49355
|
+
var boundArgs = [];
|
|
49356
|
+
for (var i = 0; i < boundLength; i++) {
|
|
49357
|
+
boundArgs[i] = "$" + i;
|
|
49358
|
+
}
|
|
49359
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
49360
|
+
if (target.prototype) {
|
|
49361
|
+
var Empty = function Empty2() {
|
|
49362
|
+
};
|
|
49363
|
+
Empty.prototype = target.prototype;
|
|
49364
|
+
bound.prototype = new Empty();
|
|
49365
|
+
Empty.prototype = null;
|
|
49366
|
+
}
|
|
49367
|
+
return bound;
|
|
49368
|
+
};
|
|
49369
|
+
}
|
|
49370
|
+
});
|
|
49371
|
+
|
|
49372
|
+
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
|
|
49373
|
+
var require_function_bind = __commonJS({
|
|
49374
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
|
|
49375
|
+
"use strict";
|
|
49376
|
+
var implementation = require_implementation();
|
|
49377
|
+
module.exports = Function.prototype.bind || implementation;
|
|
49378
|
+
}
|
|
49379
|
+
});
|
|
49380
|
+
|
|
49381
|
+
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
|
|
49382
|
+
var require_functionCall = __commonJS({
|
|
49383
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
|
|
49384
|
+
"use strict";
|
|
49385
|
+
module.exports = Function.prototype.call;
|
|
49386
|
+
}
|
|
49387
|
+
});
|
|
49388
|
+
|
|
49389
|
+
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
|
|
49390
|
+
var require_functionApply = __commonJS({
|
|
49391
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
|
|
49392
|
+
"use strict";
|
|
49393
|
+
module.exports = Function.prototype.apply;
|
|
49394
|
+
}
|
|
49395
|
+
});
|
|
49396
|
+
|
|
49397
|
+
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
|
|
49398
|
+
var require_reflectApply = __commonJS({
|
|
49399
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
|
|
49400
|
+
"use strict";
|
|
49401
|
+
module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
49402
|
+
}
|
|
49403
|
+
});
|
|
49404
|
+
|
|
49405
|
+
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
|
|
49406
|
+
var require_actualApply = __commonJS({
|
|
49407
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
|
|
49408
|
+
"use strict";
|
|
49409
|
+
var bind = require_function_bind();
|
|
49410
|
+
var $apply = require_functionApply();
|
|
49411
|
+
var $call = require_functionCall();
|
|
49412
|
+
var $reflectApply = require_reflectApply();
|
|
49413
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
49414
|
+
}
|
|
49415
|
+
});
|
|
49416
|
+
|
|
49417
|
+
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
|
|
49418
|
+
var require_call_bind_apply_helpers = __commonJS({
|
|
49419
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module) {
|
|
49420
|
+
"use strict";
|
|
49421
|
+
var bind = require_function_bind();
|
|
49422
|
+
var $TypeError = require_type3();
|
|
49423
|
+
var $call = require_functionCall();
|
|
49424
|
+
var $actualApply = require_actualApply();
|
|
49425
|
+
module.exports = function callBindBasic(args) {
|
|
49426
|
+
if (args.length < 1 || typeof args[0] !== "function") {
|
|
49427
|
+
throw new $TypeError("a function is required");
|
|
49428
|
+
}
|
|
49429
|
+
return $actualApply(bind, $call, args);
|
|
49430
|
+
};
|
|
49431
|
+
}
|
|
49432
|
+
});
|
|
49433
|
+
|
|
49434
|
+
// ../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
|
|
49435
|
+
var require_get = __commonJS({
|
|
49436
|
+
"../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module) {
|
|
49437
|
+
"use strict";
|
|
49438
|
+
var callBind = require_call_bind_apply_helpers();
|
|
49439
|
+
var gOPD = require_gopd();
|
|
49440
|
+
var hasProtoAccessor;
|
|
49441
|
+
try {
|
|
49442
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
49443
|
+
[].__proto__ === Array.prototype;
|
|
49444
|
+
} catch (e) {
|
|
49445
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
49446
|
+
throw e;
|
|
49447
|
+
}
|
|
49448
|
+
}
|
|
49449
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(
|
|
49450
|
+
Object.prototype,
|
|
49451
|
+
/** @type {keyof typeof Object.prototype} */
|
|
49452
|
+
"__proto__"
|
|
49453
|
+
);
|
|
49454
|
+
var $Object = Object;
|
|
49455
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
49456
|
+
module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
49457
|
+
/** @type {import('./get')} */
|
|
49458
|
+
function getDunder(value) {
|
|
49459
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
49460
|
+
}
|
|
49461
|
+
) : false;
|
|
49462
|
+
}
|
|
49463
|
+
});
|
|
49464
|
+
|
|
49465
|
+
// ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
|
|
49466
|
+
var require_get_proto = __commonJS({
|
|
49467
|
+
"../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module) {
|
|
49468
|
+
"use strict";
|
|
49469
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
49470
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
49471
|
+
var getDunderProto = require_get();
|
|
49472
|
+
module.exports = reflectGetProto ? function getProto(O) {
|
|
49473
|
+
return reflectGetProto(O);
|
|
49474
|
+
} : originalGetProto ? function getProto(O) {
|
|
49475
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
49476
|
+
throw new TypeError("getProto: not an object");
|
|
49477
|
+
}
|
|
49478
|
+
return originalGetProto(O);
|
|
49479
|
+
} : getDunderProto ? function getProto(O) {
|
|
49480
|
+
return getDunderProto(O);
|
|
49481
|
+
} : null;
|
|
49482
|
+
}
|
|
49483
|
+
});
|
|
49484
|
+
|
|
49485
|
+
// ../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js
|
|
49486
|
+
var require_hasown = __commonJS({
|
|
49487
|
+
"../../node_modules/.pnpm/hasown@2.0.4/node_modules/hasown/index.js"(exports, module) {
|
|
49488
|
+
"use strict";
|
|
49489
|
+
var call = Function.prototype.call;
|
|
49490
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
49491
|
+
var bind = require_function_bind();
|
|
49492
|
+
module.exports = bind.call(call, $hasOwn);
|
|
49493
|
+
}
|
|
49494
|
+
});
|
|
49495
|
+
|
|
49496
|
+
// ../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
|
|
49497
|
+
var require_get_intrinsic = __commonJS({
|
|
49498
|
+
"../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
49499
|
+
"use strict";
|
|
49500
|
+
var undefined2;
|
|
49501
|
+
var $Object = require_es_object_atoms();
|
|
49502
|
+
var $Error = require_es_errors();
|
|
49503
|
+
var $EvalError = require_eval();
|
|
49504
|
+
var $RangeError = require_range();
|
|
49505
|
+
var $ReferenceError = require_ref2();
|
|
49506
|
+
var $SyntaxError = require_syntax();
|
|
49507
|
+
var $TypeError = require_type3();
|
|
49508
|
+
var $URIError = require_uri();
|
|
49509
|
+
var abs = require_abs();
|
|
49510
|
+
var floor = require_floor();
|
|
49511
|
+
var max = require_max();
|
|
49512
|
+
var min = require_min();
|
|
49513
|
+
var pow = require_pow();
|
|
49514
|
+
var round = require_round();
|
|
49515
|
+
var sign = require_sign();
|
|
49516
|
+
var $Function = Function;
|
|
49517
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
49518
|
+
try {
|
|
49519
|
+
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
49520
|
+
} catch (e) {
|
|
49521
|
+
}
|
|
49522
|
+
};
|
|
49523
|
+
var $gOPD = require_gopd();
|
|
49524
|
+
var $defineProperty = require_es_define_property();
|
|
49525
|
+
var throwTypeError = function() {
|
|
49526
|
+
throw new $TypeError();
|
|
49527
|
+
};
|
|
49528
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
49529
|
+
try {
|
|
49530
|
+
arguments.callee;
|
|
49531
|
+
return throwTypeError;
|
|
49532
|
+
} catch (calleeThrows) {
|
|
49533
|
+
try {
|
|
49534
|
+
return $gOPD(arguments, "callee").get;
|
|
49535
|
+
} catch (gOPDthrows) {
|
|
49536
|
+
return throwTypeError;
|
|
49537
|
+
}
|
|
49538
|
+
}
|
|
49539
|
+
}() : throwTypeError;
|
|
49540
|
+
var hasSymbols = require_has_symbols()();
|
|
49541
|
+
var getProto = require_get_proto();
|
|
49542
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
49543
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
49544
|
+
var $apply = require_functionApply();
|
|
49545
|
+
var $call = require_functionCall();
|
|
49546
|
+
var needsEval = {};
|
|
49547
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
49548
|
+
var INTRINSICS = {
|
|
49549
|
+
__proto__: null,
|
|
49550
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
49551
|
+
"%Array%": Array,
|
|
49552
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
49553
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
49554
|
+
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
49555
|
+
"%AsyncFunction%": needsEval,
|
|
49556
|
+
"%AsyncGenerator%": needsEval,
|
|
49557
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
49558
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
49559
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
49560
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
49561
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
49562
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
49563
|
+
"%Boolean%": Boolean,
|
|
49564
|
+
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
49565
|
+
"%Date%": Date,
|
|
49566
|
+
"%decodeURI%": decodeURI,
|
|
49567
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
49568
|
+
"%encodeURI%": encodeURI,
|
|
49569
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
49570
|
+
"%Error%": $Error,
|
|
49571
|
+
"%eval%": eval,
|
|
49572
|
+
// eslint-disable-line no-eval
|
|
49573
|
+
"%EvalError%": $EvalError,
|
|
49574
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
|
|
49575
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
49576
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
49577
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
49578
|
+
"%Function%": $Function,
|
|
49579
|
+
"%GeneratorFunction%": needsEval,
|
|
49580
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
49581
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
49582
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
49583
|
+
"%isFinite%": isFinite,
|
|
49584
|
+
"%isNaN%": isNaN,
|
|
49585
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
49586
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
49587
|
+
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
49588
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
49589
|
+
"%Math%": Math,
|
|
49590
|
+
"%Number%": Number,
|
|
49591
|
+
"%Object%": $Object,
|
|
49592
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
49593
|
+
"%parseFloat%": parseFloat,
|
|
49594
|
+
"%parseInt%": parseInt,
|
|
49595
|
+
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
49596
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
49597
|
+
"%RangeError%": $RangeError,
|
|
49598
|
+
"%ReferenceError%": $ReferenceError,
|
|
49599
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
49600
|
+
"%RegExp%": RegExp,
|
|
49601
|
+
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
49602
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
49603
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
49604
|
+
"%String%": String,
|
|
49605
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
49606
|
+
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
49607
|
+
"%SyntaxError%": $SyntaxError,
|
|
49608
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
49609
|
+
"%TypedArray%": TypedArray,
|
|
49610
|
+
"%TypeError%": $TypeError,
|
|
49611
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
49612
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
49613
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
49614
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
49615
|
+
"%URIError%": $URIError,
|
|
49616
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
49617
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
49618
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
|
|
49619
|
+
"%Function.prototype.call%": $call,
|
|
49620
|
+
"%Function.prototype.apply%": $apply,
|
|
49621
|
+
"%Object.defineProperty%": $defineProperty,
|
|
49622
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
49623
|
+
"%Math.abs%": abs,
|
|
49624
|
+
"%Math.floor%": floor,
|
|
49625
|
+
"%Math.max%": max,
|
|
49626
|
+
"%Math.min%": min,
|
|
49627
|
+
"%Math.pow%": pow,
|
|
49628
|
+
"%Math.round%": round,
|
|
49629
|
+
"%Math.sign%": sign,
|
|
49630
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
49631
|
+
};
|
|
49632
|
+
if (getProto) {
|
|
49633
|
+
try {
|
|
49634
|
+
null.error;
|
|
49635
|
+
} catch (e) {
|
|
49636
|
+
errorProto = getProto(getProto(e));
|
|
49637
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
49638
|
+
}
|
|
49639
|
+
}
|
|
49640
|
+
var errorProto;
|
|
49641
|
+
var doEval = function doEval2(name) {
|
|
49642
|
+
var value;
|
|
49643
|
+
if (name === "%AsyncFunction%") {
|
|
49644
|
+
value = getEvalledConstructor("async function () {}");
|
|
49645
|
+
} else if (name === "%GeneratorFunction%") {
|
|
49646
|
+
value = getEvalledConstructor("function* () {}");
|
|
49647
|
+
} else if (name === "%AsyncGeneratorFunction%") {
|
|
49648
|
+
value = getEvalledConstructor("async function* () {}");
|
|
49649
|
+
} else if (name === "%AsyncGenerator%") {
|
|
49650
|
+
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
49651
|
+
if (fn) {
|
|
49652
|
+
value = fn.prototype;
|
|
49653
|
+
}
|
|
49654
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
49655
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
49656
|
+
if (gen && getProto) {
|
|
49657
|
+
value = getProto(gen.prototype);
|
|
49658
|
+
}
|
|
49659
|
+
}
|
|
49660
|
+
INTRINSICS[name] = value;
|
|
49661
|
+
return value;
|
|
49662
|
+
};
|
|
49663
|
+
var LEGACY_ALIASES = {
|
|
49664
|
+
__proto__: null,
|
|
49665
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
49666
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
49667
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
49668
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
49669
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
49670
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
49671
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
49672
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
49673
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
49674
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
49675
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
49676
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
49677
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
49678
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
49679
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
49680
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
49681
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
49682
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
49683
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
49684
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
49685
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
49686
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
49687
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
49688
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
49689
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
49690
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
49691
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
49692
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
49693
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
49694
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
49695
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
49696
|
+
"%Promise_all%": ["Promise", "all"],
|
|
49697
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
49698
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
49699
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
49700
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
49701
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
49702
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
49703
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
49704
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
49705
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
49706
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
49707
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
49708
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
49709
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
49710
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
49711
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
49712
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
49713
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
49714
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
49715
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
49716
|
+
};
|
|
49717
|
+
var bind = require_function_bind();
|
|
49718
|
+
var hasOwn = require_hasown();
|
|
49719
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
49720
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
49721
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
49722
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
49723
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
49724
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
49725
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
49726
|
+
var stringToPath = function stringToPath2(string) {
|
|
49727
|
+
var first = $strSlice(string, 0, 1);
|
|
49728
|
+
var last = $strSlice(string, -1);
|
|
49729
|
+
if (first === "%" && last !== "%") {
|
|
49730
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
49731
|
+
} else if (last === "%" && first !== "%") {
|
|
49732
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
49733
|
+
}
|
|
49734
|
+
var result = [];
|
|
49735
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
49736
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
49737
|
+
});
|
|
49738
|
+
return result;
|
|
49739
|
+
};
|
|
49740
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
49741
|
+
var intrinsicName = name;
|
|
49742
|
+
var alias;
|
|
49743
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
49744
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
49745
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
49746
|
+
}
|
|
49747
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
49748
|
+
var value = INTRINSICS[intrinsicName];
|
|
49749
|
+
if (value === needsEval) {
|
|
49750
|
+
value = doEval(intrinsicName);
|
|
49751
|
+
}
|
|
49752
|
+
if (typeof value === "undefined" && !allowMissing) {
|
|
49753
|
+
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
49754
|
+
}
|
|
49755
|
+
return {
|
|
49756
|
+
alias,
|
|
49757
|
+
name: intrinsicName,
|
|
49758
|
+
value
|
|
49759
|
+
};
|
|
49760
|
+
}
|
|
49761
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
49762
|
+
};
|
|
49763
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
49764
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
49765
|
+
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
49766
|
+
}
|
|
49767
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
49768
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
49769
|
+
}
|
|
49770
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
49771
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
49772
|
+
}
|
|
49773
|
+
var parts = stringToPath(name);
|
|
49774
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
49775
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
49776
|
+
var intrinsicRealName = intrinsic.name;
|
|
49777
|
+
var value = intrinsic.value;
|
|
49778
|
+
var skipFurtherCaching = false;
|
|
49779
|
+
var alias = intrinsic.alias;
|
|
49780
|
+
if (alias) {
|
|
49781
|
+
intrinsicBaseName = alias[0];
|
|
49782
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
49783
|
+
}
|
|
49784
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
49785
|
+
var part = parts[i];
|
|
49786
|
+
var first = $strSlice(part, 0, 1);
|
|
49787
|
+
var last = $strSlice(part, -1);
|
|
49788
|
+
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
49789
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
49790
|
+
}
|
|
49791
|
+
if (part === "constructor" || !isOwn) {
|
|
49792
|
+
skipFurtherCaching = true;
|
|
49793
|
+
}
|
|
49794
|
+
intrinsicBaseName += "." + part;
|
|
49795
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
49796
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
49797
|
+
value = INTRINSICS[intrinsicRealName];
|
|
49798
|
+
} else if (value != null) {
|
|
49799
|
+
if (!(part in value)) {
|
|
49800
|
+
if (!allowMissing) {
|
|
49801
|
+
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
49802
|
+
}
|
|
49803
|
+
return void 0;
|
|
49804
|
+
}
|
|
49805
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
49806
|
+
var desc = $gOPD(value, part);
|
|
49807
|
+
isOwn = !!desc;
|
|
49808
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
49809
|
+
value = desc.get;
|
|
49810
|
+
} else {
|
|
49811
|
+
value = value[part];
|
|
49812
|
+
}
|
|
49813
|
+
} else {
|
|
49814
|
+
isOwn = hasOwn(value, part);
|
|
49815
|
+
value = value[part];
|
|
49816
|
+
}
|
|
49817
|
+
if (isOwn && !skipFurtherCaching) {
|
|
49818
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
49819
|
+
}
|
|
49820
|
+
}
|
|
49821
|
+
}
|
|
49822
|
+
return value;
|
|
49823
|
+
};
|
|
49824
|
+
}
|
|
49825
|
+
});
|
|
49826
|
+
|
|
49827
|
+
// ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
|
|
49828
|
+
var require_call_bound = __commonJS({
|
|
49829
|
+
"../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports, module) {
|
|
49830
|
+
"use strict";
|
|
49831
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
49832
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
49833
|
+
var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
|
|
49834
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
49835
|
+
var intrinsic = (
|
|
49836
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
49837
|
+
GetIntrinsic(name, !!allowMissing)
|
|
49838
|
+
);
|
|
49839
|
+
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
49840
|
+
return callBindBasic(
|
|
49841
|
+
/** @type {const} */
|
|
49842
|
+
[intrinsic]
|
|
49843
|
+
);
|
|
49844
|
+
}
|
|
49845
|
+
return intrinsic;
|
|
49846
|
+
};
|
|
49847
|
+
}
|
|
49848
|
+
});
|
|
49849
|
+
|
|
49850
|
+
// ../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
|
|
49851
|
+
var require_is_callable = __commonJS({
|
|
49852
|
+
"../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js"(exports, module) {
|
|
49853
|
+
"use strict";
|
|
49854
|
+
var fnToStr = Function.prototype.toString;
|
|
49855
|
+
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
49856
|
+
var badArrayLike;
|
|
49857
|
+
var isCallableMarker;
|
|
49858
|
+
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
|
|
49859
|
+
try {
|
|
49860
|
+
badArrayLike = Object.defineProperty({}, "length", {
|
|
49861
|
+
get: function() {
|
|
49862
|
+
throw isCallableMarker;
|
|
49863
|
+
}
|
|
49864
|
+
});
|
|
49865
|
+
isCallableMarker = {};
|
|
49866
|
+
reflectApply(function() {
|
|
49867
|
+
throw 42;
|
|
49868
|
+
}, null, badArrayLike);
|
|
49869
|
+
} catch (_) {
|
|
49870
|
+
if (_ !== isCallableMarker) {
|
|
49871
|
+
reflectApply = null;
|
|
49872
|
+
}
|
|
49873
|
+
}
|
|
49874
|
+
} else {
|
|
49875
|
+
reflectApply = null;
|
|
49876
|
+
}
|
|
49877
|
+
var constructorRegex = /^\s*class\b/;
|
|
49878
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
49879
|
+
try {
|
|
49880
|
+
var fnStr = fnToStr.call(value);
|
|
49881
|
+
return constructorRegex.test(fnStr);
|
|
49882
|
+
} catch (e) {
|
|
49883
|
+
return false;
|
|
49884
|
+
}
|
|
49885
|
+
};
|
|
49886
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
49887
|
+
try {
|
|
49888
|
+
if (isES6ClassFn(value)) {
|
|
49889
|
+
return false;
|
|
49890
|
+
}
|
|
49891
|
+
fnToStr.call(value);
|
|
49892
|
+
return true;
|
|
49893
|
+
} catch (e) {
|
|
49894
|
+
return false;
|
|
49895
|
+
}
|
|
49896
|
+
};
|
|
49897
|
+
var toStr = Object.prototype.toString;
|
|
49898
|
+
var objectClass = "[object Object]";
|
|
49899
|
+
var fnClass = "[object Function]";
|
|
49900
|
+
var genClass = "[object GeneratorFunction]";
|
|
49901
|
+
var ddaClass = "[object HTMLAllCollection]";
|
|
49902
|
+
var ddaClass2 = "[object HTML document.all class]";
|
|
49903
|
+
var ddaClass3 = "[object HTMLCollection]";
|
|
49904
|
+
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
49905
|
+
var isIE68 = !(0 in [,]);
|
|
49906
|
+
var isDDA = function isDocumentDotAll() {
|
|
49907
|
+
return false;
|
|
49908
|
+
};
|
|
49909
|
+
if (typeof document === "object") {
|
|
49910
|
+
all = document.all;
|
|
49911
|
+
if (toStr.call(all) === toStr.call(document.all)) {
|
|
49912
|
+
isDDA = function isDocumentDotAll(value) {
|
|
49913
|
+
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
|
|
49914
|
+
try {
|
|
49915
|
+
var str = toStr.call(value);
|
|
49916
|
+
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
|
|
49917
|
+
} catch (e) {
|
|
49918
|
+
}
|
|
49919
|
+
}
|
|
49920
|
+
return false;
|
|
49921
|
+
};
|
|
49922
|
+
}
|
|
49923
|
+
}
|
|
49924
|
+
var all;
|
|
49925
|
+
module.exports = reflectApply ? function isCallable(value) {
|
|
49926
|
+
if (isDDA(value)) {
|
|
49927
|
+
return true;
|
|
49928
|
+
}
|
|
49929
|
+
if (!value) {
|
|
49930
|
+
return false;
|
|
49931
|
+
}
|
|
49932
|
+
if (typeof value !== "function" && typeof value !== "object") {
|
|
49933
|
+
return false;
|
|
49934
|
+
}
|
|
49935
|
+
try {
|
|
49936
|
+
reflectApply(value, null, badArrayLike);
|
|
49937
|
+
} catch (e) {
|
|
49938
|
+
if (e !== isCallableMarker) {
|
|
49939
|
+
return false;
|
|
49940
|
+
}
|
|
49941
|
+
}
|
|
49942
|
+
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
49943
|
+
} : function isCallable(value) {
|
|
49944
|
+
if (isDDA(value)) {
|
|
49945
|
+
return true;
|
|
49946
|
+
}
|
|
49947
|
+
if (!value) {
|
|
49948
|
+
return false;
|
|
49949
|
+
}
|
|
49950
|
+
if (typeof value !== "function" && typeof value !== "object") {
|
|
49951
|
+
return false;
|
|
49952
|
+
}
|
|
49953
|
+
if (hasToStringTag) {
|
|
49954
|
+
return tryFunctionObject(value);
|
|
49955
|
+
}
|
|
49956
|
+
if (isES6ClassFn(value)) {
|
|
49957
|
+
return false;
|
|
49958
|
+
}
|
|
49959
|
+
var strClass = toStr.call(value);
|
|
49960
|
+
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
|
|
49961
|
+
return false;
|
|
49962
|
+
}
|
|
49963
|
+
return tryFunctionObject(value);
|
|
49964
|
+
};
|
|
49965
|
+
}
|
|
49966
|
+
});
|
|
49967
|
+
|
|
49968
|
+
// ../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
|
|
49969
|
+
var require_for_each = __commonJS({
|
|
49970
|
+
"../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js"(exports, module) {
|
|
49971
|
+
"use strict";
|
|
49972
|
+
var isCallable = require_is_callable();
|
|
49973
|
+
var toStr = Object.prototype.toString;
|
|
49974
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
49975
|
+
var forEachArray = function forEachArray2(array, iterator, receiver) {
|
|
49976
|
+
for (var i = 0, len = array.length; i < len; i++) {
|
|
49977
|
+
if (hasOwnProperty.call(array, i)) {
|
|
49978
|
+
if (receiver == null) {
|
|
49979
|
+
iterator(array[i], i, array);
|
|
49980
|
+
} else {
|
|
49981
|
+
iterator.call(receiver, array[i], i, array);
|
|
49982
|
+
}
|
|
49983
|
+
}
|
|
49984
|
+
}
|
|
49985
|
+
};
|
|
49986
|
+
var forEachString = function forEachString2(string, iterator, receiver) {
|
|
49987
|
+
for (var i = 0, len = string.length; i < len; i++) {
|
|
49988
|
+
if (receiver == null) {
|
|
49989
|
+
iterator(string.charAt(i), i, string);
|
|
49990
|
+
} else {
|
|
49991
|
+
iterator.call(receiver, string.charAt(i), i, string);
|
|
49992
|
+
}
|
|
49993
|
+
}
|
|
49994
|
+
};
|
|
49995
|
+
var forEachObject = function forEachObject2(object, iterator, receiver) {
|
|
49996
|
+
for (var k in object) {
|
|
49997
|
+
if (hasOwnProperty.call(object, k)) {
|
|
49998
|
+
if (receiver == null) {
|
|
49999
|
+
iterator(object[k], k, object);
|
|
50000
|
+
} else {
|
|
50001
|
+
iterator.call(receiver, object[k], k, object);
|
|
50002
|
+
}
|
|
50003
|
+
}
|
|
50004
|
+
}
|
|
50005
|
+
};
|
|
50006
|
+
function isArray(x) {
|
|
50007
|
+
return toStr.call(x) === "[object Array]";
|
|
50008
|
+
}
|
|
50009
|
+
module.exports = function forEach(list2, iterator, thisArg) {
|
|
50010
|
+
if (!isCallable(iterator)) {
|
|
50011
|
+
throw new TypeError("iterator must be a function");
|
|
50012
|
+
}
|
|
50013
|
+
var receiver;
|
|
50014
|
+
if (arguments.length >= 3) {
|
|
50015
|
+
receiver = thisArg;
|
|
50016
|
+
}
|
|
50017
|
+
if (isArray(list2)) {
|
|
50018
|
+
forEachArray(list2, iterator, receiver);
|
|
50019
|
+
} else if (typeof list2 === "string") {
|
|
50020
|
+
forEachString(list2, iterator, receiver);
|
|
50021
|
+
} else {
|
|
50022
|
+
forEachObject(list2, iterator, receiver);
|
|
50023
|
+
}
|
|
50024
|
+
};
|
|
50025
|
+
}
|
|
50026
|
+
});
|
|
50027
|
+
|
|
50028
|
+
// ../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js
|
|
50029
|
+
var require_possible_typed_array_names = __commonJS({
|
|
50030
|
+
"../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js"(exports, module) {
|
|
50031
|
+
"use strict";
|
|
50032
|
+
module.exports = [
|
|
50033
|
+
"Float16Array",
|
|
50034
|
+
"Float32Array",
|
|
50035
|
+
"Float64Array",
|
|
50036
|
+
"Int8Array",
|
|
50037
|
+
"Int16Array",
|
|
50038
|
+
"Int32Array",
|
|
50039
|
+
"Uint8Array",
|
|
50040
|
+
"Uint8ClampedArray",
|
|
50041
|
+
"Uint16Array",
|
|
50042
|
+
"Uint32Array",
|
|
50043
|
+
"BigInt64Array",
|
|
50044
|
+
"BigUint64Array"
|
|
50045
|
+
];
|
|
50046
|
+
}
|
|
50047
|
+
});
|
|
50048
|
+
|
|
50049
|
+
// ../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
|
|
50050
|
+
var require_available_typed_arrays = __commonJS({
|
|
50051
|
+
"../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(exports, module) {
|
|
50052
|
+
"use strict";
|
|
50053
|
+
var possibleNames = require_possible_typed_array_names();
|
|
50054
|
+
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
50055
|
+
module.exports = function availableTypedArrays() {
|
|
50056
|
+
var out = [];
|
|
50057
|
+
for (var i = 0; i < possibleNames.length; i++) {
|
|
50058
|
+
if (typeof g[possibleNames[i]] === "function") {
|
|
50059
|
+
out[out.length] = possibleNames[i];
|
|
50060
|
+
}
|
|
50061
|
+
}
|
|
50062
|
+
return out;
|
|
50063
|
+
};
|
|
50064
|
+
}
|
|
50065
|
+
});
|
|
50066
|
+
|
|
50067
|
+
// ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
|
|
50068
|
+
var require_define_data_property = __commonJS({
|
|
50069
|
+
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports, module) {
|
|
50070
|
+
"use strict";
|
|
50071
|
+
var $defineProperty = require_es_define_property();
|
|
50072
|
+
var $SyntaxError = require_syntax();
|
|
50073
|
+
var $TypeError = require_type3();
|
|
50074
|
+
var gopd = require_gopd();
|
|
50075
|
+
module.exports = function defineDataProperty(obj, property, value) {
|
|
50076
|
+
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
50077
|
+
throw new $TypeError("`obj` must be an object or a function`");
|
|
50078
|
+
}
|
|
50079
|
+
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
50080
|
+
throw new $TypeError("`property` must be a string or a symbol`");
|
|
50081
|
+
}
|
|
50082
|
+
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
50083
|
+
throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
50084
|
+
}
|
|
50085
|
+
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
50086
|
+
throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
50087
|
+
}
|
|
50088
|
+
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
50089
|
+
throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
50090
|
+
}
|
|
50091
|
+
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
50092
|
+
throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
50093
|
+
}
|
|
50094
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
50095
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
50096
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
50097
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
50098
|
+
var desc = !!gopd && gopd(obj, property);
|
|
50099
|
+
if ($defineProperty) {
|
|
50100
|
+
$defineProperty(obj, property, {
|
|
50101
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
50102
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
50103
|
+
value,
|
|
50104
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
50105
|
+
});
|
|
50106
|
+
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
50107
|
+
obj[property] = value;
|
|
50108
|
+
} else {
|
|
50109
|
+
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
50110
|
+
}
|
|
50111
|
+
};
|
|
50112
|
+
}
|
|
50113
|
+
});
|
|
50114
|
+
|
|
50115
|
+
// ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
|
|
50116
|
+
var require_has_property_descriptors = __commonJS({
|
|
50117
|
+
"../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports, module) {
|
|
50118
|
+
"use strict";
|
|
50119
|
+
var $defineProperty = require_es_define_property();
|
|
50120
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
50121
|
+
return !!$defineProperty;
|
|
50122
|
+
};
|
|
50123
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
50124
|
+
if (!$defineProperty) {
|
|
50125
|
+
return null;
|
|
50126
|
+
}
|
|
50127
|
+
try {
|
|
50128
|
+
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
50129
|
+
} catch (e) {
|
|
50130
|
+
return true;
|
|
50131
|
+
}
|
|
50132
|
+
};
|
|
50133
|
+
module.exports = hasPropertyDescriptors;
|
|
50134
|
+
}
|
|
50135
|
+
});
|
|
50136
|
+
|
|
50137
|
+
// ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
|
|
50138
|
+
var require_set_function_length = __commonJS({
|
|
50139
|
+
"../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(exports, module) {
|
|
50140
|
+
"use strict";
|
|
50141
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
50142
|
+
var define2 = require_define_data_property();
|
|
50143
|
+
var hasDescriptors = require_has_property_descriptors()();
|
|
50144
|
+
var gOPD = require_gopd();
|
|
50145
|
+
var $TypeError = require_type3();
|
|
50146
|
+
var $floor = GetIntrinsic("%Math.floor%");
|
|
50147
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
50148
|
+
if (typeof fn !== "function") {
|
|
50149
|
+
throw new $TypeError("`fn` is not a function");
|
|
50150
|
+
}
|
|
50151
|
+
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
|
|
50152
|
+
throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
50153
|
+
}
|
|
50154
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
50155
|
+
var functionLengthIsConfigurable = true;
|
|
50156
|
+
var functionLengthIsWritable = true;
|
|
50157
|
+
if ("length" in fn && gOPD) {
|
|
50158
|
+
var desc = gOPD(fn, "length");
|
|
50159
|
+
if (desc && !desc.configurable) {
|
|
50160
|
+
functionLengthIsConfigurable = false;
|
|
50161
|
+
}
|
|
50162
|
+
if (desc && !desc.writable) {
|
|
50163
|
+
functionLengthIsWritable = false;
|
|
50164
|
+
}
|
|
50165
|
+
}
|
|
50166
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
50167
|
+
if (hasDescriptors) {
|
|
50168
|
+
define2(
|
|
50169
|
+
/** @type {Parameters<define>[0]} */
|
|
50170
|
+
fn,
|
|
50171
|
+
"length",
|
|
50172
|
+
length,
|
|
50173
|
+
true,
|
|
50174
|
+
true
|
|
50175
|
+
);
|
|
50176
|
+
} else {
|
|
50177
|
+
define2(
|
|
50178
|
+
/** @type {Parameters<define>[0]} */
|
|
50179
|
+
fn,
|
|
50180
|
+
"length",
|
|
50181
|
+
length
|
|
50182
|
+
);
|
|
50183
|
+
}
|
|
50184
|
+
}
|
|
50185
|
+
return fn;
|
|
50186
|
+
};
|
|
50187
|
+
}
|
|
50188
|
+
});
|
|
50189
|
+
|
|
50190
|
+
// ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
|
|
50191
|
+
var require_applyBind = __commonJS({
|
|
50192
|
+
"../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(exports, module) {
|
|
50193
|
+
"use strict";
|
|
50194
|
+
var bind = require_function_bind();
|
|
50195
|
+
var $apply = require_functionApply();
|
|
50196
|
+
var actualApply = require_actualApply();
|
|
50197
|
+
module.exports = function applyBind() {
|
|
50198
|
+
return actualApply(bind, $apply, arguments);
|
|
50199
|
+
};
|
|
50200
|
+
}
|
|
50201
|
+
});
|
|
50202
|
+
|
|
50203
|
+
// ../../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/index.js
|
|
50204
|
+
var require_call_bind = __commonJS({
|
|
50205
|
+
"../../node_modules/.pnpm/call-bind@1.0.9/node_modules/call-bind/index.js"(exports, module) {
|
|
50206
|
+
"use strict";
|
|
50207
|
+
var setFunctionLength = require_set_function_length();
|
|
50208
|
+
var $defineProperty = require_es_define_property();
|
|
50209
|
+
var callBindBasic = require_call_bind_apply_helpers();
|
|
50210
|
+
var applyBind = require_applyBind();
|
|
50211
|
+
module.exports = function callBind(originalFunction) {
|
|
50212
|
+
var func = callBindBasic(arguments);
|
|
50213
|
+
var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
|
|
50214
|
+
return setFunctionLength(
|
|
50215
|
+
func,
|
|
50216
|
+
adjustedLength > 0 ? adjustedLength : 0,
|
|
50217
|
+
true
|
|
50218
|
+
);
|
|
50219
|
+
};
|
|
50220
|
+
if ($defineProperty) {
|
|
50221
|
+
$defineProperty(module.exports, "apply", { value: applyBind });
|
|
50222
|
+
} else {
|
|
50223
|
+
module.exports.apply = applyBind;
|
|
48399
50224
|
}
|
|
48400
|
-
|
|
48401
|
-
|
|
48402
|
-
|
|
48403
|
-
|
|
48404
|
-
|
|
48405
|
-
|
|
48406
|
-
|
|
48407
|
-
|
|
50225
|
+
}
|
|
50226
|
+
});
|
|
50227
|
+
|
|
50228
|
+
// ../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
|
|
50229
|
+
var require_shams2 = __commonJS({
|
|
50230
|
+
"../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module) {
|
|
50231
|
+
"use strict";
|
|
50232
|
+
var hasSymbols = require_shams();
|
|
50233
|
+
module.exports = function hasToStringTagShams() {
|
|
50234
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
50235
|
+
};
|
|
50236
|
+
}
|
|
50237
|
+
});
|
|
50238
|
+
|
|
50239
|
+
// ../../node_modules/.pnpm/which-typed-array@1.1.21/node_modules/which-typed-array/index.js
|
|
50240
|
+
var require_which_typed_array = __commonJS({
|
|
50241
|
+
"../../node_modules/.pnpm/which-typed-array@1.1.21/node_modules/which-typed-array/index.js"(exports, module) {
|
|
50242
|
+
"use strict";
|
|
50243
|
+
var forEach = require_for_each();
|
|
50244
|
+
var availableTypedArrays = require_available_typed_arrays();
|
|
50245
|
+
var callBind = require_call_bind();
|
|
50246
|
+
var callBound = require_call_bound();
|
|
50247
|
+
var gOPD = require_gopd();
|
|
50248
|
+
var getProto = require_get_proto();
|
|
50249
|
+
var $toString = callBound("Object.prototype.toString");
|
|
50250
|
+
var hasToStringTag = require_shams2()();
|
|
50251
|
+
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
50252
|
+
var typedArrays = availableTypedArrays();
|
|
50253
|
+
var $slice = callBound("String.prototype.slice");
|
|
50254
|
+
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
50255
|
+
for (var i = 0; i < array.length; i += 1) {
|
|
50256
|
+
if (array[i] === value) {
|
|
50257
|
+
return i;
|
|
50258
|
+
}
|
|
50259
|
+
}
|
|
50260
|
+
return -1;
|
|
50261
|
+
};
|
|
50262
|
+
var cache = { __proto__: null };
|
|
50263
|
+
if (hasToStringTag && gOPD && getProto) {
|
|
50264
|
+
forEach(typedArrays, function(typedArray) {
|
|
50265
|
+
var arr = new g[typedArray]();
|
|
50266
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
50267
|
+
var proto = getProto(arr);
|
|
50268
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
50269
|
+
if (!descriptor && proto) {
|
|
50270
|
+
var superProto = getProto(proto);
|
|
50271
|
+
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
50272
|
+
}
|
|
50273
|
+
if (descriptor && descriptor.get) {
|
|
50274
|
+
var bound = callBind(descriptor.get);
|
|
50275
|
+
cache[
|
|
50276
|
+
/** @type {`$${import('.').TypedArrayName}`} */
|
|
50277
|
+
"$" + typedArray
|
|
50278
|
+
] = bound;
|
|
50279
|
+
}
|
|
50280
|
+
}
|
|
50281
|
+
});
|
|
50282
|
+
} else {
|
|
50283
|
+
forEach(typedArrays, function(typedArray) {
|
|
50284
|
+
var arr = new g[typedArray]();
|
|
50285
|
+
var fn = arr.slice || arr.set;
|
|
50286
|
+
if (fn) {
|
|
50287
|
+
var bound = (
|
|
50288
|
+
/** @type {import('./types').BoundSlice | import('./types').BoundSet} */
|
|
50289
|
+
// @ts-expect-error TODO FIXME
|
|
50290
|
+
callBind(fn)
|
|
50291
|
+
);
|
|
50292
|
+
cache[
|
|
50293
|
+
/** @type {`$${import('.').TypedArrayName}`} */
|
|
50294
|
+
"$" + typedArray
|
|
50295
|
+
] = bound;
|
|
50296
|
+
}
|
|
50297
|
+
});
|
|
48408
50298
|
}
|
|
50299
|
+
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
50300
|
+
var found = false;
|
|
50301
|
+
forEach(
|
|
50302
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
50303
|
+
cache,
|
|
50304
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
50305
|
+
function(getter, typedArray) {
|
|
50306
|
+
if (!found) {
|
|
50307
|
+
try {
|
|
50308
|
+
if ("$" + getter(value) === typedArray) {
|
|
50309
|
+
found = /** @type {import('.').TypedArrayName} */
|
|
50310
|
+
$slice(typedArray, 1);
|
|
50311
|
+
}
|
|
50312
|
+
} catch (e) {
|
|
50313
|
+
}
|
|
50314
|
+
}
|
|
50315
|
+
}
|
|
50316
|
+
);
|
|
50317
|
+
return found;
|
|
50318
|
+
};
|
|
50319
|
+
var trySlices = function tryAllSlices(value) {
|
|
50320
|
+
var found = false;
|
|
50321
|
+
forEach(
|
|
50322
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
50323
|
+
cache,
|
|
50324
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
50325
|
+
function(getter, name) {
|
|
50326
|
+
if (!found) {
|
|
50327
|
+
try {
|
|
50328
|
+
getter(value);
|
|
50329
|
+
found = /** @type {import('.').TypedArrayName} */
|
|
50330
|
+
$slice(name, 1);
|
|
50331
|
+
} catch (e) {
|
|
50332
|
+
}
|
|
50333
|
+
}
|
|
50334
|
+
}
|
|
50335
|
+
);
|
|
50336
|
+
return found;
|
|
50337
|
+
};
|
|
50338
|
+
module.exports = function whichTypedArray(value) {
|
|
50339
|
+
if (!value || typeof value !== "object") {
|
|
50340
|
+
return false;
|
|
50341
|
+
}
|
|
50342
|
+
if (!hasToStringTag) {
|
|
50343
|
+
var tag = $slice($toString(value), 8, -1);
|
|
50344
|
+
if ($indexOf(typedArrays, tag) > -1) {
|
|
50345
|
+
return tag;
|
|
50346
|
+
}
|
|
50347
|
+
if (tag !== "Object") {
|
|
50348
|
+
return false;
|
|
50349
|
+
}
|
|
50350
|
+
return trySlices(value);
|
|
50351
|
+
}
|
|
50352
|
+
if (!gOPD) {
|
|
50353
|
+
return null;
|
|
50354
|
+
}
|
|
50355
|
+
return tryTypedArrays(value);
|
|
50356
|
+
};
|
|
50357
|
+
}
|
|
50358
|
+
});
|
|
50359
|
+
|
|
50360
|
+
// ../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
|
|
50361
|
+
var require_is_typed_array = __commonJS({
|
|
50362
|
+
"../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js"(exports, module) {
|
|
50363
|
+
"use strict";
|
|
50364
|
+
var whichTypedArray = require_which_typed_array();
|
|
50365
|
+
module.exports = function isTypedArray(value) {
|
|
50366
|
+
return !!whichTypedArray(value);
|
|
50367
|
+
};
|
|
50368
|
+
}
|
|
50369
|
+
});
|
|
50370
|
+
|
|
50371
|
+
// ../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js
|
|
50372
|
+
var require_typed_array_buffer = __commonJS({
|
|
50373
|
+
"../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js"(exports, module) {
|
|
50374
|
+
"use strict";
|
|
50375
|
+
var $TypeError = require_type3();
|
|
50376
|
+
var callBound = require_call_bound();
|
|
50377
|
+
var $typedArrayBuffer = callBound("TypedArray.prototype.buffer", true);
|
|
50378
|
+
var isTypedArray = require_is_typed_array();
|
|
50379
|
+
module.exports = $typedArrayBuffer || function typedArrayBuffer(x) {
|
|
50380
|
+
if (!isTypedArray(x)) {
|
|
50381
|
+
throw new $TypeError("Not a Typed Array");
|
|
50382
|
+
}
|
|
50383
|
+
return x.buffer;
|
|
50384
|
+
};
|
|
50385
|
+
}
|
|
50386
|
+
});
|
|
50387
|
+
|
|
50388
|
+
// ../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js
|
|
50389
|
+
var require_to_buffer = __commonJS({
|
|
50390
|
+
"../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js"(exports, module) {
|
|
50391
|
+
"use strict";
|
|
50392
|
+
var Buffer2 = require_safe_buffer2().Buffer;
|
|
50393
|
+
var isArray = require_isarray2();
|
|
50394
|
+
var typedArrayBuffer = require_typed_array_buffer();
|
|
50395
|
+
var isView = ArrayBuffer.isView || function isView2(obj) {
|
|
50396
|
+
try {
|
|
50397
|
+
typedArrayBuffer(obj);
|
|
50398
|
+
return true;
|
|
50399
|
+
} catch (e) {
|
|
50400
|
+
return false;
|
|
50401
|
+
}
|
|
50402
|
+
};
|
|
50403
|
+
var useUint8Array = typeof Uint8Array !== "undefined";
|
|
50404
|
+
var useArrayBuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined";
|
|
50405
|
+
var useFromArrayBuffer = useArrayBuffer && (Buffer2.prototype instanceof Uint8Array || Buffer2.TYPED_ARRAY_SUPPORT);
|
|
50406
|
+
module.exports = function toBuffer(data, encoding) {
|
|
50407
|
+
if (Buffer2.isBuffer(data)) {
|
|
50408
|
+
if (data.constructor && !("isBuffer" in data)) {
|
|
50409
|
+
return Buffer2.from(data);
|
|
50410
|
+
}
|
|
50411
|
+
return data;
|
|
50412
|
+
}
|
|
50413
|
+
if (typeof data === "string") {
|
|
50414
|
+
return Buffer2.from(data, encoding);
|
|
50415
|
+
}
|
|
50416
|
+
if (useArrayBuffer && isView(data)) {
|
|
50417
|
+
if (data.byteLength === 0) {
|
|
50418
|
+
return Buffer2.alloc(0);
|
|
50419
|
+
}
|
|
50420
|
+
if (useFromArrayBuffer) {
|
|
50421
|
+
var res = Buffer2.from(data.buffer, data.byteOffset, data.byteLength);
|
|
50422
|
+
if (res.byteLength === data.byteLength) {
|
|
50423
|
+
return res;
|
|
50424
|
+
}
|
|
50425
|
+
}
|
|
50426
|
+
var uint8 = data instanceof Uint8Array ? data : new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
|
|
50427
|
+
var result = Buffer2.from(uint8);
|
|
50428
|
+
if (result.length === data.byteLength) {
|
|
50429
|
+
return result;
|
|
50430
|
+
}
|
|
50431
|
+
}
|
|
50432
|
+
if (useUint8Array && data instanceof Uint8Array) {
|
|
50433
|
+
return Buffer2.from(data);
|
|
50434
|
+
}
|
|
50435
|
+
var isArr = isArray(data);
|
|
50436
|
+
if (isArr) {
|
|
50437
|
+
for (var i = 0; i < data.length; i += 1) {
|
|
50438
|
+
var x = data[i];
|
|
50439
|
+
if (typeof x !== "number" || x < 0 || x > 255 || ~~x !== x) {
|
|
50440
|
+
throw new RangeError("Array items must be numbers in the range 0-255.");
|
|
50441
|
+
}
|
|
50442
|
+
}
|
|
50443
|
+
}
|
|
50444
|
+
if (isArr || Buffer2.isBuffer(data) && data.constructor && typeof data.constructor.isBuffer === "function" && data.constructor.isBuffer(data)) {
|
|
50445
|
+
return Buffer2.from(data);
|
|
50446
|
+
}
|
|
50447
|
+
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
50448
|
+
};
|
|
48409
50449
|
}
|
|
48410
50450
|
});
|
|
48411
50451
|
|
|
@@ -50814,13 +52854,13 @@ var CancelablePromise = class _CancelablePromise extends Promise {
|
|
|
50814
52854
|
});
|
|
50815
52855
|
}
|
|
50816
52856
|
static withResolver() {
|
|
50817
|
-
let
|
|
52857
|
+
let resolve5;
|
|
50818
52858
|
let reject;
|
|
50819
52859
|
const promise = new _CancelablePromise((res, rej) => {
|
|
50820
|
-
|
|
52860
|
+
resolve5 = res;
|
|
50821
52861
|
reject = rej;
|
|
50822
52862
|
});
|
|
50823
|
-
return { promise, resolve:
|
|
52863
|
+
return { promise, resolve: resolve5, reject };
|
|
50824
52864
|
}
|
|
50825
52865
|
};
|
|
50826
52866
|
|
|
@@ -51183,7 +53223,7 @@ function createPrompt(view) {
|
|
|
51183
53223
|
const screen = new ScreenManager(rl);
|
|
51184
53224
|
let cancel = () => {
|
|
51185
53225
|
};
|
|
51186
|
-
const answer = new CancelablePromise((
|
|
53226
|
+
const answer = new CancelablePromise((resolve5, reject) => {
|
|
51187
53227
|
withHooks(rl, (store) => {
|
|
51188
53228
|
function checkCursorPos() {
|
|
51189
53229
|
screen.checkCursorPos();
|
|
@@ -51216,7 +53256,7 @@ function createPrompt(view) {
|
|
|
51216
53256
|
function done(value) {
|
|
51217
53257
|
setImmediate(() => {
|
|
51218
53258
|
onExit2();
|
|
51219
|
-
|
|
53259
|
+
resolve5(value);
|
|
51220
53260
|
});
|
|
51221
53261
|
}
|
|
51222
53262
|
function workLoop(resolvedConfig) {
|
|
@@ -51245,7 +53285,7 @@ function createPrompt(view) {
|
|
|
51245
53285
|
// ../../node_modules/.pnpm/@inquirer+core@7.1.3/node_modules/@inquirer/core/dist/esm/lib/Separator.mjs
|
|
51246
53286
|
var import_chalk2 = __toESM(require_source2(), 1);
|
|
51247
53287
|
|
|
51248
|
-
// ../../node_modules/.pnpm/@inquirer+figures@1.0.
|
|
53288
|
+
// ../../node_modules/.pnpm/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
|
|
51249
53289
|
import process3 from "process";
|
|
51250
53290
|
function isUnicodeSupported() {
|
|
51251
53291
|
if (process3.platform !== "win32") {
|
|
@@ -51524,7 +53564,10 @@ var specialFallbackSymbols = {
|
|
|
51524
53564
|
oneNinth: "1/9",
|
|
51525
53565
|
oneTenth: "1/10"
|
|
51526
53566
|
};
|
|
51527
|
-
var mainSymbols = {
|
|
53567
|
+
var mainSymbols = {
|
|
53568
|
+
...common,
|
|
53569
|
+
...specialMainSymbols
|
|
53570
|
+
};
|
|
51528
53571
|
var fallbackSymbols = {
|
|
51529
53572
|
...common,
|
|
51530
53573
|
...specialFallbackSymbols
|
|
@@ -51754,20 +53797,20 @@ ${dirtyResult.reason}`
|
|
|
51754
53797
|
};
|
|
51755
53798
|
}
|
|
51756
53799
|
function getLastCommit(directory) {
|
|
51757
|
-
return new Promise((
|
|
53800
|
+
return new Promise((resolve5, reject) => {
|
|
51758
53801
|
import_git_last_commit.default.getLastCommit(
|
|
51759
53802
|
(err, commit) => {
|
|
51760
53803
|
if (err) {
|
|
51761
53804
|
return reject((0, import_error_utils.normalizeError)(err));
|
|
51762
53805
|
}
|
|
51763
|
-
|
|
53806
|
+
resolve5(commit);
|
|
51764
53807
|
},
|
|
51765
53808
|
{ dst: directory }
|
|
51766
53809
|
);
|
|
51767
53810
|
});
|
|
51768
53811
|
}
|
|
51769
53812
|
function isDirty(directory) {
|
|
51770
|
-
return new Promise((
|
|
53813
|
+
return new Promise((resolve5, reject) => {
|
|
51771
53814
|
exec(
|
|
51772
53815
|
"git --no-optional-locks status -s",
|
|
51773
53816
|
{ cwd: directory },
|
|
@@ -51778,7 +53821,7 @@ function isDirty(directory) {
|
|
|
51778
53821
|
if (stderr !== void 0 && stderr.trim().length > 0) {
|
|
51779
53822
|
return reject(new Error(stderr));
|
|
51780
53823
|
}
|
|
51781
|
-
|
|
53824
|
+
resolve5(stdout.trim().length > 0);
|
|
51782
53825
|
}
|
|
51783
53826
|
);
|
|
51784
53827
|
});
|
|
@@ -52996,7 +55039,7 @@ function findProjectsFromPath(projects, path) {
|
|
|
52996
55039
|
var import_chalk13 = __toESM(require_source(), 1);
|
|
52997
55040
|
var import_fs_extra5 = __toESM(require_lib3(), 1);
|
|
52998
55041
|
import { closeSync, openSync, readSync } from "fs";
|
|
52999
|
-
import { resolve as
|
|
55042
|
+
import { resolve as resolve4 } from "path";
|
|
53000
55043
|
|
|
53001
55044
|
// src/util/output/param.ts
|
|
53002
55045
|
var import_chalk8 = __toESM(require_source(), 1);
|
|
@@ -53603,7 +55646,7 @@ import { KNOWN_AGENTS as KNOWN_AGENTS2 } from "@vercel/detect-agent";
|
|
|
53603
55646
|
var import_chalk11 = __toESM(require_source(), 1);
|
|
53604
55647
|
import { readFile as readFile3, writeFile as writeFile2 } from "fs/promises";
|
|
53605
55648
|
import { access } from "fs/promises";
|
|
53606
|
-
import { join as join6 } from "path";
|
|
55649
|
+
import { dirname, join as join6, resolve as resolve3 } from "path";
|
|
53607
55650
|
import { homedir as homedir3 } from "os";
|
|
53608
55651
|
import { spawn } from "child_process";
|
|
53609
55652
|
import { KNOWN_AGENTS } from "@vercel/detect-agent";
|
|
@@ -53654,7 +55697,26 @@ async function writePrefs(client, prefs) {
|
|
|
53654
55697
|
} catch {
|
|
53655
55698
|
}
|
|
53656
55699
|
}
|
|
53657
|
-
|
|
55700
|
+
function encodeClaudeProjectDir(projectPath) {
|
|
55701
|
+
return projectPath.replace(/[^A-Za-z0-9]/g, "-");
|
|
55702
|
+
}
|
|
55703
|
+
async function projectHasUsedClaudeCode(cwd) {
|
|
55704
|
+
const home2 = homedir3();
|
|
55705
|
+
const projectsDir = join6(home2, ".claude", "projects");
|
|
55706
|
+
let dir = resolve3(cwd);
|
|
55707
|
+
while (dir !== home2) {
|
|
55708
|
+
if (await fileExists(join6(projectsDir, encodeClaudeProjectDir(dir)))) {
|
|
55709
|
+
return true;
|
|
55710
|
+
}
|
|
55711
|
+
const parent = dirname(dir);
|
|
55712
|
+
if (parent === dir) {
|
|
55713
|
+
break;
|
|
55714
|
+
}
|
|
55715
|
+
dir = parent;
|
|
55716
|
+
}
|
|
55717
|
+
return false;
|
|
55718
|
+
}
|
|
55719
|
+
async function getPluginTargets(agentName, cwd) {
|
|
53658
55720
|
const targetForAgent = getPluginTargetForAgent(agentName);
|
|
53659
55721
|
if (targetForAgent) {
|
|
53660
55722
|
return [targetForAgent];
|
|
@@ -53662,12 +55724,10 @@ async function getPluginTargets(agentName) {
|
|
|
53662
55724
|
if (agentName) {
|
|
53663
55725
|
return [];
|
|
53664
55726
|
}
|
|
53665
|
-
|
|
53666
|
-
|
|
53667
|
-
if (await fileExists(join6(home2, ".claude"))) {
|
|
53668
|
-
targets.push("claude-code");
|
|
55727
|
+
if (cwd && await projectHasUsedClaudeCode(cwd)) {
|
|
55728
|
+
return ["claude-code"];
|
|
53669
55729
|
}
|
|
53670
|
-
return
|
|
55730
|
+
return [];
|
|
53671
55731
|
}
|
|
53672
55732
|
async function readClaudeInstalledPluginsFromRegistry() {
|
|
53673
55733
|
try {
|
|
@@ -53754,7 +55814,7 @@ async function markPromptedToday(client, prefs) {
|
|
|
53754
55814
|
await writePrefs(client, prefs);
|
|
53755
55815
|
}
|
|
53756
55816
|
async function runCommand(command, args) {
|
|
53757
|
-
return await new Promise((
|
|
55817
|
+
return await new Promise((resolve5) => {
|
|
53758
55818
|
const child = spawn(command, args, { stdio: "pipe" });
|
|
53759
55819
|
let stdout = "";
|
|
53760
55820
|
let stderr = "";
|
|
@@ -53765,10 +55825,10 @@ async function runCommand(command, args) {
|
|
|
53765
55825
|
stderr += chunk.toString();
|
|
53766
55826
|
});
|
|
53767
55827
|
child.on("close", (code2) => {
|
|
53768
|
-
|
|
55828
|
+
resolve5({ exitCode: code2 ?? 1, stdout, stderr });
|
|
53769
55829
|
});
|
|
53770
55830
|
child.on("error", (err) => {
|
|
53771
|
-
|
|
55831
|
+
resolve5({ exitCode: 1, stdout, stderr: `${stderr}${String(err)}` });
|
|
53772
55832
|
});
|
|
53773
55833
|
});
|
|
53774
55834
|
}
|
|
@@ -54044,7 +56104,7 @@ async function autoInstallVercelPlugin(client, options) {
|
|
|
54044
56104
|
const prefs = await readPrefs(client);
|
|
54045
56105
|
const applyMode = options?.mode === "apply";
|
|
54046
56106
|
if (!prefs.pluginDeclined || applyMode) {
|
|
54047
|
-
const targets = await getPluginTargets(client.agentName);
|
|
56107
|
+
const targets = await getPluginTargets(client.agentName, client.cwd);
|
|
54048
56108
|
const uninstalledTargets = [];
|
|
54049
56109
|
const claudeStatus = targets.includes("claude-code") ? await getClaudePluginStatus() : void 0;
|
|
54050
56110
|
const claudePlan = claudeStatus ? buildClaudePluginMigrationPlan(claudeStatus) : void 0;
|
|
@@ -54101,7 +56161,7 @@ async function showPluginTipIfNeeded(client) {
|
|
|
54101
56161
|
const prefs = await readPrefs(client);
|
|
54102
56162
|
if (prefs.pluginDeclined)
|
|
54103
56163
|
return;
|
|
54104
|
-
const targets = await getPluginTargets();
|
|
56164
|
+
const targets = await getPluginTargets(client.agentName, client.cwd);
|
|
54105
56165
|
for (const target of targets) {
|
|
54106
56166
|
if (!await isPluginInstalledForTarget(target)) {
|
|
54107
56167
|
output_manager_default.log(
|
|
@@ -54527,7 +56587,7 @@ async function login(client, telemetry) {
|
|
|
54527
56587
|
return 0;
|
|
54528
56588
|
}
|
|
54529
56589
|
async function wait(intervalMs) {
|
|
54530
|
-
await new Promise((
|
|
56590
|
+
await new Promise((resolve5) => setTimeout(resolve5, intervalMs));
|
|
54531
56591
|
}
|
|
54532
56592
|
|
|
54533
56593
|
// src/commands/env/pull.ts
|
|
@@ -54648,7 +56708,7 @@ async function pull(client, argv, source = "vercel-cli:env:pull") {
|
|
|
54648
56708
|
return 0;
|
|
54649
56709
|
}
|
|
54650
56710
|
async function envPullCommandLogic(client, filename, skipConfirmation, environment, link, gitBranch, cwd, source, deploymentId) {
|
|
54651
|
-
const fullPath =
|
|
56711
|
+
const fullPath = resolve4(cwd, filename);
|
|
54652
56712
|
const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
|
|
54653
56713
|
const exists = typeof head !== "undefined";
|
|
54654
56714
|
if (head === CONTENTS_PREFIX) {
|
|
@@ -54781,7 +56841,7 @@ function escapeValue(value) {
|
|
|
54781
56841
|
var import_chalk14 = __toESM(require_source(), 1);
|
|
54782
56842
|
var import_fs_extra7 = __toESM(require_lib3(), 1);
|
|
54783
56843
|
import { stat } from "fs/promises";
|
|
54784
|
-
import { join as join9, dirname } from "path";
|
|
56844
|
+
import { join as join9, dirname as dirname2 } from "path";
|
|
54785
56845
|
|
|
54786
56846
|
// src/util/projects/detect-services.ts
|
|
54787
56847
|
var import_fs_detectors2 = __toESM(require_dist6(), 1);
|
|
@@ -54825,6 +56885,7 @@ var import_client = __toESM(require_dist7(), 1);
|
|
|
54825
56885
|
import {
|
|
54826
56886
|
functionsSchema,
|
|
54827
56887
|
buildsSchema,
|
|
56888
|
+
getMaxDurationSchema,
|
|
54828
56889
|
NowBuildError,
|
|
54829
56890
|
getPrettyError
|
|
54830
56891
|
} from "@vercel/build-utils";
|
|
@@ -55106,12 +57167,7 @@ var experimentalServicesCommonProperties = {
|
|
|
55106
57167
|
minimum: 128,
|
|
55107
57168
|
maximum: 10240
|
|
55108
57169
|
},
|
|
55109
|
-
maxDuration:
|
|
55110
|
-
oneOf: [
|
|
55111
|
-
{ type: "integer", minimum: 1, maximum: 900 },
|
|
55112
|
-
{ type: "string", enum: ["max"] }
|
|
55113
|
-
]
|
|
55114
|
-
},
|
|
57170
|
+
maxDuration: getMaxDurationSchema(),
|
|
55115
57171
|
includeFiles: {
|
|
55116
57172
|
oneOf: [
|
|
55117
57173
|
{ type: "string", minLength: 1 },
|
|
@@ -55628,8 +57684,8 @@ async function findProjectRoot(startDir) {
|
|
|
55628
57684
|
} catch {
|
|
55629
57685
|
return null;
|
|
55630
57686
|
}
|
|
55631
|
-
let dir =
|
|
55632
|
-
while (
|
|
57687
|
+
let dir = dirname2(startDir);
|
|
57688
|
+
while (dirname2(dir) !== dir) {
|
|
55633
57689
|
try {
|
|
55634
57690
|
if ((await stat(dir)).dev !== cwdDev) {
|
|
55635
57691
|
return null;
|
|
@@ -55644,7 +57700,7 @@ async function findProjectRoot(startDir) {
|
|
|
55644
57700
|
if (hasVercelDir || hasVercelJson || hasVercelToml || hasGit) {
|
|
55645
57701
|
return dir;
|
|
55646
57702
|
}
|
|
55647
|
-
dir =
|
|
57703
|
+
dir = dirname2(dir);
|
|
55648
57704
|
}
|
|
55649
57705
|
return null;
|
|
55650
57706
|
}
|
|
@@ -56236,7 +58292,7 @@ async function compileVercelConfig(workPath) {
|
|
|
56236
58292
|
process.send(config);
|
|
56237
58293
|
`;
|
|
56238
58294
|
await writeFile5(loaderPath, loaderScript, "utf-8");
|
|
56239
|
-
const config = await new Promise((
|
|
58295
|
+
const config = await new Promise((resolve5, reject) => {
|
|
56240
58296
|
const child = fork(loaderPath, [tempOutPath], {
|
|
56241
58297
|
stdio: ["pipe", "pipe", "pipe", "ipc"]
|
|
56242
58298
|
});
|
|
@@ -56259,7 +58315,7 @@ async function compileVercelConfig(workPath) {
|
|
|
56259
58315
|
child.on("message", (message) => {
|
|
56260
58316
|
clearTimeout(timeout);
|
|
56261
58317
|
child.kill();
|
|
56262
|
-
|
|
58318
|
+
resolve5(message);
|
|
56263
58319
|
});
|
|
56264
58320
|
child.on("error", (err) => {
|
|
56265
58321
|
clearTimeout(timeout);
|