@effect-uai/core 0.16.0 → 0.18.0

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.
Files changed (103) hide show
  1. package/README.md +1 -1
  2. package/dist/decision-model/Decision.d.mts +155 -0
  3. package/dist/decision-model/Decision.d.mts.map +1 -0
  4. package/dist/decision-model/Decision.mjs +118 -0
  5. package/dist/decision-model/Decision.mjs.map +1 -0
  6. package/dist/decision-model/Decision.test.d.mts +1 -0
  7. package/dist/decision-model/Decision.test.mjs +164 -0
  8. package/dist/decision-model/Decision.test.mjs.map +1 -0
  9. package/dist/decision-model/DecisionModel.d.mts +45 -0
  10. package/dist/decision-model/DecisionModel.d.mts.map +1 -0
  11. package/dist/decision-model/DecisionModel.mjs +25 -0
  12. package/dist/decision-model/DecisionModel.mjs.map +1 -0
  13. package/dist/dist-C8RmtoR8.mjs +172 -0
  14. package/dist/dist-C8RmtoR8.mjs.map +1 -0
  15. package/dist/dist-CorQTQL-.mjs +1533 -0
  16. package/dist/dist-CorQTQL-.mjs.map +1 -0
  17. package/dist/dist-DNeuh84d.mjs +7 -0
  18. package/dist/dist-DNeuh84d.mjs.map +1 -0
  19. package/dist/dist-DzeSyeYF.mjs +10253 -0
  20. package/dist/dist-DzeSyeYF.mjs.map +1 -0
  21. package/dist/domain/Transcript.test.mjs +3 -3
  22. package/dist/domain/Turn.test.mjs +2 -2
  23. package/dist/embedding-model/EmbeddingModel.test.mjs +2 -2
  24. package/dist/embedding-model/EmbeddingModel.test.mjs.map +1 -1
  25. package/dist/index.C4tKZ0yW-LuFnBtmu.mjs +7042 -0
  26. package/dist/index.C4tKZ0yW-LuFnBtmu.mjs.map +1 -0
  27. package/dist/index.d.mts +4 -1
  28. package/dist/index.mjs +4 -1
  29. package/dist/language-model/LanguageModel.test.mjs +2 -2
  30. package/dist/loop/Loop.mjs.map +1 -1
  31. package/dist/loop/Loop.test.mjs +3 -3
  32. package/dist/math/Probability.d.mts +21 -0
  33. package/dist/math/Probability.d.mts.map +1 -0
  34. package/dist/math/Probability.mjs +31 -0
  35. package/dist/math/Probability.mjs.map +1 -0
  36. package/dist/math/Probability.test.d.mts +1 -0
  37. package/dist/math/Probability.test.mjs +95 -0
  38. package/dist/math/Probability.test.mjs.map +1 -0
  39. package/dist/messenger/MessengerAdapter.test.mjs +3 -3
  40. package/dist/music-generator/MusicGenerator.test.mjs +3 -3
  41. package/dist/observability/Metrics.test.mjs +3 -3
  42. package/dist/observability/Telemetry.d.mts +1 -1
  43. package/dist/observability/Telemetry.mjs +1 -1
  44. package/dist/observability/Telemetry.mjs.map +1 -1
  45. package/dist/observability/Telemetry.test.mjs +4 -4
  46. package/dist/observability/Telemetry.test.mjs.map +1 -1
  47. package/dist/realtime/RealtimeSession.test.mjs +4 -4
  48. package/dist/retry/Retry.test.mjs +2 -2
  49. package/dist/speech-synthesizer/SpeechSynthesizer.test.mjs +3 -3
  50. package/dist/streaming/JSONL.test.mjs +2 -2
  51. package/dist/streaming/Multipart.d.mts +1 -1
  52. package/dist/streaming/Multipart.mjs +1 -1
  53. package/dist/streaming/Multipart.mjs.map +1 -1
  54. package/dist/streaming/SSE.d.mts +1 -1
  55. package/dist/streaming/SSE.mjs +2 -2
  56. package/dist/streaming/SSE.mjs.map +1 -1
  57. package/dist/streaming/SSE.test.mjs +2 -2
  58. package/dist/streaming/Settle.test.mjs +3 -3
  59. package/dist/streaming/WebSocketSession.d.mts +5 -3
  60. package/dist/streaming/WebSocketSession.d.mts.map +1 -1
  61. package/dist/streaming/WebSocketSession.mjs +22 -10
  62. package/dist/streaming/WebSocketSession.mjs.map +1 -1
  63. package/dist/streaming/WebSocketSession.test.mjs +41 -5
  64. package/dist/streaming/WebSocketSession.test.mjs.map +1 -1
  65. package/dist/structured-format/StructuredFormat.mjs.map +1 -1
  66. package/dist/structured-format/StructuredFormat.test.mjs +2 -2
  67. package/dist/testing/FakeWebSocket.d.mts +5 -1
  68. package/dist/testing/FakeWebSocket.d.mts.map +1 -1
  69. package/dist/testing/FakeWebSocket.mjs +12 -6
  70. package/dist/testing/FakeWebSocket.mjs.map +1 -1
  71. package/dist/tool/Approval.test.mjs +2 -2
  72. package/dist/tool/Tool.mjs.map +1 -1
  73. package/dist/tool/Tool.test.mjs +3 -3
  74. package/dist/tool/Toolkit.test.mjs +3 -3
  75. package/dist/transcriber/Transcriber.test.mjs +3 -3
  76. package/package.json +15 -3
  77. package/src/decision-model/Decision.test.ts +146 -0
  78. package/src/decision-model/Decision.ts +273 -0
  79. package/src/decision-model/DecisionModel.ts +53 -0
  80. package/src/embedding-model/EmbeddingModel.test.ts +2 -2
  81. package/src/index.ts +3 -0
  82. package/src/loop/Loop.ts +1 -1
  83. package/src/math/Probability.test.ts +61 -0
  84. package/src/math/Probability.ts +44 -0
  85. package/src/observability/Telemetry.test.ts +1 -1
  86. package/src/observability/Telemetry.ts +2 -2
  87. package/src/streaming/Multipart.ts +1 -1
  88. package/src/streaming/SSE.ts +2 -2
  89. package/src/streaming/WebSocketSession.test.ts +54 -2
  90. package/src/streaming/WebSocketSession.ts +27 -6
  91. package/src/structured-format/StructuredFormat.ts +1 -1
  92. package/src/testing/FakeWebSocket.ts +21 -6
  93. package/src/tool/Tool.ts +1 -1
  94. package/dist/dist-BaenoU1A.mjs +0 -145
  95. package/dist/dist-BaenoU1A.mjs.map +0 -1
  96. package/dist/dist-nohcnkD6.mjs +0 -182
  97. package/dist/dist-nohcnkD6.mjs.map +0 -1
  98. package/dist/magic-string.es-CB2hOw9v.mjs +0 -1014
  99. package/dist/magic-string.es-CB2hOw9v.mjs.map +0 -1
  100. package/dist/test.DNmyFkvJ-YPzDR0Co.mjs +0 -10254
  101. package/dist/test.DNmyFkvJ-YPzDR0Co.mjs.map +0 -1
  102. package/dist/utils-CiH_DjFW.mjs +0 -3918
  103. package/dist/utils-CiH_DjFW.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.C4tKZ0yW-LuFnBtmu.mjs","names":["serialize","AsymmetricMatcher","util","chai.Assertion","chai.use","expect","chai.expect","chai.assert","Bench"],"sources":["../../../node_modules/.pnpm/vitest@5.0.3_@types+node@26.2.0_vite@7.3.2_@types+node@26.2.0_jiti@2.6.1_lightningcss@1.32.0_tsx@4.23.12_yaml@2.9.0_/node_modules/vitest/dist/chunks/utils.DYj33du9.js","../../../node_modules/.pnpm/vitest@5.0.3_@types+node@26.2.0_vite@7.3.2_@types+node@26.2.0_jiti@2.6.1_lightningcss@1.32.0_tsx@4.23.12_yaml@2.9.0_/node_modules/vitest/dist/chunks/spy.DgMTfhrK.js","../../../node_modules/.pnpm/vitest@5.0.3_@types+node@26.2.0_vite@7.3.2_@types+node@26.2.0_jiti@2.6.1_lightningcss@1.32.0_tsx@4.23.12_yaml@2.9.0_/node_modules/vitest/dist/chunks/plugins.D2ut1V9b.js","../../../node_modules/.pnpm/vitest@5.0.3_@types+node@26.2.0_vite@7.3.2_@types+node@26.2.0_jiti@2.6.1_lightningcss@1.32.0_tsx@4.23.12_yaml@2.9.0_/node_modules/vitest/dist/chunks/offset.Dy-5Fdfn.js","../../../node_modules/.pnpm/vitest@5.0.3_@types+node@26.2.0_vite@7.3.2_@types+node@26.2.0_jiti@2.6.1_lightningcss@1.32.0_tsx@4.23.12_yaml@2.9.0_/node_modules/vitest/dist/chunks/rpc.BTmCtPly.js","../../../node_modules/.pnpm/vitest@5.0.3_@types+node@26.2.0_vite@7.3.2_@types+node@26.2.0_jiti@2.6.1_lightningcss@1.32.0_tsx@4.23.12_yaml@2.9.0_/node_modules/vitest/dist/chunks/index.C4tKZ0yW.js"],"sourcesContent":["const NAME_WORKER_STATE = \"__vitest_worker__\";\nclass EnvironmentTeardownError extends Error {\n\tname = \"EnvironmentTeardownError\";\n}\nfunction getWorkerState() {\n\t// @ts-expect-error untyped global\n\tconst workerState = globalThis[NAME_WORKER_STATE];\n\tif (!workerState) throw new Error(\"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- \\\"vitest\\\" is imported inside Vite / Vitest config file\\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\\n\");\n\treturn workerState;\n}\nfunction getSafeWorkerState() {\n\t// @ts-expect-error untyped global\n\treturn globalThis[NAME_WORKER_STATE];\n}\nfunction provideWorkerState(context, state) {\n\tObject.defineProperty(context, NAME_WORKER_STATE, {\n\t\tvalue: state,\n\t\tconfigurable: true,\n\t\twritable: true,\n\t\tenumerable: false\n\t});\n\treturn state;\n}\nfunction isChildProcess() {\n\treturn typeof process !== \"undefined\" && !!process.send;\n}\nfunction resetModules(modules, resetMocks = false) {\n\tconst skipPaths = [\n\t\t/\\/vitest\\/dist\\//,\n\t\t/vitest-virtual-\\w+\\/dist/,\n\t\t/@vitest\\/dist/,\n\t\t...!resetMocks ? [/^mock:/] : []\n\t];\n\tmodules.idToModuleMap.forEach((node, path) => {\n\t\tif (skipPaths.some((re) => re.test(path))) return;\n\t\tnode.promise = void 0;\n\t\tnode.exports = void 0;\n\t\tnode.evaluated = false;\n\t\tnode.importers.clear();\n\t});\n}\n\nexport { EnvironmentTeardownError as E, getSafeWorkerState as a, getWorkerState as g, isChildProcess as i, provideWorkerState as p, resetModules as r };\n","function isMockFunction(fn) {\n\treturn typeof fn === \"function\" && \"_isMockFunction\" in fn && fn._isMockFunction === true;\n}\nconst MOCK_RESTORE = /* @__PURE__ */ new Set();\n// Jest keeps the state in a separate WeakMap which is good for memory,\n// but it makes the state slower to access and return different values\n// if you stored it before calling `mockClear` where it will be recreated\nconst DIRTY_MOCK_STATES = /* @__PURE__ */ new Set();\nconst addDirtyMock = DIRTY_MOCK_STATES.add.bind(DIRTY_MOCK_STATES);\nconst REGISTERED_MOCKS = /* @__PURE__ */ new Set();\nconst MOCK_FINALIZER = new FinalizationRegistry((ref) => {\n\tREGISTERED_MOCKS.delete(ref);\n});\nconst MOCK_CONFIGS = /* @__PURE__ */ new WeakMap();\nconst MOCKS_BY_STATE = /* @__PURE__ */ new WeakMap();\nfunction createMockInstance(options = {}) {\n\tconst { originalImplementation, restore, mockImplementation, resetToMockImplementation, resetToMockName } = options;\n\tif (restore) MOCK_RESTORE.add(restore);\n\tconst config = getDefaultConfig(originalImplementation);\n\tconst state = getDefaultState();\n\tconst mock = createMock({\n\t\tconfig,\n\t\tstate,\n\t\t...options\n\t});\n\tconst mockLength = (mockImplementation || originalImplementation)?.length ?? 0;\n\tObject.defineProperty(mock, \"length\", {\n\t\twritable: true,\n\t\tenumerable: false,\n\t\tvalue: mockLength,\n\t\tconfigurable: true\n\t});\n\t// inherit the default name so it appears in snapshots and logs\n\t// this is used by `vi.spyOn()` for better debugging.\n\t// when `vi.fn()` is called, we just use the default string\n\tif (resetToMockName) config.mockName = mock.name || \"vi.fn()\";\n\tMOCK_CONFIGS.set(mock, config);\n\tMOCKS_BY_STATE.set(state, mock);\n\tconst ref = new WeakRef(mock);\n\tREGISTERED_MOCKS.add(ref);\n\tMOCK_FINALIZER.register(mock, ref);\n\tmock._isMockFunction = true;\n\tmock.getMockImplementation = () => {\n\t\t// Jest only returns `config.mockImplementation` here,\n\t\t// but we think it makes sense to return what the next function will be called\n\t\treturn config.onceMockImplementations[0] || config.mockImplementation;\n\t};\n\t// keep the prototype chain in sync with the implementation the next\n\t// construction will use, so it is correct before any `new` call.\n\t// automocked classes are skipped: their methods are pre-mocked\n\t// on `mock.prototype`\n\tconst updateMockPrototype = () => {\n\t\tif (!options.prototypeMembers?.length) reparentMockPrototype(mock, config.onceMockImplementations[0] || config.mockImplementation || originalImplementation);\n\t};\n\tObject.defineProperty(mock, \"mock\", {\n\t\tconfigurable: false,\n\t\tenumerable: true,\n\t\twritable: false,\n\t\tvalue: state\n\t});\n\tmock.mockImplementation = function mockImplementation(implementation) {\n\t\tconfig.mockImplementation = implementation;\n\t\tupdateMockPrototype();\n\t\treturn mock;\n\t};\n\tmock.mockImplementationOnce = function mockImplementationOnce(implementation) {\n\t\tconfig.onceMockImplementations.push(implementation);\n\t\tupdateMockPrototype();\n\t\treturn mock;\n\t};\n\tmock.withImplementation = function withImplementation(implementation, callback) {\n\t\tconst previousImplementation = config.mockImplementation;\n\t\tconst previousOnceImplementations = config.onceMockImplementations;\n\t\tconst reset = () => {\n\t\t\tconfig.mockImplementation = previousImplementation;\n\t\t\tconfig.onceMockImplementations = previousOnceImplementations;\n\t\t\tupdateMockPrototype();\n\t\t};\n\t\tconfig.mockImplementation = implementation;\n\t\tconfig.onceMockImplementations = [];\n\t\tupdateMockPrototype();\n\t\tconst returnValue = callback();\n\t\tif (typeof returnValue === \"object\" && typeof returnValue?.then === \"function\") return returnValue.then(() => {\n\t\t\treset();\n\t\t\treturn mock;\n\t\t});\n\t\telse reset();\n\t\treturn mock;\n\t};\n\tmock.mockReturnThis = function mockReturnThis() {\n\t\treturn mock.mockImplementation(function() {\n\t\t\treturn this;\n\t\t});\n\t};\n\tmock.mockReturnValue = function mockReturnValue(value) {\n\t\treturn mock.mockImplementation(function() {\n\t\t\tif (new.target) throwConstructorError(\"mockReturnValue\");\n\t\t\treturn value;\n\t\t});\n\t};\n\tmock.mockReturnValueOnce = function mockReturnValueOnce(value) {\n\t\treturn mock.mockImplementationOnce(function() {\n\t\t\tif (new.target) throwConstructorError(\"mockReturnValueOnce\");\n\t\t\treturn value;\n\t\t});\n\t};\n\tmock.mockThrow = function mockThrow(value) {\n\t\t// oxlint-disable-next-line prefer-arrow-callback\n\t\treturn mock.mockImplementation(function() {\n\t\t\tthrow value;\n\t\t});\n\t};\n\tmock.mockThrowOnce = function mockThrowOnce(value) {\n\t\t// oxlint-disable-next-line prefer-arrow-callback\n\t\treturn mock.mockImplementationOnce(function() {\n\t\t\tthrow value;\n\t\t});\n\t};\n\tmock.mockResolvedValue = function mockResolvedValue(value) {\n\t\treturn mock.mockImplementation(function() {\n\t\t\tif (new.target) throwConstructorError(\"mockResolvedValue\");\n\t\t\treturn Promise.resolve(value);\n\t\t});\n\t};\n\tmock.mockResolvedValueOnce = function mockResolvedValueOnce(value) {\n\t\treturn mock.mockImplementationOnce(function() {\n\t\t\tif (new.target) throwConstructorError(\"mockResolvedValueOnce\");\n\t\t\treturn Promise.resolve(value);\n\t\t});\n\t};\n\tmock.mockRejectedValue = function mockRejectedValue(value) {\n\t\treturn mock.mockImplementation(function() {\n\t\t\tif (new.target) throwConstructorError(\"mockRejectedValue\");\n\t\t\treturn Promise.reject(value);\n\t\t});\n\t};\n\tmock.mockRejectedValueOnce = function mockRejectedValueOnce(value) {\n\t\treturn mock.mockImplementationOnce(function() {\n\t\t\tif (new.target) throwConstructorError(\"mockRejectedValueOnce\");\n\t\t\treturn Promise.reject(value);\n\t\t});\n\t};\n\tmock.mockClear = function mockClear() {\n\t\tstate.calls = [];\n\t\tstate.contexts = [];\n\t\tstate.instances = [];\n\t\tstate.invocationCallOrder = [];\n\t\tstate.results = [];\n\t\tstate.settledResults = [];\n\t\tDIRTY_MOCK_STATES.delete(mock);\n\t\treturn mock;\n\t};\n\tmock.mockReset = function mockReset() {\n\t\tmock.mockClear();\n\t\tconfig.mockImplementation = resetToMockImplementation ? mockImplementation : void 0;\n\t\tconfig.mockName = resetToMockName ? mock.name || \"vi.fn()\" : \"vi.fn()\";\n\t\tconfig.onceMockImplementations = [];\n\t\tupdateMockPrototype();\n\t\treturn mock;\n\t};\n\tmock.mockRestore = function mockRestore() {\n\t\tmock.mockReset();\n\t\treturn restore?.();\n\t};\n\tmock.mockName = function mockName(name) {\n\t\tif (typeof name === \"string\") config.mockName = name;\n\t\treturn mock;\n\t};\n\tmock.getMockName = function getMockName() {\n\t\treturn config.mockName || \"vi.fn()\";\n\t};\n\tif (Symbol.dispose) mock[Symbol.dispose] = () => mock.mockRestore();\n\tif (mockImplementation) mock.mockImplementation(mockImplementation);\n\telse\n // vi.spyOn() has no mock implementation, chain the original one\n\tupdateMockPrototype();\n\treturn mock;\n}\nfunction fn(originalImplementation) {\n\t// if the function is already a mock, just return the same function,\n\t// similarly to how vi.spyOn() works\n\tif (originalImplementation != null && isMockFunction(originalImplementation)) return originalImplementation;\n\treturn createMockInstance({\n\t\t// we pass this down so getMockImplementation() always returns the value\n\t\tmockImplementation: originalImplementation,\n\t\t// special case so that .mockReset() resets the value to\n\t\t// the the originalImplementation instead of () => undefined\n\t\tresetToMockImplementation: true\n\t});\n}\nfunction spyOn(object, key, accessor) {\n\tassert(object != null, \"The vi.spyOn() function could not find an object to spy upon. The first argument must be defined.\");\n\tassert(typeof object === \"object\" || typeof object === \"function\", \"Vitest cannot spy on a primitive value.\");\n\tconst [originalDescriptorObject, originalDescriptor] = getDescriptor(object, key) || [];\n\tassert(originalDescriptor || key in object, `The property \"${String(key)}\" is not defined on the ${typeof object}.`);\n\tlet accessType = accessor || \"value\";\n\tlet ssr = false;\n\t// vite ssr support - actual function is stored inside a getter\n\tif (accessType === \"value\" && originalDescriptor && originalDescriptor.value == null && originalDescriptor.get) {\n\t\taccessType = \"get\";\n\t\tssr = true;\n\t}\n\tlet original;\n\tif (originalDescriptor) {\n\t\toriginal = originalDescriptor[accessType];\n\t\t// weird Proxy edge case where descriptor's value is undefined,\n\t\t// but there's still a value on the object when called\n\t\t// https://github.com/vitest-dev/vitest/issues/9439\n\t\tif (original == null && accessType === \"value\") original = object[key];\n\t} else if (accessType !== \"value\") original = () => object[key];\n\telse original = object[key];\n\tconst originalImplementation = ssr && original ? original() : original;\n\tconst originalType = typeof originalImplementation;\n\tassert(\n\t\t// allow only functions\n\t\toriginalType === \"function\" || accessType !== \"value\" && original == null,\n\t\t`vi.spyOn() can only spy on a function. Received ${originalType}.`\n\t);\n\tif (isMockFunction(originalImplementation)) return originalImplementation;\n\tconst reassign = (cb) => {\n\t\tconst { value, ...desc } = originalDescriptor || {\n\t\t\tconfigurable: true,\n\t\t\twritable: true\n\t\t};\n\t\tif (accessType !== \"value\") delete desc.writable;\n\t\tdesc[accessType] = cb;\n\t\tObject.defineProperty(object, key, desc);\n\t};\n\tconst restore = () => {\n\t\t// if method is defined on the prototype, we can just remove it from\n\t\t// the current object instead of redefining a copy of it\n\t\tif (originalDescriptorObject !== object) Reflect.deleteProperty(object, key);\n\t\telse if (originalDescriptor && !original) Object.defineProperty(object, key, originalDescriptor);\n\t\telse reassign(original);\n\t};\n\tconst mock = createMockInstance({\n\t\trestore,\n\t\toriginalImplementation,\n\t\tresetToMockName: true\n\t});\n\ttry {\n\t\treassign(ssr ? () => mock : mock);\n\t} catch (error) {\n\t\tif (error instanceof TypeError && Symbol.toStringTag && object[Symbol.toStringTag] === \"Module\" && (error.message.includes(\"Cannot redefine property\") || error.message.includes(\"Cannot replace module namespace\") || error.message.includes(\"can't redefine non-configurable property\"))) throw new TypeError(`Cannot spy on export \"${String(key)}\". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/mocking/modules#mocking-a-module`, { cause: error });\n\t\tthrow error;\n\t}\n\treturn mock;\n}\nfunction getDescriptor(obj, method) {\n\tconst objDescriptor = Object.getOwnPropertyDescriptor(obj, method);\n\tif (objDescriptor) return [obj, objDescriptor];\n\tlet currentProto = Object.getPrototypeOf(obj);\n\twhile (currentProto !== null) {\n\t\tconst descriptor = Object.getOwnPropertyDescriptor(currentProto, method);\n\t\tif (descriptor) return [currentProto, descriptor];\n\t\tcurrentProto = Object.getPrototypeOf(currentProto);\n\t}\n}\nfunction assert(condition, message) {\n\tif (!condition) throw new Error(message);\n}\nlet invocationCallCounter = 1;\nfunction createMock({ state, config, name: mockName, prototypeState, prototypeConfig, keepMembersImplementation, mockImplementation, prototypeMembers = [] }) {\n\tconst original = config.mockOriginal;\n\tconst pseudoOriginal = mockImplementation;\n\tconst name = mockName || original?.name || \"Mock\";\n\tconst noopImplementation = function() {};\n\tconst prototypeMock = prototypeState && MOCKS_BY_STATE.get(prototypeState);\n\tconst namedObject = { \n\t// to keep the name of the function intact\n[name]: function(...args) {\n\t\taddDirtyMock(namedObject[name]);\n\t\tif (prototypeMock) addDirtyMock(prototypeMock);\n\t\tregisterCalls(args, state, prototypeState);\n\t\tregisterInvocationOrder(invocationCallCounter++, state, prototypeState);\n\t\tconst result = {\n\t\t\ttype: \"incomplete\",\n\t\t\tvalue: void 0\n\t\t};\n\t\tconst settledResult = {\n\t\t\ttype: \"incomplete\",\n\t\t\tvalue: void 0\n\t\t};\n\t\tregisterResult(result, state, prototypeState);\n\t\tregisterSettledResult(settledResult, state, prototypeState);\n\t\tconst context = new.target ? void 0 : this;\n\t\tconst [instanceIndex, instancePrototypeIndex] = registerInstance(context, state, prototypeState);\n\t\tconst [contextIndex, contextPrototypeIndex] = registerContext(context, state, prototypeState);\n\t\tconst implementation = config.onceMockImplementations.shift() || config.mockImplementation || prototypeConfig?.onceMockImplementations.shift() || prototypeConfig?.mockImplementation || original || noopImplementation;\n\t\tlet returnValue;\n\t\tlet thrownValue;\n\t\tlet didThrow = false;\n\t\ttry {\n\t\t\tif (new.target) {\n\t\t\t\t// the prototype chain is already prepared when the implementation\n\t\t\t\t// is registered, but a consumed `mockImplementationOnce` can change\n\t\t\t\t// which implementation this construction uses\n\t\t\t\tif (prototypeMembers.length === 0) reparentMockPrototype(\n\t\t\t\t\t// oxlint-disable-next-line typescript/no-use-before-define\n\t\t\t\t\tmock,\n\t\t\t\t\timplementation === noopImplementation ? void 0 : implementation\n\t\t\t\t);\n\t\t\t\treturnValue = Reflect.construct(implementation, args, new.target);\n\t\t\t\t// jest calls this before the implementation, but we have to resolve this _after_\n\t\t\t\t// because we cannot do it before the `Reflect.construct` called the custom implementation.\n\t\t\t\t// fortunately, the constructor is always an empty function because `prototypeMethods`\n\t\t\t\t// are only used by the automocker, so this doesn't matter\n\t\t\t\tfor (const prop of prototypeMembers) {\n\t\t\t\t\tconst prototypeMock = returnValue[prop];\n\t\t\t\t\t// the method was overridden because of inheritance, ignore it\n\t\t\t\t\t// oxlint-disable-next-line typescript/no-use-before-define\n\t\t\t\t\tif (prototypeMock !== mock.prototype[prop]) continue;\n\t\t\t\t\tconst isMock = isMockFunction(prototypeMock);\n\t\t\t\t\tconst prototypeState = isMock ? prototypeMock.mock : void 0;\n\t\t\t\t\tconst prototypeConfig = isMock ? MOCK_CONFIGS.get(prototypeMock) : void 0;\n\t\t\t\t\treturnValue[prop] = createMockInstance({\n\t\t\t\t\t\toriginalImplementation: keepMembersImplementation ? prototypeConfig?.mockOriginal : void 0,\n\t\t\t\t\t\tprototypeState,\n\t\t\t\t\t\tprototypeConfig,\n\t\t\t\t\t\tkeepMembersImplementation\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else returnValue = implementation.apply(this, args);\n\t\t} catch (error) {\n\t\t\tthrownValue = error;\n\t\t\tdidThrow = true;\n\t\t\tif (error instanceof TypeError && error.message.includes(\"is not a constructor\")) console.warn(`[vitest] The ${namedObject[name].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`);\n\t\t\tthrow error;\n\t\t} finally {\n\t\t\tif (didThrow) {\n\t\t\t\tresult.type = \"throw\";\n\t\t\t\tresult.value = thrownValue;\n\t\t\t\tsettledResult.type = \"rejected\";\n\t\t\t\tsettledResult.value = thrownValue;\n\t\t\t} else {\n\t\t\t\tresult.type = \"return\";\n\t\t\t\tresult.value = returnValue;\n\t\t\t\tif (new.target) {\n\t\t\t\t\tstate.contexts[contextIndex - 1] = returnValue;\n\t\t\t\t\tstate.instances[instanceIndex - 1] = returnValue;\n\t\t\t\t\tif (contextPrototypeIndex != null && prototypeState) prototypeState.contexts[contextPrototypeIndex - 1] = returnValue;\n\t\t\t\t\tif (instancePrototypeIndex != null && prototypeState) prototypeState.instances[instancePrototypeIndex - 1] = returnValue;\n\t\t\t\t}\n\t\t\t\tif (returnValue instanceof Promise) returnValue.then((settledValue) => {\n\t\t\t\t\tsettledResult.type = \"fulfilled\";\n\t\t\t\t\tsettledResult.value = settledValue;\n\t\t\t\t}, (rejectedValue) => {\n\t\t\t\t\tsettledResult.type = \"rejected\";\n\t\t\t\t\tsettledResult.value = rejectedValue;\n\t\t\t\t});\n\t\t\t\telse {\n\t\t\t\t\tsettledResult.type = \"fulfilled\";\n\t\t\t\t\tsettledResult.value = returnValue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn returnValue;\n\t} };\n\tconst mock = namedObject[name];\n\tconst copyPropertiesFrom = original || pseudoOriginal;\n\tif (copyPropertiesFrom) copyOriginalStaticProperties(mock, copyPropertiesFrom);\n\treturn mock;\n}\n// puts the implementation's prototype behind `mock.prototype` so instances\n// see prototype methods both during and after construction, while properties\n// assigned on `mock.prototype` still shadow them\nfunction reparentMockPrototype(mock, implementation) {\n\tconst mockPrototype = mock.prototype;\n\tif (mockPrototype == null) return;\n\t// an implementation without a usable prototype (reset mock, arrow or bound\n\t// function) reverts the chain to `Object.prototype`, the parent every mock\n\t// is created with\n\tconst parent = implementation?.prototype ?? Object.prototype;\n\tif (mockPrototype !== parent && Object.getPrototypeOf(mockPrototype) !== parent) Object.setPrototypeOf(mockPrototype, parent);\n}\nfunction registerCalls(args, state, prototypeState) {\n\tstate.calls.push(args);\n\tprototypeState?.calls.push(args);\n}\nfunction registerInvocationOrder(order, state, prototypeState) {\n\tstate.invocationCallOrder.push(order);\n\tprototypeState?.invocationCallOrder.push(order);\n}\nfunction registerResult(result, state, prototypeState) {\n\tstate.results.push(result);\n\tprototypeState?.results.push(result);\n}\nfunction registerSettledResult(result, state, prototypeState) {\n\tstate.settledResults.push(result);\n\tprototypeState?.settledResults.push(result);\n}\nfunction registerInstance(instance, state, prototypeState) {\n\treturn [state.instances.push(instance), prototypeState?.instances.push(instance)];\n}\nfunction registerContext(context, state, prototypeState) {\n\treturn [state.contexts.push(context), prototypeState?.contexts.push(context)];\n}\nfunction copyOriginalStaticProperties(mock, original) {\n\tconst { properties, descriptors } = getAllProperties(original);\n\tfor (const key of properties) {\n\t\tconst descriptor = descriptors[key];\n\t\tif (getDescriptor(mock, key)) continue;\n\t\tObject.defineProperty(mock, key, descriptor);\n\t}\n}\nconst ignoreProperties = /* @__PURE__ */ new Set([\n\t\"length\",\n\t\"name\",\n\t\"prototype\",\n\tSymbol.for(\"nodejs.util.promisify.custom\")\n]);\nfunction getAllProperties(original) {\n\tconst properties = /* @__PURE__ */ new Set();\n\tconst descriptors = {};\n\twhile (original && original !== Object.prototype && original !== Function.prototype) {\n\t\tconst ownProperties = [...Object.getOwnPropertyNames(original), ...Object.getOwnPropertySymbols(original)];\n\t\tfor (const prop of ownProperties) {\n\t\t\tif (descriptors[prop] || ignoreProperties.has(prop)) continue;\n\t\t\tproperties.add(prop);\n\t\t\tdescriptors[prop] = Object.getOwnPropertyDescriptor(original, prop);\n\t\t}\n\t\toriginal = Object.getPrototypeOf(original);\n\t}\n\treturn {\n\t\tproperties,\n\t\tdescriptors\n\t};\n}\nfunction getDefaultConfig(original) {\n\treturn {\n\t\tmockImplementation: void 0,\n\t\tmockOriginal: original,\n\t\tmockName: \"vi.fn()\",\n\t\tonceMockImplementations: []\n\t};\n}\nfunction getDefaultState() {\n\tconst state = {\n\t\tcalls: [],\n\t\tcontexts: [],\n\t\tinstances: [],\n\t\tinvocationCallOrder: [],\n\t\tsettledResults: [],\n\t\tresults: [],\n\t\tget lastCall() {\n\t\t\treturn state.calls.at(-1);\n\t\t}\n\t};\n\treturn state;\n}\nfunction restoreAllMocks() {\n\tfor (const restore of MOCK_RESTORE) restore();\n\tMOCK_RESTORE.clear();\n}\nfunction clearAllMocks() {\n\tfor (const mock of DIRTY_MOCK_STATES) mock.mockClear();\n}\nfunction resetAllMocks() {\n\tfor (const ref of REGISTERED_MOCKS) {\n\t\tconst mock = ref.deref();\n\t\tif (mock) mock.mockReset();\n\t\telse REGISTERED_MOCKS.delete(ref);\n\t}\n}\nfunction throwConstructorError(shorthand) {\n\tthrow new TypeError(`Cannot use \\`${shorthand}\\` when called with \\`new\\`. Use \\`mockImplementation\\` with a \\`class\\` keyword instead. See https://vitest.dev/api/mock#class-support for more information.`);\n}\n\nvar spyModule = /*#__PURE__*/Object.freeze({\n __proto__: null,\n clearAllMocks: clearAllMocks,\n createMockInstance: createMockInstance,\n fn: fn,\n isMockFunction: isMockFunction,\n resetAllMocks: resetAllMocks,\n restoreAllMocks: restoreAllMocks,\n spyOn: spyOn\n});\n\nexport { spyOn as a, resetAllMocks as b, clearAllMocks as c, createMockInstance as d, fn as f, isMockFunction as i, restoreAllMocks as r, spyModule as s };\n","import { p as plugins } from './index.cx-_w29y.js';\n\nconst serialize = (val, config, indentation, depth, refs, printer) => {\n\t// Serialize a non-default name, even if config.printFunctionName is false.\n\tconst name = val.getMockName();\n\tconst nameString = name === \"vi.fn()\" ? \"\" : ` ${name}`;\n\tlet callsString = \"\";\n\tif (val.mock.calls.length !== 0) {\n\t\tconst indentationNext = indentation + config.indent;\n\t\tcallsString = ` {${config.spacingOuter}${indentationNext}\"calls\": ${printer(val.mock.calls, config, indentationNext, depth, refs)}${config.min ? \", \" : \",\"}${config.spacingOuter}${indentationNext}\"results\": ${printer(val.mock.results, config, indentationNext, depth, refs)}${config.min ? \"\" : \",\"}${config.spacingOuter}${indentation}}`;\n\t}\n\treturn `[MockFunction${nameString}]${callsString}`;\n};\nconst test = (val) => val && !!val._isMockFunction;\nconst plugin = {\n\tserialize,\n\ttest\n};\n\nconst { DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent, AsymmetricMatcher } = plugins;\nlet PLUGINS = [\n\tReactTestComponent,\n\tReactElement,\n\tDOMElement,\n\tDOMCollection,\n\tImmutable,\n\tAsymmetricMatcher,\n\tplugin\n];\nfunction addSerializer(plugin) {\n\tPLUGINS = [plugin].concat(PLUGINS);\n}\nfunction getSerializers() {\n\treturn PLUGINS;\n}\n\nexport { addSerializer as a, getSerializers as g };\n","const lineSplitRE = /\\r?\\n/;\nfunction positionToOffset(source, lineNumber, columnNumber) {\n\tconst lines = source.split(lineSplitRE);\n\tconst nl = /\\r\\n/.test(source) ? 2 : 1;\n\tlet start = 0;\n\tif (lineNumber > lines.length) return source.length;\n\tfor (let i = 0; i < lineNumber - 1; i++) start += lines[i].length + nl;\n\treturn start + columnNumber;\n}\nfunction offsetToLineNumber(source, offset) {\n\tif (offset > source.length) throw new Error(`offset is longer than source length! offset ${offset} > length ${source.length}`);\n\tconst lines = source.split(lineSplitRE);\n\tconst nl = /\\r\\n/.test(source) ? 2 : 1;\n\tlet counted = 0;\n\tlet line = 0;\n\tfor (; line < lines.length; line++) {\n\t\tconst lineLength = lines[line].length + nl;\n\t\tif (counted + lineLength >= offset) break;\n\t\tcounted += lineLength;\n\t}\n\treturn line + 1;\n}\n\nexport { lineSplitRE as l, offsetToLineNumber as o, positionToOffset as p };\n","import { EvaluatedModules } from 'vite/module-runner';\nimport { d as dirname, r as resolve } from './pathe.M-eThtNZ.CknpM8Or.js';\nimport { a as getSafeTimers } from './source-map.DUxvo12T.js';\nimport { c as createBirpc } from './index.DmDMHCg8.js';\nimport { g as getWorkerState } from './utils.DYj33du9.js';\n\n// TODO: this is not needed in Vite 7.2+\nclass VitestEvaluatedModules extends EvaluatedModules {\n\tgetModuleSourceMapById(id) {\n\t\t/** the return type is not exposed by Vite */\n\t\tconst map = super.getModuleSourceMapById(id);\n\t\tif (map != null && !(\"_patched\" in map)) {\n\t\t\tmap._patched = true;\n\t\t\tconst dir = dirname(map.url);\n\t\t\tmap.resolvedSources = (map.map.sources || []).map((s) => resolve(dir, s || \"\"));\n\t\t}\n\t\treturn map;\n\t}\n}\n\nconst { get } = Reflect;\nconst globalProcess = globalThis.process;\nfunction withSafeTimers(fn) {\n\tconst { setTimeout, clearTimeout, nextTick, setImmediate, clearImmediate } = getSafeTimers();\n\tconst currentSetTimeout = globalThis.setTimeout;\n\tconst currentClearTimeout = globalThis.clearTimeout;\n\tconst currentSetImmediate = globalThis.setImmediate;\n\tconst currentClearImmediate = globalThis.clearImmediate;\n\tconst currentNextTick = globalProcess?.nextTick;\n\ttry {\n\t\tglobalThis.setTimeout = setTimeout;\n\t\tglobalThis.clearTimeout = clearTimeout;\n\t\tif (setImmediate) globalThis.setImmediate = setImmediate;\n\t\tif (clearImmediate) globalThis.clearImmediate = clearImmediate;\n\t\tif (globalProcess && nextTick) globalProcess.nextTick = nextTick;\n\t\treturn fn();\n\t} finally {\n\t\tglobalThis.setTimeout = currentSetTimeout;\n\t\tglobalThis.clearTimeout = currentClearTimeout;\n\t\tglobalThis.setImmediate = currentSetImmediate;\n\t\tglobalThis.clearImmediate = currentClearImmediate;\n\t\tif (globalProcess && nextTick) nextTick(() => {\n\t\t\tglobalProcess.nextTick = currentNextTick;\n\t\t});\n\t}\n}\nconst promises = /* @__PURE__ */ new Set();\nasync function rpcDone() {\n\tif (!promises.size) return;\n\tconst awaitable = Array.from(promises);\n\treturn Promise.all(awaitable);\n}\nconst onCancelCallbacks = [];\nfunction onCancel(callback) {\n\tonCancelCallbacks.push(callback);\n\treturn () => {\n\t\tconst index = onCancelCallbacks.indexOf(callback);\n\t\tif (index !== -1) onCancelCallbacks.splice(index, 1);\n\t};\n}\nfunction createRuntimeRpc(options) {\n\treturn createSafeRpc(createBirpc({ async onCancel(reason) {\n\t\tawait Promise.all(onCancelCallbacks.map((fn) => fn(reason)));\n\t} }, {\n\t\teventNames: [\"onCancel\"],\n\t\ttimeout: -1,\n\t\t...options\n\t}));\n}\nfunction createSafeRpc(rpc) {\n\treturn new Proxy(rpc, { get(target, p, handler) {\n\t\t// keep $rejectPendingCalls as sync function\n\t\tif (p === \"$rejectPendingCalls\") return rpc.$rejectPendingCalls;\n\t\tconst sendCall = get(target, p, handler);\n\t\tconst safeSendCall = (...args) => withSafeTimers(async () => {\n\t\t\tconst result = sendCall(...args);\n\t\t\tpromises.add(result);\n\t\t\ttry {\n\t\t\t\treturn await result;\n\t\t\t} finally {\n\t\t\t\tpromises.delete(result);\n\t\t\t}\n\t\t});\n\t\tsafeSendCall.asEvent = sendCall.asEvent;\n\t\treturn safeSendCall;\n\t} });\n}\nfunction rpc() {\n\tconst { rpc } = getWorkerState();\n\treturn rpc;\n}\n\nexport { VitestEvaluatedModules as V, rpcDone as a, createRuntimeRpc as c, onCancel as o, rpc as r };\n","import { b as printDiffOrStringify, d as diff, a as processError, T as TestSyntaxError, g as getCurrentTest, c as createTaskCollector, e as getCurrentSuite, f as createChainable, h as getHooks, i as getFn, m as matchesTags, j as afterAll, k as afterEach, l as aroundAll, n as aroundEach, o as beforeAll, q as beforeEach, r as describe, t as it, u as onTestFailed, v as onTestFinished, w as recordArtifact, x as suite, y as test } from './run.BTlFXlnv.js';\nimport { i as isChildProcess, r as resetModules, g as getWorkerState } from './utils.DYj33du9.js';\nimport { e as parseErrorStacktrace, a as getSafeTimers, f as parseSingleStack, h as delay } from './source-map.DUxvo12T.js';\nimport { i as isMockFunction, f as fn, a as spyOn, r as restoreAllMocks, b as resetAllMocks, c as clearAllMocks } from './spy.DgMTfhrK.js';\nimport { u as isObject, B as getCallLastIndex, g as getType, D as noop, x as assertTypes, w as ordinal, E as createSimpleStackTrace, i as isAbsolute, a as relative, n as normalize } from './pathe.M-eThtNZ.CknpM8Or.js';\nimport { g as getDefaultExportFromCjs, f as format, a as commonjsGlobal } from './index.cx-_w29y.js';\nimport { s as stringify, i as inspect } from './display.CXBnkt9a.js';\nimport { y } from './tinyrainbow.Ht9iggcq.js';\nimport * as chai from 'chai';\nimport { use, util } from 'chai';\nimport { getNames, getTests, getTestName, createFileTask } from '../task-utils.js';\nimport { g as getSerializers, a as addSerializer } from './plugins.D2ut1V9b.js';\nimport { p as positionToOffset, o as offsetToLineNumber, l as lineSplitRE } from './offset.Dy-5Fdfn.js';\nimport { r as rpc, V as VitestEvaluatedModules } from './rpc.BTmCtPly.js';\nimport { Bench } from 'tinybench';\nimport { expectTypeOf } from 'expect-type';\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\n// TODO: rewrite and clean up\nfunction testNameToKey(testName, count) {\n\treturn `${testName} ${count}`;\n}\nfunction keyToTestName(key) {\n\tif (!/ \\d+$/.test(key)) throw new Error(\"Snapshot keys must end with a number.\");\n\treturn key.replace(/ \\d+$/, \"\");\n}\n// Evaluate a snapshot file's content into its snapshot key/value pairs.\nfunction evaluateSnapshotFile(filepath, content) {\n\tconst data = Object.create(null);\n\ttry {\n\t\tnew Function(\"exports\", content)(data);\n\t} catch (cause) {\n\t\tthrow new Error(`Invalid snapshot file, please manually fix or delete it: ${filepath}`, { cause });\n\t}\n\treturn data;\n}\n// Add extra line breaks at beginning and end of multiline snapshot\n// to make the content easier to read.\nfunction addExtraLineBreaks(string) {\n\treturn string.includes(\"\\n\") ? `\\n${string}\\n` : string;\n}\n// Remove extra line breaks at beginning and end of multiline snapshot.\n// Instead of trim, which can remove additional newlines or spaces\n// at beginning or end of the content from a custom serializer.\nfunction removeExtraLineBreaks(string) {\n\treturn string.length > 2 && string[0] === \"\\n\" && string.endsWith(\"\\n\") ? string.slice(1, -1) : string;\n}\n// export const removeLinesBeforeExternalMatcherTrap = (stack: string): string => {\n// const lines = stack.split('\\n')\n// for (let i = 0; i < lines.length; i += 1) {\n// // It's a function name specified in `packages/expect/src/index.ts`\n// // for external custom matchers.\n// if (lines[i].includes('__EXTERNAL_MATCHER_TRAP__'))\n// return lines.slice(i + 1).join('\\n')\n// }\n// return stack\n// }\nconst escapeRegex = true;\nconst printFunctionName = false;\nfunction serialize(val, indent = 2, formatOverrides = {}) {\n\treturn normalizeNewlines(format(val, {\n\t\tescapeRegex,\n\t\tindent,\n\t\tplugins: getSerializers(),\n\t\tprintFunctionName,\n\t\t...formatOverrides\n\t}));\n}\nfunction escapeBacktickString(str) {\n\treturn str.replace(/`|\\\\|\\$\\{/g, \"\\\\$&\");\n}\nfunction printBacktickString(str) {\n\treturn `\\`${escapeBacktickString(str)}\\``;\n}\nfunction normalizeNewlines(string) {\n\treturn string.replace(/\\r\\n|\\r/g, \"\\n\");\n}\nasync function saveSnapshotFile(environment, snapshotData, snapshotPath) {\n\tconst snapshots = Object.keys(snapshotData).sort(naturalCompare).map((key) => `exports[${printBacktickString(key)}] = ${printBacktickString(normalizeNewlines(snapshotData[key]))};`);\n\tconst content = `${environment.getHeader()}\\n\\n${snapshots.join(\"\\n\\n\")}\\n`;\n\tconst oldContent = await environment.readSnapshotFile(snapshotPath);\n\tif (oldContent != null && oldContent === content) return;\n\tawait environment.saveSnapshotFile(snapshotPath, content);\n}\nfunction deepMergeArray(target = [], source = []) {\n\tconst mergedOutput = Array.from(target);\n\tsource.forEach((sourceElement, index) => {\n\t\tconst targetElement = mergedOutput[index];\n\t\tif (Array.isArray(target[index])) mergedOutput[index] = deepMergeArray(target[index], sourceElement);\n\t\telse if (isObject(targetElement)) mergedOutput[index] = deepMergeSnapshot(target[index], sourceElement);\n\t\telse\n // Source does not exist in target or target is primitive and cannot be deep merged\n\t\tmergedOutput[index] = sourceElement;\n\t});\n\treturn mergedOutput;\n}\n/**\n* Deep merge, but considers asymmetric matchers. Unlike base util's deep merge,\n* will merge any object-like instance.\n* Compatible with Jest's snapshot matcher. Should not be used outside of snapshot.\n*\n* @example\n* ```ts\n* toMatchSnapshot({\n* name: expect.stringContaining('text')\n* })\n* ```\n*/\nfunction deepMergeSnapshot(target, source) {\n\tif (isObject(target) && isObject(source)) {\n\t\tconst mergedOutput = { ...target };\n\t\tObject.keys(source).forEach((key) => {\n\t\t\tif (isObject(source[key]) && !source[key].$$typeof) if (!(key in target)) Object.assign(mergedOutput, { [key]: source[key] });\n\t\t\telse mergedOutput[key] = deepMergeSnapshot(target[key], source[key]);\n\t\t\telse if (Array.isArray(source[key])) mergedOutput[key] = deepMergeArray(target[key], source[key]);\n\t\t\telse Object.assign(mergedOutput, { [key]: source[key] });\n\t\t});\n\t\treturn mergedOutput;\n\t} else if (Array.isArray(target) && Array.isArray(source)) return deepMergeArray(target, source);\n\treturn target;\n}\nclass DefaultMap extends Map {\n\tdefaultFn;\n\tconstructor(defaultFn, entries) {\n\t\tsuper(entries);\n\t\tthis.defaultFn = defaultFn;\n\t}\n\tget(key) {\n\t\tif (!this.has(key)) this.set(key, this.defaultFn(key));\n\t\treturn super.get(key);\n\t}\n}\nclass CounterMap extends DefaultMap {\n\tconstructor() {\n\t\tsuper(() => 0);\n\t}\n\t// compat for jest-image-snapshot https://github.com/vitest-dev/vitest/issues/7322\n\t// `valueOf` and `Snapshot.added` setter allows\n\t// snapshotState.added = snapshotState.added + 1\n\t// to function as\n\t// snapshotState.added.total_ = snapshotState.added.total() + 1\n\t_total;\n\tvalueOf() {\n\t\treturn this._total = this.total();\n\t}\n\tincrement(key) {\n\t\tif (typeof this._total !== \"undefined\") this._total++;\n\t\tthis.set(key, this.get(key) + 1);\n\t}\n\ttotal() {\n\t\tif (typeof this._total !== \"undefined\") return this._total;\n\t\tlet total = 0;\n\t\tfor (const x of this.values()) total += x;\n\t\treturn total;\n\t}\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction memo(fn) {\n\tconst cache = /* @__PURE__ */ new Map();\n\treturn (arg) => {\n\t\tif (!cache.has(arg)) cache.set(arg, fn(arg));\n\t\treturn cache.get(arg);\n\t};\n}\n\nasync function saveInlineSnapshots(environment, snapshots) {\n\tconst MagicString = (await import('magic-string')).default;\n\tconst files = new Set(snapshots.map((i) => i.file));\n\tawait Promise.all(Array.from(files).map(async (file) => {\n\t\tconst snaps = snapshots.filter((i) => i.file === file);\n\t\tconst code = await environment.readSnapshotFile(file);\n\t\tif (code == null) throw new Error(`cannot read ${file} when saving inline snapshot`);\n\t\tconst s = new MagicString(code);\n\t\tfor (const snap of snaps) replaceInlineSnap(code, s, positionToOffset(code, snap.line, snap.column), snap.snapshot, snap.assertionName);\n\t\tconst transformed = s.toString();\n\t\tif (transformed !== code) await environment.saveSnapshotFile(file, transformed);\n\t}));\n}\nconst defaultStartObjectRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\s\\S]*\\*\\/\\s*|\\/\\/.*(?:[\\n\\r\\u2028\\u2029]\\s*|[\\t\\v\\f \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF]))*\\{/;\nfunction escapeRegExp(s) {\n\treturn s.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\nconst buildStartObjectRegex = memo((assertionName) => {\n\tconst replaced = defaultStartObjectRegex.source.replace(\"toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot\", escapeRegExp(assertionName));\n\treturn new RegExp(replaced);\n});\nfunction replaceObjectSnap(code, s, index, newSnap, assertionName) {\n\tlet _code = code.slice(index);\n\tconst startMatch = (assertionName ? buildStartObjectRegex(assertionName) : defaultStartObjectRegex).exec(_code);\n\tif (!startMatch) return false;\n\t_code = _code.slice(startMatch.index);\n\tlet callEnd = getCallLastIndex(_code);\n\tif (callEnd === null) return false;\n\tcallEnd += index + startMatch.index;\n\tconst shapeEnd = getObjectShapeEndIndex(code, index + startMatch.index + startMatch[0].length);\n\tconst snap = `, ${prepareSnapString(newSnap, code, index)}`;\n\tif (shapeEnd === callEnd)\n // toMatchInlineSnapshot({ foo: expect.any(String) })\n\ts.appendLeft(callEnd, snap);\n\telse\n // toMatchInlineSnapshot({ foo: expect.any(String) }, ``)\n\ts.overwrite(shapeEnd, callEnd, snap);\n\treturn true;\n}\nfunction getObjectShapeEndIndex(code, index) {\n\tlet startBraces = 1;\n\tlet endBraces = 0;\n\twhile (startBraces !== endBraces && index < code.length) {\n\t\tconst s = code[index++];\n\t\tif (s === \"{\") startBraces++;\n\t\telse if (s === \"}\") endBraces++;\n\t}\n\treturn index;\n}\nfunction prepareSnapString(snap, source, index) {\n\tconst lineNumber = offsetToLineNumber(source, index);\n\tconst indent = source.split(lineSplitRE)[lineNumber - 1].match(/^\\s*/)[0] || \"\";\n\tconst indentNext = indent.includes(\"\t\") ? `${indent}\\t` : `${indent} `;\n\tconst lines = snap.trim().replace(/\\\\/g, \"\\\\\\\\\").split(/\\n/g);\n\tconst isOneline = lines.length <= 1;\n\tconst quote = \"`\";\n\tif (isOneline) return `${quote}${lines.join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\")}${quote}`;\n\treturn `${quote}\\n${lines.map((i) => i ? indentNext + i : \"\").join(\"\\n\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\")}\\n${indent}${quote}`;\n}\nconst defaultMethodNames = [\"toMatchInlineSnapshot\", \"toThrowErrorMatchingInlineSnapshot\"];\n// on webkit, the line number is at the end of the method, not at the start\nfunction getCodeStartingAtIndex(code, index, methodNames) {\n\tfor (const name of methodNames) {\n\t\tconst adjusted = index - name.length;\n\t\tif (adjusted >= 0 && code.slice(adjusted, index) === name) return {\n\t\t\tcode: code.slice(adjusted),\n\t\t\tindex: adjusted\n\t\t};\n\t}\n\treturn {\n\t\tcode: code.slice(index),\n\t\tindex\n\t};\n}\nconst defaultStartRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\s\\S]*\\*\\/\\s*|\\/\\/.*(?:[\\n\\r\\u2028\\u2029]\\s*|[\\t\\v\\f \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF]))*[\\w$]*(['\"`)])/;\nconst buildStartRegex = memo((assertionName) => {\n\tconst replaced = defaultStartRegex.source.replace(\"toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot\", escapeRegExp(assertionName));\n\treturn new RegExp(replaced);\n});\nfunction replaceInlineSnap(code, s, currentIndex, newSnap, assertionName) {\n\tconst { code: codeStartingAtIndex, index } = getCodeStartingAtIndex(code, currentIndex, assertionName ? [assertionName] : defaultMethodNames);\n\tconst startMatch = (assertionName ? buildStartRegex(assertionName) : defaultStartRegex).exec(codeStartingAtIndex);\n\tconst firstKeywordMatch = (assertionName ? new RegExp(escapeRegExp(assertionName)) : /toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/).exec(codeStartingAtIndex);\n\tif (!startMatch || startMatch.index !== firstKeywordMatch?.index) return replaceObjectSnap(code, s, index, newSnap, assertionName);\n\tconst quote = startMatch[1];\n\tconst startIndex = index + startMatch.index + startMatch[0].length;\n\tconst snapString = prepareSnapString(newSnap, code, index);\n\tif (quote === \")\") {\n\t\ts.appendRight(startIndex - 1, snapString);\n\t\treturn true;\n\t}\n\tconst endMatch = new RegExp(`(?:^|[^\\\\\\\\])${quote}`).exec(code.slice(startIndex));\n\tif (!endMatch) return false;\n\tconst endIndex = startIndex + endMatch.index + endMatch[0].length;\n\ts.overwrite(startIndex - 1, endIndex, snapString);\n\treturn true;\n}\nconst INDENTATION_REGEX = /^([^\\S\\n]*)\\S/m;\nfunction stripSnapshotIndentation(inlineSnapshot) {\n\t// Find indentation if exists.\n\tconst match = inlineSnapshot.match(INDENTATION_REGEX);\n\tif (!match || !match[1])\n // No indentation.\n\treturn inlineSnapshot;\n\tconst indentation = match[1];\n\tconst lines = inlineSnapshot.split(/\\n/g);\n\tif (lines.length <= 2)\n // Must be at least 3 lines.\n\treturn inlineSnapshot;\n\tif (lines[0].trim() !== \"\" || lines.at(-1)?.trim() !== \"\")\n // If not blank first and last lines, abort.\n\treturn inlineSnapshot;\n\tfor (let i = 1; i < lines.length - 1; i++) if (lines[i] !== \"\") {\n\t\tif (lines[i].indexOf(indentation) !== 0)\n // All lines except first and last should either be blank or have the same\n\t\t// indent as the first line (or more). If this isn't the case we don't\n\t\t// want to touch the snapshot at all.\n\t\treturn inlineSnapshot;\n\t\tlines[i] = lines[i].substring(indentation.length);\n\t}\n\t// Last line is a special case because it won't have the same indent as others\n\t// but may still have been given some indent to line up.\n\tlines[lines.length - 1] = \"\";\n\t// Return inline snapshot, now at indent 0.\n\tinlineSnapshot = lines.join(\"\\n\");\n\treturn inlineSnapshot;\n}\n\nasync function saveRawSnapshots(environment, snapshots) {\n\tawait Promise.all(snapshots.map(async (snap) => {\n\t\tif (!snap.readonly) await environment.saveSnapshotFile(snap.file, snap.snapshot);\n\t}));\n}\n\nfunction isSameStackPosition(x, y) {\n\treturn x.file === y.file && x.column === y.column && x.line === y.line;\n}\nclass SnapshotState {\n\ttestFilePath;\n\tsnapshotPath;\n\t_counters = new CounterMap();\n\t_dirty;\n\t_updateSnapshot;\n\t_snapshotData;\n\t_initialData;\n\t_inlineSnapshots;\n\t_inlineSnapshotStacks;\n\t_testIdToKeys = new DefaultMap(() => []);\n\t_rawSnapshots;\n\t_uncheckedKeys;\n\t_snapshotFormat;\n\t_environment;\n\t_fileExists;\n\texpand;\n\t// getter/setter for jest-image-snapshot compat\n\t// https://github.com/vitest-dev/vitest/issues/7322\n\t_added = new CounterMap();\n\t_matched = new CounterMap();\n\t_unmatched = new CounterMap();\n\t_updated = new CounterMap();\n\tget added() {\n\t\treturn this._added;\n\t}\n\tset added(value) {\n\t\tthis._added._total = value;\n\t}\n\tget matched() {\n\t\treturn this._matched;\n\t}\n\tset matched(value) {\n\t\tthis._matched._total = value;\n\t}\n\tget unmatched() {\n\t\treturn this._unmatched;\n\t}\n\tset unmatched(value) {\n\t\tthis._unmatched._total = value;\n\t}\n\tget updated() {\n\t\treturn this._updated;\n\t}\n\tset updated(value) {\n\t\tthis._updated._total = value;\n\t}\n\tconstructor(testFilePath, snapshotPath, fileData, options) {\n\t\tthis.testFilePath = testFilePath;\n\t\tthis.snapshotPath = snapshotPath;\n\t\tconst data = fileData ?? Object.create(null);\n\t\tthis._fileExists = fileData != null;\n\t\tconst update = options.updateSnapshot;\n\t\tconst dirty = (update === \"all\" || update === \"new\") && fileData != null;\n\t\tthis._initialData = { ...data };\n\t\tthis._snapshotData = { ...data };\n\t\tthis._dirty = dirty;\n\t\tthis._inlineSnapshots = [];\n\t\tthis._inlineSnapshotStacks = [];\n\t\tthis._rawSnapshots = [];\n\t\tthis._uncheckedKeys = new Set(Object.keys(this._snapshotData));\n\t\tthis.expand = options.expand || false;\n\t\tthis._updateSnapshot = options.updateSnapshot;\n\t\tthis._snapshotFormat = {\n\t\t\tprintBasicPrototype: false,\n\t\t\tescapeString: false,\n\t\t\t// more generous safety cap 128MB (same as Node's util.inspect)\n\t\t\t// instead of tighter pretty-format default 1MB\n\t\t\t// since users can purposely save large snapshot to a dedicated file.\n\t\t\tmaxOutputLength: 2 ** 27,\n\t\t\t...options.snapshotFormat\n\t\t};\n\t\tthis._environment = options.snapshotEnvironment;\n\t}\n\tstatic async create(testFilePath, options) {\n\t\tconst environment = options.snapshotEnvironment;\n\t\tconst snapshotPath = await environment.resolvePath(testFilePath);\n\t\tlet fileData;\n\t\tif (environment.readSnapshotFileData) fileData = await environment.readSnapshotFileData(snapshotPath);\n\t\telse {\n\t\t\tconst content = await environment.readSnapshotFile(snapshotPath);\n\t\t\tfileData = content != null ? evaluateSnapshotFile(snapshotPath, content) : null;\n\t\t}\n\t\treturn new SnapshotState(testFilePath, snapshotPath, fileData, options);\n\t}\n\tget snapshotUpdateState() {\n\t\treturn this._updateSnapshot;\n\t}\n\tget environment() {\n\t\treturn this._environment;\n\t}\n\tmarkSnapshotsAsCheckedForTest(testName) {\n\t\tthis._uncheckedKeys.forEach((uncheckedKey) => {\n\t\t\t// skip snapshots with following keys\n\t\t\t// testName n\n\t\t\t// testName > xxx n (this is for toMatchSnapshot(\"xxx\") API)\n\t\t\tif (uncheckedKey.startsWith(testName) && /^ \\d+$|^ > /.test(uncheckedKey.slice(testName.length))) this._uncheckedKeys.delete(uncheckedKey);\n\t\t});\n\t}\n\tclearTest(testId) {\n\t\t// clear inline\n\t\tthis._inlineSnapshots = this._inlineSnapshots.filter((s) => s.testId !== testId);\n\t\tthis._inlineSnapshotStacks = this._inlineSnapshotStacks.filter((s) => s.testId !== testId);\n\t\t// clear file\n\t\tfor (const key of this._testIdToKeys.get(testId)) {\n\t\t\tconst name = keyToTestName(key);\n\t\t\tconst count = this._counters.get(name);\n\t\t\tif (count > 0) {\n\t\t\t\tif (key in this._snapshotData || key in this._initialData) this._snapshotData[key] = this._initialData[key];\n\t\t\t\tthis._counters.set(name, count - 1);\n\t\t\t}\n\t\t}\n\t\tthis._testIdToKeys.delete(testId);\n\t\t// clear stats\n\t\tthis.added.delete(testId);\n\t\tthis.updated.delete(testId);\n\t\tthis.matched.delete(testId);\n\t\tthis.unmatched.delete(testId);\n\t}\n\t_inferInlineSnapshotStack(stacks) {\n\t\t// if called inside resolves/rejects, stacktrace is different\n\t\tconst promiseIndex = stacks.findIndex((i) => i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));\n\t\tif (promiseIndex !== -1) return stacks[promiseIndex + 3];\n\t\t// support poll + inline snapshot\n\t\tconst pollChainIndex = stacks.findIndex((i) => i.method.match(/__VITEST_POLL_CHAIN__/));\n\t\tif (pollChainIndex !== -1) return stacks[pollChainIndex + 1];\n\t\t// inline snapshot function can be named __INLINE_SNAPSHOT_OFFSET_<n>__\n\t\t// to specify a custom stack offset\n\t\tfor (let i = 0; i < stacks.length; i++) {\n\t\t\tconst match = stacks[i].method.match(/__INLINE_SNAPSHOT_OFFSET_(\\d+)__/);\n\t\t\tif (match) return stacks[i + Number(match[1])] ?? null;\n\t\t}\n\t\t// custom matcher registered via expect.extend() — the wrapper function\n\t\t// in jest-extend.ts is named __VITEST_EXTEND_ASSERTION__\n\t\tconst customMatcherIndex = stacks.findIndex((i) => i.method.includes(\"__VITEST_EXTEND_ASSERTION__\"));\n\t\tif (customMatcherIndex !== -1) return stacks[customMatcherIndex + 3] ?? null;\n\t\t// inline snapshot function is called __INLINE_SNAPSHOT__\n\t\t// in integrations/snapshot/chai.ts\n\t\tconst stackIndex = stacks.findIndex((i) => i.method.includes(\"__INLINE_SNAPSHOT__\"));\n\t\treturn stackIndex !== -1 ? stacks[stackIndex + 2] : null;\n\t}\n\t_addSnapshot(key, receivedSerialized, options) {\n\t\tthis._dirty = true;\n\t\tif (options.stack) this._inlineSnapshots.push({\n\t\t\t...options.stack,\n\t\t\tsnapshot: receivedSerialized,\n\t\t\ttestId: options.testId,\n\t\t\tassertionName: options.assertionName\n\t\t});\n\t\telse if (options.rawSnapshot) this._rawSnapshots.push({\n\t\t\t...options.rawSnapshot,\n\t\t\tsnapshot: receivedSerialized\n\t\t});\n\t\telse this._snapshotData[key] = receivedSerialized;\n\t}\n\t_resolveKey(testId, testName, key) {\n\t\tthis._counters.increment(testName);\n\t\tconst count = this._counters.get(testName);\n\t\tif (!key) key = testNameToKey(testName, count);\n\t\tthis._testIdToKeys.get(testId).push(key);\n\t\treturn {\n\t\t\tkey,\n\t\t\tcount\n\t\t};\n\t}\n\t_resolveInlineStack(options) {\n\t\tconst { testId, snapshot, assertionName, error } = options;\n\t\tconst stacks = parseErrorStacktrace(error, { ignoreStackEntries: [] });\n\t\tconst _stack = this._inferInlineSnapshotStack(stacks);\n\t\tif (!_stack) {\n\t\t\tconst message = stacks.map((s) => ` ${s.file}:${s.line}:${s.column}${s.method ? ` (${s.method})` : \"\"}`).join(\"\\n\");\n\t\t\tthrow new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.\\n${message}`);\n\t\t}\n\t\tconst stack = this.environment.processStackTrace?.(_stack) || _stack;\n\t\t// removing 1 column, because source map points to the wrong\n\t\t// location for js files, but `column-1` points to the same in both js/ts\n\t\t// https://github.com/vitejs/vite/issues/8657\n\t\tstack.column--;\n\t\t// reject multiple inline snapshots at the same location if snapshot is different\n\t\tconst snapshotsWithSameStack = this._inlineSnapshotStacks.filter((s) => isSameStackPosition(s, stack));\n\t\tif (snapshotsWithSameStack.length > 0) {\n\t\t\t// ensure only one snapshot will be written at the same location\n\t\t\tthis._inlineSnapshots = this._inlineSnapshots.filter((s) => !isSameStackPosition(s, stack));\n\t\t\tconst differentSnapshot = snapshotsWithSameStack.find((s) => s.snapshot !== snapshot);\n\t\t\tif (differentSnapshot) throw Object.assign(/* @__PURE__ */ new Error(`${assertionName} with different snapshots cannot be called at the same location`), {\n\t\t\t\tactual: snapshot,\n\t\t\t\texpected: differentSnapshot.snapshot\n\t\t\t});\n\t\t}\n\t\tthis._inlineSnapshotStacks.push({\n\t\t\t...stack,\n\t\t\ttestId,\n\t\t\tsnapshot\n\t\t});\n\t\treturn stack;\n\t}\n\t_reconcile(opts) {\n\t\t// These are the conditions on when to write snapshots:\n\t\t// * There's no snapshot file in a non-CI environment.\n\t\t// * There is a snapshot file and we decided to update the snapshot.\n\t\t// * There is a snapshot file, but it doesn't have this snapshot.\n\t\t// These are the conditions on when not to write snapshots:\n\t\t// * The update flag is set to 'none'.\n\t\t// * There's no snapshot file or a file without this snapshot on a CI environment.\n\t\tif (opts.hasSnapshot && this._updateSnapshot === \"all\" || (!opts.hasSnapshot || !opts.snapshotIsPersisted) && (this._updateSnapshot === \"new\" || this._updateSnapshot === \"all\")) {\n\t\t\tif (this._updateSnapshot === \"all\") if (!opts.pass) {\n\t\t\t\tif (opts.hasSnapshot) this.updated.increment(opts.testId);\n\t\t\t\telse this.added.increment(opts.testId);\n\t\t\t\tthis._addSnapshot(opts.key, opts.addValue, {\n\t\t\t\t\tstack: opts.stack,\n\t\t\t\t\ttestId: opts.testId,\n\t\t\t\t\trawSnapshot: opts.rawSnapshot,\n\t\t\t\t\tassertionName: opts.assertionName\n\t\t\t\t});\n\t\t\t} else this.matched.increment(opts.testId);\n\t\t\telse {\n\t\t\t\tthis._addSnapshot(opts.key, opts.addValue, {\n\t\t\t\t\tstack: opts.stack,\n\t\t\t\t\ttestId: opts.testId,\n\t\t\t\t\trawSnapshot: opts.rawSnapshot,\n\t\t\t\t\tassertionName: opts.assertionName\n\t\t\t\t});\n\t\t\t\tthis.added.increment(opts.testId);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tactual: \"\",\n\t\t\t\tcount: opts.count,\n\t\t\t\texpected: \"\",\n\t\t\t\tkey: opts.key,\n\t\t\t\tpass: true\n\t\t\t};\n\t\t} else if (!opts.pass) {\n\t\t\tthis.unmatched.increment(opts.testId);\n\t\t\treturn {\n\t\t\t\tactual: opts.actualDisplay,\n\t\t\t\tcount: opts.count,\n\t\t\t\texpected: opts.expectedDisplay,\n\t\t\t\tkey: opts.key,\n\t\t\t\tpass: false\n\t\t\t};\n\t\t} else {\n\t\t\tthis.matched.increment(opts.testId);\n\t\t\treturn {\n\t\t\t\tactual: \"\",\n\t\t\t\tcount: opts.count,\n\t\t\t\texpected: \"\",\n\t\t\t\tkey: opts.key,\n\t\t\t\tpass: true\n\t\t\t};\n\t\t}\n\t}\n\tasync save() {\n\t\tconst hasExternalSnapshots = Object.keys(this._snapshotData).length;\n\t\tconst hasInlineSnapshots = this._inlineSnapshots.length;\n\t\tconst hasRawSnapshots = this._rawSnapshots.length;\n\t\tconst isEmpty = !hasExternalSnapshots && !hasInlineSnapshots && !hasRawSnapshots;\n\t\tconst status = {\n\t\t\tdeleted: false,\n\t\t\tsaved: false\n\t\t};\n\t\tif ((this._dirty || this._uncheckedKeys.size) && !isEmpty) {\n\t\t\tif (hasExternalSnapshots) {\n\t\t\t\tawait saveSnapshotFile(this._environment, this._snapshotData, this.snapshotPath);\n\t\t\t\tthis._fileExists = true;\n\t\t\t}\n\t\t\tif (hasInlineSnapshots) await saveInlineSnapshots(this._environment, this._inlineSnapshots);\n\t\t\tif (hasRawSnapshots) await saveRawSnapshots(this._environment, this._rawSnapshots);\n\t\t\tstatus.saved = true;\n\t\t} else if (!hasExternalSnapshots && this._fileExists) {\n\t\t\tif (this._updateSnapshot === \"all\") {\n\t\t\t\tawait this._environment.removeSnapshotFile(this.snapshotPath);\n\t\t\t\tthis._fileExists = false;\n\t\t\t}\n\t\t\tstatus.deleted = true;\n\t\t}\n\t\treturn status;\n\t}\n\tgetUncheckedCount() {\n\t\treturn this._uncheckedKeys.size || 0;\n\t}\n\tgetUncheckedKeys() {\n\t\treturn Array.from(this._uncheckedKeys);\n\t}\n\tremoveUncheckedKeys() {\n\t\tif (this._updateSnapshot === \"all\" && this._uncheckedKeys.size) {\n\t\t\tthis._dirty = true;\n\t\t\tthis._uncheckedKeys.forEach((key) => delete this._snapshotData[key]);\n\t\t\tthis._uncheckedKeys.clear();\n\t\t}\n\t}\n\tprobeExpectedSnapshot(options) {\n\t\tconst count = this._counters.get(options.testName) + 1;\n\t\tconst key = testNameToKey(options.testName, count);\n\t\treturn {\n\t\t\tkey,\n\t\t\tcount,\n\t\t\tdata: options?.isInline ? options.inlineSnapshot : this._snapshotData[key],\n\t\t\tmarkAsChecked: () => {\n\t\t\t\tthis._counters.increment(options.testName);\n\t\t\t\tthis._testIdToKeys.get(options.testId).push(key);\n\t\t\t\tthis._uncheckedKeys.delete(key);\n\t\t\t}\n\t\t};\n\t}\n\tmatch({ testId, testName, received, key, inlineSnapshot, isInline, error, rawSnapshot, assertionName }) {\n\t\tconst resolved = this._resolveKey(testId, testName, key);\n\t\tkey = resolved.key;\n\t\tconst count = resolved.count;\n\t\t// Do not mark the snapshot as \"checked\" if the snapshot is inline and\n\t\t// there's an external snapshot. This way the external snapshot can be\n\t\t// removed with `--updateSnapshot`.\n\t\tif (!(isInline && this._snapshotData[key] !== void 0)) this._uncheckedKeys.delete(key);\n\t\tlet receivedSerialized = rawSnapshot && typeof received === \"string\" ? received : serialize(received, void 0, this._snapshotFormat);\n\t\tif (!rawSnapshot) receivedSerialized = addExtraLineBreaks(receivedSerialized);\n\t\tif (rawSnapshot) {\n\t\t\t// normalize EOL when snapshot contains CRLF but received is LF\n\t\t\tif (rawSnapshot.content && /\\r\\n/.test(rawSnapshot.content) && !/\\r\\n/.test(receivedSerialized)) rawSnapshot.content = normalizeNewlines(rawSnapshot.content);\n\t\t}\n\t\tconst expected = isInline ? inlineSnapshot : rawSnapshot ? rawSnapshot.content : this._snapshotData[key];\n\t\tconst expectedTrimmed = rawSnapshot ? expected : expected?.trim();\n\t\tconst pass = expectedTrimmed === (rawSnapshot ? receivedSerialized : receivedSerialized.trim());\n\t\tconst hasSnapshot = expected !== void 0;\n\t\tconst snapshotIsPersisted = isInline || this._fileExists || rawSnapshot && rawSnapshot.content != null;\n\t\tif (pass && !isInline && !rawSnapshot)\n // When the file is re-saved (because other snapshots changed), the JS\n\t\t// round-trip can lose proper escaping. Refresh in-memory data with the\n\t\t// freshly serialized string so the file is written correctly.\n\t\t// _reconcile does not write _snapshotData on pass, so this is the only\n\t\t// place it gets refreshed. Domain snapshots skip this because the stored\n\t\t// value may contain match patterns that differ from the received output.\n\t\tthis._snapshotData[key] = receivedSerialized;\n\t\tconst stack = isInline ? this._resolveInlineStack({\n\t\t\ttestId,\n\t\t\tsnapshot: receivedSerialized,\n\t\t\tassertionName: assertionName || \"toMatchInlineSnapshot\",\n\t\t\terror: error || /* @__PURE__ */ new Error(\"snapshot\")\n\t\t}) : void 0;\n\t\treturn this._reconcile({\n\t\t\ttestId,\n\t\t\tkey,\n\t\t\tcount,\n\t\t\tpass,\n\t\t\thasSnapshot,\n\t\t\tsnapshotIsPersisted: !!snapshotIsPersisted,\n\t\t\taddValue: receivedSerialized,\n\t\t\tactualDisplay: rawSnapshot ? receivedSerialized : removeExtraLineBreaks(receivedSerialized),\n\t\t\texpectedDisplay: expectedTrimmed !== void 0 ? rawSnapshot ? expectedTrimmed : removeExtraLineBreaks(expectedTrimmed) : void 0,\n\t\t\tstack,\n\t\t\trawSnapshot,\n\t\t\tassertionName\n\t\t});\n\t}\n\tprocessDomainSnapshot({ testId, received, expectedSnapshot, matchResult, isInline, error, assertionName }) {\n\t\tconst stack = isInline ? this._resolveInlineStack({\n\t\t\ttestId,\n\t\t\tsnapshot: received,\n\t\t\tassertionName,\n\t\t\terror: error || /* @__PURE__ */ new Error(\"STACK_TRACE_ERROR\")\n\t\t}) : void 0;\n\t\tconst actualResolved = matchResult?.resolved ?? received;\n\t\tconst expectedResolved = matchResult?.expected ?? expectedSnapshot.data;\n\t\treturn this._reconcile({\n\t\t\ttestId,\n\t\t\tkey: expectedSnapshot.key,\n\t\t\tcount: expectedSnapshot.count,\n\t\t\tpass: matchResult?.pass ?? false,\n\t\t\thasSnapshot: expectedSnapshot.data !== void 0,\n\t\t\tsnapshotIsPersisted: isInline ? true : this._fileExists,\n\t\t\taddValue: actualResolved,\n\t\t\tactualDisplay: removeExtraLineBreaks(actualResolved),\n\t\t\texpectedDisplay: expectedResolved !== void 0 ? removeExtraLineBreaks(expectedResolved) : void 0,\n\t\t\tstack,\n\t\t\tassertionName\n\t\t});\n\t}\n\tasync pack() {\n\t\tconst snapshot = {\n\t\t\tfilepath: this.testFilePath,\n\t\t\tadded: 0,\n\t\t\tfileDeleted: false,\n\t\t\tmatched: 0,\n\t\t\tunchecked: 0,\n\t\t\tuncheckedKeys: [],\n\t\t\tunmatched: 0,\n\t\t\tupdated: 0\n\t\t};\n\t\tconst uncheckedCount = this.getUncheckedCount();\n\t\tconst uncheckedKeys = this.getUncheckedKeys();\n\t\tif (uncheckedCount) this.removeUncheckedKeys();\n\t\tconst status = await this.save();\n\t\tsnapshot.fileDeleted = status.deleted;\n\t\tsnapshot.added = this.added.total();\n\t\tsnapshot.matched = this.matched.total();\n\t\tsnapshot.unmatched = this.unmatched.total();\n\t\tsnapshot.updated = this.updated.total();\n\t\tsnapshot.unchecked = !status.deleted ? uncheckedCount : 0;\n\t\tsnapshot.uncheckedKeys = Array.from(uncheckedKeys);\n\t\treturn snapshot;\n\t}\n}\n\nfunction createMismatchError(message, expand, actual, expected) {\n\tconst error = new Error(message);\n\tObject.defineProperty(error, \"actual\", {\n\t\tvalue: actual,\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\t\twritable: true\n\t});\n\tObject.defineProperty(error, \"expected\", {\n\t\tvalue: expected,\n\t\tenumerable: true,\n\t\tconfigurable: true,\n\t\twritable: true\n\t});\n\tObject.defineProperty(error, \"diffOptions\", { value: { expand } });\n\treturn error;\n}\nclass SnapshotClient {\n\toptions;\n\tsnapshotStateMap = /* @__PURE__ */ new Map();\n\tconstructor(options = {}) {\n\t\tthis.options = options;\n\t}\n\tasync setup(filepath, options) {\n\t\tif (this.snapshotStateMap.has(filepath)) return;\n\t\tthis.snapshotStateMap.set(filepath, await SnapshotState.create(filepath, options));\n\t}\n\tasync finish(filepath) {\n\t\tconst result = await this.getSnapshotState(filepath).pack();\n\t\tthis.snapshotStateMap.delete(filepath);\n\t\treturn result;\n\t}\n\tskipTest(filepath, testName) {\n\t\tthis.getSnapshotState(filepath).markSnapshotsAsCheckedForTest(testName);\n\t}\n\tclearTest(filepath, testId) {\n\t\tthis.getSnapshotState(filepath).clearTest(testId);\n\t}\n\tgetSnapshotState(filepath) {\n\t\tconst state = this.snapshotStateMap.get(filepath);\n\t\tif (!state) throw new Error(`The snapshot state for '${filepath}' is not found. Did you call 'SnapshotClient.setup()'?`);\n\t\treturn state;\n\t}\n\tmatch(options) {\n\t\tconst { filepath, name, testId = name, message, isInline = false, properties, inlineSnapshot, error, errorMessage, rawSnapshot, assertionName } = options;\n\t\tlet { received } = options;\n\t\tif (!filepath) throw new Error(\"Snapshot cannot be used outside of test\");\n\t\tconst snapshotState = this.getSnapshotState(filepath);\n\t\tif (rawSnapshot?.file === snapshotState.snapshotPath)\n // note that this hard rejection is best-effort in a sense that,\n\t\t// if `toMatchFileSnapshot` is called with a different test file's snapshot path,\n\t\t// this check will not catch it.\n\t\tthrow new Error(`File snapshot cannot use the same path as the test snapshot file: ${rawSnapshot.file}`);\n\t\tconst testName = [name, ...message ? [message] : []].join(\" > \");\n\t\t// Probe first so we can mark as checked even on early return\n\t\tconst expectedSnapshot = snapshotState.probeExpectedSnapshot({\n\t\t\ttestName,\n\t\t\ttestId,\n\t\t\tisInline,\n\t\t\tinlineSnapshot\n\t\t});\n\t\tif (typeof properties === \"object\") {\n\t\t\tif (typeof received !== \"object\" || !received) {\n\t\t\t\texpectedSnapshot.markAsChecked();\n\t\t\t\tthrow new Error(\"Received value must be an object when the matcher has properties\");\n\t\t\t}\n\t\t\tlet propertiesPass;\n\t\t\ttry {\n\t\t\t\tpropertiesPass = this.options.isEqual?.(received, properties) ?? false;\n\t\t\t} catch (err) {\n\t\t\t\texpectedSnapshot.markAsChecked();\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t\tif (!propertiesPass) {\n\t\t\t\texpectedSnapshot.markAsChecked();\n\t\t\t\treturn {\n\t\t\t\t\tpass: false,\n\t\t\t\t\tmessage: () => errorMessage || \"Snapshot properties mismatched\",\n\t\t\t\t\tactual: received,\n\t\t\t\t\texpected: properties\n\t\t\t\t};\n\t\t\t}\n\t\t\treceived = deepMergeSnapshot(received, properties);\n\t\t}\n\t\tconst { actual, expected, key, pass } = snapshotState.match({\n\t\t\ttestId,\n\t\t\ttestName,\n\t\t\treceived,\n\t\t\tisInline,\n\t\t\terror,\n\t\t\tinlineSnapshot,\n\t\t\trawSnapshot,\n\t\t\tassertionName\n\t\t});\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => `Snapshot \\`${key || \"unknown\"}\\` mismatched`,\n\t\t\tactual: rawSnapshot ? actual : actual?.trim(),\n\t\t\texpected: rawSnapshot ? expected : expected?.trim()\n\t\t};\n\t}\n\tassert(options) {\n\t\tconst result = this.match(options);\n\t\tif (!result.pass) {\n\t\t\tconst snapshotState = this.getSnapshotState(options.filepath);\n\t\t\tthrow createMismatchError(result.message(), snapshotState.expand, result.actual, result.expected);\n\t\t}\n\t}\n\tmatchDomain(options) {\n\t\tconst { received, filepath, name, testId = name, message, adapter, isInline = false, inlineSnapshot, error } = options;\n\t\tif (!filepath) throw new Error(\"Snapshot cannot be used outside of test\");\n\t\tconst captured = adapter.capture(received);\n\t\tconst rendered = adapter.render(captured);\n\t\tconst snapshotState = this.getSnapshotState(filepath);\n\t\tconst testName = [name, ...message ? [message] : []].join(\" > \");\n\t\tconst expectedSnapshot = snapshotState.probeExpectedSnapshot({\n\t\t\ttestName,\n\t\t\ttestId,\n\t\t\tisInline,\n\t\t\tinlineSnapshot\n\t\t});\n\t\texpectedSnapshot.markAsChecked();\n\t\tconst matchResult = expectedSnapshot.data !== void 0 ? adapter.match(captured, adapter.parseExpected(expectedSnapshot.data)) : void 0;\n\t\tconst { actual, expected, key, pass } = snapshotState.processDomainSnapshot({\n\t\t\ttestId,\n\t\t\treceived: rendered,\n\t\t\texpectedSnapshot,\n\t\t\tmatchResult,\n\t\t\tisInline,\n\t\t\terror,\n\t\t\tassertionName: options.assertionName\n\t\t});\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => `Snapshot \\`${key}\\` mismatched`,\n\t\t\tactual: actual?.trim(),\n\t\t\texpected: expected?.trim()\n\t\t};\n\t}\n\tasync pollMatchDomain(options) {\n\t\tconst { poll, filepath, name, testId = name, message, adapter, isInline = false, inlineSnapshot, error, timeout = 1e3, interval = 50 } = options;\n\t\tif (!filepath) throw new Error(\"Snapshot cannot be used outside of test\");\n\t\tconst snapshotState = this.getSnapshotState(filepath);\n\t\tconst testName = [name, ...message ? [message] : []].join(\" > \");\n\t\tconst expectedSnapshot = snapshotState.probeExpectedSnapshot({\n\t\t\ttestName,\n\t\t\ttestId,\n\t\t\tisInline,\n\t\t\tinlineSnapshot\n\t\t});\n\t\tconst reference = expectedSnapshot.data !== void 0 && snapshotState.snapshotUpdateState !== \"all\" ? adapter.parseExpected(expectedSnapshot.data) : void 0;\n\t\tconst timeoutController = new AbortController();\n\t\tconst stableResult = await getStableSnapshot({\n\t\t\tadapter,\n\t\t\tpoll: () => poll({ signal: timeoutController.signal }),\n\t\t\tinterval,\n\t\t\ttimedOut: timeout > 0 ? new Promise((r) => setTimeout(() => {\n\t\t\t\ttimeoutController.abort();\n\t\t\t\tr();\n\t\t\t}, timeout)) : void 0,\n\t\t\tmatch: reference ? (captured) => adapter.match(captured, reference).pass : void 0\n\t\t});\n\t\texpectedSnapshot.markAsChecked();\n\t\tif (stableResult?.rendered === void 0) {\n\t\t\t// the original caller `expect.poll` later manipulates error via `throwWithCause`,\n\t\t\t// so here we can directly throw `lastPollError` if exists.\n\t\t\tif (stableResult?.lastPollError) throw stableResult.lastPollError;\n\t\t\treturn {\n\t\t\t\tpass: false,\n\t\t\t\tmessage: () => `poll() did not produce a stable snapshot within the timeout`\n\t\t\t};\n\t\t}\n\t\t// TODO: should `all` mode ignore parse error?\n\t\t// Silently hiding the error and creating snapshot full scratch isn't good either.\n\t\t// Users can fix or purge the broken snapshot manually and that decision affects how domain snapshot gets updated.\n\t\tconst matchResult = expectedSnapshot.data !== void 0 ? adapter.match(stableResult.captured, adapter.parseExpected(expectedSnapshot.data)) : void 0;\n\t\tconst { actual, expected, key, pass } = snapshotState.processDomainSnapshot({\n\t\t\ttestId,\n\t\t\treceived: stableResult.rendered,\n\t\t\texpectedSnapshot,\n\t\t\tmatchResult,\n\t\t\tisInline,\n\t\t\terror,\n\t\t\tassertionName: options.assertionName\n\t\t});\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => `Snapshot \\`${key}\\` mismatched`,\n\t\t\tactual: actual?.trim(),\n\t\t\texpected: expected?.trim()\n\t\t};\n\t}\n\tasync assertRaw(options) {\n\t\tif (!options.rawSnapshot) throw new Error(\"Raw snapshot is required\");\n\t\tconst { filepath, rawSnapshot } = options;\n\t\tif (rawSnapshot.content == null) {\n\t\t\tif (!filepath) throw new Error(\"Snapshot cannot be used outside of test\");\n\t\t\tconst snapshotState = this.getSnapshotState(filepath);\n\t\t\t// save the filepath, so it don't lose even if the await make it out-of-context\n\t\t\toptions.filepath ||= filepath;\n\t\t\t// resolve and read the raw snapshot file\n\t\t\trawSnapshot.file = await snapshotState.environment.resolveRawPath(filepath, rawSnapshot.file);\n\t\t\trawSnapshot.content = await snapshotState.environment.readSnapshotFile(rawSnapshot.file) ?? void 0;\n\t\t}\n\t\treturn this.assert(options);\n\t}\n\tclear() {\n\t\tthis.snapshotStateMap.clear();\n\t}\n}\n/**\n* Polls repeatedly until the value reaches a stable state.\n*\n* Compares consecutive rendered outputs from the current session —\n* when two consecutive polls produce the same rendered string,\n* the value is considered stable.\n*\n* Every `await` (poll call, interval delay) races against `timedOut`\n* so that hanging polls and delays are interrupted.\n*/\nasync function getStableSnapshot({ adapter, poll, interval, timedOut, match }) {\n\tlet lastRendered;\n\tlet lastPollError;\n\tlet lastStable;\n\twhile (true) {\n\t\ttry {\n\t\t\tconst pollResult = await raceWith$1(Promise.resolve(poll()), timedOut);\n\t\t\tif (!pollResult.ok) break;\n\t\t\tconst captured = adapter.capture(pollResult.value);\n\t\t\tconst rendered = adapter.render(captured);\n\t\t\tif (lastRendered !== void 0 && rendered === lastRendered) {\n\t\t\t\tlastStable = {\n\t\t\t\t\tcaptured,\n\t\t\t\t\trendered\n\t\t\t\t};\n\t\t\t\tif (!match || match(captured)) break;\n\t\t\t} else {\n\t\t\t\tlastRendered = rendered;\n\t\t\t\tlastStable = void 0;\n\t\t\t}\n\t\t} catch (pollError) {\n\t\t\t// poll() threw — reset stability baseline and retry\n\t\t\tlastRendered = void 0;\n\t\t\tlastStable = void 0;\n\t\t\tlastPollError = pollError;\n\t\t}\n\t\tif (!(await raceWith$1(new Promise((r) => setTimeout(r, interval)), timedOut)).ok) break;\n\t}\n\treturn {\n\t\t...lastStable,\n\t\tlastPollError\n\t};\n}\n/** Type-safe `Promise.race` — tells you which promise won. */\nfunction raceWith$1(promise, other) {\n\tconst left = promise.then((value) => ({\n\t\tok: true,\n\t\tvalue\n\t}));\n\tif (!other) return left;\n\treturn Promise.race([left, other.then((value) => ({\n\t\tok: false,\n\t\tvalue\n\t}))]);\n}\n\nconst ChaiStyleAssertions = (chai, utils) => {\n\tfunction defProperty(name, delegateTo) {\n\t\tutils.addProperty(chai.Assertion.prototype, name, function() {\n\t\t\tconst jestMethod = chai.Assertion.prototype[delegateTo];\n\t\t\tif (!jestMethod) throw new Error(`Cannot delegate to ${String(delegateTo)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);\n\t\t\treturn jestMethod.call(this);\n\t\t});\n\t}\n\tfunction defPropertyWithArgs(name, delegateTo, ...args) {\n\t\tutils.addProperty(chai.Assertion.prototype, name, function() {\n\t\t\tconst jestMethod = chai.Assertion.prototype[delegateTo];\n\t\t\tif (!jestMethod) throw new Error(`Cannot delegate to ${String(delegateTo)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);\n\t\t\treturn jestMethod.call(this, ...args);\n\t\t});\n\t}\n\tfunction defMethod(name, delegateTo) {\n\t\tutils.addMethod(chai.Assertion.prototype, name, function(...args) {\n\t\t\tconst jestMethod = chai.Assertion.prototype[delegateTo];\n\t\t\tif (!jestMethod) throw new Error(`Cannot delegate to ${String(delegateTo)}: method not found. Ensure JestChaiExpect plugin is loaded first.`);\n\t\t\treturn jestMethod.call(this, ...args);\n\t\t});\n\t}\n\t// API to (somewhat) mirror sinon-chai\n\t// https://github.com/chaijs/sinon-chai\n\tdefProperty(\"called\", \"toHaveBeenCalled\");\n\tdefProperty(\"calledOnce\", \"toHaveBeenCalledOnce\");\n\tdefPropertyWithArgs(\"calledTwice\", \"toHaveBeenCalledTimes\", 2);\n\tdefPropertyWithArgs(\"calledThrice\", \"toHaveBeenCalledTimes\", 3);\n\tdefMethod(\"callCount\", \"toHaveBeenCalledTimes\");\n\tdefMethod(\"calledWith\", \"toHaveBeenCalledWith\");\n\tdefMethod(\"calledOnceWith\", \"toHaveBeenCalledExactlyOnceWith\");\n\tdefMethod(\"lastCalledWith\", \"toHaveBeenLastCalledWith\");\n\tdefMethod(\"nthCalledWith\", \"toHaveBeenNthCalledWith\");\n\tdefMethod(\"returned\", \"toHaveReturned\");\n\tdefMethod(\"returnedWith\", \"toHaveReturnedWith\");\n\tdefMethod(\"returnedTimes\", \"toHaveReturnedTimes\");\n\tdefMethod(\"lastReturnedWith\", \"toHaveLastReturnedWith\");\n\tdefMethod(\"nthReturnedWith\", \"toHaveNthReturnedWith\");\n\tdefMethod(\"calledBefore\", \"toHaveBeenCalledBefore\");\n\tdefMethod(\"calledAfter\", \"toHaveBeenCalledAfter\");\n\t// TODO: implement\n\t// defMethod('thrown', 'toHaveThrown')\n};\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(\"asymmetric-matchers-object\");\n\n// selectively ported from https://github.com/jest-community/jest-extended\nconst customMatchers = {\n\ttoSatisfy(actual, expected, message) {\n\t\tconst { printReceived, printExpected, matcherHint } = this.utils;\n\t\tconst pass = expected(actual);\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => pass ? `\\\n${matcherHint(\".not.toSatisfy\", \"received\", \"\")}\n\nExpected value to not satisfy:\n${message || printExpected(expected)}\nReceived:\n${printReceived(actual)}` : `\\\n${matcherHint(\".toSatisfy\", \"received\", \"\")}\n\nExpected value to satisfy:\n${message || printExpected(expected)}\n\nReceived:\n${printReceived(actual)}`\n\t\t};\n\t},\n\ttoBeOneOf(actual, expected) {\n\t\tconst { equals, customTesters } = this;\n\t\tconst { printReceived, printExpected, matcherHint } = this.utils;\n\t\tlet pass;\n\t\tif (Array.isArray(expected)) pass = expected.length === 0 || expected.some((item) => equals(item, actual, customTesters));\n\t\telse if (expected instanceof Set) pass = expected.size === 0 || expected.has(actual) || [...expected].some((item) => equals(item, actual, customTesters));\n\t\telse throw new TypeError(`You must provide an array or set to ${matcherHint(\".toBeOneOf\")}, not '${typeof expected}'.`);\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => pass ? `\\\n${matcherHint(\".not.toBeOneOf\", \"received\", \"\")}\n\nExpected value to not be one of:\n${printExpected(expected)}\nReceived:\n${printReceived(actual)}` : `\\\n${matcherHint(\".toBeOneOf\", \"received\", \"\")}\n\nExpected value to be one of:\n${printExpected(expected)}\n\nReceived:\n${printReceived(actual)}`\n\t\t};\n\t}\n};\n\nconst EXPECTED_COLOR = y.green;\nconst RECEIVED_COLOR = y.red;\nconst INVERTED_COLOR = y.inverse;\nconst BOLD_WEIGHT = y.bold;\nconst DIM_COLOR = y.dim;\nfunction matcherHint(matcherName, received = \"received\", expected = \"expected\", options = {}) {\n\tconst { comment = \"\", isDirectExpectCall = false, isNot = false, promise = \"\", secondArgument = \"\", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options;\n\tlet hint = \"\";\n\tlet dimString = \"expect\";\n\tif (!isDirectExpectCall && received !== \"\") {\n\t\thint += DIM_COLOR(`${dimString}(`) + receivedColor(received);\n\t\tdimString = \")\";\n\t}\n\tif (promise !== \"\") {\n\t\thint += DIM_COLOR(`${dimString}.`) + promise;\n\t\tdimString = \"\";\n\t}\n\tif (isNot) {\n\t\thint += `${DIM_COLOR(`${dimString}.`)}not`;\n\t\tdimString = \"\";\n\t}\n\tif (matcherName.includes(\".\"))\n // Old format: for backward compatibility,\n\t// especially without promise or isNot options\n\tdimString += matcherName;\n\telse {\n\t\t// New format: omit period from matcherName arg\n\t\thint += DIM_COLOR(`${dimString}.`) + matcherName;\n\t\tdimString = \"\";\n\t}\n\tif (expected === \"\") dimString += \"()\";\n\telse {\n\t\thint += DIM_COLOR(`${dimString}(`) + expectedColor(expected);\n\t\tif (secondArgument) hint += DIM_COLOR(\", \") + secondArgumentColor(secondArgument);\n\t\tdimString = \")\";\n\t}\n\tif (comment !== \"\") dimString += ` // ${comment}`;\n\tif (dimString !== \"\") hint += DIM_COLOR(dimString);\n\treturn hint;\n}\nconst SPACE_SYMBOL = \"·\";\n// Instead of inverse highlight which now implies a change,\n// replace common spaces with middle dot at the end of any line.\nfunction replaceTrailingSpaces(text) {\n\treturn text.replace(/\\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length));\n}\nfunction printReceived(object) {\n\treturn RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));\n}\nfunction printExpected(value) {\n\treturn EXPECTED_COLOR(replaceTrailingSpaces(stringify(value)));\n}\nfunction getMatcherUtils() {\n\treturn {\n\t\tEXPECTED_COLOR,\n\t\tRECEIVED_COLOR,\n\t\tINVERTED_COLOR,\n\t\tBOLD_WEIGHT,\n\t\tDIM_COLOR,\n\t\tdiff,\n\t\tmatcherHint,\n\t\tprintReceived,\n\t\tprintExpected,\n\t\tprintDiffOrStringify,\n\t\tprintWithType\n\t};\n}\nfunction printWithType(name, value, print) {\n\tconst type = getType(value);\n\treturn (type !== \"null\" && type !== \"undefined\" ? `${name} has type: ${type}\\n` : \"\") + `${name} has value: ${print(value)}`;\n}\nfunction addCustomEqualityTesters(newTesters) {\n\tif (!Array.isArray(newTesters)) throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given \"${getType(newTesters)}\"`);\n\tglobalThis[JEST_MATCHERS_OBJECT].customEqualityTesters.push(...newTesters);\n}\nfunction getCustomEqualityTesters() {\n\treturn globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters;\n}\n\n// Extracted out of jasmine 2.5.2\nfunction equals(a, b, customTesters, strictCheck) {\n\tcustomTesters = customTesters || [];\n\treturn eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey);\n}\nfunction isAsymmetric(obj) {\n\treturn !!obj && typeof obj === \"object\" && \"asymmetricMatch\" in obj && isA(\"Function\", obj.asymmetricMatch);\n}\nfunction asymmetricMatch(a, b, customTesters) {\n\tconst asymmetricA = isAsymmetric(a);\n\tconst asymmetricB = isAsymmetric(b);\n\tif (asymmetricA && asymmetricB) return;\n\t// Asymmetric matchers define their own subset semantics.\n\tconst testers = customTesters.filter((tester) => !isSubsetEqualityTester(tester));\n\tif (asymmetricA) return a.asymmetricMatch(b, testers);\n\tif (asymmetricB) return b.asymmetricMatch(a, testers);\n}\n// https://github.com/jestjs/jest/blob/905bcbced3d40cdf7aadc4cdf6fb731c4bb3dbe3/packages/expect-utils/src/utils.ts#L509\nfunction isError(value) {\n\tif (typeof Error.isError === \"function\") return Error.isError(value);\n\tswitch (Object.prototype.toString.call(value)) {\n\t\tcase \"[object Error]\":\n\t\tcase \"[object Exception]\":\n\t\tcase \"[object DOMException]\": return true;\n\t\tdefault: return value instanceof Error;\n\t}\n}\n// Equality function lovingly adapted from isEqual in\n// [Underscore](http://underscorejs.org)\nfunction eq(a, b, aStack, bStack, customTesters, hasKey) {\n\tlet result = true;\n\tconst asymmetricResult = asymmetricMatch(a, b, customTesters);\n\tif (asymmetricResult !== void 0) return asymmetricResult;\n\tconst testerContext = { equals };\n\tfor (let i = 0; i < customTesters.length; i++) {\n\t\tconst customTesterResult = customTesters[i].call(testerContext, a, b, customTesters);\n\t\tif (customTesterResult !== void 0) return customTesterResult;\n\t}\n\tif (typeof URL === \"function\" && a instanceof URL && b instanceof URL) return a.href === b.href;\n\tif (Object.is(a, b)) return true;\n\t// A strict comparison is necessary because `null == undefined`.\n\tif (a === null || b === null) return a === b;\n\tconst className = Object.prototype.toString.call(a);\n\tif (className !== Object.prototype.toString.call(b)) return false;\n\tswitch (className) {\n\t\tcase \"[object Boolean]\":\n\t\tcase \"[object String]\":\n\t\tcase \"[object Number]\": if (typeof a !== typeof b)\n // One is a primitive, one a `new Primitive()`\n\t\treturn false;\n\t\telse if (typeof a !== \"object\" && typeof b !== \"object\")\n // both are proper primitives\n\t\treturn Object.is(a, b);\n\t\telse\n // both are `new Primitive()`s\n\t\treturn Object.is(a.valueOf(), b.valueOf());\n\t\tcase \"[object Date]\": {\n\t\t\tconst numA = +a;\n\t\t\tconst numB = +b;\n\t\t\t// Coerce dates to numeric primitive values. Dates are compared by their\n\t\t\t// millisecond representations. Note that invalid dates with millisecond representations\n\t\t\t// of `NaN` are equivalent.\n\t\t\treturn numA === numB || Number.isNaN(numA) && Number.isNaN(numB);\n\t\t}\n\t\t// RegExps are compared by their source patterns and flags.\n\t\tcase \"[object RegExp]\": return a.source === b.source && a.flags === b.flags;\n\t\tcase \"[object Temporal.Instant]\":\n\t\tcase \"[object Temporal.ZonedDateTime]\":\n\t\tcase \"[object Temporal.PlainDateTime]\":\n\t\tcase \"[object Temporal.PlainDate]\":\n\t\tcase \"[object Temporal.PlainTime]\":\n\t\tcase \"[object Temporal.PlainYearMonth]\":\n\t\tcase \"[object Temporal.PlainMonthDay]\": return a.equals(b);\n\t\tcase \"[object Temporal.Duration]\": return a.toString() === b.toString();\n\t}\n\tif (typeof a !== \"object\" || typeof b !== \"object\") return false;\n\t// Use DOM3 method isEqualNode (IE>=9)\n\tif (isDomNode(a) && isDomNode(b)) return a.isEqualNode(b);\n\t// Used to detect circular references.\n\tlet length = aStack.length;\n\twhile (length--)\n // Linear search. Performance is inversely proportional to the number of\n\t// unique nested structures.\n\t// circular references at same depth are equal\n\t// circular reference is not equal to non-circular one\n\tif (aStack[length] === a) return bStack[length] === b;\n\telse if (bStack[length] === b) return false;\n\t// Add the first object to the stack of traversed objects.\n\taStack.push(a);\n\tbStack.push(b);\n\t// Recursively compare objects and arrays.\n\t// Compare array lengths to determine if a deep comparison is necessary.\n\tif (className === \"[object Array]\" && a.length !== b.length) return false;\n\tif (isError(a) && isError(b)) try {\n\t\treturn isErrorEqual(a, b, aStack, bStack, customTesters, hasKey);\n\t} finally {\n\t\taStack.pop();\n\t\tbStack.pop();\n\t}\n\t// Deep compare objects.\n\tconst aKeys = keys(a, hasKey);\n\tlet key;\n\tlet size = aKeys.length;\n\t// Ensure that both objects contain the same number of properties before comparing deep equality.\n\tif (keys(b, hasKey).length !== size) return false;\n\twhile (size--) {\n\t\tkey = aKeys[size];\n\t\t// Deep compare each member\n\t\tresult = hasKey(b, key) && eq(a[key], b[key], aStack, bStack, customTesters, hasKey);\n\t\tif (!result) return false;\n\t}\n\t// Remove the first object from the stack of traversed objects.\n\taStack.pop();\n\tbStack.pop();\n\treturn result;\n}\nfunction isErrorEqual(a, b, aStack, bStack, customTesters, hasKey) {\n\t// https://nodejs.org/docs/latest-v22.x/api/assert.html#comparison-details\n\t// - [[Prototype]] of objects are compared using the === operator.\n\t// - Only enumerable \"own\" properties are considered.\n\t// - Error names, messages, causes, and errors are always compared, even if these are not enumerable properties. errors is also compared.\n\tlet result = Object.prototype.toString.call(a) === Object.prototype.toString.call(b) && a.name === b.name && a.message === b.message;\n\t// check Error.cause asymmetrically\n\tif (typeof b.cause !== \"undefined\") result &&= eq(a.cause, b.cause, aStack, bStack, customTesters, hasKey);\n\t// AggregateError.errors\n\tif (a instanceof AggregateError && b instanceof AggregateError) result &&= eq(a.errors, b.errors, aStack, bStack, customTesters, hasKey);\n\t// spread to compare enumerable properties\n\tresult &&= eq({ ...a }, { ...b }, aStack, bStack, customTesters, hasKey);\n\treturn result;\n}\nfunction keys(obj, hasKey) {\n\tconst keys = [];\n\tfor (const key in obj) if (hasKey(obj, key)) keys.push(key);\n\treturn keys.concat(Object.getOwnPropertySymbols(obj).filter((symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable));\n}\nfunction hasDefinedKey(obj, key) {\n\treturn hasKey(obj, key) && obj[key] !== void 0;\n}\nfunction hasKey(obj, key) {\n\treturn Object.hasOwn(obj, key);\n}\nfunction isA(typeName, value) {\n\treturn Object.prototype.toString.apply(value) === `[object ${typeName}]`;\n}\nfunction isDomNode(obj) {\n\treturn 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}\n// SENTINEL constants are from https://github.com/immutable-js/immutable-js\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\treturn !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL] && !maybeKeyed[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableUnorderedSet(maybeSet) {\n\treturn !!(maybeSet && maybeSet[IS_SET_SENTINEL] && !maybeSet[IS_ORDERED_SENTINEL]);\n}\nfunction isObjectLiteral(source) {\n\treturn source != null && typeof source === \"object\" && !Array.isArray(source);\n}\nfunction isImmutableList(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL]);\n}\nfunction isImmutableOrderedKeyed(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL] && source[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableOrderedSet(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_SET_SENTINEL] && source[IS_ORDERED_SENTINEL]);\n}\nfunction isImmutableRecord(source) {\n\treturn Boolean(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL]);\n}\n/**\n* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\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*/\nconst IteratorSymbol = Symbol.iterator;\nfunction hasIterator(object) {\n\treturn !!(object != null && object[IteratorSymbol]);\n}\nfunction iterableEquality(a, b, customTesters = [], aStack = [], bStack = []) {\n\tif (typeof a !== \"object\" || typeof b !== \"object\" || Array.isArray(a) || Array.isArray(b) || !hasIterator(a) || !hasIterator(b)) return;\n\tif (a.constructor !== b.constructor) return false;\n\tlet length = aStack.length;\n\twhile (length--)\n // Linear search. Performance is inversely proportional to the number of\n\t// unique nested structures.\n\t// circular references at same depth are equal\n\t// circular reference is not equal to non-circular one\n\tif (aStack[length] === a) return bStack[length] === b;\n\taStack.push(a);\n\tbStack.push(b);\n\tconst filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack];\n\tfunction iterableEqualityWithStack(a, b) {\n\t\treturn iterableEquality(a, b, [...customTesters], [...aStack], [...bStack]);\n\t}\n\tif (a.size !== void 0) {\n\t\tif (a.size !== b.size) return false;\n\t\telse if (isA(\"Set\", a) || isImmutableUnorderedSet(a)) {\n\t\t\tlet allFound = true;\n\t\t\tfor (const aValue of a) if (!b.has(aValue)) {\n\t\t\t\tlet has = false;\n\t\t\t\tfor (const bValue of b) if (equals(aValue, bValue, filteredCustomTesters) === true) has = true;\n\t\t\t\tif (has === false) {\n\t\t\t\t\tallFound = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove the first value from the stack of traversed values.\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t\treturn allFound;\n\t\t} else if (isA(\"Map\", a) || isImmutableUnorderedKeyed(a)) {\n\t\t\tlet allFound = true;\n\t\t\tfor (const aEntry of a) if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) {\n\t\t\t\tlet has = false;\n\t\t\t\tfor (const bEntry of b) {\n\t\t\t\t\tconst matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters);\n\t\t\t\t\tlet matchedValue = false;\n\t\t\t\t\tif (matchedKey === true) matchedValue = equals(aEntry[1], bEntry[1], filteredCustomTesters);\n\t\t\t\t\tif (matchedValue === true) has = true;\n\t\t\t\t}\n\t\t\t\tif (has === false) {\n\t\t\t\t\tallFound = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Remove the first value from the stack of traversed values.\n\t\t\taStack.pop();\n\t\t\tbStack.pop();\n\t\t\treturn allFound;\n\t\t}\n\t}\n\tconst bIterator = b[IteratorSymbol]();\n\tfor (const aValue of a) {\n\t\tconst nextB = bIterator.next();\n\t\tif (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) return false;\n\t}\n\tif (!bIterator.next().done) return false;\n\tif (!isImmutableList(a) && !isImmutableOrderedKeyed(a) && !isImmutableOrderedSet(a) && !isImmutableRecord(a)) {\n\t\tif (!equals(Object.entries(a), Object.entries(b), filteredCustomTesters)) return false;\n\t}\n\t// Remove the first value from the stack of traversed values.\n\taStack.pop();\n\tbStack.pop();\n\treturn true;\n}\n/**\n* Checks if `hasOwnProperty(object, key)` up the prototype chain, stopping at `Object.prototype`.\n*/\nfunction hasPropertyInObject(object, key) {\n\tif (!object || typeof object !== \"object\" || object === Object.prototype) return false;\n\treturn Object.hasOwn(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key);\n}\nfunction isObjectWithKeys(a) {\n\treturn isObject(a) && !isError(a) && !Array.isArray(a) && !(a instanceof Date) && !(a instanceof Set) && !(a instanceof Map);\n}\n// Recursive subset testers are closures, so track them by identity.\nconst subsetEqualityTesters = /* @__PURE__ */ new WeakSet();\nfunction registerSubsetEqualityTester(tester) {\n\tsubsetEqualityTesters.add(tester);\n\treturn tester;\n}\nfunction isSubsetEqualityTester(tester) {\n\treturn tester === subsetEquality || subsetEqualityTesters.has(tester);\n}\nfunction subsetEquality(object, subset, customTesters = []) {\n\tconst filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality);\n\t// subsetEquality needs to keep track of the references\n\t// it has already visited to avoid infinite loops in case\n\t// there are circular references in the subset passed to it.\n\tconst subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => registerSubsetEqualityTester((object, subset) => {\n\t\tif (!isObjectWithKeys(subset)) return;\n\t\treturn Object.keys(subset).every((key) => {\n\t\t\tif (subset[key] != null && typeof subset[key] === \"object\") {\n\t\t\t\tif (seenReferences.has(subset[key])) return equals(object[key], subset[key], filteredCustomTesters);\n\t\t\t\tseenReferences.set(subset[key], true);\n\t\t\t}\n\t\t\tconst result = object != null && hasPropertyInObject(object, key) && equals(object[key], subset[key], [...filteredCustomTesters, subsetEqualityWithContext(seenReferences)]);\n\t\t\t// The main goal of using seenReference is to avoid circular node on tree.\n\t\t\t// It will only happen within a parent and its child, not a node and nodes next to it (same level)\n\t\t\t// We should keep the reference for a parent and its child only\n\t\t\t// Thus we should delete the reference immediately so that it doesn't interfere\n\t\t\t// other nodes within the same level on tree.\n\t\t\tseenReferences.delete(subset[key]);\n\t\t\treturn result;\n\t\t});\n\t});\n\treturn subsetEqualityWithContext()(object, subset);\n}\nfunction typeEquality(a, b) {\n\tif (a == null || b == null || a.constructor === b.constructor) return;\n\treturn false;\n}\nfunction arrayBufferEquality(a, b) {\n\tlet dataViewA = a;\n\tlet dataViewB = b;\n\tif (!(a instanceof DataView && b instanceof DataView)) {\n\t\tif (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) return;\n\t\ttry {\n\t\t\tdataViewA = new DataView(a);\n\t\t\tdataViewB = new DataView(b);\n\t\t} catch {\n\t\t\treturn;\n\t\t}\n\t}\n\t// Buffers are not equal when they do not have the same byte length\n\tif (dataViewA.byteLength !== dataViewB.byteLength) return false;\n\t// Check if every byte value is equal to each other\n\tfor (let i = 0; i < dataViewA.byteLength; i++) if (dataViewA.getUint8(i) !== dataViewB.getUint8(i)) return false;\n\treturn true;\n}\nfunction sparseArrayEquality(a, b, customTesters = []) {\n\tif (!Array.isArray(a) || !Array.isArray(b)) return;\n\t// A sparse array [, , 1] will have keys [\"2\"] whereas [undefined, undefined, 1] will have keys [\"0\", \"1\", \"2\"]\n\tconst aKeys = Object.keys(a);\n\tconst bKeys = Object.keys(b);\n\treturn equals(a, b, customTesters.filter((t) => t !== sparseArrayEquality), true) && equals(aKeys, bKeys);\n}\nfunction generateToBeMessage(deepEqualityName, expected = \"#{this}\", actual = \"#{exp}\") {\n\tconst toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`;\n\tif ([\"toStrictEqual\", \"toEqual\"].includes(deepEqualityName)) 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\treturn toBeMessage;\n}\nfunction pluralize(word, count) {\n\treturn `${count} ${word}${count === 1 ? \"\" : \"s\"}`;\n}\nfunction getObjectKeys(object) {\n\treturn [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((s) => Object.getOwnPropertyDescriptor(object, s)?.enumerable)];\n}\nfunction getObjectSubset(object, subset, customTesters) {\n\tlet stripped = 0;\n\tconst getObjectSubsetWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object, subset) => {\n\t\tif (Array.isArray(object)) {\n\t\t\tif (Array.isArray(subset) && subset.length === object.length)\n // The map method returns correct subclass of subset.\n\t\t\treturn subset.map((sub, i) => getObjectSubsetWithContext(seenReferences)(object[i], sub));\n\t\t} else if (object instanceof Date) return object;\n\t\telse if (isObject(object) && isObject(subset)) {\n\t\t\tif (equals(object, subset, [\n\t\t\t\t...customTesters,\n\t\t\t\titerableEquality,\n\t\t\t\tsubsetEquality\n\t\t\t]))\n // return \"expected\" subset to avoid showing irrelevant toMatchObject diff\n\t\t\treturn subset;\n\t\t\tconst trimmed = {};\n\t\t\tseenReferences.set(object, trimmed);\n\t\t\t// preserve constructor for toMatchObject diff\n\t\t\tif (typeof object.constructor === \"function\" && typeof object.constructor.name === \"string\") Object.defineProperty(trimmed, \"constructor\", {\n\t\t\t\tenumerable: false,\n\t\t\t\tvalue: object.constructor\n\t\t\t});\n\t\t\tfor (const key of getObjectKeys(object)) if (hasPropertyInObject(subset, key)) trimmed[key] = seenReferences.has(object[key]) ? seenReferences.get(object[key]) : getObjectSubsetWithContext(seenReferences)(object[key], subset[key]);\n\t\t\telse if (!seenReferences.has(object[key])) {\n\t\t\t\tstripped += 1;\n\t\t\t\tif (isObject(object[key])) stripped += getObjectKeys(object[key]).length;\n\t\t\t\tgetObjectSubsetWithContext(seenReferences)(object[key], subset[key]);\n\t\t\t}\n\t\t\tif (getObjectKeys(trimmed).length > 0) return trimmed;\n\t\t}\n\t\treturn object;\n\t};\n\treturn {\n\t\tsubset: getObjectSubsetWithContext()(object, subset),\n\t\tstripped\n\t};\n}\n/**\n* Detects if an object is a Standard Schema V1 compatible schema\n*/\nfunction isStandardSchema(obj) {\n\treturn !!obj && (typeof obj === \"object\" || typeof obj === \"function\") && obj[\"~standard\"] && typeof obj[\"~standard\"].validate === \"function\";\n}\n\nif (!Object.hasOwn(globalThis, MATCHERS_OBJECT)) {\n\tconst globalState = /* @__PURE__ */ new WeakMap();\n\tconst matchers = Object.create(null);\n\tconst customEqualityTesters = [];\n\tconst asymmetricMatchers = Object.create(null);\n\t// `configurable` so that vm pools can strip the accessors from a disposed\n\t// context: the getters capture the expect state, which would otherwise keep\n\t// the whole test-file world reachable from the leaked context shell\n\tObject.defineProperty(globalThis, MATCHERS_OBJECT, {\n\t\tconfigurable: true,\n\t\tget: () => globalState\n\t});\n\tObject.defineProperty(globalThis, JEST_MATCHERS_OBJECT, {\n\t\tconfigurable: true,\n\t\tget: () => ({\n\t\t\tstate: globalState.get(globalThis[GLOBAL_EXPECT]),\n\t\t\tmatchers,\n\t\t\tcustomEqualityTesters\n\t\t})\n\t});\n\tObject.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, {\n\t\tconfigurable: true,\n\t\tget: () => asymmetricMatchers\n\t});\n}\nfunction getState(expect) {\n\treturn globalThis[MATCHERS_OBJECT].get(expect);\n}\nfunction setState(state, expect) {\n\tconst map = globalThis[MATCHERS_OBJECT];\n\tconst current = map.get(expect);\n\t// so it keeps getters from `testPath`\n\tconst next = Object.defineProperties(current || {}, Object.getOwnPropertyDescriptors(state));\n\tif (!current) map.set(expect, next);\n}\n\nclass AsymmetricMatcher {\n\tsample;\n\tinverse;\n\t// should have \"jest\" to be compatible with its ecosystem\n\t$$typeof = Symbol.for(\"jest.asymmetricMatcher\");\n\tconstructor(sample, inverse = false) {\n\t\tthis.sample = sample;\n\t\tthis.inverse = inverse;\n\t}\n\tgetMatcherContext(expect) {\n\t\treturn {\n\t\t\t...getState(expect || globalThis[GLOBAL_EXPECT]),\n\t\t\tequals,\n\t\t\tisNot: this.inverse,\n\t\t\tcustomTesters: getCustomEqualityTesters(),\n\t\t\tutils: {\n\t\t\t\t...getMatcherUtils(),\n\t\t\t\tdiff,\n\t\t\t\tstringify,\n\t\t\t\titerableEquality,\n\t\t\t\tsubsetEquality\n\t\t\t}\n\t\t};\n\t}\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// @ts-expect-error computed properties is not supported when isolatedDeclarations is enabled\n// FIXME: https://github.com/microsoft/TypeScript/issues/61068\nAsymmetricMatcher.prototype[Symbol.for(\"chai/inspect\")] = function(options) {\n\t// minimal pretty-format with simple manual truncation\n\tconst result = stringify(this, options.depth, { min: true });\n\tif (result.length <= options.truncate) return result;\n\treturn `${this.toString()}{…}`;\n};\nclass StringContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tif (!isA(\"String\", sample)) throw new Error(\"Expected is not a string\");\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = isA(\"String\", other) && other.includes(this.sample);\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `String${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"string\";\n\t}\n}\nclass Anything extends AsymmetricMatcher {\n\tasymmetricMatch(other) {\n\t\treturn other != null;\n\t}\n\ttoString() {\n\t\treturn \"Anything\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn \"Anything\";\n\t}\n}\nclass ObjectContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tsuper(sample, inverse);\n\t}\n\tgetPrototype(obj) {\n\t\tif (Object.getPrototypeOf) return Object.getPrototypeOf(obj);\n\t\tif (obj.constructor.prototype === obj) return null;\n\t\treturn obj.constructor.prototype;\n\t}\n\thasProperty(obj, property) {\n\t\tif (!obj) return false;\n\t\tif (Object.hasOwn(obj, property)) return true;\n\t\treturn this.hasProperty(this.getPrototype(obj), property);\n\t}\n\tgetProperties(obj) {\n\t\treturn [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj).filter((s) => Object.getOwnPropertyDescriptor(obj, s)?.enumerable)];\n\t}\n\tasymmetricMatch(other, customTesters) {\n\t\tif (typeof this.sample !== \"object\") throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);\n\t\tlet result = true;\n\t\tconst properties = this.getProperties(this.sample);\n\t\tfor (const property of properties) {\n\t\t\tif (!this.hasProperty(other, property)) {\n\t\t\t\tresult = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconst value = this.sample[property];\n\t\t\tconst otherValue = other[property];\n\t\t\tif (!equals(value, otherValue, customTesters)) {\n\t\t\t\tresult = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Object${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"object\";\n\t}\n}\nclass ArrayContaining extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other, customTesters) {\n\t\tif (!Array.isArray(this.sample)) throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);\n\t\tconst result = this.sample.length === 0 || Array.isArray(other) && this.sample.every((item) => other.some((another) => equals(item, another, customTesters)));\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Array${this.inverse ? \"Not\" : \"\"}Containing`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"array\";\n\t}\n}\nclass Any extends AsymmetricMatcher {\n\tconstructor(sample) {\n\t\tif (typeof sample === \"undefined\") throw new TypeError(\"any() expects to be passed a constructor function. Please pass one or use anything() to match any object.\");\n\t\tsuper(sample);\n\t}\n\tfnNameFor(func) {\n\t\tif (func.name) return func.name;\n\t\tconst matches = Function.prototype.toString.call(func).match(/^(?:async)?\\s*function\\s*(?:\\*\\s*)?([\\w$]+)\\s*\\(/);\n\t\treturn matches ? matches[1] : \"<anonymous>\";\n\t}\n\tasymmetricMatch(other) {\n\t\tif (this.sample === String) return typeof other == \"string\" || other instanceof String;\n\t\tif (this.sample === Number) return typeof other == \"number\" || other instanceof Number;\n\t\tif (this.sample === Function) return typeof other == \"function\" || typeof other === \"function\";\n\t\tif (this.sample === Boolean) return typeof other == \"boolean\" || other instanceof Boolean;\n\t\tif (this.sample === BigInt) return typeof other == \"bigint\" || other instanceof BigInt;\n\t\tif (this.sample === Symbol) return typeof other == \"symbol\" || other instanceof Symbol;\n\t\tif (this.sample === Object) return typeof other == \"object\";\n\t\treturn other instanceof this.sample;\n\t}\n\ttoString() {\n\t\treturn \"Any\";\n\t}\n\tgetExpectedType() {\n\t\tif (this.sample === String) return \"string\";\n\t\tif (this.sample === Number) return \"number\";\n\t\tif (this.sample === Function) return \"function\";\n\t\tif (this.sample === Object) return \"object\";\n\t\tif (this.sample === Boolean) return \"boolean\";\n\t\treturn this.fnNameFor(this.sample);\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn `Any<${this.fnNameFor(this.sample)}>`;\n\t}\n}\nclass StringMatching extends AsymmetricMatcher {\n\tconstructor(sample, inverse = false) {\n\t\tif (!isA(\"String\", sample) && !isA(\"RegExp\", sample)) throw new Error(\"Expected is not a String or a RegExp\");\n\t\tsuper(new RegExp(sample), inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = isA(\"String\", other) && this.sample.test(other);\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `String${this.inverse ? \"Not\" : \"\"}Matching`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"string\";\n\t}\n}\nclass CloseTo extends AsymmetricMatcher {\n\tprecision;\n\tconstructor(sample, precision = 2, inverse = false) {\n\t\tif (!isA(\"Number\", sample)) throw new Error(\"Expected is not a Number\");\n\t\tif (!isA(\"Number\", precision)) throw new Error(\"Precision is not a Number\");\n\t\tsuper(sample);\n\t\tthis.inverse = inverse;\n\t\tthis.precision = precision;\n\t}\n\tasymmetricMatch(other) {\n\t\tif (!isA(\"Number\", other)) return false;\n\t\tlet result = false;\n\t\tif (other === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY) result = true;\n\t\telse if (other === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY) result = true;\n\t\telse result = Math.abs(this.sample - other) < 10 ** -this.precision / 2;\n\t\treturn this.inverse ? !result : result;\n\t}\n\ttoString() {\n\t\treturn `Number${this.inverse ? \"Not\" : \"\"}CloseTo`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"number\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\treturn [\n\t\t\tthis.toString(),\n\t\t\tthis.sample,\n\t\t\t`(${pluralize(\"digit\", this.precision)})`\n\t\t].join(\" \");\n\t}\n}\nclass SchemaMatching extends AsymmetricMatcher {\n\tresult;\n\tconstructor(sample, inverse = false) {\n\t\tif (!isStandardSchema(sample)) throw new TypeError(\"SchemaMatching expected to receive a Standard Schema.\");\n\t\tsuper(sample, inverse);\n\t}\n\tasymmetricMatch(other) {\n\t\tconst result = this.sample[\"~standard\"].validate(other);\n\t\t// Check if the result is a Promise (async validation)\n\t\tif (result instanceof Promise) throw new TypeError(\"Async schema validation is not supported in asymmetric matchers.\");\n\t\tthis.result = result;\n\t\tconst pass = !this.result.issues || this.result.issues.length === 0;\n\t\treturn this.inverse ? !pass : pass;\n\t}\n\ttoString() {\n\t\treturn `Schema${this.inverse ? \"Not\" : \"\"}Matching`;\n\t}\n\tgetExpectedType() {\n\t\treturn \"object\";\n\t}\n\ttoAsymmetricMatcher() {\n\t\tconst { utils } = this.getMatcherContext();\n\t\tif ((this.result?.issues || []).length > 0) return `${this.toString()} ${utils.stringify(this.result, void 0, { printBasicPrototype: false })}`;\n\t\treturn this.toString();\n\t}\n}\nconst JestAsymmetricMatchers = (chai, utils) => {\n\tutils.addMethod(chai.expect, \"anything\", () => new Anything());\n\tutils.addMethod(chai.expect, \"any\", (expected) => new Any(expected));\n\tutils.addMethod(chai.expect, \"stringContaining\", (expected) => new StringContaining(expected));\n\tutils.addMethod(chai.expect, \"objectContaining\", (expected) => new ObjectContaining(expected));\n\tutils.addMethod(chai.expect, \"arrayContaining\", (expected) => new ArrayContaining(expected));\n\tutils.addMethod(chai.expect, \"stringMatching\", (expected) => new StringMatching(expected));\n\tutils.addMethod(chai.expect, \"closeTo\", (expected, precision) => new CloseTo(expected, precision));\n\tutils.addMethod(chai.expect, \"schemaMatching\", (expected) => new SchemaMatching(expected));\n\tchai.expect.not = {\n\t\tstringContaining: (expected) => new StringContaining(expected, true),\n\t\tobjectContaining: (expected) => new ObjectContaining(expected, true),\n\t\tarrayContaining: (expected) => new ArrayContaining(expected, true),\n\t\tstringMatching: (expected) => new StringMatching(expected, true),\n\t\tcloseTo: (expected, precision) => new CloseTo(expected, precision, true),\n\t\tschemaMatching: (expected) => new SchemaMatching(expected, true)\n\t};\n};\n\nfunction createAssertionMessage(util, assertion, hasArgs) {\n\tconst soft = util.flag(assertion, \"soft\") ? \".soft\" : \"\";\n\tconst not = util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\tconst name = `${util.flag(assertion, \"_name\")}(${hasArgs ? \"expected\" : \"\"})`;\n\tconst promiseName = util.flag(assertion, \"promise\");\n\treturn `expect${soft}(actual)${promiseName ? `.${promiseName}` : \"\"}.${not}${name}`;\n}\nfunction recordAsyncExpect(_test, promise, assertion, error, isSoft) {\n\tconst test = _test;\n\t// record promise for test, that resolves before test ends\n\tif (test && promise instanceof Promise) {\n\t\t// if promise is explicitly awaited, remove it from the list\n\t\tpromise = promise.finally(() => {\n\t\t\tif (!test.promises) return;\n\t\t\tconst index = test.promises.indexOf(promise);\n\t\t\tif (index !== -1) test.promises.splice(index, 1);\n\t\t});\n\t\t// record promise\n\t\tif (!test.promises) test.promises = [];\n\t\t// setup `expect.soft` handler here instead of `wrapAssertion`\n\t\t// to avoid double error tracking while keeping non-await promise detection.\n\t\tif (isSoft) promise = promise.then(noop, (err) => {\n\t\t\thandleTestError(test, err);\n\t\t});\n\t\ttest.promises.push(promise);\n\t\tlet resolved = false;\n\t\ttest.onFinished ??= [];\n\t\ttest.onFinished.push(() => {\n\t\t\tif (!resolved) {\n\t\t\t\tconst awaitError = /* @__PURE__ */ new Error(`Promise returned by \\`${assertion}\\` was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not guaranteed to complete before the test finishes:\\n\\nawait ${assertion}\\n`);\n\t\t\t\tif (error.stack) awaitError.stack = error.stack.replace(error.message, awaitError.message);\n\t\t\t\tthrow awaitError;\n\t\t\t}\n\t\t});\n\t\treturn {\n\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.then(onFulfilled, onRejected);\n\t\t\t},\n\t\t\tcatch(onRejected) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.catch(onRejected);\n\t\t\t},\n\t\t\tfinally(onFinally) {\n\t\t\t\tresolved = true;\n\t\t\t\treturn promise.finally(onFinally);\n\t\t\t},\n\t\t\t[Symbol.toStringTag]: \"Promise\"\n\t\t};\n\t}\n\treturn promise;\n}\nfunction handleTestError(test, err) {\n\ttest.result ||= { state: \"fail\" };\n\ttest.result.state = \"fail\";\n\ttest.result.errors ||= [];\n\ttest.result.errors.push(processError(err));\n}\n/** wrap assertion function to support `expect.soft` and provide assertion name as `_name` */\nfunction wrapAssertion(utils, name, fn) {\n\treturn function(...args) {\n\t\t// private\n\t\tif (name !== \"withTest\") utils.flag(this, \"_name\", name);\n\t\tif (!utils.flag(this, \"soft\"))\n // avoid WebKit's proper tail call to preserve stacktrace offset for inline snapshot\n\t\t// https://webkit.org/blog/6240/ecmascript-6-proper-tail-calls-in-webkit\n\t\ttry {\n\t\t\treturn fn.apply(this, args);\n\t\t} finally {}\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tif (!test) throw new Error(\"expect.soft() can only be used inside a test\");\n\t\ttry {\n\t\t\tconst result = fn.apply(this, args);\n\t\t\tif (result && typeof result === \"object\" && typeof result.then === \"function\") return result.then(noop, (err) => {\n\t\t\t\thandleTestError(test, err);\n\t\t\t});\n\t\t\treturn result;\n\t\t} catch (err) {\n\t\t\thandleTestError(test, err);\n\t\t}\n\t};\n}\n\n// Jest Expect Compact\nconst JestChaiExpect = (chai, utils) => {\n\tconst { AssertionError } = chai;\n\tconst customTesters = getCustomEqualityTesters();\n\tfunction def(name, fn) {\n\t\tconst addMethod = (n) => {\n\t\t\tconst softWrapper = wrapAssertion(utils, n, fn);\n\t\t\tutils.addMethod(chai.Assertion.prototype, n, softWrapper);\n\t\t\tutils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, softWrapper);\n\t\t};\n\t\tif (Array.isArray(name)) name.forEach((n) => addMethod(n));\n\t\telse addMethod(name);\n\t}\n\t[\n\t\t\"throw\",\n\t\t\"throws\",\n\t\t\"Throw\"\n\t].forEach((m) => {\n\t\tutils.overwriteMethod(chai.Assertion.prototype, m, (_super) => {\n\t\t\treturn function(...args) {\n\t\t\t\tconst promise = utils.flag(this, \"promise\");\n\t\t\t\tconst object = utils.flag(this, \"object\");\n\t\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\t\tif (promise === \"rejects\") utils.flag(this, \"object\", () => {\n\t\t\t\t\tthrow object;\n\t\t\t\t});\n\t\t\t\telse if (promise === \"resolves\" && typeof object !== \"function\") if (!isNot) {\n\t\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n\t\t\t\t\tthrow new AssertionError(message, { showDiff: false }, utils.flag(this, \"ssfi\"));\n\t\t\t\t} else return;\n\t\t\t\t_super.apply(this, args);\n\t\t\t};\n\t\t});\n\t});\n\t// @ts-expect-error @internal\n\tdef(\"withTest\", function(test) {\n\t\tutils.flag(this, \"vitest-test\", test);\n\t\treturn this;\n\t});\n\tdef(\"toEqual\", function(expected) {\n\t\tconst actual = utils.flag(this, \"object\");\n\t\tconst equal = equals(actual, expected, [...customTesters, iterableEquality]);\n\t\treturn this.assert(equal, \"expected #{this} to deeply equal #{exp}\", \"expected #{this} to not deeply equal #{exp}\", expected, actual);\n\t});\n\tdef(\"toStrictEqual\", function(expected) {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst equal = equals(obj, expected, [\n\t\t\t...customTesters,\n\t\t\titerableEquality,\n\t\t\ttypeEquality,\n\t\t\tsparseArrayEquality,\n\t\t\tarrayBufferEquality\n\t\t], true);\n\t\treturn this.assert(equal, \"expected #{this} to strictly equal #{exp}\", \"expected #{this} to not strictly equal #{exp}\", expected, obj);\n\t});\n\tdef(\"toBe\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tconst pass = Object.is(actual, expected);\n\t\tlet deepEqualityName = \"\";\n\t\tif (!pass) {\n\t\t\tif (equals(actual, expected, [\n\t\t\t\t...customTesters,\n\t\t\t\titerableEquality,\n\t\t\t\ttypeEquality,\n\t\t\t\tsparseArrayEquality,\n\t\t\t\tarrayBufferEquality\n\t\t\t], true)) deepEqualityName = \"toStrictEqual\";\n\t\t\telse if (equals(actual, expected, [...customTesters, iterableEquality])) deepEqualityName = \"toEqual\";\n\t\t}\n\t\treturn this.assert(pass, generateToBeMessage(deepEqualityName), \"expected #{this} not to be #{exp} // Object.is equality\", expected, actual);\n\t});\n\tdef(\"toMatchObject\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tconst pass = equals(actual, expected, [\n\t\t\t...customTesters,\n\t\t\titerableEquality,\n\t\t\tsubsetEquality\n\t\t]);\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tconst { subset: actualSubset, stripped } = getObjectSubset(actual, expected, customTesters);\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\tpass,\n\t\t\t\t\"expected #{this} to match object #{exp}\",\n\t\t\t\t\"expected #{this} to not match object #{exp}\",\n\t\t\t\texpected,\n\t\t\t\tactualSubset,\n\t\t\t\tfalse\n\t\t\t]);\n\t\t\tconst message = stripped === 0 ? msg : `${msg}\\n(${stripped} matching ${stripped === 1 ? \"property\" : \"properties\"} omitted from actual)`;\n\t\t\tthrow new AssertionError(message, {\n\t\t\t\tshowDiff: true,\n\t\t\t\texpected,\n\t\t\t\tactual: actualSubset\n\t\t\t});\n\t\t}\n\t});\n\tdef(\"toMatch\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tif (typeof actual !== \"string\") throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof actual}`);\n\t\treturn this.assert(typeof expected === \"string\" ? actual.includes(expected) : actual.match(expected), `expected #{this} to match #{exp}`, `expected #{this} not to match #{exp}`, expected, actual);\n\t});\n\tdef(\"toContain\", function(item) {\n\t\tconst actual = this._obj;\n\t\tif (typeof Node !== \"undefined\" && actual instanceof Node) {\n\t\t\tif (!(item instanceof Node)) throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof item}`);\n\t\t\treturn this.assert(actual.contains(item), \"expected #{this} to contain element #{exp}\", \"expected #{this} not to contain element #{exp}\", item, actual);\n\t\t}\n\t\tif (typeof DOMTokenList !== \"undefined\" && actual instanceof DOMTokenList) {\n\t\t\tassertTypes(item, \"class name\", [\"string\"]);\n\t\t\tconst expectedClassList = utils.flag(this, \"negate\") ? actual.value.replace(item, \"\").trim() : `${actual.value} ${item}`;\n\t\t\treturn this.assert(actual.contains(item), `expected \"${actual.value}\" to contain \"${item}\"`, `expected \"${actual.value}\" not to contain \"${item}\"`, expectedClassList, actual.value);\n\t\t}\n\t\t// handle simple case on our own using `this.assert` to include diff in error message\n\t\tif (typeof actual === \"string\" && typeof item === \"string\") return this.assert(actual.includes(item), `expected #{this} to contain #{exp}`, `expected #{this} not to contain #{exp}`, item, actual);\n\t\t// make \"actual\" indexable to have compatibility with jest\n\t\tif (actual != null && typeof actual !== \"string\") utils.flag(this, \"object\", Array.from(actual));\n\t\treturn this.contain(item);\n\t});\n\tdef(\"toContainEqual\", function(expected) {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst index = Array.from(obj).findIndex((item) => {\n\t\t\treturn equals(item, expected, customTesters);\n\t\t});\n\t\tthis.assert(index !== -1, \"expected #{this} to deep equally contain #{exp}\", \"expected #{this} to not deep equally contain #{exp}\", expected);\n\t});\n\tdef(\"toBeTruthy\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(Boolean(obj), \"expected #{this} to be truthy\", \"expected #{this} to not be truthy\", true, obj);\n\t});\n\tdef(\"toBeFalsy\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(!obj, \"expected #{this} to be falsy\", \"expected #{this} to not be falsy\", false, obj);\n\t});\n\tdef(\"toBeGreaterThan\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual > expected, `expected ${actual} to be greater than ${expected}`, `expected ${actual} to be not greater than ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeGreaterThanOrEqual\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual >= expected, `expected ${actual} to be greater than or equal to ${expected}`, `expected ${actual} to be not greater than or equal to ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeLessThan\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual < expected, `expected ${actual} to be less than ${expected}`, `expected ${actual} to be not less than ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeLessThanOrEqual\", function(expected) {\n\t\tconst actual = this._obj;\n\t\tassertTypes(actual, \"actual\", [\"number\", \"bigint\"]);\n\t\tassertTypes(expected, \"expected\", [\"number\", \"bigint\"]);\n\t\treturn this.assert(actual <= expected, `expected ${actual} to be less than or equal to ${expected}`, `expected ${actual} to be not less than or equal to ${expected}`, expected, actual, false);\n\t});\n\tdef(\"toBeNaN\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(Number.isNaN(obj), \"expected #{this} to be NaN\", \"expected #{this} not to be NaN\", NaN, obj);\n\t});\n\tdef(\"toBeUndefined\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(void 0 === obj, \"expected #{this} to be undefined\", \"expected #{this} not to be undefined\", void 0, obj);\n\t});\n\tdef(\"toBeNull\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(obj === null, \"expected #{this} to be null\", \"expected #{this} not to be null\", null, obj);\n\t});\n\tdef(\"toBeNullable\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(obj == null, \"expected #{this} to be nullish\", \"expected #{this} not to be nullish\", null, obj);\n\t});\n\tdef(\"toBeDefined\", function() {\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tthis.assert(typeof obj !== \"undefined\", \"expected #{this} to be defined\", \"expected #{this} to be undefined\", obj);\n\t});\n\tdef(\"toBeTypeOf\", function(expected) {\n\t\tconst actual = typeof this._obj;\n\t\tconst equal = expected === actual;\n\t\treturn this.assert(equal, \"expected #{this} to be type of #{exp}\", \"expected #{this} not to be type of #{exp}\", expected, actual);\n\t});\n\tdef(\"toBeInstanceOf\", function(obj) {\n\t\treturn this.instanceOf(obj);\n\t});\n\tdef(\"toHaveLength\", function(length) {\n\t\treturn this.have.length(length);\n\t});\n\t// destructuring, because it checks `arguments` inside, and value is passing as `undefined`\n\tdef(\"toHaveProperty\", function(...args) {\n\t\tif (Array.isArray(args[0])) args[0] = args[0].map((key) => String(key).replace(/([.[\\]])/g, \"\\\\$1\")).join(\".\");\n\t\tconst actual = this._obj;\n\t\tif (actual == null) throw new TypeError(`.toHaveProperty() expects to receive a valid object, but got ${actual}`);\n\t\tconst [propertyName, expected] = args;\n\t\tconst getValue = () => {\n\t\t\tif (Object.hasOwn(actual, propertyName)) return {\n\t\t\t\tvalue: actual[propertyName],\n\t\t\t\texists: true\n\t\t\t};\n\t\t\treturn utils.getPathInfo(actual, propertyName);\n\t\t};\n\t\tconst { value, exists } = getValue();\n\t\tconst pass = exists && (args.length === 1 || equals(expected, value, customTesters));\n\t\tconst valueString = args.length === 1 ? \"\" : ` with value ${inspect(expected, { truncate: 40 })}`;\n\t\treturn this.assert(pass, `expected #{this} to have property \"${propertyName}\"${valueString}`, `expected #{this} to not have property \"${propertyName}\"${valueString}`, expected, exists ? value : void 0);\n\t});\n\tdef(\"toBeCloseTo\", function(received, precision = 2) {\n\t\tconst expected = this._obj;\n\t\tlet pass = false;\n\t\tlet expectedDiff = 0;\n\t\tlet receivedDiff = 0;\n\t\tif (received === Number.POSITIVE_INFINITY && expected === Number.POSITIVE_INFINITY) pass = true;\n\t\telse if (received === Number.NEGATIVE_INFINITY && expected === Number.NEGATIVE_INFINITY) pass = true;\n\t\telse {\n\t\t\texpectedDiff = 10 ** -precision / 2;\n\t\t\treceivedDiff = Math.abs(expected - received);\n\t\t\tpass = receivedDiff < expectedDiff;\n\t\t}\n\t\treturn this.assert(pass, `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, received, expected, false);\n\t});\n\tfunction assertIsMock(assertion) {\n\t\tif (!isMockFunction(assertion._obj)) throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`);\n\t}\n\tfunction getSpy(assertion) {\n\t\tassertIsMock(assertion);\n\t\treturn assertion._obj;\n\t}\n\tdef([\"toHaveBeenCalledTimes\", \"toBeCalledTimes\"], function(number) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\treturn this.assert(callCount === number, `expected \"${spyName}\" to be called #{exp} times, but got ${callCount} times`, `expected \"${spyName}\" to not be called #{exp} times`, number, callCount, false);\n\t});\n\tdef(\"toHaveBeenCalledOnce\", function() {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\treturn this.assert(callCount === 1, `expected \"${spyName}\" to be called once, but got ${callCount} times`, `expected \"${spyName}\" to not be called once`, 1, callCount, false);\n\t});\n\tdef([\"toHaveBeenCalled\", \"toBeCalled\"], function() {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst called = callCount > 0;\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tlet msg = utils.getMessage(this, [\n\t\t\tcalled,\n\t\t\t`expected \"${spyName}\" to be called at least once`,\n\t\t\t`expected \"${spyName}\" to not be called at all, but actually been called ${callCount} times`,\n\t\t\ttrue,\n\t\t\tcalled\n\t\t]);\n\t\tif (called && isNot) msg = formatCalls(spy, msg);\n\t\tif (called && isNot || !called && !isNot) throw new AssertionError(msg);\n\t});\n\t// manually compare array elements since `jestEquals` cannot\n\t// apply asymmetric matcher to `undefined` array element.\n\tfunction equalsArgumentArray(a, b) {\n\t\treturn a.length === b.length && a.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality]));\n\t}\n\tdef([\"toHaveBeenCalledWith\", \"toBeCalledWith\"], function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args));\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\tpass,\n\t\t\t\t`expected \"${spyName}\" to be called with arguments: #{exp}`,\n\t\t\t\t`expected \"${spyName}\" to not be called with arguments: #{exp}`,\n\t\t\t\targs\n\t\t\t]);\n\t\t\tthrow new AssertionError(formatCalls(spy, msg, args));\n\t\t}\n\t});\n\tdef(\"toHaveBeenCalledExactlyOnceWith\", function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst pass = spy.mock.calls.some((callArg) => equalsArgumentArray(callArg, args)) && callCount === 1;\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\tpass,\n\t\t\t\t`expected \"${spyName}\" to be called once with arguments: #{exp}`,\n\t\t\t\t`expected \"${spyName}\" to not be called once with arguments: #{exp}`,\n\t\t\t\targs\n\t\t\t]);\n\t\t\tthrow new AssertionError(formatCalls(spy, msg, args));\n\t\t}\n\t});\n\tdef(\"toHaveBeenNthCalledWith\", function(times, ...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst nthCall = spy.mock.calls[times - 1];\n\t\tconst callCount = spy.mock.calls.length;\n\t\tconst isCalled = times <= callCount;\n\t\tthis.assert(nthCall && equalsArgumentArray(nthCall, args), `expected ${ordinal(times)} \"${spyName}\" call to have been called with #{exp}${isCalled ? `` : `, but called only ${callCount} times`}`, `expected ${ordinal(times)} \"${spyName}\" call to not have been called with #{exp}`, args, nthCall, isCalled);\n\t});\n\tdef(\"toHaveBeenLastCalledWith\", function(...args) {\n\t\tconst spy = getSpy(this);\n\t\tconst spyName = spy.getMockName();\n\t\tconst lastCall = spy.mock.calls.at(-1);\n\t\tthis.assert(lastCall && equalsArgumentArray(lastCall, args), `expected last \"${spyName}\" call to have been called with #{exp}`, `expected last \"${spyName}\" call to not have been called with #{exp}`, args, lastCall);\n\t});\n\t/**\n\t* Used for `toHaveBeenCalledBefore` and `toHaveBeenCalledAfter` to determine if the expected spy was called before the result spy.\n\t*/\n\tfunction isSpyCalledBeforeAnotherSpy(beforeSpy, afterSpy, failIfNoFirstInvocation) {\n\t\tconst beforeInvocationCallOrder = beforeSpy.mock.invocationCallOrder;\n\t\tconst afterInvocationCallOrder = afterSpy.mock.invocationCallOrder;\n\t\tif (beforeInvocationCallOrder.length === 0) return !failIfNoFirstInvocation;\n\t\tif (afterInvocationCallOrder.length === 0) return false;\n\t\treturn beforeInvocationCallOrder[0] < afterInvocationCallOrder[0];\n\t}\n\tdef([\"toHaveBeenCalledBefore\"], function(resultSpy, failIfNoFirstInvocation = true) {\n\t\tconst expectSpy = getSpy(this);\n\t\tif (!isMockFunction(resultSpy)) throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);\n\t\tthis.assert(isSpyCalledBeforeAnotherSpy(expectSpy, resultSpy, failIfNoFirstInvocation), `expected \"${expectSpy.getMockName()}\" to have been called before \"${resultSpy.getMockName()}\"`, `expected \"${expectSpy.getMockName()}\" to not have been called before \"${resultSpy.getMockName()}\"`, resultSpy, expectSpy);\n\t});\n\tdef([\"toHaveBeenCalledAfter\"], function(resultSpy, failIfNoFirstInvocation = true) {\n\t\tconst expectSpy = getSpy(this);\n\t\tif (!isMockFunction(resultSpy)) throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`);\n\t\tthis.assert(isSpyCalledBeforeAnotherSpy(resultSpy, expectSpy, failIfNoFirstInvocation), `expected \"${expectSpy.getMockName()}\" to have been called after \"${resultSpy.getMockName()}\"`, `expected \"${expectSpy.getMockName()}\" to not have been called after \"${resultSpy.getMockName()}\"`, resultSpy, expectSpy);\n\t});\n\tdef([\"toThrow\", \"toThrowError\"], function(expected) {\n\t\tif (typeof expected === \"string\" || typeof expected === \"undefined\" || expected instanceof RegExp) return this.throws(expected);\n\t\tconst obj = this._obj;\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\tconst isNot = utils.flag(this, \"negate\");\n\t\tlet thrown = null;\n\t\tif (promise === \"rejects\") thrown = obj;\n\t\telse if (promise === \"resolves\" && typeof obj !== \"function\") if (!isNot) {\n\t\t\tconst message = utils.flag(this, \"message\") || \"expected promise to throw an error, but it didn't\";\n\t\t\tthrow new AssertionError(message, { showDiff: false }, utils.flag(this, \"ssfi\"));\n\t\t} else return;\n\t\telse {\n\t\t\tlet isThrow = false;\n\t\t\ttry {\n\t\t\t\tobj();\n\t\t\t} catch (err) {\n\t\t\t\tisThrow = true;\n\t\t\t\tthrown = err;\n\t\t\t}\n\t\t\tif (!isThrow && !isNot) {\n\t\t\t\tconst message = utils.flag(this, \"message\") || \"expected function to throw an error, but it didn't\";\n\t\t\t\tthrow new AssertionError(message, { showDiff: false }, utils.flag(this, \"ssfi\"));\n\t\t\t}\n\t\t}\n\t\tif (typeof expected === \"function\") {\n\t\t\tconst name = expected.name || expected.prototype.constructor.name;\n\t\t\treturn this.assert(thrown && thrown instanceof expected, `expected error to be instance of ${name}`, `expected error not to be instance of ${name}`, expected, thrown);\n\t\t}\n\t\tif (isError(expected)) {\n\t\t\tconst equal = equals(thrown, expected, [...customTesters, iterableEquality]);\n\t\t\treturn this.assert(equal, \"expected a thrown error to be #{exp}\", \"expected a thrown error not to be #{exp}\", expected, thrown);\n\t\t}\n\t\tif (typeof expected === \"object\" && \"asymmetricMatch\" in expected && typeof expected.asymmetricMatch === \"function\") {\n\t\t\tconst matcher = expected;\n\t\t\treturn this.assert(thrown && matcher.asymmetricMatch(thrown), \"expected error to match asymmetric matcher\", \"expected error not to match asymmetric matcher\", matcher, thrown);\n\t\t}\n\t\tconst equal = equals(thrown, expected, [...customTesters, iterableEquality]);\n\t\treturn this.assert(equal, \"expected a thrown value to equal #{exp}\", \"expected a thrown value not to equal #{exp}\", expected, thrown);\n\t});\n\t[{\n\t\tname: \"toHaveResolved\",\n\t\tcondition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type }) => type === \"fulfilled\"),\n\t\taction: \"resolved\"\n\t}, {\n\t\tname: [\"toHaveReturned\", \"toReturn\"],\n\t\tcondition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== \"throw\"),\n\t\taction: \"called\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function() {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst pass = condition(spy);\n\t\t\tthis.assert(pass, `expected \"${spyName}\" to be successfully ${action} at least once`, `expected \"${spyName}\" to not be successfully ${action}`, pass, !pass, false);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveResolvedTimes\",\n\t\tcondition: (spy, times) => spy.mock.settledResults.reduce((s, { type }) => type === \"fulfilled\" ? ++s : s, 0) === times,\n\t\taction: \"resolved\"\n\t}, {\n\t\tname: [\"toHaveReturnedTimes\", \"toReturnTimes\"],\n\t\tcondition: (spy, times) => spy.mock.results.reduce((s, { type }) => type === \"throw\" ? s : ++s, 0) === times,\n\t\taction: \"called\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(times) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst pass = condition(spy, times);\n\t\t\tthis.assert(pass, `expected \"${spyName}\" to be successfully ${action} ${times} times`, `expected \"${spyName}\" to not be successfully ${action} ${times} times`, `expected resolved times: ${times}`, `received resolved times: ${pass}`, false);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveResolvedWith\",\n\t\tcondition: (spy, value) => spy.mock.settledResults.some(({ type, value: result }) => type === \"fulfilled\" && equals(value, result)),\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: [\"toHaveReturnedWith\", \"toReturnWith\"],\n\t\tcondition: (spy, value) => spy.mock.results.some(({ type, value: result }) => type === \"return\" && equals(value, result)),\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst pass = condition(spy, value);\n\t\t\tconst isNot = utils.flag(this, \"negate\");\n\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\tconst spyName = spy.getMockName();\n\t\t\t\tconst msg = utils.getMessage(this, [\n\t\t\t\t\tpass,\n\t\t\t\t\t`expected \"${spyName}\" to ${action} with: #{exp} at least once`,\n\t\t\t\t\t`expected \"${spyName}\" to not ${action} with: #{exp}`,\n\t\t\t\t\tvalue\n\t\t\t\t]);\n\t\t\t\tconst results = action === \"return\" ? spy.mock.results : spy.mock.settledResults;\n\t\t\t\tthrow new AssertionError(formatReturns(spy, results, msg, value));\n\t\t\t}\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveLastResolvedWith\",\n\t\tcondition: (spy, value) => {\n\t\t\tconst result = spy.mock.settledResults.at(-1);\n\t\t\treturn Boolean(result && result.type === \"fulfilled\" && equals(result.value, value));\n\t\t},\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: \"toHaveLastReturnedWith\",\n\t\tcondition: (spy, value) => {\n\t\t\tconst result = spy.mock.results.at(-1);\n\t\t\treturn Boolean(result && result.type === \"return\" && equals(result.value, value));\n\t\t},\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst result = (action === \"return\" ? spy.mock.results : spy.mock.settledResults).at(-1);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tthis.assert(condition(spy, value), `expected last \"${spyName}\" call to ${action} #{exp}`, `expected last \"${spyName}\" call to not ${action} #{exp}`, value, result?.value);\n\t\t});\n\t});\n\t[{\n\t\tname: \"toHaveNthResolvedWith\",\n\t\tcondition: (spy, index, value) => {\n\t\t\tconst result = spy.mock.settledResults[index - 1];\n\t\t\treturn result && result.type === \"fulfilled\" && equals(result.value, value);\n\t\t},\n\t\taction: \"resolve\"\n\t}, {\n\t\tname: \"toHaveNthReturnedWith\",\n\t\tcondition: (spy, index, value) => {\n\t\t\tconst result = spy.mock.results[index - 1];\n\t\t\treturn result && result.type === \"return\" && equals(result.value, value);\n\t\t},\n\t\taction: \"return\"\n\t}].forEach(({ name, condition, action }) => {\n\t\tdef(name, function(nthCall, value) {\n\t\t\tconst spy = getSpy(this);\n\t\t\tconst spyName = spy.getMockName();\n\t\t\tconst result = (action === \"return\" ? spy.mock.results : spy.mock.settledResults)[nthCall - 1];\n\t\t\tconst ordinalCall = `${ordinal(nthCall)} call`;\n\t\t\tthis.assert(condition(spy, nthCall, value), `expected ${ordinalCall} \"${spyName}\" call to ${action} #{exp}`, `expected ${ordinalCall} \"${spyName}\" call to not ${action} #{exp}`, value, result?.value);\n\t\t});\n\t});\n\t// @ts-expect-error @internal\n\tdef(\"withContext\", function(context) {\n\t\tfor (const key in context) utils.flag(this, key, context[key]);\n\t\treturn this;\n\t});\n\tutils.addProperty(chai.Assertion.prototype, \"resolves\", function __VITEST_RESOLVES__() {\n\t\tconst error = /* @__PURE__ */ new Error(\"resolves\");\n\t\tutils.flag(this, \"promise\", \"resolves\");\n\t\tutils.flag(this, \"error\", error);\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tif (utils.flag(this, \"poll\")) throw new SyntaxError(`expect.poll() is not supported in combination with .resolves`);\n\t\tif (typeof obj?.then !== \"function\") throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`);\n\t\tconst proxy = new Proxy(this, { get: (target, key, receiver) => {\n\t\t\tconst result = Reflect.get(target, key, receiver);\n\t\t\tif (typeof result !== \"function\") return result instanceof chai.Assertion ? proxy : result;\n\t\t\treturn (...args) => {\n\t\t\t\tutils.flag(this, \"_name\", key);\n\t\t\t\tconst promise = Promise.resolve(obj).then((value) => {\n\t\t\t\t\tutils.flag(this, \"object\", value);\n\t\t\t\t\treturn result.call(this, ...args);\n\t\t\t\t}, (err) => {\n\t\t\t\t\tconst _error = new AssertionError(`promise rejected \"${utils.inspect(err)}\" instead of resolving`, { showDiff: false });\n\t\t\t\t\t_error.cause = err;\n\t\t\t\t\tthrow _error;\n\t\t\t\t}).catch((err) => {\n\t\t\t\t\tif (isError(err) && error.stack) err.stack = error.stack.replace(error.message, err.message);\n\t\t\t\t\tthrow err;\n\t\t\t\t});\n\t\t\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, \"soft\"));\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t});\n\tutils.addProperty(chai.Assertion.prototype, \"rejects\", function __VITEST_REJECTS__() {\n\t\tconst error = /* @__PURE__ */ new Error(\"rejects\");\n\t\tutils.flag(this, \"promise\", \"rejects\");\n\t\tutils.flag(this, \"error\", error);\n\t\tconst test = utils.flag(this, \"vitest-test\");\n\t\tconst obj = utils.flag(this, \"object\");\n\t\tconst wrapper = typeof obj === \"function\" ? obj() : obj;\n\t\tif (utils.flag(this, \"poll\")) throw new SyntaxError(`expect.poll() is not supported in combination with .rejects`);\n\t\tif (typeof wrapper?.then !== \"function\") throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`);\n\t\tconst proxy = new Proxy(this, { get: (target, key, receiver) => {\n\t\t\tconst result = Reflect.get(target, key, receiver);\n\t\t\tif (typeof result !== \"function\") return result instanceof chai.Assertion ? proxy : result;\n\t\t\treturn (...args) => {\n\t\t\t\tutils.flag(this, \"_name\", key);\n\t\t\t\tconst promise = Promise.resolve(wrapper).then((value) => {\n\t\t\t\t\tthrow new AssertionError(`promise resolved \"${utils.inspect(value)}\" instead of rejecting`, {\n\t\t\t\t\t\tshowDiff: true,\n\t\t\t\t\t\texpected: /* @__PURE__ */ new Error(\"rejected promise\"),\n\t\t\t\t\t\tactual: value\n\t\t\t\t\t});\n\t\t\t\t}, (err) => {\n\t\t\t\t\tutils.flag(this, \"object\", err);\n\t\t\t\t\treturn result.call(this, ...args);\n\t\t\t\t}).catch((err) => {\n\t\t\t\t\tif (isError(err) && error.stack) err.stack = error.stack.replace(error.message, err.message);\n\t\t\t\t\tthrow err;\n\t\t\t\t});\n\t\t\t\treturn recordAsyncExpect(test, promise, createAssertionMessage(utils, this, !!args.length), error, utils.flag(this, \"soft\"));\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t});\n};\nfunction formatCalls(spy, msg, showActualCall) {\n\tif (spy.mock.calls.length) msg += y.gray(`\\n\\nReceived:\\n\\n${spy.mock.calls.map((callArg, i) => {\n\t\tlet methodCall = y.bold(` ${ordinal(i + 1)} ${spy.getMockName()} call:\\n\\n`);\n\t\tif (showActualCall) methodCall += diff(showActualCall, callArg, { omitAnnotationLines: true });\n\t\telse methodCall += stringify(callArg).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n\t\tmethodCall += \"\\n\";\n\t\treturn methodCall;\n\t}).join(\"\\n\")}`);\n\tmsg += y.gray(`\\n\\nNumber of calls: ${y.bold(spy.mock.calls.length)}\\n`);\n\treturn msg;\n}\nfunction formatReturns(spy, results, msg, showActualReturn) {\n\tif (results.length) msg += y.gray(`\\n\\nReceived:\\n\\n${results.map((callReturn, i) => {\n\t\tlet methodCall = y.bold(` ${ordinal(i + 1)} ${spy.getMockName()} call return:\\n\\n`);\n\t\tif (showActualReturn) methodCall += diff(showActualReturn, callReturn.value, { omitAnnotationLines: true });\n\t\telse methodCall += stringify(callReturn).split(\"\\n\").map((line) => ` ${line}`).join(\"\\n\");\n\t\tmethodCall += \"\\n\";\n\t\treturn methodCall;\n\t}).join(\"\\n\")}`);\n\tmsg += y.gray(`\\n\\nNumber of calls: ${y.bold(spy.mock.calls.length)}\\n`);\n\treturn msg;\n}\n\nfunction getMatcherState(assertion, expect) {\n\tconst obj = assertion._obj;\n\tconst isNot = util.flag(assertion, \"negate\");\n\tconst promise = util.flag(assertion, \"promise\") || \"\";\n\tconst customMessage = util.flag(assertion, \"message\");\n\tconst jestUtils = {\n\t\t...getMatcherUtils(),\n\t\tdiff,\n\t\tstringify,\n\t\titerableEquality,\n\t\tsubsetEquality\n\t};\n\tlet task = util.flag(assertion, \"vitest-test\");\n\tconst currentTestName = task?.fullTestName ?? \"\";\n\tif (task?.type !== \"test\") task = void 0;\n\tconst matcherState = {\n\t\t...getState(expect),\n\t\tcurrentTestName,\n\t\tcustomTesters: getCustomEqualityTesters(),\n\t\tisNot,\n\t\tutils: jestUtils,\n\t\tpromise,\n\t\tequals,\n\t\t// needed for built-in jest-snapshots, but we don't use it\n\t\tsuppressedErrors: [],\n\t\tsoft: util.flag(assertion, \"soft\"),\n\t\tpoll: util.flag(assertion, \"poll\"),\n\t\tassertion\n\t};\n\tObject.assign(matcherState, { task });\n\treturn {\n\t\tstate: matcherState,\n\t\tisNot,\n\t\tobj,\n\t\tcustomMessage\n\t};\n}\nclass JestExtendError extends Error {\n\tactual;\n\texpected;\n\t__vitest_error_context__;\n\tconstructor(message, actual, expected, __vitest_error_context__) {\n\t\tsuper(message);\n\t\tthis.actual = actual;\n\t\tthis.expected = expected;\n\t\tthis.__vitest_error_context__ = __vitest_error_context__;\n\t}\n}\nfunction JestExtendPlugin(c, expect, matchers) {\n\treturn (_, utils) => {\n\t\tObject.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => {\n\t\t\tfunction __VITEST_EXTEND_ASSERTION__(...args) {\n\t\t\t\tconst { state, isNot, obj, customMessage } = getMatcherState(this, expect);\n\t\t\t\tconst result = expectAssertion.call(state, obj, ...args);\n\t\t\t\tif (result && typeof result === \"object\" && typeof result.then === \"function\") return result.then(({ pass, message, actual, expected, meta }) => {\n\t\t\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\t\t\tconst errorMessage = (customMessage ? `${customMessage}: ` : \"\") + message();\n\t\t\t\t\t\tthrow new JestExtendError(errorMessage, actual, expected, {\n\t\t\t\t\t\t\tassertionName: expectAssertionName,\n\t\t\t\t\t\t\tmeta\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tconst { pass, message, actual, expected, meta } = result;\n\t\t\t\tif (pass && isNot || !pass && !isNot) {\n\t\t\t\t\tconst errorMessage = (customMessage ? `${customMessage}: ` : \"\") + message();\n\t\t\t\t\tthrow new JestExtendError(errorMessage, actual, expected, {\n\t\t\t\t\t\tassertionName: expectAssertionName,\n\t\t\t\t\t\tmeta\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst softWrapper = wrapAssertion(utils, expectAssertionName, __VITEST_EXTEND_ASSERTION__);\n\t\t\tutils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper);\n\t\t\tutils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper);\n\t\t\t// `expect.poll()` inspects the installed Chai assertion method,\n\t\t\t// so copy the internal marker from the original matcher function.\n\t\t\t// this is only for domain snapshot matchers for now.\n\t\t\tif (expectAssertion.__vitest_poll_takeover__) {\n\t\t\t\tconst addedMethod = c.Assertion.prototype[expectAssertionName];\n\t\t\t\tObject.defineProperty(addedMethod, \"__vitest_poll_takeover__\", { value: true });\n\t\t\t}\n\t\t\tclass CustomMatcher extends AsymmetricMatcher {\n\t\t\t\tconstructor(inverse = false, ...sample) {\n\t\t\t\t\tsuper(sample, inverse);\n\t\t\t\t}\n\t\t\t\tasymmetricMatch(other, customTesters) {\n\t\t\t\t\tconst context = this.getMatcherContext(expect);\n\t\t\t\t\tconst { pass } = expectAssertion.call(customTesters ? {\n\t\t\t\t\t\t...context,\n\t\t\t\t\t\tcustomTesters\n\t\t\t\t\t} : context, other, ...this.sample);\n\t\t\t\t\treturn this.inverse ? !pass : pass;\n\t\t\t\t}\n\t\t\t\ttoString() {\n\t\t\t\t\treturn `${this.inverse ? \"not.\" : \"\"}${expectAssertionName}`;\n\t\t\t\t}\n\t\t\t\tgetExpectedType() {\n\t\t\t\t\treturn \"any\";\n\t\t\t\t}\n\t\t\t\ttoAsymmetricMatcher() {\n\t\t\t\t\treturn `${this.toString()}<${this.sample.map((item) => stringify(item)).join(\", \")}>`;\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst customMatcher = (...sample) => new CustomMatcher(false, ...sample);\n\t\t\tObject.defineProperty(expect, expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: customMatcher,\n\t\t\t\twritable: true\n\t\t\t});\n\t\t\tObject.defineProperty(expect.not, expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: (...sample) => new CustomMatcher(true, ...sample),\n\t\t\t\twritable: true\n\t\t\t});\n\t\t\t// keep track of asymmetric matchers on global so that it can be copied over to local context's `expect`.\n\t\t\t// note that the negated variant is automatically shared since it's assigned on the single `expect.not` object.\n\t\t\tObject.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT], expectAssertionName, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tvalue: customMatcher,\n\t\t\t\twritable: true\n\t\t\t});\n\t\t});\n\t};\n}\nconst JestExtend = (chai, utils) => {\n\tutils.addMethod(chai.expect, \"extend\", (expect, expects) => {\n\t\tuse(JestExtendPlugin(chai, expect, expects));\n\t});\n};\n\nfunction isBenchResult(value) {\n\treturn typeof value === \"object\" && value !== null && \"latency\" in value && typeof value.latency?.mean === \"number\";\n}\nfunction formatOps(ops) {\n\treturn ops.toLocaleString(\"en-US\", {\n\t\tminimumFractionDigits: 2,\n\t\tmaximumFractionDigits: 2\n\t});\n}\nconst benchMatchers = {\n\ttoBeFasterThan(actual, expected, options) {\n\t\tconst { matcherHint, RECEIVED_COLOR, EXPECTED_COLOR } = this.utils;\n\t\tconst delta = options?.delta ?? 0;\n\t\tif (!isBenchResult(actual)) throw new TypeError(`${matcherHint(\".toBeFasterThan\")} expects the actual value to be a benchmark result.`);\n\t\tif (!isBenchResult(expected)) throw new TypeError(`${matcherHint(\".toBeFasterThan\")} expects the expected value to be a benchmark result.`);\n\t\tconst threshold = expected.latency.mean * (1 - delta);\n\t\tconst pass = actual.latency.mean < threshold;\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => {\n\t\t\t\tconst relation = ((actual.latency.mean - expected.latency.mean) / expected.latency.mean * 100).toFixed(2);\n\t\t\t\treturn pass ? `${matcherHint(\".not.toBeFasterThan\")}\\n\\nExpected to not be faster, but was ${Math.abs(Number(relation))}% faster.\\n\\nReceived: ${RECEIVED_COLOR(formatOps(actual.throughput.mean))} ops/sec\\nExpected: ${EXPECTED_COLOR(formatOps(expected.throughput.mean))} ops/sec\\n` : `${matcherHint(\".toBeFasterThan\")}\\n\\nExpected to be faster${delta > 0 ? ` by at least ${(delta * 100).toFixed(0)}%` : \"\"}, but was ${Number(relation) > 0 ? `${relation}% slower` : `only ${Math.abs(Number(relation))}% faster`}.\\n\\nReceived: ${RECEIVED_COLOR(formatOps(actual.throughput.mean))} ops/sec\\nExpected: ${EXPECTED_COLOR(formatOps(expected.throughput.mean))} ops/sec\\n`;\n\t\t\t}\n\t\t};\n\t},\n\ttoBeSlowerThan(actual, expected, options) {\n\t\tconst { matcherHint, RECEIVED_COLOR, EXPECTED_COLOR } = this.utils;\n\t\tconst delta = options?.delta ?? 0;\n\t\tif (!isBenchResult(actual)) throw new TypeError(`${matcherHint(\".toBeSlowerThan\")} expects the actual value to be a benchmark result.`);\n\t\tif (!isBenchResult(expected)) throw new TypeError(`${matcherHint(\".toBeSlowerThan\")} expects the expected value to be a benchmark result.`);\n\t\tconst threshold = expected.latency.mean * (1 + delta);\n\t\tconst pass = actual.latency.mean > threshold;\n\t\treturn {\n\t\t\tpass,\n\t\t\tmessage: () => {\n\t\t\t\tconst relation = ((actual.latency.mean - expected.latency.mean) / expected.latency.mean * 100).toFixed(2);\n\t\t\t\treturn pass ? `${matcherHint(\".not.toBeSlowerThan\")}\\n\\nExpected to not be slower, but was ${relation}% slower.\\n\\nReceived: ${RECEIVED_COLOR(formatOps(actual.throughput.mean))} ops/sec\\nExpected: ${EXPECTED_COLOR(formatOps(expected.throughput.mean))} ops/sec\\n` : `${matcherHint(\".toBeSlowerThan\")}\\n\\nExpected to be slower${delta > 0 ? ` by at least ${(delta * 100).toFixed(0)}%` : \"\"}, but was ${Number(relation) < 0 ? `${Math.abs(Number(relation))}% faster` : `only ${relation}% slower`}.\\n\\nReceived: ${RECEIVED_COLOR(formatOps(actual.throughput.mean))} ops/sec\\nExpected: ${EXPECTED_COLOR(formatOps(expected.throughput.mean))} ops/sec\\n`;\n\t\t\t}\n\t\t};\n\t}\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 * @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 * 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 * @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 * @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 * @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 className_1;\nvar hasRequiredClassName;\n\nfunction requireClassName () {\n\tif (hasRequiredClassName) return className_1;\n\thasRequiredClassName = 1;\n\n\t/**\n\t * Returns a display name for a value from a constructor\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 const name = value.constructor && value.constructor.name;\n\t return name || null;\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 * @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 * @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 * @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 * @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 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 * @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 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 * @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 * @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 * @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 * @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, timersPromisesModule;\n\tif (typeof __vitest_required__ !== 'undefined') {\n\t try {\n\t timersModule = __vitest_required__.timers;\n\t } catch {\n\t // ignored\n\t }\n\t try {\n\t timersPromisesModule = __vitest_required__.timersPromises;\n\t } catch {\n\t // ignored\n\t }\n\t}\n\n\t/**\n\t * @typedef {\"nextAsync\" | \"manual\" | \"interval\"} TickMode\n\t */\n\n\t/**\n\t * @typedef {object} NextAsyncTickMode\n\t * @property {\"nextAsync\"} mode - runs timers one macrotask at a time\n\t */\n\n\t/**\n\t * @typedef {object} ManualTickMode\n\t * @property {\"manual\"} mode - advances only when the caller explicitly ticks\n\t */\n\n\t/**\n\t * @typedef {object} IntervalTickMode\n\t * @property {\"interval\"} mode - advances automatically on a native interval\n\t * @property {number} [delta] - interval duration in milliseconds\n\t */\n\n\t/**\n\t * @typedef {IntervalTickMode | NextAsyncTickMode | ManualTickMode} TimerTickMode\n\t */\n\n\t/**\n\t * @callback FakeTimersFunction\n\t * @param {...unknown[]} args\n\t * @returns {unknown}\n\t */\n\n\t/**\n\t * @callback VoidVarArgsFunc\n\t * @param {...unknown[]} args - optional arguments to call the callback with\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback NextTick\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {...unknown[]} args - 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 {...unknown[]} args - optional arguments to call the callback with\n\t * @returns {NodeImmediate}\n\t */\n\n\t/**\n\t * @callback SetTimeout\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {number} [delay] - optional delay in milliseconds\n\t * @param {...unknown[]} args - optional arguments to call the callback with\n\t * @returns {TimerId} - the timeout identifier\n\t */\n\n\t/**\n\t * @callback ClearTimeout\n\t * @param {TimerId} [id] - the timeout identifier to clear\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback SetInterval\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @param {number} [delay] - optional delay in milliseconds\n\t * @param {...unknown[]} args - optional arguments to call the callback with\n\t * @returns {TimerId} - the interval identifier\n\t */\n\n\t/**\n\t * @callback ClearInterval\n\t * @param {TimerId} [id] - the interval identifier to clear\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback QueueMicrotask\n\t * @param {VoidVarArgsFunc} callback - the callback to run\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback TimeRemaining\n\t * @returns {number}\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 {TimeRemaining} 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 * @callback RequestIdleCallbackCallback\n\t * @param {IdleDeadline} deadline\n\t */\n\n\t/**\n\t * Queues a function to be called during a browser's idle periods\n\t * @callback RequestIdleCallback\n\t * @param {RequestIdleCallbackCallback} callback\n\t * @param {{timeout?: number}} [options] - an options object\n\t * @returns {number} the id\n\t */\n\n\t/**\n\t * @callback AnimationFrameCallback\n\t * @param {number} timestamp\n\t */\n\n\t/**\n\t * @callback RequestAnimationFrame\n\t * @param {AnimationFrameCallback} callback\n\t * @returns {TimerId} - the request id\n\t */\n\n\t/**\n\t * @callback CancelAnimationFrame\n\t * @param {TimerId} id - cancels a frame callback\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback CancelIdleCallback\n\t * @param {TimerId} id - cancels a scheduled idle callback\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback ClearImmediate\n\t * @param {NodeImmediate} id - faked `clearImmediate`\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback CountTimers\n\t * @returns {number}\n\t */\n\n\t/**\n\t * @callback RunMicrotasks\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @typedef {object} TemporalDuration\n\t * @property {number} years - years component\n\t * @property {number} months - months component\n\t * @property {number} weeks - weeks component\n\t * @property {number} days - days component\n\t * @property {number} hours - hours component\n\t * @property {number} minutes - minutes component\n\t * @property {number} seconds - seconds component\n\t * @property {number} milliseconds - milliseconds component\n\t * @property {number} microseconds - microseconds component\n\t * @property {number} nanoseconds - nanoseconds component\n\t * @property {(options: {unit: string, relativeTo?: unknown}) => number} total - converts to a single unit\n\t */\n\n\t/**\n\t * @typedef {object} TemporalTimelike\n\t * @property {number} epochMilliseconds - milliseconds since the Unix epoch (present on Temporal.Instant and Temporal.ZonedDateTime)\n\t */\n\n\t/**\n\t * @callback Tick\n\t * @param {number|string|TemporalDuration} tickValue milliseconds, a string parseable by parseTime, or a Temporal.Duration\n\t * @returns {number} will return the new `now` value\n\t */\n\n\t/**\n\t * @callback TickAsync\n\t * @param {number|string|TemporalDuration} tickValue milliseconds, a string parseable by parseTime, or a Temporal.Duration\n\t * @returns {Promise<number>}\n\t */\n\n\t/**\n\t * @callback Next\n\t * @returns {number}\n\t */\n\n\t/**\n\t * @callback NextAsync\n\t * @returns {Promise<number>}\n\t */\n\n\t/**\n\t * @callback RunAll\n\t * @returns {number}\n\t */\n\n\t/**\n\t * @callback RunToFrame\n\t * @returns {number}\n\t */\n\n\t/**\n\t * @callback RunAllAsync\n\t * @returns {Promise<number>}\n\t */\n\n\t/**\n\t * @callback RunToLast\n\t * @returns {number}\n\t */\n\n\t/**\n\t * @callback RunToLastAsync\n\t * @returns {Promise<number>}\n\t */\n\n\t/**\n\t * @callback Reset\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback SetSystemTime\n\t * @param {number|Date|TemporalTimelike} [now] initial mocked time, as milliseconds since epoch, a Date, a Temporal.Instant, or a Temporal.ZonedDateTime\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback Jump\n\t * @param {number|string|TemporalDuration} tickValue milliseconds, a human-readable value like \"01:11:15\", or a Temporal.Duration\n\t * @returns {number}\n\t */\n\n\t/**\n\t * @callback Uninstall\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback SetTickMode\n\t * @param {SetTickModeConfig} tickModeConfig - The new configuration for how the clock should tick.\n\t * @returns {void}\n\t */\n\n\t/**\n\t * @callback Hrtime\n\t * @param {Array<number>} [prev]\n\t * @returns {Array<number>}\n\t */\n\n\t/**\n\t * @callback WithGlobal\n\t * @param {object} _global Namespace to mock (e.g. `window`)\n\t * @returns {FakeTimers}\n\t */\n\n\t/**\n\t * @typedef {\"setTimeout\" | \"clearTimeout\" | \"setImmediate\" | \"clearImmediate\" | \"setInterval\" | \"clearInterval\" | \"Date\" | \"nextTick\" | \"hrtime\" | \"requestAnimationFrame\" | \"cancelAnimationFrame\" | \"requestIdleCallback\" | \"cancelIdleCallback\" | \"performance\" | \"queueMicrotask\" | \"Intl\" | \"Temporal\"} FakeMethod\n\t */\n\n\t/**\n\t * @typedef {number | NodeImmediate | Timer} TimerId\n\t */\n\n\t/* eslint-disable jsdoc/reject-any-type */\n\t/**\n\t * @typedef {Record<string, any> & {\n\t * setTimeout?: SetTimeout,\n\t * clearTimeout?: ClearTimeout,\n\t * setInterval?: SetInterval,\n\t * clearInterval?: ClearInterval,\n\t * setImmediate?: SetImmediate,\n\t * clearImmediate?: ClearImmediate,\n\t * queueMicrotask?: QueueMicrotask,\n\t * requestAnimationFrame?: RequestAnimationFrame,\n\t * cancelAnimationFrame?: CancelAnimationFrame,\n\t * requestIdleCallback?: RequestIdleCallback,\n\t * cancelIdleCallback?: CancelIdleCallback,\n\t * process?: any,\n\t * performance?: any,\n\t * Performance?: any,\n\t * Intl?: any,\n\t * Temporal?: any,\n\t * Promise?: typeof Promise,\n\t * Date: typeof Date & { isFake?: boolean, toSource?: () => string, clock?: any }\n\t * }} GlobalObject\n\t */\n\n\t/**\n\t * @typedef {object} TimerHeap\n\t * @property {Timer[]} timers - the heap-ordered timers\n\t * @property {() => Timer | undefined} peek - returns the next timer without removing it\n\t * @property {(timer: Timer) => void} push - adds a timer to the heap\n\t * @property {() => Timer | undefined} pop - removes and returns the next timer\n\t * @property {(timer: Timer) => void} remove - removes a specific timer\n\t */\n\n\t/**\n\t * @typedef {object} ClockTickMode\n\t * @property {TickMode} mode - active tick mode\n\t * @property {number} counter - increments whenever the mode changes\n\t * @property {number} [delta] - interval length in milliseconds\n\t */\n\n\t/**\n\t * @typedef {object} SetTickModeConfig\n\t * @property {TickMode} mode - desired tick mode\n\t * @property {number} [delta] - interval length in milliseconds\n\t */\n\n\t/**\n\t * @typedef {Record<string, any> & { clock: Clock }} IntlWithClock\n\t */\n\n\t/**\n\t * @typedef {Record<string, any> & { now: () => number }} PerformanceLike\n\t */\n\n\t/**\n\t * @typedef {object} Timers\n\t * @property {SetTimeout} setTimeout - native `setTimeout`\n\t * @property {ClearTimeout} clearTimeout - native `clearTimeout`\n\t * @property {SetInterval} setInterval - native `setInterval`\n\t * @property {ClearInterval} clearInterval - native `clearInterval`\n\t * @property {typeof Date} Date - native `Date`\n\t * @property {typeof Intl} [Intl] - native `Intl`\n\t * @property {any} [Temporal] - native `Temporal`\n\t * @property {SetImmediate} [setImmediate] - native `setImmediate`, if available\n\t * @property {ClearImmediate} [clearImmediate] - native `clearImmediate`, if available\n\t * @property {Hrtime} [hrtime] - native `process.hrtime`, if available\n\t * @property {NextTick} [nextTick] - native `process.nextTick`, if available\n\t * @property {PerformanceLike} [performance] - native `performance`, if available\n\t * @property {RequestAnimationFrame} [requestAnimationFrame] - native `requestAnimationFrame`, if available\n\t * @property {QueueMicrotask} [queueMicrotask] - whether `queueMicrotask` exists\n\t * @property {CancelAnimationFrame} [cancelAnimationFrame] - native `cancelAnimationFrame`, if available\n\t * @property {RequestIdleCallback} [requestIdleCallback] - native `requestIdleCallback`, if available\n\t * @property {CancelIdleCallback} [cancelIdleCallback] - native `cancelIdleCallback`, if available\n\t */\n\n\t/**\n\t * @typedef {object} ClockState\n\t * @property {number} tickFrom - lower bound of the current tick range\n\t * @property {number} tickTo - upper bound of the current tick range\n\t * @property {number} [previous] - previous timer time used during ticking\n\t * @property {number | null} [oldNow] - previous value of `now`\n\t * @property {Timer} [timer] - timer currently being processed\n\t * @property {unknown} [firstException] - first exception raised while processing timers\n\t * @property {number} [nanosTotal] - accumulated nanoseconds from fractional ticks\n\t * @property {number} [msFloat] - accumulated fractional milliseconds\n\t * @property {number} [ms] - accumulated whole milliseconds\n\t */\n\n\t/**\n\t * @typedef {object} TimerInitialProps\n\t * @property {VoidVarArgsFunc} func - callback or string to execute\n\t * @property {unknown[]} [args] - arguments passed to the callback\n\t * @property {'Timeout' | 'Interval' | 'Immediate' | 'AnimationFrame' | 'IdleCallback'} [type] - timer kind\n\t * @property {number} [delay] - requested delay in milliseconds\n\t * @property {number} [callAt] - scheduled execution time\n\t * @property {number} [createdAt] - time at which the timer was created\n\t * @property {boolean} [immediate] - whether this timer should run before non-immediate timers at the same time\n\t * @property {number} [id] - unique timer identifier\n\t * @property {Error} [error] - captured stack for loop diagnostics\n\t * @property {number} [interval] - interval for repeated timers\n\t * @property {boolean} [animation] - whether this is an animation frame timer\n\t * @property {boolean} [requestIdleCallback] - whether this is an idle callback timer\n\t * @property {number} [order] - execution order for timers at the same time\n\t * @property {number} [heapIndex] - index in the timer heap\n\t */\n\n\t/**\n\t * @callback CreateClockCallback\n\t * @param {number|Date|TemporalTimelike} [start] initial mocked time, as milliseconds since epoch, a Date, a Temporal.Instant, or a Temporal.ZonedDateTime\n\t * @param {number} [loopLimit] maximum number of timers run before aborting with an infinite-loop error\n\t * @returns {Clock}\n\t */\n\n\t/**\n\t * @callback InstallCallback\n\t * @param {Config} [config] Optional config\n\t * @returns {Clock}\n\t */\n\n\t/**\n\t * @typedef {object} FakeTimers\n\t * @property {Timers} timers - the native timer APIs saved for later restoration\n\t * @property {CreateClockCallback} createClock - creates a new fake clock\n\t * @property {InstallCallback} install - installs the fake timers onto the default global object\n\t * @property {WithGlobal} withGlobal - creates a fake-timers instance for a provided global object\n\t */\n\n\t/**\n\t * @typedef {object} Clock\n\t * @property {number} now - current mocked time in milliseconds\n\t * @property {typeof Date & {clock?: Clock, isFake?: boolean, toSource?: () => string}} Date - fake Date constructor bound to this clock\n\t * @property {number} loopLimit - maximum number of timers before assuming an infinite loop\n\t * @property {RequestIdleCallback} requestIdleCallback - schedules an idle callback\n\t * @property {CancelIdleCallback} cancelIdleCallback - cancels a scheduled idle callback\n\t * @property {SetTimeout} setTimeout - faked `setTimeout`\n\t * @property {ClearTimeout} clearTimeout - faked `clearTimeout`\n\t * @property {NextTick} nextTick - faked `process.nextTick`\n\t * @property {QueueMicrotask} queueMicrotask - faked `queueMicrotask`\n\t * @property {SetInterval} setInterval - faked `setInterval`\n\t * @property {ClearInterval} clearInterval - faked `clearInterval`\n\t * @property {SetImmediate} setImmediate - faked `setImmediate`\n\t * @property {ClearImmediate} clearImmediate - faked `clearImmediate`\n\t * @property {CountTimers} countTimers - counts scheduled timers\n\t * @property {RequestAnimationFrame} requestAnimationFrame - schedules a frame callback\n\t * @property {CancelAnimationFrame} cancelAnimationFrame - cancels a frame callback\n\t * @property {RunMicrotasks} runMicrotasks - drains microtasks\n\t * @property {Tick} tick - advances fake time synchronously\n\t * @property {TickAsync} tickAsync - advances fake time asynchronously\n\t * @property {Next} next - runs the next scheduled timer\n\t * @property {NextAsync} nextAsync - runs the next scheduled timer asynchronously\n\t * @property {RunAll} runAll - runs all scheduled timers\n\t * @property {RunToFrame} runToFrame - runs timers up to the next animation frame\n\t * @property {RunAllAsync} runAllAsync - runs all scheduled timers asynchronously\n\t * @property {RunToLast} runToLast - runs timers up to the last scheduled timer\n\t * @property {RunToLastAsync} runToLastAsync - runs timers up to the last scheduled timer asynchronously\n\t * @property {Reset} reset - clears all timers and resets the clock\n\t * @property {SetSystemTime} setSystemTime - sets the clock to a specific wall-clock time\n\t * @property {Jump} jump - advances time and returns the new `now`\n\t * @property {any} performance - fake performance object\n\t * @property {Hrtime} hrtime - faked `process.hrtime`\n\t * @property {Uninstall} uninstall - restores native timers\n\t * @property {string[]} methods - names of faked methods\n\t * @property {boolean} [shouldClearNativeTimers] - inherited from config\n\t * @property {{methodName:string, original:unknown}[] | undefined} timersModuleMethods - saved Node timers module methods\n\t * @property {{methodName:string, original:unknown}[] | undefined} timersPromisesModuleMethods - saved Node timers/promises methods\n\t * @property {Map<VoidVarArgsFunc, AbortSignal>} abortListenerMap - active abort listeners\n\t * @property {SetTickMode} setTickMode - switches the auto-tick mode\n\t * @property {Map<number, Timer>} [timers] - internal timer storage\n\t * @property {TimerHeap} [timerHeap] - internal timer heap\n\t * @property {boolean} [duringTick] - internal flag\n\t * @property {boolean} isNearInfiniteLimit - internal flag indicating the loop limit is nearly reached\n\t * @property {TimerId} [attachedInterval] - internal flag\n\t * @property {ClockTickMode} [tickMode] - internal flag\n\t * @property {Timer[]} [jobs] - internal flag\n\t * @property {IntlWithClock} [Intl] - fake Intl object\n\t * @property {any} [Temporal] - fake Temporal object\n\t */\n\t/* eslint-enable jsdoc/reject-any-type */\n\n\t/**\n\t * Configuration object for the `install` method.\n\t * @typedef {object} Config\n\t * @property {number|Date|TemporalTimelike} [now] initial mocked time, as milliseconds since epoch, a Date, a Temporal.Instant, or a Temporal.ZonedDateTime\n\t * @property {FakeMethod[]} [toFake] method names that should be faked\n\t * @property {FakeMethod[]} [toNotFake] method names that should remain native\n\t * @property {number} [loopLimit] maximum number of timers run before aborting with an infinite-loop error\n\t * @property {boolean} [shouldAdvanceTime] automatically increments mocked time while the clock is installed\n\t * @property {number} [advanceTimeDelta] interval in milliseconds used when `shouldAdvanceTime` is enabled\n\t * @property {boolean} [shouldClearNativeTimers] forwards clear calls to native methods when the timer is not fake\n\t * @property {boolean} [ignoreMissingTimers] suppresses errors when a requested timer is missing from the global object\n\t * @property {GlobalObject} [target] global object to install onto\n\t */\n\n\t/**\n\t * The internal structure to describe a scheduled fake timer\n\t * @typedef {TimerInitialProps} Timer\n\t * @property {unknown[]} args - arguments passed to the callback\n\t * @property {number} callAt - scheduled execution time\n\t * @property {number} createdAt - time at which the timer was created\n\t * @property {number} id - unique timer identifier\n\t * @property {'Timeout' | 'Interval' | 'Immediate' | 'AnimationFrame' | 'IdleCallback'} type - timer kind\n\t */\n\n\t/**\n\t * @callback NodeImmediateHasRef\n\t * @returns {boolean}\n\t */\n\n\t/**\n\t * @callback NodeImmediateRef\n\t * @returns {NodeImmediate}\n\t */\n\n\t/**\n\t * @callback NodeImmediateUnref\n\t * @returns {NodeImmediate}\n\t */\n\n\t/**\n\t * A Node timer\n\t * @typedef {object} NodeImmediate\n\t * @property {NodeImmediateHasRef} hasRef - reports whether the timer keeps the event loop alive\n\t * @property {NodeImmediateRef} ref - marks the timer as referenced\n\t * @property {NodeImmediateUnref} unref - marks the timer as unreferenced\n\t */\n\n\t/* eslint-disable complexity */\n\n\t/**\n\t * Mocks available features in the specified global namespace.\n\t * @param {GlobalObject} _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 isPresent = {};\n\t let timeoutResult,\n\t addTimerReturnsObject = false;\n\n\t if (_global.setTimeout) {\n\t isPresent.setTimeout = true;\n\t timeoutResult = _global.setTimeout(NOOP, 0);\n\t addTimerReturnsObject = typeof timeoutResult === \"object\";\n\t }\n\t isPresent.clearTimeout = Boolean(_global.clearTimeout);\n\t isPresent.setInterval = Boolean(_global.setInterval);\n\t isPresent.clearInterval = Boolean(_global.clearInterval);\n\t isPresent.hrtime =\n\t _global.process && typeof _global.process.hrtime === \"function\";\n\t isPresent.hrtimeBigint =\n\t isPresent.hrtime && typeof _global.process.hrtime.bigint === \"function\";\n\t isPresent.nextTick =\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 isPresent.performance =\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 isPresent.queueMicrotask = Object.prototype.hasOwnProperty.call(\n\t _global,\n\t \"queueMicrotask\",\n\t );\n\t isPresent.requestAnimationFrame =\n\t _global.requestAnimationFrame &&\n\t typeof _global.requestAnimationFrame === \"function\";\n\t isPresent.cancelAnimationFrame =\n\t _global.cancelAnimationFrame &&\n\t typeof _global.cancelAnimationFrame === \"function\";\n\t isPresent.requestIdleCallback =\n\t _global.requestIdleCallback &&\n\t typeof _global.requestIdleCallback === \"function\";\n\t isPresent.cancelIdleCallback =\n\t _global.cancelIdleCallback &&\n\t typeof _global.cancelIdleCallback === \"function\";\n\t isPresent.setImmediate =\n\t _global.setImmediate && typeof _global.setImmediate === \"function\";\n\t isPresent.clearImmediate =\n\t _global.clearImmediate && typeof _global.clearImmediate === \"function\";\n\t isPresent.Intl = _global.Intl && typeof _global.Intl === \"object\";\n\t isPresent.Temporal =\n\t _global.Temporal !== null &&\n\t typeof _global.Temporal === \"object\" &&\n\t typeof _global.Temporal.Now !== \"undefined\" &&\n\t typeof _global.Temporal.Instant !== \"undefined\";\n\n\t if (_global.clearTimeout) {\n\t _global.clearTimeout(timeoutResult);\n\t }\n\n\t const NativeDate = _global.Date;\n\t const NativeIntl = isPresent.Intl\n\t ? Object.defineProperties(\n\t Object.create(null),\n\t Object.getOwnPropertyDescriptors(_global.Intl),\n\t )\n\t : undefined;\n\t const NativeTemporal = isPresent.Temporal ? _global.Temporal : undefined;\n\t let uniqueTimerId = idCounterStart;\n\t /** @type {number} */\n\t let uniqueTimerOrder = 0;\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\t isPresent.Date = true;\n\n\t /**\n\t * The PerformanceEntry object encapsulates a single performance metric\n\t * that is part of the browser's performance timeline.\n\t *\n\t * This is an object returned by the `mark` and `measure` methods on the Performance prototype\n\t */\n\t class FakePerformanceEntry {\n\t constructor(name, entryType, startTime, duration) {\n\t this.name = name;\n\t this.entryType = entryType;\n\t this.startTime = startTime;\n\t this.duration = duration;\n\t }\n\n\t toJSON() {\n\t return JSON.stringify({ ...this });\n\t }\n\t }\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 /**\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 clock.isNearInfiniteLimit = true;\n\t }\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t */\n\t function resetIsNearInfiniteLimit(clock) {\n\t if (clock) {\n\t clock.isNearInfiniteLimit = false;\n\t }\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 * @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 * @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 * @param {Date|number|TemporalTimelike} 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 === \"number\") {\n\t return epoch;\n\t }\n\t if (typeof (/** @type {Date} */ (epoch).getTime) === \"function\") {\n\t return /** @type {Date} */ (epoch).getTime();\n\t }\n\t if (\n\t typeof (\n\t /** @type {TemporalTimelike} */ (epoch).epochMilliseconds\n\t ) === \"number\"\n\t ) {\n\t // Temporal.Instant and Temporal.ZonedDateTime both have epochMilliseconds\n\t return /** @type {TemporalTimelike} */ (epoch).epochMilliseconds;\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 * @returns {Error}\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 {\n\t // noop\n\t }\n\n\t return infiniteLoopError;\n\t }\n\n\t /**\n\t * @returns {typeof Date & { clock: Clock }}\n\t */\n\t function createDate() {\n\t class ClockDate extends NativeDate {\n\t /** @type {Clock} */\n\t static clock;\n\n\t constructor(...args) {\n\t // Preserve fake time when Date is called without arguments.\n\t if (args.length === 0) {\n\t super(ClockDate.clock.now);\n\t } else {\n\t // The subclass is intentionally thin for explicit args.\n\t // @ts-expect-error Date constructor overloads are intentionally dynamic.\n\t super(...args);\n\t }\n\n\t // ensures identity checks using the constructor prop still works\n\t // this should have no other functional effect\n\t Object.defineProperty(this, \"constructor\", {\n\t value: NativeDate,\n\t enumerable: false,\n\t });\n\t }\n\n\t static [Symbol.hasInstance](instance) {\n\t return instance instanceof NativeDate;\n\t }\n\t }\n\n\t ClockDate.isFake = true;\n\n\t if (NativeDate.now) {\n\t ClockDate.now = function now() {\n\t return ClockDate.clock.now;\n\t };\n\t }\n\n\t const NativeDateWithToSource =\n\t /** @type {typeof Date & { toSource?: () => string }} */ (\n\t NativeDate\n\t );\n\n\t if (NativeDateWithToSource.toSource) {\n\t ClockDate.toSource = function toSource() {\n\t return NativeDateWithToSource.toSource();\n\t };\n\t }\n\n\t ClockDate.toString = function toString() {\n\t return NativeDateWithToSource.toString();\n\t };\n\n\t // noinspection UnnecessaryLocalVariableJS\n\t /**\n\t * A normal Class constructor cannot be called without `new`, but Date can, so we need\n\t * to wrap it in a Proxy in order to ensure this functionality of Date is kept intact\n\t * @type {typeof ClockDate}\n\t */\n\t const ClockDateProxy = new Proxy(ClockDate, {\n\t // handler for [[Call]] invocations (i.e. not using `new`)\n\t apply() {\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 throw new TypeError(\n\t \"A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.\",\n\t );\n\t }\n\n\t return new NativeDate(ClockDate.clock.now).toString();\n\t },\n\t });\n\n\t return /** @type {typeof Date & { clock: Clock }} */ (\n\t /** @type {unknown} */ (ClockDateProxy)\n\t );\n\t }\n\n\t /**\n\t * Mirror Intl by default on our fake implementation\n\t *\n\t * Most of the properties are the original native ones,\n\t * but we need to take control of those that have a\n\t * dependency on the current clock.\n\t * @param {Clock} clock\n\t * @returns {IntlWithClock} the partly fake Intl implementation\n\t */\n\t function createIntl(clock) {\n\t /** @type {IntlWithClock} */\n\t const IntlWithClock = { clock: clock };\n\t /*\n\t * All properties of Intl are non-enumerable, so we need\n\t * to do a bit of work to get them out.\n\t */\n\t Object.getOwnPropertyNames(NativeIntl).forEach(\n\t (property) => (IntlWithClock[property] = NativeIntl[property]),\n\t );\n\n\t IntlWithClock.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](\n\t date || IntlWithClock.clock.now,\n\t );\n\t };\n\t });\n\n\t return formatter;\n\t };\n\n\t IntlWithClock.DateTimeFormat.prototype = Object.create(\n\t NativeIntl.DateTimeFormat.prototype,\n\t );\n\n\t IntlWithClock.DateTimeFormat.supportedLocalesOf =\n\t NativeIntl.DateTimeFormat.supportedLocalesOf;\n\n\t return IntlWithClock;\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function createTemporal(clock, getNanos) {\n\t const fakeNow = {\n\t instant() {\n\t return NativeTemporal.Instant.fromEpochNanoseconds(\n\t BigInt(clock.now) * 1_000_000n + BigInt(getNanos()),\n\t );\n\t },\n\t timeZoneId() {\n\t return NativeTemporal.Now.timeZoneId();\n\t },\n\t zonedDateTimeISO(timeZone) {\n\t const tz = timeZone ?? NativeTemporal.Now.timeZoneId();\n\t return fakeNow.instant().toZonedDateTimeISO(tz);\n\t },\n\t plainDateTimeISO(timeZone) {\n\t return fakeNow.zonedDateTimeISO(timeZone).toPlainDateTime();\n\t },\n\t plainDateISO(timeZone) {\n\t return fakeNow.zonedDateTimeISO(timeZone).toPlainDate();\n\t },\n\t plainTimeISO(timeZone) {\n\t return fakeNow.zonedDateTimeISO(timeZone).toPlainTime();\n\t },\n\t };\n\n\t const TemporalWithClock = Object.create(\n\t Object.getPrototypeOf(NativeTemporal),\n\t );\n\t [\n\t ...Object.getOwnPropertyNames(NativeTemporal),\n\t ...Object.getOwnPropertySymbols(NativeTemporal),\n\t ].forEach((prop) => {\n\t Object.defineProperty(\n\t TemporalWithClock,\n\t prop,\n\t Object.getOwnPropertyDescriptor(NativeTemporal, prop),\n\t );\n\t });\n\t // Temporal.Now is writable:false in the spec so we must use defineProperty\n\t Object.defineProperty(TemporalWithClock, \"Now\", {\n\t value: fakeNow,\n\t writable: true,\n\t enumerable: false,\n\t configurable: true,\n\t });\n\n\t return TemporalWithClock;\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 const wasNearLimit = clock.isNearInfiniteLimit;\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 if (!wasNearLimit) {\n\t resetIsNearInfiniteLimit(clock);\n\t }\n\t clock.jobs = [];\n\t }\n\n\t /**\n\t * A compact \"soonest timer first\" container.\n\t *\n\t * Think of this as a waiting room for scheduled callbacks where the next\n\t * callback to run is always kept at the front of the list. The internal\n\t * array is arranged so we can find, add, remove, and reorder timers\n\t * efficiently without sorting the whole list every time something changes.\n\t *\n\t * The important idea is not the data structure name, but the behavior:\n\t * the timer that should run next stays near the front, and when one timer\n\t * moves, the rest are shifted just enough to keep that promise true.\n\t */\n\t class TimerHeap {\n\t constructor() {\n\t this.timers = [];\n\t }\n\n\t /**\n\t * Look at the next timer without removing it.\n\t * This is the timer the clock would run first if time advanced now.\n\t * @returns {Timer}\n\t */\n\t peek() {\n\t return this.timers[0];\n\t }\n\n\t /**\n\t * Add a timer to the waiting room, then move it upward until it is in\n\t * the right place relative to the timers it should run before and after.\n\t * @param {Timer} timer\n\t */\n\t push(timer) {\n\t this.timers.push(timer);\n\t this.bubbleUp(this.timers.length - 1);\n\t }\n\n\t /**\n\t * Remove and return the next timer to run.\n\t *\n\t * We pull the front timer out, move the last timer into the empty spot,\n\t * and then shift that replacement down until the ordering is correct\n\t * again. That avoids rebuilding the whole list from scratch.\n\t * @returns {Timer|undefined}\n\t */\n\t pop() {\n\t if (this.timers.length === 0) {\n\t return undefined;\n\t }\n\t const first = this.timers[0];\n\t const last = this.timers.pop();\n\t if (this.timers.length > 0) {\n\t this.timers[0] = last;\n\t last.heapIndex = 0;\n\t this.bubbleDown(0);\n\t }\n\t delete first.heapIndex;\n\t return first;\n\t }\n\n\t /**\n\t * Remove a specific timer from the waiting room.\n\t *\n\t * The heap stores timers in a shape that lets us jump directly to the\n\t * timer's current position, replace it with the last timer, and then\n\t * move that replacement up or down until the ordering is correct again.\n\t * @param {Timer} timer\n\t * @returns {boolean}\n\t */\n\t remove(timer) {\n\t const index = timer.heapIndex;\n\t if (index === undefined || this.timers[index] !== timer) {\n\t return false;\n\t }\n\t const last = this.timers.pop();\n\t if (timer !== last) {\n\t this.timers[index] = last;\n\t last.heapIndex = index;\n\t if (compareTimers(last, timer) < 0) {\n\t this.bubbleUp(index);\n\t } else {\n\t this.bubbleDown(index);\n\t }\n\t }\n\t delete timer.heapIndex;\n\t return true;\n\t }\n\n\t /**\n\t * Move a timer toward the front until it is no longer \"earlier\" than\n\t * the timer above it.\n\t *\n\t * Conceptually, this is what happens when something newly scheduled\n\t * turns out to belong ahead of its parent in the waiting room. We keep\n\t * swapping it upward until it is no longer out of place.\n\t * @param {number} index\n\t */\n\t bubbleUp(index) {\n\t const timer = this.timers[index];\n\t let currentIndex = index;\n\t while (currentIndex > 0) {\n\t const parentIndex = Math.floor((currentIndex - 1) / 2);\n\t const parent = this.timers[parentIndex];\n\t if (compareTimers(timer, parent) < 0) {\n\t this.timers[currentIndex] = parent;\n\t parent.heapIndex = currentIndex;\n\t currentIndex = parentIndex;\n\t } else {\n\t break;\n\t }\n\t }\n\t this.timers[currentIndex] = timer;\n\t timer.heapIndex = currentIndex;\n\t }\n\n\t /**\n\t * Move a timer away from the front until the timer below it is no\n\t * longer supposed to run after it.\n\t *\n\t * This is the opposite of `bubbleUp`: when a timer at the front is\n\t * removed or moved, the replacement may be too far ahead, so we\n\t * repeatedly swap it downward with the best child until the waiting\n\t * room is ordered again.\n\t * @param {number} index\n\t */\n\t bubbleDown(index) {\n\t const timer = this.timers[index];\n\t let currentIndex = index;\n\t const halfLength = Math.floor(this.timers.length / 2);\n\t while (currentIndex < halfLength) {\n\t const leftIndex = currentIndex * 2 + 1;\n\t const rightIndex = leftIndex + 1;\n\t let bestChildIndex = leftIndex;\n\t let bestChild = this.timers[leftIndex];\n\n\t if (\n\t rightIndex < this.timers.length &&\n\t compareTimers(this.timers[rightIndex], bestChild) < 0\n\t ) {\n\t bestChildIndex = rightIndex;\n\t bestChild = this.timers[rightIndex];\n\t }\n\n\t if (compareTimers(bestChild, timer) < 0) {\n\t this.timers[currentIndex] = bestChild;\n\t bestChild.heapIndex = currentIndex;\n\t currentIndex = bestChildIndex;\n\t } else {\n\t break;\n\t }\n\t }\n\t this.timers[currentIndex] = timer;\n\t timer.heapIndex = currentIndex;\n\t }\n\t }\n\n\t /**\n\t * Ensure timer storage and heap stay in sync even if a clear path touches\n\t * timer state before anything has been scheduled.\n\t *\n\t * Why do we need two data structures to keep tabs on timers?\n\t * 1. Fast ID Lookup (clock.timers): This is a Map from timer IDs to their respective timer objects. It allows clearTimeout(id) and\n\t * clearInterval(id) to be $O(1)$ operations. Without this map, finding a specific timer in the heap to remove it would require a linear\n\t * $O(n)$ search, which would significantly degrade performance as the number of active timers grows.\n\t * 2. Efficient Scheduling (clock.timerHeap): This is a priority queue (min-heap) that keeps timers ordered by their execution time (callAt). It\n\t * allows the library to instantly find the next timer to run (peek() in $O(1)$) and efficiently update the schedule when timers are added or\n\t * removed ($O(\\log n)$).\n\t *\n\t * In short: clock.timers provides fast access by ID, while clock.timerHeap provides fast access by Time. Removing either one would make common\n\t * operations (like clearing or finding the next timer) much slower.\n\t * @param {Clock} clock\n\t */\n\t function ensureTimerState(clock) {\n\t if (!clock.timers) {\n\t clock.timers = new Map();\n\t clock.timerHeap = new TimerHeap();\n\t }\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} id\n\t * @returns {boolean}\n\t */\n\t function hasTimer(clock, id) {\n\t return clock.timers ? clock.timers.has(id) : false;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} id\n\t * @returns {Timer}\n\t */\n\t function getTimer(clock, id) {\n\t return clock.timers ? clock.timers.get(id) : undefined;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {Timer} timer\n\t */\n\t function setTimer(clock, timer) {\n\t ensureTimerState(clock);\n\t clock.timers.set(timer.id, timer);\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {number} id\n\t * @returns {boolean}\n\t */\n\t function deleteTimer(clock, id) {\n\t return clock.timers ? clock.timers.delete(id) : false;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {(timer: Timer) => void} callback\n\t */\n\t function forEachActiveTimer(clock, callback) {\n\t if (!clock.timers) {\n\t return;\n\t }\n\n\t for (const timer of clock.timers.values()) {\n\t callback(timer);\n\t }\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t */\n\t function rebuildTimerHeap(clock) {\n\t clock.timerHeap = new TimerHeap();\n\t forEachActiveTimer(clock, (timer) => {\n\t clock.timerHeap.push(timer);\n\t });\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @param {TimerInitialProps} timer\n\t * @returns {TimerId} 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 (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\n\t if (clock.isNearInfiniteLimit) {\n\t timer.error = new Error();\n\t }\n\n\t timer.type = timer.immediate ? \"Immediate\" : \"Timeout\";\n\n\t if (Object.prototype.hasOwnProperty.call(timer, \"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 (Object.prototype.hasOwnProperty.call(timer, \"interval\")) {\n\t timer.type = \"Interval\";\n\t timer.interval = timer.interval > maxTimeout ? 1 : timer.interval;\n\t }\n\n\t if (Object.prototype.hasOwnProperty.call(timer, \"animation\")) {\n\t timer.type = \"AnimationFrame\";\n\t timer.animation = true;\n\t }\n\n\t if (\n\t Object.prototype.hasOwnProperty.call(timer, \"requestIdleCallback\")\n\t ) {\n\t // mark timer as IdleCallback type if it has no delay, otherwise it'd be of type timeout\n\t // this way we are able to sort such that the timer only gets called when there's truly no pending task to run\n\t if (!timer.delay) {\n\t timer.type = \"IdleCallback\";\n\t }\n\t timer.requestIdleCallback = true;\n\t }\n\n\t ensureTimerState(clock);\n\n\t while (hasTimer(clock, uniqueTimerId)) {\n\t uniqueTimerId++;\n\t if (uniqueTimerId >= Number.MAX_SAFE_INTEGER) {\n\t uniqueTimerId = idCounterStart;\n\t }\n\t }\n\n\t timer.id = uniqueTimerId++;\n\t if (uniqueTimerId >= Number.MAX_SAFE_INTEGER) {\n\t uniqueTimerId = idCounterStart;\n\t }\n\n\t timer.order = uniqueTimerOrder++;\n\t timer.createdAt = clock.now;\n\t timer.callAt =\n\t clock.now +\n\t (parseInt(String(timer.delay)) || (clock.duringTick ? 1 : 0));\n\n\t setTimer(clock, timer);\n\t clock.timerHeap.push(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 this;\n\t },\n\t unref: function () {\n\t this.refed = false;\n\t return this;\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(String(timer.delay)) ||\n\t (clock.duringTick ? 1 : 0));\n\n\t clock.timerHeap.remove(timer);\n\t timer.order = uniqueTimerOrder++;\n\t setTimer(clock, timer);\n\t clock.timerHeap.push(timer);\n\n\t return this;\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 comparator\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 IdleCallback timers to the bottom when scheduled for the same time\n\t if (a.type === \"IdleCallback\" && b.type !== \"IdleCallback\") {\n\t return 1;\n\t }\n\t if (a.type !== \"IdleCallback\" && b.type === \"IdleCallback\") {\n\t return -1;\n\t }\n\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 if (a.order < b.order) {\n\t return -1;\n\t }\n\t if (a.order > b.order) {\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 return 0;\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 if (!clock.timerHeap) {\n\t return null;\n\t }\n\n\t const timers = clock.timerHeap.timers;\n\t if (timers.length === 1 && timers[0].requestIdleCallback) {\n\t return timers[0];\n\t }\n\n\t const first = clock.timerHeap.peek();\n\t if (first && inRange(from, to, first)) {\n\t return first;\n\t }\n\n\t /**\n\t * @type {?Timer}\n\t */\n\t let timer = null;\n\n\t for (let i = 0; i < timers.length; i++) {\n\t if (\n\t inRange(from, to, timers[i]) &&\n\t (!timer || compareTimers(timer, timers[i]) === 1)\n\t ) {\n\t timer = timers[i];\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 if (!clock.timerHeap) {\n\t return null;\n\t }\n\t return clock.timerHeap.peek() || null;\n\t }\n\n\t /**\n\t * @param {Clock} clock\n\t * @returns {Timer}\n\t */\n\t function lastTimer(clock) {\n\t if (!clock.timerHeap) {\n\t return null;\n\t }\n\t const timers = clock.timerHeap.timers;\n\t let timer = null;\n\n\t for (let i = 0; i < timers.length; i++) {\n\t if (!timer || compareTimers(timer, timers[i]) === -1) {\n\t timer = timers[i];\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.timerHeap.remove(timer);\n\t timer.callAt += timer.interval;\n\t timer.order = uniqueTimerOrder++;\n\t if (clock.isNearInfiniteLimit) {\n\t timer.error = new Error();\n\t }\n\t clock.timerHeap.push(timer);\n\t } else {\n\t deleteTimer(clock, timer.id);\n\t clock.timerHeap.remove(timer);\n\t }\n\n\t if (typeof timer.func === \"function\") {\n\t timer.func.apply(null, timer.args);\n\t }\n\t }\n\n\t /**\n\t * Gets clear handler name for a given timer type\n\t * @param {string} ttype\n\t * @returns {string}\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 * @param {string} ttype\n\t * @returns {string}\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 * @returns {(msg: string) => void}\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 {TimerId} timerId\n\t * @param {string} ttype\n\t * @returns {void}\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 // 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\n\t // Include the stacktrace, excluding the 'error' line\n\t const stackTrace = new Error().stack\n\t .split(\"\\n\")\n\t .slice(1)\n\t .join(\"\\n\");\n\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${stackTrace}`,\n\t );\n\t }\n\n\t if (hasTimer(clock, id)) {\n\t // check that the ID matches a timer of the correct type\n\t const timer = getTimer(clock, 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 deleteTimer(clock, id);\n\t clock.timerHeap.remove(timer);\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 {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].hasOwnProperty = 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 target[method] = clock[method];\n\t } else if (method === \"Intl\") {\n\t target[method] = clock[method];\n\t } else if (method === \"Temporal\") {\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 /** @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 (isPresent.setImmediate) {\n\t timers.setImmediate = _global.setImmediate;\n\t }\n\n\t if (isPresent.clearImmediate) {\n\t timers.clearImmediate = _global.clearImmediate;\n\t }\n\n\t if (isPresent.hrtime) {\n\t timers.hrtime = _global.process.hrtime;\n\t }\n\n\t if (isPresent.nextTick) {\n\t timers.nextTick = _global.process.nextTick;\n\t }\n\n\t if (isPresent.performance) {\n\t timers.performance = _global.performance;\n\t }\n\n\t if (isPresent.requestAnimationFrame) {\n\t timers.requestAnimationFrame = _global.requestAnimationFrame;\n\t }\n\n\t if (isPresent.queueMicrotask) {\n\t timers.queueMicrotask = _global.queueMicrotask;\n\t }\n\n\t if (isPresent.cancelAnimationFrame) {\n\t timers.cancelAnimationFrame = _global.cancelAnimationFrame;\n\t }\n\n\t if (isPresent.requestIdleCallback) {\n\t timers.requestIdleCallback = _global.requestIdleCallback;\n\t }\n\n\t if (isPresent.cancelIdleCallback) {\n\t timers.cancelIdleCallback = _global.cancelIdleCallback;\n\t }\n\n\t if (isPresent.Intl) {\n\t timers.Intl = NativeIntl;\n\t }\n\n\t if (isPresent.Temporal) {\n\t timers.Temporal = NativeTemporal;\n\t }\n\n\t const originalSetTimeout = _global.setImmediate || _global.setTimeout;\n\t const originalClearInterval = _global.clearInterval;\n\t const originalSetInterval = _global.setInterval;\n\n\t /**\n\t * @param {Date|number|TemporalTimelike} [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 /** @type {number} */\n\t // eslint-disable-next-line no-param-reassign\n\t start = Math.floor(getEpoch(start));\n\t const startTimestamp = start;\n\t // eslint-disable-next-line no-param-reassign\n\t loopLimit = loopLimit || 1000;\n\t /** @type {number} */\n\t let nanos = 0;\n\t let uninstalled = false;\n\t /** @type {number[]} */\n\t const adjustedSystemTime = [0, 0]; // [millis, nanoremainder]\n\n\t /** @type {Clock} */\n\t const clock = /** @type {Clock} */ ({\n\t now: start,\n\t Date: createDate(),\n\t loopLimit: loopLimit,\n\t isNearInfiniteLimit: false,\n\t tickMode: { mode: \"manual\", counter: 0, delta: undefined },\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 - startTimestamp) % 16);\n\t }\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function hrtime(prev) {\n\t const millisSinceStart =\n\t clock.now - adjustedSystemTime[0] - startTimestamp;\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 /**\n\t * A high resolution timestamp in milliseconds.\n\t * @typedef {number} DOMHighResTimeStamp\n\t */\n\n\t /**\n\t * performance.now()\n\t * @returns {DOMHighResTimeStamp}\n\t */\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 (isPresent.hrtimeBigint) {\n\t hrtime.bigint = function () {\n\t const parts = hrtime();\n\t return BigInt(parts[0]) * BigInt(1e9) + BigInt(parts[1]);\n\t };\n\t }\n\n\t if (isPresent.Intl) {\n\t clock.Intl = createIntl(clock);\n\t clock.Intl.clock = clock;\n\t }\n\n\t if (isPresent.Temporal) {\n\t clock.Temporal = createTemporal(clock, () => nanos);\n\t }\n\n\t /**\n\t * @param {SetTickModeConfig} tickModeConfig - The new configuration for how the clock should tick.\n\t */\n\t clock.setTickMode = function (tickModeConfig) {\n\t const { mode: newMode, delta: newDelta } =\n\t /** @type {SetTickModeConfig} */ (tickModeConfig);\n\t const { mode: oldMode, delta: oldDelta } = clock.tickMode;\n\t if (newMode === oldMode && newDelta === oldDelta) {\n\t return;\n\t }\n\n\t if (oldMode === \"interval\") {\n\t originalClearInterval(clock.attachedInterval);\n\t }\n\n\t clock.tickMode = {\n\t counter: clock.tickMode.counter + 1,\n\t mode: newMode,\n\t delta: newDelta,\n\t };\n\n\t if (newMode === \"nextAsync\") {\n\t advanceUntilModeChanges();\n\t } else if (newMode === \"interval\") {\n\t createIntervalTick(clock, newDelta || 20);\n\t }\n\t };\n\n\t /**\n\t * Keeps advancing the native event loop until the tick mode changes.\n\t * @returns {Promise<void>}\n\t */\n\t async function advanceUntilModeChanges() {\n\t /**\n\t * Waits for one native macrotask and then one microtask turn.\n\t * @returns {Promise<void>}\n\t */\n\t async function newMacrotask() {\n\t // MessageChannel ensures that setTimeout is not throttled to 4ms.\n\t // https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#reasons_for_delays_longer_than_specified\n\t // https://stackblitz.com/edit/stackblitz-starters-qtlpcc\n\t const channel = new MessageChannel();\n\t await new Promise((resolve) => {\n\t channel.port1.onmessage = () => {\n\t resolve(undefined);\n\t channel.port1.close();\n\t };\n\t channel.port2.postMessage(undefined);\n\t });\n\t channel.port1.close();\n\t channel.port2.close();\n\t // setTimeout ensures microtask queue is emptied\n\t await new Promise((resolve) => {\n\t originalSetTimeout(resolve);\n\t });\n\t }\n\n\t const { counter } = clock.tickMode;\n\t while (clock.tickMode.counter === counter) {\n\t await newMacrotask();\n\t if (clock.tickMode.counter !== counter) {\n\t return;\n\t }\n\t clock.next();\n\t }\n\t }\n\n\t /**\n\t * Temporarily pauses nextAsync auto-ticking while an async operation runs.\n\t * @param {Promise<unknown>} promise\n\t * @returns {Promise<unknown>}\n\t */\n\t function pauseAutoTickUntilFinished(promise) {\n\t if (clock.tickMode.mode !== \"nextAsync\") {\n\t return promise;\n\t }\n\t clock.setTickMode({ mode: \"manual\" });\n\t return promise.finally(() => {\n\t if (!uninstalled) {\n\t clock.setTickMode({ mode: \"nextAsync\" });\n\t }\n\t });\n\t }\n\n\t /**\n\t * Returns the remaining time in the current idle window.\n\t * @returns {number}\n\t */\n\t function getTimeToNextIdlePeriod() {\n\t let timeToNextIdlePeriod = 0;\n\n\t if (clock.countTimers() > 0) {\n\t timeToNextIdlePeriod = 50; // const for now\n\t }\n\n\t return timeToNextIdlePeriod;\n\t }\n\n\t clock.requestIdleCallback = function requestIdleCallback(\n\t func,\n\t { timeout } = /** @type {{ timeout?: number }} */ ({}),\n\t ) {\n\t /**\n\t * @type {IdleDeadline}\n\t */\n\t const idleDeadline = {\n\t didTimeout: true,\n\t timeRemaining: getTimeToNextIdlePeriod,\n\t };\n\n\t const result = addTimer(clock, {\n\t func: func,\n\t args: [idleDeadline],\n\t delay: timeout,\n\t requestIdleCallback: 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: clock.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(String(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 (isPresent.setImmediate) {\n\t clock.setImmediate = /** @type {SetImmediate} */ (\n\t 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\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 (clock.timerHeap ? clock.timerHeap.timers.length : 0) +\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 //eslint-disable-next-line jsdoc/require-jsdoc\n\t function durationToMs(duration) {\n\t // relativeTo uses the real system timezone — fake-timers fakes time, not place.\n\t // Calendar-unit durations (months, years) will resolve DST/length using the host tz.\n\t const relativeTo = NativeTemporal.Instant.fromEpochMilliseconds(\n\t clock.now,\n\t ).toZonedDateTimeISO(NativeTemporal.Now.timeZoneId());\n\t return duration.total({ unit: \"millisecond\", relativeTo });\n\t }\n\n\t /**\n\t * @param {number|string|TemporalDuration} tickValue\n\t * @returns {number} milliseconds as a float\n\t */\n\t function tickValueToMs(tickValue) {\n\t if (typeof tickValue === \"number\") {\n\t return tickValue;\n\t }\n\t if (\n\t isPresent.Temporal &&\n\t tickValue !== null &&\n\t typeof tickValue === \"object\" &&\n\t typeof (/** @type {TemporalDuration} */ (tickValue).total) ===\n\t \"function\"\n\t ) {\n\t return durationToMs(\n\t /** @type {TemporalDuration} */ (tickValue),\n\t );\n\t }\n\t return parseTime(/** @type {string} */ (tickValue));\n\t }\n\n\t /**\n\t * @param {number|string|TemporalDuration} tickValue milliseconds, a string parseable by parseTime, or a Temporal.Duration\n\t * @returns {ClockState} a mutable state object for the tick execution\n\t */\n\t function createTickState(tickValue) {\n\t const msFloat = tickValueToMs(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 return /** @type {ClockState} */ ({\n\t msFloat: msFloat,\n\t ms: ms,\n\t nanosTotal: nanosTotal,\n\t tickFrom: clock.now,\n\t tickTo: tickTo,\n\t previous: clock.now,\n\t timer: null,\n\t firstException: null,\n\t oldNow: null,\n\t });\n\t }\n\n\t /**\n\t * @param {ClockState} state mutable tick state\n\t * @param {number} oldNow the clock.now before some action\n\t * @param {object} [options] compensation options\n\t * @param {boolean} [options.includePrevious] whether to also update state.previous\n\t */\n\t function applyClockChangeCompensation(state, oldNow, options) {\n\t if (oldNow !== clock.now) {\n\t const difference = clock.now - oldNow;\n\t state.tickFrom += difference;\n\t state.tickTo += difference;\n\t if (options && options.includePrevious) {\n\t state.previous += difference;\n\t }\n\t }\n\t }\n\n\t /**\n\t * @param {ClockState} state mutable tick state\n\t */\n\t function runInitialJobs(state) {\n\t state.oldNow = clock.now;\n\t runJobs(clock);\n\t applyClockChangeCompensation(state, state.oldNow);\n\t }\n\n\t /**\n\t * @param {ClockState} state mutable tick state\n\t */\n\t function runPostLoopJobs(state) {\n\t state.oldNow = clock.now;\n\t runJobs(clock);\n\t applyClockChangeCompensation(state, state.oldNow);\n\t }\n\n\t /**\n\t * @param {ClockState} state mutable tick state\n\t */\n\t function selectNextTimerInRange(state) {\n\t state.timer = firstTimerInRange(\n\t clock,\n\t state.previous,\n\t state.tickTo,\n\t );\n\t state.previous = state.tickFrom;\n\t }\n\n\t /**\n\t * @param {ClockState} state mutable tick state\n\t * @param {boolean} isAsync whether this is an async tick\n\t * @param {FakeTimersFunction} nextPromiseTick callback for async promise settlement\n\t * @param {FakeTimersFunction} compensationCheck callback for clock change compensation\n\t * @returns {boolean} whether an early return was triggered (async mode)\n\t */\n\t function runTimersInRange(\n\t state,\n\t isAsync,\n\t nextPromiseTick,\n\t compensationCheck,\n\t ) {\n\t state.timer = firstTimerInRange(\n\t clock,\n\t state.tickFrom,\n\t state.tickTo,\n\t );\n\n\t while (state.timer && state.tickFrom <= state.tickTo) {\n\t if (hasTimer(clock, state.timer.id)) {\n\t state.tickFrom = state.timer.callAt;\n\t clock.now = state.timer.callAt;\n\t state.oldNow = clock.now;\n\t try {\n\t runJobs(clock);\n\t callTimer(clock, state.timer);\n\t } catch (e) {\n\t state.firstException = state.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 true;\n\t }\n\n\t compensationCheck();\n\t }\n\n\t selectNextTimerInRange(state);\n\t }\n\t return false;\n\t }\n\n\t /**\n\t * @param {ClockState} state mutable tick state\n\t * @param {boolean} isAsync whether this is an async tick\n\t * @param {FakeTimersFunction} resolve promise resolve function\n\t * @returns {number|undefined} the new clock.now or nothing for async\n\t */\n\t function finalizeTick(state, isAsync, resolve) {\n\t // corner case: during runJobs new timers were scheduled which could be in the range [clock.now, tickTo]\n\t state.timer = firstTimerInRange(\n\t clock,\n\t state.tickFrom,\n\t state.tickTo,\n\t );\n\t if (state.timer) {\n\t try {\n\t clock.tick(state.tickTo - clock.now); // do it all again - for the remainder of the requested range\n\t } catch (e) {\n\t state.firstException = state.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 = state.tickTo;\n\n\t // update nanos\n\t nanos = state.nanosTotal;\n\t }\n\t if (state.firstException) {\n\t throw state.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 /**\n\t * @param {number|string|TemporalDuration} tickValue milliseconds or a string parseable by parseTime\n\t * @param {boolean} isAsync whether this is an async tick\n\t * @param {FakeTimersFunction} [resolve] promise resolve function\n\t * @param {FakeTimersFunction} [reject] promise reject function\n\t * @returns {number|undefined} the new clock.now or nothing for async\n\t */\n\t function doTick(tickValue, isAsync, resolve, reject) {\n\t /** @type {ClockState} */\n\t const state = createTickState(tickValue);\n\n\t nanos = state.nanosTotal;\n\t clock.duringTick = true;\n\n\t runInitialJobs(state);\n\n\t const compensationCheck = function () {\n\t applyClockChangeCompensation(state, state.oldNow, {\n\t includePrevious: true,\n\t });\n\t };\n\n\t const nextPromiseTick =\n\t isAsync &&\n\t function () {\n\t try {\n\t compensationCheck();\n\t selectNextTimerInRange(state);\n\t doTickInner();\n\t } catch (e) {\n\t reject(e);\n\t }\n\t };\n\n\t //eslint-disable-next-line jsdoc/require-jsdoc\n\t function doTickInner() {\n\t if (\n\t runTimersInRange(\n\t state,\n\t isAsync,\n\t nextPromiseTick,\n\t compensationCheck,\n\t )\n\t ) {\n\t return;\n\t }\n\n\t runPostLoopJobs(state);\n\t clock.duringTick = false;\n\n\t return finalizeTick(state, isAsync, resolve);\n\t }\n\n\t return doTickInner();\n\t }\n\n\t /**\n\t * @param {string|number|TemporalDuration} tickValue number of milliseconds, a human-readable value like \"01:11:15\", or a Temporal.Duration\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 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 /**\n\t * @param {(resolve: (value: unknown) => void, reject: (reason?: unknown) => void) => void} callback function to run inside native setTimeout\n\t * @returns {Promise}\n\t */\n\t function runAsyncWithNativeTimeout(callback) {\n\t return pauseAutoTickUntilFinished(\n\t new _global.Promise(function (resolve, reject) {\n\t originalSetTimeout(function () {\n\t try {\n\t callback(resolve, reject);\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 runJobs(clock);\n\t for (let i = 0; i < clock.loopLimit; i++) {\n\t if (!clock.timers) {\n\t resetIsNearInfiniteLimit(clock);\n\t return clock.now;\n\t }\n\n\t const numTimers = clock.timerHeap.timers.length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit(clock);\n\t return clock.now;\n\t }\n\n\t checkIsNearInfiniteLimit(clock, i);\n\t clock.next();\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 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 /**\n\t * @param {string|number|TemporalDuration} tickValue number of milliseconds, a human-readable value like \"01:11:15\", or a Temporal.Duration\n\t * @returns {Promise}\n\t */\n\t clock.tickAsync = function tickAsync(tickValue) {\n\t return runAsyncWithNativeTimeout(function (resolve, reject) {\n\t doTick(tickValue, true, resolve, reject);\n\t });\n\t };\n\n\t clock.nextAsync = function nextAsync() {\n\t return runAsyncWithNativeTimeout(function (resolve, reject) {\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 });\n\t };\n\n\t clock.runAllAsync = function runAllAsync() {\n\t let i = 0;\n\t /**\n\t * @param {(value: unknown) => void} resolve promise resolve function\n\t * @param {(reason?: unknown) => void} reject promise reject function\n\t */\n\t function doRun(resolve, reject) {\n\t try {\n\t runJobs(clock);\n\n\t let numTimers;\n\t if (i < clock.loopLimit) {\n\t if (!clock.timerHeap) {\n\t resetIsNearInfiniteLimit(clock);\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t numTimers = clock.timerHeap.timers.length;\n\t if (numTimers === 0) {\n\t resetIsNearInfiniteLimit(clock);\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t checkIsNearInfiniteLimit(clock, i);\n\t clock.next();\n\n\t i++;\n\n\t originalSetTimeout(function () {\n\t doRun(resolve, reject);\n\t });\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\n\t return runAsyncWithNativeTimeout(function (resolve, reject) {\n\t doRun(resolve, reject);\n\t });\n\t };\n\n\t clock.runToLastAsync = function runToLastAsync() {\n\t return runAsyncWithNativeTimeout(function (resolve) {\n\t const timer = lastTimer(clock);\n\t if (!timer) {\n\t runJobs(clock);\n\t resolve(clock.now);\n\t return;\n\t }\n\n\t resolve(clock.tickAsync(timer.callAt - clock.now));\n\t });\n\t };\n\t }\n\n\t clock.reset = function reset() {\n\t nanos = 0;\n\t clock.timers = new Map();\n\t clock.timerHeap = new TimerHeap();\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\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 forEachActiveTimer(clock, (timer) => {\n\t timer.createdAt += difference;\n\t timer.callAt += difference;\n\t });\n\t };\n\n\t /**\n\t * @param {string|number|TemporalDuration} tickValue number of milliseconds, a human-readable value like \"01:11:15\", or a Temporal.Duration\n\t * @returns {number} the new `now` value\n\t */\n\t clock.jump = function jump(tickValue) {\n\t const msFloat = tickValueToMs(tickValue);\n\t const ms = Math.floor(msFloat);\n\n\t forEachActiveTimer(clock, (timer) => {\n\t if (clock.now + ms > timer.callAt) {\n\t timer.callAt = clock.now + ms;\n\t }\n\t });\n\n\t // Rebuild heap as order might have changed\n\t rebuildTimerHeap(clock);\n\n\t clock.tick(ms);\n\t return clock.now;\n\t };\n\n\t if (isPresent.performance) {\n\t clock.performance = Object.create(null);\n\t clock.performance.now = fakePerformanceNow;\n\t }\n\n\t if (isPresent.hrtime) {\n\t clock.hrtime = hrtime;\n\t }\n\n\t /**\n\t * @returns {Timer[]}\n\t */\n\t clock.uninstall = function () {\n\t uninstalled = true;\n\t clock.setTickMode({ mode: \"manual\" });\n\n\t if (clock.methods) {\n\t const installedHrTime = \"_hrtime\";\n\t const installedNextTick = \"_nextTick\";\n\t let method, i, l;\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 =\n\t 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 (clock[method] && clock[method].hasOwnProperty) {\n\t _global[method] = clock[`_${method}`];\n\t } else {\n\t try {\n\t delete _global[method];\n\t } catch {\n\t /* eslint no-empty: \"off\" */\n\t }\n\t }\n\t }\n\t if (clock.timersModuleMethods !== undefined) {\n\t for (\n\t let j = 0;\n\t j < clock.timersModuleMethods.length;\n\t j++\n\t ) {\n\t const entry = clock.timersModuleMethods[j];\n\t timersModule[entry.methodName] = entry.original;\n\t }\n\t }\n\t if (clock.timersPromisesModuleMethods !== undefined) {\n\t for (\n\t let j = 0;\n\t j < clock.timersPromisesModuleMethods.length;\n\t j++\n\t ) {\n\t const entry = clock.timersPromisesModuleMethods[j];\n\t timersPromisesModule[entry.methodName] =\n\t entry.original;\n\t }\n\t }\n\t }\n\n\t // Prevent multiple executions which will completely remove these props\n\t clock.methods = [];\n\t }\n\n\t if (clock.abortListenerMap) {\n\t for (const [\n\t listener,\n\t signal,\n\t ] of clock.abortListenerMap.entries()) {\n\t signal.removeEventListener(\"abort\", listener);\n\t clock.abortListenerMap.delete(listener);\n\t }\n\t }\n\n\t // return pending timers, to enable checking what timers remained on uninstall\n\t if (!clock.timerHeap) {\n\t return [];\n\t }\n\t return clock.timerHeap.timers.slice();\n\t };\n\n\t return clock;\n\t }\n\n\t /**\n\t * Starts the interval used to advance the clock automatically.\n\t * @param {Clock} clock\n\t * @param {number} delta\n\t */\n\t function createIntervalTick(clock, delta) {\n\t const intervalTick = doIntervalTick.bind(null, clock, delta);\n\t const intervalId = originalSetInterval(intervalTick, delta);\n\t clock.attachedInterval = intervalId;\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 const hasToFake = Object.prototype.hasOwnProperty.call(\n\t config,\n\t \"toFake\",\n\t );\n\t const hasToNotFake = Object.prototype.hasOwnProperty.call(\n\t config,\n\t \"toNotFake\",\n\t );\n\n\t if (hasToFake && hasToNotFake) {\n\t throw new TypeError(\n\t \"config.toFake and config.toNotFake cannot be used together\",\n\t );\n\t }\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 /**\n\t * Handles a missing timer or API name during installation.\n\t * @param {string} timer - the name of the missing timer or object\n\t */\n\t function handleMissingTimer(timer) {\n\t if (config.ignoreMissingTimers) {\n\t return;\n\t }\n\n\t throw new ReferenceError(\n\t `non-existent timers and/or objects cannot be faked: '${timer}'`,\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.abortListenerMap = new Map();\n\n\t if (hasToFake) {\n\t clock.methods = /** @type {FakeMethod[]} */ (config.toFake || []);\n\t if (clock.methods.length === 0) {\n\t clock.methods = /** @type {FakeMethod[]} */ (\n\t Object.keys(timers)\n\t );\n\t }\n\t } else if (hasToNotFake) {\n\t const methodsToNotFake = /** @type {string[]} */ (\n\t config.toNotFake || []\n\t );\n\t clock.methods = /** @type {FakeMethod[]} */ (\n\t Object.keys(timers).filter(\n\t (method) => !methodsToNotFake.includes(method),\n\t )\n\t );\n\t } else {\n\t clock.methods = /** @type {FakeMethod[]} */ (Object.keys(timers));\n\t }\n\n\t if (config.shouldAdvanceTime === true) {\n\t clock.setTickMode({\n\t mode: \"interval\",\n\t delta: config.advanceTimeDelta,\n\t });\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 // ensure `mark` returns a value that is valid\n\t clock.performance.mark = (name) =>\n\t new FakePerformanceEntry(name, \"mark\", 0, 0);\n\t clock.performance.measure = (name) =>\n\t new FakePerformanceEntry(name, \"measure\", 0, 100);\n\t // `timeOrigin` should return the time of when the Window session started\n\t // (or the Worker was installed)\n\t clock.performance.timeOrigin = getEpoch(config.now);\n\t } else if ((config.toFake || []).includes(\"performance\")) {\n\t handleMissingTimer(\"performance\");\n\t }\n\t }\n\t if (_global === globalObject && timersModule) {\n\t clock.timersModuleMethods = [];\n\t }\n\t if (_global === globalObject && timersPromisesModule) {\n\t clock.timersPromisesModuleMethods = [];\n\t }\n\t for (i = 0, l = clock.methods.length; i < l; i++) {\n\t const nameOfMethodToReplace = clock.methods[i];\n\n\t if (!isPresent[nameOfMethodToReplace]) {\n\t handleMissingTimer(nameOfMethodToReplace);\n\t // eslint-disable-next-line\n\t continue;\n\t }\n\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 if (clock.timersPromisesModuleMethods !== undefined) {\n\t if (nameOfMethodToReplace === \"setTimeout\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setTimeout\",\n\t original: timersPromisesModule.setTimeout,\n\t });\n\n\t timersPromisesModule.setTimeout = (\n\t delay,\n\t value,\n\t options = {},\n\t ) =>\n\t new Promise((resolve, reject) => {\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t // This is safe, there is no code path that leads to this function\n\t // being invoked before handle has been assigned.\n\t // eslint-disable-next-line no-use-before-define\n\t clock.clearTimeout(handle);\n\t reject(options.signal.reason);\n\t };\n\n\t const handle = clock.setTimeout(() => {\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t resolve(value);\n\t }, delay);\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t abort();\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\t });\n\t } else if (nameOfMethodToReplace === \"setImmediate\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setImmediate\",\n\t original: timersPromisesModule.setImmediate,\n\t });\n\n\t timersPromisesModule.setImmediate = (value, options = {}) =>\n\t new Promise((resolve, reject) => {\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t // This is safe, there is no code path that leads to this function\n\t // being invoked before handle has been assigned.\n\t // eslint-disable-next-line no-use-before-define\n\t clock.clearImmediate(handle);\n\t reject(options.signal.reason);\n\t };\n\n\t const handle = clock.setImmediate(() => {\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t resolve(value);\n\t });\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t abort();\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\t });\n\t } else if (nameOfMethodToReplace === \"setInterval\") {\n\t clock.timersPromisesModuleMethods.push({\n\t methodName: \"setInterval\",\n\t original: timersPromisesModule.setInterval,\n\t });\n\n\t timersPromisesModule.setInterval = (\n\t delay,\n\t value,\n\t options = {},\n\t ) => ({\n\t [Symbol.asyncIterator]: () => {\n\t const createResolvable = () => {\n\t let resolve, reject;\n\t const promise =\n\t /** @type {Promise<unknown> & { resolve: (value: unknown) => void; reject: (reason: unknown) => void }} */ (\n\t new Promise((res, rej) => {\n\t resolve = res;\n\t reject = rej;\n\t })\n\t );\n\t promise.resolve = resolve;\n\t promise.reject = reject;\n\t return promise;\n\t };\n\n\t let done = false;\n\t let hasThrown = false;\n\t let returnCall;\n\t let nextAvailable = 0;\n\t const nextQueue = [];\n\n\t const handle = clock.setInterval(() => {\n\t if (nextQueue.length > 0) {\n\t nextQueue.shift().resolve();\n\t } else {\n\t nextAvailable++;\n\t }\n\t }, delay);\n\n\t const abort = () => {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\n\t clock.clearInterval(handle);\n\t done = true;\n\t for (const resolvable of nextQueue) {\n\t resolvable.resolve();\n\t }\n\t };\n\n\t if (options.signal) {\n\t if (options.signal.aborted) {\n\t done = true;\n\t } else {\n\t options.signal.addEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.set(\n\t abort,\n\t options.signal,\n\t );\n\t }\n\t }\n\n\t return {\n\t next: async () => {\n\t if (options.signal?.aborted && !hasThrown) {\n\t hasThrown = true;\n\t throw options.signal.reason;\n\t }\n\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t if (nextAvailable > 0) {\n\t nextAvailable--;\n\t return { done: false, value: value };\n\t }\n\n\t const resolvable = createResolvable();\n\t nextQueue.push(resolvable);\n\n\t await resolvable;\n\n\t if (returnCall && nextQueue.length === 0) {\n\t returnCall.resolve();\n\t }\n\n\t if (options.signal?.aborted && !hasThrown) {\n\t hasThrown = true;\n\t throw options.signal.reason;\n\t }\n\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t return { done: false, value: value };\n\t },\n\t return: async () => {\n\t if (done) {\n\t return { done: true, value: undefined };\n\t }\n\n\t if (nextQueue.length > 0) {\n\t returnCall = createResolvable();\n\t await returnCall;\n\t }\n\n\t clock.clearInterval(handle);\n\t done = true;\n\n\t if (options.signal) {\n\t options.signal.removeEventListener(\n\t \"abort\",\n\t abort,\n\t );\n\t clock.abortListenerMap.delete(abort);\n\t }\n\n\t return { done: true, value: undefined };\n\t },\n\t };\n\t },\n\t });\n\t }\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/** @type {FakeTimers} */\n\tconst defaultImplementation = withGlobal(globalObject);\n\n\tfakeTimersSrc.timers = defaultImplementation.timers;\n\tfakeTimersSrc.createClock = defaultImplementation.createClock;\n\tfakeTimersSrc.install = defaultImplementation.install;\n\t/** @type {WithGlobal} */\n\tfakeTimersSrc.withGlobal = withGlobal;\n\treturn fakeTimersSrc;\n}\n\nvar fakeTimersSrcExports = requireFakeTimersSrc();\n\nconst RealDate = globalThis.Date;\nclass FakeTimers {\n\t_global;\n\t_clock;\n\t// | _fakingTime | _fakingDate |\n\t// +-------------+-------------+\n\t// | false | falsy | initial\n\t// | false | truthy | vi.setSystemTime called first (for mocking only Date without fake timers)\n\t// | true | falsy | vi.useFakeTimers called first\n\t// | true | truthy | unreachable\n\t_fakingTime;\n\t_fakingDate;\n\t_fakeTimers;\n\t_userConfig;\n\t_now = RealDate.now;\n\tconstructor({ global, config }) {\n\t\tthis._userConfig = config;\n\t\tthis._fakingDate = null;\n\t\tthis._fakingTime = false;\n\t\tthis._fakeTimers = fakeTimersSrcExports.withGlobal(global);\n\t\tthis._global = global;\n\t}\n\tclearAllTimers() {\n\t\tif (this._fakingTime) this._clock.reset();\n\t}\n\tdispose() {\n\t\tthis.useRealTimers();\n\t}\n\trunAllTimers() {\n\t\tif (this._checkFakeTimers()) this._clock.runAll();\n\t}\n\tasync runAllTimersAsync() {\n\t\tif (this._checkFakeTimers()) await this._clock.runAllAsync();\n\t}\n\trunOnlyPendingTimers() {\n\t\tif (this._checkFakeTimers()) this._clock.runToLast();\n\t}\n\tasync runOnlyPendingTimersAsync() {\n\t\tif (this._checkFakeTimers()) await this._clock.runToLastAsync();\n\t}\n\tadvanceTimersToNextTimer(steps = 1) {\n\t\tif (this._checkFakeTimers()) for (let i = steps; i > 0; i--) {\n\t\t\tthis._clock.next();\n\t\t\t// Fire all timers at this point: https://github.com/sinonjs/fake-timers/issues/250\n\t\t\tthis._clock.tick(0);\n\t\t\tif (this._clock.countTimers() === 0) break;\n\t\t}\n\t}\n\tasync advanceTimersToNextTimerAsync(steps = 1) {\n\t\tif (this._checkFakeTimers()) for (let i = steps; i > 0; i--) {\n\t\t\tawait this._clock.nextAsync();\n\t\t\t// Fire all timers at this point: https://github.com/sinonjs/fake-timers/issues/250\n\t\t\tthis._clock.tick(0);\n\t\t\tif (this._clock.countTimers() === 0) break;\n\t\t}\n\t}\n\tadvanceTimersByTime(msToRun) {\n\t\tif (this._checkFakeTimers()) this._clock.tick(msToRun);\n\t}\n\tasync advanceTimersByTimeAsync(msToRun) {\n\t\tif (this._checkFakeTimers()) await this._clock.tickAsync(msToRun);\n\t}\n\tadvanceTimersToNextFrame() {\n\t\tif (this._checkFakeTimers()) this._clock.runToFrame();\n\t}\n\trunAllTicks() {\n\t\tif (this._checkFakeTimers()) this._clock.runMicrotasks();\n\t}\n\tuseRealTimers() {\n\t\tif (this._fakingDate) {\n\t\t\tthis._clock.uninstall();\n\t\t\tthis._fakingDate = null;\n\t\t}\n\t\tif (this._fakingTime) {\n\t\t\tthis._clock.uninstall();\n\t\t\tthis._fakingTime = false;\n\t\t}\n\t}\n\tuseFakeTimers() {\n\t\tconst fakeDate = this._fakingDate || Date.now();\n\t\tif (this._fakingDate) {\n\t\t\tthis._clock.uninstall();\n\t\t\tthis._fakingDate = null;\n\t\t}\n\t\tif (this._fakingTime) this._clock.uninstall();\n\t\tlet toFake = this._userConfig?.toFake;\n\t\tif (isChildProcess() && toFake?.includes(\"nextTick\")) throw new Error(\"process.nextTick cannot be mocked inside child_process\");\n\t\tlet toNotFake = this._userConfig?.toNotFake;\n\t\tif (toFake === void 0 && toNotFake === void 0)\n // Do not mock timers internally used by node by default. It can still be mocked through userConfig.\n\t\ttoFake = Object.keys(this._fakeTimers.timers).filter((timer) => timer !== \"nextTick\" && timer !== \"queueMicrotask\");\n\t\telse if (toFake === void 0 && toNotFake !== void 0) {\n\t\t\t// Do not mock timers internally used by node via `toNotFake`\n\t\t\tfor (const timer of [\"nextTick\", \"queueMicrotask\"]) if (!toNotFake.includes(timer)) toNotFake = [...toNotFake, timer];\n\t\t}\n\t\tif (isChildProcess() && toNotFake && !toNotFake.includes(\"nextTick\")) toNotFake = [...toNotFake, \"nextTick\"];\n\t\tthis._clock = this._fakeTimers.install({\n\t\t\tnow: fakeDate,\n\t\t\t...this._userConfig,\n\t\t\t...toFake && { toFake },\n\t\t\t...toNotFake && { toNotFake },\n\t\t\tignoreMissingTimers: true\n\t\t});\n\t\tthis._fakingTime = true;\n\t}\n\treset() {\n\t\tif (this._checkFakeTimers()) {\n\t\t\tconst { now } = this._clock;\n\t\t\tthis._clock.reset();\n\t\t\tthis._clock.setSystemTime(now);\n\t\t}\n\t}\n\tsetSystemTime(now) {\n\t\tconst date = typeof now === \"undefined\" || now instanceof Date ? now : new Date(now);\n\t\tif (this._fakingTime) this._clock.setSystemTime(date);\n\t\telse {\n\t\t\tconst newFakingDate = date ?? new Date(this.getRealSystemTime());\n\t\t\tif (this._fakingDate) {\n\t\t\t\tthis._fakingDate = newFakingDate;\n\t\t\t\tthis._clock.setSystemTime(newFakingDate);\n\t\t\t} else {\n\t\t\t\tthis._fakingDate = newFakingDate;\n\t\t\t\tthis._clock = this._fakeTimers.install({\n\t\t\t\t\tnow: newFakingDate,\n\t\t\t\t\ttoFake: [\"Date\", \"Temporal\"],\n\t\t\t\t\tignoreMissingTimers: true\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\tgetMockedSystemTime() {\n\t\treturn this._fakingTime ? new Date(this._clock.now) : this._fakingDate;\n\t}\n\tgetRealSystemTime() {\n\t\treturn this._now();\n\t}\n\tgetTimerCount() {\n\t\tif (this._checkFakeTimers()) return this._clock.countTimers();\n\t\treturn 0;\n\t}\n\tsetTimerTickMode(mode, interval) {\n\t\tif (this._checkFakeTimers()) if (mode === \"manual\") this._clock.setTickMode({ mode: \"manual\" });\n\t\telse if (mode === \"nextTimerAsync\") this._clock.setTickMode({ mode: \"nextAsync\" });\n\t\telse if (mode === \"interval\") this._clock.setTickMode({\n\t\t\tmode: \"interval\",\n\t\t\tdelta: interval\n\t\t});\n\t\telse throw new Error(`Invalid tick mode: ${mode}`);\n\t}\n\tconfigure(config) {\n\t\tthis._userConfig = config;\n\t}\n\tisFakeTimers() {\n\t\treturn this._fakingTime;\n\t}\n\t_checkFakeTimers() {\n\t\tif (!this._fakingTime) throw new Error(\"A function to advance timers was called but the timers APIs are not mocked. Call `vi.useFakeTimers()` in the test file first.\");\n\t\treturn this._fakingTime;\n\t}\n}\n\nconst whenSymbol = Symbol.for(\"$$vitest:when\");\n/**\n* Returns `true` if the given value is a {@linkcode When} chain created by {@linkcode when|vi.when}.\n*\n* @param input - The value to check.\n* @returns `true` if `input` is a {@linkcode When} instance, `false` otherwise.\n*\n* @example\n* const spy = vi.fn()\n* const w = vi.when(spy).calledWith(1).thenReturn(0)\n*\n* expect(isWhenChain(w)).toBe(true)\n* expect(isWhenChain(spy)).toBe(false)\n*/\nfunction isWhenChain(input) {\n\ttry {\n\t\treturn Reflect.has(input, whenSymbol);\n\t} catch {\n\t\treturn false;\n\t}\n}\n/**\n* Defines conditional behaviors on a Vitest spy based on the arguments it is called with.\n*\n* Behaviors are matched using deep equality, last-registered first within each argument set.\n*\n* It automatically restores the spy's original implementation when the enclosing block exits if used with the `using` keyword.\n*\n* @param spy - A Vitest mock function to attach behaviors to.\n* @param options - Optional configuration.\n* @returns A {@linkcode When} instance for registering behaviors.\n*\n* @throws {TypeError} If `spy` is not a Vitest mock function.\n* @throws {Error} If chaining a non-existent method after `calledWith`.\n* @throws {RangeError} If setting the `times` option on a `then*` method as a negative value or `0`.\n*\n* @since 5.0.0\n* @see {@link https://vitest.dev/api/vi#vi-when}\n* @see {@link https://vitest.dev/guide/recipes/conditional-mocking}\n*\n* @example\n* // Basic usage\n* const spy = vi.fn(() => Number.NEGATIVE_INFINITY)\n* vi.when(spy).calledWith(1).thenReturn(0)\n*\n* expect(spy(1)).toBe(0)\n* expect(spy(2)).toBe(Number.NEGATIVE_INFINITY) // falls through to original implementation\n*\n* @example\n* // Async\n* const spy = vi.fn()\n* vi.when(spy).calledWith('user').thenResolve({ id: 1 })\n*\n* await expect(spy('user')).resolves.toEqual({ id: 1 })\n*\n* @example\n* // Scoped with `using`\n* const spy = vi.fn()\n*\n* {\n* using w = vi.when(spy)\n* .calledWith('darkMode')\n* .thenReturn(true)\n*\n* expect(spy('darkMode')).toBe(true)\n* }\n*\n* // spy's original implementation is restored here\n* expect(spy('darkMode')).toBe(undefined)\n*\n* @example\n* // Throw on unmatched calls\n* vi.when(spy, { onUnmatched: 'throw' })\n* .calledWith(1)\n* .thenReturn({ id: 1, name: 'Alice' })\n*\n* expect(spy(1)).toEqual({ id: 1, name: 'Alice' })\n* expect(() => spy(2)).toThrow()\n*/\nfunction when(spy, options) {\n\tif (!isMockFunction(spy)) throw new TypeError(\"vi.when: the argument must be a mock function created with `vi.fn()` or `vi.spyOn()`\");\n\tconst behaviors = [];\n\tconst originalImplementation = spy.getMockImplementation();\n\tfunction findAction(args) {\n\t\tconst testers = [...getCustomEqualityTesters(), iterableEquality];\n\t\tfor (const behavior of behaviors) if (equals(args, behavior.arguments, testers)) return behavior.actions.findLast((action) => !(action.remaining === 0 && action.called)) ?? null;\n\t\treturn null;\n\t}\n\tspy.mockImplementation(\n\t\t// @ts-expect-error cannot resolve generic args\n\t\t(...args) => {\n\t\t\tconst action = findAction(args);\n\t\t\tif (action === null) return (typeof options?.onUnmatched === \"function\" ? options.onUnmatched : options?.onUnmatched === \"throw\" ? () => {\n\t\t\t\tthrow new Error(`vi.when: no behavior defined when called with [${args.map((arg) => stringify(arg)).join(\", \")}]`);\n\t\t\t} : originalImplementation)?.(...args);\n\t\t\taction.remaining -= 1;\n\t\t\taction.called = true;\n\t\t\tswitch (action.type) {\n\t\t\t\tcase \"return\": return action.value;\n\t\t\t\tcase \"throw\": throw action.value;\n\t\t\t\tcase \"resolve\": return Promise.resolve(action.value);\n\t\t\t\tcase \"reject\": return Promise.reject(action.value);\n\t\t\t}\n\t\t}\n\t);\n\tfunction getOrCreateBehavior(args) {\n\t\tconst testers = [...getCustomEqualityTesters(), iterableEquality];\n\t\tlet behavior = behaviors.find((behavior) => equals(args, behavior.arguments, testers));\n\t\tif (behavior === void 0) {\n\t\t\tbehavior = {\n\t\t\t\targuments: args,\n\t\t\t\tactions: []\n\t\t\t};\n\t\t\tbehaviors.push(behavior);\n\t\t}\n\t\treturn behavior;\n\t}\n\t// @ts-expect-error `Symbol.dispose` has to be assigned conditionally since it's only supported in Node >= 24\n\tconst output = markWhenChain({\n\t\tcalledWith: (...args) => {\n\t\t\tconst behavior = getOrCreateBehavior(args);\n\t\t\tfunction appendAction(behavior, type, value, times) {\n\t\t\t\tbehavior.actions.push({\n\t\t\t\t\ttype,\n\t\t\t\t\tvalue,\n\t\t\t\t\ttimes,\n\t\t\t\t\tremaining: times,\n\t\t\t\t\tcalled: false\n\t\t\t\t});\n\t\t\t}\n\t\t\tconst calledWithInstance = markWhenChain({\n\t\t\t\t...output,\n\t\t\t\tthenThrow: (value, options) => {\n\t\t\t\t\tvalidateOptions(options);\n\t\t\t\t\tappendAction(behavior, \"throw\", value, options?.times ?? Number.POSITIVE_INFINITY);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t},\n\t\t\t\tthenThrowOnce: (value) => {\n\t\t\t\t\tappendAction(behavior, \"throw\", value, 1);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t},\n\t\t\t\tthenReturn: (value, options) => {\n\t\t\t\t\tvalidateOptions(options);\n\t\t\t\t\tappendAction(behavior, \"return\", value, options?.times ?? Number.POSITIVE_INFINITY);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t},\n\t\t\t\tthenReturnOnce: (value) => {\n\t\t\t\t\tappendAction(behavior, \"return\", value, 1);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t},\n\t\t\t\tthenResolve: (value, options) => {\n\t\t\t\t\tvalidateOptions(options);\n\t\t\t\t\tappendAction(behavior, \"resolve\", value, options?.times ?? Number.POSITIVE_INFINITY);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t},\n\t\t\t\tthenResolveOnce: (value) => {\n\t\t\t\t\tappendAction(behavior, \"resolve\", value, 1);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t},\n\t\t\t\tthenReject: (value, options) => {\n\t\t\t\t\tvalidateOptions(options);\n\t\t\t\t\tappendAction(behavior, \"reject\", value, options?.times ?? Number.POSITIVE_INFINITY);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t},\n\t\t\t\tthenRejectOnce: (value) => {\n\t\t\t\t\tappendAction(behavior, \"reject\", value, 1);\n\t\t\t\t\treturn calledWithInstance;\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn calledWithInstance;\n\t\t},\n\t\t_getDiagnostics: () => {\n\t\t\tconst pendingBehaviors = behaviors.filter((behavior) => behavior.actions.length === 0 || behavior.actions.some((action) => !hasBeenConsumed(action)));\n\t\t\treturn {\n\t\t\t\tisExhausted: behaviors.length !== 0 && pendingBehaviors.length === 0,\n\t\t\t\tpendingBehaviors: pendingBehaviors.map((behavior) => `calledWith(${behavior.arguments.map((argument) => stringify(argument)).join(\", \")})${behavior.actions.length === 0 ? \" → no actions\" : `\\n${formatActions(behavior.actions)}`}`).join(\"\\n\\n\")\n\t\t\t};\n\t\t}\n\t});\n\tif (Symbol.dispose) output[Symbol.dispose] = () => {\n\t\tspy.mockImplementation(\n\t\t\t// @ts-expect-error without an original implementation we should fall back to an undefined-returning function as that's what the mocking functions do\n\t\t\toriginalImplementation ?? noop\n\t\t);\n\t};\n\treturn output;\n}\nconst whenChainMarkerOptions = {};\nfunction markWhenChain(input) {\n\tReflect.defineProperty(input, whenSymbol, whenChainMarkerOptions);\n\treturn input;\n}\nfunction formatActions(actions) {\n\tconst lines = actions.map((action, index) => {\n\t\tconst method = getMethodName(action.type);\n\t\tconst left = ` ${getSymbol(action)} ${method}(${stringify(action.value)}${action.times === Number.POSITIVE_INFINITY ? \"\" : `, { times: ${action.times} }`})`;\n\t\tconst unreachable = !hasBeenConsumed(action) && actions.slice(index + 1).some((later) => later.times === Number.POSITIVE_INFINITY);\n\t\treturn {\n\t\t\tleft,\n\t\t\tremaining: getRemainingLabel(action) + (unreachable ? \" → unreachable action\" : \"\")\n\t\t};\n\t});\n\tconst maxLeft = Math.max(...lines.map((line) => line.left.length));\n\treturn lines.map(({ left, remaining }) => `${left.padEnd(maxLeft + 2)}${remaining}`).join(\"\\n\");\n}\nfunction getMethodName(type) {\n\tswitch (type) {\n\t\tcase \"return\": return \"thenReturn\";\n\t\tcase \"resolve\": return \"thenResolve\";\n\t\tcase \"throw\": return \"thenThrow\";\n\t\tcase \"reject\": return \"thenReject\";\n\t\tdefault: throw new Error(`vi.when: \"${type}\" is not a known method`);\n\t}\n}\nfunction hasBeenConsumed(action) {\n\treturn action.remaining === 0 || action.remaining === Number.POSITIVE_INFINITY && action.called;\n}\nfunction getRemainingLabel(action) {\n\tif (hasBeenConsumed(action)) return action.remaining === Number.POSITIVE_INFINITY ? \"exhausted\" : `exhausted (${action.times} of ${action.times})`;\n\treturn action.remaining === Number.POSITIVE_INFINITY ? \"never called\" : `${action.remaining} remaining (out of ${action.times})`;\n}\nfunction getSymbol(action) {\n\tif (hasBeenConsumed(action)) return \"✓\";\n\treturn \"✗\";\n}\nfunction validateOptions(options) {\n\tif (typeof options?.times === \"number\" && options.times <= 0) throw new RangeError(\"vi.when: `times` option must be greater than 0\");\n}\n\nfunction copyStackTrace$2(target, source) {\n\tif (source.stack !== void 0) target.stack = source.stack.replace(source.message, target.message);\n\treturn target;\n}\nfunction waitFor(callback, options = {}) {\n\tconst { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n\tconst { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n\tconst STACK_TRACE_ERROR = /* @__PURE__ */ new Error(\"STACK_TRACE_ERROR\");\n\treturn new Promise((resolve, reject) => {\n\t\tlet lastError;\n\t\tlet promiseStatus = \"idle\";\n\t\tlet timeoutId;\n\t\tlet intervalId;\n\t\tconst onResolve = (result) => {\n\t\t\tif (timeoutId) clearTimeout(timeoutId);\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tresolve(result);\n\t\t};\n\t\tconst handleTimeout = () => {\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tlet error = lastError;\n\t\t\tif (!error) error = copyStackTrace$2(/* @__PURE__ */ new Error(\"Timed out in waitFor!\"), STACK_TRACE_ERROR);\n\t\t\treject(error);\n\t\t};\n\t\tconst checkCallback = () => {\n\t\t\tif (vi.isFakeTimers()) vi.advanceTimersByTime(interval);\n\t\t\tif (promiseStatus === \"pending\") return;\n\t\t\ttry {\n\t\t\t\tconst result = callback();\n\t\t\t\tif (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\tpromiseStatus = \"pending\";\n\t\t\t\t\tthenable.then((resolvedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"resolved\";\n\t\t\t\t\t\tonResolve(resolvedValue);\n\t\t\t\t\t}, (rejectedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"rejected\";\n\t\t\t\t\t\tlastError = rejectedValue;\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tonResolve(result);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tlastError = error;\n\t\t\t}\n\t\t};\n\t\tif (checkCallback() === true) return;\n\t\ttimeoutId = setTimeout(handleTimeout, timeout);\n\t\tintervalId = setInterval(checkCallback, interval);\n\t});\n}\nfunction waitUntil(callback, options = {}) {\n\tconst { setTimeout, setInterval, clearTimeout, clearInterval } = getSafeTimers();\n\tconst { interval = 50, timeout = 1e3 } = typeof options === \"number\" ? { timeout: options } : options;\n\tconst STACK_TRACE_ERROR = /* @__PURE__ */ new Error(\"STACK_TRACE_ERROR\");\n\treturn new Promise((resolve, reject) => {\n\t\tlet promiseStatus = \"idle\";\n\t\tlet timeoutId;\n\t\tlet intervalId;\n\t\tconst onReject = (error) => {\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tif (!error) error = copyStackTrace$2(/* @__PURE__ */ new Error(\"Timed out in waitUntil!\"), STACK_TRACE_ERROR);\n\t\t\treject(error);\n\t\t};\n\t\tconst onResolve = (result) => {\n\t\t\tif (!result) return;\n\t\t\tif (timeoutId) clearTimeout(timeoutId);\n\t\t\tif (intervalId) clearInterval(intervalId);\n\t\t\tresolve(result);\n\t\t\treturn true;\n\t\t};\n\t\tconst checkCallback = () => {\n\t\t\tif (vi.isFakeTimers()) vi.advanceTimersByTime(interval);\n\t\t\tif (promiseStatus === \"pending\") return;\n\t\t\ttry {\n\t\t\t\tconst result = callback();\n\t\t\t\tif (result !== null && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst thenable = result;\n\t\t\t\t\tpromiseStatus = \"pending\";\n\t\t\t\t\tthenable.then((resolvedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"resolved\";\n\t\t\t\t\t\tonResolve(resolvedValue);\n\t\t\t\t\t}, (rejectedValue) => {\n\t\t\t\t\t\tpromiseStatus = \"rejected\";\n\t\t\t\t\t\tonReject(rejectedValue);\n\t\t\t\t\t});\n\t\t\t\t} else return onResolve(result);\n\t\t\t} catch (error) {\n\t\t\t\tonReject(error);\n\t\t\t}\n\t\t};\n\t\tif (checkCallback() === true) return;\n\t\ttimeoutId = setTimeout(onReject, timeout);\n\t\tintervalId = setInterval(checkCallback, interval);\n\t});\n}\n\nfunction createVitest() {\n\tlet _config = null;\n\tconst state = () => getWorkerState();\n\tlet _timers;\n\tconst timers = () => _timers ||= new FakeTimers({\n\t\tglobal: globalThis,\n\t\tconfig: state().config.fakeTimers\n\t});\n\tconst _stubsGlobal = /* @__PURE__ */ new Map();\n\tconst _stubsEnv = /* @__PURE__ */ new Map();\n\tconst _envBooleans = [\n\t\t\"PROD\",\n\t\t\"DEV\",\n\t\t\"SSR\"\n\t];\n\tconst utils = {\n\t\tuseFakeTimers(config) {\n\t\t\tif (isChildProcess()) {\n\t\t\t\tif (config?.toFake?.includes(\"nextTick\") || state().config?.fakeTimers?.toFake?.includes(\"nextTick\")) throw new Error(\"vi.useFakeTimers({ toFake: [\\\"nextTick\\\"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.\");\n\t\t\t}\n\t\t\tif (config) timers().configure({\n\t\t\t\t...state().config.fakeTimers,\n\t\t\t\t...config\n\t\t\t});\n\t\t\telse timers().configure(state().config.fakeTimers);\n\t\t\ttimers().useFakeTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tisFakeTimers() {\n\t\t\treturn timers().isFakeTimers();\n\t\t},\n\t\tuseRealTimers() {\n\t\t\ttimers().useRealTimers();\n\t\t\treturn utils;\n\t\t},\n\t\trunOnlyPendingTimers() {\n\t\t\ttimers().runOnlyPendingTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tasync runOnlyPendingTimersAsync() {\n\t\t\tawait timers().runOnlyPendingTimersAsync();\n\t\t\treturn utils;\n\t\t},\n\t\trunAllTimers() {\n\t\t\ttimers().runAllTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tasync runAllTimersAsync() {\n\t\t\tawait timers().runAllTimersAsync();\n\t\t\treturn utils;\n\t\t},\n\t\trunAllTicks() {\n\t\t\ttimers().runAllTicks();\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersByTime(ms) {\n\t\t\ttimers().advanceTimersByTime(ms);\n\t\t\treturn utils;\n\t\t},\n\t\tasync advanceTimersByTimeAsync(ms) {\n\t\t\tawait timers().advanceTimersByTimeAsync(ms);\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersToNextTimer() {\n\t\t\ttimers().advanceTimersToNextTimer();\n\t\t\treturn utils;\n\t\t},\n\t\tasync advanceTimersToNextTimerAsync() {\n\t\t\tawait timers().advanceTimersToNextTimerAsync();\n\t\t\treturn utils;\n\t\t},\n\t\tadvanceTimersToNextFrame() {\n\t\t\ttimers().advanceTimersToNextFrame();\n\t\t\treturn utils;\n\t\t},\n\t\tgetTimerCount() {\n\t\t\treturn timers().getTimerCount();\n\t\t},\n\t\tsetSystemTime(time) {\n\t\t\ttimers().setSystemTime(time);\n\t\t\treturn utils;\n\t\t},\n\t\tgetMockedSystemTime() {\n\t\t\treturn timers().getMockedSystemTime();\n\t\t},\n\t\tgetRealSystemTime() {\n\t\t\treturn timers().getRealSystemTime();\n\t\t},\n\t\tclearAllTimers() {\n\t\t\ttimers().clearAllTimers();\n\t\t\treturn utils;\n\t\t},\n\t\tsetTimerTickMode(mode, interval) {\n\t\t\ttimers().setTimerTickMode(mode, interval);\n\t\t\treturn utils;\n\t\t},\n\t\t// mocks\n\t\tspyOn,\n\t\tfn,\n\t\twhen,\n\t\tisWhenChain,\n\t\twaitFor,\n\t\twaitUntil,\n\t\tdefineHelper: (fn) => {\n\t\t\treturn function __VITEST_HELPER__(...args) {\n\t\t\t\tconst result = fn.apply(this, args);\n\t\t\t\tif (result && typeof result === \"object\" && typeof result.then === \"function\") {\n\t\t\t\t\tconst stackTraceError = /* @__PURE__ */ new Error(\"STACK_TRACE_ERROR\");\n\t\t\t\t\treturn (async function __VITEST_HELPER__() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await result;\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tif (error instanceof Error && !error.stack?.includes(\"__VITEST_HELPER__\")) copyStackTrace$1(error, stackTraceError);\n\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t}\n\t\t\t\t\t})();\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t};\n\t\t},\n\t\thoisted(factory) {\n\t\t\tassertTypes(factory, \"\\\"vi.hoisted\\\" factory\", [\"function\"]);\n\t\t\treturn factory();\n\t\t},\n\t\tmock(path, factory) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.mock() expects a string path, but received a ${typeof path}`);\n\t\t\tconst importer = getImporter(\"mock\");\n\t\t\t_mocker().queueMock(path, importer, typeof factory === \"function\" ? () => factory(() => _mocker().importActual(path, importer, _mocker().getMockContext().callstack)) : factory);\n\t\t},\n\t\tunmock(path) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof path}`);\n\t\t\t_mocker().queueUnmock(path, getImporter(\"unmock\"));\n\t\t},\n\t\tdoMock(path, factory) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof path}`);\n\t\t\tconst importer = getImporter(\"doMock\");\n\t\t\t_mocker().queueMock(path, importer, typeof factory === \"function\" ? () => factory(() => _mocker().importActual(path, importer, _mocker().getMockContext().callstack)) : factory);\n\t\t\tconst rv = {};\n\t\t\tif (Symbol.dispose) rv[Symbol.dispose] = () => {\n\t\t\t\t_mocker().queueUnmock(path, importer);\n\t\t\t};\n\t\t\treturn rv;\n\t\t},\n\t\tdoUnmock(path) {\n\t\t\tif (typeof path !== \"string\") throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof path}`);\n\t\t\tconst importer = getImporter(\"doUnmock\");\n\t\t\t_mocker().queueUnmock(path, importer);\n\t\t},\n\t\tasync importActual(path) {\n\t\t\tconst importer = getImporter(\"importActual\");\n\t\t\treturn _mocker().importActual(path, importer, _mocker().getMockContext().callstack);\n\t\t},\n\t\tasync importMock(path) {\n\t\t\tconst importer = getImporter(\"importMock\");\n\t\t\treturn _mocker().importMock(path, importer);\n\t\t},\n\t\tmockObject(value, options) {\n\t\t\treturn _mocker().mockObject({ value }, void 0, options?.spy ? \"autospy\" : \"automock\").value;\n\t\t},\n\t\t// this is typed in the interface so it's not necessary to type it here\n\t\tmocked(item, _options = {}) {\n\t\t\treturn item;\n\t\t},\n\t\tisMockFunction(fn) {\n\t\t\treturn isMockFunction(fn);\n\t\t},\n\t\tclearAllMocks() {\n\t\t\tclearAllMocks();\n\t\t\treturn utils;\n\t\t},\n\t\tresetAllMocks() {\n\t\t\tresetAllMocks();\n\t\t\treturn utils;\n\t\t},\n\t\trestoreAllMocks() {\n\t\t\trestoreAllMocks();\n\t\t\treturn utils;\n\t\t},\n\t\tstubGlobal(name, value) {\n\t\t\tif (!_stubsGlobal.has(name)) _stubsGlobal.set(name, Object.getOwnPropertyDescriptor(globalThis, name));\n\t\t\tObject.defineProperty(globalThis, name, {\n\t\t\t\tvalue,\n\t\t\t\twritable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tenumerable: true\n\t\t\t});\n\t\t\treturn utils;\n\t\t},\n\t\tstubEnv(name, value) {\n\t\t\tconst env = state().metaEnv;\n\t\t\tif (!_stubsEnv.has(name)) _stubsEnv.set(name, env[name]);\n\t\t\tif (value === void 0) delete env[name];\n\t\t\telse if (_envBooleans.includes(name)) env[name] = value ? \"1\" : \"\";\n\t\t\telse env[name] = String(value);\n\t\t\treturn utils;\n\t\t},\n\t\tunstubAllGlobals() {\n\t\t\t_stubsGlobal.forEach((original, name) => {\n\t\t\t\tif (!original) Reflect.deleteProperty(globalThis, name);\n\t\t\t\telse Object.defineProperty(globalThis, name, original);\n\t\t\t});\n\t\t\t_stubsGlobal.clear();\n\t\t\treturn utils;\n\t\t},\n\t\tunstubAllEnvs() {\n\t\t\tconst env = state().metaEnv;\n\t\t\t_stubsEnv.forEach((original, name) => {\n\t\t\t\tif (original === void 0) delete env[name];\n\t\t\t\telse env[name] = original;\n\t\t\t});\n\t\t\t_stubsEnv.clear();\n\t\t\treturn utils;\n\t\t},\n\t\tresetModules() {\n\t\t\tresetModules(state().evaluatedModules);\n\t\t\treturn utils;\n\t\t},\n\t\tasync dynamicImportSettled() {\n\t\t\treturn waitForImportsToResolve();\n\t\t},\n\t\tsetConfig(config) {\n\t\t\tif (!_config) _config = { ...state().config };\n\t\t\tObject.assign(state().config, config);\n\t\t},\n\t\tresetConfig() {\n\t\t\tif (_config) Object.assign(state().config, _config);\n\t\t}\n\t};\n\treturn utils;\n}\nconst vitest = createVitest();\nconst vi = vitest;\nfunction _mocker() {\n\t// @ts-expect-error injected by vite-nide\n\treturn typeof __vitest_mocker__ !== \"undefined\" ? __vitest_mocker__ : new Proxy({}, { get(_, name) {\n\t\tthrow new Error(`Vitest mocker was not initialized in this environment. vi.${String(name)}() is forbidden.`);\n\t} });\n}\nfunction getImporter(name) {\n\tconst stackArray = createSimpleStackTrace({ stackTraceLimit: 5 }).split(\"\\n\");\n\t// if there is no message in a stack trace, use the item - 1\n\tconst importerStackIndex = stackArray.findLastIndex((stack) => {\n\t\treturn stack.includes(` at Object.${name}`) || stack.includes(`${name}@`) || stack.includes(` at ${name} (`);\n\t});\n\treturn parseSingleStack(stackArray[importerStackIndex + 1])?.file || \"\";\n}\nfunction copyStackTrace$1(target, source) {\n\tif (source.stack !== void 0) target.stack = source.stack.replace(source.message, target.message);\n\treturn target;\n}\nfunction waitNextTick() {\n\tconst { setTimeout } = getSafeTimers();\n\treturn new Promise((resolve) => setTimeout(resolve, 0));\n}\nasync function waitForImportsToResolve() {\n\tawait waitNextTick();\n\tconst state = getWorkerState();\n\tconst promises = [];\n\tconst resolvingCount = state.resolvingModules.size;\n\tfor (const [_, mod] of state.evaluatedModules.idToModuleMap) if (mod.promise && !mod.evaluated) promises.push(mod.promise);\n\tif (!promises.length && !resolvingCount) return;\n\tawait Promise.allSettled(promises);\n\tawait waitForImportsToResolve();\n}\n\n// these matchers are not supported because they don't make sense with poll\nconst unsupported = [\n\t\"matchSnapshot\",\n\t\"toMatchSnapshot\",\n\t\"toMatchInlineSnapshot\",\n\t\"toThrowErrorMatchingSnapshot\",\n\t\"toThrowErrorMatchingInlineSnapshot\",\n\t\"throws\",\n\t\"Throw\",\n\t\"throw\",\n\t\"toThrow\",\n\t\"toThrowError\"\n];\n/**\n* Attaches a `cause` property to the error if missing, copies the stack trace from the source, and throws.\n*\n* @param error - The error to throw\n* @param source - Error to copy the stack trace from\n*\n* @throws Always throws the provided error with an amended stack trace\n*/\nfunction throwWithCause(error, source) {\n\terror.cause ??= /* @__PURE__ */ new Error(\"Matcher did not succeed in time.\");\n\tthrow copyStackTrace(error, source);\n}\nfunction createExpectPoll(expect) {\n\treturn function poll(fn, options = {}) {\n\t\tconst defaults = getWorkerState().config.expect?.poll ?? {};\n\t\tconst { interval = defaults.interval ?? 50, timeout = defaults.timeout ?? 1e3, message } = options;\n\t\t// @ts-expect-error private poll access\n\t\tconst assertion = expect(null, message).withContext({ poll: true });\n\t\tfn = fn.bind(assertion);\n\t\t// injected so that domain snapshot can take over poll implementation.\n\t\tchai.util.flag(assertion, \"_poll.fn\", fn);\n\t\tchai.util.flag(assertion, \"_poll.timeout\", timeout);\n\t\tchai.util.flag(assertion, \"_poll.interval\", interval);\n\t\tconst test = chai.util.flag(assertion, \"vitest-test\");\n\t\tif (!test) throw new Error(\"expect.poll() must be called inside a test\");\n\t\tconst proxy = new Proxy(assertion, { get(target, key, receiver) {\n\t\t\tconst assertionFunction = Reflect.get(target, key, receiver);\n\t\t\tif (typeof assertionFunction !== \"function\") return assertionFunction instanceof chai.Assertion ? proxy : assertionFunction;\n\t\t\tif (key === \"assert\") return assertionFunction;\n\t\t\tif (typeof key === \"string\" && unsupported.includes(key)) throw new SyntaxError(`expect.poll() is not supported in combination with .${key}(). Use vi.waitFor() if your assertion condition is unstable.`);\n\t\t\t// Core poll stack-trace trick:\n\t\t\t// 1. capture STACK_TRACE_ERROR here before entering the async poll loop\n\t\t\t// 2. when the matcher eventually fails, rethrow via throwWithCause()\n\t\t\t// so the final error keeps this earlier stack\n\t\t\t//\n\t\t\t// For example, when user writes:\n\t\t\t// await expect.poll(...).toBeSomething()\n\t\t\t// STACK_TRACE_ERROR.stack would look like\n\t\t\t// at ...(more internal stacks)...\n\t\t\t// at __VITEST_POLL_CHAIN__ .../packages/vitest/dist/...\n\t\t\t// at .../my-file.test.ts:12:3 (this points to `toBeSomething()` callsite in user test file)\n\t\t\t// Vitest later filters out internal stacks from `vitest/dist`, so the reported errors correctly\n\t\t\t// points to the user callsite for poll assertion errors.\n\t\t\t//\n\t\t\t// Inline snapshots piggyback on the same idea. We pass\n\t\t\t// STACK_TRACE_ERROR through `chai.util.flag(assertion, 'error', ...)`.\n\t\t\t// Inline snapshot assertion access the same error stack for\n\t\t\t// extracting inline snapshot location to validate and update new snapshots.\n\t\t\treturn function __VITEST_POLL_CHAIN__(...args) {\n\t\t\t\tconst STACK_TRACE_ERROR = /* @__PURE__ */ new Error(\"STACK_TRACE_ERROR\");\n\t\t\t\tconst promise = async () => {\n\t\t\t\t\tchai.util.flag(assertion, \"_name\", key);\n\t\t\t\t\tchai.util.flag(assertion, \"error\", STACK_TRACE_ERROR);\n\t\t\t\t\tconst onStart = chai.util.flag(assertion, \"_poll.onStart\");\n\t\t\t\t\tconst onSettled = chai.util.flag(assertion, \"_poll.onSettled\");\n\t\t\t\t\tawait onStart?.({ assertion });\n\t\t\t\t\tif (Object.getOwnPropertyDescriptor(assertionFunction, \"__vitest_poll_takeover__\")?.value) try {\n\t\t\t\t\t\tconst output = await assertionFunction.call(assertion, ...args);\n\t\t\t\t\t\tawait onSettled?.({\n\t\t\t\t\t\t\tassertion,\n\t\t\t\t\t\t\tstatus: \"pass\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\treturn output;\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\tawait onSettled?.({\n\t\t\t\t\t\t\tassertion,\n\t\t\t\t\t\t\tstatus: \"fail\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthrowWithCause(err, STACK_TRACE_ERROR);\n\t\t\t\t\t}\n\t\t\t\t\tconst { setTimeout, clearTimeout } = getSafeTimers();\n\t\t\t\t\tlet timerId;\n\t\t\t\t\tconst timeoutController = new AbortController();\n\t\t\t\t\tconst timeoutPromise = new Promise((resolve) => {\n\t\t\t\t\t\ttimerId = setTimeout(() => {\n\t\t\t\t\t\t\ttimeoutController.abort();\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t}, timeout);\n\t\t\t\t\t});\n\t\t\t\t\tlet lastError;\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile (true) try {\n\t\t\t\t\t\t\tconst fnResult = await raceWith(Promise.resolve().then(() => fn({ signal: timeoutController.signal })), timeoutPromise);\n\t\t\t\t\t\t\tif (!fnResult.ok) {\n\t\t\t\t\t\t\t\tlastError ??= /* @__PURE__ */ new Error(`expect.poll() function didn't resolve in time.`);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst obj = fnResult.value;\n\t\t\t\t\t\t\tchai.util.flag(assertion, \"object\", obj);\n\t\t\t\t\t\t\tconst assertionResult = await raceWith(Promise.resolve().then(() => assertionFunction.apply(assertion, args)), timeoutPromise);\n\t\t\t\t\t\t\tif (!assertionResult.ok) {\n\t\t\t\t\t\t\t\tlastError ??= /* @__PURE__ */ new Error(`expect.poll() assertion didn't resolve in time.`);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tconst output = assertionResult.value;\n\t\t\t\t\t\t\tawait onSettled?.({\n\t\t\t\t\t\t\t\tassertion,\n\t\t\t\t\t\t\t\tstatus: \"pass\"\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\treturn output;\n\t\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\t\tlastError = err;\n\t\t\t\t\t\t\t// no retry for toMatchScreenshot since\n\t\t\t\t\t\t\t// it owns retry/stability after the first element resolution\n\t\t\t\t\t\t\tif (key === \"toMatchScreenshot\") break;\n\t\t\t\t\t\t\tif (!(await raceWith(delay(interval, setTimeout), timeoutPromise)).ok) break;\n\t\t\t\t\t\t\tif (vi.isFakeTimers()) vi.advanceTimersByTime(interval);\n\t\t\t\t\t\t}\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tclearTimeout(timerId);\n\t\t\t\t\t}\n\t\t\t\t\tif (lastError) {\n\t\t\t\t\t\tawait onSettled?.({\n\t\t\t\t\t\t\tassertion,\n\t\t\t\t\t\t\tstatus: \"fail\"\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthrowWithCause(lastError, STACK_TRACE_ERROR);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tlet awaited = false;\n\t\t\t\ttest.onFinished ??= [];\n\t\t\t\ttest.onFinished.push(() => {\n\t\t\t\t\tif (!awaited) {\n\t\t\t\t\t\tconst negated = chai.util.flag(assertion, \"negate\") ? \"not.\" : \"\";\n\t\t\t\t\t\tconst assertionString = `expect.${chai.util.flag(assertion, \"_poll.element\") ? \"element(locator)\" : \"poll(assertion)\"}.${negated}${String(key)}()`;\n\t\t\t\t\t\tthrow copyStackTrace(/* @__PURE__ */ new Error(`${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`), STACK_TRACE_ERROR);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tlet resultPromise;\n\t\t\t\t// lets `expect.element` register the poll with the task deadline\n\t\t\t\tconst wrap = chai.util.flag(assertion, \"_poll.wrap\");\n\t\t\t\tconst start = () => resultPromise ||= wrap ? wrap(promise(), STACK_TRACE_ERROR) : promise();\n\t\t\t\t// only .then is enough to check awaited, but we type this as `Promise<void>` in global types\n\t\t\t\t// so let's follow it\n\t\t\t\treturn {\n\t\t\t\t\tthen(onFulfilled, onRejected) {\n\t\t\t\t\t\tawaited = true;\n\t\t\t\t\t\treturn start().then(onFulfilled, onRejected);\n\t\t\t\t\t},\n\t\t\t\t\tcatch(onRejected) {\n\t\t\t\t\t\tawaited = true;\n\t\t\t\t\t\treturn start().catch(onRejected);\n\t\t\t\t\t},\n\t\t\t\t\tfinally(onFinally) {\n\t\t\t\t\t\tawaited = true;\n\t\t\t\t\t\treturn start().finally(onFinally);\n\t\t\t\t\t},\n\t\t\t\t\t[Symbol.toStringTag]: \"Promise\"\n\t\t\t\t};\n\t\t\t};\n\t\t} });\n\t\treturn proxy;\n\t};\n}\nfunction copyStackTrace(target, source) {\n\tif (source.stack !== void 0) target.stack = source.stack.replace(source.message, target.message);\n\treturn target;\n}\nfunction raceWith(promise, other) {\n\tconst left = promise.then((value) => ({\n\t\tok: true,\n\t\tvalue\n\t}));\n\tif (!other) return left;\n\treturn Promise.race([left, other.then((value) => ({\n\t\tok: false,\n\t\tvalue\n\t}))]);\n}\n\nconst MockPlugin = (chai, utils) => {\n\tutils.addMethod(chai.Assertion.prototype, \"toHaveBeenExhausted\", wrapAssertion(utils, \"toHaveBeenExhausted\", function() {\n\t\tconst chain = utils.flag(this, \"object\");\n\t\tif (!isWhenChain(chain)) throw new TypeError(`${utils.inspect(chain)} is not a \\`vi.when\\` instance`);\n\t\tconst diagnostics = chain._getDiagnostics();\n\t\tthis.assert(diagnostics.isExhausted, `expected all behaviors to have been exhausted, but some remain:\\n\\n ${diagnostics.pendingBehaviors.replaceAll(/\\n(?!\\n)/g, \"\\n \")}`, \"expected at least one behavior to remain un-exhausted, but all were\");\n\t}));\n};\n\nlet _client;\nfunction getSnapshotClient() {\n\tif (!_client) _client = new SnapshotClient({ isEqual: (received, expected) => {\n\t\treturn equals(received, expected, [iterableEquality, subsetEquality]);\n\t} });\n\treturn _client;\n}\nfunction getError(expected, promise) {\n\tif (typeof expected !== \"function\") {\n\t\tif (!promise) throw new Error(`expected must be a function, received ${typeof expected}`);\n\t\t// when \"promised\", it receives thrown error\n\t\treturn expected;\n\t}\n\ttry {\n\t\texpected();\n\t} catch (e) {\n\t\treturn e;\n\t}\n\tthrow new Error(\"snapshot function didn't throw\");\n}\nfunction getTestNames(test) {\n\treturn {\n\t\tfilepath: test.file.filepath,\n\t\tname: getNames(test).slice(1).join(\" > \"),\n\t\ttestId: test.id\n\t};\n}\nfunction getAssertionName(assertion) {\n\tconst name = chai.util.flag(assertion, \"_name\");\n\tif (!name) throw new Error(\"Assertion name is not set. This is a bug in Vitest. Please, open a new issue with reproduction.\");\n\treturn name;\n}\nfunction getTest(obj) {\n\tconst test = chai.util.flag(obj, \"vitest-test\");\n\tif (!test) throw new Error(`'${getAssertionName(obj)}' cannot be used without test context`);\n\tif (test.fails) throw new TestSyntaxError(`'${getAssertionName(obj)}' cannot be used with 'test.fails'`);\n\treturn test;\n}\nfunction validateAssertion(assertion) {\n\tif (chai.util.flag(assertion, \"negate\")) throw new Error(`${getAssertionName(assertion)} cannot be used with \"not\"`);\n}\nconst SnapshotPlugin = (chai, utils) => {\n\tfor (const key of [\"matchSnapshot\", \"toMatchSnapshot\"]) utils.addMethod(chai.Assertion.prototype, key, wrapAssertion(utils, key, function(propertiesOrHint, hint) {\n\t\treturn assertMatchResult(toMatchSnapshotImpl({\n\t\t\tassertion: this,\n\t\t\treceived: utils.flag(this, \"object\"),\n\t\t\t...normalizeArguments(propertiesOrHint, hint)\n\t\t}), chai.util.flag(this, \"message\"));\n\t}));\n\tutils.addMethod(chai.Assertion.prototype, \"toMatchFileSnapshot\", function(filepath, hint) {\n\t\t// set name manually since it's not wrapped by wrapAssertion\n\t\tutils.flag(this, \"_name\", \"toMatchFileSnapshot\");\n\t\t// validate early synchronously just not to break some existing tests\n\t\tvalidateAssertion(this);\n\t\tconst assertPromise = toMatchFileSnapshotImpl({\n\t\t\tassertion: this,\n\t\t\treceived: utils.flag(this, \"object\"),\n\t\t\tfilepath,\n\t\t\thint\n\t\t}).then((result) => assertMatchResult(result, chai.util.flag(this, \"message\")));\n\t\treturn recordAsyncExpect(getTest(this), assertPromise, createAssertionMessage(utils, this, true), /* @__PURE__ */ new Error(\"resolves\"), utils.flag(this, \"soft\"));\n\t});\n\tutils.addMethod(chai.Assertion.prototype, \"toMatchInlineSnapshot\", wrapAssertion(utils, \"toMatchInlineSnapshot\", function __INLINE_SNAPSHOT_OFFSET_3__(propertiesOrInlineSnapshot, inlineSnapshotOrHint, hint) {\n\t\treturn assertMatchResult(toMatchSnapshotImpl({\n\t\t\tassertion: this,\n\t\t\treceived: utils.flag(this, \"object\"),\n\t\t\tisInline: true,\n\t\t\t...normalizeInlineArguments(propertiesOrInlineSnapshot, inlineSnapshotOrHint, hint)\n\t\t}), chai.util.flag(this, \"message\"));\n\t}));\n\tutils.addMethod(chai.Assertion.prototype, \"toThrowErrorMatchingSnapshot\", wrapAssertion(utils, \"toThrowErrorMatchingSnapshot\", function(propertiesOrHint, hint) {\n\t\tvalidateAssertion(this);\n\t\tconst received = utils.flag(this, \"object\");\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\treturn assertMatchResult(toMatchSnapshotImpl({\n\t\t\tassertion: this,\n\t\t\treceived: getError(received, promise),\n\t\t\t...normalizeArguments(propertiesOrHint, hint)\n\t\t}), chai.util.flag(this, \"message\"));\n\t}));\n\tutils.addMethod(chai.Assertion.prototype, \"toThrowErrorMatchingInlineSnapshot\", wrapAssertion(utils, \"toThrowErrorMatchingInlineSnapshot\", function __INLINE_SNAPSHOT_OFFSET_3__(inlineSnapshotOrHint, hint) {\n\t\tvalidateAssertion(this);\n\t\tconst received = utils.flag(this, \"object\");\n\t\tconst promise = utils.flag(this, \"promise\");\n\t\treturn assertMatchResult(toMatchSnapshotImpl({\n\t\t\tassertion: this,\n\t\t\treceived: getError(received, promise),\n\t\t\tisInline: true,\n\t\t\t...normalizeInlineArguments(void 0, inlineSnapshotOrHint, hint)\n\t\t}), chai.util.flag(this, \"message\"));\n\t}));\n\tutils.addMethod(chai.expect, \"addSnapshotSerializer\", addSerializer);\n};\nfunction toMatchDomainSnapshotImpl(opts) {\n\tconst { assertion } = opts;\n\tvalidateAssertion(assertion);\n\tconst assertionName = getAssertionName(assertion);\n\tconst test = getTest(assertion);\n\tlet { inlineSnapshot } = opts;\n\tif (inlineSnapshot !== void 0) inlineSnapshot = stripSnapshotIndentation(inlineSnapshot);\n\tconst pollFn = chai.util.flag(assertion, \"_poll.fn\");\n\tif (pollFn) return getSnapshotClient().pollMatchDomain({\n\t\tpoll: pollFn,\n\t\tadapter: opts.adapter,\n\t\tmessage: opts.hint,\n\t\tisInline: opts.isInline,\n\t\terrorMessage: chai.util.flag(assertion, \"message\"),\n\t\ttimeout: chai.util.flag(assertion, \"_poll.timeout\"),\n\t\tinterval: chai.util.flag(assertion, \"_poll.interval\"),\n\t\tassertionName,\n\t\tinlineSnapshot,\n\t\terror: chai.util.flag(assertion, \"error\"),\n\t\t...getTestNames(test)\n\t});\n\treturn getSnapshotClient().matchDomain({\n\t\treceived: opts.received,\n\t\tadapter: opts.adapter,\n\t\tmessage: opts.hint,\n\t\tisInline: opts.isInline,\n\t\terrorMessage: chai.util.flag(assertion, \"message\"),\n\t\tassertionName,\n\t\tinlineSnapshot,\n\t\terror: chai.util.flag(assertion, \"error\"),\n\t\t...getTestNames(test)\n\t});\n}\n// toMatchSnapshot(propertiesOrHint?, hint?)\nfunction normalizeArguments(propertiesOrHint, hint) {\n\tif (typeof propertiesOrHint === \"string\") return { hint: propertiesOrHint };\n\treturn {\n\t\tproperties: propertiesOrHint,\n\t\thint\n\t};\n}\n// toMatchInlineSnapshot(propertiesOrInlineSnapshot?, inlineSnapshotOrHint?, hint?)\nfunction normalizeInlineArguments(propertiesOrInlineSnapshot, inlineSnapshotOrHint, hint) {\n\tlet inlineSnapshot;\n\tif (typeof propertiesOrInlineSnapshot === \"string\") {\n\t\tinlineSnapshot = stripSnapshotIndentation(propertiesOrInlineSnapshot);\n\t\treturn {\n\t\t\tinlineSnapshot,\n\t\t\thint: inlineSnapshotOrHint\n\t\t};\n\t}\n\tif (inlineSnapshotOrHint) inlineSnapshot = stripSnapshotIndentation(inlineSnapshotOrHint);\n\treturn {\n\t\tproperties: propertiesOrInlineSnapshot,\n\t\tinlineSnapshot,\n\t\thint\n\t};\n}\nfunction toMatchSnapshotImpl(options) {\n\tconst { assertion } = options;\n\tvalidateAssertion(assertion);\n\tconst assertionName = getAssertionName(assertion);\n\tconst test = getTest(assertion);\n\treturn getSnapshotClient().match({\n\t\treceived: options.received,\n\t\tproperties: options.properties,\n\t\tmessage: options.hint,\n\t\tisInline: options.isInline,\n\t\tinlineSnapshot: options.inlineSnapshot,\n\t\t// pass `assertionName` for inline snapshot stack probing\n\t\tassertionName,\n\t\t// set by async assertion (e.g. resolves/rejects) for inline snapshot stack probing\n\t\terror: chai.util.flag(assertion, \"error\"),\n\t\t...getTestNames(test)\n\t});\n}\nasync function toMatchFileSnapshotImpl(options) {\n\tconst { assertion } = options;\n\tvalidateAssertion(assertion);\n\tconst testNames = getTestNames(getTest(assertion));\n\tconst snapshotState = getSnapshotClient().getSnapshotState(testNames.filepath);\n\tconst rawSnapshotFile = await snapshotState.environment.resolveRawPath(testNames.filepath, options.filepath);\n\tconst rawSnapshotContent = await snapshotState.environment.readSnapshotFile(rawSnapshotFile);\n\treturn getSnapshotClient().match({\n\t\treceived: options.received,\n\t\tmessage: options.hint,\n\t\trawSnapshot: {\n\t\t\tfile: rawSnapshotFile,\n\t\t\tcontent: rawSnapshotContent ?? void 0\n\t\t},\n\t\t...testNames\n\t});\n}\nfunction assertMatchResult(result, customMessage) {\n\tif (!result.pass) {\n\t\tconst errorMessage = (customMessage ? `${customMessage}: ` : \"\") + result.message();\n\t\tthrow Object.assign(new Error(errorMessage), {\n\t\t\tactual: result.actual,\n\t\t\texpected: result.expected,\n\t\t\tdiffOptions: { expand: getWorkerState().config.snapshotOptions.expand }\n\t\t});\n\t}\n}\n/**\n* Composable snapshot matcher helpers for building custom snapshot matchers\n* with `expect.extend`.\n*\n* @experimental\n* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers\n*/\nconst Snapshots = {\n\t/**\n\t* Composable for building custom snapshot matchers via `expect.extend`.\n\t* Call with `this` bound to the matcher state. Returns `{ pass, message }`\n\t* compatible with the custom matcher return contract.\n\t*\n\t* @example\n\t* ```ts\n\t* import { Snapshots } from 'vitest/runtime'\n\t*\n\t* expect.extend({\n\t* toMatchTrimmedSnapshot(received: string) {\n\t* return Snapshots.toMatchSnapshot.call(this, received.slice(0, 10))\n\t* },\n\t* })\n\t* ```\n\t*\n\t* @experimental\n\t* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers\n\t*/\n\ttoMatchSnapshot(received, propertiesOrHint, hint) {\n\t\treturn toMatchSnapshotImpl({\n\t\t\tassertion: this.assertion,\n\t\t\treceived,\n\t\t\t...normalizeArguments(propertiesOrHint, hint)\n\t\t});\n\t},\n\t/**\n\t* Composable for building custom inline snapshot matchers via `expect.extend`.\n\t* Call with `this` bound to the matcher state. Returns `{ pass, message }`\n\t* compatible with the custom matcher return contract.\n\t*\n\t* @example\n\t* ```ts\n\t* import { Snapshots } from 'vitest/runtime'\n\t*\n\t* expect.extend({\n\t* toMatchTrimmedInlineSnapshot(received: string, inlineSnapshot?: string) {\n\t* return Snapshots.toMatchInlineSnapshot.call(this, received.slice(0, 10), inlineSnapshot)\n\t* },\n\t* })\n\t* ```\n\t*\n\t* @experimental\n\t* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers\n\t*/\n\ttoMatchInlineSnapshot(received, propertiesOrInlineSnapshot, inlineSnapshotOrHint, hint) {\n\t\treturn toMatchSnapshotImpl({\n\t\t\tassertion: this.assertion,\n\t\t\treceived,\n\t\t\tisInline: true,\n\t\t\t...normalizeInlineArguments(propertiesOrInlineSnapshot, inlineSnapshotOrHint, hint)\n\t\t});\n\t},\n\t/**\n\t* Composable for building custom file snapshot matchers via `expect.extend`.\n\t* Call with `this` bound to the matcher state. Returns a `Promise<{ pass, message }>`\n\t* compatible with the custom matcher return contract.\n\t*\n\t* @example\n\t* ```ts\n\t* import { Snapshots } from 'vitest/runtime'\n\t*\n\t* expect.extend({\n\t* async toMatchTrimmedFileSnapshot(received: string, file: string) {\n\t* return Snapshots.toMatchFileSnapshot.call(this, received.slice(0, 10), file)\n\t* },\n\t* })\n\t* ```\n\t*\n\t* @experimental\n\t* @see https://vitest.dev/guide/snapshot.html#custom-snapshot-matchers\n\t*/\n\ttoMatchFileSnapshot(received, filepath, hint) {\n\t\treturn toMatchFileSnapshotImpl({\n\t\t\tassertion: this.assertion,\n\t\t\treceived,\n\t\t\tfilepath,\n\t\t\thint\n\t\t});\n\t},\n\t/**\n\t* Composable for building custom domain-based snapshot matchers via `expect.extend`.\n\t*\n\t* Call this from a matcher and pass the domain adapter that defines capture,\n\t* rendering, parsing, and semantic matching behavior.\n\t*\n\t* @experimental\n\t*/\n\ttoMatchDomainSnapshot(domain, received) {\n\t\treturn toMatchDomainSnapshotImpl({\n\t\t\tassertion: this.assertion,\n\t\t\tadapter: domain,\n\t\t\treceived\n\t\t});\n\t},\n\t/**\n\t* Composable for building custom domain-based inline snapshot matchers via `expect.extend`.\n\t*\n\t* Call this from a matcher and pass the domain adapter that defines capture,\n\t* rendering, parsing, and semantic matching behavior.\n\t*\n\t* @experimental\n\t*/\n\ttoMatchDomainInlineSnapshot(domain, received, inlineSnapshot) {\n\t\treturn toMatchDomainSnapshotImpl({\n\t\t\tassertion: this.assertion,\n\t\t\tadapter: domain,\n\t\t\treceived,\n\t\t\tisInline: true,\n\t\t\tinlineSnapshot\n\t\t});\n\t}\n};\n\nchai.use(JestExtend);\nchai.use(JestChaiExpect);\nchai.use(ChaiStyleAssertions);\nchai.use(SnapshotPlugin);\nchai.use(JestAsymmetricMatchers);\nchai.use(MockPlugin);\n\nfunction createExpect(test) {\n\tconst expect = ((value, message) => {\n\t\tconst { assertionCalls } = getState(expect);\n\t\tsetState({ assertionCalls: assertionCalls + 1 }, expect);\n\t\tconst assert = chai.expect(value, message);\n\t\tconst _test = test || getCurrentTest();\n\t\tif (_test)\n // @ts-expect-error internal\n\t\treturn assert.withTest(_test);\n\t\telse return assert;\n\t});\n\tObject.assign(expect, chai.expect);\n\tObject.assign(expect, globalThis[ASYMMETRIC_MATCHERS_OBJECT]);\n\texpect.getState = () => getState(expect);\n\texpect.setState = (state) => setState(state, expect);\n\t// @ts-expect-error global is not typed\n\tconst globalState = getState(globalThis[GLOBAL_EXPECT]) || {};\n\tsetState({\n\t\t// this should also add \"snapshotState\" that is added conditionally\n\t\t...globalState,\n\t\tassertionCalls: 0,\n\t\tisExpectingAssertions: false,\n\t\tisExpectingAssertionsError: null,\n\t\texpectedAssertionsNumber: null,\n\t\texpectedAssertionsNumberErrorGen: null,\n\t\tget testPath() {\n\t\t\treturn getWorkerState().filepath;\n\t\t},\n\t\tcurrentTestName: test ? test.fullTestName ?? \"\" : globalState.currentTestName\n\t}, expect);\n\texpect.assert = chai.assert;\n\t// @ts-expect-error untyped\n\texpect.extend = (matchers) => chai.expect.extend(expect, matchers);\n\texpect.addEqualityTesters = (customTesters) => addCustomEqualityTesters(customTesters);\n\texpect.soft = (...args) => {\n\t\t// @ts-expect-error private soft access\n\t\treturn expect(...args).withContext({ soft: true });\n\t};\n\texpect.poll = createExpectPoll(expect);\n\texpect.unreachable = (message) => {\n\t\tchai.assert.fail(`expected${message ? ` \"${message}\" ` : \" \"}not to be reached`);\n\t};\n\tfunction assertions(expected) {\n\t\tconst errorGen = () => /* @__PURE__ */ new Error(`expected number of assertions to be ${expected}, but got ${expect.getState().assertionCalls}`);\n\t\tif (Error.captureStackTrace) Error.captureStackTrace(errorGen(), assertions);\n\t\texpect.setState({\n\t\t\texpectedAssertionsNumber: expected,\n\t\t\texpectedAssertionsNumberErrorGen: errorGen\n\t\t});\n\t}\n\tfunction hasAssertions() {\n\t\tconst error = /* @__PURE__ */ new Error(\"expected any number of assertion, but got none\");\n\t\tif (Error.captureStackTrace) Error.captureStackTrace(error, hasAssertions);\n\t\texpect.setState({\n\t\t\tisExpectingAssertions: true,\n\t\t\tisExpectingAssertionsError: error\n\t\t});\n\t}\n\tchai.util.addMethod(expect, \"assertions\", assertions);\n\tchai.util.addMethod(expect, \"hasAssertions\", hasAssertions);\n\texpect.extend(customMatchers);\n\texpect.extend(benchMatchers);\n\treturn expect;\n}\nconst globalExpect = createExpect();\nObject.defineProperty(globalThis, GLOBAL_EXPECT, {\n\tvalue: globalExpect,\n\twritable: true,\n\tconfigurable: true\n});\nconst assert = chai.assert;\nconst should = chai.should;\n\n/**\n* Gives access to injected context provided from the main thread.\n* This usually returns a value provided by `globalSetup` or an external library.\n*/\nfunction inject(key) {\n\treturn getWorkerState().providedContext[key];\n}\n\nconst now = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;\n/**\n* The built-in benchmark provider, backed by tinybench. Selected when\n* `benchmark.provider` is not configured.\n*/\nfunction createDefaultBenchmarkProvider(config) {\n\tlet benchIdx = 0;\n\treturn { async run({ test, options, registrations }) {\n\t\tconst currentIndex = ++benchIdx;\n\t\tconst tinybench = new Bench({\n\t\t\tsignal: test.context.signal,\n\t\t\tname: `${test.fullTestName} ${currentIndex}`,\n\t\t\tretainSamples: config.benchmark.retainSamples,\n\t\t\t...options,\n\t\t\tnow\n\t\t});\n\t\tfor (const { name, fn, fnOpts } of registrations) tinybench.add(name, fn, fnOpts);\n\t\tawait tinybench.run();\n\t\tconst errors = tinybench.tasks.filter((task) => task.result.state === \"errored\").map((task) => task.result.error);\n\t\tif (errors.length === 1) throw errors[0];\n\t\tif (errors.length > 1) throw new AggregateError(errors, \"Some benchmarks failed\");\n\t\treturn tinybench.tasks.map(toBenchResult);\n\t} };\n}\nfunction toBenchResult(task) {\n\tconst result = task.result;\n\tif (result.state !== \"completed\") throw new Error(`task \"${task.name}\" did not complete: received \"${result.state}\"`);\n\treturn {\n\t\t...result,\n\t\tname: task.name\n\t};\n}\n\nconst kRegistration = Symbol(\"registration\");\nconst kFromSource = Symbol(\"fromSource\");\nconst kPerProject = Symbol(\"perProject\");\nconst kWriteResult = Symbol(\"writeResult\");\nconst kFinalize = Symbol(\"finalize\");\nlet cachedProvider;\nasync function loadProviderModule(provider, moduleRunner) {\n\tlet mod;\n\ttry {\n\t\tmod = await moduleRunner.import(provider);\n\t} catch (error) {\n\t\tthrow new Error(`Failed to load benchmark provider from \"${provider}\".`, { cause: error });\n\t}\n\tif (mod.default == null) throw new Error(`Benchmark provider loaded from \"${provider}\" did not have a default export.`);\n\treturn mod.default;\n}\n/**\n* Resolves the benchmark provider for the current worker, importing a custom\n* provider module on first use. The result is cached for the lifetime of the\n* worker so a custom provider is imported at most once.\n*/\nfunction resolveBenchmarkProvider(config, moduleRunner) {\n\tif (!cachedProvider) {\n\t\tconst provider = config.benchmark.provider;\n\t\tcachedProvider = !provider ? Promise.resolve(createDefaultBenchmarkProvider(config)) : loadProviderModule(provider, moduleRunner);\n\t}\n\treturn cachedProvider;\n}\nfunction isFromRegistration(reg) {\n\treturn kFromSource in reg;\n}\nfunction substitutePath(template, projectName) {\n\treturn template.replace(/\\$\\{projectName\\}/g, projectName ?? \"\");\n}\nfunction createBench(test, config, moduleRunner) {\n\tconst pending = /* @__PURE__ */ new Set();\n\tconst resolveTemplate = (template) => substitutePath(template, config.benchmark.projectName);\n\tconst resolveFromSource = async (source) => {\n\t\tif (typeof source === \"function\") return source();\n\t\tconst resolved = resolveTemplate(source);\n\t\tconst data = await rpc().readBenchmarkResult(resolved);\n\t\tif (data == null) throw new Error(`\\`bench.from()\\` could not find a result file at \"${resolved}\". Run the source benchmark first to create it.`);\n\t\treturn data;\n\t};\n\tconst taskFromBaseline = (name, data) => ({\n\t\tname,\n\t\tlatency: data.latency,\n\t\tthroughput: data.throughput,\n\t\tperiod: data.period,\n\t\ttotalTime: data.totalTime,\n\t\trank: 0,\n\t\tfromStore: true\n\t});\n\tconst createCompareStorage = (results, fromResults) => {\n\t\treturn { get(name) {\n\t\t\tconst stored = fromResults?.get(name);\n\t\t\tif (stored) return stored;\n\t\t\tconst result = results.get(name);\n\t\t\tif (!result) throw new Error(`task \"${name}\" was not defined`);\n\t\t\treturn result;\n\t\t} };\n\t};\n\tconst serializeBenchmark = (results, name, taskMeta, fromTasks) => {\n\t\tconst tasks = results.map((result) => ({\n\t\t\tname: result.name,\n\t\t\tlatency: result.latency,\n\t\t\tthroughput: result.throughput,\n\t\t\tperiod: result.period,\n\t\t\ttotalTime: result.totalTime,\n\t\t\trank: 0,\n\t\t\t...taskMeta?.get(result.name)\n\t\t}));\n\t\tif (fromTasks) tasks.push(...fromTasks);\n\t\ttasks.sort((a, b) => a.latency.mean - b.latency.mean);\n\t\ttasks.forEach((task, idx) => {\n\t\t\ttask.rank = idx + 1;\n\t\t});\n\t\treturn {\n\t\t\tname,\n\t\t\ttasks\n\t\t};\n\t};\n\tconst recordBenchmark = async (results, name, taskMeta, fromTasks) => {\n\t\tconst serializedBenchmark = serializeBenchmark(results, name, taskMeta, fromTasks);\n\t\ttest.benchmarks.push(serializedBenchmark);\n\t\tawait rpc().onTestBenchmark(test.id, serializedBenchmark);\n\t};\n\tconst writeResultArtifact = async (template, result) => {\n\t\tconst resolved = resolveTemplate(template);\n\t\tconst data = {\n\t\t\tlatency: result.latency,\n\t\t\tthroughput: result.throughput,\n\t\t\tperiod: result.period,\n\t\t\ttotalTime: result.totalTime\n\t\t};\n\t\tawait rpc().writeBenchmarkResult(resolved, data);\n\t};\n\tconst groupName = (options) => options?.name ?? test.fullTestName;\n\tconst runGroup = async (registrations, options) => {\n\t\tconst workerState = getWorkerState();\n\t\tconst getterTracker = workerState.getterTracker;\n\t\tgetterTracker?.resetInvocations();\n\t\ttry {\n\t\t\tconst results = await (await resolveBenchmarkProvider(config, moduleRunner)).run({\n\t\t\t\ttest,\n\t\t\t\tconfig: config.benchmark,\n\t\t\t\tregistrations,\n\t\t\t\toptions\n\t\t\t});\n\t\t\tconst byName = /* @__PURE__ */ new Map();\n\t\t\tfor (const result of results) byName.set(result.name, result);\n\t\t\treturn byName;\n\t\t} finally {\n\t\t\tconst excessiveInvocations = config.benchmark.suppressExportGetterWarnings ? void 0 : getterTracker?.getExcessiveInvocations();\n\t\t\tif (excessiveInvocations?.length) {\n\t\t\t\tconst entries = excessiveInvocations.map(({ moduleId, exportName }) => ` - ${formatModuleId(moduleId, workerState.config.root)} > ${exportName}`).join(\"\\n\");\n\t\t\t\tconsole.warn([\n\t\t\t\t\ty.yellow(y.bold(\"Benchmark Warning\")),\n\t\t\t\t\t`Benchmark ${y.bold(`\"${groupName(options)}\"`)} accessed module export getters too many times.`,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"This can make results unreliable because export getters add overhead.\",\n\t\t\t\t\t\"See https://vitest.dev/guide/benchmarking#module-runner-overhead\",\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"Tracked exports:\",\n\t\t\t\t\tentries\n\t\t\t\t].join(\"\\n\"));\n\t\t\t}\n\t\t}\n\t};\n\tconst runSingle = async (name, fn, fnOpts, options, meta, writeResult) => {\n\t\tconst result = (await runGroup([{\n\t\t\tname,\n\t\t\tfn,\n\t\t\tfnOpts\n\t\t}], options)).get(name);\n\t\tif (!result) throw new Error(`benchmark provider did not return a result for \"${name}\"`);\n\t\tawait recordBenchmark([result], groupName(options), meta ? /* @__PURE__ */ new Map([[name, meta]]) : void 0);\n\t\tif (writeResult) await writeResultArtifact(writeResult, result);\n\t\treturn result;\n\t};\n\tconst runFrom = async (name, source) => {\n\t\tconst data = await resolveFromSource(source);\n\t\tconst benchmark = {\n\t\t\tname: test.fullTestName,\n\t\t\ttasks: [{\n\t\t\t\t...taskFromBaseline(name, data),\n\t\t\t\trank: 1\n\t\t\t}]\n\t\t};\n\t\ttest.benchmarks.push(benchmark);\n\t\tawait rpc().onTestBenchmark(test.id, benchmark);\n\t\treturn data;\n\t};\n\tconst bench = (nameOrFunction, a, b) => {\n\t\tvalidateBenchmarkProject(config);\n\t\tconst { fn, fnOpts, writeResult, perProject } = normalizeBenchArgs(a, b);\n\t\tconst name = typeof nameOrFunction === \"function\" ? nameOrFunction.name || \"<anonymous>\" : nameOrFunction;\n\t\tconst meta = perProject ? { perProject: true } : void 0;\n\t\tconst registration = {\n\t\t\t[kRegistration]: true,\n\t\t\tname,\n\t\t\tfn,\n\t\t\tfnOpts,\n\t\t\trun: (options) => {\n\t\t\t\tpending.delete(registration);\n\t\t\t\treturn runSingle(name, fn, fnOpts, options, meta, writeResult);\n\t\t\t}\n\t\t};\n\t\tif (perProject) registration[kPerProject] = true;\n\t\tif (writeResult) registration[kWriteResult] = writeResult;\n\t\tpending.add(registration);\n\t\treturn registration;\n\t};\n\tbench.from = (nameOrFunction, source) => {\n\t\tvalidateBenchmarkProject(config);\n\t\tif (typeof nameOrFunction !== \"string\" && typeof nameOrFunction !== \"function\") throw new TypeError(\"`bench.from()` requires a name (string or named function) as its first argument.\");\n\t\tif (typeof source !== \"string\" && typeof source !== \"function\") throw new TypeError(\"`bench.from()` expects a string path or a function returning the result data as its second argument.\");\n\t\tconst name = typeof nameOrFunction === \"function\" ? nameOrFunction.name || \"<anonymous>\" : nameOrFunction;\n\t\tconst registration = {\n\t\t\t[kRegistration]: true,\n\t\t\t[kFromSource]: source,\n\t\t\tname,\n\t\t\trun: () => {\n\t\t\t\tpending.delete(registration);\n\t\t\t\treturn runFrom(name, source);\n\t\t\t}\n\t\t};\n\t\tpending.add(registration);\n\t\treturn registration;\n\t};\n\tbench.compare = async (...args) => {\n\t\tvalidateBenchmarkProject(config);\n\t\t// extract optional trailing BenchRunOptions argument\n\t\tconst lastArg = args.at(-1);\n\t\tconst benchOptions = lastArg != null && typeof lastArg === \"object\" && !(kRegistration in lastArg) ? args.pop() : void 0;\n\t\tconst registrations = args;\n\t\t// Mark every passed-in registration as consumed before validation so a\n\t\t// throwing `bench.compare()` (wrong arity, wrong shape) doesn't also\n\t\t// trigger the unrun-bench warning — the user's intent was to consume them.\n\t\tfor (const reg of registrations) if (reg != null && typeof reg === \"object\" && kRegistration in reg) pending.delete(reg);\n\t\tif (registrations.length < 2) throw new SyntaxError(`\\`bench.compare()\\` requires at least 2 benchmarks, received ${registrations.length} instead. ${registrations.length === 1 ? \"Consider calling `bench().run()`. \" : \"Define benchmarks by calling `bench()`. \"}See https://vitest.dev/guide/benchmarking#comparing-benchmarks`);\n\t\tfor (const reg of registrations) if (reg == null || typeof reg !== \"object\" || !(kRegistration in reg)) throw new SyntaxError(\"`bench.compare()` expects every argument to be the return value of `bench` or `bench.from`.\");\n\t\tconst runnable = [];\n\t\tconst fromEntries = [];\n\t\tfor (const reg of registrations) if (isFromRegistration(reg)) fromEntries.push(reg);\n\t\telse runnable.push(reg);\n\t\tconst taskMeta = /* @__PURE__ */ new Map();\n\t\tfor (const reg of runnable) if (reg[kPerProject]) taskMeta.set(reg.name, { perProject: true });\n\t\tconst fromResults = /* @__PURE__ */ new Map();\n\t\tconst fromTasks = [];\n\t\tif (fromEntries.length > 0) {\n\t\t\tconst resolved = await Promise.all(fromEntries.map(async (reg) => {\n\t\t\t\treturn {\n\t\t\t\t\treg,\n\t\t\t\t\tdata: await resolveFromSource(reg[kFromSource])\n\t\t\t\t};\n\t\t\t}));\n\t\t\tfor (const { reg, data } of resolved) {\n\t\t\t\tfromResults.set(reg.name, data);\n\t\t\t\tfromTasks.push(taskFromBaseline(reg.name, data));\n\t\t\t}\n\t\t}\n\t\tlet results = /* @__PURE__ */ new Map();\n\t\tif (runnable.length > 0) results = await runGroup(runnable.map((reg) => ({\n\t\t\tname: reg.name,\n\t\t\tfn: reg.fn,\n\t\t\tfnOpts: reg.fnOpts\n\t\t})), benchOptions);\n\t\tawait recordBenchmark(Array.from(results.values()), groupName(benchOptions), taskMeta, fromTasks);\n\t\t// write artifacts for every runnable registration that requested it. We\n\t\t// do this after recording so a write failure can't be confused with a\n\t\t// benchmark failure in the reporter output.\n\t\tawait Promise.all(runnable.filter((reg) => reg[kWriteResult] != null).map((reg) => {\n\t\t\tconst result = results.get(reg.name);\n\t\t\treturn writeResultArtifact(reg[kWriteResult], result);\n\t\t}));\n\t\treturn createCompareStorage(results, fromResults);\n\t};\n\tbench[kFinalize] = () => {\n\t\tif (pending.size === 0) return;\n\t\tconst names = Array.from(pending, (reg) => `\"${reg.name}\"`).join(\", \");\n\t\tpending.clear();\n\t\tconsole.warn([\n\t\t\ty.yellow(y.bold(\"Benchmark Warning\")),\n\t\t\t`Test ${y.bold(`\"${test.fullTestName}\"`)} registered benchmarks that never ran: ${names}.`,\n\t\t\t\"\",\n\t\t\t\"Call `.run()` on the registration, or pass it to `bench.compare()`.\",\n\t\t\t\"See https://vitest.dev/guide/benchmarking#defining-a-benchmark\"\n\t\t].join(\"\\n\"));\n\t};\n\treturn bench;\n}\nfunction formatModuleId(moduleId, root) {\n\tif (!root || !isAbsolute(moduleId)) return moduleId;\n\treturn relative(root, moduleId);\n}\nfunction normalizeBenchArgs(a, b) {\n\tif (typeof a === \"function\") {\n\t\tif (b !== void 0) throw new TypeError(\"`bench()` does not accept options as the third argument. Pass options as the second argument instead: `bench(name, options, fn)`.\");\n\t\treturn {\n\t\t\tfn: a,\n\t\t\tfnOpts: void 0,\n\t\t\twriteResult: void 0,\n\t\t\tperProject: false\n\t\t};\n\t}\n\tif (typeof b !== \"function\") throw new TypeError(\"`bench()` expects a benchmark function. Call `bench(name, fn)` or `bench(name, options, fn)`.\");\n\t// Strip vitest-specific fields only when present so we don't allocate a new\n\t// object — preserving referential identity matters: users inspect\n\t// `registration.fnOpts` and the provider sees the same object the caller\n\t// passed in.\n\tif (a.writeResult === void 0 && a.perProject === void 0) return {\n\t\tfn: b,\n\t\tfnOpts: a,\n\t\twriteResult: void 0,\n\t\tperProject: false\n\t};\n\tconst { writeResult, perProject, ...fnOpts } = a;\n\treturn {\n\t\tfn: b,\n\t\tfnOpts: Object.keys(fnOpts).length > 0 ? fnOpts : void 0,\n\t\twriteResult,\n\t\tperProject: perProject ?? false\n\t};\n}\nfunction validateBenchmarkProject(config) {\n\tif (!config.benchmark.enabled) throw new Error(\"Cannot use the `bench` test-context fixture within a regular test run. Benchmarks are inherently flaky, so Vitest runs them in a dedicated project based on the `benchmark.include` pattern (default `**/*.{bench,benchmark}.?(c|m)[jt]s?(x)`). Move this code to a file matched by `benchmark.include`, and make sure `bench` is destructured from the test context (`test('...', async ({ bench }) => { ... })`) — it is not a top-level export of `vitest`. See https://vitest.dev/guide/benchmarking#stability\");\n}\n\nclass TestRunner {\n\tconfig;\n\tsnapshotClient = getSnapshotClient();\n\tworkerState = getWorkerState();\n\tmoduleRunner;\n\tcancelRun = false;\n\tassertionsErrors = /* @__PURE__ */ new WeakMap();\n\tbenchInstances = /* @__PURE__ */ new WeakMap();\n\tpool = this.workerState.ctx.pool;\n\t/**\n\t* @internal\n\t*/\n\t_otel;\n\tviteEnvironment;\n\tviteModuleRunner;\n\tconstructor(config) {\n\t\tthis.config = config;\n\t\tconst environment = this.workerState.environment;\n\t\tthis.viteEnvironment = environment.viteEnvironment || environment.name;\n\t\tthis.viteModuleRunner = config.experimental.viteModuleRunner;\n\t\t// vm pools downgrade worker-scoped fixtures to file scope, so the hook has\n\t\t// nothing to tear down there; registering it anyway would keep the\n\t\t// listener, an in-context closure, alive for the lifetime of the worker\n\t\tif (this.pool !== \"vmThreads\" && this.pool !== \"vmForks\") this.onCleanupWorkerContext = (listener) => this.workerState.onCleanup(listener);\n\t}\n\timportFile(filepath, source) {\n\t\treturn this._otel.$(`vitest.module.import_${source === \"setup\" ? \"setup\" : \"spec\"}`, { attributes: { \"code.file.path\": filepath } }, () => {\n\t\t\tif (!this.viteModuleRunner) filepath = `${filepath}?vitest=${Date.now()}`;\n\t\t\tconst options = this.viteModuleRunner ? { invalidate: true } : void 0;\n\t\t\treturn this.moduleRunner.import(filepath, options);\n\t\t});\n\t}\n\tonCollectStart(file) {\n\t\tthis.workerState.current = file;\n\t}\n\tonCleanupWorkerContext;\n\tonAfterRunFiles(_files) {\n\t\tthis.snapshotClient.clear();\n\t\tthis.workerState.current = void 0;\n\t}\n\tasync onAfterRunSuite(suite) {\n\t\tif (this.config.logHeapUsage && typeof process !== \"undefined\") suite.result.heap = process.memoryUsage().heapUsed;\n\t\tif (suite.mode !== \"skip\" && \"filepath\" in suite) {\n\t\t\t// mark snapshots in skipped tests as not obsolete\n\t\t\tfor (const test of getTests(suite)) if (test.mode === \"skip\") {\n\t\t\t\tconst name = getNames(test).slice(1).join(\" > \");\n\t\t\t\tthis.snapshotClient.skipTest(suite.file.filepath, name);\n\t\t\t}\n\t\t\tconst result = await this.snapshotClient.finish(suite.file.filepath);\n\t\t\tif (this.workerState.config.snapshotOptions.updateSnapshot === \"none\" && result.unchecked) {\n\t\t\t\tlet message = `Obsolete snapshots found when no snapshot update is expected.\\n`;\n\t\t\t\tfor (const key of result.uncheckedKeys) message += `· ${key}\\n`;\n\t\t\t\tsuite.result.errors ??= [];\n\t\t\t\tsuite.result.errors.push(processError(new Error(message)));\n\t\t\t\tsuite.result.state = \"fail\";\n\t\t\t}\n\t\t\tawait rpc().snapshotSaved(result);\n\t\t}\n\t\tthis.workerState.current = suite.suite || suite.file;\n\t}\n\tonAfterRunTask(test) {\n\t\tif (this.config.logHeapUsage && typeof process !== \"undefined\") test.result.heap = process.memoryUsage().heapUsed;\n\t\tthis.workerState.current = test.suite || test.file;\n\t}\n\tcancel(_reason) {\n\t\tthis.cancelRun = true;\n\t}\n\tinjectValue(key) {\n\t\t// inject has a very limiting type controlled by ProvidedContext\n\t\t// some tests override it which causes the build to fail\n\t\treturn inject(key);\n\t}\n\tasync onBeforeRunTask(test) {\n\t\tif (this.cancelRun) test.mode = \"skip\";\n\t\tif (test.mode !== \"run\" && test.mode !== \"queued\") return;\n\t\tthis.workerState.current = test;\n\t}\n\tasync onBeforeRunSuite(suite) {\n\t\tif (this.cancelRun) suite.mode = \"skip\";\n\t\t// initialize snapshot state before running file suite\n\t\tif (suite.mode !== \"skip\" && \"filepath\" in suite) await this.snapshotClient.setup(suite.file.filepath, this.workerState.config.snapshotOptions);\n\t\tthis.workerState.current = suite;\n\t}\n\tonBeforeTryTask(test, _options) {\n\t\tclearModuleMocks(this.config);\n\t\tthis.snapshotClient.clearTest(test.file.filepath, test.id);\n\t\tsetState({\n\t\t\tassertionCalls: 0,\n\t\t\tisExpectingAssertions: false,\n\t\t\tisExpectingAssertionsError: null,\n\t\t\texpectedAssertionsNumber: null,\n\t\t\texpectedAssertionsNumberErrorGen: null,\n\t\t\tcurrentTestName: getTestName(test),\n\t\t\tsnapshotState: this.snapshotClient.getSnapshotState(test.file.filepath)\n\t\t}, globalThis[GLOBAL_EXPECT]);\n\t}\n\tonAfterTryTask(test) {\n\t\tthis.benchInstances.get(test)?.[kFinalize]();\n\t\tconst { assertionCalls, expectedAssertionsNumber, expectedAssertionsNumberErrorGen, isExpectingAssertions, isExpectingAssertionsError } = test.context._local ? test.context.expect.getState() : getState(globalThis[GLOBAL_EXPECT]);\n\t\tif (expectedAssertionsNumber !== null && assertionCalls !== expectedAssertionsNumber) throw expectedAssertionsNumberErrorGen();\n\t\tif (isExpectingAssertions === true && assertionCalls === 0) throw isExpectingAssertionsError;\n\t\tif (this.config.expect.requireAssertions && assertionCalls === 0) throw this.assertionsErrors.get(test);\n\t}\n\textendTaskContext(context) {\n\t\t// create error during the test initialization so we have a nice stack trace\n\t\tif (this.config.expect.requireAssertions) this.assertionsErrors.set(context.task, /* @__PURE__ */ new Error(\"expected any number of assertion, but got none\"));\n\t\tlet _expect;\n\t\tObject.defineProperty(context, \"expect\", { get() {\n\t\t\tif (!_expect) _expect = createExpect(context.task);\n\t\t\treturn _expect;\n\t\t} });\n\t\tObject.defineProperty(context, \"_local\", { get() {\n\t\t\treturn _expect != null;\n\t\t} });\n\t\tlet _bench;\n\t\tconst runnerConfig = this.config;\n\t\tconst benchInstances = this.benchInstances;\n\t\tconst moduleRunner = this.moduleRunner;\n\t\tObject.defineProperty(context, \"bench\", { get() {\n\t\t\tif (!_bench) {\n\t\t\t\t_bench = createBench(context.task, runnerConfig, moduleRunner);\n\t\t\t\tbenchInstances.set(context.task, _bench);\n\t\t\t}\n\t\t\treturn _bench;\n\t\t} });\n\t\treturn context;\n\t}\n\tgetImportDurations() {\n\t\tconst { limit } = this.config.experimental.importDurations;\n\t\t// skip sorting if limit is 0\n\t\tif (limit === 0) return {};\n\t\t// Sort by duration descending and keep top entries\n\t\tconst sortedEntries = [...this.workerState.moduleExecutionInfo?.entries() || []].sort(([, a], [, b]) => b.duration - a.duration).slice(0, limit);\n\t\tconst importDurations = {};\n\t\tfor (const [filepath, { duration, selfTime, external, importer }] of sortedEntries) importDurations[normalize(filepath)] = {\n\t\t\tselfTime,\n\t\t\ttotalTime: duration,\n\t\t\texternal,\n\t\t\timporter\n\t\t};\n\t\treturn importDurations;\n\t}\n\tgetModuleFetchDuration() {\n\t\treturn this.workerState.durations.fetch;\n\t}\n\ttrace = (name, attributes, cb) => {\n\t\tconst options = typeof attributes === \"object\" ? { attributes } : {};\n\t\treturn this._otel.$(`vitest.test.runner.${name}`, options, cb || attributes);\n\t};\n\t__setTraces(traces) {\n\t\tthis._otel = traces;\n\t}\n\tstatic createTaskCollector = createTaskCollector;\n\tstatic getCurrentSuite = getCurrentSuite;\n\tstatic getCurrentTest = getCurrentTest;\n\tstatic createChainable = createChainable;\n\tstatic getSuiteHooks = getHooks;\n\tstatic getTestFn = getFn;\n\tstatic setSuiteHooks = getHooks;\n\tstatic setTestFn = getFn;\n\tstatic matchesTags = matchesTags;\n\tstatic createFileTask = createFileTask;\n}\nfunction clearModuleMocks(config) {\n\tconst { clearMocks, mockReset, restoreMocks, unstubEnvs, unstubGlobals } = config;\n\tif (restoreMocks) vi.restoreAllMocks();\n\tif (mockReset) vi.resetAllMocks();\n\tif (clearMocks) vi.clearAllMocks();\n\tif (unstubEnvs) vi.unstubAllEnvs();\n\tif (unstubGlobals) vi.unstubAllGlobals();\n}\n\nconst assertType = function assertType() {};\n\nvar index = /*#__PURE__*/Object.freeze({\n\t__proto__: null,\n\tEvaluatedModules: VitestEvaluatedModules,\n\tSnapshots: Snapshots,\n\tTestRunner: TestRunner,\n\tafterAll: afterAll,\n\tafterEach: afterEach,\n\taroundAll: aroundAll,\n\taroundEach: aroundEach,\n\tassert: assert,\n\tassertType: assertType,\n\tbeforeAll: beforeAll,\n\tbeforeEach: beforeEach,\n\tchai: chai,\n\tcreateExpect: createExpect,\n\tdescribe: describe,\n\texpect: globalExpect,\n\texpectTypeOf: expectTypeOf,\n\tinject: inject,\n\tit: it,\n\tonTestFailed: onTestFailed,\n\tonTestFinished: onTestFinished,\n\trecordArtifact: recordArtifact,\n\tshould: should,\n\tsuite: suite,\n\ttest: test,\n\tvi: vi,\n\tvitest: vitest\n});\n\nexport { Snapshots as S, TestRunner as T, assert as a, assertType as b, createExpect as c, inject as d, vitest as e, globalExpect as g, index as i, should as s, vi as v };\n"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":";;AAAA,MAAM,oBAAoB;AAI1B,SAAS,iBAAiB;CAEzB,MAAM,cAAc,WAAW;CAC/B,IAAI,CAAC,aAAa,MAAM,IAAI,MAAM,6cAA6c;CAC/e,OAAO;AACR;AAcA,SAAS,iBAAiB;CACzB,OAAO,OAAO,YAAY,eAAe,CAAC,CAAC,QAAQ;AACpD;AACA,SAAS,aAAa,SAAS,aAAa,OAAO;CAClD,MAAM,YAAY;EACjB;EACA;EACA;EACA,GAAG,CAAC,aAAa,CAAC,QAAQ,IAAI,CAAC;CAChC;CACA,QAAQ,cAAc,SAAS,MAAM,SAAS;EAC7C,IAAI,UAAU,MAAM,OAAO,GAAG,KAAK,IAAI,CAAC,GAAG;EAC3C,KAAK,UAAU,KAAK;EACpB,KAAK,UAAU,KAAK;EACpB,KAAK,YAAY;EACjB,KAAK,UAAU,MAAM;CACtB,CAAC;AACF;;;ACxCA,SAAS,eAAe,IAAI;CAC3B,OAAO,OAAO,OAAO,cAAc,qBAAqB,MAAM,GAAG,oBAAoB;AACtF;AACA,MAAM,+BAA+B,IAAI,IAAI;AAI7C,MAAM,oC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