mvc-kit 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/agent-config/claude-code/skills/guide/SKILL.md +1 -1
- package/agent-config/claude-code/skills/guide/anti-patterns.md +2 -4
- package/agent-config/claude-code/skills/guide/api-reference.md +1 -1
- package/agent-config/claude-code/skills/guide/patterns.md +4 -5
- package/agent-config/claude-code/skills/review/checklist.md +1 -1
- package/agent-config/copilot/copilot-instructions.md +4 -2
- package/agent-config/cursor/cursorrules +4 -2
- package/dist/react.cjs +1 -14
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +112 -722
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,758 +1,148 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { s as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useSyncExternalStore as p, useRef as i, useEffect as a, useCallback as l, useMemo as R, useContext as b, createContext as C } from "react";
|
|
2
|
+
import { s as g, E as x, t as E } from "./singleton-C8_FRbA7.js";
|
|
3
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
4
|
+
function A(t) {
|
|
5
|
+
return t !== null && typeof t == "object" && typeof t.subscribeAsync == "function";
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
(
|
|
9
|
-
() =>
|
|
10
|
-
() =>
|
|
7
|
+
function y(t) {
|
|
8
|
+
const e = p(
|
|
9
|
+
(r) => t.subscribe(r),
|
|
10
|
+
() => t.state,
|
|
11
|
+
() => t.state
|
|
11
12
|
// SSR snapshot
|
|
12
|
-
),
|
|
13
|
-
return
|
|
14
|
-
(
|
|
15
|
-
|
|
13
|
+
), n = i(0);
|
|
14
|
+
return p(
|
|
15
|
+
(r) => A(t) ? t.subscribeAsync(() => {
|
|
16
|
+
n.current++, r();
|
|
16
17
|
}) : () => {
|
|
17
18
|
},
|
|
18
|
-
() =>
|
|
19
|
+
() => n.current,
|
|
19
20
|
() => 0
|
|
20
21
|
// SSR: no async ops server-side
|
|
21
|
-
),
|
|
22
|
+
), e;
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
26
|
-
if (
|
|
27
|
-
for (let
|
|
28
|
-
if (!Object.is(n
|
|
24
|
+
const h = (t) => t !== null && typeof t == "object" && "state" in t && "subscribe" in t && typeof t.subscribe == "function", d = (t) => t !== null && typeof t == "object" && "init" in t && typeof t.init == "function";
|
|
25
|
+
function w(t, e) {
|
|
26
|
+
if (t === void 0) return !1;
|
|
27
|
+
if (t.length !== e.length) return !0;
|
|
28
|
+
for (let n = 0; n < t.length; n++)
|
|
29
|
+
if (!Object.is(t[n], e[n])) return !0;
|
|
29
30
|
return !1;
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
function I(t, ...e) {
|
|
33
|
+
let n, r;
|
|
34
|
+
e.length > 0 && Array.isArray(e[e.length - 1]) ? (r = e[e.length - 1], n = e.slice(0, -1)) : (n = e, r = void 0);
|
|
35
|
+
const u = i(null), s = i(!1), o = i(void 0);
|
|
36
|
+
return r !== void 0 && w(o.current, r) && (u.current?.dispose(), u.current = null), r !== void 0 && (o.current = r), (!u.current || u.current.disposed) && (typeof t == "function" && t.prototype && t.prototype.constructor === t ? u.current = new t(...n) : u.current = t()), a(() => {
|
|
37
|
+
const c = u.current;
|
|
38
|
+
return s.current = !0, d(c) && c.init(), () => {
|
|
39
|
+
s.current = !1, setTimeout(() => {
|
|
40
|
+
s.current || c.dispose();
|
|
40
41
|
}, 0);
|
|
41
42
|
};
|
|
42
|
-
},
|
|
43
|
+
}, r ?? []), h(u.current) ? [y(u.current), u.current] : u.current;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
}, [
|
|
45
|
+
function k(t, ...e) {
|
|
46
|
+
const n = g(t, ...e);
|
|
47
|
+
return a(() => {
|
|
48
|
+
d(n) && n.init();
|
|
49
|
+
}, [n]), h(n) ? [y(n), n] : n;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
-
const
|
|
52
|
-
(!
|
|
53
|
-
(
|
|
54
|
-
() =>
|
|
55
|
-
() =>
|
|
56
|
-
),
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
function z(t) {
|
|
52
|
+
const e = i(null), n = i(!1);
|
|
53
|
+
(!e.current || e.current.disposed) && (e.current = t()), p(
|
|
54
|
+
(u) => e.current.subscribe(u),
|
|
55
|
+
() => e.current.state,
|
|
56
|
+
() => e.current.state
|
|
57
|
+
), a(() => (n.current = !0, d(e.current) && e.current.init(), () => {
|
|
58
|
+
n.current = !1, setTimeout(() => {
|
|
59
|
+
n.current || e.current?.dispose();
|
|
59
60
|
}, 0);
|
|
60
61
|
}), []);
|
|
61
|
-
const
|
|
62
|
+
const r = e.current;
|
|
62
63
|
return {
|
|
63
|
-
state:
|
|
64
|
-
errors:
|
|
65
|
-
valid:
|
|
66
|
-
dirty:
|
|
67
|
-
model:
|
|
64
|
+
state: r.state,
|
|
65
|
+
errors: r.errors,
|
|
66
|
+
valid: r.valid,
|
|
67
|
+
dirty: r.dirty,
|
|
68
|
+
model: r
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
const
|
|
72
|
-
value:
|
|
73
|
-
error:
|
|
74
|
-
}), [
|
|
75
|
-
(
|
|
76
|
-
const
|
|
77
|
-
(
|
|
71
|
+
function B(t, e) {
|
|
72
|
+
const n = l(() => ({
|
|
73
|
+
value: t.state[e],
|
|
74
|
+
error: t.errors[e]
|
|
75
|
+
}), [t, e]), r = i(n()), u = l(
|
|
76
|
+
(c) => t.subscribe(() => {
|
|
77
|
+
const f = n(), v = r.current;
|
|
78
|
+
(f.value !== v.value || f.error !== v.error) && (r.current = f, c());
|
|
78
79
|
}),
|
|
79
|
-
[
|
|
80
|
-
),
|
|
81
|
-
|
|
82
|
-
() =>
|
|
83
|
-
() =>
|
|
84
|
-
),
|
|
85
|
-
(
|
|
86
|
-
const
|
|
87
|
-
|
|
80
|
+
[t, n]
|
|
81
|
+
), s = p(
|
|
82
|
+
u,
|
|
83
|
+
() => r.current,
|
|
84
|
+
() => r.current
|
|
85
|
+
), o = l(
|
|
86
|
+
(c) => {
|
|
87
|
+
const f = { [e]: c };
|
|
88
|
+
t.set(f);
|
|
88
89
|
},
|
|
89
|
-
[
|
|
90
|
+
[t, e]
|
|
90
91
|
);
|
|
91
92
|
return {
|
|
92
|
-
value:
|
|
93
|
-
error:
|
|
94
|
-
set:
|
|
93
|
+
value: s.value,
|
|
94
|
+
error: s.error,
|
|
95
|
+
set: o
|
|
95
96
|
};
|
|
96
97
|
}
|
|
97
|
-
function
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}), [
|
|
98
|
+
function D(t, e, n) {
|
|
99
|
+
const r = t instanceof x ? t : t.events, u = i(n);
|
|
100
|
+
u.current = n, a(() => r.on(e, (o) => {
|
|
101
|
+
u.current(o);
|
|
102
|
+
}), [r, e]);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
105
|
-
(
|
|
106
|
-
|
|
104
|
+
function L(t) {
|
|
105
|
+
return l(
|
|
106
|
+
(e, n) => {
|
|
107
|
+
t.emit(e, n);
|
|
107
108
|
},
|
|
108
|
-
[
|
|
109
|
+
[t]
|
|
109
110
|
);
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
if (!
|
|
116
|
-
for (const
|
|
117
|
-
|
|
112
|
+
function q(...t) {
|
|
113
|
+
const e = i(!1);
|
|
114
|
+
a(() => (e.current = !0, () => {
|
|
115
|
+
e.current = !1, setTimeout(() => {
|
|
116
|
+
if (!e.current)
|
|
117
|
+
for (const n of t)
|
|
118
|
+
E(n);
|
|
118
119
|
}, 0);
|
|
119
120
|
}), []);
|
|
120
121
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
for (_ in d) u.call(d, _) && !b.hasOwnProperty(_) && (C[_] = d[_]);
|
|
131
|
-
if (y && y.defaultProps) for (_ in d = y.defaultProps, d) C[_] === void 0 && (C[_] = d[_]);
|
|
132
|
-
return { $$typeof: a, type: y, key: O, ref: M, props: C, _owner: v.current };
|
|
133
|
-
}
|
|
134
|
-
return $.Fragment = o, $.jsx = m, $.jsxs = m, $;
|
|
122
|
+
const m = C(null);
|
|
123
|
+
function G({ provide: t, children: e }) {
|
|
124
|
+
const n = R(() => {
|
|
125
|
+
const r = /* @__PURE__ */ new Map();
|
|
126
|
+
for (const [u, s] of t)
|
|
127
|
+
r.set(u, s);
|
|
128
|
+
return r;
|
|
129
|
+
}, [t]);
|
|
130
|
+
return /* @__PURE__ */ S(m.Provider, { value: n, children: e });
|
|
135
131
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return xe || (xe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
140
|
-
var n = ke, a = /* @__PURE__ */ Symbol.for("react.element"), o = /* @__PURE__ */ Symbol.for("react.portal"), u = /* @__PURE__ */ Symbol.for("react.fragment"), v = /* @__PURE__ */ Symbol.for("react.strict_mode"), b = /* @__PURE__ */ Symbol.for("react.profiler"), m = /* @__PURE__ */ Symbol.for("react.provider"), y = /* @__PURE__ */ Symbol.for("react.context"), d = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), _ = /* @__PURE__ */ Symbol.for("react.suspense_list"), C = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), M = /* @__PURE__ */ Symbol.for("react.offscreen"), te = Symbol.iterator, $e = "@@iterator";
|
|
141
|
-
function We(e) {
|
|
142
|
-
if (e === null || typeof e != "object")
|
|
143
|
-
return null;
|
|
144
|
-
var r = te && e[te] || e[$e];
|
|
145
|
-
return typeof r == "function" ? r : null;
|
|
146
|
-
}
|
|
147
|
-
var k = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
148
|
-
function h(e) {
|
|
149
|
-
{
|
|
150
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
151
|
-
t[i - 1] = arguments[i];
|
|
152
|
-
Ye("error", e, t);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function Ye(e, r, t) {
|
|
156
|
-
{
|
|
157
|
-
var i = k.ReactDebugCurrentFrame, f = i.getStackAddendum();
|
|
158
|
-
f !== "" && (r += "%s", t = t.concat([f]));
|
|
159
|
-
var l = t.map(function(c) {
|
|
160
|
-
return String(c);
|
|
161
|
-
});
|
|
162
|
-
l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
var Me = !1, Le = !1, Ve = !1, Ue = !1, Ne = !1, ne;
|
|
166
|
-
ne = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
167
|
-
function Je(e) {
|
|
168
|
-
return !!(typeof e == "string" || typeof e == "function" || e === u || e === b || Ne || e === v || e === S || e === _ || Ue || e === M || Me || Le || Ve || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === C || e.$$typeof === m || e.$$typeof === y || e.$$typeof === d || // This needs to include all possible module reference object
|
|
169
|
-
// types supported by any Flight configuration anywhere since
|
|
170
|
-
// we don't know which Flight build this will end up being used
|
|
171
|
-
// with.
|
|
172
|
-
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
173
|
-
}
|
|
174
|
-
function qe(e, r, t) {
|
|
175
|
-
var i = e.displayName;
|
|
176
|
-
if (i)
|
|
177
|
-
return i;
|
|
178
|
-
var f = r.displayName || r.name || "";
|
|
179
|
-
return f !== "" ? t + "(" + f + ")" : t;
|
|
180
|
-
}
|
|
181
|
-
function ae(e) {
|
|
182
|
-
return e.displayName || "Context";
|
|
183
|
-
}
|
|
184
|
-
function w(e) {
|
|
185
|
-
if (e == null)
|
|
186
|
-
return null;
|
|
187
|
-
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
188
|
-
return e.displayName || e.name || null;
|
|
189
|
-
if (typeof e == "string")
|
|
190
|
-
return e;
|
|
191
|
-
switch (e) {
|
|
192
|
-
case u:
|
|
193
|
-
return "Fragment";
|
|
194
|
-
case o:
|
|
195
|
-
return "Portal";
|
|
196
|
-
case b:
|
|
197
|
-
return "Profiler";
|
|
198
|
-
case v:
|
|
199
|
-
return "StrictMode";
|
|
200
|
-
case S:
|
|
201
|
-
return "Suspense";
|
|
202
|
-
case _:
|
|
203
|
-
return "SuspenseList";
|
|
204
|
-
}
|
|
205
|
-
if (typeof e == "object")
|
|
206
|
-
switch (e.$$typeof) {
|
|
207
|
-
case y:
|
|
208
|
-
var r = e;
|
|
209
|
-
return ae(r) + ".Consumer";
|
|
210
|
-
case m:
|
|
211
|
-
var t = e;
|
|
212
|
-
return ae(t._context) + ".Provider";
|
|
213
|
-
case d:
|
|
214
|
-
return qe(e, e.render, "ForwardRef");
|
|
215
|
-
case C:
|
|
216
|
-
var i = e.displayName || null;
|
|
217
|
-
return i !== null ? i : w(e.type) || "Memo";
|
|
218
|
-
case O: {
|
|
219
|
-
var f = e, l = f._payload, c = f._init;
|
|
220
|
-
try {
|
|
221
|
-
return w(c(l));
|
|
222
|
-
} catch {
|
|
223
|
-
return null;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
return null;
|
|
228
|
-
}
|
|
229
|
-
var x = Object.assign, F = 0, ie, oe, ue, se, ce, fe, le;
|
|
230
|
-
function ve() {
|
|
231
|
-
}
|
|
232
|
-
ve.__reactDisabledLog = !0;
|
|
233
|
-
function Be() {
|
|
234
|
-
{
|
|
235
|
-
if (F === 0) {
|
|
236
|
-
ie = console.log, oe = console.info, ue = console.warn, se = console.error, ce = console.group, fe = console.groupCollapsed, le = console.groupEnd;
|
|
237
|
-
var e = {
|
|
238
|
-
configurable: !0,
|
|
239
|
-
enumerable: !0,
|
|
240
|
-
value: ve,
|
|
241
|
-
writable: !0
|
|
242
|
-
};
|
|
243
|
-
Object.defineProperties(console, {
|
|
244
|
-
info: e,
|
|
245
|
-
log: e,
|
|
246
|
-
warn: e,
|
|
247
|
-
error: e,
|
|
248
|
-
group: e,
|
|
249
|
-
groupCollapsed: e,
|
|
250
|
-
groupEnd: e
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
F++;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
function Ke() {
|
|
257
|
-
{
|
|
258
|
-
if (F--, F === 0) {
|
|
259
|
-
var e = {
|
|
260
|
-
configurable: !0,
|
|
261
|
-
enumerable: !0,
|
|
262
|
-
writable: !0
|
|
263
|
-
};
|
|
264
|
-
Object.defineProperties(console, {
|
|
265
|
-
log: x({}, e, {
|
|
266
|
-
value: ie
|
|
267
|
-
}),
|
|
268
|
-
info: x({}, e, {
|
|
269
|
-
value: oe
|
|
270
|
-
}),
|
|
271
|
-
warn: x({}, e, {
|
|
272
|
-
value: ue
|
|
273
|
-
}),
|
|
274
|
-
error: x({}, e, {
|
|
275
|
-
value: se
|
|
276
|
-
}),
|
|
277
|
-
group: x({}, e, {
|
|
278
|
-
value: ce
|
|
279
|
-
}),
|
|
280
|
-
groupCollapsed: x({}, e, {
|
|
281
|
-
value: fe
|
|
282
|
-
}),
|
|
283
|
-
groupEnd: x({}, e, {
|
|
284
|
-
value: le
|
|
285
|
-
})
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
F < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
var K = k.ReactCurrentDispatcher, z;
|
|
292
|
-
function L(e, r, t) {
|
|
293
|
-
{
|
|
294
|
-
if (z === void 0)
|
|
295
|
-
try {
|
|
296
|
-
throw Error();
|
|
297
|
-
} catch (f) {
|
|
298
|
-
var i = f.stack.trim().match(/\n( *(at )?)/);
|
|
299
|
-
z = i && i[1] || "";
|
|
300
|
-
}
|
|
301
|
-
return `
|
|
302
|
-
` + z + e;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
var G = !1, V;
|
|
306
|
-
{
|
|
307
|
-
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
308
|
-
V = new ze();
|
|
309
|
-
}
|
|
310
|
-
function de(e, r) {
|
|
311
|
-
if (!e || G)
|
|
312
|
-
return "";
|
|
313
|
-
{
|
|
314
|
-
var t = V.get(e);
|
|
315
|
-
if (t !== void 0)
|
|
316
|
-
return t;
|
|
317
|
-
}
|
|
318
|
-
var i;
|
|
319
|
-
G = !0;
|
|
320
|
-
var f = Error.prepareStackTrace;
|
|
321
|
-
Error.prepareStackTrace = void 0;
|
|
322
|
-
var l;
|
|
323
|
-
l = K.current, K.current = null, Be();
|
|
324
|
-
try {
|
|
325
|
-
if (r) {
|
|
326
|
-
var c = function() {
|
|
327
|
-
throw Error();
|
|
328
|
-
};
|
|
329
|
-
if (Object.defineProperty(c.prototype, "props", {
|
|
330
|
-
set: function() {
|
|
331
|
-
throw Error();
|
|
332
|
-
}
|
|
333
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
334
|
-
try {
|
|
335
|
-
Reflect.construct(c, []);
|
|
336
|
-
} catch (E) {
|
|
337
|
-
i = E;
|
|
338
|
-
}
|
|
339
|
-
Reflect.construct(e, [], c);
|
|
340
|
-
} else {
|
|
341
|
-
try {
|
|
342
|
-
c.call();
|
|
343
|
-
} catch (E) {
|
|
344
|
-
i = E;
|
|
345
|
-
}
|
|
346
|
-
e.call(c.prototype);
|
|
347
|
-
}
|
|
348
|
-
} else {
|
|
349
|
-
try {
|
|
350
|
-
throw Error();
|
|
351
|
-
} catch (E) {
|
|
352
|
-
i = E;
|
|
353
|
-
}
|
|
354
|
-
e();
|
|
355
|
-
}
|
|
356
|
-
} catch (E) {
|
|
357
|
-
if (E && i && typeof E.stack == "string") {
|
|
358
|
-
for (var s = E.stack.split(`
|
|
359
|
-
`), R = i.stack.split(`
|
|
360
|
-
`), p = s.length - 1, g = R.length - 1; p >= 1 && g >= 0 && s[p] !== R[g]; )
|
|
361
|
-
g--;
|
|
362
|
-
for (; p >= 1 && g >= 0; p--, g--)
|
|
363
|
-
if (s[p] !== R[g]) {
|
|
364
|
-
if (p !== 1 || g !== 1)
|
|
365
|
-
do
|
|
366
|
-
if (p--, g--, g < 0 || s[p] !== R[g]) {
|
|
367
|
-
var T = `
|
|
368
|
-
` + s[p].replace(" at new ", " at ");
|
|
369
|
-
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, T), T;
|
|
370
|
-
}
|
|
371
|
-
while (p >= 1 && g >= 0);
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
} finally {
|
|
376
|
-
G = !1, K.current = l, Ke(), Error.prepareStackTrace = f;
|
|
377
|
-
}
|
|
378
|
-
var D = e ? e.displayName || e.name : "", j = D ? L(D) : "";
|
|
379
|
-
return typeof e == "function" && V.set(e, j), j;
|
|
380
|
-
}
|
|
381
|
-
function Ge(e, r, t) {
|
|
382
|
-
return de(e, !1);
|
|
383
|
-
}
|
|
384
|
-
function Xe(e) {
|
|
385
|
-
var r = e.prototype;
|
|
386
|
-
return !!(r && r.isReactComponent);
|
|
387
|
-
}
|
|
388
|
-
function U(e, r, t) {
|
|
389
|
-
if (e == null)
|
|
390
|
-
return "";
|
|
391
|
-
if (typeof e == "function")
|
|
392
|
-
return de(e, Xe(e));
|
|
393
|
-
if (typeof e == "string")
|
|
394
|
-
return L(e);
|
|
395
|
-
switch (e) {
|
|
396
|
-
case S:
|
|
397
|
-
return L("Suspense");
|
|
398
|
-
case _:
|
|
399
|
-
return L("SuspenseList");
|
|
400
|
-
}
|
|
401
|
-
if (typeof e == "object")
|
|
402
|
-
switch (e.$$typeof) {
|
|
403
|
-
case d:
|
|
404
|
-
return Ge(e.render);
|
|
405
|
-
case C:
|
|
406
|
-
return U(e.type, r, t);
|
|
407
|
-
case O: {
|
|
408
|
-
var i = e, f = i._payload, l = i._init;
|
|
409
|
-
try {
|
|
410
|
-
return U(l(f), r, t);
|
|
411
|
-
} catch {
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
return "";
|
|
416
|
-
}
|
|
417
|
-
var I = Object.prototype.hasOwnProperty, pe = {}, ge = k.ReactDebugCurrentFrame;
|
|
418
|
-
function N(e) {
|
|
419
|
-
if (e) {
|
|
420
|
-
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
421
|
-
ge.setExtraStackFrame(t);
|
|
422
|
-
} else
|
|
423
|
-
ge.setExtraStackFrame(null);
|
|
424
|
-
}
|
|
425
|
-
function He(e, r, t, i, f) {
|
|
426
|
-
{
|
|
427
|
-
var l = Function.call.bind(I);
|
|
428
|
-
for (var c in e)
|
|
429
|
-
if (l(e, c)) {
|
|
430
|
-
var s = void 0;
|
|
431
|
-
try {
|
|
432
|
-
if (typeof e[c] != "function") {
|
|
433
|
-
var R = Error((i || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
434
|
-
throw R.name = "Invariant Violation", R;
|
|
435
|
-
}
|
|
436
|
-
s = e[c](r, c, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
437
|
-
} catch (p) {
|
|
438
|
-
s = p;
|
|
439
|
-
}
|
|
440
|
-
s && !(s instanceof Error) && (N(f), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", t, c, typeof s), N(null)), s instanceof Error && !(s.message in pe) && (pe[s.message] = !0, N(f), h("Failed %s type: %s", t, s.message), N(null));
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
var Ze = Array.isArray;
|
|
445
|
-
function X(e) {
|
|
446
|
-
return Ze(e);
|
|
447
|
-
}
|
|
448
|
-
function Qe(e) {
|
|
449
|
-
{
|
|
450
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
451
|
-
return t;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function er(e) {
|
|
455
|
-
try {
|
|
456
|
-
return ye(e), !1;
|
|
457
|
-
} catch {
|
|
458
|
-
return !0;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function ye(e) {
|
|
462
|
-
return "" + e;
|
|
463
|
-
}
|
|
464
|
-
function he(e) {
|
|
465
|
-
if (er(e))
|
|
466
|
-
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), ye(e);
|
|
467
|
-
}
|
|
468
|
-
var Re = k.ReactCurrentOwner, rr = {
|
|
469
|
-
key: !0,
|
|
470
|
-
ref: !0,
|
|
471
|
-
__self: !0,
|
|
472
|
-
__source: !0
|
|
473
|
-
}, be, Ee;
|
|
474
|
-
function tr(e) {
|
|
475
|
-
if (I.call(e, "ref")) {
|
|
476
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
477
|
-
if (r && r.isReactWarning)
|
|
478
|
-
return !1;
|
|
479
|
-
}
|
|
480
|
-
return e.ref !== void 0;
|
|
481
|
-
}
|
|
482
|
-
function nr(e) {
|
|
483
|
-
if (I.call(e, "key")) {
|
|
484
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
485
|
-
if (r && r.isReactWarning)
|
|
486
|
-
return !1;
|
|
487
|
-
}
|
|
488
|
-
return e.key !== void 0;
|
|
489
|
-
}
|
|
490
|
-
function ar(e, r) {
|
|
491
|
-
typeof e.ref == "string" && Re.current;
|
|
492
|
-
}
|
|
493
|
-
function ir(e, r) {
|
|
494
|
-
{
|
|
495
|
-
var t = function() {
|
|
496
|
-
be || (be = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
497
|
-
};
|
|
498
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
499
|
-
get: t,
|
|
500
|
-
configurable: !0
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
function or(e, r) {
|
|
505
|
-
{
|
|
506
|
-
var t = function() {
|
|
507
|
-
Ee || (Ee = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
508
|
-
};
|
|
509
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
510
|
-
get: t,
|
|
511
|
-
configurable: !0
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
var ur = function(e, r, t, i, f, l, c) {
|
|
516
|
-
var s = {
|
|
517
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
518
|
-
$$typeof: a,
|
|
519
|
-
// Built-in properties that belong on the element
|
|
520
|
-
type: e,
|
|
521
|
-
key: r,
|
|
522
|
-
ref: t,
|
|
523
|
-
props: c,
|
|
524
|
-
// Record the component responsible for creating this element.
|
|
525
|
-
_owner: l
|
|
526
|
-
};
|
|
527
|
-
return s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
528
|
-
configurable: !1,
|
|
529
|
-
enumerable: !1,
|
|
530
|
-
writable: !0,
|
|
531
|
-
value: !1
|
|
532
|
-
}), Object.defineProperty(s, "_self", {
|
|
533
|
-
configurable: !1,
|
|
534
|
-
enumerable: !1,
|
|
535
|
-
writable: !1,
|
|
536
|
-
value: i
|
|
537
|
-
}), Object.defineProperty(s, "_source", {
|
|
538
|
-
configurable: !1,
|
|
539
|
-
enumerable: !1,
|
|
540
|
-
writable: !1,
|
|
541
|
-
value: f
|
|
542
|
-
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
543
|
-
};
|
|
544
|
-
function sr(e, r, t, i, f) {
|
|
545
|
-
{
|
|
546
|
-
var l, c = {}, s = null, R = null;
|
|
547
|
-
t !== void 0 && (he(t), s = "" + t), nr(r) && (he(r.key), s = "" + r.key), tr(r) && (R = r.ref, ar(r, f));
|
|
548
|
-
for (l in r)
|
|
549
|
-
I.call(r, l) && !rr.hasOwnProperty(l) && (c[l] = r[l]);
|
|
550
|
-
if (e && e.defaultProps) {
|
|
551
|
-
var p = e.defaultProps;
|
|
552
|
-
for (l in p)
|
|
553
|
-
c[l] === void 0 && (c[l] = p[l]);
|
|
554
|
-
}
|
|
555
|
-
if (s || R) {
|
|
556
|
-
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
557
|
-
s && ir(c, g), R && or(c, g);
|
|
558
|
-
}
|
|
559
|
-
return ur(e, s, R, f, i, Re.current, c);
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
var H = k.ReactCurrentOwner, _e = k.ReactDebugCurrentFrame;
|
|
563
|
-
function A(e) {
|
|
564
|
-
if (e) {
|
|
565
|
-
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
566
|
-
_e.setExtraStackFrame(t);
|
|
567
|
-
} else
|
|
568
|
-
_e.setExtraStackFrame(null);
|
|
569
|
-
}
|
|
570
|
-
var Z;
|
|
571
|
-
Z = !1;
|
|
572
|
-
function Q(e) {
|
|
573
|
-
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
574
|
-
}
|
|
575
|
-
function me() {
|
|
576
|
-
{
|
|
577
|
-
if (H.current) {
|
|
578
|
-
var e = w(H.current.type);
|
|
579
|
-
if (e)
|
|
580
|
-
return `
|
|
581
|
-
|
|
582
|
-
Check the render method of \`` + e + "`.";
|
|
583
|
-
}
|
|
584
|
-
return "";
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
function cr(e) {
|
|
588
|
-
return "";
|
|
589
|
-
}
|
|
590
|
-
var Te = {};
|
|
591
|
-
function fr(e) {
|
|
592
|
-
{
|
|
593
|
-
var r = me();
|
|
594
|
-
if (!r) {
|
|
595
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
596
|
-
t && (r = `
|
|
597
|
-
|
|
598
|
-
Check the top-level render call using <` + t + ">.");
|
|
599
|
-
}
|
|
600
|
-
return r;
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
function Se(e, r) {
|
|
604
|
-
{
|
|
605
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
606
|
-
return;
|
|
607
|
-
e._store.validated = !0;
|
|
608
|
-
var t = fr(r);
|
|
609
|
-
if (Te[t])
|
|
610
|
-
return;
|
|
611
|
-
Te[t] = !0;
|
|
612
|
-
var i = "";
|
|
613
|
-
e && e._owner && e._owner !== H.current && (i = " It was passed a child from " + w(e._owner.type) + "."), A(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), A(null);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function Ce(e, r) {
|
|
617
|
-
{
|
|
618
|
-
if (typeof e != "object")
|
|
619
|
-
return;
|
|
620
|
-
if (X(e))
|
|
621
|
-
for (var t = 0; t < e.length; t++) {
|
|
622
|
-
var i = e[t];
|
|
623
|
-
Q(i) && Se(i, r);
|
|
624
|
-
}
|
|
625
|
-
else if (Q(e))
|
|
626
|
-
e._store && (e._store.validated = !0);
|
|
627
|
-
else if (e) {
|
|
628
|
-
var f = We(e);
|
|
629
|
-
if (typeof f == "function" && f !== e.entries)
|
|
630
|
-
for (var l = f.call(e), c; !(c = l.next()).done; )
|
|
631
|
-
Q(c.value) && Se(c.value, r);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
function lr(e) {
|
|
636
|
-
{
|
|
637
|
-
var r = e.type;
|
|
638
|
-
if (r == null || typeof r == "string")
|
|
639
|
-
return;
|
|
640
|
-
var t;
|
|
641
|
-
if (typeof r == "function")
|
|
642
|
-
t = r.propTypes;
|
|
643
|
-
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
|
|
644
|
-
// Inner props are checked in the reconciler.
|
|
645
|
-
r.$$typeof === C))
|
|
646
|
-
t = r.propTypes;
|
|
647
|
-
else
|
|
648
|
-
return;
|
|
649
|
-
if (t) {
|
|
650
|
-
var i = w(r);
|
|
651
|
-
He(t, e.props, "prop", i, e);
|
|
652
|
-
} else if (r.PropTypes !== void 0 && !Z) {
|
|
653
|
-
Z = !0;
|
|
654
|
-
var f = w(r);
|
|
655
|
-
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
|
|
656
|
-
}
|
|
657
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
function vr(e) {
|
|
661
|
-
{
|
|
662
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
663
|
-
var i = r[t];
|
|
664
|
-
if (i !== "children" && i !== "key") {
|
|
665
|
-
A(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), A(null);
|
|
666
|
-
break;
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
e.ref !== null && (A(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
var Pe = {};
|
|
673
|
-
function we(e, r, t, i, f, l) {
|
|
674
|
-
{
|
|
675
|
-
var c = Je(e);
|
|
676
|
-
if (!c) {
|
|
677
|
-
var s = "";
|
|
678
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
679
|
-
var R = cr();
|
|
680
|
-
R ? s += R : s += me();
|
|
681
|
-
var p;
|
|
682
|
-
e === null ? p = "null" : X(e) ? p = "array" : e !== void 0 && e.$$typeof === a ? (p = "<" + (w(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, s);
|
|
683
|
-
}
|
|
684
|
-
var g = sr(e, r, t, f, l);
|
|
685
|
-
if (g == null)
|
|
686
|
-
return g;
|
|
687
|
-
if (c) {
|
|
688
|
-
var T = r.children;
|
|
689
|
-
if (T !== void 0)
|
|
690
|
-
if (i)
|
|
691
|
-
if (X(T)) {
|
|
692
|
-
for (var D = 0; D < T.length; D++)
|
|
693
|
-
Ce(T[D], e);
|
|
694
|
-
Object.freeze && Object.freeze(T);
|
|
695
|
-
} else
|
|
696
|
-
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
697
|
-
else
|
|
698
|
-
Ce(T, e);
|
|
699
|
-
}
|
|
700
|
-
if (I.call(r, "key")) {
|
|
701
|
-
var j = w(e), E = Object.keys(r).filter(function(Rr) {
|
|
702
|
-
return Rr !== "key";
|
|
703
|
-
}), ee = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
704
|
-
if (!Pe[j + ee]) {
|
|
705
|
-
var hr = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
|
|
706
|
-
h(`A props object containing a "key" prop is being spread into JSX:
|
|
707
|
-
let props = %s;
|
|
708
|
-
<%s {...props} />
|
|
709
|
-
React keys must be passed directly to JSX without using spread:
|
|
710
|
-
let props = %s;
|
|
711
|
-
<%s key={someKey} {...props} />`, ee, j, hr, j), Pe[j + ee] = !0;
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
return e === u ? vr(g) : lr(g), g;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
function dr(e, r, t) {
|
|
718
|
-
return we(e, r, t, !0);
|
|
719
|
-
}
|
|
720
|
-
function pr(e, r, t) {
|
|
721
|
-
return we(e, r, t, !1);
|
|
722
|
-
}
|
|
723
|
-
var gr = pr, yr = dr;
|
|
724
|
-
W.Fragment = u, W.jsx = gr, W.jsxs = yr;
|
|
725
|
-
})()), W;
|
|
726
|
-
}
|
|
727
|
-
var je;
|
|
728
|
-
function Or() {
|
|
729
|
-
return je || (je = 1, process.env.NODE_ENV === "production" ? J.exports = Pr() : J.exports = wr()), J.exports;
|
|
730
|
-
}
|
|
731
|
-
var xr = Or();
|
|
732
|
-
const Ie = _r(null);
|
|
733
|
-
function Mr({ provide: n, children: a }) {
|
|
734
|
-
const o = br(() => {
|
|
735
|
-
const u = /* @__PURE__ */ new Map();
|
|
736
|
-
for (const [v, b] of n)
|
|
737
|
-
u.set(v, b);
|
|
738
|
-
return u;
|
|
739
|
-
}, [n]);
|
|
740
|
-
return /* @__PURE__ */ xr.jsx(Ie.Provider, { value: o, children: a });
|
|
741
|
-
}
|
|
742
|
-
function Lr(n, ...a) {
|
|
743
|
-
const o = Er(Ie);
|
|
744
|
-
return o?.has(n) ? o.get(n) : Ae(n, ...a);
|
|
132
|
+
function H(t, ...e) {
|
|
133
|
+
const n = b(m);
|
|
134
|
+
return n?.has(t) ? n.get(t) : g(t, ...e);
|
|
745
135
|
}
|
|
746
136
|
export {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
137
|
+
G as Provider,
|
|
138
|
+
L as useEmit,
|
|
139
|
+
D as useEvent,
|
|
140
|
+
B as useField,
|
|
141
|
+
y as useInstance,
|
|
142
|
+
I as useLocal,
|
|
143
|
+
z as useModel,
|
|
144
|
+
H as useResolve,
|
|
145
|
+
k as useSingleton,
|
|
146
|
+
q as useTeardown
|
|
757
147
|
};
|
|
758
148
|
//# sourceMappingURL=react.js.map
|