@savvy-web/silk 3.10.5 → 3.10.6

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.
@@ -37945,7 +37945,7 @@ function readPackageVersion(dir) {
37945
37945
  }).pipe(effect.Effect.orElseSucceed(() => void 0));
37946
37946
  }
37947
37947
  //#endregion
37948
- //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.mjs
37948
+ //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.7/node_modules/fdir/dist/index.mjs
37949
37949
  var __require = /* @__PURE__ */ (0, module$1.createRequire)(require("url").pathToFileURL(__filename).href);
37950
37950
  function cleanPath(path$10) {
37951
37951
  let normalized = (0, path.normalize)(path$10);
@@ -38453,7 +38453,7 @@ var Builder = class {
38453
38453
  }
38454
38454
  };
38455
38455
  //#endregion
38456
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
38456
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js
38457
38457
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38458
38458
  const WIN_SLASH = "\\\\/";
38459
38459
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
@@ -38622,7 +38622,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38622
38622
  };
38623
38623
  }));
38624
38624
  //#endregion
38625
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
38625
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js
38626
38626
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
38627
38627
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
38628
38628
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -38670,7 +38670,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
38670
38670
  };
38671
38671
  }));
38672
38672
  //#endregion
38673
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
38673
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js
38674
38674
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38675
38675
  const utils = require_utils$1();
38676
38676
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
@@ -38699,7 +38699,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38699
38699
  const scan = (input, options) => {
38700
38700
  const opts = options || {};
38701
38701
  const length = input.length - 1;
38702
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
38702
+ const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
38703
38703
  const slashes = [];
38704
38704
  const tokens = [];
38705
38705
  const parts = [];
@@ -38802,14 +38802,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38802
38802
  finished = true;
38803
38803
  if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
38804
38804
  if (scanToEnd === true) {
38805
+ let parens = 0;
38805
38806
  while (eos() !== true && (code = advance())) {
38806
38807
  if (code === CHAR_BACKWARD_SLASH) {
38807
38808
  backslashes = token.backslashes = true;
38808
- code = advance();
38809
+ advance();
38810
+ continue;
38811
+ }
38812
+ if (code === CHAR_LEFT_PARENTHESES) {
38813
+ parens++;
38809
38814
  continue;
38810
38815
  }
38811
- if (code === CHAR_RIGHT_PARENTHESES) {
38812
- isGlob = token.isGlob = true;
38816
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
38813
38817
  finished = true;
38814
38818
  break;
38815
38819
  }
@@ -38857,13 +38861,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38857
38861
  if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
38858
38862
  isGlob = token.isGlob = true;
38859
38863
  if (scanToEnd === true) {
38864
+ let parens = 1;
38860
38865
  while (eos() !== true && (code = advance())) {
38861
- if (code === CHAR_LEFT_PARENTHESES) {
38866
+ if (code === CHAR_BACKWARD_SLASH) {
38862
38867
  backslashes = token.backslashes = true;
38863
- code = advance();
38868
+ advance();
38869
+ continue;
38870
+ }
38871
+ if (code === CHAR_LEFT_PARENTHESES) {
38872
+ parens++;
38864
38873
  continue;
38865
38874
  }
38866
- if (code === CHAR_RIGHT_PARENTHESES) {
38875
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
38867
38876
  finished = true;
38868
38877
  break;
38869
38878
  }
@@ -38926,7 +38935,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38926
38935
  if (opts.parts === true || opts.tokens === true) {
38927
38936
  let prevIndex;
38928
38937
  for (let idx = 0; idx < slashes.length; idx++) {
38929
- const n = prevIndex ? prevIndex + 1 : start;
38938
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
38930
38939
  const i = slashes[idx];
38931
38940
  const value = input.slice(n, i);
38932
38941
  if (opts.tokens) {
@@ -38937,18 +38946,19 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38937
38946
  depth(tokens[idx]);
38938
38947
  state.maxDepth += tokens[idx].depth;
38939
38948
  }
38940
- if (idx !== 0 || value !== "") parts.push(value);
38941
- prevIndex = i;
38942
- }
38943
- if (prevIndex && prevIndex + 1 < input.length) {
38944
- const value = input.slice(prevIndex + 1);
38945
- parts.push(value);
38946
- if (opts.tokens) {
38947
- tokens[tokens.length - 1].value = value;
38948
- depth(tokens[tokens.length - 1]);
38949
- state.maxDepth += tokens[tokens.length - 1].depth;
38949
+ if (i >= start) {
38950
+ parts.push(value);
38951
+ prevIndex = i;
38950
38952
  }
38951
38953
  }
38954
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
38955
+ const value = input.slice(n);
38956
+ parts.push(value);
38957
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
38958
+ tokens[tokens.length - 1].value = value;
38959
+ depth(tokens[tokens.length - 1]);
38960
+ state.maxDepth += tokens[tokens.length - 1].depth;
38961
+ }
38952
38962
  state.slashes = slashes;
38953
38963
  state.parts = parts;
38954
38964
  }
@@ -38957,7 +38967,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38957
38967
  module.exports = scan;
38958
38968
  }));
38959
38969
  //#endregion
38960
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
38970
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js
38961
38971
  var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38962
38972
  const constants = require_constants();
38963
38973
  const utils = require_utils$1();
@@ -39859,6 +39869,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39859
39869
  rest = rest.slice(3);
39860
39870
  consume("/**", 3);
39861
39871
  }
39872
+ const isEnd = eos() || state.parens > 0 && rest === ")".repeat(state.parens) && !extglobs.some((extglob) => extglob.type === "negate");
39862
39873
  if (prior.type === "bos" && eos()) {
39863
39874
  prev.type = "globstar";
39864
39875
  prev.value += value;
@@ -39868,7 +39879,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39868
39879
  consume(value);
39869
39880
  continue;
39870
39881
  }
39871
- if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
39882
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && isEnd) {
39872
39883
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
39873
39884
  prior.output = `(?:${prior.output}`;
39874
39885
  prev.type = "globstar";
@@ -40033,7 +40044,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40033
40044
  module.exports = parse;
40034
40045
  }));
40035
40046
  //#endregion
40036
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
40047
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js
40037
40048
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40038
40049
  const scan = require_scan();
40039
40050
  const parse = require_parse$1();
@@ -38350,7 +38350,7 @@ function readPackageVersion(dir) {
38350
38350
  }
38351
38351
 
38352
38352
  //#endregion
38353
- //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.mjs
38353
+ //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.7/node_modules/fdir/dist/index.mjs
38354
38354
  var __require = /* @__PURE__ */ createRequire$1(import.meta.url);
38355
38355
  function cleanPath(path) {
38356
38356
  let normalized = normalize$1(path);
@@ -38859,7 +38859,7 @@ var Builder = class {
38859
38859
  };
38860
38860
 
38861
38861
  //#endregion
38862
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
38862
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js
38863
38863
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38864
38864
  const WIN_SLASH = "\\\\/";
38865
38865
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
@@ -39033,7 +39033,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39033
39033
  }));
39034
39034
 
39035
39035
  //#endregion
39036
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
39036
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js
39037
39037
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
39038
39038
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
39039
39039
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -39082,7 +39082,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
39082
39082
  }));
39083
39083
 
39084
39084
  //#endregion
39085
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
39085
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js
39086
39086
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39087
39087
  const utils = require_utils$1();
39088
39088
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
@@ -39111,7 +39111,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39111
39111
  const scan = (input, options) => {
39112
39112
  const opts = options || {};
39113
39113
  const length = input.length - 1;
39114
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
39114
+ const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
39115
39115
  const slashes = [];
39116
39116
  const tokens = [];
39117
39117
  const parts = [];
@@ -39214,14 +39214,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39214
39214
  finished = true;
39215
39215
  if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
39216
39216
  if (scanToEnd === true) {
39217
+ let parens = 0;
39217
39218
  while (eos() !== true && (code = advance())) {
39218
39219
  if (code === CHAR_BACKWARD_SLASH) {
39219
39220
  backslashes = token.backslashes = true;
39220
- code = advance();
39221
+ advance();
39222
+ continue;
39223
+ }
39224
+ if (code === CHAR_LEFT_PARENTHESES) {
39225
+ parens++;
39221
39226
  continue;
39222
39227
  }
39223
- if (code === CHAR_RIGHT_PARENTHESES) {
39224
- isGlob = token.isGlob = true;
39228
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
39225
39229
  finished = true;
39226
39230
  break;
39227
39231
  }
@@ -39269,13 +39273,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39269
39273
  if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
39270
39274
  isGlob = token.isGlob = true;
39271
39275
  if (scanToEnd === true) {
39276
+ let parens = 1;
39272
39277
  while (eos() !== true && (code = advance())) {
39273
- if (code === CHAR_LEFT_PARENTHESES) {
39278
+ if (code === CHAR_BACKWARD_SLASH) {
39274
39279
  backslashes = token.backslashes = true;
39275
- code = advance();
39280
+ advance();
39281
+ continue;
39282
+ }
39283
+ if (code === CHAR_LEFT_PARENTHESES) {
39284
+ parens++;
39276
39285
  continue;
39277
39286
  }
39278
- if (code === CHAR_RIGHT_PARENTHESES) {
39287
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
39279
39288
  finished = true;
39280
39289
  break;
39281
39290
  }
@@ -39338,7 +39347,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39338
39347
  if (opts.parts === true || opts.tokens === true) {
39339
39348
  let prevIndex;
39340
39349
  for (let idx = 0; idx < slashes.length; idx++) {
39341
- const n = prevIndex ? prevIndex + 1 : start;
39350
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
39342
39351
  const i = slashes[idx];
39343
39352
  const value = input.slice(n, i);
39344
39353
  if (opts.tokens) {
@@ -39349,18 +39358,19 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39349
39358
  depth(tokens[idx]);
39350
39359
  state.maxDepth += tokens[idx].depth;
39351
39360
  }
39352
- if (idx !== 0 || value !== "") parts.push(value);
39353
- prevIndex = i;
39354
- }
39355
- if (prevIndex && prevIndex + 1 < input.length) {
39356
- const value = input.slice(prevIndex + 1);
39357
- parts.push(value);
39358
- if (opts.tokens) {
39359
- tokens[tokens.length - 1].value = value;
39360
- depth(tokens[tokens.length - 1]);
39361
- state.maxDepth += tokens[tokens.length - 1].depth;
39361
+ if (i >= start) {
39362
+ parts.push(value);
39363
+ prevIndex = i;
39362
39364
  }
39363
39365
  }
39366
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
39367
+ const value = input.slice(n);
39368
+ parts.push(value);
39369
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
39370
+ tokens[tokens.length - 1].value = value;
39371
+ depth(tokens[tokens.length - 1]);
39372
+ state.maxDepth += tokens[tokens.length - 1].depth;
39373
+ }
39364
39374
  state.slashes = slashes;
39365
39375
  state.parts = parts;
39366
39376
  }
@@ -39370,7 +39380,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39370
39380
  }));
39371
39381
 
39372
39382
  //#endregion
39373
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
39383
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js
39374
39384
  var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39375
39385
  const constants = require_constants();
39376
39386
  const utils = require_utils$1();
@@ -40272,6 +40282,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40272
40282
  rest = rest.slice(3);
40273
40283
  consume("/**", 3);
40274
40284
  }
40285
+ const isEnd = eos() || state.parens > 0 && rest === ")".repeat(state.parens) && !extglobs.some((extglob) => extglob.type === "negate");
40275
40286
  if (prior.type === "bos" && eos()) {
40276
40287
  prev.type = "globstar";
40277
40288
  prev.value += value;
@@ -40281,7 +40292,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40281
40292
  consume(value);
40282
40293
  continue;
40283
40294
  }
40284
- if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
40295
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && isEnd) {
40285
40296
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
40286
40297
  prior.output = `(?:${prior.output}`;
40287
40298
  prev.type = "globstar";
@@ -40447,7 +40458,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40447
40458
  }));
40448
40459
 
40449
40460
  //#endregion
40450
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
40461
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js
40451
40462
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40452
40463
  const scan = require_scan();
40453
40464
  const parse = require_parse$1();
@@ -40762,7 +40773,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40762
40773
  }));
40763
40774
 
40764
40775
  //#endregion
40765
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js
40776
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/index.js
40766
40777
  var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40767
40778
  const pico = require_picomatch$1();
40768
40779
  const utils = require_utils$1();
@@ -37949,7 +37949,7 @@ function readPackageVersion(dir) {
37949
37949
  }).pipe(effect.Effect.orElseSucceed(() => void 0));
37950
37950
  }
37951
37951
  //#endregion
37952
- //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.mjs
37952
+ //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.7/node_modules/fdir/dist/index.mjs
37953
37953
  var __require = /* @__PURE__ */ (0, module$1.createRequire)(require("url").pathToFileURL(__filename).href);
37954
37954
  function cleanPath(path$10) {
37955
37955
  let normalized = (0, path.normalize)(path$10);
@@ -38457,7 +38457,7 @@ var Builder = class {
38457
38457
  }
38458
38458
  };
38459
38459
  //#endregion
38460
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
38460
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js
38461
38461
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38462
38462
  const WIN_SLASH = "\\\\/";
38463
38463
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
@@ -38626,7 +38626,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38626
38626
  };
38627
38627
  }));
38628
38628
  //#endregion
38629
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
38629
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js
38630
38630
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
38631
38631
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
38632
38632
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -38674,7 +38674,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
38674
38674
  };
38675
38675
  }));
38676
38676
  //#endregion
38677
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
38677
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js
38678
38678
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38679
38679
  const utils = require_utils$1();
38680
38680
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
@@ -38703,7 +38703,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38703
38703
  const scan = (input, options) => {
38704
38704
  const opts = options || {};
38705
38705
  const length = input.length - 1;
38706
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
38706
+ const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
38707
38707
  const slashes = [];
38708
38708
  const tokens = [];
38709
38709
  const parts = [];
@@ -38806,14 +38806,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38806
38806
  finished = true;
38807
38807
  if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
38808
38808
  if (scanToEnd === true) {
38809
+ let parens = 0;
38809
38810
  while (eos() !== true && (code = advance())) {
38810
38811
  if (code === CHAR_BACKWARD_SLASH) {
38811
38812
  backslashes = token.backslashes = true;
38812
- code = advance();
38813
+ advance();
38814
+ continue;
38815
+ }
38816
+ if (code === CHAR_LEFT_PARENTHESES) {
38817
+ parens++;
38813
38818
  continue;
38814
38819
  }
38815
- if (code === CHAR_RIGHT_PARENTHESES) {
38816
- isGlob = token.isGlob = true;
38820
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
38817
38821
  finished = true;
38818
38822
  break;
38819
38823
  }
@@ -38861,13 +38865,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38861
38865
  if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
38862
38866
  isGlob = token.isGlob = true;
38863
38867
  if (scanToEnd === true) {
38868
+ let parens = 1;
38864
38869
  while (eos() !== true && (code = advance())) {
38865
- if (code === CHAR_LEFT_PARENTHESES) {
38870
+ if (code === CHAR_BACKWARD_SLASH) {
38866
38871
  backslashes = token.backslashes = true;
38867
- code = advance();
38872
+ advance();
38873
+ continue;
38874
+ }
38875
+ if (code === CHAR_LEFT_PARENTHESES) {
38876
+ parens++;
38868
38877
  continue;
38869
38878
  }
38870
- if (code === CHAR_RIGHT_PARENTHESES) {
38879
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
38871
38880
  finished = true;
38872
38881
  break;
38873
38882
  }
@@ -38930,7 +38939,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38930
38939
  if (opts.parts === true || opts.tokens === true) {
38931
38940
  let prevIndex;
38932
38941
  for (let idx = 0; idx < slashes.length; idx++) {
38933
- const n = prevIndex ? prevIndex + 1 : start;
38942
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
38934
38943
  const i = slashes[idx];
38935
38944
  const value = input.slice(n, i);
38936
38945
  if (opts.tokens) {
@@ -38941,18 +38950,19 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38941
38950
  depth(tokens[idx]);
38942
38951
  state.maxDepth += tokens[idx].depth;
38943
38952
  }
38944
- if (idx !== 0 || value !== "") parts.push(value);
38945
- prevIndex = i;
38946
- }
38947
- if (prevIndex && prevIndex + 1 < input.length) {
38948
- const value = input.slice(prevIndex + 1);
38949
- parts.push(value);
38950
- if (opts.tokens) {
38951
- tokens[tokens.length - 1].value = value;
38952
- depth(tokens[tokens.length - 1]);
38953
- state.maxDepth += tokens[tokens.length - 1].depth;
38953
+ if (i >= start) {
38954
+ parts.push(value);
38955
+ prevIndex = i;
38954
38956
  }
38955
38957
  }
38958
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
38959
+ const value = input.slice(n);
38960
+ parts.push(value);
38961
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
38962
+ tokens[tokens.length - 1].value = value;
38963
+ depth(tokens[tokens.length - 1]);
38964
+ state.maxDepth += tokens[tokens.length - 1].depth;
38965
+ }
38956
38966
  state.slashes = slashes;
38957
38967
  state.parts = parts;
38958
38968
  }
@@ -38961,7 +38971,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38961
38971
  module.exports = scan;
38962
38972
  }));
38963
38973
  //#endregion
38964
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
38974
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js
38965
38975
  var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38966
38976
  const constants = require_constants();
38967
38977
  const utils = require_utils$1();
@@ -39863,6 +39873,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39863
39873
  rest = rest.slice(3);
39864
39874
  consume("/**", 3);
39865
39875
  }
39876
+ const isEnd = eos() || state.parens > 0 && rest === ")".repeat(state.parens) && !extglobs.some((extglob) => extglob.type === "negate");
39866
39877
  if (prior.type === "bos" && eos()) {
39867
39878
  prev.type = "globstar";
39868
39879
  prev.value += value;
@@ -39872,7 +39883,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39872
39883
  consume(value);
39873
39884
  continue;
39874
39885
  }
39875
- if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
39886
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && isEnd) {
39876
39887
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
39877
39888
  prior.output = `(?:${prior.output}`;
39878
39889
  prev.type = "globstar";
@@ -40037,7 +40048,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40037
40048
  module.exports = parse;
40038
40049
  }));
40039
40050
  //#endregion
40040
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
40051
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js
40041
40052
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40042
40053
  const scan = require_scan();
40043
40054
  const parse = require_parse$1();
@@ -38350,7 +38350,7 @@ function readPackageVersion(dir) {
38350
38350
  }
38351
38351
 
38352
38352
  //#endregion
38353
- //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.5/node_modules/fdir/dist/index.mjs
38353
+ //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.7/node_modules/fdir/dist/index.mjs
38354
38354
  var __require = /* @__PURE__ */ createRequire$1(import.meta.url);
38355
38355
  function cleanPath(path) {
38356
38356
  let normalized = normalize$1(path);
@@ -38859,7 +38859,7 @@ var Builder = class {
38859
38859
  };
38860
38860
 
38861
38861
  //#endregion
38862
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
38862
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js
38863
38863
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38864
38864
  const WIN_SLASH = "\\\\/";
38865
38865
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
@@ -39033,7 +39033,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39033
39033
  }));
39034
39034
 
39035
39035
  //#endregion
39036
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
39036
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js
39037
39037
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
39038
39038
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
39039
39039
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -39082,7 +39082,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
39082
39082
  }));
39083
39083
 
39084
39084
  //#endregion
39085
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
39085
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js
39086
39086
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39087
39087
  const utils = require_utils$1();
39088
39088
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
@@ -39111,7 +39111,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39111
39111
  const scan = (input, options) => {
39112
39112
  const opts = options || {};
39113
39113
  const length = input.length - 1;
39114
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
39114
+ const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
39115
39115
  const slashes = [];
39116
39116
  const tokens = [];
39117
39117
  const parts = [];
@@ -39214,14 +39214,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39214
39214
  finished = true;
39215
39215
  if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
39216
39216
  if (scanToEnd === true) {
39217
+ let parens = 0;
39217
39218
  while (eos() !== true && (code = advance())) {
39218
39219
  if (code === CHAR_BACKWARD_SLASH) {
39219
39220
  backslashes = token.backslashes = true;
39220
- code = advance();
39221
+ advance();
39222
+ continue;
39223
+ }
39224
+ if (code === CHAR_LEFT_PARENTHESES) {
39225
+ parens++;
39221
39226
  continue;
39222
39227
  }
39223
- if (code === CHAR_RIGHT_PARENTHESES) {
39224
- isGlob = token.isGlob = true;
39228
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
39225
39229
  finished = true;
39226
39230
  break;
39227
39231
  }
@@ -39269,13 +39273,18 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39269
39273
  if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
39270
39274
  isGlob = token.isGlob = true;
39271
39275
  if (scanToEnd === true) {
39276
+ let parens = 1;
39272
39277
  while (eos() !== true && (code = advance())) {
39273
- if (code === CHAR_LEFT_PARENTHESES) {
39278
+ if (code === CHAR_BACKWARD_SLASH) {
39274
39279
  backslashes = token.backslashes = true;
39275
- code = advance();
39280
+ advance();
39281
+ continue;
39282
+ }
39283
+ if (code === CHAR_LEFT_PARENTHESES) {
39284
+ parens++;
39276
39285
  continue;
39277
39286
  }
39278
- if (code === CHAR_RIGHT_PARENTHESES) {
39287
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
39279
39288
  finished = true;
39280
39289
  break;
39281
39290
  }
@@ -39338,7 +39347,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39338
39347
  if (opts.parts === true || opts.tokens === true) {
39339
39348
  let prevIndex;
39340
39349
  for (let idx = 0; idx < slashes.length; idx++) {
39341
- const n = prevIndex ? prevIndex + 1 : start;
39350
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
39342
39351
  const i = slashes[idx];
39343
39352
  const value = input.slice(n, i);
39344
39353
  if (opts.tokens) {
@@ -39349,18 +39358,19 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39349
39358
  depth(tokens[idx]);
39350
39359
  state.maxDepth += tokens[idx].depth;
39351
39360
  }
39352
- if (idx !== 0 || value !== "") parts.push(value);
39353
- prevIndex = i;
39354
- }
39355
- if (prevIndex && prevIndex + 1 < input.length) {
39356
- const value = input.slice(prevIndex + 1);
39357
- parts.push(value);
39358
- if (opts.tokens) {
39359
- tokens[tokens.length - 1].value = value;
39360
- depth(tokens[tokens.length - 1]);
39361
- state.maxDepth += tokens[tokens.length - 1].depth;
39361
+ if (i >= start) {
39362
+ parts.push(value);
39363
+ prevIndex = i;
39362
39364
  }
39363
39365
  }
39366
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
39367
+ const value = input.slice(n);
39368
+ parts.push(value);
39369
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
39370
+ tokens[tokens.length - 1].value = value;
39371
+ depth(tokens[tokens.length - 1]);
39372
+ state.maxDepth += tokens[tokens.length - 1].depth;
39373
+ }
39364
39374
  state.slashes = slashes;
39365
39375
  state.parts = parts;
39366
39376
  }
@@ -39370,7 +39380,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39370
39380
  }));
39371
39381
 
39372
39382
  //#endregion
39373
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
39383
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js
39374
39384
  var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39375
39385
  const constants = require_constants();
39376
39386
  const utils = require_utils$1();
@@ -40272,6 +40282,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40272
40282
  rest = rest.slice(3);
40273
40283
  consume("/**", 3);
40274
40284
  }
40285
+ const isEnd = eos() || state.parens > 0 && rest === ")".repeat(state.parens) && !extglobs.some((extglob) => extglob.type === "negate");
40275
40286
  if (prior.type === "bos" && eos()) {
40276
40287
  prev.type = "globstar";
40277
40288
  prev.value += value;
@@ -40281,7 +40292,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40281
40292
  consume(value);
40282
40293
  continue;
40283
40294
  }
40284
- if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
40295
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && isEnd) {
40285
40296
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
40286
40297
  prior.output = `(?:${prior.output}`;
40287
40298
  prev.type = "globstar";
@@ -40447,7 +40458,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40447
40458
  }));
40448
40459
 
40449
40460
  //#endregion
40450
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
40461
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js
40451
40462
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40452
40463
  const scan = require_scan();
40453
40464
  const parse = require_parse$1();
@@ -40762,7 +40773,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40762
40773
  }));
40763
40774
 
40764
40775
  //#endregion
40765
- //#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js
40776
+ //#region ../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/index.js
40766
40777
  var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40767
40778
  const pico = require_picomatch$1();
40768
40779
  const utils = require_utils$1();