gemi 0.19.2 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.js +2 -2
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gemi.js +19 -9
- package/dist/bin/gemi.js.map +4 -4
- package/dist/broadcasting/index.js +1 -1
- package/dist/{chunk-6erxq55m.js → chunk-07ca4ceg.js} +1 -1
- package/dist/{chunk-kwn176pr.js → chunk-1t8qmpmj.js} +4 -4
- package/dist/{chunk-kwn176pr.js.map → chunk-1t8qmpmj.js.map} +3 -4
- package/dist/chunk-3fsjzd51.js +4 -0
- package/dist/{chunk-bxy6tqt8.js.map → chunk-3fsjzd51.js.map} +2 -2
- package/dist/chunk-415np062.js +4 -0
- package/dist/{chunk-shx43qev.js.map → chunk-415np062.js.map} +11 -8
- package/dist/{chunk-zja5jcxt.js → chunk-44ec3e65.js} +3 -3
- package/dist/{chunk-zja5jcxt.js.map → chunk-44ec3e65.js.map} +1 -1
- package/dist/chunk-4fwt0fyj.js +27 -0
- package/dist/{chunk-r9vkr7kz.js.map → chunk-4fwt0fyj.js.map} +3 -4
- package/dist/chunk-616257hy.js +4 -0
- package/dist/{chunk-zdmjddvp.js.map → chunk-616257hy.js.map} +2 -2
- package/dist/chunk-6j49em7j.js +4 -0
- package/dist/{chunk-zeyq4p6y.js.map → chunk-6j49em7j.js.map} +5 -5
- package/dist/{chunk-cr3jz0qz.js → chunk-72dc851j.js} +3 -3
- package/dist/{chunk-cr3jz0qz.js.map → chunk-72dc851j.js.map} +1 -1
- package/dist/chunk-8ag21jpk.js +4 -0
- package/dist/{chunk-szs1nkf4.js.map → chunk-8ag21jpk.js.map} +2 -2
- package/dist/chunk-8bdb28e6.js +5 -0
- package/dist/{chunk-kcvz59db.js.map → chunk-8bdb28e6.js.map} +2 -2
- package/dist/chunk-99j22tkv.js +4 -0
- package/dist/{chunk-xg82xtdy.js.map → chunk-99j22tkv.js.map} +2 -2
- package/dist/chunk-b1z8jxf5.js +4 -0
- package/dist/{chunk-ezyz3gaq.js.map → chunk-b1z8jxf5.js.map} +2 -2
- package/dist/chunk-bk09ychd.js +4 -0
- package/dist/{chunk-2j91yc5g.js.map → chunk-bk09ychd.js.map} +4 -4
- package/dist/{chunk-946x83cd.js → chunk-bvf4sg7q.js} +2 -2
- package/dist/{chunk-946x83cd.js.map → chunk-bvf4sg7q.js.map} +1 -1
- package/dist/{chunk-njj6q7xt.js → chunk-cfewfaa5.js} +2 -2
- package/dist/{chunk-njj6q7xt.js.map → chunk-cfewfaa5.js.map} +1 -1
- package/dist/{chunk-9khdm7dc.js → chunk-cm0h7j42.js} +2 -2
- package/dist/{chunk-9khdm7dc.js.map → chunk-cm0h7j42.js.map} +1 -1
- package/dist/{chunk-j42e2g1d.js → chunk-cq0rr00v.js} +3 -3
- package/dist/{chunk-j42e2g1d.js.map → chunk-cq0rr00v.js.map} +1 -1
- package/dist/chunk-eznd0gdt.js +4 -0
- package/dist/chunk-eznd0gdt.js.map +10 -0
- package/dist/{chunk-y8ggk3r3.js → chunk-fmwhbymf.js} +2 -2
- package/dist/{chunk-y8ggk3r3.js.map → chunk-fmwhbymf.js.map} +1 -1
- package/dist/{chunk-m88m39d2.js → chunk-kv7wdsa2.js} +2 -2
- package/dist/{chunk-m88m39d2.js.map → chunk-kv7wdsa2.js.map} +1 -1
- package/dist/chunk-mm30bjah.js +4 -0
- package/dist/{chunk-hq6bnmbe.js.map → chunk-mm30bjah.js.map} +1 -1
- package/dist/chunk-n05a7xy4.js +4 -0
- package/dist/{chunk-7pb9p4tj.js.map → chunk-n05a7xy4.js.map} +3 -3
- package/dist/{chunk-79ag9kvz.js → chunk-ppdzh5mp.js} +3 -3
- package/dist/{chunk-79ag9kvz.js.map → chunk-ppdzh5mp.js.map} +1 -1
- package/dist/{chunk-2cfneq8g.js → chunk-qc23kc53.js} +3 -3
- package/dist/{chunk-2cfneq8g.js.map → chunk-qc23kc53.js.map} +1 -1
- package/dist/{chunk-8xspwewa.js → chunk-qjf58f31.js} +2 -2
- package/dist/{chunk-8xspwewa.js.map → chunk-qjf58f31.js.map} +1 -1
- package/dist/{chunk-q4m9fgvw.js → chunk-qsz6b41a.js} +2 -2
- package/dist/{chunk-q4m9fgvw.js.map → chunk-qsz6b41a.js.map} +1 -1
- package/dist/chunk-qt06jfw0.js +8 -0
- package/dist/{chunk-kejrbrr5.js.map → chunk-qt06jfw0.js.map} +2 -2
- package/dist/{chunk-jwcetzcw.js → chunk-s5qgyzqp.js} +2 -2
- package/dist/{chunk-jwcetzcw.js.map → chunk-s5qgyzqp.js.map} +1 -1
- package/dist/chunk-vfh6axzv.js +5 -0
- package/dist/{chunk-gvtcy7a2.js.map → chunk-vfh6axzv.js.map} +5 -5
- package/dist/chunk-w0p5vk3n.js +4 -0
- package/dist/{chunk-rcz6xqsr.js.map → chunk-w0p5vk3n.js.map} +5 -5
- package/dist/chunk-wpetevqp.js +5 -0
- package/dist/{chunk-q04g7v20.js.map → chunk-wpetevqp.js.map} +6 -6
- package/dist/client/ClientRouter.d.ts.map +1 -1
- package/dist/client/ClientRouterContext.d.ts +1 -0
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/index.js +328 -206
- package/dist/client/index.js.map +1 -1
- package/dist/client/init.d.ts +1 -1
- package/dist/client/init.d.ts.map +1 -1
- package/dist/email/index.js +1 -1
- package/dist/facades/I18n.d.ts.map +1 -1
- package/dist/facades/index.js +12 -12
- package/dist/facades/index.js.map +4 -4
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/i18n/Dictionary.d.ts.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +3 -3
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +1 -1
- package/dist/server/index.js +12 -8
- package/dist/server/index.js.map +4 -4
- package/dist/services/index.js +62 -73
- package/dist/services/index.js.map +6 -18
- package/dist/services/router/ViewRouterServiceContainer.d.ts.map +1 -1
- package/dist/utils/applyParams.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-2j91yc5g.js +0 -4
- package/dist/chunk-7pb9p4tj.js +0 -4
- package/dist/chunk-bxy6tqt8.js +0 -4
- package/dist/chunk-ezyz3gaq.js +0 -4
- package/dist/chunk-gvtcy7a2.js +0 -5
- package/dist/chunk-hq6bnmbe.js +0 -4
- package/dist/chunk-kcvz59db.js +0 -5
- package/dist/chunk-kejrbrr5.js +0 -8
- package/dist/chunk-q04g7v20.js +0 -5
- package/dist/chunk-r9vkr7kz.js +0 -27
- package/dist/chunk-rcz6xqsr.js +0 -4
- package/dist/chunk-shx43qev.js +0 -3
- package/dist/chunk-szs1nkf4.js +0 -4
- package/dist/chunk-xg82xtdy.js +0 -4
- package/dist/chunk-xn8m1vjf.js +0 -3
- package/dist/chunk-xn8m1vjf.js.map +0 -15
- package/dist/chunk-zdmjddvp.js +0 -4
- package/dist/chunk-zeyq4p6y.js +0 -4
- /package/dist/{chunk-6erxq55m.js.map → chunk-07ca4ceg.js.map} +0 -0
package/dist/client/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
12
|
var _i, _n, _t, _e, _s, _l, _o, _d, _p, _g, _H_instances, r_fn, R_fn, b_fn, u_fn, m_fn, a_fn, P_fn, E_fn, S_fn, O_fn, k_fn, x_fn, h_fn, f_fn, T_fn, A_fn, y_fn, w_fn, c_fn, C_fn, _a, _i2, _n2, _t2, _e2, _s2, _l2, _b;
|
|
13
|
-
import require$$1, { createContext, useRef, useContext, useState, useEffect, useCallback, useSyncExternalStore, useMemo, memo, lazy, StrictMode, useTransition,
|
|
13
|
+
import require$$1, { createContext, useRef, useContext, useState, useEffect, useCallback, useSyncExternalStore, useMemo, memo, lazy, StrictMode, useTransition, Component, createElement, isValidElement, Fragment as Fragment$1 } from "react";
|
|
14
14
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
15
15
|
import require$$2, { createPortal } from "react-dom";
|
|
16
16
|
class Subject {
|
|
@@ -34,7 +34,7 @@ class Subject {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
class QueryResource {
|
|
37
|
-
constructor(key,
|
|
37
|
+
constructor(key, initialState2 = {}, fetch2, host) {
|
|
38
38
|
__publicField(this, "store");
|
|
39
39
|
__publicField(this, "staleVariants", /* @__PURE__ */ new Set());
|
|
40
40
|
__publicField(this, "lastFetchRecord", /* @__PURE__ */ new Map());
|
|
@@ -46,7 +46,7 @@ class QueryResource {
|
|
|
46
46
|
this.key = key;
|
|
47
47
|
const store = /* @__PURE__ */ new Map();
|
|
48
48
|
const now = Date.now();
|
|
49
|
-
for (const [variantKey, data] of Object.entries(
|
|
49
|
+
for (const [variantKey, data] of Object.entries(initialState2)) {
|
|
50
50
|
if (data) {
|
|
51
51
|
store.set(variantKey, {
|
|
52
52
|
loading: false,
|
|
@@ -155,8 +155,8 @@ const HttpClientProvider = ({
|
|
|
155
155
|
return /* @__PURE__ */ jsx(HttpClientContext.Provider, { value: { fetch: fetch2, host }, children });
|
|
156
156
|
};
|
|
157
157
|
const QueryManagerContext = createContext({
|
|
158
|
-
getResource: (key,
|
|
159
|
-
return new QueryResource(key,
|
|
158
|
+
getResource: (key, initialState2 = {}) => {
|
|
159
|
+
return new QueryResource(key, initialState2, fetch, "");
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
const QueryManagerProvider = ({ children }) => {
|
|
@@ -166,11 +166,11 @@ const QueryManagerProvider = ({ children }) => {
|
|
|
166
166
|
QueryManagerContext.Provider,
|
|
167
167
|
{
|
|
168
168
|
value: {
|
|
169
|
-
getResource: (key,
|
|
169
|
+
getResource: (key, initialState2) => {
|
|
170
170
|
if (!resourcesRef.current.has(key)) {
|
|
171
171
|
resourcesRef.current.set(
|
|
172
172
|
key,
|
|
173
|
-
new QueryResource(key,
|
|
173
|
+
new QueryResource(key, initialState2 ?? {}, fetch2, host)
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
176
|
return resourcesRef.current.get(key);
|
|
@@ -189,7 +189,7 @@ function applyParams$1(url, params) {
|
|
|
189
189
|
if (isOptional) {
|
|
190
190
|
return "";
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
console.error(`Missing parameter: ${paramName} in URL: ${url}`);
|
|
193
193
|
}
|
|
194
194
|
return String(value);
|
|
195
195
|
}).replace(/\/\//g, "/");
|
|
@@ -1810,6 +1810,7 @@ const ClientRouterProvider = (props) => {
|
|
|
1810
1810
|
pathname,
|
|
1811
1811
|
currentPath,
|
|
1812
1812
|
is404,
|
|
1813
|
+
is500,
|
|
1813
1814
|
routeManifest,
|
|
1814
1815
|
cssManifest,
|
|
1815
1816
|
pageData,
|
|
@@ -1830,7 +1831,7 @@ const ClientRouterProvider = (props) => {
|
|
|
1830
1831
|
const breadcrumbsCache = useRef(
|
|
1831
1832
|
new Map(Object.entries(breadcrumbs))
|
|
1832
1833
|
);
|
|
1833
|
-
const initalViewEntries = is404 ? ["404"] : routeManifest[pathname] ?? ["404"];
|
|
1834
|
+
const initalViewEntries = is404 ? ["404"] : is500 ? ["500"] : routeManifest[pathname] ?? ["404"];
|
|
1834
1835
|
const viewEntriesSubject = useRef(new Subject(initalViewEntries));
|
|
1835
1836
|
const [routerSubject] = useState(() => {
|
|
1836
1837
|
return new Subject({
|
|
@@ -4543,9 +4544,9 @@ function requireReactDomClient_production() {
|
|
|
4543
4544
|
function createFiberImplClass(tag, pendingProps, key, mode) {
|
|
4544
4545
|
return new FiberNode(tag, pendingProps, key, mode);
|
|
4545
4546
|
}
|
|
4546
|
-
function shouldConstruct(
|
|
4547
|
-
|
|
4548
|
-
return !(!
|
|
4547
|
+
function shouldConstruct(Component2) {
|
|
4548
|
+
Component2 = Component2.prototype;
|
|
4549
|
+
return !(!Component2 || !Component2.isReactComponent);
|
|
4549
4550
|
}
|
|
4550
4551
|
function createWorkInProgress(current, pendingProps) {
|
|
4551
4552
|
var workInProgress2 = current.alternate;
|
|
@@ -5333,7 +5334,7 @@ function requireReactDomClient_production() {
|
|
|
5333
5334
|
if (!objectIs(nextDeps[i], prevDeps[i])) return false;
|
|
5334
5335
|
return true;
|
|
5335
5336
|
}
|
|
5336
|
-
function renderWithHooks(current, workInProgress2,
|
|
5337
|
+
function renderWithHooks(current, workInProgress2, Component2, props, secondArg, nextRenderLanes) {
|
|
5337
5338
|
renderLanes = nextRenderLanes;
|
|
5338
5339
|
currentlyRenderingFiber = workInProgress2;
|
|
5339
5340
|
workInProgress2.memoizedState = null;
|
|
@@ -5341,11 +5342,11 @@ function requireReactDomClient_production() {
|
|
|
5341
5342
|
workInProgress2.lanes = 0;
|
|
5342
5343
|
ReactSharedInternals.H = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate;
|
|
5343
5344
|
shouldDoubleInvokeUserFnsInHooksDEV = false;
|
|
5344
|
-
nextRenderLanes =
|
|
5345
|
+
nextRenderLanes = Component2(props, secondArg);
|
|
5345
5346
|
shouldDoubleInvokeUserFnsInHooksDEV = false;
|
|
5346
5347
|
didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(
|
|
5347
5348
|
workInProgress2,
|
|
5348
|
-
|
|
5349
|
+
Component2,
|
|
5349
5350
|
props,
|
|
5350
5351
|
secondArg
|
|
5351
5352
|
));
|
|
@@ -5363,7 +5364,7 @@ function requireReactDomClient_production() {
|
|
|
5363
5364
|
if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));
|
|
5364
5365
|
null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = true));
|
|
5365
5366
|
}
|
|
5366
|
-
function renderWithHooksAgain(workInProgress2,
|
|
5367
|
+
function renderWithHooksAgain(workInProgress2, Component2, props, secondArg) {
|
|
5367
5368
|
currentlyRenderingFiber = workInProgress2;
|
|
5368
5369
|
var numberOfReRenders = 0;
|
|
5369
5370
|
do {
|
|
@@ -5381,7 +5382,7 @@ function requireReactDomClient_production() {
|
|
|
5381
5382
|
null != children.memoCache && (children.memoCache.index = 0);
|
|
5382
5383
|
}
|
|
5383
5384
|
ReactSharedInternals.H = HooksDispatcherOnRerender;
|
|
5384
|
-
children =
|
|
5385
|
+
children = Component2(props, secondArg);
|
|
5385
5386
|
} while (didScheduleRenderPhaseUpdateDuringThisPass);
|
|
5386
5387
|
return children;
|
|
5387
5388
|
}
|
|
@@ -5653,11 +5654,11 @@ function requireReactDomClient_production() {
|
|
|
5653
5654
|
var root2 = enqueueConcurrentRenderForLane(fiber, 2);
|
|
5654
5655
|
null !== root2 && scheduleUpdateOnFiber(root2, fiber, 2);
|
|
5655
5656
|
}
|
|
5656
|
-
function mountStateImpl(
|
|
5657
|
+
function mountStateImpl(initialState2) {
|
|
5657
5658
|
var hook = mountWorkInProgressHook();
|
|
5658
|
-
if ("function" === typeof
|
|
5659
|
-
var initialStateInitializer =
|
|
5660
|
-
|
|
5659
|
+
if ("function" === typeof initialState2) {
|
|
5660
|
+
var initialStateInitializer = initialState2;
|
|
5661
|
+
initialState2 = initialStateInitializer();
|
|
5661
5662
|
if (shouldDoubleInvokeUserFnsInHooksDEV) {
|
|
5662
5663
|
setIsStrictModeForDevtools(true);
|
|
5663
5664
|
try {
|
|
@@ -5667,13 +5668,13 @@ function requireReactDomClient_production() {
|
|
|
5667
5668
|
}
|
|
5668
5669
|
}
|
|
5669
5670
|
}
|
|
5670
|
-
hook.memoizedState = hook.baseState =
|
|
5671
|
+
hook.memoizedState = hook.baseState = initialState2;
|
|
5671
5672
|
hook.queue = {
|
|
5672
5673
|
pending: null,
|
|
5673
5674
|
lanes: 0,
|
|
5674
5675
|
dispatch: null,
|
|
5675
5676
|
lastRenderedReducer: basicStateReducer,
|
|
5676
|
-
lastRenderedState:
|
|
5677
|
+
lastRenderedState: initialState2
|
|
5677
5678
|
};
|
|
5678
5679
|
return hook;
|
|
5679
5680
|
}
|
|
@@ -6275,7 +6276,7 @@ function requireReactDomClient_production() {
|
|
|
6275
6276
|
useReducer: function(reducer, initialArg, init2) {
|
|
6276
6277
|
var hook = mountWorkInProgressHook();
|
|
6277
6278
|
if (void 0 !== init2) {
|
|
6278
|
-
var
|
|
6279
|
+
var initialState2 = init2(initialArg);
|
|
6279
6280
|
if (shouldDoubleInvokeUserFnsInHooksDEV) {
|
|
6280
6281
|
setIsStrictModeForDevtools(true);
|
|
6281
6282
|
try {
|
|
@@ -6284,14 +6285,14 @@ function requireReactDomClient_production() {
|
|
|
6284
6285
|
setIsStrictModeForDevtools(false);
|
|
6285
6286
|
}
|
|
6286
6287
|
}
|
|
6287
|
-
} else
|
|
6288
|
-
hook.memoizedState = hook.baseState =
|
|
6288
|
+
} else initialState2 = initialArg;
|
|
6289
|
+
hook.memoizedState = hook.baseState = initialState2;
|
|
6289
6290
|
reducer = {
|
|
6290
6291
|
pending: null,
|
|
6291
6292
|
lanes: 0,
|
|
6292
6293
|
dispatch: null,
|
|
6293
6294
|
lastRenderedReducer: reducer,
|
|
6294
|
-
lastRenderedState:
|
|
6295
|
+
lastRenderedState: initialState2
|
|
6295
6296
|
};
|
|
6296
6297
|
hook.queue = reducer;
|
|
6297
6298
|
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
@@ -6306,11 +6307,11 @@ function requireReactDomClient_production() {
|
|
|
6306
6307
|
initialValue = { current: initialValue };
|
|
6307
6308
|
return hook.memoizedState = initialValue;
|
|
6308
6309
|
},
|
|
6309
|
-
useState: function(
|
|
6310
|
-
|
|
6311
|
-
var queue =
|
|
6310
|
+
useState: function(initialState2) {
|
|
6311
|
+
initialState2 = mountStateImpl(initialState2);
|
|
6312
|
+
var queue = initialState2.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);
|
|
6312
6313
|
queue.dispatch = dispatch;
|
|
6313
|
-
return [
|
|
6314
|
+
return [initialState2.memoizedState, dispatch];
|
|
6314
6315
|
},
|
|
6315
6316
|
useDebugValue: mountDebugValue,
|
|
6316
6317
|
useDeferredValue: function(value, initialValue) {
|
|
@@ -7054,17 +7055,17 @@ function requireReactDomClient_production() {
|
|
|
7054
7055
|
"function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
|
7055
7056
|
instance.state !== workInProgress2 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
|
|
7056
7057
|
}
|
|
7057
|
-
function resolveClassComponentProps(
|
|
7058
|
+
function resolveClassComponentProps(Component2, baseProps) {
|
|
7058
7059
|
var newProps = baseProps;
|
|
7059
7060
|
if ("ref" in baseProps) {
|
|
7060
7061
|
newProps = {};
|
|
7061
7062
|
for (var propName in baseProps)
|
|
7062
7063
|
"ref" !== propName && (newProps[propName] = baseProps[propName]);
|
|
7063
7064
|
}
|
|
7064
|
-
if (
|
|
7065
|
+
if (Component2 = Component2.defaultProps) {
|
|
7065
7066
|
newProps === baseProps && (newProps = assign({}, newProps));
|
|
7066
|
-
for (var propName$73 in
|
|
7067
|
-
void 0 === newProps[propName$73] && (newProps[propName$73] =
|
|
7067
|
+
for (var propName$73 in Component2)
|
|
7068
|
+
void 0 === newProps[propName$73] && (newProps[propName$73] = Component2[propName$73]);
|
|
7068
7069
|
}
|
|
7069
7070
|
return newProps;
|
|
7070
7071
|
}
|
|
@@ -7221,8 +7222,8 @@ function requireReactDomClient_production() {
|
|
|
7221
7222
|
renderLanes2
|
|
7222
7223
|
);
|
|
7223
7224
|
}
|
|
7224
|
-
function updateForwardRef(current, workInProgress2,
|
|
7225
|
-
|
|
7225
|
+
function updateForwardRef(current, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
7226
|
+
Component2 = Component2.render;
|
|
7226
7227
|
var ref = workInProgress2.ref;
|
|
7227
7228
|
if ("ref" in nextProps) {
|
|
7228
7229
|
var propsWithoutRef = {};
|
|
@@ -7233,7 +7234,7 @@ function requireReactDomClient_production() {
|
|
|
7233
7234
|
nextProps = renderWithHooks(
|
|
7234
7235
|
current,
|
|
7235
7236
|
workInProgress2,
|
|
7236
|
-
|
|
7237
|
+
Component2,
|
|
7237
7238
|
propsWithoutRef,
|
|
7238
7239
|
ref,
|
|
7239
7240
|
renderLanes2
|
|
@@ -7246,10 +7247,10 @@ function requireReactDomClient_production() {
|
|
|
7246
7247
|
reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
|
|
7247
7248
|
return workInProgress2.child;
|
|
7248
7249
|
}
|
|
7249
|
-
function updateMemoComponent(current, workInProgress2,
|
|
7250
|
+
function updateMemoComponent(current, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
7250
7251
|
if (null === current) {
|
|
7251
|
-
var type =
|
|
7252
|
-
if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null ===
|
|
7252
|
+
var type = Component2.type;
|
|
7253
|
+
if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component2.compare)
|
|
7253
7254
|
return workInProgress2.tag = 15, workInProgress2.type = type, updateSimpleMemoComponent(
|
|
7254
7255
|
current,
|
|
7255
7256
|
workInProgress2,
|
|
@@ -7258,7 +7259,7 @@ function requireReactDomClient_production() {
|
|
|
7258
7259
|
renderLanes2
|
|
7259
7260
|
);
|
|
7260
7261
|
current = createFiberFromTypeAndProps(
|
|
7261
|
-
|
|
7262
|
+
Component2.type,
|
|
7262
7263
|
null,
|
|
7263
7264
|
nextProps,
|
|
7264
7265
|
workInProgress2,
|
|
@@ -7272,9 +7273,9 @@ function requireReactDomClient_production() {
|
|
|
7272
7273
|
type = current.child;
|
|
7273
7274
|
if (!checkScheduledUpdateOrContext(current, renderLanes2)) {
|
|
7274
7275
|
var prevProps = type.memoizedProps;
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
if (
|
|
7276
|
+
Component2 = Component2.compare;
|
|
7277
|
+
Component2 = null !== Component2 ? Component2 : shallowEqual;
|
|
7278
|
+
if (Component2(prevProps, nextProps) && current.ref === workInProgress2.ref)
|
|
7278
7279
|
return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
|
|
7279
7280
|
}
|
|
7280
7281
|
workInProgress2.flags |= 1;
|
|
@@ -7283,7 +7284,7 @@ function requireReactDomClient_production() {
|
|
|
7283
7284
|
current.return = workInProgress2;
|
|
7284
7285
|
return workInProgress2.child = current;
|
|
7285
7286
|
}
|
|
7286
|
-
function updateSimpleMemoComponent(current, workInProgress2,
|
|
7287
|
+
function updateSimpleMemoComponent(current, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
7287
7288
|
if (null !== current) {
|
|
7288
7289
|
var prevProps = current.memoizedProps;
|
|
7289
7290
|
if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress2.ref)
|
|
@@ -7295,7 +7296,7 @@ function requireReactDomClient_production() {
|
|
|
7295
7296
|
return updateFunctionComponent(
|
|
7296
7297
|
current,
|
|
7297
7298
|
workInProgress2,
|
|
7298
|
-
|
|
7299
|
+
Component2,
|
|
7299
7300
|
nextProps,
|
|
7300
7301
|
renderLanes2
|
|
7301
7302
|
);
|
|
@@ -7359,12 +7360,12 @@ function requireReactDomClient_production() {
|
|
|
7359
7360
|
workInProgress2.flags |= 4194816;
|
|
7360
7361
|
}
|
|
7361
7362
|
}
|
|
7362
|
-
function updateFunctionComponent(current, workInProgress2,
|
|
7363
|
+
function updateFunctionComponent(current, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
7363
7364
|
prepareToReadContext(workInProgress2);
|
|
7364
|
-
|
|
7365
|
+
Component2 = renderWithHooks(
|
|
7365
7366
|
current,
|
|
7366
7367
|
workInProgress2,
|
|
7367
|
-
|
|
7368
|
+
Component2,
|
|
7368
7369
|
nextProps,
|
|
7369
7370
|
void 0,
|
|
7370
7371
|
renderLanes2
|
|
@@ -7374,33 +7375,33 @@ function requireReactDomClient_production() {
|
|
|
7374
7375
|
return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
|
|
7375
7376
|
isHydrating && nextProps && pushMaterializedTreeId(workInProgress2);
|
|
7376
7377
|
workInProgress2.flags |= 1;
|
|
7377
|
-
reconcileChildren(current, workInProgress2,
|
|
7378
|
+
reconcileChildren(current, workInProgress2, Component2, renderLanes2);
|
|
7378
7379
|
return workInProgress2.child;
|
|
7379
7380
|
}
|
|
7380
|
-
function replayFunctionComponent(current, workInProgress2, nextProps,
|
|
7381
|
+
function replayFunctionComponent(current, workInProgress2, nextProps, Component2, secondArg, renderLanes2) {
|
|
7381
7382
|
prepareToReadContext(workInProgress2);
|
|
7382
7383
|
workInProgress2.updateQueue = null;
|
|
7383
7384
|
nextProps = renderWithHooksAgain(
|
|
7384
7385
|
workInProgress2,
|
|
7385
|
-
|
|
7386
|
+
Component2,
|
|
7386
7387
|
nextProps,
|
|
7387
7388
|
secondArg
|
|
7388
7389
|
);
|
|
7389
7390
|
finishRenderingHooks(current);
|
|
7390
|
-
|
|
7391
|
+
Component2 = checkDidRenderIdHook();
|
|
7391
7392
|
if (null !== current && !didReceiveUpdate)
|
|
7392
7393
|
return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
|
|
7393
|
-
isHydrating &&
|
|
7394
|
+
isHydrating && Component2 && pushMaterializedTreeId(workInProgress2);
|
|
7394
7395
|
workInProgress2.flags |= 1;
|
|
7395
7396
|
reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
|
|
7396
7397
|
return workInProgress2.child;
|
|
7397
7398
|
}
|
|
7398
|
-
function updateClassComponent(current, workInProgress2,
|
|
7399
|
+
function updateClassComponent(current, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
7399
7400
|
prepareToReadContext(workInProgress2);
|
|
7400
7401
|
if (null === workInProgress2.stateNode) {
|
|
7401
|
-
var context = emptyContextObject, contextType =
|
|
7402
|
+
var context = emptyContextObject, contextType = Component2.contextType;
|
|
7402
7403
|
"object" === typeof contextType && null !== contextType && (context = readContext(contextType));
|
|
7403
|
-
context = new
|
|
7404
|
+
context = new Component2(nextProps, context);
|
|
7404
7405
|
workInProgress2.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null;
|
|
7405
7406
|
context.updater = classComponentUpdater;
|
|
7406
7407
|
workInProgress2.stateNode = context;
|
|
@@ -7410,27 +7411,27 @@ function requireReactDomClient_production() {
|
|
|
7410
7411
|
context.state = workInProgress2.memoizedState;
|
|
7411
7412
|
context.refs = {};
|
|
7412
7413
|
initializeUpdateQueue(workInProgress2);
|
|
7413
|
-
contextType =
|
|
7414
|
+
contextType = Component2.contextType;
|
|
7414
7415
|
context.context = "object" === typeof contextType && null !== contextType ? readContext(contextType) : emptyContextObject;
|
|
7415
7416
|
context.state = workInProgress2.memoizedState;
|
|
7416
|
-
contextType =
|
|
7417
|
+
contextType = Component2.getDerivedStateFromProps;
|
|
7417
7418
|
"function" === typeof contextType && (applyDerivedStateFromProps(
|
|
7418
7419
|
workInProgress2,
|
|
7419
|
-
|
|
7420
|
+
Component2,
|
|
7420
7421
|
contextType,
|
|
7421
7422
|
nextProps
|
|
7422
7423
|
), context.state = workInProgress2.memoizedState);
|
|
7423
|
-
"function" === typeof
|
|
7424
|
+
"function" === typeof Component2.getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || (contextType = context.state, "function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress2.memoizedState);
|
|
7424
7425
|
"function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308);
|
|
7425
7426
|
nextProps = true;
|
|
7426
7427
|
} else if (null === current) {
|
|
7427
7428
|
context = workInProgress2.stateNode;
|
|
7428
|
-
var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = resolveClassComponentProps(
|
|
7429
|
+
var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = resolveClassComponentProps(Component2, unresolvedOldProps);
|
|
7429
7430
|
context.props = oldProps;
|
|
7430
|
-
var oldContext = context.context, contextType$jscomp$0 =
|
|
7431
|
+
var oldContext = context.context, contextType$jscomp$0 = Component2.contextType;
|
|
7431
7432
|
contextType = emptyContextObject;
|
|
7432
7433
|
"object" === typeof contextType$jscomp$0 && null !== contextType$jscomp$0 && (contextType = readContext(contextType$jscomp$0));
|
|
7433
|
-
var getDerivedStateFromProps =
|
|
7434
|
+
var getDerivedStateFromProps = Component2.getDerivedStateFromProps;
|
|
7434
7435
|
contextType$jscomp$0 = "function" === typeof getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate;
|
|
7435
7436
|
unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps;
|
|
7436
7437
|
contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(
|
|
@@ -7447,12 +7448,12 @@ function requireReactDomClient_production() {
|
|
|
7447
7448
|
oldContext = workInProgress2.memoizedState;
|
|
7448
7449
|
unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(
|
|
7449
7450
|
workInProgress2,
|
|
7450
|
-
|
|
7451
|
+
Component2,
|
|
7451
7452
|
getDerivedStateFromProps,
|
|
7452
7453
|
nextProps
|
|
7453
7454
|
), oldContext = workInProgress2.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(
|
|
7454
7455
|
workInProgress2,
|
|
7455
|
-
|
|
7456
|
+
Component2,
|
|
7456
7457
|
oldProps,
|
|
7457
7458
|
nextProps,
|
|
7458
7459
|
oldState,
|
|
@@ -7463,14 +7464,14 @@ function requireReactDomClient_production() {
|
|
|
7463
7464
|
context = workInProgress2.stateNode;
|
|
7464
7465
|
cloneUpdateQueue(current, workInProgress2);
|
|
7465
7466
|
contextType = workInProgress2.memoizedProps;
|
|
7466
|
-
contextType$jscomp$0 = resolveClassComponentProps(
|
|
7467
|
+
contextType$jscomp$0 = resolveClassComponentProps(Component2, contextType);
|
|
7467
7468
|
context.props = contextType$jscomp$0;
|
|
7468
7469
|
getDerivedStateFromProps = workInProgress2.pendingProps;
|
|
7469
7470
|
oldState = context.context;
|
|
7470
|
-
oldContext =
|
|
7471
|
+
oldContext = Component2.contextType;
|
|
7471
7472
|
oldProps = emptyContextObject;
|
|
7472
7473
|
"object" === typeof oldContext && null !== oldContext && (oldProps = readContext(oldContext));
|
|
7473
|
-
unresolvedOldProps =
|
|
7474
|
+
unresolvedOldProps = Component2.getDerivedStateFromProps;
|
|
7474
7475
|
(oldContext = "function" === typeof unresolvedOldProps || "function" === typeof context.getSnapshotBeforeUpdate) || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(
|
|
7475
7476
|
workInProgress2,
|
|
7476
7477
|
context,
|
|
@@ -7485,12 +7486,12 @@ function requireReactDomClient_production() {
|
|
|
7485
7486
|
var newState = workInProgress2.memoizedState;
|
|
7486
7487
|
contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(
|
|
7487
7488
|
workInProgress2,
|
|
7488
|
-
|
|
7489
|
+
Component2,
|
|
7489
7490
|
unresolvedOldProps,
|
|
7490
7491
|
nextProps
|
|
7491
7492
|
), newState = workInProgress2.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(
|
|
7492
7493
|
workInProgress2,
|
|
7493
|
-
|
|
7494
|
+
Component2,
|
|
7494
7495
|
contextType$jscomp$0,
|
|
7495
7496
|
nextProps,
|
|
7496
7497
|
oldState,
|
|
@@ -7505,7 +7506,7 @@ function requireReactDomClient_production() {
|
|
|
7505
7506
|
context = nextProps;
|
|
7506
7507
|
markRef(current, workInProgress2);
|
|
7507
7508
|
nextProps = 0 !== (workInProgress2.flags & 128);
|
|
7508
|
-
context || nextProps ? (context = workInProgress2.stateNode,
|
|
7509
|
+
context || nextProps ? (context = workInProgress2.stateNode, Component2 = nextProps && "function" !== typeof Component2.getDerivedStateFromError ? null : context.render(), workInProgress2.flags |= 1, null !== current && nextProps ? (workInProgress2.child = reconcileChildFibers(
|
|
7509
7510
|
workInProgress2,
|
|
7510
7511
|
current.child,
|
|
7511
7512
|
null,
|
|
@@ -7513,9 +7514,9 @@ function requireReactDomClient_production() {
|
|
|
7513
7514
|
), workInProgress2.child = reconcileChildFibers(
|
|
7514
7515
|
workInProgress2,
|
|
7515
7516
|
null,
|
|
7516
|
-
|
|
7517
|
+
Component2,
|
|
7517
7518
|
renderLanes2
|
|
7518
|
-
)) : reconcileChildren(current, workInProgress2,
|
|
7519
|
+
)) : reconcileChildren(current, workInProgress2, Component2, renderLanes2), workInProgress2.memoizedState = context.state, current = workInProgress2.child) : current = bailoutOnAlreadyFinishedWork(
|
|
7519
7520
|
current,
|
|
7520
7521
|
workInProgress2,
|
|
7521
7522
|
renderLanes2
|
|
@@ -16721,9 +16722,9 @@ function requireReactDomClient_development() {
|
|
|
16721
16722
|
this._debugHookTypes = null;
|
|
16722
16723
|
hasBadMapPolyfill || "function" !== typeof Object.preventExtensions || Object.preventExtensions(this);
|
|
16723
16724
|
}
|
|
16724
|
-
function shouldConstruct(
|
|
16725
|
-
|
|
16726
|
-
return !(!
|
|
16725
|
+
function shouldConstruct(Component2) {
|
|
16726
|
+
Component2 = Component2.prototype;
|
|
16727
|
+
return !(!Component2 || !Component2.isReactComponent);
|
|
16727
16728
|
}
|
|
16728
16729
|
function createWorkInProgress(current2, pendingProps) {
|
|
16729
16730
|
var workInProgress2 = current2.alternate;
|
|
@@ -17810,13 +17811,13 @@ function requireReactDomClient_development() {
|
|
|
17810
17811
|
if (!objectIs(nextDeps[i], prevDeps[i])) return false;
|
|
17811
17812
|
return true;
|
|
17812
17813
|
}
|
|
17813
|
-
function renderWithHooks(current2, workInProgress2,
|
|
17814
|
+
function renderWithHooks(current2, workInProgress2, Component2, props, secondArg, nextRenderLanes) {
|
|
17814
17815
|
renderLanes = nextRenderLanes;
|
|
17815
17816
|
currentlyRenderingFiber = workInProgress2;
|
|
17816
17817
|
hookTypesDev = null !== current2 ? current2._debugHookTypes : null;
|
|
17817
17818
|
hookTypesUpdateIndexDev = -1;
|
|
17818
17819
|
ignorePreviousDependencies = null !== current2 && current2.type !== workInProgress2.type;
|
|
17819
|
-
if ("[object AsyncFunction]" === Object.prototype.toString.call(
|
|
17820
|
+
if ("[object AsyncFunction]" === Object.prototype.toString.call(Component2) || "[object AsyncGeneratorFunction]" === Object.prototype.toString.call(Component2))
|
|
17820
17821
|
nextRenderLanes = getComponentNameFromFiber(currentlyRenderingFiber), didWarnAboutAsyncClientComponent.has(nextRenderLanes) || (didWarnAboutAsyncClientComponent.add(nextRenderLanes), console.error(
|
|
17821
17822
|
"%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
|
|
17822
17823
|
null === nextRenderLanes ? "An unknown Component" : "<" + nextRenderLanes + ">"
|
|
@@ -17826,11 +17827,11 @@ function requireReactDomClient_development() {
|
|
|
17826
17827
|
workInProgress2.lanes = 0;
|
|
17827
17828
|
ReactSharedInternals.H = null !== current2 && null !== current2.memoizedState ? HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? HooksDispatcherOnMountWithHookTypesInDEV : HooksDispatcherOnMountInDEV;
|
|
17828
17829
|
shouldDoubleInvokeUserFnsInHooksDEV = nextRenderLanes = (workInProgress2.mode & StrictLegacyMode) !== NoMode;
|
|
17829
|
-
var children = callComponentInDEV(
|
|
17830
|
+
var children = callComponentInDEV(Component2, props, secondArg);
|
|
17830
17831
|
shouldDoubleInvokeUserFnsInHooksDEV = false;
|
|
17831
17832
|
didScheduleRenderPhaseUpdateDuringThisPass && (children = renderWithHooksAgain(
|
|
17832
17833
|
workInProgress2,
|
|
17833
|
-
|
|
17834
|
+
Component2,
|
|
17834
17835
|
props,
|
|
17835
17836
|
secondArg
|
|
17836
17837
|
));
|
|
@@ -17839,7 +17840,7 @@ function requireReactDomClient_development() {
|
|
|
17839
17840
|
try {
|
|
17840
17841
|
children = renderWithHooksAgain(
|
|
17841
17842
|
workInProgress2,
|
|
17842
|
-
|
|
17843
|
+
Component2,
|
|
17843
17844
|
props,
|
|
17844
17845
|
secondArg
|
|
17845
17846
|
);
|
|
@@ -17878,7 +17879,7 @@ function requireReactDomClient_development() {
|
|
|
17878
17879
|
"`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary."
|
|
17879
17880
|
)));
|
|
17880
17881
|
}
|
|
17881
|
-
function renderWithHooksAgain(workInProgress2,
|
|
17882
|
+
function renderWithHooksAgain(workInProgress2, Component2, props, secondArg) {
|
|
17882
17883
|
currentlyRenderingFiber = workInProgress2;
|
|
17883
17884
|
var numberOfReRenders = 0;
|
|
17884
17885
|
do {
|
|
@@ -17901,7 +17902,7 @@ function requireReactDomClient_development() {
|
|
|
17901
17902
|
}
|
|
17902
17903
|
hookTypesUpdateIndexDev = -1;
|
|
17903
17904
|
ReactSharedInternals.H = HooksDispatcherOnRerenderInDEV;
|
|
17904
|
-
children = callComponentInDEV(
|
|
17905
|
+
children = callComponentInDEV(Component2, props, secondArg);
|
|
17905
17906
|
} while (didScheduleRenderPhaseUpdateDuringThisPass);
|
|
17906
17907
|
return children;
|
|
17907
17908
|
}
|
|
@@ -18031,7 +18032,7 @@ function requireReactDomClient_development() {
|
|
|
18031
18032
|
function mountReducer(reducer, initialArg, init2) {
|
|
18032
18033
|
var hook = mountWorkInProgressHook();
|
|
18033
18034
|
if (void 0 !== init2) {
|
|
18034
|
-
var
|
|
18035
|
+
var initialState2 = init2(initialArg);
|
|
18035
18036
|
if (shouldDoubleInvokeUserFnsInHooksDEV) {
|
|
18036
18037
|
setIsStrictModeForDevtools(true);
|
|
18037
18038
|
try {
|
|
@@ -18040,14 +18041,14 @@ function requireReactDomClient_development() {
|
|
|
18040
18041
|
setIsStrictModeForDevtools(false);
|
|
18041
18042
|
}
|
|
18042
18043
|
}
|
|
18043
|
-
} else
|
|
18044
|
-
hook.memoizedState = hook.baseState =
|
|
18044
|
+
} else initialState2 = initialArg;
|
|
18045
|
+
hook.memoizedState = hook.baseState = initialState2;
|
|
18045
18046
|
reducer = {
|
|
18046
18047
|
pending: null,
|
|
18047
18048
|
lanes: 0,
|
|
18048
18049
|
dispatch: null,
|
|
18049
18050
|
lastRenderedReducer: reducer,
|
|
18050
|
-
lastRenderedState:
|
|
18051
|
+
lastRenderedState: initialState2
|
|
18051
18052
|
};
|
|
18052
18053
|
hook.queue = reducer;
|
|
18053
18054
|
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
@@ -18276,11 +18277,11 @@ function requireReactDomClient_development() {
|
|
|
18276
18277
|
var root2 = enqueueConcurrentRenderForLane(fiber, 2);
|
|
18277
18278
|
null !== root2 && scheduleUpdateOnFiber(root2, fiber, 2);
|
|
18278
18279
|
}
|
|
18279
|
-
function mountStateImpl(
|
|
18280
|
+
function mountStateImpl(initialState2) {
|
|
18280
18281
|
var hook = mountWorkInProgressHook();
|
|
18281
|
-
if ("function" === typeof
|
|
18282
|
-
var initialStateInitializer =
|
|
18283
|
-
|
|
18282
|
+
if ("function" === typeof initialState2) {
|
|
18283
|
+
var initialStateInitializer = initialState2;
|
|
18284
|
+
initialState2 = initialStateInitializer();
|
|
18284
18285
|
if (shouldDoubleInvokeUserFnsInHooksDEV) {
|
|
18285
18286
|
setIsStrictModeForDevtools(true);
|
|
18286
18287
|
try {
|
|
@@ -18290,21 +18291,21 @@ function requireReactDomClient_development() {
|
|
|
18290
18291
|
}
|
|
18291
18292
|
}
|
|
18292
18293
|
}
|
|
18293
|
-
hook.memoizedState = hook.baseState =
|
|
18294
|
+
hook.memoizedState = hook.baseState = initialState2;
|
|
18294
18295
|
hook.queue = {
|
|
18295
18296
|
pending: null,
|
|
18296
18297
|
lanes: 0,
|
|
18297
18298
|
dispatch: null,
|
|
18298
18299
|
lastRenderedReducer: basicStateReducer,
|
|
18299
|
-
lastRenderedState:
|
|
18300
|
+
lastRenderedState: initialState2
|
|
18300
18301
|
};
|
|
18301
18302
|
return hook;
|
|
18302
18303
|
}
|
|
18303
|
-
function mountState(
|
|
18304
|
-
|
|
18305
|
-
var queue =
|
|
18304
|
+
function mountState(initialState2) {
|
|
18305
|
+
initialState2 = mountStateImpl(initialState2);
|
|
18306
|
+
var queue = initialState2.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);
|
|
18306
18307
|
queue.dispatch = dispatch;
|
|
18307
|
-
return [
|
|
18308
|
+
return [initialState2.memoizedState, dispatch];
|
|
18308
18309
|
}
|
|
18309
18310
|
function mountOptimistic(passthrough) {
|
|
18310
18311
|
var hook = mountWorkInProgressHook();
|
|
@@ -19833,17 +19834,17 @@ function requireReactDomClient_development() {
|
|
|
19833
19834
|
null
|
|
19834
19835
|
));
|
|
19835
19836
|
}
|
|
19836
|
-
function resolveClassComponentProps(
|
|
19837
|
+
function resolveClassComponentProps(Component2, baseProps) {
|
|
19837
19838
|
var newProps = baseProps;
|
|
19838
19839
|
if ("ref" in baseProps) {
|
|
19839
19840
|
newProps = {};
|
|
19840
19841
|
for (var propName in baseProps)
|
|
19841
19842
|
"ref" !== propName && (newProps[propName] = baseProps[propName]);
|
|
19842
19843
|
}
|
|
19843
|
-
if (
|
|
19844
|
+
if (Component2 = Component2.defaultProps) {
|
|
19844
19845
|
newProps === baseProps && (newProps = assign({}, newProps));
|
|
19845
|
-
for (var _propName in
|
|
19846
|
-
void 0 === newProps[_propName] && (newProps[_propName] =
|
|
19846
|
+
for (var _propName in Component2)
|
|
19847
|
+
void 0 === newProps[_propName] && (newProps[_propName] = Component2[_propName]);
|
|
19847
19848
|
}
|
|
19848
19849
|
return newProps;
|
|
19849
19850
|
}
|
|
@@ -20071,8 +20072,8 @@ function requireReactDomClient_development() {
|
|
|
20071
20072
|
renderLanes2
|
|
20072
20073
|
);
|
|
20073
20074
|
}
|
|
20074
|
-
function updateForwardRef(current2, workInProgress2,
|
|
20075
|
-
|
|
20075
|
+
function updateForwardRef(current2, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
20076
|
+
Component2 = Component2.render;
|
|
20076
20077
|
var ref = workInProgress2.ref;
|
|
20077
20078
|
if ("ref" in nextProps) {
|
|
20078
20079
|
var propsWithoutRef = {};
|
|
@@ -20084,7 +20085,7 @@ function requireReactDomClient_development() {
|
|
|
20084
20085
|
nextProps = renderWithHooks(
|
|
20085
20086
|
current2,
|
|
20086
20087
|
workInProgress2,
|
|
20087
|
-
|
|
20088
|
+
Component2,
|
|
20088
20089
|
propsWithoutRef,
|
|
20089
20090
|
ref,
|
|
20090
20091
|
renderLanes2
|
|
@@ -20098,19 +20099,19 @@ function requireReactDomClient_development() {
|
|
|
20098
20099
|
reconcileChildren(current2, workInProgress2, nextProps, renderLanes2);
|
|
20099
20100
|
return workInProgress2.child;
|
|
20100
20101
|
}
|
|
20101
|
-
function updateMemoComponent(current2, workInProgress2,
|
|
20102
|
+
function updateMemoComponent(current2, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
20102
20103
|
if (null === current2) {
|
|
20103
|
-
var type =
|
|
20104
|
-
if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null ===
|
|
20105
|
-
return
|
|
20104
|
+
var type = Component2.type;
|
|
20105
|
+
if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component2.compare)
|
|
20106
|
+
return Component2 = resolveFunctionForHotReloading(type), workInProgress2.tag = 15, workInProgress2.type = Component2, validateFunctionComponentInDev(workInProgress2, type), updateSimpleMemoComponent(
|
|
20106
20107
|
current2,
|
|
20107
20108
|
workInProgress2,
|
|
20108
|
-
|
|
20109
|
+
Component2,
|
|
20109
20110
|
nextProps,
|
|
20110
20111
|
renderLanes2
|
|
20111
20112
|
);
|
|
20112
20113
|
current2 = createFiberFromTypeAndProps(
|
|
20113
|
-
|
|
20114
|
+
Component2.type,
|
|
20114
20115
|
null,
|
|
20115
20116
|
nextProps,
|
|
20116
20117
|
workInProgress2,
|
|
@@ -20124,9 +20125,9 @@ function requireReactDomClient_development() {
|
|
|
20124
20125
|
type = current2.child;
|
|
20125
20126
|
if (!checkScheduledUpdateOrContext(current2, renderLanes2)) {
|
|
20126
20127
|
var prevProps = type.memoizedProps;
|
|
20127
|
-
|
|
20128
|
-
|
|
20129
|
-
if (
|
|
20128
|
+
Component2 = Component2.compare;
|
|
20129
|
+
Component2 = null !== Component2 ? Component2 : shallowEqual;
|
|
20130
|
+
if (Component2(prevProps, nextProps) && current2.ref === workInProgress2.ref)
|
|
20130
20131
|
return bailoutOnAlreadyFinishedWork(
|
|
20131
20132
|
current2,
|
|
20132
20133
|
workInProgress2,
|
|
@@ -20139,7 +20140,7 @@ function requireReactDomClient_development() {
|
|
|
20139
20140
|
current2.return = workInProgress2;
|
|
20140
20141
|
return workInProgress2.child = current2;
|
|
20141
20142
|
}
|
|
20142
|
-
function updateSimpleMemoComponent(current2, workInProgress2,
|
|
20143
|
+
function updateSimpleMemoComponent(current2, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
20143
20144
|
if (null !== current2) {
|
|
20144
20145
|
var prevProps = current2.memoizedProps;
|
|
20145
20146
|
if (shallowEqual(prevProps, nextProps) && current2.ref === workInProgress2.ref && workInProgress2.type === current2.type)
|
|
@@ -20151,7 +20152,7 @@ function requireReactDomClient_development() {
|
|
|
20151
20152
|
return updateFunctionComponent(
|
|
20152
20153
|
current2,
|
|
20153
20154
|
workInProgress2,
|
|
20154
|
-
|
|
20155
|
+
Component2,
|
|
20155
20156
|
nextProps,
|
|
20156
20157
|
renderLanes2
|
|
20157
20158
|
);
|
|
@@ -20220,9 +20221,9 @@ function requireReactDomClient_development() {
|
|
|
20220
20221
|
workInProgress2.flags |= 4194816;
|
|
20221
20222
|
}
|
|
20222
20223
|
}
|
|
20223
|
-
function updateFunctionComponent(current2, workInProgress2,
|
|
20224
|
-
if (
|
|
20225
|
-
var componentName2 = getComponentNameFromType(
|
|
20224
|
+
function updateFunctionComponent(current2, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
20225
|
+
if (Component2.prototype && "function" === typeof Component2.prototype.render) {
|
|
20226
|
+
var componentName2 = getComponentNameFromType(Component2) || "Unknown";
|
|
20226
20227
|
didWarnAboutBadClass[componentName2] || (console.error(
|
|
20227
20228
|
"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
|
|
20228
20229
|
componentName2,
|
|
@@ -20233,16 +20234,16 @@ function requireReactDomClient_development() {
|
|
|
20233
20234
|
workInProgress2,
|
|
20234
20235
|
null
|
|
20235
20236
|
);
|
|
20236
|
-
null === current2 && (validateFunctionComponentInDev(workInProgress2, workInProgress2.type),
|
|
20237
|
+
null === current2 && (validateFunctionComponentInDev(workInProgress2, workInProgress2.type), Component2.contextTypes && (componentName2 = getComponentNameFromType(Component2) || "Unknown", didWarnAboutContextTypes[componentName2] || (didWarnAboutContextTypes[componentName2] = true, console.error(
|
|
20237
20238
|
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
|
|
20238
20239
|
componentName2
|
|
20239
20240
|
))));
|
|
20240
20241
|
prepareToReadContext(workInProgress2);
|
|
20241
20242
|
markComponentRenderStarted(workInProgress2);
|
|
20242
|
-
|
|
20243
|
+
Component2 = renderWithHooks(
|
|
20243
20244
|
current2,
|
|
20244
20245
|
workInProgress2,
|
|
20245
|
-
|
|
20246
|
+
Component2,
|
|
20246
20247
|
nextProps,
|
|
20247
20248
|
void 0,
|
|
20248
20249
|
renderLanes2
|
|
@@ -20253,10 +20254,10 @@ function requireReactDomClient_development() {
|
|
|
20253
20254
|
return bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2);
|
|
20254
20255
|
isHydrating && nextProps && pushMaterializedTreeId(workInProgress2);
|
|
20255
20256
|
workInProgress2.flags |= 1;
|
|
20256
|
-
reconcileChildren(current2, workInProgress2,
|
|
20257
|
+
reconcileChildren(current2, workInProgress2, Component2, renderLanes2);
|
|
20257
20258
|
return workInProgress2.child;
|
|
20258
20259
|
}
|
|
20259
|
-
function replayFunctionComponent(current2, workInProgress2, nextProps,
|
|
20260
|
+
function replayFunctionComponent(current2, workInProgress2, nextProps, Component2, secondArg, renderLanes2) {
|
|
20260
20261
|
prepareToReadContext(workInProgress2);
|
|
20261
20262
|
markComponentRenderStarted(workInProgress2);
|
|
20262
20263
|
hookTypesUpdateIndexDev = -1;
|
|
@@ -20264,21 +20265,21 @@ function requireReactDomClient_development() {
|
|
|
20264
20265
|
workInProgress2.updateQueue = null;
|
|
20265
20266
|
nextProps = renderWithHooksAgain(
|
|
20266
20267
|
workInProgress2,
|
|
20267
|
-
|
|
20268
|
+
Component2,
|
|
20268
20269
|
nextProps,
|
|
20269
20270
|
secondArg
|
|
20270
20271
|
);
|
|
20271
20272
|
finishRenderingHooks(current2, workInProgress2);
|
|
20272
|
-
|
|
20273
|
+
Component2 = checkDidRenderIdHook();
|
|
20273
20274
|
markComponentRenderStopped();
|
|
20274
20275
|
if (null !== current2 && !didReceiveUpdate)
|
|
20275
20276
|
return bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2);
|
|
20276
|
-
isHydrating &&
|
|
20277
|
+
isHydrating && Component2 && pushMaterializedTreeId(workInProgress2);
|
|
20277
20278
|
workInProgress2.flags |= 1;
|
|
20278
20279
|
reconcileChildren(current2, workInProgress2, nextProps, renderLanes2);
|
|
20279
20280
|
return workInProgress2.child;
|
|
20280
20281
|
}
|
|
20281
|
-
function updateClassComponent(current2, workInProgress2,
|
|
20282
|
+
function updateClassComponent(current2, workInProgress2, Component2, nextProps, renderLanes2) {
|
|
20282
20283
|
switch (shouldErrorImpl(workInProgress2)) {
|
|
20283
20284
|
case false:
|
|
20284
20285
|
var _instance = workInProgress2.stateNode, state = new workInProgress2.type(
|
|
@@ -20310,18 +20311,18 @@ function requireReactDomClient_development() {
|
|
|
20310
20311
|
prepareToReadContext(workInProgress2);
|
|
20311
20312
|
if (null === workInProgress2.stateNode) {
|
|
20312
20313
|
state = emptyContextObject;
|
|
20313
|
-
_instance =
|
|
20314
|
-
"contextType" in
|
|
20314
|
+
_instance = Component2.contextType;
|
|
20315
|
+
"contextType" in Component2 && null !== _instance && (void 0 === _instance || _instance.$$typeof !== REACT_CONTEXT_TYPE) && !didWarnAboutInvalidateContextType.has(Component2) && (didWarnAboutInvalidateContextType.add(Component2), lane = void 0 === _instance ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : "object" !== typeof _instance ? " However, it is set to a " + typeof _instance + "." : _instance.$$typeof === REACT_CONSUMER_TYPE ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(_instance).join(", ") + "}.", console.error(
|
|
20315
20316
|
"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
|
|
20316
|
-
getComponentNameFromType(
|
|
20317
|
+
getComponentNameFromType(Component2) || "Component",
|
|
20317
20318
|
lane
|
|
20318
20319
|
));
|
|
20319
20320
|
"object" === typeof _instance && null !== _instance && (state = readContext(_instance));
|
|
20320
|
-
_instance = new
|
|
20321
|
+
_instance = new Component2(nextProps, state);
|
|
20321
20322
|
if (workInProgress2.mode & StrictLegacyMode) {
|
|
20322
20323
|
setIsStrictModeForDevtools(true);
|
|
20323
20324
|
try {
|
|
20324
|
-
_instance = new
|
|
20325
|
+
_instance = new Component2(nextProps, state);
|
|
20325
20326
|
} finally {
|
|
20326
20327
|
setIsStrictModeForDevtools(false);
|
|
20327
20328
|
}
|
|
@@ -20331,20 +20332,20 @@ function requireReactDomClient_development() {
|
|
|
20331
20332
|
workInProgress2.stateNode = _instance;
|
|
20332
20333
|
_instance._reactInternals = workInProgress2;
|
|
20333
20334
|
_instance._reactInternalInstance = fakeInternalInstance;
|
|
20334
|
-
"function" === typeof
|
|
20335
|
+
"function" === typeof Component2.getDerivedStateFromProps && null === state && (state = getComponentNameFromType(Component2) || "Component", didWarnAboutUninitializedState.has(state) || (didWarnAboutUninitializedState.add(state), console.error(
|
|
20335
20336
|
"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
|
|
20336
20337
|
state,
|
|
20337
20338
|
null === _instance.state ? "null" : "undefined",
|
|
20338
20339
|
state
|
|
20339
20340
|
)));
|
|
20340
|
-
if ("function" === typeof
|
|
20341
|
+
if ("function" === typeof Component2.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate) {
|
|
20341
20342
|
var foundWillUpdateName = lane = state = null;
|
|
20342
20343
|
"function" === typeof _instance.componentWillMount && true !== _instance.componentWillMount.__suppressDeprecationWarning ? state = "componentWillMount" : "function" === typeof _instance.UNSAFE_componentWillMount && (state = "UNSAFE_componentWillMount");
|
|
20343
20344
|
"function" === typeof _instance.componentWillReceiveProps && true !== _instance.componentWillReceiveProps.__suppressDeprecationWarning ? lane = "componentWillReceiveProps" : "function" === typeof _instance.UNSAFE_componentWillReceiveProps && (lane = "UNSAFE_componentWillReceiveProps");
|
|
20344
20345
|
"function" === typeof _instance.componentWillUpdate && true !== _instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" === typeof _instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate");
|
|
20345
20346
|
if (null !== state || null !== lane || null !== foundWillUpdateName) {
|
|
20346
|
-
_instance = getComponentNameFromType(
|
|
20347
|
-
var newApiName = "function" === typeof
|
|
20347
|
+
_instance = getComponentNameFromType(Component2) || "Component";
|
|
20348
|
+
var newApiName = "function" === typeof Component2.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
20348
20349
|
didWarnAboutLegacyLifecyclesAndDerivedState.has(_instance) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_instance), console.error(
|
|
20349
20350
|
"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",
|
|
20350
20351
|
_instance,
|
|
@@ -20356,8 +20357,8 @@ function requireReactDomClient_development() {
|
|
|
20356
20357
|
}
|
|
20357
20358
|
}
|
|
20358
20359
|
_instance = workInProgress2.stateNode;
|
|
20359
|
-
state = getComponentNameFromType(
|
|
20360
|
-
_instance.render || (
|
|
20360
|
+
state = getComponentNameFromType(Component2) || "Component";
|
|
20361
|
+
_instance.render || (Component2.prototype && "function" === typeof Component2.prototype.render ? console.error(
|
|
20361
20362
|
"No `render` method found on the %s instance: did you accidentally return an object from the constructor?",
|
|
20362
20363
|
state
|
|
20363
20364
|
) : console.error(
|
|
@@ -20376,11 +20377,11 @@ function requireReactDomClient_development() {
|
|
|
20376
20377
|
"contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
|
|
20377
20378
|
state
|
|
20378
20379
|
);
|
|
20379
|
-
|
|
20380
|
+
Component2.childContextTypes && !didWarnAboutChildContextTypes.has(Component2) && (didWarnAboutChildContextTypes.add(Component2), console.error(
|
|
20380
20381
|
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
|
|
20381
20382
|
state
|
|
20382
20383
|
));
|
|
20383
|
-
|
|
20384
|
+
Component2.contextTypes && !didWarnAboutContextTypes$1.has(Component2) && (didWarnAboutContextTypes$1.add(Component2), console.error(
|
|
20384
20385
|
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
|
|
20385
20386
|
state
|
|
20386
20387
|
));
|
|
@@ -20388,9 +20389,9 @@ function requireReactDomClient_development() {
|
|
|
20388
20389
|
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
|
|
20389
20390
|
state
|
|
20390
20391
|
);
|
|
20391
|
-
|
|
20392
|
+
Component2.prototype && Component2.prototype.isPureReactComponent && "undefined" !== typeof _instance.shouldComponentUpdate && console.error(
|
|
20392
20393
|
"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
|
|
20393
|
-
getComponentNameFromType(
|
|
20394
|
+
getComponentNameFromType(Component2) || "A pure component"
|
|
20394
20395
|
);
|
|
20395
20396
|
"function" === typeof _instance.componentDidUnmount && console.error(
|
|
20396
20397
|
"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
|
|
@@ -20418,9 +20419,9 @@ function requireReactDomClient_development() {
|
|
|
20418
20419
|
state,
|
|
20419
20420
|
state
|
|
20420
20421
|
);
|
|
20421
|
-
"function" !== typeof _instance.getSnapshotBeforeUpdate || "function" === typeof _instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(
|
|
20422
|
+
"function" !== typeof _instance.getSnapshotBeforeUpdate || "function" === typeof _instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component2) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component2), console.error(
|
|
20422
20423
|
"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
|
|
20423
|
-
getComponentNameFromType(
|
|
20424
|
+
getComponentNameFromType(Component2)
|
|
20424
20425
|
));
|
|
20425
20426
|
"function" === typeof _instance.getDerivedStateFromProps && console.error(
|
|
20426
20427
|
"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
|
|
@@ -20430,12 +20431,12 @@ function requireReactDomClient_development() {
|
|
|
20430
20431
|
"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
|
|
20431
20432
|
state
|
|
20432
20433
|
);
|
|
20433
|
-
"function" === typeof
|
|
20434
|
+
"function" === typeof Component2.getSnapshotBeforeUpdate && console.error(
|
|
20434
20435
|
"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",
|
|
20435
20436
|
state
|
|
20436
20437
|
);
|
|
20437
20438
|
(lane = _instance.state) && ("object" !== typeof lane || isArrayImpl(lane)) && console.error("%s.state: must be set to an object or null", state);
|
|
20438
|
-
"function" === typeof _instance.getChildContext && "object" !== typeof
|
|
20439
|
+
"function" === typeof _instance.getChildContext && "object" !== typeof Component2.childContextTypes && console.error(
|
|
20439
20440
|
"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
|
|
20440
20441
|
state
|
|
20441
20442
|
);
|
|
@@ -20444,9 +20445,9 @@ function requireReactDomClient_development() {
|
|
|
20444
20445
|
_instance.state = workInProgress2.memoizedState;
|
|
20445
20446
|
_instance.refs = {};
|
|
20446
20447
|
initializeUpdateQueue(workInProgress2);
|
|
20447
|
-
state =
|
|
20448
|
+
state = Component2.contextType;
|
|
20448
20449
|
_instance.context = "object" === typeof state && null !== state ? readContext(state) : emptyContextObject;
|
|
20449
|
-
_instance.state === nextProps && (state = getComponentNameFromType(
|
|
20450
|
+
_instance.state === nextProps && (state = getComponentNameFromType(Component2) || "Component", didWarnAboutDirectlyAssigningPropsToState.has(state) || (didWarnAboutDirectlyAssigningPropsToState.add(state), console.error(
|
|
20450
20451
|
"%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
|
|
20451
20452
|
state
|
|
20452
20453
|
)));
|
|
@@ -20459,14 +20460,14 @@ function requireReactDomClient_development() {
|
|
|
20459
20460
|
_instance
|
|
20460
20461
|
);
|
|
20461
20462
|
_instance.state = workInProgress2.memoizedState;
|
|
20462
|
-
state =
|
|
20463
|
+
state = Component2.getDerivedStateFromProps;
|
|
20463
20464
|
"function" === typeof state && (applyDerivedStateFromProps(
|
|
20464
20465
|
workInProgress2,
|
|
20465
|
-
|
|
20466
|
+
Component2,
|
|
20466
20467
|
state,
|
|
20467
20468
|
nextProps
|
|
20468
20469
|
), _instance.state = workInProgress2.memoizedState);
|
|
20469
|
-
"function" === typeof
|
|
20470
|
+
"function" === typeof Component2.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || (state = _instance.state, "function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount(), state !== _instance.state && (console.error(
|
|
20470
20471
|
"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
|
20471
20472
|
getComponentNameFromFiber(workInProgress2) || "Component"
|
|
20472
20473
|
), classComponentUpdater.enqueueReplaceState(
|
|
@@ -20480,13 +20481,13 @@ function requireReactDomClient_development() {
|
|
|
20480
20481
|
} else if (null === current2) {
|
|
20481
20482
|
_instance = workInProgress2.stateNode;
|
|
20482
20483
|
var unresolvedOldProps = workInProgress2.memoizedProps;
|
|
20483
|
-
lane = resolveClassComponentProps(
|
|
20484
|
+
lane = resolveClassComponentProps(Component2, unresolvedOldProps);
|
|
20484
20485
|
_instance.props = lane;
|
|
20485
20486
|
var oldContext = _instance.context;
|
|
20486
|
-
foundWillUpdateName =
|
|
20487
|
+
foundWillUpdateName = Component2.contextType;
|
|
20487
20488
|
state = emptyContextObject;
|
|
20488
20489
|
"object" === typeof foundWillUpdateName && null !== foundWillUpdateName && (state = readContext(foundWillUpdateName));
|
|
20489
|
-
newApiName =
|
|
20490
|
+
newApiName = Component2.getDerivedStateFromProps;
|
|
20490
20491
|
foundWillUpdateName = "function" === typeof newApiName || "function" === typeof _instance.getSnapshotBeforeUpdate;
|
|
20491
20492
|
unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps;
|
|
20492
20493
|
foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (unresolvedOldProps || oldContext !== state) && callComponentWillReceiveProps(
|
|
@@ -20503,12 +20504,12 @@ function requireReactDomClient_development() {
|
|
|
20503
20504
|
oldContext = workInProgress2.memoizedState;
|
|
20504
20505
|
unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof newApiName && (applyDerivedStateFromProps(
|
|
20505
20506
|
workInProgress2,
|
|
20506
|
-
|
|
20507
|
+
Component2,
|
|
20507
20508
|
newApiName,
|
|
20508
20509
|
nextProps
|
|
20509
20510
|
), oldContext = workInProgress2.memoizedState), (lane = hasForceUpdate || checkShouldComponentUpdate(
|
|
20510
20511
|
workInProgress2,
|
|
20511
|
-
|
|
20512
|
+
Component2,
|
|
20512
20513
|
lane,
|
|
20513
20514
|
nextProps,
|
|
20514
20515
|
oldState,
|
|
@@ -20519,14 +20520,14 @@ function requireReactDomClient_development() {
|
|
|
20519
20520
|
_instance = workInProgress2.stateNode;
|
|
20520
20521
|
cloneUpdateQueue(current2, workInProgress2);
|
|
20521
20522
|
state = workInProgress2.memoizedProps;
|
|
20522
|
-
foundWillUpdateName = resolveClassComponentProps(
|
|
20523
|
+
foundWillUpdateName = resolveClassComponentProps(Component2, state);
|
|
20523
20524
|
_instance.props = foundWillUpdateName;
|
|
20524
20525
|
newApiName = workInProgress2.pendingProps;
|
|
20525
20526
|
oldState = _instance.context;
|
|
20526
|
-
oldContext =
|
|
20527
|
+
oldContext = Component2.contextType;
|
|
20527
20528
|
lane = emptyContextObject;
|
|
20528
20529
|
"object" === typeof oldContext && null !== oldContext && (lane = readContext(oldContext));
|
|
20529
|
-
unresolvedOldProps =
|
|
20530
|
+
unresolvedOldProps = Component2.getDerivedStateFromProps;
|
|
20530
20531
|
(oldContext = "function" === typeof unresolvedOldProps || "function" === typeof _instance.getSnapshotBeforeUpdate) || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (state !== newApiName || oldState !== lane) && callComponentWillReceiveProps(
|
|
20531
20532
|
workInProgress2,
|
|
20532
20533
|
_instance,
|
|
@@ -20541,12 +20542,12 @@ function requireReactDomClient_development() {
|
|
|
20541
20542
|
var newState = workInProgress2.memoizedState;
|
|
20542
20543
|
state !== newApiName || oldState !== newState || hasForceUpdate || null !== current2 && null !== current2.dependencies && checkIfContextChanged(current2.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(
|
|
20543
20544
|
workInProgress2,
|
|
20544
|
-
|
|
20545
|
+
Component2,
|
|
20545
20546
|
unresolvedOldProps,
|
|
20546
20547
|
nextProps
|
|
20547
20548
|
), newState = workInProgress2.memoizedState), (foundWillUpdateName = hasForceUpdate || checkShouldComponentUpdate(
|
|
20548
20549
|
workInProgress2,
|
|
20549
|
-
|
|
20550
|
+
Component2,
|
|
20550
20551
|
foundWillUpdateName,
|
|
20551
20552
|
nextProps,
|
|
20552
20553
|
oldState,
|
|
@@ -20564,11 +20565,11 @@ function requireReactDomClient_development() {
|
|
|
20564
20565
|
if (lane || state) {
|
|
20565
20566
|
lane = workInProgress2.stateNode;
|
|
20566
20567
|
setCurrentFiber(workInProgress2);
|
|
20567
|
-
if (state && "function" !== typeof
|
|
20568
|
-
|
|
20568
|
+
if (state && "function" !== typeof Component2.getDerivedStateFromError)
|
|
20569
|
+
Component2 = null, profilerStartTime = -1;
|
|
20569
20570
|
else {
|
|
20570
20571
|
markComponentRenderStarted(workInProgress2);
|
|
20571
|
-
|
|
20572
|
+
Component2 = callRenderInDEV(lane);
|
|
20572
20573
|
if (workInProgress2.mode & StrictLegacyMode) {
|
|
20573
20574
|
setIsStrictModeForDevtools(true);
|
|
20574
20575
|
try {
|
|
@@ -20588,9 +20589,9 @@ function requireReactDomClient_development() {
|
|
|
20588
20589
|
), workInProgress2.child = reconcileChildFibers(
|
|
20589
20590
|
workInProgress2,
|
|
20590
20591
|
null,
|
|
20591
|
-
|
|
20592
|
+
Component2,
|
|
20592
20593
|
renderLanes2
|
|
20593
|
-
)) : reconcileChildren(current2, workInProgress2,
|
|
20594
|
+
)) : reconcileChildren(current2, workInProgress2, Component2, renderLanes2);
|
|
20594
20595
|
workInProgress2.memoizedState = lane.state;
|
|
20595
20596
|
current2 = workInProgress2.child;
|
|
20596
20597
|
} else
|
|
@@ -20612,19 +20613,19 @@ function requireReactDomClient_development() {
|
|
|
20612
20613
|
reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2);
|
|
20613
20614
|
return workInProgress2.child;
|
|
20614
20615
|
}
|
|
20615
|
-
function validateFunctionComponentInDev(workInProgress2,
|
|
20616
|
-
|
|
20616
|
+
function validateFunctionComponentInDev(workInProgress2, Component2) {
|
|
20617
|
+
Component2 && Component2.childContextTypes && console.error(
|
|
20617
20618
|
"childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",
|
|
20618
|
-
|
|
20619
|
+
Component2.displayName || Component2.name || "Component"
|
|
20619
20620
|
);
|
|
20620
|
-
"function" === typeof
|
|
20621
|
+
"function" === typeof Component2.getDerivedStateFromProps && (workInProgress2 = getComponentNameFromType(Component2) || "Unknown", didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2] || (console.error(
|
|
20621
20622
|
"%s: Function components do not support getDerivedStateFromProps.",
|
|
20622
20623
|
workInProgress2
|
|
20623
20624
|
), didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2] = true));
|
|
20624
|
-
"object" === typeof
|
|
20625
|
+
"object" === typeof Component2.contextType && null !== Component2.contextType && (Component2 = getComponentNameFromType(Component2) || "Unknown", didWarnAboutContextTypeOnFunctionComponent[Component2] || (console.error(
|
|
20625
20626
|
"%s: Function components do not support contextType.",
|
|
20626
|
-
|
|
20627
|
-
), didWarnAboutContextTypeOnFunctionComponent[
|
|
20627
|
+
Component2
|
|
20628
|
+
), didWarnAboutContextTypeOnFunctionComponent[Component2] = true));
|
|
20628
20629
|
}
|
|
20629
20630
|
function mountSuspenseOffscreenState(renderLanes2) {
|
|
20630
20631
|
return { baseLanes: renderLanes2, cachePool: getSuspendedCache() };
|
|
@@ -30149,13 +30150,13 @@ function requireReactDomClient_development() {
|
|
|
30149
30150
|
mountHookTypesDev();
|
|
30150
30151
|
return mountRef(initialValue);
|
|
30151
30152
|
},
|
|
30152
|
-
useState: function(
|
|
30153
|
+
useState: function(initialState2) {
|
|
30153
30154
|
currentHookNameInDev = "useState";
|
|
30154
30155
|
mountHookTypesDev();
|
|
30155
30156
|
var prevDispatcher = ReactSharedInternals.H;
|
|
30156
30157
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
30157
30158
|
try {
|
|
30158
|
-
return mountState(
|
|
30159
|
+
return mountState(initialState2);
|
|
30159
30160
|
} finally {
|
|
30160
30161
|
ReactSharedInternals.H = prevDispatcher;
|
|
30161
30162
|
}
|
|
@@ -30188,16 +30189,16 @@ function requireReactDomClient_development() {
|
|
|
30188
30189
|
mountHookTypesDev();
|
|
30189
30190
|
return mountId();
|
|
30190
30191
|
},
|
|
30191
|
-
useFormState: function(action,
|
|
30192
|
+
useFormState: function(action, initialState2) {
|
|
30192
30193
|
currentHookNameInDev = "useFormState";
|
|
30193
30194
|
mountHookTypesDev();
|
|
30194
30195
|
warnOnUseFormStateInDev();
|
|
30195
|
-
return mountActionState(action,
|
|
30196
|
+
return mountActionState(action, initialState2);
|
|
30196
30197
|
},
|
|
30197
|
-
useActionState: function(action,
|
|
30198
|
+
useActionState: function(action, initialState2) {
|
|
30198
30199
|
currentHookNameInDev = "useActionState";
|
|
30199
30200
|
mountHookTypesDev();
|
|
30200
|
-
return mountActionState(action,
|
|
30201
|
+
return mountActionState(action, initialState2);
|
|
30201
30202
|
},
|
|
30202
30203
|
useOptimistic: function(passthrough) {
|
|
30203
30204
|
currentHookNameInDev = "useOptimistic";
|
|
@@ -30274,13 +30275,13 @@ function requireReactDomClient_development() {
|
|
|
30274
30275
|
updateHookTypesDev();
|
|
30275
30276
|
return mountRef(initialValue);
|
|
30276
30277
|
},
|
|
30277
|
-
useState: function(
|
|
30278
|
+
useState: function(initialState2) {
|
|
30278
30279
|
currentHookNameInDev = "useState";
|
|
30279
30280
|
updateHookTypesDev();
|
|
30280
30281
|
var prevDispatcher = ReactSharedInternals.H;
|
|
30281
30282
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
30282
30283
|
try {
|
|
30283
|
-
return mountState(
|
|
30284
|
+
return mountState(initialState2);
|
|
30284
30285
|
} finally {
|
|
30285
30286
|
ReactSharedInternals.H = prevDispatcher;
|
|
30286
30287
|
}
|
|
@@ -30313,16 +30314,16 @@ function requireReactDomClient_development() {
|
|
|
30313
30314
|
updateHookTypesDev();
|
|
30314
30315
|
return mountId();
|
|
30315
30316
|
},
|
|
30316
|
-
useActionState: function(action,
|
|
30317
|
+
useActionState: function(action, initialState2) {
|
|
30317
30318
|
currentHookNameInDev = "useActionState";
|
|
30318
30319
|
updateHookTypesDev();
|
|
30319
|
-
return mountActionState(action,
|
|
30320
|
+
return mountActionState(action, initialState2);
|
|
30320
30321
|
},
|
|
30321
|
-
useFormState: function(action,
|
|
30322
|
+
useFormState: function(action, initialState2) {
|
|
30322
30323
|
currentHookNameInDev = "useFormState";
|
|
30323
30324
|
updateHookTypesDev();
|
|
30324
30325
|
warnOnUseFormStateInDev();
|
|
30325
|
-
return mountActionState(action,
|
|
30326
|
+
return mountActionState(action, initialState2);
|
|
30326
30327
|
},
|
|
30327
30328
|
useOptimistic: function(passthrough) {
|
|
30328
30329
|
currentHookNameInDev = "useOptimistic";
|
|
@@ -30662,14 +30663,14 @@ function requireReactDomClient_development() {
|
|
|
30662
30663
|
mountHookTypesDev();
|
|
30663
30664
|
return mountRef(initialValue);
|
|
30664
30665
|
},
|
|
30665
|
-
useState: function(
|
|
30666
|
+
useState: function(initialState2) {
|
|
30666
30667
|
currentHookNameInDev = "useState";
|
|
30667
30668
|
warnInvalidHookAccess();
|
|
30668
30669
|
mountHookTypesDev();
|
|
30669
30670
|
var prevDispatcher = ReactSharedInternals.H;
|
|
30670
30671
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
30671
30672
|
try {
|
|
30672
|
-
return mountState(
|
|
30673
|
+
return mountState(initialState2);
|
|
30673
30674
|
} finally {
|
|
30674
30675
|
ReactSharedInternals.H = prevDispatcher;
|
|
30675
30676
|
}
|
|
@@ -30707,17 +30708,17 @@ function requireReactDomClient_development() {
|
|
|
30707
30708
|
mountHookTypesDev();
|
|
30708
30709
|
return mountId();
|
|
30709
30710
|
},
|
|
30710
|
-
useFormState: function(action,
|
|
30711
|
+
useFormState: function(action, initialState2) {
|
|
30711
30712
|
currentHookNameInDev = "useFormState";
|
|
30712
30713
|
warnInvalidHookAccess();
|
|
30713
30714
|
mountHookTypesDev();
|
|
30714
|
-
return mountActionState(action,
|
|
30715
|
+
return mountActionState(action, initialState2);
|
|
30715
30716
|
},
|
|
30716
|
-
useActionState: function(action,
|
|
30717
|
+
useActionState: function(action, initialState2) {
|
|
30717
30718
|
currentHookNameInDev = "useActionState";
|
|
30718
30719
|
warnInvalidHookAccess();
|
|
30719
30720
|
mountHookTypesDev();
|
|
30720
|
-
return mountActionState(action,
|
|
30721
|
+
return mountActionState(action, initialState2);
|
|
30721
30722
|
},
|
|
30722
30723
|
useOptimistic: function(passthrough) {
|
|
30723
30724
|
currentHookNameInDev = "useOptimistic";
|
|
@@ -31035,11 +31036,11 @@ function requireReactDomClient_development() {
|
|
|
31035
31036
|
}
|
|
31036
31037
|
};
|
|
31037
31038
|
var callComponent = {
|
|
31038
|
-
"react-stack-bottom-frame": function(
|
|
31039
|
+
"react-stack-bottom-frame": function(Component2, props, secondArg) {
|
|
31039
31040
|
var wasRendering = isRendering;
|
|
31040
31041
|
isRendering = true;
|
|
31041
31042
|
try {
|
|
31042
|
-
return
|
|
31043
|
+
return Component2(props, secondArg);
|
|
31043
31044
|
} finally {
|
|
31044
31045
|
isRendering = wasRendering;
|
|
31045
31046
|
}
|
|
@@ -31932,14 +31933,14 @@ const Route = memo((props) => {
|
|
|
31932
31933
|
const { viewImportMap: viewImportMap2 } = useContext(ComponentsContext);
|
|
31933
31934
|
const { data } = useRouteData();
|
|
31934
31935
|
const componentData = ((_a2 = data == null ? void 0 : data[pathname]) == null ? void 0 : _a2[componentPath]) ?? {};
|
|
31935
|
-
const
|
|
31936
|
+
const Component2 = viewImportMap2[componentPath];
|
|
31936
31937
|
useEffect(() => {
|
|
31937
31938
|
if (!children) {
|
|
31938
31939
|
restoreScroll(action, componentPath);
|
|
31939
31940
|
}
|
|
31940
31941
|
}, [action, children, componentPath]);
|
|
31941
|
-
if (
|
|
31942
|
-
return /* @__PURE__ */ jsx(
|
|
31942
|
+
if (Component2) {
|
|
31943
|
+
return /* @__PURE__ */ jsx(Component2, { ...componentData, children: props.children });
|
|
31943
31944
|
}
|
|
31944
31945
|
const NotFound = viewImportMap2["404"];
|
|
31945
31946
|
return /* @__PURE__ */ jsx(NotFound, {});
|
|
@@ -32120,6 +32121,7 @@ const ClientRouter = (props) => {
|
|
|
32120
32121
|
params: router.params,
|
|
32121
32122
|
pageData,
|
|
32122
32123
|
is404: router.is404,
|
|
32124
|
+
is500: false,
|
|
32123
32125
|
pathname: router.pathname,
|
|
32124
32126
|
currentPath: router.currentPath,
|
|
32125
32127
|
routeManifest,
|
|
@@ -32129,18 +32131,138 @@ const ClientRouter = (props) => {
|
|
|
32129
32131
|
}
|
|
32130
32132
|
) }) }) }) }) });
|
|
32131
32133
|
};
|
|
32134
|
+
const ErrorBoundaryContext = createContext(null);
|
|
32135
|
+
const initialState = {
|
|
32136
|
+
didCatch: false,
|
|
32137
|
+
error: null
|
|
32138
|
+
};
|
|
32139
|
+
class ErrorBoundary extends Component {
|
|
32140
|
+
constructor(props) {
|
|
32141
|
+
super(props);
|
|
32142
|
+
this.resetErrorBoundary = this.resetErrorBoundary.bind(this);
|
|
32143
|
+
this.state = initialState;
|
|
32144
|
+
}
|
|
32145
|
+
static getDerivedStateFromError(error) {
|
|
32146
|
+
return {
|
|
32147
|
+
didCatch: true,
|
|
32148
|
+
error
|
|
32149
|
+
};
|
|
32150
|
+
}
|
|
32151
|
+
resetErrorBoundary() {
|
|
32152
|
+
const {
|
|
32153
|
+
error
|
|
32154
|
+
} = this.state;
|
|
32155
|
+
if (error !== null) {
|
|
32156
|
+
var _this$props$onReset, _this$props;
|
|
32157
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32158
|
+
args[_key] = arguments[_key];
|
|
32159
|
+
}
|
|
32160
|
+
(_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props, {
|
|
32161
|
+
args,
|
|
32162
|
+
reason: "imperative-api"
|
|
32163
|
+
});
|
|
32164
|
+
this.setState(initialState);
|
|
32165
|
+
}
|
|
32166
|
+
}
|
|
32167
|
+
componentDidCatch(error, info) {
|
|
32168
|
+
var _this$props$onError, _this$props2;
|
|
32169
|
+
(_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 ? void 0 : _this$props$onError.call(_this$props2, error, info);
|
|
32170
|
+
}
|
|
32171
|
+
componentDidUpdate(prevProps, prevState) {
|
|
32172
|
+
const {
|
|
32173
|
+
didCatch
|
|
32174
|
+
} = this.state;
|
|
32175
|
+
const {
|
|
32176
|
+
resetKeys
|
|
32177
|
+
} = this.props;
|
|
32178
|
+
if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {
|
|
32179
|
+
var _this$props$onReset2, _this$props3;
|
|
32180
|
+
(_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 ? void 0 : _this$props$onReset2.call(_this$props3, {
|
|
32181
|
+
next: resetKeys,
|
|
32182
|
+
prev: prevProps.resetKeys,
|
|
32183
|
+
reason: "keys"
|
|
32184
|
+
});
|
|
32185
|
+
this.setState(initialState);
|
|
32186
|
+
}
|
|
32187
|
+
}
|
|
32188
|
+
render() {
|
|
32189
|
+
const {
|
|
32190
|
+
children,
|
|
32191
|
+
fallbackRender,
|
|
32192
|
+
FallbackComponent,
|
|
32193
|
+
fallback
|
|
32194
|
+
} = this.props;
|
|
32195
|
+
const {
|
|
32196
|
+
didCatch,
|
|
32197
|
+
error
|
|
32198
|
+
} = this.state;
|
|
32199
|
+
let childToRender = children;
|
|
32200
|
+
if (didCatch) {
|
|
32201
|
+
const props = {
|
|
32202
|
+
error,
|
|
32203
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
32204
|
+
};
|
|
32205
|
+
if (typeof fallbackRender === "function") {
|
|
32206
|
+
childToRender = fallbackRender(props);
|
|
32207
|
+
} else if (FallbackComponent) {
|
|
32208
|
+
childToRender = createElement(FallbackComponent, props);
|
|
32209
|
+
} else if (fallback !== void 0) {
|
|
32210
|
+
childToRender = fallback;
|
|
32211
|
+
} else {
|
|
32212
|
+
throw error;
|
|
32213
|
+
}
|
|
32214
|
+
}
|
|
32215
|
+
return createElement(ErrorBoundaryContext.Provider, {
|
|
32216
|
+
value: {
|
|
32217
|
+
didCatch,
|
|
32218
|
+
error,
|
|
32219
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
32220
|
+
}
|
|
32221
|
+
}, childToRender);
|
|
32222
|
+
}
|
|
32223
|
+
}
|
|
32224
|
+
function hasArrayChanged() {
|
|
32225
|
+
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
32226
|
+
let b2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
32227
|
+
return a.length !== b2.length || a.some((item, index) => !Object.is(item, b2[index]));
|
|
32228
|
+
}
|
|
32229
|
+
const StackTrace = () => {
|
|
32230
|
+
useEffect(() => {
|
|
32231
|
+
window.addEventListener("load", () => {
|
|
32232
|
+
const container = document.getElementById("overlay");
|
|
32233
|
+
const ErrorOverlay = customElements.get("vite-error-overlay");
|
|
32234
|
+
if (ErrorOverlay) {
|
|
32235
|
+
const overlay = new ErrorOverlay({
|
|
32236
|
+
message: window.error,
|
|
32237
|
+
stack: window.stack_trace || ""
|
|
32238
|
+
});
|
|
32239
|
+
container.appendChild(overlay);
|
|
32240
|
+
}
|
|
32241
|
+
});
|
|
32242
|
+
}, []);
|
|
32243
|
+
return /* @__PURE__ */ jsx("div", { id: "overlay" });
|
|
32244
|
+
};
|
|
32132
32245
|
function init(RootLayout, glob) {
|
|
32133
32246
|
if (typeof window !== "undefined") {
|
|
32134
32247
|
window._ = glob;
|
|
32135
32248
|
}
|
|
32136
|
-
|
|
32137
|
-
document,
|
|
32138
|
-
|
|
32139
|
-
|
|
32140
|
-
|
|
32141
|
-
/* @__PURE__ */
|
|
32142
|
-
|
|
32143
|
-
|
|
32249
|
+
if (typeof window !== "undefined" && window.render_error) {
|
|
32250
|
+
clientExports.createRoot(document.body).render(/* @__PURE__ */ jsx(StackTrace, {}));
|
|
32251
|
+
} else {
|
|
32252
|
+
clientExports.hydrateRoot(
|
|
32253
|
+
document,
|
|
32254
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32255
|
+
/* @__PURE__ */ jsx(Fragment, {}),
|
|
32256
|
+
/* @__PURE__ */ jsx(Fragment, {}),
|
|
32257
|
+
/* @__PURE__ */ jsx(ErrorBoundary, { fallback: /* @__PURE__ */ jsx("div", {}), children: /* @__PURE__ */ jsx(ServerDataProvider, { children: /* @__PURE__ */ jsx(ClientRouter, { RootLayout }) }) })
|
|
32258
|
+
] }),
|
|
32259
|
+
{
|
|
32260
|
+
onCaughtError: (error) => {
|
|
32261
|
+
console.error(error);
|
|
32262
|
+
}
|
|
32263
|
+
}
|
|
32264
|
+
);
|
|
32265
|
+
}
|
|
32144
32266
|
}
|
|
32145
32267
|
function create(RootLayout, {
|
|
32146
32268
|
componentTree,
|