@shopify/create-app
Version:
A CLI tool to create a new Shopify app.
1,113 lines (1,099 loc) • 467 kB
JavaScript
import {
resolve
} from "./chunk-CDBXAE2F.js";
import {
__commonJS,
__export,
__require,
__toESM,
init_cjs_shims
} from "./chunk-PKR7KJ6P.js";
// ../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js
var require_ansi_styles = __commonJS({
"../../node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.js"(exports, module) {
"use strict";
init_cjs_shims();
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
function assembleStyles() {
let codes = /* @__PURE__ */ new Map(), styles = {
modifier: {
reset: [0, 0],
// 21 isn't widely supported and 22 does the same thing
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
overline: [53, 55],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29]
},
color: {
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
// Bright color
blackBright: [90, 39],
redBright: [91, 39],
greenBright: [92, 39],
yellowBright: [93, 39],
blueBright: [94, 39],
magentaBright: [95, 39],
cyanBright: [96, 39],
whiteBright: [97, 39]
},
bgColor: {
bgBlack: [40, 49],
bgRed: [41, 49],
bgGreen: [42, 49],
bgYellow: [43, 49],
bgBlue: [44, 49],
bgMagenta: [45, 49],
bgCyan: [46, 49],
bgWhite: [47, 49],
// Bright color
bgBlackBright: [100, 49],
bgRedBright: [101, 49],
bgGreenBright: [102, 49],
bgYellowBright: [103, 49],
bgBlueBright: [104, 49],
bgMagentaBright: [105, 49],
bgCyanBright: [106, 49],
bgWhiteBright: [107, 49]
}
};
styles.color.gray = styles.color.blackBright, styles.bgColor.bgGray = styles.bgColor.bgBlackBright, styles.color.grey = styles.color.blackBright, styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
for (let [groupName, group] of Object.entries(styles)) {
for (let [styleName, style] of Object.entries(group))
styles[styleName] = {
open: `\x1B[${style[0]}m`,
close: `\x1B[${style[1]}m`
}, group[styleName] = styles[styleName], codes.set(style[0], style[1]);
Object.defineProperty(styles, groupName, {
value: group,
enumerable: !1
});
}
return Object.defineProperty(styles, "codes", {
value: codes,
enumerable: !1
}), styles.color.close = "\x1B[39m", styles.bgColor.close = "\x1B[49m", styles.color.ansi256 = wrapAnsi256(), styles.color.ansi16m = wrapAnsi16m(), styles.bgColor.ansi256 = wrapAnsi256(10), styles.bgColor.ansi16m = wrapAnsi16m(10), Object.defineProperties(styles, {
rgbToAnsi256: {
value: (red, green, blue) => red === green && green === blue ? red < 8 ? 16 : red > 248 ? 231 : Math.round((red - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5),
enumerable: !1
},
hexToRgb: {
value: (hex) => {
let matches = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex.toString(16));
if (!matches)
return [0, 0, 0];
let { colorString } = matches.groups;
colorString.length === 3 && (colorString = colorString.split("").map((character) => character + character).join(""));
let integer = Number.parseInt(colorString, 16);
return [
integer >> 16 & 255,
integer >> 8 & 255,
integer & 255
];
},
enumerable: !1
},
hexToAnsi256: {
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
enumerable: !1
}
}), styles;
}
Object.defineProperty(module, "exports", {
enumerable: !0,
get: assembleStyles
});
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/collections.js
var require_collections = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/collections.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.printIteratorEntries = printIteratorEntries;
exports.printIteratorValues = printIteratorValues;
exports.printListItems = printListItems;
exports.printObjectProperties = printObjectProperties;
var getKeysOfEnumerableProperties = (object2, compareKeys) => {
let rawKeys = Object.keys(object2), keys2 = compareKeys !== null ? rawKeys.sort(compareKeys) : rawKeys;
return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(object2).forEach((symbol) => {
Object.getOwnPropertyDescriptor(object2, symbol).enumerable && keys2.push(symbol);
}), keys2;
};
function printIteratorEntries(iterator, config2, indentation, depth, refs, printer, separator = ": ") {
let result = "", width = 0, current = iterator.next();
if (!current.done) {
result += config2.spacingOuter;
let indentationNext = indentation + config2.indent;
for (; !current.done; ) {
if (result += indentationNext, width++ === config2.maxWidth) {
result += "\u2026";
break;
}
let name = printer(
current.value[0],
config2,
indentationNext,
depth,
refs
), value = printer(
current.value[1],
config2,
indentationNext,
depth,
refs
);
result += name + separator + value, current = iterator.next(), current.done ? config2.min || (result += ",") : result += `,${config2.spacingInner}`;
}
result += config2.spacingOuter + indentation;
}
return result;
}
function printIteratorValues(iterator, config2, indentation, depth, refs, printer) {
let result = "", width = 0, current = iterator.next();
if (!current.done) {
result += config2.spacingOuter;
let indentationNext = indentation + config2.indent;
for (; !current.done; ) {
if (result += indentationNext, width++ === config2.maxWidth) {
result += "\u2026";
break;
}
result += printer(current.value, config2, indentationNext, depth, refs), current = iterator.next(), current.done ? config2.min || (result += ",") : result += `,${config2.spacingInner}`;
}
result += config2.spacingOuter + indentation;
}
return result;
}
function printListItems(list, config2, indentation, depth, refs, printer) {
let result = "";
if (list.length) {
result += config2.spacingOuter;
let indentationNext = indentation + config2.indent;
for (let i2 = 0; i2 < list.length; i2++) {
if (result += indentationNext, i2 === config2.maxWidth) {
result += "\u2026";
break;
}
i2 in list && (result += printer(list[i2], config2, indentationNext, depth, refs)), i2 < list.length - 1 ? result += `,${config2.spacingInner}` : config2.min || (result += ",");
}
result += config2.spacingOuter + indentation;
}
return result;
}
function printObjectProperties(val, config2, indentation, depth, refs, printer) {
let result = "", keys2 = getKeysOfEnumerableProperties(val, config2.compareKeys);
if (keys2.length) {
result += config2.spacingOuter;
let indentationNext = indentation + config2.indent;
for (let i2 = 0; i2 < keys2.length; i2++) {
let key = keys2[i2], name = printer(key, config2, indentationNext, depth, refs), value = printer(val[key], config2, indentationNext, depth, refs);
result += `${indentationNext + name}: ${value}`, i2 < keys2.length - 1 ? result += `,${config2.spacingInner}` : config2.min || (result += ",");
}
result += config2.spacingOuter + indentation;
}
return result;
}
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
var require_AsymmetricMatcher = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.test = exports.serialize = exports.default = void 0;
var _collections = require_collections(), Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol, asymmetricMatcher = typeof Symbol2 == "function" && Symbol2.for ? Symbol2.for("jest.asymmetricMatcher") : 1267621, SPACE = " ", serialize2 = (val, config2, indentation, depth, refs, printer) => {
let stringedValue = val.toString();
if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining")
return ++depth > config2.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE}[${(0, _collections.printListItems)(
val.sample,
config2,
indentation,
depth,
refs,
printer
)}]`;
if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining")
return ++depth > config2.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE}{${(0, _collections.printObjectProperties)(
val.sample,
config2,
indentation,
depth,
refs,
printer
)}}`;
if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining")
return stringedValue + SPACE + printer(val.sample, config2, indentation, depth, refs);
if (typeof val.toAsymmetricMatcher != "function")
throw new Error(
`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`
);
return val.toAsymmetricMatcher();
};
exports.serialize = serialize2;
var test3 = (val) => val && val.$$typeof === asymmetricMatcher;
exports.test = test3;
var plugin2 = {
serialize: serialize2,
test: test3
}, _default = plugin2;
exports.default = _default;
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMCollection.js
var require_DOMCollection = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.test = exports.serialize = exports.default = void 0;
var _collections = require_collections(), SPACE = " ", OBJECT_NAMES = ["DOMStringMap", "NamedNodeMap"], ARRAY_REGEXP = /^(HTML\w*Collection|NodeList)$/, testName = (name) => OBJECT_NAMES.indexOf(name) !== -1 || ARRAY_REGEXP.test(name), test3 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
exports.test = test3;
var isNamedNodeMap = (collection) => collection.constructor.name === "NamedNodeMap", serialize2 = (collection, config2, indentation, depth, refs, printer) => {
let name = collection.constructor.name;
return ++depth > config2.maxDepth ? `[${name}]` : (config2.min ? "" : name + SPACE) + (OBJECT_NAMES.indexOf(name) !== -1 ? `{${(0, _collections.printObjectProperties)(
isNamedNodeMap(collection) ? Array.from(collection).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : {
...collection
},
config2,
indentation,
depth,
refs,
printer
)}}` : `[${(0, _collections.printListItems)(
Array.from(collection),
config2,
indentation,
depth,
refs,
printer
)}]`);
};
exports.serialize = serialize2;
var plugin2 = {
serialize: serialize2,
test: test3
}, _default = plugin2;
exports.default = _default;
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
var require_escapeHTML = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.default = escapeHTML;
function escapeHTML(str) {
return str.replace(/</g, "<").replace(/>/g, ">");
}
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/markup.js
var require_markup = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0;
var _escapeHTML = _interopRequireDefault(require_escapeHTML());
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
var printProps = (keys2, props, config2, indentation, depth, refs, printer) => {
let indentationNext = indentation + config2.indent, colors = config2.colors;
return keys2.map((key) => {
let value = props[key], printed = printer(value, config2, indentationNext, depth, refs);
return typeof value != "string" && (printed.indexOf(`
`) !== -1 && (printed = config2.spacingOuter + indentationNext + printed + config2.spacingOuter + indentation), printed = `{${printed}}`), `${config2.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
}).join("");
};
exports.printProps = printProps;
var printChildren = (children, config2, indentation, depth, refs, printer) => children.map(
(child) => config2.spacingOuter + indentation + (typeof child == "string" ? printText(child, config2) : printer(child, config2, indentation, depth, refs))
).join("");
exports.printChildren = printChildren;
var printText = (text, config2) => {
let contentColor = config2.colors.content;
return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close;
};
exports.printText = printText;
var printComment = (comment, config2) => {
let commentColor = config2.colors.comment;
return `${commentColor.open}<!--${(0, _escapeHTML.default)(comment)}-->${commentColor.close}`;
};
exports.printComment = printComment;
var printElement = (type2, printedProps, printedChildren, config2, indentation) => {
let tagColor = config2.colors.tag;
return `${tagColor.open}<${type2}${printedProps && tagColor.close + printedProps + config2.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config2.spacingOuter}${indentation}${tagColor.open}</${type2}` : `${printedProps && !config2.min ? "" : " "}/`}>${tagColor.close}`;
};
exports.printElement = printElement;
var printElementAsLeaf = (type2, config2) => {
let tagColor = config2.colors.tag;
return `${tagColor.open}<${type2}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
};
exports.printElementAsLeaf = printElementAsLeaf;
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMElement.js
var require_DOMElement = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.test = exports.serialize = exports.default = void 0;
var _markup = require_markup(), ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, FRAGMENT_NODE = 11, ELEMENT_REGEXP = /^((HTML|SVG)\w*)?Element$/, testHasAttribute = (val) => {
try {
return typeof val.hasAttribute == "function" && val.hasAttribute("is");
} catch {
return !1;
}
}, testNode = (val) => {
let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement = typeof tagName == "string" && tagName.includes("-") || testHasAttribute(val);
return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
}, test3 = (val) => val?.constructor?.name && testNode(val);
exports.test = test3;
function nodeIsText(node) {
return node.nodeType === TEXT_NODE;
}
function nodeIsComment(node) {
return node.nodeType === COMMENT_NODE;
}
function nodeIsFragment(node) {
return node.nodeType === FRAGMENT_NODE;
}
var serialize2 = (node, config2, indentation, depth, refs, printer) => {
if (nodeIsText(node))
return (0, _markup.printText)(node.data, config2);
if (nodeIsComment(node))
return (0, _markup.printComment)(node.data, config2);
let type2 = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
return ++depth > config2.maxDepth ? (0, _markup.printElementAsLeaf)(type2, config2) : (0, _markup.printElement)(
type2,
(0, _markup.printProps)(
nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(),
nodeIsFragment(node) ? {} : Array.from(node.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}),
config2,
indentation + config2.indent,
depth,
refs,
printer
),
(0, _markup.printChildren)(
Array.prototype.slice.call(node.childNodes || node.children),
config2,
indentation + config2.indent,
depth,
refs,
printer
),
config2,
indentation
);
};
exports.serialize = serialize2;
var plugin2 = {
serialize: serialize2,
test: test3
}, _default = plugin2;
exports.default = _default;
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/Immutable.js
var require_Immutable = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.test = exports.serialize = exports.default = void 0;
var _collections = require_collections(), IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL2 = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL2 = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL2 = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@", getImmutableName = (name) => `Immutable.${name}`, printAsLeaf = (name) => `[${name}]`, SPACE = " ", LAZY = "\u2026", printImmutableEntries = (val, config2, indentation, depth, refs, printer, type2) => ++depth > config2.maxDepth ? printAsLeaf(getImmutableName(type2)) : `${getImmutableName(type2) + SPACE}{${(0, _collections.printIteratorEntries)(
val.entries(),
config2,
indentation,
depth,
refs,
printer
)}}`;
function getRecordEntries(val) {
let i2 = 0;
return {
next() {
if (i2 < val._keys.length) {
let key = val._keys[i2++];
return {
done: !1,
value: [key, val.get(key)]
};
}
return {
done: !0,
value: void 0
};
}
};
}
var printImmutableRecord = (val, config2, indentation, depth, refs, printer) => {
let name = getImmutableName(val._name || "Record");
return ++depth > config2.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${(0, _collections.printIteratorEntries)(
getRecordEntries(val),
config2,
indentation,
depth,
refs,
printer
)}}`;
}, printImmutableSeq = (val, config2, indentation, depth, refs, printer) => {
let name = getImmutableName("Seq");
return ++depth > config2.maxDepth ? printAsLeaf(name) : val[IS_KEYED_SENTINEL2] ? `${name + SPACE}{${// from Immutable collection of entries or from ECMAScript object
val._iter || val._object ? (0, _collections.printIteratorEntries)(
val.entries(),
config2,
indentation,
depth,
refs,
printer
) : LAZY}}` : `${name + SPACE}[${val._iter || // from Immutable collection of values
val._array || // from ECMAScript array
val._collection || // from ECMAScript collection in immutable v4
val._iterable ? (0, _collections.printIteratorValues)(
val.values(),
config2,
indentation,
depth,
refs,
printer
) : LAZY}]`;
}, printImmutableValues = (val, config2, indentation, depth, refs, printer, type2) => ++depth > config2.maxDepth ? printAsLeaf(getImmutableName(type2)) : `${getImmutableName(type2) + SPACE}[${(0, _collections.printIteratorValues)(
val.values(),
config2,
indentation,
depth,
refs,
printer
)}]`, serialize2 = (val, config2, indentation, depth, refs, printer) => val[IS_MAP_SENTINEL] ? printImmutableEntries(
val,
config2,
indentation,
depth,
refs,
printer,
val[IS_ORDERED_SENTINEL2] ? "OrderedMap" : "Map"
) : val[IS_LIST_SENTINEL] ? printImmutableValues(
val,
config2,
indentation,
depth,
refs,
printer,
"List"
) : val[IS_SET_SENTINEL2] ? printImmutableValues(
val,
config2,
indentation,
depth,
refs,
printer,
val[IS_ORDERED_SENTINEL2] ? "OrderedSet" : "Set"
) : val[IS_STACK_SENTINEL] ? printImmutableValues(
val,
config2,
indentation,
depth,
refs,
printer,
"Stack"
) : val[IS_SEQ_SENTINEL] ? printImmutableSeq(val, config2, indentation, depth, refs, printer) : printImmutableRecord(val, config2, indentation, depth, refs, printer);
exports.serialize = serialize2;
var test3 = (val) => val && (val[IS_ITERABLE_SENTINEL] === !0 || val[IS_RECORD_SENTINEL] === !0);
exports.test = test3;
var plugin2 = {
serialize: serialize2,
test: test3
}, _default = plugin2;
exports.default = _default;
}
});
// ../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.production.min.js
var require_react_is_production_min = __commonJS({
"../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
"use strict";
init_cjs_shims();
var b2 = Symbol.for("react.element"), c2 = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f2 = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2;
u2 = Symbol.for("react.module.reference");
function v(a) {
if (typeof a == "object" && a !== null) {
var r = a.$$typeof;
switch (r) {
case b2:
switch (a = a.type, a) {
case d:
case f2:
case e:
case m:
case n:
return a;
default:
switch (a = a && a.$$typeof, a) {
case k2:
case h:
case l:
case q:
case p:
case g2:
return a;
default:
return r;
}
}
case c2:
return r;
}
}
}
exports.ContextConsumer = h;
exports.ContextProvider = g2;
exports.Element = b2;
exports.ForwardRef = l;
exports.Fragment = d;
exports.Lazy = q;
exports.Memo = p;
exports.Portal = c2;
exports.Profiler = f2;
exports.StrictMode = e;
exports.Suspense = m;
exports.SuspenseList = n;
exports.isAsyncMode = function() {
return !1;
};
exports.isConcurrentMode = function() {
return !1;
};
exports.isContextConsumer = function(a) {
return v(a) === h;
};
exports.isContextProvider = function(a) {
return v(a) === g2;
};
exports.isElement = function(a) {
return typeof a == "object" && a !== null && a.$$typeof === b2;
};
exports.isForwardRef = function(a) {
return v(a) === l;
};
exports.isFragment = function(a) {
return v(a) === d;
};
exports.isLazy = function(a) {
return v(a) === q;
};
exports.isMemo = function(a) {
return v(a) === p;
};
exports.isPortal = function(a) {
return v(a) === c2;
};
exports.isProfiler = function(a) {
return v(a) === f2;
};
exports.isStrictMode = function(a) {
return v(a) === e;
};
exports.isSuspense = function(a) {
return v(a) === m;
};
exports.isSuspenseList = function(a) {
return v(a) === n;
};
exports.isValidElementType = function(a) {
return typeof a == "string" || typeof a == "function" || a === d || a === f2 || a === e || a === m || a === n || a === t || typeof a == "object" && a !== null && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g2 || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u2 || a.getModuleId !== void 0);
};
exports.typeOf = v;
}
});
// ../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.js
var require_react_is_development = __commonJS({
"../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV !== "production" && function() {
"use strict";
var REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_MODULE_REFERENCE;
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
function isValidElementType(type2) {
return !!(typeof type2 == "string" || typeof type2 == "function" || type2 === REACT_FRAGMENT_TYPE || type2 === REACT_PROFILER_TYPE || enableDebugTracing || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type2 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type2 == "object" && type2 !== null && (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
type2.$$typeof === REACT_MODULE_REFERENCE || type2.getModuleId !== void 0));
}
function typeOf3(object2) {
if (typeof object2 == "object" && object2 !== null) {
var $$typeof = object2.$$typeof;
switch ($$typeof) {
case REACT_ELEMENT_TYPE:
var type2 = object2.type;
switch (type2) {
case REACT_FRAGMENT_TYPE:
case REACT_PROFILER_TYPE:
case REACT_STRICT_MODE_TYPE:
case REACT_SUSPENSE_TYPE:
case REACT_SUSPENSE_LIST_TYPE:
return type2;
default:
var $$typeofType = type2 && type2.$$typeof;
switch ($$typeofType) {
case REACT_SERVER_CONTEXT_TYPE:
case REACT_CONTEXT_TYPE:
case REACT_FORWARD_REF_TYPE:
case REACT_LAZY_TYPE:
case REACT_MEMO_TYPE:
case REACT_PROVIDER_TYPE:
return $$typeofType;
default:
return $$typeof;
}
}
case REACT_PORTAL_TYPE:
return $$typeof;
}
}
}
var ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element2 = REACT_ELEMENT_TYPE, ForwardRef = REACT_FORWARD_REF_TYPE, Fragment = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, SuspenseList = REACT_SUSPENSE_LIST_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = !1, hasWarnedAboutDeprecatedIsConcurrentMode = !1;
function isAsyncMode(object2) {
return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function isConcurrentMode(object2) {
return hasWarnedAboutDeprecatedIsConcurrentMode || (hasWarnedAboutDeprecatedIsConcurrentMode = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}
function isContextConsumer(object2) {
return typeOf3(object2) === REACT_CONTEXT_TYPE;
}
function isContextProvider(object2) {
return typeOf3(object2) === REACT_PROVIDER_TYPE;
}
function isElement(object2) {
return typeof object2 == "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
}
function isForwardRef(object2) {
return typeOf3(object2) === REACT_FORWARD_REF_TYPE;
}
function isFragment(object2) {
return typeOf3(object2) === REACT_FRAGMENT_TYPE;
}
function isLazy(object2) {
return typeOf3(object2) === REACT_LAZY_TYPE;
}
function isMemo(object2) {
return typeOf3(object2) === REACT_MEMO_TYPE;
}
function isPortal(object2) {
return typeOf3(object2) === REACT_PORTAL_TYPE;
}
function isProfiler(object2) {
return typeOf3(object2) === REACT_PROFILER_TYPE;
}
function isStrictMode(object2) {
return typeOf3(object2) === REACT_STRICT_MODE_TYPE;
}
function isSuspense(object2) {
return typeOf3(object2) === REACT_SUSPENSE_TYPE;
}
function isSuspenseList(object2) {
return typeOf3(object2) === REACT_SUSPENSE_LIST_TYPE;
}
exports.ContextConsumer = ContextConsumer, exports.ContextProvider = ContextProvider, exports.Element = Element2, exports.ForwardRef = ForwardRef, exports.Fragment = Fragment, exports.Lazy = Lazy, exports.Memo = Memo, exports.Portal = Portal, exports.Profiler = Profiler, exports.StrictMode = StrictMode, exports.Suspense = Suspense, exports.SuspenseList = SuspenseList, exports.isAsyncMode = isAsyncMode, exports.isConcurrentMode = isConcurrentMode, exports.isContextConsumer = isContextConsumer, exports.isContextProvider = isContextProvider, exports.isElement = isElement, exports.isForwardRef = isForwardRef, exports.isFragment = isFragment, exports.isLazy = isLazy, exports.isMemo = isMemo, exports.isPortal = isPortal, exports.isProfiler = isProfiler, exports.isStrictMode = isStrictMode, exports.isSuspense = isSuspense, exports.isSuspenseList = isSuspenseList, exports.isValidElementType = isValidElementType, exports.typeOf = typeOf3;
}();
}
});
// ../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js
var require_react_is = __commonJS({
"../../node_modules/.pnpm/react-is@18.3.1/node_modules/react-is/index.js"(exports, module) {
"use strict";
init_cjs_shims();
process.env.NODE_ENV === "production" ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactElement.js
var require_ReactElement = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.test = exports.serialize = exports.default = void 0;
var ReactIs = _interopRequireWildcard(require_react_is()), _markup = require_markup();
function _getRequireWildcardCache(nodeInterop) {
if (typeof WeakMap != "function") return null;
var cacheBabelInterop = /* @__PURE__ */ new WeakMap(), cacheNodeInterop = /* @__PURE__ */ new WeakMap();
return (_getRequireWildcardCache = function(nodeInterop2) {
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
})(nodeInterop);
}
function _interopRequireWildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule)
return obj;
if (obj === null || typeof obj != "object" && typeof obj != "function")
return { default: obj };
var cache2 = _getRequireWildcardCache(nodeInterop);
if (cache2 && cache2.has(obj))
return cache2.get(obj);
var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var key in obj)
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key];
}
return newObj.default = obj, cache2 && cache2.set(obj, newObj), newObj;
}
var getChildren = (arg, children = []) => (Array.isArray(arg) ? arg.forEach((item) => {
getChildren(item, children);
}) : arg != null && arg !== !1 && children.push(arg), children), getType3 = (element) => {
let type2 = element.type;
if (typeof type2 == "string")
return type2;
if (typeof type2 == "function")
return type2.displayName || type2.name || "Unknown";
if (ReactIs.isFragment(element))
return "React.Fragment";
if (ReactIs.isSuspense(element))
return "React.Suspense";
if (typeof type2 == "object" && type2 !== null) {
if (ReactIs.isContextProvider(element))
return "Context.Provider";
if (ReactIs.isContextConsumer(element))
return "Context.Consumer";
if (ReactIs.isForwardRef(element)) {
if (type2.displayName)
return type2.displayName;
let functionName3 = type2.render.displayName || type2.render.name || "";
return functionName3 !== "" ? `ForwardRef(${functionName3})` : "ForwardRef";
}
if (ReactIs.isMemo(element)) {
let functionName3 = type2.displayName || type2.type.displayName || type2.type.name || "";
return functionName3 !== "" ? `Memo(${functionName3})` : "Memo";
}
}
return "UNDEFINED";
}, getPropKeys = (element) => {
let { props } = element;
return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
}, serialize2 = (element, config2, indentation, depth, refs, printer) => ++depth > config2.maxDepth ? (0, _markup.printElementAsLeaf)(getType3(element), config2) : (0, _markup.printElement)(
getType3(element),
(0, _markup.printProps)(
getPropKeys(element),
element.props,
config2,
indentation + config2.indent,
depth,
refs,
printer
),
(0, _markup.printChildren)(
getChildren(element.props.children),
config2,
indentation + config2.indent,
depth,
refs,
printer
),
config2,
indentation
);
exports.serialize = serialize2;
var test3 = (val) => val != null && ReactIs.isElement(val);
exports.test = test3;
var plugin2 = {
serialize: serialize2,
test: test3
}, _default = plugin2;
exports.default = _default;
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactTestComponent.js
var require_ReactTestComponent = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.test = exports.serialize = exports.default = void 0;
var _markup = require_markup(), Symbol2 = globalThis["jest-symbol-do-not-touch"] || globalThis.Symbol, testSymbol = typeof Symbol2 == "function" && Symbol2.for ? Symbol2.for("react.test.json") : 245830487, getPropKeys = (object2) => {
let { props } = object2;
return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
}, serialize2 = (object2, config2, indentation, depth, refs, printer) => ++depth > config2.maxDepth ? (0, _markup.printElementAsLeaf)(object2.type, config2) : (0, _markup.printElement)(
object2.type,
object2.props ? (0, _markup.printProps)(
getPropKeys(object2),
object2.props,
config2,
indentation + config2.indent,
depth,
refs,
printer
) : "",
object2.children ? (0, _markup.printChildren)(
object2.children,
config2,
indentation + config2.indent,
depth,
refs,
printer
) : "",
config2,
indentation
);
exports.serialize = serialize2;
var test3 = (val) => val && val.$$typeof === testSymbol;
exports.test = test3;
var plugin2 = {
serialize: serialize2,
test: test3
}, _default = plugin2;
exports.default = _default;
}
});
// ../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.js
var require_build = __commonJS({
"../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", {
value: !0
});
exports.default = exports.DEFAULT_OPTIONS = void 0;
exports.format = format4;
exports.plugins = void 0;
var _ansiStyles = _interopRequireDefault(require_ansi_styles()), _collections = require_collections(), _AsymmetricMatcher = _interopRequireDefault(
require_AsymmetricMatcher()
), _DOMCollection = _interopRequireDefault(require_DOMCollection()), _DOMElement = _interopRequireDefault(require_DOMElement()), _Immutable = _interopRequireDefault(require_Immutable()), _ReactElement = _interopRequireDefault(require_ReactElement()), _ReactTestComponent = _interopRequireDefault(
require_ReactTestComponent()
);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
var toString = Object.prototype.toString, toISOString = Date.prototype.toISOString, errorToString = Error.prototype.toString, regExpToString = RegExp.prototype.toString, getConstructorName = (val) => typeof val.constructor == "function" && val.constructor.name || "Object", isWindow = (val) => typeof window < "u" && val === window, SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP = /\n/gi, PrettyFormatPluginError = class extends Error {
constructor(message, stack) {
super(message), this.stack = stack, this.name = this.constructor.name;
}
};
function isToStringedArrayType(toStringed) {
return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
}
function printNumber(val) {
return Object.is(val, -0) ? "-0" : String(val);
}
function printBigInt(val) {
return `${val}n`;
}
function printFunction(val, printFunctionName2) {
return printFunctionName2 ? `[Function ${val.name || "anonymous"}]` : "[Function]";
}
function printSymbol(val) {
return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
}
function printError(val) {
return `[${errorToString.call(val)}]`;
}
function printBasicValue(val, printFunctionName2, escapeRegex2, escapeString) {
if (val === !0 || val === !1)
return `${val}`;
if (val === void 0)
return "undefined";
if (val === null)
return "null";
let typeOf3 = typeof val;
if (typeOf3 === "number")
return printNumber(val);
if (typeOf3 === "bigint")
return printBigInt(val);
if (typeOf3 === "string")
return escapeString ? `"${val.replace(/"|\\/g, "\\$&")}"` : `"${val}"`;
if (typeOf3 === "function")
return printFunction(val, printFunctionName2);
if (typeOf3 === "symbol")
return printSymbol(val);
let toStringed = toString.call(val);
return toStringed === "[object WeakMap]" ? "WeakMap {}" : toStringed === "[object WeakSet]" ? "WeakSet {}" : toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]" ? printFunction(val, printFunctionName2) : toStringed === "[object Symbol]" ? printSymbol(val) : toStringed === "[object Date]" ? isNaN(+val) ? "Date { NaN }" : toISOString.call(val) : toStringed === "[object Error]" ? printError(val) : toStringed === "[object RegExp]" ? escapeRegex2 ? regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g, "\\$&") : regExpToString.call(val) : val instanceof Error ? printError(val) : null;
}
function printComplexValue(val, config2, indentation, depth, refs, hasCalledToJSON) {
if (refs.indexOf(val) !== -1)
return "[Circular]";
refs = refs.slice(), refs.push(val);
let hitMaxDepth = ++depth > config2.maxDepth, min = config2.min;
if (config2.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON)
return printer(val.toJSON(), config2, indentation, depth, refs, !0);
let toStringed = toString.call(val);
return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${(0, _collections.printListItems)(
val,
config2,
indentation,
depth,
refs,
printer
)}]` : isToStringedArrayType(toStringed) ? hitMaxDepth ? `[${val.constructor.name}]` : `${min || !config2.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${(0, _collections.printListItems)(
val,
config2,
indentation,
depth,
refs,
printer
)}]` : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : `Map {${(0, _collections.printIteratorEntries)(
val.entries(),
config2,
indentation,
depth,
refs,
printer,
" => "
)}}` : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : `Set {${(0, _collections.printIteratorValues)(
val.values(),
config2,
indentation,
depth,
refs,
printer
)}}` : hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min || !config2.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${(0, _collections.printObjectProperties)(
val,
config2,
indentation,
depth,
refs,
printer
)}}`;
}
function isNewPlugin(plugin2) {
return plugin2.serialize != null;
}
function printPlugin(plugin2, val, config2, indentation, depth, refs) {
let printed;
try {
printed = isNewPlugin(plugin2) ? plugin2.serialize(val, config2, indentation, depth, refs, printer) : plugin2.print(
val,
(valChild) => printer(valChild, config2, indentation, depth, refs),
(str) => {
let indentationNext = indentation + config2.indent;
return indentationNext + str.replace(NEWLINE_REGEXP, `
${indentationNext}`);
},
{
edgeSpacing: config2.spacingOuter,
min: config2.min,
spacing: config2.spacingInner
},
config2.colors
);
} catch (error) {
throw new PrettyFormatPluginError(error.message, error.stack);
}
if (typeof printed != "string")
throw new Error(
`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`
);
return printed;
}
function findPlugin(plugins5, val) {
for (let p = 0; p < plugins5.length; p++)
try {
if (plugins5[p].test(val))
return plugins5[p];
} catch (error) {
throw new PrettyFormatPluginError(error.message, error.stack);
}
return null;
}
function printer(val, config2, indentation, depth, refs, hasCalledToJSON) {
let plugin2 = findPlugin(config2.plugins, val);
if (plugin2 !== null)
return printPlugin(plugin2, val, config2, indentation, depth, refs);
let basicResult = printBasicValue(
val,
config2.printFunctionName,
config2.escapeRegex,
config2.escapeString
);
return basicResult !== null ? basicResult : printComplexValue(
val,
config2,
indentation,
depth,
refs,
hasCalledToJSON
);
}
var DEFAULT_THEME = {
comment: "gray",
content: "reset",
prop: "yellow",
tag: "cyan",
value: "green"
}, DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME), toOptionsSubtype = (options) => options, DEFAULT_OPTIONS = toOptionsSubtype({
callToJSON: !0,
compareKeys: void 0,
escapeRegex: !1,
escapeString: !0,
highlight: !1,
indent: 2,
maxDepth: 1 / 0,
maxWidth: 1 / 0,
min: !1,
plugins: [],
printBasicPrototype: !0,
printFunctionName: !0,
theme: DEFAULT_THEME
});
exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS;
function validateOptions(options) {
if (Object.keys(options).forEach((key) => {
if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key))
throw new Error(`pretty-format: Unknown option "${key}".`);
}), options.min && options.indent !== void 0 && options.indent !== 0)
throw new Error(
'pretty-format: Options "min" and "indent" cannot be used together.'
);
if (options.theme !== void 0) {
if (options.theme === null)
throw new Error('pretty-format: Option "theme" must not be null.');
if (typeof options.theme != "object")
throw new Error(
`pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".`
);
}
}
var getColorsHighlight = (options) => DEFAULT_THEME_KEYS.reduce((colors, key) => {
let value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME[key], color = value && _ansiStyles.default[value];
if (color && typeof color.close == "string" && typeof color.open == "string")
colors[key] = color;
else
throw new Error(
`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`
);
return colors;
}, /* @__PURE__ */ Object.cre