@wrdagency/react-islands 0.1.0 → 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/README.md +13 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1624 -2993
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1623 -2993
- 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 +17 -5
- package/src/index.tsx +4 -2
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -10
package/dist/server.mjs
CHANGED
|
@@ -44,300 +44,488 @@ var __async = (__this, __arguments, generator) => {
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
// node_modules/react/cjs/react.production.
|
|
48
|
-
var
|
|
49
|
-
"node_modules/react/cjs/react.production.
|
|
47
|
+
// node_modules/react/cjs/react-jsx-runtime.production.js
|
|
48
|
+
var require_react_jsx_runtime_production = __commonJS({
|
|
49
|
+
"node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
50
50
|
"use strict";
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
52
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
53
|
+
function jsxProd(type, config, maybeKey) {
|
|
54
|
+
var key = null;
|
|
55
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
56
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
57
|
+
if ("key" in config) {
|
|
58
|
+
maybeKey = {};
|
|
59
|
+
for (var propName in config)
|
|
60
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
61
|
+
} else
|
|
62
|
+
maybeKey = config;
|
|
63
|
+
config = maybeKey.ref;
|
|
64
|
+
return {
|
|
65
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
66
|
+
type,
|
|
67
|
+
key,
|
|
68
|
+
ref: void 0 !== config ? config : null,
|
|
69
|
+
props: maybeKey
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
73
|
+
exports.jsx = jsxProd;
|
|
74
|
+
exports.jsxs = jsxProd;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
// node_modules/react/cjs/react.production.js
|
|
79
|
+
var require_react_production = __commonJS({
|
|
80
|
+
"node_modules/react/cjs/react.production.js"(exports) {
|
|
81
|
+
"use strict";
|
|
82
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
83
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
84
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
85
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
86
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
87
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
88
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
89
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
90
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
91
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
92
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
93
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
94
|
+
function getIteratorFn(maybeIterable) {
|
|
95
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
65
96
|
return null;
|
|
66
|
-
|
|
67
|
-
return "function" === typeof
|
|
97
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
98
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
68
99
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
100
|
+
var ReactNoopUpdateQueue = {
|
|
101
|
+
isMounted: function() {
|
|
102
|
+
return false;
|
|
103
|
+
},
|
|
104
|
+
enqueueForceUpdate: function() {
|
|
105
|
+
},
|
|
106
|
+
enqueueReplaceState: function() {
|
|
107
|
+
},
|
|
108
|
+
enqueueSetState: function() {
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
var assign = Object.assign;
|
|
112
|
+
var emptyObject = {};
|
|
113
|
+
function Component(props, context, updater) {
|
|
114
|
+
this.props = props;
|
|
115
|
+
this.context = context;
|
|
116
|
+
this.refs = emptyObject;
|
|
117
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
82
118
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if ("object" !== typeof
|
|
86
|
-
throw Error(
|
|
87
|
-
|
|
119
|
+
Component.prototype.isReactComponent = {};
|
|
120
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
121
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
122
|
+
throw Error(
|
|
123
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
124
|
+
);
|
|
125
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
88
126
|
};
|
|
89
|
-
|
|
90
|
-
this.updater.enqueueForceUpdate(this,
|
|
127
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
128
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
91
129
|
};
|
|
92
|
-
function
|
|
130
|
+
function ComponentDummy() {
|
|
93
131
|
}
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
this.props =
|
|
97
|
-
this.context =
|
|
98
|
-
this.refs =
|
|
99
|
-
this.updater =
|
|
132
|
+
ComponentDummy.prototype = Component.prototype;
|
|
133
|
+
function PureComponent(props, context, updater) {
|
|
134
|
+
this.props = props;
|
|
135
|
+
this.context = context;
|
|
136
|
+
this.refs = emptyObject;
|
|
137
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
100
138
|
}
|
|
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 };
|
|
139
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
140
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
141
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
142
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
143
|
+
var isArrayImpl = Array.isArray;
|
|
144
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
145
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
146
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
147
|
+
self = props.ref;
|
|
148
|
+
return {
|
|
149
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
150
|
+
type,
|
|
151
|
+
key,
|
|
152
|
+
ref: void 0 !== self ? self : null,
|
|
153
|
+
props
|
|
154
|
+
};
|
|
126
155
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
156
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
157
|
+
return ReactElement(
|
|
158
|
+
oldElement.type,
|
|
159
|
+
newKey,
|
|
160
|
+
void 0,
|
|
161
|
+
void 0,
|
|
162
|
+
void 0,
|
|
163
|
+
oldElement.props
|
|
164
|
+
);
|
|
129
165
|
}
|
|
130
|
-
function
|
|
131
|
-
return "object" === typeof
|
|
166
|
+
function isValidElement(object) {
|
|
167
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
132
168
|
}
|
|
133
|
-
function escape(
|
|
134
|
-
var
|
|
135
|
-
return "$" +
|
|
136
|
-
return
|
|
169
|
+
function escape(key) {
|
|
170
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
171
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
172
|
+
return escaperLookup[match];
|
|
137
173
|
});
|
|
138
174
|
}
|
|
139
|
-
var
|
|
140
|
-
function
|
|
141
|
-
return "object" === typeof
|
|
175
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
176
|
+
function getElementKey(element, index) {
|
|
177
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
142
178
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
179
|
+
function noop$1() {
|
|
180
|
+
}
|
|
181
|
+
function resolveThenable(thenable) {
|
|
182
|
+
switch (thenable.status) {
|
|
183
|
+
case "fulfilled":
|
|
184
|
+
return thenable.value;
|
|
185
|
+
case "rejected":
|
|
186
|
+
throw thenable.reason;
|
|
187
|
+
default:
|
|
188
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
189
|
+
function(fulfilledValue) {
|
|
190
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
191
|
+
},
|
|
192
|
+
function(error) {
|
|
193
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
194
|
+
}
|
|
195
|
+
)), thenable.status) {
|
|
196
|
+
case "fulfilled":
|
|
197
|
+
return thenable.value;
|
|
198
|
+
case "rejected":
|
|
199
|
+
throw thenable.reason;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
throw thenable;
|
|
203
|
+
}
|
|
204
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
205
|
+
var type = typeof children;
|
|
206
|
+
if ("undefined" === type || "boolean" === type)
|
|
207
|
+
children = null;
|
|
208
|
+
var invokeCallback = false;
|
|
209
|
+
if (null === children)
|
|
210
|
+
invokeCallback = true;
|
|
150
211
|
else
|
|
151
|
-
switch (
|
|
212
|
+
switch (type) {
|
|
213
|
+
case "bigint":
|
|
152
214
|
case "string":
|
|
153
215
|
case "number":
|
|
154
|
-
|
|
216
|
+
invokeCallback = true;
|
|
155
217
|
break;
|
|
156
218
|
case "object":
|
|
157
|
-
switch (
|
|
158
|
-
case
|
|
159
|
-
case
|
|
160
|
-
|
|
219
|
+
switch (children.$$typeof) {
|
|
220
|
+
case REACT_ELEMENT_TYPE:
|
|
221
|
+
case REACT_PORTAL_TYPE:
|
|
222
|
+
invokeCallback = true;
|
|
223
|
+
break;
|
|
224
|
+
case REACT_LAZY_TYPE:
|
|
225
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
226
|
+
invokeCallback(children._payload),
|
|
227
|
+
array,
|
|
228
|
+
escapedPrefix,
|
|
229
|
+
nameSoFar,
|
|
230
|
+
callback
|
|
231
|
+
);
|
|
161
232
|
}
|
|
162
233
|
}
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
165
|
-
return
|
|
166
|
-
})) : null !=
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
234
|
+
if (invokeCallback)
|
|
235
|
+
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) {
|
|
236
|
+
return c;
|
|
237
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
238
|
+
callback,
|
|
239
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
240
|
+
userProvidedKeyEscapeRegex,
|
|
241
|
+
"$&/"
|
|
242
|
+
) + "/") + invokeCallback
|
|
243
|
+
)), array.push(callback)), 1;
|
|
244
|
+
invokeCallback = 0;
|
|
245
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
246
|
+
if (isArrayImpl(children))
|
|
247
|
+
for (var i = 0; i < children.length; i++)
|
|
248
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
249
|
+
nameSoFar,
|
|
250
|
+
array,
|
|
251
|
+
escapedPrefix,
|
|
252
|
+
type,
|
|
253
|
+
callback
|
|
254
|
+
);
|
|
255
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
256
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
257
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
258
|
+
nameSoFar,
|
|
259
|
+
array,
|
|
260
|
+
escapedPrefix,
|
|
261
|
+
type,
|
|
262
|
+
callback
|
|
263
|
+
);
|
|
264
|
+
else if ("object" === type) {
|
|
265
|
+
if ("function" === typeof children.then)
|
|
266
|
+
return mapIntoArray(
|
|
267
|
+
resolveThenable(children),
|
|
268
|
+
array,
|
|
269
|
+
escapedPrefix,
|
|
270
|
+
nameSoFar,
|
|
271
|
+
callback
|
|
272
|
+
);
|
|
273
|
+
array = String(children);
|
|
274
|
+
throw Error(
|
|
275
|
+
"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."
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
return invokeCallback;
|
|
181
279
|
}
|
|
182
|
-
function
|
|
183
|
-
if (null ==
|
|
184
|
-
return
|
|
185
|
-
var
|
|
186
|
-
|
|
187
|
-
return
|
|
280
|
+
function mapChildren(children, func, context) {
|
|
281
|
+
if (null == children)
|
|
282
|
+
return children;
|
|
283
|
+
var result = [], count = 0;
|
|
284
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
285
|
+
return func.call(context, child, count++);
|
|
188
286
|
});
|
|
189
|
-
return
|
|
287
|
+
return result;
|
|
288
|
+
}
|
|
289
|
+
function lazyInitializer(payload) {
|
|
290
|
+
if (-1 === payload._status) {
|
|
291
|
+
var ctor = payload._result;
|
|
292
|
+
ctor = ctor();
|
|
293
|
+
ctor.then(
|
|
294
|
+
function(moduleObject) {
|
|
295
|
+
if (0 === payload._status || -1 === payload._status)
|
|
296
|
+
payload._status = 1, payload._result = moduleObject;
|
|
297
|
+
},
|
|
298
|
+
function(error) {
|
|
299
|
+
if (0 === payload._status || -1 === payload._status)
|
|
300
|
+
payload._status = 2, payload._result = error;
|
|
301
|
+
}
|
|
302
|
+
);
|
|
303
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
304
|
+
}
|
|
305
|
+
if (1 === payload._status)
|
|
306
|
+
return payload._result.default;
|
|
307
|
+
throw payload._result;
|
|
190
308
|
}
|
|
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;
|
|
309
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
310
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
311
|
+
var event = new window.ErrorEvent("error", {
|
|
312
|
+
bubbles: true,
|
|
313
|
+
cancelable: true,
|
|
314
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
315
|
+
error
|
|
201
316
|
});
|
|
202
|
-
|
|
317
|
+
if (!window.dispatchEvent(event))
|
|
318
|
+
return;
|
|
319
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
320
|
+
process.emit("uncaughtException", error);
|
|
321
|
+
return;
|
|
203
322
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
323
|
+
console.error(error);
|
|
324
|
+
};
|
|
325
|
+
function noop() {
|
|
207
326
|
}
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
327
|
+
exports.Children = {
|
|
328
|
+
map: mapChildren,
|
|
329
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
330
|
+
mapChildren(
|
|
331
|
+
children,
|
|
332
|
+
function() {
|
|
333
|
+
forEachFunc.apply(this, arguments);
|
|
334
|
+
},
|
|
335
|
+
forEachContext
|
|
336
|
+
);
|
|
337
|
+
},
|
|
338
|
+
count: function(children) {
|
|
339
|
+
var n = 0;
|
|
340
|
+
mapChildren(children, function() {
|
|
341
|
+
n++;
|
|
342
|
+
});
|
|
343
|
+
return n;
|
|
344
|
+
},
|
|
345
|
+
toArray: function(children) {
|
|
346
|
+
return mapChildren(children, function(child) {
|
|
347
|
+
return child;
|
|
348
|
+
}) || [];
|
|
349
|
+
},
|
|
350
|
+
only: function(children) {
|
|
351
|
+
if (!isValidElement(children))
|
|
352
|
+
throw Error(
|
|
353
|
+
"React.Children.only expected to receive a single React element child."
|
|
354
|
+
);
|
|
355
|
+
return children;
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
exports.Component = Component;
|
|
359
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
360
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
361
|
+
exports.PureComponent = PureComponent;
|
|
362
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
363
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
364
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
365
|
+
exports.__COMPILER_RUNTIME = {
|
|
366
|
+
__proto__: null,
|
|
367
|
+
c: function(size) {
|
|
368
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
248
369
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
370
|
+
};
|
|
371
|
+
exports.cache = function(fn) {
|
|
372
|
+
return function() {
|
|
373
|
+
return fn.apply(null, arguments);
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
exports.cloneElement = function(element, config, children) {
|
|
377
|
+
if (null === element || void 0 === element)
|
|
378
|
+
throw Error(
|
|
379
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
380
|
+
);
|
|
381
|
+
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
382
|
+
if (null != config)
|
|
383
|
+
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
384
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
385
|
+
var propName = arguments.length - 2;
|
|
386
|
+
if (1 === propName)
|
|
387
|
+
props.children = children;
|
|
388
|
+
else if (1 < propName) {
|
|
389
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
390
|
+
childArray[i] = arguments[i + 2];
|
|
391
|
+
props.children = childArray;
|
|
257
392
|
}
|
|
258
|
-
return
|
|
393
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
259
394
|
};
|
|
260
|
-
exports.createContext = function(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
395
|
+
exports.createContext = function(defaultValue) {
|
|
396
|
+
defaultValue = {
|
|
397
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
398
|
+
_currentValue: defaultValue,
|
|
399
|
+
_currentValue2: defaultValue,
|
|
400
|
+
_threadCount: 0,
|
|
401
|
+
Provider: null,
|
|
402
|
+
Consumer: null
|
|
403
|
+
};
|
|
404
|
+
defaultValue.Provider = defaultValue;
|
|
405
|
+
defaultValue.Consumer = {
|
|
406
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
407
|
+
_context: defaultValue
|
|
408
|
+
};
|
|
409
|
+
return defaultValue;
|
|
264
410
|
};
|
|
265
|
-
exports.createElement =
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
411
|
+
exports.createElement = function(type, config, children) {
|
|
412
|
+
var propName, props = {}, key = null;
|
|
413
|
+
if (null != config)
|
|
414
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
415
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
416
|
+
var childrenLength = arguments.length - 2;
|
|
417
|
+
if (1 === childrenLength)
|
|
418
|
+
props.children = children;
|
|
419
|
+
else if (1 < childrenLength) {
|
|
420
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
421
|
+
childArray[i] = arguments[i + 2];
|
|
422
|
+
props.children = childArray;
|
|
423
|
+
}
|
|
424
|
+
if (type && type.defaultProps)
|
|
425
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
426
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
427
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
270
428
|
};
|
|
271
429
|
exports.createRef = function() {
|
|
272
430
|
return { current: null };
|
|
273
431
|
};
|
|
274
|
-
exports.forwardRef = function(
|
|
275
|
-
return { $$typeof:
|
|
432
|
+
exports.forwardRef = function(render) {
|
|
433
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
276
434
|
};
|
|
277
|
-
exports.isValidElement =
|
|
278
|
-
exports.lazy = function(
|
|
279
|
-
return {
|
|
435
|
+
exports.isValidElement = isValidElement;
|
|
436
|
+
exports.lazy = function(ctor) {
|
|
437
|
+
return {
|
|
438
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
439
|
+
_payload: { _status: -1, _result: ctor },
|
|
440
|
+
_init: lazyInitializer
|
|
441
|
+
};
|
|
280
442
|
};
|
|
281
|
-
exports.memo = function(
|
|
282
|
-
return {
|
|
443
|
+
exports.memo = function(type, compare) {
|
|
444
|
+
return {
|
|
445
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
446
|
+
type,
|
|
447
|
+
compare: void 0 === compare ? null : compare
|
|
448
|
+
};
|
|
283
449
|
};
|
|
284
|
-
exports.startTransition = function(
|
|
285
|
-
var
|
|
286
|
-
|
|
450
|
+
exports.startTransition = function(scope) {
|
|
451
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
452
|
+
ReactSharedInternals.T = currentTransition;
|
|
287
453
|
try {
|
|
288
|
-
|
|
454
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
455
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
456
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
457
|
+
} catch (error) {
|
|
458
|
+
reportGlobalError(error);
|
|
289
459
|
} finally {
|
|
290
|
-
|
|
460
|
+
ReactSharedInternals.T = prevTransition;
|
|
291
461
|
}
|
|
292
462
|
};
|
|
293
|
-
exports.
|
|
294
|
-
|
|
463
|
+
exports.unstable_useCacheRefresh = function() {
|
|
464
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
465
|
+
};
|
|
466
|
+
exports.use = function(usable) {
|
|
467
|
+
return ReactSharedInternals.H.use(usable);
|
|
468
|
+
};
|
|
469
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
470
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
295
471
|
};
|
|
296
|
-
exports.useCallback = function(
|
|
297
|
-
return
|
|
472
|
+
exports.useCallback = function(callback, deps) {
|
|
473
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
298
474
|
};
|
|
299
|
-
exports.useContext = function(
|
|
300
|
-
return
|
|
475
|
+
exports.useContext = function(Context) {
|
|
476
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
301
477
|
};
|
|
302
478
|
exports.useDebugValue = function() {
|
|
303
479
|
};
|
|
304
|
-
exports.useDeferredValue = function(
|
|
305
|
-
return
|
|
480
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
481
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
306
482
|
};
|
|
307
|
-
exports.useEffect = function(
|
|
308
|
-
|
|
483
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
484
|
+
var dispatcher = ReactSharedInternals.H;
|
|
485
|
+
if ("function" === typeof update)
|
|
486
|
+
throw Error(
|
|
487
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
488
|
+
);
|
|
489
|
+
return dispatcher.useEffect(create, createDeps);
|
|
309
490
|
};
|
|
310
491
|
exports.useId = function() {
|
|
311
|
-
return
|
|
492
|
+
return ReactSharedInternals.H.useId();
|
|
312
493
|
};
|
|
313
|
-
exports.useImperativeHandle = function(
|
|
314
|
-
return
|
|
494
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
495
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
315
496
|
};
|
|
316
|
-
exports.useInsertionEffect = function(
|
|
317
|
-
return
|
|
497
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
498
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
318
499
|
};
|
|
319
|
-
exports.useLayoutEffect = function(
|
|
320
|
-
return
|
|
500
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
501
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
321
502
|
};
|
|
322
|
-
exports.useMemo = function(
|
|
323
|
-
return
|
|
503
|
+
exports.useMemo = function(create, deps) {
|
|
504
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
324
505
|
};
|
|
325
|
-
exports.
|
|
326
|
-
return
|
|
506
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
507
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
327
508
|
};
|
|
328
|
-
exports.
|
|
329
|
-
return
|
|
509
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
510
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
330
511
|
};
|
|
331
|
-
exports.
|
|
332
|
-
return
|
|
512
|
+
exports.useRef = function(initialValue) {
|
|
513
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
333
514
|
};
|
|
334
|
-
exports.
|
|
335
|
-
return
|
|
515
|
+
exports.useState = function(initialState) {
|
|
516
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
517
|
+
};
|
|
518
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
519
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
520
|
+
subscribe,
|
|
521
|
+
getSnapshot,
|
|
522
|
+
getServerSnapshot
|
|
523
|
+
);
|
|
336
524
|
};
|
|
337
525
|
exports.useTransition = function() {
|
|
338
|
-
return
|
|
526
|
+
return ReactSharedInternals.H.useTransition();
|
|
339
527
|
};
|
|
340
|
-
exports.version = "
|
|
528
|
+
exports.version = "19.1.0";
|
|
341
529
|
}
|
|
342
530
|
});
|
|
343
531
|
|
|
@@ -345,2790 +533,1232 @@ var require_react_production_min = __commonJS({
|
|
|
345
533
|
var require_react_development = __commonJS({
|
|
346
534
|
"node_modules/react/cjs/react.development.js"(exports, module) {
|
|
347
535
|
"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;
|
|
536
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
537
|
+
function defineDeprecationWarning(methodName, info) {
|
|
538
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
539
|
+
get: function() {
|
|
540
|
+
console.warn(
|
|
541
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
542
|
+
info[0],
|
|
543
|
+
info[1]
|
|
544
|
+
);
|
|
377
545
|
}
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
function getIteratorFn(maybeIterable) {
|
|
549
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
378
550
|
return null;
|
|
551
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
552
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
553
|
+
}
|
|
554
|
+
function warnNoop(publicInstance, callerName) {
|
|
555
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
556
|
+
var warningKey = publicInstance + "." + callerName;
|
|
557
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
558
|
+
"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.",
|
|
559
|
+
callerName,
|
|
560
|
+
publicInstance
|
|
561
|
+
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
562
|
+
}
|
|
563
|
+
function Component(props, context, updater) {
|
|
564
|
+
this.props = props;
|
|
565
|
+
this.context = context;
|
|
566
|
+
this.refs = emptyObject;
|
|
567
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
568
|
+
}
|
|
569
|
+
function ComponentDummy() {
|
|
570
|
+
}
|
|
571
|
+
function PureComponent(props, context, updater) {
|
|
572
|
+
this.props = props;
|
|
573
|
+
this.context = context;
|
|
574
|
+
this.refs = emptyObject;
|
|
575
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
576
|
+
}
|
|
577
|
+
function testStringCoercion(value) {
|
|
578
|
+
return "" + value;
|
|
579
|
+
}
|
|
580
|
+
function checkKeyStringCoercion(value) {
|
|
581
|
+
try {
|
|
582
|
+
testStringCoercion(value);
|
|
583
|
+
var JSCompiler_inline_result = false;
|
|
584
|
+
} catch (e) {
|
|
585
|
+
JSCompiler_inline_result = true;
|
|
586
|
+
}
|
|
587
|
+
if (JSCompiler_inline_result) {
|
|
588
|
+
JSCompiler_inline_result = console;
|
|
589
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
590
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
591
|
+
JSCompiler_temp_const.call(
|
|
592
|
+
JSCompiler_inline_result,
|
|
593
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
594
|
+
JSCompiler_inline_result$jscomp$0
|
|
595
|
+
);
|
|
596
|
+
return testStringCoercion(value);
|
|
379
597
|
}
|
|
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];
|
|
598
|
+
}
|
|
599
|
+
function getComponentNameFromType(type) {
|
|
600
|
+
if (null == type)
|
|
601
|
+
return null;
|
|
602
|
+
if ("function" === typeof type)
|
|
603
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
604
|
+
if ("string" === typeof type)
|
|
605
|
+
return type;
|
|
606
|
+
switch (type) {
|
|
607
|
+
case REACT_FRAGMENT_TYPE:
|
|
608
|
+
return "Fragment";
|
|
609
|
+
case REACT_PROFILER_TYPE:
|
|
610
|
+
return "Profiler";
|
|
611
|
+
case REACT_STRICT_MODE_TYPE:
|
|
612
|
+
return "StrictMode";
|
|
613
|
+
case REACT_SUSPENSE_TYPE:
|
|
614
|
+
return "Suspense";
|
|
615
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
616
|
+
return "SuspenseList";
|
|
617
|
+
case REACT_ACTIVITY_TYPE:
|
|
618
|
+
return "Activity";
|
|
619
|
+
}
|
|
620
|
+
if ("object" === typeof type)
|
|
621
|
+
switch ("number" === typeof type.tag && console.error(
|
|
622
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
623
|
+
), type.$$typeof) {
|
|
624
|
+
case REACT_PORTAL_TYPE:
|
|
625
|
+
return "Portal";
|
|
626
|
+
case REACT_CONTEXT_TYPE:
|
|
627
|
+
return (type.displayName || "Context") + ".Provider";
|
|
628
|
+
case REACT_CONSUMER_TYPE:
|
|
629
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
630
|
+
case REACT_FORWARD_REF_TYPE:
|
|
631
|
+
var innerType = type.render;
|
|
632
|
+
type = type.displayName;
|
|
633
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
634
|
+
return type;
|
|
635
|
+
case REACT_MEMO_TYPE:
|
|
636
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
637
|
+
case REACT_LAZY_TYPE:
|
|
638
|
+
innerType = type._payload;
|
|
639
|
+
type = type._init;
|
|
640
|
+
try {
|
|
641
|
+
return getComponentNameFromType(type(innerType));
|
|
642
|
+
} catch (x) {
|
|
458
643
|
}
|
|
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
644
|
}
|
|
645
|
+
return null;
|
|
646
|
+
}
|
|
647
|
+
function getTaskName(type) {
|
|
648
|
+
if (type === REACT_FRAGMENT_TYPE)
|
|
649
|
+
return "<>";
|
|
650
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
651
|
+
return "<...>";
|
|
652
|
+
try {
|
|
653
|
+
var name = getComponentNameFromType(type);
|
|
654
|
+
return name ? "<" + name + ">" : "<...>";
|
|
655
|
+
} catch (x) {
|
|
656
|
+
return "<...>";
|
|
490
657
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
658
|
+
}
|
|
659
|
+
function getOwner() {
|
|
660
|
+
var dispatcher = ReactSharedInternals.A;
|
|
661
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
662
|
+
}
|
|
663
|
+
function UnknownOwner() {
|
|
664
|
+
return Error("react-stack-top-frame");
|
|
665
|
+
}
|
|
666
|
+
function hasValidKey(config) {
|
|
667
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
668
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
669
|
+
if (getter && getter.isReactWarning)
|
|
500
670
|
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
671
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
672
|
+
return void 0 !== config.key;
|
|
673
|
+
}
|
|
674
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
675
|
+
function warnAboutAccessingKey() {
|
|
676
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
677
|
+
"%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)",
|
|
678
|
+
displayName
|
|
679
|
+
));
|
|
680
|
+
}
|
|
681
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
682
|
+
Object.defineProperty(props, "key", {
|
|
683
|
+
get: warnAboutAccessingKey,
|
|
684
|
+
configurable: true
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
688
|
+
var componentName = getComponentNameFromType(this.type);
|
|
689
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
690
|
+
"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."
|
|
691
|
+
));
|
|
692
|
+
componentName = this.props.ref;
|
|
693
|
+
return void 0 !== componentName ? componentName : null;
|
|
694
|
+
}
|
|
695
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
696
|
+
self = props.ref;
|
|
697
|
+
type = {
|
|
698
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
699
|
+
type,
|
|
700
|
+
key,
|
|
701
|
+
props,
|
|
702
|
+
_owner: owner
|
|
572
703
|
};
|
|
573
|
-
{
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
704
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
705
|
+
enumerable: false,
|
|
706
|
+
get: elementRefGetterWithDeprecationWarning
|
|
707
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
708
|
+
type._store = {};
|
|
709
|
+
Object.defineProperty(type._store, "validated", {
|
|
710
|
+
configurable: false,
|
|
711
|
+
enumerable: false,
|
|
712
|
+
writable: true,
|
|
713
|
+
value: 0
|
|
714
|
+
});
|
|
715
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
716
|
+
configurable: false,
|
|
717
|
+
enumerable: false,
|
|
718
|
+
writable: true,
|
|
719
|
+
value: null
|
|
720
|
+
});
|
|
721
|
+
Object.defineProperty(type, "_debugStack", {
|
|
722
|
+
configurable: false,
|
|
723
|
+
enumerable: false,
|
|
724
|
+
writable: true,
|
|
725
|
+
value: debugStack
|
|
726
|
+
});
|
|
727
|
+
Object.defineProperty(type, "_debugTask", {
|
|
728
|
+
configurable: false,
|
|
729
|
+
enumerable: false,
|
|
730
|
+
writable: true,
|
|
731
|
+
value: debugTask
|
|
732
|
+
});
|
|
733
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
734
|
+
return type;
|
|
735
|
+
}
|
|
736
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
737
|
+
newKey = ReactElement(
|
|
738
|
+
oldElement.type,
|
|
739
|
+
newKey,
|
|
740
|
+
void 0,
|
|
741
|
+
void 0,
|
|
742
|
+
oldElement._owner,
|
|
743
|
+
oldElement.props,
|
|
744
|
+
oldElement._debugStack,
|
|
745
|
+
oldElement._debugTask
|
|
746
|
+
);
|
|
747
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
748
|
+
return newKey;
|
|
749
|
+
}
|
|
750
|
+
function isValidElement(object) {
|
|
751
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
752
|
+
}
|
|
753
|
+
function escape(key) {
|
|
754
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
755
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
756
|
+
return escaperLookup[match];
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
function getElementKey(element, index) {
|
|
760
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
761
|
+
}
|
|
762
|
+
function noop$1() {
|
|
763
|
+
}
|
|
764
|
+
function resolveThenable(thenable) {
|
|
765
|
+
switch (thenable.status) {
|
|
766
|
+
case "fulfilled":
|
|
767
|
+
return thenable.value;
|
|
768
|
+
case "rejected":
|
|
769
|
+
throw thenable.reason;
|
|
770
|
+
default:
|
|
771
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
772
|
+
function(fulfilledValue) {
|
|
773
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
774
|
+
},
|
|
775
|
+
function(error) {
|
|
776
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
583
777
|
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
function ComponentDummy() {
|
|
593
|
-
}
|
|
594
|
-
ComponentDummy.prototype = Component.prototype;
|
|
595
|
-
function PureComponent(props, context, updater) {
|
|
596
|
-
this.props = props;
|
|
597
|
-
this.context = context;
|
|
598
|
-
this.refs = emptyObject;
|
|
599
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
600
|
-
}
|
|
601
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
602
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
603
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
604
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
605
|
-
function createRef() {
|
|
606
|
-
var refObject = {
|
|
607
|
-
current: null
|
|
608
|
-
};
|
|
609
|
-
{
|
|
610
|
-
Object.seal(refObject);
|
|
611
|
-
}
|
|
612
|
-
return refObject;
|
|
613
|
-
}
|
|
614
|
-
var isArrayImpl = Array.isArray;
|
|
615
|
-
function isArray(a) {
|
|
616
|
-
return isArrayImpl(a);
|
|
617
|
-
}
|
|
618
|
-
function typeName(value) {
|
|
619
|
-
{
|
|
620
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
621
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
622
|
-
return type;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
function willCoercionThrow(value) {
|
|
626
|
-
{
|
|
627
|
-
try {
|
|
628
|
-
testStringCoercion(value);
|
|
629
|
-
return false;
|
|
630
|
-
} catch (e) {
|
|
631
|
-
return true;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
function testStringCoercion(value) {
|
|
636
|
-
return "" + value;
|
|
637
|
-
}
|
|
638
|
-
function checkKeyStringCoercion(value) {
|
|
639
|
-
{
|
|
640
|
-
if (willCoercionThrow(value)) {
|
|
641
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
642
|
-
return testStringCoercion(value);
|
|
778
|
+
)), thenable.status) {
|
|
779
|
+
case "fulfilled":
|
|
780
|
+
return thenable.value;
|
|
781
|
+
case "rejected":
|
|
782
|
+
throw thenable.reason;
|
|
643
783
|
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
647
|
-
var displayName = outerType.displayName;
|
|
648
|
-
if (displayName) {
|
|
649
|
-
return displayName;
|
|
650
|
-
}
|
|
651
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
652
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
653
|
-
}
|
|
654
|
-
function getContextName(type) {
|
|
655
|
-
return type.displayName || "Context";
|
|
656
784
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
return type.displayName || type.name || null;
|
|
668
|
-
}
|
|
669
|
-
if (typeof type === "string") {
|
|
670
|
-
return type;
|
|
671
|
-
}
|
|
785
|
+
throw thenable;
|
|
786
|
+
}
|
|
787
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
788
|
+
var type = typeof children;
|
|
789
|
+
if ("undefined" === type || "boolean" === type)
|
|
790
|
+
children = null;
|
|
791
|
+
var invokeCallback = false;
|
|
792
|
+
if (null === children)
|
|
793
|
+
invokeCallback = true;
|
|
794
|
+
else
|
|
672
795
|
switch (type) {
|
|
673
|
-
case
|
|
674
|
-
|
|
675
|
-
case
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
796
|
+
case "bigint":
|
|
797
|
+
case "string":
|
|
798
|
+
case "number":
|
|
799
|
+
invokeCallback = true;
|
|
800
|
+
break;
|
|
801
|
+
case "object":
|
|
802
|
+
switch (children.$$typeof) {
|
|
803
|
+
case REACT_ELEMENT_TYPE:
|
|
804
|
+
case REACT_PORTAL_TYPE:
|
|
805
|
+
invokeCallback = true;
|
|
806
|
+
break;
|
|
807
|
+
case REACT_LAZY_TYPE:
|
|
808
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
809
|
+
invokeCallback(children._payload),
|
|
810
|
+
array,
|
|
811
|
+
escapedPrefix,
|
|
812
|
+
nameSoFar,
|
|
813
|
+
callback
|
|
814
|
+
);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
if (invokeCallback) {
|
|
818
|
+
invokeCallback = children;
|
|
819
|
+
callback = callback(invokeCallback);
|
|
820
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
821
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
822
|
+
return c;
|
|
823
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
824
|
+
callback,
|
|
825
|
+
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
826
|
+
userProvidedKeyEscapeRegex,
|
|
827
|
+
"$&/"
|
|
828
|
+
) + "/") + childKey
|
|
829
|
+
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
830
|
+
return 1;
|
|
831
|
+
}
|
|
832
|
+
invokeCallback = 0;
|
|
833
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
834
|
+
if (isArrayImpl(children))
|
|
835
|
+
for (var i = 0; i < children.length; i++)
|
|
836
|
+
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
837
|
+
nameSoFar,
|
|
838
|
+
array,
|
|
839
|
+
escapedPrefix,
|
|
840
|
+
type,
|
|
841
|
+
callback
|
|
842
|
+
);
|
|
843
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
844
|
+
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
845
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
846
|
+
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
847
|
+
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
848
|
+
nameSoFar,
|
|
849
|
+
array,
|
|
850
|
+
escapedPrefix,
|
|
851
|
+
type,
|
|
852
|
+
callback
|
|
853
|
+
);
|
|
854
|
+
else if ("object" === type) {
|
|
855
|
+
if ("function" === typeof children.then)
|
|
856
|
+
return mapIntoArray(
|
|
857
|
+
resolveThenable(children),
|
|
858
|
+
array,
|
|
859
|
+
escapedPrefix,
|
|
860
|
+
nameSoFar,
|
|
861
|
+
callback
|
|
862
|
+
);
|
|
863
|
+
array = String(children);
|
|
864
|
+
throw Error(
|
|
865
|
+
"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."
|
|
866
|
+
);
|
|
867
|
+
}
|
|
868
|
+
return invokeCallback;
|
|
869
|
+
}
|
|
870
|
+
function mapChildren(children, func, context) {
|
|
871
|
+
if (null == children)
|
|
872
|
+
return children;
|
|
873
|
+
var result = [], count = 0;
|
|
874
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
875
|
+
return func.call(context, child, count++);
|
|
876
|
+
});
|
|
877
|
+
return result;
|
|
878
|
+
}
|
|
879
|
+
function lazyInitializer(payload) {
|
|
880
|
+
if (-1 === payload._status) {
|
|
881
|
+
var ctor = payload._result;
|
|
882
|
+
ctor = ctor();
|
|
883
|
+
ctor.then(
|
|
884
|
+
function(moduleObject) {
|
|
885
|
+
if (0 === payload._status || -1 === payload._status)
|
|
886
|
+
payload._status = 1, payload._result = moduleObject;
|
|
887
|
+
},
|
|
888
|
+
function(error) {
|
|
889
|
+
if (0 === payload._status || -1 === payload._status)
|
|
890
|
+
payload._status = 2, payload._result = error;
|
|
891
|
+
}
|
|
892
|
+
);
|
|
893
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
894
|
+
}
|
|
895
|
+
if (1 === payload._status)
|
|
896
|
+
return ctor = payload._result, void 0 === ctor && console.error(
|
|
897
|
+
"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?",
|
|
898
|
+
ctor
|
|
899
|
+
), "default" in ctor || console.error(
|
|
900
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
901
|
+
ctor
|
|
902
|
+
), ctor.default;
|
|
903
|
+
throw payload._result;
|
|
904
|
+
}
|
|
905
|
+
function resolveDispatcher() {
|
|
906
|
+
var dispatcher = ReactSharedInternals.H;
|
|
907
|
+
null === dispatcher && console.error(
|
|
908
|
+
"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."
|
|
909
|
+
);
|
|
910
|
+
return dispatcher;
|
|
911
|
+
}
|
|
912
|
+
function noop() {
|
|
913
|
+
}
|
|
914
|
+
function enqueueTask(task) {
|
|
915
|
+
if (null === enqueueTaskImpl)
|
|
916
|
+
try {
|
|
917
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
918
|
+
enqueueTaskImpl = (module && module[requireString]).call(
|
|
919
|
+
module,
|
|
920
|
+
"timers"
|
|
921
|
+
).setImmediate;
|
|
922
|
+
} catch (_err) {
|
|
923
|
+
enqueueTaskImpl = function(callback) {
|
|
924
|
+
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
925
|
+
"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."
|
|
926
|
+
));
|
|
927
|
+
var channel = new MessageChannel();
|
|
928
|
+
channel.port1.onmessage = callback;
|
|
929
|
+
channel.port2.postMessage(void 0);
|
|
930
|
+
};
|
|
713
931
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
return
|
|
733
|
-
}
|
|
932
|
+
return enqueueTaskImpl(task);
|
|
933
|
+
}
|
|
934
|
+
function aggregateErrors(errors) {
|
|
935
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
936
|
+
}
|
|
937
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
938
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
939
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
940
|
+
);
|
|
941
|
+
actScopeDepth = prevActScopeDepth;
|
|
942
|
+
}
|
|
943
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
944
|
+
var queue = ReactSharedInternals.actQueue;
|
|
945
|
+
if (null !== queue)
|
|
946
|
+
if (0 !== queue.length)
|
|
947
|
+
try {
|
|
948
|
+
flushActQueue(queue);
|
|
949
|
+
enqueueTask(function() {
|
|
950
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
951
|
+
});
|
|
952
|
+
return;
|
|
953
|
+
} catch (error) {
|
|
954
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
734
955
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
956
|
+
else
|
|
957
|
+
ReactSharedInternals.actQueue = null;
|
|
958
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
959
|
+
}
|
|
960
|
+
function flushActQueue(queue) {
|
|
961
|
+
if (!isFlushing) {
|
|
962
|
+
isFlushing = true;
|
|
963
|
+
var i = 0;
|
|
964
|
+
try {
|
|
965
|
+
for (; i < queue.length; i++) {
|
|
966
|
+
var callback = queue[i];
|
|
967
|
+
do {
|
|
968
|
+
ReactSharedInternals.didUsePromise = false;
|
|
969
|
+
var continuation = callback(false);
|
|
970
|
+
if (null !== continuation) {
|
|
971
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
972
|
+
queue[i] = callback;
|
|
973
|
+
queue.splice(0, i);
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
callback = continuation;
|
|
977
|
+
} else
|
|
978
|
+
break;
|
|
979
|
+
} while (1);
|
|
745
980
|
}
|
|
981
|
+
queue.length = 0;
|
|
982
|
+
} catch (error) {
|
|
983
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
984
|
+
} finally {
|
|
985
|
+
isFlushing = false;
|
|
746
986
|
}
|
|
747
|
-
return config.key !== void 0;
|
|
748
987
|
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
988
|
+
}
|
|
989
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
990
|
+
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");
|
|
991
|
+
Symbol.for("react.provider");
|
|
992
|
+
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 = {
|
|
993
|
+
isMounted: function() {
|
|
994
|
+
return false;
|
|
995
|
+
},
|
|
996
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
997
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
998
|
+
},
|
|
999
|
+
enqueueReplaceState: function(publicInstance) {
|
|
1000
|
+
warnNoop(publicInstance, "replaceState");
|
|
1001
|
+
},
|
|
1002
|
+
enqueueSetState: function(publicInstance) {
|
|
1003
|
+
warnNoop(publicInstance, "setState");
|
|
1004
|
+
}
|
|
1005
|
+
}, assign = Object.assign, emptyObject = {};
|
|
1006
|
+
Object.freeze(emptyObject);
|
|
1007
|
+
Component.prototype.isReactComponent = {};
|
|
1008
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
1009
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
1010
|
+
throw Error(
|
|
1011
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1012
|
+
);
|
|
1013
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1014
|
+
};
|
|
1015
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
1016
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1017
|
+
};
|
|
1018
|
+
var deprecatedAPIs = {
|
|
1019
|
+
isMounted: [
|
|
1020
|
+
"isMounted",
|
|
1021
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1022
|
+
],
|
|
1023
|
+
replaceState: [
|
|
1024
|
+
"replaceState",
|
|
1025
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1026
|
+
]
|
|
1027
|
+
}, fnName;
|
|
1028
|
+
for (fnName in deprecatedAPIs)
|
|
1029
|
+
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1030
|
+
ComponentDummy.prototype = Component.prototype;
|
|
1031
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1032
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
1033
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
1034
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
1035
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1036
|
+
H: null,
|
|
1037
|
+
A: null,
|
|
1038
|
+
T: null,
|
|
1039
|
+
S: null,
|
|
1040
|
+
V: null,
|
|
1041
|
+
actQueue: null,
|
|
1042
|
+
isBatchingLegacy: false,
|
|
1043
|
+
didScheduleLegacyUpdate: false,
|
|
1044
|
+
didUsePromise: false,
|
|
1045
|
+
thrownErrors: [],
|
|
1046
|
+
getCurrentStack: null,
|
|
1047
|
+
recentlyCreatedOwnerStacks: 0
|
|
1048
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1049
|
+
return null;
|
|
1050
|
+
};
|
|
1051
|
+
deprecatedAPIs = {
|
|
1052
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
1053
|
+
return callStackForError();
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1057
|
+
var didWarnAboutElementRef = {};
|
|
1058
|
+
var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
|
|
1059
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1060
|
+
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1061
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1062
|
+
var event = new window.ErrorEvent("error", {
|
|
1063
|
+
bubbles: true,
|
|
1064
|
+
cancelable: true,
|
|
1065
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1066
|
+
error
|
|
762
1067
|
});
|
|
1068
|
+
if (!window.dispatchEvent(event))
|
|
1069
|
+
return;
|
|
1070
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1071
|
+
process.emit("uncaughtException", error);
|
|
1072
|
+
return;
|
|
1073
|
+
}
|
|
1074
|
+
console.error(error);
|
|
1075
|
+
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1076
|
+
queueMicrotask(function() {
|
|
1077
|
+
return queueMicrotask(callback);
|
|
1078
|
+
});
|
|
1079
|
+
} : enqueueTask;
|
|
1080
|
+
deprecatedAPIs = Object.freeze({
|
|
1081
|
+
__proto__: null,
|
|
1082
|
+
c: function(size) {
|
|
1083
|
+
return resolveDispatcher().useMemoCache(size);
|
|
763
1084
|
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
1085
|
+
});
|
|
1086
|
+
exports.Children = {
|
|
1087
|
+
map: mapChildren,
|
|
1088
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1089
|
+
mapChildren(
|
|
1090
|
+
children,
|
|
1091
|
+
function() {
|
|
1092
|
+
forEachFunc.apply(this, arguments);
|
|
1093
|
+
},
|
|
1094
|
+
forEachContext
|
|
1095
|
+
);
|
|
1096
|
+
},
|
|
1097
|
+
count: function(children) {
|
|
1098
|
+
var n = 0;
|
|
1099
|
+
mapChildren(children, function() {
|
|
1100
|
+
n++;
|
|
777
1101
|
});
|
|
1102
|
+
return n;
|
|
1103
|
+
},
|
|
1104
|
+
toArray: function(children) {
|
|
1105
|
+
return mapChildren(children, function(child) {
|
|
1106
|
+
return child;
|
|
1107
|
+
}) || [];
|
|
1108
|
+
},
|
|
1109
|
+
only: function(children) {
|
|
1110
|
+
if (!isValidElement(children))
|
|
1111
|
+
throw Error(
|
|
1112
|
+
"React.Children.only expected to receive a single React element child."
|
|
1113
|
+
);
|
|
1114
|
+
return children;
|
|
778
1115
|
}
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
1116
|
+
};
|
|
1117
|
+
exports.Component = Component;
|
|
1118
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1119
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1120
|
+
exports.PureComponent = PureComponent;
|
|
1121
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1122
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1123
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1124
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1125
|
+
exports.act = function(callback) {
|
|
1126
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1127
|
+
actScopeDepth++;
|
|
1128
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1129
|
+
try {
|
|
1130
|
+
var result = callback();
|
|
1131
|
+
} catch (error) {
|
|
1132
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1133
|
+
}
|
|
1134
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1135
|
+
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1136
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1137
|
+
var thenable = result;
|
|
1138
|
+
queueSeveralMicrotasks(function() {
|
|
1139
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1140
|
+
"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 () => ...);"
|
|
1141
|
+
));
|
|
1142
|
+
});
|
|
1143
|
+
return {
|
|
1144
|
+
then: function(resolve, reject) {
|
|
1145
|
+
didAwaitActCall = true;
|
|
1146
|
+
thenable.then(
|
|
1147
|
+
function(returnValue) {
|
|
1148
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1149
|
+
if (0 === prevActScopeDepth) {
|
|
1150
|
+
try {
|
|
1151
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
1152
|
+
return recursivelyFlushAsyncActWork(
|
|
1153
|
+
returnValue,
|
|
1154
|
+
resolve,
|
|
1155
|
+
reject
|
|
1156
|
+
);
|
|
1157
|
+
});
|
|
1158
|
+
} catch (error$0) {
|
|
1159
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1160
|
+
}
|
|
1161
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1162
|
+
var _thrownError = aggregateErrors(
|
|
1163
|
+
ReactSharedInternals.thrownErrors
|
|
1164
|
+
);
|
|
1165
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
1166
|
+
reject(_thrownError);
|
|
1167
|
+
}
|
|
1168
|
+
} else
|
|
1169
|
+
resolve(returnValue);
|
|
1170
|
+
},
|
|
1171
|
+
function(error) {
|
|
1172
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1173
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1174
|
+
ReactSharedInternals.thrownErrors
|
|
1175
|
+
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1176
|
+
}
|
|
1177
|
+
);
|
|
787
1178
|
}
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
791
|
-
var element = {
|
|
792
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
793
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
794
|
-
// Built-in properties that belong on the element
|
|
795
|
-
type,
|
|
796
|
-
key,
|
|
797
|
-
ref,
|
|
798
|
-
props,
|
|
799
|
-
// Record the component responsible for creating this element.
|
|
800
|
-
_owner: owner
|
|
801
1179
|
};
|
|
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
|
-
}
|
|
1180
|
+
}
|
|
1181
|
+
var returnValue$jscomp$0 = result;
|
|
1182
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1183
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1184
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1185
|
+
"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(() => ...)"
|
|
1186
|
+
));
|
|
1187
|
+
}), ReactSharedInternals.actQueue = null);
|
|
1188
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1189
|
+
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1190
|
+
return {
|
|
1191
|
+
then: function(resolve, reject) {
|
|
1192
|
+
didAwaitActCall = true;
|
|
1193
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1194
|
+
return recursivelyFlushAsyncActWork(
|
|
1195
|
+
returnValue$jscomp$0,
|
|
1196
|
+
resolve,
|
|
1197
|
+
reject
|
|
1198
|
+
);
|
|
1199
|
+
})) : resolve(returnValue$jscomp$0);
|
|
826
1200
|
}
|
|
827
|
-
return element;
|
|
828
1201
|
};
|
|
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
|
-
|
|
1202
|
+
};
|
|
1203
|
+
exports.cache = function(fn) {
|
|
1204
|
+
return function() {
|
|
1205
|
+
return fn.apply(null, arguments);
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
exports.captureOwnerStack = function() {
|
|
1209
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1210
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
1211
|
+
};
|
|
1212
|
+
exports.cloneElement = function(element, config, children) {
|
|
1213
|
+
if (null === element || void 0 === element)
|
|
1214
|
+
throw Error(
|
|
1215
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
1216
|
+
);
|
|
1217
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1218
|
+
if (null != config) {
|
|
1219
|
+
var JSCompiler_inline_result;
|
|
1220
|
+
a: {
|
|
1221
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1222
|
+
config,
|
|
1223
|
+
"ref"
|
|
1224
|
+
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1225
|
+
JSCompiler_inline_result = false;
|
|
1226
|
+
break a;
|
|
1227
|
+
}
|
|
1228
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1229
|
+
}
|
|
1230
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
1231
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1232
|
+
for (propName in config)
|
|
1233
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1234
|
+
}
|
|
1235
|
+
var propName = arguments.length - 2;
|
|
1236
|
+
if (1 === propName)
|
|
1237
|
+
props.children = children;
|
|
1238
|
+
else if (1 < propName) {
|
|
1239
|
+
JSCompiler_inline_result = Array(propName);
|
|
1240
|
+
for (var i = 0; i < propName; i++)
|
|
1241
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1242
|
+
props.children = JSCompiler_inline_result;
|
|
1243
|
+
}
|
|
1244
|
+
props = ReactElement(
|
|
1245
|
+
element.type,
|
|
1246
|
+
key,
|
|
1247
|
+
void 0,
|
|
1248
|
+
void 0,
|
|
1249
|
+
owner,
|
|
1250
|
+
props,
|
|
1251
|
+
element._debugStack,
|
|
1252
|
+
element._debugTask
|
|
1253
|
+
);
|
|
1254
|
+
for (key = 2; key < arguments.length; key++)
|
|
1255
|
+
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
1256
|
+
return props;
|
|
1257
|
+
};
|
|
1258
|
+
exports.createContext = function(defaultValue) {
|
|
1259
|
+
defaultValue = {
|
|
1260
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1261
|
+
_currentValue: defaultValue,
|
|
1262
|
+
_currentValue2: defaultValue,
|
|
1263
|
+
_threadCount: 0,
|
|
1264
|
+
Provider: null,
|
|
1265
|
+
Consumer: null
|
|
1266
|
+
};
|
|
1267
|
+
defaultValue.Provider = defaultValue;
|
|
1268
|
+
defaultValue.Consumer = {
|
|
1269
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1270
|
+
_context: defaultValue
|
|
1271
|
+
};
|
|
1272
|
+
defaultValue._currentRenderer = null;
|
|
1273
|
+
defaultValue._currentRenderer2 = null;
|
|
1274
|
+
return defaultValue;
|
|
1275
|
+
};
|
|
1276
|
+
exports.createElement = function(type, config, children) {
|
|
1277
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
1278
|
+
var node = arguments[i];
|
|
1279
|
+
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1280
|
+
}
|
|
1281
|
+
i = {};
|
|
1282
|
+
node = null;
|
|
1283
|
+
if (null != config)
|
|
1284
|
+
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1285
|
+
"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"
|
|
1286
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
|
1287
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1288
|
+
var childrenLength = arguments.length - 2;
|
|
1289
|
+
if (1 === childrenLength)
|
|
1290
|
+
i.children = children;
|
|
1291
|
+
else if (1 < childrenLength) {
|
|
1292
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1293
|
+
childArray[_i] = arguments[_i + 2];
|
|
1294
|
+
Object.freeze && Object.freeze(childArray);
|
|
1295
|
+
i.children = childArray;
|
|
1296
|
+
}
|
|
1297
|
+
if (type && type.defaultProps)
|
|
1298
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1299
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1300
|
+
node && defineKeyPropWarningGetter(
|
|
1301
|
+
i,
|
|
1302
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1303
|
+
);
|
|
1304
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1305
|
+
return ReactElement(
|
|
1306
|
+
type,
|
|
1307
|
+
node,
|
|
1308
|
+
void 0,
|
|
1309
|
+
void 0,
|
|
1310
|
+
getOwner(),
|
|
1311
|
+
i,
|
|
1312
|
+
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1313
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1314
|
+
);
|
|
1315
|
+
};
|
|
1316
|
+
exports.createRef = function() {
|
|
1317
|
+
var refObject = { current: null };
|
|
1318
|
+
Object.seal(refObject);
|
|
1319
|
+
return refObject;
|
|
1320
|
+
};
|
|
1321
|
+
exports.forwardRef = function(render) {
|
|
1322
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1323
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1324
|
+
) : "function" !== typeof render ? console.error(
|
|
1325
|
+
"forwardRef requires a render function but was given %s.",
|
|
1326
|
+
null === render ? "null" : typeof render
|
|
1327
|
+
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1328
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1329
|
+
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1330
|
+
);
|
|
1331
|
+
null != render && null != render.defaultProps && console.error(
|
|
1332
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1333
|
+
);
|
|
1334
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1335
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1336
|
+
enumerable: false,
|
|
1337
|
+
configurable: true,
|
|
1338
|
+
get: function() {
|
|
1339
|
+
return ownName;
|
|
1340
|
+
},
|
|
1341
|
+
set: function(name) {
|
|
1342
|
+
ownName = name;
|
|
1343
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
871
1344
|
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
1345
|
+
});
|
|
1346
|
+
return elementType;
|
|
1347
|
+
};
|
|
1348
|
+
exports.isValidElement = isValidElement;
|
|
1349
|
+
exports.lazy = function(ctor) {
|
|
1350
|
+
return {
|
|
1351
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1352
|
+
_payload: { _status: -1, _result: ctor },
|
|
1353
|
+
_init: lazyInitializer
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
exports.memo = function(type, compare) {
|
|
1357
|
+
null == type && console.error(
|
|
1358
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1359
|
+
null === type ? "null" : typeof type
|
|
1360
|
+
);
|
|
1361
|
+
compare = {
|
|
1362
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1363
|
+
type,
|
|
1364
|
+
compare: void 0 === compare ? null : compare
|
|
1365
|
+
};
|
|
1366
|
+
var ownName;
|
|
1367
|
+
Object.defineProperty(compare, "displayName", {
|
|
1368
|
+
enumerable: false,
|
|
1369
|
+
configurable: true,
|
|
1370
|
+
get: function() {
|
|
1371
|
+
return ownName;
|
|
1372
|
+
},
|
|
1373
|
+
set: function(name) {
|
|
1374
|
+
ownName = name;
|
|
1375
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
879
1376
|
}
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
1377
|
+
});
|
|
1378
|
+
return compare;
|
|
1379
|
+
};
|
|
1380
|
+
exports.startTransition = function(scope) {
|
|
1381
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1382
|
+
ReactSharedInternals.T = currentTransition;
|
|
1383
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1384
|
+
try {
|
|
1385
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1386
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1387
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1388
|
+
} catch (error) {
|
|
1389
|
+
reportGlobalError(error);
|
|
1390
|
+
} finally {
|
|
1391
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1392
|
+
"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."
|
|
1393
|
+
)), ReactSharedInternals.T = prevTransition;
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
exports.unstable_useCacheRefresh = function() {
|
|
1397
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1398
|
+
};
|
|
1399
|
+
exports.use = function(usable) {
|
|
1400
|
+
return resolveDispatcher().use(usable);
|
|
1401
|
+
};
|
|
1402
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
1403
|
+
return resolveDispatcher().useActionState(
|
|
1404
|
+
action,
|
|
1405
|
+
initialState,
|
|
1406
|
+
permalink
|
|
1407
|
+
);
|
|
1408
|
+
};
|
|
1409
|
+
exports.useCallback = function(callback, deps) {
|
|
1410
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1411
|
+
};
|
|
1412
|
+
exports.useContext = function(Context) {
|
|
1413
|
+
var dispatcher = resolveDispatcher();
|
|
1414
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1415
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1416
|
+
);
|
|
1417
|
+
return dispatcher.useContext(Context);
|
|
1418
|
+
};
|
|
1419
|
+
exports.useDebugValue = function(value, formatterFn) {
|
|
1420
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1421
|
+
};
|
|
1422
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
1423
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1424
|
+
};
|
|
1425
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
1426
|
+
null == create && console.warn(
|
|
1427
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1428
|
+
);
|
|
1429
|
+
var dispatcher = resolveDispatcher();
|
|
1430
|
+
if ("function" === typeof update)
|
|
1431
|
+
throw Error(
|
|
1432
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
1433
|
+
);
|
|
1434
|
+
return dispatcher.useEffect(create, createDeps);
|
|
1435
|
+
};
|
|
1436
|
+
exports.useId = function() {
|
|
1437
|
+
return resolveDispatcher().useId();
|
|
1438
|
+
};
|
|
1439
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1440
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1441
|
+
};
|
|
1442
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
1443
|
+
null == create && console.warn(
|
|
1444
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1445
|
+
);
|
|
1446
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1447
|
+
};
|
|
1448
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
1449
|
+
null == create && console.warn(
|
|
1450
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1451
|
+
);
|
|
1452
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1453
|
+
};
|
|
1454
|
+
exports.useMemo = function(create, deps) {
|
|
1455
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1456
|
+
};
|
|
1457
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
1458
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1459
|
+
};
|
|
1460
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
1461
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1462
|
+
};
|
|
1463
|
+
exports.useRef = function(initialValue) {
|
|
1464
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1465
|
+
};
|
|
1466
|
+
exports.useState = function(initialState) {
|
|
1467
|
+
return resolveDispatcher().useState(initialState);
|
|
1468
|
+
};
|
|
1469
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1470
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
1471
|
+
subscribe,
|
|
1472
|
+
getSnapshot,
|
|
1473
|
+
getServerSnapshot
|
|
1474
|
+
);
|
|
1475
|
+
};
|
|
1476
|
+
exports.useTransition = function() {
|
|
1477
|
+
return resolveDispatcher().useTransition();
|
|
1478
|
+
};
|
|
1479
|
+
exports.version = "19.1.0";
|
|
1480
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1481
|
+
}();
|
|
1482
|
+
}
|
|
1483
|
+
});
|
|
1484
|
+
|
|
1485
|
+
// node_modules/react/index.js
|
|
1486
|
+
var require_react = __commonJS({
|
|
1487
|
+
"node_modules/react/index.js"(exports, module) {
|
|
1488
|
+
"use strict";
|
|
1489
|
+
if (process.env.NODE_ENV === "production") {
|
|
1490
|
+
module.exports = require_react_production();
|
|
1491
|
+
} else {
|
|
1492
|
+
module.exports = require_react_development();
|
|
1493
|
+
}
|
|
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"(exports) {
|
|
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) {
|
|
1527
|
+
case REACT_PORTAL_TYPE:
|
|
1528
|
+
return "Portal";
|
|
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) {
|
|
888
1546
|
}
|
|
889
|
-
}
|
|
890
1547
|
}
|
|
891
|
-
|
|
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);
|
|
892
1570
|
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
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 "<...>";
|
|
896
1582
|
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
var
|
|
908
|
-
if (
|
|
909
|
-
|
|
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++;
|
|
1084
|
-
});
|
|
1085
|
-
return n;
|
|
1086
|
-
}
|
|
1087
|
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
1088
|
-
mapChildren(children, function() {
|
|
1089
|
-
forEachFunc.apply(this, arguments);
|
|
1090
|
-
}, forEachContext);
|
|
1091
|
-
}
|
|
1092
|
-
function toArray(children) {
|
|
1093
|
-
return mapChildren(children, function(child) {
|
|
1094
|
-
return child;
|
|
1095
|
-
}) || [];
|
|
1096
|
-
}
|
|
1097
|
-
function onlyChild(children) {
|
|
1098
|
-
if (!isValidElement(children)) {
|
|
1099
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1100
|
-
}
|
|
1101
|
-
return children;
|
|
1102
|
-
}
|
|
1103
|
-
function createContext(defaultValue) {
|
|
1104
|
-
var context = {
|
|
1105
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1106
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1107
|
-
// some renderers as primary and others as secondary. We only expect
|
|
1108
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1109
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1110
|
-
// Secondary renderers store their context values on separate fields.
|
|
1111
|
-
_currentValue: defaultValue,
|
|
1112
|
-
_currentValue2: defaultValue,
|
|
1113
|
-
// Used to track how many concurrent renderers this context currently
|
|
1114
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
1115
|
-
_threadCount: 0,
|
|
1116
|
-
// These are circular
|
|
1117
|
-
Provider: null,
|
|
1118
|
-
Consumer: null,
|
|
1119
|
-
// Add these to use same hidden class in VM as ServerContext
|
|
1120
|
-
_defaultValue: null,
|
|
1121
|
-
_globalName: null
|
|
1122
|
-
};
|
|
1123
|
-
context.Provider = {
|
|
1124
|
-
$$typeof: REACT_PROVIDER_TYPE,
|
|
1125
|
-
_context: context
|
|
1126
|
-
};
|
|
1127
|
-
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1128
|
-
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1129
|
-
var hasWarnedAboutDisplayNameOnConsumer = false;
|
|
1130
|
-
{
|
|
1131
|
-
var Consumer = {
|
|
1132
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1133
|
-
_context: context
|
|
1134
|
-
};
|
|
1135
|
-
Object.defineProperties(Consumer, {
|
|
1136
|
-
Provider: {
|
|
1137
|
-
get: function() {
|
|
1138
|
-
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1139
|
-
hasWarnedAboutUsingConsumerProvider = true;
|
|
1140
|
-
error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
|
|
1141
|
-
}
|
|
1142
|
-
return context.Provider;
|
|
1143
|
-
},
|
|
1144
|
-
set: function(_Provider) {
|
|
1145
|
-
context.Provider = _Provider;
|
|
1146
|
-
}
|
|
1147
|
-
},
|
|
1148
|
-
_currentValue: {
|
|
1149
|
-
get: function() {
|
|
1150
|
-
return context._currentValue;
|
|
1151
|
-
},
|
|
1152
|
-
set: function(_currentValue) {
|
|
1153
|
-
context._currentValue = _currentValue;
|
|
1154
|
-
}
|
|
1155
|
-
},
|
|
1156
|
-
_currentValue2: {
|
|
1157
|
-
get: function() {
|
|
1158
|
-
return context._currentValue2;
|
|
1159
|
-
},
|
|
1160
|
-
set: function(_currentValue2) {
|
|
1161
|
-
context._currentValue2 = _currentValue2;
|
|
1162
|
-
}
|
|
1163
|
-
},
|
|
1164
|
-
_threadCount: {
|
|
1165
|
-
get: function() {
|
|
1166
|
-
return context._threadCount;
|
|
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 useRef(initialValue) {
|
|
1412
|
-
var dispatcher = resolveDispatcher();
|
|
1413
|
-
return dispatcher.useRef(initialValue);
|
|
1414
|
-
}
|
|
1415
|
-
function useEffect(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 = module && module[requireString];
|
|
2003
|
-
enqueueTaskImpl = nodeRequire.call(module, "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
|
-
exports.Children = Children;
|
|
2175
|
-
exports.Component = Component;
|
|
2176
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2177
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
2178
|
-
exports.PureComponent = PureComponent;
|
|
2179
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2180
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
2181
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2182
|
-
exports.cloneElement = cloneElement$1;
|
|
2183
|
-
exports.createContext = createContext;
|
|
2184
|
-
exports.createElement = createElement$1;
|
|
2185
|
-
exports.createFactory = createFactory;
|
|
2186
|
-
exports.createRef = createRef;
|
|
2187
|
-
exports.forwardRef = forwardRef;
|
|
2188
|
-
exports.isValidElement = isValidElement;
|
|
2189
|
-
exports.lazy = lazy;
|
|
2190
|
-
exports.memo = memo;
|
|
2191
|
-
exports.startTransition = startTransition;
|
|
2192
|
-
exports.unstable_act = act;
|
|
2193
|
-
exports.useCallback = useCallback;
|
|
2194
|
-
exports.useContext = useContext;
|
|
2195
|
-
exports.useDebugValue = useDebugValue;
|
|
2196
|
-
exports.useDeferredValue = useDeferredValue;
|
|
2197
|
-
exports.useEffect = useEffect;
|
|
2198
|
-
exports.useId = useId;
|
|
2199
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
2200
|
-
exports.useInsertionEffect = useInsertionEffect;
|
|
2201
|
-
exports.useLayoutEffect = useLayoutEffect;
|
|
2202
|
-
exports.useMemo = useMemo;
|
|
2203
|
-
exports.useReducer = useReducer;
|
|
2204
|
-
exports.useRef = useRef;
|
|
2205
|
-
exports.useState = useState;
|
|
2206
|
-
exports.useSyncExternalStore = useSyncExternalStore;
|
|
2207
|
-
exports.useTransition = useTransition;
|
|
2208
|
-
exports.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"(exports, module) {
|
|
2220
|
-
"use strict";
|
|
2221
|
-
if (process.env.NODE_ENV === "production") {
|
|
2222
|
-
module.exports = require_react_production_min();
|
|
2223
|
-
} else {
|
|
2224
|
-
module.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"(exports) {
|
|
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
|
-
exports.Fragment = l;
|
|
2252
|
-
exports.jsx = q;
|
|
2253
|
-
exports.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"(exports) {
|
|
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
|
-
}
|
|
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;
|
|
2814
1596
|
}
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
});
|
|
2847
|
-
if (Object.freeze) {
|
|
2848
|
-
Object.freeze(element.props);
|
|
2849
|
-
Object.freeze(element);
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
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
|
|
2853
1628
|
};
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
}
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
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
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
3128
|
-
exports.jsx = jsx2;
|
|
3129
|
-
exports.jsxs = jsxs;
|
|
3130
|
-
})();
|
|
3131
|
-
}
|
|
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;
|
|
1679
|
+
});
|
|
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
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1735
|
+
exports.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
|
+
exports.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"(exports, module) {
|
|
3138
1768
|
"use strict";
|
|
3139
1769
|
if (process.env.NODE_ENV === "production") {
|
|
3140
|
-
module.exports =
|
|
1770
|
+
module.exports = require_react_jsx_runtime_production();
|
|
3141
1771
|
} else {
|
|
3142
1772
|
module.exports = require_react_jsx_runtime_development();
|
|
3143
1773
|
}
|
|
@@ -3176,34 +1806,34 @@ export {
|
|
|
3176
1806
|
};
|
|
3177
1807
|
/*! Bundled license information:
|
|
3178
1808
|
|
|
3179
|
-
react/cjs/react.production.
|
|
1809
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
3180
1810
|
(**
|
|
3181
1811
|
* @license React
|
|
3182
|
-
* react.production.
|
|
1812
|
+
* react-jsx-runtime.production.js
|
|
3183
1813
|
*
|
|
3184
|
-
* Copyright (c)
|
|
1814
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3185
1815
|
*
|
|
3186
1816
|
* This source code is licensed under the MIT license found in the
|
|
3187
1817
|
* LICENSE file in the root directory of this source tree.
|
|
3188
1818
|
*)
|
|
3189
1819
|
|
|
3190
|
-
react/cjs/react.
|
|
1820
|
+
react/cjs/react.production.js:
|
|
3191
1821
|
(**
|
|
3192
1822
|
* @license React
|
|
3193
|
-
* react.
|
|
1823
|
+
* react.production.js
|
|
3194
1824
|
*
|
|
3195
|
-
* Copyright (c)
|
|
1825
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3196
1826
|
*
|
|
3197
1827
|
* This source code is licensed under the MIT license found in the
|
|
3198
1828
|
* LICENSE file in the root directory of this source tree.
|
|
3199
1829
|
*)
|
|
3200
1830
|
|
|
3201
|
-
react/cjs/react
|
|
1831
|
+
react/cjs/react.development.js:
|
|
3202
1832
|
(**
|
|
3203
1833
|
* @license React
|
|
3204
|
-
* react
|
|
1834
|
+
* react.development.js
|
|
3205
1835
|
*
|
|
3206
|
-
* Copyright (c)
|
|
1836
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3207
1837
|
*
|
|
3208
1838
|
* This source code is licensed under the MIT license found in the
|
|
3209
1839
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3214,7 +1844,7 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
3214
1844
|
* @license React
|
|
3215
1845
|
* react-jsx-runtime.development.js
|
|
3216
1846
|
*
|
|
3217
|
-
* Copyright (c)
|
|
1847
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3218
1848
|
*
|
|
3219
1849
|
* This source code is licensed under the MIT license found in the
|
|
3220
1850
|
* LICENSE file in the root directory of this source tree.
|