storybook 9.0.0-alpha.3 → 9.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/bin/index.cjs +63 -64
- package/dist/bin/index.js +63 -64
- package/dist/channels/index.cjs +207 -230
- package/dist/channels/index.js +302 -304
- package/dist/cli/bin/index.cjs +405 -405
- package/dist/cli/bin/index.js +410 -410
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +65 -67
- package/dist/common/index.d.ts +1 -4
- package/dist/common/index.js +65 -67
- package/dist/components/index.cjs +9413 -11578
- package/dist/components/index.d.ts +92 -92
- package/dist/components/index.js +6768 -7544
- package/dist/core-events/index.d.ts +138 -25
- package/dist/core-server/index.cjs +5241 -5265
- package/dist/core-server/index.js +5353 -5375
- package/dist/core-server/presets/common-manager.js +11 -19
- package/dist/core-server/presets/common-preset.cjs +243 -242
- package/dist/core-server/presets/common-preset.js +379 -378
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +1 -3
- package/dist/csf/index.js +69 -113
- package/dist/docs-tools/index.cjs +1 -1
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +1 -1
- package/dist/instrumenter/index.cjs +1260 -1289
- package/dist/instrumenter/index.js +1344 -1348
- package/dist/manager/globals-module-info.cjs +272 -135
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +257 -120
- package/dist/manager/globals-runtime.js +59553 -22371
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +129 -129
- package/dist/manager-api/index.cjs +1182 -1205
- package/dist/manager-api/index.d.ts +2 -2
- package/dist/manager-api/index.js +1010 -1008
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +43946 -6546
- package/dist/preview-api/index.cjs +1243 -1239
- package/dist/preview-api/index.d.ts +104 -60
- package/dist/preview-api/index.js +1310 -1270
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/test/index.cjs +10068 -10205
- package/dist/test/index.d.ts +4 -4
- package/dist/test/index.js +9741 -9623
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14441 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.d.ts +242 -242
- package/package.json +134 -3
package/dist/channels/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var se = Object.create;
|
|
2
2
|
var ut = Object.defineProperty;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var le = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var ce = Object.getOwnPropertyNames;
|
|
5
|
+
var pe = Object.getPrototypeOf, ue = Object.prototype.hasOwnProperty;
|
|
6
6
|
var a = (r, t) => ut(r, "name", { value: t, configurable: !0 }), H = /* @__PURE__ */ ((r) => typeof require < "u" ? require : typeof Proxy <
|
|
7
7
|
"u" ? new Proxy(r, {
|
|
8
8
|
get: (t, e) => (typeof require < "u" ? require : t)[e]
|
|
@@ -10,14 +10,14 @@ var a = (r, t) => ut(r, "name", { value: t, configurable: !0 }), H = /* @__PURE_
|
|
|
10
10
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
11
11
|
throw Error('Dynamic require of "' + r + '" is not supported');
|
|
12
12
|
});
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var fe = (r, t) => () => (t || r((t = { exports: {} }).exports, t), t.exports);
|
|
14
|
+
var he = (r, t, e, n) => {
|
|
15
15
|
if (t && typeof t == "object" || typeof t == "function")
|
|
16
|
-
for (let o of
|
|
17
|
-
!
|
|
16
|
+
for (let o of ce(t))
|
|
17
|
+
!ue.call(r, o) && o !== e && ut(r, o, { get: () => t[o], enumerable: !(n = le(t, o)) || n.enumerable });
|
|
18
18
|
return r;
|
|
19
19
|
};
|
|
20
|
-
var
|
|
20
|
+
var ye = (r, t, e) => (e = r != null ? se(pe(r)) : {}, he(
|
|
21
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
23
23
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -27,7 +27,7 @@ var he = (r, t, e) => (e = r != null ? ae(ce(r)) : {}, fe(
|
|
|
27
27
|
));
|
|
28
28
|
|
|
29
29
|
// ../node_modules/memoizerific/memoizerific.js
|
|
30
|
-
var xt =
|
|
30
|
+
var xt = fe((It, yt) => {
|
|
31
31
|
(function(r) {
|
|
32
32
|
if (typeof It == "object" && typeof yt < "u")
|
|
33
33
|
yt.exports = r();
|
|
@@ -109,10 +109,10 @@ var xt = ue((It, yt) => {
|
|
|
109
109
|
var u = new l(!1), y = [];
|
|
110
110
|
return function(v) {
|
|
111
111
|
var d = /* @__PURE__ */ a(function() {
|
|
112
|
-
var m = u, E, I,
|
|
113
|
-
if ((d.numArgs || d.numArgs === 0) && d.numArgs !==
|
|
112
|
+
var m = u, E, I, _ = arguments.length - 1, R = Array(_ + 1), C = !0, N;
|
|
113
|
+
if ((d.numArgs || d.numArgs === 0) && d.numArgs !== _ + 1)
|
|
114
114
|
throw new Error("Memoizerific functions should always be called with the same number of arguments");
|
|
115
|
-
for (N = 0; N <
|
|
115
|
+
for (N = 0; N < _; N++) {
|
|
116
116
|
if (R[N] = {
|
|
117
117
|
cacheItem: m,
|
|
118
118
|
arg: arguments[N]
|
|
@@ -122,11 +122,11 @@ var xt = ue((It, yt) => {
|
|
|
122
122
|
}
|
|
123
123
|
C = !1, E = new l(!1), m.set(arguments[N], E), m = E;
|
|
124
124
|
}
|
|
125
|
-
return C && (m.has(arguments[
|
|
126
|
-
p > 0 && (R[
|
|
125
|
+
return C && (m.has(arguments[_]) ? I = m.get(arguments[_]) : C = !1), C || (I = v.apply(null, arguments), m.set(arguments[_], I)),
|
|
126
|
+
p > 0 && (R[_] = {
|
|
127
127
|
cacheItem: m,
|
|
128
|
-
arg: arguments[
|
|
129
|
-
}, C ? c(y, R) : y.push(R), y.length > p && i(y.shift())), d.wasMemoized = C, d.numArgs =
|
|
128
|
+
arg: arguments[_]
|
|
129
|
+
}, C ? c(y, R) : y.push(R), y.length > p && i(y.shift())), d.wasMemoized = C, d.numArgs = _ + 1, I;
|
|
130
130
|
}, "memoizerific");
|
|
131
131
|
return d.limit = p, d.wasMemoized = !1, d.cache = u, d.lru = y, d;
|
|
132
132
|
};
|
|
@@ -159,12 +159,8 @@ var xt = ue((It, yt) => {
|
|
|
159
159
|
});
|
|
160
160
|
});
|
|
161
161
|
|
|
162
|
-
//
|
|
163
|
-
|
|
164
|
-
let r;
|
|
165
|
-
return typeof window < "u" ? r = window : typeof globalThis < "u" ? r = globalThis : typeof global < "u" ? r = global : typeof self < "u" ?
|
|
166
|
-
r = self : r = {}, r;
|
|
167
|
-
})();
|
|
162
|
+
// src/channels/index.ts
|
|
163
|
+
import { global as uo } from "@storybook/global";
|
|
168
164
|
|
|
169
165
|
// ../node_modules/ts-dedent/esm/index.js
|
|
170
166
|
function F(r) {
|
|
@@ -205,7 +201,7 @@ a(F, "dedent");
|
|
|
205
201
|
var ft = /* @__PURE__ */ new Map();
|
|
206
202
|
|
|
207
203
|
// src/shared/universal-store/index.ts
|
|
208
|
-
var
|
|
204
|
+
var de = "UNIVERSAL_STORE:", x = {
|
|
209
205
|
PENDING: "PENDING",
|
|
210
206
|
RESOLVED: "RESOLVED",
|
|
211
207
|
REJECTED: "REJECTED"
|
|
@@ -257,7 +253,7 @@ var ye = "UNIVERSAL_STORE:", x = {
|
|
|
257
253
|
"UniversalStore is not constructable - use UniversalStore.create() instead"
|
|
258
254
|
);
|
|
259
255
|
if (h.isInternalConstructing = !1, this.id = t.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
|
|
260
|
-
actorType = t.leader ? h.ActorType.LEADER : h.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${
|
|
256
|
+
actorType = t.leader ? h.ActorType.LEADER : h.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${de}${this.id}`,
|
|
261
257
|
this.debug("constructor", {
|
|
262
258
|
options: t,
|
|
263
259
|
environmentOverrides: e,
|
|
@@ -579,14 +575,14 @@ h.isInternalConstructing = !1, h.setupPreparationPromise();
|
|
|
579
575
|
var $ = h;
|
|
580
576
|
|
|
581
577
|
// src/channels/main.ts
|
|
582
|
-
var
|
|
578
|
+
var ge = /* @__PURE__ */ a((r) => r.transports !== void 0, "isMulti"), ve = /* @__PURE__ */ a(() => Math.random().toString(16).slice(2), "ge\
|
|
583
579
|
nerateRandomId"), ht = class ht {
|
|
584
580
|
constructor(t = {}) {
|
|
585
|
-
this.sender =
|
|
581
|
+
this.sender = ve();
|
|
586
582
|
this.events = {};
|
|
587
583
|
this.data = {};
|
|
588
584
|
this.transports = [];
|
|
589
|
-
this.isAsync = t.async || !1,
|
|
585
|
+
this.isAsync = t.async || !1, ge(t) ? (this.transports = t.transports || [], this.transports.forEach((e) => {
|
|
590
586
|
e.setHandler((n) => this.handleEvent(n));
|
|
591
587
|
})) : this.transports = t.transport ? [t.transport] : [], this.transports.forEach((e) => {
|
|
592
588
|
e.setHandler((n) => this.handleEvent(n));
|
|
@@ -654,21 +650,22 @@ var B = ht;
|
|
|
654
650
|
|
|
655
651
|
// src/channels/postmessage/index.ts
|
|
656
652
|
import { logger as Kt, pretty as Yt } from "storybook/internal/client-logger";
|
|
657
|
-
import * as
|
|
653
|
+
import * as lo from "storybook/internal/core-events";
|
|
654
|
+
import { global as A } from "@storybook/global";
|
|
658
655
|
|
|
659
656
|
// ../node_modules/telejson/dist/chunk-465TF3XA.mjs
|
|
660
|
-
var
|
|
661
|
-
|
|
657
|
+
var me = Object.create, Ot = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, Ct = Object.getOwnPropertyNames, be = Object.getPrototypeOf,
|
|
658
|
+
Se = Object.prototype.hasOwnProperty, P = /* @__PURE__ */ a((r, t) => /* @__PURE__ */ a(function() {
|
|
662
659
|
return t || (0, r[Ct(r)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
663
|
-
}, "__require"), "__commonJS"),
|
|
660
|
+
}, "__require"), "__commonJS"), _e = /* @__PURE__ */ a((r, t, e, n) => {
|
|
664
661
|
if (t && typeof t == "object" || typeof t == "function")
|
|
665
662
|
for (let o of Ct(t))
|
|
666
|
-
!
|
|
663
|
+
!Se.call(r, o) && o !== e && Ot(r, o, { get: /* @__PURE__ */ a(() => t[o], "get"), enumerable: !(n = Ee(t, o)) || n.enumerable });
|
|
667
664
|
return r;
|
|
668
|
-
}, "__copyProps"), ot = /* @__PURE__ */ a((r, t, e) => (e = r != null ?
|
|
665
|
+
}, "__copyProps"), ot = /* @__PURE__ */ a((r, t, e) => (e = r != null ? me(be(r)) : {}, _e(
|
|
669
666
|
t || !r || !r.__esModule ? Ot(e, "default", { value: r, enumerable: !0 }) : e,
|
|
670
667
|
r
|
|
671
|
-
)), "__toESM"),
|
|
668
|
+
)), "__toESM"), Te = [
|
|
672
669
|
"bubbles",
|
|
673
670
|
"cancelBubble",
|
|
674
671
|
"cancelable",
|
|
@@ -682,17 +679,17 @@ be = Object.prototype.hasOwnProperty, P = /* @__PURE__ */ a((r, t) => /* @__PURE
|
|
|
682
679
|
"target",
|
|
683
680
|
"timeStamp",
|
|
684
681
|
"type"
|
|
685
|
-
],
|
|
682
|
+
], Ae = ["detail"];
|
|
686
683
|
function Pt(r) {
|
|
687
|
-
let t =
|
|
688
|
-
return r instanceof CustomEvent &&
|
|
684
|
+
let t = Te.filter((e) => r[e] !== void 0).reduce((e, n) => ({ ...e, [n]: r[n] }), {});
|
|
685
|
+
return r instanceof CustomEvent && Ae.filter((e) => r[e] !== void 0).forEach((e) => {
|
|
689
686
|
t[e] = r[e];
|
|
690
687
|
}), t;
|
|
691
688
|
}
|
|
692
689
|
a(Pt, "extractEventHiddenProperties");
|
|
693
690
|
|
|
694
691
|
// ../node_modules/telejson/dist/index.mjs
|
|
695
|
-
var Bt =
|
|
692
|
+
var Bt = ye(xt(), 1);
|
|
696
693
|
var Ft = P({
|
|
697
694
|
"node_modules/has-symbols/shams.js"(r, t) {
|
|
698
695
|
"use strict";
|
|
@@ -732,7 +729,7 @@ Symbol]")
|
|
|
732
729
|
n();
|
|
733
730
|
}, "hasNativeSymbols");
|
|
734
731
|
}
|
|
735
|
-
}),
|
|
732
|
+
}), we = P({
|
|
736
733
|
"node_modules/function-bind/implementation.js"(r, t) {
|
|
737
734
|
"use strict";
|
|
738
735
|
var e = "Function.prototype.bind called on incompatible ", n = Array.prototype.slice, o = Object.prototype.toString, s = "[object Functi\
|
|
@@ -766,10 +763,10 @@ on]";
|
|
|
766
763
|
}), gt = P({
|
|
767
764
|
"node_modules/function-bind/index.js"(r, t) {
|
|
768
765
|
"use strict";
|
|
769
|
-
var e =
|
|
766
|
+
var e = we();
|
|
770
767
|
t.exports = Function.prototype.bind || e;
|
|
771
768
|
}
|
|
772
|
-
}),
|
|
769
|
+
}), Oe = P({
|
|
773
770
|
"node_modules/has/src/index.js"(r, t) {
|
|
774
771
|
"use strict";
|
|
775
772
|
var e = gt();
|
|
@@ -870,21 +867,21 @@ on]";
|
|
|
870
867
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
871
868
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet
|
|
872
869
|
}, m = /* @__PURE__ */ a(function j(b) {
|
|
873
|
-
var
|
|
870
|
+
var T;
|
|
874
871
|
if (b === "%AsyncFunction%")
|
|
875
|
-
|
|
872
|
+
T = l("async function () {}");
|
|
876
873
|
else if (b === "%GeneratorFunction%")
|
|
877
|
-
|
|
874
|
+
T = l("function* () {}");
|
|
878
875
|
else if (b === "%AsyncGeneratorFunction%")
|
|
879
|
-
|
|
876
|
+
T = l("async function* () {}");
|
|
880
877
|
else if (b === "%AsyncGenerator%") {
|
|
881
|
-
var
|
|
882
|
-
|
|
878
|
+
var S = j("%AsyncGeneratorFunction%");
|
|
879
|
+
S && (T = S.prototype);
|
|
883
880
|
} else if (b === "%AsyncIteratorPrototype%") {
|
|
884
881
|
var w = j("%AsyncGenerator%");
|
|
885
|
-
w && (
|
|
882
|
+
w && (T = u(w.prototype));
|
|
886
883
|
}
|
|
887
|
-
return d[b] =
|
|
884
|
+
return d[b] = T, T;
|
|
888
885
|
}, "doEval2"), E = {
|
|
889
886
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
890
887
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -937,66 +934,66 @@ on]";
|
|
|
937
934
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
938
935
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
939
936
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
940
|
-
}, I = gt(),
|
|
941
|
-
Function.call, String.prototype.replace), Q = I.call(Function.call, String.prototype.slice),
|
|
942
|
-
exec),
|
|
937
|
+
}, I = gt(), _ = Oe(), R = I.call(Function.call, Array.prototype.concat), C = I.call(Function.apply, Array.prototype.splice), N = I.call(
|
|
938
|
+
Function.call, String.prototype.replace), Q = I.call(Function.call, String.prototype.slice), re = I.call(Function.call, RegExp.prototype.
|
|
939
|
+
exec), ne = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, oe = /\\(\\)?/g, ie = /* @__PURE__ */ a(
|
|
943
940
|
function(b) {
|
|
944
|
-
var
|
|
945
|
-
if (
|
|
941
|
+
var T = Q(b, 0, 1), S = Q(b, -1);
|
|
942
|
+
if (T === "%" && S !== "%")
|
|
946
943
|
throw new n("invalid intrinsic syntax, expected closing `%`");
|
|
947
|
-
if (
|
|
944
|
+
if (S === "%" && T !== "%")
|
|
948
945
|
throw new n("invalid intrinsic syntax, expected opening `%`");
|
|
949
946
|
var w = [];
|
|
950
|
-
return N(b,
|
|
951
|
-
w[w.length] = O ? N(Z,
|
|
947
|
+
return N(b, ne, function(L, M, O, Z) {
|
|
948
|
+
w[w.length] = O ? N(Z, oe, "$1") : M || L;
|
|
952
949
|
}), w;
|
|
953
|
-
}, "stringToPath3"),
|
|
954
|
-
var
|
|
955
|
-
if (
|
|
956
|
-
var L = d[
|
|
957
|
-
if (L === y && (L = m(
|
|
950
|
+
}, "stringToPath3"), ae = /* @__PURE__ */ a(function(b, T) {
|
|
951
|
+
var S = b, w;
|
|
952
|
+
if (_(E, S) && (w = E[S], S = "%" + w[0] + "%"), _(d, S)) {
|
|
953
|
+
var L = d[S];
|
|
954
|
+
if (L === y && (L = m(S)), typeof L > "u" && !T)
|
|
958
955
|
throw new s("intrinsic " + b + " exists, but is not available. Please file an issue!");
|
|
959
956
|
return {
|
|
960
957
|
alias: w,
|
|
961
|
-
name:
|
|
958
|
+
name: S,
|
|
962
959
|
value: L
|
|
963
960
|
};
|
|
964
961
|
}
|
|
965
962
|
throw new n("intrinsic " + b + " does not exist!");
|
|
966
963
|
}, "getBaseIntrinsic2");
|
|
967
|
-
t.exports = /* @__PURE__ */ a(function(b,
|
|
964
|
+
t.exports = /* @__PURE__ */ a(function(b, T) {
|
|
968
965
|
if (typeof b != "string" || b.length === 0)
|
|
969
966
|
throw new s("intrinsic name must be a non-empty string");
|
|
970
|
-
if (arguments.length > 1 && typeof
|
|
967
|
+
if (arguments.length > 1 && typeof T != "boolean")
|
|
971
968
|
throw new s('"allowMissing" argument must be a boolean');
|
|
972
|
-
if (
|
|
969
|
+
if (re(/^%?[^%]*%?$/, b) === null)
|
|
973
970
|
throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
974
|
-
var
|
|
975
|
-
pt && (w = pt[0], C(
|
|
976
|
-
for (var tt = 1, z = !0; tt <
|
|
977
|
-
var D =
|
|
971
|
+
var S = ie(b), w = S.length > 0 ? S[0] : "", L = ae("%" + w + "%", T), M = L.name, O = L.value, Z = !1, pt = L.alias;
|
|
972
|
+
pt && (w = pt[0], C(S, R([0, 1], pt)));
|
|
973
|
+
for (var tt = 1, z = !0; tt < S.length; tt += 1) {
|
|
974
|
+
var D = S[tt], et = Q(D, 0, 1), rt = Q(D, -1);
|
|
978
975
|
if ((et === '"' || et === "'" || et === "`" || rt === '"' || rt === "'" || rt === "`") && et !== rt)
|
|
979
976
|
throw new n("property names with quotes must have matching quotes");
|
|
980
|
-
if ((D === "constructor" || !z) && (Z = !0), w += "." + D, M = "%" + w + "%",
|
|
977
|
+
if ((D === "constructor" || !z) && (Z = !0), w += "." + D, M = "%" + w + "%", _(d, M))
|
|
981
978
|
O = d[M];
|
|
982
979
|
else if (O != null) {
|
|
983
980
|
if (!(D in O)) {
|
|
984
|
-
if (!
|
|
981
|
+
if (!T)
|
|
985
982
|
throw new s("base intrinsic for " + b + " exists, but the property is not available.");
|
|
986
983
|
return;
|
|
987
984
|
}
|
|
988
|
-
if (c && tt + 1 >=
|
|
985
|
+
if (c && tt + 1 >= S.length) {
|
|
989
986
|
var nt = c(O, D);
|
|
990
987
|
z = !!nt, z && "get" in nt && !("originalValue" in nt.get) ? O = nt.get : O = O[D];
|
|
991
988
|
} else
|
|
992
|
-
z =
|
|
989
|
+
z = _(O, D), O = O[D];
|
|
993
990
|
z && !Z && (d[M] = O);
|
|
994
991
|
}
|
|
995
992
|
}
|
|
996
993
|
return O;
|
|
997
994
|
}, "GetIntrinsic");
|
|
998
995
|
}
|
|
999
|
-
}),
|
|
996
|
+
}), Ce = P({
|
|
1000
997
|
"node_modules/call-bind/index.js"(r, t) {
|
|
1001
998
|
"use strict";
|
|
1002
999
|
var e = gt(), n = $t(), o = n("%Function.prototype.apply%"), s = n("%Function.prototype.call%"), l = n("%Reflect.apply%", !0) || e.call(
|
|
@@ -1024,16 +1021,16 @@ on]";
|
|
|
1024
1021
|
}, "applyBind2");
|
|
1025
1022
|
i ? i(t.exports, "apply", { value: p }) : t.exports.apply = p;
|
|
1026
1023
|
}
|
|
1027
|
-
}),
|
|
1024
|
+
}), Pe = P({
|
|
1028
1025
|
"node_modules/call-bind/callBound.js"(r, t) {
|
|
1029
1026
|
"use strict";
|
|
1030
|
-
var e = $t(), n =
|
|
1027
|
+
var e = $t(), n = Ce(), o = n(e("String.prototype.indexOf"));
|
|
1031
1028
|
t.exports = /* @__PURE__ */ a(function(l, c) {
|
|
1032
1029
|
var i = e(l, !!c);
|
|
1033
1030
|
return typeof i == "function" && o(l, ".prototype.") > -1 ? n(i) : i;
|
|
1034
1031
|
}, "callBoundIntrinsic");
|
|
1035
1032
|
}
|
|
1036
|
-
}),
|
|
1033
|
+
}), Ie = P({
|
|
1037
1034
|
"node_modules/has-tostringtag/shams.js"(r, t) {
|
|
1038
1035
|
"use strict";
|
|
1039
1036
|
var e = Ft();
|
|
@@ -1041,10 +1038,10 @@ on]";
|
|
|
1041
1038
|
return e() && !!Symbol.toStringTag;
|
|
1042
1039
|
}, "hasToStringTagShams");
|
|
1043
1040
|
}
|
|
1044
|
-
}),
|
|
1041
|
+
}), xe = P({
|
|
1045
1042
|
"node_modules/is-regex/index.js"(r, t) {
|
|
1046
1043
|
"use strict";
|
|
1047
|
-
var e =
|
|
1044
|
+
var e = Pe(), n = Ie()(), o, s, l, c;
|
|
1048
1045
|
n && (o = e("Object.prototype.hasOwnProperty"), s = e("RegExp.prototype.exec"), l = {}, i = /* @__PURE__ */ a(function() {
|
|
1049
1046
|
throw l;
|
|
1050
1047
|
}, "throwRegexMarker"), c = {
|
|
@@ -1067,7 +1064,7 @@ on]";
|
|
|
1067
1064
|
return !v || typeof v != "object" && typeof v != "function" ? !1 : g(v) === u;
|
|
1068
1065
|
}, "isRegex");
|
|
1069
1066
|
}
|
|
1070
|
-
}),
|
|
1067
|
+
}), Re = P({
|
|
1071
1068
|
"node_modules/is-function/index.js"(r, t) {
|
|
1072
1069
|
t.exports = n;
|
|
1073
1070
|
var e = Object.prototype.toString;
|
|
@@ -1080,7 +1077,7 @@ on]";
|
|
|
1080
1077
|
}
|
|
1081
1078
|
a(n, "isFunction3");
|
|
1082
1079
|
}
|
|
1083
|
-
}),
|
|
1080
|
+
}), Ne = P({
|
|
1084
1081
|
"node_modules/is-symbol/index.js"(r, t) {
|
|
1085
1082
|
"use strict";
|
|
1086
1083
|
var e = Object.prototype.toString, n = Mt()();
|
|
@@ -1101,91 +1098,91 @@ on]";
|
|
|
1101
1098
|
}, "isSymbol3");
|
|
1102
1099
|
var o, s, l;
|
|
1103
1100
|
}
|
|
1104
|
-
}),
|
|
1105
|
-
function
|
|
1101
|
+
}), je = ot(xe()), Le = ot(Re()), De = ot(Ne());
|
|
1102
|
+
function Fe(r) {
|
|
1106
1103
|
return r != null && typeof r == "object" && Array.isArray(r) === !1;
|
|
1107
1104
|
}
|
|
1108
|
-
a(
|
|
1109
|
-
var
|
|
1110
|
-
Object && self,
|
|
1105
|
+
a(Fe, "isObject");
|
|
1106
|
+
var Me = typeof global == "object" && global && global.Object === Object && global, $e = Me, Ue = typeof self == "object" && self && self.Object ===
|
|
1107
|
+
Object && self, ke = $e || Ue || Function("return this")(), vt = ke, Ge = vt.Symbol, U = Ge, Ut = Object.prototype, We = Ut.hasOwnProperty, ze = Ut.
|
|
1111
1108
|
toString, q = U ? U.toStringTag : void 0;
|
|
1112
|
-
function
|
|
1113
|
-
var t =
|
|
1109
|
+
function He(r) {
|
|
1110
|
+
var t = We.call(r, q), e = r[q];
|
|
1114
1111
|
try {
|
|
1115
1112
|
r[q] = void 0;
|
|
1116
1113
|
var n = !0;
|
|
1117
1114
|
} catch {
|
|
1118
1115
|
}
|
|
1119
|
-
var o =
|
|
1116
|
+
var o = ze.call(r);
|
|
1120
1117
|
return n && (t ? r[q] = e : delete r[q]), o;
|
|
1121
1118
|
}
|
|
1122
|
-
a(
|
|
1123
|
-
var
|
|
1124
|
-
function
|
|
1125
|
-
return
|
|
1126
|
-
}
|
|
1127
|
-
a(Ve, "objectToString");
|
|
1128
|
-
var Je = Ve, Ke = "[object Null]", Ye = "[object Undefined]", Rt = U ? U.toStringTag : void 0;
|
|
1129
|
-
function Xe(r) {
|
|
1130
|
-
return r == null ? r === void 0 ? Ye : Ke : Rt && Rt in Object(r) ? He(r) : Je(r);
|
|
1119
|
+
a(He, "getRawTag");
|
|
1120
|
+
var Be = He, qe = Object.prototype, Ve = qe.toString;
|
|
1121
|
+
function Je(r) {
|
|
1122
|
+
return Ve.call(r);
|
|
1131
1123
|
}
|
|
1132
|
-
a(
|
|
1133
|
-
var
|
|
1124
|
+
a(Je, "objectToString");
|
|
1125
|
+
var Ke = Je, Ye = "[object Null]", Xe = "[object Undefined]", Rt = U ? U.toStringTag : void 0;
|
|
1134
1126
|
function Qe(r) {
|
|
1127
|
+
return r == null ? r === void 0 ? Xe : Ye : Rt && Rt in Object(r) ? Be(r) : Ke(r);
|
|
1128
|
+
}
|
|
1129
|
+
a(Qe, "baseGetTag");
|
|
1130
|
+
var kt = Qe;
|
|
1131
|
+
function Ze(r) {
|
|
1135
1132
|
return r != null && typeof r == "object";
|
|
1136
1133
|
}
|
|
1137
|
-
a(
|
|
1138
|
-
var
|
|
1139
|
-
function
|
|
1140
|
-
return typeof r == "symbol" ||
|
|
1134
|
+
a(Ze, "isObjectLike");
|
|
1135
|
+
var tr = Ze, er = "[object Symbol]";
|
|
1136
|
+
function rr(r) {
|
|
1137
|
+
return typeof r == "symbol" || tr(r) && kt(r) == er;
|
|
1141
1138
|
}
|
|
1142
|
-
a(
|
|
1143
|
-
var mt =
|
|
1144
|
-
function
|
|
1139
|
+
a(rr, "isSymbol");
|
|
1140
|
+
var mt = rr;
|
|
1141
|
+
function nr(r, t) {
|
|
1145
1142
|
for (var e = -1, n = r == null ? 0 : r.length, o = Array(n); ++e < n; )
|
|
1146
1143
|
o[e] = t(r[e], e, r);
|
|
1147
1144
|
return o;
|
|
1148
1145
|
}
|
|
1149
|
-
a(
|
|
1150
|
-
var
|
|
1146
|
+
a(nr, "arrayMap");
|
|
1147
|
+
var or = nr, ir = Array.isArray, Et = ir, ar = 1 / 0, Nt = U ? U.prototype : void 0, jt = Nt ? Nt.toString : void 0;
|
|
1151
1148
|
function Gt(r) {
|
|
1152
1149
|
if (typeof r == "string")
|
|
1153
1150
|
return r;
|
|
1154
1151
|
if (Et(r))
|
|
1155
|
-
return
|
|
1152
|
+
return or(r, Gt) + "";
|
|
1156
1153
|
if (mt(r))
|
|
1157
1154
|
return jt ? jt.call(r) : "";
|
|
1158
1155
|
var t = r + "";
|
|
1159
|
-
return t == "0" && 1 / r == -
|
|
1156
|
+
return t == "0" && 1 / r == -ar ? "-0" : t;
|
|
1160
1157
|
}
|
|
1161
1158
|
a(Gt, "baseToString");
|
|
1162
|
-
var
|
|
1163
|
-
function
|
|
1159
|
+
var sr = Gt;
|
|
1160
|
+
function lr(r) {
|
|
1164
1161
|
var t = typeof r;
|
|
1165
1162
|
return r != null && (t == "object" || t == "function");
|
|
1166
1163
|
}
|
|
1167
|
-
a(
|
|
1168
|
-
var Wt =
|
|
1169
|
-
function
|
|
1164
|
+
a(lr, "isObject2");
|
|
1165
|
+
var Wt = lr, cr = "[object AsyncFunction]", pr = "[object Function]", ur = "[object GeneratorFunction]", fr = "[object Proxy]";
|
|
1166
|
+
function hr(r) {
|
|
1170
1167
|
if (!Wt(r))
|
|
1171
1168
|
return !1;
|
|
1172
1169
|
var t = kt(r);
|
|
1173
|
-
return t ==
|
|
1170
|
+
return t == pr || t == ur || t == cr || t == fr;
|
|
1174
1171
|
}
|
|
1175
|
-
a(
|
|
1176
|
-
var
|
|
1172
|
+
a(hr, "isFunction");
|
|
1173
|
+
var yr = hr, dr = vt["__core-js_shared__"], dt = dr, Lt = function() {
|
|
1177
1174
|
var r = /[^.]+$/.exec(dt && dt.keys && dt.keys.IE_PROTO || "");
|
|
1178
1175
|
return r ? "Symbol(src)_1." + r : "";
|
|
1179
1176
|
}();
|
|
1180
|
-
function
|
|
1177
|
+
function gr(r) {
|
|
1181
1178
|
return !!Lt && Lt in r;
|
|
1182
1179
|
}
|
|
1183
|
-
a(
|
|
1184
|
-
var
|
|
1185
|
-
function
|
|
1180
|
+
a(gr, "isMasked");
|
|
1181
|
+
var vr = gr, mr = Function.prototype, Er = mr.toString;
|
|
1182
|
+
function br(r) {
|
|
1186
1183
|
if (r != null) {
|
|
1187
1184
|
try {
|
|
1188
|
-
return
|
|
1185
|
+
return Er.call(r);
|
|
1189
1186
|
} catch {
|
|
1190
1187
|
}
|
|
1191
1188
|
try {
|
|
@@ -1195,77 +1192,77 @@ function Er(r) {
|
|
|
1195
1192
|
}
|
|
1196
1193
|
return "";
|
|
1197
1194
|
}
|
|
1198
|
-
a(
|
|
1199
|
-
var
|
|
1200
|
-
|
|
1201
|
-
"^" +
|
|
1195
|
+
a(br, "toSource");
|
|
1196
|
+
var Sr = br, _r = /[\\^$.*+?()[\]{}|]/g, Tr = /^\[object .+?Constructor\]$/, Ar = Function.prototype, wr = Object.prototype, Or = Ar.toString,
|
|
1197
|
+
Cr = wr.hasOwnProperty, Pr = RegExp(
|
|
1198
|
+
"^" + Or.call(Cr).replace(_r, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1202
1199
|
);
|
|
1203
|
-
function
|
|
1204
|
-
if (!Wt(r) ||
|
|
1200
|
+
function Ir(r) {
|
|
1201
|
+
if (!Wt(r) || vr(r))
|
|
1205
1202
|
return !1;
|
|
1206
|
-
var t =
|
|
1207
|
-
return t.test(
|
|
1203
|
+
var t = yr(r) ? Pr : Tr;
|
|
1204
|
+
return t.test(Sr(r));
|
|
1208
1205
|
}
|
|
1209
|
-
a(
|
|
1210
|
-
var
|
|
1211
|
-
function
|
|
1206
|
+
a(Ir, "baseIsNative");
|
|
1207
|
+
var xr = Ir;
|
|
1208
|
+
function Rr(r, t) {
|
|
1212
1209
|
return r?.[t];
|
|
1213
1210
|
}
|
|
1214
|
-
a(
|
|
1215
|
-
var
|
|
1216
|
-
function Nr(r, t) {
|
|
1217
|
-
var e = Rr(r, t);
|
|
1218
|
-
return Ir(e) ? e : void 0;
|
|
1219
|
-
}
|
|
1220
|
-
a(Nr, "getNative");
|
|
1221
|
-
var zt = Nr;
|
|
1211
|
+
a(Rr, "getValue");
|
|
1212
|
+
var Nr = Rr;
|
|
1222
1213
|
function jr(r, t) {
|
|
1214
|
+
var e = Nr(r, t);
|
|
1215
|
+
return xr(e) ? e : void 0;
|
|
1216
|
+
}
|
|
1217
|
+
a(jr, "getNative");
|
|
1218
|
+
var zt = jr;
|
|
1219
|
+
function Lr(r, t) {
|
|
1223
1220
|
return r === t || r !== r && t !== t;
|
|
1224
1221
|
}
|
|
1225
|
-
a(
|
|
1226
|
-
var
|
|
1227
|
-
function
|
|
1222
|
+
a(Lr, "eq");
|
|
1223
|
+
var Dr = Lr, Fr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mr = /^\w*$/;
|
|
1224
|
+
function $r(r, t) {
|
|
1228
1225
|
if (Et(r))
|
|
1229
1226
|
return !1;
|
|
1230
1227
|
var e = typeof r;
|
|
1231
|
-
return e == "number" || e == "symbol" || e == "boolean" || r == null || mt(r) ? !0 :
|
|
1228
|
+
return e == "number" || e == "symbol" || e == "boolean" || r == null || mt(r) ? !0 : Mr.test(r) || !Fr.test(r) || t != null && r in Object(
|
|
1232
1229
|
t);
|
|
1233
1230
|
}
|
|
1234
|
-
a(
|
|
1235
|
-
var
|
|
1236
|
-
function
|
|
1231
|
+
a($r, "isKey");
|
|
1232
|
+
var Ur = $r, kr = zt(Object, "create"), V = kr;
|
|
1233
|
+
function Gr() {
|
|
1237
1234
|
this.__data__ = V ? V(null) : {}, this.size = 0;
|
|
1238
1235
|
}
|
|
1239
|
-
a(
|
|
1240
|
-
var
|
|
1241
|
-
function
|
|
1236
|
+
a(Gr, "hashClear");
|
|
1237
|
+
var Wr = Gr;
|
|
1238
|
+
function zr(r) {
|
|
1242
1239
|
var t = this.has(r) && delete this.__data__[r];
|
|
1243
1240
|
return this.size -= t ? 1 : 0, t;
|
|
1244
1241
|
}
|
|
1245
|
-
a(
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1242
|
+
a(zr, "hashDelete");
|
|
1243
|
+
var Hr = zr, Br = "__lodash_hash_undefined__", qr = Object.prototype, Vr = qr.hasOwnProperty;
|
|
1244
|
+
function Jr(r) {
|
|
1248
1245
|
var t = this.__data__;
|
|
1249
1246
|
if (V) {
|
|
1250
1247
|
var e = t[r];
|
|
1251
|
-
return e ===
|
|
1248
|
+
return e === Br ? void 0 : e;
|
|
1252
1249
|
}
|
|
1253
|
-
return
|
|
1250
|
+
return Vr.call(t, r) ? t[r] : void 0;
|
|
1254
1251
|
}
|
|
1255
|
-
a(
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1252
|
+
a(Jr, "hashGet");
|
|
1253
|
+
var Kr = Jr, Yr = Object.prototype, Xr = Yr.hasOwnProperty;
|
|
1254
|
+
function Qr(r) {
|
|
1258
1255
|
var t = this.__data__;
|
|
1259
|
-
return V ? t[r] !== void 0 :
|
|
1256
|
+
return V ? t[r] !== void 0 : Xr.call(t, r);
|
|
1260
1257
|
}
|
|
1261
|
-
a(
|
|
1262
|
-
var
|
|
1263
|
-
function
|
|
1258
|
+
a(Qr, "hashHas");
|
|
1259
|
+
var Zr = Qr, tn = "__lodash_hash_undefined__";
|
|
1260
|
+
function en(r, t) {
|
|
1264
1261
|
var e = this.__data__;
|
|
1265
|
-
return this.size += this.has(r) ? 0 : 1, e[r] = V && t === void 0 ?
|
|
1262
|
+
return this.size += this.has(r) ? 0 : 1, e[r] = V && t === void 0 ? tn : t, this;
|
|
1266
1263
|
}
|
|
1267
|
-
a(
|
|
1268
|
-
var
|
|
1264
|
+
a(en, "hashSet");
|
|
1265
|
+
var rn = en;
|
|
1269
1266
|
function k(r) {
|
|
1270
1267
|
var t = -1, e = r == null ? 0 : r.length;
|
|
1271
1268
|
for (this.clear(); ++t < e; ) {
|
|
@@ -1274,51 +1271,51 @@ function k(r) {
|
|
|
1274
1271
|
}
|
|
1275
1272
|
}
|
|
1276
1273
|
a(k, "Hash");
|
|
1277
|
-
k.prototype.clear =
|
|
1278
|
-
k.prototype.delete =
|
|
1279
|
-
k.prototype.get =
|
|
1280
|
-
k.prototype.has =
|
|
1281
|
-
k.prototype.set =
|
|
1274
|
+
k.prototype.clear = Wr;
|
|
1275
|
+
k.prototype.delete = Hr;
|
|
1276
|
+
k.prototype.get = Kr;
|
|
1277
|
+
k.prototype.has = Zr;
|
|
1278
|
+
k.prototype.set = rn;
|
|
1282
1279
|
var Dt = k;
|
|
1283
|
-
function
|
|
1280
|
+
function nn() {
|
|
1284
1281
|
this.__data__ = [], this.size = 0;
|
|
1285
1282
|
}
|
|
1286
|
-
a(
|
|
1287
|
-
var
|
|
1288
|
-
function
|
|
1283
|
+
a(nn, "listCacheClear");
|
|
1284
|
+
var on = nn;
|
|
1285
|
+
function an(r, t) {
|
|
1289
1286
|
for (var e = r.length; e--; )
|
|
1290
|
-
if (
|
|
1287
|
+
if (Dr(r[e][0], t))
|
|
1291
1288
|
return e;
|
|
1292
1289
|
return -1;
|
|
1293
1290
|
}
|
|
1294
|
-
a(
|
|
1295
|
-
var at =
|
|
1296
|
-
function
|
|
1291
|
+
a(an, "assocIndexOf");
|
|
1292
|
+
var at = an, sn = Array.prototype, ln = sn.splice;
|
|
1293
|
+
function cn(r) {
|
|
1297
1294
|
var t = this.__data__, e = at(t, r);
|
|
1298
1295
|
if (e < 0)
|
|
1299
1296
|
return !1;
|
|
1300
1297
|
var n = t.length - 1;
|
|
1301
|
-
return e == n ? t.pop() :
|
|
1298
|
+
return e == n ? t.pop() : ln.call(t, e, 1), --this.size, !0;
|
|
1302
1299
|
}
|
|
1303
|
-
a(
|
|
1304
|
-
var
|
|
1305
|
-
function
|
|
1300
|
+
a(cn, "listCacheDelete");
|
|
1301
|
+
var pn = cn;
|
|
1302
|
+
function un(r) {
|
|
1306
1303
|
var t = this.__data__, e = at(t, r);
|
|
1307
1304
|
return e < 0 ? void 0 : t[e][1];
|
|
1308
1305
|
}
|
|
1309
|
-
a(
|
|
1310
|
-
var
|
|
1311
|
-
function
|
|
1306
|
+
a(un, "listCacheGet");
|
|
1307
|
+
var fn = un;
|
|
1308
|
+
function hn(r) {
|
|
1312
1309
|
return at(this.__data__, r) > -1;
|
|
1313
1310
|
}
|
|
1314
|
-
a(
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1311
|
+
a(hn, "listCacheHas");
|
|
1312
|
+
var yn = hn;
|
|
1313
|
+
function dn(r, t) {
|
|
1317
1314
|
var e = this.__data__, n = at(e, r);
|
|
1318
1315
|
return n < 0 ? (++this.size, e.push([r, t])) : e[n][1] = t, this;
|
|
1319
1316
|
}
|
|
1320
|
-
a(
|
|
1321
|
-
var
|
|
1317
|
+
a(dn, "listCacheSet");
|
|
1318
|
+
var gn = dn;
|
|
1322
1319
|
function G(r) {
|
|
1323
1320
|
var t = -1, e = r == null ? 0 : r.length;
|
|
1324
1321
|
for (this.clear(); ++t < e; ) {
|
|
@@ -1327,55 +1324,55 @@ function G(r) {
|
|
|
1327
1324
|
}
|
|
1328
1325
|
}
|
|
1329
1326
|
a(G, "ListCache");
|
|
1330
|
-
G.prototype.clear =
|
|
1331
|
-
G.prototype.delete =
|
|
1332
|
-
G.prototype.get =
|
|
1333
|
-
G.prototype.has =
|
|
1334
|
-
G.prototype.set =
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1327
|
+
G.prototype.clear = on;
|
|
1328
|
+
G.prototype.delete = pn;
|
|
1329
|
+
G.prototype.get = fn;
|
|
1330
|
+
G.prototype.has = yn;
|
|
1331
|
+
G.prototype.set = gn;
|
|
1332
|
+
var vn = G, mn = zt(vt, "Map"), En = mn;
|
|
1333
|
+
function bn() {
|
|
1337
1334
|
this.size = 0, this.__data__ = {
|
|
1338
1335
|
hash: new Dt(),
|
|
1339
|
-
map: new (
|
|
1336
|
+
map: new (En || vn)(),
|
|
1340
1337
|
string: new Dt()
|
|
1341
1338
|
};
|
|
1342
1339
|
}
|
|
1343
|
-
a(
|
|
1344
|
-
var
|
|
1345
|
-
function
|
|
1340
|
+
a(bn, "mapCacheClear");
|
|
1341
|
+
var Sn = bn;
|
|
1342
|
+
function _n(r) {
|
|
1346
1343
|
var t = typeof r;
|
|
1347
1344
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? r !== "__proto__" : r === null;
|
|
1348
1345
|
}
|
|
1349
|
-
a(
|
|
1350
|
-
var
|
|
1351
|
-
function
|
|
1346
|
+
a(_n, "isKeyable");
|
|
1347
|
+
var Tn = _n;
|
|
1348
|
+
function An(r, t) {
|
|
1352
1349
|
var e = r.__data__;
|
|
1353
|
-
return
|
|
1350
|
+
return Tn(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
|
|
1354
1351
|
}
|
|
1355
|
-
a(
|
|
1356
|
-
var st =
|
|
1357
|
-
function
|
|
1352
|
+
a(An, "getMapData");
|
|
1353
|
+
var st = An;
|
|
1354
|
+
function wn(r) {
|
|
1358
1355
|
var t = st(this, r).delete(r);
|
|
1359
1356
|
return this.size -= t ? 1 : 0, t;
|
|
1360
1357
|
}
|
|
1361
|
-
a(
|
|
1362
|
-
var
|
|
1363
|
-
function
|
|
1358
|
+
a(wn, "mapCacheDelete");
|
|
1359
|
+
var On = wn;
|
|
1360
|
+
function Cn(r) {
|
|
1364
1361
|
return st(this, r).get(r);
|
|
1365
1362
|
}
|
|
1366
|
-
a(
|
|
1367
|
-
var
|
|
1368
|
-
function
|
|
1363
|
+
a(Cn, "mapCacheGet");
|
|
1364
|
+
var Pn = Cn;
|
|
1365
|
+
function In(r) {
|
|
1369
1366
|
return st(this, r).has(r);
|
|
1370
1367
|
}
|
|
1371
|
-
a(
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1368
|
+
a(In, "mapCacheHas");
|
|
1369
|
+
var xn = In;
|
|
1370
|
+
function Rn(r, t) {
|
|
1374
1371
|
var e = st(this, r), n = e.size;
|
|
1375
1372
|
return e.set(r, t), this.size += e.size == n ? 0 : 1, this;
|
|
1376
1373
|
}
|
|
1377
|
-
a(
|
|
1378
|
-
var
|
|
1374
|
+
a(Rn, "mapCacheSet");
|
|
1375
|
+
var Nn = Rn;
|
|
1379
1376
|
function W(r) {
|
|
1380
1377
|
var t = -1, e = r == null ? 0 : r.length;
|
|
1381
1378
|
for (this.clear(); ++t < e; ) {
|
|
@@ -1384,15 +1381,15 @@ function W(r) {
|
|
|
1384
1381
|
}
|
|
1385
1382
|
}
|
|
1386
1383
|
a(W, "MapCache");
|
|
1387
|
-
W.prototype.clear =
|
|
1388
|
-
W.prototype.delete =
|
|
1389
|
-
W.prototype.get =
|
|
1390
|
-
W.prototype.has =
|
|
1391
|
-
W.prototype.set =
|
|
1392
|
-
var Ht = W,
|
|
1384
|
+
W.prototype.clear = Sn;
|
|
1385
|
+
W.prototype.delete = On;
|
|
1386
|
+
W.prototype.get = Pn;
|
|
1387
|
+
W.prototype.has = xn;
|
|
1388
|
+
W.prototype.set = Nn;
|
|
1389
|
+
var Ht = W, jn = "Expected a function";
|
|
1393
1390
|
function bt(r, t) {
|
|
1394
1391
|
if (typeof r != "function" || t != null && typeof t != "function")
|
|
1395
|
-
throw new TypeError(
|
|
1392
|
+
throw new TypeError(jn);
|
|
1396
1393
|
var e = /* @__PURE__ */ a(function() {
|
|
1397
1394
|
var n = arguments, o = t ? t.apply(this, n) : n[0], s = e.cache;
|
|
1398
1395
|
if (s.has(o))
|
|
@@ -1404,53 +1401,53 @@ function bt(r, t) {
|
|
|
1404
1401
|
}
|
|
1405
1402
|
a(bt, "memoize");
|
|
1406
1403
|
bt.Cache = Ht;
|
|
1407
|
-
var
|
|
1408
|
-
function
|
|
1409
|
-
var t =
|
|
1410
|
-
return e.size ===
|
|
1404
|
+
var Ln = bt, Dn = 500;
|
|
1405
|
+
function Fn(r) {
|
|
1406
|
+
var t = Ln(r, function(n) {
|
|
1407
|
+
return e.size === Dn && e.clear(), n;
|
|
1411
1408
|
}), e = t.cache;
|
|
1412
1409
|
return t;
|
|
1413
1410
|
}
|
|
1414
|
-
a(
|
|
1415
|
-
var
|
|
1411
|
+
a(Fn, "memoizeCapped");
|
|
1412
|
+
var Mn = Fn, $n = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Un = /\\(\\)?/g, kn = Mn(
|
|
1416
1413
|
function(r) {
|
|
1417
1414
|
var t = [];
|
|
1418
|
-
return r.charCodeAt(0) === 46 && t.push(""), r.replace(
|
|
1419
|
-
t.push(o ? s.replace(
|
|
1415
|
+
return r.charCodeAt(0) === 46 && t.push(""), r.replace($n, function(e, n, o, s) {
|
|
1416
|
+
t.push(o ? s.replace(Un, "$1") : n || e);
|
|
1420
1417
|
}), t;
|
|
1421
|
-
}),
|
|
1422
|
-
function
|
|
1423
|
-
return r == null ? "" :
|
|
1418
|
+
}), Gn = kn;
|
|
1419
|
+
function Wn(r) {
|
|
1420
|
+
return r == null ? "" : sr(r);
|
|
1424
1421
|
}
|
|
1425
|
-
a(
|
|
1426
|
-
var
|
|
1427
|
-
function
|
|
1428
|
-
return Et(r) ? r :
|
|
1422
|
+
a(Wn, "toString");
|
|
1423
|
+
var zn = Wn;
|
|
1424
|
+
function Hn(r, t) {
|
|
1425
|
+
return Et(r) ? r : Ur(r, t) ? [r] : Gn(zn(r));
|
|
1429
1426
|
}
|
|
1430
|
-
a(
|
|
1431
|
-
var
|
|
1432
|
-
function
|
|
1427
|
+
a(Hn, "castPath");
|
|
1428
|
+
var Bn = Hn, qn = 1 / 0;
|
|
1429
|
+
function Vn(r) {
|
|
1433
1430
|
if (typeof r == "string" || mt(r))
|
|
1434
1431
|
return r;
|
|
1435
1432
|
var t = r + "";
|
|
1436
|
-
return t == "0" && 1 / r == -
|
|
1433
|
+
return t == "0" && 1 / r == -qn ? "-0" : t;
|
|
1437
1434
|
}
|
|
1438
|
-
a(
|
|
1439
|
-
var
|
|
1440
|
-
function
|
|
1441
|
-
t =
|
|
1435
|
+
a(Vn, "toKey");
|
|
1436
|
+
var Jn = Vn;
|
|
1437
|
+
function Kn(r, t) {
|
|
1438
|
+
t = Bn(t, r);
|
|
1442
1439
|
for (var e = 0, n = t.length; r != null && e < n; )
|
|
1443
|
-
r = r[
|
|
1440
|
+
r = r[Jn(t[e++])];
|
|
1444
1441
|
return e && e == n ? r : void 0;
|
|
1445
1442
|
}
|
|
1446
|
-
a(
|
|
1447
|
-
var
|
|
1448
|
-
function
|
|
1449
|
-
var n = r == null ? void 0 :
|
|
1443
|
+
a(Kn, "baseGet");
|
|
1444
|
+
var Yn = Kn;
|
|
1445
|
+
function Xn(r, t, e) {
|
|
1446
|
+
var n = r == null ? void 0 : Yn(r, t);
|
|
1450
1447
|
return n === void 0 ? e : n;
|
|
1451
1448
|
}
|
|
1452
|
-
a(
|
|
1453
|
-
var
|
|
1449
|
+
a(Xn, "get");
|
|
1450
|
+
var Qn = Xn, it = Fe, Zn = /* @__PURE__ */ a((r) => {
|
|
1454
1451
|
let t = null, e = !1, n = !1, o = !1, s = "";
|
|
1455
1452
|
if (r.indexOf("//") >= 0 || r.indexOf("/*") >= 0)
|
|
1456
1453
|
for (let l = 0; l < r.length; l += 1)
|
|
@@ -1462,15 +1459,15 @@ var Xn = Yn, it = De, Qn = /* @__PURE__ */ a((r) => {
|
|
|
1462
1459
|
else
|
|
1463
1460
|
s = r;
|
|
1464
1461
|
return s;
|
|
1465
|
-
}, "removeCodeComments"),
|
|
1466
|
-
(r) =>
|
|
1467
|
-
),
|
|
1462
|
+
}, "removeCodeComments"), to = (0, Bt.default)(1e4)(
|
|
1463
|
+
(r) => Zn(r).replace(/\n\s*/g, "").trim()
|
|
1464
|
+
), eo = /* @__PURE__ */ a(function(t, e) {
|
|
1468
1465
|
let n = e.slice(0, e.indexOf("{")), o = e.slice(e.indexOf("{"));
|
|
1469
1466
|
if (n.includes("=>") || n.includes("function"))
|
|
1470
1467
|
return e;
|
|
1471
1468
|
let s = n;
|
|
1472
1469
|
return s = s.replace(t, "function"), s + o;
|
|
1473
|
-
}, "convertShorthandMethods2"),
|
|
1470
|
+
}, "convertShorthandMethods2"), ro = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, J = /* @__PURE__ */ a((r) => r.match(/^[\[\{\"\}].*[\]\}\"]$/),
|
|
1474
1471
|
"isJSON");
|
|
1475
1472
|
function qt(r) {
|
|
1476
1473
|
if (!it(r))
|
|
@@ -1486,7 +1483,7 @@ function qt(r) {
|
|
|
1486
1483
|
}, {}), e ? t : r;
|
|
1487
1484
|
}
|
|
1488
1485
|
a(qt, "convertUnconventionalData");
|
|
1489
|
-
var
|
|
1486
|
+
var no = /* @__PURE__ */ a(function(t) {
|
|
1490
1487
|
let e, n, o, s;
|
|
1491
1488
|
return /* @__PURE__ */ a(function(c, i) {
|
|
1492
1489
|
try {
|
|
@@ -1506,19 +1503,19 @@ var ro = /* @__PURE__ */ a(function(t) {
|
|
|
1506
1503
|
if (typeof i == "bigint")
|
|
1507
1504
|
return `_bigint_${i.toString()}`;
|
|
1508
1505
|
if (typeof i == "string")
|
|
1509
|
-
return
|
|
1510
|
-
if ((0,
|
|
1506
|
+
return ro.test(i) ? t.allowDate ? `_date_${i}` : void 0 : i;
|
|
1507
|
+
if ((0, je.default)(i))
|
|
1511
1508
|
return t.allowRegExp ? `_regexp_${i.flags}|${i.source}` : void 0;
|
|
1512
|
-
if ((0,
|
|
1509
|
+
if ((0, Le.default)(i)) {
|
|
1513
1510
|
if (!t.allowFunction)
|
|
1514
1511
|
return;
|
|
1515
1512
|
let { name: u } = i, y = i.toString();
|
|
1516
1513
|
return y.match(
|
|
1517
1514
|
/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/
|
|
1518
1515
|
) ? `_function_${u}|${(() => {
|
|
1519
|
-
}).toString()}` : `_function_${u}|${
|
|
1516
|
+
}).toString()}` : `_function_${u}|${to(eo(c, y))}`;
|
|
1520
1517
|
}
|
|
1521
|
-
if ((0,
|
|
1518
|
+
if ((0, De.default)(i)) {
|
|
1522
1519
|
if (!t.allowSymbol)
|
|
1523
1520
|
return;
|
|
1524
1521
|
let u = Symbol.keyFor(i);
|
|
@@ -1557,12 +1554,12 @@ var ro = /* @__PURE__ */ a(function(t) {
|
|
|
1557
1554
|
return;
|
|
1558
1555
|
}
|
|
1559
1556
|
}, "replace");
|
|
1560
|
-
}, "replacer2"),
|
|
1557
|
+
}, "replacer2"), oo = /* @__PURE__ */ a(function reviver(options) {
|
|
1561
1558
|
let refs = [], root;
|
|
1562
1559
|
return /* @__PURE__ */ a(function revive(key, value) {
|
|
1563
1560
|
if (key === "" && (root = value, refs.forEach(({ target: r, container: t, replacement: e }) => {
|
|
1564
1561
|
let n = J(e) ? JSON.parse(e) : e.split(".");
|
|
1565
|
-
n.length === 0 ? t[r] = root : t[r] =
|
|
1562
|
+
n.length === 0 ? t[r] = root : t[r] = Qn(root, n);
|
|
1566
1563
|
})), key === "_constructor-name_")
|
|
1567
1564
|
return value;
|
|
1568
1565
|
if (it(value) && value.__isConvertedError__) {
|
|
@@ -1616,8 +1613,8 @@ NaN_" ? NaN : typeof value == "string" && value.startsWith("_bigint_") && typeof
|
|
|
1616
1613
|
lazyEval: !0
|
|
1617
1614
|
}, lt = /* @__PURE__ */ a((r, t = {}) => {
|
|
1618
1615
|
let e = { ...Vt, ...t };
|
|
1619
|
-
return JSON.stringify(qt(r),
|
|
1620
|
-
}, "stringify"),
|
|
1616
|
+
return JSON.stringify(qt(r), no(e), t.space);
|
|
1617
|
+
}, "stringify"), io = /* @__PURE__ */ a(() => {
|
|
1621
1618
|
let r = /* @__PURE__ */ new Map();
|
|
1622
1619
|
return /* @__PURE__ */ a(function t(e) {
|
|
1623
1620
|
it(e) && Object.entries(e).forEach(([n, o]) => {
|
|
@@ -1627,15 +1624,15 @@ NaN_" ? NaN : typeof value == "string" && value.startsWith("_bigint_") && typeof
|
|
|
1627
1624
|
});
|
|
1628
1625
|
}, "mutateUndefined");
|
|
1629
1626
|
}, "mutator"), ct = /* @__PURE__ */ a((r, t = {}) => {
|
|
1630
|
-
let e = { ...Vt, ...t }, n = JSON.parse(r,
|
|
1631
|
-
return
|
|
1627
|
+
let e = { ...Vt, ...t }, n = JSON.parse(r, oo(e));
|
|
1628
|
+
return io()(n), n;
|
|
1632
1629
|
}, "parse");
|
|
1633
1630
|
|
|
1634
1631
|
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
1635
|
-
var
|
|
1632
|
+
var ao = !1, St = "Invariant failed";
|
|
1636
1633
|
function K(r, t) {
|
|
1637
1634
|
if (!r) {
|
|
1638
|
-
if (
|
|
1635
|
+
if (ao)
|
|
1639
1636
|
throw new Error(St);
|
|
1640
1637
|
var e = typeof t == "function" ? t() : t, n = e ? "".concat(St, ": ").concat(e) : St;
|
|
1641
1638
|
throw new Error(n);
|
|
@@ -1644,7 +1641,7 @@ function K(r, t) {
|
|
|
1644
1641
|
a(K, "invariant");
|
|
1645
1642
|
|
|
1646
1643
|
// src/channels/postmessage/getEventSourceUrl.ts
|
|
1647
|
-
import { logger as
|
|
1644
|
+
import { logger as so } from "storybook/internal/client-logger";
|
|
1648
1645
|
var Jt = /* @__PURE__ */ a((r) => {
|
|
1649
1646
|
let t = Array.from(
|
|
1650
1647
|
document.querySelectorAll("iframe[data-is-storybook]")
|
|
@@ -1671,15 +1668,15 @@ var Jt = /* @__PURE__ */ a((r) => {
|
|
|
1671
1668
|
let { protocol: s, host: l, pathname: c } = new URL(o, document.location.toString());
|
|
1672
1669
|
return `${s}//${l}${c}`;
|
|
1673
1670
|
}
|
|
1674
|
-
return n.length > 0 &&
|
|
1671
|
+
return n.length > 0 && so.error("found multiple candidates for event source"), null;
|
|
1675
1672
|
}, "getEventSourceUrl");
|
|
1676
1673
|
|
|
1677
1674
|
// src/channels/postmessage/index.ts
|
|
1678
|
-
var { document: _t, location: Tt } =
|
|
1675
|
+
var { document: _t, location: Tt } = A, Xt = "storybook-channel", co = { allowFunction: !1, maxDepth: 25 }, At = class At {
|
|
1679
1676
|
constructor(t) {
|
|
1680
1677
|
this.config = t;
|
|
1681
1678
|
this.connected = !1;
|
|
1682
|
-
if (this.buffer = [], typeof
|
|
1679
|
+
if (this.buffer = [], typeof A?.addEventListener == "function" && A.addEventListener("message", this.handleEvent.bind(this), !1), t.page !==
|
|
1683
1680
|
"manager" && t.page !== "preview")
|
|
1684
1681
|
throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`);
|
|
1685
1682
|
}
|
|
@@ -1722,10 +1719,10 @@ var { document: _t, location: Tt } = S, Xt = "storybook-channel", lo = { allowFu
|
|
|
1722
1719
|
lazyEval: v
|
|
1723
1720
|
}).filter(([R, C]) => typeof C < "u")
|
|
1724
1721
|
), m = {
|
|
1725
|
-
...
|
|
1726
|
-
...
|
|
1722
|
+
...co,
|
|
1723
|
+
...A.CHANNEL_OPTIONS || {},
|
|
1727
1724
|
...d
|
|
1728
|
-
}, E = this.getFrames(n), I = new URLSearchParams(Tt?.search || ""),
|
|
1725
|
+
}, E = this.getFrames(n), I = new URLSearchParams(Tt?.search || ""), _ = lt(
|
|
1729
1726
|
{
|
|
1730
1727
|
key: Xt,
|
|
1731
1728
|
event: t,
|
|
@@ -1735,7 +1732,7 @@ var { document: _t, location: Tt } = S, Xt = "storybook-channel", lo = { allowFu
|
|
|
1735
1732
|
);
|
|
1736
1733
|
return E.length ? (this.buffer.length && this.flush(), E.forEach((R) => {
|
|
1737
1734
|
try {
|
|
1738
|
-
R.postMessage(
|
|
1735
|
+
R.postMessage(_, "*");
|
|
1739
1736
|
} catch {
|
|
1740
1737
|
Kt.error("sending over postmessage fail");
|
|
1741
1738
|
}
|
|
@@ -1762,24 +1759,24 @@ var { document: _t, location: Tt } = S, Xt = "storybook-channel", lo = { allowFu
|
|
|
1762
1759
|
});
|
|
1763
1760
|
return n?.length ? n : this.getCurrentFrames();
|
|
1764
1761
|
}
|
|
1765
|
-
return
|
|
1762
|
+
return A && A.parent && A.parent !== A.self ? [A.parent] : [];
|
|
1766
1763
|
}
|
|
1767
1764
|
getCurrentFrames() {
|
|
1768
1765
|
return this.config.page === "manager" ? Array.from(
|
|
1769
1766
|
_t.querySelectorAll('[data-is-storybook="true"]')
|
|
1770
|
-
).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) :
|
|
1767
|
+
).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : A && A.parent ? [A.parent] : [];
|
|
1771
1768
|
}
|
|
1772
1769
|
getLocalFrame() {
|
|
1773
1770
|
return this.config.page === "manager" ? Array.from(
|
|
1774
1771
|
_t.querySelectorAll("#storybook-preview-iframe")
|
|
1775
|
-
).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) :
|
|
1772
|
+
).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : A && A.parent ? [A.parent] : [];
|
|
1776
1773
|
}
|
|
1777
1774
|
handleEvent(t) {
|
|
1778
1775
|
try {
|
|
1779
|
-
let { data: e } = t, { key: n, event: o, refId: s } = typeof e == "string" && J(e) ? ct(e,
|
|
1776
|
+
let { data: e } = t, { key: n, event: o, refId: s } = typeof e == "string" && J(e) ? ct(e, A.CHANNEL_OPTIONS || {}) : e;
|
|
1780
1777
|
if (n === Xt) {
|
|
1781
1778
|
let l = this.config.page === "manager" ? '<span style="color: #37D5D3; background: black"> manager </span>' : '<span style="color: #\
|
|
1782
|
-
1EA7FD; background: black"> preview </span>', c = Object.values(
|
|
1779
|
+
1EA7FD; background: black"> preview </span>', c = Object.values(lo).includes(o.type) ? `<span style="color: #FF4785">${o.type}</span>` : `<s\
|
|
1783
1780
|
pan style="color: #FFAE00">${o.type}</span>`;
|
|
1784
1781
|
if (s && (o.refId = s), o.source = this.config.page === "preview" ? t.origin : Jt(t), !o.source) {
|
|
1785
1782
|
Yt.error(
|
|
@@ -1803,13 +1800,14 @@ var Y = At;
|
|
|
1803
1800
|
|
|
1804
1801
|
// src/channels/websocket/index.ts
|
|
1805
1802
|
import * as Qt from "storybook/internal/core-events";
|
|
1806
|
-
|
|
1803
|
+
import { global as Zt } from "@storybook/global";
|
|
1804
|
+
var { WebSocket: po } = Zt, te = 15e3, ee = 5e3, wt = class wt {
|
|
1807
1805
|
constructor({ url: t, onError: e, page: n }) {
|
|
1808
1806
|
this.buffer = [];
|
|
1809
1807
|
this.isReady = !1;
|
|
1810
1808
|
this.isClosed = !1;
|
|
1811
1809
|
this.pingTimeout = 0;
|
|
1812
|
-
this.socket = new
|
|
1810
|
+
this.socket = new po(t), this.socket.onopen = () => {
|
|
1813
1811
|
this.isReady = !0, this.heartbeat(), this.flush();
|
|
1814
1812
|
}, this.socket.onmessage = ({ data: o }) => {
|
|
1815
1813
|
let s = typeof o == "string" && J(o) ? ct(o) : o;
|
|
@@ -1828,7 +1826,7 @@ pong" }));
|
|
|
1828
1826
|
heartbeat() {
|
|
1829
1827
|
clearTimeout(this.pingTimeout), this.pingTimeout = setTimeout(() => {
|
|
1830
1828
|
this.socket.close(3008, "timeout");
|
|
1831
|
-
},
|
|
1829
|
+
}, te + ee);
|
|
1832
1830
|
}
|
|
1833
1831
|
setHandler(t) {
|
|
1834
1832
|
this.handler = t;
|
|
@@ -1843,7 +1841,7 @@ pong" }));
|
|
|
1843
1841
|
let e = lt(t, {
|
|
1844
1842
|
maxDepth: 15,
|
|
1845
1843
|
allowFunction: !1,
|
|
1846
|
-
...
|
|
1844
|
+
...Zt.CHANNEL_OPTIONS
|
|
1847
1845
|
});
|
|
1848
1846
|
this.socket.send(e);
|
|
1849
1847
|
}
|
|
@@ -1856,10 +1854,10 @@ a(wt, "WebsocketTransport");
|
|
|
1856
1854
|
var X = wt;
|
|
1857
1855
|
|
|
1858
1856
|
// src/channels/index.ts
|
|
1859
|
-
var { CONFIG_TYPE:
|
|
1860
|
-
function
|
|
1857
|
+
var { CONFIG_TYPE: fo } = uo, Qo = B;
|
|
1858
|
+
function Zo({ page: r, extraTransports: t = [] }) {
|
|
1861
1859
|
let e = [new Y({ page: r }), ...t];
|
|
1862
|
-
if (
|
|
1860
|
+
if (fo === "DEVELOPMENT") {
|
|
1863
1861
|
let o = window.location.protocol === "http:" ? "ws" : "wss", { hostname: s, port: l } = window.location, c = `${o}://${s}:${l}/storybook\
|
|
1864
1862
|
-server-channel`;
|
|
1865
1863
|
e.push(new X({ url: c, onError: /* @__PURE__ */ a(() => {
|
|
@@ -1871,13 +1869,13 @@ function Qo({ page: r, extraTransports: t = [] }) {
|
|
|
1871
1869
|
r === "manager" ? $.Environment.MANAGER : $.Environment.PREVIEW
|
|
1872
1870
|
), n;
|
|
1873
1871
|
}
|
|
1874
|
-
a(
|
|
1872
|
+
a(Zo, "createBrowserChannel");
|
|
1875
1873
|
export {
|
|
1876
1874
|
B as Channel,
|
|
1877
|
-
|
|
1878
|
-
|
|
1875
|
+
te as HEARTBEAT_INTERVAL,
|
|
1876
|
+
ee as HEARTBEAT_MAX_LATENCY,
|
|
1879
1877
|
Y as PostMessageTransport,
|
|
1880
1878
|
X as WebsocketTransport,
|
|
1881
|
-
|
|
1882
|
-
|
|
1879
|
+
Zo as createBrowserChannel,
|
|
1880
|
+
Qo as default
|
|
1883
1881
|
};
|