@sanity/schema-lint 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +131 -0
- package/dist/chunk-7D4SUZUM.js +38 -0
- package/dist/chunk-7D4SUZUM.js.map +1 -0
- package/dist/index.d.ts +133 -0
- package/dist/index.js +600 -0
- package/dist/index.js.map +1 -0
- package/dist/magic-string.es-OB3VKCKR.js +1309 -0
- package/dist/magic-string.es-OB3VKCKR.js.map +1 -0
- package/dist/testing.d.ts +81 -0
- package/dist/testing.js +17171 -0
- package/dist/testing.js.map +1 -0
- package/dist/types-C3OVyCP6.d.ts +121 -0
- package/package.json +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/branding.js","../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/messages.js","../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/overloads.js","../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/utils.js","../../../node_modules/.pnpm/expect-type@1.3.0/node_modules/expect-type/dist/index.js","../../../node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js","../../../node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js","../../../node_modules/.pnpm/@vitest+pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js","../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js","../../../node_modules/.pnpm/@vitest+utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js","../../../node_modules/.pnpm/@vitest+utils@2.1.9/node_modules/@vitest/utils/dist/helpers.js","../../../node_modules/.pnpm/@vitest+utils@2.1.9/node_modules/@vitest/utils/dist/index.js","../../../node_modules/.pnpm/@vitest+utils@2.1.9/node_modules/@vitest/utils/dist/diff.js","../../../node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js","../../../node_modules/.pnpm/@vitest+spy@2.1.9/node_modules/@vitest/spy/dist/index.js","../../../node_modules/.pnpm/@vitest+utils@2.1.9/node_modules/@vitest/utils/dist/error.js","../../../node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js","../../../node_modules/.pnpm/@vitest+expect@2.1.9/node_modules/@vitest/expect/dist/index.js","../../../node_modules/.pnpm/@vitest+utils@2.1.9/node_modules/@vitest/utils/dist/source-map.js","../../../node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.mjs","../../../node_modules/.pnpm/@vitest+runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.js","../../../node_modules/.pnpm/@vitest+runner@2.1.9/node_modules/@vitest/runner/dist/index.js","../../../node_modules/.pnpm/vitest@2.1.9_@types+node@22.19.3_jsdom@26.1.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js","../../../node_modules/.pnpm/vitest@2.1.9_@types+node@22.19.3_jsdom@26.1.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js","../../../node_modules/.pnpm/@vitest+snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.js","../../../node_modules/.pnpm/vitest@2.1.9_@types+node@22.19.3_jsdom@26.1.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js","../../../node_modules/.pnpm/vitest@2.1.9_@types+node@22.19.3_jsdom@26.1.0/node_modules/vitest/dist/chunks/vi.DgezovHB.js","../../../node_modules/.pnpm/vitest@2.1.9_@types+node@22.19.3_jsdom@26.1.0/node_modules/vitest/dist/index.js","../src/testing.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @internal\n */\nconst inverted = Symbol('inverted');\n/**\n * @internal\n */\nconst expectNull = Symbol('expectNull');\n/**\n * @internal\n */\nconst expectUndefined = Symbol('expectUndefined');\n/**\n * @internal\n */\nconst expectNumber = Symbol('expectNumber');\n/**\n * @internal\n */\nconst expectString = Symbol('expectString');\n/**\n * @internal\n */\nconst expectBoolean = Symbol('expectBoolean');\n/**\n * @internal\n */\nconst expectVoid = Symbol('expectVoid');\n/**\n * @internal\n */\nconst expectFunction = Symbol('expectFunction');\n/**\n * @internal\n */\nconst expectObject = Symbol('expectObject');\n/**\n * @internal\n */\nconst expectArray = Symbol('expectArray');\n/**\n * @internal\n */\nconst expectSymbol = Symbol('expectSymbol');\n/**\n * @internal\n */\nconst expectAny = Symbol('expectAny');\n/**\n * @internal\n */\nconst expectUnknown = Symbol('expectUnknown');\n/**\n * @internal\n */\nconst expectNever = Symbol('expectNever');\n/**\n * @internal\n */\nconst expectNullable = Symbol('expectNullable');\n/**\n * @internal\n */\nconst expectBigInt = Symbol('expectBigInt');\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * @internal\n */\nconst secret = Symbol('secret');\n/**\n * @internal\n */\nconst mismatch = Symbol('mismatch');\n/**\n * A type which should match anything passed as a value but *doesn't*\n * match {@linkcode Mismatch}. It helps TypeScript select the right overload\n * for {@linkcode PositiveExpectTypeOf.toEqualTypeOf | .toEqualTypeOf()} and\n * {@linkcode PositiveExpectTypeOf.toMatchTypeOf | .toMatchTypeOf()}.\n *\n * @internal\n */\nconst avalue = Symbol('avalue');\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.expectTypeOf = void 0;\n__exportStar(require(\"./branding\"), exports); // backcompat, consider removing in next major version\n__exportStar(require(\"./messages\"), exports); // backcompat, consider removing in next major version\n__exportStar(require(\"./overloads\"), exports);\n__exportStar(require(\"./utils\"), exports); // backcompat, consider removing in next major version\nconst fn = () => true;\n/**\n * Similar to Jest's `expect`, but with type-awareness.\n * Gives you access to a number of type-matchers that let you make assertions about the\n * form of a reference or generic type parameter.\n *\n * @example\n * ```ts\n * import { foo, bar } from '../foo'\n * import { expectTypeOf } from 'expect-type'\n *\n * test('foo types', () => {\n * // make sure `foo` has type { a: number }\n * expectTypeOf(foo).toMatchTypeOf({ a: 1 })\n * expectTypeOf(foo).toHaveProperty('a').toBeNumber()\n *\n * // make sure `bar` is a function taking a string:\n * expectTypeOf(bar).parameter(0).toBeString()\n * expectTypeOf(bar).returns.not.toBeAny()\n * })\n * ```\n *\n * @description\n * See the [full docs](https://npmjs.com/package/expect-type#documentation) for lots more examples.\n */\nconst expectTypeOf = (_actual) => {\n const nonFunctionProperties = [\n 'parameters',\n 'returns',\n 'resolves',\n 'not',\n 'items',\n 'constructorParameters',\n 'thisParameter',\n 'instance',\n 'guards',\n 'asserts',\n 'branded',\n ];\n const obj = {\n /* eslint-disable @typescript-eslint/no-unsafe-assignment */\n toBeAny: fn,\n toBeUnknown: fn,\n toBeNever: fn,\n toBeFunction: fn,\n toBeObject: fn,\n toBeArray: fn,\n toBeString: fn,\n toBeNumber: fn,\n toBeBoolean: fn,\n toBeVoid: fn,\n toBeSymbol: fn,\n toBeNull: fn,\n toBeUndefined: fn,\n toBeNullable: fn,\n toBeBigInt: fn,\n toMatchTypeOf: fn,\n toEqualTypeOf: fn,\n toBeConstructibleWith: fn,\n toMatchObjectType: fn,\n toExtend: fn,\n map: exports.expectTypeOf,\n toBeCallableWith: exports.expectTypeOf,\n extract: exports.expectTypeOf,\n exclude: exports.expectTypeOf,\n pick: exports.expectTypeOf,\n omit: exports.expectTypeOf,\n toHaveProperty: exports.expectTypeOf,\n parameter: exports.expectTypeOf,\n };\n const getterProperties = nonFunctionProperties;\n getterProperties.forEach((prop) => Object.defineProperty(obj, prop, { get: () => (0, exports.expectTypeOf)({}) }));\n return obj;\n};\nexports.expectTypeOf = expectTypeOf;\n","// src/index.ts\nvar f = {\n reset: [0, 0],\n bold: [1, 22, \"\\x1B[22m\\x1B[1m\"],\n dim: [2, 22, \"\\x1B[22m\\x1B[2m\"],\n italic: [3, 23],\n underline: [4, 24],\n inverse: [7, 27],\n hidden: [8, 28],\n strikethrough: [9, 29],\n black: [30, 39],\n red: [31, 39],\n green: [32, 39],\n yellow: [33, 39],\n blue: [34, 39],\n magenta: [35, 39],\n cyan: [36, 39],\n white: [37, 39],\n gray: [90, 39],\n bgBlack: [40, 49],\n bgRed: [41, 49],\n bgGreen: [42, 49],\n bgYellow: [43, 49],\n bgBlue: [44, 49],\n bgMagenta: [45, 49],\n bgCyan: [46, 49],\n bgWhite: [47, 49],\n blackBright: [90, 39],\n redBright: [91, 39],\n greenBright: [92, 39],\n yellowBright: [93, 39],\n blueBright: [94, 39],\n magentaBright: [95, 39],\n cyanBright: [96, 39],\n whiteBright: [97, 39],\n bgBlackBright: [100, 49],\n bgRedBright: [101, 49],\n bgGreenBright: [102, 49],\n bgYellowBright: [103, 49],\n bgBlueBright: [104, 49],\n bgMagentaBright: [105, 49],\n bgCyanBright: [106, 49],\n bgWhiteBright: [107, 49]\n}, h = Object.entries(f);\nfunction a(n) {\n return String(n);\n}\na.open = \"\";\na.close = \"\";\nvar B = /* @__PURE__ */ h.reduce(\n (n, [e]) => (n[e] = a, n),\n { isColorSupported: !1 }\n);\nfunction m() {\n return { ...B };\n}\nfunction C(n = !1) {\n let e = typeof process != \"undefined\" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];\n return !(\"NO_COLOR\" in i || g.includes(\"--no-color\")) && (\"FORCE_COLOR\" in i || g.includes(\"--color\") || (e == null ? void 0 : e.platform) === \"win32\" || n && i.TERM !== \"dumb\" || \"CI\" in i) || typeof window != \"undefined\" && !!window.chrome;\n}\nfunction p(n = !1) {\n let e = C(n), i = (r, t, c, o) => {\n let l = \"\", s = 0;\n do\n l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);\n while (~o);\n return l + r.substring(s);\n }, g = (r, t, c = r) => {\n let o = (l) => {\n let s = String(l), b = s.indexOf(t, r.length);\n return ~b ? r + i(s, t, c, b) + t : r + s + t;\n };\n return o.open = r, o.close = t, o;\n }, u = {\n isColorSupported: e\n }, d = (r) => `\\x1B[${r}m`;\n for (let [r, t] of h)\n u[r] = e ? g(\n d(t[0]),\n d(t[1]),\n t[2]\n ) : a;\n return u;\n}\n\nexport {\n m as a,\n C as b,\n p as c\n};\n","import {\n a as t,\n b as e,\n c as o\n} from \"./chunk-BVHSVHOK.js\";\n\n// src/node.ts\nimport { isatty as r } from \"tty\";\nvar p = o(r(1));\nexport {\n o as createColors,\n p as default,\n t as getDefaultColors,\n e as isSupported\n};\n","import styles from 'tinyrainbow';\n\nfunction getKeysOfEnumerableProperties(object, compareKeys) {\n const rawKeys = Object.keys(object);\n const keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);\n if (Object.getOwnPropertySymbols) {\n for (const symbol of Object.getOwnPropertySymbols(object)) {\n if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) {\n keys.push(symbol);\n }\n }\n }\n return keys;\n}\nfunction printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = \": \") {\n let result = \"\";\n let width = 0;\n let current = iterator.next();\n if (!current.done) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n while (!current.done) {\n result += indentationNext;\n if (width++ === config.maxWidth) {\n result += \"\\u2026\";\n break;\n }\n const name = printer(\n current.value[0],\n config,\n indentationNext,\n depth,\n refs\n );\n const value = printer(\n current.value[1],\n config,\n indentationNext,\n depth,\n refs\n );\n result += name + separator + value;\n current = iterator.next();\n if (!current.done) {\n result += `,${config.spacingInner}`;\n } else if (!config.min) {\n result += \",\";\n }\n }\n result += config.spacingOuter + indentation;\n }\n return result;\n}\nfunction printIteratorValues(iterator, config, indentation, depth, refs, printer) {\n let result = \"\";\n let width = 0;\n let current = iterator.next();\n if (!current.done) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n while (!current.done) {\n result += indentationNext;\n if (width++ === config.maxWidth) {\n result += \"\\u2026\";\n break;\n }\n result += printer(current.value, config, indentationNext, depth, refs);\n current = iterator.next();\n if (!current.done) {\n result += `,${config.spacingInner}`;\n } else if (!config.min) {\n result += \",\";\n }\n }\n result += config.spacingOuter + indentation;\n }\n return result;\n}\nfunction printListItems(list, config, indentation, depth, refs, printer) {\n let result = \"\";\n list = list instanceof ArrayBuffer ? new DataView(list) : list;\n const isDataView = (l) => l instanceof DataView;\n const length = isDataView(list) ? list.byteLength : list.length;\n if (length > 0) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n for (let i = 0; i < length; i++) {\n result += indentationNext;\n if (i === config.maxWidth) {\n result += \"\\u2026\";\n break;\n }\n if (isDataView(list) || i in list) {\n result += printer(\n isDataView(list) ? list.getInt8(i) : list[i],\n config,\n indentationNext,\n depth,\n refs\n );\n }\n if (i < length - 1) {\n result += `,${config.spacingInner}`;\n } else if (!config.min) {\n result += \",\";\n }\n }\n result += config.spacingOuter + indentation;\n }\n return result;\n}\nfunction printObjectProperties(val, config, indentation, depth, refs, printer) {\n let result = \"\";\n const keys = getKeysOfEnumerableProperties(val, config.compareKeys);\n if (keys.length > 0) {\n result += config.spacingOuter;\n const indentationNext = indentation + config.indent;\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const name = printer(key, config, indentationNext, depth, refs);\n const value = printer(val[key], config, indentationNext, depth, refs);\n result += `${indentationNext + name}: ${value}`;\n if (i < keys.length - 1) {\n result += `,${config.spacingInner}`;\n } else if (!config.min) {\n result += \",\";\n }\n }\n result += config.spacingOuter + indentation;\n }\n return result;\n}\n\nconst asymmetricMatcher = typeof Symbol === \"function\" && Symbol.for ? Symbol.for(\"jest.asymmetricMatcher\") : 1267621;\nconst SPACE$2 = \" \";\nconst serialize$5 = (val, config, indentation, depth, refs, printer) => {\n const stringedValue = val.toString();\n if (stringedValue === \"ArrayContaining\" || stringedValue === \"ArrayNotContaining\") {\n if (++depth > config.maxDepth) {\n return `[${stringedValue}]`;\n }\n return `${stringedValue + SPACE$2}[${printListItems(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n )}]`;\n }\n if (stringedValue === \"ObjectContaining\" || stringedValue === \"ObjectNotContaining\") {\n if (++depth > config.maxDepth) {\n return `[${stringedValue}]`;\n }\n return `${stringedValue + SPACE$2}{${printObjectProperties(\n val.sample,\n config,\n indentation,\n depth,\n refs,\n printer\n )}}`;\n }\n if (stringedValue === \"StringMatching\" || stringedValue === \"StringNotMatching\") {\n return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);\n }\n if (stringedValue === \"StringContaining\" || stringedValue === \"StringNotContaining\") {\n return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs);\n }\n if (typeof val.toAsymmetricMatcher !== \"function\") {\n throw new TypeError(\n `Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`\n );\n }\n return val.toAsymmetricMatcher();\n};\nconst test$5 = (val) => val && val.$$typeof === asymmetricMatcher;\nconst plugin$5 = { serialize: serialize$5, test: test$5 };\n\nconst SPACE$1 = \" \";\nconst OBJECT_NAMES = /* @__PURE__ */ new Set([\"DOMStringMap\", \"NamedNodeMap\"]);\nconst ARRAY_REGEXP = /^(?:HTML\\w*Collection|NodeList)$/;\nfunction testName(name) {\n return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);\n}\nconst test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);\nfunction isNamedNodeMap(collection) {\n return collection.constructor.name === \"NamedNodeMap\";\n}\nconst serialize$4 = (collection, config, indentation, depth, refs, printer) => {\n const name = collection.constructor.name;\n if (++depth > config.maxDepth) {\n return `[${name}]`;\n }\n return (config.min ? \"\" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(\n isNamedNodeMap(collection) ? [...collection].reduce(\n (props, attribute) => {\n props[attribute.name] = attribute.value;\n return props;\n },\n {}\n ) : { ...collection },\n config,\n indentation,\n depth,\n refs,\n printer\n )}}` : `[${printListItems(\n [...collection],\n config,\n indentation,\n depth,\n refs,\n printer\n )}]`);\n};\nconst plugin$4 = { serialize: serialize$4, test: test$4 };\n\nfunction escapeHTML(str) {\n return str.replaceAll(\"<\", \"<\").replaceAll(\">\", \">\");\n}\n\nfunction printProps(keys, props, config, indentation, depth, refs, printer) {\n const indentationNext = indentation + config.indent;\n const colors = config.colors;\n return keys.map((key) => {\n const value = props[key];\n let printed = printer(value, config, indentationNext, depth, refs);\n if (typeof value !== \"string\") {\n if (printed.includes(\"\\n\")) {\n printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;\n }\n printed = `{${printed}}`;\n }\n return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;\n }).join(\"\");\n}\nfunction printChildren(children, config, indentation, depth, refs, printer) {\n return children.map(\n (child) => config.spacingOuter + indentation + (typeof child === \"string\" ? printText(child, config) : printer(child, config, indentation, depth, refs))\n ).join(\"\");\n}\nfunction printText(text, config) {\n const contentColor = config.colors.content;\n return contentColor.open + escapeHTML(text) + contentColor.close;\n}\nfunction printComment(comment, config) {\n const commentColor = config.colors.comment;\n return `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`;\n}\nfunction printElement(type, printedProps, printedChildren, config, indentation) {\n const tagColor = config.colors.tag;\n return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? \"\" : \" \"}/`}>${tagColor.close}`;\n}\nfunction printElementAsLeaf(type, config) {\n const tagColor = config.colors.tag;\n return `${tagColor.open}<${type}${tagColor.close} \\u2026${tagColor.open} />${tagColor.close}`;\n}\n\nconst ELEMENT_NODE = 1;\nconst TEXT_NODE = 3;\nconst COMMENT_NODE = 8;\nconst FRAGMENT_NODE = 11;\nconst ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\\w*)?Element$/;\nfunction testHasAttribute(val) {\n try {\n return typeof val.hasAttribute === \"function\" && val.hasAttribute(\"is\");\n } catch {\n return false;\n }\n}\nfunction testNode(val) {\n const constructorName = val.constructor.name;\n const { nodeType, tagName } = val;\n const isCustomElement = typeof tagName === \"string\" && tagName.includes(\"-\") || testHasAttribute(val);\n return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === \"Text\" || nodeType === COMMENT_NODE && constructorName === \"Comment\" || nodeType === FRAGMENT_NODE && constructorName === \"DocumentFragment\";\n}\nconst test$3 = (val) => {\n var _a;\n return ((_a = val == null ? void 0 : val.constructor) == null ? void 0 : _a.name) && testNode(val);\n};\nfunction nodeIsText(node) {\n return node.nodeType === TEXT_NODE;\n}\nfunction nodeIsComment(node) {\n return node.nodeType === COMMENT_NODE;\n}\nfunction nodeIsFragment(node) {\n return node.nodeType === FRAGMENT_NODE;\n}\nconst serialize$3 = (node, config, indentation, depth, refs, printer) => {\n if (nodeIsText(node)) {\n return printText(node.data, config);\n }\n if (nodeIsComment(node)) {\n return printComment(node.data, config);\n }\n const type = nodeIsFragment(node) ? \"DocumentFragment\" : node.tagName.toLowerCase();\n if (++depth > config.maxDepth) {\n return printElementAsLeaf(type, config);\n }\n return printElement(\n type,\n printProps(\n nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(),\n nodeIsFragment(node) ? {} : [...node.attributes].reduce(\n (props, attribute) => {\n props[attribute.name] = attribute.value;\n return props;\n },\n {}\n ),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n printChildren(\n Array.prototype.slice.call(node.childNodes || node.children),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n config,\n indentation\n );\n};\nconst plugin$3 = { serialize: serialize$3, test: test$3 };\n\nconst IS_ITERABLE_SENTINEL = \"@@__IMMUTABLE_ITERABLE__@@\";\nconst IS_LIST_SENTINEL = \"@@__IMMUTABLE_LIST__@@\";\nconst IS_KEYED_SENTINEL = \"@@__IMMUTABLE_KEYED__@@\";\nconst IS_MAP_SENTINEL = \"@@__IMMUTABLE_MAP__@@\";\nconst IS_ORDERED_SENTINEL = \"@@__IMMUTABLE_ORDERED__@@\";\nconst IS_RECORD_SENTINEL = \"@@__IMMUTABLE_RECORD__@@\";\nconst IS_SEQ_SENTINEL = \"@@__IMMUTABLE_SEQ__@@\";\nconst IS_SET_SENTINEL = \"@@__IMMUTABLE_SET__@@\";\nconst IS_STACK_SENTINEL = \"@@__IMMUTABLE_STACK__@@\";\nconst getImmutableName = (name) => `Immutable.${name}`;\nconst printAsLeaf = (name) => `[${name}]`;\nconst SPACE = \" \";\nconst LAZY = \"\\u2026\";\nfunction printImmutableEntries(val, config, indentation, depth, refs, printer, type) {\n return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${printIteratorEntries(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer\n )}}`;\n}\nfunction getRecordEntries(val) {\n let i = 0;\n return {\n next() {\n if (i < val._keys.length) {\n const key = val._keys[i++];\n return { done: false, value: [key, val.get(key)] };\n }\n return { done: true, value: void 0 };\n }\n };\n}\nfunction printImmutableRecord(val, config, indentation, depth, refs, printer) {\n const name = getImmutableName(val._name || \"Record\");\n return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(\n getRecordEntries(val),\n config,\n indentation,\n depth,\n refs,\n printer\n )}}`;\n}\nfunction printImmutableSeq(val, config, indentation, depth, refs, printer) {\n const name = getImmutableName(\"Seq\");\n if (++depth > config.maxDepth) {\n return printAsLeaf(name);\n }\n if (val[IS_KEYED_SENTINEL]) {\n return `${name + SPACE}{${// from Immutable collection of entries or from ECMAScript object\n val._iter || val._object ? printIteratorEntries(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) : LAZY}}`;\n }\n return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n ) : LAZY}]`;\n}\nfunction printImmutableValues(val, config, indentation, depth, refs, printer, type) {\n return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${printIteratorValues(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n )}]`;\n}\nconst serialize$2 = (val, config, indentation, depth, refs, printer) => {\n if (val[IS_MAP_SENTINEL]) {\n return printImmutableEntries(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n val[IS_ORDERED_SENTINEL] ? \"OrderedMap\" : \"Map\"\n );\n }\n if (val[IS_LIST_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n \"List\"\n );\n }\n if (val[IS_SET_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n val[IS_ORDERED_SENTINEL] ? \"OrderedSet\" : \"Set\"\n );\n }\n if (val[IS_STACK_SENTINEL]) {\n return printImmutableValues(\n val,\n config,\n indentation,\n depth,\n refs,\n printer,\n \"Stack\"\n );\n }\n if (val[IS_SEQ_SENTINEL]) {\n return printImmutableSeq(val, config, indentation, depth, refs, printer);\n }\n return printImmutableRecord(val, config, indentation, depth, refs, printer);\n};\nconst test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);\nconst plugin$2 = { serialize: serialize$2, test: test$2 };\n\nvar reactIs = {exports: {}};\n\nvar reactIs_production_min = {};\n\n/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactIs_production_min;\n\nfunction requireReactIs_production_min () {\n\tif (hasRequiredReactIs_production_min) return reactIs_production_min;\n\thasRequiredReactIs_production_min = 1;\nvar b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=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\"),u;u=Symbol.for(\"react.module.reference\");\n\tfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;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=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;\n\treactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return \"object\"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};\n\treactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};\n\treactIs_production_min.isValidElementType=function(a){return \"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;\n\treturn reactIs_production_min;\n}\n\nvar reactIs_development = {};\n\n/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar hasRequiredReactIs_development;\n\nfunction requireReactIs_development () {\n\tif (hasRequiredReactIs_development) return reactIs_development;\n\thasRequiredReactIs_development = 1;\n\n\tif (process.env.NODE_ENV !== \"production\") {\n\t (function() {\n\n\t// ATTENTION\n\t// When adding new symbols to this file,\n\t// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n\t// The Symbol used to tag the ReactElement-like types.\n\tvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\n\tvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\n\tvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\n\tvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\n\tvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\n\tvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\n\tvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\n\tvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\n\tvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\n\tvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\n\tvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\n\tvar REACT_MEMO_TYPE = Symbol.for('react.memo');\n\tvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\n\tvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n\t// -----------------------------------------------------------------------------\n\n\tvar enableScopeAPI = false; // Experimental Create Event Handle API.\n\tvar enableCacheElement = false;\n\tvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\n\tvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n\t// stuff. Intended to enable React core members to more easily debug scheduling\n\t// issues in DEV builds.\n\n\tvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\n\tvar REACT_MODULE_REFERENCE;\n\n\t{\n\t REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n\t}\n\n\tfunction isValidElementType(type) {\n\t if (typeof type === 'string' || typeof type === 'function') {\n\t return true;\n\t } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n\t if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n\t return true;\n\t }\n\n\t if (typeof type === 'object' && type !== null) {\n\t if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n\t // types supported by any Flight configuration anywhere since\n\t // we don't know which Flight build this will end up being used\n\t // with.\n\t type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n\t return true;\n\t }\n\t }\n\n\t return false;\n\t}\n\n\tfunction typeOf(object) {\n\t if (typeof object === 'object' && object !== null) {\n\t var $$typeof = object.$$typeof;\n\n\t switch ($$typeof) {\n\t case REACT_ELEMENT_TYPE:\n\t var type = object.type;\n\n\t switch (type) {\n\t case REACT_FRAGMENT_TYPE:\n\t case REACT_PROFILER_TYPE:\n\t case REACT_STRICT_MODE_TYPE:\n\t case REACT_SUSPENSE_TYPE:\n\t case REACT_SUSPENSE_LIST_TYPE:\n\t return type;\n\n\t default:\n\t var $$typeofType = type && type.$$typeof;\n\n\t switch ($$typeofType) {\n\t case REACT_SERVER_CONTEXT_TYPE:\n\t case REACT_CONTEXT_TYPE:\n\t case REACT_FORWARD_REF_TYPE:\n\t case REACT_LAZY_TYPE:\n\t case REACT_MEMO_TYPE:\n\t case REACT_PROVIDER_TYPE:\n\t return $$typeofType;\n\n\t default:\n\t return $$typeof;\n\t }\n\n\t }\n\n\t case REACT_PORTAL_TYPE:\n\t return $$typeof;\n\t }\n\t }\n\n\t return undefined;\n\t}\n\tvar ContextConsumer = REACT_CONTEXT_TYPE;\n\tvar ContextProvider = REACT_PROVIDER_TYPE;\n\tvar Element = REACT_ELEMENT_TYPE;\n\tvar ForwardRef = REACT_FORWARD_REF_TYPE;\n\tvar Fragment = REACT_FRAGMENT_TYPE;\n\tvar Lazy = REACT_LAZY_TYPE;\n\tvar Memo = REACT_MEMO_TYPE;\n\tvar Portal = REACT_PORTAL_TYPE;\n\tvar Profiler = REACT_PROFILER_TYPE;\n\tvar StrictMode = REACT_STRICT_MODE_TYPE;\n\tvar Suspense = REACT_SUSPENSE_TYPE;\n\tvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n\tvar hasWarnedAboutDeprecatedIsAsyncMode = false;\n\tvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\n\tfunction isAsyncMode(object) {\n\t {\n\t if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n\t hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n\t console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n\t }\n\t }\n\n\t return false;\n\t}\n\tfunction isConcurrentMode(object) {\n\t {\n\t if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n\t hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n\t console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n\t }\n\t }\n\n\t return false;\n\t}\n\tfunction isContextConsumer(object) {\n\t return typeOf(object) === REACT_CONTEXT_TYPE;\n\t}\n\tfunction isContextProvider(object) {\n\t return typeOf(object) === REACT_PROVIDER_TYPE;\n\t}\n\tfunction isElement(object) {\n\t return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n\t}\n\tfunction isForwardRef(object) {\n\t return typeOf(object) === REACT_FORWARD_REF_TYPE;\n\t}\n\tfunction isFragment(object) {\n\t return typeOf(object) === REACT_FRAGMENT_TYPE;\n\t}\n\tfunction isLazy(object) {\n\t return typeOf(object) === REACT_LAZY_TYPE;\n\t}\n\tfunction isMemo(object) {\n\t return typeOf(object) === REACT_MEMO_TYPE;\n\t}\n\tfunction isPortal(object) {\n\t return typeOf(object) === REACT_PORTAL_TYPE;\n\t}\n\tfunction isProfiler(object) {\n\t return typeOf(object) === REACT_PROFILER_TYPE;\n\t}\n\tfunction isStrictMode(object) {\n\t return typeOf(object) === REACT_STRICT_MODE_TYPE;\n\t}\n\tfunction isSuspense(object) {\n\t return typeOf(object) === REACT_SUSPENSE_TYPE;\n\t}\n\tfunction isSuspenseList(object) {\n\t return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n\t}\n\n\treactIs_development.ContextConsumer = ContextConsumer;\n\treactIs_development.ContextProvider = ContextProvider;\n\treactIs_development.Element = Element;\n\treactIs_development.ForwardRef = ForwardRef;\n\treactIs_development.Fragment = Fragment;\n\treactIs_development.Lazy = Lazy;\n\treactIs_development.Memo = Memo;\n\treactIs_development.Portal = Portal;\n\treactIs_development.Profiler = Profiler;\n\treactIs_development.StrictMode = StrictMode;\n\treactIs_development.Suspense = Suspense;\n\treactIs_development.SuspenseList = SuspenseList;\n\treactIs_development.isAsyncMode = isAsyncMode;\n\treactIs_development.isConcurrentMode = isConcurrentMode;\n\treactIs_development.isContextConsumer = isContextConsumer;\n\treactIs_development.isContextProvider = isContextProvider;\n\treactIs_development.isElement = isElement;\n\treactIs_development.isForwardRef = isForwardRef;\n\treactIs_development.isFragment = isFragment;\n\treactIs_development.isLazy = isLazy;\n\treactIs_development.isMemo = isMemo;\n\treactIs_development.isPortal = isPortal;\n\treactIs_development.isProfiler = isProfiler;\n\treactIs_development.isStrictMode = isStrictMode;\n\treactIs_development.isSuspense = isSuspense;\n\treactIs_development.isSuspenseList = isSuspenseList;\n\treactIs_development.isValidElementType = isValidElementType;\n\treactIs_development.typeOf = typeOf;\n\t })();\n\t}\n\treturn reactIs_development;\n}\n\nvar hasRequiredReactIs;\n\nfunction requireReactIs () {\n\tif (hasRequiredReactIs) return reactIs.exports;\n\thasRequiredReactIs = 1;\n\n\tif (process.env.NODE_ENV === 'production') {\n\t reactIs.exports = requireReactIs_production_min();\n\t} else {\n\t reactIs.exports = requireReactIs_development();\n\t}\n\treturn reactIs.exports;\n}\n\nvar reactIsExports = requireReactIs();\n\nfunction getChildren(arg, children = []) {\n if (Array.isArray(arg)) {\n for (const item of arg) {\n getChildren(item, children);\n }\n } else if (arg != null && arg !== false && arg !== \"\") {\n children.push(arg);\n }\n return children;\n}\nfunction getType(element) {\n const type = element.type;\n if (typeof type === \"string\") {\n return type;\n }\n if (typeof type === \"function\") {\n return type.displayName || type.name || \"Unknown\";\n }\n if (reactIsExports.isFragment(element)) {\n return \"React.Fragment\";\n }\n if (reactIsExports.isSuspense(element)) {\n return \"React.Suspense\";\n }\n if (typeof type === \"object\" && type !== null) {\n if (reactIsExports.isContextProvider(element)) {\n return \"Context.Provider\";\n }\n if (reactIsExports.isContextConsumer(element)) {\n return \"Context.Consumer\";\n }\n if (reactIsExports.isForwardRef(element)) {\n if (type.displayName) {\n return type.displayName;\n }\n const functionName = type.render.displayName || type.render.name || \"\";\n return functionName === \"\" ? \"ForwardRef\" : `ForwardRef(${functionName})`;\n }\n if (reactIsExports.isMemo(element)) {\n const functionName = type.displayName || type.type.displayName || type.type.name || \"\";\n return functionName === \"\" ? \"Memo\" : `Memo(${functionName})`;\n }\n }\n return \"UNDEFINED\";\n}\nfunction getPropKeys$1(element) {\n const { props } = element;\n return Object.keys(props).filter((key) => key !== \"children\" && props[key] !== void 0).sort();\n}\nconst serialize$1 = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(getType(element), config) : printElement(\n getType(element),\n printProps(\n getPropKeys$1(element),\n element.props,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n printChildren(\n getChildren(element.props.children),\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ),\n config,\n indentation\n);\nconst test$1 = (val) => val != null && reactIsExports.isElement(val);\nconst plugin$1 = { serialize: serialize$1, test: test$1 };\n\nconst testSymbol = typeof Symbol === \"function\" && Symbol.for ? Symbol.for(\"react.test.json\") : 245830487;\nfunction getPropKeys(object) {\n const { props } = object;\n return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : [];\n}\nconst serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(object.type, config) : printElement(\n object.type,\n object.props ? printProps(\n getPropKeys(object),\n object.props,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ) : \"\",\n object.children ? printChildren(\n object.children,\n config,\n indentation + config.indent,\n depth,\n refs,\n printer\n ) : \"\",\n config,\n indentation\n);\nconst test = (val) => val && val.$$typeof === testSymbol;\nconst plugin = { serialize, test };\n\nconst toString = Object.prototype.toString;\nconst toISOString = Date.prototype.toISOString;\nconst errorToString = Error.prototype.toString;\nconst regExpToString = RegExp.prototype.toString;\nfunction getConstructorName(val) {\n return typeof val.constructor === \"function\" && val.constructor.name || \"Object\";\n}\nfunction isWindow(val) {\n return typeof window !== \"undefined\" && val === window;\n}\nconst SYMBOL_REGEXP = /^Symbol\\((.*)\\)(.*)$/;\nconst NEWLINE_REGEXP = /\\n/g;\nclass PrettyFormatPluginError extends Error {\n constructor(message, stack) {\n super(message);\n this.stack = stack;\n this.name = this.constructor.name;\n }\n}\nfunction isToStringedArrayType(toStringed) {\n 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]\";\n}\nfunction printNumber(val) {\n return Object.is(val, -0) ? \"-0\" : String(val);\n}\nfunction printBigInt(val) {\n return String(`${val}n`);\n}\nfunction printFunction(val, printFunctionName) {\n if (!printFunctionName) {\n return \"[Function]\";\n }\n return `[Function ${val.name || \"anonymous\"}]`;\n}\nfunction printSymbol(val) {\n return String(val).replace(SYMBOL_REGEXP, \"Symbol($1)\");\n}\nfunction printError(val) {\n return `[${errorToString.call(val)}]`;\n}\nfunction printBasicValue(val, printFunctionName, escapeRegex, escapeString) {\n if (val === true || val === false) {\n return `${val}`;\n }\n if (val === void 0) {\n return \"undefined\";\n }\n if (val === null) {\n return \"null\";\n }\n const typeOf = typeof val;\n if (typeOf === \"number\") {\n return printNumber(val);\n }\n if (typeOf === \"bigint\") {\n return printBigInt(val);\n }\n if (typeOf === \"string\") {\n if (escapeString) {\n return `\"${val.replaceAll(/\"|\\\\/g, \"\\\\$&\")}\"`;\n }\n return `\"${val}\"`;\n }\n if (typeOf === \"function\") {\n return printFunction(val, printFunctionName);\n }\n if (typeOf === \"symbol\") {\n return printSymbol(val);\n }\n const toStringed = toString.call(val);\n if (toStringed === \"[object WeakMap]\") {\n return \"WeakMap {}\";\n }\n if (toStringed === \"[object WeakSet]\") {\n return \"WeakSet {}\";\n }\n if (toStringed === \"[object Function]\" || toStringed === \"[object GeneratorFunction]\") {\n return printFunction(val, printFunctionName);\n }\n if (toStringed === \"[object Symbol]\") {\n return printSymbol(val);\n }\n if (toStringed === \"[object Date]\") {\n return Number.isNaN(+val) ? \"Date { NaN }\" : toISOString.call(val);\n }\n if (toStringed === \"[object Error]\") {\n return printError(val);\n }\n if (toStringed === \"[object RegExp]\") {\n if (escapeRegex) {\n return regExpToString.call(val).replaceAll(/[$()*+.?[\\\\\\]^{|}]/g, \"\\\\$&\");\n }\n return regExpToString.call(val);\n }\n if (val instanceof Error) {\n return printError(val);\n }\n return null;\n}\nfunction printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {\n if (refs.includes(val)) {\n return \"[Circular]\";\n }\n refs = [...refs];\n refs.push(val);\n const hitMaxDepth = ++depth > config.maxDepth;\n const min = config.min;\n if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === \"function\" && !hasCalledToJSON) {\n return printer(val.toJSON(), config, indentation, depth, refs, true);\n }\n const toStringed = toString.call(val);\n if (toStringed === \"[object Arguments]\") {\n return hitMaxDepth ? \"[Arguments]\" : `${min ? \"\" : \"Arguments \"}[${printListItems(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n )}]`;\n }\n if (isToStringedArrayType(toStringed)) {\n return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? \"\" : !config.printBasicPrototype && val.constructor.name === \"Array\" ? \"\" : `${val.constructor.name} `}[${printListItems(val, config, indentation, depth, refs, printer)}]`;\n }\n if (toStringed === \"[object Map]\") {\n return hitMaxDepth ? \"[Map]\" : `Map {${printIteratorEntries(\n val.entries(),\n config,\n indentation,\n depth,\n refs,\n printer,\n \" => \"\n )}}`;\n }\n if (toStringed === \"[object Set]\") {\n return hitMaxDepth ? \"[Set]\" : `Set {${printIteratorValues(\n val.values(),\n config,\n indentation,\n depth,\n refs,\n printer\n )}}`;\n }\n return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? \"\" : !config.printBasicPrototype && getConstructorName(val) === \"Object\" ? \"\" : `${getConstructorName(val)} `}{${printObjectProperties(\n val,\n config,\n indentation,\n depth,\n refs,\n printer\n )}}`;\n}\nfunction isNewPlugin(plugin) {\n return plugin.serialize != null;\n}\nfunction printPlugin(plugin, val, config, indentation, depth, refs) {\n let printed;\n try {\n printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print(\n val,\n (valChild) => printer(valChild, config, indentation, depth, refs),\n (str) => {\n const indentationNext = indentation + config.indent;\n return indentationNext + str.replaceAll(NEWLINE_REGEXP, `\n${indentationNext}`);\n },\n {\n edgeSpacing: config.spacingOuter,\n min: config.min,\n spacing: config.spacingInner\n },\n config.colors\n );\n } catch (error) {\n throw new PrettyFormatPluginError(error.message, error.stack);\n }\n if (typeof printed !== \"string\") {\n throw new TypeError(\n `pretty-format: Plugin must return type \"string\" but instead returned \"${typeof printed}\".`\n );\n }\n return printed;\n}\nfunction findPlugin(plugins2, val) {\n for (const plugin of plugins2) {\n try {\n if (plugin.test(val)) {\n return plugin;\n }\n } catch (error) {\n throw new PrettyFormatPluginError(error.message, error.stack);\n }\n }\n return null;\n}\nfunction printer(val, config, indentation, depth, refs, hasCalledToJSON) {\n const plugin = findPlugin(config.plugins, val);\n if (plugin !== null) {\n return printPlugin(plugin, val, config, indentation, depth, refs);\n }\n const basicResult = printBasicValue(\n val,\n config.printFunctionName,\n config.escapeRegex,\n config.escapeString\n );\n if (basicResult !== null) {\n return basicResult;\n }\n return printComplexValue(\n val,\n config,\n indentation,\n depth,\n refs,\n hasCalledToJSON\n );\n}\nconst DEFAULT_THEME = {\n comment: \"gray\",\n content: \"reset\",\n prop: \"yellow\",\n tag: \"cyan\",\n value: \"green\"\n};\nconst DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);\nconst DEFAULT_OPTIONS = {\n callToJSON: true,\n compareKeys: void 0,\n escapeRegex: false,\n escapeString: true,\n highlight: false,\n indent: 2,\n maxDepth: Number.POSITIVE_INFINITY,\n maxWidth: Number.POSITIVE_INFINITY,\n min: false,\n plugins: [],\n printBasicPrototype: true,\n printFunctionName: true,\n theme: DEFAULT_THEME\n};\nfunction validateOptions(options) {\n for (const key of Object.keys(options)) {\n if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) {\n throw new Error(`pretty-format: Unknown option \"${key}\".`);\n }\n }\n if (options.min && options.indent !== void 0 && options.indent !== 0) {\n throw new Error(\n 'pretty-format: Options \"min\" and \"indent\" cannot be used together.'\n );\n }\n}\nfunction getColorsHighlight() {\n return DEFAULT_THEME_KEYS.reduce((colors, key) => {\n const value = DEFAULT_THEME[key];\n const color = value && styles[value];\n if (color && typeof color.close === \"string\" && typeof color.open === \"string\") {\n colors[key] = color;\n } else {\n throw new Error(\n `pretty-format: Option \"theme\" has a key \"${key}\" whose value \"${value}\" is undefined in ansi-styles.`\n );\n }\n return colors;\n }, /* @__PURE__ */ Object.create(null));\n}\nfunction getColorsEmpty() {\n return DEFAULT_THEME_KEYS.reduce((colors, key) => {\n colors[key] = { close: \"\", open: \"\" };\n return colors;\n }, /* @__PURE__ */ Object.create(null));\n}\nfunction getPrintFunctionName(options) {\n return (options == null ? void 0 : options.printFunctionName) ?? DEFAULT_OPTIONS.printFunctionName;\n}\nfunction getEscapeRegex(options) {\n return (options == null ? void 0 : options.escapeRegex) ?? DEFAULT_OPTIONS.escapeRegex;\n}\nfunction getEscapeString(options) {\n return (options == null ? void 0 : options.escapeString) ?? DEFAULT_OPTIONS.escapeString;\n}\nfunction getConfig(options) {\n return {\n callToJSON: (options == null ? void 0 : options.callToJSON) ?? DEFAULT_OPTIONS.callToJSON,\n colors: (options == null ? void 0 : options.highlight) ? getColorsHighlight() : getColorsEmpty(),\n compareKeys: typeof (options == null ? void 0 : options.compareKeys) === \"function\" || (options == null ? void 0 : options.compareKeys) === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,\n escapeRegex: getEscapeRegex(options),\n escapeString: getEscapeString(options),\n indent: (options == null ? void 0 : options.min) ? \"\" : createIndent((options == null ? void 0 : options.indent) ?? DEFAULT_OPTIONS.indent),\n maxDepth: (options == null ? void 0 : options.maxDepth) ?? DEFAULT_OPTIONS.maxDepth,\n maxWidth: (options == null ? void 0 : options.maxWidth) ?? DEFAULT_OPTIONS.maxWidth,\n min: (options == null ? void 0 : options.min) ?? DEFAULT_OPTIONS.min,\n plugins: (options == null ? void 0 : options.plugins) ?? DEFAULT_OPTIONS.plugins,\n printBasicPrototype: (options == null ? void 0 : options.printBasicPrototype) ?? true,\n printFunctionName: getPrintFunctionName(options),\n spacingInner: (options == null ? void 0 : options.min) ? \" \" : \"\\n\",\n spacingOuter: (options == null ? void 0 : options.min) ? \"\" : \"\\n\"\n };\n}\nfunction createIndent(indent) {\n return Array.from({ length: indent + 1 }).join(\" \");\n}\nfunction format(val, options) {\n if (options) {\n validateOptions(options);\n if (options.plugins) {\n const plugin = findPlugin(options.plugins, val);\n if (plugin !== null) {\n return printPlugin(plugin, val, getConfig(options), \"\", 0, []);\n }\n }\n }\n const basicResult = printBasicValue(\n val,\n getPrintFunctionName(options),\n getEscapeRegex(options),\n getEscapeString(options)\n );\n if (basicResult !== null) {\n return basicResult;\n }\n return printComplexValue(val, getConfig(options), \"\", 0, []);\n}\nconst plugins = {\n AsymmetricMatcher: plugin$5,\n DOMCollection: plugin$4,\n DOMElement: plugin$3,\n Immutable: plugin$2,\n ReactElement: plugin$1,\n ReactTestComponent: plugin\n};\n\nexport { DEFAULT_OPTIONS, format, plugins };\n","const ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39'],\n};\nconst styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red',\n};\nexport const truncator = '…';\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || '';\n if (!color) {\n return String(value);\n }\n return `\\u001b[${color[0]}m${String(value)}\\u001b[${color[1]}m`;\n}\nexport function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], \n// eslint-disable-next-line no-shadow\ntruncate = Infinity, stylize = String, } = {}, inspect) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen,\n inspect,\n stylize,\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\nfunction isHighSurrogate(char) {\n return char >= '\\ud800' && char <= '\\udbff';\n}\nexport function truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n// eslint-disable-next-line complexity\nexport function inspectList(list, options, inspectItem, separator = ', ') {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return '';\n const originalLength = options.truncate;\n let output = '';\n let peek = '';\n let truncated = '';\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n // If there is more than one remaining we need to account for a separator of `, `\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? '' : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n // Peek at the next string to determine if we should\n // break early before adding this item to the output\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator);\n // If we have one element left, but this element and\n // the next takes over length, the break early\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = '';\n }\n return `${output}${truncated}`;\n}\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key)\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n}\nexport function inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n }\n else if (typeof key !== 'number') {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n","import { inspectList, inspectProperty } from './helpers.js';\nexport default function inspectArray(array, options) {\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return '[]';\n options.truncate -= 4;\n const listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n","import { inspectList, inspectProperty, truncate, truncator } from './helpers.js';\nconst getArrayName = (array) => {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n // @ts-ignore\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n};\nexport default function inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n let output = '';\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), 'number')}${i === array.length - 1 ? '' : ', '}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n","import { truncate } from './helpers.js';\nexport default function inspectDate(dateObject, options) {\n const stringRepresentation = dateObject.toJSON();\n if (stringRepresentation === null) {\n return 'Invalid Date';\n }\n const split = stringRepresentation.split('T');\n const date = split[0];\n // If we need to - truncate the time portion, but never the date\n return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, 'date');\n}\n","import { truncate } from './helpers.js';\nexport default function inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || 'Function';\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, 'special');\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');\n}\n","import { inspectList } from './helpers.js';\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n// IE11 doesn't support `map.entries()`\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\nexport default function inspectMap(map, options) {\n if (map.size === 0)\n return 'Map{}';\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n","import { truncate } from './helpers.js';\nconst isNaN = Number.isNaN || (i => i !== i); // eslint-disable-line no-self-compare\nexport default function inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n return options.stylize(truncate(String(number), options.truncate), 'number');\n}\n","import { truncate, truncator } from './helpers.js';\nexport default function inspectBigInt(number, options) {\n let nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator)\n nums += 'n';\n return options.stylize(nums, 'bigint');\n}\n","import { truncate } from './helpers.js';\nexport default function inspectRegExp(value, options) {\n const flags = value.toString().split('/')[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp');\n}\n","import { inspectList } from './helpers.js';\n// IE11 doesn't support `Array.from(set)`\nfunction arrayFromSet(set) {\n const values = [];\n set.forEach(value => {\n values.push(value);\n });\n return values;\n}\nexport default function inspectSet(set, options) {\n if (set.size === 0)\n return 'Set{}';\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set), options)} }`;\n}\n","import { truncate } from './helpers.js';\nconst stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" +\n '\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]', 'g');\nconst escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\',\n};\nconst hex = 16;\nconst unicodeLength = 4;\nfunction escape(char) {\n return (escapeCharacters[char] ||\n `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`);\n}\nexport default function inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, 'string');\n}\n","export default function inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : 'Symbol()';\n }\n return value.toString();\n}\n","const getPromiseValue = () => 'Promise{…}';\nexport default getPromiseValue;\n","import { inspectList, inspectProperty } from './helpers.js';\nexport default function inspectObject(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return '[Circular]';\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map(key => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map(key => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = '';\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n","import inspectObject from './object.js';\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false;\nexport default function inspectClass(value, options) {\n let name = '';\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n name = name || value.constructor.name;\n // Babel transforms anonymous classes to the name `_class`\n if (!name || name === '_class') {\n name = '<Anonymous Class>';\n }\n options.truncate -= name.length;\n return `${name}${inspectObject(value, options)}`;\n}\n","import { inspectList } from './helpers.js';\nexport default function inspectArguments(args, options) {\n if (args.length === 0)\n return 'Arguments[]';\n options.truncate -= 13;\n return `Arguments[ ${inspectList(args, options)} ]`;\n}\n","import { inspectList, inspectProperty, truncate } from './helpers.js';\nconst errorKeys = [\n 'stack',\n 'line',\n 'column',\n 'name',\n 'message',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'number',\n 'description',\n 'cause',\n];\nexport default function inspectObject(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter(key => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = '';\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n }\n else {\n properties.unshift('message');\n }\n message = message ? `: ${message}` : '';\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return '[Circular]';\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map(key => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ''}`;\n}\n","import { inspectList, truncator } from './helpers.js';\nexport function inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), 'yellow')}`;\n }\n return `${options.stylize(String(key), 'yellow')}=${options.stylize(`\"${value}\"`, 'string')}`;\n}\nexport function inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, '\\n');\n}\nexport function inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n// @ts-ignore (Deno doesn't have Element)\nexport default function inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, 'special');\n const headClose = options.stylize(`>`, 'special');\n const tail = options.stylize(`</${name}>`, 'special');\n options.truncate -= name.length * 2 + 5;\n let propertyContents = '';\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');\n }\n options.truncate -= propertyContents.length;\n const truncate = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n","/* !\n * loupe\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nimport inspectArray from './array.js';\nimport inspectTypedArray from './typedarray.js';\nimport inspectDate from './date.js';\nimport inspectFunction from './function.js';\nimport inspectMap from './map.js';\nimport inspectNumber from './number.js';\nimport inspectBigInt from './bigint.js';\nimport inspectRegExp from './regexp.js';\nimport inspectSet from './set.js';\nimport inspectString from './string.js';\nimport inspectSymbol from './symbol.js';\nimport inspectPromise from './promise.js';\nimport inspectClass from './class.js';\nimport inspectObject from './object.js';\nimport inspectArguments from './arguments.js';\nimport inspectError from './error.js';\nimport inspectHTMLElement, { inspectNodeCollection } from './html.js';\nimport { normaliseOptions } from './helpers.js';\nconst symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\nconst chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\nconst nodeInspect = Symbol.for('nodejs.util.inspect.custom');\nconst constructorMap = new WeakMap();\nconst stringTagMap = {};\nconst baseTypesMap = {\n undefined: (value, options) => options.stylize('undefined', 'undefined'),\n null: (value, options) => options.stylize('null', 'null'),\n boolean: (value, options) => options.stylize(String(value), 'boolean'),\n Boolean: (value, options) => options.stylize(String(value), 'boolean'),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: inspectPromise,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: (value, options) => options.stylize('WeakSet{…}', 'special'),\n WeakMap: (value, options) => options.stylize('WeakMap{…}', 'special'),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: () => '',\n DataView: () => '',\n ArrayBuffer: () => '',\n Error: inspectError,\n HTMLCollection: inspectNodeCollection,\n NodeList: inspectNodeCollection,\n};\n// eslint-disable-next-line complexity\nconst inspectCustom = (value, options, type, inspectFn) => {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n if (nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options, inspectFn);\n }\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n return '';\n};\nconst toString = Object.prototype.toString;\n// eslint-disable-next-line complexity\nexport function inspect(value, opts = {}) {\n const options = normaliseOptions(opts, inspect);\n const { customInspect } = options;\n let type = value === null ? 'null' : typeof value;\n if (type === 'object') {\n type = toString.call(value).slice(8, -1);\n }\n // If it is a base value that we already support, then use Loupe's inspector\n if (type in baseTypesMap) {\n return baseTypesMap[type](value, options);\n }\n // If `options.customInspect` is set to true then try to use the custom inspector\n if (customInspect && value) {\n const output = inspectCustom(value, options, type, inspect);\n if (output) {\n if (typeof output === 'string')\n return output;\n return inspect(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n // If it's a plain Object then use Loupe's inspector\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n }\n // Specifically account for HTMLElements\n // @ts-ignore\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTMLElement(value, options);\n }\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n // If it is an object with an anonymous prototype, display it as an object.\n return inspectObject(value, options);\n }\n // last chance to check if it's an object\n if (value === Object(value)) {\n return inspectObject(value, options);\n }\n // We have run out of options! Just stringify the value\n return options.stylize(String(value), type);\n}\nexport function registerConstructor(constructor, inspector) {\n if (constructorMap.has(constructor)) {\n return false;\n }\n constructorMap.set(constructor, inspector);\n return true;\n}\nexport function registerStringTag(stringTag, inspector) {\n if (stringTag in stringTagMap) {\n return false;\n }\n stringTagMap[stringTag] = inspector;\n return true;\n}\nexport const custom = chaiInspect;\nexport default inspect;\n","import { format as format$1, plugins } from '@vitest/pretty-format';\nimport * as loupe from 'loupe';\n\nconst {\n AsymmetricMatcher,\n DOMCollection,\n DOMElement,\n Immutable,\n ReactElement,\n ReactTestComponent\n} = plugins;\nconst PLUGINS = [\n ReactTestComponent,\n ReactElement,\n DOMElement,\n DOMCollection,\n Immutable,\n AsymmetricMatcher\n];\nfunction stringify(object, maxDepth = 10, { maxLength, ...options } = {}) {\n const MAX_LENGTH = maxLength ?? 1e4;\n let result;\n try {\n result = format$1(object, {\n maxDepth,\n escapeString: false,\n // min: true,\n plugins: PLUGINS,\n ...options\n });\n } catch {\n result = format$1(object, {\n callToJSON: false,\n maxDepth,\n escapeString: false,\n // min: true,\n plugins: PLUGINS,\n ...options\n });\n }\n return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(maxDepth / 2)) : result;\n}\nconst formatRegExp = /%[sdjifoOc%]/g;\nfunction format(...args) {\n if (typeof args[0] !== \"string\") {\n const objects = [];\n for (let i2 = 0; i2 < args.length; i2++) {\n objects.push(inspect(args[i2], { depth: 0, colors: false }));\n }\n return objects.join(\" \");\n }\n const len = args.length;\n let i = 1;\n const template = args[0];\n let str = String(template).replace(formatRegExp, (x) => {\n if (x === \"%%\") {\n return \"%\";\n }\n if (i >= len) {\n return x;\n }\n switch (x) {\n case \"%s\": {\n const value = args[i++];\n if (typeof value === \"bigint\") {\n return `${value.toString()}n`;\n }\n if (typeof value === \"number\" && value === 0 && 1 / value < 0) {\n return \"-0\";\n }\n if (typeof value === \"object\" && value !== null) {\n return inspect(value, { depth: 0, colors: false });\n }\n return String(value);\n }\n case \"%d\": {\n const value = args[i++];\n if (typeof value === \"bigint\") {\n return `${value.toString()}n`;\n }\n return Number(value).toString();\n }\n case \"%i\": {\n const value = args[i++];\n if (typeof value === \"bigint\") {\n return `${value.toString()}n`;\n }\n return Number.parseInt(String(value)).toString();\n }\n case \"%f\":\n return Number.parseFloat(String(args[i++])).toString();\n case \"%o\":\n return inspect(args[i++], { showHidden: true, showProxy: true });\n case \"%O\":\n return inspect(args[i++]);\n case \"%c\": {\n i++;\n return \"\";\n }\n case \"%j\":\n try {\n return JSON.stringify(args[i++]);\n } catch (err) {\n const m = err.message;\n if (\n // chromium\n m.includes(\"circular structure\") || m.includes(\"cyclic structures\") || m.includes(\"cyclic object\")\n ) {\n return \"[Circular]\";\n }\n throw err;\n }\n default:\n return x;\n }\n });\n for (let x = args[i]; i < len; x = args[++i]) {\n if (x === null || typeof x !== \"object\") {\n str += ` ${x}`;\n } else {\n str += ` ${inspect(x)}`;\n }\n }\n return str;\n}\nfunction inspect(obj, options = {}) {\n if (options.truncate === 0) {\n options.truncate = Number.POSITIVE_INFINITY;\n }\n return loupe.inspect(obj, options);\n}\nfunction objDisplay(obj, options = {}) {\n if (typeof options.truncate === \"undefined\") {\n options.truncate = 40;\n }\n const str = inspect(obj, options);\n const type = Object.prototype.toString.call(obj);\n if (options.truncate && str.length >= options.truncate) {\n if (type === \"[object Function]\") {\n const fn = obj;\n return !fn.name ? \"[Function]\" : `[Function: ${fn.name}]`;\n } else if (type === \"[object Array]\") {\n return `[ Array(${obj.length}) ]`;\n } else if (type === \"[object Object]\") {\n const keys = Object.keys(obj);\n const kstr = keys.length > 2 ? `${keys.splice(0, 2).join(\", \")}, ...` : keys.join(\", \");\n return `{ Object (${kstr}) }`;\n } else {\n return str;\n }\n }\n return str;\n}\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport { format as f, getDefaultExportFromCjs as g, inspect as i, objDisplay as o, stringify as s };\n","function createSimpleStackTrace(options) {\n const { message = \"$$stack trace error\", stackTraceLimit = 1 } = options || {};\n const limit = Error.stackTraceLimit;\n const prepareStackTrace = Error.prepareStackTrace;\n Error.stackTraceLimit = stackTraceLimit;\n Error.prepareStackTrace = (e) => e.stack;\n const err = new Error(message);\n const stackTrace = err.stack || \"\";\n Error.prepareStackTrace = prepareStackTrace;\n Error.stackTraceLimit = limit;\n return stackTrace;\n}\nfunction notNullish(v) {\n return v != null;\n}\nfunction assertTypes(value, name, types) {\n const receivedType = typeof value;\n const pass = types.includes(receivedType);\n if (!pass) {\n throw new TypeError(\n `${name} value must be ${types.join(\" or \")}, received \"${receivedType}\"`\n );\n }\n}\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction slash(path) {\n return path.replace(/\\\\/g, \"/\");\n}\nfunction parseRegexp(input) {\n const m = input.match(/(\\/?)(.+)\\1([a-z]*)/i);\n if (!m) {\n return /$^/;\n }\n if (m[3] && !/^(?!.*?(.).*?\\1)[gmixXsuUAJ]+$/.test(m[3])) {\n return new RegExp(input);\n }\n return new RegExp(m[2], m[3]);\n}\nfunction toArray(array) {\n if (array === null || array === void 0) {\n array = [];\n }\n if (Array.isArray(array)) {\n return array;\n }\n return [array];\n}\nfunction isObject(item) {\n return item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction isFinalObj(obj) {\n return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;\n}\nfunction getType(value) {\n return Object.prototype.toString.apply(value).slice(8, -1);\n}\nfunction collectOwnProperties(obj, collector) {\n const collect = typeof collector === \"function\" ? collector : (key) => collector.add(key);\n Object.getOwnPropertyNames(obj).forEach(collect);\n Object.getOwnPropertySymbols(obj).forEach(collect);\n}\nfunction getOwnProperties(obj) {\n const ownProps = /* @__PURE__ */ new Set();\n if (isFinalObj(obj)) {\n return [];\n }\n collectOwnProperties(obj, ownProps);\n return Array.from(ownProps);\n}\nconst defaultCloneOptions = { forceWritable: false };\nfunction deepClone(val, options = defaultCloneOptions) {\n const seen = /* @__PURE__ */ new WeakMap();\n return clone(val, seen, options);\n}\nfunction clone(val, seen, options = defaultCloneOptions) {\n let k, out;\n if (seen.has(val)) {\n return seen.get(val);\n }\n if (Array.isArray(val)) {\n out = Array.from({ length: k = val.length });\n seen.set(val, out);\n while (k--) {\n out[k] = clone(val[k], seen, options);\n }\n return out;\n }\n if (Object.prototype.toString.call(val) === \"[object Object]\") {\n out = Object.create(Object.getPrototypeOf(val));\n seen.set(val, out);\n const props = getOwnProperties(val);\n for (const k2 of props) {\n const descriptor = Object.getOwnPropertyDescriptor(val, k2);\n if (!descriptor) {\n continue;\n }\n const cloned = clone(val[k2], seen, options);\n if (options.forceWritable) {\n Object.defineProperty(out, k2, {\n enumerable: descriptor.enumerable,\n configurable: true,\n writable: true,\n value: cloned\n });\n } else if (\"get\" in descriptor) {\n Object.defineProperty(out, k2, {\n ...descriptor,\n get() {\n return cloned;\n }\n });\n } else {\n Object.defineProperty(out, k2, {\n ...descriptor,\n value: cloned\n });\n }\n }\n return out;\n }\n return val;\n}\nfunction noop() {\n}\nfunction objectAttr(source, path, defaultValue = void 0) {\n const paths = path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n let result = source;\n for (const p of paths) {\n result = new Object(result)[p];\n if (result === void 0) {\n return defaultValue;\n }\n }\n return result;\n}\nfunction createDefer() {\n let resolve = null;\n let reject = null;\n const p = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n p.resolve = resolve;\n p.reject = reject;\n return p;\n}\nfunction getCallLastIndex(code) {\n let charIndex = -1;\n let inString = null;\n let startedBracers = 0;\n let endedBracers = 0;\n let beforeChar = null;\n while (charIndex <= code.length) {\n beforeChar = code[charIndex];\n charIndex++;\n const char = code[charIndex];\n const isCharString = char === '\"' || char === \"'\" || char === \"`\";\n if (isCharString && beforeChar !== \"\\\\\") {\n if (inString === char) {\n inString = null;\n } else if (!inString) {\n inString = char;\n }\n }\n if (!inString) {\n if (char === \"(\") {\n startedBracers++;\n }\n if (char === \")\") {\n endedBracers++;\n }\n }\n if (startedBracers && endedBracers && startedBracers === endedBracers) {\n return charIndex;\n }\n }\n return null;\n}\nfunction isNegativeNaN(val) {\n if (!Number.isNaN(val)) {\n return false;\n }\n const f64 = new Float64Array(1);\n f64[0] = val;\n const u32 = new Uint32Array(f64.buffer);\n const isNegative = u32[1] >>> 31 === 1;\n return isNegative;\n}\nfunction toString(v) {\n return Object.prototype.toString.call(v);\n}\nfunction isPlainObject(val) {\n return toString(val) === \"[object Object]\" && (!val.constructor || val.constructor.name === \"Object\");\n}\nfunction isMergeableObject(item) {\n return isPlainObject(item) && !Array.isArray(item);\n}\nfunction deepMerge(target, ...sources) {\n if (!sources.length) {\n return target;\n }\n const source = sources.shift();\n if (source === void 0) {\n return target;\n }\n if (isMergeableObject(target) && isMergeableObject(source)) {\n Object.keys(source).forEach((key) => {\n const _source = source;\n if (isMergeableObject(_source[key])) {\n if (!target[key]) {\n target[key] = {};\n }\n deepMerge(target[key], _source[key]);\n } else {\n target[key] = _source[key];\n }\n });\n }\n return deepMerge(target, ...sources);\n}\n\nexport { assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };\n","import { g as getDefaultExportFromCjs } from './chunk-_commonjsHelpers.js';\nexport { f as format, i as inspect, o as objDisplay, s as stringify } from './chunk-_commonjsHelpers.js';\nexport { assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray } from './helpers.js';\nimport c from 'tinyrainbow';\nimport '@vitest/pretty-format';\nimport 'loupe';\n\nvar jsTokens_1;\nvar hasRequiredJsTokens;\n\nfunction requireJsTokens () {\n\tif (hasRequiredJsTokens) return jsTokens_1;\n\thasRequiredJsTokens = 1;\n\t// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell\n\t// License: MIT.\n\tvar Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;\n\tRegularExpressionLiteral = /\\/(?![*\\/])(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\\\]).|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?/yu;\n\tPunctuator = /--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]/y;\n\tIdentifier = /(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+/yu;\n\tStringLiteral = /(['\"])(?:(?!\\1)[^\\\\\\n\\r]|\\\\(?:\\r\\n|[^]))*(\\1)?/y;\n\tNumericLiteral = /(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+/y;\n\tTemplate = /[`}](?:[^`\\\\$]|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?/y;\n\tWhiteSpace = /[\\t\\v\\f\\ufeff\\p{Zs}]+/yu;\n\tLineTerminatorSequence = /\\r?\\n|[\\r\\u2028\\u2029]/y;\n\tMultiLineComment = /\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?/y;\n\tSingleLineComment = /\\/\\/.*/y;\n\tJSXPunctuator = /[<>.:={}]|\\/(?![\\/*])/y;\n\tJSXIdentifier = /[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*/yu;\n\tJSXString = /(['\"])(?:(?!\\1)[^])*(\\1)?/y;\n\tJSXText = /[^<>{}]+/y;\n\tTokensPrecedingExpression = /^(?:[\\/+-]|\\.{3}|\\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;\n\tTokensNotPrecedingObjectLiteral = /^(?:=>|[;\\]){}]|else|\\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;\n\tKeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;\n\tKeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;\n\tNewline = RegExp(LineTerminatorSequence.source);\n\tjsTokens_1 = function*(input, {jsx = false} = {}) {\n\t\tvar braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;\n\t\t({length} = input);\n\t\tlastIndex = 0;\n\t\tlastSignificantToken = \"\";\n\t\tstack = [\n\t\t\t{tag: \"JS\"}\n\t\t];\n\t\tbraces = [];\n\t\tparenNesting = 0;\n\t\tpostfixIncDec = false;\n\t\twhile (lastIndex < length) {\n\t\t\tmode = stack[stack.length - 1];\n\t\t\tswitch (mode.tag) {\n\t\t\t\tcase \"JS\":\n\t\t\t\tcase \"JSNonExpressionParen\":\n\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\tif (input[lastIndex] === \"/\" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\tRegularExpressionLiteral.lastIndex = lastIndex;\n\t\t\t\t\t\tif (match = RegularExpressionLiteral.exec(input)) {\n\t\t\t\t\t\t\tlastIndex = RegularExpressionLiteral.lastIndex;\n\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"RegularExpressionLiteral\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] !== void 0 && match[1] !== \"\\\\\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Punctuator.exec(input)) {\n\t\t\t\t\t\tpunctuator = match[0];\n\t\t\t\t\t\tnextLastIndex = Punctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = punctuator;\n\t\t\t\t\t\tswitch (punctuator) {\n\t\t\t\t\t\t\tcase \"(\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"?NonExpressionParenKeyword\") {\n\t\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\t\ttag: \"JSNonExpressionParen\",\n\t\t\t\t\t\t\t\t\t\tnesting: parenNesting\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tparenNesting++;\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \")\":\n\t\t\t\t\t\t\t\tparenNesting--;\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tif (mode.tag === \"JSNonExpressionParen\" && parenNesting === mode.nesting) {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenEnd\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tPunctuator.lastIndex = 0;\n\t\t\t\t\t\t\t\tisExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));\n\t\t\t\t\t\t\t\tbraces.push(isExpression);\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"}\":\n\t\t\t\t\t\t\t\tswitch (mode.tag) {\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tmatch = Template.exec(input);\n\t\t\t\t\t\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateMiddle\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateTail\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"}\";\n\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: \"}\"\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = braces.pop();\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?ExpressionBraceEnd\" : \"}\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"]\":\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"++\":\n\t\t\t\t\t\t\tcase \"--\":\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?PostfixIncDec\" : \"?UnaryIncDec\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tif (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastIndex = nextLastIndex;\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"Punctuator\",\n\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Identifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = Identifier.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"for\":\n\t\t\t\t\t\t\tcase \"if\":\n\t\t\t\t\t\t\tcase \"while\":\n\t\t\t\t\t\t\tcase \"with\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken !== \".\" && lastSignificantToken !== \"?.\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenKeyword\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tpostfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: match[1] === \"#\" ? \"PrivateIdentifier\" : \"IdentifierName\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tStringLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = StringLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = StringLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"StringLiteral\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tNumericLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = NumericLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = NumericLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"NumericLiteral\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Template.exec(input)) {\n\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInTemplate\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"TemplateHead\",\n\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"NoSubstitutionTemplate\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXTag\":\n\t\t\t\tcase \"JSXTagEnd\":\n\t\t\t\t\tJSXPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXPunctuator.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXPunctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \">\":\n\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"/\" || mode.tag === \"JSXTagEnd\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?JSX\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXChildren\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"<\") {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tif (stack[stack.length - 1].tag === \"JSXChildren\") {\n\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTagEnd\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXIdentifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXIdentifier.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXIdentifier\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXString.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXString.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXString.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXString\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXChildren\":\n\t\t\t\t\tJSXText.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXText.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXText.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXText\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (input[lastIndex]) {\n\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"<\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"{\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tWhiteSpace.lastIndex = lastIndex;\n\t\t\tif (match = WhiteSpace.exec(input)) {\n\t\t\t\tlastIndex = WhiteSpace.lastIndex;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"WhiteSpace\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tLineTerminatorSequence.lastIndex = lastIndex;\n\t\t\tif (match = LineTerminatorSequence.exec(input)) {\n\t\t\t\tlastIndex = LineTerminatorSequence.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"LineTerminatorSequence\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tMultiLineComment.lastIndex = lastIndex;\n\t\t\tif (match = MultiLineComment.exec(input)) {\n\t\t\t\tlastIndex = MultiLineComment.lastIndex;\n\t\t\t\tif (Newline.test(match[0])) {\n\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"MultiLineComment\",\n\t\t\t\t\tvalue: match[0],\n\t\t\t\t\tclosed: match[1] !== void 0\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSingleLineComment.lastIndex = lastIndex;\n\t\t\tif (match = SingleLineComment.exec(input)) {\n\t\t\t\tlastIndex = SingleLineComment.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"SingleLineComment\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfirstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));\n\t\t\tlastIndex += firstCodePoint.length;\n\t\t\tlastSignificantToken = firstCodePoint;\n\t\t\tpostfixIncDec = false;\n\t\t\tyield ({\n\t\t\t\ttype: mode.tag.startsWith(\"JSX\") ? \"JSXInvalid\" : \"Invalid\",\n\t\t\t\tvalue: firstCodePoint\n\t\t\t});\n\t\t}\n\t\treturn void 0;\n\t};\n\treturn jsTokens_1;\n}\n\nvar jsTokensExports = requireJsTokens();\nvar jsTokens = /*@__PURE__*/getDefaultExportFromCjs(jsTokensExports);\n\n// src/index.ts\nvar reservedWords = {\n keyword: [\n \"break\",\n \"case\",\n \"catch\",\n \"continue\",\n \"debugger\",\n \"default\",\n \"do\",\n \"else\",\n \"finally\",\n \"for\",\n \"function\",\n \"if\",\n \"return\",\n \"switch\",\n \"throw\",\n \"try\",\n \"var\",\n \"const\",\n \"while\",\n \"with\",\n \"new\",\n \"this\",\n \"super\",\n \"class\",\n \"extends\",\n \"export\",\n \"import\",\n \"null\",\n \"true\",\n \"false\",\n \"in\",\n \"instanceof\",\n \"typeof\",\n \"void\",\n \"delete\"\n ],\n strict: [\n \"implements\",\n \"interface\",\n \"let\",\n \"package\",\n \"private\",\n \"protected\",\n \"public\",\n \"static\",\n \"yield\"\n ]\n}, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict), sometimesKeywords = /* @__PURE__ */ new Set([\"as\", \"async\", \"from\", \"get\", \"of\", \"set\"]);\nfunction isReservedWord(word) {\n return word === \"await\" || word === \"enum\";\n}\nfunction isStrictReservedWord(word) {\n return isReservedWord(word) || reservedWordsStrictSet.has(word);\n}\nfunction isKeyword(word) {\n return keywords.has(word);\n}\nvar BRACKET = /^[()[\\]{}]$/, getTokenType = function(token) {\n if (token.type === \"IdentifierName\") {\n if (isKeyword(token.value) || isStrictReservedWord(token.value) || sometimesKeywords.has(token.value))\n return \"Keyword\";\n if (token.value[0] && token.value[0] !== token.value[0].toLowerCase())\n return \"IdentifierCapitalized\";\n }\n return token.type === \"Punctuator\" && BRACKET.test(token.value) ? \"Bracket\" : token.type === \"Invalid\" && (token.value === \"@\" || token.value === \"#\") ? \"Punctuator\" : token.type;\n};\nfunction getCallableType(token) {\n if (token.type === \"IdentifierName\")\n return \"IdentifierCallable\";\n if (token.type === \"PrivateIdentifier\")\n return \"PrivateIdentifierCallable\";\n throw new Error(\"Not a callable token\");\n}\nvar colorize = (defs, type, value) => {\n let colorize2 = defs[type];\n return colorize2 ? colorize2(value) : value;\n}, highlightTokens = (defs, text, jsx) => {\n let highlighted = \"\", lastPotentialCallable = null, stackedHighlight = \"\";\n for (let token of jsTokens(text, { jsx })) {\n let type = getTokenType(token);\n if (type === \"IdentifierName\" || type === \"PrivateIdentifier\") {\n lastPotentialCallable && (highlighted += colorize(defs, getTokenType(lastPotentialCallable), lastPotentialCallable.value) + stackedHighlight, stackedHighlight = \"\"), lastPotentialCallable = token;\n continue;\n }\n if (lastPotentialCallable && (token.type === \"WhiteSpace\" || token.type === \"LineTerminatorSequence\" || token.type === \"Punctuator\" && (token.value === \"?.\" || token.value === \"!\"))) {\n stackedHighlight += colorize(defs, type, token.value);\n continue;\n }\n if (stackedHighlight && !lastPotentialCallable && (highlighted += stackedHighlight, stackedHighlight = \"\"), lastPotentialCallable) {\n let type2 = token.type === \"Punctuator\" && token.value === \"(\" ? getCallableType(lastPotentialCallable) : getTokenType(lastPotentialCallable);\n highlighted += colorize(defs, type2, lastPotentialCallable.value) + stackedHighlight, stackedHighlight = \"\", lastPotentialCallable = null;\n }\n highlighted += colorize(defs, type, token.value);\n }\n return highlighted;\n};\nfunction highlight$1(code, options = { jsx: !1, colors: {} }) {\n return code && highlightTokens(options.colors || {}, code, options.jsx);\n}\n\nfunction getDefs(c2) {\n const Invalid = (text) => c2.white(c2.bgRed(c2.bold(text)));\n return {\n Keyword: c2.magenta,\n IdentifierCapitalized: c2.yellow,\n Punctuator: c2.yellow,\n StringLiteral: c2.green,\n NoSubstitutionTemplate: c2.green,\n MultiLineComment: c2.gray,\n SingleLineComment: c2.gray,\n RegularExpressionLiteral: c2.cyan,\n NumericLiteral: c2.blue,\n TemplateHead: (text) => c2.green(text.slice(0, text.length - 2)) + c2.cyan(text.slice(-2)),\n TemplateTail: (text) => c2.cyan(text.slice(0, 1)) + c2.green(text.slice(1)),\n TemplateMiddle: (text) => c2.cyan(text.slice(0, 1)) + c2.green(text.slice(1, text.length - 2)) + c2.cyan(text.slice(-2)),\n IdentifierCallable: c2.blue,\n PrivateIdentifierCallable: (text) => `#${c2.blue(text.slice(1))}`,\n Invalid,\n JSXString: c2.green,\n JSXIdentifier: c2.yellow,\n JSXInvalid: Invalid,\n JSXPunctuator: c2.yellow\n };\n}\nfunction highlight(code, options = { jsx: false }) {\n return highlight$1(code, {\n jsx: options.jsx,\n colors: getDefs(options.colors || c)\n });\n}\n\nconst urlAlphabet = \"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\";\nfunction nanoid(size = 21) {\n let id = \"\";\n let i = size;\n while (i--) {\n id += urlAlphabet[Math.random() * 64 | 0];\n }\n return id;\n}\n\nconst lineSplitRE = /\\r?\\n/;\nfunction positionToOffset(source, lineNumber, columnNumber) {\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let start = 0;\n if (lineNumber > lines.length) {\n return source.length;\n }\n for (let i = 0; i < lineNumber - 1; i++) {\n start += lines[i].length + nl;\n }\n return start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n if (offset > source.length) {\n throw new Error(\n `offset is longer than source length! offset ${offset} > length ${source.length}`\n );\n }\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let counted = 0;\n let line = 0;\n for (; line < lines.length; line++) {\n const lineLength = lines[line].length + nl;\n if (counted + lineLength >= offset) {\n break;\n }\n counted += lineLength;\n }\n return line + 1;\n}\n\nconst RealDate = Date;\nfunction random(seed) {\n const x = Math.sin(seed++) * 1e4;\n return x - Math.floor(x);\n}\nfunction shuffle(array, seed = RealDate.now()) {\n let length = array.length;\n while (length) {\n const index = Math.floor(random(seed) * length--);\n const previous = array[length];\n array[length] = array[index];\n array[index] = previous;\n ++seed;\n }\n return array;\n}\n\nconst SAFE_TIMERS_SYMBOL = Symbol(\"vitest:SAFE_TIMERS\");\nfunction getSafeTimers() {\n const {\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis;\n const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() };\n return {\n nextTick: safeNextTick,\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n };\n}\nfunction setSafeTimers() {\n const {\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n } = globalThis;\n const { nextTick: safeNextTick } = globalThis.process || {\n nextTick: (cb) => cb()\n };\n const timers = {\n nextTick: safeNextTick,\n setTimeout: safeSetTimeout,\n setInterval: safeSetInterval,\n clearInterval: safeClearInterval,\n clearTimeout: safeClearTimeout,\n setImmediate: safeSetImmediate,\n clearImmediate: safeClearImmediate\n };\n globalThis[SAFE_TIMERS_SYMBOL] = timers;\n}\n\nexport { getSafeTimers, highlight, lineSplitRE, nanoid, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle };\n","import { format, plugins } from '@vitest/pretty-format';\nimport c from 'tinyrainbow';\nimport { g as getDefaultExportFromCjs, s as stringify } from './chunk-_commonjsHelpers.js';\nimport { deepClone, getOwnProperties, getType as getType$1 } from './helpers.js';\nimport 'loupe';\n\nconst DIFF_DELETE = -1;\nconst DIFF_INSERT = 1;\nconst DIFF_EQUAL = 0;\nclass Diff {\n 0;\n 1;\n constructor(op, text) {\n this[0] = op;\n this[1] = text;\n }\n}\nconst diff_commonPrefix = function(text1, text2) {\n if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {\n return 0;\n }\n let pointermin = 0;\n let pointermax = Math.min(text1.length, text2.length);\n let pointermid = pointermax;\n let pointerstart = 0;\n while (pointermin < pointermid) {\n if (text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid)) {\n pointermin = pointermid;\n pointerstart = pointermin;\n } else {\n pointermax = pointermid;\n }\n pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n }\n return pointermid;\n};\nconst diff_commonSuffix = function(text1, text2) {\n if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) {\n return 0;\n }\n let pointermin = 0;\n let pointermax = Math.min(text1.length, text2.length);\n let pointermid = pointermax;\n let pointerend = 0;\n while (pointermin < pointermid) {\n if (text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend)) {\n pointermin = pointermid;\n pointerend = pointermin;\n } else {\n pointermax = pointermid;\n }\n pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n }\n return pointermid;\n};\nconst diff_commonOverlap_ = function(text1, text2) {\n const text1_length = text1.length;\n const text2_length = text2.length;\n if (text1_length === 0 || text2_length === 0) {\n return 0;\n }\n if (text1_length > text2_length) {\n text1 = text1.substring(text1_length - text2_length);\n } else if (text1_length < text2_length) {\n text2 = text2.substring(0, text1_length);\n }\n const text_length = Math.min(text1_length, text2_length);\n if (text1 === text2) {\n return text_length;\n }\n let best = 0;\n let length = 1;\n while (true) {\n const pattern = text1.substring(text_length - length);\n const found = text2.indexOf(pattern);\n if (found === -1) {\n return best;\n }\n length += found;\n if (found === 0 || text1.substring(text_length - length) === text2.substring(0, length)) {\n best = length;\n length++;\n }\n }\n};\nconst diff_cleanupSemantic = function(diffs) {\n let changes = false;\n const equalities = [];\n let equalitiesLength = 0;\n let lastEquality = null;\n let pointer = 0;\n let length_insertions1 = 0;\n let length_deletions1 = 0;\n let length_insertions2 = 0;\n let length_deletions2 = 0;\n while (pointer < diffs.length) {\n if (diffs[pointer][0] === DIFF_EQUAL) {\n equalities[equalitiesLength++] = pointer;\n length_insertions1 = length_insertions2;\n length_deletions1 = length_deletions2;\n length_insertions2 = 0;\n length_deletions2 = 0;\n lastEquality = diffs[pointer][1];\n } else {\n if (diffs[pointer][0] === DIFF_INSERT) {\n length_insertions2 += diffs[pointer][1].length;\n } else {\n length_deletions2 += diffs[pointer][1].length;\n }\n if (lastEquality && lastEquality.length <= Math.max(length_insertions1, length_deletions1) && lastEquality.length <= Math.max(length_insertions2, length_deletions2)) {\n diffs.splice(\n equalities[equalitiesLength - 1],\n 0,\n new Diff(DIFF_DELETE, lastEquality)\n );\n diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;\n equalitiesLength--;\n equalitiesLength--;\n pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;\n length_insertions1 = 0;\n length_deletions1 = 0;\n length_insertions2 = 0;\n length_deletions2 = 0;\n lastEquality = null;\n changes = true;\n }\n }\n pointer++;\n }\n if (changes) {\n diff_cleanupMerge(diffs);\n }\n diff_cleanupSemanticLossless(diffs);\n pointer = 1;\n while (pointer < diffs.length) {\n if (diffs[pointer - 1][0] === DIFF_DELETE && diffs[pointer][0] === DIFF_INSERT) {\n const deletion = diffs[pointer - 1][1];\n const insertion = diffs[pointer][1];\n const overlap_length1 = diff_commonOverlap_(deletion, insertion);\n const overlap_length2 = diff_commonOverlap_(insertion, deletion);\n if (overlap_length1 >= overlap_length2) {\n if (overlap_length1 >= deletion.length / 2 || overlap_length1 >= insertion.length / 2) {\n diffs.splice(\n pointer,\n 0,\n new Diff(DIFF_EQUAL, insertion.substring(0, overlap_length1))\n );\n diffs[pointer - 1][1] = deletion.substring(\n 0,\n deletion.length - overlap_length1\n );\n diffs[pointer + 1][1] = insertion.substring(overlap_length1);\n pointer++;\n }\n } else {\n if (overlap_length2 >= deletion.length / 2 || overlap_length2 >= insertion.length / 2) {\n diffs.splice(\n pointer,\n 0,\n new Diff(DIFF_EQUAL, deletion.substring(0, overlap_length2))\n );\n diffs[pointer - 1][0] = DIFF_INSERT;\n diffs[pointer - 1][1] = insertion.substring(\n 0,\n insertion.length - overlap_length2\n );\n diffs[pointer + 1][0] = DIFF_DELETE;\n diffs[pointer + 1][1] = deletion.substring(overlap_length2);\n pointer++;\n }\n }\n pointer++;\n }\n pointer++;\n }\n};\nconst nonAlphaNumericRegex_ = /[^a-z0-9]/i;\nconst whitespaceRegex_ = /\\s/;\nconst linebreakRegex_ = /[\\r\\n]/;\nconst blanklineEndRegex_ = /\\n\\r?\\n$/;\nconst blanklineStartRegex_ = /^\\r?\\n\\r?\\n/;\nfunction diff_cleanupSemanticLossless(diffs) {\n let pointer = 1;\n while (pointer < diffs.length - 1) {\n if (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) {\n let equality1 = diffs[pointer - 1][1];\n let edit = diffs[pointer][1];\n let equality2 = diffs[pointer + 1][1];\n const commonOffset = diff_commonSuffix(equality1, edit);\n if (commonOffset) {\n const commonString = edit.substring(edit.length - commonOffset);\n equality1 = equality1.substring(0, equality1.length - commonOffset);\n edit = commonString + edit.substring(0, edit.length - commonOffset);\n equality2 = commonString + equality2;\n }\n let bestEquality1 = equality1;\n let bestEdit = edit;\n let bestEquality2 = equality2;\n let bestScore = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);\n while (edit.charAt(0) === equality2.charAt(0)) {\n equality1 += edit.charAt(0);\n edit = edit.substring(1) + equality2.charAt(0);\n equality2 = equality2.substring(1);\n const score = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2);\n if (score >= bestScore) {\n bestScore = score;\n bestEquality1 = equality1;\n bestEdit = edit;\n bestEquality2 = equality2;\n }\n }\n if (diffs[pointer - 1][1] !== bestEquality1) {\n if (bestEquality1) {\n diffs[pointer - 1][1] = bestEquality1;\n } else {\n diffs.splice(pointer - 1, 1);\n pointer--;\n }\n diffs[pointer][1] = bestEdit;\n if (bestEquality2) {\n diffs[pointer + 1][1] = bestEquality2;\n } else {\n diffs.splice(pointer + 1, 1);\n pointer--;\n }\n }\n }\n pointer++;\n }\n}\nfunction diff_cleanupMerge(diffs) {\n diffs.push(new Diff(DIFF_EQUAL, \"\"));\n let pointer = 0;\n let count_delete = 0;\n let count_insert = 0;\n let text_delete = \"\";\n let text_insert = \"\";\n let commonlength;\n while (pointer < diffs.length) {\n switch (diffs[pointer][0]) {\n case DIFF_INSERT:\n count_insert++;\n text_insert += diffs[pointer][1];\n pointer++;\n break;\n case DIFF_DELETE:\n count_delete++;\n text_delete += diffs[pointer][1];\n pointer++;\n break;\n case DIFF_EQUAL:\n if (count_delete + count_insert > 1) {\n if (count_delete !== 0 && count_insert !== 0) {\n commonlength = diff_commonPrefix(text_insert, text_delete);\n if (commonlength !== 0) {\n if (pointer - count_delete - count_insert > 0 && diffs[pointer - count_delete - count_insert - 1][0] === DIFF_EQUAL) {\n diffs[pointer - count_delete - count_insert - 1][1] += text_insert.substring(0, commonlength);\n } else {\n diffs.splice(\n 0,\n 0,\n new Diff(DIFF_EQUAL, text_insert.substring(0, commonlength))\n );\n pointer++;\n }\n text_insert = text_insert.substring(commonlength);\n text_delete = text_delete.substring(commonlength);\n }\n commonlength = diff_commonSuffix(text_insert, text_delete);\n if (commonlength !== 0) {\n diffs[pointer][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];\n text_insert = text_insert.substring(\n 0,\n text_insert.length - commonlength\n );\n text_delete = text_delete.substring(\n 0,\n text_delete.length - commonlength\n );\n }\n }\n pointer -= count_delete + count_insert;\n diffs.splice(pointer, count_delete + count_insert);\n if (text_delete.length) {\n diffs.splice(pointer, 0, new Diff(DIFF_DELETE, text_delete));\n pointer++;\n }\n if (text_insert.length) {\n diffs.splice(pointer, 0, new Diff(DIFF_INSERT, text_insert));\n pointer++;\n }\n pointer++;\n } else if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {\n diffs[pointer - 1][1] += diffs[pointer][1];\n diffs.splice(pointer, 1);\n } else {\n pointer++;\n }\n count_insert = 0;\n count_delete = 0;\n text_delete = \"\";\n text_insert = \"\";\n break;\n }\n }\n if (diffs[diffs.length - 1][1] === \"\") {\n diffs.pop();\n }\n let changes = false;\n pointer = 1;\n while (pointer < diffs.length - 1) {\n if (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) {\n if (diffs[pointer][1].substring(\n diffs[pointer][1].length - diffs[pointer - 1][1].length\n ) === diffs[pointer - 1][1]) {\n diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(\n 0,\n diffs[pointer][1].length - diffs[pointer - 1][1].length\n );\n diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];\n diffs.splice(pointer - 1, 1);\n changes = true;\n } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) === diffs[pointer + 1][1]) {\n diffs[pointer - 1][1] += diffs[pointer + 1][1];\n diffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1];\n diffs.splice(pointer + 1, 1);\n changes = true;\n }\n }\n pointer++;\n }\n if (changes) {\n diff_cleanupMerge(diffs);\n }\n}\nfunction diff_cleanupSemanticScore_(one, two) {\n if (!one || !two) {\n return 6;\n }\n const char1 = one.charAt(one.length - 1);\n const char2 = two.charAt(0);\n const nonAlphaNumeric1 = char1.match(nonAlphaNumericRegex_);\n const nonAlphaNumeric2 = char2.match(nonAlphaNumericRegex_);\n const whitespace1 = nonAlphaNumeric1 && char1.match(whitespaceRegex_);\n const whitespace2 = nonAlphaNumeric2 && char2.match(whitespaceRegex_);\n const lineBreak1 = whitespace1 && char1.match(linebreakRegex_);\n const lineBreak2 = whitespace2 && char2.match(linebreakRegex_);\n const blankLine1 = lineBreak1 && one.match(blanklineEndRegex_);\n const blankLine2 = lineBreak2 && two.match(blanklineStartRegex_);\n if (blankLine1 || blankLine2) {\n return 5;\n } else if (lineBreak1 || lineBreak2) {\n return 4;\n } else if (nonAlphaNumeric1 && !whitespace1 && whitespace2) {\n return 3;\n } else if (whitespace1 || whitespace2) {\n return 2;\n } else if (nonAlphaNumeric1 || nonAlphaNumeric2) {\n return 1;\n }\n return 0;\n}\n\nconst NO_DIFF_MESSAGE = \"Compared values have no visual difference.\";\nconst SIMILAR_MESSAGE = \"Compared values serialize to the same structure.\\nPrinting internal object structure without calling `toJSON` instead.\";\n\nvar build = {};\n\nvar hasRequiredBuild;\n\nfunction requireBuild () {\n\tif (hasRequiredBuild) return build;\n\thasRequiredBuild = 1;\n\n\tObject.defineProperty(build, '__esModule', {\n\t value: true\n\t});\n\tbuild.default = diffSequence;\n\t/**\n\t * Copyright (c) Meta Platforms, Inc. and affiliates.\n\t *\n\t * This source code is licensed under the MIT license found in the\n\t * LICENSE file in the root directory of this source tree.\n\t *\n\t */\n\n\t// This diff-sequences package implements the linear space variation in\n\t// An O(ND) Difference Algorithm and Its Variations by Eugene W. Myers\n\n\t// Relationship in notation between Myers paper and this package:\n\t// A is a\n\t// N is aLength, aEnd - aStart, and so on\n\t// x is aIndex, aFirst, aLast, and so on\n\t// B is b\n\t// M is bLength, bEnd - bStart, and so on\n\t// y is bIndex, bFirst, bLast, and so on\n\t// Δ = N - M is negative of baDeltaLength = bLength - aLength\n\t// D is d\n\t// k is kF\n\t// k + Δ is kF = kR - baDeltaLength\n\t// V is aIndexesF or aIndexesR (see comment below about Indexes type)\n\t// index intervals [1, N] and [1, M] are [0, aLength) and [0, bLength)\n\t// starting point in forward direction (0, 0) is (-1, -1)\n\t// starting point in reverse direction (N + 1, M + 1) is (aLength, bLength)\n\n\t// The “edit graph” for sequences a and b corresponds to items:\n\t// in a on the horizontal axis\n\t// in b on the vertical axis\n\t//\n\t// Given a-coordinate of a point in a diagonal, you can compute b-coordinate.\n\t//\n\t// Forward diagonals kF:\n\t// zero diagonal intersects top left corner\n\t// positive diagonals intersect top edge\n\t// negative diagonals insersect left edge\n\t//\n\t// Reverse diagonals kR:\n\t// zero diagonal intersects bottom right corner\n\t// positive diagonals intersect right edge\n\t// negative diagonals intersect bottom edge\n\n\t// The graph contains a directed acyclic graph of edges:\n\t// horizontal: delete an item from a\n\t// vertical: insert an item from b\n\t// diagonal: common item in a and b\n\t//\n\t// The algorithm solves dual problems in the graph analogy:\n\t// Find longest common subsequence: path with maximum number of diagonal edges\n\t// Find shortest edit script: path with minimum number of non-diagonal edges\n\n\t// Input callback function compares items at indexes in the sequences.\n\n\t// Output callback function receives the number of adjacent items\n\t// and starting indexes of each common subsequence.\n\t// Either original functions or wrapped to swap indexes if graph is transposed.\n\t// Indexes in sequence a of last point of forward or reverse paths in graph.\n\t// Myers algorithm indexes by diagonal k which for negative is bad deopt in V8.\n\t// This package indexes by iF and iR which are greater than or equal to zero.\n\t// and also updates the index arrays in place to cut memory in half.\n\t// kF = 2 * iF - d\n\t// kR = d - 2 * iR\n\t// Division of index intervals in sequences a and b at the middle change.\n\t// Invariant: intervals do not have common items at the start or end.\n\tconst pkg = 'diff-sequences'; // for error messages\n\tconst NOT_YET_SET = 0; // small int instead of undefined to avoid deopt in V8\n\n\t// Return the number of common items that follow in forward direction.\n\t// The length of what Myers paper calls a “snake” in a forward path.\n\tconst countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => {\n\t let nCommon = 0;\n\t while (aIndex < aEnd && bIndex < bEnd && isCommon(aIndex, bIndex)) {\n\t aIndex += 1;\n\t bIndex += 1;\n\t nCommon += 1;\n\t }\n\t return nCommon;\n\t};\n\n\t// Return the number of common items that precede in reverse direction.\n\t// The length of what Myers paper calls a “snake” in a reverse path.\n\tconst countCommonItemsR = (aStart, aIndex, bStart, bIndex, isCommon) => {\n\t let nCommon = 0;\n\t while (aStart <= aIndex && bStart <= bIndex && isCommon(aIndex, bIndex)) {\n\t aIndex -= 1;\n\t bIndex -= 1;\n\t nCommon += 1;\n\t }\n\t return nCommon;\n\t};\n\n\t// A simple function to extend forward paths from (d - 1) to d changes\n\t// when forward and reverse paths cannot yet overlap.\n\tconst extendPathsF = (\n\t d,\n\t aEnd,\n\t bEnd,\n\t bF,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF // return the value because optimization might decrease it\n\t) => {\n\t // Unroll the first iteration.\n\t let iF = 0;\n\t let kF = -d; // kF = 2 * iF - d\n\t let aFirst = aIndexesF[iF]; // in first iteration always insert\n\t let aIndexPrev1 = aFirst; // prev value of [iF - 1] in next iteration\n\t aIndexesF[iF] += countCommonItemsF(\n\t aFirst + 1,\n\t aEnd,\n\t bF + aFirst - kF + 1,\n\t bEnd,\n\t isCommon\n\t );\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nF = d < iMaxF ? d : iMaxF;\n\n\t // The diagonals kF are odd when d is odd and even when d is even.\n\t for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) {\n\t // To get first point of path segment, move one change in forward direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In last possible iteration when iF === d and kF === d always delete.\n\t if (iF !== d && aIndexPrev1 < aIndexesF[iF]) {\n\t aFirst = aIndexesF[iF]; // vertical to insert from b\n\t } else {\n\t aFirst = aIndexPrev1 + 1; // horizontal to delete from a\n\n\t if (aEnd <= aFirst) {\n\t // Optimization: delete moved past right of graph.\n\t return iF - 1;\n\t }\n\t }\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t aIndexPrev1 = aIndexesF[iF];\n\t aIndexesF[iF] =\n\t aFirst +\n\t countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon);\n\t }\n\t return iMaxF;\n\t};\n\n\t// A simple function to extend reverse paths from (d - 1) to d changes\n\t// when reverse and forward paths cannot yet overlap.\n\tconst extendPathsR = (\n\t d,\n\t aStart,\n\t bStart,\n\t bR,\n\t isCommon,\n\t aIndexesR,\n\t iMaxR // return the value because optimization might decrease it\n\t) => {\n\t // Unroll the first iteration.\n\t let iR = 0;\n\t let kR = d; // kR = d - 2 * iR\n\t let aFirst = aIndexesR[iR]; // in first iteration always insert\n\t let aIndexPrev1 = aFirst; // prev value of [iR - 1] in next iteration\n\t aIndexesR[iR] -= countCommonItemsR(\n\t aStart,\n\t aFirst - 1,\n\t bStart,\n\t bR + aFirst - kR - 1,\n\t isCommon\n\t );\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nR = d < iMaxR ? d : iMaxR;\n\n\t // The diagonals kR are odd when d is odd and even when d is even.\n\t for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) {\n\t // To get first point of path segment, move one change in reverse direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In last possible iteration when iR === d and kR === -d always delete.\n\t if (iR !== d && aIndexesR[iR] < aIndexPrev1) {\n\t aFirst = aIndexesR[iR]; // vertical to insert from b\n\t } else {\n\t aFirst = aIndexPrev1 - 1; // horizontal to delete from a\n\n\t if (aFirst < aStart) {\n\t // Optimization: delete moved past left of graph.\n\t return iR - 1;\n\t }\n\t }\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t aIndexPrev1 = aIndexesR[iR];\n\t aIndexesR[iR] =\n\t aFirst -\n\t countCommonItemsR(\n\t aStart,\n\t aFirst - 1,\n\t bStart,\n\t bR + aFirst - kR - 1,\n\t isCommon\n\t );\n\t }\n\t return iMaxR;\n\t};\n\n\t// A complete function to extend forward paths from (d - 1) to d changes.\n\t// Return true if a path overlaps reverse path of (d - 1) changes in its diagonal.\n\tconst extendOverlappablePathsF = (\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division // update prop values if return true\n\t) => {\n\t const bF = bStart - aStart; // bIndex = bF + aIndex - kF\n\t const aLength = aEnd - aStart;\n\t const bLength = bEnd - bStart;\n\t const baDeltaLength = bLength - aLength; // kF = kR - baDeltaLength\n\n\t // Range of diagonals in which forward and reverse paths might overlap.\n\t const kMinOverlapF = -baDeltaLength - (d - 1); // -(d - 1) <= kR\n\t const kMaxOverlapF = -baDeltaLength + (d - 1); // kR <= (d - 1)\n\n\t let aIndexPrev1 = NOT_YET_SET; // prev value of [iF - 1] in next iteration\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nF = d < iMaxF ? d : iMaxF;\n\n\t // The diagonals kF = 2 * iF - d are odd when d is odd and even when d is even.\n\t for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) {\n\t // To get first point of path segment, move one change in forward direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In first iteration when iF === 0 and kF === -d always insert.\n\t // In last possible iteration when iF === d and kF === d always delete.\n\t const insert = iF === 0 || (iF !== d && aIndexPrev1 < aIndexesF[iF]);\n\t const aLastPrev = insert ? aIndexesF[iF] : aIndexPrev1;\n\t const aFirst = insert\n\t ? aLastPrev // vertical to insert from b\n\t : aLastPrev + 1; // horizontal to delete from a\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t const bFirst = bF + aFirst - kF;\n\t const nCommonF = countCommonItemsF(\n\t aFirst + 1,\n\t aEnd,\n\t bFirst + 1,\n\t bEnd,\n\t isCommon\n\t );\n\t const aLast = aFirst + nCommonF;\n\t aIndexPrev1 = aIndexesF[iF];\n\t aIndexesF[iF] = aLast;\n\t if (kMinOverlapF <= kF && kF <= kMaxOverlapF) {\n\t // Solve for iR of reverse path with (d - 1) changes in diagonal kF:\n\t // kR = kF + baDeltaLength\n\t // kR = (d - 1) - 2 * iR\n\t const iR = (d - 1 - (kF + baDeltaLength)) / 2;\n\n\t // If this forward path overlaps the reverse path in this diagonal,\n\t // then this is the middle change of the index intervals.\n\t if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) {\n\t // Unlike the Myers algorithm which finds only the middle “snake”\n\t // this package can find two common subsequences per division.\n\t // Last point of previous path segment is on an adjacent diagonal.\n\t const bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1);\n\n\t // Because of invariant that intervals preceding the middle change\n\t // cannot have common items at the end,\n\t // move in reverse direction along a diagonal of common items.\n\t const nCommonR = countCommonItemsR(\n\t aStart,\n\t aLastPrev,\n\t bStart,\n\t bLastPrev,\n\t isCommon\n\t );\n\t const aIndexPrevFirst = aLastPrev - nCommonR;\n\t const bIndexPrevFirst = bLastPrev - nCommonR;\n\t const aEndPreceding = aIndexPrevFirst + 1;\n\t const bEndPreceding = bIndexPrevFirst + 1;\n\t division.nChangePreceding = d - 1;\n\t if (d - 1 === aEndPreceding + bEndPreceding - aStart - bStart) {\n\t // Optimization: number of preceding changes in forward direction\n\t // is equal to number of items in preceding interval,\n\t // therefore it cannot contain any common items.\n\t division.aEndPreceding = aStart;\n\t division.bEndPreceding = bStart;\n\t } else {\n\t division.aEndPreceding = aEndPreceding;\n\t division.bEndPreceding = bEndPreceding;\n\t }\n\t division.nCommonPreceding = nCommonR;\n\t if (nCommonR !== 0) {\n\t division.aCommonPreceding = aEndPreceding;\n\t division.bCommonPreceding = bEndPreceding;\n\t }\n\t division.nCommonFollowing = nCommonF;\n\t if (nCommonF !== 0) {\n\t division.aCommonFollowing = aFirst + 1;\n\t division.bCommonFollowing = bFirst + 1;\n\t }\n\t const aStartFollowing = aLast + 1;\n\t const bStartFollowing = bFirst + nCommonF + 1;\n\t division.nChangeFollowing = d - 1;\n\t if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {\n\t // Optimization: number of changes in reverse direction\n\t // is equal to number of items in following interval,\n\t // therefore it cannot contain any common items.\n\t division.aStartFollowing = aEnd;\n\t division.bStartFollowing = bEnd;\n\t } else {\n\t division.aStartFollowing = aStartFollowing;\n\t division.bStartFollowing = bStartFollowing;\n\t }\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t};\n\n\t// A complete function to extend reverse paths from (d - 1) to d changes.\n\t// Return true if a path overlaps forward path of d changes in its diagonal.\n\tconst extendOverlappablePathsR = (\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division // update prop values if return true\n\t) => {\n\t const bR = bEnd - aEnd; // bIndex = bR + aIndex - kR\n\t const aLength = aEnd - aStart;\n\t const bLength = bEnd - bStart;\n\t const baDeltaLength = bLength - aLength; // kR = kF + baDeltaLength\n\n\t // Range of diagonals in which forward and reverse paths might overlap.\n\t const kMinOverlapR = baDeltaLength - d; // -d <= kF\n\t const kMaxOverlapR = baDeltaLength + d; // kF <= d\n\n\t let aIndexPrev1 = NOT_YET_SET; // prev value of [iR - 1] in next iteration\n\n\t // Optimization: skip diagonals in which paths cannot ever overlap.\n\t const nR = d < iMaxR ? d : iMaxR;\n\n\t // The diagonals kR = d - 2 * iR are odd when d is odd and even when d is even.\n\t for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) {\n\t // To get first point of path segment, move one change in reverse direction\n\t // from last point of previous path segment in an adjacent diagonal.\n\t // In first iteration when iR === 0 and kR === d always insert.\n\t // In last possible iteration when iR === d and kR === -d always delete.\n\t const insert = iR === 0 || (iR !== d && aIndexesR[iR] < aIndexPrev1);\n\t const aLastPrev = insert ? aIndexesR[iR] : aIndexPrev1;\n\t const aFirst = insert\n\t ? aLastPrev // vertical to insert from b\n\t : aLastPrev - 1; // horizontal to delete from a\n\n\t // To get last point of path segment, move along diagonal of common items.\n\t const bFirst = bR + aFirst - kR;\n\t const nCommonR = countCommonItemsR(\n\t aStart,\n\t aFirst - 1,\n\t bStart,\n\t bFirst - 1,\n\t isCommon\n\t );\n\t const aLast = aFirst - nCommonR;\n\t aIndexPrev1 = aIndexesR[iR];\n\t aIndexesR[iR] = aLast;\n\t if (kMinOverlapR <= kR && kR <= kMaxOverlapR) {\n\t // Solve for iF of forward path with d changes in diagonal kR:\n\t // kF = kR - baDeltaLength\n\t // kF = 2 * iF - d\n\t const iF = (d + (kR - baDeltaLength)) / 2;\n\n\t // If this reverse path overlaps the forward path in this diagonal,\n\t // then this is a middle change of the index intervals.\n\t if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) {\n\t const bLast = bFirst - nCommonR;\n\t division.nChangePreceding = d;\n\t if (d === aLast + bLast - aStart - bStart) {\n\t // Optimization: number of changes in reverse direction\n\t // is equal to number of items in preceding interval,\n\t // therefore it cannot contain any common items.\n\t division.aEndPreceding = aStart;\n\t division.bEndPreceding = bStart;\n\t } else {\n\t division.aEndPreceding = aLast;\n\t division.bEndPreceding = bLast;\n\t }\n\t division.nCommonPreceding = nCommonR;\n\t if (nCommonR !== 0) {\n\t // The last point of reverse path segment is start of common subsequence.\n\t division.aCommonPreceding = aLast;\n\t division.bCommonPreceding = bLast;\n\t }\n\t division.nChangeFollowing = d - 1;\n\t if (d === 1) {\n\t // There is no previous path segment.\n\t division.nCommonFollowing = 0;\n\t division.aStartFollowing = aEnd;\n\t division.bStartFollowing = bEnd;\n\t } else {\n\t // Unlike the Myers algorithm which finds only the middle “snake”\n\t // this package can find two common subsequences per division.\n\t // Last point of previous path segment is on an adjacent diagonal.\n\t const bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1);\n\n\t // Because of invariant that intervals following the middle change\n\t // cannot have common items at the start,\n\t // move in forward direction along a diagonal of common items.\n\t const nCommonF = countCommonItemsF(\n\t aLastPrev,\n\t aEnd,\n\t bLastPrev,\n\t bEnd,\n\t isCommon\n\t );\n\t division.nCommonFollowing = nCommonF;\n\t if (nCommonF !== 0) {\n\t // The last point of reverse path segment is start of common subsequence.\n\t division.aCommonFollowing = aLastPrev;\n\t division.bCommonFollowing = bLastPrev;\n\t }\n\t const aStartFollowing = aLastPrev + nCommonF; // aFirstPrev\n\t const bStartFollowing = bLastPrev + nCommonF; // bFirstPrev\n\n\t if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) {\n\t // Optimization: number of changes in forward direction\n\t // is equal to number of items in following interval,\n\t // therefore it cannot contain any common items.\n\t division.aStartFollowing = aEnd;\n\t division.bStartFollowing = bEnd;\n\t } else {\n\t division.aStartFollowing = aStartFollowing;\n\t division.bStartFollowing = bStartFollowing;\n\t }\n\t }\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t};\n\n\t// Given index intervals and input function to compare items at indexes,\n\t// divide at the middle change.\n\t//\n\t// DO NOT CALL if start === end, because interval cannot contain common items\n\t// and because this function will throw the “no overlap” error.\n\tconst divide = (\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t aIndexesR,\n\t division // output\n\t) => {\n\t const bF = bStart - aStart; // bIndex = bF + aIndex - kF\n\t const bR = bEnd - aEnd; // bIndex = bR + aIndex - kR\n\t const aLength = aEnd - aStart;\n\t const bLength = bEnd - bStart;\n\n\t // Because graph has square or portrait orientation,\n\t // length difference is minimum number of items to insert from b.\n\t // Corresponding forward and reverse diagonals in graph\n\t // depend on length difference of the sequences:\n\t // kF = kR - baDeltaLength\n\t // kR = kF + baDeltaLength\n\t const baDeltaLength = bLength - aLength;\n\n\t // Optimization: max diagonal in graph intersects corner of shorter side.\n\t let iMaxF = aLength;\n\t let iMaxR = aLength;\n\n\t // Initialize no changes yet in forward or reverse direction:\n\t aIndexesF[0] = aStart - 1; // at open start of interval, outside closed start\n\t aIndexesR[0] = aEnd; // at open end of interval\n\n\t if (baDeltaLength % 2 === 0) {\n\t // The number of changes in paths is 2 * d if length difference is even.\n\t const dMin = (nChange || baDeltaLength) / 2;\n\t const dMax = (aLength + bLength) / 2;\n\t for (let d = 1; d <= dMax; d += 1) {\n\t iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);\n\t if (d < dMin) {\n\t iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR);\n\t } else if (\n\t // If a reverse path overlaps a forward path in the same diagonal,\n\t // return a division of the index intervals at the middle change.\n\t extendOverlappablePathsR(\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division\n\t )\n\t ) {\n\t return;\n\t }\n\t }\n\t } else {\n\t // The number of changes in paths is 2 * d - 1 if length difference is odd.\n\t const dMin = ((nChange || baDeltaLength) + 1) / 2;\n\t const dMax = (aLength + bLength + 1) / 2;\n\n\t // Unroll first half iteration so loop extends the relevant pairs of paths.\n\t // Because of invariant that intervals have no common items at start or end,\n\t // and limitation not to call divide with empty intervals,\n\t // therefore it cannot be called if a forward path with one change\n\t // would overlap a reverse path with no changes, even if dMin === 1.\n\t let d = 1;\n\t iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);\n\t for (d += 1; d <= dMax; d += 1) {\n\t iMaxR = extendPathsR(\n\t d - 1,\n\t aStart,\n\t bStart,\n\t bR,\n\t isCommon,\n\t aIndexesR,\n\t iMaxR\n\t );\n\t if (d < dMin) {\n\t iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF);\n\t } else if (\n\t // If a forward path overlaps a reverse path in the same diagonal,\n\t // return a division of the index intervals at the middle change.\n\t extendOverlappablePathsF(\n\t d,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t iMaxF,\n\t aIndexesR,\n\t iMaxR,\n\t division\n\t )\n\t ) {\n\t return;\n\t }\n\t }\n\t }\n\n\t /* istanbul ignore next */\n\t throw new Error(\n\t `${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}`\n\t );\n\t};\n\n\t// Given index intervals and input function to compare items at indexes,\n\t// return by output function the number of adjacent items and starting indexes\n\t// of each common subsequence. Divide and conquer with only linear space.\n\t//\n\t// The index intervals are half open [start, end) like array slice method.\n\t// DO NOT CALL if start === end, because interval cannot contain common items\n\t// and because divide function will throw the “no overlap” error.\n\tconst findSubsequences = (\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division // temporary memory, not input nor output\n\t) => {\n\t if (bEnd - bStart < aEnd - aStart) {\n\t // Transpose graph so it has portrait instead of landscape orientation.\n\t // Always compare shorter to longer sequence for consistency and optimization.\n\t transposed = !transposed;\n\t if (transposed && callbacks.length === 1) {\n\t // Lazily wrap callback functions to swap args if graph is transposed.\n\t const {foundSubsequence, isCommon} = callbacks[0];\n\t callbacks[1] = {\n\t foundSubsequence: (nCommon, bCommon, aCommon) => {\n\t foundSubsequence(nCommon, aCommon, bCommon);\n\t },\n\t isCommon: (bIndex, aIndex) => isCommon(aIndex, bIndex)\n\t };\n\t }\n\t const tStart = aStart;\n\t const tEnd = aEnd;\n\t aStart = bStart;\n\t aEnd = bEnd;\n\t bStart = tStart;\n\t bEnd = tEnd;\n\t }\n\t const {foundSubsequence, isCommon} = callbacks[transposed ? 1 : 0];\n\n\t // Divide the index intervals at the middle change.\n\t divide(\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t isCommon,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t const {\n\t nChangePreceding,\n\t aEndPreceding,\n\t bEndPreceding,\n\t nCommonPreceding,\n\t aCommonPreceding,\n\t bCommonPreceding,\n\t nCommonFollowing,\n\t aCommonFollowing,\n\t bCommonFollowing,\n\t nChangeFollowing,\n\t aStartFollowing,\n\t bStartFollowing\n\t } = division;\n\n\t // Unless either index interval is empty, they might contain common items.\n\t if (aStart < aEndPreceding && bStart < bEndPreceding) {\n\t // Recursely find and return common subsequences preceding the division.\n\t findSubsequences(\n\t nChangePreceding,\n\t aStart,\n\t aEndPreceding,\n\t bStart,\n\t bEndPreceding,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t }\n\n\t // Return common subsequences that are adjacent to the middle change.\n\t if (nCommonPreceding !== 0) {\n\t foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding);\n\t }\n\t if (nCommonFollowing !== 0) {\n\t foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing);\n\t }\n\n\t // Unless either index interval is empty, they might contain common items.\n\t if (aStartFollowing < aEnd && bStartFollowing < bEnd) {\n\t // Recursely find and return common subsequences following the division.\n\t findSubsequences(\n\t nChangeFollowing,\n\t aStartFollowing,\n\t aEnd,\n\t bStartFollowing,\n\t bEnd,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t }\n\t};\n\tconst validateLength = (name, arg) => {\n\t if (typeof arg !== 'number') {\n\t throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);\n\t }\n\t if (!Number.isSafeInteger(arg)) {\n\t throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`);\n\t }\n\t if (arg < 0) {\n\t throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`);\n\t }\n\t};\n\tconst validateCallback = (name, arg) => {\n\t const type = typeof arg;\n\t if (type !== 'function') {\n\t throw new TypeError(`${pkg}: ${name} typeof ${type} is not a function`);\n\t }\n\t};\n\n\t// Compare items in two sequences to find a longest common subsequence.\n\t// Given lengths of sequences and input function to compare items at indexes,\n\t// return by output function the number of adjacent items and starting indexes\n\t// of each common subsequence.\n\tfunction diffSequence(aLength, bLength, isCommon, foundSubsequence) {\n\t validateLength('aLength', aLength);\n\t validateLength('bLength', bLength);\n\t validateCallback('isCommon', isCommon);\n\t validateCallback('foundSubsequence', foundSubsequence);\n\n\t // Count common items from the start in the forward direction.\n\t const nCommonF = countCommonItemsF(0, aLength, 0, bLength, isCommon);\n\t if (nCommonF !== 0) {\n\t foundSubsequence(nCommonF, 0, 0);\n\t }\n\n\t // Unless both sequences consist of common items only,\n\t // find common items in the half-trimmed index intervals.\n\t if (aLength !== nCommonF || bLength !== nCommonF) {\n\t // Invariant: intervals do not have common items at the start.\n\t // The start of an index interval is closed like array slice method.\n\t const aStart = nCommonF;\n\t const bStart = nCommonF;\n\n\t // Count common items from the end in the reverse direction.\n\t const nCommonR = countCommonItemsR(\n\t aStart,\n\t aLength - 1,\n\t bStart,\n\t bLength - 1,\n\t isCommon\n\t );\n\n\t // Invariant: intervals do not have common items at the end.\n\t // The end of an index interval is open like array slice method.\n\t const aEnd = aLength - nCommonR;\n\t const bEnd = bLength - nCommonR;\n\n\t // Unless one sequence consists of common items only,\n\t // therefore the other trimmed index interval consists of changes only,\n\t // find common items in the trimmed index intervals.\n\t const nCommonFR = nCommonF + nCommonR;\n\t if (aLength !== nCommonFR && bLength !== nCommonFR) {\n\t const nChange = 0; // number of change items is not yet known\n\t const transposed = false; // call the original unwrapped functions\n\t const callbacks = [\n\t {\n\t foundSubsequence,\n\t isCommon\n\t }\n\t ];\n\n\t // Indexes in sequence a of last points in furthest reaching paths\n\t // from outside the start at top left in the forward direction:\n\t const aIndexesF = [NOT_YET_SET];\n\t // from the end at bottom right in the reverse direction:\n\t const aIndexesR = [NOT_YET_SET];\n\n\t // Initialize one object as output of all calls to divide function.\n\t const division = {\n\t aCommonFollowing: NOT_YET_SET,\n\t aCommonPreceding: NOT_YET_SET,\n\t aEndPreceding: NOT_YET_SET,\n\t aStartFollowing: NOT_YET_SET,\n\t bCommonFollowing: NOT_YET_SET,\n\t bCommonPreceding: NOT_YET_SET,\n\t bEndPreceding: NOT_YET_SET,\n\t bStartFollowing: NOT_YET_SET,\n\t nChangeFollowing: NOT_YET_SET,\n\t nChangePreceding: NOT_YET_SET,\n\t nCommonFollowing: NOT_YET_SET,\n\t nCommonPreceding: NOT_YET_SET\n\t };\n\n\t // Find and return common subsequences in the trimmed index intervals.\n\t findSubsequences(\n\t nChange,\n\t aStart,\n\t aEnd,\n\t bStart,\n\t bEnd,\n\t transposed,\n\t callbacks,\n\t aIndexesF,\n\t aIndexesR,\n\t division\n\t );\n\t }\n\t if (nCommonR !== 0) {\n\t foundSubsequence(nCommonR, aEnd, bEnd);\n\t }\n\t }\n\t}\n\treturn build;\n}\n\nvar buildExports = requireBuild();\nvar diffSequences = /*@__PURE__*/getDefaultExportFromCjs(buildExports);\n\nfunction formatTrailingSpaces(line, trailingSpaceFormatter) {\n return line.replace(/\\s+$/, (match) => trailingSpaceFormatter(match));\n}\nfunction printDiffLine(line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) {\n return line.length !== 0 ? color(\n `${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}`\n ) : indicator !== \" \" ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : \"\";\n}\nfunction printDeleteLine(line, isFirstOrLast, {\n aColor,\n aIndicator,\n changeLineTrailingSpaceColor,\n emptyFirstOrLastLinePlaceholder\n}) {\n return printDiffLine(\n line,\n isFirstOrLast,\n aColor,\n aIndicator,\n changeLineTrailingSpaceColor,\n emptyFirstOrLastLinePlaceholder\n );\n}\nfunction printInsertLine(line, isFirstOrLast, {\n bColor,\n bIndicator,\n changeLineTrailingSpaceColor,\n emptyFirstOrLastLinePlaceholder\n}) {\n return printDiffLine(\n line,\n isFirstOrLast,\n bColor,\n bIndicator,\n changeLineTrailingSpaceColor,\n emptyFirstOrLastLinePlaceholder\n );\n}\nfunction printCommonLine(line, isFirstOrLast, {\n commonColor,\n commonIndicator,\n commonLineTrailingSpaceColor,\n emptyFirstOrLastLinePlaceholder\n}) {\n return printDiffLine(\n line,\n isFirstOrLast,\n commonColor,\n commonIndicator,\n commonLineTrailingSpaceColor,\n emptyFirstOrLastLinePlaceholder\n );\n}\nfunction createPatchMark(aStart, aEnd, bStart, bEnd, { patchColor }) {\n return patchColor(\n `@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`\n );\n}\nfunction joinAlignedDiffsNoExpand(diffs, options) {\n const iLength = diffs.length;\n const nContextLines = options.contextLines;\n const nContextLines2 = nContextLines + nContextLines;\n let jLength = iLength;\n let hasExcessAtStartOrEnd = false;\n let nExcessesBetweenChanges = 0;\n let i = 0;\n while (i !== iLength) {\n const iStart = i;\n while (i !== iLength && diffs[i][0] === DIFF_EQUAL) {\n i += 1;\n }\n if (iStart !== i) {\n if (iStart === 0) {\n if (i > nContextLines) {\n jLength -= i - nContextLines;\n hasExcessAtStartOrEnd = true;\n }\n } else if (i === iLength) {\n const n = i - iStart;\n if (n > nContextLines) {\n jLength -= n - nContextLines;\n hasExcessAtStartOrEnd = true;\n }\n } else {\n const n = i - iStart;\n if (n > nContextLines2) {\n jLength -= n - nContextLines2;\n nExcessesBetweenChanges += 1;\n }\n }\n }\n while (i !== iLength && diffs[i][0] !== DIFF_EQUAL) {\n i += 1;\n }\n }\n const hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd;\n if (nExcessesBetweenChanges !== 0) {\n jLength += nExcessesBetweenChanges + 1;\n } else if (hasExcessAtStartOrEnd) {\n jLength += 1;\n }\n const jLast = jLength - 1;\n const lines = [];\n let jPatchMark = 0;\n if (hasPatch) {\n lines.push(\"\");\n }\n let aStart = 0;\n let bStart = 0;\n let aEnd = 0;\n let bEnd = 0;\n const pushCommonLine = (line) => {\n const j = lines.length;\n lines.push(printCommonLine(line, j === 0 || j === jLast, options));\n aEnd += 1;\n bEnd += 1;\n };\n const pushDeleteLine = (line) => {\n const j = lines.length;\n lines.push(printDeleteLine(line, j === 0 || j === jLast, options));\n aEnd += 1;\n };\n const pushInsertLine = (line) => {\n const j = lines.length;\n lines.push(printInsertLine(line, j === 0 || j === jLast, options));\n bEnd += 1;\n };\n i = 0;\n while (i !== iLength) {\n let iStart = i;\n while (i !== iLength && diffs[i][0] === DIFF_EQUAL) {\n i += 1;\n }\n if (iStart !== i) {\n if (iStart === 0) {\n if (i > nContextLines) {\n iStart = i - nContextLines;\n aStart = iStart;\n bStart = iStart;\n aEnd = aStart;\n bEnd = bStart;\n }\n for (let iCommon = iStart; iCommon !== i; iCommon += 1) {\n pushCommonLine(diffs[iCommon][1]);\n }\n } else if (i === iLength) {\n const iEnd = i - iStart > nContextLines ? iStart + nContextLines : i;\n for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) {\n pushCommonLine(diffs[iCommon][1]);\n }\n } else {\n const nCommon = i - iStart;\n if (nCommon > nContextLines2) {\n const iEnd = iStart + nContextLines;\n for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) {\n pushCommonLine(diffs[iCommon][1]);\n }\n lines[jPatchMark] = createPatchMark(\n aStart,\n aEnd,\n bStart,\n bEnd,\n options\n );\n jPatchMark = lines.length;\n lines.push(\"\");\n const nOmit = nCommon - nContextLines2;\n aStart = aEnd + nOmit;\n bStart = bEnd + nOmit;\n aEnd = aStart;\n bEnd = bStart;\n for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1) {\n pushCommonLine(diffs[iCommon][1]);\n }\n } else {\n for (let iCommon = iStart; iCommon !== i; iCommon += 1) {\n pushCommonLine(diffs[iCommon][1]);\n }\n }\n }\n }\n while (i !== iLength && diffs[i][0] === DIFF_DELETE) {\n pushDeleteLine(diffs[i][1]);\n i += 1;\n }\n while (i !== iLength && diffs[i][0] === DIFF_INSERT) {\n pushInsertLine(diffs[i][1]);\n i += 1;\n }\n }\n if (hasPatch) {\n lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options);\n }\n return lines.join(\"\\n\");\n}\nfunction joinAlignedDiffsExpand(diffs, options) {\n return diffs.map((diff, i, diffs2) => {\n const line = diff[1];\n const isFirstOrLast = i === 0 || i === diffs2.length - 1;\n switch (diff[0]) {\n case DIFF_DELETE:\n return printDeleteLine(line, isFirstOrLast, options);\n case DIFF_INSERT:\n return printInsertLine(line, isFirstOrLast, options);\n default:\n return printCommonLine(line, isFirstOrLast, options);\n }\n }).join(\"\\n\");\n}\n\nconst noColor = (string) => string;\nconst DIFF_CONTEXT_DEFAULT = 5;\nconst DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0;\nfunction getDefaultOptions() {\n return {\n aAnnotation: \"Expected\",\n aColor: c.green,\n aIndicator: \"-\",\n bAnnotation: \"Received\",\n bColor: c.red,\n bIndicator: \"+\",\n changeColor: c.inverse,\n changeLineTrailingSpaceColor: noColor,\n commonColor: c.dim,\n commonIndicator: \" \",\n commonLineTrailingSpaceColor: noColor,\n compareKeys: void 0,\n contextLines: DIFF_CONTEXT_DEFAULT,\n emptyFirstOrLastLinePlaceholder: \"\",\n expand: true,\n includeChangeCounts: false,\n omitAnnotationLines: false,\n patchColor: c.yellow,\n truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,\n truncateAnnotation: \"... Diff result is truncated\",\n truncateAnnotationColor: noColor\n };\n}\nfunction getCompareKeys(compareKeys) {\n return compareKeys && typeof compareKeys === \"function\" ? compareKeys : void 0;\n}\nfunction getContextLines(contextLines) {\n return typeof contextLines === \"number\" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT;\n}\nfunction normalizeDiffOptions(options = {}) {\n return {\n ...getDefaultOptions(),\n ...options,\n compareKeys: getCompareKeys(options.compareKeys),\n contextLines: getContextLines(options.contextLines)\n };\n}\n\nfunction isEmptyString(lines) {\n return lines.length === 1 && lines[0].length === 0;\n}\nfunction countChanges(diffs) {\n let a = 0;\n let b = 0;\n diffs.forEach((diff) => {\n switch (diff[0]) {\n case DIFF_DELETE:\n a += 1;\n break;\n case DIFF_INSERT:\n b += 1;\n break;\n }\n });\n return { a, b };\n}\nfunction printAnnotation({\n aAnnotation,\n aColor,\n aIndicator,\n bAnnotation,\n bColor,\n bIndicator,\n includeChangeCounts,\n omitAnnotationLines\n}, changeCounts) {\n if (omitAnnotationLines) {\n return \"\";\n }\n let aRest = \"\";\n let bRest = \"\";\n if (includeChangeCounts) {\n const aCount = String(changeCounts.a);\n const bCount = String(changeCounts.b);\n const baAnnotationLengthDiff = bAnnotation.length - aAnnotation.length;\n const aAnnotationPadding = \" \".repeat(Math.max(0, baAnnotationLengthDiff));\n const bAnnotationPadding = \" \".repeat(Math.max(0, -baAnnotationLengthDiff));\n const baCountLengthDiff = bCount.length - aCount.length;\n const aCountPadding = \" \".repeat(Math.max(0, baCountLengthDiff));\n const bCountPadding = \" \".repeat(Math.max(0, -baCountLengthDiff));\n aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`;\n bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`;\n }\n const a = `${aIndicator} ${aAnnotation}${aRest}`;\n const b = `${bIndicator} ${bAnnotation}${bRest}`;\n return `${aColor(a)}\n${bColor(b)}\n\n`;\n}\nfunction printDiffLines(diffs, truncated, options) {\n return printAnnotation(options, countChanges(diffs)) + (options.expand ? joinAlignedDiffsExpand(diffs, options) : joinAlignedDiffsNoExpand(diffs, options)) + (truncated ? options.truncateAnnotationColor(`\n${options.truncateAnnotation}`) : \"\");\n}\nfunction diffLinesUnified(aLines, bLines, options) {\n const normalizedOptions = normalizeDiffOptions(options);\n const [diffs, truncated] = diffLinesRaw(\n isEmptyString(aLines) ? [] : aLines,\n isEmptyString(bLines) ? [] : bLines,\n normalizedOptions\n );\n return printDiffLines(diffs, truncated, normalizedOptions);\n}\nfunction diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) {\n if (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare)) {\n aLinesDisplay = [];\n aLinesCompare = [];\n }\n if (isEmptyString(bLinesDisplay) && isEmptyString(bLinesCompare)) {\n bLinesDisplay = [];\n bLinesCompare = [];\n }\n if (aLinesDisplay.length !== aLinesCompare.length || bLinesDisplay.length !== bLinesCompare.length) {\n return diffLinesUnified(aLinesDisplay, bLinesDisplay, options);\n }\n const [diffs, truncated] = diffLinesRaw(\n aLinesCompare,\n bLinesCompare,\n options\n );\n let aIndex = 0;\n let bIndex = 0;\n diffs.forEach((diff) => {\n switch (diff[0]) {\n case DIFF_DELETE:\n diff[1] = aLinesDisplay[aIndex];\n aIndex += 1;\n break;\n case DIFF_INSERT:\n diff[1] = bLinesDisplay[bIndex];\n bIndex += 1;\n break;\n default:\n diff[1] = bLinesDisplay[bIndex];\n aIndex += 1;\n bIndex += 1;\n }\n });\n return printDiffLines(diffs, truncated, normalizeDiffOptions(options));\n}\nfunction diffLinesRaw(aLines, bLines, options) {\n const truncate = (options == null ? void 0 : options.truncateThreshold) ?? false;\n const truncateThreshold = Math.max(\n Math.floor((options == null ? void 0 : options.truncateThreshold) ?? 0),\n 0\n );\n const aLength = truncate ? Math.min(aLines.length, truncateThreshold) : aLines.length;\n const bLength = truncate ? Math.min(bLines.length, truncateThreshold) : bLines.length;\n const truncated = aLength !== aLines.length || bLength !== bLines.length;\n const isCommon = (aIndex2, bIndex2) => aLines[aIndex2] === bLines[bIndex2];\n const diffs = [];\n let aIndex = 0;\n let bIndex = 0;\n const foundSubsequence = (nCommon, aCommon, bCommon) => {\n for (; aIndex !== aCommon; aIndex += 1) {\n diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));\n }\n for (; bIndex !== bCommon; bIndex += 1) {\n diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));\n }\n for (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1) {\n diffs.push(new Diff(DIFF_EQUAL, bLines[bIndex]));\n }\n };\n diffSequences(aLength, bLength, isCommon, foundSubsequence);\n for (; aIndex !== aLength; aIndex += 1) {\n diffs.push(new Diff(DIFF_DELETE, aLines[aIndex]));\n }\n for (; bIndex !== bLength; bIndex += 1) {\n diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));\n }\n return [diffs, truncated];\n}\n\nfunction getType(value) {\n if (value === void 0) {\n return \"undefined\";\n } else if (value === null) {\n return \"null\";\n } else if (Array.isArray(value)) {\n return \"array\";\n } else if (typeof value === \"boolean\") {\n return \"boolean\";\n } else if (typeof value === \"function\") {\n return \"function\";\n } else if (typeof value === \"number\") {\n return \"number\";\n } else if (typeof value === \"string\") {\n return \"string\";\n } else if (typeof value === \"bigint\") {\n return \"bigint\";\n } else if (typeof value === \"object\") {\n if (value != null) {\n if (value.constructor === RegExp) {\n return \"regexp\";\n } else if (value.constructor === Map) {\n return \"map\";\n } else if (value.constructor === Set) {\n return \"set\";\n } else if (value.constructor === Date) {\n return \"date\";\n }\n }\n return \"object\";\n } else if (typeof value === \"symbol\") {\n return \"symbol\";\n }\n throw new Error(`value of unknown type: ${value}`);\n}\n\nfunction getNewLineSymbol(string) {\n return string.includes(\"\\r\\n\") ? \"\\r\\n\" : \"\\n\";\n}\nfunction diffStrings(a, b, options) {\n const truncate = (options == null ? void 0 : options.truncateThreshold) ?? false;\n const truncateThreshold = Math.max(\n Math.floor((options == null ? void 0 : options.truncateThreshold) ?? 0),\n 0\n );\n let aLength = a.length;\n let bLength = b.length;\n if (truncate) {\n const aMultipleLines = a.includes(\"\\n\");\n const bMultipleLines = b.includes(\"\\n\");\n const aNewLineSymbol = getNewLineSymbol(a);\n const bNewLineSymbol = getNewLineSymbol(b);\n const _a = aMultipleLines ? `${a.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)}\n` : a;\n const _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)}\n` : b;\n aLength = _a.length;\n bLength = _b.length;\n }\n const truncated = aLength !== a.length || bLength !== b.length;\n const isCommon = (aIndex2, bIndex2) => a[aIndex2] === b[bIndex2];\n let aIndex = 0;\n let bIndex = 0;\n const diffs = [];\n const foundSubsequence = (nCommon, aCommon, bCommon) => {\n if (aIndex !== aCommon) {\n diffs.push(new Diff(DIFF_DELETE, a.slice(aIndex, aCommon)));\n }\n if (bIndex !== bCommon) {\n diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon)));\n }\n aIndex = aCommon + nCommon;\n bIndex = bCommon + nCommon;\n diffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex)));\n };\n diffSequences(aLength, bLength, isCommon, foundSubsequence);\n if (aIndex !== aLength) {\n diffs.push(new Diff(DIFF_DELETE, a.slice(aIndex)));\n }\n if (bIndex !== bLength) {\n diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex)));\n }\n return [diffs, truncated];\n}\n\nfunction concatenateRelevantDiffs(op, diffs, changeColor) {\n return diffs.reduce(\n (reduced, diff) => reduced + (diff[0] === DIFF_EQUAL ? diff[1] : diff[0] === op && diff[1].length !== 0 ? changeColor(diff[1]) : \"\"),\n \"\"\n );\n}\nclass ChangeBuffer {\n op;\n line;\n // incomplete line\n lines;\n // complete lines\n changeColor;\n constructor(op, changeColor) {\n this.op = op;\n this.line = [];\n this.lines = [];\n this.changeColor = changeColor;\n }\n pushSubstring(substring) {\n this.pushDiff(new Diff(this.op, substring));\n }\n pushLine() {\n this.lines.push(\n this.line.length !== 1 ? new Diff(\n this.op,\n concatenateRelevantDiffs(this.op, this.line, this.changeColor)\n ) : this.line[0][0] === this.op ? this.line[0] : new Diff(this.op, this.line[0][1])\n // was common diff\n );\n this.line.length = 0;\n }\n isLineEmpty() {\n return this.line.length === 0;\n }\n // Minor input to buffer.\n pushDiff(diff) {\n this.line.push(diff);\n }\n // Main input to buffer.\n align(diff) {\n const string = diff[1];\n if (string.includes(\"\\n\")) {\n const substrings = string.split(\"\\n\");\n const iLast = substrings.length - 1;\n substrings.forEach((substring, i) => {\n if (i < iLast) {\n this.pushSubstring(substring);\n this.pushLine();\n } else if (substring.length !== 0) {\n this.pushSubstring(substring);\n }\n });\n } else {\n this.pushDiff(diff);\n }\n }\n // Output from buffer.\n moveLinesTo(lines) {\n if (!this.isLineEmpty()) {\n this.pushLine();\n }\n lines.push(...this.lines);\n this.lines.length = 0;\n }\n}\nclass CommonBuffer {\n deleteBuffer;\n insertBuffer;\n lines;\n constructor(deleteBuffer, insertBuffer) {\n this.deleteBuffer = deleteBuffer;\n this.insertBuffer = insertBuffer;\n this.lines = [];\n }\n pushDiffCommonLine(diff) {\n this.lines.push(diff);\n }\n pushDiffChangeLines(diff) {\n const isDiffEmpty = diff[1].length === 0;\n if (!isDiffEmpty || this.deleteBuffer.isLineEmpty()) {\n this.deleteBuffer.pushDiff(diff);\n }\n if (!isDiffEmpty || this.insertBuffer.isLineEmpty()) {\n this.insertBuffer.pushDiff(diff);\n }\n }\n flushChangeLines() {\n this.deleteBuffer.moveLinesTo(this.lines);\n this.insertBuffer.moveLinesTo(this.lines);\n }\n // Input to buffer.\n align(diff) {\n const op = diff[0];\n const string = diff[1];\n if (string.includes(\"\\n\")) {\n const substrings = string.split(\"\\n\");\n const iLast = substrings.length - 1;\n substrings.forEach((substring, i) => {\n if (i === 0) {\n const subdiff = new Diff(op, substring);\n if (this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty()) {\n this.flushChangeLines();\n this.pushDiffCommonLine(subdiff);\n } else {\n this.pushDiffChangeLines(subdiff);\n this.flushChangeLines();\n }\n } else if (i < iLast) {\n this.pushDiffCommonLine(new Diff(op, substring));\n } else if (substring.length !== 0) {\n this.pushDiffChangeLines(new Diff(op, substring));\n }\n });\n } else {\n this.pushDiffChangeLines(diff);\n }\n }\n // Output from buffer.\n getLines() {\n this.flushChangeLines();\n return this.lines;\n }\n}\nfunction getAlignedDiffs(diffs, changeColor) {\n const deleteBuffer = new ChangeBuffer(DIFF_DELETE, changeColor);\n const insertBuffer = new ChangeBuffer(DIFF_INSERT, changeColor);\n const commonBuffer = new CommonBuffer(deleteBuffer, insertBuffer);\n diffs.forEach((diff) => {\n switch (diff[0]) {\n case DIFF_DELETE:\n deleteBuffer.align(diff);\n break;\n case DIFF_INSERT:\n insertBuffer.align(diff);\n break;\n default:\n commonBuffer.align(diff);\n }\n });\n return commonBuffer.getLines();\n}\n\nfunction hasCommonDiff(diffs, isMultiline) {\n if (isMultiline) {\n const iLast = diffs.length - 1;\n return diffs.some(\n (diff, i) => diff[0] === DIFF_EQUAL && (i !== iLast || diff[1] !== \"\\n\")\n );\n }\n return diffs.some((diff) => diff[0] === DIFF_EQUAL);\n}\nfunction diffStringsUnified(a, b, options) {\n if (a !== b && a.length !== 0 && b.length !== 0) {\n const isMultiline = a.includes(\"\\n\") || b.includes(\"\\n\");\n const [diffs, truncated] = diffStringsRaw(\n isMultiline ? `${a}\n` : a,\n isMultiline ? `${b}\n` : b,\n true,\n // cleanupSemantic\n options\n );\n if (hasCommonDiff(diffs, isMultiline)) {\n const optionsNormalized = normalizeDiffOptions(options);\n const lines = getAlignedDiffs(diffs, optionsNormalized.changeColor);\n return printDiffLines(lines, truncated, optionsNormalized);\n }\n }\n return diffLinesUnified(a.split(\"\\n\"), b.split(\"\\n\"), options);\n}\nfunction diffStringsRaw(a, b, cleanup, options) {\n const [diffs, truncated] = diffStrings(a, b, options);\n if (cleanup) {\n diff_cleanupSemantic(diffs);\n }\n return [diffs, truncated];\n}\n\nfunction getCommonMessage(message, options) {\n const { commonColor } = normalizeDiffOptions(options);\n return commonColor(message);\n}\nconst {\n AsymmetricMatcher,\n DOMCollection,\n DOMElement,\n Immutable,\n ReactElement,\n ReactTestComponent\n} = plugins;\nconst PLUGINS = [\n ReactTestComponent,\n ReactElement,\n DOMElement,\n DOMCollection,\n Immutable,\n AsymmetricMatcher\n];\nconst FORMAT_OPTIONS = {\n plugins: PLUGINS\n};\nconst FALLBACK_FORMAT_OPTIONS = {\n callToJSON: false,\n maxDepth: 10,\n plugins: PLUGINS\n};\nfunction diff(a, b, options) {\n if (Object.is(a, b)) {\n return \"\";\n }\n const aType = getType(a);\n let expectedType = aType;\n let omitDifference = false;\n if (aType === \"object\" && typeof a.asymmetricMatch === \"function\") {\n if (a.$$typeof !== Symbol.for(\"jest.asymmetricMatcher\")) {\n return void 0;\n }\n if (typeof a.getExpectedType !== \"function\") {\n return void 0;\n }\n expectedType = a.getExpectedType();\n omitDifference = expectedType === \"string\";\n }\n if (expectedType !== getType(b)) {\n const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);\n const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);\n const aDisplay = format(a, formatOptions);\n const bDisplay = format(b, formatOptions);\n const aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)} \n${aDisplay}`;\n const bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)} \n${bDisplay}`;\n return `${aDiff}\n\n${bDiff}`;\n }\n if (omitDifference) {\n return void 0;\n }\n switch (aType) {\n case \"string\":\n return diffLinesUnified(a.split(\"\\n\"), b.split(\"\\n\"), options);\n case \"boolean\":\n case \"number\":\n return comparePrimitive(a, b, options);\n case \"map\":\n return compareObjects(sortMap(a), sortMap(b), options);\n case \"set\":\n return compareObjects(sortSet(a), sortSet(b), options);\n default:\n return compareObjects(a, b, options);\n }\n}\nfunction comparePrimitive(a, b, options) {\n const aFormat = format(a, FORMAT_OPTIONS);\n const bFormat = format(b, FORMAT_OPTIONS);\n return aFormat === bFormat ? \"\" : diffLinesUnified(aFormat.split(\"\\n\"), bFormat.split(\"\\n\"), options);\n}\nfunction sortMap(map) {\n return new Map(Array.from(map.entries()).sort());\n}\nfunction sortSet(set) {\n return new Set(Array.from(set.values()).sort());\n}\nfunction compareObjects(a, b, options) {\n let difference;\n let hasThrown = false;\n try {\n const formatOptions = getFormatOptions(FORMAT_OPTIONS, options);\n difference = getObjectsDifference(a, b, formatOptions, options);\n } catch {\n hasThrown = true;\n }\n const noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options);\n if (difference === void 0 || difference === noDiffMessage) {\n const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);\n difference = getObjectsDifference(a, b, formatOptions, options);\n if (difference !== noDiffMessage && !hasThrown) {\n difference = `${getCommonMessage(\n SIMILAR_MESSAGE,\n options\n )}\n\n${difference}`;\n }\n }\n return difference;\n}\nfunction getFormatOptions(formatOptions, options) {\n const { compareKeys } = normalizeDiffOptions(options);\n return {\n ...formatOptions,\n compareKeys\n };\n}\nfunction getObjectsDifference(a, b, formatOptions, options) {\n const formatOptionsZeroIndent = { ...formatOptions, indent: 0 };\n const aCompare = format(a, formatOptionsZeroIndent);\n const bCompare = format(b, formatOptionsZeroIndent);\n if (aCompare === bCompare) {\n return getCommonMessage(NO_DIFF_MESSAGE, options);\n } else {\n const aDisplay = format(a, formatOptions);\n const bDisplay = format(b, formatOptions);\n return diffLinesUnified2(\n aDisplay.split(\"\\n\"),\n bDisplay.split(\"\\n\"),\n aCompare.split(\"\\n\"),\n bCompare.split(\"\\n\"),\n options\n );\n }\n}\nconst MAX_DIFF_STRING_LENGTH = 2e4;\nfunction isAsymmetricMatcher(data) {\n const type = getType$1(data);\n return type === \"Object\" && typeof data.asymmetricMatch === \"function\";\n}\nfunction isReplaceable(obj1, obj2) {\n const obj1Type = getType$1(obj1);\n const obj2Type = getType$1(obj2);\n return obj1Type === obj2Type && (obj1Type === \"Object\" || obj1Type === \"Array\");\n}\nfunction printDiffOrStringify(expected, received, options) {\n const { aAnnotation, bAnnotation } = normalizeDiffOptions(options);\n if (typeof expected === \"string\" && typeof received === \"string\" && expected.length > 0 && received.length > 0 && expected.length <= MAX_DIFF_STRING_LENGTH && received.length <= MAX_DIFF_STRING_LENGTH && expected !== received) {\n if (expected.includes(\"\\n\") || received.includes(\"\\n\")) {\n return diffStringsUnified(received, expected, options);\n }\n const [diffs] = diffStringsRaw(received, expected, true);\n const hasCommonDiff = diffs.some((diff2) => diff2[0] === DIFF_EQUAL);\n const printLabel = getLabelPrinter(aAnnotation, bAnnotation);\n const expectedLine = printLabel(aAnnotation) + printExpected(\n getCommonAndChangedSubstrings(diffs, DIFF_DELETE, hasCommonDiff)\n );\n const receivedLine = printLabel(bAnnotation) + printReceived(\n getCommonAndChangedSubstrings(diffs, DIFF_INSERT, hasCommonDiff)\n );\n return `${expectedLine}\n${receivedLine}`;\n }\n const clonedExpected = deepClone(expected, { forceWritable: true });\n const clonedReceived = deepClone(received, { forceWritable: true });\n const { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedExpected, clonedReceived);\n const difference = diff(replacedExpected, replacedActual, options);\n return difference;\n}\nfunction replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {\n if (!isReplaceable(actual, expected)) {\n return { replacedActual: actual, replacedExpected: expected };\n }\n if (actualReplaced.has(actual) || expectedReplaced.has(expected)) {\n return { replacedActual: actual, replacedExpected: expected };\n }\n actualReplaced.add(actual);\n expectedReplaced.add(expected);\n getOwnProperties(expected).forEach((key) => {\n const expectedValue = expected[key];\n const actualValue = actual[key];\n if (isAsymmetricMatcher(expectedValue)) {\n if (expectedValue.asymmetricMatch(actualValue)) {\n actual[key] = expectedValue;\n }\n } else if (isAsymmetricMatcher(actualValue)) {\n if (actualValue.asymmetricMatch(expectedValue)) {\n expected[key] = actualValue;\n }\n } else if (isReplaceable(actualValue, expectedValue)) {\n const replaced = replaceAsymmetricMatcher(\n actualValue,\n expectedValue,\n actualReplaced,\n expectedReplaced\n );\n actual[key] = replaced.replacedActual;\n expected[key] = replaced.replacedExpected;\n }\n });\n return {\n replacedActual: actual,\n replacedExpected: expected\n };\n}\nfunction getLabelPrinter(...strings) {\n const maxLength = strings.reduce(\n (max, string) => string.length > max ? string.length : max,\n 0\n );\n return (string) => `${string}: ${\" \".repeat(maxLength - string.length)}`;\n}\nconst SPACE_SYMBOL = \"\\xB7\";\nfunction replaceTrailingSpaces(text) {\n return text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n}\nfunction printReceived(object) {\n return c.red(replaceTrailingSpaces(stringify(object)));\n}\nfunction printExpected(value) {\n return c.green(replaceTrailingSpaces(stringify(value)));\n}\nfunction getCommonAndChangedSubstrings(diffs, op, hasCommonDiff) {\n return diffs.reduce(\n (reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff ? c.inverse(diff2[1]) : diff2[1] : \"\"),\n \"\"\n );\n}\n\nexport { DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff, diff, diffLinesRaw, diffLinesUnified, diffLinesUnified2, diffStringsRaw, diffStringsUnified, getLabelPrinter, printDiffOrStringify, replaceAsymmetricMatcher };\n","// src/utils.ts\nfunction d(e, t) {\n if (!e)\n throw new Error(t);\n}\nfunction y(e, t) {\n return typeof t === e;\n}\nfunction w(e) {\n return e instanceof Promise;\n}\nfunction f(e, t, n) {\n Object.defineProperty(e, t, n);\n}\nfunction l(e, t, n) {\n Object.defineProperty(e, t, { value: n });\n}\n\n// src/constants.ts\nvar u = Symbol.for(\"tinyspy:spy\");\n\n// src/internal.ts\nvar x = /* @__PURE__ */ new Set(), P = (e) => {\n e.called = !1, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = [];\n}, K = (e) => (f(e, u, { value: { reset: () => P(e[u]) } }), e[u]), T = (e) => e[u] || K(e);\nfunction m(e) {\n d(\n y(\"function\", e) || y(\"undefined\", e),\n \"cannot spy on a non-function value\"\n );\n let t = function(...s) {\n let r = T(t);\n r.called = !0, r.callCount++, r.calls.push(s);\n let S = r.next.shift();\n if (S) {\n r.results.push(S);\n let [o, g] = S;\n if (o === \"ok\")\n return g;\n throw g;\n }\n let p, c = \"ok\", a = r.results.length;\n if (r.impl)\n try {\n new.target ? p = Reflect.construct(r.impl, s, new.target) : p = r.impl.apply(this, s), c = \"ok\";\n } catch (o) {\n throw p = o, c = \"error\", r.results.push([c, o]), o;\n }\n let R = [c, p];\n return w(p) && p.then(\n (o) => r.resolves[a] = [\"ok\", o],\n (o) => r.resolves[a] = [\"error\", o]\n ), r.results.push(R), p;\n };\n l(t, \"_isMockFunction\", !0), l(t, \"length\", e ? e.length : 0), l(t, \"name\", e && e.name || \"spy\");\n let n = T(t);\n return n.reset(), n.impl = e, t;\n}\nfunction A(e) {\n let t = T(e);\n \"returns\" in e || (f(e, \"returns\", {\n get: () => t.results.map(([, n]) => n)\n }), [\n \"called\",\n \"callCount\",\n \"results\",\n \"resolves\",\n \"calls\",\n \"reset\",\n \"impl\"\n ].forEach(\n (n) => f(e, n, { get: () => t[n], set: (s) => t[n] = s })\n ), l(e, \"nextError\", (n) => (t.next.push([\"error\", n]), t)), l(e, \"nextResult\", (n) => (t.next.push([\"ok\", n]), t)));\n}\n\n// src/spy.ts\nfunction L(e) {\n let t = m(e);\n return A(t), t;\n}\n\n// src/spyOn.ts\nvar k = (e, t) => Object.getOwnPropertyDescriptor(e, t), O = (e, t) => {\n t != null && typeof t == \"function\" && t.prototype != null && Object.setPrototypeOf(e.prototype, t.prototype);\n};\nfunction C(e, t, n) {\n d(\n !y(\"undefined\", e),\n \"spyOn could not find an object to spy upon\"\n ), d(\n y(\"object\", e) || y(\"function\", e),\n \"cannot spyOn on a primitive value\"\n );\n let [s, r] = (() => {\n if (!y(\"object\", t))\n return [t, \"value\"];\n if (\"getter\" in t && \"setter\" in t)\n throw new Error(\"cannot spy on both getter and setter\");\n if (\"getter\" in t)\n return [t.getter, \"get\"];\n if (\"setter\" in t)\n return [t.setter, \"set\"];\n throw new Error(\"specify getter or setter to spy on\");\n })(), S = k(e, s), p = Object.getPrototypeOf(e), c = p && k(p, s), a = S || c;\n d(\n a || s in e,\n `${String(s)} does not exist`\n );\n let R = !1;\n r === \"value\" && a && !a.value && a.get && (r = \"get\", R = !0, n = a.get());\n let o;\n a ? o = a[r] : r !== \"value\" ? o = () => e[s] : o = e[s];\n let g = (v) => {\n let { value: M, ...h } = a || {\n configurable: !0,\n writable: !0\n };\n r !== \"value\" && delete h.writable, h[r] = v, f(e, s, h);\n }, b = () => a ? f(e, s, a) : g(o);\n n || (n = o);\n let i = m(n);\n r === \"value\" && O(i, o);\n let I = i[u];\n return l(I, \"restore\", b), l(I, \"getOriginal\", () => R ? o() : o), l(I, \"willCall\", (v) => (I.impl = v, i)), g(\n R ? () => (O(i, n), i) : i\n ), x.add(i), i;\n}\nfunction U(e, t, n) {\n let s = C(e, t, n);\n return A(s), [\"restore\", \"getOriginal\", \"willCall\"].forEach((r) => {\n l(s, r, s[u][r]);\n }), s;\n}\n\n// src/restoreAll.ts\nfunction Y() {\n for (let e of x)\n e.restore();\n x.clear();\n}\nexport {\n m as createInternalSpy,\n T as getInternalState,\n C as internalSpyOn,\n Y as restoreAll,\n x as spies,\n L as spy,\n U as spyOn\n};\n","import * as tinyspy from 'tinyspy';\n\nconst mocks = /* @__PURE__ */ new Set();\nfunction isMockFunction(fn2) {\n return typeof fn2 === \"function\" && \"_isMockFunction\" in fn2 && fn2._isMockFunction;\n}\nfunction spyOn(obj, method, accessType) {\n const dictionary = {\n get: \"getter\",\n set: \"setter\"\n };\n const objMethod = accessType ? { [dictionary[accessType]]: method } : method;\n const stub = tinyspy.internalSpyOn(obj, objMethod);\n return enhanceSpy(stub);\n}\nlet callOrder = 0;\nfunction enhanceSpy(spy) {\n const stub = spy;\n let implementation;\n let instances = [];\n let contexts = [];\n let invocations = [];\n const state = tinyspy.getInternalState(spy);\n const mockContext = {\n get calls() {\n return state.calls;\n },\n get contexts() {\n return contexts;\n },\n get instances() {\n return instances;\n },\n get invocationCallOrder() {\n return invocations;\n },\n get results() {\n return state.results.map(([callType, value]) => {\n const type = callType === \"error\" ? \"throw\" : \"return\";\n return { type, value };\n });\n },\n get settledResults() {\n return state.resolves.map(([callType, value]) => {\n const type = callType === \"error\" ? \"rejected\" : \"fulfilled\";\n return { type, value };\n });\n },\n get lastCall() {\n return state.calls[state.calls.length - 1];\n }\n };\n let onceImplementations = [];\n let implementationChangedTemporarily = false;\n function mockCall(...args) {\n instances.push(this);\n contexts.push(this);\n invocations.push(++callOrder);\n const impl = implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state.getOriginal() || (() => {\n });\n return impl.apply(this, args);\n }\n let name = stub.name;\n stub.getMockName = () => name || \"vi.fn()\";\n stub.mockName = (n) => {\n name = n;\n return stub;\n };\n stub.mockClear = () => {\n state.reset();\n instances = [];\n contexts = [];\n invocations = [];\n return stub;\n };\n stub.mockReset = () => {\n stub.mockClear();\n implementation = () => void 0;\n onceImplementations = [];\n return stub;\n };\n stub.mockRestore = () => {\n stub.mockReset();\n state.restore();\n implementation = void 0;\n return stub;\n };\n stub.getMockImplementation = () => implementation;\n stub.mockImplementation = (fn2) => {\n implementation = fn2;\n state.willCall(mockCall);\n return stub;\n };\n stub.mockImplementationOnce = (fn2) => {\n onceImplementations.push(fn2);\n return stub;\n };\n function withImplementation(fn2, cb) {\n const originalImplementation = implementation;\n implementation = fn2;\n state.willCall(mockCall);\n implementationChangedTemporarily = true;\n const reset = () => {\n implementation = originalImplementation;\n implementationChangedTemporarily = false;\n };\n const result = cb();\n if (result instanceof Promise) {\n return result.then(() => {\n reset();\n return stub;\n });\n }\n reset();\n return stub;\n }\n stub.withImplementation = withImplementation;\n stub.mockReturnThis = () => stub.mockImplementation(function() {\n return this;\n });\n stub.mockReturnValue = (val) => stub.mockImplementation(() => val);\n stub.mockReturnValueOnce = (val) => stub.mockImplementationOnce(() => val);\n stub.mockResolvedValue = (val) => stub.mockImplementation(() => Promise.resolve(val));\n stub.mockResolvedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.resolve(val));\n stub.mockRejectedValue = (val) => stub.mockImplementation(() => Promise.reject(val));\n stub.mockRejectedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.reject(val));\n Object.defineProperty(stub, \"mock\", {\n get: () => mockContext\n });\n state.willCall(mockCall);\n mocks.add(stub);\n return stub;\n}\nfunction fn(implementation) {\n const enhancedSpy = enhanceSpy(tinyspy.internalSpyOn({\n spy: implementation || function() {\n }\n }, \"spy\"));\n if (implementation) {\n enhancedSpy.mockImplementation(implementation);\n }\n return enhancedSpy;\n}\n\nexport { fn, isMockFunction, mocks, spyOn };\n","import { printDiffOrStringify } from './diff.js';\nimport { f as format, s as stringify } from './chunk-_commonjsHelpers.js';\nimport '@vitest/pretty-format';\nimport 'tinyrainbow';\nimport './helpers.js';\nimport 'loupe';\n\nconst IS_RECORD_SYMBOL = \"@@__IMMUTABLE_RECORD__@@\";\nconst IS_COLLECTION_SYMBOL = \"@@__IMMUTABLE_ITERABLE__@@\";\nfunction isImmutable(v) {\n return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);\n}\nconst OBJECT_PROTO = Object.getPrototypeOf({});\nfunction getUnserializableMessage(err) {\n if (err instanceof Error) {\n return `<unserializable>: ${err.message}`;\n }\n if (typeof err === \"string\") {\n return `<unserializable>: ${err}`;\n }\n return \"<unserializable>\";\n}\nfunction serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) {\n if (!val || typeof val === \"string\") {\n return val;\n }\n if (typeof val === \"function\") {\n return `Function<${val.name || \"anonymous\"}>`;\n }\n if (typeof val === \"symbol\") {\n return val.toString();\n }\n if (typeof val !== \"object\") {\n return val;\n }\n if (isImmutable(val)) {\n return serializeValue(val.toJSON(), seen);\n }\n if (val instanceof Promise || val.constructor && val.constructor.prototype === \"AsyncFunction\") {\n return \"Promise\";\n }\n if (typeof Element !== \"undefined\" && val instanceof Element) {\n return val.tagName;\n }\n if (typeof val.asymmetricMatch === \"function\") {\n return `${val.toString()} ${format(val.sample)}`;\n }\n if (typeof val.toJSON === \"function\") {\n return serializeValue(val.toJSON(), seen);\n }\n if (seen.has(val)) {\n return seen.get(val);\n }\n if (Array.isArray(val)) {\n const clone = new Array(val.length);\n seen.set(val, clone);\n val.forEach((e, i) => {\n try {\n clone[i] = serializeValue(e, seen);\n } catch (err) {\n clone[i] = getUnserializableMessage(err);\n }\n });\n return clone;\n } else {\n const clone = /* @__PURE__ */ Object.create(null);\n seen.set(val, clone);\n let obj = val;\n while (obj && obj !== OBJECT_PROTO) {\n Object.getOwnPropertyNames(obj).forEach((key) => {\n if (key in clone) {\n return;\n }\n try {\n clone[key] = serializeValue(val[key], seen);\n } catch (err) {\n delete clone[key];\n clone[key] = getUnserializableMessage(err);\n }\n });\n obj = Object.getPrototypeOf(obj);\n }\n return clone;\n }\n}\nfunction normalizeErrorMessage(message) {\n return message.replace(/__(vite_ssr_import|vi_import)_\\d+__\\./g, \"\");\n}\nfunction processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) {\n if (!_err || typeof _err !== \"object\") {\n return { message: String(_err) };\n }\n const err = _err;\n if (err.stack) {\n err.stackStr = String(err.stack);\n }\n if (err.name) {\n err.nameStr = String(err.name);\n }\n if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) {\n err.diff = printDiffOrStringify(err.actual, err.expected, {\n ...diffOptions,\n ...err.diffOptions\n });\n }\n if (typeof err.expected !== \"string\") {\n err.expected = stringify(err.expected, 10);\n }\n if (typeof err.actual !== \"string\") {\n err.actual = stringify(err.actual, 10);\n }\n try {\n if (typeof err.message === \"string\") {\n err.message = normalizeErrorMessage(err.message);\n }\n } catch {\n }\n try {\n if (!seen.has(err) && typeof err.cause === \"object\") {\n seen.add(err);\n err.cause = processError(err.cause, diffOptions, seen);\n }\n } catch {\n }\n try {\n return serializeValue(err);\n } catch (e) {\n return serializeValue(\n new Error(\n `Failed to fully serialize error: ${e == null ? void 0 : e.message}\nInner error message: ${err == null ? void 0 : err.message}`\n )\n );\n }\n}\n\nexport { processError, serializeValue as serializeError, serializeValue };\n","var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\n\n// lib/chai/utils/index.js\nvar utils_exports = {};\n__export(utils_exports, {\n addChainableMethod: () => addChainableMethod,\n addLengthGuard: () => addLengthGuard,\n addMethod: () => addMethod,\n addProperty: () => addProperty,\n checkError: () => check_error_exports,\n compareByInspect: () => compareByInspect,\n eql: () => deep_eql_default,\n expectTypes: () => expectTypes,\n flag: () => flag,\n getActual: () => getActual,\n getMessage: () => getMessage2,\n getName: () => getName,\n getOperator: () => getOperator,\n getOwnEnumerableProperties: () => getOwnEnumerableProperties,\n getOwnEnumerablePropertySymbols: () => getOwnEnumerablePropertySymbols,\n getPathInfo: () => getPathInfo,\n hasProperty: () => hasProperty,\n inspect: () => inspect2,\n isNaN: () => isNaN2,\n isNumeric: () => isNumeric,\n isProxyEnabled: () => isProxyEnabled,\n isRegExp: () => isRegExp2,\n objDisplay: () => objDisplay,\n overwriteChainableMethod: () => overwriteChainableMethod,\n overwriteMethod: () => overwriteMethod,\n overwriteProperty: () => overwriteProperty,\n proxify: () => proxify,\n test: () => test,\n transferFlags: () => transferFlags,\n type: () => type\n});\n\n// node_modules/check-error/index.js\nvar check_error_exports = {};\n__export(check_error_exports, {\n compatibleConstructor: () => compatibleConstructor,\n compatibleInstance: () => compatibleInstance,\n compatibleMessage: () => compatibleMessage,\n getConstructorName: () => getConstructorName,\n getMessage: () => getMessage\n});\nfunction isErrorInstance(obj) {\n return obj instanceof Error || Object.prototype.toString.call(obj) === \"[object Error]\";\n}\n__name(isErrorInstance, \"isErrorInstance\");\nfunction isRegExp(obj) {\n return Object.prototype.toString.call(obj) === \"[object RegExp]\";\n}\n__name(isRegExp, \"isRegExp\");\nfunction compatibleInstance(thrown, errorLike) {\n return isErrorInstance(errorLike) && thrown === errorLike;\n}\n__name(compatibleInstance, \"compatibleInstance\");\nfunction compatibleConstructor(thrown, errorLike) {\n if (isErrorInstance(errorLike)) {\n return thrown.constructor === errorLike.constructor || thrown instanceof errorLike.constructor;\n } else if ((typeof errorLike === \"object\" || typeof errorLike === \"function\") && errorLike.prototype) {\n return thrown.constructor === errorLike || thrown instanceof errorLike;\n }\n return false;\n}\n__name(compatibleConstructor, \"compatibleConstructor\");\nfunction compatibleMessage(thrown, errMatcher) {\n const comparisonString = typeof thrown === \"string\" ? thrown : thrown.message;\n if (isRegExp(errMatcher)) {\n return errMatcher.test(comparisonString);\n } else if (typeof errMatcher === \"string\") {\n return comparisonString.indexOf(errMatcher) !== -1;\n }\n return false;\n}\n__name(compatibleMessage, \"compatibleMessage\");\nfunction getConstructorName(errorLike) {\n let constructorName = errorLike;\n if (isErrorInstance(errorLike)) {\n constructorName = errorLike.constructor.name;\n } else if (typeof errorLike === \"function\") {\n constructorName = errorLike.name;\n if (constructorName === \"\") {\n const newConstructorName = new errorLike().name;\n constructorName = newConstructorName || constructorName;\n }\n }\n return constructorName;\n}\n__name(getConstructorName, \"getConstructorName\");\nfunction getMessage(errorLike) {\n let msg = \"\";\n if (errorLike && errorLike.message) {\n msg = errorLike.message;\n } else if (typeof errorLike === \"string\") {\n msg = errorLike;\n }\n return msg;\n}\n__name(getMessage, \"getMessage\");\n\n// lib/chai/utils/flag.js\nfunction flag(obj, key, value) {\n let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null));\n if (arguments.length === 3) {\n flags[key] = value;\n } else {\n return flags[key];\n }\n}\n__name(flag, \"flag\");\n\n// lib/chai/utils/test.js\nfunction test(obj, args) {\n let negate = flag(obj, \"negate\"), expr = args[0];\n return negate ? !expr : expr;\n}\n__name(test, \"test\");\n\n// lib/chai/utils/type-detect.js\nfunction type(obj) {\n if (typeof obj === \"undefined\") {\n return \"undefined\";\n }\n if (obj === null) {\n return \"null\";\n }\n const stringTag = obj[Symbol.toStringTag];\n if (typeof stringTag === \"string\") {\n return stringTag;\n }\n const type3 = Object.prototype.toString.call(obj).slice(8, -1);\n return type3;\n}\n__name(type, \"type\");\n\n// node_modules/assertion-error/index.js\nvar canElideFrames = \"captureStackTrace\" in Error;\nvar AssertionError = class _AssertionError extends Error {\n static {\n __name(this, \"AssertionError\");\n }\n message;\n get name() {\n return \"AssertionError\";\n }\n get ok() {\n return false;\n }\n constructor(message = \"Unspecified AssertionError\", props, ssf) {\n super(message);\n this.message = message;\n if (canElideFrames) {\n Error.captureStackTrace(this, ssf || _AssertionError);\n }\n for (const key in props) {\n if (!(key in this)) {\n this[key] = props[key];\n }\n }\n }\n toJSON(stack) {\n return {\n ...this,\n name: this.name,\n message: this.message,\n ok: false,\n stack: stack !== false ? this.stack : void 0\n };\n }\n};\n\n// lib/chai/utils/expectTypes.js\nfunction expectTypes(obj, types) {\n let flagMsg = flag(obj, \"message\");\n let ssfi = flag(obj, \"ssfi\");\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n obj = flag(obj, \"object\");\n types = types.map(function(t) {\n return t.toLowerCase();\n });\n types.sort();\n let str = types.map(function(t, index) {\n let art = ~[\"a\", \"e\", \"i\", \"o\", \"u\"].indexOf(t.charAt(0)) ? \"an\" : \"a\";\n let or = types.length > 1 && index === types.length - 1 ? \"or \" : \"\";\n return or + art + \" \" + t;\n }).join(\", \");\n let objType = type(obj).toLowerCase();\n if (!types.some(function(expected) {\n return objType === expected;\n })) {\n throw new AssertionError(\n flagMsg + \"object tested must be \" + str + \", but \" + objType + \" given\",\n void 0,\n ssfi\n );\n }\n}\n__name(expectTypes, \"expectTypes\");\n\n// lib/chai/utils/getActual.js\nfunction getActual(obj, args) {\n return args.length > 4 ? args[4] : obj._obj;\n}\n__name(getActual, \"getActual\");\n\n// node_modules/loupe/lib/helpers.js\nvar ansiColors = {\n bold: [\"1\", \"22\"],\n dim: [\"2\", \"22\"],\n italic: [\"3\", \"23\"],\n underline: [\"4\", \"24\"],\n // 5 & 6 are blinking\n inverse: [\"7\", \"27\"],\n hidden: [\"8\", \"28\"],\n strike: [\"9\", \"29\"],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: [\"30\", \"39\"],\n red: [\"31\", \"39\"],\n green: [\"32\", \"39\"],\n yellow: [\"33\", \"39\"],\n blue: [\"34\", \"39\"],\n magenta: [\"35\", \"39\"],\n cyan: [\"36\", \"39\"],\n white: [\"37\", \"39\"],\n brightblack: [\"30;1\", \"39\"],\n brightred: [\"31;1\", \"39\"],\n brightgreen: [\"32;1\", \"39\"],\n brightyellow: [\"33;1\", \"39\"],\n brightblue: [\"34;1\", \"39\"],\n brightmagenta: [\"35;1\", \"39\"],\n brightcyan: [\"36;1\", \"39\"],\n brightwhite: [\"37;1\", \"39\"],\n grey: [\"90\", \"39\"]\n};\nvar styles = {\n special: \"cyan\",\n number: \"yellow\",\n bigint: \"yellow\",\n boolean: \"yellow\",\n undefined: \"grey\",\n null: \"bold\",\n string: \"green\",\n symbol: \"green\",\n date: \"magenta\",\n regexp: \"red\"\n};\nvar truncator = \"\\u2026\";\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || \"\";\n if (!color) {\n return String(value);\n }\n return `\\x1B[${color[0]}m${String(value)}\\x1B[${color[1]}m`;\n}\n__name(colorise, \"colorise\");\nfunction normaliseOptions({\n showHidden = false,\n depth = 2,\n colors = false,\n customInspect = true,\n showProxy = false,\n maxArrayLength = Infinity,\n breakLength = Infinity,\n seen = [],\n // eslint-disable-next-line no-shadow\n truncate: truncate2 = Infinity,\n stylize = String\n} = {}, inspect3) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate2),\n seen,\n inspect: inspect3,\n stylize\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\n__name(normaliseOptions, \"normaliseOptions\");\nfunction isHighSurrogate(char) {\n return char >= \"\\uD800\" && char <= \"\\uDBFF\";\n}\n__name(isHighSurrogate, \"isHighSurrogate\");\nfunction truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n__name(truncate, \"truncate\");\nfunction inspectList(list, options, inspectItem, separator = \", \") {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return \"\";\n const originalLength = options.truncate;\n let output = \"\";\n let peek = \"\";\n let truncated = \"\";\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? \"\" : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n peek = last ? \"\" : inspectItem(list[i + 1], options) + (secondToLast ? \"\" : separator);\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = \"\";\n }\n return `${output}${truncated}`;\n}\n__name(inspectList, \"inspectList\");\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key).replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n}\n__name(quoteComplexKey, \"quoteComplexKey\");\nfunction inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === \"string\") {\n key = quoteComplexKey(key);\n } else if (typeof key !== \"number\") {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n__name(inspectProperty, \"inspectProperty\");\n\n// node_modules/loupe/lib/array.js\nfunction inspectArray(array, options) {\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return \"[]\";\n options.truncate -= 4;\n const listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n let propertyContents = \"\";\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);\n }\n return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : \"\"} ]`;\n}\n__name(inspectArray, \"inspectArray\");\n\n// node_modules/loupe/lib/typedarray.js\nvar getArrayName = /* @__PURE__ */ __name((array) => {\n if (typeof Buffer === \"function\" && array instanceof Buffer) {\n return \"Buffer\";\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n}, \"getArrayName\");\nfunction inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n let output = \"\";\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), \"number\")}${i === array.length - 1 ? \"\" : \", \"}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = \"\";\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : \"\"} ]`;\n}\n__name(inspectTypedArray, \"inspectTypedArray\");\n\n// node_modules/loupe/lib/date.js\nfunction inspectDate(dateObject, options) {\n const stringRepresentation = dateObject.toJSON();\n if (stringRepresentation === null) {\n return \"Invalid Date\";\n }\n const split = stringRepresentation.split(\"T\");\n const date = split[0];\n return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, \"date\");\n}\n__name(inspectDate, \"inspectDate\");\n\n// node_modules/loupe/lib/function.js\nfunction inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || \"Function\";\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, \"special\");\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, \"special\");\n}\n__name(inspectFunction, \"inspectFunction\");\n\n// node_modules/loupe/lib/map.js\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n__name(inspectMapEntry, \"inspectMapEntry\");\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\n__name(mapToEntries, \"mapToEntries\");\nfunction inspectMap(map, options) {\n if (map.size === 0)\n return \"Map{}\";\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n__name(inspectMap, \"inspectMap\");\n\n// node_modules/loupe/lib/number.js\nvar isNaN = Number.isNaN || ((i) => i !== i);\nfunction inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize(\"NaN\", \"number\");\n }\n if (number === Infinity) {\n return options.stylize(\"Infinity\", \"number\");\n }\n if (number === -Infinity) {\n return options.stylize(\"-Infinity\", \"number\");\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? \"+0\" : \"-0\", \"number\");\n }\n return options.stylize(truncate(String(number), options.truncate), \"number\");\n}\n__name(inspectNumber, \"inspectNumber\");\n\n// node_modules/loupe/lib/bigint.js\nfunction inspectBigInt(number, options) {\n let nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator)\n nums += \"n\";\n return options.stylize(nums, \"bigint\");\n}\n__name(inspectBigInt, \"inspectBigInt\");\n\n// node_modules/loupe/lib/regexp.js\nfunction inspectRegExp(value, options) {\n const flags = value.toString().split(\"/\")[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, \"regexp\");\n}\n__name(inspectRegExp, \"inspectRegExp\");\n\n// node_modules/loupe/lib/set.js\nfunction arrayFromSet(set2) {\n const values = [];\n set2.forEach((value) => {\n values.push(value);\n });\n return values;\n}\n__name(arrayFromSet, \"arrayFromSet\");\nfunction inspectSet(set2, options) {\n if (set2.size === 0)\n return \"Set{}\";\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set2), options)} }`;\n}\n__name(inspectSet, \"inspectSet\");\n\n// node_modules/loupe/lib/string.js\nvar stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]\", \"g\");\nvar escapeCharacters = {\n \"\\b\": \"\\\\b\",\n \"\t\": \"\\\\t\",\n \"\\n\": \"\\\\n\",\n \"\\f\": \"\\\\f\",\n \"\\r\": \"\\\\r\",\n \"'\": \"\\\\'\",\n \"\\\\\": \"\\\\\\\\\"\n};\nvar hex = 16;\nvar unicodeLength = 4;\nfunction escape(char) {\n return escapeCharacters[char] || `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`;\n}\n__name(escape, \"escape\");\nfunction inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, \"string\");\n}\n__name(inspectString, \"inspectString\");\n\n// node_modules/loupe/lib/symbol.js\nfunction inspectSymbol(value) {\n if (\"description\" in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : \"Symbol()\";\n }\n return value.toString();\n}\n__name(inspectSymbol, \"inspectSymbol\");\n\n// node_modules/loupe/lib/promise.js\nvar getPromiseValue = /* @__PURE__ */ __name(() => \"Promise{\\u2026}\", \"getPromiseValue\");\nvar promise_default = getPromiseValue;\n\n// node_modules/loupe/lib/object.js\nfunction inspectObject(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return \"{}\";\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return \"[Circular]\";\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = \"\";\n if (propertyContents && symbolContents) {\n sep = \", \";\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n__name(inspectObject, \"inspectObject\");\n\n// node_modules/loupe/lib/class.js\nvar toStringTag = typeof Symbol !== \"undefined\" && Symbol.toStringTag ? Symbol.toStringTag : false;\nfunction inspectClass(value, options) {\n let name = \"\";\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n name = name || value.constructor.name;\n if (!name || name === \"_class\") {\n name = \"<Anonymous Class>\";\n }\n options.truncate -= name.length;\n return `${name}${inspectObject(value, options)}`;\n}\n__name(inspectClass, \"inspectClass\");\n\n// node_modules/loupe/lib/arguments.js\nfunction inspectArguments(args, options) {\n if (args.length === 0)\n return \"Arguments[]\";\n options.truncate -= 13;\n return `Arguments[ ${inspectList(args, options)} ]`;\n}\n__name(inspectArguments, \"inspectArguments\");\n\n// node_modules/loupe/lib/error.js\nvar errorKeys = [\n \"stack\",\n \"line\",\n \"column\",\n \"name\",\n \"message\",\n \"fileName\",\n \"lineNumber\",\n \"columnNumber\",\n \"number\",\n \"description\",\n \"cause\"\n];\nfunction inspectObject2(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = \"\";\n if (typeof error.message === \"string\") {\n message = truncate(error.message, options.truncate);\n } else {\n properties.unshift(\"message\");\n }\n message = message ? `: ${message}` : \"\";\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return \"[Circular]\";\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : \"\"}`;\n}\n__name(inspectObject2, \"inspectObject\");\n\n// node_modules/loupe/lib/html.js\nfunction inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), \"yellow\")}`;\n }\n return `${options.stylize(String(key), \"yellow\")}=${options.stylize(`\"${value}\"`, \"string\")}`;\n}\n__name(inspectAttribute, \"inspectAttribute\");\nfunction inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, \"\\n\");\n}\n__name(inspectNodeCollection, \"inspectNodeCollection\");\nfunction inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n__name(inspectNode, \"inspectNode\");\nfunction inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, \"special\");\n const headClose = options.stylize(`>`, \"special\");\n const tail = options.stylize(`</${name}>`, \"special\");\n options.truncate -= name.length * 2 + 5;\n let propertyContents = \"\";\n if (properties.length > 0) {\n propertyContents += \" \";\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, \" \");\n }\n options.truncate -= propertyContents.length;\n const truncate2 = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate2) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n__name(inspectHTML, \"inspectHTML\");\n\n// node_modules/loupe/lib/index.js\nvar symbolsSupported = typeof Symbol === \"function\" && typeof Symbol.for === \"function\";\nvar chaiInspect = symbolsSupported ? Symbol.for(\"chai/inspect\") : \"@@chai/inspect\";\nvar nodeInspect = Symbol.for(\"nodejs.util.inspect.custom\");\nvar constructorMap = /* @__PURE__ */ new WeakMap();\nvar stringTagMap = {};\nvar baseTypesMap = {\n undefined: /* @__PURE__ */ __name((value, options) => options.stylize(\"undefined\", \"undefined\"), \"undefined\"),\n null: /* @__PURE__ */ __name((value, options) => options.stylize(\"null\", \"null\"), \"null\"),\n boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), \"boolean\"), \"boolean\"),\n Boolean: /* @__PURE__ */ __name((value, options) => options.stylize(String(value), \"boolean\"), \"Boolean\"),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: promise_default,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: /* @__PURE__ */ __name((value, options) => options.stylize(\"WeakSet{\\u2026}\", \"special\"), \"WeakSet\"),\n WeakMap: /* @__PURE__ */ __name((value, options) => options.stylize(\"WeakMap{\\u2026}\", \"special\"), \"WeakMap\"),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: /* @__PURE__ */ __name(() => \"\", \"Generator\"),\n DataView: /* @__PURE__ */ __name(() => \"\", \"DataView\"),\n ArrayBuffer: /* @__PURE__ */ __name(() => \"\", \"ArrayBuffer\"),\n Error: inspectObject2,\n HTMLCollection: inspectNodeCollection,\n NodeList: inspectNodeCollection\n};\nvar inspectCustom = /* @__PURE__ */ __name((value, options, type3) => {\n if (chaiInspect in value && typeof value[chaiInspect] === \"function\") {\n return value[chaiInspect](options);\n }\n if (nodeInspect in value && typeof value[nodeInspect] === \"function\") {\n return value[nodeInspect](options.depth, options);\n }\n if (\"inspect\" in value && typeof value.inspect === \"function\") {\n return value.inspect(options.depth, options);\n }\n if (\"constructor\" in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type3]) {\n return stringTagMap[type3](value, options);\n }\n return \"\";\n}, \"inspectCustom\");\nvar toString = Object.prototype.toString;\nfunction inspect(value, opts = {}) {\n const options = normaliseOptions(opts, inspect);\n const { customInspect } = options;\n let type3 = value === null ? \"null\" : typeof value;\n if (type3 === \"object\") {\n type3 = toString.call(value).slice(8, -1);\n }\n if (type3 in baseTypesMap) {\n return baseTypesMap[type3](value, options);\n }\n if (customInspect && value) {\n const output = inspectCustom(value, options, type3);\n if (output) {\n if (typeof output === \"string\")\n return output;\n return inspect(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n if (proto === Object.prototype || proto === null) {\n return inspectObject(value, options);\n }\n if (value && typeof HTMLElement === \"function\" && value instanceof HTMLElement) {\n return inspectHTML(value, options);\n }\n if (\"constructor\" in value) {\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n return inspectObject(value, options);\n }\n if (value === Object(value)) {\n return inspectObject(value, options);\n }\n return options.stylize(String(value), type3);\n}\n__name(inspect, \"inspect\");\n\n// lib/chai/config.js\nvar config = {\n /**\n * ### config.includeStack\n *\n * User configurable property, influences whether stack trace\n * is included in Assertion error message. Default of false\n * suppresses stack trace in the error message.\n *\n * chai.config.includeStack = true; // enable stack on error\n *\n * @param {boolean}\n * @public\n */\n includeStack: false,\n /**\n * ### config.showDiff\n *\n * User configurable property, influences whether or not\n * the `showDiff` flag should be included in the thrown\n * AssertionErrors. `false` will always be `false`; `true`\n * will be true when the assertion has requested a diff\n * be shown.\n *\n * @param {boolean}\n * @public\n */\n showDiff: true,\n /**\n * ### config.truncateThreshold\n *\n * User configurable property, sets length threshold for actual and\n * expected values in assertion errors. If this threshold is exceeded, for\n * example for large data structures, the value is replaced with something\n * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`.\n *\n * Set it to zero if you want to disable truncating altogether.\n *\n * This is especially userful when doing assertions on arrays: having this\n * set to a reasonable large value makes the failure messages readily\n * inspectable.\n *\n * chai.config.truncateThreshold = 0; // disable truncating\n *\n * @param {number}\n * @public\n */\n truncateThreshold: 40,\n /**\n * ### config.useProxy\n *\n * User configurable property, defines if chai will use a Proxy to throw\n * an error when a non-existent property is read, which protects users\n * from typos when using property-based assertions.\n *\n * Set it to false if you want to disable this feature.\n *\n * chai.config.useProxy = false; // disable use of Proxy\n *\n * This feature is automatically disabled regardless of this config value\n * in environments that don't support proxies.\n *\n * @param {boolean}\n * @public\n */\n useProxy: true,\n /**\n * ### config.proxyExcludedKeys\n *\n * User configurable property, defines which properties should be ignored\n * instead of throwing an error if they do not exist on the assertion.\n * This is only applied if the environment Chai is running in supports proxies and\n * if the `useProxy` configuration setting is enabled.\n * By default, `then` and `inspect` will not throw an error if they do not exist on the\n * assertion object because the `.inspect` property is read by `util.inspect` (for example, when\n * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking.\n *\n * // By default these keys will not throw an error if they do not exist on the assertion object\n * chai.config.proxyExcludedKeys = ['then', 'inspect'];\n *\n * @param {Array}\n * @public\n */\n proxyExcludedKeys: [\"then\", \"catch\", \"inspect\", \"toJSON\"],\n /**\n * ### config.deepEqual\n *\n * User configurable property, defines which a custom function to use for deepEqual\n * comparisons.\n * By default, the function used is the one from the `deep-eql` package without custom comparator.\n *\n * // use a custom comparator\n * chai.config.deepEqual = (expected, actual) => {\n * return chai.util.eql(expected, actual, {\n * comparator: (expected, actual) => {\n * // for non number comparison, use the default behavior\n * if(typeof expected !== 'number') return null;\n * // allow a difference of 10 between compared numbers\n * return typeof actual === 'number' && Math.abs(actual - expected) < 10\n * }\n * })\n * };\n *\n * @param {Function}\n * @public\n */\n deepEqual: null\n};\n\n// lib/chai/utils/inspect.js\nfunction inspect2(obj, showHidden, depth, colors) {\n let options = {\n colors,\n depth: typeof depth === \"undefined\" ? 2 : depth,\n showHidden,\n truncate: config.truncateThreshold ? config.truncateThreshold : Infinity\n };\n return inspect(obj, options);\n}\n__name(inspect2, \"inspect\");\n\n// lib/chai/utils/objDisplay.js\nfunction objDisplay(obj) {\n let str = inspect2(obj), type3 = Object.prototype.toString.call(obj);\n if (config.truncateThreshold && str.length >= config.truncateThreshold) {\n if (type3 === \"[object Function]\") {\n return !obj.name || obj.name === \"\" ? \"[Function]\" : \"[Function: \" + obj.name + \"]\";\n } else if (type3 === \"[object Array]\") {\n return \"[ Array(\" + obj.length + \") ]\";\n } else if (type3 === \"[object Object]\") {\n let keys = Object.keys(obj), kstr = keys.length > 2 ? keys.splice(0, 2).join(\", \") + \", ...\" : keys.join(\", \");\n return \"{ Object (\" + kstr + \") }\";\n } else {\n return str;\n }\n } else {\n return str;\n }\n}\n__name(objDisplay, \"objDisplay\");\n\n// lib/chai/utils/getMessage.js\nfunction getMessage2(obj, args) {\n let negate = flag(obj, \"negate\");\n let val = flag(obj, \"object\");\n let expected = args[3];\n let actual = getActual(obj, args);\n let msg = negate ? args[2] : args[1];\n let flagMsg = flag(obj, \"message\");\n if (typeof msg === \"function\") msg = msg();\n msg = msg || \"\";\n msg = msg.replace(/#\\{this\\}/g, function() {\n return objDisplay(val);\n }).replace(/#\\{act\\}/g, function() {\n return objDisplay(actual);\n }).replace(/#\\{exp\\}/g, function() {\n return objDisplay(expected);\n });\n return flagMsg ? flagMsg + \": \" + msg : msg;\n}\n__name(getMessage2, \"getMessage\");\n\n// lib/chai/utils/transferFlags.js\nfunction transferFlags(assertion, object, includeAll) {\n let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null));\n if (!object.__flags) {\n object.__flags = /* @__PURE__ */ Object.create(null);\n }\n includeAll = arguments.length === 3 ? includeAll : true;\n for (let flag3 in flags) {\n if (includeAll || flag3 !== \"object\" && flag3 !== \"ssfi\" && flag3 !== \"lockSsfi\" && flag3 != \"message\") {\n object.__flags[flag3] = flags[flag3];\n }\n }\n}\n__name(transferFlags, \"transferFlags\");\n\n// node_modules/deep-eql/index.js\nfunction type2(obj) {\n if (typeof obj === \"undefined\") {\n return \"undefined\";\n }\n if (obj === null) {\n return \"null\";\n }\n const stringTag = obj[Symbol.toStringTag];\n if (typeof stringTag === \"string\") {\n return stringTag;\n }\n const sliceStart = 8;\n const sliceEnd = -1;\n return Object.prototype.toString.call(obj).slice(sliceStart, sliceEnd);\n}\n__name(type2, \"type\");\nfunction FakeMap() {\n this._key = \"chai/deep-eql__\" + Math.random() + Date.now();\n}\n__name(FakeMap, \"FakeMap\");\nFakeMap.prototype = {\n get: /* @__PURE__ */ __name(function get(key) {\n return key[this._key];\n }, \"get\"),\n set: /* @__PURE__ */ __name(function set(key, value) {\n if (Object.isExtensible(key)) {\n Object.defineProperty(key, this._key, {\n value,\n configurable: true\n });\n }\n }, \"set\")\n};\nvar MemoizeMap = typeof WeakMap === \"function\" ? WeakMap : FakeMap;\nfunction memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) {\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return null;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n var result = leftHandMap.get(rightHandOperand);\n if (typeof result === \"boolean\") {\n return result;\n }\n }\n return null;\n}\n__name(memoizeCompare, \"memoizeCompare\");\nfunction memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) {\n if (!memoizeMap || isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return;\n }\n var leftHandMap = memoizeMap.get(leftHandOperand);\n if (leftHandMap) {\n leftHandMap.set(rightHandOperand, result);\n } else {\n leftHandMap = new MemoizeMap();\n leftHandMap.set(rightHandOperand, result);\n memoizeMap.set(leftHandOperand, leftHandMap);\n }\n}\n__name(memoizeSet, \"memoizeSet\");\nvar deep_eql_default = deepEqual;\nfunction deepEqual(leftHandOperand, rightHandOperand, options) {\n if (options && options.comparator) {\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n }\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n return simpleResult;\n }\n return extensiveDeepEqual(leftHandOperand, rightHandOperand, options);\n}\n__name(deepEqual, \"deepEqual\");\nfunction simpleEqual(leftHandOperand, rightHandOperand) {\n if (leftHandOperand === rightHandOperand) {\n return leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand;\n }\n if (leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare\n rightHandOperand !== rightHandOperand) {\n return true;\n }\n if (isPrimitive(leftHandOperand) || isPrimitive(rightHandOperand)) {\n return false;\n }\n return null;\n}\n__name(simpleEqual, \"simpleEqual\");\nfunction extensiveDeepEqual(leftHandOperand, rightHandOperand, options) {\n options = options || {};\n options.memoize = options.memoize === false ? false : options.memoize || new MemoizeMap();\n var comparator = options && options.comparator;\n var memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize);\n if (memoizeResultLeft !== null) {\n return memoizeResultLeft;\n }\n var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize);\n if (memoizeResultRight !== null) {\n return memoizeResultRight;\n }\n if (comparator) {\n var comparatorResult = comparator(leftHandOperand, rightHandOperand);\n if (comparatorResult === false || comparatorResult === true) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult);\n return comparatorResult;\n }\n var simpleResult = simpleEqual(leftHandOperand, rightHandOperand);\n if (simpleResult !== null) {\n return simpleResult;\n }\n }\n var leftHandType = type2(leftHandOperand);\n if (leftHandType !== type2(rightHandOperand)) {\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, false);\n return false;\n }\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, true);\n var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options);\n memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result);\n return result;\n}\n__name(extensiveDeepEqual, \"extensiveDeepEqual\");\nfunction extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) {\n switch (leftHandType) {\n case \"String\":\n case \"Number\":\n case \"Boolean\":\n case \"Date\":\n return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf());\n case \"Promise\":\n case \"Symbol\":\n case \"function\":\n case \"WeakMap\":\n case \"WeakSet\":\n return leftHandOperand === rightHandOperand;\n case \"Error\":\n return keysEqual(leftHandOperand, rightHandOperand, [\"name\", \"message\", \"code\"], options);\n case \"Arguments\":\n case \"Int8Array\":\n case \"Uint8Array\":\n case \"Uint8ClampedArray\":\n case \"Int16Array\":\n case \"Uint16Array\":\n case \"Int32Array\":\n case \"Uint32Array\":\n case \"Float32Array\":\n case \"Float64Array\":\n case \"Array\":\n return iterableEqual(leftHandOperand, rightHandOperand, options);\n case \"RegExp\":\n return regexpEqual(leftHandOperand, rightHandOperand);\n case \"Generator\":\n return generatorEqual(leftHandOperand, rightHandOperand, options);\n case \"DataView\":\n return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options);\n case \"ArrayBuffer\":\n return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options);\n case \"Set\":\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case \"Map\":\n return entriesEqual(leftHandOperand, rightHandOperand, options);\n case \"Temporal.PlainDate\":\n case \"Temporal.PlainTime\":\n case \"Temporal.PlainDateTime\":\n case \"Temporal.Instant\":\n case \"Temporal.ZonedDateTime\":\n case \"Temporal.PlainYearMonth\":\n case \"Temporal.PlainMonthDay\":\n return leftHandOperand.equals(rightHandOperand);\n case \"Temporal.Duration\":\n return leftHandOperand.total(\"nanoseconds\") === rightHandOperand.total(\"nanoseconds\");\n case \"Temporal.TimeZone\":\n case \"Temporal.Calendar\":\n return leftHandOperand.toString() === rightHandOperand.toString();\n default:\n return objectEqual(leftHandOperand, rightHandOperand, options);\n }\n}\n__name(extensiveDeepEqualByType, \"extensiveDeepEqualByType\");\nfunction regexpEqual(leftHandOperand, rightHandOperand) {\n return leftHandOperand.toString() === rightHandOperand.toString();\n}\n__name(regexpEqual, \"regexpEqual\");\nfunction entriesEqual(leftHandOperand, rightHandOperand, options) {\n try {\n if (leftHandOperand.size !== rightHandOperand.size) {\n return false;\n }\n if (leftHandOperand.size === 0) {\n return true;\n }\n } catch (sizeError) {\n return false;\n }\n var leftHandItems = [];\n var rightHandItems = [];\n leftHandOperand.forEach(/* @__PURE__ */ __name(function gatherEntries(key, value) {\n leftHandItems.push([key, value]);\n }, \"gatherEntries\"));\n rightHandOperand.forEach(/* @__PURE__ */ __name(function gatherEntries(key, value) {\n rightHandItems.push([key, value]);\n }, \"gatherEntries\"));\n return iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options);\n}\n__name(entriesEqual, \"entriesEqual\");\nfunction iterableEqual(leftHandOperand, rightHandOperand, options) {\n var length = leftHandOperand.length;\n if (length !== rightHandOperand.length) {\n return false;\n }\n if (length === 0) {\n return true;\n }\n var index = -1;\n while (++index < length) {\n if (deepEqual(leftHandOperand[index], rightHandOperand[index], options) === false) {\n return false;\n }\n }\n return true;\n}\n__name(iterableEqual, \"iterableEqual\");\nfunction generatorEqual(leftHandOperand, rightHandOperand, options) {\n return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options);\n}\n__name(generatorEqual, \"generatorEqual\");\nfunction hasIteratorFunction(target) {\n return typeof Symbol !== \"undefined\" && typeof target === \"object\" && typeof Symbol.iterator !== \"undefined\" && typeof target[Symbol.iterator] === \"function\";\n}\n__name(hasIteratorFunction, \"hasIteratorFunction\");\nfunction getIteratorEntries(target) {\n if (hasIteratorFunction(target)) {\n try {\n return getGeneratorEntries(target[Symbol.iterator]());\n } catch (iteratorError) {\n return [];\n }\n }\n return [];\n}\n__name(getIteratorEntries, \"getIteratorEntries\");\nfunction getGeneratorEntries(generator) {\n var generatorResult = generator.next();\n var accumulator = [generatorResult.value];\n while (generatorResult.done === false) {\n generatorResult = generator.next();\n accumulator.push(generatorResult.value);\n }\n return accumulator;\n}\n__name(getGeneratorEntries, \"getGeneratorEntries\");\nfunction getEnumerableKeys(target) {\n var keys = [];\n for (var key in target) {\n keys.push(key);\n }\n return keys;\n}\n__name(getEnumerableKeys, \"getEnumerableKeys\");\nfunction getEnumerableSymbols(target) {\n var keys = [];\n var allKeys = Object.getOwnPropertySymbols(target);\n for (var i = 0; i < allKeys.length; i += 1) {\n var key = allKeys[i];\n if (Object.getOwnPropertyDescriptor(target, key).enumerable) {\n keys.push(key);\n }\n }\n return keys;\n}\n__name(getEnumerableSymbols, \"getEnumerableSymbols\");\nfunction keysEqual(leftHandOperand, rightHandOperand, keys, options) {\n var length = keys.length;\n if (length === 0) {\n return true;\n }\n for (var i = 0; i < length; i += 1) {\n if (deepEqual(leftHandOperand[keys[i]], rightHandOperand[keys[i]], options) === false) {\n return false;\n }\n }\n return true;\n}\n__name(keysEqual, \"keysEqual\");\nfunction objectEqual(leftHandOperand, rightHandOperand, options) {\n var leftHandKeys = getEnumerableKeys(leftHandOperand);\n var rightHandKeys = getEnumerableKeys(rightHandOperand);\n var leftHandSymbols = getEnumerableSymbols(leftHandOperand);\n var rightHandSymbols = getEnumerableSymbols(rightHandOperand);\n leftHandKeys = leftHandKeys.concat(leftHandSymbols);\n rightHandKeys = rightHandKeys.concat(rightHandSymbols);\n if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {\n if (iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === false) {\n return false;\n }\n return keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options);\n }\n var leftHandEntries = getIteratorEntries(leftHandOperand);\n var rightHandEntries = getIteratorEntries(rightHandOperand);\n if (leftHandEntries.length && leftHandEntries.length === rightHandEntries.length) {\n leftHandEntries.sort();\n rightHandEntries.sort();\n return iterableEqual(leftHandEntries, rightHandEntries, options);\n }\n if (leftHandKeys.length === 0 && leftHandEntries.length === 0 && rightHandKeys.length === 0 && rightHandEntries.length === 0) {\n return true;\n }\n return false;\n}\n__name(objectEqual, \"objectEqual\");\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"object\";\n}\n__name(isPrimitive, \"isPrimitive\");\nfunction mapSymbols(arr) {\n return arr.map(/* @__PURE__ */ __name(function mapSymbol(entry) {\n if (typeof entry === \"symbol\") {\n return entry.toString();\n }\n return entry;\n }, \"mapSymbol\"));\n}\n__name(mapSymbols, \"mapSymbols\");\n\n// node_modules/pathval/index.js\nfunction hasProperty(obj, name) {\n if (typeof obj === \"undefined\" || obj === null) {\n return false;\n }\n return name in Object(obj);\n}\n__name(hasProperty, \"hasProperty\");\nfunction parsePath(path) {\n const str = path.replace(/([^\\\\])\\[/g, \"$1.[\");\n const parts = str.match(/(\\\\\\.|[^.]+?)+/g);\n return parts.map((value) => {\n if (value === \"constructor\" || value === \"__proto__\" || value === \"prototype\") {\n return {};\n }\n const regexp = /^\\[(\\d+)\\]$/;\n const mArr = regexp.exec(value);\n let parsed = null;\n if (mArr) {\n parsed = { i: parseFloat(mArr[1]) };\n } else {\n parsed = { p: value.replace(/\\\\([.[\\]])/g, \"$1\") };\n }\n return parsed;\n });\n}\n__name(parsePath, \"parsePath\");\nfunction internalGetPathValue(obj, parsed, pathDepth) {\n let temporaryValue = obj;\n let res = null;\n pathDepth = typeof pathDepth === \"undefined\" ? parsed.length : pathDepth;\n for (let i = 0; i < pathDepth; i++) {\n const part = parsed[i];\n if (temporaryValue) {\n if (typeof part.p === \"undefined\") {\n temporaryValue = temporaryValue[part.i];\n } else {\n temporaryValue = temporaryValue[part.p];\n }\n if (i === pathDepth - 1) {\n res = temporaryValue;\n }\n }\n }\n return res;\n}\n__name(internalGetPathValue, \"internalGetPathValue\");\nfunction getPathInfo(obj, path) {\n const parsed = parsePath(path);\n const last = parsed[parsed.length - 1];\n const info = {\n parent: parsed.length > 1 ? internalGetPathValue(obj, parsed, parsed.length - 1) : obj,\n name: last.p || last.i,\n value: internalGetPathValue(obj, parsed)\n };\n info.exists = hasProperty(info.parent, info.name);\n return info;\n}\n__name(getPathInfo, \"getPathInfo\");\n\n// lib/chai/assertion.js\nvar Assertion = class _Assertion {\n static {\n __name(this, \"Assertion\");\n }\n /** @type {{}} */\n __flags = {};\n /**\n * Creates object for chaining.\n * `Assertion` objects contain metadata in the form of flags. Three flags can\n * be assigned during instantiation by passing arguments to this constructor:\n *\n * - `object`: This flag contains the target of the assertion. For example, in\n * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will\n * contain `numKittens` so that the `equal` assertion can reference it when\n * needed.\n *\n * - `message`: This flag contains an optional custom error message to be\n * prepended to the error message that's generated by the assertion when it\n * fails.\n *\n * - `ssfi`: This flag stands for \"start stack function indicator\". It\n * contains a function reference that serves as the starting point for\n * removing frames from the stack trace of the error that's created by the\n * assertion when it fails. The goal is to provide a cleaner stack trace to\n * end users by removing Chai's internal functions. Note that it only works\n * in environments that support `Error.captureStackTrace`, and only when\n * `Chai.config.includeStack` hasn't been set to `false`.\n *\n * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag\n * should retain its current value, even as assertions are chained off of\n * this object. This is usually set to `true` when creating a new assertion\n * from within another assertion. It's also temporarily set to `true` before\n * an overwritten assertion gets called by the overwriting assertion.\n *\n * - `eql`: This flag contains the deepEqual function to be used by the assertion.\n *\n * @param {unknown} obj target of the assertion\n * @param {string} [msg] (optional) custom error message\n * @param {Function} [ssfi] (optional) starting point for removing stack frames\n * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked\n */\n constructor(obj, msg, ssfi, lockSsfi) {\n flag(this, \"ssfi\", ssfi || _Assertion);\n flag(this, \"lockSsfi\", lockSsfi);\n flag(this, \"object\", obj);\n flag(this, \"message\", msg);\n flag(this, \"eql\", config.deepEqual || deep_eql_default);\n return proxify(this);\n }\n /** @returns {boolean} */\n static get includeStack() {\n console.warn(\n \"Assertion.includeStack is deprecated, use chai.config.includeStack instead.\"\n );\n return config.includeStack;\n }\n /** @param {boolean} value */\n static set includeStack(value) {\n console.warn(\n \"Assertion.includeStack is deprecated, use chai.config.includeStack instead.\"\n );\n config.includeStack = value;\n }\n /** @returns {boolean} */\n static get showDiff() {\n console.warn(\n \"Assertion.showDiff is deprecated, use chai.config.showDiff instead.\"\n );\n return config.showDiff;\n }\n /** @param {boolean} value */\n static set showDiff(value) {\n console.warn(\n \"Assertion.showDiff is deprecated, use chai.config.showDiff instead.\"\n );\n config.showDiff = value;\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static addProperty(name, fn) {\n addProperty(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static addMethod(name, fn) {\n addMethod(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n * @param {Function} chainingBehavior\n */\n static addChainableMethod(name, fn, chainingBehavior) {\n addChainableMethod(this.prototype, name, fn, chainingBehavior);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static overwriteProperty(name, fn) {\n overwriteProperty(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n */\n static overwriteMethod(name, fn) {\n overwriteMethod(this.prototype, name, fn);\n }\n /**\n * @param {string} name\n * @param {Function} fn\n * @param {Function} chainingBehavior\n */\n static overwriteChainableMethod(name, fn, chainingBehavior) {\n overwriteChainableMethod(this.prototype, name, fn, chainingBehavior);\n }\n /**\n * ### .assert(expression, message, negateMessage, expected, actual, showDiff)\n *\n * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass.\n *\n * @name assert\n * @param {unknown} _expr to be tested\n * @param {string | Function} msg or function that returns message to display if expression fails\n * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails\n * @param {unknown} expected value (remember to check for negation)\n * @param {unknown} _actual (optional) will default to `this.obj`\n * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails\n * @returns {void}\n */\n assert(_expr, msg, _negateMsg, expected, _actual, showDiff) {\n const ok = test(this, arguments);\n if (false !== showDiff) showDiff = true;\n if (void 0 === expected && void 0 === _actual) showDiff = false;\n if (true !== config.showDiff) showDiff = false;\n if (!ok) {\n msg = getMessage2(this, arguments);\n const actual = getActual(this, arguments);\n const assertionErrorObjectProperties = {\n actual,\n expected,\n showDiff\n };\n const operator = getOperator(this, arguments);\n if (operator) {\n assertionErrorObjectProperties.operator = operator;\n }\n throw new AssertionError(\n msg,\n assertionErrorObjectProperties,\n // @ts-expect-error Not sure what to do about these types yet\n config.includeStack ? this.assert : flag(this, \"ssfi\")\n );\n }\n }\n /**\n * Quick reference to stored `actual` value for plugin developers.\n *\n * @returns {unknown}\n */\n get _obj() {\n return flag(this, \"object\");\n }\n /**\n * Quick reference to stored `actual` value for plugin developers.\n *\n * @param {unknown} val\n */\n set _obj(val) {\n flag(this, \"object\", val);\n }\n};\n\n// lib/chai/utils/isProxyEnabled.js\nfunction isProxyEnabled() {\n return config.useProxy && typeof Proxy !== \"undefined\" && typeof Reflect !== \"undefined\";\n}\n__name(isProxyEnabled, \"isProxyEnabled\");\n\n// lib/chai/utils/addProperty.js\nfunction addProperty(ctx, name, getter) {\n getter = getter === void 0 ? function() {\n } : getter;\n Object.defineProperty(ctx, name, {\n get: /* @__PURE__ */ __name(function propertyGetter() {\n if (!isProxyEnabled() && !flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", propertyGetter);\n }\n let result = getter.call(this);\n if (result !== void 0) return result;\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"propertyGetter\"),\n configurable: true\n });\n}\n__name(addProperty, \"addProperty\");\n\n// lib/chai/utils/addLengthGuard.js\nvar fnLengthDesc = Object.getOwnPropertyDescriptor(function() {\n}, \"length\");\nfunction addLengthGuard(fn, assertionName, isChainable) {\n if (!fnLengthDesc.configurable) return fn;\n Object.defineProperty(fn, \"length\", {\n get: /* @__PURE__ */ __name(function() {\n if (isChainable) {\n throw Error(\n \"Invalid Chai property: \" + assertionName + '.length. Due to a compatibility issue, \"length\" cannot directly follow \"' + assertionName + '\". Use \"' + assertionName + '.lengthOf\" instead.'\n );\n }\n throw Error(\n \"Invalid Chai property: \" + assertionName + '.length. See docs for proper usage of \"' + assertionName + '\".'\n );\n }, \"get\")\n });\n return fn;\n}\n__name(addLengthGuard, \"addLengthGuard\");\n\n// lib/chai/utils/getProperties.js\nfunction getProperties(object) {\n let result = Object.getOwnPropertyNames(object);\n function addProperty2(property) {\n if (result.indexOf(property) === -1) {\n result.push(property);\n }\n }\n __name(addProperty2, \"addProperty\");\n let proto = Object.getPrototypeOf(object);\n while (proto !== null) {\n Object.getOwnPropertyNames(proto).forEach(addProperty2);\n proto = Object.getPrototypeOf(proto);\n }\n return result;\n}\n__name(getProperties, \"getProperties\");\n\n// lib/chai/utils/proxify.js\nvar builtins = [\"__flags\", \"__methods\", \"_obj\", \"assert\"];\nfunction proxify(obj, nonChainableMethodName) {\n if (!isProxyEnabled()) return obj;\n return new Proxy(obj, {\n get: /* @__PURE__ */ __name(function proxyGetter(target, property) {\n if (typeof property === \"string\" && config.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) {\n if (nonChainableMethodName) {\n throw Error(\n \"Invalid Chai property: \" + nonChainableMethodName + \".\" + property + '. See docs for proper usage of \"' + nonChainableMethodName + '\".'\n );\n }\n let suggestion = null;\n let suggestionDistance = 4;\n getProperties(target).forEach(function(prop) {\n if (\n // we actually mean to check `Object.prototype` here\n // eslint-disable-next-line no-prototype-builtins\n !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1\n ) {\n let dist = stringDistanceCapped(property, prop, suggestionDistance);\n if (dist < suggestionDistance) {\n suggestion = prop;\n suggestionDistance = dist;\n }\n }\n });\n if (suggestion !== null) {\n throw Error(\n \"Invalid Chai property: \" + property + '. Did you mean \"' + suggestion + '\"?'\n );\n } else {\n throw Error(\"Invalid Chai property: \" + property);\n }\n }\n if (builtins.indexOf(property) === -1 && !flag(target, \"lockSsfi\")) {\n flag(target, \"ssfi\", proxyGetter);\n }\n return Reflect.get(target, property);\n }, \"proxyGetter\")\n });\n}\n__name(proxify, \"proxify\");\nfunction stringDistanceCapped(strA, strB, cap) {\n if (Math.abs(strA.length - strB.length) >= cap) {\n return cap;\n }\n let memo = [];\n for (let i = 0; i <= strA.length; i++) {\n memo[i] = Array(strB.length + 1).fill(0);\n memo[i][0] = i;\n }\n for (let j = 0; j < strB.length; j++) {\n memo[0][j] = j;\n }\n for (let i = 1; i <= strA.length; i++) {\n let ch = strA.charCodeAt(i - 1);\n for (let j = 1; j <= strB.length; j++) {\n if (Math.abs(i - j) >= cap) {\n memo[i][j] = cap;\n continue;\n }\n memo[i][j] = Math.min(\n memo[i - 1][j] + 1,\n memo[i][j - 1] + 1,\n memo[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1)\n );\n }\n }\n return memo[strA.length][strB.length];\n}\n__name(stringDistanceCapped, \"stringDistanceCapped\");\n\n// lib/chai/utils/addMethod.js\nfunction addMethod(ctx, name, method) {\n let methodWrapper = /* @__PURE__ */ __name(function() {\n if (!flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", methodWrapper);\n }\n let result = method.apply(this, arguments);\n if (result !== void 0) return result;\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"methodWrapper\");\n addLengthGuard(methodWrapper, name, false);\n ctx[name] = proxify(methodWrapper, name);\n}\n__name(addMethod, \"addMethod\");\n\n// lib/chai/utils/overwriteProperty.js\nfunction overwriteProperty(ctx, name, getter) {\n let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = /* @__PURE__ */ __name(function() {\n }, \"_super\");\n if (_get && \"function\" === typeof _get.get) _super = _get.get;\n Object.defineProperty(ctx, name, {\n get: /* @__PURE__ */ __name(function overwritingPropertyGetter() {\n if (!isProxyEnabled() && !flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", overwritingPropertyGetter);\n }\n let origLockSsfi = flag(this, \"lockSsfi\");\n flag(this, \"lockSsfi\", true);\n let result = getter(_super).call(this);\n flag(this, \"lockSsfi\", origLockSsfi);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingPropertyGetter\"),\n configurable: true\n });\n}\n__name(overwriteProperty, \"overwriteProperty\");\n\n// lib/chai/utils/overwriteMethod.js\nfunction overwriteMethod(ctx, name, method) {\n let _method = ctx[name], _super = /* @__PURE__ */ __name(function() {\n throw new Error(name + \" is not a function\");\n }, \"_super\");\n if (_method && \"function\" === typeof _method) _super = _method;\n let overwritingMethodWrapper = /* @__PURE__ */ __name(function() {\n if (!flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", overwritingMethodWrapper);\n }\n let origLockSsfi = flag(this, \"lockSsfi\");\n flag(this, \"lockSsfi\", true);\n let result = method(_super).apply(this, arguments);\n flag(this, \"lockSsfi\", origLockSsfi);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingMethodWrapper\");\n addLengthGuard(overwritingMethodWrapper, name, false);\n ctx[name] = proxify(overwritingMethodWrapper, name);\n}\n__name(overwriteMethod, \"overwriteMethod\");\n\n// lib/chai/utils/addChainableMethod.js\nvar canSetPrototype = typeof Object.setPrototypeOf === \"function\";\nvar testFn = /* @__PURE__ */ __name(function() {\n}, \"testFn\");\nvar excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {\n let propDesc = Object.getOwnPropertyDescriptor(testFn, name);\n if (typeof propDesc !== \"object\") return true;\n return !propDesc.configurable;\n});\nvar call = Function.prototype.call;\nvar apply = Function.prototype.apply;\nfunction addChainableMethod(ctx, name, method, chainingBehavior) {\n if (typeof chainingBehavior !== \"function\") {\n chainingBehavior = /* @__PURE__ */ __name(function() {\n }, \"chainingBehavior\");\n }\n let chainableBehavior = {\n method,\n chainingBehavior\n };\n if (!ctx.__methods) {\n ctx.__methods = {};\n }\n ctx.__methods[name] = chainableBehavior;\n Object.defineProperty(ctx, name, {\n get: /* @__PURE__ */ __name(function chainableMethodGetter() {\n chainableBehavior.chainingBehavior.call(this);\n let chainableMethodWrapper = /* @__PURE__ */ __name(function() {\n if (!flag(this, \"lockSsfi\")) {\n flag(this, \"ssfi\", chainableMethodWrapper);\n }\n let result = chainableBehavior.method.apply(this, arguments);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"chainableMethodWrapper\");\n addLengthGuard(chainableMethodWrapper, name, true);\n if (canSetPrototype) {\n let prototype = Object.create(this);\n prototype.call = call;\n prototype.apply = apply;\n Object.setPrototypeOf(chainableMethodWrapper, prototype);\n } else {\n let asserterNames = Object.getOwnPropertyNames(ctx);\n asserterNames.forEach(function(asserterName) {\n if (excludeNames.indexOf(asserterName) !== -1) {\n return;\n }\n let pd = Object.getOwnPropertyDescriptor(ctx, asserterName);\n Object.defineProperty(chainableMethodWrapper, asserterName, pd);\n });\n }\n transferFlags(this, chainableMethodWrapper);\n return proxify(chainableMethodWrapper);\n }, \"chainableMethodGetter\"),\n configurable: true\n });\n}\n__name(addChainableMethod, \"addChainableMethod\");\n\n// lib/chai/utils/overwriteChainableMethod.js\nfunction overwriteChainableMethod(ctx, name, method, chainingBehavior) {\n let chainableBehavior = ctx.__methods[name];\n let _chainingBehavior = chainableBehavior.chainingBehavior;\n chainableBehavior.chainingBehavior = /* @__PURE__ */ __name(function overwritingChainableMethodGetter() {\n let result = chainingBehavior(_chainingBehavior).call(this);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingChainableMethodGetter\");\n let _method = chainableBehavior.method;\n chainableBehavior.method = /* @__PURE__ */ __name(function overwritingChainableMethodWrapper() {\n let result = method(_method).apply(this, arguments);\n if (result !== void 0) {\n return result;\n }\n let newAssertion = new Assertion();\n transferFlags(this, newAssertion);\n return newAssertion;\n }, \"overwritingChainableMethodWrapper\");\n}\n__name(overwriteChainableMethod, \"overwriteChainableMethod\");\n\n// lib/chai/utils/compareByInspect.js\nfunction compareByInspect(a, b) {\n return inspect2(a) < inspect2(b) ? -1 : 1;\n}\n__name(compareByInspect, \"compareByInspect\");\n\n// lib/chai/utils/getOwnEnumerablePropertySymbols.js\nfunction getOwnEnumerablePropertySymbols(obj) {\n if (typeof Object.getOwnPropertySymbols !== \"function\") return [];\n return Object.getOwnPropertySymbols(obj).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(obj, sym).enumerable;\n });\n}\n__name(getOwnEnumerablePropertySymbols, \"getOwnEnumerablePropertySymbols\");\n\n// lib/chai/utils/getOwnEnumerableProperties.js\nfunction getOwnEnumerableProperties(obj) {\n return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj));\n}\n__name(getOwnEnumerableProperties, \"getOwnEnumerableProperties\");\n\n// lib/chai/utils/isNaN.js\nvar isNaN2 = Number.isNaN;\n\n// lib/chai/utils/getOperator.js\nfunction isObjectType(obj) {\n let objectType = type(obj);\n let objectTypes = [\"Array\", \"Object\", \"Function\"];\n return objectTypes.indexOf(objectType) !== -1;\n}\n__name(isObjectType, \"isObjectType\");\nfunction getOperator(obj, args) {\n let operator = flag(obj, \"operator\");\n let negate = flag(obj, \"negate\");\n let expected = args[3];\n let msg = negate ? args[2] : args[1];\n if (operator) {\n return operator;\n }\n if (typeof msg === \"function\") msg = msg();\n msg = msg || \"\";\n if (!msg) {\n return void 0;\n }\n if (/\\shave\\s/.test(msg)) {\n return void 0;\n }\n let isObject = isObjectType(expected);\n if (/\\snot\\s/.test(msg)) {\n return isObject ? \"notDeepStrictEqual\" : \"notStrictEqual\";\n }\n return isObject ? \"deepStrictEqual\" : \"strictEqual\";\n}\n__name(getOperator, \"getOperator\");\n\n// lib/chai/utils/index.js\nfunction getName(fn) {\n return fn.name;\n}\n__name(getName, \"getName\");\nfunction isRegExp2(obj) {\n return Object.prototype.toString.call(obj) === \"[object RegExp]\";\n}\n__name(isRegExp2, \"isRegExp\");\nfunction isNumeric(obj) {\n return [\"Number\", \"BigInt\"].includes(type(obj));\n}\n__name(isNumeric, \"isNumeric\");\n\n// lib/chai/core/assertions.js\nvar { flag: flag2 } = utils_exports;\n[\n \"to\",\n \"be\",\n \"been\",\n \"is\",\n \"and\",\n \"has\",\n \"have\",\n \"with\",\n \"that\",\n \"which\",\n \"at\",\n \"of\",\n \"same\",\n \"but\",\n \"does\",\n \"still\",\n \"also\"\n].forEach(function(chain) {\n Assertion.addProperty(chain);\n});\nAssertion.addProperty(\"not\", function() {\n flag2(this, \"negate\", true);\n});\nAssertion.addProperty(\"deep\", function() {\n flag2(this, \"deep\", true);\n});\nAssertion.addProperty(\"nested\", function() {\n flag2(this, \"nested\", true);\n});\nAssertion.addProperty(\"own\", function() {\n flag2(this, \"own\", true);\n});\nAssertion.addProperty(\"ordered\", function() {\n flag2(this, \"ordered\", true);\n});\nAssertion.addProperty(\"any\", function() {\n flag2(this, \"any\", true);\n flag2(this, \"all\", false);\n});\nAssertion.addProperty(\"all\", function() {\n flag2(this, \"all\", true);\n flag2(this, \"any\", false);\n});\nvar functionTypes = {\n function: [\n \"function\",\n \"asyncfunction\",\n \"generatorfunction\",\n \"asyncgeneratorfunction\"\n ],\n asyncfunction: [\"asyncfunction\", \"asyncgeneratorfunction\"],\n generatorfunction: [\"generatorfunction\", \"asyncgeneratorfunction\"],\n asyncgeneratorfunction: [\"asyncgeneratorfunction\"]\n};\nfunction an(type3, msg) {\n if (msg) flag2(this, \"message\", msg);\n type3 = type3.toLowerCase();\n let obj = flag2(this, \"object\"), article = ~[\"a\", \"e\", \"i\", \"o\", \"u\"].indexOf(type3.charAt(0)) ? \"an \" : \"a \";\n const detectedType = type(obj).toLowerCase();\n if (functionTypes[\"function\"].includes(type3)) {\n this.assert(\n functionTypes[type3].includes(detectedType),\n \"expected #{this} to be \" + article + type3,\n \"expected #{this} not to be \" + article + type3\n );\n } else {\n this.assert(\n type3 === detectedType,\n \"expected #{this} to be \" + article + type3,\n \"expected #{this} not to be \" + article + type3\n );\n }\n}\n__name(an, \"an\");\nAssertion.addChainableMethod(\"an\", an);\nAssertion.addChainableMethod(\"a\", an);\nfunction SameValueZero(a, b) {\n return isNaN2(a) && isNaN2(b) || a === b;\n}\n__name(SameValueZero, \"SameValueZero\");\nfunction includeChainingBehavior() {\n flag2(this, \"contains\", true);\n}\n__name(includeChainingBehavior, \"includeChainingBehavior\");\nfunction include(val, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, \"message\"), negate = flag2(this, \"negate\"), ssfi = flag2(this, \"ssfi\"), isDeep = flag2(this, \"deep\"), descriptor = isDeep ? \"deep \" : \"\", isEql = isDeep ? flag2(this, \"eql\") : SameValueZero;\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n let included = false;\n switch (objType) {\n case \"string\":\n included = obj.indexOf(val) !== -1;\n break;\n case \"weakset\":\n if (isDeep) {\n throw new AssertionError(\n flagMsg + \"unable to use .deep.include with WeakSet\",\n void 0,\n ssfi\n );\n }\n included = obj.has(val);\n break;\n case \"map\":\n obj.forEach(function(item) {\n included = included || isEql(item, val);\n });\n break;\n case \"set\":\n if (isDeep) {\n obj.forEach(function(item) {\n included = included || isEql(item, val);\n });\n } else {\n included = obj.has(val);\n }\n break;\n case \"array\":\n if (isDeep) {\n included = obj.some(function(item) {\n return isEql(item, val);\n });\n } else {\n included = obj.indexOf(val) !== -1;\n }\n break;\n default: {\n if (val !== Object(val)) {\n throw new AssertionError(\n flagMsg + \"the given combination of arguments (\" + objType + \" and \" + type(val).toLowerCase() + \") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a \" + type(val).toLowerCase(),\n void 0,\n ssfi\n );\n }\n let props = Object.keys(val);\n let firstErr = null;\n let numErrs = 0;\n props.forEach(function(prop) {\n let propAssertion = new Assertion(obj);\n transferFlags(this, propAssertion, true);\n flag2(propAssertion, \"lockSsfi\", true);\n if (!negate || props.length === 1) {\n propAssertion.property(prop, val[prop]);\n return;\n }\n try {\n propAssertion.property(prop, val[prop]);\n } catch (err) {\n if (!check_error_exports.compatibleConstructor(err, AssertionError)) {\n throw err;\n }\n if (firstErr === null) firstErr = err;\n numErrs++;\n }\n }, this);\n if (negate && props.length > 1 && numErrs === props.length) {\n throw firstErr;\n }\n return;\n }\n }\n this.assert(\n included,\n \"expected #{this} to \" + descriptor + \"include \" + inspect2(val),\n \"expected #{this} to not \" + descriptor + \"include \" + inspect2(val)\n );\n}\n__name(include, \"include\");\nAssertion.addChainableMethod(\"include\", include, includeChainingBehavior);\nAssertion.addChainableMethod(\"contain\", include, includeChainingBehavior);\nAssertion.addChainableMethod(\"contains\", include, includeChainingBehavior);\nAssertion.addChainableMethod(\"includes\", include, includeChainingBehavior);\nAssertion.addProperty(\"ok\", function() {\n this.assert(\n flag2(this, \"object\"),\n \"expected #{this} to be truthy\",\n \"expected #{this} to be falsy\"\n );\n});\nAssertion.addProperty(\"true\", function() {\n this.assert(\n true === flag2(this, \"object\"),\n \"expected #{this} to be true\",\n \"expected #{this} to be false\",\n flag2(this, \"negate\") ? false : true\n );\n});\nAssertion.addProperty(\"numeric\", function() {\n const object = flag2(this, \"object\");\n this.assert(\n [\"Number\", \"BigInt\"].includes(type(object)),\n \"expected #{this} to be numeric\",\n \"expected #{this} to not be numeric\",\n flag2(this, \"negate\") ? false : true\n );\n});\nAssertion.addProperty(\"callable\", function() {\n const val = flag2(this, \"object\");\n const ssfi = flag2(this, \"ssfi\");\n const message = flag2(this, \"message\");\n const msg = message ? `${message}: ` : \"\";\n const negate = flag2(this, \"negate\");\n const assertionMessage = negate ? `${msg}expected ${inspect2(val)} not to be a callable function` : `${msg}expected ${inspect2(val)} to be a callable function`;\n const isCallable = [\n \"Function\",\n \"AsyncFunction\",\n \"GeneratorFunction\",\n \"AsyncGeneratorFunction\"\n ].includes(type(val));\n if (isCallable && negate || !isCallable && !negate) {\n throw new AssertionError(assertionMessage, void 0, ssfi);\n }\n});\nAssertion.addProperty(\"false\", function() {\n this.assert(\n false === flag2(this, \"object\"),\n \"expected #{this} to be false\",\n \"expected #{this} to be true\",\n flag2(this, \"negate\") ? true : false\n );\n});\nAssertion.addProperty(\"null\", function() {\n this.assert(\n null === flag2(this, \"object\"),\n \"expected #{this} to be null\",\n \"expected #{this} not to be null\"\n );\n});\nAssertion.addProperty(\"undefined\", function() {\n this.assert(\n void 0 === flag2(this, \"object\"),\n \"expected #{this} to be undefined\",\n \"expected #{this} not to be undefined\"\n );\n});\nAssertion.addProperty(\"NaN\", function() {\n this.assert(\n isNaN2(flag2(this, \"object\")),\n \"expected #{this} to be NaN\",\n \"expected #{this} not to be NaN\"\n );\n});\nfunction assertExist() {\n let val = flag2(this, \"object\");\n this.assert(\n val !== null && val !== void 0,\n \"expected #{this} to exist\",\n \"expected #{this} to not exist\"\n );\n}\n__name(assertExist, \"assertExist\");\nAssertion.addProperty(\"exist\", assertExist);\nAssertion.addProperty(\"exists\", assertExist);\nAssertion.addProperty(\"empty\", function() {\n let val = flag2(this, \"object\"), ssfi = flag2(this, \"ssfi\"), flagMsg = flag2(this, \"message\"), itemsCount;\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n switch (type(val).toLowerCase()) {\n case \"array\":\n case \"string\":\n itemsCount = val.length;\n break;\n case \"map\":\n case \"set\":\n itemsCount = val.size;\n break;\n case \"weakmap\":\n case \"weakset\":\n throw new AssertionError(\n flagMsg + \".empty was passed a weak collection\",\n void 0,\n ssfi\n );\n case \"function\": {\n const msg = flagMsg + \".empty was passed a function \" + getName(val);\n throw new AssertionError(msg.trim(), void 0, ssfi);\n }\n default:\n if (val !== Object(val)) {\n throw new AssertionError(\n flagMsg + \".empty was passed non-string primitive \" + inspect2(val),\n void 0,\n ssfi\n );\n }\n itemsCount = Object.keys(val).length;\n }\n this.assert(\n 0 === itemsCount,\n \"expected #{this} to be empty\",\n \"expected #{this} not to be empty\"\n );\n});\nfunction checkArguments() {\n let obj = flag2(this, \"object\"), type3 = type(obj);\n this.assert(\n \"Arguments\" === type3,\n \"expected #{this} to be arguments but got \" + type3,\n \"expected #{this} to not be arguments\"\n );\n}\n__name(checkArguments, \"checkArguments\");\nAssertion.addProperty(\"arguments\", checkArguments);\nAssertion.addProperty(\"Arguments\", checkArguments);\nfunction assertEqual(val, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n if (flag2(this, \"deep\")) {\n let prevLockSsfi = flag2(this, \"lockSsfi\");\n flag2(this, \"lockSsfi\", true);\n this.eql(val);\n flag2(this, \"lockSsfi\", prevLockSsfi);\n } else {\n this.assert(\n val === obj,\n \"expected #{this} to equal #{exp}\",\n \"expected #{this} to not equal #{exp}\",\n val,\n this._obj,\n true\n );\n }\n}\n__name(assertEqual, \"assertEqual\");\nAssertion.addMethod(\"equal\", assertEqual);\nAssertion.addMethod(\"equals\", assertEqual);\nAssertion.addMethod(\"eq\", assertEqual);\nfunction assertEql(obj, msg) {\n if (msg) flag2(this, \"message\", msg);\n let eql = flag2(this, \"eql\");\n this.assert(\n eql(obj, flag2(this, \"object\")),\n \"expected #{this} to deeply equal #{exp}\",\n \"expected #{this} to not deeply equal #{exp}\",\n obj,\n this._obj,\n true\n );\n}\n__name(assertEql, \"assertEql\");\nAssertion.addMethod(\"eql\", assertEql);\nAssertion.addMethod(\"eqls\", assertEql);\nfunction assertAbove(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), doLength = flag2(this, \"doLength\"), flagMsg = flag2(this, \"message\"), msgPrefix = flagMsg ? flagMsg + \": \" : \"\", ssfi = flag2(this, \"ssfi\"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase();\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n throw new AssertionError(\n msgPrefix + \"the argument to above must be a date\",\n void 0,\n ssfi\n );\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n throw new AssertionError(\n msgPrefix + \"the argument to above must be a number\",\n void 0,\n ssfi\n );\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n throw new AssertionError(\n msgPrefix + \"expected \" + printObj + \" to be a number or a date\",\n void 0,\n ssfi\n );\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount > n,\n \"expected #{this} to have a \" + descriptor + \" above #{exp} but got #{act}\",\n \"expected #{this} to not have a \" + descriptor + \" above #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj > n,\n \"expected #{this} to be above #{exp}\",\n \"expected #{this} to be at most #{exp}\",\n n\n );\n }\n}\n__name(assertAbove, \"assertAbove\");\nAssertion.addMethod(\"above\", assertAbove);\nAssertion.addMethod(\"gt\", assertAbove);\nAssertion.addMethod(\"greaterThan\", assertAbove);\nfunction assertLeast(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), doLength = flag2(this, \"doLength\"), flagMsg = flag2(this, \"message\"), msgPrefix = flagMsg ? flagMsg + \": \" : \"\", ssfi = flag2(this, \"ssfi\"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n errorMessage = msgPrefix + \"the argument to least must be a date\";\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the argument to least must be a number\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= n,\n \"expected #{this} to have a \" + descriptor + \" at least #{exp} but got #{act}\",\n \"expected #{this} to have a \" + descriptor + \" below #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj >= n,\n \"expected #{this} to be at least #{exp}\",\n \"expected #{this} to be below #{exp}\",\n n\n );\n }\n}\n__name(assertLeast, \"assertLeast\");\nAssertion.addMethod(\"least\", assertLeast);\nAssertion.addMethod(\"gte\", assertLeast);\nAssertion.addMethod(\"greaterThanOrEqual\", assertLeast);\nfunction assertBelow(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), doLength = flag2(this, \"doLength\"), flagMsg = flag2(this, \"message\"), msgPrefix = flagMsg ? flagMsg + \": \" : \"\", ssfi = flag2(this, \"ssfi\"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n errorMessage = msgPrefix + \"the argument to below must be a date\";\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the argument to below must be a number\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount < n,\n \"expected #{this} to have a \" + descriptor + \" below #{exp} but got #{act}\",\n \"expected #{this} to not have a \" + descriptor + \" below #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj < n,\n \"expected #{this} to be below #{exp}\",\n \"expected #{this} to be at least #{exp}\",\n n\n );\n }\n}\n__name(assertBelow, \"assertBelow\");\nAssertion.addMethod(\"below\", assertBelow);\nAssertion.addMethod(\"lt\", assertBelow);\nAssertion.addMethod(\"lessThan\", assertBelow);\nfunction assertMost(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), doLength = flag2(this, \"doLength\"), flagMsg = flag2(this, \"message\"), msgPrefix = flagMsg ? flagMsg + \": \" : \"\", ssfi = flag2(this, \"ssfi\"), objType = type(obj).toLowerCase(), nType = type(n).toLowerCase(), errorMessage, shouldThrow = true;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && nType !== \"date\") {\n errorMessage = msgPrefix + \"the argument to most must be a date\";\n } else if (!isNumeric(n) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the argument to most must be a number\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount <= n,\n \"expected #{this} to have a \" + descriptor + \" at most #{exp} but got #{act}\",\n \"expected #{this} to have a \" + descriptor + \" above #{exp}\",\n n,\n itemsCount\n );\n } else {\n this.assert(\n obj <= n,\n \"expected #{this} to be at most #{exp}\",\n \"expected #{this} to be above #{exp}\",\n n\n );\n }\n}\n__name(assertMost, \"assertMost\");\nAssertion.addMethod(\"most\", assertMost);\nAssertion.addMethod(\"lte\", assertMost);\nAssertion.addMethod(\"lessThanOrEqual\", assertMost);\nAssertion.addMethod(\"within\", function(start, finish, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), doLength = flag2(this, \"doLength\"), flagMsg = flag2(this, \"message\"), msgPrefix = flagMsg ? flagMsg + \": \" : \"\", ssfi = flag2(this, \"ssfi\"), objType = type(obj).toLowerCase(), startType = type(start).toLowerCase(), finishType = type(finish).toLowerCase(), errorMessage, shouldThrow = true, range = startType === \"date\" && finishType === \"date\" ? start.toISOString() + \"..\" + finish.toISOString() : start + \"..\" + finish;\n if (doLength && objType !== \"map\" && objType !== \"set\") {\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n }\n if (!doLength && objType === \"date\" && (startType !== \"date\" || finishType !== \"date\")) {\n errorMessage = msgPrefix + \"the arguments to within must be dates\";\n } else if ((!isNumeric(start) || !isNumeric(finish)) && (doLength || isNumeric(obj))) {\n errorMessage = msgPrefix + \"the arguments to within must be numbers\";\n } else if (!doLength && objType !== \"date\" && !isNumeric(obj)) {\n let printObj = objType === \"string\" ? \"'\" + obj + \"'\" : obj;\n errorMessage = msgPrefix + \"expected \" + printObj + \" to be a number or a date\";\n } else {\n shouldThrow = false;\n }\n if (shouldThrow) {\n throw new AssertionError(errorMessage, void 0, ssfi);\n }\n if (doLength) {\n let descriptor = \"length\", itemsCount;\n if (objType === \"map\" || objType === \"set\") {\n descriptor = \"size\";\n itemsCount = obj.size;\n } else {\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount >= start && itemsCount <= finish,\n \"expected #{this} to have a \" + descriptor + \" within \" + range,\n \"expected #{this} to not have a \" + descriptor + \" within \" + range\n );\n } else {\n this.assert(\n obj >= start && obj <= finish,\n \"expected #{this} to be within \" + range,\n \"expected #{this} to not be within \" + range\n );\n }\n});\nfunction assertInstanceOf(constructor, msg) {\n if (msg) flag2(this, \"message\", msg);\n let target = flag2(this, \"object\");\n let ssfi = flag2(this, \"ssfi\");\n let flagMsg = flag2(this, \"message\");\n let isInstanceOf;\n try {\n isInstanceOf = target instanceof constructor;\n } catch (err) {\n if (err instanceof TypeError) {\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n throw new AssertionError(\n flagMsg + \"The instanceof assertion needs a constructor but \" + type(constructor) + \" was given.\",\n void 0,\n ssfi\n );\n }\n throw err;\n }\n let name = getName(constructor);\n if (name == null) {\n name = \"an unnamed constructor\";\n }\n this.assert(\n isInstanceOf,\n \"expected #{this} to be an instance of \" + name,\n \"expected #{this} to not be an instance of \" + name\n );\n}\n__name(assertInstanceOf, \"assertInstanceOf\");\nAssertion.addMethod(\"instanceof\", assertInstanceOf);\nAssertion.addMethod(\"instanceOf\", assertInstanceOf);\nfunction assertProperty(name, val, msg) {\n if (msg) flag2(this, \"message\", msg);\n let isNested = flag2(this, \"nested\"), isOwn = flag2(this, \"own\"), flagMsg = flag2(this, \"message\"), obj = flag2(this, \"object\"), ssfi = flag2(this, \"ssfi\"), nameType = typeof name;\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n if (isNested) {\n if (nameType !== \"string\") {\n throw new AssertionError(\n flagMsg + \"the argument to property must be a string when using nested syntax\",\n void 0,\n ssfi\n );\n }\n } else {\n if (nameType !== \"string\" && nameType !== \"number\" && nameType !== \"symbol\") {\n throw new AssertionError(\n flagMsg + \"the argument to property must be a string, number, or symbol\",\n void 0,\n ssfi\n );\n }\n }\n if (isNested && isOwn) {\n throw new AssertionError(\n flagMsg + 'The \"nested\" and \"own\" flags cannot be combined.',\n void 0,\n ssfi\n );\n }\n if (obj === null || obj === void 0) {\n throw new AssertionError(\n flagMsg + \"Target cannot be null or undefined.\",\n void 0,\n ssfi\n );\n }\n let isDeep = flag2(this, \"deep\"), negate = flag2(this, \"negate\"), pathInfo = isNested ? getPathInfo(obj, name) : null, value = isNested ? pathInfo.value : obj[name], isEql = isDeep ? flag2(this, \"eql\") : (val1, val2) => val1 === val2;\n let descriptor = \"\";\n if (isDeep) descriptor += \"deep \";\n if (isOwn) descriptor += \"own \";\n if (isNested) descriptor += \"nested \";\n descriptor += \"property \";\n let hasProperty2;\n if (isOwn) hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name);\n else if (isNested) hasProperty2 = pathInfo.exists;\n else hasProperty2 = hasProperty(obj, name);\n if (!negate || arguments.length === 1) {\n this.assert(\n hasProperty2,\n \"expected #{this} to have \" + descriptor + inspect2(name),\n \"expected #{this} to not have \" + descriptor + inspect2(name)\n );\n }\n if (arguments.length > 1) {\n this.assert(\n hasProperty2 && isEql(val, value),\n \"expected #{this} to have \" + descriptor + inspect2(name) + \" of #{exp}, but got #{act}\",\n \"expected #{this} to not have \" + descriptor + inspect2(name) + \" of #{act}\",\n val,\n value\n );\n }\n flag2(this, \"object\", value);\n}\n__name(assertProperty, \"assertProperty\");\nAssertion.addMethod(\"property\", assertProperty);\nfunction assertOwnProperty(_name, _value, _msg) {\n flag2(this, \"own\", true);\n assertProperty.apply(this, arguments);\n}\n__name(assertOwnProperty, \"assertOwnProperty\");\nAssertion.addMethod(\"ownProperty\", assertOwnProperty);\nAssertion.addMethod(\"haveOwnProperty\", assertOwnProperty);\nfunction assertOwnPropertyDescriptor(name, descriptor, msg) {\n if (typeof descriptor === \"string\") {\n msg = descriptor;\n descriptor = null;\n }\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n let actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name);\n let eql = flag2(this, \"eql\");\n if (actualDescriptor && descriptor) {\n this.assert(\n eql(descriptor, actualDescriptor),\n \"expected the own property descriptor for \" + inspect2(name) + \" on #{this} to match \" + inspect2(descriptor) + \", got \" + inspect2(actualDescriptor),\n \"expected the own property descriptor for \" + inspect2(name) + \" on #{this} to not match \" + inspect2(descriptor),\n descriptor,\n actualDescriptor,\n true\n );\n } else {\n this.assert(\n actualDescriptor,\n \"expected #{this} to have an own property descriptor for \" + inspect2(name),\n \"expected #{this} to not have an own property descriptor for \" + inspect2(name)\n );\n }\n flag2(this, \"object\", actualDescriptor);\n}\n__name(assertOwnPropertyDescriptor, \"assertOwnPropertyDescriptor\");\nAssertion.addMethod(\"ownPropertyDescriptor\", assertOwnPropertyDescriptor);\nAssertion.addMethod(\"haveOwnPropertyDescriptor\", assertOwnPropertyDescriptor);\nfunction assertLengthChain() {\n flag2(this, \"doLength\", true);\n}\n__name(assertLengthChain, \"assertLengthChain\");\nfunction assertLength(n, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\"), descriptor = \"length\", itemsCount;\n switch (objType) {\n case \"map\":\n case \"set\":\n descriptor = \"size\";\n itemsCount = obj.size;\n break;\n default:\n new Assertion(obj, flagMsg, ssfi, true).to.have.property(\"length\");\n itemsCount = obj.length;\n }\n this.assert(\n itemsCount == n,\n \"expected #{this} to have a \" + descriptor + \" of #{exp} but got #{act}\",\n \"expected #{this} to not have a \" + descriptor + \" of #{act}\",\n n,\n itemsCount\n );\n}\n__name(assertLength, \"assertLength\");\nAssertion.addChainableMethod(\"length\", assertLength, assertLengthChain);\nAssertion.addChainableMethod(\"lengthOf\", assertLength, assertLengthChain);\nfunction assertMatch(re, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n this.assert(\n re.exec(obj),\n \"expected #{this} to match \" + re,\n \"expected #{this} not to match \" + re\n );\n}\n__name(assertMatch, \"assertMatch\");\nAssertion.addMethod(\"match\", assertMatch);\nAssertion.addMethod(\"matches\", assertMatch);\nAssertion.addMethod(\"string\", function(str, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(obj, flagMsg, ssfi, true).is.a(\"string\");\n this.assert(\n ~obj.indexOf(str),\n \"expected #{this} to contain \" + inspect2(str),\n \"expected #{this} to not contain \" + inspect2(str)\n );\n});\nfunction assertKeys(keys) {\n let obj = flag2(this, \"object\"), objType = type(obj), keysType = type(keys), ssfi = flag2(this, \"ssfi\"), isDeep = flag2(this, \"deep\"), str, deepStr = \"\", actual, ok = true, flagMsg = flag2(this, \"message\");\n flagMsg = flagMsg ? flagMsg + \": \" : \"\";\n let mixedArgsMsg = flagMsg + \"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments\";\n if (objType === \"Map\" || objType === \"Set\") {\n deepStr = isDeep ? \"deeply \" : \"\";\n actual = [];\n obj.forEach(function(val, key) {\n actual.push(key);\n });\n if (keysType !== \"Array\") {\n keys = Array.prototype.slice.call(arguments);\n }\n } else {\n actual = getOwnEnumerableProperties(obj);\n switch (keysType) {\n case \"Array\":\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, void 0, ssfi);\n }\n break;\n case \"Object\":\n if (arguments.length > 1) {\n throw new AssertionError(mixedArgsMsg, void 0, ssfi);\n }\n keys = Object.keys(keys);\n break;\n default:\n keys = Array.prototype.slice.call(arguments);\n }\n keys = keys.map(function(val) {\n return typeof val === \"symbol\" ? val : String(val);\n });\n }\n if (!keys.length) {\n throw new AssertionError(flagMsg + \"keys required\", void 0, ssfi);\n }\n let len = keys.length, any = flag2(this, \"any\"), all = flag2(this, \"all\"), expected = keys, isEql = isDeep ? flag2(this, \"eql\") : (val1, val2) => val1 === val2;\n if (!any && !all) {\n all = true;\n }\n if (any) {\n ok = expected.some(function(expectedKey) {\n return actual.some(function(actualKey) {\n return isEql(expectedKey, actualKey);\n });\n });\n }\n if (all) {\n ok = expected.every(function(expectedKey) {\n return actual.some(function(actualKey) {\n return isEql(expectedKey, actualKey);\n });\n });\n if (!flag2(this, \"contains\")) {\n ok = ok && keys.length == actual.length;\n }\n }\n if (len > 1) {\n keys = keys.map(function(key) {\n return inspect2(key);\n });\n let last = keys.pop();\n if (all) {\n str = keys.join(\", \") + \", and \" + last;\n }\n if (any) {\n str = keys.join(\", \") + \", or \" + last;\n }\n } else {\n str = inspect2(keys[0]);\n }\n str = (len > 1 ? \"keys \" : \"key \") + str;\n str = (flag2(this, \"contains\") ? \"contain \" : \"have \") + str;\n this.assert(\n ok,\n \"expected #{this} to \" + deepStr + str,\n \"expected #{this} to not \" + deepStr + str,\n expected.slice(0).sort(compareByInspect),\n actual.sort(compareByInspect),\n true\n );\n}\n__name(assertKeys, \"assertKeys\");\nAssertion.addMethod(\"keys\", assertKeys);\nAssertion.addMethod(\"key\", assertKeys);\nfunction assertThrows(errorLike, errMsgMatcher, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), ssfi = flag2(this, \"ssfi\"), flagMsg = flag2(this, \"message\"), negate = flag2(this, \"negate\") || false;\n new Assertion(obj, flagMsg, ssfi, true).is.a(\"function\");\n if (isRegExp2(errorLike) || typeof errorLike === \"string\") {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n let caughtErr;\n let errorWasThrown = false;\n try {\n obj();\n } catch (err) {\n errorWasThrown = true;\n caughtErr = err;\n }\n let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0;\n let everyArgIsDefined = Boolean(errorLike && errMsgMatcher);\n let errorLikeFail = false;\n let errMsgMatcherFail = false;\n if (everyArgIsUndefined || !everyArgIsUndefined && !negate) {\n let errorLikeString = \"an error\";\n if (errorLike instanceof Error) {\n errorLikeString = \"#{exp}\";\n } else if (errorLike) {\n errorLikeString = check_error_exports.getConstructorName(errorLike);\n }\n let actual = caughtErr;\n if (caughtErr instanceof Error) {\n actual = caughtErr.toString();\n } else if (typeof caughtErr === \"string\") {\n actual = caughtErr;\n } else if (caughtErr && (typeof caughtErr === \"object\" || typeof caughtErr === \"function\")) {\n try {\n actual = check_error_exports.getConstructorName(caughtErr);\n } catch (_err) {\n }\n }\n this.assert(\n errorWasThrown,\n \"expected #{this} to throw \" + errorLikeString,\n \"expected #{this} to not throw an error but #{act} was thrown\",\n errorLike && errorLike.toString(),\n actual\n );\n }\n if (errorLike && caughtErr) {\n if (errorLike instanceof Error) {\n let isCompatibleInstance = check_error_exports.compatibleInstance(\n caughtErr,\n errorLike\n );\n if (isCompatibleInstance === negate) {\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate,\n \"expected #{this} to throw #{exp} but #{act} was thrown\",\n \"expected #{this} to not throw #{exp}\" + (caughtErr && !negate ? \" but #{act} was thrown\" : \"\"),\n errorLike.toString(),\n caughtErr.toString()\n );\n }\n }\n }\n let isCompatibleConstructor = check_error_exports.compatibleConstructor(\n caughtErr,\n errorLike\n );\n if (isCompatibleConstructor === negate) {\n if (everyArgIsDefined && negate) {\n errorLikeFail = true;\n } else {\n this.assert(\n negate,\n \"expected #{this} to throw #{exp} but #{act} was thrown\",\n \"expected #{this} to not throw #{exp}\" + (caughtErr ? \" but #{act} was thrown\" : \"\"),\n errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),\n caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)\n );\n }\n }\n }\n if (caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) {\n let placeholder = \"including\";\n if (isRegExp2(errMsgMatcher)) {\n placeholder = \"matching\";\n }\n let isCompatibleMessage = check_error_exports.compatibleMessage(\n caughtErr,\n errMsgMatcher\n );\n if (isCompatibleMessage === negate) {\n if (everyArgIsDefined && negate) {\n errMsgMatcherFail = true;\n } else {\n this.assert(\n negate,\n \"expected #{this} to throw error \" + placeholder + \" #{exp} but got #{act}\",\n \"expected #{this} to throw error not \" + placeholder + \" #{exp}\",\n errMsgMatcher,\n check_error_exports.getMessage(caughtErr)\n );\n }\n }\n }\n if (errorLikeFail && errMsgMatcherFail) {\n this.assert(\n negate,\n \"expected #{this} to throw #{exp} but #{act} was thrown\",\n \"expected #{this} to not throw #{exp}\" + (caughtErr ? \" but #{act} was thrown\" : \"\"),\n errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike),\n caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr)\n );\n }\n flag2(this, \"object\", caughtErr);\n}\n__name(assertThrows, \"assertThrows\");\nAssertion.addMethod(\"throw\", assertThrows);\nAssertion.addMethod(\"throws\", assertThrows);\nAssertion.addMethod(\"Throw\", assertThrows);\nfunction respondTo(method, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), itself = flag2(this, \"itself\"), context = \"function\" === typeof obj && !itself ? obj.prototype[method] : obj[method];\n this.assert(\n \"function\" === typeof context,\n \"expected #{this} to respond to \" + inspect2(method),\n \"expected #{this} to not respond to \" + inspect2(method)\n );\n}\n__name(respondTo, \"respondTo\");\nAssertion.addMethod(\"respondTo\", respondTo);\nAssertion.addMethod(\"respondsTo\", respondTo);\nAssertion.addProperty(\"itself\", function() {\n flag2(this, \"itself\", true);\n});\nfunction satisfy(matcher, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n let result = matcher(obj);\n this.assert(\n result,\n \"expected #{this} to satisfy \" + objDisplay(matcher),\n \"expected #{this} to not satisfy\" + objDisplay(matcher),\n flag2(this, \"negate\") ? false : true,\n result\n );\n}\n__name(satisfy, \"satisfy\");\nAssertion.addMethod(\"satisfy\", satisfy);\nAssertion.addMethod(\"satisfies\", satisfy);\nfunction closeTo(expected, delta, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(obj, flagMsg, ssfi, true).is.numeric;\n let message = \"A `delta` value is required for `closeTo`\";\n if (delta == void 0) {\n throw new AssertionError(\n flagMsg ? `${flagMsg}: ${message}` : message,\n void 0,\n ssfi\n );\n }\n new Assertion(delta, flagMsg, ssfi, true).is.numeric;\n message = \"A `expected` value is required for `closeTo`\";\n if (expected == void 0) {\n throw new AssertionError(\n flagMsg ? `${flagMsg}: ${message}` : message,\n void 0,\n ssfi\n );\n }\n new Assertion(expected, flagMsg, ssfi, true).is.numeric;\n const abs = /* @__PURE__ */ __name((x) => x < 0n ? -x : x, \"abs\");\n const strip = /* @__PURE__ */ __name((number) => parseFloat(parseFloat(number).toPrecision(12)), \"strip\");\n this.assert(\n strip(abs(obj - expected)) <= delta,\n \"expected #{this} to be close to \" + expected + \" +/- \" + delta,\n \"expected #{this} not to be close to \" + expected + \" +/- \" + delta\n );\n}\n__name(closeTo, \"closeTo\");\nAssertion.addMethod(\"closeTo\", closeTo);\nAssertion.addMethod(\"approximately\", closeTo);\nfunction isSubsetOf(_subset, _superset, cmp, contains, ordered) {\n let superset = Array.from(_superset);\n let subset = Array.from(_subset);\n if (!contains) {\n if (subset.length !== superset.length) return false;\n superset = superset.slice();\n }\n return subset.every(function(elem, idx) {\n if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];\n if (!cmp) {\n let matchIdx = superset.indexOf(elem);\n if (matchIdx === -1) return false;\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n }\n return superset.some(function(elem2, matchIdx) {\n if (!cmp(elem, elem2)) return false;\n if (!contains) superset.splice(matchIdx, 1);\n return true;\n });\n });\n}\n__name(isSubsetOf, \"isSubsetOf\");\nAssertion.addMethod(\"members\", function(subset, msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(obj, flagMsg, ssfi, true).to.be.iterable;\n new Assertion(subset, flagMsg, ssfi, true).to.be.iterable;\n let contains = flag2(this, \"contains\");\n let ordered = flag2(this, \"ordered\");\n let subject, failMsg, failNegateMsg;\n if (contains) {\n subject = ordered ? \"an ordered superset\" : \"a superset\";\n failMsg = \"expected #{this} to be \" + subject + \" of #{exp}\";\n failNegateMsg = \"expected #{this} to not be \" + subject + \" of #{exp}\";\n } else {\n subject = ordered ? \"ordered members\" : \"members\";\n failMsg = \"expected #{this} to have the same \" + subject + \" as #{exp}\";\n failNegateMsg = \"expected #{this} to not have the same \" + subject + \" as #{exp}\";\n }\n let cmp = flag2(this, \"deep\") ? flag2(this, \"eql\") : void 0;\n this.assert(\n isSubsetOf(subset, obj, cmp, contains, ordered),\n failMsg,\n failNegateMsg,\n subset,\n obj,\n true\n );\n});\nAssertion.addProperty(\"iterable\", function(msg) {\n if (msg) flag2(this, \"message\", msg);\n let obj = flag2(this, \"object\");\n this.assert(\n obj != void 0 && obj[Symbol.iterator],\n \"expected #{this} to be an iterable\",\n \"expected #{this} to not be an iterable\",\n obj\n );\n});\nfunction oneOf(list, msg) {\n if (msg) flag2(this, \"message\", msg);\n let expected = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\"), contains = flag2(this, \"contains\"), isDeep = flag2(this, \"deep\"), eql = flag2(this, \"eql\");\n new Assertion(list, flagMsg, ssfi, true).to.be.an(\"array\");\n if (contains) {\n this.assert(\n list.some(function(possibility) {\n return expected.indexOf(possibility) > -1;\n }),\n \"expected #{this} to contain one of #{exp}\",\n \"expected #{this} to not contain one of #{exp}\",\n list,\n expected\n );\n } else {\n if (isDeep) {\n this.assert(\n list.some(function(possibility) {\n return eql(expected, possibility);\n }),\n \"expected #{this} to deeply equal one of #{exp}\",\n \"expected #{this} to deeply equal one of #{exp}\",\n list,\n expected\n );\n } else {\n this.assert(\n list.indexOf(expected) > -1,\n \"expected #{this} to be one of #{exp}\",\n \"expected #{this} to not be one of #{exp}\",\n list,\n expected\n );\n }\n }\n}\n__name(oneOf, \"oneOf\");\nAssertion.addMethod(\"oneOf\", oneOf);\nfunction assertChanges(subject, prop, msg) {\n if (msg) flag2(this, \"message\", msg);\n let fn = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(fn, flagMsg, ssfi, true).is.a(\"function\");\n let initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a(\"function\");\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n fn();\n let final = prop === void 0 || prop === null ? subject() : subject[prop];\n let msgObj = prop === void 0 || prop === null ? initial : \".\" + prop;\n flag2(this, \"deltaMsgObj\", msgObj);\n flag2(this, \"initialDeltaValue\", initial);\n flag2(this, \"finalDeltaValue\", final);\n flag2(this, \"deltaBehavior\", \"change\");\n flag2(this, \"realDelta\", final !== initial);\n this.assert(\n initial !== final,\n \"expected \" + msgObj + \" to change\",\n \"expected \" + msgObj + \" to not change\"\n );\n}\n__name(assertChanges, \"assertChanges\");\nAssertion.addMethod(\"change\", assertChanges);\nAssertion.addMethod(\"changes\", assertChanges);\nfunction assertIncreases(subject, prop, msg) {\n if (msg) flag2(this, \"message\", msg);\n let fn = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(fn, flagMsg, ssfi, true).is.a(\"function\");\n let initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a(\"function\");\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n new Assertion(initial, flagMsg, ssfi, true).is.a(\"number\");\n fn();\n let final = prop === void 0 || prop === null ? subject() : subject[prop];\n let msgObj = prop === void 0 || prop === null ? initial : \".\" + prop;\n flag2(this, \"deltaMsgObj\", msgObj);\n flag2(this, \"initialDeltaValue\", initial);\n flag2(this, \"finalDeltaValue\", final);\n flag2(this, \"deltaBehavior\", \"increase\");\n flag2(this, \"realDelta\", final - initial);\n this.assert(\n final - initial > 0,\n \"expected \" + msgObj + \" to increase\",\n \"expected \" + msgObj + \" to not increase\"\n );\n}\n__name(assertIncreases, \"assertIncreases\");\nAssertion.addMethod(\"increase\", assertIncreases);\nAssertion.addMethod(\"increases\", assertIncreases);\nfunction assertDecreases(subject, prop, msg) {\n if (msg) flag2(this, \"message\", msg);\n let fn = flag2(this, \"object\"), flagMsg = flag2(this, \"message\"), ssfi = flag2(this, \"ssfi\");\n new Assertion(fn, flagMsg, ssfi, true).is.a(\"function\");\n let initial;\n if (!prop) {\n new Assertion(subject, flagMsg, ssfi, true).is.a(\"function\");\n initial = subject();\n } else {\n new Assertion(subject, flagMsg, ssfi, true).to.have.property(prop);\n initial = subject[prop];\n }\n new Assertion(initial, flagMsg, ssfi, true).is.a(\"number\");\n fn();\n let final = prop === void 0 || prop === null ? subject() : subject[prop];\n let msgObj = prop === void 0 || prop === null ? initial : \".\" + prop;\n flag2(this, \"deltaMsgObj\", msgObj);\n flag2(this, \"initialDeltaValue\", initial);\n flag2(this, \"finalDeltaValue\", final);\n flag2(this, \"deltaBehavior\", \"decrease\");\n flag2(this, \"realDelta\", initial - final);\n this.assert(\n final - initial < 0,\n \"expected \" + msgObj + \" to decrease\",\n \"expected \" + msgObj + \" to not decrease\"\n );\n}\n__name(assertDecreases, \"assertDecreases\");\nAssertion.addMethod(\"decrease\", assertDecreases);\nAssertion.addMethod(\"decreases\", assertDecreases);\nfunction assertDelta(delta, msg) {\n if (msg) flag2(this, \"message\", msg);\n let msgObj = flag2(this, \"deltaMsgObj\");\n let initial = flag2(this, \"initialDeltaValue\");\n let final = flag2(this, \"finalDeltaValue\");\n let behavior = flag2(this, \"deltaBehavior\");\n let realDelta = flag2(this, \"realDelta\");\n let expression;\n if (behavior === \"change\") {\n expression = Math.abs(final - initial) === Math.abs(delta);\n } else {\n expression = realDelta === Math.abs(delta);\n }\n this.assert(\n expression,\n \"expected \" + msgObj + \" to \" + behavior + \" by \" + delta,\n \"expected \" + msgObj + \" to not \" + behavior + \" by \" + delta\n );\n}\n__name(assertDelta, \"assertDelta\");\nAssertion.addMethod(\"by\", assertDelta);\nAssertion.addProperty(\"extensible\", function() {\n let obj = flag2(this, \"object\");\n let isExtensible = obj === Object(obj) && Object.isExtensible(obj);\n this.assert(\n isExtensible,\n \"expected #{this} to be extensible\",\n \"expected #{this} to not be extensible\"\n );\n});\nAssertion.addProperty(\"sealed\", function() {\n let obj = flag2(this, \"object\");\n let isSealed = obj === Object(obj) ? Object.isSealed(obj) : true;\n this.assert(\n isSealed,\n \"expected #{this} to be sealed\",\n \"expected #{this} to not be sealed\"\n );\n});\nAssertion.addProperty(\"frozen\", function() {\n let obj = flag2(this, \"object\");\n let isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : true;\n this.assert(\n isFrozen,\n \"expected #{this} to be frozen\",\n \"expected #{this} to not be frozen\"\n );\n});\nAssertion.addProperty(\"finite\", function(_msg) {\n let obj = flag2(this, \"object\");\n this.assert(\n typeof obj === \"number\" && isFinite(obj),\n \"expected #{this} to be a finite number\",\n \"expected #{this} to not be a finite number\"\n );\n});\nfunction compareSubset(expected, actual) {\n if (expected === actual) {\n return true;\n }\n if (typeof actual !== typeof expected) {\n return false;\n }\n if (typeof expected !== \"object\" || expected === null) {\n return expected === actual;\n }\n if (!actual) {\n return false;\n }\n if (Array.isArray(expected)) {\n if (!Array.isArray(actual)) {\n return false;\n }\n return expected.every(function(exp) {\n return actual.some(function(act) {\n return compareSubset(exp, act);\n });\n });\n }\n if (expected instanceof Date) {\n if (actual instanceof Date) {\n return expected.getTime() === actual.getTime();\n } else {\n return false;\n }\n }\n return Object.keys(expected).every(function(key) {\n let expectedValue = expected[key];\n let actualValue = actual[key];\n if (typeof expectedValue === \"object\" && expectedValue !== null && actualValue !== null) {\n return compareSubset(expectedValue, actualValue);\n }\n if (typeof expectedValue === \"function\") {\n return expectedValue(actualValue);\n }\n return actualValue === expectedValue;\n });\n}\n__name(compareSubset, \"compareSubset\");\nAssertion.addMethod(\"containSubset\", function(expected) {\n const actual = flag(this, \"object\");\n const showDiff = config.showDiff;\n this.assert(\n compareSubset(expected, actual),\n \"expected #{act} to contain subset #{exp}\",\n \"expected #{act} to not contain subset #{exp}\",\n expected,\n actual,\n showDiff\n );\n});\n\n// lib/chai/interface/expect.js\nfunction expect(val, message) {\n return new Assertion(val, message);\n}\n__name(expect, \"expect\");\nexpect.fail = function(actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = void 0;\n }\n message = message || \"expect.fail()\";\n throw new AssertionError(\n message,\n {\n actual,\n expected,\n operator\n },\n expect.fail\n );\n};\n\n// lib/chai/interface/should.js\nvar should_exports = {};\n__export(should_exports, {\n Should: () => Should,\n should: () => should\n});\nfunction loadShould() {\n function shouldGetter() {\n if (this instanceof String || this instanceof Number || this instanceof Boolean || typeof Symbol === \"function\" && this instanceof Symbol || typeof BigInt === \"function\" && this instanceof BigInt) {\n return new Assertion(this.valueOf(), null, shouldGetter);\n }\n return new Assertion(this, null, shouldGetter);\n }\n __name(shouldGetter, \"shouldGetter\");\n function shouldSetter(value) {\n Object.defineProperty(this, \"should\", {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n }\n __name(shouldSetter, \"shouldSetter\");\n Object.defineProperty(Object.prototype, \"should\", {\n set: shouldSetter,\n get: shouldGetter,\n configurable: true\n });\n let should2 = {};\n should2.fail = function(actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = void 0;\n }\n message = message || \"should.fail()\";\n throw new AssertionError(\n message,\n {\n actual,\n expected,\n operator\n },\n should2.fail\n );\n };\n should2.equal = function(actual, expected, message) {\n new Assertion(actual, message).to.equal(expected);\n };\n should2.Throw = function(fn, errt, errs, msg) {\n new Assertion(fn, msg).to.Throw(errt, errs);\n };\n should2.exist = function(val, msg) {\n new Assertion(val, msg).to.exist;\n };\n should2.not = {};\n should2.not.equal = function(actual, expected, msg) {\n new Assertion(actual, msg).to.not.equal(expected);\n };\n should2.not.Throw = function(fn, errt, errs, msg) {\n new Assertion(fn, msg).to.not.Throw(errt, errs);\n };\n should2.not.exist = function(val, msg) {\n new Assertion(val, msg).to.not.exist;\n };\n should2[\"throw\"] = should2[\"Throw\"];\n should2.not[\"throw\"] = should2.not[\"Throw\"];\n return should2;\n}\n__name(loadShould, \"loadShould\");\nvar should = loadShould;\nvar Should = loadShould;\n\n// lib/chai/interface/assert.js\nfunction assert(express, errmsg) {\n let test2 = new Assertion(null, null, assert, true);\n test2.assert(express, errmsg, \"[ negation message unavailable ]\");\n}\n__name(assert, \"assert\");\nassert.fail = function(actual, expected, message, operator) {\n if (arguments.length < 2) {\n message = actual;\n actual = void 0;\n }\n message = message || \"assert.fail()\";\n throw new AssertionError(\n message,\n {\n actual,\n expected,\n operator\n },\n assert.fail\n );\n};\nassert.isOk = function(val, msg) {\n new Assertion(val, msg, assert.isOk, true).is.ok;\n};\nassert.isNotOk = function(val, msg) {\n new Assertion(val, msg, assert.isNotOk, true).is.not.ok;\n};\nassert.equal = function(act, exp, msg) {\n let test2 = new Assertion(act, msg, assert.equal, true);\n test2.assert(\n exp == flag(test2, \"object\"),\n \"expected #{this} to equal #{exp}\",\n \"expected #{this} to not equal #{act}\",\n exp,\n act,\n true\n );\n};\nassert.notEqual = function(act, exp, msg) {\n let test2 = new Assertion(act, msg, assert.notEqual, true);\n test2.assert(\n exp != flag(test2, \"object\"),\n \"expected #{this} to not equal #{exp}\",\n \"expected #{this} to equal #{act}\",\n exp,\n act,\n true\n );\n};\nassert.strictEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.strictEqual, true).to.equal(exp);\n};\nassert.notStrictEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.notStrictEqual, true).to.not.equal(exp);\n};\nassert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.deepEqual, true).to.eql(exp);\n};\nassert.notDeepEqual = function(act, exp, msg) {\n new Assertion(act, msg, assert.notDeepEqual, true).to.not.eql(exp);\n};\nassert.isAbove = function(val, abv, msg) {\n new Assertion(val, msg, assert.isAbove, true).to.be.above(abv);\n};\nassert.isAtLeast = function(val, atlst, msg) {\n new Assertion(val, msg, assert.isAtLeast, true).to.be.least(atlst);\n};\nassert.isBelow = function(val, blw, msg) {\n new Assertion(val, msg, assert.isBelow, true).to.be.below(blw);\n};\nassert.isAtMost = function(val, atmst, msg) {\n new Assertion(val, msg, assert.isAtMost, true).to.be.most(atmst);\n};\nassert.isTrue = function(val, msg) {\n new Assertion(val, msg, assert.isTrue, true).is[\"true\"];\n};\nassert.isNotTrue = function(val, msg) {\n new Assertion(val, msg, assert.isNotTrue, true).to.not.equal(true);\n};\nassert.isFalse = function(val, msg) {\n new Assertion(val, msg, assert.isFalse, true).is[\"false\"];\n};\nassert.isNotFalse = function(val, msg) {\n new Assertion(val, msg, assert.isNotFalse, true).to.not.equal(false);\n};\nassert.isNull = function(val, msg) {\n new Assertion(val, msg, assert.isNull, true).to.equal(null);\n};\nassert.isNotNull = function(val, msg) {\n new Assertion(val, msg, assert.isNotNull, true).to.not.equal(null);\n};\nassert.isNaN = function(val, msg) {\n new Assertion(val, msg, assert.isNaN, true).to.be.NaN;\n};\nassert.isNotNaN = function(value, message) {\n new Assertion(value, message, assert.isNotNaN, true).not.to.be.NaN;\n};\nassert.exists = function(val, msg) {\n new Assertion(val, msg, assert.exists, true).to.exist;\n};\nassert.notExists = function(val, msg) {\n new Assertion(val, msg, assert.notExists, true).to.not.exist;\n};\nassert.isUndefined = function(val, msg) {\n new Assertion(val, msg, assert.isUndefined, true).to.equal(void 0);\n};\nassert.isDefined = function(val, msg) {\n new Assertion(val, msg, assert.isDefined, true).to.not.equal(void 0);\n};\nassert.isCallable = function(value, message) {\n new Assertion(value, message, assert.isCallable, true).is.callable;\n};\nassert.isNotCallable = function(value, message) {\n new Assertion(value, message, assert.isNotCallable, true).is.not.callable;\n};\nassert.isObject = function(val, msg) {\n new Assertion(val, msg, assert.isObject, true).to.be.a(\"object\");\n};\nassert.isNotObject = function(val, msg) {\n new Assertion(val, msg, assert.isNotObject, true).to.not.be.a(\"object\");\n};\nassert.isArray = function(val, msg) {\n new Assertion(val, msg, assert.isArray, true).to.be.an(\"array\");\n};\nassert.isNotArray = function(val, msg) {\n new Assertion(val, msg, assert.isNotArray, true).to.not.be.an(\"array\");\n};\nassert.isString = function(val, msg) {\n new Assertion(val, msg, assert.isString, true).to.be.a(\"string\");\n};\nassert.isNotString = function(val, msg) {\n new Assertion(val, msg, assert.isNotString, true).to.not.be.a(\"string\");\n};\nassert.isNumber = function(val, msg) {\n new Assertion(val, msg, assert.isNumber, true).to.be.a(\"number\");\n};\nassert.isNotNumber = function(val, msg) {\n new Assertion(val, msg, assert.isNotNumber, true).to.not.be.a(\"number\");\n};\nassert.isNumeric = function(val, msg) {\n new Assertion(val, msg, assert.isNumeric, true).is.numeric;\n};\nassert.isNotNumeric = function(val, msg) {\n new Assertion(val, msg, assert.isNotNumeric, true).is.not.numeric;\n};\nassert.isFinite = function(val, msg) {\n new Assertion(val, msg, assert.isFinite, true).to.be.finite;\n};\nassert.isBoolean = function(val, msg) {\n new Assertion(val, msg, assert.isBoolean, true).to.be.a(\"boolean\");\n};\nassert.isNotBoolean = function(val, msg) {\n new Assertion(val, msg, assert.isNotBoolean, true).to.not.be.a(\"boolean\");\n};\nassert.typeOf = function(val, type3, msg) {\n new Assertion(val, msg, assert.typeOf, true).to.be.a(type3);\n};\nassert.notTypeOf = function(value, type3, message) {\n new Assertion(value, message, assert.notTypeOf, true).to.not.be.a(type3);\n};\nassert.instanceOf = function(val, type3, msg) {\n new Assertion(val, msg, assert.instanceOf, true).to.be.instanceOf(type3);\n};\nassert.notInstanceOf = function(val, type3, msg) {\n new Assertion(val, msg, assert.notInstanceOf, true).to.not.be.instanceOf(\n type3\n );\n};\nassert.include = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.include, true).include(inc);\n};\nassert.notInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notInclude, true).not.include(inc);\n};\nassert.deepInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepInclude, true).deep.include(inc);\n};\nassert.notDeepInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepInclude, true).not.deep.include(inc);\n};\nassert.nestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.nestedInclude, true).nested.include(inc);\n};\nassert.notNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notNestedInclude, true).not.nested.include(\n inc\n );\n};\nassert.deepNestedInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepNestedInclude, true).deep.nested.include(\n inc\n );\n};\nassert.notDeepNestedInclude = function(exp, inc, msg) {\n new Assertion(\n exp,\n msg,\n assert.notDeepNestedInclude,\n true\n ).not.deep.nested.include(inc);\n};\nassert.ownInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.ownInclude, true).own.include(inc);\n};\nassert.notOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notOwnInclude, true).not.own.include(inc);\n};\nassert.deepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.deepOwnInclude, true).deep.own.include(inc);\n};\nassert.notDeepOwnInclude = function(exp, inc, msg) {\n new Assertion(exp, msg, assert.notDeepOwnInclude, true).not.deep.own.include(\n inc\n );\n};\nassert.match = function(exp, re, msg) {\n new Assertion(exp, msg, assert.match, true).to.match(re);\n};\nassert.notMatch = function(exp, re, msg) {\n new Assertion(exp, msg, assert.notMatch, true).to.not.match(re);\n};\nassert.property = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.property, true).to.have.property(prop);\n};\nassert.notProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.notProperty, true).to.not.have.property(prop);\n};\nassert.propertyVal = function(obj, prop, val, msg) {\n new Assertion(obj, msg, assert.propertyVal, true).to.have.property(prop, val);\n};\nassert.notPropertyVal = function(obj, prop, val, msg) {\n new Assertion(obj, msg, assert.notPropertyVal, true).to.not.have.property(\n prop,\n val\n );\n};\nassert.deepPropertyVal = function(obj, prop, val, msg) {\n new Assertion(obj, msg, assert.deepPropertyVal, true).to.have.deep.property(\n prop,\n val\n );\n};\nassert.notDeepPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.notDeepPropertyVal,\n true\n ).to.not.have.deep.property(prop, val);\n};\nassert.ownProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.ownProperty, true).to.have.own.property(prop);\n};\nassert.notOwnProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.notOwnProperty, true).to.not.have.own.property(\n prop\n );\n};\nassert.ownPropertyVal = function(obj, prop, value, msg) {\n new Assertion(obj, msg, assert.ownPropertyVal, true).to.have.own.property(\n prop,\n value\n );\n};\nassert.notOwnPropertyVal = function(obj, prop, value, msg) {\n new Assertion(\n obj,\n msg,\n assert.notOwnPropertyVal,\n true\n ).to.not.have.own.property(prop, value);\n};\nassert.deepOwnPropertyVal = function(obj, prop, value, msg) {\n new Assertion(\n obj,\n msg,\n assert.deepOwnPropertyVal,\n true\n ).to.have.deep.own.property(prop, value);\n};\nassert.notDeepOwnPropertyVal = function(obj, prop, value, msg) {\n new Assertion(\n obj,\n msg,\n assert.notDeepOwnPropertyVal,\n true\n ).to.not.have.deep.own.property(prop, value);\n};\nassert.nestedProperty = function(obj, prop, msg) {\n new Assertion(obj, msg, assert.nestedProperty, true).to.have.nested.property(\n prop\n );\n};\nassert.notNestedProperty = function(obj, prop, msg) {\n new Assertion(\n obj,\n msg,\n assert.notNestedProperty,\n true\n ).to.not.have.nested.property(prop);\n};\nassert.nestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.nestedPropertyVal,\n true\n ).to.have.nested.property(prop, val);\n};\nassert.notNestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.notNestedPropertyVal,\n true\n ).to.not.have.nested.property(prop, val);\n};\nassert.deepNestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.deepNestedPropertyVal,\n true\n ).to.have.deep.nested.property(prop, val);\n};\nassert.notDeepNestedPropertyVal = function(obj, prop, val, msg) {\n new Assertion(\n obj,\n msg,\n assert.notDeepNestedPropertyVal,\n true\n ).to.not.have.deep.nested.property(prop, val);\n};\nassert.lengthOf = function(exp, len, msg) {\n new Assertion(exp, msg, assert.lengthOf, true).to.have.lengthOf(len);\n};\nassert.hasAnyKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyKeys, true).to.have.any.keys(keys);\n};\nassert.hasAllKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllKeys, true).to.have.all.keys(keys);\n};\nassert.containsAllKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.containsAllKeys, true).to.contain.all.keys(\n keys\n );\n};\nassert.doesNotHaveAnyKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAnyKeys, true).to.not.have.any.keys(\n keys\n );\n};\nassert.doesNotHaveAllKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.doesNotHaveAllKeys, true).to.not.have.all.keys(\n keys\n );\n};\nassert.hasAnyDeepKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAnyDeepKeys, true).to.have.any.deep.keys(\n keys\n );\n};\nassert.hasAllDeepKeys = function(obj, keys, msg) {\n new Assertion(obj, msg, assert.hasAllDeepKeys, true).to.have.all.deep.keys(\n keys\n );\n};\nassert.containsAllDeepKeys = function(obj, keys, msg) {\n new Assertion(\n obj,\n msg,\n assert.containsAllDeepKeys,\n true\n ).to.contain.all.deep.keys(keys);\n};\nassert.doesNotHaveAnyDeepKeys = function(obj, keys, msg) {\n new Assertion(\n obj,\n msg,\n assert.doesNotHaveAnyDeepKeys,\n true\n ).to.not.have.any.deep.keys(keys);\n};\nassert.doesNotHaveAllDeepKeys = function(obj, keys, msg) {\n new Assertion(\n obj,\n msg,\n assert.doesNotHaveAllDeepKeys,\n true\n ).to.not.have.all.deep.keys(keys);\n};\nassert.throws = function(fn, errorLike, errMsgMatcher, msg) {\n if (\"string\" === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n let assertErr = new Assertion(fn, msg, assert.throws, true).to.throw(\n errorLike,\n errMsgMatcher\n );\n return flag(assertErr, \"object\");\n};\nassert.doesNotThrow = function(fn, errorLike, errMsgMatcher, message) {\n if (\"string\" === typeof errorLike || errorLike instanceof RegExp) {\n errMsgMatcher = errorLike;\n errorLike = null;\n }\n new Assertion(fn, message, assert.doesNotThrow, true).to.not.throw(\n errorLike,\n errMsgMatcher\n );\n};\nassert.operator = function(val, operator, val2, msg) {\n let ok;\n switch (operator) {\n case \"==\":\n ok = val == val2;\n break;\n case \"===\":\n ok = val === val2;\n break;\n case \">\":\n ok = val > val2;\n break;\n case \">=\":\n ok = val >= val2;\n break;\n case \"<\":\n ok = val < val2;\n break;\n case \"<=\":\n ok = val <= val2;\n break;\n case \"!=\":\n ok = val != val2;\n break;\n case \"!==\":\n ok = val !== val2;\n break;\n default:\n msg = msg ? msg + \": \" : msg;\n throw new AssertionError(\n msg + 'Invalid operator \"' + operator + '\"',\n void 0,\n assert.operator\n );\n }\n let test2 = new Assertion(ok, msg, assert.operator, true);\n test2.assert(\n true === flag(test2, \"object\"),\n \"expected \" + inspect2(val) + \" to be \" + operator + \" \" + inspect2(val2),\n \"expected \" + inspect2(val) + \" to not be \" + operator + \" \" + inspect2(val2)\n );\n};\nassert.closeTo = function(act, exp, delta, msg) {\n new Assertion(act, msg, assert.closeTo, true).to.be.closeTo(exp, delta);\n};\nassert.approximately = function(act, exp, delta, msg) {\n new Assertion(act, msg, assert.approximately, true).to.be.approximately(\n exp,\n delta\n );\n};\nassert.sameMembers = function(set1, set2, msg) {\n new Assertion(set1, msg, assert.sameMembers, true).to.have.same.members(set2);\n};\nassert.notSameMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameMembers,\n true\n ).to.not.have.same.members(set2);\n};\nassert.sameDeepMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.sameDeepMembers,\n true\n ).to.have.same.deep.members(set2);\n};\nassert.notSameDeepMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameDeepMembers,\n true\n ).to.not.have.same.deep.members(set2);\n};\nassert.sameOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.sameOrderedMembers,\n true\n ).to.have.same.ordered.members(set2);\n};\nassert.notSameOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameOrderedMembers,\n true\n ).to.not.have.same.ordered.members(set2);\n};\nassert.sameDeepOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.sameDeepOrderedMembers,\n true\n ).to.have.same.deep.ordered.members(set2);\n};\nassert.notSameDeepOrderedMembers = function(set1, set2, msg) {\n new Assertion(\n set1,\n msg,\n assert.notSameDeepOrderedMembers,\n true\n ).to.not.have.same.deep.ordered.members(set2);\n};\nassert.includeMembers = function(superset, subset, msg) {\n new Assertion(superset, msg, assert.includeMembers, true).to.include.members(\n subset\n );\n};\nassert.notIncludeMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeMembers,\n true\n ).to.not.include.members(subset);\n};\nassert.includeDeepMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.includeDeepMembers,\n true\n ).to.include.deep.members(subset);\n};\nassert.notIncludeDeepMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeDeepMembers,\n true\n ).to.not.include.deep.members(subset);\n};\nassert.includeOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.includeOrderedMembers,\n true\n ).to.include.ordered.members(subset);\n};\nassert.notIncludeOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeOrderedMembers,\n true\n ).to.not.include.ordered.members(subset);\n};\nassert.includeDeepOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.includeDeepOrderedMembers,\n true\n ).to.include.deep.ordered.members(subset);\n};\nassert.notIncludeDeepOrderedMembers = function(superset, subset, msg) {\n new Assertion(\n superset,\n msg,\n assert.notIncludeDeepOrderedMembers,\n true\n ).to.not.include.deep.ordered.members(subset);\n};\nassert.oneOf = function(inList, list, msg) {\n new Assertion(inList, msg, assert.oneOf, true).to.be.oneOf(list);\n};\nassert.isIterable = function(obj, msg) {\n if (obj == void 0 || !obj[Symbol.iterator]) {\n msg = msg ? `${msg} expected ${inspect2(obj)} to be an iterable` : `expected ${inspect2(obj)} to be an iterable`;\n throw new AssertionError(msg, void 0, assert.isIterable);\n }\n};\nassert.changes = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.changes, true).to.change(obj, prop);\n};\nassert.changesBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.changesBy, true).to.change(obj, prop).by(delta);\n};\nassert.doesNotChange = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotChange, true).to.not.change(\n obj,\n prop\n );\n};\nassert.changesButNotBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.changesButNotBy, true).to.change(obj, prop).but.not.by(delta);\n};\nassert.increases = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.increases, true).to.increase(obj, prop);\n};\nassert.increasesBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.increasesBy, true).to.increase(obj, prop).by(delta);\n};\nassert.doesNotIncrease = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotIncrease, true).to.not.increase(\n obj,\n prop\n );\n};\nassert.increasesButNotBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.increasesButNotBy, true).to.increase(obj, prop).but.not.by(delta);\n};\nassert.decreases = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.decreases, true).to.decrease(obj, prop);\n};\nassert.decreasesBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.decreasesBy, true).to.decrease(obj, prop).by(delta);\n};\nassert.doesNotDecrease = function(fn, obj, prop, msg) {\n if (arguments.length === 3 && typeof obj === \"function\") {\n msg = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotDecrease, true).to.not.decrease(\n obj,\n prop\n );\n};\nassert.doesNotDecreaseBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n return new Assertion(fn, msg, assert.doesNotDecreaseBy, true).to.not.decrease(obj, prop).by(delta);\n};\nassert.decreasesButNotBy = function(fn, obj, prop, delta, msg) {\n if (arguments.length === 4 && typeof obj === \"function\") {\n let tmpMsg = delta;\n delta = prop;\n msg = tmpMsg;\n } else if (arguments.length === 3) {\n delta = prop;\n prop = null;\n }\n new Assertion(fn, msg, assert.decreasesButNotBy, true).to.decrease(obj, prop).but.not.by(delta);\n};\nassert.ifError = function(val) {\n if (val) {\n throw val;\n }\n};\nassert.isExtensible = function(obj, msg) {\n new Assertion(obj, msg, assert.isExtensible, true).to.be.extensible;\n};\nassert.isNotExtensible = function(obj, msg) {\n new Assertion(obj, msg, assert.isNotExtensible, true).to.not.be.extensible;\n};\nassert.isSealed = function(obj, msg) {\n new Assertion(obj, msg, assert.isSealed, true).to.be.sealed;\n};\nassert.isNotSealed = function(obj, msg) {\n new Assertion(obj, msg, assert.isNotSealed, true).to.not.be.sealed;\n};\nassert.isFrozen = function(obj, msg) {\n new Assertion(obj, msg, assert.isFrozen, true).to.be.frozen;\n};\nassert.isNotFrozen = function(obj, msg) {\n new Assertion(obj, msg, assert.isNotFrozen, true).to.not.be.frozen;\n};\nassert.isEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isEmpty, true).to.be.empty;\n};\nassert.isNotEmpty = function(val, msg) {\n new Assertion(val, msg, assert.isNotEmpty, true).to.not.be.empty;\n};\nassert.containsSubset = function(val, exp, msg) {\n new Assertion(val, msg).to.containSubset(exp);\n};\nassert.doesNotContainSubset = function(val, exp, msg) {\n new Assertion(val, msg).to.not.containSubset(exp);\n};\nvar aliases = [\n [\"isOk\", \"ok\"],\n [\"isNotOk\", \"notOk\"],\n [\"throws\", \"throw\"],\n [\"throws\", \"Throw\"],\n [\"isExtensible\", \"extensible\"],\n [\"isNotExtensible\", \"notExtensible\"],\n [\"isSealed\", \"sealed\"],\n [\"isNotSealed\", \"notSealed\"],\n [\"isFrozen\", \"frozen\"],\n [\"isNotFrozen\", \"notFrozen\"],\n [\"isEmpty\", \"empty\"],\n [\"isNotEmpty\", \"notEmpty\"],\n [\"isCallable\", \"isFunction\"],\n [\"isNotCallable\", \"isNotFunction\"],\n [\"containsSubset\", \"containSubset\"]\n];\nfor (const [name, as] of aliases) {\n assert[as] = assert[name];\n}\n\n// lib/chai.js\nvar used = [];\nfunction use(fn) {\n const exports = {\n use,\n AssertionError,\n util: utils_exports,\n config,\n expect,\n assert,\n Assertion,\n ...should_exports\n };\n if (!~used.indexOf(fn)) {\n fn(exports, utils_exports);\n used.push(fn);\n }\n return exports;\n}\n__name(use, \"use\");\nexport {\n Assertion,\n AssertionError,\n Should,\n assert,\n config,\n expect,\n should,\n use,\n utils_exports as util\n};\n/*!\n * Chai - flag utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - test utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - expectTypes utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getActual utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - message composition utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - transferFlags utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * chai\n * http://chaijs.com\n * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - isProxyEnabled helper\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addProperty utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addLengthGuard utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getProperties utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - proxify utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - overwriteProperty utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - overwriteMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - addChainingMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - overwriteChainableMethod utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - compareByInspect utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getOwnEnumerablePropertySymbols utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - getOwnEnumerableProperties utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * Chai - isNaN utility\n * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>\n * MIT Licensed\n */\n/*!\n * chai\n * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*!\n * chai\n * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n/*! Bundled license information:\n\ndeep-eql/index.js:\n (*!\n * deep-eql\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n *)\n (*!\n * Check to see if the MemoizeMap has recorded a result of the two operands\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @returns {Boolean|null} result\n *)\n (*!\n * Set the result of the equality into the MemoizeMap\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {MemoizeMap} memoizeMap\n * @param {Boolean} result\n *)\n (*!\n * Primary Export\n *)\n (*!\n * The main logic of the `deepEqual` function.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (optional) Additional options\n * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.\n * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of\n complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular\n references to blow the stack.\n * @return {Boolean} equal match\n *)\n (*!\n * Compare two Regular Expressions for equality.\n *\n * @param {RegExp} leftHandOperand\n * @param {RegExp} rightHandOperand\n * @return {Boolean} result\n *)\n (*!\n * Compare two Sets/Maps for equality. Faster than other equality functions.\n *\n * @param {Set} leftHandOperand\n * @param {Set} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Simple equality for generator objects such as those returned by generator functions.\n *\n * @param {Iterable} leftHandOperand\n * @param {Iterable} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Determine if the given object has an @@iterator function.\n *\n * @param {Object} target\n * @return {Boolean} `true` if the object has an @@iterator function.\n *)\n (*!\n * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.\n * This will consume the iterator - which could have side effects depending on the @@iterator implementation.\n *\n * @param {Object} target\n * @returns {Array} an array of entries from the @@iterator function\n *)\n (*!\n * Gets all entries from a Generator. This will consume the generator - which could have side effects.\n *\n * @param {Generator} target\n * @returns {Array} an array of entries from the Generator.\n *)\n (*!\n * Gets all own and inherited enumerable keys from a target.\n *\n * @param {Object} target\n * @returns {Array} an array of own and inherited enumerable keys from the target.\n *)\n (*!\n * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of\n * each key. If any value of the given key is not equal, the function will return false (early).\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`\n * for each enumerable key in the object.\n *\n * @param {Mixed} leftHandOperand\n * @param {Mixed} rightHandOperand\n * @param {Object} [options] (Optional)\n * @return {Boolean} result\n *)\n (*!\n * Returns true if the argument is a primitive.\n *\n * This intentionally returns true for all objects that can be compared by reference,\n * including functions and symbols.\n *\n * @param {Mixed} value\n * @return {Boolean} result\n *)\n*/\n","import { getType, stringify, isObject, assertTypes } from '@vitest/utils';\nimport { diff, printDiffOrStringify } from '@vitest/utils/diff';\nimport c from 'tinyrainbow';\nimport { isMockFunction } from '@vitest/spy';\nimport { processError } from '@vitest/utils/error';\nimport { use, util } from 'chai';\n\nconst MATCHERS_OBJECT = Symbol.for(\"matchers-object\");\nconst JEST_MATCHERS_OBJECT = Symbol.for(\"$$jest-matchers-object\");\nconst GLOBAL_EXPECT = Symbol.for(\"expect-global\");\nconst ASYMMETRIC_MATCHERS_OBJECT = Symbol.for(\n \"asymmetric-matchers-object\"\n);\n\nconst EXPECTED_COLOR = c.green;\nconst RECEIVED_COLOR = c.red;\nconst INVERTED_COLOR = c.inverse;\nconst BOLD_WEIGHT = c.bold;\nconst DIM_COLOR = c.dim;\nfunction matcherHint(matcherName, received = \"received\", expected = \"expected\", options = {}) {\n const {\n comment = \"\",\n isDirectExpectCall = false,\n // seems redundant with received === ''\n isNot = false,\n promise = \"\",\n secondArgument = \"\",\n expectedColor = EXPECTED_COLOR,\n receivedColor = RECEIVED_COLOR,\n secondArgumentColor = EXPECTED_COLOR\n } = options;\n let hint = \"\";\n let dimString = \"expect\";\n if (!isDirectExpectCall && received !== \"\") {\n hint += DIM_COLOR(`${dimString}(`) + receivedColor(received);\n dimString = \")\";\n }\n if (promise !== \"\") {\n hint += DIM_COLOR(`${dimString}.`) + promise;\n dimString = \"\";\n }\n if (isNot) {\n hint += `${DIM_COLOR(`${dimString}.`)}not`;\n dimString = \"\";\n }\n if (matcherName.includes(\".\")) {\n dimString += matcherName;\n } else {\n hint += DIM_COLOR(`${dimString}.`) + matcherName;\n dimString = \"\";\n }\n if (expected === \"\") {\n dimString += \"()\";\n } else {\n hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected);\n if (secondArgument) {\n hint += DIM_COLOR(\", \") + secondArgumentColor(secondArgument);\n }\n dimString = \")\";\n }\n if (comment !== \"\") {\n dimString += ` // ${comment}`;\n }\n if (dimString !== \"\") {\n hint += DIM_COLOR(dimString);\n }\n return hint;\n}\nconst SPACE_SYMBOL = \"\\xB7\";\nfunction replaceTrailingSpaces(text) {\n return text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n}\nfunction printReceived(object) {\n return RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));\n}\nfunction printExpected(value) {\n return EXPECTED_COLOR(replaceTrailingSpaces(stringify(value)));\n}\nfunction getMatcherUtils() {\n return {\n EXPECTED_COLOR,\n RECEIVED_COLOR,\n INVERTED_COLOR,\n BOLD_WEIGHT,\n DIM_COLOR,\n diff,\n matcherHint,\n printReceived,\n printExpected,\n printDiffOrStringify\n };\n}\nfunction addCustomEqualityTesters(newTesters) {\n if (!Array.isArray(newTesters)) {\n throw new TypeError(\n `expect.customEqualityTesters: Must be set to an array of Testers. Was given \"${getType(\n newTesters\n )}\"`\n );\n }\n globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters.push(\n ...newTesters\n );\n}\nfunction getCustomEqualityTesters() {\n return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;\n}\n\nfunction equals(a, b, customTesters, strictCheck) {\n customTesters = customTesters || [];\n return eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);\n}\nconst functionToString = Function.prototype.toString;\nfunction isAsymmetric(obj) {\n return !!obj && typeof obj === \"object\" && \"asymmetricMatch\" in obj && isA(\"Function\", obj.asymmetricMatch);\n}\nfunction hasAsymmetric(obj, seen = /* @__PURE__ */ new Set()) {\n if (seen.has(obj)) {\n return false;\n }\n seen.add(obj);\n if (isAsymmetric(obj)) {\n return true;\n }\n if (Array.isArray(obj)) {\n return obj.some((i) => hasAsymmetric(i, seen));\n }\n if (obj instanceof Set) {\n return Array.from(obj).some((i) => hasAsymmetric(i, seen));\n }\n if (isObject(obj)) {\n return Object.values(obj).some((v) => hasAsymmetric(v, seen));\n }\n return false;\n}\nfunction asymmetricMatch(a, b) {\n const asymmetricA = isAsymmetric(a);\n const asymmetricB = isAsymmetric(b);\n if (asymmetricA && asymmetricB) {\n return void 0;\n }\n if (asymmetricA) {\n return a.asymmetricMatch(b);\n }\n if (asymmetricB) {\n return b.asymmetricMatch(a);\n }\n}\nfunction eq(a, b, aStack, bStack, customTesters, hasKey2) {\n let result = true;\n const asymmetricResult = asymmetricMatch(a, b);\n if (asymmetricResult !== void 0) {\n return asymmetricResult;\n }\n const testerContext = { equals };\n for (let i = 0; i < customTesters.length; i++) {\n const customTesterResult = customTesters[i].call(\n testerContext,\n a,\n b,\n customTesters\n );\n if (customTesterResult !== void 0) {\n return customTesterResult;\n }\n }\n if (a instanceof Error && b instanceof Error) {\n return a.message === b.message;\n }\n if (typeof URL === \"function\" && a instanceof URL && b instanceof URL) {\n return a.href === b.href;\n }\n if (Object.is(a, b)) {\n return true;\n }\n if (a === null || b === null) {\n return a === b;\n }\n const className = Object.prototype.toString.call(a);\n if (className !== Object.prototype.toString.call(b)) {\n return false;\n }\n switch (className) {\n case \"[object Boolean]\":\n case \"[object String]\":\n case \"[object Number]\":\n if (typeof a !== typeof b) {\n return false;\n } else if (typeof a !== \"object\" && typeof b !== \"object\") {\n return Object.is(a, b);\n } else {\n return Object.is(a.valueOf(), b.valueOf());\n }\n case \"[object Date]\": {\n const numA = +a;\n const numB = +b;\n return numA === numB || Number.isNaN(numA) && Number.isNaN(numB);\n }\n // RegExps are compared by their source patterns and flags.\n case \"[object RegExp]\":\n return a.source === b.source && a.flags === b.flags;\n }\n if (typeof a !== \"object\" || typeof b !== \"object\") {\n return false;\n }\n if (isDomNode(a) && isDomNode(b)) {\n return a.isEqualNode(b);\n }\n let length = aStack.length;\n while (length--) {\n if (aStack[length] === a) {\n return bStack[length] === b;\n } else if (bStack[length] === b) {\n return false;\n }\n }\n aStack.push(a);\n bStack.push(b);\n if (className === \"[object Array]\" && a.length !== b.length) {\n return false;\n }\n const aKeys = keys(a, hasKey2);\n let key;\n let size = aKeys.length;\n if (keys(b, hasKey2).length !== size) {\n return false;\n }\n while (size--) {\n key = aKeys[size];\n result = hasKey2(b, key) && eq(a[key], b[key], aStack, bStack, customTesters, hasKey2);\n if (!result) {\n return false;\n }\n }\n aStack.pop();\n bStack.pop();\n return result;\n}\nfunction keys(obj, hasKey2) {\n const keys2 = [];\n for (const key in obj) {\n if (hasKey2(obj, key)) {\n keys2.push(key);\n }\n }\n return keys2.concat(\n Object.getOwnPropertySymbols(obj).filter(\n (symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable\n )\n );\n}\nfunction hasDefinedKey(obj, key) {\n return hasKey(obj, key) && obj[key] !== void 0;\n}\nfunction hasKey(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\nfunction isA(typeName, value) {\n return Object.prototype.toString.apply(value) === `[object ${typeName}]`;\n}\nfunction isDomNode(obj) {\n return obj !== null && typeof obj === \"object\" && \"nodeType\" in obj && typeof obj.nodeType === \"number\" && \"nodeName\" in obj && typeof obj.nodeName === \"string\" && \"isEqualNode\" in obj && typeof obj.isEqualNode === \"function\";\n}\nfunction fnNameFor(func) {\n if (func.name) {\n return func.name;\n }\n const matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);\n return matches ? matches[1] : \"<anonymous>\";\n}\nfunction getPrototype(obj) {\n if (Object.getPrototypeOf) {\n return Object.getPrototypeOf(obj);\n }\n if (obj.constructor.prototype === obj) {\n return null;\n }\n return obj.constructor.prototype;\n}\nfunction hasProperty(obj, property) {\n if (!obj) {\n return false;\n }\n if (Object.prototype.hasOwnProperty.call(obj, property)) {\n return true;\n }\n return hasProperty(getPrototype(obj), property);\n}\nconst IS_KEYED_SENTINEL = \"@@__IMMUTABLE_KEYED__@@\";\nconst IS_SET_SENTINEL = \"@@__IMMUTABLE_SET__@@\";\nconst IS_LIST_SENTINEL = \"@@__IMMUTABLE_LIST__@@\";\nconst IS_ORDERED_SENTINEL = \"@@__IMMUTABLE_ORDERED__@@\";\nconst IS_RECORD_SYMBOL = \"@@__IMMUTABLE_RECORD__@@\";\nfunction isImmutableUnorderedKeyed(maybeKeyed) {\n return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL] && !maybeKeyed[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableUnorderedSet(maybeSet) {\n return !!(maybeSet && maybeSet[IS_SET_SENTINEL] && !maybeSet[IS_ORDERED_SENTINEL]);\n}\nfunction isObjectLiteral(source) {\n return source != null && typeof source === \"object\" && !Array.isArray(source);\n}\nfunction isImmutableList(source) {\n return Boolean(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL]);\n}\nfunction isImmutableOrderedKeyed(source) {\n return Boolean(\n source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL] && source[IS_ORDERED_SENTINEL]\n );\n}\nfunction isImmutableOrderedSet(source) {\n return Boolean(\n source && isObjectLiteral(source) && source[IS_SET_SENTINEL] && source[IS_ORDERED_SENTINEL]\n );\n}\nfunction isImmutableRecord(source) {\n return Boolean(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL]);\n}\nconst IteratorSymbol = Symbol.iterator;\nfunction hasIterator(object) {\n return !!(object != null && object[IteratorSymbol]);\n}\nfunction iterableEquality(a, b, customTesters = [], aStack = [], bStack = []) {\n if (typeof a !== \"object\" || typeof b !== \"object\" || Array.isArray(a) || Array.isArray(b) || !hasIterator(a) || !hasIterator(b)) {\n return void 0;\n }\n if (a.constructor !== b.constructor) {\n return false;\n }\n let length = aStack.length;\n while (length--) {\n if (aStack[length] === a) {\n return bStack[length] === b;\n }\n }\n aStack.push(a);\n bStack.push(b);\n const filteredCustomTesters = [\n ...customTesters.filter((t) => t !== iterableEquality),\n iterableEqualityWithStack\n ];\n function iterableEqualityWithStack(a2, b2) {\n return iterableEquality(a2, b2, [...customTesters], [...aStack], [...bStack]);\n }\n if (a.size !== void 0) {\n if (a.size !== b.size) {\n return false;\n } else if (isA(\"Set\", a) || isImmutableUnorderedSet(a)) {\n let allFound = true;\n for (const aValue of a) {\n if (!b.has(aValue)) {\n let has = false;\n for (const bValue of b) {\n const isEqual = equals(aValue, bValue, filteredCustomTesters);\n if (isEqual === true) {\n has = true;\n }\n }\n if (has === false) {\n allFound = false;\n break;\n }\n }\n }\n aStack.pop();\n bStack.pop();\n return allFound;\n } else if (isA(\"Map\", a) || isImmutableUnorderedKeyed(a)) {\n let allFound = true;\n for (const aEntry of a) {\n if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {\n let has = false;\n for (const bEntry of b) {\n const matchedKey = equals(\n aEntry[0],\n bEntry[0],\n filteredCustomTesters\n );\n let matchedValue = false;\n if (matchedKey === true) {\n matchedValue = equals(\n aEntry[1],\n bEntry[1],\n filteredCustomTesters\n );\n }\n if (matchedValue === true) {\n has = true;\n }\n }\n if (has === false) {\n allFound = false;\n break;\n }\n }\n }\n aStack.pop();\n bStack.pop();\n return allFound;\n }\n }\n const bIterator = b[IteratorSymbol]();\n for (const aValue of a) {\n const nextB = bIterator.next();\n if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) {\n return false;\n }\n }\n if (!bIterator.next().done) {\n return false;\n }\n if (!isImmutableList(a) && !isImmutableOrderedKeyed(a) && !isImmutableOrderedSet(a) && !isImmutableRecord(a)) {\n const aEntries = Object.entries(a);\n const bEntries = Object.entries(b);\n if (!equals(aEntries, bEntries)) {\n return false;\n }\n }\n aStack.pop();\n bStack.pop();\n return true;\n}\nfunction hasPropertyInObject(object, key) {\n const shouldTerminate = !object || typeof object !== \"object\" || object === Object.prototype;\n if (shouldTerminate) {\n return false;\n }\n return Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);\n}\nfunction isObjectWithKeys(a) {\n return isObject(a) && !(a instanceof Error) && !Array.isArray(a) && !(a instanceof Date);\n}\nfunction subsetEquality(object, subset, customTesters = []) {\n const filteredCustomTesters = customTesters.filter(\n (t) => t !== subsetEquality\n );\n const subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {\n if (!isObjectWithKeys(subset2)) {\n return void 0;\n }\n return Object.keys(subset2).every((key) => {\n if (subset2[key] != null && typeof subset2[key] === \"object\") {\n if (seenReferences.has(subset2[key])) {\n return equals(object2[key], subset2[key], filteredCustomTesters);\n }\n seenReferences.set(subset2[key], true);\n }\n const result = object2 != null && hasPropertyInObject(object2, key) && equals(object2[key], subset2[key], [\n ...filteredCustomTesters,\n subsetEqualityWithContext(seenReferences)\n ]);\n seenReferences.delete(subset2[key]);\n return result;\n });\n };\n return subsetEqualityWithContext()(object, subset);\n}\nfunction typeEquality(a, b) {\n if (a == null || b == null || a.constructor === b.constructor) {\n return void 0;\n }\n return false;\n}\nfunction arrayBufferEquality(a, b) {\n let dataViewA = a;\n let dataViewB = b;\n if (!(a instanceof DataView && b instanceof DataView)) {\n if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) {\n return void 0;\n }\n try {\n dataViewA = new DataView(a);\n dataViewB = new DataView(b);\n } catch {\n return void 0;\n }\n }\n if (dataViewA.byteLength !== dataViewB.byteLength) {\n return false;\n }\n for (let i = 0; i < dataViewA.byteLength; i++) {\n if (dataViewA.getUint8(i) !== dataViewB.getUint8(i)) {\n return false;\n }\n }\n return true;\n}\nfunction sparseArrayEquality(a, b, customTesters = []) {\n if (!Array.isArray(a) || !Array.isArray(b)) {\n return void 0;\n }\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n const filteredCustomTesters = customTesters.filter(\n (t) => t !== sparseArrayEquality\n );\n return equals(a, b, filteredCustomTesters, true) && equals(aKeys, bKeys);\n}\nfunction generateToBeMessage(deepEqualityName, expected = \"#{this}\", actual = \"#{exp}\") {\n const toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;\n if ([\"toStrictEqual\", \"toEqual\"].includes(deepEqualityName)) {\n return `${toBeMessage}\n\nIf it should pass with deep equality, replace \"toBe\" with \"${deepEqualityName}\"\n\nExpected: ${expected}\nReceived: serializes to the same string\n`;\n }\n return toBeMessage;\n}\nfunction pluralize(word, count) {\n return `${count} ${word}${count === 1 ? \"\" : \"s\"}`;\n}\nfunction getObjectKeys(object) {\n return [\n ...Object.keys(object),\n ...Object.getOwnPropertySymbols(object).filter(\n (s) => {\n var _a;\n return (_a = Object.getOwnPropertyDescriptor(object, s)) == null ? void 0 : _a.enumerable;\n }\n )\n ];\n}\nfunction getObjectSubset(object, subset, customTesters) {\n let stripped = 0;\n const getObjectSubsetWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => {\n if (Array.isArray(object2)) {\n if (Array.isArray(subset2) && subset2.length === object2.length) {\n return subset2.map(\n (sub, i) => getObjectSubsetWithContext(seenReferences)(object2[i], sub)\n );\n }\n } else if (object2 instanceof Date) {\n return object2;\n } else if (isObject(object2) && isObject(subset2)) {\n if (equals(object2, subset2, [\n ...customTesters,\n iterableEquality,\n subsetEquality\n ])) {\n return subset2;\n }\n const trimmed = {};\n seenReferences.set(object2, trimmed);\n if (typeof object2.constructor === \"function\" && typeof object2.constructor.name === \"string\") {\n Object.defineProperty(trimmed, \"constructor\", {\n enumerable: false,\n value: object2.constructor\n });\n }\n for (const key of getObjectKeys(object2)) {\n if (hasPropertyInObject(subset2, key)) {\n trimmed[key] = seenReferences.has(object2[key]) ? seenReferences.get(object2[key]) : getObjectSubsetWithContext(seenReferences)(\n object2[key],\n subset2[key]\n );\n } else {\n if (!seenReferences.has(object2[key])) {\n stripped += 1;\n if (isObject(object2[key])) {\n stripped += getObjectKeys(object2[key]).length;\n }\n getObjectSubsetWithContext(seenReferences)(\n object2[key],\n subset2[key]\n );\n }\n }\n }\n if (getObjectKeys(trimmed).length > 0) {\n return trimmed;\n }\n }\n return object2;\n };\n return { subset: getObjectSubsetWithContext()(object, subset), stripped };\n}\n\nif (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) {\n const globalState = /* @__PURE__ */ new WeakMap();\n const matchers = /* @__PURE__ */ Object.create(null);\n const customEqualityTesters = [];\n const assymetricMatchers = /* @__PURE__ */ Object.create(null);\n Object.defineProperty(globalThis, MATCHERS_OBJECT, {\n get: () => globalState\n });\n Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {\n configurable: true,\n get: () => ({\n state: globalState.get(globalThis[GLOBAL_EXPECT]),\n matchers,\n customEqualityTesters\n })\n });\n Object.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, {\n get: () => assymetricMatchers\n });\n}\nfunction getState(expect) {\n return globalThis[MATCHERS_OBJECT].get(expect);\n}\nfunction setState(state, expect) {\n const map = globalThis[MATCHERS_OBJECT];\n const current = map.get(expect) || {};\n const results = Object.defineProperties(current, {\n ...Object.getOwnPropertyDescriptors(current),\n ...Object.getOwnPropertyDescriptors(state)\n });\n map.set(expect, results);\n}\n\nclass AsymmetricMatcher {\n constructor(sample, inverse = false) {\n this.sample = sample;\n this.inverse = inverse;\n }\n // should have \"jest\" to be compatible with its ecosystem\n $$typeof = Symbol.for(\"jest.asymmetricMatcher\");\n getMatcherContext(expect) {\n return {\n ...getState(expect || globalThis[GLOBAL_EXPECT]),\n equals,\n isNot: this.inverse,\n customTesters: getCustomEqualityTesters(),\n utils: {\n ...getMatcherUtils(),\n diff,\n stringify,\n iterableEquality,\n subsetEquality\n }\n };\n }\n // implement custom chai/loupe inspect for better AssertionError.message formatting\n // https://github.com/chaijs/loupe/blob/9b8a6deabcd50adc056a64fb705896194710c5c6/src/index.ts#L29\n [Symbol.for(\"chai/inspect\")](options) {\n const result = stringify(this, options.depth, { min: true });\n if (result.length <= options.truncate) {\n return result;\n }\n return `${this.toString()}{\\u2026}`;\n }\n}\nclass StringContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n if (!isA(\"String\", sample)) {\n throw new Error(\"Expected is not a string\");\n }\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n const result = isA(\"String\", other) && other.includes(this.sample);\n return this.inverse ? !result : result;\n }\n toString() {\n return `String${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"string\";\n }\n}\nclass Anything extends AsymmetricMatcher {\n asymmetricMatch(other) {\n return other != null;\n }\n toString() {\n return \"Anything\";\n }\n toAsymmetricMatcher() {\n return \"Anything\";\n }\n}\nclass ObjectContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n super(sample, inverse);\n }\n getPrototype(obj) {\n if (Object.getPrototypeOf) {\n return Object.getPrototypeOf(obj);\n }\n if (obj.constructor.prototype === obj) {\n return null;\n }\n return obj.constructor.prototype;\n }\n hasProperty(obj, property) {\n if (!obj) {\n return false;\n }\n if (Object.prototype.hasOwnProperty.call(obj, property)) {\n return true;\n }\n return this.hasProperty(this.getPrototype(obj), property);\n }\n asymmetricMatch(other) {\n if (typeof this.sample !== \"object\") {\n throw new TypeError(\n `You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`\n );\n }\n let result = true;\n const matcherContext = this.getMatcherContext();\n for (const property in this.sample) {\n if (!this.hasProperty(other, property) || !equals(\n this.sample[property],\n other[property],\n matcherContext.customTesters\n )) {\n result = false;\n break;\n }\n }\n return this.inverse ? !result : result;\n }\n toString() {\n return `Object${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"object\";\n }\n}\nclass ArrayContaining extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n if (!Array.isArray(this.sample)) {\n throw new TypeError(\n `You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`\n );\n }\n const matcherContext = this.getMatcherContext();\n const result = this.sample.length === 0 || Array.isArray(other) && this.sample.every(\n (item) => other.some(\n (another) => equals(item, another, matcherContext.customTesters)\n )\n );\n return this.inverse ? !result : result;\n }\n toString() {\n return `Array${this.inverse ? \"Not\" : \"\"}Containing`;\n }\n getExpectedType() {\n return \"array\";\n }\n}\nclass Any extends AsymmetricMatcher {\n constructor(sample) {\n if (typeof sample === \"undefined\") {\n throw new TypeError(\n \"any() expects to be passed a constructor function. Please pass one or use anything() to match any object.\"\n );\n }\n super(sample);\n }\n fnNameFor(func) {\n if (func.name) {\n return func.name;\n }\n const functionToString = Function.prototype.toString;\n const matches = functionToString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);\n return matches ? matches[1] : \"<anonymous>\";\n }\n asymmetricMatch(other) {\n if (this.sample === String) {\n return typeof other == \"string\" || other instanceof String;\n }\n if (this.sample === Number) {\n return typeof other == \"number\" || other instanceof Number;\n }\n if (this.sample === Function) {\n return typeof other == \"function\" || other instanceof Function;\n }\n if (this.sample === Boolean) {\n return typeof other == \"boolean\" || other instanceof Boolean;\n }\n if (this.sample === BigInt) {\n return typeof other == \"bigint\" || other instanceof BigInt;\n }\n if (this.sample === Symbol) {\n return typeof other == \"symbol\" || other instanceof Symbol;\n }\n if (this.sample === Object) {\n return typeof other == \"object\";\n }\n return other instanceof this.sample;\n }\n toString() {\n return \"Any\";\n }\n getExpectedType() {\n if (this.sample === String) {\n return \"string\";\n }\n if (this.sample === Number) {\n return \"number\";\n }\n if (this.sample === Function) {\n return \"function\";\n }\n if (this.sample === Object) {\n return \"object\";\n }\n if (this.sample === Boolean) {\n return \"boolean\";\n }\n return this.fnNameFor(this.sample);\n }\n toAsymmetricMatcher() {\n return `Any<${this.fnNameFor(this.sample)}>`;\n }\n}\nclass StringMatching extends AsymmetricMatcher {\n constructor(sample, inverse = false) {\n if (!isA(\"String\", sample) && !isA(\"RegExp\", sample)) {\n throw new Error(\"Expected is not a String or a RegExp\");\n }\n super(new RegExp(sample), inverse);\n }\n asymmetricMatch(other) {\n const result = isA(\"String\", other) && this.sample.test(other);\n return this.inverse ? !result : result;\n }\n toString() {\n return `String${this.inverse ? \"Not\" : \"\"}Matching`;\n }\n getExpectedType() {\n return \"string\";\n }\n}\nclass CloseTo extends AsymmetricMatcher {\n precision;\n constructor(sample, precision = 2, inverse = false) {\n if (!isA(\"Number\", sample)) {\n throw new Error(\"Expected is not a Number\");\n }\n if (!isA(\"Number\", precision)) {\n throw new Error(\"Precision is not a Number\");\n }\n super(sample);\n this.inverse = inverse;\n this.precision = precision;\n }\n asymmetricMatch(other) {\n if (!isA(\"Number\", other)) {\n return false;\n }\n let result = false;\n if (other === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY) {\n result = true;\n } else if (other === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY) {\n result = true;\n } else {\n result = Math.abs(this.sample - other) < 10 ** -this.precision / 2;\n }\n return this.inverse ? !result : result;\n }\n toString() {\n return `Number${this.inverse ? \"Not\" : \"\"}CloseTo`;\n }\n getExpectedType() {\n return \"number\";\n }\n toAsymmetricMatcher() {\n return [\n this.toString(),\n this.sample,\n `(${pluralize(\"digit\", this.precision)})`\n ].join(\" \");\n }\n}\nconst JestAsymmetricMatchers = (chai, utils) => {\n utils.addMethod(chai.expect, \"anything\", () => new Anything());\n utils.addMethod(chai.expect, \"any\", (expected) => new Any(expected));\n utils.addMethod(\n chai.expect,\n \"stringContaining\",\n (expected) => new StringContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"objectContaining\",\n (expected) => new ObjectContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"arrayContaining\",\n (expected) => new ArrayContaining(expected)\n );\n utils.addMethod(\n chai.expect,\n \"stringMatching\",\n (expected) => new StringMatching(expected)\n );\n utils.addMethod(\n chai.expect,\n \"closeTo\",\n (expected, precision) => new CloseTo(expected, precision)\n );\n chai.expect.not = {\n stringContaining: (expected) => new StringContaining(expected, true),\n objectContaining: (expected) => new ObjectContaining(expected, true),\n arrayContaining: (expected) => new ArrayContaining(expected, true),\n stringMatching: (expected) => new StringMatching(expected, true),\n closeTo: (expected, precision) => new CloseTo(expected, precision, true)\n };\n};\n\nfunction createAssertionMessage(util, assertion, hasArgs) {\n const not = util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n const name = `${util.flag(assertion, \"_name\")}(${hasArgs ? \"expected\" : \"\"})`;\n const promiseName = util.flag(assertion, \"promise\");\n const promise = promiseName ? `.${promiseName}` : \"\";\n return `expect(actual)${promise}.${not}${name}`;\n}\nfunction recordAsyncExpect(_test, promise, assertion, error) {\n const test = _test;\n if (test && promise instanceof Promise) {\n promise = promise.finally(() => {\n if (!test.promises) {\n return;\n }\n const index = test.promises.indexOf(promise);\n if (index !== -1) {\n test.promises.splice(index, 1);\n }\n });\n if (!test.promises) {\n test.promises = [];\n }\n test.promises.push(promise);\n let resolved = false;\n test.onFinished ?? (test.onFinished = []);\n test.onFinished.push(() => {\n var _a;\n if (!resolved) {\n const processor = ((_a = globalThis.__vitest_worker__) == null ? void 0 : _a.onFilterStackTrace) || ((s) => s || \"\");\n const stack = processor(error.stack);\n console.warn([\n `Promise returned by \\`${assertion}\\` was not awaited. `,\n \"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. \",\n \"Please remember to await the assertion.\\n\",\n stack\n ].join(\"\"));\n }\n });\n return {\n then(onFullfilled, onRejected) {\n resolved = true;\n return promise.then(onFullfilled, onRejected);\n },\n catch(onRejected) {\n return promise.catch(onRejected);\n },\n finally(onFinally) {\n return promise.finally(onFinally);\n },\n [Symbol.toStringTag]: \"Promise\"\n };\n }\n return promise;\n}\nfunction wrapAssertion(utils, name, fn) {\n return function(...args) {\n var _a;\n if (name !== \"withTest\") {\n utils.flag(this, \"_name\", name);\n }\n if (!utils.flag(this, \"soft\")) {\n return fn.apply(this, args);\n }\n const test = utils.flag(this, \"vitest-test\");\n if (!test) {\n throw new Error(\"expect.soft() can only be used inside a test\");\n }\n try {\n return fn.apply(this, args);\n } catch (err) {\n test.result || (test.result = { state: \"fail\" });\n test.result.state = \"fail\";\n (_a = test.result).errors || (_a.errors = []);\n test.result.errors.push(processError(err));\n }\n };\n}\n\nconst JestChaiExpect = (chai, utils) => {\n const { AssertionError } = chai;\n const customTesters = getCustomEqualityTesters();\n function def(name, fn) {\n const addMethod = (n) => {\n const softWrapper = wrapAssertion(utils, n, fn);\n utils.addMethod(chai.Assertion.prototype, n, softWrapper);\n utils.addMethod(\n globalThis[JEST_MATCHERS_OBJECT].matchers,\n n,\n softWrapper\n );\n };\n if (Array.isArray(name)) {\n name.forEach((n) => addMethod(n));\n } else {\n addMethod(name);\n }\n }\n [\"throw\", \"throws\", \"Throw\"].forEach((m) => {\n utils.overwriteMethod(chai.Assertion.prototype, m, (_super) => {\n return function(...args) {\n const promise = utils.flag(this, \"promise\");\n const object = utils.flag(this, \"object\");\n const isNot = utils.flag(this, \"negate\");\n if (promise === \"rejects\") {\n utils.flag(this, \"object\", () => {\n throw object;\n });\n } else if (promise === \"resolves\" && typeof object !== \"function\") {\n if (!isNot) {\n const message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n const error = {\n showDiff: false\n };\n throw new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n } else {\n return;\n }\n }\n _super.apply(this, args);\n };\n });\n });\n def(\"withTest\", function(test) {\n utils.flag(this, \"vitest-test\", test);\n return this;\n });\n def(\"toEqual\", function(expected) {\n const actual = utils.flag(this, \"object\");\n const equal = equals(actual, expected, [\n ...customTesters,\n iterableEquality\n ]);\n return this.assert(\n equal,\n \"expected #{this} to deeply equal #{exp}\",\n \"expected #{this} to not deeply equal #{exp}\",\n expected,\n actual\n );\n });\n def(\"toStrictEqual\", function(expected) {\n const obj = utils.flag(this, \"object\");\n const equal = equals(\n obj,\n expected,\n [\n ...customTesters,\n iterableEquality,\n typeEquality,\n sparseArrayEquality,\n arrayBufferEquality\n ],\n true\n );\n return this.assert(\n equal,\n \"expected #{this} to strictly equal #{exp}\",\n \"expected #{this} to not strictly equal #{exp}\",\n expected,\n obj\n );\n });\n def(\"toBe\", function(expected) {\n const actual = this._obj;\n const pass = Object.is(actual, expected);\n let deepEqualityName = \"\";\n if (!pass) {\n const toStrictEqualPass = equals(\n actual,\n expected,\n [\n ...customTesters,\n iterableEquality,\n typeEquality,\n sparseArrayEquality,\n arrayBufferEquality\n ],\n true\n );\n if (toStrictEqualPass) {\n deepEqualityName = \"toStrictEqual\";\n } else {\n const toEqualPass = equals(actual, expected, [\n ...customTesters,\n iterableEquality\n ]);\n if (toEqualPass) {\n deepEqualityName = \"toEqual\";\n }\n }\n }\n return this.assert(\n pass,\n generateToBeMessage(deepEqualityName),\n \"expected #{this} not to be #{exp} // Object.is equality\",\n expected,\n actual\n );\n });\n def(\"toMatchObject\", function(expected) {\n const actual = this._obj;\n const pass = equals(actual, expected, [\n ...customTesters,\n iterableEquality,\n subsetEquality\n ]);\n const isNot = utils.flag(this, \"negate\");\n const { subset: actualSubset, stripped } = getObjectSubset(\n actual,\n expected,\n customTesters\n );\n if (pass && isNot || !pass && !isNot) {\n const msg = utils.getMessage(this, [\n pass,\n \"expected #{this} to match object #{exp}\",\n \"expected #{this} to not match object #{exp}\",\n expected,\n actualSubset,\n false\n ]);\n const message = stripped === 0 ? msg : `${msg}\n(${stripped} matching ${stripped === 1 ? \"property\" : \"properties\"} omitted from actual)`;\n throw new AssertionError(message, {\n showDiff: true,\n expected,\n actual: actualSubset\n });\n }\n });\n def(\"toMatch\", function(expected) {\n const actual = this._obj;\n if (typeof actual !== \"string\") {\n throw new TypeError(\n `.toMatch() expects to receive a string, but got ${typeof actual}`\n );\n }\n return this.assert(\n typeof expected === \"string\" ? actual.includes(expected) : actual.match(expected),\n `expected #{this} to match #{exp}`,\n `expected #{this} not to match #{exp}`,\n expected,\n actual\n );\n });\n def(\"toContain\", function(item) {\n const actual = this._obj;\n if (typeof Node !== \"undefined\" && actual instanceof Node) {\n if (!(item instanceof Node)) {\n throw new TypeError(\n `toContain() expected a DOM node as the argument, but got ${typeof item}`\n );\n }\n return this.assert(\n actual.contains(item),\n \"expected #{this} to contain element #{exp}\",\n \"expected #{this} not to contain element #{exp}\",\n item,\n actual\n );\n }\n if (typeof DOMTokenList !== \"undefined\" && actual instanceof DOMTokenList) {\n assertTypes(item, \"class name\", [\"string\"]);\n const isNot = utils.flag(this, \"negate\");\n const expectedClassList = isNot ? actual.value.replace(item, \"\").trim() : `${actual.value} ${item}`;\n return this.assert(\n actual.contains(item),\n `expected \"${actual.value}\" to contain \"${item}\"`,\n `expected \"${actual.value}\" not to contain \"${item}\"`,\n expectedClassList,\n actual.value\n );\n }\n if (typeof actual === \"string\" && typeof item === \"string\") {\n return this.assert(\n actual.includes(item),\n `expected #{this} to contain #{exp}`,\n `expected #{this} not to contain #{exp}`,\n item,\n actual\n );\n }\n if (actual != null && typeof actual !== \"string\") {\n utils.flag(this, \"object\", Array.from(actual));\n }\n return this.contain(item);\n });\n def(\"toContainEqual\", function(expected) {\n const obj = utils.flag(this, \"object\");\n const index = Array.from(obj).findIndex((item) => {\n return equals(item, expected, customTesters);\n });\n this.assert(\n index !== -1,\n \"expected #{this} to deep equally contain #{exp}\",\n \"expected #{this} to not deep equally contain #{exp}\",\n expected\n );\n });\n def(\"toBeTruthy\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n Boolean(obj),\n \"expected #{this} to be truthy\",\n \"expected #{this} to not be truthy\",\n true,\n obj\n );\n });\n def(\"toBeFalsy\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n !obj,\n \"expected #{this} to be falsy\",\n \"expected #{this} to not be falsy\",\n false,\n obj\n );\n });\n def(\"toBeGreaterThan\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual > expected,\n `expected ${actual} to be greater than ${expected}`,\n `expected ${actual} to be not greater than ${expected}`,\n expected,\n actual,\n false\n );\n });\n def(\"toBeGreaterThanOrEqual\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual >= expected,\n `expected ${actual} to be greater than or equal to ${expected}`,\n `expected ${actual} to be not greater than or equal to ${expected}`,\n expected,\n actual,\n false\n );\n });\n def(\"toBeLessThan\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual < expected,\n `expected ${actual} to be less than ${expected}`,\n `expected ${actual} to be not less than ${expected}`,\n expected,\n actual,\n false\n );\n });\n def(\"toBeLessThanOrEqual\", function(expected) {\n const actual = this._obj;\n assertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n assertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n return this.assert(\n actual <= expected,\n `expected ${actual} to be less than or equal to ${expected}`,\n `expected ${actual} to be not less than or equal to ${expected}`,\n expected,\n actual,\n false\n );\n });\n def(\"toBeNaN\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n Number.isNaN(obj),\n \"expected #{this} to be NaN\",\n \"expected #{this} not to be NaN\",\n Number.NaN,\n obj\n );\n });\n def(\"toBeUndefined\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n void 0 === obj,\n \"expected #{this} to be undefined\",\n \"expected #{this} not to be undefined\",\n void 0,\n obj\n );\n });\n def(\"toBeNull\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n obj === null,\n \"expected #{this} to be null\",\n \"expected #{this} not to be null\",\n null,\n obj\n );\n });\n def(\"toBeDefined\", function() {\n const obj = utils.flag(this, \"object\");\n this.assert(\n typeof obj !== \"undefined\",\n \"expected #{this} to be defined\",\n \"expected #{this} to be undefined\",\n obj\n );\n });\n def(\n \"toBeTypeOf\",\n function(expected) {\n const actual = typeof this._obj;\n const equal = expected === actual;\n return this.assert(\n equal,\n \"expected #{this} to be type of #{exp}\",\n \"expected #{this} not to be type of #{exp}\",\n expected,\n actual\n );\n }\n );\n def(\"toBeInstanceOf\", function(obj) {\n return this.instanceOf(obj);\n });\n def(\"toHaveLength\", function(length) {\n return this.have.length(length);\n });\n def(\n \"toHaveProperty\",\n function(...args) {\n if (Array.isArray(args[0])) {\n args[0] = args[0].map((key) => String(key).replace(/([.[\\]])/g, \"\\\\$1\")).join(\".\");\n }\n const actual = this._obj;\n const [propertyName, expected] = args;\n const getValue = () => {\n const hasOwn = Object.prototype.hasOwnProperty.call(\n actual,\n propertyName\n );\n if (hasOwn) {\n return { value: actual[propertyName], exists: true };\n }\n return utils.getPathInfo(actual, propertyName);\n };\n const { value, exists } = getValue();\n const pass = exists && (args.length === 1 || equals(expected, value, customTesters));\n const valueString = args.length === 1 ? \"\" : ` with value ${utils.objDisplay(expected)}`;\n return this.assert(\n pass,\n `expected #{this} to have property \"${propertyName}\"${valueString}`,\n `expected #{this} to not have property \"${propertyName}\"${valueString}`,\n expected,\n exists ? value : void 0\n );\n }\n );\n def(\"toBeCloseTo\", function(received, precision = 2) {\n const expected = this._obj;\n let pass = false;\n let expectedDiff = 0;\n let receivedDiff = 0;\n if (received === Number.POSITIVE_INFINITY && expected === Number.POSITIVE_INFINITY) {\n pass = true;\n } else if (received === Number.NEGATIVE_INFINITY && expected === Number.NEGATIVE_INFINITY) {\n pass = true;\n } else {\n expectedDiff = 10 ** -precision / 2;\n receivedDiff = Math.abs(expected - received);\n pass = receivedDiff < expectedDiff;\n }\n return this.assert(\n pass,\n `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`,\n `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`,\n received,\n expected,\n false\n );\n });\n function assertIsMock(assertion) {\n if (!isMockFunction(assertion._obj)) {\n throw new TypeError(\n `${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`\n );\n }\n }\n function getSpy(assertion) {\n assertIsMock(assertion);\n return assertion._obj;\n }\n def([\"toHaveBeenCalledTimes\", \"toBeCalledTimes\"], function(number) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const callCount = spy.mock.calls.length;\n return this.assert(\n callCount === number,\n `expected \"${spyName}\" to be called #{exp} times, but got ${callCount} times`,\n `expected \"${spyName}\" to not be called #{exp} times`,\n number,\n callCount,\n false\n );\n });\n def(\"toHaveBeenCalledOnce\", function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const callCount = spy.mock.calls.length;\n return this.assert(\n callCount === 1,\n `expected \"${spyName}\" to be called once, but got ${callCount} times`,\n `expected \"${spyName}\" to not be called once`,\n 1,\n callCount,\n false\n );\n });\n def([\"toHaveBeenCalled\", \"toBeCalled\"], function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const callCount = spy.mock.calls.length;\n const called = callCount > 0;\n const isNot = utils.flag(this, \"negate\");\n let msg = utils.getMessage(this, [\n called,\n `expected \"${spyName}\" to be called at least once`,\n `expected \"${spyName}\" to not be called at all, but actually been called ${callCount} times`,\n true,\n called\n ]);\n if (called && isNot) {\n msg = formatCalls(spy, msg);\n }\n if (called && isNot || !called && !isNot) {\n throw new AssertionError(msg);\n }\n });\n def([\"toHaveBeenCalledWith\", \"toBeCalledWith\"], function(...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const pass = spy.mock.calls.some(\n (callArg) => equals(callArg, args, [...customTesters, iterableEquality])\n );\n const isNot = utils.flag(this, \"negate\");\n const msg = utils.getMessage(this, [\n pass,\n `expected \"${spyName}\" to be called with arguments: #{exp}`,\n `expected \"${spyName}\" to not be called with arguments: #{exp}`,\n args\n ]);\n if (pass && isNot || !pass && !isNot) {\n throw new AssertionError(formatCalls(spy, msg, args));\n }\n });\n def(\n [\"toHaveBeenNthCalledWith\", \"nthCalledWith\"],\n function(times, ...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const nthCall = spy.mock.calls[times - 1];\n const callCount = spy.mock.calls.length;\n const isCalled = times <= callCount;\n this.assert(\n equals(nthCall, args, [...customTesters, iterableEquality]),\n `expected ${ordinalOf(\n times\n )} \"${spyName}\" call to have been called with #{exp}${isCalled ? `` : `, but called only ${callCount} times`}`,\n `expected ${ordinalOf(\n times\n )} \"${spyName}\" call to not have been called with #{exp}`,\n args,\n nthCall,\n isCalled\n );\n }\n );\n def(\n [\"toHaveBeenLastCalledWith\", \"lastCalledWith\"],\n function(...args) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const lastCall = spy.mock.calls[spy.mock.calls.length - 1];\n this.assert(\n equals(lastCall, args, [...customTesters, iterableEquality]),\n `expected last \"${spyName}\" call to have been called with #{exp}`,\n `expected last \"${spyName}\" call to not have been called with #{exp}`,\n args,\n lastCall\n );\n }\n );\n def(\n [\"toThrow\", \"toThrowError\"],\n function(expected) {\n if (typeof expected === \"string\" || typeof expected === \"undefined\" || expected instanceof RegExp) {\n return this.throws(expected === \"\" ? /^$/ : expected);\n }\n const obj = this._obj;\n const promise = utils.flag(this, \"promise\");\n const isNot = utils.flag(this, \"negate\");\n let thrown = null;\n if (promise === \"rejects\") {\n thrown = obj;\n } else if (promise === \"resolves\" && typeof obj !== \"function\") {\n if (!isNot) {\n const message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n const error = {\n showDiff: false\n };\n throw new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n } else {\n return;\n }\n } else {\n let isThrow = false;\n try {\n obj();\n } catch (err) {\n isThrow = true;\n thrown = err;\n }\n if (!isThrow && !isNot) {\n const message = utils.flag(this, \"message\") || \"expected function to throw an error, but it didn't\";\n const error = {\n showDiff: false\n };\n throw new AssertionError(message, error, utils.flag(this, \"ssfi\"));\n }\n }\n if (typeof expected === \"function\") {\n const name = expected.name || expected.prototype.constructor.name;\n return this.assert(\n thrown && thrown instanceof expected,\n `expected error to be instance of ${name}`,\n `expected error not to be instance of ${name}`,\n expected,\n thrown\n );\n }\n if (expected instanceof Error) {\n return this.assert(\n thrown && expected.message === thrown.message,\n `expected error to have message: ${expected.message}`,\n `expected error not to have message: ${expected.message}`,\n expected.message,\n thrown && thrown.message\n );\n }\n if (typeof expected === \"object\" && \"asymmetricMatch\" in expected && typeof expected.asymmetricMatch === \"function\") {\n const matcher = expected;\n return this.assert(\n thrown && matcher.asymmetricMatch(thrown),\n \"expected error to match asymmetric matcher\",\n \"expected error not to match asymmetric matcher\",\n matcher,\n thrown\n );\n }\n throw new Error(\n `\"toThrow\" expects string, RegExp, function, Error instance or asymmetric matcher, got \"${typeof expected}\"`\n );\n }\n );\n [\n {\n name: \"toHaveResolved\",\n condition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type }) => type === \"fulfilled\"),\n action: \"resolved\"\n },\n {\n name: [\"toHaveReturned\", \"toReturn\"],\n condition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== \"throw\"),\n action: \"called\"\n }\n ].forEach(({ name, condition, action }) => {\n def(name, function() {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const pass = condition(spy);\n this.assert(\n pass,\n `expected \"${spyName}\" to be successfully ${action} at least once`,\n `expected \"${spyName}\" to not be successfully ${action}`,\n pass,\n !pass,\n false\n );\n });\n });\n [\n {\n name: \"toHaveResolvedTimes\",\n condition: (spy, times) => spy.mock.settledResults.reduce(\n (s, { type }) => type === \"fulfilled\" ? ++s : s,\n 0\n ) === times,\n action: \"resolved\"\n },\n {\n name: [\"toHaveReturnedTimes\", \"toReturnTimes\"],\n condition: (spy, times) => spy.mock.results.reduce(\n (s, { type }) => type === \"throw\" ? s : ++s,\n 0\n ) === times,\n action: \"called\"\n }\n ].forEach(({ name, condition, action }) => {\n def(name, function(times) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const pass = condition(spy, times);\n this.assert(\n pass,\n `expected \"${spyName}\" to be successfully ${action} ${times} times`,\n `expected \"${spyName}\" to not be successfully ${action} ${times} times`,\n `expected resolved times: ${times}`,\n `received resolved times: ${pass}`,\n false\n );\n });\n });\n [\n {\n name: \"toHaveResolvedWith\",\n condition: (spy, value) => spy.mock.settledResults.some(\n ({ type, value: result }) => type === \"fulfilled\" && equals(value, result)\n ),\n action: \"resolve\"\n },\n {\n name: [\"toHaveReturnedWith\", \"toReturnWith\"],\n condition: (spy, value) => spy.mock.results.some(\n ({ type, value: result }) => type === \"return\" && equals(value, result)\n ),\n action: \"return\"\n }\n ].forEach(({ name, condition, action }) => {\n def(name, function(value) {\n const spy = getSpy(this);\n const pass = condition(spy, value);\n const isNot = utils.flag(this, \"negate\");\n if (pass && isNot || !pass && !isNot) {\n const spyName = spy.getMockName();\n const msg = utils.getMessage(this, [\n pass,\n `expected \"${spyName}\" to ${action} with: #{exp} at least once`,\n `expected \"${spyName}\" to not ${action} with: #{exp}`,\n value\n ]);\n const results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n throw new AssertionError(formatReturns(spy, results, msg, value));\n }\n });\n });\n [\n {\n name: \"toHaveLastResolvedWith\",\n condition: (spy, value) => {\n const result = spy.mock.settledResults[spy.mock.settledResults.length - 1];\n return result && result.type === \"fulfilled\" && equals(result.value, value);\n },\n action: \"resolve\"\n },\n {\n name: [\"toHaveLastReturnedWith\", \"lastReturnedWith\"],\n condition: (spy, value) => {\n const result = spy.mock.results[spy.mock.results.length - 1];\n return result && result.type === \"return\" && equals(result.value, value);\n },\n action: \"return\"\n }\n ].forEach(({ name, condition, action }) => {\n def(name, function(value) {\n const spy = getSpy(this);\n const results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n const result = results[results.length - 1];\n const spyName = spy.getMockName();\n this.assert(\n condition(spy, value),\n `expected last \"${spyName}\" call to ${action} #{exp}`,\n `expected last \"${spyName}\" call to not ${action} #{exp}`,\n value,\n result == null ? void 0 : result.value\n );\n });\n });\n [\n {\n name: \"toHaveNthResolvedWith\",\n condition: (spy, index, value) => {\n const result = spy.mock.settledResults[index - 1];\n return result && result.type === \"fulfilled\" && equals(result.value, value);\n },\n action: \"resolve\"\n },\n {\n name: [\"toHaveNthReturnedWith\", \"nthReturnedWith\"],\n condition: (spy, index, value) => {\n const result = spy.mock.results[index - 1];\n return result && result.type === \"return\" && equals(result.value, value);\n },\n action: \"return\"\n }\n ].forEach(({ name, condition, action }) => {\n def(name, function(nthCall, value) {\n const spy = getSpy(this);\n const spyName = spy.getMockName();\n const results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n const result = results[nthCall - 1];\n const ordinalCall = `${ordinalOf(nthCall)} call`;\n this.assert(\n condition(spy, nthCall, value),\n `expected ${ordinalCall} \"${spyName}\" call to ${action} #{exp}`,\n `expected ${ordinalCall} \"${spyName}\" call to not ${action} #{exp}`,\n value,\n result == null ? void 0 : result.value\n );\n });\n });\n def(\"toSatisfy\", function(matcher, message) {\n return this.be.satisfy(matcher, message);\n });\n def(\"withContext\", function(context) {\n for (const key in context) {\n utils.flag(this, key, context[key]);\n }\n return this;\n });\n utils.addProperty(\n chai.Assertion.prototype,\n \"resolves\",\n function __VITEST_RESOLVES__() {\n const error = new Error(\"resolves\");\n utils.flag(this, \"promise\", \"resolves\");\n utils.flag(this, \"error\", error);\n const test = utils.flag(this, \"vitest-test\");\n const obj = utils.flag(this, \"object\");\n if (utils.flag(this, \"poll\")) {\n throw new SyntaxError(\n `expect.poll() is not supported in combination with .resolves`\n );\n }\n if (typeof (obj == null ? void 0 : obj.then) !== \"function\") {\n throw new TypeError(\n `You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`\n );\n }\n const proxy = new Proxy(this, {\n get: (target, key, receiver) => {\n const result = Reflect.get(target, key, receiver);\n if (typeof result !== \"function\") {\n return result instanceof chai.Assertion ? proxy : result;\n }\n return (...args) => {\n utils.flag(this, \"_name\", key);\n const promise = obj.then(\n (value) => {\n utils.flag(this, \"object\", value);\n return result.call(this, ...args);\n },\n (err) => {\n const _error = new AssertionError(\n `promise rejected \"${utils.inspect(\n err\n )}\" instead of resolving`,\n { showDiff: false }\n );\n _error.cause = err;\n _error.stack = error.stack.replace(\n error.message,\n _error.message\n );\n throw _error;\n }\n );\n return recordAsyncExpect(\n test,\n promise,\n createAssertionMessage(utils, this, !!args.length),\n error\n );\n };\n }\n });\n return proxy;\n }\n );\n utils.addProperty(\n chai.Assertion.prototype,\n \"rejects\",\n function __VITEST_REJECTS__() {\n const error = new Error(\"rejects\");\n utils.flag(this, \"promise\", \"rejects\");\n utils.flag(this, \"error\", error);\n const test = utils.flag(this, \"vitest-test\");\n const obj = utils.flag(this, \"object\");\n const wrapper = typeof obj === \"function\" ? obj() : obj;\n if (utils.flag(this, \"poll\")) {\n throw new SyntaxError(\n `expect.poll() is not supported in combination with .rejects`\n );\n }\n if (typeof (wrapper == null ? void 0 : wrapper.then) !== \"function\") {\n throw new TypeError(\n `You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`\n );\n }\n const proxy = new Proxy(this, {\n get: (target, key, receiver) => {\n const result = Reflect.get(target, key, receiver);\n if (typeof result !== \"function\") {\n return result instanceof chai.Assertion ? proxy : result;\n }\n return (...args) => {\n utils.flag(this, \"_name\", key);\n const promise = wrapper.then(\n (value) => {\n const _error = new AssertionError(\n `promise resolved \"${utils.inspect(\n value\n )}\" instead of rejecting`,\n {\n showDiff: true,\n expected: new Error(\"rejected promise\"),\n actual: value\n }\n );\n _error.stack = error.stack.replace(\n error.message,\n _error.message\n );\n throw _error;\n },\n (err) => {\n utils.flag(this, \"object\", err);\n return result.call(this, ...args);\n }\n );\n return recordAsyncExpect(\n test,\n promise,\n createAssertionMessage(utils, this, !!args.length),\n error\n );\n };\n }\n });\n return proxy;\n }\n );\n};\nfunction ordinalOf(i) {\n const j = i % 10;\n const k = i % 100;\n if (j === 1 && k !== 11) {\n return `${i}st`;\n }\n if (j === 2 && k !== 12) {\n return `${i}nd`;\n }\n if (j === 3 && k !== 13) {\n return `${i}rd`;\n }\n return `${i}th`;\n}\nfunction formatCalls(spy, msg, showActualCall) {\n if (spy.mock.calls) {\n msg += c.gray(\n `\n\nReceived: \n\n${spy.mock.calls.map((callArg, i) => {\n let methodCall = c.bold(\n ` ${ordinalOf(i + 1)} ${spy.getMockName()} call:\n\n`\n );\n if (showActualCall) {\n methodCall += diff(showActualCall, callArg, {\n omitAnnotationLines: true\n });\n } else {\n methodCall += stringify(callArg).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n }\n methodCall += \"\\n\";\n return methodCall;\n }).join(\"\\n\")}`\n );\n }\n msg += c.gray(\n `\n\nNumber of calls: ${c.bold(spy.mock.calls.length)}\n`\n );\n return msg;\n}\nfunction formatReturns(spy, results, msg, showActualReturn) {\n msg += c.gray(\n `\n\nReceived: \n\n${results.map((callReturn, i) => {\n let methodCall = c.bold(\n ` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:\n\n`\n );\n if (showActualReturn) {\n methodCall += diff(showActualReturn, callReturn.value, {\n omitAnnotationLines: true\n });\n } else {\n methodCall += stringify(callReturn).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n }\n methodCall += \"\\n\";\n return methodCall;\n }).join(\"\\n\")}`\n );\n msg += c.gray(\n `\n\nNumber of calls: ${c.bold(spy.mock.calls.length)}\n`\n );\n return msg;\n}\n\nfunction getMatcherState(assertion, expect) {\n const obj = assertion._obj;\n const isNot = util.flag(assertion, \"negate\");\n const promise = util.flag(assertion, \"promise\") || \"\";\n const jestUtils = {\n ...getMatcherUtils(),\n diff,\n stringify,\n iterableEquality,\n subsetEquality\n };\n const matcherState = {\n ...getState(expect),\n customTesters: getCustomEqualityTesters(),\n isNot,\n utils: jestUtils,\n promise,\n equals,\n // needed for built-in jest-snapshots, but we don't use it\n suppressedErrors: [],\n soft: util.flag(assertion, \"soft\"),\n poll: util.flag(assertion, \"poll\")\n };\n return {\n state: matcherState,\n isNot,\n obj\n };\n}\nclass JestExtendError extends Error {\n constructor(message, actual, expected) {\n super(message);\n this.actual = actual;\n this.expected = expected;\n }\n}\nfunction JestExtendPlugin(c, expect, matchers) {\n return (_, utils) => {\n Object.entries(matchers).forEach(\n ([expectAssertionName, expectAssertion]) => {\n function expectWrapper(...args) {\n const { state, isNot, obj } = getMatcherState(this, expect);\n const result = expectAssertion.call(state, obj, ...args);\n if (result && typeof result === \"object\" && result instanceof Promise) {\n return result.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => {\n if (pass2 && isNot || !pass2 && !isNot) {\n throw new JestExtendError(message2(), actual2, expected2);\n }\n });\n }\n const { pass, message, actual, expected } = result;\n if (pass && isNot || !pass && !isNot) {\n throw new JestExtendError(message(), actual, expected);\n }\n }\n const softWrapper = wrapAssertion(utils, expectAssertionName, expectWrapper);\n utils.addMethod(\n globalThis[JEST_MATCHERS_OBJECT].matchers,\n expectAssertionName,\n softWrapper\n );\n utils.addMethod(\n c.Assertion.prototype,\n expectAssertionName,\n softWrapper\n );\n class CustomMatcher extends AsymmetricMatcher {\n constructor(inverse = false, ...sample) {\n super(sample, inverse);\n }\n asymmetricMatch(other) {\n const { pass } = expectAssertion.call(\n this.getMatcherContext(expect),\n other,\n ...this.sample\n );\n return this.inverse ? !pass : pass;\n }\n toString() {\n return `${this.inverse ? \"not.\" : \"\"}${expectAssertionName}`;\n }\n getExpectedType() {\n return \"any\";\n }\n toAsymmetricMatcher() {\n return `${this.toString()}<${this.sample.map(String).join(\", \")}>`;\n }\n }\n const customMatcher = (...sample) => new CustomMatcher(false, ...sample);\n Object.defineProperty(expect, expectAssertionName, {\n configurable: true,\n enumerable: true,\n value: customMatcher,\n writable: true\n });\n Object.defineProperty(expect.not, expectAssertionName, {\n configurable: true,\n enumerable: true,\n value: (...sample) => new CustomMatcher(true, ...sample),\n writable: true\n });\n Object.defineProperty(\n globalThis[ASYMMETRIC_MATCHERS_OBJECT],\n expectAssertionName,\n {\n configurable: true,\n enumerable: true,\n value: customMatcher,\n writable: true\n }\n );\n }\n );\n };\n}\nconst JestExtend = (chai, utils) => {\n utils.addMethod(\n chai.expect,\n \"extend\",\n (expect, expects) => {\n use(JestExtendPlugin(chai, expect, expects));\n }\n );\n};\n\nexport { ASYMMETRIC_MATCHERS_OBJECT, Any, Anything, ArrayContaining, AsymmetricMatcher, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, ObjectContaining, StringContaining, StringMatching, addCustomEqualityTesters, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getObjectKeys, getObjectSubset, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, pluralize, setState, sparseArrayEquality, subsetEquality, typeEquality };\n","import { notNullish, isPrimitive } from './helpers.js';\n\nconst comma = ','.charCodeAt(0);\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n let value = 0;\n let shift = 0;\n let integer = 0;\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n const shouldNegate = value & 1;\n value >>>= 1;\n if (shouldNegate) {\n value = -0x80000000 | -value;\n }\n return relative + value;\n}\nfunction hasMoreVlq(reader, max) {\n if (reader.pos >= max)\n return false;\n return reader.peek() !== comma;\n}\nclass StringReader {\n constructor(buffer) {\n this.pos = 0;\n this.buffer = buffer;\n }\n next() {\n return this.buffer.charCodeAt(this.pos++);\n }\n peek() {\n return this.buffer.charCodeAt(this.pos);\n }\n indexOf(char) {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n\nfunction decode(mappings) {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n do {\n const semi = reader.indexOf(';');\n const line = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n while (reader.pos < semi) {\n let seg;\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol)\n sorted = false;\n lastCol = genColumn;\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n }\n else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n }\n else {\n seg = [genColumn];\n }\n line.push(seg);\n reader.pos++;\n }\n if (!sorted)\n sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n return decoded;\n}\nfunction sort(line) {\n line.sort(sortComparator$1);\n}\nfunction sortComparator$1(a, b) {\n return a[0] - b[0];\n}\n\n// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\nvar UrlType;\n(function (UrlType) {\n UrlType[UrlType[\"Empty\"] = 1] = \"Empty\";\n UrlType[UrlType[\"Hash\"] = 2] = \"Hash\";\n UrlType[UrlType[\"Query\"] = 3] = \"Query\";\n UrlType[UrlType[\"RelativePath\"] = 4] = \"RelativePath\";\n UrlType[UrlType[\"AbsolutePath\"] = 5] = \"AbsolutePath\";\n UrlType[UrlType[\"SchemeRelative\"] = 6] = \"SchemeRelative\";\n UrlType[UrlType[\"Absolute\"] = 7] = \"Absolute\";\n})(UrlType || (UrlType = {}));\nfunction isAbsoluteUrl(input) {\n return schemeRegex.test(input);\n}\nfunction isSchemeRelativeUrl(input) {\n return input.startsWith('//');\n}\nfunction isAbsolutePath(input) {\n return input.startsWith('/');\n}\nfunction isFileUrl(input) {\n return input.startsWith('file:');\n}\nfunction isRelative(input) {\n return /^[.?#]/.test(input);\n}\nfunction parseAbsoluteUrl(input) {\n const match = urlRegex.exec(input);\n return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');\n}\nfunction parseFileUrl(input) {\n const match = fileRegex.exec(input);\n const path = match[2];\n return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');\n}\nfunction makeUrl(scheme, user, host, port, path, query, hash) {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\nfunction parseUrl(input) {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n if (isFileUrl(input))\n return parseFileUrl(input);\n if (isAbsoluteUrl(input))\n return parseAbsoluteUrl(input);\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\nfunction stripPathFilename(path) {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..'))\n return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\nfunction mergePaths(url, base) {\n normalizePath(base, base.type);\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n }\n else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url, type) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n // A current directory, which we can always drop.\n if (piece === '.')\n continue;\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n }\n else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nfunction resolve$2(input, base) {\n if (!input && !base)\n return '';\n const url = parseUrl(input);\n let inputType = url.type;\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType)\n inputType = baseType;\n }\n normalizePath(url, inputType);\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n if (!path)\n return queryHash || '.';\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n return path + queryHash;\n }\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n\nfunction resolve$1(input, base) {\n // The base is always treated as a directory, if it's not empty.\n // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n if (base && !base.endsWith('/'))\n base += '/';\n return resolve$2(input, base);\n}\n\n/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nfunction stripFilename(path) {\n if (!path)\n return '';\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nconst COLUMN = 0;\nconst SOURCES_INDEX = 1;\nconst SOURCE_LINE = 2;\nconst SOURCE_COLUMN = 3;\nconst NAMES_INDEX = 4;\nconst REV_GENERATED_LINE = 1;\nconst REV_GENERATED_COLUMN = 2;\n\nfunction maybeSort(mappings, owned) {\n const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n if (unsortedIndex === mappings.length)\n return mappings;\n // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n // not, we do not want to modify the consumer's input array.\n if (!owned)\n mappings = mappings.slice();\n for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n mappings[i] = sortSegments(mappings[i], owned);\n }\n return mappings;\n}\nfunction nextUnsortedSegmentLine(mappings, start) {\n for (let i = start; i < mappings.length; i++) {\n if (!isSorted(mappings[i]))\n return i;\n }\n return mappings.length;\n}\nfunction isSorted(line) {\n for (let j = 1; j < line.length; j++) {\n if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n return false;\n }\n }\n return true;\n}\nfunction sortSegments(line, owned) {\n if (!owned)\n line = line.slice();\n return line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n return a[COLUMN] - b[COLUMN];\n}\n\nlet found = false;\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nfunction binarySearch(haystack, needle, low, high) {\n while (low <= high) {\n const mid = low + ((high - low) >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n if (cmp === 0) {\n found = true;\n return mid;\n }\n if (cmp < 0) {\n low = mid + 1;\n }\n else {\n high = mid - 1;\n }\n }\n found = false;\n return low - 1;\n}\nfunction upperBound(haystack, needle, index) {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction lowerBound(haystack, needle, index) {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction memoizedState() {\n return {\n lastKey: -1,\n lastNeedle: -1,\n lastIndex: -1,\n };\n}\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nfunction memoizedBinarySearch(haystack, needle, state, key) {\n const { lastKey, lastNeedle, lastIndex } = state;\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n if (needle >= lastNeedle) {\n // lastIndex may be -1 if the previous needle was not found.\n low = lastIndex === -1 ? 0 : lastIndex;\n }\n else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n\n// Rebuilds the original source files, with mappings that are ordered by source line/column instead\n// of generated line/column.\nfunction buildBySources(decoded, memos) {\n const sources = memos.map(buildNullArray);\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n if (seg.length === 1)\n continue;\n const sourceIndex = seg[SOURCES_INDEX];\n const sourceLine = seg[SOURCE_LINE];\n const sourceColumn = seg[SOURCE_COLUMN];\n const originalSource = sources[sourceIndex];\n const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));\n const memo = memos[sourceIndex];\n // The binary search either found a match, or it found the left-index just before where the\n // segment should go. Either way, we want to insert after that. And there may be multiple\n // generated segments associated with an original location, so there may need to move several\n // indexes before we find where we need to insert.\n let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));\n memo.lastIndex = ++index;\n insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);\n }\n }\n return sources;\n}\nfunction insert(array, index, value) {\n for (let i = array.length; i > index; i--) {\n array[i] = array[i - 1];\n }\n array[index] = value;\n}\n// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like\n// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.\n// Numeric properties on objects are magically sorted in ascending order by the engine regardless of\n// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending\n// order when iterating with for-in.\nfunction buildNullArray() {\n return { __proto__: null };\n}\n\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\nconst LEAST_UPPER_BOUND = -1;\nconst GREATEST_LOWER_BOUND = 1;\nclass TraceMap {\n constructor(map, mapUrl) {\n const isString = typeof map === 'string';\n if (!isString && map._decodedMemo)\n return map;\n const parsed = (isString ? JSON.parse(map) : map);\n const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n this.version = version;\n this.file = file;\n this.names = names || [];\n this.sourceRoot = sourceRoot;\n this.sources = sources;\n this.sourcesContent = sourcesContent;\n this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;\n const from = resolve$1(sourceRoot || '', stripFilename(mapUrl));\n this.resolvedSources = sources.map((s) => resolve$1(s || '', from));\n const { mappings } = parsed;\n if (typeof mappings === 'string') {\n this._encoded = mappings;\n this._decoded = undefined;\n }\n else {\n this._encoded = undefined;\n this._decoded = maybeSort(mappings, isString);\n }\n this._decodedMemo = memoizedState();\n this._bySources = undefined;\n this._bySourceMemos = undefined;\n }\n}\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map) {\n return map;\n}\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nfunction decodedMappings(map) {\n var _a;\n return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded)));\n}\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nfunction originalPositionFor(map, needle) {\n let { line, column, bias } = needle;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const decoded = decodedMappings(map);\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length)\n return OMapping(null, null, null, null);\n const segments = decoded[line];\n const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);\n if (index === -1)\n return OMapping(null, null, null, null);\n const segment = segments[index];\n if (segment.length === 1)\n return OMapping(null, null, null, null);\n const { names, resolvedSources } = map;\n return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);\n}\n/**\n * Finds the generated line/column position of the provided source/line/column source position.\n */\nfunction generatedPositionFor(map, needle) {\n const { source, line, column, bias } = needle;\n return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);\n}\nfunction OMapping(source, line, column, name) {\n return { source, line, column, name };\n}\nfunction GMapping(line, column) {\n return { line, column };\n}\nfunction traceSegmentInternal(segments, memo, line, column, bias) {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (found) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n }\n else if (bias === LEAST_UPPER_BOUND)\n index++;\n if (index === -1 || index === segments.length)\n return -1;\n return index;\n}\nfunction sliceGeneratedPositions(segments, memo, line, column, bias) {\n let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);\n // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in\n // insertion order) segment that matched. Even if we did respect the bias when tracing, we would\n // still need to call `lowerBound()` to find the first segment, which is slower than just looking\n // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the\n // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to\n // match LEAST_UPPER_BOUND.\n if (!found && bias === LEAST_UPPER_BOUND)\n min++;\n if (min === -1 || min === segments.length)\n return [];\n // We may have found the segment that started at an earlier column. If this is the case, then we\n // need to slice all generated segments that match _that_ column, because all such segments span\n // to our desired column.\n const matchedColumn = found ? column : segments[min][COLUMN];\n // The binary search is not guaranteed to find the lower bound when a match wasn't found.\n if (!found)\n min = lowerBound(segments, matchedColumn, min);\n const max = upperBound(segments, matchedColumn, min);\n const result = [];\n for (; min <= max; min++) {\n const segment = segments[min];\n result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));\n }\n return result;\n}\nfunction generatedPosition(map, source, line, column, bias, all) {\n var _a;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const { sources, resolvedSources } = map;\n let sourceIndex = sources.indexOf(source);\n if (sourceIndex === -1)\n sourceIndex = resolvedSources.indexOf(source);\n if (sourceIndex === -1)\n return all ? [] : GMapping(null, null);\n const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState)))));\n const segments = generated[sourceIndex][line];\n if (segments == null)\n return all ? [] : GMapping(null, null);\n const memo = cast(map)._bySourceMemos[sourceIndex];\n if (all)\n return sliceGeneratedPositions(segments, memo, line, column, bias);\n const index = traceSegmentInternal(segments, memo, line, column, bias);\n if (index === -1)\n return GMapping(null, null);\n const segment = segments[index];\n return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);\n}\n\nconst _DRIVE_LETTER_START_RE = /^[A-Za-z]:\\//;\nfunction normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());\n}\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nfunction cwd() {\n if (typeof process !== \"undefined\" && typeof process.cwd === \"function\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\n\nconst CHROME_IE_STACK_REGEXP = /^\\s*at .*(?:\\S:\\d+|\\(native\\))/m;\nconst SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\\[native code\\])?$/;\nconst stackIgnorePatterns = [\n \"node:internal\",\n /\\/packages\\/\\w+\\/dist\\//,\n /\\/@vitest\\/\\w+\\/dist\\//,\n \"/vitest/dist/\",\n \"/vitest/src/\",\n \"/vite-node/dist/\",\n \"/vite-node/src/\",\n \"/node_modules/chai/\",\n \"/node_modules/tinypool/\",\n \"/node_modules/tinyspy/\",\n // browser related deps\n \"/deps/chunk-\",\n \"/deps/@vitest\",\n \"/deps/loupe\",\n \"/deps/chai\",\n /node:\\w+/,\n /__vitest_test__/,\n /__vitest_browser__/,\n /\\/deps\\/vitest_/\n];\nfunction extractLocation(urlLike) {\n if (!urlLike.includes(\":\")) {\n return [urlLike];\n }\n const regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n const parts = regExp.exec(urlLike.replace(/^\\(|\\)$/g, \"\"));\n if (!parts) {\n return [urlLike];\n }\n let url = parts[1];\n if (url.startsWith(\"async \")) {\n url = url.slice(6);\n }\n if (url.startsWith(\"http:\") || url.startsWith(\"https:\")) {\n const urlObj = new URL(url);\n url = urlObj.pathname;\n }\n if (url.startsWith(\"/@fs/\")) {\n const isWindows = /^\\/@fs\\/[a-zA-Z]:\\//.test(url);\n url = url.slice(isWindows ? 5 : 4);\n }\n return [url, parts[2] || void 0, parts[3] || void 0];\n}\nfunction parseSingleFFOrSafariStack(raw) {\n let line = raw.trim();\n if (SAFARI_NATIVE_CODE_REGEXP.test(line)) {\n return null;\n }\n if (line.includes(\" > eval\")) {\n line = line.replace(\n / line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,\n \":$1\"\n );\n }\n if (!line.includes(\"@\") && !line.includes(\":\")) {\n return null;\n }\n const functionNameRegex = /((.*\".+\"[^@]*)?[^@]*)(@)/;\n const matches = line.match(functionNameRegex);\n const functionName = matches && matches[1] ? matches[1] : void 0;\n const [url, lineNumber, columnNumber] = extractLocation(\n line.replace(functionNameRegex, \"\")\n );\n if (!url || !lineNumber || !columnNumber) {\n return null;\n }\n return {\n file: url,\n method: functionName || \"\",\n line: Number.parseInt(lineNumber),\n column: Number.parseInt(columnNumber)\n };\n}\nfunction parseSingleStack(raw) {\n const line = raw.trim();\n if (!CHROME_IE_STACK_REGEXP.test(line)) {\n return parseSingleFFOrSafariStack(line);\n }\n return parseSingleV8Stack(line);\n}\nfunction parseSingleV8Stack(raw) {\n let line = raw.trim();\n if (!CHROME_IE_STACK_REGEXP.test(line)) {\n return null;\n }\n if (line.includes(\"(eval \")) {\n line = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n }\n let sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n const location = sanitizedLine.match(/ (\\(.+\\)$)/);\n sanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n const [url, lineNumber, columnNumber] = extractLocation(\n location ? location[1] : sanitizedLine\n );\n let method = location && sanitizedLine || \"\";\n let file = url && [\"eval\", \"<anonymous>\"].includes(url) ? void 0 : url;\n if (!file || !lineNumber || !columnNumber) {\n return null;\n }\n if (method.startsWith(\"async \")) {\n method = method.slice(6);\n }\n if (file.startsWith(\"file://\")) {\n file = file.slice(7);\n }\n file = resolve(file);\n if (method) {\n method = method.replace(/__vite_ssr_import_\\d+__\\./g, \"\");\n }\n return {\n method,\n file,\n line: Number.parseInt(lineNumber),\n column: Number.parseInt(columnNumber)\n };\n}\nfunction createStackString(stacks) {\n return stacks.map((stack) => {\n const line = `${stack.file}:${stack.line}:${stack.column}`;\n if (stack.method) {\n return ` at ${stack.method}(${line})`;\n }\n return ` at ${line}`;\n }).join(\"\\n\");\n}\nfunction parseStacktrace(stack, options = {}) {\n const { ignoreStackEntries = stackIgnorePatterns } = options;\n let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);\n if (ignoreStackEntries.length) {\n stacks = stacks.filter(\n (stack2) => !ignoreStackEntries.some((p) => stack2.file.match(p))\n );\n }\n return stacks.map((stack2) => {\n var _a;\n if (options.getFileName) {\n stack2.file = options.getFileName(stack2.file);\n }\n const map = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file);\n if (!map || typeof map !== \"object\" || !map.version) {\n return stack2;\n }\n const traceMap = new TraceMap(map);\n const { line, column } = originalPositionFor(traceMap, stack2);\n if (line != null && column != null) {\n return { ...stack2, line, column };\n }\n return stack2;\n });\n}\nfunction parseFFOrSafariStackTrace(stack) {\n return stack.split(\"\\n\").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);\n}\nfunction parseV8Stacktrace(stack) {\n return stack.split(\"\\n\").map((line) => parseSingleV8Stack(line)).filter(notNullish);\n}\nfunction parseErrorStacktrace(e, options = {}) {\n if (!e || isPrimitive(e)) {\n return [];\n }\n if (e.stacks) {\n return e.stacks;\n }\n const stackStr = e.stack || e.stackStr || \"\";\n let stackFrames = parseStacktrace(stackStr, options);\n if (options.frameFilter) {\n stackFrames = stackFrames.filter(\n (f) => options.frameFilter(e, f) !== false\n );\n }\n e.stacks = stackFrames;\n return stackFrames;\n}\n\nexport { TraceMap, createStackString, generatedPositionFor, originalPositionFor, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };\n","const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\\//;\nfunction normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());\n}\n\nconst _UNC_REGEX = /^[/\\\\]{2}/;\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nconst _DRIVE_LETTER_RE = /^[A-Za-z]:$/;\nconst _ROOT_FOLDER_RE = /^\\/([A-Za-z]:)?$/;\nconst sep = \"/\";\nconst delimiter = \":\";\nconst normalize = function(path) {\n if (path.length === 0) {\n return \".\";\n }\n path = normalizeWindowsPath(path);\n const isUNCPath = path.match(_UNC_REGEX);\n const isPathAbsolute = isAbsolute(path);\n const trailingSeparator = path[path.length - 1] === \"/\";\n path = normalizeString(path, !isPathAbsolute);\n if (path.length === 0) {\n if (isPathAbsolute) {\n return \"/\";\n }\n return trailingSeparator ? \"./\" : \".\";\n }\n if (trailingSeparator) {\n path += \"/\";\n }\n if (_DRIVE_LETTER_RE.test(path)) {\n path += \"/\";\n }\n if (isUNCPath) {\n if (!isPathAbsolute) {\n return `//./${path}`;\n }\n return `//${path}`;\n }\n return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;\n};\nconst join = function(...arguments_) {\n if (arguments_.length === 0) {\n return \".\";\n }\n let joined;\n for (const argument of arguments_) {\n if (argument && argument.length > 0) {\n if (joined === void 0) {\n joined = argument;\n } else {\n joined += `/${argument}`;\n }\n }\n }\n if (joined === void 0) {\n return \".\";\n }\n return normalize(joined.replace(/\\/\\/+/g, \"/\"));\n};\nfunction cwd() {\n if (typeof process !== \"undefined\" && typeof process.cwd === \"function\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\nconst toNamespacedPath = function(p) {\n return normalizeWindowsPath(p);\n};\nconst _EXTNAME_RE = /.(\\.[^./]+)$/;\nconst extname = function(p) {\n const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));\n return match && match[1] || \"\";\n};\nconst relative = function(from, to) {\n const _from = resolve(from).replace(_ROOT_FOLDER_RE, \"$1\").split(\"/\");\n const _to = resolve(to).replace(_ROOT_FOLDER_RE, \"$1\").split(\"/\");\n if (_to[0][1] === \":\" && _from[0][1] === \":\" && _from[0] !== _to[0]) {\n return _to.join(\"/\");\n }\n const _fromCopy = [..._from];\n for (const segment of _fromCopy) {\n if (_to[0] !== segment) {\n break;\n }\n _from.shift();\n _to.shift();\n }\n return [..._from.map(() => \"..\"), ..._to].join(\"/\");\n};\nconst dirname = function(p) {\n const segments = normalizeWindowsPath(p).replace(/\\/$/, \"\").split(\"/\").slice(0, -1);\n if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {\n segments[0] += \"/\";\n }\n return segments.join(\"/\") || (isAbsolute(p) ? \"/\" : \".\");\n};\nconst format = function(p) {\n const segments = [p.root, p.dir, p.base ?? p.name + p.ext].filter(Boolean);\n return normalizeWindowsPath(\n p.root ? resolve(...segments) : segments.join(\"/\")\n );\n};\nconst basename = function(p, extension) {\n const lastSegment = normalizeWindowsPath(p).split(\"/\").pop();\n return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;\n};\nconst parse = function(p) {\n const root = normalizeWindowsPath(p).split(\"/\").shift() || \"/\";\n const base = basename(p);\n const extension = extname(base);\n return {\n root,\n dir: dirname(p),\n base,\n ext: extension,\n name: base.slice(0, base.length - extension.length)\n };\n};\n\nconst path = {\n __proto__: null,\n basename: basename,\n delimiter: delimiter,\n dirname: dirname,\n extname: extname,\n format: format,\n isAbsolute: isAbsolute,\n join: join,\n normalize: normalize,\n normalizeString: normalizeString,\n parse: parse,\n relative: relative,\n resolve: resolve,\n sep: sep,\n toNamespacedPath: toNamespacedPath\n};\n\nexport { normalize as a, normalizeString as b, relative as c, delimiter as d, extname as e, dirname as f, format as g, basename as h, isAbsolute as i, join as j, parse as k, normalizeWindowsPath as n, path as p, resolve as r, sep as s, toNamespacedPath as t };\n","import { processError } from '@vitest/utils/error';\nimport { relative } from 'pathe';\nimport { toArray } from '@vitest/utils';\n\nfunction createChainable(keys, fn) {\n function create(context) {\n const chain2 = function(...args) {\n return fn.apply(context, args);\n };\n Object.assign(chain2, fn);\n chain2.withContext = () => chain2.bind(context);\n chain2.setContext = (key, value) => {\n context[key] = value;\n };\n chain2.mergeContext = (ctx) => {\n Object.assign(context, ctx);\n };\n for (const key of keys) {\n Object.defineProperty(chain2, key, {\n get() {\n return create({ ...context, [key]: true });\n }\n });\n }\n return chain2;\n }\n const chain = create({});\n chain.fn = fn;\n return chain;\n}\n\nfunction interpretTaskModes(suite, namePattern, onlyMode, parentIsOnly, allowOnly) {\n const suiteIsOnly = parentIsOnly || suite.mode === \"only\";\n suite.tasks.forEach((t) => {\n const includeTask = suiteIsOnly || t.mode === \"only\";\n if (onlyMode) {\n if (t.type === \"suite\" && (includeTask || someTasksAreOnly(t))) {\n if (t.mode === \"only\") {\n checkAllowOnly(t, allowOnly);\n t.mode = \"run\";\n }\n } else if (t.mode === \"run\" && !includeTask) {\n t.mode = \"skip\";\n } else if (t.mode === \"only\") {\n checkAllowOnly(t, allowOnly);\n t.mode = \"run\";\n }\n }\n if (t.type === \"test\") {\n if (namePattern && !getTaskFullName(t).match(namePattern)) {\n t.mode = \"skip\";\n }\n } else if (t.type === \"suite\") {\n if (t.mode === \"skip\") {\n skipAllTasks(t);\n } else {\n interpretTaskModes(t, namePattern, onlyMode, includeTask, allowOnly);\n }\n }\n });\n if (suite.mode === \"run\") {\n if (suite.tasks.length && suite.tasks.every((i) => i.mode !== \"run\")) {\n suite.mode = \"skip\";\n }\n }\n}\nfunction getTaskFullName(task) {\n return `${task.suite ? `${getTaskFullName(task.suite)} ` : \"\"}${task.name}`;\n}\nfunction someTasksAreOnly(suite) {\n return suite.tasks.some(\n (t) => t.mode === \"only\" || t.type === \"suite\" && someTasksAreOnly(t)\n );\n}\nfunction skipAllTasks(suite) {\n suite.tasks.forEach((t) => {\n if (t.mode === \"run\") {\n t.mode = \"skip\";\n if (t.type === \"suite\") {\n skipAllTasks(t);\n }\n }\n });\n}\nfunction checkAllowOnly(task, allowOnly) {\n if (allowOnly) {\n return;\n }\n const error = processError(\n new Error(\n \"[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error\"\n )\n );\n task.result = {\n state: \"fail\",\n errors: [error]\n };\n}\nfunction generateHash(str) {\n let hash = 0;\n if (str.length === 0) {\n return `${hash}`;\n }\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i);\n hash = (hash << 5) - hash + char;\n hash = hash & hash;\n }\n return `${hash}`;\n}\nfunction calculateSuiteHash(parent) {\n parent.tasks.forEach((t, idx) => {\n t.id = `${parent.id}_${idx}`;\n if (t.type === \"suite\") {\n calculateSuiteHash(t);\n }\n });\n}\nfunction createFileTask(filepath, root, projectName, pool) {\n const path = relative(root, filepath);\n const file = {\n id: generateHash(`${path}${projectName || \"\"}`),\n name: path,\n type: \"suite\",\n mode: \"run\",\n filepath,\n tasks: [],\n meta: /* @__PURE__ */ Object.create(null),\n projectName,\n file: void 0,\n pool\n };\n file.file = file;\n return file;\n}\n\nfunction limitConcurrency(concurrency = Infinity) {\n let count = 0;\n let head;\n let tail;\n const finish = () => {\n count--;\n if (head) {\n head[0]();\n head = head[1];\n tail = head && tail;\n }\n };\n return (func, ...args) => {\n return new Promise((resolve) => {\n if (count++ < concurrency) {\n resolve();\n } else if (tail) {\n tail = tail[1] = [resolve];\n } else {\n head = tail = [resolve];\n }\n }).then(() => {\n return func(...args);\n }).finally(finish);\n };\n}\n\nfunction partitionSuiteChildren(suite) {\n let tasksGroup = [];\n const tasksGroups = [];\n for (const c of suite.tasks) {\n if (tasksGroup.length === 0 || c.concurrent === tasksGroup[0].concurrent) {\n tasksGroup.push(c);\n } else {\n tasksGroups.push(tasksGroup);\n tasksGroup = [c];\n }\n }\n if (tasksGroup.length > 0) {\n tasksGroups.push(tasksGroup);\n }\n return tasksGroups;\n}\n\nfunction isAtomTest(s) {\n return s.type === \"test\" || s.type === \"custom\";\n}\nfunction getTests(suite) {\n const tests = [];\n const arraySuites = toArray(suite);\n for (const s of arraySuites) {\n if (isAtomTest(s)) {\n tests.push(s);\n } else {\n for (const task of s.tasks) {\n if (isAtomTest(task)) {\n tests.push(task);\n } else {\n const taskTests = getTests(task);\n for (const test of taskTests) {\n tests.push(test);\n }\n }\n }\n }\n }\n return tests;\n}\nfunction getTasks(tasks = []) {\n return toArray(tasks).flatMap(\n (s) => isAtomTest(s) ? [s] : [s, ...getTasks(s.tasks)]\n );\n}\nfunction getSuites(suite) {\n return toArray(suite).flatMap(\n (s) => s.type === \"suite\" ? [s, ...getSuites(s.tasks)] : []\n );\n}\nfunction hasTests(suite) {\n return toArray(suite).some(\n (s) => s.tasks.some((c) => isAtomTest(c) || hasTests(c))\n );\n}\nfunction hasFailed(suite) {\n return toArray(suite).some(\n (s) => {\n var _a;\n return ((_a = s.result) == null ? void 0 : _a.state) === \"fail\" || s.type === \"suite\" && hasFailed(s.tasks);\n }\n );\n}\nfunction getNames(task) {\n const names = [task.name];\n let current = task;\n while (current == null ? void 0 : current.suite) {\n current = current.suite;\n if (current == null ? void 0 : current.name) {\n names.unshift(current.name);\n }\n }\n if (current !== task.file) {\n names.unshift(task.file.name);\n }\n return names;\n}\nfunction getFullName(task, separator = \" > \") {\n return getNames(task).join(separator);\n}\nfunction getTestName(task, separator = \" > \") {\n return getNames(task).slice(1).join(separator);\n}\n\nexport { calculateSuiteHash as a, createFileTask as b, createChainable as c, getFullName as d, getNames as e, getSuites as f, generateHash as g, getTasks as h, interpretTaskModes as i, getTestName as j, getTests as k, limitConcurrency as l, hasFailed as m, hasTests as n, isAtomTest as o, partitionSuiteChildren as p, someTasksAreOnly as s };\n","import { getSafeTimers, isObject, createDefer, isNegativeNaN, format, objDisplay, objectAttr, toArray, assertTypes, shuffle } from '@vitest/utils';\nimport { parseSingleStack } from '@vitest/utils/source-map';\nimport { c as createChainable, b as createFileTask, a as calculateSuiteHash, s as someTasksAreOnly, i as interpretTaskModes, l as limitConcurrency, p as partitionSuiteChildren, n as hasTests, m as hasFailed } from './chunk-tasks.js';\nimport { processError } from '@vitest/utils/error';\nexport { processError } from '@vitest/utils/error';\nimport 'pathe';\n\nclass PendingError extends Error {\n constructor(message, task) {\n super(message);\n this.message = message;\n this.taskId = task.id;\n }\n code = \"VITEST_PENDING\";\n taskId;\n}\n\nconst collectorContext = {\n tasks: [],\n currentSuite: null\n};\nfunction collectTask(task) {\n var _a;\n (_a = collectorContext.currentSuite) == null ? void 0 : _a.tasks.push(task);\n}\nasync function runWithSuite(suite, fn) {\n const prev = collectorContext.currentSuite;\n collectorContext.currentSuite = suite;\n await fn();\n collectorContext.currentSuite = prev;\n}\nfunction withTimeout(fn, timeout, isHook = false) {\n if (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) {\n return fn;\n }\n const { setTimeout, clearTimeout } = getSafeTimers();\n return function runWithTimeout(...args) {\n return Promise.race([\n fn(...args),\n new Promise((resolve, reject) => {\n var _a;\n const timer = setTimeout(() => {\n clearTimeout(timer);\n reject(new Error(makeTimeoutMsg(isHook, timeout)));\n }, timeout);\n (_a = timer.unref) == null ? void 0 : _a.call(timer);\n })\n ]);\n };\n}\nfunction createTestContext(test, runner) {\n var _a;\n const context = function() {\n throw new Error(\"done() callback is deprecated, use promise instead\");\n };\n context.task = test;\n context.skip = () => {\n test.pending = true;\n throw new PendingError(\"test is skipped; abort execution\", test);\n };\n context.onTestFailed = (fn) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(fn);\n };\n context.onTestFinished = (fn) => {\n test.onFinished || (test.onFinished = []);\n test.onFinished.push(fn);\n };\n return ((_a = runner.extendTaskContext) == null ? void 0 : _a.call(runner, context)) || context;\n}\nfunction makeTimeoutMsg(isHook, timeout) {\n return `${isHook ? \"Hook\" : \"Test\"} timed out in ${timeout}ms.\nIf this is a long-running ${isHook ? \"hook\" : \"test\"}, pass a timeout value as the last argument or configure it globally with \"${isHook ? \"hookTimeout\" : \"testTimeout\"}\".`;\n}\n\nconst fnMap = /* @__PURE__ */ new WeakMap();\nconst fixtureMap = /* @__PURE__ */ new WeakMap();\nconst hooksMap = /* @__PURE__ */ new WeakMap();\nfunction setFn(key, fn) {\n fnMap.set(key, fn);\n}\nfunction getFn(key) {\n return fnMap.get(key);\n}\nfunction setFixture(key, fixture) {\n fixtureMap.set(key, fixture);\n}\nfunction getFixture(key) {\n return fixtureMap.get(key);\n}\nfunction setHooks(key, hooks) {\n hooksMap.set(key, hooks);\n}\nfunction getHooks(key) {\n return hooksMap.get(key);\n}\n\nfunction mergeContextFixtures(fixtures, context = {}) {\n const fixtureOptionKeys = [\"auto\"];\n const fixtureArray = Object.entries(fixtures).map(\n ([prop, value]) => {\n const fixtureItem = { value };\n if (Array.isArray(value) && value.length >= 2 && isObject(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) {\n Object.assign(fixtureItem, value[1]);\n fixtureItem.value = value[0];\n }\n fixtureItem.prop = prop;\n fixtureItem.isFn = typeof fixtureItem.value === \"function\";\n return fixtureItem;\n }\n );\n if (Array.isArray(context.fixtures)) {\n context.fixtures = context.fixtures.concat(fixtureArray);\n } else {\n context.fixtures = fixtureArray;\n }\n fixtureArray.forEach((fixture) => {\n if (fixture.isFn) {\n const usedProps = getUsedProps(fixture.value);\n if (usedProps.length) {\n fixture.deps = context.fixtures.filter(\n ({ prop }) => prop !== fixture.prop && usedProps.includes(prop)\n );\n }\n }\n });\n return context;\n}\nconst fixtureValueMaps = /* @__PURE__ */ new Map();\nconst cleanupFnArrayMap = /* @__PURE__ */ new Map();\nasync function callFixtureCleanup(context) {\n const cleanupFnArray = cleanupFnArrayMap.get(context) ?? [];\n for (const cleanup of cleanupFnArray.reverse()) {\n await cleanup();\n }\n cleanupFnArrayMap.delete(context);\n}\nfunction withFixtures(fn, testContext) {\n return (hookContext) => {\n const context = hookContext || testContext;\n if (!context) {\n return fn({});\n }\n const fixtures = getFixture(context);\n if (!(fixtures == null ? void 0 : fixtures.length)) {\n return fn(context);\n }\n const usedProps = getUsedProps(fn);\n const hasAutoFixture = fixtures.some(({ auto }) => auto);\n if (!usedProps.length && !hasAutoFixture) {\n return fn(context);\n }\n if (!fixtureValueMaps.get(context)) {\n fixtureValueMaps.set(context, /* @__PURE__ */ new Map());\n }\n const fixtureValueMap = fixtureValueMaps.get(context);\n if (!cleanupFnArrayMap.has(context)) {\n cleanupFnArrayMap.set(context, []);\n }\n const cleanupFnArray = cleanupFnArrayMap.get(context);\n const usedFixtures = fixtures.filter(\n ({ prop, auto }) => auto || usedProps.includes(prop)\n );\n const pendingFixtures = resolveDeps(usedFixtures);\n if (!pendingFixtures.length) {\n return fn(context);\n }\n async function resolveFixtures() {\n for (const fixture of pendingFixtures) {\n if (fixtureValueMap.has(fixture)) {\n continue;\n }\n const resolvedValue = fixture.isFn ? await resolveFixtureFunction(fixture.value, context, cleanupFnArray) : fixture.value;\n context[fixture.prop] = resolvedValue;\n fixtureValueMap.set(fixture, resolvedValue);\n cleanupFnArray.unshift(() => {\n fixtureValueMap.delete(fixture);\n });\n }\n }\n return resolveFixtures().then(() => fn(context));\n };\n}\nasync function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {\n const useFnArgPromise = createDefer();\n let isUseFnArgResolved = false;\n const fixtureReturn = fixtureFn(context, async (useFnArg) => {\n isUseFnArgResolved = true;\n useFnArgPromise.resolve(useFnArg);\n const useReturnPromise = createDefer();\n cleanupFnArray.push(async () => {\n useReturnPromise.resolve();\n await fixtureReturn;\n });\n await useReturnPromise;\n }).catch((e) => {\n if (!isUseFnArgResolved) {\n useFnArgPromise.reject(e);\n return;\n }\n throw e;\n });\n return useFnArgPromise;\n}\nfunction resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtures = []) {\n fixtures.forEach((fixture) => {\n if (pendingFixtures.includes(fixture)) {\n return;\n }\n if (!fixture.isFn || !fixture.deps) {\n pendingFixtures.push(fixture);\n return;\n }\n if (depSet.has(fixture)) {\n throw new Error(\n `Circular fixture dependency detected: ${fixture.prop} <- ${[...depSet].reverse().map((d) => d.prop).join(\" <- \")}`\n );\n }\n depSet.add(fixture);\n resolveDeps(fixture.deps, depSet, pendingFixtures);\n pendingFixtures.push(fixture);\n depSet.clear();\n });\n return pendingFixtures;\n}\nfunction getUsedProps(fn) {\n let fnString = fn.toString();\n if (/__async\\(this, (?:null|arguments|\\[[_0-9, ]*\\]), function\\*/.test(fnString)) {\n fnString = fnString.split(\"__async(this,\")[1];\n }\n const match = fnString.match(/[^(]*\\(([^)]*)/);\n if (!match) {\n return [];\n }\n const args = splitByComma(match[1]);\n if (!args.length) {\n return [];\n }\n let first = args[0];\n if (\"__VITEST_FIXTURE_INDEX__\" in fn) {\n first = args[fn.__VITEST_FIXTURE_INDEX__];\n if (!first) {\n return [];\n }\n }\n if (!(first.startsWith(\"{\") && first.endsWith(\"}\"))) {\n throw new Error(\n `The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received \"${first}\".`\n );\n }\n const _first = first.slice(1, -1).replace(/\\s/g, \"\");\n const props = splitByComma(_first).map((prop) => {\n return prop.replace(/:.*|=.*/g, \"\");\n });\n const last = props.at(-1);\n if (last && last.startsWith(\"...\")) {\n throw new Error(\n `Rest parameters are not supported in fixtures, received \"${last}\".`\n );\n }\n return props;\n}\nfunction splitByComma(s) {\n const result = [];\n const stack = [];\n let start = 0;\n for (let i = 0; i < s.length; i++) {\n if (s[i] === \"{\" || s[i] === \"[\") {\n stack.push(s[i] === \"{\" ? \"}\" : \"]\");\n } else if (s[i] === stack[stack.length - 1]) {\n stack.pop();\n } else if (!stack.length && s[i] === \",\") {\n const token = s.substring(start, i).trim();\n if (token) {\n result.push(token);\n }\n start = i + 1;\n }\n }\n const lastToken = s.substring(start).trim();\n if (lastToken) {\n result.push(lastToken);\n }\n return result;\n}\n\nlet _test;\nfunction setCurrentTest(test) {\n _test = test;\n}\nfunction getCurrentTest() {\n return _test;\n}\n\nconst suite = createSuite();\nconst test = createTest(function(name, optionsOrFn, optionsOrTest) {\n if (getCurrentTest()) {\n throw new Error(\n 'Calling the test function inside another test function is not allowed. Please put it inside \"describe\" or \"suite\" so it can be properly collected.'\n );\n }\n getCurrentSuite().test.fn.call(\n this,\n formatName(name),\n optionsOrFn,\n optionsOrTest\n );\n});\nconst describe = suite;\nconst it = test;\nlet runner;\nlet defaultSuite;\nlet currentTestFilepath;\nfunction assert(condition, message) {\n if (!condition) {\n throw new Error(`Vitest failed to find ${message}. This is a bug in Vitest. Please, open an issue with reproduction.`);\n }\n}\nfunction getDefaultSuite() {\n assert(defaultSuite, \"the default suite\");\n return defaultSuite;\n}\nfunction getTestFilepath() {\n return currentTestFilepath;\n}\nfunction getRunner() {\n assert(runner, \"the runner\");\n return runner;\n}\nfunction createDefaultSuite(runner2) {\n const config = runner2.config.sequence;\n const api = config.shuffle ? suite.shuffle : suite;\n return api(\"\", { concurrent: config.concurrent }, () => {\n });\n}\nfunction clearCollectorContext(filepath, currentRunner) {\n if (!defaultSuite) {\n defaultSuite = createDefaultSuite(currentRunner);\n }\n runner = currentRunner;\n currentTestFilepath = filepath;\n collectorContext.tasks.length = 0;\n defaultSuite.clear();\n collectorContext.currentSuite = defaultSuite;\n}\nfunction getCurrentSuite() {\n const currentSuite = collectorContext.currentSuite || defaultSuite;\n assert(currentSuite, \"the current suite\");\n return currentSuite;\n}\nfunction createSuiteHooks() {\n return {\n beforeAll: [],\n afterAll: [],\n beforeEach: [],\n afterEach: []\n };\n}\nfunction parseArguments(optionsOrFn, optionsOrTest) {\n let options = {};\n let fn = () => {\n };\n if (typeof optionsOrTest === \"object\") {\n if (typeof optionsOrFn === \"object\") {\n throw new TypeError(\n \"Cannot use two objects as arguments. Please provide options and a function callback in that order.\"\n );\n }\n options = optionsOrTest;\n } else if (typeof optionsOrTest === \"number\") {\n options = { timeout: optionsOrTest };\n } else if (typeof optionsOrFn === \"object\") {\n options = optionsOrFn;\n }\n if (typeof optionsOrFn === \"function\") {\n if (typeof optionsOrTest === \"function\") {\n throw new TypeError(\n \"Cannot use two functions as arguments. Please use the second argument for options.\"\n );\n }\n fn = optionsOrFn;\n } else if (typeof optionsOrTest === \"function\") {\n fn = optionsOrTest;\n }\n return {\n options,\n handler: fn\n };\n}\nfunction createSuiteCollector(name, factory = () => {\n}, mode, shuffle, each, suiteOptions) {\n const tasks = [];\n const factoryQueue = [];\n let suite2;\n initSuite(true);\n const task = function(name2 = \"\", options = {}) {\n const task2 = {\n id: \"\",\n name: name2,\n suite: void 0,\n each: options.each,\n fails: options.fails,\n context: void 0,\n type: \"custom\",\n file: void 0,\n retry: options.retry ?? runner.config.retry,\n repeats: options.repeats,\n mode: options.only ? \"only\" : options.skip ? \"skip\" : options.todo ? \"todo\" : \"run\",\n meta: options.meta ?? /* @__PURE__ */ Object.create(null)\n };\n const handler = options.handler;\n if (options.concurrent || !options.sequential && runner.config.sequence.concurrent) {\n task2.concurrent = true;\n }\n if (shuffle) {\n task2.shuffle = true;\n }\n const context = createTestContext(task2, runner);\n Object.defineProperty(task2, \"context\", {\n value: context,\n enumerable: false\n });\n setFixture(context, options.fixtures);\n if (handler) {\n setFn(\n task2,\n withTimeout(\n withAwaitAsyncAssetions(withFixtures(handler, context), task2),\n (options == null ? void 0 : options.timeout) ?? runner.config.testTimeout\n )\n );\n }\n if (runner.config.includeTaskLocation) {\n const limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 15;\n const error = new Error(\"stacktrace\").stack;\n Error.stackTraceLimit = limit;\n const stack = findTestFileStackTrace(error, task2.each ?? false);\n if (stack) {\n task2.location = stack;\n }\n }\n tasks.push(task2);\n return task2;\n };\n const test2 = createTest(function(name2, optionsOrFn, optionsOrTest) {\n let { options, handler } = parseArguments(optionsOrFn, optionsOrTest);\n if (typeof suiteOptions === \"object\") {\n options = Object.assign({}, suiteOptions, options);\n }\n options.concurrent = this.concurrent || !this.sequential && (options == null ? void 0 : options.concurrent);\n options.sequential = this.sequential || !this.concurrent && (options == null ? void 0 : options.sequential);\n const test3 = task(formatName(name2), {\n ...this,\n ...options,\n handler\n });\n test3.type = \"test\";\n });\n const collector = {\n type: \"collector\",\n name,\n mode,\n options: suiteOptions,\n test: test2,\n tasks,\n collect,\n task,\n clear,\n on: addHook\n };\n function addHook(name2, ...fn) {\n getHooks(suite2)[name2].push(...fn);\n }\n function initSuite(includeLocation) {\n if (typeof suiteOptions === \"number\") {\n suiteOptions = { timeout: suiteOptions };\n }\n suite2 = {\n id: \"\",\n type: \"suite\",\n name,\n mode,\n each,\n file: void 0,\n shuffle,\n tasks: [],\n meta: /* @__PURE__ */ Object.create(null),\n concurrent: suiteOptions == null ? void 0 : suiteOptions.concurrent\n };\n if (runner && includeLocation && runner.config.includeTaskLocation) {\n const limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 15;\n const error = new Error(\"stacktrace\").stack;\n Error.stackTraceLimit = limit;\n const stack = findTestFileStackTrace(error, suite2.each ?? false);\n if (stack) {\n suite2.location = stack;\n }\n }\n setHooks(suite2, createSuiteHooks());\n }\n function clear() {\n tasks.length = 0;\n factoryQueue.length = 0;\n initSuite(false);\n }\n async function collect(file) {\n if (!file) {\n throw new TypeError(\"File is required to collect tasks.\");\n }\n factoryQueue.length = 0;\n if (factory) {\n await runWithSuite(collector, () => factory(test2));\n }\n const allChildren = [];\n for (const i of [...factoryQueue, ...tasks]) {\n allChildren.push(i.type === \"collector\" ? await i.collect(file) : i);\n }\n suite2.file = file;\n suite2.tasks = allChildren;\n allChildren.forEach((task2) => {\n task2.suite = suite2;\n task2.file = file;\n });\n return suite2;\n }\n collectTask(collector);\n return collector;\n}\nfunction withAwaitAsyncAssetions(fn, task) {\n return async (...args) => {\n await fn(...args);\n if (task.promises) {\n const result = await Promise.allSettled(task.promises);\n const errors = result.map((r) => r.status === \"rejected\" ? r.reason : void 0).filter(Boolean);\n if (errors.length) {\n throw errors;\n }\n }\n };\n}\nfunction createSuite() {\n function suiteFn(name, factoryOrOptions, optionsOrFactory = {}) {\n const mode = this.only ? \"only\" : this.skip ? \"skip\" : this.todo ? \"todo\" : \"run\";\n const currentSuite = collectorContext.currentSuite || defaultSuite;\n let { options, handler: factory } = parseArguments(\n factoryOrOptions,\n optionsOrFactory\n );\n const isConcurrentSpecified = options.concurrent || this.concurrent || options.sequential === false;\n const isSequentialSpecified = options.sequential || this.sequential || options.concurrent === false;\n if (currentSuite == null ? void 0 : currentSuite.options) {\n options = { ...currentSuite.options, ...options };\n }\n const isConcurrent = isConcurrentSpecified || options.concurrent && !isSequentialSpecified;\n const isSequential = isSequentialSpecified || options.sequential && !isConcurrentSpecified;\n options.concurrent = isConcurrent && !isSequential;\n options.sequential = isSequential && !isConcurrent;\n return createSuiteCollector(\n formatName(name),\n factory,\n mode,\n this.shuffle,\n this.each,\n options\n );\n }\n suiteFn.each = function(cases, ...args) {\n const suite2 = this.withContext();\n this.setContext(\"each\", true);\n if (Array.isArray(cases) && args.length) {\n cases = formatTemplateString(cases, args);\n }\n return (name, optionsOrFn, fnOrOptions) => {\n const _name = formatName(name);\n const arrayOnlyCases = cases.every(Array.isArray);\n const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n const fnFirst = typeof optionsOrFn === \"function\";\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n if (fnFirst) {\n if (arrayOnlyCases) {\n suite2(\n formatTitle(_name, items, idx),\n () => handler(...items),\n options\n );\n } else {\n suite2(formatTitle(_name, items, idx), () => handler(i), options);\n }\n } else {\n if (arrayOnlyCases) {\n suite2(formatTitle(_name, items, idx), options, () => handler(...items));\n } else {\n suite2(formatTitle(_name, items, idx), options, () => handler(i));\n }\n }\n });\n this.setContext(\"each\", void 0);\n };\n };\n suiteFn.skipIf = (condition) => condition ? suite.skip : suite;\n suiteFn.runIf = (condition) => condition ? suite : suite.skip;\n return createChainable(\n [\"concurrent\", \"sequential\", \"shuffle\", \"skip\", \"only\", \"todo\"],\n suiteFn\n );\n}\nfunction createTaskCollector(fn, context) {\n const taskFn = fn;\n taskFn.each = function(cases, ...args) {\n const test2 = this.withContext();\n this.setContext(\"each\", true);\n if (Array.isArray(cases) && args.length) {\n cases = formatTemplateString(cases, args);\n }\n return (name, optionsOrFn, fnOrOptions) => {\n const _name = formatName(name);\n const arrayOnlyCases = cases.every(Array.isArray);\n const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n const fnFirst = typeof optionsOrFn === \"function\";\n cases.forEach((i, idx) => {\n const items = Array.isArray(i) ? i : [i];\n if (fnFirst) {\n if (arrayOnlyCases) {\n test2(\n formatTitle(_name, items, idx),\n () => handler(...items),\n options\n );\n } else {\n test2(formatTitle(_name, items, idx), () => handler(i), options);\n }\n } else {\n if (arrayOnlyCases) {\n test2(formatTitle(_name, items, idx), options, () => handler(...items));\n } else {\n test2(formatTitle(_name, items, idx), options, () => handler(i));\n }\n }\n });\n this.setContext(\"each\", void 0);\n };\n };\n taskFn.for = function(cases, ...args) {\n const test2 = this.withContext();\n if (Array.isArray(cases) && args.length) {\n cases = formatTemplateString(cases, args);\n }\n return (name, optionsOrFn, fnOrOptions) => {\n const _name = formatName(name);\n const { options, handler } = parseArguments(optionsOrFn, fnOrOptions);\n cases.forEach((item, idx) => {\n const handlerWrapper = (ctx) => handler(item, ctx);\n handlerWrapper.__VITEST_FIXTURE_INDEX__ = 1;\n handlerWrapper.toString = () => handler.toString();\n test2(formatTitle(_name, toArray(item), idx), options, handlerWrapper);\n });\n };\n };\n taskFn.skipIf = function(condition) {\n return condition ? this.skip : this;\n };\n taskFn.runIf = function(condition) {\n return condition ? this : this.skip;\n };\n taskFn.extend = function(fixtures) {\n const _context = mergeContextFixtures(fixtures, context);\n return createTest(function fn2(name, optionsOrFn, optionsOrTest) {\n getCurrentSuite().test.fn.call(\n this,\n formatName(name),\n optionsOrFn,\n optionsOrTest\n );\n }, _context);\n };\n const _test = createChainable(\n [\"concurrent\", \"sequential\", \"skip\", \"only\", \"todo\", \"fails\"],\n taskFn\n );\n if (context) {\n _test.mergeContext(context);\n }\n return _test;\n}\nfunction createTest(fn, context) {\n return createTaskCollector(fn, context);\n}\nfunction formatName(name) {\n return typeof name === \"string\" ? name : name instanceof Function ? name.name || \"<anonymous>\" : String(name);\n}\nfunction formatTitle(template, items, idx) {\n if (template.includes(\"%#\")) {\n template = template.replace(/%%/g, \"__vitest_escaped_%__\").replace(/%#/g, `${idx}`).replace(/__vitest_escaped_%__/g, \"%%\");\n }\n const count = template.split(\"%\").length - 1;\n if (template.includes(\"%f\")) {\n const placeholders = template.match(/%f/g) || [];\n placeholders.forEach((_, i) => {\n if (isNegativeNaN(items[i]) || Object.is(items[i], -0)) {\n let occurrence = 0;\n template = template.replace(/%f/g, (match) => {\n occurrence++;\n return occurrence === i + 1 ? \"-%f\" : match;\n });\n }\n });\n }\n let formatted = format(template, ...items.slice(0, count));\n if (isObject(items[0])) {\n formatted = formatted.replace(\n /\\$([$\\w.]+)/g,\n // https://github.com/chaijs/chai/pull/1490\n (_, key) => {\n var _a, _b;\n return objDisplay(objectAttr(items[0], key), {\n truncate: (_b = (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig) == null ? void 0 : _b.truncateThreshold\n });\n }\n );\n }\n return formatted;\n}\nfunction formatTemplateString(cases, args) {\n const header = cases.join(\"\").trim().replace(/ /g, \"\").split(\"\\n\").map((i) => i.split(\"|\"))[0];\n const res = [];\n for (let i = 0; i < Math.floor(args.length / header.length); i++) {\n const oneCase = {};\n for (let j = 0; j < header.length; j++) {\n oneCase[header[j]] = args[i * header.length + j];\n }\n res.push(oneCase);\n }\n return res;\n}\nfunction findTestFileStackTrace(error, each) {\n const lines = error.split(\"\\n\").slice(1);\n for (const line of lines) {\n const stack = parseSingleStack(line);\n if (stack && stack.file === getTestFilepath()) {\n return {\n line: stack.line,\n /**\n * test.each([1, 2])('name')\n * ^ leads here, but should\n * ^ lead here\n * in source maps it's the same boundary, so it just points to the start of it\n */\n column: each ? stack.column + 1 : stack.column\n };\n }\n }\n}\n\nfunction getDefaultHookTimeout() {\n return getRunner().config.hookTimeout;\n}\nfunction beforeAll(fn, timeout) {\n assertTypes(fn, '\"beforeAll\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"beforeAll\",\n withTimeout(fn, timeout ?? getDefaultHookTimeout(), true)\n );\n}\nfunction afterAll(fn, timeout) {\n assertTypes(fn, '\"afterAll\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"afterAll\",\n withTimeout(fn, timeout ?? getDefaultHookTimeout(), true)\n );\n}\nfunction beforeEach(fn, timeout) {\n assertTypes(fn, '\"beforeEach\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"beforeEach\",\n withTimeout(withFixtures(fn), timeout ?? getDefaultHookTimeout(), true)\n );\n}\nfunction afterEach(fn, timeout) {\n assertTypes(fn, '\"afterEach\" callback', [\"function\"]);\n return getCurrentSuite().on(\n \"afterEach\",\n withTimeout(withFixtures(fn), timeout ?? getDefaultHookTimeout(), true)\n );\n}\nconst onTestFailed = createTestHook(\n \"onTestFailed\",\n (test, handler, timeout) => {\n test.onFailed || (test.onFailed = []);\n test.onFailed.push(\n withTimeout(handler, timeout ?? getDefaultHookTimeout(), true)\n );\n }\n);\nconst onTestFinished = createTestHook(\n \"onTestFinished\",\n (test, handler, timeout) => {\n test.onFinished || (test.onFinished = []);\n test.onFinished.push(\n withTimeout(handler, timeout ?? getDefaultHookTimeout(), true)\n );\n }\n);\nfunction createTestHook(name, handler) {\n return (fn, timeout) => {\n assertTypes(fn, `\"${name}\" callback`, [\"function\"]);\n const current = getCurrentTest();\n if (!current) {\n throw new Error(`Hook ${name}() can only be called inside a test`);\n }\n return handler(current, fn, timeout);\n };\n}\n\nasync function runSetupFiles(config, files, runner) {\n if (config.sequence.setupFiles === \"parallel\") {\n await Promise.all(\n files.map(async (fsPath) => {\n await runner.importFile(fsPath, \"setup\");\n })\n );\n } else {\n for (const fsPath of files) {\n await runner.importFile(fsPath, \"setup\");\n }\n }\n}\n\nconst now$1 = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;\nasync function collectTests(paths, runner) {\n var _a;\n const files = [];\n const config = runner.config;\n for (const filepath of paths) {\n const file = createFileTask(filepath, config.root, config.name, runner.pool);\n (_a = runner.onCollectStart) == null ? void 0 : _a.call(runner, file);\n clearCollectorContext(filepath, runner);\n try {\n const setupFiles = toArray(config.setupFiles);\n if (setupFiles.length) {\n const setupStart = now$1();\n await runSetupFiles(config, setupFiles, runner);\n const setupEnd = now$1();\n file.setupDuration = setupEnd - setupStart;\n } else {\n file.setupDuration = 0;\n }\n const collectStart = now$1();\n await runner.importFile(filepath, \"collect\");\n const defaultTasks = await getDefaultSuite().collect(file);\n const fileHooks = createSuiteHooks();\n mergeHooks(fileHooks, getHooks(defaultTasks));\n for (const c of [...defaultTasks.tasks, ...collectorContext.tasks]) {\n if (c.type === \"test\" || c.type === \"custom\" || c.type === \"suite\") {\n file.tasks.push(c);\n } else if (c.type === \"collector\") {\n const suite = await c.collect(file);\n if (suite.name || suite.tasks.length) {\n mergeHooks(fileHooks, getHooks(suite));\n file.tasks.push(suite);\n }\n } else {\n c;\n }\n }\n setHooks(file, fileHooks);\n file.collectDuration = now$1() - collectStart;\n } catch (e) {\n const error = processError(e);\n file.result = {\n state: \"fail\",\n errors: [error]\n };\n }\n calculateSuiteHash(file);\n file.tasks.forEach((task) => {\n var _a2;\n if (((_a2 = task.suite) == null ? void 0 : _a2.id) === \"\") {\n delete task.suite;\n }\n });\n const hasOnlyTasks = someTasksAreOnly(file);\n interpretTaskModes(\n file,\n config.testNamePattern,\n hasOnlyTasks,\n false,\n config.allowOnly\n );\n files.push(file);\n }\n return files;\n}\nfunction mergeHooks(baseHooks, hooks) {\n for (const _key in hooks) {\n const key = _key;\n baseHooks[key].push(...hooks[key]);\n }\n return baseHooks;\n}\n\nconst now = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;\nconst unixNow = Date.now;\nfunction updateSuiteHookState(suite, name, state, runner) {\n var _a;\n if (!suite.result) {\n suite.result = { state: \"run\" };\n }\n if (!((_a = suite.result) == null ? void 0 : _a.hooks)) {\n suite.result.hooks = {};\n }\n const suiteHooks = suite.result.hooks;\n if (suiteHooks) {\n suiteHooks[name] = state;\n updateTask(suite, runner);\n }\n}\nfunction getSuiteHooks(suite, name, sequence) {\n const hooks = getHooks(suite)[name];\n if (sequence === \"stack\" && (name === \"afterAll\" || name === \"afterEach\")) {\n return hooks.slice().reverse();\n }\n return hooks;\n}\nasync function callTestHooks(runner, task, hooks, sequence) {\n if (sequence === \"stack\") {\n hooks = hooks.slice().reverse();\n }\n if (sequence === \"parallel\") {\n try {\n await Promise.all(hooks.map((fn) => fn(task.result)));\n } catch (e) {\n failTask(task.result, e, runner.config.diffOptions);\n }\n } else {\n for (const fn of hooks) {\n try {\n await fn(task.result);\n } catch (e) {\n failTask(task.result, e, runner.config.diffOptions);\n }\n }\n }\n}\nasync function callSuiteHook(suite, currentTask, name, runner, args) {\n const sequence = runner.config.sequence.hooks;\n const callbacks = [];\n const parentSuite = \"filepath\" in suite ? null : suite.suite || suite.file;\n if (name === \"beforeEach\" && parentSuite) {\n callbacks.push(\n ...await callSuiteHook(parentSuite, currentTask, name, runner, args)\n );\n }\n updateSuiteHookState(currentTask, name, \"run\", runner);\n const hooks = getSuiteHooks(suite, name, sequence);\n if (sequence === \"parallel\") {\n callbacks.push(\n ...await Promise.all(hooks.map((hook) => hook(...args)))\n );\n } else {\n for (const hook of hooks) {\n callbacks.push(await hook(...args));\n }\n }\n updateSuiteHookState(currentTask, name, \"pass\", runner);\n if (name === \"afterEach\" && parentSuite) {\n callbacks.push(\n ...await callSuiteHook(parentSuite, currentTask, name, runner, args)\n );\n }\n return callbacks;\n}\nconst packs = /* @__PURE__ */ new Map();\nlet updateTimer;\nlet previousUpdate;\nfunction updateTask(task, runner) {\n packs.set(task.id, [task.result, task.meta]);\n const { clearTimeout, setTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n updateTimer = setTimeout(() => {\n previousUpdate = sendTasksUpdate(runner);\n }, 10);\n}\nasync function sendTasksUpdate(runner) {\n var _a;\n const { clearTimeout } = getSafeTimers();\n clearTimeout(updateTimer);\n await previousUpdate;\n if (packs.size) {\n const taskPacks = Array.from(packs).map(([id, task]) => {\n return [id, task[0], task[1]];\n });\n const p = (_a = runner.onTaskUpdate) == null ? void 0 : _a.call(runner, taskPacks);\n packs.clear();\n return p;\n }\n}\nasync function callCleanupHooks(cleanups) {\n await Promise.all(\n cleanups.map(async (fn) => {\n if (typeof fn !== \"function\") {\n return;\n }\n await fn();\n })\n );\n}\nasync function runTest(test, runner) {\n var _a, _b, _c, _d, _e, _f, _g;\n await ((_a = runner.onBeforeRunTask) == null ? void 0 : _a.call(runner, test));\n if (test.mode !== \"run\") {\n return;\n }\n if (((_b = test.result) == null ? void 0 : _b.state) === \"fail\") {\n updateTask(test, runner);\n return;\n }\n const start = now();\n test.result = {\n state: \"run\",\n startTime: unixNow(),\n retryCount: 0\n };\n updateTask(test, runner);\n setCurrentTest(test);\n const suite = test.suite || test.file;\n const repeats = test.repeats ?? 0;\n for (let repeatCount = 0; repeatCount <= repeats; repeatCount++) {\n const retry = test.retry ?? 0;\n for (let retryCount = 0; retryCount <= retry; retryCount++) {\n let beforeEachCleanups = [];\n try {\n await ((_c = runner.onBeforeTryTask) == null ? void 0 : _c.call(runner, test, {\n retry: retryCount,\n repeats: repeatCount\n }));\n test.result.repeatCount = repeatCount;\n beforeEachCleanups = await callSuiteHook(\n suite,\n test,\n \"beforeEach\",\n runner,\n [test.context, suite]\n );\n if (runner.runTask) {\n await runner.runTask(test);\n } else {\n const fn = getFn(test);\n if (!fn) {\n throw new Error(\n \"Test function is not found. Did you add it using `setFn`?\"\n );\n }\n await fn();\n }\n await ((_d = runner.onAfterTryTask) == null ? void 0 : _d.call(runner, test, {\n retry: retryCount,\n repeats: repeatCount\n }));\n if (test.result.state !== \"fail\") {\n if (!test.repeats) {\n test.result.state = \"pass\";\n } else if (test.repeats && retry === retryCount) {\n test.result.state = \"pass\";\n }\n }\n } catch (e) {\n failTask(test.result, e, runner.config.diffOptions);\n }\n if (test.pending || ((_e = test.result) == null ? void 0 : _e.state) === \"skip\") {\n test.mode = \"skip\";\n test.result = { state: \"skip\" };\n updateTask(test, runner);\n setCurrentTest(void 0);\n return;\n }\n try {\n await ((_f = runner.onTaskFinished) == null ? void 0 : _f.call(runner, test));\n } catch (e) {\n failTask(test.result, e, runner.config.diffOptions);\n }\n try {\n await callSuiteHook(suite, test, \"afterEach\", runner, [\n test.context,\n suite\n ]);\n await callCleanupHooks(beforeEachCleanups);\n await callFixtureCleanup(test.context);\n } catch (e) {\n failTask(test.result, e, runner.config.diffOptions);\n }\n await callTestHooks(runner, test, test.onFinished || [], \"stack\");\n if (test.result.state === \"fail\") {\n await callTestHooks(\n runner,\n test,\n test.onFailed || [],\n runner.config.sequence.hooks\n );\n }\n delete test.onFailed;\n delete test.onFinished;\n if (test.result.state === \"pass\") {\n break;\n }\n if (retryCount < retry) {\n test.result.state = \"run\";\n test.result.retryCount = (test.result.retryCount ?? 0) + 1;\n }\n updateTask(test, runner);\n }\n }\n if (test.fails) {\n if (test.result.state === \"pass\") {\n const error = processError(new Error(\"Expect test to fail\"));\n test.result.state = \"fail\";\n test.result.errors = [error];\n } else {\n test.result.state = \"pass\";\n test.result.errors = void 0;\n }\n }\n setCurrentTest(void 0);\n test.result.duration = now() - start;\n await ((_g = runner.onAfterRunTask) == null ? void 0 : _g.call(runner, test));\n updateTask(test, runner);\n}\nfunction failTask(result, err, diffOptions) {\n if (err instanceof PendingError) {\n result.state = \"skip\";\n return;\n }\n result.state = \"fail\";\n const errors = Array.isArray(err) ? err : [err];\n for (const e of errors) {\n const error = processError(e, diffOptions);\n result.errors ?? (result.errors = []);\n result.errors.push(error);\n }\n}\nfunction markTasksAsSkipped(suite, runner) {\n suite.tasks.forEach((t) => {\n t.mode = \"skip\";\n t.result = { ...t.result, state: \"skip\" };\n updateTask(t, runner);\n if (t.type === \"suite\") {\n markTasksAsSkipped(t, runner);\n }\n });\n}\nasync function runSuite(suite, runner) {\n var _a, _b, _c, _d;\n await ((_a = runner.onBeforeRunSuite) == null ? void 0 : _a.call(runner, suite));\n if (((_b = suite.result) == null ? void 0 : _b.state) === \"fail\") {\n markTasksAsSkipped(suite, runner);\n updateTask(suite, runner);\n return;\n }\n const start = now();\n suite.result = {\n state: \"run\",\n startTime: unixNow()\n };\n updateTask(suite, runner);\n let beforeAllCleanups = [];\n if (suite.mode === \"skip\") {\n suite.result.state = \"skip\";\n } else if (suite.mode === \"todo\") {\n suite.result.state = \"todo\";\n } else {\n try {\n try {\n beforeAllCleanups = await callSuiteHook(\n suite,\n suite,\n \"beforeAll\",\n runner,\n [suite]\n );\n } catch (e) {\n markTasksAsSkipped(suite, runner);\n throw e;\n }\n if (runner.runSuite) {\n await runner.runSuite(suite);\n } else {\n for (let tasksGroup of partitionSuiteChildren(suite)) {\n if (tasksGroup[0].concurrent === true) {\n await Promise.all(tasksGroup.map((c) => runSuiteChild(c, runner)));\n } else {\n const { sequence } = runner.config;\n if (sequence.shuffle || suite.shuffle) {\n const suites = tasksGroup.filter(\n (group) => group.type === \"suite\"\n );\n const tests = tasksGroup.filter((group) => group.type === \"test\");\n const groups = shuffle([suites, tests], sequence.seed);\n tasksGroup = groups.flatMap(\n (group) => shuffle(group, sequence.seed)\n );\n }\n for (const c of tasksGroup) {\n await runSuiteChild(c, runner);\n }\n }\n }\n }\n } catch (e) {\n failTask(suite.result, e, runner.config.diffOptions);\n }\n try {\n await callSuiteHook(suite, suite, \"afterAll\", runner, [suite]);\n await callCleanupHooks(beforeAllCleanups);\n } catch (e) {\n failTask(suite.result, e, runner.config.diffOptions);\n }\n if (suite.mode === \"run\") {\n if (!runner.config.passWithNoTests && !hasTests(suite)) {\n suite.result.state = \"fail\";\n if (!((_c = suite.result.errors) == null ? void 0 : _c.length)) {\n const error = processError(\n new Error(`No test found in suite ${suite.name}`)\n );\n suite.result.errors = [error];\n }\n } else if (hasFailed(suite)) {\n suite.result.state = \"fail\";\n } else {\n suite.result.state = \"pass\";\n }\n }\n updateTask(suite, runner);\n suite.result.duration = now() - start;\n await ((_d = runner.onAfterRunSuite) == null ? void 0 : _d.call(runner, suite));\n }\n}\nlet limitMaxConcurrency;\nasync function runSuiteChild(c, runner) {\n if (c.type === \"test\" || c.type === \"custom\") {\n return limitMaxConcurrency(() => runTest(c, runner));\n } else if (c.type === \"suite\") {\n return runSuite(c, runner);\n }\n}\nasync function runFiles(files, runner) {\n var _a, _b;\n limitMaxConcurrency ?? (limitMaxConcurrency = limitConcurrency(runner.config.maxConcurrency));\n for (const file of files) {\n if (!file.tasks.length && !runner.config.passWithNoTests) {\n if (!((_b = (_a = file.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.length)) {\n const error = processError(\n new Error(`No test suite found in file ${file.filepath}`)\n );\n file.result = {\n state: \"fail\",\n errors: [error]\n };\n }\n }\n await runSuite(file, runner);\n }\n}\nasync function startTests(paths, runner) {\n var _a, _b, _c, _d;\n await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));\n const files = await collectTests(paths, runner);\n await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files));\n await ((_c = runner.onBeforeRunFiles) == null ? void 0 : _c.call(runner, files));\n await runFiles(files, runner);\n await ((_d = runner.onAfterRunFiles) == null ? void 0 : _d.call(runner, files));\n await sendTasksUpdate(runner);\n return files;\n}\nasync function publicCollect(paths, runner) {\n var _a, _b;\n await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths));\n const files = await collectTests(paths, runner);\n await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files));\n return files;\n}\n\nexport { afterAll, afterEach, beforeAll, beforeEach, publicCollect as collectTests, createTaskCollector, describe, getCurrentSuite, getCurrentTest, getFn, getHooks, it, onTestFailed, onTestFinished, setFn, setHooks, startTests, suite, test, updateTask };\n","import { getSafeTimers } from '@vitest/utils';\n\nconst NAME_WORKER_STATE = \"__vitest_worker__\";\nfunction getWorkerState() {\n const workerState = globalThis[NAME_WORKER_STATE];\n if (!workerState) {\n const errorMsg = 'Vitest failed to access its internal state.\\n\\nOne of the following is possible:\\n- \"vitest\" is imported directly without running \"vitest\" command\\n- \"vitest\" is imported inside \"globalSetup\" (to fix this, use \"setupFiles\" instead, because \"globalSetup\" runs in a different context)\\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\\n';\n throw new Error(errorMsg);\n }\n return workerState;\n}\nfunction provideWorkerState(context, state) {\n Object.defineProperty(context, NAME_WORKER_STATE, {\n value: state,\n configurable: true,\n writable: true,\n enumerable: false\n });\n return state;\n}\nfunction getCurrentEnvironment() {\n const state = getWorkerState();\n return state?.environment.name;\n}\nfunction isChildProcess() {\n return typeof process !== \"undefined\" && !!process.send;\n}\nfunction setProcessTitle(title) {\n try {\n process.title = `node (${title})`;\n } catch {\n }\n}\nfunction resetModules(modules, resetMocks = false) {\n const skipPaths = [\n // Vitest\n /\\/vitest\\/dist\\//,\n /\\/vite-node\\/dist\\//,\n // yarn's .store folder\n /vitest-virtual-\\w+\\/dist/,\n // cnpm\n /@vitest\\/dist/,\n // don't clear mocks\n ...!resetMocks ? [/^mock:/] : []\n ];\n modules.forEach((mod, path) => {\n if (skipPaths.some((re) => re.test(path))) {\n return;\n }\n modules.invalidateModule(mod);\n });\n}\nfunction waitNextTick() {\n const { setTimeout } = getSafeTimers();\n return new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n await waitNextTick();\n const state = getWorkerState();\n const promises = [];\n let resolvingCount = 0;\n for (const mod of state.moduleCache.values()) {\n if (mod.promise && !mod.evaluated) {\n promises.push(mod.promise);\n }\n if (mod.resolving) {\n resolvingCount++;\n }\n }\n if (!promises.length && !resolvingCount) {\n return;\n }\n await Promise.allSettled(promises);\n await waitForImportsToResolve();\n}\n\nexport { getCurrentEnvironment as a, getWorkerState as g, isChildProcess as i, provideWorkerState as p, resetModules as r, setProcessTitle as s, waitForImportsToResolve as w };\n","var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nexport { commonjsGlobal as c, getDefaultExportFromCjs as g };\n","import { resolve as resolve$2 } from 'pathe';\nimport { plugins, format } from '@vitest/pretty-format';\n\nconst comma = ','.charCodeAt(0);\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\nfunction decodeInteger(reader, relative) {\n let value = 0;\n let shift = 0;\n let integer = 0;\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n const shouldNegate = value & 1;\n value >>>= 1;\n if (shouldNegate) {\n value = -0x80000000 | -value;\n }\n return relative + value;\n}\nfunction hasMoreVlq(reader, max) {\n if (reader.pos >= max)\n return false;\n return reader.peek() !== comma;\n}\nclass StringReader {\n constructor(buffer) {\n this.pos = 0;\n this.buffer = buffer;\n }\n next() {\n return this.buffer.charCodeAt(this.pos++);\n }\n peek() {\n return this.buffer.charCodeAt(this.pos);\n }\n indexOf(char) {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n\nfunction decode(mappings) {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n do {\n const semi = reader.indexOf(';');\n const line = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n while (reader.pos < semi) {\n let seg;\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol)\n sorted = false;\n lastCol = genColumn;\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n }\n else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n }\n else {\n seg = [genColumn];\n }\n line.push(seg);\n reader.pos++;\n }\n if (!sorted)\n sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n return decoded;\n}\nfunction sort(line) {\n line.sort(sortComparator$1);\n}\nfunction sortComparator$1(a, b) {\n return a[0] - b[0];\n}\n\n// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\nvar UrlType;\n(function (UrlType) {\n UrlType[UrlType[\"Empty\"] = 1] = \"Empty\";\n UrlType[UrlType[\"Hash\"] = 2] = \"Hash\";\n UrlType[UrlType[\"Query\"] = 3] = \"Query\";\n UrlType[UrlType[\"RelativePath\"] = 4] = \"RelativePath\";\n UrlType[UrlType[\"AbsolutePath\"] = 5] = \"AbsolutePath\";\n UrlType[UrlType[\"SchemeRelative\"] = 6] = \"SchemeRelative\";\n UrlType[UrlType[\"Absolute\"] = 7] = \"Absolute\";\n})(UrlType || (UrlType = {}));\nfunction isAbsoluteUrl(input) {\n return schemeRegex.test(input);\n}\nfunction isSchemeRelativeUrl(input) {\n return input.startsWith('//');\n}\nfunction isAbsolutePath(input) {\n return input.startsWith('/');\n}\nfunction isFileUrl(input) {\n return input.startsWith('file:');\n}\nfunction isRelative(input) {\n return /^[.?#]/.test(input);\n}\nfunction parseAbsoluteUrl(input) {\n const match = urlRegex.exec(input);\n return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || '');\n}\nfunction parseFileUrl(input) {\n const match = fileRegex.exec(input);\n const path = match[2];\n return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || '');\n}\nfunction makeUrl(scheme, user, host, port, path, query, hash) {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\nfunction parseUrl(input) {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n if (isFileUrl(input))\n return parseFileUrl(input);\n if (isAbsoluteUrl(input))\n return parseAbsoluteUrl(input);\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\nfunction stripPathFilename(path) {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..'))\n return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\nfunction mergePaths(url, base) {\n normalizePath(base, base.type);\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n }\n else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url, type) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n // A current directory, which we can always drop.\n if (piece === '.')\n continue;\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n }\n else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nfunction resolve$1(input, base) {\n if (!input && !base)\n return '';\n const url = parseUrl(input);\n let inputType = url.type;\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType)\n inputType = baseType;\n }\n normalizePath(url, inputType);\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n if (!path)\n return queryHash || '.';\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n return path + queryHash;\n }\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n\nfunction resolve(input, base) {\n // The base is always treated as a directory, if it's not empty.\n // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n if (base && !base.endsWith('/'))\n base += '/';\n return resolve$1(input, base);\n}\n\n/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nfunction stripFilename(path) {\n if (!path)\n return '';\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nconst COLUMN = 0;\nconst SOURCES_INDEX = 1;\nconst SOURCE_LINE = 2;\nconst SOURCE_COLUMN = 3;\nconst NAMES_INDEX = 4;\n\nfunction maybeSort(mappings, owned) {\n const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n if (unsortedIndex === mappings.length)\n return mappings;\n // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n // not, we do not want to modify the consumer's input array.\n if (!owned)\n mappings = mappings.slice();\n for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n mappings[i] = sortSegments(mappings[i], owned);\n }\n return mappings;\n}\nfunction nextUnsortedSegmentLine(mappings, start) {\n for (let i = start; i < mappings.length; i++) {\n if (!isSorted(mappings[i]))\n return i;\n }\n return mappings.length;\n}\nfunction isSorted(line) {\n for (let j = 1; j < line.length; j++) {\n if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n return false;\n }\n }\n return true;\n}\nfunction sortSegments(line, owned) {\n if (!owned)\n line = line.slice();\n return line.sort(sortComparator);\n}\nfunction sortComparator(a, b) {\n return a[COLUMN] - b[COLUMN];\n}\n\nlet found = false;\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nfunction binarySearch(haystack, needle, low, high) {\n while (low <= high) {\n const mid = low + ((high - low) >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n if (cmp === 0) {\n found = true;\n return mid;\n }\n if (cmp < 0) {\n low = mid + 1;\n }\n else {\n high = mid - 1;\n }\n }\n found = false;\n return low - 1;\n}\nfunction upperBound(haystack, needle, index) {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction lowerBound(haystack, needle, index) {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle)\n break;\n }\n return index;\n}\nfunction memoizedState() {\n return {\n lastKey: -1,\n lastNeedle: -1,\n lastIndex: -1,\n };\n}\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nfunction memoizedBinarySearch(haystack, needle, state, key) {\n const { lastKey, lastNeedle, lastIndex } = state;\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n if (needle >= lastNeedle) {\n // lastIndex may be -1 if the previous needle was not found.\n low = lastIndex === -1 ? 0 : lastIndex;\n }\n else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\nconst LEAST_UPPER_BOUND = -1;\nconst GREATEST_LOWER_BOUND = 1;\nclass TraceMap {\n constructor(map, mapUrl) {\n const isString = typeof map === 'string';\n if (!isString && map._decodedMemo)\n return map;\n const parsed = (isString ? JSON.parse(map) : map);\n const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n this.version = version;\n this.file = file;\n this.names = names || [];\n this.sourceRoot = sourceRoot;\n this.sources = sources;\n this.sourcesContent = sourcesContent;\n this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;\n const from = resolve(sourceRoot || '', stripFilename(mapUrl));\n this.resolvedSources = sources.map((s) => resolve(s || '', from));\n const { mappings } = parsed;\n if (typeof mappings === 'string') {\n this._encoded = mappings;\n this._decoded = undefined;\n }\n else {\n this._encoded = undefined;\n this._decoded = maybeSort(mappings, isString);\n }\n this._decodedMemo = memoizedState();\n this._bySources = undefined;\n this._bySourceMemos = undefined;\n }\n}\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map) {\n return map;\n}\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nfunction decodedMappings(map) {\n var _a;\n return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded)));\n}\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nfunction originalPositionFor(map, needle) {\n let { line, column, bias } = needle;\n line--;\n if (line < 0)\n throw new Error(LINE_GTR_ZERO);\n if (column < 0)\n throw new Error(COL_GTR_EQ_ZERO);\n const decoded = decodedMappings(map);\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length)\n return OMapping(null, null, null, null);\n const segments = decoded[line];\n const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);\n if (index === -1)\n return OMapping(null, null, null, null);\n const segment = segments[index];\n if (segment.length === 1)\n return OMapping(null, null, null, null);\n const { names, resolvedSources } = map;\n return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);\n}\nfunction OMapping(source, line, column, name) {\n return { source, line, column, name };\n}\nfunction traceSegmentInternal(segments, memo, line, column, bias) {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (found) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n }\n else if (bias === LEAST_UPPER_BOUND)\n index++;\n if (index === -1 || index === segments.length)\n return -1;\n return index;\n}\n\nfunction notNullish(v) {\n return v != null;\n}\nfunction isPrimitive(value) {\n return value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction isObject(item) {\n return item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction getCallLastIndex(code) {\n let charIndex = -1;\n let inString = null;\n let startedBracers = 0;\n let endedBracers = 0;\n let beforeChar = null;\n while (charIndex <= code.length) {\n beforeChar = code[charIndex];\n charIndex++;\n const char = code[charIndex];\n const isCharString = char === '\"' || char === \"'\" || char === \"`\";\n if (isCharString && beforeChar !== \"\\\\\") {\n if (inString === char) {\n inString = null;\n } else if (!inString) {\n inString = char;\n }\n }\n if (!inString) {\n if (char === \"(\") {\n startedBracers++;\n }\n if (char === \")\") {\n endedBracers++;\n }\n }\n if (startedBracers && endedBracers && startedBracers === endedBracers) {\n return charIndex;\n }\n }\n return null;\n}\n\nconst CHROME_IE_STACK_REGEXP = /^\\s*at .*(?:\\S:\\d+|\\(native\\))/m;\nconst SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\\[native code\\])?$/;\nconst stackIgnorePatterns = [\n \"node:internal\",\n /\\/packages\\/\\w+\\/dist\\//,\n /\\/@vitest\\/\\w+\\/dist\\//,\n \"/vitest/dist/\",\n \"/vitest/src/\",\n \"/vite-node/dist/\",\n \"/vite-node/src/\",\n \"/node_modules/chai/\",\n \"/node_modules/tinypool/\",\n \"/node_modules/tinyspy/\",\n // browser related deps\n \"/deps/chunk-\",\n \"/deps/@vitest\",\n \"/deps/loupe\",\n \"/deps/chai\",\n /node:\\w+/,\n /__vitest_test__/,\n /__vitest_browser__/,\n /\\/deps\\/vitest_/\n];\nfunction extractLocation(urlLike) {\n if (!urlLike.includes(\":\")) {\n return [urlLike];\n }\n const regExp = /(.+?)(?::(\\d+))?(?::(\\d+))?$/;\n const parts = regExp.exec(urlLike.replace(/^\\(|\\)$/g, \"\"));\n if (!parts) {\n return [urlLike];\n }\n let url = parts[1];\n if (url.startsWith(\"async \")) {\n url = url.slice(6);\n }\n if (url.startsWith(\"http:\") || url.startsWith(\"https:\")) {\n const urlObj = new URL(url);\n url = urlObj.pathname;\n }\n if (url.startsWith(\"/@fs/\")) {\n const isWindows = /^\\/@fs\\/[a-zA-Z]:\\//.test(url);\n url = url.slice(isWindows ? 5 : 4);\n }\n return [url, parts[2] || void 0, parts[3] || void 0];\n}\nfunction parseSingleFFOrSafariStack(raw) {\n let line = raw.trim();\n if (SAFARI_NATIVE_CODE_REGEXP.test(line)) {\n return null;\n }\n if (line.includes(\" > eval\")) {\n line = line.replace(\n / line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,\n \":$1\"\n );\n }\n if (!line.includes(\"@\") && !line.includes(\":\")) {\n return null;\n }\n const functionNameRegex = /((.*\".+\"[^@]*)?[^@]*)(@)/;\n const matches = line.match(functionNameRegex);\n const functionName = matches && matches[1] ? matches[1] : void 0;\n const [url, lineNumber, columnNumber] = extractLocation(\n line.replace(functionNameRegex, \"\")\n );\n if (!url || !lineNumber || !columnNumber) {\n return null;\n }\n return {\n file: url,\n method: functionName || \"\",\n line: Number.parseInt(lineNumber),\n column: Number.parseInt(columnNumber)\n };\n}\nfunction parseSingleV8Stack(raw) {\n let line = raw.trim();\n if (!CHROME_IE_STACK_REGEXP.test(line)) {\n return null;\n }\n if (line.includes(\"(eval \")) {\n line = line.replace(/eval code/g, \"eval\").replace(/(\\(eval at [^()]*)|(,.*$)/g, \"\");\n }\n let sanitizedLine = line.replace(/^\\s+/, \"\").replace(/\\(eval code/g, \"(\").replace(/^.*?\\s+/, \"\");\n const location = sanitizedLine.match(/ (\\(.+\\)$)/);\n sanitizedLine = location ? sanitizedLine.replace(location[0], \"\") : sanitizedLine;\n const [url, lineNumber, columnNumber] = extractLocation(\n location ? location[1] : sanitizedLine\n );\n let method = location && sanitizedLine || \"\";\n let file = url && [\"eval\", \"<anonymous>\"].includes(url) ? void 0 : url;\n if (!file || !lineNumber || !columnNumber) {\n return null;\n }\n if (method.startsWith(\"async \")) {\n method = method.slice(6);\n }\n if (file.startsWith(\"file://\")) {\n file = file.slice(7);\n }\n file = resolve$2(file);\n if (method) {\n method = method.replace(/__vite_ssr_import_\\d+__\\./g, \"\");\n }\n return {\n method,\n file,\n line: Number.parseInt(lineNumber),\n column: Number.parseInt(columnNumber)\n };\n}\nfunction parseStacktrace(stack, options = {}) {\n const { ignoreStackEntries = stackIgnorePatterns } = options;\n let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);\n if (ignoreStackEntries.length) {\n stacks = stacks.filter(\n (stack2) => !ignoreStackEntries.some((p) => stack2.file.match(p))\n );\n }\n return stacks.map((stack2) => {\n var _a;\n if (options.getFileName) {\n stack2.file = options.getFileName(stack2.file);\n }\n const map = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file);\n if (!map || typeof map !== \"object\" || !map.version) {\n return stack2;\n }\n const traceMap = new TraceMap(map);\n const { line, column } = originalPositionFor(traceMap, stack2);\n if (line != null && column != null) {\n return { ...stack2, line, column };\n }\n return stack2;\n });\n}\nfunction parseFFOrSafariStackTrace(stack) {\n return stack.split(\"\\n\").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);\n}\nfunction parseV8Stacktrace(stack) {\n return stack.split(\"\\n\").map((line) => parseSingleV8Stack(line)).filter(notNullish);\n}\nfunction parseErrorStacktrace(e, options = {}) {\n if (!e || isPrimitive(e)) {\n return [];\n }\n if (e.stacks) {\n return e.stacks;\n }\n const stackStr = e.stack || e.stackStr || \"\";\n let stackFrames = parseStacktrace(stackStr, options);\n if (options.frameFilter) {\n stackFrames = stackFrames.filter(\n (f) => options.frameFilter(e, f) !== false\n );\n }\n e.stacks = stackFrames;\n return stackFrames;\n}\n\nlet getPromiseValue = () => 'Promise{…}';\ntry {\n // @ts-ignore\n const { getPromiseDetails, kPending, kRejected } = process.binding('util');\n if (Array.isArray(getPromiseDetails(Promise.resolve()))) {\n getPromiseValue = (value, options) => {\n const [state, innerValue] = getPromiseDetails(value);\n if (state === kPending) {\n return 'Promise{<pending>}';\n }\n return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`;\n };\n }\n}\ncatch (notNode) {\n /* ignore */\n}\n\n/* !\n * loupe\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nlet nodeInspect = false;\ntry {\n // eslint-disable-next-line global-require\n // @ts-ignore\n const nodeUtil = require('util');\n nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false;\n}\ncatch (noNodeInspect) {\n nodeInspect = false;\n}\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar jsTokens_1;\nvar hasRequiredJsTokens;\n\nfunction requireJsTokens () {\n\tif (hasRequiredJsTokens) return jsTokens_1;\n\thasRequiredJsTokens = 1;\n\t// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell\n\t// License: MIT.\n\tvar Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;\n\tRegularExpressionLiteral = /\\/(?![*\\/])(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\\\]).|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?/yu;\n\tPunctuator = /--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]/y;\n\tIdentifier = /(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+/yu;\n\tStringLiteral = /(['\"])(?:(?!\\1)[^\\\\\\n\\r]|\\\\(?:\\r\\n|[^]))*(\\1)?/y;\n\tNumericLiteral = /(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+/y;\n\tTemplate = /[`}](?:[^`\\\\$]|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?/y;\n\tWhiteSpace = /[\\t\\v\\f\\ufeff\\p{Zs}]+/yu;\n\tLineTerminatorSequence = /\\r?\\n|[\\r\\u2028\\u2029]/y;\n\tMultiLineComment = /\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?/y;\n\tSingleLineComment = /\\/\\/.*/y;\n\tJSXPunctuator = /[<>.:={}]|\\/(?![\\/*])/y;\n\tJSXIdentifier = /[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*/yu;\n\tJSXString = /(['\"])(?:(?!\\1)[^])*(\\1)?/y;\n\tJSXText = /[^<>{}]+/y;\n\tTokensPrecedingExpression = /^(?:[\\/+-]|\\.{3}|\\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;\n\tTokensNotPrecedingObjectLiteral = /^(?:=>|[;\\]){}]|else|\\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;\n\tKeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;\n\tKeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;\n\tNewline = RegExp(LineTerminatorSequence.source);\n\tjsTokens_1 = function*(input, {jsx = false} = {}) {\n\t\tvar braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;\n\t\t({length} = input);\n\t\tlastIndex = 0;\n\t\tlastSignificantToken = \"\";\n\t\tstack = [\n\t\t\t{tag: \"JS\"}\n\t\t];\n\t\tbraces = [];\n\t\tparenNesting = 0;\n\t\tpostfixIncDec = false;\n\t\twhile (lastIndex < length) {\n\t\t\tmode = stack[stack.length - 1];\n\t\t\tswitch (mode.tag) {\n\t\t\t\tcase \"JS\":\n\t\t\t\tcase \"JSNonExpressionParen\":\n\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\tif (input[lastIndex] === \"/\" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\tRegularExpressionLiteral.lastIndex = lastIndex;\n\t\t\t\t\t\tif (match = RegularExpressionLiteral.exec(input)) {\n\t\t\t\t\t\t\tlastIndex = RegularExpressionLiteral.lastIndex;\n\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"RegularExpressionLiteral\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] !== void 0 && match[1] !== \"\\\\\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Punctuator.exec(input)) {\n\t\t\t\t\t\tpunctuator = match[0];\n\t\t\t\t\t\tnextLastIndex = Punctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = punctuator;\n\t\t\t\t\t\tswitch (punctuator) {\n\t\t\t\t\t\t\tcase \"(\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"?NonExpressionParenKeyword\") {\n\t\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\t\ttag: \"JSNonExpressionParen\",\n\t\t\t\t\t\t\t\t\t\tnesting: parenNesting\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tparenNesting++;\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \")\":\n\t\t\t\t\t\t\t\tparenNesting--;\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tif (mode.tag === \"JSNonExpressionParen\" && parenNesting === mode.nesting) {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenEnd\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tPunctuator.lastIndex = 0;\n\t\t\t\t\t\t\t\tisExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));\n\t\t\t\t\t\t\t\tbraces.push(isExpression);\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"}\":\n\t\t\t\t\t\t\t\tswitch (mode.tag) {\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInTemplate\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tmatch = Template.exec(input);\n\t\t\t\t\t\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateMiddle\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype: \"TemplateTail\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase \"InterpolationInJSX\":\n\t\t\t\t\t\t\t\t\t\tif (braces.length === mode.nesting) {\n\t\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\t\t\tlastSignificantToken = \"}\";\n\t\t\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: \"}\"\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = braces.pop();\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?ExpressionBraceEnd\" : \"}\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"]\":\n\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"++\":\n\t\t\t\t\t\t\tcase \"--\":\n\t\t\t\t\t\t\t\tnextLastSignificantToken = postfixIncDec ? \"?PostfixIncDec\" : \"?UnaryIncDec\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tif (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\t\tlastIndex += 1;\n\t\t\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastIndex = nextLastIndex;\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"Punctuator\",\n\t\t\t\t\t\t\tvalue: punctuator\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Identifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = Identifier.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"for\":\n\t\t\t\t\t\t\tcase \"if\":\n\t\t\t\t\t\t\tcase \"while\":\n\t\t\t\t\t\t\tcase \"with\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken !== \".\" && lastSignificantToken !== \"?.\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?NonExpressionParenKeyword\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tpostfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: match[1] === \"#\" ? \"PrivateIdentifier\" : \"IdentifierName\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tStringLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = StringLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = StringLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"StringLiteral\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tNumericLiteral.lastIndex = lastIndex;\n\t\t\t\t\tif (match = NumericLiteral.exec(input)) {\n\t\t\t\t\t\tlastIndex = NumericLiteral.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"NumericLiteral\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tTemplate.lastIndex = lastIndex;\n\t\t\t\t\tif (match = Template.exec(input)) {\n\t\t\t\t\t\tlastIndex = Template.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tif (match[1] === \"${\") {\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInTemplate\";\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInTemplate\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"TemplateHead\",\n\t\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"NoSubstitutionTemplate\",\n\t\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\t\tclosed: match[1] === \"`\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXTag\":\n\t\t\t\tcase \"JSXTagEnd\":\n\t\t\t\t\tJSXPunctuator.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXPunctuator.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXPunctuator.lastIndex;\n\t\t\t\t\t\tnextLastSignificantToken = match[0];\n\t\t\t\t\t\tswitch (match[0]) {\n\t\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \">\":\n\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"/\" || mode.tag === \"JSXTagEnd\") {\n\t\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?JSX\";\n\t\t\t\t\t\t\t\t\tpostfixIncDec = true;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXChildren\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tnextLastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\tif (lastSignificantToken === \"<\") {\n\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\tif (stack[stack.length - 1].tag === \"JSXChildren\") {\n\t\t\t\t\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tstack.push({tag: \"JSXTagEnd\"});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlastSignificantToken = nextLastSignificantToken;\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXIdentifier.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXIdentifier.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXIdentifier.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXIdentifier\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tJSXString.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXString.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXString.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXString\",\n\t\t\t\t\t\t\tvalue: match[0],\n\t\t\t\t\t\t\tclosed: match[2] !== void 0\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JSXChildren\":\n\t\t\t\t\tJSXText.lastIndex = lastIndex;\n\t\t\t\t\tif (match = JSXText.exec(input)) {\n\t\t\t\t\t\tlastIndex = JSXText.lastIndex;\n\t\t\t\t\t\tlastSignificantToken = match[0];\n\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\ttype: \"JSXText\",\n\t\t\t\t\t\t\tvalue: match[0]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (input[lastIndex]) {\n\t\t\t\t\t\tcase \"<\":\n\t\t\t\t\t\t\tstack.push({tag: \"JSXTag\"});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"<\";\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"<\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\tstack.push({\n\t\t\t\t\t\t\t\ttag: \"InterpolationInJSX\",\n\t\t\t\t\t\t\t\tnesting: braces.length\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tlastIndex++;\n\t\t\t\t\t\t\tlastSignificantToken = \"?InterpolationInJSX\";\n\t\t\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\t\t\tyield ({\n\t\t\t\t\t\t\t\ttype: \"JSXPunctuator\",\n\t\t\t\t\t\t\t\tvalue: \"{\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tWhiteSpace.lastIndex = lastIndex;\n\t\t\tif (match = WhiteSpace.exec(input)) {\n\t\t\t\tlastIndex = WhiteSpace.lastIndex;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"WhiteSpace\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tLineTerminatorSequence.lastIndex = lastIndex;\n\t\t\tif (match = LineTerminatorSequence.exec(input)) {\n\t\t\t\tlastIndex = LineTerminatorSequence.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"LineTerminatorSequence\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tMultiLineComment.lastIndex = lastIndex;\n\t\t\tif (match = MultiLineComment.exec(input)) {\n\t\t\t\tlastIndex = MultiLineComment.lastIndex;\n\t\t\t\tif (Newline.test(match[0])) {\n\t\t\t\t\tpostfixIncDec = false;\n\t\t\t\t\tif (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {\n\t\t\t\t\t\tlastSignificantToken = \"?NoLineTerminatorHere\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"MultiLineComment\",\n\t\t\t\t\tvalue: match[0],\n\t\t\t\t\tclosed: match[1] !== void 0\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSingleLineComment.lastIndex = lastIndex;\n\t\t\tif (match = SingleLineComment.exec(input)) {\n\t\t\t\tlastIndex = SingleLineComment.lastIndex;\n\t\t\t\tpostfixIncDec = false;\n\t\t\t\tyield ({\n\t\t\t\t\ttype: \"SingleLineComment\",\n\t\t\t\t\tvalue: match[0]\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfirstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));\n\t\t\tlastIndex += firstCodePoint.length;\n\t\t\tlastSignificantToken = firstCodePoint;\n\t\t\tpostfixIncDec = false;\n\t\t\tyield ({\n\t\t\t\ttype: mode.tag.startsWith(\"JSX\") ? \"JSXInvalid\" : \"Invalid\",\n\t\t\t\tvalue: firstCodePoint\n\t\t\t});\n\t\t}\n\t\treturn void 0;\n\t};\n\treturn jsTokens_1;\n}\n\nrequireJsTokens();\n\n// src/index.ts\nvar reservedWords = {\n keyword: [\n \"break\",\n \"case\",\n \"catch\",\n \"continue\",\n \"debugger\",\n \"default\",\n \"do\",\n \"else\",\n \"finally\",\n \"for\",\n \"function\",\n \"if\",\n \"return\",\n \"switch\",\n \"throw\",\n \"try\",\n \"var\",\n \"const\",\n \"while\",\n \"with\",\n \"new\",\n \"this\",\n \"super\",\n \"class\",\n \"extends\",\n \"export\",\n \"import\",\n \"null\",\n \"true\",\n \"false\",\n \"in\",\n \"instanceof\",\n \"typeof\",\n \"void\",\n \"delete\"\n ],\n strict: [\n \"implements\",\n \"interface\",\n \"let\",\n \"package\",\n \"private\",\n \"protected\",\n \"public\",\n \"static\",\n \"yield\"\n ]\n}; new Set(reservedWords.keyword); new Set(reservedWords.strict);\n\n// src/index.ts\nvar f = {\n reset: [0, 0],\n bold: [1, 22, \"\\x1B[22m\\x1B[1m\"],\n dim: [2, 22, \"\\x1B[22m\\x1B[2m\"],\n italic: [3, 23],\n underline: [4, 24],\n inverse: [7, 27],\n hidden: [8, 28],\n strikethrough: [9, 29],\n black: [30, 39],\n red: [31, 39],\n green: [32, 39],\n yellow: [33, 39],\n blue: [34, 39],\n magenta: [35, 39],\n cyan: [36, 39],\n white: [37, 39],\n gray: [90, 39],\n bgBlack: [40, 49],\n bgRed: [41, 49],\n bgGreen: [42, 49],\n bgYellow: [43, 49],\n bgBlue: [44, 49],\n bgMagenta: [45, 49],\n bgCyan: [46, 49],\n bgWhite: [47, 49],\n blackBright: [90, 39],\n redBright: [91, 39],\n greenBright: [92, 39],\n yellowBright: [93, 39],\n blueBright: [94, 39],\n magentaBright: [95, 39],\n cyanBright: [96, 39],\n whiteBright: [97, 39],\n bgBlackBright: [100, 49],\n bgRedBright: [101, 49],\n bgGreenBright: [102, 49],\n bgYellowBright: [103, 49],\n bgBlueBright: [104, 49],\n bgMagentaBright: [105, 49],\n bgCyanBright: [106, 49],\n bgWhiteBright: [107, 49]\n}, h = Object.entries(f);\nfunction a(n) {\n return String(n);\n}\na.open = \"\";\na.close = \"\";\nfunction C(n = !1) {\n let e = typeof process != \"undefined\" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];\n return !(\"NO_COLOR\" in i || g.includes(\"--no-color\")) && (\"FORCE_COLOR\" in i || g.includes(\"--color\") || (e == null ? void 0 : e.platform) === \"win32\" || n && i.TERM !== \"dumb\" || \"CI\" in i) || typeof window != \"undefined\" && !!window.chrome;\n}\nfunction p(n = !1) {\n let e = C(n), i = (r, t, c, o) => {\n let l = \"\", s = 0;\n do\n l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);\n while (~o);\n return l + r.substring(s);\n }, g = (r, t, c = r) => {\n let o = (l) => {\n let s = String(l), b = s.indexOf(t, r.length);\n return ~b ? r + i(s, t, c, b) + t : r + s + t;\n };\n return o.open = r, o.close = t, o;\n }, u = {\n isColorSupported: e\n }, d = (r) => `\\x1B[${r}m`;\n for (let [r, t] of h)\n u[r] = e ? g(\n d(t[0]),\n d(t[1]),\n t[2]\n ) : a;\n return u;\n}\n\n// src/browser.ts\np(!1);\n\nconst lineSplitRE = /\\r?\\n/;\nfunction positionToOffset(source, lineNumber, columnNumber) {\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let start = 0;\n if (lineNumber > lines.length) {\n return source.length;\n }\n for (let i = 0; i < lineNumber - 1; i++) {\n start += lines[i].length + nl;\n }\n return start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n if (offset > source.length) {\n throw new Error(\n `offset is longer than source length! offset ${offset} > length ${source.length}`\n );\n }\n const lines = source.split(lineSplitRE);\n const nl = /\\r\\n/.test(source) ? 2 : 1;\n let counted = 0;\n let line = 0;\n for (; line < lines.length; line++) {\n const lineLength = lines[line].length + nl;\n if (counted + lineLength >= offset) {\n break;\n }\n counted += lineLength;\n }\n return line + 1;\n}\n\nasync function saveInlineSnapshots(environment, snapshots) {\n const MagicString = (await import('magic-string')).default;\n const files = new Set(snapshots.map((i) => i.file));\n await Promise.all(\n Array.from(files).map(async (file) => {\n const snaps = snapshots.filter((i) => i.file === file);\n const code = await environment.readSnapshotFile(file);\n const s = new MagicString(code);\n for (const snap of snaps) {\n const index = positionToOffset(code, snap.line, snap.column);\n replaceInlineSnap(code, s, index, snap.snapshot);\n }\n const transformed = s.toString();\n if (transformed !== code) {\n await environment.saveSnapshotFile(file, transformed);\n }\n })\n );\n}\nconst startObjectRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\s\\S]*\\*\\/\\s*|\\/\\/.*(?:[\\n\\r\\u2028\\u2029]\\s*|[\\t\\v\\f \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF]))*\\{/;\nfunction replaceObjectSnap(code, s, index, newSnap) {\n let _code = code.slice(index);\n const startMatch = startObjectRegex.exec(_code);\n if (!startMatch) {\n return false;\n }\n _code = _code.slice(startMatch.index);\n let callEnd = getCallLastIndex(_code);\n if (callEnd === null) {\n return false;\n }\n callEnd += index + startMatch.index;\n const shapeStart = index + startMatch.index + startMatch[0].length;\n const shapeEnd = getObjectShapeEndIndex(code, shapeStart);\n const snap = `, ${prepareSnapString(newSnap, code, index)}`;\n if (shapeEnd === callEnd) {\n s.appendLeft(callEnd, snap);\n } else {\n s.overwrite(shapeEnd, callEnd, snap);\n }\n return true;\n}\nfunction getObjectShapeEndIndex(code, index) {\n let startBraces = 1;\n let endBraces = 0;\n while (startBraces !== endBraces && index < code.length) {\n const s = code[index++];\n if (s === \"{\") {\n startBraces++;\n } else if (s === \"}\") {\n endBraces++;\n }\n }\n return index;\n}\nfunction prepareSnapString(snap, source, index) {\n const lineNumber = offsetToLineNumber(source, index);\n const line = source.split(lineSplitRE)[lineNumber - 1];\n const indent = line.match(/^\\s*/)[0] || \"\";\n const indentNext = indent.includes(\"\t\") ? `${indent}\t` : `${indent} `;\n const lines = snap.trim().replace(/\\\\/g, \"\\\\\\\\\").split(/\\n/g);\n const isOneline = lines.length <= 1;\n const quote = \"`\";\n if (isOneline) {\n return `${quote}${lines.join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\")}${quote}`;\n }\n return `${quote}\n${lines.map((i) => i ? indentNext + i : \"\").join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\")}\n${indent}${quote}`;\n}\nconst toMatchInlineName = \"toMatchInlineSnapshot\";\nconst toThrowErrorMatchingInlineName = \"toThrowErrorMatchingInlineSnapshot\";\nfunction getCodeStartingAtIndex(code, index) {\n const indexInline = index - toMatchInlineName.length;\n if (code.slice(indexInline, index) === toMatchInlineName) {\n return {\n code: code.slice(indexInline),\n index: indexInline\n };\n }\n const indexThrowInline = index - toThrowErrorMatchingInlineName.length;\n if (code.slice(index - indexThrowInline, index) === toThrowErrorMatchingInlineName) {\n return {\n code: code.slice(index - indexThrowInline),\n index: index - indexThrowInline\n };\n }\n return {\n code: code.slice(index),\n index\n };\n}\nconst startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\s\\S]*\\*\\/\\s*|\\/\\/.*(?:[\\n\\r\\u2028\\u2029]\\s*|[\\t\\v\\f \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF]))*[\\w$]*(['\"`)])/;\nfunction replaceInlineSnap(code, s, currentIndex, newSnap) {\n const { code: codeStartingAtIndex, index } = getCodeStartingAtIndex(code, currentIndex);\n const startMatch = startRegex.exec(codeStartingAtIndex);\n const firstKeywordMatch = /toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(\n codeStartingAtIndex\n );\n if (!startMatch || startMatch.index !== (firstKeywordMatch == null ? void 0 : firstKeywordMatch.index)) {\n return replaceObjectSnap(code, s, index, newSnap);\n }\n const quote = startMatch[1];\n const startIndex = index + startMatch.index + startMatch[0].length;\n const snapString = prepareSnapString(newSnap, code, index);\n if (quote === \")\") {\n s.appendRight(startIndex - 1, snapString);\n return true;\n }\n const quoteEndRE = new RegExp(`(?:^|[^\\\\\\\\])${quote}`);\n const endMatch = quoteEndRE.exec(code.slice(startIndex));\n if (!endMatch) {\n return false;\n }\n const endIndex = startIndex + endMatch.index + endMatch[0].length;\n s.overwrite(startIndex - 1, endIndex, snapString);\n return true;\n}\nconst INDENTATION_REGEX = /^([^\\S\\n]*)\\S/m;\nfunction stripSnapshotIndentation(inlineSnapshot) {\n const match = inlineSnapshot.match(INDENTATION_REGEX);\n if (!match || !match[1]) {\n return inlineSnapshot;\n }\n const indentation = match[1];\n const lines = inlineSnapshot.split(/\\n/g);\n if (lines.length <= 2) {\n return inlineSnapshot;\n }\n if (lines[0].trim() !== \"\" || lines[lines.length - 1].trim() !== \"\") {\n return inlineSnapshot;\n }\n for (let i = 1; i < lines.length - 1; i++) {\n if (lines[i] !== \"\") {\n if (lines[i].indexOf(indentation) !== 0) {\n return inlineSnapshot;\n }\n lines[i] = lines[i].substring(indentation.length);\n }\n }\n lines[lines.length - 1] = \"\";\n inlineSnapshot = lines.join(\"\\n\");\n return inlineSnapshot;\n}\n\nasync function saveRawSnapshots(environment, snapshots) {\n await Promise.all(\n snapshots.map(async (snap) => {\n if (!snap.readonly) {\n await environment.saveSnapshotFile(snap.file, snap.snapshot);\n }\n })\n );\n}\n\nvar naturalCompare$1 = {exports: {}};\n\nvar hasRequiredNaturalCompare;\n\nfunction requireNaturalCompare () {\n\tif (hasRequiredNaturalCompare) return naturalCompare$1.exports;\n\thasRequiredNaturalCompare = 1;\n\t/*\n\t * @version 1.4.0\n\t * @date 2015-10-26\n\t * @stability 3 - Stable\n\t * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)\n\t * @license MIT License\n\t */\n\n\n\tvar naturalCompare = function(a, b) {\n\t\tvar i, codeA\n\t\t, codeB = 1\n\t\t, posA = 0\n\t\t, posB = 0\n\t\t, alphabet = String.alphabet;\n\n\t\tfunction getCode(str, pos, code) {\n\t\t\tif (code) {\n\t\t\t\tfor (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;\n\t\t\t\treturn +str.slice(pos - 1, i)\n\t\t\t}\n\t\t\tcode = alphabet && alphabet.indexOf(str.charAt(pos));\n\t\t\treturn code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code\n\t\t\t\t: code < 46 ? 65 // -\n\t\t\t\t: code < 48 ? code - 1\n\t\t\t\t: code < 58 ? code + 18 // 0-9\n\t\t\t\t: code < 65 ? code - 11\n\t\t\t\t: code < 91 ? code + 11 // A-Z\n\t\t\t\t: code < 97 ? code - 37\n\t\t\t\t: code < 123 ? code + 5 // a-z\n\t\t\t\t: code - 63\n\t\t}\n\n\n\t\tif ((a+=\"\") != (b+=\"\")) for (;codeB;) {\n\t\t\tcodeA = getCode(a, posA++);\n\t\t\tcodeB = getCode(b, posB++);\n\n\t\t\tif (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {\n\t\t\t\tcodeA = getCode(a, posA, posA);\n\t\t\t\tcodeB = getCode(b, posB, posA = i);\n\t\t\t\tposB = i;\n\t\t\t}\n\n\t\t\tif (codeA != codeB) return (codeA < codeB) ? -1 : 1\n\t\t}\n\t\treturn 0\n\t};\n\n\ttry {\n\t\tnaturalCompare$1.exports = naturalCompare;\n\t} catch (e) {\n\t\tString.naturalCompare = naturalCompare;\n\t}\n\treturn naturalCompare$1.exports;\n}\n\nvar naturalCompareExports = requireNaturalCompare();\nvar naturalCompare = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareExports);\n\nconst serialize$1 = (val, config, indentation, depth, refs, printer) => {\n const name = val.getMockName();\n const nameString = name === \"vi.fn()\" ? \"\" : ` ${name}`;\n let callsString = \"\";\n if (val.mock.calls.length !== 0) {\n const indentationNext = indentation + config.indent;\n callsString = ` {${config.spacingOuter}${indentationNext}\"calls\": ${printer(\n val.mock.calls,\n config,\n indentationNext,\n depth,\n refs\n )}${config.min ? \", \" : \",\"}${config.spacingOuter}${indentationNext}\"results\": ${printer(\n val.mock.results,\n config,\n indentationNext,\n depth,\n refs\n )}${config.min ? \"\" : \",\"}${config.spacingOuter}${indentation}}`;\n }\n return `[MockFunction${nameString}]${callsString}`;\n};\nconst test = (val) => val && !!val._isMockFunction;\nconst plugin = { serialize: serialize$1, test };\n\nconst {\n DOMCollection,\n DOMElement,\n Immutable,\n ReactElement,\n ReactTestComponent,\n AsymmetricMatcher\n} = plugins;\nlet PLUGINS = [\n ReactTestComponent,\n ReactElement,\n DOMElement,\n DOMCollection,\n Immutable,\n AsymmetricMatcher,\n plugin\n];\nfunction addSerializer(plugin) {\n PLUGINS = [plugin].concat(PLUGINS);\n}\nfunction getSerializers() {\n return PLUGINS;\n}\n\nfunction testNameToKey(testName, count) {\n return `${testName} ${count}`;\n}\nfunction keyToTestName(key) {\n if (!/ \\d+$/.test(key)) {\n throw new Error(\"Snapshot keys must end with a number.\");\n }\n return key.replace(/ \\d+$/, \"\");\n}\nfunction getSnapshotData(content, options) {\n const update = options.updateSnapshot;\n const data = /* @__PURE__ */ Object.create(null);\n let snapshotContents = \"\";\n let dirty = false;\n if (content != null) {\n try {\n snapshotContents = content;\n const populate = new Function(\"exports\", snapshotContents);\n populate(data);\n } catch {\n }\n }\n const isInvalid = snapshotContents;\n if ((update === \"all\" || update === \"new\") && isInvalid) {\n dirty = true;\n }\n return { data, dirty };\n}\nfunction addExtraLineBreaks(string) {\n return string.includes(\"\\n\") ? `\n${string}\n` : string;\n}\nfunction removeExtraLineBreaks(string) {\n return string.length > 2 && string.startsWith(\"\\n\") && string.endsWith(\"\\n\") ? string.slice(1, -1) : string;\n}\nconst escapeRegex = true;\nconst printFunctionName = false;\nfunction serialize(val, indent = 2, formatOverrides = {}) {\n return normalizeNewlines(\n format(val, {\n escapeRegex,\n indent,\n plugins: getSerializers(),\n printFunctionName,\n ...formatOverrides\n })\n );\n}\nfunction escapeBacktickString(str) {\n return str.replace(/`|\\\\|\\$\\{/g, \"\\\\$&\");\n}\nfunction printBacktickString(str) {\n return `\\`${escapeBacktickString(str)}\\``;\n}\nfunction normalizeNewlines(string) {\n return string.replace(/\\r\\n|\\r/g, \"\\n\");\n}\nasync function saveSnapshotFile(environment, snapshotData, snapshotPath) {\n const snapshots = Object.keys(snapshotData).sort(naturalCompare).map(\n (key) => `exports[${printBacktickString(key)}] = ${printBacktickString(\n normalizeNewlines(snapshotData[key])\n )};`\n );\n const content = `${environment.getHeader()}\n\n${snapshots.join(\"\\n\\n\")}\n`;\n const oldContent = await environment.readSnapshotFile(snapshotPath);\n const skipWriting = oldContent != null && oldContent === content;\n if (skipWriting) {\n return;\n }\n await environment.saveSnapshotFile(snapshotPath, content);\n}\nfunction prepareExpected(expected) {\n function findStartIndent() {\n var _a, _b;\n const matchObject = /^( +)\\}\\s+$/m.exec(expected || \"\");\n const objectIndent = (_a = matchObject == null ? void 0 : matchObject[1]) == null ? void 0 : _a.length;\n if (objectIndent) {\n return objectIndent;\n }\n const matchText = /^\\n( +)\"/.exec(expected || \"\");\n return ((_b = matchText == null ? void 0 : matchText[1]) == null ? void 0 : _b.length) || 0;\n }\n const startIndent = findStartIndent();\n let expectedTrimmed = expected == null ? void 0 : expected.trim();\n if (startIndent) {\n expectedTrimmed = expectedTrimmed == null ? void 0 : expectedTrimmed.replace(new RegExp(`^${\" \".repeat(startIndent)}`, \"gm\"), \"\").replace(/ +\\}$/, \"}\");\n }\n return expectedTrimmed;\n}\nfunction deepMergeArray(target = [], source = []) {\n const mergedOutput = Array.from(target);\n source.forEach((sourceElement, index) => {\n const targetElement = mergedOutput[index];\n if (Array.isArray(target[index])) {\n mergedOutput[index] = deepMergeArray(target[index], sourceElement);\n } else if (isObject(targetElement)) {\n mergedOutput[index] = deepMergeSnapshot(target[index], sourceElement);\n } else {\n mergedOutput[index] = sourceElement;\n }\n });\n return mergedOutput;\n}\nfunction deepMergeSnapshot(target, source) {\n if (isObject(target) && isObject(source)) {\n const mergedOutput = { ...target };\n Object.keys(source).forEach((key) => {\n if (isObject(source[key]) && !source[key].$$typeof) {\n if (!(key in target)) {\n Object.assign(mergedOutput, { [key]: source[key] });\n } else {\n mergedOutput[key] = deepMergeSnapshot(target[key], source[key]);\n }\n } else if (Array.isArray(source[key])) {\n mergedOutput[key] = deepMergeArray(target[key], source[key]);\n } else {\n Object.assign(mergedOutput, { [key]: source[key] });\n }\n });\n return mergedOutput;\n } else if (Array.isArray(target) && Array.isArray(source)) {\n return deepMergeArray(target, source);\n }\n return target;\n}\n\nclass SnapshotState {\n constructor(testFilePath, snapshotPath, snapshotContent, options) {\n this.testFilePath = testFilePath;\n this.snapshotPath = snapshotPath;\n const { data, dirty } = getSnapshotData(snapshotContent, options);\n this._fileExists = snapshotContent != null;\n this._initialData = data;\n this._snapshotData = data;\n this._dirty = dirty;\n this._inlineSnapshots = [];\n this._inlineSnapshotStacks = [];\n this._rawSnapshots = [];\n this._uncheckedKeys = new Set(Object.keys(this._snapshotData));\n this._counters = /* @__PURE__ */ new Map();\n this.expand = options.expand || false;\n this.added = 0;\n this.matched = 0;\n this.unmatched = 0;\n this._updateSnapshot = options.updateSnapshot;\n this.updated = 0;\n this._snapshotFormat = {\n printBasicPrototype: false,\n escapeString: false,\n ...options.snapshotFormat\n };\n this._environment = options.snapshotEnvironment;\n }\n _counters;\n _dirty;\n _updateSnapshot;\n _snapshotData;\n _initialData;\n _inlineSnapshots;\n _inlineSnapshotStacks;\n _rawSnapshots;\n _uncheckedKeys;\n _snapshotFormat;\n _environment;\n _fileExists;\n added;\n expand;\n matched;\n unmatched;\n updated;\n static async create(testFilePath, options) {\n const snapshotPath = await options.snapshotEnvironment.resolvePath(\n testFilePath\n );\n const content = await options.snapshotEnvironment.readSnapshotFile(\n snapshotPath\n );\n return new SnapshotState(testFilePath, snapshotPath, content, options);\n }\n get environment() {\n return this._environment;\n }\n markSnapshotsAsCheckedForTest(testName) {\n this._uncheckedKeys.forEach((uncheckedKey) => {\n if (keyToTestName(uncheckedKey) === testName) {\n this._uncheckedKeys.delete(uncheckedKey);\n }\n });\n }\n _inferInlineSnapshotStack(stacks) {\n const promiseIndex = stacks.findIndex(\n (i) => i.method.match(/__VITEST_(RESOLVES|REJECTS)__/)\n );\n if (promiseIndex !== -1) {\n return stacks[promiseIndex + 3];\n }\n const stackIndex = stacks.findIndex(\n (i) => i.method.includes(\"__INLINE_SNAPSHOT__\")\n );\n return stackIndex !== -1 ? stacks[stackIndex + 2] : null;\n }\n _addSnapshot(key, receivedSerialized, options) {\n this._dirty = true;\n if (options.stack) {\n this._inlineSnapshots.push({\n snapshot: receivedSerialized,\n ...options.stack\n });\n } else if (options.rawSnapshot) {\n this._rawSnapshots.push({\n ...options.rawSnapshot,\n snapshot: receivedSerialized\n });\n } else {\n this._snapshotData[key] = receivedSerialized;\n }\n }\n clear() {\n this._snapshotData = this._initialData;\n this._counters = /* @__PURE__ */ new Map();\n this.added = 0;\n this.matched = 0;\n this.unmatched = 0;\n this.updated = 0;\n this._dirty = false;\n }\n async save() {\n const hasExternalSnapshots = Object.keys(this._snapshotData).length;\n const hasInlineSnapshots = this._inlineSnapshots.length;\n const hasRawSnapshots = this._rawSnapshots.length;\n const isEmpty = !hasExternalSnapshots && !hasInlineSnapshots && !hasRawSnapshots;\n const status = {\n deleted: false,\n saved: false\n };\n if ((this._dirty || this._uncheckedKeys.size) && !isEmpty) {\n if (hasExternalSnapshots) {\n await saveSnapshotFile(\n this._environment,\n this._snapshotData,\n this.snapshotPath\n );\n this._fileExists = true;\n }\n if (hasInlineSnapshots) {\n await saveInlineSnapshots(this._environment, this._inlineSnapshots);\n }\n if (hasRawSnapshots) {\n await saveRawSnapshots(this._environment, this._rawSnapshots);\n }\n status.saved = true;\n } else if (!hasExternalSnapshots && this._fileExists) {\n if (this._updateSnapshot === \"all\") {\n await this._environment.removeSnapshotFile(this.snapshotPath);\n this._fileExists = false;\n }\n status.deleted = true;\n }\n return status;\n }\n getUncheckedCount() {\n return this._uncheckedKeys.size || 0;\n }\n getUncheckedKeys() {\n return Array.from(this._uncheckedKeys);\n }\n removeUncheckedKeys() {\n if (this._updateSnapshot === \"all\" && this._uncheckedKeys.size) {\n this._dirty = true;\n this._uncheckedKeys.forEach((key) => delete this._snapshotData[key]);\n this._uncheckedKeys.clear();\n }\n }\n match({\n testName,\n received,\n key,\n inlineSnapshot,\n isInline,\n error,\n rawSnapshot\n }) {\n var _a, _b;\n this._counters.set(testName, (this._counters.get(testName) || 0) + 1);\n const count = Number(this._counters.get(testName));\n if (!key) {\n key = testNameToKey(testName, count);\n }\n if (!(isInline && this._snapshotData[key] !== void 0)) {\n this._uncheckedKeys.delete(key);\n }\n let receivedSerialized = rawSnapshot && typeof received === \"string\" ? received : serialize(received, void 0, this._snapshotFormat);\n if (!rawSnapshot) {\n receivedSerialized = addExtraLineBreaks(receivedSerialized);\n }\n if (rawSnapshot) {\n if (rawSnapshot.content && rawSnapshot.content.match(/\\r\\n/) && !receivedSerialized.match(/\\r\\n/)) {\n rawSnapshot.content = normalizeNewlines(rawSnapshot.content);\n }\n }\n const expected = isInline ? inlineSnapshot : rawSnapshot ? rawSnapshot.content : this._snapshotData[key];\n const expectedTrimmed = prepareExpected(expected);\n const pass = expectedTrimmed === prepareExpected(receivedSerialized);\n const hasSnapshot = expected !== void 0;\n const snapshotIsPersisted = isInline || this._fileExists || rawSnapshot && rawSnapshot.content != null;\n if (pass && !isInline && !rawSnapshot) {\n this._snapshotData[key] = receivedSerialized;\n }\n let stack;\n if (isInline) {\n const stacks = parseErrorStacktrace(\n error || new Error(\"snapshot\"),\n { ignoreStackEntries: [] }\n );\n const _stack = this._inferInlineSnapshotStack(stacks);\n if (!_stack) {\n throw new Error(\n `@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\n${JSON.stringify(\n stacks\n )}`\n );\n }\n stack = ((_b = (_a = this.environment).processStackTrace) == null ? void 0 : _b.call(_a, _stack)) || _stack;\n stack.column--;\n if (this._inlineSnapshotStacks.some((s) => s.file === stack.file && s.line === stack.line && s.column === stack.column)) {\n this._inlineSnapshots = this._inlineSnapshots.filter((s) => !(s.file === stack.file && s.line === stack.line && s.column === stack.column));\n throw new Error(\"toMatchInlineSnapshot cannot be called multiple times at the same location.\");\n }\n this._inlineSnapshotStacks.push(stack);\n }\n if (hasSnapshot && this._updateSnapshot === \"all\" || (!hasSnapshot || !snapshotIsPersisted) && (this._updateSnapshot === \"new\" || this._updateSnapshot === \"all\")) {\n if (this._updateSnapshot === \"all\") {\n if (!pass) {\n if (hasSnapshot) {\n this.updated++;\n } else {\n this.added++;\n }\n this._addSnapshot(key, receivedSerialized, {\n stack,\n rawSnapshot\n });\n } else {\n this.matched++;\n }\n } else {\n this._addSnapshot(key, receivedSerialized, {\n stack,\n rawSnapshot\n });\n this.added++;\n }\n return {\n actual: \"\",\n count,\n expected: \"\",\n key,\n pass: true\n };\n } else {\n if (!pass) {\n this.unmatched++;\n return {\n actual: removeExtraLineBreaks(receivedSerialized),\n count,\n expected: expectedTrimmed !== void 0 ? removeExtraLineBreaks(expectedTrimmed) : void 0,\n key,\n pass: false\n };\n } else {\n this.matched++;\n return {\n actual: \"\",\n count,\n expected: \"\",\n key,\n pass: true\n };\n }\n }\n }\n async pack() {\n const snapshot = {\n filepath: this.testFilePath,\n added: 0,\n fileDeleted: false,\n matched: 0,\n unchecked: 0,\n uncheckedKeys: [],\n unmatched: 0,\n updated: 0\n };\n const uncheckedCount = this.getUncheckedCount();\n const uncheckedKeys = this.getUncheckedKeys();\n if (uncheckedCount) {\n this.removeUncheckedKeys();\n }\n const status = await this.save();\n snapshot.fileDeleted = status.deleted;\n snapshot.added = this.added;\n snapshot.matched = this.matched;\n snapshot.unmatched = this.unmatched;\n snapshot.updated = this.updated;\n snapshot.unchecked = !status.deleted ? uncheckedCount : 0;\n snapshot.uncheckedKeys = Array.from(uncheckedKeys);\n return snapshot;\n }\n}\n\nfunction createMismatchError(message, expand, actual, expected) {\n const error = new Error(message);\n Object.defineProperty(error, \"actual\", {\n value: actual,\n enumerable: true,\n configurable: true,\n writable: true\n });\n Object.defineProperty(error, \"expected\", {\n value: expected,\n enumerable: true,\n configurable: true,\n writable: true\n });\n Object.defineProperty(error, \"diffOptions\", { value: { expand } });\n return error;\n}\nclass SnapshotClient {\n constructor(options = {}) {\n this.options = options;\n }\n filepath;\n name;\n snapshotState;\n snapshotStateMap = /* @__PURE__ */ new Map();\n async startCurrentRun(filepath, name, options) {\n var _a;\n this.filepath = filepath;\n this.name = name;\n if (((_a = this.snapshotState) == null ? void 0 : _a.testFilePath) !== filepath) {\n await this.finishCurrentRun();\n if (!this.getSnapshotState(filepath)) {\n this.snapshotStateMap.set(\n filepath,\n await SnapshotState.create(filepath, options)\n );\n }\n this.snapshotState = this.getSnapshotState(filepath);\n }\n }\n getSnapshotState(filepath) {\n return this.snapshotStateMap.get(filepath);\n }\n clearTest() {\n this.filepath = void 0;\n this.name = void 0;\n }\n skipTestSnapshots(name) {\n var _a;\n (_a = this.snapshotState) == null ? void 0 : _a.markSnapshotsAsCheckedForTest(name);\n }\n assert(options) {\n var _a, _b, _c, _d;\n const {\n filepath = this.filepath,\n name = this.name,\n message,\n isInline = false,\n properties,\n inlineSnapshot,\n error,\n errorMessage,\n rawSnapshot\n } = options;\n let { received } = options;\n if (!filepath) {\n throw new Error(\"Snapshot cannot be used outside of test\");\n }\n if (typeof properties === \"object\") {\n if (typeof received !== \"object\" || !received) {\n throw new Error(\n \"Received value must be an object when the matcher has properties\"\n );\n }\n try {\n const pass2 = ((_b = (_a = this.options).isEqual) == null ? void 0 : _b.call(_a, received, properties)) ?? false;\n if (!pass2) {\n throw createMismatchError(\n \"Snapshot properties mismatched\",\n (_c = this.snapshotState) == null ? void 0 : _c.expand,\n received,\n properties\n );\n } else {\n received = deepMergeSnapshot(received, properties);\n }\n } catch (err) {\n err.message = errorMessage || \"Snapshot mismatched\";\n throw err;\n }\n }\n const testName = [name, ...message ? [message] : []].join(\" > \");\n const snapshotState = this.getSnapshotState(filepath);\n const { actual, expected, key, pass } = snapshotState.match({\n testName,\n received,\n isInline,\n error,\n inlineSnapshot,\n rawSnapshot\n });\n if (!pass) {\n throw createMismatchError(\n `Snapshot \\`${key || \"unknown\"}\\` mismatched`,\n (_d = this.snapshotState) == null ? void 0 : _d.expand,\n actual == null ? void 0 : actual.trim(),\n expected == null ? void 0 : expected.trim()\n );\n }\n }\n async assertRaw(options) {\n if (!options.rawSnapshot) {\n throw new Error(\"Raw snapshot is required\");\n }\n const { filepath = this.filepath, rawSnapshot } = options;\n if (rawSnapshot.content == null) {\n if (!filepath) {\n throw new Error(\"Snapshot cannot be used outside of test\");\n }\n const snapshotState = this.getSnapshotState(filepath);\n options.filepath || (options.filepath = filepath);\n rawSnapshot.file = await snapshotState.environment.resolveRawPath(\n filepath,\n rawSnapshot.file\n );\n rawSnapshot.content = await snapshotState.environment.readSnapshotFile(rawSnapshot.file) ?? void 0;\n }\n return this.assert(options);\n }\n async finishCurrentRun() {\n if (!this.snapshotState) {\n return null;\n }\n const result = await this.snapshotState.pack();\n this.snapshotState = void 0;\n return result;\n }\n clear() {\n this.snapshotStateMap.clear();\n }\n}\n\nexport { SnapshotClient, SnapshotState, addSerializer, getSerializers, stripSnapshotIndentation };\n","const RealDate = Date;\nlet now = null;\nclass MockDate extends RealDate {\n constructor(y, m, d, h, M, s, ms) {\n super();\n let date;\n switch (arguments.length) {\n case 0:\n if (now !== null) {\n date = new RealDate(now.valueOf());\n } else {\n date = new RealDate();\n }\n break;\n case 1:\n date = new RealDate(y);\n break;\n default:\n d = typeof d === \"undefined\" ? 1 : d;\n h = h || 0;\n M = M || 0;\n s = s || 0;\n ms = ms || 0;\n date = new RealDate(y, m, d, h, M, s, ms);\n break;\n }\n Object.setPrototypeOf(date, MockDate.prototype);\n return date;\n }\n}\nMockDate.UTC = RealDate.UTC;\nMockDate.now = function() {\n return new MockDate().valueOf();\n};\nMockDate.parse = function(dateString) {\n return RealDate.parse(dateString);\n};\nMockDate.toString = function() {\n return RealDate.toString();\n};\nfunction mockDate(date) {\n const dateObj = new RealDate(date.valueOf());\n if (Number.isNaN(dateObj.getTime())) {\n throw new TypeError(`mockdate: The time set is an invalid date: ${date}`);\n }\n globalThis.Date = MockDate;\n now = dateObj.valueOf();\n}\nfunction resetDate() {\n globalThis.Date = RealDate;\n}\n\nexport { RealDate as R, mockDate as m, resetDate as r };\n","import { equals, iterableEquality, subsetEquality, JestExtend, JestChaiExpect, JestAsymmetricMatchers, GLOBAL_EXPECT, ASYMMETRIC_MATCHERS_OBJECT, getState, setState, addCustomEqualityTesters } from '@vitest/expect';\nimport { getCurrentTest } from '@vitest/runner';\nimport { getNames, getTestName } from '@vitest/runner/utils';\nimport * as chai$1 from 'chai';\nimport { g as getWorkerState, a as getCurrentEnvironment, i as isChildProcess, r as resetModules, w as waitForImportsToResolve } from './utils.C8RiOc4B.js';\nimport { getSafeTimers, assertTypes, createSimpleStackTrace } from '@vitest/utils';\nimport { g as getDefaultExportFromCjs, c as commonjsGlobal } from './_commonjsHelpers.BFTU3MAI.js';\nimport { stripSnapshotIndentation, addSerializer, SnapshotClient } from '@vitest/snapshot';\nimport '@vitest/utils/error';\nimport { parseSingleStack } from '@vitest/utils/source-map';\nimport { R as RealDate, r as resetDate, m as mockDate } from './date.W2xKR2qe.js';\nimport { spyOn, fn, isMockFunction, mocks } from '@vitest/spy';\n\nconst unsupported = [\n // .poll is meant to retry matchers until they succeed, and\n // snapshots will always succeed as long as the poll method doesn't thow an error\n // in this case using the `vi.waitFor` method is more appropriate\n \"matchSnapshot\",\n \"toMatchSnapshot\",\n \"toMatchInlineSnapshot\",\n \"toThrowErrorMatchingSnapshot\",\n \"toThrowErrorMatchingInlineSnapshot\",\n // toThrow will never succeed because we call the poll callback until it doesn't throw\n \"throws\",\n \"Throw\",\n \"throw\",\n \"toThrow\",\n \"toThrowError\"\n // these are not supported because you can call them without `.poll`,\n // we throw an error inside the rejects/resolves methods to prevent this\n // rejects,\n // resolves\n];\nfunction createExpectPoll(expect) {\n return function poll(fn, options = {}) {\n const state = getWorkerState();\n const defaults = state.config.expect?.poll ?? {};\n const {\n interval = defaults.interval ?? 50,\n timeout = defaults.timeout ?? 1e3,\n message\n } = options;\n const assertion = expect(null, message).withContext({\n poll: true\n });\n fn = fn.bind(assertion);\n const test = chai$1.util.flag(assertion, \"vitest-test\");\n if (!test) {\n throw new Error(\"expect.poll() must be called inside a test\");\n }\n const proxy = new Proxy(assertion, {\n get(target, key, receiver) {\n const assertionFunction = Reflect.get(target, key, receiver);\n if (typeof assertionFunction !== \"function\") {\n return assertionFunction instanceof chai$1.Assertion ? proxy : assertionFunction;\n }\n if (key === \"assert\") {\n return assertionFunction;\n }\n if (typeof key === \"string\" && unsupported.includes(key)) {\n throw new SyntaxError(\n `expect.poll() is not supported in combination with .${key}(). Use vi.waitFor() if your assertion condition is unstable.`\n );\n }\n return function(...args) {\n const STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n const promise = () => new Promise((resolve, reject) => {\n let intervalId;\n let lastError;\n const { setTimeout, clearTimeout } = getSafeTimers();\n const timeoutId = setTimeout(() => {\n clearTimeout(intervalId);\n reject(\n copyStackTrace$1(\n new Error(`Matcher did not succeed in ${timeout}ms`, {\n cause: lastError\n }),\n STACK_TRACE_ERROR\n )\n );\n }, timeout);\n const check = async () => {\n try {\n chai$1.util.flag(assertion, \"_name\", key);\n const obj = await fn();\n chai$1.util.flag(assertion, \"object\", obj);\n resolve(await assertionFunction.call(assertion, ...args));\n clearTimeout(intervalId);\n clearTimeout(timeoutId);\n } catch (err) {\n lastError = err;\n intervalId = setTimeout(check, interval);\n }\n };\n check();\n });\n let awaited = false;\n test.onFinished ??= [];\n test.onFinished.push(() => {\n if (!awaited) {\n const negated = chai$1.util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n const name = chai$1.util.flag(assertion, \"_poll.element\") ? \"element(locator)\" : \"poll(assertion)\";\n const assertionString = `expect.${name}.${negated}${String(key)}()`;\n const error = new Error(\n `${assertionString} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:\n\nawait ${assertionString}\n`\n );\n throw copyStackTrace$1(error, STACK_TRACE_ERROR);\n }\n });\n let resultPromise;\n return {\n then(onFulfilled, onRejected) {\n awaited = true;\n return (resultPromise ||= promise()).then(onFulfilled, onRejected);\n },\n catch(onRejected) {\n return (resultPromise ||= promise()).catch(onRejected);\n },\n finally(onFinally) {\n return (resultPromise ||= promise()).finally(onFinally);\n },\n [Symbol.toStringTag]: \"Promise\"\n };\n };\n }\n });\n return proxy;\n };\n}\nfunction copyStackTrace$1(target, source) {\n if (source.stack !== void 0) {\n target.stack = source.stack.replace(source.message, target.message);\n }\n return target;\n}\n\nfunction commonjsRequire(path) {\n\tthrow new Error('Could not dynamically require \"' + path + '\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');\n}\n\nvar chaiSubset$1 = {exports: {}};\n\nvar chaiSubset = chaiSubset$1.exports;\n\nvar hasRequiredChaiSubset;\n\nfunction requireChaiSubset () {\n\tif (hasRequiredChaiSubset) return chaiSubset$1.exports;\n\thasRequiredChaiSubset = 1;\n\t(function (module, exports) {\n\t\t(function() {\n\t\t\t(function(chaiSubset) {\n\t\t\t\tif (typeof commonjsRequire === 'function' && 'object' === 'object' && 'object' === 'object') {\n\t\t\t\t\treturn module.exports = chaiSubset;\n\t\t\t\t} else {\n\t\t\t\t\treturn chai.use(chaiSubset);\n\t\t\t\t}\n\t\t\t})(function(chai, utils) {\n\t\t\t\tvar Assertion = chai.Assertion;\n\t\t\t\tvar assertionPrototype = Assertion.prototype;\n\n\t\t\t\tAssertion.addMethod('containSubset', function (expected) {\n\t\t\t\t\tvar actual = utils.flag(this, 'object');\n\t\t\t\t\tvar showDiff = chai.config.showDiff;\n\n\t\t\t\t\tassertionPrototype.assert.call(this,\n\t\t\t\t\t\tcompare(expected, actual),\n\t\t\t\t\t\t'expected #{act} to contain subset #{exp}',\n\t\t\t\t\t\t'expected #{act} to not contain subset #{exp}',\n\t\t\t\t\t\texpected,\n\t\t\t\t\t\tactual,\n\t\t\t\t\t\tshowDiff\n\t\t\t\t\t);\n\t\t\t\t});\n\n\t\t\t\tchai.assert.containSubset = function(val, exp, msg) {\n\t\t\t\t\tnew chai.Assertion(val, msg).to.be.containSubset(exp);\n\t\t\t\t};\n\n\t\t\t\tfunction compare(expected, actual) {\n\t\t\t\t\tif (expected === actual) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(actual) !== typeof(expected)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tif (typeof(expected) !== 'object' || expected === null) {\n\t\t\t\t\t\treturn expected === actual;\n\t\t\t\t\t}\n\t\t\t\t\tif (!!expected && !actual) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (Array.isArray(expected)) {\n\t\t\t\t\t\tif (typeof(actual.length) !== 'number') {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar aa = Array.prototype.slice.call(actual);\n\t\t\t\t\t\treturn expected.every(function (exp) {\n\t\t\t\t\t\t\treturn aa.some(function (act) {\n\t\t\t\t\t\t\t\treturn compare(exp, act);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tif (expected instanceof Date) {\n\t\t\t\t\t\tif (actual instanceof Date) {\n\t\t\t\t\t\t\treturn expected.getTime() === actual.getTime();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Object.keys(expected).every(function (key) {\n\t\t\t\t\t\tvar eo = expected[key];\n\t\t\t\t\t\tvar ao = actual[key];\n\t\t\t\t\t\tif (typeof(eo) === 'object' && eo !== null && ao !== null) {\n\t\t\t\t\t\t\treturn compare(eo, ao);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (typeof(eo) === 'function') {\n\t\t\t\t\t\t\treturn eo(ao);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn ao === eo;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\n\t\t}).call(chaiSubset); \n\t} (chaiSubset$1));\n\treturn chaiSubset$1.exports;\n}\n\nvar chaiSubsetExports = requireChaiSubset();\nvar Subset = /*@__PURE__*/getDefaultExportFromCjs(chaiSubsetExports);\n\nfunction createAssertionMessage(util, assertion, hasArgs) {\n const not = util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n const name = `${util.flag(assertion, \"_name\")}(${\"expected\" })`;\n const promiseName = util.flag(assertion, \"promise\");\n const promise = promiseName ? `.${promiseName}` : \"\";\n return `expect(actual)${promise}.${not}${name}`;\n}\nfunction recordAsyncExpect(_test, promise, assertion, error) {\n const test = _test;\n if (test && promise instanceof Promise) {\n promise = promise.finally(() => {\n if (!test.promises) {\n return;\n }\n const index = test.promises.indexOf(promise);\n if (index !== -1) {\n test.promises.splice(index, 1);\n }\n });\n if (!test.promises) {\n test.promises = [];\n }\n test.promises.push(promise);\n let resolved = false;\n test.onFinished ??= [];\n test.onFinished.push(() => {\n if (!resolved) {\n const processor = globalThis.__vitest_worker__?.onFilterStackTrace || ((s) => s || \"\");\n const stack = processor(error.stack);\n console.warn([\n `Promise returned by \\`${assertion}\\` was not awaited. `,\n \"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. \",\n \"Please remember to await the assertion.\\n\",\n stack\n ].join(\"\"));\n }\n });\n return {\n then(onFullfilled, onRejected) {\n resolved = true;\n return promise.then(onFullfilled, onRejected);\n },\n catch(onRejected) {\n return promise.catch(onRejected);\n },\n finally(onFinally) {\n return promise.finally(onFinally);\n },\n [Symbol.toStringTag]: \"Promise\"\n };\n }\n return promise;\n}\n\nlet _client;\nfunction getSnapshotClient() {\n if (!_client) {\n _client = new SnapshotClient({\n isEqual: (received, expected) => {\n return equals(received, expected, [iterableEquality, subsetEquality]);\n }\n });\n }\n return _client;\n}\nfunction getError(expected, promise) {\n if (typeof expected !== \"function\") {\n if (!promise) {\n throw new Error(\n `expected must be a function, received ${typeof expected}`\n );\n }\n return expected;\n }\n try {\n expected();\n } catch (e) {\n return e;\n }\n throw new Error(\"snapshot function didn't throw\");\n}\nfunction getTestNames(test) {\n if (!test) {\n return {};\n }\n return {\n filepath: test.file.filepath,\n name: getNames(test).slice(1).join(\" > \")\n };\n}\nconst SnapshotPlugin = (chai, utils) => {\n for (const key of [\"matchSnapshot\", \"toMatchSnapshot\"]) {\n utils.addMethod(\n chai.Assertion.prototype,\n key,\n function(properties, message) {\n utils.flag(this, \"_name\", key);\n const isNot = utils.flag(this, \"negate\");\n if (isNot) {\n throw new Error(`${key} cannot be used with \"not\"`);\n }\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n if (typeof properties === \"string\" && typeof message === \"undefined\") {\n message = properties;\n properties = void 0;\n }\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: false,\n properties,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n }\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchFileSnapshot\",\n function(file, message) {\n utils.flag(this, \"_name\", \"toMatchFileSnapshot\");\n const isNot = utils.flag(this, \"negate\");\n if (isNot) {\n throw new Error('toMatchFileSnapshot cannot be used with \"not\"');\n }\n const error = new Error(\"resolves\");\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const errorMessage = utils.flag(this, \"message\");\n const promise = getSnapshotClient().assertRaw({\n received: expected,\n message,\n isInline: false,\n rawSnapshot: {\n file\n },\n errorMessage,\n ...getTestNames(test)\n });\n return recordAsyncExpect(\n test,\n promise,\n createAssertionMessage(utils, this),\n error\n );\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toMatchInlineSnapshot\",\n function __INLINE_SNAPSHOT__(properties, inlineSnapshot, message) {\n utils.flag(this, \"_name\", \"toMatchInlineSnapshot\");\n const isNot = utils.flag(this, \"negate\");\n if (isNot) {\n throw new Error('toMatchInlineSnapshot cannot be used with \"not\"');\n }\n const test = utils.flag(this, \"vitest-test\");\n const isInsideEach = test && (test.each || test.suite?.each);\n if (isInsideEach) {\n throw new Error(\n \"InlineSnapshot cannot be used inside of test.each or describe.each\"\n );\n }\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n if (typeof properties === \"string\") {\n message = inlineSnapshot;\n inlineSnapshot = properties;\n properties = void 0;\n }\n if (inlineSnapshot) {\n inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n }\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: expected,\n message,\n isInline: true,\n properties,\n inlineSnapshot,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingSnapshot\",\n function(message) {\n utils.flag(this, \"_name\", \"toThrowErrorMatchingSnapshot\");\n const isNot = utils.flag(this, \"negate\");\n if (isNot) {\n throw new Error(\n 'toThrowErrorMatchingSnapshot cannot be used with \"not\"'\n );\n }\n const expected = utils.flag(this, \"object\");\n const test = utils.flag(this, \"vitest-test\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n getSnapshotClient().assert({\n received: getError(expected, promise),\n message,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(\n chai.Assertion.prototype,\n \"toThrowErrorMatchingInlineSnapshot\",\n function __INLINE_SNAPSHOT__(inlineSnapshot, message) {\n const isNot = utils.flag(this, \"negate\");\n if (isNot) {\n throw new Error(\n 'toThrowErrorMatchingInlineSnapshot cannot be used with \"not\"'\n );\n }\n const test = utils.flag(this, \"vitest-test\");\n const isInsideEach = test && (test.each || test.suite?.each);\n if (isInsideEach) {\n throw new Error(\n \"InlineSnapshot cannot be used inside of test.each or describe.each\"\n );\n }\n const expected = utils.flag(this, \"object\");\n const error = utils.flag(this, \"error\");\n const promise = utils.flag(this, \"promise\");\n const errorMessage = utils.flag(this, \"message\");\n if (inlineSnapshot) {\n inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n }\n getSnapshotClient().assert({\n received: getError(expected, promise),\n message,\n inlineSnapshot,\n isInline: true,\n error,\n errorMessage,\n ...getTestNames(test)\n });\n }\n );\n utils.addMethod(chai.expect, \"addSnapshotSerializer\", addSerializer);\n};\n\nchai$1.use(JestExtend);\nchai$1.use(JestChaiExpect);\nchai$1.use(Subset);\nchai$1.use(SnapshotPlugin);\nchai$1.use(JestAsymmetricMatchers);\n\nfunction createExpect(test) {\n const expect = (value, message) => {\n const { assertionCalls } = getState(expect);\n setState({ assertionCalls: assertionCalls + 1 }, expect);\n const assert2 = chai$1.expect(value, message);\n const _test = test || getCurrentTest();\n if (_test) {\n return assert2.withTest(_test);\n } else {\n return assert2;\n }\n };\n Object.assign(expect, chai$1.expect);\n Object.assign(expect, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);\n expect.getState = () => getState(expect);\n expect.setState = (state) => setState(state, expect);\n const globalState = getState(globalThis[GLOBAL_EXPECT]) || {};\n setState(\n {\n // this should also add \"snapshotState\" that is added conditionally\n ...globalState,\n assertionCalls: 0,\n isExpectingAssertions: false,\n isExpectingAssertionsError: null,\n expectedAssertionsNumber: null,\n expectedAssertionsNumberErrorGen: null,\n environment: getCurrentEnvironment(),\n get testPath() {\n return getWorkerState().filepath;\n },\n currentTestName: test ? getTestName(test) : globalState.currentTestName\n },\n expect\n );\n expect.extend = (matchers) => chai$1.expect.extend(expect, matchers);\n expect.addEqualityTesters = (customTesters) => addCustomEqualityTesters(customTesters);\n expect.soft = (...args) => {\n return expect(...args).withContext({ soft: true });\n };\n expect.poll = createExpectPoll(expect);\n expect.unreachable = (message) => {\n chai$1.assert.fail(\n `expected${message ? ` \"${message}\" ` : \" \"}not to be reached`\n );\n };\n function assertions(expected) {\n const errorGen = () => new Error(\n `expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`\n );\n if (Error.captureStackTrace) {\n Error.captureStackTrace(errorGen(), assertions);\n }\n expect.setState({\n expectedAssertionsNumber: expected,\n expectedAssertionsNumberErrorGen: errorGen\n });\n }\n function hasAssertions() {\n const error = new Error(\"expected any number of assertion, but got none\");\n if (Error.captureStackTrace) {\n Error.captureStackTrace(error, hasAssertions);\n }\n expect.setState({\n isExpectingAssertions: true,\n isExpectingAssertionsError: error\n });\n }\n chai$1.util.addMethod(expect, \"assertions\", assertions);\n chai$1.util.addMethod(expect, \"hasAssertions\", hasAssertions);\n return expect;\n}\nconst globalExpect = createExpect();\nObject.defineProperty(globalThis, GLOBAL_EXPECT, {\n value: globalExpect,\n writable: true,\n configurable: true\n});\n\nvar fakeTimersSrc = {};\n\nvar global;\nvar hasRequiredGlobal;\n\nfunction requireGlobal () {\n\tif (hasRequiredGlobal) return global;\n\thasRequiredGlobal = 1;\n\n\t/**\n\t * A reference to the global object\n\t *\n\t * @type {object} globalObject\n\t */\n\tvar globalObject;\n\n\t/* istanbul ignore else */\n\tif (typeof commonjsGlobal !== \"undefined\") {\n\t // Node\n\t globalObject = commonjsGlobal;\n\t} else if (typeof window !== \"undefined\") {\n\t // Browser\n\t globalObject = window;\n\t} else {\n\t // WebWorker\n\t globalObject = self;\n\t}\n\n\tglobal = globalObject;\n\treturn global;\n}\n\nvar throwsOnProto_1;\nvar hasRequiredThrowsOnProto;\n\nfunction requireThrowsOnProto () {\n\tif (hasRequiredThrowsOnProto) return throwsOnProto_1;\n\thasRequiredThrowsOnProto = 1;\n\n\t/**\n\t * Is true when the environment causes an error to be thrown for accessing the\n\t * __proto__ property.\n\t *\n\t * This is necessary in order to support `node --disable-proto=throw`.\n\t *\n\t * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto\n\t *\n\t * @type {boolean}\n\t */\n\tlet throwsOnProto;\n\ttry {\n\t const object = {};\n\t // eslint-disable-next-line no-proto, no-unused-expressions\n\t object.__proto__;\n\t throwsOnProto = false;\n\t} catch (_) {\n\t // This branch is covered when tests are run with `--disable-proto=throw`,\n\t // however we can test both branches at the same time, so this is ignored\n\t /* istanbul ignore next */\n\t throwsOnProto = true;\n\t}\n\n\tthrowsOnProto_1 = throwsOnProto;\n\treturn throwsOnProto_1;\n}\n\nvar copyPrototypeMethods;\nvar hasRequiredCopyPrototypeMethods;\n\nfunction requireCopyPrototypeMethods () {\n\tif (hasRequiredCopyPrototypeMethods) return copyPrototypeMethods;\n\thasRequiredCopyPrototypeMethods = 1;\n\n\tvar call = Function.call;\n\tvar throwsOnProto = requireThrowsOnProto();\n\n\tvar disallowedProperties = [\n\t // ignore size because it throws from Map\n\t \"size\",\n\t \"caller\",\n\t \"callee\",\n\t \"arguments\",\n\t];\n\n\t// This branch is covered when tests are run with `--disable-proto=throw`,\n\t// however we can test both branches at the same time, so this is ignored\n\t/* istanbul ignore next */\n\tif (throwsOnProto) {\n\t disallowedProperties.push(\"__proto__\");\n\t}\n\n\tcopyPrototypeMethods = function copyPrototypeMethods(prototype) {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t return Object.getOwnPropertyNames(prototype).reduce(function (\n\t result,\n\t name\n\t ) {\n\t if (disallowedProperties.includes(name)) {\n\t return result;\n\t }\n\n\t if (typeof prototype[name] !== \"function\") {\n\t return result;\n\t }\n\n\t result[name] = call.bind(prototype[name]);\n\n\t return result;\n\t },\n\t Object.create(null));\n\t};\n\treturn copyPrototypeMethods;\n}\n\nvar array;\nvar hasRequiredArray;\n\nfunction requireArray () {\n\tif (hasRequiredArray) return array;\n\thasRequiredArray = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tarray = copyPrototype(Array.prototype);\n\treturn array;\n}\n\nvar calledInOrder_1;\nvar hasRequiredCalledInOrder;\n\nfunction requireCalledInOrder () {\n\tif (hasRequiredCalledInOrder) return calledInOrder_1;\n\thasRequiredCalledInOrder = 1;\n\n\tvar every = requireArray().every;\n\n\t/**\n\t * @private\n\t */\n\tfunction hasCallsLeft(callMap, spy) {\n\t if (callMap[spy.id] === undefined) {\n\t callMap[spy.id] = 0;\n\t }\n\n\t return callMap[spy.id] < spy.callCount;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tfunction checkAdjacentCalls(callMap, spy, index, spies) {\n\t var calledBeforeNext = true;\n\n\t if (index !== spies.length - 1) {\n\t calledBeforeNext = spy.calledBefore(spies[index + 1]);\n\t }\n\n\t if (hasCallsLeft(callMap, spy) && calledBeforeNext) {\n\t callMap[spy.id] += 1;\n\t return true;\n\t }\n\n\t return false;\n\t}\n\n\t/**\n\t * A Sinon proxy object (fake, spy, stub)\n\t *\n\t * @typedef {object} SinonProxy\n\t * @property {Function} calledBefore - A method that determines if this proxy was called before another one\n\t * @property {string} id - Some id\n\t * @property {number} callCount - Number of times this proxy has been called\n\t */\n\n\t/**\n\t * Returns true when the spies have been called in the order they were supplied in\n\t *\n\t * @param {SinonProxy[] | SinonProxy} spies An array of proxies, or several proxies as arguments\n\t * @returns {boolean} true when spies are called in order, false otherwise\n\t */\n\tfunction calledInOrder(spies) {\n\t var callMap = {};\n\t // eslint-disable-next-line no-underscore-dangle\n\t var _spies = arguments.length > 1 ? arguments : spies;\n\n\t return every(_spies, checkAdjacentCalls.bind(null, callMap));\n\t}\n\n\tcalledInOrder_1 = calledInOrder;\n\treturn calledInOrder_1;\n}\n\nvar functionName;\nvar hasRequiredFunctionName;\n\nfunction requireFunctionName () {\n\tif (hasRequiredFunctionName) return functionName;\n\thasRequiredFunctionName = 1;\n\n\t/**\n\t * Returns a display name for a function\n\t *\n\t * @param {Function} func\n\t * @returns {string}\n\t */\n\tfunctionName = function functionName(func) {\n\t if (!func) {\n\t return \"\";\n\t }\n\n\t try {\n\t return (\n\t func.displayName ||\n\t func.name ||\n\t // Use function decomposition as a last resort to get function\n\t // name. Does not rely on function decomposition to work - if it\n\t // doesn't debugging will be slightly less informative\n\t // (i.e. toString will say 'spy' rather than 'myFunc').\n\t (String(func).match(/function ([^\\s(]+)/) || [])[1]\n\t );\n\t } catch (e) {\n\t // Stringify may fail and we might get an exception, as a last-last\n\t // resort fall back to empty string.\n\t return \"\";\n\t }\n\t};\n\treturn functionName;\n}\n\nvar className_1;\nvar hasRequiredClassName;\n\nfunction requireClassName () {\n\tif (hasRequiredClassName) return className_1;\n\thasRequiredClassName = 1;\n\n\tvar functionName = requireFunctionName();\n\n\t/**\n\t * Returns a display name for a value from a constructor\n\t *\n\t * @param {object} value A value to examine\n\t * @returns {(string|null)} A string or null\n\t */\n\tfunction className(value) {\n\t return (\n\t (value.constructor && value.constructor.name) ||\n\t // The next branch is for IE11 support only:\n\t // Because the name property is not set on the prototype\n\t // of the Function object, we finally try to grab the\n\t // name from its definition. This will never be reached\n\t // in node, so we are not able to test this properly.\n\t // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name\n\t (typeof value.constructor === \"function\" &&\n\t /* istanbul ignore next */\n\t functionName(value.constructor)) ||\n\t null\n\t );\n\t}\n\n\tclassName_1 = className;\n\treturn className_1;\n}\n\nvar deprecated = {};\n\n/* eslint-disable no-console */\n\nvar hasRequiredDeprecated;\n\nfunction requireDeprecated () {\n\tif (hasRequiredDeprecated) return deprecated;\n\thasRequiredDeprecated = 1;\n\t(function (exports) {\n\n\t\t/**\n\t\t * Returns a function that will invoke the supplied function and print a\n\t\t * deprecation warning to the console each time it is called.\n\t\t *\n\t\t * @param {Function} func\n\t\t * @param {string} msg\n\t\t * @returns {Function}\n\t\t */\n\t\texports.wrap = function (func, msg) {\n\t\t var wrapped = function () {\n\t\t exports.printWarning(msg);\n\t\t return func.apply(this, arguments);\n\t\t };\n\t\t if (func.prototype) {\n\t\t wrapped.prototype = func.prototype;\n\t\t }\n\t\t return wrapped;\n\t\t};\n\n\t\t/**\n\t\t * Returns a string which can be supplied to `wrap()` to notify the user that a\n\t\t * particular part of the sinon API has been deprecated.\n\t\t *\n\t\t * @param {string} packageName\n\t\t * @param {string} funcName\n\t\t * @returns {string}\n\t\t */\n\t\texports.defaultMsg = function (packageName, funcName) {\n\t\t return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;\n\t\t};\n\n\t\t/**\n\t\t * Prints a warning on the console, when it exists\n\t\t *\n\t\t * @param {string} msg\n\t\t * @returns {undefined}\n\t\t */\n\t\texports.printWarning = function (msg) {\n\t\t /* istanbul ignore next */\n\t\t if (typeof process === \"object\" && process.emitWarning) {\n\t\t // Emit Warnings in Node\n\t\t process.emitWarning(msg);\n\t\t } else if (console.info) {\n\t\t console.info(msg);\n\t\t } else {\n\t\t console.log(msg);\n\t\t }\n\t\t}; \n\t} (deprecated));\n\treturn deprecated;\n}\n\nvar every;\nvar hasRequiredEvery;\n\nfunction requireEvery () {\n\tif (hasRequiredEvery) return every;\n\thasRequiredEvery = 1;\n\n\t/**\n\t * Returns true when fn returns true for all members of obj.\n\t * This is an every implementation that works for all iterables\n\t *\n\t * @param {object} obj\n\t * @param {Function} fn\n\t * @returns {boolean}\n\t */\n\tevery = function every(obj, fn) {\n\t var pass = true;\n\n\t try {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t obj.forEach(function () {\n\t if (!fn.apply(this, arguments)) {\n\t // Throwing an error is the only way to break `forEach`\n\t throw new Error();\n\t }\n\t });\n\t } catch (e) {\n\t pass = false;\n\t }\n\n\t return pass;\n\t};\n\treturn every;\n}\n\nvar orderByFirstCall_1;\nvar hasRequiredOrderByFirstCall;\n\nfunction requireOrderByFirstCall () {\n\tif (hasRequiredOrderByFirstCall) return orderByFirstCall_1;\n\thasRequiredOrderByFirstCall = 1;\n\n\tvar sort = requireArray().sort;\n\tvar slice = requireArray().slice;\n\n\t/**\n\t * @private\n\t */\n\tfunction comparator(a, b) {\n\t // uuid, won't ever be equal\n\t var aCall = a.getCall(0);\n\t var bCall = b.getCall(0);\n\t var aId = (aCall && aCall.callId) || -1;\n\t var bId = (bCall && bCall.callId) || -1;\n\n\t return aId < bId ? -1 : 1;\n\t}\n\n\t/**\n\t * A Sinon proxy object (fake, spy, stub)\n\t *\n\t * @typedef {object} SinonProxy\n\t * @property {Function} getCall - A method that can return the first call\n\t */\n\n\t/**\n\t * Sorts an array of SinonProxy instances (fake, spy, stub) by their first call\n\t *\n\t * @param {SinonProxy[] | SinonProxy} spies\n\t * @returns {SinonProxy[]}\n\t */\n\tfunction orderByFirstCall(spies) {\n\t return sort(slice(spies), comparator);\n\t}\n\n\torderByFirstCall_1 = orderByFirstCall;\n\treturn orderByFirstCall_1;\n}\n\nvar _function;\nvar hasRequired_function;\n\nfunction require_function () {\n\tif (hasRequired_function) return _function;\n\thasRequired_function = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\t_function = copyPrototype(Function.prototype);\n\treturn _function;\n}\n\nvar map;\nvar hasRequiredMap;\n\nfunction requireMap () {\n\tif (hasRequiredMap) return map;\n\thasRequiredMap = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tmap = copyPrototype(Map.prototype);\n\treturn map;\n}\n\nvar object;\nvar hasRequiredObject;\n\nfunction requireObject () {\n\tif (hasRequiredObject) return object;\n\thasRequiredObject = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tobject = copyPrototype(Object.prototype);\n\treturn object;\n}\n\nvar set;\nvar hasRequiredSet;\n\nfunction requireSet () {\n\tif (hasRequiredSet) return set;\n\thasRequiredSet = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tset = copyPrototype(Set.prototype);\n\treturn set;\n}\n\nvar string;\nvar hasRequiredString;\n\nfunction requireString () {\n\tif (hasRequiredString) return string;\n\thasRequiredString = 1;\n\n\tvar copyPrototype = requireCopyPrototypeMethods();\n\n\tstring = copyPrototype(String.prototype);\n\treturn string;\n}\n\nvar prototypes;\nvar hasRequiredPrototypes;\n\nfunction requirePrototypes () {\n\tif (hasRequiredPrototypes) return prototypes;\n\thasRequiredPrototypes = 1;\n\n\tprototypes = {\n\t array: requireArray(),\n\t function: require_function(),\n\t map: requireMap(),\n\t object: requireObject(),\n\t set: requireSet(),\n\t string: requireString(),\n\t};\n\treturn prototypes;\n}\n\nvar typeDetect$1 = {exports: {}};\n\nvar typeDetect = typeDetect$1.exports;\n\nvar hasRequiredTypeDetect;\n\nfunction requireTypeDetect () {\n\tif (hasRequiredTypeDetect) return typeDetect$1.exports;\n\thasRequiredTypeDetect = 1;\n\t(function (module, exports) {\n\t\t(function (global, factory) {\n\t\t\tmodule.exports = factory() ;\n\t\t}(typeDetect, (function () {\n\t\t/* !\n\t\t * type-detect\n\t\t * Copyright(c) 2013 jake luer <jake@alogicalparadox.com>\n\t\t * MIT Licensed\n\t\t */\n\t\tvar promiseExists = typeof Promise === 'function';\n\n\t\t/* eslint-disable no-undef */\n\t\tvar globalObject = typeof self === 'object' ? self : commonjsGlobal; // eslint-disable-line id-blacklist\n\n\t\tvar symbolExists = typeof Symbol !== 'undefined';\n\t\tvar mapExists = typeof Map !== 'undefined';\n\t\tvar setExists = typeof Set !== 'undefined';\n\t\tvar weakMapExists = typeof WeakMap !== 'undefined';\n\t\tvar weakSetExists = typeof WeakSet !== 'undefined';\n\t\tvar dataViewExists = typeof DataView !== 'undefined';\n\t\tvar symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\n\t\tvar symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\n\t\tvar setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\n\t\tvar mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\n\t\tvar setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\n\t\tvar mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\n\t\tvar arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\n\t\tvar arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\n\t\tvar stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\n\t\tvar stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\n\t\tvar toStringLeftSliceLength = 8;\n\t\tvar toStringRightSliceLength = -1;\n\t\t/**\n\t\t * ### typeOf (obj)\n\t\t *\n\t\t * Uses `Object.prototype.toString` to determine the type of an object,\n\t\t * normalising behaviour across engine versions & well optimised.\n\t\t *\n\t\t * @param {Mixed} object\n\t\t * @return {String} object type\n\t\t * @api public\n\t\t */\n\t\tfunction typeDetect(obj) {\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n\t\t * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n\t\t * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n\t\t * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n\t\t * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n\t\t * Post:\n\t\t * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n\t\t * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n\t\t * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n\t\t * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n\t\t * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n\t\t */\n\t\t var typeofObj = typeof obj;\n\t\t if (typeofObj !== 'object') {\n\t\t return typeofObj;\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * null x 28,645,765 ops/sec ±1.17% (82 runs sampled)\n\t\t * Post:\n\t\t * null x 36,428,962 ops/sec ±1.37% (84 runs sampled)\n\t\t */\n\t\t if (obj === null) {\n\t\t return 'null';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * Test: `Object.prototype.toString.call(window)``\n\t\t * - Node === \"[object global]\"\n\t\t * - Chrome === \"[object global]\"\n\t\t * - Firefox === \"[object Window]\"\n\t\t * - PhantomJS === \"[object Window]\"\n\t\t * - Safari === \"[object Window]\"\n\t\t * - IE 11 === \"[object Window]\"\n\t\t * - IE Edge === \"[object Window]\"\n\t\t * Test: `Object.prototype.toString.call(this)``\n\t\t * - Chrome Worker === \"[object global]\"\n\t\t * - Firefox Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t\t * - Safari Worker === \"[object DedicatedWorkerGlobalScope]\"\n\t\t * - IE 11 Worker === \"[object WorkerGlobalScope]\"\n\t\t * - IE Edge Worker === \"[object WorkerGlobalScope]\"\n\t\t */\n\t\t if (obj === globalObject) {\n\t\t return 'global';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)\n\t\t * Post:\n\t\t * array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)\n\t\t */\n\t\t if (\n\t\t Array.isArray(obj) &&\n\t\t (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))\n\t\t ) {\n\t\t return 'Array';\n\t\t }\n\n\t\t // Not caching existence of `window` and related properties due to potential\n\t\t // for `window` to be unset before tests in quasi-browser environments.\n\t\t if (typeof window === 'object' && window !== null) {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/browsers.html#location)\n\t\t * WhatWG HTML$7.7.3 - The `Location` interface\n\t\t * Test: `Object.prototype.toString.call(window.location)``\n\t\t * - IE <=11 === \"[object Object]\"\n\t\t * - IE Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (typeof window.location === 'object' && obj === window.location) {\n\t\t return 'Location';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#document)\n\t\t * WhatWG HTML$3.1.1 - The `Document` object\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * WhatWG HTML states:\n\t\t * > For historical reasons, Window objects must also have a\n\t\t * > writable, configurable, non-enumerable property named\n\t\t * > HTMLDocument whose value is the Document interface object.\n\t\t * Test: `Object.prototype.toString.call(document)``\n\t\t * - Chrome === \"[object HTMLDocument]\"\n\t\t * - Firefox === \"[object HTMLDocument]\"\n\t\t * - Safari === \"[object HTMLDocument]\"\n\t\t * - IE <=10 === \"[object Document]\"\n\t\t * - IE 11 === \"[object HTMLDocument]\"\n\t\t * - IE Edge <=13 === \"[object HTMLDocument]\"\n\t\t */\n\t\t if (typeof window.document === 'object' && obj === window.document) {\n\t\t return 'Document';\n\t\t }\n\n\t\t if (typeof window.navigator === 'object') {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)\n\t\t * WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray\n\t\t * Test: `Object.prototype.toString.call(navigator.mimeTypes)``\n\t\t * - IE <=10 === \"[object MSMimeTypesCollection]\"\n\t\t */\n\t\t if (typeof window.navigator.mimeTypes === 'object' &&\n\t\t obj === window.navigator.mimeTypes) {\n\t\t return 'MimeTypeArray';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t\t * WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray\n\t\t * Test: `Object.prototype.toString.call(navigator.plugins)``\n\t\t * - IE <=10 === \"[object MSPluginsCollection]\"\n\t\t */\n\t\t if (typeof window.navigator.plugins === 'object' &&\n\t\t obj === window.navigator.plugins) {\n\t\t return 'PluginArray';\n\t\t }\n\t\t }\n\n\t\t if ((typeof window.HTMLElement === 'function' ||\n\t\t typeof window.HTMLElement === 'object') &&\n\t\t obj instanceof window.HTMLElement) {\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)\n\t\t * WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`\n\t\t * Test: `Object.prototype.toString.call(document.createElement('blockquote'))``\n\t\t * - IE <=10 === \"[object HTMLBlockElement]\"\n\t\t */\n\t\t if (obj.tagName === 'BLOCKQUOTE') {\n\t\t return 'HTMLQuoteElement';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#htmltabledatacellelement)\n\t\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * Test: Object.prototype.toString.call(document.createElement('td'))\n\t\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t\t * - Safari === \"[object HTMLTableCellElement]\"\n\t\t */\n\t\t if (obj.tagName === 'TD') {\n\t\t return 'HTMLTableDataCellElement';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (https://html.spec.whatwg.org/#htmltableheadercellelement)\n\t\t * WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`\n\t\t * Note: Most browsers currently adher to the W3C DOM Level 2 spec\n\t\t * (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)\n\t\t * which suggests that browsers should use HTMLTableCellElement for\n\t\t * both TD and TH elements. WhatWG separates these.\n\t\t * Test: Object.prototype.toString.call(document.createElement('th'))\n\t\t * - Chrome === \"[object HTMLTableCellElement]\"\n\t\t * - Firefox === \"[object HTMLTableCellElement]\"\n\t\t * - Safari === \"[object HTMLTableCellElement]\"\n\t\t */\n\t\t if (obj.tagName === 'TH') {\n\t\t return 'HTMLTableHeaderCellElement';\n\t\t }\n\t\t }\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)\n\t\t * Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)\n\t\t * Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)\n\t\t * Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)\n\t\t * Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)\n\t\t * Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)\n\t\t * Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)\n\t\t * Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)\n\t\t * Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)\n\t\t * Post:\n\t\t * Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)\n\t\t * Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)\n\t\t * Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)\n\t\t * Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)\n\t\t * Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)\n\t\t * Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)\n\t\t * Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)\n\t\t * Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)\n\t\t * Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)\n\t\t */\n\t\t var stringTag = (symbolToStringTagExists && obj[Symbol.toStringTag]);\n\t\t if (typeof stringTag === 'string') {\n\t\t return stringTag;\n\t\t }\n\n\t\t var objPrototype = Object.getPrototypeOf(obj);\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)\n\t\t * regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)\n\t\t * Post:\n\t\t * regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)\n\t\t * regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)\n\t\t */\n\t\t if (objPrototype === RegExp.prototype) {\n\t\t return 'RegExp';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * date x 2,130,074 ops/sec ±4.42% (68 runs sampled)\n\t\t * Post:\n\t\t * date x 3,953,779 ops/sec ±1.35% (77 runs sampled)\n\t\t */\n\t\t if (objPrototype === Date.prototype) {\n\t\t return 'Date';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)\n\t\t * ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be \"Promise\":\n\t\t * Test: `Object.prototype.toString.call(Promise.resolve())``\n\t\t * - Chrome <=47 === \"[object Object]\"\n\t\t * - Edge <=20 === \"[object Object]\"\n\t\t * - Firefox 29-Latest === \"[object Promise]\"\n\t\t * - Safari 7.1-Latest === \"[object Promise]\"\n\t\t */\n\t\t if (promiseExists && objPrototype === Promise.prototype) {\n\t\t return 'Promise';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * set x 2,222,186 ops/sec ±1.31% (82 runs sampled)\n\t\t * Post:\n\t\t * set x 4,545,879 ops/sec ±1.13% (83 runs sampled)\n\t\t */\n\t\t if (setExists && objPrototype === Set.prototype) {\n\t\t return 'Set';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * map x 2,396,842 ops/sec ±1.59% (81 runs sampled)\n\t\t * Post:\n\t\t * map x 4,183,945 ops/sec ±6.59% (82 runs sampled)\n\t\t */\n\t\t if (mapExists && objPrototype === Map.prototype) {\n\t\t return 'Map';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)\n\t\t * Post:\n\t\t * weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)\n\t\t */\n\t\t if (weakSetExists && objPrototype === WeakSet.prototype) {\n\t\t return 'WeakSet';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)\n\t\t * Post:\n\t\t * weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)\n\t\t */\n\t\t if (weakMapExists && objPrototype === WeakMap.prototype) {\n\t\t return 'WeakMap';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)\n\t\t * ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be \"DataView\":\n\t\t * Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (dataViewExists && objPrototype === DataView.prototype) {\n\t\t return 'DataView';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)\n\t\t * ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be \"Map Iterator\":\n\t\t * Test: `Object.prototype.toString.call(new Map().entries())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (mapExists && objPrototype === mapIteratorPrototype) {\n\t\t return 'Map Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)\n\t\t * ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be \"Set Iterator\":\n\t\t * Test: `Object.prototype.toString.call(new Set().entries())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (setExists && objPrototype === setIteratorPrototype) {\n\t\t return 'Set Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)\n\t\t * ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be \"Array Iterator\":\n\t\t * Test: `Object.prototype.toString.call([][Symbol.iterator]())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {\n\t\t return 'Array Iterator';\n\t\t }\n\n\t\t /* ! Spec Conformance\n\t\t * (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)\n\t\t * ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be \"String Iterator\":\n\t\t * Test: `Object.prototype.toString.call(''[Symbol.iterator]())``\n\t\t * - Edge <=13 === \"[object Object]\"\n\t\t */\n\t\t if (stringIteratorExists && objPrototype === stringIteratorPrototype) {\n\t\t return 'String Iterator';\n\t\t }\n\n\t\t /* ! Speed optimisation\n\t\t * Pre:\n\t\t * object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)\n\t\t * Post:\n\t\t * object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)\n\t\t */\n\t\t if (objPrototype === null) {\n\t\t return 'Object';\n\t\t }\n\n\t\t return Object\n\t\t .prototype\n\t\t .toString\n\t\t .call(obj)\n\t\t .slice(toStringLeftSliceLength, toStringRightSliceLength);\n\t\t}\n\n\t\treturn typeDetect;\n\n\t\t}))); \n\t} (typeDetect$1));\n\treturn typeDetect$1.exports;\n}\n\nvar typeOf;\nvar hasRequiredTypeOf;\n\nfunction requireTypeOf () {\n\tif (hasRequiredTypeOf) return typeOf;\n\thasRequiredTypeOf = 1;\n\n\tvar type = requireTypeDetect();\n\n\t/**\n\t * Returns the lower-case result of running type from type-detect on the value\n\t *\n\t * @param {*} value\n\t * @returns {string}\n\t */\n\ttypeOf = function typeOf(value) {\n\t return type(value).toLowerCase();\n\t};\n\treturn typeOf;\n}\n\nvar valueToString_1;\nvar hasRequiredValueToString;\n\nfunction requireValueToString () {\n\tif (hasRequiredValueToString) return valueToString_1;\n\thasRequiredValueToString = 1;\n\n\t/**\n\t * Returns a string representation of the value\n\t *\n\t * @param {*} value\n\t * @returns {string}\n\t */\n\tfunction valueToString(value) {\n\t if (value && value.toString) {\n\t // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods\n\t return value.toString();\n\t }\n\t return String(value);\n\t}\n\n\tvalueToString_1 = valueToString;\n\treturn valueToString_1;\n}\n\nvar lib;\nvar hasRequiredLib;\n\nfunction requireLib () {\n\tif (hasRequiredLib) return lib;\n\thasRequiredLib = 1;\n\n\tlib = {\n\t global: requireGlobal(),\n\t calledInOrder: requireCalledInOrder(),\n\t className: requireClassName(),\n\t deprecated: requireDeprecated(),\n\t every: requireEvery(),\n\t functionName: requireFunctionName(),\n\t orderByFirstCall: requireOrderByFirstCall(),\n\t prototypes: requirePrototypes(),\n\t typeOf: requireTypeOf(),\n\t valueToString: requireValueToString(),\n\t};\n\treturn lib;\n}\n\nvar hasRequiredFakeTimersSrc;\n\nfunction requireFakeTimersSrc () {\n\tif (hasRequiredFakeTimersSrc) return fakeTimersSrc;\n\thasRequiredFakeTimersSrc = 1;\n\n\tconst globalObject = requireLib().global;\n\tlet timersModule;\n\tif (typeof __vitest_required__ !== 'undefined') {\n\t try {\n\t timersModule = __vitest_required__.timers;\n\t } catch (e) {\n\t // ignored\n\t }\n\t}\n\n\t/**\n\t * @typedef {object} IdleDeadline\n\t * @property {boolean} didTimeout - whether or not the callback was called before reaching the optional timeout\n\t * @property {function():number} timeRemaining - a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period\n\t */\n\n\t/**\n\t * Queues a function to be called during a browser's idle periods\n\t *\n\t * @callback RequestIdleCallback\n\t * @param {function(IdleDeadline)} callback\n\t * @param {{timeout: number}} options - an options object\n\t * @returns {number} the id\n\t */\n\n\t/**\n\t * @callback NextTick\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {...*} arguments - optional arguments to call the callback with\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback SetImmediate\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {...*} arguments - optional arguments to call the callback with\n\t * @returns {NodeImmediate}\n\t */\n\n\t/**\n\t * @callback VoidVarArgsFunc\n\t * @param {...*} callback - the callback to run\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @typedef RequestAnimationFrame\n\t * @property {function(number):void} requestAnimationFrame\n\t * @returns {number} - the id\n\t */\n\n\t/**\n\t * @typedef Performance\n\t * @property {function(): number} now\n\t */\n\n\t/* eslint-disable jsdoc/require-property-description */\n\t/**\n\t * @typedef {object} Clock\n\t * @property {number} now - the current time\n\t * @property {Date} Date - the Date constructor\n\t * @property {number} loopLimit - the maximum number of timers before assuming an infinite loop\n\t * @property {RequestIdleCallback} requestIdleCallback\n\t * @property {function(number):void} cancelIdleCallback\n\t * @property {setTimeout} setTimeout\n\t * @property {clearTimeout} clearTimeout\n\t * @property {NextTick} nextTick\n\t * @property {queueMicrotask} queueMicrotask\n\t * @property {setInterval} setInterval\n\t * @property {clearInterval} clearInterval\n\t * @property {SetImmediate} setImmediate\n\t * @property {function(NodeImmediate):void} clearImmediate\n\t * @property {function():number} countTimers\n\t * @property {RequestAnimationFrame} requestAnimationFrame\n\t * @property {function(number):void} cancelAnimationFrame\n\t * @property {function():void} runMicrotasks\n\t * @property {function(string | number): number} tick\n\t * @property {function(string | number): Promise<number>} tickAsync\n\t * @property {function(): number} next\n\t * @property {function(): Promise<number>} nextAsync\n\t * @property {function(): number} runAll\n\t * @property {function(): number} runToFrame\n\t * @property {function(): Promise<number>} runAllAsync\n\t * @property {function(): number} runToLast\n\t * @property {function(): Promise<number>} runToLastAsync\n\t * @property {function(): void} reset\n\t * @property {function(number | Date): void} setSystemTime\n\t * @property {function(number): void} jump\n\t * @property {Performance} performance\n\t * @property {function(number[]): number[]} hrtime - process.hrtime (legacy)\n\t * @property {function(): void} uninstall Uninstall the clock.\n\t * @property {Function[]} methods - the methods that are faked\n\t * @property {boolean} [shouldClearNativeTimers] inherited from config\n\t * @property {{methodName:string, original:any}[] | undefined} timersModuleMethods\n\t */\n\t/* eslint-enable jsdoc/require-property-description */\n\n\t/**\n\t * Configuration object for the `install` method.\n\t *\n\t * @typedef {object} Config\n\t * @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)\n\t * @property {string[]} [toFake] names of the methods that should be faked.\n\t * @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()\n\t * @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)\n\t * @property {number} [advanceTimeDelta] increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)\n\t * @property {boolean} [shouldClearNativeTimers] forwards clear timer calls to native functions if they are not fakes (default: false)\n\t */\n\n\t/* eslint-disable jsdoc/require-property-description */\n\t/**\n\t * The internal structure to describe a scheduled fake timer\n\t *\n\t * @typedef {object} Timer\n\t * @property {Function} func\n\t * @property {*[]} args\n\t * @property {number} delay\n\t * @property {number} callAt\n\t * @property {number} createdAt\n\t * @property {boolean} immediate\n\t * @property {number} id\n\t * @property {Error} [error]\n\t */\n\n\t/**\n\t * A Node timer\n\t *\n\t * @typedef {object} NodeImmediate\n\t * @property {function(): boolean} hasRef\n\t * @property {function(): NodeImmediate} ref\n\t * @property {function(): NodeImmediate} unref\n\t */\n\t/* eslint-enable jsdoc/require-property-description */\n\n\t/* eslint-disable complexity */\n\n\t/**\n\t * Mocks available features in the specified global namespace.\n\t *\n\t * @param {*} _global Namespace to mock (e.g. `window`)\n\t * @returns {FakeTimers}\n\t */\n\tfunction withGlobal(_global) {\n\t const maxTimeout = Math.pow(2, 31) - 1; //see https://heycam.github.io/webidl/#abstract-opdef-converttoint\n\t const idCounterStart = 1e12; // arbitrarily large number to avoid collisions with native timer IDs\n\t const NOOP = function () {\n\t return undefined;\n\t };\n\t const NOOP_ARRAY = function () {\n\t return [];\n\t };\n\t const timeoutResult = _global.setTimeout(NOOP, 0);\n\t const addTimerReturnsObject = typeof timeoutResult === \"object\";\n\t const hrtimePresent =\n\t _global.process && typeof _global.process.hrtime === \"function\";\n\t const hrtimeBigintPresent =\n\t hrtimePresent && typeof _global.process.hrtime.bigint === \"function\";\n\t const nextTickPresent =\n\t _global.process && typeof _global.process.nextTick === \"function\";\n\t const utilPromisify = _global.process && _global.__vitest_required__ && _global.__vitest_required__.util.promisify;\n\t const performancePresent =\n\t _global.performance && typeof _global.performance.now === \"function\";\n\t const hasPerformancePrototype =\n\t _global.Performance &&\n\t (typeof _global.Performance).match(/^(function|object)$/);\n\t const hasPerformanceConstructorPrototype =\n\t _global.performance &&\n\t _global.performance.constructor &&\n\t _global.performance.constructor.prototype;\n\t const queueMicrotaskPresent = _global.hasOwnProperty(\"queueMicrotask\");\n\t const requestAnimationFramePresent =\n\t _global.requestAnimationFrame &&\n\t typeof _global.requestAnimationFrame === \"function\";\n\t const cancelAnimationFramePresent =\n\t _global.cancelAnimationFrame &&\n\t typeof _global.cancelAnimationFrame === \"function\";\n\t const requestIdleCallbackPresent =\n\t _global.requestIdleCallback &&\n\t typeof _global.requestIdleCallback === \"function\";\n\t const cancelIdleCallbackPresent =\n\t _global.cancelIdleCallback &&\n\t typeof _global.cancelIdleCallback === \"function\";\n\t const setImmediatePresent =\n\t _global.setImmediate && typeof _global.setImmediate === \"function\";\n\t const intlPresent = _global.Intl && typeof _global.Intl === \"object\";\n\n\t _global.clearTimeout(timeoutResult);\n\n\t const NativeDate = _global.Date;\n\t const NativeIntl = _global.Intl;\n\t let uniqueTimerId = idCounterStart;\n\n\t /**\n\t * @param {number} num\n\t * @returns {boolean}\n\t */\n\t function isNumberFinite(num) {\n\t if (Number.isFinite) {\n\t return Number.isFinite(num);\n\t }\n\n\t return isFinite(num);\n\t }\n\n\t let isNearInfiniteLimit = false;\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} i\n\t */\n\t function checkIsNearInfiniteLimit(clock, i) {\n\t if (clock.loopLimit && i === clock.loopLimit - 1) {\n\t isNearInfiniteLimit = true;\n\t }\n\t }\n\n\t /**\n\t *\n\t */\n\t function resetIsNearInfiniteLimit() {\n\t isNearInfiniteLimit = false;\n\t }\n\n\t /**\n\t * Parse strings like \"01:10:00\" (meaning 1 hour, 10 minutes, 0 seconds) into\n\t * number of milliseconds. This is used to support human-readable strings passed\n\t * to clock.tick()\n\t *\n\t * @param {string} str\n\t * @returns {number}\n\t */\n\t function parseTime(str) {\n\t if (!str) {\n\t return 0;\n\t }\n\n\t const strings = str.split(\":\");\n\t const l = strings.length;\n\t let i = l;\n\t let ms = 0;\n\t let parsed;\n\n\t if (l > 3 || !/^(\\d\\d:){0,2}\\d\\d?$/.test(str)) {\n\t throw new Error(\n\t \"tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits\"\n\t );\n\t }\n\n\t while (i--) {\n\t parsed = parseInt(strings[i], 10);\n\n\t if (parsed >= 60) {\n\t throw new Error(`Invalid time ${str}`);\n\t }\n\n\t ms += parsed * Math.pow(60, l - i - 1);\n\t }\n\n\t return ms * 1000;\n\t }\n\n\t /**\n\t * Get the decimal part of the millisecond value as nanoseconds\n\t *\n\t * @param {number} msFloat the number of milliseconds\n\t * @returns {number} an integer number of nanoseconds in the range [0,1e6)\n\t *\n\t * Example: nanoRemainer(123.456789) -> 456789\n\t */\n\t function nanoRemainder(msFloat) {\n\t const modulo = 1e6;\n\t const remainder = (msFloat * 1e6) % modulo;\n\t const positiveRemainder =\n\t remainder < 0 ? remainder + modulo : remainder;\n\n\t return Math.floor(positiveRemainder);\n\t }\n\n\t /**\n\t * Used to grok the `now` parameter to createClock.\n\t *\n\t * @param {Date|number} epoch the system time\n\t * @returns {number}\n\t */\n\t function getEpoch(epoch) {\n\t if (!epoch) {\n\t return 0;\n\t }\n\t if (typeof epoch.getTime === \"function\") {\n\t return epoch.getTime();\n\t }\n\t if (typeof epoch === \"number\") {\n\t return epoch;\n\t }\n\t throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n\t }\n\n\t /**\n\t * @param {number} from\n\t * @param {number} to\n\t * @param {Timer} timer\n\t * @returns {boolean}\n\t */\n\t function inRange(from, to, timer) {\n\t return timer && timer.callAt >= from && timer.callAt <= to;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} job\n\t */\n\t function getInfiniteLoopError(clock, job) {\n\t const infiniteLoopError = new Error(\n\t `Aborting after running ${clock.loopLimit} timers, assuming an infinite loop!`\n\t );\n\n\t if (!job.error) {\n\t return infiniteLoopError;\n\t }\n\n\t // pattern never matched in Node\n\t const computedTargetPattern = /target\\.*[<|(|[].*?[>|\\]|)]\\s*/;\n\t let clockMethodPattern = new RegExp(\n\t String(Object.keys(clock).join(\"|\"))\n\t );\n\n\t if (addTimerReturnsObject) {\n\t // node.js environment\n\t clockMethodPattern = new RegExp(\n\t `\\\\s+at (Object\\\\.)?(?:${Object.keys(clock).join(\"|\")})\\\\s+`\n\t );\n\t }\n\n\t let matchedLineIndex = -1;\n\t job.error.stack.split(\"\\n\").some(function (line, i) {\n\t // If we've matched a computed target line (e.g. setTimeout) then we\n\t // don't need to look any further. Return true to stop iterating.\n\t const matchedComputedTarget = line.match(computedTargetPattern);\n\t /* istanbul ignore if */\n\t if (matchedComputedTarget) {\n\t matchedLineIndex = i;\n\t return true;\n\t }\n\n\t // If we've matched a clock method line, then there may still be\n\t // others further down the trace. Return false to keep iterating.\n\t const matchedClockMethod = line.match(clockMethodPattern);\n\t if (matchedClockMethod) {\n\t matchedLineIndex = i;\n\t return false;\n\t }\n\n\t // If we haven't matched anything on this line, but we matched\n\t // previously and set the matched line index, then we can stop.\n\t // If we haven't matched previously, then we should keep iterating.\n\t return matchedLineIndex >= 0;\n\t });\n\n\t const stack = `${infiniteLoopError}\\n${job.type || \"Microtask\"} - ${\n\t job.func.name || \"anonymous\"\n\t }\\n${job.error.stack\n\t .split(\"\\n\")\n\t .slice(matchedLineIndex + 1)\n\t .join(\"\\n\")}`;\n\n\t try {\n\t Object.defineProperty(infiniteLoopError, \"stack\", {\n\t value: stack,\n\t });\n\t } catch (e) {\n\t // noop\n\t }\n\n\t return infiniteLoopError;\n\t }\n\n\t /**\n\t * @param {Date} target\n\t * @param {Date} source\n\t * @returns {Date} the target after modifications\n\t */\n\t function mirrorDateProperties(target, source) {\n\t let prop;\n\t for (prop in source) {\n\t if (source.hasOwnProperty(prop)) {\n\t target[prop] = source[prop];\n\t }\n\t }\n\n\t // set special now implementation\n\t if (source.now) {\n\t target.now = function now() {\n\t return target.clock.now;\n\t };\n\t } else {\n\t delete target.now;\n\t }\n\n\t // set special toSource implementation\n\t if (source.toSource) {\n\t target.toSource = function toSource() {\n\t return source.toSource();\n\t };\n\t } else {\n\t delete target.toSource;\n\t }\n\n\t // set special toString implementation\n\t target.toString = function toString() {\n\t return source.toString();\n\t };\n\n\t target.prototype = source.prototype;\n\t target.parse = source.parse;\n\t target.UTC = source.UTC;\n\t target.prototype.toUTCString = source.prototype.toUTCString;\n\t target.isFake = true;\n\n\t return target;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function createDate() {\n\t /**\n\t * @param {number} year\n\t * @param {number} month\n\t * @param {number} date\n\t * @param {number} hour\n\t * @param {number} minute\n\t * @param {number} second\n\t * @param {number} ms\n\t * @returns {Date}\n\t */\n\t function ClockDate(year, month, date, hour, minute, second, ms) {\n\t // the Date constructor called as a function, ref Ecma-262 Edition 5.1, section 15.9.2.\n\t // This remains so in the 10th edition of 2019 as well.\n\t if (!(this instanceof ClockDate)) {\n\t return new NativeDate(ClockDate.clock.now).toString();\n\t }\n\n\t // if Date is called as a constructor with 'new' keyword\n\t // Defensive and verbose to avoid potential harm in passing\n\t // explicit undefined when user does not pass argument\n\t switch (arguments.length) {\n\t case 0:\n\t return new NativeDate(ClockDate.clock.now);\n\t case 1:\n\t return new NativeDate(year);\n\t case 2:\n\t return new NativeDate(year, month);\n\t case 3:\n\t return new NativeDate(year, month, date);\n\t case 4:\n\t return new NativeDate(year, month, date, hour);\n\t case 5:\n\t return new NativeDate(year, month, date, hour, minute);\n\t case 6:\n\t return new NativeDate(\n\t year,\n\t month,\n\t date,\n\t hour,\n\t minute,\n\t second\n\t );\n\t default:\n\t return new NativeDate(\n\t year,\n\t month,\n\t date,\n\t hour,\n\t minute,\n\t second,\n\t ms\n\t );\n\t }\n\t }\n\n\t return mirrorDateProperties(ClockDate, NativeDate);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function createIntl() {\n\t const ClockIntl = { ...NativeIntl };\n\n\t ClockIntl.DateTimeFormat = function (...args) {\n\t const realFormatter = new NativeIntl.DateTimeFormat(...args);\n\t const formatter = {};\n\n\t [\"formatRange\", \"formatRangeToParts\", \"resolvedOptions\"].forEach(\n\t (method) => {\n\t formatter[method] =\n\t realFormatter[method].bind(realFormatter);\n\t }\n\t );\n\n\t [\"format\", \"formatToParts\"].forEach((method) => {\n\t formatter[method] = function (date) {\n\t return realFormatter[method](date || ClockIntl.clock.now);\n\t };\n\t });\n\n\t return formatter;\n\t };\n\n\t ClockIntl.DateTimeFormat.prototype = Object.create(\n\t NativeIntl.DateTimeFormat.prototype\n\t );\n\n\t ClockIntl.DateTimeFormat.supportedLocalesOf =\n\t NativeIntl.DateTimeFormat.supportedLocalesOf;\n\n\t return ClockIntl;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function enqueueJob(clock, job) {\n\t // enqueues a microtick-deferred task - ecma262/#sec-enqueuejob\n\t if (!clock.jobs) {\n\t clock.jobs = [];\n\t }\n\t clock.jobs.push(job);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function runJobs(clock) {\n\t // runs all microtick-deferred tasks - ecma262/#sec-runjobs\n\t if (!clock.jobs) {\n\t return;\n\t }\n\t for (let i = 0; i < clock.jobs.length; i++) {\n\t const job = clock.jobs[i];\n\t job.func.apply(null, job.args);\n\n\t checkIsNearInfiniteLimit(clock, i);\n\t if (clock.loopLimit && i > clock.loopLimit) {\n\t throw getInfiniteLoopError(clock, job);\n\t }\n\t }\n\t resetIsNearInfiniteLimit();\n\t clock.jobs = [];\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} timer\n\t * @returns {number} id of the created timer\n\t */\n\t function addTimer(clock, timer) {\n\t if (timer.func === undefined) {\n\t throw new Error(\"Callback must be provided to timer calls\");\n\t }\n\n\t if (addTimerReturnsObject) {\n\t // Node.js environment\n\t if (typeof timer.func !== \"function\") {\n\t throw new TypeError(\n\t `[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${\n\t timer.func\n\t } of type ${typeof timer.func}`\n\t );\n\t }\n\t }\n\n\t if (isNearInfiniteLimit) {\n\t timer.error = new Error();\n\t }\n\n\t timer.type = timer.immediate ? \"Immediate\" : \"Timeout\";\n\n\t if (timer.hasOwnProperty(\"delay\")) {\n\t if (typeof timer.delay !== \"number\") {\n\t timer.delay = parseInt(timer.delay, 10);\n\t }\n\n\t if (!isNumberFinite(timer.delay)) {\n\t timer.delay = 0;\n\t }\n\t timer.delay = timer.delay > maxTimeout ? 1 : timer.delay;\n\t timer.delay = Math.max(0, timer.delay);\n\t }\n\n\t if (timer.hasOwnProperty(\"interval\")) {\n\t timer.type = \"Interval\";\n\t timer.interval = timer.interval > maxTimeout ? 1 : timer.interval;\n\t }\n\n\t if (timer.hasOwnProperty(\"animation\")) {\n\t timer.type = \"AnimationFrame\";\n\t timer.animation = true;\n\t }\n\n\t if (timer.hasOwnProperty(\"idleCallback\")) {\n\t timer.type = \"IdleCallback\";\n\t timer.idleCallback = true;\n\t }\n\n\t if (!clock.timers) {\n\t clock.timers = {};\n\t }\n\n\t timer.id = uniqueTimerId++;\n\t timer.createdAt = clock.now;\n\t timer.callAt =\n\t clock.now + (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n\t clock.timers[timer.id] = timer;\n\n\t if (addTimerReturnsObject) {\n\t const res = {\n\t refed: true,\n\t ref: function () {\n\t this.refed = true;\n\t return res;\n\t },\n\t unref: function () {\n\t this.refed = false;\n\t return res;\n\t },\n\t hasRef: function () {\n\t return this.refed;\n\t },\n\t refresh: function () {\n\t timer.callAt =\n\t clock.now +\n\t (parseInt(timer.delay) || (clock.duringTick ? 1 : 0));\n\n\t // it _might_ have been removed, but if not the assignment is perfectly fine\n\t clock.timers[timer.id] = timer;\n\n\t return res;\n\t },\n\t [Symbol.toPrimitive]: function () {\n\t return timer.id;\n\t },\n\t };\n\t return res;\n\t }\n\n\t return timer.id;\n\t }\n\n\t /* eslint consistent-return: \"off\" */\n\t /**\n\t * Timer comparitor\n\t *\n\t * @param {Timer} a\n\t * @param {Timer} b\n\t * @returns {number}\n\t */\n\t function compareTimers(a, b) {\n\t // Sort first by absolute timing\n\t if (a.callAt < b.callAt) {\n\t return -1;\n\t }\n\t if (a.callAt > b.callAt) {\n\t return 1;\n\t }\n\n\t // Sort next by immediate, immediate timers take precedence\n\t if (a.immediate && !b.immediate) {\n\t return -1;\n\t }\n\t if (!a.immediate && b.immediate) {\n\t return 1;\n\t }\n\n\t // Sort next by creation time, earlier-created timers take precedence\n\t if (a.createdAt < b.createdAt) {\n\t return -1;\n\t }\n\t if (a.createdAt > b.createdAt) {\n\t return 1;\n\t }\n\n\t // Sort next by id, lower-id timers take precedence\n\t if (a.id < b.id) {\n\t return -1;\n\t }\n\t if (a.id > b.id) {\n\t return 1;\n\t }\n\n\t // As timer ids are unique, no fallback `0` is necessary\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} from\n\t * @param {number} to\n\t * @returns {Timer}\n\t */\n\t function firstTimerInRange(clock, from, to) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id, isInRange;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t isInRange = inRange(from, to, timers[id]);\n\n\t if (\n\t isInRange &&\n\t (!timer || compareTimers(timer, timers[id]) === 1)\n\t ) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @returns {Timer}\n\t */\n\t function firstTimer(clock) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t if (!timer || compareTimers(timer, timers[id]) === 1) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @returns {Timer}\n\t */\n\t function lastTimer(clock) {\n\t const timers = clock.timers;\n\t let timer = null;\n\t let id;\n\n\t for (id in timers) {\n\t if (timers.hasOwnProperty(id)) {\n\t if (!timer || compareTimers(timer, timers[id]) === -1) {\n\t timer = timers[id];\n\t }\n\t }\n\t }\n\n\t return timer;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} timer\n\t */\n\t function callTimer(clock, timer) {\n\t if (typeof timer.interval === \"number\") {\n\t clock.timers[timer.id].callAt += timer.interval;\n\t } else {\n\t delete clock.timers[timer.id];\n\t }\n\n\t if (typeof timer.func === \"function\") {\n\t timer.func.apply(null, timer.args);\n\t } else {\n\t /* eslint no-eval: \"off\" */\n\t const eval2 = eval;\n\t (function () {\n\t eval2(timer.func);\n\t })();\n\t }\n\t }\n\n\t /**\n\t * Gets clear handler name for a given timer type\n\t *\n\t * @param {string} ttype\n\t */\n\t function getClearHandler(ttype) {\n\t if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n\t return `cancel${ttype}`;\n\t }\n\t return `clear${ttype}`;\n\t }\n\n\t /**\n\t * Gets schedule handler name for a given timer type\n\t *\n\t * @param {string} ttype\n\t */\n\t function getScheduleHandler(ttype) {\n\t if (ttype === \"IdleCallback\" || ttype === \"AnimationFrame\") {\n\t return `request${ttype}`;\n\t }\n\t return `set${ttype}`;\n\t }\n\n\t /**\n\t * Creates an anonymous function to warn only once\n\t */\n\t function createWarnOnce() {\n\t let calls = 0;\n\t return function (msg) {\n\t // eslint-disable-next-line\n\t !calls++ && console.warn(msg);\n\t };\n\t }\n\t const warnOnce = createWarnOnce();\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} timerId\n\t * @param {string} ttype\n\t */\n\t function clearTimer(clock, timerId, ttype) {\n\t if (!timerId) {\n\t // null appears to be allowed in most browsers, and appears to be\n\t // relied upon by some libraries, like Bootstrap carousel\n\t return;\n\t }\n\n\t if (!clock.timers) {\n\t clock.timers = {};\n\t }\n\n\t // in Node, the ID is stored as the primitive value for `Timeout` objects\n\t // for `Immediate` objects, no ID exists, so it gets coerced to NaN\n\t const id = Number(timerId);\n\n\t if (Number.isNaN(id) || id < idCounterStart) {\n\t const handlerName = getClearHandler(ttype);\n\n\t if (clock.shouldClearNativeTimers === true) {\n\t const nativeHandler = clock[`_${handlerName}`];\n\t return typeof nativeHandler === \"function\"\n\t ? nativeHandler(timerId)\n\t : undefined;\n\t }\n\t warnOnce(\n\t `FakeTimers: ${handlerName} was invoked to clear a native timer instead of one created by this library.` +\n\t \"\\nTo automatically clean-up native timers, use `shouldClearNativeTimers`.\"\n\t );\n\t }\n\n\t if (clock.timers.hasOwnProperty(id)) {\n\t // check that the ID matches a timer of the correct type\n\t const timer = clock.timers[id];\n\t if (\n\t timer.type === ttype ||\n\t (timer.type === \"Timeout\" && ttype === \"Interval\") ||\n\t (timer.type === \"Interval\" && ttype === \"Timeout\")\n\t ) {\n\t delete clock.timers[id];\n\t } else {\n\t const clear = getClearHandler(ttype);\n\t const schedule = getScheduleHandler(timer.type);\n\t throw new Error(\n\t `Cannot clear timer: timer created with ${schedule}() but cleared with ${clear}()`\n\t );\n\t }\n\t }\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Config} config\n\t * @returns {Timer[]}\n\t */\n\t function uninstall(clock, config) {\n\t let method, i, l;\n\t const installedHrTime = \"_hrtime\";\n\t const installedNextTick = \"_nextTick\";\n\n\t for (i = 0, l = clock.methods.length; i < l; i++) {\n\t method = clock.methods[i];\n\t if (method === \"hrtime\" && _global.process) {\n\t _global.process.hrtime = clock[installedHrTime];\n\t } else if (method === \"nextTick\" && _global.process) {\n\t _global.process.nextTick = clock[installedNextTick];\n\t } else if (method === \"performance\") {\n\t const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n\t clock,\n\t `_${method}`\n\t );\n\t if (\n\t originalPerfDescriptor &&\n\t originalPerfDescriptor.get &&\n\t !originalPerfDescriptor.set\n\t ) {\n\t Object.defineProperty(\n\t _global,\n\t method,\n\t originalPerfDescriptor\n\t );\n\t } else if (originalPerfDescriptor.configurable) {\n\t _global[method] = clock[`_${method}`];\n\t }\n\t } else {\n\t if (_global[method] && _global[method].hadOwnProperty) {\n\t _global[method] = clock[`_${method}`];\n\t } else {\n\t try {\n\t delete _global[method];\n\t } catch (ignore) {\n\t /* eslint no-empty: \"off\" */\n\t }\n\t }\n\t }\n\t if (clock.timersModuleMethods !== undefined) {\n\t for (let j = 0; j < clock.timersModuleMethods.length; j++) {\n\t const entry = clock.timersModuleMethods[j];\n\t timersModule[entry.methodName] = entry.original;\n\t }\n\t }\n\t }\n\n\t if (config.shouldAdvanceTime === true) {\n\t _global.clearInterval(clock.attachedInterval);\n\t }\n\n\t // Prevent multiple executions which will completely remove these props\n\t clock.methods = [];\n\n\t // return pending timers, to enable checking what timers remained on uninstall\n\t if (!clock.timers) {\n\t return [];\n\t }\n\t return Object.keys(clock.timers).map(function mapper(key) {\n\t return clock.timers[key];\n\t });\n\t }\n\n\t /**\n\t * @param {object} target the target containing the method to replace\n\t * @param {string} method the keyname of the method on the target\n\t * @param {Clock} clock\n\t */\n\t function hijackMethod(target, method, clock) {\n\t clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(\n\t target,\n\t method\n\t );\n\t clock[`_${method}`] = target[method];\n\n\t if (method === \"Date\") {\n\t const date = mirrorDateProperties(clock[method], target[method]);\n\t target[method] = date;\n\t } else if (method === \"Intl\") {\n\t target[method] = clock[method];\n\t } else if (method === \"performance\") {\n\t const originalPerfDescriptor = Object.getOwnPropertyDescriptor(\n\t target,\n\t method\n\t );\n\t // JSDOM has a read only performance field so we have to save/copy it differently\n\t if (\n\t originalPerfDescriptor &&\n\t originalPerfDescriptor.get &&\n\t !originalPerfDescriptor.set\n\t ) {\n\t Object.defineProperty(\n\t clock,\n\t `_${method}`,\n\t originalPerfDescriptor\n\t );\n\n\t const perfDescriptor = Object.getOwnPropertyDescriptor(\n\t clock,\n\t method\n\t );\n\t Object.defineProperty(target, method, perfDescriptor);\n\t } else {\n\t target[method] = clock[method];\n\t }\n\t } else {\n\t target[method] = function () {\n\t return clock[method].apply(clock, arguments);\n\t };\n\n\t Object.defineProperties(\n\t target[method],\n\t Object.getOwnPropertyDescriptors(clock[method])\n\t );\n\t }\n\n\t target[method].clock = clock;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} advanceTimeDelta\n\t */\n\t function doIntervalTick(clock, advanceTimeDelta) {\n\t clock.tick(advanceTimeDelta);\n\t }\n\n\t /**\n\t * @typedef {object} Timers\n\t * @property {setTimeout} setTimeout\n\t * @property {clearTimeout} clearTimeout\n\t * @property {setInterval} setInterval\n\t * @property {clearInterval} clearInterval\n\t * @property {Date} Date\n\t * @property {Intl} Intl\n\t * @property {SetImmediate=} setImmediate\n\t * @property {function(NodeImmediate): void=} clearImmediate\n\t * @property {function(number[]):number[]=} hrtime\n\t * @property {NextTick=} nextTick\n\t * @property {Performance=} performance\n\t * @property {RequestAnimationFrame=} requestAnimationFrame\n\t * @property {boolean=} queueMicrotask\n\t * @property {function(number): void=} cancelAnimationFrame\n\t * @property {RequestIdleCallback=} requestIdleCallback\n\t * @property {function(number): void=} cancelIdleCallback\n\t */\n\n\t /** @type {Timers} */\n\t const timers = {\n\t setTimeout: _global.setTimeout,\n\t clearTimeout: _global.clearTimeout,\n\t setInterval: _global.setInterval,\n\t clearInterval: _global.clearInterval,\n\t Date: _global.Date,\n\t };\n\n\t if (setImmediatePresent) {\n\t timers.setImmediate = _global.setImmediate;\n\t timers.clearImmediate = _global.clearImmediate;\n\t }\n\n\t if (hrtimePresent) {\n\t timers.hrtime = _global.process.hrtime;\n\t }\n\n\t if (nextTickPresent) {\n\t timers.nextTick = _global.process.nextTick;\n\t }\n\n\t if (performancePresent) {\n\t timers.performance = _global.performance;\n\t }\n\n\t if (requestAnimationFramePresent) {\n\t timers.requestAnimationFrame = _global.requestAnimationFrame;\n\t }\n\n\t if (queueMicrotaskPresent) {\n\t timers.queueMicrotask = true;\n\t }\n\n\t if (cancelAnimationFramePresent) {\n\t timers.cancelAnimationFrame = _global.cancelAnimationFrame;\n\t }\n\n\t if (requestIdleCallbackPresent) {\n\t timers.requestIdleCallback = _global.requestIdleCallback;\n\t }\n\n\t if (cancelIdleCallbackPresent) {\n\t timers.cancelIdleCallback = _global.cancelIdleCallback;\n\t }\n\n\t if (intlPresent) {\n\t timers.Intl = _global.Intl;\n\t }\n\n\t const originalSetTimeout = _global.setImmediate || _global.setTimeout;\n\n\t /**\n\t * @param {Date|number} [start] the system time - non-integer values are floored\n\t * @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()\n\t * @returns {Clock}\n\t */\n\t function createClock(start, loopLimit) {\n\t // eslint-disable-next-line no-param-reassign\n\t start = Math.floor(getEpoch(start));\n\t // eslint-disable-next-line no-param-reassign\n\t loopLimit = loopLimit || 1000;\n\t let nanos = 0;\n\t const adjustedSystemTime = [0, 0]; // [millis, nanoremainder]\n\n\t if (NativeDate === undefined) {\n\t throw new Error(\n\t \"The global scope doesn't have a `Date` object\" +\n\t \" (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)\"\n\t );\n\t }\n\n\t const clock = {\n\t now: start,\n\t Date: createDate(),\n\t loopLimit: loopLimit,\n\t };\n\n\t clock.Date.clock = clock;\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function getTimeToNextFrame() {\n\t return 16 - ((clock.now - start) % 16);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function hrtime(prev) {\n\t const millisSinceStart = clock.now - adjustedSystemTime[0] - start;\n\t const secsSinceStart = Math.floor(millisSinceStart / 1000);\n\t const remainderInNanos =\n\t (millisSinceStart - secsSinceStart * 1e3) * 1e6 +\n\t nanos -\n\t adjustedSystemTime[1];\n\n\t if (Array.isArray(prev)) {\n\t if (prev[1] > 1e9) {\n\t throw new TypeError(\n\t \"Number of nanoseconds can't exceed a billion\"\n\t );\n\t }\n\n\t const oldSecs = prev[0];\n\t let nanoDiff = remainderInNanos - prev[1];\n\t let secDiff = secsSinceStart - oldSecs;\n\n\t if (nanoDiff < 0) {\n\t nanoDiff += 1e9;\n\t secDiff -= 1;\n\t }\n\n\t return [secDiff, nanoDiff];\n\t }\n\t return [secsSinceStart, remainderInNanos];\n\t }\n\n\t function fakePerformanceNow() {\n\t const hrt = hrtime();\n\t const millis = hrt[0] * 1000 + hrt[1] / 1e6;\n\t return millis;\n\t }\n\n\t if (hrtimeBigintPresent) {\n\t hrtime.bigint = function () {\n\t const parts = hrtime();\n\t return BigInt(parts[0]) * BigInt(1e9) + BigInt(parts[1]); // eslint-disable-line\n\t };\n\t }\n\n\t if (intlPresent) {\n\t clock.Intl = createIntl();\n\t clock.Intl.clock = clock;\n\t }\n\n\t clock.requestIdleCallback = function requestIdleCallback(\n\t func,\n\t timeout\n\t ) {\n\t let timeToNextIdlePeriod = 0;\n\n\t if (clock.countTimers() > 0) {\n\t timeToNextIdlePeriod = 50; // const for now\n\t }\n\n\t const result = addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay:\n\t typeof timeout === \"undefined\"\n\t ? timeToNextIdlePeriod\n\t : Math.min(timeout, timeToNextIdlePeriod),\n\t idleCallback: true,\n\t });\n\n\t return Number(result);\n\t };\n\n\t clock.cancelIdleCallback = function cancelIdleCallback(timerId) {\n\t return clearTimer(clock, timerId, \"IdleCallback\");\n\t };\n\n\t clock.setTimeout = function setTimeout(func, timeout) {\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay: timeout,\n\t });\n\t };\n\t if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n\t clock.setTimeout[utilPromisify.custom] =\n\t function promisifiedSetTimeout(timeout, arg) {\n\t return new _global.Promise(function setTimeoutExecutor(\n\t resolve\n\t ) {\n\t addTimer(clock, {\n\t func: resolve,\n\t args: [arg],\n\t delay: timeout,\n\t });\n\t });\n\t };\n\t }\n\n\t clock.clearTimeout = function clearTimeout(timerId) {\n\t return clearTimer(clock, timerId, \"Timeout\");\n\t };\n\n\t clock.nextTick = function nextTick(func) {\n\t return enqueueJob(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 1),\n\t error: isNearInfiniteLimit ? new Error() : null,\n\t });\n\t };\n\n\t clock.queueMicrotask = function queueMicrotask(func) {\n\t return clock.nextTick(func); // explicitly drop additional arguments\n\t };\n\n\t clock.setInterval = function setInterval(func, timeout) {\n\t // eslint-disable-next-line no-param-reassign\n\t timeout = parseInt(timeout, 10);\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 2),\n\t delay: timeout,\n\t interval: timeout,\n\t });\n\t };\n\n\t clock.clearInterval = function clearInterval(timerId) {\n\t return clearTimer(clock, timerId, \"Interval\");\n\t };\n\n\t if (setImmediatePresent) {\n\t clock.setImmediate = function setImmediate(func) {\n\t return addTimer(clock, {\n\t func: func,\n\t args: Array.prototype.slice.call(arguments, 1),\n\t immediate: true,\n\t });\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\" && utilPromisify) {\n\t clock.setImmediate[utilPromisify.custom] =\n\t function promisifiedSetImmediate(arg) {\n\t return new _global.Promise(\n\t function setImmediateExecutor(resolve) {\n\t addTimer(clock, {\n\t func: resolve,\n\t args: [arg],\n\t immediate: true,\n\t });\n\t }\n\t );\n\t };\n\t }\n\n\t clock.clearImmediate = function clearImmediate(timerId) {\n\t return clearTimer(clock, timerId, \"Immediate\");\n\t };\n\t }\n\n\t clock.countTimers = function countTimers() {\n\t return (\n\t Object.keys(clock.timers || {}).length +\n\t (clock.jobs || []).length\n\t );\n\t };\n\n\t clock.requestAnimationFrame = function requestAnimationFrame(func) {\n\t const result = addTimer(clock, {\n\t func: func,\n\t delay: getTimeToNextFrame(),\n\t get args() {\n\t return [fakePerformanceNow()];\n\t },\n\t animation: true,\n\t });\n\n\t return Number(result);\n\t };\n\n\t clock.cancelAnimationFrame = function cancelAnimationFrame(timerId) {\n\t return clearTimer(clock, timerId, \"AnimationFrame\");\n\t };\n\n\t clock.runMicrotasks = function runMicrotasks() {\n\t runJobs(clock);\n\t };\n\n\t /**\n\t * @param {number|string} tickValue milliseconds or a string parseable by parseTime\n\t * @param {boolean} isAsync\n\t * @param {Function} resolve\n\t * @param {Function} reject\n\t * @returns {number|undefined} will return the new `now` value or nothing for async\n\t */\n\t function doTick(tickValue, isAsync, resolve, reject) {\n\t const msFloat =\n\t typeof tickValue === \"number\"\n\t ? tickValue\n\t : parseTime(tickValue);\n\t const ms = Math.floor(msFloat);\n\t const remainder = nanoRemainder(msFloat);\n\t let nanosTotal = nanos + remainder;\n\t let tickTo = clock.now + ms;\n\n\t if (msFloat < 0) {\n\t throw new TypeError(\"Negative ticks are not supported\");\n\t }\n\n\t // adjust for positive overflow\n\t if (nanosTotal >= 1e6) {\n\t tickTo += 1;\n\t nanosTotal -= 1e6;\n\t }\n\n\t nanos = nanosTotal;\n\t let tickFrom = clock.now;\n\t let previous = clock.now;\n\t // ESLint fails to detect this correctly\n\t /* eslint-disable prefer-const */\n\t let timer,\n\t firstException,\n\t oldNow,\n\t nextPromiseTick,\n\t compensationCheck,\n\t postTimerCall;\n\t /* eslint-enable prefer-const */\n\n\t clock.duringTick = true;\n\n\t // perform microtasks\n\t oldNow = clock.now;\n\t runJobs(clock);\n\t if (oldNow !== clock.now) {\n\t // compensate for any setSystemTime() call during microtask callback\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function doTickInner() {\n\t // perform each timer in the requested range\n\t timer = firstTimerInRange(clock, tickFrom, tickTo);\n\t // eslint-disable-next-line no-unmodified-loop-condition\n\t while (timer && tickFrom <= tickTo) {\n\t if (clock.timers[timer.id]) {\n\t tickFrom = timer.callAt;\n\t clock.now = timer.callAt;\n\t oldNow = clock.now;\n\t try {\n\t runJobs(clock);\n\t callTimer(clock, timer);\n\t } catch (e) {\n\t firstException = firstException || e;\n\t }\n\n\t if (isAsync) {\n\t // finish up after native setImmediate callback to allow\n\t // all native es6 promises to process their callbacks after\n\t // each timer fires.\n\t originalSetTimeout(nextPromiseTick);\n\t return;\n\t }\n\n\t compensationCheck();\n\t }\n\n\t postTimerCall();\n\t }\n\n\t // perform process.nextTick()s again\n\t oldNow = clock.now;\n\t runJobs(clock);\n\t if (oldNow !== clock.now) {\n\t // compensate for any setSystemTime() call during process.nextTick() callback\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t }\n\t clock.duringTick = false;\n\n\t // corner case: during runJobs new timers were scheduled which could be in the range [clock.now, tickTo]\n\t timer = firstTimerInRange(clock, tickFrom, tickTo);\n\t if (timer) {\n\t try {\n\t clock.tick(tickTo - clock.now); // do it all again - for the remainder of the requested range\n\t } catch (e) {\n\t firstException = firstException || e;\n\t }\n\t } else {\n\t // no timers remaining in the requested range: move the clock all the way to the end\n\t clock.now = tickTo;\n\n\t // update nanos\n\t nanos = nanosTotal;\n\t }\n\t if (firstException) {\n\t throw firstException;\n\t }\n\n\t if (isAsync) {\n\t resolve(clock.now);\n\t } else {\n\t return clock.now;\n\t }\n\t }\n\n\t nextPromiseTick =\n\t isAsync &&\n\t function () {\n\t try {\n\t compensationCheck();\n\t postTimerCall();\n\t doTickInner();\n\t } catch (e) {\n\t reject(e);\n\t }\n\t };\n\n\t compensationCheck = function () {\n\t // compensate for any setSystemTime() call during timer callback\n\t if (oldNow !== clock.now) {\n\t tickFrom += clock.now - oldNow;\n\t tickTo += clock.now - oldNow;\n\t previous += clock.now - oldNow;\n\t }\n\t };\n\n\t postTimerCall = function () {\n\t timer = firstTimerInRange(clock, previous, tickTo);\n\t previous = tickFrom;\n\t };\n\n\t return doTickInner();\n\t }\n\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {number} will return the new `now` value\n\t */\n\t clock.tick = function tick(tickValue) {\n\t return doTick(tickValue, false);\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {Promise}\n\t */\n\t clock.tickAsync = function tickAsync(tickValue) {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t doTick(tickValue, true, resolve, reject);\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.next = function next() {\n\t runJobs(clock);\n\t const timer = firstTimer(clock);\n\t if (!timer) {\n\t return clock.now;\n\t }\n\n\t clock.duringTick = true;\n\t try {\n\t clock.now = timer.callAt;\n\t callTimer(clock, timer);\n\t runJobs(clock);\n\t return clock.now;\n\t } finally {\n\t clock.duringTick = false;\n\t }\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.nextAsync = function nextAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t const timer = firstTimer(clock);\n\t if (!timer) {\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t let err;\n\t clock.duringTick = true;\n\t clock.now = timer.callAt;\n\t try {\n\t callTimer(clock, timer);\n\t } catch (e) {\n\t err = e;\n\t }\n\t clock.duringTick = false;\n\n\t originalSetTimeout(function () {\n\t if (err) {\n\t reject(err);\n\t } else {\n\t resolve(clock.now);\n\t }\n\t });\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.runAll = function runAll() {\n\t let numTimers, i;\n\t runJobs(clock);\n\t for (i = 0; i < clock.loopLimit; i++) {\n\t if (!clock.timers) {\n\t resetIsNearInfiniteLimit();\n\t return clock.now;\n\t }\n\n\t numTimers = Object.keys(clock.timers).length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit();\n\t return clock.now;\n\t }\n\n\t clock.next();\n\t checkIsNearInfiniteLimit(clock, i);\n\t }\n\n\t const excessJob = firstTimer(clock);\n\t throw getInfiniteLoopError(clock, excessJob);\n\t };\n\n\t clock.runToFrame = function runToFrame() {\n\t return clock.tick(getTimeToNextFrame());\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.runAllAsync = function runAllAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t let i = 0;\n\t /**\n\t *\n\t */\n\t function doRun() {\n\t originalSetTimeout(function () {\n\t try {\n\t let numTimers;\n\t if (i < clock.loopLimit) {\n\t if (!clock.timers) {\n\t resetIsNearInfiniteLimit();\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t numTimers = Object.keys(\n\t clock.timers\n\t ).length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit();\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t clock.next();\n\n\t i++;\n\n\t doRun();\n\t checkIsNearInfiniteLimit(clock, i);\n\t return;\n\t }\n\n\t const excessJob = firstTimer(clock);\n\t reject(getInfiniteLoopError(clock, excessJob));\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t }\n\t doRun();\n\t });\n\t };\n\t }\n\n\t clock.runToLast = function runToLast() {\n\t const timer = lastTimer(clock);\n\t if (!timer) {\n\t runJobs(clock);\n\t return clock.now;\n\t }\n\n\t return clock.tick(timer.callAt - clock.now);\n\t };\n\n\t if (typeof _global.Promise !== \"undefined\") {\n\t clock.runToLastAsync = function runToLastAsync() {\n\t return new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t const timer = lastTimer(clock);\n\t if (!timer) {\n\t resolve(clock.now);\n\t }\n\n\t resolve(clock.tickAsync(timer.callAt - clock.now));\n\t } catch (e) {\n\t reject(e);\n\t }\n\t });\n\t });\n\t };\n\t }\n\n\t clock.reset = function reset() {\n\t nanos = 0;\n\t clock.timers = {};\n\t clock.jobs = [];\n\t clock.now = start;\n\t };\n\n\t clock.setSystemTime = function setSystemTime(systemTime) {\n\t // determine time difference\n\t const newNow = getEpoch(systemTime);\n\t const difference = newNow - clock.now;\n\t let id, timer;\n\n\t adjustedSystemTime[0] = adjustedSystemTime[0] + difference;\n\t adjustedSystemTime[1] = adjustedSystemTime[1] + nanos;\n\t // update 'system clock'\n\t clock.now = newNow;\n\t nanos = 0;\n\n\t // update timers and intervals to keep them stable\n\t for (id in clock.timers) {\n\t if (clock.timers.hasOwnProperty(id)) {\n\t timer = clock.timers[id];\n\t timer.createdAt += difference;\n\t timer.callAt += difference;\n\t }\n\t }\n\t };\n\n\t /**\n\t * @param {string|number} tickValue number of milliseconds or a human-readable value like \"01:11:15\"\n\t * @returns {number} will return the new `now` value\n\t */\n\t clock.jump = function jump(tickValue) {\n\t const msFloat =\n\t typeof tickValue === \"number\"\n\t ? tickValue\n\t : parseTime(tickValue);\n\t const ms = Math.floor(msFloat);\n\n\t for (const timer of Object.values(clock.timers)) {\n\t if (clock.now + ms > timer.callAt) {\n\t timer.callAt = clock.now + ms;\n\t }\n\t }\n\t clock.tick(ms);\n\t };\n\n\t if (performancePresent) {\n\t clock.performance = Object.create(null);\n\t clock.performance.now = fakePerformanceNow;\n\t }\n\n\t if (hrtimePresent) {\n\t clock.hrtime = hrtime;\n\t }\n\n\t return clock;\n\t }\n\n\t /* eslint-disable complexity */\n\n\t /**\n\t * @param {Config=} [config] Optional config\n\t * @returns {Clock}\n\t */\n\t function install(config) {\n\t if (\n\t arguments.length > 1 ||\n\t config instanceof Date ||\n\t Array.isArray(config) ||\n\t typeof config === \"number\"\n\t ) {\n\t throw new TypeError(\n\t `FakeTimers.install called with ${String(\n\t config\n\t )} install requires an object parameter`\n\t );\n\t }\n\n\t if (_global.Date.isFake === true) {\n\t // Timers are already faked; this is a problem.\n\t // Make the user reset timers before continuing.\n\t throw new TypeError(\n\t \"Can't install fake timers twice on the same global object.\"\n\t );\n\t }\n\n\t // eslint-disable-next-line no-param-reassign\n\t config = typeof config !== \"undefined\" ? config : {};\n\t config.shouldAdvanceTime = config.shouldAdvanceTime || false;\n\t config.advanceTimeDelta = config.advanceTimeDelta || 20;\n\t config.shouldClearNativeTimers =\n\t config.shouldClearNativeTimers || false;\n\n\t if (config.target) {\n\t throw new TypeError(\n\t \"config.target is no longer supported. Use `withGlobal(target)` instead.\"\n\t );\n\t }\n\n\t let i, l;\n\t const clock = createClock(config.now, config.loopLimit);\n\t clock.shouldClearNativeTimers = config.shouldClearNativeTimers;\n\n\t clock.uninstall = function () {\n\t return uninstall(clock, config);\n\t };\n\n\t clock.methods = config.toFake || [];\n\n\t if (clock.methods.length === 0) {\n\t // do not fake nextTick by default - GitHub#126\n\t clock.methods = Object.keys(timers).filter(function (key) {\n\t return key !== \"nextTick\" && key !== \"queueMicrotask\";\n\t });\n\t }\n\n\t if (config.shouldAdvanceTime === true) {\n\t const intervalTick = doIntervalTick.bind(\n\t null,\n\t clock,\n\t config.advanceTimeDelta\n\t );\n\t const intervalId = _global.setInterval(\n\t intervalTick,\n\t config.advanceTimeDelta\n\t );\n\t clock.attachedInterval = intervalId;\n\t }\n\n\t if (clock.methods.includes(\"performance\")) {\n\t const proto = (() => {\n\t if (hasPerformanceConstructorPrototype) {\n\t return _global.performance.constructor.prototype;\n\t }\n\t if (hasPerformancePrototype) {\n\t return _global.Performance.prototype;\n\t }\n\t })();\n\t if (proto) {\n\t Object.getOwnPropertyNames(proto).forEach(function (name) {\n\t if (name !== \"now\") {\n\t clock.performance[name] =\n\t name.indexOf(\"getEntries\") === 0\n\t ? NOOP_ARRAY\n\t : NOOP;\n\t }\n\t });\n\t } else if ((config.toFake || []).includes(\"performance\")) {\n\t // user explicitly tried to fake performance when not present\n\t throw new ReferenceError(\n\t \"non-existent performance object cannot be faked\"\n\t );\n\t }\n\t }\n\t if (_global === globalObject && timersModule) {\n\t clock.timersModuleMethods = [];\n\t }\n\t for (i = 0, l = clock.methods.length; i < l; i++) {\n\t const nameOfMethodToReplace = clock.methods[i];\n\t if (nameOfMethodToReplace === \"hrtime\") {\n\t if (\n\t _global.process &&\n\t typeof _global.process.hrtime === \"function\"\n\t ) {\n\t hijackMethod(_global.process, nameOfMethodToReplace, clock);\n\t }\n\t } else if (nameOfMethodToReplace === \"nextTick\") {\n\t if (\n\t _global.process &&\n\t typeof _global.process.nextTick === \"function\"\n\t ) {\n\t hijackMethod(_global.process, nameOfMethodToReplace, clock);\n\t }\n\t } else {\n\t hijackMethod(_global, nameOfMethodToReplace, clock);\n\t }\n\t if (\n\t clock.timersModuleMethods !== undefined &&\n\t timersModule[nameOfMethodToReplace]\n\t ) {\n\t const original = timersModule[nameOfMethodToReplace];\n\t clock.timersModuleMethods.push({\n\t methodName: nameOfMethodToReplace,\n\t original: original,\n\t });\n\t timersModule[nameOfMethodToReplace] =\n\t _global[nameOfMethodToReplace];\n\t }\n\t }\n\n\t return clock;\n\t }\n\n\t /* eslint-enable complexity */\n\n\t return {\n\t timers: timers,\n\t createClock: createClock,\n\t install: install,\n\t withGlobal: withGlobal,\n\t };\n\t}\n\n\t/**\n\t * @typedef {object} FakeTimers\n\t * @property {Timers} timers\n\t * @property {createClock} createClock\n\t * @property {Function} install\n\t * @property {withGlobal} withGlobal\n\t */\n\n\t/* eslint-enable complexity */\n\n\t/** @type {FakeTimers} */\n\tconst defaultImplementation = withGlobal(globalObject);\n\n\tfakeTimersSrc.timers = defaultImplementation.timers;\n\tfakeTimersSrc.createClock = defaultImplementation.createClock;\n\tfakeTimersSrc.install = defaultImplementation.install;\n\tfakeTimersSrc.withGlobal = withGlobal;\n\treturn fakeTimersSrc;\n}\n\nvar fakeTimersSrcExports = requireFakeTimersSrc();\n\nclass FakeTimers {\n _global;\n _clock;\n _fakingTime;\n _fakingDate;\n _fakeTimers;\n _userConfig;\n _now = RealDate.now;\n constructor({\n global,\n config\n }) {\n this._userConfig = config;\n this._fakingDate = false;\n this._fakingTime = false;\n this._fakeTimers = fakeTimersSrcExports.withGlobal(global);\n this._global = global;\n }\n clearAllTimers() {\n if (this._fakingTime) {\n this._clock.reset();\n }\n }\n dispose() {\n this.useRealTimers();\n }\n runAllTimers() {\n if (this._checkFakeTimers()) {\n this._clock.runAll();\n }\n }\n async runAllTimersAsync() {\n if (this._checkFakeTimers()) {\n await this._clock.runAllAsync();\n }\n }\n runOnlyPendingTimers() {\n if (this._checkFakeTimers()) {\n this._clock.runToLast();\n }\n }\n async runOnlyPendingTimersAsync() {\n if (this._checkFakeTimers()) {\n await this._clock.runToLastAsync();\n }\n }\n advanceTimersToNextTimer(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n this._clock.next();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0) {\n break;\n }\n }\n }\n }\n async advanceTimersToNextTimerAsync(steps = 1) {\n if (this._checkFakeTimers()) {\n for (let i = steps; i > 0; i--) {\n await this._clock.nextAsync();\n this._clock.tick(0);\n if (this._clock.countTimers() === 0) {\n break;\n }\n }\n }\n }\n advanceTimersByTime(msToRun) {\n if (this._checkFakeTimers()) {\n this._clock.tick(msToRun);\n }\n }\n async advanceTimersByTimeAsync(msToRun) {\n if (this._checkFakeTimers()) {\n await this._clock.tickAsync(msToRun);\n }\n }\n advanceTimersToNextFrame() {\n if (this._checkFakeTimers()) {\n this._clock.runToFrame();\n }\n }\n runAllTicks() {\n if (this._checkFakeTimers()) {\n this._clock.runMicrotasks();\n }\n }\n useRealTimers() {\n if (this._fakingDate) {\n resetDate();\n this._fakingDate = false;\n }\n if (this._fakingTime) {\n this._clock.uninstall();\n this._fakingTime = false;\n }\n }\n useFakeTimers() {\n if (this._fakingDate) {\n throw new Error(\n '\"setSystemTime\" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.'\n );\n }\n if (!this._fakingTime) {\n const toFake = Object.keys(this._fakeTimers.timers).filter(\n (timer) => timer !== \"nextTick\"\n );\n if (this._userConfig?.toFake?.includes(\"nextTick\") && isChildProcess()) {\n throw new Error(\n \"process.nextTick cannot be mocked inside child_process\"\n );\n }\n const existingFakedMethods = (this._userConfig?.toFake || toFake).filter(\n (method) => {\n switch (method) {\n case \"setImmediate\":\n case \"clearImmediate\":\n return method in this._global && this._global[method];\n default:\n return true;\n }\n }\n );\n this._clock = this._fakeTimers.install({\n now: Date.now(),\n ...this._userConfig,\n toFake: existingFakedMethods\n });\n this._fakingTime = true;\n }\n }\n reset() {\n if (this._checkFakeTimers()) {\n const { now } = this._clock;\n this._clock.reset();\n this._clock.setSystemTime(now);\n }\n }\n setSystemTime(now) {\n if (this._fakingTime) {\n this._clock.setSystemTime(now);\n } else {\n mockDate(now ?? this.getRealSystemTime());\n this._fakingDate = true;\n }\n }\n getRealSystemTime() {\n return this._now();\n }\n getTimerCount() {\n if (this._checkFakeTimers()) {\n return this._clock.countTimers();\n }\n return 0;\n }\n configure(config) {\n this._userConfig = config;\n }\n isFakeTimers() {\n return this._fakingTime;\n }\n _checkFakeTimers() {\n if (!this._fakingTime) {\n throw new Error(\n 'Timers are not mocked. Try calling \"vi.useFakeTimers()\" first.'\n );\n }\n return this._fakingTime;\n }\n}\n\nfunction copyStackTrace(target, source) {\n if (source.stack !== void 0) {\n target.stack = source.stack.replace(source.message, target.message);\n }\n return target;\n}\nfunction waitFor(callback, options = {}) {\n const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n const { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n const STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n return new Promise((resolve, reject) => {\n let lastError;\n let promiseStatus = \"idle\";\n let timeoutId;\n let intervalId;\n const onResolve = (result) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n if (intervalId) {\n clearInterval(intervalId);\n }\n resolve(result);\n };\n const handleTimeout = () => {\n if (intervalId) {\n clearInterval(intervalId);\n }\n let error = lastError;\n if (!error) {\n error = copyStackTrace(\n new Error(\"Timed out in waitFor!\"),\n STACK_TRACE_ERROR\n );\n }\n reject(error);\n };\n const checkCallback = () => {\n if (vi.isFakeTimers()) {\n vi.advanceTimersByTime(interval);\n }\n if (promiseStatus === \"pending\") {\n return;\n }\n try {\n const result = callback();\n if (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n const thenable = result;\n promiseStatus = \"pending\";\n thenable.then(\n (resolvedValue) => {\n promiseStatus = \"resolved\";\n onResolve(resolvedValue);\n },\n (rejectedValue) => {\n promiseStatus = \"rejected\";\n lastError = rejectedValue;\n }\n );\n } else {\n onResolve(result);\n return true;\n }\n } catch (error) {\n lastError = error;\n }\n };\n if (checkCallback() === true) {\n return;\n }\n timeoutId = setTimeout(handleTimeout, timeout);\n intervalId = setInterval(checkCallback, interval);\n });\n}\nfunction waitUntil(callback, options = {}) {\n const { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n const { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n const STACK_TRACE_ERROR = new Error(\"STACK_TRACE_ERROR\");\n return new Promise((resolve, reject) => {\n let promiseStatus = \"idle\";\n let timeoutId;\n let intervalId;\n const onReject = (error) => {\n if (intervalId) {\n clearInterval(intervalId);\n }\n if (!error) {\n error = copyStackTrace(\n new Error(\"Timed out in waitUntil!\"),\n STACK_TRACE_ERROR\n );\n }\n reject(error);\n };\n const onResolve = (result) => {\n if (!result) {\n return;\n }\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n if (intervalId) {\n clearInterval(intervalId);\n }\n resolve(result);\n return true;\n };\n const checkCallback = () => {\n if (vi.isFakeTimers()) {\n vi.advanceTimersByTime(interval);\n }\n if (promiseStatus === \"pending\") {\n return;\n }\n try {\n const result = callback();\n if (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n const thenable = result;\n promiseStatus = \"pending\";\n thenable.then(\n (resolvedValue) => {\n promiseStatus = \"resolved\";\n onResolve(resolvedValue);\n },\n (rejectedValue) => {\n promiseStatus = \"rejected\";\n onReject(rejectedValue);\n }\n );\n } else {\n return onResolve(result);\n }\n } catch (error) {\n onReject(error);\n }\n };\n if (checkCallback() === true) {\n return;\n }\n timeoutId = setTimeout(onReject, timeout);\n intervalId = setInterval(checkCallback, interval);\n });\n}\n\nfunction createVitest() {\n let _mockedDate = null;\n let _config = null;\n const workerState = getWorkerState();\n let _timers;\n const timers = () => _timers ||= new FakeTimers({\n global: globalThis,\n config: workerState.config.fakeTimers\n });\n const _stubsGlobal = /* @__PURE__ */ new Map();\n const _stubsEnv = /* @__PURE__ */ new Map();\n const _envBooleans = [\"PROD\", \"DEV\", \"SSR\"];\n const utils = {\n useFakeTimers(config) {\n if (isChildProcess()) {\n if (config?.toFake?.includes(\"nextTick\") || workerState.config?.fakeTimers?.toFake?.includes(\"nextTick\")) {\n throw new Error(\n 'vi.useFakeTimers({ toFake: [\"nextTick\"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.'\n );\n }\n }\n if (config) {\n timers().configure({ ...workerState.config.fakeTimers, ...config });\n } else {\n timers().configure(workerState.config.fakeTimers);\n }\n timers().useFakeTimers();\n return utils;\n },\n isFakeTimers() {\n return timers().isFakeTimers();\n },\n useRealTimers() {\n timers().useRealTimers();\n _mockedDate = null;\n return utils;\n },\n runOnlyPendingTimers() {\n timers().runOnlyPendingTimers();\n return utils;\n },\n async runOnlyPendingTimersAsync() {\n await timers().runOnlyPendingTimersAsync();\n return utils;\n },\n runAllTimers() {\n timers().runAllTimers();\n return utils;\n },\n async runAllTimersAsync() {\n await timers().runAllTimersAsync();\n return utils;\n },\n runAllTicks() {\n timers().runAllTicks();\n return utils;\n },\n advanceTimersByTime(ms) {\n timers().advanceTimersByTime(ms);\n return utils;\n },\n async advanceTimersByTimeAsync(ms) {\n await timers().advanceTimersByTimeAsync(ms);\n return utils;\n },\n advanceTimersToNextTimer() {\n timers().advanceTimersToNextTimer();\n return utils;\n },\n async advanceTimersToNextTimerAsync() {\n await timers().advanceTimersToNextTimerAsync();\n return utils;\n },\n advanceTimersToNextFrame() {\n timers().advanceTimersToNextFrame();\n return utils;\n },\n getTimerCount() {\n return timers().getTimerCount();\n },\n setSystemTime(time) {\n const date = time instanceof Date ? time : new Date(time);\n _mockedDate = date;\n timers().setSystemTime(date);\n return utils;\n },\n getMockedSystemTime() {\n return _mockedDate;\n },\n getRealSystemTime() {\n return timers().getRealSystemTime();\n },\n clearAllTimers() {\n timers().clearAllTimers();\n return utils;\n },\n // mocks\n spyOn,\n fn,\n waitFor,\n waitUntil,\n hoisted(factory) {\n assertTypes(factory, '\"vi.hoisted\" factory', [\"function\"]);\n return factory();\n },\n mock(path, factory) {\n if (typeof path !== \"string\") {\n throw new TypeError(\n `vi.mock() expects a string path, but received a ${typeof path}`\n );\n }\n const importer = getImporter(\"mock\");\n _mocker().queueMock(\n path,\n importer,\n typeof factory === \"function\" ? () => factory(\n () => _mocker().importActual(\n path,\n importer,\n _mocker().getMockContext().callstack\n )\n ) : factory\n );\n },\n unmock(path) {\n if (typeof path !== \"string\") {\n throw new TypeError(\n `vi.unmock() expects a string path, but received a ${typeof path}`\n );\n }\n _mocker().queueUnmock(path, getImporter(\"unmock\"));\n },\n doMock(path, factory) {\n if (typeof path !== \"string\") {\n throw new TypeError(\n `vi.doMock() expects a string path, but received a ${typeof path}`\n );\n }\n const importer = getImporter(\"doMock\");\n _mocker().queueMock(\n path,\n importer,\n typeof factory === \"function\" ? () => factory(\n () => _mocker().importActual(\n path,\n importer,\n _mocker().getMockContext().callstack\n )\n ) : factory\n );\n },\n doUnmock(path) {\n if (typeof path !== \"string\") {\n throw new TypeError(\n `vi.doUnmock() expects a string path, but received a ${typeof path}`\n );\n }\n _mocker().queueUnmock(path, getImporter(\"doUnmock\"));\n },\n async importActual(path) {\n return _mocker().importActual(\n path,\n getImporter(\"importActual\"),\n _mocker().getMockContext().callstack\n );\n },\n async importMock(path) {\n return _mocker().importMock(path, getImporter(\"importMock\"));\n },\n // this is typed in the interface so it's not necessary to type it here\n mocked(item, _options = {}) {\n return item;\n },\n isMockFunction(fn2) {\n return isMockFunction(fn2);\n },\n clearAllMocks() {\n mocks.forEach((spy) => spy.mockClear());\n return utils;\n },\n resetAllMocks() {\n mocks.forEach((spy) => spy.mockReset());\n return utils;\n },\n restoreAllMocks() {\n mocks.forEach((spy) => spy.mockRestore());\n return utils;\n },\n stubGlobal(name, value) {\n if (!_stubsGlobal.has(name)) {\n _stubsGlobal.set(\n name,\n Object.getOwnPropertyDescriptor(globalThis, name)\n );\n }\n Object.defineProperty(globalThis, name, {\n value,\n writable: true,\n configurable: true,\n enumerable: true\n });\n return utils;\n },\n stubEnv(name, value) {\n if (!_stubsEnv.has(name)) {\n _stubsEnv.set(name, process.env[name]);\n }\n if (_envBooleans.includes(name)) {\n process.env[name] = value ? \"1\" : \"\";\n } else if (value === void 0) {\n delete process.env[name];\n } else {\n process.env[name] = String(value);\n }\n return utils;\n },\n unstubAllGlobals() {\n _stubsGlobal.forEach((original, name) => {\n if (!original) {\n Reflect.deleteProperty(globalThis, name);\n } else {\n Object.defineProperty(globalThis, name, original);\n }\n });\n _stubsGlobal.clear();\n return utils;\n },\n unstubAllEnvs() {\n _stubsEnv.forEach((original, name) => {\n if (original === void 0) {\n delete process.env[name];\n } else {\n process.env[name] = original;\n }\n });\n _stubsEnv.clear();\n return utils;\n },\n resetModules() {\n resetModules(workerState.moduleCache);\n return utils;\n },\n async dynamicImportSettled() {\n return waitForImportsToResolve();\n },\n setConfig(config) {\n if (!_config) {\n _config = { ...workerState.config };\n }\n Object.assign(workerState.config, config);\n },\n resetConfig() {\n if (_config) {\n Object.assign(workerState.config, _config);\n }\n }\n };\n return utils;\n}\nconst vitest = createVitest();\nconst vi = vitest;\nfunction _mocker() {\n return typeof __vitest_mocker__ !== \"undefined\" ? __vitest_mocker__ : new Proxy(\n {},\n {\n get(_, name) {\n throw new Error(\n `Vitest mocker was not initialized in this environment. vi.${String(name)}() is forbidden.`\n );\n }\n }\n );\n}\nfunction getImporter(name) {\n const stackTrace = createSimpleStackTrace({ stackTraceLimit: 5 });\n const stackArray = stackTrace.split(\"\\n\");\n const importerStackIndex = stackArray.findIndex((stack2) => {\n return stack2.includes(` at Object.${name}`) || stack2.includes(`${name}@`);\n });\n const stack = parseSingleStack(stackArray[importerStackIndex + 1]);\n return stack?.file || \"\";\n}\n\nexport { globalExpect as a, vitest as b, createExpect as c, getSnapshotClient as g, vi as v };\n","export { c as createExpect, a as expect, v as vi, b as vitest } from './chunks/vi.DgezovHB.js';\nexport { b as assertType, g as getRunningMode, i as inject, a as isWatchMode } from './chunks/index.ckWaX2gY.js';\nexport { i as isFirstRun, a as runOnce } from './chunks/run-once.2ogXb3JV.js';\nexport { b as bench } from './chunks/benchmark.Cdu9hjj4.js';\nexport { expectTypeOf } from 'expect-type';\nexport { afterAll, afterEach, beforeAll, beforeEach, describe, it, onTestFailed, onTestFinished, suite, test } from '@vitest/runner';\nimport * as chai from 'chai';\nexport { chai };\nexport { assert, should } from 'chai';\nimport '@vitest/expect';\nimport '@vitest/runner/utils';\nimport './chunks/utils.C8RiOc4B.js';\nimport '@vitest/utils';\nimport './chunks/_commonjsHelpers.BFTU3MAI.js';\nimport '@vitest/snapshot';\nimport '@vitest/utils/error';\nimport '@vitest/utils/source-map';\nimport './chunks/date.W2xKR2qe.js';\nimport '@vitest/spy';\n","import { describe, it, expect } from 'vitest'\nimport type { Finding } from '@sanity/lint-core'\nimport type { SchemaType, SchemaRule, SchemaRuleContext } from './types'\n\n/**\n * A valid test case - schema that should produce no findings\n */\nexport interface ValidSchemaTestCase {\n /** The schema to test */\n schema: SchemaType\n /** Optional name for the test */\n name?: string\n}\n\n/**\n * Expected error in an invalid test case\n */\nexport interface ExpectedSchemaError {\n /** Expected rule ID (defaults to the rule being tested) */\n ruleId?: string\n /** Expected message (string for exact match, RegExp for pattern) */\n message?: string | RegExp\n /** Expected severity */\n severity?: 'error' | 'warning' | 'info'\n}\n\n/**\n * An invalid test case - schema that should produce findings\n */\nexport interface InvalidSchemaTestCase {\n /** The schema to test */\n schema: SchemaType\n /** Optional name for the test */\n name?: string\n /** Expected errors */\n errors: ExpectedSchemaError[]\n}\n\n/**\n * Test suite for a schema rule\n */\nexport interface SchemaRuleTests {\n /** Schemas that should produce no findings */\n valid: (SchemaType | ValidSchemaTestCase)[]\n /** Schemas that should produce findings */\n invalid: InvalidSchemaTestCase[]\n}\n\n/**\n * Run a single schema rule against a schema and collect findings\n */\nfunction runSchemaRule(rule: SchemaRule, schema: SchemaType): Finding[] {\n const findings: Finding[] = []\n\n const context: SchemaRuleContext = {\n filePath: 'test.ts',\n report: (finding) => {\n findings.push({\n ...finding,\n ruleId: rule.id,\n })\n },\n }\n\n rule.check(schema, context)\n\n return findings\n}\n\n/**\n * Assert that a finding matches expected error\n */\nfunction assertFindingMatches(\n finding: Finding,\n expected: ExpectedSchemaError,\n ruleId: string\n): void {\n // Check rule ID\n const expectedRuleId = expected.ruleId ?? ruleId\n expect(finding.ruleId).toBe(expectedRuleId)\n\n // Check message if specified\n if (expected.message !== undefined) {\n if (typeof expected.message === 'string') {\n expect(finding.message).toBe(expected.message)\n } else {\n expect(finding.message).toMatch(expected.message)\n }\n }\n\n // Check severity if specified\n if (expected.severity !== undefined) {\n expect(finding.severity).toBe(expected.severity)\n }\n}\n\n/**\n * Helper to create a minimal valid schema for testing\n */\nexport function createSchema(overrides: Partial<SchemaType> = {}): SchemaType {\n return {\n name: 'testType',\n type: 'document',\n usesDefineType: true,\n usesDefineField: true,\n ...overrides,\n }\n}\n\n/**\n * Test utility for schema lint rules, inspired by ESLint's RuleTester\n *\n * @example\n * ```typescript\n * import { SchemaRuleTester, createSchema } from '@sanity/schema-lint/testing'\n * import { missingIcon } from '../missing-icon'\n *\n * const tester = new SchemaRuleTester()\n *\n * tester.run('missing-icon', missingIcon, {\n * valid: [\n * createSchema({ hasIcon: true }),\n * ],\n * invalid: [\n * {\n * schema: createSchema({ hasIcon: false }),\n * errors: [{ ruleId: 'missing-icon' }]\n * }\n * ]\n * })\n * ```\n */\nexport class SchemaRuleTester {\n /**\n * Run tests for a schema rule\n * @param ruleName - Name for the test suite\n * @param rule - The rule to test\n * @param tests - Valid and invalid test cases\n */\n run(ruleName: string, rule: SchemaRule, tests: SchemaRuleTests): void {\n describe(ruleName, () => {\n describe('valid', () => {\n for (const test of tests.valid) {\n const testCase = 'schema' in test ? test : { schema: test }\n const testName = testCase.name ?? `${testCase.schema.name} (${testCase.schema.type})`\n\n it(testName, () => {\n const findings = runSchemaRule(rule, testCase.schema)\n expect(findings).toHaveLength(0)\n })\n }\n })\n\n describe('invalid', () => {\n for (const test of tests.invalid) {\n const testName = test.name ?? `${test.schema.name} (${test.schema.type})`\n\n it(testName, () => {\n const findings = runSchemaRule(rule, test.schema)\n\n // Check we got the expected number of errors\n expect(findings).toHaveLength(test.errors.length)\n\n // Check each error matches\n for (let i = 0; i < test.errors.length; i++) {\n const finding = findings[i]\n const expected = test.errors[i]\n if (finding && expected) {\n assertFindingMatches(finding, expected, rule.id)\n }\n }\n })\n }\n })\n })\n }\n}\n"],"mappings":";;;;;;;AAAA;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,WAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;AAAA;AAAA;;;ACD5D;AAAA;AAAA;AACA,QAAI,kBAAmB,WAAQ,QAAK,oBAAqB,OAAO,UAAU,SAAS,GAAGA,IAAGC,IAAGC,KAAI;AAC5F,UAAIA,QAAO,OAAW,CAAAA,MAAKD;AAC3B,UAAI,OAAO,OAAO,yBAAyBD,IAAGC,EAAC;AAC/C,UAAI,CAAC,SAAS,SAAS,OAAO,CAACD,GAAE,aAAa,KAAK,YAAY,KAAK,eAAe;AACjF,eAAO,EAAE,YAAY,MAAM,KAAK,WAAW;AAAE,iBAAOA,GAAEC,EAAC;AAAA,QAAG,EAAE;AAAA,MAC9D;AACA,aAAO,eAAe,GAAGC,KAAI,IAAI;AAAA,IACrC,MAAM,SAAS,GAAGF,IAAGC,IAAGC,KAAI;AACxB,UAAIA,QAAO,OAAW,CAAAA,MAAKD;AAC3B,QAAEC,GAAE,IAAIF,GAAEC,EAAC;AAAA,IACf;AACA,QAAI,eAAgB,WAAQ,Q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AE,QAAQA,MAAK;AAC1D,gBAAMC,YAAW,SAAS,QAAQ,GAAG,SAAS,OAAO,IAAI,KAAK,SAAS,OAAO,IAAI;AAElF,aAAGA,WAAU,MAAM;AACjB,kBAAM,WAAW,cAAc,MAAM,SAAS,MAAM;AACpD,yBAAO,QAAQ,EAAE,aAAa,CAAC;AAAA,UACjC,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAED,eAAS,WAAW,MAAM;AACxB,mBAAWD,SAAQ,MAAM,SAAS;AAChC,gBAAMC,YAAWD,MAAK,QAAQ,GAAGA,MAAK,OAAO,IAAI,KAAKA,MAAK,OAAO,IAAI;AAEtE,aAAGC,WAAU,MAAM;AACjB,kBAAM,WAAW,cAAc,MAAMD,MAAK,MAAM;AAGhD,yBAAO,QAAQ,EAAE,aAAaA,MAAK,OAAO,MAAM;AAGhD,qBAAS,IAAI,GAAG,IAAIA,MAAK,OAAO,QAAQ,KAAK;AAC3C,oBAAM,UAAU,SAAS,CAAC;AAC1B,oBAAM,WAAWA,MAAK,OAAO,CAAC;AAC9B,kBAAI,WAAW,UAAU;AACvB,qCAAqB,SAAS,UAAU,KAAK,EAAE;AAAA,cACjD;AAAA,YACF;AAAA,UACF,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AACF;","names":["m","k","k2","exports","p","fn","expectTypeOf","r","l","u","d","p","object","keys","config","printer","l","type","d","f","h","k","m","p","u","a","r","typeOf","Element","functionName","printFunctionName","escapeRegex","plugin","truncate","inspect","string","array","array","string","map","set","string","object","sep","inspectObject","truncate","inspectObject","type","toString","object","format","inspect","x","m","type","fn","keys","array","getType","k","k2","path","p","resolve","found","d","foundSubsequence","isCommon","type","diff","string","p","a","truncate","getType","AsymmetricMatcher","DOMCollection","DOMElement","Immutable","ReactElement","ReactTestComponent","PLUGINS","map","set","hasCommonDiff","object","f","m","r","p","a","C","r","p","a","h","f","m","C","type","format","clone","inspect2","isNaN2","objDisplay","test","getConstructorName","ansiColors","styles","truncator","colorise","normaliseOptions","truncate2","inspect3","isHighSurrogate","truncate","string","inspectList","quoteComplexKey","inspectProperty","inspectArray","array","getArrayName","inspectTypedArray","inspectDate","inspectFunction","inspectMapEntry","mapToEntries","map","inspectMap","isNaN","inspectNumber","inspectBigInt","inspectRegExp","arrayFromSet","set2","inspectSet","stringEscapeChars","escapeCharacters","hex","unicodeLength","escape","inspectString","inspectSymbol","getPromiseValue","promise_default","inspectObject","object","sep","toStringTag","inspectClass","inspectArguments","errorKeys","inspectObject2","inspectAttribute","inspectNodeCollection","inspectNode","inspectHTML","symbolsSupported","chaiInspect","nodeInspect","constructorMap","stringTagMap","baseTypesMap","inspectCustom","toString","inspect","keys","isPrimitive","path","fn","a","isObject","x","test2","p","SPACE_SYMBOL","replaceTrailingSpaces","printReceived","object","printExpected","getType","a","a","IS_KEYED_SENTINEL","IS_SET_SENTINEL","IS_LIST_SENTINEL","IS_ORDERED_SENTINEL","IS_RECORD_SYMBOL","object","a","a2","object2","expect","map","AsymmetricMatcher","functionToString","chai","_test","test","fn","AssertionError","addMethod","m","type","k","p","UrlType","r","path","p","functionName","_DRIVE_LETTER_START_RE","normalizeWindowsPath","r","_IS_ABSOLUTE_RE","cwd","resolve","normalizeWindowsPath","path","isAbsolute","normalizeString","p","_IS_ABSOLUTE_RE","keys","fn","suite","fn","resolve","test","runner","fn","d","test","assert","assert","assert","fn","shuffle","test2","test3","r","fn2","_test","format","test","fn","path","resolve","getDefaultExportFromCjs","x","comma","chars","intToChar","charToInt","relative","a","UrlType","path","url","type","resolve","map","notNullish","isPrimitive","isObject","getCallLastIndex","CHROME_IE_STACK_REGEXP","SAFARI_NATIVE_CODE_REGEXP","extractLocation","parseSingleFFOrSafariStack","functionName","parseSingleV8Stack","p","f","getPromiseValue","nodeInspect","getDefaultExportFromCjs","x","jsTokens_1","hasRequiredJsTokens","requireJsTokens","reservedWords","h","C","r","l","u","d","naturalCompare","serialize$1","config","printer","test","plugin","DOMCollection","DOMElement","Immutable","ReactElement","ReactTestComponent","AsymmetricMatcher","PLUGINS","testName","string","serialize","now","y","m","d","h","expect","fn","test","resolve","path","chaiSubset","chai","Assertion","getDefaultExportFromCjs","createAssertionMessage","recordAsyncExpect","_test","assert2","global","object","call","copyPrototypeMethods","every","functionName","sort","a","set","typeDetect","type","typeOf","l","now","toString","timers","config","test","testName"]}
|