@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.
@@ -73789,9 +73789,9 @@ var require_source_map = __commonJS({
73789
73789
  }
73790
73790
  });
73791
73791
 
73792
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/native.js
73792
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js
73793
73793
  var require_native = __commonJS({
73794
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/native.js"(exports2, module2) {
73794
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
73795
73795
  var { existsSync: existsSync3 } = require("node:fs");
73796
73796
  var { join: join3 } = require("node:path");
73797
73797
  var { platform, arch, report } = require("node:process");
@@ -73808,6 +73808,7 @@ var require_native = __commonJS({
73808
73808
  linux: {
73809
73809
  arm: { base: "linux-arm-gnueabihf", musl: null },
73810
73810
  arm64: { base: "linux-arm64-gnu", musl: "linux-arm64-musl" },
73811
+ riscv64: { base: "linux-riscv64-gnu", musl: null },
73811
73812
  x64: { base: "linux-x64-gnu", musl: "linux-x64-musl" }
73812
73813
  },
73813
73814
  win32: {
@@ -73816,6 +73817,11 @@ var require_native = __commonJS({
73816
73817
  x64: { base: "win32-x64-msvc" }
73817
73818
  }
73818
73819
  };
73820
+ var msvcLinkFilenameByArch = {
73821
+ arm64: "vc_redist.arm64.exe",
73822
+ ia32: "vc_redist.x86.exe",
73823
+ x64: "vc_redist.x64.exe"
73824
+ };
73819
73825
  var packageBase = getPackageBase();
73820
73826
  if (!packageBase) {
73821
73827
  throw new Error(
@@ -73843,16 +73849,37 @@ If this is important to you, please consider supporting Rollup to make a native
73843
73849
  return imported.base;
73844
73850
  }
73845
73851
  var localName = `./rollup.${packageBase}.node`;
73846
- var { parse, parseAsync, xxhashBase64Url } = existsSync3(join3(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
73852
+ var requireWithFriendlyError = (id) => {
73853
+ try {
73854
+ return require(id);
73855
+ } catch (error) {
73856
+ if (platform === "win32" && error instanceof Error && error.code === "ERR_DLOPEN_FAILED" && error.message.includes("The specified module could not be found")) {
73857
+ const msvcDownloadLink = `https://aka.ms/vs/17/release/${msvcLinkFilenameByArch[arch]}`;
73858
+ throw new Error(
73859
+ `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}`,
73860
+ { cause: error }
73861
+ );
73862
+ }
73863
+ throw new Error(
73864
+ `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.`,
73865
+ { cause: error }
73866
+ );
73867
+ }
73868
+ };
73869
+ var { parse, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
73870
+ existsSync3(join3(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
73871
+ );
73847
73872
  module2.exports.parse = parse;
73848
73873
  module2.exports.parseAsync = parseAsync;
73849
73874
  module2.exports.xxhashBase64Url = xxhashBase64Url;
73875
+ module2.exports.xxhashBase36 = xxhashBase36;
73876
+ module2.exports.xxhashBase16 = xxhashBase16;
73850
73877
  }
73851
73878
  });
73852
73879
 
73853
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/parseAst.js
73880
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js
73854
73881
  var require_parseAst = __commonJS({
73855
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/parseAst.js"(exports2) {
73882
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js"(exports2) {
73856
73883
  "use strict";
73857
73884
  var native_js = require_native();
73858
73885
  var node_path = require("node:path");
@@ -74488,12 +74515,6 @@ Original error: ${originalError.message}`,
74488
74515
  plugin
74489
74516
  };
74490
74517
  }
74491
- function logInvalidRollupPhaseForAddWatchFile() {
74492
- return {
74493
- code: INVALID_ROLLUP_PHASE,
74494
- message: `Cannot call "addWatchFile" after the build has finished.`
74495
- };
74496
- }
74497
74518
  function logInvalidRollupPhaseForChunkEmission() {
74498
74519
  return {
74499
74520
  code: INVALID_ROLLUP_PHASE,
@@ -74888,19 +74909,22 @@ ${smallChunks} are below minChunkSize.`
74888
74909
  "pure",
74889
74910
  "noSideEffects"
74890
74911
  ];
74891
- var convertProgram = (buffer, readString) => convertNode(0, new Uint32Array(buffer), readString);
74892
- var convertNode = (position, buffer, readString) => {
74893
- const nodeType = buffer[position];
74894
- const converter = nodeConverters[nodeType];
74895
- if (!converter) {
74896
- console.trace();
74897
- throw new Error(`Unknown node type: ${nodeType}`);
74898
- }
74899
- return converter(position + 1, buffer, readString);
74900
- };
74912
+ var ANNOTATION_KEY = "_rollupAnnotations";
74913
+ var INVALID_ANNOTATION_KEY = "_rollupRemoved";
74914
+ function convertProgram(buffer, readString) {
74915
+ return convertNode(0, new Uint32Array(buffer), readString);
74916
+ }
74901
74917
  var nodeConverters = [
74902
- // index:0; ArrayExpression
74903
- (position, buffer, readString) => {
74918
+ function parseError(position, buffer, readString) {
74919
+ const pos = buffer[position++];
74920
+ const message = convertString(position, buffer, readString);
74921
+ error(logParseError(message, pos));
74922
+ },
74923
+ function panicError(position, buffer, readString) {
74924
+ const message = convertString(position, buffer, readString);
74925
+ error(logParseError(message));
74926
+ },
74927
+ function arrayExpression(position, buffer, readString) {
74904
74928
  const start = buffer[position++];
74905
74929
  const end = buffer[position++];
74906
74930
  const elements = convertNodeList(position, buffer, readString);
@@ -74911,8 +74935,7 @@ ${smallChunks} are below minChunkSize.`
74911
74935
  elements
74912
74936
  };
74913
74937
  },
74914
- // index:1; ArrayPattern
74915
- (position, buffer, readString) => {
74938
+ function arrayPattern(position, buffer, readString) {
74916
74939
  const start = buffer[position++];
74917
74940
  const end = buffer[position++];
74918
74941
  const elements = convertNodeList(position, buffer, readString);
@@ -74923,30 +74946,30 @@ ${smallChunks} are below minChunkSize.`
74923
74946
  elements
74924
74947
  };
74925
74948
  },
74926
- // index:2; ArrowFunctionExpression
74927
- (position, buffer, readString) => {
74949
+ function arrowFunctionExpression(position, buffer, readString) {
74928
74950
  const start = buffer[position++];
74929
74951
  const end = buffer[position++];
74930
- const async = !!buffer[position++];
74931
- const generator = !!buffer[position++];
74932
- const expression = !!buffer[position++];
74952
+ const flags = buffer[position++];
74953
+ const async = (flags & 1) === 1;
74954
+ const expression = (flags & 2) === 2;
74955
+ const generator = (flags & 4) === 4;
74933
74956
  const parameters = convertNodeList(buffer[position++], buffer, readString);
74934
74957
  const body = convertNode(buffer[position++], buffer, readString);
74935
- const annotations = convertAnnotationList(position, buffer);
74936
- return addAnnotationProperty({
74958
+ const annotations = convertAnnotations(position, buffer);
74959
+ return {
74937
74960
  type: "ArrowFunctionExpression",
74938
74961
  start,
74939
74962
  end,
74940
74963
  async,
74941
- body,
74942
74964
  expression,
74943
74965
  generator,
74944
- id: null,
74945
- params: parameters
74946
- }, annotations, ANNOTATION_KEY);
74966
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
74967
+ params: parameters,
74968
+ body,
74969
+ id: null
74970
+ };
74947
74971
  },
74948
- // index:3; AssignmentExpression
74949
- (position, buffer, readString) => {
74972
+ function assignmentExpression(position, buffer, readString) {
74950
74973
  const start = buffer[position++];
74951
74974
  const end = buffer[position++];
74952
74975
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -74956,13 +74979,12 @@ ${smallChunks} are below minChunkSize.`
74956
74979
  type: "AssignmentExpression",
74957
74980
  start,
74958
74981
  end,
74959
- left,
74960
74982
  operator,
74983
+ left,
74961
74984
  right
74962
74985
  };
74963
74986
  },
74964
- // index:4; AssignmentPattern
74965
- (position, buffer, readString) => {
74987
+ function assignmentPattern(position, buffer, readString) {
74966
74988
  const start = buffer[position++];
74967
74989
  const end = buffer[position++];
74968
74990
  const right = convertNode(buffer[position++], buffer, readString);
@@ -74975,20 +74997,18 @@ ${smallChunks} are below minChunkSize.`
74975
74997
  right
74976
74998
  };
74977
74999
  },
74978
- // index:5; AwaitExpression
74979
- (position, buffer, readString) => {
75000
+ function awaitExpression(position, buffer, readString) {
74980
75001
  const start = buffer[position++];
74981
75002
  const end = buffer[position++];
74982
75003
  const argument = convertNode(position, buffer, readString);
74983
75004
  return {
74984
75005
  type: "AwaitExpression",
74985
75006
  start,
74986
- argument,
74987
- end
75007
+ end,
75008
+ argument
74988
75009
  };
74989
75010
  },
74990
- // index:6; BinaryExpression
74991
- (position, buffer, readString) => {
75011
+ function binaryExpression(position, buffer, readString) {
74992
75012
  const start = buffer[position++];
74993
75013
  const end = buffer[position++];
74994
75014
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -74998,68 +75018,67 @@ ${smallChunks} are below minChunkSize.`
74998
75018
  type: "BinaryExpression",
74999
75019
  start,
75000
75020
  end,
75001
- left,
75002
75021
  operator,
75022
+ left,
75003
75023
  right
75004
75024
  };
75005
75025
  },
75006
- // index:7; BlockStatement
75007
- (position, buffer, readString) => {
75026
+ function blockStatement(position, buffer, readString) {
75008
75027
  const start = buffer[position++];
75009
75028
  const end = buffer[position++];
75010
75029
  const body = convertNodeList(position, buffer, readString);
75011
75030
  return {
75012
75031
  type: "BlockStatement",
75013
75032
  start,
75014
- body,
75015
- end
75033
+ end,
75034
+ body
75016
75035
  };
75017
75036
  },
75018
- // index:8; BreakStatement
75019
- (position, buffer, readString) => {
75037
+ function breakStatement(position, buffer, readString) {
75020
75038
  const start = buffer[position++];
75021
75039
  const end = buffer[position++];
75022
- const labelPosition = buffer[position++];
75040
+ const labelPosition = buffer[position];
75041
+ const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
75023
75042
  return {
75024
75043
  type: "BreakStatement",
75025
75044
  start,
75026
75045
  end,
75027
- label: labelPosition ? convertNode(labelPosition, buffer, readString) : null
75046
+ label
75028
75047
  };
75029
75048
  },
75030
- // index:9; CallExpression
75031
- (position, buffer, readString) => {
75049
+ function callExpression(position, buffer, readString) {
75032
75050
  const start = buffer[position++];
75033
75051
  const end = buffer[position++];
75034
- const optional = !!buffer[position++];
75052
+ const flags = buffer[position++];
75053
+ const optional = (flags & 1) === 1;
75035
75054
  const callee = convertNode(buffer[position++], buffer, readString);
75036
- const argumentsList = convertNodeList(buffer[position++], buffer, readString);
75037
- const annotations = convertAnnotationList(position, buffer);
75038
- return addAnnotationProperty({
75055
+ const callArguments = convertNodeList(buffer[position++], buffer, readString);
75056
+ const annotations = convertAnnotations(position, buffer);
75057
+ return {
75039
75058
  type: "CallExpression",
75040
75059
  start,
75041
75060
  end,
75042
- arguments: argumentsList,
75061
+ optional,
75062
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75043
75063
  callee,
75044
- optional
75045
- }, annotations, ANNOTATION_KEY);
75064
+ arguments: callArguments
75065
+ };
75046
75066
  },
75047
- // index:10; CatchClause
75048
- (position, buffer, readString) => {
75067
+ function catchClause(position, buffer, readString) {
75049
75068
  const start = buffer[position++];
75050
75069
  const end = buffer[position++];
75051
75070
  const parameterPosition = buffer[position++];
75071
+ const parameter = parameterPosition === 0 ? null : convertNode(parameterPosition, buffer, readString);
75052
75072
  const body = convertNode(buffer[position], buffer, readString);
75053
75073
  return {
75054
75074
  type: "CatchClause",
75055
75075
  start,
75056
75076
  end,
75057
- body,
75058
- param: parameterPosition ? convertNode(parameterPosition, buffer, readString) : null
75077
+ param: parameter,
75078
+ body
75059
75079
  };
75060
75080
  },
75061
- // index:11; ChainExpression
75062
- (position, buffer, readString) => {
75081
+ function chainExpression(position, buffer, readString) {
75063
75082
  const start = buffer[position++];
75064
75083
  const end = buffer[position++];
75065
75084
  const expression = convertNode(position, buffer, readString);
@@ -75070,8 +75089,7 @@ ${smallChunks} are below minChunkSize.`
75070
75089
  expression
75071
75090
  };
75072
75091
  },
75073
- // index:12; ClassBody
75074
- (position, buffer, readString) => {
75092
+ function classBody(position, buffer, readString) {
75075
75093
  const start = buffer[position++];
75076
75094
  const end = buffer[position++];
75077
75095
  const body = convertNodeList(position, buffer, readString);
@@ -75082,40 +75100,41 @@ ${smallChunks} are below minChunkSize.`
75082
75100
  body
75083
75101
  };
75084
75102
  },
75085
- // index:13; ClassDeclaration
75086
- (position, buffer, readString) => {
75103
+ function classDeclaration(position, buffer, readString) {
75087
75104
  const start = buffer[position++];
75088
75105
  const end = buffer[position++];
75089
75106
  const idPosition = buffer[position++];
75107
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75090
75108
  const superClassPosition = buffer[position++];
75109
+ const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
75091
75110
  const body = convertNode(buffer[position], buffer, readString);
75092
75111
  return {
75093
75112
  type: "ClassDeclaration",
75094
75113
  start,
75095
75114
  end,
75096
- body,
75097
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75098
- superClass: superClassPosition ? convertNode(superClassPosition, buffer, readString) : null
75115
+ id,
75116
+ superClass,
75117
+ body
75099
75118
  };
75100
75119
  },
75101
- // index:14; ClassExpression
75102
- (position, buffer, readString) => {
75120
+ function classExpression(position, buffer, readString) {
75103
75121
  const start = buffer[position++];
75104
75122
  const end = buffer[position++];
75105
75123
  const idPosition = buffer[position++];
75124
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75106
75125
  const superClassPosition = buffer[position++];
75126
+ const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
75107
75127
  const body = convertNode(buffer[position], buffer, readString);
75108
75128
  return {
75109
75129
  type: "ClassExpression",
75110
75130
  start,
75111
75131
  end,
75112
- body,
75113
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75114
- superClass: superClassPosition ? convertNode(superClassPosition, buffer, readString) : null
75132
+ id,
75133
+ superClass,
75134
+ body
75115
75135
  };
75116
75136
  },
75117
- // index:15; ConditionalExpression
75118
- (position, buffer, readString) => {
75137
+ function conditionalExpression(position, buffer, readString) {
75119
75138
  const start = buffer[position++];
75120
75139
  const end = buffer[position++];
75121
75140
  const consequent = convertNode(buffer[position++], buffer, readString);
@@ -75125,25 +75144,24 @@ ${smallChunks} are below minChunkSize.`
75125
75144
  type: "ConditionalExpression",
75126
75145
  start,
75127
75146
  end,
75128
- alternate,
75147
+ test,
75129
75148
  consequent,
75130
- test
75149
+ alternate
75131
75150
  };
75132
75151
  },
75133
- // index:16; ContinueStatement
75134
- (position, buffer, readString) => {
75152
+ function continueStatement(position, buffer, readString) {
75135
75153
  const start = buffer[position++];
75136
75154
  const end = buffer[position++];
75137
75155
  const labelPosition = buffer[position];
75156
+ const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
75138
75157
  return {
75139
75158
  type: "ContinueStatement",
75140
75159
  start,
75141
75160
  end,
75142
- label: labelPosition ? convertNode(labelPosition, buffer, readString) : null
75161
+ label
75143
75162
  };
75144
75163
  },
75145
- // index:17; DebuggerStatement
75146
- (position, buffer) => {
75164
+ function debuggerStatement(position, buffer) {
75147
75165
  const start = buffer[position++];
75148
75166
  const end = buffer[position++];
75149
75167
  return {
@@ -75152,8 +75170,20 @@ ${smallChunks} are below minChunkSize.`
75152
75170
  end
75153
75171
  };
75154
75172
  },
75155
- // index:18; DoWhileStatement
75156
- (position, buffer, readString) => {
75173
+ function directive(position, buffer, readString) {
75174
+ const start = buffer[position++];
75175
+ const end = buffer[position++];
75176
+ const expression = convertNode(buffer[position++], buffer, readString);
75177
+ const directive2 = convertString(position, buffer, readString);
75178
+ return {
75179
+ type: "ExpressionStatement",
75180
+ start,
75181
+ end,
75182
+ directive: directive2,
75183
+ expression
75184
+ };
75185
+ },
75186
+ function doWhileStatement(position, buffer, readString) {
75157
75187
  const start = buffer[position++];
75158
75188
  const end = buffer[position++];
75159
75189
  const test = convertNode(buffer[position++], buffer, readString);
@@ -75166,8 +75196,7 @@ ${smallChunks} are below minChunkSize.`
75166
75196
  test
75167
75197
  };
75168
75198
  },
75169
- // index:19; EmptyStatement
75170
- (position, buffer) => {
75199
+ function emptyStatement(position, buffer) {
75171
75200
  const start = buffer[position++];
75172
75201
  const end = buffer[position++];
75173
75202
  return {
@@ -75176,24 +75205,23 @@ ${smallChunks} are below minChunkSize.`
75176
75205
  end
75177
75206
  };
75178
75207
  },
75179
- // index:20; ExportAllDeclaration
75180
- (position, buffer, readString) => {
75208
+ function exportAllDeclaration(position, buffer, readString) {
75181
75209
  const start = buffer[position++];
75182
75210
  const end = buffer[position++];
75183
75211
  const exportedPosition = buffer[position++];
75212
+ const exported = exportedPosition === 0 ? null : convertNode(exportedPosition, buffer, readString);
75184
75213
  const source = convertNode(buffer[position++], buffer, readString);
75185
75214
  const attributes = convertNodeList(buffer[position], buffer, readString);
75186
75215
  return {
75187
75216
  type: "ExportAllDeclaration",
75188
75217
  start,
75189
75218
  end,
75190
- exported: exportedPosition ? convertNode(exportedPosition, buffer, readString) : null,
75219
+ exported,
75191
75220
  source,
75192
75221
  attributes
75193
75222
  };
75194
75223
  },
75195
- // index:21; ExportDefaultDeclaration
75196
- (position, buffer, readString) => {
75224
+ function exportDefaultDeclaration(position, buffer, readString) {
75197
75225
  const start = buffer[position++];
75198
75226
  const end = buffer[position++];
75199
75227
  const declaration = convertNode(position, buffer, readString);
@@ -75204,55 +75232,50 @@ ${smallChunks} are below minChunkSize.`
75204
75232
  declaration
75205
75233
  };
75206
75234
  },
75207
- // index:22; ExportNamedDeclaration
75208
- (position, buffer, readString) => {
75235
+ function exportNamedDeclaration(position, buffer, readString) {
75209
75236
  const start = buffer[position++];
75210
75237
  const end = buffer[position++];
75211
- const declarationPosition = buffer[position++];
75212
75238
  const sourcePosition = buffer[position++];
75239
+ const source = sourcePosition === 0 ? null : convertNode(sourcePosition, buffer, readString);
75213
75240
  const attributes = convertNodeList(buffer[position++], buffer, readString);
75241
+ const declarationPosition = buffer[position++];
75242
+ const declaration = declarationPosition === 0 ? null : convertNode(declarationPosition, buffer, readString);
75214
75243
  const specifiers = convertNodeList(position, buffer, readString);
75215
75244
  return {
75216
75245
  type: "ExportNamedDeclaration",
75217
75246
  start,
75218
75247
  end,
75219
- declaration: declarationPosition ? convertNode(declarationPosition, buffer, readString) : null,
75220
- source: sourcePosition ? convertNode(sourcePosition, buffer, readString) : null,
75221
75248
  specifiers,
75222
- attributes
75249
+ source,
75250
+ attributes,
75251
+ declaration
75223
75252
  };
75224
75253
  },
75225
- // index:23; ExportSpecifier
75226
- (position, buffer, readString) => {
75254
+ function exportSpecifier(position, buffer, readString) {
75227
75255
  const start = buffer[position++];
75228
75256
  const end = buffer[position++];
75229
75257
  const exportedPosition = buffer[position++];
75230
75258
  const local = convertNode(position, buffer, readString);
75231
- const exported = exportedPosition ? convertNode(exportedPosition, buffer, readString) : local;
75232
75259
  return {
75233
75260
  type: "ExportSpecifier",
75234
75261
  start,
75235
75262
  end,
75236
- exported,
75237
- local
75263
+ local,
75264
+ exported: exportedPosition === 0 ? { ...local } : convertNode(exportedPosition, buffer, readString)
75238
75265
  };
75239
75266
  },
75240
- // index:24; ExpressionStatement
75241
- (position, buffer, readString) => {
75267
+ function expressionStatement(position, buffer, readString) {
75242
75268
  const start = buffer[position++];
75243
75269
  const end = buffer[position++];
75244
- const directivePosition = buffer[position++];
75245
75270
  const expression = convertNode(position, buffer, readString);
75246
75271
  return {
75247
75272
  type: "ExpressionStatement",
75248
75273
  start,
75249
75274
  end,
75250
- expression,
75251
- ...directivePosition ? { directive: convertString(directivePosition, buffer, readString) } : {}
75275
+ expression
75252
75276
  };
75253
75277
  },
75254
- // index:25; ForInStatement
75255
- (position, buffer, readString) => {
75278
+ function forInStatement(position, buffer, readString) {
75256
75279
  const start = buffer[position++];
75257
75280
  const end = buffer[position++];
75258
75281
  const right = convertNode(buffer[position++], buffer, readString);
@@ -75262,16 +75285,16 @@ ${smallChunks} are below minChunkSize.`
75262
75285
  type: "ForInStatement",
75263
75286
  start,
75264
75287
  end,
75265
- body,
75266
75288
  left,
75267
- right
75289
+ right,
75290
+ body
75268
75291
  };
75269
75292
  },
75270
- // index:26; ForOfStatement
75271
- (position, buffer, readString) => {
75293
+ function forOfStatement(position, buffer, readString) {
75272
75294
  const start = buffer[position++];
75273
75295
  const end = buffer[position++];
75274
- const awaited = !!buffer[position++];
75296
+ const flags = buffer[position++];
75297
+ const awaited = (flags & 1) === 1;
75275
75298
  const right = convertNode(buffer[position++], buffer, readString);
75276
75299
  const body = convertNode(buffer[position++], buffer, readString);
75277
75300
  const left = convertNode(position, buffer, readString);
@@ -75280,75 +75303,80 @@ ${smallChunks} are below minChunkSize.`
75280
75303
  start,
75281
75304
  end,
75282
75305
  await: awaited,
75283
- body,
75284
75306
  left,
75285
- right
75307
+ right,
75308
+ body
75286
75309
  };
75287
75310
  },
75288
- // index:27; ForStatement
75289
- (position, buffer, readString) => {
75311
+ function forStatement(position, buffer, readString) {
75290
75312
  const start = buffer[position++];
75291
75313
  const end = buffer[position++];
75292
75314
  const initPosition = buffer[position++];
75315
+ const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
75293
75316
  const testPosition = buffer[position++];
75317
+ const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
75294
75318
  const updatePosition = buffer[position++];
75319
+ const update = updatePosition === 0 ? null : convertNode(updatePosition, buffer, readString);
75295
75320
  const body = convertNode(buffer[position], buffer, readString);
75296
75321
  return {
75297
75322
  type: "ForStatement",
75298
75323
  start,
75299
75324
  end,
75300
- body,
75301
- init: initPosition ? convertNode(initPosition, buffer, readString) : null,
75302
- test: testPosition ? convertNode(testPosition, buffer, readString) : null,
75303
- update: updatePosition ? convertNode(updatePosition, buffer, readString) : null
75325
+ init,
75326
+ test,
75327
+ update,
75328
+ body
75304
75329
  };
75305
75330
  },
75306
- // index:28; FunctionDeclaration
75307
- (position, buffer, readString) => {
75331
+ function functionDeclaration(position, buffer, readString) {
75308
75332
  const start = buffer[position++];
75309
75333
  const end = buffer[position++];
75310
- const async = !!buffer[position++];
75311
- const generator = !!buffer[position++];
75334
+ const flags = buffer[position++];
75335
+ const async = (flags & 1) === 1;
75336
+ const generator = (flags & 2) === 2;
75312
75337
  const idPosition = buffer[position++];
75338
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75313
75339
  const parameters = convertNodeList(buffer[position++], buffer, readString);
75314
75340
  const body = convertNode(buffer[position++], buffer, readString);
75315
- const annotations = convertAnnotationList(position, buffer);
75316
- return addAnnotationProperty({
75341
+ const annotations = convertAnnotations(position, buffer);
75342
+ return {
75317
75343
  type: "FunctionDeclaration",
75318
75344
  start,
75319
75345
  end,
75320
75346
  async,
75321
- body,
75322
- expression: false,
75323
75347
  generator,
75324
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75325
- params: parameters
75326
- }, annotations, ANNOTATION_KEY);
75348
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75349
+ id,
75350
+ params: parameters,
75351
+ body,
75352
+ expression: false
75353
+ };
75327
75354
  },
75328
- // index:29; FunctionExpression
75329
- (position, buffer, readString) => {
75355
+ function functionExpression(position, buffer, readString) {
75330
75356
  const start = buffer[position++];
75331
75357
  const end = buffer[position++];
75332
- const async = !!buffer[position++];
75333
- const generator = !!buffer[position++];
75358
+ const flags = buffer[position++];
75359
+ const async = (flags & 1) === 1;
75360
+ const generator = (flags & 2) === 2;
75334
75361
  const idPosition = buffer[position++];
75362
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75335
75363
  const parameters = convertNodeList(buffer[position++], buffer, readString);
75336
75364
  const body = convertNode(buffer[position++], buffer, readString);
75337
- const annotations = convertAnnotationList(position, buffer);
75338
- return addAnnotationProperty({
75365
+ const annotations = convertAnnotations(position, buffer);
75366
+ return {
75339
75367
  type: "FunctionExpression",
75340
75368
  start,
75341
75369
  end,
75342
75370
  async,
75343
- body,
75344
- expression: false,
75345
75371
  generator,
75346
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75347
- params: parameters
75348
- }, annotations, ANNOTATION_KEY);
75372
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75373
+ id,
75374
+ params: parameters,
75375
+ body,
75376
+ expression: false
75377
+ };
75349
75378
  },
75350
- // index:30; Identifier
75351
- (position, buffer, readString) => {
75379
+ function identifier(position, buffer, readString) {
75352
75380
  const start = buffer[position++];
75353
75381
  const end = buffer[position++];
75354
75382
  const name = convertString(position, buffer, readString);
@@ -75359,24 +75387,23 @@ ${smallChunks} are below minChunkSize.`
75359
75387
  name
75360
75388
  };
75361
75389
  },
75362
- // index:31; IfStatement
75363
- (position, buffer, readString) => {
75390
+ function ifStatement(position, buffer, readString) {
75364
75391
  const start = buffer[position++];
75365
75392
  const end = buffer[position++];
75366
75393
  const consequent = convertNode(buffer[position++], buffer, readString);
75367
75394
  const alternatePosition = buffer[position++];
75395
+ const alternate = alternatePosition === 0 ? null : convertNode(alternatePosition, buffer, readString);
75368
75396
  const test = convertNode(position, buffer, readString);
75369
75397
  return {
75370
75398
  type: "IfStatement",
75371
75399
  start,
75372
75400
  end,
75373
- alternate: alternatePosition ? convertNode(alternatePosition, buffer, readString) : null,
75401
+ test,
75374
75402
  consequent,
75375
- test
75403
+ alternate
75376
75404
  };
75377
75405
  },
75378
- // index:32; ImportAttribute
75379
- (position, buffer, readString) => {
75406
+ function importAttribute(position, buffer, readString) {
75380
75407
  const start = buffer[position++];
75381
75408
  const end = buffer[position++];
75382
75409
  const value = convertNode(buffer[position++], buffer, readString);
@@ -75389,8 +75416,7 @@ ${smallChunks} are below minChunkSize.`
75389
75416
  value
75390
75417
  };
75391
75418
  },
75392
- // index:33; ImportDeclaration
75393
- (position, buffer, readString) => {
75419
+ function importDeclaration(position, buffer, readString) {
75394
75420
  const start = buffer[position++];
75395
75421
  const end = buffer[position++];
75396
75422
  const source = convertNode(buffer[position++], buffer, readString);
@@ -75400,13 +75426,12 @@ ${smallChunks} are below minChunkSize.`
75400
75426
  type: "ImportDeclaration",
75401
75427
  start,
75402
75428
  end,
75403
- source,
75404
75429
  specifiers,
75430
+ source,
75405
75431
  attributes
75406
75432
  };
75407
75433
  },
75408
- // index:34; ImportDefaultSpecifier
75409
- (position, buffer, readString) => {
75434
+ function importDefaultSpecifier(position, buffer, readString) {
75410
75435
  const start = buffer[position++];
75411
75436
  const end = buffer[position++];
75412
75437
  const local = convertNode(position, buffer, readString);
@@ -75417,22 +75442,21 @@ ${smallChunks} are below minChunkSize.`
75417
75442
  local
75418
75443
  };
75419
75444
  },
75420
- // index:35; ImportExpression
75421
- (position, buffer, readString) => {
75445
+ function importExpression(position, buffer, readString) {
75422
75446
  const start = buffer[position++];
75423
75447
  const end = buffer[position++];
75424
75448
  const optionsPosition = buffer[position++];
75449
+ const options = optionsPosition === 0 ? null : convertNode(optionsPosition, buffer, readString);
75425
75450
  const source = convertNode(position, buffer, readString);
75426
75451
  return {
75427
75452
  type: "ImportExpression",
75428
75453
  start,
75429
75454
  end,
75430
75455
  source,
75431
- options: optionsPosition ? convertNode(optionsPosition, buffer, readString) : null
75456
+ options
75432
75457
  };
75433
75458
  },
75434
- // index:36; ImportNamespaceSpecifier
75435
- (position, buffer, readString) => {
75459
+ function importNamespaceSpecifier(position, buffer, readString) {
75436
75460
  const start = buffer[position++];
75437
75461
  const end = buffer[position++];
75438
75462
  const local = convertNode(position, buffer, readString);
@@ -75443,23 +75467,20 @@ ${smallChunks} are below minChunkSize.`
75443
75467
  local
75444
75468
  };
75445
75469
  },
75446
- // index:37; ImportSpecifier
75447
- (position, buffer, readString) => {
75470
+ function importSpecifier(position, buffer, readString) {
75448
75471
  const start = buffer[position++];
75449
75472
  const end = buffer[position++];
75450
75473
  const importedPosition = buffer[position++];
75451
75474
  const local = convertNode(buffer[position], buffer, readString);
75452
- const imported = importedPosition ? convertNode(importedPosition, buffer, readString) : local;
75453
75475
  return {
75454
75476
  type: "ImportSpecifier",
75455
75477
  start,
75456
75478
  end,
75457
- imported,
75479
+ imported: importedPosition === 0 ? { ...local } : convertNode(importedPosition, buffer, readString),
75458
75480
  local
75459
75481
  };
75460
75482
  },
75461
- // index:38; LabeledStatement
75462
- (position, buffer, readString) => {
75483
+ function labeledStatement(position, buffer, readString) {
75463
75484
  const start = buffer[position++];
75464
75485
  const end = buffer[position++];
75465
75486
  const body = convertNode(buffer[position++], buffer, readString);
@@ -75468,67 +75489,63 @@ ${smallChunks} are below minChunkSize.`
75468
75489
  type: "LabeledStatement",
75469
75490
  start,
75470
75491
  end,
75471
- body,
75472
- label
75492
+ label,
75493
+ body
75473
75494
  };
75474
75495
  },
75475
- // index:39; Literal<string>
75476
- (position, buffer, readString) => {
75496
+ function literalBigInt(position, buffer, readString) {
75477
75497
  const start = buffer[position++];
75478
75498
  const end = buffer[position++];
75479
- const rawPosition = buffer[position++];
75480
- const raw = rawPosition ? convertString(rawPosition, buffer, readString) : void 0;
75481
- const value = convertString(position, buffer, readString);
75499
+ const raw = convertString(buffer[position++], buffer, readString);
75500
+ const bigint = convertString(position, buffer, readString);
75482
75501
  return {
75483
75502
  type: "Literal",
75484
75503
  start,
75485
75504
  end,
75505
+ bigint,
75486
75506
  raw,
75487
- value
75507
+ value: BigInt(bigint)
75488
75508
  };
75489
75509
  },
75490
- // index:40; Literal<boolean>
75491
- (position, buffer) => {
75510
+ function literalBoolean(position, buffer) {
75492
75511
  const start = buffer[position++];
75493
75512
  const end = buffer[position++];
75494
- const value = !!buffer[position++];
75513
+ const flags = buffer[position++];
75514
+ const value = (flags & 1) === 1;
75495
75515
  return {
75496
75516
  type: "Literal",
75497
75517
  start,
75498
75518
  end,
75499
- raw: value ? "true" : "false",
75500
- value
75519
+ value,
75520
+ raw: value ? "true" : "false"
75501
75521
  };
75502
75522
  },
75503
- // index:41; Literal<number>
75504
- (position, buffer, readString) => {
75523
+ function literalNull(position, buffer) {
75505
75524
  const start = buffer[position++];
75506
75525
  const end = buffer[position++];
75507
- const rawPosition = buffer[position++];
75508
- const raw = rawPosition ? convertString(rawPosition, buffer, readString) : void 0;
75509
- const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
75510
75526
  return {
75511
75527
  type: "Literal",
75512
75528
  start,
75513
75529
  end,
75514
- raw,
75515
- value
75530
+ raw: "null",
75531
+ value: null
75516
75532
  };
75517
75533
  },
75518
- // index:42; Literal<null>
75519
- (position, buffer) => {
75534
+ function literalNumber(position, buffer, readString) {
75520
75535
  const start = buffer[position++];
75521
75536
  const end = buffer[position++];
75537
+ const rawPosition = buffer[position++];
75538
+ const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
75539
+ const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
75522
75540
  return {
75523
75541
  type: "Literal",
75524
75542
  start,
75525
75543
  end,
75526
- raw: "null",
75527
- value: null
75544
+ raw,
75545
+ value
75528
75546
  };
75529
75547
  },
75530
- // index:43; Literal<RegExp>
75531
- (position, buffer, readString) => {
75548
+ function literalRegExp(position, buffer, readString) {
75532
75549
  const start = buffer[position++];
75533
75550
  const end = buffer[position++];
75534
75551
  const pattern = convertString(buffer[position++], buffer, readString);
@@ -75538,30 +75555,25 @@ ${smallChunks} are below minChunkSize.`
75538
75555
  start,
75539
75556
  end,
75540
75557
  raw: `/${pattern}/${flags}`,
75541
- regex: {
75542
- flags,
75543
- pattern
75544
- },
75558
+ regex: { flags, pattern },
75545
75559
  value: new RegExp(pattern, flags)
75546
75560
  };
75547
75561
  },
75548
- // index:44; Literal<bigint>
75549
- (position, buffer, readString) => {
75562
+ function literalString(position, buffer, readString) {
75550
75563
  const start = buffer[position++];
75551
75564
  const end = buffer[position++];
75552
- const bigint = convertString(buffer[position++], buffer, readString);
75553
- const raw = convertString(position, buffer, readString);
75565
+ const rawPosition = buffer[position++];
75566
+ const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
75567
+ const value = convertString(position, buffer, readString);
75554
75568
  return {
75555
75569
  type: "Literal",
75556
75570
  start,
75557
75571
  end,
75558
- bigint,
75559
- raw,
75560
- value: BigInt(bigint)
75572
+ value,
75573
+ raw
75561
75574
  };
75562
75575
  },
75563
- // index:45; LogicalExpression
75564
- (position, buffer, readString) => {
75576
+ function logicalExpression(position, buffer, readString) {
75565
75577
  const start = buffer[position++];
75566
75578
  const end = buffer[position++];
75567
75579
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -75571,17 +75583,17 @@ ${smallChunks} are below minChunkSize.`
75571
75583
  type: "LogicalExpression",
75572
75584
  start,
75573
75585
  end,
75574
- left,
75575
75586
  operator,
75587
+ left,
75576
75588
  right
75577
75589
  };
75578
75590
  },
75579
- // index:46; MemberExpression
75580
- (position, buffer, readString) => {
75591
+ function memberExpression(position, buffer, readString) {
75581
75592
  const start = buffer[position++];
75582
75593
  const end = buffer[position++];
75583
- const optional = !!buffer[position++];
75584
- const computed = !!buffer[position++];
75594
+ const flags = buffer[position++];
75595
+ const computed = (flags & 1) === 1;
75596
+ const optional = (flags & 2) === 2;
75585
75597
  const property = convertNode(buffer[position++], buffer, readString);
75586
75598
  const object = convertNode(position, buffer, readString);
75587
75599
  return {
@@ -75589,13 +75601,12 @@ ${smallChunks} are below minChunkSize.`
75589
75601
  start,
75590
75602
  end,
75591
75603
  computed,
75592
- object,
75593
75604
  optional,
75605
+ object,
75594
75606
  property
75595
75607
  };
75596
75608
  },
75597
- // index:47; MetaProperty
75598
- (position, buffer, readString) => {
75609
+ function metaProperty(position, buffer, readString) {
75599
75610
  const start = buffer[position++];
75600
75611
  const end = buffer[position++];
75601
75612
  const property = convertNode(buffer[position++], buffer, readString);
@@ -75608,43 +75619,42 @@ ${smallChunks} are below minChunkSize.`
75608
75619
  property
75609
75620
  };
75610
75621
  },
75611
- // index:48; MethodDefinition
75612
- (position, buffer, readString) => {
75622
+ function methodDefinition(position, buffer, readString) {
75613
75623
  const start = buffer[position++];
75614
75624
  const end = buffer[position++];
75615
- const kind = FIXED_STRINGS[buffer[position++]];
75616
- const computed = !!buffer[position++];
75617
- const isStatic = !!buffer[position++];
75625
+ const flags = buffer[position++];
75626
+ const computed = (flags & 1) === 1;
75627
+ const isStatic = (flags & 2) === 2;
75618
75628
  const value = convertNode(buffer[position++], buffer, readString);
75629
+ const kind = FIXED_STRINGS[buffer[position++]];
75619
75630
  const key = convertNode(position, buffer, readString);
75620
75631
  return {
75621
75632
  type: "MethodDefinition",
75622
75633
  start,
75623
75634
  end,
75624
75635
  computed,
75625
- key,
75626
- kind,
75627
75636
  static: isStatic,
75628
- value
75637
+ key,
75638
+ value,
75639
+ kind
75629
75640
  };
75630
75641
  },
75631
- // index:49; NewExpression
75632
- (position, buffer, readString) => {
75642
+ function newExpression(position, buffer, readString) {
75633
75643
  const start = buffer[position++];
75634
75644
  const end = buffer[position++];
75635
75645
  const callee = convertNode(buffer[position++], buffer, readString);
75636
- const argumentsPosition = buffer[position++];
75637
- const annotations = convertAnnotationList(position, buffer);
75638
- return addAnnotationProperty({
75646
+ const callArguments = convertNodeList(buffer[position++], buffer, readString);
75647
+ const annotations = convertAnnotations(position, buffer);
75648
+ return {
75639
75649
  type: "NewExpression",
75640
75650
  start,
75641
75651
  end,
75642
- arguments: argumentsPosition ? convertNodeList(argumentsPosition, buffer, readString) : [],
75643
- callee
75644
- }, annotations, ANNOTATION_KEY);
75652
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75653
+ callee,
75654
+ arguments: callArguments
75655
+ };
75645
75656
  },
75646
- // index:50; ObjectExpression
75647
- (position, buffer, readString) => {
75657
+ function objectExpression(position, buffer, readString) {
75648
75658
  const start = buffer[position++];
75649
75659
  const end = buffer[position++];
75650
75660
  const properties = convertNodeList(position, buffer, readString);
@@ -75655,8 +75665,7 @@ ${smallChunks} are below minChunkSize.`
75655
75665
  properties
75656
75666
  };
75657
75667
  },
75658
- // index:51; ObjectPattern
75659
- (position, buffer, readString) => {
75668
+ function objectPattern(position, buffer, readString) {
75660
75669
  const start = buffer[position++];
75661
75670
  const end = buffer[position++];
75662
75671
  const properties = convertNodeList(position, buffer, readString);
@@ -75667,8 +75676,7 @@ ${smallChunks} are below minChunkSize.`
75667
75676
  properties
75668
75677
  };
75669
75678
  },
75670
- // index:52; PrivateIdentifier
75671
- (position, buffer, readString) => {
75679
+ function privateIdentifier(position, buffer, readString) {
75672
75680
  const start = buffer[position++];
75673
75681
  const end = buffer[position++];
75674
75682
  const name = convertString(position, buffer, readString);
@@ -75679,62 +75687,62 @@ ${smallChunks} are below minChunkSize.`
75679
75687
  name
75680
75688
  };
75681
75689
  },
75682
- // index:53; Program
75683
- (position, buffer, readString) => {
75690
+ function program(position, buffer, readString) {
75684
75691
  const start = buffer[position++];
75685
75692
  const end = buffer[position++];
75686
- const annotations = convertAnnotationList(buffer[position++], buffer);
75693
+ const annotations = convertAnnotations(buffer[position++], buffer);
75687
75694
  const body = convertNodeList(position, buffer, readString);
75688
- return addAnnotationProperty({
75695
+ return {
75689
75696
  type: "Program",
75690
75697
  start,
75691
75698
  end,
75692
75699
  body,
75700
+ ...annotations.length > 0 ? { [INVALID_ANNOTATION_KEY]: annotations } : {},
75693
75701
  sourceType: "module"
75694
- }, annotations, INVALID_ANNOTATION_KEY);
75702
+ };
75695
75703
  },
75696
- // index:54; Property
75697
- (position, buffer, readString) => {
75704
+ function property(position, buffer, readString) {
75698
75705
  const start = buffer[position++];
75699
75706
  const end = buffer[position++];
75700
- const kind = FIXED_STRINGS[buffer[position++]];
75701
- const method = !!buffer[position++];
75702
- const computed = !!buffer[position++];
75703
- const shorthand = !!buffer[position++];
75704
- const key = convertNode(buffer[position++], buffer, readString);
75705
- const valuePosition = buffer[position];
75707
+ const flags = buffer[position++];
75708
+ const method = (flags & 1) === 1;
75709
+ const shorthand = (flags & 2) === 2;
75710
+ const computed = (flags & 4) === 4;
75711
+ const keyPosition = buffer[position++];
75712
+ const value = convertNode(buffer[position++], buffer, readString);
75713
+ const kind = FIXED_STRINGS[buffer[position]];
75706
75714
  return {
75707
75715
  type: "Property",
75708
75716
  start,
75709
75717
  end,
75710
- computed,
75711
- key,
75712
- kind,
75713
75718
  method,
75714
75719
  shorthand,
75715
- value: valuePosition ? convertNode(valuePosition, buffer, readString) : { ...key }
75720
+ computed,
75721
+ key: keyPosition === 0 ? { ...value } : convertNode(keyPosition, buffer, readString),
75722
+ value,
75723
+ kind
75716
75724
  };
75717
75725
  },
75718
- // index:55; PropertyDefinition
75719
- (position, buffer, readString) => {
75726
+ function propertyDefinition(position, buffer, readString) {
75720
75727
  const start = buffer[position++];
75721
75728
  const end = buffer[position++];
75722
- const computed = !!buffer[position++];
75723
- const isStatic = !!buffer[position++];
75729
+ const flags = buffer[position++];
75730
+ const computed = (flags & 1) === 1;
75731
+ const isStatic = (flags & 2) === 2;
75724
75732
  const valuePosition = buffer[position++];
75733
+ const value = valuePosition === 0 ? null : convertNode(valuePosition, buffer, readString);
75725
75734
  const key = convertNode(position, buffer, readString);
75726
75735
  return {
75727
75736
  type: "PropertyDefinition",
75728
75737
  start,
75729
75738
  end,
75730
75739
  computed,
75731
- key,
75732
75740
  static: isStatic,
75733
- value: valuePosition ? convertNode(valuePosition, buffer, readString) : null
75741
+ key,
75742
+ value
75734
75743
  };
75735
75744
  },
75736
- // index:56; RestElement
75737
- (position, buffer, readString) => {
75745
+ function restElement(position, buffer, readString) {
75738
75746
  const start = buffer[position++];
75739
75747
  const end = buffer[position++];
75740
75748
  const argument = convertNode(position, buffer, readString);
@@ -75745,20 +75753,19 @@ ${smallChunks} are below minChunkSize.`
75745
75753
  argument
75746
75754
  };
75747
75755
  },
75748
- // index:57; ReturnStatement
75749
- (position, buffer, readString) => {
75756
+ function returnStatement(position, buffer, readString) {
75750
75757
  const start = buffer[position++];
75751
75758
  const end = buffer[position++];
75752
75759
  const argumentPosition = buffer[position];
75760
+ const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
75753
75761
  return {
75754
75762
  type: "ReturnStatement",
75755
75763
  start,
75756
75764
  end,
75757
- argument: argumentPosition ? convertNode(argumentPosition, buffer, readString) : null
75765
+ argument
75758
75766
  };
75759
75767
  },
75760
- // index:58; SequenceExpression
75761
- (position, buffer, readString) => {
75768
+ function sequenceExpression(position, buffer, readString) {
75762
75769
  const start = buffer[position++];
75763
75770
  const end = buffer[position++];
75764
75771
  const expressions = convertNodeList(position, buffer, readString);
@@ -75769,8 +75776,7 @@ ${smallChunks} are below minChunkSize.`
75769
75776
  expressions
75770
75777
  };
75771
75778
  },
75772
- // index:59; SpreadElement
75773
- (position, buffer, readString) => {
75779
+ function spreadElement(position, buffer, readString) {
75774
75780
  const start = buffer[position++];
75775
75781
  const end = buffer[position++];
75776
75782
  const argument = convertNode(position, buffer, readString);
@@ -75781,8 +75787,7 @@ ${smallChunks} are below minChunkSize.`
75781
75787
  argument
75782
75788
  };
75783
75789
  },
75784
- // index:60; StaticBlock
75785
- (position, buffer, readString) => {
75790
+ function staticBlock(position, buffer, readString) {
75786
75791
  const start = buffer[position++];
75787
75792
  const end = buffer[position++];
75788
75793
  const body = convertNodeList(position, buffer, readString);
@@ -75793,8 +75798,7 @@ ${smallChunks} are below minChunkSize.`
75793
75798
  body
75794
75799
  };
75795
75800
  },
75796
- // index:61; Super
75797
- (position, buffer) => {
75801
+ function superElement(position, buffer) {
75798
75802
  const start = buffer[position++];
75799
75803
  const end = buffer[position++];
75800
75804
  return {
@@ -75803,22 +75807,21 @@ ${smallChunks} are below minChunkSize.`
75803
75807
  end
75804
75808
  };
75805
75809
  },
75806
- // index:62; SwitchCase
75807
- (position, buffer, readString) => {
75810
+ function switchCase(position, buffer, readString) {
75808
75811
  const start = buffer[position++];
75809
75812
  const end = buffer[position++];
75810
75813
  const testPosition = buffer[position++];
75814
+ const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
75811
75815
  const consequent = convertNodeList(buffer[position], buffer, readString);
75812
75816
  return {
75813
75817
  type: "SwitchCase",
75814
75818
  start,
75815
75819
  end,
75816
- consequent,
75817
- test: testPosition ? convertNode(testPosition, buffer, readString) : null
75820
+ test,
75821
+ consequent
75818
75822
  };
75819
75823
  },
75820
- // index:63; SwitchStatement
75821
- (position, buffer, readString) => {
75824
+ function switchStatement(position, buffer, readString) {
75822
75825
  const start = buffer[position++];
75823
75826
  const end = buffer[position++];
75824
75827
  const cases = convertNodeList(buffer[position++], buffer, readString);
@@ -75827,12 +75830,11 @@ ${smallChunks} are below minChunkSize.`
75827
75830
  type: "SwitchStatement",
75828
75831
  start,
75829
75832
  end,
75830
- cases,
75831
- discriminant
75833
+ discriminant,
75834
+ cases
75832
75835
  };
75833
75836
  },
75834
- // index:64; TaggedTemplateExpression
75835
- (position, buffer, readString) => {
75837
+ function taggedTemplateExpression(position, buffer, readString) {
75836
75838
  const start = buffer[position++];
75837
75839
  const end = buffer[position++];
75838
75840
  const quasi = convertNode(buffer[position++], buffer, readString);
@@ -75841,30 +75843,27 @@ ${smallChunks} are below minChunkSize.`
75841
75843
  type: "TaggedTemplateExpression",
75842
75844
  start,
75843
75845
  end,
75844
- quasi,
75845
- tag
75846
+ tag,
75847
+ quasi
75846
75848
  };
75847
75849
  },
75848
- // index:65; TemplateElement
75849
- (position, buffer, readString) => {
75850
+ function templateElement(position, buffer, readString) {
75850
75851
  const start = buffer[position++];
75851
75852
  const end = buffer[position++];
75852
- const tail = !!buffer[position++];
75853
+ const flags = buffer[position++];
75854
+ const tail = (flags & 1) === 1;
75853
75855
  const cookedPosition = buffer[position++];
75856
+ const cooked = cookedPosition === 0 ? void 0 : convertString(cookedPosition, buffer, readString);
75854
75857
  const raw = convertString(position, buffer, readString);
75855
75858
  return {
75856
75859
  type: "TemplateElement",
75857
75860
  start,
75858
75861
  end,
75859
75862
  tail,
75860
- value: {
75861
- cooked: cookedPosition ? convertString(cookedPosition, buffer, readString) : null,
75862
- raw
75863
- }
75863
+ value: { cooked, raw }
75864
75864
  };
75865
75865
  },
75866
- // index:66; TemplateLiteral
75867
- (position, buffer, readString) => {
75866
+ function templateLiteral(position, buffer, readString) {
75868
75867
  const start = buffer[position++];
75869
75868
  const end = buffer[position++];
75870
75869
  const expressions = convertNodeList(buffer[position++], buffer, readString);
@@ -75873,12 +75872,11 @@ ${smallChunks} are below minChunkSize.`
75873
75872
  type: "TemplateLiteral",
75874
75873
  start,
75875
75874
  end,
75876
- expressions,
75877
- quasis
75875
+ quasis,
75876
+ expressions
75878
75877
  };
75879
75878
  },
75880
- // index:67; ThisExpression
75881
- (position, buffer) => {
75879
+ function thisExpression(position, buffer) {
75882
75880
  const start = buffer[position++];
75883
75881
  const end = buffer[position++];
75884
75882
  return {
@@ -75887,8 +75885,7 @@ ${smallChunks} are below minChunkSize.`
75887
75885
  end
75888
75886
  };
75889
75887
  },
75890
- // index:68; ThrowStatement
75891
- (position, buffer, readString) => {
75888
+ function throwStatement(position, buffer, readString) {
75892
75889
  const start = buffer[position++];
75893
75890
  const end = buffer[position++];
75894
75891
  const argument = convertNode(position, buffer, readString);
@@ -75899,24 +75896,24 @@ ${smallChunks} are below minChunkSize.`
75899
75896
  argument
75900
75897
  };
75901
75898
  },
75902
- // index:69; TryStatement
75903
- (position, buffer, readString) => {
75899
+ function tryStatement(position, buffer, readString) {
75904
75900
  const start = buffer[position++];
75905
75901
  const end = buffer[position++];
75906
75902
  const handlerPosition = buffer[position++];
75903
+ const handler = handlerPosition === 0 ? null : convertNode(handlerPosition, buffer, readString);
75907
75904
  const finalizerPosition = buffer[position++];
75905
+ const finalizer = finalizerPosition === 0 ? null : convertNode(finalizerPosition, buffer, readString);
75908
75906
  const block = convertNode(position, buffer, readString);
75909
75907
  return {
75910
75908
  type: "TryStatement",
75911
75909
  start,
75912
75910
  end,
75913
75911
  block,
75914
- finalizer: finalizerPosition ? convertNode(finalizerPosition, buffer, readString) : null,
75915
- handler: handlerPosition ? convertNode(handlerPosition, buffer, readString) : null
75912
+ handler,
75913
+ finalizer
75916
75914
  };
75917
75915
  },
75918
- // index:70; UnaryExpression
75919
- (position, buffer, readString) => {
75916
+ function unaryExpression(position, buffer, readString) {
75920
75917
  const start = buffer[position++];
75921
75918
  const end = buffer[position++];
75922
75919
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -75925,29 +75922,28 @@ ${smallChunks} are below minChunkSize.`
75925
75922
  type: "UnaryExpression",
75926
75923
  start,
75927
75924
  end,
75928
- argument,
75929
75925
  operator,
75926
+ argument,
75930
75927
  prefix: true
75931
75928
  };
75932
75929
  },
75933
- // index:71; UpdateExpression
75934
- (position, buffer, readString) => {
75930
+ function updateExpression(position, buffer, readString) {
75935
75931
  const start = buffer[position++];
75936
75932
  const end = buffer[position++];
75937
- const prefix = !!buffer[position++];
75933
+ const flags = buffer[position++];
75934
+ const prefix = (flags & 1) === 1;
75938
75935
  const operator = FIXED_STRINGS[buffer[position++]];
75939
75936
  const argument = convertNode(position, buffer, readString);
75940
75937
  return {
75941
75938
  type: "UpdateExpression",
75942
75939
  start,
75943
75940
  end,
75944
- argument,
75941
+ prefix,
75945
75942
  operator,
75946
- prefix
75943
+ argument
75947
75944
  };
75948
75945
  },
75949
- // index:72; VariableDeclaration
75950
- (position, buffer, readString) => {
75946
+ function variableDeclaration(position, buffer, readString) {
75951
75947
  const start = buffer[position++];
75952
75948
  const end = buffer[position++];
75953
75949
  const kind = FIXED_STRINGS[buffer[position++]];
@@ -75956,26 +75952,25 @@ ${smallChunks} are below minChunkSize.`
75956
75952
  type: "VariableDeclaration",
75957
75953
  start,
75958
75954
  end,
75959
- declarations,
75960
- kind
75955
+ kind,
75956
+ declarations
75961
75957
  };
75962
75958
  },
75963
- // index:73; VariableDeclarator
75964
- (position, buffer, readString) => {
75959
+ function variableDeclarator(position, buffer, readString) {
75965
75960
  const start = buffer[position++];
75966
75961
  const end = buffer[position++];
75967
- const init_position = buffer[position++];
75962
+ const initPosition = buffer[position++];
75963
+ const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
75968
75964
  const id = convertNode(position, buffer, readString);
75969
75965
  return {
75970
75966
  type: "VariableDeclarator",
75971
75967
  start,
75972
75968
  end,
75973
75969
  id,
75974
- init: init_position ? convertNode(init_position, buffer, readString) : null
75970
+ init
75975
75971
  };
75976
75972
  },
75977
- // index:74; WhileStatement
75978
- (position, buffer, readString) => {
75973
+ function whileStatement(position, buffer, readString) {
75979
75974
  const start = buffer[position++];
75980
75975
  const end = buffer[position++];
75981
75976
  const body = convertNode(buffer[position++], buffer, readString);
@@ -75984,32 +75979,36 @@ ${smallChunks} are below minChunkSize.`
75984
75979
  type: "WhileStatement",
75985
75980
  start,
75986
75981
  end,
75987
- body,
75988
- test
75982
+ test,
75983
+ body
75989
75984
  };
75990
75985
  },
75991
- // index:75; YieldExpression
75992
- (position, buffer, readString) => {
75986
+ function yieldExpression(position, buffer, readString) {
75993
75987
  const start = buffer[position++];
75994
75988
  const end = buffer[position++];
75995
- const delegate = !!buffer[position++];
75989
+ const flags = buffer[position++];
75990
+ const delegate = (flags & 1) === 1;
75996
75991
  const argumentPosition = buffer[position];
75992
+ const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
75997
75993
  return {
75998
75994
  type: "YieldExpression",
75999
75995
  start,
76000
75996
  end,
76001
- argument: argumentPosition ? convertNode(argumentPosition, buffer, readString) : null,
76002
- delegate
75997
+ delegate,
75998
+ argument
76003
75999
  };
76004
- },
76005
- // index:76; Syntax Error
76006
- (position, buffer, readString) => {
76007
- const pos = buffer[position++];
76008
- const message = convertString(position, buffer, readString);
76009
- error(logParseError(message, pos));
76010
76000
  }
76011
76001
  ];
76012
- var convertNodeList = (position, buffer, readString) => {
76002
+ function convertNode(position, buffer, readString) {
76003
+ const nodeType = buffer[position];
76004
+ const converter = nodeConverters[nodeType];
76005
+ if (!converter) {
76006
+ console.trace();
76007
+ throw new Error(`Unknown node type: ${nodeType}`);
76008
+ }
76009
+ return converter(position + 1, buffer, readString);
76010
+ }
76011
+ function convertNodeList(position, buffer, readString) {
76013
76012
  const length = buffer[position++];
76014
76013
  const list = [];
76015
76014
  for (let index = 0; index < length; index++) {
@@ -76017,8 +76016,8 @@ ${smallChunks} are below minChunkSize.`
76017
76016
  list.push(nodePosition ? convertNode(nodePosition, buffer, readString) : null);
76018
76017
  }
76019
76018
  return list;
76020
- };
76021
- var convertAnnotationList = (position, buffer) => {
76019
+ }
76020
+ var convertAnnotations = (position, buffer) => {
76022
76021
  const length = buffer[position++];
76023
76022
  const list = [];
76024
76023
  for (let index = 0; index < length; index++) {
@@ -76032,22 +76031,11 @@ ${smallChunks} are below minChunkSize.`
76032
76031
  const type = FIXED_STRINGS[buffer[position]];
76033
76032
  return { end, start, type };
76034
76033
  };
76035
- var addAnnotationProperty = (node, annotations, key) => {
76036
- if (annotations.length > 0) {
76037
- return {
76038
- ...node,
76039
- [key]: annotations
76040
- };
76041
- }
76042
- return node;
76043
- };
76044
76034
  var convertString = (position, buffer, readString) => {
76045
76035
  const length = buffer[position++];
76046
76036
  const bytePosition = position << 2;
76047
76037
  return readString(bytePosition, length);
76048
76038
  };
76049
- var ANNOTATION_KEY = "_rollupAnnotations";
76050
- var INVALID_ANNOTATION_KEY = "_rollupRemoved";
76051
76039
  function getReadStringFunction(astBuffer) {
76052
76040
  if (typeof Buffer !== "undefined" && astBuffer instanceof Buffer) {
76053
76041
  return function readString(start, length) {
@@ -76062,15 +76050,11 @@ ${smallChunks} are below minChunkSize.`
76062
76050
  }
76063
76051
  var parseAst = (input, { allowReturnOutsideFunction = false } = {}) => {
76064
76052
  const astBuffer = native_js.parse(input, allowReturnOutsideFunction);
76065
- const readString = getReadStringFunction(astBuffer);
76066
- const result = convertProgram(astBuffer.buffer, readString);
76067
- return result;
76053
+ return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
76068
76054
  };
76069
76055
  var parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal } = {}) => {
76070
76056
  const astBuffer = await native_js.parseAsync(input, allowReturnOutsideFunction, signal);
76071
- const readString = getReadStringFunction(astBuffer);
76072
- const result = convertProgram(astBuffer.buffer, readString);
76073
- return result;
76057
+ return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
76074
76058
  };
76075
76059
  exports2.ANNOTATION_KEY = ANNOTATION_KEY;
76076
76060
  exports2.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
@@ -76163,7 +76147,6 @@ ${smallChunks} are below minChunkSize.`
76163
76147
  exports2.logInvalidFunctionPluginHook = logInvalidFunctionPluginHook;
76164
76148
  exports2.logInvalidLogPosition = logInvalidLogPosition;
76165
76149
  exports2.logInvalidOption = logInvalidOption;
76166
- exports2.logInvalidRollupPhaseForAddWatchFile = logInvalidRollupPhaseForAddWatchFile;
76167
76150
  exports2.logInvalidRollupPhaseForChunkEmission = logInvalidRollupPhaseForChunkEmission;
76168
76151
  exports2.logInvalidSetAssetSourceCall = logInvalidSetAssetSourceCall;
76169
76152
  exports2.logInvalidSourcemapForError = logInvalidSourcemapForError;
@@ -76209,9 +76192,9 @@ ${smallChunks} are below minChunkSize.`
76209
76192
  }
76210
76193
  });
76211
76194
 
76212
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/rollup.js
76195
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js
76213
76196
  var require_rollup = __commonJS({
76214
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/rollup.js"(exports2) {
76197
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js"(exports2) {
76215
76198
  "use strict";
76216
76199
  var parseAst_js = require_parseAst();
76217
76200
  var process$1 = require("node:process");
@@ -76232,7 +76215,7 @@ var require_rollup = __commonJS({
76232
76215
  return n2;
76233
76216
  }
76234
76217
  var tty__namespace = /* @__PURE__ */ _interopNamespaceDefault(tty);
76235
- var version = "4.5.2";
76218
+ var version = "4.10.0";
76236
76219
  function ensureArray$1(items) {
76237
76220
  if (Array.isArray(items)) {
76238
76221
  return items.filter(Boolean);
@@ -76249,19 +76232,23 @@ var require_rollup = __commonJS({
76249
76232
  BuildPhase2[BuildPhase2["GENERATE"] = 2] = "GENERATE";
76250
76233
  })(BuildPhase || (BuildPhase = {}));
76251
76234
  var textEncoder;
76252
- function getXxhash(input) {
76253
- let buffer;
76235
+ var getHash64 = (input) => native_js.xxhashBase64Url(ensureBuffer(input));
76236
+ var getHash36 = (input) => native_js.xxhashBase36(ensureBuffer(input));
76237
+ var getHash16 = (input) => native_js.xxhashBase16(ensureBuffer(input));
76238
+ var hasherByType = {
76239
+ base36: getHash36,
76240
+ base64: getHash64,
76241
+ hex: getHash16
76242
+ };
76243
+ function ensureBuffer(input) {
76254
76244
  if (typeof input === "string") {
76255
76245
  if (typeof Buffer === "undefined") {
76256
76246
  textEncoder ??= new TextEncoder();
76257
- buffer = textEncoder.encode(input);
76258
- } else {
76259
- buffer = Buffer.from(input);
76247
+ return textEncoder.encode(input);
76260
76248
  }
76261
- } else {
76262
- buffer = input;
76249
+ return Buffer.from(input);
76263
76250
  }
76264
- return native_js.xxhashBase64Url(buffer);
76251
+ return input;
76265
76252
  }
76266
76253
  function getOrCreate(map, key, init2) {
76267
76254
  const existing = map.get(key);
@@ -76292,13 +76279,13 @@ var require_rollup = __commonJS({
76292
76279
  var hashPlaceholderLeft = "!~{";
76293
76280
  var hashPlaceholderRight = "}~";
76294
76281
  var hashPlaceholderOverhead = hashPlaceholderLeft.length + hashPlaceholderRight.length;
76295
- var maxHashSize = 22;
76296
- var defaultHashSize = 8;
76282
+ var MAX_HASH_SIZE = 22;
76283
+ var DEFAULT_HASH_SIZE = 8;
76297
76284
  var getHashPlaceholderGenerator = () => {
76298
76285
  let nextIndex = 0;
76299
- return (optionName, hashSize = defaultHashSize) => {
76300
- if (hashSize > maxHashSize) {
76301
- return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${maxHashSize} characters, received ${hashSize}. Check the "${optionName}" option.`));
76286
+ return (optionName, hashSize) => {
76287
+ if (hashSize > MAX_HASH_SIZE) {
76288
+ return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${MAX_HASH_SIZE} characters, received ${hashSize}. Check the "${optionName}" option.`));
76302
76289
  }
76303
76290
  const placeholder = `${hashPlaceholderLeft}${toBase64(++nextIndex).padStart(hashSize - hashPlaceholderOverhead, "0")}${hashPlaceholderRight}`;
76304
76291
  if (placeholder.length > hashSize) {
@@ -76307,7 +76294,7 @@ var require_rollup = __commonJS({
76307
76294
  return placeholder;
76308
76295
  };
76309
76296
  };
76310
- var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${maxHashSize - hashPlaceholderOverhead}}${hashPlaceholderRight}`, "g");
76297
+ var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${MAX_HASH_SIZE - hashPlaceholderOverhead}}${hashPlaceholderRight}`, "g");
76311
76298
  var replacePlaceholders = (code, hashesByPlaceholder) => code.replace(REPLACER_REGEX, (placeholder) => hashesByPlaceholder.get(placeholder) || placeholder);
76312
76299
  var replaceSinglePlaceholder = (code, placeholder, value) => code.replace(REPLACER_REGEX, (match2) => match2 === placeholder ? value : match2);
76313
76300
  var replacePlaceholdersWithDefaultAndGetContainedPlaceholders = (code, placeholders) => {
@@ -76393,7 +76380,7 @@ var require_rollup = __commonJS({
76393
76380
  return makeUnique(renderNamePattern(typeof outputOptions.assetFileNames === "function" ? outputOptions.assetFileNames({ name, source, type: "asset" }) : outputOptions.assetFileNames, "output.assetFileNames", {
76394
76381
  ext: () => node_path.extname(emittedName).slice(1),
76395
76382
  extname: () => node_path.extname(emittedName),
76396
- hash: (size) => sourceHash.slice(0, Math.max(0, size || defaultHashSize)),
76383
+ hash: (size) => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
76397
76384
  name: () => emittedName.slice(0, Math.max(0, emittedName.length - node_path.extname(emittedName).length))
76398
76385
  }), bundle);
76399
76386
  }
@@ -76499,9 +76486,11 @@ var require_rollup = __commonJS({
76499
76486
  this.facadeChunkByModule = facadeChunkByModule;
76500
76487
  };
76501
76488
  this.setOutputBundle = (bundle, outputOptions) => {
76489
+ const getHash = hasherByType[outputOptions.hashCharacters];
76502
76490
  const output = this.output = {
76503
76491
  bundle,
76504
76492
  fileNamesBySource: /* @__PURE__ */ new Map(),
76493
+ getHash,
76505
76494
  outputOptions
76506
76495
  };
76507
76496
  for (const emittedFile of this.filesByReferenceId.values()) {
@@ -76515,7 +76504,7 @@ var require_rollup = __commonJS({
76515
76504
  if (consumedFile.fileName) {
76516
76505
  this.finalizeAdditionalAsset(consumedFile, consumedFile.source, output);
76517
76506
  } else {
76518
- const sourceHash = getXxhash(consumedFile.source);
76507
+ const sourceHash = getHash(consumedFile.source);
76519
76508
  getOrCreate(consumedAssetsByHash, sourceHash, () => []).push(consumedFile);
76520
76509
  }
76521
76510
  } else if (consumedFile.type === "prebuilt-chunk") {
@@ -76535,7 +76524,7 @@ var require_rollup = __commonJS({
76535
76524
  assignReferenceId(file, idBase) {
76536
76525
  let referenceId = idBase;
76537
76526
  do {
76538
- referenceId = getXxhash(referenceId).slice(0, 8).replaceAll("-", "$");
76527
+ referenceId = getHash64(referenceId).slice(0, 8).replaceAll("-", "$");
76539
76528
  } while (this.filesByReferenceId.has(referenceId) || this.outputFileEmitters.some(({ filesByReferenceId }) => filesByReferenceId.has(referenceId)));
76540
76529
  file.referenceId = referenceId;
76541
76530
  this.filesByReferenceId.set(referenceId, file);
@@ -76635,10 +76624,10 @@ var require_rollup = __commonJS({
76635
76624
  }
76636
76625
  return referenceId;
76637
76626
  }
76638
- finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, outputOptions }) {
76627
+ finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, getHash, outputOptions }) {
76639
76628
  let { fileName, needsCodeReference, referenceId } = consumedFile;
76640
76629
  if (!fileName) {
76641
- const sourceHash = getXxhash(source);
76630
+ const sourceHash = getHash(source);
76642
76631
  fileName = fileNamesBySource.get(sourceHash);
76643
76632
  if (!fileName) {
76644
76633
  fileName = generateAssetFileName(consumedFile.name, source, sourceHash, outputOptions, bundle);
@@ -76952,9 +76941,6 @@ var require_rollup = __commonJS({
76952
76941
  }
76953
76942
  return {
76954
76943
  addWatchFile(id) {
76955
- if (graph.phase >= BuildPhase.GENERATE) {
76956
- return this.error(parseAst_js.logInvalidRollupPhaseForAddWatchFile());
76957
- }
76958
76944
  graph.watchFiles[id] = true;
76959
76945
  },
76960
76946
  cache: cacheInstance,
@@ -77390,6 +77376,7 @@ var require_rollup = __commonJS({
77390
77376
  freeze: getOption("freeze"),
77391
77377
  generatedCode: getObjectOption(config, overrides, "generatedCode", objectifyOptionWithPresets(generatedCodePresets, "output.generatedCode", parseAst_js.URL_OUTPUT_GENERATEDCODE, "")),
77392
77378
  globals: getOption("globals"),
77379
+ hashCharacters: getOption("hashCharacters"),
77393
77380
  hoistTransitiveImports: getOption("hoistTransitiveImports"),
77394
77381
  indent: getOption("indent"),
77395
77382
  inlineDynamicImports: getOption("inlineDynamicImports"),
@@ -77788,6 +77775,15 @@ var require_rollup = __commonJS({
77788
77775
  prependRight(content) {
77789
77776
  this.intro = content + this.intro;
77790
77777
  }
77778
+ reset() {
77779
+ this.intro = "";
77780
+ this.outro = "";
77781
+ if (this.edited) {
77782
+ this.content = this.original;
77783
+ this.storeName = false;
77784
+ this.edited = false;
77785
+ }
77786
+ }
77791
77787
  split(index) {
77792
77788
  const sliceIndex = index - this.start;
77793
77789
  const originalBefore = this.original.slice(0, sliceIndex);
@@ -77856,8 +77852,8 @@ var require_rollup = __commonJS({
77856
77852
  }
77857
77853
  };
77858
77854
  function getBtoa() {
77859
- if (typeof window !== "undefined" && typeof window.btoa === "function") {
77860
- return (str) => window.btoa(unescape(encodeURIComponent(str)));
77855
+ if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") {
77856
+ return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
77861
77857
  } else if (typeof Buffer === "function") {
77862
77858
  return (str) => Buffer.from(str, "utf-8").toString("base64");
77863
77859
  } else {
@@ -78408,6 +78404,26 @@ var require_rollup = __commonJS({
78408
78404
  }
78409
78405
  return this;
78410
78406
  }
78407
+ reset(start, end) {
78408
+ while (start < 0)
78409
+ start += this.original.length;
78410
+ while (end < 0)
78411
+ end += this.original.length;
78412
+ if (start === end)
78413
+ return this;
78414
+ if (start < 0 || end > this.original.length)
78415
+ throw new Error("Character is out of bounds");
78416
+ if (start > end)
78417
+ throw new Error("end must be greater than start");
78418
+ this._split(start);
78419
+ this._split(end);
78420
+ let chunk = this.byStart[start];
78421
+ while (chunk) {
78422
+ chunk.reset();
78423
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
78424
+ }
78425
+ return this;
78426
+ }
78411
78427
  lastChar() {
78412
78428
  if (this.outro.length)
78413
78429
  return this.outro[this.outro.length - 1];
@@ -79252,10 +79268,9 @@ var require_rollup = __commonJS({
79252
79268
  "with",
79253
79269
  "yield"
79254
79270
  ]);
79255
- var RESERVED_NAMES$1 = RESERVED_NAMES;
79256
79271
  var illegalCharacters = /[^\w$]/g;
79257
79272
  var startsWithDigit = (value) => /\d/.test(value[0]);
79258
- var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES$1.has(value) || value === "arguments";
79273
+ var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES.has(value) || value === "arguments";
79259
79274
  function isLegal(value) {
79260
79275
  if (needsEscape(value)) {
79261
79276
  return false;
@@ -79268,6 +79283,23 @@ var require_rollup = __commonJS({
79268
79283
  value = `_${value}`;
79269
79284
  return value || "_";
79270
79285
  }
79286
+ var VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
79287
+ var NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
79288
+ function stringifyObjectKeyIfNeeded(key) {
79289
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
79290
+ return key === "__proto__" ? '["__proto__"]' : key;
79291
+ }
79292
+ if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
79293
+ return key;
79294
+ }
79295
+ return JSON.stringify(key);
79296
+ }
79297
+ function stringifyIdentifierIfNeeded(key) {
79298
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
79299
+ return key;
79300
+ }
79301
+ return JSON.stringify(key);
79302
+ }
79271
79303
  var ExternalModule = class {
79272
79304
  constructor(options, id, moduleSideEffects, meta, renormalizeRenderPath, attributes) {
79273
79305
  this.options = options;
@@ -81387,8 +81419,15 @@ var require_rollup = __commonJS({
81387
81419
  this.description = description;
81388
81420
  }
81389
81421
  deoptimizeArgumentsOnInteractionAtPath({ args, type }, path3) {
81390
- if (type === INTERACTION_CALLED && path3.length === 0 && this.description.mutatesSelfAsArray) {
81391
- args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
81422
+ if (type === INTERACTION_CALLED && path3.length === 0) {
81423
+ if (this.description.mutatesSelfAsArray) {
81424
+ args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
81425
+ }
81426
+ if (this.description.mutatesArgs) {
81427
+ for (let index = 1; index < args.length; index++) {
81428
+ args[index].deoptimizePath(UNKNOWN_PATH);
81429
+ }
81430
+ }
81392
81431
  }
81393
81432
  }
81394
81433
  getReturnExpressionWhenCalledAtPath(path3, { args }) {
@@ -81424,6 +81463,7 @@ var require_rollup = __commonJS({
81424
81463
  var METHOD_RETURNS_BOOLEAN = [
81425
81464
  new Method({
81426
81465
  callsArgs: null,
81466
+ mutatesArgs: false,
81427
81467
  mutatesSelfAsArray: false,
81428
81468
  returns: null,
81429
81469
  returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
@@ -81432,6 +81472,7 @@ var require_rollup = __commonJS({
81432
81472
  var METHOD_RETURNS_STRING = [
81433
81473
  new Method({
81434
81474
  callsArgs: null,
81475
+ mutatesArgs: false,
81435
81476
  mutatesSelfAsArray: false,
81436
81477
  returns: null,
81437
81478
  returnsPrimitive: UNKNOWN_LITERAL_STRING
@@ -81440,6 +81481,7 @@ var require_rollup = __commonJS({
81440
81481
  var METHOD_RETURNS_NUMBER = [
81441
81482
  new Method({
81442
81483
  callsArgs: null,
81484
+ mutatesArgs: false,
81443
81485
  mutatesSelfAsArray: false,
81444
81486
  returns: null,
81445
81487
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -81448,6 +81490,7 @@ var require_rollup = __commonJS({
81448
81490
  var METHOD_RETURNS_UNKNOWN = [
81449
81491
  new Method({
81450
81492
  callsArgs: null,
81493
+ mutatesArgs: false,
81451
81494
  mutatesSelfAsArray: false,
81452
81495
  returns: null,
81453
81496
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -81834,6 +81877,7 @@ var require_rollup = __commonJS({
81834
81877
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN = [
81835
81878
  new Method({
81836
81879
  callsArgs: [0],
81880
+ mutatesArgs: false,
81837
81881
  mutatesSelfAsArray: "deopt-only",
81838
81882
  returns: null,
81839
81883
  returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
@@ -81842,6 +81886,7 @@ var require_rollup = __commonJS({
81842
81886
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER = [
81843
81887
  new Method({
81844
81888
  callsArgs: [0],
81889
+ mutatesArgs: false,
81845
81890
  mutatesSelfAsArray: "deopt-only",
81846
81891
  returns: null,
81847
81892
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -81850,6 +81895,7 @@ var require_rollup = __commonJS({
81850
81895
  var METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY = [
81851
81896
  new Method({
81852
81897
  callsArgs: null,
81898
+ mutatesArgs: false,
81853
81899
  mutatesSelfAsArray: true,
81854
81900
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
81855
81901
  returnsPrimitive: null
@@ -81858,6 +81904,7 @@ var require_rollup = __commonJS({
81858
81904
  var METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
81859
81905
  new Method({
81860
81906
  callsArgs: null,
81907
+ mutatesArgs: false,
81861
81908
  mutatesSelfAsArray: "deopt-only",
81862
81909
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
81863
81910
  returnsPrimitive: null
@@ -81866,14 +81913,16 @@ var require_rollup = __commonJS({
81866
81913
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
81867
81914
  new Method({
81868
81915
  callsArgs: [0],
81916
+ mutatesArgs: false,
81869
81917
  mutatesSelfAsArray: "deopt-only",
81870
81918
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
81871
81919
  returnsPrimitive: null
81872
81920
  })
81873
81921
  ];
81874
- var METHOD_MUTATES_SELF_RETURNS_NUMBER = [
81922
+ var METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER = [
81875
81923
  new Method({
81876
81924
  callsArgs: null,
81925
+ mutatesArgs: true,
81877
81926
  mutatesSelfAsArray: true,
81878
81927
  returns: null,
81879
81928
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -81882,6 +81931,7 @@ var require_rollup = __commonJS({
81882
81931
  var METHOD_MUTATES_SELF_RETURNS_UNKNOWN = [
81883
81932
  new Method({
81884
81933
  callsArgs: null,
81934
+ mutatesArgs: false,
81885
81935
  mutatesSelfAsArray: true,
81886
81936
  returns: null,
81887
81937
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -81890,6 +81940,7 @@ var require_rollup = __commonJS({
81890
81940
  var METHOD_DEOPTS_SELF_RETURNS_UNKNOWN = [
81891
81941
  new Method({
81892
81942
  callsArgs: null,
81943
+ mutatesArgs: false,
81893
81944
  mutatesSelfAsArray: "deopt-only",
81894
81945
  returns: null,
81895
81946
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -81898,6 +81949,7 @@ var require_rollup = __commonJS({
81898
81949
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN = [
81899
81950
  new Method({
81900
81951
  callsArgs: [0],
81952
+ mutatesArgs: false,
81901
81953
  mutatesSelfAsArray: "deopt-only",
81902
81954
  returns: null,
81903
81955
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -81906,6 +81958,7 @@ var require_rollup = __commonJS({
81906
81958
  var METHOD_MUTATES_SELF_RETURNS_SELF = [
81907
81959
  new Method({
81908
81960
  callsArgs: null,
81961
+ mutatesArgs: false,
81909
81962
  mutatesSelfAsArray: true,
81910
81963
  returns: "self",
81911
81964
  returnsPrimitive: null
@@ -81914,6 +81967,7 @@ var require_rollup = __commonJS({
81914
81967
  var METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF = [
81915
81968
  new Method({
81916
81969
  callsArgs: [0],
81970
+ mutatesArgs: false,
81917
81971
  mutatesSelfAsArray: true,
81918
81972
  returns: "self",
81919
81973
  returnsPrimitive: null
@@ -81943,7 +81997,7 @@ var require_rollup = __commonJS({
81943
81997
  lastIndexOf: METHOD_RETURNS_NUMBER,
81944
81998
  map: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY,
81945
81999
  pop: METHOD_MUTATES_SELF_RETURNS_UNKNOWN,
81946
- push: METHOD_MUTATES_SELF_RETURNS_NUMBER,
82000
+ push: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
81947
82001
  reduce: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
81948
82002
  reduceRight: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
81949
82003
  reverse: METHOD_MUTATES_SELF_RETURNS_SELF,
@@ -81954,7 +82008,7 @@ var require_rollup = __commonJS({
81954
82008
  splice: METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY,
81955
82009
  toLocaleString: METHOD_RETURNS_STRING,
81956
82010
  toString: METHOD_RETURNS_STRING,
81957
- unshift: METHOD_MUTATES_SELF_RETURNS_NUMBER,
82011
+ unshift: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
81958
82012
  values: METHOD_DEOPTS_SELF_RETURNS_UNKNOWN
81959
82013
  }, OBJECT_PROTOTYPE, true);
81960
82014
  var ArrayExpression = class extends NodeBase {
@@ -82273,7 +82327,7 @@ var require_rollup = __commonJS({
82273
82327
  function getSafeName(baseName, usedNames, forbiddenNames) {
82274
82328
  let safeName = baseName;
82275
82329
  let count = 1;
82276
- while (usedNames.has(safeName) || RESERVED_NAMES$1.has(safeName) || forbiddenNames?.has(safeName)) {
82330
+ while (usedNames.has(safeName) || RESERVED_NAMES.has(safeName) || forbiddenNames?.has(safeName)) {
82277
82331
  safeName = `${baseName}$${toBase64(count++)}`;
82278
82332
  }
82279
82333
  usedNames.add(safeName);
@@ -83713,7 +83767,7 @@ var require_rollup = __commonJS({
83713
83767
  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)) {
83714
83768
  return this.isTDZAccess = true;
83715
83769
  }
83716
- if (!this.variable.initReached) {
83770
+ if (!this.variable.initReached && this.scope.context.module.isExecuted) {
83717
83771
  return this.isTDZAccess = true;
83718
83772
  }
83719
83773
  return this.isTDZAccess = false;
@@ -83895,7 +83949,7 @@ var require_rollup = __commonJS({
83895
83949
  const name = identifier.name;
83896
83950
  const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
83897
83951
  if (existingVariable) {
83898
- if (existingVariable.kind === "var") {
83952
+ if (existingVariable.kind === "var" || kind === "var" && existingVariable.kind === "parameter") {
83899
83953
  existingVariable.addDeclaration(identifier, init2);
83900
83954
  return existingVariable;
83901
83955
  }
@@ -84219,7 +84273,7 @@ var require_rollup = __commonJS({
84219
84273
  function getSystemExportStatement(exportedVariables, { exportNamesByVariable, snippets: { _, getObject, getPropertyAccess } }, modifier = "") {
84220
84274
  if (exportedVariables.length === 1 && exportNamesByVariable.get(exportedVariables[0]).length === 1) {
84221
84275
  const variable = exportedVariables[0];
84222
- return `exports('${exportNamesByVariable.get(variable)}',${_}${variable.getName(getPropertyAccess)}${modifier})`;
84276
+ return `exports(${JSON.stringify(exportNamesByVariable.get(variable)[0])},${_}${variable.getName(getPropertyAccess)}${modifier})`;
84223
84277
  } else {
84224
84278
  const fields = [];
84225
84279
  for (const variable of exportedVariables) {
@@ -84231,7 +84285,7 @@ var require_rollup = __commonJS({
84231
84285
  }
84232
84286
  }
84233
84287
  function renderSystemExportExpression(exportedVariable, expressionStart, expressionEnd, code, { exportNamesByVariable, snippets: { _ } }) {
84234
- code.prependRight(expressionStart, `exports('${exportNamesByVariable.get(exportedVariable)}',${_}`);
84288
+ code.prependRight(expressionStart, `exports(${JSON.stringify(exportNamesByVariable.get(exportedVariable)[0])},${_}`);
84235
84289
  code.appendLeft(expressionEnd, ")");
84236
84290
  }
84237
84291
  function renderSystemExportFunction(exportedVariables, expressionStart, expressionEnd, needsParens, code, options) {
@@ -85850,7 +85904,7 @@ var require_rollup = __commonJS({
85850
85904
  const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59;
85851
85905
  const systemExportNames = format2 === "system" && exportNamesByVariable.get(this.variable);
85852
85906
  if (systemExportNames) {
85853
- code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports('${systemExportNames[0]}', `);
85907
+ code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
85854
85908
  code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ")" + (hasTrailingSemicolon ? "" : ";"));
85855
85909
  } else {
85856
85910
  code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
@@ -86275,14 +86329,14 @@ var require_rollup = __commonJS({
86275
86329
  return `function ${INTEROP_NAMESPACE_COMPAT_VARIABLE}(e)${_}{${n2}${t}if${_}(${getIsCompatNamespace(snippets)})${_}return e;${n2}` + createNamespaceObject(t, t, snippets, liveBindings, freeze, symbols) + `}${n2}${n2}`;
86276
86330
  },
86277
86331
  [INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
86278
- const { getDirectReturnFunction, getObject, n: n2 } = snippets;
86332
+ const { getDirectReturnFunction, getObject, n: n2, _ } = snippets;
86279
86333
  const [left, right] = getDirectReturnFunction(["e"], {
86280
86334
  functionReturn: true,
86281
86335
  lineBreakIndent: null,
86282
86336
  name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
86283
86337
  });
86284
86338
  return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
86285
- ["__proto__", "null"],
86339
+ [null, `__proto__:${_}null`],
86286
86340
  ["default", "e"]
86287
86341
  ], { lineBreakIndent: null }), snippets))}${right}${n2}${n2}`;
86288
86342
  },
@@ -86695,26 +86749,33 @@ var require_rollup = __commonJS({
86695
86749
  };
86696
86750
  var LabeledStatement = class extends NodeBase {
86697
86751
  hasEffects(context) {
86698
- const brokenFlow = context.brokenFlow;
86752
+ const { brokenFlow, includedLabels } = context;
86699
86753
  context.ignore.labels.add(this.label.name);
86700
- if (this.body.hasEffects(context))
86701
- return true;
86702
- context.ignore.labels.delete(this.label.name);
86703
- if (context.includedLabels.has(this.label.name)) {
86704
- context.includedLabels.delete(this.label.name);
86705
- context.brokenFlow = brokenFlow;
86754
+ context.includedLabels = /* @__PURE__ */ new Set();
86755
+ let bodyHasEffects = false;
86756
+ if (this.body.hasEffects(context)) {
86757
+ bodyHasEffects = true;
86758
+ } else {
86759
+ context.ignore.labels.delete(this.label.name);
86760
+ if (context.includedLabels.has(this.label.name)) {
86761
+ context.includedLabels.delete(this.label.name);
86762
+ context.brokenFlow = brokenFlow;
86763
+ }
86706
86764
  }
86707
- return false;
86765
+ context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
86766
+ return bodyHasEffects;
86708
86767
  }
86709
86768
  include(context, includeChildrenRecursively) {
86710
86769
  this.included = true;
86711
- const brokenFlow = context.brokenFlow;
86770
+ const { brokenFlow, includedLabels } = context;
86771
+ context.includedLabels = /* @__PURE__ */ new Set();
86712
86772
  this.body.include(context, includeChildrenRecursively);
86713
86773
  if (includeChildrenRecursively || context.includedLabels.has(this.label.name)) {
86714
86774
  this.label.include();
86715
86775
  context.includedLabels.delete(this.label.name);
86716
86776
  context.brokenFlow = brokenFlow;
86717
86777
  }
86778
+ context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
86718
86779
  }
86719
86780
  render(code, options) {
86720
86781
  if (this.label.included) {
@@ -88251,7 +88312,7 @@ var require_rollup = __commonJS({
88251
88312
  if (this.referencedEarly || variable.isReassigned || variable === this) {
88252
88313
  return [
88253
88314
  null,
88254
- `get ${name2}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
88315
+ `get ${stringifyObjectKeyIfNeeded(name2)}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
88255
88316
  ];
88256
88317
  }
88257
88318
  return [name2, variable.getName(getPropertyAccess)];
@@ -88747,7 +88808,7 @@ var require_rollup = __commonJS({
88747
88808
  this.ast.bind();
88748
88809
  }
88749
88810
  error(properties, pos) {
88750
- this.addLocationToLogProps(properties, pos);
88811
+ pos !== void 0 && this.addLocationToLogProps(properties, pos);
88751
88812
  return parseAst_js.error(properties);
88752
88813
  }
88753
88814
  // sum up the length of all ast nodes that are included
@@ -89195,7 +89256,7 @@ var require_rollup = __commonJS({
89195
89256
  const source = node.source.value;
89196
89257
  this.addSource(source, node);
89197
89258
  if (node.exported) {
89198
- const name = node.exported.name;
89259
+ const name = node.exported instanceof Literal ? node.exported.value : node.exported.name;
89199
89260
  this.assertUniqueExportName(name, node.exported.start);
89200
89261
  this.reexportDescriptions.set(name, {
89201
89262
  localName: "*",
@@ -89496,7 +89557,9 @@ var require_rollup = __commonJS({
89496
89557
  lineBreakIndent: null,
89497
89558
  name: null
89498
89559
  });
89499
- exportBlock += `Object.defineProperty(exports,${_}'${specifier.reexported}',${_}{${n2}${t}enumerable:${_}true,${n2}${t}get:${_}${left}${importName}${right}${n2}});`;
89560
+ exportBlock += `Object.defineProperty(exports,${_}${JSON.stringify(specifier.reexported)},${_}{${n2}${t}enumerable:${_}true,${n2}${t}get:${_}${left}${importName}${right}${n2}});`;
89561
+ } else if (specifier.reexported === "__proto__") {
89562
+ exportBlock += `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${importName}${n2}});`;
89500
89563
  } else {
89501
89564
  exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
89502
89565
  }
@@ -89510,7 +89573,7 @@ var require_rollup = __commonJS({
89510
89573
  if (lhs !== rhs) {
89511
89574
  if (exportBlock)
89512
89575
  exportBlock += n2;
89513
- exportBlock += `${lhs}${_}=${_}${rhs};`;
89576
+ exportBlock += exported === "__proto__" ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${rhs}${n2}});` : `${lhs}${_}=${_}${rhs};`;
89514
89577
  }
89515
89578
  }
89516
89579
  for (const { name, reexports } of dependencies) {
@@ -89591,7 +89654,7 @@ var require_rollup = __commonJS({
89591
89654
  });
89592
89655
  return `Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}get:${_}${left}${name}[k]${right}${n2}${t}})`;
89593
89656
  }
89594
- return `exports[k]${_}=${_}${name}[k]`;
89657
+ return `k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}value:${_}${name}[k]${n2}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`;
89595
89658
  };
89596
89659
  function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
89597
89660
  const { _, cnst, n: n2 } = snippets;
@@ -89829,7 +89892,7 @@ var require_rollup = __commonJS({
89829
89892
  if (defaultImport && importedNames.length === 0) {
89830
89893
  importBlock.push(`import ${defaultImport.local} from${_}${pathWithAssertion}`);
89831
89894
  } else if (importedNames.length > 0) {
89832
- importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${specifier.imported} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
89895
+ importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
89833
89896
  }
89834
89897
  }
89835
89898
  if (reexports) {
@@ -89853,11 +89916,11 @@ var require_rollup = __commonJS({
89853
89916
  importBlock.push(`import${_}*${_}as ${name} from${_}${pathWithAssertion}`);
89854
89917
  }
89855
89918
  for (const specifier of namespaceReexports) {
89856
- importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${specifier.reexported}`} };`);
89919
+ importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`} };`);
89857
89920
  }
89858
89921
  }
89859
89922
  if (namedReexports.length > 0) {
89860
- importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? specifier.imported : `${specifier.imported} as ${specifier.reexported}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
89923
+ importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? stringifyIdentifierIfNeeded(specifier.imported) : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
89861
89924
  }
89862
89925
  }
89863
89926
  }
@@ -89870,7 +89933,7 @@ var require_rollup = __commonJS({
89870
89933
  if (specifier.expression) {
89871
89934
  exportBlock.push(`${cnst} ${specifier.local}${_}=${_}${specifier.expression};`);
89872
89935
  }
89873
- exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${specifier.exported}`);
89936
+ exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${stringifyIdentifierIfNeeded(specifier.exported)}`);
89874
89937
  }
89875
89938
  if (exportDeclaration.length > 0) {
89876
89939
  exportBlock.push(`export${_}{${_}${exportDeclaration.join(`,${_}`)}${_}};`);
@@ -90013,18 +90076,20 @@ var require_rollup = __commonJS({
90013
90076
  }
90014
90077
  }
90015
90078
  if (reexportedNames.length > 1 || hasStarReexport) {
90016
- const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
90017
90079
  if (hasStarReexport) {
90018
90080
  if (!starExcludes) {
90019
90081
  starExcludes = getStarExcludes({ dependencies, exports: exports3 });
90020
90082
  }
90083
+ reexportedNames.unshift([null, `__proto__:${_}null`]);
90084
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
90021
90085
  setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, "}", "exports(setter);");
90022
90086
  } else {
90087
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
90023
90088
  setter.push(`exports(${exportMapping});`);
90024
90089
  }
90025
90090
  } else {
90026
90091
  const [key, value] = reexportedNames[0];
90027
- setter.push(`exports('${key}',${_}${value});`);
90092
+ setter.push(`exports(${JSON.stringify(key)},${_}${value});`);
90028
90093
  }
90029
90094
  }
90030
90095
  setters.push(setter.join(`${n2}${t}${t}${t}`));
@@ -90044,7 +90109,19 @@ var require_rollup = __commonJS({
90044
90109
  }
90045
90110
  return starExcludes;
90046
90111
  };
90047
- var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) => starExcludes ? `${n2}${t}${cnst} _starExcludes${_}=${_}${getObject([...starExcludes].map((property) => [property, "1"]), { lineBreakIndent: { base: t, t } })};` : "";
90112
+ var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) => {
90113
+ if (starExcludes) {
90114
+ const fields = [...starExcludes].map((property) => [
90115
+ property,
90116
+ "1"
90117
+ ]);
90118
+ fields.unshift([null, `__proto__:${_}null`]);
90119
+ return `${n2}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
90120
+ lineBreakIndent: { base: t, t }
90121
+ })};`;
90122
+ }
90123
+ return "";
90124
+ };
90048
90125
  var getImportBindingsBlock = (importBindings, t, { _, n: n2 }) => importBindings.length > 0 ? `${n2}${t}var ${importBindings.join(`,${_}`)};` : "";
90049
90126
  var getHoistedExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.hoisted).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
90050
90127
  function getExportsBlock(exports3, t, { _, n: n2 }) {
@@ -90052,9 +90129,9 @@ var require_rollup = __commonJS({
90052
90129
  return "";
90053
90130
  }
90054
90131
  if (exports3.length === 1) {
90055
- return `exports('${exports3[0].name}',${_}${exports3[0].value});${n2}${n2}`;
90132
+ return `exports(${JSON.stringify(exports3[0].name)},${_}${exports3[0].value});${n2}${n2}`;
90056
90133
  }
90057
- return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${name}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
90134
+ return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${stringifyObjectKeyIfNeeded(name)}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
90058
90135
  }
90059
90136
  var getSyntheticExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.expression).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
90060
90137
  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);
@@ -90195,7 +90272,7 @@ ${outro}`;
90195
90272
  } else if (module3 instanceof ExternalModule && name === "default") {
90196
90273
  variable.setRenderNames(null, getSafeName([...module3.exportedVariables].some(([exportedVariable, exportedName]) => exportedName === "*" && exportedVariable.included) ? module3.suggestedVariableName + "__default" : module3.suggestedVariableName, usedNames, variable.forbiddenNames));
90197
90274
  } else {
90198
- variable.setRenderNames(null, getSafeName(name, usedNames, variable.forbiddenNames));
90275
+ variable.setRenderNames(null, getSafeName(makeLegal(name), usedNames, variable.forbiddenNames));
90199
90276
  }
90200
90277
  }
90201
90278
  for (const variable of syntheticExports) {
@@ -90267,7 +90344,7 @@ ${outro}`;
90267
90344
  nameIndex += 9 * 64 ** (exportName.length - 1);
90268
90345
  exportName = toBase64(nameIndex);
90269
90346
  }
90270
- } while (RESERVED_NAMES$1.has(exportName) || exportsByName.has(exportName));
90347
+ } while (RESERVED_NAMES.has(exportName) || exportsByName.has(exportName));
90271
90348
  }
90272
90349
  exportsByName.set(exportName, variable);
90273
90350
  exportNamesByVariable.set(variable, [exportName]);
@@ -90626,7 +90703,7 @@ ${outro}`;
90626
90703
  const [pattern, patternName] = preserveModules || this.facadeModule?.isUserDefinedEntryPoint ? [entryFileNames, "output.entryFileNames"] : [chunkFileNames, "output.chunkFileNames"];
90627
90704
  fileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
90628
90705
  format: () => format2,
90629
- hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
90706
+ hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
90630
90707
  name: () => this.getChunkName()
90631
90708
  });
90632
90709
  if (!hashPlaceholder) {
@@ -90652,7 +90729,7 @@ ${outro}`;
90652
90729
  sourcemapFileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
90653
90730
  chunkhash: () => this.getPreliminaryFileName().hashPlaceholder || "",
90654
90731
  format: () => format2,
90655
- hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
90732
+ hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
90656
90733
  name: () => this.getChunkName()
90657
90734
  });
90658
90735
  if (!hashPlaceholder) {
@@ -91368,9 +91445,12 @@ ${outro}`;
91368
91445
  function getChunkAssignments(entries, manualChunkAliasByEntry, minChunkSize, log) {
91369
91446
  const { chunkDefinitions, modulesInManualChunks } = getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry);
91370
91447
  const { allEntries, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry } = analyzeModuleGraph(entries);
91371
- const initialChunks = getChunksFromDependentEntries(getModulesWithDependentEntries(dependentEntriesByModule, modulesInManualChunks));
91372
- removeUnnecessaryDependentEntries(initialChunks, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries);
91373
- chunkDefinitions.push(...getOptimizedChunks(getChunksFromDependentEntries(initialChunks), allEntries.length, minChunkSize, log).map(({ modules }) => ({
91448
+ const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntries(dependentEntriesByModule, modulesInManualChunks));
91449
+ const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(allEntries, chunkAtoms);
91450
+ const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries);
91451
+ removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry);
91452
+ const { chunks, sideEffectAtoms, sizeByAtom } = getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize);
91453
+ chunkDefinitions.push(...getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log).map(({ modules }) => ({
91374
91454
  alias: null,
91375
91455
  modules
91376
91456
  })));
@@ -91477,7 +91557,7 @@ ${outro}`;
91477
91557
  }
91478
91558
  return dynamicallyDependentEntriesByDynamicEntry;
91479
91559
  }
91480
- function getChunksFromDependentEntries(modulesWithDependentEntries) {
91560
+ function getChunksWithSameDependentEntries(modulesWithDependentEntries) {
91481
91561
  const chunkModules = /* @__PURE__ */ Object.create(null);
91482
91562
  for (const { dependentEntries, modules } of modulesWithDependentEntries) {
91483
91563
  let chunkSignature = 0n;
@@ -91498,107 +91578,162 @@ ${outro}`;
91498
91578
  }
91499
91579
  }
91500
91580
  }
91501
- function removeUnnecessaryDependentEntries(chunks, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries) {
91502
- const staticDependenciesPerEntry = allEntries.map(() => 0n);
91503
- const alreadyLoadedChunksPerEntry = allEntries.map((_entry, entryIndex) => dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n);
91504
- let chunkMask = 1n;
91505
- for (const { dependentEntries } of chunks) {
91581
+ function getStaticDependencyAtomsByEntry(allEntries, chunkAtoms) {
91582
+ const staticDependencyAtomsByEntry = allEntries.map(() => 0n);
91583
+ let atomMask = 1n;
91584
+ for (const { dependentEntries } of chunkAtoms) {
91506
91585
  for (const entryIndex of dependentEntries) {
91507
- staticDependenciesPerEntry[entryIndex] |= chunkMask;
91586
+ staticDependencyAtomsByEntry[entryIndex] |= atomMask;
91508
91587
  }
91509
- chunkMask <<= 1n;
91588
+ atomMask <<= 1n;
91510
91589
  }
91511
- const updatedDynamicallyDependentEntriesByDynamicEntry = dynamicallyDependentEntriesByDynamicEntry;
91512
- for (const [dynamicEntryIndex, updatedDynamicallyDependentEntries] of updatedDynamicallyDependentEntriesByDynamicEntry) {
91513
- updatedDynamicallyDependentEntriesByDynamicEntry.delete(dynamicEntryIndex);
91514
- const previousLoadedModules = alreadyLoadedChunksPerEntry[dynamicEntryIndex];
91515
- let newLoadedModules = previousLoadedModules;
91516
- for (const entryIndex of updatedDynamicallyDependentEntries) {
91517
- newLoadedModules &= staticDependenciesPerEntry[entryIndex] | alreadyLoadedChunksPerEntry[entryIndex];
91590
+ return staticDependencyAtomsByEntry;
91591
+ }
91592
+ function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries) {
91593
+ const alreadyLoadedAtomsByEntry = allEntries.map((_entry, entryIndex) => dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n);
91594
+ for (const [dynamicEntryIndex, dynamicallyDependentEntries] of dynamicallyDependentEntriesByDynamicEntry) {
91595
+ dynamicallyDependentEntriesByDynamicEntry.delete(dynamicEntryIndex);
91596
+ const knownLoadedAtoms = alreadyLoadedAtomsByEntry[dynamicEntryIndex];
91597
+ let updatedLoadedAtoms = knownLoadedAtoms;
91598
+ for (const entryIndex of dynamicallyDependentEntries) {
91599
+ updatedLoadedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
91518
91600
  }
91519
- if (newLoadedModules !== previousLoadedModules) {
91520
- alreadyLoadedChunksPerEntry[dynamicEntryIndex] = newLoadedModules;
91601
+ if (updatedLoadedAtoms !== knownLoadedAtoms) {
91602
+ alreadyLoadedAtomsByEntry[dynamicEntryIndex] = updatedLoadedAtoms;
91521
91603
  for (const dynamicImport of dynamicImportsByEntry[dynamicEntryIndex]) {
91522
- getOrCreate(updatedDynamicallyDependentEntriesByDynamicEntry, dynamicImport, getNewSet).add(dynamicEntryIndex);
91604
+ getOrCreate(dynamicallyDependentEntriesByDynamicEntry, dynamicImport, getNewSet).add(dynamicEntryIndex);
91523
91605
  }
91524
91606
  }
91525
91607
  }
91526
- chunkMask = 1n;
91527
- for (const { dependentEntries } of chunks) {
91608
+ return alreadyLoadedAtomsByEntry;
91609
+ }
91610
+ function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry) {
91611
+ let chunkMask = 1n;
91612
+ for (const { dependentEntries } of chunkAtoms) {
91528
91613
  for (const entryIndex of dependentEntries) {
91529
- if ((alreadyLoadedChunksPerEntry[entryIndex] & chunkMask) === chunkMask) {
91614
+ if ((alreadyLoadedAtomsByEntry[entryIndex] & chunkMask) === chunkMask) {
91530
91615
  dependentEntries.delete(entryIndex);
91531
91616
  }
91532
91617
  }
91533
91618
  chunkMask <<= 1n;
91534
91619
  }
91535
91620
  }
91536
- function getOptimizedChunks(initialChunks, numberOfEntries, minChunkSize, log) {
91537
- timeStart("optimize chunks", 3);
91538
- const chunkPartition = getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize);
91539
- if (!chunkPartition) {
91540
- timeEnd("optimize chunks", 3);
91541
- return initialChunks;
91542
- }
91543
- minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(initialChunks.length, chunkPartition.small.size, "Initially"));
91544
- mergeChunks(chunkPartition, minChunkSize);
91545
- minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
91546
- timeEnd("optimize chunks", 3);
91547
- return [...chunkPartition.small, ...chunkPartition.big];
91548
- }
91549
- function getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize) {
91550
- const smallChunks = [];
91551
- const bigChunks = [];
91621
+ function getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize) {
91622
+ const chunksBySignature = /* @__PURE__ */ Object.create(null);
91552
91623
  const chunkByModule = /* @__PURE__ */ new Map();
91553
91624
  const sizeByAtom = [];
91554
91625
  let sideEffectAtoms = 0n;
91555
- let containedAtoms = 1n;
91556
- for (const { dependentEntries, modules } of initialChunks) {
91557
- const chunkDescription = {
91558
- containedAtoms,
91559
- correlatedAtoms: 0n,
91626
+ let atomMask = 1n;
91627
+ for (const { dependentEntries, modules } of chunkAtoms) {
91628
+ let chunkSignature = 0n;
91629
+ let correlatedAtoms = -1n;
91630
+ for (const entryIndex of dependentEntries) {
91631
+ chunkSignature |= 1n << BigInt(entryIndex);
91632
+ correlatedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
91633
+ }
91634
+ const chunk = chunksBySignature[String(chunkSignature)] ||= {
91635
+ containedAtoms: 0n,
91636
+ correlatedAtoms,
91560
91637
  dependencies: /* @__PURE__ */ new Set(),
91561
91638
  dependentChunks: /* @__PURE__ */ new Set(),
91562
- dependentEntries,
91563
- modules,
91639
+ dependentEntries: new Set(dependentEntries),
91640
+ modules: [],
91564
91641
  pure: true,
91565
91642
  size: 0
91566
91643
  };
91567
- let size = 0;
91644
+ let atomSize = 0;
91568
91645
  let pure = true;
91569
91646
  for (const module3 of modules) {
91570
- chunkByModule.set(module3, chunkDescription);
91647
+ chunkByModule.set(module3, chunk);
91571
91648
  if (module3.isIncluded()) {
91572
91649
  pure &&= !module3.hasEffects();
91573
- size += minChunkSize > 1 ? module3.estimateSize() : 1;
91650
+ atomSize += minChunkSize > 1 ? module3.estimateSize() : 1;
91574
91651
  }
91575
91652
  }
91576
- chunkDescription.pure = pure;
91577
- chunkDescription.size = size;
91578
- sizeByAtom.push(size);
91579
91653
  if (!pure) {
91580
- sideEffectAtoms |= containedAtoms;
91654
+ sideEffectAtoms |= atomMask;
91655
+ }
91656
+ sizeByAtom.push(atomSize);
91657
+ chunk.containedAtoms |= atomMask;
91658
+ chunk.modules.push(...modules);
91659
+ chunk.pure &&= pure;
91660
+ chunk.size += atomSize;
91661
+ atomMask <<= 1n;
91662
+ }
91663
+ const chunks = Object.values(chunksBySignature);
91664
+ sideEffectAtoms |= addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, atomMask);
91665
+ return { chunks, sideEffectAtoms, sizeByAtom };
91666
+ }
91667
+ function addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, nextAvailableAtomMask) {
91668
+ const signatureByExternalModule = /* @__PURE__ */ new Map();
91669
+ let externalSideEffectAtoms = 0n;
91670
+ for (const chunk of chunks) {
91671
+ const { dependencies, modules } = chunk;
91672
+ for (const module3 of modules) {
91673
+ for (const dependency of module3.getDependenciesToBeIncluded()) {
91674
+ if (dependency instanceof ExternalModule) {
91675
+ if (dependency.info.moduleSideEffects) {
91676
+ const signature = getOrCreate(signatureByExternalModule, dependency, () => {
91677
+ const signature2 = nextAvailableAtomMask;
91678
+ nextAvailableAtomMask <<= 1n;
91679
+ externalSideEffectAtoms |= signature2;
91680
+ return signature2;
91681
+ });
91682
+ chunk.containedAtoms |= signature;
91683
+ chunk.correlatedAtoms |= signature;
91684
+ }
91685
+ } else {
91686
+ const dependencyChunk = chunkByModule.get(dependency);
91687
+ if (dependencyChunk && dependencyChunk !== chunk) {
91688
+ dependencies.add(dependencyChunk);
91689
+ dependencyChunk.dependentChunks.add(chunk);
91690
+ }
91691
+ }
91692
+ }
91581
91693
  }
91582
- (size < minChunkSize ? smallChunks : bigChunks).push(chunkDescription);
91583
- containedAtoms <<= 1n;
91694
+ }
91695
+ return externalSideEffectAtoms;
91696
+ }
91697
+ function getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log) {
91698
+ timeStart("optimize chunks", 3);
91699
+ const chunkPartition = getPartitionedChunks(chunks, minChunkSize);
91700
+ if (!chunkPartition) {
91701
+ timeEnd("optimize chunks", 3);
91702
+ return chunks;
91703
+ }
91704
+ minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunks.length, chunkPartition.small.size, "Initially"));
91705
+ mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom);
91706
+ minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
91707
+ timeEnd("optimize chunks", 3);
91708
+ return [...chunkPartition.small, ...chunkPartition.big];
91709
+ }
91710
+ function getPartitionedChunks(chunks, minChunkSize) {
91711
+ const smallChunks = [];
91712
+ const bigChunks = [];
91713
+ for (const chunk of chunks) {
91714
+ (chunk.size < minChunkSize ? smallChunks : bigChunks).push(chunk);
91584
91715
  }
91585
91716
  if (smallChunks.length === 0) {
91586
91717
  return null;
91587
91718
  }
91588
- sideEffectAtoms |= addChunkDependenciesAndAtomsAndGetSideEffectAtoms([bigChunks, smallChunks], chunkByModule, numberOfEntries, containedAtoms);
91719
+ smallChunks.sort(compareChunkSize);
91720
+ bigChunks.sort(compareChunkSize);
91589
91721
  return {
91590
91722
  big: new Set(bigChunks),
91591
- sideEffectAtoms,
91592
- sizeByAtom,
91593
91723
  small: new Set(smallChunks)
91594
91724
  };
91595
91725
  }
91596
- function mergeChunks(chunkPartition, minChunkSize) {
91726
+ function compareChunkSize({ size: sizeA }, { size: sizeB }) {
91727
+ return sizeA - sizeB;
91728
+ }
91729
+ function mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom) {
91597
91730
  const { small } = chunkPartition;
91598
91731
  for (const mergedChunk of small) {
91599
91732
  const bestTargetChunk = findBestMergeTarget(
91600
91733
  mergedChunk,
91601
91734
  chunkPartition,
91735
+ sideEffectAtoms,
91736
+ sizeByAtom,
91602
91737
  // In the default case, we do not accept size increases
91603
91738
  minChunkSize <= 1 ? 1 : Infinity
91604
91739
  );
@@ -91631,55 +91766,7 @@ ${outro}`;
91631
91766
  }
91632
91767
  }
91633
91768
  }
91634
- function addChunkDependenciesAndAtomsAndGetSideEffectAtoms(chunkLists, chunkByModule, numberOfEntries, nextAtomSignature) {
91635
- const signatureByExternalModule = /* @__PURE__ */ new Map();
91636
- let sideEffectAtoms = 0n;
91637
- const atomsByEntry = [];
91638
- for (let index = 0; index < numberOfEntries; index++) {
91639
- atomsByEntry.push(0n);
91640
- }
91641
- for (const chunks of chunkLists) {
91642
- chunks.sort(compareChunkSize);
91643
- for (const chunk of chunks) {
91644
- const { dependencies, dependentEntries, modules } = chunk;
91645
- for (const module3 of modules) {
91646
- for (const dependency of module3.getDependenciesToBeIncluded()) {
91647
- if (dependency instanceof ExternalModule) {
91648
- if (dependency.info.moduleSideEffects) {
91649
- chunk.containedAtoms |= getOrCreate(signatureByExternalModule, dependency, () => {
91650
- const signature = nextAtomSignature;
91651
- nextAtomSignature <<= 1n;
91652
- sideEffectAtoms |= signature;
91653
- return signature;
91654
- });
91655
- }
91656
- } else {
91657
- const dependencyChunk = chunkByModule.get(dependency);
91658
- if (dependencyChunk && dependencyChunk !== chunk) {
91659
- dependencies.add(dependencyChunk);
91660
- dependencyChunk.dependentChunks.add(chunk);
91661
- }
91662
- }
91663
- }
91664
- }
91665
- const { containedAtoms } = chunk;
91666
- for (const entryIndex of dependentEntries) {
91667
- atomsByEntry[entryIndex] |= containedAtoms;
91668
- }
91669
- }
91670
- }
91671
- for (const chunks of chunkLists) {
91672
- for (const chunk of chunks) {
91673
- const { dependentEntries } = chunk;
91674
- chunk.correlatedAtoms = -1n;
91675
- for (const entryIndex of dependentEntries) {
91676
- chunk.correlatedAtoms &= atomsByEntry[entryIndex];
91677
- }
91678
- }
91679
- }
91680
- return sideEffectAtoms;
91681
- }
91682
- function findBestMergeTarget(mergedChunk, { big, sideEffectAtoms, sizeByAtom, small }, smallestAdditionalSize) {
91769
+ function findBestMergeTarget(mergedChunk, { big, small }, sideEffectAtoms, sizeByAtom, smallestAdditionalSize) {
91683
91770
  let bestTargetChunk = null;
91684
91771
  for (const targetChunk of concatLazy([small, big])) {
91685
91772
  if (mergedChunk === targetChunk)
@@ -91694,12 +91781,6 @@ ${outro}`;
91694
91781
  }
91695
91782
  return bestTargetChunk;
91696
91783
  }
91697
- function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
91698
- return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
91699
- }
91700
- function compareChunkSize({ size: sizeA }, { size: sizeB }) {
91701
- return sizeA - sizeB;
91702
- }
91703
91784
  function getAdditionalSizeAfterMerge(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom) {
91704
91785
  const firstSize = getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom);
91705
91786
  return firstSize < currentAdditionalSize ? firstSize + getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(targetChunk, mergedChunk, currentAdditionalSize - firstSize, sideEffectAtoms, sizeByAtom) : Infinity;
@@ -91743,15 +91824,18 @@ ${outro}`;
91743
91824
  }
91744
91825
  return size;
91745
91826
  }
91827
+ function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
91828
+ return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
91829
+ }
91746
91830
  function commondir(files) {
91747
91831
  if (files.length === 0)
91748
91832
  return "/";
91749
91833
  if (files.length === 1)
91750
91834
  return node_path.dirname(files[0]);
91751
91835
  const commonSegments = files.slice(1).reduce((commonSegments2, file) => {
91752
- const pathSegements = file.split(/\/+|\\+/);
91836
+ const pathSegments = file.split(/\/+|\\+/);
91753
91837
  let index;
91754
- for (index = 0; commonSegments2[index] === pathSegements[index] && index < Math.min(commonSegments2.length, pathSegements.length); index++)
91838
+ for (index = 0; commonSegments2[index] === pathSegments[index] && index < Math.min(commonSegments2.length, pathSegments.length); index++)
91755
91839
  ;
91756
91840
  return commonSegments2.slice(0, index);
91757
91841
  }, files[0].split(/\/+|\\+/));
@@ -91837,7 +91921,7 @@ ${outro}`;
91837
91921
  })}${arrowFunctions ? lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : "" : `{${lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : _}${functionReturn ? "return " : ""}`}`,
91838
91922
  arrowFunctions ? `${name ? ";" : ""}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : ""}` : `${s}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`
91839
91923
  ];
91840
- const isValidPropertyName = reservedNamesAsProps ? (name) => validPropertyName.test(name) : (name) => !RESERVED_NAMES$1.has(name) && validPropertyName.test(name);
91924
+ const isValidPropertyName = reservedNamesAsProps ? (name) => VALID_IDENTIFIER_REGEXP.test(name) : (name) => !RESERVED_NAMES.has(name) && VALID_IDENTIFIER_REGEXP.test(name);
91841
91925
  return {
91842
91926
  _,
91843
91927
  cnst,
@@ -91857,8 +91941,8 @@ ${outro}`;
91857
91941
  return `{${fields.map(([key, value]) => {
91858
91942
  if (key === null)
91859
91943
  return `${prefix}${value}`;
91860
- const needsQuotes = !isValidPropertyName(key);
91861
- return key === value && objectShorthand && !needsQuotes ? prefix + key : `${prefix}${needsQuotes ? `'${key}'` : key}:${_}${value}`;
91944
+ const keyInObject = stringifyObjectKeyIfNeeded(key);
91945
+ return key === value && objectShorthand && key === keyInObject ? prefix + key : `${prefix}${keyInObject}:${_}${value}`;
91862
91946
  }).join(`,`)}${fields.length === 0 ? "" : lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`;
91863
91947
  },
91864
91948
  getPropertyAccess: (name) => isValidPropertyName(name) ? `.${name}` : `[${JSON.stringify(name)}]`,
@@ -91867,7 +91951,6 @@ ${outro}`;
91867
91951
  };
91868
91952
  }
91869
91953
  var wrapIfNeeded = (code, needsParens) => needsParens ? `(${code})` : code;
91870
- var validPropertyName = /^(?!\d)[\w$]+$/;
91871
91954
  var Source = class {
91872
91955
  constructor(filename, content) {
91873
91956
  this.isOriginal = true;
@@ -92015,9 +92098,10 @@ ${outro}`;
92015
92098
  const renderedChunks = await Promise.all(chunks.map((chunk) => chunk.render()));
92016
92099
  timeEnd("render chunks", 2);
92017
92100
  timeStart("transform chunks", 2);
92101
+ const getHash = hasherByType[outputOptions.hashCharacters];
92018
92102
  const chunkGraph = getChunkGraph(chunks);
92019
- const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
92020
- const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle);
92103
+ const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log);
92104
+ const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash);
92021
92105
  addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
92022
92106
  timeEnd("transform chunks", 2);
92023
92107
  }
@@ -92095,7 +92179,7 @@ ${outro}`;
92095
92179
  map
92096
92180
  };
92097
92181
  }
92098
- async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log) {
92182
+ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log) {
92099
92183
  const nonHashedChunksWithPlaceholders = [];
92100
92184
  const renderedChunksByPlaceholder = /* @__PURE__ */ new Map();
92101
92185
  const hashDependenciesByPlaceholder = /* @__PURE__ */ new Map();
@@ -92128,14 +92212,14 @@ ${outro}`;
92128
92212
  renderedChunksByPlaceholder.set(hashPlaceholder, transformedChunk);
92129
92213
  hashDependenciesByPlaceholder.set(hashPlaceholder, {
92130
92214
  containedPlaceholders,
92131
- contentHash: getXxhash(contentToHash)
92215
+ contentHash: getHash(contentToHash)
92132
92216
  });
92133
92217
  } else {
92134
92218
  nonHashedChunksWithPlaceholders.push(transformedChunk);
92135
92219
  }
92136
92220
  const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
92137
92221
  if (map && sourcemapHashPlaceholder) {
92138
- initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getXxhash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
92222
+ initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getHash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
92139
92223
  }
92140
92224
  }));
92141
92225
  return {
@@ -92145,7 +92229,7 @@ ${outro}`;
92145
92229
  renderedChunksByPlaceholder
92146
92230
  };
92147
92231
  }
92148
- function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle) {
92232
+ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash) {
92149
92233
  const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
92150
92234
  for (const [placeholder, { fileName }] of renderedChunksByPlaceholder) {
92151
92235
  let contentToHash = "";
@@ -92163,7 +92247,7 @@ ${outro}`;
92163
92247
  if (finalHash) {
92164
92248
  contentToHash = finalHash;
92165
92249
  }
92166
- finalHash = getXxhash(contentToHash).slice(0, placeholder.length);
92250
+ finalHash = getHash(contentToHash).slice(0, placeholder.length);
92167
92251
  finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
92168
92252
  } while (bundle[lowercaseBundleKeys].has(finalFileName.toLowerCase()));
92169
92253
  bundle[finalFileName] = FILE_PLACEHOLDER;
@@ -93387,6 +93471,7 @@ ${outro}`;
93387
93471
  freeze: config.freeze ?? true,
93388
93472
  generatedCode,
93389
93473
  globals: config.globals || {},
93474
+ hashCharacters: config.hashCharacters ?? "base64",
93390
93475
  hoistTransitiveImports: config.hoistTransitiveImports ?? true,
93391
93476
  indent: getIndent(config, compact),
93392
93477
  inlineDynamicImports,
@@ -93663,7 +93748,9 @@ ${outro}`;
93663
93748
  return parseAst_js.error(parseAst_js.logAlreadyClosed());
93664
93749
  return handleGenerateWrite(false, inputOptions, unsetInputOptions, rawOutputOptions, graph);
93665
93750
  },
93666
- watchFiles: Object.keys(graph.watchFiles),
93751
+ get watchFiles() {
93752
+ return Object.keys(graph.watchFiles);
93753
+ },
93667
93754
  async write(rawOutputOptions) {
93668
93755
  if (result.closed)
93669
93756
  return parseAst_js.error(parseAst_js.logAlreadyClosed());
@@ -93804,9 +93891,9 @@ ${outro}`;
93804
93891
  }
93805
93892
  });
93806
93893
 
93807
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/fsevents-importer.js
93894
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js
93808
93895
  var require_fsevents_importer = __commonJS({
93809
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/fsevents-importer.js"(exports2) {
93896
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js"(exports2) {
93810
93897
  "use strict";
93811
93898
  var fsEvents;
93812
93899
  var fsEventsImportError;
@@ -93832,9 +93919,9 @@ var require_fsevents_importer = __commonJS({
93832
93919
  }
93833
93920
  });
93834
93921
 
93835
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/index.js
93922
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js
93836
93923
  var require_shared = __commonJS({
93837
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/index.js"(exports2) {
93924
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js"(exports2) {
93838
93925
  "use strict";
93839
93926
  var rollup = require_rollup();
93840
93927
  var require$$0$1 = require("fs");
@@ -95644,6 +95731,7 @@ var require_shared = __commonJS({
95644
95731
  exports3.FSEVENT_MOVED = "moved";
95645
95732
  exports3.FSEVENT_CLONED = "cloned";
95646
95733
  exports3.FSEVENT_UNKNOWN = "unknown";
95734
+ exports3.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
95647
95735
  exports3.FSEVENT_TYPE_FILE = "file";
95648
95736
  exports3.FSEVENT_TYPE_DIRECTORY = "directory";
95649
95737
  exports3.FSEVENT_TYPE_SYMLINK = "symlink";
@@ -96214,6 +96302,7 @@ var require_shared = __commonJS({
96214
96302
  FSEVENT_MOVED,
96215
96303
  // FSEVENT_CLONED,
96216
96304
  FSEVENT_UNKNOWN,
96305
+ FSEVENT_FLAG_MUST_SCAN_SUBDIRS,
96217
96306
  FSEVENT_TYPE_FILE,
96218
96307
  FSEVENT_TYPE_DIRECTORY,
96219
96308
  FSEVENT_TYPE_SYMLINK,
@@ -96278,6 +96367,8 @@ var require_shared = __commonJS({
96278
96367
  watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
96279
96368
  if (!cont.listeners.size)
96280
96369
  return;
96370
+ if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS)
96371
+ return;
96281
96372
  const info = fsevents.getInfo(fullPath, flags);
96282
96373
  cont.listeners.forEach((list) => {
96283
96374
  list(fullPath, flags, info);
@@ -96941,7 +97032,7 @@ var require_shared = __commonJS({
96941
97032
  if (!this._readyCount)
96942
97033
  this._readyCount = paths.length;
96943
97034
  if (this.options.persistent)
96944
- this._readyCount *= 2;
97035
+ this._readyCount += paths.length;
96945
97036
  paths.forEach((path3) => this._fsEventsHandler._addToFsEvents(path3));
96946
97037
  } else {
96947
97038
  if (!this._readyCount)
@@ -97395,9 +97486,9 @@ var require_shared = __commonJS({
97395
97486
  }
97396
97487
  });
97397
97488
 
97398
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch.js
97489
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js
97399
97490
  var require_watch = __commonJS({
97400
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch.js"(exports2) {
97491
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js"(exports2) {
97401
97492
  "use strict";
97402
97493
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
97403
97494
  var node_path = require("node:path");
@@ -97628,7 +97719,13 @@ var require_watch = __commonJS({
97628
97719
  return;
97629
97720
  }
97630
97721
  this.updateWatchedFiles(result);
97631
- this.skipWrite || await Promise.all(this.outputs.map((output) => result.write(output)));
97722
+ if (!this.skipWrite) {
97723
+ await Promise.all(this.outputs.map((output) => result.write(output)));
97724
+ if (this.closed) {
97725
+ return;
97726
+ }
97727
+ this.updateWatchedFiles(result);
97728
+ }
97632
97729
  await this.watcher.emitter.emit("event", {
97633
97730
  code: "BUNDLE_END",
97634
97731
  duration: Date.now() - start,
@@ -97688,13 +97785,21 @@ var require_watch = __commonJS({
97688
97785
  }
97689
97786
  });
97690
97787
 
97691
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch-proxy.js
97692
- var require_watch_proxy = __commonJS({
97693
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch-proxy.js"(exports2) {
97788
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js
97789
+ var require_rollup2 = __commonJS({
97790
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js"(exports2) {
97694
97791
  "use strict";
97792
+ Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
97695
97793
  var rollup = require_rollup();
97696
97794
  var parseAst_js = require_parseAst();
97697
97795
  var fseventsImporter = require_fsevents_importer();
97796
+ require("node:process");
97797
+ require("tty");
97798
+ require("node:path");
97799
+ require("path");
97800
+ require("node:perf_hooks");
97801
+ require_native();
97802
+ require("node:fs/promises");
97698
97803
  var WatchEmitter = class {
97699
97804
  constructor() {
97700
97805
  this.currentHandlers = /* @__PURE__ */ Object.create(null);
@@ -97762,30 +97867,10 @@ var require_watch_proxy = __commonJS({
97762
97867
  const { Watcher } = await Promise.resolve().then(() => require_watch());
97763
97868
  new Watcher(watchOptionsList, emitter);
97764
97869
  }
97765
- exports2.watch = watch;
97766
- }
97767
- });
97768
-
97769
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js
97770
- var require_rollup2 = __commonJS({
97771
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js"(exports2) {
97772
- "use strict";
97773
- Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
97774
- var rollup = require_rollup();
97775
- var watchProxy = require_watch_proxy();
97776
- require_parseAst();
97777
- require_native();
97778
- require("node:path");
97779
- require("node:process");
97780
- require("tty");
97781
- require("path");
97782
- require("node:perf_hooks");
97783
- require("node:fs/promises");
97784
- require_fsevents_importer();
97785
97870
  exports2.VERSION = rollup.version;
97786
97871
  exports2.defineConfig = rollup.defineConfig;
97787
97872
  exports2.rollup = rollup.rollup;
97788
- exports2.watch = watchProxy.watch;
97873
+ exports2.watch = watch;
97789
97874
  }
97790
97875
  });
97791
97876
 
@@ -114517,8 +114602,8 @@ cosmiconfig/dist/ExplorerSync.js:
114517
114602
  rollup/dist/shared/parseAst.js:
114518
114603
  (*
114519
114604
  @license
114520
- Rollup.js v4.5.2
114521
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
114605
+ Rollup.js v4.10.0
114606
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
114522
114607
 
114523
114608
  https://github.com/rollup/rollup
114524
114609
 
@@ -114528,8 +114613,8 @@ rollup/dist/shared/parseAst.js:
114528
114613
  rollup/dist/shared/rollup.js:
114529
114614
  (*
114530
114615
  @license
114531
- Rollup.js v4.5.2
114532
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
114616
+ Rollup.js v4.10.0
114617
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
114533
114618
 
114534
114619
  https://github.com/rollup/rollup
114535
114620
 
@@ -114539,8 +114624,8 @@ rollup/dist/shared/rollup.js:
114539
114624
  rollup/dist/shared/fsevents-importer.js:
114540
114625
  (*
114541
114626
  @license
114542
- Rollup.js v4.5.2
114543
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
114627
+ Rollup.js v4.10.0
114628
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
114544
114629
 
114545
114630
  https://github.com/rollup/rollup
114546
114631
 
@@ -114550,8 +114635,8 @@ rollup/dist/shared/fsevents-importer.js:
114550
114635
  rollup/dist/shared/index.js:
114551
114636
  (*
114552
114637
  @license
114553
- Rollup.js v4.5.2
114554
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
114638
+ Rollup.js v4.10.0
114639
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
114555
114640
 
114556
114641
  https://github.com/rollup/rollup
114557
114642
 
@@ -114597,19 +114682,8 @@ rollup/dist/shared/index.js:
114597
114682
  rollup/dist/shared/watch.js:
114598
114683
  (*
114599
114684
  @license
114600
- Rollup.js v4.5.2
114601
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
114602
-
114603
- https://github.com/rollup/rollup
114604
-
114605
- Released under the MIT License.
114606
- *)
114607
-
114608
- rollup/dist/shared/watch-proxy.js:
114609
- (*
114610
- @license
114611
- Rollup.js v4.5.2
114612
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
114685
+ Rollup.js v4.10.0
114686
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
114613
114687
 
114614
114688
  https://github.com/rollup/rollup
114615
114689
 
@@ -114619,8 +114693,8 @@ rollup/dist/shared/watch-proxy.js:
114619
114693
  rollup/dist/rollup.js:
114620
114694
  (*
114621
114695
  @license
114622
- Rollup.js v4.5.2
114623
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
114696
+ Rollup.js v4.10.0
114697
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
114624
114698
 
114625
114699
  https://github.com/rollup/rollup
114626
114700