claude-threads 1.4.6 → 1.4.7
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/CHANGELOG.md +16 -0
- package/dist/index.js +777 -760
- package/dist/mcp/permission-server.js +14408 -1007
- package/package.json +12 -6
package/dist/index.js
CHANGED
|
@@ -5,25 +5,43 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
8
13
|
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
9
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
23
|
for (let key of __getOwnPropNames(mod))
|
|
12
24
|
if (!__hasOwnProp.call(to, key))
|
|
13
25
|
__defProp(to, key, {
|
|
14
|
-
get: (
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
15
27
|
enumerable: true
|
|
16
28
|
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
17
31
|
return to;
|
|
18
32
|
};
|
|
19
33
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
+
var __returnValue = (v) => v;
|
|
35
|
+
function __exportSetter(name, newValue) {
|
|
36
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
37
|
+
}
|
|
20
38
|
var __export = (target, all) => {
|
|
21
39
|
for (var name in all)
|
|
22
40
|
__defProp(target, name, {
|
|
23
41
|
get: all[name],
|
|
24
42
|
enumerable: true,
|
|
25
43
|
configurable: true,
|
|
26
|
-
set: (
|
|
44
|
+
set: __exportSetter.bind(all, name)
|
|
27
45
|
});
|
|
28
46
|
};
|
|
29
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
@@ -15660,14 +15678,14 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
15660
15678
|
if (opts && opts.alwaysLast) {
|
|
15661
15679
|
ev = "afterexit";
|
|
15662
15680
|
}
|
|
15663
|
-
var
|
|
15681
|
+
var remove2 = function() {
|
|
15664
15682
|
emitter.removeListener(ev, cb);
|
|
15665
15683
|
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
15666
15684
|
unload();
|
|
15667
15685
|
}
|
|
15668
15686
|
};
|
|
15669
15687
|
emitter.on(ev, cb);
|
|
15670
|
-
return
|
|
15688
|
+
return remove2;
|
|
15671
15689
|
};
|
|
15672
15690
|
unload = function unload2() {
|
|
15673
15691
|
if (!loaded || !processOk(global.process)) {
|
|
@@ -15858,16 +15876,16 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
15858
15876
|
function pop(heap) {
|
|
15859
15877
|
if (heap.length === 0)
|
|
15860
15878
|
return null;
|
|
15861
|
-
var first = heap[0],
|
|
15862
|
-
if (
|
|
15863
|
-
heap[0] =
|
|
15879
|
+
var first = heap[0], last2 = heap.pop();
|
|
15880
|
+
if (last2 !== first) {
|
|
15881
|
+
heap[0] = last2;
|
|
15864
15882
|
a:
|
|
15865
15883
|
for (var index = 0, length = heap.length, halfLength = length >>> 1;index < halfLength; ) {
|
|
15866
15884
|
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
15867
|
-
if (0 > compare(left,
|
|
15868
|
-
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] =
|
|
15869
|
-
else if (rightIndex < length && 0 > compare(right,
|
|
15870
|
-
heap[index] = right, heap[rightIndex] =
|
|
15885
|
+
if (0 > compare(left, last2))
|
|
15886
|
+
rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last2, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last2, index = leftIndex);
|
|
15887
|
+
else if (rightIndex < length && 0 > compare(right, last2))
|
|
15888
|
+
heap[index] = right, heap[rightIndex] = last2, index = rightIndex;
|
|
15871
15889
|
else
|
|
15872
15890
|
break a;
|
|
15873
15891
|
}
|
|
@@ -16060,7 +16078,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
16060
16078
|
function copyWithSetImpl(obj, path10, index, value) {
|
|
16061
16079
|
if (index >= path10.length)
|
|
16062
16080
|
return value;
|
|
16063
|
-
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
16081
|
+
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
|
|
16064
16082
|
updated[key] = copyWithSetImpl(obj[key], path10, index + 1, value);
|
|
16065
16083
|
return updated;
|
|
16066
16084
|
}
|
|
@@ -16077,12 +16095,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
16077
16095
|
}
|
|
16078
16096
|
}
|
|
16079
16097
|
function copyWithRenameImpl(obj, oldPath, newPath, index) {
|
|
16080
|
-
var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
16098
|
+
var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
|
|
16081
16099
|
index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(obj[oldKey], oldPath, newPath, index + 1);
|
|
16082
16100
|
return updated;
|
|
16083
16101
|
}
|
|
16084
16102
|
function copyWithDeleteImpl(obj, path10, index) {
|
|
16085
|
-
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() :
|
|
16103
|
+
var key = path10[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
|
|
16086
16104
|
if (index + 1 === path10.length)
|
|
16087
16105
|
return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated;
|
|
16088
16106
|
updated[key] = copyWithDeleteImpl(obj[key], path10, index + 1);
|
|
@@ -16100,12 +16118,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
16100
16118
|
function scheduleRoot(root, element) {
|
|
16101
16119
|
root.context === emptyContextObject && (updateContainerSync(element, root, null, null), flushSyncWork());
|
|
16102
16120
|
}
|
|
16103
|
-
function scheduleRefresh(root,
|
|
16121
|
+
function scheduleRefresh(root, update2) {
|
|
16104
16122
|
if (resolveFamily !== null) {
|
|
16105
|
-
var staleFamilies =
|
|
16106
|
-
|
|
16123
|
+
var staleFamilies = update2.staleFamilies;
|
|
16124
|
+
update2 = update2.updatedFamilies;
|
|
16107
16125
|
flushPendingEffects();
|
|
16108
|
-
scheduleFibersWithFamiliesRecursively(root.current,
|
|
16126
|
+
scheduleFibersWithFamiliesRecursively(root.current, update2, staleFamilies);
|
|
16109
16127
|
flushSyncWork();
|
|
16110
16128
|
}
|
|
16111
16129
|
}
|
|
@@ -16118,11 +16136,11 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
16118
16136
|
function warnInvalidContextAccess() {
|
|
16119
16137
|
console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
|
|
16120
16138
|
}
|
|
16121
|
-
function
|
|
16139
|
+
function noop2() {}
|
|
16122
16140
|
function warnForMissingKey() {}
|
|
16123
|
-
function setToSortedString(
|
|
16141
|
+
function setToSortedString(set3) {
|
|
16124
16142
|
var array = [];
|
|
16125
|
-
|
|
16143
|
+
set3.forEach(function(value) {
|
|
16126
16144
|
array.push(value);
|
|
16127
16145
|
});
|
|
16128
16146
|
return array.sort().join(", ");
|
|
@@ -16494,9 +16512,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
16494
16512
|
(nextRetryLane & 62914560) === 0 && (nextRetryLane = 4194304);
|
|
16495
16513
|
return lane;
|
|
16496
16514
|
}
|
|
16497
|
-
function createLaneMap(
|
|
16515
|
+
function createLaneMap(initial2) {
|
|
16498
16516
|
for (var laneMap = [], i2 = 0;31 > i2; i2++)
|
|
16499
|
-
laneMap.push(
|
|
16517
|
+
laneMap.push(initial2);
|
|
16500
16518
|
return laneMap;
|
|
16501
16519
|
}
|
|
16502
16520
|
function markRootUpdated$1(root, updateLane) {
|
|
@@ -16521,8 +16539,8 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
16521
16539
|
var hiddenUpdatesForLane = hiddenUpdates[index];
|
|
16522
16540
|
if (hiddenUpdatesForLane !== null)
|
|
16523
16541
|
for (hiddenUpdates[index] = null, index = 0;index < hiddenUpdatesForLane.length; index++) {
|
|
16524
|
-
var
|
|
16525
|
-
|
|
16542
|
+
var update2 = hiddenUpdatesForLane[index];
|
|
16543
|
+
update2 !== null && (update2.lane &= -536870913);
|
|
16526
16544
|
}
|
|
16527
16545
|
remainingLanes &= ~lane;
|
|
16528
16546
|
}
|
|
@@ -17007,13 +17025,13 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
17007
17025
|
if (disabledDepth === 0) {
|
|
17008
17026
|
var props = { configurable: true, enumerable: true, writable: true };
|
|
17009
17027
|
Object.defineProperties(console, {
|
|
17010
|
-
log:
|
|
17011
|
-
info:
|
|
17012
|
-
warn:
|
|
17013
|
-
error:
|
|
17014
|
-
group:
|
|
17015
|
-
groupCollapsed:
|
|
17016
|
-
groupEnd:
|
|
17028
|
+
log: assign2({}, props, { value: prevLog }),
|
|
17029
|
+
info: assign2({}, props, { value: prevInfo }),
|
|
17030
|
+
warn: assign2({}, props, { value: prevWarn }),
|
|
17031
|
+
error: assign2({}, props, { value: prevError }),
|
|
17032
|
+
group: assign2({}, props, { value: prevGroup }),
|
|
17033
|
+
groupCollapsed: assign2({}, props, { value: prevGroupCollapsed }),
|
|
17034
|
+
groupEnd: assign2({}, props, { value: prevGroupEnd })
|
|
17017
17035
|
});
|
|
17018
17036
|
}
|
|
17019
17037
|
0 > disabledDepth && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
@@ -17099,9 +17117,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
17099
17117
|
}
|
|
17100
17118
|
(Fake = fn()) && typeof Fake.catch === "function" && Fake.catch(function() {});
|
|
17101
17119
|
}
|
|
17102
|
-
} catch (
|
|
17103
|
-
if (
|
|
17104
|
-
return [
|
|
17120
|
+
} catch (sample2) {
|
|
17121
|
+
if (sample2 && control && typeof sample2.stack === "string")
|
|
17122
|
+
return [sample2.stack, control.stack];
|
|
17105
17123
|
}
|
|
17106
17124
|
return [null, null];
|
|
17107
17125
|
}
|
|
@@ -17430,7 +17448,7 @@ Error generating stack: ` + x.message + `
|
|
|
17430
17448
|
`;
|
|
17431
17449
|
}
|
|
17432
17450
|
function describePropertiesDiff(clientObject, serverObject, indent) {
|
|
17433
|
-
var properties = "", remainingServerProperties =
|
|
17451
|
+
var properties = "", remainingServerProperties = assign2({}, serverObject), propName;
|
|
17434
17452
|
for (propName in clientObject)
|
|
17435
17453
|
if (clientObject.hasOwnProperty(propName)) {
|
|
17436
17454
|
delete remainingServerProperties[propName];
|
|
@@ -17932,21 +17950,21 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
17932
17950
|
cache.controller.abort();
|
|
17933
17951
|
});
|
|
17934
17952
|
}
|
|
17935
|
-
function startUpdateTimerByLane(lane,
|
|
17953
|
+
function startUpdateTimerByLane(lane, method2, fiber) {
|
|
17936
17954
|
if ((lane & 127) !== 0)
|
|
17937
|
-
0 > blockingUpdateTime && (blockingUpdateTime =
|
|
17938
|
-
else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime =
|
|
17955
|
+
0 > blockingUpdateTime && (blockingUpdateTime = now2(), blockingUpdateTask = createTask(method2), blockingUpdateMethodName = method2, fiber != null && (blockingUpdateComponentName = getComponentNameFromFiber(fiber)), isAlreadyRendering() && (componentEffectSpawnedUpdate = true, blockingUpdateType = 1), lane = resolveEventTimeStamp(), method2 = resolveEventType(), lane !== blockingEventRepeatTime || method2 !== blockingEventType ? blockingEventRepeatTime = -1.1 : method2 !== null && (blockingUpdateType = 1), blockingEventTime = lane, blockingEventType = method2);
|
|
17956
|
+
else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime = now2(), transitionUpdateTask = createTask(method2), transitionUpdateMethodName = method2, fiber != null && (transitionUpdateComponentName = getComponentNameFromFiber(fiber)), 0 > transitionStartTime)) {
|
|
17939
17957
|
lane = resolveEventTimeStamp();
|
|
17940
|
-
|
|
17941
|
-
if (lane !== transitionEventRepeatTime ||
|
|
17958
|
+
method2 = resolveEventType();
|
|
17959
|
+
if (lane !== transitionEventRepeatTime || method2 !== transitionEventType)
|
|
17942
17960
|
transitionEventRepeatTime = -1.1;
|
|
17943
17961
|
transitionEventTime = lane;
|
|
17944
|
-
transitionEventType =
|
|
17962
|
+
transitionEventType = method2;
|
|
17945
17963
|
}
|
|
17946
17964
|
}
|
|
17947
17965
|
function startHostActionTimer(fiber) {
|
|
17948
17966
|
if (0 > blockingUpdateTime) {
|
|
17949
|
-
blockingUpdateTime =
|
|
17967
|
+
blockingUpdateTime = now2();
|
|
17950
17968
|
blockingUpdateTask = fiber._debugTask != null ? fiber._debugTask : null;
|
|
17951
17969
|
isAlreadyRendering() && (blockingUpdateType = 1);
|
|
17952
17970
|
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
|
|
@@ -17954,7 +17972,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
17954
17972
|
blockingEventTime = newEventTime;
|
|
17955
17973
|
blockingEventType = newEventType;
|
|
17956
17974
|
}
|
|
17957
|
-
if (0 > transitionUpdateTime && (transitionUpdateTime =
|
|
17975
|
+
if (0 > transitionUpdateTime && (transitionUpdateTime = now2(), transitionUpdateTask = fiber._debugTask != null ? fiber._debugTask : null, 0 > transitionStartTime)) {
|
|
17958
17976
|
fiber = resolveEventTimeStamp();
|
|
17959
17977
|
newEventTime = resolveEventType();
|
|
17960
17978
|
if (fiber !== transitionEventRepeatTime || newEventTime !== transitionEventType)
|
|
@@ -18008,12 +18026,12 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18008
18026
|
return prev;
|
|
18009
18027
|
}
|
|
18010
18028
|
function startProfilerTimer(fiber) {
|
|
18011
|
-
profilerStartTime =
|
|
18029
|
+
profilerStartTime = now2();
|
|
18012
18030
|
0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
|
|
18013
18031
|
}
|
|
18014
18032
|
function stopProfilerTimerIfRunningAndRecordDuration(fiber) {
|
|
18015
18033
|
if (0 <= profilerStartTime) {
|
|
18016
|
-
var elapsedTime =
|
|
18034
|
+
var elapsedTime = now2() - profilerStartTime;
|
|
18017
18035
|
fiber.actualDuration += elapsedTime;
|
|
18018
18036
|
fiber.selfBaseDuration = elapsedTime;
|
|
18019
18037
|
profilerStartTime = -1;
|
|
@@ -18021,14 +18039,14 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18021
18039
|
}
|
|
18022
18040
|
function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) {
|
|
18023
18041
|
if (0 <= profilerStartTime) {
|
|
18024
|
-
var elapsedTime =
|
|
18042
|
+
var elapsedTime = now2() - profilerStartTime;
|
|
18025
18043
|
fiber.actualDuration += elapsedTime;
|
|
18026
18044
|
profilerStartTime = -1;
|
|
18027
18045
|
}
|
|
18028
18046
|
}
|
|
18029
18047
|
function recordEffectDuration() {
|
|
18030
18048
|
if (0 <= profilerStartTime) {
|
|
18031
|
-
var endTime =
|
|
18049
|
+
var endTime = now2(), elapsedTime = endTime - profilerStartTime;
|
|
18032
18050
|
profilerStartTime = -1;
|
|
18033
18051
|
profilerEffectDuration += elapsedTime;
|
|
18034
18052
|
componentEffectDuration += elapsedTime;
|
|
@@ -18042,7 +18060,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18042
18060
|
commitErrors.push(errorInfo);
|
|
18043
18061
|
}
|
|
18044
18062
|
function startEffectTimer() {
|
|
18045
|
-
profilerStartTime =
|
|
18063
|
+
profilerStartTime = now2();
|
|
18046
18064
|
0 > componentEffectStartTime && (componentEffectStartTime = profilerStartTime);
|
|
18047
18065
|
}
|
|
18048
18066
|
function transferActualDuration(fiber) {
|
|
@@ -18219,7 +18237,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18219
18237
|
(0, listeners[i2])();
|
|
18220
18238
|
}
|
|
18221
18239
|
}
|
|
18222
|
-
function chainThenableValue(thenable,
|
|
18240
|
+
function chainThenableValue(thenable, result2) {
|
|
18223
18241
|
var listeners = [], thenableWithOverride = {
|
|
18224
18242
|
status: "pending",
|
|
18225
18243
|
value: null,
|
|
@@ -18230,9 +18248,9 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18230
18248
|
};
|
|
18231
18249
|
thenable.then(function() {
|
|
18232
18250
|
thenableWithOverride.status = "fulfilled";
|
|
18233
|
-
thenableWithOverride.value =
|
|
18251
|
+
thenableWithOverride.value = result2;
|
|
18234
18252
|
for (var i2 = 0;i2 < listeners.length; i2++)
|
|
18235
|
-
(0, listeners[i2])(
|
|
18253
|
+
(0, listeners[i2])(result2);
|
|
18236
18254
|
}, function(error) {
|
|
18237
18255
|
thenableWithOverride.status = "rejected";
|
|
18238
18256
|
thenableWithOverride.reason = error;
|
|
@@ -18374,8 +18392,8 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18374
18392
|
return null;
|
|
18375
18393
|
}
|
|
18376
18394
|
function validateFragmentProps(element, fiber, returnFiber) {
|
|
18377
|
-
for (var
|
|
18378
|
-
var key =
|
|
18395
|
+
for (var keys2 = Object.keys(element.props), i2 = 0;i2 < keys2.length; i2++) {
|
|
18396
|
+
var key = keys2[i2];
|
|
18379
18397
|
if (key !== "children" && key !== "key") {
|
|
18380
18398
|
fiber === null && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber);
|
|
18381
18399
|
runWithFiberInDEV(fiber, function(erroredKey) {
|
|
@@ -18822,43 +18840,43 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18822
18840
|
concurrentQueues[i2++] = null;
|
|
18823
18841
|
var queue = concurrentQueues[i2];
|
|
18824
18842
|
concurrentQueues[i2++] = null;
|
|
18825
|
-
var
|
|
18843
|
+
var update2 = concurrentQueues[i2];
|
|
18826
18844
|
concurrentQueues[i2++] = null;
|
|
18827
18845
|
var lane = concurrentQueues[i2];
|
|
18828
18846
|
concurrentQueues[i2++] = null;
|
|
18829
|
-
if (queue !== null &&
|
|
18847
|
+
if (queue !== null && update2 !== null) {
|
|
18830
18848
|
var pending = queue.pending;
|
|
18831
|
-
pending === null ?
|
|
18832
|
-
queue.pending =
|
|
18849
|
+
pending === null ? update2.next = update2 : (update2.next = pending.next, pending.next = update2);
|
|
18850
|
+
queue.pending = update2;
|
|
18833
18851
|
}
|
|
18834
|
-
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber,
|
|
18852
|
+
lane !== 0 && markUpdateLaneFromFiberToRoot(fiber, update2, lane);
|
|
18835
18853
|
}
|
|
18836
18854
|
}
|
|
18837
|
-
function enqueueUpdate$1(fiber, queue,
|
|
18855
|
+
function enqueueUpdate$1(fiber, queue, update2, lane) {
|
|
18838
18856
|
concurrentQueues[concurrentQueuesIndex++] = fiber;
|
|
18839
18857
|
concurrentQueues[concurrentQueuesIndex++] = queue;
|
|
18840
|
-
concurrentQueues[concurrentQueuesIndex++] =
|
|
18858
|
+
concurrentQueues[concurrentQueuesIndex++] = update2;
|
|
18841
18859
|
concurrentQueues[concurrentQueuesIndex++] = lane;
|
|
18842
18860
|
concurrentlyUpdatedLanes |= lane;
|
|
18843
18861
|
fiber.lanes |= lane;
|
|
18844
18862
|
fiber = fiber.alternate;
|
|
18845
18863
|
fiber !== null && (fiber.lanes |= lane);
|
|
18846
18864
|
}
|
|
18847
|
-
function enqueueConcurrentHookUpdate(fiber, queue,
|
|
18848
|
-
enqueueUpdate$1(fiber, queue,
|
|
18865
|
+
function enqueueConcurrentHookUpdate(fiber, queue, update2, lane) {
|
|
18866
|
+
enqueueUpdate$1(fiber, queue, update2, lane);
|
|
18849
18867
|
return getRootForUpdatedFiber(fiber);
|
|
18850
18868
|
}
|
|
18851
18869
|
function enqueueConcurrentRenderForLane(fiber, lane) {
|
|
18852
18870
|
enqueueUpdate$1(fiber, null, null, lane);
|
|
18853
18871
|
return getRootForUpdatedFiber(fiber);
|
|
18854
18872
|
}
|
|
18855
|
-
function markUpdateLaneFromFiberToRoot(sourceFiber,
|
|
18873
|
+
function markUpdateLaneFromFiberToRoot(sourceFiber, update2, lane) {
|
|
18856
18874
|
sourceFiber.lanes |= lane;
|
|
18857
18875
|
var alternate = sourceFiber.alternate;
|
|
18858
18876
|
alternate !== null && (alternate.lanes |= lane);
|
|
18859
18877
|
for (var isHidden = false, parent = sourceFiber.return;parent !== null; )
|
|
18860
18878
|
parent.childLanes |= lane, alternate = parent.alternate, alternate !== null && (alternate.childLanes |= lane), parent.tag === 22 && (sourceFiber = parent.stateNode, sourceFiber === null || sourceFiber._visibility & OffscreenVisible || (isHidden = true)), sourceFiber = parent, parent = parent.return;
|
|
18861
|
-
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden &&
|
|
18879
|
+
return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden && update2 !== null && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], alternate === null ? sourceFiber[isHidden] = [update2] : alternate.push(update2), update2.lane = lane | 536870912), parent) : null;
|
|
18862
18880
|
}
|
|
18863
18881
|
function getRootForUpdatedFiber(sourceFiber) {
|
|
18864
18882
|
if (nestedUpdateCount > NESTED_UPDATE_LIMIT)
|
|
@@ -18897,7 +18915,7 @@ It can also happen if the client has a browser extension installed which messes
|
|
|
18897
18915
|
next: null
|
|
18898
18916
|
};
|
|
18899
18917
|
}
|
|
18900
|
-
function enqueueUpdate(fiber,
|
|
18918
|
+
function enqueueUpdate(fiber, update2, lane) {
|
|
18901
18919
|
var updateQueue = fiber.updateQueue;
|
|
18902
18920
|
if (updateQueue === null)
|
|
18903
18921
|
return null;
|
|
@@ -18910,8 +18928,8 @@ Please update the following component: %s`, componentName2);
|
|
|
18910
18928
|
didWarnUpdateInsideUpdate = true;
|
|
18911
18929
|
}
|
|
18912
18930
|
if ((executionContext & RenderContext) !== NoContext)
|
|
18913
|
-
return componentName2 = updateQueue.pending, componentName2 === null ?
|
|
18914
|
-
enqueueUpdate$1(fiber, updateQueue,
|
|
18931
|
+
return componentName2 = updateQueue.pending, componentName2 === null ? update2.next = update2 : (update2.next = componentName2.next, componentName2.next = update2), updateQueue.pending = update2, update2 = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update2;
|
|
18932
|
+
enqueueUpdate$1(fiber, updateQueue, update2, lane);
|
|
18915
18933
|
return getRootForUpdatedFiber(fiber);
|
|
18916
18934
|
}
|
|
18917
18935
|
function entangleTransitions(root, fiber, lane) {
|
|
@@ -18931,14 +18949,14 @@ Please update the following component: %s`, componentName2);
|
|
|
18931
18949
|
queue = queue.firstBaseUpdate;
|
|
18932
18950
|
if (queue !== null) {
|
|
18933
18951
|
do {
|
|
18934
|
-
var
|
|
18952
|
+
var clone2 = {
|
|
18935
18953
|
lane: queue.lane,
|
|
18936
18954
|
tag: queue.tag,
|
|
18937
18955
|
payload: queue.payload,
|
|
18938
18956
|
callback: null,
|
|
18939
18957
|
next: null
|
|
18940
18958
|
};
|
|
18941
|
-
newLast === null ? newFirst = newLast =
|
|
18959
|
+
newLast === null ? newFirst = newLast = clone2 : newLast = newLast.next = clone2;
|
|
18942
18960
|
queue = queue.next;
|
|
18943
18961
|
} while (queue !== null);
|
|
18944
18962
|
newLast === null ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
|
|
@@ -19040,7 +19058,7 @@ Please update the following component: %s`, componentName2);
|
|
|
19040
19058
|
partialState = nextState;
|
|
19041
19059
|
if (partialState === null || partialState === undefined)
|
|
19042
19060
|
break a;
|
|
19043
|
-
newState =
|
|
19061
|
+
newState = assign2({}, newState, partialState);
|
|
19044
19062
|
break a;
|
|
19045
19063
|
case ForceUpdate:
|
|
19046
19064
|
hasForceUpdate = true;
|
|
@@ -19376,7 +19394,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19376
19394
|
}
|
|
19377
19395
|
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
19378
19396
|
}
|
|
19379
|
-
function useMemoCache(
|
|
19397
|
+
function useMemoCache(size2) {
|
|
19380
19398
|
var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue;
|
|
19381
19399
|
updateQueue !== null && (memoCache = updateQueue.memoCache);
|
|
19382
19400
|
if (memoCache == null) {
|
|
@@ -19393,10 +19411,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19393
19411
|
updateQueue.memoCache = memoCache;
|
|
19394
19412
|
updateQueue = memoCache.data[memoCache.index];
|
|
19395
19413
|
if (updateQueue === undefined || ignorePreviousDependencies)
|
|
19396
|
-
for (updateQueue = memoCache.data[memoCache.index] = Array(
|
|
19414
|
+
for (updateQueue = memoCache.data[memoCache.index] = Array(size2), current2 = 0;current2 < size2; current2++)
|
|
19397
19415
|
updateQueue[current2] = REACT_MEMO_CACHE_SENTINEL;
|
|
19398
19416
|
else
|
|
19399
|
-
updateQueue.length !==
|
|
19417
|
+
updateQueue.length !== size2 && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, size2);
|
|
19400
19418
|
memoCache.index++;
|
|
19401
19419
|
return updateQueue;
|
|
19402
19420
|
}
|
|
@@ -19454,50 +19472,50 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19454
19472
|
hook.memoizedState = pendingQueue;
|
|
19455
19473
|
else {
|
|
19456
19474
|
current2 = baseQueue.next;
|
|
19457
|
-
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null,
|
|
19475
|
+
var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update2 = current2, didReadFromEntangledAsyncAction2 = false;
|
|
19458
19476
|
do {
|
|
19459
|
-
var updateLane =
|
|
19460
|
-
if (updateLane !==
|
|
19461
|
-
var revertLane =
|
|
19477
|
+
var updateLane = update2.lane & -536870913;
|
|
19478
|
+
if (updateLane !== update2.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
|
|
19479
|
+
var revertLane = update2.revertLane;
|
|
19462
19480
|
if (revertLane === 0)
|
|
19463
19481
|
newBaseQueueLast !== null && (newBaseQueueLast = newBaseQueueLast.next = {
|
|
19464
19482
|
lane: 0,
|
|
19465
19483
|
revertLane: 0,
|
|
19466
19484
|
gesture: null,
|
|
19467
|
-
action:
|
|
19468
|
-
hasEagerState:
|
|
19469
|
-
eagerState:
|
|
19485
|
+
action: update2.action,
|
|
19486
|
+
hasEagerState: update2.hasEagerState,
|
|
19487
|
+
eagerState: update2.eagerState,
|
|
19470
19488
|
next: null
|
|
19471
19489
|
}), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
|
|
19472
19490
|
else if ((renderLanes & revertLane) === revertLane) {
|
|
19473
|
-
|
|
19491
|
+
update2 = update2.next;
|
|
19474
19492
|
revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
|
|
19475
19493
|
continue;
|
|
19476
19494
|
} else
|
|
19477
19495
|
updateLane = {
|
|
19478
19496
|
lane: 0,
|
|
19479
|
-
revertLane:
|
|
19497
|
+
revertLane: update2.revertLane,
|
|
19480
19498
|
gesture: null,
|
|
19481
|
-
action:
|
|
19482
|
-
hasEagerState:
|
|
19483
|
-
eagerState:
|
|
19499
|
+
action: update2.action,
|
|
19500
|
+
hasEagerState: update2.hasEagerState,
|
|
19501
|
+
eagerState: update2.eagerState,
|
|
19484
19502
|
next: null
|
|
19485
19503
|
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane;
|
|
19486
|
-
updateLane =
|
|
19504
|
+
updateLane = update2.action;
|
|
19487
19505
|
shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane);
|
|
19488
|
-
pendingQueue =
|
|
19506
|
+
pendingQueue = update2.hasEagerState ? update2.eagerState : reducer(pendingQueue, updateLane);
|
|
19489
19507
|
} else
|
|
19490
19508
|
revertLane = {
|
|
19491
19509
|
lane: updateLane,
|
|
19492
|
-
revertLane:
|
|
19493
|
-
gesture:
|
|
19494
|
-
action:
|
|
19495
|
-
hasEagerState:
|
|
19496
|
-
eagerState:
|
|
19510
|
+
revertLane: update2.revertLane,
|
|
19511
|
+
gesture: update2.gesture,
|
|
19512
|
+
action: update2.action,
|
|
19513
|
+
hasEagerState: update2.hasEagerState,
|
|
19514
|
+
eagerState: update2.eagerState,
|
|
19497
19515
|
next: null
|
|
19498
19516
|
}, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane;
|
|
19499
|
-
|
|
19500
|
-
} while (
|
|
19517
|
+
update2 = update2.next;
|
|
19518
|
+
} while (update2 !== null && update2 !== current2);
|
|
19501
19519
|
newBaseQueueLast === null ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst;
|
|
19502
19520
|
if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = true, didReadFromEntangledAsyncAction2 && (reducer = currentEntangledActionThenable, reducer !== null)))
|
|
19503
19521
|
throw reducer;
|
|
@@ -19517,10 +19535,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19517
19535
|
var { dispatch, pending: lastRenderPhaseUpdate } = queue, newState = hook.memoizedState;
|
|
19518
19536
|
if (lastRenderPhaseUpdate !== null) {
|
|
19519
19537
|
queue.pending = null;
|
|
19520
|
-
var
|
|
19538
|
+
var update2 = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
|
|
19521
19539
|
do
|
|
19522
|
-
newState = reducer(newState,
|
|
19523
|
-
while (
|
|
19540
|
+
newState = reducer(newState, update2.action), update2 = update2.next;
|
|
19541
|
+
while (update2 !== lastRenderPhaseUpdate);
|
|
19524
19542
|
objectIs(newState, hook.memoizedState) || (didReceiveUpdate = true);
|
|
19525
19543
|
hook.memoizedState = newState;
|
|
19526
19544
|
hook.baseQueue === null && (hook.baseState = newState);
|
|
@@ -19563,8 +19581,8 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19563
19581
|
if (cachedSnapshot = !objectIs((currentHook || hook).memoizedState, getServerSnapshot))
|
|
19564
19582
|
hook.memoizedState = getServerSnapshot, didReceiveUpdate = true;
|
|
19565
19583
|
hook = hook.queue;
|
|
19566
|
-
var
|
|
19567
|
-
updateEffectImpl(2048, Passive,
|
|
19584
|
+
var create2 = subscribeToStore.bind(null, fiber, hook, subscribe);
|
|
19585
|
+
updateEffectImpl(2048, Passive, create2, [subscribe]);
|
|
19568
19586
|
if (hook.getSnapshot !== getSnapshot || cachedSnapshot || workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
|
|
19569
19587
|
fiber.flags |= 2048;
|
|
19570
19588
|
pushSimpleEffect(HasEffect | Passive, { destroy: undefined }, updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot), null);
|
|
@@ -19726,13 +19744,13 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19726
19744
|
actionNode !== null && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
|
|
19727
19745
|
}
|
|
19728
19746
|
function onActionError(actionQueue, actionNode, error) {
|
|
19729
|
-
var
|
|
19747
|
+
var last2 = actionQueue.pending;
|
|
19730
19748
|
actionQueue.pending = null;
|
|
19731
|
-
if (
|
|
19732
|
-
|
|
19749
|
+
if (last2 !== null) {
|
|
19750
|
+
last2 = last2.next;
|
|
19733
19751
|
do
|
|
19734
19752
|
actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next;
|
|
19735
|
-
while (actionNode !==
|
|
19753
|
+
while (actionNode !== last2);
|
|
19736
19754
|
}
|
|
19737
19755
|
actionQueue.action = null;
|
|
19738
19756
|
}
|
|
@@ -19829,12 +19847,12 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19829
19847
|
currentStateHook.memoizedState = action;
|
|
19830
19848
|
return [stateHook, dispatch, false];
|
|
19831
19849
|
}
|
|
19832
|
-
function pushSimpleEffect(tag, inst,
|
|
19833
|
-
tag = { tag, create, deps, inst, next: null };
|
|
19850
|
+
function pushSimpleEffect(tag, inst, create2, deps) {
|
|
19851
|
+
tag = { tag, create: create2, deps, inst, next: null };
|
|
19834
19852
|
inst = currentlyRenderingFiber.updateQueue;
|
|
19835
19853
|
inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst);
|
|
19836
|
-
|
|
19837
|
-
|
|
19854
|
+
create2 = inst.lastEffect;
|
|
19855
|
+
create2 === null ? inst.lastEffect = tag.next = tag : (deps = create2.next, create2.next = tag, tag.next = deps, inst.lastEffect = tag);
|
|
19838
19856
|
return tag;
|
|
19839
19857
|
}
|
|
19840
19858
|
function mountRef(initialValue) {
|
|
@@ -19842,19 +19860,19 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19842
19860
|
initialValue = { current: initialValue };
|
|
19843
19861
|
return hook.memoizedState = initialValue;
|
|
19844
19862
|
}
|
|
19845
|
-
function mountEffectImpl(fiberFlags, hookFlags,
|
|
19863
|
+
function mountEffectImpl(fiberFlags, hookFlags, create2, deps) {
|
|
19846
19864
|
var hook = mountWorkInProgressHook();
|
|
19847
19865
|
currentlyRenderingFiber.flags |= fiberFlags;
|
|
19848
|
-
hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined },
|
|
19866
|
+
hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined }, create2, deps === undefined ? null : deps);
|
|
19849
19867
|
}
|
|
19850
|
-
function updateEffectImpl(fiberFlags, hookFlags,
|
|
19868
|
+
function updateEffectImpl(fiberFlags, hookFlags, create2, deps) {
|
|
19851
19869
|
var hook = updateWorkInProgressHook();
|
|
19852
19870
|
deps = deps === undefined ? null : deps;
|
|
19853
19871
|
var inst = hook.memoizedState.inst;
|
|
19854
|
-
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst,
|
|
19872
|
+
currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create2, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, inst, create2, deps));
|
|
19855
19873
|
}
|
|
19856
|
-
function mountEffect(
|
|
19857
|
-
(currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive,
|
|
19874
|
+
function mountEffect(create2, deps) {
|
|
19875
|
+
(currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive, create2, deps) : mountEffectImpl(8390656, Passive, create2, deps);
|
|
19858
19876
|
}
|
|
19859
19877
|
function useEffectEventImpl(payload) {
|
|
19860
19878
|
currentlyRenderingFiber.flags |= 4;
|
|
@@ -19884,35 +19902,35 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
19884
19902
|
return ref.impl.apply(undefined, arguments);
|
|
19885
19903
|
};
|
|
19886
19904
|
}
|
|
19887
|
-
function mountLayoutEffect(
|
|
19905
|
+
function mountLayoutEffect(create2, deps) {
|
|
19888
19906
|
var fiberFlags = 4194308;
|
|
19889
19907
|
(currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
|
|
19890
|
-
return mountEffectImpl(fiberFlags, Layout,
|
|
19908
|
+
return mountEffectImpl(fiberFlags, Layout, create2, deps);
|
|
19891
19909
|
}
|
|
19892
|
-
function imperativeHandleEffect(
|
|
19910
|
+
function imperativeHandleEffect(create2, ref) {
|
|
19893
19911
|
if (typeof ref === "function") {
|
|
19894
|
-
|
|
19895
|
-
var refCleanup = ref(
|
|
19912
|
+
create2 = create2();
|
|
19913
|
+
var refCleanup = ref(create2);
|
|
19896
19914
|
return function() {
|
|
19897
19915
|
typeof refCleanup === "function" ? refCleanup() : ref(null);
|
|
19898
19916
|
};
|
|
19899
19917
|
}
|
|
19900
19918
|
if (ref !== null && ref !== undefined)
|
|
19901
|
-
return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"),
|
|
19919
|
+
return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"), create2 = create2(), ref.current = create2, function() {
|
|
19902
19920
|
ref.current = null;
|
|
19903
19921
|
};
|
|
19904
19922
|
}
|
|
19905
|
-
function mountImperativeHandle(ref,
|
|
19906
|
-
typeof
|
|
19923
|
+
function mountImperativeHandle(ref, create2, deps) {
|
|
19924
|
+
typeof create2 !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null");
|
|
19907
19925
|
deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
19908
19926
|
var fiberFlags = 4194308;
|
|
19909
19927
|
(currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
|
|
19910
|
-
mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null,
|
|
19928
|
+
mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create2, ref), deps);
|
|
19911
19929
|
}
|
|
19912
|
-
function updateImperativeHandle(ref,
|
|
19913
|
-
typeof
|
|
19930
|
+
function updateImperativeHandle(ref, create2, deps) {
|
|
19931
|
+
typeof create2 !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null");
|
|
19914
19932
|
deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
19915
|
-
updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null,
|
|
19933
|
+
updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null, create2, ref), deps);
|
|
19916
19934
|
}
|
|
19917
19935
|
function mountCallback(callback, deps) {
|
|
19918
19936
|
mountWorkInProgressHook().memoizedState = [
|
|
@@ -20117,7 +20135,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20117
20135
|
var args = arguments;
|
|
20118
20136
|
typeof args[3] === "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");
|
|
20119
20137
|
args = requestUpdateLane(fiber);
|
|
20120
|
-
var
|
|
20138
|
+
var update2 = {
|
|
20121
20139
|
lane: args,
|
|
20122
20140
|
revertLane: 0,
|
|
20123
20141
|
gesture: null,
|
|
@@ -20126,7 +20144,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20126
20144
|
eagerState: null,
|
|
20127
20145
|
next: null
|
|
20128
20146
|
};
|
|
20129
|
-
isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue,
|
|
20147
|
+
isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update2) : (update2 = enqueueConcurrentHookUpdate(fiber, queue, update2, args), update2 !== null && (startUpdateTimerByLane(args, "dispatch()", fiber), scheduleUpdateOnFiber(update2, fiber, args), entangleTransitionUpdate(update2, queue, args)));
|
|
20130
20148
|
}
|
|
20131
20149
|
function dispatchSetState(fiber, queue, action) {
|
|
20132
20150
|
var args = arguments;
|
|
@@ -20135,7 +20153,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20135
20153
|
dispatchSetStateInternal(fiber, queue, action, args) && startUpdateTimerByLane(args, "setState()", fiber);
|
|
20136
20154
|
}
|
|
20137
20155
|
function dispatchSetStateInternal(fiber, queue, action, lane) {
|
|
20138
|
-
var
|
|
20156
|
+
var update2 = {
|
|
20139
20157
|
lane,
|
|
20140
20158
|
revertLane: 0,
|
|
20141
20159
|
gesture: null,
|
|
@@ -20145,7 +20163,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20145
20163
|
next: null
|
|
20146
20164
|
};
|
|
20147
20165
|
if (isRenderPhaseUpdate(fiber))
|
|
20148
|
-
enqueueRenderPhaseUpdate(queue,
|
|
20166
|
+
enqueueRenderPhaseUpdate(queue, update2);
|
|
20149
20167
|
else {
|
|
20150
20168
|
var alternate = fiber.alternate;
|
|
20151
20169
|
if (fiber.lanes === 0 && (alternate === null || alternate.lanes === 0) && (alternate = queue.lastRenderedReducer, alternate !== null)) {
|
|
@@ -20153,15 +20171,15 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20153
20171
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
20154
20172
|
try {
|
|
20155
20173
|
var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action);
|
|
20156
|
-
|
|
20157
|
-
|
|
20174
|
+
update2.hasEagerState = true;
|
|
20175
|
+
update2.eagerState = eagerState;
|
|
20158
20176
|
if (objectIs(eagerState, currentState))
|
|
20159
|
-
return enqueueUpdate$1(fiber, queue,
|
|
20177
|
+
return enqueueUpdate$1(fiber, queue, update2, 0), workInProgressRoot === null && finishQueueingConcurrentUpdates(), false;
|
|
20160
20178
|
} catch (error) {} finally {
|
|
20161
20179
|
ReactSharedInternals.H = prevDispatcher;
|
|
20162
20180
|
}
|
|
20163
20181
|
}
|
|
20164
|
-
action = enqueueConcurrentHookUpdate(fiber, queue,
|
|
20182
|
+
action = enqueueConcurrentHookUpdate(fiber, queue, update2, lane);
|
|
20165
20183
|
if (action !== null)
|
|
20166
20184
|
return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), true;
|
|
20167
20185
|
}
|
|
@@ -20189,11 +20207,11 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20189
20207
|
var alternate = fiber.alternate;
|
|
20190
20208
|
return fiber === currentlyRenderingFiber || alternate !== null && alternate === currentlyRenderingFiber;
|
|
20191
20209
|
}
|
|
20192
|
-
function enqueueRenderPhaseUpdate(queue,
|
|
20210
|
+
function enqueueRenderPhaseUpdate(queue, update2) {
|
|
20193
20211
|
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
|
|
20194
20212
|
var pending = queue.pending;
|
|
20195
|
-
pending === null ?
|
|
20196
|
-
queue.pending =
|
|
20213
|
+
pending === null ? update2.next = update2 : (update2.next = pending.next, pending.next = update2);
|
|
20214
|
+
queue.pending = update2;
|
|
20197
20215
|
}
|
|
20198
20216
|
function entangleTransitionUpdate(root, queue, lane) {
|
|
20199
20217
|
if ((lane & 4194048) !== 0) {
|
|
@@ -20221,7 +20239,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20221
20239
|
}
|
|
20222
20240
|
}
|
|
20223
20241
|
partialState === undefined && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", ctor)));
|
|
20224
|
-
prevState = partialState === null || partialState === undefined ? prevState :
|
|
20242
|
+
prevState = partialState === null || partialState === undefined ? prevState : assign2({}, prevState, partialState);
|
|
20225
20243
|
workInProgress2.memoizedState = prevState;
|
|
20226
20244
|
workInProgress2.lanes === 0 && (workInProgress2.updateQueue.baseState = prevState);
|
|
20227
20245
|
}
|
|
@@ -20256,7 +20274,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20256
20274
|
propName !== "ref" && (newProps[propName] = baseProps[propName]);
|
|
20257
20275
|
}
|
|
20258
20276
|
if (Component = Component.defaultProps) {
|
|
20259
|
-
newProps === baseProps && (newProps =
|
|
20277
|
+
newProps === baseProps && (newProps = assign2({}, newProps));
|
|
20260
20278
|
for (var _propName in Component)
|
|
20261
20279
|
newProps[_propName] === undefined && (newProps[_propName] = Component[_propName]);
|
|
20262
20280
|
}
|
|
@@ -20308,20 +20326,20 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
20308
20326
|
lane.tag = CaptureUpdate;
|
|
20309
20327
|
return lane;
|
|
20310
20328
|
}
|
|
20311
|
-
function initializeClassErrorUpdate(
|
|
20329
|
+
function initializeClassErrorUpdate(update2, root, fiber, errorInfo) {
|
|
20312
20330
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
20313
20331
|
if (typeof getDerivedStateFromError === "function") {
|
|
20314
20332
|
var error = errorInfo.value;
|
|
20315
|
-
|
|
20333
|
+
update2.payload = function() {
|
|
20316
20334
|
return getDerivedStateFromError(error);
|
|
20317
20335
|
};
|
|
20318
|
-
|
|
20336
|
+
update2.callback = function() {
|
|
20319
20337
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
20320
20338
|
runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
|
|
20321
20339
|
};
|
|
20322
20340
|
}
|
|
20323
20341
|
var inst = fiber.stateNode;
|
|
20324
|
-
inst !== null && typeof inst.componentDidCatch === "function" && (
|
|
20342
|
+
inst !== null && typeof inst.componentDidCatch === "function" && (update2.callback = function() {
|
|
20325
20343
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
20326
20344
|
runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
|
|
20327
20345
|
typeof getDerivedStateFromError !== "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
|
|
@@ -20882,17 +20900,17 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
|
|
|
20882
20900
|
alternate !== null && (alternate.lanes |= renderLanes2);
|
|
20883
20901
|
scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
|
|
20884
20902
|
}
|
|
20885
|
-
function initSuspenseListRenderState(workInProgress2, isBackwards,
|
|
20903
|
+
function initSuspenseListRenderState(workInProgress2, isBackwards, tail2, lastContentRow, tailMode, treeForkCount2) {
|
|
20886
20904
|
var renderState = workInProgress2.memoizedState;
|
|
20887
20905
|
renderState === null ? workInProgress2.memoizedState = {
|
|
20888
20906
|
isBackwards,
|
|
20889
20907
|
rendering: null,
|
|
20890
20908
|
renderingStartTime: 0,
|
|
20891
20909
|
last: lastContentRow,
|
|
20892
|
-
tail,
|
|
20910
|
+
tail: tail2,
|
|
20893
20911
|
tailMode,
|
|
20894
20912
|
treeForkCount: treeForkCount2
|
|
20895
|
-
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail =
|
|
20913
|
+
} : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail2, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
|
|
20896
20914
|
}
|
|
20897
20915
|
function updateSuspenseListComponent(current2, workInProgress2, renderLanes2) {
|
|
20898
20916
|
var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children, suspenseContext = suspenseStackCursor.current;
|
|
@@ -22009,21 +22027,21 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
22009
22027
|
return fiber.stateNode;
|
|
22010
22028
|
}
|
|
22011
22029
|
}
|
|
22012
|
-
function insertOrAppendPlacementNodeIntoContainer(node,
|
|
22030
|
+
function insertOrAppendPlacementNodeIntoContainer(node, before2, parent) {
|
|
22013
22031
|
var tag = node.tag;
|
|
22014
22032
|
if (tag === 5 || tag === 6)
|
|
22015
|
-
node = node.stateNode,
|
|
22016
|
-
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode,
|
|
22017
|
-
for (insertOrAppendPlacementNodeIntoContainer(node,
|
|
22018
|
-
insertOrAppendPlacementNodeIntoContainer(node,
|
|
22033
|
+
node = node.stateNode, before2 ? insertInContainerBefore(parent, node, before2) : appendChildToContainer(parent, node);
|
|
22034
|
+
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before2 = null), node = node.child, node !== null))
|
|
22035
|
+
for (insertOrAppendPlacementNodeIntoContainer(node, before2, parent), node = node.sibling;node !== null; )
|
|
22036
|
+
insertOrAppendPlacementNodeIntoContainer(node, before2, parent), node = node.sibling;
|
|
22019
22037
|
}
|
|
22020
|
-
function insertOrAppendPlacementNode(node,
|
|
22038
|
+
function insertOrAppendPlacementNode(node, before2, parent) {
|
|
22021
22039
|
var tag = node.tag;
|
|
22022
22040
|
if (tag === 5 || tag === 6)
|
|
22023
|
-
node = node.stateNode,
|
|
22041
|
+
node = node.stateNode, before2 ? insertBefore(parent, node, before2) : appendChild(parent, node);
|
|
22024
22042
|
else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
|
|
22025
|
-
for (insertOrAppendPlacementNode(node,
|
|
22026
|
-
insertOrAppendPlacementNode(node,
|
|
22043
|
+
for (insertOrAppendPlacementNode(node, before2, parent), node = node.sibling;node !== null; )
|
|
22044
|
+
insertOrAppendPlacementNode(node, before2, parent), node = node.sibling;
|
|
22027
22045
|
}
|
|
22028
22046
|
function commitPlacement(finishedWork) {
|
|
22029
22047
|
for (var hostParentFiber, parentFiber = finishedWork.return;parentFiber !== null; ) {
|
|
@@ -23298,7 +23316,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
23298
23316
|
if (startTime === RootInProgress) {
|
|
23299
23317
|
workInProgressRootIsPrerendering && !forceSync && markRootSuspended(root, lanes, 0, false);
|
|
23300
23318
|
lanes = workInProgressSuspendedReason;
|
|
23301
|
-
yieldStartTime =
|
|
23319
|
+
yieldStartTime = now2();
|
|
23302
23320
|
yieldReason = lanes;
|
|
23303
23321
|
break;
|
|
23304
23322
|
} else {
|
|
@@ -23487,7 +23505,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
23487
23505
|
function prepareFreshStack(root, lanes) {
|
|
23488
23506
|
supportsUserTiming && (console.timeStamp("Blocking Track", 0.003, 0.003, "Blocking", "Scheduler ⚛", "primary-light"), console.timeStamp("Transition Track", 0.003, 0.003, "Transition", "Scheduler ⚛", "primary-light"), console.timeStamp("Suspense Track", 0.003, 0.003, "Suspense", "Scheduler ⚛", "primary-light"), console.timeStamp("Idle Track", 0.003, 0.003, "Idle", "Scheduler ⚛", "primary-light"));
|
|
23489
23507
|
var previousRenderStartTime = renderStartTime;
|
|
23490
|
-
renderStartTime =
|
|
23508
|
+
renderStartTime = now2();
|
|
23491
23509
|
if (workInProgressRootRenderLanes !== 0 && 0 < previousRenderStartTime) {
|
|
23492
23510
|
setCurrentTrackFromLanes(workInProgressRootRenderLanes);
|
|
23493
23511
|
if (workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootSuspendedWithDelay)
|
|
@@ -23542,7 +23560,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
23542
23560
|
blockingSuspendedTime = -1.1;
|
|
23543
23561
|
blockingEventRepeatTime = blockingEventTime;
|
|
23544
23562
|
blockingEventTime = -1.1;
|
|
23545
|
-
blockingClampTime =
|
|
23563
|
+
blockingClampTime = now2();
|
|
23546
23564
|
}
|
|
23547
23565
|
(lanes & 4194048) !== 0 && (workInProgressUpdateTask = transitionUpdateTask, debugTask = 0 <= transitionStartTime && transitionStartTime < transitionClampTime ? transitionClampTime : transitionStartTime, previousRenderStartTime = 0 <= transitionUpdateTime && transitionUpdateTime < transitionClampTime ? transitionClampTime : transitionUpdateTime, endTime = 0 <= transitionEventTime && transitionEventTime < transitionClampTime ? transitionClampTime : transitionEventTime, color = 0 <= endTime ? endTime : 0 <= previousRenderStartTime ? previousRenderStartTime : renderStartTime, 0 <= transitionSuspendedTime && (setCurrentTrackFromLanes(256), logSuspendedWithDelayPhase(transitionSuspendedTime, color, lanes, workInProgressUpdateTask)), isPingedUpdate = endTime, eventTime = transitionEventType, eventType = 0 < transitionEventRepeatTime, eventIsRepeat = transitionUpdateType === 2, color = renderStartTime, endTime = transitionUpdateTask, label = transitionUpdateMethodName, isSpawnedUpdate = transitionUpdateComponentName, supportsUserTiming && (currentTrack = "Transition", 0 < previousRenderStartTime ? previousRenderStartTime > color && (previousRenderStartTime = color) : previousRenderStartTime = color, 0 < debugTask ? debugTask > previousRenderStartTime && (debugTask = previousRenderStartTime) : debugTask = previousRenderStartTime, 0 < isPingedUpdate ? isPingedUpdate > debugTask && (isPingedUpdate = debugTask) : isPingedUpdate = debugTask, debugTask > isPingedUpdate && eventTime !== null && (color$jscomp$0 = eventType ? "secondary-light" : "warning", endTime ? endTime.run(console.timeStamp.bind(console, eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler ⚛", color$jscomp$0)) : console.timeStamp(eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler ⚛", color$jscomp$0)), previousRenderStartTime > debugTask && (endTime ? endTime.run(console.timeStamp.bind(console, "Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler ⚛", "primary-dark")) : console.timeStamp("Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler ⚛", "primary-dark")), color > previousRenderStartTime && (debugTask = eventIsRepeat ? "Promise Resolved" : 5 < color - previousRenderStartTime ? "Update Blocked" : "Update", isPingedUpdate = [], isSpawnedUpdate != null && isPingedUpdate.push(["Component name", isSpawnedUpdate]), label != null && isPingedUpdate.push(["Method name", label]), previousRenderStartTime = {
|
|
23548
23566
|
start: previousRenderStartTime,
|
|
@@ -23555,7 +23573,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
23555
23573
|
color: "primary-light"
|
|
23556
23574
|
}
|
|
23557
23575
|
}
|
|
23558
|
-
}, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime =
|
|
23576
|
+
}, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime = now2());
|
|
23559
23577
|
previousRenderStartTime = root.timeoutHandle;
|
|
23560
23578
|
previousRenderStartTime !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(previousRenderStartTime));
|
|
23561
23579
|
previousRenderStartTime = root.cancelPendingCommit;
|
|
@@ -23940,7 +23958,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
23940
23958
|
return null;
|
|
23941
23959
|
})) : (root.callbackNode = null, root.callbackPriority = 0);
|
|
23942
23960
|
commitErrors = null;
|
|
23943
|
-
commitStartTime =
|
|
23961
|
+
commitStartTime = now2();
|
|
23944
23962
|
suspendedCommitReason !== null && logSuspendedCommitPhase(completedRenderEndTime, commitStartTime, suspendedCommitReason, workInProgressUpdateTask);
|
|
23945
23963
|
recoverableErrors = (finishedWork.flags & 13878) !== 0;
|
|
23946
23964
|
if ((finishedWork.subtreeFlags & 13878) !== 0 || recoverableErrors) {
|
|
@@ -23988,7 +24006,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
23988
24006
|
pendingEffectsStatus = NO_PENDING_EFFECTS;
|
|
23989
24007
|
var suspendedViewTransitionReason = pendingSuspendedViewTransitionReason;
|
|
23990
24008
|
if (suspendedViewTransitionReason !== null) {
|
|
23991
|
-
commitStartTime =
|
|
24009
|
+
commitStartTime = now2();
|
|
23992
24010
|
var startTime = commitEndTime, endTime = commitStartTime;
|
|
23993
24011
|
!supportsUserTiming || endTime <= startTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler ⚛", "secondary-light")) : console.timeStamp(suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler ⚛", "secondary-light"));
|
|
23994
24012
|
}
|
|
@@ -24011,7 +24029,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
24011
24029
|
}
|
|
24012
24030
|
suspendedViewTransitionReason = pendingEffectsRenderEndTime;
|
|
24013
24031
|
startTime = pendingSuspendedCommitReason;
|
|
24014
|
-
commitEndTime =
|
|
24032
|
+
commitEndTime = now2();
|
|
24015
24033
|
suspendedViewTransitionReason = startTime === null ? suspendedViewTransitionReason : commitStartTime;
|
|
24016
24034
|
startTime = commitEndTime;
|
|
24017
24035
|
endTime = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
|
|
@@ -24024,7 +24042,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
24024
24042
|
if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) {
|
|
24025
24043
|
if (pendingEffectsStatus === PENDING_SPAWNED_WORK) {
|
|
24026
24044
|
var startViewTransitionStartTime = commitEndTime;
|
|
24027
|
-
commitEndTime =
|
|
24045
|
+
commitEndTime = now2();
|
|
24028
24046
|
var endTime = commitEndTime, abortedViewTransition = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
|
|
24029
24047
|
!supportsUserTiming || endTime <= startViewTransitionStartTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler ⚛", abortedViewTransition ? "error" : "secondary-light")) : console.timeStamp(abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler ⚛", abortedViewTransition ? " error" : "secondary-light"));
|
|
24030
24048
|
pendingDelayedCommitReason !== ABORTED_VIEW_TRANSITION_COMMIT && (pendingDelayedCommitReason = ANIMATION_STARTED_COMMIT);
|
|
@@ -24229,7 +24247,7 @@ Error message:
|
|
|
24229
24247
|
pingCache !== null && pingCache.delete(wakeable);
|
|
24230
24248
|
root.pingedLanes |= root.suspendedLanes & pingedLanes;
|
|
24231
24249
|
root.warmLanes &= ~pingedLanes;
|
|
24232
|
-
(pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime =
|
|
24250
|
+
(pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime = now2(), blockingUpdateTask = createTask("Promise Resolved"), blockingUpdateType = 2) : (pingedLanes & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionClampTime = transitionUpdateTime = now2(), transitionUpdateTask = createTask("Promise Resolved"), transitionUpdateType = 2);
|
|
24233
24251
|
isConcurrentActEnvironment() && ReactSharedInternals.actQueue === null && console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
24234
24252
|
|
|
24235
24253
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
@@ -24664,7 +24682,7 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
24664
24682
|
return current;
|
|
24665
24683
|
}
|
|
24666
24684
|
var exports2 = {};
|
|
24667
|
-
var
|
|
24685
|
+
var assign2 = 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_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");
|
|
24668
24686
|
Symbol.for("react.scope");
|
|
24669
24687
|
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
24670
24688
|
Symbol.for("react.legacy_hidden");
|
|
@@ -24782,14 +24800,14 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
|
|
|
24782
24800
|
_threadCount: 0,
|
|
24783
24801
|
_currentRenderer: null,
|
|
24784
24802
|
_currentRenderer2: null
|
|
24785
|
-
},
|
|
24803
|
+
}, now2 = Scheduler.unstable_now, createTask = console.createTask ? console.createTask : function() {
|
|
24786
24804
|
return null;
|
|
24787
24805
|
}, renderStartTime = -0, commitStartTime = -0, commitEndTime = -0, commitErrors = null, profilerStartTime = -1.1, profilerEffectDuration = -0, componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, componentEffectErrors = null, componentEffectSpawnedUpdate = false, blockingClampTime = -0, blockingUpdateTime = -1.1, blockingUpdateTask = null, blockingUpdateType = 0, blockingUpdateMethodName = null, blockingUpdateComponentName = null, blockingEventTime = -1.1, blockingEventType = null, blockingEventRepeatTime = -1.1, blockingSuspendedTime = -1.1, transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionUpdateType = 0, transitionUpdateTask = null, transitionUpdateMethodName = null, transitionUpdateComponentName = null, transitionEventTime = -1.1, transitionEventType = null, transitionEventRepeatTime = -1.1, transitionSuspendedTime = -1.1, animatingTask = null, yieldReason = 0, yieldStartTime = -1.1, currentUpdateIsNested = false, nestedUpdateScheduled = false, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = false, didScheduleMicrotask_act = false, mightHavePendingSyncWork = false, isFlushingWork = false, currentEventTransitionLane = 0, fakeActCallbackNode$1 = {}, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S;
|
|
24788
24806
|
ReactSharedInternals.S = function(transition, returnValue) {
|
|
24789
24807
|
globalMostRecentTransitionTime = now$1();
|
|
24790
24808
|
if (typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function") {
|
|
24791
24809
|
if (0 > transitionStartTime && 0 > transitionUpdateTime) {
|
|
24792
|
-
transitionStartTime =
|
|
24810
|
+
transitionStartTime = now2();
|
|
24793
24811
|
var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
|
|
24794
24812
|
if (newEventTime !== transitionEventRepeatTime || newEventType !== transitionEventType)
|
|
24795
24813
|
transitionEventRepeatTime = -1.1;
|
|
@@ -24970,10 +24988,10 @@ Learn more about this warning here: https://react.dev/link/legacy-context`, sort
|
|
|
24970
24988
|
}
|
|
24971
24989
|
}, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(callComponentWillUnmount), callCreate = {
|
|
24972
24990
|
react_stack_bottom_frame: function(effect) {
|
|
24973
|
-
var
|
|
24991
|
+
var create2 = effect.create;
|
|
24974
24992
|
effect = effect.inst;
|
|
24975
|
-
|
|
24976
|
-
return effect.destroy =
|
|
24993
|
+
create2 = create2();
|
|
24994
|
+
return effect.destroy = create2;
|
|
24977
24995
|
}
|
|
24978
24996
|
}, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = {
|
|
24979
24997
|
react_stack_bottom_frame: function(current2, nearestMountedAncestor, destroy) {
|
|
@@ -25073,38 +25091,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25073
25091
|
mountHookTypesDev();
|
|
25074
25092
|
return readContext(context);
|
|
25075
25093
|
},
|
|
25076
|
-
useEffect: function(
|
|
25094
|
+
useEffect: function(create2, deps) {
|
|
25077
25095
|
currentHookNameInDev = "useEffect";
|
|
25078
25096
|
mountHookTypesDev();
|
|
25079
25097
|
checkDepsAreArrayDev(deps);
|
|
25080
|
-
return mountEffect(
|
|
25098
|
+
return mountEffect(create2, deps);
|
|
25081
25099
|
},
|
|
25082
|
-
useImperativeHandle: function(ref,
|
|
25100
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
25083
25101
|
currentHookNameInDev = "useImperativeHandle";
|
|
25084
25102
|
mountHookTypesDev();
|
|
25085
25103
|
checkDepsAreArrayDev(deps);
|
|
25086
|
-
return mountImperativeHandle(ref,
|
|
25104
|
+
return mountImperativeHandle(ref, create2, deps);
|
|
25087
25105
|
},
|
|
25088
|
-
useInsertionEffect: function(
|
|
25106
|
+
useInsertionEffect: function(create2, deps) {
|
|
25089
25107
|
currentHookNameInDev = "useInsertionEffect";
|
|
25090
25108
|
mountHookTypesDev();
|
|
25091
25109
|
checkDepsAreArrayDev(deps);
|
|
25092
|
-
mountEffectImpl(4, Insertion,
|
|
25110
|
+
mountEffectImpl(4, Insertion, create2, deps);
|
|
25093
25111
|
},
|
|
25094
|
-
useLayoutEffect: function(
|
|
25112
|
+
useLayoutEffect: function(create2, deps) {
|
|
25095
25113
|
currentHookNameInDev = "useLayoutEffect";
|
|
25096
25114
|
mountHookTypesDev();
|
|
25097
25115
|
checkDepsAreArrayDev(deps);
|
|
25098
|
-
return mountLayoutEffect(
|
|
25116
|
+
return mountLayoutEffect(create2, deps);
|
|
25099
25117
|
},
|
|
25100
|
-
useMemo: function(
|
|
25118
|
+
useMemo: function(create2, deps) {
|
|
25101
25119
|
currentHookNameInDev = "useMemo";
|
|
25102
25120
|
mountHookTypesDev();
|
|
25103
25121
|
checkDepsAreArrayDev(deps);
|
|
25104
25122
|
var prevDispatcher = ReactSharedInternals.H;
|
|
25105
25123
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
25106
25124
|
try {
|
|
25107
|
-
return mountMemo(
|
|
25125
|
+
return mountMemo(create2, deps);
|
|
25108
25126
|
} finally {
|
|
25109
25127
|
ReactSharedInternals.H = prevDispatcher;
|
|
25110
25128
|
}
|
|
@@ -25204,33 +25222,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25204
25222
|
updateHookTypesDev();
|
|
25205
25223
|
return readContext(context);
|
|
25206
25224
|
},
|
|
25207
|
-
useEffect: function(
|
|
25225
|
+
useEffect: function(create2, deps) {
|
|
25208
25226
|
currentHookNameInDev = "useEffect";
|
|
25209
25227
|
updateHookTypesDev();
|
|
25210
|
-
return mountEffect(
|
|
25228
|
+
return mountEffect(create2, deps);
|
|
25211
25229
|
},
|
|
25212
|
-
useImperativeHandle: function(ref,
|
|
25230
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
25213
25231
|
currentHookNameInDev = "useImperativeHandle";
|
|
25214
25232
|
updateHookTypesDev();
|
|
25215
|
-
return mountImperativeHandle(ref,
|
|
25233
|
+
return mountImperativeHandle(ref, create2, deps);
|
|
25216
25234
|
},
|
|
25217
|
-
useInsertionEffect: function(
|
|
25235
|
+
useInsertionEffect: function(create2, deps) {
|
|
25218
25236
|
currentHookNameInDev = "useInsertionEffect";
|
|
25219
25237
|
updateHookTypesDev();
|
|
25220
|
-
mountEffectImpl(4, Insertion,
|
|
25238
|
+
mountEffectImpl(4, Insertion, create2, deps);
|
|
25221
25239
|
},
|
|
25222
|
-
useLayoutEffect: function(
|
|
25240
|
+
useLayoutEffect: function(create2, deps) {
|
|
25223
25241
|
currentHookNameInDev = "useLayoutEffect";
|
|
25224
25242
|
updateHookTypesDev();
|
|
25225
|
-
return mountLayoutEffect(
|
|
25243
|
+
return mountLayoutEffect(create2, deps);
|
|
25226
25244
|
},
|
|
25227
|
-
useMemo: function(
|
|
25245
|
+
useMemo: function(create2, deps) {
|
|
25228
25246
|
currentHookNameInDev = "useMemo";
|
|
25229
25247
|
updateHookTypesDev();
|
|
25230
25248
|
var prevDispatcher = ReactSharedInternals.H;
|
|
25231
25249
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
25232
25250
|
try {
|
|
25233
|
-
return mountMemo(
|
|
25251
|
+
return mountMemo(create2, deps);
|
|
25234
25252
|
} finally {
|
|
25235
25253
|
ReactSharedInternals.H = prevDispatcher;
|
|
25236
25254
|
}
|
|
@@ -25330,33 +25348,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25330
25348
|
updateHookTypesDev();
|
|
25331
25349
|
return readContext(context);
|
|
25332
25350
|
},
|
|
25333
|
-
useEffect: function(
|
|
25351
|
+
useEffect: function(create2, deps) {
|
|
25334
25352
|
currentHookNameInDev = "useEffect";
|
|
25335
25353
|
updateHookTypesDev();
|
|
25336
|
-
updateEffectImpl(2048, Passive,
|
|
25354
|
+
updateEffectImpl(2048, Passive, create2, deps);
|
|
25337
25355
|
},
|
|
25338
|
-
useImperativeHandle: function(ref,
|
|
25356
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
25339
25357
|
currentHookNameInDev = "useImperativeHandle";
|
|
25340
25358
|
updateHookTypesDev();
|
|
25341
|
-
return updateImperativeHandle(ref,
|
|
25359
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
25342
25360
|
},
|
|
25343
|
-
useInsertionEffect: function(
|
|
25361
|
+
useInsertionEffect: function(create2, deps) {
|
|
25344
25362
|
currentHookNameInDev = "useInsertionEffect";
|
|
25345
25363
|
updateHookTypesDev();
|
|
25346
|
-
return updateEffectImpl(4, Insertion,
|
|
25364
|
+
return updateEffectImpl(4, Insertion, create2, deps);
|
|
25347
25365
|
},
|
|
25348
|
-
useLayoutEffect: function(
|
|
25366
|
+
useLayoutEffect: function(create2, deps) {
|
|
25349
25367
|
currentHookNameInDev = "useLayoutEffect";
|
|
25350
25368
|
updateHookTypesDev();
|
|
25351
|
-
return updateEffectImpl(4, Layout,
|
|
25369
|
+
return updateEffectImpl(4, Layout, create2, deps);
|
|
25352
25370
|
},
|
|
25353
|
-
useMemo: function(
|
|
25371
|
+
useMemo: function(create2, deps) {
|
|
25354
25372
|
currentHookNameInDev = "useMemo";
|
|
25355
25373
|
updateHookTypesDev();
|
|
25356
25374
|
var prevDispatcher = ReactSharedInternals.H;
|
|
25357
25375
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
25358
25376
|
try {
|
|
25359
|
-
return updateMemo(
|
|
25377
|
+
return updateMemo(create2, deps);
|
|
25360
25378
|
} finally {
|
|
25361
25379
|
ReactSharedInternals.H = prevDispatcher;
|
|
25362
25380
|
}
|
|
@@ -25456,33 +25474,33 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25456
25474
|
updateHookTypesDev();
|
|
25457
25475
|
return readContext(context);
|
|
25458
25476
|
},
|
|
25459
|
-
useEffect: function(
|
|
25477
|
+
useEffect: function(create2, deps) {
|
|
25460
25478
|
currentHookNameInDev = "useEffect";
|
|
25461
25479
|
updateHookTypesDev();
|
|
25462
|
-
updateEffectImpl(2048, Passive,
|
|
25480
|
+
updateEffectImpl(2048, Passive, create2, deps);
|
|
25463
25481
|
},
|
|
25464
|
-
useImperativeHandle: function(ref,
|
|
25482
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
25465
25483
|
currentHookNameInDev = "useImperativeHandle";
|
|
25466
25484
|
updateHookTypesDev();
|
|
25467
|
-
return updateImperativeHandle(ref,
|
|
25485
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
25468
25486
|
},
|
|
25469
|
-
useInsertionEffect: function(
|
|
25487
|
+
useInsertionEffect: function(create2, deps) {
|
|
25470
25488
|
currentHookNameInDev = "useInsertionEffect";
|
|
25471
25489
|
updateHookTypesDev();
|
|
25472
|
-
return updateEffectImpl(4, Insertion,
|
|
25490
|
+
return updateEffectImpl(4, Insertion, create2, deps);
|
|
25473
25491
|
},
|
|
25474
|
-
useLayoutEffect: function(
|
|
25492
|
+
useLayoutEffect: function(create2, deps) {
|
|
25475
25493
|
currentHookNameInDev = "useLayoutEffect";
|
|
25476
25494
|
updateHookTypesDev();
|
|
25477
|
-
return updateEffectImpl(4, Layout,
|
|
25495
|
+
return updateEffectImpl(4, Layout, create2, deps);
|
|
25478
25496
|
},
|
|
25479
|
-
useMemo: function(
|
|
25497
|
+
useMemo: function(create2, deps) {
|
|
25480
25498
|
currentHookNameInDev = "useMemo";
|
|
25481
25499
|
updateHookTypesDev();
|
|
25482
25500
|
var prevDispatcher = ReactSharedInternals.H;
|
|
25483
25501
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
25484
25502
|
try {
|
|
25485
|
-
return updateMemo(
|
|
25503
|
+
return updateMemo(create2, deps);
|
|
25486
25504
|
} finally {
|
|
25487
25505
|
ReactSharedInternals.H = prevDispatcher;
|
|
25488
25506
|
}
|
|
@@ -25588,38 +25606,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25588
25606
|
mountHookTypesDev();
|
|
25589
25607
|
return readContext(context);
|
|
25590
25608
|
},
|
|
25591
|
-
useEffect: function(
|
|
25609
|
+
useEffect: function(create2, deps) {
|
|
25592
25610
|
currentHookNameInDev = "useEffect";
|
|
25593
25611
|
warnInvalidHookAccess();
|
|
25594
25612
|
mountHookTypesDev();
|
|
25595
|
-
return mountEffect(
|
|
25613
|
+
return mountEffect(create2, deps);
|
|
25596
25614
|
},
|
|
25597
|
-
useImperativeHandle: function(ref,
|
|
25615
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
25598
25616
|
currentHookNameInDev = "useImperativeHandle";
|
|
25599
25617
|
warnInvalidHookAccess();
|
|
25600
25618
|
mountHookTypesDev();
|
|
25601
|
-
return mountImperativeHandle(ref,
|
|
25619
|
+
return mountImperativeHandle(ref, create2, deps);
|
|
25602
25620
|
},
|
|
25603
|
-
useInsertionEffect: function(
|
|
25621
|
+
useInsertionEffect: function(create2, deps) {
|
|
25604
25622
|
currentHookNameInDev = "useInsertionEffect";
|
|
25605
25623
|
warnInvalidHookAccess();
|
|
25606
25624
|
mountHookTypesDev();
|
|
25607
|
-
mountEffectImpl(4, Insertion,
|
|
25625
|
+
mountEffectImpl(4, Insertion, create2, deps);
|
|
25608
25626
|
},
|
|
25609
|
-
useLayoutEffect: function(
|
|
25627
|
+
useLayoutEffect: function(create2, deps) {
|
|
25610
25628
|
currentHookNameInDev = "useLayoutEffect";
|
|
25611
25629
|
warnInvalidHookAccess();
|
|
25612
25630
|
mountHookTypesDev();
|
|
25613
|
-
return mountLayoutEffect(
|
|
25631
|
+
return mountLayoutEffect(create2, deps);
|
|
25614
25632
|
},
|
|
25615
|
-
useMemo: function(
|
|
25633
|
+
useMemo: function(create2, deps) {
|
|
25616
25634
|
currentHookNameInDev = "useMemo";
|
|
25617
25635
|
warnInvalidHookAccess();
|
|
25618
25636
|
mountHookTypesDev();
|
|
25619
25637
|
var prevDispatcher = ReactSharedInternals.H;
|
|
25620
25638
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
25621
25639
|
try {
|
|
25622
|
-
return mountMemo(
|
|
25640
|
+
return mountMemo(create2, deps);
|
|
25623
25641
|
} finally {
|
|
25624
25642
|
ReactSharedInternals.H = prevDispatcher;
|
|
25625
25643
|
}
|
|
@@ -25701,9 +25719,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25701
25719
|
mountHookTypesDev();
|
|
25702
25720
|
return mountOptimistic(passthrough);
|
|
25703
25721
|
},
|
|
25704
|
-
useMemoCache: function(
|
|
25722
|
+
useMemoCache: function(size2) {
|
|
25705
25723
|
warnInvalidHookAccess();
|
|
25706
|
-
return useMemoCache(
|
|
25724
|
+
return useMemoCache(size2);
|
|
25707
25725
|
},
|
|
25708
25726
|
useHostTransitionStatus,
|
|
25709
25727
|
useCacheRefresh: function() {
|
|
@@ -25739,38 +25757,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25739
25757
|
updateHookTypesDev();
|
|
25740
25758
|
return readContext(context);
|
|
25741
25759
|
},
|
|
25742
|
-
useEffect: function(
|
|
25760
|
+
useEffect: function(create2, deps) {
|
|
25743
25761
|
currentHookNameInDev = "useEffect";
|
|
25744
25762
|
warnInvalidHookAccess();
|
|
25745
25763
|
updateHookTypesDev();
|
|
25746
|
-
updateEffectImpl(2048, Passive,
|
|
25764
|
+
updateEffectImpl(2048, Passive, create2, deps);
|
|
25747
25765
|
},
|
|
25748
|
-
useImperativeHandle: function(ref,
|
|
25766
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
25749
25767
|
currentHookNameInDev = "useImperativeHandle";
|
|
25750
25768
|
warnInvalidHookAccess();
|
|
25751
25769
|
updateHookTypesDev();
|
|
25752
|
-
return updateImperativeHandle(ref,
|
|
25770
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
25753
25771
|
},
|
|
25754
|
-
useInsertionEffect: function(
|
|
25772
|
+
useInsertionEffect: function(create2, deps) {
|
|
25755
25773
|
currentHookNameInDev = "useInsertionEffect";
|
|
25756
25774
|
warnInvalidHookAccess();
|
|
25757
25775
|
updateHookTypesDev();
|
|
25758
|
-
return updateEffectImpl(4, Insertion,
|
|
25776
|
+
return updateEffectImpl(4, Insertion, create2, deps);
|
|
25759
25777
|
},
|
|
25760
|
-
useLayoutEffect: function(
|
|
25778
|
+
useLayoutEffect: function(create2, deps) {
|
|
25761
25779
|
currentHookNameInDev = "useLayoutEffect";
|
|
25762
25780
|
warnInvalidHookAccess();
|
|
25763
25781
|
updateHookTypesDev();
|
|
25764
|
-
return updateEffectImpl(4, Layout,
|
|
25782
|
+
return updateEffectImpl(4, Layout, create2, deps);
|
|
25765
25783
|
},
|
|
25766
|
-
useMemo: function(
|
|
25784
|
+
useMemo: function(create2, deps) {
|
|
25767
25785
|
currentHookNameInDev = "useMemo";
|
|
25768
25786
|
warnInvalidHookAccess();
|
|
25769
25787
|
updateHookTypesDev();
|
|
25770
25788
|
var prevDispatcher = ReactSharedInternals.H;
|
|
25771
25789
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
25772
25790
|
try {
|
|
25773
|
-
return updateMemo(
|
|
25791
|
+
return updateMemo(create2, deps);
|
|
25774
25792
|
} finally {
|
|
25775
25793
|
ReactSharedInternals.H = prevDispatcher;
|
|
25776
25794
|
}
|
|
@@ -25852,9 +25870,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25852
25870
|
updateHookTypesDev();
|
|
25853
25871
|
return updateOptimistic(passthrough, reducer);
|
|
25854
25872
|
},
|
|
25855
|
-
useMemoCache: function(
|
|
25873
|
+
useMemoCache: function(size2) {
|
|
25856
25874
|
warnInvalidHookAccess();
|
|
25857
|
-
return useMemoCache(
|
|
25875
|
+
return useMemoCache(size2);
|
|
25858
25876
|
},
|
|
25859
25877
|
useHostTransitionStatus,
|
|
25860
25878
|
useCacheRefresh: function() {
|
|
@@ -25890,38 +25908,38 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
25890
25908
|
updateHookTypesDev();
|
|
25891
25909
|
return readContext(context);
|
|
25892
25910
|
},
|
|
25893
|
-
useEffect: function(
|
|
25911
|
+
useEffect: function(create2, deps) {
|
|
25894
25912
|
currentHookNameInDev = "useEffect";
|
|
25895
25913
|
warnInvalidHookAccess();
|
|
25896
25914
|
updateHookTypesDev();
|
|
25897
|
-
updateEffectImpl(2048, Passive,
|
|
25915
|
+
updateEffectImpl(2048, Passive, create2, deps);
|
|
25898
25916
|
},
|
|
25899
|
-
useImperativeHandle: function(ref,
|
|
25917
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
25900
25918
|
currentHookNameInDev = "useImperativeHandle";
|
|
25901
25919
|
warnInvalidHookAccess();
|
|
25902
25920
|
updateHookTypesDev();
|
|
25903
|
-
return updateImperativeHandle(ref,
|
|
25921
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
25904
25922
|
},
|
|
25905
|
-
useInsertionEffect: function(
|
|
25923
|
+
useInsertionEffect: function(create2, deps) {
|
|
25906
25924
|
currentHookNameInDev = "useInsertionEffect";
|
|
25907
25925
|
warnInvalidHookAccess();
|
|
25908
25926
|
updateHookTypesDev();
|
|
25909
|
-
return updateEffectImpl(4, Insertion,
|
|
25927
|
+
return updateEffectImpl(4, Insertion, create2, deps);
|
|
25910
25928
|
},
|
|
25911
|
-
useLayoutEffect: function(
|
|
25929
|
+
useLayoutEffect: function(create2, deps) {
|
|
25912
25930
|
currentHookNameInDev = "useLayoutEffect";
|
|
25913
25931
|
warnInvalidHookAccess();
|
|
25914
25932
|
updateHookTypesDev();
|
|
25915
|
-
return updateEffectImpl(4, Layout,
|
|
25933
|
+
return updateEffectImpl(4, Layout, create2, deps);
|
|
25916
25934
|
},
|
|
25917
|
-
useMemo: function(
|
|
25935
|
+
useMemo: function(create2, deps) {
|
|
25918
25936
|
currentHookNameInDev = "useMemo";
|
|
25919
25937
|
warnInvalidHookAccess();
|
|
25920
25938
|
updateHookTypesDev();
|
|
25921
25939
|
var prevDispatcher = ReactSharedInternals.H;
|
|
25922
25940
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
25923
25941
|
try {
|
|
25924
|
-
return updateMemo(
|
|
25942
|
+
return updateMemo(create2, deps);
|
|
25925
25943
|
} finally {
|
|
25926
25944
|
ReactSharedInternals.H = prevDispatcher;
|
|
25927
25945
|
}
|
|
@@ -26003,9 +26021,9 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
26003
26021
|
updateHookTypesDev();
|
|
26004
26022
|
return rerenderOptimistic(passthrough, reducer);
|
|
26005
26023
|
},
|
|
26006
|
-
useMemoCache: function(
|
|
26024
|
+
useMemoCache: function(size2) {
|
|
26007
26025
|
warnInvalidHookAccess();
|
|
26008
|
-
return useMemoCache(
|
|
26026
|
+
return useMemoCache(size2);
|
|
26009
26027
|
},
|
|
26010
26028
|
useHostTransitionStatus,
|
|
26011
26029
|
useCacheRefresh: function() {
|
|
@@ -26035,27 +26053,27 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
26035
26053
|
var classComponentUpdater = {
|
|
26036
26054
|
enqueueSetState: function(inst, payload, callback) {
|
|
26037
26055
|
inst = inst._reactInternals;
|
|
26038
|
-
var lane = requestUpdateLane(inst),
|
|
26039
|
-
|
|
26040
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
26041
|
-
payload = enqueueUpdate(inst,
|
|
26056
|
+
var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
|
|
26057
|
+
update2.payload = payload;
|
|
26058
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
|
|
26059
|
+
payload = enqueueUpdate(inst, update2, lane);
|
|
26042
26060
|
payload !== null && (startUpdateTimerByLane(lane, "this.setState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
|
|
26043
26061
|
},
|
|
26044
26062
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
26045
26063
|
inst = inst._reactInternals;
|
|
26046
|
-
var lane = requestUpdateLane(inst),
|
|
26047
|
-
|
|
26048
|
-
|
|
26049
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
26050
|
-
payload = enqueueUpdate(inst,
|
|
26064
|
+
var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
|
|
26065
|
+
update2.tag = ReplaceState;
|
|
26066
|
+
update2.payload = payload;
|
|
26067
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
|
|
26068
|
+
payload = enqueueUpdate(inst, update2, lane);
|
|
26051
26069
|
payload !== null && (startUpdateTimerByLane(lane, "this.replaceState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
|
|
26052
26070
|
},
|
|
26053
26071
|
enqueueForceUpdate: function(inst, callback) {
|
|
26054
26072
|
inst = inst._reactInternals;
|
|
26055
|
-
var lane = requestUpdateLane(inst),
|
|
26056
|
-
|
|
26057
|
-
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback),
|
|
26058
|
-
callback = enqueueUpdate(inst,
|
|
26073
|
+
var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
|
|
26074
|
+
update2.tag = ForceUpdate;
|
|
26075
|
+
callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
|
|
26076
|
+
callback = enqueueUpdate(inst, update2, lane);
|
|
26059
26077
|
callback !== null && (startUpdateTimerByLane(lane, "this.forceUpdate()", inst), scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
|
|
26060
26078
|
}
|
|
26061
26079
|
}, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), didReceiveUpdate = false;
|
|
@@ -26110,15 +26128,15 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
26110
26128
|
var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null;
|
|
26111
26129
|
overrideHookState = function(fiber, id, path10, value) {
|
|
26112
26130
|
id = findHook(fiber, id);
|
|
26113
|
-
id !== null && (path10 = copyWithSetImpl(id.memoizedState, path10, 0, value), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps =
|
|
26131
|
+
id !== null && (path10 = copyWithSetImpl(id.memoizedState, path10, 0, value), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps = assign2({}, fiber.memoizedProps), path10 = enqueueConcurrentRenderForLane(fiber, 2), path10 !== null && scheduleUpdateOnFiber(path10, fiber, 2));
|
|
26114
26132
|
};
|
|
26115
26133
|
overrideHookStateDeletePath = function(fiber, id, path10) {
|
|
26116
26134
|
id = findHook(fiber, id);
|
|
26117
|
-
id !== null && (path10 = copyWithDeleteImpl(id.memoizedState, path10, 0), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps =
|
|
26135
|
+
id !== null && (path10 = copyWithDeleteImpl(id.memoizedState, path10, 0), id.memoizedState = path10, id.baseState = path10, fiber.memoizedProps = assign2({}, fiber.memoizedProps), path10 = enqueueConcurrentRenderForLane(fiber, 2), path10 !== null && scheduleUpdateOnFiber(path10, fiber, 2));
|
|
26118
26136
|
};
|
|
26119
26137
|
overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
|
|
26120
26138
|
id = findHook(fiber, id);
|
|
26121
|
-
id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps =
|
|
26139
|
+
id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign2({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), oldPath !== null && scheduleUpdateOnFiber(oldPath, fiber, 2));
|
|
26122
26140
|
};
|
|
26123
26141
|
overrideProps = function(fiber, path10, value) {
|
|
26124
26142
|
fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path10, 0, value);
|
|
@@ -26479,7 +26497,7 @@ No matching component was found for:
|
|
|
26479
26497
|
throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");
|
|
26480
26498
|
var queue = ensureFormComponentIsStateful(formFiber).queue;
|
|
26481
26499
|
startHostActionTimer(formFiber);
|
|
26482
|
-
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ?
|
|
26500
|
+
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ? noop2 : function() {
|
|
26483
26501
|
ReactSharedInternals.T === null && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");
|
|
26484
26502
|
var stateHook = ensureFormComponentIsStateful(formFiber);
|
|
26485
26503
|
stateHook.next === null && (stateHook = formFiber.alternate.memoizedState);
|
|
@@ -26527,7 +26545,7 @@ var require_constants3 = __commonJS((exports, module) => {
|
|
|
26527
26545
|
var require_buffer_util = __commonJS((exports, module) => {
|
|
26528
26546
|
var { EMPTY_BUFFER } = require_constants3();
|
|
26529
26547
|
var FastBuffer = Buffer[Symbol.species];
|
|
26530
|
-
function
|
|
26548
|
+
function concat2(list, totalLength) {
|
|
26531
26549
|
if (list.length === 0)
|
|
26532
26550
|
return EMPTY_BUFFER;
|
|
26533
26551
|
if (list.length === 1)
|
|
@@ -26576,7 +26594,7 @@ var require_buffer_util = __commonJS((exports, module) => {
|
|
|
26576
26594
|
return buf;
|
|
26577
26595
|
}
|
|
26578
26596
|
module.exports = {
|
|
26579
|
-
concat,
|
|
26597
|
+
concat: concat2,
|
|
26580
26598
|
mask: _mask,
|
|
26581
26599
|
toArrayBuffer,
|
|
26582
26600
|
toBuffer,
|
|
@@ -26781,17 +26799,17 @@ var require_permessage_deflate = __commonJS((exports, module) => {
|
|
|
26781
26799
|
}
|
|
26782
26800
|
decompress(data, fin, callback) {
|
|
26783
26801
|
zlibLimiter.add((done) => {
|
|
26784
|
-
this._decompress(data, fin, (err,
|
|
26802
|
+
this._decompress(data, fin, (err, result2) => {
|
|
26785
26803
|
done();
|
|
26786
|
-
callback(err,
|
|
26804
|
+
callback(err, result2);
|
|
26787
26805
|
});
|
|
26788
26806
|
});
|
|
26789
26807
|
}
|
|
26790
26808
|
compress(data, fin, callback) {
|
|
26791
26809
|
zlibLimiter.add((done) => {
|
|
26792
|
-
this._compress(data, fin, (err,
|
|
26810
|
+
this._compress(data, fin, (err, result2) => {
|
|
26793
26811
|
done();
|
|
26794
|
-
callback(err,
|
|
26812
|
+
callback(err, result2);
|
|
26795
26813
|
});
|
|
26796
26814
|
});
|
|
26797
26815
|
}
|
|
@@ -26870,14 +26888,14 @@ var require_permessage_deflate = __commonJS((exports, module) => {
|
|
|
26870
26888
|
}
|
|
26871
26889
|
}
|
|
26872
26890
|
module.exports = PerMessageDeflate;
|
|
26873
|
-
function deflateOnData(
|
|
26874
|
-
this[kBuffers].push(
|
|
26875
|
-
this[kTotalLength] +=
|
|
26891
|
+
function deflateOnData(chunk2) {
|
|
26892
|
+
this[kBuffers].push(chunk2);
|
|
26893
|
+
this[kTotalLength] += chunk2.length;
|
|
26876
26894
|
}
|
|
26877
|
-
function inflateOnData(
|
|
26878
|
-
this[kTotalLength] +=
|
|
26895
|
+
function inflateOnData(chunk2) {
|
|
26896
|
+
this[kTotalLength] += chunk2.length;
|
|
26879
26897
|
if (this[kPerMessageDeflate]._maxPayload < 1 || this[kTotalLength] <= this[kPerMessageDeflate]._maxPayload) {
|
|
26880
|
-
this[kBuffers].push(
|
|
26898
|
+
this[kBuffers].push(chunk2);
|
|
26881
26899
|
return;
|
|
26882
26900
|
}
|
|
26883
26901
|
this[kError] = new RangeError("Max payload size exceeded");
|
|
@@ -27094,7 +27112,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
27094
27112
|
kStatusCode,
|
|
27095
27113
|
kWebSocket
|
|
27096
27114
|
} = require_constants3();
|
|
27097
|
-
var { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
27115
|
+
var { concat: concat2, toArrayBuffer, unmask } = require_buffer_util();
|
|
27098
27116
|
var { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
27099
27117
|
var FastBuffer = Buffer[Symbol.species];
|
|
27100
27118
|
var GET_INFO = 0;
|
|
@@ -27131,11 +27149,11 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
27131
27149
|
this._loop = false;
|
|
27132
27150
|
this._state = GET_INFO;
|
|
27133
27151
|
}
|
|
27134
|
-
_write(
|
|
27152
|
+
_write(chunk2, encoding, cb) {
|
|
27135
27153
|
if (this._opcode === 8 && this._state == GET_INFO)
|
|
27136
27154
|
return cb();
|
|
27137
|
-
this._bufferedBytes +=
|
|
27138
|
-
this._buffers.push(
|
|
27155
|
+
this._bufferedBytes += chunk2.length;
|
|
27156
|
+
this._buffers.push(chunk2);
|
|
27139
27157
|
this.startLoop(cb);
|
|
27140
27158
|
}
|
|
27141
27159
|
consume(n) {
|
|
@@ -27375,9 +27393,9 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
27375
27393
|
if (this._opcode === 2) {
|
|
27376
27394
|
let data;
|
|
27377
27395
|
if (this._binaryType === "nodebuffer") {
|
|
27378
|
-
data =
|
|
27396
|
+
data = concat2(fragments, messageLength);
|
|
27379
27397
|
} else if (this._binaryType === "arraybuffer") {
|
|
27380
|
-
data = toArrayBuffer(
|
|
27398
|
+
data = toArrayBuffer(concat2(fragments, messageLength));
|
|
27381
27399
|
} else if (this._binaryType === "blob") {
|
|
27382
27400
|
data = new Blob(fragments);
|
|
27383
27401
|
} else {
|
|
@@ -27395,7 +27413,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
27395
27413
|
});
|
|
27396
27414
|
}
|
|
27397
27415
|
} else {
|
|
27398
|
-
const buf =
|
|
27416
|
+
const buf = concat2(fragments, messageLength);
|
|
27399
27417
|
if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
|
|
27400
27418
|
const error = this.createError(Error, "invalid UTF-8 sequence", true, 1007, "WS_ERR_INVALID_UTF8");
|
|
27401
27419
|
cb(error);
|
|
@@ -27500,7 +27518,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
27500
27518
|
}
|
|
27501
27519
|
static frame(data, options2) {
|
|
27502
27520
|
let mask;
|
|
27503
|
-
let
|
|
27521
|
+
let merge3 = false;
|
|
27504
27522
|
let offset = 2;
|
|
27505
27523
|
let skipMasking = false;
|
|
27506
27524
|
if (options2.mask) {
|
|
@@ -27533,7 +27551,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
27533
27551
|
}
|
|
27534
27552
|
} else {
|
|
27535
27553
|
dataLength = data.length;
|
|
27536
|
-
|
|
27554
|
+
merge3 = options2.mask && options2.readOnly && !skipMasking;
|
|
27537
27555
|
}
|
|
27538
27556
|
let payloadLength = dataLength;
|
|
27539
27557
|
if (dataLength >= 65536) {
|
|
@@ -27543,7 +27561,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
27543
27561
|
offset += 2;
|
|
27544
27562
|
payloadLength = 126;
|
|
27545
27563
|
}
|
|
27546
|
-
const target = Buffer.allocUnsafe(
|
|
27564
|
+
const target = Buffer.allocUnsafe(merge3 ? dataLength + offset : offset);
|
|
27547
27565
|
target[0] = options2.fin ? options2.opcode | 128 : options2.opcode;
|
|
27548
27566
|
if (options2.rsv1)
|
|
27549
27567
|
target[0] |= 64;
|
|
@@ -27563,7 +27581,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
27563
27581
|
target[offset - 1] = mask[3];
|
|
27564
27582
|
if (skipMasking)
|
|
27565
27583
|
return [target, data];
|
|
27566
|
-
if (
|
|
27584
|
+
if (merge3) {
|
|
27567
27585
|
applyMask(data, mask, target, offset, dataLength);
|
|
27568
27586
|
return [target];
|
|
27569
27587
|
}
|
|
@@ -28124,10 +28142,10 @@ var require_extension = __commonJS((exports, module) => {
|
|
|
28124
28142
|
configurations = [configurations];
|
|
28125
28143
|
return configurations.map((params) => {
|
|
28126
28144
|
return [extension].concat(Object.keys(params).map((k) => {
|
|
28127
|
-
let
|
|
28128
|
-
if (!Array.isArray(
|
|
28129
|
-
|
|
28130
|
-
return
|
|
28145
|
+
let values2 = params[k];
|
|
28146
|
+
if (!Array.isArray(values2))
|
|
28147
|
+
values2 = [values2];
|
|
28148
|
+
return values2.map((v) => v === true ? k : `${k}=${v}`).join("; ");
|
|
28131
28149
|
})).join("; ");
|
|
28132
28150
|
}).join(", ");
|
|
28133
28151
|
}).join(", ");
|
|
@@ -28249,7 +28267,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
28249
28267
|
get url() {
|
|
28250
28268
|
return this._url;
|
|
28251
28269
|
}
|
|
28252
|
-
setSocket(socket,
|
|
28270
|
+
setSocket(socket, head3, options2) {
|
|
28253
28271
|
const receiver = new Receiver({
|
|
28254
28272
|
allowSynchronousEvents: options2.allowSynchronousEvents,
|
|
28255
28273
|
binaryType: this.binaryType,
|
|
@@ -28276,8 +28294,8 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
28276
28294
|
socket.setTimeout(0);
|
|
28277
28295
|
if (socket.setNoDelay)
|
|
28278
28296
|
socket.setNoDelay();
|
|
28279
|
-
if (
|
|
28280
|
-
socket.unshift(
|
|
28297
|
+
if (head3.length > 0)
|
|
28298
|
+
socket.unshift(head3);
|
|
28281
28299
|
socket.on("close", socketOnClose);
|
|
28282
28300
|
socket.on("data", socketOnData);
|
|
28283
28301
|
socket.on("end", socketOnEnd);
|
|
@@ -28460,29 +28478,29 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
28460
28478
|
"protocol",
|
|
28461
28479
|
"readyState",
|
|
28462
28480
|
"url"
|
|
28463
|
-
].forEach((
|
|
28464
|
-
Object.defineProperty(WebSocket2.prototype,
|
|
28481
|
+
].forEach((property2) => {
|
|
28482
|
+
Object.defineProperty(WebSocket2.prototype, property2, { enumerable: true });
|
|
28465
28483
|
});
|
|
28466
|
-
["open", "error", "close", "message"].forEach((
|
|
28467
|
-
Object.defineProperty(WebSocket2.prototype, `on${
|
|
28484
|
+
["open", "error", "close", "message"].forEach((method2) => {
|
|
28485
|
+
Object.defineProperty(WebSocket2.prototype, `on${method2}`, {
|
|
28468
28486
|
enumerable: true,
|
|
28469
28487
|
get() {
|
|
28470
|
-
for (const listener of this.listeners(
|
|
28488
|
+
for (const listener of this.listeners(method2)) {
|
|
28471
28489
|
if (listener[kForOnEventAttribute])
|
|
28472
28490
|
return listener[kListener];
|
|
28473
28491
|
}
|
|
28474
28492
|
return null;
|
|
28475
28493
|
},
|
|
28476
28494
|
set(handler2) {
|
|
28477
|
-
for (const listener of this.listeners(
|
|
28495
|
+
for (const listener of this.listeners(method2)) {
|
|
28478
28496
|
if (listener[kForOnEventAttribute]) {
|
|
28479
|
-
this.removeListener(
|
|
28497
|
+
this.removeListener(method2, listener);
|
|
28480
28498
|
break;
|
|
28481
28499
|
}
|
|
28482
28500
|
}
|
|
28483
28501
|
if (typeof handler2 !== "function")
|
|
28484
28502
|
return;
|
|
28485
|
-
this.addEventListener(
|
|
28503
|
+
this.addEventListener(method2, handler2, {
|
|
28486
28504
|
[kForOnEventAttribute]: true
|
|
28487
28505
|
});
|
|
28488
28506
|
}
|
|
@@ -28664,7 +28682,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
28664
28682
|
abortHandshake(websocket, req, `Unexpected server response: ${res.statusCode}`);
|
|
28665
28683
|
}
|
|
28666
28684
|
});
|
|
28667
|
-
req.on("upgrade", (res, socket,
|
|
28685
|
+
req.on("upgrade", (res, socket, head3) => {
|
|
28668
28686
|
websocket.emit("upgrade", res);
|
|
28669
28687
|
if (websocket.readyState !== WebSocket2.CONNECTING)
|
|
28670
28688
|
return;
|
|
@@ -28726,7 +28744,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
28726
28744
|
}
|
|
28727
28745
|
websocket._extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
|
|
28728
28746
|
}
|
|
28729
|
-
websocket.setSocket(socket,
|
|
28747
|
+
websocket.setSocket(socket, head3, {
|
|
28730
28748
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
28731
28749
|
generateMask: opts.generateMask,
|
|
28732
28750
|
maxPayload: opts.maxPayload,
|
|
@@ -28858,9 +28876,9 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
28858
28876
|
this.removeListener("data", socketOnData);
|
|
28859
28877
|
this.removeListener("end", socketOnEnd);
|
|
28860
28878
|
websocket._readyState = WebSocket2.CLOSING;
|
|
28861
|
-
let
|
|
28862
|
-
if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && (
|
|
28863
|
-
websocket._receiver.write(
|
|
28879
|
+
let chunk2;
|
|
28880
|
+
if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && (chunk2 = websocket._socket.read()) !== null) {
|
|
28881
|
+
websocket._receiver.write(chunk2);
|
|
28864
28882
|
}
|
|
28865
28883
|
websocket._receiver.end();
|
|
28866
28884
|
this[kWebSocket] = undefined;
|
|
@@ -28872,8 +28890,8 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
28872
28890
|
websocket._receiver.on("finish", receiverOnFinish);
|
|
28873
28891
|
}
|
|
28874
28892
|
}
|
|
28875
|
-
function socketOnData(
|
|
28876
|
-
if (!this[kWebSocket]._receiver.write(
|
|
28893
|
+
function socketOnData(chunk2) {
|
|
28894
|
+
if (!this[kWebSocket]._receiver.write(chunk2)) {
|
|
28877
28895
|
this.pause();
|
|
28878
28896
|
}
|
|
28879
28897
|
}
|
|
@@ -28981,14 +28999,14 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
28981
28999
|
if (ws.isPaused)
|
|
28982
29000
|
ws.resume();
|
|
28983
29001
|
};
|
|
28984
|
-
duplex._write = function(
|
|
29002
|
+
duplex._write = function(chunk2, encoding, callback) {
|
|
28985
29003
|
if (ws.readyState === ws.CONNECTING) {
|
|
28986
29004
|
ws.once("open", function open() {
|
|
28987
|
-
duplex._write(
|
|
29005
|
+
duplex._write(chunk2, encoding, callback);
|
|
28988
29006
|
});
|
|
28989
29007
|
return;
|
|
28990
29008
|
}
|
|
28991
|
-
ws.send(
|
|
29009
|
+
ws.send(chunk2, callback);
|
|
28992
29010
|
};
|
|
28993
29011
|
duplex.on("end", duplexOnEnd);
|
|
28994
29012
|
duplex.on("error", duplexOnError);
|
|
@@ -29100,8 +29118,8 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
29100
29118
|
this._removeListeners = addListeners(this._server, {
|
|
29101
29119
|
listening: this.emit.bind(this, "listening"),
|
|
29102
29120
|
error: this.emit.bind(this, "error"),
|
|
29103
|
-
upgrade: (req, socket,
|
|
29104
|
-
this.handleUpgrade(req, socket,
|
|
29121
|
+
upgrade: (req, socket, head3) => {
|
|
29122
|
+
this.handleUpgrade(req, socket, head3, emitConnection);
|
|
29105
29123
|
}
|
|
29106
29124
|
});
|
|
29107
29125
|
}
|
|
@@ -29169,7 +29187,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
29169
29187
|
}
|
|
29170
29188
|
return true;
|
|
29171
29189
|
}
|
|
29172
|
-
handleUpgrade(req, socket,
|
|
29190
|
+
handleUpgrade(req, socket, head3, cb) {
|
|
29173
29191
|
socket.on("error", socketOnError);
|
|
29174
29192
|
const key = req.headers["sec-websocket-key"];
|
|
29175
29193
|
const upgrade = req.headers.upgrade;
|
|
@@ -29238,16 +29256,16 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
29238
29256
|
if (!verified) {
|
|
29239
29257
|
return abortHandshake(socket, code || 401, message, headers);
|
|
29240
29258
|
}
|
|
29241
|
-
this.completeUpgrade(extensions, key, protocols, req, socket,
|
|
29259
|
+
this.completeUpgrade(extensions, key, protocols, req, socket, head3, cb);
|
|
29242
29260
|
});
|
|
29243
29261
|
return;
|
|
29244
29262
|
}
|
|
29245
29263
|
if (!this.options.verifyClient(info))
|
|
29246
29264
|
return abortHandshake(socket, 401);
|
|
29247
29265
|
}
|
|
29248
|
-
this.completeUpgrade(extensions, key, protocols, req, socket,
|
|
29266
|
+
this.completeUpgrade(extensions, key, protocols, req, socket, head3, cb);
|
|
29249
29267
|
}
|
|
29250
|
-
completeUpgrade(extensions, key, protocols, req, socket,
|
|
29268
|
+
completeUpgrade(extensions, key, protocols, req, socket, head3, cb) {
|
|
29251
29269
|
if (!socket.readable || !socket.writable)
|
|
29252
29270
|
return socket.destroy();
|
|
29253
29271
|
if (socket[kWebSocket]) {
|
|
@@ -29283,7 +29301,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
29283
29301
|
`).join(`\r
|
|
29284
29302
|
`));
|
|
29285
29303
|
socket.removeListener("error", socketOnError);
|
|
29286
|
-
ws.setSocket(socket,
|
|
29304
|
+
ws.setSocket(socket, head3, {
|
|
29287
29305
|
allowSynchronousEvents: this.options.allowSynchronousEvents,
|
|
29288
29306
|
maxPayload: this.options.maxPayload,
|
|
29289
29307
|
skipUTF8Validation: this.options.skipUTF8Validation
|
|
@@ -29301,12 +29319,12 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
29301
29319
|
}
|
|
29302
29320
|
}
|
|
29303
29321
|
module.exports = WebSocketServer;
|
|
29304
|
-
function addListeners(server,
|
|
29305
|
-
for (const event of Object.keys(
|
|
29306
|
-
server.on(event,
|
|
29322
|
+
function addListeners(server, map3) {
|
|
29323
|
+
for (const event of Object.keys(map3))
|
|
29324
|
+
server.on(event, map3[event]);
|
|
29307
29325
|
return function removeListeners() {
|
|
29308
|
-
for (const event of Object.keys(
|
|
29309
|
-
server.removeListener(event,
|
|
29326
|
+
for (const event of Object.keys(map3)) {
|
|
29327
|
+
server.removeListener(event, map3[event]);
|
|
29310
29328
|
}
|
|
29311
29329
|
};
|
|
29312
29330
|
}
|
|
@@ -29431,7 +29449,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29431
29449
|
return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
29432
29450
|
}, _typeof(o);
|
|
29433
29451
|
}
|
|
29434
|
-
var ErrorStackParser = __webpack_require__2(206), React = __webpack_require__2(189),
|
|
29452
|
+
var ErrorStackParser = __webpack_require__2(206), React = __webpack_require__2(189), assign2 = Object.assign, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), hasOwnProperty = Object.prototype.hasOwnProperty, hookLog = [], primitiveStackCache = null;
|
|
29435
29453
|
function getPrimitiveStackCache() {
|
|
29436
29454
|
if (primitiveStackCache === null) {
|
|
29437
29455
|
var cache3 = new Map;
|
|
@@ -29587,13 +29605,13 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29587
29605
|
});
|
|
29588
29606
|
return value;
|
|
29589
29607
|
},
|
|
29590
|
-
useEffect: function useEffect(
|
|
29608
|
+
useEffect: function useEffect(create2) {
|
|
29591
29609
|
nextHook();
|
|
29592
29610
|
hookLog.push({
|
|
29593
29611
|
displayName: null,
|
|
29594
29612
|
primitive: "Effect",
|
|
29595
29613
|
stackError: Error(),
|
|
29596
|
-
value:
|
|
29614
|
+
value: create2,
|
|
29597
29615
|
debugInfo: null,
|
|
29598
29616
|
dispatcherHookName: "Effect"
|
|
29599
29617
|
});
|
|
@@ -29611,24 +29629,24 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29611
29629
|
dispatcherHookName: "ImperativeHandle"
|
|
29612
29630
|
});
|
|
29613
29631
|
},
|
|
29614
|
-
useLayoutEffect: function useLayoutEffect(
|
|
29632
|
+
useLayoutEffect: function useLayoutEffect(create2) {
|
|
29615
29633
|
nextHook();
|
|
29616
29634
|
hookLog.push({
|
|
29617
29635
|
displayName: null,
|
|
29618
29636
|
primitive: "LayoutEffect",
|
|
29619
29637
|
stackError: Error(),
|
|
29620
|
-
value:
|
|
29638
|
+
value: create2,
|
|
29621
29639
|
debugInfo: null,
|
|
29622
29640
|
dispatcherHookName: "LayoutEffect"
|
|
29623
29641
|
});
|
|
29624
29642
|
},
|
|
29625
|
-
useInsertionEffect: function useInsertionEffect(
|
|
29643
|
+
useInsertionEffect: function useInsertionEffect(create2) {
|
|
29626
29644
|
nextHook();
|
|
29627
29645
|
hookLog.push({
|
|
29628
29646
|
displayName: null,
|
|
29629
29647
|
primitive: "InsertionEffect",
|
|
29630
29648
|
stackError: Error(),
|
|
29631
|
-
value:
|
|
29649
|
+
value: create2,
|
|
29632
29650
|
debugInfo: null,
|
|
29633
29651
|
dispatcherHookName: "InsertionEffect"
|
|
29634
29652
|
});
|
|
@@ -29848,7 +29866,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29848
29866
|
});
|
|
29849
29867
|
return [passthrough, function() {}];
|
|
29850
29868
|
},
|
|
29851
|
-
useMemoCache: function useMemoCache(
|
|
29869
|
+
useMemoCache: function useMemoCache(size2) {
|
|
29852
29870
|
var fiber = currentFiber;
|
|
29853
29871
|
if (fiber == null)
|
|
29854
29872
|
return [];
|
|
@@ -29857,8 +29875,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29857
29875
|
return [];
|
|
29858
29876
|
var data = fiber.data[fiber.index];
|
|
29859
29877
|
if (data === undefined) {
|
|
29860
|
-
data = fiber.data[fiber.index] = Array(
|
|
29861
|
-
for (var i2 = 0;i2 <
|
|
29878
|
+
data = fiber.data[fiber.index] = Array(size2);
|
|
29879
|
+
for (var i2 = 0;i2 < size2; i2++)
|
|
29862
29880
|
data[i2] = REACT_MEMO_CACHE_SENTINEL;
|
|
29863
29881
|
}
|
|
29864
29882
|
fiber.index++;
|
|
@@ -29889,7 +29907,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
29889
29907
|
return callback;
|
|
29890
29908
|
}
|
|
29891
29909
|
}, DispatcherProxyHandler = {
|
|
29892
|
-
get: function
|
|
29910
|
+
get: function get2(target, prop) {
|
|
29893
29911
|
if (target.hasOwnProperty(prop))
|
|
29894
29912
|
return target[prop];
|
|
29895
29913
|
target = Error("Missing method in Dispatcher: " + prop);
|
|
@@ -30083,7 +30101,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30083
30101
|
thenableState = fiber.type;
|
|
30084
30102
|
var props = fiber.memoizedProps;
|
|
30085
30103
|
if (thenableState !== fiber.elementType && thenableState && thenableState.defaultProps) {
|
|
30086
|
-
props =
|
|
30104
|
+
props = assign2({}, props);
|
|
30087
30105
|
var defaultProps = thenableState.defaultProps;
|
|
30088
30106
|
for (propName in defaultProps)
|
|
30089
30107
|
props[propName] === undefined && (props[propName] = defaultProps[propName]);
|
|
@@ -30154,7 +30172,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30154
30172
|
enqueueForceUpdate: function enqueueForceUpdate() {},
|
|
30155
30173
|
enqueueReplaceState: function enqueueReplaceState() {},
|
|
30156
30174
|
enqueueSetState: function enqueueSetState() {}
|
|
30157
|
-
},
|
|
30175
|
+
}, assign2 = Object.assign, emptyObject = {};
|
|
30158
30176
|
function Component(props, context, updater) {
|
|
30159
30177
|
this.props = props;
|
|
30160
30178
|
this.context = context;
|
|
@@ -30180,10 +30198,10 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30180
30198
|
}
|
|
30181
30199
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy;
|
|
30182
30200
|
pureComponentPrototype.constructor = PureComponent;
|
|
30183
|
-
|
|
30201
|
+
assign2(pureComponentPrototype, Component.prototype);
|
|
30184
30202
|
pureComponentPrototype.isPureReactComponent = true;
|
|
30185
30203
|
var isArrayImpl = Array.isArray;
|
|
30186
|
-
function
|
|
30204
|
+
function noop2() {}
|
|
30187
30205
|
var ReactSharedInternals = {
|
|
30188
30206
|
H: null,
|
|
30189
30207
|
A: null,
|
|
@@ -30207,7 +30225,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30207
30225
|
function isValidElement(object) {
|
|
30208
30226
|
return _typeof(object) === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
30209
30227
|
}
|
|
30210
|
-
function
|
|
30228
|
+
function escape2(key) {
|
|
30211
30229
|
var escaperLookup = {
|
|
30212
30230
|
"=": "=0",
|
|
30213
30231
|
":": "=2"
|
|
@@ -30218,7 +30236,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30218
30236
|
}
|
|
30219
30237
|
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
30220
30238
|
function getElementKey(element, index) {
|
|
30221
|
-
return _typeof(element) === "object" && element !== null && element.key != null ?
|
|
30239
|
+
return _typeof(element) === "object" && element !== null && element.key != null ? escape2("" + element.key) : index.toString(36);
|
|
30222
30240
|
}
|
|
30223
30241
|
function resolveThenable(thenable) {
|
|
30224
30242
|
switch (thenable.status) {
|
|
@@ -30227,7 +30245,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30227
30245
|
case "rejected":
|
|
30228
30246
|
throw thenable.reason;
|
|
30229
30247
|
default:
|
|
30230
|
-
switch (typeof thenable.status === "string" ? thenable.then(
|
|
30248
|
+
switch (typeof thenable.status === "string" ? thenable.then(noop2, noop2) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
30231
30249
|
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
30232
30250
|
}, function(error) {
|
|
30233
30251
|
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error);
|
|
@@ -30287,11 +30305,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30287
30305
|
function mapChildren(children, func, context) {
|
|
30288
30306
|
if (children == null)
|
|
30289
30307
|
return children;
|
|
30290
|
-
var
|
|
30291
|
-
mapIntoArray(children,
|
|
30308
|
+
var result2 = [], count = 0;
|
|
30309
|
+
mapIntoArray(children, result2, "", "", function(child) {
|
|
30292
30310
|
return func.call(context, child, count++);
|
|
30293
30311
|
});
|
|
30294
|
-
return
|
|
30312
|
+
return result2;
|
|
30295
30313
|
}
|
|
30296
30314
|
function lazyInitializer(payload) {
|
|
30297
30315
|
if (payload._status === -1) {
|
|
@@ -30337,7 +30355,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30337
30355
|
try {
|
|
30338
30356
|
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
30339
30357
|
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue);
|
|
30340
|
-
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(
|
|
30358
|
+
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(noop2, reportGlobalError);
|
|
30341
30359
|
} catch (error) {
|
|
30342
30360
|
reportGlobalError(error);
|
|
30343
30361
|
} finally {
|
|
@@ -30354,7 +30372,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30354
30372
|
}
|
|
30355
30373
|
var Children = {
|
|
30356
30374
|
map: mapChildren,
|
|
30357
|
-
forEach: function
|
|
30375
|
+
forEach: function forEach3(children, forEachFunc, forEachContext) {
|
|
30358
30376
|
mapChildren(children, function() {
|
|
30359
30377
|
forEachFunc.apply(this, arguments);
|
|
30360
30378
|
}, forEachContext);
|
|
@@ -30366,7 +30384,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30366
30384
|
});
|
|
30367
30385
|
return n;
|
|
30368
30386
|
},
|
|
30369
|
-
toArray: function
|
|
30387
|
+
toArray: function toArray3(children) {
|
|
30370
30388
|
return mapChildren(children, function(child) {
|
|
30371
30389
|
return child;
|
|
30372
30390
|
}) || [];
|
|
@@ -30389,8 +30407,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30389
30407
|
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
30390
30408
|
exports2.__COMPILER_RUNTIME = {
|
|
30391
30409
|
__proto__: null,
|
|
30392
|
-
c: function c(
|
|
30393
|
-
return ReactSharedInternals.H.useMemoCache(
|
|
30410
|
+
c: function c(size2) {
|
|
30411
|
+
return ReactSharedInternals.H.useMemoCache(size2);
|
|
30394
30412
|
}
|
|
30395
30413
|
};
|
|
30396
30414
|
exports2.addTransitionType = addTransitionType;
|
|
@@ -30405,7 +30423,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30405
30423
|
exports2.cloneElement = function(element, config, children) {
|
|
30406
30424
|
if (element === null || element === undefined)
|
|
30407
30425
|
throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
30408
|
-
var props =
|
|
30426
|
+
var props = assign2({}, element.props), key = element.key;
|
|
30409
30427
|
if (config != null)
|
|
30410
30428
|
for (propName in config.key !== undefined && (key = "" + config.key), config)
|
|
30411
30429
|
!hasOwnProperty.call(config, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config.ref === undefined || (props[propName] = config[propName]);
|
|
@@ -30515,7 +30533,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30515
30533
|
} finally {
|
|
30516
30534
|
ReactSharedInternals.T = prevTransition;
|
|
30517
30535
|
}
|
|
30518
|
-
return
|
|
30536
|
+
return noop2;
|
|
30519
30537
|
};
|
|
30520
30538
|
exports2.unstable_useCacheRefresh = function() {
|
|
30521
30539
|
return ReactSharedInternals.H.useCacheRefresh();
|
|
@@ -30536,8 +30554,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30536
30554
|
exports2.useDeferredValue = function(value, initialValue) {
|
|
30537
30555
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
30538
30556
|
};
|
|
30539
|
-
exports2.useEffect = function(
|
|
30540
|
-
return ReactSharedInternals.H.useEffect(
|
|
30557
|
+
exports2.useEffect = function(create2, deps) {
|
|
30558
|
+
return ReactSharedInternals.H.useEffect(create2, deps);
|
|
30541
30559
|
};
|
|
30542
30560
|
exports2.useEffectEvent = function(callback) {
|
|
30543
30561
|
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
@@ -30545,17 +30563,17 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30545
30563
|
exports2.useId = function() {
|
|
30546
30564
|
return ReactSharedInternals.H.useId();
|
|
30547
30565
|
};
|
|
30548
|
-
exports2.useImperativeHandle = function(ref,
|
|
30549
|
-
return ReactSharedInternals.H.useImperativeHandle(ref,
|
|
30566
|
+
exports2.useImperativeHandle = function(ref, create2, deps) {
|
|
30567
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create2, deps);
|
|
30550
30568
|
};
|
|
30551
|
-
exports2.useInsertionEffect = function(
|
|
30552
|
-
return ReactSharedInternals.H.useInsertionEffect(
|
|
30569
|
+
exports2.useInsertionEffect = function(create2, deps) {
|
|
30570
|
+
return ReactSharedInternals.H.useInsertionEffect(create2, deps);
|
|
30553
30571
|
};
|
|
30554
|
-
exports2.useLayoutEffect = function(
|
|
30555
|
-
return ReactSharedInternals.H.useLayoutEffect(
|
|
30572
|
+
exports2.useLayoutEffect = function(create2, deps) {
|
|
30573
|
+
return ReactSharedInternals.H.useLayoutEffect(create2, deps);
|
|
30556
30574
|
};
|
|
30557
|
-
exports2.useMemo = function(
|
|
30558
|
-
return ReactSharedInternals.H.useMemo(
|
|
30575
|
+
exports2.useMemo = function(create2, deps) {
|
|
30576
|
+
return ReactSharedInternals.H.useMemo(create2, deps);
|
|
30559
30577
|
};
|
|
30560
30578
|
exports2.useOptimistic = useOptimistic;
|
|
30561
30579
|
exports2.useReducer = function(reducer, initialArg, init) {
|
|
@@ -30658,8 +30676,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30658
30676
|
});
|
|
30659
30677
|
} else {
|
|
30660
30678
|
var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;
|
|
30661
|
-
var
|
|
30662
|
-
var functionName =
|
|
30679
|
+
var matches2 = line.match(functionNameRegex);
|
|
30680
|
+
var functionName = matches2 && matches2[1] ? matches2[1] : undefined;
|
|
30663
30681
|
var locationParts = this.extractLocation(line.replace(functionNameRegex, ""));
|
|
30664
30682
|
return new StackFrame({
|
|
30665
30683
|
functionName,
|
|
@@ -30687,28 +30705,28 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30687
30705
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
|
|
30688
30706
|
var lines = e.message.split(`
|
|
30689
30707
|
`);
|
|
30690
|
-
var
|
|
30708
|
+
var result2 = [];
|
|
30691
30709
|
for (var i2 = 2, len = lines.length;i2 < len; i2 += 2) {
|
|
30692
30710
|
var match = lineRE.exec(lines[i2]);
|
|
30693
30711
|
if (match) {
|
|
30694
|
-
|
|
30712
|
+
result2.push(new StackFrame({
|
|
30695
30713
|
fileName: match[2],
|
|
30696
30714
|
lineNumber: match[1],
|
|
30697
30715
|
source: lines[i2]
|
|
30698
30716
|
}));
|
|
30699
30717
|
}
|
|
30700
30718
|
}
|
|
30701
|
-
return
|
|
30719
|
+
return result2;
|
|
30702
30720
|
},
|
|
30703
30721
|
parseOpera10: function ErrorStackParser$$parseOpera10(e) {
|
|
30704
30722
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i;
|
|
30705
30723
|
var lines = e.stacktrace.split(`
|
|
30706
30724
|
`);
|
|
30707
|
-
var
|
|
30725
|
+
var result2 = [];
|
|
30708
30726
|
for (var i2 = 0, len = lines.length;i2 < len; i2 += 2) {
|
|
30709
30727
|
var match = lineRE.exec(lines[i2]);
|
|
30710
30728
|
if (match) {
|
|
30711
|
-
|
|
30729
|
+
result2.push(new StackFrame({
|
|
30712
30730
|
functionName: match[3] || undefined,
|
|
30713
30731
|
fileName: match[2],
|
|
30714
30732
|
lineNumber: match[1],
|
|
@@ -30716,7 +30734,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30716
30734
|
}));
|
|
30717
30735
|
}
|
|
30718
30736
|
}
|
|
30719
|
-
return
|
|
30737
|
+
return result2;
|
|
30720
30738
|
},
|
|
30721
30739
|
parseOpera11: function ErrorStackParser$$parseOpera11(error) {
|
|
30722
30740
|
var filtered = error.stack.split(`
|
|
@@ -30819,7 +30837,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30819
30837
|
options2 = {};
|
|
30820
30838
|
if (options2.max && (typeof options2.max !== "number" || options2.max < 0))
|
|
30821
30839
|
throw new TypeError("max must be a non-negative number");
|
|
30822
|
-
var
|
|
30840
|
+
var max2 = this[MAX] = options2.max || Infinity;
|
|
30823
30841
|
var lc = options2.length || naiveLength;
|
|
30824
30842
|
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
30825
30843
|
this[ALLOW_STALE] = options2.stale || false;
|
|
@@ -30833,40 +30851,40 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30833
30851
|
}
|
|
30834
30852
|
return _createClass(LRUCache2, [{
|
|
30835
30853
|
key: "max",
|
|
30836
|
-
get: function
|
|
30854
|
+
get: function get2() {
|
|
30837
30855
|
return this[MAX];
|
|
30838
30856
|
},
|
|
30839
|
-
set: function
|
|
30857
|
+
set: function set3(mL) {
|
|
30840
30858
|
if (typeof mL !== "number" || mL < 0)
|
|
30841
30859
|
throw new TypeError("max must be a non-negative number");
|
|
30842
30860
|
this[MAX] = mL || Infinity;
|
|
30843
|
-
|
|
30861
|
+
trim2(this);
|
|
30844
30862
|
}
|
|
30845
30863
|
}, {
|
|
30846
30864
|
key: "allowStale",
|
|
30847
|
-
get: function
|
|
30865
|
+
get: function get2() {
|
|
30848
30866
|
return this[ALLOW_STALE];
|
|
30849
30867
|
},
|
|
30850
|
-
set: function
|
|
30868
|
+
set: function set3(allowStale) {
|
|
30851
30869
|
this[ALLOW_STALE] = !!allowStale;
|
|
30852
30870
|
}
|
|
30853
30871
|
}, {
|
|
30854
30872
|
key: "maxAge",
|
|
30855
|
-
get: function
|
|
30873
|
+
get: function get2() {
|
|
30856
30874
|
return this[MAX_AGE];
|
|
30857
30875
|
},
|
|
30858
|
-
set: function
|
|
30876
|
+
set: function set3(mA) {
|
|
30859
30877
|
if (typeof mA !== "number")
|
|
30860
30878
|
throw new TypeError("maxAge must be a non-negative number");
|
|
30861
30879
|
this[MAX_AGE] = mA;
|
|
30862
|
-
|
|
30880
|
+
trim2(this);
|
|
30863
30881
|
}
|
|
30864
30882
|
}, {
|
|
30865
30883
|
key: "lengthCalculator",
|
|
30866
|
-
get: function
|
|
30884
|
+
get: function get2() {
|
|
30867
30885
|
return this[LENGTH_CALCULATOR];
|
|
30868
30886
|
},
|
|
30869
|
-
set: function
|
|
30887
|
+
set: function set3(lC) {
|
|
30870
30888
|
var _this = this;
|
|
30871
30889
|
if (typeof lC !== "function")
|
|
30872
30890
|
lC = naiveLength;
|
|
@@ -30878,16 +30896,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30878
30896
|
_this[LENGTH] += hit.length;
|
|
30879
30897
|
});
|
|
30880
30898
|
}
|
|
30881
|
-
|
|
30899
|
+
trim2(this);
|
|
30882
30900
|
}
|
|
30883
30901
|
}, {
|
|
30884
30902
|
key: "length",
|
|
30885
|
-
get: function
|
|
30903
|
+
get: function get2() {
|
|
30886
30904
|
return this[LENGTH];
|
|
30887
30905
|
}
|
|
30888
30906
|
}, {
|
|
30889
30907
|
key: "itemCount",
|
|
30890
|
-
get: function
|
|
30908
|
+
get: function get2() {
|
|
30891
30909
|
return this[LRU_LIST].length;
|
|
30892
30910
|
}
|
|
30893
30911
|
}, {
|
|
@@ -30902,7 +30920,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30902
30920
|
}
|
|
30903
30921
|
}, {
|
|
30904
30922
|
key: "forEach",
|
|
30905
|
-
value: function
|
|
30923
|
+
value: function forEach3(fn, thisp) {
|
|
30906
30924
|
thisp = thisp || this;
|
|
30907
30925
|
for (var walker = this[LRU_LIST].head;walker !== null; ) {
|
|
30908
30926
|
var next = walker.next;
|
|
@@ -30912,14 +30930,14 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30912
30930
|
}
|
|
30913
30931
|
}, {
|
|
30914
30932
|
key: "keys",
|
|
30915
|
-
value: function
|
|
30933
|
+
value: function keys2() {
|
|
30916
30934
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
30917
30935
|
return k.key;
|
|
30918
30936
|
});
|
|
30919
30937
|
}
|
|
30920
30938
|
}, {
|
|
30921
30939
|
key: "values",
|
|
30922
|
-
value: function
|
|
30940
|
+
value: function values2() {
|
|
30923
30941
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
30924
30942
|
return k.value;
|
|
30925
30943
|
});
|
|
@@ -30958,11 +30976,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30958
30976
|
}
|
|
30959
30977
|
}, {
|
|
30960
30978
|
key: "set",
|
|
30961
|
-
value: function
|
|
30979
|
+
value: function set3(key, value, maxAge) {
|
|
30962
30980
|
maxAge = maxAge || this[MAX_AGE];
|
|
30963
30981
|
if (maxAge && typeof maxAge !== "number")
|
|
30964
30982
|
throw new TypeError("maxAge must be a number");
|
|
30965
|
-
var
|
|
30983
|
+
var now2 = maxAge ? Date.now() : 0;
|
|
30966
30984
|
var len = this[LENGTH_CALCULATOR](value, key);
|
|
30967
30985
|
if (this[CACHE].has(key)) {
|
|
30968
30986
|
if (len > this[MAX]) {
|
|
@@ -30975,16 +30993,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30975
30993
|
if (!this[NO_DISPOSE_ON_SET])
|
|
30976
30994
|
this[DISPOSE](key, item.value);
|
|
30977
30995
|
}
|
|
30978
|
-
item.now =
|
|
30996
|
+
item.now = now2;
|
|
30979
30997
|
item.maxAge = maxAge;
|
|
30980
30998
|
item.value = value;
|
|
30981
30999
|
this[LENGTH] += len - item.length;
|
|
30982
31000
|
item.length = len;
|
|
30983
31001
|
this.get(key);
|
|
30984
|
-
|
|
31002
|
+
trim2(this);
|
|
30985
31003
|
return true;
|
|
30986
31004
|
}
|
|
30987
|
-
var hit = new Entry(key, value, len,
|
|
31005
|
+
var hit = new Entry(key, value, len, now2, maxAge);
|
|
30988
31006
|
if (hit.length > this[MAX]) {
|
|
30989
31007
|
if (this[DISPOSE])
|
|
30990
31008
|
this[DISPOSE](key, value);
|
|
@@ -30993,12 +31011,12 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
30993
31011
|
this[LENGTH] += hit.length;
|
|
30994
31012
|
this[LRU_LIST].unshift(hit);
|
|
30995
31013
|
this[CACHE].set(key, this[LRU_LIST].head);
|
|
30996
|
-
|
|
31014
|
+
trim2(this);
|
|
30997
31015
|
return true;
|
|
30998
31016
|
}
|
|
30999
31017
|
}, {
|
|
31000
31018
|
key: "has",
|
|
31001
|
-
value: function
|
|
31019
|
+
value: function has2(key) {
|
|
31002
31020
|
if (!this[CACHE].has(key))
|
|
31003
31021
|
return false;
|
|
31004
31022
|
var hit = this[CACHE].get(key).value;
|
|
@@ -31006,7 +31024,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31006
31024
|
}
|
|
31007
31025
|
}, {
|
|
31008
31026
|
key: "get",
|
|
31009
|
-
value: function
|
|
31027
|
+
value: function get2(key) {
|
|
31010
31028
|
return _get(this, key, true);
|
|
31011
31029
|
}
|
|
31012
31030
|
}, {
|
|
@@ -31032,14 +31050,14 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31032
31050
|
key: "load",
|
|
31033
31051
|
value: function load2(arr) {
|
|
31034
31052
|
this.reset();
|
|
31035
|
-
var
|
|
31053
|
+
var now2 = Date.now();
|
|
31036
31054
|
for (var l = arr.length - 1;l >= 0; l--) {
|
|
31037
31055
|
var hit = arr[l];
|
|
31038
31056
|
var expiresAt = hit.e || 0;
|
|
31039
31057
|
if (expiresAt === 0)
|
|
31040
31058
|
this.set(hit.k, hit.v);
|
|
31041
31059
|
else {
|
|
31042
|
-
var maxAge = expiresAt -
|
|
31060
|
+
var maxAge = expiresAt - now2;
|
|
31043
31061
|
if (maxAge > 0) {
|
|
31044
31062
|
this.set(hit.k, hit.v, maxAge);
|
|
31045
31063
|
}
|
|
@@ -31080,7 +31098,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31080
31098
|
var diff = Date.now() - hit.now;
|
|
31081
31099
|
return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
|
|
31082
31100
|
};
|
|
31083
|
-
var
|
|
31101
|
+
var trim2 = function trim3(self2) {
|
|
31084
31102
|
if (self2[LENGTH] > self2[MAX]) {
|
|
31085
31103
|
for (var walker = self2[LRU_LIST].tail;self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
|
31086
31104
|
var prev = walker.prev;
|
|
@@ -31099,12 +31117,12 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31099
31117
|
self2[LRU_LIST].removeNode(node);
|
|
31100
31118
|
}
|
|
31101
31119
|
};
|
|
31102
|
-
var Entry = /* @__PURE__ */ _createClass(function Entry2(key, value, length,
|
|
31120
|
+
var Entry = /* @__PURE__ */ _createClass(function Entry2(key, value, length, now2, maxAge) {
|
|
31103
31121
|
_classCallCheck(this, Entry2);
|
|
31104
31122
|
this.key = key;
|
|
31105
31123
|
this.value = value;
|
|
31106
31124
|
this.length = length;
|
|
31107
|
-
this.now =
|
|
31125
|
+
this.now = now2;
|
|
31108
31126
|
this.maxAge = maxAge || 0;
|
|
31109
31127
|
});
|
|
31110
31128
|
var forEachStep = function forEachStep2(self2, fn, node, thisp) {
|
|
@@ -31250,16 +31268,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31250
31268
|
process12.argv = [];
|
|
31251
31269
|
process12.version = "";
|
|
31252
31270
|
process12.versions = {};
|
|
31253
|
-
function
|
|
31254
|
-
process12.on =
|
|
31255
|
-
process12.addListener =
|
|
31256
|
-
process12.once =
|
|
31257
|
-
process12.off =
|
|
31258
|
-
process12.removeListener =
|
|
31259
|
-
process12.removeAllListeners =
|
|
31260
|
-
process12.emit =
|
|
31261
|
-
process12.prependListener =
|
|
31262
|
-
process12.prependOnceListener =
|
|
31271
|
+
function noop2() {}
|
|
31272
|
+
process12.on = noop2;
|
|
31273
|
+
process12.addListener = noop2;
|
|
31274
|
+
process12.once = noop2;
|
|
31275
|
+
process12.off = noop2;
|
|
31276
|
+
process12.removeListener = noop2;
|
|
31277
|
+
process12.removeAllListeners = noop2;
|
|
31278
|
+
process12.emit = noop2;
|
|
31279
|
+
process12.prependListener = noop2;
|
|
31280
|
+
process12.prependOnceListener = noop2;
|
|
31263
31281
|
process12.listeners = function(name) {
|
|
31264
31282
|
return [];
|
|
31265
31283
|
};
|
|
@@ -31338,7 +31356,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31338
31356
|
throw new TypeError("Eval Origin must be an Object or StackFrame");
|
|
31339
31357
|
}
|
|
31340
31358
|
},
|
|
31341
|
-
toString: function
|
|
31359
|
+
toString: function toString3() {
|
|
31342
31360
|
var fileName = this.getFileName() || "";
|
|
31343
31361
|
var lineNumber = this.getLineNumber() || "";
|
|
31344
31362
|
var columnNumber = this.getColumnNumber() || "";
|
|
@@ -31432,7 +31450,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31432
31450
|
return t3[e2] = r2;
|
|
31433
31451
|
};
|
|
31434
31452
|
}
|
|
31435
|
-
function
|
|
31453
|
+
function wrap2(t2, e2, r2, n2) {
|
|
31436
31454
|
var i3 = e2 && e2.prototype instanceof Generator ? e2 : Generator, a2 = Object.create(i3.prototype), c2 = new Context(n2 || []);
|
|
31437
31455
|
return o(a2, "_invoke", { value: makeInvokeMethod(t2, r2, c2) }), a2;
|
|
31438
31456
|
}
|
|
@@ -31443,7 +31461,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31443
31461
|
return { type: "throw", arg: t3 };
|
|
31444
31462
|
}
|
|
31445
31463
|
}
|
|
31446
|
-
e.wrap =
|
|
31464
|
+
e.wrap = wrap2;
|
|
31447
31465
|
var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
|
|
31448
31466
|
function Generator() {}
|
|
31449
31467
|
function GeneratorFunction() {}
|
|
@@ -31452,7 +31470,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31452
31470
|
define2(p, a, function() {
|
|
31453
31471
|
return this;
|
|
31454
31472
|
});
|
|
31455
|
-
var d = Object.getPrototypeOf, v = d && d(d(
|
|
31473
|
+
var d = Object.getPrototypeOf, v = d && d(d(values2([])));
|
|
31456
31474
|
v && v !== r && n.call(v, a) && (p = v);
|
|
31457
31475
|
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
31458
31476
|
function defineIteratorMethods(t2) {
|
|
@@ -31463,18 +31481,18 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31463
31481
|
});
|
|
31464
31482
|
}
|
|
31465
31483
|
function AsyncIterator(t2, e2) {
|
|
31466
|
-
function
|
|
31484
|
+
function invoke2(r3, o2, i3, a2) {
|
|
31467
31485
|
var c2 = tryCatch(t2[r3], t2, o2);
|
|
31468
31486
|
if (c2.type !== "throw") {
|
|
31469
31487
|
var u2 = c2.arg, h2 = u2.value;
|
|
31470
31488
|
return h2 && _typeof(h2) == "object" && n.call(h2, "__await") ? e2.resolve(h2.__await).then(function(t3) {
|
|
31471
|
-
|
|
31489
|
+
invoke2("next", t3, i3, a2);
|
|
31472
31490
|
}, function(t3) {
|
|
31473
|
-
|
|
31491
|
+
invoke2("throw", t3, i3, a2);
|
|
31474
31492
|
}) : e2.resolve(h2).then(function(t3) {
|
|
31475
31493
|
u2.value = t3, i3(u2);
|
|
31476
31494
|
}, function(t3) {
|
|
31477
|
-
return
|
|
31495
|
+
return invoke2("throw", t3, i3, a2);
|
|
31478
31496
|
});
|
|
31479
31497
|
}
|
|
31480
31498
|
a2(c2.arg);
|
|
@@ -31483,7 +31501,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31483
31501
|
o(this, "_invoke", { value: function value(t3, n2) {
|
|
31484
31502
|
function callInvokeWithMethodAndArg() {
|
|
31485
31503
|
return new e2(function(e3, r3) {
|
|
31486
|
-
|
|
31504
|
+
invoke2(t3, n2, e3, r3);
|
|
31487
31505
|
});
|
|
31488
31506
|
}
|
|
31489
31507
|
return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
@@ -31549,7 +31567,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31549
31567
|
function Context(t2) {
|
|
31550
31568
|
this.tryEntries = [{ tryLoc: "root" }], t2.forEach(pushTryEntry, this), this.reset(true);
|
|
31551
31569
|
}
|
|
31552
|
-
function
|
|
31570
|
+
function values2(e2) {
|
|
31553
31571
|
if (e2 || e2 === "") {
|
|
31554
31572
|
var r2 = e2[a];
|
|
31555
31573
|
if (r2)
|
|
@@ -31579,7 +31597,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31579
31597
|
return this;
|
|
31580
31598
|
}), e.AsyncIterator = AsyncIterator, e.async = function(t2, r2, n2, o2, i3) {
|
|
31581
31599
|
i3 === undefined && (i3 = Promise);
|
|
31582
|
-
var a2 = new AsyncIterator(
|
|
31600
|
+
var a2 = new AsyncIterator(wrap2(t2, r2, n2, o2), i3);
|
|
31583
31601
|
return e.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
|
|
31584
31602
|
return t3.done ? t3.value : a2.next();
|
|
31585
31603
|
});
|
|
@@ -31599,7 +31617,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31599
31617
|
}
|
|
31600
31618
|
return next.done = true, next;
|
|
31601
31619
|
};
|
|
31602
|
-
}, e.values =
|
|
31620
|
+
}, e.values = values2, Context.prototype = { constructor: Context, reset: function reset(e2) {
|
|
31603
31621
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e2)
|
|
31604
31622
|
for (var r2 in this)
|
|
31605
31623
|
r2.charAt(0) === "t" && n.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
|
|
@@ -31673,7 +31691,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31673
31691
|
}
|
|
31674
31692
|
throw Error("illegal catch attempt");
|
|
31675
31693
|
}, delegateYield: function delegateYield(e2, r2, n2) {
|
|
31676
|
-
return this.delegate = { iterator:
|
|
31694
|
+
return this.delegate = { iterator: values2(e2), resultName: r2, nextLoc: n2 }, this.method === "next" && (this.arg = t), y;
|
|
31677
31695
|
} }, e;
|
|
31678
31696
|
}
|
|
31679
31697
|
module2.exports = function(Yallist) {
|
|
@@ -31757,11 +31775,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31757
31775
|
if (node.list) {
|
|
31758
31776
|
node.list.removeNode(node);
|
|
31759
31777
|
}
|
|
31760
|
-
var
|
|
31778
|
+
var head3 = this.head;
|
|
31761
31779
|
node.list = this;
|
|
31762
|
-
node.next =
|
|
31763
|
-
if (
|
|
31764
|
-
|
|
31780
|
+
node.next = head3;
|
|
31781
|
+
if (head3) {
|
|
31782
|
+
head3.prev = node;
|
|
31765
31783
|
}
|
|
31766
31784
|
this.head = node;
|
|
31767
31785
|
if (!this.tail) {
|
|
@@ -31776,11 +31794,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31776
31794
|
if (node.list) {
|
|
31777
31795
|
node.list.removeNode(node);
|
|
31778
31796
|
}
|
|
31779
|
-
var
|
|
31797
|
+
var tail2 = this.tail;
|
|
31780
31798
|
node.list = this;
|
|
31781
|
-
node.prev =
|
|
31782
|
-
if (
|
|
31783
|
-
|
|
31799
|
+
node.prev = tail2;
|
|
31800
|
+
if (tail2) {
|
|
31801
|
+
tail2.next = node;
|
|
31784
31802
|
}
|
|
31785
31803
|
this.tail = node;
|
|
31786
31804
|
if (!this.head) {
|
|
@@ -31876,11 +31894,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31876
31894
|
}
|
|
31877
31895
|
return res;
|
|
31878
31896
|
};
|
|
31879
|
-
Yallist.prototype.reduce = function(fn,
|
|
31897
|
+
Yallist.prototype.reduce = function(fn, initial2) {
|
|
31880
31898
|
var acc;
|
|
31881
31899
|
var walker = this.head;
|
|
31882
31900
|
if (arguments.length > 1) {
|
|
31883
|
-
acc =
|
|
31901
|
+
acc = initial2;
|
|
31884
31902
|
} else if (this.head) {
|
|
31885
31903
|
walker = this.head.next;
|
|
31886
31904
|
acc = this.head.value;
|
|
@@ -31893,11 +31911,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
31893
31911
|
}
|
|
31894
31912
|
return acc;
|
|
31895
31913
|
};
|
|
31896
|
-
Yallist.prototype.reduceReverse = function(fn,
|
|
31914
|
+
Yallist.prototype.reduceReverse = function(fn, initial2) {
|
|
31897
31915
|
var acc;
|
|
31898
31916
|
var walker = this.tail;
|
|
31899
31917
|
if (arguments.length > 1) {
|
|
31900
|
-
acc =
|
|
31918
|
+
acc = initial2;
|
|
31901
31919
|
} else if (this.tail) {
|
|
31902
31920
|
walker = this.tail.prev;
|
|
31903
31921
|
acc = this.tail.value;
|
|
@@ -32007,15 +32025,15 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
32007
32025
|
return ret;
|
|
32008
32026
|
};
|
|
32009
32027
|
Yallist.prototype.reverse = function() {
|
|
32010
|
-
var
|
|
32011
|
-
var
|
|
32012
|
-
for (var walker =
|
|
32028
|
+
var head3 = this.head;
|
|
32029
|
+
var tail2 = this.tail;
|
|
32030
|
+
for (var walker = head3;walker !== null; walker = walker.prev) {
|
|
32013
32031
|
var p = walker.prev;
|
|
32014
32032
|
walker.prev = walker.next;
|
|
32015
32033
|
walker.next = p;
|
|
32016
32034
|
}
|
|
32017
|
-
this.head =
|
|
32018
|
-
this.tail =
|
|
32035
|
+
this.head = tail2;
|
|
32036
|
+
this.tail = head3;
|
|
32019
32037
|
return this;
|
|
32020
32038
|
};
|
|
32021
32039
|
function insert(self2, node, value) {
|
|
@@ -32367,13 +32385,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32367
32385
|
var res = compareVersions(v1, v2);
|
|
32368
32386
|
return operatorResMap[operator].includes(res);
|
|
32369
32387
|
};
|
|
32370
|
-
var satisfies2 = function satisfies3(version,
|
|
32371
|
-
var m =
|
|
32388
|
+
var satisfies2 = function satisfies3(version, range2) {
|
|
32389
|
+
var m = range2.match(/^([<>=~^]+)/);
|
|
32372
32390
|
var op = m ? m[1] : "=";
|
|
32373
32391
|
if (op !== "^" && op !== "~")
|
|
32374
|
-
return compare(version,
|
|
32392
|
+
return compare(version, range2, op);
|
|
32375
32393
|
var _validateAndParse = validateAndParse(version), _validateAndParse2 = _slicedToArray(_validateAndParse, 5), v1 = _validateAndParse2[0], v2 = _validateAndParse2[1], v3 = _validateAndParse2[2], vp = _validateAndParse2[4];
|
|
32376
|
-
var _validateAndParse3 = validateAndParse(
|
|
32394
|
+
var _validateAndParse3 = validateAndParse(range2), _validateAndParse4 = _slicedToArray(_validateAndParse3, 5), r1 = _validateAndParse4[0], r2 = _validateAndParse4[1], r3 = _validateAndParse4[2], rp = _validateAndParse4[4];
|
|
32377
32395
|
var v = [v1, v2, v3];
|
|
32378
32396
|
var r = [r1, r2 !== null && r2 !== undefined ? r2 : "x", r3 !== null && r3 !== undefined ? r3 : "x"];
|
|
32379
32397
|
if (rp) {
|
|
@@ -32573,8 +32591,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32573
32591
|
var ComponentFilterHOC = 4;
|
|
32574
32592
|
var ComponentFilterEnvironmentName = 5;
|
|
32575
32593
|
var StrictMode = 1;
|
|
32576
|
-
var
|
|
32577
|
-
const src_isArray =
|
|
32594
|
+
var isArray2 = Array.isArray;
|
|
32595
|
+
const src_isArray = isArray2;
|
|
32578
32596
|
var process12 = __webpack_require__(169);
|
|
32579
32597
|
function ownKeys(e, r) {
|
|
32580
32598
|
var t = Object.keys(e);
|
|
@@ -32681,14 +32699,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32681
32699
|
}
|
|
32682
32700
|
}
|
|
32683
32701
|
function getAllEnumerableKeys(obj) {
|
|
32684
|
-
var
|
|
32702
|
+
var keys2 = new Set;
|
|
32685
32703
|
var current = obj;
|
|
32686
32704
|
var _loop = function _loop2() {
|
|
32687
32705
|
var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current)));
|
|
32688
32706
|
var descriptors = Object.getOwnPropertyDescriptors(current);
|
|
32689
32707
|
currentKeys.forEach(function(key) {
|
|
32690
32708
|
if (descriptors[key].enumerable) {
|
|
32691
|
-
|
|
32709
|
+
keys2.add(key);
|
|
32692
32710
|
}
|
|
32693
32711
|
});
|
|
32694
32712
|
current = Object.getPrototypeOf(current);
|
|
@@ -32696,7 +32714,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
32696
32714
|
while (current != null) {
|
|
32697
32715
|
_loop();
|
|
32698
32716
|
}
|
|
32699
|
-
return
|
|
32717
|
+
return keys2;
|
|
32700
32718
|
}
|
|
32701
32719
|
function getWrappedDisplayName(outerType, innerType, wrapperName, fallbackName) {
|
|
32702
32720
|
var displayName = outerType === null || outerType === undefined ? undefined : outerType.displayName;
|
|
@@ -33006,10 +33024,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33006
33024
|
case ElementTypeMemo:
|
|
33007
33025
|
case ElementTypeVirtual:
|
|
33008
33026
|
if (displayName.indexOf("(") >= 0) {
|
|
33009
|
-
var
|
|
33010
|
-
if (
|
|
33011
|
-
displayName =
|
|
33012
|
-
hocDisplayNames =
|
|
33027
|
+
var matches2 = displayName.match(/[^()]+/g);
|
|
33028
|
+
if (matches2 != null) {
|
|
33029
|
+
displayName = matches2.pop();
|
|
33030
|
+
hocDisplayNames = matches2;
|
|
33013
33031
|
}
|
|
33014
33032
|
}
|
|
33015
33033
|
break;
|
|
@@ -33050,14 +33068,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33050
33068
|
}
|
|
33051
33069
|
function deletePathInObject(object, path10) {
|
|
33052
33070
|
var length = path10.length;
|
|
33053
|
-
var
|
|
33071
|
+
var last2 = path10[length - 1];
|
|
33054
33072
|
if (object != null) {
|
|
33055
33073
|
var parent = utils_getInObject(object, path10.slice(0, length - 1));
|
|
33056
33074
|
if (parent) {
|
|
33057
33075
|
if (src_isArray(parent)) {
|
|
33058
|
-
parent.splice(
|
|
33076
|
+
parent.splice(last2, 1);
|
|
33059
33077
|
} else {
|
|
33060
|
-
delete parent[
|
|
33078
|
+
delete parent[last2];
|
|
33061
33079
|
}
|
|
33062
33080
|
}
|
|
33063
33081
|
}
|
|
@@ -33080,15 +33098,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33080
33098
|
}
|
|
33081
33099
|
function utils_setInObject(object, path10, value) {
|
|
33082
33100
|
var length = path10.length;
|
|
33083
|
-
var
|
|
33101
|
+
var last2 = path10[length - 1];
|
|
33084
33102
|
if (object != null) {
|
|
33085
33103
|
var parent = utils_getInObject(object, path10.slice(0, length - 1));
|
|
33086
33104
|
if (parent) {
|
|
33087
|
-
parent[
|
|
33105
|
+
parent[last2] = value;
|
|
33088
33106
|
}
|
|
33089
33107
|
}
|
|
33090
33108
|
}
|
|
33091
|
-
function
|
|
33109
|
+
function isError2(data) {
|
|
33092
33110
|
if ("name" in data && "message" in data) {
|
|
33093
33111
|
while (data) {
|
|
33094
33112
|
if (Object.prototype.toString.call(data) === "[object Error]") {
|
|
@@ -33147,7 +33165,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33147
33165
|
return "regexp";
|
|
33148
33166
|
} else if (typeof data.then === "function") {
|
|
33149
33167
|
return "thenable";
|
|
33150
|
-
} else if (
|
|
33168
|
+
} else if (isError2(data)) {
|
|
33151
33169
|
return "error";
|
|
33152
33170
|
} else {
|
|
33153
33171
|
var toStringValue = Object.prototype.toString.call(data);
|
|
@@ -33157,7 +33175,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33157
33175
|
return "html_all_collection";
|
|
33158
33176
|
}
|
|
33159
33177
|
}
|
|
33160
|
-
if (!
|
|
33178
|
+
if (!isPlainObject2(data)) {
|
|
33161
33179
|
return "class_instance";
|
|
33162
33180
|
}
|
|
33163
33181
|
return "object";
|
|
@@ -33416,7 +33434,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33416
33434
|
}
|
|
33417
33435
|
case "thenable":
|
|
33418
33436
|
var displayName;
|
|
33419
|
-
if (
|
|
33437
|
+
if (isPlainObject2(data)) {
|
|
33420
33438
|
displayName = "Thenable";
|
|
33421
33439
|
} else {
|
|
33422
33440
|
var _resolvedConstructorName = data.constructor.name;
|
|
@@ -33451,10 +33469,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33451
33469
|
}
|
|
33452
33470
|
case "object":
|
|
33453
33471
|
if (showFormattedValue) {
|
|
33454
|
-
var
|
|
33472
|
+
var keys2 = Array.from(getAllEnumerableKeys(data)).sort(alphaSortKeys);
|
|
33455
33473
|
var _formatted9 = "";
|
|
33456
|
-
for (var _i3 = 0;_i3 <
|
|
33457
|
-
var _key =
|
|
33474
|
+
for (var _i3 = 0;_i3 < keys2.length; _i3++) {
|
|
33475
|
+
var _key = keys2[_i3];
|
|
33458
33476
|
if (_i3 > 0) {
|
|
33459
33477
|
_formatted9 += ", ";
|
|
33460
33478
|
}
|
|
@@ -33484,7 +33502,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33484
33502
|
}
|
|
33485
33503
|
}
|
|
33486
33504
|
}
|
|
33487
|
-
var
|
|
33505
|
+
var isPlainObject2 = function isPlainObject3(object) {
|
|
33488
33506
|
var objectPrototype = Object.getPrototypeOf(object);
|
|
33489
33507
|
if (!objectPrototype)
|
|
33490
33508
|
return true;
|
|
@@ -33534,19 +33552,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33534
33552
|
sessionStorageRemoveItem(SESSION_STORAGE_RECORD_TIMELINE_KEY);
|
|
33535
33553
|
}
|
|
33536
33554
|
function unionOfTwoArrays(a, b) {
|
|
33537
|
-
var
|
|
33555
|
+
var result2 = a;
|
|
33538
33556
|
for (var i2 = 0;i2 < b.length; i2++) {
|
|
33539
33557
|
var value = b[i2];
|
|
33540
33558
|
if (a.indexOf(value) === -1) {
|
|
33541
|
-
if (
|
|
33542
|
-
|
|
33559
|
+
if (result2 === a) {
|
|
33560
|
+
result2 = a.slice(0);
|
|
33543
33561
|
}
|
|
33544
|
-
|
|
33562
|
+
result2.push(value);
|
|
33545
33563
|
}
|
|
33546
33564
|
}
|
|
33547
|
-
return
|
|
33565
|
+
return result2;
|
|
33548
33566
|
}
|
|
33549
|
-
function
|
|
33567
|
+
function noop2() {}
|
|
33550
33568
|
function hydration_ownKeys(e, r) {
|
|
33551
33569
|
var t = Object.keys(e);
|
|
33552
33570
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -33816,7 +33834,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33816
33834
|
};
|
|
33817
33835
|
}
|
|
33818
33836
|
if (data.status === "resolved_model" || data.status === "resolve_module") {
|
|
33819
|
-
data.then(
|
|
33837
|
+
data.then(noop2);
|
|
33820
33838
|
}
|
|
33821
33839
|
switch (data.status) {
|
|
33822
33840
|
case "fulfilled": {
|
|
@@ -33958,14 +33976,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33958
33976
|
}
|
|
33959
33977
|
if (value !== null && data.unserializable.length > 0) {
|
|
33960
33978
|
var unserializablePath = data.unserializable[0];
|
|
33961
|
-
var
|
|
33979
|
+
var isMatch2 = unserializablePath.length === path10.length;
|
|
33962
33980
|
for (var i2 = 0;i2 < path10.length; i2++) {
|
|
33963
33981
|
if (path10[i2] !== unserializablePath[i2]) {
|
|
33964
|
-
|
|
33982
|
+
isMatch2 = false;
|
|
33965
33983
|
break;
|
|
33966
33984
|
}
|
|
33967
33985
|
}
|
|
33968
|
-
if (
|
|
33986
|
+
if (isMatch2) {
|
|
33969
33987
|
upgradeUnserializable(value, value);
|
|
33970
33988
|
}
|
|
33971
33989
|
}
|
|
@@ -33974,20 +33992,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33974
33992
|
function hydrate(object, cleaned, unserializable) {
|
|
33975
33993
|
cleaned.forEach(function(path10) {
|
|
33976
33994
|
var length = path10.length;
|
|
33977
|
-
var
|
|
33995
|
+
var last2 = path10[length - 1];
|
|
33978
33996
|
var parent = getInObject(object, path10.slice(0, length - 1));
|
|
33979
|
-
if (!parent || !parent.hasOwnProperty(
|
|
33997
|
+
if (!parent || !parent.hasOwnProperty(last2)) {
|
|
33980
33998
|
return;
|
|
33981
33999
|
}
|
|
33982
|
-
var value = parent[
|
|
34000
|
+
var value = parent[last2];
|
|
33983
34001
|
if (!value) {
|
|
33984
34002
|
return;
|
|
33985
34003
|
} else if (value.type === "infinity") {
|
|
33986
|
-
parent[
|
|
34004
|
+
parent[last2] = Infinity;
|
|
33987
34005
|
} else if (value.type === "nan") {
|
|
33988
|
-
parent[
|
|
34006
|
+
parent[last2] = NaN;
|
|
33989
34007
|
} else if (value.type === "undefined") {
|
|
33990
|
-
parent[
|
|
34008
|
+
parent[last2] = undefined;
|
|
33991
34009
|
} else {
|
|
33992
34010
|
var replaced = {};
|
|
33993
34011
|
replaced[meta.inspectable] = !!value.inspectable;
|
|
@@ -33998,20 +34016,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33998
34016
|
replaced[meta.size] = value.size;
|
|
33999
34017
|
replaced[meta.readonly] = !!value.readonly;
|
|
34000
34018
|
replaced[meta.type] = value.type;
|
|
34001
|
-
parent[
|
|
34019
|
+
parent[last2] = replaced;
|
|
34002
34020
|
}
|
|
34003
34021
|
});
|
|
34004
34022
|
unserializable.forEach(function(path10) {
|
|
34005
34023
|
var length = path10.length;
|
|
34006
|
-
var
|
|
34024
|
+
var last2 = path10[length - 1];
|
|
34007
34025
|
var parent = getInObject(object, path10.slice(0, length - 1));
|
|
34008
|
-
if (!parent || !parent.hasOwnProperty(
|
|
34026
|
+
if (!parent || !parent.hasOwnProperty(last2)) {
|
|
34009
34027
|
return;
|
|
34010
34028
|
}
|
|
34011
|
-
var node = parent[
|
|
34029
|
+
var node = parent[last2];
|
|
34012
34030
|
var replacement = hydration_objectSpread({}, node);
|
|
34013
34031
|
upgradeUnserializable(replacement, node);
|
|
34014
|
-
parent[
|
|
34032
|
+
parent[last2] = replacement;
|
|
34015
34033
|
});
|
|
34016
34034
|
return object;
|
|
34017
34035
|
}
|
|
@@ -34122,7 +34140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34122
34140
|
if (version == null || version === "") {
|
|
34123
34141
|
return false;
|
|
34124
34142
|
}
|
|
34125
|
-
return
|
|
34143
|
+
return gte2(version, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
|
|
34126
34144
|
}
|
|
34127
34145
|
function cleanForBridge(data, isPathAllowed) {
|
|
34128
34146
|
var path10 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
@@ -34270,12 +34288,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34270
34288
|
function isSynchronousXHRSupported() {
|
|
34271
34289
|
return !!(window.document && window.document.featurePolicy && window.document.featurePolicy.allowsFeature("sync-xhr"));
|
|
34272
34290
|
}
|
|
34273
|
-
function
|
|
34291
|
+
function gt2() {
|
|
34274
34292
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
34275
34293
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
34276
34294
|
return compareVersions(a, b) === 1;
|
|
34277
34295
|
}
|
|
34278
|
-
function
|
|
34296
|
+
function gte2() {
|
|
34279
34297
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
34280
34298
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
34281
34299
|
return compareVersions(a, b) > -1;
|
|
@@ -34514,14 +34532,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34514
34532
|
}
|
|
34515
34533
|
return Overlay_createClass(OverlayRect2, [{
|
|
34516
34534
|
key: "remove",
|
|
34517
|
-
value: function
|
|
34535
|
+
value: function remove2() {
|
|
34518
34536
|
if (this.node.parentNode) {
|
|
34519
34537
|
this.node.parentNode.removeChild(this.node);
|
|
34520
34538
|
}
|
|
34521
34539
|
}
|
|
34522
34540
|
}, {
|
|
34523
34541
|
key: "update",
|
|
34524
|
-
value: function
|
|
34542
|
+
value: function update2(box, dims) {
|
|
34525
34543
|
boxWrap(dims, "margin", this.node);
|
|
34526
34544
|
boxWrap(dims, "border", this.border);
|
|
34527
34545
|
boxWrap(dims, "padding", this.padding);
|
|
@@ -34571,7 +34589,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34571
34589
|
}
|
|
34572
34590
|
return Overlay_createClass(OverlayTip2, [{
|
|
34573
34591
|
key: "remove",
|
|
34574
|
-
value: function
|
|
34592
|
+
value: function remove2() {
|
|
34575
34593
|
if (this.tip.parentNode) {
|
|
34576
34594
|
this.tip.parentNode.removeChild(this.tip);
|
|
34577
34595
|
}
|
|
@@ -34611,7 +34629,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34611
34629
|
}
|
|
34612
34630
|
return Overlay_createClass(Overlay2, [{
|
|
34613
34631
|
key: "remove",
|
|
34614
|
-
value: function
|
|
34632
|
+
value: function remove2() {
|
|
34615
34633
|
this.tip.remove();
|
|
34616
34634
|
this.rects.forEach(function(rect) {
|
|
34617
34635
|
rect.remove();
|
|
@@ -35275,11 +35293,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35275
35293
|
return;
|
|
35276
35294
|
nodes.forEach(function(node) {
|
|
35277
35295
|
var data = nodeToData.get(node);
|
|
35278
|
-
var
|
|
35296
|
+
var now2 = getCurrentTime();
|
|
35279
35297
|
var lastMeasuredAt = data != null ? data.lastMeasuredAt : 0;
|
|
35280
35298
|
var rect = data != null ? data.rect : null;
|
|
35281
|
-
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION <
|
|
35282
|
-
lastMeasuredAt =
|
|
35299
|
+
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION < now2) {
|
|
35300
|
+
lastMeasuredAt = now2;
|
|
35283
35301
|
rect = measureNode(node);
|
|
35284
35302
|
}
|
|
35285
35303
|
var displayName = agent.getComponentNameForHostInstance(node);
|
|
@@ -35293,7 +35311,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35293
35311
|
}
|
|
35294
35312
|
nodeToData.set(node, {
|
|
35295
35313
|
count: data != null ? data.count + 1 : 1,
|
|
35296
|
-
expirationTime: data != null ? Math.min(
|
|
35314
|
+
expirationTime: data != null ? Math.min(now2 + MAX_DISPLAY_DURATION, data.expirationTime + DISPLAY_DURATION) : now2 + DISPLAY_DURATION,
|
|
35297
35315
|
lastMeasuredAt,
|
|
35298
35316
|
rect,
|
|
35299
35317
|
displayName
|
|
@@ -35310,10 +35328,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35310
35328
|
function prepareToDraw() {
|
|
35311
35329
|
drawAnimationFrameID = null;
|
|
35312
35330
|
redrawTimeoutID = null;
|
|
35313
|
-
var
|
|
35331
|
+
var now2 = getCurrentTime();
|
|
35314
35332
|
var earliestExpiration = Number.MAX_VALUE;
|
|
35315
35333
|
nodeToData.forEach(function(data, node) {
|
|
35316
|
-
if (data.expirationTime <
|
|
35334
|
+
if (data.expirationTime < now2) {
|
|
35317
35335
|
nodeToData.delete(node);
|
|
35318
35336
|
} else {
|
|
35319
35337
|
earliestExpiration = Math.min(earliestExpiration, data.expirationTime);
|
|
@@ -35321,7 +35339,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35321
35339
|
});
|
|
35322
35340
|
draw(nodeToData, agent);
|
|
35323
35341
|
if (earliestExpiration !== Number.MAX_VALUE) {
|
|
35324
|
-
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration -
|
|
35342
|
+
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now2);
|
|
35325
35343
|
}
|
|
35326
35344
|
}
|
|
35327
35345
|
function measureNode(node) {
|
|
@@ -35558,7 +35576,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35558
35576
|
_inherits(Bridge2, _EventEmitter);
|
|
35559
35577
|
return bridge_createClass(Bridge2, [{
|
|
35560
35578
|
key: "wall",
|
|
35561
|
-
get: function
|
|
35579
|
+
get: function get2() {
|
|
35562
35580
|
return this._wall;
|
|
35563
35581
|
}
|
|
35564
35582
|
}, {
|
|
@@ -36349,7 +36367,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36349
36367
|
agent_inherits(Agent2, _EventEmitter);
|
|
36350
36368
|
return agent_createClass(Agent2, [{
|
|
36351
36369
|
key: "rendererInterfaces",
|
|
36352
|
-
get: function
|
|
36370
|
+
get: function get2() {
|
|
36353
36371
|
return this._rendererInterfaces;
|
|
36354
36372
|
}
|
|
36355
36373
|
}, {
|
|
@@ -36441,7 +36459,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36441
36459
|
var renderer = rendererInterface.renderer;
|
|
36442
36460
|
if (renderer !== null) {
|
|
36443
36461
|
var devRenderer = renderer.bundleType === 1;
|
|
36444
|
-
var enableSuspenseTab = devRenderer &&
|
|
36462
|
+
var enableSuspenseTab = devRenderer && gte2(renderer.version, "19.3.0-canary");
|
|
36445
36463
|
if (enableSuspenseTab) {
|
|
36446
36464
|
this._bridge.send("enableSuspenseTab");
|
|
36447
36465
|
}
|
|
@@ -36698,7 +36716,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36698
36716
|
throw Error();
|
|
36699
36717
|
};
|
|
36700
36718
|
Object.defineProperty(Fake.prototype, "props", {
|
|
36701
|
-
set: function
|
|
36719
|
+
set: function set3() {
|
|
36702
36720
|
throw Error();
|
|
36703
36721
|
}
|
|
36704
36722
|
});
|
|
@@ -36728,9 +36746,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
36728
36746
|
maybePromise.catch(function() {});
|
|
36729
36747
|
}
|
|
36730
36748
|
}
|
|
36731
|
-
} catch (
|
|
36732
|
-
if (
|
|
36733
|
-
return [
|
|
36749
|
+
} catch (sample2) {
|
|
36750
|
+
if (sample2 && control && typeof sample2.stack === "string") {
|
|
36751
|
+
return [sample2.stack, control.stack];
|
|
36734
36752
|
}
|
|
36735
36753
|
}
|
|
36736
36754
|
return [null, null];
|
|
@@ -37185,29 +37203,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37185
37203
|
var typeName = callSite.getTypeName();
|
|
37186
37204
|
var methodName = callSite.getMethodName();
|
|
37187
37205
|
var functionName = callSite.getFunctionName();
|
|
37188
|
-
var
|
|
37206
|
+
var result2 = "";
|
|
37189
37207
|
if (functionName) {
|
|
37190
37208
|
if (typeName && identifierRegExp.test(functionName) && functionName !== typeName) {
|
|
37191
|
-
|
|
37209
|
+
result2 += typeName + ".";
|
|
37192
37210
|
}
|
|
37193
|
-
|
|
37211
|
+
result2 += functionName;
|
|
37194
37212
|
if (methodName && functionName !== methodName && !functionName.endsWith("." + methodName) && !functionName.endsWith(" " + methodName)) {
|
|
37195
|
-
|
|
37213
|
+
result2 += " [as " + methodName + "]";
|
|
37196
37214
|
}
|
|
37197
37215
|
} else {
|
|
37198
37216
|
if (typeName) {
|
|
37199
|
-
|
|
37217
|
+
result2 += typeName + ".";
|
|
37200
37218
|
}
|
|
37201
37219
|
if (methodName) {
|
|
37202
|
-
|
|
37220
|
+
result2 += methodName;
|
|
37203
37221
|
} else {
|
|
37204
|
-
|
|
37222
|
+
result2 += "<anonymous>";
|
|
37205
37223
|
}
|
|
37206
37224
|
}
|
|
37207
|
-
return
|
|
37225
|
+
return result2;
|
|
37208
37226
|
}
|
|
37209
37227
|
function collectStackTrace(error, structuredStackTrace) {
|
|
37210
|
-
var
|
|
37228
|
+
var result2 = [];
|
|
37211
37229
|
for (var i2 = framesToSkip;i2 < structuredStackTrace.length; i2++) {
|
|
37212
37230
|
var callSite = structuredStackTrace[i2];
|
|
37213
37231
|
var _name = callSite.getFunctionName() || "<anonymous>";
|
|
@@ -37215,7 +37233,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37215
37233
|
break;
|
|
37216
37234
|
} else if (callSite.isNative()) {
|
|
37217
37235
|
var isAsync = callSite.isAsync();
|
|
37218
|
-
|
|
37236
|
+
result2.push([_name, "", 0, 0, 0, 0, isAsync]);
|
|
37219
37237
|
} else {
|
|
37220
37238
|
if (callSite.isConstructor()) {
|
|
37221
37239
|
_name = "new " + _name;
|
|
@@ -37240,10 +37258,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37240
37258
|
var enclosingLine = typeof callSite.getEnclosingLineNumber === "function" ? callSite.getEnclosingLineNumber() || 0 : 0;
|
|
37241
37259
|
var enclosingCol = typeof callSite.getEnclosingColumnNumber === "function" ? callSite.getEnclosingColumnNumber() || 0 : 0;
|
|
37242
37260
|
var _isAsync = callSite.isAsync();
|
|
37243
|
-
|
|
37261
|
+
result2.push([_name, filename, line, col, enclosingLine, enclosingCol, _isAsync]);
|
|
37244
37262
|
}
|
|
37245
37263
|
}
|
|
37246
|
-
collectedStackTrace =
|
|
37264
|
+
collectedStackTrace = result2;
|
|
37247
37265
|
var name = error.name || "Error";
|
|
37248
37266
|
var message = error.message || "";
|
|
37249
37267
|
var stack = name + ": " + message;
|
|
@@ -37271,10 +37289,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
37271
37289
|
Error.prepareStackTrace = previousPrepare;
|
|
37272
37290
|
}
|
|
37273
37291
|
if (collectedStackTrace !== null) {
|
|
37274
|
-
var
|
|
37292
|
+
var result2 = collectedStackTrace;
|
|
37275
37293
|
collectedStackTrace = null;
|
|
37276
|
-
stackTraceCache.set(error,
|
|
37277
|
-
return
|
|
37294
|
+
stackTraceCache.set(error, result2);
|
|
37295
|
+
return result2;
|
|
37278
37296
|
}
|
|
37279
37297
|
var parsedFrames = parseStackTraceFromString(stack, skipFrames);
|
|
37280
37298
|
stackTraceCache.set(error, parsedFrames);
|
|
@@ -37572,8 +37590,8 @@ Error generating stack: ` + x.message + `
|
|
|
37572
37590
|
resolvedStyles = Object.fromEntries(Object.entries(resolvedStyles).sort());
|
|
37573
37591
|
}
|
|
37574
37592
|
function crawlObjectProperties(entry, sources, resolvedStyles) {
|
|
37575
|
-
var
|
|
37576
|
-
|
|
37593
|
+
var keys2 = Object.keys(entry);
|
|
37594
|
+
keys2.forEach(function(key) {
|
|
37577
37595
|
var value = entry[key];
|
|
37578
37596
|
if (typeof value === "string") {
|
|
37579
37597
|
if (key === value) {
|
|
@@ -37613,8 +37631,8 @@ Error generating stack: ` + x.message + `
|
|
|
37613
37631
|
if (selectorText.startsWith(".".concat(styleName))) {
|
|
37614
37632
|
var match = cssText.match(/{ *([a-z\-]+):/);
|
|
37615
37633
|
if (match !== null) {
|
|
37616
|
-
var
|
|
37617
|
-
var value = style.getPropertyValue(
|
|
37634
|
+
var property2 = match[1];
|
|
37635
|
+
var value = style.getPropertyValue(property2);
|
|
37618
37636
|
cachedStyleNameToValueMap.set(styleName, value);
|
|
37619
37637
|
return value;
|
|
37620
37638
|
} else {
|
|
@@ -38034,11 +38052,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38034
38052
|
var CHECK_V3_MARK = "__v3";
|
|
38035
38053
|
var markOptions = {};
|
|
38036
38054
|
Object.defineProperty(markOptions, "startTime", {
|
|
38037
|
-
get: function
|
|
38055
|
+
get: function get2() {
|
|
38038
38056
|
supportsUserTimingV3 = true;
|
|
38039
38057
|
return 0;
|
|
38040
38058
|
},
|
|
38041
|
-
set: function
|
|
38059
|
+
set: function set3() {}
|
|
38042
38060
|
});
|
|
38043
38061
|
try {
|
|
38044
38062
|
performance.mark(CHECK_V3_MARK, markOptions);
|
|
@@ -38108,8 +38126,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38108
38126
|
var ranges = getInternalModuleRanges();
|
|
38109
38127
|
if (ranges) {
|
|
38110
38128
|
for (var i2 = 0;i2 < ranges.length; i2++) {
|
|
38111
|
-
var
|
|
38112
|
-
if (shared_isArray(
|
|
38129
|
+
var range2 = ranges[i2];
|
|
38130
|
+
if (shared_isArray(range2) && range2.length === 2) {
|
|
38113
38131
|
var _ranges$i = profilingHooks_slicedToArray(ranges[i2], 2), startStackFrame = _ranges$i[0], stopStackFrame = _ranges$i[1];
|
|
38114
38132
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
38115
38133
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -38571,8 +38589,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38571
38589
|
var ranges = getInternalModuleRanges();
|
|
38572
38590
|
if (ranges) {
|
|
38573
38591
|
for (var i2 = 0;i2 < ranges.length; i2++) {
|
|
38574
|
-
var
|
|
38575
|
-
if (shared_isArray(
|
|
38592
|
+
var range2 = ranges[i2];
|
|
38593
|
+
if (shared_isArray(range2) && range2.length === 2) {
|
|
38576
38594
|
var _ranges$i2 = profilingHooks_slicedToArray(ranges[i2], 2), startStackFrame = _ranges$i2[0], stopStackFrame = _ranges$i2[1];
|
|
38577
38595
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
38578
38596
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -38923,7 +38941,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38923
38941
|
IdlePriority: 95,
|
|
38924
38942
|
NoPriority: 90
|
|
38925
38943
|
};
|
|
38926
|
-
if (
|
|
38944
|
+
if (gt2(version, "17.0.2")) {
|
|
38927
38945
|
ReactPriorityLevels = {
|
|
38928
38946
|
ImmediatePriority: 1,
|
|
38929
38947
|
UserBlockingPriority: 2,
|
|
@@ -38934,16 +38952,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38934
38952
|
};
|
|
38935
38953
|
}
|
|
38936
38954
|
var StrictModeBits = 0;
|
|
38937
|
-
if (
|
|
38955
|
+
if (gte2(version, "18.0.0-alpha")) {
|
|
38938
38956
|
StrictModeBits = 24;
|
|
38939
|
-
} else if (
|
|
38957
|
+
} else if (gte2(version, "16.9.0")) {
|
|
38940
38958
|
StrictModeBits = 1;
|
|
38941
|
-
} else if (
|
|
38959
|
+
} else if (gte2(version, "16.3.0")) {
|
|
38942
38960
|
StrictModeBits = 2;
|
|
38943
38961
|
}
|
|
38944
38962
|
var SuspenseyImagesMode = 32;
|
|
38945
38963
|
var ReactTypeOfWork = null;
|
|
38946
|
-
if (
|
|
38964
|
+
if (gt2(version, "17.0.1")) {
|
|
38947
38965
|
ReactTypeOfWork = {
|
|
38948
38966
|
CacheComponent: 24,
|
|
38949
38967
|
ClassComponent: 1,
|
|
@@ -38980,7 +38998,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38980
38998
|
ViewTransitionComponent: 30,
|
|
38981
38999
|
ActivityComponent: 31
|
|
38982
39000
|
};
|
|
38983
|
-
} else if (
|
|
39001
|
+
} else if (gte2(version, "17.0.0-alpha")) {
|
|
38984
39002
|
ReactTypeOfWork = {
|
|
38985
39003
|
CacheComponent: -1,
|
|
38986
39004
|
ClassComponent: 1,
|
|
@@ -39017,7 +39035,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39017
39035
|
ViewTransitionComponent: -1,
|
|
39018
39036
|
ActivityComponent: -1
|
|
39019
39037
|
};
|
|
39020
|
-
} else if (
|
|
39038
|
+
} else if (gte2(version, "16.6.0-beta.0")) {
|
|
39021
39039
|
ReactTypeOfWork = {
|
|
39022
39040
|
CacheComponent: -1,
|
|
39023
39041
|
ClassComponent: 1,
|
|
@@ -39054,7 +39072,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39054
39072
|
ViewTransitionComponent: -1,
|
|
39055
39073
|
ActivityComponent: -1
|
|
39056
39074
|
};
|
|
39057
|
-
} else if (
|
|
39075
|
+
} else if (gte2(version, "16.4.3-alpha")) {
|
|
39058
39076
|
ReactTypeOfWork = {
|
|
39059
39077
|
CacheComponent: -1,
|
|
39060
39078
|
ClassComponent: 2,
|
|
@@ -39349,7 +39367,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39349
39367
|
var { getLaneLabelMap, injectProfilingHooks, overrideHookState, overrideHookStateDeletePath, overrideHookStateRenamePath, overrideProps, overridePropsDeletePath, overridePropsRenamePath, scheduleRefresh, setErrorHandler, setSuspenseHandler, scheduleUpdate, scheduleRetry, getCurrentFiber } = renderer;
|
|
39350
39368
|
var supportsTogglingError = typeof setErrorHandler === "function" && typeof scheduleUpdate === "function";
|
|
39351
39369
|
var supportsTogglingSuspense = typeof setSuspenseHandler === "function" && typeof scheduleUpdate === "function";
|
|
39352
|
-
var supportsPerformanceTracks =
|
|
39370
|
+
var supportsPerformanceTracks = gte2(version, "19.2.0");
|
|
39353
39371
|
if (typeof scheduleRefresh === "function") {
|
|
39354
39372
|
renderer.scheduleRefresh = function() {
|
|
39355
39373
|
try {
|
|
@@ -39954,9 +39972,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39954
39972
|
if (prev == null || next == null) {
|
|
39955
39973
|
return null;
|
|
39956
39974
|
}
|
|
39957
|
-
var
|
|
39975
|
+
var keys2 = new Set([].concat(fiber_renderer_toConsumableArray(Object.keys(prev)), fiber_renderer_toConsumableArray(Object.keys(next))));
|
|
39958
39976
|
var changedKeys = [];
|
|
39959
|
-
var _iterator6 = _createForOfIteratorHelper(
|
|
39977
|
+
var _iterator6 = _createForOfIteratorHelper(keys2), _step6;
|
|
39960
39978
|
try {
|
|
39961
39979
|
for (_iterator6.s();!(_step6 = _iterator6.n()).done; ) {
|
|
39962
39980
|
var key = _step6.value;
|
|
@@ -40128,7 +40146,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40128
40146
|
height: instance.scrollHeight
|
|
40129
40147
|
}];
|
|
40130
40148
|
}
|
|
40131
|
-
var
|
|
40149
|
+
var result2 = [];
|
|
40132
40150
|
var win = doc && doc.defaultView;
|
|
40133
40151
|
var scrollX = win ? win.scrollX : 0;
|
|
40134
40152
|
var scrollY = win ? win.scrollY : 0;
|
|
@@ -40137,25 +40155,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40137
40155
|
if (typeof doc.createRange !== "function") {
|
|
40138
40156
|
return null;
|
|
40139
40157
|
}
|
|
40140
|
-
var
|
|
40141
|
-
if (typeof
|
|
40158
|
+
var range2 = doc.createRange();
|
|
40159
|
+
if (typeof range2.getClientRects !== "function") {
|
|
40142
40160
|
return null;
|
|
40143
40161
|
}
|
|
40144
|
-
|
|
40145
|
-
rects =
|
|
40162
|
+
range2.selectNodeContents(instance);
|
|
40163
|
+
rects = range2.getClientRects();
|
|
40146
40164
|
} else {
|
|
40147
40165
|
rects = instance.getClientRects();
|
|
40148
40166
|
}
|
|
40149
40167
|
for (var i2 = 0;i2 < rects.length; i2++) {
|
|
40150
40168
|
var rect = rects[i2];
|
|
40151
|
-
|
|
40169
|
+
result2.push({
|
|
40152
40170
|
x: rect.x + scrollX,
|
|
40153
40171
|
y: rect.y + scrollY,
|
|
40154
40172
|
width: rect.width,
|
|
40155
40173
|
height: rect.height
|
|
40156
40174
|
});
|
|
40157
40175
|
}
|
|
40158
|
-
return
|
|
40176
|
+
return result2;
|
|
40159
40177
|
}
|
|
40160
40178
|
if (instance.canonical) {
|
|
40161
40179
|
var publicInstance = instance.canonical.publicInstance;
|
|
@@ -40173,18 +40191,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40173
40191
|
}
|
|
40174
40192
|
function measureInstance(instance) {
|
|
40175
40193
|
var hostInstances = findAllCurrentHostInstances(instance);
|
|
40176
|
-
var
|
|
40194
|
+
var result2 = null;
|
|
40177
40195
|
for (var i2 = 0;i2 < hostInstances.length; i2++) {
|
|
40178
40196
|
var childResult = measureHostInstance(hostInstances[i2]);
|
|
40179
40197
|
if (childResult !== null) {
|
|
40180
|
-
if (
|
|
40181
|
-
|
|
40198
|
+
if (result2 === null) {
|
|
40199
|
+
result2 = childResult;
|
|
40182
40200
|
} else {
|
|
40183
|
-
|
|
40201
|
+
result2 = result2.concat(childResult);
|
|
40184
40202
|
}
|
|
40185
40203
|
}
|
|
40186
40204
|
}
|
|
40187
|
-
return
|
|
40205
|
+
return result2;
|
|
40188
40206
|
}
|
|
40189
40207
|
function getStringID(string) {
|
|
40190
40208
|
if (string === null) {
|
|
@@ -42419,10 +42437,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42419
42437
|
}
|
|
42420
42438
|
function inspectHooks(fiber) {
|
|
42421
42439
|
var originalConsoleMethods = {};
|
|
42422
|
-
for (var
|
|
42440
|
+
for (var method2 in console) {
|
|
42423
42441
|
try {
|
|
42424
|
-
originalConsoleMethods[
|
|
42425
|
-
console[
|
|
42442
|
+
originalConsoleMethods[method2] = console[method2];
|
|
42443
|
+
console[method2] = function() {};
|
|
42426
42444
|
} catch (error) {}
|
|
42427
42445
|
}
|
|
42428
42446
|
try {
|
|
@@ -42436,14 +42454,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42436
42454
|
}
|
|
42437
42455
|
}
|
|
42438
42456
|
function getSuspendedByOfSuspenseNode(suspenseNode, filterByChildInstance) {
|
|
42439
|
-
var
|
|
42457
|
+
var result2 = [];
|
|
42440
42458
|
if (!suspenseNode.hasUniqueSuspenders) {
|
|
42441
|
-
return
|
|
42459
|
+
return result2;
|
|
42442
42460
|
}
|
|
42443
42461
|
var hooksCacheKey = null;
|
|
42444
42462
|
var hooksCache = null;
|
|
42445
42463
|
var streamEntries = new Map;
|
|
42446
|
-
suspenseNode.suspendedBy.forEach(function(
|
|
42464
|
+
suspenseNode.suspendedBy.forEach(function(set3, ioInfo) {
|
|
42447
42465
|
var parentNode = suspenseNode.parent;
|
|
42448
42466
|
while (parentNode !== null) {
|
|
42449
42467
|
if (parentNode.suspendedBy.has(ioInfo)) {
|
|
@@ -42451,14 +42469,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42451
42469
|
}
|
|
42452
42470
|
parentNode = parentNode.parent;
|
|
42453
42471
|
}
|
|
42454
|
-
if (
|
|
42472
|
+
if (set3.size === 0) {
|
|
42455
42473
|
return;
|
|
42456
42474
|
}
|
|
42457
42475
|
var firstInstance = null;
|
|
42458
42476
|
if (filterByChildInstance === null) {
|
|
42459
|
-
firstInstance =
|
|
42477
|
+
firstInstance = set3.values().next().value;
|
|
42460
42478
|
} else {
|
|
42461
|
-
var _iterator7 = _createForOfIteratorHelper(
|
|
42479
|
+
var _iterator7 = _createForOfIteratorHelper(set3.values()), _step7;
|
|
42462
42480
|
try {
|
|
42463
42481
|
for (_iterator7.s();!(_step7 = _iterator7.n()).done; ) {
|
|
42464
42482
|
var childInstance = _step7.value;
|
|
@@ -42509,16 +42527,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42509
42527
|
}
|
|
42510
42528
|
}
|
|
42511
42529
|
} else {
|
|
42512
|
-
|
|
42530
|
+
result2.push(serializeAsyncInfo(asyncInfo, firstInstance, hooks));
|
|
42513
42531
|
}
|
|
42514
42532
|
}
|
|
42515
42533
|
}
|
|
42516
42534
|
});
|
|
42517
42535
|
streamEntries.forEach(function(_ref) {
|
|
42518
42536
|
var { asyncInfo, instance, hooks } = _ref;
|
|
42519
|
-
|
|
42537
|
+
result2.push(serializeAsyncInfo(asyncInfo, instance, hooks));
|
|
42520
42538
|
});
|
|
42521
|
-
return
|
|
42539
|
+
return result2;
|
|
42522
42540
|
}
|
|
42523
42541
|
function getSuspendedByOfInstance(devtoolsInstance, hooks) {
|
|
42524
42542
|
var suspendedBy = devtoolsInstance.suspendedBy;
|
|
@@ -42527,7 +42545,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42527
42545
|
}
|
|
42528
42546
|
var foundIOEntries = new Set;
|
|
42529
42547
|
var streamEntries = new Map;
|
|
42530
|
-
var
|
|
42548
|
+
var result2 = [];
|
|
42531
42549
|
for (var i2 = 0;i2 < suspendedBy.length; i2++) {
|
|
42532
42550
|
var asyncInfo = suspendedBy[i2];
|
|
42533
42551
|
var ioInfo = asyncInfo.awaited;
|
|
@@ -42547,13 +42565,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42547
42565
|
}
|
|
42548
42566
|
}
|
|
42549
42567
|
} else {
|
|
42550
|
-
|
|
42568
|
+
result2.push(serializeAsyncInfo(asyncInfo, devtoolsInstance, hooks));
|
|
42551
42569
|
}
|
|
42552
42570
|
}
|
|
42553
42571
|
streamEntries.forEach(function(asyncInfo2) {
|
|
42554
|
-
|
|
42572
|
+
result2.push(serializeAsyncInfo(asyncInfo2, devtoolsInstance, hooks));
|
|
42555
42573
|
});
|
|
42556
|
-
return
|
|
42574
|
+
return result2;
|
|
42557
42575
|
}
|
|
42558
42576
|
function getSuspendedByOfInstanceSubtree(devtoolsInstance) {
|
|
42559
42577
|
var suspenseParentInstance = devtoolsInstance;
|
|
@@ -42568,14 +42586,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42568
42586
|
}
|
|
42569
42587
|
var FALLBACK_THROTTLE_MS = 300;
|
|
42570
42588
|
function getSuspendedByRange(suspenseNode) {
|
|
42571
|
-
var
|
|
42572
|
-
var
|
|
42589
|
+
var min2 = Infinity;
|
|
42590
|
+
var max2 = -Infinity;
|
|
42573
42591
|
suspenseNode.suspendedBy.forEach(function(_, ioInfo) {
|
|
42574
|
-
if (ioInfo.end >
|
|
42575
|
-
|
|
42592
|
+
if (ioInfo.end > max2) {
|
|
42593
|
+
max2 = ioInfo.end;
|
|
42576
42594
|
}
|
|
42577
|
-
if (ioInfo.start <
|
|
42578
|
-
|
|
42595
|
+
if (ioInfo.start < min2) {
|
|
42596
|
+
min2 = ioInfo.start;
|
|
42579
42597
|
}
|
|
42580
42598
|
});
|
|
42581
42599
|
var parentSuspenseNode = suspenseNode.parent;
|
|
@@ -42587,19 +42605,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
42587
42605
|
}
|
|
42588
42606
|
});
|
|
42589
42607
|
var throttleTime = parentMax + FALLBACK_THROTTLE_MS;
|
|
42590
|
-
if (throttleTime >
|
|
42591
|
-
|
|
42608
|
+
if (throttleTime > max2) {
|
|
42609
|
+
max2 = throttleTime;
|
|
42592
42610
|
}
|
|
42593
|
-
var startTime =
|
|
42611
|
+
var startTime = max2 - FALLBACK_THROTTLE_MS;
|
|
42594
42612
|
if (parentMax > startTime) {
|
|
42595
42613
|
startTime = parentMax;
|
|
42596
42614
|
}
|
|
42597
|
-
if (startTime <
|
|
42598
|
-
|
|
42615
|
+
if (startTime < min2) {
|
|
42616
|
+
min2 = startTime;
|
|
42599
42617
|
}
|
|
42600
42618
|
}
|
|
42601
|
-
if (
|
|
42602
|
-
return [
|
|
42619
|
+
if (min2 < Infinity && max2 > -Infinity) {
|
|
42620
|
+
return [min2, max2];
|
|
42603
42621
|
}
|
|
42604
42622
|
return null;
|
|
42605
42623
|
}
|
|
@@ -43276,8 +43294,8 @@ The error thrown in the component is:
|
|
|
43276
43294
|
return inspectedRoots;
|
|
43277
43295
|
}
|
|
43278
43296
|
function logElementToConsole(id) {
|
|
43279
|
-
var
|
|
43280
|
-
if (
|
|
43297
|
+
var result2 = isMostRecentlyInspectedElementCurrent(id) ? mostRecentlyInspectedElement : inspectElementRaw(id);
|
|
43298
|
+
if (result2 === null) {
|
|
43281
43299
|
console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
|
|
43282
43300
|
return;
|
|
43283
43301
|
}
|
|
@@ -43286,14 +43304,14 @@ The error thrown in the component is:
|
|
|
43286
43304
|
if (supportsGroup) {
|
|
43287
43305
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
43288
43306
|
}
|
|
43289
|
-
if (
|
|
43290
|
-
console.log("Props:",
|
|
43307
|
+
if (result2.props !== null) {
|
|
43308
|
+
console.log("Props:", result2.props);
|
|
43291
43309
|
}
|
|
43292
|
-
if (
|
|
43293
|
-
console.log("State:",
|
|
43310
|
+
if (result2.state !== null) {
|
|
43311
|
+
console.log("State:", result2.state);
|
|
43294
43312
|
}
|
|
43295
|
-
if (
|
|
43296
|
-
console.log("Hooks:",
|
|
43313
|
+
if (result2.hooks !== null) {
|
|
43314
|
+
console.log("Hooks:", result2.hooks);
|
|
43297
43315
|
}
|
|
43298
43316
|
var hostInstances = findHostInstancesForElementID(id);
|
|
43299
43317
|
if (hostInstances !== null) {
|
|
@@ -43509,8 +43527,8 @@ The error thrown in the component is:
|
|
|
43509
43527
|
if (typeof getTimelineData === "function") {
|
|
43510
43528
|
var currentTimelineData = getTimelineData();
|
|
43511
43529
|
if (currentTimelineData) {
|
|
43512
|
-
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData,
|
|
43513
|
-
timelineData = renderer_objectSpread(renderer_objectSpread({},
|
|
43530
|
+
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData, rest2 = _objectWithoutProperties(currentTimelineData, _excluded);
|
|
43531
|
+
timelineData = renderer_objectSpread(renderer_objectSpread({}, rest2), {}, {
|
|
43514
43532
|
batchUIDToMeasuresKeyValueArray: Array.from(batchUIDToMeasuresMap.entries()),
|
|
43515
43533
|
internalModuleSourceToRanges: Array.from(internalModuleSourceToRanges.entries()),
|
|
43516
43534
|
laneToLabelKeyValueArray: Array.from(laneToLabelMap.entries()),
|
|
@@ -44249,9 +44267,9 @@ The error thrown in the component is:
|
|
|
44249
44267
|
parentIDStack.push(id);
|
|
44250
44268
|
internalInstanceToRootIDMap.set(internalInstance, getID(hostContainerInfo._topLevelWrapper));
|
|
44251
44269
|
try {
|
|
44252
|
-
var
|
|
44270
|
+
var result2 = fn.apply(this, args);
|
|
44253
44271
|
parentIDStack.pop();
|
|
44254
|
-
return
|
|
44272
|
+
return result2;
|
|
44255
44273
|
} catch (err) {
|
|
44256
44274
|
parentIDStack = [];
|
|
44257
44275
|
throw err;
|
|
@@ -44274,13 +44292,13 @@ The error thrown in the component is:
|
|
|
44274
44292
|
parentIDStack.push(id);
|
|
44275
44293
|
var prevChildren = getChildren(internalInstance);
|
|
44276
44294
|
try {
|
|
44277
|
-
var
|
|
44295
|
+
var result2 = fn.apply(this, args);
|
|
44278
44296
|
var nextChildren = getChildren(internalInstance);
|
|
44279
44297
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
44280
44298
|
recordReorder(internalInstance, id, nextChildren);
|
|
44281
44299
|
}
|
|
44282
44300
|
parentIDStack.pop();
|
|
44283
|
-
return
|
|
44301
|
+
return result2;
|
|
44284
44302
|
} catch (err) {
|
|
44285
44303
|
parentIDStack = [];
|
|
44286
44304
|
throw err;
|
|
@@ -44303,13 +44321,13 @@ The error thrown in the component is:
|
|
|
44303
44321
|
parentIDStack.push(id);
|
|
44304
44322
|
var prevChildren = getChildren(internalInstance);
|
|
44305
44323
|
try {
|
|
44306
|
-
var
|
|
44324
|
+
var result2 = fn.apply(this, args);
|
|
44307
44325
|
var nextChildren = getChildren(internalInstance);
|
|
44308
44326
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
44309
44327
|
recordReorder(internalInstance, id, nextChildren);
|
|
44310
44328
|
}
|
|
44311
44329
|
parentIDStack.pop();
|
|
44312
|
-
return
|
|
44330
|
+
return result2;
|
|
44313
44331
|
} catch (err) {
|
|
44314
44332
|
parentIDStack = [];
|
|
44315
44333
|
throw err;
|
|
@@ -44331,10 +44349,10 @@ The error thrown in the component is:
|
|
|
44331
44349
|
var id = getID(internalInstance);
|
|
44332
44350
|
parentIDStack.push(id);
|
|
44333
44351
|
try {
|
|
44334
|
-
var
|
|
44352
|
+
var result2 = fn.apply(this, args);
|
|
44335
44353
|
parentIDStack.pop();
|
|
44336
44354
|
recordUnmount(internalInstance, id);
|
|
44337
|
-
return
|
|
44355
|
+
return result2;
|
|
44338
44356
|
} catch (err) {
|
|
44339
44357
|
parentIDStack = [];
|
|
44340
44358
|
throw err;
|
|
@@ -44779,8 +44797,8 @@ The error thrown in the component is:
|
|
|
44779
44797
|
return inspectedRoots;
|
|
44780
44798
|
}
|
|
44781
44799
|
function logElementToConsole(id) {
|
|
44782
|
-
var
|
|
44783
|
-
if (
|
|
44800
|
+
var result2 = inspectElementRaw(id);
|
|
44801
|
+
if (result2 === null) {
|
|
44784
44802
|
console.warn('Could not find element with id "'.concat(id, '"'));
|
|
44785
44803
|
return;
|
|
44786
44804
|
}
|
|
@@ -44789,14 +44807,14 @@ The error thrown in the component is:
|
|
|
44789
44807
|
if (supportsGroup) {
|
|
44790
44808
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
44791
44809
|
}
|
|
44792
|
-
if (
|
|
44793
|
-
console.log("Props:",
|
|
44810
|
+
if (result2.props !== null) {
|
|
44811
|
+
console.log("Props:", result2.props);
|
|
44794
44812
|
}
|
|
44795
|
-
if (
|
|
44796
|
-
console.log("State:",
|
|
44813
|
+
if (result2.state !== null) {
|
|
44814
|
+
console.log("State:", result2.state);
|
|
44797
44815
|
}
|
|
44798
|
-
if (
|
|
44799
|
-
console.log("Context:",
|
|
44816
|
+
if (result2.context !== null) {
|
|
44817
|
+
console.log("Context:", result2.context);
|
|
44800
44818
|
}
|
|
44801
44819
|
var hostInstance = findHostInstanceForInternalID(id);
|
|
44802
44820
|
if (hostInstance !== null) {
|
|
@@ -45103,12 +45121,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45103
45121
|
return [maybeMessage].concat(inputArgs);
|
|
45104
45122
|
}
|
|
45105
45123
|
var args = inputArgs.slice();
|
|
45106
|
-
var
|
|
45124
|
+
var template2 = "";
|
|
45107
45125
|
var argumentsPointer = 0;
|
|
45108
45126
|
for (var i2 = 0;i2 < maybeMessage.length; ++i2) {
|
|
45109
45127
|
var currentChar = maybeMessage[i2];
|
|
45110
45128
|
if (currentChar !== "%") {
|
|
45111
|
-
|
|
45129
|
+
template2 += currentChar;
|
|
45112
45130
|
continue;
|
|
45113
45131
|
}
|
|
45114
45132
|
var nextChar = maybeMessage[i2 + 1];
|
|
@@ -45118,30 +45136,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45118
45136
|
case "O":
|
|
45119
45137
|
case "o": {
|
|
45120
45138
|
++argumentsPointer;
|
|
45121
|
-
|
|
45139
|
+
template2 += "%".concat(nextChar);
|
|
45122
45140
|
break;
|
|
45123
45141
|
}
|
|
45124
45142
|
case "d":
|
|
45125
45143
|
case "i": {
|
|
45126
45144
|
var _args$splice = args.splice(argumentsPointer, 1), _args$splice2 = formatConsoleArguments_slicedToArray(_args$splice, 1), arg = _args$splice2[0];
|
|
45127
|
-
|
|
45145
|
+
template2 += parseInt(arg, 10).toString();
|
|
45128
45146
|
break;
|
|
45129
45147
|
}
|
|
45130
45148
|
case "f": {
|
|
45131
45149
|
var _args$splice3 = args.splice(argumentsPointer, 1), _args$splice4 = formatConsoleArguments_slicedToArray(_args$splice3, 1), _arg = _args$splice4[0];
|
|
45132
|
-
|
|
45150
|
+
template2 += parseFloat(_arg).toString();
|
|
45133
45151
|
break;
|
|
45134
45152
|
}
|
|
45135
45153
|
case "s": {
|
|
45136
45154
|
var _args$splice5 = args.splice(argumentsPointer, 1), _args$splice6 = formatConsoleArguments_slicedToArray(_args$splice5, 1), _arg2 = _args$splice6[0];
|
|
45137
|
-
|
|
45155
|
+
template2 += String(_arg2);
|
|
45138
45156
|
break;
|
|
45139
45157
|
}
|
|
45140
45158
|
default:
|
|
45141
|
-
|
|
45159
|
+
template2 += "%".concat(nextChar);
|
|
45142
45160
|
}
|
|
45143
45161
|
}
|
|
45144
|
-
return [
|
|
45162
|
+
return [template2].concat(formatConsoleArguments_toConsumableArray(args));
|
|
45145
45163
|
}
|
|
45146
45164
|
function hook_createForOfIteratorHelper(o, allowArrayLike) {
|
|
45147
45165
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
@@ -45399,8 +45417,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45399
45417
|
}
|
|
45400
45418
|
var consoleMethodsToOverrideForStrictMode = ["group", "groupCollapsed", "info", "log"];
|
|
45401
45419
|
var _loop = function _loop2() {
|
|
45402
|
-
var
|
|
45403
|
-
var originalMethod = targetConsole[
|
|
45420
|
+
var method2 = _consoleMethodsToOver[_i];
|
|
45421
|
+
var originalMethod = targetConsole[method2];
|
|
45404
45422
|
var overrideMethod = function overrideMethod2() {
|
|
45405
45423
|
var settings = hook.settings;
|
|
45406
45424
|
for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
|
|
@@ -45417,9 +45435,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45417
45435
|
originalMethod.apply(undefined, [ANSI_STYLE_DIMMING_TEMPLATE].concat(hook_toConsumableArray(formatConsoleArguments.apply(undefined, args))));
|
|
45418
45436
|
}
|
|
45419
45437
|
};
|
|
45420
|
-
targetConsole[
|
|
45438
|
+
targetConsole[method2] = overrideMethod;
|
|
45421
45439
|
unpatchConsoleCallbacks.push(function() {
|
|
45422
|
-
targetConsole[
|
|
45440
|
+
targetConsole[method2] = originalMethod;
|
|
45423
45441
|
});
|
|
45424
45442
|
};
|
|
45425
45443
|
for (var _i = 0, _consoleMethodsToOver = consoleMethodsToOverrideForStrictMode;_i < _consoleMethodsToOver.length; _i++) {
|
|
@@ -45464,8 +45482,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45464
45482
|
}
|
|
45465
45483
|
var consoleMethodsToOverrideForErrorsAndWarnings = ["error", "trace", "warn"];
|
|
45466
45484
|
var _loop2 = function _loop22() {
|
|
45467
|
-
var
|
|
45468
|
-
var originalMethod = targetConsole[
|
|
45485
|
+
var method2 = _consoleMethodsToOver2[_i2];
|
|
45486
|
+
var originalMethod = targetConsole[method2];
|
|
45469
45487
|
var overrideMethod = function overrideMethod2() {
|
|
45470
45488
|
var settings = hook.settings;
|
|
45471
45489
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;_key2 < _len2; _key2++) {
|
|
@@ -45484,7 +45502,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45484
45502
|
var lastArg = args.length > 0 ? args[args.length - 1] : null;
|
|
45485
45503
|
alreadyHasComponentStack = typeof lastArg === "string" && isStringComponentStack(lastArg);
|
|
45486
45504
|
}
|
|
45487
|
-
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (
|
|
45505
|
+
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (method2 === "error" || method2 === "warn");
|
|
45488
45506
|
var _iterator = hook_createForOfIteratorHelper(hook.rendererInterfaces.values()), _step;
|
|
45489
45507
|
try {
|
|
45490
45508
|
var _loop3 = function _loop32() {
|
|
@@ -45493,7 +45511,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45493
45511
|
try {
|
|
45494
45512
|
if (shouldShowInlineWarningsAndErrors) {
|
|
45495
45513
|
if (onErrorOrWarning != null) {
|
|
45496
|
-
onErrorOrWarning(
|
|
45514
|
+
onErrorOrWarning(method2, args.slice());
|
|
45497
45515
|
}
|
|
45498
45516
|
}
|
|
45499
45517
|
} catch (error) {
|
|
@@ -45558,7 +45576,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45558
45576
|
originalMethod.apply(undefined, args);
|
|
45559
45577
|
}
|
|
45560
45578
|
};
|
|
45561
|
-
targetConsole[
|
|
45579
|
+
targetConsole[method2] = overrideMethod;
|
|
45562
45580
|
};
|
|
45563
45581
|
for (var _i2 = 0, _consoleMethodsToOver2 = consoleMethodsToOverrideForErrorsAndWarnings;_i2 < _consoleMethodsToOver2.length; _i2++) {
|
|
45564
45582
|
_loop2();
|
|
@@ -45612,7 +45630,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45612
45630
|
Object.defineProperty(target, "__REACT_DEVTOOLS_GLOBAL_HOOK__", {
|
|
45613
45631
|
configurable: false,
|
|
45614
45632
|
enumerable: false,
|
|
45615
|
-
get: function
|
|
45633
|
+
get: function get2() {
|
|
45616
45634
|
return hook;
|
|
45617
45635
|
}
|
|
45618
45636
|
});
|
|
@@ -45671,7 +45689,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45671
45689
|
}
|
|
45672
45690
|
function resolveBoxStyle(prefix2, style) {
|
|
45673
45691
|
var hasParts = false;
|
|
45674
|
-
var
|
|
45692
|
+
var result2 = {
|
|
45675
45693
|
bottom: 0,
|
|
45676
45694
|
left: 0,
|
|
45677
45695
|
right: 0,
|
|
@@ -45679,57 +45697,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45679
45697
|
};
|
|
45680
45698
|
var styleForAll = style[prefix2];
|
|
45681
45699
|
if (styleForAll != null) {
|
|
45682
|
-
for (var _i = 0, _Object$keys = Object.keys(
|
|
45700
|
+
for (var _i = 0, _Object$keys = Object.keys(result2);_i < _Object$keys.length; _i++) {
|
|
45683
45701
|
var key = _Object$keys[_i];
|
|
45684
|
-
|
|
45702
|
+
result2[key] = styleForAll;
|
|
45685
45703
|
}
|
|
45686
45704
|
hasParts = true;
|
|
45687
45705
|
}
|
|
45688
45706
|
var styleForHorizontal = style[prefix2 + "Horizontal"];
|
|
45689
45707
|
if (styleForHorizontal != null) {
|
|
45690
|
-
|
|
45691
|
-
|
|
45708
|
+
result2.left = styleForHorizontal;
|
|
45709
|
+
result2.right = styleForHorizontal;
|
|
45692
45710
|
hasParts = true;
|
|
45693
45711
|
} else {
|
|
45694
45712
|
var styleForLeft = style[prefix2 + "Left"];
|
|
45695
45713
|
if (styleForLeft != null) {
|
|
45696
|
-
|
|
45714
|
+
result2.left = styleForLeft;
|
|
45697
45715
|
hasParts = true;
|
|
45698
45716
|
}
|
|
45699
45717
|
var styleForRight = style[prefix2 + "Right"];
|
|
45700
45718
|
if (styleForRight != null) {
|
|
45701
|
-
|
|
45719
|
+
result2.right = styleForRight;
|
|
45702
45720
|
hasParts = true;
|
|
45703
45721
|
}
|
|
45704
45722
|
var styleForEnd = style[prefix2 + "End"];
|
|
45705
45723
|
if (styleForEnd != null) {
|
|
45706
|
-
|
|
45724
|
+
result2.right = styleForEnd;
|
|
45707
45725
|
hasParts = true;
|
|
45708
45726
|
}
|
|
45709
45727
|
var styleForStart = style[prefix2 + "Start"];
|
|
45710
45728
|
if (styleForStart != null) {
|
|
45711
|
-
|
|
45729
|
+
result2.left = styleForStart;
|
|
45712
45730
|
hasParts = true;
|
|
45713
45731
|
}
|
|
45714
45732
|
}
|
|
45715
45733
|
var styleForVertical = style[prefix2 + "Vertical"];
|
|
45716
45734
|
if (styleForVertical != null) {
|
|
45717
|
-
|
|
45718
|
-
|
|
45735
|
+
result2.bottom = styleForVertical;
|
|
45736
|
+
result2.top = styleForVertical;
|
|
45719
45737
|
hasParts = true;
|
|
45720
45738
|
} else {
|
|
45721
45739
|
var styleForBottom = style[prefix2 + "Bottom"];
|
|
45722
45740
|
if (styleForBottom != null) {
|
|
45723
|
-
|
|
45741
|
+
result2.bottom = styleForBottom;
|
|
45724
45742
|
hasParts = true;
|
|
45725
45743
|
}
|
|
45726
45744
|
var styleForTop = style[prefix2 + "Top"];
|
|
45727
45745
|
if (styleForTop != null) {
|
|
45728
|
-
|
|
45746
|
+
result2.top = styleForTop;
|
|
45729
45747
|
hasParts = true;
|
|
45730
45748
|
}
|
|
45731
45749
|
}
|
|
45732
|
-
return hasParts ?
|
|
45750
|
+
return hasParts ? result2 : null;
|
|
45733
45751
|
}
|
|
45734
45752
|
function setupNativeStyleEditor_typeof(o) {
|
|
45735
45753
|
"@babel/helpers - typeof";
|
|
@@ -46086,10 +46104,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
46086
46104
|
if (!hook.hasOwnProperty("resolveRNStyle")) {
|
|
46087
46105
|
Object.defineProperty(hook, "resolveRNStyle", {
|
|
46088
46106
|
enumerable: false,
|
|
46089
|
-
get: function
|
|
46107
|
+
get: function get2() {
|
|
46090
46108
|
return lazyResolveRNStyle;
|
|
46091
46109
|
},
|
|
46092
|
-
set: function
|
|
46110
|
+
set: function set3(value) {
|
|
46093
46111
|
lazyResolveRNStyle = value;
|
|
46094
46112
|
initAfterTick();
|
|
46095
46113
|
}
|
|
@@ -46098,10 +46116,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
46098
46116
|
if (!hook.hasOwnProperty("nativeStyleEditorValidAttributes")) {
|
|
46099
46117
|
Object.defineProperty(hook, "nativeStyleEditorValidAttributes", {
|
|
46100
46118
|
enumerable: false,
|
|
46101
|
-
get: function
|
|
46119
|
+
get: function get2() {
|
|
46102
46120
|
return lazyNativeStyleEditorValidAttributes;
|
|
46103
46121
|
},
|
|
46104
|
-
set: function
|
|
46122
|
+
set: function set3(value) {
|
|
46105
46123
|
lazyNativeStyleEditorValidAttributes = value;
|
|
46106
46124
|
initAfterTick();
|
|
46107
46125
|
}
|
|
@@ -46306,7 +46324,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46306
46324
|
}
|
|
46307
46325
|
let outdent = false;
|
|
46308
46326
|
let lastNonAtLine = null;
|
|
46309
|
-
const
|
|
46327
|
+
const result2 = [];
|
|
46310
46328
|
stack.forEach((st) => {
|
|
46311
46329
|
st = st.replace(/\\/g, "/");
|
|
46312
46330
|
if (this._internals.some((internal) => internal.test(st))) {
|
|
@@ -46325,17 +46343,17 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46325
46343
|
if (st) {
|
|
46326
46344
|
if (isAtLine) {
|
|
46327
46345
|
if (lastNonAtLine) {
|
|
46328
|
-
|
|
46346
|
+
result2.push(lastNonAtLine);
|
|
46329
46347
|
lastNonAtLine = null;
|
|
46330
46348
|
}
|
|
46331
|
-
|
|
46349
|
+
result2.push(st);
|
|
46332
46350
|
} else {
|
|
46333
46351
|
outdent = true;
|
|
46334
46352
|
lastNonAtLine = st;
|
|
46335
46353
|
}
|
|
46336
46354
|
}
|
|
46337
46355
|
});
|
|
46338
|
-
return
|
|
46356
|
+
return result2.map((line) => `${indent}${line}
|
|
46339
46357
|
`).join("");
|
|
46340
46358
|
}
|
|
46341
46359
|
captureString(limit, fn = this.captureString) {
|
|
@@ -46429,7 +46447,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46429
46447
|
const col = match[9];
|
|
46430
46448
|
const native = match[10] === "native";
|
|
46431
46449
|
const closeParen = match[11] === ")";
|
|
46432
|
-
let
|
|
46450
|
+
let method2;
|
|
46433
46451
|
const res = {};
|
|
46434
46452
|
if (lnum) {
|
|
46435
46453
|
res.line = Number(lnum);
|
|
@@ -46445,10 +46463,10 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46445
46463
|
} else if (file.charAt(i2) === "(" && file.charAt(i2 - 1) === " ") {
|
|
46446
46464
|
closes--;
|
|
46447
46465
|
if (closes === -1 && file.charAt(i2 - 1) === " ") {
|
|
46448
|
-
const
|
|
46449
|
-
const
|
|
46450
|
-
file =
|
|
46451
|
-
fname += ` (${
|
|
46466
|
+
const before2 = file.slice(0, i2 - 1);
|
|
46467
|
+
const after2 = file.slice(i2 + 1);
|
|
46468
|
+
file = after2;
|
|
46469
|
+
fname += ` (${before2}`;
|
|
46452
46470
|
break;
|
|
46453
46471
|
}
|
|
46454
46472
|
}
|
|
@@ -46458,7 +46476,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46458
46476
|
const methodMatch = fname.match(methodRe);
|
|
46459
46477
|
if (methodMatch) {
|
|
46460
46478
|
fname = methodMatch[1];
|
|
46461
|
-
|
|
46479
|
+
method2 = methodMatch[2];
|
|
46462
46480
|
}
|
|
46463
46481
|
}
|
|
46464
46482
|
setFile(res, file, this._cwd);
|
|
@@ -46480,19 +46498,19 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
46480
46498
|
if (fname) {
|
|
46481
46499
|
res.function = fname;
|
|
46482
46500
|
}
|
|
46483
|
-
if (
|
|
46484
|
-
res.method =
|
|
46501
|
+
if (method2 && fname !== method2) {
|
|
46502
|
+
res.method = method2;
|
|
46485
46503
|
}
|
|
46486
46504
|
return res;
|
|
46487
46505
|
}
|
|
46488
46506
|
}
|
|
46489
|
-
function setFile(
|
|
46507
|
+
function setFile(result2, filename, cwd2) {
|
|
46490
46508
|
if (filename) {
|
|
46491
46509
|
filename = filename.replace(/\\/g, "/");
|
|
46492
46510
|
if (filename.startsWith(`${cwd2}/`)) {
|
|
46493
46511
|
filename = filename.slice(cwd2.length + 1);
|
|
46494
46512
|
}
|
|
46495
|
-
|
|
46513
|
+
result2.file = filename;
|
|
46496
46514
|
}
|
|
46497
46515
|
}
|
|
46498
46516
|
function ignoredPackagesRegExp(ignoredPackages) {
|
|
@@ -46672,16 +46690,16 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
|
46672
46690
|
validateChildKeys(children);
|
|
46673
46691
|
if (hasOwnProperty.call(config, "key")) {
|
|
46674
46692
|
children = getComponentNameFromType(type2);
|
|
46675
|
-
var
|
|
46693
|
+
var keys2 = Object.keys(config).filter(function(k) {
|
|
46676
46694
|
return k !== "key";
|
|
46677
46695
|
});
|
|
46678
|
-
isStaticChildren = 0 <
|
|
46679
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (
|
|
46696
|
+
isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
46697
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
46680
46698
|
let props = %s;
|
|
46681
46699
|
<%s {...props} />
|
|
46682
46700
|
React keys must be passed directly to JSX without using spread:
|
|
46683
46701
|
let props = %s;
|
|
46684
|
-
<%s key={someKey} {...props} />`, isStaticChildren, children,
|
|
46702
|
+
<%s key={someKey} {...props} />`, isStaticChildren, children, keys2, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
46685
46703
|
}
|
|
46686
46704
|
children = null;
|
|
46687
46705
|
maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
@@ -46773,9 +46791,9 @@ var require_cjs = __commonJS((exports, module) => {
|
|
|
46773
46791
|
function getKeys(target) {
|
|
46774
46792
|
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
46775
46793
|
}
|
|
46776
|
-
function propertyIsOnObject(object,
|
|
46794
|
+
function propertyIsOnObject(object, property2) {
|
|
46777
46795
|
try {
|
|
46778
|
-
return
|
|
46796
|
+
return property2 in object;
|
|
46779
46797
|
} catch (_) {
|
|
46780
46798
|
return false;
|
|
46781
46799
|
}
|
|
@@ -46995,16 +47013,16 @@ var require_react_jsx_runtime_development = __commonJS((exports) => {
|
|
|
46995
47013
|
validateChildKeys(children);
|
|
46996
47014
|
if (hasOwnProperty.call(config, "key")) {
|
|
46997
47015
|
children = getComponentNameFromType(type2);
|
|
46998
|
-
var
|
|
47016
|
+
var keys2 = Object.keys(config).filter(function(k) {
|
|
46999
47017
|
return k !== "key";
|
|
47000
47018
|
});
|
|
47001
|
-
isStaticChildren = 0 <
|
|
47002
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (
|
|
47019
|
+
isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
47020
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
47003
47021
|
let props = %s;
|
|
47004
47022
|
<%s {...props} />
|
|
47005
47023
|
React keys must be passed directly to JSX without using spread:
|
|
47006
47024
|
let props = %s;
|
|
47007
|
-
<%s key={someKey} {...props} />`, isStaticChildren, children,
|
|
47025
|
+
<%s key={someKey} {...props} />`, isStaticChildren, children, keys2, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
47008
47026
|
}
|
|
47009
47027
|
children = null;
|
|
47010
47028
|
maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
@@ -69032,7 +69050,6 @@ import process21 from "node:process";
|
|
|
69032
69050
|
// node_modules/ink/build/ink.js
|
|
69033
69051
|
var import_react13 = __toESM(require_react(), 1);
|
|
69034
69052
|
import process20 from "node:process";
|
|
69035
|
-
|
|
69036
69053
|
// node_modules/es-toolkit/dist/function/debounce.mjs
|
|
69037
69054
|
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
69038
69055
|
let pendingThis = undefined;
|
|
@@ -69360,7 +69377,7 @@ var getAllProperties = (object) => {
|
|
|
69360
69377
|
return properties;
|
|
69361
69378
|
};
|
|
69362
69379
|
function autoBind(self2, { include, exclude } = {}) {
|
|
69363
|
-
const
|
|
69380
|
+
const filter2 = (key) => {
|
|
69364
69381
|
const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
69365
69382
|
if (include) {
|
|
69366
69383
|
return include.some(match);
|
|
@@ -69371,7 +69388,7 @@ function autoBind(self2, { include, exclude } = {}) {
|
|
|
69371
69388
|
return true;
|
|
69372
69389
|
};
|
|
69373
69390
|
for (const [object, key] of getAllProperties(self2.constructor.prototype)) {
|
|
69374
|
-
if (key === "constructor" || !
|
|
69391
|
+
if (key === "constructor" || !filter2(key)) {
|
|
69375
69392
|
continue;
|
|
69376
69393
|
}
|
|
69377
69394
|
const descriptor = Reflect.getOwnPropertyDescriptor(object, key);
|
|
@@ -69418,13 +69435,13 @@ var patchConsole = (callback) => {
|
|
|
69418
69435
|
callback("stderr", data);
|
|
69419
69436
|
};
|
|
69420
69437
|
const internalConsole = new console.Console(stdout, stderr);
|
|
69421
|
-
for (const
|
|
69422
|
-
originalMethods[
|
|
69423
|
-
console[
|
|
69438
|
+
for (const method2 of consoleMethods) {
|
|
69439
|
+
originalMethods[method2] = console[method2];
|
|
69440
|
+
console[method2] = internalConsole[method2];
|
|
69424
69441
|
}
|
|
69425
69442
|
return () => {
|
|
69426
|
-
for (const
|
|
69427
|
-
console[
|
|
69443
|
+
for (const method2 of consoleMethods) {
|
|
69444
|
+
console[method2] = originalMethods[method2];
|
|
69428
69445
|
}
|
|
69429
69446
|
originalMethods = {};
|
|
69430
69447
|
};
|
|
@@ -71806,26 +71823,26 @@ $ npm install --save-dev react-devtools-core
|
|
|
71806
71823
|
}
|
|
71807
71824
|
}
|
|
71808
71825
|
}
|
|
71809
|
-
var diff = (
|
|
71810
|
-
if (
|
|
71826
|
+
var diff = (before2, after2) => {
|
|
71827
|
+
if (before2 === after2) {
|
|
71811
71828
|
return;
|
|
71812
71829
|
}
|
|
71813
|
-
if (!
|
|
71814
|
-
return
|
|
71830
|
+
if (!before2) {
|
|
71831
|
+
return after2;
|
|
71815
71832
|
}
|
|
71816
71833
|
const changed = {};
|
|
71817
71834
|
let isChanged = false;
|
|
71818
|
-
for (const key of Object.keys(
|
|
71819
|
-
const isDeleted =
|
|
71835
|
+
for (const key of Object.keys(before2)) {
|
|
71836
|
+
const isDeleted = after2 ? !Object.hasOwn(after2, key) : true;
|
|
71820
71837
|
if (isDeleted) {
|
|
71821
71838
|
changed[key] = undefined;
|
|
71822
71839
|
isChanged = true;
|
|
71823
71840
|
}
|
|
71824
71841
|
}
|
|
71825
|
-
if (
|
|
71826
|
-
for (const key of Object.keys(
|
|
71827
|
-
if (
|
|
71828
|
-
changed[key] =
|
|
71842
|
+
if (after2) {
|
|
71843
|
+
for (const key of Object.keys(after2)) {
|
|
71844
|
+
if (after2[key] !== before2[key]) {
|
|
71845
|
+
changed[key] = after2[key];
|
|
71829
71846
|
isChanged = true;
|
|
71830
71847
|
}
|
|
71831
71848
|
}
|
|
@@ -72162,11 +72179,11 @@ function assembleStyles3() {
|
|
|
72162
72179
|
},
|
|
72163
72180
|
hexToRgb: {
|
|
72164
72181
|
value(hex) {
|
|
72165
|
-
const
|
|
72166
|
-
if (!
|
|
72182
|
+
const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
72183
|
+
if (!matches2) {
|
|
72167
72184
|
return [0, 0, 0];
|
|
72168
72185
|
}
|
|
72169
|
-
let [colorString] =
|
|
72186
|
+
let [colorString] = matches2;
|
|
72170
72187
|
if (colorString.length === 3) {
|
|
72171
72188
|
colorString = [...colorString].map((character) => character + character).join("");
|
|
72172
72189
|
}
|
|
@@ -72209,11 +72226,11 @@ function assembleStyles3() {
|
|
|
72209
72226
|
if (value === 0) {
|
|
72210
72227
|
return 30;
|
|
72211
72228
|
}
|
|
72212
|
-
let
|
|
72229
|
+
let result2 = 30 + (Math.round(blue) << 2 | Math.round(green2) << 1 | Math.round(red2));
|
|
72213
72230
|
if (value === 2) {
|
|
72214
|
-
|
|
72231
|
+
result2 += 60;
|
|
72215
72232
|
}
|
|
72216
|
-
return
|
|
72233
|
+
return result2;
|
|
72217
72234
|
},
|
|
72218
72235
|
enumerable: false
|
|
72219
72236
|
},
|
|
@@ -72293,9 +72310,9 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
72293
72310
|
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
72294
72311
|
return 0;
|
|
72295
72312
|
}
|
|
72296
|
-
const
|
|
72313
|
+
const min2 = forceColor || 0;
|
|
72297
72314
|
if (env5.TERM === "dumb") {
|
|
72298
|
-
return
|
|
72315
|
+
return min2;
|
|
72299
72316
|
}
|
|
72300
72317
|
if (process13.platform === "win32") {
|
|
72301
72318
|
const osRelease = os6.release().split(".");
|
|
@@ -72311,7 +72328,7 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
72311
72328
|
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env5)) || env5.CI_NAME === "codeship") {
|
|
72312
72329
|
return 1;
|
|
72313
72330
|
}
|
|
72314
|
-
return
|
|
72331
|
+
return min2;
|
|
72315
72332
|
}
|
|
72316
72333
|
if ("TEAMCITY_VERSION" in env5) {
|
|
72317
72334
|
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env5.TEAMCITY_VERSION) ? 1 : 0;
|
|
@@ -72348,7 +72365,7 @@ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
72348
72365
|
if ("COLORTERM" in env5) {
|
|
72349
72366
|
return 1;
|
|
72350
72367
|
}
|
|
72351
|
-
return
|
|
72368
|
+
return min2;
|
|
72352
72369
|
}
|
|
72353
72370
|
function createSupportsColor2(stream, options2 = {}) {
|
|
72354
72371
|
const level = _supportsColor2(stream, {
|
|
@@ -72564,21 +72581,21 @@ var colorize = (str2, color, type2) => {
|
|
|
72564
72581
|
return type2 === "foreground" ? source_default2.hex(color)(str2) : source_default2.bgHex(color)(str2);
|
|
72565
72582
|
}
|
|
72566
72583
|
if (color.startsWith("ansi256")) {
|
|
72567
|
-
const
|
|
72568
|
-
if (!
|
|
72584
|
+
const matches2 = ansiRegex2.exec(color);
|
|
72585
|
+
if (!matches2) {
|
|
72569
72586
|
return str2;
|
|
72570
72587
|
}
|
|
72571
|
-
const value = Number(
|
|
72588
|
+
const value = Number(matches2[1]);
|
|
72572
72589
|
return type2 === "foreground" ? source_default2.ansi256(value)(str2) : source_default2.bgAnsi256(value)(str2);
|
|
72573
72590
|
}
|
|
72574
72591
|
if (color.startsWith("rgb")) {
|
|
72575
|
-
const
|
|
72576
|
-
if (!
|
|
72592
|
+
const matches2 = rgbRegex.exec(color);
|
|
72593
|
+
if (!matches2) {
|
|
72577
72594
|
return str2;
|
|
72578
72595
|
}
|
|
72579
|
-
const firstValue = Number(
|
|
72580
|
-
const secondValue = Number(
|
|
72581
|
-
const thirdValue = Number(
|
|
72596
|
+
const firstValue = Number(matches2[1]);
|
|
72597
|
+
const secondValue = Number(matches2[2]);
|
|
72598
|
+
const thirdValue = Number(matches2[3]);
|
|
72582
72599
|
return type2 === "foreground" ? source_default2.rgb(firstValue, secondValue, thirdValue)(str2) : source_default2.bgRgb(firstValue, secondValue, thirdValue)(str2);
|
|
72583
72600
|
}
|
|
72584
72601
|
return str2;
|
|
@@ -73361,13 +73378,13 @@ var createIncremental = (stream, { showCursor = false } = {}) => {
|
|
|
73361
73378
|
};
|
|
73362
73379
|
return render;
|
|
73363
73380
|
};
|
|
73364
|
-
var
|
|
73381
|
+
var create2 = (stream, { showCursor = false, incremental = false } = {}) => {
|
|
73365
73382
|
if (incremental) {
|
|
73366
73383
|
return createIncremental(stream, { showCursor });
|
|
73367
73384
|
}
|
|
73368
73385
|
return createStandard(stream, { showCursor });
|
|
73369
73386
|
};
|
|
73370
|
-
var logUpdate = { create };
|
|
73387
|
+
var logUpdate = { create: create2 };
|
|
73371
73388
|
var log_update_default = logUpdate;
|
|
73372
73389
|
|
|
73373
73390
|
// node_modules/ink/build/instances.js
|
|
@@ -73453,9 +73470,9 @@ var dist_default3 = convertToSpaces;
|
|
|
73453
73470
|
// node_modules/code-excerpt/dist/index.js
|
|
73454
73471
|
var generateLineNumbers = (line, around) => {
|
|
73455
73472
|
const lineNumbers = [];
|
|
73456
|
-
const
|
|
73457
|
-
const
|
|
73458
|
-
for (let lineNumber =
|
|
73473
|
+
const min2 = line - around;
|
|
73474
|
+
const max2 = line + around;
|
|
73475
|
+
for (let lineNumber = min2;lineNumber <= max2; lineNumber++) {
|
|
73459
73476
|
lineNumbers.push(lineNumber);
|
|
73460
73477
|
}
|
|
73461
73478
|
return lineNumbers;
|
|
@@ -73519,14 +73536,14 @@ var Box_default = Box;
|
|
|
73519
73536
|
|
|
73520
73537
|
// node_modules/ink/build/components/Text.js
|
|
73521
73538
|
var import_react10 = __toESM(require_react(), 1);
|
|
73522
|
-
function Text({ color, backgroundColor, dimColor = false, bold: bold2 = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
|
|
73539
|
+
function Text({ color, backgroundColor, dimColor = false, bold: bold2 = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap: wrap2 = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
|
|
73523
73540
|
const { isScreenReaderEnabled } = import_react10.useContext(accessibilityContext);
|
|
73524
73541
|
const inheritedBackgroundColor = import_react10.useContext(backgroundContext);
|
|
73525
73542
|
const childrenOrAriaLabel = isScreenReaderEnabled && ariaLabel ? ariaLabel : children;
|
|
73526
73543
|
if (childrenOrAriaLabel === undefined || childrenOrAriaLabel === null) {
|
|
73527
73544
|
return null;
|
|
73528
73545
|
}
|
|
73529
|
-
const
|
|
73546
|
+
const transform2 = (children2) => {
|
|
73530
73547
|
if (dimColor) {
|
|
73531
73548
|
children2 = source_default2.dim(children2);
|
|
73532
73549
|
}
|
|
@@ -73557,7 +73574,7 @@ function Text({ color, backgroundColor, dimColor = false, bold: bold2 = false, i
|
|
|
73557
73574
|
if (isScreenReaderEnabled && ariaHidden) {
|
|
73558
73575
|
return null;
|
|
73559
73576
|
}
|
|
73560
|
-
return import_react10.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap:
|
|
73577
|
+
return import_react10.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap2 }, internal_transform: transform2 }, isScreenReaderEnabled && ariaLabel ? ariaLabel : children);
|
|
73561
73578
|
}
|
|
73562
73579
|
|
|
73563
73580
|
// node_modules/ink/build/components/ErrorOverview.js
|
|
@@ -73597,7 +73614,7 @@ function ErrorOverview({ error }) {
|
|
|
73597
73614
|
// node_modules/ink/build/components/App.js
|
|
73598
73615
|
var tab = "\t";
|
|
73599
73616
|
var shiftTab = "\x1B[Z";
|
|
73600
|
-
var
|
|
73617
|
+
var escape2 = "\x1B";
|
|
73601
73618
|
|
|
73602
73619
|
class App extends import_react12.PureComponent {
|
|
73603
73620
|
static displayName = "InternalApp";
|
|
@@ -73693,17 +73710,17 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
73693
73710
|
}
|
|
73694
73711
|
};
|
|
73695
73712
|
handleReadable = () => {
|
|
73696
|
-
let
|
|
73697
|
-
while ((
|
|
73698
|
-
this.handleInput(
|
|
73699
|
-
this.internal_eventEmitter.emit("input",
|
|
73713
|
+
let chunk2;
|
|
73714
|
+
while ((chunk2 = this.props.stdin.read()) !== null) {
|
|
73715
|
+
this.handleInput(chunk2);
|
|
73716
|
+
this.internal_eventEmitter.emit("input", chunk2);
|
|
73700
73717
|
}
|
|
73701
73718
|
};
|
|
73702
73719
|
handleInput = (input) => {
|
|
73703
73720
|
if (input === "\x03" && this.props.exitOnCtrlC) {
|
|
73704
73721
|
this.handleExit();
|
|
73705
73722
|
}
|
|
73706
|
-
if (input ===
|
|
73723
|
+
if (input === escape2 && this.state.activeFocusId) {
|
|
73707
73724
|
this.setState({
|
|
73708
73725
|
activeFocusId: undefined
|
|
73709
73726
|
});
|
|
@@ -73840,7 +73857,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
73840
73857
|
}
|
|
73841
73858
|
|
|
73842
73859
|
// node_modules/ink/build/ink.js
|
|
73843
|
-
var
|
|
73860
|
+
var noop2 = () => {};
|
|
73844
73861
|
|
|
73845
73862
|
class Ink {
|
|
73846
73863
|
options;
|
|
@@ -73995,7 +74012,7 @@ class Ink {
|
|
|
73995
74012
|
};
|
|
73996
74013
|
render(node) {
|
|
73997
74014
|
const tree = import_react13.default.createElement(accessibilityContext.Provider, { value: { isScreenReaderEnabled: this.isScreenReaderEnabled } }, import_react13.default.createElement(App, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, writeToStdout: this.writeToStdout, writeToStderr: this.writeToStderr, exitOnCtrlC: this.options.exitOnCtrlC, onExit: this.unmount }, node));
|
|
73998
|
-
reconciler_default.updateContainerSync(tree, this.container, null,
|
|
74015
|
+
reconciler_default.updateContainerSync(tree, this.container, null, noop2);
|
|
73999
74016
|
reconciler_default.flushSyncWork();
|
|
74000
74017
|
}
|
|
74001
74018
|
writeToStdout(data) {
|
|
@@ -74051,7 +74068,7 @@ class Ink {
|
|
|
74051
74068
|
this.log.done();
|
|
74052
74069
|
}
|
|
74053
74070
|
this.isUnmounted = true;
|
|
74054
|
-
reconciler_default.updateContainerSync(null, this.container, null,
|
|
74071
|
+
reconciler_default.updateContainerSync(null, this.container, null, noop2);
|
|
74055
74072
|
reconciler_default.flushSyncWork();
|
|
74056
74073
|
instances_default.delete(this.options.stdout);
|
|
74057
74074
|
if (error instanceof Error) {
|
|
@@ -74061,9 +74078,9 @@ class Ink {
|
|
|
74061
74078
|
}
|
|
74062
74079
|
}
|
|
74063
74080
|
async waitUntilExit() {
|
|
74064
|
-
this.exitPromise ||= new Promise((resolve6,
|
|
74081
|
+
this.exitPromise ||= new Promise((resolve6, reject2) => {
|
|
74065
74082
|
this.resolveExitPromise = resolve6;
|
|
74066
|
-
this.rejectExitPromise =
|
|
74083
|
+
this.rejectExitPromise = reject2;
|
|
74067
74084
|
});
|
|
74068
74085
|
return this.exitPromise;
|
|
74069
74086
|
}
|
|
@@ -77012,11 +77029,11 @@ function assembleStyles4() {
|
|
|
77012
77029
|
},
|
|
77013
77030
|
hexToRgb: {
|
|
77014
77031
|
value(hex) {
|
|
77015
|
-
const
|
|
77016
|
-
if (!
|
|
77032
|
+
const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
77033
|
+
if (!matches2) {
|
|
77017
77034
|
return [0, 0, 0];
|
|
77018
77035
|
}
|
|
77019
|
-
let [colorString] =
|
|
77036
|
+
let [colorString] = matches2;
|
|
77020
77037
|
if (colorString.length === 3) {
|
|
77021
77038
|
colorString = [...colorString].map((character) => character + character).join("");
|
|
77022
77039
|
}
|
|
@@ -77059,11 +77076,11 @@ function assembleStyles4() {
|
|
|
77059
77076
|
if (value === 0) {
|
|
77060
77077
|
return 30;
|
|
77061
77078
|
}
|
|
77062
|
-
let
|
|
77079
|
+
let result2 = 30 + (Math.round(blue) << 2 | Math.round(green2) << 1 | Math.round(red2));
|
|
77063
77080
|
if (value === 2) {
|
|
77064
|
-
|
|
77081
|
+
result2 += 60;
|
|
77065
77082
|
}
|
|
77066
|
-
return
|
|
77083
|
+
return result2;
|
|
77067
77084
|
},
|
|
77068
77085
|
enumerable: false
|
|
77069
77086
|
},
|
|
@@ -77143,9 +77160,9 @@ function _supportsColor3(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
77143
77160
|
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
77144
77161
|
return 0;
|
|
77145
77162
|
}
|
|
77146
|
-
const
|
|
77163
|
+
const min2 = forceColor || 0;
|
|
77147
77164
|
if (env6.TERM === "dumb") {
|
|
77148
|
-
return
|
|
77165
|
+
return min2;
|
|
77149
77166
|
}
|
|
77150
77167
|
if (process23.platform === "win32") {
|
|
77151
77168
|
const osRelease = os7.release().split(".");
|
|
@@ -77161,7 +77178,7 @@ function _supportsColor3(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
77161
77178
|
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env6)) || env6.CI_NAME === "codeship") {
|
|
77162
77179
|
return 1;
|
|
77163
77180
|
}
|
|
77164
|
-
return
|
|
77181
|
+
return min2;
|
|
77165
77182
|
}
|
|
77166
77183
|
if ("TEAMCITY_VERSION" in env6) {
|
|
77167
77184
|
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env6.TEAMCITY_VERSION) ? 1 : 0;
|
|
@@ -77198,7 +77215,7 @@ function _supportsColor3(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
77198
77215
|
if ("COLORTERM" in env6) {
|
|
77199
77216
|
return 1;
|
|
77200
77217
|
}
|
|
77201
|
-
return
|
|
77218
|
+
return min2;
|
|
77202
77219
|
}
|
|
77203
77220
|
function createSupportsColor3(stream, options2 = {}) {
|
|
77204
77221
|
const level = _supportsColor3(stream, {
|
|
@@ -77824,8 +77841,8 @@ var MeasurableItem = ({
|
|
|
77824
77841
|
function useStateRef(initialValue) {
|
|
77825
77842
|
const [state, setStateInternal] = import_react58.useState(initialValue);
|
|
77826
77843
|
const ref = import_react58.useRef(initialValue);
|
|
77827
|
-
const setState = import_react58.useCallback((
|
|
77828
|
-
const nextValue = typeof
|
|
77844
|
+
const setState = import_react58.useCallback((update2) => {
|
|
77845
|
+
const nextValue = typeof update2 === "function" ? update2(ref.current) : update2;
|
|
77829
77846
|
ref.current = nextValue;
|
|
77830
77847
|
setStateInternal(nextValue);
|
|
77831
77848
|
}, []);
|
|
@@ -77987,8 +78004,8 @@ var ControlledScrollView = import_react58.forwardRef(({
|
|
|
77987
78004
|
function useStateRef2(initialValue) {
|
|
77988
78005
|
const [state, setStateInternal] = import_react57.useState(initialValue);
|
|
77989
78006
|
const ref = import_react57.useRef(initialValue);
|
|
77990
|
-
const setState = import_react57.useCallback((
|
|
77991
|
-
const nextValue = typeof
|
|
78007
|
+
const setState = import_react57.useCallback((update2) => {
|
|
78008
|
+
const nextValue = typeof update2 === "function" ? update2(ref.current) : update2;
|
|
77992
78009
|
ref.current = nextValue;
|
|
77993
78010
|
setStateInternal(nextValue);
|
|
77994
78011
|
}, []);
|
|
@@ -79314,8 +79331,8 @@ class HeadlessProvider {
|
|
|
79314
79331
|
});
|
|
79315
79332
|
}
|
|
79316
79333
|
formatTimestamp() {
|
|
79317
|
-
const
|
|
79318
|
-
return
|
|
79334
|
+
const now2 = new Date;
|
|
79335
|
+
return now2.toTimeString().slice(0, 8);
|
|
79319
79336
|
}
|
|
79320
79337
|
log(component, message, level = "info") {
|
|
79321
79338
|
if (level === "debug" && !this.toggles.debugMode) {
|
|
@@ -79511,8 +79528,8 @@ async function handleMessage(client, session, post2, user, options2) {
|
|
|
79511
79528
|
isAllowed,
|
|
79512
79529
|
files: post2.metadata?.files
|
|
79513
79530
|
};
|
|
79514
|
-
const
|
|
79515
|
-
if (
|
|
79531
|
+
const result2 = await executeCommand(parsed.command, parsed.args, ctx2);
|
|
79532
|
+
if (result2.handled) {
|
|
79516
79533
|
return;
|
|
79517
79534
|
}
|
|
79518
79535
|
const defaultPassthroughCommands = new Set(["context", "cost", "compact"]);
|
|
@@ -79599,24 +79616,24 @@ async function handleMessage(client, session, post2, user, options2) {
|
|
|
79599
79616
|
const cmdDef = COMMAND_REGISTRY.find((c) => c.command === parsed.command);
|
|
79600
79617
|
if (!cmdDef?.worksInFirstMessage)
|
|
79601
79618
|
break;
|
|
79602
|
-
const
|
|
79603
|
-
if (
|
|
79619
|
+
const result2 = await executeCommand(parsed.command, parsed.args, ctx);
|
|
79620
|
+
if (result2.handled) {
|
|
79604
79621
|
return;
|
|
79605
79622
|
}
|
|
79606
|
-
if (
|
|
79607
|
-
Object.assign(initialOptions,
|
|
79623
|
+
if (result2.sessionOptions) {
|
|
79624
|
+
Object.assign(initialOptions, result2.sessionOptions);
|
|
79608
79625
|
}
|
|
79609
|
-
if (
|
|
79610
|
-
worktreeBranch =
|
|
79626
|
+
if (result2.worktreeBranch) {
|
|
79627
|
+
worktreeBranch = result2.worktreeBranch;
|
|
79611
79628
|
}
|
|
79612
|
-
if (
|
|
79613
|
-
prompt =
|
|
79629
|
+
if (result2.remainingText !== undefined) {
|
|
79630
|
+
prompt = result2.remainingText;
|
|
79614
79631
|
} else if (parsed.remainder !== undefined) {
|
|
79615
79632
|
prompt = parsed.remainder;
|
|
79616
79633
|
} else {
|
|
79617
79634
|
prompt = "";
|
|
79618
79635
|
}
|
|
79619
|
-
continueProcessing = !!prompt && (cmdDef.isStackable ||
|
|
79636
|
+
continueProcessing = !!prompt && (cmdDef.isStackable || result2.continueProcessing === true);
|
|
79620
79637
|
}
|
|
79621
79638
|
if (!worktreeBranch) {
|
|
79622
79639
|
const branchMatch = prompt.match(/on branch\s+(\S+)/i);
|
|
@@ -79819,8 +79836,8 @@ function mergeAutoUpdateConfig(userConfig) {
|
|
|
79819
79836
|
};
|
|
79820
79837
|
}
|
|
79821
79838
|
function isInScheduledWindow(window2) {
|
|
79822
|
-
const
|
|
79823
|
-
const hour =
|
|
79839
|
+
const now2 = new Date;
|
|
79840
|
+
const hour = now2.getHours();
|
|
79824
79841
|
if (window2.startHour > window2.endHour) {
|
|
79825
79842
|
return hour >= window2.startHour || hour < window2.endHour;
|
|
79826
79843
|
}
|
|
@@ -80379,8 +80396,8 @@ class AutoUpdateManager extends EventEmitter9 {
|
|
|
80379
80396
|
async performUpdate(updateInfo) {
|
|
80380
80397
|
this.updateStatus("installing");
|
|
80381
80398
|
await this.callbacks.broadcastUpdate((fmt) => `\uD83D\uDCE6 ${fmt.formatBold("Installing update")} v${updateInfo.latestVersion}...`).catch(() => {});
|
|
80382
|
-
const
|
|
80383
|
-
if (
|
|
80399
|
+
const result2 = await this.installer.install(updateInfo);
|
|
80400
|
+
if (result2.success) {
|
|
80384
80401
|
this.updateStatus("pending_restart");
|
|
80385
80402
|
this.emit("update:restart", updateInfo.latestVersion);
|
|
80386
80403
|
await this.callbacks.broadcastUpdate((fmt) => `✅ ${fmt.formatBold("Update installed")} - restarting now. ${fmt.formatItalic("Sessions will resume automatically.")}`).catch(() => {});
|
|
@@ -80391,11 +80408,11 @@ class AutoUpdateManager extends EventEmitter9 {
|
|
|
80391
80408
|
process.stdout.write("\x1B[?25h");
|
|
80392
80409
|
process.exit(RESTART_EXIT_CODE);
|
|
80393
80410
|
} else {
|
|
80394
|
-
const errorMsg =
|
|
80411
|
+
const errorMsg = result2.error ?? "Unknown error";
|
|
80395
80412
|
this.state.errorMessage = errorMsg;
|
|
80396
80413
|
this.updateStatus("failed", errorMsg);
|
|
80397
80414
|
this.emit("update:failed", errorMsg);
|
|
80398
|
-
const errorText =
|
|
80415
|
+
const errorText = result2.error;
|
|
80399
80416
|
await this.callbacks.broadcastUpdate((fmt) => `❌ ${fmt.formatBold("Update failed")}: ${errorText}
|
|
80400
80417
|
${getRollbackInstructions(VERSION)}`).catch(() => {});
|
|
80401
80418
|
}
|
|
@@ -80439,8 +80456,8 @@ function wirePlatformEvents(platformId, client, session, ui) {
|
|
|
80439
80456
|
client.on("disconnected", () => {
|
|
80440
80457
|
ui.setPlatformStatus(platformId, { connected: false, reconnecting: true });
|
|
80441
80458
|
});
|
|
80442
|
-
client.on("reconnecting", (
|
|
80443
|
-
ui.setPlatformStatus(platformId, { reconnecting: true, reconnectAttempts:
|
|
80459
|
+
client.on("reconnecting", (attempt2) => {
|
|
80460
|
+
ui.setPlatformStatus(platformId, { reconnecting: true, reconnectAttempts: attempt2 });
|
|
80444
80461
|
});
|
|
80445
80462
|
client.on("error", (e) => {
|
|
80446
80463
|
ui.addLog({ level: "error", component: platformId, message: String(e) });
|