storybook 10.2.0-alpha.1 → 10.2.0-alpha.11

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 (121) hide show
  1. package/dist/_browser-chunks/{Color-TNPFN3FC.js → Color-XESOIGZP.js} +9 -568
  2. package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
  3. package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
  5. package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-G4M6MXF4.js} +31 -27
  6. package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
  7. package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
  8. package/dist/_browser-chunks/{chunk-3IAH5M2U.js → chunk-IYCKG66Y.js} +5 -5
  9. package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
  10. package/dist/_browser-chunks/{chunk-FQ7SLVLR.js → chunk-JVRDBUUP.js} +20 -1
  11. package/dist/_browser-chunks/{chunk-GFLS4VP3.js → chunk-LCHBOIHN.js} +6 -6
  12. package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
  13. package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
  14. package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-NQJGOFZV.js} +4 -4
  15. package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
  16. package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-POMIZRJL.js} +3 -3
  17. package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-Q5RYDXT3.js} +38 -30
  18. package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-RBABWY22.js} +18 -18
  19. package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
  20. package/dist/_browser-chunks/{chunk-AIOS4NGK.js → chunk-SWJP5COI.js} +11 -11
  21. package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
  22. package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
  23. package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
  24. package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
  25. package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
  26. package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
  27. package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
  28. package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
  29. package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
  30. package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-MNAUTRWW.js} +23 -22
  31. package/dist/_node-chunks/camelcase-6H4Z5R35.js +62 -0
  32. package/dist/_node-chunks/chunk-2CGMTALY.js +61 -0
  33. package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-2DZGIXSN.js} +26 -7
  34. package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-5L22ATN3.js} +165 -191
  35. package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-7FH4U6XC.js} +8 -9
  36. package/dist/_node-chunks/chunk-CMQYFTBQ.js +126 -0
  37. package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-F3OHO2BC.js} +34 -24
  38. package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-FWVZUHZX.js} +6 -6
  39. package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-GRH5JFTX.js} +31 -31
  40. package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-HXFHXVEW.js} +5434 -1625
  41. package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-KAIK7772.js} +17 -17
  42. package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-KU4SWNDM.js} +59 -147
  43. package/dist/_node-chunks/chunk-KX7OAVXY.js +18 -0
  44. package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-L22DGLKT.js} +6 -6
  45. package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-MAMDH2R3.js} +8 -8
  46. package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-MAQAZSXK.js} +7 -7
  47. package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-O7O53MP7.js} +62 -124
  48. package/dist/_node-chunks/chunk-P663SP7U.js +20 -0
  49. package/dist/_node-chunks/chunk-RI4IBKXZ.js +23 -0
  50. package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-RJY225Z5.js} +8 -8
  51. package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-TFY6QV57.js} +48 -26
  52. package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-TOMGRF4A.js} +77 -16
  53. package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-UNUWAUGG.js} +6 -6
  54. package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-UOHDPKIW.js} +15 -15
  55. package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-URWJMVZI.js} +9 -9
  56. package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-UYMZAYR4.js} +597 -593
  57. package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-WHIAK7AH.js} +111 -38
  58. package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-WQ4WQYSZ.js} +9 -9
  59. package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-ZOBQQCBA.js} +10 -10
  60. package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-WNZSV3ZO.js} +155 -164
  61. package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-YUWKNDR2.js} +16 -16
  62. package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-K5BCUPEA.js} +11 -11
  63. package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-ROJSQI7F.js} +19 -15
  64. package/dist/babel/index.js +10 -10
  65. package/dist/bin/core.js +40 -34
  66. package/dist/bin/dispatcher.js +11 -11
  67. package/dist/bin/loader.js +14 -11
  68. package/dist/channels/index.js +3 -3
  69. package/dist/cli/index.d.ts +1330 -250
  70. package/dist/cli/index.js +18 -18
  71. package/dist/common/index.d.ts +1344 -289
  72. package/dist/common/index.js +22 -22
  73. package/dist/components/index.d.ts +9 -2
  74. package/dist/components/index.js +339 -317
  75. package/dist/core-events/index.d.ts +4 -2
  76. package/dist/core-events/index.js +4 -2
  77. package/dist/core-server/index.d.ts +71 -2
  78. package/dist/core-server/index.js +3381 -3529
  79. package/dist/core-server/presets/common-manager.css +2 -2
  80. package/dist/core-server/presets/common-manager.js +93 -65
  81. package/dist/core-server/presets/common-override-preset.js +9 -9
  82. package/dist/core-server/presets/common-preset.js +86 -118
  83. package/dist/csf/index.d.ts +41 -11
  84. package/dist/csf/index.js +46 -39
  85. package/dist/csf-tools/index.js +9 -9
  86. package/dist/docs-tools/index.js +5 -5
  87. package/dist/instrumenter/index.js +1 -1
  88. package/dist/manager/globals-runtime.js +9402 -7204
  89. package/dist/manager/runtime.js +195 -153
  90. package/dist/manager-api/index.js +34 -26
  91. package/dist/manager-errors.d.ts +24 -0
  92. package/dist/manager-errors.js +2 -2
  93. package/dist/mocking-utils/index.js +14 -14
  94. package/dist/node-logger/index.d.ts +1456 -111
  95. package/dist/node-logger/index.js +9 -9
  96. package/dist/preview/runtime.js +4608 -2436
  97. package/dist/preview-api/index.d.ts +67 -68
  98. package/dist/preview-api/index.js +12 -12
  99. package/dist/preview-errors.d.ts +24 -0
  100. package/dist/preview-errors.js +3 -3
  101. package/dist/router/index.js +11 -11
  102. package/dist/server-errors.d.ts +59 -3
  103. package/dist/server-errors.js +22 -11
  104. package/dist/telemetry/index.d.ts +10 -3
  105. package/dist/telemetry/index.js +27 -25
  106. package/dist/test/index.js +3237 -1653
  107. package/dist/theming/create.js +3 -3
  108. package/dist/theming/index.d.ts +5 -5
  109. package/dist/theming/index.js +38 -38
  110. package/dist/types/index.d.ts +12 -6
  111. package/dist/viewport/index.d.ts +3 -3
  112. package/package.json +27 -33
  113. package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
  114. package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
  115. package/dist/_node-chunks/camelcase-64II7H4U.js +0 -37
  116. package/dist/_node-chunks/chunk-4EZYJUAC.js +0 -70
  117. package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
  118. package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
  119. package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
  120. package/dist/_node-chunks/chunk-VR5LMO3F.js +0 -72
  121. package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  mapValues
3
- } from "./chunk-AIOS4NGK.js";
3
+ } from "./chunk-SWJP5COI.js";
4
4
  import {
5
5
  isPlainObject
6
- } from "./chunk-GFLS4VP3.js";
6
+ } from "./chunk-LCHBOIHN.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __toESM
10
10
  } from "./chunk-A242L54C.js";
11
11
 
12
- // ../node_modules/jsdoc-type-pratt-parser/dist/index.js
12
+ // ../../node_modules/jsdoc-type-pratt-parser/dist/index.js
13
13
  var require_dist = __commonJS({
14
- "../node_modules/jsdoc-type-pratt-parser/dist/index.js"(exports, module) {
14
+ "../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(exports, module) {
15
15
  (function(global, factory) {
16
16
  typeof exports == "object" && typeof module < "u" ? factory(exports) : typeof define == "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis < "u" ? globalThis : global || self, factory(global.jtpp = {}));
17
17
  })(exports, (function(exports2) {
@@ -2115,7 +2115,7 @@ var SIGNATURE_REGEXP = /^\(.*\) => /, convert2 = (type) => {
2115
2115
 
2116
2116
  // src/docs-tools/argTypes/convert/typescript/convert.ts
2117
2117
  import { UnknownArgTypesError as UnknownArgTypesError2 } from "storybook/internal/preview-errors";
2118
- var convertSig2 = (type) => {
2118
+ var isLiteral2 = (type) => type.name === "literal", isUndefined = (type) => type.name === "undefined", convertSig2 = (type) => {
2119
2119
  switch (type.type) {
2120
2120
  case "function":
2121
2121
  return { name: "function" };
@@ -2142,16 +2142,20 @@ var convertSig2 = (type) => {
2142
2142
  return { ...base, name: "array", value: type.elements.map(convert3) };
2143
2143
  case "signature":
2144
2144
  return { ...base, ...convertSig2(type) };
2145
- case "union":
2146
- let result;
2147
- return type.elements?.every((element) => element.name === "literal") ? result = {
2148
- ...base,
2149
- name: "enum",
2150
- // @ts-expect-error fix types
2151
- value: type.elements?.map((v) => parseLiteral(v.value))
2152
- } : result = { ...base, name, value: type.elements?.map(convert3) }, result;
2145
+ case "union": {
2146
+ let nonUndefinedElements = type.elements.filter((element) => !isUndefined(element));
2147
+ if (nonUndefinedElements.length > 0 && nonUndefinedElements.every(isLiteral2)) {
2148
+ let literalElements = nonUndefinedElements.filter(isLiteral2);
2149
+ return {
2150
+ ...base,
2151
+ name: "enum",
2152
+ value: literalElements.map((element) => parseLiteral(element.value))
2153
+ };
2154
+ }
2155
+ return { ...base, name, value: type.elements.map(convert3) };
2156
+ }
2153
2157
  case "intersection":
2154
- return { ...base, name, value: type.elements?.map(convert3) };
2158
+ return { ...base, name, value: type.elements.map(convert3) };
2155
2159
  default:
2156
2160
  return { ...base, name: "other", value: name };
2157
2161
  }
@@ -2205,13 +2209,13 @@ function getDocgenDescription(component) {
2205
2209
  return hasDocgen(component) ? str(component.__docgenInfo.description) : "";
2206
2210
  }
2207
2211
 
2208
- // ../node_modules/comment-parser/es6/primitives.js
2212
+ // ../../node_modules/comment-parser/es6/primitives.js
2209
2213
  var Markers;
2210
2214
  (function(Markers2) {
2211
2215
  Markers2.start = "/**", Markers2.nostart = "/***", Markers2.delim = "*", Markers2.end = "*/";
2212
2216
  })(Markers = Markers || (Markers = {}));
2213
2217
 
2214
- // ../node_modules/comment-parser/es6/util.js
2218
+ // ../../node_modules/comment-parser/es6/util.js
2215
2219
  function isSpace(source) {
2216
2220
  return /^\s+$/.test(source);
2217
2221
  }
@@ -2233,7 +2237,7 @@ function seedTokens(tokens = {}) {
2233
2237
  return Object.assign({ start: "", delimiter: "", postDelimiter: "", tag: "", postTag: "", name: "", postName: "", type: "", postType: "", description: "", end: "", lineEnd: "" }, tokens);
2234
2238
  }
2235
2239
 
2236
- // ../node_modules/comment-parser/es6/parser/block-parser.js
2240
+ // ../../node_modules/comment-parser/es6/parser/block-parser.js
2237
2241
  var reTag = /^@\S+/;
2238
2242
  function getParser({ fence = "```" } = {}) {
2239
2243
  let fencer = getFencer(fence), toggleFence = (source, isFenced) => fencer(source) ? !isFenced : isFenced;
@@ -2248,7 +2252,7 @@ function getFencer(fence) {
2248
2252
  return typeof fence == "string" ? (source) => source.split(fence).length % 2 === 0 : fence;
2249
2253
  }
2250
2254
 
2251
- // ../node_modules/comment-parser/es6/parser/source-parser.js
2255
+ // ../../node_modules/comment-parser/es6/parser/source-parser.js
2252
2256
  function getParser2({ startLine = 0, markers = Markers } = {}) {
2253
2257
  let block = null, num = startLine;
2254
2258
  return function(source) {
@@ -2268,7 +2272,7 @@ function getParser2({ startLine = 0, markers = Markers } = {}) {
2268
2272
  };
2269
2273
  }
2270
2274
 
2271
- // ../node_modules/comment-parser/es6/parser/spec-parser.js
2275
+ // ../../node_modules/comment-parser/es6/parser/spec-parser.js
2272
2276
  function getParser3({ tokenizers }) {
2273
2277
  return function(source) {
2274
2278
  var _a;
@@ -2280,7 +2284,7 @@ function getParser3({ tokenizers }) {
2280
2284
  };
2281
2285
  }
2282
2286
 
2283
- // ../node_modules/comment-parser/es6/parser/tokenizers/tag.js
2287
+ // ../../node_modules/comment-parser/es6/parser/tokenizers/tag.js
2284
2288
  function tagTokenizer() {
2285
2289
  return (spec) => {
2286
2290
  let { tokens } = spec.source[0], match = tokens.description.match(/\s*(@(\S+))(\s*)/);
@@ -2293,7 +2297,7 @@ function tagTokenizer() {
2293
2297
  };
2294
2298
  }
2295
2299
 
2296
- // ../node_modules/comment-parser/es6/parser/tokenizers/type.js
2300
+ // ../../node_modules/comment-parser/es6/parser/tokenizers/type.js
2297
2301
  function typeTokenizer(spacing = "compact") {
2298
2302
  let join2 = getJoiner(spacing);
2299
2303
  return (spec) => {
@@ -2327,7 +2331,7 @@ function getJoiner(spacing) {
2327
2331
  `) : spacing;
2328
2332
  }
2329
2333
 
2330
- // ../node_modules/comment-parser/es6/parser/tokenizers/name.js
2334
+ // ../../node_modules/comment-parser/es6/parser/tokenizers/name.js
2331
2335
  var isQuoted = (s) => s && s.startsWith('"') && s.endsWith('"');
2332
2336
  function nameTokenizer() {
2333
2337
  let typeEnd = (num, { tokens }, i) => tokens.type === "" ? num : i;
@@ -2378,7 +2382,7 @@ function nameTokenizer() {
2378
2382
  };
2379
2383
  }
2380
2384
 
2381
- // ../node_modules/comment-parser/es6/parser/tokenizers/description.js
2385
+ // ../../node_modules/comment-parser/es6/parser/tokenizers/description.js
2382
2386
  function descriptionTokenizer(spacing = "compact", markers = Markers) {
2383
2387
  let join2 = getJoiner2(spacing);
2384
2388
  return (spec) => (spec.description = join2(spec.source, markers), spec);
@@ -2399,7 +2403,7 @@ function preserveJoiner(lines, markers = Markers) {
2399
2403
  `);
2400
2404
  }
2401
2405
 
2402
- // ../node_modules/comment-parser/es6/parser/index.js
2406
+ // ../../node_modules/comment-parser/es6/parser/index.js
2403
2407
  function getParser4({ startLine = 0, fence = "```", spacing = "compact", markers = Markers, tokenizers = [
2404
2408
  tagTokenizer(),
2405
2409
  typeTokenizer(spacing),
@@ -2427,7 +2431,7 @@ function getParser4({ startLine = 0, fence = "```", spacing = "compact", markers
2427
2431
  };
2428
2432
  }
2429
2433
 
2430
- // ../node_modules/comment-parser/es6/stringifier/index.js
2434
+ // ../../node_modules/comment-parser/es6/stringifier/index.js
2431
2435
  function join(tokens) {
2432
2436
  return tokens.start + tokens.delimiter + tokens.postDelimiter + tokens.tag + tokens.postTag + tokens.type + tokens.postType + tokens.name + tokens.postName + tokens.description + tokens.end + tokens.lineEnd;
2433
2437
  }
@@ -2436,7 +2440,7 @@ function getStringifier() {
2436
2440
  `);
2437
2441
  }
2438
2442
 
2439
- // ../node_modules/comment-parser/es6/stringifier/inspect.js
2443
+ // ../../node_modules/comment-parser/es6/stringifier/inspect.js
2440
2444
  var zeroWidth = {
2441
2445
  line: 0,
2442
2446
  start: 0,
@@ -2454,7 +2458,7 @@ var zeroWidth = {
2454
2458
  };
2455
2459
  var fields = Object.keys(zeroWidth);
2456
2460
 
2457
- // ../node_modules/comment-parser/es6/index.js
2461
+ // ../../node_modules/comment-parser/es6/index.js
2458
2462
  function parse(source, options = {}) {
2459
2463
  return getParser4(options)(source);
2460
2464
  }
@@ -2,7 +2,7 @@ import {
2
2
  curriedDarken$1,
3
3
  curriedLighten$1,
4
4
  rgba
5
- } from "./chunk-AXG2BOBL.js";
5
+ } from "./chunk-S6TK43XQ.js";
6
6
 
7
7
  // src/theming/base.ts
8
8
  var color = {
@@ -1,4 +1,4 @@
1
- // ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
1
+ // ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
2
2
  var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed";
3
3
  function invariant(condition, message) {
4
4
  if (!condition) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  noop
3
- } from "./chunk-QKODTO7K.js";
3
+ } from "./chunk-NZMVUW5T.js";
4
4
  import {
5
5
  argumentsTag,
6
6
  arrayBufferTag,
@@ -31,14 +31,14 @@ import {
31
31
  uint32ArrayTag,
32
32
  uint8ArrayTag,
33
33
  uint8ClampedArrayTag
34
- } from "./chunk-GFLS4VP3.js";
34
+ } from "./chunk-LCHBOIHN.js";
35
35
 
36
- // ../node_modules/es-toolkit/dist/compat/util/eq.mjs
36
+ // ../../node_modules/es-toolkit/dist/compat/util/eq.mjs
37
37
  function eq(value, other) {
38
38
  return value === other || Number.isNaN(value) && Number.isNaN(other);
39
39
  }
40
40
 
41
- // ../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
41
+ // ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
42
42
  function isEqualWith(a, b, areValuesEqual) {
43
43
  return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
44
44
  }
@@ -161,7 +161,7 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
161
161
  }
162
162
  }
163
163
 
164
- // ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
164
+ // ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
165
165
  function isEqual(a, b) {
166
166
  return isEqualWith(a, b, noop);
167
167
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dedent
3
- } from "./chunk-JP7NCOJX.js";
3
+ } from "./chunk-3LY4VQVK.js";
4
4
 
5
5
  // src/shared/universal-store/instances.ts
6
6
  var instances = /* @__PURE__ */ new Map();
@@ -368,7 +368,7 @@ _UniversalStore.InternalEventType = {
368
368
  _UniversalStore.isInternalConstructing = !1, _UniversalStore.setupPreparationPromise();
369
369
  var UniversalStore = _UniversalStore;
370
370
 
371
- // ../node_modules/telejson/dist/chunk-EAFQLD22.mjs
371
+ // ../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
372
372
  var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
373
373
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
374
374
  }, __copyProps = (to, from, except, desc) => {
@@ -408,7 +408,7 @@ function extractEventHiddenProperties(event) {
408
408
  return rebuildEvent;
409
409
  }
410
410
 
411
- // ../node_modules/telejson/dist/index.mjs
411
+ // ../../node_modules/telejson/dist/index.mjs
412
412
  var require_es_object_atoms = __commonJS({
413
413
  "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
414
414
  "use strict";
@@ -31,7 +31,26 @@ var StorybookError = class _StorybookError extends Error {
31
31
  * user.
32
32
  */
33
33
  this.isHandledError = !1;
34
- this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name;
34
+ /**
35
+ * A collection of sub errors which relate to a parent error.
36
+ *
37
+ * Sub-errors are used to represent multiple related errors that occurred together. When a
38
+ * StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error
39
+ * are sent as separate telemetry events. This allows for better error tracking and debugging.
40
+ *
41
+ * @example
42
+ *
43
+ * ```ts
44
+ * const error1 = new SomeError();
45
+ * const error2 = new AnotherError();
46
+ * const parentError = new ParentError({
47
+ * // ... other props
48
+ * subErrors: [error1, error2],
49
+ * });
50
+ * ```
51
+ */
52
+ this.subErrors = [];
53
+ this.category = props.category, this.documentation = props.documentation ?? !1, this.code = props.code, this.isHandledError = props.isHandledError ?? !1, this.name = props.name, this.subErrors = props.subErrors ?? [];
35
54
  }
36
55
  get fullErrorCode() {
37
56
  return parseErrorCode({ code: this.code, category: this.category });
@@ -1,4 +1,4 @@
1
- // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
1
+ // ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2
2
  function isPlainObject(value) {
3
3
  if (!value || typeof value != "object")
4
4
  return !1;
@@ -6,27 +6,27 @@ function isPlainObject(value) {
6
6
  return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
7
7
  }
8
8
 
9
- // ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
9
+ // ../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
10
10
  function isPrimitive(value) {
11
11
  return value == null || typeof value != "object" && typeof value != "function";
12
12
  }
13
13
 
14
- // ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
14
+ // ../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
15
15
  function isTypedArray(x) {
16
16
  return ArrayBuffer.isView(x) && !(x instanceof DataView);
17
17
  }
18
18
 
19
- // ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
19
+ // ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
20
20
  function getSymbols(object) {
21
21
  return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
22
22
  }
23
23
 
24
- // ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
24
+ // ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
25
25
  function getTag(value) {
26
26
  return value == null ? value === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value);
27
27
  }
28
28
 
29
- // ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
29
+ // ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
30
30
  var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", functionTag = "[object Function]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", errorTag = "[object Error]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", bigUint64ArrayTag = "[object BigUint64Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", bigInt64ArrayTag = "[object BigInt64Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
31
31
 
32
32
  export {
@@ -1,4 +1,4 @@
1
- // ../node_modules/@babel/runtime/helpers/esm/extends.js
1
+ // ../../node_modules/@babel/runtime/helpers/esm/extends.js
2
2
  function _extends() {
3
3
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
4
4
  for (var e = 1; e < arguments.length; e++) {
@@ -40,7 +40,7 @@ async function waitForAnimations(signal) {
40
40
  if (timedOut || signal?.aborted)
41
41
  return;
42
42
  let runningAnimations = animationRoots.flatMap((el) => el?.getAnimations?.() || []).filter((a) => a.playState === "running" && !isInfiniteAnimation(a));
43
- runningAnimations.length > 0 && (await Promise.all(runningAnimations.map((a) => a.finished)), await checkAnimationsFinished());
43
+ runningAnimations.length > 0 && (await Promise.allSettled(runningAnimations.map(async (a) => a.finished)), await checkAnimationsFinished());
44
44
  };
45
45
  checkAnimationsFinished().then(resolve);
46
46
  }, 100);
@@ -1,4 +1,4 @@
1
- // ../node_modules/dequal/dist/index.mjs
1
+ // ../../node_modules/dequal/dist/index.mjs
2
2
  var has = Object.prototype.hasOwnProperty;
3
3
  function find(iter, tar, key) {
4
4
  for (key of iter.keys())
@@ -52,7 +52,7 @@ function dequal(foo, bar) {
52
52
  return foo !== foo && bar !== bar;
53
53
  }
54
54
 
55
- // ../node_modules/es-toolkit/dist/array/partition.mjs
55
+ // ../../node_modules/es-toolkit/dist/array/partition.mjs
56
56
  function partition(arr, isInTruthy) {
57
57
  let truthy = [], falsy = [];
58
58
  for (let i = 0; i < arr.length; i++) {
@@ -62,7 +62,7 @@ function partition(arr, isInTruthy) {
62
62
  return [truthy, falsy];
63
63
  }
64
64
 
65
- // ../node_modules/es-toolkit/dist/array/countBy.mjs
65
+ // ../../node_modules/es-toolkit/dist/array/countBy.mjs
66
66
  function countBy(arr, mapper) {
67
67
  let result = {};
68
68
  for (let i = 0; i < arr.length; i++) {
@@ -72,7 +72,7 @@ function countBy(arr, mapper) {
72
72
  return result;
73
73
  }
74
74
 
75
- // ../node_modules/es-toolkit/dist/array/uniq.mjs
75
+ // ../../node_modules/es-toolkit/dist/array/uniq.mjs
76
76
  function uniq(arr) {
77
77
  return [...new Set(arr)];
78
78
  }
@@ -0,0 +1,7 @@
1
+ // ../../node_modules/es-toolkit/dist/function/noop.mjs
2
+ function noop() {
3
+ }
4
+
5
+ export {
6
+ noop
7
+ };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  StorybookError
3
- } from "./chunk-FQ7SLVLR.js";
3
+ } from "./chunk-JVRDBUUP.js";
4
4
  import {
5
5
  dedent
6
- } from "./chunk-JP7NCOJX.js";
6
+ } from "./chunk-3LY4VQVK.js";
7
7
 
8
8
  // src/preview-errors.ts
9
9
  var Category = /* @__PURE__ */ ((Category2) => (Category2.BLOCKS = "BLOCKS", Category2.DOCS_TOOLS = "DOCS-TOOLS", Category2.PREVIEW_CLIENT_LOGGER = "PREVIEW_CLIENT-LOGGER", Category2.PREVIEW_CHANNELS = "PREVIEW_CHANNELS", Category2.PREVIEW_CORE_EVENTS = "PREVIEW_CORE-EVENTS", Category2.PREVIEW_INSTRUMENTER = "PREVIEW_INSTRUMENTER", Category2.PREVIEW_API = "PREVIEW_API", Category2.PREVIEW_REACT_DOM_SHIM = "PREVIEW_REACT-DOM-SHIM", Category2.PREVIEW_ROUTER = "PREVIEW_ROUTER", Category2.PREVIEW_THEMING = "PREVIEW_THEMING", Category2.RENDERER_HTML = "RENDERER_HTML", Category2.RENDERER_PREACT = "RENDERER_PREACT", Category2.RENDERER_REACT = "RENDERER_REACT", Category2.RENDERER_SERVER = "RENDERER_SERVER", Category2.RENDERER_SVELTE = "RENDERER_SVELTE", Category2.RENDERER_VUE = "RENDERER_VUE", Category2.RENDERER_VUE3 = "RENDERER_VUE3", Category2.RENDERER_WEB_COMPONENTS = "RENDERER_WEB-COMPONENTS", Category2.FRAMEWORK_NEXTJS = "FRAMEWORK_NEXTJS", Category2.ADDON_VITEST = "ADDON_VITEST", Category2.ADDON_A11Y = "ADDON_A11Y", Category2))(Category || {}), MissingStoryAfterHmrError = class extends StorybookError {
@@ -262,7 +262,7 @@ This is deprecated and won't work in Storybook 8 anymore.
262
262
  name: "NextJsSharpError",
263
263
  category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
264
264
  code: 1,
265
- documentation: "https://storybook.js.org/docs/get-started/nextjs#faq",
265
+ documentation: "https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs",
266
266
  message: dedent`
267
267
  You are importing avif images, but you don't have sharp installed.
268
268
 
@@ -1,4 +1,4 @@
1
- // ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
1
+ // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
2
2
  var f = {
3
3
  reset: [0, 0],
4
4
  bold: [1, 22, "\x1B[22m\x1B[1m"],
@@ -80,10 +80,10 @@ function p(n = !1) {
80
80
  return u;
81
81
  }
82
82
 
83
- // ../node_modules/tinyrainbow/dist/browser.js
83
+ // ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/browser.js
84
84
  var s = p();
85
85
 
86
- // ../node_modules/@vitest/pretty-format/dist/index.js
86
+ // ../../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js
87
87
  function _mergeNamespaces(n, m2) {
88
88
  return m2.forEach(function(e) {
89
89
  e && typeof e != "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
@@ -883,7 +883,7 @@ var plugins = {
883
883
  Error: ErrorPlugin
884
884
  };
885
885
 
886
- // ../node_modules/loupe/lib/helpers.js
886
+ // ../../node_modules/loupe/lib/helpers.js
887
887
  var ansiColors = {
888
888
  bold: ["1", "22"],
889
889
  dim: ["2", "22"],
@@ -999,7 +999,7 @@ function inspectProperty([key, value], options) {
999
999
  return options.truncate -= 2, typeof key == "string" ? key = quoteComplexKey(key) : typeof key != "number" && (key = `[${options.inspect(key, options)}]`), options.truncate -= key.length, value = options.inspect(value, options), `${key}: ${value}`;
1000
1000
  }
1001
1001
 
1002
- // ../node_modules/loupe/lib/array.js
1002
+ // ../../node_modules/loupe/lib/array.js
1003
1003
  function inspectArray(array, options) {
1004
1004
  let nonIndexProperties = Object.keys(array).slice(array.length);
1005
1005
  if (!array.length && !nonIndexProperties.length)
@@ -1011,7 +1011,7 @@ function inspectArray(array, options) {
1011
1011
  return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`;
1012
1012
  }
1013
1013
 
1014
- // ../node_modules/loupe/lib/typedarray.js
1014
+ // ../../node_modules/loupe/lib/typedarray.js
1015
1015
  var getArrayName = (array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name;
1016
1016
  function inspectTypedArray(array, options) {
1017
1017
  let name = getArrayName(array);
@@ -1032,7 +1032,7 @@ function inspectTypedArray(array, options) {
1032
1032
  return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`;
1033
1033
  }
1034
1034
 
1035
- // ../node_modules/loupe/lib/date.js
1035
+ // ../../node_modules/loupe/lib/date.js
1036
1036
  function inspectDate(dateObject, options) {
1037
1037
  let stringRepresentation = dateObject.toJSON();
1038
1038
  if (stringRepresentation === null)
@@ -1041,13 +1041,13 @@ function inspectDate(dateObject, options) {
1041
1041
  return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date");
1042
1042
  }
1043
1043
 
1044
- // ../node_modules/loupe/lib/function.js
1044
+ // ../../node_modules/loupe/lib/function.js
1045
1045
  function inspectFunction(func, options) {
1046
1046
  let functionType = func[Symbol.toStringTag] || "Function", name = func.name;
1047
1047
  return name ? options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special");
1048
1048
  }
1049
1049
 
1050
- // ../node_modules/loupe/lib/map.js
1050
+ // ../../node_modules/loupe/lib/map.js
1051
1051
  function inspectMapEntry([key, value], options) {
1052
1052
  return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`;
1053
1053
  }
@@ -1061,25 +1061,25 @@ function inspectMap(map, options) {
1061
1061
  return map.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`);
1062
1062
  }
1063
1063
 
1064
- // ../node_modules/loupe/lib/number.js
1064
+ // ../../node_modules/loupe/lib/number.js
1065
1065
  var isNaN = Number.isNaN || ((i) => i !== i);
1066
1066
  function inspectNumber(number, options) {
1067
1067
  return isNaN(number) ? options.stylize("NaN", "number") : number === 1 / 0 ? options.stylize("Infinity", "number") : number === -1 / 0 ? options.stylize("-Infinity", "number") : number === 0 ? options.stylize(1 / number === 1 / 0 ? "+0" : "-0", "number") : options.stylize(truncate(String(number), options.truncate), "number");
1068
1068
  }
1069
1069
 
1070
- // ../node_modules/loupe/lib/bigint.js
1070
+ // ../../node_modules/loupe/lib/bigint.js
1071
1071
  function inspectBigInt(number, options) {
1072
1072
  let nums = truncate(number.toString(), options.truncate - 1);
1073
1073
  return nums !== truncator && (nums += "n"), options.stylize(nums, "bigint");
1074
1074
  }
1075
1075
 
1076
- // ../node_modules/loupe/lib/regexp.js
1076
+ // ../../node_modules/loupe/lib/regexp.js
1077
1077
  function inspectRegExp(value, options) {
1078
1078
  let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source;
1079
1079
  return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp");
1080
1080
  }
1081
1081
 
1082
- // ../node_modules/loupe/lib/set.js
1082
+ // ../../node_modules/loupe/lib/set.js
1083
1083
  function arrayFromSet(set) {
1084
1084
  let values = [];
1085
1085
  return set.forEach((value) => {
@@ -1090,7 +1090,7 @@ function inspectSet(set, options) {
1090
1090
  return set.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList(arrayFromSet(set), options)} }`);
1091
1091
  }
1092
1092
 
1093
- // ../node_modules/loupe/lib/string.js
1093
+ // ../../node_modules/loupe/lib/string.js
1094
1094
  var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters = {
1095
1095
  "\b": "\\b",
1096
1096
  " ": "\\t",
@@ -1107,15 +1107,24 @@ function inspectString(string, options) {
1107
1107
  return stringEscapeChars.test(string) && (string = string.replace(stringEscapeChars, escape)), options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string");
1108
1108
  }
1109
1109
 
1110
- // ../node_modules/loupe/lib/symbol.js
1110
+ // ../../node_modules/loupe/lib/symbol.js
1111
1111
  function inspectSymbol(value) {
1112
1112
  return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString();
1113
1113
  }
1114
1114
 
1115
- // ../node_modules/loupe/lib/promise.js
1116
- var getPromiseValue = () => "Promise{\u2026}", promise_default = getPromiseValue;
1115
+ // ../../node_modules/loupe/lib/promise.js
1116
+ var getPromiseValue = () => "Promise{\u2026}";
1117
+ try {
1118
+ let { getPromiseDetails, kPending, kRejected } = process.binding("util");
1119
+ Array.isArray(getPromiseDetails(Promise.resolve())) && (getPromiseValue = (value, options) => {
1120
+ let [state, innerValue] = getPromiseDetails(value);
1121
+ return state === kPending ? "Promise{<pending>}" : `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
1122
+ });
1123
+ } catch {
1124
+ }
1125
+ var promise_default = getPromiseValue;
1117
1126
 
1118
- // ../node_modules/loupe/lib/object.js
1127
+ // ../../node_modules/loupe/lib/object.js
1119
1128
  function inspectObject(object, options) {
1120
1129
  let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
1121
1130
  if (properties.length === 0 && symbols.length === 0)
@@ -1129,19 +1138,19 @@ function inspectObject(object, options) {
1129
1138
  return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`;
1130
1139
  }
1131
1140
 
1132
- // ../node_modules/loupe/lib/class.js
1141
+ // ../../node_modules/loupe/lib/class.js
1133
1142
  var toStringTag = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
1134
1143
  function inspectClass(value, options) {
1135
1144
  let name = "";
1136
1145
  return toStringTag && toStringTag in value && (name = value[toStringTag]), name = name || value.constructor.name, (!name || name === "_class") && (name = "<Anonymous Class>"), options.truncate -= name.length, `${name}${inspectObject(value, options)}`;
1137
1146
  }
1138
1147
 
1139
- // ../node_modules/loupe/lib/arguments.js
1148
+ // ../../node_modules/loupe/lib/arguments.js
1140
1149
  function inspectArguments(args, options) {
1141
1150
  return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList(args, options)} ]`);
1142
1151
  }
1143
1152
 
1144
- // ../node_modules/loupe/lib/error.js
1153
+ // ../../node_modules/loupe/lib/error.js
1145
1154
  var errorKeys = [
1146
1155
  "stack",
1147
1156
  "line",
@@ -1166,7 +1175,7 @@ function inspectObject2(error, options) {
1166
1175
  return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
1167
1176
  }
1168
1177
 
1169
- // ../node_modules/loupe/lib/html.js
1178
+ // ../../node_modules/loupe/lib/html.js
1170
1179
  function inspectAttribute([key, value], options) {
1171
1180
  return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`;
1172
1181
  }
@@ -1193,7 +1202,7 @@ function inspectHTML(element, options) {
1193
1202
  return children && children.length > truncate2 && (children = `${truncator}(${element.children.length})`), `${head}${propertyContents}${headClose}${children}${tail}`;
1194
1203
  }
1195
1204
 
1196
- // ../node_modules/loupe/lib/index.js
1205
+ // ../../node_modules/loupe/lib/index.js
1197
1206
  var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect = Symbol.for("nodejs.util.inspect.custom"), constructorMap = /* @__PURE__ */ new WeakMap(), stringTagMap = {}, baseTypesMap = {
1198
1207
  undefined: (value, options) => options.stylize("undefined", "undefined"),
1199
1208
  null: (value, options) => options.stylize("null", "null"),
@@ -1235,13 +1244,13 @@ var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "func
1235
1244
  Error: inspectObject2,
1236
1245
  HTMLCollection: inspectNodeCollection,
1237
1246
  NodeList: inspectNodeCollection
1238
- }, inspectCustom = (value, options, type, inspectFn) => chaiInspect in value && typeof value[chaiInspect] == "function" ? value[chaiInspect](options) : nodeInspect in value && typeof value[nodeInspect] == "function" ? value[nodeInspect](options.depth, options, inspectFn) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap.has(value.constructor) ? constructorMap.get(value.constructor)(value, options) : stringTagMap[type] ? stringTagMap[type](value, options) : "", toString2 = Object.prototype.toString;
1247
+ }, inspectCustom = (value, options, type) => chaiInspect in value && typeof value[chaiInspect] == "function" ? value[chaiInspect](options) : nodeInspect in value && typeof value[nodeInspect] == "function" ? value[nodeInspect](options.depth, options) : "inspect" in value && typeof value.inspect == "function" ? value.inspect(options.depth, options) : "constructor" in value && constructorMap.has(value.constructor) ? constructorMap.get(value.constructor)(value, options) : stringTagMap[type] ? stringTagMap[type](value, options) : "", toString2 = Object.prototype.toString;
1239
1248
  function inspect(value, opts = {}) {
1240
1249
  let options = normaliseOptions(opts, inspect), { customInspect } = options, type = value === null ? "null" : typeof value;
1241
1250
  if (type === "object" && (type = toString2.call(value).slice(8, -1)), type in baseTypesMap)
1242
1251
  return baseTypesMap[type](value, options);
1243
1252
  if (customInspect && value) {
1244
- let output = inspectCustom(value, options, type, inspect);
1253
+ let output = inspectCustom(value, options, type);
1245
1254
  if (output)
1246
1255
  return typeof output == "string" ? output : inspect(output, options);
1247
1256
  }
@@ -1249,7 +1258,7 @@ function inspect(value, opts = {}) {
1249
1258
  return proto === Object.prototype || proto === null ? inspectObject(value, options) : value && typeof HTMLElement == "function" && value instanceof HTMLElement ? inspectHTML(value, options) : "constructor" in value ? value.constructor !== Object ? inspectClass(value, options) : inspectObject(value, options) : value === Object(value) ? inspectObject(value, options) : options.stylize(String(value), type);
1250
1259
  }
1251
1260
 
1252
- // ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1261
+ // ../../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1253
1262
  var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins, PLUGINS = [
1254
1263
  ReactTestComponent,
1255
1264
  ReactElement,
@@ -1348,7 +1357,7 @@ function getDefaultExportFromCjs2(x) {
1348
1357
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
1349
1358
  }
1350
1359
 
1351
- // ../node_modules/@vitest/utils/dist/helpers.js
1360
+ // ../../node_modules/@vitest/utils/dist/helpers.js
1352
1361
  function assertTypes(value, name, types) {
1353
1362
  let receivedType = typeof value;
1354
1363
  if (!types.includes(receivedType))
@@ -1414,7 +1423,7 @@ function clone(val, seen, options = defaultCloneOptions) {
1414
1423
  function noop() {
1415
1424
  }
1416
1425
 
1417
- // ../node_modules/@vitest/utils/dist/diff.js
1426
+ // ../../node_modules/@vitest/utils/dist/diff.js
1418
1427
  var DIFF_DELETE = -1, DIFF_INSERT = 1, DIFF_EQUAL = 0, Diff = class {
1419
1428
  0;
1420
1429
  1;
@@ -2381,7 +2390,7 @@ function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) {
2381
2390
  return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? s.inverse(diff2[1]) : diff2[1] : ""), "");
2382
2391
  }
2383
2392
 
2384
- // ../node_modules/@vitest/utils/dist/error.js
2393
+ // ../../node_modules/@vitest/utils/dist/error.js
2385
2394
  var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@", IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
2386
2395
  function isImmutable(v) {
2387
2396
  return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]);
@@ -2478,7 +2487,6 @@ Inner error message: ${err?.message}`));
2478
2487
  }
2479
2488
 
2480
2489
  export {
2481
- s,
2482
2490
  stringify,
2483
2491
  getDefaultExportFromCjs2 as getDefaultExportFromCjs,
2484
2492
  assertTypes,