@sanity/cli 3.59.1 → 3.59.2-canary.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var fs$p = require("node:fs"), os$6 = require("node:os"), path$t = require("node:path"), chalk$2 = require("chalk"), loadEnv = require("./loadEnv.js"), require$$0$4 = require("path"), require$$1$2 = require("module"), require$$0$5 = require("fs"), telemetry = require("@sanity/telemetry"), childProcess$2 = require("node:child_process"), fs$o = require("node:fs/promises"), util$a = require("node:util"), require$$0$6 = require("os"), require$$0$a = require("url"), require$$1$3 = require("get-it"), require$$2$1 = require("get-it/middleware"), require$$0$7 = require("constants"), require$$0$8 = require("stream"), require$$0$9 = require("util"), require$$5$1 = require("assert"), require$$3$1 = require("events"), require$$6$1 = require("http"), semver$2 = require("semver"), pkgDir = require("pkg-dir"), client$1 = require("@sanity/client"), require$$3$2 = require("crypto"), require$$0$b = require("child_process"), require$$0$c = require("fs/promises"), fs$q = require("@sanity/util/fs"), decompress = require("decompress"), validateNpmPackageName = require("validate-npm-package-name"), getCliConfig = require("./getCliConfig.js"), require$$0$d = require("buffer"), silverFleece = require("silver-fleece"), journeyConfig = require("./journeyConfig.js"), http$1 = require("node:http"), traverse = require("@babel/traverse"), process$2 = require("node:process"), require$$2$2 = require("readline"), require$$0$e = require("tty");
2
+ var fs$r = require("node:fs"), os$6 = require("node:os"), path$t = require("node:path"), chalk$2 = require("chalk"), loadEnv = require("./loadEnv.js"), require$$0$4 = require("path"), require$$1$2 = require("module"), require$$0$5 = require("fs"), telemetry = require("@sanity/telemetry"), childProcess$2 = require("node:child_process"), fs$q = require("node:fs/promises"), util$b = require("node:util"), require$$0$6 = require("os"), require$$0$a = require("url"), require$$1$3 = require("get-it"), require$$2$1 = require("get-it/middleware"), require$$0$7 = require("constants"), require$$0$8 = require("stream"), require$$0$9 = require("util"), require$$5$1 = require("assert"), require$$3$1 = require("events"), require$$6$1 = require("http"), semver$2 = require("semver"), pkgDir = require("pkg-dir"), client$1 = require("@sanity/client"), require$$3$2 = require("crypto"), require$$0$b = require("child_process"), require$$0$c = require("fs/promises"), fs$s = require("@sanity/util/fs"), decompress = require("decompress"), validateNpmPackageName = require("validate-npm-package-name"), getCliConfig = require("./getCliConfig.js"), require$$0$d = require("buffer"), silverFleece = require("silver-fleece"), journeyConfig = require("./journeyConfig.js"), http$1 = require("node:http"), traverse = require("@babel/traverse"), process$2 = require("node:process"), require$$2$2 = require("readline"), require$$0$e = require("tty");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
@@ -18,14 +18,14 @@ function _mergeNamespaces(n, m) {
18
18
  });
19
19
  }), Object.freeze(n);
20
20
  }
21
- var fs__default = /* @__PURE__ */ _interopDefaultCompat(fs$p), os__default = /* @__PURE__ */ _interopDefaultCompat(os$6), path__default = /* @__PURE__ */ _interopDefaultCompat(path$t), chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk$2), require$$0__default = /* @__PURE__ */ _interopDefaultCompat(require$$0$4), require$$1__default = /* @__PURE__ */ _interopDefaultCompat(require$$1$2), require$$0__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$0$5), childProcess__default = /* @__PURE__ */ _interopDefaultCompat(childProcess$2), fs__default$1 = /* @__PURE__ */ _interopDefaultCompat(fs$o), util__default = /* @__PURE__ */ _interopDefaultCompat(util$a), require$$0__default$2 = /* @__PURE__ */ _interopDefaultCompat(require$$0$6), require$$0__default$6 = /* @__PURE__ */ _interopDefaultCompat(require$$0$a), require$$1__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$1$3), require$$2__default = /* @__PURE__ */ _interopDefaultCompat(require$$2$1), require$$0__default$3 = /* @__PURE__ */ _interopDefaultCompat(require$$0$7), require$$0__default$4 = /* @__PURE__ */ _interopDefaultCompat(require$$0$8), require$$0__default$5 = /* @__PURE__ */ _interopDefaultCompat(require$$0$9), require$$5__default = /* @__PURE__ */ _interopDefaultCompat(require$$5$1), require$$3__default = /* @__PURE__ */ _interopDefaultCompat(require$$3$1), require$$6__default = /* @__PURE__ */ _interopDefaultCompat(require$$6$1), semver__default = /* @__PURE__ */ _interopDefaultCompat(semver$2), pkgDir__default = /* @__PURE__ */ _interopDefaultCompat(pkgDir), require$$3__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$3$2), require$$0__default$7 = /* @__PURE__ */ _interopDefaultCompat(require$$0$b), require$$0__default$8 = /* @__PURE__ */ _interopDefaultCompat(require$$0$c), decompress__default = /* @__PURE__ */ _interopDefaultCompat(decompress), validateNpmPackageName__default = /* @__PURE__ */ _interopDefaultCompat(validateNpmPackageName), require$$0__default$9 = /* @__PURE__ */ _interopDefaultCompat(require$$0$d), http__default = /* @__PURE__ */ _interopDefaultCompat(http$1), traverse__default = /* @__PURE__ */ _interopDefaultCompat(traverse), process__default = /* @__PURE__ */ _interopDefaultCompat(process$2), require$$2__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$2$2), require$$0__default$a = /* @__PURE__ */ _interopDefaultCompat(require$$0$e), resolveFrom$2 = { exports: {} };
22
- const path$s = require$$0__default.default, Module = require$$1__default.default, fs$n = require$$0__default$1.default, resolveFrom = (fromDirectory, moduleId, silent) => {
21
+ var fs__default = /* @__PURE__ */ _interopDefaultCompat(fs$r), os__default = /* @__PURE__ */ _interopDefaultCompat(os$6), path__default = /* @__PURE__ */ _interopDefaultCompat(path$t), chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk$2), require$$0__default = /* @__PURE__ */ _interopDefaultCompat(require$$0$4), require$$1__default = /* @__PURE__ */ _interopDefaultCompat(require$$1$2), require$$0__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$0$5), childProcess__default = /* @__PURE__ */ _interopDefaultCompat(childProcess$2), fs__default$1 = /* @__PURE__ */ _interopDefaultCompat(fs$q), util__default = /* @__PURE__ */ _interopDefaultCompat(util$b), require$$0__default$2 = /* @__PURE__ */ _interopDefaultCompat(require$$0$6), require$$0__default$6 = /* @__PURE__ */ _interopDefaultCompat(require$$0$a), require$$1__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$1$3), require$$2__default = /* @__PURE__ */ _interopDefaultCompat(require$$2$1), require$$0__default$3 = /* @__PURE__ */ _interopDefaultCompat(require$$0$7), require$$0__default$4 = /* @__PURE__ */ _interopDefaultCompat(require$$0$8), require$$0__default$5 = /* @__PURE__ */ _interopDefaultCompat(require$$0$9), require$$5__default = /* @__PURE__ */ _interopDefaultCompat(require$$5$1), require$$3__default = /* @__PURE__ */ _interopDefaultCompat(require$$3$1), require$$6__default = /* @__PURE__ */ _interopDefaultCompat(require$$6$1), semver__default = /* @__PURE__ */ _interopDefaultCompat(semver$2), pkgDir__default = /* @__PURE__ */ _interopDefaultCompat(pkgDir), require$$3__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$3$2), require$$0__default$7 = /* @__PURE__ */ _interopDefaultCompat(require$$0$b), require$$0__default$8 = /* @__PURE__ */ _interopDefaultCompat(require$$0$c), decompress__default = /* @__PURE__ */ _interopDefaultCompat(decompress), validateNpmPackageName__default = /* @__PURE__ */ _interopDefaultCompat(validateNpmPackageName), require$$0__default$9 = /* @__PURE__ */ _interopDefaultCompat(require$$0$d), http__default = /* @__PURE__ */ _interopDefaultCompat(http$1), traverse__default = /* @__PURE__ */ _interopDefaultCompat(traverse), process__default = /* @__PURE__ */ _interopDefaultCompat(process$2), require$$2__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$2$2), require$$0__default$a = /* @__PURE__ */ _interopDefaultCompat(require$$0$e), resolveFrom$2 = { exports: {} };
22
+ const path$s = require$$0__default.default, Module = require$$1__default.default, fs$p = require$$0__default$1.default, resolveFrom = (fromDirectory, moduleId, silent) => {
23
23
  if (typeof fromDirectory != "string")
24
24
  throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``);
25
25
  if (typeof moduleId != "string")
26
26
  throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
27
27
  try {
28
- fromDirectory = fs$n.realpathSync(fromDirectory);
28
+ fromDirectory = fs$p.realpathSync(fromDirectory);
29
29
  } catch (error2) {
30
30
  if (error2.code === "ENOENT")
31
31
  fromDirectory = path$s.resolve(fromDirectory);
@@ -2454,7 +2454,7 @@ var lodash = { exports: {} };
2454
2454
  function reverse(array2) {
2455
2455
  return array2 == null ? array2 : nativeReverse.call(array2);
2456
2456
  }
2457
- function slice(array2, start, end) {
2457
+ function slice2(array2, start, end) {
2458
2458
  var length = array2 == null ? 0 : array2.length;
2459
2459
  return length ? (end && typeof end != "number" && isIterateeCall(array2, start, end) ? (start = 0, end = length) : (start = start == null ? 0 : toInteger(start), end = end === undefined$1 ? length : toInteger(end)), baseSlice(array2, start, end)) : [];
2460
2460
  }
@@ -3627,7 +3627,7 @@ function print() { __p += __j.call(arguments, '') }
3627
3627
  function sumBy(array2, iteratee2) {
3628
3628
  return array2 && array2.length ? baseSum(array2, getIteratee(iteratee2, 2)) : 0;
3629
3629
  }
3630
- return lodash2.after = after, lodash2.ary = ary, lodash2.assign = assign2, lodash2.assignIn = assignIn, lodash2.assignInWith = assignInWith, lodash2.assignWith = assignWith, lodash2.at = at, lodash2.before = before, lodash2.bind = bind, lodash2.bindAll = bindAll, lodash2.bindKey = bindKey, lodash2.castArray = castArray, lodash2.chain = chain, lodash2.chunk = chunk, lodash2.compact = compact, lodash2.concat = concat2, lodash2.cond = cond, lodash2.conforms = conforms, lodash2.constant = constant, lodash2.countBy = countBy, lodash2.create = create2, lodash2.curry = curry, lodash2.curryRight = curryRight, lodash2.debounce = debounce2, lodash2.defaults = defaults2, lodash2.defaultsDeep = defaultsDeep, lodash2.defer = defer2, lodash2.delay = delay2, lodash2.difference = difference, lodash2.differenceBy = differenceBy, lodash2.differenceWith = differenceWith, lodash2.drop = drop, lodash2.dropRight = dropRight, lodash2.dropRightWhile = dropRightWhile, lodash2.dropWhile = dropWhile, lodash2.fill = fill2, lodash2.filter = filter2, lodash2.flatMap = flatMap2, lodash2.flatMapDeep = flatMapDeep, lodash2.flatMapDepth = flatMapDepth, lodash2.flatten = flatten, lodash2.flattenDeep = flattenDeep, lodash2.flattenDepth = flattenDepth, lodash2.flip = flip2, lodash2.flow = flow2, lodash2.flowRight = flowRight, lodash2.fromPairs = fromPairs, lodash2.functions = functions, lodash2.functionsIn = functionsIn, lodash2.groupBy = groupBy2, lodash2.initial = initial, lodash2.intersection = intersection, lodash2.intersectionBy = intersectionBy, lodash2.intersectionWith = intersectionWith, lodash2.invert = invert, lodash2.invertBy = invertBy, lodash2.invokeMap = invokeMap, lodash2.iteratee = iteratee, lodash2.keyBy = keyBy, lodash2.keys = keys, lodash2.keysIn = keysIn, lodash2.map = map2, lodash2.mapKeys = mapKeys, lodash2.mapValues = mapValues, lodash2.matches = matches2, lodash2.matchesProperty = matchesProperty, lodash2.memoize = memoize, lodash2.merge = merge2, lodash2.mergeWith = mergeWith, lodash2.method = method, lodash2.methodOf = methodOf, lodash2.mixin = mixin, lodash2.negate = negate, lodash2.nthArg = nthArg, lodash2.omit = omit, lodash2.omitBy = omitBy, lodash2.once = once2, lodash2.orderBy = orderBy, lodash2.over = over, lodash2.overArgs = overArgs, lodash2.overEvery = overEvery, lodash2.overSome = overSome, lodash2.partial = partial, lodash2.partialRight = partialRight, lodash2.partition = partition2, lodash2.pick = pick, lodash2.pickBy = pickBy, lodash2.property = property, lodash2.propertyOf = propertyOf, lodash2.pull = pull, lodash2.pullAll = pullAll, lodash2.pullAllBy = pullAllBy, lodash2.pullAllWith = pullAllWith, lodash2.pullAt = pullAt, lodash2.range = range2, lodash2.rangeRight = rangeRight, lodash2.rearg = rearg, lodash2.reject = reject, lodash2.remove = remove, lodash2.rest = rest, lodash2.reverse = reverse, lodash2.sampleSize = sampleSize, lodash2.set = set2, lodash2.setWith = setWith, lodash2.shuffle = shuffle, lodash2.slice = slice, lodash2.sortBy = sortBy, lodash2.sortedUniq = sortedUniq, lodash2.sortedUniqBy = sortedUniqBy, lodash2.split = split, lodash2.spread = spread, lodash2.tail = tail, lodash2.take = take2, lodash2.takeRight = takeRight, lodash2.takeRightWhile = takeRightWhile, lodash2.takeWhile = takeWhile2, lodash2.tap = tap2, lodash2.throttle = throttle2, lodash2.thru = thru, lodash2.toArray = toArray2, lodash2.toPairs = toPairs, lodash2.toPairsIn = toPairsIn, lodash2.toPath = toPath, lodash2.toPlainObject = toPlainObject, lodash2.transform = transform2, lodash2.unary = unary, lodash2.union = union, lodash2.unionBy = unionBy, lodash2.unionWith = unionWith, lodash2.uniq = uniq, lodash2.uniqBy = uniqBy, lodash2.uniqWith = uniqWith, lodash2.unset = unset, lodash2.unzip = unzip, lodash2.unzipWith = unzipWith, lodash2.update = update, lodash2.updateWith = updateWith, lodash2.values = values, lodash2.valuesIn = valuesIn, lodash2.without = without, lodash2.words = words, lodash2.wrap = wrap, lodash2.xor = xor, lodash2.xorBy = xorBy, lodash2.xorWith = xorWith, lodash2.zip = zip2, lodash2.zipObject = zipObject, lodash2.zipObjectDeep = zipObjectDeep, lodash2.zipWith = zipWith, lodash2.entries = toPairs, lodash2.entriesIn = toPairsIn, lodash2.extend = assignIn, lodash2.extendWith = assignInWith, mixin(lodash2, lodash2), lodash2.add = add, lodash2.attempt = attempt, lodash2.camelCase = camelCase2, lodash2.capitalize = capitalize, lodash2.ceil = ceil, lodash2.clamp = clamp, lodash2.clone = clone2, lodash2.cloneDeep = cloneDeep, lodash2.cloneDeepWith = cloneDeepWith, lodash2.cloneWith = cloneWith, lodash2.conformsTo = conformsTo, lodash2.deburr = deburr, lodash2.defaultTo = defaultTo, lodash2.divide = divide, lodash2.endsWith = endsWith, lodash2.eq = eq, lodash2.escape = escape2, lodash2.escapeRegExp = escapeRegExp, lodash2.every = every2, lodash2.find = find2, lodash2.findIndex = findIndex2, lodash2.findKey = findKey, lodash2.findLast = findLast, lodash2.findLastIndex = findLastIndex, lodash2.findLastKey = findLastKey, lodash2.floor = floor, lodash2.forEach = forEach, lodash2.forEachRight = forEachRight, lodash2.forIn = forIn, lodash2.forInRight = forInRight, lodash2.forOwn = forOwn, lodash2.forOwnRight = forOwnRight, lodash2.get = get, lodash2.gt = gt, lodash2.gte = gte2, lodash2.has = has, lodash2.hasIn = hasIn, lodash2.head = head, lodash2.identity = identity2, lodash2.includes = includes, lodash2.indexOf = indexOf, lodash2.inRange = inRange, lodash2.invoke = invoke, lodash2.isArguments = isArguments, lodash2.isArray = isArray2, lodash2.isArrayBuffer = isArrayBuffer, lodash2.isArrayLike = isArrayLike2, lodash2.isArrayLikeObject = isArrayLikeObject, lodash2.isBoolean = isBoolean2, lodash2.isBuffer = isBuffer, lodash2.isDate = isDate2, lodash2.isElement = isElement, lodash2.isEmpty = isEmpty2, lodash2.isEqual = isEqual, lodash2.isEqualWith = isEqualWith, lodash2.isError = isError, lodash2.isFinite = isFinite2, lodash2.isFunction = isFunction2, lodash2.isInteger = isInteger2, lodash2.isLength = isLength, lodash2.isMap = isMap, lodash2.isMatch = isMatch, lodash2.isMatchWith = isMatchWith, lodash2.isNaN = isNaN2, lodash2.isNative = isNative, lodash2.isNil = isNil, lodash2.isNull = isNull2, lodash2.isNumber = isNumber2, lodash2.isObject = isObject3, lodash2.isObjectLike = isObjectLike2, lodash2.isPlainObject = isPlainObject3, lodash2.isRegExp = isRegExp2, lodash2.isSafeInteger = isSafeInteger, lodash2.isSet = isSet, lodash2.isString = isString, lodash2.isSymbol = isSymbol, lodash2.isTypedArray = isTypedArray2, lodash2.isUndefined = isUndefined2, lodash2.isWeakMap = isWeakMap, lodash2.isWeakSet = isWeakSet, lodash2.join = join2, lodash2.kebabCase = kebabCase, lodash2.last = last2, lodash2.lastIndexOf = lastIndexOf, lodash2.lowerCase = lowerCase, lodash2.lowerFirst = lowerFirst, lodash2.lt = lt, lodash2.lte = lte2, lodash2.max = max2, lodash2.maxBy = maxBy, lodash2.mean = mean, lodash2.meanBy = meanBy, lodash2.min = min2, lodash2.minBy = minBy, lodash2.stubArray = stubArray, lodash2.stubFalse = stubFalse, lodash2.stubObject = stubObject, lodash2.stubString = stubString, lodash2.stubTrue = stubTrue, lodash2.multiply = multiply, lodash2.nth = nth, lodash2.noConflict = noConflict, lodash2.noop = noop2, lodash2.now = now, lodash2.pad = pad2, lodash2.padEnd = padEnd, lodash2.padStart = padStart2, lodash2.parseInt = parseInt2, lodash2.random = random, lodash2.reduce = reduce2, lodash2.reduceRight = reduceRight, lodash2.repeat = repeat2, lodash2.replace = replace, lodash2.result = result, lodash2.round = round2, lodash2.runInContext = runInContext2, lodash2.sample = sample2, lodash2.size = size, lodash2.snakeCase = snakeCase, lodash2.some = some, lodash2.sortedIndex = sortedIndex, lodash2.sortedIndexBy = sortedIndexBy, lodash2.sortedIndexOf = sortedIndexOf, lodash2.sortedLastIndex = sortedLastIndex, lodash2.sortedLastIndexBy = sortedLastIndexBy, lodash2.sortedLastIndexOf = sortedLastIndexOf, lodash2.startCase = startCase, lodash2.startsWith = startsWith, lodash2.subtract = subtract, lodash2.sum = sum, lodash2.sumBy = sumBy, lodash2.template = template, lodash2.times = times, lodash2.toFinite = toFinite, lodash2.toInteger = toInteger, lodash2.toLength = toLength, lodash2.toLower = toLower, lodash2.toNumber = toNumber, lodash2.toSafeInteger = toSafeInteger, lodash2.toString = toString7, lodash2.toUpper = toUpper, lodash2.trim = trim, lodash2.trimEnd = trimEnd, lodash2.trimStart = trimStart, lodash2.truncate = truncate, lodash2.unescape = unescape, lodash2.uniqueId = uniqueId, lodash2.upperCase = upperCase, lodash2.upperFirst = upperFirst, lodash2.each = forEach, lodash2.eachRight = forEachRight, lodash2.first = head, mixin(lodash2, function() {
3630
+ return lodash2.after = after, lodash2.ary = ary, lodash2.assign = assign2, lodash2.assignIn = assignIn, lodash2.assignInWith = assignInWith, lodash2.assignWith = assignWith, lodash2.at = at, lodash2.before = before, lodash2.bind = bind, lodash2.bindAll = bindAll, lodash2.bindKey = bindKey, lodash2.castArray = castArray, lodash2.chain = chain, lodash2.chunk = chunk, lodash2.compact = compact, lodash2.concat = concat2, lodash2.cond = cond, lodash2.conforms = conforms, lodash2.constant = constant, lodash2.countBy = countBy, lodash2.create = create2, lodash2.curry = curry, lodash2.curryRight = curryRight, lodash2.debounce = debounce2, lodash2.defaults = defaults2, lodash2.defaultsDeep = defaultsDeep, lodash2.defer = defer2, lodash2.delay = delay2, lodash2.difference = difference, lodash2.differenceBy = differenceBy, lodash2.differenceWith = differenceWith, lodash2.drop = drop, lodash2.dropRight = dropRight, lodash2.dropRightWhile = dropRightWhile, lodash2.dropWhile = dropWhile, lodash2.fill = fill2, lodash2.filter = filter2, lodash2.flatMap = flatMap2, lodash2.flatMapDeep = flatMapDeep, lodash2.flatMapDepth = flatMapDepth, lodash2.flatten = flatten, lodash2.flattenDeep = flattenDeep, lodash2.flattenDepth = flattenDepth, lodash2.flip = flip2, lodash2.flow = flow2, lodash2.flowRight = flowRight, lodash2.fromPairs = fromPairs, lodash2.functions = functions, lodash2.functionsIn = functionsIn, lodash2.groupBy = groupBy2, lodash2.initial = initial, lodash2.intersection = intersection, lodash2.intersectionBy = intersectionBy, lodash2.intersectionWith = intersectionWith, lodash2.invert = invert, lodash2.invertBy = invertBy, lodash2.invokeMap = invokeMap, lodash2.iteratee = iteratee, lodash2.keyBy = keyBy, lodash2.keys = keys, lodash2.keysIn = keysIn, lodash2.map = map2, lodash2.mapKeys = mapKeys, lodash2.mapValues = mapValues, lodash2.matches = matches2, lodash2.matchesProperty = matchesProperty, lodash2.memoize = memoize, lodash2.merge = merge2, lodash2.mergeWith = mergeWith, lodash2.method = method, lodash2.methodOf = methodOf, lodash2.mixin = mixin, lodash2.negate = negate, lodash2.nthArg = nthArg, lodash2.omit = omit, lodash2.omitBy = omitBy, lodash2.once = once2, lodash2.orderBy = orderBy, lodash2.over = over, lodash2.overArgs = overArgs, lodash2.overEvery = overEvery, lodash2.overSome = overSome, lodash2.partial = partial, lodash2.partialRight = partialRight, lodash2.partition = partition2, lodash2.pick = pick, lodash2.pickBy = pickBy, lodash2.property = property, lodash2.propertyOf = propertyOf, lodash2.pull = pull, lodash2.pullAll = pullAll, lodash2.pullAllBy = pullAllBy, lodash2.pullAllWith = pullAllWith, lodash2.pullAt = pullAt, lodash2.range = range2, lodash2.rangeRight = rangeRight, lodash2.rearg = rearg, lodash2.reject = reject, lodash2.remove = remove, lodash2.rest = rest, lodash2.reverse = reverse, lodash2.sampleSize = sampleSize, lodash2.set = set2, lodash2.setWith = setWith, lodash2.shuffle = shuffle, lodash2.slice = slice2, lodash2.sortBy = sortBy, lodash2.sortedUniq = sortedUniq, lodash2.sortedUniqBy = sortedUniqBy, lodash2.split = split, lodash2.spread = spread, lodash2.tail = tail, lodash2.take = take2, lodash2.takeRight = takeRight, lodash2.takeRightWhile = takeRightWhile, lodash2.takeWhile = takeWhile2, lodash2.tap = tap2, lodash2.throttle = throttle2, lodash2.thru = thru, lodash2.toArray = toArray2, lodash2.toPairs = toPairs, lodash2.toPairsIn = toPairsIn, lodash2.toPath = toPath, lodash2.toPlainObject = toPlainObject, lodash2.transform = transform2, lodash2.unary = unary, lodash2.union = union, lodash2.unionBy = unionBy, lodash2.unionWith = unionWith, lodash2.uniq = uniq, lodash2.uniqBy = uniqBy, lodash2.uniqWith = uniqWith, lodash2.unset = unset, lodash2.unzip = unzip, lodash2.unzipWith = unzipWith, lodash2.update = update, lodash2.updateWith = updateWith, lodash2.values = values, lodash2.valuesIn = valuesIn, lodash2.without = without, lodash2.words = words, lodash2.wrap = wrap, lodash2.xor = xor, lodash2.xorBy = xorBy, lodash2.xorWith = xorWith, lodash2.zip = zip2, lodash2.zipObject = zipObject, lodash2.zipObjectDeep = zipObjectDeep, lodash2.zipWith = zipWith, lodash2.entries = toPairs, lodash2.entriesIn = toPairsIn, lodash2.extend = assignIn, lodash2.extendWith = assignInWith, mixin(lodash2, lodash2), lodash2.add = add, lodash2.attempt = attempt, lodash2.camelCase = camelCase2, lodash2.capitalize = capitalize, lodash2.ceil = ceil, lodash2.clamp = clamp, lodash2.clone = clone2, lodash2.cloneDeep = cloneDeep, lodash2.cloneDeepWith = cloneDeepWith, lodash2.cloneWith = cloneWith, lodash2.conformsTo = conformsTo, lodash2.deburr = deburr, lodash2.defaultTo = defaultTo, lodash2.divide = divide, lodash2.endsWith = endsWith, lodash2.eq = eq, lodash2.escape = escape2, lodash2.escapeRegExp = escapeRegExp, lodash2.every = every2, lodash2.find = find2, lodash2.findIndex = findIndex2, lodash2.findKey = findKey, lodash2.findLast = findLast, lodash2.findLastIndex = findLastIndex, lodash2.findLastKey = findLastKey, lodash2.floor = floor, lodash2.forEach = forEach, lodash2.forEachRight = forEachRight, lodash2.forIn = forIn, lodash2.forInRight = forInRight, lodash2.forOwn = forOwn, lodash2.forOwnRight = forOwnRight, lodash2.get = get, lodash2.gt = gt, lodash2.gte = gte2, lodash2.has = has, lodash2.hasIn = hasIn, lodash2.head = head, lodash2.identity = identity2, lodash2.includes = includes, lodash2.indexOf = indexOf, lodash2.inRange = inRange, lodash2.invoke = invoke, lodash2.isArguments = isArguments, lodash2.isArray = isArray2, lodash2.isArrayBuffer = isArrayBuffer, lodash2.isArrayLike = isArrayLike2, lodash2.isArrayLikeObject = isArrayLikeObject, lodash2.isBoolean = isBoolean2, lodash2.isBuffer = isBuffer, lodash2.isDate = isDate2, lodash2.isElement = isElement, lodash2.isEmpty = isEmpty2, lodash2.isEqual = isEqual, lodash2.isEqualWith = isEqualWith, lodash2.isError = isError, lodash2.isFinite = isFinite2, lodash2.isFunction = isFunction2, lodash2.isInteger = isInteger2, lodash2.isLength = isLength, lodash2.isMap = isMap, lodash2.isMatch = isMatch, lodash2.isMatchWith = isMatchWith, lodash2.isNaN = isNaN2, lodash2.isNative = isNative, lodash2.isNil = isNil, lodash2.isNull = isNull2, lodash2.isNumber = isNumber2, lodash2.isObject = isObject3, lodash2.isObjectLike = isObjectLike2, lodash2.isPlainObject = isPlainObject3, lodash2.isRegExp = isRegExp2, lodash2.isSafeInteger = isSafeInteger, lodash2.isSet = isSet, lodash2.isString = isString, lodash2.isSymbol = isSymbol, lodash2.isTypedArray = isTypedArray2, lodash2.isUndefined = isUndefined2, lodash2.isWeakMap = isWeakMap, lodash2.isWeakSet = isWeakSet, lodash2.join = join2, lodash2.kebabCase = kebabCase, lodash2.last = last2, lodash2.lastIndexOf = lastIndexOf, lodash2.lowerCase = lowerCase, lodash2.lowerFirst = lowerFirst, lodash2.lt = lt, lodash2.lte = lte2, lodash2.max = max2, lodash2.maxBy = maxBy, lodash2.mean = mean, lodash2.meanBy = meanBy, lodash2.min = min2, lodash2.minBy = minBy, lodash2.stubArray = stubArray, lodash2.stubFalse = stubFalse, lodash2.stubObject = stubObject, lodash2.stubString = stubString, lodash2.stubTrue = stubTrue, lodash2.multiply = multiply, lodash2.nth = nth, lodash2.noConflict = noConflict, lodash2.noop = noop2, lodash2.now = now, lodash2.pad = pad2, lodash2.padEnd = padEnd, lodash2.padStart = padStart2, lodash2.parseInt = parseInt2, lodash2.random = random, lodash2.reduce = reduce2, lodash2.reduceRight = reduceRight, lodash2.repeat = repeat2, lodash2.replace = replace, lodash2.result = result, lodash2.round = round2, lodash2.runInContext = runInContext2, lodash2.sample = sample2, lodash2.size = size, lodash2.snakeCase = snakeCase, lodash2.some = some, lodash2.sortedIndex = sortedIndex, lodash2.sortedIndexBy = sortedIndexBy, lodash2.sortedIndexOf = sortedIndexOf, lodash2.sortedLastIndex = sortedLastIndex, lodash2.sortedLastIndexBy = sortedLastIndexBy, lodash2.sortedLastIndexOf = sortedLastIndexOf, lodash2.startCase = startCase, lodash2.startsWith = startsWith, lodash2.subtract = subtract, lodash2.sum = sum, lodash2.sumBy = sumBy, lodash2.template = template, lodash2.times = times, lodash2.toFinite = toFinite, lodash2.toInteger = toInteger, lodash2.toLength = toLength, lodash2.toLower = toLower, lodash2.toNumber = toNumber, lodash2.toSafeInteger = toSafeInteger, lodash2.toString = toString7, lodash2.toUpper = toUpper, lodash2.trim = trim, lodash2.trimEnd = trimEnd, lodash2.trimStart = trimStart, lodash2.truncate = truncate, lodash2.unescape = unescape, lodash2.uniqueId = uniqueId, lodash2.upperCase = upperCase, lodash2.upperFirst = upperFirst, lodash2.each = forEach, lodash2.eachRight = forEachRight, lodash2.first = head, mixin(lodash2, function() {
3631
3631
  var source2 = {};
3632
3632
  return baseForOwn(lodash2, function(func, methodName) {
3633
3633
  hasOwnProperty2.call(lodash2.prototype, methodName) || (source2[methodName] = func);
@@ -3774,7 +3774,7 @@ var semverCompare = function(a, b) {
3774
3774
  return 0;
3775
3775
  }, semverCompare$1 = /* @__PURE__ */ loadEnv.getDefaultExportFromCjs(semverCompare);
3776
3776
  async function readJson(filePath) {
3777
- const content = await fs$o.readFile(filePath, "utf8");
3777
+ const content = await fs$q.readFile(filePath, "utf8");
3778
3778
  return JSON.parse(content);
3779
3779
  }
3780
3780
  const purpose = "Transform react-icons v2 imports to v3 form", description$1 = `
@@ -4084,7 +4084,7 @@ var stripJsonComments$1 = function(str2, opts) {
4084
4084
  }
4085
4085
  }
4086
4086
  return ret + (insideComment ? strip(str2.substr(offset)) : str2.substr(offset));
4087
- }, fs$m = require$$0__default$1.default, ini$4 = ini$5, path$r = require$$0__default.default, stripJsonComments = stripJsonComments$1, parse$e = utils$b.parse = function(content) {
4087
+ }, fs$o = require$$0__default$1.default, ini$4 = ini$5, path$r = require$$0__default.default, stripJsonComments = stripJsonComments$1, parse$e = utils$b.parse = function(content) {
4088
4088
  return /^\s*{/.test(content) ? JSON.parse(stripJsonComments(content)) : ini$4.parse(content);
4089
4089
  }, file = utils$b.file = function() {
4090
4090
  var args = [].slice.call(arguments).filter(function(arg) {
@@ -4095,7 +4095,7 @@ var stripJsonComments$1 = function(str2, opts) {
4095
4095
  return;
4096
4096
  var file2 = path$r.join.apply(null, args);
4097
4097
  try {
4098
- return fs$m.readFileSync(file2, "utf-8");
4098
+ return fs$o.readFileSync(file2, "utf-8");
4099
4099
  } catch {
4100
4100
  return;
4101
4101
  }
@@ -4123,7 +4123,7 @@ utils$b.find = function() {
4123
4123
  function find2(start, rel2) {
4124
4124
  var file2 = path$r.join(start, rel2);
4125
4125
  try {
4126
- return fs$m.statSync(file2), file2;
4126
+ return fs$o.statSync(file2), file2;
4127
4127
  } catch {
4128
4128
  if (path$r.dirname(start) !== start)
4129
4129
  return find2(path$r.dirname(start), rel2);
@@ -4610,7 +4610,7 @@ function clone$3(obj) {
4610
4610
  Object.defineProperty(copy2, key2, Object.getOwnPropertyDescriptor(obj, key2));
4611
4611
  }), copy2;
4612
4612
  }
4613
- var fs$l = require$$0__default$1.default, polyfills$2 = polyfills$3, legacy$2 = legacyStreams$1, clone$2 = clone_1$1, util$9 = require$$0__default$5.default, gracefulQueue$1, previousSymbol$1;
4613
+ var fs$n = require$$0__default$1.default, polyfills$2 = polyfills$3, legacy$2 = legacyStreams$1, clone$2 = clone_1$1, util$a = require$$0__default$5.default, gracefulQueue$1, previousSymbol$1;
4614
4614
  typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue$1 = Symbol.for("graceful-fs.queue"), previousSymbol$1 = Symbol.for("graceful-fs.previous")) : (gracefulQueue$1 = "___graceful-fs.queue", previousSymbol$1 = "___graceful-fs.previous");
4615
4615
  function noop$4() {
4616
4616
  }
@@ -4622,36 +4622,36 @@ function publishQueue$1(context, queue2) {
4622
4622
  });
4623
4623
  }
4624
4624
  var debug$4 = noop$4;
4625
- util$9.debuglog ? debug$4 = util$9.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (debug$4 = function() {
4626
- var m = util$9.format.apply(util$9, arguments);
4625
+ util$a.debuglog ? debug$4 = util$a.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (debug$4 = function() {
4626
+ var m = util$a.format.apply(util$a, arguments);
4627
4627
  m = "GFS4: " + m.split(/\n/).join(`
4628
4628
  GFS4: `), console.error(m);
4629
4629
  });
4630
- if (!fs$l[gracefulQueue$1]) {
4630
+ if (!fs$n[gracefulQueue$1]) {
4631
4631
  var queue$2 = loadEnv.commonjsGlobal[gracefulQueue$1] || [];
4632
- publishQueue$1(fs$l, queue$2), fs$l.close = function(fs$close) {
4632
+ publishQueue$1(fs$n, queue$2), fs$n.close = function(fs$close) {
4633
4633
  function close(fd, cb) {
4634
- return fs$close.call(fs$l, fd, function(err) {
4634
+ return fs$close.call(fs$n, fd, function(err) {
4635
4635
  err || resetQueue$1(), typeof cb == "function" && cb.apply(this, arguments);
4636
4636
  });
4637
4637
  }
4638
4638
  return Object.defineProperty(close, previousSymbol$1, {
4639
4639
  value: fs$close
4640
4640
  }), close;
4641
- }(fs$l.close), fs$l.closeSync = function(fs$closeSync) {
4641
+ }(fs$n.close), fs$n.closeSync = function(fs$closeSync) {
4642
4642
  function closeSync(fd) {
4643
- fs$closeSync.apply(fs$l, arguments), resetQueue$1();
4643
+ fs$closeSync.apply(fs$n, arguments), resetQueue$1();
4644
4644
  }
4645
4645
  return Object.defineProperty(closeSync, previousSymbol$1, {
4646
4646
  value: fs$closeSync
4647
4647
  }), closeSync;
4648
- }(fs$l.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
4649
- debug$4(fs$l[gracefulQueue$1]), require$$5__default.default.equal(fs$l[gracefulQueue$1].length, 0);
4648
+ }(fs$n.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
4649
+ debug$4(fs$n[gracefulQueue$1]), require$$5__default.default.equal(fs$n[gracefulQueue$1].length, 0);
4650
4650
  });
4651
4651
  }
4652
- loadEnv.commonjsGlobal[gracefulQueue$1] || publishQueue$1(loadEnv.commonjsGlobal, fs$l[gracefulQueue$1]);
4653
- var gracefulFs$1 = patch$2(clone$2(fs$l));
4654
- process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$l.__patched && (gracefulFs$1 = patch$2(fs$l), fs$l.__patched = !0);
4652
+ loadEnv.commonjsGlobal[gracefulQueue$1] || publishQueue$1(loadEnv.commonjsGlobal, fs$n[gracefulQueue$1]);
4653
+ var gracefulFs$1 = patch$2(clone$2(fs$n));
4654
+ process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$n.__patched && (gracefulFs$1 = patch$2(fs$n), fs$n.__patched = !0);
4655
4655
  function patch$2(fs2) {
4656
4656
  polyfills$2(fs2), fs2.gracefulify = patch$2, fs2.createReadStream = createReadStream, fs2.createWriteStream = createWriteStream;
4657
4657
  var fs$readFile = fs2.readFile;
@@ -4812,17 +4812,17 @@ function patch$2(fs2) {
4812
4812
  return fs2;
4813
4813
  }
4814
4814
  function enqueue$1(elem) {
4815
- debug$4("ENQUEUE", elem[0].name, elem[1]), fs$l[gracefulQueue$1].push(elem), retry$3();
4815
+ debug$4("ENQUEUE", elem[0].name, elem[1]), fs$n[gracefulQueue$1].push(elem), retry$3();
4816
4816
  }
4817
4817
  var retryTimer$1;
4818
4818
  function resetQueue$1() {
4819
- for (var now = Date.now(), i2 = 0; i2 < fs$l[gracefulQueue$1].length; ++i2)
4820
- fs$l[gracefulQueue$1][i2].length > 2 && (fs$l[gracefulQueue$1][i2][3] = now, fs$l[gracefulQueue$1][i2][4] = now);
4819
+ for (var now = Date.now(), i2 = 0; i2 < fs$n[gracefulQueue$1].length; ++i2)
4820
+ fs$n[gracefulQueue$1][i2].length > 2 && (fs$n[gracefulQueue$1][i2][3] = now, fs$n[gracefulQueue$1][i2][4] = now);
4821
4821
  retry$3();
4822
4822
  }
4823
4823
  function retry$3() {
4824
- if (clearTimeout(retryTimer$1), retryTimer$1 = void 0, fs$l[gracefulQueue$1].length !== 0) {
4825
- var elem = fs$l[gracefulQueue$1].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
4824
+ if (clearTimeout(retryTimer$1), retryTimer$1 = void 0, fs$n[gracefulQueue$1].length !== 0) {
4825
+ var elem = fs$n[gracefulQueue$1].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
4826
4826
  if (startTime === void 0)
4827
4827
  debug$4("RETRY", fn2.name, args), fn2.apply(null, args);
4828
4828
  else if (Date.now() - startTime >= 6e4) {
@@ -4831,7 +4831,7 @@ function retry$3() {
4831
4831
  typeof cb == "function" && cb.call(null, err);
4832
4832
  } else {
4833
4833
  var sinceAttempt = Date.now() - lastTime, sinceStart = Math.max(lastTime - startTime, 1), desiredDelay = Math.min(sinceStart * 1.2, 100);
4834
- sinceAttempt >= desiredDelay ? (debug$4("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$l[gracefulQueue$1].push(elem);
4834
+ sinceAttempt >= desiredDelay ? (debug$4("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$n[gracefulQueue$1].push(elem);
4835
4835
  }
4836
4836
  retryTimer$1 === void 0 && (retryTimer$1 = setTimeout(retry$3, 0));
4837
4837
  }
@@ -4935,7 +4935,7 @@ ProtoList$1.prototype = {
4935
4935
  return ret;
4936
4936
  }
4937
4937
  };
4938
- var ProtoList = protoList, path$q = require$$0__default.default, fs$k = require$$0__default$1.default, ini$3 = ini$5, EE$1 = require$$3__default.default.EventEmitter, url$2 = require$$0__default$6.default, http = require$$6__default.default, exports$1 = configChain.exports = function() {
4938
+ var ProtoList = protoList, path$q = require$$0__default.default, fs$m = require$$0__default$1.default, ini$3 = ini$5, EE$1 = require$$3__default.default.EventEmitter, url$2 = require$$0__default$6.default, http = require$$6__default.default, exports$1 = configChain.exports = function() {
4939
4939
  for (var args = [].slice.call(arguments), conf2 = new ConfigChain$1(); args.length; ) {
4940
4940
  var a = args.shift();
4941
4941
  a && conf2.push(typeof a == "string" ? json$3(a) : a);
@@ -4947,7 +4947,7 @@ exports$1.find = function() {
4947
4947
  function find2(start, rel2) {
4948
4948
  var file2 = path$q.join(start, rel2);
4949
4949
  try {
4950
- return fs$k.statSync(file2), file2;
4950
+ return fs$m.statSync(file2), file2;
4951
4951
  } catch {
4952
4952
  if (path$q.dirname(start) !== start)
4953
4953
  return find2(path$q.dirname(start), rel2);
@@ -4978,7 +4978,7 @@ var parse$d = exports$1.parse = function(content, file2, type2) {
4978
4978
  return arg != null;
4979
4979
  }), file2 = path$q.join.apply(null, args), content;
4980
4980
  try {
4981
- content = fs$k.readFileSync(file2, "utf-8");
4981
+ content = fs$m.readFileSync(file2, "utf-8");
4982
4982
  } catch {
4983
4983
  return;
4984
4984
  }
@@ -5037,7 +5037,7 @@ ConfigChain$1.prototype.save = function(where, type2, cb) {
5037
5037
  }), this;
5038
5038
  }
5039
5039
  var type2 = type2 || target.type, data = target.data;
5040
- return target.type === "json" ? data = JSON.stringify(data) : data = ini$3.stringify(data), this._saving++, fs$k.writeFile(target.path, data, "utf8", function(er) {
5040
+ return target.type === "json" ? data = JSON.stringify(data) : data = ini$3.stringify(data), this._saving++, fs$m.writeFile(target.path, data, "utf8", function(er) {
5041
5041
  if (this._saving--, er)
5042
5042
  return cb ? cb(er) : this.emit("error", er);
5043
5043
  this._saving === 0 && (cb && cb(), this.emit("save"));
@@ -5046,7 +5046,7 @@ ConfigChain$1.prototype.save = function(where, type2, cb) {
5046
5046
  ConfigChain$1.prototype.addFile = function(file2, type2, name) {
5047
5047
  name = name || file2;
5048
5048
  var marker = { __source__: name };
5049
- return this.sources[name] = { path: file2, type: type2 }, this.push(marker), this._await(), fs$k.readFile(file2, "utf8", function(er, data) {
5049
+ return this.sources[name] = { path: file2, type: type2 }, this.push(marker), this._await(), fs$m.readFile(file2, "utf8", function(er, data) {
5050
5050
  er && this.emit("error", er), this.addString(data, file2, type2, marker);
5051
5051
  }.bind(this)), this;
5052
5052
  };
@@ -5101,7 +5101,7 @@ function normalize(s) {
5101
5101
  r += s[i2] === "_" ? "-" : s[i2];
5102
5102
  return r;
5103
5103
  }
5104
- var util$8 = {}, dist$3 = {}, envReplace$2 = {};
5104
+ var util$9 = {}, dist$3 = {}, envReplace$2 = {};
5105
5105
  Object.defineProperty(envReplace$2, "__esModule", { value: !0 });
5106
5106
  envReplace$2.envReplace = void 0;
5107
5107
  const ENV_EXPR = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
@@ -5132,7 +5132,7 @@ function getEnvValue(env, name) {
5132
5132
  return env_replace_1.envReplace;
5133
5133
  } });
5134
5134
  })(dist$3);
5135
- const fs$j = require$$0__default$1.default, path$p = require$$0__default.default, { envReplace } = dist$3, parseKey = (key2) => typeof key2 != "string" ? key2 : envReplace(key2, process.env), parseField = (types2, field, key2) => {
5135
+ const fs$l = require$$0__default$1.default, path$p = require$$0__default.default, { envReplace } = dist$3, parseKey = (key2) => typeof key2 != "string" ? key2 : envReplace(key2, process.env), parseField = (types2, field, key2) => {
5136
5136
  if (typeof field != "string")
5137
5137
  return field;
5138
5138
  const typeList = [].concat(types2[key2]), isPath = typeList.indexOf(path$p) !== -1, isBool = typeList.indexOf(Boolean) !== -1, isString = typeList.indexOf(String) !== -1, isNumber2 = typeList.indexOf(Number) !== -1;
@@ -5168,7 +5168,7 @@ const fs$j = require$$0__default$1.default, path$p = require$$0__default.default
5168
5168
  if (name2 === "/" || process.platform === "win32" && regex2.test(name2))
5169
5169
  return original;
5170
5170
  try {
5171
- const files = fs$j.readdirSync(name2);
5171
+ const files = fs$l.readdirSync(name2);
5172
5172
  if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml"))
5173
5173
  return name2;
5174
5174
  const dirname = path$p.dirname(name2);
@@ -5184,10 +5184,10 @@ const fs$j = require$$0__default$1.default, path$p = require$$0__default.default
5184
5184
  };
5185
5185
  return find2(name, name);
5186
5186
  };
5187
- util$8.envReplace = envReplace;
5188
- util$8.findPrefix = findPrefix;
5189
- util$8.parseField = parseField;
5190
- util$8.parseKey = parseKey;
5187
+ util$9.envReplace = envReplace;
5188
+ util$9.findPrefix = findPrefix;
5189
+ util$9.parseField = parseField;
5190
+ util$9.parseKey = parseKey;
5191
5191
  var types$2 = {}, hasRequiredTypes$1;
5192
5192
  function requireTypes$1() {
5193
5193
  if (hasRequiredTypes$1) return types$2;
@@ -5320,17 +5320,17 @@ function requireTypes$1() {
5320
5320
  _exit: Boolean
5321
5321
  }, types$2;
5322
5322
  }
5323
- const { readCAFileSync } = dist$4, fs$i = require$$0__default$1.default, path$o = require$$0__default.default, { ConfigChain } = configChainExports, envKeyToSetting = envKeyToSetting$1, util$7 = util$8;
5323
+ const { readCAFileSync } = dist$4, fs$k = require$$0__default$1.default, path$o = require$$0__default.default, { ConfigChain } = configChainExports, envKeyToSetting = envKeyToSetting$1, util$8 = util$9;
5324
5324
  class Conf extends ConfigChain {
5325
5325
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L203-L217
5326
5326
  constructor(base2, types2) {
5327
- super(base2), this.root = base2, this._parseField = util$7.parseField.bind(null, types2 || requireTypes$1());
5327
+ super(base2), this.root = base2, this._parseField = util$8.parseField.bind(null, types2 || requireTypes$1());
5328
5328
  }
5329
5329
  // https://github.com/npm/cli/blob/latest/lib/config/core.js#L326-L338
5330
5330
  add(data, marker) {
5331
5331
  try {
5332
5332
  for (const [key2, value] of Object.entries(data)) {
5333
- const substKey = util$7.parseKey(key2);
5333
+ const substKey = util$8.parseKey(key2);
5334
5334
  substKey !== key2 && delete data[key2], data[substKey] = this._parseField(value, substKey);
5335
5335
  }
5336
5336
  } catch (error2) {
@@ -5344,7 +5344,7 @@ class Conf extends ConfigChain {
5344
5344
  const marker = { __source__: name };
5345
5345
  this.sources[name] = { path: file2, type: "ini" }, this.push(marker), this._await();
5346
5346
  try {
5347
- const contents = fs$i.readFileSync(file2, "utf8");
5347
+ const contents = fs$k.readFileSync(file2, "utf8");
5348
5348
  this.addString(contents, file2, "ini", marker);
5349
5349
  } catch (error2) {
5350
5350
  if (error2.code === "ENOENT")
@@ -5392,7 +5392,7 @@ class Conf extends ConfigChain {
5392
5392
  p = path$o.resolve(cli.prefix);
5393
5393
  else
5394
5394
  try {
5395
- p = util$7.findPrefix(process.cwd());
5395
+ p = util$8.findPrefix(process.cwd());
5396
5396
  } catch (error2) {
5397
5397
  throw error2;
5398
5398
  }
@@ -5416,7 +5416,7 @@ class Conf extends ConfigChain {
5416
5416
  }
5417
5417
  const prefix = path$o.resolve(this.get("prefix"));
5418
5418
  try {
5419
- const stats = fs$i.statSync(prefix);
5419
+ const stats = fs$k.statSync(prefix);
5420
5420
  defConf.user = stats.uid;
5421
5421
  } catch (error2) {
5422
5422
  if (error2.code === "ENOENT")
@@ -5721,8 +5721,8 @@ async function getLatestVersion(pkgName, opts) {
5721
5721
  return options2.includeLatest ? { latest, inRange: data["dist-tags"][range2] } : data["dist-tags"][range2];
5722
5722
  if (data.versions[range2])
5723
5723
  return options2.includeLatest ? { latest, inRange: range2 } : range2;
5724
- const versions = Object.keys(data.versions), version = semver$1.maxSatisfying(versions, range2);
5725
- return version ? options2.includeLatest ? { latest, inRange: version } : version : options2.includeLatest ? { latest, inRange: void 0 } : void 0;
5724
+ const versions = Object.keys(data.versions), version2 = semver$1.maxSatisfying(versions, range2);
5725
+ return version2 ? options2.includeLatest ? { latest, inRange: version2 } : version2 : options2.includeLatest ? { latest, inRange: void 0 } : void 0;
5726
5726
  }
5727
5727
  getLatestVersion.request = httpRequest;
5728
5728
  var src = getLatestVersion, latestVersion = /* @__PURE__ */ loadEnv.getDefaultExportFromCjs(src);
@@ -5750,7 +5750,7 @@ function getLocalVersion(moduleId, workDir) {
5750
5750
  }
5751
5751
  function tryGetVersion(modulePath) {
5752
5752
  try {
5753
- const fileContent = fs$p.readFileSync(modulePath, "utf8");
5753
+ const fileContent = fs$r.readFileSync(modulePath, "utf8");
5754
5754
  return JSON.parse(fileContent).version;
5755
5755
  } catch {
5756
5756
  return;
@@ -5775,7 +5775,7 @@ async function findSanityModuleVersions(context, options2 = {}) {
5775
5775
  }
5776
5776
  function getLocalManifest(workDir) {
5777
5777
  try {
5778
- const fileContent = fs$p.readFileSync(path$t.join(workDir, "package.json"), "utf8");
5778
+ const fileContent = fs$r.readFileSync(path$t.join(workDir, "package.json"), "utf8");
5779
5779
  return JSON.parse(fileContent);
5780
5780
  } catch {
5781
5781
  return {};
@@ -5831,11 +5831,11 @@ async function tryFindLatestVersion(pkgName, range2) {
5831
5831
  return { latest: await latestVersion(pkgName), latestInRange: void 0 };
5832
5832
  }
5833
5833
  }
5834
- function isPinnedVersion(version) {
5835
- return /^\d+\.\d+\.\d+/.test(version);
5834
+ function isPinnedVersion(version2) {
5835
+ return /^\d+\.\d+\.\d+/.test(version2);
5836
5836
  }
5837
- function trimHash(version) {
5838
- return version.replace(/\+[a-z0-9]{8,}$/, "");
5837
+ function trimHash(version2) {
5838
+ return version2.replace(/\+[a-z0-9]{8,}$/, "");
5839
5839
  }
5840
5840
  const BASE_URL = "https://docs.sanity.io/help/";
5841
5841
  function generateHelpUrl(slug) {
@@ -6098,7 +6098,7 @@ function clone$1(obj) {
6098
6098
  Object.defineProperty(copy2, key2, Object.getOwnPropertyDescriptor(obj, key2));
6099
6099
  }), copy2;
6100
6100
  }
6101
- var fs$h = require$$0__default$1.default, polyfills = polyfills$1, legacy = legacyStreams, clone = clone_1, util$6 = require$$0__default$5.default, gracefulQueue, previousSymbol;
6101
+ var fs$j = require$$0__default$1.default, polyfills = polyfills$1, legacy = legacyStreams, clone = clone_1, util$7 = require$$0__default$5.default, gracefulQueue, previousSymbol;
6102
6102
  typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue = Symbol.for("graceful-fs.queue"), previousSymbol = Symbol.for("graceful-fs.previous")) : (gracefulQueue = "___graceful-fs.queue", previousSymbol = "___graceful-fs.previous");
6103
6103
  function noop$3() {
6104
6104
  }
@@ -6110,36 +6110,36 @@ function publishQueue(context, queue2) {
6110
6110
  });
6111
6111
  }
6112
6112
  var debug$2 = noop$3;
6113
- util$6.debuglog ? debug$2 = util$6.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (debug$2 = function() {
6114
- var m = util$6.format.apply(util$6, arguments);
6113
+ util$7.debuglog ? debug$2 = util$7.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (debug$2 = function() {
6114
+ var m = util$7.format.apply(util$7, arguments);
6115
6115
  m = "GFS4: " + m.split(/\n/).join(`
6116
6116
  GFS4: `), console.error(m);
6117
6117
  });
6118
- if (!fs$h[gracefulQueue]) {
6118
+ if (!fs$j[gracefulQueue]) {
6119
6119
  var queue$1 = loadEnv.commonjsGlobal[gracefulQueue] || [];
6120
- publishQueue(fs$h, queue$1), fs$h.close = function(fs$close) {
6120
+ publishQueue(fs$j, queue$1), fs$j.close = function(fs$close) {
6121
6121
  function close(fd, cb) {
6122
- return fs$close.call(fs$h, fd, function(err) {
6122
+ return fs$close.call(fs$j, fd, function(err) {
6123
6123
  err || resetQueue(), typeof cb == "function" && cb.apply(this, arguments);
6124
6124
  });
6125
6125
  }
6126
6126
  return Object.defineProperty(close, previousSymbol, {
6127
6127
  value: fs$close
6128
6128
  }), close;
6129
- }(fs$h.close), fs$h.closeSync = function(fs$closeSync) {
6129
+ }(fs$j.close), fs$j.closeSync = function(fs$closeSync) {
6130
6130
  function closeSync(fd) {
6131
- fs$closeSync.apply(fs$h, arguments), resetQueue();
6131
+ fs$closeSync.apply(fs$j, arguments), resetQueue();
6132
6132
  }
6133
6133
  return Object.defineProperty(closeSync, previousSymbol, {
6134
6134
  value: fs$closeSync
6135
6135
  }), closeSync;
6136
- }(fs$h.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
6137
- debug$2(fs$h[gracefulQueue]), require$$5__default.default.equal(fs$h[gracefulQueue].length, 0);
6136
+ }(fs$j.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
6137
+ debug$2(fs$j[gracefulQueue]), require$$5__default.default.equal(fs$j[gracefulQueue].length, 0);
6138
6138
  });
6139
6139
  }
6140
- loadEnv.commonjsGlobal[gracefulQueue] || publishQueue(loadEnv.commonjsGlobal, fs$h[gracefulQueue]);
6141
- var gracefulFs = patch(clone(fs$h));
6142
- process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$h.__patched && (gracefulFs = patch(fs$h), fs$h.__patched = !0);
6140
+ loadEnv.commonjsGlobal[gracefulQueue] || publishQueue(loadEnv.commonjsGlobal, fs$j[gracefulQueue]);
6141
+ var gracefulFs = patch(clone(fs$j));
6142
+ process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs$j.__patched && (gracefulFs = patch(fs$j), fs$j.__patched = !0);
6143
6143
  function patch(fs2) {
6144
6144
  polyfills(fs2), fs2.gracefulify = patch, fs2.createReadStream = createReadStream, fs2.createWriteStream = createWriteStream;
6145
6145
  var fs$readFile = fs2.readFile;
@@ -6300,17 +6300,17 @@ function patch(fs2) {
6300
6300
  return fs2;
6301
6301
  }
6302
6302
  function enqueue(elem) {
6303
- debug$2("ENQUEUE", elem[0].name, elem[1]), fs$h[gracefulQueue].push(elem), retry$1();
6303
+ debug$2("ENQUEUE", elem[0].name, elem[1]), fs$j[gracefulQueue].push(elem), retry$1();
6304
6304
  }
6305
6305
  var retryTimer;
6306
6306
  function resetQueue() {
6307
- for (var now = Date.now(), i2 = 0; i2 < fs$h[gracefulQueue].length; ++i2)
6308
- fs$h[gracefulQueue][i2].length > 2 && (fs$h[gracefulQueue][i2][3] = now, fs$h[gracefulQueue][i2][4] = now);
6307
+ for (var now = Date.now(), i2 = 0; i2 < fs$j[gracefulQueue].length; ++i2)
6308
+ fs$j[gracefulQueue][i2].length > 2 && (fs$j[gracefulQueue][i2][3] = now, fs$j[gracefulQueue][i2][4] = now);
6309
6309
  retry$1();
6310
6310
  }
6311
6311
  function retry$1() {
6312
- if (clearTimeout(retryTimer), retryTimer = void 0, fs$h[gracefulQueue].length !== 0) {
6313
- var elem = fs$h[gracefulQueue].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
6312
+ if (clearTimeout(retryTimer), retryTimer = void 0, fs$j[gracefulQueue].length !== 0) {
6313
+ var elem = fs$j[gracefulQueue].shift(), fn2 = elem[0], args = elem[1], err = elem[2], startTime = elem[3], lastTime = elem[4];
6314
6314
  if (startTime === void 0)
6315
6315
  debug$2("RETRY", fn2.name, args), fn2.apply(null, args);
6316
6316
  else if (Date.now() - startTime >= 6e4) {
@@ -6319,13 +6319,13 @@ function retry$1() {
6319
6319
  typeof cb == "function" && cb.call(null, err);
6320
6320
  } else {
6321
6321
  var sinceAttempt = Date.now() - lastTime, sinceStart = Math.max(lastTime - startTime, 1), desiredDelay = Math.min(sinceStart * 1.2, 100);
6322
- sinceAttempt >= desiredDelay ? (debug$2("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$h[gracefulQueue].push(elem);
6322
+ sinceAttempt >= desiredDelay ? (debug$2("RETRY", fn2.name, args), fn2.apply(null, args.concat([startTime]))) : fs$j[gracefulQueue].push(elem);
6323
6323
  }
6324
6324
  retryTimer === void 0 && (retryTimer = setTimeout(retry$1, 0));
6325
6325
  }
6326
6326
  }
6327
6327
  var makeDir$2 = { exports: {} };
6328
- const fs$g = require$$0__default$1.default, path$n = require$$0__default.default, { promisify: promisify$3 } = require$$0__default$5.default, semver = semver__default.default, useNativeRecursiveOption = semver.satisfies(process.version, ">=10.12.0"), checkPath = (pth) => {
6328
+ const fs$i = require$$0__default$1.default, path$n = require$$0__default.default, { promisify: promisify$3 } = require$$0__default$5.default, semver = semver__default.default, useNativeRecursiveOption = semver.satisfies(process.version, ">=10.12.0"), checkPath = (pth) => {
6329
6329
  if (process.platform === "win32" && /[<>:"|?*]/.test(pth.replace(path$n.parse(pth).root, ""))) {
6330
6330
  const error2 = new Error(`Path contains invalid characters: ${pth}`);
6331
6331
  throw error2.code = "EINVAL", error2;
@@ -6333,7 +6333,7 @@ const fs$g = require$$0__default$1.default, path$n = require$$0__default.default
6333
6333
  }, processOptions = (options2) => ({
6334
6334
  ...{
6335
6335
  mode: 511,
6336
- fs: fs$g
6336
+ fs: fs$i
6337
6337
  },
6338
6338
  ...options2
6339
6339
  }), permissionError$1 = (pth) => {
@@ -6342,7 +6342,7 @@ const fs$g = require$$0__default$1.default, path$n = require$$0__default.default
6342
6342
  }, makeDir$1 = async (input2, options2) => {
6343
6343
  checkPath(input2), options2 = processOptions(options2);
6344
6344
  const mkdir = promisify$3(options2.fs.mkdir), stat = promisify$3(options2.fs.stat);
6345
- if (useNativeRecursiveOption && options2.fs.mkdir === fs$g.mkdir) {
6345
+ if (useNativeRecursiveOption && options2.fs.mkdir === fs$i.mkdir) {
6346
6346
  const pth = path$n.resolve(input2);
6347
6347
  return await mkdir(pth, {
6348
6348
  mode: options2.mode,
@@ -6375,9 +6375,9 @@ const fs$g = require$$0__default$1.default, path$n = require$$0__default.default
6375
6375
  };
6376
6376
  makeDir$2.exports = makeDir$1;
6377
6377
  makeDir$2.exports.sync = (input2, options2) => {
6378
- if (checkPath(input2), options2 = processOptions(options2), useNativeRecursiveOption && options2.fs.mkdirSync === fs$g.mkdirSync) {
6378
+ if (checkPath(input2), options2 = processOptions(options2), useNativeRecursiveOption && options2.fs.mkdirSync === fs$i.mkdirSync) {
6379
6379
  const pth = path$n.resolve(input2);
6380
- return fs$g.mkdirSync(pth, {
6380
+ return fs$i.mkdirSync(pth, {
6381
6381
  mode: options2.mode,
6382
6382
  recursive: !0
6383
6383
  }), pth;
@@ -6593,7 +6593,7 @@ writeFileAtomic$1.exports = writeFile;
6593
6593
  writeFileAtomic$1.exports.sync = writeFileSync;
6594
6594
  writeFileAtomic$1.exports._getTmpname = getTmpname;
6595
6595
  writeFileAtomic$1.exports._cleanupOnExit = cleanupOnExit;
6596
- const fs$f = require$$0__default$1.default, MurmurHash3 = imurmurhashExports, onExit$1 = signalExitExports, path$m = require$$0__default.default, isTypedArray = isTypedarray, typedArrayToBuffer = typedarrayToBuffer, { promisify: promisify$2 } = require$$0__default$5.default, activeFiles = {}, threadId = function() {
6596
+ const fs$h = require$$0__default$1.default, MurmurHash3 = imurmurhashExports, onExit$1 = signalExitExports, path$m = require$$0__default.default, isTypedArray = isTypedarray, typedArrayToBuffer = typedarrayToBuffer, { promisify: promisify$2 } = require$$0__default$5.default, activeFiles = {}, threadId = function() {
6597
6597
  try {
6598
6598
  return require("worker_threads").threadId;
6599
6599
  } catch {
@@ -6607,7 +6607,7 @@ function getTmpname(filename) {
6607
6607
  function cleanupOnExit(tmpfile) {
6608
6608
  return () => {
6609
6609
  try {
6610
- fs$f.unlinkSync(typeof tmpfile == "function" ? tmpfile() : tmpfile);
6610
+ fs$h.unlinkSync(typeof tmpfile == "function" ? tmpfile() : tmpfile);
6611
6611
  } catch {
6612
6612
  }
6613
6613
  };
@@ -6626,25 +6626,25 @@ async function writeFileAsync(filename, data, options2 = {}) {
6626
6626
  const removeOnExitHandler = onExit$1(cleanupOnExit(() => tmpfile)), absoluteName = path$m.resolve(filename);
6627
6627
  try {
6628
6628
  await serializeActiveFile(absoluteName);
6629
- const truename = await promisify$2(fs$f.realpath)(filename).catch(() => filename);
6629
+ const truename = await promisify$2(fs$h.realpath)(filename).catch(() => filename);
6630
6630
  if (tmpfile = getTmpname(truename), !options2.mode || !options2.chown) {
6631
- const stats = await promisify$2(fs$f.stat)(truename).catch(() => {
6631
+ const stats = await promisify$2(fs$h.stat)(truename).catch(() => {
6632
6632
  });
6633
6633
  stats && (options2.mode == null && (options2.mode = stats.mode), options2.chown == null && process.getuid && (options2.chown = { uid: stats.uid, gid: stats.gid }));
6634
6634
  }
6635
- fd = await promisify$2(fs$f.open)(tmpfile, "w", options2.mode), options2.tmpfileCreated && await options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? await promisify$2(fs$f.write)(fd, data, 0, data.length, 0) : data != null && await promisify$2(fs$f.write)(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && await promisify$2(fs$f.fsync)(fd), await promisify$2(fs$f.close)(fd), fd = null, options2.chown && await promisify$2(fs$f.chown)(tmpfile, options2.chown.uid, options2.chown.gid).catch((err) => {
6635
+ fd = await promisify$2(fs$h.open)(tmpfile, "w", options2.mode), options2.tmpfileCreated && await options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? await promisify$2(fs$h.write)(fd, data, 0, data.length, 0) : data != null && await promisify$2(fs$h.write)(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && await promisify$2(fs$h.fsync)(fd), await promisify$2(fs$h.close)(fd), fd = null, options2.chown && await promisify$2(fs$h.chown)(tmpfile, options2.chown.uid, options2.chown.gid).catch((err) => {
6636
6636
  if (!isChownErrOk(err))
6637
6637
  throw err;
6638
- }), options2.mode && await promisify$2(fs$f.chmod)(tmpfile, options2.mode).catch((err) => {
6638
+ }), options2.mode && await promisify$2(fs$h.chmod)(tmpfile, options2.mode).catch((err) => {
6639
6639
  if (!isChownErrOk(err))
6640
6640
  throw err;
6641
- }), await promisify$2(fs$f.rename)(tmpfile, truename);
6641
+ }), await promisify$2(fs$h.rename)(tmpfile, truename);
6642
6642
  } finally {
6643
- fd && await promisify$2(fs$f.close)(fd).catch(
6643
+ fd && await promisify$2(fs$h.close)(fd).catch(
6644
6644
  /* istanbul ignore next */
6645
6645
  () => {
6646
6646
  }
6647
- ), removeOnExitHandler(), await promisify$2(fs$f.unlink)(tmpfile).catch(() => {
6647
+ ), removeOnExitHandler(), await promisify$2(fs$h.unlink)(tmpfile).catch(() => {
6648
6648
  }), activeFiles[absoluteName].shift(), activeFiles[absoluteName].length > 0 ? activeFiles[absoluteName][0]() : delete activeFiles[absoluteName];
6649
6649
  }
6650
6650
  }
@@ -6656,13 +6656,13 @@ function writeFile(filename, data, options2, callback) {
6656
6656
  function writeFileSync(filename, data, options2) {
6657
6657
  typeof options2 == "string" ? options2 = { encoding: options2 } : options2 || (options2 = {});
6658
6658
  try {
6659
- filename = fs$f.realpathSync(filename);
6659
+ filename = fs$h.realpathSync(filename);
6660
6660
  } catch {
6661
6661
  }
6662
6662
  const tmpfile = getTmpname(filename);
6663
6663
  if (!options2.mode || !options2.chown)
6664
6664
  try {
6665
- const stats = fs$f.statSync(filename);
6665
+ const stats = fs$h.statSync(filename);
6666
6666
  options2 = Object.assign({}, options2), options2.mode || (options2.mode = stats.mode), !options2.chown && process.getuid && (options2.chown = { uid: stats.uid, gid: stats.gid });
6667
6667
  } catch {
6668
6668
  }
@@ -6670,25 +6670,25 @@ function writeFileSync(filename, data, options2) {
6670
6670
  const cleanup = cleanupOnExit(tmpfile), removeOnExitHandler = onExit$1(cleanup);
6671
6671
  let threw = !0;
6672
6672
  try {
6673
- if (fd = fs$f.openSync(tmpfile, "w", options2.mode || 438), options2.tmpfileCreated && options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? fs$f.writeSync(fd, data, 0, data.length, 0) : data != null && fs$f.writeSync(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && fs$f.fsyncSync(fd), fs$f.closeSync(fd), fd = null, options2.chown)
6673
+ if (fd = fs$h.openSync(tmpfile, "w", options2.mode || 438), options2.tmpfileCreated && options2.tmpfileCreated(tmpfile), isTypedArray(data) && (data = typedArrayToBuffer(data)), Buffer.isBuffer(data) ? fs$h.writeSync(fd, data, 0, data.length, 0) : data != null && fs$h.writeSync(fd, String(data), 0, String(options2.encoding || "utf8")), options2.fsync !== !1 && fs$h.fsyncSync(fd), fs$h.closeSync(fd), fd = null, options2.chown)
6674
6674
  try {
6675
- fs$f.chownSync(tmpfile, options2.chown.uid, options2.chown.gid);
6675
+ fs$h.chownSync(tmpfile, options2.chown.uid, options2.chown.gid);
6676
6676
  } catch (err) {
6677
6677
  if (!isChownErrOk(err))
6678
6678
  throw err;
6679
6679
  }
6680
6680
  if (options2.mode)
6681
6681
  try {
6682
- fs$f.chmodSync(tmpfile, options2.mode);
6682
+ fs$h.chmodSync(tmpfile, options2.mode);
6683
6683
  } catch (err) {
6684
6684
  if (!isChownErrOk(err))
6685
6685
  throw err;
6686
6686
  }
6687
- fs$f.renameSync(tmpfile, filename), threw = !1;
6687
+ fs$h.renameSync(tmpfile, filename), threw = !1;
6688
6688
  } finally {
6689
6689
  if (fd)
6690
6690
  try {
6691
- fs$f.closeSync(fd);
6691
+ fs$h.closeSync(fd);
6692
6692
  } catch {
6693
6693
  }
6694
6694
  removeOnExitHandler(), threw && cleanup();
@@ -6777,7 +6777,7 @@ var cryptoRandomString$1 = (length) => {
6777
6777
  };
6778
6778
  const cryptoRandomString = cryptoRandomString$1;
6779
6779
  var uniqueString$1 = () => cryptoRandomString(32);
6780
- const path$l = require$$0__default.default, os$5 = require$$0__default$2.default, fs$e = gracefulFs, makeDir = makeDirExports, xdgBasedir = xdgBasedir$2, writeFileAtomic = writeFileAtomicExports, dotProp = dotProp$1, uniqueString = uniqueString$1, configDirectory = xdgBasedir.config || path$l.join(os$5.tmpdir(), uniqueString()), permissionError = "You don't have access to this file.", makeDirOptions = { mode: 448 }, writeFileOptions = { mode: 384 };
6780
+ const path$l = require$$0__default.default, os$5 = require$$0__default$2.default, fs$g = gracefulFs, makeDir = makeDirExports, xdgBasedir = xdgBasedir$2, writeFileAtomic = writeFileAtomicExports, dotProp = dotProp$1, uniqueString = uniqueString$1, configDirectory = xdgBasedir.config || path$l.join(os$5.tmpdir(), uniqueString()), permissionError = "You don't have access to this file.", makeDirOptions = { mode: 448 }, writeFileOptions = { mode: 384 };
6781
6781
  class Configstore {
6782
6782
  constructor(id, defaults2, options2 = {}) {
6783
6783
  const pathPrefix = options2.globalConfigPath ? path$l.join(id, "config.json") : path$l.join("configstore", `${id}.json`);
@@ -6788,7 +6788,7 @@ class Configstore {
6788
6788
  }
6789
6789
  get all() {
6790
6790
  try {
6791
- return JSON.parse(fs$e.readFileSync(this.path, "utf8"));
6791
+ return JSON.parse(fs$g.readFileSync(this.path, "utf8"));
6792
6792
  } catch (error2) {
6793
6793
  if (error2.code === "ENOENT")
6794
6794
  return {};
@@ -6889,8 +6889,8 @@ const printVersionResultCommand = async (args, context) => {
6889
6889
  function printResult(versions, print) {
6890
6890
  const { versionLength, formatName } = getFormatters(versions);
6891
6891
  versions.forEach((mod) => {
6892
- const version = lodashExports.padStart(mod.installed || "<missing>", versionLength), latest = mod.installed === mod.latest ? chalk__default.default.green("(up to date)") : `(latest: ${chalk__default.default.yellow(mod.latest)})`;
6893
- print(`${formatName(getDisplayName(mod))} ${version} ${latest}`);
6892
+ const version2 = lodashExports.padStart(mod.installed || "<missing>", versionLength), latest = mod.installed === mod.latest ? chalk__default.default.green("(up to date)") : `(latest: ${chalk__default.default.yellow(mod.latest)})`;
6893
+ print(`${formatName(getDisplayName(mod))} ${version2} ${latest}`);
6894
6894
  });
6895
6895
  }
6896
6896
  function getFormatters(versions) {
@@ -7022,30 +7022,30 @@ Examples
7022
7022
  action: printDebugInfo
7023
7023
  };
7024
7024
  var isWsl$2 = { exports: {} };
7025
- const fs$d = require$$0__default$1.default;
7025
+ const fs$f = require$$0__default$1.default;
7026
7026
  let isDocker$2;
7027
7027
  function hasDockerEnv() {
7028
7028
  try {
7029
- return fs$d.statSync("/.dockerenv"), !0;
7029
+ return fs$f.statSync("/.dockerenv"), !0;
7030
7030
  } catch {
7031
7031
  return !1;
7032
7032
  }
7033
7033
  }
7034
7034
  function hasDockerCGroup() {
7035
7035
  try {
7036
- return fs$d.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
7036
+ return fs$f.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
7037
7037
  } catch {
7038
7038
  return !1;
7039
7039
  }
7040
7040
  }
7041
7041
  var isDocker_1 = () => (isDocker$2 === void 0 && (isDocker$2 = hasDockerEnv() || hasDockerCGroup()), isDocker$2);
7042
- const os$4 = require$$0__default$2.default, fs$c = require$$0__default$1.default, isDocker$1 = isDocker_1, isWsl$1 = () => {
7042
+ const os$4 = require$$0__default$2.default, fs$e = require$$0__default$1.default, isDocker$1 = isDocker_1, isWsl$1 = () => {
7043
7043
  if (process.platform !== "linux")
7044
7044
  return !1;
7045
7045
  if (os$4.release().toLowerCase().includes("microsoft"))
7046
7046
  return !isDocker$1();
7047
7047
  try {
7048
- return fs$c.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker$1() : !1;
7048
+ return fs$e.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker$1() : !1;
7049
7049
  } catch {
7050
7050
  return !1;
7051
7051
  }
@@ -7065,9 +7065,9 @@ var isWslExports = isWsl$2.exports, defineLazyProp = (object, propertyName, fn2)
7065
7065
  }
7066
7066
  }), object;
7067
7067
  };
7068
- const path$k = require$$0__default.default, childProcess$1 = require$$0__default$7.default, { promises: fs$b, constants: fsConstants } = require$$0__default$1.default, isWsl = isWslExports, isDocker = isDocker_1, defineLazyProperty = defineLazyProp, localXdgOpenPath = path$k.join(__dirname, "xdg-open"), { platform: platform$1, arch } = process, hasContainerEnv = () => {
7068
+ const path$k = require$$0__default.default, childProcess$1 = require$$0__default$7.default, { promises: fs$d, constants: fsConstants } = require$$0__default$1.default, isWsl = isWslExports, isDocker = isDocker_1, defineLazyProperty = defineLazyProp, localXdgOpenPath = path$k.join(__dirname, "xdg-open"), { platform: platform$1, arch } = process, hasContainerEnv = () => {
7069
7069
  try {
7070
- return fs$b.statSync("/run/.containerenv"), !0;
7070
+ return fs$d.statSync("/run/.containerenv"), !0;
7071
7071
  } catch {
7072
7072
  return !1;
7073
7073
  }
@@ -7085,12 +7085,12 @@ const getWslDrivesMountPoint = /* @__PURE__ */ (() => {
7085
7085
  const configFilePath = "/etc/wsl.conf";
7086
7086
  let isConfigFileExists = !1;
7087
7087
  try {
7088
- await fs$b.access(configFilePath, fsConstants.F_OK), isConfigFileExists = !0;
7088
+ await fs$d.access(configFilePath, fsConstants.F_OK), isConfigFileExists = !0;
7089
7089
  } catch {
7090
7090
  }
7091
7091
  if (!isConfigFileExists)
7092
7092
  return defaultMountPoint;
7093
- const configContent = await fs$b.readFile(configFilePath, { encoding: "utf8" }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
7093
+ const configContent = await fs$d.readFile(configFilePath, { encoding: "utf8" }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
7094
7094
  return configMountPoint ? (mountPoint = configMountPoint.groups.mountPoint.trim(), mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`, mountPoint) : defaultMountPoint;
7095
7095
  };
7096
7096
  })(), pTryEach = async (array2, mapper) => {
@@ -7145,7 +7145,7 @@ const getWslDrivesMountPoint = /* @__PURE__ */ (() => {
7145
7145
  const isBundled = !__dirname || __dirname === "/";
7146
7146
  let exeLocalXdgOpen = !1;
7147
7147
  try {
7148
- await fs$b.access(localXdgOpenPath, fsConstants.X_OK), exeLocalXdgOpen = !0;
7148
+ await fs$d.access(localXdgOpenPath, fsConstants.X_OK), exeLocalXdgOpen = !0;
7149
7149
  } catch {
7150
7150
  }
7151
7151
  command2 = process.versions.electron || platform$1 === "android" || isBundled || !exeLocalXdgOpen ? "xdg-open" : localXdgOpenPath;
@@ -7275,6 +7275,7 @@ const commonMistakes = { get: "list" }, levenThreshold = 3, coreCommands = [
7275
7275
  "graphql",
7276
7276
  "hook",
7277
7277
  "migration",
7278
+ "manifest",
7278
7279
  "preview",
7279
7280
  "schema",
7280
7281
  "start",
@@ -14784,155 +14785,151 @@ jsYaml$2.types = {
14784
14785
  jsYaml$2.safeLoad = renamed("safeLoad", "load");
14785
14786
  jsYaml$2.safeLoadAll = renamed("safeLoadAll", "loadAll");
14786
14787
  jsYaml$2.safeDump = renamed("safeDump", "dump");
14787
- var old = {}, hasRequiredOld;
14788
- function requireOld() {
14789
- if (hasRequiredOld) return old;
14790
- hasRequiredOld = 1;
14791
- var pathModule = require$$0__default.default, isWindows2 = process.platform === "win32", fs2 = require$$0__default$1.default, DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
14792
- function rethrow() {
14793
- var callback;
14794
- if (DEBUG) {
14795
- var backtrace = new Error();
14796
- callback = debugCallback;
14797
- } else
14798
- callback = missingCallback;
14799
- return callback;
14800
- function debugCallback(err) {
14801
- err && (backtrace.message = err.message, err = backtrace, missingCallback(err));
14802
- }
14803
- function missingCallback(err) {
14804
- if (err) {
14805
- if (process.throwDeprecation)
14806
- throw err;
14807
- if (!process.noDeprecation) {
14808
- var msg = "fs: missing callback " + (err.stack || err.message);
14809
- process.traceDeprecation ? console.trace(msg) : console.error(msg);
14788
+ var old$1 = {}, pathModule = require$$0__default.default, isWindows$3 = process.platform === "win32", fs$c = require$$0__default$1.default, DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
14789
+ function rethrow() {
14790
+ var callback;
14791
+ if (DEBUG) {
14792
+ var backtrace = new Error();
14793
+ callback = debugCallback;
14794
+ } else
14795
+ callback = missingCallback;
14796
+ return callback;
14797
+ function debugCallback(err) {
14798
+ err && (backtrace.message = err.message, err = backtrace, missingCallback(err));
14799
+ }
14800
+ function missingCallback(err) {
14801
+ if (err) {
14802
+ if (process.throwDeprecation)
14803
+ throw err;
14804
+ if (!process.noDeprecation) {
14805
+ var msg = "fs: missing callback " + (err.stack || err.message);
14806
+ process.traceDeprecation ? console.trace(msg) : console.error(msg);
14807
+ }
14808
+ }
14809
+ }
14810
+ }
14811
+ function maybeCallback(cb) {
14812
+ return typeof cb == "function" ? cb : rethrow();
14813
+ }
14814
+ if (isWindows$3)
14815
+ var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
14816
+ else
14817
+ var nextPartRe = /(.*?)(?:[\/]+|$)/g;
14818
+ if (isWindows$3)
14819
+ var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
14820
+ else
14821
+ var splitRootRe = /^[\/]*/;
14822
+ old$1.realpathSync = function realpathSync2(p, cache) {
14823
+ if (p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14824
+ return cache[p];
14825
+ var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14826
+ start();
14827
+ function start() {
14828
+ var m = splitRootRe.exec(p);
14829
+ pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows$3 && !knownHard[base2] && (fs$c.lstatSync(base2), knownHard[base2] = !0);
14830
+ }
14831
+ for (; pos2 < p.length; ) {
14832
+ nextPartRe.lastIndex = pos2;
14833
+ var result = nextPartRe.exec(p);
14834
+ if (previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, !(knownHard[base2] || cache && cache[base2] === base2)) {
14835
+ var resolvedLink;
14836
+ if (cache && Object.prototype.hasOwnProperty.call(cache, base2))
14837
+ resolvedLink = cache[base2];
14838
+ else {
14839
+ var stat = fs$c.lstatSync(base2);
14840
+ if (!stat.isSymbolicLink()) {
14841
+ knownHard[base2] = !0, cache && (cache[base2] = base2);
14842
+ continue;
14843
+ }
14844
+ var linkTarget = null;
14845
+ if (!isWindows$3) {
14846
+ var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14847
+ seenLinks.hasOwnProperty(id) && (linkTarget = seenLinks[id]);
14810
14848
  }
14849
+ linkTarget === null && (fs$c.statSync(base2), linkTarget = fs$c.readlinkSync(base2)), resolvedLink = pathModule.resolve(previous, linkTarget), cache && (cache[base2] = resolvedLink), isWindows$3 || (seenLinks[id] = linkTarget);
14811
14850
  }
14851
+ p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14812
14852
  }
14813
14853
  }
14814
- function maybeCallback(cb) {
14815
- return typeof cb == "function" ? cb : rethrow();
14816
- }
14817
- if (isWindows2)
14818
- var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
14819
- else
14820
- var nextPartRe = /(.*?)(?:[\/]+|$)/g;
14821
- if (isWindows2)
14822
- var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
14823
- else
14824
- var splitRootRe = /^[\/]*/;
14825
- return old.realpathSync = function(p, cache) {
14826
- if (p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14827
- return cache[p];
14828
- var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14829
- start();
14830
- function start() {
14831
- var m = splitRootRe.exec(p);
14832
- pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows2 && !knownHard[base2] && (fs2.lstatSync(base2), knownHard[base2] = !0);
14833
- }
14834
- for (; pos2 < p.length; ) {
14835
- nextPartRe.lastIndex = pos2;
14836
- var result = nextPartRe.exec(p);
14837
- if (previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, !(knownHard[base2] || cache && cache[base2] === base2)) {
14838
- var resolvedLink;
14839
- if (cache && Object.prototype.hasOwnProperty.call(cache, base2))
14840
- resolvedLink = cache[base2];
14841
- else {
14842
- var stat = fs2.lstatSync(base2);
14843
- if (!stat.isSymbolicLink()) {
14844
- knownHard[base2] = !0, cache && (cache[base2] = base2);
14845
- continue;
14846
- }
14847
- var linkTarget = null;
14848
- if (!isWindows2) {
14849
- var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14850
- seenLinks.hasOwnProperty(id) && (linkTarget = seenLinks[id]);
14851
- }
14852
- linkTarget === null && (fs2.statSync(base2), linkTarget = fs2.readlinkSync(base2)), resolvedLink = pathModule.resolve(previous, linkTarget), cache && (cache[base2] = resolvedLink), isWindows2 || (seenLinks[id] = linkTarget);
14853
- }
14854
- p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14855
- }
14856
- }
14857
- return cache && (cache[original] = p), p;
14858
- }, old.realpath = function(p, cache, cb) {
14859
- if (typeof cb != "function" && (cb = maybeCallback(cache), cache = null), p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14860
- return process.nextTick(cb.bind(null, null, cache[p]));
14861
- var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14862
- start();
14863
- function start() {
14864
- var m = splitRootRe.exec(p);
14865
- pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows2 && !knownHard[base2] ? fs2.lstat(base2, function(err) {
14866
- if (err) return cb(err);
14867
- knownHard[base2] = !0, LOOP();
14868
- }) : process.nextTick(LOOP);
14869
- }
14870
- function LOOP() {
14871
- if (pos2 >= p.length)
14872
- return cache && (cache[original] = p), cb(null, p);
14873
- nextPartRe.lastIndex = pos2;
14874
- var result = nextPartRe.exec(p);
14875
- return previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, knownHard[base2] || cache && cache[base2] === base2 ? process.nextTick(LOOP) : cache && Object.prototype.hasOwnProperty.call(cache, base2) ? gotResolvedLink(cache[base2]) : fs2.lstat(base2, gotStat);
14876
- }
14877
- function gotStat(err, stat) {
14854
+ return cache && (cache[original] = p), p;
14855
+ };
14856
+ old$1.realpath = function realpath2(p, cache, cb) {
14857
+ if (typeof cb != "function" && (cb = maybeCallback(cache), cache = null), p = pathModule.resolve(p), cache && Object.prototype.hasOwnProperty.call(cache, p))
14858
+ return process.nextTick(cb.bind(null, null, cache[p]));
14859
+ var original = p, seenLinks = {}, knownHard = {}, pos2, current, base2, previous;
14860
+ start();
14861
+ function start() {
14862
+ var m = splitRootRe.exec(p);
14863
+ pos2 = m[0].length, current = m[0], base2 = m[0], previous = "", isWindows$3 && !knownHard[base2] ? fs$c.lstat(base2, function(err) {
14878
14864
  if (err) return cb(err);
14879
- if (!stat.isSymbolicLink())
14880
- return knownHard[base2] = !0, cache && (cache[base2] = base2), process.nextTick(LOOP);
14881
- if (!isWindows2) {
14882
- var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14883
- if (seenLinks.hasOwnProperty(id))
14884
- return gotTarget(null, seenLinks[id], base2);
14885
- }
14886
- fs2.stat(base2, function(err2) {
14887
- if (err2) return cb(err2);
14888
- fs2.readlink(base2, function(err3, target) {
14889
- isWindows2 || (seenLinks[id] = target), gotTarget(err3, target);
14890
- });
14865
+ knownHard[base2] = !0, LOOP();
14866
+ }) : process.nextTick(LOOP);
14867
+ }
14868
+ function LOOP() {
14869
+ if (pos2 >= p.length)
14870
+ return cache && (cache[original] = p), cb(null, p);
14871
+ nextPartRe.lastIndex = pos2;
14872
+ var result = nextPartRe.exec(p);
14873
+ return previous = current, current += result[0], base2 = previous + result[1], pos2 = nextPartRe.lastIndex, knownHard[base2] || cache && cache[base2] === base2 ? process.nextTick(LOOP) : cache && Object.prototype.hasOwnProperty.call(cache, base2) ? gotResolvedLink(cache[base2]) : fs$c.lstat(base2, gotStat);
14874
+ }
14875
+ function gotStat(err, stat) {
14876
+ if (err) return cb(err);
14877
+ if (!stat.isSymbolicLink())
14878
+ return knownHard[base2] = !0, cache && (cache[base2] = base2), process.nextTick(LOOP);
14879
+ if (!isWindows$3) {
14880
+ var id = stat.dev.toString(32) + ":" + stat.ino.toString(32);
14881
+ if (seenLinks.hasOwnProperty(id))
14882
+ return gotTarget(null, seenLinks[id], base2);
14883
+ }
14884
+ fs$c.stat(base2, function(err2) {
14885
+ if (err2) return cb(err2);
14886
+ fs$c.readlink(base2, function(err3, target) {
14887
+ isWindows$3 || (seenLinks[id] = target), gotTarget(err3, target);
14891
14888
  });
14892
- }
14893
- function gotTarget(err, target, base3) {
14894
- if (err) return cb(err);
14895
- var resolvedLink = pathModule.resolve(previous, target);
14896
- cache && (cache[base3] = resolvedLink), gotResolvedLink(resolvedLink);
14897
- }
14898
- function gotResolvedLink(resolvedLink) {
14899
- p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14900
- }
14901
- }, old;
14902
- }
14903
- var fs_realpath, hasRequiredFs_realpath;
14904
- function requireFs_realpath() {
14905
- if (hasRequiredFs_realpath) return fs_realpath;
14906
- hasRequiredFs_realpath = 1, fs_realpath = realpath, realpath.realpath = realpath, realpath.sync = realpathSync, realpath.realpathSync = realpathSync, realpath.monkeypatch = monkeypatch, realpath.unmonkeypatch = unmonkeypatch;
14907
- var fs2 = require$$0__default$1.default, origRealpath = fs2.realpath, origRealpathSync = fs2.realpathSync, version = process.version, ok = /^v[0-5]\./.test(version), old2 = requireOld();
14908
- function newError(er) {
14909
- return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
14910
- }
14911
- function realpath(p, cache, cb) {
14912
- if (ok)
14913
- return origRealpath(p, cache, cb);
14914
- typeof cache == "function" && (cb = cache, cache = null), origRealpath(p, cache, function(er, result) {
14915
- newError(er) ? old2.realpath(p, cache, cb) : cb(er, result);
14916
14889
  });
14917
14890
  }
14918
- function realpathSync(p, cache) {
14919
- if (ok)
14920
- return origRealpathSync(p, cache);
14921
- try {
14922
- return origRealpathSync(p, cache);
14923
- } catch (er) {
14924
- if (newError(er))
14925
- return old2.realpathSync(p, cache);
14926
- throw er;
14927
- }
14891
+ function gotTarget(err, target, base3) {
14892
+ if (err) return cb(err);
14893
+ var resolvedLink = pathModule.resolve(previous, target);
14894
+ cache && (cache[base3] = resolvedLink), gotResolvedLink(resolvedLink);
14928
14895
  }
14929
- function monkeypatch() {
14930
- fs2.realpath = realpath, fs2.realpathSync = realpathSync;
14896
+ function gotResolvedLink(resolvedLink) {
14897
+ p = pathModule.resolve(resolvedLink, p.slice(pos2)), start();
14931
14898
  }
14932
- function unmonkeypatch() {
14933
- fs2.realpath = origRealpath, fs2.realpathSync = origRealpathSync;
14899
+ };
14900
+ var fs_realpath = realpath;
14901
+ realpath.realpath = realpath;
14902
+ realpath.sync = realpathSync;
14903
+ realpath.realpathSync = realpathSync;
14904
+ realpath.monkeypatch = monkeypatch;
14905
+ realpath.unmonkeypatch = unmonkeypatch;
14906
+ var fs$b = require$$0__default$1.default, origRealpath = fs$b.realpath, origRealpathSync = fs$b.realpathSync, version = process.version, ok = /^v[0-5]\./.test(version), old = old$1;
14907
+ function newError(er) {
14908
+ return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
14909
+ }
14910
+ function realpath(p, cache, cb) {
14911
+ if (ok)
14912
+ return origRealpath(p, cache, cb);
14913
+ typeof cache == "function" && (cb = cache, cache = null), origRealpath(p, cache, function(er, result) {
14914
+ newError(er) ? old.realpath(p, cache, cb) : cb(er, result);
14915
+ });
14916
+ }
14917
+ function realpathSync(p, cache) {
14918
+ if (ok)
14919
+ return origRealpathSync(p, cache);
14920
+ try {
14921
+ return origRealpathSync(p, cache);
14922
+ } catch (er) {
14923
+ if (newError(er))
14924
+ return old.realpathSync(p, cache);
14925
+ throw er;
14934
14926
  }
14935
- return fs_realpath;
14927
+ }
14928
+ function monkeypatch() {
14929
+ fs$b.realpath = realpath, fs$b.realpathSync = realpathSync;
14930
+ }
14931
+ function unmonkeypatch() {
14932
+ fs$b.realpath = origRealpath, fs$b.realpathSync = origRealpathSync;
14936
14933
  }
14937
14934
  const isWindows$2 = typeof process == "object" && process && process.platform === "win32";
14938
14935
  var path$i = isWindows$2 ? { sep: "\\" } : { sep: "/" }, balanced = balancedMatch, braceExpansion = expandTop, escSlash = "\0SLASH" + Math.random() + "\0", escOpen = "\0OPEN" + Math.random() + "\0", escClose = "\0CLOSE" + Math.random() + "\0", escComma = "\0COMMA" + Math.random() + "\0", escPeriod = "\0PERIOD" + Math.random() + "\0";
@@ -15362,20 +15359,14 @@ function requireInherits_browser() {
15362
15359
  }
15363
15360
  }), inherits_browser.exports;
15364
15361
  }
15365
- var hasRequiredInherits;
15366
- function requireInherits() {
15367
- if (hasRequiredInherits) return inherits.exports;
15368
- hasRequiredInherits = 1;
15369
- try {
15370
- var util2 = require("util");
15371
- if (typeof util2.inherits != "function") throw "";
15372
- inherits.exports = util2.inherits;
15373
- } catch {
15374
- inherits.exports = requireInherits_browser();
15375
- }
15376
- return inherits.exports;
15362
+ try {
15363
+ var util$6 = require("util");
15364
+ if (typeof util$6.inherits != "function") throw "";
15365
+ inherits.exports = util$6.inherits;
15366
+ } catch (e) {
15367
+ inherits.exports = requireInherits_browser();
15377
15368
  }
15378
- var common$8 = {};
15369
+ var inheritsExports = inherits.exports, common$8 = {};
15379
15370
  common$8.setopts = setopts;
15380
15371
  common$8.ownProp = ownProp;
15381
15372
  common$8.makeAbs = makeAbs;
@@ -15470,7 +15461,7 @@ var sync$2, hasRequiredSync$1;
15470
15461
  function requireSync$1() {
15471
15462
  if (hasRequiredSync$1) return sync$2;
15472
15463
  hasRequiredSync$1 = 1, sync$2 = globSync, globSync.GlobSync = GlobSync;
15473
- var rp = requireFs_realpath(), minimatch2 = minimatch_1;
15464
+ var rp = fs_realpath, minimatch2 = minimatch_1;
15474
15465
  requireGlob$1().Glob;
15475
15466
  var path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = require$$0__default.default.isAbsolute, common2 = common$8, setopts2 = common2.setopts, ownProp2 = common2.ownProp, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored;
15476
15467
  function globSync(pattern, options2) {
@@ -15701,95 +15692,79 @@ See: https://github.com/isaacs/node-glob/issues/167`);
15701
15692
  return common2.makeAbs(this, f2);
15702
15693
  }, sync$2;
15703
15694
  }
15704
- var wrappy_1, hasRequiredWrappy;
15705
- function requireWrappy() {
15706
- if (hasRequiredWrappy) return wrappy_1;
15707
- hasRequiredWrappy = 1, wrappy_1 = wrappy;
15708
- function wrappy(fn2, cb) {
15709
- if (fn2 && cb) return wrappy(fn2)(cb);
15710
- if (typeof fn2 != "function")
15711
- throw new TypeError("need wrapper function");
15712
- return Object.keys(fn2).forEach(function(k) {
15713
- wrapper[k] = fn2[k];
15714
- }), wrapper;
15715
- function wrapper() {
15716
- for (var args = new Array(arguments.length), i2 = 0; i2 < args.length; i2++)
15717
- args[i2] = arguments[i2];
15718
- var ret = fn2.apply(this, args), cb2 = args[args.length - 1];
15719
- return typeof ret == "function" && ret !== cb2 && Object.keys(cb2).forEach(function(k) {
15720
- ret[k] = cb2[k];
15721
- }), ret;
15722
- }
15723
- }
15724
- return wrappy_1;
15725
- }
15726
- var once$2 = { exports: {} }, hasRequiredOnce;
15727
- function requireOnce() {
15728
- if (hasRequiredOnce) return once$2.exports;
15729
- hasRequiredOnce = 1;
15730
- var wrappy = requireWrappy();
15731
- once$2.exports = wrappy(once2), once$2.exports.strict = wrappy(onceStrict), once2.proto = once2(function() {
15732
- Object.defineProperty(Function.prototype, "once", {
15733
- value: function() {
15734
- return once2(this);
15735
- },
15736
- configurable: !0
15737
- }), Object.defineProperty(Function.prototype, "onceStrict", {
15738
- value: function() {
15739
- return onceStrict(this);
15740
- },
15741
- configurable: !0
15742
- });
15695
+ var wrappy_1 = wrappy$2;
15696
+ function wrappy$2(fn2, cb) {
15697
+ if (fn2 && cb) return wrappy$2(fn2)(cb);
15698
+ if (typeof fn2 != "function")
15699
+ throw new TypeError("need wrapper function");
15700
+ return Object.keys(fn2).forEach(function(k) {
15701
+ wrapper[k] = fn2[k];
15702
+ }), wrapper;
15703
+ function wrapper() {
15704
+ for (var args = new Array(arguments.length), i2 = 0; i2 < args.length; i2++)
15705
+ args[i2] = arguments[i2];
15706
+ var ret = fn2.apply(this, args), cb2 = args[args.length - 1];
15707
+ return typeof ret == "function" && ret !== cb2 && Object.keys(cb2).forEach(function(k) {
15708
+ ret[k] = cb2[k];
15709
+ }), ret;
15710
+ }
15711
+ }
15712
+ var once$4 = { exports: {} }, wrappy$1 = wrappy_1;
15713
+ once$4.exports = wrappy$1(once$3);
15714
+ once$4.exports.strict = wrappy$1(onceStrict);
15715
+ once$3.proto = once$3(function() {
15716
+ Object.defineProperty(Function.prototype, "once", {
15717
+ value: function() {
15718
+ return once$3(this);
15719
+ },
15720
+ configurable: !0
15721
+ }), Object.defineProperty(Function.prototype, "onceStrict", {
15722
+ value: function() {
15723
+ return onceStrict(this);
15724
+ },
15725
+ configurable: !0
15743
15726
  });
15744
- function once2(fn2) {
15745
- var f2 = function() {
15746
- return f2.called ? f2.value : (f2.called = !0, f2.value = fn2.apply(this, arguments));
15747
- };
15748
- return f2.called = !1, f2;
15749
- }
15750
- function onceStrict(fn2) {
15751
- var f2 = function() {
15752
- if (f2.called)
15753
- throw new Error(f2.onceError);
15754
- return f2.called = !0, f2.value = fn2.apply(this, arguments);
15755
- }, name = fn2.name || "Function wrapped with `once`";
15756
- return f2.onceError = name + " shouldn't be called more than once", f2.called = !1, f2;
15757
- }
15758
- return once$2.exports;
15759
- }
15760
- var inflight_1, hasRequiredInflight;
15761
- function requireInflight() {
15762
- if (hasRequiredInflight) return inflight_1;
15763
- hasRequiredInflight = 1;
15764
- var wrappy = requireWrappy(), reqs = /* @__PURE__ */ Object.create(null), once2 = requireOnce();
15765
- inflight_1 = wrappy(inflight);
15766
- function inflight(key2, cb) {
15767
- return reqs[key2] ? (reqs[key2].push(cb), null) : (reqs[key2] = [cb], makeres(key2));
15768
- }
15769
- function makeres(key2) {
15770
- return once2(function RES() {
15771
- var cbs = reqs[key2], len = cbs.length, args = slice(arguments);
15772
- try {
15773
- for (var i2 = 0; i2 < len; i2++)
15774
- cbs[i2].apply(null, args);
15775
- } finally {
15776
- cbs.length > len ? (cbs.splice(0, len), process.nextTick(function() {
15777
- RES.apply(null, args);
15778
- })) : delete reqs[key2];
15779
- }
15780
- });
15781
- }
15782
- function slice(args) {
15783
- for (var length = args.length, array2 = [], i2 = 0; i2 < length; i2++) array2[i2] = args[i2];
15784
- return array2;
15785
- }
15786
- return inflight_1;
15727
+ });
15728
+ function once$3(fn2) {
15729
+ var f2 = function() {
15730
+ return f2.called ? f2.value : (f2.called = !0, f2.value = fn2.apply(this, arguments));
15731
+ };
15732
+ return f2.called = !1, f2;
15733
+ }
15734
+ function onceStrict(fn2) {
15735
+ var f2 = function() {
15736
+ if (f2.called)
15737
+ throw new Error(f2.onceError);
15738
+ return f2.called = !0, f2.value = fn2.apply(this, arguments);
15739
+ }, name = fn2.name || "Function wrapped with `once`";
15740
+ return f2.onceError = name + " shouldn't be called more than once", f2.called = !1, f2;
15741
+ }
15742
+ var onceExports = once$4.exports, wrappy = wrappy_1, reqs = /* @__PURE__ */ Object.create(null), once$2 = onceExports, inflight_1 = wrappy(inflight);
15743
+ function inflight(key2, cb) {
15744
+ return reqs[key2] ? (reqs[key2].push(cb), null) : (reqs[key2] = [cb], makeres(key2));
15745
+ }
15746
+ function makeres(key2) {
15747
+ return once$2(function RES() {
15748
+ var cbs = reqs[key2], len = cbs.length, args = slice(arguments);
15749
+ try {
15750
+ for (var i2 = 0; i2 < len; i2++)
15751
+ cbs[i2].apply(null, args);
15752
+ } finally {
15753
+ cbs.length > len ? (cbs.splice(0, len), process.nextTick(function() {
15754
+ RES.apply(null, args);
15755
+ })) : delete reqs[key2];
15756
+ }
15757
+ });
15758
+ }
15759
+ function slice(args) {
15760
+ for (var length = args.length, array2 = [], i2 = 0; i2 < length; i2++) array2[i2] = args[i2];
15761
+ return array2;
15787
15762
  }
15788
15763
  var glob_1$2, hasRequiredGlob$1;
15789
15764
  function requireGlob$1() {
15790
15765
  if (hasRequiredGlob$1) return glob_1$2;
15791
15766
  hasRequiredGlob$1 = 1, glob_1$2 = glob2;
15792
- var rp = requireFs_realpath(), minimatch2 = minimatch_1, inherits2 = requireInherits(), EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = require$$0__default.default.isAbsolute, globSync = requireSync$1(), common2 = common$8, setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight = requireInflight(), childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = requireOnce();
15767
+ var rp = fs_realpath, minimatch2 = minimatch_1, inherits2 = inheritsExports, EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = require$$0__default.default.isAbsolute, globSync = requireSync$1(), common2 = common$8, setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight2 = inflight_1, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = onceExports;
15793
15768
  function glob2(pattern, options2, cb) {
15794
15769
  if (typeof options2 == "function" && (cb = options2, options2 = {}), options2 || (options2 = {}), options2.sync) {
15795
15770
  if (cb)
@@ -15992,7 +15967,7 @@ function requireGlob$1() {
15992
15967
  return;
15993
15968
  if (this.follow)
15994
15969
  return this._readdir(abs, !1, cb);
15995
- var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight(lstatkey, lstatcb_);
15970
+ var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight2(lstatkey, lstatcb_);
15996
15971
  lstatcb && self2.fs.lstat(abs, lstatcb);
15997
15972
  function lstatcb_(er, lstat) {
15998
15973
  if (er && er.code === "ENOENT")
@@ -16001,7 +15976,7 @@ function requireGlob$1() {
16001
15976
  self2.symlinks[abs] = isSym, !isSym && lstat && !lstat.isDirectory() ? (self2.cache[abs] = "FILE", cb()) : self2._readdir(abs, !1, cb);
16002
15977
  }
16003
15978
  }, Glob.prototype._readdir = function(abs, inGlobStar, cb) {
16004
- if (!this.aborted && (cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
15979
+ if (!this.aborted && (cb = inflight2("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
16005
15980
  if (inGlobStar && !ownProp2(this.symlinks, abs))
16006
15981
  return this._readdirInGlobStar(abs, cb);
16007
15982
  if (ownProp2(this.cache, abs)) {
@@ -16108,7 +16083,7 @@ function requireGlob$1() {
16108
16083
  var type2 = stat.isDirectory() ? "DIR" : "FILE";
16109
16084
  return needDir && type2 === "FILE" ? cb() : cb(null, type2, stat);
16110
16085
  }
16111
- var self2 = this, statcb = inflight("stat\0" + abs, lstatcb_);
16086
+ var self2 = this, statcb = inflight2("stat\0" + abs, lstatcb_);
16112
16087
  statcb && self2.fs.lstat(abs, statcb);
16113
16088
  function lstatcb_(er, lstat) {
16114
16089
  if (lstat && lstat.isSymbolicLink())
@@ -17449,19 +17424,19 @@ async function bootstrapFromTemplate(context, url2) {
17449
17424
  const { validForNewPackages } = validateNpmPackageName__default.default(pkgName);
17450
17425
  if (!validForNewPackages)
17451
17426
  return "Name must be a valid npm package name (https://docs.npmjs.com/files/package.json#name)";
17452
- const outputPath2 = path__default.default.join(workDir, "plugins", pkgName), isEmpty2 = await fs$q.pathIsEmpty(outputPath2);
17427
+ const outputPath2 = path__default.default.join(workDir, "plugins", pkgName), isEmpty2 = await fs$s.pathIsEmpty(outputPath2);
17453
17428
  return inProjectContext && !isEmpty2 ? "Plugin with given name already exists in project" : !0;
17454
17429
  }
17455
17430
  });
17456
17431
  let outputPath = path__default.default.join(workDir, "plugins", name);
17457
17432
  if (!inProjectContext) {
17458
- const cwdIsEmpty = await fs$q.pathIsEmpty(workDir);
17433
+ const cwdIsEmpty = await fs$s.pathIsEmpty(workDir);
17459
17434
  outputPath = await prompt2.single({
17460
17435
  type: "input",
17461
17436
  message: "Output path:",
17462
17437
  default: cwdIsEmpty ? workDir : path__default.default.join(workDir, name),
17463
17438
  validate: validateEmptyPath$1,
17464
- filter: fs$q.absolutify
17439
+ filter: fs$s.absolutify
17465
17440
  });
17466
17441
  }
17467
17442
  loadEnv.debug("Output path set to %s", outputPath);
@@ -17478,7 +17453,7 @@ async function bootstrapFromTemplate(context, url2) {
17478
17453
  ), { name, outputPath, inPluginsPath: inProjectContext, dependencies: tplVars.dependencies };
17479
17454
  }
17480
17455
  async function validateEmptyPath$1(dir) {
17481
- return await fs$q.pathIsEmpty(dir) ? !0 : "Path is not empty";
17456
+ return await fs$s.pathIsEmpty(dir) ? !0 : "Path is not empty";
17482
17457
  }
17483
17458
  function getZip(url2) {
17484
17459
  return request({ url: url2, rawBody: !0 }).then(
@@ -18025,7 +18000,7 @@ isStream$1.writable = (stream2) => isStream$1(stream2) && stream2.writable !== !
18025
18000
  isStream$1.readable = (stream2) => isStream$1(stream2) && stream2.readable !== !1 && typeof stream2._read == "function" && typeof stream2._readableState == "object";
18026
18001
  isStream$1.duplex = (stream2) => isStream$1.writable(stream2) && isStream$1.readable(stream2);
18027
18002
  isStream$1.transform = (stream2) => isStream$1.duplex(stream2) && typeof stream2._transform == "function";
18028
- var isStream_1 = isStream$1, getStream$2 = { exports: {} }, once$1 = requireOnce(), noop$2 = function() {
18003
+ var isStream_1 = isStream$1, getStream$2 = { exports: {} }, once$1 = onceExports, noop$2 = function() {
18029
18004
  }, isRequest$1 = function(stream2) {
18030
18005
  return stream2.setHeader && typeof stream2.abort == "function";
18031
18006
  }, isChildProcess = function(stream2) {
@@ -18056,7 +18031,7 @@ var isStream_1 = isStream$1, getStream$2 = { exports: {} }, once$1 = requireOnce
18056
18031
  return isRequest$1(stream2) ? (stream2.on("complete", onfinish), stream2.on("abort", onclose), stream2.req ? onrequest() : stream2.on("request", onrequest)) : writable && !ws && (stream2.on("end", onlegacyfinish), stream2.on("close", onlegacyfinish)), isChildProcess(stream2) && stream2.on("exit", onexit), stream2.on("end", onend), stream2.on("finish", onfinish), opts.error !== !1 && stream2.on("error", onerror), stream2.on("close", onclose), function() {
18057
18032
  cancelled = !0, stream2.removeListener("complete", onfinish), stream2.removeListener("abort", onclose), stream2.removeListener("request", onrequest), stream2.req && stream2.req.removeListener("finish", onfinish), stream2.removeListener("end", onlegacyfinish), stream2.removeListener("close", onlegacyfinish), stream2.removeListener("finish", onfinish), stream2.removeListener("exit", onexit), stream2.removeListener("end", onend), stream2.removeListener("error", onerror), stream2.removeListener("close", onclose);
18058
18033
  };
18059
- }, endOfStream = eos$1, once = requireOnce(), eos = endOfStream, fs$8 = require$$0__default$1.default, noop$1 = function() {
18034
+ }, endOfStream = eos$1, once = onceExports, eos = endOfStream, fs$8 = require$$0__default$1.default, noop$1 = function() {
18060
18035
  }, ancient = /^v?\.0/.test(process.version), isFn = function(fn2) {
18061
18036
  return typeof fn2 == "function";
18062
18037
  }, isFS = function(stream2) {
@@ -22505,7 +22480,7 @@ function createTelemetryStore({
22505
22480
  const token2 = getCliToken();
22506
22481
  if (!token2)
22507
22482
  return debug$1("No user token found. Something is not quite right"), Promise.reject(new Error("User is not logged in"));
22508
- isTrueish(env.SANITY_TELEMETRY_INSPECT) && (console.info(`SANITY_TELEMETRY_INSPECT is set, appending events to "${LOG_FILE_NAME}"`), await fs$o.appendFile(LOG_FILE_NAME, `${batch.map((entry) => JSON.stringify(entry)).join(`
22483
+ isTrueish(env.SANITY_TELEMETRY_INSPECT) && (console.info(`SANITY_TELEMETRY_INSPECT is set, appending events to "${LOG_FILE_NAME}"`), await fs$q.appendFile(LOG_FILE_NAME, `${batch.map((entry) => JSON.stringify(entry)).join(`
22509
22484
  `)}
22510
22485
  `));
22511
22486
  const client2 = getCachedClient(token2);
@@ -22770,8 +22745,8 @@ function resolveLatestVersions(pkgs) {
22770
22745
  lookups[packageName] = range2 === "latest" ? latestVersion(packageName, { range: range2 }).then(caretify) : range2;
22771
22746
  return promiseProps$1(lookups);
22772
22747
  }
22773
- function caretify(version) {
22774
- return version ? `^${version}` : "latest";
22748
+ function caretify(version2) {
22749
+ return version2 ? `^${version2}` : "latest";
22775
22750
  }
22776
22751
  var main$3 = {}, extendStatics$1 = function(d, b) {
22777
22752
  return extendStatics$1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -25825,9 +25800,9 @@ function requireSourceMapConsumer() {
25825
25800
  function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
25826
25801
  var sourceMap2 = aSourceMap;
25827
25802
  typeof aSourceMap == "string" && (sourceMap2 = util2.parseSourceMapInput(aSourceMap));
25828
- var version = util2.getArg(sourceMap2, "version"), sources = util2.getArg(sourceMap2, "sources"), names2 = util2.getArg(sourceMap2, "names", []), sourceRoot = util2.getArg(sourceMap2, "sourceRoot", null), sourcesContent = util2.getArg(sourceMap2, "sourcesContent", null), mappings = util2.getArg(sourceMap2, "mappings"), file2 = util2.getArg(sourceMap2, "file", null);
25829
- if (version != this._version)
25830
- throw new Error("Unsupported version: " + version);
25803
+ var version2 = util2.getArg(sourceMap2, "version"), sources = util2.getArg(sourceMap2, "sources"), names2 = util2.getArg(sourceMap2, "names", []), sourceRoot = util2.getArg(sourceMap2, "sourceRoot", null), sourcesContent = util2.getArg(sourceMap2, "sourcesContent", null), mappings = util2.getArg(sourceMap2, "mappings"), file2 = util2.getArg(sourceMap2, "file", null);
25804
+ if (version2 != this._version)
25805
+ throw new Error("Unsupported version: " + version2);
25831
25806
  sourceRoot && (sourceRoot = util2.normalize(sourceRoot)), sources = sources.map(String).map(util2.normalize).map(function(source2) {
25832
25807
  return sourceRoot && util2.isAbsolute(sourceRoot) && util2.isAbsolute(source2) ? util2.relative(sourceRoot, source2) : source2;
25833
25808
  }), this._names = ArraySet.fromArray(names2.map(String), !0), this._sources = ArraySet.fromArray(sources, !0), this._absoluteSources = this._sources.toArray().map(function(s) {
@@ -25998,9 +25973,9 @@ function requireSourceMapConsumer() {
25998
25973
  function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
25999
25974
  var sourceMap2 = aSourceMap;
26000
25975
  typeof aSourceMap == "string" && (sourceMap2 = util2.parseSourceMapInput(aSourceMap));
26001
- var version = util2.getArg(sourceMap2, "version"), sections = util2.getArg(sourceMap2, "sections");
26002
- if (version != this._version)
26003
- throw new Error("Unsupported version: " + version);
25976
+ var version2 = util2.getArg(sourceMap2, "version"), sections = util2.getArg(sourceMap2, "sections");
25977
+ if (version2 != this._version)
25978
+ throw new Error("Unsupported version: " + version2);
26004
25979
  this._sources = new ArraySet(), this._names = new ArraySet();
26005
25980
  var lastOffset = {
26006
25981
  line: -1,
@@ -42642,7 +42617,7 @@ var sync, hasRequiredSync;
42642
42617
  function requireSync() {
42643
42618
  if (hasRequiredSync) return sync;
42644
42619
  hasRequiredSync = 1, sync = globSync, globSync.GlobSync = GlobSync;
42645
- var rp = requireFs_realpath(), minimatch2 = minimatch_1$2;
42620
+ var rp = fs_realpath, minimatch2 = minimatch_1$2;
42646
42621
  requireGlob().Glob;
42647
42622
  var path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = requirePathIsAbsolute(), common2 = requireCommon(), setopts2 = common2.setopts, ownProp2 = common2.ownProp, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored;
42648
42623
  function globSync(pattern, options2) {
@@ -42877,7 +42852,7 @@ var glob_1, hasRequiredGlob;
42877
42852
  function requireGlob() {
42878
42853
  if (hasRequiredGlob) return glob_1;
42879
42854
  hasRequiredGlob = 1, glob_1 = glob2;
42880
- var rp = requireFs_realpath(), minimatch2 = minimatch_1$2, inherits2 = requireInherits(), EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = requirePathIsAbsolute(), globSync = requireSync(), common2 = requireCommon(), setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight = requireInflight(), childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = requireOnce();
42855
+ var rp = fs_realpath, minimatch2 = minimatch_1$2, inherits2 = inheritsExports, EE2 = require$$3__default.default.EventEmitter, path2 = require$$0__default.default, assert2 = require$$5__default.default, isAbsolute2 = requirePathIsAbsolute(), globSync = requireSync(), common2 = requireCommon(), setopts2 = common2.setopts, ownProp2 = common2.ownProp, inflight2 = inflight_1, childrenIgnored2 = common2.childrenIgnored, isIgnored2 = common2.isIgnored, once2 = onceExports;
42881
42856
  function glob2(pattern, options2, cb) {
42882
42857
  if (typeof options2 == "function" && (cb = options2, options2 = {}), options2 || (options2 = {}), options2.sync) {
42883
42858
  if (cb)
@@ -43080,7 +43055,7 @@ function requireGlob() {
43080
43055
  return;
43081
43056
  if (this.follow)
43082
43057
  return this._readdir(abs, !1, cb);
43083
- var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight(lstatkey, lstatcb_);
43058
+ var lstatkey = "lstat\0" + abs, self2 = this, lstatcb = inflight2(lstatkey, lstatcb_);
43084
43059
  lstatcb && self2.fs.lstat(abs, lstatcb);
43085
43060
  function lstatcb_(er, lstat) {
43086
43061
  if (er && er.code === "ENOENT")
@@ -43089,7 +43064,7 @@ function requireGlob() {
43089
43064
  self2.symlinks[abs] = isSym, !isSym && lstat && !lstat.isDirectory() ? (self2.cache[abs] = "FILE", cb()) : self2._readdir(abs, !1, cb);
43090
43065
  }
43091
43066
  }, Glob.prototype._readdir = function(abs, inGlobStar, cb) {
43092
- if (!this.aborted && (cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
43067
+ if (!this.aborted && (cb = inflight2("readdir\0" + abs + "\0" + inGlobStar, cb), !!cb)) {
43093
43068
  if (inGlobStar && !ownProp2(this.symlinks, abs))
43094
43069
  return this._readdirInGlobStar(abs, cb);
43095
43070
  if (ownProp2(this.cache, abs)) {
@@ -43196,7 +43171,7 @@ function requireGlob() {
43196
43171
  var type2 = stat.isDirectory() ? "DIR" : "FILE";
43197
43172
  return needDir && type2 === "FILE" ? cb() : cb(null, type2, stat);
43198
43173
  }
43199
- var self2 = this, statcb = inflight("stat\0" + abs, lstatcb_);
43174
+ var self2 = this, statcb = inflight2("stat\0" + abs, lstatcb_);
43200
43175
  statcb && self2.fs.lstat(abs, statcb);
43201
43176
  function lstatcb_(er, lstat) {
43202
43177
  if (lstat && lstat.isSymbolicLink())
@@ -43550,7 +43525,7 @@ async function pathExists(filePath) {
43550
43525
  }
43551
43526
  function writeJson$1(filePath, content) {
43552
43527
  const serialized = JSON.stringify(content, null, 2);
43553
- return fs$o.writeFile(filePath, serialized, "utf8");
43528
+ return fs$q.writeFile(filePath, serialized, "utf8");
43554
43529
  }
43555
43530
  const isCI$1 = process.env.CI;
43556
43531
  async function reconfigureV2Project(args, context) {
@@ -44314,7 +44289,7 @@ You can find your project on Sanity Manage \u2014 https://www.sanity.io/manage/p
44314
44289
  if (embeddedStudio) {
44315
44290
  const appDir = "app";
44316
44291
  let srcPath = path__default.default.join(workDir, appDir);
44317
- fs$p.existsSync(srcPath) || (srcPath = path__default.default.join(workDir, "src", appDir), hasSrcFolder = !0, fs$p.existsSync(srcPath) || await fs__default$1.default.mkdir(srcPath, { recursive: !0 }).catch(() => loadEnv.debug("Error creating folder %s", srcPath)));
44292
+ fs$r.existsSync(srcPath) || (srcPath = path__default.default.join(workDir, "src", appDir), hasSrcFolder = !0, fs$r.existsSync(srcPath) || await fs__default$1.default.mkdir(srcPath, { recursive: !0 }).catch(() => loadEnv.debug("Error creating folder %s", srcPath)));
44318
44293
  const studioPath = unattended ? "/studio" : await promptForStudioPath(prompt2), embeddedStudioRouteFilePath = path__default.default.join(
44319
44294
  srcPath,
44320
44295
  `${studioPath}/`,
@@ -44352,8 +44327,8 @@ You can find your project on Sanity Manage \u2014 https://www.sanity.io/manage/p
44352
44327
  }, templateToUse = unattended ? "clean" : await promptForNextTemplate(prompt2);
44353
44328
  await writeSourceFiles(sanityFolder(useTypeScript2, templateToUse), void 0, hasSrcFolder);
44354
44329
  const tsConfigPath = path__default.default.join(workDir, "tsconfig.json");
44355
- if (useTypeScript2 && fs$p.existsSync(tsConfigPath)) {
44356
- const tsConfigFile = fs$p.readFileSync(tsConfigPath, "utf8"), config2 = silverFleece.evaluate(tsConfigFile);
44330
+ if (useTypeScript2 && fs$r.existsSync(tsConfigPath)) {
44331
+ const tsConfigFile = fs$r.readFileSync(tsConfigPath, "utf8"), config2 = silverFleece.evaluate(tsConfigFile);
44357
44332
  if (config2.compilerOptions.target?.toLowerCase() !== "es2017") {
44358
44333
  config2.compilerOptions.target = "ES2017";
44359
44334
  const newConfig = silverFleece.patch(tsConfigFile, config2);
@@ -44410,7 +44385,7 @@ ${chalk2.green("Success!")} Your Sanity configuration files has been added to th
44410
44385
  return path2.split(separator2).filter(Boolean).length;
44411
44386
  }
44412
44387
  async function writeOrOverwrite(filePath, content) {
44413
- if (fs$p.existsSync(filePath) && !await prompt2.single({
44388
+ if (fs$r.existsSync(filePath) && !await prompt2.single({
44414
44389
  type: "confirm",
44415
44390
  message: `File ${chalk2.yellow(
44416
44391
  filePath.replace(workDir, "")
@@ -45688,11 +45663,11 @@ Use npm-check-updates or similar (https://www.npmjs.com/package/npm-check-update
45688
45663
  });
45689
45664
  };
45690
45665
  function writeJson(filePath, data) {
45691
- return fs$p.promises.writeFile(filePath, `${JSON.stringify(data, null, 2)}
45666
+ return fs$r.promises.writeFile(filePath, `${JSON.stringify(data, null, 2)}
45692
45667
  `);
45693
45668
  }
45694
45669
  async function deleteIfNotSymlink(modPath) {
45695
- const stats = await fs$p.promises.lstat(modPath).catch(lodashExports.noop);
45670
+ const stats = await fs$r.promises.lstat(modPath).catch(lodashExports.noop);
45696
45671
  return !stats || stats.isSymbolicLink() ? null : rimraf(modPath);
45697
45672
  }
45698
45673
  function hasSemverBreakingUpgrade(mod) {
@@ -45764,7 +45739,7 @@ function getModulePath(modName, fromPath) {
45764
45739
  }
45765
45740
  async function readLocalManifest(dirName, fileName = "package.json") {
45766
45741
  try {
45767
- const content = await fs$p.promises.readFile(path__default.default.join(dirName, fileName), "utf8");
45742
+ const content = await fs$r.promises.readFile(path__default.default.join(dirName, fileName), "utf8");
45768
45743
  return JSON.parse(content);
45769
45744
  } catch (err) {
45770
45745
  if (err.code === "ENOENT")
@@ -69614,10 +69589,10 @@ function requireTmp() {
69614
69589
  function setGracefulCleanup() {
69615
69590
  _gracefulCleanup = !0;
69616
69591
  }
69617
- const version = process.versions.node.split(".").map(function(value) {
69592
+ const version2 = process.versions.node.split(".").map(function(value) {
69618
69593
  return parseInt(value, 10);
69619
69594
  });
69620
- return version[0] === 0 && (version[1] < 9 || version[1] === 9 && version[2] < 5) && process.addListener("uncaughtException", function(err) {
69595
+ return version2[0] === 0 && (version2[1] < 9 || version2[1] === 9 && version2[2] < 5) && process.addListener("uncaughtException", function(err) {
69621
69596
  throw _uncaughtException = !0, _garbageCollector(), err;
69622
69597
  }), process.addListener("exit", function(code) {
69623
69598
  code && (_uncaughtException = !0), _garbageCollector();
@@ -70121,7 +70096,7 @@ function neatStack(error2) {
70121
70096
  if (typeof error2 == "string")
70122
70097
  return chalk$2.red(cleanStack$1(error2, options));
70123
70098
  if (error2 === null || typeof error2 != "object" || typeof error2.stack != "string")
70124
- return chalk$2.red(util$a.inspect(error2));
70099
+ return chalk$2.red(util$b.inspect(error2));
70125
70100
  const title = error2.toString(), stack2 = cleanStack$1(error2.stack, options);
70126
70101
  return stack2.startsWith(title) ? chalk$2.red(`${title}${chalk$2.dim(cleanStack$1(error2.stack, options).slice(title.length))}`) : chalk$2.red(stack2);
70127
70102
  }
@@ -70133,7 +70108,7 @@ function parseArguments(argv = process.argv) {
70133
70108
  d,
70134
70109
  debug: debug2,
70135
70110
  v,
70136
- version,
70111
+ version: version2,
70137
70112
  "--": extraArguments,
70138
70113
  ...extOptions
70139
70114
  } = minimist$1(argv.slice(2), {
@@ -70154,7 +70129,7 @@ function parseArguments(argv = process.argv) {
70154
70129
  d,
70155
70130
  debug: debug2,
70156
70131
  v,
70157
- version
70132
+ version: version2
70158
70133
  }
70159
70134
  };
70160
70135
  }
@@ -70238,7 +70213,7 @@ const MAX_BLOCKING_TIME = 300, TWELVE_HOURS = 1e3 * 60 * 60 * 12, isDisabled = i
70238
70213
  process.env.NO_UPDATE_NOTIFIER;
70239
70214
  function runUpdateCheck(options2) {
70240
70215
  loadEnv.debug("CLI installed at %s", __dirname);
70241
- const { pkg, cwd: cwd2, workDir } = options2, { name, version } = pkg, userConfig = getUserConfig(), check = getLatestRemote().catch(() => !1);
70216
+ const { pkg, cwd: cwd2, workDir } = options2, { name, version: version2 } = pkg, userConfig = getUserConfig(), check = getLatestRemote().catch(() => !1);
70242
70217
  let hasPrintedResult = !1;
70243
70218
  return { notify };
70244
70219
  async function notify() {
@@ -70254,7 +70229,7 @@ function runUpdateCheck(options2) {
70254
70229
  async function printCachedResult() {
70255
70230
  loadEnv.debug("Max time (%dms) reached waiting for latest version info", MAX_BLOCKING_TIME), hasPrintedResult = !0;
70256
70231
  const cached = userConfig.get("cliHasUpdate");
70257
- return cached ? semverCompare$1(cached, version) <= 0 ? (loadEnv.debug("CLI was upgraded since last check, falling back"), userConfig.delete("cliHasUpdate"), !1) : (loadEnv.debug("Printing cached latest version result"), await printResult2(cached), !1) : (loadEnv.debug("No cached latest version result found"), !1);
70232
+ return cached ? semverCompare$1(cached, version2) <= 0 ? (loadEnv.debug("CLI was upgraded since last check, falling back"), userConfig.delete("cliHasUpdate"), !1) : (loadEnv.debug("Printing cached latest version result"), await printResult2(cached), !1) : (loadEnv.debug("No cached latest version result found"), !1);
70258
70233
  }
70259
70234
  async function printResult2(newVersion) {
70260
70235
  hasPrintedResult = !0;
@@ -70263,13 +70238,13 @@ function runUpdateCheck(options2) {
70263
70238
  loadEnv.debug("Less than 12 hours since last nag, skipping");
70264
70239
  return;
70265
70240
  }
70266
- if (!newVersion || semverCompare$1(newVersion, version) <= 0) {
70267
- loadEnv.debug(`New version is ${newVersion || "unknown"}, current is ${version}. Falling back.`);
70241
+ if (!newVersion || semverCompare$1(newVersion, version2) <= 0) {
70242
+ loadEnv.debug(`New version is ${newVersion || "unknown"}, current is ${version2}. Falling back.`);
70268
70243
  return;
70269
70244
  }
70270
70245
  const upgradeCommand2 = await getCliUpgradeCommand({ cwd: cwd2, workDir }), message = [
70271
70246
  "Update available ",
70272
- chalk__default.default.dim(version),
70247
+ chalk__default.default.dim(version2),
70273
70248
  chalk__default.default.reset(" \u2192 "),
70274
70249
  chalk__default.default.green(newVersion),
70275
70250
  `
@@ -70303,7 +70278,7 @@ ${err.stack}`), !1;
70303
70278
  if (!latestRemote)
70304
70279
  return loadEnv.debug(`Failed to fetch latest version of ${name} from npm`), !1;
70305
70280
  userConfig.set("cliLastUpdateCheck", Date.now());
70306
- const diff = semverCompare$1(latestRemote, version);
70281
+ const diff = semverCompare$1(latestRemote, version2);
70307
70282
  return diff <= 0 ? (loadEnv.debug(diff === 0 ? "No update found" : "Remote version older than local"), userConfig.delete("cliHasUpdate"), !1) : (userConfig.set("cliHasUpdate", latestRemote), loadEnv.debug("Update is available (%s)", latestRemote), latestRemote);
70308
70283
  }
70309
70284
  }
@@ -70453,7 +70428,7 @@ function warnOnNonProductionEnvironment() {
70453
70428
  );
70454
70429
  }
70455
70430
  function loadAndSetEnvFromDotEnvFiles({ workDir, cmd }) {
70456
- if (fs$p.existsSync(path__default.default.join(workDir, "sanity.json"))) {
70431
+ if (fs$r.existsSync(path__default.default.join(workDir, "sanity.json"))) {
70457
70432
  loadEnv.debug("sanity.json exists, assuming v2 project and loading .env files using old behavior");
70458
70433
  const env = process.env.SANITY_ACTIVE_ENV || process.env.NODE_ENV || "development";
70459
70434
  loadEnv.debug("Loading environment files using %s mode", env), loadEnv.dotenv.config({ path: path__default.default.join(workDir, `.env.${env}`) });