@shopify/create-app 3.93.1 → 3.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  require_src,
3
3
  require_supports_color
4
- } from "./chunk-SR2M4BGN.js";
4
+ } from "./chunk-CXPWSYGC.js";
5
5
  import {
6
6
  require_is_wsl
7
7
  } from "./chunk-G2ZZKGSV.js";
@@ -167727,71 +167727,85 @@ var require_os = __commonJS({
167727
167727
  }
167728
167728
  });
167729
167729
 
167730
- // ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
167731
- var require_balanced_match = __commonJS({
167732
- "../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js"(exports, module) {
167730
+ // ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js
167731
+ var require_commonjs = __commonJS({
167732
+ "../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/commonjs/index.js"(exports) {
167733
167733
  "use strict";
167734
167734
  init_cjs_shims();
167735
- module.exports = balanced;
167736
- function balanced(a, b, str) {
167737
- a instanceof RegExp && (a = maybeMatch(a, str)), b instanceof RegExp && (b = maybeMatch(b, str));
167738
- var r = range(a, b, str);
167735
+ Object.defineProperty(exports, "__esModule", { value: !0 });
167736
+ exports.range = exports.balanced = void 0;
167737
+ var balanced = (a, b, str) => {
167738
+ let ma = a instanceof RegExp ? maybeMatch(a, str) : a, mb = b instanceof RegExp ? maybeMatch(b, str) : b, r = ma !== null && mb != null && (0, exports.range)(ma, mb, str);
167739
167739
  return r && {
167740
167740
  start: r[0],
167741
167741
  end: r[1],
167742
167742
  pre: str.slice(0, r[0]),
167743
- body: str.slice(r[0] + a.length, r[1]),
167744
- post: str.slice(r[1] + b.length)
167743
+ body: str.slice(r[0] + ma.length, r[1]),
167744
+ post: str.slice(r[1] + mb.length)
167745
167745
  };
167746
- }
167747
- function maybeMatch(reg, str) {
167748
- var m = str.match(reg);
167746
+ };
167747
+ exports.balanced = balanced;
167748
+ var maybeMatch = (reg, str) => {
167749
+ let m = str.match(reg);
167749
167750
  return m ? m[0] : null;
167750
- }
167751
- balanced.range = range;
167752
- function range(a, b, str) {
167753
- var begs, beg, left, right, result, ai = str.indexOf(a), bi = str.indexOf(b, ai + 1), i = ai;
167751
+ }, range = (a, b, str) => {
167752
+ let begs, beg, left, right, result, ai = str.indexOf(a), bi = str.indexOf(b, ai + 1), i = ai;
167754
167753
  if (ai >= 0 && bi > 0) {
167755
167754
  if (a === b)
167756
167755
  return [ai, bi];
167757
- for (begs = [], left = str.length; i >= 0 && !result; )
167758
- i == ai ? (begs.push(i), ai = str.indexOf(a, i + 1)) : begs.length == 1 ? result = [begs.pop(), bi] : (beg = begs.pop(), beg < left && (left = beg, right = bi), bi = str.indexOf(b, i + 1)), i = ai < bi && ai >= 0 ? ai : bi;
167759
- begs.length && (result = [left, right]);
167756
+ for (begs = [], left = str.length; i >= 0 && !result; ) {
167757
+ if (i === ai)
167758
+ begs.push(i), ai = str.indexOf(a, i + 1);
167759
+ else if (begs.length === 1) {
167760
+ let r = begs.pop();
167761
+ r !== void 0 && (result = [r, bi]);
167762
+ } else
167763
+ beg = begs.pop(), beg !== void 0 && beg < left && (left = beg, right = bi), bi = str.indexOf(b, i + 1);
167764
+ i = ai < bi && ai >= 0 ? ai : bi;
167765
+ }
167766
+ begs.length && right !== void 0 && (result = [left, right]);
167760
167767
  }
167761
167768
  return result;
167762
- }
167769
+ };
167770
+ exports.range = range;
167763
167771
  }
167764
167772
  });
167765
167773
 
167766
- // ../../node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js
167767
- var require_brace_expansion = __commonJS({
167768
- "../../node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js"(exports, module) {
167774
+ // ../../node_modules/.pnpm/brace-expansion@5.0.3/node_modules/brace-expansion/dist/commonjs/index.js
167775
+ var require_commonjs2 = __commonJS({
167776
+ "../../node_modules/.pnpm/brace-expansion@5.0.3/node_modules/brace-expansion/dist/commonjs/index.js"(exports) {
167777
+ "use strict";
167769
167778
  init_cjs_shims();
167770
- var balanced = require_balanced_match();
167771
- module.exports = expandTop;
167772
- var escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0";
167779
+ Object.defineProperty(exports, "__esModule", { value: !0 });
167780
+ exports.EXPANSION_MAX = void 0;
167781
+ exports.expand = expand;
167782
+ var balanced_match_1 = require_commonjs(), escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0", escSlashPattern = new RegExp(escSlash, "g"), escOpenPattern = new RegExp(escOpen, "g"), escClosePattern = new RegExp(escClose, "g"), escCommaPattern = new RegExp(escComma, "g"), escPeriodPattern = new RegExp(escPeriod, "g"), slashPattern = /\\\\/g, openPattern = /\\{/g, closePattern = /\\}/g, commaPattern = /\\,/g, periodPattern = /\\./g;
167783
+ exports.EXPANSION_MAX = 1e5;
167773
167784
  function numeric(str) {
167774
- return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
167785
+ return isNaN(str) ? str.charCodeAt(0) : parseInt(str, 10);
167775
167786
  }
167776
167787
  function escapeBraces(str) {
167777
- return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
167788
+ return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
167778
167789
  }
167779
167790
  function unescapeBraces(str) {
167780
- return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
167791
+ return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
167781
167792
  }
167782
167793
  function parseCommaParts(str) {
167783
167794
  if (!str)
167784
167795
  return [""];
167785
- var parts = [], m = balanced("{", "}", str);
167796
+ let parts = [], m = (0, balanced_match_1.balanced)("{", "}", str);
167786
167797
  if (!m)
167787
167798
  return str.split(",");
167788
- var pre = m.pre, body = m.body, post = m.post, p = pre.split(",");
167799
+ let { pre, body, post } = m, p = pre.split(",");
167789
167800
  p[p.length - 1] += "{" + body + "}";
167790
- var postParts = parseCommaParts(post);
167801
+ let postParts = parseCommaParts(post);
167791
167802
  return post.length && (p[p.length - 1] += postParts.shift(), p.push.apply(p, postParts)), parts.push.apply(parts, p), parts;
167792
167803
  }
167793
- function expandTop(str) {
167794
- return str ? (str.substr(0, 2) === "{}" && (str = "\\{\\}" + str.substr(2)), expand(escapeBraces(str), !0).map(unescapeBraces)) : [];
167804
+ function expand(str, options = {}) {
167805
+ if (!str)
167806
+ return [];
167807
+ let { max = exports.EXPANSION_MAX } = options;
167808
+ return str.slice(0, 2) === "{}" && (str = "\\{\\}" + str.slice(2)), expand_(escapeBraces(str), max, !0).map(unescapeBraces);
167795
167809
  }
167796
167810
  function embrace(str) {
167797
167811
  return "{" + str + "}";
@@ -167805,40 +167819,39 @@ var require_brace_expansion = __commonJS({
167805
167819
  function gte(i, y) {
167806
167820
  return i >= y;
167807
167821
  }
167808
- function expand(str, isTop) {
167809
- var expansions = [], m = balanced("{", "}", str);
167810
- if (!m) return [str];
167811
- var pre = m.pre, post = m.post.length ? expand(m.post, !1) : [""];
167822
+ function expand_(str, max, isTop) {
167823
+ let expansions = [], m = (0, balanced_match_1.balanced)("{", "}", str);
167824
+ if (!m)
167825
+ return [str];
167826
+ let pre = m.pre, post = m.post.length ? expand_(m.post, max, !1) : [""];
167812
167827
  if (/\$$/.test(m.pre))
167813
- for (var k = 0; k < post.length; k++) {
167814
- var expansion = pre + "{" + m.body + "}" + post[k];
167828
+ for (let k = 0; k < post.length && k < max; k++) {
167829
+ let expansion = pre + "{" + m.body + "}" + post[k];
167815
167830
  expansions.push(expansion);
167816
167831
  }
167817
167832
  else {
167818
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
167833
+ let isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
167819
167834
  if (!isSequence && !isOptions)
167820
- return m.post.match(/,(?!,).*\}/) ? (str = m.pre + "{" + m.body + escClose + m.post, expand(str)) : [str];
167821
- var n;
167835
+ return m.post.match(/,(?!,).*\}/) ? (str = m.pre + "{" + m.body + escClose + m.post, expand_(str, max, !0)) : [str];
167836
+ let n;
167822
167837
  if (isSequence)
167823
167838
  n = m.body.split(/\.\./);
167824
- else if (n = parseCommaParts(m.body), n.length === 1 && (n = expand(n[0], !1).map(embrace), n.length === 1))
167825
- return post.map(function(p) {
167826
- return m.pre + n[0] + p;
167827
- });
167828
- var N;
167829
- if (isSequence) {
167830
- var x = numeric(n[0]), y = numeric(n[1]), width = Math.max(n[0].length, n[1].length), incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1, test = lte, reverse = y < x;
167831
- reverse && (incr *= -1, test = gte);
167832
- var pad = n.some(isPadded);
167839
+ else if (n = parseCommaParts(m.body), n.length === 1 && n[0] !== void 0 && (n = expand_(n[0], max, !1).map(embrace), n.length === 1))
167840
+ return post.map((p) => m.pre + n[0] + p);
167841
+ let N;
167842
+ if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
167843
+ let x = numeric(n[0]), y = numeric(n[1]), width = Math.max(n[0].length, n[1].length), incr = n.length === 3 && n[2] !== void 0 ? Math.abs(numeric(n[2])) : 1, test = lte;
167844
+ y < x && (incr *= -1, test = gte);
167845
+ let pad = n.some(isPadded);
167833
167846
  N = [];
167834
- for (var i = x; test(i, y); i += incr) {
167835
- var c;
167847
+ for (let i = x; test(i, y); i += incr) {
167848
+ let c;
167836
167849
  if (isAlphaSequence)
167837
167850
  c = String.fromCharCode(i), c === "\\" && (c = "");
167838
167851
  else if (c = String(i), pad) {
167839
- var need = width - c.length;
167852
+ let need = width - c.length;
167840
167853
  if (need > 0) {
167841
- var z = new Array(need + 1).join("0");
167854
+ let z = new Array(need + 1).join("0");
167842
167855
  i < 0 ? c = "-" + z + c.slice(1) : c = z + c;
167843
167856
  }
167844
167857
  }
@@ -167846,12 +167859,12 @@ var require_brace_expansion = __commonJS({
167846
167859
  }
167847
167860
  } else {
167848
167861
  N = [];
167849
- for (var j = 0; j < n.length; j++)
167850
- N.push.apply(N, expand(n[j], !1));
167862
+ for (let j = 0; j < n.length; j++)
167863
+ N.push.apply(N, expand_(n[j], max, !1));
167851
167864
  }
167852
- for (var j = 0; j < N.length; j++)
167853
- for (var k = 0; k < post.length; k++) {
167854
- var expansion = pre + N[j] + post[k];
167865
+ for (let j = 0; j < N.length; j++)
167866
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
167867
+ let expansion = pre + N[j] + post[k];
167855
167868
  (!isTop || isSequence || expansion) && expansions.push(expansion);
167856
167869
  }
167857
167870
  }
@@ -167860,9 +167873,9 @@ var require_brace_expansion = __commonJS({
167860
167873
  }
167861
167874
  });
167862
167875
 
167863
- // ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
167876
+ // ../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js
167864
167877
  var require_assert_valid_pattern = __commonJS({
167865
- "../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports) {
167878
+ "../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js"(exports) {
167866
167879
  "use strict";
167867
167880
  init_cjs_shims();
167868
167881
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -167877,9 +167890,9 @@ var require_assert_valid_pattern = __commonJS({
167877
167890
  }
167878
167891
  });
167879
167892
 
167880
- // ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/brace-expressions.js
167893
+ // ../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/brace-expressions.js
167881
167894
  var require_brace_expressions = __commonJS({
167882
- "../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports) {
167895
+ "../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/brace-expressions.js"(exports) {
167883
167896
  "use strict";
167884
167897
  init_cjs_shims();
167885
167898
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -167956,9 +167969,9 @@ var require_brace_expressions = __commonJS({
167956
167969
  }
167957
167970
  });
167958
167971
 
167959
- // ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/unescape.js
167972
+ // ../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/unescape.js
167960
167973
  var require_unescape = __commonJS({
167961
- "../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/unescape.js"(exports) {
167974
+ "../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/unescape.js"(exports) {
167962
167975
  "use strict";
167963
167976
  init_cjs_shims();
167964
167977
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -167968,14 +167981,36 @@ var require_unescape = __commonJS({
167968
167981
  }
167969
167982
  });
167970
167983
 
167971
- // ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/ast.js
167984
+ // ../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/ast.js
167972
167985
  var require_ast = __commonJS({
167973
- "../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/ast.js"(exports) {
167986
+ "../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/ast.js"(exports) {
167974
167987
  "use strict";
167975
167988
  init_cjs_shims();
167989
+ var _a;
167976
167990
  Object.defineProperty(exports, "__esModule", { value: !0 });
167977
167991
  exports.AST = void 0;
167978
- var brace_expressions_js_1 = require_brace_expressions(), unescape_js_1 = require_unescape(), types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType = (c) => types.has(c), startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))", startNoDot = "(?!\\.)", addPatternStart = /* @__PURE__ */ new Set(["[", "."]), justDots = /* @__PURE__ */ new Set(["..", "."]), reSpecials = new Set("().*{}+?[]^$\\!"), regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), qmark = "[^/]", star = qmark + "*?", starNoEmpty = qmark + "+?", AST = class _AST {
167992
+ var brace_expressions_js_1 = require_brace_expressions(), unescape_js_1 = require_unescape(), types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType = (c) => types.has(c), isExtglobAST = (c) => isExtglobType(c.type), adoptionMap = /* @__PURE__ */ new Map([
167993
+ ["!", ["@"]],
167994
+ ["?", ["?", "@"]],
167995
+ ["@", ["@"]],
167996
+ ["*", ["*", "+", "?", "@"]],
167997
+ ["+", ["+", "@"]]
167998
+ ]), adoptionWithSpaceMap = /* @__PURE__ */ new Map([
167999
+ ["!", ["?"]],
168000
+ ["@", ["?"]],
168001
+ ["+", ["?", "*"]]
168002
+ ]), adoptionAnyMap = /* @__PURE__ */ new Map([
168003
+ ["!", ["?", "@"]],
168004
+ ["?", ["?", "@"]],
168005
+ ["@", ["?", "@"]],
168006
+ ["*", ["*", "+", "?", "@"]],
168007
+ ["+", ["+", "@", "?", "*"]]
168008
+ ]), usurpMap = /* @__PURE__ */ new Map([
168009
+ ["!", /* @__PURE__ */ new Map([["!", "@"]])],
168010
+ ["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
168011
+ ["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
168012
+ ["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
168013
+ ]), startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))", startNoDot = "(?!\\.)", addPatternStart = /* @__PURE__ */ new Set(["[", "."]), justDots = /* @__PURE__ */ new Set(["..", "."]), reSpecials = new Set("().*{}+?[]^$\\!"), regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), qmark = "[^/]", star = qmark + "*?", starNoEmpty = qmark + "+?", AST = class {
167979
168014
  type;
167980
168015
  #root;
167981
168016
  #hasMagic;
@@ -168031,7 +168066,7 @@ var require_ast = __commonJS({
168031
168066
  push(...parts) {
168032
168067
  for (let p of parts)
168033
168068
  if (p !== "") {
168034
- if (typeof p != "string" && !(p instanceof _AST && p.#parent === this))
168069
+ if (typeof p != "string" && !(p instanceof _a && p.#parent === this))
168035
168070
  throw new Error("invalid part: " + p);
168036
168071
  this.#parts.push(p);
168037
168072
  }
@@ -168050,7 +168085,7 @@ var require_ast = __commonJS({
168050
168085
  let p = this.#parent;
168051
168086
  for (let i = 0; i < this.#parentIndex; i++) {
168052
168087
  let pp = p.#parts[i];
168053
- if (!(pp instanceof _AST && pp.type === "!"))
168088
+ if (!(pp instanceof _a && pp.type === "!"))
168054
168089
  return !1;
168055
168090
  }
168056
168091
  return !0;
@@ -168069,13 +168104,13 @@ var require_ast = __commonJS({
168069
168104
  typeof part == "string" ? this.push(part) : this.push(part.clone(this));
168070
168105
  }
168071
168106
  clone(parent) {
168072
- let c = new _AST(this.type, parent);
168107
+ let c = new _a(this.type, parent);
168073
168108
  for (let p of this.#parts)
168074
168109
  c.copyIn(p);
168075
168110
  return c;
168076
168111
  }
168077
- static #parseAST(str, ast, pos, opt) {
168078
- let escaping = !1, inBrace = !1, braceStart = -1, braceNeg = !1;
168112
+ static #parseAST(str, ast, pos, opt, extDepth) {
168113
+ let maxDepth = opt.maxExtglobRecursion ?? 2, escaping = !1, inBrace = !1, braceStart = -1, braceNeg = !1;
168079
168114
  if (ast.type === null) {
168080
168115
  let i2 = pos, acc2 = "";
168081
168116
  for (; i2 < str.length; ) {
@@ -168091,17 +168126,17 @@ var require_ast = __commonJS({
168091
168126
  inBrace = !0, braceStart = i2, braceNeg = !1, acc2 += c;
168092
168127
  continue;
168093
168128
  }
168094
- if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(") {
168129
+ if (!opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth) {
168095
168130
  ast.push(acc2), acc2 = "";
168096
- let ext = new _AST(c, ast);
168097
- i2 = _AST.#parseAST(str, ext, i2, opt), ast.push(ext);
168131
+ let ext = new _a(c, ast);
168132
+ i2 = _a.#parseAST(str, ext, i2, opt, extDepth + 1), ast.push(ext);
168098
168133
  continue;
168099
168134
  }
168100
168135
  acc2 += c;
168101
168136
  }
168102
168137
  return ast.push(acc2), i2;
168103
168138
  }
168104
- let i = pos + 1, part = new _AST(null, ast), parts = [], acc = "";
168139
+ let i = pos + 1, part = new _a(null, ast), parts = [], acc = "";
168105
168140
  for (; i < str.length; ) {
168106
168141
  let c = str.charAt(i++);
168107
168142
  if (escaping || c === "\\") {
@@ -168115,14 +168150,16 @@ var require_ast = __commonJS({
168115
168150
  inBrace = !0, braceStart = i, braceNeg = !1, acc += c;
168116
168151
  continue;
168117
168152
  }
168118
- if (isExtglobType(c) && str.charAt(i) === "(") {
168153
+ if (isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
168154
+ (extDepth <= maxDepth || ast && ast.#canAdoptType(c))) {
168155
+ let depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
168119
168156
  part.push(acc), acc = "";
168120
- let ext = new _AST(c, part);
168121
- part.push(ext), i = _AST.#parseAST(str, ext, i, opt);
168157
+ let ext = new _a(c, part);
168158
+ part.push(ext), i = _a.#parseAST(str, ext, i, opt, extDepth + depthAdd);
168122
168159
  continue;
168123
168160
  }
168124
168161
  if (c === "|") {
168125
- part.push(acc), acc = "", parts.push(part), part = new _AST(null, ast);
168162
+ part.push(acc), acc = "", parts.push(part), part = new _a(null, ast);
168126
168163
  continue;
168127
168164
  }
168128
168165
  if (c === ")")
@@ -168131,9 +168168,65 @@ var require_ast = __commonJS({
168131
168168
  }
168132
168169
  return ast.type = null, ast.#hasMagic = void 0, ast.#parts = [str.substring(pos - 1)], i;
168133
168170
  }
168171
+ #canAdoptWithSpace(child) {
168172
+ return this.#canAdopt(child, adoptionWithSpaceMap);
168173
+ }
168174
+ #canAdopt(child, map = adoptionMap) {
168175
+ if (!child || typeof child != "object" || child.type !== null || child.#parts.length !== 1 || this.type === null)
168176
+ return !1;
168177
+ let gc = child.#parts[0];
168178
+ return !gc || typeof gc != "object" || gc.type === null ? !1 : this.#canAdoptType(gc.type, map);
168179
+ }
168180
+ #canAdoptType(c, map = adoptionAnyMap) {
168181
+ return !!map.get(this.type)?.includes(c);
168182
+ }
168183
+ #adoptWithSpace(child, index) {
168184
+ let gc = child.#parts[0], blank = new _a(null, gc, this.options);
168185
+ blank.#parts.push(""), gc.push(blank), this.#adopt(child, index);
168186
+ }
168187
+ #adopt(child, index) {
168188
+ let gc = child.#parts[0];
168189
+ this.#parts.splice(index, 1, ...gc.#parts);
168190
+ for (let p of gc.#parts)
168191
+ typeof p == "object" && (p.#parent = this);
168192
+ this.#toString = void 0;
168193
+ }
168194
+ #canUsurpType(c) {
168195
+ return !!usurpMap.get(this.type)?.has(c);
168196
+ }
168197
+ #canUsurp(child) {
168198
+ if (!child || typeof child != "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1)
168199
+ return !1;
168200
+ let gc = child.#parts[0];
168201
+ return !gc || typeof gc != "object" || gc.type === null ? !1 : this.#canUsurpType(gc.type);
168202
+ }
168203
+ #usurp(child) {
168204
+ let m = usurpMap.get(this.type), gc = child.#parts[0], nt = m?.get(gc.type);
168205
+ if (!nt)
168206
+ return !1;
168207
+ this.#parts = gc.#parts;
168208
+ for (let p of this.#parts)
168209
+ typeof p == "object" && (p.#parent = this);
168210
+ this.type = nt, this.#toString = void 0, this.#emptyExt = !1;
168211
+ }
168212
+ #flatten() {
168213
+ if (isExtglobAST(this)) {
168214
+ let iterations = 0, done = !1;
168215
+ do {
168216
+ done = !0;
168217
+ for (let i = 0; i < this.#parts.length; i++) {
168218
+ let c = this.#parts[i];
168219
+ typeof c == "object" && (c.#flatten(), this.#canAdopt(c) ? (done = !1, this.#adopt(c, i)) : this.#canAdoptWithSpace(c) ? (done = !1, this.#adoptWithSpace(c, i)) : this.#canUsurp(c) && (done = !1, this.#usurp(c)));
168220
+ }
168221
+ } while (!done && ++iterations < 10);
168222
+ } else
168223
+ for (let p of this.#parts)
168224
+ typeof p == "object" && p.#flatten();
168225
+ this.#toString = void 0;
168226
+ }
168134
168227
  static fromGlob(pattern, options = {}) {
168135
- let ast = new _AST(null, void 0, options);
168136
- return _AST.#parseAST(pattern, ast, 0, options), ast;
168228
+ let ast = new _a(null, void 0, options);
168229
+ return _a.#parseAST(pattern, ast, 0, options, 0), ast;
168137
168230
  }
168138
168231
  // returns the regular expression if there's magic, or the unescaped
168139
168232
  // string if not.
@@ -168223,9 +168316,9 @@ var require_ast = __commonJS({
168223
168316
  // or start or whatever) and prepend ^ or / at the Regexp construction.
168224
168317
  toRegExpSource(allowDot) {
168225
168318
  let dot = allowDot ?? !!this.#options.dot;
168226
- if (this.#root === this && this.#fillNegs(), !this.type) {
168319
+ if (this.#root === this && (this.#flatten(), this.#fillNegs()), !isExtglobAST(this)) {
168227
168320
  let noEmpty = this.isStart() && this.isEnd(), src = this.#parts.map((p) => {
168228
- let [re, _, hasMagic, uflag] = typeof p == "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
168321
+ let [re, _, hasMagic, uflag] = typeof p == "string" ? _a.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
168229
168322
  return this.#hasMagic = this.#hasMagic || hasMagic, this.#uflag = this.#uflag || uflag, re;
168230
168323
  }).join(""), start2 = "";
168231
168324
  if (this.isStart() && typeof this.#parts[0] == "string" && !(this.#parts.length === 1 && justDots.has(this.#parts[0]))) {
@@ -168247,8 +168340,8 @@ var require_ast = __commonJS({
168247
168340
  }
168248
168341
  let repeated = this.type === "*" || this.type === "+", start = this.type === "!" ? "(?:(?!(?:" : "(?:", body = this.#partsToRegExp(dot);
168249
168342
  if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
168250
- let s = this.toString();
168251
- return this.#parts = [s], this.type = null, this.#hasMagic = void 0, [s, (0, unescape_js_1.unescape)(this.toString()), !1, !1];
168343
+ let s = this.toString(), me = this;
168344
+ return me.#parts = [s], me.type = null, me.#hasMagic = void 0, [s, (0, unescape_js_1.unescape)(this.toString()), !1, !1];
168252
168345
  }
168253
168346
  let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(!0);
168254
168347
  bodyDotAllowed === body && (bodyDotAllowed = ""), bodyDotAllowed && (body = `(?:${body})(?:${bodyDotAllowed})*?`);
@@ -168278,11 +168371,11 @@ var require_ast = __commonJS({
168278
168371
  }).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
168279
168372
  }
168280
168373
  static #parseGlob(glob, hasMagic, noEmpty = !1) {
168281
- let escaping = !1, re = "", uflag = !1;
168374
+ let escaping = !1, re = "", uflag = !1, inStar = !1;
168282
168375
  for (let i = 0; i < glob.length; i++) {
168283
168376
  let c = glob.charAt(i);
168284
168377
  if (escaping) {
168285
- escaping = !1, re += (reSpecials.has(c) ? "\\" : "") + c;
168378
+ escaping = !1, re += (reSpecials.has(c) ? "\\" : "") + c, inStar = !1;
168286
168379
  continue;
168287
168380
  }
168288
168381
  if (c === "\\") {
@@ -168292,14 +168385,17 @@ var require_ast = __commonJS({
168292
168385
  if (c === "[") {
168293
168386
  let [src, needUflag, consumed, magic] = (0, brace_expressions_js_1.parseClass)(glob, i);
168294
168387
  if (consumed) {
168295
- re += src, uflag = uflag || needUflag, i += consumed - 1, hasMagic = hasMagic || magic;
168388
+ re += src, uflag = uflag || needUflag, i += consumed - 1, hasMagic = hasMagic || magic, inStar = !1;
168296
168389
  continue;
168297
168390
  }
168298
168391
  }
168299
168392
  if (c === "*") {
168300
- noEmpty && glob === "*" ? re += starNoEmpty : re += star, hasMagic = !0;
168393
+ if (inStar)
168394
+ continue;
168395
+ inStar = !0, re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star, hasMagic = !0;
168301
168396
  continue;
168302
- }
168397
+ } else
168398
+ inStar = !1;
168303
168399
  if (c === "?") {
168304
168400
  re += qmark, hasMagic = !0;
168305
168401
  continue;
@@ -168310,12 +168406,13 @@ var require_ast = __commonJS({
168310
168406
  }
168311
168407
  };
168312
168408
  exports.AST = AST;
168409
+ _a = AST;
168313
168410
  }
168314
168411
  });
168315
168412
 
168316
- // ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/escape.js
168413
+ // ../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/escape.js
168317
168414
  var require_escape = __commonJS({
168318
- "../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/escape.js"(exports) {
168415
+ "../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/escape.js"(exports) {
168319
168416
  "use strict";
168320
168417
  init_cjs_shims();
168321
168418
  Object.defineProperty(exports, "__esModule", { value: !0 });
@@ -168325,17 +168422,14 @@ var require_escape = __commonJS({
168325
168422
  }
168326
168423
  });
168327
168424
 
168328
- // ../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/index.js
168329
- var require_commonjs = __commonJS({
168330
- "../../node_modules/.pnpm/minimatch@9.0.5/node_modules/minimatch/dist/commonjs/index.js"(exports) {
168425
+ // ../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/index.js
168426
+ var require_commonjs3 = __commonJS({
168427
+ "../../node_modules/.pnpm/minimatch@9.0.8/node_modules/minimatch/dist/commonjs/index.js"(exports) {
168331
168428
  "use strict";
168332
168429
  init_cjs_shims();
168333
- var __importDefault = exports && exports.__importDefault || function(mod) {
168334
- return mod && mod.__esModule ? mod : { default: mod };
168335
- };
168336
168430
  Object.defineProperty(exports, "__esModule", { value: !0 });
168337
168431
  exports.unescape = exports.escape = exports.AST = exports.Minimatch = exports.match = exports.makeRe = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
168338
- var brace_expansion_1 = __importDefault(require_brace_expansion()), assert_valid_pattern_js_1 = require_assert_valid_pattern(), ast_js_1 = require_ast(), escape_js_1 = require_escape(), unescape_js_1 = require_unescape(), minimatch = (p, pattern, options = {}) => ((0, assert_valid_pattern_js_1.assertValidPattern)(pattern), !options.nocomment && pattern.charAt(0) === "#" ? !1 : new Minimatch(pattern, options).match(p));
168432
+ var brace_expansion_1 = require_commonjs2(), assert_valid_pattern_js_1 = require_assert_valid_pattern(), ast_js_1 = require_ast(), escape_js_1 = require_escape(), unescape_js_1 = require_unescape(), minimatch = (p, pattern, options = {}) => ((0, assert_valid_pattern_js_1.assertValidPattern)(pattern), !options.nocomment && pattern.charAt(0) === "#" ? !1 : new Minimatch(pattern, options).match(p));
168339
168433
  exports.minimatch = minimatch;
168340
168434
  var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/, starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2), starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2), starDotExtTestNocase = (ext2) => (ext2 = ext2.toLowerCase(), (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2)), starDotExtTestNocaseDot = (ext2) => (ext2 = ext2.toLowerCase(), (f) => f.toLowerCase().endsWith(ext2)), starDotStarRE = /^\*+\.\*+$/, starDotStarTest = (f) => !f.startsWith(".") && f.includes("."), starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes("."), dotStarRE = /^\.\*+$/, dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith("."), starRE = /^\*+$/, starTest = (f) => f.length !== 0 && !f.startsWith("."), starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..", qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/, qmarksTestNocase = ([$0, ext2 = ""]) => {
168341
168435
  let noext = qmarksTestNoExt([$0]);
@@ -168402,7 +168496,7 @@ var require_commonjs = __commonJS({
168402
168496
  };
168403
168497
  exports.defaults = defaults;
168404
168498
  exports.minimatch.defaults = exports.defaults;
168405
- var braceExpand = (pattern, options = {}) => ((0, assert_valid_pattern_js_1.assertValidPattern)(pattern), options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern) ? [pattern] : (0, brace_expansion_1.default)(pattern));
168499
+ var braceExpand = (pattern, options = {}) => ((0, assert_valid_pattern_js_1.assertValidPattern)(pattern), options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern) ? [pattern] : (0, brace_expansion_1.expand)(pattern));
168406
168500
  exports.braceExpand = braceExpand;
168407
168501
  exports.minimatch.braceExpand = exports.braceExpand;
168408
168502
  var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
@@ -168431,9 +168525,10 @@ var require_commonjs = __commonJS({
168431
168525
  isWindows;
168432
168526
  platform;
168433
168527
  windowsNoMagicRoot;
168528
+ maxGlobstarRecursion;
168434
168529
  regexp;
168435
168530
  constructor(pattern, options = {}) {
168436
- (0, assert_valid_pattern_js_1.assertValidPattern)(pattern), options = options || {}, this.options = options, this.pattern = pattern, this.platform = options.platform || defaultPlatform, this.isWindows = this.platform === "win32", this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === !1, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!options.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!options.nonegate, this.comment = !1, this.empty = !1, this.partial = !!options.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
168531
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern), options = options || {}, this.options = options, this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200, this.pattern = pattern, this.platform = options.platform || defaultPlatform, this.isWindows = this.platform === "win32", this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === !1, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!options.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!options.nonegate, this.comment = !1, this.empty = !1, this.partial = !!options.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
168437
168532
  }
168438
168533
  hasMagic() {
168439
168534
  if (this.options.magicalBraces && this.set.length > 1)
@@ -168637,44 +168732,98 @@ var require_commonjs = __commonJS({
168637
168732
  // out of pattern, then that's fine, as long as all
168638
168733
  // the parts match.
168639
168734
  matchOne(file, pattern, partial = !1) {
168640
- let options = this.options;
168735
+ let fileStartIndex = 0, patternStartIndex = 0;
168641
168736
  if (this.isWindows) {
168642
168737
  let fileDrive = typeof file[0] == "string" && /^[a-z]:$/i.test(file[0]), fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]), patternDrive = typeof pattern[0] == "string" && /^[a-z]:$/i.test(pattern[0]), patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] == "string" && /^[a-z]:$/i.test(pattern[3]), fdi = fileUNC ? 3 : fileDrive ? 0 : void 0, pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
168643
168738
  if (typeof fdi == "number" && typeof pdi == "number") {
168644
- let [fd, pd] = [file[fdi], pattern[pdi]];
168645
- fd.toLowerCase() === pd.toLowerCase() && (pattern[pdi] = fd, pdi > fdi ? pattern = pattern.slice(pdi) : fdi > pdi && (file = file.slice(fdi)));
168739
+ let [fd, pd] = [
168740
+ file[fdi],
168741
+ pattern[pdi]
168742
+ ];
168743
+ fd.toLowerCase() === pd.toLowerCase() && (pattern[pdi] = fd, patternStartIndex = pdi, fileStartIndex = fdi);
168646
168744
  }
168647
168745
  }
168648
168746
  let { optimizationLevel = 1 } = this.options;
168649
- optimizationLevel >= 2 && (file = this.levelTwoFileOptimize(file)), this.debug("matchOne", this, { file, pattern }), this.debug("matchOne", file.length, pattern.length);
168650
- for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
168651
- this.debug("matchOne loop");
168652
- var p = pattern[pi], f = file[fi];
168653
- if (this.debug(pattern, p, f), p === !1)
168747
+ return optimizationLevel >= 2 && (file = this.levelTwoFileOptimize(file)), pattern.includes(exports.GLOBSTAR) ? this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex) : this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
168748
+ }
168749
+ #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
168750
+ let firstgs = pattern.indexOf(exports.GLOBSTAR, patternIndex), lastgs = pattern.lastIndexOf(exports.GLOBSTAR), [head, body, tail] = partial ? [
168751
+ pattern.slice(patternIndex, firstgs),
168752
+ pattern.slice(firstgs + 1),
168753
+ []
168754
+ ] : [
168755
+ pattern.slice(patternIndex, firstgs),
168756
+ pattern.slice(firstgs + 1, lastgs),
168757
+ pattern.slice(lastgs + 1)
168758
+ ];
168759
+ if (head.length) {
168760
+ let fileHead = file.slice(fileIndex, fileIndex + head.length);
168761
+ if (!this.#matchOne(fileHead, head, partial, 0, 0))
168654
168762
  return !1;
168655
- if (p === exports.GLOBSTAR) {
168656
- this.debug("GLOBSTAR", [pattern, p, f]);
168657
- var fr = fi, pr = pi + 1;
168658
- if (pr === pl) {
168659
- for (this.debug("** at the end"); fi < fl; fi++)
168660
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
168661
- return !1;
168662
- return !0;
168663
- }
168664
- for (; fr < fl; ) {
168665
- var swallowee = file[fr];
168666
- if (this.debug(`
168667
- globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr), pattern.slice(pr), partial))
168668
- return this.debug("globstar found match!", fr, fl, swallowee), !0;
168669
- if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
168670
- this.debug("dot detected!", file, fr, pattern, pr);
168671
- break;
168672
- }
168673
- this.debug("globstar swallow a segment, and continue"), fr++;
168674
- }
168675
- return !!(partial && (this.debug(`
168676
- >>> no match, partial?`, file, fr, pattern, pr), fr === fl));
168763
+ fileIndex += head.length;
168764
+ }
168765
+ let fileTailMatch = 0;
168766
+ if (tail.length) {
168767
+ if (tail.length + fileIndex > file.length)
168768
+ return !1;
168769
+ let tailStart = file.length - tail.length;
168770
+ if (this.#matchOne(file, tail, partial, tailStart, 0))
168771
+ fileTailMatch = tail.length;
168772
+ else {
168773
+ if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length || (tailStart--, !this.#matchOne(file, tail, partial, tailStart, 0)))
168774
+ return !1;
168775
+ fileTailMatch = tail.length + 1;
168677
168776
  }
168777
+ }
168778
+ if (!body.length) {
168779
+ let sawSome = !!fileTailMatch;
168780
+ for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
168781
+ let f = String(file[i2]);
168782
+ if (sawSome = !0, f === "." || f === ".." || !this.options.dot && f.startsWith("."))
168783
+ return !1;
168784
+ }
168785
+ return partial || sawSome;
168786
+ }
168787
+ let bodySegments = [[[], 0]], currentBody = bodySegments[0], nonGsParts = 0, nonGsPartsSums = [0];
168788
+ for (let b of body)
168789
+ b === exports.GLOBSTAR ? (nonGsPartsSums.push(nonGsParts), currentBody = [[], 0], bodySegments.push(currentBody)) : (currentBody[0].push(b), nonGsParts++);
168790
+ let i = bodySegments.length - 1, fileLength = file.length - fileTailMatch;
168791
+ for (let b of bodySegments)
168792
+ b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
168793
+ return !!this.#matchGlobStarBodySections(file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
168794
+ }
168795
+ #matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
168796
+ let bs = bodySegments[bodyIndex];
168797
+ if (!bs) {
168798
+ for (let i = fileIndex; i < file.length; i++) {
168799
+ sawTail = !0;
168800
+ let f = file[i];
168801
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith("."))
168802
+ return !1;
168803
+ }
168804
+ return sawTail;
168805
+ }
168806
+ let [body, after] = bs;
168807
+ for (; fileIndex <= after; ) {
168808
+ if (this.#matchOne(file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0) && globStarDepth < this.maxGlobstarRecursion) {
168809
+ let sub = this.#matchGlobStarBodySections(file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
168810
+ if (sub !== !1)
168811
+ return sub;
168812
+ }
168813
+ let f = file[fileIndex];
168814
+ if (f === "." || f === ".." || !this.options.dot && f.startsWith("."))
168815
+ return !1;
168816
+ fileIndex++;
168817
+ }
168818
+ return partial || null;
168819
+ }
168820
+ #matchOne(file, pattern, partial, fileIndex, patternIndex) {
168821
+ let fi, pi, pl, fl;
168822
+ for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
168823
+ this.debug("matchOne loop");
168824
+ let p = pattern[pi], f = file[fi];
168825
+ if (this.debug(pattern, p, f), p === !1 || p === exports.GLOBSTAR)
168826
+ return !1;
168678
168827
  let hit;
168679
168828
  if (typeof p == "string" ? (hit = f === p, this.debug("string match", p, f, hit)) : (hit = p.test(f), this.debug("pattern match", p, f, hit)), !hit)
168680
168829
  return !1;
@@ -171244,7 +171393,7 @@ var require_plugin_loader = __commonJS({
171244
171393
  "use strict";
171245
171394
  init_cjs_shims();
171246
171395
  Object.defineProperty(exports, "__esModule", { value: !0 });
171247
- var minimatch_1 = require_commonjs(), node_path_1 = __require("node:path"), performance_1 = require_performance(), fs_1 = require_fs(), util_1 = require_util(), plugin_1 = require_plugin(), util_2 = require_util3(), debug = (0, util_2.makeDebug)();
171396
+ var minimatch_1 = require_commonjs3(), node_path_1 = __require("node:path"), performance_1 = require_performance(), fs_1 = require_fs(), util_1 = require_util(), plugin_1 = require_plugin(), util_2 = require_util3(), debug = (0, util_2.makeDebug)();
171248
171397
  function findMatchingDependencies(dependencies, patterns) {
171249
171398
  return Object.keys(dependencies).filter((p) => patterns.some((w) => (0, minimatch_1.minimatch)(p, w)));
171250
171399
  }
@@ -173113,8 +173262,7 @@ export {
173113
173262
  require_ansi_styles,
173114
173263
  require_source_map,
173115
173264
  require_typescript,
173116
- require_balanced_match,
173117
- require_brace_expansion,
173265
+ require_commonjs,
173118
173266
  require_lib
173119
173267
  };
173120
173268
  /*! Bundled license information:
@@ -173144,4 +173292,4 @@ typescript/lib/typescript.js:
173144
173292
  and limitations under the License.
173145
173293
  ***************************************************************************** *)
173146
173294
  */
173147
- //# sourceMappingURL=chunk-TM5S3XKJ.js.map
173295
+ //# sourceMappingURL=chunk-IFG7N3S2.js.map