@shopify/cli
Version:
A CLI tool to build for the Shopify platform
870 lines (857 loc) • 540 kB
JavaScript
import {
__commonJS,
__require,
__toESM,
init_cjs_shims
} from "./chunk-PKR7KJ6P.js";
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js
var require_branding = __commonJS({
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/branding.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", { value: !0 });
}
});
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js
var require_messages = __commonJS({
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/messages.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", { value: !0 });
var inverted = Symbol("inverted"), expectNull = Symbol("expectNull"), expectUndefined = Symbol("expectUndefined"), expectNumber = Symbol("expectNumber"), expectString = Symbol("expectString"), expectBoolean = Symbol("expectBoolean"), expectVoid = Symbol("expectVoid"), expectFunction = Symbol("expectFunction"), expectObject = Symbol("expectObject"), expectArray = Symbol("expectArray"), expectSymbol = Symbol("expectSymbol"), expectAny = Symbol("expectAny"), expectUnknown = Symbol("expectUnknown"), expectNever = Symbol("expectNever"), expectNullable = Symbol("expectNullable"), expectBigInt = Symbol("expectBigInt");
}
});
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js
var require_overloads = __commonJS({
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/overloads.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", { value: !0 });
}
});
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js
var require_utils = __commonJS({
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/utils.js"(exports) {
"use strict";
init_cjs_shims();
Object.defineProperty(exports, "__esModule", { value: !0 });
var secret = Symbol("secret"), mismatch = Symbol("mismatch"), avalue = Symbol("avalue");
}
});
// ../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js
var require_dist = __commonJS({
"../../node_modules/.pnpm/expect-type@1.2.1/node_modules/expect-type/dist/index.js"(exports) {
"use strict";
init_cjs_shims();
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m2, k, k2) {
k2 === void 0 && (k2 = k);
var desc = Object.getOwnPropertyDescriptor(m2, k);
(!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
return m2[k];
} }), Object.defineProperty(o, k2, desc);
} : function(o, m2, k, k2) {
k2 === void 0 && (k2 = k), o[k2] = m2[k];
}), __exportStar = exports && exports.__exportStar || function(m2, exports2) {
for (var p3 in m2) p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3) && __createBinding(exports2, m2, p3);
};
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.expectTypeOf = void 0;
__exportStar(require_branding(), exports);
__exportStar(require_messages(), exports);
__exportStar(require_overloads(), exports);
__exportStar(require_utils(), exports);
var fn2 = () => !0, expectTypeOf2 = (_actual) => {
let nonFunctionProperties = [
"parameters",
"returns",
"resolves",
"not",
"items",
"constructorParameters",
"thisParameter",
"instance",
"guards",
"asserts",
"branded"
], obj = {
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
toBeAny: fn2,
toBeUnknown: fn2,
toBeNever: fn2,
toBeFunction: fn2,
toBeObject: fn2,
toBeArray: fn2,
toBeString: fn2,
toBeNumber: fn2,
toBeBoolean: fn2,
toBeVoid: fn2,
toBeSymbol: fn2,
toBeNull: fn2,
toBeUndefined: fn2,
toBeNullable: fn2,
toBeBigInt: fn2,
toMatchTypeOf: fn2,
toEqualTypeOf: fn2,
toBeConstructibleWith: fn2,
toMatchObjectType: fn2,
toExtend: fn2,
map: exports.expectTypeOf,
toBeCallableWith: exports.expectTypeOf,
extract: exports.expectTypeOf,
exclude: exports.expectTypeOf,
pick: exports.expectTypeOf,
omit: exports.expectTypeOf,
toHaveProperty: exports.expectTypeOf,
parameter: exports.expectTypeOf
};
return nonFunctionProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) })), obj;
};
exports.expectTypeOf = expectTypeOf2;
}
});
// ../../node_modules/.pnpm/@vitest+runner@3.2.1/node_modules/@vitest/runner/dist/chunk-hooks.js
init_cjs_shims();
// ../../node_modules/.pnpm/@vitest+utils@3.2.1/node_modules/@vitest/utils/dist/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/@vitest+utils@3.2.1/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
init_cjs_shims();
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.1/node_modules/@vitest/pretty-format/dist/index.js
init_cjs_shims();
// ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js
init_cjs_shims();
// ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
init_cjs_shims();
var f = {
reset: [0, 0],
bold: [1, 22, "\x1B[22m\x1B[1m"],
dim: [2, 22, "\x1B[22m\x1B[2m"],
italic: [3, 23],
underline: [4, 24],
inverse: [7, 27],
hidden: [8, 28],
strikethrough: [9, 29],
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
gray: [90, 39],
bgBlack: [40, 49],
bgRed: [41, 49],
bgGreen: [42, 49],
bgYellow: [43, 49],
bgBlue: [44, 49],
bgMagenta: [45, 49],
bgCyan: [46, 49],
bgWhite: [47, 49],
blackBright: [90, 39],
redBright: [91, 39],
greenBright: [92, 39],
yellowBright: [93, 39],
blueBright: [94, 39],
magentaBright: [95, 39],
cyanBright: [96, 39],
whiteBright: [97, 39],
bgBlackBright: [100, 49],
bgRedBright: [101, 49],
bgGreenBright: [102, 49],
bgYellowBright: [103, 49],
bgBlueBright: [104, 49],
bgMagentaBright: [105, 49],
bgCyanBright: [106, 49],
bgWhiteBright: [107, 49]
}, h = Object.entries(f);
function a(n) {
return String(n);
}
a.open = "";
a.close = "";
function C(n = !1) {
let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g = e?.argv || [];
return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || e?.platform === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window < "u" && !!window.chrome;
}
function p(n = !1) {
let e = C(n), i = (r2, t, c, o) => {
let l = "", s2 = 0;
do
l += r2.substring(s2, o) + c, s2 = o + t.length, o = r2.indexOf(t, s2);
while (~o);
return l + r2.substring(s2);
}, g = (r2, t, c = r2) => {
let o = (l) => {
let s2 = String(l), b = s2.indexOf(t, r2.length);
return ~b ? r2 + i(s2, t, c, b) + t : r2 + s2 + t;
};
return o.open = r2, o.close = t, o;
}, u2 = {
isColorSupported: e
}, d = (r2) => `\x1B[${r2}m`;
for (let [r2, t] of h)
u2[r2] = e ? g(
d(t[0]),
d(t[1]),
t[2]
) : a;
return u2;
}
// ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js
import { isatty as s } from "tty";
var r = process.env.FORCE_TTY !== void 0 || s(1);
var u = p(r);
// ../../node_modules/.pnpm/@vitest+pretty-format@3.2.1/node_modules/@vitest/pretty-format/dist/index.js
function _mergeNamespaces(n, m2) {
return m2.forEach(function(e) {
e && typeof e != "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
if (k !== "default" && !(k in n)) {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: !0,
get: function() {
return e[k];
}
});
}
});
}), Object.freeze(n);
}
function getKeysOfEnumerableProperties(object2, compareKeys) {
let rawKeys = Object.keys(object2), keys2 = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
if (Object.getOwnPropertySymbols)
for (let symbol of Object.getOwnPropertySymbols(object2))
Object.getOwnPropertyDescriptor(object2, symbol).enumerable && keys2.push(symbol);
return keys2;
}
function printIteratorEntries(iterator, config2, indentation, depth, refs, printer2, 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 = printer2(current.value[0], config2, indentationNext, depth, refs), value = printer2(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, printer2) {
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 += printer2(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, printer2) {
let result = "";
list = list instanceof ArrayBuffer ? new DataView(list) : list;
let isDataView = (l) => l instanceof DataView, length = isDataView(list) ? list.byteLength : list.length;
if (length > 0) {
result += config2.spacingOuter;
let indentationNext = indentation + config2.indent;
for (let i = 0; i < length; i++) {
if (result += indentationNext, i === config2.maxWidth) {
result += "\u2026";
break;
}
(isDataView(list) || i in list) && (result += printer2(isDataView(list) ? list.getInt8(i) : list[i], config2, indentationNext, depth, refs)), i < length - 1 ? result += `,${config2.spacingInner}` : config2.min || (result += ",");
}
result += config2.spacingOuter + indentation;
}
return result;
}
function printObjectProperties(val, config2, indentation, depth, refs, printer2) {
let result = "", keys2 = getKeysOfEnumerableProperties(val, config2.compareKeys);
if (keys2.length > 0) {
result += config2.spacingOuter;
let indentationNext = indentation + config2.indent;
for (let i = 0; i < keys2.length; i++) {
let key = keys2[i], name = printer2(key, config2, indentationNext, depth, refs), value = printer2(val[key], config2, indentationNext, depth, refs);
result += `${indentationNext + name}: ${value}`, i < keys2.length - 1 ? result += `,${config2.spacingInner}` : config2.min || (result += ",");
}
result += config2.spacingOuter + indentation;
}
return result;
}
var asymmetricMatcher = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, SPACE$2 = " ", serialize$5 = (val, config2, indentation, depth, refs, printer2) => {
let stringedValue = val.toString();
if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining")
return ++depth > config2.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}[${printListItems(val.sample, config2, indentation, depth, refs, printer2)}]`;
if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining")
return ++depth > config2.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config2, indentation, depth, refs, printer2)}}`;
if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining")
return stringedValue + SPACE$2 + printer2(val.sample, config2, indentation, depth, refs);
if (typeof val.toAsymmetricMatcher != "function")
throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
return val.toAsymmetricMatcher();
}, test$5 = (val) => val && val.$$typeof === asymmetricMatcher, plugin$5 = {
serialize: serialize$5,
test: test$5
}, SPACE$1 = " ", OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
function testName(name) {
return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
}
var test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
function isNamedNodeMap(collection) {
return collection.constructor.name === "NamedNodeMap";
}
var serialize$4 = (collection, config2, indentation, depth, refs, printer2) => {
let name = collection.constructor.name;
return ++depth > config2.maxDepth ? `[${name}]` : (config2.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [...collection].reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection }, config2, indentation, depth, refs, printer2)}}` : `[${printListItems([...collection], config2, indentation, depth, refs, printer2)}]`);
}, plugin$4 = {
serialize: serialize$4,
test: test$4
};
function escapeHTML(str) {
return str.replaceAll("<", "<").replaceAll(">", ">");
}
function printProps(keys2, props, config2, indentation, depth, refs, printer2) {
let indentationNext = indentation + config2.indent, colors = config2.colors;
return keys2.map((key) => {
let value = props[key], printed = printer2(value, config2, indentationNext, depth, refs);
return typeof value != "string" && (printed.includes(`
`) && (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("");
}
function printChildren(children, config2, indentation, depth, refs, printer2) {
return children.map((child) => config2.spacingOuter + indentation + (typeof child == "string" ? printText(child, config2) : printer2(child, config2, indentation, depth, refs))).join("");
}
function printText(text, config2) {
let contentColor = config2.colors.content;
return contentColor.open + escapeHTML(text) + contentColor.close;
}
function printComment(comment, config2) {
let commentColor = config2.colors.comment;
return `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`;
}
function printElement(type3, printedProps, printedChildren, config2, indentation) {
let tagColor = config2.colors.tag;
return `${tagColor.open}<${type3}${printedProps && tagColor.close + printedProps + config2.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config2.spacingOuter}${indentation}${tagColor.open}</${type3}` : `${printedProps && !config2.min ? "" : " "}/`}>${tagColor.close}`;
}
function printElementAsLeaf(type3, config2) {
let tagColor = config2.colors.tag;
return `${tagColor.open}<${type3}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`;
}
var ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, FRAGMENT_NODE = 11, ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/;
function testHasAttribute(val) {
try {
return typeof val.hasAttribute == "function" && val.hasAttribute("is");
} catch {
return !1;
}
}
function 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";
}
var test$3 = (val) => {
var _val$constructor;
return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
};
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 serialize$3 = (node, config2, indentation, depth, refs, printer2) => {
if (nodeIsText(node))
return printText(node.data, config2);
if (nodeIsComment(node))
return printComment(node.data, config2);
let type3 = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
return ++depth > config2.maxDepth ? printElementAsLeaf(type3, config2) : printElement(type3, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(), nodeIsFragment(node) ? {} : [...node.attributes].reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), config2, indentation + config2.indent, depth, refs, printer2), printChildren(Array.prototype.slice.call(node.childNodes || node.children), config2, indentation + config2.indent, depth, refs, printer2), config2, indentation);
}, plugin$3 = {
serialize: serialize$3,
test: test$3
}, IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@", IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@", IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@", IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@", IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@", IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@", IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@", IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@", IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@", getImmutableName = (name) => `Immutable.${name}`, printAsLeaf = (name) => `[${name}]`, SPACE = " ", LAZY = "\u2026";
function printImmutableEntries(val, config2, indentation, depth, refs, printer2, type3) {
return ++depth > config2.maxDepth ? printAsLeaf(getImmutableName(type3)) : `${getImmutableName(type3) + SPACE}{${printIteratorEntries(val.entries(), config2, indentation, depth, refs, printer2)}}`;
}
function getRecordEntries(val) {
let i = 0;
return { next() {
if (i < val._keys.length) {
let key = val._keys[i++];
return {
done: !1,
value: [key, val.get(key)]
};
}
return {
done: !0,
value: void 0
};
} };
}
function printImmutableRecord(val, config2, indentation, depth, refs, printer2) {
let name = getImmutableName(val._name || "Record");
return ++depth > config2.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config2, indentation, depth, refs, printer2)}}`;
}
function printImmutableSeq(val, config2, indentation, depth, refs, printer2) {
let name = getImmutableName("Seq");
return ++depth > config2.maxDepth ? printAsLeaf(name) : val[IS_KEYED_SENTINEL] ? `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config2, indentation, depth, refs, printer2) : LAZY}}` : `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config2, indentation, depth, refs, printer2) : LAZY}]`;
}
function printImmutableValues(val, config2, indentation, depth, refs, printer2, type3) {
return ++depth > config2.maxDepth ? printAsLeaf(getImmutableName(type3)) : `${getImmutableName(type3) + SPACE}[${printIteratorValues(val.values(), config2, indentation, depth, refs, printer2)}]`;
}
var serialize$2 = (val, config2, indentation, depth, refs, printer2) => val[IS_MAP_SENTINEL] ? printImmutableEntries(val, config2, indentation, depth, refs, printer2, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map") : val[IS_LIST_SENTINEL] ? printImmutableValues(val, config2, indentation, depth, refs, printer2, "List") : val[IS_SET_SENTINEL] ? printImmutableValues(val, config2, indentation, depth, refs, printer2, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set") : val[IS_STACK_SENTINEL] ? printImmutableValues(val, config2, indentation, depth, refs, printer2, "Stack") : val[IS_SEQ_SENTINEL] ? printImmutableSeq(val, config2, indentation, depth, refs, printer2) : printImmutableRecord(val, config2, indentation, depth, refs, printer2), test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === !0 || val[IS_RECORD_SENTINEL] === !0), plugin$2 = {
serialize: serialize$2,
test: test$2
};
function getDefaultExportFromCjs(x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
}
var reactIs$1 = { exports: {} }, reactIs_production = {};
var hasRequiredReactIs_production;
function requireReactIs_production() {
if (hasRequiredReactIs_production) return reactIs_production;
hasRequiredReactIs_production = 1;
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.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_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.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_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
function typeOf2(object2) {
if (typeof object2 == "object" && object2 !== null) {
var $$typeof = object2.$$typeof;
switch ($$typeof) {
case REACT_ELEMENT_TYPE:
switch (object2 = object2.type, object2) {
case REACT_FRAGMENT_TYPE:
case REACT_PROFILER_TYPE:
case REACT_STRICT_MODE_TYPE:
case REACT_SUSPENSE_TYPE:
case REACT_SUSPENSE_LIST_TYPE:
case REACT_VIEW_TRANSITION_TYPE:
return object2;
default:
switch (object2 = object2 && object2.$$typeof, object2) {
case REACT_CONTEXT_TYPE:
case REACT_FORWARD_REF_TYPE:
case REACT_LAZY_TYPE:
case REACT_MEMO_TYPE:
return object2;
case REACT_CONSUMER_TYPE:
return object2;
default:
return $$typeof;
}
}
case REACT_PORTAL_TYPE:
return $$typeof;
}
}
}
return reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE, reactIs_production.ContextProvider = REACT_CONTEXT_TYPE, reactIs_production.Element = REACT_ELEMENT_TYPE, reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE, reactIs_production.Fragment = REACT_FRAGMENT_TYPE, reactIs_production.Lazy = REACT_LAZY_TYPE, reactIs_production.Memo = REACT_MEMO_TYPE, reactIs_production.Portal = REACT_PORTAL_TYPE, reactIs_production.Profiler = REACT_PROFILER_TYPE, reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE, reactIs_production.Suspense = REACT_SUSPENSE_TYPE, reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE, reactIs_production.isContextConsumer = function(object2) {
return typeOf2(object2) === REACT_CONSUMER_TYPE;
}, reactIs_production.isContextProvider = function(object2) {
return typeOf2(object2) === REACT_CONTEXT_TYPE;
}, reactIs_production.isElement = function(object2) {
return typeof object2 == "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
}, reactIs_production.isForwardRef = function(object2) {
return typeOf2(object2) === REACT_FORWARD_REF_TYPE;
}, reactIs_production.isFragment = function(object2) {
return typeOf2(object2) === REACT_FRAGMENT_TYPE;
}, reactIs_production.isLazy = function(object2) {
return typeOf2(object2) === REACT_LAZY_TYPE;
}, reactIs_production.isMemo = function(object2) {
return typeOf2(object2) === REACT_MEMO_TYPE;
}, reactIs_production.isPortal = function(object2) {
return typeOf2(object2) === REACT_PORTAL_TYPE;
}, reactIs_production.isProfiler = function(object2) {
return typeOf2(object2) === REACT_PROFILER_TYPE;
}, reactIs_production.isStrictMode = function(object2) {
return typeOf2(object2) === REACT_STRICT_MODE_TYPE;
}, reactIs_production.isSuspense = function(object2) {
return typeOf2(object2) === REACT_SUSPENSE_TYPE;
}, reactIs_production.isSuspenseList = function(object2) {
return typeOf2(object2) === REACT_SUSPENSE_LIST_TYPE;
}, reactIs_production.isValidElementType = function(type3) {
return typeof type3 == "string" || typeof type3 == "function" || type3 === REACT_FRAGMENT_TYPE || type3 === REACT_PROFILER_TYPE || type3 === REACT_STRICT_MODE_TYPE || type3 === REACT_SUSPENSE_TYPE || type3 === REACT_SUSPENSE_LIST_TYPE || typeof type3 == "object" && type3 !== null && (type3.$$typeof === REACT_LAZY_TYPE || type3.$$typeof === REACT_MEMO_TYPE || type3.$$typeof === REACT_CONTEXT_TYPE || type3.$$typeof === REACT_CONSUMER_TYPE || type3.$$typeof === REACT_FORWARD_REF_TYPE || type3.$$typeof === REACT_CLIENT_REFERENCE || type3.getModuleId !== void 0);
}, reactIs_production.typeOf = typeOf2, reactIs_production;
}
var reactIs_development$1 = {};
var hasRequiredReactIs_development$1;
function requireReactIs_development$1() {
return hasRequiredReactIs_development$1 || (hasRequiredReactIs_development$1 = 1, process.env.NODE_ENV !== "production" && function() {
function typeOf2(object2) {
if (typeof object2 == "object" && object2 !== null) {
var $$typeof = object2.$$typeof;
switch ($$typeof) {
case REACT_ELEMENT_TYPE:
switch (object2 = object2.type, object2) {
case REACT_FRAGMENT_TYPE:
case REACT_PROFILER_TYPE:
case REACT_STRICT_MODE_TYPE:
case REACT_SUSPENSE_TYPE:
case REACT_SUSPENSE_LIST_TYPE:
case REACT_VIEW_TRANSITION_TYPE:
return object2;
default:
switch (object2 = object2 && object2.$$typeof, object2) {
case REACT_CONTEXT_TYPE:
case REACT_FORWARD_REF_TYPE:
case REACT_LAZY_TYPE:
case REACT_MEMO_TYPE:
return object2;
case REACT_CONSUMER_TYPE:
return object2;
default:
return $$typeof;
}
}
case REACT_PORTAL_TYPE:
return $$typeof;
}
}
}
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.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_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.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_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE, reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE, reactIs_development$1.Element = REACT_ELEMENT_TYPE, reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE, reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE, reactIs_development$1.Lazy = REACT_LAZY_TYPE, reactIs_development$1.Memo = REACT_MEMO_TYPE, reactIs_development$1.Portal = REACT_PORTAL_TYPE, reactIs_development$1.Profiler = REACT_PROFILER_TYPE, reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE, reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE, reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE, reactIs_development$1.isContextConsumer = function(object2) {
return typeOf2(object2) === REACT_CONSUMER_TYPE;
}, reactIs_development$1.isContextProvider = function(object2) {
return typeOf2(object2) === REACT_CONTEXT_TYPE;
}, reactIs_development$1.isElement = function(object2) {
return typeof object2 == "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
}, reactIs_development$1.isForwardRef = function(object2) {
return typeOf2(object2) === REACT_FORWARD_REF_TYPE;
}, reactIs_development$1.isFragment = function(object2) {
return typeOf2(object2) === REACT_FRAGMENT_TYPE;
}, reactIs_development$1.isLazy = function(object2) {
return typeOf2(object2) === REACT_LAZY_TYPE;
}, reactIs_development$1.isMemo = function(object2) {
return typeOf2(object2) === REACT_MEMO_TYPE;
}, reactIs_development$1.isPortal = function(object2) {
return typeOf2(object2) === REACT_PORTAL_TYPE;
}, reactIs_development$1.isProfiler = function(object2) {
return typeOf2(object2) === REACT_PROFILER_TYPE;
}, reactIs_development$1.isStrictMode = function(object2) {
return typeOf2(object2) === REACT_STRICT_MODE_TYPE;
}, reactIs_development$1.isSuspense = function(object2) {
return typeOf2(object2) === REACT_SUSPENSE_TYPE;
}, reactIs_development$1.isSuspenseList = function(object2) {
return typeOf2(object2) === REACT_SUSPENSE_LIST_TYPE;
}, reactIs_development$1.isValidElementType = function(type3) {
return typeof type3 == "string" || typeof type3 == "function" || type3 === REACT_FRAGMENT_TYPE || type3 === REACT_PROFILER_TYPE || type3 === REACT_STRICT_MODE_TYPE || type3 === REACT_SUSPENSE_TYPE || type3 === REACT_SUSPENSE_LIST_TYPE || typeof type3 == "object" && type3 !== null && (type3.$$typeof === REACT_LAZY_TYPE || type3.$$typeof === REACT_MEMO_TYPE || type3.$$typeof === REACT_CONTEXT_TYPE || type3.$$typeof === REACT_CONSUMER_TYPE || type3.$$typeof === REACT_FORWARD_REF_TYPE || type3.$$typeof === REACT_CLIENT_REFERENCE || type3.getModuleId !== void 0);
}, reactIs_development$1.typeOf = typeOf2;
}()), reactIs_development$1;
}
var hasRequiredReactIs$1;
function requireReactIs$1() {
return hasRequiredReactIs$1 || (hasRequiredReactIs$1 = 1, process.env.NODE_ENV === "production" ? reactIs$1.exports = requireReactIs_production() : reactIs$1.exports = requireReactIs_development$1()), reactIs$1.exports;
}
var reactIsExports$1 = requireReactIs$1(), index$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports$1), ReactIs19 = /* @__PURE__ */ _mergeNamespaces({
__proto__: null,
default: index$1
}, [reactIsExports$1]), reactIs = { exports: {} }, reactIs_production_min = {};
var hasRequiredReactIs_production_min;
function requireReactIs_production_min() {
if (hasRequiredReactIs_production_min) return reactIs_production_min;
hasRequiredReactIs_production_min = 1;
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f3 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2;
u2 = Symbol.for("react.module.reference");
function v(a3) {
if (typeof a3 == "object" && a3 !== null) {
var r2 = a3.$$typeof;
switch (r2) {
case b:
switch (a3 = a3.type, a3) {
case d:
case f3:
case e:
case m2:
case n:
return a3;
default:
switch (a3 = a3 && a3.$$typeof, a3) {
case k:
case h3:
case l:
case q:
case p3:
case g:
return a3;
default:
return r2;
}
}
case c:
return r2;
}
}
}
return reactIs_production_min.ContextConsumer = h3, reactIs_production_min.ContextProvider = g, reactIs_production_min.Element = b, reactIs_production_min.ForwardRef = l, reactIs_production_min.Fragment = d, reactIs_production_min.Lazy = q, reactIs_production_min.Memo = p3, reactIs_production_min.Portal = c, reactIs_production_min.Profiler = f3, reactIs_production_min.StrictMode = e, reactIs_production_min.Suspense = m2, reactIs_production_min.SuspenseList = n, reactIs_production_min.isAsyncMode = function() {
return !1;
}, reactIs_production_min.isConcurrentMode = function() {
return !1;
}, reactIs_production_min.isContextConsumer = function(a3) {
return v(a3) === h3;
}, reactIs_production_min.isContextProvider = function(a3) {
return v(a3) === g;
}, reactIs_production_min.isElement = function(a3) {
return typeof a3 == "object" && a3 !== null && a3.$$typeof === b;
}, reactIs_production_min.isForwardRef = function(a3) {
return v(a3) === l;
}, reactIs_production_min.isFragment = function(a3) {
return v(a3) === d;
}, reactIs_production_min.isLazy = function(a3) {
return v(a3) === q;
}, reactIs_production_min.isMemo = function(a3) {
return v(a3) === p3;
}, reactIs_production_min.isPortal = function(a3) {
return v(a3) === c;
}, reactIs_production_min.isProfiler = function(a3) {
return v(a3) === f3;
}, reactIs_production_min.isStrictMode = function(a3) {
return v(a3) === e;
}, reactIs_production_min.isSuspense = function(a3) {
return v(a3) === m2;
}, reactIs_production_min.isSuspenseList = function(a3) {
return v(a3) === n;
}, reactIs_production_min.isValidElementType = function(a3) {
return typeof a3 == "string" || typeof a3 == "function" || a3 === d || a3 === f3 || a3 === e || a3 === m2 || a3 === n || a3 === t || typeof a3 == "object" && a3 !== null && (a3.$$typeof === q || a3.$$typeof === p3 || a3.$$typeof === g || a3.$$typeof === h3 || a3.$$typeof === l || a3.$$typeof === u2 || a3.getModuleId !== void 0);
}, reactIs_production_min.typeOf = v, reactIs_production_min;
}
var reactIs_development = {};
var hasRequiredReactIs_development;
function requireReactIs_development() {
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
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(type3) {
return !!(typeof type3 == "string" || typeof type3 == "function" || type3 === REACT_FRAGMENT_TYPE || type3 === REACT_PROFILER_TYPE || enableDebugTracing || type3 === REACT_STRICT_MODE_TYPE || type3 === REACT_SUSPENSE_TYPE || type3 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type3 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type3 == "object" && type3 !== null && (type3.$$typeof === REACT_LAZY_TYPE || type3.$$typeof === REACT_MEMO_TYPE || type3.$$typeof === REACT_PROVIDER_TYPE || type3.$$typeof === REACT_CONTEXT_TYPE || type3.$$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.
type3.$$typeof === REACT_MODULE_REFERENCE || type3.getModuleId !== void 0));
}
function typeOf2(object2) {
if (typeof object2 == "object" && object2 !== null) {
var $$typeof = object2.$$typeof;
switch ($$typeof) {
case REACT_ELEMENT_TYPE:
var type3 = object2.type;
switch (type3) {
case REACT_FRAGMENT_TYPE:
case REACT_PROFILER_TYPE:
case REACT_STRICT_MODE_TYPE:
case REACT_SUSPENSE_TYPE:
case REACT_SUSPENSE_LIST_TYPE:
return type3;
default:
var $$typeofType = type3 && type3.$$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 typeOf2(object2) === REACT_CONTEXT_TYPE;
}
function isContextProvider(object2) {
return typeOf2(object2) === REACT_PROVIDER_TYPE;
}
function isElement(object2) {
return typeof object2 == "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
}
function isForwardRef(object2) {
return typeOf2(object2) === REACT_FORWARD_REF_TYPE;
}
function isFragment(object2) {
return typeOf2(object2) === REACT_FRAGMENT_TYPE;
}
function isLazy(object2) {
return typeOf2(object2) === REACT_LAZY_TYPE;
}
function isMemo(object2) {
return typeOf2(object2) === REACT_MEMO_TYPE;
}
function isPortal(object2) {
return typeOf2(object2) === REACT_PORTAL_TYPE;
}
function isProfiler(object2) {
return typeOf2(object2) === REACT_PROFILER_TYPE;
}
function isStrictMode(object2) {
return typeOf2(object2) === REACT_STRICT_MODE_TYPE;
}
function isSuspense(object2) {
return typeOf2(object2) === REACT_SUSPENSE_TYPE;
}
function isSuspenseList(object2) {
return typeOf2(object2) === REACT_SUSPENSE_LIST_TYPE;
}
reactIs_development.ContextConsumer = ContextConsumer, reactIs_development.ContextProvider = ContextProvider, reactIs_development.Element = Element2, reactIs_development.ForwardRef = ForwardRef, reactIs_development.Fragment = Fragment, reactIs_development.Lazy = Lazy, reactIs_development.Memo = Memo, reactIs_development.Portal = Portal, reactIs_development.Profiler = Profiler, reactIs_development.StrictMode = StrictMode, reactIs_development.Suspense = Suspense, reactIs_development.SuspenseList = SuspenseList, reactIs_development.isAsyncMode = isAsyncMode, reactIs_development.isConcurrentMode = isConcurrentMode, reactIs_development.isContextConsumer = isContextConsumer, reactIs_development.isContextProvider = isContextProvider, reactIs_development.isElement = isElement, reactIs_development.isForwardRef = isForwardRef, reactIs_development.isFragment = isFragment, reactIs_development.isLazy = isLazy, reactIs_development.isMemo = isMemo, reactIs_development.isPortal = isPortal, reactIs_development.isProfiler = isProfiler, reactIs_development.isStrictMode = isStrictMode, reactIs_development.isSuspense = isSuspense, reactIs_development.isSuspenseList = isSuspenseList, reactIs_development.isValidElementType = isValidElementType, reactIs_development.typeOf = typeOf2;
}()), reactIs_development;
}
var hasRequiredReactIs;
function requireReactIs() {
return hasRequiredReactIs || (hasRequiredReactIs = 1, process.env.NODE_ENV === "production" ? reactIs.exports = requireReactIs_production_min() : reactIs.exports = requireReactIs_development()), reactIs.exports;
}
var reactIsExports = requireReactIs(), index = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports), ReactIs18 = /* @__PURE__ */ _mergeNamespaces({
__proto__: null,
default: index
}, [reactIsExports]), reactIsMethods = [
"isAsyncMode",
"isConcurrentMode",
"isContextConsumer",
"isContextProvider",
"isElement",
"isForwardRef",
"isFragment",
"isLazy",
"isMemo",
"isPortal",
"isProfiler",
"isStrictMode",
"isSuspense",
"isSuspenseList",
"isValidElementType"
], ReactIs = Object.fromEntries(reactIsMethods.map((m2) => [m2, (v) => ReactIs18[m2](v) || ReactIs19[m2](v)]));
function getChildren(arg, children = []) {
if (Array.isArray(arg))
for (let item of arg)
getChildren(item, children);
else arg != null && arg !== !1 && arg !== "" && children.push(arg);
return children;
}
function getType(element) {
let type3 = element.type;
if (typeof type3 == "string")
return type3;
if (typeof type3 == "function")
return type3.displayName || type3.name || "Unknown";
if (ReactIs.isFragment(element))
return "React.Fragment";
if (ReactIs.isSuspense(element))
return "React.Suspense";
if (typeof type3 == "object" && type3 !== null) {
if (ReactIs.isContextProvider(element))
return "Context.Provider";
if (ReactIs.isContextConsumer(element))
return "Context.Consumer";
if (ReactIs.isForwardRef(element)) {
if (type3.displayName)
return type3.displayName;
let functionName2 = type3.render.displayName || type3.render.name || "";
return functionName2 === "" ? "ForwardRef" : `ForwardRef(${functionName2})`;
}
if (ReactIs.isMemo(element)) {
let functionName2 = type3.displayName || type3.type.displayName || type3.type.name || "";
return functionName2 === "" ? "Memo" : `Memo(${functionName2})`;
}
}
return "UNDEFINED";
}
function getPropKeys$1(element) {
let { props } = element;
return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort();
}
var serialize$1 = (element, config2, indentation, depth, refs, printer2) => ++depth > config2.maxDepth ? printElementAsLeaf(getType(element), config2) : printElement(getType(element), printProps(getPropKeys$1(element), element.props, config2, indentation + config2.indent, depth, refs, printer2), printChildren(getChildren(element.props.children), config2, indentation + config2.indent, depth, refs, printer2), config2, indentation), test$1 = (val) => val != null && ReactIs.isElement(val), plugin$1 = {
serialize: serialize$1,
test: test$1
}, testSymbol = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
function getPropKeys(object2) {
let { props } = object2;
return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];
}
var serialize = (object2, config2, indentation, depth, refs, printer2) => ++depth > config2.maxDepth ? printElementAsLeaf(object2.type, config2) : printElement(object2.type, object2.props ? printProps(getPropKeys(object2), object2.props, config2, indentation + config2.indent, depth, refs, printer2) : "", object2.children ? printChildren(object2.children, config2, indentation + config2.indent, depth, refs, printer2) : "", config2, indentation), test = (val) => val && val.$$typeof === testSymbol, plugin = {
serialize,
test
}, toString = Object.prototype.toString, toISOString = Date.prototype.toISOString, errorToString = Error.prototype.toString, regExpToString = RegExp.prototype.toString;
function getConstructorName(val) {
return typeof val.constructor == "function" && val.constructor.name || "Object";
}
function isWindow(val) {
return typeof window < "u" && val === window;
}
var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP = /\n/g, 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 typeOf2 = typeof val;
if (typeOf2 === "number")
return printNumber(val);
if (typeOf2 === "bigint")
return printBigInt(val);
if (typeOf2 === "string")
return escapeString ? `"${val.replaceAll(/"|\\/g, "\\$&")}"` : `"${val}"`;
if (typeOf2 === "function")
return printFunction(val, printFunctionName2);
if (typeOf2 === "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]" ? Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val) : toStringed === "[object Error]" ? printError(val) : toStringed === "[object RegExp]" ? escapeRegex2 ? regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : regExpToString.call(val) : val instanceof Error ? printError(val) : null;
}
function printComplexValue(val, config2, indentation, depth, refs, hasCalledToJSON) {
if (refs.includes(val))
return "[Circular]";
refs = [...refs], 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 "}[${printListItems(val, config2, indentation, depth, refs, printer)}]` : isToStringedArrayType(toStringed) ? hitMaxDepth ? `[${val.constructor.name}]` : `${min || !config2.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${printListItems(val, config2, indentation, depth, refs, printer)}]` : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries(val.entries(), config2, indentation, depth, refs, printer, " => ")}}` : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : `Set {${printIteratorValues(val.values(), config2, indentation, depth, refs, printer)}}` : hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min || !config2.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${printObjectProperties(val, config2, indentation, depth, refs, printer)}}`;
}
var ErrorPlugin = {
test: (val) => val && val instanceof Error,
serialize(val, config2, i