storybook 9.0.0-rc.5 → 9.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- var On = Object.create;
2
- var We = Object.defineProperty;
3
- var Cn = Object.getOwnPropertyDescriptor;
4
- var Nn = Object.getOwnPropertyNames;
5
- var kn = Object.getPrototypeOf, jn = Object.prototype.hasOwnProperty;
6
- var n = (e, t) => We(e, "name", { value: t, configurable: !0 }), Pe = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
1
+ var Cn = Object.create;
2
+ var $e = Object.defineProperty;
3
+ var Nn = Object.getOwnPropertyDescriptor;
4
+ var kn = Object.getOwnPropertyNames;
5
+ var jn = Object.getPrototypeOf, Dn = Object.prototype.hasOwnProperty;
6
+ var n = (e, t) => $e(e, "name", { value: t, configurable: !0 }), Pe = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
7
7
  "u" ? new Proxy(e, {
8
8
  get: (t, r) => (typeof require < "u" ? require : t)[r]
9
9
  }) : e)(function(e) {
@@ -12,19 +12,19 @@ var n = (e, t) => We(e, "name", { value: t, configurable: !0 }), Pe = /* @__PURE
12
12
  });
13
13
  var $r = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), L = (e, t) => {
14
14
  for (var r in t)
15
- We(e, r, { get: t[r], enumerable: !0 });
16
- }, Dn = (e, t, r, o) => {
15
+ $e(e, r, { get: t[r], enumerable: !0 });
16
+ }, Mn = (e, t, r, o) => {
17
17
  if (t && typeof t == "object" || typeof t == "function")
18
- for (let s of Nn(t))
19
- !jn.call(e, s) && s !== r && We(e, s, { get: () => t[s], enumerable: !(o = Cn(t, s)) || o.enumerable });
18
+ for (let s of kn(t))
19
+ !Dn.call(e, s) && s !== r && $e(e, s, { get: () => t[s], enumerable: !(o = Nn(t, s)) || o.enumerable });
20
20
  return e;
21
21
  };
22
- var Ot = (e, t, r) => (r = e != null ? On(kn(e)) : {}, Dn(
22
+ var Ot = (e, t, r) => (r = e != null ? Cn(jn(e)) : {}, Mn(
23
23
  // If the importer is in node compatibility mode or this is not an ESM
24
24
  // file that has been converted to a CommonJS file using a Babel-
25
25
  // compatible transform (i.e. "__esModule" has not been set), then set
26
26
  // "default" to the CommonJS "module.exports" for node compatibility.
27
- t || !e || !e.__esModule ? We(r, "default", { value: e, enumerable: !0 }) : r,
27
+ t || !e || !e.__esModule ? $e(r, "default", { value: e, enumerable: !0 }) : r,
28
28
  e
29
29
  ));
30
30
 
@@ -162,7 +162,7 @@ var Bt = $r((co, $t) => {
162
162
  });
163
163
 
164
164
  // ../node_modules/store2/dist/store2.js
165
- var Mo = $r((St, bt) => {
165
+ var Mo = $r((bt, Pt) => {
166
166
  (function(e, t) {
167
167
  var r = {
168
168
  version: "2.14.4",
@@ -378,25 +378,28 @@ var Mo = $r((St, bt) => {
378
378
  }
379
379
  }()), o.area("page", r.storage("page")), typeof t == "function" && t.amd !== void 0 ? t("store2", [], function() {
380
380
  return o;
381
- }) : typeof bt < "u" && bt.exports ? bt.exports = o : (e.store && (r.conflict = e.store), e.store = o);
382
- })(St, St && St.define);
381
+ }) : typeof Pt < "u" && Pt.exports ? Pt.exports = o : (e.store && (r.conflict = e.store), e.store = o);
382
+ })(bt, bt && bt.define);
383
383
  });
384
384
 
385
385
  // src/manager-api/root.tsx
386
386
  import me, {
387
- Component as Eu,
388
- Fragment as vu,
389
- useCallback as It,
387
+ Component as vu,
388
+ Fragment as _u,
389
+ useCallback as je,
390
390
  useContext as Mr,
391
391
  useEffect as hn,
392
392
  useMemo as Dr,
393
- useRef as fn
393
+ useRef as fn,
394
+ useState as Iu
394
395
  } from "react";
395
396
  import {
396
- SET_STORIES as _u,
397
+ DOCS_PREPARED as xu,
398
+ SET_STORIES as Tu,
397
399
  SHARED_STATE_CHANGED as yn,
398
400
  SHARED_STATE_SET as ke,
399
- STORY_CHANGED as Iu
401
+ STORY_CHANGED as Ru,
402
+ STORY_PREPARED as wu
400
403
  } from "storybook/internal/core-events";
401
404
 
402
405
  // ../node_modules/es-toolkit/dist/array/countBy.mjs
@@ -411,7 +414,7 @@ function Ct(e, t) {
411
414
  n(Ct, "countBy");
412
415
 
413
416
  // ../node_modules/es-toolkit/dist/array/partition.mjs
414
- function $e(e, t) {
417
+ function Be(e, t) {
415
418
  let r = [], o = [];
416
419
  for (let s = 0; s < e.length; s++) {
417
420
  let i = e[s];
@@ -419,7 +422,7 @@ function $e(e, t) {
419
422
  }
420
423
  return [r, o];
421
424
  }
422
- n($e, "partition");
425
+ n(Be, "partition");
423
426
 
424
427
  // ../node_modules/es-toolkit/dist/function/noop.mjs
425
428
  function Br() {
@@ -451,11 +454,11 @@ function Ee(e) {
451
454
  n(Ee, "getTag");
452
455
 
453
456
  // ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
454
- var Be = "[object RegExp]", Ve = "[object String]", Ke = "[object Number]", ze = "[object Boolean]", ve = "[object Arguments]", He = "[objec\
455
- t Symbol]", qe = "[object Date]", Ye = "[object Map]", Je = "[object Set]", Xe = "[object Array]", zr = "[object Function]", Qe = "[object A\
456
- rrayBuffer]", ne = "[object Object]", Hr = "[object Error]", Ze = "[object DataView]", et = "[object Uint8Array]", tt = "[object Uint8Clampe\
457
- dArray]", rt = "[object Uint16Array]", ot = "[object Uint32Array]", qr = "[object BigUint64Array]", nt = "[object Int8Array]", st = "[object\
458
- Int16Array]", at = "[object Int32Array]", Yr = "[object BigInt64Array]", it = "[object Float32Array]", ct = "[object Float64Array]";
457
+ var Ve = "[object RegExp]", Ke = "[object String]", ze = "[object Number]", He = "[object Boolean]", ve = "[object Arguments]", qe = "[objec\
458
+ t Symbol]", Ye = "[object Date]", Je = "[object Map]", Xe = "[object Set]", Qe = "[object Array]", zr = "[object Function]", Ze = "[object A\
459
+ rrayBuffer]", ne = "[object Object]", Hr = "[object Error]", et = "[object DataView]", tt = "[object Uint8Array]", rt = "[object Uint8Clampe\
460
+ dArray]", ot = "[object Uint16Array]", nt = "[object Uint32Array]", qr = "[object BigUint64Array]", st = "[object Int8Array]", at = "[object\
461
+ Int16Array]", it = "[object Int32Array]", Yr = "[object BigInt64Array]", ct = "[object Float32Array]", ut = "[object Float64Array]";
459
462
 
460
463
  // ../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
461
464
  function Q(e, t, r, o = /* @__PURE__ */ new Map(), s = void 0) {
@@ -522,7 +525,7 @@ function Q(e, t, r, o = /* @__PURE__ */ new Map(), s = void 0) {
522
525
  let a = new e.constructor();
523
526
  return o.set(e, a), a.message = e.message, a.name = e.name, a.stack = e.stack, a.cause = e.cause, _e(a, e, r, o, s), a;
524
527
  }
525
- if (typeof e == "object" && Mn(e)) {
528
+ if (typeof e == "object" && Un(e)) {
526
529
  let a = Object.create(Object.getPrototypeOf(e));
527
530
  return o.set(e, a), _e(a, e, r, o, s), a;
528
531
  }
@@ -537,36 +540,36 @@ function _e(e, t, r = e, o, s) {
537
540
  }
538
541
  }
539
542
  n(_e, "copyProperties");
540
- function Mn(e) {
543
+ function Un(e) {
541
544
  switch (Ee(e)) {
542
545
  case ve:
543
- case Xe:
544
546
  case Qe:
545
547
  case Ze:
546
- case ze:
547
- case qe:
548
- case it:
548
+ case et:
549
+ case He:
550
+ case Ye:
549
551
  case ct:
550
- case nt:
552
+ case ut:
551
553
  case st:
552
554
  case at:
553
- case Ye:
554
- case Ke:
555
- case ne:
556
- case Be:
555
+ case it:
557
556
  case Je:
557
+ case ze:
558
+ case ne:
558
559
  case Ve:
559
- case He:
560
- case et:
560
+ case Xe:
561
+ case Ke:
562
+ case qe:
561
563
  case tt:
562
564
  case rt:
563
565
  case ot:
566
+ case nt:
564
567
  return !0;
565
568
  default:
566
569
  return !1;
567
570
  }
568
571
  }
569
- n(Mn, "isCloneableObject");
572
+ n(Un, "isCloneableObject");
570
573
 
571
574
  // ../node_modules/es-toolkit/dist/object/cloneDeep.mjs
572
575
  function Jr(e) {
@@ -682,17 +685,17 @@ function Te(e, t, r, o) {
682
685
  if (s === ve && (s = ne), i === ve && (i = ne), s !== i)
683
686
  return !1;
684
687
  switch (s) {
685
- case Ve:
688
+ case Ke:
686
689
  return e.toString() === t.toString();
687
- case Ke: {
690
+ case ze: {
688
691
  let u = e.valueOf(), l = t.valueOf();
689
692
  return Xr(u, l);
690
693
  }
691
- case ze:
692
- case qe:
693
694
  case He:
695
+ case Ye:
696
+ case qe:
694
697
  return Object.is(e.valueOf(), t.valueOf());
695
- case Be:
698
+ case Ve:
696
699
  return e.source === t.source && e.flags === t.flags;
697
700
  case zr:
698
701
  return e === t;
@@ -704,7 +707,7 @@ function Te(e, t, r, o) {
704
707
  r.set(e, t), r.set(t, e);
705
708
  try {
706
709
  switch (s) {
707
- case Ye: {
710
+ case Je: {
708
711
  if (e.size !== t.size)
709
712
  return !1;
710
713
  for (let [u, l] of e.entries())
@@ -712,7 +715,7 @@ function Te(e, t, r, o) {
712
715
  return !1;
713
716
  return !0;
714
717
  }
715
- case Je: {
718
+ case Xe: {
716
719
  if (e.size !== t.size)
717
720
  return !1;
718
721
  let u = Array.from(e.values()), l = Array.from(t.values());
@@ -724,18 +727,18 @@ function Te(e, t, r, o) {
724
727
  }
725
728
  return !0;
726
729
  }
727
- case Xe:
728
- case et:
730
+ case Qe:
729
731
  case tt:
730
732
  case rt:
731
733
  case ot:
732
- case qr:
733
734
  case nt:
735
+ case qr:
734
736
  case st:
735
737
  case at:
736
- case Yr:
737
738
  case it:
738
- case ct: {
739
+ case Yr:
740
+ case ct:
741
+ case ut: {
739
742
  if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
740
743
  return !1;
741
744
  for (let u = 0; u < e.length; u++)
@@ -743,9 +746,9 @@ function Te(e, t, r, o) {
743
746
  return !1;
744
747
  return !0;
745
748
  }
746
- case Qe:
747
- return e.byteLength !== t.byteLength ? !1 : Te(new Uint8Array(e), new Uint8Array(t), r, o);
748
749
  case Ze:
750
+ return e.byteLength !== t.byteLength ? !1 : Te(new Uint8Array(e), new Uint8Array(t), r, o);
751
+ case et:
749
752
  return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : Te(new Uint8Array(e), new Uint8Array(t), r, o);
750
753
  case Hr:
751
754
  return e.name === t.name && e.message === t.message;
@@ -781,8 +784,8 @@ function M(e, t) {
781
784
  n(M, "isEqual");
782
785
 
783
786
  // src/manager-api/context.ts
784
- import { createContext as Un } from "react";
785
- var Zr = /* @__PURE__ */ n(({ api: e, state: t }) => Un({ api: e, state: t }), "createContext");
787
+ import { createContext as Ln } from "react";
788
+ var Zr = /* @__PURE__ */ n(({ api: e, state: t }) => Ln({ api: e, state: t }), "createContext");
786
789
 
787
790
  // src/manager-api/lib/merge.ts
788
791
  import { logger as eo } from "storybook/internal/client-logger";
@@ -829,16 +832,16 @@ var K = /* @__PURE__ */ n((e, ...t) => {
829
832
  }, "noArrayMerge");
830
833
 
831
834
  // src/manager-api/initial-state.ts
832
- var Ln = /* @__PURE__ */ n((...e) => e.reduce((t, r) => K(t, r), {}), "main"), ut = Ln;
835
+ var Fn = /* @__PURE__ */ n((...e) => e.reduce((t, r) => K(t, r), {}), "main"), lt = Fn;
833
836
 
834
837
  // src/manager-api/lib/addons.ts
835
- import { logger as Gn } from "storybook/internal/client-logger";
838
+ import { logger as Wn } from "storybook/internal/client-logger";
836
839
  import { SET_CONFIG as ro } from "storybook/internal/core-events";
837
840
  import { Addon_TypesEnum as oo } from "storybook/internal/types";
838
841
  import { global as Dt } from "@storybook/global";
839
842
 
840
843
  // src/manager-api/lib/storybook-channel-mock.ts
841
- import { Channel as Fn } from "storybook/internal/channels";
844
+ import { Channel as Gn } from "storybook/internal/channels";
842
845
  function jt() {
843
846
  let e = {
844
847
  setHandler: /* @__PURE__ */ n(() => {
@@ -846,7 +849,7 @@ function jt() {
846
849
  send: /* @__PURE__ */ n(() => {
847
850
  }, "send")
848
851
  };
849
- return new Fn({ transport: e });
852
+ return new Gn({ transport: e });
850
853
  }
851
854
  n(jt, "mockChannel");
852
855
 
@@ -876,7 +879,7 @@ var Lt = class Lt {
876
879
  * @returns {void}
877
880
  */
878
881
  this.register = /* @__PURE__ */ n((t, r) => {
879
- this.loaders[t] && Gn.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
882
+ this.loaders[t] && Wn.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
880
883
  }, "register");
881
884
  this.loadAddons = /* @__PURE__ */ n((t) => {
882
885
  Object.values(this.loaders).forEach((r) => r(t));
@@ -905,17 +908,17 @@ var Lt = class Lt {
905
908
  };
906
909
  n(Lt, "AddonStore");
907
910
  var Ut = Lt, Mt = "__STORYBOOK_ADDONS_MANAGER";
908
- function Wn() {
911
+ function $n() {
909
912
  return Dt[Mt] || (Dt[Mt] = new Ut()), Dt[Mt];
910
913
  }
911
- n(Wn, "getAddonsStore");
912
- var $n = Wn();
914
+ n($n, "getAddonsStore");
915
+ var Bn = $n();
913
916
 
914
917
  // src/manager-api/modules/addons.ts
915
918
  var Gt = {};
916
919
  L(Gt, {
917
920
  ensurePanel: () => Ft,
918
- init: () => Bn
921
+ init: () => Vn
919
922
  });
920
923
  import { Addon_TypesEnum as no } from "storybook/internal/types";
921
924
  function Ft(e, t, r) {
@@ -923,7 +926,7 @@ function Ft(e, t, r) {
923
926
  return o.indexOf(t) >= 0 ? t : o.length ? o[0] : r;
924
927
  }
925
928
  n(Ft, "ensurePanel");
926
- var Bn = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
929
+ var Vn = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
927
930
  let o = {
928
931
  getElements: /* @__PURE__ */ n((s) => e.getElements(s), "getElements"),
929
932
  getSelectedPanel: /* @__PURE__ */ n(() => {
@@ -957,9 +960,9 @@ var Bn = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
957
960
  // src/manager-api/modules/channel.ts
958
961
  var Wt = {};
959
962
  L(Wt, {
960
- init: () => Vn
963
+ init: () => Kn
961
964
  });
962
- var Vn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
965
+ var Kn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
963
966
  getChannel: /* @__PURE__ */ n(() => e.channel, "getChannel"),
964
967
  on: /* @__PURE__ */ n((r, o) => (e.channel?.on(r, o), () => e.channel?.off(r, o)), "on"),
965
968
  off: /* @__PURE__ */ n((r, o) => e.channel?.off(r, o), "off"),
@@ -973,10 +976,10 @@ var Vn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
973
976
  // src/manager-api/modules/globals.ts
974
977
  var qt = {};
975
978
  L(qt, {
976
- init: () => ns
979
+ init: () => ss
977
980
  });
978
981
  import { logger as Ao } from "storybook/internal/client-logger";
979
- import { GLOBALS_UPDATED as ts, SET_GLOBALS as rs, UPDATE_GLOBALS as os } from "storybook/internal/core-events";
982
+ import { GLOBALS_UPDATED as rs, SET_GLOBALS as os, UPDATE_GLOBALS as ns } from "storybook/internal/core-events";
980
983
 
981
984
  // ../node_modules/dequal/dist/index.mjs
982
985
  var so = Object.prototype.hasOwnProperty;
@@ -1035,14 +1038,14 @@ function F(e, t) {
1035
1038
  n(F, "dequal");
1036
1039
 
1037
1040
  // src/manager-api/lib/events.ts
1038
- import { logger as es } from "storybook/internal/client-logger";
1041
+ import { logger as ts } from "storybook/internal/client-logger";
1039
1042
 
1040
1043
  // src/manager-api/modules/refs.ts
1041
1044
  var Ht = {};
1042
1045
  L(Ht, {
1043
1046
  defaultStoryMapper: () => Po,
1044
1047
  getSourceType: () => zt,
1045
- init: () => Zn
1048
+ init: () => es
1046
1049
  });
1047
1050
  import { global as bo } from "@storybook/global";
1048
1051
 
@@ -1083,7 +1086,7 @@ n(k, "dedent");
1083
1086
  var io = k;
1084
1087
 
1085
1088
  // src/manager-api/lib/stories.ts
1086
- import { sanitize as Kn } from "storybook/internal/csf";
1089
+ import { sanitize as zn } from "storybook/internal/csf";
1087
1090
  var Vt = Ot(Bt(), 1);
1088
1091
 
1089
1092
  // src/manager-api/lib/intersect.ts
@@ -1091,7 +1094,7 @@ var uo = /* @__PURE__ */ n((e, t) => !Array.isArray(e) || !Array.isArray(t) || !
1091
1094
  o) && r.push(o), r), []), "default");
1092
1095
 
1093
1096
  // src/manager-api/lib/stories.ts
1094
- var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1097
+ var Hn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1095
1098
  globalParameters: e,
1096
1099
  kindParameters: t,
1097
1100
  stories: r
@@ -1133,7 +1136,7 @@ var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1133
1136
  return r;
1134
1137
  },
1135
1138
  {}
1136
- ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), Hn = /* @__PURE__ */ n((e) => ({
1139
+ ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), qn = /* @__PURE__ */ n((e) => ({
1137
1140
  v: 3,
1138
1141
  stories: Object.values(e.stories).reduce(
1139
1142
  (t, r) => (t[r.id] = {
@@ -1144,7 +1147,7 @@ var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1144
1147
  }, t),
1145
1148
  {}
1146
1149
  )
1147
- }), "transformStoryIndexV2toV3"), qn = /* @__PURE__ */ n((e) => {
1150
+ }), "transformStoryIndexV2toV3"), Yn = /* @__PURE__ */ n((e) => {
1148
1151
  let t = Ct(Object.values(e.stories), (r) => r.title);
1149
1152
  return {
1150
1153
  v: 4,
@@ -1160,7 +1163,7 @@ var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1160
1163
  {}
1161
1164
  )
1162
1165
  };
1163
- }, "transformStoryIndexV3toV4"), Yn = /* @__PURE__ */ n((e) => ({
1166
+ }, "transformStoryIndexV3toV4"), Jn = /* @__PURE__ */ n((e) => ({
1164
1167
  v: 5,
1165
1168
  entries: Object.values(e.entries).reduce(
1166
1169
  (t, r) => (t[r.id] = {
@@ -1173,7 +1176,7 @@ var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1173
1176
  if (!e.v)
1174
1177
  throw new Error("Composition: Missing stories.json version");
1175
1178
  let i = e;
1176
- i = i.v === 2 ? Hn(i) : i, i = i.v === 3 ? qn(i) : i, i = i.v === 4 ? Yn(i) : i, i = i;
1179
+ i = i.v === 2 ? qn(i) : i, i = i.v === 3 ? Yn(i) : i, i = i.v === 4 ? Jn(i) : i, i = i;
1177
1180
  let a = Object.values(i.entries).filter((h) => {
1178
1181
  let g = !0, S = s[h.id] ?? {};
1179
1182
  return Object.values(S).some(({ value: P }) => P === "status-value:error") || Object.values(o).forEach((P) => {
@@ -1182,8 +1185,8 @@ var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1182
1185
  }), { sidebar: c = {} } = t.getConfig(), { showRoots: u, collapsedRoots: l = [], renderLabel: p } = c, d = typeof u < "u", f = a.reduce((h, g) => {
1183
1186
  if (r.docsMode && g.type !== "docs")
1184
1187
  return h;
1185
- let { title: S } = g, P = S.trim().split(zn), E = (!d || u) && P.length > 1 ? [P.shift()] : [], v = [...E, ...P], I = v.reduce((_, w, C) => {
1186
- let x = C > 0 && _[C - 1], he = Kn(x ? `${x}-${w}` : w);
1188
+ let { title: S } = g, P = S.trim().split(Hn), E = (!d || u) && P.length > 1 ? [P.shift()] : [], v = [...E, ...P], I = v.reduce((_, w, C) => {
1189
+ let x = C > 0 && _[C - 1], he = zn(x ? `${x}-${w}` : w);
1187
1190
  if (w.trim() === "")
1188
1191
  throw new Error(k`Invalid title ${S} ending in slash.`);
1189
1192
  if (x === he)
@@ -1262,8 +1265,8 @@ var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1262
1265
  }, [])), yo = (0, Vt.default)(1)((e) => Object.keys(e).filter((t) => ["story", "docs"].includes(e[t].type)));
1263
1266
 
1264
1267
  // src/manager-api/modules/refs.ts
1265
- var { location: Jn, fetch: ho } = bo, zt = /* @__PURE__ */ n((e, t) => {
1266
- let { origin: r, pathname: o } = Jn, { origin: s, pathname: i } = new URL(e), a = `${r + o}`.replace("/iframe.html", "").replace(/\/$/, ""),
1268
+ var { location: Xn, fetch: ho } = bo, zt = /* @__PURE__ */ n((e, t) => {
1269
+ let { origin: r, pathname: o } = Xn, { origin: s, pathname: i } = new URL(e), a = `${r + o}`.replace("/iframe.html", "").replace(/\/$/, ""),
1267
1270
  c = `${s + i}`.replace("/iframe.html", "").replace(/\/$/, "");
1268
1271
  return a === c ? ["local", c] : t || e ? ["external", c] : [null, null];
1269
1272
  }, "getSourceType"), Po = /* @__PURE__ */ n((e, t) => ({ ...t, kind: t.kind.replace("|", "/") }), "defaultStoryMapper"), go = /* @__PURE__ */ n(
@@ -1284,16 +1287,16 @@ async function So(e) {
1284
1287
  }
1285
1288
  }
1286
1289
  n(So, "handleRequest");
1287
- var Xn = /* @__PURE__ */ n((e) => {
1290
+ var Qn = /* @__PURE__ */ n((e) => {
1288
1291
  let t = /https?:\/\/(.+:.+)@/, r = e, o, [, s] = e.match(t) || [];
1289
1292
  return s && (r = e.replace(`${s}@`, ""), o = btoa(`${s}`)), {
1290
1293
  url: r,
1291
1294
  authorization: o
1292
1295
  };
1293
- }, "parseUrl"), Qn = /* @__PURE__ */ n((e, t, r) => {
1296
+ }, "parseUrl"), Zn = /* @__PURE__ */ n((e, t, r) => {
1294
1297
  let { storyMapper: o } = r;
1295
1298
  return o ? Object.entries(e).reduce((s, [i, a]) => ({ ...s, [i]: o(t, a) }), {}) : e;
1296
- }, "map"), Zn = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r, docsOptions: o = {} }, { runCheck: s = !0 } = {}) => {
1299
+ }, "map"), es = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r, docsOptions: o = {} }, { runCheck: s = !0 } = {}) => {
1297
1300
  let i = {
1298
1301
  findRef: /* @__PURE__ */ n((u) => {
1299
1302
  let l = i.getRefs();
@@ -1319,7 +1322,7 @@ var Xn = /* @__PURE__ */ n((e) => {
1319
1322
  }, "changeRefState"),
1320
1323
  checkRef: /* @__PURE__ */ n(async (u) => {
1321
1324
  let { id: l, url: p, version: d, type: f } = u, y = f === "server-checked", m = {}, h = d ? `?version=${d}` : "", g = y ? "omit" : "in\
1322
- clude", S = Xn(p), P = {
1325
+ clude", S = Qn(p), P = {
1323
1326
  Accept: "application/json"
1324
1327
  };
1325
1328
  S.authorization && Object.assign(P, {
@@ -1378,7 +1381,7 @@ clude", S = Xn(p), P = {
1378
1381
  return;
1379
1382
  let y, m, h, { filters: g } = e.getState(), { storyMapper: S = Po } = t.getConfig(), P = i.getRefs()[u];
1380
1383
  (l || p) && (y = p ? po(
1381
- Qn(p, P, { storyMapper: S })
1384
+ Zn(p, P, { storyMapper: S })
1382
1385
  ) : l, h = ie(l, {
1383
1386
  provider: t,
1384
1387
  docsOptions: o,
@@ -1431,12 +1434,12 @@ var j = /* @__PURE__ */ n((e, t) => {
1431
1434
  return u;
1432
1435
  // if we couldn't find the source, something risky happened, we ignore the input, and log a warning
1433
1436
  default:
1434
- return es.warn(`Received a ${s} frame that was not configured as a ref`), null;
1437
+ return ts.warn(`Received a ${s} frame that was not configured as a ref`), null;
1435
1438
  }
1436
1439
  }, "getEventMetadata");
1437
1440
 
1438
1441
  // src/manager-api/modules/globals.ts
1439
- var ns = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1442
+ var ss = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1440
1443
  let o = {
1441
1444
  getGlobals() {
1442
1445
  return e.getState().globals;
@@ -1451,7 +1454,7 @@ var ns = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1451
1454
  return e.getState().globalTypes;
1452
1455
  },
1453
1456
  updateGlobals(a) {
1454
- r.channel?.emit(os, {
1457
+ r.channel?.emit(ns, {
1455
1458
  globals: a,
1456
1459
  options: {
1457
1460
  target: "storybook-preview-iframe"
@@ -1476,7 +1479,7 @@ var ns = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1476
1479
  F(a, l) || e.setState({ globals: a }), F(u, p) || e.setState({ userGlobals: u }), F(c, d) || e.setState({ storyGlobals: c });
1477
1480
  }, "updateGlobals");
1478
1481
  return r.channel?.on(
1479
- ts,
1482
+ rs,
1480
1483
  /* @__PURE__ */ n(function({ globals: c, storyGlobals: u, userGlobals: l }) {
1481
1484
  let { ref: p } = j(this, t);
1482
1485
  p ? Ao.warn(
@@ -1484,7 +1487,7 @@ var ns = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1484
1487
  ) : i({ globals: c, storyGlobals: u, userGlobals: l });
1485
1488
  }, "handleGlobalsUpdated")
1486
1489
  ), r.channel?.on(
1487
- rs,
1490
+ os,
1488
1491
  /* @__PURE__ */ n(function({ globals: c, globalTypes: u }) {
1489
1492
  let { ref: l } = j(this, t), p = e.getState()?.globals;
1490
1493
  l ? Object.keys(c).length > 0 && Ao.warn("received globals from a non-local ref. This is not currently supported.") : e.setState({ globals: c,
@@ -1497,17 +1500,17 @@ var ns = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1497
1500
  }, "init");
1498
1501
 
1499
1502
  // src/manager-api/modules/layout.ts
1500
- var pt = {};
1501
- L(pt, {
1503
+ var dt = {};
1504
+ L(dt, {
1502
1505
  ActiveTabs: () => _o,
1503
1506
  defaultLayoutState: () => U,
1504
1507
  focusableUIElements: () => Re,
1505
- init: () => us
1508
+ init: () => ls
1506
1509
  });
1507
- import { SET_CONFIG as ss } from "storybook/internal/core-events";
1508
- import { global as as } from "@storybook/global";
1509
- import { create as is } from "storybook/theming/create";
1510
- var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), _o = {
1510
+ import { SET_CONFIG as as } from "storybook/internal/core-events";
1511
+ import { global as is } from "@storybook/global";
1512
+ import { create as cs } from "storybook/theming/create";
1513
+ var { document: us } = is, Eo = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), _o = {
1511
1514
  SIDEBAR: "sidebar",
1512
1515
  CANVAS: "canvas",
1513
1516
  ADDONS: "addons"
@@ -1534,7 +1537,7 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1534
1537
  showToolbar: void 0
1535
1538
  },
1536
1539
  selectedPanel: void 0,
1537
- theme: is()
1540
+ theme: cs()
1538
1541
  }, Re = {
1539
1542
  storySearchField: "storybook-explorer-searchfield",
1540
1543
  storyListMenu: "storybook-explorer-menu",
@@ -1542,11 +1545,11 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1542
1545
  }, Yt = /* @__PURE__ */ n((e) => e.layout.navSize > 0, "getIsNavShown"), Jt = /* @__PURE__ */ n((e) => {
1543
1546
  let { bottomPanelHeight: t, rightPanelWidth: r, panelPosition: o } = e.layout;
1544
1547
  return o === "bottom" && t > 0 || o === "right" && r > 0;
1545
- }, "getIsPanelShown"), vo = /* @__PURE__ */ n((e) => !Yt(e) && !Jt(e), "getIsFullscreen"), lt = /* @__PURE__ */ n((e) => ({
1548
+ }, "getIsPanelShown"), vo = /* @__PURE__ */ n((e) => !Yt(e) && !Jt(e), "getIsFullscreen"), pt = /* @__PURE__ */ n((e) => ({
1546
1549
  navSize: e.navSize > 0 ? e.navSize : e.recentVisibleSizes.navSize,
1547
1550
  bottomPanelHeight: e.bottomPanelHeight > 0 ? e.bottomPanelHeight : e.recentVisibleSizes.bottomPanelHeight,
1548
1551
  rightPanelWidth: e.rightPanelWidth > 0 ? e.rightPanelWidth : e.recentVisibleSizes.rightPanelWidth
1549
- }), "getRecentVisibleSizes"), us = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r }) => {
1552
+ }), "getRecentVisibleSizes"), ls = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r }) => {
1550
1553
  let o = {
1551
1554
  toggleFullscreen(i) {
1552
1555
  return e.setState(
@@ -1558,7 +1561,7 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1558
1561
  navSize: 0,
1559
1562
  bottomPanelHeight: 0,
1560
1563
  rightPanelWidth: 0,
1561
- recentVisibleSizes: lt(a.layout)
1564
+ recentVisibleSizes: pt(a.layout)
1562
1565
  }
1563
1566
  } : {
1564
1567
  layout: {
@@ -1587,7 +1590,7 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1587
1590
  ...a.layout,
1588
1591
  bottomPanelHeight: 0,
1589
1592
  rightPanelWidth: 0,
1590
- recentVisibleSizes: lt(a.layout)
1593
+ recentVisibleSizes: pt(a.layout)
1591
1594
  }
1592
1595
  };
1593
1596
  },
@@ -1625,7 +1628,7 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1625
1628
  layout: {
1626
1629
  ...a.layout,
1627
1630
  navSize: 0,
1628
- recentVisibleSizes: lt(a.layout)
1631
+ recentVisibleSizes: pt(a.layout)
1629
1632
  }
1630
1633
  };
1631
1634
  },
@@ -1662,7 +1665,7 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1662
1665
  return {
1663
1666
  layout: {
1664
1667
  ...l,
1665
- recentVisibleSizes: lt(l)
1668
+ recentVisibleSizes: pt(l)
1666
1669
  }
1667
1670
  };
1668
1671
  },
@@ -1672,7 +1675,7 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1672
1675
  focusOnUIElement(i, a) {
1673
1676
  if (!i)
1674
1677
  return;
1675
- let c = cs.getElementById(i);
1678
+ let c = us.getElementById(i);
1676
1679
  c && (c.focus(), a && c.select());
1677
1680
  },
1678
1681
  getInitialOptions() {
@@ -1740,7 +1743,7 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1740
1743
  keys(y).length && e.setState(y, { persistence: "permanent" }), M(l, f) || e.setState({ theme: f });
1741
1744
  }, "setOptions")
1742
1745
  }, s = Z(e.getState(), ["layout", "selectedPanel"]);
1743
- return t.channel?.on(ss, () => {
1746
+ return t.channel?.on(as, () => {
1744
1747
  o.setOptions(K(o.getInitialOptions(), s));
1745
1748
  }), {
1746
1749
  api: o,
@@ -1751,12 +1754,12 @@ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function",
1751
1754
  // src/manager-api/modules/notifications.ts
1752
1755
  var Xt = {};
1753
1756
  L(Xt, {
1754
- init: () => ls
1757
+ init: () => ps
1755
1758
  });
1756
- var ls = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1759
+ var ps = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1757
1760
  addNotification: /* @__PURE__ */ n((o) => {
1758
1761
  e.setState(({ notifications: s }) => {
1759
- let [i, a] = $e(s, (c) => c.id === o.id);
1762
+ let [i, a] = Be(s, (c) => c.id === o.id);
1760
1763
  return i.forEach((c) => {
1761
1764
  c.onClear && c.onClear({ dismissed: !1, timeout: !1 });
1762
1765
  }), { notifications: [...a, o] };
@@ -1764,7 +1767,7 @@ var ls = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1764
1767
  }, "addNotification"),
1765
1768
  clearNotification: /* @__PURE__ */ n((o) => {
1766
1769
  e.setState(({ notifications: s }) => {
1767
- let [i, a] = $e(s, (c) => c.id === o);
1770
+ let [i, a] = Be(s, (c) => c.id === o);
1768
1771
  return i.forEach((c) => {
1769
1772
  c.onClear && c.onClear({ dismissed: !1, timeout: !1 });
1770
1773
  }), { notifications: a };
@@ -1775,9 +1778,9 @@ var ls = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1775
1778
  // src/manager-api/modules/provider.ts
1776
1779
  var Qt = {};
1777
1780
  L(Qt, {
1778
- init: () => ps
1781
+ init: () => ds
1779
1782
  });
1780
- var ps = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1783
+ var ds = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1781
1784
  api: e.renderPreview ? { renderPreview: e.renderPreview } : {},
1782
1785
  state: {},
1783
1786
  init: /* @__PURE__ */ n(() => {
@@ -1788,9 +1791,9 @@ var ps = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1788
1791
  // src/manager-api/modules/settings.ts
1789
1792
  var Zt = {};
1790
1793
  L(Zt, {
1791
- init: () => ds
1794
+ init: () => fs
1792
1795
  });
1793
- var ds = /* @__PURE__ */ n(({ store: e, navigate: t, fullAPI: r }) => ({
1796
+ var fs = /* @__PURE__ */ n(({ store: e, navigate: t, fullAPI: r }) => ({
1794
1797
  state: { settings: { lastTrackedStoryId: null } },
1795
1798
  api: {
1796
1799
  closeSettings: /* @__PURE__ */ n(() => {
@@ -1824,23 +1827,23 @@ var ir = {};
1824
1827
  L(ir, {
1825
1828
  controlOrMetaKey: () => ce,
1826
1829
  defaultShortcuts: () => ue,
1827
- init: () => Es,
1830
+ init: () => vs,
1828
1831
  isMacLike: () => xo,
1829
1832
  keys: () => ar
1830
1833
  });
1831
1834
  import {
1832
- FORCE_REMOUNT as hs,
1833
- PREVIEW_KEYDOWN as gs,
1834
- STORIES_COLLAPSE_ALL as Ss,
1835
- STORIES_EXPAND_ALL as bs
1835
+ FORCE_REMOUNT as gs,
1836
+ PREVIEW_KEYDOWN as Ss,
1837
+ STORIES_COLLAPSE_ALL as bs,
1838
+ STORIES_EXPAND_ALL as Ps
1836
1839
  } from "storybook/internal/core-events";
1837
- import { global as Ps } from "@storybook/global";
1840
+ import { global as As } from "@storybook/global";
1838
1841
 
1839
1842
  // src/manager-api/lib/shortcut.ts
1840
- import { global as fs } from "@storybook/global";
1841
- var { navigator: er } = fs, tr = /* @__PURE__ */ n(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1842
- sd = /* @__PURE__ */ n(() => tr() ? "\u2318" : "ctrl", "controlOrMetaSymbol"), ad = /* @__PURE__ */ n(() => tr() ? "meta" : "control", "cont\
1843
- rolOrMetaKey"), ys = /* @__PURE__ */ n(() => tr() ? "\u2325" : "alt", "optionOrAltSymbol"), id = /* @__PURE__ */ n((e, t) => JSON.stringify(
1843
+ import { global as ys } from "@storybook/global";
1844
+ var { navigator: er } = ys, tr = /* @__PURE__ */ n(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1845
+ cd = /* @__PURE__ */ n(() => tr() ? "\u2318" : "ctrl", "controlOrMetaSymbol"), ud = /* @__PURE__ */ n(() => tr() ? "meta" : "control", "cont\
1846
+ rolOrMetaKey"), ms = /* @__PURE__ */ n(() => tr() ? "\u2325" : "alt", "optionOrAltSymbol"), ld = /* @__PURE__ */ n((e, t) => JSON.stringify(
1844
1847
  e) === JSON.stringify(t), "isShortcutTaken"), rr = /* @__PURE__ */ n((e) => {
1845
1848
  if (["Meta", "Alt", "Control", "Shift"].includes(e.key))
1846
1849
  return null;
@@ -1856,13 +1859,13 @@ e) === JSON.stringify(t), "isShortcutTaken"), rr = /* @__PURE__ */ n((e) => {
1856
1859
  }, "eventToShortcut"), or = /* @__PURE__ */ n((e, t) => !e || !t || (e.join("").startsWith("shift/") && e.shift(), e.length !== t.length) ? !1 :
1857
1860
  !e.find(
1858
1861
  (r, o) => Array.isArray(r) ? !r.includes(t[o]) : r !== t[o]
1859
- ), "shortcutMatchesShortcut"), cd = /* @__PURE__ */ n((e, t) => or(rr(e), t), "eventMatchesShortcut"), ms = /* @__PURE__ */ n((e) => e === "\
1860
- alt" ? ys() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1862
+ ), "shortcutMatchesShortcut"), pd = /* @__PURE__ */ n((e, t) => or(rr(e), t), "eventMatchesShortcut"), hs = /* @__PURE__ */ n((e) => e === "\
1863
+ alt" ? ms() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1861
1864
  "Esc" || e === "escape" ? "" : e === " " ? "SPACE" : e === "ArrowUp" ? "\u2191" : e === "ArrowDown" ? "\u2193" : e === "ArrowLeft" ? "\u2190" :
1862
- e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), ud = /* @__PURE__ */ n((e) => e.map(ms).join(" "), "shortcutToHumanString");
1865
+ e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), dd = /* @__PURE__ */ n((e) => e.map(hs).join(" "), "shortcutToHumanString");
1863
1866
 
1864
1867
  // src/manager-api/modules/shortcuts.ts
1865
- var { navigator: nr, document: Io } = Ps, xo = /* @__PURE__ */ n(() => nr && nr.platform ? !!nr.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1868
+ var { navigator: nr, document: Io } = As, xo = /* @__PURE__ */ n(() => nr && nr.platform ? !!nr.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1866
1869
  "isMacLike"), ce = /* @__PURE__ */ n(() => xo() ? "meta" : "control", "controlOrMetaKey");
1867
1870
  function ar(e) {
1868
1871
  return Object.keys(e);
@@ -1890,12 +1893,12 @@ var ue = Object.freeze({
1890
1893
  expandAll: [ce(), "shift", "ArrowDown"],
1891
1894
  remount: ["alt", "R"]
1892
1895
  }), sr = {};
1893
- function As(e) {
1896
+ function Es(e) {
1894
1897
  let t = e.target;
1895
1898
  return /input|textarea/i.test(t.tagName) || t.getAttribute("contenteditable") !== null;
1896
1899
  }
1897
- n(As, "focusInInput");
1898
- var Es = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1900
+ n(Es, "focusInInput");
1901
+ var vs = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1899
1902
  let o = {
1900
1903
  // Getting and setting shortcuts
1901
1904
  getShortcutKeys() {
@@ -2030,15 +2033,15 @@ var Es = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2030
2033
  break;
2031
2034
  }
2032
2035
  case "collapseAll": {
2033
- t.emit(Ss);
2036
+ t.emit(bs);
2034
2037
  break;
2035
2038
  }
2036
2039
  case "expandAll": {
2037
- t.emit(bs);
2040
+ t.emit(Ps);
2038
2041
  break;
2039
2042
  }
2040
2043
  case "remount": {
2041
- t.emit(hs, { storyId: p });
2044
+ t.emit(gs, { storyId: p });
2042
2045
  break;
2043
2046
  }
2044
2047
  default:
@@ -2055,8 +2058,8 @@ var Es = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2055
2058
  };
2056
2059
  return { api: o, state: i, init: /* @__PURE__ */ n(() => {
2057
2060
  Io.addEventListener("keydown", (c) => {
2058
- As(c) || o.handleKeydownEvent(c);
2059
- }), r.channel?.on(gs, (c) => {
2061
+ Es(c) || o.handleKeydownEvent(c);
2062
+ }), r.channel?.on(Ss, (c) => {
2060
2063
  o.handleKeydownEvent(c.event);
2061
2064
  });
2062
2065
  }, "initModule") };
@@ -2065,31 +2068,31 @@ var Es = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2065
2068
  // src/manager-api/modules/stories.ts
2066
2069
  var yr = {};
2067
2070
  L(yr, {
2068
- init: () => Xs
2071
+ init: () => Qs
2069
2072
  });
2070
- import { logger as Rs } from "storybook/internal/client-logger";
2073
+ import { logger as ws } from "storybook/internal/client-logger";
2071
2074
  import {
2072
- CONFIG_ERROR as ws,
2073
- CURRENT_STORY_WAS_SET as Os,
2074
- DOCS_PREPARED as Cs,
2075
- PRELOAD_ENTRIES as Ns,
2076
- RESET_STORY_ARGS as ks,
2077
- SELECT_STORY as js,
2078
- SET_CONFIG as Ds,
2079
- SET_CURRENT_STORY as Ms,
2080
- SET_FILTER as Us,
2081
- SET_INDEX as Ls,
2082
- SET_STORIES as Fs,
2083
- STORY_ARGS_UPDATED as Gs,
2084
- STORY_CHANGED as Ws,
2085
- STORY_INDEX_INVALIDATED as $s,
2086
- STORY_MISSING as Bs,
2087
- STORY_PREPARED as Vs,
2088
- STORY_SPECIFIED as Ks,
2089
- UPDATE_STORY_ARGS as zs
2075
+ CONFIG_ERROR as Os,
2076
+ CURRENT_STORY_WAS_SET as Cs,
2077
+ DOCS_PREPARED as Ns,
2078
+ PRELOAD_ENTRIES as ks,
2079
+ RESET_STORY_ARGS as js,
2080
+ SELECT_STORY as Ds,
2081
+ SET_CONFIG as Ms,
2082
+ SET_CURRENT_STORY as Us,
2083
+ SET_FILTER as Ls,
2084
+ SET_INDEX as Fs,
2085
+ SET_STORIES as Gs,
2086
+ STORY_ARGS_UPDATED as Ws,
2087
+ STORY_CHANGED as $s,
2088
+ STORY_INDEX_INVALIDATED as Bs,
2089
+ STORY_MISSING as Vs,
2090
+ STORY_PREPARED as Ks,
2091
+ STORY_SPECIFIED as zs,
2092
+ UPDATE_STORY_ARGS as Hs
2090
2093
  } from "storybook/internal/core-events";
2091
- import { sanitize as Oo, toId as gt } from "storybook/internal/csf";
2092
- import { global as Hs } from "@storybook/global";
2094
+ import { sanitize as Oo, toId as St } from "storybook/internal/csf";
2095
+ import { global as qs } from "@storybook/global";
2093
2096
 
2094
2097
  // src/storybook-error.ts
2095
2098
  function To({
@@ -2100,9 +2103,9 @@ function To({
2100
2103
  return `SB_${t}_${r}`;
2101
2104
  }
2102
2105
  n(To, "parseErrorCode");
2103
- var dt = class dt extends Error {
2106
+ var ft = class ft extends Error {
2104
2107
  constructor(r) {
2105
- super(dt.getFullMessage(r));
2108
+ super(ft.getFullMessage(r));
2106
2109
  /**
2107
2110
  * Data associated with the error. Used to provide additional information in the error message or
2108
2111
  * to be passed to telemetry.
@@ -2137,8 +2140,8 @@ More info: ${a}
2137
2140
  ` : ""}`;
2138
2141
  }
2139
2142
  };
2140
- n(dt, "StorybookError");
2141
- var Y = dt;
2143
+ n(ft, "StorybookError");
2144
+ var Y = ft;
2142
2145
 
2143
2146
  // src/manager-errors.ts
2144
2147
  var cr = class cr extends Y {
@@ -2156,7 +2159,7 @@ var cr = class cr extends Y {
2156
2159
  }
2157
2160
  };
2158
2161
  n(cr, "StatusTypeIdMismatchError");
2159
- var ft = cr;
2162
+ var yt = cr;
2160
2163
 
2161
2164
  // src/preview-errors.ts
2162
2165
  var ur = class ur extends Y {
@@ -2174,7 +2177,7 @@ var ur = class ur extends Y {
2174
2177
  }
2175
2178
  };
2176
2179
  n(ur, "StatusTypeIdMismatchError");
2177
- var yt = ur;
2180
+ var mt = ur;
2178
2181
 
2179
2182
  // src/server-errors.ts
2180
2183
  var lr = class lr extends Y {
@@ -2192,7 +2195,7 @@ var lr = class lr extends Y {
2192
2195
  }
2193
2196
  };
2194
2197
  n(lr, "StatusTypeIdMismatchError");
2195
- var mt = lr;
2198
+ var ht = lr;
2196
2199
 
2197
2200
  // src/shared/status-store/index.ts
2198
2201
  var Ro = {
@@ -2257,18 +2260,18 @@ function wo({
2257
2260
  if (l.typeId !== i)
2258
2261
  switch (r) {
2259
2262
  case "server":
2260
- throw new mt({
2263
+ throw new ht({
2261
2264
  status: l,
2262
2265
  typeId: i
2263
2266
  });
2264
2267
  case "manager":
2265
- throw new ft({
2268
+ throw new yt({
2266
2269
  status: l,
2267
2270
  typeId: i
2268
2271
  });
2269
2272
  case "preview":
2270
2273
  default:
2271
- throw new yt({
2274
+ throw new mt({
2272
2275
  status: l,
2273
2276
  typeId: i
2274
2277
  });
@@ -2310,7 +2313,7 @@ n(wo, "createStatusStore");
2310
2313
  var dr = /* @__PURE__ */ new Map();
2311
2314
 
2312
2315
  // src/shared/universal-store/index.ts
2313
- var vs = "UNIVERSAL_STORE:", G = {
2316
+ var _s = "UNIVERSAL_STORE:", G = {
2314
2317
  PENDING: "PENDING",
2315
2318
  RESOLVED: "RESOLVED",
2316
2319
  REJECTED: "REJECTED"
@@ -2362,7 +2365,7 @@ var vs = "UNIVERSAL_STORE:", G = {
2362
2365
  "UniversalStore is not constructable - use UniversalStore.create() instead"
2363
2366
  );
2364
2367
  if (b.isInternalConstructing = !1, this.id = t.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
2365
- actorType = t.leader ? b.ActorType.LEADER : b.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${vs}${this.id}`,
2368
+ actorType = t.leader ? b.ActorType.LEADER : b.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${_s}${this.id}`,
2366
2369
  this.debug("constructor", {
2367
2370
  options: t,
2368
2371
  environmentOverrides: r,
@@ -2706,27 +2709,27 @@ var we = /* @__PURE__ */ n((e, t) => {
2706
2709
  }, "useUniversalStore");
2707
2710
 
2708
2711
  // src/manager-api/stores/status.ts
2709
- var _s = wo({
2712
+ var Is = wo({
2710
2713
  universalStatusStore: W.create({
2711
2714
  ...Ro,
2712
2715
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
2713
2716
  }),
2714
2717
  useUniversalStore: we,
2715
2718
  environment: "manager"
2716
- }), { fullStatusStore: ht, getStatusStoreByTypeId: Is, useStatusStore: xs, universalStatusStore: Ts } = _s;
2719
+ }), { fullStatusStore: gt, getStatusStoreByTypeId: xs, useStatusStore: Ts, universalStatusStore: Rs } = Is;
2717
2720
 
2718
2721
  // src/manager-api/modules/stories.ts
2719
- var { fetch: qs } = Hs, Ys = "./index.json", Js = ["enableShortcuts", "theme", "showRoots"];
2722
+ var { fetch: Ys } = qs, Js = "./index.json", Xs = ["enableShortcuts", "theme", "showRoots"];
2720
2723
  function fr(e) {
2721
2724
  if (!e || typeof e == "string")
2722
2725
  return e;
2723
2726
  let t = { ...e };
2724
- return Js.forEach((r) => {
2727
+ return Xs.forEach((r) => {
2725
2728
  r in t && delete t[r];
2726
2729
  }), t;
2727
2730
  }
2728
2731
  n(fr, "removeRemovedOptions");
2729
- var Xs = /* @__PURE__ */ n(({
2732
+ var Qs = /* @__PURE__ */ n(({
2730
2733
  fullAPI: e,
2731
2734
  store: t,
2732
2735
  navigate: r,
@@ -2736,7 +2739,7 @@ var Xs = /* @__PURE__ */ n(({
2736
2739
  docsOptions: a = {}
2737
2740
  }) => {
2738
2741
  let c = {
2739
- storyId: gt,
2742
+ storyId: St,
2740
2743
  getData: /* @__PURE__ */ n((l, p) => {
2741
2744
  let d = c.resolveStory(l, p);
2742
2745
  if (d?.type === "story" || d?.type === "docs")
@@ -2804,7 +2807,7 @@ var Xs = /* @__PURE__ */ n(({
2804
2807
  if (g)
2805
2808
  if (p)
2806
2809
  if (l) {
2807
- let P = f ? `${f}_${gt(l, p)}` : gt(l, p);
2810
+ let P = f ? `${f}_${St(l, p)}` : St(l, p);
2808
2811
  if (g[P])
2809
2812
  c.selectStory(P, void 0, d);
2810
2813
  else {
@@ -2815,7 +2818,7 @@ var Xs = /* @__PURE__ */ n(({
2815
2818
  }
2816
2819
  }
2817
2820
  } else {
2818
- let P = gt(S, p);
2821
+ let P = St(S, p);
2819
2822
  c.selectStory(P, void 0, d);
2820
2823
  }
2821
2824
  else {
@@ -2860,7 +2863,7 @@ var Xs = /* @__PURE__ */ n(({
2860
2863
  },
2861
2864
  updateStoryArgs: /* @__PURE__ */ n((l, p) => {
2862
2865
  let { id: d, refId: f } = l;
2863
- o.channel?.emit(zs, {
2866
+ o.channel?.emit(Hs, {
2864
2867
  storyId: d,
2865
2868
  updatedArgs: p,
2866
2869
  options: { target: f }
@@ -2868,7 +2871,7 @@ var Xs = /* @__PURE__ */ n(({
2868
2871
  }, "updateStoryArgs"),
2869
2872
  resetStoryArgs: /* @__PURE__ */ n((l, p) => {
2870
2873
  let { id: d, refId: f } = l;
2871
- o.channel?.emit(ks, {
2874
+ o.channel?.emit(js, {
2872
2875
  storyId: d,
2873
2876
  argNames: p,
2874
2877
  options: { target: f }
@@ -2876,12 +2879,12 @@ var Xs = /* @__PURE__ */ n(({
2876
2879
  }, "resetStoryArgs"),
2877
2880
  fetchIndex: /* @__PURE__ */ n(async () => {
2878
2881
  try {
2879
- let l = await qs(Ys);
2882
+ let l = await Ys(Js);
2880
2883
  if (l.status !== 200)
2881
2884
  throw new Error(await l.text());
2882
2885
  let p = await l.json();
2883
2886
  if (p.v < 3) {
2884
- Rs.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);
2887
+ ws.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);
2885
2888
  return;
2886
2889
  }
2887
2890
  await c.setIndex(p);
@@ -2893,7 +2896,7 @@ var Xs = /* @__PURE__ */ n(({
2893
2896
  // The story index we receive on fetchStoryIndex is not, but all the prepared fields are optional
2894
2897
  // so we can cast one to the other easily enough
2895
2898
  setIndex: /* @__PURE__ */ n(async (l) => {
2896
- let { filteredIndex: p, index: d, filters: f } = t.getState(), y = ht.getAll(), m = ie(l, {
2899
+ let { filteredIndex: p, index: d, filters: f } = t.getState(), y = gt.getAll(), m = ie(l, {
2897
2900
  provider: o,
2898
2901
  docsOptions: a,
2899
2902
  filters: f,
@@ -2966,11 +2969,11 @@ var Xs = /* @__PURE__ */ n(({
2966
2969
  let f = await e.getRefs();
2967
2970
  Object.entries(f).forEach(([y, { internal_index: m, ...h }]) => {
2968
2971
  e.setRef(y, { ...h, storyIndex: m }, !0);
2969
- }), o.channel?.emit(Us, { id: l });
2972
+ }), o.channel?.emit(Ls, { id: l });
2970
2973
  }, "experimental_setFilter")
2971
2974
  };
2972
2975
  o.channel?.on(
2973
- Ks,
2976
+ zs,
2974
2977
  /* @__PURE__ */ n(function({
2975
2978
  storyId: p,
2976
2979
  viewMode: d
@@ -2979,23 +2982,23 @@ var Xs = /* @__PURE__ */ n(({
2979
2982
  if (f === "local") {
2980
2983
  let y = t.getState(), m = y.path === "/" || y.viewMode === "story" || y.viewMode === "docs", h = y.viewMode && y.storyId, g = y.viewMode !==
2981
2984
  d || y.storyId !== p, { type: S } = y.index?.[y.storyId] || {};
2982
- m && (h && g && !(S === "root" || S === "component" || S === "group") ? o.channel?.emit(Ms, {
2985
+ m && (h && g && !(S === "root" || S === "component" || S === "group") ? o.channel?.emit(Us, {
2983
2986
  storyId: y.storyId,
2984
2987
  viewMode: y.viewMode
2985
2988
  }) : g && r(`/${d}/${p}`));
2986
2989
  }
2987
2990
  }, "handler")
2988
- ), o.channel?.on(Os, /* @__PURE__ */ n(function() {
2991
+ ), o.channel?.on(Cs, /* @__PURE__ */ n(function() {
2989
2992
  let { ref: p } = j(this, e);
2990
2993
  c.setPreviewInitialized(p);
2991
- }, "handler")), o.channel?.on(Ws, /* @__PURE__ */ n(function() {
2994
+ }, "handler")), o.channel?.on($s, /* @__PURE__ */ n(function() {
2992
2995
  let { sourceType: p } = j(this, e);
2993
2996
  if (p === "local") {
2994
2997
  let d = c.getCurrentParameter("options");
2995
2998
  d && e.setOptions(fr(d));
2996
2999
  }
2997
3000
  }, "handler")), o.channel?.on(
2998
- Vs,
3001
+ Ks,
2999
3002
  /* @__PURE__ */ n(function({ id: p, ...d }) {
3000
3003
  let { ref: f, sourceType: y } = j(this, e);
3001
3004
  if (c.updateStory(p, { ...d, prepared: !0 }, f), !f && !t.getState().hasCalledSetOptions) {
@@ -3012,19 +3015,19 @@ var Xs = /* @__PURE__ */ n(({
3012
3015
  c.findSiblingStoryId(m, h, -1, !0)
3013
3016
  ])
3014
3017
  ).filter(Boolean);
3015
- o.channel?.emit(Ns, {
3018
+ o.channel?.emit(ks, {
3016
3019
  ids: S,
3017
3020
  options: { target: g }
3018
3021
  });
3019
3022
  }
3020
3023
  }, "handler")
3021
3024
  ), o.channel?.on(
3022
- Cs,
3025
+ Ns,
3023
3026
  /* @__PURE__ */ n(function({ id: p, ...d }) {
3024
3027
  let { ref: f } = j(this, e);
3025
3028
  c.updateStory(p, { ...d, prepared: !0 }, f);
3026
3029
  }, "handler")
3027
- ), o.channel?.on(Ls, /* @__PURE__ */ n(function(p) {
3030
+ ), o.channel?.on(Fs, /* @__PURE__ */ n(function(p) {
3028
3031
  let { ref: d } = j(this, e);
3029
3032
  if (d)
3030
3033
  e.setRef(d.id, { ...d, storyIndex: p }, !0);
@@ -3033,14 +3036,14 @@ var Xs = /* @__PURE__ */ n(({
3033
3036
  let f = c.getCurrentParameter("options");
3034
3037
  e.setOptions(fr(f));
3035
3038
  }
3036
- }, "handler")), o.channel?.on(Fs, /* @__PURE__ */ n(function(p) {
3039
+ }, "handler")), o.channel?.on(Gs, /* @__PURE__ */ n(function(p) {
3037
3040
  let { ref: d } = j(this, e), f = p.v ? lo(p) : p.stories;
3038
3041
  if (d)
3039
3042
  e.setRef(d.id, { ...d, setStoriesData: f }, !0);
3040
3043
  else
3041
3044
  throw new Error("Cannot call SET_STORIES for local frame");
3042
3045
  }, "handler")), o.channel?.on(
3043
- js,
3046
+ Ds,
3044
3047
  /* @__PURE__ */ n(function({
3045
3048
  kind: p,
3046
3049
  title: d = p,
@@ -3053,18 +3056,18 @@ var Xs = /* @__PURE__ */ n(({
3053
3056
  g ? e.selectStory(m || d, y, { ...h, ref: g.id }) : e.selectStory(m || d, y, h);
3054
3057
  }, "handler")
3055
3058
  ), o.channel?.on(
3056
- Gs,
3059
+ Ws,
3057
3060
  /* @__PURE__ */ n(function({ storyId: p, args: d }) {
3058
3061
  let { ref: f } = j(this, e);
3059
3062
  c.updateStory(p, { args: d }, f);
3060
3063
  }, "handleStoryArgsUpdated")
3061
- ), o.channel?.on(ws, /* @__PURE__ */ n(function(p) {
3064
+ ), o.channel?.on(Os, /* @__PURE__ */ n(function(p) {
3062
3065
  let { ref: d } = j(this, e);
3063
3066
  c.setPreviewInitialized(d);
3064
- }, "handleConfigError")), o.channel?.on(Bs, /* @__PURE__ */ n(function(p) {
3067
+ }, "handleConfigError")), o.channel?.on(Vs, /* @__PURE__ */ n(function(p) {
3065
3068
  let { ref: d } = j(this, e);
3066
3069
  c.setPreviewInitialized(d);
3067
- }, "handleConfigError")), o.channel?.on(Ds, () => {
3070
+ }, "handleConfigError")), o.channel?.on(Ms, () => {
3068
3071
  let l = o.getConfig();
3069
3072
  l?.sidebar?.filters && t.setState({
3070
3073
  filters: {
@@ -3072,7 +3075,7 @@ var Xs = /* @__PURE__ */ n(({
3072
3075
  ...l?.sidebar?.filters
3073
3076
  }
3074
3077
  });
3075
- }), ht.onAllStatusChange(async () => {
3078
+ }), gt.onAllStatusChange(async () => {
3076
3079
  let { internal_index: l } = t.getState();
3077
3080
  if (!l)
3078
3081
  return;
@@ -3093,7 +3096,7 @@ var Xs = /* @__PURE__ */ n(({
3093
3096
  filters: u?.sidebar?.filters || {}
3094
3097
  },
3095
3098
  init: /* @__PURE__ */ n(async () => {
3096
- o.channel?.on($s, () => c.fetchIndex()), await c.fetchIndex();
3099
+ o.channel?.on(Bs, () => c.fetchIndex()), await c.fetchIndex();
3097
3100
  }, "init")
3098
3101
  };
3099
3102
  }, "init");
@@ -3101,23 +3104,23 @@ var Xs = /* @__PURE__ */ n(({
3101
3104
  // src/manager-api/modules/url.ts
3102
3105
  var gr = {};
3103
3106
  L(gr, {
3104
- init: () => aa
3107
+ init: () => ia
3105
3108
  });
3106
3109
  import {
3107
- GLOBALS_UPDATED as Qs,
3108
- NAVIGATE_URL as Zs,
3109
- SET_CURRENT_STORY as ea,
3110
- STORY_ARGS_UPDATED as ta,
3111
- UPDATE_QUERY_PARAMS as ra
3110
+ GLOBALS_UPDATED as Zs,
3111
+ NAVIGATE_URL as ea,
3112
+ SET_CURRENT_STORY as ta,
3113
+ STORY_ARGS_UPDATED as ra,
3114
+ UPDATE_QUERY_PARAMS as oa
3112
3115
  } from "storybook/internal/core-events";
3113
- import { buildArgsParam as Co, queryFromLocation as oa } from "storybook/internal/router";
3114
- import { global as na } from "@storybook/global";
3115
- var { window: mr } = na, te = /* @__PURE__ */ n((e) => {
3116
+ import { buildArgsParam as Co, queryFromLocation as na } from "storybook/internal/router";
3117
+ import { global as sa } from "@storybook/global";
3118
+ var { window: mr } = sa, te = /* @__PURE__ */ n((e) => {
3116
3119
  if (e === "true" || e === "1")
3117
3120
  return !0;
3118
3121
  if (e === "false" || e === "0")
3119
3122
  return !1;
3120
- }, "parseBoolean"), hr, sa = /* @__PURE__ */ n(({
3123
+ }, "parseBoolean"), hr, aa = /* @__PURE__ */ n(({
3121
3124
  state: { location: e, path: t, viewMode: r, storyId: o },
3122
3125
  singleStory: s
3123
3126
  }) => {
@@ -3131,7 +3134,7 @@ var { window: mr } = na, te = /* @__PURE__ */ n((e) => {
3131
3134
  path: d,
3132
3135
  ...f
3133
3136
  // the rest gets passed to the iframe
3134
- } = oa(e), y, m, h;
3137
+ } = na(e), y, m, h;
3135
3138
  te(i) === !0 ? (y = 0, m = 0, h = 0) : te(i) === !1 && (y = U.layout.navSize, m = U.layout.bottomPanelHeight, h = U.layout.rightPanelWidth),
3136
3139
  s || (te(c) === !0 && (y = U.layout.navSize), te(c) === !1 && (y = 0)), te(a) === !1 && (m = 0, h = 0);
3137
3140
  let g = {
@@ -3144,7 +3147,7 @@ var { window: mr } = na, te = /* @__PURE__ */ n((e) => {
3144
3147
  enableShortcuts: te(u)
3145
3148
  }, P = l || void 0, E = o, v = F(hr, f) ? hr : f;
3146
3149
  return hr = v, { viewMode: r, layout: g, ui: S, selectedPanel: P, location: e, path: t, customQueryParams: v, storyId: E };
3147
- }, "initialUrlSupport"), aa = /* @__PURE__ */ n((e) => {
3150
+ }, "initialUrlSupport"), ia = /* @__PURE__ */ n((e) => {
3148
3151
  let { store: t, navigate: r, provider: o, fullAPI: s } = e, i = /* @__PURE__ */ n((l, p = {}, d = {}) => {
3149
3152
  let f = Object.entries(p).filter(([, m]) => m).sort(([m], [h]) => m < h ? -1 : 1).map(([m, h]) => `${m}=${h}`), y = [l, ...f].join("&");
3150
3153
  return r(y, d);
@@ -3169,7 +3172,7 @@ var { window: mr } = na, te = /* @__PURE__ */ n((e) => {
3169
3172
  ...p,
3170
3173
  ...Object.entries(l).reduce((y, [m, h]) => (h !== null && (y[m] = h), y), d)
3171
3174
  };
3172
- F(p, f) || (t.setState({ customQueryParams: f }), o.channel?.emit(ra, f));
3175
+ F(p, f) || (t.setState({ customQueryParams: f }), o.channel?.emit(oa, f));
3173
3176
  },
3174
3177
  applyQueryParams(l, p) {
3175
3178
  let { path: d, hash: f = "", queryParams: y } = a.getUrlState();
@@ -3188,42 +3191,42 @@ var { window: mr } = na, te = /* @__PURE__ */ n((e) => {
3188
3191
  let { args: m, initialArgs: h } = y, g = Co(h, m);
3189
3192
  i(`${l}${p}`, { ...d, args: g }, { replace: !0 }), a.setQueryParams({ args: g });
3190
3193
  }, "updateArgsParam");
3191
- o.channel?.on(ea, () => c());
3194
+ o.channel?.on(ta, () => c());
3192
3195
  let u;
3193
- return o.channel?.on(ta, () => {
3196
+ return o.channel?.on(ra, () => {
3194
3197
  "requestIdleCallback" in mr ? (u && mr.cancelIdleCallback(u), u = mr.requestIdleCallback(c, { timeout: 1e3 })) : (u && clearTimeout(u), setTimeout(
3195
3198
  c, 100));
3196
- }), o.channel?.on(Qs, ({ userGlobals: l, initialGlobals: p }) => {
3199
+ }), o.channel?.on(Zs, ({ userGlobals: l, initialGlobals: p }) => {
3197
3200
  let { path: d, hash: f = "", queryParams: y } = a.getUrlState(), m = Co(p, l);
3198
3201
  i(`${d}${f}`, { ...y, globals: m }, { replace: !0 }), a.setQueryParams({ globals: m });
3199
- }), o.channel?.on(Zs, (l, p) => {
3202
+ }), o.channel?.on(ea, (l, p) => {
3200
3203
  a.navigateUrl(l, p);
3201
3204
  }), {
3202
3205
  api: a,
3203
- state: sa(e)
3206
+ state: aa(e)
3204
3207
  };
3205
3208
  }, "init");
3206
3209
 
3207
3210
  // src/manager-api/modules/versions.ts
3208
3211
  var br = {};
3209
3212
  L(br, {
3210
- init: () => ua
3213
+ init: () => la
3211
3214
  });
3212
3215
  var jo = Ot(Bt(), 1);
3213
3216
  import { global as Sr } from "@storybook/global";
3214
3217
  import $ from "semver";
3215
3218
 
3216
3219
  // src/manager-api/version.ts
3217
- var No = "9.0.0-rc.5";
3220
+ var No = "9.1.0-alpha.0";
3218
3221
 
3219
3222
  // src/manager-api/modules/versions.ts
3220
- var { VERSIONCHECK: ia } = Sr, ko = (0, jo.default)(1)(() => {
3223
+ var { VERSIONCHECK: ca } = Sr, ko = (0, jo.default)(1)(() => {
3221
3224
  try {
3222
- return { ...JSON.parse(ia).data || {} };
3225
+ return { ...JSON.parse(ca).data || {} };
3223
3226
  } catch {
3224
3227
  return {};
3225
3228
  }
3226
- }), ca = /* @__PURE__ */ n((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), ua = /* @__PURE__ */ n(({ store: e }) => {
3229
+ }), ua = /* @__PURE__ */ n((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), la = /* @__PURE__ */ n(({ store: e }) => {
3227
3230
  let { dismissedVersionNotification: t } = e.getState(), r = {
3228
3231
  versions: {
3229
3232
  current: {
@@ -3258,7 +3261,7 @@ var { VERSIONCHECK: ia } = Sr, ko = (0, jo.default)(1)(() => {
3258
3261
  let [d, f] = i?.split("#") || [];
3259
3262
  if (d && (p += `${d}/`), c && typeof Sr.STORYBOOK_RENDERER < "u") {
3260
3263
  let y = Sr.STORYBOOK_RENDERER;
3261
- y && (p += `?renderer=${ca(y)}`);
3264
+ y && (p += `?renderer=${ua(y)}`);
3262
3265
  }
3263
3266
  return f && (p += `#${f}`), p;
3264
3267
  }, "getDocsUrl"),
@@ -3286,17 +3289,17 @@ var { VERSIONCHECK: ia } = Sr, ko = (0, jo.default)(1)(() => {
3286
3289
  // src/manager-api/modules/whatsnew.tsx
3287
3290
  var Ar = {};
3288
3291
  L(Ar, {
3289
- init: () => ha
3292
+ init: () => ga
3290
3293
  });
3291
3294
  import Pr from "react";
3292
3295
  import {
3293
- REQUEST_WHATS_NEW_DATA as la,
3294
- RESULT_WHATS_NEW_DATA as pa,
3295
- SET_WHATS_NEW_CACHE as da,
3296
- TOGGLE_WHATS_NEW_NOTIFICATIONS as fa
3296
+ REQUEST_WHATS_NEW_DATA as pa,
3297
+ RESULT_WHATS_NEW_DATA as da,
3298
+ SET_WHATS_NEW_CACHE as fa,
3299
+ TOGGLE_WHATS_NEW_NOTIFICATIONS as ya
3297
3300
  } from "storybook/internal/core-events";
3298
- import { global as ya } from "@storybook/global";
3299
- var Do = "whats-new", ma = /* @__PURE__ */ n(({ color: e = "currentColor", size: t = 14 }) => /* @__PURE__ */ Pr.createElement(
3301
+ import { global as ma } from "@storybook/global";
3302
+ var Do = "whats-new", ha = /* @__PURE__ */ n(({ color: e = "currentColor", size: t = 14 }) => /* @__PURE__ */ Pr.createElement(
3300
3303
  "svg",
3301
3304
  {
3302
3305
  width: t,
@@ -3318,7 +3321,7 @@ var Do = "whats-new", ma = /* @__PURE__ */ n(({ color: e = "currentColor", size:
3318
3321
  fill: e
3319
3322
  }
3320
3323
  )
3321
- ), "StorybookIcon"), ha = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider: r }) => {
3324
+ ), "StorybookIcon"), ga = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider: r }) => {
3322
3325
  let o = {
3323
3326
  whatsNewData: void 0
3324
3327
  };
@@ -3338,25 +3341,25 @@ var Do = "whats-new", ma = /* @__PURE__ */ n(({ color: e = "currentColor", size:
3338
3341
  o.whatsNewData?.status === "SUCCESS" && (s({
3339
3342
  ...o.whatsNewData,
3340
3343
  disableWhatsNewNotifications: !o.whatsNewData.disableWhatsNewNotifications
3341
- }), r.channel?.emit(fa, {
3344
+ }), r.channel?.emit(ya, {
3342
3345
  disableWhatsNewNotifications: o.whatsNewData.disableWhatsNewNotifications
3343
3346
  }));
3344
3347
  }
3345
3348
  };
3346
3349
  function a() {
3347
- return r.channel?.emit(la), new Promise(
3350
+ return r.channel?.emit(pa), new Promise(
3348
3351
  (l) => r.channel?.once(
3349
- pa,
3352
+ da,
3350
3353
  ({ data: p }) => l(p)
3351
3354
  )
3352
3355
  );
3353
3356
  }
3354
3357
  n(a, "getLatestWhatsNewPost");
3355
3358
  function c(l) {
3356
- r.channel?.emit(da, l);
3359
+ r.channel?.emit(fa, l);
3357
3360
  }
3358
3361
  return n(c, "setWhatsNewCache"), { init: /* @__PURE__ */ n(async () => {
3359
- if (ya.CONFIG_TYPE !== "DEVELOPMENT")
3362
+ if (ma.CONFIG_TYPE !== "DEVELOPMENT")
3360
3363
  return;
3361
3364
  let l = await a();
3362
3365
  s(l);
@@ -3369,7 +3372,7 @@ var Do = "whats-new", ma = /* @__PURE__ */ n(({ color: e = "currentColor", size:
3369
3372
  headline: l.title,
3370
3373
  subHeadline: "Learn what's new in Storybook"
3371
3374
  },
3372
- icon: /* @__PURE__ */ Pr.createElement(ma, null),
3375
+ icon: /* @__PURE__ */ Pr.createElement(ha, null),
3373
3376
  onClear({ dismissed: f }) {
3374
3377
  f && c({ lastDismissedPost: l.url });
3375
3378
  }
@@ -3381,22 +3384,22 @@ var Do = "whats-new", ma = /* @__PURE__ */ n(({ color: e = "currentColor", size:
3381
3384
  var ye = Ot(Mo(), 1);
3382
3385
 
3383
3386
  // ../node_modules/telejson/dist/chunk-EAFQLD22.mjs
3384
- var ga = Object.create, Uo = Object.defineProperty, Sa = Object.getOwnPropertyDescriptor, Lo = Object.getOwnPropertyNames, ba = Object.getPrototypeOf,
3385
- Pa = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE__ */ n(function() {
3387
+ var Sa = Object.create, Uo = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, Lo = Object.getOwnPropertyNames, Pa = Object.getPrototypeOf,
3388
+ Aa = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE__ */ n(function() {
3386
3389
  return t || (0, e[Lo(e)[0]])((t = { exports: {} }).exports, t), t.exports;
3387
- }, "__require"), "__commonJS"), Aa = /* @__PURE__ */ n((e, t, r, o) => {
3390
+ }, "__require"), "__commonJS"), Ea = /* @__PURE__ */ n((e, t, r, o) => {
3388
3391
  if (t && typeof t == "object" || typeof t == "function")
3389
3392
  for (let s of Lo(t))
3390
- !Pa.call(e, s) && s !== r && Uo(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(o = Sa(t, s)) || o.enumerable });
3393
+ !Aa.call(e, s) && s !== r && Uo(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(o = ba(t, s)) || o.enumerable });
3391
3394
  return e;
3392
- }, "__copyProps"), Pt = /* @__PURE__ */ n((e, t, r) => (r = e != null ? ga(ba(e)) : {}, Aa(
3395
+ }, "__copyProps"), At = /* @__PURE__ */ n((e, t, r) => (r = e != null ? Sa(Pa(e)) : {}, Ea(
3393
3396
  // If the importer is in node compatibility mode or this is not an ESM
3394
3397
  // file that has been converted to a CommonJS file using a Babel-
3395
3398
  // compatible transform (i.e. "__esModule" has not been set), then set
3396
3399
  // "default" to the CommonJS "module.exports" for node compatibility.
3397
3400
  t || !e || !e.__esModule ? Uo(r, "default", { value: e, enumerable: !0 }) : r,
3398
3401
  e
3399
- )), "__toESM"), Ea = [
3402
+ )), "__toESM"), va = [
3400
3403
  "bubbles",
3401
3404
  "cancelBubble",
3402
3405
  "cancelable",
@@ -3410,11 +3413,11 @@ Pa = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE
3410
3413
  "target",
3411
3414
  "timeStamp",
3412
3415
  "type"
3413
- ], va = ["detail"];
3416
+ ], _a = ["detail"];
3414
3417
  function Fo(e) {
3415
- let t = Ea.filter((r) => e[r] !== void 0).reduce((r, o) => (r[o] = e[o], r), {});
3418
+ let t = va.filter((r) => e[r] !== void 0).reduce((r, o) => (r[o] = e[o], r), {});
3416
3419
  if (e instanceof CustomEvent)
3417
- for (let r of va.filter(
3420
+ for (let r of _a.filter(
3418
3421
  (o) => e[o] !== void 0
3419
3422
  ))
3420
3423
  t[r] = e[r];
@@ -3428,27 +3431,27 @@ var Ko = A({
3428
3431
  "use strict";
3429
3432
  t.exports = Object;
3430
3433
  }
3431
- }), _a = A({
3434
+ }), Ia = A({
3432
3435
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e, t) {
3433
3436
  "use strict";
3434
3437
  t.exports = Error;
3435
3438
  }
3436
- }), Ia = A({
3439
+ }), xa = A({
3437
3440
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e, t) {
3438
3441
  "use strict";
3439
3442
  t.exports = EvalError;
3440
3443
  }
3441
- }), xa = A({
3444
+ }), Ta = A({
3442
3445
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e, t) {
3443
3446
  "use strict";
3444
3447
  t.exports = RangeError;
3445
3448
  }
3446
- }), Ta = A({
3449
+ }), Ra = A({
3447
3450
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e, t) {
3448
3451
  "use strict";
3449
3452
  t.exports = ReferenceError;
3450
3453
  }
3451
- }), Ra = A({
3454
+ }), wa = A({
3452
3455
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e, t) {
3453
3456
  "use strict";
3454
3457
  t.exports = SyntaxError;
@@ -3458,57 +3461,57 @@ var Ko = A({
3458
3461
  "use strict";
3459
3462
  t.exports = TypeError;
3460
3463
  }
3461
- }), wa = A({
3464
+ }), Oa = A({
3462
3465
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e, t) {
3463
3466
  "use strict";
3464
3467
  t.exports = URIError;
3465
3468
  }
3466
- }), Oa = A({
3469
+ }), Ca = A({
3467
3470
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e, t) {
3468
3471
  "use strict";
3469
3472
  t.exports = Math.abs;
3470
3473
  }
3471
- }), Ca = A({
3474
+ }), Na = A({
3472
3475
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e, t) {
3473
3476
  "use strict";
3474
3477
  t.exports = Math.floor;
3475
3478
  }
3476
- }), Na = A({
3479
+ }), ka = A({
3477
3480
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e, t) {
3478
3481
  "use strict";
3479
3482
  t.exports = Math.max;
3480
3483
  }
3481
- }), ka = A({
3484
+ }), ja = A({
3482
3485
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e, t) {
3483
3486
  "use strict";
3484
3487
  t.exports = Math.min;
3485
3488
  }
3486
- }), ja = A({
3489
+ }), Da = A({
3487
3490
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e, t) {
3488
3491
  "use strict";
3489
3492
  t.exports = Math.pow;
3490
3493
  }
3491
- }), Da = A({
3494
+ }), Ma = A({
3492
3495
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e, t) {
3493
3496
  "use strict";
3494
3497
  t.exports = Math.round;
3495
3498
  }
3496
- }), Ma = A({
3499
+ }), Ua = A({
3497
3500
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e, t) {
3498
3501
  "use strict";
3499
3502
  t.exports = Number.isNaN || /* @__PURE__ */ n(function(o) {
3500
3503
  return o !== o;
3501
3504
  }, "isNaN2");
3502
3505
  }
3503
- }), Ua = A({
3506
+ }), La = A({
3504
3507
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e, t) {
3505
3508
  "use strict";
3506
- var r = Ma();
3509
+ var r = Ua();
3507
3510
  t.exports = /* @__PURE__ */ n(function(s) {
3508
3511
  return r(s) || s === 0 ? s : s < 0 ? -1 : 1;
3509
3512
  }, "sign");
3510
3513
  }
3511
- }), La = A({
3514
+ }), Fa = A({
3512
3515
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e, t) {
3513
3516
  "use strict";
3514
3517
  t.exports = Object.getOwnPropertyDescriptor;
@@ -3516,7 +3519,7 @@ var Ko = A({
3516
3519
  }), _r = A({
3517
3520
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) {
3518
3521
  "use strict";
3519
- var r = La();
3522
+ var r = Fa();
3520
3523
  if (r)
3521
3524
  try {
3522
3525
  r([], "length");
@@ -3525,7 +3528,7 @@ var Ko = A({
3525
3528
  }
3526
3529
  t.exports = r;
3527
3530
  }
3528
- }), Fa = A({
3531
+ }), Ga = A({
3529
3532
  "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e, t) {
3530
3533
  "use strict";
3531
3534
  var r = Object.defineProperty || !1;
@@ -3590,7 +3593,7 @@ Symbol]")
3590
3593
  var r = Ko();
3591
3594
  t.exports = r.getPrototypeOf || null;
3592
3595
  }
3593
- }), Ga = A({
3596
+ }), Wa = A({
3594
3597
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e, t) {
3595
3598
  "use strict";
3596
3599
  var r = "Function.prototype.bind called on incompatible ", o = Object.prototype.toString, s = Math.max, i = "[object Function]", a = /* @__PURE__ */ n(
@@ -3635,10 +3638,10 @@ Symbol]")
3635
3638
  return y;
3636
3639
  }, "bind");
3637
3640
  }
3638
- }), At = A({
3641
+ }), Et = A({
3639
3642
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e, t) {
3640
3643
  "use strict";
3641
- var r = Ga();
3644
+ var r = Wa();
3642
3645
  t.exports = Function.prototype.bind || r;
3643
3646
  }
3644
3647
  }), Ir = A({
@@ -3651,28 +3654,28 @@ Symbol]")
3651
3654
  "use strict";
3652
3655
  t.exports = Function.prototype.apply;
3653
3656
  }
3654
- }), Wa = A({
3657
+ }), $a = A({
3655
3658
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e, t) {
3656
3659
  "use strict";
3657
3660
  t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
3658
3661
  }
3659
- }), $a = A({
3662
+ }), Ba = A({
3660
3663
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e, t) {
3661
3664
  "use strict";
3662
- var r = At(), o = Jo(), s = Ir(), i = Wa();
3665
+ var r = Et(), o = Jo(), s = Ir(), i = $a();
3663
3666
  t.exports = i || r.call(s, o);
3664
3667
  }
3665
3668
  }), Xo = A({
3666
3669
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e, t) {
3667
3670
  "use strict";
3668
- var r = At(), o = vr(), s = Ir(), i = $a();
3671
+ var r = Et(), o = vr(), s = Ir(), i = Ba();
3669
3672
  t.exports = /* @__PURE__ */ n(function(c) {
3670
3673
  if (c.length < 1 || typeof c[0] != "function")
3671
3674
  throw new o("a function is required");
3672
3675
  return i(r, s, c);
3673
3676
  }, "callBindBasic");
3674
3677
  }
3675
- }), Ba = A({
3678
+ }), Va = A({
3676
3679
  "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e, t) {
3677
3680
  "use strict";
3678
3681
  var r = Xo(), o = _r(), s;
@@ -3695,10 +3698,10 @@ Symbol]")
3695
3698
  }, "getDunder")
3696
3699
  ) : !1;
3697
3700
  }
3698
- }), Va = A({
3701
+ }), Ka = A({
3699
3702
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) {
3700
3703
  "use strict";
3701
- var r = qo(), o = Yo(), s = Ba();
3704
+ var r = qo(), o = Yo(), s = Va();
3702
3705
  t.exports = r ? /* @__PURE__ */ n(function(a) {
3703
3706
  return r(a);
3704
3707
  }, "getProto") : o ? /* @__PURE__ */ n(function(a) {
@@ -3712,19 +3715,19 @@ Symbol]")
3712
3715
  }), Qo = A({
3713
3716
  "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) {
3714
3717
  "use strict";
3715
- var r = Function.prototype.call, o = Object.prototype.hasOwnProperty, s = At();
3718
+ var r = Function.prototype.call, o = Object.prototype.hasOwnProperty, s = Et();
3716
3719
  t.exports = s.call(r, o);
3717
3720
  }
3718
- }), Ka = A({
3721
+ }), za = A({
3719
3722
  "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e, t) {
3720
3723
  "use strict";
3721
- var r, o = Ko(), s = _a(), i = Ia(), a = xa(), c = Ta(), u = Ra(), l = vr(), p = wa(), d = Oa(), f = Ca(), y = Na(), m = ka(), h = ja(),
3722
- g = Da(), S = Ua(), P = Function, E = /* @__PURE__ */ n(function(B) {
3724
+ var r, o = Ko(), s = Ia(), i = xa(), a = Ta(), c = Ra(), u = wa(), l = vr(), p = Oa(), d = Ca(), f = Na(), y = ka(), m = ja(), h = Da(),
3725
+ g = Ma(), S = La(), P = Function, E = /* @__PURE__ */ n(function(B) {
3723
3726
  try {
3724
3727
  return P('"use strict"; return (' + B + ").constructor;")();
3725
3728
  } catch {
3726
3729
  }
3727
- }, "getEvalledConstructor"), v = _r(), I = Fa(), _ = /* @__PURE__ */ n(function() {
3730
+ }, "getEvalledConstructor"), v = _r(), I = Ga(), _ = /* @__PURE__ */ n(function() {
3728
3731
  throw new l();
3729
3732
  }, "throwTypeError"), w = v ? function() {
3730
3733
  try {
@@ -3736,7 +3739,7 @@ Symbol]")
3736
3739
  return _;
3737
3740
  }
3738
3741
  }
3739
- }() : _, C = Ho()(), x = Va(), he = Yo(), Pn = qo(), Lr = Jo(), ge = Ir(), re = {}, An = typeof Uint8Array > "u" || !x ? r : x(Uint8Array),
3742
+ }() : _, C = Ho()(), x = Ka(), he = Yo(), An = qo(), Lr = Jo(), ge = Ir(), re = {}, En = typeof Uint8Array > "u" || !x ? r : x(Uint8Array),
3740
3743
  X = {
3741
3744
  __proto__: null,
3742
3745
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
@@ -3798,7 +3801,7 @@ Symbol]")
3798
3801
  "%Symbol%": C ? Symbol : r,
3799
3802
  "%SyntaxError%": u,
3800
3803
  "%ThrowTypeError%": w,
3801
- "%TypedArray%": An,
3804
+ "%TypedArray%": En,
3802
3805
  "%TypeError%": l,
3803
3806
  "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
3804
3807
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
@@ -3819,7 +3822,7 @@ Symbol]")
3819
3822
  "%Math.pow%": h,
3820
3823
  "%Math.round%": g,
3821
3824
  "%Math.sign%": S,
3822
- "%Reflect.getPrototypeOf%": Pn
3825
+ "%Reflect.getPrototypeOf%": An
3823
3826
  };
3824
3827
  if (x)
3825
3828
  try {
@@ -3827,7 +3830,7 @@ Symbol]")
3827
3830
  } catch (B) {
3828
3831
  Fr = x(x(B)), X["%Error.prototype%"] = Fr;
3829
3832
  }
3830
- var Fr, En = /* @__PURE__ */ n(function B(T) {
3833
+ var Fr, vn = /* @__PURE__ */ n(function B(T) {
3831
3834
  var O;
3832
3835
  if (T === "%AsyncFunction%")
3833
3836
  O = E("async function () {}");
@@ -3896,23 +3899,23 @@ Symbol]")
3896
3899
  "%URIErrorPrototype%": ["URIError", "prototype"],
3897
3900
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3898
3901
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3899
- }, Se = At(), je = Qo(), vn = Se.call(ge, Array.prototype.concat), _n = Se.call(Lr, Array.prototype.splice), Wr = Se.call(ge, String.prototype.
3900
- replace), De = Se.call(ge, String.prototype.slice), In = Se.call(ge, RegExp.prototype.exec), xn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3901
- Tn = /\\(\\)?/g, Rn = /* @__PURE__ */ n(function(T) {
3902
- var O = De(T, 0, 1), R = De(T, -1);
3902
+ }, Se = Et(), De = Qo(), _n = Se.call(ge, Array.prototype.concat), In = Se.call(Lr, Array.prototype.splice), Wr = Se.call(ge, String.prototype.
3903
+ replace), Me = Se.call(ge, String.prototype.slice), xn = Se.call(ge, RegExp.prototype.exec), Tn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3904
+ Rn = /\\(\\)?/g, wn = /* @__PURE__ */ n(function(T) {
3905
+ var O = Me(T, 0, 1), R = Me(T, -1);
3903
3906
  if (O === "%" && R !== "%")
3904
3907
  throw new u("invalid intrinsic syntax, expected closing `%`");
3905
3908
  if (R === "%" && O !== "%")
3906
3909
  throw new u("invalid intrinsic syntax, expected opening `%`");
3907
3910
  var N = [];
3908
- return Wr(T, xn, function(V, oe, D, Me) {
3909
- N[N.length] = D ? Wr(Me, Tn, "$1") : oe || V;
3911
+ return Wr(T, Tn, function(V, oe, D, Ue) {
3912
+ N[N.length] = D ? Wr(Ue, Rn, "$1") : oe || V;
3910
3913
  }), N;
3911
- }, "stringToPath3"), wn = /* @__PURE__ */ n(function(T, O) {
3914
+ }, "stringToPath3"), On = /* @__PURE__ */ n(function(T, O) {
3912
3915
  var R = T, N;
3913
- if (je(Gr, R) && (N = Gr[R], R = "%" + N[0] + "%"), je(X, R)) {
3916
+ if (De(Gr, R) && (N = Gr[R], R = "%" + N[0] + "%"), De(X, R)) {
3914
3917
  var V = X[R];
3915
- if (V === re && (V = En(R)), typeof V > "u" && !O)
3918
+ if (V === re && (V = vn(R)), typeof V > "u" && !O)
3916
3919
  throw new l("intrinsic " + T + " exists, but is not available. Please file an issue!");
3917
3920
  return {
3918
3921
  alias: N,
@@ -3927,15 +3930,15 @@ Symbol]")
3927
3930
  throw new l("intrinsic name must be a non-empty string");
3928
3931
  if (arguments.length > 1 && typeof O != "boolean")
3929
3932
  throw new l('"allowMissing" argument must be a boolean');
3930
- if (In(/^%?[^%]*%?$/, T) === null)
3933
+ if (xn(/^%?[^%]*%?$/, T) === null)
3931
3934
  throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3932
- var R = Rn(T), N = R.length > 0 ? R[0] : "", V = wn("%" + N + "%", O), oe = V.name, D = V.value, Me = !1, wt = V.alias;
3933
- wt && (N = wt[0], _n(R, vn([0, 1], wt)));
3934
- for (var Ue = 1, be = !0; Ue < R.length; Ue += 1) {
3935
- var H = R[Ue], Le = De(H, 0, 1), Fe = De(H, -1);
3936
- if ((Le === '"' || Le === "'" || Le === "`" || Fe === '"' || Fe === "'" || Fe === "`") && Le !== Fe)
3935
+ var R = wn(T), N = R.length > 0 ? R[0] : "", V = On("%" + N + "%", O), oe = V.name, D = V.value, Ue = !1, wt = V.alias;
3936
+ wt && (N = wt[0], In(R, _n([0, 1], wt)));
3937
+ for (var Le = 1, be = !0; Le < R.length; Le += 1) {
3938
+ var H = R[Le], Fe = Me(H, 0, 1), Ge = Me(H, -1);
3939
+ if ((Fe === '"' || Fe === "'" || Fe === "`" || Ge === '"' || Ge === "'" || Ge === "`") && Fe !== Ge)
3937
3940
  throw new u("property names with quotes must have matching quotes");
3938
- if ((H === "constructor" || !be) && (Me = !0), N += "." + H, oe = "%" + N + "%", je(X, oe))
3941
+ if ((H === "constructor" || !be) && (Ue = !0), N += "." + H, oe = "%" + N + "%", De(X, oe))
3939
3942
  D = X[oe];
3940
3943
  else if (D != null) {
3941
3944
  if (!(H in D)) {
@@ -3943,12 +3946,12 @@ Symbol]")
3943
3946
  throw new l("base intrinsic for " + T + " exists, but the property is not available.");
3944
3947
  return;
3945
3948
  }
3946
- if (v && Ue + 1 >= R.length) {
3947
- var Ge = v(D, H);
3948
- be = !!Ge, be && "get" in Ge && !("originalValue" in Ge.get) ? D = Ge.get : D = D[H];
3949
+ if (v && Le + 1 >= R.length) {
3950
+ var We = v(D, H);
3951
+ be = !!We, be && "get" in We && !("originalValue" in We.get) ? D = We.get : D = D[H];
3949
3952
  } else
3950
- be = je(D, H), D = D[H];
3951
- be && !Me && (X[oe] = D);
3953
+ be = De(D, H), D = D[H];
3954
+ be && !Ue && (X[oe] = D);
3952
3955
  }
3953
3956
  }
3954
3957
  return D;
@@ -3957,7 +3960,7 @@ Symbol]")
3957
3960
  }), xr = A({
3958
3961
  "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e, t) {
3959
3962
  "use strict";
3960
- var r = Ka(), o = Xo(), s = o([r("%String.prototype.indexOf%")]);
3963
+ var r = za(), o = Xo(), s = o([r("%String.prototype.indexOf%")]);
3961
3964
  t.exports = /* @__PURE__ */ n(function(a, c) {
3962
3965
  var u = (
3963
3966
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
@@ -3969,7 +3972,7 @@ Symbol]")
3969
3972
  ) : u;
3970
3973
  }, "callBoundIntrinsic");
3971
3974
  }
3972
- }), za = A({
3975
+ }), Ha = A({
3973
3976
  "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e, t) {
3974
3977
  "use strict";
3975
3978
  var r = zo();
@@ -3980,7 +3983,7 @@ Symbol]")
3980
3983
  }), Zo = A({
3981
3984
  "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) {
3982
3985
  "use strict";
3983
- var r = xr(), o = za()(), s = Qo(), i = _r(), a;
3986
+ var r = xr(), o = Ha()(), s = Qo(), i = _r(), a;
3984
3987
  o ? (c = r("RegExp.prototype.exec"), u = {}, l = /* @__PURE__ */ n(function() {
3985
3988
  throw u;
3986
3989
  }, "throwRegexMarker"), p = {
@@ -4015,7 +4018,7 @@ Symbol]")
4015
4018
  var c, u, l, p, d, f;
4016
4019
  t.exports = a;
4017
4020
  }
4018
- }), Ha = A({
4021
+ }), qa = A({
4019
4022
  "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e, t) {
4020
4023
  t.exports = o;
4021
4024
  var r = Object.prototype.toString;
@@ -4028,7 +4031,7 @@ Symbol]")
4028
4031
  }
4029
4032
  n(o, "isFunction3");
4030
4033
  }
4031
- }), qa = A({
4034
+ }), Ya = A({
4032
4035
  "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e, t) {
4033
4036
  "use strict";
4034
4037
  var r = xr(), o = Zo(), s = r("RegExp.prototype.exec"), i = vr();
@@ -4040,10 +4043,10 @@ Symbol]")
4040
4043
  }, "test");
4041
4044
  }, "regexTester");
4042
4045
  }
4043
- }), Ya = A({
4046
+ }), Ja = A({
4044
4047
  "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) {
4045
4048
  "use strict";
4046
- var r = xr(), o = r("Object.prototype.toString"), s = Ho()(), i = qa();
4049
+ var r = xr(), o = r("Object.prototype.toString"), s = Ho()(), i = Ya();
4047
4050
  s ? (a = r("Symbol.prototype.toString"), c = i(/^Symbol\(.*\)$/), u = /* @__PURE__ */ n(function(p) {
4048
4051
  return typeof p.valueOf() != "symbol" ? !1 : c(a(p));
4049
4052
  }, "isRealSymbolObject"), t.exports = /* @__PURE__ */ n(function(p) {
@@ -4061,91 +4064,91 @@ Symbol]")
4061
4064
  }, "isSymbol3");
4062
4065
  var a, c, u;
4063
4066
  }
4064
- }), Ja = Pt(Zo()), Xa = Pt(Ha()), Qa = Pt(Ya());
4065
- function Za(e) {
4067
+ }), Xa = At(Zo()), Qa = At(qa()), Za = At(Ja());
4068
+ function ei(e) {
4066
4069
  return e != null && typeof e == "object" && Array.isArray(e) === !1;
4067
4070
  }
4068
- n(Za, "isObject");
4069
- var ei = typeof global == "object" && global && global.Object === Object && global, ti = ei, ri = typeof self == "object" && self && self.Object ===
4070
- Object && self, oi = ti || ri || Function("return this")(), Tr = oi, ni = Tr.Symbol, le = ni, en = Object.prototype, si = en.hasOwnProperty,
4071
- ai = en.toString, Oe = le ? le.toStringTag : void 0;
4072
- function ii(e) {
4073
- var t = si.call(e, Oe), r = e[Oe];
4071
+ n(ei, "isObject");
4072
+ var ti = typeof global == "object" && global && global.Object === Object && global, ri = ti, oi = typeof self == "object" && self && self.Object ===
4073
+ Object && self, ni = ri || oi || Function("return this")(), Tr = ni, si = Tr.Symbol, le = si, en = Object.prototype, ai = en.hasOwnProperty,
4074
+ ii = en.toString, Oe = le ? le.toStringTag : void 0;
4075
+ function ci(e) {
4076
+ var t = ai.call(e, Oe), r = e[Oe];
4074
4077
  try {
4075
4078
  e[Oe] = void 0;
4076
4079
  var o = !0;
4077
4080
  } catch {
4078
4081
  }
4079
- var s = ai.call(e);
4082
+ var s = ii.call(e);
4080
4083
  return o && (t ? e[Oe] = r : delete e[Oe]), s;
4081
4084
  }
4082
- n(ii, "getRawTag");
4083
- var ci = ii, ui = Object.prototype, li = ui.toString;
4084
- function pi(e) {
4085
- return li.call(e);
4085
+ n(ci, "getRawTag");
4086
+ var ui = ci, li = Object.prototype, pi = li.toString;
4087
+ function di(e) {
4088
+ return pi.call(e);
4086
4089
  }
4087
- n(pi, "objectToString");
4088
- var di = pi, fi = "[object Null]", yi = "[object Undefined]", Go = le ? le.toStringTag : void 0;
4089
- function mi(e) {
4090
- return e == null ? e === void 0 ? yi : fi : Go && Go in Object(e) ? ci(e) : di(e);
4091
- }
4092
- n(mi, "baseGetTag");
4093
- var tn = mi;
4090
+ n(di, "objectToString");
4091
+ var fi = di, yi = "[object Null]", mi = "[object Undefined]", Go = le ? le.toStringTag : void 0;
4094
4092
  function hi(e) {
4093
+ return e == null ? e === void 0 ? mi : yi : Go && Go in Object(e) ? ui(e) : fi(e);
4094
+ }
4095
+ n(hi, "baseGetTag");
4096
+ var tn = hi;
4097
+ function gi(e) {
4095
4098
  return e != null && typeof e == "object";
4096
4099
  }
4097
- n(hi, "isObjectLike");
4098
- var gi = hi, Si = "[object Symbol]";
4099
- function bi(e) {
4100
- return typeof e == "symbol" || gi(e) && tn(e) == Si;
4100
+ n(gi, "isObjectLike");
4101
+ var Si = gi, bi = "[object Symbol]";
4102
+ function Pi(e) {
4103
+ return typeof e == "symbol" || Si(e) && tn(e) == bi;
4101
4104
  }
4102
- n(bi, "isSymbol");
4103
- var Rr = bi;
4104
- function Pi(e, t) {
4105
+ n(Pi, "isSymbol");
4106
+ var Rr = Pi;
4107
+ function Ai(e, t) {
4105
4108
  for (var r = -1, o = e == null ? 0 : e.length, s = Array(o); ++r < o; )
4106
4109
  s[r] = t(e[r], r, e);
4107
4110
  return s;
4108
4111
  }
4109
- n(Pi, "arrayMap");
4110
- var Ai = Pi, Ei = Array.isArray, wr = Ei, vi = 1 / 0, Wo = le ? le.prototype : void 0, $o = Wo ? Wo.toString : void 0;
4112
+ n(Ai, "arrayMap");
4113
+ var Ei = Ai, vi = Array.isArray, wr = vi, _i = 1 / 0, Wo = le ? le.prototype : void 0, $o = Wo ? Wo.toString : void 0;
4111
4114
  function rn(e) {
4112
4115
  if (typeof e == "string")
4113
4116
  return e;
4114
4117
  if (wr(e))
4115
- return Ai(e, rn) + "";
4118
+ return Ei(e, rn) + "";
4116
4119
  if (Rr(e))
4117
4120
  return $o ? $o.call(e) : "";
4118
4121
  var t = e + "";
4119
- return t == "0" && 1 / e == -vi ? "-0" : t;
4122
+ return t == "0" && 1 / e == -_i ? "-0" : t;
4120
4123
  }
4121
4124
  n(rn, "baseToString");
4122
- var _i = rn;
4123
- function Ii(e) {
4125
+ var Ii = rn;
4126
+ function xi(e) {
4124
4127
  var t = typeof e;
4125
4128
  return e != null && (t == "object" || t == "function");
4126
4129
  }
4127
- n(Ii, "isObject2");
4128
- var on = Ii, xi = "[object AsyncFunction]", Ti = "[object Function]", Ri = "[object GeneratorFunction]", wi = "[object Proxy]";
4129
- function Oi(e) {
4130
+ n(xi, "isObject2");
4131
+ var on = xi, Ti = "[object AsyncFunction]", Ri = "[object Function]", wi = "[object GeneratorFunction]", Oi = "[object Proxy]";
4132
+ function Ci(e) {
4130
4133
  if (!on(e))
4131
4134
  return !1;
4132
4135
  var t = tn(e);
4133
- return t == Ti || t == Ri || t == xi || t == wi;
4136
+ return t == Ri || t == wi || t == Ti || t == Oi;
4134
4137
  }
4135
- n(Oi, "isFunction");
4136
- var Ci = Oi, Ni = Tr["__core-js_shared__"], Er = Ni, Bo = function() {
4138
+ n(Ci, "isFunction");
4139
+ var Ni = Ci, ki = Tr["__core-js_shared__"], Er = ki, Bo = function() {
4137
4140
  var e = /[^.]+$/.exec(Er && Er.keys && Er.keys.IE_PROTO || "");
4138
4141
  return e ? "Symbol(src)_1." + e : "";
4139
4142
  }();
4140
- function ki(e) {
4143
+ function ji(e) {
4141
4144
  return !!Bo && Bo in e;
4142
4145
  }
4143
- n(ki, "isMasked");
4144
- var ji = ki, Di = Function.prototype, Mi = Di.toString;
4145
- function Ui(e) {
4146
+ n(ji, "isMasked");
4147
+ var Di = ji, Mi = Function.prototype, Ui = Mi.toString;
4148
+ function Li(e) {
4146
4149
  if (e != null) {
4147
4150
  try {
4148
- return Mi.call(e);
4151
+ return Ui.call(e);
4149
4152
  } catch {
4150
4153
  }
4151
4154
  try {
@@ -4155,77 +4158,77 @@ function Ui(e) {
4155
4158
  }
4156
4159
  return "";
4157
4160
  }
4158
- n(Ui, "toSource");
4159
- var Li = Ui, Fi = /[\\^$.*+?()[\]{}|]/g, Gi = /^\[object .+?Constructor\]$/, Wi = Function.prototype, $i = Object.prototype, Bi = Wi.toString,
4160
- Vi = $i.hasOwnProperty, Ki = RegExp(
4161
- "^" + Bi.call(Vi).replace(Fi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4161
+ n(Li, "toSource");
4162
+ var Fi = Li, Gi = /[\\^$.*+?()[\]{}|]/g, Wi = /^\[object .+?Constructor\]$/, $i = Function.prototype, Bi = Object.prototype, Vi = $i.toString,
4163
+ Ki = Bi.hasOwnProperty, zi = RegExp(
4164
+ "^" + Vi.call(Ki).replace(Gi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4162
4165
  );
4163
- function zi(e) {
4164
- if (!on(e) || ji(e))
4166
+ function Hi(e) {
4167
+ if (!on(e) || Di(e))
4165
4168
  return !1;
4166
- var t = Ci(e) ? Ki : Gi;
4167
- return t.test(Li(e));
4169
+ var t = Ni(e) ? zi : Wi;
4170
+ return t.test(Fi(e));
4168
4171
  }
4169
- n(zi, "baseIsNative");
4170
- var Hi = zi;
4171
- function qi(e, t) {
4172
+ n(Hi, "baseIsNative");
4173
+ var qi = Hi;
4174
+ function Yi(e, t) {
4172
4175
  return e?.[t];
4173
4176
  }
4174
- n(qi, "getValue");
4175
- var Yi = qi;
4176
- function Ji(e, t) {
4177
- var r = Yi(e, t);
4178
- return Hi(r) ? r : void 0;
4179
- }
4180
- n(Ji, "getNative");
4181
- var nn = Ji;
4177
+ n(Yi, "getValue");
4178
+ var Ji = Yi;
4182
4179
  function Xi(e, t) {
4180
+ var r = Ji(e, t);
4181
+ return qi(r) ? r : void 0;
4182
+ }
4183
+ n(Xi, "getNative");
4184
+ var nn = Xi;
4185
+ function Qi(e, t) {
4183
4186
  return e === t || e !== e && t !== t;
4184
4187
  }
4185
- n(Xi, "eq");
4186
- var Qi = Xi, Zi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ec = /^\w*$/;
4187
- function tc(e, t) {
4188
+ n(Qi, "eq");
4189
+ var Zi = Qi, ec = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, tc = /^\w*$/;
4190
+ function rc(e, t) {
4188
4191
  if (wr(e))
4189
4192
  return !1;
4190
4193
  var r = typeof e;
4191
- return r == "number" || r == "symbol" || r == "boolean" || e == null || Rr(e) ? !0 : ec.test(e) || !Zi.test(e) || t != null && e in Object(
4194
+ return r == "number" || r == "symbol" || r == "boolean" || e == null || Rr(e) ? !0 : tc.test(e) || !ec.test(e) || t != null && e in Object(
4192
4195
  t);
4193
4196
  }
4194
- n(tc, "isKey");
4195
- var rc = tc, oc = nn(Object, "create"), Ce = oc;
4196
- function nc() {
4197
+ n(rc, "isKey");
4198
+ var oc = rc, nc = nn(Object, "create"), Ce = nc;
4199
+ function sc() {
4197
4200
  this.__data__ = Ce ? Ce(null) : {}, this.size = 0;
4198
4201
  }
4199
- n(nc, "hashClear");
4200
- var sc = nc;
4201
- function ac(e) {
4202
+ n(sc, "hashClear");
4203
+ var ac = sc;
4204
+ function ic(e) {
4202
4205
  var t = this.has(e) && delete this.__data__[e];
4203
4206
  return this.size -= t ? 1 : 0, t;
4204
4207
  }
4205
- n(ac, "hashDelete");
4206
- var ic = ac, cc = "__lodash_hash_undefined__", uc = Object.prototype, lc = uc.hasOwnProperty;
4207
- function pc(e) {
4208
+ n(ic, "hashDelete");
4209
+ var cc = ic, uc = "__lodash_hash_undefined__", lc = Object.prototype, pc = lc.hasOwnProperty;
4210
+ function dc(e) {
4208
4211
  var t = this.__data__;
4209
4212
  if (Ce) {
4210
4213
  var r = t[e];
4211
- return r === cc ? void 0 : r;
4214
+ return r === uc ? void 0 : r;
4212
4215
  }
4213
- return lc.call(t, e) ? t[e] : void 0;
4216
+ return pc.call(t, e) ? t[e] : void 0;
4214
4217
  }
4215
- n(pc, "hashGet");
4216
- var dc = pc, fc = Object.prototype, yc = fc.hasOwnProperty;
4217
- function mc(e) {
4218
+ n(dc, "hashGet");
4219
+ var fc = dc, yc = Object.prototype, mc = yc.hasOwnProperty;
4220
+ function hc(e) {
4218
4221
  var t = this.__data__;
4219
- return Ce ? t[e] !== void 0 : yc.call(t, e);
4222
+ return Ce ? t[e] !== void 0 : mc.call(t, e);
4220
4223
  }
4221
- n(mc, "hashHas");
4222
- var hc = mc, gc = "__lodash_hash_undefined__";
4223
- function Sc(e, t) {
4224
+ n(hc, "hashHas");
4225
+ var gc = hc, Sc = "__lodash_hash_undefined__";
4226
+ function bc(e, t) {
4224
4227
  var r = this.__data__;
4225
- return this.size += this.has(e) ? 0 : 1, r[e] = Ce && t === void 0 ? gc : t, this;
4228
+ return this.size += this.has(e) ? 0 : 1, r[e] = Ce && t === void 0 ? Sc : t, this;
4226
4229
  }
4227
- n(Sc, "hashSet");
4228
- var bc = Sc;
4230
+ n(bc, "hashSet");
4231
+ var Pc = bc;
4229
4232
  function pe(e) {
4230
4233
  var t = -1, r = e == null ? 0 : e.length;
4231
4234
  for (this.clear(); ++t < r; ) {
@@ -4234,51 +4237,51 @@ function pe(e) {
4234
4237
  }
4235
4238
  }
4236
4239
  n(pe, "Hash");
4237
- pe.prototype.clear = sc;
4238
- pe.prototype.delete = ic;
4239
- pe.prototype.get = dc;
4240
- pe.prototype.has = hc;
4241
- pe.prototype.set = bc;
4240
+ pe.prototype.clear = ac;
4241
+ pe.prototype.delete = cc;
4242
+ pe.prototype.get = fc;
4243
+ pe.prototype.has = gc;
4244
+ pe.prototype.set = Pc;
4242
4245
  var Vo = pe;
4243
- function Pc() {
4246
+ function Ac() {
4244
4247
  this.__data__ = [], this.size = 0;
4245
4248
  }
4246
- n(Pc, "listCacheClear");
4247
- var Ac = Pc;
4248
- function Ec(e, t) {
4249
+ n(Ac, "listCacheClear");
4250
+ var Ec = Ac;
4251
+ function vc(e, t) {
4249
4252
  for (var r = e.length; r--; )
4250
- if (Qi(e[r][0], t))
4253
+ if (Zi(e[r][0], t))
4251
4254
  return r;
4252
4255
  return -1;
4253
4256
  }
4254
- n(Ec, "assocIndexOf");
4255
- var Et = Ec, vc = Array.prototype, _c = vc.splice;
4256
- function Ic(e) {
4257
- var t = this.__data__, r = Et(t, e);
4257
+ n(vc, "assocIndexOf");
4258
+ var vt = vc, _c = Array.prototype, Ic = _c.splice;
4259
+ function xc(e) {
4260
+ var t = this.__data__, r = vt(t, e);
4258
4261
  if (r < 0)
4259
4262
  return !1;
4260
4263
  var o = t.length - 1;
4261
- return r == o ? t.pop() : _c.call(t, r, 1), --this.size, !0;
4264
+ return r == o ? t.pop() : Ic.call(t, r, 1), --this.size, !0;
4262
4265
  }
4263
- n(Ic, "listCacheDelete");
4264
- var xc = Ic;
4265
- function Tc(e) {
4266
- var t = this.__data__, r = Et(t, e);
4266
+ n(xc, "listCacheDelete");
4267
+ var Tc = xc;
4268
+ function Rc(e) {
4269
+ var t = this.__data__, r = vt(t, e);
4267
4270
  return r < 0 ? void 0 : t[r][1];
4268
4271
  }
4269
- n(Tc, "listCacheGet");
4270
- var Rc = Tc;
4271
- function wc(e) {
4272
- return Et(this.__data__, e) > -1;
4272
+ n(Rc, "listCacheGet");
4273
+ var wc = Rc;
4274
+ function Oc(e) {
4275
+ return vt(this.__data__, e) > -1;
4273
4276
  }
4274
- n(wc, "listCacheHas");
4275
- var Oc = wc;
4276
- function Cc(e, t) {
4277
- var r = this.__data__, o = Et(r, e);
4277
+ n(Oc, "listCacheHas");
4278
+ var Cc = Oc;
4279
+ function Nc(e, t) {
4280
+ var r = this.__data__, o = vt(r, e);
4278
4281
  return o < 0 ? (++this.size, r.push([e, t])) : r[o][1] = t, this;
4279
4282
  }
4280
- n(Cc, "listCacheSet");
4281
- var Nc = Cc;
4283
+ n(Nc, "listCacheSet");
4284
+ var kc = Nc;
4282
4285
  function de(e) {
4283
4286
  var t = -1, r = e == null ? 0 : e.length;
4284
4287
  for (this.clear(); ++t < r; ) {
@@ -4287,55 +4290,55 @@ function de(e) {
4287
4290
  }
4288
4291
  }
4289
4292
  n(de, "ListCache");
4290
- de.prototype.clear = Ac;
4291
- de.prototype.delete = xc;
4292
- de.prototype.get = Rc;
4293
- de.prototype.has = Oc;
4294
- de.prototype.set = Nc;
4295
- var kc = de, jc = nn(Tr, "Map"), Dc = jc;
4296
- function Mc() {
4293
+ de.prototype.clear = Ec;
4294
+ de.prototype.delete = Tc;
4295
+ de.prototype.get = wc;
4296
+ de.prototype.has = Cc;
4297
+ de.prototype.set = kc;
4298
+ var jc = de, Dc = nn(Tr, "Map"), Mc = Dc;
4299
+ function Uc() {
4297
4300
  this.size = 0, this.__data__ = {
4298
4301
  hash: new Vo(),
4299
- map: new (Dc || kc)(),
4302
+ map: new (Mc || jc)(),
4300
4303
  string: new Vo()
4301
4304
  };
4302
4305
  }
4303
- n(Mc, "mapCacheClear");
4304
- var Uc = Mc;
4305
- function Lc(e) {
4306
+ n(Uc, "mapCacheClear");
4307
+ var Lc = Uc;
4308
+ function Fc(e) {
4306
4309
  var t = typeof e;
4307
4310
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
4308
4311
  }
4309
- n(Lc, "isKeyable");
4310
- var Fc = Lc;
4311
- function Gc(e, t) {
4312
+ n(Fc, "isKeyable");
4313
+ var Gc = Fc;
4314
+ function Wc(e, t) {
4312
4315
  var r = e.__data__;
4313
- return Fc(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
4316
+ return Gc(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
4314
4317
  }
4315
- n(Gc, "getMapData");
4316
- var vt = Gc;
4317
- function Wc(e) {
4318
- var t = vt(this, e).delete(e);
4318
+ n(Wc, "getMapData");
4319
+ var _t = Wc;
4320
+ function $c(e) {
4321
+ var t = _t(this, e).delete(e);
4319
4322
  return this.size -= t ? 1 : 0, t;
4320
4323
  }
4321
- n(Wc, "mapCacheDelete");
4322
- var $c = Wc;
4323
- function Bc(e) {
4324
- return vt(this, e).get(e);
4324
+ n($c, "mapCacheDelete");
4325
+ var Bc = $c;
4326
+ function Vc(e) {
4327
+ return _t(this, e).get(e);
4325
4328
  }
4326
- n(Bc, "mapCacheGet");
4327
- var Vc = Bc;
4328
- function Kc(e) {
4329
- return vt(this, e).has(e);
4329
+ n(Vc, "mapCacheGet");
4330
+ var Kc = Vc;
4331
+ function zc(e) {
4332
+ return _t(this, e).has(e);
4330
4333
  }
4331
- n(Kc, "mapCacheHas");
4332
- var zc = Kc;
4333
- function Hc(e, t) {
4334
- var r = vt(this, e), o = r.size;
4334
+ n(zc, "mapCacheHas");
4335
+ var Hc = zc;
4336
+ function qc(e, t) {
4337
+ var r = _t(this, e), o = r.size;
4335
4338
  return r.set(e, t), this.size += r.size == o ? 0 : 1, this;
4336
4339
  }
4337
- n(Hc, "mapCacheSet");
4338
- var qc = Hc;
4340
+ n(qc, "mapCacheSet");
4341
+ var Yc = qc;
4339
4342
  function fe(e) {
4340
4343
  var t = -1, r = e == null ? 0 : e.length;
4341
4344
  for (this.clear(); ++t < r; ) {
@@ -4344,15 +4347,15 @@ function fe(e) {
4344
4347
  }
4345
4348
  }
4346
4349
  n(fe, "MapCache");
4347
- fe.prototype.clear = Uc;
4348
- fe.prototype.delete = $c;
4349
- fe.prototype.get = Vc;
4350
- fe.prototype.has = zc;
4351
- fe.prototype.set = qc;
4352
- var sn = fe, Yc = "Expected a function";
4350
+ fe.prototype.clear = Lc;
4351
+ fe.prototype.delete = Bc;
4352
+ fe.prototype.get = Kc;
4353
+ fe.prototype.has = Hc;
4354
+ fe.prototype.set = Yc;
4355
+ var sn = fe, Jc = "Expected a function";
4353
4356
  function Or(e, t) {
4354
4357
  if (typeof e != "function" || t != null && typeof t != "function")
4355
- throw new TypeError(Yc);
4358
+ throw new TypeError(Jc);
4356
4359
  var r = /* @__PURE__ */ n(function() {
4357
4360
  var o = arguments, s = t ? t.apply(this, o) : o[0], i = r.cache;
4358
4361
  if (i.has(s))
@@ -4364,53 +4367,53 @@ function Or(e, t) {
4364
4367
  }
4365
4368
  n(Or, "memoize");
4366
4369
  Or.Cache = sn;
4367
- var Jc = Or, Xc = 500;
4368
- function Qc(e) {
4369
- var t = Jc(e, function(o) {
4370
- return r.size === Xc && r.clear(), o;
4370
+ var Xc = Or, Qc = 500;
4371
+ function Zc(e) {
4372
+ var t = Xc(e, function(o) {
4373
+ return r.size === Qc && r.clear(), o;
4371
4374
  }), r = t.cache;
4372
4375
  return t;
4373
4376
  }
4374
- n(Qc, "memoizeCapped");
4375
- var Zc = Qc, eu = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, tu = /\\(\\)?/g, ru = Zc(
4377
+ n(Zc, "memoizeCapped");
4378
+ var eu = Zc, tu = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ru = /\\(\\)?/g, ou = eu(
4376
4379
  function(e) {
4377
4380
  var t = [];
4378
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(eu, function(r, o, s, i) {
4379
- t.push(s ? i.replace(tu, "$1") : o || r);
4381
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(tu, function(r, o, s, i) {
4382
+ t.push(s ? i.replace(ru, "$1") : o || r);
4380
4383
  }), t;
4381
- }), ou = ru;
4382
- function nu(e) {
4383
- return e == null ? "" : _i(e);
4384
+ }), nu = ou;
4385
+ function su(e) {
4386
+ return e == null ? "" : Ii(e);
4384
4387
  }
4385
- n(nu, "toString");
4386
- var su = nu;
4387
- function au(e, t) {
4388
- return wr(e) ? e : rc(e, t) ? [e] : ou(su(e));
4388
+ n(su, "toString");
4389
+ var au = su;
4390
+ function iu(e, t) {
4391
+ return wr(e) ? e : oc(e, t) ? [e] : nu(au(e));
4389
4392
  }
4390
- n(au, "castPath");
4391
- var iu = au, cu = 1 / 0;
4392
- function uu(e) {
4393
+ n(iu, "castPath");
4394
+ var cu = iu, uu = 1 / 0;
4395
+ function lu(e) {
4393
4396
  if (typeof e == "string" || Rr(e))
4394
4397
  return e;
4395
4398
  var t = e + "";
4396
- return t == "0" && 1 / e == -cu ? "-0" : t;
4399
+ return t == "0" && 1 / e == -uu ? "-0" : t;
4397
4400
  }
4398
- n(uu, "toKey");
4399
- var lu = uu;
4400
- function pu(e, t) {
4401
- t = iu(t, e);
4401
+ n(lu, "toKey");
4402
+ var pu = lu;
4403
+ function du(e, t) {
4404
+ t = cu(t, e);
4402
4405
  for (var r = 0, o = t.length; e != null && r < o; )
4403
- e = e[lu(t[r++])];
4406
+ e = e[pu(t[r++])];
4404
4407
  return r && r == o ? e : void 0;
4405
4408
  }
4406
- n(pu, "baseGet");
4407
- var du = pu;
4408
- function fu(e, t, r) {
4409
- var o = e == null ? void 0 : du(e, t);
4409
+ n(du, "baseGet");
4410
+ var fu = du;
4411
+ function yu(e, t, r) {
4412
+ var o = e == null ? void 0 : fu(e, t);
4410
4413
  return o === void 0 ? r : o;
4411
4414
  }
4412
- n(fu, "get");
4413
- var yu = fu, Cr = Za, mu = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, hu = /* @__PURE__ */ n((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4415
+ n(yu, "get");
4416
+ var mu = yu, Cr = ei, hu = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, gu = /* @__PURE__ */ n((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4414
4417
  "isJSON");
4415
4418
  function an(e) {
4416
4419
  if (!Cr(e))
@@ -4426,7 +4429,7 @@ function an(e) {
4426
4429
  }, {}), r ? t : e;
4427
4430
  }
4428
4431
  n(an, "convertUnconventionalData");
4429
- var gu = /* @__PURE__ */ n(function(t) {
4432
+ var Su = /* @__PURE__ */ n(function(t) {
4430
4433
  let r, o, s, i;
4431
4434
  return /* @__PURE__ */ n(function(c, u) {
4432
4435
  try {
@@ -4446,12 +4449,12 @@ var gu = /* @__PURE__ */ n(function(t) {
4446
4449
  if (typeof u == "bigint")
4447
4450
  return `_bigint_${u.toString()}`;
4448
4451
  if (typeof u == "string")
4449
- return mu.test(u) ? t.allowDate ? `_date_${u}` : void 0 : u;
4450
- if ((0, Ja.default)(u))
4451
- return t.allowRegExp ? `_regexp_${u.flags}|${u.source}` : void 0;
4452
+ return hu.test(u) ? t.allowDate ? `_date_${u}` : void 0 : u;
4452
4453
  if ((0, Xa.default)(u))
4454
+ return t.allowRegExp ? `_regexp_${u.flags}|${u.source}` : void 0;
4455
+ if ((0, Qa.default)(u))
4453
4456
  return;
4454
- if ((0, Qa.default)(u)) {
4457
+ if ((0, Za.default)(u)) {
4455
4458
  if (!t.allowSymbol)
4456
4459
  return;
4457
4460
  let d = Symbol.keyFor(u);
@@ -4505,12 +4508,12 @@ var gu = /* @__PURE__ */ n(function(t) {
4505
4508
  return;
4506
4509
  }
4507
4510
  }, "replace");
4508
- }, "replacer2"), Su = /* @__PURE__ */ n(function(t) {
4511
+ }, "replacer2"), bu = /* @__PURE__ */ n(function(t) {
4509
4512
  let r = [], o;
4510
4513
  return /* @__PURE__ */ n(function(i, a) {
4511
4514
  if (i === "" && (o = a, r.forEach(({ target: c, container: u, replacement: l }) => {
4512
- let p = hu(l) ? JSON.parse(l) : l.split(".");
4513
- p.length === 0 ? u[c] = o : u[c] = yu(o, p);
4515
+ let p = gu(l) ? JSON.parse(l) : l.split(".");
4516
+ p.length === 0 ? u[c] = o : u[c] = mu(o, p);
4514
4517
  })), i === "_constructor-name_")
4515
4518
  return a;
4516
4519
  if (Cr(a) && a.__isConvertedError__) {
@@ -4538,8 +4541,8 @@ var gu = /* @__PURE__ */ n(function(t) {
4538
4541
  allowSymbol: !0
4539
4542
  }, un = /* @__PURE__ */ n((e, t = {}) => {
4540
4543
  let r = { ...cn, ...t };
4541
- return JSON.stringify(an(e), gu(r), t.space);
4542
- }, "stringify"), bu = /* @__PURE__ */ n(() => {
4544
+ return JSON.stringify(an(e), Su(r), t.space);
4545
+ }, "stringify"), Pu = /* @__PURE__ */ n(() => {
4543
4546
  let e = /* @__PURE__ */ new Map();
4544
4547
  return /* @__PURE__ */ n(function t(r) {
4545
4548
  Cr(r) && Object.entries(r).forEach(([o, s]) => {
@@ -4549,8 +4552,8 @@ var gu = /* @__PURE__ */ n(function(t) {
4549
4552
  });
4550
4553
  }, "mutateUndefined");
4551
4554
  }, "mutator"), ln = /* @__PURE__ */ n((e, t = {}) => {
4552
- let r = { ...cn, ...t }, o = JSON.parse(e, Su(r));
4553
- return bu()(o), o;
4555
+ let r = { ...cn, ...t }, o = JSON.parse(e, bu(r));
4556
+ return Pu()(o), o;
4554
4557
  }, "parse");
4555
4558
 
4556
4559
  // src/manager-api/lib/store-setup.ts
@@ -4576,15 +4579,15 @@ function Nr(e) {
4576
4579
  return e.get(dn) || {};
4577
4580
  }
4578
4581
  n(Nr, "get");
4579
- function Pu(e, t) {
4582
+ function Au(e, t) {
4580
4583
  return e.set(dn, t);
4581
4584
  }
4582
- n(Pu, "set");
4583
- function Au(e, t) {
4585
+ n(Au, "set");
4586
+ function Eu(e, t) {
4584
4587
  let r = Nr(e);
4585
- return Pu(e, { ...r, ...t });
4588
+ return Au(e, { ...r, ...t });
4586
4589
  }
4587
- n(Au, "update");
4590
+ n(Eu, "update");
4588
4591
  var kr = class kr {
4589
4592
  constructor({ setState: t, getState: r }) {
4590
4593
  this.upstreamSetState = t, this.upstreamGetState = r;
@@ -4609,7 +4612,7 @@ var kr = class kr {
4609
4612
  });
4610
4613
  if (a !== "none") {
4611
4614
  let p = a === "session" ? ye.default.session : ye.default.local;
4612
- await Au(p, u);
4615
+ await Eu(p, u);
4613
4616
  }
4614
4617
  return s && s(l), l;
4615
4618
  }
@@ -4626,24 +4629,24 @@ var jr = class jr extends Error {
4626
4629
  }
4627
4630
  };
4628
4631
  n(jr, "RequestResponseError");
4629
- var _t = jr, Of = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4632
+ var It = jr, kf = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4630
4633
  let i;
4631
4634
  return new Promise((a, c) => {
4632
4635
  let u = {
4633
4636
  id: Math.random().toString(16).slice(2),
4634
4637
  payload: o
4635
4638
  }, l = /* @__PURE__ */ n((p) => {
4636
- p.id === u.id && (clearTimeout(i), e.off(r, l), p.success ? a(p.payload) : c(new _t(p.error, p.payload)));
4639
+ p.id === u.id && (clearTimeout(i), e.off(r, l), p.success ? a(p.payload) : c(new It(p.error, p.payload)));
4637
4640
  }, "responseHandler");
4638
4641
  e.emit(t, u), e.on(r, l), i = setTimeout(() => {
4639
- e.off(r, l), c(new _t("Timed out waiting for response"));
4642
+ e.off(r, l), c(new It("Timed out waiting for response"));
4640
4643
  }, s);
4641
4644
  });
4642
4645
  }, "experimental_requestResponse");
4643
4646
 
4644
4647
  // src/manager-api/root.tsx
4645
- var { ActiveTabs: Wf } = pt;
4646
- var Tt = Zr({ api: void 0, state: ut({}) }), mo = /* @__PURE__ */ n((...e) => to({}, ...e), "combineParameters"), xt = class xt extends Eu {
4648
+ var { ActiveTabs: Vf } = dt;
4649
+ var Tt = Zr({ api: void 0, state: lt({}) }), mo = /* @__PURE__ */ n((...e) => to({}, ...e), "combineParameters"), xt = class xt extends vu {
4647
4650
  constructor(r) {
4648
4651
  super(r);
4649
4652
  this.api = {};
@@ -4665,7 +4668,7 @@ var Tt = Zr({ api: void 0, state: ut({}) }), mo = /* @__PURE__ */ n((...e) => to
4665
4668
  getState: /* @__PURE__ */ n(() => this.state, "getState"),
4666
4669
  setState: /* @__PURE__ */ n((S, P) => (this.setState(S, () => P(this.state)), this.state), "setState")
4667
4670
  }), f = { location: o, path: s, viewMode: a, singleStory: c, storyId: u, refId: i }, y = { docsOptions: l };
4668
- this.state = d.getInitialState(ut({ ...f, ...y }));
4671
+ this.state = d.getInitialState(lt({ ...f, ...y }));
4669
4672
  let m = {
4670
4673
  navigate: p,
4671
4674
  store: d,
@@ -4675,7 +4678,7 @@ var Tt = Zr({ api: void 0, state: ut({}) }), mo = /* @__PURE__ */ n((...e) => to
4675
4678
  Qt,
4676
4679
  Wt,
4677
4680
  Gt,
4678
- pt,
4681
+ dt,
4679
4682
  Xt,
4680
4683
  Zt,
4681
4684
  ir,
@@ -4688,7 +4691,7 @@ var Tt = Zr({ api: void 0, state: ut({}) }), mo = /* @__PURE__ */ n((...e) => to
4688
4691
  ].map(
4689
4692
  (S) => S.init({ ...f, ...y, ...m, state: this.state, fullAPI: this.api })
4690
4693
  );
4691
- let h = ut(this.state, ...this.modules.map((S) => S.state)), g = Object.assign(this.api, { navigate: p }, ...this.modules.map((S) => S.api));
4694
+ let h = lt(this.state, ...this.modules.map((S) => S.state)), g = Object.assign(this.api, { navigate: p }, ...this.modules.map((S) => S.api));
4692
4695
  this.state = h, this.api = g;
4693
4696
  }
4694
4697
  static getDerivedStateFromProps(r, o) {
@@ -4710,33 +4713,33 @@ var Tt = Zr({ api: void 0, state: ut({}) }), mo = /* @__PURE__ */ n((...e) => to
4710
4713
  state: this.state,
4711
4714
  api: this.api
4712
4715
  };
4713
- return /* @__PURE__ */ me.createElement(xu, { effect: this.initModules }, /* @__PURE__ */ me.createElement(Tt.Provider, { value: o }, /* @__PURE__ */ me.
4714
- createElement(Ru, null, r)));
4716
+ return /* @__PURE__ */ me.createElement(Ou, { effect: this.initModules }, /* @__PURE__ */ me.createElement(Tt.Provider, { value: o }, /* @__PURE__ */ me.
4717
+ createElement(Nu, null, r)));
4715
4718
  }
4716
4719
  };
4717
4720
  n(xt, "ManagerProvider"), xt.displayName = "Manager";
4718
- var mn = xt, xu = /* @__PURE__ */ n(({ children: e, effect: t }) => (me.useEffect(t, []), e), "EffectOnMount"), Tu = /* @__PURE__ */ n((e) => e,
4721
+ var mn = xt, Ou = /* @__PURE__ */ n(({ children: e, effect: t }) => (me.useEffect(t, []), e), "EffectOnMount"), Cu = /* @__PURE__ */ n((e) => e,
4719
4722
  "defaultFilter");
4720
- function Ru({
4723
+ function Nu({
4721
4724
  // @ts-expect-error (Converted from ts-ignore)
4722
- filter: e = Tu,
4725
+ filter: e = Cu,
4723
4726
  children: t
4724
4727
  }) {
4725
4728
  let r = Mr(Tt), o = fn(t), s = fn(e);
4726
4729
  if (typeof o.current != "function")
4727
- return /* @__PURE__ */ me.createElement(vu, null, o.current);
4730
+ return /* @__PURE__ */ me.createElement(_u, null, o.current);
4728
4731
  let i = s.current(r), a = Dr(() => [...Object.entries(i).reduce((c, u) => c.concat(u), [])], [r.state]);
4729
4732
  return Dr(() => {
4730
4733
  let c = o.current;
4731
4734
  return /* @__PURE__ */ me.createElement(c, { ...i });
4732
4735
  }, a);
4733
4736
  }
4734
- n(Ru, "ManagerConsumer");
4735
- function $f() {
4737
+ n(Nu, "ManagerConsumer");
4738
+ function Kf() {
4736
4739
  let { state: e } = Mr(Tt);
4737
4740
  return e;
4738
4741
  }
4739
- n($f, "useStorybookState");
4742
+ n(Kf, "useStorybookState");
4740
4743
  function J() {
4741
4744
  let { api: e } = Mr(Tt);
4742
4745
  return e;
@@ -4746,24 +4749,33 @@ function gn(e, t) {
4746
4749
  return typeof e > "u" ? t : e;
4747
4750
  }
4748
4751
  n(gn, "orDefault");
4749
- var wu = /* @__PURE__ */ n((e, t = []) => {
4752
+ var Sn = /* @__PURE__ */ n((e, t = []) => {
4750
4753
  let r = J();
4751
4754
  return hn(() => (Object.entries(e).forEach(([o, s]) => r.on(o, s)), () => {
4752
4755
  Object.entries(e).forEach(([o, s]) => r.off(o, s));
4753
4756
  }), t), r.emit;
4754
4757
  }, "useChannel");
4755
- function Bf(e) {
4758
+ function zf(e) {
4756
4759
  return J().isPrepared(e);
4757
4760
  }
4758
- n(Bf, "useStoryPrepared");
4759
- function Vf(e, t) {
4760
- let o = J().getCurrentParameter(e);
4761
- return gn(o, t);
4761
+ n(zf, "useStoryPrepared");
4762
+ function Hf(e, t) {
4763
+ let r = J(), [o, s] = Iu(r.getCurrentParameter(e)), i = je(() => {
4764
+ let a = r.getCurrentParameter(e);
4765
+ s(a);
4766
+ }, [r, e]);
4767
+ return Sn(
4768
+ {
4769
+ [wu]: i,
4770
+ [xu]: i
4771
+ },
4772
+ [i]
4773
+ ), gn(o, t);
4762
4774
  }
4763
- n(Vf, "useParameter");
4775
+ n(Hf, "useParameter");
4764
4776
  globalThis.STORYBOOK_ADDON_STATE = {};
4765
4777
  var { STORYBOOK_ADDON_STATE: z } = globalThis;
4766
- function Ou(e, t) {
4778
+ function ku(e, t) {
4767
4779
  let r = J(), o = r.getAddonState(e) || z[e], s = gn(
4768
4780
  o,
4769
4781
  z[e] ? z[e] : t
@@ -4771,7 +4783,7 @@ function Ou(e, t) {
4771
4783
  s === t && t !== void 0 && (z[e] = t, i = !0), hn(() => {
4772
4784
  i && r.setAddonState(e, t);
4773
4785
  }, [i]);
4774
- let a = It(
4786
+ let a = je(
4775
4787
  async (p, d) => {
4776
4788
  await r.setAddonState(e, p, d);
4777
4789
  let f = r.getAddonState(e);
@@ -4783,12 +4795,12 @@ function Ou(e, t) {
4783
4795
  [`${yn}-client-${e}`]: a,
4784
4796
  [`${ke}-client-${e}`]: a
4785
4797
  }, d = {
4786
- [_u]: async () => {
4798
+ [Tu]: async () => {
4787
4799
  let f = r.getAddonState(e);
4788
4800
  f ? (z[e] = f, r.emit(`${ke}-manager-${e}`, f)) : z[e] ? (await a(z[e]), r.emit(`${ke}-manager-${e}`, z[e])) : t !== void 0 && (await a(
4789
4801
  t), z[e] = t, r.emit(`${ke}-manager-${e}`, t));
4790
4802
  },
4791
- [Iu]: () => {
4803
+ [Ru]: () => {
4792
4804
  let f = r.getAddonState(e);
4793
4805
  f !== void 0 && r.emit(`${ke}-manager-${e}`, f);
4794
4806
  }
@@ -4797,7 +4809,7 @@ function Ou(e, t) {
4797
4809
  ...p,
4798
4810
  ...d
4799
4811
  };
4800
- }, [e]), u = wu(c), l = It(
4812
+ }, [e]), u = Sn(c), l = je(
4801
4813
  async (p, d) => {
4802
4814
  await a(p, d);
4803
4815
  let f = r.getAddonState(e);
@@ -4807,51 +4819,51 @@ function Ou(e, t) {
4807
4819
  );
4808
4820
  return [s, l];
4809
4821
  }
4810
- n(Ou, "useSharedState");
4811
- function Kf(e, t) {
4812
- return Ou(e, t);
4822
+ n(ku, "useSharedState");
4823
+ function qf(e, t) {
4824
+ return ku(e, t);
4813
4825
  }
4814
- n(Kf, "useAddonState");
4815
- function zf() {
4826
+ n(qf, "useAddonState");
4827
+ function Yf() {
4816
4828
  let { getCurrentStoryData: e, updateStoryArgs: t, resetStoryArgs: r } = J(), o = e(), s = o?.type === "story" ? o.args : {}, i = o?.type ===
4817
- "story" ? o.initialArgs : {}, a = It(
4829
+ "story" ? o.initialArgs : {}, a = je(
4818
4830
  (u) => t(o, u),
4819
4831
  [o, t]
4820
- ), c = It(
4832
+ ), c = je(
4821
4833
  (u) => r(o, u),
4822
4834
  [o, r]
4823
4835
  );
4824
4836
  return [s, a, c, i];
4825
4837
  }
4826
- n(zf, "useArgs");
4827
- function Hf() {
4838
+ n(Yf, "useArgs");
4839
+ function Jf() {
4828
4840
  let e = J();
4829
4841
  return [e.getGlobals(), e.updateGlobals, e.getStoryGlobals(), e.getUserGlobals()];
4830
4842
  }
4831
- n(Hf, "useGlobals");
4832
- function qf() {
4843
+ n(Jf, "useGlobals");
4844
+ function Xf() {
4833
4845
  return J().getGlobalTypes();
4834
4846
  }
4835
- n(qf, "useGlobalTypes");
4836
- function Cu() {
4847
+ n(Xf, "useGlobalTypes");
4848
+ function ju() {
4837
4849
  let { getCurrentStoryData: e } = J();
4838
4850
  return e();
4839
4851
  }
4840
- n(Cu, "useCurrentStory");
4841
- function Yf() {
4842
- let e = Cu();
4852
+ n(ju, "useCurrentStory");
4853
+ function Qf() {
4854
+ let e = ju();
4843
4855
  return e?.type === "story" && e.argTypes || {};
4844
4856
  }
4845
- n(Yf, "useArgTypes");
4846
- var Jf = oo;
4857
+ n(Qf, "useArgTypes");
4858
+ var Zf = oo;
4847
4859
 
4848
4860
  // src/shared/universal-store/mock.ts
4849
- import { Channel as Nu } from "storybook/internal/channels";
4861
+ import { Channel as Du } from "storybook/internal/channels";
4850
4862
  var Rt = class Rt extends W {
4851
4863
  constructor(t, r) {
4852
4864
  W.isInternalConstructing = !0, super(
4853
4865
  { ...t, leader: !0 },
4854
- { channel: new Nu({}), environment: W.Environment.MOCK }
4866
+ { channel: new Du({}), environment: W.Environment.MOCK }
4855
4867
  ), W.isInternalConstructing = !1, typeof r?.fn == "function" && (this.testUtils = r, this.getState = r.fn(this.getState), this.setState =
4856
4868
  r.fn(this.setState), this.subscribe = r.fn(this.subscribe), this.onStateChange = r.fn(this.onStateChange), this.send = r.fn(this.send));
4857
4869
  }
@@ -4878,12 +4890,12 @@ n(Rt, "MockUniversalStore");
4878
4890
  var Ur = Rt;
4879
4891
 
4880
4892
  // src/shared/test-provider-store/index.ts
4881
- var Sn = {
4893
+ var bn = {
4882
4894
  id: "storybook/test-provider",
4883
4895
  leader: !0,
4884
4896
  initialState: {}
4885
4897
  };
4886
- function bn({
4898
+ function Pn({
4887
4899
  universalTestProviderStore: e,
4888
4900
  useUniversalStore: t
4889
4901
  }) {
@@ -4941,63 +4953,63 @@ function bn({
4941
4953
  universalTestProviderStore: e
4942
4954
  };
4943
4955
  }
4944
- n(bn, "createTestProviderStore");
4956
+ n(Pn, "createTestProviderStore");
4945
4957
 
4946
4958
  // src/manager-api/stores/test-provider.ts
4947
- var ku = bn({
4959
+ var Mu = Pn({
4948
4960
  universalTestProviderStore: W.create({
4949
- ...Sn,
4961
+ ...bn,
4950
4962
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
4951
4963
  }),
4952
4964
  useUniversalStore: we
4953
4965
  }), {
4954
- fullTestProviderStore: ju,
4955
- getTestProviderStoreById: Du,
4956
- useTestProviderStore: Mu,
4957
- universalTestProviderStore: Uu
4958
- } = ku;
4966
+ fullTestProviderStore: Uu,
4967
+ getTestProviderStoreById: Lu,
4968
+ useTestProviderStore: Fu,
4969
+ universalTestProviderStore: Gu
4970
+ } = Mu;
4959
4971
  export {
4960
- Wf as ActiveTabs,
4961
- Ru as Consumer,
4972
+ Vf as ActiveTabs,
4973
+ Nu as Consumer,
4962
4974
  Tt as ManagerContext,
4963
4975
  mn as Provider,
4964
- _t as RequestResponseError,
4965
- $n as addons,
4976
+ It as RequestResponseError,
4977
+ Bn as addons,
4966
4978
  mo as combineParameters,
4967
- ad as controlOrMetaKey,
4968
- sd as controlOrMetaSymbol,
4969
- cd as eventMatchesShortcut,
4979
+ ud as controlOrMetaKey,
4980
+ cd as controlOrMetaSymbol,
4981
+ pd as eventMatchesShortcut,
4970
4982
  rr as eventToShortcut,
4971
4983
  Ur as experimental_MockUniversalStore,
4972
4984
  W as experimental_UniversalStore,
4973
- Is as experimental_getStatusStore,
4974
- Du as experimental_getTestProviderStore,
4975
- Of as experimental_requestResponse,
4976
- xs as experimental_useStatusStore,
4977
- Mu as experimental_useTestProviderStore,
4985
+ xs as experimental_getStatusStore,
4986
+ Lu as experimental_getTestProviderStore,
4987
+ kf as experimental_requestResponse,
4988
+ Ts as experimental_useStatusStore,
4989
+ Fu as experimental_useTestProviderStore,
4978
4990
  we as experimental_useUniversalStore,
4979
- ht as internal_fullStatusStore,
4980
- ju as internal_fullTestProviderStore,
4981
- Ts as internal_universalStatusStore,
4982
- Uu as internal_universalTestProviderStore,
4991
+ gt as internal_fullStatusStore,
4992
+ Uu as internal_fullTestProviderStore,
4993
+ Rs as internal_universalStatusStore,
4994
+ Gu as internal_universalTestProviderStore,
4983
4995
  tr as isMacLike,
4984
- id as isShortcutTaken,
4985
- ms as keyToSymbol,
4996
+ ld as isShortcutTaken,
4997
+ hs as keyToSymbol,
4986
4998
  K as merge,
4987
4999
  jt as mockChannel,
4988
- ys as optionOrAltSymbol,
5000
+ ms as optionOrAltSymbol,
4989
5001
  or as shortcutMatchesShortcut,
4990
- ud as shortcutToHumanString,
4991
- Jf as types,
4992
- Kf as useAddonState,
4993
- Yf as useArgTypes,
4994
- zf as useArgs,
4995
- wu as useChannel,
4996
- qf as useGlobalTypes,
4997
- Hf as useGlobals,
4998
- Vf as useParameter,
4999
- Ou as useSharedState,
5000
- Bf as useStoryPrepared,
5002
+ dd as shortcutToHumanString,
5003
+ Zf as types,
5004
+ qf as useAddonState,
5005
+ Qf as useArgTypes,
5006
+ Yf as useArgs,
5007
+ Sn as useChannel,
5008
+ Xf as useGlobalTypes,
5009
+ Jf as useGlobals,
5010
+ Hf as useParameter,
5011
+ ku as useSharedState,
5012
+ zf as useStoryPrepared,
5001
5013
  J as useStorybookApi,
5002
- $f as useStorybookState
5014
+ Kf as useStorybookState
5003
5015
  };