@storm-software/workspace-tools 1.56.13 → 1.56.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/index.js +694 -620
- package/meta.json +1 -1
- package/package.json +2 -2
- package/src/executors/tsup/executor.js +694 -620
- package/src/executors/tsup-browser/executor.js +694 -620
- package/src/executors/tsup-neutral/executor.js +694 -620
- package/src/executors/tsup-node/executor.js +694 -620
- package/src/utils/index.js +694 -620
|
@@ -62185,9 +62185,9 @@ var require_source_map = __commonJS({
|
|
|
62185
62185
|
}
|
|
62186
62186
|
});
|
|
62187
62187
|
|
|
62188
|
-
// node_modules/.pnpm/rollup@4.
|
|
62188
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js
|
|
62189
62189
|
var require_native = __commonJS({
|
|
62190
|
-
"node_modules/.pnpm/rollup@4.
|
|
62190
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
|
|
62191
62191
|
var { existsSync: existsSync3 } = require("node:fs");
|
|
62192
62192
|
var { join: join3 } = require("node:path");
|
|
62193
62193
|
var { platform, arch, report } = require("node:process");
|
|
@@ -62204,6 +62204,7 @@ var require_native = __commonJS({
|
|
|
62204
62204
|
linux: {
|
|
62205
62205
|
arm: { base: "linux-arm-gnueabihf", musl: null },
|
|
62206
62206
|
arm64: { base: "linux-arm64-gnu", musl: "linux-arm64-musl" },
|
|
62207
|
+
riscv64: { base: "linux-riscv64-gnu", musl: null },
|
|
62207
62208
|
x64: { base: "linux-x64-gnu", musl: "linux-x64-musl" }
|
|
62208
62209
|
},
|
|
62209
62210
|
win32: {
|
|
@@ -62212,6 +62213,11 @@ var require_native = __commonJS({
|
|
|
62212
62213
|
x64: { base: "win32-x64-msvc" }
|
|
62213
62214
|
}
|
|
62214
62215
|
};
|
|
62216
|
+
var msvcLinkFilenameByArch = {
|
|
62217
|
+
arm64: "vc_redist.arm64.exe",
|
|
62218
|
+
ia32: "vc_redist.x86.exe",
|
|
62219
|
+
x64: "vc_redist.x64.exe"
|
|
62220
|
+
};
|
|
62215
62221
|
var packageBase = getPackageBase();
|
|
62216
62222
|
if (!packageBase) {
|
|
62217
62223
|
throw new Error(
|
|
@@ -62239,16 +62245,37 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
62239
62245
|
return imported.base;
|
|
62240
62246
|
}
|
|
62241
62247
|
var localName = `./rollup.${packageBase}.node`;
|
|
62242
|
-
var
|
|
62248
|
+
var requireWithFriendlyError = (id) => {
|
|
62249
|
+
try {
|
|
62250
|
+
return require(id);
|
|
62251
|
+
} catch (error) {
|
|
62252
|
+
if (platform === "win32" && error instanceof Error && error.code === "ERR_DLOPEN_FAILED" && error.message.includes("The specified module could not be found")) {
|
|
62253
|
+
const msvcDownloadLink = `https://aka.ms/vs/17/release/${msvcLinkFilenameByArch[arch]}`;
|
|
62254
|
+
throw new Error(
|
|
62255
|
+
`Failed to load module ${id}. Required DLL was not found. This error usually happens when Microsoft Visual C++ Redistributable is not installed. You can download it from ${msvcDownloadLink}`,
|
|
62256
|
+
{ cause: error }
|
|
62257
|
+
);
|
|
62258
|
+
}
|
|
62259
|
+
throw new Error(
|
|
62260
|
+
`Cannot find module ${id}. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try \`npm i\` again after removing both package-lock.json and node_modules directory.`,
|
|
62261
|
+
{ cause: error }
|
|
62262
|
+
);
|
|
62263
|
+
}
|
|
62264
|
+
};
|
|
62265
|
+
var { parse, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
|
|
62266
|
+
existsSync3(join3(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
62267
|
+
);
|
|
62243
62268
|
module2.exports.parse = parse;
|
|
62244
62269
|
module2.exports.parseAsync = parseAsync;
|
|
62245
62270
|
module2.exports.xxhashBase64Url = xxhashBase64Url;
|
|
62271
|
+
module2.exports.xxhashBase36 = xxhashBase36;
|
|
62272
|
+
module2.exports.xxhashBase16 = xxhashBase16;
|
|
62246
62273
|
}
|
|
62247
62274
|
});
|
|
62248
62275
|
|
|
62249
|
-
// node_modules/.pnpm/rollup@4.
|
|
62276
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js
|
|
62250
62277
|
var require_parseAst = __commonJS({
|
|
62251
|
-
"node_modules/.pnpm/rollup@4.
|
|
62278
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js"(exports2) {
|
|
62252
62279
|
"use strict";
|
|
62253
62280
|
var native_js = require_native();
|
|
62254
62281
|
var node_path = require("node:path");
|
|
@@ -62884,12 +62911,6 @@ Original error: ${originalError.message}`,
|
|
|
62884
62911
|
plugin
|
|
62885
62912
|
};
|
|
62886
62913
|
}
|
|
62887
|
-
function logInvalidRollupPhaseForAddWatchFile() {
|
|
62888
|
-
return {
|
|
62889
|
-
code: INVALID_ROLLUP_PHASE,
|
|
62890
|
-
message: `Cannot call "addWatchFile" after the build has finished.`
|
|
62891
|
-
};
|
|
62892
|
-
}
|
|
62893
62914
|
function logInvalidRollupPhaseForChunkEmission() {
|
|
62894
62915
|
return {
|
|
62895
62916
|
code: INVALID_ROLLUP_PHASE,
|
|
@@ -63284,19 +63305,22 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63284
63305
|
"pure",
|
|
63285
63306
|
"noSideEffects"
|
|
63286
63307
|
];
|
|
63287
|
-
var
|
|
63288
|
-
var
|
|
63289
|
-
|
|
63290
|
-
|
|
63291
|
-
|
|
63292
|
-
console.trace();
|
|
63293
|
-
throw new Error(`Unknown node type: ${nodeType}`);
|
|
63294
|
-
}
|
|
63295
|
-
return converter(position + 1, buffer, readString);
|
|
63296
|
-
};
|
|
63308
|
+
var ANNOTATION_KEY = "_rollupAnnotations";
|
|
63309
|
+
var INVALID_ANNOTATION_KEY = "_rollupRemoved";
|
|
63310
|
+
function convertProgram(buffer, readString) {
|
|
63311
|
+
return convertNode(0, new Uint32Array(buffer), readString);
|
|
63312
|
+
}
|
|
63297
63313
|
var nodeConverters = [
|
|
63298
|
-
|
|
63299
|
-
|
|
63314
|
+
function parseError(position, buffer, readString) {
|
|
63315
|
+
const pos = buffer[position++];
|
|
63316
|
+
const message = convertString(position, buffer, readString);
|
|
63317
|
+
error(logParseError(message, pos));
|
|
63318
|
+
},
|
|
63319
|
+
function panicError(position, buffer, readString) {
|
|
63320
|
+
const message = convertString(position, buffer, readString);
|
|
63321
|
+
error(logParseError(message));
|
|
63322
|
+
},
|
|
63323
|
+
function arrayExpression(position, buffer, readString) {
|
|
63300
63324
|
const start = buffer[position++];
|
|
63301
63325
|
const end = buffer[position++];
|
|
63302
63326
|
const elements = convertNodeList(position, buffer, readString);
|
|
@@ -63307,8 +63331,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63307
63331
|
elements
|
|
63308
63332
|
};
|
|
63309
63333
|
},
|
|
63310
|
-
|
|
63311
|
-
(position, buffer, readString) => {
|
|
63334
|
+
function arrayPattern(position, buffer, readString) {
|
|
63312
63335
|
const start = buffer[position++];
|
|
63313
63336
|
const end = buffer[position++];
|
|
63314
63337
|
const elements = convertNodeList(position, buffer, readString);
|
|
@@ -63319,30 +63342,30 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63319
63342
|
elements
|
|
63320
63343
|
};
|
|
63321
63344
|
},
|
|
63322
|
-
|
|
63323
|
-
(position, buffer, readString) => {
|
|
63345
|
+
function arrowFunctionExpression(position, buffer, readString) {
|
|
63324
63346
|
const start = buffer[position++];
|
|
63325
63347
|
const end = buffer[position++];
|
|
63326
|
-
const
|
|
63327
|
-
const
|
|
63328
|
-
const expression =
|
|
63348
|
+
const flags = buffer[position++];
|
|
63349
|
+
const async = (flags & 1) === 1;
|
|
63350
|
+
const expression = (flags & 2) === 2;
|
|
63351
|
+
const generator = (flags & 4) === 4;
|
|
63329
63352
|
const parameters = convertNodeList(buffer[position++], buffer, readString);
|
|
63330
63353
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
63331
|
-
const annotations =
|
|
63332
|
-
return
|
|
63354
|
+
const annotations = convertAnnotations(position, buffer);
|
|
63355
|
+
return {
|
|
63333
63356
|
type: "ArrowFunctionExpression",
|
|
63334
63357
|
start,
|
|
63335
63358
|
end,
|
|
63336
63359
|
async,
|
|
63337
|
-
body,
|
|
63338
63360
|
expression,
|
|
63339
63361
|
generator,
|
|
63340
|
-
|
|
63341
|
-
params: parameters
|
|
63342
|
-
|
|
63362
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
63363
|
+
params: parameters,
|
|
63364
|
+
body,
|
|
63365
|
+
id: null
|
|
63366
|
+
};
|
|
63343
63367
|
},
|
|
63344
|
-
|
|
63345
|
-
(position, buffer, readString) => {
|
|
63368
|
+
function assignmentExpression(position, buffer, readString) {
|
|
63346
63369
|
const start = buffer[position++];
|
|
63347
63370
|
const end = buffer[position++];
|
|
63348
63371
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -63352,13 +63375,12 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63352
63375
|
type: "AssignmentExpression",
|
|
63353
63376
|
start,
|
|
63354
63377
|
end,
|
|
63355
|
-
left,
|
|
63356
63378
|
operator,
|
|
63379
|
+
left,
|
|
63357
63380
|
right
|
|
63358
63381
|
};
|
|
63359
63382
|
},
|
|
63360
|
-
|
|
63361
|
-
(position, buffer, readString) => {
|
|
63383
|
+
function assignmentPattern(position, buffer, readString) {
|
|
63362
63384
|
const start = buffer[position++];
|
|
63363
63385
|
const end = buffer[position++];
|
|
63364
63386
|
const right = convertNode(buffer[position++], buffer, readString);
|
|
@@ -63371,20 +63393,18 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63371
63393
|
right
|
|
63372
63394
|
};
|
|
63373
63395
|
},
|
|
63374
|
-
|
|
63375
|
-
(position, buffer, readString) => {
|
|
63396
|
+
function awaitExpression(position, buffer, readString) {
|
|
63376
63397
|
const start = buffer[position++];
|
|
63377
63398
|
const end = buffer[position++];
|
|
63378
63399
|
const argument = convertNode(position, buffer, readString);
|
|
63379
63400
|
return {
|
|
63380
63401
|
type: "AwaitExpression",
|
|
63381
63402
|
start,
|
|
63382
|
-
|
|
63383
|
-
|
|
63403
|
+
end,
|
|
63404
|
+
argument
|
|
63384
63405
|
};
|
|
63385
63406
|
},
|
|
63386
|
-
|
|
63387
|
-
(position, buffer, readString) => {
|
|
63407
|
+
function binaryExpression(position, buffer, readString) {
|
|
63388
63408
|
const start = buffer[position++];
|
|
63389
63409
|
const end = buffer[position++];
|
|
63390
63410
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -63394,68 +63414,67 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63394
63414
|
type: "BinaryExpression",
|
|
63395
63415
|
start,
|
|
63396
63416
|
end,
|
|
63397
|
-
left,
|
|
63398
63417
|
operator,
|
|
63418
|
+
left,
|
|
63399
63419
|
right
|
|
63400
63420
|
};
|
|
63401
63421
|
},
|
|
63402
|
-
|
|
63403
|
-
(position, buffer, readString) => {
|
|
63422
|
+
function blockStatement(position, buffer, readString) {
|
|
63404
63423
|
const start = buffer[position++];
|
|
63405
63424
|
const end = buffer[position++];
|
|
63406
63425
|
const body = convertNodeList(position, buffer, readString);
|
|
63407
63426
|
return {
|
|
63408
63427
|
type: "BlockStatement",
|
|
63409
63428
|
start,
|
|
63410
|
-
|
|
63411
|
-
|
|
63429
|
+
end,
|
|
63430
|
+
body
|
|
63412
63431
|
};
|
|
63413
63432
|
},
|
|
63414
|
-
|
|
63415
|
-
(position, buffer, readString) => {
|
|
63433
|
+
function breakStatement(position, buffer, readString) {
|
|
63416
63434
|
const start = buffer[position++];
|
|
63417
63435
|
const end = buffer[position++];
|
|
63418
|
-
const labelPosition = buffer[position
|
|
63436
|
+
const labelPosition = buffer[position];
|
|
63437
|
+
const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
|
|
63419
63438
|
return {
|
|
63420
63439
|
type: "BreakStatement",
|
|
63421
63440
|
start,
|
|
63422
63441
|
end,
|
|
63423
|
-
label
|
|
63442
|
+
label
|
|
63424
63443
|
};
|
|
63425
63444
|
},
|
|
63426
|
-
|
|
63427
|
-
(position, buffer, readString) => {
|
|
63445
|
+
function callExpression(position, buffer, readString) {
|
|
63428
63446
|
const start = buffer[position++];
|
|
63429
63447
|
const end = buffer[position++];
|
|
63430
|
-
const
|
|
63448
|
+
const flags = buffer[position++];
|
|
63449
|
+
const optional = (flags & 1) === 1;
|
|
63431
63450
|
const callee = convertNode(buffer[position++], buffer, readString);
|
|
63432
|
-
const
|
|
63433
|
-
const annotations =
|
|
63434
|
-
return
|
|
63451
|
+
const callArguments = convertNodeList(buffer[position++], buffer, readString);
|
|
63452
|
+
const annotations = convertAnnotations(position, buffer);
|
|
63453
|
+
return {
|
|
63435
63454
|
type: "CallExpression",
|
|
63436
63455
|
start,
|
|
63437
63456
|
end,
|
|
63438
|
-
|
|
63457
|
+
optional,
|
|
63458
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
63439
63459
|
callee,
|
|
63440
|
-
|
|
63441
|
-
}
|
|
63460
|
+
arguments: callArguments
|
|
63461
|
+
};
|
|
63442
63462
|
},
|
|
63443
|
-
|
|
63444
|
-
(position, buffer, readString) => {
|
|
63463
|
+
function catchClause(position, buffer, readString) {
|
|
63445
63464
|
const start = buffer[position++];
|
|
63446
63465
|
const end = buffer[position++];
|
|
63447
63466
|
const parameterPosition = buffer[position++];
|
|
63467
|
+
const parameter = parameterPosition === 0 ? null : convertNode(parameterPosition, buffer, readString);
|
|
63448
63468
|
const body = convertNode(buffer[position], buffer, readString);
|
|
63449
63469
|
return {
|
|
63450
63470
|
type: "CatchClause",
|
|
63451
63471
|
start,
|
|
63452
63472
|
end,
|
|
63453
|
-
|
|
63454
|
-
|
|
63473
|
+
param: parameter,
|
|
63474
|
+
body
|
|
63455
63475
|
};
|
|
63456
63476
|
},
|
|
63457
|
-
|
|
63458
|
-
(position, buffer, readString) => {
|
|
63477
|
+
function chainExpression(position, buffer, readString) {
|
|
63459
63478
|
const start = buffer[position++];
|
|
63460
63479
|
const end = buffer[position++];
|
|
63461
63480
|
const expression = convertNode(position, buffer, readString);
|
|
@@ -63466,8 +63485,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63466
63485
|
expression
|
|
63467
63486
|
};
|
|
63468
63487
|
},
|
|
63469
|
-
|
|
63470
|
-
(position, buffer, readString) => {
|
|
63488
|
+
function classBody(position, buffer, readString) {
|
|
63471
63489
|
const start = buffer[position++];
|
|
63472
63490
|
const end = buffer[position++];
|
|
63473
63491
|
const body = convertNodeList(position, buffer, readString);
|
|
@@ -63478,40 +63496,41 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63478
63496
|
body
|
|
63479
63497
|
};
|
|
63480
63498
|
},
|
|
63481
|
-
|
|
63482
|
-
(position, buffer, readString) => {
|
|
63499
|
+
function classDeclaration(position, buffer, readString) {
|
|
63483
63500
|
const start = buffer[position++];
|
|
63484
63501
|
const end = buffer[position++];
|
|
63485
63502
|
const idPosition = buffer[position++];
|
|
63503
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
63486
63504
|
const superClassPosition = buffer[position++];
|
|
63505
|
+
const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
|
|
63487
63506
|
const body = convertNode(buffer[position], buffer, readString);
|
|
63488
63507
|
return {
|
|
63489
63508
|
type: "ClassDeclaration",
|
|
63490
63509
|
start,
|
|
63491
63510
|
end,
|
|
63492
|
-
|
|
63493
|
-
|
|
63494
|
-
|
|
63511
|
+
id,
|
|
63512
|
+
superClass,
|
|
63513
|
+
body
|
|
63495
63514
|
};
|
|
63496
63515
|
},
|
|
63497
|
-
|
|
63498
|
-
(position, buffer, readString) => {
|
|
63516
|
+
function classExpression(position, buffer, readString) {
|
|
63499
63517
|
const start = buffer[position++];
|
|
63500
63518
|
const end = buffer[position++];
|
|
63501
63519
|
const idPosition = buffer[position++];
|
|
63520
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
63502
63521
|
const superClassPosition = buffer[position++];
|
|
63522
|
+
const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
|
|
63503
63523
|
const body = convertNode(buffer[position], buffer, readString);
|
|
63504
63524
|
return {
|
|
63505
63525
|
type: "ClassExpression",
|
|
63506
63526
|
start,
|
|
63507
63527
|
end,
|
|
63508
|
-
|
|
63509
|
-
|
|
63510
|
-
|
|
63528
|
+
id,
|
|
63529
|
+
superClass,
|
|
63530
|
+
body
|
|
63511
63531
|
};
|
|
63512
63532
|
},
|
|
63513
|
-
|
|
63514
|
-
(position, buffer, readString) => {
|
|
63533
|
+
function conditionalExpression(position, buffer, readString) {
|
|
63515
63534
|
const start = buffer[position++];
|
|
63516
63535
|
const end = buffer[position++];
|
|
63517
63536
|
const consequent = convertNode(buffer[position++], buffer, readString);
|
|
@@ -63521,25 +63540,24 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63521
63540
|
type: "ConditionalExpression",
|
|
63522
63541
|
start,
|
|
63523
63542
|
end,
|
|
63524
|
-
|
|
63543
|
+
test,
|
|
63525
63544
|
consequent,
|
|
63526
|
-
|
|
63545
|
+
alternate
|
|
63527
63546
|
};
|
|
63528
63547
|
},
|
|
63529
|
-
|
|
63530
|
-
(position, buffer, readString) => {
|
|
63548
|
+
function continueStatement(position, buffer, readString) {
|
|
63531
63549
|
const start = buffer[position++];
|
|
63532
63550
|
const end = buffer[position++];
|
|
63533
63551
|
const labelPosition = buffer[position];
|
|
63552
|
+
const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
|
|
63534
63553
|
return {
|
|
63535
63554
|
type: "ContinueStatement",
|
|
63536
63555
|
start,
|
|
63537
63556
|
end,
|
|
63538
|
-
label
|
|
63557
|
+
label
|
|
63539
63558
|
};
|
|
63540
63559
|
},
|
|
63541
|
-
|
|
63542
|
-
(position, buffer) => {
|
|
63560
|
+
function debuggerStatement(position, buffer) {
|
|
63543
63561
|
const start = buffer[position++];
|
|
63544
63562
|
const end = buffer[position++];
|
|
63545
63563
|
return {
|
|
@@ -63548,8 +63566,20 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63548
63566
|
end
|
|
63549
63567
|
};
|
|
63550
63568
|
},
|
|
63551
|
-
|
|
63552
|
-
|
|
63569
|
+
function directive(position, buffer, readString) {
|
|
63570
|
+
const start = buffer[position++];
|
|
63571
|
+
const end = buffer[position++];
|
|
63572
|
+
const expression = convertNode(buffer[position++], buffer, readString);
|
|
63573
|
+
const directive2 = convertString(position, buffer, readString);
|
|
63574
|
+
return {
|
|
63575
|
+
type: "ExpressionStatement",
|
|
63576
|
+
start,
|
|
63577
|
+
end,
|
|
63578
|
+
directive: directive2,
|
|
63579
|
+
expression
|
|
63580
|
+
};
|
|
63581
|
+
},
|
|
63582
|
+
function doWhileStatement(position, buffer, readString) {
|
|
63553
63583
|
const start = buffer[position++];
|
|
63554
63584
|
const end = buffer[position++];
|
|
63555
63585
|
const test = convertNode(buffer[position++], buffer, readString);
|
|
@@ -63562,8 +63592,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63562
63592
|
test
|
|
63563
63593
|
};
|
|
63564
63594
|
},
|
|
63565
|
-
|
|
63566
|
-
(position, buffer) => {
|
|
63595
|
+
function emptyStatement(position, buffer) {
|
|
63567
63596
|
const start = buffer[position++];
|
|
63568
63597
|
const end = buffer[position++];
|
|
63569
63598
|
return {
|
|
@@ -63572,24 +63601,23 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63572
63601
|
end
|
|
63573
63602
|
};
|
|
63574
63603
|
},
|
|
63575
|
-
|
|
63576
|
-
(position, buffer, readString) => {
|
|
63604
|
+
function exportAllDeclaration(position, buffer, readString) {
|
|
63577
63605
|
const start = buffer[position++];
|
|
63578
63606
|
const end = buffer[position++];
|
|
63579
63607
|
const exportedPosition = buffer[position++];
|
|
63608
|
+
const exported = exportedPosition === 0 ? null : convertNode(exportedPosition, buffer, readString);
|
|
63580
63609
|
const source = convertNode(buffer[position++], buffer, readString);
|
|
63581
63610
|
const attributes = convertNodeList(buffer[position], buffer, readString);
|
|
63582
63611
|
return {
|
|
63583
63612
|
type: "ExportAllDeclaration",
|
|
63584
63613
|
start,
|
|
63585
63614
|
end,
|
|
63586
|
-
exported
|
|
63615
|
+
exported,
|
|
63587
63616
|
source,
|
|
63588
63617
|
attributes
|
|
63589
63618
|
};
|
|
63590
63619
|
},
|
|
63591
|
-
|
|
63592
|
-
(position, buffer, readString) => {
|
|
63620
|
+
function exportDefaultDeclaration(position, buffer, readString) {
|
|
63593
63621
|
const start = buffer[position++];
|
|
63594
63622
|
const end = buffer[position++];
|
|
63595
63623
|
const declaration = convertNode(position, buffer, readString);
|
|
@@ -63600,55 +63628,50 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63600
63628
|
declaration
|
|
63601
63629
|
};
|
|
63602
63630
|
},
|
|
63603
|
-
|
|
63604
|
-
(position, buffer, readString) => {
|
|
63631
|
+
function exportNamedDeclaration(position, buffer, readString) {
|
|
63605
63632
|
const start = buffer[position++];
|
|
63606
63633
|
const end = buffer[position++];
|
|
63607
|
-
const declarationPosition = buffer[position++];
|
|
63608
63634
|
const sourcePosition = buffer[position++];
|
|
63635
|
+
const source = sourcePosition === 0 ? null : convertNode(sourcePosition, buffer, readString);
|
|
63609
63636
|
const attributes = convertNodeList(buffer[position++], buffer, readString);
|
|
63637
|
+
const declarationPosition = buffer[position++];
|
|
63638
|
+
const declaration = declarationPosition === 0 ? null : convertNode(declarationPosition, buffer, readString);
|
|
63610
63639
|
const specifiers = convertNodeList(position, buffer, readString);
|
|
63611
63640
|
return {
|
|
63612
63641
|
type: "ExportNamedDeclaration",
|
|
63613
63642
|
start,
|
|
63614
63643
|
end,
|
|
63615
|
-
declaration: declarationPosition ? convertNode(declarationPosition, buffer, readString) : null,
|
|
63616
|
-
source: sourcePosition ? convertNode(sourcePosition, buffer, readString) : null,
|
|
63617
63644
|
specifiers,
|
|
63618
|
-
|
|
63645
|
+
source,
|
|
63646
|
+
attributes,
|
|
63647
|
+
declaration
|
|
63619
63648
|
};
|
|
63620
63649
|
},
|
|
63621
|
-
|
|
63622
|
-
(position, buffer, readString) => {
|
|
63650
|
+
function exportSpecifier(position, buffer, readString) {
|
|
63623
63651
|
const start = buffer[position++];
|
|
63624
63652
|
const end = buffer[position++];
|
|
63625
63653
|
const exportedPosition = buffer[position++];
|
|
63626
63654
|
const local = convertNode(position, buffer, readString);
|
|
63627
|
-
const exported = exportedPosition ? convertNode(exportedPosition, buffer, readString) : local;
|
|
63628
63655
|
return {
|
|
63629
63656
|
type: "ExportSpecifier",
|
|
63630
63657
|
start,
|
|
63631
63658
|
end,
|
|
63632
|
-
|
|
63633
|
-
local
|
|
63659
|
+
local,
|
|
63660
|
+
exported: exportedPosition === 0 ? { ...local } : convertNode(exportedPosition, buffer, readString)
|
|
63634
63661
|
};
|
|
63635
63662
|
},
|
|
63636
|
-
|
|
63637
|
-
(position, buffer, readString) => {
|
|
63663
|
+
function expressionStatement(position, buffer, readString) {
|
|
63638
63664
|
const start = buffer[position++];
|
|
63639
63665
|
const end = buffer[position++];
|
|
63640
|
-
const directivePosition = buffer[position++];
|
|
63641
63666
|
const expression = convertNode(position, buffer, readString);
|
|
63642
63667
|
return {
|
|
63643
63668
|
type: "ExpressionStatement",
|
|
63644
63669
|
start,
|
|
63645
63670
|
end,
|
|
63646
|
-
expression
|
|
63647
|
-
...directivePosition ? { directive: convertString(directivePosition, buffer, readString) } : {}
|
|
63671
|
+
expression
|
|
63648
63672
|
};
|
|
63649
63673
|
},
|
|
63650
|
-
|
|
63651
|
-
(position, buffer, readString) => {
|
|
63674
|
+
function forInStatement(position, buffer, readString) {
|
|
63652
63675
|
const start = buffer[position++];
|
|
63653
63676
|
const end = buffer[position++];
|
|
63654
63677
|
const right = convertNode(buffer[position++], buffer, readString);
|
|
@@ -63658,16 +63681,16 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63658
63681
|
type: "ForInStatement",
|
|
63659
63682
|
start,
|
|
63660
63683
|
end,
|
|
63661
|
-
body,
|
|
63662
63684
|
left,
|
|
63663
|
-
right
|
|
63685
|
+
right,
|
|
63686
|
+
body
|
|
63664
63687
|
};
|
|
63665
63688
|
},
|
|
63666
|
-
|
|
63667
|
-
(position, buffer, readString) => {
|
|
63689
|
+
function forOfStatement(position, buffer, readString) {
|
|
63668
63690
|
const start = buffer[position++];
|
|
63669
63691
|
const end = buffer[position++];
|
|
63670
|
-
const
|
|
63692
|
+
const flags = buffer[position++];
|
|
63693
|
+
const awaited = (flags & 1) === 1;
|
|
63671
63694
|
const right = convertNode(buffer[position++], buffer, readString);
|
|
63672
63695
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
63673
63696
|
const left = convertNode(position, buffer, readString);
|
|
@@ -63676,75 +63699,80 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63676
63699
|
start,
|
|
63677
63700
|
end,
|
|
63678
63701
|
await: awaited,
|
|
63679
|
-
body,
|
|
63680
63702
|
left,
|
|
63681
|
-
right
|
|
63703
|
+
right,
|
|
63704
|
+
body
|
|
63682
63705
|
};
|
|
63683
63706
|
},
|
|
63684
|
-
|
|
63685
|
-
(position, buffer, readString) => {
|
|
63707
|
+
function forStatement(position, buffer, readString) {
|
|
63686
63708
|
const start = buffer[position++];
|
|
63687
63709
|
const end = buffer[position++];
|
|
63688
63710
|
const initPosition = buffer[position++];
|
|
63711
|
+
const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
|
|
63689
63712
|
const testPosition = buffer[position++];
|
|
63713
|
+
const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
|
|
63690
63714
|
const updatePosition = buffer[position++];
|
|
63715
|
+
const update = updatePosition === 0 ? null : convertNode(updatePosition, buffer, readString);
|
|
63691
63716
|
const body = convertNode(buffer[position], buffer, readString);
|
|
63692
63717
|
return {
|
|
63693
63718
|
type: "ForStatement",
|
|
63694
63719
|
start,
|
|
63695
63720
|
end,
|
|
63696
|
-
|
|
63697
|
-
|
|
63698
|
-
|
|
63699
|
-
|
|
63721
|
+
init,
|
|
63722
|
+
test,
|
|
63723
|
+
update,
|
|
63724
|
+
body
|
|
63700
63725
|
};
|
|
63701
63726
|
},
|
|
63702
|
-
|
|
63703
|
-
(position, buffer, readString) => {
|
|
63727
|
+
function functionDeclaration(position, buffer, readString) {
|
|
63704
63728
|
const start = buffer[position++];
|
|
63705
63729
|
const end = buffer[position++];
|
|
63706
|
-
const
|
|
63707
|
-
const
|
|
63730
|
+
const flags = buffer[position++];
|
|
63731
|
+
const async = (flags & 1) === 1;
|
|
63732
|
+
const generator = (flags & 2) === 2;
|
|
63708
63733
|
const idPosition = buffer[position++];
|
|
63734
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
63709
63735
|
const parameters = convertNodeList(buffer[position++], buffer, readString);
|
|
63710
63736
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
63711
|
-
const annotations =
|
|
63712
|
-
return
|
|
63737
|
+
const annotations = convertAnnotations(position, buffer);
|
|
63738
|
+
return {
|
|
63713
63739
|
type: "FunctionDeclaration",
|
|
63714
63740
|
start,
|
|
63715
63741
|
end,
|
|
63716
63742
|
async,
|
|
63717
|
-
body,
|
|
63718
|
-
expression: false,
|
|
63719
63743
|
generator,
|
|
63720
|
-
|
|
63721
|
-
|
|
63722
|
-
|
|
63744
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
63745
|
+
id,
|
|
63746
|
+
params: parameters,
|
|
63747
|
+
body,
|
|
63748
|
+
expression: false
|
|
63749
|
+
};
|
|
63723
63750
|
},
|
|
63724
|
-
|
|
63725
|
-
(position, buffer, readString) => {
|
|
63751
|
+
function functionExpression(position, buffer, readString) {
|
|
63726
63752
|
const start = buffer[position++];
|
|
63727
63753
|
const end = buffer[position++];
|
|
63728
|
-
const
|
|
63729
|
-
const
|
|
63754
|
+
const flags = buffer[position++];
|
|
63755
|
+
const async = (flags & 1) === 1;
|
|
63756
|
+
const generator = (flags & 2) === 2;
|
|
63730
63757
|
const idPosition = buffer[position++];
|
|
63758
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
63731
63759
|
const parameters = convertNodeList(buffer[position++], buffer, readString);
|
|
63732
63760
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
63733
|
-
const annotations =
|
|
63734
|
-
return
|
|
63761
|
+
const annotations = convertAnnotations(position, buffer);
|
|
63762
|
+
return {
|
|
63735
63763
|
type: "FunctionExpression",
|
|
63736
63764
|
start,
|
|
63737
63765
|
end,
|
|
63738
63766
|
async,
|
|
63739
|
-
body,
|
|
63740
|
-
expression: false,
|
|
63741
63767
|
generator,
|
|
63742
|
-
|
|
63743
|
-
|
|
63744
|
-
|
|
63768
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
63769
|
+
id,
|
|
63770
|
+
params: parameters,
|
|
63771
|
+
body,
|
|
63772
|
+
expression: false
|
|
63773
|
+
};
|
|
63745
63774
|
},
|
|
63746
|
-
|
|
63747
|
-
(position, buffer, readString) => {
|
|
63775
|
+
function identifier(position, buffer, readString) {
|
|
63748
63776
|
const start = buffer[position++];
|
|
63749
63777
|
const end = buffer[position++];
|
|
63750
63778
|
const name = convertString(position, buffer, readString);
|
|
@@ -63755,24 +63783,23 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63755
63783
|
name
|
|
63756
63784
|
};
|
|
63757
63785
|
},
|
|
63758
|
-
|
|
63759
|
-
(position, buffer, readString) => {
|
|
63786
|
+
function ifStatement(position, buffer, readString) {
|
|
63760
63787
|
const start = buffer[position++];
|
|
63761
63788
|
const end = buffer[position++];
|
|
63762
63789
|
const consequent = convertNode(buffer[position++], buffer, readString);
|
|
63763
63790
|
const alternatePosition = buffer[position++];
|
|
63791
|
+
const alternate = alternatePosition === 0 ? null : convertNode(alternatePosition, buffer, readString);
|
|
63764
63792
|
const test = convertNode(position, buffer, readString);
|
|
63765
63793
|
return {
|
|
63766
63794
|
type: "IfStatement",
|
|
63767
63795
|
start,
|
|
63768
63796
|
end,
|
|
63769
|
-
|
|
63797
|
+
test,
|
|
63770
63798
|
consequent,
|
|
63771
|
-
|
|
63799
|
+
alternate
|
|
63772
63800
|
};
|
|
63773
63801
|
},
|
|
63774
|
-
|
|
63775
|
-
(position, buffer, readString) => {
|
|
63802
|
+
function importAttribute(position, buffer, readString) {
|
|
63776
63803
|
const start = buffer[position++];
|
|
63777
63804
|
const end = buffer[position++];
|
|
63778
63805
|
const value = convertNode(buffer[position++], buffer, readString);
|
|
@@ -63785,8 +63812,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63785
63812
|
value
|
|
63786
63813
|
};
|
|
63787
63814
|
},
|
|
63788
|
-
|
|
63789
|
-
(position, buffer, readString) => {
|
|
63815
|
+
function importDeclaration(position, buffer, readString) {
|
|
63790
63816
|
const start = buffer[position++];
|
|
63791
63817
|
const end = buffer[position++];
|
|
63792
63818
|
const source = convertNode(buffer[position++], buffer, readString);
|
|
@@ -63796,13 +63822,12 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63796
63822
|
type: "ImportDeclaration",
|
|
63797
63823
|
start,
|
|
63798
63824
|
end,
|
|
63799
|
-
source,
|
|
63800
63825
|
specifiers,
|
|
63826
|
+
source,
|
|
63801
63827
|
attributes
|
|
63802
63828
|
};
|
|
63803
63829
|
},
|
|
63804
|
-
|
|
63805
|
-
(position, buffer, readString) => {
|
|
63830
|
+
function importDefaultSpecifier(position, buffer, readString) {
|
|
63806
63831
|
const start = buffer[position++];
|
|
63807
63832
|
const end = buffer[position++];
|
|
63808
63833
|
const local = convertNode(position, buffer, readString);
|
|
@@ -63813,22 +63838,21 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63813
63838
|
local
|
|
63814
63839
|
};
|
|
63815
63840
|
},
|
|
63816
|
-
|
|
63817
|
-
(position, buffer, readString) => {
|
|
63841
|
+
function importExpression(position, buffer, readString) {
|
|
63818
63842
|
const start = buffer[position++];
|
|
63819
63843
|
const end = buffer[position++];
|
|
63820
63844
|
const optionsPosition = buffer[position++];
|
|
63845
|
+
const options = optionsPosition === 0 ? null : convertNode(optionsPosition, buffer, readString);
|
|
63821
63846
|
const source = convertNode(position, buffer, readString);
|
|
63822
63847
|
return {
|
|
63823
63848
|
type: "ImportExpression",
|
|
63824
63849
|
start,
|
|
63825
63850
|
end,
|
|
63826
63851
|
source,
|
|
63827
|
-
options
|
|
63852
|
+
options
|
|
63828
63853
|
};
|
|
63829
63854
|
},
|
|
63830
|
-
|
|
63831
|
-
(position, buffer, readString) => {
|
|
63855
|
+
function importNamespaceSpecifier(position, buffer, readString) {
|
|
63832
63856
|
const start = buffer[position++];
|
|
63833
63857
|
const end = buffer[position++];
|
|
63834
63858
|
const local = convertNode(position, buffer, readString);
|
|
@@ -63839,23 +63863,20 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63839
63863
|
local
|
|
63840
63864
|
};
|
|
63841
63865
|
},
|
|
63842
|
-
|
|
63843
|
-
(position, buffer, readString) => {
|
|
63866
|
+
function importSpecifier(position, buffer, readString) {
|
|
63844
63867
|
const start = buffer[position++];
|
|
63845
63868
|
const end = buffer[position++];
|
|
63846
63869
|
const importedPosition = buffer[position++];
|
|
63847
63870
|
const local = convertNode(buffer[position], buffer, readString);
|
|
63848
|
-
const imported = importedPosition ? convertNode(importedPosition, buffer, readString) : local;
|
|
63849
63871
|
return {
|
|
63850
63872
|
type: "ImportSpecifier",
|
|
63851
63873
|
start,
|
|
63852
63874
|
end,
|
|
63853
|
-
imported,
|
|
63875
|
+
imported: importedPosition === 0 ? { ...local } : convertNode(importedPosition, buffer, readString),
|
|
63854
63876
|
local
|
|
63855
63877
|
};
|
|
63856
63878
|
},
|
|
63857
|
-
|
|
63858
|
-
(position, buffer, readString) => {
|
|
63879
|
+
function labeledStatement(position, buffer, readString) {
|
|
63859
63880
|
const start = buffer[position++];
|
|
63860
63881
|
const end = buffer[position++];
|
|
63861
63882
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
@@ -63864,67 +63885,63 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63864
63885
|
type: "LabeledStatement",
|
|
63865
63886
|
start,
|
|
63866
63887
|
end,
|
|
63867
|
-
|
|
63868
|
-
|
|
63888
|
+
label,
|
|
63889
|
+
body
|
|
63869
63890
|
};
|
|
63870
63891
|
},
|
|
63871
|
-
|
|
63872
|
-
(position, buffer, readString) => {
|
|
63892
|
+
function literalBigInt(position, buffer, readString) {
|
|
63873
63893
|
const start = buffer[position++];
|
|
63874
63894
|
const end = buffer[position++];
|
|
63875
|
-
const
|
|
63876
|
-
const
|
|
63877
|
-
const value = convertString(position, buffer, readString);
|
|
63895
|
+
const raw = convertString(buffer[position++], buffer, readString);
|
|
63896
|
+
const bigint = convertString(position, buffer, readString);
|
|
63878
63897
|
return {
|
|
63879
63898
|
type: "Literal",
|
|
63880
63899
|
start,
|
|
63881
63900
|
end,
|
|
63901
|
+
bigint,
|
|
63882
63902
|
raw,
|
|
63883
|
-
value
|
|
63903
|
+
value: BigInt(bigint)
|
|
63884
63904
|
};
|
|
63885
63905
|
},
|
|
63886
|
-
|
|
63887
|
-
(position, buffer) => {
|
|
63906
|
+
function literalBoolean(position, buffer) {
|
|
63888
63907
|
const start = buffer[position++];
|
|
63889
63908
|
const end = buffer[position++];
|
|
63890
|
-
const
|
|
63909
|
+
const flags = buffer[position++];
|
|
63910
|
+
const value = (flags & 1) === 1;
|
|
63891
63911
|
return {
|
|
63892
63912
|
type: "Literal",
|
|
63893
63913
|
start,
|
|
63894
63914
|
end,
|
|
63895
|
-
|
|
63896
|
-
value
|
|
63915
|
+
value,
|
|
63916
|
+
raw: value ? "true" : "false"
|
|
63897
63917
|
};
|
|
63898
63918
|
},
|
|
63899
|
-
|
|
63900
|
-
(position, buffer, readString) => {
|
|
63919
|
+
function literalNull(position, buffer) {
|
|
63901
63920
|
const start = buffer[position++];
|
|
63902
63921
|
const end = buffer[position++];
|
|
63903
|
-
const rawPosition = buffer[position++];
|
|
63904
|
-
const raw = rawPosition ? convertString(rawPosition, buffer, readString) : void 0;
|
|
63905
|
-
const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
|
|
63906
63922
|
return {
|
|
63907
63923
|
type: "Literal",
|
|
63908
63924
|
start,
|
|
63909
63925
|
end,
|
|
63910
|
-
raw,
|
|
63911
|
-
value
|
|
63926
|
+
raw: "null",
|
|
63927
|
+
value: null
|
|
63912
63928
|
};
|
|
63913
63929
|
},
|
|
63914
|
-
|
|
63915
|
-
(position, buffer) => {
|
|
63930
|
+
function literalNumber(position, buffer, readString) {
|
|
63916
63931
|
const start = buffer[position++];
|
|
63917
63932
|
const end = buffer[position++];
|
|
63933
|
+
const rawPosition = buffer[position++];
|
|
63934
|
+
const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
|
|
63935
|
+
const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
|
|
63918
63936
|
return {
|
|
63919
63937
|
type: "Literal",
|
|
63920
63938
|
start,
|
|
63921
63939
|
end,
|
|
63922
|
-
raw
|
|
63923
|
-
value
|
|
63940
|
+
raw,
|
|
63941
|
+
value
|
|
63924
63942
|
};
|
|
63925
63943
|
},
|
|
63926
|
-
|
|
63927
|
-
(position, buffer, readString) => {
|
|
63944
|
+
function literalRegExp(position, buffer, readString) {
|
|
63928
63945
|
const start = buffer[position++];
|
|
63929
63946
|
const end = buffer[position++];
|
|
63930
63947
|
const pattern = convertString(buffer[position++], buffer, readString);
|
|
@@ -63934,30 +63951,25 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63934
63951
|
start,
|
|
63935
63952
|
end,
|
|
63936
63953
|
raw: `/${pattern}/${flags}`,
|
|
63937
|
-
regex: {
|
|
63938
|
-
flags,
|
|
63939
|
-
pattern
|
|
63940
|
-
},
|
|
63954
|
+
regex: { flags, pattern },
|
|
63941
63955
|
value: new RegExp(pattern, flags)
|
|
63942
63956
|
};
|
|
63943
63957
|
},
|
|
63944
|
-
|
|
63945
|
-
(position, buffer, readString) => {
|
|
63958
|
+
function literalString(position, buffer, readString) {
|
|
63946
63959
|
const start = buffer[position++];
|
|
63947
63960
|
const end = buffer[position++];
|
|
63948
|
-
const
|
|
63949
|
-
const raw = convertString(
|
|
63961
|
+
const rawPosition = buffer[position++];
|
|
63962
|
+
const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
|
|
63963
|
+
const value = convertString(position, buffer, readString);
|
|
63950
63964
|
return {
|
|
63951
63965
|
type: "Literal",
|
|
63952
63966
|
start,
|
|
63953
63967
|
end,
|
|
63954
|
-
|
|
63955
|
-
raw
|
|
63956
|
-
value: BigInt(bigint)
|
|
63968
|
+
value,
|
|
63969
|
+
raw
|
|
63957
63970
|
};
|
|
63958
63971
|
},
|
|
63959
|
-
|
|
63960
|
-
(position, buffer, readString) => {
|
|
63972
|
+
function logicalExpression(position, buffer, readString) {
|
|
63961
63973
|
const start = buffer[position++];
|
|
63962
63974
|
const end = buffer[position++];
|
|
63963
63975
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -63967,17 +63979,17 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63967
63979
|
type: "LogicalExpression",
|
|
63968
63980
|
start,
|
|
63969
63981
|
end,
|
|
63970
|
-
left,
|
|
63971
63982
|
operator,
|
|
63983
|
+
left,
|
|
63972
63984
|
right
|
|
63973
63985
|
};
|
|
63974
63986
|
},
|
|
63975
|
-
|
|
63976
|
-
(position, buffer, readString) => {
|
|
63987
|
+
function memberExpression(position, buffer, readString) {
|
|
63977
63988
|
const start = buffer[position++];
|
|
63978
63989
|
const end = buffer[position++];
|
|
63979
|
-
const
|
|
63980
|
-
const computed =
|
|
63990
|
+
const flags = buffer[position++];
|
|
63991
|
+
const computed = (flags & 1) === 1;
|
|
63992
|
+
const optional = (flags & 2) === 2;
|
|
63981
63993
|
const property = convertNode(buffer[position++], buffer, readString);
|
|
63982
63994
|
const object = convertNode(position, buffer, readString);
|
|
63983
63995
|
return {
|
|
@@ -63985,13 +63997,12 @@ ${smallChunks} are below minChunkSize.`
|
|
|
63985
63997
|
start,
|
|
63986
63998
|
end,
|
|
63987
63999
|
computed,
|
|
63988
|
-
object,
|
|
63989
64000
|
optional,
|
|
64001
|
+
object,
|
|
63990
64002
|
property
|
|
63991
64003
|
};
|
|
63992
64004
|
},
|
|
63993
|
-
|
|
63994
|
-
(position, buffer, readString) => {
|
|
64005
|
+
function metaProperty(position, buffer, readString) {
|
|
63995
64006
|
const start = buffer[position++];
|
|
63996
64007
|
const end = buffer[position++];
|
|
63997
64008
|
const property = convertNode(buffer[position++], buffer, readString);
|
|
@@ -64004,43 +64015,42 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64004
64015
|
property
|
|
64005
64016
|
};
|
|
64006
64017
|
},
|
|
64007
|
-
|
|
64008
|
-
(position, buffer, readString) => {
|
|
64018
|
+
function methodDefinition(position, buffer, readString) {
|
|
64009
64019
|
const start = buffer[position++];
|
|
64010
64020
|
const end = buffer[position++];
|
|
64011
|
-
const
|
|
64012
|
-
const computed =
|
|
64013
|
-
const isStatic =
|
|
64021
|
+
const flags = buffer[position++];
|
|
64022
|
+
const computed = (flags & 1) === 1;
|
|
64023
|
+
const isStatic = (flags & 2) === 2;
|
|
64014
64024
|
const value = convertNode(buffer[position++], buffer, readString);
|
|
64025
|
+
const kind = FIXED_STRINGS[buffer[position++]];
|
|
64015
64026
|
const key = convertNode(position, buffer, readString);
|
|
64016
64027
|
return {
|
|
64017
64028
|
type: "MethodDefinition",
|
|
64018
64029
|
start,
|
|
64019
64030
|
end,
|
|
64020
64031
|
computed,
|
|
64021
|
-
key,
|
|
64022
|
-
kind,
|
|
64023
64032
|
static: isStatic,
|
|
64024
|
-
|
|
64033
|
+
key,
|
|
64034
|
+
value,
|
|
64035
|
+
kind
|
|
64025
64036
|
};
|
|
64026
64037
|
},
|
|
64027
|
-
|
|
64028
|
-
(position, buffer, readString) => {
|
|
64038
|
+
function newExpression(position, buffer, readString) {
|
|
64029
64039
|
const start = buffer[position++];
|
|
64030
64040
|
const end = buffer[position++];
|
|
64031
64041
|
const callee = convertNode(buffer[position++], buffer, readString);
|
|
64032
|
-
const
|
|
64033
|
-
const annotations =
|
|
64034
|
-
return
|
|
64042
|
+
const callArguments = convertNodeList(buffer[position++], buffer, readString);
|
|
64043
|
+
const annotations = convertAnnotations(position, buffer);
|
|
64044
|
+
return {
|
|
64035
64045
|
type: "NewExpression",
|
|
64036
64046
|
start,
|
|
64037
64047
|
end,
|
|
64038
|
-
|
|
64039
|
-
callee
|
|
64040
|
-
|
|
64048
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
64049
|
+
callee,
|
|
64050
|
+
arguments: callArguments
|
|
64051
|
+
};
|
|
64041
64052
|
},
|
|
64042
|
-
|
|
64043
|
-
(position, buffer, readString) => {
|
|
64053
|
+
function objectExpression(position, buffer, readString) {
|
|
64044
64054
|
const start = buffer[position++];
|
|
64045
64055
|
const end = buffer[position++];
|
|
64046
64056
|
const properties = convertNodeList(position, buffer, readString);
|
|
@@ -64051,8 +64061,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64051
64061
|
properties
|
|
64052
64062
|
};
|
|
64053
64063
|
},
|
|
64054
|
-
|
|
64055
|
-
(position, buffer, readString) => {
|
|
64064
|
+
function objectPattern(position, buffer, readString) {
|
|
64056
64065
|
const start = buffer[position++];
|
|
64057
64066
|
const end = buffer[position++];
|
|
64058
64067
|
const properties = convertNodeList(position, buffer, readString);
|
|
@@ -64063,8 +64072,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64063
64072
|
properties
|
|
64064
64073
|
};
|
|
64065
64074
|
},
|
|
64066
|
-
|
|
64067
|
-
(position, buffer, readString) => {
|
|
64075
|
+
function privateIdentifier(position, buffer, readString) {
|
|
64068
64076
|
const start = buffer[position++];
|
|
64069
64077
|
const end = buffer[position++];
|
|
64070
64078
|
const name = convertString(position, buffer, readString);
|
|
@@ -64075,62 +64083,62 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64075
64083
|
name
|
|
64076
64084
|
};
|
|
64077
64085
|
},
|
|
64078
|
-
|
|
64079
|
-
(position, buffer, readString) => {
|
|
64086
|
+
function program(position, buffer, readString) {
|
|
64080
64087
|
const start = buffer[position++];
|
|
64081
64088
|
const end = buffer[position++];
|
|
64082
|
-
const annotations =
|
|
64089
|
+
const annotations = convertAnnotations(buffer[position++], buffer);
|
|
64083
64090
|
const body = convertNodeList(position, buffer, readString);
|
|
64084
|
-
return
|
|
64091
|
+
return {
|
|
64085
64092
|
type: "Program",
|
|
64086
64093
|
start,
|
|
64087
64094
|
end,
|
|
64088
64095
|
body,
|
|
64096
|
+
...annotations.length > 0 ? { [INVALID_ANNOTATION_KEY]: annotations } : {},
|
|
64089
64097
|
sourceType: "module"
|
|
64090
|
-
}
|
|
64098
|
+
};
|
|
64091
64099
|
},
|
|
64092
|
-
|
|
64093
|
-
(position, buffer, readString) => {
|
|
64100
|
+
function property(position, buffer, readString) {
|
|
64094
64101
|
const start = buffer[position++];
|
|
64095
64102
|
const end = buffer[position++];
|
|
64096
|
-
const
|
|
64097
|
-
const method =
|
|
64098
|
-
const
|
|
64099
|
-
const
|
|
64100
|
-
const
|
|
64101
|
-
const
|
|
64103
|
+
const flags = buffer[position++];
|
|
64104
|
+
const method = (flags & 1) === 1;
|
|
64105
|
+
const shorthand = (flags & 2) === 2;
|
|
64106
|
+
const computed = (flags & 4) === 4;
|
|
64107
|
+
const keyPosition = buffer[position++];
|
|
64108
|
+
const value = convertNode(buffer[position++], buffer, readString);
|
|
64109
|
+
const kind = FIXED_STRINGS[buffer[position]];
|
|
64102
64110
|
return {
|
|
64103
64111
|
type: "Property",
|
|
64104
64112
|
start,
|
|
64105
64113
|
end,
|
|
64106
|
-
computed,
|
|
64107
|
-
key,
|
|
64108
|
-
kind,
|
|
64109
64114
|
method,
|
|
64110
64115
|
shorthand,
|
|
64111
|
-
|
|
64116
|
+
computed,
|
|
64117
|
+
key: keyPosition === 0 ? { ...value } : convertNode(keyPosition, buffer, readString),
|
|
64118
|
+
value,
|
|
64119
|
+
kind
|
|
64112
64120
|
};
|
|
64113
64121
|
},
|
|
64114
|
-
|
|
64115
|
-
(position, buffer, readString) => {
|
|
64122
|
+
function propertyDefinition(position, buffer, readString) {
|
|
64116
64123
|
const start = buffer[position++];
|
|
64117
64124
|
const end = buffer[position++];
|
|
64118
|
-
const
|
|
64119
|
-
const
|
|
64125
|
+
const flags = buffer[position++];
|
|
64126
|
+
const computed = (flags & 1) === 1;
|
|
64127
|
+
const isStatic = (flags & 2) === 2;
|
|
64120
64128
|
const valuePosition = buffer[position++];
|
|
64129
|
+
const value = valuePosition === 0 ? null : convertNode(valuePosition, buffer, readString);
|
|
64121
64130
|
const key = convertNode(position, buffer, readString);
|
|
64122
64131
|
return {
|
|
64123
64132
|
type: "PropertyDefinition",
|
|
64124
64133
|
start,
|
|
64125
64134
|
end,
|
|
64126
64135
|
computed,
|
|
64127
|
-
key,
|
|
64128
64136
|
static: isStatic,
|
|
64129
|
-
|
|
64137
|
+
key,
|
|
64138
|
+
value
|
|
64130
64139
|
};
|
|
64131
64140
|
},
|
|
64132
|
-
|
|
64133
|
-
(position, buffer, readString) => {
|
|
64141
|
+
function restElement(position, buffer, readString) {
|
|
64134
64142
|
const start = buffer[position++];
|
|
64135
64143
|
const end = buffer[position++];
|
|
64136
64144
|
const argument = convertNode(position, buffer, readString);
|
|
@@ -64141,20 +64149,19 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64141
64149
|
argument
|
|
64142
64150
|
};
|
|
64143
64151
|
},
|
|
64144
|
-
|
|
64145
|
-
(position, buffer, readString) => {
|
|
64152
|
+
function returnStatement(position, buffer, readString) {
|
|
64146
64153
|
const start = buffer[position++];
|
|
64147
64154
|
const end = buffer[position++];
|
|
64148
64155
|
const argumentPosition = buffer[position];
|
|
64156
|
+
const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
|
|
64149
64157
|
return {
|
|
64150
64158
|
type: "ReturnStatement",
|
|
64151
64159
|
start,
|
|
64152
64160
|
end,
|
|
64153
|
-
argument
|
|
64161
|
+
argument
|
|
64154
64162
|
};
|
|
64155
64163
|
},
|
|
64156
|
-
|
|
64157
|
-
(position, buffer, readString) => {
|
|
64164
|
+
function sequenceExpression(position, buffer, readString) {
|
|
64158
64165
|
const start = buffer[position++];
|
|
64159
64166
|
const end = buffer[position++];
|
|
64160
64167
|
const expressions = convertNodeList(position, buffer, readString);
|
|
@@ -64165,8 +64172,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64165
64172
|
expressions
|
|
64166
64173
|
};
|
|
64167
64174
|
},
|
|
64168
|
-
|
|
64169
|
-
(position, buffer, readString) => {
|
|
64175
|
+
function spreadElement(position, buffer, readString) {
|
|
64170
64176
|
const start = buffer[position++];
|
|
64171
64177
|
const end = buffer[position++];
|
|
64172
64178
|
const argument = convertNode(position, buffer, readString);
|
|
@@ -64177,8 +64183,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64177
64183
|
argument
|
|
64178
64184
|
};
|
|
64179
64185
|
},
|
|
64180
|
-
|
|
64181
|
-
(position, buffer, readString) => {
|
|
64186
|
+
function staticBlock(position, buffer, readString) {
|
|
64182
64187
|
const start = buffer[position++];
|
|
64183
64188
|
const end = buffer[position++];
|
|
64184
64189
|
const body = convertNodeList(position, buffer, readString);
|
|
@@ -64189,8 +64194,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64189
64194
|
body
|
|
64190
64195
|
};
|
|
64191
64196
|
},
|
|
64192
|
-
|
|
64193
|
-
(position, buffer) => {
|
|
64197
|
+
function superElement(position, buffer) {
|
|
64194
64198
|
const start = buffer[position++];
|
|
64195
64199
|
const end = buffer[position++];
|
|
64196
64200
|
return {
|
|
@@ -64199,22 +64203,21 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64199
64203
|
end
|
|
64200
64204
|
};
|
|
64201
64205
|
},
|
|
64202
|
-
|
|
64203
|
-
(position, buffer, readString) => {
|
|
64206
|
+
function switchCase(position, buffer, readString) {
|
|
64204
64207
|
const start = buffer[position++];
|
|
64205
64208
|
const end = buffer[position++];
|
|
64206
64209
|
const testPosition = buffer[position++];
|
|
64210
|
+
const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
|
|
64207
64211
|
const consequent = convertNodeList(buffer[position], buffer, readString);
|
|
64208
64212
|
return {
|
|
64209
64213
|
type: "SwitchCase",
|
|
64210
64214
|
start,
|
|
64211
64215
|
end,
|
|
64212
|
-
|
|
64213
|
-
|
|
64216
|
+
test,
|
|
64217
|
+
consequent
|
|
64214
64218
|
};
|
|
64215
64219
|
},
|
|
64216
|
-
|
|
64217
|
-
(position, buffer, readString) => {
|
|
64220
|
+
function switchStatement(position, buffer, readString) {
|
|
64218
64221
|
const start = buffer[position++];
|
|
64219
64222
|
const end = buffer[position++];
|
|
64220
64223
|
const cases = convertNodeList(buffer[position++], buffer, readString);
|
|
@@ -64223,12 +64226,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64223
64226
|
type: "SwitchStatement",
|
|
64224
64227
|
start,
|
|
64225
64228
|
end,
|
|
64226
|
-
|
|
64227
|
-
|
|
64229
|
+
discriminant,
|
|
64230
|
+
cases
|
|
64228
64231
|
};
|
|
64229
64232
|
},
|
|
64230
|
-
|
|
64231
|
-
(position, buffer, readString) => {
|
|
64233
|
+
function taggedTemplateExpression(position, buffer, readString) {
|
|
64232
64234
|
const start = buffer[position++];
|
|
64233
64235
|
const end = buffer[position++];
|
|
64234
64236
|
const quasi = convertNode(buffer[position++], buffer, readString);
|
|
@@ -64237,30 +64239,27 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64237
64239
|
type: "TaggedTemplateExpression",
|
|
64238
64240
|
start,
|
|
64239
64241
|
end,
|
|
64240
|
-
|
|
64241
|
-
|
|
64242
|
+
tag,
|
|
64243
|
+
quasi
|
|
64242
64244
|
};
|
|
64243
64245
|
},
|
|
64244
|
-
|
|
64245
|
-
(position, buffer, readString) => {
|
|
64246
|
+
function templateElement(position, buffer, readString) {
|
|
64246
64247
|
const start = buffer[position++];
|
|
64247
64248
|
const end = buffer[position++];
|
|
64248
|
-
const
|
|
64249
|
+
const flags = buffer[position++];
|
|
64250
|
+
const tail = (flags & 1) === 1;
|
|
64249
64251
|
const cookedPosition = buffer[position++];
|
|
64252
|
+
const cooked = cookedPosition === 0 ? void 0 : convertString(cookedPosition, buffer, readString);
|
|
64250
64253
|
const raw = convertString(position, buffer, readString);
|
|
64251
64254
|
return {
|
|
64252
64255
|
type: "TemplateElement",
|
|
64253
64256
|
start,
|
|
64254
64257
|
end,
|
|
64255
64258
|
tail,
|
|
64256
|
-
value: {
|
|
64257
|
-
cooked: cookedPosition ? convertString(cookedPosition, buffer, readString) : null,
|
|
64258
|
-
raw
|
|
64259
|
-
}
|
|
64259
|
+
value: { cooked, raw }
|
|
64260
64260
|
};
|
|
64261
64261
|
},
|
|
64262
|
-
|
|
64263
|
-
(position, buffer, readString) => {
|
|
64262
|
+
function templateLiteral(position, buffer, readString) {
|
|
64264
64263
|
const start = buffer[position++];
|
|
64265
64264
|
const end = buffer[position++];
|
|
64266
64265
|
const expressions = convertNodeList(buffer[position++], buffer, readString);
|
|
@@ -64269,12 +64268,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64269
64268
|
type: "TemplateLiteral",
|
|
64270
64269
|
start,
|
|
64271
64270
|
end,
|
|
64272
|
-
|
|
64273
|
-
|
|
64271
|
+
quasis,
|
|
64272
|
+
expressions
|
|
64274
64273
|
};
|
|
64275
64274
|
},
|
|
64276
|
-
|
|
64277
|
-
(position, buffer) => {
|
|
64275
|
+
function thisExpression(position, buffer) {
|
|
64278
64276
|
const start = buffer[position++];
|
|
64279
64277
|
const end = buffer[position++];
|
|
64280
64278
|
return {
|
|
@@ -64283,8 +64281,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64283
64281
|
end
|
|
64284
64282
|
};
|
|
64285
64283
|
},
|
|
64286
|
-
|
|
64287
|
-
(position, buffer, readString) => {
|
|
64284
|
+
function throwStatement(position, buffer, readString) {
|
|
64288
64285
|
const start = buffer[position++];
|
|
64289
64286
|
const end = buffer[position++];
|
|
64290
64287
|
const argument = convertNode(position, buffer, readString);
|
|
@@ -64295,24 +64292,24 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64295
64292
|
argument
|
|
64296
64293
|
};
|
|
64297
64294
|
},
|
|
64298
|
-
|
|
64299
|
-
(position, buffer, readString) => {
|
|
64295
|
+
function tryStatement(position, buffer, readString) {
|
|
64300
64296
|
const start = buffer[position++];
|
|
64301
64297
|
const end = buffer[position++];
|
|
64302
64298
|
const handlerPosition = buffer[position++];
|
|
64299
|
+
const handler = handlerPosition === 0 ? null : convertNode(handlerPosition, buffer, readString);
|
|
64303
64300
|
const finalizerPosition = buffer[position++];
|
|
64301
|
+
const finalizer = finalizerPosition === 0 ? null : convertNode(finalizerPosition, buffer, readString);
|
|
64304
64302
|
const block = convertNode(position, buffer, readString);
|
|
64305
64303
|
return {
|
|
64306
64304
|
type: "TryStatement",
|
|
64307
64305
|
start,
|
|
64308
64306
|
end,
|
|
64309
64307
|
block,
|
|
64310
|
-
|
|
64311
|
-
|
|
64308
|
+
handler,
|
|
64309
|
+
finalizer
|
|
64312
64310
|
};
|
|
64313
64311
|
},
|
|
64314
|
-
|
|
64315
|
-
(position, buffer, readString) => {
|
|
64312
|
+
function unaryExpression(position, buffer, readString) {
|
|
64316
64313
|
const start = buffer[position++];
|
|
64317
64314
|
const end = buffer[position++];
|
|
64318
64315
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -64321,29 +64318,28 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64321
64318
|
type: "UnaryExpression",
|
|
64322
64319
|
start,
|
|
64323
64320
|
end,
|
|
64324
|
-
argument,
|
|
64325
64321
|
operator,
|
|
64322
|
+
argument,
|
|
64326
64323
|
prefix: true
|
|
64327
64324
|
};
|
|
64328
64325
|
},
|
|
64329
|
-
|
|
64330
|
-
(position, buffer, readString) => {
|
|
64326
|
+
function updateExpression(position, buffer, readString) {
|
|
64331
64327
|
const start = buffer[position++];
|
|
64332
64328
|
const end = buffer[position++];
|
|
64333
|
-
const
|
|
64329
|
+
const flags = buffer[position++];
|
|
64330
|
+
const prefix = (flags & 1) === 1;
|
|
64334
64331
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
64335
64332
|
const argument = convertNode(position, buffer, readString);
|
|
64336
64333
|
return {
|
|
64337
64334
|
type: "UpdateExpression",
|
|
64338
64335
|
start,
|
|
64339
64336
|
end,
|
|
64340
|
-
|
|
64337
|
+
prefix,
|
|
64341
64338
|
operator,
|
|
64342
|
-
|
|
64339
|
+
argument
|
|
64343
64340
|
};
|
|
64344
64341
|
},
|
|
64345
|
-
|
|
64346
|
-
(position, buffer, readString) => {
|
|
64342
|
+
function variableDeclaration(position, buffer, readString) {
|
|
64347
64343
|
const start = buffer[position++];
|
|
64348
64344
|
const end = buffer[position++];
|
|
64349
64345
|
const kind = FIXED_STRINGS[buffer[position++]];
|
|
@@ -64352,26 +64348,25 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64352
64348
|
type: "VariableDeclaration",
|
|
64353
64349
|
start,
|
|
64354
64350
|
end,
|
|
64355
|
-
|
|
64356
|
-
|
|
64351
|
+
kind,
|
|
64352
|
+
declarations
|
|
64357
64353
|
};
|
|
64358
64354
|
},
|
|
64359
|
-
|
|
64360
|
-
(position, buffer, readString) => {
|
|
64355
|
+
function variableDeclarator(position, buffer, readString) {
|
|
64361
64356
|
const start = buffer[position++];
|
|
64362
64357
|
const end = buffer[position++];
|
|
64363
|
-
const
|
|
64358
|
+
const initPosition = buffer[position++];
|
|
64359
|
+
const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
|
|
64364
64360
|
const id = convertNode(position, buffer, readString);
|
|
64365
64361
|
return {
|
|
64366
64362
|
type: "VariableDeclarator",
|
|
64367
64363
|
start,
|
|
64368
64364
|
end,
|
|
64369
64365
|
id,
|
|
64370
|
-
init
|
|
64366
|
+
init
|
|
64371
64367
|
};
|
|
64372
64368
|
},
|
|
64373
|
-
|
|
64374
|
-
(position, buffer, readString) => {
|
|
64369
|
+
function whileStatement(position, buffer, readString) {
|
|
64375
64370
|
const start = buffer[position++];
|
|
64376
64371
|
const end = buffer[position++];
|
|
64377
64372
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
@@ -64380,32 +64375,36 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64380
64375
|
type: "WhileStatement",
|
|
64381
64376
|
start,
|
|
64382
64377
|
end,
|
|
64383
|
-
|
|
64384
|
-
|
|
64378
|
+
test,
|
|
64379
|
+
body
|
|
64385
64380
|
};
|
|
64386
64381
|
},
|
|
64387
|
-
|
|
64388
|
-
(position, buffer, readString) => {
|
|
64382
|
+
function yieldExpression(position, buffer, readString) {
|
|
64389
64383
|
const start = buffer[position++];
|
|
64390
64384
|
const end = buffer[position++];
|
|
64391
|
-
const
|
|
64385
|
+
const flags = buffer[position++];
|
|
64386
|
+
const delegate = (flags & 1) === 1;
|
|
64392
64387
|
const argumentPosition = buffer[position];
|
|
64388
|
+
const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
|
|
64393
64389
|
return {
|
|
64394
64390
|
type: "YieldExpression",
|
|
64395
64391
|
start,
|
|
64396
64392
|
end,
|
|
64397
|
-
|
|
64398
|
-
|
|
64393
|
+
delegate,
|
|
64394
|
+
argument
|
|
64399
64395
|
};
|
|
64400
|
-
},
|
|
64401
|
-
// index:76; Syntax Error
|
|
64402
|
-
(position, buffer, readString) => {
|
|
64403
|
-
const pos = buffer[position++];
|
|
64404
|
-
const message = convertString(position, buffer, readString);
|
|
64405
|
-
error(logParseError(message, pos));
|
|
64406
64396
|
}
|
|
64407
64397
|
];
|
|
64408
|
-
|
|
64398
|
+
function convertNode(position, buffer, readString) {
|
|
64399
|
+
const nodeType = buffer[position];
|
|
64400
|
+
const converter = nodeConverters[nodeType];
|
|
64401
|
+
if (!converter) {
|
|
64402
|
+
console.trace();
|
|
64403
|
+
throw new Error(`Unknown node type: ${nodeType}`);
|
|
64404
|
+
}
|
|
64405
|
+
return converter(position + 1, buffer, readString);
|
|
64406
|
+
}
|
|
64407
|
+
function convertNodeList(position, buffer, readString) {
|
|
64409
64408
|
const length = buffer[position++];
|
|
64410
64409
|
const list = [];
|
|
64411
64410
|
for (let index = 0; index < length; index++) {
|
|
@@ -64413,8 +64412,8 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64413
64412
|
list.push(nodePosition ? convertNode(nodePosition, buffer, readString) : null);
|
|
64414
64413
|
}
|
|
64415
64414
|
return list;
|
|
64416
|
-
}
|
|
64417
|
-
var
|
|
64415
|
+
}
|
|
64416
|
+
var convertAnnotations = (position, buffer) => {
|
|
64418
64417
|
const length = buffer[position++];
|
|
64419
64418
|
const list = [];
|
|
64420
64419
|
for (let index = 0; index < length; index++) {
|
|
@@ -64428,22 +64427,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64428
64427
|
const type = FIXED_STRINGS[buffer[position]];
|
|
64429
64428
|
return { end, start, type };
|
|
64430
64429
|
};
|
|
64431
|
-
var addAnnotationProperty = (node, annotations, key) => {
|
|
64432
|
-
if (annotations.length > 0) {
|
|
64433
|
-
return {
|
|
64434
|
-
...node,
|
|
64435
|
-
[key]: annotations
|
|
64436
|
-
};
|
|
64437
|
-
}
|
|
64438
|
-
return node;
|
|
64439
|
-
};
|
|
64440
64430
|
var convertString = (position, buffer, readString) => {
|
|
64441
64431
|
const length = buffer[position++];
|
|
64442
64432
|
const bytePosition = position << 2;
|
|
64443
64433
|
return readString(bytePosition, length);
|
|
64444
64434
|
};
|
|
64445
|
-
var ANNOTATION_KEY = "_rollupAnnotations";
|
|
64446
|
-
var INVALID_ANNOTATION_KEY = "_rollupRemoved";
|
|
64447
64435
|
function getReadStringFunction(astBuffer) {
|
|
64448
64436
|
if (typeof Buffer !== "undefined" && astBuffer instanceof Buffer) {
|
|
64449
64437
|
return function readString(start, length) {
|
|
@@ -64458,15 +64446,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64458
64446
|
}
|
|
64459
64447
|
var parseAst = (input, { allowReturnOutsideFunction = false } = {}) => {
|
|
64460
64448
|
const astBuffer = native_js.parse(input, allowReturnOutsideFunction);
|
|
64461
|
-
|
|
64462
|
-
const result = convertProgram(astBuffer.buffer, readString);
|
|
64463
|
-
return result;
|
|
64449
|
+
return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
|
|
64464
64450
|
};
|
|
64465
64451
|
var parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal } = {}) => {
|
|
64466
64452
|
const astBuffer = await native_js.parseAsync(input, allowReturnOutsideFunction, signal);
|
|
64467
|
-
|
|
64468
|
-
const result = convertProgram(astBuffer.buffer, readString);
|
|
64469
|
-
return result;
|
|
64453
|
+
return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
|
|
64470
64454
|
};
|
|
64471
64455
|
exports2.ANNOTATION_KEY = ANNOTATION_KEY;
|
|
64472
64456
|
exports2.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
|
|
@@ -64559,7 +64543,6 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64559
64543
|
exports2.logInvalidFunctionPluginHook = logInvalidFunctionPluginHook;
|
|
64560
64544
|
exports2.logInvalidLogPosition = logInvalidLogPosition;
|
|
64561
64545
|
exports2.logInvalidOption = logInvalidOption;
|
|
64562
|
-
exports2.logInvalidRollupPhaseForAddWatchFile = logInvalidRollupPhaseForAddWatchFile;
|
|
64563
64546
|
exports2.logInvalidRollupPhaseForChunkEmission = logInvalidRollupPhaseForChunkEmission;
|
|
64564
64547
|
exports2.logInvalidSetAssetSourceCall = logInvalidSetAssetSourceCall;
|
|
64565
64548
|
exports2.logInvalidSourcemapForError = logInvalidSourcemapForError;
|
|
@@ -64605,9 +64588,9 @@ ${smallChunks} are below minChunkSize.`
|
|
|
64605
64588
|
}
|
|
64606
64589
|
});
|
|
64607
64590
|
|
|
64608
|
-
// node_modules/.pnpm/rollup@4.
|
|
64591
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js
|
|
64609
64592
|
var require_rollup = __commonJS({
|
|
64610
|
-
"node_modules/.pnpm/rollup@4.
|
|
64593
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js"(exports2) {
|
|
64611
64594
|
"use strict";
|
|
64612
64595
|
var parseAst_js = require_parseAst();
|
|
64613
64596
|
var process$1 = require("node:process");
|
|
@@ -64628,7 +64611,7 @@ var require_rollup = __commonJS({
|
|
|
64628
64611
|
return n2;
|
|
64629
64612
|
}
|
|
64630
64613
|
var tty__namespace = /* @__PURE__ */ _interopNamespaceDefault(tty);
|
|
64631
|
-
var version = "4.
|
|
64614
|
+
var version = "4.10.0";
|
|
64632
64615
|
function ensureArray$1(items) {
|
|
64633
64616
|
if (Array.isArray(items)) {
|
|
64634
64617
|
return items.filter(Boolean);
|
|
@@ -64645,19 +64628,23 @@ var require_rollup = __commonJS({
|
|
|
64645
64628
|
BuildPhase2[BuildPhase2["GENERATE"] = 2] = "GENERATE";
|
|
64646
64629
|
})(BuildPhase || (BuildPhase = {}));
|
|
64647
64630
|
var textEncoder;
|
|
64648
|
-
|
|
64649
|
-
|
|
64631
|
+
var getHash64 = (input) => native_js.xxhashBase64Url(ensureBuffer(input));
|
|
64632
|
+
var getHash36 = (input) => native_js.xxhashBase36(ensureBuffer(input));
|
|
64633
|
+
var getHash16 = (input) => native_js.xxhashBase16(ensureBuffer(input));
|
|
64634
|
+
var hasherByType = {
|
|
64635
|
+
base36: getHash36,
|
|
64636
|
+
base64: getHash64,
|
|
64637
|
+
hex: getHash16
|
|
64638
|
+
};
|
|
64639
|
+
function ensureBuffer(input) {
|
|
64650
64640
|
if (typeof input === "string") {
|
|
64651
64641
|
if (typeof Buffer === "undefined") {
|
|
64652
64642
|
textEncoder ??= new TextEncoder();
|
|
64653
|
-
|
|
64654
|
-
} else {
|
|
64655
|
-
buffer = Buffer.from(input);
|
|
64643
|
+
return textEncoder.encode(input);
|
|
64656
64644
|
}
|
|
64657
|
-
|
|
64658
|
-
buffer = input;
|
|
64645
|
+
return Buffer.from(input);
|
|
64659
64646
|
}
|
|
64660
|
-
return
|
|
64647
|
+
return input;
|
|
64661
64648
|
}
|
|
64662
64649
|
function getOrCreate(map, key, init2) {
|
|
64663
64650
|
const existing = map.get(key);
|
|
@@ -64688,13 +64675,13 @@ var require_rollup = __commonJS({
|
|
|
64688
64675
|
var hashPlaceholderLeft = "!~{";
|
|
64689
64676
|
var hashPlaceholderRight = "}~";
|
|
64690
64677
|
var hashPlaceholderOverhead = hashPlaceholderLeft.length + hashPlaceholderRight.length;
|
|
64691
|
-
var
|
|
64692
|
-
var
|
|
64678
|
+
var MAX_HASH_SIZE = 22;
|
|
64679
|
+
var DEFAULT_HASH_SIZE = 8;
|
|
64693
64680
|
var getHashPlaceholderGenerator = () => {
|
|
64694
64681
|
let nextIndex = 0;
|
|
64695
|
-
return (optionName, hashSize
|
|
64696
|
-
if (hashSize >
|
|
64697
|
-
return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${
|
|
64682
|
+
return (optionName, hashSize) => {
|
|
64683
|
+
if (hashSize > MAX_HASH_SIZE) {
|
|
64684
|
+
return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${MAX_HASH_SIZE} characters, received ${hashSize}. Check the "${optionName}" option.`));
|
|
64698
64685
|
}
|
|
64699
64686
|
const placeholder = `${hashPlaceholderLeft}${toBase64(++nextIndex).padStart(hashSize - hashPlaceholderOverhead, "0")}${hashPlaceholderRight}`;
|
|
64700
64687
|
if (placeholder.length > hashSize) {
|
|
@@ -64703,7 +64690,7 @@ var require_rollup = __commonJS({
|
|
|
64703
64690
|
return placeholder;
|
|
64704
64691
|
};
|
|
64705
64692
|
};
|
|
64706
|
-
var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${
|
|
64693
|
+
var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${MAX_HASH_SIZE - hashPlaceholderOverhead}}${hashPlaceholderRight}`, "g");
|
|
64707
64694
|
var replacePlaceholders = (code, hashesByPlaceholder) => code.replace(REPLACER_REGEX, (placeholder) => hashesByPlaceholder.get(placeholder) || placeholder);
|
|
64708
64695
|
var replaceSinglePlaceholder = (code, placeholder, value) => code.replace(REPLACER_REGEX, (match2) => match2 === placeholder ? value : match2);
|
|
64709
64696
|
var replacePlaceholdersWithDefaultAndGetContainedPlaceholders = (code, placeholders) => {
|
|
@@ -64789,7 +64776,7 @@ var require_rollup = __commonJS({
|
|
|
64789
64776
|
return makeUnique(renderNamePattern(typeof outputOptions.assetFileNames === "function" ? outputOptions.assetFileNames({ name, source, type: "asset" }) : outputOptions.assetFileNames, "output.assetFileNames", {
|
|
64790
64777
|
ext: () => node_path.extname(emittedName).slice(1),
|
|
64791
64778
|
extname: () => node_path.extname(emittedName),
|
|
64792
|
-
hash: (size) => sourceHash.slice(0, Math.max(0, size ||
|
|
64779
|
+
hash: (size) => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
|
|
64793
64780
|
name: () => emittedName.slice(0, Math.max(0, emittedName.length - node_path.extname(emittedName).length))
|
|
64794
64781
|
}), bundle);
|
|
64795
64782
|
}
|
|
@@ -64895,9 +64882,11 @@ var require_rollup = __commonJS({
|
|
|
64895
64882
|
this.facadeChunkByModule = facadeChunkByModule;
|
|
64896
64883
|
};
|
|
64897
64884
|
this.setOutputBundle = (bundle, outputOptions) => {
|
|
64885
|
+
const getHash = hasherByType[outputOptions.hashCharacters];
|
|
64898
64886
|
const output = this.output = {
|
|
64899
64887
|
bundle,
|
|
64900
64888
|
fileNamesBySource: /* @__PURE__ */ new Map(),
|
|
64889
|
+
getHash,
|
|
64901
64890
|
outputOptions
|
|
64902
64891
|
};
|
|
64903
64892
|
for (const emittedFile of this.filesByReferenceId.values()) {
|
|
@@ -64911,7 +64900,7 @@ var require_rollup = __commonJS({
|
|
|
64911
64900
|
if (consumedFile.fileName) {
|
|
64912
64901
|
this.finalizeAdditionalAsset(consumedFile, consumedFile.source, output);
|
|
64913
64902
|
} else {
|
|
64914
|
-
const sourceHash =
|
|
64903
|
+
const sourceHash = getHash(consumedFile.source);
|
|
64915
64904
|
getOrCreate(consumedAssetsByHash, sourceHash, () => []).push(consumedFile);
|
|
64916
64905
|
}
|
|
64917
64906
|
} else if (consumedFile.type === "prebuilt-chunk") {
|
|
@@ -64931,7 +64920,7 @@ var require_rollup = __commonJS({
|
|
|
64931
64920
|
assignReferenceId(file, idBase) {
|
|
64932
64921
|
let referenceId = idBase;
|
|
64933
64922
|
do {
|
|
64934
|
-
referenceId =
|
|
64923
|
+
referenceId = getHash64(referenceId).slice(0, 8).replaceAll("-", "$");
|
|
64935
64924
|
} while (this.filesByReferenceId.has(referenceId) || this.outputFileEmitters.some(({ filesByReferenceId }) => filesByReferenceId.has(referenceId)));
|
|
64936
64925
|
file.referenceId = referenceId;
|
|
64937
64926
|
this.filesByReferenceId.set(referenceId, file);
|
|
@@ -65031,10 +65020,10 @@ var require_rollup = __commonJS({
|
|
|
65031
65020
|
}
|
|
65032
65021
|
return referenceId;
|
|
65033
65022
|
}
|
|
65034
|
-
finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, outputOptions }) {
|
|
65023
|
+
finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, getHash, outputOptions }) {
|
|
65035
65024
|
let { fileName, needsCodeReference, referenceId } = consumedFile;
|
|
65036
65025
|
if (!fileName) {
|
|
65037
|
-
const sourceHash =
|
|
65026
|
+
const sourceHash = getHash(source);
|
|
65038
65027
|
fileName = fileNamesBySource.get(sourceHash);
|
|
65039
65028
|
if (!fileName) {
|
|
65040
65029
|
fileName = generateAssetFileName(consumedFile.name, source, sourceHash, outputOptions, bundle);
|
|
@@ -65348,9 +65337,6 @@ var require_rollup = __commonJS({
|
|
|
65348
65337
|
}
|
|
65349
65338
|
return {
|
|
65350
65339
|
addWatchFile(id) {
|
|
65351
|
-
if (graph.phase >= BuildPhase.GENERATE) {
|
|
65352
|
-
return this.error(parseAst_js.logInvalidRollupPhaseForAddWatchFile());
|
|
65353
|
-
}
|
|
65354
65340
|
graph.watchFiles[id] = true;
|
|
65355
65341
|
},
|
|
65356
65342
|
cache: cacheInstance,
|
|
@@ -65786,6 +65772,7 @@ var require_rollup = __commonJS({
|
|
|
65786
65772
|
freeze: getOption("freeze"),
|
|
65787
65773
|
generatedCode: getObjectOption(config, overrides, "generatedCode", objectifyOptionWithPresets(generatedCodePresets, "output.generatedCode", parseAst_js.URL_OUTPUT_GENERATEDCODE, "")),
|
|
65788
65774
|
globals: getOption("globals"),
|
|
65775
|
+
hashCharacters: getOption("hashCharacters"),
|
|
65789
65776
|
hoistTransitiveImports: getOption("hoistTransitiveImports"),
|
|
65790
65777
|
indent: getOption("indent"),
|
|
65791
65778
|
inlineDynamicImports: getOption("inlineDynamicImports"),
|
|
@@ -66184,6 +66171,15 @@ var require_rollup = __commonJS({
|
|
|
66184
66171
|
prependRight(content) {
|
|
66185
66172
|
this.intro = content + this.intro;
|
|
66186
66173
|
}
|
|
66174
|
+
reset() {
|
|
66175
|
+
this.intro = "";
|
|
66176
|
+
this.outro = "";
|
|
66177
|
+
if (this.edited) {
|
|
66178
|
+
this.content = this.original;
|
|
66179
|
+
this.storeName = false;
|
|
66180
|
+
this.edited = false;
|
|
66181
|
+
}
|
|
66182
|
+
}
|
|
66187
66183
|
split(index) {
|
|
66188
66184
|
const sliceIndex = index - this.start;
|
|
66189
66185
|
const originalBefore = this.original.slice(0, sliceIndex);
|
|
@@ -66252,8 +66248,8 @@ var require_rollup = __commonJS({
|
|
|
66252
66248
|
}
|
|
66253
66249
|
};
|
|
66254
66250
|
function getBtoa() {
|
|
66255
|
-
if (typeof
|
|
66256
|
-
return (str) =>
|
|
66251
|
+
if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") {
|
|
66252
|
+
return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
|
|
66257
66253
|
} else if (typeof Buffer === "function") {
|
|
66258
66254
|
return (str) => Buffer.from(str, "utf-8").toString("base64");
|
|
66259
66255
|
} else {
|
|
@@ -66804,6 +66800,26 @@ var require_rollup = __commonJS({
|
|
|
66804
66800
|
}
|
|
66805
66801
|
return this;
|
|
66806
66802
|
}
|
|
66803
|
+
reset(start, end) {
|
|
66804
|
+
while (start < 0)
|
|
66805
|
+
start += this.original.length;
|
|
66806
|
+
while (end < 0)
|
|
66807
|
+
end += this.original.length;
|
|
66808
|
+
if (start === end)
|
|
66809
|
+
return this;
|
|
66810
|
+
if (start < 0 || end > this.original.length)
|
|
66811
|
+
throw new Error("Character is out of bounds");
|
|
66812
|
+
if (start > end)
|
|
66813
|
+
throw new Error("end must be greater than start");
|
|
66814
|
+
this._split(start);
|
|
66815
|
+
this._split(end);
|
|
66816
|
+
let chunk = this.byStart[start];
|
|
66817
|
+
while (chunk) {
|
|
66818
|
+
chunk.reset();
|
|
66819
|
+
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
|
66820
|
+
}
|
|
66821
|
+
return this;
|
|
66822
|
+
}
|
|
66807
66823
|
lastChar() {
|
|
66808
66824
|
if (this.outro.length)
|
|
66809
66825
|
return this.outro[this.outro.length - 1];
|
|
@@ -67648,10 +67664,9 @@ var require_rollup = __commonJS({
|
|
|
67648
67664
|
"with",
|
|
67649
67665
|
"yield"
|
|
67650
67666
|
]);
|
|
67651
|
-
var RESERVED_NAMES$1 = RESERVED_NAMES;
|
|
67652
67667
|
var illegalCharacters = /[^\w$]/g;
|
|
67653
67668
|
var startsWithDigit = (value) => /\d/.test(value[0]);
|
|
67654
|
-
var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES
|
|
67669
|
+
var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES.has(value) || value === "arguments";
|
|
67655
67670
|
function isLegal(value) {
|
|
67656
67671
|
if (needsEscape(value)) {
|
|
67657
67672
|
return false;
|
|
@@ -67664,6 +67679,23 @@ var require_rollup = __commonJS({
|
|
|
67664
67679
|
value = `_${value}`;
|
|
67665
67680
|
return value || "_";
|
|
67666
67681
|
}
|
|
67682
|
+
var VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
|
|
67683
|
+
var NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
|
|
67684
|
+
function stringifyObjectKeyIfNeeded(key) {
|
|
67685
|
+
if (VALID_IDENTIFIER_REGEXP.test(key)) {
|
|
67686
|
+
return key === "__proto__" ? '["__proto__"]' : key;
|
|
67687
|
+
}
|
|
67688
|
+
if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
|
|
67689
|
+
return key;
|
|
67690
|
+
}
|
|
67691
|
+
return JSON.stringify(key);
|
|
67692
|
+
}
|
|
67693
|
+
function stringifyIdentifierIfNeeded(key) {
|
|
67694
|
+
if (VALID_IDENTIFIER_REGEXP.test(key)) {
|
|
67695
|
+
return key;
|
|
67696
|
+
}
|
|
67697
|
+
return JSON.stringify(key);
|
|
67698
|
+
}
|
|
67667
67699
|
var ExternalModule = class {
|
|
67668
67700
|
constructor(options, id, moduleSideEffects, meta, renormalizeRenderPath, attributes) {
|
|
67669
67701
|
this.options = options;
|
|
@@ -69783,8 +69815,15 @@ var require_rollup = __commonJS({
|
|
|
69783
69815
|
this.description = description;
|
|
69784
69816
|
}
|
|
69785
69817
|
deoptimizeArgumentsOnInteractionAtPath({ args, type }, path3) {
|
|
69786
|
-
if (type === INTERACTION_CALLED && path3.length === 0
|
|
69787
|
-
|
|
69818
|
+
if (type === INTERACTION_CALLED && path3.length === 0) {
|
|
69819
|
+
if (this.description.mutatesSelfAsArray) {
|
|
69820
|
+
args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
|
|
69821
|
+
}
|
|
69822
|
+
if (this.description.mutatesArgs) {
|
|
69823
|
+
for (let index = 1; index < args.length; index++) {
|
|
69824
|
+
args[index].deoptimizePath(UNKNOWN_PATH);
|
|
69825
|
+
}
|
|
69826
|
+
}
|
|
69788
69827
|
}
|
|
69789
69828
|
}
|
|
69790
69829
|
getReturnExpressionWhenCalledAtPath(path3, { args }) {
|
|
@@ -69820,6 +69859,7 @@ var require_rollup = __commonJS({
|
|
|
69820
69859
|
var METHOD_RETURNS_BOOLEAN = [
|
|
69821
69860
|
new Method({
|
|
69822
69861
|
callsArgs: null,
|
|
69862
|
+
mutatesArgs: false,
|
|
69823
69863
|
mutatesSelfAsArray: false,
|
|
69824
69864
|
returns: null,
|
|
69825
69865
|
returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
|
|
@@ -69828,6 +69868,7 @@ var require_rollup = __commonJS({
|
|
|
69828
69868
|
var METHOD_RETURNS_STRING = [
|
|
69829
69869
|
new Method({
|
|
69830
69870
|
callsArgs: null,
|
|
69871
|
+
mutatesArgs: false,
|
|
69831
69872
|
mutatesSelfAsArray: false,
|
|
69832
69873
|
returns: null,
|
|
69833
69874
|
returnsPrimitive: UNKNOWN_LITERAL_STRING
|
|
@@ -69836,6 +69877,7 @@ var require_rollup = __commonJS({
|
|
|
69836
69877
|
var METHOD_RETURNS_NUMBER = [
|
|
69837
69878
|
new Method({
|
|
69838
69879
|
callsArgs: null,
|
|
69880
|
+
mutatesArgs: false,
|
|
69839
69881
|
mutatesSelfAsArray: false,
|
|
69840
69882
|
returns: null,
|
|
69841
69883
|
returnsPrimitive: UNKNOWN_LITERAL_NUMBER
|
|
@@ -69844,6 +69886,7 @@ var require_rollup = __commonJS({
|
|
|
69844
69886
|
var METHOD_RETURNS_UNKNOWN = [
|
|
69845
69887
|
new Method({
|
|
69846
69888
|
callsArgs: null,
|
|
69889
|
+
mutatesArgs: false,
|
|
69847
69890
|
mutatesSelfAsArray: false,
|
|
69848
69891
|
returns: null,
|
|
69849
69892
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -70230,6 +70273,7 @@ var require_rollup = __commonJS({
|
|
|
70230
70273
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN = [
|
|
70231
70274
|
new Method({
|
|
70232
70275
|
callsArgs: [0],
|
|
70276
|
+
mutatesArgs: false,
|
|
70233
70277
|
mutatesSelfAsArray: "deopt-only",
|
|
70234
70278
|
returns: null,
|
|
70235
70279
|
returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
|
|
@@ -70238,6 +70282,7 @@ var require_rollup = __commonJS({
|
|
|
70238
70282
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER = [
|
|
70239
70283
|
new Method({
|
|
70240
70284
|
callsArgs: [0],
|
|
70285
|
+
mutatesArgs: false,
|
|
70241
70286
|
mutatesSelfAsArray: "deopt-only",
|
|
70242
70287
|
returns: null,
|
|
70243
70288
|
returnsPrimitive: UNKNOWN_LITERAL_NUMBER
|
|
@@ -70246,6 +70291,7 @@ var require_rollup = __commonJS({
|
|
|
70246
70291
|
var METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY = [
|
|
70247
70292
|
new Method({
|
|
70248
70293
|
callsArgs: null,
|
|
70294
|
+
mutatesArgs: false,
|
|
70249
70295
|
mutatesSelfAsArray: true,
|
|
70250
70296
|
returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
|
|
70251
70297
|
returnsPrimitive: null
|
|
@@ -70254,6 +70300,7 @@ var require_rollup = __commonJS({
|
|
|
70254
70300
|
var METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
|
|
70255
70301
|
new Method({
|
|
70256
70302
|
callsArgs: null,
|
|
70303
|
+
mutatesArgs: false,
|
|
70257
70304
|
mutatesSelfAsArray: "deopt-only",
|
|
70258
70305
|
returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
|
|
70259
70306
|
returnsPrimitive: null
|
|
@@ -70262,14 +70309,16 @@ var require_rollup = __commonJS({
|
|
|
70262
70309
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
|
|
70263
70310
|
new Method({
|
|
70264
70311
|
callsArgs: [0],
|
|
70312
|
+
mutatesArgs: false,
|
|
70265
70313
|
mutatesSelfAsArray: "deopt-only",
|
|
70266
70314
|
returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
|
|
70267
70315
|
returnsPrimitive: null
|
|
70268
70316
|
})
|
|
70269
70317
|
];
|
|
70270
|
-
var
|
|
70318
|
+
var METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER = [
|
|
70271
70319
|
new Method({
|
|
70272
70320
|
callsArgs: null,
|
|
70321
|
+
mutatesArgs: true,
|
|
70273
70322
|
mutatesSelfAsArray: true,
|
|
70274
70323
|
returns: null,
|
|
70275
70324
|
returnsPrimitive: UNKNOWN_LITERAL_NUMBER
|
|
@@ -70278,6 +70327,7 @@ var require_rollup = __commonJS({
|
|
|
70278
70327
|
var METHOD_MUTATES_SELF_RETURNS_UNKNOWN = [
|
|
70279
70328
|
new Method({
|
|
70280
70329
|
callsArgs: null,
|
|
70330
|
+
mutatesArgs: false,
|
|
70281
70331
|
mutatesSelfAsArray: true,
|
|
70282
70332
|
returns: null,
|
|
70283
70333
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -70286,6 +70336,7 @@ var require_rollup = __commonJS({
|
|
|
70286
70336
|
var METHOD_DEOPTS_SELF_RETURNS_UNKNOWN = [
|
|
70287
70337
|
new Method({
|
|
70288
70338
|
callsArgs: null,
|
|
70339
|
+
mutatesArgs: false,
|
|
70289
70340
|
mutatesSelfAsArray: "deopt-only",
|
|
70290
70341
|
returns: null,
|
|
70291
70342
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -70294,6 +70345,7 @@ var require_rollup = __commonJS({
|
|
|
70294
70345
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN = [
|
|
70295
70346
|
new Method({
|
|
70296
70347
|
callsArgs: [0],
|
|
70348
|
+
mutatesArgs: false,
|
|
70297
70349
|
mutatesSelfAsArray: "deopt-only",
|
|
70298
70350
|
returns: null,
|
|
70299
70351
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -70302,6 +70354,7 @@ var require_rollup = __commonJS({
|
|
|
70302
70354
|
var METHOD_MUTATES_SELF_RETURNS_SELF = [
|
|
70303
70355
|
new Method({
|
|
70304
70356
|
callsArgs: null,
|
|
70357
|
+
mutatesArgs: false,
|
|
70305
70358
|
mutatesSelfAsArray: true,
|
|
70306
70359
|
returns: "self",
|
|
70307
70360
|
returnsPrimitive: null
|
|
@@ -70310,6 +70363,7 @@ var require_rollup = __commonJS({
|
|
|
70310
70363
|
var METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF = [
|
|
70311
70364
|
new Method({
|
|
70312
70365
|
callsArgs: [0],
|
|
70366
|
+
mutatesArgs: false,
|
|
70313
70367
|
mutatesSelfAsArray: true,
|
|
70314
70368
|
returns: "self",
|
|
70315
70369
|
returnsPrimitive: null
|
|
@@ -70339,7 +70393,7 @@ var require_rollup = __commonJS({
|
|
|
70339
70393
|
lastIndexOf: METHOD_RETURNS_NUMBER,
|
|
70340
70394
|
map: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY,
|
|
70341
70395
|
pop: METHOD_MUTATES_SELF_RETURNS_UNKNOWN,
|
|
70342
|
-
push:
|
|
70396
|
+
push: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
|
|
70343
70397
|
reduce: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
|
|
70344
70398
|
reduceRight: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
|
|
70345
70399
|
reverse: METHOD_MUTATES_SELF_RETURNS_SELF,
|
|
@@ -70350,7 +70404,7 @@ var require_rollup = __commonJS({
|
|
|
70350
70404
|
splice: METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY,
|
|
70351
70405
|
toLocaleString: METHOD_RETURNS_STRING,
|
|
70352
70406
|
toString: METHOD_RETURNS_STRING,
|
|
70353
|
-
unshift:
|
|
70407
|
+
unshift: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
|
|
70354
70408
|
values: METHOD_DEOPTS_SELF_RETURNS_UNKNOWN
|
|
70355
70409
|
}, OBJECT_PROTOTYPE, true);
|
|
70356
70410
|
var ArrayExpression = class extends NodeBase {
|
|
@@ -70669,7 +70723,7 @@ var require_rollup = __commonJS({
|
|
|
70669
70723
|
function getSafeName(baseName, usedNames, forbiddenNames) {
|
|
70670
70724
|
let safeName = baseName;
|
|
70671
70725
|
let count = 1;
|
|
70672
|
-
while (usedNames.has(safeName) || RESERVED_NAMES
|
|
70726
|
+
while (usedNames.has(safeName) || RESERVED_NAMES.has(safeName) || forbiddenNames?.has(safeName)) {
|
|
70673
70727
|
safeName = `${baseName}$${toBase64(count++)}`;
|
|
70674
70728
|
}
|
|
70675
70729
|
usedNames.add(safeName);
|
|
@@ -72109,7 +72163,7 @@ var require_rollup = __commonJS({
|
|
|
72109
72163
|
if (this.variable.declarations && this.variable.declarations.length === 1 && (decl_id = this.variable.declarations[0]) && this.start < decl_id.start && closestParentFunctionOrProgram(this) === closestParentFunctionOrProgram(decl_id)) {
|
|
72110
72164
|
return this.isTDZAccess = true;
|
|
72111
72165
|
}
|
|
72112
|
-
if (!this.variable.initReached) {
|
|
72166
|
+
if (!this.variable.initReached && this.scope.context.module.isExecuted) {
|
|
72113
72167
|
return this.isTDZAccess = true;
|
|
72114
72168
|
}
|
|
72115
72169
|
return this.isTDZAccess = false;
|
|
@@ -72291,7 +72345,7 @@ var require_rollup = __commonJS({
|
|
|
72291
72345
|
const name = identifier.name;
|
|
72292
72346
|
const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
|
|
72293
72347
|
if (existingVariable) {
|
|
72294
|
-
if (existingVariable.kind === "var") {
|
|
72348
|
+
if (existingVariable.kind === "var" || kind === "var" && existingVariable.kind === "parameter") {
|
|
72295
72349
|
existingVariable.addDeclaration(identifier, init2);
|
|
72296
72350
|
return existingVariable;
|
|
72297
72351
|
}
|
|
@@ -72615,7 +72669,7 @@ var require_rollup = __commonJS({
|
|
|
72615
72669
|
function getSystemExportStatement(exportedVariables, { exportNamesByVariable, snippets: { _, getObject, getPropertyAccess } }, modifier = "") {
|
|
72616
72670
|
if (exportedVariables.length === 1 && exportNamesByVariable.get(exportedVariables[0]).length === 1) {
|
|
72617
72671
|
const variable = exportedVariables[0];
|
|
72618
|
-
return `exports(
|
|
72672
|
+
return `exports(${JSON.stringify(exportNamesByVariable.get(variable)[0])},${_}${variable.getName(getPropertyAccess)}${modifier})`;
|
|
72619
72673
|
} else {
|
|
72620
72674
|
const fields = [];
|
|
72621
72675
|
for (const variable of exportedVariables) {
|
|
@@ -72627,7 +72681,7 @@ var require_rollup = __commonJS({
|
|
|
72627
72681
|
}
|
|
72628
72682
|
}
|
|
72629
72683
|
function renderSystemExportExpression(exportedVariable, expressionStart, expressionEnd, code, { exportNamesByVariable, snippets: { _ } }) {
|
|
72630
|
-
code.prependRight(expressionStart, `exports(
|
|
72684
|
+
code.prependRight(expressionStart, `exports(${JSON.stringify(exportNamesByVariable.get(exportedVariable)[0])},${_}`);
|
|
72631
72685
|
code.appendLeft(expressionEnd, ")");
|
|
72632
72686
|
}
|
|
72633
72687
|
function renderSystemExportFunction(exportedVariables, expressionStart, expressionEnd, needsParens, code, options) {
|
|
@@ -74246,7 +74300,7 @@ var require_rollup = __commonJS({
|
|
|
74246
74300
|
const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59;
|
|
74247
74301
|
const systemExportNames = format2 === "system" && exportNamesByVariable.get(this.variable);
|
|
74248
74302
|
if (systemExportNames) {
|
|
74249
|
-
code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(
|
|
74303
|
+
code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
|
|
74250
74304
|
code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ")" + (hasTrailingSemicolon ? "" : ";"));
|
|
74251
74305
|
} else {
|
|
74252
74306
|
code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
|
|
@@ -74671,14 +74725,14 @@ var require_rollup = __commonJS({
|
|
|
74671
74725
|
return `function ${INTEROP_NAMESPACE_COMPAT_VARIABLE}(e)${_}{${n2}${t}if${_}(${getIsCompatNamespace(snippets)})${_}return e;${n2}` + createNamespaceObject(t, t, snippets, liveBindings, freeze, symbols) + `}${n2}${n2}`;
|
|
74672
74726
|
},
|
|
74673
74727
|
[INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
|
|
74674
|
-
const { getDirectReturnFunction, getObject, n: n2 } = snippets;
|
|
74728
|
+
const { getDirectReturnFunction, getObject, n: n2, _ } = snippets;
|
|
74675
74729
|
const [left, right] = getDirectReturnFunction(["e"], {
|
|
74676
74730
|
functionReturn: true,
|
|
74677
74731
|
lineBreakIndent: null,
|
|
74678
74732
|
name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
|
|
74679
74733
|
});
|
|
74680
74734
|
return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
|
|
74681
|
-
[
|
|
74735
|
+
[null, `__proto__:${_}null`],
|
|
74682
74736
|
["default", "e"]
|
|
74683
74737
|
], { lineBreakIndent: null }), snippets))}${right}${n2}${n2}`;
|
|
74684
74738
|
},
|
|
@@ -75091,26 +75145,33 @@ var require_rollup = __commonJS({
|
|
|
75091
75145
|
};
|
|
75092
75146
|
var LabeledStatement = class extends NodeBase {
|
|
75093
75147
|
hasEffects(context) {
|
|
75094
|
-
const brokenFlow = context
|
|
75148
|
+
const { brokenFlow, includedLabels } = context;
|
|
75095
75149
|
context.ignore.labels.add(this.label.name);
|
|
75096
|
-
|
|
75097
|
-
|
|
75098
|
-
|
|
75099
|
-
|
|
75100
|
-
|
|
75101
|
-
context.
|
|
75150
|
+
context.includedLabels = /* @__PURE__ */ new Set();
|
|
75151
|
+
let bodyHasEffects = false;
|
|
75152
|
+
if (this.body.hasEffects(context)) {
|
|
75153
|
+
bodyHasEffects = true;
|
|
75154
|
+
} else {
|
|
75155
|
+
context.ignore.labels.delete(this.label.name);
|
|
75156
|
+
if (context.includedLabels.has(this.label.name)) {
|
|
75157
|
+
context.includedLabels.delete(this.label.name);
|
|
75158
|
+
context.brokenFlow = brokenFlow;
|
|
75159
|
+
}
|
|
75102
75160
|
}
|
|
75103
|
-
|
|
75161
|
+
context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
|
|
75162
|
+
return bodyHasEffects;
|
|
75104
75163
|
}
|
|
75105
75164
|
include(context, includeChildrenRecursively) {
|
|
75106
75165
|
this.included = true;
|
|
75107
|
-
const brokenFlow = context
|
|
75166
|
+
const { brokenFlow, includedLabels } = context;
|
|
75167
|
+
context.includedLabels = /* @__PURE__ */ new Set();
|
|
75108
75168
|
this.body.include(context, includeChildrenRecursively);
|
|
75109
75169
|
if (includeChildrenRecursively || context.includedLabels.has(this.label.name)) {
|
|
75110
75170
|
this.label.include();
|
|
75111
75171
|
context.includedLabels.delete(this.label.name);
|
|
75112
75172
|
context.brokenFlow = brokenFlow;
|
|
75113
75173
|
}
|
|
75174
|
+
context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
|
|
75114
75175
|
}
|
|
75115
75176
|
render(code, options) {
|
|
75116
75177
|
if (this.label.included) {
|
|
@@ -76647,7 +76708,7 @@ var require_rollup = __commonJS({
|
|
|
76647
76708
|
if (this.referencedEarly || variable.isReassigned || variable === this) {
|
|
76648
76709
|
return [
|
|
76649
76710
|
null,
|
|
76650
|
-
`get ${name2}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
|
|
76711
|
+
`get ${stringifyObjectKeyIfNeeded(name2)}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
|
|
76651
76712
|
];
|
|
76652
76713
|
}
|
|
76653
76714
|
return [name2, variable.getName(getPropertyAccess)];
|
|
@@ -77143,7 +77204,7 @@ var require_rollup = __commonJS({
|
|
|
77143
77204
|
this.ast.bind();
|
|
77144
77205
|
}
|
|
77145
77206
|
error(properties, pos) {
|
|
77146
|
-
this.addLocationToLogProps(properties, pos);
|
|
77207
|
+
pos !== void 0 && this.addLocationToLogProps(properties, pos);
|
|
77147
77208
|
return parseAst_js.error(properties);
|
|
77148
77209
|
}
|
|
77149
77210
|
// sum up the length of all ast nodes that are included
|
|
@@ -77591,7 +77652,7 @@ var require_rollup = __commonJS({
|
|
|
77591
77652
|
const source = node.source.value;
|
|
77592
77653
|
this.addSource(source, node);
|
|
77593
77654
|
if (node.exported) {
|
|
77594
|
-
const name = node.exported.name;
|
|
77655
|
+
const name = node.exported instanceof Literal ? node.exported.value : node.exported.name;
|
|
77595
77656
|
this.assertUniqueExportName(name, node.exported.start);
|
|
77596
77657
|
this.reexportDescriptions.set(name, {
|
|
77597
77658
|
localName: "*",
|
|
@@ -77892,7 +77953,9 @@ var require_rollup = __commonJS({
|
|
|
77892
77953
|
lineBreakIndent: null,
|
|
77893
77954
|
name: null
|
|
77894
77955
|
});
|
|
77895
|
-
exportBlock += `Object.defineProperty(exports,${_}
|
|
77956
|
+
exportBlock += `Object.defineProperty(exports,${_}${JSON.stringify(specifier.reexported)},${_}{${n2}${t}enumerable:${_}true,${n2}${t}get:${_}${left}${importName}${right}${n2}});`;
|
|
77957
|
+
} else if (specifier.reexported === "__proto__") {
|
|
77958
|
+
exportBlock += `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${importName}${n2}});`;
|
|
77896
77959
|
} else {
|
|
77897
77960
|
exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
|
|
77898
77961
|
}
|
|
@@ -77906,7 +77969,7 @@ var require_rollup = __commonJS({
|
|
|
77906
77969
|
if (lhs !== rhs) {
|
|
77907
77970
|
if (exportBlock)
|
|
77908
77971
|
exportBlock += n2;
|
|
77909
|
-
exportBlock += `${lhs}${_}=${_}${rhs};`;
|
|
77972
|
+
exportBlock += exported === "__proto__" ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${rhs}${n2}});` : `${lhs}${_}=${_}${rhs};`;
|
|
77910
77973
|
}
|
|
77911
77974
|
}
|
|
77912
77975
|
for (const { name, reexports } of dependencies) {
|
|
@@ -77987,7 +78050,7 @@ var require_rollup = __commonJS({
|
|
|
77987
78050
|
});
|
|
77988
78051
|
return `Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}get:${_}${left}${name}[k]${right}${n2}${t}})`;
|
|
77989
78052
|
}
|
|
77990
|
-
return `exports[k]${_}=${_}${name}[k]`;
|
|
78053
|
+
return `k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}value:${_}${name}[k]${n2}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`;
|
|
77991
78054
|
};
|
|
77992
78055
|
function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
|
|
77993
78056
|
const { _, cnst, n: n2 } = snippets;
|
|
@@ -78225,7 +78288,7 @@ var require_rollup = __commonJS({
|
|
|
78225
78288
|
if (defaultImport && importedNames.length === 0) {
|
|
78226
78289
|
importBlock.push(`import ${defaultImport.local} from${_}${pathWithAssertion}`);
|
|
78227
78290
|
} else if (importedNames.length > 0) {
|
|
78228
|
-
importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${specifier.imported} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
78291
|
+
importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
78229
78292
|
}
|
|
78230
78293
|
}
|
|
78231
78294
|
if (reexports) {
|
|
@@ -78249,11 +78312,11 @@ var require_rollup = __commonJS({
|
|
|
78249
78312
|
importBlock.push(`import${_}*${_}as ${name} from${_}${pathWithAssertion}`);
|
|
78250
78313
|
}
|
|
78251
78314
|
for (const specifier of namespaceReexports) {
|
|
78252
|
-
importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${specifier.reexported}`} };`);
|
|
78315
|
+
importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`} };`);
|
|
78253
78316
|
}
|
|
78254
78317
|
}
|
|
78255
78318
|
if (namedReexports.length > 0) {
|
|
78256
|
-
importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? specifier.imported : `${specifier.imported} as ${specifier.reexported}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
78319
|
+
importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? stringifyIdentifierIfNeeded(specifier.imported) : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
78257
78320
|
}
|
|
78258
78321
|
}
|
|
78259
78322
|
}
|
|
@@ -78266,7 +78329,7 @@ var require_rollup = __commonJS({
|
|
|
78266
78329
|
if (specifier.expression) {
|
|
78267
78330
|
exportBlock.push(`${cnst} ${specifier.local}${_}=${_}${specifier.expression};`);
|
|
78268
78331
|
}
|
|
78269
|
-
exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${specifier.exported}`);
|
|
78332
|
+
exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${stringifyIdentifierIfNeeded(specifier.exported)}`);
|
|
78270
78333
|
}
|
|
78271
78334
|
if (exportDeclaration.length > 0) {
|
|
78272
78335
|
exportBlock.push(`export${_}{${_}${exportDeclaration.join(`,${_}`)}${_}};`);
|
|
@@ -78409,18 +78472,20 @@ var require_rollup = __commonJS({
|
|
|
78409
78472
|
}
|
|
78410
78473
|
}
|
|
78411
78474
|
if (reexportedNames.length > 1 || hasStarReexport) {
|
|
78412
|
-
const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
|
|
78413
78475
|
if (hasStarReexport) {
|
|
78414
78476
|
if (!starExcludes) {
|
|
78415
78477
|
starExcludes = getStarExcludes({ dependencies, exports: exports3 });
|
|
78416
78478
|
}
|
|
78479
|
+
reexportedNames.unshift([null, `__proto__:${_}null`]);
|
|
78480
|
+
const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
|
|
78417
78481
|
setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, "}", "exports(setter);");
|
|
78418
78482
|
} else {
|
|
78483
|
+
const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
|
|
78419
78484
|
setter.push(`exports(${exportMapping});`);
|
|
78420
78485
|
}
|
|
78421
78486
|
} else {
|
|
78422
78487
|
const [key, value] = reexportedNames[0];
|
|
78423
|
-
setter.push(`exports(
|
|
78488
|
+
setter.push(`exports(${JSON.stringify(key)},${_}${value});`);
|
|
78424
78489
|
}
|
|
78425
78490
|
}
|
|
78426
78491
|
setters.push(setter.join(`${n2}${t}${t}${t}`));
|
|
@@ -78440,7 +78505,19 @@ var require_rollup = __commonJS({
|
|
|
78440
78505
|
}
|
|
78441
78506
|
return starExcludes;
|
|
78442
78507
|
};
|
|
78443
|
-
var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) =>
|
|
78508
|
+
var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) => {
|
|
78509
|
+
if (starExcludes) {
|
|
78510
|
+
const fields = [...starExcludes].map((property) => [
|
|
78511
|
+
property,
|
|
78512
|
+
"1"
|
|
78513
|
+
]);
|
|
78514
|
+
fields.unshift([null, `__proto__:${_}null`]);
|
|
78515
|
+
return `${n2}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
|
|
78516
|
+
lineBreakIndent: { base: t, t }
|
|
78517
|
+
})};`;
|
|
78518
|
+
}
|
|
78519
|
+
return "";
|
|
78520
|
+
};
|
|
78444
78521
|
var getImportBindingsBlock = (importBindings, t, { _, n: n2 }) => importBindings.length > 0 ? `${n2}${t}var ${importBindings.join(`,${_}`)};` : "";
|
|
78445
78522
|
var getHoistedExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.hoisted).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
|
|
78446
78523
|
function getExportsBlock(exports3, t, { _, n: n2 }) {
|
|
@@ -78448,9 +78525,9 @@ var require_rollup = __commonJS({
|
|
|
78448
78525
|
return "";
|
|
78449
78526
|
}
|
|
78450
78527
|
if (exports3.length === 1) {
|
|
78451
|
-
return `exports(
|
|
78528
|
+
return `exports(${JSON.stringify(exports3[0].name)},${_}${exports3[0].value});${n2}${n2}`;
|
|
78452
78529
|
}
|
|
78453
|
-
return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${name}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
|
|
78530
|
+
return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${stringifyObjectKeyIfNeeded(name)}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
|
|
78454
78531
|
}
|
|
78455
78532
|
var getSyntheticExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.expression).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
|
|
78456
78533
|
var getMissingExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.local === MISSING_EXPORT_SHIM_VARIABLE).map((expt) => ({ name: expt.exported, value: MISSING_EXPORT_SHIM_VARIABLE })), t, snippets);
|
|
@@ -78591,7 +78668,7 @@ ${outro}`;
|
|
|
78591
78668
|
} else if (module3 instanceof ExternalModule && name === "default") {
|
|
78592
78669
|
variable.setRenderNames(null, getSafeName([...module3.exportedVariables].some(([exportedVariable, exportedName]) => exportedName === "*" && exportedVariable.included) ? module3.suggestedVariableName + "__default" : module3.suggestedVariableName, usedNames, variable.forbiddenNames));
|
|
78593
78670
|
} else {
|
|
78594
|
-
variable.setRenderNames(null, getSafeName(name, usedNames, variable.forbiddenNames));
|
|
78671
|
+
variable.setRenderNames(null, getSafeName(makeLegal(name), usedNames, variable.forbiddenNames));
|
|
78595
78672
|
}
|
|
78596
78673
|
}
|
|
78597
78674
|
for (const variable of syntheticExports) {
|
|
@@ -78663,7 +78740,7 @@ ${outro}`;
|
|
|
78663
78740
|
nameIndex += 9 * 64 ** (exportName.length - 1);
|
|
78664
78741
|
exportName = toBase64(nameIndex);
|
|
78665
78742
|
}
|
|
78666
|
-
} while (RESERVED_NAMES
|
|
78743
|
+
} while (RESERVED_NAMES.has(exportName) || exportsByName.has(exportName));
|
|
78667
78744
|
}
|
|
78668
78745
|
exportsByName.set(exportName, variable);
|
|
78669
78746
|
exportNamesByVariable.set(variable, [exportName]);
|
|
@@ -79022,7 +79099,7 @@ ${outro}`;
|
|
|
79022
79099
|
const [pattern, patternName] = preserveModules || this.facadeModule?.isUserDefinedEntryPoint ? [entryFileNames, "output.entryFileNames"] : [chunkFileNames, "output.chunkFileNames"];
|
|
79023
79100
|
fileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
|
|
79024
79101
|
format: () => format2,
|
|
79025
|
-
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
|
|
79102
|
+
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
|
|
79026
79103
|
name: () => this.getChunkName()
|
|
79027
79104
|
});
|
|
79028
79105
|
if (!hashPlaceholder) {
|
|
@@ -79048,7 +79125,7 @@ ${outro}`;
|
|
|
79048
79125
|
sourcemapFileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
|
|
79049
79126
|
chunkhash: () => this.getPreliminaryFileName().hashPlaceholder || "",
|
|
79050
79127
|
format: () => format2,
|
|
79051
|
-
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
|
|
79128
|
+
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
|
|
79052
79129
|
name: () => this.getChunkName()
|
|
79053
79130
|
});
|
|
79054
79131
|
if (!hashPlaceholder) {
|
|
@@ -79764,9 +79841,12 @@ ${outro}`;
|
|
|
79764
79841
|
function getChunkAssignments(entries, manualChunkAliasByEntry, minChunkSize, log) {
|
|
79765
79842
|
const { chunkDefinitions, modulesInManualChunks } = getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry);
|
|
79766
79843
|
const { allEntries, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry } = analyzeModuleGraph(entries);
|
|
79767
|
-
const
|
|
79768
|
-
|
|
79769
|
-
|
|
79844
|
+
const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntries(dependentEntriesByModule, modulesInManualChunks));
|
|
79845
|
+
const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(allEntries, chunkAtoms);
|
|
79846
|
+
const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries);
|
|
79847
|
+
removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry);
|
|
79848
|
+
const { chunks, sideEffectAtoms, sizeByAtom } = getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize);
|
|
79849
|
+
chunkDefinitions.push(...getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log).map(({ modules }) => ({
|
|
79770
79850
|
alias: null,
|
|
79771
79851
|
modules
|
|
79772
79852
|
})));
|
|
@@ -79873,7 +79953,7 @@ ${outro}`;
|
|
|
79873
79953
|
}
|
|
79874
79954
|
return dynamicallyDependentEntriesByDynamicEntry;
|
|
79875
79955
|
}
|
|
79876
|
-
function
|
|
79956
|
+
function getChunksWithSameDependentEntries(modulesWithDependentEntries) {
|
|
79877
79957
|
const chunkModules = /* @__PURE__ */ Object.create(null);
|
|
79878
79958
|
for (const { dependentEntries, modules } of modulesWithDependentEntries) {
|
|
79879
79959
|
let chunkSignature = 0n;
|
|
@@ -79894,107 +79974,162 @@ ${outro}`;
|
|
|
79894
79974
|
}
|
|
79895
79975
|
}
|
|
79896
79976
|
}
|
|
79897
|
-
function
|
|
79898
|
-
const
|
|
79899
|
-
|
|
79900
|
-
|
|
79901
|
-
for (const { dependentEntries } of chunks) {
|
|
79977
|
+
function getStaticDependencyAtomsByEntry(allEntries, chunkAtoms) {
|
|
79978
|
+
const staticDependencyAtomsByEntry = allEntries.map(() => 0n);
|
|
79979
|
+
let atomMask = 1n;
|
|
79980
|
+
for (const { dependentEntries } of chunkAtoms) {
|
|
79902
79981
|
for (const entryIndex of dependentEntries) {
|
|
79903
|
-
|
|
79982
|
+
staticDependencyAtomsByEntry[entryIndex] |= atomMask;
|
|
79904
79983
|
}
|
|
79905
|
-
|
|
79984
|
+
atomMask <<= 1n;
|
|
79906
79985
|
}
|
|
79907
|
-
|
|
79908
|
-
|
|
79909
|
-
|
|
79910
|
-
|
|
79911
|
-
|
|
79912
|
-
|
|
79913
|
-
|
|
79986
|
+
return staticDependencyAtomsByEntry;
|
|
79987
|
+
}
|
|
79988
|
+
function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries) {
|
|
79989
|
+
const alreadyLoadedAtomsByEntry = allEntries.map((_entry, entryIndex) => dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n);
|
|
79990
|
+
for (const [dynamicEntryIndex, dynamicallyDependentEntries] of dynamicallyDependentEntriesByDynamicEntry) {
|
|
79991
|
+
dynamicallyDependentEntriesByDynamicEntry.delete(dynamicEntryIndex);
|
|
79992
|
+
const knownLoadedAtoms = alreadyLoadedAtomsByEntry[dynamicEntryIndex];
|
|
79993
|
+
let updatedLoadedAtoms = knownLoadedAtoms;
|
|
79994
|
+
for (const entryIndex of dynamicallyDependentEntries) {
|
|
79995
|
+
updatedLoadedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
|
|
79914
79996
|
}
|
|
79915
|
-
if (
|
|
79916
|
-
|
|
79997
|
+
if (updatedLoadedAtoms !== knownLoadedAtoms) {
|
|
79998
|
+
alreadyLoadedAtomsByEntry[dynamicEntryIndex] = updatedLoadedAtoms;
|
|
79917
79999
|
for (const dynamicImport of dynamicImportsByEntry[dynamicEntryIndex]) {
|
|
79918
|
-
getOrCreate(
|
|
80000
|
+
getOrCreate(dynamicallyDependentEntriesByDynamicEntry, dynamicImport, getNewSet).add(dynamicEntryIndex);
|
|
79919
80001
|
}
|
|
79920
80002
|
}
|
|
79921
80003
|
}
|
|
79922
|
-
|
|
79923
|
-
|
|
80004
|
+
return alreadyLoadedAtomsByEntry;
|
|
80005
|
+
}
|
|
80006
|
+
function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry) {
|
|
80007
|
+
let chunkMask = 1n;
|
|
80008
|
+
for (const { dependentEntries } of chunkAtoms) {
|
|
79924
80009
|
for (const entryIndex of dependentEntries) {
|
|
79925
|
-
if ((
|
|
80010
|
+
if ((alreadyLoadedAtomsByEntry[entryIndex] & chunkMask) === chunkMask) {
|
|
79926
80011
|
dependentEntries.delete(entryIndex);
|
|
79927
80012
|
}
|
|
79928
80013
|
}
|
|
79929
80014
|
chunkMask <<= 1n;
|
|
79930
80015
|
}
|
|
79931
80016
|
}
|
|
79932
|
-
function
|
|
79933
|
-
|
|
79934
|
-
const chunkPartition = getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize);
|
|
79935
|
-
if (!chunkPartition) {
|
|
79936
|
-
timeEnd("optimize chunks", 3);
|
|
79937
|
-
return initialChunks;
|
|
79938
|
-
}
|
|
79939
|
-
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(initialChunks.length, chunkPartition.small.size, "Initially"));
|
|
79940
|
-
mergeChunks(chunkPartition, minChunkSize);
|
|
79941
|
-
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
|
|
79942
|
-
timeEnd("optimize chunks", 3);
|
|
79943
|
-
return [...chunkPartition.small, ...chunkPartition.big];
|
|
79944
|
-
}
|
|
79945
|
-
function getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize) {
|
|
79946
|
-
const smallChunks = [];
|
|
79947
|
-
const bigChunks = [];
|
|
80017
|
+
function getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize) {
|
|
80018
|
+
const chunksBySignature = /* @__PURE__ */ Object.create(null);
|
|
79948
80019
|
const chunkByModule = /* @__PURE__ */ new Map();
|
|
79949
80020
|
const sizeByAtom = [];
|
|
79950
80021
|
let sideEffectAtoms = 0n;
|
|
79951
|
-
let
|
|
79952
|
-
for (const { dependentEntries, modules } of
|
|
79953
|
-
|
|
79954
|
-
|
|
79955
|
-
|
|
80022
|
+
let atomMask = 1n;
|
|
80023
|
+
for (const { dependentEntries, modules } of chunkAtoms) {
|
|
80024
|
+
let chunkSignature = 0n;
|
|
80025
|
+
let correlatedAtoms = -1n;
|
|
80026
|
+
for (const entryIndex of dependentEntries) {
|
|
80027
|
+
chunkSignature |= 1n << BigInt(entryIndex);
|
|
80028
|
+
correlatedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
|
|
80029
|
+
}
|
|
80030
|
+
const chunk = chunksBySignature[String(chunkSignature)] ||= {
|
|
80031
|
+
containedAtoms: 0n,
|
|
80032
|
+
correlatedAtoms,
|
|
79956
80033
|
dependencies: /* @__PURE__ */ new Set(),
|
|
79957
80034
|
dependentChunks: /* @__PURE__ */ new Set(),
|
|
79958
|
-
dependentEntries,
|
|
79959
|
-
modules,
|
|
80035
|
+
dependentEntries: new Set(dependentEntries),
|
|
80036
|
+
modules: [],
|
|
79960
80037
|
pure: true,
|
|
79961
80038
|
size: 0
|
|
79962
80039
|
};
|
|
79963
|
-
let
|
|
80040
|
+
let atomSize = 0;
|
|
79964
80041
|
let pure = true;
|
|
79965
80042
|
for (const module3 of modules) {
|
|
79966
|
-
chunkByModule.set(module3,
|
|
80043
|
+
chunkByModule.set(module3, chunk);
|
|
79967
80044
|
if (module3.isIncluded()) {
|
|
79968
80045
|
pure &&= !module3.hasEffects();
|
|
79969
|
-
|
|
80046
|
+
atomSize += minChunkSize > 1 ? module3.estimateSize() : 1;
|
|
79970
80047
|
}
|
|
79971
80048
|
}
|
|
79972
|
-
chunkDescription.pure = pure;
|
|
79973
|
-
chunkDescription.size = size;
|
|
79974
|
-
sizeByAtom.push(size);
|
|
79975
80049
|
if (!pure) {
|
|
79976
|
-
sideEffectAtoms |=
|
|
80050
|
+
sideEffectAtoms |= atomMask;
|
|
80051
|
+
}
|
|
80052
|
+
sizeByAtom.push(atomSize);
|
|
80053
|
+
chunk.containedAtoms |= atomMask;
|
|
80054
|
+
chunk.modules.push(...modules);
|
|
80055
|
+
chunk.pure &&= pure;
|
|
80056
|
+
chunk.size += atomSize;
|
|
80057
|
+
atomMask <<= 1n;
|
|
80058
|
+
}
|
|
80059
|
+
const chunks = Object.values(chunksBySignature);
|
|
80060
|
+
sideEffectAtoms |= addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, atomMask);
|
|
80061
|
+
return { chunks, sideEffectAtoms, sizeByAtom };
|
|
80062
|
+
}
|
|
80063
|
+
function addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, nextAvailableAtomMask) {
|
|
80064
|
+
const signatureByExternalModule = /* @__PURE__ */ new Map();
|
|
80065
|
+
let externalSideEffectAtoms = 0n;
|
|
80066
|
+
for (const chunk of chunks) {
|
|
80067
|
+
const { dependencies, modules } = chunk;
|
|
80068
|
+
for (const module3 of modules) {
|
|
80069
|
+
for (const dependency of module3.getDependenciesToBeIncluded()) {
|
|
80070
|
+
if (dependency instanceof ExternalModule) {
|
|
80071
|
+
if (dependency.info.moduleSideEffects) {
|
|
80072
|
+
const signature = getOrCreate(signatureByExternalModule, dependency, () => {
|
|
80073
|
+
const signature2 = nextAvailableAtomMask;
|
|
80074
|
+
nextAvailableAtomMask <<= 1n;
|
|
80075
|
+
externalSideEffectAtoms |= signature2;
|
|
80076
|
+
return signature2;
|
|
80077
|
+
});
|
|
80078
|
+
chunk.containedAtoms |= signature;
|
|
80079
|
+
chunk.correlatedAtoms |= signature;
|
|
80080
|
+
}
|
|
80081
|
+
} else {
|
|
80082
|
+
const dependencyChunk = chunkByModule.get(dependency);
|
|
80083
|
+
if (dependencyChunk && dependencyChunk !== chunk) {
|
|
80084
|
+
dependencies.add(dependencyChunk);
|
|
80085
|
+
dependencyChunk.dependentChunks.add(chunk);
|
|
80086
|
+
}
|
|
80087
|
+
}
|
|
80088
|
+
}
|
|
79977
80089
|
}
|
|
79978
|
-
|
|
79979
|
-
|
|
80090
|
+
}
|
|
80091
|
+
return externalSideEffectAtoms;
|
|
80092
|
+
}
|
|
80093
|
+
function getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log) {
|
|
80094
|
+
timeStart("optimize chunks", 3);
|
|
80095
|
+
const chunkPartition = getPartitionedChunks(chunks, minChunkSize);
|
|
80096
|
+
if (!chunkPartition) {
|
|
80097
|
+
timeEnd("optimize chunks", 3);
|
|
80098
|
+
return chunks;
|
|
80099
|
+
}
|
|
80100
|
+
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunks.length, chunkPartition.small.size, "Initially"));
|
|
80101
|
+
mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom);
|
|
80102
|
+
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
|
|
80103
|
+
timeEnd("optimize chunks", 3);
|
|
80104
|
+
return [...chunkPartition.small, ...chunkPartition.big];
|
|
80105
|
+
}
|
|
80106
|
+
function getPartitionedChunks(chunks, minChunkSize) {
|
|
80107
|
+
const smallChunks = [];
|
|
80108
|
+
const bigChunks = [];
|
|
80109
|
+
for (const chunk of chunks) {
|
|
80110
|
+
(chunk.size < minChunkSize ? smallChunks : bigChunks).push(chunk);
|
|
79980
80111
|
}
|
|
79981
80112
|
if (smallChunks.length === 0) {
|
|
79982
80113
|
return null;
|
|
79983
80114
|
}
|
|
79984
|
-
|
|
80115
|
+
smallChunks.sort(compareChunkSize);
|
|
80116
|
+
bigChunks.sort(compareChunkSize);
|
|
79985
80117
|
return {
|
|
79986
80118
|
big: new Set(bigChunks),
|
|
79987
|
-
sideEffectAtoms,
|
|
79988
|
-
sizeByAtom,
|
|
79989
80119
|
small: new Set(smallChunks)
|
|
79990
80120
|
};
|
|
79991
80121
|
}
|
|
79992
|
-
function
|
|
80122
|
+
function compareChunkSize({ size: sizeA }, { size: sizeB }) {
|
|
80123
|
+
return sizeA - sizeB;
|
|
80124
|
+
}
|
|
80125
|
+
function mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom) {
|
|
79993
80126
|
const { small } = chunkPartition;
|
|
79994
80127
|
for (const mergedChunk of small) {
|
|
79995
80128
|
const bestTargetChunk = findBestMergeTarget(
|
|
79996
80129
|
mergedChunk,
|
|
79997
80130
|
chunkPartition,
|
|
80131
|
+
sideEffectAtoms,
|
|
80132
|
+
sizeByAtom,
|
|
79998
80133
|
// In the default case, we do not accept size increases
|
|
79999
80134
|
minChunkSize <= 1 ? 1 : Infinity
|
|
80000
80135
|
);
|
|
@@ -80027,55 +80162,7 @@ ${outro}`;
|
|
|
80027
80162
|
}
|
|
80028
80163
|
}
|
|
80029
80164
|
}
|
|
80030
|
-
function
|
|
80031
|
-
const signatureByExternalModule = /* @__PURE__ */ new Map();
|
|
80032
|
-
let sideEffectAtoms = 0n;
|
|
80033
|
-
const atomsByEntry = [];
|
|
80034
|
-
for (let index = 0; index < numberOfEntries; index++) {
|
|
80035
|
-
atomsByEntry.push(0n);
|
|
80036
|
-
}
|
|
80037
|
-
for (const chunks of chunkLists) {
|
|
80038
|
-
chunks.sort(compareChunkSize);
|
|
80039
|
-
for (const chunk of chunks) {
|
|
80040
|
-
const { dependencies, dependentEntries, modules } = chunk;
|
|
80041
|
-
for (const module3 of modules) {
|
|
80042
|
-
for (const dependency of module3.getDependenciesToBeIncluded()) {
|
|
80043
|
-
if (dependency instanceof ExternalModule) {
|
|
80044
|
-
if (dependency.info.moduleSideEffects) {
|
|
80045
|
-
chunk.containedAtoms |= getOrCreate(signatureByExternalModule, dependency, () => {
|
|
80046
|
-
const signature = nextAtomSignature;
|
|
80047
|
-
nextAtomSignature <<= 1n;
|
|
80048
|
-
sideEffectAtoms |= signature;
|
|
80049
|
-
return signature;
|
|
80050
|
-
});
|
|
80051
|
-
}
|
|
80052
|
-
} else {
|
|
80053
|
-
const dependencyChunk = chunkByModule.get(dependency);
|
|
80054
|
-
if (dependencyChunk && dependencyChunk !== chunk) {
|
|
80055
|
-
dependencies.add(dependencyChunk);
|
|
80056
|
-
dependencyChunk.dependentChunks.add(chunk);
|
|
80057
|
-
}
|
|
80058
|
-
}
|
|
80059
|
-
}
|
|
80060
|
-
}
|
|
80061
|
-
const { containedAtoms } = chunk;
|
|
80062
|
-
for (const entryIndex of dependentEntries) {
|
|
80063
|
-
atomsByEntry[entryIndex] |= containedAtoms;
|
|
80064
|
-
}
|
|
80065
|
-
}
|
|
80066
|
-
}
|
|
80067
|
-
for (const chunks of chunkLists) {
|
|
80068
|
-
for (const chunk of chunks) {
|
|
80069
|
-
const { dependentEntries } = chunk;
|
|
80070
|
-
chunk.correlatedAtoms = -1n;
|
|
80071
|
-
for (const entryIndex of dependentEntries) {
|
|
80072
|
-
chunk.correlatedAtoms &= atomsByEntry[entryIndex];
|
|
80073
|
-
}
|
|
80074
|
-
}
|
|
80075
|
-
}
|
|
80076
|
-
return sideEffectAtoms;
|
|
80077
|
-
}
|
|
80078
|
-
function findBestMergeTarget(mergedChunk, { big, sideEffectAtoms, sizeByAtom, small }, smallestAdditionalSize) {
|
|
80165
|
+
function findBestMergeTarget(mergedChunk, { big, small }, sideEffectAtoms, sizeByAtom, smallestAdditionalSize) {
|
|
80079
80166
|
let bestTargetChunk = null;
|
|
80080
80167
|
for (const targetChunk of concatLazy([small, big])) {
|
|
80081
80168
|
if (mergedChunk === targetChunk)
|
|
@@ -80090,12 +80177,6 @@ ${outro}`;
|
|
|
80090
80177
|
}
|
|
80091
80178
|
return bestTargetChunk;
|
|
80092
80179
|
}
|
|
80093
|
-
function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
|
|
80094
|
-
return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
|
|
80095
|
-
}
|
|
80096
|
-
function compareChunkSize({ size: sizeA }, { size: sizeB }) {
|
|
80097
|
-
return sizeA - sizeB;
|
|
80098
|
-
}
|
|
80099
80180
|
function getAdditionalSizeAfterMerge(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom) {
|
|
80100
80181
|
const firstSize = getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom);
|
|
80101
80182
|
return firstSize < currentAdditionalSize ? firstSize + getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(targetChunk, mergedChunk, currentAdditionalSize - firstSize, sideEffectAtoms, sizeByAtom) : Infinity;
|
|
@@ -80139,15 +80220,18 @@ ${outro}`;
|
|
|
80139
80220
|
}
|
|
80140
80221
|
return size;
|
|
80141
80222
|
}
|
|
80223
|
+
function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
|
|
80224
|
+
return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
|
|
80225
|
+
}
|
|
80142
80226
|
function commondir(files) {
|
|
80143
80227
|
if (files.length === 0)
|
|
80144
80228
|
return "/";
|
|
80145
80229
|
if (files.length === 1)
|
|
80146
80230
|
return node_path.dirname(files[0]);
|
|
80147
80231
|
const commonSegments = files.slice(1).reduce((commonSegments2, file) => {
|
|
80148
|
-
const
|
|
80232
|
+
const pathSegments = file.split(/\/+|\\+/);
|
|
80149
80233
|
let index;
|
|
80150
|
-
for (index = 0; commonSegments2[index] ===
|
|
80234
|
+
for (index = 0; commonSegments2[index] === pathSegments[index] && index < Math.min(commonSegments2.length, pathSegments.length); index++)
|
|
80151
80235
|
;
|
|
80152
80236
|
return commonSegments2.slice(0, index);
|
|
80153
80237
|
}, files[0].split(/\/+|\\+/));
|
|
@@ -80233,7 +80317,7 @@ ${outro}`;
|
|
|
80233
80317
|
})}${arrowFunctions ? lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : "" : `{${lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : _}${functionReturn ? "return " : ""}`}`,
|
|
80234
80318
|
arrowFunctions ? `${name ? ";" : ""}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : ""}` : `${s}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`
|
|
80235
80319
|
];
|
|
80236
|
-
const isValidPropertyName = reservedNamesAsProps ? (name) =>
|
|
80320
|
+
const isValidPropertyName = reservedNamesAsProps ? (name) => VALID_IDENTIFIER_REGEXP.test(name) : (name) => !RESERVED_NAMES.has(name) && VALID_IDENTIFIER_REGEXP.test(name);
|
|
80237
80321
|
return {
|
|
80238
80322
|
_,
|
|
80239
80323
|
cnst,
|
|
@@ -80253,8 +80337,8 @@ ${outro}`;
|
|
|
80253
80337
|
return `{${fields.map(([key, value]) => {
|
|
80254
80338
|
if (key === null)
|
|
80255
80339
|
return `${prefix}${value}`;
|
|
80256
|
-
const
|
|
80257
|
-
return key === value && objectShorthand &&
|
|
80340
|
+
const keyInObject = stringifyObjectKeyIfNeeded(key);
|
|
80341
|
+
return key === value && objectShorthand && key === keyInObject ? prefix + key : `${prefix}${keyInObject}:${_}${value}`;
|
|
80258
80342
|
}).join(`,`)}${fields.length === 0 ? "" : lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`;
|
|
80259
80343
|
},
|
|
80260
80344
|
getPropertyAccess: (name) => isValidPropertyName(name) ? `.${name}` : `[${JSON.stringify(name)}]`,
|
|
@@ -80263,7 +80347,6 @@ ${outro}`;
|
|
|
80263
80347
|
};
|
|
80264
80348
|
}
|
|
80265
80349
|
var wrapIfNeeded = (code, needsParens) => needsParens ? `(${code})` : code;
|
|
80266
|
-
var validPropertyName = /^(?!\d)[\w$]+$/;
|
|
80267
80350
|
var Source = class {
|
|
80268
80351
|
constructor(filename, content) {
|
|
80269
80352
|
this.isOriginal = true;
|
|
@@ -80411,9 +80494,10 @@ ${outro}`;
|
|
|
80411
80494
|
const renderedChunks = await Promise.all(chunks.map((chunk) => chunk.render()));
|
|
80412
80495
|
timeEnd("render chunks", 2);
|
|
80413
80496
|
timeStart("transform chunks", 2);
|
|
80497
|
+
const getHash = hasherByType[outputOptions.hashCharacters];
|
|
80414
80498
|
const chunkGraph = getChunkGraph(chunks);
|
|
80415
|
-
const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
|
|
80416
|
-
const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle);
|
|
80499
|
+
const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log);
|
|
80500
|
+
const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash);
|
|
80417
80501
|
addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
|
|
80418
80502
|
timeEnd("transform chunks", 2);
|
|
80419
80503
|
}
|
|
@@ -80491,7 +80575,7 @@ ${outro}`;
|
|
|
80491
80575
|
map
|
|
80492
80576
|
};
|
|
80493
80577
|
}
|
|
80494
|
-
async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log) {
|
|
80578
|
+
async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log) {
|
|
80495
80579
|
const nonHashedChunksWithPlaceholders = [];
|
|
80496
80580
|
const renderedChunksByPlaceholder = /* @__PURE__ */ new Map();
|
|
80497
80581
|
const hashDependenciesByPlaceholder = /* @__PURE__ */ new Map();
|
|
@@ -80524,14 +80608,14 @@ ${outro}`;
|
|
|
80524
80608
|
renderedChunksByPlaceholder.set(hashPlaceholder, transformedChunk);
|
|
80525
80609
|
hashDependenciesByPlaceholder.set(hashPlaceholder, {
|
|
80526
80610
|
containedPlaceholders,
|
|
80527
|
-
contentHash:
|
|
80611
|
+
contentHash: getHash(contentToHash)
|
|
80528
80612
|
});
|
|
80529
80613
|
} else {
|
|
80530
80614
|
nonHashedChunksWithPlaceholders.push(transformedChunk);
|
|
80531
80615
|
}
|
|
80532
80616
|
const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
|
|
80533
80617
|
if (map && sourcemapHashPlaceholder) {
|
|
80534
|
-
initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder,
|
|
80618
|
+
initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getHash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
|
|
80535
80619
|
}
|
|
80536
80620
|
}));
|
|
80537
80621
|
return {
|
|
@@ -80541,7 +80625,7 @@ ${outro}`;
|
|
|
80541
80625
|
renderedChunksByPlaceholder
|
|
80542
80626
|
};
|
|
80543
80627
|
}
|
|
80544
|
-
function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle) {
|
|
80628
|
+
function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash) {
|
|
80545
80629
|
const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
|
|
80546
80630
|
for (const [placeholder, { fileName }] of renderedChunksByPlaceholder) {
|
|
80547
80631
|
let contentToHash = "";
|
|
@@ -80559,7 +80643,7 @@ ${outro}`;
|
|
|
80559
80643
|
if (finalHash) {
|
|
80560
80644
|
contentToHash = finalHash;
|
|
80561
80645
|
}
|
|
80562
|
-
finalHash =
|
|
80646
|
+
finalHash = getHash(contentToHash).slice(0, placeholder.length);
|
|
80563
80647
|
finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
|
|
80564
80648
|
} while (bundle[lowercaseBundleKeys].has(finalFileName.toLowerCase()));
|
|
80565
80649
|
bundle[finalFileName] = FILE_PLACEHOLDER;
|
|
@@ -81783,6 +81867,7 @@ ${outro}`;
|
|
|
81783
81867
|
freeze: config.freeze ?? true,
|
|
81784
81868
|
generatedCode,
|
|
81785
81869
|
globals: config.globals || {},
|
|
81870
|
+
hashCharacters: config.hashCharacters ?? "base64",
|
|
81786
81871
|
hoistTransitiveImports: config.hoistTransitiveImports ?? true,
|
|
81787
81872
|
indent: getIndent(config, compact),
|
|
81788
81873
|
inlineDynamicImports,
|
|
@@ -82059,7 +82144,9 @@ ${outro}`;
|
|
|
82059
82144
|
return parseAst_js.error(parseAst_js.logAlreadyClosed());
|
|
82060
82145
|
return handleGenerateWrite(false, inputOptions, unsetInputOptions, rawOutputOptions, graph);
|
|
82061
82146
|
},
|
|
82062
|
-
watchFiles
|
|
82147
|
+
get watchFiles() {
|
|
82148
|
+
return Object.keys(graph.watchFiles);
|
|
82149
|
+
},
|
|
82063
82150
|
async write(rawOutputOptions) {
|
|
82064
82151
|
if (result.closed)
|
|
82065
82152
|
return parseAst_js.error(parseAst_js.logAlreadyClosed());
|
|
@@ -82200,9 +82287,9 @@ ${outro}`;
|
|
|
82200
82287
|
}
|
|
82201
82288
|
});
|
|
82202
82289
|
|
|
82203
|
-
// node_modules/.pnpm/rollup@4.
|
|
82290
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js
|
|
82204
82291
|
var require_fsevents_importer = __commonJS({
|
|
82205
|
-
"node_modules/.pnpm/rollup@4.
|
|
82292
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js"(exports2) {
|
|
82206
82293
|
"use strict";
|
|
82207
82294
|
var fsEvents;
|
|
82208
82295
|
var fsEventsImportError;
|
|
@@ -82228,9 +82315,9 @@ var require_fsevents_importer = __commonJS({
|
|
|
82228
82315
|
}
|
|
82229
82316
|
});
|
|
82230
82317
|
|
|
82231
|
-
// node_modules/.pnpm/rollup@4.
|
|
82318
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js
|
|
82232
82319
|
var require_shared = __commonJS({
|
|
82233
|
-
"node_modules/.pnpm/rollup@4.
|
|
82320
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js"(exports2) {
|
|
82234
82321
|
"use strict";
|
|
82235
82322
|
var rollup = require_rollup();
|
|
82236
82323
|
var require$$0$1 = require("fs");
|
|
@@ -84040,6 +84127,7 @@ var require_shared = __commonJS({
|
|
|
84040
84127
|
exports3.FSEVENT_MOVED = "moved";
|
|
84041
84128
|
exports3.FSEVENT_CLONED = "cloned";
|
|
84042
84129
|
exports3.FSEVENT_UNKNOWN = "unknown";
|
|
84130
|
+
exports3.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
|
|
84043
84131
|
exports3.FSEVENT_TYPE_FILE = "file";
|
|
84044
84132
|
exports3.FSEVENT_TYPE_DIRECTORY = "directory";
|
|
84045
84133
|
exports3.FSEVENT_TYPE_SYMLINK = "symlink";
|
|
@@ -84610,6 +84698,7 @@ var require_shared = __commonJS({
|
|
|
84610
84698
|
FSEVENT_MOVED,
|
|
84611
84699
|
// FSEVENT_CLONED,
|
|
84612
84700
|
FSEVENT_UNKNOWN,
|
|
84701
|
+
FSEVENT_FLAG_MUST_SCAN_SUBDIRS,
|
|
84613
84702
|
FSEVENT_TYPE_FILE,
|
|
84614
84703
|
FSEVENT_TYPE_DIRECTORY,
|
|
84615
84704
|
FSEVENT_TYPE_SYMLINK,
|
|
@@ -84674,6 +84763,8 @@ var require_shared = __commonJS({
|
|
|
84674
84763
|
watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
|
|
84675
84764
|
if (!cont.listeners.size)
|
|
84676
84765
|
return;
|
|
84766
|
+
if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS)
|
|
84767
|
+
return;
|
|
84677
84768
|
const info = fsevents.getInfo(fullPath, flags);
|
|
84678
84769
|
cont.listeners.forEach((list) => {
|
|
84679
84770
|
list(fullPath, flags, info);
|
|
@@ -85337,7 +85428,7 @@ var require_shared = __commonJS({
|
|
|
85337
85428
|
if (!this._readyCount)
|
|
85338
85429
|
this._readyCount = paths.length;
|
|
85339
85430
|
if (this.options.persistent)
|
|
85340
|
-
this._readyCount
|
|
85431
|
+
this._readyCount += paths.length;
|
|
85341
85432
|
paths.forEach((path3) => this._fsEventsHandler._addToFsEvents(path3));
|
|
85342
85433
|
} else {
|
|
85343
85434
|
if (!this._readyCount)
|
|
@@ -85791,9 +85882,9 @@ var require_shared = __commonJS({
|
|
|
85791
85882
|
}
|
|
85792
85883
|
});
|
|
85793
85884
|
|
|
85794
|
-
// node_modules/.pnpm/rollup@4.
|
|
85885
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js
|
|
85795
85886
|
var require_watch = __commonJS({
|
|
85796
|
-
"node_modules/.pnpm/rollup@4.
|
|
85887
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js"(exports2) {
|
|
85797
85888
|
"use strict";
|
|
85798
85889
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
85799
85890
|
var node_path = require("node:path");
|
|
@@ -86024,7 +86115,13 @@ var require_watch = __commonJS({
|
|
|
86024
86115
|
return;
|
|
86025
86116
|
}
|
|
86026
86117
|
this.updateWatchedFiles(result);
|
|
86027
|
-
|
|
86118
|
+
if (!this.skipWrite) {
|
|
86119
|
+
await Promise.all(this.outputs.map((output) => result.write(output)));
|
|
86120
|
+
if (this.closed) {
|
|
86121
|
+
return;
|
|
86122
|
+
}
|
|
86123
|
+
this.updateWatchedFiles(result);
|
|
86124
|
+
}
|
|
86028
86125
|
await this.watcher.emitter.emit("event", {
|
|
86029
86126
|
code: "BUNDLE_END",
|
|
86030
86127
|
duration: Date.now() - start,
|
|
@@ -86084,13 +86181,21 @@ var require_watch = __commonJS({
|
|
|
86084
86181
|
}
|
|
86085
86182
|
});
|
|
86086
86183
|
|
|
86087
|
-
// node_modules/.pnpm/rollup@4.
|
|
86088
|
-
var
|
|
86089
|
-
"node_modules/.pnpm/rollup@4.
|
|
86184
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js
|
|
86185
|
+
var require_rollup2 = __commonJS({
|
|
86186
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js"(exports2) {
|
|
86090
86187
|
"use strict";
|
|
86188
|
+
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
86091
86189
|
var rollup = require_rollup();
|
|
86092
86190
|
var parseAst_js = require_parseAst();
|
|
86093
86191
|
var fseventsImporter = require_fsevents_importer();
|
|
86192
|
+
require("node:process");
|
|
86193
|
+
require("tty");
|
|
86194
|
+
require("node:path");
|
|
86195
|
+
require("path");
|
|
86196
|
+
require("node:perf_hooks");
|
|
86197
|
+
require_native();
|
|
86198
|
+
require("node:fs/promises");
|
|
86094
86199
|
var WatchEmitter = class {
|
|
86095
86200
|
constructor() {
|
|
86096
86201
|
this.currentHandlers = /* @__PURE__ */ Object.create(null);
|
|
@@ -86158,30 +86263,10 @@ var require_watch_proxy = __commonJS({
|
|
|
86158
86263
|
const { Watcher } = await Promise.resolve().then(() => require_watch());
|
|
86159
86264
|
new Watcher(watchOptionsList, emitter);
|
|
86160
86265
|
}
|
|
86161
|
-
exports2.watch = watch;
|
|
86162
|
-
}
|
|
86163
|
-
});
|
|
86164
|
-
|
|
86165
|
-
// node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js
|
|
86166
|
-
var require_rollup2 = __commonJS({
|
|
86167
|
-
"node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js"(exports2) {
|
|
86168
|
-
"use strict";
|
|
86169
|
-
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
86170
|
-
var rollup = require_rollup();
|
|
86171
|
-
var watchProxy = require_watch_proxy();
|
|
86172
|
-
require_parseAst();
|
|
86173
|
-
require_native();
|
|
86174
|
-
require("node:path");
|
|
86175
|
-
require("node:process");
|
|
86176
|
-
require("tty");
|
|
86177
|
-
require("path");
|
|
86178
|
-
require("node:perf_hooks");
|
|
86179
|
-
require("node:fs/promises");
|
|
86180
|
-
require_fsevents_importer();
|
|
86181
86266
|
exports2.VERSION = rollup.version;
|
|
86182
86267
|
exports2.defineConfig = rollup.defineConfig;
|
|
86183
86268
|
exports2.rollup = rollup.rollup;
|
|
86184
|
-
exports2.watch =
|
|
86269
|
+
exports2.watch = watch;
|
|
86185
86270
|
}
|
|
86186
86271
|
});
|
|
86187
86272
|
|
|
@@ -114673,8 +114758,8 @@ run-parallel/index.js:
|
|
|
114673
114758
|
rollup/dist/shared/parseAst.js:
|
|
114674
114759
|
(*
|
|
114675
114760
|
@license
|
|
114676
|
-
Rollup.js v4.
|
|
114677
|
-
|
|
114761
|
+
Rollup.js v4.10.0
|
|
114762
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
114678
114763
|
|
|
114679
114764
|
https://github.com/rollup/rollup
|
|
114680
114765
|
|
|
@@ -114684,8 +114769,8 @@ rollup/dist/shared/parseAst.js:
|
|
|
114684
114769
|
rollup/dist/shared/rollup.js:
|
|
114685
114770
|
(*
|
|
114686
114771
|
@license
|
|
114687
|
-
Rollup.js v4.
|
|
114688
|
-
|
|
114772
|
+
Rollup.js v4.10.0
|
|
114773
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
114689
114774
|
|
|
114690
114775
|
https://github.com/rollup/rollup
|
|
114691
114776
|
|
|
@@ -114695,8 +114780,8 @@ rollup/dist/shared/rollup.js:
|
|
|
114695
114780
|
rollup/dist/shared/fsevents-importer.js:
|
|
114696
114781
|
(*
|
|
114697
114782
|
@license
|
|
114698
|
-
Rollup.js v4.
|
|
114699
|
-
|
|
114783
|
+
Rollup.js v4.10.0
|
|
114784
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
114700
114785
|
|
|
114701
114786
|
https://github.com/rollup/rollup
|
|
114702
114787
|
|
|
@@ -114706,8 +114791,8 @@ rollup/dist/shared/fsevents-importer.js:
|
|
|
114706
114791
|
rollup/dist/shared/index.js:
|
|
114707
114792
|
(*
|
|
114708
114793
|
@license
|
|
114709
|
-
Rollup.js v4.
|
|
114710
|
-
|
|
114794
|
+
Rollup.js v4.10.0
|
|
114795
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
114711
114796
|
|
|
114712
114797
|
https://github.com/rollup/rollup
|
|
114713
114798
|
|
|
@@ -114753,19 +114838,8 @@ rollup/dist/shared/index.js:
|
|
|
114753
114838
|
rollup/dist/shared/watch.js:
|
|
114754
114839
|
(*
|
|
114755
114840
|
@license
|
|
114756
|
-
Rollup.js v4.
|
|
114757
|
-
|
|
114758
|
-
|
|
114759
|
-
https://github.com/rollup/rollup
|
|
114760
|
-
|
|
114761
|
-
Released under the MIT License.
|
|
114762
|
-
*)
|
|
114763
|
-
|
|
114764
|
-
rollup/dist/shared/watch-proxy.js:
|
|
114765
|
-
(*
|
|
114766
|
-
@license
|
|
114767
|
-
Rollup.js v4.5.2
|
|
114768
|
-
Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
|
|
114841
|
+
Rollup.js v4.10.0
|
|
114842
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
114769
114843
|
|
|
114770
114844
|
https://github.com/rollup/rollup
|
|
114771
114845
|
|
|
@@ -114775,8 +114849,8 @@ rollup/dist/shared/watch-proxy.js:
|
|
|
114775
114849
|
rollup/dist/rollup.js:
|
|
114776
114850
|
(*
|
|
114777
114851
|
@license
|
|
114778
|
-
Rollup.js v4.
|
|
114779
|
-
|
|
114852
|
+
Rollup.js v4.10.0
|
|
114853
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
114780
114854
|
|
|
114781
114855
|
https://github.com/rollup/rollup
|
|
114782
114856
|
|