create-tamagui 1.88.1 → 1.88.2

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.
package/dist/index.js CHANGED
@@ -2883,7 +2883,7 @@ var require_polyfills = __commonJS({
2883
2883
  fs8.closeSync(fd);
2884
2884
  }
2885
2885
  return ret;
2886
- }) : fs8.futimes && (fs8.lutimes = function(_a2, _b, _c, cb) {
2886
+ }) : fs8.futimes && (fs8.lutimes = function(_a, _b, _c, cb) {
2887
2887
  cb && process.nextTick(cb);
2888
2888
  }, fs8.lutimesSync = function() {
2889
2889
  });
@@ -12298,19 +12298,18 @@ var require_visit = __commonJS({
12298
12298
  }, visitor) : visitor;
12299
12299
  }
12300
12300
  function callVisitor(key, node, visitor, path6) {
12301
- var _a2, _b, _c, _d, _e;
12302
12301
  if (typeof visitor == "function")
12303
12302
  return visitor(key, node, path6);
12304
12303
  if (identity.isMap(node))
12305
- return (_a2 = visitor.Map) == null ? void 0 : _a2.call(visitor, key, node, path6);
12304
+ return visitor.Map?.(key, node, path6);
12306
12305
  if (identity.isSeq(node))
12307
- return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node, path6);
12306
+ return visitor.Seq?.(key, node, path6);
12308
12307
  if (identity.isPair(node))
12309
- return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path6);
12308
+ return visitor.Pair?.(key, node, path6);
12310
12309
  if (identity.isScalar(node))
12311
- return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path6);
12310
+ return visitor.Scalar?.(key, node, path6);
12312
12311
  if (identity.isAlias(node))
12313
- return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path6);
12312
+ return visitor.Alias?.(key, node, path6);
12314
12313
  }
12315
12314
  function replaceNode(key, path6, node) {
12316
12315
  let parent = path6[path6.length - 1];
@@ -12565,7 +12564,7 @@ var require_toJS = __commonJS({
12565
12564
  let res = value.toJSON(arg, ctx);
12566
12565
  return ctx.onCreate && ctx.onCreate(res), res;
12567
12566
  }
12568
- return typeof value == "bigint" && !(ctx != null && ctx.keep) ? Number(value) : value;
12567
+ return typeof value == "bigint" && !ctx?.keep ? Number(value) : value;
12569
12568
  }
12570
12569
  exports2.toJS = toJS;
12571
12570
  }
@@ -12694,7 +12693,7 @@ var require_Scalar = __commonJS({
12694
12693
  super(identity.SCALAR), this.value = value;
12695
12694
  }
12696
12695
  toJSON(arg, ctx) {
12697
- return ctx != null && ctx.keep ? this.value : toJS.toJS(this.value, arg, ctx);
12696
+ return ctx?.keep ? this.value : toJS.toJS(this.value, arg, ctx);
12698
12697
  }
12699
12698
  toString() {
12700
12699
  return String(this.value);
@@ -12722,17 +12721,13 @@ var require_createNode = __commonJS({
12722
12721
  throw new Error(`Tag ${tagName} not found`);
12723
12722
  return tagObj;
12724
12723
  }
12725
- return tags.find((t) => {
12726
- var _a2;
12727
- return ((_a2 = t.identify) == null ? void 0 : _a2.call(t, value)) && !t.format;
12728
- });
12724
+ return tags.find((t) => t.identify?.(value) && !t.format);
12729
12725
  }
12730
12726
  function createNode(value, tagName, ctx) {
12731
- var _a2, _b, _c;
12732
12727
  if (identity.isDocument(value) && (value = value.contents), identity.isNode(value))
12733
12728
  return value;
12734
12729
  if (identity.isPair(value)) {
12735
- let map = (_b = (_a2 = ctx.schema[identity.MAP]).createNode) == null ? void 0 : _b.call(_a2, ctx.schema, null, ctx);
12730
+ let map = ctx.schema[identity.MAP].createNode?.(ctx.schema, null, ctx);
12736
12731
  return map.items.push(value), map;
12737
12732
  }
12738
12733
  (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt < "u" && value instanceof BigInt) && (value = value.valueOf());
@@ -12742,7 +12737,7 @@ var require_createNode = __commonJS({
12742
12737
  return ref.anchor || (ref.anchor = onAnchor(value)), new Alias.Alias(ref.anchor);
12743
12738
  ref = { anchor: null, node: null }, sourceObjects.set(value, ref);
12744
12739
  }
12745
- tagName != null && tagName.startsWith("!!") && (tagName = defaultTagPrefix + tagName.slice(2));
12740
+ tagName?.startsWith("!!") && (tagName = defaultTagPrefix + tagName.slice(2));
12746
12741
  let tagObj = findTagObject(value, tagName, schema.tags);
12747
12742
  if (!tagObj) {
12748
12743
  if (value && typeof value.toJSON == "function" && (value = value.toJSON()), !value || typeof value != "object") {
@@ -12752,7 +12747,7 @@ var require_createNode = __commonJS({
12752
12747
  tagObj = value instanceof Map ? schema[identity.MAP] : Symbol.iterator in Object(value) ? schema[identity.SEQ] : schema[identity.MAP];
12753
12748
  }
12754
12749
  onTagObj && (onTagObj(tagObj), delete ctx.onTagObj);
12755
- let node = tagObj != null && tagObj.createNode ? tagObj.createNode(ctx.schema, value, ctx) : typeof ((_c = tagObj == null ? void 0 : tagObj.nodeClass) == null ? void 0 : _c.from) == "function" ? tagObj.nodeClass.from(ctx.schema, value, ctx) : new Scalar.Scalar(value);
12750
+ let node = tagObj?.createNode ? tagObj.createNode(ctx.schema, value, ctx) : typeof tagObj?.nodeClass?.from == "function" ? tagObj.nodeClass.from(ctx.schema, value, ctx) : new Scalar.Scalar(value);
12756
12751
  return tagName ? node.tag = tagName : tagObj.default || (node.tag = tagObj.tag), ref && (ref.node = node), node;
12757
12752
  }
12758
12753
  exports2.createNode = createNode;
@@ -13166,11 +13161,8 @@ ${indent}${body}`;
13166
13161
  let str = value.replace(/\n+/g, `$&
13167
13162
  ${indent}`);
13168
13163
  if (actualString) {
13169
- let test = (tag) => {
13170
- var _a2;
13171
- return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test) == null ? void 0 : _a2.test(str));
13172
- }, { compat, tags } = ctx.doc.schema;
13173
- if (tags.some(test) || compat != null && compat.some(test))
13164
+ let test = (tag) => tag.default && tag.tag !== "tag:yaml.org,2002:str" && tag.test?.test(str), { compat, tags } = ctx.doc.schema;
13165
+ if (tags.some(test) || compat?.some(test))
13174
13166
  return quotedString(value, ctx);
13175
13167
  }
13176
13168
  return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, !1));
@@ -13250,7 +13242,6 @@ var require_stringify2 = __commonJS({
13250
13242
  };
13251
13243
  }
13252
13244
  function getTagObject(tags, item) {
13253
- var _a2;
13254
13245
  if (item.tag) {
13255
13246
  let match2 = tags.filter((t) => t.tag === item.tag);
13256
13247
  if (match2.length > 0)
@@ -13259,15 +13250,12 @@ var require_stringify2 = __commonJS({
13259
13250
  let tagObj, obj;
13260
13251
  if (identity.isScalar(item)) {
13261
13252
  obj = item.value;
13262
- let match2 = tags.filter((t) => {
13263
- var _a3;
13264
- return (_a3 = t.identify) == null ? void 0 : _a3.call(t, obj);
13265
- });
13253
+ let match2 = tags.filter((t) => t.identify?.(obj));
13266
13254
  tagObj = match2.find((t) => t.format === item.format) ?? match2.find((t) => !t.format);
13267
13255
  } else
13268
13256
  obj = item, tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
13269
13257
  if (!tagObj) {
13270
- let name = ((_a2 = obj == null ? void 0 : obj.constructor) == null ? void 0 : _a2.name) ?? typeof obj;
13258
+ let name = obj?.constructor?.name ?? typeof obj;
13271
13259
  throw new Error(`Tag not resolved for ${name} value`);
13272
13260
  }
13273
13261
  return tagObj;
@@ -13281,13 +13269,12 @@ var require_stringify2 = __commonJS({
13281
13269
  return tag && props.push(doc.directives.tagString(tag)), props.join(" ");
13282
13270
  }
13283
13271
  function stringify(item, ctx, onComment, onChompKeep) {
13284
- var _a2;
13285
13272
  if (identity.isPair(item))
13286
13273
  return item.toString(ctx, onComment, onChompKeep);
13287
13274
  if (identity.isAlias(item)) {
13288
13275
  if (ctx.doc.directives)
13289
13276
  return item.toString(ctx);
13290
- if ((_a2 = ctx.resolvedAliases) != null && _a2.has(item))
13277
+ if (ctx.resolvedAliases?.has(item))
13291
13278
  throw new TypeError("Cannot stringify circular structure without alias nodes");
13292
13279
  ctx.resolvedAliases ? ctx.resolvedAliases.add(item) : ctx.resolvedAliases = /* @__PURE__ */ new Set([item]), item = item.resolve(ctx.doc);
13293
13280
  }
@@ -13395,7 +13382,7 @@ var require_addPairToJSMap = __commonJS({
13395
13382
  "use strict";
13396
13383
  var log2 = require_log(), stringify = require_stringify2(), identity = require_identity(), Scalar = require_Scalar(), toJS = require_toJS(), MERGE_KEY = "<<";
13397
13384
  function addPairToJSMap(ctx, map, { key, value }) {
13398
- if (ctx != null && ctx.doc.schema.merge && isMergeKey(key))
13385
+ if (ctx?.doc.schema.merge && isMergeKey(key))
13399
13386
  if (value = identity.isAlias(value) ? value.resolve(ctx.doc) : value, identity.isSeq(value))
13400
13387
  for (let it of value.items)
13401
13388
  mergeToJSMap(ctx, map, it);
@@ -13442,7 +13429,7 @@ var require_addPairToJSMap = __commonJS({
13442
13429
  return "";
13443
13430
  if (typeof jsKey != "object")
13444
13431
  return String(jsKey);
13445
- if (identity.isNode(key) && (ctx != null && ctx.doc)) {
13432
+ if (identity.isNode(key) && ctx?.doc) {
13446
13433
  let strCtx = stringify.createStringifyContext(ctx.doc, {});
13447
13434
  strCtx.anchors = /* @__PURE__ */ new Set();
13448
13435
  for (let node of ctx.anchors.keys())
@@ -13479,11 +13466,11 @@ var require_Pair = __commonJS({
13479
13466
  return identity.isNode(key) && (key = key.clone(schema)), identity.isNode(value) && (value = value.clone(schema)), new _Pair(key, value);
13480
13467
  }
13481
13468
  toJSON(_, ctx) {
13482
- let pair = ctx != null && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
13469
+ let pair = ctx?.mapAsMap ? /* @__PURE__ */ new Map() : {};
13483
13470
  return addPairToJSMap.addPairToJSMap(ctx, pair, this);
13484
13471
  }
13485
13472
  toString(ctx, onComment, onChompKeep) {
13486
- return ctx != null && ctx.doc ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
13473
+ return ctx?.doc ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
13487
13474
  }
13488
13475
  };
13489
13476
  exports2.Pair = Pair;
@@ -13544,7 +13531,7 @@ ${indent}${line}` : `
13544
13531
  let ik = identity.isNode(item.key) ? item.key : null;
13545
13532
  ik && (ik.spaceBefore && lines.push(""), addCommentBefore(ctx, lines, ik.commentBefore, !1), ik.comment && (reqNewline = !0));
13546
13533
  let iv = identity.isNode(item.value) ? item.value : null;
13547
- iv ? (iv.comment && (comment2 = iv.comment), iv.commentBefore && (reqNewline = !0)) : item.value == null && (ik != null && ik.comment) && (comment2 = ik.comment);
13534
+ iv ? (iv.comment && (comment2 = iv.comment), iv.commentBefore && (reqNewline = !0)) : item.value == null && ik?.comment && (comment2 = ik.comment);
13548
13535
  }
13549
13536
  comment2 && (reqNewline = !0);
13550
13537
  let str2 = stringify.stringify(item, itemCtx, () => comment2 = null);
@@ -13621,10 +13608,9 @@ var require_YAMLMap = __commonJS({
13621
13608
  * collection will throw. Otherwise, overwrites the previous value.
13622
13609
  */
13623
13610
  add(pair, overwrite) {
13624
- var _a2;
13625
13611
  let _pair;
13626
- identity.isPair(pair) ? _pair = pair : !pair || typeof pair != "object" || !("key" in pair) ? _pair = new Pair.Pair(pair, pair == null ? void 0 : pair.value) : _pair = new Pair.Pair(pair.key, pair.value);
13627
- let prev = findPair(this.items, _pair.key), sortEntries = (_a2 = this.schema) == null ? void 0 : _a2.sortMapEntries;
13612
+ identity.isPair(pair) ? _pair = pair : !pair || typeof pair != "object" || !("key" in pair) ? _pair = new Pair.Pair(pair, pair?.value) : _pair = new Pair.Pair(pair.key, pair.value);
13613
+ let prev = findPair(this.items, _pair.key), sortEntries = this.schema?.sortMapEntries;
13628
13614
  if (prev) {
13629
13615
  if (!overwrite)
13630
13616
  throw new Error(`Key ${_pair.key} already set`);
@@ -13640,7 +13626,7 @@ var require_YAMLMap = __commonJS({
13640
13626
  return it ? this.items.splice(this.items.indexOf(it), 1).length > 0 : !1;
13641
13627
  }
13642
13628
  get(key, keepScalar) {
13643
- let it = findPair(this.items, key), node = it == null ? void 0 : it.value;
13629
+ let node = findPair(this.items, key)?.value;
13644
13630
  return (!keepScalar && identity.isScalar(node) ? node.value : node) ?? void 0;
13645
13631
  }
13646
13632
  has(key) {
@@ -13655,8 +13641,8 @@ var require_YAMLMap = __commonJS({
13655
13641
  * @returns Instance of Type, Map, or Object
13656
13642
  */
13657
13643
  toJSON(_, ctx, Type) {
13658
- let map = Type ? new Type() : ctx != null && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
13659
- ctx != null && ctx.onCreate && ctx.onCreate(map);
13644
+ let map = Type ? new Type() : ctx?.mapAsMap ? /* @__PURE__ */ new Map() : {};
13645
+ ctx?.onCreate && ctx.onCreate(map);
13660
13646
  for (let item of this.items)
13661
13647
  addPairToJSMap.addPairToJSMap(ctx, map, item);
13662
13648
  return map;
@@ -13758,7 +13744,7 @@ var require_YAMLSeq = __commonJS({
13758
13744
  }
13759
13745
  toJSON(_, ctx) {
13760
13746
  let seq = [];
13761
- ctx != null && ctx.onCreate && ctx.onCreate(seq);
13747
+ ctx?.onCreate && ctx.onCreate(seq);
13762
13748
  let i = 0;
13763
13749
  for (let item of this.items)
13764
13750
  seq.push(toJS.toJS(item, String(i++), ctx));
@@ -14189,7 +14175,7 @@ var require_omap = __commonJS({
14189
14175
  if (!ctx)
14190
14176
  return super.toJSON(_);
14191
14177
  let map = /* @__PURE__ */ new Map();
14192
- ctx != null && ctx.onCreate && ctx.onCreate(map);
14178
+ ctx?.onCreate && ctx.onCreate(map);
14193
14179
  for (let pair of this.items) {
14194
14180
  let key, value;
14195
14181
  if (identity.isPair(pair) ? (key = toJS.toJS(pair.key, "", ctx), value = toJS.toJS(pair.value, key, ctx)) : key = toJS.toJS(pair, "", ctx), map.has(key))
@@ -14613,7 +14599,6 @@ var require_stringifyDocument = __commonJS({
14613
14599
  "use strict";
14614
14600
  var identity = require_identity(), stringify = require_stringify2(), stringifyComment = require_stringifyComment();
14615
14601
  function stringifyDocument(doc, options) {
14616
- var _a2;
14617
14602
  let lines = [], hasDirectives = options.directives === !0;
14618
14603
  if (options.directives !== !1 && doc.directives) {
14619
14604
  let dir = doc.directives.toString(doc);
@@ -14639,7 +14624,7 @@ var require_stringifyDocument = __commonJS({
14639
14624
  contentComment && (body += stringifyComment.lineComment(body, "", commentString(contentComment))), (body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---" ? lines[lines.length - 1] = `--- ${body}` : lines.push(body);
14640
14625
  } else
14641
14626
  lines.push(stringify.stringify(doc.contents, ctx));
14642
- if ((_a2 = doc.directives) != null && _a2.docEnd)
14627
+ if (doc.directives?.docEnd)
14643
14628
  if (doc.comment) {
14644
14629
  let cs = commentString(doc.comment);
14645
14630
  cs.includes(`
@@ -14678,7 +14663,7 @@ var require_Document = __commonJS({
14678
14663
  }, options);
14679
14664
  this.options = opt;
14680
14665
  let { version: version2 } = opt;
14681
- options != null && options._directives ? (this.directives = options._directives.atDocument(), this.directives.yaml.explicit && (version2 = this.directives.yaml.version)) : this.directives = new directives.Directives({ version: version2 }), this.setSchema(version2, options), this.contents = value === void 0 ? null : this.createNode(value, _replacer, options);
14666
+ options?._directives ? (this.directives = options._directives.atDocument(), this.directives.yaml.explicit && (version2 = this.directives.yaml.version)) : this.directives = new directives.Directives({ version: version2 }), this.setSchema(version2, options), this.contents = value === void 0 ? null : this.createNode(value, _replacer, options);
14682
14667
  }
14683
14668
  /**
14684
14669
  * Create a deep copy of this Document and its contents.
@@ -15036,7 +15021,7 @@ var require_util_flow_indent_check = __commonJS({
15036
15021
  "use strict";
15037
15022
  var utilContainsNewline = require_util_contains_newline();
15038
15023
  function flowIndentCheck(indent, fc, onError) {
15039
- if ((fc == null ? void 0 : fc.type) === "flow-collection") {
15024
+ if (fc?.type === "flow-collection") {
15040
15025
  let end = fc.end[0];
15041
15026
  end.indent === indent && (end.source === "]" || end.source === "}") && utilContainsNewline.containsNewline(fc) && onError(end, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
15042
15027
  }
@@ -15067,14 +15052,13 @@ var require_resolve_block_map = __commonJS({
15067
15052
  "use strict";
15068
15053
  var Pair = require_Pair(), YAMLMap = require_YAMLMap(), resolveProps = require_resolve_props(), utilContainsNewline = require_util_contains_newline(), utilFlowIndentCheck = require_util_flow_indent_check(), utilMapIncludes = require_util_map_includes(), startColMsg = "All mapping items must start at the same column";
15069
15054
  function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, tag) {
15070
- var _a2;
15071
- let NodeClass = (tag == null ? void 0 : tag.nodeClass) ?? YAMLMap.YAMLMap, map = new NodeClass(ctx.schema);
15055
+ let NodeClass = tag?.nodeClass ?? YAMLMap.YAMLMap, map = new NodeClass(ctx.schema);
15072
15056
  ctx.atRoot && (ctx.atRoot = !1);
15073
15057
  let offset = bm.offset, commentEnd = null;
15074
15058
  for (let collItem of bm.items) {
15075
15059
  let { start, key, sep: sep2, value } = collItem, keyProps = resolveProps.resolveProps(start, {
15076
15060
  indicator: "explicit-key-ind",
15077
- next: key ?? (sep2 == null ? void 0 : sep2[0]),
15061
+ next: key ?? sep2?.[0],
15078
15062
  offset,
15079
15063
  onError,
15080
15064
  startOnNewline: !0
@@ -15087,7 +15071,7 @@ var require_resolve_block_map = __commonJS({
15087
15071
  }
15088
15072
  (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) && onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
15089
15073
  } else
15090
- ((_a2 = keyProps.found) == null ? void 0 : _a2.indent) !== bm.indent && onError(offset, "BAD_INDENT", startColMsg);
15074
+ keyProps.found?.indent !== bm.indent && onError(offset, "BAD_INDENT", startColMsg);
15091
15075
  let keyStart = keyProps.end, keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
15092
15076
  ctx.schema.compat && utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError), utilMapIncludes.mapIncludes(ctx, map.items, keyNode) && onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
15093
15077
  let valueProps = resolveProps.resolveProps(sep2 ?? [], {
@@ -15098,7 +15082,7 @@ var require_resolve_block_map = __commonJS({
15098
15082
  startOnNewline: !key || key.type === "block-scalar"
15099
15083
  });
15100
15084
  if (offset = valueProps.end, valueProps.found) {
15101
- implicitKey && ((value == null ? void 0 : value.type) === "block-map" && !valueProps.hasNewline && onError(offset, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), ctx.options.strict && keyProps.start < valueProps.found.offset - 1024 && onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
15085
+ implicitKey && (value?.type === "block-map" && !valueProps.hasNewline && onError(offset, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), ctx.options.strict && keyProps.start < valueProps.found.offset - 1024 && onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
15102
15086
  let valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep2, null, valueProps, onError);
15103
15087
  ctx.schema.compat && utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError), offset = valueNode.range[2];
15104
15088
  let pair = new Pair.Pair(keyNode, valueNode);
@@ -15122,7 +15106,7 @@ var require_resolve_block_seq = __commonJS({
15122
15106
  "use strict";
15123
15107
  var YAMLSeq = require_YAMLSeq(), resolveProps = require_resolve_props(), utilFlowIndentCheck = require_util_flow_indent_check();
15124
15108
  function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, tag) {
15125
- let NodeClass = (tag == null ? void 0 : tag.nodeClass) ?? YAMLSeq.YAMLSeq, seq = new NodeClass(ctx.schema);
15109
+ let NodeClass = tag?.nodeClass ?? YAMLSeq.YAMLSeq, seq = new NodeClass(ctx.schema);
15126
15110
  ctx.atRoot && (ctx.atRoot = !1);
15127
15111
  let offset = bs.offset, commentEnd = null;
15128
15112
  for (let { start, value } of bs.items) {
@@ -15190,7 +15174,7 @@ var require_resolve_flow_collection = __commonJS({
15190
15174
  "use strict";
15191
15175
  var identity = require_identity(), Pair = require_Pair(), YAMLMap = require_YAMLMap(), YAMLSeq = require_YAMLSeq(), resolveEnd = require_resolve_end(), resolveProps = require_resolve_props(), utilContainsNewline = require_util_contains_newline(), utilMapIncludes = require_util_map_includes(), blockMsg = "Block collections are not allowed within flow collections", isBlock = (token) => token && (token.type === "block-map" || token.type === "block-seq");
15192
15176
  function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
15193
- let isMap = fc.start.source === "{", fcName = isMap ? "flow map" : "flow sequence", NodeClass = (tag == null ? void 0 : tag.nodeClass) ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq), coll = new NodeClass(ctx.schema);
15177
+ let isMap = fc.start.source === "{", fcName = isMap ? "flow map" : "flow sequence", NodeClass = tag?.nodeClass ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq), coll = new NodeClass(ctx.schema);
15194
15178
  coll.flow = !0;
15195
15179
  let atRoot = ctx.atRoot;
15196
15180
  atRoot && (ctx.atRoot = !1);
@@ -15199,7 +15183,7 @@ var require_resolve_flow_collection = __commonJS({
15199
15183
  let collItem = fc.items[i], { start, key, sep: sep2, value } = collItem, props = resolveProps.resolveProps(start, {
15200
15184
  flow: fcName,
15201
15185
  indicator: "explicit-key-ind",
15202
- next: key ?? (sep2 == null ? void 0 : sep2[0]),
15186
+ next: key ?? sep2?.[0],
15203
15187
  offset,
15204
15188
  onError,
15205
15189
  startOnNewline: !1
@@ -15311,7 +15295,6 @@ var require_compose_collection = __commonJS({
15311
15295
  return tagName === "!" || tagName === Coll.tagName ? (coll.tag = Coll.tagName, coll) : (tagName && (coll.tag = tagName), coll);
15312
15296
  }
15313
15297
  function composeCollection(CN, ctx, token, tagToken, onError) {
15314
- var _a2;
15315
15298
  let tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null, expType = token.type === "block-map" ? "map" : token.type === "block-seq" ? "seq" : token.start.source === "{" ? "map" : "seq";
15316
15299
  if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq" || !expType)
15317
15300
  return resolveCollection(CN, ctx, token, onError, tagName);
@@ -15321,10 +15304,10 @@ var require_compose_collection = __commonJS({
15321
15304
  if (kt && kt.collection === expType)
15322
15305
  ctx.schema.tags.push(Object.assign({}, kt, { default: !1 })), tag = kt;
15323
15306
  else
15324
- return kt != null && kt.collection ? onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, !0) : onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, !0), resolveCollection(CN, ctx, token, onError, tagName);
15307
+ return kt?.collection ? onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, !0) : onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, !0), resolveCollection(CN, ctx, token, onError, tagName);
15325
15308
  }
15326
- let coll = resolveCollection(CN, ctx, token, onError, tagName, tag), res = ((_a2 = tag.resolve) == null ? void 0 : _a2.call(tag, coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options)) ?? coll, node = identity.isNode(res) ? res : new Scalar.Scalar(res);
15327
- return node.range = coll.range, node.tag = tagName, tag != null && tag.format && (node.format = tag.format), node;
15309
+ let coll = resolveCollection(CN, ctx, token, onError, tagName, tag), res = tag.resolve?.(coll, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg), ctx.options) ?? coll, node = identity.isNode(res) ? res : new Scalar.Scalar(res);
15310
+ return node.range = coll.range, node.tag = tagName, tag?.format && (node.format = tag.format), node;
15328
15311
  }
15329
15312
  exports2.composeCollection = composeCollection;
15330
15313
  }
@@ -15446,7 +15429,7 @@ var require_resolve_block_scalar = __commonJS({
15446
15429
  return { mode, indent, chomp, comment, length };
15447
15430
  }
15448
15431
  function splitLines(source) {
15449
- let split = source.split(/\n( *)/), first = split[0], m = first.match(/^( *)/), lines = [m != null && m[1] ? [m[1], first.slice(m[1].length)] : ["", first]];
15432
+ let split = source.split(/\n( *)/), first = split[0], m = first.match(/^( *)/), lines = [m?.[1] ? [m[1], first.slice(m[1].length)] : ["", first]];
15450
15433
  for (let i = 1; i < split.length; i += 2)
15451
15434
  lines.push([split[i], split[i + 1]]);
15452
15435
  return lines;
@@ -15534,7 +15517,7 @@ var require_resolve_flow_scalar = __commonJS({
15534
15517
  ` ? res += sep2 : sep2 = `
15535
15518
  ` : (res += sep2 + match2[1], sep2 = " "), pos = line.lastIndex;
15536
15519
  let last = /[ \t]*(.*)/sy;
15537
- return last.lastIndex = pos, match2 = last.exec(source), res + sep2 + ((match2 == null ? void 0 : match2[1]) ?? "");
15520
+ return last.lastIndex = pos, match2 = last.exec(source), res + sep2 + (match2?.[1] ?? "");
15538
15521
  }
15539
15522
  function doubleQuotedValue(source, onError) {
15540
15523
  let res = "";
@@ -15637,7 +15620,6 @@ var require_compose_scalar = __commonJS({
15637
15620
  return scalar.range = range, scalar.source = value, type && (scalar.type = type), tagName && (scalar.tag = tagName), tag.format && (scalar.format = tag.format), comment && (scalar.comment = comment), scalar;
15638
15621
  }
15639
15622
  function findScalarTagByName(schema, value, tagName, tagToken, onError) {
15640
- var _a2;
15641
15623
  if (tagName === "!")
15642
15624
  return schema[identity.SCALAR];
15643
15625
  let matchWithTest = [];
@@ -15648,21 +15630,15 @@ var require_compose_scalar = __commonJS({
15648
15630
  else
15649
15631
  return tag;
15650
15632
  for (let tag of matchWithTest)
15651
- if ((_a2 = tag.test) != null && _a2.test(value))
15633
+ if (tag.test?.test(value))
15652
15634
  return tag;
15653
15635
  let kt = schema.knownTags[tagName];
15654
15636
  return kt && !kt.collection ? (schema.tags.push(Object.assign({}, kt, { default: !1, test: void 0 })), kt) : (onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, tagName !== "tag:yaml.org,2002:str"), schema[identity.SCALAR]);
15655
15637
  }
15656
15638
  function findScalarTagByTest({ directives, schema }, value, token, onError) {
15657
- let tag = schema.tags.find((tag2) => {
15658
- var _a2;
15659
- return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
15660
- }) || schema[identity.SCALAR];
15639
+ let tag = schema.tags.find((tag2) => tag2.default && tag2.test?.test(value)) || schema[identity.SCALAR];
15661
15640
  if (schema.compat) {
15662
- let compat = schema.compat.find((tag2) => {
15663
- var _a2;
15664
- return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
15665
- }) ?? schema[identity.SCALAR];
15641
+ let compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity.SCALAR];
15666
15642
  if (tag.tag !== compat.tag) {
15667
15643
  let ts = directives.tagString(tag.tag), cs = directives.tagString(compat.tag), msg = `Value may be parsed as either ${ts} or ${cs}`;
15668
15644
  onError(token, "TAG_RESOLVE_FAILED", msg, !0);
@@ -15690,7 +15666,7 @@ var require_util_empty_scalar_position = __commonJS({
15690
15666
  offset -= st.source.length;
15691
15667
  continue;
15692
15668
  }
15693
- for (st = before[++i]; (st == null ? void 0 : st.type) === "space"; )
15669
+ for (st = before[++i]; st?.type === "space"; )
15694
15670
  offset += st.source.length, st = before[++i];
15695
15671
  break;
15696
15672
  }
@@ -15763,7 +15739,7 @@ var require_compose_doc = __commonJS({
15763
15739
  schema: doc.schema
15764
15740
  }, props = resolveProps.resolveProps(start, {
15765
15741
  indicator: "doc-start",
15766
- next: value ?? (end == null ? void 0 : end[0]),
15742
+ next: value ?? end?.[0],
15767
15743
  offset,
15768
15744
  onError,
15769
15745
  startOnNewline: !0
@@ -15790,7 +15766,6 @@ var require_composer = __commonJS({
15790
15766
  return [offset, offset + (typeof source == "string" ? source.length : 1)];
15791
15767
  }
15792
15768
  function parsePrelude(prelude) {
15793
- var _a2;
15794
15769
  let comment = "", atComment = !1, afterEmptyLine = !1;
15795
15770
  for (let i = 0; i < prelude.length; ++i) {
15796
15771
  let source = prelude[i];
@@ -15802,7 +15777,7 @@ var require_composer = __commonJS({
15802
15777
  `) + (source.substring(1) || " "), atComment = !0, afterEmptyLine = !1;
15803
15778
  break;
15804
15779
  case "%":
15805
- ((_a2 = prelude[i + 1]) == null ? void 0 : _a2[0]) !== "#" && (i += 1), atComment = !1;
15780
+ prelude[i + 1]?.[0] !== "#" && (i += 1), atComment = !1;
15806
15781
  break;
15807
15782
  default:
15808
15783
  atComment || (afterEmptyLine = !0), atComment = !1;
@@ -16164,7 +16139,7 @@ var require_cst_visit = __commonJS({
16164
16139
  visit.itemAtPath = (cst, path6) => {
16165
16140
  let item = cst;
16166
16141
  for (let [field, index] of path6) {
16167
- let tok = item == null ? void 0 : item[field];
16142
+ let tok = item?.[field];
16168
16143
  if (tok && "items" in tok)
16169
16144
  item = tok.items[index];
16170
16145
  else
@@ -16173,7 +16148,7 @@ var require_cst_visit = __commonJS({
16173
16148
  return item;
16174
16149
  };
16175
16150
  visit.parentCollection = (cst, path6) => {
16176
- let parent = visit.itemAtPath(cst, path6.slice(0, -1)), field = path6[path6.length - 1][0], coll = parent == null ? void 0 : parent[field];
16151
+ let parent = visit.itemAtPath(cst, path6.slice(0, -1)), field = path6[path6.length - 1][0], coll = parent?.[field];
16177
16152
  if (coll && "items" in coll)
16178
16153
  return coll;
16179
16154
  throw new Error("Parent collection not found");
@@ -16765,7 +16740,7 @@ var require_parser = __commonJS({
16765
16740
  return -1;
16766
16741
  }
16767
16742
  function isFlowToken(token) {
16768
- switch (token == null ? void 0 : token.type) {
16743
+ switch (token?.type) {
16769
16744
  case "alias":
16770
16745
  case "scalar":
16771
16746
  case "single-quoted-scalar":
@@ -16791,7 +16766,6 @@ var require_parser = __commonJS({
16791
16766
  }
16792
16767
  }
16793
16768
  function getFirstKeyStartProps(prev) {
16794
- var _a2;
16795
16769
  if (prev.length === 0)
16796
16770
  return [];
16797
16771
  let i = prev.length;
@@ -16805,7 +16779,7 @@ var require_parser = __commonJS({
16805
16779
  case "newline":
16806
16780
  break loop;
16807
16781
  }
16808
- for (; ((_a2 = prev[++i]) == null ? void 0 : _a2.type) === "space"; )
16782
+ for (; prev[++i]?.type === "space"; )
16809
16783
  ;
16810
16784
  return prev.splice(i, prev.length);
16811
16785
  }
@@ -17061,13 +17035,12 @@ var require_parser = __commonJS({
17061
17035
  }
17062
17036
  }
17063
17037
  *blockMap(map) {
17064
- var _a2;
17065
17038
  let it = map.items[map.items.length - 1];
17066
17039
  switch (this.type) {
17067
17040
  case "newline":
17068
17041
  if (this.onKeyLine = !1, it.value) {
17069
- let end = "end" in it.value ? it.value.end : void 0, last = Array.isArray(end) ? end[end.length - 1] : void 0;
17070
- (last == null ? void 0 : last.type) === "comment" ? end == null || end.push(this.sourceToken) : map.items.push({ start: [this.sourceToken] });
17042
+ let end = "end" in it.value ? it.value.end : void 0;
17043
+ (Array.isArray(end) ? end[end.length - 1] : void 0)?.type === "comment" ? end?.push(this.sourceToken) : map.items.push({ start: [this.sourceToken] });
17071
17044
  } else
17072
17045
  it.sep ? it.sep.push(this.sourceToken) : it.start.push(this.sourceToken);
17073
17046
  return;
@@ -17079,7 +17052,7 @@ var require_parser = __commonJS({
17079
17052
  it.sep.push(this.sourceToken);
17080
17053
  else {
17081
17054
  if (this.atIndentedComment(it.start, map.indent)) {
17082
- let prev = map.items[map.items.length - 2], end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
17055
+ let end = map.items[map.items.length - 2]?.value?.end;
17083
17056
  if (Array.isArray(end)) {
17084
17057
  Array.prototype.push.apply(end, it.start), end.push(this.sourceToken), map.items.pop();
17085
17058
  return;
@@ -17185,13 +17158,12 @@ var require_parser = __commonJS({
17185
17158
  yield* this.pop(), yield* this.step();
17186
17159
  }
17187
17160
  *blockSequence(seq) {
17188
- var _a2;
17189
17161
  let it = seq.items[seq.items.length - 1];
17190
17162
  switch (this.type) {
17191
17163
  case "newline":
17192
17164
  if (it.value) {
17193
- let end = "end" in it.value ? it.value.end : void 0, last = Array.isArray(end) ? end[end.length - 1] : void 0;
17194
- (last == null ? void 0 : last.type) === "comment" ? end == null || end.push(this.sourceToken) : seq.items.push({ start: [this.sourceToken] });
17165
+ let end = "end" in it.value ? it.value.end : void 0;
17166
+ (Array.isArray(end) ? end[end.length - 1] : void 0)?.type === "comment" ? end?.push(this.sourceToken) : seq.items.push({ start: [this.sourceToken] });
17195
17167
  } else
17196
17168
  it.start.push(this.sourceToken);
17197
17169
  return;
@@ -17201,7 +17173,7 @@ var require_parser = __commonJS({
17201
17173
  seq.items.push({ start: [this.sourceToken] });
17202
17174
  else {
17203
17175
  if (this.atIndentedComment(it.start, seq.indent)) {
17204
- let prev = seq.items[seq.items.length - 2], end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
17176
+ let end = seq.items[seq.items.length - 2]?.value?.end;
17205
17177
  if (Array.isArray(end)) {
17206
17178
  Array.prototype.push.apply(end, it.start), end.push(this.sourceToken), seq.items.pop();
17207
17179
  return;
@@ -17398,14 +17370,14 @@ var require_public_api = __commonJS({
17398
17370
  return { lineCounter: options.lineCounter || prettyErrors && new lineCounter.LineCounter() || null, prettyErrors };
17399
17371
  }
17400
17372
  function parseAllDocuments(source, options = {}) {
17401
- let { lineCounter: lineCounter2, prettyErrors } = parseOptions(options), parser$1 = new parser.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine), composer$1 = new composer.Composer(options), docs = Array.from(composer$1.compose(parser$1.parse(source)));
17373
+ let { lineCounter: lineCounter2, prettyErrors } = parseOptions(options), parser$1 = new parser.Parser(lineCounter2?.addNewLine), composer$1 = new composer.Composer(options), docs = Array.from(composer$1.compose(parser$1.parse(source)));
17402
17374
  if (prettyErrors && lineCounter2)
17403
17375
  for (let doc of docs)
17404
17376
  doc.errors.forEach(errors.prettifyError(source, lineCounter2)), doc.warnings.forEach(errors.prettifyError(source, lineCounter2));
17405
17377
  return docs.length > 0 ? docs : Object.assign([], { empty: !0 }, composer$1.streamInfo());
17406
17378
  }
17407
17379
  function parseDocument(source, options = {}) {
17408
- let { lineCounter: lineCounter2, prettyErrors } = parseOptions(options), parser$1 = new parser.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine), composer$1 = new composer.Composer(options), doc = null;
17380
+ let { lineCounter: lineCounter2, prettyErrors } = parseOptions(options), parser$1 = new parser.Parser(lineCounter2?.addNewLine), composer$1 = new composer.Composer(options), doc = null;
17409
17381
  for (let _doc of composer$1.compose(parser$1.parse(source), !0, source.length))
17410
17382
  if (!doc)
17411
17383
  doc = _doc;
@@ -18794,18 +18766,17 @@ var require_CocoaPodsPackageManager = __commonJS({
18794
18766
  function getPodUpdateMessage(output) {
18795
18767
  let props = output.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);
18796
18768
  return {
18797
- updatePackage: (props == null ? void 0 : props[1]) ?? null,
18798
- shouldUpdateRepo: !(props != null && props[2])
18769
+ updatePackage: props?.[1] ?? null,
18770
+ shouldUpdateRepo: !props?.[2]
18799
18771
  };
18800
18772
  }
18801
18773
  exports2.getPodUpdateMessage = getPodUpdateMessage;
18802
18774
  function getPodRepoUpdateMessage(errorOutput) {
18803
18775
  let warningInfo = extractMissingDependencyError(errorOutput), brokenPackage = getPodUpdateMessage(errorOutput), message;
18804
- return warningInfo ? message = `Couldn't install: ${warningInfo[1]} \xBB ${chalk_1.default.underline(warningInfo[0])}.` : brokenPackage != null && brokenPackage.updatePackage ? message = `Couldn't install: ${brokenPackage == null ? void 0 : brokenPackage.updatePackage}.` : message = "Couldn't install Pods.", message += " Updating the Pods project and trying again...", { message, ...brokenPackage };
18776
+ return warningInfo ? message = `Couldn't install: ${warningInfo[1]} \xBB ${chalk_1.default.underline(warningInfo[0])}.` : brokenPackage?.updatePackage ? message = `Couldn't install: ${brokenPackage?.updatePackage}.` : message = "Couldn't install Pods.", message += " Updating the Pods project and trying again...", { message, ...brokenPackage };
18805
18777
  }
18806
18778
  exports2.getPodRepoUpdateMessage = getPodRepoUpdateMessage;
18807
18779
  function getImprovedPodInstallError(error, { cwd: cwd2 = process.cwd() }) {
18808
- var _a2, _b;
18809
18780
  let errorOutput = error.output.join(os_1.default.EOL).trim();
18810
18781
  if (error.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/))
18811
18782
  error.message = `No Podfile found in directory: ${cwd2}. Ensure CocoaPods is setup any try again.`;
@@ -18813,7 +18784,7 @@ var require_CocoaPodsPackageManager = __commonJS({
18813
18784
  let warningInfo = extractMissingDependencyError(errorOutput), reason;
18814
18785
  warningInfo ? reason = `Couldn't install: ${warningInfo[1]} \xBB ${chalk_1.default.underline(warningInfo[0])}` : reason = "This is often due to native package versions mismatching";
18815
18786
  let solution;
18816
- if (warningInfo != null && warningInfo[0] ? warningInfo[0].match(/^(?:@?expo|@?react)(-|\/)/) ? solution = `Ensure the node module "${warningInfo[0]}" is installed in your project, then run 'npx pod-install' to try again.` : solution = `Ensure the CocoaPod "${warningInfo[0]}" is installed in your project, then run 'npx pod-install' to try again.` : solution = "Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.", error.message = `${reason}. ${solution}`, error.stdout) {
18787
+ if (warningInfo?.[0] ? warningInfo[0].match(/^(?:@?expo|@?react)(-|\/)/) ? solution = `Ensure the node module "${warningInfo[0]}" is installed in your project, then run 'npx pod-install' to try again.` : solution = `Ensure the CocoaPod "${warningInfo[0]}" is installed in your project, then run 'npx pod-install' to try again.` : solution = "Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.", error.message = `${reason}. ${solution}`, error.stdout) {
18817
18788
  let cocoapodsDebugInfo = error.stdout.split(os_1.default.EOL), firstWarning = cocoapodsDebugInfo.findIndex((v) => v.startsWith("[!]"));
18818
18789
  if (firstWarning !== -1) {
18819
18790
  let warning = cocoapodsDebugInfo.slice(firstWarning).join(os_1.default.EOL);
@@ -18824,8 +18795,8 @@ ${chalk_1.default.gray(warning)}`;
18824
18795
  }
18825
18796
  return new CocoaPodsError("Command `pod install --repo-update` failed.", "COMMAND_FAILED", error);
18826
18797
  } else {
18827
- let stderr = error.stderr.trim(), usefulError = (_a2 = error.stdout.match(/\[!\]\s((?:.|\n)*)/)) == null ? void 0 : _a2[1];
18828
- usefulError && ((_b = error.message) != null && _b.match(/pod exited with non-zero code: 1/) && (error.message = ""), stderr = null), error.message = [usefulError, error.message, stderr].filter(Boolean).join(`
18798
+ let stderr = error.stderr.trim(), usefulError = error.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];
18799
+ usefulError && (error.message?.match(/pod exited with non-zero code: 1/) && (error.message = ""), stderr = null), error.message = [usefulError, error.message, stderr].filter(Boolean).join(`
18829
18800
  `);
18830
18801
  }
18831
18802
  return new CocoaPodsError("Command `pod install` failed.", "COMMAND_FAILED", error);
@@ -21364,7 +21335,7 @@ ${codeFrame}`;
21364
21335
  return defaultValue;
21365
21336
  }
21366
21337
  async function writeAsync(file, object, options) {
21367
- options != null && options.ensureDir && await fs_1.default.promises.mkdir(path_1.default.dirname(file), { recursive: !0 });
21338
+ options?.ensureDir && await fs_1.default.promises.mkdir(path_1.default.dirname(file), { recursive: !0 });
21368
21339
  let space = _getOption(options, "space"), json5 = _getOption(options, "json5"), addNewLineAtEOF = _getOption(options, "addNewLineAtEOF"), json;
21369
21340
  try {
21370
21341
  json5 ? json = json5_1.default.stringify(object, null, space) : json = JSON.stringify(object, null, space);
@@ -21419,7 +21390,7 @@ ${codeFrame}`;
21419
21390
  return null;
21420
21391
  }
21421
21392
  function assertEmptyJsonString(json, file) {
21422
- if ((json == null ? void 0 : json.trim()) === "")
21393
+ if (json?.trim() === "")
21423
21394
  throw new JsonFileError_1.EmptyJsonFileError(file);
21424
21395
  }
21425
21396
  }
@@ -22946,13 +22917,11 @@ var require_BasePackageManager = __commonJS({
22946
22917
  }
22947
22918
  /** Ensure the CWD is set to a non-empty string */
22948
22919
  ensureCwdDefined(method) {
22949
- var _a2;
22950
- let cwd2 = (_a2 = this.options.cwd) == null ? void 0 : _a2.toString(), className = this.constructor.name, methodName = method ? `.${method}` : "";
22920
+ let cwd2 = this.options.cwd?.toString(), className = this.constructor.name, methodName = method ? `.${method}` : "";
22951
22921
  return (0, assert_1.default)(cwd2, `cwd is required for ${className}${methodName}`), cwd2;
22952
22922
  }
22953
22923
  runAsync(command) {
22954
- var _a2;
22955
- return (_a2 = this.log) == null || _a2.call(this, `> ${this.name} ${command.join(" ")}`), (0, spawn_async_1.default)(this.bin, command, this.options);
22924
+ return this.log?.(`> ${this.name} ${command.join(" ")}`), (0, spawn_async_1.default)(this.bin, command, this.options);
22956
22925
  }
22957
22926
  async versionAsync() {
22958
22927
  return await this.runAsync(["--version"]).then(({ stdout }) => stdout.trim());
@@ -24979,10 +24948,9 @@ var require_NpmPackageManager = __commonJS({
24979
24948
  * As a workaround, we update the `package.json` directly and run `npm install`.
24980
24949
  */
24981
24950
  async updatePackageFileAsync(packageSpecs, packageType) {
24982
- var _a2;
24983
24951
  if (!packageSpecs.length)
24984
24952
  return;
24985
- let pkgPath = path_1.default.join(((_a2 = this.options.cwd) == null ? void 0 : _a2.toString()) || ".", "package.json"), pkg = await json_file_1.default.readAsync(pkgPath);
24953
+ let pkgPath = path_1.default.join(this.options.cwd?.toString() || ".", "package.json"), pkg = await json_file_1.default.readAsync(pkgPath);
24986
24954
  packageSpecs.forEach((spec) => {
24987
24955
  pkg[packageType] = pkg[packageType] || {}, pkg[packageType][spec.name] = spec.rawSpec;
24988
24956
  }), await json_file_1.default.writeAsync(pkgPath, pkg, { json5: !1 });
@@ -25001,7 +24969,7 @@ var require_env = __commonJS({
25001
24969
  /** Determine if the package manager is running in a CI environment. */
25002
24970
  get CI() {
25003
24971
  let { CI } = process.env;
25004
- return (CI == null ? void 0 : CI.toLowerCase()) === "true" || CI === "1";
24972
+ return CI?.toLowerCase() === "true" || CI === "1";
25005
24973
  }
25006
24974
  };
25007
24975
  exports2.default = new Env();
@@ -25875,7 +25843,7 @@ function formatCmd(cmd) {
25875
25843
  next != state && (out += style(state, buf), buf = ""), state = next == root ? next() : next, buf += ch;
25876
25844
  }
25877
25845
  function style(state2, s) {
25878
- return s == "" ? "" : reservedWords.includes(s) ? source_default.cyanBright(s) : state2 == word && wordCount == 0 ? (wordCount++, source_default.greenBright(s)) : state2 == syntax ? (wordCount = 0, source_default.cyanBright(s)) : state2 == dollar ? source_default.yellowBright(s) : state2 != null && state2.name.startsWith("str") ? source_default.yellowBright(s) : s;
25846
+ return s == "" ? "" : reservedWords.includes(s) ? source_default.cyanBright(s) : state2 == word && wordCount == 0 ? (wordCount++, source_default.greenBright(s)) : state2 == syntax ? (wordCount = 0, source_default.cyanBright(s)) : state2 == dollar ? source_default.yellowBright(s) : state2?.name.startsWith("str") ? source_default.yellowBright(s) : s;
25879
25847
  }
25880
25848
  function isSyntax(ch2) {
25881
25849
  return "()[]{}<>;:+|&=".includes(ch2);
@@ -25983,7 +25951,7 @@ var $ = new Proxy(function(pieces, ...args) {
25983
25951
  }
25984
25952
  });
25985
25953
  function substitute(arg) {
25986
- return arg != null && arg.stdout ? arg.stdout.replace(/\n$/, "") : `${arg}`;
25954
+ return arg?.stdout ? arg.stdout.replace(/\n$/, "") : `${arg}`;
25987
25955
  }
25988
25956
  var ProcessPromise = class _ProcessPromise extends Promise {
25989
25957
  constructor() {
@@ -25993,7 +25961,6 @@ var ProcessPromise = class _ProcessPromise extends Promise {
25993
25961
  this._command = cmd, this._from = from, this._resolve = resolve7, this._reject = reject, this._snapshot = { ...options };
25994
25962
  }
25995
25963
  run() {
25996
- var _a2, _b;
25997
25964
  let $3 = this._snapshot;
25998
25965
  if (this.child)
25999
25966
  return this;
@@ -26027,7 +25994,7 @@ var ProcessPromise = class _ProcessPromise extends Promise {
26027
25994
  }, onStderr = (data) => {
26028
25995
  $3.log({ kind: "stderr", data, verbose: $3.verbose && !this._quiet }), stderr += data, combined += data;
26029
25996
  };
26030
- if (this._piped || (_a2 = this.child.stdout) == null || _a2.on("data", onStdout), (_b = this.child.stderr) == null || _b.on("data", onStderr), this._postrun(), this._timeout && this._timeoutSignal) {
25997
+ if (this._piped || this.child.stdout?.on("data", onStdout), this.child.stderr?.on("data", onStderr), this._postrun(), this._timeout && this._timeoutSignal) {
26031
25998
  let t = setTimeout(() => this.kill(this._timeoutSignal), this._timeout);
26032
25999
  this.finally(() => clearTimeout(t)).catch(noop);
26033
26000
  }
@@ -26372,7 +26339,7 @@ var globby2 = Object.assign(function(patterns, options) {
26372
26339
  // package.json
26373
26340
  var package_default = {
26374
26341
  name: "create-tamagui",
26375
- version: "1.88.0",
26342
+ version: "1.88.1",
26376
26343
  bin: "./run.js",
26377
26344
  main: "dist",
26378
26345
  files: [
@@ -26393,7 +26360,7 @@ var package_default = {
26393
26360
  devDependencies: {
26394
26361
  "@expo/package-manager": "^1.1.2",
26395
26362
  "@playwright/test": "^1.40.1",
26396
- "@tamagui/build": "1.88.0",
26363
+ "@tamagui/build": "1.88.1",
26397
26364
  "@types/async-retry": "1.4.2",
26398
26365
  "@types/cross-spawn": "^6.0.2",
26399
26366
  "@types/node": "^16.11.9",
@@ -26683,15 +26650,13 @@ var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType =
26683
26650
  }
26684
26651
  }
26685
26652
  toJSON() {
26686
- var _a2;
26687
26653
  let ret = this.type === null ? this.#parts.slice().map((p) => typeof p == "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
26688
- return this.isStart() && !this.type && ret.unshift([]), this.isEnd() && (this === this.#root || this.#root.#filledNegs && ((_a2 = this.#parent) == null ? void 0 : _a2.type) === "!") && ret.push({}), ret;
26654
+ return this.isStart() && !this.type && ret.unshift([]), this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!") && ret.push({}), ret;
26689
26655
  }
26690
26656
  isStart() {
26691
- var _a2;
26692
26657
  if (this.#root === this)
26693
26658
  return !0;
26694
- if (!((_a2 = this.#parent) != null && _a2.isStart()))
26659
+ if (!this.#parent?.isStart())
26695
26660
  return !1;
26696
26661
  if (this.#parentIndex === 0)
26697
26662
  return !0;
@@ -26704,13 +26669,12 @@ var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType =
26704
26669
  return !0;
26705
26670
  }
26706
26671
  isEnd() {
26707
- var _a2, _b, _c;
26708
- if (this.#root === this || ((_a2 = this.#parent) == null ? void 0 : _a2.type) === "!")
26672
+ if (this.#root === this || this.#parent?.type === "!")
26709
26673
  return !0;
26710
- if (!((_b = this.#parent) != null && _b.isEnd()))
26674
+ if (!this.#parent?.isEnd())
26711
26675
  return !1;
26712
26676
  if (!this.type)
26713
- return (_c = this.#parent) == null ? void 0 : _c.isEnd();
26677
+ return this.#parent?.isEnd();
26714
26678
  let pl = this.#parent ? this.#parent.#parts.length : 0;
26715
26679
  return this.#parentIndex === pl - 1;
26716
26680
  }
@@ -26868,7 +26832,6 @@ var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType =
26868
26832
  // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
26869
26833
  // or start or whatever) and prepend ^ or / at the Regexp construction.
26870
26834
  toRegExpSource(allowDot) {
26871
- var _a2;
26872
26835
  let dot = allowDot ?? !!this.#options.dot;
26873
26836
  if (this.#root === this && this.#fillNegs(), !this.type) {
26874
26837
  let noEmpty = this.isStart() && this.isEnd(), src = this.#parts.map((p) => {
@@ -26885,7 +26848,7 @@ var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), isExtglobType =
26885
26848
  start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
26886
26849
  }
26887
26850
  let end = "";
26888
- return this.isEnd() && this.#root.#filledNegs && ((_a2 = this.#parent) == null ? void 0 : _a2.type) === "!" && (end = "(?:$|\\/)"), [
26851
+ return this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!" && (end = "(?:$|\\/)"), [
26889
26852
  start2 + src + end,
26890
26853
  unescape(src),
26891
26854
  this.#hasMagic = !!this.#hasMagic,
@@ -27382,7 +27345,7 @@ minimatch.unescape = unescape;
27382
27345
  // ../../node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.js
27383
27346
  var perf = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, warned = /* @__PURE__ */ new Set(), PROCESS = typeof process == "object" && process ? process : {}, emitWarning = (msg, type, code, fn) => {
27384
27347
  typeof PROCESS.emitWarning == "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
27385
- }, AC = globalThis.AbortController, AS = globalThis.AbortSignal, _a;
27348
+ }, AC = globalThis.AbortController, AS = globalThis.AbortSignal;
27386
27349
  if (typeof AC > "u") {
27387
27350
  AS = class {
27388
27351
  onabort;
@@ -27398,16 +27361,15 @@ if (typeof AC > "u") {
27398
27361
  }
27399
27362
  signal = new AS();
27400
27363
  abort(reason) {
27401
- var _a2, _b;
27402
27364
  if (!this.signal.aborted) {
27403
27365
  this.signal.reason = reason, this.signal.aborted = !0;
27404
27366
  for (let fn of this.signal._onabort)
27405
27367
  fn(reason);
27406
- (_b = (_a2 = this.signal).onabort) == null || _b.call(_a2, reason);
27368
+ this.signal.onabort?.(reason);
27407
27369
  }
27408
27370
  }
27409
27371
  };
27410
- let printACPolyfillWarning = ((_a = PROCESS.env) == null ? void 0 : _a.LRU_CACHE_IGNORE_AC_WARNING) !== "1", warnACPolyfill = () => {
27372
+ let printACPolyfillWarning = PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", warnACPolyfill = () => {
27411
27373
  printACPolyfillWarning && (printACPolyfillWarning = !1, emitWarning("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", warnACPolyfill));
27412
27374
  };
27413
27375
  }
@@ -27890,7 +27852,6 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27890
27852
  * {@link LRUCache#delete}
27891
27853
  */
27892
27854
  set(k, v, setOptions = {}) {
27893
- var _a2, _b, _c, _d, _e;
27894
27855
  if (v === void 0)
27895
27856
  return this.delete(k), this;
27896
27857
  let { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions, { noUpdateTTL = this.noUpdateTTL } = setOptions, size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation);
@@ -27906,9 +27867,9 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27906
27867
  if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {
27907
27868
  oldVal.__abortController.abort(new Error("replaced"));
27908
27869
  let { __staleWhileFetching: s } = oldVal;
27909
- s !== void 0 && !noDisposeOnSet && (this.#hasDispose && ((_a2 = this.#dispose) == null || _a2.call(this, s, k, "set")), this.#hasDisposeAfter && ((_b = this.#disposed) == null || _b.push([s, k, "set"])));
27870
+ s !== void 0 && !noDisposeOnSet && (this.#hasDispose && this.#dispose?.(s, k, "set"), this.#hasDisposeAfter && this.#disposed?.push([s, k, "set"]));
27910
27871
  } else
27911
- noDisposeOnSet || (this.#hasDispose && ((_c = this.#dispose) == null || _c.call(this, oldVal, k, "set")), this.#hasDisposeAfter && ((_d = this.#disposed) == null || _d.push([oldVal, k, "set"])));
27872
+ noDisposeOnSet || (this.#hasDispose && this.#dispose?.(oldVal, k, "set"), this.#hasDisposeAfter && this.#disposed?.push([oldVal, k, "set"]));
27912
27873
  if (this.#removeItemSize(index), this.#addItemSize(index, size, status), this.#valList[index] = v, status) {
27913
27874
  status.set = "replace";
27914
27875
  let oldValue = oldVal && this.#isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
@@ -27919,8 +27880,8 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27919
27880
  }
27920
27881
  if (ttl !== 0 && !this.#ttls && this.#initializeTTLTracking(), this.#ttls && (noUpdateTTL || this.#setItemTTL(index, ttl, start), status && this.#statusTTL(status, index)), !noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {
27921
27882
  let dt = this.#disposed, task;
27922
- for (; task = dt == null ? void 0 : dt.shift(); )
27923
- (_e = this.#disposeAfter) == null || _e.call(this, ...task);
27883
+ for (; task = dt?.shift(); )
27884
+ this.#disposeAfter?.(...task);
27924
27885
  }
27925
27886
  return this;
27926
27887
  }
@@ -27929,7 +27890,6 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27929
27890
  * `undefined` if cache is empty.
27930
27891
  */
27931
27892
  pop() {
27932
- var _a2;
27933
27893
  try {
27934
27894
  for (; this.#size; ) {
27935
27895
  let val = this.#valList[this.#head];
@@ -27942,15 +27902,14 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27942
27902
  } finally {
27943
27903
  if (this.#hasDisposeAfter && this.#disposed) {
27944
27904
  let dt = this.#disposed, task;
27945
- for (; task = dt == null ? void 0 : dt.shift(); )
27946
- (_a2 = this.#disposeAfter) == null || _a2.call(this, ...task);
27905
+ for (; task = dt?.shift(); )
27906
+ this.#disposeAfter?.(...task);
27947
27907
  }
27948
27908
  }
27949
27909
  }
27950
27910
  #evict(free) {
27951
- var _a2, _b;
27952
27911
  let head = this.#head, k = this.#keyList[head], v = this.#valList[head];
27953
- return this.#hasFetchMethod && this.#isBackgroundFetch(v) ? v.__abortController.abort(new Error("evicted")) : (this.#hasDispose || this.#hasDisposeAfter) && (this.#hasDispose && ((_a2 = this.#dispose) == null || _a2.call(this, v, k, "evict")), this.#hasDisposeAfter && ((_b = this.#disposed) == null || _b.push([v, k, "evict"]))), this.#removeItemSize(head), free && (this.#keyList[head] = void 0, this.#valList[head] = void 0, this.#free.push(head)), this.#size === 1 ? (this.#head = this.#tail = 0, this.#free.length = 0) : this.#head = this.#next[head], this.#keyMap.delete(k), this.#size--, head;
27912
+ return this.#hasFetchMethod && this.#isBackgroundFetch(v) ? v.__abortController.abort(new Error("evicted")) : (this.#hasDispose || this.#hasDisposeAfter) && (this.#hasDispose && this.#dispose?.(v, k, "evict"), this.#hasDisposeAfter && this.#disposed?.push([v, k, "evict"])), this.#removeItemSize(head), free && (this.#keyList[head] = void 0, this.#valList[head] = void 0, this.#free.push(head)), this.#size === 1 ? (this.#head = this.#tail = 0, this.#free.length = 0) : this.#head = this.#next[head], this.#keyMap.delete(k), this.#size--, head;
27954
27913
  }
27955
27914
  /**
27956
27915
  * Check if a key is in the cache, without updating the recency of use.
@@ -27993,7 +27952,7 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
27993
27952
  if (this.#isBackgroundFetch(v))
27994
27953
  return v;
27995
27954
  let ac = new AC(), { signal } = options;
27996
- signal == null || signal.addEventListener("abort", () => ac.abort(signal.reason), {
27955
+ signal?.addEventListener("abort", () => ac.abort(signal.reason), {
27997
27956
  signal: ac.signal
27998
27957
  });
27999
27958
  let fetchOpts = {
@@ -28013,8 +27972,7 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
28013
27972
  if (bf2.__returned === bf2)
28014
27973
  throw er;
28015
27974
  }, pcall = (res, rej) => {
28016
- var _a2;
28017
- let fmp = (_a2 = this.#fetchMethod) == null ? void 0 : _a2.call(this, k, v, fetchOpts);
27975
+ let fmp = this.#fetchMethod?.(k, v, fetchOpts);
28018
27976
  fmp && fmp instanceof Promise && fmp.then((v2) => res(v2 === void 0 ? void 0 : v2), rej), ac.signal.addEventListener("abort", () => {
28019
27977
  (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) && (res(void 0), options.allowStaleOnFetchAbort && (res = (v2) => cb(v2, !0)));
28020
27978
  });
@@ -28120,7 +28078,6 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
28120
28078
  * Returns true if the key was deleted, false otherwise.
28121
28079
  */
28122
28080
  delete(k) {
28123
- var _a2, _b, _c, _d;
28124
28081
  let deleted = !1;
28125
28082
  if (this.#size !== 0) {
28126
28083
  let index = this.#keyMap.get(k);
@@ -28130,13 +28087,13 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
28130
28087
  else {
28131
28088
  this.#removeItemSize(index);
28132
28089
  let v = this.#valList[index];
28133
- this.#isBackgroundFetch(v) ? v.__abortController.abort(new Error("deleted")) : (this.#hasDispose || this.#hasDisposeAfter) && (this.#hasDispose && ((_a2 = this.#dispose) == null || _a2.call(this, v, k, "delete")), this.#hasDisposeAfter && ((_b = this.#disposed) == null || _b.push([v, k, "delete"]))), this.#keyMap.delete(k), this.#keyList[index] = void 0, this.#valList[index] = void 0, index === this.#tail ? this.#tail = this.#prev[index] : index === this.#head ? this.#head = this.#next[index] : (this.#next[this.#prev[index]] = this.#next[index], this.#prev[this.#next[index]] = this.#prev[index]), this.#size--, this.#free.push(index);
28090
+ this.#isBackgroundFetch(v) ? v.__abortController.abort(new Error("deleted")) : (this.#hasDispose || this.#hasDisposeAfter) && (this.#hasDispose && this.#dispose?.(v, k, "delete"), this.#hasDisposeAfter && this.#disposed?.push([v, k, "delete"])), this.#keyMap.delete(k), this.#keyList[index] = void 0, this.#valList[index] = void 0, index === this.#tail ? this.#tail = this.#prev[index] : index === this.#head ? this.#head = this.#next[index] : (this.#next[this.#prev[index]] = this.#next[index], this.#prev[this.#next[index]] = this.#prev[index]), this.#size--, this.#free.push(index);
28134
28091
  }
28135
28092
  }
28136
- if (this.#hasDisposeAfter && ((_c = this.#disposed) != null && _c.length)) {
28093
+ if (this.#hasDisposeAfter && this.#disposed?.length) {
28137
28094
  let dt = this.#disposed, task;
28138
- for (; task = dt == null ? void 0 : dt.shift(); )
28139
- (_d = this.#disposeAfter) == null || _d.call(this, ...task);
28095
+ for (; task = dt?.shift(); )
28096
+ this.#disposeAfter?.(...task);
28140
28097
  }
28141
28098
  return deleted;
28142
28099
  }
@@ -28144,20 +28101,19 @@ var shouldWarn = (code) => !warned.has(code), TYPE = Symbol("type"), isPosInt =
28144
28101
  * Clear the cache entirely, throwing away all values.
28145
28102
  */
28146
28103
  clear() {
28147
- var _a2, _b, _c;
28148
28104
  for (let index of this.#rindexes({ allowStale: !0 })) {
28149
28105
  let v = this.#valList[index];
28150
28106
  if (this.#isBackgroundFetch(v))
28151
28107
  v.__abortController.abort(new Error("deleted"));
28152
28108
  else {
28153
28109
  let k = this.#keyList[index];
28154
- this.#hasDispose && ((_a2 = this.#dispose) == null || _a2.call(this, v, k, "delete")), this.#hasDisposeAfter && ((_b = this.#disposed) == null || _b.push([v, k, "delete"]));
28110
+ this.#hasDispose && this.#dispose?.(v, k, "delete"), this.#hasDisposeAfter && this.#disposed?.push([v, k, "delete"]);
28155
28111
  }
28156
28112
  }
28157
28113
  if (this.#keyMap.clear(), this.#valList.fill(void 0), this.#keyList.fill(void 0), this.#ttls && this.#starts && (this.#ttls.fill(0), this.#starts.fill(0)), this.#sizes && this.#sizes.fill(0), this.#head = 0, this.#tail = 0, this.#free.length = 0, this.#calculatedSize = 0, this.#size = 0, this.#hasDisposeAfter && this.#disposed) {
28158
28114
  let dt = this.#disposed, task;
28159
- for (; task = dt == null ? void 0 : dt.shift(); )
28160
- (_c = this.#disposeAfter) == null || _c.call(this, ...task);
28115
+ for (; task = dt?.shift(); )
28116
+ this.#disposeAfter?.(...task);
28161
28117
  }
28162
28118
  }
28163
28119
  };
@@ -28298,8 +28254,7 @@ s.pipe !== import_stream.default.Writable.prototype.pipe, isWritable = (s) => !!
28298
28254
  }
28299
28255
  // drop everything and get out of the flow completely
28300
28256
  [ABORT]() {
28301
- var _a2, _b;
28302
- this[ABORTED] = !0, this.emit("abort", (_a2 = this[SIGNAL]) == null ? void 0 : _a2.reason), this.destroy((_b = this[SIGNAL]) == null ? void 0 : _b.reason);
28257
+ this[ABORTED] = !0, this.emit("abort", this[SIGNAL]?.reason), this.destroy(this[SIGNAL]?.reason);
28303
28258
  }
28304
28259
  /**
28305
28260
  * True if the stream has been aborted.
@@ -28314,7 +28269,6 @@ s.pipe !== import_stream.default.Writable.prototype.pipe, isWritable = (s) => !!
28314
28269
  set aborted(_) {
28315
28270
  }
28316
28271
  write(chunk, encoding, cb) {
28317
- var _a2;
28318
28272
  if (this[ABORTED])
28319
28273
  return !1;
28320
28274
  if (this[EOF])
@@ -28332,7 +28286,7 @@ s.pipe !== import_stream.default.Writable.prototype.pipe, isWritable = (s) => !!
28332
28286
  throw new Error("Non-contiguous data written to non-objectMode stream");
28333
28287
  }
28334
28288
  return this[OBJECTMODE] ? (this[FLOWING] && this[BUFFERLENGTH] !== 0 && this[FLUSH](!0), this[FLOWING] ? this.emit("data", chunk) : this[BUFFERPUSH](chunk), this[BUFFERLENGTH] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING]) : chunk.length ? (typeof chunk == "string" && // unless it is a string already ready for us to use
28335
- !(encoding === this[ENCODING] && !((_a2 = this[DECODER]) != null && _a2.lastNeed)) && (chunk = Buffer.from(chunk, encoding)), Buffer.isBuffer(chunk) && this[ENCODING] && (chunk = this[DECODER].write(chunk)), this[FLOWING] && this[BUFFERLENGTH] !== 0 && this[FLUSH](!0), this[FLOWING] ? this.emit("data", chunk) : this[BUFFERPUSH](chunk), this[BUFFERLENGTH] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING]) : (this[BUFFERLENGTH] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING]);
28289
+ !(encoding === this[ENCODING] && !this[DECODER]?.lastNeed) && (chunk = Buffer.from(chunk, encoding)), Buffer.isBuffer(chunk) && this[ENCODING] && (chunk = this[DECODER].write(chunk)), this[FLOWING] && this[BUFFERLENGTH] !== 0 && this[FLUSH](!0), this[FLOWING] ? this.emit("data", chunk) : this[BUFFERPUSH](chunk), this[BUFFERLENGTH] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING]) : (this[BUFFERLENGTH] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING]);
28336
28290
  }
28337
28291
  /**
28338
28292
  * Low-level explicit read method.
@@ -29751,28 +29705,28 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
29751
29705
  }) {
29752
29706
  typeof entry == "string" ? entry = this.cwd.resolve(entry) : entry instanceof PathBase || (withFileTypes = entry.withFileTypes, entry = this.cwd);
29753
29707
  let e = await entry.readlink();
29754
- return withFileTypes ? e : e == null ? void 0 : e.fullpath();
29708
+ return withFileTypes ? e : e?.fullpath();
29755
29709
  }
29756
29710
  readlinkSync(entry = this.cwd, { withFileTypes } = {
29757
29711
  withFileTypes: !1
29758
29712
  }) {
29759
29713
  typeof entry == "string" ? entry = this.cwd.resolve(entry) : entry instanceof PathBase || (withFileTypes = entry.withFileTypes, entry = this.cwd);
29760
29714
  let e = entry.readlinkSync();
29761
- return withFileTypes ? e : e == null ? void 0 : e.fullpath();
29715
+ return withFileTypes ? e : e?.fullpath();
29762
29716
  }
29763
29717
  async realpath(entry = this.cwd, { withFileTypes } = {
29764
29718
  withFileTypes: !1
29765
29719
  }) {
29766
29720
  typeof entry == "string" ? entry = this.cwd.resolve(entry) : entry instanceof PathBase || (withFileTypes = entry.withFileTypes, entry = this.cwd);
29767
29721
  let e = await entry.realpath();
29768
- return withFileTypes ? e : e == null ? void 0 : e.fullpath();
29722
+ return withFileTypes ? e : e?.fullpath();
29769
29723
  }
29770
29724
  realpathSync(entry = this.cwd, { withFileTypes } = {
29771
29725
  withFileTypes: !1
29772
29726
  }) {
29773
29727
  typeof entry == "string" ? entry = this.cwd.resolve(entry) : entry instanceof PathBase || (withFileTypes = entry.withFileTypes, entry = this.cwd);
29774
29728
  let e = entry.realpathSync();
29775
- return withFileTypes ? e : e == null ? void 0 : e.fullpath();
29729
+ return withFileTypes ? e : e?.fullpath();
29776
29730
  }
29777
29731
  async walk(entry = this.cwd, opts = {}) {
29778
29732
  typeof entry == "string" ? entry = this.cwd.resolve(entry) : entry instanceof PathBase || (opts = entry, entry = this.cwd);
@@ -29789,7 +29743,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
29789
29743
  --len === 0 && cb();
29790
29744
  };
29791
29745
  for (let e of entries)
29792
- (!filter2 || filter2(e)) && results.push(withFileTypes ? e : e.fullpath()), follow && e.isSymbolicLink() ? e.realpath().then((r) => r != null && r.isUnknown() ? r.lstat() : r).then((r) => r != null && r.shouldWalk(dirs, walkFilter) ? walk(r, next) : next()) : e.shouldWalk(dirs, walkFilter) ? walk(e, next) : next();
29746
+ (!filter2 || filter2(e)) && results.push(withFileTypes ? e : e.fullpath()), follow && e.isSymbolicLink() ? e.realpath().then((r) => r?.isUnknown() ? r.lstat() : r).then((r) => r?.shouldWalk(dirs, walkFilter) ? walk(r, next) : next()) : e.shouldWalk(dirs, walkFilter) ? walk(e, next) : next();
29793
29747
  }, !0);
29794
29748
  }, start = entry;
29795
29749
  return new Promise((res, rej) => {
@@ -29881,7 +29835,7 @@ var realpathSync = import_fs2.realpathSync.native, defaultFS = {
29881
29835
  if (follow && !didRealpaths) {
29882
29836
  let promises2 = [];
29883
29837
  for (let e of entries)
29884
- e.isSymbolicLink() && promises2.push(e.realpath().then((r) => r != null && r.isUnknown() ? r.lstat() : r));
29838
+ e.isSymbolicLink() && promises2.push(e.realpath().then((r) => r?.isUnknown() ? r.lstat() : r));
29885
29839
  if (promises2.length) {
29886
29840
  Promise.all(promises2).then(() => onReaddir(null, entries, !0));
29887
29841
  return;
@@ -30264,8 +30218,7 @@ s.pipe !== import_stream2.default.Writable.prototype.pipe, isWritable2 = (s) =>
30264
30218
  }
30265
30219
  // drop everything and get out of the flow completely
30266
30220
  [ABORT2]() {
30267
- var _a2, _b;
30268
- this[ABORTED2] = !0, this.emit("abort", (_a2 = this[SIGNAL2]) == null ? void 0 : _a2.reason), this.destroy((_b = this[SIGNAL2]) == null ? void 0 : _b.reason);
30221
+ this[ABORTED2] = !0, this.emit("abort", this[SIGNAL2]?.reason), this.destroy(this[SIGNAL2]?.reason);
30269
30222
  }
30270
30223
  /**
30271
30224
  * True if the stream has been aborted.
@@ -30280,7 +30233,6 @@ s.pipe !== import_stream2.default.Writable.prototype.pipe, isWritable2 = (s) =>
30280
30233
  set aborted(_) {
30281
30234
  }
30282
30235
  write(chunk, encoding, cb) {
30283
- var _a2;
30284
30236
  if (this[ABORTED2])
30285
30237
  return !1;
30286
30238
  if (this[EOF2])
@@ -30298,7 +30250,7 @@ s.pipe !== import_stream2.default.Writable.prototype.pipe, isWritable2 = (s) =>
30298
30250
  throw new Error("Non-contiguous data written to non-objectMode stream");
30299
30251
  }
30300
30252
  return this[OBJECTMODE2] ? (this[FLOWING2] && this[BUFFERLENGTH2] !== 0 && this[FLUSH2](!0), this[FLOWING2] ? this.emit("data", chunk) : this[BUFFERPUSH2](chunk), this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]) : chunk.length ? (typeof chunk == "string" && // unless it is a string already ready for us to use
30301
- !(encoding === this[ENCODING2] && !((_a2 = this[DECODER2]) != null && _a2.lastNeed)) && (chunk = Buffer.from(chunk, encoding)), Buffer.isBuffer(chunk) && this[ENCODING2] && (chunk = this[DECODER2].write(chunk)), this[FLOWING2] && this[BUFFERLENGTH2] !== 0 && this[FLUSH2](!0), this[FLOWING2] ? this.emit("data", chunk) : this[BUFFERPUSH2](chunk), this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]) : (this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]);
30253
+ !(encoding === this[ENCODING2] && !this[DECODER2]?.lastNeed) && (chunk = Buffer.from(chunk, encoding)), Buffer.isBuffer(chunk) && this[ENCODING2] && (chunk = this[DECODER2].write(chunk)), this[FLOWING2] && this[BUFFERLENGTH2] !== 0 && this[FLUSH2](!0), this[FLOWING2] ? this.emit("data", chunk) : this[BUFFERPUSH2](chunk), this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]) : (this[BUFFERLENGTH2] !== 0 && this.emit("readable"), cb && fn(cb), this[FLOWING2]);
30302
30254
  }
30303
30255
  /**
30304
30256
  * Low-level explicit read method.
@@ -30747,8 +30699,7 @@ var HasWalkedCache = class _HasWalkedCache {
30747
30699
  return new _HasWalkedCache(new Map(this.store));
30748
30700
  }
30749
30701
  hasWalked(target, pattern) {
30750
- var _a2;
30751
- return (_a2 = this.store.get(target.fullpath())) == null ? void 0 : _a2.has(pattern.globString());
30702
+ return this.store.get(target.fullpath())?.has(pattern.globString());
30752
30703
  }
30753
30704
  storeWalked(target, pattern) {
30754
30705
  let fullpath = target.fullpath(), cached = this.store.get(fullpath);
@@ -30839,7 +30790,7 @@ var HasWalkedCache = class _HasWalkedCache {
30839
30790
  continue;
30840
30791
  } else if (p === GLOBSTAR) {
30841
30792
  (!t.isSymbolicLink() || this.follow || pattern.checkFollowGlobstar()) && this.subwalks.add(t, pattern);
30842
- let rp = rest == null ? void 0 : rest.pattern(), rrest = rest == null ? void 0 : rest.rest();
30793
+ let rp = rest?.pattern(), rrest = rest?.rest();
30843
30794
  if (!rest || (rp === "" || rp === ".") && !rrest)
30844
30795
  this.matches.add(t, absolute, rp === "" || rp === ".");
30845
30796
  else if (rp === "..") {
@@ -30910,20 +30861,17 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
30910
30861
  }));
30911
30862
  }
30912
30863
  #ignored(path6) {
30913
- var _a2, _b;
30914
- return this.seen.has(path6) || !!((_b = (_a2 = this.#ignore) == null ? void 0 : _a2.ignored) != null && _b.call(_a2, path6));
30864
+ return this.seen.has(path6) || !!this.#ignore?.ignored?.(path6);
30915
30865
  }
30916
30866
  #childrenIgnored(path6) {
30917
- var _a2, _b;
30918
- return !!((_b = (_a2 = this.#ignore) == null ? void 0 : _a2.childrenIgnored) != null && _b.call(_a2, path6));
30867
+ return !!this.#ignore?.childrenIgnored?.(path6);
30919
30868
  }
30920
30869
  // backpressure mechanism
30921
30870
  pause() {
30922
30871
  this.paused = !0;
30923
30872
  }
30924
30873
  resume() {
30925
- var _a2;
30926
- if ((_a2 = this.signal) != null && _a2.aborted)
30874
+ if (this.signal?.aborted)
30927
30875
  return;
30928
30876
  this.paused = !1;
30929
30877
  let fn;
@@ -30931,8 +30879,7 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
30931
30879
  fn();
30932
30880
  }
30933
30881
  onResume(fn) {
30934
- var _a2;
30935
- (_a2 = this.signal) != null && _a2.aborted || (this.paused ? this.#onResume.push(fn) : fn());
30882
+ this.signal?.aborted || (this.paused ? this.#onResume.push(fn) : fn());
30936
30883
  }
30937
30884
  // do the requisite realpath/stat checking, and return the path
30938
30885
  // to add or undefined to filter it out.
@@ -30988,14 +30935,12 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
30988
30935
  p && this.matchFinish(p, absolute);
30989
30936
  }
30990
30937
  walkCB(target, patterns, cb) {
30991
- var _a2;
30992
- (_a2 = this.signal) != null && _a2.aborted && cb(), this.walkCB2(target, patterns, new Processor(this.opts), cb);
30938
+ this.signal?.aborted && cb(), this.walkCB2(target, patterns, new Processor(this.opts), cb);
30993
30939
  }
30994
30940
  walkCB2(target, patterns, processor, cb) {
30995
- var _a2;
30996
30941
  if (this.#childrenIgnored(target))
30997
30942
  return cb();
30998
- if ((_a2 = this.signal) != null && _a2.aborted && cb(), this.paused) {
30943
+ if (this.signal?.aborted && cb(), this.paused) {
30999
30944
  this.onResume(() => this.walkCB2(target, patterns, processor, cb));
31000
30945
  return;
31001
30946
  }
@@ -31026,14 +30971,12 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
31026
30971
  next();
31027
30972
  }
31028
30973
  walkCBSync(target, patterns, cb) {
31029
- var _a2;
31030
- (_a2 = this.signal) != null && _a2.aborted && cb(), this.walkCB2Sync(target, patterns, new Processor(this.opts), cb);
30974
+ this.signal?.aborted && cb(), this.walkCB2Sync(target, patterns, new Processor(this.opts), cb);
31031
30975
  }
31032
30976
  walkCB2Sync(target, patterns, processor, cb) {
31033
- var _a2;
31034
30977
  if (this.#childrenIgnored(target))
31035
30978
  return cb();
31036
- if ((_a2 = this.signal) != null && _a2.aborted && cb(), this.paused) {
30979
+ if (this.signal?.aborted && cb(), this.paused) {
31037
30980
  this.onResume(() => this.walkCB2Sync(target, patterns, processor, cb));
31038
30981
  return;
31039
30982
  }
@@ -31072,23 +31015,19 @@ var makeIgnore = (ignore, opts) => typeof ignore == "string" ? new Ignore([ignor
31072
31015
  this.matches.add(e);
31073
31016
  }
31074
31017
  async walk() {
31075
- var _a2;
31076
- if ((_a2 = this.signal) != null && _a2.aborted)
31018
+ if (this.signal?.aborted)
31077
31019
  throw this.signal.reason;
31078
31020
  return this.path.isUnknown() && await this.path.lstat(), await new Promise((res, rej) => {
31079
31021
  this.walkCB(this.path, this.patterns, () => {
31080
- var _a3;
31081
- (_a3 = this.signal) != null && _a3.aborted ? rej(this.signal.reason) : res(this.matches);
31022
+ this.signal?.aborted ? rej(this.signal.reason) : res(this.matches);
31082
31023
  });
31083
31024
  }), this.matches;
31084
31025
  }
31085
31026
  walkSync() {
31086
- var _a2;
31087
- if ((_a2 = this.signal) != null && _a2.aborted)
31027
+ if (this.signal?.aborted)
31088
31028
  throw this.signal.reason;
31089
31029
  return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => {
31090
- var _a3;
31091
- if ((_a3 = this.signal) != null && _a3.aborted)
31030
+ if (this.signal?.aborted)
31092
31031
  throw this.signal.reason;
31093
31032
  }), this.matches;
31094
31033
  }
@@ -31342,37 +31281,34 @@ var ignoreENOENT = async (p) => p.catch((er) => {
31342
31281
  try {
31343
31282
  return fn();
31344
31283
  } catch (er) {
31345
- if ((er == null ? void 0 : er.code) !== "ENOENT")
31284
+ if (er?.code !== "ENOENT")
31346
31285
  throw er;
31347
31286
  }
31348
31287
  };
31349
31288
 
31350
31289
  // ../../node_modules/rimraf/dist/mjs/rimraf-posix.js
31351
31290
  var { lstat: lstat3, rmdir: rmdir2, unlink: unlink2 } = promises, rimrafPosix = async (path6, opt) => {
31352
- var _a2;
31353
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31291
+ if (opt?.signal?.aborted)
31354
31292
  throw opt.signal.reason;
31355
31293
  try {
31356
31294
  return await rimrafPosixDir(path6, opt, await lstat3(path6));
31357
31295
  } catch (er) {
31358
- if ((er == null ? void 0 : er.code) === "ENOENT")
31296
+ if (er?.code === "ENOENT")
31359
31297
  return !0;
31360
31298
  throw er;
31361
31299
  }
31362
31300
  }, rimrafPosixSync = (path6, opt) => {
31363
- var _a2;
31364
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31301
+ if (opt?.signal?.aborted)
31365
31302
  throw opt.signal.reason;
31366
31303
  try {
31367
31304
  return rimrafPosixDirSync(path6, opt, (0, import_fs4.lstatSync)(path6));
31368
31305
  } catch (er) {
31369
- if ((er == null ? void 0 : er.code) === "ENOENT")
31306
+ if (er?.code === "ENOENT")
31370
31307
  return !0;
31371
31308
  throw er;
31372
31309
  }
31373
31310
  }, rimrafPosixDir = async (path6, opt, ent) => {
31374
- var _a2;
31375
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31311
+ if (opt?.signal?.aborted)
31376
31312
  throw opt.signal.reason;
31377
31313
  let entries = ent.isDirectory() ? await readdirOrError(path6) : null;
31378
31314
  if (!Array.isArray(entries)) {
@@ -31386,8 +31322,7 @@ var { lstat: lstat3, rmdir: rmdir2, unlink: unlink2 } = promises, rimrafPosix =
31386
31322
  }
31387
31323
  return !(await Promise.all(entries.map((ent2) => rimrafPosixDir((0, import_path4.resolve)(path6, ent2.name), opt, ent2)))).reduce((a, b) => a && b, !0) || opt.preserveRoot === !1 && path6 === (0, import_path4.parse)(path6).root || opt.filter && !await opt.filter(path6, ent) ? !1 : (await ignoreENOENT(rmdir2(path6)), !0);
31388
31324
  }, rimrafPosixDirSync = (path6, opt, ent) => {
31389
- var _a2;
31390
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31325
+ if (opt?.signal?.aborted)
31391
31326
  throw opt.signal.reason;
31392
31327
  let entries = ent.isDirectory() ? readdirOrErrorSync(path6) : null;
31393
31328
  if (!Array.isArray(entries)) {
@@ -31416,14 +31351,13 @@ var { chmod: chmod2 } = promises, fixEPERM = (fn) => async (path6) => {
31416
31351
  return await fn(path6);
31417
31352
  } catch (er) {
31418
31353
  let fer = er;
31419
- if ((fer == null ? void 0 : fer.code) === "ENOENT")
31354
+ if (fer?.code === "ENOENT")
31420
31355
  return;
31421
- if ((fer == null ? void 0 : fer.code) === "EPERM") {
31356
+ if (fer?.code === "EPERM") {
31422
31357
  try {
31423
31358
  await chmod2(path6, 438);
31424
31359
  } catch (er2) {
31425
- let fer2 = er2;
31426
- if ((fer2 == null ? void 0 : fer2.code) === "ENOENT")
31360
+ if (er2?.code === "ENOENT")
31427
31361
  return;
31428
31362
  throw er;
31429
31363
  }
@@ -31436,14 +31370,13 @@ var { chmod: chmod2 } = promises, fixEPERM = (fn) => async (path6) => {
31436
31370
  return fn(path6);
31437
31371
  } catch (er) {
31438
31372
  let fer = er;
31439
- if ((fer == null ? void 0 : fer.code) === "ENOENT")
31373
+ if (fer?.code === "ENOENT")
31440
31374
  return;
31441
- if ((fer == null ? void 0 : fer.code) === "EPERM") {
31375
+ if (fer?.code === "EPERM") {
31442
31376
  try {
31443
31377
  (0, import_fs4.chmodSync)(path6, 438);
31444
31378
  } catch (er2) {
31445
- let fer2 = er2;
31446
- if ((fer2 == null ? void 0 : fer2.code) === "ENOENT")
31379
+ if (er2?.code === "ENOENT")
31447
31380
  return;
31448
31381
  throw er;
31449
31382
  }
@@ -31462,7 +31395,7 @@ var codes = /* @__PURE__ */ new Set(["EMFILE", "ENFILE", "EBUSY"]), retryBusy =
31462
31395
  return await fn(path6);
31463
31396
  } catch (er) {
31464
31397
  let fer = er;
31465
- if ((fer == null ? void 0 : fer.path) === path6 && (fer != null && fer.code) && codes.has(fer.code)) {
31398
+ if (fer?.path === path6 && fer?.code && codes.has(fer.code)) {
31466
31399
  if (backoff = Math.ceil(backoff * rate), total = backoff + total, total < mbo)
31467
31400
  return new Promise((res, rej) => {
31468
31401
  setTimeout(() => {
@@ -31485,7 +31418,7 @@ var codes = /* @__PURE__ */ new Set(["EMFILE", "ENFILE", "EBUSY"]), retryBusy =
31485
31418
  return fn(path6);
31486
31419
  } catch (er) {
31487
31420
  let fer = er;
31488
- if ((fer == null ? void 0 : fer.path) === path6 && (fer != null && fer.code) && codes.has(fer.code) && retries < max) {
31421
+ if (fer?.path === path6 && fer?.code && codes.has(fer.code) && retries < max) {
31489
31422
  retries++;
31490
31423
  continue;
31491
31424
  }
@@ -31532,32 +31465,30 @@ var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chm
31532
31465
  try {
31533
31466
  (0, import_fs4.unlinkSync)(path6);
31534
31467
  } catch (er) {
31535
- if ((er == null ? void 0 : er.code) === "EPERM")
31468
+ if (er?.code === "EPERM")
31536
31469
  try {
31537
31470
  return (0, import_fs4.chmodSync)(path6, 438);
31538
31471
  } catch (er2) {
31539
- if ((er2 == null ? void 0 : er2.code) === "ENOENT")
31472
+ if (er2?.code === "ENOENT")
31540
31473
  return;
31541
31474
  throw er;
31542
31475
  }
31543
- else if ((er == null ? void 0 : er.code) === "ENOENT")
31476
+ else if (er?.code === "ENOENT")
31544
31477
  return;
31545
31478
  throw er;
31546
31479
  }
31547
31480
  }, rimrafMoveRemove = async (path6, opt) => {
31548
- var _a2;
31549
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31481
+ if (opt?.signal?.aborted)
31550
31482
  throw opt.signal.reason;
31551
31483
  try {
31552
31484
  return await rimrafMoveRemoveDir(path6, opt, await lstat4(path6));
31553
31485
  } catch (er) {
31554
- if ((er == null ? void 0 : er.code) === "ENOENT")
31486
+ if (er?.code === "ENOENT")
31555
31487
  return !0;
31556
31488
  throw er;
31557
31489
  }
31558
31490
  }, rimrafMoveRemoveDir = async (path6, opt, ent) => {
31559
- var _a2;
31560
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31491
+ if (opt?.signal?.aborted)
31561
31492
  throw opt.signal.reason;
31562
31493
  if (!opt.tmp)
31563
31494
  return rimrafMoveRemoveDir(path6, { ...opt, tmp: await defaultTmp(path6) }, ent);
@@ -31578,19 +31509,17 @@ var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chm
31578
31509
  let tmpFile = (0, import_path6.resolve)(tmp, uniqueFilename(path6));
31579
31510
  return await rename2(path6, tmpFile), await rm3(tmpFile);
31580
31511
  }, rimrafMoveRemoveSync = (path6, opt) => {
31581
- var _a2;
31582
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31512
+ if (opt?.signal?.aborted)
31583
31513
  throw opt.signal.reason;
31584
31514
  try {
31585
31515
  return rimrafMoveRemoveDirSync(path6, opt, (0, import_fs4.lstatSync)(path6));
31586
31516
  } catch (er) {
31587
- if ((er == null ? void 0 : er.code) === "ENOENT")
31517
+ if (er?.code === "ENOENT")
31588
31518
  return !0;
31589
31519
  throw er;
31590
31520
  }
31591
31521
  }, rimrafMoveRemoveDirSync = (path6, opt, ent) => {
31592
- var _a2;
31593
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31522
+ if (opt?.signal?.aborted)
31594
31523
  throw opt.signal.reason;
31595
31524
  if (!opt.tmp)
31596
31525
  return rimrafMoveRemoveDirSync(path6, { ...opt, tmp: defaultTmpSync(path6) }, ent);
@@ -31620,55 +31549,49 @@ var { lstat: lstat4, rename: rename2, unlink: unlink3, rmdir: rmdir3, chmod: chm
31620
31549
 
31621
31550
  // ../../node_modules/rimraf/dist/mjs/rimraf-windows.js
31622
31551
  var { unlink: unlink4, rmdir: rmdir4, lstat: lstat5 } = promises, rimrafWindowsFile = retryBusy(fixEPERM(unlink4)), rimrafWindowsFileSync = retryBusySync(fixEPERMSync(import_fs4.unlinkSync)), rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir4)), rimrafWindowsDirRetrySync = retryBusySync(fixEPERMSync(import_fs4.rmdirSync)), rimrafWindowsDirMoveRemoveFallback = async (path6, opt) => {
31623
- var _a2;
31624
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31552
+ if (opt?.signal?.aborted)
31625
31553
  throw opt.signal.reason;
31626
31554
  let { filter: filter2, ...options } = opt;
31627
31555
  try {
31628
31556
  return await rimrafWindowsDirRetry(path6, options);
31629
31557
  } catch (er) {
31630
- if ((er == null ? void 0 : er.code) === "ENOTEMPTY")
31558
+ if (er?.code === "ENOTEMPTY")
31631
31559
  return await rimrafMoveRemove(path6, options);
31632
31560
  throw er;
31633
31561
  }
31634
31562
  }, rimrafWindowsDirMoveRemoveFallbackSync = (path6, opt) => {
31635
- var _a2;
31636
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31563
+ if (opt?.signal?.aborted)
31637
31564
  throw opt.signal.reason;
31638
31565
  let { filter: filter2, ...options } = opt;
31639
31566
  try {
31640
31567
  return rimrafWindowsDirRetrySync(path6, options);
31641
31568
  } catch (er) {
31642
- let fer = er;
31643
- if ((fer == null ? void 0 : fer.code) === "ENOTEMPTY")
31569
+ if (er?.code === "ENOTEMPTY")
31644
31570
  return rimrafMoveRemoveSync(path6, options);
31645
31571
  throw er;
31646
31572
  }
31647
31573
  }, START = Symbol("start"), CHILD = Symbol("child"), FINISH = Symbol("finish"), rimrafWindows = async (path6, opt) => {
31648
- var _a2;
31649
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31574
+ if (opt?.signal?.aborted)
31650
31575
  throw opt.signal.reason;
31651
31576
  try {
31652
31577
  return await rimrafWindowsDir(path6, opt, await lstat5(path6), START);
31653
31578
  } catch (er) {
31654
- if ((er == null ? void 0 : er.code) === "ENOENT")
31579
+ if (er?.code === "ENOENT")
31655
31580
  return !0;
31656
31581
  throw er;
31657
31582
  }
31658
31583
  }, rimrafWindowsSync = (path6, opt) => {
31659
- var _a2;
31660
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31584
+ if (opt?.signal?.aborted)
31661
31585
  throw opt.signal.reason;
31662
31586
  try {
31663
31587
  return rimrafWindowsDirSync(path6, opt, (0, import_fs4.lstatSync)(path6), START);
31664
31588
  } catch (er) {
31665
- if ((er == null ? void 0 : er.code) === "ENOENT")
31589
+ if (er?.code === "ENOENT")
31666
31590
  return !0;
31667
31591
  throw er;
31668
31592
  }
31669
31593
  }, rimrafWindowsDir = async (path6, opt, ent, state = START) => {
31670
- var _a2;
31671
- if ((_a2 = opt == null ? void 0 : opt.signal) != null && _a2.aborted)
31594
+ if (opt?.signal?.aborted)
31672
31595
  throw opt.signal.reason;
31673
31596
  let entries = ent.isDirectory() ? await readdirOrError(path6) : null;
31674
31597
  if (!Array.isArray(entries)) {
@@ -31732,7 +31655,7 @@ var { rm: rm2 } = promises, rimrafNative = async (path6, opt) => (await rm2(path
31732
31655
  }), !0);
31733
31656
 
31734
31657
  // ../../node_modules/rimraf/dist/mjs/use-native.js
31735
- var version = process.env.__TESTING_RIMRAF_NODE_VERSION__ || process.version, versArr = version.replace(/^v/, "").split("."), hasNative = +versArr[0] > 14 || +versArr[0] == 14 && +versArr[1] >= 14, useNative = !hasNative || platform_default === "win32" ? () => !1 : (opt) => !(opt != null && opt.signal) && !(opt != null && opt.filter), useNativeSync = !hasNative || platform_default === "win32" ? () => !1 : (opt) => !(opt != null && opt.signal) && !(opt != null && opt.filter);
31658
+ var version = process.env.__TESTING_RIMRAF_NODE_VERSION__ || process.version, versArr = version.replace(/^v/, "").split("."), hasNative = +versArr[0] > 14 || +versArr[0] == 14 && +versArr[1] >= 14, useNative = !hasNative || platform_default === "win32" ? () => !1 : (opt) => !opt?.signal && !opt?.filter, useNativeSync = !hasNative || platform_default === "win32" ? () => !1 : (opt) => !opt?.signal && !opt?.filter;
31736
31659
 
31737
31660
  // ../../node_modules/rimraf/dist/mjs/index.js
31738
31661
  var typeOrUndef = (val, t) => typeof val > "u" || typeof val === t, isRimrafOptions = (o) => !!o && typeof o == "object" && typeOrUndef(o.preserveRoot, "boolean") && typeOrUndef(o.tmp, "string") && typeOrUndef(o.maxRetries, "number") && typeOrUndef(o.retryDelay, "number") && typeOrUndef(o.backoff, "number") && typeOrUndef(o.maxBackoff, "number") && (typeOrUndef(o.glob, "boolean") || o.glob && typeof o.glob == "object") && typeOrUndef(o.filter, "function"), assertRimrafOptions = (o) => {
@@ -31804,7 +31727,7 @@ async function setupTamaguiDotDir(template, isRetry = !1) {
31804
31727
  throw error;
31805
31728
  }
31806
31729
  } catch (error) {
31807
- throw error instanceof Error && template.value === "takeout-starter" && error != null && error.stderr.includes("Repository not found") && (console.info(
31730
+ throw error instanceof Error && template.value === "takeout-starter" && error?.stderr.includes("Repository not found") && (console.info(
31808
31731
  import_chalk7.default.yellow(
31809
31732
  "You don't have access to this starter. Check \u{1F961} Tamagui Takeout (https://tamagui.dev/takeout) for more info."
31810
31733
  )
@@ -32052,14 +31975,13 @@ async function linkSupabase() {
32052
31975
  }
32053
31976
  }
32054
31977
  function getEnvFromSupabaseStatus(status) {
32055
- var _a2, _b, _c, _d, _e, _f;
32056
31978
  return {
32057
- NEXT_PUBLIC_SUPABASE_URL: (_a2 = status.match(/API URL: (.*)/)) == null ? void 0 : _a2[1],
32058
- NEXT_PUBLIC_SUPABASE_GRAPHQL_URL: (_b = status.match(/GraphQL URL: (.*)/)) == null ? void 0 : _b[1],
32059
- SUPABASE_DB_URL: (_c = status.match(/DB URL: (.*)/)) == null ? void 0 : _c[1],
32060
- NEXT_PUBLIC_SUPABASE_ANON_KEY: (_d = status.match(/anon key: (.*)/)) == null ? void 0 : _d[1],
32061
- SUPABASE_SERVICE_ROLE: (_e = status.match(/service_role key: (.*)/)) == null ? void 0 : _e[1],
32062
- SUPABASE_JWT_SECRET: (_f = status.match(/JWT secret: (.*)/)) == null ? void 0 : _f[1]
31979
+ NEXT_PUBLIC_SUPABASE_URL: status.match(/API URL: (.*)/)?.[1],
31980
+ NEXT_PUBLIC_SUPABASE_GRAPHQL_URL: status.match(/GraphQL URL: (.*)/)?.[1],
31981
+ SUPABASE_DB_URL: status.match(/DB URL: (.*)/)?.[1],
31982
+ NEXT_PUBLIC_SUPABASE_ANON_KEY: status.match(/anon key: (.*)/)?.[1],
31983
+ SUPABASE_SERVICE_ROLE: status.match(/service_role key: (.*)/)?.[1],
31984
+ SUPABASE_JWT_SECRET: status.match(/JWT secret: (.*)/)?.[1]
32063
31985
  };
32064
31986
  }
32065
31987