@kosdev-code/kos-ui-plugin 2.1.18 → 2.1.20
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/documentation-generator-CAlVz5vA.cjs +266 -0
- package/documentation-generator-CAlVz5vA.cjs.map +1 -0
- package/documentation-generator-Di4c9D9P.js +2337 -0
- package/documentation-generator-Di4c9D9P.js.map +1 -0
- package/index.cjs +69 -69
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +938 -848
- package/index.js.map +1 -1
- package/lib/components/dynamic-component/dynamic-component.d.ts +69 -0
- package/lib/components/dynamic-component/dynamic-component.d.ts.map +1 -1
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/index.d.ts.map +1 -1
- package/lib/contexts/plugins-provider/plugins-provider.d.ts.map +1 -1
- package/lib/contexts/reactive-extension-registry-context.d.ts +10 -0
- package/lib/contexts/reactive-extension-registry-context.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +4 -2
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/use-dynamic-component.d.ts +12 -1
- package/lib/hooks/use-dynamic-component.d.ts.map +1 -1
- package/lib/hooks/use-extension-component.d.ts +11 -0
- package/lib/hooks/use-extension-component.d.ts.map +1 -1
- package/lib/hooks/use-extension-point.d.ts +95 -0
- package/lib/hooks/use-extension-point.d.ts.map +1 -0
- package/lib/hooks/use-reactive-extension-registry.d.ts +20 -0
- package/lib/hooks/use-reactive-extension-registry.d.ts.map +1 -0
- package/lib/hooks/use-typed-extensions.d.ts.map +1 -1
- package/lib/utils/contribution-registry.d.ts +170 -0
- package/lib/utils/contribution-registry.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-registry.d.ts.map +1 -1
- package/lib/utils/extension-points/extension-point-schemas.d.ts +4 -4
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/plugin-system/plugin-extension-manager.d.ts.map +1 -1
- package/lib/utils/processors/initialize-plugins.d.ts.map +1 -1
- package/lib/utils/reactive-extension-registry.d.ts +140 -0
- package/lib/utils/reactive-extension-registry.d.ts.map +1 -0
- package/lib/webpack/index.d.ts +2 -0
- package/lib/webpack/index.d.ts.map +1 -1
- package/lib/webpack/with-plugin-dev-aggregator.d.ts +94 -0
- package/lib/webpack/with-plugin-dev-aggregator.d.ts.map +1 -0
- package/lib/webpack/with-plugin-dev-server.d.ts +113 -0
- package/lib/webpack/with-plugin-dev-server.d.ts.map +1 -0
- package/package.json +2 -2
- package/types/contribution-enablement.d.ts +293 -0
- package/types/contribution-enablement.d.ts.map +1 -0
- package/types/plugins.d.ts +8 -0
- package/utils.cjs +1 -1
- package/utils.cjs.map +1 -1
- package/utils.js +29 -291
- package/utils.js.map +1 -1
- package/webpack.cjs +3 -12
- package/webpack.cjs.map +1 -1
- package/webpack.js +455 -727
- package/webpack.js.map +1 -1
- package/documentation-generator-DFaIDo0E.cjs +0 -266
- package/documentation-generator-DFaIDo0E.cjs.map +0 -1
- package/documentation-generator-auruIa_o.js +0 -1560
- package/documentation-generator-auruIa_o.js.map +0 -1
package/index.js
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import Y, { forwardRef as
|
|
1
|
+
import * as te from "react/jsx-runtime";
|
|
2
|
+
import * as j from "react";
|
|
3
|
+
import Y, { forwardRef as Vt, useContext as Re, createContext as Je, useState as B, useEffect as W, useMemo as L, Suspense as jt } from "react";
|
|
4
4
|
import h from "@emotion/styled";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { r as ne, m as Bt, R as Kt, a as Yt, b as Wt, P as re, g as Ht, c as _e, D as Ut } from "./documentation-generator-Di4c9D9P.js";
|
|
6
|
+
import { C as mi, f as gi, h as xi, e as yi, d as bi, l as vi } from "./documentation-generator-Di4c9D9P.js";
|
|
7
|
+
import { useKosTranslation as Gt } from "@kosdev-code/kos-ui-sdk";
|
|
7
8
|
import "zod";
|
|
8
|
-
function
|
|
9
|
+
function qt(e) {
|
|
9
10
|
if (e.sheet)
|
|
10
11
|
return e.sheet;
|
|
11
12
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
12
13
|
if (document.styleSheets[t].ownerNode === e)
|
|
13
14
|
return document.styleSheets[t];
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function Zt(e) {
|
|
16
17
|
var t = document.createElement("style");
|
|
17
18
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
18
19
|
}
|
|
19
|
-
var
|
|
20
|
+
var Xt = /* @__PURE__ */ function() {
|
|
20
21
|
function e(n) {
|
|
21
22
|
var r = this;
|
|
22
|
-
this._insertTag = function(
|
|
23
|
-
var
|
|
24
|
-
r.tags.length === 0 ? r.insertionPoint ?
|
|
23
|
+
this._insertTag = function(i) {
|
|
24
|
+
var o;
|
|
25
|
+
r.tags.length === 0 ? r.insertionPoint ? o = r.insertionPoint.nextSibling : r.prepend ? o = r.container.firstChild : o = r.before : o = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, o), r.tags.push(i);
|
|
25
26
|
}, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
|
|
26
27
|
}
|
|
27
28
|
var t = e.prototype;
|
|
28
29
|
return t.hydrate = function(r) {
|
|
29
30
|
r.forEach(this._insertTag);
|
|
30
31
|
}, t.insert = function(r) {
|
|
31
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
32
|
-
var
|
|
32
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Zt(this));
|
|
33
|
+
var i = this.tags[this.tags.length - 1];
|
|
33
34
|
if (this.isSpeedy) {
|
|
34
|
-
var
|
|
35
|
+
var o = qt(i);
|
|
35
36
|
try {
|
|
36
|
-
|
|
37
|
+
o.insertRule(r, o.cssRules.length);
|
|
37
38
|
} catch {
|
|
38
39
|
}
|
|
39
40
|
} else
|
|
40
|
-
|
|
41
|
+
i.appendChild(document.createTextNode(r));
|
|
41
42
|
this.ctr++;
|
|
42
43
|
}, t.flush = function() {
|
|
43
44
|
this.tags.forEach(function(r) {
|
|
44
|
-
var
|
|
45
|
-
return (
|
|
45
|
+
var i;
|
|
46
|
+
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
|
|
46
47
|
}), this.tags = [], this.ctr = 0;
|
|
47
48
|
}, e;
|
|
48
|
-
}(), z = "-ms-", he = "-moz-",
|
|
49
|
-
function
|
|
49
|
+
}(), z = "-ms-", he = "-moz-", E = "-webkit-", Qe = "comm", Te = "rule", Me = "decl", Jt = "@import", et = "@keyframes", Qt = "@layer", en = Math.abs, me = String.fromCharCode, tn = Object.assign;
|
|
50
|
+
function nn(e, t) {
|
|
50
51
|
return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function tt(e) {
|
|
53
54
|
return e.trim();
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function rn(e, t) {
|
|
56
57
|
return (e = t.exec(e)) ? e[0] : e;
|
|
57
58
|
}
|
|
58
59
|
function w(e, t, n) {
|
|
@@ -64,10 +65,10 @@ function Ce(e, t) {
|
|
|
64
65
|
function A(e, t) {
|
|
65
66
|
return e.charCodeAt(t) | 0;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function ie(e, t, n) {
|
|
68
69
|
return e.slice(t, n);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function D(e) {
|
|
71
72
|
return e.length;
|
|
72
73
|
}
|
|
73
74
|
function Ae(e) {
|
|
@@ -76,33 +77,33 @@ function Ae(e) {
|
|
|
76
77
|
function le(e, t) {
|
|
77
78
|
return t.push(e), e;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function on(e, t) {
|
|
80
81
|
return e.map(t).join("");
|
|
81
82
|
}
|
|
82
|
-
var ge = 1,
|
|
83
|
-
function xe(e, t, n, r,
|
|
84
|
-
return { value: e, root: t, parent: n, type: r, props:
|
|
83
|
+
var ge = 1, q = 1, nt = 0, O = 0, T = 0, Z = "";
|
|
84
|
+
function xe(e, t, n, r, i, o, s) {
|
|
85
|
+
return { value: e, root: t, parent: n, type: r, props: i, children: o, line: ge, column: q, length: s, return: "" };
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
87
|
+
function J(e, t) {
|
|
88
|
+
return tn(xe("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
90
|
+
function sn() {
|
|
91
|
+
return T;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
93
|
+
function an() {
|
|
94
|
+
return T = O > 0 ? A(Z, --O) : 0, q--, T === 10 && (q = 1, ge--), T;
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
96
|
+
function F() {
|
|
97
|
+
return T = O < nt ? A(Z, O++) : 0, q++, T === 10 && (q = 1, ge++), T;
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
-
return A(
|
|
99
|
+
function V() {
|
|
100
|
+
return A(Z, O);
|
|
100
101
|
}
|
|
101
102
|
function fe() {
|
|
102
|
-
return
|
|
103
|
+
return O;
|
|
103
104
|
}
|
|
104
105
|
function ae(e, t) {
|
|
105
|
-
return
|
|
106
|
+
return ie(Z, e, t);
|
|
106
107
|
}
|
|
107
108
|
function oe(e) {
|
|
108
109
|
switch (e) {
|
|
@@ -136,234 +137,234 @@ function oe(e) {
|
|
|
136
137
|
}
|
|
137
138
|
return 0;
|
|
138
139
|
}
|
|
139
|
-
function nt(e) {
|
|
140
|
-
return ge = G = 1, tt = O(q = e), F = 0, [];
|
|
141
|
-
}
|
|
142
140
|
function rt(e) {
|
|
143
|
-
return q =
|
|
141
|
+
return ge = q = 1, nt = D(Z = e), O = 0, [];
|
|
142
|
+
}
|
|
143
|
+
function it(e) {
|
|
144
|
+
return Z = "", e;
|
|
144
145
|
}
|
|
145
146
|
function ue(e) {
|
|
146
|
-
return
|
|
147
|
+
return tt(ae(O - 1, Se(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
-
for (; (
|
|
150
|
-
|
|
151
|
-
return oe(e) > 2 || oe(
|
|
149
|
+
function cn(e) {
|
|
150
|
+
for (; (T = V()) && T < 33; )
|
|
151
|
+
F();
|
|
152
|
+
return oe(e) > 2 || oe(T) > 3 ? "" : " ";
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
-
for (; --t &&
|
|
154
|
+
function ln(e, t) {
|
|
155
|
+
for (; --t && F() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
155
156
|
;
|
|
156
|
-
return ae(e, fe() + (t < 6 &&
|
|
157
|
+
return ae(e, fe() + (t < 6 && V() == 32 && F() == 32));
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
-
for (;
|
|
160
|
-
switch (
|
|
159
|
+
function Se(e) {
|
|
160
|
+
for (; F(); )
|
|
161
|
+
switch (T) {
|
|
161
162
|
case e:
|
|
162
|
-
return
|
|
163
|
+
return O;
|
|
163
164
|
case 34:
|
|
164
165
|
case 39:
|
|
165
|
-
e !== 34 && e !== 39 &&
|
|
166
|
+
e !== 34 && e !== 39 && Se(T);
|
|
166
167
|
break;
|
|
167
168
|
case 40:
|
|
168
|
-
e === 41 &&
|
|
169
|
+
e === 41 && Se(e);
|
|
169
170
|
break;
|
|
170
171
|
case 92:
|
|
171
|
-
|
|
172
|
+
F();
|
|
172
173
|
break;
|
|
173
174
|
}
|
|
174
|
-
return
|
|
175
|
+
return O;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
-
for (;
|
|
178
|
-
if (e +
|
|
177
|
+
function dn(e, t) {
|
|
178
|
+
for (; F() && e + T !== 57; )
|
|
179
|
+
if (e + T === 84 && V() === 47)
|
|
179
180
|
break;
|
|
180
|
-
return "/*" + ae(t,
|
|
181
|
+
return "/*" + ae(t, O - 1) + "*" + me(e === 47 ? e : F());
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
-
for (; !oe(
|
|
184
|
-
|
|
185
|
-
return ae(e,
|
|
183
|
+
function fn(e) {
|
|
184
|
+
for (; !oe(V()); )
|
|
185
|
+
F();
|
|
186
|
+
return ae(e, O);
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
188
|
+
function un(e) {
|
|
189
|
+
return it(pe("", null, null, null, [""], e = rt(e), 0, [0], e));
|
|
189
190
|
}
|
|
190
|
-
function pe(e, t, n, r, o,
|
|
191
|
-
for (var u = 0,
|
|
192
|
-
switch (y =
|
|
191
|
+
function pe(e, t, n, r, i, o, s, a, f) {
|
|
192
|
+
for (var u = 0, d = 0, c = s, x = 0, b = 0, y = 0, v = 1, M = 1, $ = 1, _ = 0, k = "", R = i, p = o, N = r, P = k; M; )
|
|
193
|
+
switch (y = _, _ = F()) {
|
|
193
194
|
case 40:
|
|
194
|
-
if (y != 108 && A(P,
|
|
195
|
-
Ce(P += w(ue(
|
|
195
|
+
if (y != 108 && A(P, c - 1) == 58) {
|
|
196
|
+
Ce(P += w(ue(_), "&", "&\f"), "&\f") != -1 && ($ = -1);
|
|
196
197
|
break;
|
|
197
198
|
}
|
|
198
199
|
case 34:
|
|
199
200
|
case 39:
|
|
200
201
|
case 91:
|
|
201
|
-
P += ue(
|
|
202
|
+
P += ue(_);
|
|
202
203
|
break;
|
|
203
204
|
case 9:
|
|
204
205
|
case 10:
|
|
205
206
|
case 13:
|
|
206
207
|
case 32:
|
|
207
|
-
P +=
|
|
208
|
+
P += cn(y);
|
|
208
209
|
break;
|
|
209
210
|
case 92:
|
|
210
|
-
P +=
|
|
211
|
+
P += ln(fe() - 1, 7);
|
|
211
212
|
continue;
|
|
212
213
|
case 47:
|
|
213
|
-
switch (
|
|
214
|
+
switch (V()) {
|
|
214
215
|
case 42:
|
|
215
216
|
case 47:
|
|
216
|
-
le(dn(
|
|
217
|
+
le(pn(dn(F(), fe()), t, n), f);
|
|
217
218
|
break;
|
|
218
219
|
default:
|
|
219
220
|
P += "/";
|
|
220
221
|
}
|
|
221
222
|
break;
|
|
222
|
-
case 123 *
|
|
223
|
-
|
|
224
|
-
case 125 *
|
|
223
|
+
case 123 * v:
|
|
224
|
+
a[u++] = D(P) * $;
|
|
225
|
+
case 125 * v:
|
|
225
226
|
case 59:
|
|
226
227
|
case 0:
|
|
227
|
-
switch (
|
|
228
|
+
switch (_) {
|
|
228
229
|
case 0:
|
|
229
230
|
case 125:
|
|
230
231
|
M = 0;
|
|
231
|
-
case 59 +
|
|
232
|
-
$ == -1 && (P = w(P, /\f/g, "")), b > 0 &&
|
|
232
|
+
case 59 + d:
|
|
233
|
+
$ == -1 && (P = w(P, /\f/g, "")), b > 0 && D(P) - c && le(b > 32 ? Ve(P + ";", r, n, c - 1) : Ve(w(P, " ", "") + ";", r, n, c - 2), f);
|
|
233
234
|
break;
|
|
234
235
|
case 59:
|
|
235
236
|
P += ";";
|
|
236
237
|
default:
|
|
237
|
-
if (le(N = Ie(P, t, n, u,
|
|
238
|
-
if (
|
|
239
|
-
pe(P, t, N, N,
|
|
238
|
+
if (le(N = Ie(P, t, n, u, d, i, a, k, R = [], p = [], c), o), _ === 123)
|
|
239
|
+
if (d === 0)
|
|
240
|
+
pe(P, t, N, N, R, o, c, a, p);
|
|
240
241
|
else
|
|
241
242
|
switch (x === 99 && A(P, 3) === 110 ? 100 : x) {
|
|
242
243
|
case 100:
|
|
243
244
|
case 108:
|
|
244
245
|
case 109:
|
|
245
246
|
case 115:
|
|
246
|
-
pe(e, N, N, r && le(Ie(e, N, N, 0, 0,
|
|
247
|
+
pe(e, N, N, r && le(Ie(e, N, N, 0, 0, i, a, k, i, R = [], c), p), i, p, c, a, r ? R : p);
|
|
247
248
|
break;
|
|
248
249
|
default:
|
|
249
|
-
pe(P, N, N, N, [""], p, 0,
|
|
250
|
+
pe(P, N, N, N, [""], p, 0, a, p);
|
|
250
251
|
}
|
|
251
252
|
}
|
|
252
|
-
u =
|
|
253
|
+
u = d = b = 0, v = $ = 1, k = P = "", c = s;
|
|
253
254
|
break;
|
|
254
255
|
case 58:
|
|
255
|
-
|
|
256
|
+
c = 1 + D(P), b = y;
|
|
256
257
|
default:
|
|
257
|
-
if (
|
|
258
|
-
if (
|
|
259
|
-
--
|
|
260
|
-
else if (
|
|
258
|
+
if (v < 1) {
|
|
259
|
+
if (_ == 123)
|
|
260
|
+
--v;
|
|
261
|
+
else if (_ == 125 && v++ == 0 && an() == 125)
|
|
261
262
|
continue;
|
|
262
263
|
}
|
|
263
|
-
switch (P += me(
|
|
264
|
+
switch (P += me(_), _ * v) {
|
|
264
265
|
case 38:
|
|
265
|
-
$ =
|
|
266
|
+
$ = d > 0 ? 1 : (P += "\f", -1);
|
|
266
267
|
break;
|
|
267
268
|
case 44:
|
|
268
|
-
|
|
269
|
+
a[u++] = (D(P) - 1) * $, $ = 1;
|
|
269
270
|
break;
|
|
270
271
|
case 64:
|
|
271
|
-
|
|
272
|
+
V() === 45 && (P += ue(F())), x = V(), d = c = D(k = P += fn(fe())), _++;
|
|
272
273
|
break;
|
|
273
274
|
case 45:
|
|
274
|
-
y === 45 &&
|
|
275
|
+
y === 45 && D(P) == 2 && (v = 0);
|
|
275
276
|
}
|
|
276
277
|
}
|
|
277
|
-
return
|
|
278
|
+
return o;
|
|
278
279
|
}
|
|
279
|
-
function Ie(e, t, n, r, o,
|
|
280
|
-
for (var
|
|
281
|
-
for (var $ = 0,
|
|
282
|
-
(k =
|
|
283
|
-
return xe(e, t, n,
|
|
280
|
+
function Ie(e, t, n, r, i, o, s, a, f, u, d) {
|
|
281
|
+
for (var c = i - 1, x = i === 0 ? o : [""], b = Ae(x), y = 0, v = 0, M = 0; y < r; ++y)
|
|
282
|
+
for (var $ = 0, _ = ie(e, c + 1, c = en(v = s[y])), k = e; $ < b; ++$)
|
|
283
|
+
(k = tt(v > 0 ? x[$] + " " + _ : w(_, /&\f/g, x[$]))) && (f[M++] = k);
|
|
284
|
+
return xe(e, t, n, i === 0 ? Te : a, f, u, d);
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
-
return xe(e, t, n,
|
|
286
|
+
function pn(e, t, n) {
|
|
287
|
+
return xe(e, t, n, Qe, me(sn()), ie(e, 2, -2), 0);
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
-
return xe(e, t, n, Me,
|
|
289
|
+
function Ve(e, t, n, r) {
|
|
290
|
+
return xe(e, t, n, Me, ie(e, 0, r), ie(e, r + 1, -1), r);
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
-
for (var n = "", r = Ae(e),
|
|
293
|
-
n += t(e[
|
|
292
|
+
function G(e, t) {
|
|
293
|
+
for (var n = "", r = Ae(e), i = 0; i < r; i++)
|
|
294
|
+
n += t(e[i], i, e, t) || "";
|
|
294
295
|
return n;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function hn(e, t, n, r) {
|
|
297
298
|
switch (e.type) {
|
|
298
|
-
case
|
|
299
|
+
case Qt:
|
|
299
300
|
if (e.children.length)
|
|
300
301
|
break;
|
|
301
|
-
case
|
|
302
|
+
case Jt:
|
|
302
303
|
case Me:
|
|
303
304
|
return e.return = e.return || e.value;
|
|
304
|
-
case Je:
|
|
305
|
-
return "";
|
|
306
305
|
case Qe:
|
|
307
|
-
return
|
|
308
|
-
case
|
|
306
|
+
return "";
|
|
307
|
+
case et:
|
|
308
|
+
return e.return = e.value + "{" + G(e.children, r) + "}";
|
|
309
|
+
case Te:
|
|
309
310
|
e.value = e.props.join(",");
|
|
310
311
|
}
|
|
311
|
-
return
|
|
312
|
+
return D(n = G(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function mn(e) {
|
|
314
315
|
var t = Ae(e);
|
|
315
|
-
return function(n, r,
|
|
316
|
-
for (var
|
|
317
|
-
|
|
318
|
-
return
|
|
316
|
+
return function(n, r, i, o) {
|
|
317
|
+
for (var s = "", a = 0; a < t; a++)
|
|
318
|
+
s += e[a](n, r, i, o) || "";
|
|
319
|
+
return s;
|
|
319
320
|
};
|
|
320
321
|
}
|
|
321
|
-
function
|
|
322
|
+
function gn(e) {
|
|
322
323
|
return function(t) {
|
|
323
324
|
t.root || (t = t.return) && e(t);
|
|
324
325
|
};
|
|
325
326
|
}
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
|
|
329
|
-
return ae(t,
|
|
330
|
-
},
|
|
331
|
-
var r = -1,
|
|
327
|
+
var xn = function(t, n, r) {
|
|
328
|
+
for (var i = 0, o = 0; i = o, o = V(), i === 38 && o === 12 && (n[r] = 1), !oe(o); )
|
|
329
|
+
F();
|
|
330
|
+
return ae(t, O);
|
|
331
|
+
}, yn = function(t, n) {
|
|
332
|
+
var r = -1, i = 44;
|
|
332
333
|
do
|
|
333
|
-
switch (oe(
|
|
334
|
+
switch (oe(i)) {
|
|
334
335
|
case 0:
|
|
335
|
-
|
|
336
|
+
i === 38 && V() === 12 && (n[r] = 1), t[r] += xn(O - 1, n, r);
|
|
336
337
|
break;
|
|
337
338
|
case 2:
|
|
338
|
-
t[r] += ue(
|
|
339
|
+
t[r] += ue(i);
|
|
339
340
|
break;
|
|
340
341
|
case 4:
|
|
341
|
-
if (
|
|
342
|
-
t[++r] =
|
|
342
|
+
if (i === 44) {
|
|
343
|
+
t[++r] = V() === 58 ? "&\f" : "", n[r] = t[r].length;
|
|
343
344
|
break;
|
|
344
345
|
}
|
|
345
346
|
default:
|
|
346
|
-
t[r] += me(
|
|
347
|
+
t[r] += me(i);
|
|
347
348
|
}
|
|
348
|
-
while (
|
|
349
|
+
while (i = F());
|
|
349
350
|
return t;
|
|
350
|
-
},
|
|
351
|
-
return
|
|
352
|
-
},
|
|
351
|
+
}, bn = function(t, n) {
|
|
352
|
+
return it(yn(rt(t), n));
|
|
353
|
+
}, je = /* @__PURE__ */ new WeakMap(), vn = function(t) {
|
|
353
354
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
354
355
|
// negative .length indicates that this rule has been already prefixed
|
|
355
356
|
t.length < 1)) {
|
|
356
|
-
for (var n = t.value, r = t.parent,
|
|
357
|
+
for (var n = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
|
|
357
358
|
if (r = r.parent, !r)
|
|
358
359
|
return;
|
|
359
|
-
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !
|
|
360
|
-
|
|
361
|
-
for (var
|
|
362
|
-
for (var
|
|
363
|
-
t.props[u] =
|
|
360
|
+
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !je.get(r)) && !i) {
|
|
361
|
+
je.set(t, !0);
|
|
362
|
+
for (var o = [], s = bn(n, o), a = r.props, f = 0, u = 0; f < s.length; f++)
|
|
363
|
+
for (var d = 0; d < a.length; d++, u++)
|
|
364
|
+
t.props[u] = o[f] ? s[f].replace(/&\f/g, a[d]) : a[d] + " " + s[f];
|
|
364
365
|
}
|
|
365
366
|
}
|
|
366
|
-
},
|
|
367
|
+
}, En = function(t) {
|
|
367
368
|
if (t.type === "decl") {
|
|
368
369
|
var n = t.value;
|
|
369
370
|
// charcode for l
|
|
@@ -372,9 +373,9 @@ var hn = function(t, n, r) {
|
|
|
372
373
|
}
|
|
373
374
|
};
|
|
374
375
|
function ot(e, t) {
|
|
375
|
-
switch (
|
|
376
|
+
switch (nn(e, t)) {
|
|
376
377
|
case 5103:
|
|
377
|
-
return
|
|
378
|
+
return E + "print-" + e + e;
|
|
378
379
|
case 5737:
|
|
379
380
|
case 4201:
|
|
380
381
|
case 3177:
|
|
@@ -400,44 +401,44 @@ function ot(e, t) {
|
|
|
400
401
|
case 5365:
|
|
401
402
|
case 5621:
|
|
402
403
|
case 3829:
|
|
403
|
-
return
|
|
404
|
+
return E + e + e;
|
|
404
405
|
case 5349:
|
|
405
406
|
case 4246:
|
|
406
407
|
case 4810:
|
|
407
408
|
case 6968:
|
|
408
409
|
case 2756:
|
|
409
|
-
return
|
|
410
|
+
return E + e + he + e + z + e + e;
|
|
410
411
|
case 6828:
|
|
411
412
|
case 4268:
|
|
412
|
-
return
|
|
413
|
+
return E + e + z + e + e;
|
|
413
414
|
case 6165:
|
|
414
|
-
return
|
|
415
|
+
return E + e + z + "flex-" + e + e;
|
|
415
416
|
case 5187:
|
|
416
|
-
return
|
|
417
|
+
return E + e + w(e, /(\w+).+(:[^]+)/, E + "box-$1$2" + z + "flex-$1$2") + e;
|
|
417
418
|
case 5443:
|
|
418
|
-
return
|
|
419
|
+
return E + e + z + "flex-item-" + w(e, /flex-|-self/, "") + e;
|
|
419
420
|
case 4675:
|
|
420
|
-
return
|
|
421
|
+
return E + e + z + "flex-line-pack" + w(e, /align-content|flex-|-self/, "") + e;
|
|
421
422
|
case 5548:
|
|
422
|
-
return
|
|
423
|
+
return E + e + z + w(e, "shrink", "negative") + e;
|
|
423
424
|
case 5292:
|
|
424
|
-
return
|
|
425
|
+
return E + e + z + w(e, "basis", "preferred-size") + e;
|
|
425
426
|
case 6060:
|
|
426
|
-
return
|
|
427
|
+
return E + "box-" + w(e, "-grow", "") + E + e + z + w(e, "grow", "positive") + e;
|
|
427
428
|
case 4554:
|
|
428
|
-
return
|
|
429
|
+
return E + w(e, /([^-])(transform)/g, "$1" + E + "$2") + e;
|
|
429
430
|
case 6187:
|
|
430
|
-
return w(w(w(e, /(zoom-|grab)/,
|
|
431
|
+
return w(w(w(e, /(zoom-|grab)/, E + "$1"), /(image-set)/, E + "$1"), e, "") + e;
|
|
431
432
|
case 5495:
|
|
432
433
|
case 3959:
|
|
433
|
-
return w(e, /(image-set\([^]*)/,
|
|
434
|
+
return w(e, /(image-set\([^]*)/, E + "$1$`$1");
|
|
434
435
|
case 4968:
|
|
435
|
-
return w(w(e, /(.+:)(flex-)?(.*)/,
|
|
436
|
+
return w(w(e, /(.+:)(flex-)?(.*)/, E + "box-pack:$3" + z + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + E + e + e;
|
|
436
437
|
case 4095:
|
|
437
438
|
case 3583:
|
|
438
439
|
case 4068:
|
|
439
440
|
case 2532:
|
|
440
|
-
return w(e, /(.+)-inline(.+)/,
|
|
441
|
+
return w(e, /(.+)-inline(.+)/, E + "$1$2") + e;
|
|
441
442
|
case 8116:
|
|
442
443
|
case 7059:
|
|
443
444
|
case 5753:
|
|
@@ -450,13 +451,13 @@ function ot(e, t) {
|
|
|
450
451
|
case 5789:
|
|
451
452
|
case 5021:
|
|
452
453
|
case 4765:
|
|
453
|
-
if (
|
|
454
|
+
if (D(e) - 1 - t > 6)
|
|
454
455
|
switch (A(e, t + 1)) {
|
|
455
456
|
case 109:
|
|
456
457
|
if (A(e, t + 4) !== 45)
|
|
457
458
|
break;
|
|
458
459
|
case 102:
|
|
459
|
-
return w(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
460
|
+
return w(e, /(.+:)(.+)-([^]+)/, "$1" + E + "$2-$3$1" + he + (A(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
460
461
|
case 115:
|
|
461
462
|
return ~Ce(e, "stretch") ? ot(w(e, "stretch", "fill-available"), t) + e : e;
|
|
462
463
|
}
|
|
@@ -465,105 +466,105 @@ function ot(e, t) {
|
|
|
465
466
|
if (A(e, t + 1) !== 115)
|
|
466
467
|
break;
|
|
467
468
|
case 6444:
|
|
468
|
-
switch (A(e,
|
|
469
|
+
switch (A(e, D(e) - 3 - (~Ce(e, "!important") && 10))) {
|
|
469
470
|
case 107:
|
|
470
|
-
return w(e, ":", ":" +
|
|
471
|
+
return w(e, ":", ":" + E) + e;
|
|
471
472
|
case 101:
|
|
472
|
-
return w(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" +
|
|
473
|
+
return w(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + E + (A(e, 14) === 45 ? "inline-" : "") + "box$3$1" + E + "$2$3$1" + z + "$2box$3") + e;
|
|
473
474
|
}
|
|
474
475
|
break;
|
|
475
476
|
case 5936:
|
|
476
477
|
switch (A(e, t + 11)) {
|
|
477
478
|
case 114:
|
|
478
|
-
return
|
|
479
|
+
return E + e + z + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
479
480
|
case 108:
|
|
480
|
-
return
|
|
481
|
+
return E + e + z + w(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
481
482
|
case 45:
|
|
482
|
-
return
|
|
483
|
+
return E + e + z + w(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
483
484
|
}
|
|
484
|
-
return
|
|
485
|
+
return E + e + z + e + e;
|
|
485
486
|
}
|
|
486
487
|
return e;
|
|
487
488
|
}
|
|
488
|
-
var
|
|
489
|
+
var wn = function(t, n, r, i) {
|
|
489
490
|
if (t.length > -1 && !t.return)
|
|
490
491
|
switch (t.type) {
|
|
491
492
|
case Me:
|
|
492
493
|
t.return = ot(t.value, t.length);
|
|
493
494
|
break;
|
|
494
|
-
case
|
|
495
|
-
return
|
|
496
|
-
value: w(t.value, "@", "@" +
|
|
497
|
-
})],
|
|
498
|
-
case
|
|
495
|
+
case et:
|
|
496
|
+
return G([J(t, {
|
|
497
|
+
value: w(t.value, "@", "@" + E)
|
|
498
|
+
})], i);
|
|
499
|
+
case Te:
|
|
499
500
|
if (t.length)
|
|
500
|
-
return
|
|
501
|
-
switch (
|
|
501
|
+
return on(t.props, function(o) {
|
|
502
|
+
switch (rn(o, /(::plac\w+|:read-\w+)/)) {
|
|
502
503
|
case ":read-only":
|
|
503
504
|
case ":read-write":
|
|
504
|
-
return
|
|
505
|
-
props: [w(
|
|
506
|
-
})],
|
|
505
|
+
return G([J(t, {
|
|
506
|
+
props: [w(o, /:(read-\w+)/, ":" + he + "$1")]
|
|
507
|
+
})], i);
|
|
507
508
|
case "::placeholder":
|
|
508
|
-
return
|
|
509
|
-
props: [w(
|
|
510
|
-
}),
|
|
511
|
-
props: [w(
|
|
512
|
-
}),
|
|
513
|
-
props: [w(
|
|
514
|
-
})],
|
|
509
|
+
return G([J(t, {
|
|
510
|
+
props: [w(o, /:(plac\w+)/, ":" + E + "input-$1")]
|
|
511
|
+
}), J(t, {
|
|
512
|
+
props: [w(o, /:(plac\w+)/, ":" + he + "$1")]
|
|
513
|
+
}), J(t, {
|
|
514
|
+
props: [w(o, /:(plac\w+)/, z + "input-$1")]
|
|
515
|
+
})], i);
|
|
515
516
|
}
|
|
516
517
|
return "";
|
|
517
518
|
});
|
|
518
519
|
}
|
|
519
|
-
},
|
|
520
|
+
}, Cn = [wn], Sn = function(t) {
|
|
520
521
|
var n = t.key;
|
|
521
522
|
if (n === "css") {
|
|
522
523
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
523
|
-
Array.prototype.forEach.call(r, function(
|
|
524
|
-
var M =
|
|
525
|
-
M.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
524
|
+
Array.prototype.forEach.call(r, function(v) {
|
|
525
|
+
var M = v.getAttribute("data-emotion");
|
|
526
|
+
M.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
526
527
|
});
|
|
527
528
|
}
|
|
528
|
-
var
|
|
529
|
-
|
|
529
|
+
var i = t.stylisPlugins || Cn, o = {}, s, a = [];
|
|
530
|
+
s = t.container || document.head, Array.prototype.forEach.call(
|
|
530
531
|
// this means we will ignore elements which don't have a space in them which
|
|
531
532
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
532
533
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
533
|
-
function(
|
|
534
|
-
for (var M =
|
|
535
|
-
|
|
536
|
-
|
|
534
|
+
function(v) {
|
|
535
|
+
for (var M = v.getAttribute("data-emotion").split(" "), $ = 1; $ < M.length; $++)
|
|
536
|
+
o[M[$]] = !0;
|
|
537
|
+
a.push(v);
|
|
537
538
|
}
|
|
538
539
|
);
|
|
539
|
-
var f, u = [
|
|
540
|
+
var f, u = [vn, En];
|
|
540
541
|
{
|
|
541
|
-
var
|
|
542
|
-
|
|
543
|
-
})], x =
|
|
544
|
-
return
|
|
542
|
+
var d, c = [hn, gn(function(v) {
|
|
543
|
+
d.insert(v);
|
|
544
|
+
})], x = mn(u.concat(i, c)), b = function(M) {
|
|
545
|
+
return G(un(M), x);
|
|
545
546
|
};
|
|
546
|
-
f = function(M, $,
|
|
547
|
-
|
|
547
|
+
f = function(M, $, _, k) {
|
|
548
|
+
d = _, b(M ? M + "{" + $.styles + "}" : $.styles), k && (y.inserted[$.name] = !0);
|
|
548
549
|
};
|
|
549
550
|
}
|
|
550
551
|
var y = {
|
|
551
552
|
key: n,
|
|
552
|
-
sheet: new
|
|
553
|
+
sheet: new Xt({
|
|
553
554
|
key: n,
|
|
554
|
-
container:
|
|
555
|
+
container: s,
|
|
555
556
|
nonce: t.nonce,
|
|
556
557
|
speedy: t.speedy,
|
|
557
558
|
prepend: t.prepend,
|
|
558
559
|
insertionPoint: t.insertionPoint
|
|
559
560
|
}),
|
|
560
561
|
nonce: t.nonce,
|
|
561
|
-
inserted:
|
|
562
|
+
inserted: o,
|
|
562
563
|
registered: {},
|
|
563
564
|
insert: f
|
|
564
565
|
};
|
|
565
|
-
return y.sheet.hydrate(
|
|
566
|
-
},
|
|
566
|
+
return y.sheet.hydrate(a), y;
|
|
567
|
+
}, Pe = { exports: {} }, C = {};
|
|
567
568
|
/** @license React v16.13.1
|
|
568
569
|
* react-is.production.min.js
|
|
569
570
|
*
|
|
@@ -572,12 +573,12 @@ var bn = function(t, n, r, o) {
|
|
|
572
573
|
* This source code is licensed under the MIT license found in the
|
|
573
574
|
* LICENSE file in the root directory of this source tree.
|
|
574
575
|
*/
|
|
575
|
-
var
|
|
576
|
-
function
|
|
577
|
-
if (
|
|
578
|
-
return
|
|
579
|
-
|
|
580
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107,
|
|
576
|
+
var Be;
|
|
577
|
+
function Pn() {
|
|
578
|
+
if (Be)
|
|
579
|
+
return C;
|
|
580
|
+
Be = 1;
|
|
581
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
581
582
|
function k(p) {
|
|
582
583
|
if (typeof p == "object" && p !== null) {
|
|
583
584
|
var N = p.$$typeof;
|
|
@@ -587,17 +588,17 @@ function En() {
|
|
|
587
588
|
case f:
|
|
588
589
|
case u:
|
|
589
590
|
case r:
|
|
590
|
-
case i:
|
|
591
591
|
case o:
|
|
592
|
-
case
|
|
592
|
+
case i:
|
|
593
|
+
case c:
|
|
593
594
|
return p;
|
|
594
595
|
default:
|
|
595
596
|
switch (p = p && p.$$typeof, p) {
|
|
597
|
+
case a:
|
|
596
598
|
case d:
|
|
597
|
-
case l:
|
|
598
599
|
case y:
|
|
599
600
|
case b:
|
|
600
|
-
case
|
|
601
|
+
case s:
|
|
601
602
|
return p;
|
|
602
603
|
default:
|
|
603
604
|
return N;
|
|
@@ -608,38 +609,38 @@ function En() {
|
|
|
608
609
|
}
|
|
609
610
|
}
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
+
function R(p) {
|
|
612
613
|
return k(p) === u;
|
|
613
614
|
}
|
|
614
|
-
return
|
|
615
|
-
return
|
|
616
|
-
},
|
|
617
|
-
return k(p) === d;
|
|
618
|
-
}, S.isContextProvider = function(p) {
|
|
615
|
+
return C.AsyncMode = f, C.ConcurrentMode = u, C.ContextConsumer = a, C.ContextProvider = s, C.Element = t, C.ForwardRef = d, C.Fragment = r, C.Lazy = y, C.Memo = b, C.Portal = n, C.Profiler = o, C.StrictMode = i, C.Suspense = c, C.isAsyncMode = function(p) {
|
|
616
|
+
return R(p) || k(p) === f;
|
|
617
|
+
}, C.isConcurrentMode = R, C.isContextConsumer = function(p) {
|
|
619
618
|
return k(p) === a;
|
|
620
|
-
},
|
|
619
|
+
}, C.isContextProvider = function(p) {
|
|
620
|
+
return k(p) === s;
|
|
621
|
+
}, C.isElement = function(p) {
|
|
621
622
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
622
|
-
},
|
|
623
|
-
return k(p) ===
|
|
624
|
-
},
|
|
623
|
+
}, C.isForwardRef = function(p) {
|
|
624
|
+
return k(p) === d;
|
|
625
|
+
}, C.isFragment = function(p) {
|
|
625
626
|
return k(p) === r;
|
|
626
|
-
},
|
|
627
|
+
}, C.isLazy = function(p) {
|
|
627
628
|
return k(p) === y;
|
|
628
|
-
},
|
|
629
|
+
}, C.isMemo = function(p) {
|
|
629
630
|
return k(p) === b;
|
|
630
|
-
},
|
|
631
|
+
}, C.isPortal = function(p) {
|
|
631
632
|
return k(p) === n;
|
|
632
|
-
},
|
|
633
|
-
return k(p) === i;
|
|
634
|
-
}, S.isStrictMode = function(p) {
|
|
633
|
+
}, C.isProfiler = function(p) {
|
|
635
634
|
return k(p) === o;
|
|
636
|
-
},
|
|
637
|
-
return k(p) ===
|
|
638
|
-
},
|
|
639
|
-
return
|
|
640
|
-
},
|
|
635
|
+
}, C.isStrictMode = function(p) {
|
|
636
|
+
return k(p) === i;
|
|
637
|
+
}, C.isSuspense = function(p) {
|
|
638
|
+
return k(p) === c;
|
|
639
|
+
}, C.isValidElementType = function(p) {
|
|
640
|
+
return typeof p == "string" || typeof p == "function" || p === r || p === u || p === o || p === i || p === c || p === x || typeof p == "object" && p !== null && (p.$$typeof === y || p.$$typeof === b || p.$$typeof === s || p.$$typeof === a || p.$$typeof === d || p.$$typeof === M || p.$$typeof === $ || p.$$typeof === _ || p.$$typeof === v);
|
|
641
|
+
}, C.typeOf = k, C;
|
|
641
642
|
}
|
|
642
|
-
var
|
|
643
|
+
var S = {};
|
|
643
644
|
/** @license React v16.13.1
|
|
644
645
|
* react-is.development.js
|
|
645
646
|
*
|
|
@@ -648,15 +649,15 @@ var C = {};
|
|
|
648
649
|
* This source code is licensed under the MIT license found in the
|
|
649
650
|
* LICENSE file in the root directory of this source tree.
|
|
650
651
|
*/
|
|
651
|
-
var
|
|
652
|
-
function
|
|
653
|
-
return
|
|
654
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107,
|
|
652
|
+
var Ke;
|
|
653
|
+
function kn() {
|
|
654
|
+
return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
655
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
655
656
|
function k(m) {
|
|
656
657
|
return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
657
|
-
m === r || m === u || m ===
|
|
658
|
+
m === r || m === u || m === o || m === i || m === c || m === x || typeof m == "object" && m !== null && (m.$$typeof === y || m.$$typeof === b || m.$$typeof === s || m.$$typeof === a || m.$$typeof === d || m.$$typeof === M || m.$$typeof === $ || m.$$typeof === _ || m.$$typeof === v);
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function R(m) {
|
|
660
661
|
if (typeof m == "object" && m !== null) {
|
|
661
662
|
var be = m.$$typeof;
|
|
662
663
|
switch (be) {
|
|
@@ -666,19 +667,19 @@ function Sn() {
|
|
|
666
667
|
case f:
|
|
667
668
|
case u:
|
|
668
669
|
case r:
|
|
669
|
-
case i:
|
|
670
670
|
case o:
|
|
671
|
-
case
|
|
671
|
+
case i:
|
|
672
|
+
case c:
|
|
672
673
|
return ce;
|
|
673
674
|
default:
|
|
674
|
-
var
|
|
675
|
-
switch (
|
|
675
|
+
var De = ce && ce.$$typeof;
|
|
676
|
+
switch (De) {
|
|
677
|
+
case a:
|
|
676
678
|
case d:
|
|
677
|
-
case l:
|
|
678
679
|
case y:
|
|
679
680
|
case b:
|
|
680
|
-
case
|
|
681
|
-
return
|
|
681
|
+
case s:
|
|
682
|
+
return De;
|
|
682
683
|
default:
|
|
683
684
|
return be;
|
|
684
685
|
}
|
|
@@ -688,57 +689,57 @@ function Sn() {
|
|
|
688
689
|
}
|
|
689
690
|
}
|
|
690
691
|
}
|
|
691
|
-
var p = f, N = u, P =
|
|
692
|
-
function
|
|
693
|
-
return Fe || (Fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Le(m) ||
|
|
692
|
+
var p = f, N = u, P = a, yt = s, bt = t, vt = d, Et = r, wt = y, Ct = b, St = n, Pt = o, kt = i, $t = c, Fe = !1;
|
|
693
|
+
function Rt(m) {
|
|
694
|
+
return Fe || (Fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Le(m) || R(m) === f;
|
|
694
695
|
}
|
|
695
696
|
function Le(m) {
|
|
696
|
-
return
|
|
697
|
-
}
|
|
698
|
-
function kt(m) {
|
|
699
|
-
return _(m) === d;
|
|
700
|
-
}
|
|
701
|
-
function $t(m) {
|
|
702
|
-
return _(m) === a;
|
|
697
|
+
return R(m) === u;
|
|
703
698
|
}
|
|
704
699
|
function _t(m) {
|
|
705
|
-
return
|
|
700
|
+
return R(m) === a;
|
|
706
701
|
}
|
|
707
702
|
function Tt(m) {
|
|
708
|
-
return
|
|
709
|
-
}
|
|
710
|
-
function Rt(m) {
|
|
711
|
-
return _(m) === r;
|
|
703
|
+
return R(m) === s;
|
|
712
704
|
}
|
|
713
705
|
function Mt(m) {
|
|
714
|
-
return
|
|
706
|
+
return typeof m == "object" && m !== null && m.$$typeof === t;
|
|
715
707
|
}
|
|
716
708
|
function At(m) {
|
|
717
|
-
return
|
|
709
|
+
return R(m) === d;
|
|
718
710
|
}
|
|
719
711
|
function Nt(m) {
|
|
720
|
-
return
|
|
712
|
+
return R(m) === r;
|
|
721
713
|
}
|
|
722
714
|
function zt(m) {
|
|
723
|
-
return
|
|
715
|
+
return R(m) === y;
|
|
716
|
+
}
|
|
717
|
+
function Ot(m) {
|
|
718
|
+
return R(m) === b;
|
|
724
719
|
}
|
|
725
720
|
function Ft(m) {
|
|
726
|
-
return
|
|
721
|
+
return R(m) === n;
|
|
727
722
|
}
|
|
728
723
|
function Lt(m) {
|
|
729
|
-
return
|
|
724
|
+
return R(m) === o;
|
|
725
|
+
}
|
|
726
|
+
function Dt(m) {
|
|
727
|
+
return R(m) === i;
|
|
728
|
+
}
|
|
729
|
+
function It(m) {
|
|
730
|
+
return R(m) === c;
|
|
730
731
|
}
|
|
731
|
-
|
|
732
|
-
}()),
|
|
732
|
+
S.AsyncMode = p, S.ConcurrentMode = N, S.ContextConsumer = P, S.ContextProvider = yt, S.Element = bt, S.ForwardRef = vt, S.Fragment = Et, S.Lazy = wt, S.Memo = Ct, S.Portal = St, S.Profiler = Pt, S.StrictMode = kt, S.Suspense = $t, S.isAsyncMode = Rt, S.isConcurrentMode = Le, S.isContextConsumer = _t, S.isContextProvider = Tt, S.isElement = Mt, S.isForwardRef = At, S.isFragment = Nt, S.isLazy = zt, S.isMemo = Ot, S.isPortal = Ft, S.isProfiler = Lt, S.isStrictMode = Dt, S.isSuspense = It, S.isValidElementType = k, S.typeOf = R;
|
|
733
|
+
}()), S;
|
|
733
734
|
}
|
|
734
|
-
process.env.NODE_ENV === "production" ?
|
|
735
|
-
var
|
|
735
|
+
process.env.NODE_ENV === "production" ? Pe.exports = Pn() : Pe.exports = kn();
|
|
736
|
+
var $n = Pe.exports, st = $n, Rn = {
|
|
736
737
|
$$typeof: !0,
|
|
737
738
|
render: !0,
|
|
738
739
|
defaultProps: !0,
|
|
739
740
|
displayName: !0,
|
|
740
741
|
propTypes: !0
|
|
741
|
-
},
|
|
742
|
+
}, _n = {
|
|
742
743
|
$$typeof: !0,
|
|
743
744
|
compare: !0,
|
|
744
745
|
defaultProps: !0,
|
|
@@ -746,17 +747,17 @@ var Cn = ke.exports, it = Cn, Pn = {
|
|
|
746
747
|
propTypes: !0,
|
|
747
748
|
type: !0
|
|
748
749
|
}, at = {};
|
|
749
|
-
at[
|
|
750
|
-
at[
|
|
751
|
-
var
|
|
752
|
-
function
|
|
750
|
+
at[st.ForwardRef] = Rn;
|
|
751
|
+
at[st.Memo] = _n;
|
|
752
|
+
var Tn = !0;
|
|
753
|
+
function Mn(e, t, n) {
|
|
753
754
|
var r = "";
|
|
754
|
-
return n.split(" ").forEach(function(
|
|
755
|
-
e[
|
|
755
|
+
return n.split(" ").forEach(function(i) {
|
|
756
|
+
e[i] !== void 0 ? t.push(e[i] + ";") : i && (r += i + " ");
|
|
756
757
|
}), r;
|
|
757
758
|
}
|
|
758
|
-
var
|
|
759
|
-
var
|
|
759
|
+
var ct = function(t, n, r) {
|
|
760
|
+
var i = t.key + "-" + n.name;
|
|
760
761
|
// we only need to add the styles to the registered cache if the
|
|
761
762
|
// class name could be used further down
|
|
762
763
|
// the tree but if it's a string tag, we know it won't
|
|
@@ -766,25 +767,25 @@ var st = function(t, n, r) {
|
|
|
766
767
|
// in node since emotion-server relies on whether a style is in
|
|
767
768
|
// the registered cache to know whether a style is global or not
|
|
768
769
|
// also, note that this check will be dead code eliminated in the browser
|
|
769
|
-
|
|
770
|
-
},
|
|
771
|
-
|
|
772
|
-
var
|
|
770
|
+
Tn === !1) && t.registered[i] === void 0 && (t.registered[i] = n.styles);
|
|
771
|
+
}, An = function(t, n, r) {
|
|
772
|
+
ct(t, n, r);
|
|
773
|
+
var i = t.key + "-" + n.name;
|
|
773
774
|
if (t.inserted[n.name] === void 0) {
|
|
774
|
-
var
|
|
775
|
+
var o = n;
|
|
775
776
|
do
|
|
776
|
-
t.insert(n ===
|
|
777
|
-
while (
|
|
777
|
+
t.insert(n === o ? "." + i : "", o, t.sheet, !0), o = o.next;
|
|
778
|
+
while (o !== void 0);
|
|
778
779
|
}
|
|
779
780
|
};
|
|
780
|
-
function
|
|
781
|
-
for (var t = 0, n, r = 0,
|
|
781
|
+
function Nn(e) {
|
|
782
|
+
for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4)
|
|
782
783
|
n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
|
|
783
784
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
784
785
|
n >>> 24, t = /* Math.imul(k, m): */
|
|
785
786
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
786
787
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
787
|
-
switch (
|
|
788
|
+
switch (i) {
|
|
788
789
|
case 3:
|
|
789
790
|
t ^= (e.charCodeAt(r + 2) & 255) << 16;
|
|
790
791
|
case 2:
|
|
@@ -796,7 +797,7 @@ function Rn(e) {
|
|
|
796
797
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
797
798
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
798
799
|
}
|
|
799
|
-
var
|
|
800
|
+
var zn = {
|
|
800
801
|
animationIterationCount: 1,
|
|
801
802
|
aspectRatio: 1,
|
|
802
803
|
borderImageOutset: 1,
|
|
@@ -846,34 +847,34 @@ var Mn = {
|
|
|
846
847
|
strokeOpacity: 1,
|
|
847
848
|
strokeWidth: 1
|
|
848
849
|
};
|
|
849
|
-
function
|
|
850
|
+
function On(e) {
|
|
850
851
|
var t = /* @__PURE__ */ Object.create(null);
|
|
851
852
|
return function(n) {
|
|
852
853
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
853
854
|
};
|
|
854
855
|
}
|
|
855
|
-
var
|
|
856
|
+
var Fn = /[A-Z]|^ms/g, Ln = /_EMO_([^_]+?)_([^]*?)_EMO_/g, lt = function(t) {
|
|
856
857
|
return t.charCodeAt(1) === 45;
|
|
857
|
-
},
|
|
858
|
+
}, Ye = function(t) {
|
|
858
859
|
return t != null && typeof t != "boolean";
|
|
859
|
-
}, ve = /* @__PURE__ */
|
|
860
|
-
return
|
|
861
|
-
}),
|
|
860
|
+
}, ve = /* @__PURE__ */ On(function(e) {
|
|
861
|
+
return lt(e) ? e : e.replace(Fn, "-$&").toLowerCase();
|
|
862
|
+
}), We = function(t, n) {
|
|
862
863
|
switch (t) {
|
|
863
864
|
case "animation":
|
|
864
865
|
case "animationName":
|
|
865
866
|
if (typeof n == "string")
|
|
866
|
-
return n.replace(
|
|
867
|
+
return n.replace(Ln, function(r, i, o) {
|
|
867
868
|
return I = {
|
|
868
|
-
name:
|
|
869
|
-
styles:
|
|
869
|
+
name: i,
|
|
870
|
+
styles: o,
|
|
870
871
|
next: I
|
|
871
|
-
},
|
|
872
|
+
}, i;
|
|
872
873
|
});
|
|
873
874
|
}
|
|
874
|
-
return
|
|
875
|
+
return zn[t] !== 1 && !lt(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
875
876
|
};
|
|
876
|
-
function
|
|
877
|
+
function se(e, t, n) {
|
|
877
878
|
if (n == null)
|
|
878
879
|
return "";
|
|
879
880
|
var r = n;
|
|
@@ -883,252 +884,246 @@ function ie(e, t, n) {
|
|
|
883
884
|
case "boolean":
|
|
884
885
|
return "";
|
|
885
886
|
case "object": {
|
|
886
|
-
var
|
|
887
|
-
if (
|
|
887
|
+
var i = n;
|
|
888
|
+
if (i.anim === 1)
|
|
888
889
|
return I = {
|
|
889
|
-
name:
|
|
890
|
-
styles:
|
|
890
|
+
name: i.name,
|
|
891
|
+
styles: i.styles,
|
|
891
892
|
next: I
|
|
892
|
-
},
|
|
893
|
-
var
|
|
894
|
-
if (
|
|
895
|
-
var
|
|
896
|
-
if (
|
|
897
|
-
for (;
|
|
893
|
+
}, i.name;
|
|
894
|
+
var o = n;
|
|
895
|
+
if (o.styles !== void 0) {
|
|
896
|
+
var s = o.next;
|
|
897
|
+
if (s !== void 0)
|
|
898
|
+
for (; s !== void 0; )
|
|
898
899
|
I = {
|
|
899
|
-
name:
|
|
900
|
-
styles:
|
|
900
|
+
name: s.name,
|
|
901
|
+
styles: s.styles,
|
|
901
902
|
next: I
|
|
902
|
-
},
|
|
903
|
-
var
|
|
904
|
-
return
|
|
903
|
+
}, s = s.next;
|
|
904
|
+
var a = o.styles + ";";
|
|
905
|
+
return a;
|
|
905
906
|
}
|
|
906
|
-
return
|
|
907
|
+
return Dn(e, t, n);
|
|
907
908
|
}
|
|
908
909
|
case "function": {
|
|
909
910
|
if (e !== void 0) {
|
|
910
911
|
var f = I, u = n(e);
|
|
911
|
-
return I = f,
|
|
912
|
+
return I = f, se(e, t, u);
|
|
912
913
|
}
|
|
913
914
|
break;
|
|
914
915
|
}
|
|
915
916
|
}
|
|
916
|
-
var
|
|
917
|
-
return
|
|
917
|
+
var d = n;
|
|
918
|
+
return d;
|
|
918
919
|
}
|
|
919
|
-
function
|
|
920
|
+
function Dn(e, t, n) {
|
|
920
921
|
var r = "";
|
|
921
922
|
if (Array.isArray(n))
|
|
922
|
-
for (var
|
|
923
|
-
r +=
|
|
923
|
+
for (var i = 0; i < n.length; i++)
|
|
924
|
+
r += se(e, t, n[i]) + ";";
|
|
924
925
|
else
|
|
925
|
-
for (var
|
|
926
|
-
var
|
|
927
|
-
if (typeof
|
|
928
|
-
var
|
|
929
|
-
|
|
930
|
-
} else if (Array.isArray(
|
|
931
|
-
for (var f = 0; f <
|
|
932
|
-
|
|
926
|
+
for (var o in n) {
|
|
927
|
+
var s = n[o];
|
|
928
|
+
if (typeof s != "object") {
|
|
929
|
+
var a = s;
|
|
930
|
+
Ye(a) && (r += ve(o) + ":" + We(o, a) + ";");
|
|
931
|
+
} else if (Array.isArray(s) && typeof s[0] == "string" && t == null)
|
|
932
|
+
for (var f = 0; f < s.length; f++)
|
|
933
|
+
Ye(s[f]) && (r += ve(o) + ":" + We(o, s[f]) + ";");
|
|
933
934
|
else {
|
|
934
|
-
var u =
|
|
935
|
-
switch (
|
|
935
|
+
var u = se(e, t, s);
|
|
936
|
+
switch (o) {
|
|
936
937
|
case "animation":
|
|
937
938
|
case "animationName": {
|
|
938
|
-
r += ve(
|
|
939
|
+
r += ve(o) + ":" + u + ";";
|
|
939
940
|
break;
|
|
940
941
|
}
|
|
941
942
|
default:
|
|
942
|
-
r +=
|
|
943
|
+
r += o + "{" + u + "}";
|
|
943
944
|
}
|
|
944
945
|
}
|
|
945
946
|
}
|
|
946
947
|
return r;
|
|
947
948
|
}
|
|
948
|
-
var
|
|
949
|
-
function
|
|
949
|
+
var He = /label:\s*([^\s;{]+)\s*(;|$)/g, I;
|
|
950
|
+
function Ue(e, t, n) {
|
|
950
951
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
951
952
|
return e[0];
|
|
952
|
-
var r = !0,
|
|
953
|
+
var r = !0, i = "";
|
|
953
954
|
I = void 0;
|
|
954
|
-
var
|
|
955
|
-
if (
|
|
956
|
-
r = !1,
|
|
955
|
+
var o = e[0];
|
|
956
|
+
if (o == null || o.raw === void 0)
|
|
957
|
+
r = !1, i += se(n, t, o);
|
|
957
958
|
else {
|
|
958
|
-
var
|
|
959
|
-
|
|
959
|
+
var s = o;
|
|
960
|
+
i += s[0];
|
|
960
961
|
}
|
|
961
|
-
for (var
|
|
962
|
-
if (
|
|
963
|
-
var f =
|
|
964
|
-
|
|
962
|
+
for (var a = 1; a < e.length; a++)
|
|
963
|
+
if (i += se(n, t, e[a]), r) {
|
|
964
|
+
var f = o;
|
|
965
|
+
i += f[a];
|
|
965
966
|
}
|
|
966
|
-
|
|
967
|
-
for (var u = "",
|
|
968
|
-
u += "-" +
|
|
969
|
-
var
|
|
967
|
+
He.lastIndex = 0;
|
|
968
|
+
for (var u = "", d; (d = He.exec(i)) !== null; )
|
|
969
|
+
u += "-" + d[1];
|
|
970
|
+
var c = Nn(i) + u;
|
|
970
971
|
return {
|
|
971
|
-
name:
|
|
972
|
-
styles:
|
|
972
|
+
name: c,
|
|
973
|
+
styles: i,
|
|
973
974
|
next: I
|
|
974
975
|
};
|
|
975
976
|
}
|
|
976
|
-
var
|
|
977
|
+
var In = function(t) {
|
|
977
978
|
return t();
|
|
978
|
-
},
|
|
979
|
+
}, Vn = j.useInsertionEffect ? j.useInsertionEffect : !1, jn = Vn || In, ye = {}.hasOwnProperty, Ne = /* @__PURE__ */ j.createContext(
|
|
979
980
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
980
981
|
// because this module is primarily intended for the browser and node
|
|
981
982
|
// but it's also required in react native and similar environments sometimes
|
|
982
983
|
// and we could have a special build just for that
|
|
983
984
|
// but this is much easier and the native packages
|
|
984
985
|
// might use a different theme context in the future anyway
|
|
985
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
986
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Sn({
|
|
986
987
|
key: "css"
|
|
987
988
|
}) : null
|
|
988
989
|
);
|
|
989
990
|
process.env.NODE_ENV !== "production" && (Ne.displayName = "EmotionCacheContext");
|
|
990
991
|
Ne.Provider;
|
|
991
|
-
var
|
|
992
|
-
return /* @__PURE__ */
|
|
993
|
-
var
|
|
994
|
-
return t(n,
|
|
992
|
+
var Bn = function(t) {
|
|
993
|
+
return /* @__PURE__ */ Vt(function(n, r) {
|
|
994
|
+
var i = Re(Ne);
|
|
995
|
+
return t(n, i, r);
|
|
995
996
|
});
|
|
996
|
-
},
|
|
997
|
-
process.env.NODE_ENV !== "production" && (
|
|
998
|
-
var
|
|
997
|
+
}, dt = /* @__PURE__ */ j.createContext({});
|
|
998
|
+
process.env.NODE_ENV !== "production" && (dt.displayName = "EmotionThemeContext");
|
|
999
|
+
var Ge = function(t) {
|
|
999
1000
|
var n = t.split(".");
|
|
1000
1001
|
return n[n.length - 1];
|
|
1001
|
-
},
|
|
1002
|
+
}, Kn = function(t) {
|
|
1002
1003
|
var n = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);
|
|
1003
1004
|
if (n || (n = /^([A-Za-z0-9$.]+)@/.exec(t), n))
|
|
1004
|
-
return
|
|
1005
|
-
},
|
|
1005
|
+
return Ge(n[1]);
|
|
1006
|
+
}, Yn = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), Wn = function(t) {
|
|
1006
1007
|
return t.replace(/\$/g, "-");
|
|
1007
|
-
},
|
|
1008
|
+
}, Hn = function(t) {
|
|
1008
1009
|
if (t)
|
|
1009
1010
|
for (var n = t.split(`
|
|
1010
1011
|
`), r = 0; r < n.length; r++) {
|
|
1011
|
-
var
|
|
1012
|
-
if (
|
|
1013
|
-
if (
|
|
1012
|
+
var i = Kn(n[r]);
|
|
1013
|
+
if (i) {
|
|
1014
|
+
if (Yn.has(i))
|
|
1014
1015
|
break;
|
|
1015
|
-
if (/^[A-Z]/.test(
|
|
1016
|
-
return
|
|
1016
|
+
if (/^[A-Z]/.test(i))
|
|
1017
|
+
return Wn(i);
|
|
1017
1018
|
}
|
|
1018
1019
|
}
|
|
1019
|
-
},
|
|
1020
|
+
}, ke = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", $e = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", ft = function(t, n) {
|
|
1020
1021
|
if (process.env.NODE_ENV !== "production" && typeof n.css == "string" && // check if there is a css declaration
|
|
1021
1022
|
n.css.indexOf(":") !== -1)
|
|
1022
1023
|
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + n.css + "`");
|
|
1023
1024
|
var r = {};
|
|
1024
|
-
for (var
|
|
1025
|
-
ye.call(n,
|
|
1026
|
-
if (r[
|
|
1027
|
-
var
|
|
1028
|
-
|
|
1025
|
+
for (var i in n)
|
|
1026
|
+
ye.call(n, i) && (r[i] = n[i]);
|
|
1027
|
+
if (r[ke] = t, process.env.NODE_ENV !== "production" && n.css && (typeof n.css != "object" || typeof n.css.name != "string" || n.css.name.indexOf("-") === -1)) {
|
|
1028
|
+
var o = Hn(new Error().stack);
|
|
1029
|
+
o && (r[$e] = o);
|
|
1029
1030
|
}
|
|
1030
1031
|
return r;
|
|
1031
|
-
},
|
|
1032
|
-
var n = t.cache, r = t.serialized,
|
|
1033
|
-
return
|
|
1034
|
-
return
|
|
1032
|
+
}, Un = function(t) {
|
|
1033
|
+
var n = t.cache, r = t.serialized, i = t.isStringTag;
|
|
1034
|
+
return ct(n, r, i), jn(function() {
|
|
1035
|
+
return An(n, r, i);
|
|
1035
1036
|
}), null;
|
|
1036
|
-
},
|
|
1037
|
+
}, ut = /* @__PURE__ */ Bn(function(e, t, n) {
|
|
1037
1038
|
var r = e.css;
|
|
1038
1039
|
typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
|
|
1039
|
-
var
|
|
1040
|
-
typeof e.className == "string" ?
|
|
1041
|
-
var
|
|
1042
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1043
|
-
var f = e[
|
|
1044
|
-
f && (
|
|
1040
|
+
var i = e[ke], o = [r], s = "";
|
|
1041
|
+
typeof e.className == "string" ? s = Mn(t.registered, o, e.className) : e.className != null && (s = e.className + " ");
|
|
1042
|
+
var a = Ue(o, void 0, j.useContext(dt));
|
|
1043
|
+
if (process.env.NODE_ENV !== "production" && a.name.indexOf("-") === -1) {
|
|
1044
|
+
var f = e[$e];
|
|
1045
|
+
f && (a = Ue([a, "label:" + f + ";"]));
|
|
1045
1046
|
}
|
|
1046
|
-
|
|
1047
|
+
s += t.key + "-" + a.name;
|
|
1047
1048
|
var u = {};
|
|
1048
|
-
for (var
|
|
1049
|
-
ye.call(e,
|
|
1050
|
-
return u.ref = n, u.className =
|
|
1049
|
+
for (var d in e)
|
|
1050
|
+
ye.call(e, d) && d !== "css" && d !== ke && (process.env.NODE_ENV === "production" || d !== $e) && (u[d] = e[d]);
|
|
1051
|
+
return u.ref = n, u.className = s, /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement(Un, {
|
|
1051
1052
|
cache: t,
|
|
1052
|
-
serialized:
|
|
1053
|
-
isStringTag: typeof
|
|
1054
|
-
}), /* @__PURE__ */
|
|
1053
|
+
serialized: a,
|
|
1054
|
+
isStringTag: typeof i == "string"
|
|
1055
|
+
}), /* @__PURE__ */ j.createElement(i, u));
|
|
1055
1056
|
});
|
|
1056
|
-
process.env.NODE_ENV !== "production" && (
|
|
1057
|
-
var
|
|
1058
|
-
function
|
|
1059
|
-
return ye.call(t, "css") ?
|
|
1057
|
+
process.env.NODE_ENV !== "production" && (ut.displayName = "EmotionCssPropInternal");
|
|
1058
|
+
var pt = ut, K = te.Fragment;
|
|
1059
|
+
function l(e, t, n) {
|
|
1060
|
+
return ye.call(t, "css") ? te.jsx(pt, ft(e, t), n) : te.jsx(e, t, n);
|
|
1060
1061
|
}
|
|
1061
1062
|
function g(e, t, n) {
|
|
1062
|
-
return ye.call(t, "css") ?
|
|
1063
|
+
return ye.call(t, "css") ? te.jsxs(pt, ft(e, t), n) : te.jsxs(e, t, n);
|
|
1063
1064
|
}
|
|
1064
|
-
const
|
|
1065
|
-
|
|
1066
|
-
width: 100%;
|
|
1067
|
-
height: 100vh;
|
|
1068
|
-
display: flex;
|
|
1069
|
-
flex-direction: column;
|
|
1070
|
-
align-items: center;
|
|
1071
|
-
justify-content: center;
|
|
1072
|
-
position: fixed;
|
|
1073
|
-
font-size: 14px;
|
|
1074
|
-
top: 0;
|
|
1075
|
-
left: 0;
|
|
1076
|
-
z-index: 10000;
|
|
1077
|
-
`, Jr = ({ remotesOverride: e, onBeforeInitialize: t, pluginConfig: n, children: r }) => {
|
|
1078
|
-
const [o, i] = B(), [a, d] = B(null);
|
|
1079
|
-
return te(() => {
|
|
1080
|
-
(async () => {
|
|
1081
|
-
var u, l;
|
|
1082
|
-
try {
|
|
1083
|
-
t && (console.log(
|
|
1084
|
-
"KosPluginProvider: Waiting for pre-initialization conditions..."
|
|
1085
|
-
), await t(), console.log("KosPluginProvider: Pre-initialization complete"));
|
|
1086
|
-
let s = e;
|
|
1087
|
-
const x = (u = window.KosPlugins) == null ? void 0 : u.__dynamicRemotes;
|
|
1088
|
-
s || (x && Object.keys(x).length > 0 ? (console.log(
|
|
1089
|
-
"KosPluginProvider: Using existing plugin initialization"
|
|
1090
|
-
), s = x) : (console.log("KosPluginProvider: Initializing plugins..."), await Vt(n), s = (l = window.KosPlugins) == null ? void 0 : l.__dynamicRemotes));
|
|
1091
|
-
const b = await jt(s);
|
|
1092
|
-
i(b);
|
|
1093
|
-
} catch (s) {
|
|
1094
|
-
console.error("KosPluginProvider: Failed to initialize plugins", s), d(s);
|
|
1095
|
-
}
|
|
1096
|
-
})();
|
|
1097
|
-
}, [e, t, n]), a ? /* @__PURE__ */ g(Ge, { children: [
|
|
1098
|
-
/* @__PURE__ */ c("div", { children: "Failed to load plugins" }),
|
|
1099
|
-
/* @__PURE__ */ c("div", { style: { fontSize: "12px", marginTop: "10px", opacity: 0.8 }, children: a.message })
|
|
1100
|
-
] }) : /* @__PURE__ */ c(pt.Provider, { value: o, children: o ? r : /* @__PURE__ */ c(Ge, { children: "Loading remote plugins..." }) });
|
|
1101
|
-
}, se = () => {
|
|
1102
|
-
const e = Xe(pt);
|
|
1065
|
+
const ht = Je(null), Gn = () => {
|
|
1066
|
+
const e = Re(ht);
|
|
1103
1067
|
if (!e)
|
|
1104
1068
|
throw new Error(
|
|
1105
|
-
"
|
|
1069
|
+
"useReactiveExtensionRegistry must be used within a component that has access to ReactiveExtensionRegistryContext"
|
|
1106
1070
|
);
|
|
1107
1071
|
return e;
|
|
1108
|
-
}
|
|
1072
|
+
};
|
|
1073
|
+
function mt(e, t) {
|
|
1074
|
+
const n = Gn(), r = (t == null ? void 0 : t.includeDisabled) ?? !1, i = (t == null ? void 0 : t.autoResolve) ?? !1, [o, s] = B(
|
|
1075
|
+
() => n.getExtensions(e, r)
|
|
1076
|
+
);
|
|
1077
|
+
W(() => (s(n.getExtensions(e, r)), n.subscribe(e, () => {
|
|
1078
|
+
s(n.getExtensions(e, r));
|
|
1079
|
+
})), [n, e, r]);
|
|
1080
|
+
const a = L(() => i ? ne(o) : null, [o, i]);
|
|
1081
|
+
return {
|
|
1082
|
+
extensions: o,
|
|
1083
|
+
best: a,
|
|
1084
|
+
isLoading: !1
|
|
1085
|
+
// Not async, so never loading
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
const qn = (e) => {
|
|
1109
1089
|
var t;
|
|
1110
1090
|
return ((t = e == null ? void 0 : e.view) == null ? void 0 : t.component) !== void 0;
|
|
1111
|
-
},
|
|
1091
|
+
}, Zn = ({
|
|
1112
1092
|
extension: e,
|
|
1113
|
-
module: t
|
|
1093
|
+
module: t,
|
|
1094
|
+
fallbackOnDisabled: n = !0,
|
|
1095
|
+
autoSwitchOnDisabled: r = !1
|
|
1114
1096
|
}) => {
|
|
1115
|
-
const { extensions:
|
|
1097
|
+
const { extensions: i } = mt(e, {
|
|
1098
|
+
includeDisabled: !1,
|
|
1099
|
+
// Only get enabled contributions
|
|
1100
|
+
autoResolve: !1
|
|
1101
|
+
// We'll resolve manually based on module prop
|
|
1102
|
+
}), [o, s] = B(
|
|
1116
1103
|
null
|
|
1117
|
-
), [
|
|
1118
|
-
|
|
1104
|
+
), [a, f] = B(null), u = L(() => {
|
|
1105
|
+
if (t) {
|
|
1106
|
+
const d = i[t];
|
|
1107
|
+
return d || (r && !n ? ne(i) : null);
|
|
1108
|
+
}
|
|
1109
|
+
return ne(i);
|
|
1110
|
+
}, [i, t, n, r]);
|
|
1111
|
+
return W(() => {
|
|
1119
1112
|
async function d() {
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1122
|
-
const
|
|
1123
|
-
if (!
|
|
1113
|
+
const c = u;
|
|
1114
|
+
f(c ?? null);
|
|
1115
|
+
const x = (c == null ? void 0 : c.remote) || "", b = qn(c) ? c.view.component : c == null ? void 0 : c.component, y = b ? `./${b}` : "";
|
|
1116
|
+
if (!x) {
|
|
1117
|
+
s(null);
|
|
1124
1118
|
return;
|
|
1125
|
-
|
|
1126
|
-
|
|
1119
|
+
}
|
|
1120
|
+
const v = Y.lazy(() => Bt.loadRemoteModule(x, y));
|
|
1121
|
+
s(v);
|
|
1127
1122
|
}
|
|
1128
1123
|
d();
|
|
1129
|
-
}, [
|
|
1124
|
+
}, [u]), [o, a];
|
|
1130
1125
|
};
|
|
1131
|
-
class
|
|
1126
|
+
class Xn extends Y.Component {
|
|
1132
1127
|
constructor(t) {
|
|
1133
1128
|
super(t), this.state = { hasError: !1 };
|
|
1134
1129
|
}
|
|
@@ -1142,13 +1137,13 @@ class Un extends Y.Component {
|
|
|
1142
1137
|
return this.state.hasError ? this.props.fallback : this.props.children;
|
|
1143
1138
|
}
|
|
1144
1139
|
}
|
|
1145
|
-
const
|
|
1140
|
+
const Jn = h.div`
|
|
1146
1141
|
align-items: center;
|
|
1147
1142
|
display: flex;
|
|
1148
1143
|
height: 100%;
|
|
1149
1144
|
justify-content: center;
|
|
1150
1145
|
width: 100%;
|
|
1151
|
-
`,
|
|
1146
|
+
`, Qn = h.div`
|
|
1152
1147
|
align-items: center;
|
|
1153
1148
|
background-color: transparent;
|
|
1154
1149
|
display: flex;
|
|
@@ -1160,44 +1155,45 @@ const Gn = h.div`
|
|
|
1160
1155
|
extension: e,
|
|
1161
1156
|
fallback: t,
|
|
1162
1157
|
module: n,
|
|
1163
|
-
props: r
|
|
1158
|
+
props: r,
|
|
1159
|
+
fallbackOnDisabled: i = !0,
|
|
1160
|
+
autoSwitchOnDisabled: o = !1
|
|
1164
1161
|
}) => {
|
|
1165
|
-
const [
|
|
1162
|
+
const [s, a] = Zn({
|
|
1166
1163
|
extension: e,
|
|
1167
|
-
module: n
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
Dt,
|
|
1164
|
+
module: n,
|
|
1165
|
+
fallbackOnDisabled: i,
|
|
1166
|
+
autoSwitchOnDisabled: o
|
|
1167
|
+
}), f = !s, u = t || /* @__PURE__ */ l(Jn, { children: `Dynamic component, ${e}, not found...` });
|
|
1168
|
+
return f ? /* @__PURE__ */ l(K, { children: u }) : /* @__PURE__ */ l(Xn, { fallback: u, children: /* @__PURE__ */ l(
|
|
1169
|
+
jt,
|
|
1174
1170
|
{
|
|
1175
|
-
fallback:
|
|
1176
|
-
|
|
1171
|
+
fallback: a != null && a.size ? /* @__PURE__ */ l(
|
|
1172
|
+
Qn,
|
|
1177
1173
|
{
|
|
1178
|
-
width:
|
|
1179
|
-
height:
|
|
1174
|
+
width: a.size.width,
|
|
1175
|
+
height: a.size.height
|
|
1180
1176
|
}
|
|
1181
1177
|
) : null,
|
|
1182
|
-
children: /* @__PURE__ */
|
|
1178
|
+
children: /* @__PURE__ */ l(s, { ...r })
|
|
1183
1179
|
}
|
|
1184
1180
|
) });
|
|
1185
|
-
},
|
|
1181
|
+
}, er = h.div`
|
|
1186
1182
|
display: flex;
|
|
1187
1183
|
flex-direction: column;
|
|
1188
1184
|
height: 100%;
|
|
1189
1185
|
min-height: 0; /* Important for flexbox children to shrink */
|
|
1190
|
-
`,
|
|
1186
|
+
`, tr = h.div`
|
|
1191
1187
|
padding: 16px;
|
|
1192
1188
|
border-bottom: 1px solid #e1e5e9;
|
|
1193
1189
|
background: #f6f8fa;
|
|
1194
1190
|
flex-shrink: 0; /* Prevent header from shrinking */
|
|
1195
|
-
`,
|
|
1191
|
+
`, nr = h.h3`
|
|
1196
1192
|
margin: 0 0 8px 0;
|
|
1197
1193
|
font-size: 16px;
|
|
1198
1194
|
font-weight: 600;
|
|
1199
1195
|
color: #24292f;
|
|
1200
|
-
`,
|
|
1196
|
+
`, rr = h.input`
|
|
1201
1197
|
width: 100%;
|
|
1202
1198
|
padding: 8px 12px;
|
|
1203
1199
|
border: 1px solid #d0d7de;
|
|
@@ -1210,11 +1206,11 @@ const Gn = h.div`
|
|
|
1210
1206
|
border-color: #0969da;
|
|
1211
1207
|
box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
|
|
1212
1208
|
}
|
|
1213
|
-
`,
|
|
1209
|
+
`, ir = h.div`
|
|
1214
1210
|
flex: 1;
|
|
1215
1211
|
overflow-y: auto;
|
|
1216
1212
|
min-height: 0; /* Critical for making overflow work in flexbox */
|
|
1217
|
-
`,
|
|
1213
|
+
`, or = h.div`
|
|
1218
1214
|
padding: 12px 16px;
|
|
1219
1215
|
border-bottom: 1px solid #f0f0f0;
|
|
1220
1216
|
cursor: pointer;
|
|
@@ -1225,12 +1221,12 @@ const Gn = h.div`
|
|
|
1225
1221
|
&:hover {
|
|
1226
1222
|
background: #f6f8fa;
|
|
1227
1223
|
}
|
|
1228
|
-
`,
|
|
1224
|
+
`, sr = h.div`
|
|
1229
1225
|
font-weight: 500;
|
|
1230
1226
|
font-size: 14px;
|
|
1231
1227
|
color: #24292f;
|
|
1232
1228
|
margin-bottom: 4px;
|
|
1233
|
-
`,
|
|
1229
|
+
`, ar = h.div`
|
|
1234
1230
|
font-size: 12px;
|
|
1235
1231
|
color: #656d76;
|
|
1236
1232
|
display: flex;
|
|
@@ -1254,67 +1250,116 @@ const Gn = h.div`
|
|
|
1254
1250
|
return "background: #f6f8fa; color: #656d76;";
|
|
1255
1251
|
}
|
|
1256
1252
|
}}
|
|
1257
|
-
`,
|
|
1253
|
+
`, cr = h.div`
|
|
1258
1254
|
padding: 40px 16px;
|
|
1259
1255
|
text-align: center;
|
|
1260
1256
|
color: #656d76;
|
|
1261
1257
|
font-size: 14px;
|
|
1262
|
-
`,
|
|
1258
|
+
`, lr = ({
|
|
1263
1259
|
extensionPoints: e,
|
|
1264
1260
|
selectedExtensionId: t,
|
|
1265
1261
|
onExtensionSelect: n,
|
|
1266
1262
|
searchTerm: r,
|
|
1267
|
-
onSearchChange:
|
|
1268
|
-
className:
|
|
1269
|
-
}) => /* @__PURE__ */ g(
|
|
1270
|
-
/* @__PURE__ */ g(
|
|
1271
|
-
/* @__PURE__ */
|
|
1272
|
-
/* @__PURE__ */
|
|
1273
|
-
|
|
1263
|
+
onSearchChange: i,
|
|
1264
|
+
className: o
|
|
1265
|
+
}) => /* @__PURE__ */ g(er, { className: o, children: [
|
|
1266
|
+
/* @__PURE__ */ g(tr, { children: [
|
|
1267
|
+
/* @__PURE__ */ l(nr, { children: "Extension Points" }),
|
|
1268
|
+
/* @__PURE__ */ l(
|
|
1269
|
+
rr,
|
|
1274
1270
|
{
|
|
1275
1271
|
placeholder: "Search extension points...",
|
|
1276
1272
|
value: r,
|
|
1277
|
-
onChange: (
|
|
1273
|
+
onChange: (s) => i(s.target.value)
|
|
1278
1274
|
}
|
|
1279
1275
|
)
|
|
1280
1276
|
] }),
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
-
var
|
|
1277
|
+
/* @__PURE__ */ l(ir, { children: e.length > 0 ? e.map((s) => {
|
|
1278
|
+
var a;
|
|
1283
1279
|
return /* @__PURE__ */ g(
|
|
1284
|
-
|
|
1280
|
+
or,
|
|
1285
1281
|
{
|
|
1286
|
-
selected:
|
|
1287
|
-
onClick: () => n(
|
|
1282
|
+
selected: s.id === t,
|
|
1283
|
+
onClick: () => n(s.id),
|
|
1288
1284
|
children: [
|
|
1289
|
-
/* @__PURE__ */
|
|
1290
|
-
/* @__PURE__ */ g(
|
|
1285
|
+
/* @__PURE__ */ l(sr, { children: s.displayName || s.id }),
|
|
1286
|
+
/* @__PURE__ */ g(ar, { children: [
|
|
1291
1287
|
/* @__PURE__ */ g("div", { children: [
|
|
1292
|
-
/* @__PURE__ */
|
|
1293
|
-
((
|
|
1288
|
+
/* @__PURE__ */ l(qe, { variant: s.source, children: s.source }),
|
|
1289
|
+
((a = s.metadata) == null ? void 0 : a.deprecated) && /* @__PURE__ */ l(qe, { variant: "deprecated", style: { marginLeft: 4 }, children: "deprecated" })
|
|
1294
1290
|
] }),
|
|
1295
1291
|
/* @__PURE__ */ g("div", { children: [
|
|
1296
|
-
|
|
1292
|
+
s.pluginCount,
|
|
1297
1293
|
" plugin",
|
|
1298
|
-
|
|
1294
|
+
s.pluginCount !== 1 ? "s" : ""
|
|
1299
1295
|
] })
|
|
1300
1296
|
] })
|
|
1301
1297
|
]
|
|
1302
1298
|
},
|
|
1303
|
-
|
|
1299
|
+
s.id
|
|
1304
1300
|
);
|
|
1305
|
-
}) : /* @__PURE__ */
|
|
1306
|
-
] })
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1301
|
+
}) : /* @__PURE__ */ l(cr, { children: r ? `No extension points match "${r}"` : "No extension points available" }) })
|
|
1302
|
+
] }), gt = Je(void 0), Ze = h.div`
|
|
1303
|
+
padding-inline: 20px;
|
|
1304
|
+
width: 100%;
|
|
1305
|
+
height: 100vh;
|
|
1306
|
+
display: flex;
|
|
1307
|
+
flex-direction: column;
|
|
1308
|
+
align-items: center;
|
|
1309
|
+
justify-content: center;
|
|
1310
|
+
position: fixed;
|
|
1311
|
+
font-size: 14px;
|
|
1312
|
+
top: 0;
|
|
1313
|
+
left: 0;
|
|
1314
|
+
z-index: 10000;
|
|
1315
|
+
`, ni = ({ remotesOverride: e, onBeforeInitialize: t, pluginConfig: n, children: r }) => {
|
|
1316
|
+
const [i, o] = B(), [s, a] = B(null), f = L(() => i != null && i.extensions ? new Kt(i.extensions) : null, [i == null ? void 0 : i.extensions]);
|
|
1317
|
+
return W(
|
|
1318
|
+
() => () => {
|
|
1319
|
+
f == null || f.destroy();
|
|
1320
|
+
},
|
|
1321
|
+
[f]
|
|
1322
|
+
), W(() => {
|
|
1323
|
+
(async () => {
|
|
1324
|
+
var d, c;
|
|
1325
|
+
try {
|
|
1326
|
+
t && (console.log(
|
|
1327
|
+
"KosPluginProvider: Waiting for pre-initialization conditions..."
|
|
1328
|
+
), await t(), console.log("KosPluginProvider: Pre-initialization complete"));
|
|
1329
|
+
let x = e;
|
|
1330
|
+
const b = (d = window.KosPlugins) == null ? void 0 : d.__dynamicRemotes;
|
|
1331
|
+
x || (b && Object.keys(b).length > 0 ? (console.log(
|
|
1332
|
+
"KosPluginProvider: Using existing plugin initialization"
|
|
1333
|
+
), x = b) : (console.log("KosPluginProvider: Initializing plugins..."), await Yt(n), x = (c = window.KosPlugins) == null ? void 0 : c.__dynamicRemotes));
|
|
1334
|
+
const y = await Wt(x);
|
|
1335
|
+
o(y);
|
|
1336
|
+
} catch (x) {
|
|
1337
|
+
console.error("KosPluginProvider: Failed to initialize plugins", x), a(x);
|
|
1338
|
+
}
|
|
1339
|
+
})();
|
|
1340
|
+
}, [e, t, n]), s ? /* @__PURE__ */ g(Ze, { children: [
|
|
1341
|
+
/* @__PURE__ */ l("div", { children: "Failed to load plugins" }),
|
|
1342
|
+
/* @__PURE__ */ l("div", { style: { fontSize: "12px", marginTop: "10px", opacity: 0.8 }, children: s.message })
|
|
1343
|
+
] }) : /* @__PURE__ */ l(gt.Provider, { value: i, children: /* @__PURE__ */ l(ht.Provider, { value: f, children: i ? r : /* @__PURE__ */ l(Ze, { children: "Loading remote plugins..." }) }) });
|
|
1344
|
+
}, Oe = () => {
|
|
1345
|
+
const e = Re(gt);
|
|
1346
|
+
if (!e)
|
|
1347
|
+
throw new Error(
|
|
1348
|
+
"useKosPluginsContext must be used within a KosPluginProvider"
|
|
1349
|
+
);
|
|
1350
|
+
return e;
|
|
1351
|
+
};
|
|
1352
|
+
function xt(e) {
|
|
1353
|
+
const { extensions: t } = Oe();
|
|
1354
|
+
return L(() => {
|
|
1310
1355
|
try {
|
|
1311
|
-
const r =
|
|
1356
|
+
const r = re.getExtensionPoints(
|
|
1312
1357
|
t,
|
|
1313
1358
|
e
|
|
1314
|
-
),
|
|
1359
|
+
), i = re.calculateHealthStats(r);
|
|
1315
1360
|
return {
|
|
1316
1361
|
extensionPoints: r,
|
|
1317
|
-
healthStats:
|
|
1362
|
+
healthStats: i,
|
|
1318
1363
|
isLoading: !1,
|
|
1319
1364
|
error: void 0
|
|
1320
1365
|
};
|
|
@@ -1335,9 +1380,9 @@ function ht(e) {
|
|
|
1335
1380
|
}
|
|
1336
1381
|
}, [t, e]);
|
|
1337
1382
|
}
|
|
1338
|
-
function
|
|
1339
|
-
const n =
|
|
1340
|
-
() =>
|
|
1383
|
+
function dr(e, t) {
|
|
1384
|
+
const n = xt(t), r = L(
|
|
1385
|
+
() => re.filterExtensionPoints(
|
|
1341
1386
|
n.extensionPoints,
|
|
1342
1387
|
e
|
|
1343
1388
|
),
|
|
@@ -1348,31 +1393,31 @@ function ar(e, t) {
|
|
|
1348
1393
|
filteredExtensionPoints: r
|
|
1349
1394
|
};
|
|
1350
1395
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const { extensionPoints: t } =
|
|
1353
|
-
return
|
|
1354
|
-
() =>
|
|
1396
|
+
function ri(e) {
|
|
1397
|
+
const { extensionPoints: t } = xt();
|
|
1398
|
+
return L(
|
|
1399
|
+
() => re.getExtensionPointById(
|
|
1355
1400
|
t,
|
|
1356
1401
|
e
|
|
1357
1402
|
),
|
|
1358
1403
|
[t, e]
|
|
1359
1404
|
);
|
|
1360
1405
|
}
|
|
1361
|
-
const
|
|
1406
|
+
const fr = h.div`
|
|
1362
1407
|
border: 1px solid #e1e5e9;
|
|
1363
1408
|
border-radius: 6px;
|
|
1364
1409
|
padding: 12px;
|
|
1365
1410
|
background: white;
|
|
1366
1411
|
transition: all 0.2s ease;
|
|
1367
|
-
`,
|
|
1412
|
+
`, ur = h.div`
|
|
1368
1413
|
display: flex;
|
|
1369
1414
|
align-items: center;
|
|
1370
1415
|
justify-content: space-between;
|
|
1371
1416
|
margin-bottom: 8px;
|
|
1372
|
-
`,
|
|
1417
|
+
`, pr = h.div`
|
|
1373
1418
|
display: flex;
|
|
1374
1419
|
align-items: center;
|
|
1375
|
-
`,
|
|
1420
|
+
`, hr = h.div`
|
|
1376
1421
|
display: inline-block;
|
|
1377
1422
|
width: 8px;
|
|
1378
1423
|
height: 8px;
|
|
@@ -1391,18 +1436,18 @@ const sr = h.div`
|
|
|
1391
1436
|
return "background: #656d76;";
|
|
1392
1437
|
}
|
|
1393
1438
|
}}
|
|
1394
|
-
`,
|
|
1439
|
+
`, mr = h.h5`
|
|
1395
1440
|
margin: 0;
|
|
1396
1441
|
font-size: 14px;
|
|
1397
1442
|
font-weight: 600;
|
|
1398
1443
|
color: #24292f;
|
|
1399
|
-
`,
|
|
1444
|
+
`, gr = h.div`
|
|
1400
1445
|
font-size: 12px;
|
|
1401
1446
|
color: #656d76;
|
|
1402
1447
|
line-height: 1.4;
|
|
1403
1448
|
display: grid;
|
|
1404
1449
|
gap: 2px;
|
|
1405
|
-
`,
|
|
1450
|
+
`, Q = h.div`
|
|
1406
1451
|
display: grid;
|
|
1407
1452
|
grid-template-columns: 80px 1fr; /* Fixed label width, flexible value */
|
|
1408
1453
|
gap: 8px;
|
|
@@ -1418,28 +1463,28 @@ const sr = h.div`
|
|
|
1418
1463
|
text-overflow: ellipsis;
|
|
1419
1464
|
white-space: nowrap;
|
|
1420
1465
|
}
|
|
1421
|
-
`,
|
|
1466
|
+
`, xr = h.div`
|
|
1422
1467
|
color: #656d76;
|
|
1423
1468
|
font-style: italic;
|
|
1424
1469
|
margin-top: 4px;
|
|
1425
1470
|
font-size: 12px;
|
|
1426
|
-
`,
|
|
1471
|
+
`, yr = h.div`
|
|
1427
1472
|
margin-top: 6px;
|
|
1428
1473
|
display: flex;
|
|
1429
1474
|
flex-wrap: wrap;
|
|
1430
1475
|
gap: 4px;
|
|
1431
|
-
`,
|
|
1476
|
+
`, br = h.span`
|
|
1432
1477
|
background: #f6f8fa;
|
|
1433
1478
|
border: 1px solid #d0d7de;
|
|
1434
1479
|
border-radius: 12px;
|
|
1435
1480
|
padding: 2px 6px;
|
|
1436
1481
|
font-size: 10px;
|
|
1437
1482
|
color: #24292f;
|
|
1438
|
-
`,
|
|
1483
|
+
`, vr = h.div`
|
|
1439
1484
|
margin-top: 8px;
|
|
1440
1485
|
padding-top: 8px;
|
|
1441
1486
|
border-top: 1px solid #f0f0f0;
|
|
1442
|
-
`,
|
|
1487
|
+
`, Er = h.div`
|
|
1443
1488
|
display: flex;
|
|
1444
1489
|
align-items: flex-start;
|
|
1445
1490
|
gap: 6px;
|
|
@@ -1461,7 +1506,7 @@ const sr = h.div`
|
|
|
1461
1506
|
return "background: #f6f8fa; color: #656d76;";
|
|
1462
1507
|
}
|
|
1463
1508
|
}}
|
|
1464
|
-
`,
|
|
1509
|
+
`, wr = h.span`
|
|
1465
1510
|
font-size: 12px;
|
|
1466
1511
|
font-weight: bold;
|
|
1467
1512
|
flex-shrink: 0;
|
|
@@ -1481,80 +1526,80 @@ const sr = h.div`
|
|
|
1481
1526
|
}
|
|
1482
1527
|
}}";
|
|
1483
1528
|
}
|
|
1484
|
-
`,
|
|
1529
|
+
`, Cr = h.div`
|
|
1485
1530
|
flex: 1;
|
|
1486
1531
|
`;
|
|
1487
|
-
function
|
|
1488
|
-
if (
|
|
1532
|
+
function Sr(e, t) {
|
|
1533
|
+
if (_e().getExtensionPoint(t) && e.data)
|
|
1489
1534
|
return e.data;
|
|
1490
1535
|
}
|
|
1491
|
-
function
|
|
1492
|
-
const n =
|
|
1536
|
+
function Pr(e) {
|
|
1537
|
+
const n = _e().getExtensionPoint(e);
|
|
1493
1538
|
return n != null && n.getSchemaFieldInfo ? n.getSchemaFieldInfo().map((r) => r.name) : [];
|
|
1494
1539
|
}
|
|
1495
|
-
const
|
|
1540
|
+
const kr = ({
|
|
1496
1541
|
plugin: e,
|
|
1497
1542
|
extensionPointId: t,
|
|
1498
1543
|
className: n
|
|
1499
1544
|
}) => {
|
|
1500
|
-
const r =
|
|
1501
|
-
return /* @__PURE__ */ g(
|
|
1502
|
-
/* @__PURE__ */
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1545
|
+
const r = re.analyzePlugin(e), { hasComponent: i, healthStatus: o, capabilities: s } = r, a = Ht(e.id), f = Sr(e, t), u = Pr(t);
|
|
1546
|
+
return /* @__PURE__ */ g(fr, { className: n, children: [
|
|
1547
|
+
/* @__PURE__ */ l(ur, { children: /* @__PURE__ */ g(pr, { children: [
|
|
1548
|
+
/* @__PURE__ */ l(hr, { status: o }),
|
|
1549
|
+
/* @__PURE__ */ l(mr, { children: e.id })
|
|
1505
1550
|
] }) }),
|
|
1506
|
-
/* @__PURE__ */ g(
|
|
1507
|
-
/* @__PURE__ */ g(
|
|
1508
|
-
/* @__PURE__ */
|
|
1509
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ g(gr, { children: [
|
|
1552
|
+
/* @__PURE__ */ g(Q, { children: [
|
|
1553
|
+
/* @__PURE__ */ l("strong", { children: "Source:" }),
|
|
1554
|
+
/* @__PURE__ */ l("span", { children: e.remote ? `${e.remote} plugin` : "Local" })
|
|
1510
1555
|
] }),
|
|
1511
|
-
/* @__PURE__ */ g(
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ g(Q, { children: [
|
|
1557
|
+
/* @__PURE__ */ l("strong", { children: "Type:" }),
|
|
1558
|
+
/* @__PURE__ */ l("span", { children: e.type })
|
|
1514
1559
|
] }),
|
|
1515
|
-
typeof e.rank == "number" && /* @__PURE__ */ g(
|
|
1516
|
-
/* @__PURE__ */
|
|
1560
|
+
typeof e.rank == "number" && /* @__PURE__ */ g(Q, { children: [
|
|
1561
|
+
/* @__PURE__ */ l("strong", { children: "Priority:" }),
|
|
1517
1562
|
/* @__PURE__ */ g("span", { children: [
|
|
1518
1563
|
e.rank,
|
|
1519
1564
|
" (higher = preferred)"
|
|
1520
1565
|
] })
|
|
1521
1566
|
] }),
|
|
1522
|
-
e.component && /* @__PURE__ */ g(
|
|
1523
|
-
/* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1567
|
+
e.component && /* @__PURE__ */ g(Q, { children: [
|
|
1568
|
+
/* @__PURE__ */ l("strong", { children: "Component:" }),
|
|
1569
|
+
/* @__PURE__ */ l("span", { children: e.component })
|
|
1525
1570
|
] }),
|
|
1526
|
-
f && u.map((
|
|
1527
|
-
const
|
|
1528
|
-
if (
|
|
1571
|
+
f && u.map((d) => {
|
|
1572
|
+
const c = f[d];
|
|
1573
|
+
if (c == null)
|
|
1529
1574
|
return null;
|
|
1530
|
-
const x =
|
|
1531
|
-
return /* @__PURE__ */ g(
|
|
1575
|
+
const x = d.replace(/([A-Z])/g, " $1").replace(/^./, (b) => b.toUpperCase()).trim();
|
|
1576
|
+
return /* @__PURE__ */ g(Q, { children: [
|
|
1532
1577
|
/* @__PURE__ */ g("strong", { children: [
|
|
1533
1578
|
x,
|
|
1534
1579
|
":"
|
|
1535
1580
|
] }),
|
|
1536
|
-
/* @__PURE__ */
|
|
1537
|
-
] },
|
|
1581
|
+
/* @__PURE__ */ l("span", { children: String(c) })
|
|
1582
|
+
] }, d);
|
|
1538
1583
|
}),
|
|
1539
|
-
!
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
/* @__PURE__ */
|
|
1544
|
-
] },
|
|
1584
|
+
!i && /* @__PURE__ */ l(xr, { children: "No UI component (data/utility plugin)" }),
|
|
1585
|
+
s.length > 0 && /* @__PURE__ */ l(yr, { children: s.map((d) => /* @__PURE__ */ l(br, { children: d }, d)) }),
|
|
1586
|
+
a.length > 0 && /* @__PURE__ */ l(vr, { children: a.map((d, c) => /* @__PURE__ */ g(Er, { type: d.type, children: [
|
|
1587
|
+
/* @__PURE__ */ l(wr, { type: d.type }),
|
|
1588
|
+
/* @__PURE__ */ l(Cr, { children: d.message })
|
|
1589
|
+
] }, c)) })
|
|
1545
1590
|
] })
|
|
1546
1591
|
] });
|
|
1547
|
-
},
|
|
1592
|
+
}, $r = h.div`
|
|
1548
1593
|
padding: 12px 16px;
|
|
1549
1594
|
border-bottom: 1px solid #e1e5e9;
|
|
1550
1595
|
background: #f9f9f9;
|
|
1551
1596
|
font-size: 12px;
|
|
1552
1597
|
flex-shrink: 0; /* Prevent from shrinking */
|
|
1553
|
-
`,
|
|
1598
|
+
`, Rr = h.div`
|
|
1554
1599
|
font-weight: 600;
|
|
1555
1600
|
margin-bottom: 8px;
|
|
1556
1601
|
color: #24292f;
|
|
1557
|
-
`,
|
|
1602
|
+
`, Xe = h.div`
|
|
1558
1603
|
display: flex;
|
|
1559
1604
|
gap: 12px;
|
|
1560
1605
|
align-items: center;
|
|
@@ -1562,11 +1607,11 @@ const Er = ({
|
|
|
1562
1607
|
&:not(:last-child) {
|
|
1563
1608
|
margin-bottom: 4px;
|
|
1564
1609
|
}
|
|
1565
|
-
`,
|
|
1610
|
+
`, ee = h.div`
|
|
1566
1611
|
display: flex;
|
|
1567
1612
|
align-items: center;
|
|
1568
1613
|
gap: 4px;
|
|
1569
|
-
`,
|
|
1614
|
+
`, _r = h.div`
|
|
1570
1615
|
display: inline-block;
|
|
1571
1616
|
width: 8px;
|
|
1572
1617
|
height: 8px;
|
|
@@ -1585,7 +1630,7 @@ const Er = ({
|
|
|
1585
1630
|
return "background: #656d76;";
|
|
1586
1631
|
}
|
|
1587
1632
|
}}
|
|
1588
|
-
`,
|
|
1633
|
+
`, Ee = h.span`
|
|
1589
1634
|
display: inline-block;
|
|
1590
1635
|
padding: 2px 6px;
|
|
1591
1636
|
border-radius: 12px;
|
|
@@ -1604,7 +1649,7 @@ const Er = ({
|
|
|
1604
1649
|
return "background: #f6f8fa; color: #656d76;";
|
|
1605
1650
|
}
|
|
1606
1651
|
}}
|
|
1607
|
-
`,
|
|
1652
|
+
`, Tr = h.button`
|
|
1608
1653
|
background: #0969da;
|
|
1609
1654
|
border: 1px solid #0969da;
|
|
1610
1655
|
border-radius: 4px;
|
|
@@ -1623,20 +1668,20 @@ const Er = ({
|
|
|
1623
1668
|
&:active {
|
|
1624
1669
|
background: #0757ba;
|
|
1625
1670
|
}
|
|
1626
|
-
`,
|
|
1671
|
+
`, Mr = ({
|
|
1627
1672
|
healthStats: e,
|
|
1628
1673
|
className: t
|
|
1629
1674
|
}) => {
|
|
1630
|
-
const { extensions: n } =
|
|
1675
|
+
const { extensions: n } = Oe(), {
|
|
1631
1676
|
totalPlugins: r,
|
|
1632
|
-
extensionPointsWithPlugins:
|
|
1633
|
-
totalExtensionPoints:
|
|
1634
|
-
simplifiedExtensionPoints:
|
|
1635
|
-
legacyExtensionPoints:
|
|
1677
|
+
extensionPointsWithPlugins: i,
|
|
1678
|
+
totalExtensionPoints: o,
|
|
1679
|
+
simplifiedExtensionPoints: s,
|
|
1680
|
+
legacyExtensionPoints: a,
|
|
1636
1681
|
deprecatedExtensionPoints: f
|
|
1637
1682
|
} = e, u = () => {
|
|
1638
1683
|
try {
|
|
1639
|
-
const
|
|
1684
|
+
const d = Ut.generateFullDocumentation(
|
|
1640
1685
|
n,
|
|
1641
1686
|
{
|
|
1642
1687
|
includeUsageExamples: !0,
|
|
@@ -1644,46 +1689,46 @@ const Er = ({
|
|
|
1644
1689
|
includeLegacyExtensions: !0,
|
|
1645
1690
|
includePluginHealth: !0
|
|
1646
1691
|
}
|
|
1647
|
-
),
|
|
1692
|
+
), c = new Blob([d.content], { type: "text/markdown" }), x = URL.createObjectURL(c), b = document.createElement("a");
|
|
1648
1693
|
b.href = x, b.download = `kos-extension-points-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.md`, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(x);
|
|
1649
|
-
} catch (
|
|
1650
|
-
console.error("Failed to generate documentation:",
|
|
1694
|
+
} catch (d) {
|
|
1695
|
+
console.error("Failed to generate documentation:", d);
|
|
1651
1696
|
}
|
|
1652
1697
|
};
|
|
1653
|
-
return /* @__PURE__ */ g(
|
|
1654
|
-
/* @__PURE__ */
|
|
1655
|
-
/* @__PURE__ */ g(
|
|
1656
|
-
/* @__PURE__ */ g(
|
|
1657
|
-
/* @__PURE__ */
|
|
1698
|
+
return /* @__PURE__ */ g($r, { className: t, children: [
|
|
1699
|
+
/* @__PURE__ */ l(Rr, { children: "System Health" }),
|
|
1700
|
+
/* @__PURE__ */ g(Xe, { children: [
|
|
1701
|
+
/* @__PURE__ */ g(ee, { children: [
|
|
1702
|
+
/* @__PURE__ */ l(_r, { status: "healthy" }),
|
|
1658
1703
|
/* @__PURE__ */ g("span", { children: [
|
|
1659
1704
|
r,
|
|
1660
1705
|
" plugins"
|
|
1661
1706
|
] })
|
|
1662
1707
|
] }),
|
|
1663
|
-
/* @__PURE__ */
|
|
1664
|
-
o,
|
|
1665
|
-
"/",
|
|
1708
|
+
/* @__PURE__ */ l(ee, { children: /* @__PURE__ */ g("span", { children: [
|
|
1666
1709
|
i,
|
|
1710
|
+
"/",
|
|
1711
|
+
o,
|
|
1667
1712
|
" active"
|
|
1668
1713
|
] }) })
|
|
1669
1714
|
] }),
|
|
1670
|
-
/* @__PURE__ */ g(
|
|
1671
|
-
/* @__PURE__ */ g(
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
/* @__PURE__ */
|
|
1715
|
+
/* @__PURE__ */ g(Xe, { children: [
|
|
1716
|
+
/* @__PURE__ */ g(ee, { children: [
|
|
1717
|
+
/* @__PURE__ */ l(Ee, { variant: "simplified", children: s }),
|
|
1718
|
+
/* @__PURE__ */ l("span", { children: "simplified" })
|
|
1674
1719
|
] }),
|
|
1675
|
-
/* @__PURE__ */ g(
|
|
1676
|
-
/* @__PURE__ */
|
|
1677
|
-
/* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ g(ee, { children: [
|
|
1721
|
+
/* @__PURE__ */ l(Ee, { variant: "legacy", children: a }),
|
|
1722
|
+
/* @__PURE__ */ l("span", { children: "legacy" })
|
|
1678
1723
|
] }),
|
|
1679
|
-
f > 0 && /* @__PURE__ */ g(
|
|
1680
|
-
/* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1724
|
+
f > 0 && /* @__PURE__ */ g(ee, { children: [
|
|
1725
|
+
/* @__PURE__ */ l(Ee, { variant: "deprecated", children: f }),
|
|
1726
|
+
/* @__PURE__ */ l("span", { children: "deprecated" })
|
|
1682
1727
|
] })
|
|
1683
1728
|
] }),
|
|
1684
|
-
/* @__PURE__ */
|
|
1729
|
+
/* @__PURE__ */ l(Tr, { onClick: u, children: "Export Documentation" })
|
|
1685
1730
|
] });
|
|
1686
|
-
},
|
|
1731
|
+
}, we = h.div`
|
|
1687
1732
|
display: flex;
|
|
1688
1733
|
width: 100%;
|
|
1689
1734
|
height: 100%;
|
|
@@ -1695,7 +1740,7 @@ const Er = ({
|
|
|
1695
1740
|
sans-serif;
|
|
1696
1741
|
background: white;
|
|
1697
1742
|
container-type: inline-size; /* Enable container queries */
|
|
1698
|
-
`,
|
|
1743
|
+
`, Ar = h.div`
|
|
1699
1744
|
flex: 0 0 35%; /* Take 35% of container width */
|
|
1700
1745
|
min-width: 280px; /* Minimum usable width */
|
|
1701
1746
|
max-width: 400px; /* Maximum width to prevent too wide */
|
|
@@ -1710,7 +1755,7 @@ const Er = ({
|
|
|
1710
1755
|
max-width: 100%;
|
|
1711
1756
|
border-right: none;
|
|
1712
1757
|
}
|
|
1713
|
-
`,
|
|
1758
|
+
`, Nr = h.div`
|
|
1714
1759
|
flex: 1;
|
|
1715
1760
|
min-width: 0; /* Allows flex child to shrink below content size */
|
|
1716
1761
|
display: flex;
|
|
@@ -1721,24 +1766,24 @@ const Er = ({
|
|
|
1721
1766
|
@media (max-width: 768px) {
|
|
1722
1767
|
display: none; /* We'll add mobile navigation later if needed */
|
|
1723
1768
|
}
|
|
1724
|
-
`,
|
|
1769
|
+
`, zr = h.div`
|
|
1725
1770
|
padding: 16px;
|
|
1726
1771
|
border-bottom: 1px solid #e1e5e9;
|
|
1727
1772
|
background: #f6f8fa;
|
|
1728
|
-
`,
|
|
1773
|
+
`, Or = h.h4`
|
|
1729
1774
|
margin: 0 0 8px 0;
|
|
1730
1775
|
font-size: 16px;
|
|
1731
1776
|
font-weight: 600;
|
|
1732
1777
|
color: #24292f;
|
|
1733
|
-
`,
|
|
1778
|
+
`, Fr = h.p`
|
|
1734
1779
|
margin: 0;
|
|
1735
1780
|
font-size: 14px;
|
|
1736
1781
|
color: #656d76;
|
|
1737
|
-
`,
|
|
1782
|
+
`, Lr = h.div`
|
|
1738
1783
|
flex: 1;
|
|
1739
1784
|
padding: 16px;
|
|
1740
1785
|
overflow-y: auto;
|
|
1741
|
-
`,
|
|
1786
|
+
`, Dr = h.div`
|
|
1742
1787
|
display: flex;
|
|
1743
1788
|
flex-direction: column;
|
|
1744
1789
|
gap: 12px;
|
|
@@ -1751,65 +1796,65 @@ const Er = ({
|
|
|
1751
1796
|
height: 100%;
|
|
1752
1797
|
color: #656d76;
|
|
1753
1798
|
text-align: center;
|
|
1754
|
-
`,
|
|
1799
|
+
`, Ir = h.div`
|
|
1755
1800
|
margin-top: 16px;
|
|
1756
1801
|
padding-top: 16px;
|
|
1757
1802
|
border-top: 1px solid #e1e5e9;
|
|
1758
|
-
`,
|
|
1803
|
+
`, Vr = h.h5`
|
|
1759
1804
|
margin: 0 0 8px 0;
|
|
1760
1805
|
font-size: 14px;
|
|
1761
1806
|
font-weight: 600;
|
|
1762
1807
|
color: #24292f;
|
|
1763
|
-
`,
|
|
1808
|
+
`, jr = h.div`
|
|
1764
1809
|
display: grid;
|
|
1765
1810
|
grid-template-columns: auto 1fr;
|
|
1766
1811
|
gap: 8px 16px;
|
|
1767
1812
|
font-size: 12px;
|
|
1768
|
-
`,
|
|
1813
|
+
`, H = h.div`
|
|
1769
1814
|
color: #656d76;
|
|
1770
1815
|
font-weight: 500;
|
|
1771
|
-
`,
|
|
1816
|
+
`, U = h.div`
|
|
1772
1817
|
color: #24292f;
|
|
1773
|
-
`,
|
|
1818
|
+
`, Br = ({
|
|
1774
1819
|
className: e,
|
|
1775
1820
|
showLegacyExtensions: t = !0,
|
|
1776
1821
|
extensionFilter: n = ""
|
|
1777
1822
|
}) => {
|
|
1778
|
-
const [r,
|
|
1823
|
+
const [r, i] = B(
|
|
1779
1824
|
null
|
|
1780
|
-
), [
|
|
1825
|
+
), [o, s] = B(n), { filteredExtensionPoints: a, healthStats: f, isLoading: u, error: d } = dr(o, {
|
|
1781
1826
|
includeLegacyExtensions: t
|
|
1782
|
-
}),
|
|
1827
|
+
}), c = a.find(
|
|
1783
1828
|
(y) => y.id === r
|
|
1784
1829
|
), x = (y) => {
|
|
1785
|
-
|
|
1830
|
+
i(y);
|
|
1786
1831
|
}, b = (y) => {
|
|
1787
|
-
|
|
1832
|
+
s(y);
|
|
1788
1833
|
};
|
|
1789
|
-
return
|
|
1834
|
+
return d ? /* @__PURE__ */ l(we, { className: e, children: /* @__PURE__ */ l(de, { children: /* @__PURE__ */ g("div", { children: [
|
|
1790
1835
|
"Error loading plugins: ",
|
|
1791
|
-
|
|
1792
|
-
] }) }) }) : u ? /* @__PURE__ */
|
|
1793
|
-
/* @__PURE__ */ g(
|
|
1794
|
-
/* @__PURE__ */
|
|
1795
|
-
/* @__PURE__ */
|
|
1796
|
-
|
|
1836
|
+
d.message
|
|
1837
|
+
] }) }) }) : u ? /* @__PURE__ */ l(we, { className: e, children: /* @__PURE__ */ l(de, { children: /* @__PURE__ */ l("div", { children: "Loading plugins..." }) }) }) : /* @__PURE__ */ g(we, { className: e, children: [
|
|
1838
|
+
/* @__PURE__ */ g(Ar, { children: [
|
|
1839
|
+
/* @__PURE__ */ l(Mr, { healthStats: f }),
|
|
1840
|
+
/* @__PURE__ */ l(
|
|
1841
|
+
lr,
|
|
1797
1842
|
{
|
|
1798
|
-
extensionPoints:
|
|
1843
|
+
extensionPoints: a,
|
|
1799
1844
|
selectedExtensionId: r,
|
|
1800
1845
|
onExtensionSelect: x,
|
|
1801
|
-
searchTerm:
|
|
1846
|
+
searchTerm: o,
|
|
1802
1847
|
onSearchChange: b
|
|
1803
1848
|
}
|
|
1804
1849
|
)
|
|
1805
1850
|
] }),
|
|
1806
|
-
/* @__PURE__ */
|
|
1807
|
-
/* @__PURE__ */ g(
|
|
1808
|
-
/* @__PURE__ */
|
|
1809
|
-
|
|
1851
|
+
/* @__PURE__ */ l(Nr, { children: c ? /* @__PURE__ */ g(K, { children: [
|
|
1852
|
+
/* @__PURE__ */ g(zr, { children: [
|
|
1853
|
+
/* @__PURE__ */ l(Or, { children: c.displayName || c.id }),
|
|
1854
|
+
c.description && /* @__PURE__ */ l(Fr, { children: c.description })
|
|
1810
1855
|
] }),
|
|
1811
|
-
/* @__PURE__ */ g(
|
|
1812
|
-
|
|
1856
|
+
/* @__PURE__ */ g(Lr, { children: [
|
|
1857
|
+
c.plugins.length > 0 ? /* @__PURE__ */ g(K, { children: [
|
|
1813
1858
|
/* @__PURE__ */ g(
|
|
1814
1859
|
"h5",
|
|
1815
1860
|
{
|
|
@@ -1820,22 +1865,22 @@ const Er = ({
|
|
|
1820
1865
|
},
|
|
1821
1866
|
children: [
|
|
1822
1867
|
"Active Plugins (",
|
|
1823
|
-
|
|
1868
|
+
c.pluginCount,
|
|
1824
1869
|
")"
|
|
1825
1870
|
]
|
|
1826
1871
|
}
|
|
1827
1872
|
),
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
|
|
1873
|
+
/* @__PURE__ */ l(Dr, { children: c.plugins.map((y) => /* @__PURE__ */ l(
|
|
1874
|
+
kr,
|
|
1830
1875
|
{
|
|
1831
1876
|
plugin: y,
|
|
1832
|
-
extensionPointId:
|
|
1877
|
+
extensionPointId: c.id
|
|
1833
1878
|
},
|
|
1834
1879
|
y.id
|
|
1835
1880
|
)) })
|
|
1836
1881
|
] }) : /* @__PURE__ */ g(de, { children: [
|
|
1837
|
-
/* @__PURE__ */
|
|
1838
|
-
/* @__PURE__ */
|
|
1882
|
+
/* @__PURE__ */ l("div", { style: { fontSize: "48px", marginBottom: "12px" }, children: "🔌" }),
|
|
1883
|
+
/* @__PURE__ */ l(
|
|
1839
1884
|
"div",
|
|
1840
1885
|
{
|
|
1841
1886
|
style: {
|
|
@@ -1846,47 +1891,47 @@ const Er = ({
|
|
|
1846
1891
|
children: "No plugins registered"
|
|
1847
1892
|
}
|
|
1848
1893
|
),
|
|
1849
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ l("div", { style: { fontSize: "14px" }, children: "This extension point is available but no plugins are currently contributing to it." })
|
|
1850
1895
|
] }),
|
|
1851
|
-
|
|
1852
|
-
/* @__PURE__ */
|
|
1853
|
-
/* @__PURE__ */ g(
|
|
1854
|
-
/* @__PURE__ */
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
/* @__PURE__ */
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
|
|
1859
|
-
/* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1896
|
+
c.metadata && /* @__PURE__ */ g(Ir, { children: [
|
|
1897
|
+
/* @__PURE__ */ l(Vr, { children: "Extension Point Details" }),
|
|
1898
|
+
/* @__PURE__ */ g(jr, { children: [
|
|
1899
|
+
/* @__PURE__ */ l(H, { children: "ID:" }),
|
|
1900
|
+
/* @__PURE__ */ l(U, { children: c.id }),
|
|
1901
|
+
/* @__PURE__ */ l(H, { children: "Source:" }),
|
|
1902
|
+
/* @__PURE__ */ l(U, { children: c.source }),
|
|
1903
|
+
c.metadata.category && /* @__PURE__ */ g(K, { children: [
|
|
1904
|
+
/* @__PURE__ */ l(H, { children: "Category:" }),
|
|
1905
|
+
/* @__PURE__ */ l(U, { children: c.metadata.category })
|
|
1861
1906
|
] }),
|
|
1862
|
-
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1907
|
+
c.metadata.owner && /* @__PURE__ */ g(K, { children: [
|
|
1908
|
+
/* @__PURE__ */ l(H, { children: "Owner:" }),
|
|
1909
|
+
/* @__PURE__ */ l(U, { children: c.metadata.owner })
|
|
1865
1910
|
] }),
|
|
1866
|
-
|
|
1867
|
-
/* @__PURE__ */
|
|
1868
|
-
/* @__PURE__ */
|
|
1911
|
+
c.metadata.since && /* @__PURE__ */ g(K, { children: [
|
|
1912
|
+
/* @__PURE__ */ l(H, { children: "Since:" }),
|
|
1913
|
+
/* @__PURE__ */ l(U, { children: c.metadata.since })
|
|
1869
1914
|
] }),
|
|
1870
|
-
|
|
1871
|
-
/* @__PURE__ */
|
|
1872
|
-
/* @__PURE__ */
|
|
1915
|
+
c.metadata.tags && c.metadata.tags.length > 0 && /* @__PURE__ */ g(K, { children: [
|
|
1916
|
+
/* @__PURE__ */ l(H, { children: "Tags:" }),
|
|
1917
|
+
/* @__PURE__ */ l(U, { children: c.metadata.tags.join(", ") })
|
|
1873
1918
|
] })
|
|
1874
1919
|
] })
|
|
1875
1920
|
] })
|
|
1876
1921
|
] })
|
|
1877
1922
|
] }) : /* @__PURE__ */ g(de, { children: [
|
|
1878
|
-
/* @__PURE__ */
|
|
1879
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ l("div", { style: { fontSize: "48px", marginBottom: "12px" }, children: "🔍" }),
|
|
1924
|
+
/* @__PURE__ */ l(
|
|
1880
1925
|
"div",
|
|
1881
1926
|
{
|
|
1882
1927
|
style: { fontSize: "16px", fontWeight: 500, marginBottom: "8px" },
|
|
1883
1928
|
children: "Select an extension point"
|
|
1884
1929
|
}
|
|
1885
1930
|
),
|
|
1886
|
-
/* @__PURE__ */
|
|
1931
|
+
/* @__PURE__ */ l("div", { style: { fontSize: "14px" }, children: "Choose an extension point from the sidebar to view its plugins and details." })
|
|
1887
1932
|
] }) })
|
|
1888
1933
|
] });
|
|
1889
|
-
},
|
|
1934
|
+
}, Kr = h.div`
|
|
1890
1935
|
position: fixed;
|
|
1891
1936
|
top: 0;
|
|
1892
1937
|
left: 0;
|
|
@@ -1899,7 +1944,7 @@ const Er = ({
|
|
|
1899
1944
|
justify-content: center;
|
|
1900
1945
|
padding: 20px;
|
|
1901
1946
|
box-sizing: border-box;
|
|
1902
|
-
`,
|
|
1947
|
+
`, Yr = h.div`
|
|
1903
1948
|
background: white;
|
|
1904
1949
|
border-radius: 12px;
|
|
1905
1950
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
@@ -1909,19 +1954,19 @@ const Er = ({
|
|
|
1909
1954
|
position: relative;
|
|
1910
1955
|
display: flex;
|
|
1911
1956
|
flex-direction: column;
|
|
1912
|
-
`,
|
|
1957
|
+
`, Wr = h.div`
|
|
1913
1958
|
display: flex;
|
|
1914
1959
|
align-items: center;
|
|
1915
1960
|
justify-content: space-between;
|
|
1916
1961
|
padding: 16px 20px;
|
|
1917
1962
|
border-bottom: 1px solid #e1e5e9;
|
|
1918
1963
|
background: #f6f8fa;
|
|
1919
|
-
`,
|
|
1964
|
+
`, Hr = h.h3`
|
|
1920
1965
|
margin: 0;
|
|
1921
1966
|
font-size: 18px;
|
|
1922
1967
|
font-weight: 600;
|
|
1923
1968
|
color: #24292f;
|
|
1924
|
-
`,
|
|
1969
|
+
`, Ur = h.button`
|
|
1925
1970
|
background: none;
|
|
1926
1971
|
border: none;
|
|
1927
1972
|
font-size: 20px;
|
|
@@ -1934,7 +1979,7 @@ const Er = ({
|
|
|
1934
1979
|
background: #f0f0f0;
|
|
1935
1980
|
color: #24292f;
|
|
1936
1981
|
}
|
|
1937
|
-
`,
|
|
1982
|
+
`, Gr = h.button`
|
|
1938
1983
|
position: fixed;
|
|
1939
1984
|
${(e) => {
|
|
1940
1985
|
switch (e.position) {
|
|
@@ -1975,47 +2020,47 @@ const Er = ({
|
|
|
1975
2020
|
&:active {
|
|
1976
2021
|
transform: scale(0.95);
|
|
1977
2022
|
}
|
|
1978
|
-
`,
|
|
2023
|
+
`, qr = h.div`
|
|
1979
2024
|
font-size: 12px;
|
|
1980
2025
|
color: #656d76;
|
|
1981
2026
|
margin-left: 8px;
|
|
1982
|
-
`,
|
|
2027
|
+
`, ii = ({
|
|
1983
2028
|
keyboardShortcut: e = "ctrl+shift+p",
|
|
1984
2029
|
showToggleButton: t = !0,
|
|
1985
2030
|
toggleButtonPosition: n = "bottom-right",
|
|
1986
2031
|
...r
|
|
1987
2032
|
}) => {
|
|
1988
|
-
const [
|
|
1989
|
-
|
|
2033
|
+
const [i, o] = B(!1);
|
|
2034
|
+
W(() => {
|
|
1990
2035
|
const f = (u) => {
|
|
1991
|
-
const
|
|
2036
|
+
const c = e.toLowerCase().split("+").map((y) => y.trim());
|
|
1992
2037
|
let x = !0;
|
|
1993
|
-
|
|
1994
|
-
const b =
|
|
2038
|
+
c.includes("ctrl") && !u.ctrlKey && (x = !1), c.includes("shift") && !u.shiftKey && (x = !1), c.includes("alt") && !u.altKey && (x = !1), c.includes("meta") && !u.metaKey && (x = !1);
|
|
2039
|
+
const b = c.find(
|
|
1995
2040
|
(y) => !["ctrl", "shift", "alt", "meta"].includes(y)
|
|
1996
2041
|
);
|
|
1997
|
-
b && u.key.toLowerCase() !== b.toLowerCase() && (x = !1), x && (u.preventDefault(),
|
|
2042
|
+
b && u.key.toLowerCase() !== b.toLowerCase() && (x = !1), x && (u.preventDefault(), o((y) => !y));
|
|
1998
2043
|
};
|
|
1999
2044
|
return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
|
|
2000
|
-
}, [e]),
|
|
2045
|
+
}, [e]), W(() => {
|
|
2001
2046
|
const f = (u) => {
|
|
2002
|
-
u.key === "Escape" &&
|
|
2047
|
+
u.key === "Escape" && i && o(!1);
|
|
2003
2048
|
};
|
|
2004
2049
|
return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
|
|
2005
|
-
}, [
|
|
2006
|
-
const
|
|
2007
|
-
|
|
2008
|
-
},
|
|
2009
|
-
f.target === f.currentTarget &&
|
|
2050
|
+
}, [i]);
|
|
2051
|
+
const s = () => {
|
|
2052
|
+
o((f) => !f);
|
|
2053
|
+
}, a = (f) => {
|
|
2054
|
+
f.target === f.currentTarget && o(!1);
|
|
2010
2055
|
};
|
|
2011
2056
|
return process.env.NODE_ENV !== "development" ? null : /* @__PURE__ */ g(K, { children: [
|
|
2012
|
-
t && /* @__PURE__ */
|
|
2013
|
-
|
|
2057
|
+
t && /* @__PURE__ */ l(
|
|
2058
|
+
Gr,
|
|
2014
2059
|
{
|
|
2015
2060
|
position: n,
|
|
2016
|
-
onClick:
|
|
2061
|
+
onClick: s,
|
|
2017
2062
|
title: `Plugin Explorer (${e})`,
|
|
2018
|
-
children: /* @__PURE__ */
|
|
2063
|
+
children: /* @__PURE__ */ l(
|
|
2019
2064
|
"svg",
|
|
2020
2065
|
{
|
|
2021
2066
|
fill: "#ffffff",
|
|
@@ -2026,7 +2071,7 @@ const Er = ({
|
|
|
2026
2071
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2027
2072
|
viewBox: "0 0 512 512",
|
|
2028
2073
|
style: { display: "block" },
|
|
2029
|
-
children: /* @__PURE__ */
|
|
2074
|
+
children: /* @__PURE__ */ l("g", { children: /* @__PURE__ */ l(
|
|
2030
2075
|
"path",
|
|
2031
2076
|
{
|
|
2032
2077
|
fill: "#ffffff",
|
|
@@ -2048,115 +2093,196 @@ const Er = ({
|
|
|
2048
2093
|
)
|
|
2049
2094
|
}
|
|
2050
2095
|
),
|
|
2051
|
-
/* @__PURE__ */
|
|
2052
|
-
/* @__PURE__ */ g(
|
|
2096
|
+
/* @__PURE__ */ l(Kr, { visible: i, onClick: a, children: /* @__PURE__ */ g(Yr, { children: [
|
|
2097
|
+
/* @__PURE__ */ g(Wr, { children: [
|
|
2053
2098
|
/* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */ g(
|
|
2099
|
+
/* @__PURE__ */ l(Hr, { children: "KOS Plugin Explorer" }),
|
|
2100
|
+
/* @__PURE__ */ g(qr, { children: [
|
|
2056
2101
|
e,
|
|
2057
2102
|
" to toggle"
|
|
2058
2103
|
] })
|
|
2059
2104
|
] }),
|
|
2060
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ l(Ur, { onClick: () => o(!1), "aria-label": "Close", children: "×" })
|
|
2061
2106
|
] }),
|
|
2062
|
-
/* @__PURE__ */
|
|
2107
|
+
/* @__PURE__ */ l(Br, { ...r })
|
|
2063
2108
|
] }) })
|
|
2064
2109
|
] });
|
|
2065
2110
|
};
|
|
2066
|
-
function
|
|
2067
|
-
|
|
2068
|
-
|
|
2111
|
+
function oi(e) {
|
|
2112
|
+
return Y.useMemo(() => {
|
|
2113
|
+
if (!e.config.hasView)
|
|
2114
|
+
return null;
|
|
2115
|
+
const t = (n) => {
|
|
2116
|
+
const {
|
|
2117
|
+
module: r,
|
|
2118
|
+
fallback: i,
|
|
2119
|
+
fallbackOnDisabled: o,
|
|
2120
|
+
autoSwitchOnDisabled: s,
|
|
2121
|
+
...a
|
|
2122
|
+
} = n;
|
|
2123
|
+
return Y.createElement(ze, {
|
|
2124
|
+
extension: e.id,
|
|
2125
|
+
module: r,
|
|
2126
|
+
fallback: i,
|
|
2127
|
+
fallbackOnDisabled: o,
|
|
2128
|
+
autoSwitchOnDisabled: s,
|
|
2129
|
+
props: a
|
|
2130
|
+
});
|
|
2131
|
+
};
|
|
2132
|
+
return t.displayName = `${e.config.displayName || e.id}.Component`, t;
|
|
2133
|
+
}, [e]);
|
|
2134
|
+
}
|
|
2135
|
+
function si(e) {
|
|
2136
|
+
if (!e.config.hasView)
|
|
2137
|
+
return null;
|
|
2138
|
+
const t = (n) => {
|
|
2139
|
+
const {
|
|
2140
|
+
module: r,
|
|
2141
|
+
fallback: i,
|
|
2142
|
+
fallbackOnDisabled: o,
|
|
2143
|
+
autoSwitchOnDisabled: s,
|
|
2144
|
+
...a
|
|
2145
|
+
} = n;
|
|
2146
|
+
return Y.createElement(ze, {
|
|
2147
|
+
extension: e.id,
|
|
2148
|
+
module: r,
|
|
2149
|
+
fallback: i,
|
|
2150
|
+
fallbackOnDisabled: o,
|
|
2151
|
+
autoSwitchOnDisabled: s,
|
|
2152
|
+
props: a
|
|
2153
|
+
});
|
|
2154
|
+
};
|
|
2155
|
+
return t.displayName = `${e.config.displayName || e.id}.Component`, t;
|
|
2156
|
+
}
|
|
2157
|
+
function Zr(e) {
|
|
2158
|
+
return Y.useMemo(() => {
|
|
2159
|
+
const n = _e().getExtensionPoint(e);
|
|
2160
|
+
if (!n)
|
|
2161
|
+
return console.warn(`Extension point not found: ${e}`), null;
|
|
2162
|
+
if (!n.config.hasView)
|
|
2163
|
+
return null;
|
|
2164
|
+
const r = (i) => {
|
|
2165
|
+
const {
|
|
2166
|
+
module: o,
|
|
2167
|
+
fallback: s,
|
|
2168
|
+
fallbackOnDisabled: a,
|
|
2169
|
+
autoSwitchOnDisabled: f,
|
|
2170
|
+
...u
|
|
2171
|
+
} = i;
|
|
2172
|
+
return Y.createElement(ze, {
|
|
2173
|
+
extension: e,
|
|
2174
|
+
module: o,
|
|
2175
|
+
fallback: s,
|
|
2176
|
+
fallbackOnDisabled: a,
|
|
2177
|
+
autoSwitchOnDisabled: f,
|
|
2178
|
+
props: u
|
|
2179
|
+
});
|
|
2180
|
+
};
|
|
2181
|
+
return r.displayName = `${n.config.displayName || e}.Component`, r;
|
|
2182
|
+
}, [e]);
|
|
2183
|
+
}
|
|
2184
|
+
function X(e) {
|
|
2185
|
+
const t = typeof e == "object" ? e.id : e, { extensions: n } = mt(
|
|
2186
|
+
t,
|
|
2187
|
+
{
|
|
2188
|
+
includeDisabled: !1,
|
|
2189
|
+
// Only get enabled contributions
|
|
2190
|
+
autoResolve: !1
|
|
2191
|
+
}
|
|
2192
|
+
);
|
|
2193
|
+
return L(() => {
|
|
2069
2194
|
if (typeof e == "object" && e.id) {
|
|
2070
|
-
const
|
|
2071
|
-
if (
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2195
|
+
const r = e;
|
|
2196
|
+
if (r.getExtensions) {
|
|
2197
|
+
const i = r.getExtensions({
|
|
2198
|
+
[r.id]: n
|
|
2199
|
+
});
|
|
2200
|
+
return Object.values(i);
|
|
2074
2201
|
}
|
|
2075
|
-
const i = (t == null ? void 0 : t[o.id]) || {};
|
|
2076
2202
|
return Object.values(
|
|
2077
|
-
|
|
2203
|
+
n
|
|
2078
2204
|
);
|
|
2079
2205
|
}
|
|
2080
|
-
return n
|
|
2081
|
-
}, [e,
|
|
2206
|
+
return Object.values(n);
|
|
2207
|
+
}, [e, n]);
|
|
2082
2208
|
}
|
|
2083
|
-
function
|
|
2084
|
-
const { extensions: n } =
|
|
2085
|
-
return
|
|
2209
|
+
function ai(e, t) {
|
|
2210
|
+
const { extensions: n } = Oe(), r = X(e);
|
|
2211
|
+
return L(() => {
|
|
2086
2212
|
if (!r || r.length === 0)
|
|
2087
2213
|
return null;
|
|
2088
2214
|
if (t != null && t.customRanker)
|
|
2089
2215
|
return t.customRanker(r);
|
|
2090
2216
|
if (typeof e == "object" && t) {
|
|
2091
|
-
let
|
|
2092
|
-
if (t.propertyMatches && (
|
|
2217
|
+
let a = r;
|
|
2218
|
+
if (t.propertyMatches && (a = a.filter(
|
|
2093
2219
|
(u) => Object.entries(t.propertyMatches).every(
|
|
2094
|
-
([
|
|
2220
|
+
([d, c]) => {
|
|
2095
2221
|
var x;
|
|
2096
|
-
return ((x = u.data) == null ? void 0 : x[
|
|
2222
|
+
return ((x = u.data) == null ? void 0 : x[d]) === c;
|
|
2097
2223
|
}
|
|
2098
2224
|
)
|
|
2099
2225
|
)), t.preferredModule) {
|
|
2100
|
-
const u =
|
|
2101
|
-
(
|
|
2226
|
+
const u = a.find(
|
|
2227
|
+
(d) => d.sectionId === t.preferredModule
|
|
2102
2228
|
);
|
|
2103
2229
|
if (u)
|
|
2104
2230
|
return u;
|
|
2105
2231
|
}
|
|
2106
|
-
const f =
|
|
2107
|
-
return
|
|
2232
|
+
const f = a.reduce((u, d) => (u[d.id] = d, u), {});
|
|
2233
|
+
return ne(f);
|
|
2108
2234
|
}
|
|
2109
|
-
const
|
|
2110
|
-
return
|
|
2235
|
+
const i = typeof e == "string" ? e : e.id, o = (n == null ? void 0 : n[i]) || {};
|
|
2236
|
+
return ne(o, t == null ? void 0 : t.preferredModule);
|
|
2111
2237
|
}, [e, r, n, t]);
|
|
2112
2238
|
}
|
|
2113
|
-
function
|
|
2114
|
-
return
|
|
2239
|
+
function ci(e) {
|
|
2240
|
+
return X(e).length > 0;
|
|
2115
2241
|
}
|
|
2116
|
-
function
|
|
2117
|
-
return
|
|
2242
|
+
function li(e) {
|
|
2243
|
+
return X(e).length;
|
|
2118
2244
|
}
|
|
2119
|
-
function
|
|
2120
|
-
const n =
|
|
2121
|
-
return
|
|
2245
|
+
function di(e, t) {
|
|
2246
|
+
const n = X(e);
|
|
2247
|
+
return L(() => {
|
|
2122
2248
|
let r = n.filter(t.filter);
|
|
2123
2249
|
return t.sort && (r = r.sort(t.sort)), r;
|
|
2124
2250
|
}, [n, t.filter, t.sort]);
|
|
2125
2251
|
}
|
|
2126
|
-
function
|
|
2127
|
-
const n =
|
|
2252
|
+
function fi(e, t) {
|
|
2253
|
+
const n = X(e), [r, i] = B(/* @__PURE__ */ new Map()), o = L(
|
|
2128
2254
|
() => t != null && t.filter ? n.filter(t.filter) : n,
|
|
2129
2255
|
[n, t == null ? void 0 : t.filter]
|
|
2130
|
-
),
|
|
2131
|
-
return
|
|
2256
|
+
), s = (t == null ? void 0 : t.moduleProperty) || "module";
|
|
2257
|
+
return W(() => {
|
|
2132
2258
|
(async () => {
|
|
2133
2259
|
var f;
|
|
2134
|
-
for (const u of
|
|
2135
|
-
const
|
|
2136
|
-
if (!r.has(
|
|
2137
|
-
|
|
2138
|
-
(
|
|
2260
|
+
for (const u of o) {
|
|
2261
|
+
const d = u.id;
|
|
2262
|
+
if (!r.has(d)) {
|
|
2263
|
+
i(
|
|
2264
|
+
(c) => new Map(c).set(d, {
|
|
2139
2265
|
module: null,
|
|
2140
2266
|
loading: !0,
|
|
2141
2267
|
error: null
|
|
2142
2268
|
})
|
|
2143
2269
|
);
|
|
2144
2270
|
try {
|
|
2145
|
-
const
|
|
2271
|
+
const c = ((f = u.data) == null ? void 0 : f[s]) || u[s] || `./${u.id}`, x = u.remote;
|
|
2146
2272
|
if (!x)
|
|
2147
|
-
throw new Error(`No remote specified for extension ${
|
|
2148
|
-
const { loadRemoteModule: b } = await import("./documentation-generator-
|
|
2149
|
-
|
|
2150
|
-
(
|
|
2273
|
+
throw new Error(`No remote specified for extension ${d}`);
|
|
2274
|
+
const { loadRemoteModule: b } = await import("./documentation-generator-Di4c9D9P.js").then((v) => v.i), y = await b(x, c);
|
|
2275
|
+
i(
|
|
2276
|
+
(v) => new Map(v).set(d, {
|
|
2151
2277
|
module: y,
|
|
2152
2278
|
loading: !1,
|
|
2153
2279
|
error: null
|
|
2154
2280
|
})
|
|
2155
2281
|
);
|
|
2156
|
-
} catch (
|
|
2157
|
-
const x =
|
|
2158
|
-
|
|
2159
|
-
(b) => new Map(b).set(
|
|
2282
|
+
} catch (c) {
|
|
2283
|
+
const x = c instanceof Error ? c.message : "Unknown error";
|
|
2284
|
+
i(
|
|
2285
|
+
(b) => new Map(b).set(d, {
|
|
2160
2286
|
module: null,
|
|
2161
2287
|
loading: !1,
|
|
2162
2288
|
error: x
|
|
@@ -2166,111 +2292,75 @@ function io(e, t) {
|
|
|
2166
2292
|
}
|
|
2167
2293
|
}
|
|
2168
2294
|
})();
|
|
2169
|
-
}, [
|
|
2170
|
-
() =>
|
|
2171
|
-
const f = r.get(
|
|
2295
|
+
}, [o, s, r]), L(
|
|
2296
|
+
() => o.map((a) => {
|
|
2297
|
+
const f = r.get(a.id) || {
|
|
2172
2298
|
module: null,
|
|
2173
2299
|
loading: !0,
|
|
2174
2300
|
error: null
|
|
2175
2301
|
};
|
|
2176
2302
|
return {
|
|
2177
|
-
extension:
|
|
2303
|
+
extension: a,
|
|
2178
2304
|
module: f.module,
|
|
2179
2305
|
loading: f.loading,
|
|
2180
2306
|
error: f.error
|
|
2181
2307
|
};
|
|
2182
2308
|
}),
|
|
2183
|
-
[
|
|
2309
|
+
[o, r]
|
|
2184
2310
|
);
|
|
2185
2311
|
}
|
|
2186
|
-
function
|
|
2187
|
-
|
|
2188
|
-
if (!e.config.hasView)
|
|
2189
|
-
return null;
|
|
2190
|
-
const t = (n) => {
|
|
2191
|
-
const { module: r, fallback: o, ...i } = n;
|
|
2192
|
-
return Y.createElement(ze, {
|
|
2193
|
-
extension: e.id,
|
|
2194
|
-
module: r,
|
|
2195
|
-
fallback: o,
|
|
2196
|
-
props: i
|
|
2197
|
-
});
|
|
2198
|
-
};
|
|
2199
|
-
return t.displayName = `${e.config.displayName || e.id}.Component`, t;
|
|
2200
|
-
}, [e]);
|
|
2201
|
-
}
|
|
2202
|
-
function so(e) {
|
|
2203
|
-
if (!e.config.hasView)
|
|
2204
|
-
return null;
|
|
2205
|
-
const t = (n) => {
|
|
2206
|
-
const { module: r, fallback: o, ...i } = n;
|
|
2207
|
-
return Y.createElement(ze, {
|
|
2208
|
-
extension: e.id,
|
|
2209
|
-
module: r,
|
|
2210
|
-
fallback: o,
|
|
2211
|
-
props: i
|
|
2212
|
-
});
|
|
2213
|
-
};
|
|
2214
|
-
return t.displayName = `${e.config.displayName || e.id}.Component`, t;
|
|
2215
|
-
}
|
|
2216
|
-
function Hr(e) {
|
|
2217
|
-
return Y.useMemo(() => {
|
|
2218
|
-
const n = Te().getExtensionPoint(e);
|
|
2219
|
-
if (!n)
|
|
2220
|
-
return console.warn(`Extension point not found: ${e}`), null;
|
|
2221
|
-
if (!n.config.hasView)
|
|
2222
|
-
return null;
|
|
2223
|
-
const r = (o) => {
|
|
2224
|
-
const { module: i, fallback: a, ...d } = o;
|
|
2225
|
-
return Y.createElement(ze, {
|
|
2226
|
-
extension: e,
|
|
2227
|
-
module: i,
|
|
2228
|
-
fallback: a,
|
|
2229
|
-
props: d
|
|
2230
|
-
});
|
|
2231
|
-
};
|
|
2232
|
-
return r.displayName = `${n.config.displayName || e}.Component`, r;
|
|
2233
|
-
}, [e]);
|
|
2234
|
-
}
|
|
2235
|
-
function co(e, t) {
|
|
2236
|
-
const n = Z(e), r = Hr(e), o = (t == null ? void 0 : t.namespaceProperty) || "namespace", i = j(() => {
|
|
2312
|
+
function ui(e, t) {
|
|
2313
|
+
const n = X(e), r = Zr(e), i = (t == null ? void 0 : t.namespaceProperty) || "namespace", o = L(() => {
|
|
2237
2314
|
const f = n.map((u) => {
|
|
2238
|
-
var
|
|
2239
|
-
return (
|
|
2315
|
+
var d;
|
|
2316
|
+
return (d = u.data) == null ? void 0 : d[i];
|
|
2240
2317
|
}).filter(Boolean);
|
|
2241
2318
|
return Array.from(new Set(f));
|
|
2242
|
-
}, [n,
|
|
2319
|
+
}, [n, i]), { t: s, i18n: a } = Gt(o);
|
|
2243
2320
|
return {
|
|
2244
2321
|
extensions: n,
|
|
2245
|
-
t:
|
|
2246
|
-
i18n:
|
|
2322
|
+
t: s,
|
|
2323
|
+
i18n: a,
|
|
2247
2324
|
Component: r,
|
|
2248
|
-
namespaces:
|
|
2325
|
+
namespaces: o
|
|
2249
2326
|
};
|
|
2250
2327
|
}
|
|
2251
2328
|
export {
|
|
2329
|
+
mi as ContributionRegistry,
|
|
2252
2330
|
ze as DynamicComponent,
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2331
|
+
lr as ExtensionPointList,
|
|
2332
|
+
ii as FloatingPluginExplorer,
|
|
2333
|
+
ni as KosPluginProvider,
|
|
2334
|
+
kr as PluginCard,
|
|
2335
|
+
Br as PluginExplorer,
|
|
2336
|
+
Mr as PluginHealthDashboard,
|
|
2337
|
+
Kt as ReactiveExtensionRegistry,
|
|
2338
|
+
ht as ReactiveExtensionRegistryContext,
|
|
2339
|
+
gt as RemotesContext,
|
|
2340
|
+
si as createExtensionComponent,
|
|
2341
|
+
gi as defineExtensionPoint,
|
|
2342
|
+
xi as generatePluginConfiguration,
|
|
2343
|
+
yi as getContributions,
|
|
2344
|
+
bi as getExtensions,
|
|
2345
|
+
Wt as initPluginManager,
|
|
2346
|
+
Yt as initializeKosPlugins,
|
|
2347
|
+
vi as loadExtensions,
|
|
2348
|
+
ne as resolveBestExtension,
|
|
2349
|
+
ai as useBest,
|
|
2350
|
+
Zn as useDynamicComponent,
|
|
2351
|
+
oi as useExtensionComponent,
|
|
2352
|
+
Zr as useExtensionComponentById,
|
|
2353
|
+
li as useExtensionCount,
|
|
2354
|
+
ui as useExtensionI18n,
|
|
2355
|
+
ri as useExtensionPoint,
|
|
2356
|
+
X as useExtensions,
|
|
2357
|
+
dr as useFilteredExtensionPoints,
|
|
2358
|
+
di as useFilteredExtensions,
|
|
2359
|
+
ci as useHasExtensions,
|
|
2360
|
+
Oe as useKosPluginsContext,
|
|
2361
|
+
fi as useModules,
|
|
2362
|
+
xt as usePluginDiscovery,
|
|
2363
|
+
Gn as useReactiveExtensionRegistry,
|
|
2364
|
+
mt as useReactiveExtensions
|
|
2275
2365
|
};
|
|
2276
2366
|
//# sourceMappingURL=index.js.map
|