@wrdagency/react-islands 0.1.1 → 0.1.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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1622 -2992
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1622 -2992
- package/dist/index.mjs.map +1 -1
- package/dist/server.js +1600 -2970
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +1624 -2994
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.tsx +3 -1
package/dist/index.js
CHANGED
|
@@ -44,300 +44,457 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
44
44
|
));
|
|
45
45
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
46
46
|
|
|
47
|
-
// node_modules/react/cjs/react.production.
|
|
48
|
-
var
|
|
49
|
-
"node_modules/react/cjs/react.production.
|
|
47
|
+
// node_modules/react/cjs/react.production.js
|
|
48
|
+
var require_react_production = __commonJS({
|
|
49
|
+
"node_modules/react/cjs/react.production.js"(exports2) {
|
|
50
50
|
"use strict";
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
if (null ===
|
|
51
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
52
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
53
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
54
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
55
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
56
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
57
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
58
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
59
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
60
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
61
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
62
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
63
|
+
function getIteratorFn(maybeIterable) {
|
|
64
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
65
65
|
return null;
|
|
66
|
-
|
|
67
|
-
return "function" === typeof
|
|
66
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
67
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
var ReactNoopUpdateQueue = {
|
|
70
|
+
isMounted: function() {
|
|
71
|
+
return false;
|
|
72
|
+
},
|
|
73
|
+
enqueueForceUpdate: function() {
|
|
74
|
+
},
|
|
75
|
+
enqueueReplaceState: function() {
|
|
76
|
+
},
|
|
77
|
+
enqueueSetState: function() {
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var assign = Object.assign;
|
|
81
|
+
var emptyObject = {};
|
|
82
|
+
function Component(props, context, updater) {
|
|
83
|
+
this.props = props;
|
|
84
|
+
this.context = context;
|
|
85
|
+
this.refs = emptyObject;
|
|
86
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
82
87
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if ("object" !== typeof
|
|
86
|
-
throw Error(
|
|
87
|
-
|
|
88
|
+
Component.prototype.isReactComponent = {};
|
|
89
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
90
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
91
|
+
throw Error(
|
|
92
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
93
|
+
);
|
|
94
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
88
95
|
};
|
|
89
|
-
|
|
90
|
-
this.updater.enqueueForceUpdate(this,
|
|
96
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
97
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
91
98
|
};
|
|
92
|
-
function
|
|
99
|
+
function ComponentDummy() {
|
|
93
100
|
}
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
this.props =
|
|
97
|
-
this.context =
|
|
98
|
-
this.refs =
|
|
99
|
-
this.updater =
|
|
101
|
+
ComponentDummy.prototype = Component.prototype;
|
|
102
|
+
function PureComponent(props, context, updater) {
|
|
103
|
+
this.props = props;
|
|
104
|
+
this.context = context;
|
|
105
|
+
this.refs = emptyObject;
|
|
106
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
100
107
|
}
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
var
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
else if (1 < g) {
|
|
118
|
-
for (var f = Array(g), m = 0; m < g; m++)
|
|
119
|
-
f[m] = arguments[m + 2];
|
|
120
|
-
c.children = f;
|
|
121
|
-
}
|
|
122
|
-
if (a && a.defaultProps)
|
|
123
|
-
for (d in g = a.defaultProps, g)
|
|
124
|
-
void 0 === c[d] && (c[d] = g[d]);
|
|
125
|
-
return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
|
|
108
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
109
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
110
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
111
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
112
|
+
var isArrayImpl = Array.isArray;
|
|
113
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
114
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
115
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
116
|
+
self = props.ref;
|
|
117
|
+
return {
|
|
118
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
119
|
+
type,
|
|
120
|
+
key,
|
|
121
|
+
ref: void 0 !== self ? self : null,
|
|
122
|
+
props
|
|
123
|
+
};
|
|
126
124
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
125
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
126
|
+
return ReactElement(
|
|
127
|
+
oldElement.type,
|
|
128
|
+
newKey,
|
|
129
|
+
void 0,
|
|
130
|
+
void 0,
|
|
131
|
+
void 0,
|
|
132
|
+
oldElement.props
|
|
133
|
+
);
|
|
129
134
|
}
|
|
130
|
-
function
|
|
131
|
-
return "object" === typeof
|
|
135
|
+
function isValidElement(object) {
|
|
136
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
132
137
|
}
|
|
133
|
-
function escape(
|
|
134
|
-
var
|
|
135
|
-
return "$" +
|
|
136
|
-
return
|
|
138
|
+
function escape(key) {
|
|
139
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
140
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
141
|
+
return escaperLookup[match];
|
|
137
142
|
});
|
|
138
143
|
}
|
|
139
|
-
var
|
|
140
|
-
function
|
|
141
|
-
return "object" === typeof
|
|
144
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
145
|
+
function getElementKey(element, index) {
|
|
146
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
147
|
+
}
|
|
148
|
+
function noop$1() {
|
|
142
149
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
function resolveThenable(thenable) {
|
|
151
|
+
switch (thenable.status) {
|
|
152
|
+
case "fulfilled":
|
|
153
|
+
return thenable.value;
|
|
154
|
+
case "rejected":
|
|
155
|
+
throw thenable.reason;
|
|
156
|
+
default:
|
|
157
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
158
|
+
function(fulfilledValue) {
|
|
159
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
160
|
+
},
|
|
161
|
+
function(error) {
|
|
162
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
163
|
+
}
|
|
164
|
+
)), thenable.status) {
|
|
165
|
+
case "fulfilled":
|
|
166
|
+
return thenable.value;
|
|
167
|
+
case "rejected":
|
|
168
|
+
throw thenable.reason;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
throw thenable;
|
|
172
|
+
}
|
|
173
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
174
|
+
var type = typeof children;
|
|
175
|
+
if ("undefined" === type || "boolean" === type)
|
|
176
|
+
children = null;
|
|
177
|
+
var invokeCallback = false;
|
|
178
|
+
if (null === children)
|
|
179
|
+
invokeCallback = true;
|
|
150
180
|
else
|
|
151
|
-
switch (
|
|
181
|
+
switch (type) {
|
|
182
|
+
case "bigint":
|
|
152
183
|
case "string":
|
|
153
184
|
case "number":
|
|
154
|
-
|
|
185
|
+
invokeCallback = true;
|
|
155
186
|
break;
|
|
156
187
|
case "object":
|
|
157
|
-
switch (
|
|
158
|
-
case
|
|
159
|
-
case
|
|
160
|
-
|
|
188
|
+
switch (children.$$typeof) {
|
|
189
|
+
case REACT_ELEMENT_TYPE:
|
|
190
|
+
case REACT_PORTAL_TYPE:
|
|
191
|
+
invokeCallback = true;
|
|
192
|
+
break;
|
|
193
|
+
case REACT_LAZY_TYPE:
|
|
194
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
195
|
+
invokeCallback(children._payload),
|
|
196
|
+
array,
|
|
197
|
+
escapedPrefix,
|
|
198
|
+
nameSoFar,
|
|
199
|
+
callback
|
|
200
|
+
);
|
|
161
201
|
}
|
|
162
202
|
}
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
165
|
-
return
|
|
166
|
-
})) : null !=
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
203
|
+
if (invokeCallback)
|
|
204
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
205
|
+
return c;
|
|
206
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
207
|
+
callback,
|
|
208
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
209
|
+
userProvidedKeyEscapeRegex,
|
|
210
|
+
"$&/"
|
|
211
|
+
) + "/") + invokeCallback
|
|
212
|
+
)), array.push(callback)), 1;
|
|
213
|
+
invokeCallback = 0;
|
|
214
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
215
|
+
if (isArrayImpl(children))
|
|
216
|
+
for (var i = 0; i < children.length; i++)
|
|
217
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
218
|
+
nameSoFar,
|
|
219
|
+
array,
|
|
220
|
+
escapedPrefix,
|
|
221
|
+
type,
|
|
222
|
+
callback
|
|
223
|
+
);
|
|
224
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
225
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
226
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
227
|
+
nameSoFar,
|
|
228
|
+
array,
|
|
229
|
+
escapedPrefix,
|
|
230
|
+
type,
|
|
231
|
+
callback
|
|
232
|
+
);
|
|
233
|
+
else if ("object" === type) {
|
|
234
|
+
if ("function" === typeof children.then)
|
|
235
|
+
return mapIntoArray(
|
|
236
|
+
resolveThenable(children),
|
|
237
|
+
array,
|
|
238
|
+
escapedPrefix,
|
|
239
|
+
nameSoFar,
|
|
240
|
+
callback
|
|
241
|
+
);
|
|
242
|
+
array = String(children);
|
|
243
|
+
throw Error(
|
|
244
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
return invokeCallback;
|
|
181
248
|
}
|
|
182
|
-
function
|
|
183
|
-
if (null ==
|
|
184
|
-
return
|
|
185
|
-
var
|
|
186
|
-
|
|
187
|
-
return
|
|
249
|
+
function mapChildren(children, func, context) {
|
|
250
|
+
if (null == children)
|
|
251
|
+
return children;
|
|
252
|
+
var result = [], count = 0;
|
|
253
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
254
|
+
return func.call(context, child, count++);
|
|
188
255
|
});
|
|
189
|
-
return
|
|
256
|
+
return result;
|
|
257
|
+
}
|
|
258
|
+
function lazyInitializer(payload) {
|
|
259
|
+
if (-1 === payload._status) {
|
|
260
|
+
var ctor = payload._result;
|
|
261
|
+
ctor = ctor();
|
|
262
|
+
ctor.then(
|
|
263
|
+
function(moduleObject) {
|
|
264
|
+
if (0 === payload._status || -1 === payload._status)
|
|
265
|
+
payload._status = 1, payload._result = moduleObject;
|
|
266
|
+
},
|
|
267
|
+
function(error) {
|
|
268
|
+
if (0 === payload._status || -1 === payload._status)
|
|
269
|
+
payload._status = 2, payload._result = error;
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
273
|
+
}
|
|
274
|
+
if (1 === payload._status)
|
|
275
|
+
return payload._result.default;
|
|
276
|
+
throw payload._result;
|
|
190
277
|
}
|
|
191
|
-
function
|
|
192
|
-
if (
|
|
193
|
-
var
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}, function(b2) {
|
|
199
|
-
if (0 === a._status || -1 === a._status)
|
|
200
|
-
a._status = 2, a._result = b2;
|
|
278
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
279
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
280
|
+
var event = new window.ErrorEvent("error", {
|
|
281
|
+
bubbles: true,
|
|
282
|
+
cancelable: true,
|
|
283
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
284
|
+
error
|
|
201
285
|
});
|
|
202
|
-
|
|
286
|
+
if (!window.dispatchEvent(event))
|
|
287
|
+
return;
|
|
288
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
289
|
+
process.emit("uncaughtException", error);
|
|
290
|
+
return;
|
|
203
291
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
292
|
+
console.error(error);
|
|
293
|
+
};
|
|
294
|
+
function noop() {
|
|
207
295
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
exports2.cloneElement = function(a, b, e) {
|
|
238
|
-
if (null === a || void 0 === a)
|
|
239
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
|
|
240
|
-
var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
|
|
241
|
-
if (null != b) {
|
|
242
|
-
void 0 !== b.ref && (k = b.ref, h = K.current);
|
|
243
|
-
void 0 !== b.key && (c = "" + b.key);
|
|
244
|
-
if (a.type && a.type.defaultProps)
|
|
245
|
-
var g = a.type.defaultProps;
|
|
246
|
-
for (f in b)
|
|
247
|
-
J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
296
|
+
exports2.Children = {
|
|
297
|
+
map: mapChildren,
|
|
298
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
299
|
+
mapChildren(
|
|
300
|
+
children,
|
|
301
|
+
function() {
|
|
302
|
+
forEachFunc.apply(this, arguments);
|
|
303
|
+
},
|
|
304
|
+
forEachContext
|
|
305
|
+
);
|
|
306
|
+
},
|
|
307
|
+
count: function(children) {
|
|
308
|
+
var n = 0;
|
|
309
|
+
mapChildren(children, function() {
|
|
310
|
+
n++;
|
|
311
|
+
});
|
|
312
|
+
return n;
|
|
313
|
+
},
|
|
314
|
+
toArray: function(children) {
|
|
315
|
+
return mapChildren(children, function(child) {
|
|
316
|
+
return child;
|
|
317
|
+
}) || [];
|
|
318
|
+
},
|
|
319
|
+
only: function(children) {
|
|
320
|
+
if (!isValidElement(children))
|
|
321
|
+
throw Error(
|
|
322
|
+
"React.Children.only expected to receive a single React element child."
|
|
323
|
+
);
|
|
324
|
+
return children;
|
|
248
325
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
326
|
+
};
|
|
327
|
+
exports2.Component = Component;
|
|
328
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
329
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
330
|
+
exports2.PureComponent = PureComponent;
|
|
331
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
332
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
333
|
+
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
334
|
+
exports2.__COMPILER_RUNTIME = {
|
|
335
|
+
__proto__: null,
|
|
336
|
+
c: function(size) {
|
|
337
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
exports2.cache = function(fn) {
|
|
341
|
+
return function() {
|
|
342
|
+
return fn.apply(null, arguments);
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
exports2.cloneElement = function(element, config, children) {
|
|
346
|
+
if (null === element || void 0 === element)
|
|
347
|
+
throw Error(
|
|
348
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
349
|
+
);
|
|
350
|
+
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
351
|
+
if (null != config)
|
|
352
|
+
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
353
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
354
|
+
var propName = arguments.length - 2;
|
|
355
|
+
if (1 === propName)
|
|
356
|
+
props.children = children;
|
|
357
|
+
else if (1 < propName) {
|
|
358
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
359
|
+
childArray[i] = arguments[i + 2];
|
|
360
|
+
props.children = childArray;
|
|
257
361
|
}
|
|
258
|
-
return
|
|
362
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
259
363
|
};
|
|
260
|
-
exports2.createContext = function(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
364
|
+
exports2.createContext = function(defaultValue) {
|
|
365
|
+
defaultValue = {
|
|
366
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
367
|
+
_currentValue: defaultValue,
|
|
368
|
+
_currentValue2: defaultValue,
|
|
369
|
+
_threadCount: 0,
|
|
370
|
+
Provider: null,
|
|
371
|
+
Consumer: null
|
|
372
|
+
};
|
|
373
|
+
defaultValue.Provider = defaultValue;
|
|
374
|
+
defaultValue.Consumer = {
|
|
375
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
376
|
+
_context: defaultValue
|
|
377
|
+
};
|
|
378
|
+
return defaultValue;
|
|
264
379
|
};
|
|
265
|
-
exports2.createElement =
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
380
|
+
exports2.createElement = function(type, config, children) {
|
|
381
|
+
var propName, props = {}, key = null;
|
|
382
|
+
if (null != config)
|
|
383
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
384
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
385
|
+
var childrenLength = arguments.length - 2;
|
|
386
|
+
if (1 === childrenLength)
|
|
387
|
+
props.children = children;
|
|
388
|
+
else if (1 < childrenLength) {
|
|
389
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
390
|
+
childArray[i] = arguments[i + 2];
|
|
391
|
+
props.children = childArray;
|
|
392
|
+
}
|
|
393
|
+
if (type && type.defaultProps)
|
|
394
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
395
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
396
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
270
397
|
};
|
|
271
398
|
exports2.createRef = function() {
|
|
272
399
|
return { current: null };
|
|
273
400
|
};
|
|
274
|
-
exports2.forwardRef = function(
|
|
275
|
-
return { $$typeof:
|
|
401
|
+
exports2.forwardRef = function(render) {
|
|
402
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
276
403
|
};
|
|
277
|
-
exports2.isValidElement =
|
|
278
|
-
exports2.lazy = function(
|
|
279
|
-
return {
|
|
404
|
+
exports2.isValidElement = isValidElement;
|
|
405
|
+
exports2.lazy = function(ctor) {
|
|
406
|
+
return {
|
|
407
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
408
|
+
_payload: { _status: -1, _result: ctor },
|
|
409
|
+
_init: lazyInitializer
|
|
410
|
+
};
|
|
280
411
|
};
|
|
281
|
-
exports2.memo = function(
|
|
282
|
-
return {
|
|
412
|
+
exports2.memo = function(type, compare) {
|
|
413
|
+
return {
|
|
414
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
415
|
+
type,
|
|
416
|
+
compare: void 0 === compare ? null : compare
|
|
417
|
+
};
|
|
283
418
|
};
|
|
284
|
-
exports2.startTransition = function(
|
|
285
|
-
var
|
|
286
|
-
|
|
419
|
+
exports2.startTransition = function(scope) {
|
|
420
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
421
|
+
ReactSharedInternals.T = currentTransition;
|
|
287
422
|
try {
|
|
288
|
-
|
|
423
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
424
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
425
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
426
|
+
} catch (error) {
|
|
427
|
+
reportGlobalError(error);
|
|
289
428
|
} finally {
|
|
290
|
-
|
|
429
|
+
ReactSharedInternals.T = prevTransition;
|
|
291
430
|
}
|
|
292
431
|
};
|
|
293
|
-
exports2.
|
|
294
|
-
|
|
432
|
+
exports2.unstable_useCacheRefresh = function() {
|
|
433
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
434
|
+
};
|
|
435
|
+
exports2.use = function(usable) {
|
|
436
|
+
return ReactSharedInternals.H.use(usable);
|
|
295
437
|
};
|
|
296
|
-
exports2.
|
|
297
|
-
return
|
|
438
|
+
exports2.useActionState = function(action, initialState, permalink) {
|
|
439
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
298
440
|
};
|
|
299
|
-
exports2.
|
|
300
|
-
return
|
|
441
|
+
exports2.useCallback = function(callback, deps) {
|
|
442
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
443
|
+
};
|
|
444
|
+
exports2.useContext = function(Context) {
|
|
445
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
301
446
|
};
|
|
302
447
|
exports2.useDebugValue = function() {
|
|
303
448
|
};
|
|
304
|
-
exports2.useDeferredValue = function(
|
|
305
|
-
return
|
|
449
|
+
exports2.useDeferredValue = function(value, initialValue) {
|
|
450
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
306
451
|
};
|
|
307
|
-
exports2.useEffect = function(
|
|
308
|
-
|
|
452
|
+
exports2.useEffect = function(create, createDeps, update) {
|
|
453
|
+
var dispatcher = ReactSharedInternals.H;
|
|
454
|
+
if ("function" === typeof update)
|
|
455
|
+
throw Error(
|
|
456
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
457
|
+
);
|
|
458
|
+
return dispatcher.useEffect(create, createDeps);
|
|
309
459
|
};
|
|
310
460
|
exports2.useId = function() {
|
|
311
|
-
return
|
|
461
|
+
return ReactSharedInternals.H.useId();
|
|
462
|
+
};
|
|
463
|
+
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
464
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
312
465
|
};
|
|
313
|
-
exports2.
|
|
314
|
-
return
|
|
466
|
+
exports2.useInsertionEffect = function(create, deps) {
|
|
467
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
315
468
|
};
|
|
316
|
-
exports2.
|
|
317
|
-
return
|
|
469
|
+
exports2.useLayoutEffect = function(create, deps) {
|
|
470
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
318
471
|
};
|
|
319
|
-
exports2.
|
|
320
|
-
return
|
|
472
|
+
exports2.useMemo = function(create, deps) {
|
|
473
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
321
474
|
};
|
|
322
|
-
exports2.
|
|
323
|
-
return
|
|
475
|
+
exports2.useOptimistic = function(passthrough, reducer) {
|
|
476
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
324
477
|
};
|
|
325
|
-
exports2.useReducer = function(
|
|
326
|
-
return
|
|
478
|
+
exports2.useReducer = function(reducer, initialArg, init) {
|
|
479
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
327
480
|
};
|
|
328
|
-
exports2.useRef = function(
|
|
329
|
-
return
|
|
481
|
+
exports2.useRef = function(initialValue) {
|
|
482
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
330
483
|
};
|
|
331
|
-
exports2.useState = function(
|
|
332
|
-
return
|
|
484
|
+
exports2.useState = function(initialState) {
|
|
485
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
333
486
|
};
|
|
334
|
-
exports2.useSyncExternalStore = function(
|
|
335
|
-
return
|
|
487
|
+
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
488
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
489
|
+
subscribe,
|
|
490
|
+
getSnapshot,
|
|
491
|
+
getServerSnapshot
|
|
492
|
+
);
|
|
336
493
|
};
|
|
337
494
|
exports2.useTransition = function() {
|
|
338
|
-
return
|
|
495
|
+
return ReactSharedInternals.H.useTransition();
|
|
339
496
|
};
|
|
340
|
-
exports2.version = "
|
|
497
|
+
exports2.version = "19.1.0";
|
|
341
498
|
}
|
|
342
499
|
});
|
|
343
500
|
|
|
@@ -345,2790 +502,1263 @@ var require_react_production_min = __commonJS({
|
|
|
345
502
|
var require_react_development = __commonJS({
|
|
346
503
|
"node_modules/react/cjs/react.development.js"(exports2, module2) {
|
|
347
504
|
"use strict";
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
358
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
359
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
360
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
361
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
362
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
363
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
364
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
365
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
366
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
367
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
368
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
369
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
370
|
-
function getIteratorFn(maybeIterable) {
|
|
371
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
372
|
-
return null;
|
|
373
|
-
}
|
|
374
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
375
|
-
if (typeof maybeIterator === "function") {
|
|
376
|
-
return maybeIterator;
|
|
505
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
506
|
+
function defineDeprecationWarning(methodName, info) {
|
|
507
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
508
|
+
get: function() {
|
|
509
|
+
console.warn(
|
|
510
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
511
|
+
info[0],
|
|
512
|
+
info[1]
|
|
513
|
+
);
|
|
377
514
|
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
function getIteratorFn(maybeIterable) {
|
|
518
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
378
519
|
return null;
|
|
520
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
521
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
522
|
+
}
|
|
523
|
+
function warnNoop(publicInstance, callerName) {
|
|
524
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
525
|
+
var warningKey = publicInstance + "." + callerName;
|
|
526
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
527
|
+
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
|
|
528
|
+
callerName,
|
|
529
|
+
publicInstance
|
|
530
|
+
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
531
|
+
}
|
|
532
|
+
function Component(props, context, updater) {
|
|
533
|
+
this.props = props;
|
|
534
|
+
this.context = context;
|
|
535
|
+
this.refs = emptyObject;
|
|
536
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
537
|
+
}
|
|
538
|
+
function ComponentDummy() {
|
|
539
|
+
}
|
|
540
|
+
function PureComponent(props, context, updater) {
|
|
541
|
+
this.props = props;
|
|
542
|
+
this.context = context;
|
|
543
|
+
this.refs = emptyObject;
|
|
544
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
545
|
+
}
|
|
546
|
+
function testStringCoercion(value) {
|
|
547
|
+
return "" + value;
|
|
548
|
+
}
|
|
549
|
+
function checkKeyStringCoercion(value) {
|
|
550
|
+
try {
|
|
551
|
+
testStringCoercion(value);
|
|
552
|
+
var JSCompiler_inline_result = false;
|
|
553
|
+
} catch (e) {
|
|
554
|
+
JSCompiler_inline_result = true;
|
|
555
|
+
}
|
|
556
|
+
if (JSCompiler_inline_result) {
|
|
557
|
+
JSCompiler_inline_result = console;
|
|
558
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
559
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
560
|
+
JSCompiler_temp_const.call(
|
|
561
|
+
JSCompiler_inline_result,
|
|
562
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
563
|
+
JSCompiler_inline_result$jscomp$0
|
|
564
|
+
);
|
|
565
|
+
return testStringCoercion(value);
|
|
379
566
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}
|
|
426
|
-
return stack;
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
var enableScopeAPI = false;
|
|
430
|
-
var enableCacheElement = false;
|
|
431
|
-
var enableTransitionTracing = false;
|
|
432
|
-
var enableLegacyHidden = false;
|
|
433
|
-
var enableDebugTracing = false;
|
|
434
|
-
var ReactSharedInternals = {
|
|
435
|
-
ReactCurrentDispatcher,
|
|
436
|
-
ReactCurrentBatchConfig,
|
|
437
|
-
ReactCurrentOwner
|
|
438
|
-
};
|
|
439
|
-
{
|
|
440
|
-
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
441
|
-
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
442
|
-
}
|
|
443
|
-
function warn(format) {
|
|
444
|
-
{
|
|
445
|
-
{
|
|
446
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
447
|
-
args[_key - 1] = arguments[_key];
|
|
448
|
-
}
|
|
449
|
-
printWarning("warn", format, args);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
function error(format) {
|
|
454
|
-
{
|
|
455
|
-
{
|
|
456
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
457
|
-
args[_key2 - 1] = arguments[_key2];
|
|
567
|
+
}
|
|
568
|
+
function getComponentNameFromType(type) {
|
|
569
|
+
if (null == type)
|
|
570
|
+
return null;
|
|
571
|
+
if ("function" === typeof type)
|
|
572
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
573
|
+
if ("string" === typeof type)
|
|
574
|
+
return type;
|
|
575
|
+
switch (type) {
|
|
576
|
+
case REACT_FRAGMENT_TYPE:
|
|
577
|
+
return "Fragment";
|
|
578
|
+
case REACT_PROFILER_TYPE:
|
|
579
|
+
return "Profiler";
|
|
580
|
+
case REACT_STRICT_MODE_TYPE:
|
|
581
|
+
return "StrictMode";
|
|
582
|
+
case REACT_SUSPENSE_TYPE:
|
|
583
|
+
return "Suspense";
|
|
584
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
585
|
+
return "SuspenseList";
|
|
586
|
+
case REACT_ACTIVITY_TYPE:
|
|
587
|
+
return "Activity";
|
|
588
|
+
}
|
|
589
|
+
if ("object" === typeof type)
|
|
590
|
+
switch ("number" === typeof type.tag && console.error(
|
|
591
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
592
|
+
), type.$$typeof) {
|
|
593
|
+
case REACT_PORTAL_TYPE:
|
|
594
|
+
return "Portal";
|
|
595
|
+
case REACT_CONTEXT_TYPE:
|
|
596
|
+
return (type.displayName || "Context") + ".Provider";
|
|
597
|
+
case REACT_CONSUMER_TYPE:
|
|
598
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
599
|
+
case REACT_FORWARD_REF_TYPE:
|
|
600
|
+
var innerType = type.render;
|
|
601
|
+
type = type.displayName;
|
|
602
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
603
|
+
return type;
|
|
604
|
+
case REACT_MEMO_TYPE:
|
|
605
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
606
|
+
case REACT_LAZY_TYPE:
|
|
607
|
+
innerType = type._payload;
|
|
608
|
+
type = type._init;
|
|
609
|
+
try {
|
|
610
|
+
return getComponentNameFromType(type(innerType));
|
|
611
|
+
} catch (x) {
|
|
458
612
|
}
|
|
459
|
-
printWarning("error", format, args);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
function printWarning(level, format, args) {
|
|
464
|
-
{
|
|
465
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
466
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
467
|
-
if (stack !== "") {
|
|
468
|
-
format += "%s";
|
|
469
|
-
args = args.concat([stack]);
|
|
470
|
-
}
|
|
471
|
-
var argsWithFormat = args.map(function(item) {
|
|
472
|
-
return String(item);
|
|
473
|
-
});
|
|
474
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
475
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
479
|
-
function warnNoop(publicInstance, callerName) {
|
|
480
|
-
{
|
|
481
|
-
var _constructor = publicInstance.constructor;
|
|
482
|
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
483
|
-
var warningKey = componentName + "." + callerName;
|
|
484
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
|
|
488
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
489
613
|
}
|
|
614
|
+
return null;
|
|
615
|
+
}
|
|
616
|
+
function getTaskName(type) {
|
|
617
|
+
if (type === REACT_FRAGMENT_TYPE)
|
|
618
|
+
return "<>";
|
|
619
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
620
|
+
return "<...>";
|
|
621
|
+
try {
|
|
622
|
+
var name = getComponentNameFromType(type);
|
|
623
|
+
return name ? "<" + name + ">" : "<...>";
|
|
624
|
+
} catch (x) {
|
|
625
|
+
return "<...>";
|
|
490
626
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
627
|
+
}
|
|
628
|
+
function getOwner() {
|
|
629
|
+
var dispatcher = ReactSharedInternals.A;
|
|
630
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
631
|
+
}
|
|
632
|
+
function UnknownOwner() {
|
|
633
|
+
return Error("react-stack-top-frame");
|
|
634
|
+
}
|
|
635
|
+
function hasValidKey(config) {
|
|
636
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
637
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
638
|
+
if (getter && getter.isReactWarning)
|
|
500
639
|
return false;
|
|
501
|
-
},
|
|
502
|
-
/**
|
|
503
|
-
* Forces an update. This should only be invoked when it is known with
|
|
504
|
-
* certainty that we are **not** in a DOM transaction.
|
|
505
|
-
*
|
|
506
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
507
|
-
* component's state has changed but `setState` was not called.
|
|
508
|
-
*
|
|
509
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
510
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
511
|
-
*
|
|
512
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
513
|
-
* @param {?function} callback Called after component is updated.
|
|
514
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
515
|
-
* @internal
|
|
516
|
-
*/
|
|
517
|
-
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
518
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
519
|
-
},
|
|
520
|
-
/**
|
|
521
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
522
|
-
* You should treat `this.state` as immutable.
|
|
523
|
-
*
|
|
524
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
525
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
526
|
-
*
|
|
527
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
528
|
-
* @param {object} completeState Next state.
|
|
529
|
-
* @param {?function} callback Called after component is updated.
|
|
530
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
531
|
-
* @internal
|
|
532
|
-
*/
|
|
533
|
-
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
534
|
-
warnNoop(publicInstance, "replaceState");
|
|
535
|
-
},
|
|
536
|
-
/**
|
|
537
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
538
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
539
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
540
|
-
* during the merge.
|
|
541
|
-
*
|
|
542
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
543
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
544
|
-
* @param {?function} callback Called after component is updated.
|
|
545
|
-
* @param {?string} Name of the calling function in the public API.
|
|
546
|
-
* @internal
|
|
547
|
-
*/
|
|
548
|
-
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
549
|
-
warnNoop(publicInstance, "setState");
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
var assign = Object.assign;
|
|
553
|
-
var emptyObject = {};
|
|
554
|
-
{
|
|
555
|
-
Object.freeze(emptyObject);
|
|
556
|
-
}
|
|
557
|
-
function Component(props, context, updater) {
|
|
558
|
-
this.props = props;
|
|
559
|
-
this.context = context;
|
|
560
|
-
this.refs = emptyObject;
|
|
561
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
562
640
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
641
|
+
return void 0 !== config.key;
|
|
642
|
+
}
|
|
643
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
644
|
+
function warnAboutAccessingKey() {
|
|
645
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
646
|
+
"%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://react.dev/link/special-props)",
|
|
647
|
+
displayName
|
|
648
|
+
));
|
|
649
|
+
}
|
|
650
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
651
|
+
Object.defineProperty(props, "key", {
|
|
652
|
+
get: warnAboutAccessingKey,
|
|
653
|
+
configurable: true
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
657
|
+
var componentName = getComponentNameFromType(this.type);
|
|
658
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
659
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
660
|
+
));
|
|
661
|
+
componentName = this.props.ref;
|
|
662
|
+
return void 0 !== componentName ? componentName : null;
|
|
663
|
+
}
|
|
664
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
665
|
+
self = props.ref;
|
|
666
|
+
type = {
|
|
667
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
668
|
+
type,
|
|
669
|
+
key,
|
|
670
|
+
props,
|
|
671
|
+
_owner: owner
|
|
572
672
|
};
|
|
573
|
-
{
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
673
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
674
|
+
enumerable: false,
|
|
675
|
+
get: elementRefGetterWithDeprecationWarning
|
|
676
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
677
|
+
type._store = {};
|
|
678
|
+
Object.defineProperty(type._store, "validated", {
|
|
679
|
+
configurable: false,
|
|
680
|
+
enumerable: false,
|
|
681
|
+
writable: true,
|
|
682
|
+
value: 0
|
|
683
|
+
});
|
|
684
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
685
|
+
configurable: false,
|
|
686
|
+
enumerable: false,
|
|
687
|
+
writable: true,
|
|
688
|
+
value: null
|
|
689
|
+
});
|
|
690
|
+
Object.defineProperty(type, "_debugStack", {
|
|
691
|
+
configurable: false,
|
|
692
|
+
enumerable: false,
|
|
693
|
+
writable: true,
|
|
694
|
+
value: debugStack
|
|
695
|
+
});
|
|
696
|
+
Object.defineProperty(type, "_debugTask", {
|
|
697
|
+
configurable: false,
|
|
698
|
+
enumerable: false,
|
|
699
|
+
writable: true,
|
|
700
|
+
value: debugTask
|
|
701
|
+
});
|
|
702
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
703
|
+
return type;
|
|
704
|
+
}
|
|
705
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
706
|
+
newKey = ReactElement(
|
|
707
|
+
oldElement.type,
|
|
708
|
+
newKey,
|
|
709
|
+
void 0,
|
|
710
|
+
void 0,
|
|
711
|
+
oldElement._owner,
|
|
712
|
+
oldElement.props,
|
|
713
|
+
oldElement._debugStack,
|
|
714
|
+
oldElement._debugTask
|
|
715
|
+
);
|
|
716
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
717
|
+
return newKey;
|
|
718
|
+
}
|
|
719
|
+
function isValidElement(object) {
|
|
720
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
721
|
+
}
|
|
722
|
+
function escape(key) {
|
|
723
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
724
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
725
|
+
return escaperLookup[match];
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
function getElementKey(element, index) {
|
|
729
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
730
|
+
}
|
|
731
|
+
function noop$1() {
|
|
732
|
+
}
|
|
733
|
+
function resolveThenable(thenable) {
|
|
734
|
+
switch (thenable.status) {
|
|
735
|
+
case "fulfilled":
|
|
736
|
+
return thenable.value;
|
|
737
|
+
case "rejected":
|
|
738
|
+
throw thenable.reason;
|
|
739
|
+
default:
|
|
740
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
741
|
+
function(fulfilledValue) {
|
|
742
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
743
|
+
},
|
|
744
|
+
function(error) {
|
|
745
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
583
746
|
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
747
|
+
)), thenable.status) {
|
|
748
|
+
case "fulfilled":
|
|
749
|
+
return thenable.value;
|
|
750
|
+
case "rejected":
|
|
751
|
+
throw thenable.reason;
|
|
589
752
|
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
function ComponentDummy() {
|
|
593
753
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
754
|
+
throw thenable;
|
|
755
|
+
}
|
|
756
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
757
|
+
var type = typeof children;
|
|
758
|
+
if ("undefined" === type || "boolean" === type)
|
|
759
|
+
children = null;
|
|
760
|
+
var invokeCallback = false;
|
|
761
|
+
if (null === children)
|
|
762
|
+
invokeCallback = true;
|
|
763
|
+
else
|
|
764
|
+
switch (type) {
|
|
765
|
+
case "bigint":
|
|
766
|
+
case "string":
|
|
767
|
+
case "number":
|
|
768
|
+
invokeCallback = true;
|
|
769
|
+
break;
|
|
770
|
+
case "object":
|
|
771
|
+
switch (children.$$typeof) {
|
|
772
|
+
case REACT_ELEMENT_TYPE:
|
|
773
|
+
case REACT_PORTAL_TYPE:
|
|
774
|
+
invokeCallback = true;
|
|
775
|
+
break;
|
|
776
|
+
case REACT_LAZY_TYPE:
|
|
777
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
778
|
+
invokeCallback(children._payload),
|
|
779
|
+
array,
|
|
780
|
+
escapedPrefix,
|
|
781
|
+
nameSoFar,
|
|
782
|
+
callback
|
|
783
|
+
);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
if (invokeCallback) {
|
|
787
|
+
invokeCallback = children;
|
|
788
|
+
callback = callback(invokeCallback);
|
|
789
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
790
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
791
|
+
return c;
|
|
792
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
793
|
+
callback,
|
|
794
|
+
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
795
|
+
userProvidedKeyEscapeRegex,
|
|
796
|
+
"$&/"
|
|
797
|
+
) + "/") + childKey
|
|
798
|
+
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
799
|
+
return 1;
|
|
800
|
+
}
|
|
801
|
+
invokeCallback = 0;
|
|
802
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
803
|
+
if (isArrayImpl(children))
|
|
804
|
+
for (var i = 0; i < children.length; i++)
|
|
805
|
+
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
806
|
+
nameSoFar,
|
|
807
|
+
array,
|
|
808
|
+
escapedPrefix,
|
|
809
|
+
type,
|
|
810
|
+
callback
|
|
811
|
+
);
|
|
812
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
813
|
+
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
814
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
815
|
+
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
816
|
+
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
817
|
+
nameSoFar,
|
|
818
|
+
array,
|
|
819
|
+
escapedPrefix,
|
|
820
|
+
type,
|
|
821
|
+
callback
|
|
822
|
+
);
|
|
823
|
+
else if ("object" === type) {
|
|
824
|
+
if ("function" === typeof children.then)
|
|
825
|
+
return mapIntoArray(
|
|
826
|
+
resolveThenable(children),
|
|
827
|
+
array,
|
|
828
|
+
escapedPrefix,
|
|
829
|
+
nameSoFar,
|
|
830
|
+
callback
|
|
831
|
+
);
|
|
832
|
+
array = String(children);
|
|
833
|
+
throw Error(
|
|
834
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
835
|
+
);
|
|
617
836
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
837
|
+
return invokeCallback;
|
|
838
|
+
}
|
|
839
|
+
function mapChildren(children, func, context) {
|
|
840
|
+
if (null == children)
|
|
841
|
+
return children;
|
|
842
|
+
var result = [], count = 0;
|
|
843
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
844
|
+
return func.call(context, child, count++);
|
|
845
|
+
});
|
|
846
|
+
return result;
|
|
847
|
+
}
|
|
848
|
+
function lazyInitializer(payload) {
|
|
849
|
+
if (-1 === payload._status) {
|
|
850
|
+
var ctor = payload._result;
|
|
851
|
+
ctor = ctor();
|
|
852
|
+
ctor.then(
|
|
853
|
+
function(moduleObject) {
|
|
854
|
+
if (0 === payload._status || -1 === payload._status)
|
|
855
|
+
payload._status = 1, payload._result = moduleObject;
|
|
856
|
+
},
|
|
857
|
+
function(error) {
|
|
858
|
+
if (0 === payload._status || -1 === payload._status)
|
|
859
|
+
payload._status = 2, payload._result = error;
|
|
860
|
+
}
|
|
861
|
+
);
|
|
862
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
863
|
+
}
|
|
864
|
+
if (1 === payload._status)
|
|
865
|
+
return ctor = payload._result, void 0 === ctor && console.error(
|
|
866
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
867
|
+
ctor
|
|
868
|
+
), "default" in ctor || console.error(
|
|
869
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
870
|
+
ctor
|
|
871
|
+
), ctor.default;
|
|
872
|
+
throw payload._result;
|
|
873
|
+
}
|
|
874
|
+
function resolveDispatcher() {
|
|
875
|
+
var dispatcher = ReactSharedInternals.H;
|
|
876
|
+
null === dispatcher && console.error(
|
|
877
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
878
|
+
);
|
|
879
|
+
return dispatcher;
|
|
880
|
+
}
|
|
881
|
+
function noop() {
|
|
882
|
+
}
|
|
883
|
+
function enqueueTask(task) {
|
|
884
|
+
if (null === enqueueTaskImpl)
|
|
885
|
+
try {
|
|
886
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
887
|
+
enqueueTaskImpl = (module2 && module2[requireString]).call(
|
|
888
|
+
module2,
|
|
889
|
+
"timers"
|
|
890
|
+
).setImmediate;
|
|
891
|
+
} catch (_err) {
|
|
892
|
+
enqueueTaskImpl = function(callback) {
|
|
893
|
+
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
894
|
+
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
895
|
+
));
|
|
896
|
+
var channel = new MessageChannel();
|
|
897
|
+
channel.port1.onmessage = callback;
|
|
898
|
+
channel.port2.postMessage(void 0);
|
|
899
|
+
};
|
|
623
900
|
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
901
|
+
return enqueueTaskImpl(task);
|
|
902
|
+
}
|
|
903
|
+
function aggregateErrors(errors) {
|
|
904
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
905
|
+
}
|
|
906
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
907
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
908
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
909
|
+
);
|
|
910
|
+
actScopeDepth = prevActScopeDepth;
|
|
911
|
+
}
|
|
912
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
913
|
+
var queue = ReactSharedInternals.actQueue;
|
|
914
|
+
if (null !== queue)
|
|
915
|
+
if (0 !== queue.length)
|
|
627
916
|
try {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
917
|
+
flushActQueue(queue);
|
|
918
|
+
enqueueTask(function() {
|
|
919
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
920
|
+
});
|
|
921
|
+
return;
|
|
922
|
+
} catch (error) {
|
|
923
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
632
924
|
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
925
|
+
else
|
|
926
|
+
ReactSharedInternals.actQueue = null;
|
|
927
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
928
|
+
}
|
|
929
|
+
function flushActQueue(queue) {
|
|
930
|
+
if (!isFlushing) {
|
|
931
|
+
isFlushing = true;
|
|
932
|
+
var i = 0;
|
|
933
|
+
try {
|
|
934
|
+
for (; i < queue.length; i++) {
|
|
935
|
+
var callback = queue[i];
|
|
936
|
+
do {
|
|
937
|
+
ReactSharedInternals.didUsePromise = false;
|
|
938
|
+
var continuation = callback(false);
|
|
939
|
+
if (null !== continuation) {
|
|
940
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
941
|
+
queue[i] = callback;
|
|
942
|
+
queue.splice(0, i);
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
945
|
+
callback = continuation;
|
|
946
|
+
} else
|
|
947
|
+
break;
|
|
948
|
+
} while (1);
|
|
643
949
|
}
|
|
950
|
+
queue.length = 0;
|
|
951
|
+
} catch (error) {
|
|
952
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
953
|
+
} finally {
|
|
954
|
+
isFlushing = false;
|
|
644
955
|
}
|
|
645
956
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
return
|
|
957
|
+
}
|
|
958
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
959
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
960
|
+
Symbol.for("react.provider");
|
|
961
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
962
|
+
isMounted: function() {
|
|
963
|
+
return false;
|
|
964
|
+
},
|
|
965
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
966
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
967
|
+
},
|
|
968
|
+
enqueueReplaceState: function(publicInstance) {
|
|
969
|
+
warnNoop(publicInstance, "replaceState");
|
|
970
|
+
},
|
|
971
|
+
enqueueSetState: function(publicInstance) {
|
|
972
|
+
warnNoop(publicInstance, "setState");
|
|
973
|
+
}
|
|
974
|
+
}, assign = Object.assign, emptyObject = {};
|
|
975
|
+
Object.freeze(emptyObject);
|
|
976
|
+
Component.prototype.isReactComponent = {};
|
|
977
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
978
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
979
|
+
throw Error(
|
|
980
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
981
|
+
);
|
|
982
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
983
|
+
};
|
|
984
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
985
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
986
|
+
};
|
|
987
|
+
var deprecatedAPIs = {
|
|
988
|
+
isMounted: [
|
|
989
|
+
"isMounted",
|
|
990
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
991
|
+
],
|
|
992
|
+
replaceState: [
|
|
993
|
+
"replaceState",
|
|
994
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
995
|
+
]
|
|
996
|
+
}, fnName;
|
|
997
|
+
for (fnName in deprecatedAPIs)
|
|
998
|
+
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
999
|
+
ComponentDummy.prototype = Component.prototype;
|
|
1000
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1001
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
1002
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
1003
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
1004
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1005
|
+
H: null,
|
|
1006
|
+
A: null,
|
|
1007
|
+
T: null,
|
|
1008
|
+
S: null,
|
|
1009
|
+
V: null,
|
|
1010
|
+
actQueue: null,
|
|
1011
|
+
isBatchingLegacy: false,
|
|
1012
|
+
didScheduleLegacyUpdate: false,
|
|
1013
|
+
didUsePromise: false,
|
|
1014
|
+
thrownErrors: [],
|
|
1015
|
+
getCurrentStack: null,
|
|
1016
|
+
recentlyCreatedOwnerStacks: 0
|
|
1017
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1018
|
+
return null;
|
|
1019
|
+
};
|
|
1020
|
+
deprecatedAPIs = {
|
|
1021
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
1022
|
+
return callStackForError();
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1026
|
+
var didWarnAboutElementRef = {};
|
|
1027
|
+
var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
|
|
1028
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1029
|
+
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1030
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1031
|
+
var event = new window.ErrorEvent("error", {
|
|
1032
|
+
bubbles: true,
|
|
1033
|
+
cancelable: true,
|
|
1034
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1035
|
+
error
|
|
1036
|
+
});
|
|
1037
|
+
if (!window.dispatchEvent(event))
|
|
1038
|
+
return;
|
|
1039
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1040
|
+
process.emit("uncaughtException", error);
|
|
1041
|
+
return;
|
|
1042
|
+
}
|
|
1043
|
+
console.error(error);
|
|
1044
|
+
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1045
|
+
queueMicrotask(function() {
|
|
1046
|
+
return queueMicrotask(callback);
|
|
1047
|
+
});
|
|
1048
|
+
} : enqueueTask;
|
|
1049
|
+
deprecatedAPIs = Object.freeze({
|
|
1050
|
+
__proto__: null,
|
|
1051
|
+
c: function(size) {
|
|
1052
|
+
return resolveDispatcher().useMemoCache(size);
|
|
653
1053
|
}
|
|
654
|
-
|
|
655
|
-
|
|
1054
|
+
});
|
|
1055
|
+
exports2.Children = {
|
|
1056
|
+
map: mapChildren,
|
|
1057
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1058
|
+
mapChildren(
|
|
1059
|
+
children,
|
|
1060
|
+
function() {
|
|
1061
|
+
forEachFunc.apply(this, arguments);
|
|
1062
|
+
},
|
|
1063
|
+
forEachContext
|
|
1064
|
+
);
|
|
1065
|
+
},
|
|
1066
|
+
count: function(children) {
|
|
1067
|
+
var n = 0;
|
|
1068
|
+
mapChildren(children, function() {
|
|
1069
|
+
n++;
|
|
1070
|
+
});
|
|
1071
|
+
return n;
|
|
1072
|
+
},
|
|
1073
|
+
toArray: function(children) {
|
|
1074
|
+
return mapChildren(children, function(child) {
|
|
1075
|
+
return child;
|
|
1076
|
+
}) || [];
|
|
1077
|
+
},
|
|
1078
|
+
only: function(children) {
|
|
1079
|
+
if (!isValidElement(children))
|
|
1080
|
+
throw Error(
|
|
1081
|
+
"React.Children.only expected to receive a single React element child."
|
|
1082
|
+
);
|
|
1083
|
+
return children;
|
|
656
1084
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
1085
|
+
};
|
|
1086
|
+
exports2.Component = Component;
|
|
1087
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
1088
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
1089
|
+
exports2.PureComponent = PureComponent;
|
|
1090
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1091
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
1092
|
+
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1093
|
+
exports2.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1094
|
+
exports2.act = function(callback) {
|
|
1095
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1096
|
+
actScopeDepth++;
|
|
1097
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1098
|
+
try {
|
|
1099
|
+
var result = callback();
|
|
1100
|
+
} catch (error) {
|
|
1101
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1102
|
+
}
|
|
1103
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1104
|
+
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1105
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1106
|
+
var thenable = result;
|
|
1107
|
+
queueSeveralMicrotasks(function() {
|
|
1108
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1109
|
+
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
1110
|
+
));
|
|
1111
|
+
});
|
|
1112
|
+
return {
|
|
1113
|
+
then: function(resolve, reject) {
|
|
1114
|
+
didAwaitActCall = true;
|
|
1115
|
+
thenable.then(
|
|
1116
|
+
function(returnValue) {
|
|
1117
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1118
|
+
if (0 === prevActScopeDepth) {
|
|
1119
|
+
try {
|
|
1120
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
1121
|
+
return recursivelyFlushAsyncActWork(
|
|
1122
|
+
returnValue,
|
|
1123
|
+
resolve,
|
|
1124
|
+
reject
|
|
1125
|
+
);
|
|
1126
|
+
});
|
|
1127
|
+
} catch (error$0) {
|
|
1128
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1129
|
+
}
|
|
1130
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1131
|
+
var _thrownError = aggregateErrors(
|
|
1132
|
+
ReactSharedInternals.thrownErrors
|
|
1133
|
+
);
|
|
1134
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
1135
|
+
reject(_thrownError);
|
|
1136
|
+
}
|
|
1137
|
+
} else
|
|
1138
|
+
resolve(returnValue);
|
|
1139
|
+
},
|
|
1140
|
+
function(error) {
|
|
1141
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1142
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1143
|
+
ReactSharedInternals.thrownErrors
|
|
1144
|
+
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1145
|
+
}
|
|
1146
|
+
);
|
|
664
1147
|
}
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
var returnValue$jscomp$0 = result;
|
|
1151
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1152
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1153
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1154
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1155
|
+
));
|
|
1156
|
+
}), ReactSharedInternals.actQueue = null);
|
|
1157
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1158
|
+
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1159
|
+
return {
|
|
1160
|
+
then: function(resolve, reject) {
|
|
1161
|
+
didAwaitActCall = true;
|
|
1162
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1163
|
+
return recursivelyFlushAsyncActWork(
|
|
1164
|
+
returnValue$jscomp$0,
|
|
1165
|
+
resolve,
|
|
1166
|
+
reject
|
|
1167
|
+
);
|
|
1168
|
+
})) : resolve(returnValue$jscomp$0);
|
|
665
1169
|
}
|
|
666
|
-
|
|
667
|
-
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
exports2.cache = function(fn) {
|
|
1173
|
+
return function() {
|
|
1174
|
+
return fn.apply(null, arguments);
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
exports2.captureOwnerStack = function() {
|
|
1178
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1179
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
1180
|
+
};
|
|
1181
|
+
exports2.cloneElement = function(element, config, children) {
|
|
1182
|
+
if (null === element || void 0 === element)
|
|
1183
|
+
throw Error(
|
|
1184
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
1185
|
+
);
|
|
1186
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1187
|
+
if (null != config) {
|
|
1188
|
+
var JSCompiler_inline_result;
|
|
1189
|
+
a: {
|
|
1190
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1191
|
+
config,
|
|
1192
|
+
"ref"
|
|
1193
|
+
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1194
|
+
JSCompiler_inline_result = false;
|
|
1195
|
+
break a;
|
|
1196
|
+
}
|
|
1197
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1198
|
+
}
|
|
1199
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
1200
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1201
|
+
for (propName in config)
|
|
1202
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1203
|
+
}
|
|
1204
|
+
var propName = arguments.length - 2;
|
|
1205
|
+
if (1 === propName)
|
|
1206
|
+
props.children = children;
|
|
1207
|
+
else if (1 < propName) {
|
|
1208
|
+
JSCompiler_inline_result = Array(propName);
|
|
1209
|
+
for (var i = 0; i < propName; i++)
|
|
1210
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1211
|
+
props.children = JSCompiler_inline_result;
|
|
1212
|
+
}
|
|
1213
|
+
props = ReactElement(
|
|
1214
|
+
element.type,
|
|
1215
|
+
key,
|
|
1216
|
+
void 0,
|
|
1217
|
+
void 0,
|
|
1218
|
+
owner,
|
|
1219
|
+
props,
|
|
1220
|
+
element._debugStack,
|
|
1221
|
+
element._debugTask
|
|
1222
|
+
);
|
|
1223
|
+
for (key = 2; key < arguments.length; key++)
|
|
1224
|
+
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
1225
|
+
return props;
|
|
1226
|
+
};
|
|
1227
|
+
exports2.createContext = function(defaultValue) {
|
|
1228
|
+
defaultValue = {
|
|
1229
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1230
|
+
_currentValue: defaultValue,
|
|
1231
|
+
_currentValue2: defaultValue,
|
|
1232
|
+
_threadCount: 0,
|
|
1233
|
+
Provider: null,
|
|
1234
|
+
Consumer: null
|
|
1235
|
+
};
|
|
1236
|
+
defaultValue.Provider = defaultValue;
|
|
1237
|
+
defaultValue.Consumer = {
|
|
1238
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1239
|
+
_context: defaultValue
|
|
1240
|
+
};
|
|
1241
|
+
defaultValue._currentRenderer = null;
|
|
1242
|
+
defaultValue._currentRenderer2 = null;
|
|
1243
|
+
return defaultValue;
|
|
1244
|
+
};
|
|
1245
|
+
exports2.createElement = function(type, config, children) {
|
|
1246
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
1247
|
+
var node = arguments[i];
|
|
1248
|
+
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1249
|
+
}
|
|
1250
|
+
i = {};
|
|
1251
|
+
node = null;
|
|
1252
|
+
if (null != config)
|
|
1253
|
+
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1254
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1255
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
|
1256
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1257
|
+
var childrenLength = arguments.length - 2;
|
|
1258
|
+
if (1 === childrenLength)
|
|
1259
|
+
i.children = children;
|
|
1260
|
+
else if (1 < childrenLength) {
|
|
1261
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1262
|
+
childArray[_i] = arguments[_i + 2];
|
|
1263
|
+
Object.freeze && Object.freeze(childArray);
|
|
1264
|
+
i.children = childArray;
|
|
1265
|
+
}
|
|
1266
|
+
if (type && type.defaultProps)
|
|
1267
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1268
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1269
|
+
node && defineKeyPropWarningGetter(
|
|
1270
|
+
i,
|
|
1271
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1272
|
+
);
|
|
1273
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1274
|
+
return ReactElement(
|
|
1275
|
+
type,
|
|
1276
|
+
node,
|
|
1277
|
+
void 0,
|
|
1278
|
+
void 0,
|
|
1279
|
+
getOwner(),
|
|
1280
|
+
i,
|
|
1281
|
+
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1282
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1283
|
+
);
|
|
1284
|
+
};
|
|
1285
|
+
exports2.createRef = function() {
|
|
1286
|
+
var refObject = { current: null };
|
|
1287
|
+
Object.seal(refObject);
|
|
1288
|
+
return refObject;
|
|
1289
|
+
};
|
|
1290
|
+
exports2.forwardRef = function(render) {
|
|
1291
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1292
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1293
|
+
) : "function" !== typeof render ? console.error(
|
|
1294
|
+
"forwardRef requires a render function but was given %s.",
|
|
1295
|
+
null === render ? "null" : typeof render
|
|
1296
|
+
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1297
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1298
|
+
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1299
|
+
);
|
|
1300
|
+
null != render && null != render.defaultProps && console.error(
|
|
1301
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1302
|
+
);
|
|
1303
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1304
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1305
|
+
enumerable: false,
|
|
1306
|
+
configurable: true,
|
|
1307
|
+
get: function() {
|
|
1308
|
+
return ownName;
|
|
1309
|
+
},
|
|
1310
|
+
set: function(name) {
|
|
1311
|
+
ownName = name;
|
|
1312
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
668
1313
|
}
|
|
669
|
-
|
|
670
|
-
|
|
1314
|
+
});
|
|
1315
|
+
return elementType;
|
|
1316
|
+
};
|
|
1317
|
+
exports2.isValidElement = isValidElement;
|
|
1318
|
+
exports2.lazy = function(ctor) {
|
|
1319
|
+
return {
|
|
1320
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1321
|
+
_payload: { _status: -1, _result: ctor },
|
|
1322
|
+
_init: lazyInitializer
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
exports2.memo = function(type, compare) {
|
|
1326
|
+
null == type && console.error(
|
|
1327
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1328
|
+
null === type ? "null" : typeof type
|
|
1329
|
+
);
|
|
1330
|
+
compare = {
|
|
1331
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1332
|
+
type,
|
|
1333
|
+
compare: void 0 === compare ? null : compare
|
|
1334
|
+
};
|
|
1335
|
+
var ownName;
|
|
1336
|
+
Object.defineProperty(compare, "displayName", {
|
|
1337
|
+
enumerable: false,
|
|
1338
|
+
configurable: true,
|
|
1339
|
+
get: function() {
|
|
1340
|
+
return ownName;
|
|
1341
|
+
},
|
|
1342
|
+
set: function(name) {
|
|
1343
|
+
ownName = name;
|
|
1344
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
671
1345
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
1346
|
+
});
|
|
1347
|
+
return compare;
|
|
1348
|
+
};
|
|
1349
|
+
exports2.startTransition = function(scope) {
|
|
1350
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1351
|
+
ReactSharedInternals.T = currentTransition;
|
|
1352
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1353
|
+
try {
|
|
1354
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1355
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1356
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1357
|
+
} catch (error) {
|
|
1358
|
+
reportGlobalError(error);
|
|
1359
|
+
} finally {
|
|
1360
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1361
|
+
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1362
|
+
)), ReactSharedInternals.T = prevTransition;
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
exports2.unstable_useCacheRefresh = function() {
|
|
1366
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1367
|
+
};
|
|
1368
|
+
exports2.use = function(usable) {
|
|
1369
|
+
return resolveDispatcher().use(usable);
|
|
1370
|
+
};
|
|
1371
|
+
exports2.useActionState = function(action, initialState, permalink) {
|
|
1372
|
+
return resolveDispatcher().useActionState(
|
|
1373
|
+
action,
|
|
1374
|
+
initialState,
|
|
1375
|
+
permalink
|
|
1376
|
+
);
|
|
1377
|
+
};
|
|
1378
|
+
exports2.useCallback = function(callback, deps) {
|
|
1379
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1380
|
+
};
|
|
1381
|
+
exports2.useContext = function(Context) {
|
|
1382
|
+
var dispatcher = resolveDispatcher();
|
|
1383
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1384
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1385
|
+
);
|
|
1386
|
+
return dispatcher.useContext(Context);
|
|
1387
|
+
};
|
|
1388
|
+
exports2.useDebugValue = function(value, formatterFn) {
|
|
1389
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1390
|
+
};
|
|
1391
|
+
exports2.useDeferredValue = function(value, initialValue) {
|
|
1392
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1393
|
+
};
|
|
1394
|
+
exports2.useEffect = function(create, createDeps, update) {
|
|
1395
|
+
null == create && console.warn(
|
|
1396
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1397
|
+
);
|
|
1398
|
+
var dispatcher = resolveDispatcher();
|
|
1399
|
+
if ("function" === typeof update)
|
|
1400
|
+
throw Error(
|
|
1401
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
1402
|
+
);
|
|
1403
|
+
return dispatcher.useEffect(create, createDeps);
|
|
1404
|
+
};
|
|
1405
|
+
exports2.useId = function() {
|
|
1406
|
+
return resolveDispatcher().useId();
|
|
1407
|
+
};
|
|
1408
|
+
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
1409
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1410
|
+
};
|
|
1411
|
+
exports2.useInsertionEffect = function(create, deps) {
|
|
1412
|
+
null == create && console.warn(
|
|
1413
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1414
|
+
);
|
|
1415
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1416
|
+
};
|
|
1417
|
+
exports2.useLayoutEffect = function(create, deps) {
|
|
1418
|
+
null == create && console.warn(
|
|
1419
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1420
|
+
);
|
|
1421
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1422
|
+
};
|
|
1423
|
+
exports2.useMemo = function(create, deps) {
|
|
1424
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1425
|
+
};
|
|
1426
|
+
exports2.useOptimistic = function(passthrough, reducer) {
|
|
1427
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1428
|
+
};
|
|
1429
|
+
exports2.useReducer = function(reducer, initialArg, init) {
|
|
1430
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1431
|
+
};
|
|
1432
|
+
exports2.useRef = function(initialValue) {
|
|
1433
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1434
|
+
};
|
|
1435
|
+
exports2.useState = function(initialState) {
|
|
1436
|
+
return resolveDispatcher().useState(initialState);
|
|
1437
|
+
};
|
|
1438
|
+
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1439
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
1440
|
+
subscribe,
|
|
1441
|
+
getSnapshot,
|
|
1442
|
+
getServerSnapshot
|
|
1443
|
+
);
|
|
1444
|
+
};
|
|
1445
|
+
exports2.useTransition = function() {
|
|
1446
|
+
return resolveDispatcher().useTransition();
|
|
1447
|
+
};
|
|
1448
|
+
exports2.version = "19.1.0";
|
|
1449
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1450
|
+
}();
|
|
1451
|
+
}
|
|
1452
|
+
});
|
|
1453
|
+
|
|
1454
|
+
// node_modules/react/index.js
|
|
1455
|
+
var require_react = __commonJS({
|
|
1456
|
+
"node_modules/react/index.js"(exports2, module2) {
|
|
1457
|
+
"use strict";
|
|
1458
|
+
if (process.env.NODE_ENV === "production") {
|
|
1459
|
+
module2.exports = require_react_production();
|
|
1460
|
+
} else {
|
|
1461
|
+
module2.exports = require_react_development();
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
|
|
1466
|
+
// node_modules/react/cjs/react-jsx-runtime.production.js
|
|
1467
|
+
var require_react_jsx_runtime_production = __commonJS({
|
|
1468
|
+
"node_modules/react/cjs/react-jsx-runtime.production.js"(exports2) {
|
|
1469
|
+
"use strict";
|
|
1470
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
1471
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
1472
|
+
function jsxProd(type, config, maybeKey) {
|
|
1473
|
+
var key = null;
|
|
1474
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
1475
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
1476
|
+
if ("key" in config) {
|
|
1477
|
+
maybeKey = {};
|
|
1478
|
+
for (var propName in config)
|
|
1479
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1480
|
+
} else
|
|
1481
|
+
maybeKey = config;
|
|
1482
|
+
config = maybeKey.ref;
|
|
1483
|
+
return {
|
|
1484
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1485
|
+
type,
|
|
1486
|
+
key,
|
|
1487
|
+
ref: void 0 !== config ? config : null,
|
|
1488
|
+
props: maybeKey
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
1492
|
+
exports2.jsx = jsxProd;
|
|
1493
|
+
exports2.jsxs = jsxProd;
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
|
|
1497
|
+
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
1498
|
+
var require_react_jsx_runtime_development = __commonJS({
|
|
1499
|
+
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
|
|
1500
|
+
"use strict";
|
|
1501
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
1502
|
+
function getComponentNameFromType(type) {
|
|
1503
|
+
if (null == type)
|
|
1504
|
+
return null;
|
|
1505
|
+
if ("function" === typeof type)
|
|
1506
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1507
|
+
if ("string" === typeof type)
|
|
1508
|
+
return type;
|
|
1509
|
+
switch (type) {
|
|
1510
|
+
case REACT_FRAGMENT_TYPE:
|
|
1511
|
+
return "Fragment";
|
|
1512
|
+
case REACT_PROFILER_TYPE:
|
|
1513
|
+
return "Profiler";
|
|
1514
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1515
|
+
return "StrictMode";
|
|
1516
|
+
case REACT_SUSPENSE_TYPE:
|
|
1517
|
+
return "Suspense";
|
|
1518
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1519
|
+
return "SuspenseList";
|
|
1520
|
+
case REACT_ACTIVITY_TYPE:
|
|
1521
|
+
return "Activity";
|
|
1522
|
+
}
|
|
1523
|
+
if ("object" === typeof type)
|
|
1524
|
+
switch ("number" === typeof type.tag && console.error(
|
|
1525
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1526
|
+
), type.$$typeof) {
|
|
675
1527
|
case REACT_PORTAL_TYPE:
|
|
676
1528
|
return "Portal";
|
|
677
|
-
case
|
|
678
|
-
return "
|
|
679
|
-
case
|
|
680
|
-
return "
|
|
681
|
-
case
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
case REACT_FORWARD_REF_TYPE:
|
|
695
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
696
|
-
case REACT_MEMO_TYPE:
|
|
697
|
-
var outerName = type.displayName || null;
|
|
698
|
-
if (outerName !== null) {
|
|
699
|
-
return outerName;
|
|
700
|
-
}
|
|
701
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
702
|
-
case REACT_LAZY_TYPE: {
|
|
703
|
-
var lazyComponent = type;
|
|
704
|
-
var payload = lazyComponent._payload;
|
|
705
|
-
var init = lazyComponent._init;
|
|
706
|
-
try {
|
|
707
|
-
return getComponentNameFromType(init(payload));
|
|
708
|
-
} catch (x) {
|
|
709
|
-
return null;
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
return null;
|
|
715
|
-
}
|
|
716
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
717
|
-
var RESERVED_PROPS = {
|
|
718
|
-
key: true,
|
|
719
|
-
ref: true,
|
|
720
|
-
__self: true,
|
|
721
|
-
__source: true
|
|
722
|
-
};
|
|
723
|
-
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
724
|
-
{
|
|
725
|
-
didWarnAboutStringRefs = {};
|
|
726
|
-
}
|
|
727
|
-
function hasValidRef(config) {
|
|
728
|
-
{
|
|
729
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
730
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
731
|
-
if (getter && getter.isReactWarning) {
|
|
732
|
-
return false;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
return config.ref !== void 0;
|
|
737
|
-
}
|
|
738
|
-
function hasValidKey(config) {
|
|
739
|
-
{
|
|
740
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
741
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
742
|
-
if (getter && getter.isReactWarning) {
|
|
743
|
-
return false;
|
|
1529
|
+
case REACT_CONTEXT_TYPE:
|
|
1530
|
+
return (type.displayName || "Context") + ".Provider";
|
|
1531
|
+
case REACT_CONSUMER_TYPE:
|
|
1532
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
1533
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1534
|
+
var innerType = type.render;
|
|
1535
|
+
type = type.displayName;
|
|
1536
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1537
|
+
return type;
|
|
1538
|
+
case REACT_MEMO_TYPE:
|
|
1539
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1540
|
+
case REACT_LAZY_TYPE:
|
|
1541
|
+
innerType = type._payload;
|
|
1542
|
+
type = type._init;
|
|
1543
|
+
try {
|
|
1544
|
+
return getComponentNameFromType(type(innerType));
|
|
1545
|
+
} catch (x) {
|
|
744
1546
|
}
|
|
745
|
-
}
|
|
746
1547
|
}
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
1548
|
+
return null;
|
|
1549
|
+
}
|
|
1550
|
+
function testStringCoercion(value) {
|
|
1551
|
+
return "" + value;
|
|
1552
|
+
}
|
|
1553
|
+
function checkKeyStringCoercion(value) {
|
|
1554
|
+
try {
|
|
1555
|
+
testStringCoercion(value);
|
|
1556
|
+
var JSCompiler_inline_result = false;
|
|
1557
|
+
} catch (e) {
|
|
1558
|
+
JSCompiler_inline_result = true;
|
|
1559
|
+
}
|
|
1560
|
+
if (JSCompiler_inline_result) {
|
|
1561
|
+
JSCompiler_inline_result = console;
|
|
1562
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1563
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1564
|
+
JSCompiler_temp_const.call(
|
|
1565
|
+
JSCompiler_inline_result,
|
|
1566
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1567
|
+
JSCompiler_inline_result$jscomp$0
|
|
1568
|
+
);
|
|
1569
|
+
return testStringCoercion(value);
|
|
763
1570
|
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
get: warnAboutAccessingRef,
|
|
776
|
-
configurable: true
|
|
777
|
-
});
|
|
1571
|
+
}
|
|
1572
|
+
function getTaskName(type) {
|
|
1573
|
+
if (type === REACT_FRAGMENT_TYPE)
|
|
1574
|
+
return "<>";
|
|
1575
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1576
|
+
return "<...>";
|
|
1577
|
+
try {
|
|
1578
|
+
var name = getComponentNameFromType(type);
|
|
1579
|
+
return name ? "<" + name + ">" : "<...>";
|
|
1580
|
+
} catch (x) {
|
|
1581
|
+
return "<...>";
|
|
778
1582
|
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
1583
|
+
}
|
|
1584
|
+
function getOwner() {
|
|
1585
|
+
var dispatcher = ReactSharedInternals.A;
|
|
1586
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1587
|
+
}
|
|
1588
|
+
function UnknownOwner() {
|
|
1589
|
+
return Error("react-stack-top-frame");
|
|
1590
|
+
}
|
|
1591
|
+
function hasValidKey(config) {
|
|
1592
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1593
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1594
|
+
if (getter && getter.isReactWarning)
|
|
1595
|
+
return false;
|
|
789
1596
|
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
});
|
|
822
|
-
if (Object.freeze) {
|
|
823
|
-
Object.freeze(element.props);
|
|
824
|
-
Object.freeze(element);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
return element;
|
|
1597
|
+
return void 0 !== config.key;
|
|
1598
|
+
}
|
|
1599
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
1600
|
+
function warnAboutAccessingKey() {
|
|
1601
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1602
|
+
"%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://react.dev/link/special-props)",
|
|
1603
|
+
displayName
|
|
1604
|
+
));
|
|
1605
|
+
}
|
|
1606
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
1607
|
+
Object.defineProperty(props, "key", {
|
|
1608
|
+
get: warnAboutAccessingKey,
|
|
1609
|
+
configurable: true
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
1613
|
+
var componentName = getComponentNameFromType(this.type);
|
|
1614
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1615
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1616
|
+
));
|
|
1617
|
+
componentName = this.props.ref;
|
|
1618
|
+
return void 0 !== componentName ? componentName : null;
|
|
1619
|
+
}
|
|
1620
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
1621
|
+
self = props.ref;
|
|
1622
|
+
type = {
|
|
1623
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1624
|
+
type,
|
|
1625
|
+
key,
|
|
1626
|
+
props,
|
|
1627
|
+
_owner: owner
|
|
828
1628
|
};
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
{
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
}
|
|
880
|
-
{
|
|
881
|
-
if (key || ref) {
|
|
882
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
883
|
-
if (key) {
|
|
884
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
885
|
-
}
|
|
886
|
-
if (ref) {
|
|
887
|
-
defineRefPropWarningGetter(props, displayName);
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
892
|
-
}
|
|
893
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
894
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
895
|
-
return newElement;
|
|
896
|
-
}
|
|
897
|
-
function cloneElement(element, config, children) {
|
|
898
|
-
if (element === null || element === void 0) {
|
|
899
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
900
|
-
}
|
|
901
|
-
var propName;
|
|
902
|
-
var props = assign({}, element.props);
|
|
903
|
-
var key = element.key;
|
|
904
|
-
var ref = element.ref;
|
|
905
|
-
var self = element._self;
|
|
906
|
-
var source = element._source;
|
|
907
|
-
var owner = element._owner;
|
|
908
|
-
if (config != null) {
|
|
909
|
-
if (hasValidRef(config)) {
|
|
910
|
-
ref = config.ref;
|
|
911
|
-
owner = ReactCurrentOwner.current;
|
|
912
|
-
}
|
|
913
|
-
if (hasValidKey(config)) {
|
|
914
|
-
{
|
|
915
|
-
checkKeyStringCoercion(config.key);
|
|
916
|
-
}
|
|
917
|
-
key = "" + config.key;
|
|
918
|
-
}
|
|
919
|
-
var defaultProps;
|
|
920
|
-
if (element.type && element.type.defaultProps) {
|
|
921
|
-
defaultProps = element.type.defaultProps;
|
|
922
|
-
}
|
|
923
|
-
for (propName in config) {
|
|
924
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
925
|
-
if (config[propName] === void 0 && defaultProps !== void 0) {
|
|
926
|
-
props[propName] = defaultProps[propName];
|
|
927
|
-
} else {
|
|
928
|
-
props[propName] = config[propName];
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
var childrenLength = arguments.length - 2;
|
|
934
|
-
if (childrenLength === 1) {
|
|
935
|
-
props.children = children;
|
|
936
|
-
} else if (childrenLength > 1) {
|
|
937
|
-
var childArray = Array(childrenLength);
|
|
938
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
939
|
-
childArray[i] = arguments[i + 2];
|
|
940
|
-
}
|
|
941
|
-
props.children = childArray;
|
|
942
|
-
}
|
|
943
|
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
944
|
-
}
|
|
945
|
-
function isValidElement(object) {
|
|
946
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
947
|
-
}
|
|
948
|
-
var SEPARATOR = ".";
|
|
949
|
-
var SUBSEPARATOR = ":";
|
|
950
|
-
function escape(key) {
|
|
951
|
-
var escapeRegex = /[=:]/g;
|
|
952
|
-
var escaperLookup = {
|
|
953
|
-
"=": "=0",
|
|
954
|
-
":": "=2"
|
|
955
|
-
};
|
|
956
|
-
var escapedString = key.replace(escapeRegex, function(match) {
|
|
957
|
-
return escaperLookup[match];
|
|
958
|
-
});
|
|
959
|
-
return "$" + escapedString;
|
|
960
|
-
}
|
|
961
|
-
var didWarnAboutMaps = false;
|
|
962
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
963
|
-
function escapeUserProvidedKey(text) {
|
|
964
|
-
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
965
|
-
}
|
|
966
|
-
function getElementKey(element, index) {
|
|
967
|
-
if (typeof element === "object" && element !== null && element.key != null) {
|
|
968
|
-
{
|
|
969
|
-
checkKeyStringCoercion(element.key);
|
|
970
|
-
}
|
|
971
|
-
return escape("" + element.key);
|
|
972
|
-
}
|
|
973
|
-
return index.toString(36);
|
|
974
|
-
}
|
|
975
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
976
|
-
var type = typeof children;
|
|
977
|
-
if (type === "undefined" || type === "boolean") {
|
|
978
|
-
children = null;
|
|
979
|
-
}
|
|
980
|
-
var invokeCallback = false;
|
|
981
|
-
if (children === null) {
|
|
982
|
-
invokeCallback = true;
|
|
983
|
-
} else {
|
|
984
|
-
switch (type) {
|
|
985
|
-
case "string":
|
|
986
|
-
case "number":
|
|
987
|
-
invokeCallback = true;
|
|
988
|
-
break;
|
|
989
|
-
case "object":
|
|
990
|
-
switch (children.$$typeof) {
|
|
991
|
-
case REACT_ELEMENT_TYPE:
|
|
992
|
-
case REACT_PORTAL_TYPE:
|
|
993
|
-
invokeCallback = true;
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
if (invokeCallback) {
|
|
998
|
-
var _child = children;
|
|
999
|
-
var mappedChild = callback(_child);
|
|
1000
|
-
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
1001
|
-
if (isArray(mappedChild)) {
|
|
1002
|
-
var escapedChildKey = "";
|
|
1003
|
-
if (childKey != null) {
|
|
1004
|
-
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
1005
|
-
}
|
|
1006
|
-
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
1007
|
-
return c;
|
|
1008
|
-
});
|
|
1009
|
-
} else if (mappedChild != null) {
|
|
1010
|
-
if (isValidElement(mappedChild)) {
|
|
1011
|
-
{
|
|
1012
|
-
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
1013
|
-
checkKeyStringCoercion(mappedChild.key);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
mappedChild = cloneAndReplaceKey(
|
|
1017
|
-
mappedChild,
|
|
1018
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
1019
|
-
// traverseAllChildren used to do for objects as children
|
|
1020
|
-
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1021
|
-
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
1022
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1023
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1024
|
-
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
1025
|
-
) : "") + childKey
|
|
1026
|
-
);
|
|
1027
|
-
}
|
|
1028
|
-
array.push(mappedChild);
|
|
1029
|
-
}
|
|
1030
|
-
return 1;
|
|
1031
|
-
}
|
|
1032
|
-
var child;
|
|
1033
|
-
var nextName;
|
|
1034
|
-
var subtreeCount = 0;
|
|
1035
|
-
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1036
|
-
if (isArray(children)) {
|
|
1037
|
-
for (var i = 0; i < children.length; i++) {
|
|
1038
|
-
child = children[i];
|
|
1039
|
-
nextName = nextNamePrefix + getElementKey(child, i);
|
|
1040
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1041
|
-
}
|
|
1042
|
-
} else {
|
|
1043
|
-
var iteratorFn = getIteratorFn(children);
|
|
1044
|
-
if (typeof iteratorFn === "function") {
|
|
1045
|
-
var iterableChildren = children;
|
|
1046
|
-
{
|
|
1047
|
-
if (iteratorFn === iterableChildren.entries) {
|
|
1048
|
-
if (!didWarnAboutMaps) {
|
|
1049
|
-
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
1050
|
-
}
|
|
1051
|
-
didWarnAboutMaps = true;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
var iterator = iteratorFn.call(iterableChildren);
|
|
1055
|
-
var step;
|
|
1056
|
-
var ii = 0;
|
|
1057
|
-
while (!(step = iterator.next()).done) {
|
|
1058
|
-
child = step.value;
|
|
1059
|
-
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
1060
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1061
|
-
}
|
|
1062
|
-
} else if (type === "object") {
|
|
1063
|
-
var childrenString = String(children);
|
|
1064
|
-
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
return subtreeCount;
|
|
1068
|
-
}
|
|
1069
|
-
function mapChildren(children, func, context) {
|
|
1070
|
-
if (children == null) {
|
|
1071
|
-
return children;
|
|
1072
|
-
}
|
|
1073
|
-
var result = [];
|
|
1074
|
-
var count = 0;
|
|
1075
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
1076
|
-
return func.call(context, child, count++);
|
|
1077
|
-
});
|
|
1078
|
-
return result;
|
|
1079
|
-
}
|
|
1080
|
-
function countChildren(children) {
|
|
1081
|
-
var n = 0;
|
|
1082
|
-
mapChildren(children, function() {
|
|
1083
|
-
n++;
|
|
1629
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
1630
|
+
enumerable: false,
|
|
1631
|
+
get: elementRefGetterWithDeprecationWarning
|
|
1632
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1633
|
+
type._store = {};
|
|
1634
|
+
Object.defineProperty(type._store, "validated", {
|
|
1635
|
+
configurable: false,
|
|
1636
|
+
enumerable: false,
|
|
1637
|
+
writable: true,
|
|
1638
|
+
value: 0
|
|
1639
|
+
});
|
|
1640
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
1641
|
+
configurable: false,
|
|
1642
|
+
enumerable: false,
|
|
1643
|
+
writable: true,
|
|
1644
|
+
value: null
|
|
1645
|
+
});
|
|
1646
|
+
Object.defineProperty(type, "_debugStack", {
|
|
1647
|
+
configurable: false,
|
|
1648
|
+
enumerable: false,
|
|
1649
|
+
writable: true,
|
|
1650
|
+
value: debugStack
|
|
1651
|
+
});
|
|
1652
|
+
Object.defineProperty(type, "_debugTask", {
|
|
1653
|
+
configurable: false,
|
|
1654
|
+
enumerable: false,
|
|
1655
|
+
writable: true,
|
|
1656
|
+
value: debugTask
|
|
1657
|
+
});
|
|
1658
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1659
|
+
return type;
|
|
1660
|
+
}
|
|
1661
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
1662
|
+
var children = config.children;
|
|
1663
|
+
if (void 0 !== children)
|
|
1664
|
+
if (isStaticChildren)
|
|
1665
|
+
if (isArrayImpl(children)) {
|
|
1666
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1667
|
+
validateChildKeys(children[isStaticChildren]);
|
|
1668
|
+
Object.freeze && Object.freeze(children);
|
|
1669
|
+
} else
|
|
1670
|
+
console.error(
|
|
1671
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1672
|
+
);
|
|
1673
|
+
else
|
|
1674
|
+
validateChildKeys(children);
|
|
1675
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1676
|
+
children = getComponentNameFromType(type);
|
|
1677
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
1678
|
+
return "key" !== k;
|
|
1084
1679
|
});
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
},
|
|
1168
|
-
set: function(_threadCount) {
|
|
1169
|
-
context._threadCount = _threadCount;
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
|
-
Consumer: {
|
|
1173
|
-
get: function() {
|
|
1174
|
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1175
|
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1176
|
-
error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
|
|
1177
|
-
}
|
|
1178
|
-
return context.Consumer;
|
|
1179
|
-
}
|
|
1180
|
-
},
|
|
1181
|
-
displayName: {
|
|
1182
|
-
get: function() {
|
|
1183
|
-
return context.displayName;
|
|
1184
|
-
},
|
|
1185
|
-
set: function(displayName) {
|
|
1186
|
-
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1187
|
-
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1188
|
-
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
});
|
|
1193
|
-
context.Consumer = Consumer;
|
|
1194
|
-
}
|
|
1195
|
-
{
|
|
1196
|
-
context._currentRenderer = null;
|
|
1197
|
-
context._currentRenderer2 = null;
|
|
1198
|
-
}
|
|
1199
|
-
return context;
|
|
1200
|
-
}
|
|
1201
|
-
var Uninitialized = -1;
|
|
1202
|
-
var Pending = 0;
|
|
1203
|
-
var Resolved = 1;
|
|
1204
|
-
var Rejected = 2;
|
|
1205
|
-
function lazyInitializer(payload) {
|
|
1206
|
-
if (payload._status === Uninitialized) {
|
|
1207
|
-
var ctor = payload._result;
|
|
1208
|
-
var thenable = ctor();
|
|
1209
|
-
thenable.then(function(moduleObject2) {
|
|
1210
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1211
|
-
var resolved = payload;
|
|
1212
|
-
resolved._status = Resolved;
|
|
1213
|
-
resolved._result = moduleObject2;
|
|
1214
|
-
}
|
|
1215
|
-
}, function(error2) {
|
|
1216
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1217
|
-
var rejected = payload;
|
|
1218
|
-
rejected._status = Rejected;
|
|
1219
|
-
rejected._result = error2;
|
|
1220
|
-
}
|
|
1221
|
-
});
|
|
1222
|
-
if (payload._status === Uninitialized) {
|
|
1223
|
-
var pending = payload;
|
|
1224
|
-
pending._status = Pending;
|
|
1225
|
-
pending._result = thenable;
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
if (payload._status === Resolved) {
|
|
1229
|
-
var moduleObject = payload._result;
|
|
1230
|
-
{
|
|
1231
|
-
if (moduleObject === void 0) {
|
|
1232
|
-
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
{
|
|
1236
|
-
if (!("default" in moduleObject)) {
|
|
1237
|
-
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
return moduleObject.default;
|
|
1241
|
-
} else {
|
|
1242
|
-
throw payload._result;
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
function lazy(ctor) {
|
|
1246
|
-
var payload = {
|
|
1247
|
-
// We use these fields to store the result.
|
|
1248
|
-
_status: Uninitialized,
|
|
1249
|
-
_result: ctor
|
|
1250
|
-
};
|
|
1251
|
-
var lazyType = {
|
|
1252
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1253
|
-
_payload: payload,
|
|
1254
|
-
_init: lazyInitializer
|
|
1255
|
-
};
|
|
1256
|
-
{
|
|
1257
|
-
var defaultProps;
|
|
1258
|
-
var propTypes;
|
|
1259
|
-
Object.defineProperties(lazyType, {
|
|
1260
|
-
defaultProps: {
|
|
1261
|
-
configurable: true,
|
|
1262
|
-
get: function() {
|
|
1263
|
-
return defaultProps;
|
|
1264
|
-
},
|
|
1265
|
-
set: function(newDefaultProps) {
|
|
1266
|
-
error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1267
|
-
defaultProps = newDefaultProps;
|
|
1268
|
-
Object.defineProperty(lazyType, "defaultProps", {
|
|
1269
|
-
enumerable: true
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
},
|
|
1273
|
-
propTypes: {
|
|
1274
|
-
configurable: true,
|
|
1275
|
-
get: function() {
|
|
1276
|
-
return propTypes;
|
|
1277
|
-
},
|
|
1278
|
-
set: function(newPropTypes) {
|
|
1279
|
-
error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1280
|
-
propTypes = newPropTypes;
|
|
1281
|
-
Object.defineProperty(lazyType, "propTypes", {
|
|
1282
|
-
enumerable: true
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
return lazyType;
|
|
1289
|
-
}
|
|
1290
|
-
function forwardRef(render) {
|
|
1291
|
-
{
|
|
1292
|
-
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1293
|
-
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
1294
|
-
} else if (typeof render !== "function") {
|
|
1295
|
-
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
1296
|
-
} else {
|
|
1297
|
-
if (render.length !== 0 && render.length !== 2) {
|
|
1298
|
-
error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
if (render != null) {
|
|
1302
|
-
if (render.defaultProps != null || render.propTypes != null) {
|
|
1303
|
-
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
var elementType = {
|
|
1308
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1309
|
-
render
|
|
1310
|
-
};
|
|
1311
|
-
{
|
|
1312
|
-
var ownName;
|
|
1313
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1314
|
-
enumerable: false,
|
|
1315
|
-
configurable: true,
|
|
1316
|
-
get: function() {
|
|
1317
|
-
return ownName;
|
|
1318
|
-
},
|
|
1319
|
-
set: function(name) {
|
|
1320
|
-
ownName = name;
|
|
1321
|
-
if (!render.name && !render.displayName) {
|
|
1322
|
-
render.displayName = name;
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
return elementType;
|
|
1328
|
-
}
|
|
1329
|
-
var REACT_MODULE_REFERENCE;
|
|
1330
|
-
{
|
|
1331
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1332
|
-
}
|
|
1333
|
-
function isValidElementType(type) {
|
|
1334
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
1335
|
-
return true;
|
|
1336
|
-
}
|
|
1337
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
1338
|
-
return true;
|
|
1339
|
-
}
|
|
1340
|
-
if (typeof type === "object" && type !== null) {
|
|
1341
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
1342
|
-
// types supported by any Flight configuration anywhere since
|
|
1343
|
-
// we don't know which Flight build this will end up being used
|
|
1344
|
-
// with.
|
|
1345
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1346
|
-
return true;
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
return false;
|
|
1350
|
-
}
|
|
1351
|
-
function memo(type, compare) {
|
|
1352
|
-
{
|
|
1353
|
-
if (!isValidElementType(type)) {
|
|
1354
|
-
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
var elementType = {
|
|
1358
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1359
|
-
type,
|
|
1360
|
-
compare: compare === void 0 ? null : compare
|
|
1361
|
-
};
|
|
1362
|
-
{
|
|
1363
|
-
var ownName;
|
|
1364
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1365
|
-
enumerable: false,
|
|
1366
|
-
configurable: true,
|
|
1367
|
-
get: function() {
|
|
1368
|
-
return ownName;
|
|
1369
|
-
},
|
|
1370
|
-
set: function(name) {
|
|
1371
|
-
ownName = name;
|
|
1372
|
-
if (!type.name && !type.displayName) {
|
|
1373
|
-
type.displayName = name;
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
});
|
|
1377
|
-
}
|
|
1378
|
-
return elementType;
|
|
1379
|
-
}
|
|
1380
|
-
function resolveDispatcher() {
|
|
1381
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
1382
|
-
{
|
|
1383
|
-
if (dispatcher === null) {
|
|
1384
|
-
error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
return dispatcher;
|
|
1388
|
-
}
|
|
1389
|
-
function useContext(Context) {
|
|
1390
|
-
var dispatcher = resolveDispatcher();
|
|
1391
|
-
{
|
|
1392
|
-
if (Context._context !== void 0) {
|
|
1393
|
-
var realContext = Context._context;
|
|
1394
|
-
if (realContext.Consumer === Context) {
|
|
1395
|
-
error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
|
|
1396
|
-
} else if (realContext.Provider === Context) {
|
|
1397
|
-
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
return dispatcher.useContext(Context);
|
|
1402
|
-
}
|
|
1403
|
-
function useState(initialState) {
|
|
1404
|
-
var dispatcher = resolveDispatcher();
|
|
1405
|
-
return dispatcher.useState(initialState);
|
|
1406
|
-
}
|
|
1407
|
-
function useReducer(reducer, initialArg, init) {
|
|
1408
|
-
var dispatcher = resolveDispatcher();
|
|
1409
|
-
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1410
|
-
}
|
|
1411
|
-
function useRef2(initialValue) {
|
|
1412
|
-
var dispatcher = resolveDispatcher();
|
|
1413
|
-
return dispatcher.useRef(initialValue);
|
|
1414
|
-
}
|
|
1415
|
-
function useEffect2(create, deps) {
|
|
1416
|
-
var dispatcher = resolveDispatcher();
|
|
1417
|
-
return dispatcher.useEffect(create, deps);
|
|
1418
|
-
}
|
|
1419
|
-
function useInsertionEffect(create, deps) {
|
|
1420
|
-
var dispatcher = resolveDispatcher();
|
|
1421
|
-
return dispatcher.useInsertionEffect(create, deps);
|
|
1422
|
-
}
|
|
1423
|
-
function useLayoutEffect(create, deps) {
|
|
1424
|
-
var dispatcher = resolveDispatcher();
|
|
1425
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
1426
|
-
}
|
|
1427
|
-
function useCallback(callback, deps) {
|
|
1428
|
-
var dispatcher = resolveDispatcher();
|
|
1429
|
-
return dispatcher.useCallback(callback, deps);
|
|
1430
|
-
}
|
|
1431
|
-
function useMemo(create, deps) {
|
|
1432
|
-
var dispatcher = resolveDispatcher();
|
|
1433
|
-
return dispatcher.useMemo(create, deps);
|
|
1434
|
-
}
|
|
1435
|
-
function useImperativeHandle(ref, create, deps) {
|
|
1436
|
-
var dispatcher = resolveDispatcher();
|
|
1437
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1438
|
-
}
|
|
1439
|
-
function useDebugValue(value, formatterFn) {
|
|
1440
|
-
{
|
|
1441
|
-
var dispatcher = resolveDispatcher();
|
|
1442
|
-
return dispatcher.useDebugValue(value, formatterFn);
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
function useTransition() {
|
|
1446
|
-
var dispatcher = resolveDispatcher();
|
|
1447
|
-
return dispatcher.useTransition();
|
|
1448
|
-
}
|
|
1449
|
-
function useDeferredValue(value) {
|
|
1450
|
-
var dispatcher = resolveDispatcher();
|
|
1451
|
-
return dispatcher.useDeferredValue(value);
|
|
1452
|
-
}
|
|
1453
|
-
function useId() {
|
|
1454
|
-
var dispatcher = resolveDispatcher();
|
|
1455
|
-
return dispatcher.useId();
|
|
1456
|
-
}
|
|
1457
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
1458
|
-
var dispatcher = resolveDispatcher();
|
|
1459
|
-
return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1460
|
-
}
|
|
1461
|
-
var disabledDepth = 0;
|
|
1462
|
-
var prevLog;
|
|
1463
|
-
var prevInfo;
|
|
1464
|
-
var prevWarn;
|
|
1465
|
-
var prevError;
|
|
1466
|
-
var prevGroup;
|
|
1467
|
-
var prevGroupCollapsed;
|
|
1468
|
-
var prevGroupEnd;
|
|
1469
|
-
function disabledLog() {
|
|
1470
|
-
}
|
|
1471
|
-
disabledLog.__reactDisabledLog = true;
|
|
1472
|
-
function disableLogs() {
|
|
1473
|
-
{
|
|
1474
|
-
if (disabledDepth === 0) {
|
|
1475
|
-
prevLog = console.log;
|
|
1476
|
-
prevInfo = console.info;
|
|
1477
|
-
prevWarn = console.warn;
|
|
1478
|
-
prevError = console.error;
|
|
1479
|
-
prevGroup = console.group;
|
|
1480
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
1481
|
-
prevGroupEnd = console.groupEnd;
|
|
1482
|
-
var props = {
|
|
1483
|
-
configurable: true,
|
|
1484
|
-
enumerable: true,
|
|
1485
|
-
value: disabledLog,
|
|
1486
|
-
writable: true
|
|
1487
|
-
};
|
|
1488
|
-
Object.defineProperties(console, {
|
|
1489
|
-
info: props,
|
|
1490
|
-
log: props,
|
|
1491
|
-
warn: props,
|
|
1492
|
-
error: props,
|
|
1493
|
-
group: props,
|
|
1494
|
-
groupCollapsed: props,
|
|
1495
|
-
groupEnd: props
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
disabledDepth++;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
function reenableLogs() {
|
|
1502
|
-
{
|
|
1503
|
-
disabledDepth--;
|
|
1504
|
-
if (disabledDepth === 0) {
|
|
1505
|
-
var props = {
|
|
1506
|
-
configurable: true,
|
|
1507
|
-
enumerable: true,
|
|
1508
|
-
writable: true
|
|
1509
|
-
};
|
|
1510
|
-
Object.defineProperties(console, {
|
|
1511
|
-
log: assign({}, props, {
|
|
1512
|
-
value: prevLog
|
|
1513
|
-
}),
|
|
1514
|
-
info: assign({}, props, {
|
|
1515
|
-
value: prevInfo
|
|
1516
|
-
}),
|
|
1517
|
-
warn: assign({}, props, {
|
|
1518
|
-
value: prevWarn
|
|
1519
|
-
}),
|
|
1520
|
-
error: assign({}, props, {
|
|
1521
|
-
value: prevError
|
|
1522
|
-
}),
|
|
1523
|
-
group: assign({}, props, {
|
|
1524
|
-
value: prevGroup
|
|
1525
|
-
}),
|
|
1526
|
-
groupCollapsed: assign({}, props, {
|
|
1527
|
-
value: prevGroupCollapsed
|
|
1528
|
-
}),
|
|
1529
|
-
groupEnd: assign({}, props, {
|
|
1530
|
-
value: prevGroupEnd
|
|
1531
|
-
})
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
if (disabledDepth < 0) {
|
|
1535
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1540
|
-
var prefix;
|
|
1541
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1542
|
-
{
|
|
1543
|
-
if (prefix === void 0) {
|
|
1544
|
-
try {
|
|
1545
|
-
throw Error();
|
|
1546
|
-
} catch (x) {
|
|
1547
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
1548
|
-
prefix = match && match[1] || "";
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
return "\n" + prefix + name;
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
var reentry = false;
|
|
1555
|
-
var componentFrameCache;
|
|
1556
|
-
{
|
|
1557
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1558
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
1559
|
-
}
|
|
1560
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
1561
|
-
if (!fn || reentry) {
|
|
1562
|
-
return "";
|
|
1563
|
-
}
|
|
1564
|
-
{
|
|
1565
|
-
var frame = componentFrameCache.get(fn);
|
|
1566
|
-
if (frame !== void 0) {
|
|
1567
|
-
return frame;
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
var control;
|
|
1571
|
-
reentry = true;
|
|
1572
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1573
|
-
Error.prepareStackTrace = void 0;
|
|
1574
|
-
var previousDispatcher;
|
|
1575
|
-
{
|
|
1576
|
-
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
1577
|
-
ReactCurrentDispatcher$1.current = null;
|
|
1578
|
-
disableLogs();
|
|
1579
|
-
}
|
|
1580
|
-
try {
|
|
1581
|
-
if (construct) {
|
|
1582
|
-
var Fake = function() {
|
|
1583
|
-
throw Error();
|
|
1584
|
-
};
|
|
1585
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
1586
|
-
set: function() {
|
|
1587
|
-
throw Error();
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1590
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1591
|
-
try {
|
|
1592
|
-
Reflect.construct(Fake, []);
|
|
1593
|
-
} catch (x) {
|
|
1594
|
-
control = x;
|
|
1595
|
-
}
|
|
1596
|
-
Reflect.construct(fn, [], Fake);
|
|
1597
|
-
} else {
|
|
1598
|
-
try {
|
|
1599
|
-
Fake.call();
|
|
1600
|
-
} catch (x) {
|
|
1601
|
-
control = x;
|
|
1602
|
-
}
|
|
1603
|
-
fn.call(Fake.prototype);
|
|
1604
|
-
}
|
|
1605
|
-
} else {
|
|
1606
|
-
try {
|
|
1607
|
-
throw Error();
|
|
1608
|
-
} catch (x) {
|
|
1609
|
-
control = x;
|
|
1610
|
-
}
|
|
1611
|
-
fn();
|
|
1612
|
-
}
|
|
1613
|
-
} catch (sample) {
|
|
1614
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
1615
|
-
var sampleLines = sample.stack.split("\n");
|
|
1616
|
-
var controlLines = control.stack.split("\n");
|
|
1617
|
-
var s = sampleLines.length - 1;
|
|
1618
|
-
var c = controlLines.length - 1;
|
|
1619
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1620
|
-
c--;
|
|
1621
|
-
}
|
|
1622
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1623
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
1624
|
-
if (s !== 1 || c !== 1) {
|
|
1625
|
-
do {
|
|
1626
|
-
s--;
|
|
1627
|
-
c--;
|
|
1628
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1629
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1630
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1631
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1632
|
-
}
|
|
1633
|
-
{
|
|
1634
|
-
if (typeof fn === "function") {
|
|
1635
|
-
componentFrameCache.set(fn, _frame);
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
return _frame;
|
|
1639
|
-
}
|
|
1640
|
-
} while (s >= 1 && c >= 0);
|
|
1641
|
-
}
|
|
1642
|
-
break;
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
} finally {
|
|
1647
|
-
reentry = false;
|
|
1648
|
-
{
|
|
1649
|
-
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
1650
|
-
reenableLogs();
|
|
1651
|
-
}
|
|
1652
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1653
|
-
}
|
|
1654
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
1655
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1656
|
-
{
|
|
1657
|
-
if (typeof fn === "function") {
|
|
1658
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
return syntheticFrame;
|
|
1662
|
-
}
|
|
1663
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1664
|
-
{
|
|
1665
|
-
return describeNativeComponentFrame(fn, false);
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
function shouldConstruct(Component2) {
|
|
1669
|
-
var prototype = Component2.prototype;
|
|
1670
|
-
return !!(prototype && prototype.isReactComponent);
|
|
1671
|
-
}
|
|
1672
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1673
|
-
if (type == null) {
|
|
1674
|
-
return "";
|
|
1675
|
-
}
|
|
1676
|
-
if (typeof type === "function") {
|
|
1677
|
-
{
|
|
1678
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
if (typeof type === "string") {
|
|
1682
|
-
return describeBuiltInComponentFrame(type);
|
|
1683
|
-
}
|
|
1684
|
-
switch (type) {
|
|
1685
|
-
case REACT_SUSPENSE_TYPE:
|
|
1686
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
1687
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1688
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
1689
|
-
}
|
|
1690
|
-
if (typeof type === "object") {
|
|
1691
|
-
switch (type.$$typeof) {
|
|
1692
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1693
|
-
return describeFunctionComponentFrame(type.render);
|
|
1694
|
-
case REACT_MEMO_TYPE:
|
|
1695
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1696
|
-
case REACT_LAZY_TYPE: {
|
|
1697
|
-
var lazyComponent = type;
|
|
1698
|
-
var payload = lazyComponent._payload;
|
|
1699
|
-
var init = lazyComponent._init;
|
|
1700
|
-
try {
|
|
1701
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1702
|
-
} catch (x) {
|
|
1703
|
-
}
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
return "";
|
|
1708
|
-
}
|
|
1709
|
-
var loggedTypeFailures = {};
|
|
1710
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1711
|
-
function setCurrentlyValidatingElement(element) {
|
|
1712
|
-
{
|
|
1713
|
-
if (element) {
|
|
1714
|
-
var owner = element._owner;
|
|
1715
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1716
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1717
|
-
} else {
|
|
1718
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1723
|
-
{
|
|
1724
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
1725
|
-
for (var typeSpecName in typeSpecs) {
|
|
1726
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
1727
|
-
var error$1 = void 0;
|
|
1728
|
-
try {
|
|
1729
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1730
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1731
|
-
err.name = "Invariant Violation";
|
|
1732
|
-
throw err;
|
|
1733
|
-
}
|
|
1734
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1735
|
-
} catch (ex) {
|
|
1736
|
-
error$1 = ex;
|
|
1737
|
-
}
|
|
1738
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1739
|
-
setCurrentlyValidatingElement(element);
|
|
1740
|
-
error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
1741
|
-
setCurrentlyValidatingElement(null);
|
|
1742
|
-
}
|
|
1743
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1744
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1745
|
-
setCurrentlyValidatingElement(element);
|
|
1746
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
1747
|
-
setCurrentlyValidatingElement(null);
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
1754
|
-
{
|
|
1755
|
-
if (element) {
|
|
1756
|
-
var owner = element._owner;
|
|
1757
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1758
|
-
setExtraStackFrame(stack);
|
|
1759
|
-
} else {
|
|
1760
|
-
setExtraStackFrame(null);
|
|
1761
|
-
}
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
var propTypesMisspellWarningShown;
|
|
1765
|
-
{
|
|
1766
|
-
propTypesMisspellWarningShown = false;
|
|
1767
|
-
}
|
|
1768
|
-
function getDeclarationErrorAddendum() {
|
|
1769
|
-
if (ReactCurrentOwner.current) {
|
|
1770
|
-
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1771
|
-
if (name) {
|
|
1772
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
return "";
|
|
1776
|
-
}
|
|
1777
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1778
|
-
if (source !== void 0) {
|
|
1779
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
1780
|
-
var lineNumber = source.lineNumber;
|
|
1781
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
1782
|
-
}
|
|
1783
|
-
return "";
|
|
1784
|
-
}
|
|
1785
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1786
|
-
if (elementProps !== null && elementProps !== void 0) {
|
|
1787
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1788
|
-
}
|
|
1789
|
-
return "";
|
|
1790
|
-
}
|
|
1791
|
-
var ownerHasKeyUseWarning = {};
|
|
1792
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1793
|
-
var info = getDeclarationErrorAddendum();
|
|
1794
|
-
if (!info) {
|
|
1795
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
1796
|
-
if (parentName) {
|
|
1797
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
return info;
|
|
1801
|
-
}
|
|
1802
|
-
function validateExplicitKey(element, parentType) {
|
|
1803
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1804
|
-
return;
|
|
1805
|
-
}
|
|
1806
|
-
element._store.validated = true;
|
|
1807
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1808
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1809
|
-
return;
|
|
1810
|
-
}
|
|
1811
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1812
|
-
var childOwner = "";
|
|
1813
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1814
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1815
|
-
}
|
|
1816
|
-
{
|
|
1817
|
-
setCurrentlyValidatingElement$1(element);
|
|
1818
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1819
|
-
setCurrentlyValidatingElement$1(null);
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
function validateChildKeys(node, parentType) {
|
|
1823
|
-
if (typeof node !== "object") {
|
|
1824
|
-
return;
|
|
1825
|
-
}
|
|
1826
|
-
if (isArray(node)) {
|
|
1827
|
-
for (var i = 0; i < node.length; i++) {
|
|
1828
|
-
var child = node[i];
|
|
1829
|
-
if (isValidElement(child)) {
|
|
1830
|
-
validateExplicitKey(child, parentType);
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
} else if (isValidElement(node)) {
|
|
1834
|
-
if (node._store) {
|
|
1835
|
-
node._store.validated = true;
|
|
1836
|
-
}
|
|
1837
|
-
} else if (node) {
|
|
1838
|
-
var iteratorFn = getIteratorFn(node);
|
|
1839
|
-
if (typeof iteratorFn === "function") {
|
|
1840
|
-
if (iteratorFn !== node.entries) {
|
|
1841
|
-
var iterator = iteratorFn.call(node);
|
|
1842
|
-
var step;
|
|
1843
|
-
while (!(step = iterator.next()).done) {
|
|
1844
|
-
if (isValidElement(step.value)) {
|
|
1845
|
-
validateExplicitKey(step.value, parentType);
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
function validatePropTypes(element) {
|
|
1853
|
-
{
|
|
1854
|
-
var type = element.type;
|
|
1855
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
1856
|
-
return;
|
|
1857
|
-
}
|
|
1858
|
-
var propTypes;
|
|
1859
|
-
if (typeof type === "function") {
|
|
1860
|
-
propTypes = type.propTypes;
|
|
1861
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1862
|
-
// Inner props are checked in the reconciler.
|
|
1863
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1864
|
-
propTypes = type.propTypes;
|
|
1865
|
-
} else {
|
|
1866
|
-
return;
|
|
1867
|
-
}
|
|
1868
|
-
if (propTypes) {
|
|
1869
|
-
var name = getComponentNameFromType(type);
|
|
1870
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1871
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1872
|
-
propTypesMisspellWarningShown = true;
|
|
1873
|
-
var _name = getComponentNameFromType(type);
|
|
1874
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1875
|
-
}
|
|
1876
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
1877
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1878
|
-
}
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
function validateFragmentProps(fragment) {
|
|
1882
|
-
{
|
|
1883
|
-
var keys = Object.keys(fragment.props);
|
|
1884
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1885
|
-
var key = keys[i];
|
|
1886
|
-
if (key !== "children" && key !== "key") {
|
|
1887
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1888
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
1889
|
-
setCurrentlyValidatingElement$1(null);
|
|
1890
|
-
break;
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
if (fragment.ref !== null) {
|
|
1894
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1895
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
1896
|
-
setCurrentlyValidatingElement$1(null);
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
function createElementWithValidation(type, props, children) {
|
|
1901
|
-
var validType = isValidElementType(type);
|
|
1902
|
-
if (!validType) {
|
|
1903
|
-
var info = "";
|
|
1904
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
1905
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
1906
|
-
}
|
|
1907
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
1908
|
-
if (sourceInfo) {
|
|
1909
|
-
info += sourceInfo;
|
|
1910
|
-
} else {
|
|
1911
|
-
info += getDeclarationErrorAddendum();
|
|
1912
|
-
}
|
|
1913
|
-
var typeString;
|
|
1914
|
-
if (type === null) {
|
|
1915
|
-
typeString = "null";
|
|
1916
|
-
} else if (isArray(type)) {
|
|
1917
|
-
typeString = "array";
|
|
1918
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1919
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
1920
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1921
|
-
} else {
|
|
1922
|
-
typeString = typeof type;
|
|
1923
|
-
}
|
|
1924
|
-
{
|
|
1925
|
-
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
var element = createElement.apply(this, arguments);
|
|
1929
|
-
if (element == null) {
|
|
1930
|
-
return element;
|
|
1931
|
-
}
|
|
1932
|
-
if (validType) {
|
|
1933
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1934
|
-
validateChildKeys(arguments[i], type);
|
|
1935
|
-
}
|
|
1936
|
-
}
|
|
1937
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
1938
|
-
validateFragmentProps(element);
|
|
1939
|
-
} else {
|
|
1940
|
-
validatePropTypes(element);
|
|
1941
|
-
}
|
|
1942
|
-
return element;
|
|
1943
|
-
}
|
|
1944
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
1945
|
-
function createFactoryWithValidation(type) {
|
|
1946
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1947
|
-
validatedFactory.type = type;
|
|
1948
|
-
{
|
|
1949
|
-
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1950
|
-
didWarnAboutDeprecatedCreateFactory = true;
|
|
1951
|
-
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1952
|
-
}
|
|
1953
|
-
Object.defineProperty(validatedFactory, "type", {
|
|
1954
|
-
enumerable: false,
|
|
1955
|
-
get: function() {
|
|
1956
|
-
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1957
|
-
Object.defineProperty(this, "type", {
|
|
1958
|
-
value: type
|
|
1959
|
-
});
|
|
1960
|
-
return type;
|
|
1961
|
-
}
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
1964
|
-
return validatedFactory;
|
|
1965
|
-
}
|
|
1966
|
-
function cloneElementWithValidation(element, props, children) {
|
|
1967
|
-
var newElement = cloneElement.apply(this, arguments);
|
|
1968
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1969
|
-
validateChildKeys(arguments[i], newElement.type);
|
|
1970
|
-
}
|
|
1971
|
-
validatePropTypes(newElement);
|
|
1972
|
-
return newElement;
|
|
1973
|
-
}
|
|
1974
|
-
function startTransition(scope, options) {
|
|
1975
|
-
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
1976
|
-
ReactCurrentBatchConfig.transition = {};
|
|
1977
|
-
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
1978
|
-
{
|
|
1979
|
-
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1980
|
-
}
|
|
1981
|
-
try {
|
|
1982
|
-
scope();
|
|
1983
|
-
} finally {
|
|
1984
|
-
ReactCurrentBatchConfig.transition = prevTransition;
|
|
1985
|
-
{
|
|
1986
|
-
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1987
|
-
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1988
|
-
if (updatedFibersCount > 10) {
|
|
1989
|
-
warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
|
|
1990
|
-
}
|
|
1991
|
-
currentTransition._updatedFibers.clear();
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
var didWarnAboutMessageChannel = false;
|
|
1997
|
-
var enqueueTaskImpl = null;
|
|
1998
|
-
function enqueueTask(task) {
|
|
1999
|
-
if (enqueueTaskImpl === null) {
|
|
2000
|
-
try {
|
|
2001
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
2002
|
-
var nodeRequire = module2 && module2[requireString];
|
|
2003
|
-
enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
|
|
2004
|
-
} catch (_err) {
|
|
2005
|
-
enqueueTaskImpl = function(callback) {
|
|
2006
|
-
{
|
|
2007
|
-
if (didWarnAboutMessageChannel === false) {
|
|
2008
|
-
didWarnAboutMessageChannel = true;
|
|
2009
|
-
if (typeof MessageChannel === "undefined") {
|
|
2010
|
-
error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
var channel = new MessageChannel();
|
|
2015
|
-
channel.port1.onmessage = callback;
|
|
2016
|
-
channel.port2.postMessage(void 0);
|
|
2017
|
-
};
|
|
2018
|
-
}
|
|
2019
|
-
}
|
|
2020
|
-
return enqueueTaskImpl(task);
|
|
2021
|
-
}
|
|
2022
|
-
var actScopeDepth = 0;
|
|
2023
|
-
var didWarnNoAwaitAct = false;
|
|
2024
|
-
function act(callback) {
|
|
2025
|
-
{
|
|
2026
|
-
var prevActScopeDepth = actScopeDepth;
|
|
2027
|
-
actScopeDepth++;
|
|
2028
|
-
if (ReactCurrentActQueue.current === null) {
|
|
2029
|
-
ReactCurrentActQueue.current = [];
|
|
2030
|
-
}
|
|
2031
|
-
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
2032
|
-
var result;
|
|
2033
|
-
try {
|
|
2034
|
-
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
2035
|
-
result = callback();
|
|
2036
|
-
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
2037
|
-
var queue = ReactCurrentActQueue.current;
|
|
2038
|
-
if (queue !== null) {
|
|
2039
|
-
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
2040
|
-
flushActQueue(queue);
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
} catch (error2) {
|
|
2044
|
-
popActScope(prevActScopeDepth);
|
|
2045
|
-
throw error2;
|
|
2046
|
-
} finally {
|
|
2047
|
-
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
2048
|
-
}
|
|
2049
|
-
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
2050
|
-
var thenableResult = result;
|
|
2051
|
-
var wasAwaited = false;
|
|
2052
|
-
var thenable = {
|
|
2053
|
-
then: function(resolve, reject) {
|
|
2054
|
-
wasAwaited = true;
|
|
2055
|
-
thenableResult.then(function(returnValue2) {
|
|
2056
|
-
popActScope(prevActScopeDepth);
|
|
2057
|
-
if (actScopeDepth === 0) {
|
|
2058
|
-
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
2059
|
-
} else {
|
|
2060
|
-
resolve(returnValue2);
|
|
2061
|
-
}
|
|
2062
|
-
}, function(error2) {
|
|
2063
|
-
popActScope(prevActScopeDepth);
|
|
2064
|
-
reject(error2);
|
|
2065
|
-
});
|
|
2066
|
-
}
|
|
2067
|
-
};
|
|
2068
|
-
{
|
|
2069
|
-
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
2070
|
-
Promise.resolve().then(function() {
|
|
2071
|
-
}).then(function() {
|
|
2072
|
-
if (!wasAwaited) {
|
|
2073
|
-
didWarnNoAwaitAct = true;
|
|
2074
|
-
error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
|
|
2075
|
-
}
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
return thenable;
|
|
2080
|
-
} else {
|
|
2081
|
-
var returnValue = result;
|
|
2082
|
-
popActScope(prevActScopeDepth);
|
|
2083
|
-
if (actScopeDepth === 0) {
|
|
2084
|
-
var _queue = ReactCurrentActQueue.current;
|
|
2085
|
-
if (_queue !== null) {
|
|
2086
|
-
flushActQueue(_queue);
|
|
2087
|
-
ReactCurrentActQueue.current = null;
|
|
2088
|
-
}
|
|
2089
|
-
var _thenable = {
|
|
2090
|
-
then: function(resolve, reject) {
|
|
2091
|
-
if (ReactCurrentActQueue.current === null) {
|
|
2092
|
-
ReactCurrentActQueue.current = [];
|
|
2093
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2094
|
-
} else {
|
|
2095
|
-
resolve(returnValue);
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
};
|
|
2099
|
-
return _thenable;
|
|
2100
|
-
} else {
|
|
2101
|
-
var _thenable2 = {
|
|
2102
|
-
then: function(resolve, reject) {
|
|
2103
|
-
resolve(returnValue);
|
|
2104
|
-
}
|
|
2105
|
-
};
|
|
2106
|
-
return _thenable2;
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
function popActScope(prevActScopeDepth) {
|
|
2112
|
-
{
|
|
2113
|
-
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2114
|
-
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2115
|
-
}
|
|
2116
|
-
actScopeDepth = prevActScopeDepth;
|
|
2117
|
-
}
|
|
2118
|
-
}
|
|
2119
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2120
|
-
{
|
|
2121
|
-
var queue = ReactCurrentActQueue.current;
|
|
2122
|
-
if (queue !== null) {
|
|
2123
|
-
try {
|
|
2124
|
-
flushActQueue(queue);
|
|
2125
|
-
enqueueTask(function() {
|
|
2126
|
-
if (queue.length === 0) {
|
|
2127
|
-
ReactCurrentActQueue.current = null;
|
|
2128
|
-
resolve(returnValue);
|
|
2129
|
-
} else {
|
|
2130
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2131
|
-
}
|
|
2132
|
-
});
|
|
2133
|
-
} catch (error2) {
|
|
2134
|
-
reject(error2);
|
|
2135
|
-
}
|
|
2136
|
-
} else {
|
|
2137
|
-
resolve(returnValue);
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
}
|
|
2141
|
-
var isFlushing = false;
|
|
2142
|
-
function flushActQueue(queue) {
|
|
2143
|
-
{
|
|
2144
|
-
if (!isFlushing) {
|
|
2145
|
-
isFlushing = true;
|
|
2146
|
-
var i = 0;
|
|
2147
|
-
try {
|
|
2148
|
-
for (; i < queue.length; i++) {
|
|
2149
|
-
var callback = queue[i];
|
|
2150
|
-
do {
|
|
2151
|
-
callback = callback(true);
|
|
2152
|
-
} while (callback !== null);
|
|
2153
|
-
}
|
|
2154
|
-
queue.length = 0;
|
|
2155
|
-
} catch (error2) {
|
|
2156
|
-
queue = queue.slice(i + 1);
|
|
2157
|
-
throw error2;
|
|
2158
|
-
} finally {
|
|
2159
|
-
isFlushing = false;
|
|
2160
|
-
}
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
2164
|
-
var createElement$1 = createElementWithValidation;
|
|
2165
|
-
var cloneElement$1 = cloneElementWithValidation;
|
|
2166
|
-
var createFactory = createFactoryWithValidation;
|
|
2167
|
-
var Children = {
|
|
2168
|
-
map: mapChildren,
|
|
2169
|
-
forEach: forEachChildren,
|
|
2170
|
-
count: countChildren,
|
|
2171
|
-
toArray,
|
|
2172
|
-
only: onlyChild
|
|
2173
|
-
};
|
|
2174
|
-
exports2.Children = Children;
|
|
2175
|
-
exports2.Component = Component;
|
|
2176
|
-
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
2177
|
-
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
2178
|
-
exports2.PureComponent = PureComponent;
|
|
2179
|
-
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2180
|
-
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
2181
|
-
exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2182
|
-
exports2.cloneElement = cloneElement$1;
|
|
2183
|
-
exports2.createContext = createContext;
|
|
2184
|
-
exports2.createElement = createElement$1;
|
|
2185
|
-
exports2.createFactory = createFactory;
|
|
2186
|
-
exports2.createRef = createRef;
|
|
2187
|
-
exports2.forwardRef = forwardRef;
|
|
2188
|
-
exports2.isValidElement = isValidElement;
|
|
2189
|
-
exports2.lazy = lazy;
|
|
2190
|
-
exports2.memo = memo;
|
|
2191
|
-
exports2.startTransition = startTransition;
|
|
2192
|
-
exports2.unstable_act = act;
|
|
2193
|
-
exports2.useCallback = useCallback;
|
|
2194
|
-
exports2.useContext = useContext;
|
|
2195
|
-
exports2.useDebugValue = useDebugValue;
|
|
2196
|
-
exports2.useDeferredValue = useDeferredValue;
|
|
2197
|
-
exports2.useEffect = useEffect2;
|
|
2198
|
-
exports2.useId = useId;
|
|
2199
|
-
exports2.useImperativeHandle = useImperativeHandle;
|
|
2200
|
-
exports2.useInsertionEffect = useInsertionEffect;
|
|
2201
|
-
exports2.useLayoutEffect = useLayoutEffect;
|
|
2202
|
-
exports2.useMemo = useMemo;
|
|
2203
|
-
exports2.useReducer = useReducer;
|
|
2204
|
-
exports2.useRef = useRef2;
|
|
2205
|
-
exports2.useState = useState;
|
|
2206
|
-
exports2.useSyncExternalStore = useSyncExternalStore;
|
|
2207
|
-
exports2.useTransition = useTransition;
|
|
2208
|
-
exports2.version = ReactVersion;
|
|
2209
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
2210
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2211
|
-
}
|
|
2212
|
-
})();
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
});
|
|
2216
|
-
|
|
2217
|
-
// node_modules/react/index.js
|
|
2218
|
-
var require_react = __commonJS({
|
|
2219
|
-
"node_modules/react/index.js"(exports2, module2) {
|
|
2220
|
-
"use strict";
|
|
2221
|
-
if (process.env.NODE_ENV === "production") {
|
|
2222
|
-
module2.exports = require_react_production_min();
|
|
2223
|
-
} else {
|
|
2224
|
-
module2.exports = require_react_development();
|
|
2225
|
-
}
|
|
2226
|
-
}
|
|
2227
|
-
});
|
|
2228
|
-
|
|
2229
|
-
// node_modules/react/cjs/react-jsx-runtime.production.min.js
|
|
2230
|
-
var require_react_jsx_runtime_production_min = __commonJS({
|
|
2231
|
-
"node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports2) {
|
|
2232
|
-
"use strict";
|
|
2233
|
-
var f = require_react();
|
|
2234
|
-
var k = Symbol.for("react.element");
|
|
2235
|
-
var l = Symbol.for("react.fragment");
|
|
2236
|
-
var m = Object.prototype.hasOwnProperty;
|
|
2237
|
-
var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
|
2238
|
-
var p = { key: true, ref: true, __self: true, __source: true };
|
|
2239
|
-
function q(c, a, g) {
|
|
2240
|
-
var b, d = {}, e = null, h = null;
|
|
2241
|
-
void 0 !== g && (e = "" + g);
|
|
2242
|
-
void 0 !== a.key && (e = "" + a.key);
|
|
2243
|
-
void 0 !== a.ref && (h = a.ref);
|
|
2244
|
-
for (b in a)
|
|
2245
|
-
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
2246
|
-
if (c && c.defaultProps)
|
|
2247
|
-
for (b in a = c.defaultProps, a)
|
|
2248
|
-
void 0 === d[b] && (d[b] = a[b]);
|
|
2249
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
2250
|
-
}
|
|
2251
|
-
exports2.Fragment = l;
|
|
2252
|
-
exports2.jsx = q;
|
|
2253
|
-
exports2.jsxs = q;
|
|
2254
|
-
}
|
|
2255
|
-
});
|
|
2256
|
-
|
|
2257
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2258
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
2259
|
-
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
|
|
2260
|
-
"use strict";
|
|
2261
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2262
|
-
(function() {
|
|
2263
|
-
"use strict";
|
|
2264
|
-
var React = require_react();
|
|
2265
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
2266
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
2267
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2268
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
2269
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2270
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
2271
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
2272
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
2273
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
2274
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
2275
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
2276
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
2277
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
2278
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
2279
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
2280
|
-
function getIteratorFn(maybeIterable) {
|
|
2281
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
2282
|
-
return null;
|
|
2283
|
-
}
|
|
2284
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
2285
|
-
if (typeof maybeIterator === "function") {
|
|
2286
|
-
return maybeIterator;
|
|
2287
|
-
}
|
|
2288
|
-
return null;
|
|
2289
|
-
}
|
|
2290
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2291
|
-
function error(format) {
|
|
2292
|
-
{
|
|
2293
|
-
{
|
|
2294
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2295
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2296
|
-
}
|
|
2297
|
-
printWarning("error", format, args);
|
|
2298
|
-
}
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
function printWarning(level, format, args) {
|
|
2302
|
-
{
|
|
2303
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2304
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
2305
|
-
if (stack !== "") {
|
|
2306
|
-
format += "%s";
|
|
2307
|
-
args = args.concat([stack]);
|
|
2308
|
-
}
|
|
2309
|
-
var argsWithFormat = args.map(function(item) {
|
|
2310
|
-
return String(item);
|
|
2311
|
-
});
|
|
2312
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
2313
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
var enableScopeAPI = false;
|
|
2317
|
-
var enableCacheElement = false;
|
|
2318
|
-
var enableTransitionTracing = false;
|
|
2319
|
-
var enableLegacyHidden = false;
|
|
2320
|
-
var enableDebugTracing = false;
|
|
2321
|
-
var REACT_MODULE_REFERENCE;
|
|
2322
|
-
{
|
|
2323
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
2324
|
-
}
|
|
2325
|
-
function isValidElementType(type) {
|
|
2326
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
2327
|
-
return true;
|
|
2328
|
-
}
|
|
2329
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
2330
|
-
return true;
|
|
2331
|
-
}
|
|
2332
|
-
if (typeof type === "object" && type !== null) {
|
|
2333
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
2334
|
-
// types supported by any Flight configuration anywhere since
|
|
2335
|
-
// we don't know which Flight build this will end up being used
|
|
2336
|
-
// with.
|
|
2337
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
2338
|
-
return true;
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
|
-
return false;
|
|
2342
|
-
}
|
|
2343
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
2344
|
-
var displayName = outerType.displayName;
|
|
2345
|
-
if (displayName) {
|
|
2346
|
-
return displayName;
|
|
2347
|
-
}
|
|
2348
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
2349
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
2350
|
-
}
|
|
2351
|
-
function getContextName(type) {
|
|
2352
|
-
return type.displayName || "Context";
|
|
2353
|
-
}
|
|
2354
|
-
function getComponentNameFromType(type) {
|
|
2355
|
-
if (type == null) {
|
|
2356
|
-
return null;
|
|
2357
|
-
}
|
|
2358
|
-
{
|
|
2359
|
-
if (typeof type.tag === "number") {
|
|
2360
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
2361
|
-
}
|
|
2362
|
-
}
|
|
2363
|
-
if (typeof type === "function") {
|
|
2364
|
-
return type.displayName || type.name || null;
|
|
2365
|
-
}
|
|
2366
|
-
if (typeof type === "string") {
|
|
2367
|
-
return type;
|
|
2368
|
-
}
|
|
2369
|
-
switch (type) {
|
|
2370
|
-
case REACT_FRAGMENT_TYPE:
|
|
2371
|
-
return "Fragment";
|
|
2372
|
-
case REACT_PORTAL_TYPE:
|
|
2373
|
-
return "Portal";
|
|
2374
|
-
case REACT_PROFILER_TYPE:
|
|
2375
|
-
return "Profiler";
|
|
2376
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2377
|
-
return "StrictMode";
|
|
2378
|
-
case REACT_SUSPENSE_TYPE:
|
|
2379
|
-
return "Suspense";
|
|
2380
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2381
|
-
return "SuspenseList";
|
|
2382
|
-
}
|
|
2383
|
-
if (typeof type === "object") {
|
|
2384
|
-
switch (type.$$typeof) {
|
|
2385
|
-
case REACT_CONTEXT_TYPE:
|
|
2386
|
-
var context = type;
|
|
2387
|
-
return getContextName(context) + ".Consumer";
|
|
2388
|
-
case REACT_PROVIDER_TYPE:
|
|
2389
|
-
var provider = type;
|
|
2390
|
-
return getContextName(provider._context) + ".Provider";
|
|
2391
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2392
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
2393
|
-
case REACT_MEMO_TYPE:
|
|
2394
|
-
var outerName = type.displayName || null;
|
|
2395
|
-
if (outerName !== null) {
|
|
2396
|
-
return outerName;
|
|
2397
|
-
}
|
|
2398
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
2399
|
-
case REACT_LAZY_TYPE: {
|
|
2400
|
-
var lazyComponent = type;
|
|
2401
|
-
var payload = lazyComponent._payload;
|
|
2402
|
-
var init = lazyComponent._init;
|
|
2403
|
-
try {
|
|
2404
|
-
return getComponentNameFromType(init(payload));
|
|
2405
|
-
} catch (x) {
|
|
2406
|
-
return null;
|
|
2407
|
-
}
|
|
2408
|
-
}
|
|
2409
|
-
}
|
|
2410
|
-
}
|
|
2411
|
-
return null;
|
|
2412
|
-
}
|
|
2413
|
-
var assign = Object.assign;
|
|
2414
|
-
var disabledDepth = 0;
|
|
2415
|
-
var prevLog;
|
|
2416
|
-
var prevInfo;
|
|
2417
|
-
var prevWarn;
|
|
2418
|
-
var prevError;
|
|
2419
|
-
var prevGroup;
|
|
2420
|
-
var prevGroupCollapsed;
|
|
2421
|
-
var prevGroupEnd;
|
|
2422
|
-
function disabledLog() {
|
|
2423
|
-
}
|
|
2424
|
-
disabledLog.__reactDisabledLog = true;
|
|
2425
|
-
function disableLogs() {
|
|
2426
|
-
{
|
|
2427
|
-
if (disabledDepth === 0) {
|
|
2428
|
-
prevLog = console.log;
|
|
2429
|
-
prevInfo = console.info;
|
|
2430
|
-
prevWarn = console.warn;
|
|
2431
|
-
prevError = console.error;
|
|
2432
|
-
prevGroup = console.group;
|
|
2433
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
2434
|
-
prevGroupEnd = console.groupEnd;
|
|
2435
|
-
var props = {
|
|
2436
|
-
configurable: true,
|
|
2437
|
-
enumerable: true,
|
|
2438
|
-
value: disabledLog,
|
|
2439
|
-
writable: true
|
|
2440
|
-
};
|
|
2441
|
-
Object.defineProperties(console, {
|
|
2442
|
-
info: props,
|
|
2443
|
-
log: props,
|
|
2444
|
-
warn: props,
|
|
2445
|
-
error: props,
|
|
2446
|
-
group: props,
|
|
2447
|
-
groupCollapsed: props,
|
|
2448
|
-
groupEnd: props
|
|
2449
|
-
});
|
|
2450
|
-
}
|
|
2451
|
-
disabledDepth++;
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
function reenableLogs() {
|
|
2455
|
-
{
|
|
2456
|
-
disabledDepth--;
|
|
2457
|
-
if (disabledDepth === 0) {
|
|
2458
|
-
var props = {
|
|
2459
|
-
configurable: true,
|
|
2460
|
-
enumerable: true,
|
|
2461
|
-
writable: true
|
|
2462
|
-
};
|
|
2463
|
-
Object.defineProperties(console, {
|
|
2464
|
-
log: assign({}, props, {
|
|
2465
|
-
value: prevLog
|
|
2466
|
-
}),
|
|
2467
|
-
info: assign({}, props, {
|
|
2468
|
-
value: prevInfo
|
|
2469
|
-
}),
|
|
2470
|
-
warn: assign({}, props, {
|
|
2471
|
-
value: prevWarn
|
|
2472
|
-
}),
|
|
2473
|
-
error: assign({}, props, {
|
|
2474
|
-
value: prevError
|
|
2475
|
-
}),
|
|
2476
|
-
group: assign({}, props, {
|
|
2477
|
-
value: prevGroup
|
|
2478
|
-
}),
|
|
2479
|
-
groupCollapsed: assign({}, props, {
|
|
2480
|
-
value: prevGroupCollapsed
|
|
2481
|
-
}),
|
|
2482
|
-
groupEnd: assign({}, props, {
|
|
2483
|
-
value: prevGroupEnd
|
|
2484
|
-
})
|
|
2485
|
-
});
|
|
2486
|
-
}
|
|
2487
|
-
if (disabledDepth < 0) {
|
|
2488
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2489
|
-
}
|
|
2490
|
-
}
|
|
2491
|
-
}
|
|
2492
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2493
|
-
var prefix;
|
|
2494
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
2495
|
-
{
|
|
2496
|
-
if (prefix === void 0) {
|
|
2497
|
-
try {
|
|
2498
|
-
throw Error();
|
|
2499
|
-
} catch (x) {
|
|
2500
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
2501
|
-
prefix = match && match[1] || "";
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2504
|
-
return "\n" + prefix + name;
|
|
2505
|
-
}
|
|
2506
|
-
}
|
|
2507
|
-
var reentry = false;
|
|
2508
|
-
var componentFrameCache;
|
|
2509
|
-
{
|
|
2510
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
2511
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
2512
|
-
}
|
|
2513
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
2514
|
-
if (!fn || reentry) {
|
|
2515
|
-
return "";
|
|
2516
|
-
}
|
|
2517
|
-
{
|
|
2518
|
-
var frame = componentFrameCache.get(fn);
|
|
2519
|
-
if (frame !== void 0) {
|
|
2520
|
-
return frame;
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
var control;
|
|
2524
|
-
reentry = true;
|
|
2525
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2526
|
-
Error.prepareStackTrace = void 0;
|
|
2527
|
-
var previousDispatcher;
|
|
2528
|
-
{
|
|
2529
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
2530
|
-
ReactCurrentDispatcher.current = null;
|
|
2531
|
-
disableLogs();
|
|
2532
|
-
}
|
|
2533
|
-
try {
|
|
2534
|
-
if (construct) {
|
|
2535
|
-
var Fake = function() {
|
|
2536
|
-
throw Error();
|
|
2537
|
-
};
|
|
2538
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
2539
|
-
set: function() {
|
|
2540
|
-
throw Error();
|
|
2541
|
-
}
|
|
2542
|
-
});
|
|
2543
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
2544
|
-
try {
|
|
2545
|
-
Reflect.construct(Fake, []);
|
|
2546
|
-
} catch (x) {
|
|
2547
|
-
control = x;
|
|
2548
|
-
}
|
|
2549
|
-
Reflect.construct(fn, [], Fake);
|
|
2550
|
-
} else {
|
|
2551
|
-
try {
|
|
2552
|
-
Fake.call();
|
|
2553
|
-
} catch (x) {
|
|
2554
|
-
control = x;
|
|
2555
|
-
}
|
|
2556
|
-
fn.call(Fake.prototype);
|
|
2557
|
-
}
|
|
2558
|
-
} else {
|
|
2559
|
-
try {
|
|
2560
|
-
throw Error();
|
|
2561
|
-
} catch (x) {
|
|
2562
|
-
control = x;
|
|
2563
|
-
}
|
|
2564
|
-
fn();
|
|
2565
|
-
}
|
|
2566
|
-
} catch (sample) {
|
|
2567
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
2568
|
-
var sampleLines = sample.stack.split("\n");
|
|
2569
|
-
var controlLines = control.stack.split("\n");
|
|
2570
|
-
var s = sampleLines.length - 1;
|
|
2571
|
-
var c = controlLines.length - 1;
|
|
2572
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
2573
|
-
c--;
|
|
2574
|
-
}
|
|
2575
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
2576
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
2577
|
-
if (s !== 1 || c !== 1) {
|
|
2578
|
-
do {
|
|
2579
|
-
s--;
|
|
2580
|
-
c--;
|
|
2581
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
2582
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
2583
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
2584
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
2585
|
-
}
|
|
2586
|
-
{
|
|
2587
|
-
if (typeof fn === "function") {
|
|
2588
|
-
componentFrameCache.set(fn, _frame);
|
|
2589
|
-
}
|
|
2590
|
-
}
|
|
2591
|
-
return _frame;
|
|
2592
|
-
}
|
|
2593
|
-
} while (s >= 1 && c >= 0);
|
|
2594
|
-
}
|
|
2595
|
-
break;
|
|
2596
|
-
}
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
|
-
} finally {
|
|
2600
|
-
reentry = false;
|
|
2601
|
-
{
|
|
2602
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
2603
|
-
reenableLogs();
|
|
2604
|
-
}
|
|
2605
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
2606
|
-
}
|
|
2607
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
2608
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
2609
|
-
{
|
|
2610
|
-
if (typeof fn === "function") {
|
|
2611
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
2614
|
-
return syntheticFrame;
|
|
2615
|
-
}
|
|
2616
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
2617
|
-
{
|
|
2618
|
-
return describeNativeComponentFrame(fn, false);
|
|
2619
|
-
}
|
|
2620
|
-
}
|
|
2621
|
-
function shouldConstruct(Component) {
|
|
2622
|
-
var prototype = Component.prototype;
|
|
2623
|
-
return !!(prototype && prototype.isReactComponent);
|
|
2624
|
-
}
|
|
2625
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
2626
|
-
if (type == null) {
|
|
2627
|
-
return "";
|
|
2628
|
-
}
|
|
2629
|
-
if (typeof type === "function") {
|
|
2630
|
-
{
|
|
2631
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
if (typeof type === "string") {
|
|
2635
|
-
return describeBuiltInComponentFrame(type);
|
|
2636
|
-
}
|
|
2637
|
-
switch (type) {
|
|
2638
|
-
case REACT_SUSPENSE_TYPE:
|
|
2639
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
2640
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2641
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
2642
|
-
}
|
|
2643
|
-
if (typeof type === "object") {
|
|
2644
|
-
switch (type.$$typeof) {
|
|
2645
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2646
|
-
return describeFunctionComponentFrame(type.render);
|
|
2647
|
-
case REACT_MEMO_TYPE:
|
|
2648
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
2649
|
-
case REACT_LAZY_TYPE: {
|
|
2650
|
-
var lazyComponent = type;
|
|
2651
|
-
var payload = lazyComponent._payload;
|
|
2652
|
-
var init = lazyComponent._init;
|
|
2653
|
-
try {
|
|
2654
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
2655
|
-
} catch (x) {
|
|
2656
|
-
}
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2660
|
-
return "";
|
|
2661
|
-
}
|
|
2662
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2663
|
-
var loggedTypeFailures = {};
|
|
2664
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2665
|
-
function setCurrentlyValidatingElement(element) {
|
|
2666
|
-
{
|
|
2667
|
-
if (element) {
|
|
2668
|
-
var owner = element._owner;
|
|
2669
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2670
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
2671
|
-
} else {
|
|
2672
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
2673
|
-
}
|
|
2674
|
-
}
|
|
2675
|
-
}
|
|
2676
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2677
|
-
{
|
|
2678
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
2679
|
-
for (var typeSpecName in typeSpecs) {
|
|
2680
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
2681
|
-
var error$1 = void 0;
|
|
2682
|
-
try {
|
|
2683
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
2684
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2685
|
-
err.name = "Invariant Violation";
|
|
2686
|
-
throw err;
|
|
2687
|
-
}
|
|
2688
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2689
|
-
} catch (ex) {
|
|
2690
|
-
error$1 = ex;
|
|
2691
|
-
}
|
|
2692
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
2693
|
-
setCurrentlyValidatingElement(element);
|
|
2694
|
-
error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
2695
|
-
setCurrentlyValidatingElement(null);
|
|
2696
|
-
}
|
|
2697
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
2698
|
-
loggedTypeFailures[error$1.message] = true;
|
|
2699
|
-
setCurrentlyValidatingElement(element);
|
|
2700
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
2701
|
-
setCurrentlyValidatingElement(null);
|
|
2702
|
-
}
|
|
2703
|
-
}
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
}
|
|
2707
|
-
var isArrayImpl = Array.isArray;
|
|
2708
|
-
function isArray(a) {
|
|
2709
|
-
return isArrayImpl(a);
|
|
2710
|
-
}
|
|
2711
|
-
function typeName(value) {
|
|
2712
|
-
{
|
|
2713
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
2714
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
2715
|
-
return type;
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
function willCoercionThrow(value) {
|
|
2719
|
-
{
|
|
2720
|
-
try {
|
|
2721
|
-
testStringCoercion(value);
|
|
2722
|
-
return false;
|
|
2723
|
-
} catch (e) {
|
|
2724
|
-
return true;
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
}
|
|
2728
|
-
function testStringCoercion(value) {
|
|
2729
|
-
return "" + value;
|
|
2730
|
-
}
|
|
2731
|
-
function checkKeyStringCoercion(value) {
|
|
2732
|
-
{
|
|
2733
|
-
if (willCoercionThrow(value)) {
|
|
2734
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
2735
|
-
return testStringCoercion(value);
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
2740
|
-
var RESERVED_PROPS = {
|
|
2741
|
-
key: true,
|
|
2742
|
-
ref: true,
|
|
2743
|
-
__self: true,
|
|
2744
|
-
__source: true
|
|
2745
|
-
};
|
|
2746
|
-
var specialPropKeyWarningShown;
|
|
2747
|
-
var specialPropRefWarningShown;
|
|
2748
|
-
var didWarnAboutStringRefs;
|
|
2749
|
-
{
|
|
2750
|
-
didWarnAboutStringRefs = {};
|
|
2751
|
-
}
|
|
2752
|
-
function hasValidRef(config) {
|
|
2753
|
-
{
|
|
2754
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
2755
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
2756
|
-
if (getter && getter.isReactWarning) {
|
|
2757
|
-
return false;
|
|
2758
|
-
}
|
|
2759
|
-
}
|
|
2760
|
-
}
|
|
2761
|
-
return config.ref !== void 0;
|
|
2762
|
-
}
|
|
2763
|
-
function hasValidKey(config) {
|
|
2764
|
-
{
|
|
2765
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
2766
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2767
|
-
if (getter && getter.isReactWarning) {
|
|
2768
|
-
return false;
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
return config.key !== void 0;
|
|
2773
|
-
}
|
|
2774
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
2775
|
-
{
|
|
2776
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
2777
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
2778
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
2779
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
2780
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
2781
|
-
}
|
|
2782
|
-
}
|
|
2783
|
-
}
|
|
2784
|
-
}
|
|
2785
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
2786
|
-
{
|
|
2787
|
-
var warnAboutAccessingKey = function() {
|
|
2788
|
-
if (!specialPropKeyWarningShown) {
|
|
2789
|
-
specialPropKeyWarningShown = true;
|
|
2790
|
-
error("%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)", displayName);
|
|
2791
|
-
}
|
|
2792
|
-
};
|
|
2793
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
2794
|
-
Object.defineProperty(props, "key", {
|
|
2795
|
-
get: warnAboutAccessingKey,
|
|
2796
|
-
configurable: true
|
|
2797
|
-
});
|
|
2798
|
-
}
|
|
2799
|
-
}
|
|
2800
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
2801
|
-
{
|
|
2802
|
-
var warnAboutAccessingRef = function() {
|
|
2803
|
-
if (!specialPropRefWarningShown) {
|
|
2804
|
-
specialPropRefWarningShown = true;
|
|
2805
|
-
error("%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)", displayName);
|
|
2806
|
-
}
|
|
2807
|
-
};
|
|
2808
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
2809
|
-
Object.defineProperty(props, "ref", {
|
|
2810
|
-
get: warnAboutAccessingRef,
|
|
2811
|
-
configurable: true
|
|
2812
|
-
});
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
2816
|
-
var element = {
|
|
2817
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
2818
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
2819
|
-
// Built-in properties that belong on the element
|
|
2820
|
-
type,
|
|
2821
|
-
key,
|
|
2822
|
-
ref,
|
|
2823
|
-
props,
|
|
2824
|
-
// Record the component responsible for creating this element.
|
|
2825
|
-
_owner: owner
|
|
2826
|
-
};
|
|
2827
|
-
{
|
|
2828
|
-
element._store = {};
|
|
2829
|
-
Object.defineProperty(element._store, "validated", {
|
|
2830
|
-
configurable: false,
|
|
2831
|
-
enumerable: false,
|
|
2832
|
-
writable: true,
|
|
2833
|
-
value: false
|
|
2834
|
-
});
|
|
2835
|
-
Object.defineProperty(element, "_self", {
|
|
2836
|
-
configurable: false,
|
|
2837
|
-
enumerable: false,
|
|
2838
|
-
writable: false,
|
|
2839
|
-
value: self
|
|
2840
|
-
});
|
|
2841
|
-
Object.defineProperty(element, "_source", {
|
|
2842
|
-
configurable: false,
|
|
2843
|
-
enumerable: false,
|
|
2844
|
-
writable: false,
|
|
2845
|
-
value: source
|
|
2846
|
-
});
|
|
2847
|
-
if (Object.freeze) {
|
|
2848
|
-
Object.freeze(element.props);
|
|
2849
|
-
Object.freeze(element);
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
return element;
|
|
2853
|
-
};
|
|
2854
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
2855
|
-
{
|
|
2856
|
-
var propName;
|
|
2857
|
-
var props = {};
|
|
2858
|
-
var key = null;
|
|
2859
|
-
var ref = null;
|
|
2860
|
-
if (maybeKey !== void 0) {
|
|
2861
|
-
{
|
|
2862
|
-
checkKeyStringCoercion(maybeKey);
|
|
2863
|
-
}
|
|
2864
|
-
key = "" + maybeKey;
|
|
2865
|
-
}
|
|
2866
|
-
if (hasValidKey(config)) {
|
|
2867
|
-
{
|
|
2868
|
-
checkKeyStringCoercion(config.key);
|
|
2869
|
-
}
|
|
2870
|
-
key = "" + config.key;
|
|
2871
|
-
}
|
|
2872
|
-
if (hasValidRef(config)) {
|
|
2873
|
-
ref = config.ref;
|
|
2874
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
2875
|
-
}
|
|
2876
|
-
for (propName in config) {
|
|
2877
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
2878
|
-
props[propName] = config[propName];
|
|
2879
|
-
}
|
|
2880
|
-
}
|
|
2881
|
-
if (type && type.defaultProps) {
|
|
2882
|
-
var defaultProps = type.defaultProps;
|
|
2883
|
-
for (propName in defaultProps) {
|
|
2884
|
-
if (props[propName] === void 0) {
|
|
2885
|
-
props[propName] = defaultProps[propName];
|
|
2886
|
-
}
|
|
2887
|
-
}
|
|
2888
|
-
}
|
|
2889
|
-
if (key || ref) {
|
|
2890
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
2891
|
-
if (key) {
|
|
2892
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
2893
|
-
}
|
|
2894
|
-
if (ref) {
|
|
2895
|
-
defineRefPropWarningGetter(props, displayName);
|
|
2896
|
-
}
|
|
2897
|
-
}
|
|
2898
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
2902
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2903
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
2904
|
-
{
|
|
2905
|
-
if (element) {
|
|
2906
|
-
var owner = element._owner;
|
|
2907
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2908
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
2909
|
-
} else {
|
|
2910
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
2911
|
-
}
|
|
2912
|
-
}
|
|
2913
|
-
}
|
|
2914
|
-
var propTypesMisspellWarningShown;
|
|
2915
|
-
{
|
|
2916
|
-
propTypesMisspellWarningShown = false;
|
|
2917
|
-
}
|
|
2918
|
-
function isValidElement(object) {
|
|
2919
|
-
{
|
|
2920
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2921
|
-
}
|
|
2922
|
-
}
|
|
2923
|
-
function getDeclarationErrorAddendum() {
|
|
2924
|
-
{
|
|
2925
|
-
if (ReactCurrentOwner$1.current) {
|
|
2926
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
2927
|
-
if (name) {
|
|
2928
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
|
-
return "";
|
|
2932
|
-
}
|
|
2933
|
-
}
|
|
2934
|
-
function getSourceInfoErrorAddendum(source) {
|
|
2935
|
-
{
|
|
2936
|
-
if (source !== void 0) {
|
|
2937
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
2938
|
-
var lineNumber = source.lineNumber;
|
|
2939
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
2940
|
-
}
|
|
2941
|
-
return "";
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
var ownerHasKeyUseWarning = {};
|
|
2945
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
2946
|
-
{
|
|
2947
|
-
var info = getDeclarationErrorAddendum();
|
|
2948
|
-
if (!info) {
|
|
2949
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
2950
|
-
if (parentName) {
|
|
2951
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
2952
|
-
}
|
|
2953
|
-
}
|
|
2954
|
-
return info;
|
|
2955
|
-
}
|
|
2956
|
-
}
|
|
2957
|
-
function validateExplicitKey(element, parentType) {
|
|
2958
|
-
{
|
|
2959
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
2960
|
-
return;
|
|
2961
|
-
}
|
|
2962
|
-
element._store.validated = true;
|
|
2963
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
2964
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
2965
|
-
return;
|
|
2966
|
-
}
|
|
2967
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
2968
|
-
var childOwner = "";
|
|
2969
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
2970
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
2971
|
-
}
|
|
2972
|
-
setCurrentlyValidatingElement$1(element);
|
|
2973
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
2974
|
-
setCurrentlyValidatingElement$1(null);
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
2977
|
-
function validateChildKeys(node, parentType) {
|
|
2978
|
-
{
|
|
2979
|
-
if (typeof node !== "object") {
|
|
2980
|
-
return;
|
|
2981
|
-
}
|
|
2982
|
-
if (isArray(node)) {
|
|
2983
|
-
for (var i = 0; i < node.length; i++) {
|
|
2984
|
-
var child = node[i];
|
|
2985
|
-
if (isValidElement(child)) {
|
|
2986
|
-
validateExplicitKey(child, parentType);
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
} else if (isValidElement(node)) {
|
|
2990
|
-
if (node._store) {
|
|
2991
|
-
node._store.validated = true;
|
|
2992
|
-
}
|
|
2993
|
-
} else if (node) {
|
|
2994
|
-
var iteratorFn = getIteratorFn(node);
|
|
2995
|
-
if (typeof iteratorFn === "function") {
|
|
2996
|
-
if (iteratorFn !== node.entries) {
|
|
2997
|
-
var iterator = iteratorFn.call(node);
|
|
2998
|
-
var step;
|
|
2999
|
-
while (!(step = iterator.next()).done) {
|
|
3000
|
-
if (isValidElement(step.value)) {
|
|
3001
|
-
validateExplicitKey(step.value, parentType);
|
|
3002
|
-
}
|
|
3003
|
-
}
|
|
3004
|
-
}
|
|
3005
|
-
}
|
|
3006
|
-
}
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
function validatePropTypes(element) {
|
|
3010
|
-
{
|
|
3011
|
-
var type = element.type;
|
|
3012
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
3013
|
-
return;
|
|
3014
|
-
}
|
|
3015
|
-
var propTypes;
|
|
3016
|
-
if (typeof type === "function") {
|
|
3017
|
-
propTypes = type.propTypes;
|
|
3018
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
3019
|
-
// Inner props are checked in the reconciler.
|
|
3020
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
3021
|
-
propTypes = type.propTypes;
|
|
3022
|
-
} else {
|
|
3023
|
-
return;
|
|
3024
|
-
}
|
|
3025
|
-
if (propTypes) {
|
|
3026
|
-
var name = getComponentNameFromType(type);
|
|
3027
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
3028
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
3029
|
-
propTypesMisspellWarningShown = true;
|
|
3030
|
-
var _name = getComponentNameFromType(type);
|
|
3031
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
3032
|
-
}
|
|
3033
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
3034
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3035
|
-
}
|
|
3036
|
-
}
|
|
3037
|
-
}
|
|
3038
|
-
function validateFragmentProps(fragment) {
|
|
3039
|
-
{
|
|
3040
|
-
var keys = Object.keys(fragment.props);
|
|
3041
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3042
|
-
var key = keys[i];
|
|
3043
|
-
if (key !== "children" && key !== "key") {
|
|
3044
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3045
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
3046
|
-
setCurrentlyValidatingElement$1(null);
|
|
3047
|
-
break;
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
if (fragment.ref !== null) {
|
|
3051
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3052
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
3053
|
-
setCurrentlyValidatingElement$1(null);
|
|
3054
|
-
}
|
|
3055
|
-
}
|
|
3056
|
-
}
|
|
3057
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
3058
|
-
{
|
|
3059
|
-
var validType = isValidElementType(type);
|
|
3060
|
-
if (!validType) {
|
|
3061
|
-
var info = "";
|
|
3062
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
3063
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
3064
|
-
}
|
|
3065
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
3066
|
-
if (sourceInfo) {
|
|
3067
|
-
info += sourceInfo;
|
|
3068
|
-
} else {
|
|
3069
|
-
info += getDeclarationErrorAddendum();
|
|
3070
|
-
}
|
|
3071
|
-
var typeString;
|
|
3072
|
-
if (type === null) {
|
|
3073
|
-
typeString = "null";
|
|
3074
|
-
} else if (isArray(type)) {
|
|
3075
|
-
typeString = "array";
|
|
3076
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
3077
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
3078
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
3079
|
-
} else {
|
|
3080
|
-
typeString = typeof type;
|
|
3081
|
-
}
|
|
3082
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
3083
|
-
}
|
|
3084
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
3085
|
-
if (element == null) {
|
|
3086
|
-
return element;
|
|
3087
|
-
}
|
|
3088
|
-
if (validType) {
|
|
3089
|
-
var children = props.children;
|
|
3090
|
-
if (children !== void 0) {
|
|
3091
|
-
if (isStaticChildren) {
|
|
3092
|
-
if (isArray(children)) {
|
|
3093
|
-
for (var i = 0; i < children.length; i++) {
|
|
3094
|
-
validateChildKeys(children[i], type);
|
|
3095
|
-
}
|
|
3096
|
-
if (Object.freeze) {
|
|
3097
|
-
Object.freeze(children);
|
|
3098
|
-
}
|
|
3099
|
-
} else {
|
|
3100
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
3101
|
-
}
|
|
3102
|
-
} else {
|
|
3103
|
-
validateChildKeys(children, type);
|
|
3104
|
-
}
|
|
3105
|
-
}
|
|
3106
|
-
}
|
|
3107
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
3108
|
-
validateFragmentProps(element);
|
|
3109
|
-
} else {
|
|
3110
|
-
validatePropTypes(element);
|
|
3111
|
-
}
|
|
3112
|
-
return element;
|
|
3113
|
-
}
|
|
3114
|
-
}
|
|
3115
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
3116
|
-
{
|
|
3117
|
-
return jsxWithValidation(type, props, key, true);
|
|
3118
|
-
}
|
|
3119
|
-
}
|
|
3120
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
3121
|
-
{
|
|
3122
|
-
return jsxWithValidation(type, props, key, false);
|
|
3123
|
-
}
|
|
3124
|
-
}
|
|
3125
|
-
var jsx2 = jsxWithValidationDynamic;
|
|
3126
|
-
var jsxs = jsxWithValidationStatic;
|
|
3127
|
-
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
3128
|
-
exports2.jsx = jsx2;
|
|
3129
|
-
exports2.jsxs = jsxs;
|
|
3130
|
-
})();
|
|
3131
|
-
}
|
|
1680
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1681
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1682
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
1683
|
+
isStaticChildren,
|
|
1684
|
+
children,
|
|
1685
|
+
keys,
|
|
1686
|
+
children
|
|
1687
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1688
|
+
}
|
|
1689
|
+
children = null;
|
|
1690
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1691
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1692
|
+
if ("key" in config) {
|
|
1693
|
+
maybeKey = {};
|
|
1694
|
+
for (var propName in config)
|
|
1695
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1696
|
+
} else
|
|
1697
|
+
maybeKey = config;
|
|
1698
|
+
children && defineKeyPropWarningGetter(
|
|
1699
|
+
maybeKey,
|
|
1700
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1701
|
+
);
|
|
1702
|
+
return ReactElement(
|
|
1703
|
+
type,
|
|
1704
|
+
children,
|
|
1705
|
+
self,
|
|
1706
|
+
source,
|
|
1707
|
+
getOwner(),
|
|
1708
|
+
maybeKey,
|
|
1709
|
+
debugStack,
|
|
1710
|
+
debugTask
|
|
1711
|
+
);
|
|
1712
|
+
}
|
|
1713
|
+
function validateChildKeys(node) {
|
|
1714
|
+
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
1715
|
+
}
|
|
1716
|
+
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1717
|
+
Symbol.for("react.provider");
|
|
1718
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1719
|
+
return null;
|
|
1720
|
+
};
|
|
1721
|
+
React = {
|
|
1722
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
1723
|
+
return callStackForError();
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
var specialPropKeyWarningShown;
|
|
1727
|
+
var didWarnAboutElementRef = {};
|
|
1728
|
+
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
1729
|
+
React,
|
|
1730
|
+
UnknownOwner
|
|
1731
|
+
)();
|
|
1732
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1733
|
+
var didWarnAboutKeySpread = {};
|
|
1734
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
1735
|
+
exports2.jsx = function(type, config, maybeKey, source, self) {
|
|
1736
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1737
|
+
return jsxDEVImpl(
|
|
1738
|
+
type,
|
|
1739
|
+
config,
|
|
1740
|
+
maybeKey,
|
|
1741
|
+
false,
|
|
1742
|
+
source,
|
|
1743
|
+
self,
|
|
1744
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1745
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1746
|
+
);
|
|
1747
|
+
};
|
|
1748
|
+
exports2.jsxs = function(type, config, maybeKey, source, self) {
|
|
1749
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1750
|
+
return jsxDEVImpl(
|
|
1751
|
+
type,
|
|
1752
|
+
config,
|
|
1753
|
+
maybeKey,
|
|
1754
|
+
true,
|
|
1755
|
+
source,
|
|
1756
|
+
self,
|
|
1757
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1758
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1759
|
+
);
|
|
1760
|
+
};
|
|
1761
|
+
}();
|
|
3132
1762
|
}
|
|
3133
1763
|
});
|
|
3134
1764
|
|
|
@@ -3137,7 +1767,7 @@ var require_jsx_runtime = __commonJS({
|
|
|
3137
1767
|
"node_modules/react/jsx-runtime.js"(exports2, module2) {
|
|
3138
1768
|
"use strict";
|
|
3139
1769
|
if (process.env.NODE_ENV === "production") {
|
|
3140
|
-
module2.exports =
|
|
1770
|
+
module2.exports = require_react_jsx_runtime_production();
|
|
3141
1771
|
} else {
|
|
3142
1772
|
module2.exports = require_react_jsx_runtime_development();
|
|
3143
1773
|
}
|
|
@@ -3248,12 +1878,12 @@ function renderIsland(island, renderOpts = {}) {
|
|
|
3248
1878
|
});
|
|
3249
1879
|
/*! Bundled license information:
|
|
3250
1880
|
|
|
3251
|
-
react/cjs/react.production.
|
|
1881
|
+
react/cjs/react.production.js:
|
|
3252
1882
|
(**
|
|
3253
1883
|
* @license React
|
|
3254
|
-
* react.production.
|
|
1884
|
+
* react.production.js
|
|
3255
1885
|
*
|
|
3256
|
-
* Copyright (c)
|
|
1886
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3257
1887
|
*
|
|
3258
1888
|
* This source code is licensed under the MIT license found in the
|
|
3259
1889
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3264,18 +1894,18 @@ react/cjs/react.development.js:
|
|
|
3264
1894
|
* @license React
|
|
3265
1895
|
* react.development.js
|
|
3266
1896
|
*
|
|
3267
|
-
* Copyright (c)
|
|
1897
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3268
1898
|
*
|
|
3269
1899
|
* This source code is licensed under the MIT license found in the
|
|
3270
1900
|
* LICENSE file in the root directory of this source tree.
|
|
3271
1901
|
*)
|
|
3272
1902
|
|
|
3273
|
-
react/cjs/react-jsx-runtime.production.
|
|
1903
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
3274
1904
|
(**
|
|
3275
1905
|
* @license React
|
|
3276
|
-
* react-jsx-runtime.production.
|
|
1906
|
+
* react-jsx-runtime.production.js
|
|
3277
1907
|
*
|
|
3278
|
-
* Copyright (c)
|
|
1908
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3279
1909
|
*
|
|
3280
1910
|
* This source code is licensed under the MIT license found in the
|
|
3281
1911
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3286,7 +1916,7 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
3286
1916
|
* @license React
|
|
3287
1917
|
* react-jsx-runtime.development.js
|
|
3288
1918
|
*
|
|
3289
|
-
* Copyright (c)
|
|
1919
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3290
1920
|
*
|
|
3291
1921
|
* This source code is licensed under the MIT license found in the
|
|
3292
1922
|
* LICENSE file in the root directory of this source tree.
|