storybook 9.0.0-beta.3 → 9.0.0-beta.5

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 (58) hide show
  1. package/assets/server/base-preview-head.html +2 -1
  2. package/dist/babel/index.cjs +15060 -14974
  3. package/dist/babel/index.d.ts +37 -18
  4. package/dist/babel/index.js +15097 -15011
  5. package/dist/bin/index.cjs +44 -44
  6. package/dist/bin/index.js +44 -44
  7. package/dist/builder-manager/index.cjs +104 -99
  8. package/dist/builder-manager/index.js +103 -98
  9. package/dist/cli/bin/index.cjs +1 -1
  10. package/dist/cli/bin/index.js +1 -1
  11. package/dist/cli/index.cjs +19438 -19340
  12. package/dist/cli/index.js +19449 -19351
  13. package/dist/common/index.cjs +4997 -4925
  14. package/dist/common/index.js +5088 -5012
  15. package/dist/components/index.cjs +4581 -4419
  16. package/dist/components/index.d.ts +12 -12
  17. package/dist/components/index.js +3847 -3681
  18. package/dist/core-server/index.cjs +6358 -6274
  19. package/dist/core-server/index.js +6406 -6318
  20. package/dist/core-server/presets/common-manager.js +3863 -3468
  21. package/dist/core-server/presets/common-preset.cjs +2302 -2236
  22. package/dist/core-server/presets/common-preset.js +2389 -2319
  23. package/dist/docs-tools/index.cjs +484 -464
  24. package/dist/docs-tools/index.js +502 -482
  25. package/dist/highlight/index.cjs +19 -18
  26. package/dist/highlight/index.d.ts +4 -5
  27. package/dist/highlight/index.js +3 -2
  28. package/dist/highlight/preview.cjs +314 -310
  29. package/dist/highlight/preview.js +296 -292
  30. package/dist/instrumenter/index.cjs +561 -559
  31. package/dist/instrumenter/index.js +1551 -1498
  32. package/dist/manager/globals-module-info.cjs +1 -0
  33. package/dist/manager/globals-module-info.js +1 -0
  34. package/dist/manager/globals-runtime.js +19639 -19374
  35. package/dist/manager/runtime.js +4372 -4133
  36. package/dist/manager-api/index.cjs +2375 -2319
  37. package/dist/manager-api/index.js +1722 -1666
  38. package/dist/node-logger/index.cjs +25 -25
  39. package/dist/node-logger/index.js +25 -25
  40. package/dist/preview/runtime.js +12779 -12704
  41. package/dist/preview-api/index.cjs +1113 -1094
  42. package/dist/preview-api/index.js +1161 -1142
  43. package/dist/router/index.cjs +1366 -1347
  44. package/dist/router/index.js +594 -575
  45. package/dist/server-errors.cjs +6 -6
  46. package/dist/server-errors.js +6 -6
  47. package/dist/telemetry/index.cjs +696 -691
  48. package/dist/telemetry/index.js +764 -759
  49. package/dist/test/index.cjs +69 -70
  50. package/dist/test/index.d.ts +1216 -74
  51. package/dist/test/index.js +128 -130
  52. package/dist/test/preview.cjs +16 -16
  53. package/dist/test/preview.js +15 -15
  54. package/dist/theming/create.cjs +16 -17
  55. package/dist/theming/create.js +346 -228
  56. package/dist/theming/index.cjs +16 -17
  57. package/dist/theming/index.js +948 -839
  58. package/package.json +4 -12
@@ -1,27 +1,27 @@
1
1
  "use strict";
2
- var Tr = Object.create;
3
- var z = Object.defineProperty;
4
- var gr = Object.getOwnPropertyDescriptor;
2
+ var gr = Object.create;
3
+ var X = Object.defineProperty;
4
+ var xr = Object.getOwnPropertyDescriptor;
5
5
  var hr = Object.getOwnPropertyNames;
6
- var xr = Object.getPrototypeOf, Jr = Object.prototype.hasOwnProperty;
7
- var r = (n, s) => z(n, "name", { value: s, configurable: !0 });
8
- var Pr = (n, s) => () => (s || n((s = { exports: {} }).exports, s), s.exports), wr = (n, s) => {
6
+ var Jr = Object.getPrototypeOf, wr = Object.prototype.hasOwnProperty;
7
+ var r = (n, s) => X(n, "name", { value: s, configurable: !0 });
8
+ var Pr = (n, s) => () => (s || n((s = { exports: {} }).exports, s), s.exports), br = (n, s) => {
9
9
  for (var a in s)
10
- z(n, a, { get: s[a], enumerable: !0 });
10
+ X(n, a, { get: s[a], enumerable: !0 });
11
11
  }, it = (n, s, a, p) => {
12
12
  if (s && typeof s == "object" || typeof s == "function")
13
13
  for (let c of hr(s))
14
- !Jr.call(n, c) && c !== a && z(n, c, { get: () => s[c], enumerable: !(p = gr(s, c)) || p.enumerable });
14
+ !wr.call(n, c) && c !== a && X(n, c, { get: () => s[c], enumerable: !(p = xr(s, c)) || p.enumerable });
15
15
  return n;
16
16
  };
17
- var br = (n, s, a) => (a = n != null ? Tr(xr(n)) : {}, it(
17
+ var Er = (n, s, a) => (a = n != null ? gr(Jr(n)) : {}, it(
18
18
  // If the importer is in node compatibility mode or this is not an ESM
19
19
  // file that has been converted to a CommonJS file using a Babel-
20
20
  // compatible transform (i.e. "__esModule" has not been set), then set
21
21
  // "default" to the CommonJS "module.exports" for node compatibility.
22
- s || !n || !n.__esModule ? z(a, "default", { value: n, enumerable: !0 }) : a,
22
+ s || !n || !n.__esModule ? X(a, "default", { value: n, enumerable: !0 }) : a,
23
23
  n
24
- )), Er = (n) => it(z({}, "__esModule", { value: !0 }), n);
24
+ )), Sr = (n) => it(X({}, "__esModule", { value: !0 }), n);
25
25
 
26
26
  // ../node_modules/jsdoc-type-pratt-parser/dist/index.js
27
27
  var gt = Pr((ue, Tt) => {
@@ -86,7 +86,7 @@ var gt = Pr((ue, Tt) => {
86
86
  }
87
87
  r(m, "getQuoted");
88
88
  let T = /[$_\p{ID_Start}]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u, g = /[$\-\p{ID_Continue}\u200C\u200D]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u;
89
- function w(e) {
89
+ function P(e) {
90
90
  let t = e[0];
91
91
  if (!T.test(t))
92
92
  return null;
@@ -98,15 +98,15 @@ var gt = Pr((ue, Tt) => {
98
98
  } while (o < e.length);
99
99
  return e.slice(0, o);
100
100
  }
101
- r(w, "getIdentifier");
101
+ r(P, "getIdentifier");
102
102
  let b = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;
103
- function fe(e) {
103
+ function ye(e) {
104
104
  var t, o;
105
105
  return (o = (t = b.exec(e)) === null || t === void 0 ? void 0 : t[0]) !== null && o !== void 0 ? o : null;
106
106
  }
107
- r(fe, "getNumber");
107
+ r(ye, "getNumber");
108
108
  let $ = /* @__PURE__ */ r((e) => {
109
- let t = w(e);
109
+ let t = P(e);
110
110
  return t == null ? null : {
111
111
  type: "Identifier",
112
112
  text: t
@@ -134,12 +134,12 @@ var gt = Pr((ue, Tt) => {
134
134
  type: "EOF",
135
135
  text: ""
136
136
  }, "eofRule"), Te = /* @__PURE__ */ r((e) => {
137
- let t = fe(e);
137
+ let t = ye(e);
138
138
  return t === null ? null : {
139
139
  type: "Number",
140
140
  text: t
141
141
  };
142
- }, "numberRule"), jt = [
142
+ }, "numberRule"), Ft = [
143
143
  de,
144
144
  u("=>"),
145
145
  u("("),
@@ -179,6 +179,7 @@ var gt = Pr((ue, Tt) => {
179
179
  E("import"),
180
180
  E("is"),
181
181
  E("in"),
182
+ E("asserts"),
182
183
  Te,
183
184
  $,
184
185
  Q
@@ -198,11 +199,11 @@ var gt = Pr((ue, Tt) => {
198
199
  }
199
200
  static read(t, o = !1) {
200
201
  o = o || _t.test(t), t = t.trim();
201
- for (let i of jt) {
202
+ for (let i of Ft) {
202
203
  let l = i(t);
203
204
  if (l !== null) {
204
- let y = Object.assign(Object.assign({}, l), { startOfLine: o });
205
- return t = t.slice(y.text.length), { text: t, token: y };
205
+ let f = Object.assign(Object.assign({}, l), { startOfLine: o });
206
+ return t = t.slice(f.text.length), { text: t, token: f };
206
207
  }
207
208
  }
208
209
  throw new Error("Unexpected Token " + t);
@@ -212,7 +213,7 @@ var gt = Pr((ue, Tt) => {
212
213
  return new q(t.text, this.current, this.next, t.token);
213
214
  }
214
215
  }
215
- function P(e) {
216
+ function w(e) {
216
217
  if (e === void 0)
217
218
  throw new Error("Unexpected undefined");
218
219
  if (e.type === "JsdocTypeKeyValue" || e.type === "JsdocTypeParameterList" || e.type === "JsdocTypeProperty" || e.type === "JsdocTypeRe\
@@ -221,9 +222,9 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
221
222
  throw new c(e);
222
223
  return e;
223
224
  }
224
- r(P, "assertRootResult");
225
+ r(w, "assertRootResult");
225
226
  function ge(e) {
226
- return e.type === "JsdocTypeKeyValue" ? Z(e) : P(e);
227
+ return e.type === "JsdocTypeKeyValue" ? Z(e) : w(e);
227
228
  }
228
229
  r(ge, "assertPlainKeyValueOrRootResult");
229
230
  function Lt(e) {
@@ -248,18 +249,18 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
248
249
  return e;
249
250
  }
250
251
  r(Vt, "assertNumberOrVariadicNameResult");
251
- function he(e) {
252
+ function xe(e) {
252
253
  return e.type === "JsdocTypeIndexSignature" || e.type === "JsdocTypeMappedType";
253
254
  }
254
- r(he, "isSquaredProperty");
255
- var f;
255
+ r(xe, "isSquaredProperty");
256
+ var y;
256
257
  (function(e) {
257
- e[e.ALL = 0] = "ALL", e[e.PARAMETER_LIST = 1] = "PARAMETER_LIST", e[e.OBJECT = 2] = "OBJECT", e[e.KEY_VALUE = 3] = "KEY_VALUE", e[e.UNION =
258
- 4] = "UNION", e[e.INTERSECTION = 5] = "INTERSECTION", e[e.PREFIX = 6] = "PREFIX", e[e.INFIX = 7] = "INFIX", e[e.TUPLE = 8] = "TUPLE", e[e.
259
- SYMBOL = 9] = "SYMBOL", e[e.OPTIONAL = 10] = "OPTIONAL", e[e.NULLABLE = 11] = "NULLABLE", e[e.KEY_OF_TYPE_OF = 12] = "KEY_OF_TYPE_OF",
260
- e[e.FUNCTION = 13] = "FUNCTION", e[e.ARROW = 14] = "ARROW", e[e.ARRAY_BRACKETS = 15] = "ARRAY_BRACKETS", e[e.GENERIC = 16] = "GENERIC",
261
- e[e.NAME_PATH = 17] = "NAME_PATH", e[e.PARENTHESIS = 18] = "PARENTHESIS", e[e.SPECIAL_TYPES = 19] = "SPECIAL_TYPES";
262
- })(f || (f = {}));
258
+ e[e.ALL = 0] = "ALL", e[e.PARAMETER_LIST = 1] = "PARAMETER_LIST", e[e.OBJECT = 2] = "OBJECT", e[e.KEY_VALUE = 3] = "KEY_VALUE", e[e.INDEX_BRACKETS =
259
+ 4] = "INDEX_BRACKETS", e[e.UNION = 5] = "UNION", e[e.INTERSECTION = 6] = "INTERSECTION", e[e.PREFIX = 7] = "PREFIX", e[e.INFIX = 8] = "\
260
+ INFIX", e[e.TUPLE = 9] = "TUPLE", e[e.SYMBOL = 10] = "SYMBOL", e[e.OPTIONAL = 11] = "OPTIONAL", e[e.NULLABLE = 12] = "NULLABLE", e[e.KEY_OF_TYPE_OF =
261
+ 13] = "KEY_OF_TYPE_OF", e[e.FUNCTION = 14] = "FUNCTION", e[e.ARROW = 15] = "ARROW", e[e.ARRAY_BRACKETS = 16] = "ARRAY_BRACKETS", e[e.GENERIC =
262
+ 17] = "GENERIC", e[e.NAME_PATH = 18] = "NAME_PATH", e[e.PARENTHESIS = 19] = "PARENTHESIS", e[e.SPECIAL_TYPES = 20] = "SPECIAL_TYPES";
263
+ })(y || (y = {}));
263
264
  class V {
264
265
  static {
265
266
  r(this, "Parser");
@@ -274,7 +275,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
274
275
  * Parses a given string and throws an error if the parse ended before the end of the string.
275
276
  */
276
277
  parse() {
277
- let t = this.parseType(f.ALL);
278
+ let t = this.parseType(y.ALL);
278
279
  if (this.lexer.current.type !== "EOF")
279
280
  throw new p(this.lexer.current);
280
281
  return t;
@@ -283,7 +284,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
283
284
  * Parses with the current lexer and asserts that the result is a {@link RootResult}.
284
285
  */
285
286
  parseType(t) {
286
- return P(this.parseIntermediateType(t));
287
+ return w(this.parseIntermediateType(t));
287
288
  }
288
289
  /**
289
290
  * The main parsing function. First it tries to parse the current state in the prefix step, and then it continues
@@ -327,33 +328,33 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
327
328
  this._lexer = t.lexer;
328
329
  }
329
330
  }
330
- function ze(e) {
331
+ function Xe(e) {
331
332
  return e === "EOF" || e === "|" || e === "," || e === ")" || e === ">";
332
333
  }
333
- r(ze, "isQuestionMarkUnknownType");
334
- let xe = /* @__PURE__ */ r((e, t, o) => {
334
+ r(Xe, "isQuestionMarkUnknownType");
335
+ let he = /* @__PURE__ */ r((e, t, o) => {
335
336
  let i = e.lexer.current.type, l = e.lexer.next.type;
336
- return o == null && i === "?" && !ze(l) || o != null && i === "?" ? (e.consume("?"), o == null ? {
337
+ return o == null && i === "?" && !Xe(l) || o != null && i === "?" ? (e.consume("?"), o == null ? {
337
338
  type: "JsdocTypeNullable",
338
- element: e.parseType(f.NULLABLE),
339
+ element: e.parseType(y.NULLABLE),
339
340
  meta: {
340
341
  position: "prefix"
341
342
  }
342
343
  } : {
343
344
  type: "JsdocTypeNullable",
344
- element: P(o),
345
+ element: w(o),
345
346
  meta: {
346
347
  position: "suffix"
347
348
  }
348
349
  }) : null;
349
350
  }, "nullableParslet");
350
- function h(e) {
351
+ function x(e) {
351
352
  let t = /* @__PURE__ */ r((o, i, l) => {
352
- let y = o.lexer.current.type, d = o.lexer.next.type;
353
+ let f = o.lexer.current.type, d = o.lexer.next.type;
353
354
  if (l === null) {
354
- if ("parsePrefix" in e && e.accept(y, d))
355
+ if ("parsePrefix" in e && e.accept(f, d))
355
356
  return e.parsePrefix(o);
356
- } else if ("parseInfix" in e && e.precedence > i && e.accept(y, d))
357
+ } else if ("parseInfix" in e && e.precedence > i && e.accept(f, d))
357
358
  return e.parseInfix(o, l);
358
359
  return null;
359
360
  }, "parslet");
@@ -361,26 +362,26 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
361
362
  value: e.name
362
363
  }), t;
363
364
  }
364
- r(h, "composeParslet");
365
- let ee = h({
365
+ r(x, "composeParslet");
366
+ let ee = x({
366
367
  name: "optionalParslet",
367
368
  accept: /* @__PURE__ */ r((e) => e === "=", "accept"),
368
- precedence: f.OPTIONAL,
369
+ precedence: y.OPTIONAL,
369
370
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("="), {
370
371
  type: "JsdocTypeOptional",
371
- element: e.parseType(f.OPTIONAL),
372
+ element: e.parseType(y.OPTIONAL),
372
373
  meta: {
373
374
  position: "prefix"
374
375
  }
375
376
  }), "parsePrefix"),
376
377
  parseInfix: /* @__PURE__ */ r((e, t) => (e.consume("="), {
377
378
  type: "JsdocTypeOptional",
378
- element: P(t),
379
+ element: w(t),
379
380
  meta: {
380
381
  position: "suffix"
381
382
  }
382
383
  }), "parseInfix")
383
- }), te = h({
384
+ }), te = x({
384
385
  name: "numberParslet",
385
386
  accept: /* @__PURE__ */ r((e) => e === "Number", "accept"),
386
387
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -390,7 +391,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
390
391
  value: t
391
392
  };
392
393
  }, "parsePrefix")
393
- }), Ut = h({
394
+ }), Ut = x({
394
395
  name: "parenthesisParslet",
395
396
  accept: /* @__PURE__ */ r((e) => e === "(", "accept"),
396
397
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -399,7 +400,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
399
400
  type: "JsdocTypeParameterList",
400
401
  elements: []
401
402
  };
402
- let t = e.parseIntermediateType(f.ALL);
403
+ let t = e.parseIntermediateType(y.ALL);
403
404
  if (!e.consume(")"))
404
405
  throw new Error("Unterminated parenthesis");
405
406
  return t.type === "JsdocTypeParameterList" ? t : t.type === "JsdocTypeKeyValue" ? {
@@ -407,12 +408,12 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
407
408
  elements: [t]
408
409
  } : {
409
410
  type: "JsdocTypeParenthesis",
410
- element: P(t)
411
+ element: w(t)
411
412
  };
412
413
  }, "parsePrefix")
413
- }), Bt = h({
414
+ }), Bt = x({
414
415
  name: "specialTypesParslet",
415
- accept: /* @__PURE__ */ r((e, t) => e === "?" && ze(t) || e === "null" || e === "undefined" || e === "*", "accept"),
416
+ accept: /* @__PURE__ */ r((e, t) => e === "?" && Xe(t) || e === "null" || e === "undefined" || e === "*", "accept"),
416
417
  parsePrefix: /* @__PURE__ */ r((e) => {
417
418
  if (e.consume("null"))
418
419
  return {
@@ -432,30 +433,30 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
432
433
  };
433
434
  throw new Error("Unacceptable token: " + e.lexer.current.text);
434
435
  }, "parsePrefix")
435
- }), Ct = h({
436
+ }), Ct = x({
436
437
  name: "notNullableParslet",
437
438
  accept: /* @__PURE__ */ r((e) => e === "!", "accept"),
438
- precedence: f.NULLABLE,
439
+ precedence: y.NULLABLE,
439
440
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("!"), {
440
441
  type: "JsdocTypeNotNullable",
441
- element: e.parseType(f.NULLABLE),
442
+ element: e.parseType(y.NULLABLE),
442
443
  meta: {
443
444
  position: "prefix"
444
445
  }
445
446
  }), "parsePrefix"),
446
447
  parseInfix: /* @__PURE__ */ r((e, t) => (e.consume("!"), {
447
448
  type: "JsdocTypeNotNullable",
448
- element: P(t),
449
+ element: w(t),
449
450
  meta: {
450
451
  position: "suffix"
451
452
  }
452
453
  }), "parseInfix")
453
454
  });
454
455
  function Mt({ allowTrailingComma: e }) {
455
- return h({
456
+ return x({
456
457
  name: "parameterListParslet",
457
458
  accept: /* @__PURE__ */ r((t) => t === ",", "accept"),
458
- precedence: f.PARAMETER_LIST,
459
+ precedence: y.PARAMETER_LIST,
459
460
  parseInfix: /* @__PURE__ */ r((t, o) => {
460
461
  let i = [
461
462
  ge(o)
@@ -463,7 +464,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
463
464
  t.consume(",");
464
465
  do
465
466
  try {
466
- let l = t.parseIntermediateType(f.PARAMETER_LIST);
467
+ let l = t.parseIntermediateType(y.PARAMETER_LIST);
467
468
  i.push(ge(l));
468
469
  } catch (l) {
469
470
  if (e && l instanceof a)
@@ -481,22 +482,22 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
481
482
  });
482
483
  }
483
484
  r(Mt, "createParameterListParslet");
484
- let Kt = h({
485
+ let Kt = x({
485
486
  name: "genericParslet",
486
487
  accept: /* @__PURE__ */ r((e, t) => e === "<" || e === "." && t === "<", "accept"),
487
- precedence: f.GENERIC,
488
+ precedence: y.GENERIC,
488
489
  parseInfix: /* @__PURE__ */ r((e, t) => {
489
490
  let o = e.consume(".");
490
491
  e.consume("<");
491
492
  let i = [];
492
493
  do
493
- i.push(e.parseType(f.PARAMETER_LIST));
494
+ i.push(e.parseType(y.PARAMETER_LIST));
494
495
  while (e.consume(","));
495
496
  if (!e.consume(">"))
496
497
  throw new Error("Unterminated generic parameter list");
497
498
  return {
498
499
  type: "JsdocTypeGeneric",
499
- left: P(t),
500
+ left: w(t),
500
501
  elements: i,
501
502
  meta: {
502
503
  brackets: "angle",
@@ -504,23 +505,23 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
504
505
  }
505
506
  };
506
507
  }, "parseInfix")
507
- }), $t = h({
508
+ }), $t = x({
508
509
  name: "unionParslet",
509
510
  accept: /* @__PURE__ */ r((e) => e === "|", "accept"),
510
- precedence: f.UNION,
511
+ precedence: y.UNION,
511
512
  parseInfix: /* @__PURE__ */ r((e, t) => {
512
513
  e.consume("|");
513
514
  let o = [];
514
515
  do
515
- o.push(e.parseType(f.UNION));
516
+ o.push(e.parseType(y.UNION));
516
517
  while (e.consume("|"));
517
518
  return {
518
519
  type: "JsdocTypeUnion",
519
- elements: [P(t), ...o]
520
+ elements: [w(t), ...o]
520
521
  };
521
522
  }, "parseInfix")
522
523
  }), Je = [
523
- xe,
524
+ he,
524
525
  ee,
525
526
  te,
526
527
  Ut,
@@ -534,16 +535,16 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
534
535
  ee
535
536
  ];
536
537
  function re({ allowSquareBracketsOnAnyType: e, allowJsdocNamePaths: t, pathGrammar: o }) {
537
- return /* @__PURE__ */ r(function(l, y, d) {
538
- if (d == null || y >= f.NAME_PATH)
538
+ return /* @__PURE__ */ r(function(l, f, d) {
539
+ if (d == null || f >= y.NAME_PATH)
539
540
  return null;
540
- let x = l.lexer.current.type, N = l.lexer.next.type;
541
- if (!(x === "." && N !== "<" || x === "[" && (e || d.type === "JsdocTypeName") || t && (x === "~" || x === "#")))
541
+ let h = l.lexer.current.type, O = l.lexer.next.type;
542
+ if (!(h === "." && O !== "<" || h === "[" && (e || d.type === "JsdocTypeName") || t && (h === "~" || h === "#")))
542
543
  return null;
543
544
  let D, se = !1;
544
545
  l.consume(".") ? D = "property" : l.consume("[") ? (D = "property-brackets", se = !0) : l.consume("~") ? D = "inner" : (l.consume("#"),
545
546
  D = "instance");
546
- let st = o !== null ? new V(o, l.lexer, l) : l, k = st.parseIntermediateType(f.NAME_PATH);
547
+ let st = o !== null ? new V(o, l.lexer, l) : l, k = st.parseIntermediateType(y.NAME_PATH);
547
548
  l.acceptLexerState(st);
548
549
  let G;
549
550
  switch (k.type) {
@@ -589,15 +590,15 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
589
590
  }
590
591
  return {
591
592
  type: "JsdocTypeNamePath",
592
- left: P(d),
593
+ left: w(d),
593
594
  right: G,
594
595
  pathType: D
595
596
  };
596
597
  }, "namePathParslet");
597
598
  }
598
599
  r(re, "createNamePathParslet");
599
- function R({ allowedAdditionalTokens: e }) {
600
- return h({
600
+ function I({ allowedAdditionalTokens: e }) {
601
+ return x({
601
602
  name: "nameParslet",
602
603
  accept: /* @__PURE__ */ r((t) => t === "Identifier" || t === "this" || t === "new" || e.includes(t), "accept"),
603
604
  parsePrefix: /* @__PURE__ */ r((t) => {
@@ -609,8 +610,8 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
609
610
  }, "parsePrefix")
610
611
  });
611
612
  }
612
- r(R, "createNameParslet");
613
- let Y = h({
613
+ r(I, "createNameParslet");
614
+ let Y = x({
614
615
  name: "stringValueParslet",
615
616
  accept: /* @__PURE__ */ r((e) => e === "StringValue", "accept"),
616
617
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -625,7 +626,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
625
626
  }, "parsePrefix")
626
627
  });
627
628
  function ne({ pathGrammar: e, allowedTypes: t }) {
628
- return h({
629
+ return x({
629
630
  name: "specialNamePathParslet",
630
631
  accept: /* @__PURE__ */ r((o) => t.includes(o), "accept"),
631
632
  parsePrefix: /* @__PURE__ */ r((o) => {
@@ -635,37 +636,37 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
635
636
  type: "JsdocTypeName",
636
637
  value: i
637
638
  };
638
- let l, y = o.lexer.current;
639
+ let l, f = o.lexer.current;
639
640
  if (o.consume("StringValue"))
640
641
  l = {
641
642
  type: "JsdocTypeSpecialNamePath",
642
- value: y.text.slice(1, -1),
643
+ value: f.text.slice(1, -1),
643
644
  specialType: i,
644
645
  meta: {
645
- quote: y.text[0] === "'" ? "single" : "double"
646
+ quote: f.text[0] === "'" ? "single" : "double"
646
647
  }
647
648
  };
648
649
  else {
649
- let N = "", S = ["Identifier", "@", "/"];
650
+ let O = "", S = ["Identifier", "@", "/"];
650
651
  for (; S.some((D) => o.consume(D)); )
651
- N += y.text, y = o.lexer.current;
652
+ O += f.text, f = o.lexer.current;
652
653
  l = {
653
654
  type: "JsdocTypeSpecialNamePath",
654
- value: N,
655
+ value: O,
655
656
  specialType: i,
656
657
  meta: {
657
658
  quote: void 0
658
659
  }
659
660
  };
660
661
  }
661
- let d = new V(e, o.lexer, o), x = d.parseInfixIntermediateType(l, f.ALL);
662
- return o.acceptLexerState(d), P(x);
662
+ let d = new V(e, o.lexer, o), h = d.parseInfixIntermediateType(l, y.ALL);
663
+ return o.acceptLexerState(d), w(h);
663
664
  }, "parsePrefix")
664
665
  });
665
666
  }
666
667
  r(ne, "createSpecialNamePathParslet");
667
- let Xe = [
668
- R({
668
+ let ze = [
669
+ I({
669
670
  allowedAdditionalTokens: ["external", "module"]
670
671
  }),
671
672
  Y,
@@ -676,13 +677,13 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
676
677
  pathGrammar: null
677
678
  })
678
679
  ], U = [
679
- ...Xe,
680
+ ...ze,
680
681
  ne({
681
682
  allowedTypes: ["event"],
682
- pathGrammar: Xe
683
+ pathGrammar: ze
683
684
  })
684
685
  ];
685
- function Pe(e) {
686
+ function we(e) {
686
687
  let t;
687
688
  if (e.type === "JsdocTypeParameterList")
688
689
  t = e.elements;
@@ -692,20 +693,20 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
692
693
  throw new c(e);
693
694
  return t.map((o) => ge(o));
694
695
  }
695
- r(Pe, "getParameters");
696
+ r(we, "getParameters");
696
697
  function qt(e) {
697
- let t = Pe(e);
698
+ let t = we(e);
698
699
  if (t.some((o) => o.type === "JsdocTypeKeyValue"))
699
700
  throw new Error("No parameter should be named");
700
701
  return t;
701
702
  }
702
703
  r(qt, "getUnnamedParameters");
703
- function we({ allowNamedParameters: e, allowNoReturnType: t, allowWithoutParenthesis: o, allowNewAsFunctionKeyword: i }) {
704
- return h({
704
+ function Pe({ allowNamedParameters: e, allowNoReturnType: t, allowWithoutParenthesis: o, allowNewAsFunctionKeyword: i }) {
705
+ return x({
705
706
  name: "functionParslet",
706
- accept: /* @__PURE__ */ r((l, y) => l === "function" || i && l === "new" && y === "(", "accept"),
707
+ accept: /* @__PURE__ */ r((l, f) => l === "function" || i && l === "new" && f === "(", "accept"),
707
708
  parsePrefix: /* @__PURE__ */ r((l) => {
708
- let y = l.consume("new");
709
+ let f = l.consume("new");
709
710
  l.consume("function");
710
711
  let d = l.lexer.current.type === "(";
711
712
  if (!d) {
@@ -716,47 +717,47 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
716
717
  value: "function"
717
718
  };
718
719
  }
719
- let x = {
720
+ let h = {
720
721
  type: "JsdocTypeFunction",
721
722
  parameters: [],
722
723
  arrow: !1,
723
- constructor: y,
724
+ constructor: f,
724
725
  parenthesis: d
725
- }, N = l.parseIntermediateType(f.FUNCTION);
726
+ }, O = l.parseIntermediateType(y.FUNCTION);
726
727
  if (e === void 0)
727
- x.parameters = qt(N);
728
+ h.parameters = qt(O);
728
729
  else {
729
- if (y && N.type === "JsdocTypeFunction" && N.arrow)
730
- return x = N, x.constructor = !0, x;
731
- x.parameters = Pe(N);
732
- for (let S of x.parameters)
730
+ if (f && O.type === "JsdocTypeFunction" && O.arrow)
731
+ return h = O, h.constructor = !0, h;
732
+ h.parameters = we(O);
733
+ for (let S of h.parameters)
733
734
  if (S.type === "JsdocTypeKeyValue" && !e.includes(S.key))
734
735
  throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${S.type}`);
735
736
  }
736
737
  if (l.consume(":"))
737
- x.returnType = l.parseType(f.PREFIX);
738
+ h.returnType = l.parseType(y.PREFIX);
738
739
  else if (!t)
739
740
  throw new Error("function is missing return type");
740
- return x;
741
+ return h;
741
742
  }, "parsePrefix")
742
743
  });
743
744
  }
744
- r(we, "createFunctionParslet");
745
+ r(Pe, "createFunctionParslet");
745
746
  function be({ allowPostfix: e, allowEnclosingBrackets: t }) {
746
- return h({
747
+ return x({
747
748
  name: "variadicParslet",
748
749
  accept: /* @__PURE__ */ r((o) => o === "...", "accept"),
749
- precedence: f.PREFIX,
750
+ precedence: y.PREFIX,
750
751
  parsePrefix: /* @__PURE__ */ r((o) => {
751
752
  o.consume("...");
752
753
  let i = t && o.consume("[");
753
754
  try {
754
- let l = o.parseType(f.PREFIX);
755
+ let l = o.parseType(y.PREFIX);
755
756
  if (i && !o.consume("]"))
756
757
  throw new Error("Unterminated variadic type. Missing ']'");
757
758
  return {
758
759
  type: "JsdocTypeVariadic",
759
- element: P(l),
760
+ element: w(l),
760
761
  meta: {
761
762
  position: "prefix",
762
763
  squareBrackets: i
@@ -779,7 +780,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
779
780
  }, "parsePrefix"),
780
781
  parseInfix: e ? (o, i) => (o.consume("..."), {
781
782
  type: "JsdocTypeVariadic",
782
- element: P(i),
783
+ element: w(i),
783
784
  meta: {
784
785
  position: "suffix",
785
786
  squareBrackets: !1
@@ -788,10 +789,10 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
788
789
  });
789
790
  }
790
791
  r(be, "createVariadicParslet");
791
- let He = h({
792
+ let He = x({
792
793
  name: "symbolParslet",
793
794
  accept: /* @__PURE__ */ r((e) => e === "(", "accept"),
794
- precedence: f.SYMBOL,
795
+ precedence: y.SYMBOL,
795
796
  parseInfix: /* @__PURE__ */ r((e, t) => {
796
797
  if (t.type !== "JsdocTypeName")
797
798
  throw new Error("Symbol expects a name on the left side. (Reacting on '(')");
@@ -801,15 +802,15 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
801
802
  value: t.value
802
803
  };
803
804
  if (!e.consume(")")) {
804
- let i = e.parseIntermediateType(f.SYMBOL);
805
+ let i = e.parseIntermediateType(y.SYMBOL);
805
806
  if (o.element = Vt(i), !e.consume(")"))
806
807
  throw new Error("Symbol does not end after value");
807
808
  }
808
809
  return o;
809
810
  }, "parseInfix")
810
- }), Qe = h({
811
+ }), Qe = x({
811
812
  name: "arrayBracketsParslet",
812
- precedence: f.ARRAY_BRACKETS,
813
+ precedence: y.ARRAY_BRACKETS,
813
814
  accept: /* @__PURE__ */ r((e, t) => e === "[" && t === "]", "accept"),
814
815
  parseInfix: /* @__PURE__ */ r((e, t) => (e.consume("["), e.consume("]"), {
815
816
  type: "JsdocTypeGeneric",
@@ -818,7 +819,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
818
819
  value: "Array"
819
820
  },
820
821
  elements: [
821
- P(t)
822
+ w(t)
822
823
  ],
823
824
  meta: {
824
825
  brackets: "square",
@@ -827,7 +828,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
827
828
  }), "parseInfix")
828
829
  });
829
830
  function Ee({ objectFieldGrammar: e, allowKeyTypes: t }) {
830
- return h({
831
+ return x({
831
832
  name: "objectParslet",
832
833
  accept: /* @__PURE__ */ r((o) => o === "{", "accept"),
833
834
  parsePrefix: /* @__PURE__ */ r((o) => {
@@ -840,20 +841,20 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
840
841
  elements: []
841
842
  };
842
843
  if (!o.consume("}")) {
843
- let l, y = new V(e, o.lexer, o);
844
+ let l, f = new V(e, o.lexer, o);
844
845
  for (; ; ) {
845
- y.acceptLexerState(o);
846
- let d = y.parseIntermediateType(f.OBJECT);
847
- o.acceptLexerState(y), d === void 0 && t && (d = o.parseIntermediateType(f.OBJECT));
848
- let x = !1;
849
- if (d.type === "JsdocTypeNullable" && (x = !0, d = d.element), d.type === "JsdocTypeNumber" || d.type === "JsdocTypeName" || d.
846
+ f.acceptLexerState(o);
847
+ let d = f.parseIntermediateType(y.OBJECT);
848
+ o.acceptLexerState(f), d === void 0 && t && (d = o.parseIntermediateType(y.OBJECT));
849
+ let h = !1;
850
+ if (d.type === "JsdocTypeNullable" && (h = !0, d = d.element), d.type === "JsdocTypeNumber" || d.type === "JsdocTypeName" || d.
850
851
  type === "JsdocTypeStringValue") {
851
852
  let S;
852
853
  d.type === "JsdocTypeStringValue" && (S = d.meta.quote), i.elements.push({
853
854
  type: "JsdocTypeObjectField",
854
855
  key: d.value.toString(),
855
856
  right: void 0,
856
- optional: x,
857
+ optional: h,
857
858
  readonly: !1,
858
859
  meta: {
859
860
  quote: S
@@ -883,40 +884,40 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
883
884
  }
884
885
  r(Ee, "createObjectParslet");
885
886
  function Se({ allowSquaredProperties: e, allowKeyTypes: t, allowReadonly: o, allowOptional: i }) {
886
- return h({
887
+ return x({
887
888
  name: "objectFieldParslet",
888
- precedence: f.KEY_VALUE,
889
+ precedence: y.KEY_VALUE,
889
890
  accept: /* @__PURE__ */ r((l) => l === ":", "accept"),
890
- parseInfix: /* @__PURE__ */ r((l, y) => {
891
+ parseInfix: /* @__PURE__ */ r((l, f) => {
891
892
  var d;
892
- let x = !1, N = !1;
893
- i && y.type === "JsdocTypeNullable" && (x = !0, y = y.element), o && y.type === "JsdocTypeReadonlyProperty" && (N = !0, y = y.element);
893
+ let h = !1, O = !1;
894
+ i && f.type === "JsdocTypeNullable" && (h = !0, f = f.element), o && f.type === "JsdocTypeReadonlyProperty" && (O = !0, f = f.element);
894
895
  let S = (d = l.baseParser) !== null && d !== void 0 ? d : l;
895
- if (S.acceptLexerState(l), y.type === "JsdocTypeNumber" || y.type === "JsdocTypeName" || y.type === "JsdocTypeStringValue" || he(y)) {
896
- if (he(y) && !e)
897
- throw new c(y);
896
+ if (S.acceptLexerState(l), f.type === "JsdocTypeNumber" || f.type === "JsdocTypeName" || f.type === "JsdocTypeStringValue" || xe(f)) {
897
+ if (xe(f) && !e)
898
+ throw new c(f);
898
899
  S.consume(":");
899
900
  let D;
900
- y.type === "JsdocTypeStringValue" && (D = y.meta.quote);
901
- let se = S.parseType(f.KEY_VALUE);
901
+ f.type === "JsdocTypeStringValue" && (D = f.meta.quote);
902
+ let se = S.parseType(y.KEY_VALUE);
902
903
  return l.acceptLexerState(S), {
903
904
  type: "JsdocTypeObjectField",
904
- key: he(y) ? y : y.value.toString(),
905
+ key: xe(f) ? f : f.value.toString(),
905
906
  right: se,
906
- optional: x,
907
- readonly: N,
907
+ optional: h,
908
+ readonly: O,
908
909
  meta: {
909
910
  quote: D
910
911
  }
911
912
  };
912
913
  } else {
913
914
  if (!t)
914
- throw new c(y);
915
+ throw new c(f);
915
916
  S.consume(":");
916
- let D = S.parseType(f.KEY_VALUE);
917
+ let D = S.parseType(y.KEY_VALUE);
917
918
  return l.acceptLexerState(S), {
918
919
  type: "JsdocTypeJsdocObjectField",
919
- left: P(y),
920
+ left: w(f),
920
921
  right: D
921
922
  };
922
923
  }
@@ -925,23 +926,23 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
925
926
  }
926
927
  r(Se, "createObjectFieldParslet");
927
928
  function Ne({ allowOptional: e, allowVariadic: t }) {
928
- return h({
929
+ return x({
929
930
  name: "keyValueParslet",
930
- precedence: f.KEY_VALUE,
931
+ precedence: y.KEY_VALUE,
931
932
  accept: /* @__PURE__ */ r((o) => o === ":", "accept"),
932
933
  parseInfix: /* @__PURE__ */ r((o, i) => {
933
- let l = !1, y = !1;
934
+ let l = !1, f = !1;
934
935
  if (e && i.type === "JsdocTypeNullable" && (l = !0, i = i.element), t && i.type === "JsdocTypeVariadic" && i.element !== void 0 &&
935
- (y = !0, i = i.element), i.type !== "JsdocTypeName")
936
+ (f = !0, i = i.element), i.type !== "JsdocTypeName")
936
937
  throw new c(i);
937
938
  o.consume(":");
938
- let d = o.parseType(f.KEY_VALUE);
939
+ let d = o.parseType(y.KEY_VALUE);
939
940
  return {
940
941
  type: "JsdocTypeKeyValue",
941
942
  key: i.value,
942
943
  right: d,
943
944
  optional: l,
944
- variadic: y
945
+ variadic: f
945
946
  };
946
947
  }, "parseInfix")
947
948
  });
@@ -949,7 +950,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
949
950
  r(Ne, "createKeyValueParslet");
950
951
  let Ze = [
951
952
  ...Je,
952
- we({
953
+ Pe({
953
954
  allowWithoutParenthesis: !0,
954
955
  allowNamedParameters: ["this", "new"],
955
956
  allowNoReturnType: !0,
@@ -964,7 +965,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
964
965
  allowEnclosingBrackets: !0,
965
966
  allowPostfix: !0
966
967
  }),
967
- R({
968
+ I({
968
969
  allowedAdditionalTokens: ["keyof"]
969
970
  }),
970
971
  He,
@@ -980,7 +981,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
980
981
  // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here
981
982
  // we leave out the object type deliberately
982
983
  objectFieldGrammar: [
983
- R({
984
+ I({
984
985
  allowedAdditionalTokens: ["module", "in"]
985
986
  }),
986
987
  Se({
@@ -997,18 +998,18 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
997
998
  allowOptional: !0,
998
999
  allowVariadic: !0
999
1000
  })
1000
- ], et = h({
1001
+ ], et = x({
1001
1002
  name: "typeOfParslet",
1002
1003
  accept: /* @__PURE__ */ r((e) => e === "typeof", "accept"),
1003
1004
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("typeof"), {
1004
1005
  type: "JsdocTypeTypeof",
1005
- element: P(e.parseType(f.KEY_OF_TYPE_OF))
1006
+ element: w(e.parseType(y.KEY_OF_TYPE_OF))
1006
1007
  }), "parsePrefix")
1007
1008
  }), Wt = [
1008
- R({
1009
+ I({
1009
1010
  allowedAdditionalTokens: ["module", "keyof", "event", "external", "in"]
1010
1011
  }),
1011
- xe,
1012
+ he,
1012
1013
  ee,
1013
1014
  Y,
1014
1015
  te,
@@ -1024,11 +1025,11 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1024
1025
  allowKeyTypes: !1,
1025
1026
  objectFieldGrammar: Wt
1026
1027
  }),
1027
- R({
1028
+ I({
1028
1029
  allowedAdditionalTokens: ["event", "external", "in"]
1029
1030
  }),
1030
1031
  et,
1031
- we({
1032
+ Pe({
1032
1033
  allowWithoutParenthesis: !1,
1033
1034
  allowNamedParameters: ["this", "new"],
1034
1035
  allowNoReturnType: !0,
@@ -1039,7 +1040,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1039
1040
  allowPostfix: !1
1040
1041
  }),
1041
1042
  // additional name parslet is needed for some special cases
1042
- R({
1043
+ I({
1043
1044
  allowedAdditionalTokens: ["keyof"]
1044
1045
  }),
1045
1046
  ne({
@@ -1056,9 +1057,23 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1056
1057
  allowVariadic: !1
1057
1058
  }),
1058
1059
  He
1059
- ];
1060
+ ], Xt = x({
1061
+ name: "assertsParslet",
1062
+ accept: /* @__PURE__ */ r((e) => e === "asserts", "accept"),
1063
+ parsePrefix: /* @__PURE__ */ r((e) => {
1064
+ e.consume("asserts");
1065
+ let t = e.parseIntermediateType(y.SYMBOL);
1066
+ if (t.type !== "JsdocTypeName")
1067
+ throw new c(t, "A typescript asserts always has to have a name on the left side.");
1068
+ return e.consume("is"), {
1069
+ type: "JsdocTypeAsserts",
1070
+ left: t,
1071
+ right: w(e.parseIntermediateType(y.INFIX))
1072
+ };
1073
+ }, "parsePrefix")
1074
+ });
1060
1075
  function zt({ allowQuestionMark: e }) {
1061
- return h({
1076
+ return x({
1062
1077
  name: "tupleParslet",
1063
1078
  accept: /* @__PURE__ */ r((t) => t === "[", "accept"),
1064
1079
  parsePrefix: /* @__PURE__ */ r((t) => {
@@ -1069,9 +1084,9 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1069
1084
  };
1070
1085
  if (t.consume("]"))
1071
1086
  return o;
1072
- let i = t.parseIntermediateType(f.ALL);
1087
+ let i = t.parseIntermediateType(y.ALL);
1073
1088
  if (i.type === "JsdocTypeParameterList" ? i.elements[0].type === "JsdocTypeKeyValue" ? o.elements = i.elements.map(Z) : o.elements =
1074
- i.elements.map(P) : i.type === "JsdocTypeKeyValue" ? o.elements = [Z(i)] : o.elements = [P(i)], !t.consume("]"))
1089
+ i.elements.map(w) : i.type === "JsdocTypeKeyValue" ? o.elements = [Z(i)] : o.elements = [w(i)], !t.consume("]"))
1075
1090
  throw new Error("Unterminated '['");
1076
1091
  if (!e && o.elements.some((l) => l.type === "JsdocTypeUnknown"))
1077
1092
  throw new Error("Question mark in tuple not allowed");
@@ -1080,20 +1095,20 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1080
1095
  });
1081
1096
  }
1082
1097
  r(zt, "createTupleParslet");
1083
- let Xt = h({
1098
+ let Ht = x({
1084
1099
  name: "keyOfParslet",
1085
1100
  accept: /* @__PURE__ */ r((e) => e === "keyof", "accept"),
1086
1101
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("keyof"), {
1087
1102
  type: "JsdocTypeKeyof",
1088
- element: P(e.parseType(f.KEY_OF_TYPE_OF))
1103
+ element: w(e.parseType(y.KEY_OF_TYPE_OF))
1089
1104
  }), "parsePrefix")
1090
- }), Ht = h({
1105
+ }), Qt = x({
1091
1106
  name: "importParslet",
1092
1107
  accept: /* @__PURE__ */ r((e) => e === "import", "accept"),
1093
1108
  parsePrefix: /* @__PURE__ */ r((e) => {
1094
1109
  if (e.consume("import"), !e.consume("("))
1095
1110
  throw new Error("Missing parenthesis after import keyword");
1096
- let t = e.parseType(f.PREFIX);
1111
+ let t = e.parseType(y.PREFIX);
1097
1112
  if (t.type !== "JsdocTypeStringValue")
1098
1113
  throw new Error("Only string values are allowed as paths for imports");
1099
1114
  if (!e.consume(")"))
@@ -1103,43 +1118,43 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1103
1118
  element: t
1104
1119
  };
1105
1120
  }, "parsePrefix")
1106
- }), Qt = h({
1121
+ }), Zt = x({
1107
1122
  name: "readonlyPropertyParslet",
1108
1123
  accept: /* @__PURE__ */ r((e) => e === "readonly", "accept"),
1109
1124
  parsePrefix: /* @__PURE__ */ r((e) => (e.consume("readonly"), {
1110
1125
  type: "JsdocTypeReadonlyProperty",
1111
- element: e.parseType(f.KEY_VALUE)
1126
+ element: e.parseType(y.KEY_VALUE)
1112
1127
  }), "parsePrefix")
1113
- }), Zt = h({
1128
+ }), er = x({
1114
1129
  name: "arrowFunctionParslet",
1115
- precedence: f.ARROW,
1130
+ precedence: y.ARROW,
1116
1131
  accept: /* @__PURE__ */ r((e) => e === "=>", "accept"),
1117
1132
  parseInfix: /* @__PURE__ */ r((e, t) => (e.consume("=>"), {
1118
1133
  type: "JsdocTypeFunction",
1119
- parameters: Pe(t).map(Lt),
1134
+ parameters: we(t).map(Lt),
1120
1135
  arrow: !0,
1121
1136
  constructor: !1,
1122
1137
  parenthesis: !0,
1123
- returnType: e.parseType(f.OBJECT)
1138
+ returnType: e.parseType(y.OBJECT)
1124
1139
  }), "parseInfix")
1125
- }), er = h({
1140
+ }), tr = x({
1126
1141
  name: "intersectionParslet",
1127
1142
  accept: /* @__PURE__ */ r((e) => e === "&", "accept"),
1128
- precedence: f.INTERSECTION,
1143
+ precedence: y.INTERSECTION,
1129
1144
  parseInfix: /* @__PURE__ */ r((e, t) => {
1130
1145
  e.consume("&");
1131
1146
  let o = [];
1132
1147
  do
1133
- o.push(e.parseType(f.INTERSECTION));
1148
+ o.push(e.parseType(y.INTERSECTION));
1134
1149
  while (e.consume("&"));
1135
1150
  return {
1136
1151
  type: "JsdocTypeIntersection",
1137
- elements: [P(t), ...o]
1152
+ elements: [w(t), ...o]
1138
1153
  };
1139
1154
  }, "parseInfix")
1140
- }), tr = h({
1155
+ }), rr = x({
1141
1156
  name: "predicateParslet",
1142
- precedence: f.INFIX,
1157
+ precedence: y.INFIX,
1143
1158
  accept: /* @__PURE__ */ r((e) => e === "is", "accept"),
1144
1159
  parseInfix: /* @__PURE__ */ r((e, t) => {
1145
1160
  if (t.type !== "JsdocTypeName")
@@ -1147,10 +1162,10 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1147
1162
  return e.consume("is"), {
1148
1163
  type: "JsdocTypePredicate",
1149
1164
  left: t,
1150
- right: P(e.parseIntermediateType(f.INFIX))
1165
+ right: w(e.parseIntermediateType(y.INFIX))
1151
1166
  };
1152
1167
  }, "parseInfix")
1153
- }), rr = h({
1168
+ }), nr = x({
1154
1169
  name: "objectSquareBracketPropertyParslet",
1155
1170
  accept: /* @__PURE__ */ r((e) => e === "[", "accept"),
1156
1171
  parsePrefix: /* @__PURE__ */ r((e) => {
@@ -1165,14 +1180,14 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1165
1180
  i.acceptLexerState(e), o = {
1166
1181
  type: "JsdocTypeIndexSignature",
1167
1182
  key: t,
1168
- right: i.parseType(f.ARRAY_BRACKETS)
1183
+ right: i.parseType(y.INDEX_BRACKETS)
1169
1184
  }, e.acceptLexerState(i);
1170
1185
  } else if (e.consume("in")) {
1171
1186
  let i = e.baseParser;
1172
1187
  i.acceptLexerState(e), o = {
1173
1188
  type: "JsdocTypeMappedType",
1174
1189
  key: t,
1175
- right: i.parseType(f.ARRAY_BRACKETS)
1190
+ right: i.parseType(y.ARRAY_BRACKETS)
1176
1191
  }, e.acceptLexerState(i);
1177
1192
  } else
1178
1193
  throw new Error("Missing ':' or 'in' inside square bracketed property.");
@@ -1180,12 +1195,12 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1180
1195
  throw new Error("Unterminated square brackets");
1181
1196
  return o;
1182
1197
  }, "parsePrefix")
1183
- }), nr = [
1184
- Qt,
1185
- R({
1198
+ }), or = [
1199
+ Zt,
1200
+ I({
1186
1201
  allowedAdditionalTokens: ["module", "event", "keyof", "event", "external", "in"]
1187
1202
  }),
1188
- xe,
1203
+ he,
1189
1204
  ee,
1190
1205
  Y,
1191
1206
  te,
@@ -1195,18 +1210,18 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1195
1210
  allowOptional: !0,
1196
1211
  allowReadonly: !0
1197
1212
  }),
1198
- rr
1199
- ], or = [
1213
+ nr
1214
+ ], sr = [
1200
1215
  ...Je,
1201
1216
  Ee({
1202
1217
  allowKeyTypes: !1,
1203
- objectFieldGrammar: nr
1218
+ objectFieldGrammar: or
1204
1219
  }),
1205
1220
  et,
1206
- Xt,
1207
1221
  Ht,
1222
+ Qt,
1208
1223
  Y,
1209
- we({
1224
+ Pe({
1210
1225
  allowWithoutParenthesis: !0,
1211
1226
  allowNoReturnType: !1,
1212
1227
  allowNamedParameters: ["this", "new", "args"],
@@ -1219,7 +1234,8 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1219
1234
  allowEnclosingBrackets: !1,
1220
1235
  allowPostfix: !1
1221
1236
  }),
1222
- R({
1237
+ Xt,
1238
+ I({
1223
1239
  allowedAdditionalTokens: ["event", "external", "in"]
1224
1240
  }),
1225
1241
  ne({
@@ -1227,14 +1243,14 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1227
1243
  pathGrammar: U
1228
1244
  }),
1229
1245
  Qe,
1230
- Zt,
1246
+ er,
1231
1247
  re({
1232
1248
  allowSquareBracketsOnAnyType: !0,
1233
1249
  allowJsdocNamePaths: !1,
1234
1250
  pathGrammar: U
1235
1251
  }),
1236
- er,
1237
1252
  tr,
1253
+ rr,
1238
1254
  Ne({
1239
1255
  allowVariadic: !0,
1240
1256
  allowOptional: !0
@@ -1247,11 +1263,11 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1247
1263
  case "jsdoc":
1248
1264
  return new V(Yt, e).parse();
1249
1265
  case "typescript":
1250
- return new V(or, e).parse();
1266
+ return new V(sr, e).parse();
1251
1267
  }
1252
1268
  }
1253
1269
  r(tt, "parse");
1254
- function sr(e, t = ["typescript", "closure", "jsdoc"]) {
1270
+ function ar(e, t = ["typescript", "closure", "jsdoc"]) {
1255
1271
  let o;
1256
1272
  for (let i of t)
1257
1273
  try {
@@ -1261,7 +1277,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1261
1277
  }
1262
1278
  throw o;
1263
1279
  }
1264
- r(sr, "tryParse");
1280
+ r(ar, "tryParse");
1265
1281
  function W(e, t) {
1266
1282
  let o = e[t.type];
1267
1283
  if (o === void 0)
@@ -1269,10 +1285,10 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1269
1285
  return o(t, (i) => W(e, i));
1270
1286
  }
1271
1287
  r(W, "transform");
1272
- function O(e) {
1288
+ function N(e) {
1273
1289
  throw new Error("This transform is not available. Are you trying the correct parsing mode?");
1274
1290
  }
1275
- r(O, "notAvailableTransform");
1291
+ r(N, "notAvailableTransform");
1276
1292
  function rt(e) {
1277
1293
  let t = {
1278
1294
  params: []
@@ -1287,7 +1303,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1287
1303
  return e === "prefix" ? o + t : t + o;
1288
1304
  }
1289
1305
  r(oe, "applyPosition");
1290
- function I(e, t) {
1306
+ function R(e, t) {
1291
1307
  switch (t) {
1292
1308
  case "double":
1293
1309
  return `"${e}"`;
@@ -1297,7 +1313,7 @@ adonlyProperty" || e.type === "JsdocTypeObjectField" || e.type === "JsdocTypeJsd
1297
1313
  return e;
1298
1314
  }
1299
1315
  }
1300
- r(I, "quote");
1316
+ r(R, "quote");
1301
1317
  function nt() {
1302
1318
  return {
1303
1319
  JsdocTypeParenthesis: /* @__PURE__ */ r((e, t) => `(${e.element !== void 0 ? t(e.element) : ""})`, "JsdocTypeParenthesis"),
@@ -1330,7 +1346,7 @@ TypeVariadic"),
1330
1346
  return `${o}[${i}]`;
1331
1347
  }
1332
1348
  }, "JsdocTypeNamePath"),
1333
- JsdocTypeStringValue: /* @__PURE__ */ r((e) => I(e.value, e.meta.quote), "JsdocTypeStringValue"),
1349
+ JsdocTypeStringValue: /* @__PURE__ */ r((e) => R(e.value, e.meta.quote), "JsdocTypeStringValue"),
1334
1350
  JsdocTypeAny: /* @__PURE__ */ r(() => "*", "JsdocTypeAny"),
1335
1351
  JsdocTypeGeneric: /* @__PURE__ */ r((e, t) => {
1336
1352
  if (e.meta.brackets === "square") {
@@ -1342,7 +1358,7 @@ TypeVariadic"),
1342
1358
  JsdocTypeImport: /* @__PURE__ */ r((e, t) => `import(${t(e.element)})`, "JsdocTypeImport"),
1343
1359
  JsdocTypeObjectField: /* @__PURE__ */ r((e, t) => {
1344
1360
  let o = "";
1345
- return e.readonly && (o += "readonly "), typeof e.key == "string" ? o += I(e.key, e.meta.quote) : o += t(e.key), e.optional && (o +=
1361
+ return e.readonly && (o += "readonly "), typeof e.key == "string" ? o += R(e.key, e.meta.quote) : o += t(e.key), e.optional && (o +=
1346
1362
  "?"), e.right === void 0 ? o : o + `: ${t(e.right)}`;
1347
1363
  }, "JsdocTypeObjectField"),
1348
1364
  JsdocTypeJsdocObjectField: /* @__PURE__ */ r((e, t) => `${t(e.left)}: ${t(e.right)}`, "JsdocTypeJsdocObjectField"),
@@ -1350,7 +1366,7 @@ TypeVariadic"),
1350
1366
  let o = e.key;
1351
1367
  return e.optional && (o += "?"), e.variadic && (o = "..." + o), e.right === void 0 ? o : o + `: ${t(e.right)}`;
1352
1368
  }, "JsdocTypeKeyValue"),
1353
- JsdocTypeSpecialNamePath: /* @__PURE__ */ r((e) => `${e.specialType}:${I(e.value, e.meta.quote)}`, "JsdocTypeSpecialNamePath"),
1369
+ JsdocTypeSpecialNamePath: /* @__PURE__ */ r((e) => `${e.specialType}:${R(e.value, e.meta.quote)}`, "JsdocTypeSpecialNamePath"),
1354
1370
  JsdocTypeNotNullable: /* @__PURE__ */ r((e, t) => oe(e.meta.position, t(e.element), "!"), "JsdocTypeNotNullable"),
1355
1371
  JsdocTypeNull: /* @__PURE__ */ r(() => "null", "JsdocTypeNull"),
1356
1372
  JsdocTypeNullable: /* @__PURE__ */ r((e, t) => oe(e.meta.position, t(e.element), "?"), "JsdocTypeNullable"),
@@ -1364,19 +1380,20 @@ TypeObject"),
1364
1380
  JsdocTypeUnion: /* @__PURE__ */ r((e, t) => e.elements.map(t).join(" | "), "JsdocTypeUnion"),
1365
1381
  JsdocTypeUnknown: /* @__PURE__ */ r(() => "?", "JsdocTypeUnknown"),
1366
1382
  JsdocTypeIntersection: /* @__PURE__ */ r((e, t) => e.elements.map(t).join(" & "), "JsdocTypeIntersection"),
1367
- JsdocTypeProperty: /* @__PURE__ */ r((e) => I(e.value, e.meta.quote), "JsdocTypeProperty"),
1383
+ JsdocTypeProperty: /* @__PURE__ */ r((e) => R(e.value, e.meta.quote), "JsdocTypeProperty"),
1368
1384
  JsdocTypePredicate: /* @__PURE__ */ r((e, t) => `${t(e.left)} is ${t(e.right)}`, "JsdocTypePredicate"),
1369
1385
  JsdocTypeIndexSignature: /* @__PURE__ */ r((e, t) => `[${e.key}: ${t(e.right)}]`, "JsdocTypeIndexSignature"),
1370
- JsdocTypeMappedType: /* @__PURE__ */ r((e, t) => `[${e.key} in ${t(e.right)}]`, "JsdocTypeMappedType")
1386
+ JsdocTypeMappedType: /* @__PURE__ */ r((e, t) => `[${e.key} in ${t(e.right)}]`, "JsdocTypeMappedType"),
1387
+ JsdocTypeAsserts: /* @__PURE__ */ r((e, t) => `asserts ${t(e.left)} is ${t(e.right)}`, "JsdocTypeAsserts")
1371
1388
  };
1372
1389
  }
1373
1390
  r(nt, "stringifyRules");
1374
- let ar = nt();
1375
- function ir(e) {
1376
- return W(ar, e);
1391
+ let ir = nt();
1392
+ function pr(e) {
1393
+ return W(ir, e);
1377
1394
  }
1378
- r(ir, "stringify");
1379
- let pr = [
1395
+ r(pr, "stringify");
1396
+ let cr = [
1380
1397
  "null",
1381
1398
  "true",
1382
1399
  "false",
@@ -1414,15 +1431,15 @@ TypeObject"),
1414
1431
  "with",
1415
1432
  "yield"
1416
1433
  ];
1417
- function F(e) {
1434
+ function j(e) {
1418
1435
  let t = {
1419
1436
  type: "NameExpression",
1420
1437
  name: e
1421
1438
  };
1422
- return pr.includes(e) && (t.reservedWord = !0), t;
1439
+ return cr.includes(e) && (t.reservedWord = !0), t;
1423
1440
  }
1424
- r(F, "makeName");
1425
- let cr = {
1441
+ r(j, "makeName");
1442
+ let lr = {
1426
1443
  JsdocTypeOptional: /* @__PURE__ */ r((e, t) => {
1427
1444
  let o = t(e.element);
1428
1445
  return o.optional = !0, o;
@@ -1447,7 +1464,7 @@ TypeObject"),
1447
1464
  JsdocTypeNull: /* @__PURE__ */ r(() => ({
1448
1465
  type: "NullLiteral"
1449
1466
  }), "JsdocTypeNull"),
1450
- JsdocTypeStringValue: /* @__PURE__ */ r((e) => F(I(e.value, e.meta.quote)), "JsdocTypeStringValue"),
1467
+ JsdocTypeStringValue: /* @__PURE__ */ r((e) => j(R(e.value, e.meta.quote)), "JsdocTypeStringValue"),
1451
1468
  JsdocTypeUndefined: /* @__PURE__ */ r(() => ({
1452
1469
  type: "UndefinedLiteral"
1453
1470
  }), "JsdocTypeUndefined"),
@@ -1467,12 +1484,12 @@ TypeObject"),
1467
1484
  applications: e.elements.map((o) => t(o)),
1468
1485
  expression: t(e.left)
1469
1486
  }), "JsdocTypeGeneric"),
1470
- JsdocTypeSpecialNamePath: /* @__PURE__ */ r((e) => F(e.specialType + ":" + I(e.value, e.meta.quote)), "JsdocTypeSpecialNamePath"),
1471
- JsdocTypeName: /* @__PURE__ */ r((e) => e.value !== "function" ? F(e.value) : {
1487
+ JsdocTypeSpecialNamePath: /* @__PURE__ */ r((e) => j(e.specialType + ":" + R(e.value, e.meta.quote)), "JsdocTypeSpecialNamePath"),
1488
+ JsdocTypeName: /* @__PURE__ */ r((e) => e.value !== "function" ? j(e.value) : {
1472
1489
  type: "FunctionType",
1473
1490
  params: []
1474
1491
  }, "JsdocTypeName"),
1475
- JsdocTypeNumber: /* @__PURE__ */ r((e) => F(e.value.toString()), "JsdocTypeNumber"),
1492
+ JsdocTypeNumber: /* @__PURE__ */ r((e) => j(e.value.toString()), "JsdocTypeNumber"),
1476
1493
  JsdocTypeObject: /* @__PURE__ */ r((e, t) => {
1477
1494
  let o = {
1478
1495
  type: "RecordType",
@@ -1491,7 +1508,7 @@ TypeObject"),
1491
1508
  throw new Error("Index signatures and mapped types are not supported");
1492
1509
  return {
1493
1510
  type: "FieldType",
1494
- key: F(I(e.key, e.meta.quote)),
1511
+ key: j(R(e.key, e.meta.quote)),
1495
1512
  value: e.right === void 0 ? void 0 : t(e.right)
1496
1513
  };
1497
1514
  }, "JsdocTypeObjectField"),
@@ -1506,35 +1523,36 @@ TypeObject"),
1506
1523
  }), "JsdocTypeUnion"),
1507
1524
  JsdocTypeKeyValue: /* @__PURE__ */ r((e, t) => ({
1508
1525
  type: "FieldType",
1509
- key: F(e.key),
1526
+ key: j(e.key),
1510
1527
  value: e.right === void 0 ? void 0 : t(e.right)
1511
1528
  }), "JsdocTypeKeyValue"),
1512
1529
  JsdocTypeNamePath: /* @__PURE__ */ r((e, t) => {
1513
1530
  let o = t(e.left), i;
1514
- e.right.type === "JsdocTypeSpecialNamePath" ? i = t(e.right).name : i = I(e.right.value, e.right.meta.quote);
1531
+ e.right.type === "JsdocTypeSpecialNamePath" ? i = t(e.right).name : i = R(e.right.value, e.right.meta.quote);
1515
1532
  let l = e.pathType === "inner" ? "~" : e.pathType === "instance" ? "#" : ".";
1516
- return F(`${o.name}${l}${i}`);
1533
+ return j(`${o.name}${l}${i}`);
1517
1534
  }, "JsdocTypeNamePath"),
1518
1535
  JsdocTypeSymbol: /* @__PURE__ */ r((e) => {
1519
1536
  let t = "", o = e.element, i = !1;
1520
1537
  return o?.type === "JsdocTypeVariadic" && (o.meta.position === "prefix" ? t = "..." : i = !0, o = o.element), o?.type === "JsdocType\
1521
- Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()), i && (t += "..."), F(`${e.value}(${t})`);
1538
+ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()), i && (t += "..."), j(`${e.value}(${t})`);
1522
1539
  }, "JsdocTypeSymbol"),
1523
- JsdocTypeParenthesis: /* @__PURE__ */ r((e, t) => t(P(e.element)), "JsdocTypeParenthesis"),
1524
- JsdocTypeMappedType: O,
1525
- JsdocTypeIndexSignature: O,
1526
- JsdocTypeImport: O,
1527
- JsdocTypeKeyof: O,
1528
- JsdocTypeTuple: O,
1529
- JsdocTypeTypeof: O,
1530
- JsdocTypeIntersection: O,
1531
- JsdocTypeProperty: O,
1532
- JsdocTypePredicate: O
1540
+ JsdocTypeParenthesis: /* @__PURE__ */ r((e, t) => t(w(e.element)), "JsdocTypeParenthesis"),
1541
+ JsdocTypeMappedType: N,
1542
+ JsdocTypeIndexSignature: N,
1543
+ JsdocTypeImport: N,
1544
+ JsdocTypeKeyof: N,
1545
+ JsdocTypeTuple: N,
1546
+ JsdocTypeTypeof: N,
1547
+ JsdocTypeIntersection: N,
1548
+ JsdocTypeProperty: N,
1549
+ JsdocTypePredicate: N,
1550
+ JsdocTypeAsserts: N
1533
1551
  };
1534
- function lr(e) {
1535
- return W(cr, e);
1552
+ function ur(e) {
1553
+ return W(lr, e);
1536
1554
  }
1537
- r(lr, "catharsisTransform");
1555
+ r(ur, "catharsisTransform");
1538
1556
  function _(e) {
1539
1557
  switch (e) {
1540
1558
  case void 0:
@@ -1546,7 +1564,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1546
1564
  }
1547
1565
  }
1548
1566
  r(_, "getQuoteStyle");
1549
- function ur(e) {
1567
+ function mr(e) {
1550
1568
  switch (e) {
1551
1569
  case "inner":
1552
1570
  return "INNER_MEMBER";
@@ -1558,7 +1576,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1558
1576
  return "MEMBER";
1559
1577
  }
1560
1578
  }
1561
- r(ur, "getMemberType");
1579
+ r(mr, "getMemberType");
1562
1580
  function Oe(e, t) {
1563
1581
  return t.length === 2 ? {
1564
1582
  type: e,
@@ -1571,7 +1589,7 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1571
1589
  };
1572
1590
  }
1573
1591
  r(Oe, "nestResults");
1574
- let mr = {
1592
+ let fr = {
1575
1593
  JsdocTypeOptional: /* @__PURE__ */ r((e, t) => ({
1576
1594
  type: "OPTIONAL",
1577
1595
  value: t(e.element),
@@ -1746,23 +1764,23 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1746
1764
  let o = !1, i, l;
1747
1765
  e.right.type === "JsdocTypeSpecialNamePath" && e.right.specialType === "event" ? (o = !0, i = e.right.value, l = _(e.right.meta.quote)) :
1748
1766
  (i = e.right.value, l = _(e.right.meta.quote));
1749
- let y = {
1750
- type: ur(e.pathType),
1767
+ let f = {
1768
+ type: mr(e.pathType),
1751
1769
  owner: t(e.left),
1752
1770
  name: i,
1753
1771
  quoteStyle: l,
1754
1772
  hasEventPrefix: o
1755
1773
  };
1756
- if (y.owner.type === "MODULE") {
1757
- let d = y.owner;
1758
- return y.owner = y.owner.value, d.value = y, d;
1774
+ if (f.owner.type === "MODULE") {
1775
+ let d = f.owner;
1776
+ return f.owner = f.owner.value, d.value = f, d;
1759
1777
  } else
1760
- return y;
1778
+ return f;
1761
1779
  }, "JsdocTypeNamePath"),
1762
1780
  JsdocTypeUnion: /* @__PURE__ */ r((e, t) => Oe("UNION", e.elements.map(t)), "JsdocTypeUnion"),
1763
1781
  JsdocTypeParenthesis: /* @__PURE__ */ r((e, t) => ({
1764
1782
  type: "PARENTHESIS",
1765
- value: t(P(e.element))
1783
+ value: t(w(e.element))
1766
1784
  }), "JsdocTypeParenthesis"),
1767
1785
  JsdocTypeNull: /* @__PURE__ */ r(() => ({
1768
1786
  type: "NAME",
@@ -1781,17 +1799,18 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1781
1799
  type: "NUMBER_VALUE",
1782
1800
  number: e.value.toString()
1783
1801
  }), "JsdocTypeNumber"),
1784
- JsdocTypeSymbol: O,
1785
- JsdocTypeProperty: O,
1786
- JsdocTypePredicate: O,
1787
- JsdocTypeMappedType: O,
1788
- JsdocTypeIndexSignature: O
1802
+ JsdocTypeSymbol: N,
1803
+ JsdocTypeProperty: N,
1804
+ JsdocTypePredicate: N,
1805
+ JsdocTypeMappedType: N,
1806
+ JsdocTypeIndexSignature: N,
1807
+ JsdocTypeAsserts: N
1789
1808
  };
1790
1809
  function yr(e) {
1791
- return W(mr, e);
1810
+ return W(fr, e);
1792
1811
  }
1793
1812
  r(yr, "jtpTransform");
1794
- function fr() {
1813
+ function dr() {
1795
1814
  return {
1796
1815
  JsdocTypeIntersection: /* @__PURE__ */ r((e, t) => ({
1797
1816
  type: "JsdocTypeIntersection",
@@ -1923,10 +1942,15 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1923
1942
  type: "JsdocTypeMappedType",
1924
1943
  key: e.key,
1925
1944
  right: t(e.right)
1926
- }), "JsdocTypeMappedType")
1945
+ }), "JsdocTypeMappedType"),
1946
+ JsdocTypeAsserts: /* @__PURE__ */ r((e, t) => ({
1947
+ type: "JsdocTypeAsserts",
1948
+ left: t(e.left),
1949
+ right: t(e.right)
1950
+ }), "JsdocTypeAsserts")
1927
1951
  };
1928
1952
  }
1929
- r(fr, "identityTransformRules");
1953
+ r(dr, "identityTransformRules");
1930
1954
  let ot = {
1931
1955
  JsdocTypeAny: [],
1932
1956
  JsdocTypeFunction: ["parameters", "returnType"],
@@ -1958,67 +1982,68 @@ Name" ? t += o.value : o?.type === "JsdocTypeNumber" && (t += o.value.toString()
1958
1982
  JsdocTypeUnknown: [],
1959
1983
  JsdocTypeVariadic: ["element"],
1960
1984
  JsdocTypeProperty: [],
1961
- JsdocTypePredicate: ["left", "right"]
1985
+ JsdocTypePredicate: ["left", "right"],
1986
+ JsdocTypeAsserts: ["left", "right"]
1962
1987
  };
1963
1988
  function De(e, t, o, i, l) {
1964
1989
  i?.(e, t, o);
1965
- let y = ot[e.type];
1966
- for (let d of y) {
1967
- let x = e[d];
1968
- if (x !== void 0)
1969
- if (Array.isArray(x))
1970
- for (let N of x)
1971
- De(N, e, d, i, l);
1990
+ let f = ot[e.type];
1991
+ for (let d of f) {
1992
+ let h = e[d];
1993
+ if (h !== void 0)
1994
+ if (Array.isArray(h))
1995
+ for (let O of h)
1996
+ De(O, e, d, i, l);
1972
1997
  else
1973
- De(x, e, d, i, l);
1998
+ De(h, e, d, i, l);
1974
1999
  }
1975
2000
  l?.(e, t, o);
1976
2001
  }
1977
2002
  r(De, "_traverse");
1978
- function dr(e, t, o) {
2003
+ function Tr(e, t, o) {
1979
2004
  De(e, void 0, void 0, t, o);
1980
2005
  }
1981
- r(dr, "traverse"), n.catharsisTransform = lr, n.identityTransformRules = fr, n.jtpTransform = yr, n.parse = tt, n.stringify = ir, n.stringifyRules =
1982
- nt, n.transform = W, n.traverse = dr, n.tryParse = sr, n.visitorKeys = ot;
2006
+ r(Tr, "traverse"), n.catharsisTransform = ur, n.identityTransformRules = dr, n.jtpTransform = yr, n.parse = tt, n.stringify = pr, n.stringifyRules =
2007
+ nt, n.transform = W, n.traverse = Tr, n.tryParse = ar, n.visitorKeys = ot;
1983
2008
  });
1984
2009
  });
1985
2010
 
1986
2011
  // src/docs-tools/index.ts
1987
- var En = {};
1988
- wr(En, {
2012
+ var Sn = {};
2013
+ br(Sn, {
1989
2014
  ADDON_ID: () => Ge,
1990
- MAX_DEFAULT_VALUE_SUMMARY_LENGTH: () => en,
1991
- MAX_TYPE_SUMMARY_LENGTH: () => Zr,
1992
- PANEL_ID: () => xn,
1993
- PARAM_KEY: () => Jn,
2015
+ MAX_DEFAULT_VALUE_SUMMARY_LENGTH: () => tn,
2016
+ MAX_TYPE_SUMMARY_LENGTH: () => en,
2017
+ PANEL_ID: () => Jn,
2018
+ PARAM_KEY: () => wn,
1994
2019
  SNIPPET_RENDERED: () => Pn,
1995
- SourceType: () => Ft,
2020
+ SourceType: () => jt,
1996
2021
  TypeSystem: () => ut,
1997
2022
  convert: () => H,
1998
2023
  createSummaryValue: () => J,
1999
2024
  enhanceArgTypes: () => hn,
2000
- extractComponentDescription: () => gn,
2001
- extractComponentProps: () => Tn,
2025
+ extractComponentDescription: () => xn,
2026
+ extractComponentProps: () => gn,
2002
2027
  extractComponentSectionArray: () => At,
2003
- extractComponentSectionObject: () => Rt,
2004
- getDocgenDescription: () => Fe,
2005
- getDocgenSection: () => Ie,
2028
+ extractComponentSectionObject: () => It,
2029
+ getDocgenDescription: () => je,
2030
+ getDocgenSection: () => Re,
2006
2031
  hasDocgen: () => Ae,
2007
- hasDocsOrControls: () => bn,
2032
+ hasDocsOrControls: () => En,
2008
2033
  isDefaultValueBlacklisted: () => L,
2009
2034
  isTooLongForDefaultValueSummary: () => qe,
2010
2035
  isTooLongForTypeSummary: () => me,
2011
- isValidDocgenSection: () => Re,
2012
- normalizeNewlines: () => tn,
2036
+ isValidDocgenSection: () => Ie,
2037
+ normalizeNewlines: () => rn,
2013
2038
  parseJsDoc: () => $e,
2014
2039
  str: () => ke
2015
2040
  });
2016
- module.exports = Er(En);
2041
+ module.exports = Sr(Sn);
2017
2042
 
2018
2043
  // src/docs-tools/argTypes/convert/flow/convert.ts
2019
2044
  var pt = require("storybook/internal/preview-errors");
2020
- var Sr = /* @__PURE__ */ r((n) => n.name === "literal", "isLiteral"), Nr = /* @__PURE__ */ r((n) => n.value.replace(/['|"]/g, ""), "toEnumOp\
2021
- tion"), Or = /* @__PURE__ */ r((n) => {
2045
+ var Nr = /* @__PURE__ */ r((n) => n.name === "literal", "isLiteral"), Or = /* @__PURE__ */ r((n) => n.value.replace(/['|"]/g, ""), "toEnumOp\
2046
+ tion"), Dr = /* @__PURE__ */ r((n) => {
2022
2047
  switch (n.type) {
2023
2048
  case "function":
2024
2049
  return { name: "function" };
@@ -2046,9 +2071,9 @@ tion"), Or = /* @__PURE__ */ r((n) => {
2046
2071
  case "Array":
2047
2072
  return { ...p, name: "array", value: n.elements.map(B) };
2048
2073
  case "signature":
2049
- return { ...p, ...Or(n) };
2074
+ return { ...p, ...Dr(n) };
2050
2075
  case "union":
2051
- return n.elements?.every(Sr) ? { ...p, name: "enum", value: n.elements?.map(Nr) } : { ...p, name: s, value: n.elements?.map(B) };
2076
+ return n.elements?.every(Nr) ? { ...p, name: "enum", value: n.elements?.map(Or) } : { ...p, name: s, value: n.elements?.map(B) };
2052
2077
  case "intersection":
2053
2078
  return { ...p, name: s, value: n.elements?.map(B) };
2054
2079
  default:
@@ -2057,19 +2082,14 @@ tion"), Or = /* @__PURE__ */ r((n) => {
2057
2082
  }, "convert");
2058
2083
 
2059
2084
  // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
2060
- function X(n) {
2061
- if (typeof n != "object" || n == null)
2062
- return !1;
2063
- if (Object.getPrototypeOf(n) === null)
2064
- return !0;
2065
- if (n.toString() !== "[object Object]")
2085
+ function z(n) {
2086
+ if (!n || typeof n != "object")
2066
2087
  return !1;
2067
- let s = n;
2068
- for (; Object.getPrototypeOf(s) !== null; )
2069
- s = Object.getPrototypeOf(s);
2070
- return Object.getPrototypeOf(n) === s;
2088
+ let s = Object.getPrototypeOf(n);
2089
+ return s === null || s === Object.prototype || Object.getPrototypeOf(s) === null ? Object.prototype.toString.call(n) === "[object Object]" :
2090
+ !1;
2071
2091
  }
2072
- r(X, "isPlainObject");
2092
+ r(z, "isPlainObject");
2073
2093
 
2074
2094
  // ../node_modules/es-toolkit/dist/object/mapValues.mjs
2075
2095
  function ve(n, s) {
@@ -2083,14 +2103,14 @@ function ve(n, s) {
2083
2103
  r(ve, "mapValues");
2084
2104
 
2085
2105
  // src/docs-tools/argTypes/convert/utils.ts
2086
- var ct = /^['"]|['"]$/g, Dr = /* @__PURE__ */ r((n) => n.replace(ct, ""), "trimQuotes"), vr = /* @__PURE__ */ r((n) => ct.test(n), "includes\
2106
+ var ct = /^['"]|['"]$/g, vr = /* @__PURE__ */ r((n) => n.replace(ct, ""), "trimQuotes"), kr = /* @__PURE__ */ r((n) => ct.test(n), "includes\
2087
2107
  Quotes"), ae = /* @__PURE__ */ r((n) => {
2088
- let s = Dr(n);
2089
- return vr(n) || Number.isNaN(Number(s)) ? s : Number(s);
2108
+ let s = vr(n);
2109
+ return kr(n) || Number.isNaN(Number(s)) ? s : Number(s);
2090
2110
  }, "parseLiteral");
2091
2111
 
2092
2112
  // src/docs-tools/argTypes/convert/proptypes/convert.ts
2093
- var kr = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2113
+ var Ar = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2094
2114
  let { name: s, raw: a, computed: p, value: c } = n, u = {};
2095
2115
  switch (typeof a < "u" && (u.raw = a), s) {
2096
2116
  case "enum": {
@@ -2125,11 +2145,11 @@ var kr = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2125
2145
  default: {
2126
2146
  if (s?.indexOf("|") > 0)
2127
2147
  try {
2128
- let w = s.split("|").map((b) => JSON.parse(b));
2129
- return { ...u, name: "enum", value: w };
2148
+ let P = s.split("|").map((b) => JSON.parse(b));
2149
+ return { ...u, name: "enum", value: P };
2130
2150
  } catch {
2131
2151
  }
2132
- let T = c ? `${s}(${c})` : s, g = kr.test(s) ? "function" : "other";
2152
+ let T = c ? `${s}(${c})` : s, g = Ar.test(s) ? "function" : "other";
2133
2153
  return { ...u, name: g, value: T };
2134
2154
  }
2135
2155
  }
@@ -2137,7 +2157,7 @@ var kr = /^\(.*\) => /, C = /* @__PURE__ */ r((n) => {
2137
2157
 
2138
2158
  // src/docs-tools/argTypes/convert/typescript/convert.ts
2139
2159
  var lt = require("storybook/internal/preview-errors");
2140
- var Ar = /* @__PURE__ */ r((n) => {
2160
+ var Ir = /* @__PURE__ */ r((n) => {
2141
2161
  switch (n.type) {
2142
2162
  case "function":
2143
2163
  return { name: "function" };
@@ -2163,7 +2183,7 @@ var Ar = /* @__PURE__ */ r((n) => {
2163
2183
  case "Array":
2164
2184
  return { ...p, name: "array", value: n.elements.map(M) };
2165
2185
  case "signature":
2166
- return { ...p, ...Ar(n) };
2186
+ return { ...p, ...Ir(n) };
2167
2187
  case "union":
2168
2188
  let c;
2169
2189
  return n.elements?.every((u) => u.name === "literal") ? c = {
@@ -2220,18 +2240,18 @@ function Ae(n) {
2220
2240
  return !!n.__docgenInfo;
2221
2241
  }
2222
2242
  r(Ae, "hasDocgen");
2223
- function Re(n) {
2243
+ function Ie(n) {
2224
2244
  return n != null && Object.keys(n).length > 0;
2225
2245
  }
2226
- r(Re, "isValidDocgenSection");
2227
- function Ie(n, s) {
2246
+ r(Ie, "isValidDocgenSection");
2247
+ function Re(n, s) {
2228
2248
  return Ae(n) ? n.__docgenInfo[s] : null;
2229
2249
  }
2230
- r(Ie, "getDocgenSection");
2231
- function Fe(n) {
2250
+ r(Re, "getDocgenSection");
2251
+ function je(n) {
2232
2252
  return Ae(n) ? ke(n.__docgenInfo.description) : "";
2233
2253
  }
2234
- r(Fe, "getDocgenDescription");
2254
+ r(je, "getDocgenDescription");
2235
2255
 
2236
2256
  // ../node_modules/comment-parser/es6/primitives.js
2237
2257
  var v;
@@ -2240,10 +2260,10 @@ var v;
2240
2260
  })(v = v || (v = {}));
2241
2261
 
2242
2262
  // ../node_modules/comment-parser/es6/util.js
2243
- function je(n) {
2263
+ function Fe(n) {
2244
2264
  return /^\s+$/.test(n);
2245
2265
  }
2246
- r(je, "isSpace");
2266
+ r(Fe, "isSpace");
2247
2267
  function mt(n) {
2248
2268
  let s = n.match(/\r+$/);
2249
2269
  return s == null ? ["", n] : [n.slice(-s[0].length), n.slice(0, -s[0].length)];
@@ -2254,14 +2274,14 @@ function A(n) {
2254
2274
  return s == null ? ["", n] : [n.slice(0, s[0].length), n.slice(s[0].length)];
2255
2275
  }
2256
2276
  r(A, "splitSpace");
2257
- function yt(n) {
2277
+ function ft(n) {
2258
2278
  return n.split(/\n/);
2259
2279
  }
2260
- r(yt, "splitLines");
2261
- function ft(n = {}) {
2280
+ r(ft, "splitLines");
2281
+ function yt(n = {}) {
2262
2282
  return Object.assign({ tag: "", name: "", type: "", optional: !1, description: "", problems: [], source: [] }, n);
2263
2283
  }
2264
- r(ft, "seedSpec");
2284
+ r(yt, "seedSpec");
2265
2285
  function _e(n = {}) {
2266
2286
  return Object.assign({ start: "", delimiter: "", postDelimiter: "", tag: "", postTag: "", name: "", postName: "", type: "", postType: "", description: "",
2267
2287
  end: "", lineEnd: "" }, n);
@@ -2269,13 +2289,13 @@ function _e(n = {}) {
2269
2289
  r(_e, "seedTokens");
2270
2290
 
2271
2291
  // ../node_modules/comment-parser/es6/parser/block-parser.js
2272
- var Ir = /^@\S+/;
2292
+ var jr = /^@\S+/;
2273
2293
  function Le({ fence: n = "```" } = {}) {
2274
2294
  let s = Fr(n), a = /* @__PURE__ */ r((p, c) => s(p) ? !c : c, "toggleFence");
2275
2295
  return /* @__PURE__ */ r(function(c) {
2276
2296
  let u = [[]], m = !1;
2277
2297
  for (let T of c)
2278
- Ir.test(T.tokens.description) && !m ? u.push([T]) : u[u.length - 1].push(T), m = a(T.tokens.description, m);
2298
+ jr.test(T.tokens.description) && !m ? u.push([T]) : u[u.length - 1].push(T), m = a(T.tokens.description, m);
2279
2299
  return u;
2280
2300
  }, "parseBlock");
2281
2301
  }
@@ -2296,12 +2316,12 @@ function Ve({ startLine: n = 0, markers: s = v } = {}) {
2296
2316
  let g = m.trimRight().endsWith(s.end);
2297
2317
  if (T.delimiter === "" && m.startsWith(s.delim) && !m.startsWith(s.end) && (T.delimiter = s.delim, m = m.slice(s.delim.length), [T.postDelimiter,
2298
2318
  m] = A(m)), g) {
2299
- let w = m.trimRight();
2300
- T.end = m.slice(w.length - s.end.length), m = w.slice(0, -s.end.length);
2319
+ let P = m.trimRight();
2320
+ T.end = m.slice(P.length - s.end.length), m = P.slice(0, -s.end.length);
2301
2321
  }
2302
2322
  if (T.description = m, a.push({ number: p, source: u, tokens: T }), p++, g) {
2303
- let w = a.slice();
2304
- return a = null, w;
2323
+ let P = a.slice();
2324
+ return a = null, P;
2305
2325
  }
2306
2326
  return null;
2307
2327
  }, "parseSource");
@@ -2312,7 +2332,7 @@ r(Ve, "getParser");
2312
2332
  function Ue({ tokenizers: n }) {
2313
2333
  return /* @__PURE__ */ r(function(a) {
2314
2334
  var p;
2315
- let c = ft({ source: a });
2335
+ let c = yt({ source: a });
2316
2336
  for (let u of n)
2317
2337
  if (c = u(c), !((p = c.problems[c.problems.length - 1]) === null || p === void 0) && p.critical)
2318
2338
  break;
@@ -2337,17 +2357,17 @@ r(ie, "tagTokenizer");
2337
2357
 
2338
2358
  // ../node_modules/comment-parser/es6/parser/tokenizers/type.js
2339
2359
  function pe(n = "compact") {
2340
- let s = _r(n);
2360
+ let s = Lr(n);
2341
2361
  return (a) => {
2342
2362
  let p = 0, c = [];
2343
2363
  for (let [T, { tokens: g }] of a.source.entries()) {
2344
- let w = "";
2364
+ let P = "";
2345
2365
  if (T === 0 && g.description[0] !== "{")
2346
2366
  return a;
2347
2367
  for (let b of g.description)
2348
- if (b === "{" && p++, b === "}" && p--, w += b, p === 0)
2368
+ if (b === "{" && p++, b === "}" && p--, P += b, p === 0)
2349
2369
  break;
2350
- if (c.push([g, w]), p === 0)
2370
+ if (c.push([g, P]), p === 0)
2351
2371
  break;
2352
2372
  }
2353
2373
  if (p !== 0)
@@ -2358,22 +2378,22 @@ function pe(n = "compact") {
2358
2378
  critical: !0
2359
2379
  }), a;
2360
2380
  let u = [], m = c[0][0].postDelimiter.length;
2361
- for (let [T, [g, w]] of c.entries())
2362
- g.type = w, T > 0 && (g.type = g.postDelimiter.slice(m) + w, g.postDelimiter = g.postDelimiter.slice(0, m)), [g.postType, g.description] =
2363
- A(g.description.slice(w.length)), u.push(g.type);
2381
+ for (let [T, [g, P]] of c.entries())
2382
+ g.type = P, T > 0 && (g.type = g.postDelimiter.slice(m) + P, g.postDelimiter = g.postDelimiter.slice(0, m)), [g.postType, g.description] =
2383
+ A(g.description.slice(P.length)), u.push(g.type);
2364
2384
  return u[0] = u[0].slice(1), u[u.length - 1] = u[u.length - 1].slice(0, -1), a.type = s(u), a;
2365
2385
  };
2366
2386
  }
2367
2387
  r(pe, "typeTokenizer");
2368
- var jr = /* @__PURE__ */ r((n) => n.trim(), "trim");
2369
- function _r(n) {
2370
- return n === "compact" ? (s) => s.map(jr).join("") : n === "preserve" ? (s) => s.join(`
2388
+ var _r = /* @__PURE__ */ r((n) => n.trim(), "trim");
2389
+ function Lr(n) {
2390
+ return n === "compact" ? (s) => s.map(_r).join("") : n === "preserve" ? (s) => s.join(`
2371
2391
  `) : n;
2372
2392
  }
2373
- r(_r, "getJoiner");
2393
+ r(Lr, "getJoiner");
2374
2394
 
2375
2395
  // ../node_modules/comment-parser/es6/parser/tokenizers/name.js
2376
- var Lr = /* @__PURE__ */ r((n) => n && n.startsWith('"') && n.endsWith('"'), "isQuoted");
2396
+ var Vr = /* @__PURE__ */ r((n) => n && n.startsWith('"') && n.endsWith('"'), "isQuoted");
2377
2397
  function ce() {
2378
2398
  let n = /* @__PURE__ */ r((s, { tokens: a }, p) => a.type === "" ? s : p, "typeEnd");
2379
2399
  return (s) => {
@@ -2382,7 +2402,7 @@ function ce() {
2382
2402
  return s.name = c[1], a.name = `"${c[1]}"`, [a.postName, a.description] = A(p.slice(a.name.length)), s;
2383
2403
  let u = 0, m = "", T = !1, g;
2384
2404
  for (let b of p) {
2385
- if (u === 0 && je(b))
2405
+ if (u === 0 && Fe(b))
2386
2406
  break;
2387
2407
  b === "[" && u++, b === "]" && u--, m += b;
2388
2408
  }
@@ -2393,7 +2413,7 @@ function ce() {
2393
2413
  line: s.source[0].number,
2394
2414
  critical: !0
2395
2415
  }), s;
2396
- let w = m;
2416
+ let P = m;
2397
2417
  if (m[0] === "[" && m[m.length - 1] === "]") {
2398
2418
  T = !0, m = m.slice(1, -1);
2399
2419
  let b = m.split("=");
@@ -2411,7 +2431,7 @@ function ce() {
2411
2431
  line: s.source[0].number,
2412
2432
  critical: !0
2413
2433
  }), s;
2414
- if (!Lr(g) && /=(?!>)/.test(g))
2434
+ if (!Vr(g) && /=(?!>)/.test(g))
2415
2435
  return s.problems.push({
2416
2436
  code: "spec:name:invalid-default",
2417
2437
  message: "invalid default value syntax",
@@ -2419,7 +2439,7 @@ function ce() {
2419
2439
  critical: !0
2420
2440
  }), s;
2421
2441
  }
2422
- return s.optional = T, s.name = m, a.name = w, g !== void 0 && (s.default = g), [a.postName, a.description] = A(p.slice(a.name.length)),
2442
+ return s.optional = T, s.name = m, a.name = P, g !== void 0 && (s.default = g), [a.postName, a.description] = A(p.slice(a.name.length)),
2423
2443
  s;
2424
2444
  };
2425
2445
  }
@@ -2432,25 +2452,25 @@ function le(n = "compact", s = v) {
2432
2452
  }
2433
2453
  r(le, "descriptionTokenizer");
2434
2454
  function Be(n) {
2435
- return n === "compact" ? Vr : n === "preserve" ? Cr : n;
2455
+ return n === "compact" ? Ur : n === "preserve" ? Mr : n;
2436
2456
  }
2437
2457
  r(Be, "getJoiner");
2438
- function Vr(n, s = v) {
2458
+ function Ur(n, s = v) {
2439
2459
  return n.map(({ tokens: { description: a } }) => a.trim()).filter((a) => a !== "").join(" ");
2440
2460
  }
2441
- r(Vr, "compactJoiner");
2442
- var Ur = /* @__PURE__ */ r((n, { tokens: s }, a) => s.type === "" ? n : a, "lineNo"), Br = /* @__PURE__ */ r(({ tokens: n }) => (n.delimiter ===
2461
+ r(Ur, "compactJoiner");
2462
+ var Br = /* @__PURE__ */ r((n, { tokens: s }, a) => s.type === "" ? n : a, "lineNo"), Cr = /* @__PURE__ */ r(({ tokens: n }) => (n.delimiter ===
2443
2463
  "" ? n.start : n.postDelimiter.slice(1)) + n.description, "getDescription");
2444
- function Cr(n, s = v) {
2464
+ function Mr(n, s = v) {
2445
2465
  if (n.length === 0)
2446
2466
  return "";
2447
2467
  n[0].tokens.description === "" && n[0].tokens.delimiter === s.start && (n = n.slice(1));
2448
2468
  let a = n[n.length - 1];
2449
- return a !== void 0 && a.tokens.description === "" && a.tokens.end.endsWith(s.end) && (n = n.slice(0, -1)), n = n.slice(n.reduce(Ur, 0)), n.
2450
- map(Br).join(`
2469
+ return a !== void 0 && a.tokens.description === "" && a.tokens.end.endsWith(s.end) && (n = n.slice(0, -1)), n = n.slice(n.reduce(Br, 0)), n.
2470
+ map(Cr).join(`
2451
2471
  `);
2452
2472
  }
2453
- r(Cr, "preserveJoiner");
2473
+ r(Mr, "preserveJoiner");
2454
2474
 
2455
2475
  // ../node_modules/comment-parser/es6/parser/index.js
2456
2476
  function Ce({ startLine: n = 0, fence: s = "```", spacing: a = "compact", markers: p = v, tokenizers: c = [
@@ -2462,10 +2482,10 @@ function Ce({ startLine: n = 0, fence: s = "```", spacing: a = "compact", marker
2462
2482
  if (n < 0 || n % 1 > 0)
2463
2483
  throw new Error("Invalid startLine");
2464
2484
  let u = Ve({ startLine: n, markers: p }), m = Le({ fence: s }), T = Ue({ tokenizers: c }), g = Be(a);
2465
- return function(w) {
2485
+ return function(P) {
2466
2486
  let b = [];
2467
- for (let fe of yt(w)) {
2468
- let $ = u(fe);
2487
+ for (let ye of ft(P)) {
2488
+ let $ = u(ye);
2469
2489
  if ($ === null)
2470
2490
  continue;
2471
2491
  let E = m($), Q = E.slice(1).map(T);
@@ -2482,19 +2502,19 @@ function Ce({ startLine: n = 0, fence: s = "```", spacing: a = "compact", marker
2482
2502
  r(Ce, "getParser");
2483
2503
 
2484
2504
  // ../node_modules/comment-parser/es6/stringifier/index.js
2485
- function Mr(n) {
2505
+ function Kr(n) {
2486
2506
  return n.start + n.delimiter + n.postDelimiter + n.tag + n.postTag + n.type + n.postType + n.name + n.postName + n.description + n.end + n.
2487
2507
  lineEnd;
2488
2508
  }
2489
- r(Mr, "join");
2509
+ r(Kr, "join");
2490
2510
  function Me() {
2491
- return (n) => n.source.map(({ tokens: s }) => Mr(s)).join(`
2511
+ return (n) => n.source.map(({ tokens: s }) => Kr(s)).join(`
2492
2512
  `);
2493
2513
  }
2494
2514
  r(Me, "getStringifier");
2495
2515
 
2496
2516
  // ../node_modules/comment-parser/es6/stringifier/inspect.js
2497
- var Kr = {
2517
+ var $r = {
2498
2518
  line: 0,
2499
2519
  start: 0,
2500
2520
  delimiter: 0,
@@ -2509,22 +2529,22 @@ var Kr = {
2509
2529
  end: 0,
2510
2530
  lineEnd: 0
2511
2531
  };
2512
- var Zo = Object.keys(Kr);
2532
+ var es = Object.keys($r);
2513
2533
 
2514
2534
  // ../node_modules/comment-parser/es6/index.js
2515
2535
  function dt(n, s = {}) {
2516
2536
  return Ce(s)(n);
2517
2537
  }
2518
2538
  r(dt, "parse");
2519
- var Js = Me();
2539
+ var ws = Me();
2520
2540
 
2521
2541
  // src/docs-tools/argTypes/jsdocParser.ts
2522
- var K = br(gt(), 1);
2523
- function $r(n) {
2542
+ var K = Er(gt(), 1);
2543
+ function qr(n) {
2524
2544
  return n != null && n.includes("@");
2525
2545
  }
2526
- r($r, "containsJsDoc");
2527
- function qr(n) {
2546
+ r(qr, "containsJsDoc");
2547
+ function Yr(n) {
2528
2548
  let p = `/**
2529
2549
  ` + (n ?? "").split(`
2530
2550
  `).map((u) => ` * ${u}`).join(`
@@ -2536,16 +2556,16 @@ function qr(n) {
2536
2556
  throw new Error("Cannot parse JSDoc tags.");
2537
2557
  return c[0];
2538
2558
  }
2539
- r(qr, "parse");
2540
- var Yr = {
2559
+ r(Yr, "parse");
2560
+ var Wr = {
2541
2561
  tags: ["param", "arg", "argument", "returns", "ignore", "deprecated"]
2542
- }, $e = /* @__PURE__ */ r((n, s = Yr) => {
2543
- if (!$r(n))
2562
+ }, $e = /* @__PURE__ */ r((n, s = Wr) => {
2563
+ if (!qr(n))
2544
2564
  return {
2545
2565
  includesJsDoc: !1,
2546
2566
  ignore: !1
2547
2567
  };
2548
- let a = qr(n), p = Wr(a, s.tags);
2568
+ let a = Yr(n), p = Gr(a, s.tags);
2549
2569
  return p.ignore ? {
2550
2570
  includesJsDoc: !0,
2551
2571
  ignore: !0
@@ -2557,7 +2577,7 @@ var Yr = {
2557
2577
  extractedTags: p
2558
2578
  };
2559
2579
  }, "parseJsDoc");
2560
- function Wr(n, s) {
2580
+ function Gr(n, s) {
2561
2581
  let a = {
2562
2582
  params: null,
2563
2583
  deprecated: null,
@@ -2580,12 +2600,12 @@ function Wr(n, s) {
2580
2600
  break;
2581
2601
  }
2582
2602
  case "deprecated": {
2583
- let c = Xr(p);
2603
+ let c = Hr(p);
2584
2604
  c != null && (a.deprecated = c);
2585
2605
  break;
2586
2606
  }
2587
2607
  case "returns": {
2588
- let c = Hr(p);
2608
+ let c = Qr(p);
2589
2609
  c != null && (a.returns = c);
2590
2610
  break;
2591
2611
  }
@@ -2594,11 +2614,11 @@ function Wr(n, s) {
2594
2614
  }
2595
2615
  return a;
2596
2616
  }
2597
- r(Wr, "extractJsDocTags");
2598
- function Gr(n) {
2617
+ r(Gr, "extractJsDocTags");
2618
+ function Xr(n) {
2599
2619
  return n.replace(/[\.-]$/, "");
2600
2620
  }
2601
- r(Gr, "normaliseParamName");
2621
+ r(Xr, "normaliseParamName");
2602
2622
  function zr(n) {
2603
2623
  if (!n.name || n.name === "-")
2604
2624
  return null;
@@ -2606,42 +2626,42 @@ function zr(n) {
2606
2626
  return {
2607
2627
  name: n.name,
2608
2628
  type: s,
2609
- description: xt(n.description),
2610
- getPrettyName: /* @__PURE__ */ r(() => Gr(n.name), "getPrettyName"),
2611
- getTypeName: /* @__PURE__ */ r(() => s ? Pt(s) : null, "getTypeName")
2629
+ description: ht(n.description),
2630
+ getPrettyName: /* @__PURE__ */ r(() => Xr(n.name), "getPrettyName"),
2631
+ getTypeName: /* @__PURE__ */ r(() => s ? wt(s) : null, "getTypeName")
2612
2632
  };
2613
2633
  }
2614
2634
  r(zr, "extractParam");
2615
- function Xr(n) {
2616
- return n.name ? ht(n.name, n.description) : null;
2635
+ function Hr(n) {
2636
+ return n.name ? xt(n.name, n.description) : null;
2617
2637
  }
2618
- r(Xr, "extractDeprecated");
2619
- function ht(n, s) {
2638
+ r(Hr, "extractDeprecated");
2639
+ function xt(n, s) {
2620
2640
  let a = n === "" ? s : `${n} ${s}`;
2621
- return xt(a);
2641
+ return ht(a);
2622
2642
  }
2623
- r(ht, "joinNameAndDescription");
2624
- function xt(n) {
2643
+ r(xt, "joinNameAndDescription");
2644
+ function ht(n) {
2625
2645
  let s = n.replace(/^- /g, "").trim();
2626
2646
  return s === "" ? null : s;
2627
2647
  }
2628
- r(xt, "normaliseDescription");
2629
- function Hr(n) {
2648
+ r(ht, "normaliseDescription");
2649
+ function Qr(n) {
2630
2650
  let s = Jt(n.type);
2631
2651
  return s ? {
2632
2652
  type: s,
2633
- description: ht(n.name, n.description),
2634
- getTypeName: /* @__PURE__ */ r(() => Pt(s), "getTypeName")
2653
+ description: xt(n.name, n.description),
2654
+ getTypeName: /* @__PURE__ */ r(() => wt(s), "getTypeName")
2635
2655
  } : null;
2636
2656
  }
2637
- r(Hr, "extractReturns");
2638
- var j = (0, K.stringifyRules)(), Qr = j.JsdocTypeObject;
2639
- j.JsdocTypeAny = () => "any";
2640
- j.JsdocTypeObject = (n, s) => `(${Qr(n, s)})`;
2641
- j.JsdocTypeOptional = (n, s) => s(n.element);
2642
- j.JsdocTypeNullable = (n, s) => s(n.element);
2643
- j.JsdocTypeNotNullable = (n, s) => s(n.element);
2644
- j.JsdocTypeUnion = (n, s) => n.elements.map(s).join("|");
2657
+ r(Qr, "extractReturns");
2658
+ var F = (0, K.stringifyRules)(), Zr = F.JsdocTypeObject;
2659
+ F.JsdocTypeAny = () => "any";
2660
+ F.JsdocTypeObject = (n, s) => `(${Zr(n, s)})`;
2661
+ F.JsdocTypeOptional = (n, s) => s(n.element);
2662
+ F.JsdocTypeNullable = (n, s) => s(n.element);
2663
+ F.JsdocTypeNotNullable = (n, s) => s(n.element);
2664
+ F.JsdocTypeUnion = (n, s) => n.elements.map(s).join("|");
2645
2665
  function Jt(n) {
2646
2666
  try {
2647
2667
  return (0, K.parse)(n, "typescript");
@@ -2650,13 +2670,13 @@ function Jt(n) {
2650
2670
  }
2651
2671
  }
2652
2672
  r(Jt, "extractType");
2653
- function Pt(n) {
2654
- return (0, K.transform)(j, n);
2673
+ function wt(n) {
2674
+ return (0, K.transform)(F, n);
2655
2675
  }
2656
- r(Pt, "extractTypeName");
2676
+ r(wt, "extractTypeName");
2657
2677
 
2658
2678
  // src/docs-tools/argTypes/utils.ts
2659
- var Zr = 90, en = 50;
2679
+ var en = 90, tn = 50;
2660
2680
  function me(n) {
2661
2681
  return n.length > 90;
2662
2682
  }
@@ -2669,10 +2689,10 @@ function J(n, s) {
2669
2689
  return n === s ? { summary: n } : { summary: n, detail: s };
2670
2690
  }
2671
2691
  r(J, "createSummaryValue");
2672
- var tn = /* @__PURE__ */ r((n) => n.replace(/\\r\\n/g, "\\n"), "normalizeNewlines");
2692
+ var rn = /* @__PURE__ */ r((n) => n.replace(/\\r\\n/g, "\\n"), "normalizeNewlines");
2673
2693
 
2674
2694
  // src/docs-tools/argTypes/docgen/flow/createDefaultValue.ts
2675
- function wt(n, s) {
2695
+ function Pt(n, s) {
2676
2696
  if (n != null) {
2677
2697
  let { value: a } = n;
2678
2698
  if (!L(a))
@@ -2680,44 +2700,44 @@ function wt(n, s) {
2680
2700
  }
2681
2701
  return null;
2682
2702
  }
2683
- r(wt, "createDefaultValue");
2703
+ r(Pt, "createDefaultValue");
2684
2704
 
2685
2705
  // src/docs-tools/argTypes/docgen/flow/createType.ts
2686
2706
  function bt({ name: n, value: s, elements: a, raw: p }) {
2687
2707
  return s ?? (a != null ? a.map(bt).join(" | ") : p ?? n);
2688
2708
  }
2689
2709
  r(bt, "generateUnionElement");
2690
- function rn({ name: n, raw: s, elements: a }) {
2710
+ function nn({ name: n, raw: s, elements: a }) {
2691
2711
  return a != null ? J(a.map(bt).join(" | ")) : s != null ? J(s.replace(/^\|\s*/, "")) : J(n);
2692
2712
  }
2693
- r(rn, "generateUnion");
2694
- function nn({ type: n, raw: s }) {
2713
+ r(nn, "generateUnion");
2714
+ function on({ type: n, raw: s }) {
2695
2715
  return s != null ? J(s) : J(n);
2696
2716
  }
2697
- r(nn, "generateFuncSignature");
2698
- function on({ type: n, raw: s }) {
2717
+ r(on, "generateFuncSignature");
2718
+ function sn({ type: n, raw: s }) {
2699
2719
  return s != null ? me(s) ? J(n, s) : J(s) : J(n);
2700
2720
  }
2701
- r(on, "generateObjectSignature");
2702
- function sn(n) {
2721
+ r(sn, "generateObjectSignature");
2722
+ function an(n) {
2703
2723
  let { type: s } = n;
2704
- return s === "object" ? on(n) : nn(n);
2724
+ return s === "object" ? sn(n) : on(n);
2705
2725
  }
2706
- r(sn, "generateSignature");
2707
- function an({ name: n, raw: s }) {
2726
+ r(an, "generateSignature");
2727
+ function pn({ name: n, raw: s }) {
2708
2728
  return s != null ? me(s) ? J(n, s) : J(s) : J(n);
2709
2729
  }
2710
- r(an, "generateDefault");
2730
+ r(pn, "generateDefault");
2711
2731
  function Et(n) {
2712
2732
  if (n == null)
2713
2733
  return null;
2714
2734
  switch (n.name) {
2715
2735
  case "union":
2716
- return rn(n);
2736
+ return nn(n);
2717
2737
  case "signature":
2718
- return sn(n);
2719
- default:
2720
2738
  return an(n);
2739
+ default:
2740
+ return pn(n);
2721
2741
  }
2722
2742
  }
2723
2743
  r(Et, "createType");
@@ -2730,7 +2750,7 @@ var St = /* @__PURE__ */ r((n, s) => {
2730
2750
  type: Et(a),
2731
2751
  required: c,
2732
2752
  description: p,
2733
- defaultValue: wt(u ?? null, a ?? null)
2753
+ defaultValue: Pt(u ?? null, a ?? null)
2734
2754
  };
2735
2755
  }, "createFlowPropDef");
2736
2756
 
@@ -2769,42 +2789,42 @@ var Dt = /* @__PURE__ */ r((n, s) => {
2769
2789
  }, "createTsPropDef");
2770
2790
 
2771
2791
  // src/docs-tools/argTypes/docgen/createPropDef.ts
2772
- function pn(n) {
2792
+ function cn(n) {
2773
2793
  return n != null ? J(n.name) : null;
2774
2794
  }
2775
- r(pn, "createType");
2776
- function cn(n) {
2795
+ r(cn, "createType");
2796
+ function ln(n) {
2777
2797
  let { computed: s, func: a } = n;
2778
2798
  return typeof s > "u" && typeof a > "u";
2779
2799
  }
2780
- r(cn, "isReactDocgenTypescript");
2781
- function ln(n) {
2800
+ r(ln, "isReactDocgenTypescript");
2801
+ function un(n) {
2782
2802
  return n ? n.name === "string" ? !0 : n.name === "enum" ? Array.isArray(n.value) && n.value.every(
2783
2803
  ({ value: s }) => typeof s == "string" && s[0] === '"' && s[s.length - 1] === '"'
2784
2804
  ) : !1 : !1;
2785
2805
  }
2786
- r(ln, "isStringValued");
2787
- function un(n, s) {
2806
+ r(un, "isStringValued");
2807
+ function mn(n, s) {
2788
2808
  if (n != null) {
2789
2809
  let { value: a } = n;
2790
2810
  if (!L(a))
2791
- return cn(n) && ln(s) ? J(JSON.stringify(a)) : J(a);
2811
+ return ln(n) && un(s) ? J(JSON.stringify(a)) : J(a);
2792
2812
  }
2793
2813
  return null;
2794
2814
  }
2795
- r(un, "createDefaultValue");
2815
+ r(mn, "createDefaultValue");
2796
2816
  function vt(n, s, a) {
2797
2817
  let { description: p, required: c, defaultValue: u } = a;
2798
2818
  return {
2799
2819
  name: n,
2800
- type: pn(s),
2820
+ type: cn(s),
2801
2821
  required: c,
2802
2822
  description: p,
2803
- defaultValue: un(u, s)
2823
+ defaultValue: mn(u, s)
2804
2824
  };
2805
2825
  }
2806
2826
  r(vt, "createBasicPropDef");
2807
- function ye(n, s) {
2827
+ function fe(n, s) {
2808
2828
  if (s?.includesJsDoc) {
2809
2829
  let { description: a, extractedTags: p } = s;
2810
2830
  a != null && (n.description = s.description);
@@ -2821,29 +2841,29 @@ function ye(n, s) {
2821
2841
  }
2822
2842
  return n;
2823
2843
  }
2824
- r(ye, "applyJsDocResult");
2825
- var mn = /* @__PURE__ */ r((n, s, a) => {
2844
+ r(fe, "applyJsDocResult");
2845
+ var fn = /* @__PURE__ */ r((n, s, a) => {
2826
2846
  let p = vt(n, s.type, s);
2827
- return p.sbType = H(s), ye(p, a);
2847
+ return p.sbType = H(s), fe(p, a);
2828
2848
  }, "javaScriptFactory"), yn = /* @__PURE__ */ r((n, s, a) => {
2829
2849
  let p = Dt(n, s);
2830
- return p.sbType = H(s), ye(p, a);
2831
- }, "tsFactory"), fn = /* @__PURE__ */ r((n, s, a) => {
2850
+ return p.sbType = H(s), fe(p, a);
2851
+ }, "tsFactory"), dn = /* @__PURE__ */ r((n, s, a) => {
2832
2852
  let p = St(n, s);
2833
- return p.sbType = H(s), ye(p, a);
2834
- }, "flowFactory"), dn = /* @__PURE__ */ r((n, s, a) => {
2853
+ return p.sbType = H(s), fe(p, a);
2854
+ }, "flowFactory"), Tn = /* @__PURE__ */ r((n, s, a) => {
2835
2855
  let p = vt(n, { name: "unknown" }, s);
2836
- return ye(p, a);
2856
+ return fe(p, a);
2837
2857
  }, "unknownFactory"), Ye = /* @__PURE__ */ r((n) => {
2838
2858
  switch (n) {
2839
2859
  case "JavaScript":
2840
- return mn;
2860
+ return fn;
2841
2861
  case "TypeScript":
2842
2862
  return yn;
2843
2863
  case "Flow":
2844
- return fn;
2845
- default:
2846
2864
  return dn;
2865
+ default:
2866
+ return Tn;
2847
2867
  }
2848
2868
  }, "getPropDefFactory");
2849
2869
 
@@ -2859,19 +2879,19 @@ var kt = /* @__PURE__ */ r((n) => n.type != null ? "JavaScript" : n.flowType !=
2859
2879
  ...p.type,
2860
2880
  value: p.type.elements
2861
2881
  }
2862
- }), It(c.name, c, s, a);
2882
+ }), Rt(c.name, c, s, a);
2863
2883
  });
2864
- }, "extractComponentSectionArray"), Rt = /* @__PURE__ */ r((n) => {
2884
+ }, "extractComponentSectionArray"), It = /* @__PURE__ */ r((n) => {
2865
2885
  let s = Object.keys(n), a = kt(n[s[0]]), p = Ye(a);
2866
2886
  return s.map((c) => {
2867
2887
  let u = n[c];
2868
- return u != null ? It(c, u, a, p) : null;
2888
+ return u != null ? Rt(c, u, a, p) : null;
2869
2889
  }).filter(Boolean);
2870
- }, "extractComponentSectionObject"), Tn = /* @__PURE__ */ r((n, s) => {
2871
- let a = Ie(n, s);
2872
- return Re(a) ? Array.isArray(a) ? At(a) : Rt(a) : [];
2890
+ }, "extractComponentSectionObject"), gn = /* @__PURE__ */ r((n, s) => {
2891
+ let a = Re(n, s);
2892
+ return Ie(a) ? Array.isArray(a) ? At(a) : It(a) : [];
2873
2893
  }, "extractComponentProps");
2874
- function It(n, s, a, p) {
2894
+ function Rt(n, s, a, p) {
2875
2895
  let c = $e(s.description);
2876
2896
  return c.includesJsDoc && c.ignore ? null : {
2877
2897
  propDef: p(n, s, c),
@@ -2880,21 +2900,21 @@ function It(n, s, a, p) {
2880
2900
  typeSystem: a
2881
2901
  };
2882
2902
  }
2883
- r(It, "extractProp");
2884
- function gn(n) {
2885
- return n != null ? Fe(n) : "";
2903
+ r(Rt, "extractProp");
2904
+ function xn(n) {
2905
+ return n != null ? je(n) : "";
2886
2906
  }
2887
- r(gn, "extractComponentDescription");
2907
+ r(xn, "extractComponentDescription");
2888
2908
 
2889
2909
  // src/preview-api/modules/store/parameters.ts
2890
2910
  var We = /* @__PURE__ */ r((...n) => {
2891
2911
  let s = {}, a = n.filter(Boolean), p = a.reduce((c, u) => (Object.entries(u).forEach(([m, T]) => {
2892
2912
  let g = c[m];
2893
- Array.isArray(T) || typeof g > "u" ? c[m] = T : X(T) && X(g) ? s[m] = !0 : typeof T < "u" && (c[m] = T);
2913
+ Array.isArray(T) || typeof g > "u" ? c[m] = T : z(T) && z(g) ? s[m] = !0 : typeof T < "u" && (c[m] = T);
2894
2914
  }), c), {});
2895
2915
  return Object.keys(s).forEach((c) => {
2896
2916
  let u = a.filter(Boolean).map((m) => m[c]).filter((m) => typeof m < "u");
2897
- u.every((m) => X(m)) ? p[c] = We(...u) : p[c] = u[u.length - 1];
2917
+ u.every((m) => z(m)) ? p[c] = We(...u) : p[c] = u[u.length - 1];
2898
2918
  }), p;
2899
2919
  }, "combineParameters");
2900
2920
 
@@ -2909,9 +2929,9 @@ var hn = /* @__PURE__ */ r((n) => {
2909
2929
  }, "enhanceArgTypes");
2910
2930
 
2911
2931
  // src/docs-tools/shared.ts
2912
- var Ge = "storybook/docs", xn = `${Ge}/panel`, Jn = "docs", Pn = `${Ge}/snippet-rendered`, Ft = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.
2913
- CODE = "code", p.DYNAMIC = "dynamic", p))(Ft || {});
2932
+ var Ge = "storybook/docs", Jn = `${Ge}/panel`, wn = "docs", Pn = `${Ge}/snippet-rendered`, jt = /* @__PURE__ */ ((p) => (p.AUTO = "auto", p.
2933
+ CODE = "code", p.DYNAMIC = "dynamic", p))(jt || {});
2914
2934
 
2915
2935
  // src/docs-tools/hasDocsOrControls.ts
2916
- var wn = /(addons\/|addon-|addon-essentials\/)(docs|controls)/, bn = /* @__PURE__ */ r((n) => n.presetsList?.some((s) => wn.test(s.name)), "\
2936
+ var bn = /(addons\/|addon-|addon-essentials\/)(docs|controls)/, En = /* @__PURE__ */ r((n) => n.presetsList?.some((s) => bn.test(s.name)), "\
2917
2937
  hasDocsOrControls");