jazz-tools 0.18.28 → 0.18.29
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/.turbo/turbo-build.log +58 -58
- package/CHANGELOG.md +10 -0
- package/dist/{chunk-YOL3XDDW.js → chunk-F55R554M.js} +34 -21
- package/dist/chunk-F55R554M.js.map +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/inspector/{custom-element-A7UAELEG.js → custom-element-35MDW4SW.js} +1840 -1837
- package/dist/inspector/{custom-element-A7UAELEG.js.map → custom-element-35MDW4SW.js.map} +1 -1
- package/dist/inspector/custom-element.d.ts.map +1 -1
- package/dist/inspector/index.d.ts +1 -1
- package/dist/inspector/index.d.ts.map +1 -1
- package/dist/inspector/index.js +0 -1
- package/dist/inspector/index.js.map +1 -1
- package/dist/inspector/register-custom-element.js +1 -1
- package/dist/testing.js +1 -1
- package/dist/tools/coValues/interfaces.d.ts +9 -2
- package/dist/tools/coValues/interfaces.d.ts.map +1 -1
- package/dist/tools/exports.d.ts +2 -2
- package/dist/tools/exports.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/inspector/custom-element.tsx +4 -0
- package/src/inspector/index.tsx +0 -2
- package/src/tools/coValues/coList.ts +3 -3
- package/src/tools/coValues/coMap.ts +3 -3
- package/src/tools/coValues/interfaces.ts +49 -18
- package/src/tools/exports.ts +1 -1
- package/src/tools/tests/coMap.unique.test.ts +106 -1
- package/dist/chunk-YOL3XDDW.js.map +0 -1
|
@@ -24,1944 +24,1944 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
mod
|
|
25
25
|
));
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/
|
|
28
|
-
var
|
|
29
|
-
"../../node_modules/
|
|
27
|
+
// ../../node_modules/react/cjs/react.production.js
|
|
28
|
+
var require_react_production = __commonJS({
|
|
29
|
+
"../../node_modules/react/cjs/react.production.js"(exports) {
|
|
30
30
|
"use strict";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
32
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
33
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
34
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
35
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
36
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
37
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
38
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
39
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
40
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
41
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
42
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
43
|
+
function getIteratorFn(maybeIterable) {
|
|
44
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
45
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
46
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
43
47
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
else if (rightIndex < length && 0 > compare(right, last))
|
|
54
|
-
heap[index] = right, heap[rightIndex] = last, index = rightIndex;
|
|
55
|
-
else break a;
|
|
56
|
-
}
|
|
48
|
+
var ReactNoopUpdateQueue = {
|
|
49
|
+
isMounted: function() {
|
|
50
|
+
return false;
|
|
51
|
+
},
|
|
52
|
+
enqueueForceUpdate: function() {
|
|
53
|
+
},
|
|
54
|
+
enqueueReplaceState: function() {
|
|
55
|
+
},
|
|
56
|
+
enqueueSetState: function() {
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
};
|
|
59
|
+
var assign = Object.assign;
|
|
60
|
+
var emptyObject = {};
|
|
61
|
+
function Component(props, context, updater) {
|
|
62
|
+
this.props = props;
|
|
63
|
+
this.context = context;
|
|
64
|
+
this.refs = emptyObject;
|
|
65
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
59
66
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
Component.prototype.isReactComponent = {};
|
|
68
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
69
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
70
|
+
throw Error(
|
|
71
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
72
|
+
);
|
|
73
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
74
|
+
};
|
|
75
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
76
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
77
|
+
};
|
|
78
|
+
function ComponentDummy() {
|
|
63
79
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
ComponentDummy.prototype = Component.prototype;
|
|
81
|
+
function PureComponent(props, context, updater) {
|
|
82
|
+
this.props = props;
|
|
83
|
+
this.context = context;
|
|
84
|
+
this.refs = emptyObject;
|
|
85
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
86
|
+
}
|
|
87
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
88
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
89
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
90
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
91
|
+
var isArrayImpl = Array.isArray;
|
|
92
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
93
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
94
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
95
|
+
self = props.ref;
|
|
96
|
+
return {
|
|
97
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
98
|
+
type,
|
|
99
|
+
key,
|
|
100
|
+
ref: void 0 !== self ? self : null,
|
|
101
|
+
props
|
|
74
102
|
};
|
|
75
103
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var isHostCallbackScheduled = false;
|
|
86
|
-
var isHostTimeoutScheduled = false;
|
|
87
|
-
var needsPaint = false;
|
|
88
|
-
var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
|
|
89
|
-
var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
|
|
90
|
-
var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
|
|
91
|
-
function advanceTimers(currentTime) {
|
|
92
|
-
for (var timer = peek(timerQueue); null !== timer; ) {
|
|
93
|
-
if (null === timer.callback) pop(timerQueue);
|
|
94
|
-
else if (timer.startTime <= currentTime)
|
|
95
|
-
pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
|
|
96
|
-
else break;
|
|
97
|
-
timer = peek(timerQueue);
|
|
98
|
-
}
|
|
104
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
105
|
+
return ReactElement(
|
|
106
|
+
oldElement.type,
|
|
107
|
+
newKey,
|
|
108
|
+
void 0,
|
|
109
|
+
void 0,
|
|
110
|
+
void 0,
|
|
111
|
+
oldElement.props
|
|
112
|
+
);
|
|
99
113
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
advanceTimers(currentTime);
|
|
103
|
-
if (!isHostCallbackScheduled)
|
|
104
|
-
if (null !== peek(taskQueue))
|
|
105
|
-
isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
|
|
106
|
-
else {
|
|
107
|
-
var firstTimer = peek(timerQueue);
|
|
108
|
-
null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
109
|
-
}
|
|
114
|
+
function isValidElement(object) {
|
|
115
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
110
116
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
|
|
117
|
+
function escape(key) {
|
|
118
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
119
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
120
|
+
return escaperLookup[match];
|
|
121
|
+
});
|
|
117
122
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
currentPriorityLevel = currentTask.priorityLevel;
|
|
138
|
-
var continuationCallback = callback(
|
|
139
|
-
currentTask.expirationTime <= currentTime
|
|
140
|
-
);
|
|
141
|
-
currentTime = exports.unstable_now();
|
|
142
|
-
if ("function" === typeof continuationCallback) {
|
|
143
|
-
currentTask.callback = continuationCallback;
|
|
144
|
-
advanceTimers(currentTime);
|
|
145
|
-
hasMoreWork = true;
|
|
146
|
-
break b;
|
|
147
|
-
}
|
|
148
|
-
currentTask === peek(taskQueue) && pop(taskQueue);
|
|
149
|
-
advanceTimers(currentTime);
|
|
150
|
-
} else pop(taskQueue);
|
|
151
|
-
currentTask = peek(taskQueue);
|
|
152
|
-
}
|
|
153
|
-
if (null !== currentTask) hasMoreWork = true;
|
|
154
|
-
else {
|
|
155
|
-
var firstTimer = peek(timerQueue);
|
|
156
|
-
null !== firstTimer && requestHostTimeout(
|
|
157
|
-
handleTimeout,
|
|
158
|
-
firstTimer.startTime - currentTime
|
|
159
|
-
);
|
|
160
|
-
hasMoreWork = false;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
break a;
|
|
164
|
-
} finally {
|
|
165
|
-
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
|
|
123
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
124
|
+
function getElementKey(element, index) {
|
|
125
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
126
|
+
}
|
|
127
|
+
function noop$1() {
|
|
128
|
+
}
|
|
129
|
+
function resolveThenable(thenable) {
|
|
130
|
+
switch (thenable.status) {
|
|
131
|
+
case "fulfilled":
|
|
132
|
+
return thenable.value;
|
|
133
|
+
case "rejected":
|
|
134
|
+
throw thenable.reason;
|
|
135
|
+
default:
|
|
136
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
137
|
+
function(fulfilledValue) {
|
|
138
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
139
|
+
},
|
|
140
|
+
function(error) {
|
|
141
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
166
142
|
}
|
|
167
|
-
|
|
143
|
+
)), thenable.status) {
|
|
144
|
+
case "fulfilled":
|
|
145
|
+
return thenable.value;
|
|
146
|
+
case "rejected":
|
|
147
|
+
throw thenable.reason;
|
|
168
148
|
}
|
|
169
|
-
|
|
170
|
-
|
|
149
|
+
}
|
|
150
|
+
throw thenable;
|
|
151
|
+
}
|
|
152
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
153
|
+
var type = typeof children;
|
|
154
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
155
|
+
var invokeCallback = false;
|
|
156
|
+
if (null === children) invokeCallback = true;
|
|
157
|
+
else
|
|
158
|
+
switch (type) {
|
|
159
|
+
case "bigint":
|
|
160
|
+
case "string":
|
|
161
|
+
case "number":
|
|
162
|
+
invokeCallback = true;
|
|
163
|
+
break;
|
|
164
|
+
case "object":
|
|
165
|
+
switch (children.$$typeof) {
|
|
166
|
+
case REACT_ELEMENT_TYPE:
|
|
167
|
+
case REACT_PORTAL_TYPE:
|
|
168
|
+
invokeCallback = true;
|
|
169
|
+
break;
|
|
170
|
+
case REACT_LAZY_TYPE:
|
|
171
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
172
|
+
invokeCallback(children._payload),
|
|
173
|
+
array,
|
|
174
|
+
escapedPrefix,
|
|
175
|
+
nameSoFar,
|
|
176
|
+
callback
|
|
177
|
+
);
|
|
178
|
+
}
|
|
171
179
|
}
|
|
180
|
+
if (invokeCallback)
|
|
181
|
+
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) {
|
|
182
|
+
return c;
|
|
183
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
184
|
+
callback,
|
|
185
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
186
|
+
userProvidedKeyEscapeRegex,
|
|
187
|
+
"$&/"
|
|
188
|
+
) + "/") + invokeCallback
|
|
189
|
+
)), array.push(callback)), 1;
|
|
190
|
+
invokeCallback = 0;
|
|
191
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
192
|
+
if (isArrayImpl(children))
|
|
193
|
+
for (var i = 0; i < children.length; i++)
|
|
194
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
195
|
+
nameSoFar,
|
|
196
|
+
array,
|
|
197
|
+
escapedPrefix,
|
|
198
|
+
type,
|
|
199
|
+
callback
|
|
200
|
+
);
|
|
201
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
202
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
203
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
204
|
+
nameSoFar,
|
|
205
|
+
array,
|
|
206
|
+
escapedPrefix,
|
|
207
|
+
type,
|
|
208
|
+
callback
|
|
209
|
+
);
|
|
210
|
+
else if ("object" === type) {
|
|
211
|
+
if ("function" === typeof children.then)
|
|
212
|
+
return mapIntoArray(
|
|
213
|
+
resolveThenable(children),
|
|
214
|
+
array,
|
|
215
|
+
escapedPrefix,
|
|
216
|
+
nameSoFar,
|
|
217
|
+
callback
|
|
218
|
+
);
|
|
219
|
+
array = String(children);
|
|
220
|
+
throw Error(
|
|
221
|
+
"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."
|
|
222
|
+
);
|
|
172
223
|
}
|
|
224
|
+
return invokeCallback;
|
|
173
225
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
channel.port1.onmessage = performWorkUntilDeadline;
|
|
182
|
-
schedulePerformWorkUntilDeadline = function() {
|
|
183
|
-
port.postMessage(null);
|
|
184
|
-
};
|
|
185
|
-
} else
|
|
186
|
-
schedulePerformWorkUntilDeadline = function() {
|
|
187
|
-
localSetTimeout(performWorkUntilDeadline, 0);
|
|
188
|
-
};
|
|
189
|
-
var channel;
|
|
190
|
-
var port;
|
|
191
|
-
function requestHostTimeout(callback, ms) {
|
|
192
|
-
taskTimeoutID = localSetTimeout(function() {
|
|
193
|
-
callback(exports.unstable_now());
|
|
194
|
-
}, ms);
|
|
226
|
+
function mapChildren(children, func, context) {
|
|
227
|
+
if (null == children) return children;
|
|
228
|
+
var result = [], count = 0;
|
|
229
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
230
|
+
return func.call(context, child, count++);
|
|
231
|
+
});
|
|
232
|
+
return result;
|
|
195
233
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return currentPriorityLevel;
|
|
212
|
-
};
|
|
213
|
-
exports.unstable_next = function(eventHandler) {
|
|
214
|
-
switch (currentPriorityLevel) {
|
|
215
|
-
case 1:
|
|
216
|
-
case 2:
|
|
217
|
-
case 3:
|
|
218
|
-
var priorityLevel = 3;
|
|
219
|
-
break;
|
|
220
|
-
default:
|
|
221
|
-
priorityLevel = currentPriorityLevel;
|
|
234
|
+
function lazyInitializer(payload) {
|
|
235
|
+
if (-1 === payload._status) {
|
|
236
|
+
var ctor = payload._result;
|
|
237
|
+
ctor = ctor();
|
|
238
|
+
ctor.then(
|
|
239
|
+
function(moduleObject) {
|
|
240
|
+
if (0 === payload._status || -1 === payload._status)
|
|
241
|
+
payload._status = 1, payload._result = moduleObject;
|
|
242
|
+
},
|
|
243
|
+
function(error) {
|
|
244
|
+
if (0 === payload._status || -1 === payload._status)
|
|
245
|
+
payload._status = 2, payload._result = error;
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
222
249
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
250
|
+
if (1 === payload._status) return payload._result.default;
|
|
251
|
+
throw payload._result;
|
|
252
|
+
}
|
|
253
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
254
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
255
|
+
var event = new window.ErrorEvent("error", {
|
|
256
|
+
bubbles: true,
|
|
257
|
+
cancelable: true,
|
|
258
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
259
|
+
error
|
|
260
|
+
});
|
|
261
|
+
if (!window.dispatchEvent(event)) return;
|
|
262
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
263
|
+
process.emit("uncaughtException", error);
|
|
264
|
+
return;
|
|
229
265
|
}
|
|
266
|
+
console.error(error);
|
|
230
267
|
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
268
|
+
function noop() {
|
|
269
|
+
}
|
|
270
|
+
exports.Children = {
|
|
271
|
+
map: mapChildren,
|
|
272
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
273
|
+
mapChildren(
|
|
274
|
+
children,
|
|
275
|
+
function() {
|
|
276
|
+
forEachFunc.apply(this, arguments);
|
|
277
|
+
},
|
|
278
|
+
forEachContext
|
|
279
|
+
);
|
|
280
|
+
},
|
|
281
|
+
count: function(children) {
|
|
282
|
+
var n = 0;
|
|
283
|
+
mapChildren(children, function() {
|
|
284
|
+
n++;
|
|
285
|
+
});
|
|
286
|
+
return n;
|
|
287
|
+
},
|
|
288
|
+
toArray: function(children) {
|
|
289
|
+
return mapChildren(children, function(child) {
|
|
290
|
+
return child;
|
|
291
|
+
}) || [];
|
|
292
|
+
},
|
|
293
|
+
only: function(children) {
|
|
294
|
+
if (!isValidElement(children))
|
|
295
|
+
throw Error(
|
|
296
|
+
"React.Children.only expected to receive a single React element child."
|
|
297
|
+
);
|
|
298
|
+
return children;
|
|
251
299
|
}
|
|
252
300
|
};
|
|
253
|
-
exports.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
timeout = 1073741823;
|
|
265
|
-
break;
|
|
266
|
-
case 4:
|
|
267
|
-
timeout = 1e4;
|
|
268
|
-
break;
|
|
269
|
-
default:
|
|
270
|
-
timeout = 5e3;
|
|
301
|
+
exports.Component = Component;
|
|
302
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
303
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
304
|
+
exports.PureComponent = PureComponent;
|
|
305
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
306
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
307
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
308
|
+
exports.__COMPILER_RUNTIME = {
|
|
309
|
+
__proto__: null,
|
|
310
|
+
c: function(size) {
|
|
311
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
271
312
|
}
|
|
272
|
-
timeout = options + timeout;
|
|
273
|
-
priorityLevel = {
|
|
274
|
-
id: taskIdCounter++,
|
|
275
|
-
callback,
|
|
276
|
-
priorityLevel,
|
|
277
|
-
startTime: options,
|
|
278
|
-
expirationTime: timeout,
|
|
279
|
-
sortIndex: -1
|
|
280
|
-
};
|
|
281
|
-
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
|
|
282
|
-
return priorityLevel;
|
|
283
313
|
};
|
|
284
|
-
exports.
|
|
285
|
-
exports.unstable_wrapCallback = function(callback) {
|
|
286
|
-
var parentPriorityLevel = currentPriorityLevel;
|
|
314
|
+
exports.cache = function(fn) {
|
|
287
315
|
return function() {
|
|
288
|
-
|
|
289
|
-
currentPriorityLevel = parentPriorityLevel;
|
|
290
|
-
try {
|
|
291
|
-
return callback.apply(this, arguments);
|
|
292
|
-
} finally {
|
|
293
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
294
|
-
}
|
|
316
|
+
return fn.apply(null, arguments);
|
|
295
317
|
};
|
|
296
318
|
};
|
|
297
|
-
|
|
298
|
-
|
|
319
|
+
exports.cloneElement = function(element, config, children) {
|
|
320
|
+
if (null === element || void 0 === element)
|
|
321
|
+
throw Error(
|
|
322
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
323
|
+
);
|
|
324
|
+
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
325
|
+
if (null != config)
|
|
326
|
+
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
327
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
328
|
+
var propName = arguments.length - 2;
|
|
329
|
+
if (1 === propName) props.children = children;
|
|
330
|
+
else if (1 < propName) {
|
|
331
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
332
|
+
childArray[i] = arguments[i + 2];
|
|
333
|
+
props.children = childArray;
|
|
334
|
+
}
|
|
335
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
336
|
+
};
|
|
337
|
+
exports.createContext = function(defaultValue) {
|
|
338
|
+
defaultValue = {
|
|
339
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
340
|
+
_currentValue: defaultValue,
|
|
341
|
+
_currentValue2: defaultValue,
|
|
342
|
+
_threadCount: 0,
|
|
343
|
+
Provider: null,
|
|
344
|
+
Consumer: null
|
|
345
|
+
};
|
|
346
|
+
defaultValue.Provider = defaultValue;
|
|
347
|
+
defaultValue.Consumer = {
|
|
348
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
349
|
+
_context: defaultValue
|
|
350
|
+
};
|
|
351
|
+
return defaultValue;
|
|
352
|
+
};
|
|
353
|
+
exports.createElement = function(type, config, children) {
|
|
354
|
+
var propName, props = {}, key = null;
|
|
355
|
+
if (null != config)
|
|
356
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
357
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
358
|
+
var childrenLength = arguments.length - 2;
|
|
359
|
+
if (1 === childrenLength) props.children = children;
|
|
360
|
+
else if (1 < childrenLength) {
|
|
361
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
362
|
+
childArray[i] = arguments[i + 2];
|
|
363
|
+
props.children = childArray;
|
|
364
|
+
}
|
|
365
|
+
if (type && type.defaultProps)
|
|
366
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
367
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
368
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
369
|
+
};
|
|
370
|
+
exports.createRef = function() {
|
|
371
|
+
return { current: null };
|
|
372
|
+
};
|
|
373
|
+
exports.forwardRef = function(render) {
|
|
374
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
375
|
+
};
|
|
376
|
+
exports.isValidElement = isValidElement;
|
|
377
|
+
exports.lazy = function(ctor) {
|
|
378
|
+
return {
|
|
379
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
380
|
+
_payload: { _status: -1, _result: ctor },
|
|
381
|
+
_init: lazyInitializer
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
exports.memo = function(type, compare) {
|
|
385
|
+
return {
|
|
386
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
387
|
+
type,
|
|
388
|
+
compare: void 0 === compare ? null : compare
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
exports.startTransition = function(scope) {
|
|
392
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
393
|
+
ReactSharedInternals.T = currentTransition;
|
|
394
|
+
try {
|
|
395
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
396
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
397
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
398
|
+
} catch (error) {
|
|
399
|
+
reportGlobalError(error);
|
|
400
|
+
} finally {
|
|
401
|
+
ReactSharedInternals.T = prevTransition;
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
exports.unstable_useCacheRefresh = function() {
|
|
405
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
406
|
+
};
|
|
407
|
+
exports.use = function(usable) {
|
|
408
|
+
return ReactSharedInternals.H.use(usable);
|
|
409
|
+
};
|
|
410
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
411
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
412
|
+
};
|
|
413
|
+
exports.useCallback = function(callback, deps) {
|
|
414
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
415
|
+
};
|
|
416
|
+
exports.useContext = function(Context) {
|
|
417
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
418
|
+
};
|
|
419
|
+
exports.useDebugValue = function() {
|
|
420
|
+
};
|
|
421
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
422
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
423
|
+
};
|
|
424
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
425
|
+
var dispatcher = ReactSharedInternals.H;
|
|
426
|
+
if ("function" === typeof update)
|
|
427
|
+
throw Error(
|
|
428
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
429
|
+
);
|
|
430
|
+
return dispatcher.useEffect(create, createDeps);
|
|
431
|
+
};
|
|
432
|
+
exports.useId = function() {
|
|
433
|
+
return ReactSharedInternals.H.useId();
|
|
434
|
+
};
|
|
435
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
436
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
437
|
+
};
|
|
438
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
439
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
440
|
+
};
|
|
441
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
442
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
443
|
+
};
|
|
444
|
+
exports.useMemo = function(create, deps) {
|
|
445
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
446
|
+
};
|
|
447
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
448
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
449
|
+
};
|
|
450
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
451
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
452
|
+
};
|
|
453
|
+
exports.useRef = function(initialValue) {
|
|
454
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
455
|
+
};
|
|
456
|
+
exports.useState = function(initialState) {
|
|
457
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
458
|
+
};
|
|
459
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
460
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
461
|
+
subscribe,
|
|
462
|
+
getSnapshot,
|
|
463
|
+
getServerSnapshot
|
|
464
|
+
);
|
|
465
|
+
};
|
|
466
|
+
exports.useTransition = function() {
|
|
467
|
+
return ReactSharedInternals.H.useTransition();
|
|
468
|
+
};
|
|
469
|
+
exports.version = "19.1.0";
|
|
470
|
+
}
|
|
471
|
+
});
|
|
299
472
|
|
|
300
|
-
// ../../node_modules/
|
|
301
|
-
var
|
|
302
|
-
"../../node_modules/
|
|
473
|
+
// ../../node_modules/react/cjs/react.development.js
|
|
474
|
+
var require_react_development = __commonJS({
|
|
475
|
+
"../../node_modules/react/cjs/react.development.js"(exports, module) {
|
|
303
476
|
"use strict";
|
|
304
477
|
"production" !== process.env.NODE_ENV && function() {
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
isHostCallbackScheduled = false;
|
|
314
|
-
isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
|
|
315
|
-
isPerformingWork = true;
|
|
316
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
317
|
-
try {
|
|
318
|
-
b: {
|
|
319
|
-
advanceTimers(currentTime);
|
|
320
|
-
for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
|
|
321
|
-
var callback = currentTask.callback;
|
|
322
|
-
if ("function" === typeof callback) {
|
|
323
|
-
currentTask.callback = null;
|
|
324
|
-
currentPriorityLevel = currentTask.priorityLevel;
|
|
325
|
-
var continuationCallback = callback(
|
|
326
|
-
currentTask.expirationTime <= currentTime
|
|
327
|
-
);
|
|
328
|
-
currentTime = exports.unstable_now();
|
|
329
|
-
if ("function" === typeof continuationCallback) {
|
|
330
|
-
currentTask.callback = continuationCallback;
|
|
331
|
-
advanceTimers(currentTime);
|
|
332
|
-
hasMoreWork = true;
|
|
333
|
-
break b;
|
|
334
|
-
}
|
|
335
|
-
currentTask === peek(taskQueue) && pop(taskQueue);
|
|
336
|
-
advanceTimers(currentTime);
|
|
337
|
-
} else pop(taskQueue);
|
|
338
|
-
currentTask = peek(taskQueue);
|
|
339
|
-
}
|
|
340
|
-
if (null !== currentTask) hasMoreWork = true;
|
|
341
|
-
else {
|
|
342
|
-
var firstTimer = peek(timerQueue);
|
|
343
|
-
null !== firstTimer && requestHostTimeout(
|
|
344
|
-
handleTimeout,
|
|
345
|
-
firstTimer.startTime - currentTime
|
|
346
|
-
);
|
|
347
|
-
hasMoreWork = false;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
break a;
|
|
351
|
-
} finally {
|
|
352
|
-
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
|
|
353
|
-
}
|
|
354
|
-
hasMoreWork = void 0;
|
|
355
|
-
}
|
|
356
|
-
} finally {
|
|
357
|
-
hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
|
|
478
|
+
function defineDeprecationWarning(methodName, info) {
|
|
479
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
480
|
+
get: function() {
|
|
481
|
+
console.warn(
|
|
482
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
483
|
+
info[0],
|
|
484
|
+
info[1]
|
|
485
|
+
);
|
|
358
486
|
}
|
|
359
|
-
}
|
|
487
|
+
});
|
|
360
488
|
}
|
|
361
|
-
function
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
if (0 < compare(parent, node))
|
|
367
|
-
heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
|
|
368
|
-
else break a;
|
|
369
|
-
}
|
|
489
|
+
function getIteratorFn(maybeIterable) {
|
|
490
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
491
|
+
return null;
|
|
492
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
493
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
370
494
|
}
|
|
371
|
-
function
|
|
372
|
-
|
|
495
|
+
function warnNoop(publicInstance, callerName) {
|
|
496
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
497
|
+
var warningKey = publicInstance + "." + callerName;
|
|
498
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
499
|
+
"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.",
|
|
500
|
+
callerName,
|
|
501
|
+
publicInstance
|
|
502
|
+
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
373
503
|
}
|
|
374
|
-
function
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
|
|
380
|
-
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
381
|
-
if (0 > compare(left, last))
|
|
382
|
-
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
|
|
383
|
-
else if (rightIndex < length && 0 > compare(right, last))
|
|
384
|
-
heap[index] = right, heap[rightIndex] = last, index = rightIndex;
|
|
385
|
-
else break a;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
return first;
|
|
504
|
+
function Component(props, context, updater) {
|
|
505
|
+
this.props = props;
|
|
506
|
+
this.context = context;
|
|
507
|
+
this.refs = emptyObject;
|
|
508
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
389
509
|
}
|
|
390
|
-
function
|
|
391
|
-
var diff = a.sortIndex - b.sortIndex;
|
|
392
|
-
return 0 !== diff ? diff : a.id - b.id;
|
|
510
|
+
function ComponentDummy() {
|
|
393
511
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
512
|
+
function PureComponent(props, context, updater) {
|
|
513
|
+
this.props = props;
|
|
514
|
+
this.context = context;
|
|
515
|
+
this.refs = emptyObject;
|
|
516
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
517
|
+
}
|
|
518
|
+
function testStringCoercion(value) {
|
|
519
|
+
return "" + value;
|
|
520
|
+
}
|
|
521
|
+
function checkKeyStringCoercion(value) {
|
|
522
|
+
try {
|
|
523
|
+
testStringCoercion(value);
|
|
524
|
+
var JSCompiler_inline_result = false;
|
|
525
|
+
} catch (e) {
|
|
526
|
+
JSCompiler_inline_result = true;
|
|
527
|
+
}
|
|
528
|
+
if (JSCompiler_inline_result) {
|
|
529
|
+
JSCompiler_inline_result = console;
|
|
530
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
531
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
532
|
+
JSCompiler_temp_const.call(
|
|
533
|
+
JSCompiler_inline_result,
|
|
534
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
535
|
+
JSCompiler_inline_result$jscomp$0
|
|
536
|
+
);
|
|
537
|
+
return testStringCoercion(value);
|
|
401
538
|
}
|
|
402
539
|
}
|
|
403
|
-
function
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
540
|
+
function getComponentNameFromType(type) {
|
|
541
|
+
if (null == type) return null;
|
|
542
|
+
if ("function" === typeof type)
|
|
543
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
544
|
+
if ("string" === typeof type) return type;
|
|
545
|
+
switch (type) {
|
|
546
|
+
case REACT_FRAGMENT_TYPE:
|
|
547
|
+
return "Fragment";
|
|
548
|
+
case REACT_PROFILER_TYPE:
|
|
549
|
+
return "Profiler";
|
|
550
|
+
case REACT_STRICT_MODE_TYPE:
|
|
551
|
+
return "StrictMode";
|
|
552
|
+
case REACT_SUSPENSE_TYPE:
|
|
553
|
+
return "Suspense";
|
|
554
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
555
|
+
return "SuspenseList";
|
|
556
|
+
case REACT_ACTIVITY_TYPE:
|
|
557
|
+
return "Activity";
|
|
558
|
+
}
|
|
559
|
+
if ("object" === typeof type)
|
|
560
|
+
switch ("number" === typeof type.tag && console.error(
|
|
561
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
562
|
+
), type.$$typeof) {
|
|
563
|
+
case REACT_PORTAL_TYPE:
|
|
564
|
+
return "Portal";
|
|
565
|
+
case REACT_CONTEXT_TYPE:
|
|
566
|
+
return (type.displayName || "Context") + ".Provider";
|
|
567
|
+
case REACT_CONSUMER_TYPE:
|
|
568
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
569
|
+
case REACT_FORWARD_REF_TYPE:
|
|
570
|
+
var innerType = type.render;
|
|
571
|
+
type = type.displayName;
|
|
572
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
573
|
+
return type;
|
|
574
|
+
case REACT_MEMO_TYPE:
|
|
575
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
576
|
+
case REACT_LAZY_TYPE:
|
|
577
|
+
innerType = type._payload;
|
|
578
|
+
type = type._init;
|
|
579
|
+
try {
|
|
580
|
+
return getComponentNameFromType(type(innerType));
|
|
581
|
+
} catch (x) {
|
|
582
|
+
}
|
|
415
583
|
}
|
|
584
|
+
return null;
|
|
416
585
|
}
|
|
417
|
-
function
|
|
418
|
-
|
|
586
|
+
function getTaskName(type) {
|
|
587
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
588
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
589
|
+
return "<...>";
|
|
590
|
+
try {
|
|
591
|
+
var name = getComponentNameFromType(type);
|
|
592
|
+
return name ? "<" + name + ">" : "<...>";
|
|
593
|
+
} catch (x) {
|
|
594
|
+
return "<...>";
|
|
595
|
+
}
|
|
419
596
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
}, ms);
|
|
597
|
+
function getOwner() {
|
|
598
|
+
var dispatcher = ReactSharedInternals.A;
|
|
599
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
424
600
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
428
|
-
var localPerformance = performance;
|
|
429
|
-
exports.unstable_now = function() {
|
|
430
|
-
return localPerformance.now();
|
|
431
|
-
};
|
|
432
|
-
} else {
|
|
433
|
-
var localDate = Date, initialTime = localDate.now();
|
|
434
|
-
exports.unstable_now = function() {
|
|
435
|
-
return localDate.now() - initialTime;
|
|
436
|
-
};
|
|
601
|
+
function UnknownOwner() {
|
|
602
|
+
return Error("react-stack-top-frame");
|
|
437
603
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
};
|
|
443
|
-
else if ("undefined" !== typeof MessageChannel) {
|
|
444
|
-
var channel = new MessageChannel(), port = channel.port2;
|
|
445
|
-
channel.port1.onmessage = performWorkUntilDeadline;
|
|
446
|
-
schedulePerformWorkUntilDeadline = function() {
|
|
447
|
-
port.postMessage(null);
|
|
448
|
-
};
|
|
449
|
-
} else
|
|
450
|
-
schedulePerformWorkUntilDeadline = function() {
|
|
451
|
-
localSetTimeout(performWorkUntilDeadline, 0);
|
|
452
|
-
};
|
|
453
|
-
exports.unstable_IdlePriority = 5;
|
|
454
|
-
exports.unstable_ImmediatePriority = 1;
|
|
455
|
-
exports.unstable_LowPriority = 4;
|
|
456
|
-
exports.unstable_NormalPriority = 3;
|
|
457
|
-
exports.unstable_Profiling = null;
|
|
458
|
-
exports.unstable_UserBlockingPriority = 2;
|
|
459
|
-
exports.unstable_cancelCallback = function(task) {
|
|
460
|
-
task.callback = null;
|
|
461
|
-
};
|
|
462
|
-
exports.unstable_forceFrameRate = function(fps) {
|
|
463
|
-
0 > fps || 125 < fps ? console.error(
|
|
464
|
-
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
|
|
465
|
-
) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
|
|
466
|
-
};
|
|
467
|
-
exports.unstable_getCurrentPriorityLevel = function() {
|
|
468
|
-
return currentPriorityLevel;
|
|
469
|
-
};
|
|
470
|
-
exports.unstable_next = function(eventHandler) {
|
|
471
|
-
switch (currentPriorityLevel) {
|
|
472
|
-
case 1:
|
|
473
|
-
case 2:
|
|
474
|
-
case 3:
|
|
475
|
-
var priorityLevel = 3;
|
|
476
|
-
break;
|
|
477
|
-
default:
|
|
478
|
-
priorityLevel = currentPriorityLevel;
|
|
479
|
-
}
|
|
480
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
481
|
-
currentPriorityLevel = priorityLevel;
|
|
482
|
-
try {
|
|
483
|
-
return eventHandler();
|
|
484
|
-
} finally {
|
|
485
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
exports.unstable_requestPaint = function() {
|
|
489
|
-
needsPaint = true;
|
|
490
|
-
};
|
|
491
|
-
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
492
|
-
switch (priorityLevel) {
|
|
493
|
-
case 1:
|
|
494
|
-
case 2:
|
|
495
|
-
case 3:
|
|
496
|
-
case 4:
|
|
497
|
-
case 5:
|
|
498
|
-
break;
|
|
499
|
-
default:
|
|
500
|
-
priorityLevel = 3;
|
|
501
|
-
}
|
|
502
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
503
|
-
currentPriorityLevel = priorityLevel;
|
|
504
|
-
try {
|
|
505
|
-
return eventHandler();
|
|
506
|
-
} finally {
|
|
507
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
604
|
+
function hasValidKey(config) {
|
|
605
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
606
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
607
|
+
if (getter && getter.isReactWarning) return false;
|
|
508
608
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
case 2:
|
|
518
|
-
timeout = 250;
|
|
519
|
-
break;
|
|
520
|
-
case 5:
|
|
521
|
-
timeout = 1073741823;
|
|
522
|
-
break;
|
|
523
|
-
case 4:
|
|
524
|
-
timeout = 1e4;
|
|
525
|
-
break;
|
|
526
|
-
default:
|
|
527
|
-
timeout = 5e3;
|
|
609
|
+
return void 0 !== config.key;
|
|
610
|
+
}
|
|
611
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
612
|
+
function warnAboutAccessingKey() {
|
|
613
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
614
|
+
"%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)",
|
|
615
|
+
displayName
|
|
616
|
+
));
|
|
528
617
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
startTime: options,
|
|
535
|
-
expirationTime: timeout,
|
|
536
|
-
sortIndex: -1
|
|
537
|
-
};
|
|
538
|
-
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
|
|
539
|
-
return priorityLevel;
|
|
540
|
-
};
|
|
541
|
-
exports.unstable_shouldYield = shouldYieldToHost;
|
|
542
|
-
exports.unstable_wrapCallback = function(callback) {
|
|
543
|
-
var parentPriorityLevel = currentPriorityLevel;
|
|
544
|
-
return function() {
|
|
545
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
546
|
-
currentPriorityLevel = parentPriorityLevel;
|
|
547
|
-
try {
|
|
548
|
-
return callback.apply(this, arguments);
|
|
549
|
-
} finally {
|
|
550
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
555
|
-
}();
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
// ../../node_modules/scheduler/index.js
|
|
560
|
-
var require_scheduler = __commonJS({
|
|
561
|
-
"../../node_modules/scheduler/index.js"(exports, module) {
|
|
562
|
-
"use strict";
|
|
563
|
-
if (process.env.NODE_ENV === "production") {
|
|
564
|
-
module.exports = require_scheduler_production();
|
|
565
|
-
} else {
|
|
566
|
-
module.exports = require_scheduler_development();
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
// ../../node_modules/react/cjs/react.production.js
|
|
572
|
-
var require_react_production = __commonJS({
|
|
573
|
-
"../../node_modules/react/cjs/react.production.js"(exports) {
|
|
574
|
-
"use strict";
|
|
575
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
576
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
577
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
578
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
579
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
580
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
581
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
582
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
583
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
584
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
585
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
586
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
587
|
-
function getIteratorFn(maybeIterable) {
|
|
588
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
589
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
590
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
591
|
-
}
|
|
592
|
-
var ReactNoopUpdateQueue = {
|
|
593
|
-
isMounted: function() {
|
|
594
|
-
return false;
|
|
595
|
-
},
|
|
596
|
-
enqueueForceUpdate: function() {
|
|
597
|
-
},
|
|
598
|
-
enqueueReplaceState: function() {
|
|
599
|
-
},
|
|
600
|
-
enqueueSetState: function() {
|
|
618
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
619
|
+
Object.defineProperty(props, "key", {
|
|
620
|
+
get: warnAboutAccessingKey,
|
|
621
|
+
configurable: true
|
|
622
|
+
});
|
|
601
623
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
610
|
-
}
|
|
611
|
-
Component.prototype.isReactComponent = {};
|
|
612
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
613
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
614
|
-
throw Error(
|
|
615
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
616
|
-
);
|
|
617
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
618
|
-
};
|
|
619
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
620
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
621
|
-
};
|
|
622
|
-
function ComponentDummy() {
|
|
623
|
-
}
|
|
624
|
-
ComponentDummy.prototype = Component.prototype;
|
|
625
|
-
function PureComponent(props, context, updater) {
|
|
626
|
-
this.props = props;
|
|
627
|
-
this.context = context;
|
|
628
|
-
this.refs = emptyObject;
|
|
629
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
630
|
-
}
|
|
631
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
632
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
633
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
634
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
635
|
-
var isArrayImpl = Array.isArray;
|
|
636
|
-
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
637
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
638
|
-
function ReactElement(type, key, self, source, owner, props) {
|
|
639
|
-
self = props.ref;
|
|
640
|
-
return {
|
|
641
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
642
|
-
type,
|
|
643
|
-
key,
|
|
644
|
-
ref: void 0 !== self ? self : null,
|
|
645
|
-
props
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
649
|
-
return ReactElement(
|
|
650
|
-
oldElement.type,
|
|
651
|
-
newKey,
|
|
652
|
-
void 0,
|
|
653
|
-
void 0,
|
|
654
|
-
void 0,
|
|
655
|
-
oldElement.props
|
|
656
|
-
);
|
|
657
|
-
}
|
|
658
|
-
function isValidElement(object) {
|
|
659
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
660
|
-
}
|
|
661
|
-
function escape(key) {
|
|
662
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
663
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
664
|
-
return escaperLookup[match];
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
668
|
-
function getElementKey(element, index) {
|
|
669
|
-
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
670
|
-
}
|
|
671
|
-
function noop$1() {
|
|
672
|
-
}
|
|
673
|
-
function resolveThenable(thenable) {
|
|
674
|
-
switch (thenable.status) {
|
|
675
|
-
case "fulfilled":
|
|
676
|
-
return thenable.value;
|
|
677
|
-
case "rejected":
|
|
678
|
-
throw thenable.reason;
|
|
679
|
-
default:
|
|
680
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
681
|
-
function(fulfilledValue) {
|
|
682
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
683
|
-
},
|
|
684
|
-
function(error) {
|
|
685
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
686
|
-
}
|
|
687
|
-
)), thenable.status) {
|
|
688
|
-
case "fulfilled":
|
|
689
|
-
return thenable.value;
|
|
690
|
-
case "rejected":
|
|
691
|
-
throw thenable.reason;
|
|
692
|
-
}
|
|
624
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
625
|
+
var componentName = getComponentNameFromType(this.type);
|
|
626
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
627
|
+
"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."
|
|
628
|
+
));
|
|
629
|
+
componentName = this.props.ref;
|
|
630
|
+
return void 0 !== componentName ? componentName : null;
|
|
693
631
|
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
invokeCallback = 0;
|
|
735
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
736
|
-
if (isArrayImpl(children))
|
|
737
|
-
for (var i = 0; i < children.length; i++)
|
|
738
|
-
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
739
|
-
nameSoFar,
|
|
740
|
-
array,
|
|
741
|
-
escapedPrefix,
|
|
742
|
-
type,
|
|
743
|
-
callback
|
|
744
|
-
);
|
|
745
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
746
|
-
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
747
|
-
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
748
|
-
nameSoFar,
|
|
749
|
-
array,
|
|
750
|
-
escapedPrefix,
|
|
751
|
-
type,
|
|
752
|
-
callback
|
|
753
|
-
);
|
|
754
|
-
else if ("object" === type) {
|
|
755
|
-
if ("function" === typeof children.then)
|
|
756
|
-
return mapIntoArray(
|
|
757
|
-
resolveThenable(children),
|
|
758
|
-
array,
|
|
759
|
-
escapedPrefix,
|
|
760
|
-
nameSoFar,
|
|
761
|
-
callback
|
|
762
|
-
);
|
|
763
|
-
array = String(children);
|
|
764
|
-
throw Error(
|
|
765
|
-
"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."
|
|
766
|
-
);
|
|
632
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
633
|
+
self = props.ref;
|
|
634
|
+
type = {
|
|
635
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
636
|
+
type,
|
|
637
|
+
key,
|
|
638
|
+
props,
|
|
639
|
+
_owner: owner
|
|
640
|
+
};
|
|
641
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
642
|
+
enumerable: false,
|
|
643
|
+
get: elementRefGetterWithDeprecationWarning
|
|
644
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
645
|
+
type._store = {};
|
|
646
|
+
Object.defineProperty(type._store, "validated", {
|
|
647
|
+
configurable: false,
|
|
648
|
+
enumerable: false,
|
|
649
|
+
writable: true,
|
|
650
|
+
value: 0
|
|
651
|
+
});
|
|
652
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
653
|
+
configurable: false,
|
|
654
|
+
enumerable: false,
|
|
655
|
+
writable: true,
|
|
656
|
+
value: null
|
|
657
|
+
});
|
|
658
|
+
Object.defineProperty(type, "_debugStack", {
|
|
659
|
+
configurable: false,
|
|
660
|
+
enumerable: false,
|
|
661
|
+
writable: true,
|
|
662
|
+
value: debugStack
|
|
663
|
+
});
|
|
664
|
+
Object.defineProperty(type, "_debugTask", {
|
|
665
|
+
configurable: false,
|
|
666
|
+
enumerable: false,
|
|
667
|
+
writable: true,
|
|
668
|
+
value: debugTask
|
|
669
|
+
});
|
|
670
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
671
|
+
return type;
|
|
767
672
|
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
function lazyInitializer(payload) {
|
|
779
|
-
if (-1 === payload._status) {
|
|
780
|
-
var ctor = payload._result;
|
|
781
|
-
ctor = ctor();
|
|
782
|
-
ctor.then(
|
|
783
|
-
function(moduleObject) {
|
|
784
|
-
if (0 === payload._status || -1 === payload._status)
|
|
785
|
-
payload._status = 1, payload._result = moduleObject;
|
|
786
|
-
},
|
|
787
|
-
function(error) {
|
|
788
|
-
if (0 === payload._status || -1 === payload._status)
|
|
789
|
-
payload._status = 2, payload._result = error;
|
|
790
|
-
}
|
|
673
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
674
|
+
newKey = ReactElement(
|
|
675
|
+
oldElement.type,
|
|
676
|
+
newKey,
|
|
677
|
+
void 0,
|
|
678
|
+
void 0,
|
|
679
|
+
oldElement._owner,
|
|
680
|
+
oldElement.props,
|
|
681
|
+
oldElement._debugStack,
|
|
682
|
+
oldElement._debugTask
|
|
791
683
|
);
|
|
792
|
-
|
|
684
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
685
|
+
return newKey;
|
|
793
686
|
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
}
|
|
797
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
798
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
799
|
-
var event = new window.ErrorEvent("error", {
|
|
800
|
-
bubbles: true,
|
|
801
|
-
cancelable: true,
|
|
802
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
803
|
-
error
|
|
804
|
-
});
|
|
805
|
-
if (!window.dispatchEvent(event)) return;
|
|
806
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
807
|
-
process.emit("uncaughtException", error);
|
|
808
|
-
return;
|
|
687
|
+
function isValidElement(object) {
|
|
688
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
809
689
|
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
exports.Children = {
|
|
815
|
-
map: mapChildren,
|
|
816
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
817
|
-
mapChildren(
|
|
818
|
-
children,
|
|
819
|
-
function() {
|
|
820
|
-
forEachFunc.apply(this, arguments);
|
|
821
|
-
},
|
|
822
|
-
forEachContext
|
|
823
|
-
);
|
|
824
|
-
},
|
|
825
|
-
count: function(children) {
|
|
826
|
-
var n = 0;
|
|
827
|
-
mapChildren(children, function() {
|
|
828
|
-
n++;
|
|
690
|
+
function escape(key) {
|
|
691
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
692
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
693
|
+
return escaperLookup[match];
|
|
829
694
|
});
|
|
830
|
-
return n;
|
|
831
|
-
},
|
|
832
|
-
toArray: function(children) {
|
|
833
|
-
return mapChildren(children, function(child) {
|
|
834
|
-
return child;
|
|
835
|
-
}) || [];
|
|
836
|
-
},
|
|
837
|
-
only: function(children) {
|
|
838
|
-
if (!isValidElement(children))
|
|
839
|
-
throw Error(
|
|
840
|
-
"React.Children.only expected to receive a single React element child."
|
|
841
|
-
);
|
|
842
|
-
return children;
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
|
-
exports.Component = Component;
|
|
846
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
847
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
848
|
-
exports.PureComponent = PureComponent;
|
|
849
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
850
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
851
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
852
|
-
exports.__COMPILER_RUNTIME = {
|
|
853
|
-
__proto__: null,
|
|
854
|
-
c: function(size) {
|
|
855
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
856
695
|
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
return function() {
|
|
860
|
-
return fn.apply(null, arguments);
|
|
861
|
-
};
|
|
862
|
-
};
|
|
863
|
-
exports.cloneElement = function(element, config, children) {
|
|
864
|
-
if (null === element || void 0 === element)
|
|
865
|
-
throw Error(
|
|
866
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
867
|
-
);
|
|
868
|
-
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
869
|
-
if (null != config)
|
|
870
|
-
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
871
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
872
|
-
var propName = arguments.length - 2;
|
|
873
|
-
if (1 === propName) props.children = children;
|
|
874
|
-
else if (1 < propName) {
|
|
875
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
876
|
-
childArray[i] = arguments[i + 2];
|
|
877
|
-
props.children = childArray;
|
|
696
|
+
function getElementKey(element, index) {
|
|
697
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
878
698
|
}
|
|
879
|
-
|
|
880
|
-
};
|
|
881
|
-
exports.createContext = function(defaultValue) {
|
|
882
|
-
defaultValue = {
|
|
883
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
884
|
-
_currentValue: defaultValue,
|
|
885
|
-
_currentValue2: defaultValue,
|
|
886
|
-
_threadCount: 0,
|
|
887
|
-
Provider: null,
|
|
888
|
-
Consumer: null
|
|
889
|
-
};
|
|
890
|
-
defaultValue.Provider = defaultValue;
|
|
891
|
-
defaultValue.Consumer = {
|
|
892
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
893
|
-
_context: defaultValue
|
|
894
|
-
};
|
|
895
|
-
return defaultValue;
|
|
896
|
-
};
|
|
897
|
-
exports.createElement = function(type, config, children) {
|
|
898
|
-
var propName, props = {}, key = null;
|
|
899
|
-
if (null != config)
|
|
900
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
901
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
902
|
-
var childrenLength = arguments.length - 2;
|
|
903
|
-
if (1 === childrenLength) props.children = children;
|
|
904
|
-
else if (1 < childrenLength) {
|
|
905
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
906
|
-
childArray[i] = arguments[i + 2];
|
|
907
|
-
props.children = childArray;
|
|
699
|
+
function noop$1() {
|
|
908
700
|
}
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
type,
|
|
932
|
-
compare: void 0 === compare ? null : compare
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
exports.startTransition = function(scope) {
|
|
936
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
937
|
-
ReactSharedInternals.T = currentTransition;
|
|
938
|
-
try {
|
|
939
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
940
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
941
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
942
|
-
} catch (error) {
|
|
943
|
-
reportGlobalError(error);
|
|
944
|
-
} finally {
|
|
945
|
-
ReactSharedInternals.T = prevTransition;
|
|
701
|
+
function resolveThenable(thenable) {
|
|
702
|
+
switch (thenable.status) {
|
|
703
|
+
case "fulfilled":
|
|
704
|
+
return thenable.value;
|
|
705
|
+
case "rejected":
|
|
706
|
+
throw thenable.reason;
|
|
707
|
+
default:
|
|
708
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
709
|
+
function(fulfilledValue) {
|
|
710
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
711
|
+
},
|
|
712
|
+
function(error) {
|
|
713
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
714
|
+
}
|
|
715
|
+
)), thenable.status) {
|
|
716
|
+
case "fulfilled":
|
|
717
|
+
return thenable.value;
|
|
718
|
+
case "rejected":
|
|
719
|
+
throw thenable.reason;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
throw thenable;
|
|
946
723
|
}
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
return dispatcher.useEffect(create, createDeps);
|
|
975
|
-
};
|
|
976
|
-
exports.useId = function() {
|
|
977
|
-
return ReactSharedInternals.H.useId();
|
|
978
|
-
};
|
|
979
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
980
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
981
|
-
};
|
|
982
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
983
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
984
|
-
};
|
|
985
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
986
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
987
|
-
};
|
|
988
|
-
exports.useMemo = function(create, deps) {
|
|
989
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
990
|
-
};
|
|
991
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
992
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
993
|
-
};
|
|
994
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
995
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
996
|
-
};
|
|
997
|
-
exports.useRef = function(initialValue) {
|
|
998
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
999
|
-
};
|
|
1000
|
-
exports.useState = function(initialState) {
|
|
1001
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
1002
|
-
};
|
|
1003
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1004
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
1005
|
-
subscribe,
|
|
1006
|
-
getSnapshot,
|
|
1007
|
-
getServerSnapshot
|
|
1008
|
-
);
|
|
1009
|
-
};
|
|
1010
|
-
exports.useTransition = function() {
|
|
1011
|
-
return ReactSharedInternals.H.useTransition();
|
|
1012
|
-
};
|
|
1013
|
-
exports.version = "19.1.0";
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
|
|
1017
|
-
// ../../node_modules/react/cjs/react.development.js
|
|
1018
|
-
var require_react_development = __commonJS({
|
|
1019
|
-
"../../node_modules/react/cjs/react.development.js"(exports, module) {
|
|
1020
|
-
"use strict";
|
|
1021
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
1022
|
-
function defineDeprecationWarning(methodName, info) {
|
|
1023
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
1024
|
-
get: function() {
|
|
1025
|
-
console.warn(
|
|
1026
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
1027
|
-
info[0],
|
|
1028
|
-
info[1]
|
|
1029
|
-
);
|
|
724
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
725
|
+
var type = typeof children;
|
|
726
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
727
|
+
var invokeCallback = false;
|
|
728
|
+
if (null === children) invokeCallback = true;
|
|
729
|
+
else
|
|
730
|
+
switch (type) {
|
|
731
|
+
case "bigint":
|
|
732
|
+
case "string":
|
|
733
|
+
case "number":
|
|
734
|
+
invokeCallback = true;
|
|
735
|
+
break;
|
|
736
|
+
case "object":
|
|
737
|
+
switch (children.$$typeof) {
|
|
738
|
+
case REACT_ELEMENT_TYPE:
|
|
739
|
+
case REACT_PORTAL_TYPE:
|
|
740
|
+
invokeCallback = true;
|
|
741
|
+
break;
|
|
742
|
+
case REACT_LAZY_TYPE:
|
|
743
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
744
|
+
invokeCallback(children._payload),
|
|
745
|
+
array,
|
|
746
|
+
escapedPrefix,
|
|
747
|
+
nameSoFar,
|
|
748
|
+
callback
|
|
749
|
+
);
|
|
750
|
+
}
|
|
1030
751
|
}
|
|
752
|
+
if (invokeCallback) {
|
|
753
|
+
invokeCallback = children;
|
|
754
|
+
callback = callback(invokeCallback);
|
|
755
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
756
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
757
|
+
return c;
|
|
758
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
759
|
+
callback,
|
|
760
|
+
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
761
|
+
userProvidedKeyEscapeRegex,
|
|
762
|
+
"$&/"
|
|
763
|
+
) + "/") + childKey
|
|
764
|
+
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
765
|
+
return 1;
|
|
766
|
+
}
|
|
767
|
+
invokeCallback = 0;
|
|
768
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
769
|
+
if (isArrayImpl(children))
|
|
770
|
+
for (var i = 0; i < children.length; i++)
|
|
771
|
+
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
772
|
+
nameSoFar,
|
|
773
|
+
array,
|
|
774
|
+
escapedPrefix,
|
|
775
|
+
type,
|
|
776
|
+
callback
|
|
777
|
+
);
|
|
778
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
779
|
+
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
780
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
781
|
+
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
782
|
+
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
783
|
+
nameSoFar,
|
|
784
|
+
array,
|
|
785
|
+
escapedPrefix,
|
|
786
|
+
type,
|
|
787
|
+
callback
|
|
788
|
+
);
|
|
789
|
+
else if ("object" === type) {
|
|
790
|
+
if ("function" === typeof children.then)
|
|
791
|
+
return mapIntoArray(
|
|
792
|
+
resolveThenable(children),
|
|
793
|
+
array,
|
|
794
|
+
escapedPrefix,
|
|
795
|
+
nameSoFar,
|
|
796
|
+
callback
|
|
797
|
+
);
|
|
798
|
+
array = String(children);
|
|
799
|
+
throw Error(
|
|
800
|
+
"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."
|
|
801
|
+
);
|
|
802
|
+
}
|
|
803
|
+
return invokeCallback;
|
|
804
|
+
}
|
|
805
|
+
function mapChildren(children, func, context) {
|
|
806
|
+
if (null == children) return children;
|
|
807
|
+
var result = [], count = 0;
|
|
808
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
809
|
+
return func.call(context, child, count++);
|
|
1031
810
|
});
|
|
811
|
+
return result;
|
|
1032
812
|
}
|
|
1033
|
-
function
|
|
1034
|
-
if (
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
813
|
+
function lazyInitializer(payload) {
|
|
814
|
+
if (-1 === payload._status) {
|
|
815
|
+
var ctor = payload._result;
|
|
816
|
+
ctor = ctor();
|
|
817
|
+
ctor.then(
|
|
818
|
+
function(moduleObject) {
|
|
819
|
+
if (0 === payload._status || -1 === payload._status)
|
|
820
|
+
payload._status = 1, payload._result = moduleObject;
|
|
821
|
+
},
|
|
822
|
+
function(error) {
|
|
823
|
+
if (0 === payload._status || -1 === payload._status)
|
|
824
|
+
payload._status = 2, payload._result = error;
|
|
825
|
+
}
|
|
826
|
+
);
|
|
827
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
828
|
+
}
|
|
829
|
+
if (1 === payload._status)
|
|
830
|
+
return ctor = payload._result, void 0 === ctor && console.error(
|
|
831
|
+
"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?",
|
|
832
|
+
ctor
|
|
833
|
+
), "default" in ctor || console.error(
|
|
834
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
835
|
+
ctor
|
|
836
|
+
), ctor.default;
|
|
837
|
+
throw payload._result;
|
|
1038
838
|
}
|
|
1039
|
-
function
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
publicInstance
|
|
1046
|
-
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
839
|
+
function resolveDispatcher() {
|
|
840
|
+
var dispatcher = ReactSharedInternals.H;
|
|
841
|
+
null === dispatcher && console.error(
|
|
842
|
+
"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."
|
|
843
|
+
);
|
|
844
|
+
return dispatcher;
|
|
1047
845
|
}
|
|
1048
|
-
function
|
|
1049
|
-
this.props = props;
|
|
1050
|
-
this.context = context;
|
|
1051
|
-
this.refs = emptyObject;
|
|
1052
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
846
|
+
function noop() {
|
|
1053
847
|
}
|
|
1054
|
-
function
|
|
848
|
+
function enqueueTask(task) {
|
|
849
|
+
if (null === enqueueTaskImpl)
|
|
850
|
+
try {
|
|
851
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
852
|
+
enqueueTaskImpl = (module && module[requireString]).call(
|
|
853
|
+
module,
|
|
854
|
+
"timers"
|
|
855
|
+
).setImmediate;
|
|
856
|
+
} catch (_err) {
|
|
857
|
+
enqueueTaskImpl = function(callback) {
|
|
858
|
+
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
859
|
+
"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."
|
|
860
|
+
));
|
|
861
|
+
var channel = new MessageChannel();
|
|
862
|
+
channel.port1.onmessage = callback;
|
|
863
|
+
channel.port2.postMessage(void 0);
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
return enqueueTaskImpl(task);
|
|
1055
867
|
}
|
|
1056
|
-
function
|
|
1057
|
-
|
|
1058
|
-
this.context = context;
|
|
1059
|
-
this.refs = emptyObject;
|
|
1060
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
868
|
+
function aggregateErrors(errors) {
|
|
869
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
1061
870
|
}
|
|
1062
|
-
function
|
|
1063
|
-
|
|
871
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
872
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
873
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
874
|
+
);
|
|
875
|
+
actScopeDepth = prevActScopeDepth;
|
|
1064
876
|
}
|
|
1065
|
-
function
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
877
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
878
|
+
var queue = ReactSharedInternals.actQueue;
|
|
879
|
+
if (null !== queue)
|
|
880
|
+
if (0 !== queue.length)
|
|
881
|
+
try {
|
|
882
|
+
flushActQueue(queue);
|
|
883
|
+
enqueueTask(function() {
|
|
884
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
885
|
+
});
|
|
886
|
+
return;
|
|
887
|
+
} catch (error) {
|
|
888
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
889
|
+
}
|
|
890
|
+
else ReactSharedInternals.actQueue = null;
|
|
891
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
892
|
+
}
|
|
893
|
+
function flushActQueue(queue) {
|
|
894
|
+
if (!isFlushing) {
|
|
895
|
+
isFlushing = true;
|
|
896
|
+
var i = 0;
|
|
897
|
+
try {
|
|
898
|
+
for (; i < queue.length; i++) {
|
|
899
|
+
var callback = queue[i];
|
|
900
|
+
do {
|
|
901
|
+
ReactSharedInternals.didUsePromise = false;
|
|
902
|
+
var continuation = callback(false);
|
|
903
|
+
if (null !== continuation) {
|
|
904
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
905
|
+
queue[i] = callback;
|
|
906
|
+
queue.splice(0, i);
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
callback = continuation;
|
|
910
|
+
} else break;
|
|
911
|
+
} while (1);
|
|
912
|
+
}
|
|
913
|
+
queue.length = 0;
|
|
914
|
+
} catch (error) {
|
|
915
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
916
|
+
} finally {
|
|
917
|
+
isFlushing = false;
|
|
918
|
+
}
|
|
1082
919
|
}
|
|
1083
920
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
return "SuspenseList";
|
|
1100
|
-
case REACT_ACTIVITY_TYPE:
|
|
1101
|
-
return "Activity";
|
|
921
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
922
|
+
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");
|
|
923
|
+
Symbol.for("react.provider");
|
|
924
|
+
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 = {
|
|
925
|
+
isMounted: function() {
|
|
926
|
+
return false;
|
|
927
|
+
},
|
|
928
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
929
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
930
|
+
},
|
|
931
|
+
enqueueReplaceState: function(publicInstance) {
|
|
932
|
+
warnNoop(publicInstance, "replaceState");
|
|
933
|
+
},
|
|
934
|
+
enqueueSetState: function(publicInstance) {
|
|
935
|
+
warnNoop(publicInstance, "setState");
|
|
1102
936
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
937
|
+
}, assign = Object.assign, emptyObject = {};
|
|
938
|
+
Object.freeze(emptyObject);
|
|
939
|
+
Component.prototype.isReactComponent = {};
|
|
940
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
941
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
942
|
+
throw Error(
|
|
943
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
944
|
+
);
|
|
945
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
946
|
+
};
|
|
947
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
948
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
949
|
+
};
|
|
950
|
+
var deprecatedAPIs = {
|
|
951
|
+
isMounted: [
|
|
952
|
+
"isMounted",
|
|
953
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
954
|
+
],
|
|
955
|
+
replaceState: [
|
|
956
|
+
"replaceState",
|
|
957
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
958
|
+
]
|
|
959
|
+
}, fnName;
|
|
960
|
+
for (fnName in deprecatedAPIs)
|
|
961
|
+
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
962
|
+
ComponentDummy.prototype = Component.prototype;
|
|
963
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
964
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
965
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
966
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
967
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
968
|
+
H: null,
|
|
969
|
+
A: null,
|
|
970
|
+
T: null,
|
|
971
|
+
S: null,
|
|
972
|
+
V: null,
|
|
973
|
+
actQueue: null,
|
|
974
|
+
isBatchingLegacy: false,
|
|
975
|
+
didScheduleLegacyUpdate: false,
|
|
976
|
+
didUsePromise: false,
|
|
977
|
+
thrownErrors: [],
|
|
978
|
+
getCurrentStack: null,
|
|
979
|
+
recentlyCreatedOwnerStacks: 0
|
|
980
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1128
981
|
return null;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
982
|
+
};
|
|
983
|
+
deprecatedAPIs = {
|
|
984
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
985
|
+
return callStackForError();
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
989
|
+
var didWarnAboutElementRef = {};
|
|
990
|
+
var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
|
|
991
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
992
|
+
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
993
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
994
|
+
var event = new window.ErrorEvent("error", {
|
|
995
|
+
bubbles: true,
|
|
996
|
+
cancelable: true,
|
|
997
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
998
|
+
error
|
|
999
|
+
});
|
|
1000
|
+
if (!window.dispatchEvent(event)) return;
|
|
1001
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1002
|
+
process.emit("uncaughtException", error);
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
console.error(error);
|
|
1006
|
+
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1007
|
+
queueMicrotask(function() {
|
|
1008
|
+
return queueMicrotask(callback);
|
|
1009
|
+
});
|
|
1010
|
+
} : enqueueTask;
|
|
1011
|
+
deprecatedAPIs = Object.freeze({
|
|
1012
|
+
__proto__: null,
|
|
1013
|
+
c: function(size) {
|
|
1014
|
+
return resolveDispatcher().useMemoCache(size);
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
exports.Children = {
|
|
1018
|
+
map: mapChildren,
|
|
1019
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1020
|
+
mapChildren(
|
|
1021
|
+
children,
|
|
1022
|
+
function() {
|
|
1023
|
+
forEachFunc.apply(this, arguments);
|
|
1024
|
+
},
|
|
1025
|
+
forEachContext
|
|
1026
|
+
);
|
|
1027
|
+
},
|
|
1028
|
+
count: function(children) {
|
|
1029
|
+
var n = 0;
|
|
1030
|
+
mapChildren(children, function() {
|
|
1031
|
+
n++;
|
|
1032
|
+
});
|
|
1033
|
+
return n;
|
|
1034
|
+
},
|
|
1035
|
+
toArray: function(children) {
|
|
1036
|
+
return mapChildren(children, function(child) {
|
|
1037
|
+
return child;
|
|
1038
|
+
}) || [];
|
|
1039
|
+
},
|
|
1040
|
+
only: function(children) {
|
|
1041
|
+
if (!isValidElement(children))
|
|
1042
|
+
throw Error(
|
|
1043
|
+
"React.Children.only expected to receive a single React element child."
|
|
1044
|
+
);
|
|
1045
|
+
return children;
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
exports.Component = Component;
|
|
1049
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1050
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1051
|
+
exports.PureComponent = PureComponent;
|
|
1052
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1053
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1054
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1055
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1056
|
+
exports.act = function(callback) {
|
|
1057
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1058
|
+
actScopeDepth++;
|
|
1059
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1134
1060
|
try {
|
|
1135
|
-
var
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
return "<...>";
|
|
1061
|
+
var result = callback();
|
|
1062
|
+
} catch (error) {
|
|
1063
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1139
1064
|
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1065
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1066
|
+
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1067
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1068
|
+
var thenable = result;
|
|
1069
|
+
queueSeveralMicrotasks(function() {
|
|
1070
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1071
|
+
"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 () => ...);"
|
|
1072
|
+
));
|
|
1073
|
+
});
|
|
1074
|
+
return {
|
|
1075
|
+
then: function(resolve, reject) {
|
|
1076
|
+
didAwaitActCall = true;
|
|
1077
|
+
thenable.then(
|
|
1078
|
+
function(returnValue) {
|
|
1079
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1080
|
+
if (0 === prevActScopeDepth) {
|
|
1081
|
+
try {
|
|
1082
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
1083
|
+
return recursivelyFlushAsyncActWork(
|
|
1084
|
+
returnValue,
|
|
1085
|
+
resolve,
|
|
1086
|
+
reject
|
|
1087
|
+
);
|
|
1088
|
+
});
|
|
1089
|
+
} catch (error$0) {
|
|
1090
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1091
|
+
}
|
|
1092
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1093
|
+
var _thrownError = aggregateErrors(
|
|
1094
|
+
ReactSharedInternals.thrownErrors
|
|
1095
|
+
);
|
|
1096
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
1097
|
+
reject(_thrownError);
|
|
1098
|
+
}
|
|
1099
|
+
} else resolve(returnValue);
|
|
1100
|
+
},
|
|
1101
|
+
function(error) {
|
|
1102
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1103
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1104
|
+
ReactSharedInternals.thrownErrors
|
|
1105
|
+
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1106
|
+
}
|
|
1107
|
+
);
|
|
1108
|
+
}
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
var returnValue$jscomp$0 = result;
|
|
1112
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1113
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1114
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1115
|
+
"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(() => ...)"
|
|
1116
|
+
));
|
|
1117
|
+
}), ReactSharedInternals.actQueue = null);
|
|
1118
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1119
|
+
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1120
|
+
return {
|
|
1121
|
+
then: function(resolve, reject) {
|
|
1122
|
+
didAwaitActCall = true;
|
|
1123
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1124
|
+
return recursivelyFlushAsyncActWork(
|
|
1125
|
+
returnValue$jscomp$0,
|
|
1126
|
+
resolve,
|
|
1127
|
+
reject
|
|
1128
|
+
);
|
|
1129
|
+
})) : resolve(returnValue$jscomp$0);
|
|
1130
|
+
}
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1133
|
+
exports.cache = function(fn) {
|
|
1134
|
+
return function() {
|
|
1135
|
+
return fn.apply(null, arguments);
|
|
1136
|
+
};
|
|
1137
|
+
};
|
|
1138
|
+
exports.captureOwnerStack = function() {
|
|
1139
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1140
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
1141
|
+
};
|
|
1142
|
+
exports.cloneElement = function(element, config, children) {
|
|
1143
|
+
if (null === element || void 0 === element)
|
|
1144
|
+
throw Error(
|
|
1145
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
1146
|
+
);
|
|
1147
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1148
|
+
if (null != config) {
|
|
1149
|
+
var JSCompiler_inline_result;
|
|
1150
|
+
a: {
|
|
1151
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1152
|
+
config,
|
|
1153
|
+
"ref"
|
|
1154
|
+
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1155
|
+
JSCompiler_inline_result = false;
|
|
1156
|
+
break a;
|
|
1157
|
+
}
|
|
1158
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1159
|
+
}
|
|
1160
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
1161
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1162
|
+
for (propName in config)
|
|
1163
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1152
1164
|
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
));
|
|
1165
|
+
var propName = arguments.length - 2;
|
|
1166
|
+
if (1 === propName) props.children = children;
|
|
1167
|
+
else if (1 < propName) {
|
|
1168
|
+
JSCompiler_inline_result = Array(propName);
|
|
1169
|
+
for (var i = 0; i < propName; i++)
|
|
1170
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1171
|
+
props.children = JSCompiler_inline_result;
|
|
1161
1172
|
}
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
get: warnAboutAccessingKey,
|
|
1165
|
-
configurable: true
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1169
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1170
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1171
|
-
"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."
|
|
1172
|
-
));
|
|
1173
|
-
componentName = this.props.ref;
|
|
1174
|
-
return void 0 !== componentName ? componentName : null;
|
|
1175
|
-
}
|
|
1176
|
-
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
1177
|
-
self = props.ref;
|
|
1178
|
-
type = {
|
|
1179
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1180
|
-
type,
|
|
1173
|
+
props = ReactElement(
|
|
1174
|
+
element.type,
|
|
1181
1175
|
key,
|
|
1176
|
+
void 0,
|
|
1177
|
+
void 0,
|
|
1178
|
+
owner,
|
|
1182
1179
|
props,
|
|
1183
|
-
|
|
1180
|
+
element._debugStack,
|
|
1181
|
+
element._debugTask
|
|
1182
|
+
);
|
|
1183
|
+
for (key = 2; key < arguments.length; key++)
|
|
1184
|
+
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
1185
|
+
return props;
|
|
1186
|
+
};
|
|
1187
|
+
exports.createContext = function(defaultValue) {
|
|
1188
|
+
defaultValue = {
|
|
1189
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1190
|
+
_currentValue: defaultValue,
|
|
1191
|
+
_currentValue2: defaultValue,
|
|
1192
|
+
_threadCount: 0,
|
|
1193
|
+
Provider: null,
|
|
1194
|
+
Consumer: null
|
|
1184
1195
|
};
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1196
|
+
defaultValue.Provider = defaultValue;
|
|
1197
|
+
defaultValue.Consumer = {
|
|
1198
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1199
|
+
_context: defaultValue
|
|
1200
|
+
};
|
|
1201
|
+
defaultValue._currentRenderer = null;
|
|
1202
|
+
defaultValue._currentRenderer2 = null;
|
|
1203
|
+
return defaultValue;
|
|
1204
|
+
};
|
|
1205
|
+
exports.createElement = function(type, config, children) {
|
|
1206
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
1207
|
+
var node = arguments[i];
|
|
1208
|
+
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1209
|
+
}
|
|
1210
|
+
i = {};
|
|
1211
|
+
node = null;
|
|
1212
|
+
if (null != config)
|
|
1213
|
+
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1214
|
+
"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"
|
|
1215
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
|
1216
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1217
|
+
var childrenLength = arguments.length - 2;
|
|
1218
|
+
if (1 === childrenLength) i.children = children;
|
|
1219
|
+
else if (1 < childrenLength) {
|
|
1220
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1221
|
+
childArray[_i] = arguments[_i + 2];
|
|
1222
|
+
Object.freeze && Object.freeze(childArray);
|
|
1223
|
+
i.children = childArray;
|
|
1224
|
+
}
|
|
1225
|
+
if (type && type.defaultProps)
|
|
1226
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1227
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1228
|
+
node && defineKeyPropWarningGetter(
|
|
1229
|
+
i,
|
|
1230
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1231
|
+
);
|
|
1232
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1233
|
+
return ReactElement(
|
|
1234
|
+
type,
|
|
1235
|
+
node,
|
|
1221
1236
|
void 0,
|
|
1222
1237
|
void 0,
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1238
|
+
getOwner(),
|
|
1239
|
+
i,
|
|
1240
|
+
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1241
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1227
1242
|
);
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
return
|
|
1233
|
-
}
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1243
|
+
};
|
|
1244
|
+
exports.createRef = function() {
|
|
1245
|
+
var refObject = { current: null };
|
|
1246
|
+
Object.seal(refObject);
|
|
1247
|
+
return refObject;
|
|
1248
|
+
};
|
|
1249
|
+
exports.forwardRef = function(render) {
|
|
1250
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1251
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1252
|
+
) : "function" !== typeof render ? console.error(
|
|
1253
|
+
"forwardRef requires a render function but was given %s.",
|
|
1254
|
+
null === render ? "null" : typeof render
|
|
1255
|
+
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1256
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1257
|
+
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1258
|
+
);
|
|
1259
|
+
null != render && null != render.defaultProps && console.error(
|
|
1260
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1261
|
+
);
|
|
1262
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1263
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1264
|
+
enumerable: false,
|
|
1265
|
+
configurable: true,
|
|
1266
|
+
get: function() {
|
|
1267
|
+
return ownName;
|
|
1268
|
+
},
|
|
1269
|
+
set: function(name) {
|
|
1270
|
+
ownName = name;
|
|
1271
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1272
|
+
}
|
|
1238
1273
|
});
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
var type = typeof children;
|
|
1270
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
1271
|
-
var invokeCallback = false;
|
|
1272
|
-
if (null === children) invokeCallback = true;
|
|
1273
|
-
else
|
|
1274
|
-
switch (type) {
|
|
1275
|
-
case "bigint":
|
|
1276
|
-
case "string":
|
|
1277
|
-
case "number":
|
|
1278
|
-
invokeCallback = true;
|
|
1279
|
-
break;
|
|
1280
|
-
case "object":
|
|
1281
|
-
switch (children.$$typeof) {
|
|
1282
|
-
case REACT_ELEMENT_TYPE:
|
|
1283
|
-
case REACT_PORTAL_TYPE:
|
|
1284
|
-
invokeCallback = true;
|
|
1285
|
-
break;
|
|
1286
|
-
case REACT_LAZY_TYPE:
|
|
1287
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
1288
|
-
invokeCallback(children._payload),
|
|
1289
|
-
array,
|
|
1290
|
-
escapedPrefix,
|
|
1291
|
-
nameSoFar,
|
|
1292
|
-
callback
|
|
1293
|
-
);
|
|
1294
|
-
}
|
|
1274
|
+
return elementType;
|
|
1275
|
+
};
|
|
1276
|
+
exports.isValidElement = isValidElement;
|
|
1277
|
+
exports.lazy = function(ctor) {
|
|
1278
|
+
return {
|
|
1279
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1280
|
+
_payload: { _status: -1, _result: ctor },
|
|
1281
|
+
_init: lazyInitializer
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
exports.memo = function(type, compare) {
|
|
1285
|
+
null == type && console.error(
|
|
1286
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1287
|
+
null === type ? "null" : typeof type
|
|
1288
|
+
);
|
|
1289
|
+
compare = {
|
|
1290
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1291
|
+
type,
|
|
1292
|
+
compare: void 0 === compare ? null : compare
|
|
1293
|
+
};
|
|
1294
|
+
var ownName;
|
|
1295
|
+
Object.defineProperty(compare, "displayName", {
|
|
1296
|
+
enumerable: false,
|
|
1297
|
+
configurable: true,
|
|
1298
|
+
get: function() {
|
|
1299
|
+
return ownName;
|
|
1300
|
+
},
|
|
1301
|
+
set: function(name) {
|
|
1302
|
+
ownName = name;
|
|
1303
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1295
1304
|
}
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1305
|
+
});
|
|
1306
|
+
return compare;
|
|
1307
|
+
};
|
|
1308
|
+
exports.startTransition = function(scope) {
|
|
1309
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1310
|
+
ReactSharedInternals.T = currentTransition;
|
|
1311
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1312
|
+
try {
|
|
1313
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1314
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1315
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1316
|
+
} catch (error) {
|
|
1317
|
+
reportGlobalError(error);
|
|
1318
|
+
} finally {
|
|
1319
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1320
|
+
"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."
|
|
1321
|
+
)), ReactSharedInternals.T = prevTransition;
|
|
1310
1322
|
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1323
|
+
};
|
|
1324
|
+
exports.unstable_useCacheRefresh = function() {
|
|
1325
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1326
|
+
};
|
|
1327
|
+
exports.use = function(usable) {
|
|
1328
|
+
return resolveDispatcher().use(usable);
|
|
1329
|
+
};
|
|
1330
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
1331
|
+
return resolveDispatcher().useActionState(
|
|
1332
|
+
action,
|
|
1333
|
+
initialState,
|
|
1334
|
+
permalink
|
|
1335
|
+
);
|
|
1336
|
+
};
|
|
1337
|
+
exports.useCallback = function(callback, deps) {
|
|
1338
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1339
|
+
};
|
|
1340
|
+
exports.useContext = function(Context) {
|
|
1341
|
+
var dispatcher = resolveDispatcher();
|
|
1342
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1343
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1344
|
+
);
|
|
1345
|
+
return dispatcher.useContext(Context);
|
|
1346
|
+
};
|
|
1347
|
+
exports.useDebugValue = function(value, formatterFn) {
|
|
1348
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1349
|
+
};
|
|
1350
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
1351
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1352
|
+
};
|
|
1353
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
1354
|
+
null == create && console.warn(
|
|
1355
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1356
|
+
);
|
|
1357
|
+
var dispatcher = resolveDispatcher();
|
|
1358
|
+
if ("function" === typeof update)
|
|
1343
1359
|
throw Error(
|
|
1344
|
-
"
|
|
1345
|
-
);
|
|
1346
|
-
}
|
|
1347
|
-
return invokeCallback;
|
|
1348
|
-
}
|
|
1349
|
-
function mapChildren(children, func, context) {
|
|
1350
|
-
if (null == children) return children;
|
|
1351
|
-
var result = [], count = 0;
|
|
1352
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
1353
|
-
return func.call(context, child, count++);
|
|
1354
|
-
});
|
|
1355
|
-
return result;
|
|
1356
|
-
}
|
|
1357
|
-
function lazyInitializer(payload) {
|
|
1358
|
-
if (-1 === payload._status) {
|
|
1359
|
-
var ctor = payload._result;
|
|
1360
|
-
ctor = ctor();
|
|
1361
|
-
ctor.then(
|
|
1362
|
-
function(moduleObject) {
|
|
1363
|
-
if (0 === payload._status || -1 === payload._status)
|
|
1364
|
-
payload._status = 1, payload._result = moduleObject;
|
|
1365
|
-
},
|
|
1366
|
-
function(error) {
|
|
1367
|
-
if (0 === payload._status || -1 === payload._status)
|
|
1368
|
-
payload._status = 2, payload._result = error;
|
|
1369
|
-
}
|
|
1360
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
1370
1361
|
);
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}
|
|
1383
|
-
function resolveDispatcher() {
|
|
1384
|
-
var dispatcher = ReactSharedInternals.H;
|
|
1385
|
-
null === dispatcher && console.error(
|
|
1386
|
-
"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."
|
|
1362
|
+
return dispatcher.useEffect(create, createDeps);
|
|
1363
|
+
};
|
|
1364
|
+
exports.useId = function() {
|
|
1365
|
+
return resolveDispatcher().useId();
|
|
1366
|
+
};
|
|
1367
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1368
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1369
|
+
};
|
|
1370
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
1371
|
+
null == create && console.warn(
|
|
1372
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1387
1373
|
);
|
|
1388
|
-
return
|
|
1389
|
-
}
|
|
1390
|
-
function
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1374
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1375
|
+
};
|
|
1376
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
1377
|
+
null == create && console.warn(
|
|
1378
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1379
|
+
);
|
|
1380
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1381
|
+
};
|
|
1382
|
+
exports.useMemo = function(create, deps) {
|
|
1383
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1384
|
+
};
|
|
1385
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
1386
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1387
|
+
};
|
|
1388
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
1389
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1390
|
+
};
|
|
1391
|
+
exports.useRef = function(initialValue) {
|
|
1392
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1393
|
+
};
|
|
1394
|
+
exports.useState = function(initialState) {
|
|
1395
|
+
return resolveDispatcher().useState(initialState);
|
|
1396
|
+
};
|
|
1397
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1398
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
1399
|
+
subscribe,
|
|
1400
|
+
getSnapshot,
|
|
1401
|
+
getServerSnapshot
|
|
1402
|
+
);
|
|
1403
|
+
};
|
|
1404
|
+
exports.useTransition = function() {
|
|
1405
|
+
return resolveDispatcher().useTransition();
|
|
1406
|
+
};
|
|
1407
|
+
exports.version = "19.1.0";
|
|
1408
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1409
|
+
}();
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
|
|
1413
|
+
// ../../node_modules/react/index.js
|
|
1414
|
+
var require_react = __commonJS({
|
|
1415
|
+
"../../node_modules/react/index.js"(exports, module) {
|
|
1416
|
+
"use strict";
|
|
1417
|
+
if (process.env.NODE_ENV === "production") {
|
|
1418
|
+
module.exports = require_react_production();
|
|
1419
|
+
} else {
|
|
1420
|
+
module.exports = require_react_development();
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
|
|
1425
|
+
// ../../node_modules/scheduler/cjs/scheduler.production.js
|
|
1426
|
+
var require_scheduler_production = __commonJS({
|
|
1427
|
+
"../../node_modules/scheduler/cjs/scheduler.production.js"(exports) {
|
|
1428
|
+
"use strict";
|
|
1429
|
+
function push(heap, node) {
|
|
1430
|
+
var index = heap.length;
|
|
1431
|
+
heap.push(node);
|
|
1432
|
+
a: for (; 0 < index; ) {
|
|
1433
|
+
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
|
|
1434
|
+
if (0 < compare(parent, node))
|
|
1435
|
+
heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
|
|
1436
|
+
else break a;
|
|
1411
1437
|
}
|
|
1412
|
-
|
|
1413
|
-
|
|
1438
|
+
}
|
|
1439
|
+
function peek(heap) {
|
|
1440
|
+
return 0 === heap.length ? null : heap[0];
|
|
1441
|
+
}
|
|
1442
|
+
function pop(heap) {
|
|
1443
|
+
if (0 === heap.length) return null;
|
|
1444
|
+
var first = heap[0], last = heap.pop();
|
|
1445
|
+
if (last !== first) {
|
|
1446
|
+
heap[0] = last;
|
|
1447
|
+
a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
|
|
1448
|
+
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
1449
|
+
if (0 > compare(left, last))
|
|
1450
|
+
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
|
|
1451
|
+
else if (rightIndex < length && 0 > compare(right, last))
|
|
1452
|
+
heap[index] = right, heap[rightIndex] = last, index = rightIndex;
|
|
1453
|
+
else break a;
|
|
1454
|
+
}
|
|
1414
1455
|
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1456
|
+
return first;
|
|
1457
|
+
}
|
|
1458
|
+
function compare(a, b) {
|
|
1459
|
+
var diff = a.sortIndex - b.sortIndex;
|
|
1460
|
+
return 0 !== diff ? diff : a.id - b.id;
|
|
1461
|
+
}
|
|
1462
|
+
exports.unstable_now = void 0;
|
|
1463
|
+
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
1464
|
+
localPerformance = performance;
|
|
1465
|
+
exports.unstable_now = function() {
|
|
1466
|
+
return localPerformance.now();
|
|
1467
|
+
};
|
|
1468
|
+
} else {
|
|
1469
|
+
localDate = Date, initialTime = localDate.now();
|
|
1470
|
+
exports.unstable_now = function() {
|
|
1471
|
+
return localDate.now() - initialTime;
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
var localPerformance;
|
|
1475
|
+
var localDate;
|
|
1476
|
+
var initialTime;
|
|
1477
|
+
var taskQueue = [];
|
|
1478
|
+
var timerQueue = [];
|
|
1479
|
+
var taskIdCounter = 1;
|
|
1480
|
+
var currentTask = null;
|
|
1481
|
+
var currentPriorityLevel = 3;
|
|
1482
|
+
var isPerformingWork = false;
|
|
1483
|
+
var isHostCallbackScheduled = false;
|
|
1484
|
+
var isHostTimeoutScheduled = false;
|
|
1485
|
+
var needsPaint = false;
|
|
1486
|
+
var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
|
|
1487
|
+
var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
|
|
1488
|
+
var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
|
|
1489
|
+
function advanceTimers(currentTime) {
|
|
1490
|
+
for (var timer = peek(timerQueue); null !== timer; ) {
|
|
1491
|
+
if (null === timer.callback) pop(timerQueue);
|
|
1492
|
+
else if (timer.startTime <= currentTime)
|
|
1493
|
+
pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
|
|
1494
|
+
else break;
|
|
1495
|
+
timer = peek(timerQueue);
|
|
1420
1496
|
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1497
|
+
}
|
|
1498
|
+
function handleTimeout(currentTime) {
|
|
1499
|
+
isHostTimeoutScheduled = false;
|
|
1500
|
+
advanceTimers(currentTime);
|
|
1501
|
+
if (!isHostCallbackScheduled)
|
|
1502
|
+
if (null !== peek(taskQueue))
|
|
1503
|
+
isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
|
|
1504
|
+
else {
|
|
1505
|
+
var firstTimer = peek(timerQueue);
|
|
1506
|
+
null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
var isMessageLoopRunning = false;
|
|
1510
|
+
var taskTimeoutID = -1;
|
|
1511
|
+
var frameInterval = 5;
|
|
1512
|
+
var startTime = -1;
|
|
1513
|
+
function shouldYieldToHost() {
|
|
1514
|
+
return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
|
|
1515
|
+
}
|
|
1516
|
+
function performWorkUntilDeadline() {
|
|
1517
|
+
needsPaint = false;
|
|
1518
|
+
if (isMessageLoopRunning) {
|
|
1519
|
+
var currentTime = exports.unstable_now();
|
|
1520
|
+
startTime = currentTime;
|
|
1521
|
+
var hasMoreWork = true;
|
|
1522
|
+
try {
|
|
1523
|
+
a: {
|
|
1524
|
+
isHostCallbackScheduled = false;
|
|
1525
|
+
isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
|
|
1526
|
+
isPerformingWork = true;
|
|
1527
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1425
1528
|
try {
|
|
1426
|
-
|
|
1427
|
-
|
|
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
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1529
|
+
b: {
|
|
1530
|
+
advanceTimers(currentTime);
|
|
1531
|
+
for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
|
|
1532
|
+
var callback = currentTask.callback;
|
|
1533
|
+
if ("function" === typeof callback) {
|
|
1534
|
+
currentTask.callback = null;
|
|
1535
|
+
currentPriorityLevel = currentTask.priorityLevel;
|
|
1536
|
+
var continuationCallback = callback(
|
|
1537
|
+
currentTask.expirationTime <= currentTime
|
|
1538
|
+
);
|
|
1539
|
+
currentTime = exports.unstable_now();
|
|
1540
|
+
if ("function" === typeof continuationCallback) {
|
|
1541
|
+
currentTask.callback = continuationCallback;
|
|
1542
|
+
advanceTimers(currentTime);
|
|
1543
|
+
hasMoreWork = true;
|
|
1544
|
+
break b;
|
|
1545
|
+
}
|
|
1546
|
+
currentTask === peek(taskQueue) && pop(taskQueue);
|
|
1547
|
+
advanceTimers(currentTime);
|
|
1548
|
+
} else pop(taskQueue);
|
|
1549
|
+
currentTask = peek(taskQueue);
|
|
1550
|
+
}
|
|
1551
|
+
if (null !== currentTask) hasMoreWork = true;
|
|
1552
|
+
else {
|
|
1553
|
+
var firstTimer = peek(timerQueue);
|
|
1554
|
+
null !== firstTimer && requestHostTimeout(
|
|
1555
|
+
handleTimeout,
|
|
1556
|
+
firstTimer.startTime - currentTime
|
|
1557
|
+
);
|
|
1558
|
+
hasMoreWork = false;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
break a;
|
|
1562
|
+
} finally {
|
|
1563
|
+
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
|
|
1456
1564
|
}
|
|
1457
|
-
|
|
1458
|
-
} catch (error) {
|
|
1459
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
1460
|
-
} finally {
|
|
1461
|
-
isFlushing = false;
|
|
1565
|
+
hasMoreWork = void 0;
|
|
1462
1566
|
}
|
|
1567
|
+
} finally {
|
|
1568
|
+
hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
|
|
1463
1569
|
}
|
|
1464
1570
|
}
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
return false;
|
|
1471
|
-
},
|
|
1472
|
-
enqueueForceUpdate: function(publicInstance) {
|
|
1473
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
1474
|
-
},
|
|
1475
|
-
enqueueReplaceState: function(publicInstance) {
|
|
1476
|
-
warnNoop(publicInstance, "replaceState");
|
|
1477
|
-
},
|
|
1478
|
-
enqueueSetState: function(publicInstance) {
|
|
1479
|
-
warnNoop(publicInstance, "setState");
|
|
1480
|
-
}
|
|
1481
|
-
}, assign = Object.assign, emptyObject = {};
|
|
1482
|
-
Object.freeze(emptyObject);
|
|
1483
|
-
Component.prototype.isReactComponent = {};
|
|
1484
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
1485
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
1486
|
-
throw Error(
|
|
1487
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1488
|
-
);
|
|
1489
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1490
|
-
};
|
|
1491
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
1492
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1571
|
+
}
|
|
1572
|
+
var schedulePerformWorkUntilDeadline;
|
|
1573
|
+
if ("function" === typeof localSetImmediate)
|
|
1574
|
+
schedulePerformWorkUntilDeadline = function() {
|
|
1575
|
+
localSetImmediate(performWorkUntilDeadline);
|
|
1493
1576
|
};
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
replaceState: [
|
|
1500
|
-
"replaceState",
|
|
1501
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1502
|
-
]
|
|
1503
|
-
}, fnName;
|
|
1504
|
-
for (fnName in deprecatedAPIs)
|
|
1505
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1506
|
-
ComponentDummy.prototype = Component.prototype;
|
|
1507
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1508
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
1509
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
1510
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
1511
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1512
|
-
H: null,
|
|
1513
|
-
A: null,
|
|
1514
|
-
T: null,
|
|
1515
|
-
S: null,
|
|
1516
|
-
V: null,
|
|
1517
|
-
actQueue: null,
|
|
1518
|
-
isBatchingLegacy: false,
|
|
1519
|
-
didScheduleLegacyUpdate: false,
|
|
1520
|
-
didUsePromise: false,
|
|
1521
|
-
thrownErrors: [],
|
|
1522
|
-
getCurrentStack: null,
|
|
1523
|
-
recentlyCreatedOwnerStacks: 0
|
|
1524
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1525
|
-
return null;
|
|
1577
|
+
else if ("undefined" !== typeof MessageChannel) {
|
|
1578
|
+
channel = new MessageChannel(), port = channel.port2;
|
|
1579
|
+
channel.port1.onmessage = performWorkUntilDeadline;
|
|
1580
|
+
schedulePerformWorkUntilDeadline = function() {
|
|
1581
|
+
port.postMessage(null);
|
|
1526
1582
|
};
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
}
|
|
1583
|
+
} else
|
|
1584
|
+
schedulePerformWorkUntilDeadline = function() {
|
|
1585
|
+
localSetTimeout(performWorkUntilDeadline, 0);
|
|
1531
1586
|
};
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1587
|
+
var channel;
|
|
1588
|
+
var port;
|
|
1589
|
+
function requestHostTimeout(callback, ms) {
|
|
1590
|
+
taskTimeoutID = localSetTimeout(function() {
|
|
1591
|
+
callback(exports.unstable_now());
|
|
1592
|
+
}, ms);
|
|
1593
|
+
}
|
|
1594
|
+
exports.unstable_IdlePriority = 5;
|
|
1595
|
+
exports.unstable_ImmediatePriority = 1;
|
|
1596
|
+
exports.unstable_LowPriority = 4;
|
|
1597
|
+
exports.unstable_NormalPriority = 3;
|
|
1598
|
+
exports.unstable_Profiling = null;
|
|
1599
|
+
exports.unstable_UserBlockingPriority = 2;
|
|
1600
|
+
exports.unstable_cancelCallback = function(task) {
|
|
1601
|
+
task.callback = null;
|
|
1602
|
+
};
|
|
1603
|
+
exports.unstable_forceFrameRate = function(fps) {
|
|
1604
|
+
0 > fps || 125 < fps ? console.error(
|
|
1605
|
+
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
|
|
1606
|
+
) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
|
|
1607
|
+
};
|
|
1608
|
+
exports.unstable_getCurrentPriorityLevel = function() {
|
|
1609
|
+
return currentPriorityLevel;
|
|
1610
|
+
};
|
|
1611
|
+
exports.unstable_next = function(eventHandler) {
|
|
1612
|
+
switch (currentPriorityLevel) {
|
|
1613
|
+
case 1:
|
|
1614
|
+
case 2:
|
|
1615
|
+
case 3:
|
|
1616
|
+
var priorityLevel = 3;
|
|
1617
|
+
break;
|
|
1618
|
+
default:
|
|
1619
|
+
priorityLevel = currentPriorityLevel;
|
|
1620
|
+
}
|
|
1621
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1622
|
+
currentPriorityLevel = priorityLevel;
|
|
1623
|
+
try {
|
|
1624
|
+
return eventHandler();
|
|
1625
|
+
} finally {
|
|
1626
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
exports.unstable_requestPaint = function() {
|
|
1630
|
+
needsPaint = true;
|
|
1631
|
+
};
|
|
1632
|
+
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
1633
|
+
switch (priorityLevel) {
|
|
1634
|
+
case 1:
|
|
1635
|
+
case 2:
|
|
1636
|
+
case 3:
|
|
1637
|
+
case 4:
|
|
1638
|
+
case 5:
|
|
1639
|
+
break;
|
|
1640
|
+
default:
|
|
1641
|
+
priorityLevel = 3;
|
|
1642
|
+
}
|
|
1643
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1644
|
+
currentPriorityLevel = priorityLevel;
|
|
1645
|
+
try {
|
|
1646
|
+
return eventHandler();
|
|
1647
|
+
} finally {
|
|
1648
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1651
|
+
exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
1652
|
+
var currentTime = exports.unstable_now();
|
|
1653
|
+
"object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
|
|
1654
|
+
switch (priorityLevel) {
|
|
1655
|
+
case 1:
|
|
1656
|
+
var timeout = -1;
|
|
1657
|
+
break;
|
|
1658
|
+
case 2:
|
|
1659
|
+
timeout = 250;
|
|
1660
|
+
break;
|
|
1661
|
+
case 5:
|
|
1662
|
+
timeout = 1073741823;
|
|
1663
|
+
break;
|
|
1664
|
+
case 4:
|
|
1665
|
+
timeout = 1e4;
|
|
1666
|
+
break;
|
|
1667
|
+
default:
|
|
1668
|
+
timeout = 5e3;
|
|
1669
|
+
}
|
|
1670
|
+
timeout = options + timeout;
|
|
1671
|
+
priorityLevel = {
|
|
1672
|
+
id: taskIdCounter++,
|
|
1673
|
+
callback,
|
|
1674
|
+
priorityLevel,
|
|
1675
|
+
startTime: options,
|
|
1676
|
+
expirationTime: timeout,
|
|
1677
|
+
sortIndex: -1
|
|
1591
1678
|
};
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1602
|
-
actScopeDepth++;
|
|
1603
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1679
|
+
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
|
|
1680
|
+
return priorityLevel;
|
|
1681
|
+
};
|
|
1682
|
+
exports.unstable_shouldYield = shouldYieldToHost;
|
|
1683
|
+
exports.unstable_wrapCallback = function(callback) {
|
|
1684
|
+
var parentPriorityLevel = currentPriorityLevel;
|
|
1685
|
+
return function() {
|
|
1686
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1687
|
+
currentPriorityLevel = parentPriorityLevel;
|
|
1604
1688
|
try {
|
|
1605
|
-
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1689
|
+
return callback.apply(this, arguments);
|
|
1690
|
+
} finally {
|
|
1691
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
1608
1692
|
}
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
if (
|
|
1637
|
-
|
|
1638
|
-
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
});
|
|
1697
|
+
|
|
1698
|
+
// ../../node_modules/scheduler/cjs/scheduler.development.js
|
|
1699
|
+
var require_scheduler_development = __commonJS({
|
|
1700
|
+
"../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
|
|
1701
|
+
"use strict";
|
|
1702
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
1703
|
+
function performWorkUntilDeadline() {
|
|
1704
|
+
needsPaint = false;
|
|
1705
|
+
if (isMessageLoopRunning) {
|
|
1706
|
+
var currentTime = exports.unstable_now();
|
|
1707
|
+
startTime = currentTime;
|
|
1708
|
+
var hasMoreWork = true;
|
|
1709
|
+
try {
|
|
1710
|
+
a: {
|
|
1711
|
+
isHostCallbackScheduled = false;
|
|
1712
|
+
isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
|
|
1713
|
+
isPerformingWork = true;
|
|
1714
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1715
|
+
try {
|
|
1716
|
+
b: {
|
|
1717
|
+
advanceTimers(currentTime);
|
|
1718
|
+
for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
|
|
1719
|
+
var callback = currentTask.callback;
|
|
1720
|
+
if ("function" === typeof callback) {
|
|
1721
|
+
currentTask.callback = null;
|
|
1722
|
+
currentPriorityLevel = currentTask.priorityLevel;
|
|
1723
|
+
var continuationCallback = callback(
|
|
1724
|
+
currentTask.expirationTime <= currentTime
|
|
1639
1725
|
);
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1726
|
+
currentTime = exports.unstable_now();
|
|
1727
|
+
if ("function" === typeof continuationCallback) {
|
|
1728
|
+
currentTask.callback = continuationCallback;
|
|
1729
|
+
advanceTimers(currentTime);
|
|
1730
|
+
hasMoreWork = true;
|
|
1731
|
+
break b;
|
|
1732
|
+
}
|
|
1733
|
+
currentTask === peek(taskQueue) && pop(taskQueue);
|
|
1734
|
+
advanceTimers(currentTime);
|
|
1735
|
+
} else pop(taskQueue);
|
|
1736
|
+
currentTask = peek(taskQueue);
|
|
1737
|
+
}
|
|
1738
|
+
if (null !== currentTask) hasMoreWork = true;
|
|
1739
|
+
else {
|
|
1740
|
+
var firstTimer = peek(timerQueue);
|
|
1741
|
+
null !== firstTimer && requestHostTimeout(
|
|
1742
|
+
handleTimeout,
|
|
1743
|
+
firstTimer.startTime - currentTime
|
|
1744
|
+
);
|
|
1745
|
+
hasMoreWork = false;
|
|
1746
|
+
}
|
|
1650
1747
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1657
|
-
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1658
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1659
|
-
"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(() => ...)"
|
|
1660
|
-
));
|
|
1661
|
-
}), ReactSharedInternals.actQueue = null);
|
|
1662
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1663
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1664
|
-
return {
|
|
1665
|
-
then: function(resolve, reject) {
|
|
1666
|
-
didAwaitActCall = true;
|
|
1667
|
-
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1668
|
-
return recursivelyFlushAsyncActWork(
|
|
1669
|
-
returnValue$jscomp$0,
|
|
1670
|
-
resolve,
|
|
1671
|
-
reject
|
|
1672
|
-
);
|
|
1673
|
-
})) : resolve(returnValue$jscomp$0);
|
|
1674
|
-
}
|
|
1675
|
-
};
|
|
1676
|
-
};
|
|
1677
|
-
exports.cache = function(fn) {
|
|
1678
|
-
return function() {
|
|
1679
|
-
return fn.apply(null, arguments);
|
|
1680
|
-
};
|
|
1681
|
-
};
|
|
1682
|
-
exports.captureOwnerStack = function() {
|
|
1683
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1684
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1685
|
-
};
|
|
1686
|
-
exports.cloneElement = function(element, config, children) {
|
|
1687
|
-
if (null === element || void 0 === element)
|
|
1688
|
-
throw Error(
|
|
1689
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
1690
|
-
);
|
|
1691
|
-
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1692
|
-
if (null != config) {
|
|
1693
|
-
var JSCompiler_inline_result;
|
|
1694
|
-
a: {
|
|
1695
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1696
|
-
config,
|
|
1697
|
-
"ref"
|
|
1698
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1699
|
-
JSCompiler_inline_result = false;
|
|
1700
|
-
break a;
|
|
1748
|
+
break a;
|
|
1749
|
+
} finally {
|
|
1750
|
+
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
|
|
1751
|
+
}
|
|
1752
|
+
hasMoreWork = void 0;
|
|
1701
1753
|
}
|
|
1702
|
-
|
|
1754
|
+
} finally {
|
|
1755
|
+
hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
|
|
1703
1756
|
}
|
|
1704
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1705
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1706
|
-
for (propName in config)
|
|
1707
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1708
1757
|
}
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1758
|
+
}
|
|
1759
|
+
function push(heap, node) {
|
|
1760
|
+
var index = heap.length;
|
|
1761
|
+
heap.push(node);
|
|
1762
|
+
a: for (; 0 < index; ) {
|
|
1763
|
+
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
|
|
1764
|
+
if (0 < compare(parent, node))
|
|
1765
|
+
heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
|
|
1766
|
+
else break a;
|
|
1716
1767
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
_currentValue: defaultValue,
|
|
1735
|
-
_currentValue2: defaultValue,
|
|
1736
|
-
_threadCount: 0,
|
|
1737
|
-
Provider: null,
|
|
1738
|
-
Consumer: null
|
|
1739
|
-
};
|
|
1740
|
-
defaultValue.Provider = defaultValue;
|
|
1741
|
-
defaultValue.Consumer = {
|
|
1742
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1743
|
-
_context: defaultValue
|
|
1744
|
-
};
|
|
1745
|
-
defaultValue._currentRenderer = null;
|
|
1746
|
-
defaultValue._currentRenderer2 = null;
|
|
1747
|
-
return defaultValue;
|
|
1748
|
-
};
|
|
1749
|
-
exports.createElement = function(type, config, children) {
|
|
1750
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1751
|
-
var node = arguments[i];
|
|
1752
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1768
|
+
}
|
|
1769
|
+
function peek(heap) {
|
|
1770
|
+
return 0 === heap.length ? null : heap[0];
|
|
1771
|
+
}
|
|
1772
|
+
function pop(heap) {
|
|
1773
|
+
if (0 === heap.length) return null;
|
|
1774
|
+
var first = heap[0], last = heap.pop();
|
|
1775
|
+
if (last !== first) {
|
|
1776
|
+
heap[0] = last;
|
|
1777
|
+
a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
|
|
1778
|
+
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
1779
|
+
if (0 > compare(left, last))
|
|
1780
|
+
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
|
|
1781
|
+
else if (rightIndex < length && 0 > compare(right, last))
|
|
1782
|
+
heap[index] = right, heap[rightIndex] = last, index = rightIndex;
|
|
1783
|
+
else break a;
|
|
1784
|
+
}
|
|
1753
1785
|
}
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
var
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
i.children = childArray;
|
|
1786
|
+
return first;
|
|
1787
|
+
}
|
|
1788
|
+
function compare(a, b) {
|
|
1789
|
+
var diff = a.sortIndex - b.sortIndex;
|
|
1790
|
+
return 0 !== diff ? diff : a.id - b.id;
|
|
1791
|
+
}
|
|
1792
|
+
function advanceTimers(currentTime) {
|
|
1793
|
+
for (var timer = peek(timerQueue); null !== timer; ) {
|
|
1794
|
+
if (null === timer.callback) pop(timerQueue);
|
|
1795
|
+
else if (timer.startTime <= currentTime)
|
|
1796
|
+
pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
|
|
1797
|
+
else break;
|
|
1798
|
+
timer = peek(timerQueue);
|
|
1768
1799
|
}
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
getOwner(),
|
|
1783
|
-
i,
|
|
1784
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1785
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1786
|
-
);
|
|
1787
|
-
};
|
|
1788
|
-
exports.createRef = function() {
|
|
1789
|
-
var refObject = { current: null };
|
|
1790
|
-
Object.seal(refObject);
|
|
1791
|
-
return refObject;
|
|
1792
|
-
};
|
|
1793
|
-
exports.forwardRef = function(render) {
|
|
1794
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1795
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1796
|
-
) : "function" !== typeof render ? console.error(
|
|
1797
|
-
"forwardRef requires a render function but was given %s.",
|
|
1798
|
-
null === render ? "null" : typeof render
|
|
1799
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1800
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1801
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1802
|
-
);
|
|
1803
|
-
null != render && null != render.defaultProps && console.error(
|
|
1804
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1805
|
-
);
|
|
1806
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1807
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1808
|
-
enumerable: false,
|
|
1809
|
-
configurable: true,
|
|
1810
|
-
get: function() {
|
|
1811
|
-
return ownName;
|
|
1812
|
-
},
|
|
1813
|
-
set: function(name) {
|
|
1814
|
-
ownName = name;
|
|
1815
|
-
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1800
|
+
}
|
|
1801
|
+
function handleTimeout(currentTime) {
|
|
1802
|
+
isHostTimeoutScheduled = false;
|
|
1803
|
+
advanceTimers(currentTime);
|
|
1804
|
+
if (!isHostCallbackScheduled)
|
|
1805
|
+
if (null !== peek(taskQueue))
|
|
1806
|
+
isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
|
|
1807
|
+
else {
|
|
1808
|
+
var firstTimer = peek(timerQueue);
|
|
1809
|
+
null !== firstTimer && requestHostTimeout(
|
|
1810
|
+
handleTimeout,
|
|
1811
|
+
firstTimer.startTime - currentTime
|
|
1812
|
+
);
|
|
1816
1813
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1814
|
+
}
|
|
1815
|
+
function shouldYieldToHost() {
|
|
1816
|
+
return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
|
|
1817
|
+
}
|
|
1818
|
+
function requestHostTimeout(callback, ms) {
|
|
1819
|
+
taskTimeoutID = localSetTimeout(function() {
|
|
1820
|
+
callback(exports.unstable_now());
|
|
1821
|
+
}, ms);
|
|
1822
|
+
}
|
|
1823
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1824
|
+
exports.unstable_now = void 0;
|
|
1825
|
+
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
1826
|
+
var localPerformance = performance;
|
|
1827
|
+
exports.unstable_now = function() {
|
|
1828
|
+
return localPerformance.now();
|
|
1826
1829
|
};
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
null === type ? "null" : typeof type
|
|
1832
|
-
);
|
|
1833
|
-
compare = {
|
|
1834
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1835
|
-
type,
|
|
1836
|
-
compare: void 0 === compare ? null : compare
|
|
1830
|
+
} else {
|
|
1831
|
+
var localDate = Date, initialTime = localDate.now();
|
|
1832
|
+
exports.unstable_now = function() {
|
|
1833
|
+
return localDate.now() - initialTime;
|
|
1837
1834
|
};
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1835
|
+
}
|
|
1836
|
+
var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
|
|
1837
|
+
if ("function" === typeof localSetImmediate)
|
|
1838
|
+
var schedulePerformWorkUntilDeadline = function() {
|
|
1839
|
+
localSetImmediate(performWorkUntilDeadline);
|
|
1840
|
+
};
|
|
1841
|
+
else if ("undefined" !== typeof MessageChannel) {
|
|
1842
|
+
var channel = new MessageChannel(), port = channel.port2;
|
|
1843
|
+
channel.port1.onmessage = performWorkUntilDeadline;
|
|
1844
|
+
schedulePerformWorkUntilDeadline = function() {
|
|
1845
|
+
port.postMessage(null);
|
|
1846
|
+
};
|
|
1847
|
+
} else
|
|
1848
|
+
schedulePerformWorkUntilDeadline = function() {
|
|
1849
|
+
localSetTimeout(performWorkUntilDeadline, 0);
|
|
1850
|
+
};
|
|
1851
|
+
exports.unstable_IdlePriority = 5;
|
|
1852
|
+
exports.unstable_ImmediatePriority = 1;
|
|
1853
|
+
exports.unstable_LowPriority = 4;
|
|
1854
|
+
exports.unstable_NormalPriority = 3;
|
|
1855
|
+
exports.unstable_Profiling = null;
|
|
1856
|
+
exports.unstable_UserBlockingPriority = 2;
|
|
1857
|
+
exports.unstable_cancelCallback = function(task) {
|
|
1858
|
+
task.callback = null;
|
|
1851
1859
|
};
|
|
1852
|
-
exports.
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1860
|
+
exports.unstable_forceFrameRate = function(fps) {
|
|
1861
|
+
0 > fps || 125 < fps ? console.error(
|
|
1862
|
+
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
|
|
1863
|
+
) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
|
|
1864
|
+
};
|
|
1865
|
+
exports.unstable_getCurrentPriorityLevel = function() {
|
|
1866
|
+
return currentPriorityLevel;
|
|
1867
|
+
};
|
|
1868
|
+
exports.unstable_next = function(eventHandler) {
|
|
1869
|
+
switch (currentPriorityLevel) {
|
|
1870
|
+
case 1:
|
|
1871
|
+
case 2:
|
|
1872
|
+
case 3:
|
|
1873
|
+
var priorityLevel = 3;
|
|
1874
|
+
break;
|
|
1875
|
+
default:
|
|
1876
|
+
priorityLevel = currentPriorityLevel;
|
|
1877
|
+
}
|
|
1878
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1879
|
+
currentPriorityLevel = priorityLevel;
|
|
1856
1880
|
try {
|
|
1857
|
-
|
|
1858
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1859
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1860
|
-
} catch (error) {
|
|
1861
|
-
reportGlobalError(error);
|
|
1881
|
+
return eventHandler();
|
|
1862
1882
|
} finally {
|
|
1863
|
-
|
|
1864
|
-
"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."
|
|
1865
|
-
)), ReactSharedInternals.T = prevTransition;
|
|
1883
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
1866
1884
|
}
|
|
1867
1885
|
};
|
|
1868
|
-
exports.
|
|
1869
|
-
|
|
1870
|
-
};
|
|
1871
|
-
exports.use = function(usable) {
|
|
1872
|
-
return resolveDispatcher().use(usable);
|
|
1873
|
-
};
|
|
1874
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
1875
|
-
return resolveDispatcher().useActionState(
|
|
1876
|
-
action,
|
|
1877
|
-
initialState,
|
|
1878
|
-
permalink
|
|
1879
|
-
);
|
|
1880
|
-
};
|
|
1881
|
-
exports.useCallback = function(callback, deps) {
|
|
1882
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1883
|
-
};
|
|
1884
|
-
exports.useContext = function(Context) {
|
|
1885
|
-
var dispatcher = resolveDispatcher();
|
|
1886
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1887
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1888
|
-
);
|
|
1889
|
-
return dispatcher.useContext(Context);
|
|
1890
|
-
};
|
|
1891
|
-
exports.useDebugValue = function(value, formatterFn) {
|
|
1892
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1893
|
-
};
|
|
1894
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
1895
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1896
|
-
};
|
|
1897
|
-
exports.useEffect = function(create, createDeps, update) {
|
|
1898
|
-
null == create && console.warn(
|
|
1899
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1900
|
-
);
|
|
1901
|
-
var dispatcher = resolveDispatcher();
|
|
1902
|
-
if ("function" === typeof update)
|
|
1903
|
-
throw Error(
|
|
1904
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
1905
|
-
);
|
|
1906
|
-
return dispatcher.useEffect(create, createDeps);
|
|
1907
|
-
};
|
|
1908
|
-
exports.useId = function() {
|
|
1909
|
-
return resolveDispatcher().useId();
|
|
1910
|
-
};
|
|
1911
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1912
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1913
|
-
};
|
|
1914
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
1915
|
-
null == create && console.warn(
|
|
1916
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1917
|
-
);
|
|
1918
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1919
|
-
};
|
|
1920
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
1921
|
-
null == create && console.warn(
|
|
1922
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1923
|
-
);
|
|
1924
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1925
|
-
};
|
|
1926
|
-
exports.useMemo = function(create, deps) {
|
|
1927
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1928
|
-
};
|
|
1929
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
1930
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1931
|
-
};
|
|
1932
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
1933
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1934
|
-
};
|
|
1935
|
-
exports.useRef = function(initialValue) {
|
|
1936
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1886
|
+
exports.unstable_requestPaint = function() {
|
|
1887
|
+
needsPaint = true;
|
|
1937
1888
|
};
|
|
1938
|
-
exports.
|
|
1939
|
-
|
|
1889
|
+
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
1890
|
+
switch (priorityLevel) {
|
|
1891
|
+
case 1:
|
|
1892
|
+
case 2:
|
|
1893
|
+
case 3:
|
|
1894
|
+
case 4:
|
|
1895
|
+
case 5:
|
|
1896
|
+
break;
|
|
1897
|
+
default:
|
|
1898
|
+
priorityLevel = 3;
|
|
1899
|
+
}
|
|
1900
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1901
|
+
currentPriorityLevel = priorityLevel;
|
|
1902
|
+
try {
|
|
1903
|
+
return eventHandler();
|
|
1904
|
+
} finally {
|
|
1905
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
1906
|
+
}
|
|
1940
1907
|
};
|
|
1941
|
-
exports.
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1908
|
+
exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
1909
|
+
var currentTime = exports.unstable_now();
|
|
1910
|
+
"object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
|
|
1911
|
+
switch (priorityLevel) {
|
|
1912
|
+
case 1:
|
|
1913
|
+
var timeout = -1;
|
|
1914
|
+
break;
|
|
1915
|
+
case 2:
|
|
1916
|
+
timeout = 250;
|
|
1917
|
+
break;
|
|
1918
|
+
case 5:
|
|
1919
|
+
timeout = 1073741823;
|
|
1920
|
+
break;
|
|
1921
|
+
case 4:
|
|
1922
|
+
timeout = 1e4;
|
|
1923
|
+
break;
|
|
1924
|
+
default:
|
|
1925
|
+
timeout = 5e3;
|
|
1926
|
+
}
|
|
1927
|
+
timeout = options + timeout;
|
|
1928
|
+
priorityLevel = {
|
|
1929
|
+
id: taskIdCounter++,
|
|
1930
|
+
callback,
|
|
1931
|
+
priorityLevel,
|
|
1932
|
+
startTime: options,
|
|
1933
|
+
expirationTime: timeout,
|
|
1934
|
+
sortIndex: -1
|
|
1935
|
+
};
|
|
1936
|
+
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
|
|
1937
|
+
return priorityLevel;
|
|
1947
1938
|
};
|
|
1948
|
-
exports.
|
|
1949
|
-
|
|
1939
|
+
exports.unstable_shouldYield = shouldYieldToHost;
|
|
1940
|
+
exports.unstable_wrapCallback = function(callback) {
|
|
1941
|
+
var parentPriorityLevel = currentPriorityLevel;
|
|
1942
|
+
return function() {
|
|
1943
|
+
var previousPriorityLevel = currentPriorityLevel;
|
|
1944
|
+
currentPriorityLevel = parentPriorityLevel;
|
|
1945
|
+
try {
|
|
1946
|
+
return callback.apply(this, arguments);
|
|
1947
|
+
} finally {
|
|
1948
|
+
currentPriorityLevel = previousPriorityLevel;
|
|
1949
|
+
}
|
|
1950
|
+
};
|
|
1950
1951
|
};
|
|
1951
|
-
exports.version = "19.1.0";
|
|
1952
1952
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1953
1953
|
}();
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
1956
|
|
|
1957
|
-
// ../../node_modules/
|
|
1958
|
-
var
|
|
1959
|
-
"../../node_modules/
|
|
1957
|
+
// ../../node_modules/scheduler/index.js
|
|
1958
|
+
var require_scheduler = __commonJS({
|
|
1959
|
+
"../../node_modules/scheduler/index.js"(exports, module) {
|
|
1960
1960
|
"use strict";
|
|
1961
1961
|
if (process.env.NODE_ENV === "production") {
|
|
1962
|
-
module.exports =
|
|
1962
|
+
module.exports = require_scheduler_production();
|
|
1963
1963
|
} else {
|
|
1964
|
-
module.exports =
|
|
1964
|
+
module.exports = require_scheduler_development();
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
1967
|
});
|
|
@@ -1970,7 +1970,7 @@ var require_react = __commonJS({
|
|
|
1970
1970
|
var require_react_dom_production = __commonJS({
|
|
1971
1971
|
"../../node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
1972
1972
|
"use strict";
|
|
1973
|
-
var
|
|
1973
|
+
var React8 = require_react();
|
|
1974
1974
|
function formatProdErrorMessage(code) {
|
|
1975
1975
|
var url = "https://react.dev/errors/" + code;
|
|
1976
1976
|
if (1 < arguments.length) {
|
|
@@ -2010,7 +2010,7 @@ var require_react_dom_production = __commonJS({
|
|
|
2010
2010
|
implementation
|
|
2011
2011
|
};
|
|
2012
2012
|
}
|
|
2013
|
-
var ReactSharedInternals =
|
|
2013
|
+
var ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
2014
2014
|
function getCrossOriginStringAs(as, input) {
|
|
2015
2015
|
if ("font" === as) return "";
|
|
2016
2016
|
if ("string" === typeof input)
|
|
@@ -2164,7 +2164,7 @@ var require_react_dom_development = __commonJS({
|
|
|
2164
2164
|
return dispatcher;
|
|
2165
2165
|
}
|
|
2166
2166
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2167
|
-
var
|
|
2167
|
+
var React8 = require_react(), Internals = {
|
|
2168
2168
|
d: {
|
|
2169
2169
|
f: noop,
|
|
2170
2170
|
r: function() {
|
|
@@ -2182,7 +2182,7 @@ var require_react_dom_development = __commonJS({
|
|
|
2182
2182
|
},
|
|
2183
2183
|
p: 0,
|
|
2184
2184
|
findDOMNode: null
|
|
2185
|
-
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals =
|
|
2185
|
+
}, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
2186
2186
|
"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(
|
|
2187
2187
|
"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"
|
|
2188
2188
|
);
|
|
@@ -2390,7 +2390,7 @@ var require_react_dom_client_production = __commonJS({
|
|
|
2390
2390
|
"../../node_modules/react-dom/cjs/react-dom-client.production.js"(exports) {
|
|
2391
2391
|
"use strict";
|
|
2392
2392
|
var Scheduler = require_scheduler();
|
|
2393
|
-
var
|
|
2393
|
+
var React8 = require_react();
|
|
2394
2394
|
var ReactDOM = require_react_dom();
|
|
2395
2395
|
function formatProdErrorMessage(code) {
|
|
2396
2396
|
var url = "https://react.dev/errors/" + code;
|
|
@@ -2578,7 +2578,7 @@ var require_react_dom_client_production = __commonJS({
|
|
|
2578
2578
|
return null;
|
|
2579
2579
|
}
|
|
2580
2580
|
var isArrayImpl = Array.isArray;
|
|
2581
|
-
var ReactSharedInternals =
|
|
2581
|
+
var ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
2582
2582
|
var ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
2583
2583
|
var sharedNotPendingObject = {
|
|
2584
2584
|
pending: false,
|
|
@@ -13570,7 +13570,7 @@ var require_react_dom_client_production = __commonJS({
|
|
|
13570
13570
|
0 === i && attemptExplicitHydrationTarget(target);
|
|
13571
13571
|
}
|
|
13572
13572
|
};
|
|
13573
|
-
var isomorphicReactPackageVersion$jscomp$inline_1785 =
|
|
13573
|
+
var isomorphicReactPackageVersion$jscomp$inline_1785 = React8.version;
|
|
13574
13574
|
if ("19.1.0" !== isomorphicReactPackageVersion$jscomp$inline_1785)
|
|
13575
13575
|
throw Error(
|
|
13576
13576
|
formatProdErrorMessage(
|
|
@@ -15021,7 +15021,7 @@ var require_react_dom_client_development = __commonJS({
|
|
|
15021
15021
|
"number" === type && getActiveElement(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value);
|
|
15022
15022
|
}
|
|
15023
15023
|
function validateOptionProps(element, props) {
|
|
15024
|
-
null == props.value && ("object" === typeof props.children && null !== props.children ?
|
|
15024
|
+
null == props.value && ("object" === typeof props.children && null !== props.children ? React8.Children.forEach(props.children, function(child) {
|
|
15025
15025
|
null == child || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || didWarnInvalidChild || (didWarnInvalidChild = true, console.error(
|
|
15026
15026
|
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
|
|
15027
15027
|
));
|
|
@@ -28603,14 +28603,14 @@ var require_react_dom_client_development = __commonJS({
|
|
|
28603
28603
|
));
|
|
28604
28604
|
}
|
|
28605
28605
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
28606
|
-
var Scheduler = require_scheduler(),
|
|
28606
|
+
var Scheduler = require_scheduler(), React8 = require_react(), ReactDOM = require_react_dom(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), 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"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), 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");
|
|
28607
28607
|
Symbol.for("react.scope");
|
|
28608
28608
|
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
28609
28609
|
Symbol.for("react.legacy_hidden");
|
|
28610
28610
|
Symbol.for("react.tracing_marker");
|
|
28611
28611
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
|
28612
28612
|
Symbol.for("react.view_transition");
|
|
28613
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals =
|
|
28613
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
|
|
28614
28614
|
pending: false,
|
|
28615
28615
|
data: null,
|
|
28616
28616
|
method: null,
|
|
@@ -31324,7 +31324,7 @@ var require_react_dom_client_development = __commonJS({
|
|
|
31324
31324
|
}
|
|
31325
31325
|
};
|
|
31326
31326
|
(function() {
|
|
31327
|
-
var isomorphicReactPackageVersion =
|
|
31327
|
+
var isomorphicReactPackageVersion = React8.version;
|
|
31328
31328
|
if ("19.1.0" !== isomorphicReactPackageVersion)
|
|
31329
31329
|
throw Error(
|
|
31330
31330
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
@@ -31720,20 +31720,20 @@ var require_react_jsx_runtime_development = __commonJS({
|
|
|
31720
31720
|
function validateChildKeys(node) {
|
|
31721
31721
|
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
31722
31722
|
}
|
|
31723
|
-
var
|
|
31723
|
+
var React8 = 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");
|
|
31724
31724
|
Symbol.for("react.provider");
|
|
31725
|
-
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 =
|
|
31725
|
+
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 = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
31726
31726
|
return null;
|
|
31727
31727
|
};
|
|
31728
|
-
|
|
31728
|
+
React8 = {
|
|
31729
31729
|
"react-stack-bottom-frame": function(callStackForError) {
|
|
31730
31730
|
return callStackForError();
|
|
31731
31731
|
}
|
|
31732
31732
|
};
|
|
31733
31733
|
var specialPropKeyWarningShown;
|
|
31734
31734
|
var didWarnAboutElementRef = {};
|
|
31735
|
-
var unknownOwnerDebugStack =
|
|
31736
|
-
|
|
31735
|
+
var unknownOwnerDebugStack = React8["react-stack-bottom-frame"].bind(
|
|
31736
|
+
React8,
|
|
31737
31737
|
UnknownOwner
|
|
31738
31738
|
)();
|
|
31739
31739
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
@@ -31782,7 +31782,9 @@ var require_jsx_runtime = __commonJS({
|
|
|
31782
31782
|
});
|
|
31783
31783
|
|
|
31784
31784
|
// src/inspector/custom-element.tsx
|
|
31785
|
+
var import_react18 = __toESM(require_react(), 1);
|
|
31785
31786
|
var import_client = __toESM(require_client(), 1);
|
|
31787
|
+
import { setup } from "goober";
|
|
31786
31788
|
import { Account } from "jazz-tools";
|
|
31787
31789
|
|
|
31788
31790
|
// src/inspector/viewer/new-app.tsx
|
|
@@ -34140,6 +34142,7 @@ function JazzInspectorInternal({
|
|
|
34140
34142
|
|
|
34141
34143
|
// src/inspector/custom-element.tsx
|
|
34142
34144
|
var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
|
|
34145
|
+
setup(import_react18.default.createElement);
|
|
34143
34146
|
var JazzInspectorElement = class extends HTMLElement {
|
|
34144
34147
|
constructor() {
|
|
34145
34148
|
super(...arguments);
|
|
@@ -34197,10 +34200,10 @@ export {
|
|
|
34197
34200
|
};
|
|
34198
34201
|
/*! Bundled license information:
|
|
34199
34202
|
|
|
34200
|
-
|
|
34203
|
+
react/cjs/react.production.js:
|
|
34201
34204
|
(**
|
|
34202
34205
|
* @license React
|
|
34203
|
-
*
|
|
34206
|
+
* react.production.js
|
|
34204
34207
|
*
|
|
34205
34208
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
34206
34209
|
*
|
|
@@ -34208,10 +34211,10 @@ scheduler/cjs/scheduler.production.js:
|
|
|
34208
34211
|
* LICENSE file in the root directory of this source tree.
|
|
34209
34212
|
*)
|
|
34210
34213
|
|
|
34211
|
-
|
|
34214
|
+
react/cjs/react.development.js:
|
|
34212
34215
|
(**
|
|
34213
34216
|
* @license React
|
|
34214
|
-
*
|
|
34217
|
+
* react.development.js
|
|
34215
34218
|
*
|
|
34216
34219
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
34217
34220
|
*
|
|
@@ -34219,10 +34222,10 @@ scheduler/cjs/scheduler.development.js:
|
|
|
34219
34222
|
* LICENSE file in the root directory of this source tree.
|
|
34220
34223
|
*)
|
|
34221
34224
|
|
|
34222
|
-
|
|
34225
|
+
scheduler/cjs/scheduler.production.js:
|
|
34223
34226
|
(**
|
|
34224
34227
|
* @license React
|
|
34225
|
-
*
|
|
34228
|
+
* scheduler.production.js
|
|
34226
34229
|
*
|
|
34227
34230
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
34228
34231
|
*
|
|
@@ -34230,10 +34233,10 @@ react/cjs/react.production.js:
|
|
|
34230
34233
|
* LICENSE file in the root directory of this source tree.
|
|
34231
34234
|
*)
|
|
34232
34235
|
|
|
34233
|
-
|
|
34236
|
+
scheduler/cjs/scheduler.development.js:
|
|
34234
34237
|
(**
|
|
34235
34238
|
* @license React
|
|
34236
|
-
*
|
|
34239
|
+
* scheduler.development.js
|
|
34237
34240
|
*
|
|
34238
34241
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
34239
34242
|
*
|
|
@@ -34307,4 +34310,4 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
34307
34310
|
* LICENSE file in the root directory of this source tree.
|
|
34308
34311
|
*)
|
|
34309
34312
|
*/
|
|
34310
|
-
//# sourceMappingURL=custom-element-
|
|
34313
|
+
//# sourceMappingURL=custom-element-35MDW4SW.js.map
|