@reapit/elements 5.0.0-beta.77 → 5.0.0-beta.78

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.
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -248194,7 +248197,7 @@ Node text: ${this.#forgottenText}`;
248194
248197
  }
248195
248198
  };
248196
248199
  var JsxElementBase = PrimaryExpression;
248197
- var JsxElement2 = class extends JsxElementBase {
248200
+ var JsxElement = class extends JsxElementBase {
248198
248201
  static {
248199
248202
  __name(this, "JsxElement");
248200
248203
  }
@@ -251242,7 +251245,7 @@ Node text: ${this.#forgottenText}`;
251242
251245
  [common.SyntaxKind.JsxAttribute]: JsxAttribute,
251243
251246
  [common.SyntaxKind.JsxClosingElement]: JsxClosingElement,
251244
251247
  [common.SyntaxKind.JsxClosingFragment]: JsxClosingFragment,
251245
- [common.SyntaxKind.JsxElement]: JsxElement2,
251248
+ [common.SyntaxKind.JsxElement]: JsxElement,
251246
251249
  [common.SyntaxKind.JsxExpression]: JsxExpression,
251247
251250
  [common.SyntaxKind.JsxFragment]: JsxFragment,
251248
251251
  [common.SyntaxKind.JsxNamespacedName]: JsxNamespacedName,
@@ -253108,7 +253111,7 @@ Node text: ${this.#forgottenText}`;
253108
253111
  exports.JsxClosingElement = JsxClosingElement;
253109
253112
  exports.JsxClosingElementBase = JsxClosingElementBase;
253110
253113
  exports.JsxClosingFragment = JsxClosingFragment;
253111
- exports.JsxElement = JsxElement2;
253114
+ exports.JsxElement = JsxElement;
253112
253115
  exports.JsxElementBase = JsxElementBase;
253113
253116
  exports.JsxExpression = JsxExpression;
253114
253117
  exports.JsxExpressionBase = JsxExpressionBase;
@@ -253376,7 +253379,6 @@ var ALIGNMENT_TO_JUSTIFY_CONTENT = {
253376
253379
  };
253377
253380
  var TODO_DYNAMIC_ALIGNMENT_JSX = "{/* TODO: DeprecatedButtonGroup had a dynamic alignment prop that cannot be migrated automatically */}";
253378
253381
  var TODO_DYNAMIC_ALIGNMENT_JS = "// TODO: DeprecatedButtonGroup had a dynamic alignment prop that cannot be migrated automatically";
253379
- var TODO_DYNAMIC_CHILDREN = "{/* TODO: wrap each button in this expression in <ButtonGroup.Item> manually */}";
253380
253382
  function shouldUseJsxComment(element) {
253381
253383
  let parent = element.getParent();
253382
253384
  while (parent) {
@@ -253498,7 +253500,7 @@ function transformTypeReferences(sourceFile) {
253498
253500
  return rewrote;
253499
253501
  }
253500
253502
  __name(transformTypeReferences, "transformTypeReferences");
253501
- function transformJsxElements(sourceFile, aliases, localName) {
253503
+ function transformJsxElements(sourceFile, aliases) {
253502
253504
  const commentInsertions = [];
253503
253505
  const openingElements = sourceFile.getDescendantsOfKind(import_ts_morph.SyntaxKind.JsxOpeningElement).slice();
253504
253506
  const selfClosingElements = sourceFile.getDescendantsOfKind(import_ts_morph.SyntaxKind.JsxSelfClosingElement).slice();
@@ -253526,7 +253528,6 @@ function transformJsxElements(sourceFile, aliases, localName) {
253526
253528
  if (closingTag.getTagNameNode().getText() === "DeprecatedButtonGroup") {
253527
253529
  closingTag.getTagNameNode().replaceWithText("ButtonGroup");
253528
253530
  }
253529
- wrapChildren(jsxElement, commentInsertions, localName);
253530
253531
  }
253531
253532
  }
253532
253533
  const sorted = commentInsertions.sort((a, b) => b.pos - a.pos);
@@ -253568,27 +253569,6 @@ function transformAlignmentProp(element, commentInsertions) {
253568
253569
  }
253569
253570
  }
253570
253571
  __name(transformAlignmentProp, "transformAlignmentProp");
253571
- function wrapChildren(jsxElement, commentInsertions, localName) {
253572
- const itemTag = `${localName}.Item`;
253573
- const children = jsxElement.getJsxChildren();
253574
- for (const child of children) {
253575
- const kind = child.getKind();
253576
- if (kind === import_ts_morph.SyntaxKind.JsxText) {
253577
- continue;
253578
- }
253579
- if (kind === import_ts_morph.SyntaxKind.JsxElement || kind === import_ts_morph.SyntaxKind.JsxSelfClosingElement) {
253580
- const tagText = kind === import_ts_morph.SyntaxKind.JsxElement ? child.asKind(import_ts_morph.SyntaxKind.JsxElement).getOpeningElement().getTagNameNode().getText() : child.asKind(import_ts_morph.SyntaxKind.JsxSelfClosingElement).getTagNameNode().getText();
253581
- if (tagText === itemTag) continue;
253582
- const childText = child.getText();
253583
- child.replaceWithText(`<${itemTag}>${childText}</${itemTag}>`);
253584
- continue;
253585
- }
253586
- if (kind === import_ts_morph.SyntaxKind.JsxExpression) {
253587
- commentInsertions.push({ pos: child.getStart(), text: TODO_DYNAMIC_CHILDREN });
253588
- }
253589
- }
253590
- }
253591
- __name(wrapChildren, "wrapChildren");
253592
253572
  function transform(source, filePath = "file.tsx", options) {
253593
253573
  if (!source.includes("DeprecatedButtonGroup")) return source;
253594
253574
  const project = new import_ts_morph.Project({
@@ -253617,8 +253597,7 @@ function transform(source, filePath = "file.tsx", options) {
253617
253597
  targetImportDecl.addNamedImport({ name: "ButtonGroup", isTypeOnly: true });
253618
253598
  }
253619
253599
  }
253620
- const localName = importLocalName ?? "ButtonGroup";
253621
- transformJsxElements(sourceFile, aliases, localName);
253600
+ transformJsxElements(sourceFile, aliases);
253622
253601
  return sourceFile.getFullText();
253623
253602
  }
253624
253603
  __name(transform, "transform");
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);
@@ -222028,11 +222028,12 @@ var require_commonjs = __commonJS({
222028
222028
  }
222029
222029
  });
222030
222030
 
222031
- // node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js
222031
+ // node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js
222032
222032
  var require_commonjs2 = __commonJS({
222033
- "node_modules/.store/@isaacs-brace-expansion-npm-5.0.0-754d3cb3f5/package/dist/commonjs/index.js"(exports) {
222033
+ "node_modules/.store/@isaacs-brace-expansion-npm-5.0.1-79f48d6db7/package/dist/commonjs/index.js"(exports) {
222034
222034
  "use strict";
222035
222035
  Object.defineProperty(exports, "__esModule", { value: true });
222036
+ exports.EXPANSION_MAX = void 0;
222036
222037
  exports.expand = expand;
222037
222038
  var balanced_match_1 = require_commonjs();
222038
222039
  var escSlash = "\0SLASH" + Math.random() + "\0";
@@ -222050,6 +222051,7 @@ var require_commonjs2 = __commonJS({
222050
222051
  var closePattern = /\\}/g;
222051
222052
  var commaPattern = /\\,/g;
222052
222053
  var periodPattern = /\\./g;
222054
+ exports.EXPANSION_MAX = 1e5;
222053
222055
  function numeric(str) {
222054
222056
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
222055
222057
  }
@@ -222084,14 +222086,15 @@ var require_commonjs2 = __commonJS({
222084
222086
  return parts;
222085
222087
  }
222086
222088
  __name(parseCommaParts, "parseCommaParts");
222087
- function expand(str) {
222089
+ function expand(str, options = {}) {
222088
222090
  if (!str) {
222089
222091
  return [];
222090
222092
  }
222093
+ const { max = exports.EXPANSION_MAX } = options;
222091
222094
  if (str.slice(0, 2) === "{}") {
222092
222095
  str = "\\{\\}" + str.slice(2);
222093
222096
  }
222094
- return expand_(escapeBraces(str), true).map(unescapeBraces);
222097
+ return expand_(escapeBraces(str), max, true).map(unescapeBraces);
222095
222098
  }
222096
222099
  __name(expand, "expand");
222097
222100
  function embrace(str) {
@@ -222110,15 +222113,15 @@ var require_commonjs2 = __commonJS({
222110
222113
  return i >= y;
222111
222114
  }
222112
222115
  __name(gte, "gte");
222113
- function expand_(str, isTop) {
222116
+ function expand_(str, max, isTop) {
222114
222117
  const expansions = [];
222115
222118
  const m = (0, balanced_match_1.balanced)("{", "}", str);
222116
222119
  if (!m)
222117
222120
  return [str];
222118
222121
  const pre = m.pre;
222119
- const post = m.post.length ? expand_(m.post, false) : [""];
222122
+ const post = m.post.length ? expand_(m.post, max, false) : [""];
222120
222123
  if (/\$$/.test(m.pre)) {
222121
- for (let k = 0; k < post.length; k++) {
222124
+ for (let k = 0; k < post.length && k < max; k++) {
222122
222125
  const expansion = pre + "{" + m.body + "}" + post[k];
222123
222126
  expansions.push(expansion);
222124
222127
  }
@@ -222130,7 +222133,7 @@ var require_commonjs2 = __commonJS({
222130
222133
  if (!isSequence && !isOptions) {
222131
222134
  if (m.post.match(/,(?!,).*\}/)) {
222132
222135
  str = m.pre + "{" + m.body + escClose + m.post;
222133
- return expand_(str);
222136
+ return expand_(str, max, true);
222134
222137
  }
222135
222138
  return [str];
222136
222139
  }
@@ -222140,7 +222143,7 @@ var require_commonjs2 = __commonJS({
222140
222143
  } else {
222141
222144
  n = parseCommaParts(m.body);
222142
222145
  if (n.length === 1 && n[0] !== void 0) {
222143
- n = expand_(n[0], false).map(embrace);
222146
+ n = expand_(n[0], max, false).map(embrace);
222144
222147
  if (n.length === 1) {
222145
222148
  return post.map((p) => m.pre + n[0] + p);
222146
222149
  }
@@ -222186,11 +222189,11 @@ var require_commonjs2 = __commonJS({
222186
222189
  } else {
222187
222190
  N = [];
222188
222191
  for (let j = 0; j < n.length; j++) {
222189
- N.push.apply(N, expand_(n[j], false));
222192
+ N.push.apply(N, expand_(n[j], max, false));
222190
222193
  }
222191
222194
  }
222192
222195
  for (let j = 0; j < N.length; j++) {
222193
- for (let k = 0; k < post.length; k++) {
222196
+ for (let k = 0; k < post.length && expansions.length < max; k++) {
222194
222197
  const expansion = pre + N[j] + post[k];
222195
222198
  if (!isTop || isSequence || expansion) {
222196
222199
  expansions.push(expansion);