@shopify/cli
Version:
A CLI tool to build for the Shopify platform
1,239 lines (1,195 loc) • 2.61 MB
JavaScript
import {
FormData,
fetch_blob_default,
formDataToBlob
} from "./chunk-XD3LXUGW.js";
import {
cacheRetrieveOrRepopulate,
getCurrentSessionId,
getPackageManager,
getSessions,
packageManagerFromUserAgent,
removeCurrentSessionId,
removeSessions,
runWithRateLimit,
setCurrentSessionId,
setSessions,
timeIntervalToMilliseconds
} from "./chunk-OIOM46UG.js";
import {
CLI_KIT_VERSION
} from "./chunk-S2JA5KN5.js";
import {
AbortError,
BugError,
FatalError,
addPublicMetadata,
addSensitiveMetadata,
alwaysLogAnalytics,
alwaysLogMetrics,
analyticsDisabled,
ciPlatform,
cloudEnvironment,
currentProcessIsGlobal,
environmentVariables,
firstPartyDev,
formatPackageManagerCommand,
getAllPublicMetadata,
getAllSensitiveMetadata,
getArrayContainsDuplicates,
getArrayRejectingUndefined,
import_ts_error,
isCI,
isCloudEnvironment,
isShopify,
isTTY,
isTruthy,
isUnitTest,
isWsl,
keypress,
macAddress,
openURL,
opentelemetryDomain,
outputCompleted,
outputContent,
outputDebug,
outputInfo,
outputToken,
platformAndArch,
reportingRateLimit,
require_arrayLikeKeys,
require_arrayMap,
require_arrayPush,
require_baseDifference,
require_baseFlatten,
require_baseForOwn,
require_baseGet,
require_baseGetAllKeys,
require_baseIsEqual,
require_baseIteratee,
require_baseKeys,
require_baseRest,
require_castPath,
require_defineProperty,
require_eq,
require_get,
require_getSymbols,
require_getTag,
require_isArguments,
require_isArray,
require_isArrayLike,
require_isArrayLikeObject,
require_isBuffer,
require_isIndex,
require_isObject,
require_isPrototype,
require_isTypedArray,
require_keys,
require_mapToArray,
require_overArg,
require_stubArray,
require_toKey,
runWithTimer,
sessionConstants,
sleep,
stringifyMessage,
systemEnvironmentVariables,
themeToken
} from "./chunk-HJSZAWSQ.js";
import {
cwd,
sniffForJson
} from "./chunk-EG6MBBEN.js";
import {
__commonJS,
__esm,
__export,
__require,
__toCommonJS,
__toESM,
init_cjs_shims
} from "./chunk-PKR7KJ6P.js";
// ../../node_modules/.pnpm/network-interfaces@1.1.0/node_modules/network-interfaces/index.js
var require_network_interfaces = __commonJS({
"../../node_modules/.pnpm/network-interfaces@1.1.0/node_modules/network-interfaces/index.js"(exports2) {
"use strict";
init_cjs_shims();
var os2 = __require("os");
function isValid2(address, options2) {
return !(typeof options2.internal == "boolean" && address.internal !== options2.internal || options2.ipVersion === 4 && address.family !== "IPv4" || options2.ipVersion === 6 && address.family !== "IPv6");
}
function findAddresses(interfaceName, options2 = {}) {
let addresses = os2.networkInterfaces()[interfaceName];
if (!addresses)
throw new Error(`Network interface "${interfaceName}" does not exist`);
let result = [];
for (let address of addresses)
isValid2(address, options2) && result.push(address);
return result;
}
exports2.toIp = function(interfaceName, options2) {
let addresses = findAddresses(interfaceName, options2);
if (addresses.length === 0)
throw new Error(`No suitable IP address found on interface "${interfaceName}"`);
return addresses[0].address;
};
exports2.toIps = function(interfaceName, options2) {
return findAddresses(interfaceName, options2).map((address) => address.address);
};
exports2.fromIp = function(ip, options2) {
let interfaces = os2.networkInterfaces(), interfaceNames = Object.keys(interfaces);
for (let interfaceName of interfaceNames)
for (let address of interfaces[interfaceName])
if (address.address === ip && isValid2(address, options2))
return interfaceName;
throw new Error(`No suitable interfaces were found with IP address "${ip}"`);
};
exports2.getInterface = function(options2) {
let interfaces = os2.networkInterfaces(), interfaceNames = Object.keys(interfaces);
for (let interfaceName of interfaceNames)
if (findAddresses(interfaceName, options2).length > 0)
return interfaceName;
throw new Error("No suitable interfaces were found");
};
exports2.getInterfaces = function(options2) {
let interfaces = os2.networkInterfaces(), interfaceNames = Object.keys(interfaces), result = [];
for (let interfaceName of interfaceNames)
findAddresses(interfaceName, options2).length > 0 && result.push(interfaceName);
return result;
};
}
});
// ../../node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
var require_cjs = __commonJS({
"../../node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js"(exports2, module2) {
"use strict";
init_cjs_shims();
var isMergeableObject = function(value) {
return isNonNullObject(value) && !isSpecial(value);
};
function isNonNullObject(value) {
return !!value && typeof value == "object";
}
function isSpecial(value) {
var stringValue = Object.prototype.toString.call(value);
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
}
var canUseSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
function isReactElement(value) {
return value.$$typeof === REACT_ELEMENT_TYPE;
}
function emptyTarget(val) {
return Array.isArray(val) ? [] : {};
}
function cloneUnlessOtherwiseSpecified(value, options2) {
return options2.clone !== !1 && options2.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options2) : value;
}
function defaultArrayMerge(target, source, options2) {
return target.concat(source).map(function(element) {
return cloneUnlessOtherwiseSpecified(element, options2);
});
}
function getMergeFunction(key, options2) {
if (!options2.customMerge)
return deepmerge;
var customMerge = options2.customMerge(key);
return typeof customMerge == "function" ? customMerge : deepmerge;
}
function getEnumerableOwnPropertySymbols(target) {
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
return Object.propertyIsEnumerable.call(target, symbol);
}) : [];
}
function getKeys(target) {
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
}
function propertyIsOnObject(object, property) {
try {
return property in object;
} catch {
return !1;
}
}
function propertyIsUnsafe(target, key) {
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
}
function mergeObject(target, source, options2) {
var destination = {};
return options2.isMergeableObject(target) && getKeys(target).forEach(function(key) {
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options2);
}), getKeys(source).forEach(function(key) {
propertyIsUnsafe(target, key) || (propertyIsOnObject(target, key) && options2.isMergeableObject(source[key]) ? destination[key] = getMergeFunction(key, options2)(target[key], source[key], options2) : destination[key] = cloneUnlessOtherwiseSpecified(source[key], options2));
}), destination;
}
function deepmerge(target, source, options2) {
options2 = options2 || {}, options2.arrayMerge = options2.arrayMerge || defaultArrayMerge, options2.isMergeableObject = options2.isMergeableObject || isMergeableObject, options2.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
var sourceIsArray = Array.isArray(source), targetIsArray = Array.isArray(target), sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
return sourceAndTargetTypesMatch ? sourceIsArray ? options2.arrayMerge(target, source, options2) : mergeObject(target, source, options2) : cloneUnlessOtherwiseSpecified(source, options2);
}
deepmerge.all = function(array, options2) {
if (!Array.isArray(array))
throw new Error("first argument should be an array");
return array.reduce(function(prev, next) {
return deepmerge(prev, next, options2);
}, {});
};
var deepmerge_1 = deepmerge;
module2.exports = deepmerge_1;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js
var require_baseAssignValue = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(exports2, module2) {
init_cjs_shims();
var defineProperty = require_defineProperty();
function baseAssignValue(object, key, value) {
key == "__proto__" && defineProperty ? defineProperty(object, key, {
configurable: !0,
enumerable: !0,
value,
writable: !0
}) : object[key] = value;
}
module2.exports = baseAssignValue;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js
var require_assignValue = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(exports2, module2) {
init_cjs_shims();
var baseAssignValue = require_baseAssignValue(), eq = require_eq(), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
function assignValue(object, key, value) {
var objValue = object[key];
(!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) && baseAssignValue(object, key, value);
}
module2.exports = assignValue;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js
var require_baseSet = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js"(exports2, module2) {
init_cjs_shims();
var assignValue = require_assignValue(), castPath = require_castPath(), isIndex = require_isIndex(), isObject2 = require_isObject(), toKey = require_toKey();
function baseSet(object, path, value, customizer) {
if (!isObject2(object))
return object;
path = castPath(path, object);
for (var index = -1, length = path.length, lastIndex = length - 1, nested = object; nested != null && ++index < length; ) {
var key = toKey(path[index]), newValue = value;
if (key === "__proto__" || key === "constructor" || key === "prototype")
return object;
if (index != lastIndex) {
var objValue = nested[key];
newValue = customizer ? customizer(objValue, key, nested) : void 0, newValue === void 0 && (newValue = isObject2(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {});
}
assignValue(nested, key, newValue), nested = nested[key];
}
return object;
}
module2.exports = baseSet;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js
var require_basePickBy = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_basePickBy.js"(exports2, module2) {
init_cjs_shims();
var baseGet = require_baseGet(), baseSet = require_baseSet(), castPath = require_castPath();
function basePickBy(object, paths, predicate) {
for (var index = -1, length = paths.length, result = {}; ++index < length; ) {
var path = paths[index], value = baseGet(object, path);
predicate(value, path) && baseSet(result, castPath(path, object), value);
}
return result;
}
module2.exports = basePickBy;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js
var require_getPrototype = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(exports2, module2) {
init_cjs_shims();
var overArg = require_overArg(), getPrototype = overArg(Object.getPrototypeOf, Object);
module2.exports = getPrototype;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js
var require_getSymbolsIn = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js"(exports2, module2) {
init_cjs_shims();
var arrayPush = require_arrayPush(), getPrototype = require_getPrototype(), getSymbols = require_getSymbols(), stubArray = require_stubArray(), nativeGetSymbols = Object.getOwnPropertySymbols, getSymbolsIn = nativeGetSymbols ? function(object) {
for (var result = []; object; )
arrayPush(result, getSymbols(object)), object = getPrototype(object);
return result;
} : stubArray;
module2.exports = getSymbolsIn;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js
var require_nativeKeysIn = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(exports2, module2) {
init_cjs_shims();
function nativeKeysIn(object) {
var result = [];
if (object != null)
for (var key in Object(object))
result.push(key);
return result;
}
module2.exports = nativeKeysIn;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js
var require_baseKeysIn = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(exports2, module2) {
init_cjs_shims();
var isObject2 = require_isObject(), isPrototype = require_isPrototype(), nativeKeysIn = require_nativeKeysIn(), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
function baseKeysIn(object) {
if (!isObject2(object))
return nativeKeysIn(object);
var isProto = isPrototype(object), result = [];
for (var key in object)
key == "constructor" && (isProto || !hasOwnProperty.call(object, key)) || result.push(key);
return result;
}
module2.exports = baseKeysIn;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
var require_keysIn = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports2, module2) {
init_cjs_shims();
var arrayLikeKeys = require_arrayLikeKeys(), baseKeysIn = require_baseKeysIn(), isArrayLike = require_isArrayLike();
function keysIn(object) {
return isArrayLike(object) ? arrayLikeKeys(object, !0) : baseKeysIn(object);
}
module2.exports = keysIn;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js
var require_getAllKeysIn = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js"(exports2, module2) {
init_cjs_shims();
var baseGetAllKeys = require_baseGetAllKeys(), getSymbolsIn = require_getSymbolsIn(), keysIn = require_keysIn();
function getAllKeysIn(object) {
return baseGetAllKeys(object, keysIn, getSymbolsIn);
}
module2.exports = getAllKeysIn;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js
var require_pickBy = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js"(exports2, module2) {
init_cjs_shims();
var arrayMap = require_arrayMap(), baseIteratee = require_baseIteratee(), basePickBy = require_basePickBy(), getAllKeysIn = require_getAllKeysIn();
function pickBy2(object, predicate) {
if (object == null)
return {};
var props = arrayMap(getAllKeysIn(object), function(prop) {
return [prop];
});
return predicate = baseIteratee(predicate), basePickBy(object, props, function(value, path) {
return predicate(value, path[0]);
});
}
module2.exports = pickBy2;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js
var require_mapValues = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js"(exports2, module2) {
init_cjs_shims();
var baseAssignValue = require_baseAssignValue(), baseForOwn = require_baseForOwn(), baseIteratee = require_baseIteratee();
function mapValues(object, iteratee) {
var result = {};
return iteratee = baseIteratee(iteratee, 3), baseForOwn(object, function(value, key, object2) {
baseAssignValue(result, key, iteratee(value, key, object2));
}), result;
}
module2.exports = mapValues;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js
var require_isEqual = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEqual.js"(exports2, module2) {
init_cjs_shims();
var baseIsEqual = require_baseIsEqual();
function isEqual(value, other) {
return baseIsEqual(value, other);
}
module2.exports = isEqual;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js
var require_last = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js"(exports2, module2) {
init_cjs_shims();
function last(array) {
var length = array == null ? 0 : array.length;
return length ? array[length - 1] : void 0;
}
module2.exports = last;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/differenceWith.js
var require_differenceWith = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/differenceWith.js"(exports2, module2) {
init_cjs_shims();
var baseDifference = require_baseDifference(), baseFlatten = require_baseFlatten(), baseRest = require_baseRest(), isArrayLikeObject = require_isArrayLikeObject(), last = require_last(), differenceWith2 = baseRest(function(array, values) {
var comparator = last(values);
return isArrayLikeObject(comparator) && (comparator = void 0), isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, !0), void 0, comparator) : [];
});
module2.exports = differenceWith2;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js
var require_fromPairs = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js"(exports2, module2) {
init_cjs_shims();
function fromPairs2(pairs) {
for (var index = -1, length = pairs == null ? 0 : pairs.length, result = {}; ++index < length; ) {
var pair = pairs[index];
result[pair[0]] = pair[1];
}
return result;
}
module2.exports = fromPairs2;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToPairs.js
var require_baseToPairs = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToPairs.js"(exports2, module2) {
init_cjs_shims();
var arrayMap = require_arrayMap();
function baseToPairs(object, props) {
return arrayMap(props, function(key) {
return [key, object[key]];
});
}
module2.exports = baseToPairs;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToPairs.js
var require_setToPairs = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToPairs.js"(exports2, module2) {
init_cjs_shims();
function setToPairs(set2) {
var index = -1, result = Array(set2.size);
return set2.forEach(function(value) {
result[++index] = [value, value];
}), result;
}
module2.exports = setToPairs;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createToPairs.js
var require_createToPairs = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createToPairs.js"(exports2, module2) {
init_cjs_shims();
var baseToPairs = require_baseToPairs(), getTag = require_getTag(), mapToArray = require_mapToArray(), setToPairs = require_setToPairs(), mapTag = "[object Map]", setTag = "[object Set]";
function createToPairs(keysFunc) {
return function(object) {
var tag = getTag(object);
return tag == mapTag ? mapToArray(object) : tag == setTag ? setToPairs(object) : baseToPairs(object, keysFunc(object));
};
}
module2.exports = createToPairs;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPairs.js
var require_toPairs = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPairs.js"(exports2, module2) {
init_cjs_shims();
var createToPairs = require_createToPairs(), keys = require_keys(), toPairs2 = createToPairs(keys);
module2.exports = toPairs2;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js
var require_set = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js"(exports2, module2) {
init_cjs_shims();
var baseSet = require_baseSet();
function set2(object, path, value) {
return object == null ? object : baseSet(object, path, value);
}
module2.exports = set2;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js
var require_baseSlice = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js"(exports2, module2) {
init_cjs_shims();
function baseSlice(array, start, end) {
var index = -1, length = array.length;
start < 0 && (start = -start > length ? 0 : length + start), end = end > length ? length : end, end < 0 && (end += length), length = start > end ? 0 : end - start >>> 0, start >>>= 0;
for (var result = Array(length); ++index < length; )
result[index] = array[index + start];
return result;
}
module2.exports = baseSlice;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_parent.js
var require_parent = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_parent.js"(exports2, module2) {
init_cjs_shims();
var baseGet = require_baseGet(), baseSlice = require_baseSlice();
function parent(object, path) {
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
}
module2.exports = parent;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnset.js
var require_baseUnset = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnset.js"(exports2, module2) {
init_cjs_shims();
var castPath = require_castPath(), last = require_last(), parent = require_parent(), toKey = require_toKey();
function baseUnset(object, path) {
return path = castPath(path, object), object = parent(object, path), object == null || delete object[toKey(last(path))];
}
module2.exports = baseUnset;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/unset.js
var require_unset = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/unset.js"(exports2, module2) {
init_cjs_shims();
var baseUnset = require_baseUnset();
function unset2(object, path) {
return object == null ? !0 : baseUnset(object, path);
}
module2.exports = unset2;
}
});
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js
var require_isEmpty = __commonJS({
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js"(exports2, module2) {
init_cjs_shims();
var baseKeys = require_baseKeys(), getTag = require_getTag(), isArguments = require_isArguments(), isArray = require_isArray(), isArrayLike = require_isArrayLike(), isBuffer = require_isBuffer(), isPrototype = require_isPrototype(), isTypedArray = require_isTypedArray(), mapTag = "[object Map]", setTag = "[object Set]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
function isEmpty2(value) {
if (value == null)
return !0;
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value)))
return !value.length;
var tag = getTag(value);
if (tag == mapTag || tag == setTag)
return !value.size;
if (isPrototype(value))
return !baseKeys(value).length;
for (var key in value)
if (hasOwnProperty.call(value, key))
return !1;
return !0;
}
module2.exports = isEmpty2;
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/version.js
var require_version = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/version.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.versionInfo = exports2.version = void 0;
var version = "16.10.0";
exports2.version = version;
var versionInfo = Object.freeze({
major: 16,
minor: 10,
patch: 0,
preReleaseTag: null
});
exports2.versionInfo = versionInfo;
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/devAssert.js
var require_devAssert = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/devAssert.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.devAssert = devAssert;
function devAssert(condition, message) {
if (!!!condition)
throw new Error(message);
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/isPromise.js
var require_isPromise = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/isPromise.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.isPromise = isPromise;
function isPromise(value) {
return typeof value?.then == "function";
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/isObjectLike.js
var require_isObjectLike = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/isObjectLike.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.isObjectLike = isObjectLike2;
function isObjectLike2(value) {
return typeof value == "object" && value !== null;
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/invariant.js
var require_invariant = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/invariant.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.invariant = invariant;
function invariant(condition, message) {
if (!!!condition)
throw new Error(
message ?? "Unexpected invariant triggered."
);
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/location.js
var require_location = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/location.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.getLocation = getLocation;
var _invariant = require_invariant(), LineRegExp = /\r\n|[\n\r]/g;
function getLocation(source, position) {
let lastLineStart = 0, line = 1;
for (let match of source.body.matchAll(LineRegExp)) {
if (typeof match.index == "number" || (0, _invariant.invariant)(!1), match.index >= position)
break;
lastLineStart = match.index + match[0].length, line += 1;
}
return {
line,
column: position + 1 - lastLineStart
};
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/printLocation.js
var require_printLocation = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/printLocation.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.printLocation = printLocation;
exports2.printSourceLocation = printSourceLocation;
var _location = require_location();
function printLocation(location) {
return printSourceLocation(
location.source,
(0, _location.getLocation)(location.source, location.start)
);
}
function printSourceLocation(source, sourceLocation) {
let firstLineColumnOffset = source.locationOffset.column - 1, body = "".padStart(firstLineColumnOffset) + source.body, lineIndex = sourceLocation.line - 1, lineOffset = source.locationOffset.line - 1, lineNum = sourceLocation.line + lineOffset, columnOffset = sourceLocation.line === 1 ? firstLineColumnOffset : 0, columnNum = sourceLocation.column + columnOffset, locationStr = `${source.name}:${lineNum}:${columnNum}
`, lines = body.split(/\r\n|[\n\r]/g), locationLine = lines[lineIndex];
if (locationLine.length > 120) {
let subLineIndex = Math.floor(columnNum / 80), subLineColumnNum = columnNum % 80, subLines = [];
for (let i = 0; i < locationLine.length; i += 80)
subLines.push(locationLine.slice(i, i + 80));
return locationStr + printPrefixedLines([
[`${lineNum} |`, subLines[0]],
...subLines.slice(1, subLineIndex + 1).map((subLine) => ["|", subLine]),
["|", "^".padStart(subLineColumnNum)],
["|", subLines[subLineIndex + 1]]
]);
}
return locationStr + printPrefixedLines([
// Lines specified like this: ["prefix", "string"],
[`${lineNum - 1} |`, lines[lineIndex - 1]],
[`${lineNum} |`, locationLine],
["|", "^".padStart(columnNum)],
[`${lineNum + 1} |`, lines[lineIndex + 1]]
]);
}
function printPrefixedLines(lines) {
let existingLines = lines.filter(([_, line]) => line !== void 0), padLen = Math.max(...existingLines.map(([prefix]) => prefix.length));
return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join(`
`);
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/error/GraphQLError.js
var require_GraphQLError = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/error/GraphQLError.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.GraphQLError = void 0;
exports2.formatError = formatError;
exports2.printError = printError;
var _isObjectLike = require_isObjectLike(), _location = require_location(), _printLocation = require_printLocation();
function toNormalizedOptions(args) {
let firstArg = args[0];
return firstArg == null || "kind" in firstArg || "length" in firstArg ? {
nodes: firstArg,
source: args[1],
positions: args[2],
path: args[3],
originalError: args[4],
extensions: args[5]
} : firstArg;
}
var GraphQLError = class _GraphQLError extends Error {
/**
* An array of `{ line, column }` locations within the source GraphQL document
* which correspond to this error.
*
* Errors during validation often contain multiple locations, for example to
* point out two things with the same name. Errors during execution include a
* single location, the field which produced the error.
*
* Enumerable, and appears in the result of JSON.stringify().
*/
/**
* An array describing the JSON-path into the execution response which
* corresponds to this error. Only included for errors during execution.
*
* Enumerable, and appears in the result of JSON.stringify().
*/
/**
* An array of GraphQL AST Nodes corresponding to this error.
*/
/**
* The source GraphQL document for the first location of this error.
*
* Note that if this Error represents more than one node, the source may not
* represent nodes after the first node.
*/
/**
* An array of character offsets within the source GraphQL document
* which correspond to this error.
*/
/**
* The original error thrown from a field resolver during execution.
*/
/**
* Extension fields to add to the formatted error.
*/
/**
* @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
*/
constructor(message, ...rawArgs) {
var _this$nodes, _nodeLocations$, _ref;
let { nodes, source, positions, path, originalError, extensions } = toNormalizedOptions(rawArgs);
super(message), this.name = "GraphQLError", this.path = path ?? void 0, this.originalError = originalError ?? void 0, this.nodes = undefinedIfEmpty(
Array.isArray(nodes) ? nodes : nodes ? [nodes] : void 0
);
let nodeLocations = undefinedIfEmpty(
(_this$nodes = this.nodes) === null || _this$nodes === void 0 ? void 0 : _this$nodes.map((node) => node.loc).filter((loc) => loc != null)
);
this.source = source ?? (nodeLocations == null || (_nodeLocations$ = nodeLocations[0]) === null || _nodeLocations$ === void 0 ? void 0 : _nodeLocations$.source), this.positions = positions ?? nodeLocations?.map((loc) => loc.start), this.locations = positions && source ? positions.map((pos) => (0, _location.getLocation)(source, pos)) : nodeLocations?.map(
(loc) => (0, _location.getLocation)(loc.source, loc.start)
);
let originalExtensions = (0, _isObjectLike.isObjectLike)(
originalError?.extensions
) ? originalError?.extensions : void 0;
this.extensions = (_ref = extensions ?? originalExtensions) !== null && _ref !== void 0 ? _ref : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
message: {
writable: !0,
enumerable: !0
},
name: {
enumerable: !1
},
nodes: {
enumerable: !1
},
source: {
enumerable: !1
},
positions: {
enumerable: !1
},
originalError: {
enumerable: !1
}
}), originalError != null && originalError.stack ? Object.defineProperty(this, "stack", {
value: originalError.stack,
writable: !0,
configurable: !0
}) : Error.captureStackTrace ? Error.captureStackTrace(this, _GraphQLError) : Object.defineProperty(this, "stack", {
value: Error().stack,
writable: !0,
configurable: !0
});
}
get [Symbol.toStringTag]() {
return "GraphQLError";
}
toString() {
let output = this.message;
if (this.nodes)
for (let node of this.nodes)
node.loc && (output += `
` + (0, _printLocation.printLocation)(node.loc));
else if (this.source && this.locations)
for (let location of this.locations)
output += `
` + (0, _printLocation.printSourceLocation)(this.source, location);
return output;
}
toJSON() {
let formattedError = {
message: this.message
};
return this.locations != null && (formattedError.locations = this.locations), this.path != null && (formattedError.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (formattedError.extensions = this.extensions), formattedError;
}
};
exports2.GraphQLError = GraphQLError;
function undefinedIfEmpty(array) {
return array === void 0 || array.length === 0 ? void 0 : array;
}
function printError(error) {
return error.toString();
}
function formatError(error) {
return error.toJSON();
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/error/syntaxError.js
var require_syntaxError = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/error/syntaxError.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.syntaxError = syntaxError;
var _GraphQLError = require_GraphQLError();
function syntaxError(source, position, description) {
return new _GraphQLError.GraphQLError(`Syntax Error: ${description}`, {
source,
positions: [position]
});
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/ast.js
var require_ast = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/ast.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.Token = exports2.QueryDocumentKeys = exports2.OperationTypeNode = exports2.Location = void 0;
exports2.isNode = isNode;
var Location = class {
/**
* The character offset at which this Node begins.
*/
/**
* The character offset at which this Node ends.
*/
/**
* The Token at which this Node begins.
*/
/**
* The Token at which this Node ends.
*/
/**
* The Source document the AST represents.
*/
constructor(startToken, endToken, source) {
this.start = startToken.start, this.end = endToken.end, this.startToken = startToken, this.endToken = endToken, this.source = source;
}
get [Symbol.toStringTag]() {
return "Location";
}
toJSON() {
return {
start: this.start,
end: this.end
};
}
};
exports2.Location = Location;
var Token = class {
/**
* The kind of Token.
*/
/**
* The character offset at which this Node begins.
*/
/**
* The character offset at which this Node ends.
*/
/**
* The 1-indexed line number on which this Token appears.
*/
/**
* The 1-indexed column number at which this Token begins.
*/
/**
* For non-punctuation tokens, represents the interpreted value of the token.
*
* Note: is undefined for punctuation tokens, but typed as string for
* convenience in the parser.
*/
/**
* Tokens exist as nodes in a double-linked-list amongst all tokens
* including ignored tokens. <SOF> is always the first node and <EOF>
* the last.
*/
constructor(kind, start, end, line, column, value) {
this.kind = kind, this.start = start, this.end = end, this.line = line, this.column = column, this.value = value, this.prev = null, this.next = null;
}
get [Symbol.toStringTag]() {
return "Token";
}
toJSON() {
return {
kind: this.kind,
value: this.value,
line: this.line,
column: this.column
};
}
};
exports2.Token = Token;
var QueryDocumentKeys = {
Name: [],
Document: ["definitions"],
OperationDefinition: [
"name",
"variableDefinitions",
"directives",
"selectionSet"
],
VariableDefinition: ["variable", "type", "defaultValue", "directives"],
Variable: ["name"],
SelectionSet: ["selections"],
Field: ["alias", "name", "arguments", "directives", "selectionSet"],
Argument: ["name", "value"],
FragmentSpread: ["name", "directives"],
InlineFragment: ["typeCondition", "directives", "selectionSet"],
FragmentDefinition: [
"name",
// Note: fragment variable definitions are deprecated and will removed in v17.0.0
"variableDefinitions",
"typeCondition",
"directives",
"selectionSet"
],
IntValue: [],
FloatValue: [],
StringValue: [],
BooleanValue: [],
NullValue: [],
EnumValue: [],
ListValue: ["values"],
ObjectValue: ["fields"],
ObjectField: ["name", "value"],
Directive: ["name", "arguments"],
NamedType: ["name"],
ListType: ["type"],
NonNullType: ["type"],
SchemaDefinition: ["description", "directives", "operationTypes"],
OperationTypeDefinition: ["type"],
ScalarTypeDefinition: ["description", "name", "directives"],
ObjectTypeDefinition: [
"description",
"name",
"interfaces",
"directives",
"fields"
],
FieldDefinition: ["description", "name", "arguments", "type", "directives"],
InputValueDefinition: [
"description",
"name",
"type",
"defaultValue",
"directives"
],
InterfaceTypeDefinition: [
"description",
"name",
"interfaces",
"directives",
"fields"
],
UnionTypeDefinition: ["description", "name", "directives", "types"],
EnumTypeDefinition: ["description", "name", "directives", "values"],
EnumValueDefinition: ["description", "name", "directives"],
InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
DirectiveDefinition: ["description", "name", "arguments", "locations"],
SchemaExtension: ["directives", "operationTypes"],
ScalarTypeExtension: ["name", "directives"],
ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
UnionTypeExtension: ["name", "directives", "types"],
EnumTypeExtension: ["name", "directives", "values"],
InputObjectTypeExtension: ["name", "directives", "fields"]
};
exports2.QueryDocumentKeys = QueryDocumentKeys;
var kindValues = new Set(Object.keys(QueryDocumentKeys));
function isNode(maybeNode) {
let maybeKind = maybeNode?.kind;
return typeof maybeKind == "string" && kindValues.has(maybeKind);
}
var OperationTypeNode;
exports2.OperationTypeNode = OperationTypeNode;
(function(OperationTypeNode2) {
OperationTypeNode2.QUERY = "query", OperationTypeNode2.MUTATION = "mutation", OperationTypeNode2.SUBSCRIPTION = "subscription";
})(OperationTypeNode || (exports2.OperationTypeNode = OperationTypeNode = {}));
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/directiveLocation.js
var require_directiveLocation = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/directiveLocation.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.DirectiveLocation = void 0;
var DirectiveLocation;
exports2.DirectiveLocation = DirectiveLocation;
(function(DirectiveLocation2) {
DirectiveLocation2.QUERY = "QUERY", DirectiveLocation2.MUTATION = "MUTATION", DirectiveLocation2.SUBSCRIPTION = "SUBSCRIPTION", DirectiveLocation2.FIELD = "FIELD", DirectiveLocation2.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", DirectiveLocation2.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", DirectiveLocation2.INLINE_FRAGMENT = "INLINE_FRAGMENT", DirectiveLocation2.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", DirectiveLocation2.SCHEMA = "SCHEMA", DirectiveLocation2.SCALAR = "SCALAR", DirectiveLocation2.OBJECT = "OBJECT", DirectiveLocation2.FIELD_DEFINITION = "FIELD_DEFINITION", DirectiveLocation2.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", DirectiveLocation2.INTERFACE = "INTERFACE", DirectiveLocation2.UNION = "UNION", DirectiveLocation2.ENUM = "ENUM", DirectiveLocation2.ENUM_VALUE = "ENUM_VALUE", DirectiveLocation2.INPUT_OBJECT = "INPUT_OBJECT", DirectiveLocation2.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
})(DirectiveLocation || (exports2.DirectiveLocation = DirectiveLocation = {}));
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/kinds.js
var require_kinds = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/kinds.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.Kind = void 0;
var Kind;
exports2.Kind = Kind;
(function(Kind2) {
Kind2.NAME = "Name", Kind2.DOCUMENT = "Document", Kind2.OPERATION_DEFINITION = "OperationDefinition", Kind2.VARIABLE_DEFINITION = "VariableDefinition", Kind2.SELECTION_SET = "SelectionSet", Kind2.FIELD = "Field", Kind2.ARGUMENT = "Argument", Kind2.FRAGMENT_SPREAD = "FragmentSpread", Kind2.INLINE_FRAGMENT = "InlineFragment", Kind2.FRAGMENT_DEFINITION = "FragmentDefinition", Kind2.VARIABLE = "Variable", Kind2.INT = "IntValue", Kind2.FLOAT = "FloatValue", Kind2.STRING = "StringValue", Kind2.BOOLEAN = "BooleanValue", Kind2.NULL = "NullValue", Kind2.ENUM = "EnumValue", Kind2.LIST = "ListValue", Kind2.OBJECT = "ObjectValue", Kind2.OBJECT_FIELD = "ObjectField", Kind2.DIRECTIVE = "Directive", Kind2.NAMED_TYPE = "NamedType", Kind2.LIST_TYPE = "ListType", Kind2.NON_NULL_TYPE = "NonNullType", Kind2.SCHEMA_DEFINITION = "SchemaDefinition", Kind2.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", Kind2.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", Kind2.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", Kind2.FIELD_DEFINITION = "FieldDefinition", Kind2.INPUT_VALUE_DEFINITION = "InputValueDefinition", Kind2.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", Kind2.UNION_TYPE_DEFINITION = "UnionTypeDefinition", Kind2.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", Kind2.ENUM_VALUE_DEFINITION = "EnumValueDefinition", Kind2.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", Kind2.DIRECTIVE_DEFINITION = "DirectiveDefinition", Kind2.SCHEMA_EXTENSION = "SchemaExtension", Kind2.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", Kind2.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", Kind2.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", Kind2.UNION_TYPE_EXTENSION = "UnionTypeExtension", Kind2.ENUM_TYPE_EXTENSION = "EnumTypeExtension", Kind2.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
})(Kind || (exports2.Kind = Kind = {}));
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/characterClasses.js
var require_characterClasses = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/characterClasses.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.isDigit = isDigit;
exports2.isLetter = isLetter;
exports2.isNameContinue = isNameContinue;
exports2.isNameStart = isNameStart;
exports2.isWhiteSpace = isWhiteSpace;
function isWhiteSpace(code) {
return code === 9 || code === 32;
}
function isDigit(code) {
return code >= 48 && code <= 57;
}
function isLetter(code) {
return code >= 97 && code <= 122 || // A-Z
code >= 65 && code <= 90;
}
function isNameStart(code) {
return isLetter(code) || code === 95;
}
function isNameContinue(code) {
return isLetter(code) || isDigit(code) || code === 95;
}
}
});
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/blockString.js
var require_blockString = __commonJS({
"../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/language/blockString.js"(exports2) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports2, "__esModule", {
value: !0
});
exports2.dedentBlockStringLines = dedentBlockStringLines;
exports2.isPrintableAsBlockString = isPrintableAsBlockString;
exports2.printBlockString = printBlockString;
var _characterClasses = require_characterClasses();
function dedentBlockStringLines(lines) {
var _firstNonEmptyLine2;
let commonIndent = Number.MAX_SAFE_INTEGER, firstNonEmptyLine = null, lastNonEmptyLine = -1;
for (let i = 0; i < lines.length; ++i) {
var _firstNonEmptyLine;
let line = lines[i], indent = leadingWhitespace(line);
indent !== line.length && (firstNonEmptyLine = (_firstNonEmptyLine = firstNonEmptyLine) !== null && _firstNonEmptyLine !== void 0 ? _firstNonEmptyLine : i, lastNonEmptyLine = i, i !== 0 && indent < commonIndent && (commonIndent = indent));
}
return lines.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice(
(_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== void 0 ? _firstNonEmptyLine2 : 0,
lastNonEmptyLine + 1
);
}
function leadingWhitespace(str) {
let i = 0;
for (; i < str.length && (0, _characterClasses.isWhiteSpace)(str.charCodeAt(i)); )
++i;
return i;
}
function isPrintableAsBlockString(value) {
if (value === "")
return !0;
let isEmptyLine = !0, hasIndent = !1, hasCommonIndent = !0, seenNonEmptyLine = !1;
for (let i = 0; i < value.length; ++i)
switch (value.codePointAt(i)) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 11:
case 12:
case 14:
case 15:
return !1;
// Has non-printable characters
case 13:
return !1;
// Has \r or \r\n which will be replaced as \n
case 10:
if (isEmptyLine && !seenNonEmptyLine)
return !1;
seenNonEmptyLine = !0, isEmptyLine = !0, hasIndent = !1;
break;
case 9:
// \t
case 32:
hasIndent || (hasIndent = isEmptyLine);
break;
defa