@aws/nx-plugin-mcp 1.0.0-rc.65 → 1.0.0-rc.67

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.
Files changed (2) hide show
  1. package/bin/aws-nx-mcp.js +488 -373
  2. package/package.json +1 -1
package/bin/aws-nx-mcp.js CHANGED
@@ -277,13 +277,14 @@ const errorMap = (issue, _ctx) => {
277
277
  message = `Invalid date`;
278
278
  break;
279
279
  case ZodIssueCode.invalid_string:
280
- if (typeof issue.validation === "object") if ("includes" in issue.validation) {
281
- message = `Invalid input: must include "${issue.validation.includes}"`;
282
- if (typeof issue.validation.position === "number") message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
283
- } else if ("startsWith" in issue.validation) message = `Invalid input: must start with "${issue.validation.startsWith}"`;
284
- else if ("endsWith" in issue.validation) message = `Invalid input: must end with "${issue.validation.endsWith}"`;
285
- else util.assertNever(issue.validation);
286
- else if (issue.validation !== "regex") message = `Invalid ${issue.validation}`;
280
+ if (typeof issue.validation === "object") {
281
+ if ("includes" in issue.validation) {
282
+ message = `Invalid input: must include "${issue.validation.includes}"`;
283
+ if (typeof issue.validation.position === "number") message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
284
+ } else if ("startsWith" in issue.validation) message = `Invalid input: must start with "${issue.validation.startsWith}"`;
285
+ else if ("endsWith" in issue.validation) message = `Invalid input: must end with "${issue.validation.endsWith}"`;
286
+ else util.assertNever(issue.validation);
287
+ } else if (issue.validation !== "regex") message = `Invalid ${issue.validation}`;
287
288
  else message = "Invalid";
288
289
  break;
289
290
  case ZodIssueCode.too_small:
@@ -448,8 +449,10 @@ var ParseInputLazyPath = class {
448
449
  this._key = key;
449
450
  }
450
451
  get path() {
451
- if (!this._cachedPath.length) if (Array.isArray(this._key)) this._cachedPath.push(...this._path, ...this._key);
452
- else this._cachedPath.push(...this._path, this._key);
452
+ if (!this._cachedPath.length) {
453
+ if (Array.isArray(this._key)) this._cachedPath.push(...this._path, ...this._key);
454
+ else this._cachedPath.push(...this._path, this._key);
455
+ }
453
456
  return this._cachedPath;
454
457
  }
455
458
  };
@@ -3263,30 +3266,32 @@ var ZodEffects = class extends ZodType$1 {
3263
3266
  });
3264
3267
  });
3265
3268
  }
3266
- if (effect.type === "transform") if (ctx.common.async === false) {
3267
- const base = this._def.schema._parseSync({
3269
+ if (effect.type === "transform") {
3270
+ if (ctx.common.async === false) {
3271
+ const base = this._def.schema._parseSync({
3272
+ data: ctx.data,
3273
+ path: ctx.path,
3274
+ parent: ctx
3275
+ });
3276
+ if (!isValid(base)) return INVALID;
3277
+ const result = effect.transform(base.value, checkCtx);
3278
+ if (result instanceof Promise) throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3279
+ return {
3280
+ status: status.value,
3281
+ value: result
3282
+ };
3283
+ } else return this._def.schema._parseAsync({
3268
3284
  data: ctx.data,
3269
3285
  path: ctx.path,
3270
3286
  parent: ctx
3287
+ }).then((base) => {
3288
+ if (!isValid(base)) return INVALID;
3289
+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3290
+ status: status.value,
3291
+ value: result
3292
+ }));
3271
3293
  });
3272
- if (!isValid(base)) return INVALID;
3273
- const result = effect.transform(base.value, checkCtx);
3274
- if (result instanceof Promise) throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3275
- return {
3276
- status: status.value,
3277
- value: result
3278
- };
3279
- } else return this._def.schema._parseAsync({
3280
- data: ctx.data,
3281
- path: ctx.path,
3282
- parent: ctx
3283
- }).then((base) => {
3284
- if (!isValid(base)) return INVALID;
3285
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3286
- status: status.value,
3287
- value: result
3288
- }));
3289
- });
3294
+ }
3290
3295
  util.assertNever(effect);
3291
3296
  }
3292
3297
  };
@@ -4225,8 +4230,10 @@ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst,
4225
4230
  inst._zod.onattach.push((inst) => {
4226
4231
  const bag = inst._zod.bag;
4227
4232
  const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
4228
- if (def.value < curr) if (def.inclusive) bag.maximum = def.value;
4229
- else bag.exclusiveMaximum = def.value;
4233
+ if (def.value < curr) {
4234
+ if (def.inclusive) bag.maximum = def.value;
4235
+ else bag.exclusiveMaximum = def.value;
4236
+ }
4230
4237
  });
4231
4238
  inst._zod.check = (payload) => {
4232
4239
  if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
@@ -4247,8 +4254,10 @@ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan",
4247
4254
  inst._zod.onattach.push((inst) => {
4248
4255
  const bag = inst._zod.bag;
4249
4256
  const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
4250
- if (def.value > curr) if (def.inclusive) bag.minimum = def.value;
4251
- else bag.exclusiveMinimum = def.value;
4257
+ if (def.value > curr) {
4258
+ if (def.inclusive) bag.minimum = def.value;
4259
+ else bag.exclusiveMinimum = def.value;
4260
+ }
4252
4261
  });
4253
4262
  inst._zod.check = (payload) => {
4254
4263
  if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
@@ -5166,13 +5175,13 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
5166
5175
  }
5167
5176
  return propValues;
5168
5177
  });
5169
- const isObject$2 = isObject;
5178
+ const isObject$1 = isObject;
5170
5179
  const catchall = def.catchall;
5171
5180
  let value;
5172
5181
  inst._zod.parse = (payload, ctx) => {
5173
5182
  value ?? (value = _normalized.value);
5174
5183
  const input = payload.value;
5175
- if (!isObject$2(input)) {
5184
+ if (!isObject$1(input)) {
5176
5185
  payload.issues.push({
5177
5186
  expected: "object",
5178
5187
  code: "invalid_type",
@@ -5295,7 +5304,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
5295
5304
  return (payload, ctx) => fn(shape, payload, ctx);
5296
5305
  };
5297
5306
  let fastpass;
5298
- const isObject$1 = isObject;
5307
+ const isObject$2 = isObject;
5299
5308
  const jit = !globalConfig.jitless;
5300
5309
  const fastEnabled = jit && allowsEval.value;
5301
5310
  const catchall = def.catchall;
@@ -5303,7 +5312,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
5303
5312
  inst._zod.parse = (payload, ctx) => {
5304
5313
  value ?? (value = _normalized.value);
5305
5314
  const input = payload.value;
5306
- if (!isObject$1(input)) {
5315
+ if (!isObject$2(input)) {
5307
5316
  payload.issues.push({
5308
5317
  expected: "object",
5309
5318
  code: "invalid_type",
@@ -6694,8 +6703,10 @@ function finalize(ctx, schema) {
6694
6703
  defs[seen.defId] = seen.def;
6695
6704
  }
6696
6705
  }
6697
- if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
6698
- else result.definitions = defs;
6706
+ if (ctx.external) {} else if (Object.keys(defs).length > 0) {
6707
+ if (ctx.target === "draft-2020-12") result.$defs = defs;
6708
+ else result.definitions = defs;
6709
+ }
6699
6710
  try {
6700
6711
  const finalized = JSON.parse(JSON.stringify(result));
6701
6712
  Object.defineProperty(finalized, "~standard", {
@@ -6808,16 +6819,18 @@ const numberProcessor = (schema, ctx, _json, _params) => {
6808
6819
  const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
6809
6820
  const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
6810
6821
  const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
6811
- if (exMin) if (legacy) {
6812
- json.minimum = exclusiveMinimum;
6813
- json.exclusiveMinimum = true;
6814
- } else json.exclusiveMinimum = exclusiveMinimum;
6815
- else if (typeof minimum === "number") json.minimum = minimum;
6816
- if (exMax) if (legacy) {
6817
- json.maximum = exclusiveMaximum;
6818
- json.exclusiveMaximum = true;
6819
- } else json.exclusiveMaximum = exclusiveMaximum;
6820
- else if (typeof maximum === "number") json.maximum = maximum;
6822
+ if (exMin) {
6823
+ if (legacy) {
6824
+ json.minimum = exclusiveMinimum;
6825
+ json.exclusiveMinimum = true;
6826
+ } else json.exclusiveMinimum = exclusiveMinimum;
6827
+ } else if (typeof minimum === "number") json.minimum = minimum;
6828
+ if (exMax) {
6829
+ if (legacy) {
6830
+ json.maximum = exclusiveMaximum;
6831
+ json.exclusiveMaximum = true;
6832
+ } else json.exclusiveMaximum = exclusiveMaximum;
6833
+ } else if (typeof maximum === "number") json.maximum = maximum;
6821
6834
  if (typeof multipleOf === "number") json.multipleOf = multipleOf;
6822
6835
  };
6823
6836
  const booleanProcessor = (_schema, _ctx, json, _params) => {
@@ -6862,9 +6875,10 @@ const literalProcessor = (schema, ctx, json, _params) => {
6862
6875
  const vals = [];
6863
6876
  for (const val of def.values) if (val === void 0) {
6864
6877
  if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
6865
- } else if (typeof val === "bigint") if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
6866
- else vals.push(Number(val));
6867
- else vals.push(val);
6878
+ } else if (typeof val === "bigint") {
6879
+ if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
6880
+ else vals.push(Number(val));
6881
+ } else vals.push(val);
6868
6882
  if (vals.length === 0) {} else if (vals.length === 1) {
6869
6883
  const val = vals[0];
6870
6884
  json.type = val === null ? "null" : typeof val;
@@ -6898,14 +6912,15 @@ const fileProcessor = (schema, _ctx, json, _params) => {
6898
6912
  const { minimum, maximum, mime } = schema._zod.bag;
6899
6913
  if (minimum !== void 0) file.minLength = minimum;
6900
6914
  if (maximum !== void 0) file.maxLength = maximum;
6901
- if (mime) if (mime.length === 1) {
6902
- file.contentMediaType = mime[0];
6903
- Object.assign(_json, file);
6904
- } else {
6905
- Object.assign(_json, file);
6906
- _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
6907
- }
6908
- else Object.assign(_json, file);
6915
+ if (mime) {
6916
+ if (mime.length === 1) {
6917
+ file.contentMediaType = mime[0];
6918
+ Object.assign(_json, file);
6919
+ } else {
6920
+ Object.assign(_json, file);
6921
+ _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
6922
+ }
6923
+ } else Object.assign(_json, file);
6909
6924
  };
6910
6925
  const successProcessor = (_schema, _ctx, json, _params) => {
6911
6926
  json.type = "boolean";
@@ -10327,17 +10342,19 @@ function parseBigintDef(def, refs) {
10327
10342
  if (!def.checks) return res;
10328
10343
  for (const check of def.checks) switch (check.kind) {
10329
10344
  case "min":
10330
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
10331
- else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
10332
- else {
10345
+ if (refs.target === "jsonSchema7") {
10346
+ if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
10347
+ else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
10348
+ } else {
10333
10349
  if (!check.inclusive) res.exclusiveMinimum = true;
10334
10350
  setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
10335
10351
  }
10336
10352
  break;
10337
10353
  case "max":
10338
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
10339
- else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
10340
- else {
10354
+ if (refs.target === "jsonSchema7") {
10355
+ if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
10356
+ else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
10357
+ } else {
10341
10358
  if (!check.inclusive) res.exclusiveMaximum = true;
10342
10359
  setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
10343
10360
  }
@@ -10947,17 +10964,19 @@ function parseNumberDef(def, refs) {
10947
10964
  addErrorMessage(res, "type", check.message, refs);
10948
10965
  break;
10949
10966
  case "min":
10950
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
10951
- else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
10952
- else {
10967
+ if (refs.target === "jsonSchema7") {
10968
+ if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
10969
+ else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
10970
+ } else {
10953
10971
  if (!check.inclusive) res.exclusiveMinimum = true;
10954
10972
  setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
10955
10973
  }
10956
10974
  break;
10957
10975
  case "max":
10958
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
10959
- else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
10960
- else {
10976
+ if (refs.target === "jsonSchema7") {
10977
+ if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
10978
+ else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
10979
+ } else {
10961
10980
  if (!check.inclusive) res.exclusiveMaximum = true;
10962
10981
  setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
10963
10982
  }
@@ -14178,10 +14197,12 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
14178
14197
  let schOrRef = this.refs[ref];
14179
14198
  if (typeof schOrRef == "string") schOrRef = this.refs[schOrRef];
14180
14199
  if (typeof schOrRef == "object") checkAmbiguosRef(sch, schOrRef.schema, ref);
14181
- else if (ref !== normalizeId(fullPath)) if (ref[0] === "#") {
14182
- checkAmbiguosRef(sch, localRefs[ref], ref);
14183
- localRefs[ref] = sch;
14184
- } else this.refs[ref] = fullPath;
14200
+ else if (ref !== normalizeId(fullPath)) {
14201
+ if (ref[0] === "#") {
14202
+ checkAmbiguosRef(sch, localRefs[ref], ref);
14203
+ localRefs[ref] = sch;
14204
+ } else this.refs[ref] = fullPath;
14205
+ }
14185
14206
  return ref;
14186
14207
  }
14187
14208
  function addAnchor(anchor) {
@@ -14981,9 +15002,11 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14981
15002
  continue;
14982
15003
  }
14983
15004
  }
14984
- if (buffer.length) if (consume === consumeIsZone) output.zone = buffer.join("");
14985
- else if (endIpv6) address.push(buffer.join(""));
14986
- else address.push(stringArrayToHexStripped(buffer));
15005
+ if (buffer.length) {
15006
+ if (consume === consumeIsZone) output.zone = buffer.join("");
15007
+ else if (endIpv6) address.push(buffer.join(""));
15008
+ else address.push(stringArrayToHexStripped(buffer));
15009
+ }
14987
15010
  output.address = address.join("");
14988
15011
  return output;
14989
15012
  }
@@ -15042,15 +15065,16 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15042
15065
  let nextSlash = -1;
15043
15066
  let len = 0;
15044
15067
  while (len = input.length) {
15045
- if (len === 1) if (input === ".") break;
15046
- else if (input === "/") {
15047
- output.push("/");
15048
- break;
15049
- } else {
15050
- output.push(input);
15051
- break;
15052
- }
15053
- else if (len === 2) {
15068
+ if (len === 1) {
15069
+ if (input === ".") break;
15070
+ else if (input === "/") {
15071
+ output.push("/");
15072
+ break;
15073
+ } else {
15074
+ output.push(input);
15075
+ break;
15076
+ }
15077
+ } else if (len === 2) {
15054
15078
  if (input[0] === ".") {
15055
15079
  if (input[1] === ".") break;
15056
15080
  else if (input[1] === "/") {
@@ -15474,10 +15498,12 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15474
15498
  const uriTokens = [];
15475
15499
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
15476
15500
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
15477
- if (component.path !== void 0) if (!options.skipEscape) {
15478
- component.path = escape(component.path);
15479
- if (component.scheme !== void 0) component.path = component.path.split("%3A").join(":");
15480
- } else component.path = unescape(component.path);
15501
+ if (component.path !== void 0) {
15502
+ if (!options.skipEscape) {
15503
+ component.path = escape(component.path);
15504
+ if (component.scheme !== void 0) component.path = component.path.split("%3A").join(":");
15505
+ } else component.path = unescape(component.path);
15506
+ }
15481
15507
  if (options.reference !== "suffix" && component.scheme) uriTokens.push(component.scheme, ":");
15482
15508
  const authority = recomposeAuthority(component);
15483
15509
  if (authority !== void 0) {
@@ -15514,8 +15540,10 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15514
15540
  fragment: void 0
15515
15541
  };
15516
15542
  let isIP = false;
15517
- if (options.reference === "suffix") if (options.scheme) uri = options.scheme + ":" + uri;
15518
- else uri = "//" + uri;
15543
+ if (options.reference === "suffix") {
15544
+ if (options.scheme) uri = options.scheme + ":" + uri;
15545
+ else uri = "//" + uri;
15546
+ }
15519
15547
  const matches = uri.match(URI_PARSE);
15520
15548
  if (matches) {
15521
15549
  parsed.scheme = matches[1];
@@ -15526,11 +15554,13 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15526
15554
  parsed.query = matches[7];
15527
15555
  parsed.fragment = matches[8];
15528
15556
  if (isNaN(parsed.port)) parsed.port = matches[5];
15529
- if (parsed.host) if (isIPv4(parsed.host) === false) {
15530
- const ipv6result = normalizeIPv6(parsed.host);
15531
- parsed.host = ipv6result.host.toLowerCase();
15532
- isIP = ipv6result.isIPV6;
15533
- } else isIP = true;
15557
+ if (parsed.host) {
15558
+ if (isIPv4(parsed.host) === false) {
15559
+ const ipv6result = normalizeIPv6(parsed.host);
15560
+ parsed.host = ipv6result.host.toLowerCase();
15561
+ isIP = ipv6result.isIPV6;
15562
+ } else isIP = true;
15563
+ }
15534
15564
  if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) parsed.reference = "same-document";
15535
15565
  else if (parsed.scheme === void 0) parsed.reference = "relative";
15536
15566
  else if (parsed.fragment === void 0) parsed.reference = "absolute";
@@ -16243,17 +16273,21 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
16243
16273
  var _a;
16244
16274
  if (!it.opts.unevaluated) return;
16245
16275
  const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
16246
- if (it.props !== true) if (schEvaluated && !schEvaluated.dynamicProps) {
16247
- if (schEvaluated.props !== void 0) it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props);
16248
- } else {
16249
- const props = gen.var("props", (0, codegen_1._)`${source}.evaluated.props`);
16250
- it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name);
16276
+ if (it.props !== true) {
16277
+ if (schEvaluated && !schEvaluated.dynamicProps) {
16278
+ if (schEvaluated.props !== void 0) it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props);
16279
+ } else {
16280
+ const props = gen.var("props", (0, codegen_1._)`${source}.evaluated.props`);
16281
+ it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name);
16282
+ }
16251
16283
  }
16252
- if (it.items !== true) if (schEvaluated && !schEvaluated.dynamicItems) {
16253
- if (schEvaluated.items !== void 0) it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items);
16254
- } else {
16255
- const items = gen.var("items", (0, codegen_1._)`${source}.evaluated.items`);
16256
- it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name);
16284
+ if (it.items !== true) {
16285
+ if (schEvaluated && !schEvaluated.dynamicItems) {
16286
+ if (schEvaluated.items !== void 0) it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items);
16287
+ } else {
16288
+ const items = gen.var("items", (0, codegen_1._)`${source}.evaluated.items`);
16289
+ it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name);
16290
+ }
16257
16291
  }
16258
16292
  }
16259
16293
  }
@@ -20767,28 +20801,28 @@ const NX_VERSION = {
20767
20801
  "@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.12.0",
20768
20802
  "@opentelemetry/propagator-jaeger": "2.10.0",
20769
20803
  minimatch: "10.2.6",
20770
- "@aws-sdk/client-dynamodb": "3.1101.0",
20771
- "@aws-sdk/client-api-gateway": "3.1101.0",
20772
- "@aws-sdk/client-iam": "3.1101.0",
20773
- "@aws-sdk/client-bedrock-agentcore": "3.1101.0",
20774
- "@aws-sdk/client-bedrock-runtime": "3.1101.0",
20775
- "@aws-sdk/client-s3": "3.1101.0",
20776
- "@aws-sdk/client-sts": "3.1101.0",
20777
- "@aws-sdk/credential-providers": "3.1101.0",
20778
- "@aws-sdk/credential-provider-cognito-identity": "3.972.64",
20779
- "@aws-sdk/client-secrets-manager": "3.1101.0",
20780
- "@aws-sdk/rds-signer": "3.1101.0",
20781
- "@aws-smithy/server-apigateway": "1.0.0-alpha.10",
20782
- "@aws-smithy/server-node": "1.0.0-alpha.10",
20804
+ "@aws-sdk/client-dynamodb": "3.1106.0",
20805
+ "@aws-sdk/client-api-gateway": "3.1106.0",
20806
+ "@aws-sdk/client-iam": "3.1106.0",
20807
+ "@aws-sdk/client-bedrock-agentcore": "3.1106.0",
20808
+ "@aws-sdk/client-bedrock-runtime": "3.1106.0",
20809
+ "@aws-sdk/client-s3": "3.1106.0",
20810
+ "@aws-sdk/client-sts": "3.1106.0",
20811
+ "@aws-sdk/credential-providers": "3.1106.0",
20812
+ "@aws-sdk/credential-provider-cognito-identity": "3.972.66",
20813
+ "@aws-sdk/client-secrets-manager": "3.1106.0",
20814
+ "@aws-sdk/rds-signer": "3.1106.0",
20815
+ "@smithy/server-apigateway": "0.2.0",
20816
+ "@smithy/server-node": "0.2.0",
20783
20817
  "@aws-lambda-powertools/logger": "2.34.0",
20784
20818
  "@aws-lambda-powertools/metrics": "2.34.0",
20785
20819
  "@aws-lambda-powertools/parameters": "2.34.0",
20786
20820
  "@aws-lambda-powertools/tracer": "2.34.0",
20787
20821
  "@aws-lambda-powertools/parser": "2.34.0",
20788
- "@aws-sdk/client-appconfigdata": "3.1101.0",
20822
+ "@aws-sdk/client-appconfigdata": "3.1106.0",
20789
20823
  "@middy/core": "7.7.2",
20790
20824
  "@nxlv/python": "22.2.2",
20791
- "@nx-extend/terraform": "10.3.0",
20825
+ "@nx-extend/terraform": "10.4.1",
20792
20826
  nx: "23.1.1",
20793
20827
  "@nx/devkit": "23.1.1",
20794
20828
  "@nx/js": "23.1.1",
@@ -20807,27 +20841,27 @@ const NX_VERSION = {
20807
20841
  "@ag-ui/core": "0.0.57",
20808
20842
  "@ag-ui/encoder": "0.0.57",
20809
20843
  "agent-chat-cli": "0.3.0",
20810
- "@copilotkit/react-core": "1.65.0",
20844
+ "@copilotkit/react-core": "1.66.4",
20811
20845
  rxjs: "7.8.2",
20812
- "@strands-agents/sdk": "1.11.2",
20813
- "@tanstack/react-router": "1.170.18",
20814
- "@tanstack/router-plugin": "1.168.23",
20815
- "@tanstack/router-generator": "1.167.21",
20846
+ "@strands-agents/sdk": "1.12.0",
20847
+ "@tanstack/react-router": "1.170.23",
20848
+ "@tanstack/router-plugin": "1.168.27",
20849
+ "@tanstack/router-generator": "1.167.25",
20816
20850
  "@tanstack/virtual-file-routes": "1.162.0",
20817
20851
  "@tanstack/router-utils": "1.162.2",
20818
- "@cloudscape-design/board-components": "3.0.212",
20819
- "@cloudscape-design/chat-components": "1.0.156",
20820
- "@cloudscape-design/components": "3.0.1340",
20852
+ "@cloudscape-design/board-components": "3.0.213",
20853
+ "@cloudscape-design/chat-components": "1.0.157",
20854
+ "@cloudscape-design/components": "3.0.1342",
20821
20855
  "@cloudscape-design/global-styles": "1.0.65",
20822
20856
  "@tanstack/react-query": "5.101.4",
20823
20857
  "@tanstack/react-query-devtools": "5.101.4",
20824
20858
  "@trpc/tanstack-react-query": "11.18.0",
20825
20859
  "@trpc/client": "11.18.0",
20826
20860
  "@trpc/server": "11.18.0",
20827
- "@types/node": "26.1.2",
20861
+ "@types/node": "26.2.0",
20828
20862
  "@types/aws-lambda": "8.10.162",
20829
20863
  "@types/cors": "2.8.19",
20830
- "@types/pg": "8.20.3",
20864
+ "@types/pg": "8.21.0",
20831
20865
  "@types/ws": "8.18.1",
20832
20866
  "@types/express": "5.0.6",
20833
20867
  "@smithy/config-resolver": "4.6.16",
@@ -20840,21 +20874,21 @@ const NX_VERSION = {
20840
20874
  "@astrojs/starlight": "0.41.3",
20841
20875
  astro: "7.1.1",
20842
20876
  aws4fetch: "1.0.20",
20843
- "aws-cdk": "2.1135.0",
20877
+ "aws-cdk": "2.1135.1",
20844
20878
  "aws-cdk-lib": "2.263.0",
20845
20879
  "aws-xray-sdk-core": "3.12.0",
20846
- constructs: "10.8.0",
20880
+ constructs: "10.8.1",
20847
20881
  cors: "2.8.6",
20848
20882
  chalk: "5.6.2",
20849
20883
  "class-variance-authority": "0.7.1",
20850
20884
  clsx: "2.1.1",
20851
20885
  commander: "15.0.0",
20852
20886
  "cpy-cli": "7.0.0",
20853
- electrodb: "3.9.1",
20854
- esbuild: "0.28.1",
20887
+ electrodb: "3.9.2",
20888
+ esbuild: "0.28.2",
20855
20889
  "event-source-polyfill": "1.0.31",
20856
20890
  "@types/event-source-polyfill": "1.0.5",
20857
- "@biomejs/biome": "2.5.6",
20891
+ "@biomejs/biome": "2.5.7",
20858
20892
  "@prisma/adapter-mariadb": "7.9.1",
20859
20893
  "@prisma/adapter-pg": "7.9.1",
20860
20894
  "@prisma/client": "7.9.1",
@@ -20872,30 +20906,30 @@ const NX_VERSION = {
20872
20906
  npm: "12.0.2",
20873
20907
  "npm-check-updates": "22.2.9",
20874
20908
  "oidc-client-ts": "3.5.0",
20875
- pg: "8.22.0",
20909
+ pg: "8.23.0",
20876
20910
  prisma: "7.9.1",
20877
20911
  "react-oidc-context": "3.3.1",
20878
20912
  react: "19.2.8",
20879
20913
  "react-dom": "19.2.8",
20880
20914
  rimraf: "6.1.3",
20881
- rolldown: "1.2.2",
20915
+ rolldown: "1.2.3",
20882
20916
  "rolldown-plugin-dts": "0.28.0",
20883
20917
  "simple-git": "3.36.0",
20884
20918
  "source-map-support": "0.5.21",
20885
20919
  "starlight-blog": "0.28.0",
20886
20920
  tailwindcss: "4.3.3",
20887
20921
  "@tailwindcss/vite": "4.3.3",
20888
- tsx: "4.23.5",
20889
- "lucide-react": "1.28.0",
20922
+ tsx: "4.23.11",
20923
+ "lucide-react": "1.30.0",
20890
20924
  "radix-ui": "1.6.7",
20891
- shadcn: "4.16.1",
20925
+ shadcn: "4.16.2",
20892
20926
  "tw-animate-css": "1.4.0",
20893
20927
  "tailwind-merge": "3.6.0",
20894
- vite: "8.2.0",
20928
+ vite: "8.2.1",
20895
20929
  typescript: "6.0.3",
20896
20930
  vitest: "4.1.10",
20897
20931
  zod: "4.4.3",
20898
- ws: "8.21.1"
20932
+ ws: "8.21.3"
20899
20933
  }.nx;
20900
20934
  //#endregion
20901
20935
  //#region ../nx-plugin/src/utils/commands.ts
@@ -21809,8 +21843,10 @@ function requireOmap() {
21809
21843
  let pairHasKey = false;
21810
21844
  if (_toString.call(pair) !== "[object Object]") return false;
21811
21845
  let pairKey;
21812
- for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
21813
- else return false;
21846
+ for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
21847
+ if (!pairHasKey) pairHasKey = true;
21848
+ else return false;
21849
+ }
21814
21850
  if (!pairHasKey) return false;
21815
21851
  if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
21816
21852
  Object.defineProperty(objectKeys, pairKey, { value: true });
@@ -22161,9 +22197,10 @@ function requireLoader() {
22161
22197
  if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
22162
22198
  keyNode = String(keyNode);
22163
22199
  if (_result === null) _result = {};
22164
- if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
22165
- else mergeMappings(state, _result, valueNode, overridableKeys);
22166
- else {
22200
+ if (keyTag === "tag:yaml.org,2002:merge") {
22201
+ if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
22202
+ else mergeMappings(state, _result, valueNode, overridableKeys);
22203
+ } else {
22167
22204
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
22168
22205
  state.line = startLine || state.line;
22169
22206
  state.lineStart = startLineStart || state.lineStart;
@@ -22448,14 +22485,16 @@ function requireLoader() {
22448
22485
  state.result = "";
22449
22486
  while (ch !== 0) {
22450
22487
  ch = state.input.charCodeAt(++state.position);
22451
- if (ch === 43 || ch === 45) if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
22452
- else throwError(state, "repeat of a chomping mode identifier");
22453
- else if ((tmp = fromDecimalCode(ch)) >= 0) if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
22454
- else if (!detectedIndent) {
22455
- textIndent = nodeIndent + tmp - 1;
22456
- detectedIndent = true;
22457
- } else throwError(state, "repeat of an indentation width identifier");
22458
- else break;
22488
+ if (ch === 43 || ch === 45) {
22489
+ if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
22490
+ else throwError(state, "repeat of a chomping mode identifier");
22491
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
22492
+ if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
22493
+ else if (!detectedIndent) {
22494
+ textIndent = nodeIndent + tmp - 1;
22495
+ detectedIndent = true;
22496
+ } else throwError(state, "repeat of an indentation width identifier");
22497
+ } else break;
22459
22498
  }
22460
22499
  if (isWhiteSpace(ch)) {
22461
22500
  do
@@ -22486,16 +22525,17 @@ function requireLoader() {
22486
22525
  }
22487
22526
  break;
22488
22527
  }
22489
- if (folding) if (isWhiteSpace(ch)) {
22490
- atMoreIndented = true;
22491
- state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
22492
- } else if (atMoreIndented) {
22493
- atMoreIndented = false;
22494
- state.result += common2.repeat("\n", emptyLines + 1);
22495
- } else if (emptyLines === 0) {
22496
- if (didReadContent) state.result += " ";
22497
- } else state.result += common2.repeat("\n", emptyLines);
22498
- else state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
22528
+ if (folding) {
22529
+ if (isWhiteSpace(ch)) {
22530
+ atMoreIndented = true;
22531
+ state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
22532
+ } else if (atMoreIndented) {
22533
+ atMoreIndented = false;
22534
+ state.result += common2.repeat("\n", emptyLines + 1);
22535
+ } else if (emptyLines === 0) {
22536
+ if (didReadContent) state.result += " ";
22537
+ } else state.result += common2.repeat("\n", emptyLines);
22538
+ } else state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
22499
22539
  didReadContent = true;
22500
22540
  detectedIndent = true;
22501
22541
  emptyLines = 0;
@@ -22624,8 +22664,10 @@ function requireLoader() {
22624
22664
  _keyLineStart = state.lineStart;
22625
22665
  _keyPos = state.position;
22626
22666
  }
22627
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
22628
- else valueNode = state.result;
22667
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
22668
+ if (atExplicitKey) keyNode = state.result;
22669
+ else valueNode = state.result;
22670
+ }
22629
22671
  if (!atExplicitKey) {
22630
22672
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
22631
22673
  keyTag = keyNode = valueNode = null;
@@ -22673,12 +22715,14 @@ function requireLoader() {
22673
22715
  } else throwError(state, "unexpected end of the stream within a verbatim tag");
22674
22716
  } else {
22675
22717
  while (ch !== 0 && !isWsOrEol(ch)) {
22676
- if (ch === 33) if (!isNamed) {
22677
- tagHandle = state.input.slice(_position - 1, state.position + 1);
22678
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
22679
- isNamed = true;
22680
- _position = state.position + 1;
22681
- } else throwError(state, "tag suffix cannot contain exclamation marks");
22718
+ if (ch === 33) {
22719
+ if (!isNamed) {
22720
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
22721
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
22722
+ isNamed = true;
22723
+ _position = state.position + 1;
22724
+ } else throwError(state, "tag suffix cannot contain exclamation marks");
22725
+ }
22682
22726
  ch = state.input.charCodeAt(++state.position);
22683
22727
  }
22684
22728
  tagName = state.input.slice(_position, state.position);
@@ -22782,21 +22826,22 @@ function requireLoader() {
22782
22826
  if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
22783
22827
  else flowIndent = parentIndent + 1;
22784
22828
  blockIndent = state.position - state.lineStart;
22785
- if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
22786
- else {
22787
- const ch = state.input.charCodeAt(state.position);
22788
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
22789
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
22790
- else if (readAlias(state)) {
22791
- hasContent = true;
22792
- if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
22793
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
22794
- hasContent = true;
22795
- if (state.tag === null) state.tag = "?";
22829
+ if (indentStatus === 1) {
22830
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
22831
+ else {
22832
+ const ch = state.input.charCodeAt(state.position);
22833
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
22834
+ else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
22835
+ else if (readAlias(state)) {
22836
+ hasContent = true;
22837
+ if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
22838
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
22839
+ hasContent = true;
22840
+ if (state.tag === null) state.tag = "?";
22841
+ }
22842
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
22796
22843
  }
22797
- if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
22798
- }
22799
- else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
22844
+ } else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
22800
22845
  }
22801
22846
  if (state.tag === null) {
22802
22847
  if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
@@ -23305,8 +23350,10 @@ function requireDumper() {
23305
23350
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
23306
23351
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
23307
23352
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
23308
- if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
23309
- else pairBuffer += "? ";
23353
+ if (explicitPair) {
23354
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
23355
+ else pairBuffer += "? ";
23356
+ }
23310
23357
  pairBuffer += state.dump;
23311
23358
  if (explicitPair) pairBuffer += generateNextLine(state, level);
23312
23359
  if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
@@ -23323,9 +23370,10 @@ function requireDumper() {
23323
23370
  for (let index = 0, length = typeList.length; index < length; index += 1) {
23324
23371
  const type2 = typeList[index];
23325
23372
  if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
23326
- if (explicit) if (type2.multi && type2.representName) state.tag = type2.representName(object);
23327
- else state.tag = type2.tag;
23328
- else state.tag = "?";
23373
+ if (explicit) {
23374
+ if (type2.multi && type2.representName) state.tag = type2.representName(object);
23375
+ else state.tag = type2.tag;
23376
+ } else state.tag = "?";
23329
23377
  if (type2.represent) {
23330
23378
  const style = state.styleMap[type2.tag] || type2.defaultStyle;
23331
23379
  let _result;
@@ -23357,22 +23405,24 @@ function requireDumper() {
23357
23405
  if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
23358
23406
  else {
23359
23407
  if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
23360
- if (type2 === "[object Object]") if (block && Object.keys(state.dump).length !== 0) {
23361
- writeBlockMapping(state, level, state.dump, compact);
23362
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
23363
- } else {
23364
- writeFlowMapping(state, level, state.dump);
23365
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
23366
- }
23367
- else if (type2 === "[object Array]") if (block && state.dump.length !== 0) {
23368
- if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
23369
- else writeBlockSequence(state, level, state.dump, compact);
23370
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
23371
- } else {
23372
- writeFlowSequence(state, level, state.dump);
23373
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
23374
- }
23375
- else if (type2 === "[object String]") {
23408
+ if (type2 === "[object Object]") {
23409
+ if (block && Object.keys(state.dump).length !== 0) {
23410
+ writeBlockMapping(state, level, state.dump, compact);
23411
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
23412
+ } else {
23413
+ writeFlowMapping(state, level, state.dump);
23414
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
23415
+ }
23416
+ } else if (type2 === "[object Array]") {
23417
+ if (block && state.dump.length !== 0) {
23418
+ if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
23419
+ else writeBlockSequence(state, level, state.dump, compact);
23420
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
23421
+ } else {
23422
+ writeFlowSequence(state, level, state.dump);
23423
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
23424
+ }
23425
+ } else if (type2 === "[object String]") {
23376
23426
  if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
23377
23427
  } else if (type2 === "[object Undefined]") return false;
23378
23428
  else {
@@ -23849,9 +23899,11 @@ function wrap(middleware, callback) {
23849
23899
  if (fnExpectsCallback && called) throw exception;
23850
23900
  return done(exception);
23851
23901
  }
23852
- if (!fnExpectsCallback) if (result && result.then && typeof result.then === "function") result.then(then, done);
23853
- else if (result instanceof Error) done(result);
23854
- else then(result);
23902
+ if (!fnExpectsCallback) {
23903
+ if (result && result.then && typeof result.then === "function") result.then(then, done);
23904
+ else if (result instanceof Error) done(result);
23905
+ else then(result);
23906
+ }
23855
23907
  }
23856
23908
  /**
23857
23909
  * Call `callback`, only once.
@@ -24020,13 +24072,15 @@ var init_lib$24 = __esmMin((() => {
24020
24072
  /** @type {Options} */
24021
24073
  let options = {};
24022
24074
  let legacyCause = false;
24023
- if (optionsOrParentOrPlace) if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
24024
- else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
24025
- else if ("type" in optionsOrParentOrPlace) options = {
24026
- ancestors: [optionsOrParentOrPlace],
24027
- place: optionsOrParentOrPlace.position
24028
- };
24029
- else options = { ...optionsOrParentOrPlace };
24075
+ if (optionsOrParentOrPlace) {
24076
+ if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
24077
+ else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
24078
+ else if ("type" in optionsOrParentOrPlace) options = {
24079
+ ancestors: [optionsOrParentOrPlace],
24080
+ place: optionsOrParentOrPlace.position
24081
+ };
24082
+ else options = { ...optionsOrParentOrPlace };
24083
+ }
24030
24084
  if (typeof causeOrReason === "string") reason = causeOrReason;
24031
24085
  else if (!options.cause && causeOrReason) {
24032
24086
  legacyCause = true;
@@ -25422,9 +25476,10 @@ var init_lib$22 = __esmMin((() => {
25422
25476
  const namespace = this.namespace;
25423
25477
  assertUnfrozen("use", this.frozen);
25424
25478
  if (value === null || value === void 0) {} else if (typeof value === "function") addPlugin(value, parameters);
25425
- else if (typeof value === "object") if (Array.isArray(value)) addList(value);
25426
- else addPreset(value);
25427
- else throw new TypeError("Expected usable value, not `" + value + "`");
25479
+ else if (typeof value === "object") {
25480
+ if (Array.isArray(value)) addList(value);
25481
+ else addPreset(value);
25482
+ } else throw new TypeError("Expected usable value, not `" + value + "`");
25428
25483
  return this;
25429
25484
  /**
25430
25485
  * @param {Pluggable} value
@@ -25432,11 +25487,12 @@ var init_lib$22 = __esmMin((() => {
25432
25487
  */
25433
25488
  function add(value) {
25434
25489
  if (typeof value === "function") addPlugin(value, []);
25435
- else if (typeof value === "object") if (Array.isArray(value)) {
25436
- const [plugin, ...parameters] = value;
25437
- addPlugin(plugin, parameters);
25438
- } else addPreset(value);
25439
- else throw new TypeError("Expected usable value, not `" + value + "`");
25490
+ else if (typeof value === "object") {
25491
+ if (Array.isArray(value)) {
25492
+ const [plugin, ...parameters] = value;
25493
+ addPlugin(plugin, parameters);
25494
+ } else addPreset(value);
25495
+ } else throw new TypeError("Expected usable value, not `" + value + "`");
25440
25496
  }
25441
25497
  /**
25442
25498
  * @param {Preset} result
@@ -34914,8 +34970,10 @@ function compiler(options) {
34914
34970
  /** @type {Array<number>} */
34915
34971
  const listStack = [];
34916
34972
  let index = -1;
34917
- while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") if (events[index][0] === "enter") listStack.push(index);
34918
- else index = prepareList(events, listStack.pop(), index);
34973
+ while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
34974
+ if (events[index][0] === "enter") listStack.push(index);
34975
+ else index = prepareList(events, listStack.pop(), index);
34976
+ }
34919
34977
  index = -1;
34920
34978
  while (++index < events.length) {
34921
34979
  const handler = config[events[index][0]];
@@ -35105,8 +35163,10 @@ function compiler(options) {
35105
35163
  start: token.start,
35106
35164
  end: token.end
35107
35165
  }) + "): it’s not open");
35108
- else if (open[0].type !== token.type) if (onExitError) onExitError.call(this, token, open[0]);
35109
- else (open[1] || defaultOnError).call(this, token, open[0]);
35166
+ else if (open[0].type !== token.type) {
35167
+ if (onExitError) onExitError.call(this, token, open[0]);
35168
+ else (open[1] || defaultOnError).call(this, token, open[0]);
35169
+ }
35110
35170
  node.position.end = point(token.end);
35111
35171
  }
35112
35172
  /**
@@ -36081,10 +36141,12 @@ function parseEntities(value, options) {
36081
36141
  let point;
36082
36142
  /** @type {Array<number>|undefined} */
36083
36143
  let indent;
36084
- if (settings.position) if ("start" in settings.position || "indent" in settings.position) {
36085
- indent = settings.position.indent;
36086
- point = settings.position.start;
36087
- } else point = settings.position;
36144
+ if (settings.position) {
36145
+ if ("start" in settings.position || "indent" in settings.position) {
36146
+ indent = settings.position.indent;
36147
+ point = settings.position.start;
36148
+ } else point = settings.position;
36149
+ }
36088
36150
  let line = (point ? point.line : 0) || 1;
36089
36151
  let column = (point ? point.column : 0) || 1;
36090
36152
  let previous = now();
@@ -36829,16 +36891,18 @@ function mdxJsxToMarkdown(options) {
36829
36891
  } else if (attributesOnOneLine) value += tracker.move(" " + attributesOnOneLine);
36830
36892
  if (selfClosing) value += tracker.move((tightSelfClosing || attributesOnTheirOwnLine ? "" : " ") + "/");
36831
36893
  value += tracker.move(">");
36832
- if (node.children && node.children.length > 0) if (node.type === "mdxJsxTextElement") value += tracker.move(state.containerPhrasing(node, {
36833
- ...tracker.current(),
36834
- before: ">",
36835
- after: "<"
36836
- }));
36837
- else {
36838
- tracker.shift(2);
36839
- value += tracker.move("\n");
36840
- value += tracker.move(containerFlow$1(node, state, tracker.current()));
36841
- value += tracker.move("\n");
36894
+ if (node.children && node.children.length > 0) {
36895
+ if (node.type === "mdxJsxTextElement") value += tracker.move(state.containerPhrasing(node, {
36896
+ ...tracker.current(),
36897
+ before: ">",
36898
+ after: "<"
36899
+ }));
36900
+ else {
36901
+ tracker.shift(2);
36902
+ value += tracker.move("\n");
36903
+ value += tracker.move(containerFlow$1(node, state, tracker.current()));
36904
+ value += tracker.move("\n");
36905
+ }
36842
36906
  }
36843
36907
  if (!selfClosing) value += tracker.move((flow ? currentIndent : "") + "</" + (node.name || "") + ">");
36844
36908
  exit();
@@ -38904,9 +38968,11 @@ var init_acorn = __esmMin((() => {
38904
38968
  };
38905
38969
  pp$8.parseForAfterInit = function(node, init, awaitAt) {
38906
38970
  if ((this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init.declarations.length === 1) {
38907
- if (this.options.ecmaVersion >= 9) if (this.type === types$1._in) {
38908
- if (awaitAt > -1) this.unexpected(awaitAt);
38909
- } else node.await = awaitAt > -1;
38971
+ if (this.options.ecmaVersion >= 9) {
38972
+ if (this.type === types$1._in) {
38973
+ if (awaitAt > -1) this.unexpected(awaitAt);
38974
+ } else node.await = awaitAt > -1;
38975
+ }
38910
38976
  return this.parseForIn(node, init);
38911
38977
  }
38912
38978
  if (awaitAt > -1) this.unexpected(awaitAt);
@@ -39187,13 +39253,17 @@ var init_acorn = __esmMin((() => {
39187
39253
  else keyName = "static";
39188
39254
  }
39189
39255
  node.static = isStatic;
39190
- if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) isAsync = true;
39191
- else keyName = "async";
39256
+ if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {
39257
+ if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) isAsync = true;
39258
+ else keyName = "async";
39259
+ }
39192
39260
  if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) isGenerator = true;
39193
39261
  if (!keyName && !isAsync && !isGenerator) {
39194
39262
  var lastValue = this.value;
39195
- if (this.eatContextual("get") || this.eatContextual("set")) if (this.isClassElementNameStart()) kind = lastValue;
39196
- else keyName = lastValue;
39263
+ if (this.eatContextual("get") || this.eatContextual("set")) {
39264
+ if (this.isClassElementNameStart()) kind = lastValue;
39265
+ else keyName = lastValue;
39266
+ }
39197
39267
  }
39198
39268
  if (keyName) {
39199
39269
  node.computed = false;
@@ -39286,15 +39356,19 @@ var init_acorn = __esmMin((() => {
39286
39356
  var parent = len === 0 ? null : this.privateNameStack[len - 1];
39287
39357
  for (var i = 0; i < used.length; ++i) {
39288
39358
  var id = used[i];
39289
- if (!hasOwn(declared, id.name)) if (parent) parent.used.push(id);
39290
- else this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class");
39359
+ if (!hasOwn(declared, id.name)) {
39360
+ if (parent) parent.used.push(id);
39361
+ else this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class");
39362
+ }
39291
39363
  }
39292
39364
  };
39293
39365
  pp$8.parseExportAllDeclaration = function(node, exports) {
39294
- if (this.options.ecmaVersion >= 11) if (this.eatContextual("as")) {
39295
- node.exported = this.parseModuleExportName();
39296
- this.checkExport(exports, node.exported, this.lastTokStart);
39297
- } else node.exported = null;
39366
+ if (this.options.ecmaVersion >= 11) {
39367
+ if (this.eatContextual("as")) {
39368
+ node.exported = this.parseModuleExportName();
39369
+ this.checkExport(exports, node.exported, this.lastTokStart);
39370
+ } else node.exported = null;
39371
+ }
39298
39372
  this.expectContextual("from");
39299
39373
  if (this.type !== types$1.string) this.unexpected();
39300
39374
  node.source = this.parseExprAtom();
@@ -39812,9 +39886,11 @@ var init_acorn = __esmMin((() => {
39812
39886
  var kind = prop.kind;
39813
39887
  if (this.options.ecmaVersion >= 6) {
39814
39888
  if (name === "__proto__" && kind === "init") {
39815
- if (propHash.proto) if (refDestructuringErrors) {
39816
- if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;
39817
- } else this.raiseRecoverable(key.start, "Redefinition of __proto__ property");
39889
+ if (propHash.proto) {
39890
+ if (refDestructuringErrors) {
39891
+ if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;
39892
+ } else this.raiseRecoverable(key.start, "Redefinition of __proto__ property");
39893
+ }
39818
39894
  propHash.proto = true;
39819
39895
  }
39820
39896
  return;
@@ -39845,8 +39921,10 @@ var init_acorn = __esmMin((() => {
39845
39921
  return expr;
39846
39922
  };
39847
39923
  pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
39848
- if (this.isContextual("yield")) if (this.inGenerator) return this.parseYield(forInit);
39849
- else this.exprAllowed = false;
39924
+ if (this.isContextual("yield")) {
39925
+ if (this.inGenerator) return this.parseYield(forInit);
39926
+ else this.exprAllowed = false;
39927
+ }
39850
39928
  var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;
39851
39929
  if (refDestructuringErrors) {
39852
39930
  oldParenAssign = refDestructuringErrors.parenthesizedAssign;
@@ -39962,9 +40040,10 @@ var init_acorn = __esmMin((() => {
39962
40040
  expr = this.finishNode(node$1, "UpdateExpression");
39963
40041
  }
39964
40042
  }
39965
- if (!incDec && this.eat(types$1.starstar)) if (sawUnary) this.unexpected(this.lastTokStart);
39966
- else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false);
39967
- else return expr;
40043
+ if (!incDec && this.eat(types$1.starstar)) {
40044
+ if (sawUnary) this.unexpected(this.lastTokStart);
40045
+ else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false);
40046
+ } else return expr;
39968
40047
  };
39969
40048
  pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
39970
40049
  var startPos = this.start, startLoc = this.startLoc;
@@ -40144,17 +40223,18 @@ var init_acorn = __esmMin((() => {
40144
40223
  pp$5.parseDynamicImport = function(node) {
40145
40224
  this.next();
40146
40225
  node.source = this.parseMaybeAssign();
40147
- if (this.options.ecmaVersion >= 16) if (!this.eat(types$1.parenR)) {
40148
- this.expect(types$1.comma);
40149
- if (!this.afterTrailingComma(types$1.parenR)) {
40150
- node.options = this.parseMaybeAssign();
40151
- if (!this.eat(types$1.parenR)) {
40152
- this.expect(types$1.comma);
40153
- if (!this.afterTrailingComma(types$1.parenR)) this.unexpected();
40154
- }
40226
+ if (this.options.ecmaVersion >= 16) {
40227
+ if (!this.eat(types$1.parenR)) {
40228
+ this.expect(types$1.comma);
40229
+ if (!this.afterTrailingComma(types$1.parenR)) {
40230
+ node.options = this.parseMaybeAssign();
40231
+ if (!this.eat(types$1.parenR)) {
40232
+ this.expect(types$1.comma);
40233
+ if (!this.afterTrailingComma(types$1.parenR)) this.unexpected();
40234
+ }
40235
+ } else node.options = null;
40155
40236
  } else node.options = null;
40156
- } else node.options = null;
40157
- else if (!this.eat(types$1.parenR)) {
40237
+ } else if (!this.eat(types$1.parenR)) {
40158
40238
  var errorPos = this.start;
40159
40239
  if (this.eat(types$1.comma) && this.eat(types$1.parenR)) this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
40160
40240
  else this.unexpected(errorPos);
@@ -40387,12 +40467,14 @@ var init_acorn = __esmMin((() => {
40387
40467
  } else this.unexpected();
40388
40468
  };
40389
40469
  pp$5.parsePropertyName = function(prop) {
40390
- if (this.options.ecmaVersion >= 6) if (this.eat(types$1.bracketL)) {
40391
- prop.computed = true;
40392
- prop.key = this.parseMaybeAssign();
40393
- this.expect(types$1.bracketR);
40394
- return prop.key;
40395
- } else prop.computed = false;
40470
+ if (this.options.ecmaVersion >= 6) {
40471
+ if (this.eat(types$1.bracketL)) {
40472
+ prop.computed = true;
40473
+ prop.key = this.parseMaybeAssign();
40474
+ this.expect(types$1.bracketR);
40475
+ return prop.key;
40476
+ } else prop.computed = false;
40477
+ }
40396
40478
  return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
40397
40479
  };
40398
40480
  pp$5.initFunction = function(node) {
@@ -40527,8 +40609,10 @@ var init_acorn = __esmMin((() => {
40527
40609
  else this.unexpected();
40528
40610
  this.next();
40529
40611
  this.finishNode(node, "PrivateIdentifier");
40530
- if (this.options.checkPrivateFields) if (this.privateNameStack.length === 0) this.raise(node.start, "Private field '#" + node.name + "' must be declared in an enclosing class");
40531
- else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
40612
+ if (this.options.checkPrivateFields) {
40613
+ if (this.privateNameStack.length === 0) this.raise(node.start, "Private field '#" + node.name + "' must be declared in an enclosing class");
40614
+ else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
40615
+ }
40532
40616
  return node;
40533
40617
  };
40534
40618
  pp$5.parseYield = function(forInit) {
@@ -41032,9 +41116,11 @@ var init_acorn = __esmMin((() => {
41032
41116
  if (!this.regexp_eatGroupName(state)) state.raise("Invalid group");
41033
41117
  var trackDisjunction = this.options.ecmaVersion >= 16;
41034
41118
  var known = state.groupNames[state.lastStringValue];
41035
- if (known) if (trackDisjunction) {
41036
- for (var i = 0, list = known; i < list.length; i += 1) if (!list[i].separatedFrom(state.branchID)) state.raise("Duplicate capture group name");
41037
- } else state.raise("Duplicate capture group name");
41119
+ if (known) {
41120
+ if (trackDisjunction) {
41121
+ for (var i = 0, list = known; i < list.length; i += 1) if (!list[i].separatedFrom(state.branchID)) state.raise("Duplicate capture group name");
41122
+ } else state.raise("Duplicate capture group name");
41123
+ }
41038
41124
  if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
41039
41125
  else state.groupNames[state.lastStringValue] = true;
41040
41126
  }
@@ -41996,12 +42082,14 @@ var init_acorn = __esmMin((() => {
41996
42082
  if (this.pos >= this.input.length) this.raise(this.start, "Unterminated template");
41997
42083
  var ch = this.input.charCodeAt(this.pos);
41998
42084
  if (ch === 96 || ch === 36 && this.input.charCodeAt(this.pos + 1) === 123) {
41999
- if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate)) if (ch === 36) {
42000
- this.pos += 2;
42001
- return this.finishToken(types$1.dollarBraceL);
42002
- } else {
42003
- ++this.pos;
42004
- return this.finishToken(types$1.backQuote);
42085
+ if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate)) {
42086
+ if (ch === 36) {
42087
+ this.pos += 2;
42088
+ return this.finishToken(types$1.dollarBraceL);
42089
+ } else {
42090
+ ++this.pos;
42091
+ return this.finishToken(types$1.backQuote);
42092
+ }
42005
42093
  }
42006
42094
  out += this.input.slice(chunkStart, this.pos);
42007
42095
  return this.finishToken(types$1.template, out);
@@ -44141,9 +44229,11 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44141
44229
  };
44142
44230
  pp$8.parseForAfterInit = function(node, init, awaitAt) {
44143
44231
  if ((this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init.declarations.length === 1) {
44144
- if (this.options.ecmaVersion >= 9) if (this.type === types$1._in) {
44145
- if (awaitAt > -1) this.unexpected(awaitAt);
44146
- } else node.await = awaitAt > -1;
44232
+ if (this.options.ecmaVersion >= 9) {
44233
+ if (this.type === types$1._in) {
44234
+ if (awaitAt > -1) this.unexpected(awaitAt);
44235
+ } else node.await = awaitAt > -1;
44236
+ }
44147
44237
  return this.parseForIn(node, init);
44148
44238
  }
44149
44239
  if (awaitAt > -1) this.unexpected(awaitAt);
@@ -44422,13 +44512,17 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44422
44512
  else keyName = "static";
44423
44513
  }
44424
44514
  node.static = isStatic;
44425
- if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) isAsync = true;
44426
- else keyName = "async";
44515
+ if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {
44516
+ if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) isAsync = true;
44517
+ else keyName = "async";
44518
+ }
44427
44519
  if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) isGenerator = true;
44428
44520
  if (!keyName && !isAsync && !isGenerator) {
44429
44521
  var lastValue = this.value;
44430
- if (this.eatContextual("get") || this.eatContextual("set")) if (this.isClassElementNameStart()) kind = lastValue;
44431
- else keyName = lastValue;
44522
+ if (this.eatContextual("get") || this.eatContextual("set")) {
44523
+ if (this.isClassElementNameStart()) kind = lastValue;
44524
+ else keyName = lastValue;
44525
+ }
44432
44526
  }
44433
44527
  if (keyName) {
44434
44528
  node.computed = false;
@@ -44521,8 +44615,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44521
44615
  var parent = len === 0 ? null : this.privateNameStack[len - 1];
44522
44616
  for (var i = 0; i < used.length; ++i) {
44523
44617
  var id = used[i];
44524
- if (!hasOwn(declared, id.name)) if (parent) parent.used.push(id);
44525
- else this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class");
44618
+ if (!hasOwn(declared, id.name)) {
44619
+ if (parent) parent.used.push(id);
44620
+ else this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class");
44621
+ }
44526
44622
  }
44527
44623
  };
44528
44624
  function isPrivateNameConflicted(privateNameMap, element) {
@@ -44544,10 +44640,12 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
44544
44640
  return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
44545
44641
  }
44546
44642
  pp$8.parseExportAllDeclaration = function(node, exports$4) {
44547
- if (this.options.ecmaVersion >= 11) if (this.eatContextual("as")) {
44548
- node.exported = this.parseModuleExportName();
44549
- this.checkExport(exports$4, node.exported, this.lastTokStart);
44550
- } else node.exported = null;
44643
+ if (this.options.ecmaVersion >= 11) {
44644
+ if (this.eatContextual("as")) {
44645
+ node.exported = this.parseModuleExportName();
44646
+ this.checkExport(exports$4, node.exported, this.lastTokStart);
44647
+ } else node.exported = null;
44648
+ }
44551
44649
  this.expectContextual("from");
44552
44650
  if (this.type !== types$1.string) this.unexpected();
44553
44651
  node.source = this.parseExprAtom();
@@ -45065,9 +45163,11 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45065
45163
  var kind = prop.kind;
45066
45164
  if (this.options.ecmaVersion >= 6) {
45067
45165
  if (name === "__proto__" && kind === "init") {
45068
- if (propHash.proto) if (refDestructuringErrors) {
45069
- if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;
45070
- } else this.raiseRecoverable(key.start, "Redefinition of __proto__ property");
45166
+ if (propHash.proto) {
45167
+ if (refDestructuringErrors) {
45168
+ if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;
45169
+ } else this.raiseRecoverable(key.start, "Redefinition of __proto__ property");
45170
+ }
45071
45171
  propHash.proto = true;
45072
45172
  }
45073
45173
  return;
@@ -45098,8 +45198,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45098
45198
  return expr;
45099
45199
  };
45100
45200
  pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
45101
- if (this.isContextual("yield")) if (this.inGenerator) return this.parseYield(forInit);
45102
- else this.exprAllowed = false;
45201
+ if (this.isContextual("yield")) {
45202
+ if (this.inGenerator) return this.parseYield(forInit);
45203
+ else this.exprAllowed = false;
45204
+ }
45103
45205
  var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;
45104
45206
  if (refDestructuringErrors) {
45105
45207
  oldParenAssign = refDestructuringErrors.parenthesizedAssign;
@@ -45215,9 +45317,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45215
45317
  expr = this.finishNode(node$1, "UpdateExpression");
45216
45318
  }
45217
45319
  }
45218
- if (!incDec && this.eat(types$1.starstar)) if (sawUnary) this.unexpected(this.lastTokStart);
45219
- else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false);
45220
- else return expr;
45320
+ if (!incDec && this.eat(types$1.starstar)) {
45321
+ if (sawUnary) this.unexpected(this.lastTokStart);
45322
+ else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false);
45323
+ } else return expr;
45221
45324
  };
45222
45325
  function isLocalVariableAccess(node) {
45223
45326
  return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
@@ -45403,17 +45506,18 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45403
45506
  pp$5.parseDynamicImport = function(node) {
45404
45507
  this.next();
45405
45508
  node.source = this.parseMaybeAssign();
45406
- if (this.options.ecmaVersion >= 16) if (!this.eat(types$1.parenR)) {
45407
- this.expect(types$1.comma);
45408
- if (!this.afterTrailingComma(types$1.parenR)) {
45409
- node.options = this.parseMaybeAssign();
45410
- if (!this.eat(types$1.parenR)) {
45411
- this.expect(types$1.comma);
45412
- if (!this.afterTrailingComma(types$1.parenR)) this.unexpected();
45413
- }
45509
+ if (this.options.ecmaVersion >= 16) {
45510
+ if (!this.eat(types$1.parenR)) {
45511
+ this.expect(types$1.comma);
45512
+ if (!this.afterTrailingComma(types$1.parenR)) {
45513
+ node.options = this.parseMaybeAssign();
45514
+ if (!this.eat(types$1.parenR)) {
45515
+ this.expect(types$1.comma);
45516
+ if (!this.afterTrailingComma(types$1.parenR)) this.unexpected();
45517
+ }
45518
+ } else node.options = null;
45414
45519
  } else node.options = null;
45415
- } else node.options = null;
45416
- else if (!this.eat(types$1.parenR)) {
45520
+ } else if (!this.eat(types$1.parenR)) {
45417
45521
  var errorPos = this.start;
45418
45522
  if (this.eat(types$1.comma) && this.eat(types$1.parenR)) this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
45419
45523
  else this.unexpected(errorPos);
@@ -45646,12 +45750,14 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45646
45750
  } else this.unexpected();
45647
45751
  };
45648
45752
  pp$5.parsePropertyName = function(prop) {
45649
- if (this.options.ecmaVersion >= 6) if (this.eat(types$1.bracketL)) {
45650
- prop.computed = true;
45651
- prop.key = this.parseMaybeAssign();
45652
- this.expect(types$1.bracketR);
45653
- return prop.key;
45654
- } else prop.computed = false;
45753
+ if (this.options.ecmaVersion >= 6) {
45754
+ if (this.eat(types$1.bracketL)) {
45755
+ prop.computed = true;
45756
+ prop.key = this.parseMaybeAssign();
45757
+ this.expect(types$1.bracketR);
45758
+ return prop.key;
45759
+ } else prop.computed = false;
45760
+ }
45655
45761
  return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
45656
45762
  };
45657
45763
  pp$5.initFunction = function(node) {
@@ -45786,8 +45892,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45786
45892
  else this.unexpected();
45787
45893
  this.next();
45788
45894
  this.finishNode(node, "PrivateIdentifier");
45789
- if (this.options.checkPrivateFields) if (this.privateNameStack.length === 0) this.raise(node.start, "Private field '#" + node.name + "' must be declared in an enclosing class");
45790
- else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
45895
+ if (this.options.checkPrivateFields) {
45896
+ if (this.privateNameStack.length === 0) this.raise(node.start, "Private field '#" + node.name + "' must be declared in an enclosing class");
45897
+ else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
45898
+ }
45791
45899
  return node;
45792
45900
  };
45793
45901
  pp$5.parseYield = function(forInit) {
@@ -46322,9 +46430,11 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
46322
46430
  if (!this.regexp_eatGroupName(state)) state.raise("Invalid group");
46323
46431
  var trackDisjunction = this.options.ecmaVersion >= 16;
46324
46432
  var known = state.groupNames[state.lastStringValue];
46325
- if (known) if (trackDisjunction) {
46326
- for (var i = 0, list = known; i < list.length; i += 1) if (!list[i].separatedFrom(state.branchID)) state.raise("Duplicate capture group name");
46327
- } else state.raise("Duplicate capture group name");
46433
+ if (known) {
46434
+ if (trackDisjunction) {
46435
+ for (var i = 0, list = known; i < list.length; i += 1) if (!list[i].separatedFrom(state.branchID)) state.raise("Duplicate capture group name");
46436
+ } else state.raise("Duplicate capture group name");
46437
+ }
46328
46438
  if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
46329
46439
  else state.groupNames[state.lastStringValue] = true;
46330
46440
  }
@@ -47338,12 +47448,14 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47338
47448
  if (this.pos >= this.input.length) this.raise(this.start, "Unterminated template");
47339
47449
  var ch = this.input.charCodeAt(this.pos);
47340
47450
  if (ch === 96 || ch === 36 && this.input.charCodeAt(this.pos + 1) === 123) {
47341
- if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate)) if (ch === 36) {
47342
- this.pos += 2;
47343
- return this.finishToken(types$1.dollarBraceL);
47344
- } else {
47345
- ++this.pos;
47346
- return this.finishToken(types$1.backQuote);
47451
+ if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate)) {
47452
+ if (ch === 36) {
47453
+ this.pos += 2;
47454
+ return this.finishToken(types$1.dollarBraceL);
47455
+ } else {
47456
+ ++this.pos;
47457
+ return this.finishToken(types$1.backQuote);
47458
+ }
47347
47459
  }
47348
47460
  out += this.input.slice(chunkStart, this.pos);
47349
47461
  return this.finishToken(types$1.template, out);
@@ -47683,14 +47795,15 @@ var require_acorn_jsx = /* @__PURE__ */ __commonJSMin(((exports, module) => {
47683
47795
  while (this.pos < this.input.length && count++ < 10) {
47684
47796
  ch = this.input[this.pos++];
47685
47797
  if (ch === ";") {
47686
- if (str[0] === "#") if (str[1] === "x") {
47687
- str = str.substr(2);
47688
- if (hexNumber.test(str)) entity = String.fromCharCode(parseInt(str, 16));
47689
- } else {
47690
- str = str.substr(1);
47691
- if (decimalNumber.test(str)) entity = String.fromCharCode(parseInt(str, 10));
47692
- }
47693
- else entity = XHTMLEntities[str];
47798
+ if (str[0] === "#") {
47799
+ if (str[1] === "x") {
47800
+ str = str.substr(2);
47801
+ if (hexNumber.test(str)) entity = String.fromCharCode(parseInt(str, 16));
47802
+ } else {
47803
+ str = str.substr(1);
47804
+ if (decimalNumber.test(str)) entity = String.fromCharCode(parseInt(str, 10));
47805
+ }
47806
+ } else entity = XHTMLEntities[str];
47694
47807
  break;
47695
47808
  }
47696
47809
  str += ch;
@@ -48049,29 +48162,31 @@ function eventsToAcorn(events, options) {
48049
48162
  exception = error;
48050
48163
  swallow = error.raisedAt >= prefix.length + source.length || error.message === "Unterminated comment";
48051
48164
  }
48052
- if (estree && options.expression && !isEmptyExpression) if (empty$1(value.slice(estree.end, value.length - suffix.length))) estree = {
48053
- type: "Program",
48054
- start: 0,
48055
- end: prefix.length + source.length,
48056
- body: [{
48057
- type: "ExpressionStatement",
48058
- expression: estree,
48165
+ if (estree && options.expression && !isEmptyExpression) {
48166
+ if (empty$1(value.slice(estree.end, value.length - suffix.length))) estree = {
48167
+ type: "Program",
48059
48168
  start: 0,
48060
- end: prefix.length + source.length
48061
- }],
48062
- sourceType: "module",
48063
- comments: []
48064
- };
48065
- else {
48066
- const point = parseOffsetToUnistPoint(estree.end);
48067
- const error = /* @__PURE__ */ new Error("Unexpected content after expression");
48068
- error.pos = point.offset;
48069
- error.loc = {
48070
- line: point.line,
48071
- column: point.column - 1
48169
+ end: prefix.length + source.length,
48170
+ body: [{
48171
+ type: "ExpressionStatement",
48172
+ expression: estree,
48173
+ start: 0,
48174
+ end: prefix.length + source.length
48175
+ }],
48176
+ sourceType: "module",
48177
+ comments: []
48072
48178
  };
48073
- exception = error;
48074
- estree = void 0;
48179
+ else {
48180
+ const point = parseOffsetToUnistPoint(estree.end);
48181
+ const error = /* @__PURE__ */ new Error("Unexpected content after expression");
48182
+ error.pos = point.offset;
48183
+ error.loc = {
48184
+ line: point.line,
48185
+ column: point.column - 1
48186
+ };
48187
+ exception = error;
48188
+ estree = void 0;
48189
+ }
48075
48190
  }
48076
48191
  if (estree) {
48077
48192
  estree.comments = comments;