@syntrologie/adapt-nav 2.8.0-canary.263 → 2.8.0-canary.265
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor.js +615 -1455
- package/dist/editor.js.map +3 -3
- package/package.json +1 -1
package/dist/editor.js
CHANGED
|
@@ -3,975 +3,486 @@ import {
|
|
|
3
3
|
__toESM
|
|
4
4
|
} from "./chunk-7DTOSQNC.js";
|
|
5
5
|
|
|
6
|
-
// ../../../node_modules/react/cjs/react.
|
|
7
|
-
var
|
|
8
|
-
"../../../node_modules/react/cjs/react.
|
|
6
|
+
// ../../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
7
|
+
var require_react_jsx_runtime_production = __commonJS({
|
|
8
|
+
"../../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
9
9
|
"use strict";
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if ("string" === typeof type) return type;
|
|
80
|
-
switch (type) {
|
|
81
|
-
case REACT_FRAGMENT_TYPE:
|
|
82
|
-
return "Fragment";
|
|
83
|
-
case REACT_PROFILER_TYPE:
|
|
84
|
-
return "Profiler";
|
|
85
|
-
case REACT_STRICT_MODE_TYPE:
|
|
86
|
-
return "StrictMode";
|
|
87
|
-
case REACT_SUSPENSE_TYPE:
|
|
88
|
-
return "Suspense";
|
|
89
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
90
|
-
return "SuspenseList";
|
|
91
|
-
case REACT_ACTIVITY_TYPE:
|
|
92
|
-
return "Activity";
|
|
93
|
-
}
|
|
94
|
-
if ("object" === typeof type)
|
|
95
|
-
switch ("number" === typeof type.tag && console.error(
|
|
96
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
97
|
-
), type.$$typeof) {
|
|
98
|
-
case REACT_PORTAL_TYPE:
|
|
99
|
-
return "Portal";
|
|
100
|
-
case REACT_CONTEXT_TYPE:
|
|
101
|
-
return type.displayName || "Context";
|
|
102
|
-
case REACT_CONSUMER_TYPE:
|
|
103
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
104
|
-
case REACT_FORWARD_REF_TYPE:
|
|
105
|
-
var innerType = type.render;
|
|
106
|
-
type = type.displayName;
|
|
107
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
108
|
-
return type;
|
|
109
|
-
case REACT_MEMO_TYPE:
|
|
110
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
111
|
-
case REACT_LAZY_TYPE:
|
|
112
|
-
innerType = type._payload;
|
|
113
|
-
type = type._init;
|
|
114
|
-
try {
|
|
115
|
-
return getComponentNameFromType(type(innerType));
|
|
116
|
-
} catch (x) {
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return null;
|
|
120
|
-
}
|
|
121
|
-
function getTaskName(type) {
|
|
122
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
123
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
124
|
-
return "<...>";
|
|
125
|
-
try {
|
|
126
|
-
var name = getComponentNameFromType(type);
|
|
127
|
-
return name ? "<" + name + ">" : "<...>";
|
|
128
|
-
} catch (x) {
|
|
129
|
-
return "<...>";
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
function getOwner() {
|
|
133
|
-
var dispatcher = ReactSharedInternals.A;
|
|
134
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
135
|
-
}
|
|
136
|
-
function UnknownOwner() {
|
|
137
|
-
return Error("react-stack-top-frame");
|
|
138
|
-
}
|
|
139
|
-
function hasValidKey(config) {
|
|
140
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
141
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
142
|
-
if (getter && getter.isReactWarning) return false;
|
|
143
|
-
}
|
|
144
|
-
return void 0 !== config.key;
|
|
145
|
-
}
|
|
146
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
147
|
-
function warnAboutAccessingKey() {
|
|
148
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
149
|
-
"%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)",
|
|
150
|
-
displayName
|
|
151
|
-
));
|
|
152
|
-
}
|
|
153
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
154
|
-
Object.defineProperty(props, "key", {
|
|
155
|
-
get: warnAboutAccessingKey,
|
|
156
|
-
configurable: true
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
160
|
-
var componentName = getComponentNameFromType(this.type);
|
|
161
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
162
|
-
"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."
|
|
163
|
-
));
|
|
164
|
-
componentName = this.props.ref;
|
|
165
|
-
return void 0 !== componentName ? componentName : null;
|
|
166
|
-
}
|
|
167
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
168
|
-
var refProp = props.ref;
|
|
169
|
-
type = {
|
|
170
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
171
|
-
type,
|
|
172
|
-
key,
|
|
173
|
-
props,
|
|
174
|
-
_owner: owner
|
|
175
|
-
};
|
|
176
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
177
|
-
enumerable: false,
|
|
178
|
-
get: elementRefGetterWithDeprecationWarning
|
|
179
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
180
|
-
type._store = {};
|
|
181
|
-
Object.defineProperty(type._store, "validated", {
|
|
182
|
-
configurable: false,
|
|
183
|
-
enumerable: false,
|
|
184
|
-
writable: true,
|
|
185
|
-
value: 0
|
|
186
|
-
});
|
|
187
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
188
|
-
configurable: false,
|
|
189
|
-
enumerable: false,
|
|
190
|
-
writable: true,
|
|
191
|
-
value: null
|
|
192
|
-
});
|
|
193
|
-
Object.defineProperty(type, "_debugStack", {
|
|
194
|
-
configurable: false,
|
|
195
|
-
enumerable: false,
|
|
196
|
-
writable: true,
|
|
197
|
-
value: debugStack
|
|
198
|
-
});
|
|
199
|
-
Object.defineProperty(type, "_debugTask", {
|
|
200
|
-
configurable: false,
|
|
201
|
-
enumerable: false,
|
|
202
|
-
writable: true,
|
|
203
|
-
value: debugTask
|
|
204
|
-
});
|
|
205
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
206
|
-
return type;
|
|
10
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
11
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
12
|
+
function jsxProd(type, config, maybeKey) {
|
|
13
|
+
var key = null;
|
|
14
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
15
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
16
|
+
if ("key" in config) {
|
|
17
|
+
maybeKey = {};
|
|
18
|
+
for (var propName in config)
|
|
19
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
20
|
+
} else maybeKey = config;
|
|
21
|
+
config = maybeKey.ref;
|
|
22
|
+
return {
|
|
23
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
24
|
+
type,
|
|
25
|
+
key,
|
|
26
|
+
ref: void 0 !== config ? config : null,
|
|
27
|
+
props: maybeKey
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
31
|
+
exports.jsx = jsxProd;
|
|
32
|
+
exports.jsxs = jsxProd;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// ../../../node_modules/react/jsx-runtime.js
|
|
37
|
+
var require_jsx_runtime = __commonJS({
|
|
38
|
+
"../../../node_modules/react/jsx-runtime.js"(exports, module) {
|
|
39
|
+
"use strict";
|
|
40
|
+
if (true) {
|
|
41
|
+
module.exports = require_react_jsx_runtime_production();
|
|
42
|
+
} else {
|
|
43
|
+
module.exports = null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
// ../../../node_modules/react/cjs/react.production.js
|
|
49
|
+
var require_react_production = __commonJS({
|
|
50
|
+
"../../../node_modules/react/cjs/react.production.js"(exports) {
|
|
51
|
+
"use strict";
|
|
52
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
53
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
54
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
55
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
|
|
56
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
|
|
57
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
|
|
58
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
|
|
59
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
60
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
61
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
62
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
63
|
+
var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
|
|
64
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
65
|
+
function getIteratorFn(maybeIterable) {
|
|
66
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
67
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
68
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
69
|
+
}
|
|
70
|
+
var ReactNoopUpdateQueue = {
|
|
71
|
+
isMounted: function() {
|
|
72
|
+
return false;
|
|
73
|
+
},
|
|
74
|
+
enqueueForceUpdate: function() {
|
|
75
|
+
},
|
|
76
|
+
enqueueReplaceState: function() {
|
|
77
|
+
},
|
|
78
|
+
enqueueSetState: function() {
|
|
207
79
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
80
|
+
};
|
|
81
|
+
var assign = Object.assign;
|
|
82
|
+
var emptyObject = {};
|
|
83
|
+
function Component(props, context, updater) {
|
|
84
|
+
this.props = props;
|
|
85
|
+
this.context = context;
|
|
86
|
+
this.refs = emptyObject;
|
|
87
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
88
|
+
}
|
|
89
|
+
Component.prototype.isReactComponent = {};
|
|
90
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
91
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
92
|
+
throw Error(
|
|
93
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
216
94
|
);
|
|
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
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
case REACT_LAZY_TYPE:
|
|
277
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
278
|
-
invokeCallback(children._payload),
|
|
279
|
-
array,
|
|
280
|
-
escapedPrefix,
|
|
281
|
-
nameSoFar,
|
|
282
|
-
callback
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
if (invokeCallback) {
|
|
287
|
-
invokeCallback = children;
|
|
288
|
-
callback = callback(invokeCallback);
|
|
289
|
-
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
290
|
-
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
291
|
-
return c;
|
|
292
|
-
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
293
|
-
callback,
|
|
294
|
-
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
295
|
-
userProvidedKeyEscapeRegex,
|
|
296
|
-
"$&/"
|
|
297
|
-
) + "/") + childKey
|
|
298
|
-
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
299
|
-
return 1;
|
|
300
|
-
}
|
|
301
|
-
invokeCallback = 0;
|
|
302
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
303
|
-
if (isArrayImpl(children))
|
|
304
|
-
for (var i = 0; i < children.length; i++)
|
|
305
|
-
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
306
|
-
nameSoFar,
|
|
307
|
-
array,
|
|
308
|
-
escapedPrefix,
|
|
309
|
-
type,
|
|
310
|
-
callback
|
|
311
|
-
);
|
|
312
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
313
|
-
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
314
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
315
|
-
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
316
|
-
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
317
|
-
nameSoFar,
|
|
318
|
-
array,
|
|
319
|
-
escapedPrefix,
|
|
320
|
-
type,
|
|
321
|
-
callback
|
|
322
|
-
);
|
|
323
|
-
else if ("object" === type) {
|
|
324
|
-
if ("function" === typeof children.then)
|
|
325
|
-
return mapIntoArray(
|
|
326
|
-
resolveThenable(children),
|
|
327
|
-
array,
|
|
328
|
-
escapedPrefix,
|
|
329
|
-
nameSoFar,
|
|
330
|
-
callback
|
|
331
|
-
);
|
|
332
|
-
array = String(children);
|
|
333
|
-
throw Error(
|
|
334
|
-
"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."
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
return invokeCallback;
|
|
338
|
-
}
|
|
339
|
-
function mapChildren(children, func, context) {
|
|
340
|
-
if (null == children) return children;
|
|
341
|
-
var result = [], count = 0;
|
|
342
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
343
|
-
return func.call(context, child, count++);
|
|
344
|
-
});
|
|
345
|
-
return result;
|
|
346
|
-
}
|
|
347
|
-
function lazyInitializer(payload) {
|
|
348
|
-
if (-1 === payload._status) {
|
|
349
|
-
var ioInfo = payload._ioInfo;
|
|
350
|
-
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
351
|
-
ioInfo = payload._result;
|
|
352
|
-
var thenable = ioInfo();
|
|
353
|
-
thenable.then(
|
|
354
|
-
function(moduleObject) {
|
|
355
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
356
|
-
payload._status = 1;
|
|
357
|
-
payload._result = moduleObject;
|
|
358
|
-
var _ioInfo = payload._ioInfo;
|
|
359
|
-
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
360
|
-
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
361
|
-
}
|
|
95
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
96
|
+
};
|
|
97
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
98
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
99
|
+
};
|
|
100
|
+
function ComponentDummy() {
|
|
101
|
+
}
|
|
102
|
+
ComponentDummy.prototype = Component.prototype;
|
|
103
|
+
function PureComponent(props, context, updater) {
|
|
104
|
+
this.props = props;
|
|
105
|
+
this.context = context;
|
|
106
|
+
this.refs = emptyObject;
|
|
107
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
108
|
+
}
|
|
109
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
110
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
111
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
112
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
113
|
+
var isArrayImpl = Array.isArray;
|
|
114
|
+
function noop() {
|
|
115
|
+
}
|
|
116
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
117
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
118
|
+
function ReactElement(type, key, props) {
|
|
119
|
+
var refProp = props.ref;
|
|
120
|
+
return {
|
|
121
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
122
|
+
type,
|
|
123
|
+
key,
|
|
124
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
125
|
+
props
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
129
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
130
|
+
}
|
|
131
|
+
function isValidElement(object) {
|
|
132
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
133
|
+
}
|
|
134
|
+
function escape2(key) {
|
|
135
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
136
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
137
|
+
return escaperLookup[match];
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
141
|
+
function getElementKey(element, index) {
|
|
142
|
+
return "object" === typeof element && null !== element && null != element.key ? escape2("" + element.key) : index.toString(36);
|
|
143
|
+
}
|
|
144
|
+
function resolveThenable(thenable) {
|
|
145
|
+
switch (thenable.status) {
|
|
146
|
+
case "fulfilled":
|
|
147
|
+
return thenable.value;
|
|
148
|
+
case "rejected":
|
|
149
|
+
throw thenable.reason;
|
|
150
|
+
default:
|
|
151
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
152
|
+
function(fulfilledValue) {
|
|
153
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
362
154
|
},
|
|
363
155
|
function(error) {
|
|
364
|
-
|
|
365
|
-
payload._status = 2;
|
|
366
|
-
payload._result = error;
|
|
367
|
-
var _ioInfo2 = payload._ioInfo;
|
|
368
|
-
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
369
|
-
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
370
|
-
}
|
|
156
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
371
157
|
}
|
|
372
|
-
)
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
378
|
-
}
|
|
379
|
-
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
380
|
-
}
|
|
381
|
-
if (1 === payload._status)
|
|
382
|
-
return ioInfo = payload._result, void 0 === ioInfo && console.error(
|
|
383
|
-
"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?",
|
|
384
|
-
ioInfo
|
|
385
|
-
), "default" in ioInfo || console.error(
|
|
386
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
387
|
-
ioInfo
|
|
388
|
-
), ioInfo.default;
|
|
389
|
-
throw payload._result;
|
|
390
|
-
}
|
|
391
|
-
function resolveDispatcher() {
|
|
392
|
-
var dispatcher = ReactSharedInternals.H;
|
|
393
|
-
null === dispatcher && console.error(
|
|
394
|
-
"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."
|
|
395
|
-
);
|
|
396
|
-
return dispatcher;
|
|
397
|
-
}
|
|
398
|
-
function releaseAsyncTransition() {
|
|
399
|
-
ReactSharedInternals.asyncTransitions--;
|
|
400
|
-
}
|
|
401
|
-
function enqueueTask(task) {
|
|
402
|
-
if (null === enqueueTaskImpl)
|
|
403
|
-
try {
|
|
404
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
405
|
-
enqueueTaskImpl = (module && module[requireString]).call(
|
|
406
|
-
module,
|
|
407
|
-
"timers"
|
|
408
|
-
).setImmediate;
|
|
409
|
-
} catch (_err) {
|
|
410
|
-
enqueueTaskImpl = function(callback) {
|
|
411
|
-
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
412
|
-
"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."
|
|
413
|
-
));
|
|
414
|
-
var channel = new MessageChannel();
|
|
415
|
-
channel.port1.onmessage = callback;
|
|
416
|
-
channel.port2.postMessage(void 0);
|
|
417
|
-
};
|
|
158
|
+
)), thenable.status) {
|
|
159
|
+
case "fulfilled":
|
|
160
|
+
return thenable.value;
|
|
161
|
+
case "rejected":
|
|
162
|
+
throw thenable.reason;
|
|
418
163
|
}
|
|
419
|
-
return enqueueTaskImpl(task);
|
|
420
|
-
}
|
|
421
|
-
function aggregateErrors(errors) {
|
|
422
|
-
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
423
164
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
var callback = queue[i];
|
|
453
|
-
do {
|
|
454
|
-
ReactSharedInternals.didUsePromise = false;
|
|
455
|
-
var continuation = callback(false);
|
|
456
|
-
if (null !== continuation) {
|
|
457
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
458
|
-
queue[i] = callback;
|
|
459
|
-
queue.splice(0, i);
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
callback = continuation;
|
|
463
|
-
} else break;
|
|
464
|
-
} while (1);
|
|
165
|
+
throw thenable;
|
|
166
|
+
}
|
|
167
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
168
|
+
var type = typeof children;
|
|
169
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
170
|
+
var invokeCallback = false;
|
|
171
|
+
if (null === children) invokeCallback = true;
|
|
172
|
+
else
|
|
173
|
+
switch (type) {
|
|
174
|
+
case "bigint":
|
|
175
|
+
case "string":
|
|
176
|
+
case "number":
|
|
177
|
+
invokeCallback = true;
|
|
178
|
+
break;
|
|
179
|
+
case "object":
|
|
180
|
+
switch (children.$$typeof) {
|
|
181
|
+
case REACT_ELEMENT_TYPE:
|
|
182
|
+
case REACT_PORTAL_TYPE:
|
|
183
|
+
invokeCallback = true;
|
|
184
|
+
break;
|
|
185
|
+
case REACT_LAZY_TYPE:
|
|
186
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
187
|
+
invokeCallback(children._payload),
|
|
188
|
+
array,
|
|
189
|
+
escapedPrefix,
|
|
190
|
+
nameSoFar,
|
|
191
|
+
callback
|
|
192
|
+
);
|
|
465
193
|
}
|
|
466
|
-
queue.length = 0;
|
|
467
|
-
} catch (error) {
|
|
468
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
469
|
-
} finally {
|
|
470
|
-
isFlushing = false;
|
|
471
|
-
}
|
|
472
194
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
throw Error(
|
|
494
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
195
|
+
if (invokeCallback)
|
|
196
|
+
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) {
|
|
197
|
+
return c;
|
|
198
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
199
|
+
callback,
|
|
200
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
201
|
+
userProvidedKeyEscapeRegex,
|
|
202
|
+
"$&/"
|
|
203
|
+
) + "/") + invokeCallback
|
|
204
|
+
)), array.push(callback)), 1;
|
|
205
|
+
invokeCallback = 0;
|
|
206
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
207
|
+
if (isArrayImpl(children))
|
|
208
|
+
for (var i = 0; i < children.length; i++)
|
|
209
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
210
|
+
nameSoFar,
|
|
211
|
+
array,
|
|
212
|
+
escapedPrefix,
|
|
213
|
+
type,
|
|
214
|
+
callback
|
|
495
215
|
);
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
505
|
-
],
|
|
506
|
-
replaceState: [
|
|
507
|
-
"replaceState",
|
|
508
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
509
|
-
]
|
|
510
|
-
};
|
|
511
|
-
for (fnName in deprecatedAPIs)
|
|
512
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
513
|
-
ComponentDummy.prototype = Component.prototype;
|
|
514
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
515
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
516
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
517
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
518
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
519
|
-
H: null,
|
|
520
|
-
A: null,
|
|
521
|
-
T: null,
|
|
522
|
-
S: null,
|
|
523
|
-
actQueue: null,
|
|
524
|
-
asyncTransitions: 0,
|
|
525
|
-
isBatchingLegacy: false,
|
|
526
|
-
didScheduleLegacyUpdate: false,
|
|
527
|
-
didUsePromise: false,
|
|
528
|
-
thrownErrors: [],
|
|
529
|
-
getCurrentStack: null,
|
|
530
|
-
recentlyCreatedOwnerStacks: 0
|
|
531
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
532
|
-
return null;
|
|
533
|
-
};
|
|
534
|
-
deprecatedAPIs = {
|
|
535
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
536
|
-
return callStackForError();
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
540
|
-
var didWarnAboutElementRef = {};
|
|
541
|
-
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
542
|
-
deprecatedAPIs,
|
|
543
|
-
UnknownOwner
|
|
544
|
-
)();
|
|
545
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
546
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
547
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
548
|
-
var event = new window.ErrorEvent("error", {
|
|
549
|
-
bubbles: true,
|
|
550
|
-
cancelable: true,
|
|
551
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
552
|
-
error
|
|
553
|
-
});
|
|
554
|
-
if (!window.dispatchEvent(event)) return;
|
|
555
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
556
|
-
process.emit("uncaughtException", error);
|
|
557
|
-
return;
|
|
558
|
-
}
|
|
559
|
-
console.error(error);
|
|
560
|
-
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
561
|
-
queueMicrotask(function() {
|
|
562
|
-
return queueMicrotask(callback);
|
|
563
|
-
});
|
|
564
|
-
} : enqueueTask;
|
|
565
|
-
deprecatedAPIs = Object.freeze({
|
|
566
|
-
__proto__: null,
|
|
567
|
-
c: function(size) {
|
|
568
|
-
return resolveDispatcher().useMemoCache(size);
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
var fnName = {
|
|
572
|
-
map: mapChildren,
|
|
573
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
574
|
-
mapChildren(
|
|
575
|
-
children,
|
|
576
|
-
function() {
|
|
577
|
-
forEachFunc.apply(this, arguments);
|
|
578
|
-
},
|
|
579
|
-
forEachContext
|
|
216
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
217
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
218
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
219
|
+
nameSoFar,
|
|
220
|
+
array,
|
|
221
|
+
escapedPrefix,
|
|
222
|
+
type,
|
|
223
|
+
callback
|
|
580
224
|
);
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
toArray: function(children) {
|
|
590
|
-
return mapChildren(children, function(child) {
|
|
591
|
-
return child;
|
|
592
|
-
}) || [];
|
|
593
|
-
},
|
|
594
|
-
only: function(children) {
|
|
595
|
-
if (!isValidElement(children))
|
|
596
|
-
throw Error(
|
|
597
|
-
"React.Children.only expected to receive a single React element child."
|
|
598
|
-
);
|
|
599
|
-
return children;
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
603
|
-
exports.Children = fnName;
|
|
604
|
-
exports.Component = Component;
|
|
605
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
606
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
607
|
-
exports.PureComponent = PureComponent;
|
|
608
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
609
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
610
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
611
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
612
|
-
exports.act = function(callback) {
|
|
613
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
614
|
-
actScopeDepth++;
|
|
615
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
616
|
-
try {
|
|
617
|
-
var result = callback();
|
|
618
|
-
} catch (error) {
|
|
619
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
620
|
-
}
|
|
621
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
622
|
-
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
623
|
-
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
624
|
-
var thenable = result;
|
|
625
|
-
queueSeveralMicrotasks(function() {
|
|
626
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
627
|
-
"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 () => ...);"
|
|
628
|
-
));
|
|
629
|
-
});
|
|
630
|
-
return {
|
|
631
|
-
then: function(resolve, reject) {
|
|
632
|
-
didAwaitActCall = true;
|
|
633
|
-
thenable.then(
|
|
634
|
-
function(returnValue) {
|
|
635
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
636
|
-
if (0 === prevActScopeDepth) {
|
|
637
|
-
try {
|
|
638
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
639
|
-
return recursivelyFlushAsyncActWork(
|
|
640
|
-
returnValue,
|
|
641
|
-
resolve,
|
|
642
|
-
reject
|
|
643
|
-
);
|
|
644
|
-
});
|
|
645
|
-
} catch (error$0) {
|
|
646
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
647
|
-
}
|
|
648
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
649
|
-
var _thrownError = aggregateErrors(
|
|
650
|
-
ReactSharedInternals.thrownErrors
|
|
651
|
-
);
|
|
652
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
653
|
-
reject(_thrownError);
|
|
654
|
-
}
|
|
655
|
-
} else resolve(returnValue);
|
|
656
|
-
},
|
|
657
|
-
function(error) {
|
|
658
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
659
|
-
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
660
|
-
ReactSharedInternals.thrownErrors
|
|
661
|
-
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
662
|
-
}
|
|
663
|
-
);
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
var returnValue$jscomp$0 = result;
|
|
668
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
669
|
-
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
670
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
671
|
-
"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(() => ...)"
|
|
672
|
-
));
|
|
673
|
-
}), ReactSharedInternals.actQueue = null);
|
|
674
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
675
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
676
|
-
return {
|
|
677
|
-
then: function(resolve, reject) {
|
|
678
|
-
didAwaitActCall = true;
|
|
679
|
-
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
680
|
-
return recursivelyFlushAsyncActWork(
|
|
681
|
-
returnValue$jscomp$0,
|
|
682
|
-
resolve,
|
|
683
|
-
reject
|
|
684
|
-
);
|
|
685
|
-
})) : resolve(returnValue$jscomp$0);
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
|
-
};
|
|
689
|
-
exports.cache = function(fn) {
|
|
690
|
-
return function() {
|
|
691
|
-
return fn.apply(null, arguments);
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
exports.cacheSignal = function() {
|
|
695
|
-
return null;
|
|
696
|
-
};
|
|
697
|
-
exports.captureOwnerStack = function() {
|
|
698
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
699
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
700
|
-
};
|
|
701
|
-
exports.cloneElement = function(element, config, children) {
|
|
702
|
-
if (null === element || void 0 === element)
|
|
703
|
-
throw Error(
|
|
704
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
225
|
+
else if ("object" === type) {
|
|
226
|
+
if ("function" === typeof children.then)
|
|
227
|
+
return mapIntoArray(
|
|
228
|
+
resolveThenable(children),
|
|
229
|
+
array,
|
|
230
|
+
escapedPrefix,
|
|
231
|
+
nameSoFar,
|
|
232
|
+
callback
|
|
705
233
|
);
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
a: {
|
|
710
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
711
|
-
config,
|
|
712
|
-
"ref"
|
|
713
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
714
|
-
JSCompiler_inline_result = false;
|
|
715
|
-
break a;
|
|
716
|
-
}
|
|
717
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
718
|
-
}
|
|
719
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
720
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
721
|
-
for (propName in config)
|
|
722
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
723
|
-
}
|
|
724
|
-
var propName = arguments.length - 2;
|
|
725
|
-
if (1 === propName) props.children = children;
|
|
726
|
-
else if (1 < propName) {
|
|
727
|
-
JSCompiler_inline_result = Array(propName);
|
|
728
|
-
for (var i = 0; i < propName; i++)
|
|
729
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
730
|
-
props.children = JSCompiler_inline_result;
|
|
731
|
-
}
|
|
732
|
-
props = ReactElement(
|
|
733
|
-
element.type,
|
|
734
|
-
key,
|
|
735
|
-
props,
|
|
736
|
-
owner,
|
|
737
|
-
element._debugStack,
|
|
738
|
-
element._debugTask
|
|
234
|
+
array = String(children);
|
|
235
|
+
throw Error(
|
|
236
|
+
"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."
|
|
739
237
|
);
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
defaultValue._currentRenderer2 = null;
|
|
760
|
-
return defaultValue;
|
|
761
|
-
};
|
|
762
|
-
exports.createElement = function(type, config, children) {
|
|
763
|
-
for (var i = 2; i < arguments.length; i++)
|
|
764
|
-
validateChildKeys(arguments[i]);
|
|
765
|
-
i = {};
|
|
766
|
-
var key = null;
|
|
767
|
-
if (null != config)
|
|
768
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
769
|
-
"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"
|
|
770
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
771
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
772
|
-
var childrenLength = arguments.length - 2;
|
|
773
|
-
if (1 === childrenLength) i.children = children;
|
|
774
|
-
else if (1 < childrenLength) {
|
|
775
|
-
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
776
|
-
childArray[_i] = arguments[_i + 2];
|
|
777
|
-
Object.freeze && Object.freeze(childArray);
|
|
778
|
-
i.children = childArray;
|
|
779
|
-
}
|
|
780
|
-
if (type && type.defaultProps)
|
|
781
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
782
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
783
|
-
key && defineKeyPropWarningGetter(
|
|
784
|
-
i,
|
|
785
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
786
|
-
);
|
|
787
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
788
|
-
return ReactElement(
|
|
789
|
-
type,
|
|
790
|
-
key,
|
|
791
|
-
i,
|
|
792
|
-
getOwner(),
|
|
793
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
794
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
795
|
-
);
|
|
796
|
-
};
|
|
797
|
-
exports.createRef = function() {
|
|
798
|
-
var refObject = { current: null };
|
|
799
|
-
Object.seal(refObject);
|
|
800
|
-
return refObject;
|
|
801
|
-
};
|
|
802
|
-
exports.forwardRef = function(render) {
|
|
803
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
804
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
805
|
-
) : "function" !== typeof render ? console.error(
|
|
806
|
-
"forwardRef requires a render function but was given %s.",
|
|
807
|
-
null === render ? "null" : typeof render
|
|
808
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
809
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
810
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
811
|
-
);
|
|
812
|
-
null != render && null != render.defaultProps && console.error(
|
|
813
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
814
|
-
);
|
|
815
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
816
|
-
Object.defineProperty(elementType, "displayName", {
|
|
817
|
-
enumerable: false,
|
|
818
|
-
configurable: true,
|
|
819
|
-
get: function() {
|
|
820
|
-
return ownName;
|
|
238
|
+
}
|
|
239
|
+
return invokeCallback;
|
|
240
|
+
}
|
|
241
|
+
function mapChildren(children, func, context) {
|
|
242
|
+
if (null == children) return children;
|
|
243
|
+
var result = [], count = 0;
|
|
244
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
245
|
+
return func.call(context, child, count++);
|
|
246
|
+
});
|
|
247
|
+
return result;
|
|
248
|
+
}
|
|
249
|
+
function lazyInitializer(payload) {
|
|
250
|
+
if (-1 === payload._status) {
|
|
251
|
+
var ctor = payload._result;
|
|
252
|
+
ctor = ctor();
|
|
253
|
+
ctor.then(
|
|
254
|
+
function(moduleObject) {
|
|
255
|
+
if (0 === payload._status || -1 === payload._status)
|
|
256
|
+
payload._status = 1, payload._result = moduleObject;
|
|
821
257
|
},
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
258
|
+
function(error) {
|
|
259
|
+
if (0 === payload._status || -1 === payload._status)
|
|
260
|
+
payload._status = 2, payload._result = error;
|
|
825
261
|
}
|
|
826
|
-
});
|
|
827
|
-
return elementType;
|
|
828
|
-
};
|
|
829
|
-
exports.isValidElement = isValidElement;
|
|
830
|
-
exports.lazy = function(ctor) {
|
|
831
|
-
ctor = { _status: -1, _result: ctor };
|
|
832
|
-
var lazyType = {
|
|
833
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
834
|
-
_payload: ctor,
|
|
835
|
-
_init: lazyInitializer
|
|
836
|
-
}, ioInfo = {
|
|
837
|
-
name: "lazy",
|
|
838
|
-
start: -1,
|
|
839
|
-
end: -1,
|
|
840
|
-
value: null,
|
|
841
|
-
owner: null,
|
|
842
|
-
debugStack: Error("react-stack-top-frame"),
|
|
843
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
844
|
-
};
|
|
845
|
-
ctor._ioInfo = ioInfo;
|
|
846
|
-
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
847
|
-
return lazyType;
|
|
848
|
-
};
|
|
849
|
-
exports.memo = function(type, compare) {
|
|
850
|
-
null == type && console.error(
|
|
851
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
852
|
-
null === type ? "null" : typeof type
|
|
853
262
|
);
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
set: function(name) {
|
|
867
|
-
ownName = name;
|
|
868
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
869
|
-
}
|
|
263
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
264
|
+
}
|
|
265
|
+
if (1 === payload._status) return payload._result.default;
|
|
266
|
+
throw payload._result;
|
|
267
|
+
}
|
|
268
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
269
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
270
|
+
var event = new window.ErrorEvent("error", {
|
|
271
|
+
bubbles: true,
|
|
272
|
+
cancelable: true,
|
|
273
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
274
|
+
error
|
|
870
275
|
});
|
|
871
|
-
return
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
888
|
-
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
exports.unstable_useCacheRefresh = function() {
|
|
892
|
-
return resolveDispatcher().useCacheRefresh();
|
|
893
|
-
};
|
|
894
|
-
exports.use = function(usable) {
|
|
895
|
-
return resolveDispatcher().use(usable);
|
|
896
|
-
};
|
|
897
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
898
|
-
return resolveDispatcher().useActionState(
|
|
899
|
-
action,
|
|
900
|
-
initialState,
|
|
901
|
-
permalink
|
|
902
|
-
);
|
|
903
|
-
};
|
|
904
|
-
exports.useCallback = function(callback, deps) {
|
|
905
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
906
|
-
};
|
|
907
|
-
exports.useContext = function(Context) {
|
|
908
|
-
var dispatcher = resolveDispatcher();
|
|
909
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
910
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
911
|
-
);
|
|
912
|
-
return dispatcher.useContext(Context);
|
|
913
|
-
};
|
|
914
|
-
exports.useDebugValue = function(value, formatterFn) {
|
|
915
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
916
|
-
};
|
|
917
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
918
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
919
|
-
};
|
|
920
|
-
exports.useEffect = function(create, deps) {
|
|
921
|
-
null == create && console.warn(
|
|
922
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
923
|
-
);
|
|
924
|
-
return resolveDispatcher().useEffect(create, deps);
|
|
925
|
-
};
|
|
926
|
-
exports.useEffectEvent = function(callback) {
|
|
927
|
-
return resolveDispatcher().useEffectEvent(callback);
|
|
928
|
-
};
|
|
929
|
-
exports.useId = function() {
|
|
930
|
-
return resolveDispatcher().useId();
|
|
931
|
-
};
|
|
932
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
933
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
934
|
-
};
|
|
935
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
936
|
-
null == create && console.warn(
|
|
937
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
276
|
+
if (!window.dispatchEvent(event)) return;
|
|
277
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
278
|
+
process.emit("uncaughtException", error);
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
console.error(error);
|
|
282
|
+
};
|
|
283
|
+
var Children = {
|
|
284
|
+
map: mapChildren,
|
|
285
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
286
|
+
mapChildren(
|
|
287
|
+
children,
|
|
288
|
+
function() {
|
|
289
|
+
forEachFunc.apply(this, arguments);
|
|
290
|
+
},
|
|
291
|
+
forEachContext
|
|
938
292
|
);
|
|
939
|
-
|
|
293
|
+
},
|
|
294
|
+
count: function(children) {
|
|
295
|
+
var n = 0;
|
|
296
|
+
mapChildren(children, function() {
|
|
297
|
+
n++;
|
|
298
|
+
});
|
|
299
|
+
return n;
|
|
300
|
+
},
|
|
301
|
+
toArray: function(children) {
|
|
302
|
+
return mapChildren(children, function(child) {
|
|
303
|
+
return child;
|
|
304
|
+
}) || [];
|
|
305
|
+
},
|
|
306
|
+
only: function(children) {
|
|
307
|
+
if (!isValidElement(children))
|
|
308
|
+
throw Error(
|
|
309
|
+
"React.Children.only expected to receive a single React element child."
|
|
310
|
+
);
|
|
311
|
+
return children;
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
315
|
+
exports.Children = Children;
|
|
316
|
+
exports.Component = Component;
|
|
317
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
318
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
319
|
+
exports.PureComponent = PureComponent;
|
|
320
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
321
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
322
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
323
|
+
exports.__COMPILER_RUNTIME = {
|
|
324
|
+
__proto__: null,
|
|
325
|
+
c: function(size) {
|
|
326
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
exports.cache = function(fn) {
|
|
330
|
+
return function() {
|
|
331
|
+
return fn.apply(null, arguments);
|
|
940
332
|
};
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
333
|
+
};
|
|
334
|
+
exports.cacheSignal = function() {
|
|
335
|
+
return null;
|
|
336
|
+
};
|
|
337
|
+
exports.cloneElement = function(element, config, children) {
|
|
338
|
+
if (null === element || void 0 === element)
|
|
339
|
+
throw Error(
|
|
340
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
944
341
|
);
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
|
|
342
|
+
var props = assign({}, element.props), key = element.key;
|
|
343
|
+
if (null != config)
|
|
344
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
345
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
346
|
+
var propName = arguments.length - 2;
|
|
347
|
+
if (1 === propName) props.children = children;
|
|
348
|
+
else if (1 < propName) {
|
|
349
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
350
|
+
childArray[i] = arguments[i + 2];
|
|
351
|
+
props.children = childArray;
|
|
352
|
+
}
|
|
353
|
+
return ReactElement(element.type, key, props);
|
|
354
|
+
};
|
|
355
|
+
exports.createContext = function(defaultValue) {
|
|
356
|
+
defaultValue = {
|
|
357
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
358
|
+
_currentValue: defaultValue,
|
|
359
|
+
_currentValue2: defaultValue,
|
|
360
|
+
_threadCount: 0,
|
|
361
|
+
Provider: null,
|
|
362
|
+
Consumer: null
|
|
958
363
|
};
|
|
959
|
-
|
|
960
|
-
|
|
364
|
+
defaultValue.Provider = defaultValue;
|
|
365
|
+
defaultValue.Consumer = {
|
|
366
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
367
|
+
_context: defaultValue
|
|
961
368
|
};
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
)
|
|
369
|
+
return defaultValue;
|
|
370
|
+
};
|
|
371
|
+
exports.createElement = function(type, config, children) {
|
|
372
|
+
var propName, props = {}, key = null;
|
|
373
|
+
if (null != config)
|
|
374
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
375
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
376
|
+
var childrenLength = arguments.length - 2;
|
|
377
|
+
if (1 === childrenLength) props.children = children;
|
|
378
|
+
else if (1 < childrenLength) {
|
|
379
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
380
|
+
childArray[i] = arguments[i + 2];
|
|
381
|
+
props.children = childArray;
|
|
382
|
+
}
|
|
383
|
+
if (type && type.defaultProps)
|
|
384
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
385
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
386
|
+
return ReactElement(type, key, props);
|
|
387
|
+
};
|
|
388
|
+
exports.createRef = function() {
|
|
389
|
+
return { current: null };
|
|
390
|
+
};
|
|
391
|
+
exports.forwardRef = function(render) {
|
|
392
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
393
|
+
};
|
|
394
|
+
exports.isValidElement = isValidElement;
|
|
395
|
+
exports.lazy = function(ctor) {
|
|
396
|
+
return {
|
|
397
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
398
|
+
_payload: { _status: -1, _result: ctor },
|
|
399
|
+
_init: lazyInitializer
|
|
968
400
|
};
|
|
969
|
-
|
|
970
|
-
|
|
401
|
+
};
|
|
402
|
+
exports.memo = function(type, compare) {
|
|
403
|
+
return {
|
|
404
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
405
|
+
type,
|
|
406
|
+
compare: void 0 === compare ? null : compare
|
|
971
407
|
};
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
408
|
+
};
|
|
409
|
+
exports.startTransition = function(scope) {
|
|
410
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
411
|
+
ReactSharedInternals.T = currentTransition;
|
|
412
|
+
try {
|
|
413
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
414
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
415
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
416
|
+
} catch (error) {
|
|
417
|
+
reportGlobalError(error);
|
|
418
|
+
} finally {
|
|
419
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
exports.unstable_useCacheRefresh = function() {
|
|
423
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
424
|
+
};
|
|
425
|
+
exports.use = function(usable) {
|
|
426
|
+
return ReactSharedInternals.H.use(usable);
|
|
427
|
+
};
|
|
428
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
429
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
430
|
+
};
|
|
431
|
+
exports.useCallback = function(callback, deps) {
|
|
432
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
433
|
+
};
|
|
434
|
+
exports.useContext = function(Context) {
|
|
435
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
436
|
+
};
|
|
437
|
+
exports.useDebugValue = function() {
|
|
438
|
+
};
|
|
439
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
440
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
441
|
+
};
|
|
442
|
+
exports.useEffect = function(create, deps) {
|
|
443
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
444
|
+
};
|
|
445
|
+
exports.useEffectEvent = function(callback) {
|
|
446
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
447
|
+
};
|
|
448
|
+
exports.useId = function() {
|
|
449
|
+
return ReactSharedInternals.H.useId();
|
|
450
|
+
};
|
|
451
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
452
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
453
|
+
};
|
|
454
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
455
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
456
|
+
};
|
|
457
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
458
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
459
|
+
};
|
|
460
|
+
exports.useMemo = function(create, deps) {
|
|
461
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
462
|
+
};
|
|
463
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
464
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
465
|
+
};
|
|
466
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
467
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
468
|
+
};
|
|
469
|
+
exports.useRef = function(initialValue) {
|
|
470
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
471
|
+
};
|
|
472
|
+
exports.useState = function(initialState) {
|
|
473
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
474
|
+
};
|
|
475
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
476
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
477
|
+
subscribe,
|
|
478
|
+
getSnapshot,
|
|
479
|
+
getServerSnapshot
|
|
480
|
+
);
|
|
481
|
+
};
|
|
482
|
+
exports.useTransition = function() {
|
|
483
|
+
return ReactSharedInternals.H.useTransition();
|
|
484
|
+
};
|
|
485
|
+
exports.version = "19.2.1";
|
|
975
486
|
}
|
|
976
487
|
});
|
|
977
488
|
|
|
@@ -979,524 +490,160 @@ var require_react_development = __commonJS({
|
|
|
979
490
|
var require_react = __commonJS({
|
|
980
491
|
"../../../node_modules/react/index.js"(exports, module) {
|
|
981
492
|
"use strict";
|
|
982
|
-
if (
|
|
983
|
-
module.exports =
|
|
493
|
+
if (true) {
|
|
494
|
+
module.exports = require_react_production();
|
|
984
495
|
} else {
|
|
985
|
-
module.exports =
|
|
496
|
+
module.exports = null;
|
|
986
497
|
}
|
|
987
498
|
}
|
|
988
499
|
});
|
|
989
500
|
|
|
990
|
-
// ../../../node_modules/react/cjs/react-
|
|
991
|
-
var
|
|
992
|
-
"../../../node_modules/react/cjs/react-
|
|
501
|
+
// ../../../node_modules/react-dom/cjs/react-dom.production.js
|
|
502
|
+
var require_react_dom_production = __commonJS({
|
|
503
|
+
"../../../node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
993
504
|
"use strict";
|
|
994
|
-
(
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
case REACT_FRAGMENT_TYPE:
|
|
1002
|
-
return "Fragment";
|
|
1003
|
-
case REACT_PROFILER_TYPE:
|
|
1004
|
-
return "Profiler";
|
|
1005
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1006
|
-
return "StrictMode";
|
|
1007
|
-
case REACT_SUSPENSE_TYPE:
|
|
1008
|
-
return "Suspense";
|
|
1009
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1010
|
-
return "SuspenseList";
|
|
1011
|
-
case REACT_ACTIVITY_TYPE:
|
|
1012
|
-
return "Activity";
|
|
1013
|
-
}
|
|
1014
|
-
if ("object" === typeof type)
|
|
1015
|
-
switch ("number" === typeof type.tag && console.error(
|
|
1016
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1017
|
-
), type.$$typeof) {
|
|
1018
|
-
case REACT_PORTAL_TYPE:
|
|
1019
|
-
return "Portal";
|
|
1020
|
-
case REACT_CONTEXT_TYPE:
|
|
1021
|
-
return type.displayName || "Context";
|
|
1022
|
-
case REACT_CONSUMER_TYPE:
|
|
1023
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1024
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1025
|
-
var innerType = type.render;
|
|
1026
|
-
type = type.displayName;
|
|
1027
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1028
|
-
return type;
|
|
1029
|
-
case REACT_MEMO_TYPE:
|
|
1030
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1031
|
-
case REACT_LAZY_TYPE:
|
|
1032
|
-
innerType = type._payload;
|
|
1033
|
-
type = type._init;
|
|
1034
|
-
try {
|
|
1035
|
-
return getComponentNameFromType(type(innerType));
|
|
1036
|
-
} catch (x) {
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
return null;
|
|
1040
|
-
}
|
|
1041
|
-
function testStringCoercion(value) {
|
|
1042
|
-
return "" + value;
|
|
1043
|
-
}
|
|
1044
|
-
function checkKeyStringCoercion(value) {
|
|
1045
|
-
try {
|
|
1046
|
-
testStringCoercion(value);
|
|
1047
|
-
var JSCompiler_inline_result = false;
|
|
1048
|
-
} catch (e) {
|
|
1049
|
-
JSCompiler_inline_result = true;
|
|
1050
|
-
}
|
|
1051
|
-
if (JSCompiler_inline_result) {
|
|
1052
|
-
JSCompiler_inline_result = console;
|
|
1053
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1054
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1055
|
-
JSCompiler_temp_const.call(
|
|
1056
|
-
JSCompiler_inline_result,
|
|
1057
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1058
|
-
JSCompiler_inline_result$jscomp$0
|
|
1059
|
-
);
|
|
1060
|
-
return testStringCoercion(value);
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
function getTaskName(type) {
|
|
1064
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
1065
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1066
|
-
return "<...>";
|
|
1067
|
-
try {
|
|
1068
|
-
var name = getComponentNameFromType(type);
|
|
1069
|
-
return name ? "<" + name + ">" : "<...>";
|
|
1070
|
-
} catch (x) {
|
|
1071
|
-
return "<...>";
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
function getOwner() {
|
|
1075
|
-
var dispatcher = ReactSharedInternals.A;
|
|
1076
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1077
|
-
}
|
|
1078
|
-
function UnknownOwner() {
|
|
1079
|
-
return Error("react-stack-top-frame");
|
|
1080
|
-
}
|
|
1081
|
-
function hasValidKey(config) {
|
|
1082
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1083
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1084
|
-
if (getter && getter.isReactWarning) return false;
|
|
1085
|
-
}
|
|
1086
|
-
return void 0 !== config.key;
|
|
1087
|
-
}
|
|
1088
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
1089
|
-
function warnAboutAccessingKey() {
|
|
1090
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1091
|
-
"%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)",
|
|
1092
|
-
displayName
|
|
1093
|
-
));
|
|
1094
|
-
}
|
|
1095
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
1096
|
-
Object.defineProperty(props, "key", {
|
|
1097
|
-
get: warnAboutAccessingKey,
|
|
1098
|
-
configurable: true
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1102
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1103
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1104
|
-
"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."
|
|
1105
|
-
));
|
|
1106
|
-
componentName = this.props.ref;
|
|
1107
|
-
return void 0 !== componentName ? componentName : null;
|
|
1108
|
-
}
|
|
1109
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
1110
|
-
var refProp = props.ref;
|
|
1111
|
-
type = {
|
|
1112
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1113
|
-
type,
|
|
1114
|
-
key,
|
|
1115
|
-
props,
|
|
1116
|
-
_owner: owner
|
|
1117
|
-
};
|
|
1118
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1119
|
-
enumerable: false,
|
|
1120
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1121
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1122
|
-
type._store = {};
|
|
1123
|
-
Object.defineProperty(type._store, "validated", {
|
|
1124
|
-
configurable: false,
|
|
1125
|
-
enumerable: false,
|
|
1126
|
-
writable: true,
|
|
1127
|
-
value: 0
|
|
1128
|
-
});
|
|
1129
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1130
|
-
configurable: false,
|
|
1131
|
-
enumerable: false,
|
|
1132
|
-
writable: true,
|
|
1133
|
-
value: null
|
|
1134
|
-
});
|
|
1135
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1136
|
-
configurable: false,
|
|
1137
|
-
enumerable: false,
|
|
1138
|
-
writable: true,
|
|
1139
|
-
value: debugStack
|
|
1140
|
-
});
|
|
1141
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1142
|
-
configurable: false,
|
|
1143
|
-
enumerable: false,
|
|
1144
|
-
writable: true,
|
|
1145
|
-
value: debugTask
|
|
1146
|
-
});
|
|
1147
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1148
|
-
return type;
|
|
1149
|
-
}
|
|
1150
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1151
|
-
var children = config.children;
|
|
1152
|
-
if (void 0 !== children)
|
|
1153
|
-
if (isStaticChildren)
|
|
1154
|
-
if (isArrayImpl(children)) {
|
|
1155
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1156
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1157
|
-
Object.freeze && Object.freeze(children);
|
|
1158
|
-
} else
|
|
1159
|
-
console.error(
|
|
1160
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1161
|
-
);
|
|
1162
|
-
else validateChildKeys(children);
|
|
1163
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1164
|
-
children = getComponentNameFromType(type);
|
|
1165
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
1166
|
-
return "key" !== k;
|
|
1167
|
-
});
|
|
1168
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1169
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1170
|
-
'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} />',
|
|
1171
|
-
isStaticChildren,
|
|
1172
|
-
children,
|
|
1173
|
-
keys,
|
|
1174
|
-
children
|
|
1175
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1176
|
-
}
|
|
1177
|
-
children = null;
|
|
1178
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1179
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1180
|
-
if ("key" in config) {
|
|
1181
|
-
maybeKey = {};
|
|
1182
|
-
for (var propName in config)
|
|
1183
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1184
|
-
} else maybeKey = config;
|
|
1185
|
-
children && defineKeyPropWarningGetter(
|
|
1186
|
-
maybeKey,
|
|
1187
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1188
|
-
);
|
|
1189
|
-
return ReactElement(
|
|
1190
|
-
type,
|
|
1191
|
-
children,
|
|
1192
|
-
maybeKey,
|
|
1193
|
-
getOwner(),
|
|
1194
|
-
debugStack,
|
|
1195
|
-
debugTask
|
|
1196
|
-
);
|
|
1197
|
-
}
|
|
1198
|
-
function validateChildKeys(node) {
|
|
1199
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1200
|
-
}
|
|
1201
|
-
function isValidElement(object) {
|
|
1202
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
505
|
+
var React = require_react();
|
|
506
|
+
function formatProdErrorMessage(code) {
|
|
507
|
+
var url = "https://react.dev/errors/" + code;
|
|
508
|
+
if (1 < arguments.length) {
|
|
509
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
510
|
+
for (var i = 2; i < arguments.length; i++)
|
|
511
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
1203
512
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
return jsxDEVImpl(
|
|
1235
|
-
type,
|
|
1236
|
-
config,
|
|
1237
|
-
maybeKey,
|
|
1238
|
-
true,
|
|
1239
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1240
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1241
|
-
);
|
|
513
|
+
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
514
|
+
}
|
|
515
|
+
function noop() {
|
|
516
|
+
}
|
|
517
|
+
var Internals = {
|
|
518
|
+
d: {
|
|
519
|
+
f: noop,
|
|
520
|
+
r: function() {
|
|
521
|
+
throw Error(formatProdErrorMessage(522));
|
|
522
|
+
},
|
|
523
|
+
D: noop,
|
|
524
|
+
C: noop,
|
|
525
|
+
L: noop,
|
|
526
|
+
m: noop,
|
|
527
|
+
X: noop,
|
|
528
|
+
S: noop,
|
|
529
|
+
M: noop
|
|
530
|
+
},
|
|
531
|
+
p: 0,
|
|
532
|
+
findDOMNode: null
|
|
533
|
+
};
|
|
534
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
535
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
536
|
+
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
537
|
+
return {
|
|
538
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
539
|
+
key: null == key ? null : "" + key,
|
|
540
|
+
children,
|
|
541
|
+
containerInfo,
|
|
542
|
+
implementation
|
|
1242
543
|
};
|
|
1243
|
-
})();
|
|
1244
|
-
}
|
|
1245
|
-
});
|
|
1246
|
-
|
|
1247
|
-
// ../../../node_modules/react/jsx-runtime.js
|
|
1248
|
-
var require_jsx_runtime = __commonJS({
|
|
1249
|
-
"../../../node_modules/react/jsx-runtime.js"(exports, module) {
|
|
1250
|
-
"use strict";
|
|
1251
|
-
if (false) {
|
|
1252
|
-
module.exports = null;
|
|
1253
|
-
} else {
|
|
1254
|
-
module.exports = require_react_jsx_runtime_development();
|
|
1255
544
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
JSCompiler_inline_result = true;
|
|
1276
|
-
}
|
|
1277
|
-
JSCompiler_inline_result && (console.error(
|
|
1278
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1279
|
-
"function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
|
|
1280
|
-
), testStringCoercion(key));
|
|
1281
|
-
return {
|
|
1282
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
1283
|
-
key: null == key ? null : "" + key,
|
|
1284
|
-
children,
|
|
1285
|
-
containerInfo,
|
|
1286
|
-
implementation
|
|
1287
|
-
};
|
|
1288
|
-
}
|
|
1289
|
-
function getCrossOriginStringAs(as, input) {
|
|
1290
|
-
if ("font" === as) return "";
|
|
1291
|
-
if ("string" === typeof input)
|
|
1292
|
-
return "use-credentials" === input ? input : "";
|
|
1293
|
-
}
|
|
1294
|
-
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
1295
|
-
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
|
|
1296
|
-
}
|
|
1297
|
-
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
1298
|
-
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
|
545
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
546
|
+
function getCrossOriginStringAs(as, input) {
|
|
547
|
+
if ("font" === as) return "";
|
|
548
|
+
if ("string" === typeof input)
|
|
549
|
+
return "use-credentials" === input ? input : "";
|
|
550
|
+
}
|
|
551
|
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
552
|
+
exports.createPortal = function(children, container) {
|
|
553
|
+
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
554
|
+
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
555
|
+
throw Error(formatProdErrorMessage(299));
|
|
556
|
+
return createPortal$1(children, container, null, key);
|
|
557
|
+
};
|
|
558
|
+
exports.flushSync = function(fn) {
|
|
559
|
+
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
560
|
+
try {
|
|
561
|
+
if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
|
|
562
|
+
} finally {
|
|
563
|
+
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
|
|
1299
564
|
}
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
565
|
+
};
|
|
566
|
+
exports.preconnect = function(href, options) {
|
|
567
|
+
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
568
|
+
};
|
|
569
|
+
exports.prefetchDNS = function(href) {
|
|
570
|
+
"string" === typeof href && Internals.d.D(href);
|
|
571
|
+
};
|
|
572
|
+
exports.preinit = function(href, options) {
|
|
573
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
574
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
575
|
+
"style" === as ? Internals.d.S(
|
|
576
|
+
href,
|
|
577
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
578
|
+
{
|
|
579
|
+
crossOrigin,
|
|
580
|
+
integrity,
|
|
581
|
+
fetchPriority
|
|
582
|
+
}
|
|
583
|
+
) : "script" === as && Internals.d.X(href, {
|
|
584
|
+
crossOrigin,
|
|
585
|
+
integrity,
|
|
586
|
+
fetchPriority,
|
|
587
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
588
|
+
});
|
|
1306
589
|
}
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
590
|
+
};
|
|
591
|
+
exports.preinitModule = function(href, options) {
|
|
592
|
+
if ("string" === typeof href)
|
|
593
|
+
if ("object" === typeof options && null !== options) {
|
|
594
|
+
if (null == options.as || "script" === options.as) {
|
|
595
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
596
|
+
options.as,
|
|
597
|
+
options.crossOrigin
|
|
1314
598
|
);
|
|
1315
|
-
|
|
1316
|
-
D: noop,
|
|
1317
|
-
C: noop,
|
|
1318
|
-
L: noop,
|
|
1319
|
-
m: noop,
|
|
1320
|
-
X: noop,
|
|
1321
|
-
S: noop,
|
|
1322
|
-
M: noop
|
|
1323
|
-
},
|
|
1324
|
-
p: 0,
|
|
1325
|
-
findDOMNode: null
|
|
1326
|
-
}, REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1327
|
-
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
1328
|
-
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
1329
|
-
);
|
|
1330
|
-
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
1331
|
-
exports.createPortal = function(children, container) {
|
|
1332
|
-
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
1333
|
-
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
1334
|
-
throw Error("Target container is not a DOM element.");
|
|
1335
|
-
return createPortal$1(children, container, null, key);
|
|
1336
|
-
};
|
|
1337
|
-
exports.flushSync = function(fn) {
|
|
1338
|
-
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
1339
|
-
try {
|
|
1340
|
-
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
|
1341
|
-
return fn();
|
|
1342
|
-
} finally {
|
|
1343
|
-
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
|
|
1344
|
-
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
1345
|
-
);
|
|
1346
|
-
}
|
|
1347
|
-
};
|
|
1348
|
-
exports.preconnect = function(href, options) {
|
|
1349
|
-
"string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
|
|
1350
|
-
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
1351
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1352
|
-
) : null != options && "string" !== typeof options.crossOrigin && console.error(
|
|
1353
|
-
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
1354
|
-
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
1355
|
-
) : console.error(
|
|
1356
|
-
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
1357
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
1358
|
-
);
|
|
1359
|
-
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
1360
|
-
};
|
|
1361
|
-
exports.prefetchDNS = function(href) {
|
|
1362
|
-
if ("string" !== typeof href || !href)
|
|
1363
|
-
console.error(
|
|
1364
|
-
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
1365
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
1366
|
-
);
|
|
1367
|
-
else if (1 < arguments.length) {
|
|
1368
|
-
var options = arguments[1];
|
|
1369
|
-
"object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
|
|
1370
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
1371
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1372
|
-
) : console.error(
|
|
1373
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
1374
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
"string" === typeof href && Internals.d.D(href);
|
|
1378
|
-
};
|
|
1379
|
-
exports.preinit = function(href, options) {
|
|
1380
|
-
"string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
|
|
1381
|
-
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
1382
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1383
|
-
) : "style" !== options.as && "script" !== options.as && console.error(
|
|
1384
|
-
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
1385
|
-
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
1386
|
-
) : console.error(
|
|
1387
|
-
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
1388
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
1389
|
-
);
|
|
1390
|
-
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
1391
|
-
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
1392
|
-
"style" === as ? Internals.d.S(
|
|
1393
|
-
href,
|
|
1394
|
-
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
1395
|
-
{
|
|
599
|
+
Internals.d.M(href, {
|
|
1396
600
|
crossOrigin,
|
|
1397
|
-
integrity,
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
) : "script" === as && Internals.d.X(href, {
|
|
1401
|
-
crossOrigin,
|
|
1402
|
-
integrity,
|
|
1403
|
-
fetchPriority,
|
|
1404
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
};
|
|
1408
|
-
exports.preinitModule = function(href, options) {
|
|
1409
|
-
var encountered = "";
|
|
1410
|
-
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
1411
|
-
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
|
1412
|
-
if (encountered)
|
|
1413
|
-
console.error(
|
|
1414
|
-
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
1415
|
-
encountered
|
|
1416
|
-
);
|
|
1417
|
-
else
|
|
1418
|
-
switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
|
|
1419
|
-
case "script":
|
|
1420
|
-
break;
|
|
1421
|
-
default:
|
|
1422
|
-
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
|
|
1423
|
-
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
1424
|
-
encountered,
|
|
1425
|
-
href
|
|
1426
|
-
);
|
|
601
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
602
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
603
|
+
});
|
|
1427
604
|
}
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
)
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
encountered,
|
|
1453
|
-
options.crossOrigin
|
|
1454
|
-
);
|
|
1455
|
-
Internals.d.L(href, encountered, {
|
|
605
|
+
} else null == options && Internals.d.M(href);
|
|
606
|
+
};
|
|
607
|
+
exports.preload = function(href, options) {
|
|
608
|
+
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
609
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
610
|
+
Internals.d.L(href, as, {
|
|
611
|
+
crossOrigin,
|
|
612
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
613
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
614
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
615
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
616
|
+
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
617
|
+
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
618
|
+
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
619
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
exports.preloadModule = function(href, options) {
|
|
624
|
+
if ("string" === typeof href)
|
|
625
|
+
if (options) {
|
|
626
|
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
627
|
+
Internals.d.m(href, {
|
|
628
|
+
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
1456
629
|
crossOrigin,
|
|
1457
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1458
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
1459
|
-
type: "string" === typeof options.type ? options.type : void 0,
|
|
1460
|
-
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
1461
|
-
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
1462
|
-
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
1463
|
-
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
1464
|
-
media: "string" === typeof options.media ? options.media : void 0
|
|
630
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1465
631
|
});
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
crossOrigin: encountered,
|
|
1482
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1483
|
-
})) : Internals.d.m(href));
|
|
1484
|
-
};
|
|
1485
|
-
exports.requestFormReset = function(form) {
|
|
1486
|
-
Internals.d.r(form);
|
|
1487
|
-
};
|
|
1488
|
-
exports.unstable_batchedUpdates = function(fn, a) {
|
|
1489
|
-
return fn(a);
|
|
1490
|
-
};
|
|
1491
|
-
exports.useFormState = function(action, initialState, permalink) {
|
|
1492
|
-
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
1493
|
-
};
|
|
1494
|
-
exports.useFormStatus = function() {
|
|
1495
|
-
return resolveDispatcher().useHostTransitionStatus();
|
|
1496
|
-
};
|
|
1497
|
-
exports.version = "19.2.1";
|
|
1498
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1499
|
-
})();
|
|
632
|
+
} else Internals.d.m(href);
|
|
633
|
+
};
|
|
634
|
+
exports.requestFormReset = function(form) {
|
|
635
|
+
Internals.d.r(form);
|
|
636
|
+
};
|
|
637
|
+
exports.unstable_batchedUpdates = function(fn, a) {
|
|
638
|
+
return fn(a);
|
|
639
|
+
};
|
|
640
|
+
exports.useFormState = function(action, initialState, permalink) {
|
|
641
|
+
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
642
|
+
};
|
|
643
|
+
exports.useFormStatus = function() {
|
|
644
|
+
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
645
|
+
};
|
|
646
|
+
exports.version = "19.2.1";
|
|
1500
647
|
}
|
|
1501
648
|
});
|
|
1502
649
|
|
|
@@ -1504,11 +651,24 @@ var require_react_dom_development = __commonJS({
|
|
|
1504
651
|
var require_react_dom = __commonJS({
|
|
1505
652
|
"../../../node_modules/react-dom/index.js"(exports, module) {
|
|
1506
653
|
"use strict";
|
|
1507
|
-
|
|
654
|
+
function checkDCE() {
|
|
655
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
if (false) {
|
|
659
|
+
throw new Error("^_^");
|
|
660
|
+
}
|
|
661
|
+
try {
|
|
662
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
663
|
+
} catch (err) {
|
|
664
|
+
console.error(err);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
if (true) {
|
|
1508
668
|
checkDCE();
|
|
1509
|
-
module.exports =
|
|
669
|
+
module.exports = require_react_dom_production();
|
|
1510
670
|
} else {
|
|
1511
|
-
module.exports =
|
|
671
|
+
module.exports = null;
|
|
1512
672
|
}
|
|
1513
673
|
}
|
|
1514
674
|
});
|
|
@@ -6436,10 +5596,10 @@ export {
|
|
|
6436
5596
|
};
|
|
6437
5597
|
/*! Bundled license information:
|
|
6438
5598
|
|
|
6439
|
-
react/cjs/react.
|
|
5599
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
6440
5600
|
(**
|
|
6441
5601
|
* @license React
|
|
6442
|
-
* react.
|
|
5602
|
+
* react-jsx-runtime.production.js
|
|
6443
5603
|
*
|
|
6444
5604
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6445
5605
|
*
|
|
@@ -6447,10 +5607,10 @@ react/cjs/react.development.js:
|
|
|
6447
5607
|
* LICENSE file in the root directory of this source tree.
|
|
6448
5608
|
*)
|
|
6449
5609
|
|
|
6450
|
-
react/cjs/react
|
|
5610
|
+
react/cjs/react.production.js:
|
|
6451
5611
|
(**
|
|
6452
5612
|
* @license React
|
|
6453
|
-
* react
|
|
5613
|
+
* react.production.js
|
|
6454
5614
|
*
|
|
6455
5615
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6456
5616
|
*
|
|
@@ -6458,10 +5618,10 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
6458
5618
|
* LICENSE file in the root directory of this source tree.
|
|
6459
5619
|
*)
|
|
6460
5620
|
|
|
6461
|
-
react-dom/cjs/react-dom.
|
|
5621
|
+
react-dom/cjs/react-dom.production.js:
|
|
6462
5622
|
(**
|
|
6463
5623
|
* @license React
|
|
6464
|
-
* react-dom.
|
|
5624
|
+
* react-dom.production.js
|
|
6465
5625
|
*
|
|
6466
5626
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6467
5627
|
*
|