copit 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +897 -832
- package/package.json +1 -1
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);
|
|
@@ -1898,14 +1916,14 @@ var require_signal_exit = __commonJS((exports, module) => {
|
|
|
1898
1916
|
if (opts && opts.alwaysLast) {
|
|
1899
1917
|
ev = "afterexit";
|
|
1900
1918
|
}
|
|
1901
|
-
var
|
|
1919
|
+
var remove2 = function() {
|
|
1902
1920
|
emitter.removeListener(ev, cb);
|
|
1903
1921
|
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
1904
1922
|
unload();
|
|
1905
1923
|
}
|
|
1906
1924
|
};
|
|
1907
1925
|
emitter.on(ev, cb);
|
|
1908
|
-
return
|
|
1926
|
+
return remove2;
|
|
1909
1927
|
};
|
|
1910
1928
|
unload = function unload2() {
|
|
1911
1929
|
if (!loaded || !processOk(global.process)) {
|
|
@@ -2033,10 +2051,10 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
2033
2051
|
return null;
|
|
2034
2052
|
}
|
|
2035
2053
|
var first = heap[0];
|
|
2036
|
-
var
|
|
2037
|
-
if (
|
|
2038
|
-
heap[0] =
|
|
2039
|
-
siftDown(heap,
|
|
2054
|
+
var last2 = heap.pop();
|
|
2055
|
+
if (last2 !== first) {
|
|
2056
|
+
heap[0] = last2;
|
|
2057
|
+
siftDown(heap, last2, 0);
|
|
2040
2058
|
}
|
|
2041
2059
|
return first;
|
|
2042
2060
|
}
|
|
@@ -2275,9 +2293,9 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
2275
2293
|
var currentTime = exports.unstable_now();
|
|
2276
2294
|
var startTime2;
|
|
2277
2295
|
if (typeof options === "object" && options !== null) {
|
|
2278
|
-
var
|
|
2279
|
-
if (typeof
|
|
2280
|
-
startTime2 = currentTime +
|
|
2296
|
+
var delay2 = options.delay;
|
|
2297
|
+
if (typeof delay2 === "number" && delay2 > 0) {
|
|
2298
|
+
startTime2 = currentTime + delay2;
|
|
2281
2299
|
} else {
|
|
2282
2300
|
startTime2 = currentTime;
|
|
2283
2301
|
}
|
|
@@ -2510,11 +2528,11 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
2510
2528
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2511
2529
|
}
|
|
2512
2530
|
}
|
|
2513
|
-
var
|
|
2514
|
-
function
|
|
2531
|
+
var assign2 = Object.assign;
|
|
2532
|
+
function get2(key) {
|
|
2515
2533
|
return key._reactInternals;
|
|
2516
2534
|
}
|
|
2517
|
-
function
|
|
2535
|
+
function set2(key, value) {
|
|
2518
2536
|
key._reactInternals = value;
|
|
2519
2537
|
}
|
|
2520
2538
|
var enableNewReconciler = false;
|
|
@@ -2786,7 +2804,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
2786
2804
|
instance._warnedAboutRefsInRender = true;
|
|
2787
2805
|
}
|
|
2788
2806
|
}
|
|
2789
|
-
var fiber =
|
|
2807
|
+
var fiber = get2(component);
|
|
2790
2808
|
if (!fiber) {
|
|
2791
2809
|
return false;
|
|
2792
2810
|
}
|
|
@@ -2934,7 +2952,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
2934
2952
|
return null;
|
|
2935
2953
|
}
|
|
2936
2954
|
var isArrayImpl = Array.isArray;
|
|
2937
|
-
function
|
|
2955
|
+
function isArray2(a) {
|
|
2938
2956
|
return isArrayImpl(a);
|
|
2939
2957
|
}
|
|
2940
2958
|
var getPublicInstance = $$$hostConfig.getPublicInstance;
|
|
@@ -3080,25 +3098,25 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
3080
3098
|
writable: true
|
|
3081
3099
|
};
|
|
3082
3100
|
Object.defineProperties(console, {
|
|
3083
|
-
log:
|
|
3101
|
+
log: assign2({}, props, {
|
|
3084
3102
|
value: prevLog
|
|
3085
3103
|
}),
|
|
3086
|
-
info:
|
|
3104
|
+
info: assign2({}, props, {
|
|
3087
3105
|
value: prevInfo
|
|
3088
3106
|
}),
|
|
3089
|
-
warn:
|
|
3107
|
+
warn: assign2({}, props, {
|
|
3090
3108
|
value: prevWarn
|
|
3091
3109
|
}),
|
|
3092
|
-
error:
|
|
3110
|
+
error: assign2({}, props, {
|
|
3093
3111
|
value: prevError
|
|
3094
3112
|
}),
|
|
3095
|
-
group:
|
|
3113
|
+
group: assign2({}, props, {
|
|
3096
3114
|
value: prevGroup
|
|
3097
3115
|
}),
|
|
3098
|
-
groupCollapsed:
|
|
3116
|
+
groupCollapsed: assign2({}, props, {
|
|
3099
3117
|
value: prevGroupCollapsed
|
|
3100
3118
|
}),
|
|
3101
|
-
groupEnd:
|
|
3119
|
+
groupEnd: assign2({}, props, {
|
|
3102
3120
|
value: prevGroupEnd
|
|
3103
3121
|
})
|
|
3104
3122
|
});
|
|
@@ -3183,9 +3201,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
3183
3201
|
}
|
|
3184
3202
|
fn();
|
|
3185
3203
|
}
|
|
3186
|
-
} catch (
|
|
3187
|
-
if (
|
|
3188
|
-
var sampleLines =
|
|
3204
|
+
} catch (sample2) {
|
|
3205
|
+
if (sample2 && control && typeof sample2.stack === "string") {
|
|
3206
|
+
var sampleLines = sample2.stack.split(`
|
|
3189
3207
|
`);
|
|
3190
3208
|
var controlLines = control.stack.split(`
|
|
3191
3209
|
`);
|
|
@@ -3300,11 +3318,11 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
3300
3318
|
}
|
|
3301
3319
|
}
|
|
3302
3320
|
}
|
|
3303
|
-
function checkPropTypes(typeSpecs,
|
|
3321
|
+
function checkPropTypes(typeSpecs, values2, location, componentName, element) {
|
|
3304
3322
|
{
|
|
3305
|
-
var
|
|
3323
|
+
var has2 = Function.call.bind(hasOwnProperty);
|
|
3306
3324
|
for (var typeSpecName in typeSpecs) {
|
|
3307
|
-
if (
|
|
3325
|
+
if (has2(typeSpecs, typeSpecName)) {
|
|
3308
3326
|
var error$1 = undefined;
|
|
3309
3327
|
try {
|
|
3310
3328
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
@@ -3312,7 +3330,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
3312
3330
|
err.name = "Invariant Violation";
|
|
3313
3331
|
throw err;
|
|
3314
3332
|
}
|
|
3315
|
-
error$1 = typeSpecs[typeSpecName](
|
|
3333
|
+
error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
3316
3334
|
} catch (ex) {
|
|
3317
3335
|
error$1 = ex;
|
|
3318
3336
|
}
|
|
@@ -3476,7 +3494,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
3476
3494
|
var name = getComponentNameFromFiber(fiber) || "Unknown";
|
|
3477
3495
|
checkPropTypes(childContextTypes, childContext, "child context", name);
|
|
3478
3496
|
}
|
|
3479
|
-
return
|
|
3497
|
+
return assign2({}, parentContext, childContext);
|
|
3480
3498
|
}
|
|
3481
3499
|
}
|
|
3482
3500
|
function pushContextProvider(workInProgress2) {
|
|
@@ -3884,14 +3902,14 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
3884
3902
|
function includesSomeLane(a, b) {
|
|
3885
3903
|
return (a & b) !== NoLanes;
|
|
3886
3904
|
}
|
|
3887
|
-
function isSubsetOfLanes(
|
|
3888
|
-
return (
|
|
3905
|
+
function isSubsetOfLanes(set3, subset) {
|
|
3906
|
+
return (set3 & subset) === subset;
|
|
3889
3907
|
}
|
|
3890
3908
|
function mergeLanes(a, b) {
|
|
3891
3909
|
return a | b;
|
|
3892
3910
|
}
|
|
3893
|
-
function removeLanes(
|
|
3894
|
-
return
|
|
3911
|
+
function removeLanes(set3, subset) {
|
|
3912
|
+
return set3 & ~subset;
|
|
3895
3913
|
}
|
|
3896
3914
|
function intersectLanes(a, b) {
|
|
3897
3915
|
return a & b;
|
|
@@ -3902,10 +3920,10 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
3902
3920
|
function higherPriorityLane(a, b) {
|
|
3903
3921
|
return a !== NoLane && a < b ? a : b;
|
|
3904
3922
|
}
|
|
3905
|
-
function createLaneMap(
|
|
3923
|
+
function createLaneMap(initial2) {
|
|
3906
3924
|
var laneMap = [];
|
|
3907
3925
|
for (var i = 0;i < TotalLanes; i++) {
|
|
3908
|
-
laneMap.push(
|
|
3926
|
+
laneMap.push(initial2);
|
|
3909
3927
|
}
|
|
3910
3928
|
return laneMap;
|
|
3911
3929
|
}
|
|
@@ -4099,7 +4117,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
4099
4117
|
var cancelCallback = Scheduler.unstable_cancelCallback;
|
|
4100
4118
|
var shouldYield = Scheduler.unstable_shouldYield;
|
|
4101
4119
|
var requestPaint = Scheduler.unstable_requestPaint;
|
|
4102
|
-
var
|
|
4120
|
+
var now2 = Scheduler.unstable_now;
|
|
4103
4121
|
var ImmediatePriority = Scheduler.unstable_ImmediatePriority;
|
|
4104
4122
|
var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
|
|
4105
4123
|
var NormalPriority = Scheduler.unstable_NormalPriority;
|
|
@@ -4127,7 +4145,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
4127
4145
|
}
|
|
4128
4146
|
try {
|
|
4129
4147
|
if (enableSchedulingProfiler) {
|
|
4130
|
-
internals =
|
|
4148
|
+
internals = assign2({}, internals, {
|
|
4131
4149
|
getLaneLabelMap,
|
|
4132
4150
|
injectProfilingHooks
|
|
4133
4151
|
});
|
|
@@ -4249,14 +4267,14 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
4249
4267
|
}
|
|
4250
4268
|
function getLaneLabelMap() {
|
|
4251
4269
|
{
|
|
4252
|
-
var
|
|
4270
|
+
var map2 = new Map;
|
|
4253
4271
|
var lane = 1;
|
|
4254
4272
|
for (var index2 = 0;index2 < TotalLanes; index2++) {
|
|
4255
4273
|
var label = getLabelForLane(lane);
|
|
4256
|
-
|
|
4274
|
+
map2.set(lane, label);
|
|
4257
4275
|
lane *= 2;
|
|
4258
4276
|
}
|
|
4259
|
-
return
|
|
4277
|
+
return map2;
|
|
4260
4278
|
}
|
|
4261
4279
|
}
|
|
4262
4280
|
function markCommitStarted(lanes) {
|
|
@@ -5122,9 +5140,9 @@ Error generating stack: ` + x.message + `
|
|
|
5122
5140
|
}
|
|
5123
5141
|
return maybeStrictRoot;
|
|
5124
5142
|
};
|
|
5125
|
-
var setToSortedString = function(
|
|
5143
|
+
var setToSortedString = function(set3) {
|
|
5126
5144
|
var array = [];
|
|
5127
|
-
|
|
5145
|
+
set3.forEach(function(value) {
|
|
5128
5146
|
array.push(value);
|
|
5129
5147
|
});
|
|
5130
5148
|
return array.sort().join(", ");
|
|
@@ -5502,10 +5520,10 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
5502
5520
|
return existingChildren;
|
|
5503
5521
|
}
|
|
5504
5522
|
function useFiber(fiber, pendingProps) {
|
|
5505
|
-
var
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
return
|
|
5523
|
+
var clone2 = createWorkInProgress(fiber, pendingProps);
|
|
5524
|
+
clone2.index = 0;
|
|
5525
|
+
clone2.sibling = null;
|
|
5526
|
+
return clone2;
|
|
5509
5527
|
}
|
|
5510
5528
|
function placeChild(newFiber, lastPlacedIndex, newIndex) {
|
|
5511
5529
|
newFiber.index = newIndex;
|
|
@@ -5613,7 +5631,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
5613
5631
|
return createChild(returnFiber, init(payload), lanes);
|
|
5614
5632
|
}
|
|
5615
5633
|
}
|
|
5616
|
-
if (
|
|
5634
|
+
if (isArray2(newChild) || getIteratorFn(newChild)) {
|
|
5617
5635
|
var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);
|
|
5618
5636
|
_created3.return = returnFiber;
|
|
5619
5637
|
return _created3;
|
|
@@ -5657,7 +5675,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
5657
5675
|
return updateSlot(returnFiber, oldFiber, init(payload), lanes);
|
|
5658
5676
|
}
|
|
5659
5677
|
}
|
|
5660
|
-
if (
|
|
5678
|
+
if (isArray2(newChild) || getIteratorFn(newChild)) {
|
|
5661
5679
|
if (key !== null) {
|
|
5662
5680
|
return null;
|
|
5663
5681
|
}
|
|
@@ -5692,7 +5710,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
5692
5710
|
var init = newChild._init;
|
|
5693
5711
|
return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes);
|
|
5694
5712
|
}
|
|
5695
|
-
if (
|
|
5713
|
+
if (isArray2(newChild) || getIteratorFn(newChild)) {
|
|
5696
5714
|
var _matchedFiber3 = existingChildren.get(newIdx) || null;
|
|
5697
5715
|
return updateFragment2(returnFiber, _matchedFiber3, newChild, lanes, null);
|
|
5698
5716
|
}
|
|
@@ -6060,7 +6078,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6060
6078
|
var init = newChild._init;
|
|
6061
6079
|
return reconcileChildFibers2(returnFiber, currentFirstChild, init(payload), lanes);
|
|
6062
6080
|
}
|
|
6063
|
-
if (
|
|
6081
|
+
if (isArray2(newChild)) {
|
|
6064
6082
|
return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
|
|
6065
6083
|
}
|
|
6066
6084
|
if (getIteratorFn(newChild)) {
|
|
@@ -6211,8 +6229,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6211
6229
|
if (dependency.context === context) {
|
|
6212
6230
|
if (fiber.tag === ClassComponent) {
|
|
6213
6231
|
var lane = pickArbitraryLane(renderLanes2);
|
|
6214
|
-
var
|
|
6215
|
-
|
|
6232
|
+
var update2 = createUpdate(NoTimestamp, lane);
|
|
6233
|
+
update2.tag = ForceUpdate;
|
|
6216
6234
|
var updateQueue = fiber.updateQueue;
|
|
6217
6235
|
if (updateQueue === null)
|
|
6218
6236
|
;
|
|
@@ -6220,12 +6238,12 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6220
6238
|
var sharedQueue = updateQueue.shared;
|
|
6221
6239
|
var pending = sharedQueue.pending;
|
|
6222
6240
|
if (pending === null) {
|
|
6223
|
-
|
|
6241
|
+
update2.next = update2;
|
|
6224
6242
|
} else {
|
|
6225
|
-
|
|
6226
|
-
pending.next =
|
|
6243
|
+
update2.next = pending.next;
|
|
6244
|
+
pending.next = update2;
|
|
6227
6245
|
}
|
|
6228
|
-
sharedQueue.pending =
|
|
6246
|
+
sharedQueue.pending = update2;
|
|
6229
6247
|
}
|
|
6230
6248
|
}
|
|
6231
6249
|
fiber.lanes = mergeLanes(fiber.lanes, renderLanes2);
|
|
@@ -6352,39 +6370,39 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6352
6370
|
concurrentQueues = null;
|
|
6353
6371
|
}
|
|
6354
6372
|
}
|
|
6355
|
-
function enqueueConcurrentHookUpdate(fiber, queue,
|
|
6373
|
+
function enqueueConcurrentHookUpdate(fiber, queue, update2, lane) {
|
|
6356
6374
|
var interleaved = queue.interleaved;
|
|
6357
6375
|
if (interleaved === null) {
|
|
6358
|
-
|
|
6376
|
+
update2.next = update2;
|
|
6359
6377
|
pushConcurrentUpdateQueue(queue);
|
|
6360
6378
|
} else {
|
|
6361
|
-
|
|
6362
|
-
interleaved.next =
|
|
6379
|
+
update2.next = interleaved.next;
|
|
6380
|
+
interleaved.next = update2;
|
|
6363
6381
|
}
|
|
6364
|
-
queue.interleaved =
|
|
6382
|
+
queue.interleaved = update2;
|
|
6365
6383
|
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6366
6384
|
}
|
|
6367
|
-
function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue,
|
|
6385
|
+
function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update2, lane) {
|
|
6368
6386
|
var interleaved = queue.interleaved;
|
|
6369
6387
|
if (interleaved === null) {
|
|
6370
|
-
|
|
6388
|
+
update2.next = update2;
|
|
6371
6389
|
pushConcurrentUpdateQueue(queue);
|
|
6372
6390
|
} else {
|
|
6373
|
-
|
|
6374
|
-
interleaved.next =
|
|
6391
|
+
update2.next = interleaved.next;
|
|
6392
|
+
interleaved.next = update2;
|
|
6375
6393
|
}
|
|
6376
|
-
queue.interleaved =
|
|
6394
|
+
queue.interleaved = update2;
|
|
6377
6395
|
}
|
|
6378
|
-
function enqueueConcurrentClassUpdate(fiber, queue,
|
|
6396
|
+
function enqueueConcurrentClassUpdate(fiber, queue, update2, lane) {
|
|
6379
6397
|
var interleaved = queue.interleaved;
|
|
6380
6398
|
if (interleaved === null) {
|
|
6381
|
-
|
|
6399
|
+
update2.next = update2;
|
|
6382
6400
|
pushConcurrentUpdateQueue(queue);
|
|
6383
6401
|
} else {
|
|
6384
|
-
|
|
6385
|
-
interleaved.next =
|
|
6402
|
+
update2.next = interleaved.next;
|
|
6403
|
+
interleaved.next = update2;
|
|
6386
6404
|
}
|
|
6387
|
-
queue.interleaved =
|
|
6405
|
+
queue.interleaved = update2;
|
|
6388
6406
|
return markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6389
6407
|
}
|
|
6390
6408
|
function enqueueConcurrentRenderForLane(fiber, lane) {
|
|
@@ -6455,18 +6473,18 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6455
6473
|
var queue = workInProgress2.updateQueue;
|
|
6456
6474
|
var currentQueue = current2.updateQueue;
|
|
6457
6475
|
if (queue === currentQueue) {
|
|
6458
|
-
var
|
|
6476
|
+
var clone2 = {
|
|
6459
6477
|
baseState: currentQueue.baseState,
|
|
6460
6478
|
firstBaseUpdate: currentQueue.firstBaseUpdate,
|
|
6461
6479
|
lastBaseUpdate: currentQueue.lastBaseUpdate,
|
|
6462
6480
|
shared: currentQueue.shared,
|
|
6463
6481
|
effects: currentQueue.effects
|
|
6464
6482
|
};
|
|
6465
|
-
workInProgress2.updateQueue =
|
|
6483
|
+
workInProgress2.updateQueue = clone2;
|
|
6466
6484
|
}
|
|
6467
6485
|
}
|
|
6468
6486
|
function createUpdate(eventTime, lane) {
|
|
6469
|
-
var
|
|
6487
|
+
var update2 = {
|
|
6470
6488
|
eventTime,
|
|
6471
6489
|
lane,
|
|
6472
6490
|
tag: UpdateState,
|
|
@@ -6474,9 +6492,9 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6474
6492
|
callback: null,
|
|
6475
6493
|
next: null
|
|
6476
6494
|
};
|
|
6477
|
-
return
|
|
6495
|
+
return update2;
|
|
6478
6496
|
}
|
|
6479
|
-
function enqueueUpdate(fiber,
|
|
6497
|
+
function enqueueUpdate(fiber, update2, lane) {
|
|
6480
6498
|
var updateQueue = fiber.updateQueue;
|
|
6481
6499
|
if (updateQueue === null) {
|
|
6482
6500
|
return null;
|
|
@@ -6491,15 +6509,15 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6491
6509
|
if (isUnsafeClassRenderPhaseUpdate()) {
|
|
6492
6510
|
var pending = sharedQueue.pending;
|
|
6493
6511
|
if (pending === null) {
|
|
6494
|
-
|
|
6512
|
+
update2.next = update2;
|
|
6495
6513
|
} else {
|
|
6496
|
-
|
|
6497
|
-
pending.next =
|
|
6514
|
+
update2.next = pending.next;
|
|
6515
|
+
pending.next = update2;
|
|
6498
6516
|
}
|
|
6499
|
-
sharedQueue.pending =
|
|
6517
|
+
sharedQueue.pending = update2;
|
|
6500
6518
|
return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane);
|
|
6501
6519
|
} else {
|
|
6502
|
-
return enqueueConcurrentClassUpdate(fiber, sharedQueue,
|
|
6520
|
+
return enqueueConcurrentClassUpdate(fiber, sharedQueue, update2, lane);
|
|
6503
6521
|
}
|
|
6504
6522
|
}
|
|
6505
6523
|
function entangleTransitions(root, fiber, lane) {
|
|
@@ -6526,24 +6544,24 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6526
6544
|
var newLast = null;
|
|
6527
6545
|
var firstBaseUpdate = queue.firstBaseUpdate;
|
|
6528
6546
|
if (firstBaseUpdate !== null) {
|
|
6529
|
-
var
|
|
6547
|
+
var update2 = firstBaseUpdate;
|
|
6530
6548
|
do {
|
|
6531
|
-
var
|
|
6532
|
-
eventTime:
|
|
6533
|
-
lane:
|
|
6534
|
-
tag:
|
|
6535
|
-
payload:
|
|
6536
|
-
callback:
|
|
6549
|
+
var clone2 = {
|
|
6550
|
+
eventTime: update2.eventTime,
|
|
6551
|
+
lane: update2.lane,
|
|
6552
|
+
tag: update2.tag,
|
|
6553
|
+
payload: update2.payload,
|
|
6554
|
+
callback: update2.callback,
|
|
6537
6555
|
next: null
|
|
6538
6556
|
};
|
|
6539
6557
|
if (newLast === null) {
|
|
6540
|
-
newFirst = newLast =
|
|
6558
|
+
newFirst = newLast = clone2;
|
|
6541
6559
|
} else {
|
|
6542
|
-
newLast.next =
|
|
6543
|
-
newLast =
|
|
6560
|
+
newLast.next = clone2;
|
|
6561
|
+
newLast = clone2;
|
|
6544
6562
|
}
|
|
6545
|
-
|
|
6546
|
-
} while (
|
|
6563
|
+
update2 = update2.next;
|
|
6564
|
+
} while (update2 !== null);
|
|
6547
6565
|
if (newLast === null) {
|
|
6548
6566
|
newFirst = newLast = capturedUpdate;
|
|
6549
6567
|
} else {
|
|
@@ -6572,10 +6590,10 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6572
6590
|
}
|
|
6573
6591
|
queue.lastBaseUpdate = capturedUpdate;
|
|
6574
6592
|
}
|
|
6575
|
-
function getStateFromUpdate(workInProgress2, queue,
|
|
6576
|
-
switch (
|
|
6593
|
+
function getStateFromUpdate(workInProgress2, queue, update2, prevState, nextProps, instance) {
|
|
6594
|
+
switch (update2.tag) {
|
|
6577
6595
|
case ReplaceState: {
|
|
6578
|
-
var payload =
|
|
6596
|
+
var payload = update2.payload;
|
|
6579
6597
|
if (typeof payload === "function") {
|
|
6580
6598
|
{
|
|
6581
6599
|
enterDisallowedContextReadInDEV();
|
|
@@ -6600,7 +6618,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6600
6618
|
workInProgress2.flags = workInProgress2.flags & ~ShouldCapture | DidCapture;
|
|
6601
6619
|
}
|
|
6602
6620
|
case UpdateState: {
|
|
6603
|
-
var _payload =
|
|
6621
|
+
var _payload = update2.payload;
|
|
6604
6622
|
var partialState;
|
|
6605
6623
|
if (typeof _payload === "function") {
|
|
6606
6624
|
{
|
|
@@ -6624,7 +6642,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6624
6642
|
if (partialState === null || partialState === undefined) {
|
|
6625
6643
|
return prevState;
|
|
6626
6644
|
}
|
|
6627
|
-
return
|
|
6645
|
+
return assign2({}, prevState, partialState);
|
|
6628
6646
|
}
|
|
6629
6647
|
case ForceUpdate: {
|
|
6630
6648
|
hasForceUpdate = true;
|
|
@@ -6673,24 +6691,24 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6673
6691
|
var newBaseState = null;
|
|
6674
6692
|
var newFirstBaseUpdate = null;
|
|
6675
6693
|
var newLastBaseUpdate = null;
|
|
6676
|
-
var
|
|
6694
|
+
var update2 = firstBaseUpdate;
|
|
6677
6695
|
do {
|
|
6678
|
-
var updateLane =
|
|
6679
|
-
var updateEventTime =
|
|
6696
|
+
var updateLane = update2.lane;
|
|
6697
|
+
var updateEventTime = update2.eventTime;
|
|
6680
6698
|
if (!isSubsetOfLanes(renderLanes2, updateLane)) {
|
|
6681
|
-
var
|
|
6699
|
+
var clone2 = {
|
|
6682
6700
|
eventTime: updateEventTime,
|
|
6683
6701
|
lane: updateLane,
|
|
6684
|
-
tag:
|
|
6685
|
-
payload:
|
|
6686
|
-
callback:
|
|
6702
|
+
tag: update2.tag,
|
|
6703
|
+
payload: update2.payload,
|
|
6704
|
+
callback: update2.callback,
|
|
6687
6705
|
next: null
|
|
6688
6706
|
};
|
|
6689
6707
|
if (newLastBaseUpdate === null) {
|
|
6690
|
-
newFirstBaseUpdate = newLastBaseUpdate =
|
|
6708
|
+
newFirstBaseUpdate = newLastBaseUpdate = clone2;
|
|
6691
6709
|
newBaseState = newState;
|
|
6692
6710
|
} else {
|
|
6693
|
-
newLastBaseUpdate = newLastBaseUpdate.next =
|
|
6711
|
+
newLastBaseUpdate = newLastBaseUpdate.next = clone2;
|
|
6694
6712
|
}
|
|
6695
6713
|
newLanes = mergeLanes(newLanes, updateLane);
|
|
6696
6714
|
} else {
|
|
@@ -6698,27 +6716,27 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6698
6716
|
var _clone = {
|
|
6699
6717
|
eventTime: updateEventTime,
|
|
6700
6718
|
lane: NoLane,
|
|
6701
|
-
tag:
|
|
6702
|
-
payload:
|
|
6703
|
-
callback:
|
|
6719
|
+
tag: update2.tag,
|
|
6720
|
+
payload: update2.payload,
|
|
6721
|
+
callback: update2.callback,
|
|
6704
6722
|
next: null
|
|
6705
6723
|
};
|
|
6706
6724
|
newLastBaseUpdate = newLastBaseUpdate.next = _clone;
|
|
6707
6725
|
}
|
|
6708
|
-
newState = getStateFromUpdate(workInProgress2, queue,
|
|
6709
|
-
var callback =
|
|
6710
|
-
if (callback !== null &&
|
|
6726
|
+
newState = getStateFromUpdate(workInProgress2, queue, update2, newState, props, instance);
|
|
6727
|
+
var callback = update2.callback;
|
|
6728
|
+
if (callback !== null && update2.lane !== NoLane) {
|
|
6711
6729
|
workInProgress2.flags |= Callback;
|
|
6712
6730
|
var effects = queue.effects;
|
|
6713
6731
|
if (effects === null) {
|
|
6714
|
-
queue.effects = [
|
|
6732
|
+
queue.effects = [update2];
|
|
6715
6733
|
} else {
|
|
6716
|
-
effects.push(
|
|
6734
|
+
effects.push(update2);
|
|
6717
6735
|
}
|
|
6718
6736
|
}
|
|
6719
6737
|
}
|
|
6720
|
-
|
|
6721
|
-
if (
|
|
6738
|
+
update2 = update2.next;
|
|
6739
|
+
if (update2 === null) {
|
|
6722
6740
|
pendingQueue = queue.shared.pending;
|
|
6723
6741
|
if (pendingQueue === null) {
|
|
6724
6742
|
break;
|
|
@@ -6726,7 +6744,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6726
6744
|
var _lastPendingUpdate = pendingQueue;
|
|
6727
6745
|
var _firstPendingUpdate = _lastPendingUpdate.next;
|
|
6728
6746
|
_lastPendingUpdate.next = null;
|
|
6729
|
-
|
|
6747
|
+
update2 = _firstPendingUpdate;
|
|
6730
6748
|
queue.lastBaseUpdate = _lastPendingUpdate;
|
|
6731
6749
|
queue.shared.pending = null;
|
|
6732
6750
|
}
|
|
@@ -6969,7 +6987,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
6969
6987
|
}
|
|
6970
6988
|
function checkDepsAreArrayDev(deps) {
|
|
6971
6989
|
{
|
|
6972
|
-
if (deps !== undefined && deps !== null && !
|
|
6990
|
+
if (deps !== undefined && deps !== null && !isArray2(deps)) {
|
|
6973
6991
|
error("%s received a final argument that is not an array (instead, received `%s`). When " + "specified, the final argument must be an array.", currentHookNameInDev, typeof deps);
|
|
6974
6992
|
}
|
|
6975
6993
|
}
|
|
@@ -7262,22 +7280,22 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7262
7280
|
var newBaseState = null;
|
|
7263
7281
|
var newBaseQueueFirst = null;
|
|
7264
7282
|
var newBaseQueueLast = null;
|
|
7265
|
-
var
|
|
7283
|
+
var update2 = first;
|
|
7266
7284
|
do {
|
|
7267
|
-
var updateLane =
|
|
7285
|
+
var updateLane = update2.lane;
|
|
7268
7286
|
if (!isSubsetOfLanes(renderLanes, updateLane)) {
|
|
7269
|
-
var
|
|
7287
|
+
var clone2 = {
|
|
7270
7288
|
lane: updateLane,
|
|
7271
|
-
action:
|
|
7272
|
-
hasEagerState:
|
|
7273
|
-
eagerState:
|
|
7289
|
+
action: update2.action,
|
|
7290
|
+
hasEagerState: update2.hasEagerState,
|
|
7291
|
+
eagerState: update2.eagerState,
|
|
7274
7292
|
next: null
|
|
7275
7293
|
};
|
|
7276
7294
|
if (newBaseQueueLast === null) {
|
|
7277
|
-
newBaseQueueFirst = newBaseQueueLast =
|
|
7295
|
+
newBaseQueueFirst = newBaseQueueLast = clone2;
|
|
7278
7296
|
newBaseState = newState;
|
|
7279
7297
|
} else {
|
|
7280
|
-
newBaseQueueLast = newBaseQueueLast.next =
|
|
7298
|
+
newBaseQueueLast = newBaseQueueLast.next = clone2;
|
|
7281
7299
|
}
|
|
7282
7300
|
currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);
|
|
7283
7301
|
markSkippedUpdateLanes(updateLane);
|
|
@@ -7285,22 +7303,22 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7285
7303
|
if (newBaseQueueLast !== null) {
|
|
7286
7304
|
var _clone = {
|
|
7287
7305
|
lane: NoLane,
|
|
7288
|
-
action:
|
|
7289
|
-
hasEagerState:
|
|
7290
|
-
eagerState:
|
|
7306
|
+
action: update2.action,
|
|
7307
|
+
hasEagerState: update2.hasEagerState,
|
|
7308
|
+
eagerState: update2.eagerState,
|
|
7291
7309
|
next: null
|
|
7292
7310
|
};
|
|
7293
7311
|
newBaseQueueLast = newBaseQueueLast.next = _clone;
|
|
7294
7312
|
}
|
|
7295
|
-
if (
|
|
7296
|
-
newState =
|
|
7313
|
+
if (update2.hasEagerState) {
|
|
7314
|
+
newState = update2.eagerState;
|
|
7297
7315
|
} else {
|
|
7298
|
-
var action =
|
|
7316
|
+
var action = update2.action;
|
|
7299
7317
|
newState = reducer(newState, action);
|
|
7300
7318
|
}
|
|
7301
7319
|
}
|
|
7302
|
-
|
|
7303
|
-
} while (
|
|
7320
|
+
update2 = update2.next;
|
|
7321
|
+
} while (update2 !== null && update2 !== first);
|
|
7304
7322
|
if (newBaseQueueLast === null) {
|
|
7305
7323
|
newBaseState = newState;
|
|
7306
7324
|
} else {
|
|
@@ -7342,12 +7360,12 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7342
7360
|
if (lastRenderPhaseUpdate !== null) {
|
|
7343
7361
|
queue.pending = null;
|
|
7344
7362
|
var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
|
|
7345
|
-
var
|
|
7363
|
+
var update2 = firstRenderPhaseUpdate;
|
|
7346
7364
|
do {
|
|
7347
|
-
var action =
|
|
7365
|
+
var action = update2.action;
|
|
7348
7366
|
newState = reducer(newState, action);
|
|
7349
|
-
|
|
7350
|
-
} while (
|
|
7367
|
+
update2 = update2.next;
|
|
7368
|
+
} while (update2 !== firstRenderPhaseUpdate);
|
|
7351
7369
|
if (!objectIs(newState, hook.memoizedState)) {
|
|
7352
7370
|
markWorkInProgressReceivedUpdate();
|
|
7353
7371
|
}
|
|
@@ -7526,10 +7544,10 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7526
7544
|
function rerenderState(initialState) {
|
|
7527
7545
|
return rerenderReducer(basicStateReducer);
|
|
7528
7546
|
}
|
|
7529
|
-
function pushEffect(tag,
|
|
7547
|
+
function pushEffect(tag, create2, destroy, deps) {
|
|
7530
7548
|
var effect = {
|
|
7531
7549
|
tag,
|
|
7532
|
-
create,
|
|
7550
|
+
create: create2,
|
|
7533
7551
|
destroy,
|
|
7534
7552
|
deps,
|
|
7535
7553
|
next: null
|
|
@@ -7566,13 +7584,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7566
7584
|
var hook = updateWorkInProgressHook();
|
|
7567
7585
|
return hook.memoizedState;
|
|
7568
7586
|
}
|
|
7569
|
-
function mountEffectImpl(fiberFlags, hookFlags,
|
|
7587
|
+
function mountEffectImpl(fiberFlags, hookFlags, create2, deps) {
|
|
7570
7588
|
var hook = mountWorkInProgressHook();
|
|
7571
7589
|
var nextDeps = deps === undefined ? null : deps;
|
|
7572
7590
|
currentlyRenderingFiber$1.flags |= fiberFlags;
|
|
7573
|
-
hook.memoizedState = pushEffect(HasEffect | hookFlags,
|
|
7591
|
+
hook.memoizedState = pushEffect(HasEffect | hookFlags, create2, undefined, nextDeps);
|
|
7574
7592
|
}
|
|
7575
|
-
function updateEffectImpl(fiberFlags, hookFlags,
|
|
7593
|
+
function updateEffectImpl(fiberFlags, hookFlags, create2, deps) {
|
|
7576
7594
|
var hook = updateWorkInProgressHook();
|
|
7577
7595
|
var nextDeps = deps === undefined ? null : deps;
|
|
7578
7596
|
var destroy = undefined;
|
|
@@ -7582,31 +7600,31 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7582
7600
|
if (nextDeps !== null) {
|
|
7583
7601
|
var prevDeps = prevEffect.deps;
|
|
7584
7602
|
if (areHookInputsEqual(nextDeps, prevDeps)) {
|
|
7585
|
-
hook.memoizedState = pushEffect(hookFlags,
|
|
7603
|
+
hook.memoizedState = pushEffect(hookFlags, create2, destroy, nextDeps);
|
|
7586
7604
|
return;
|
|
7587
7605
|
}
|
|
7588
7606
|
}
|
|
7589
7607
|
}
|
|
7590
7608
|
currentlyRenderingFiber$1.flags |= fiberFlags;
|
|
7591
|
-
hook.memoizedState = pushEffect(HasEffect | hookFlags,
|
|
7609
|
+
hook.memoizedState = pushEffect(HasEffect | hookFlags, create2, destroy, nextDeps);
|
|
7592
7610
|
}
|
|
7593
|
-
function mountEffect(
|
|
7611
|
+
function mountEffect(create2, deps) {
|
|
7594
7612
|
if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
|
|
7595
|
-
return mountEffectImpl(MountPassiveDev | Passive | PassiveStatic, Passive$1,
|
|
7613
|
+
return mountEffectImpl(MountPassiveDev | Passive | PassiveStatic, Passive$1, create2, deps);
|
|
7596
7614
|
} else {
|
|
7597
|
-
return mountEffectImpl(Passive | PassiveStatic, Passive$1,
|
|
7615
|
+
return mountEffectImpl(Passive | PassiveStatic, Passive$1, create2, deps);
|
|
7598
7616
|
}
|
|
7599
7617
|
}
|
|
7600
|
-
function updateEffect(
|
|
7601
|
-
return updateEffectImpl(Passive, Passive$1,
|
|
7618
|
+
function updateEffect(create2, deps) {
|
|
7619
|
+
return updateEffectImpl(Passive, Passive$1, create2, deps);
|
|
7602
7620
|
}
|
|
7603
|
-
function mountInsertionEffect(
|
|
7604
|
-
return mountEffectImpl(Update, Insertion,
|
|
7621
|
+
function mountInsertionEffect(create2, deps) {
|
|
7622
|
+
return mountEffectImpl(Update, Insertion, create2, deps);
|
|
7605
7623
|
}
|
|
7606
|
-
function updateInsertionEffect(
|
|
7607
|
-
return updateEffectImpl(Update, Insertion,
|
|
7624
|
+
function updateInsertionEffect(create2, deps) {
|
|
7625
|
+
return updateEffectImpl(Update, Insertion, create2, deps);
|
|
7608
7626
|
}
|
|
7609
|
-
function mountLayoutEffect(
|
|
7627
|
+
function mountLayoutEffect(create2, deps) {
|
|
7610
7628
|
var fiberFlags = Update;
|
|
7611
7629
|
{
|
|
7612
7630
|
fiberFlags |= LayoutStatic;
|
|
@@ -7614,15 +7632,15 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7614
7632
|
if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
|
|
7615
7633
|
fiberFlags |= MountLayoutDev;
|
|
7616
7634
|
}
|
|
7617
|
-
return mountEffectImpl(fiberFlags, Layout,
|
|
7635
|
+
return mountEffectImpl(fiberFlags, Layout, create2, deps);
|
|
7618
7636
|
}
|
|
7619
|
-
function updateLayoutEffect(
|
|
7620
|
-
return updateEffectImpl(Update, Layout,
|
|
7637
|
+
function updateLayoutEffect(create2, deps) {
|
|
7638
|
+
return updateEffectImpl(Update, Layout, create2, deps);
|
|
7621
7639
|
}
|
|
7622
|
-
function imperativeHandleEffect(
|
|
7640
|
+
function imperativeHandleEffect(create2, ref) {
|
|
7623
7641
|
if (typeof ref === "function") {
|
|
7624
7642
|
var refCallback = ref;
|
|
7625
|
-
var _inst =
|
|
7643
|
+
var _inst = create2();
|
|
7626
7644
|
refCallback(_inst);
|
|
7627
7645
|
return function() {
|
|
7628
7646
|
refCallback(null);
|
|
@@ -7634,17 +7652,17 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7634
7652
|
error("Expected useImperativeHandle() first argument to either be a " + "ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(refObject).join(", ") + "}");
|
|
7635
7653
|
}
|
|
7636
7654
|
}
|
|
7637
|
-
var _inst2 =
|
|
7655
|
+
var _inst2 = create2();
|
|
7638
7656
|
refObject.current = _inst2;
|
|
7639
7657
|
return function() {
|
|
7640
7658
|
refObject.current = null;
|
|
7641
7659
|
};
|
|
7642
7660
|
}
|
|
7643
7661
|
}
|
|
7644
|
-
function mountImperativeHandle(ref,
|
|
7662
|
+
function mountImperativeHandle(ref, create2, deps) {
|
|
7645
7663
|
{
|
|
7646
|
-
if (typeof
|
|
7647
|
-
error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.",
|
|
7664
|
+
if (typeof create2 !== "function") {
|
|
7665
|
+
error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null");
|
|
7648
7666
|
}
|
|
7649
7667
|
}
|
|
7650
7668
|
var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
@@ -7655,16 +7673,16 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7655
7673
|
if ((currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
|
|
7656
7674
|
fiberFlags |= MountLayoutDev;
|
|
7657
7675
|
}
|
|
7658
|
-
return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null,
|
|
7676
|
+
return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create2, ref), effectDeps);
|
|
7659
7677
|
}
|
|
7660
|
-
function updateImperativeHandle(ref,
|
|
7678
|
+
function updateImperativeHandle(ref, create2, deps) {
|
|
7661
7679
|
{
|
|
7662
|
-
if (typeof
|
|
7663
|
-
error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.",
|
|
7680
|
+
if (typeof create2 !== "function") {
|
|
7681
|
+
error("Expected useImperativeHandle() second argument to be a function " + "that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null");
|
|
7664
7682
|
}
|
|
7665
7683
|
}
|
|
7666
7684
|
var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
|
|
7667
|
-
return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null,
|
|
7685
|
+
return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create2, ref), effectDeps);
|
|
7668
7686
|
}
|
|
7669
7687
|
function mountDebugValue(value, formatterFn) {}
|
|
7670
7688
|
var updateDebugValue = mountDebugValue;
|
|
@@ -7836,7 +7854,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7836
7854
|
}
|
|
7837
7855
|
}
|
|
7838
7856
|
var lane = requestUpdateLane(fiber);
|
|
7839
|
-
var
|
|
7857
|
+
var update2 = {
|
|
7840
7858
|
lane,
|
|
7841
7859
|
action,
|
|
7842
7860
|
hasEagerState: false,
|
|
@@ -7844,9 +7862,9 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7844
7862
|
next: null
|
|
7845
7863
|
};
|
|
7846
7864
|
if (isRenderPhaseUpdate(fiber)) {
|
|
7847
|
-
enqueueRenderPhaseUpdate(queue,
|
|
7865
|
+
enqueueRenderPhaseUpdate(queue, update2);
|
|
7848
7866
|
} else {
|
|
7849
|
-
var root = enqueueConcurrentHookUpdate(fiber, queue,
|
|
7867
|
+
var root = enqueueConcurrentHookUpdate(fiber, queue, update2, lane);
|
|
7850
7868
|
if (root !== null) {
|
|
7851
7869
|
var eventTime = requestEventTime();
|
|
7852
7870
|
scheduleUpdateOnFiber(root, fiber, lane, eventTime);
|
|
@@ -7862,7 +7880,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7862
7880
|
}
|
|
7863
7881
|
}
|
|
7864
7882
|
var lane = requestUpdateLane(fiber);
|
|
7865
|
-
var
|
|
7883
|
+
var update2 = {
|
|
7866
7884
|
lane,
|
|
7867
7885
|
action,
|
|
7868
7886
|
hasEagerState: false,
|
|
@@ -7870,7 +7888,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7870
7888
|
next: null
|
|
7871
7889
|
};
|
|
7872
7890
|
if (isRenderPhaseUpdate(fiber)) {
|
|
7873
|
-
enqueueRenderPhaseUpdate(queue,
|
|
7891
|
+
enqueueRenderPhaseUpdate(queue, update2);
|
|
7874
7892
|
} else {
|
|
7875
7893
|
var alternate = fiber.alternate;
|
|
7876
7894
|
if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {
|
|
@@ -7884,10 +7902,10 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7884
7902
|
try {
|
|
7885
7903
|
var currentState = queue.lastRenderedState;
|
|
7886
7904
|
var eagerState = lastRenderedReducer(currentState, action);
|
|
7887
|
-
|
|
7888
|
-
|
|
7905
|
+
update2.hasEagerState = true;
|
|
7906
|
+
update2.eagerState = eagerState;
|
|
7889
7907
|
if (objectIs(eagerState, currentState)) {
|
|
7890
|
-
enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue,
|
|
7908
|
+
enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update2, lane);
|
|
7891
7909
|
return;
|
|
7892
7910
|
}
|
|
7893
7911
|
} catch (error2) {} finally {
|
|
@@ -7897,7 +7915,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7897
7915
|
}
|
|
7898
7916
|
}
|
|
7899
7917
|
}
|
|
7900
|
-
var root = enqueueConcurrentHookUpdate(fiber, queue,
|
|
7918
|
+
var root = enqueueConcurrentHookUpdate(fiber, queue, update2, lane);
|
|
7901
7919
|
if (root !== null) {
|
|
7902
7920
|
var eventTime = requestEventTime();
|
|
7903
7921
|
scheduleUpdateOnFiber(root, fiber, lane, eventTime);
|
|
@@ -7910,16 +7928,16 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7910
7928
|
var alternate = fiber.alternate;
|
|
7911
7929
|
return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1;
|
|
7912
7930
|
}
|
|
7913
|
-
function enqueueRenderPhaseUpdate(queue,
|
|
7931
|
+
function enqueueRenderPhaseUpdate(queue, update2) {
|
|
7914
7932
|
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
|
|
7915
7933
|
var pending = queue.pending;
|
|
7916
7934
|
if (pending === null) {
|
|
7917
|
-
|
|
7935
|
+
update2.next = update2;
|
|
7918
7936
|
} else {
|
|
7919
|
-
|
|
7920
|
-
pending.next =
|
|
7937
|
+
update2.next = pending.next;
|
|
7938
|
+
pending.next = update2;
|
|
7921
7939
|
}
|
|
7922
|
-
queue.pending =
|
|
7940
|
+
queue.pending = update2;
|
|
7923
7941
|
}
|
|
7924
7942
|
function entangleTransitionUpdate(root, queue, lane) {
|
|
7925
7943
|
if (isTransitionLane(lane)) {
|
|
@@ -7984,38 +8002,38 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
7984
8002
|
mountHookTypesDev();
|
|
7985
8003
|
return readContext(context);
|
|
7986
8004
|
},
|
|
7987
|
-
useEffect: function(
|
|
8005
|
+
useEffect: function(create2, deps) {
|
|
7988
8006
|
currentHookNameInDev = "useEffect";
|
|
7989
8007
|
mountHookTypesDev();
|
|
7990
8008
|
checkDepsAreArrayDev(deps);
|
|
7991
|
-
return mountEffect(
|
|
8009
|
+
return mountEffect(create2, deps);
|
|
7992
8010
|
},
|
|
7993
|
-
useImperativeHandle: function(ref,
|
|
8011
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
7994
8012
|
currentHookNameInDev = "useImperativeHandle";
|
|
7995
8013
|
mountHookTypesDev();
|
|
7996
8014
|
checkDepsAreArrayDev(deps);
|
|
7997
|
-
return mountImperativeHandle(ref,
|
|
8015
|
+
return mountImperativeHandle(ref, create2, deps);
|
|
7998
8016
|
},
|
|
7999
|
-
useInsertionEffect: function(
|
|
8017
|
+
useInsertionEffect: function(create2, deps) {
|
|
8000
8018
|
currentHookNameInDev = "useInsertionEffect";
|
|
8001
8019
|
mountHookTypesDev();
|
|
8002
8020
|
checkDepsAreArrayDev(deps);
|
|
8003
|
-
return mountInsertionEffect(
|
|
8021
|
+
return mountInsertionEffect(create2, deps);
|
|
8004
8022
|
},
|
|
8005
|
-
useLayoutEffect: function(
|
|
8023
|
+
useLayoutEffect: function(create2, deps) {
|
|
8006
8024
|
currentHookNameInDev = "useLayoutEffect";
|
|
8007
8025
|
mountHookTypesDev();
|
|
8008
8026
|
checkDepsAreArrayDev(deps);
|
|
8009
|
-
return mountLayoutEffect(
|
|
8027
|
+
return mountLayoutEffect(create2, deps);
|
|
8010
8028
|
},
|
|
8011
|
-
useMemo: function(
|
|
8029
|
+
useMemo: function(create2, deps) {
|
|
8012
8030
|
currentHookNameInDev = "useMemo";
|
|
8013
8031
|
mountHookTypesDev();
|
|
8014
8032
|
checkDepsAreArrayDev(deps);
|
|
8015
8033
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
8016
8034
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
8017
8035
|
try {
|
|
8018
|
-
return mountMemo(
|
|
8036
|
+
return mountMemo(create2, deps);
|
|
8019
8037
|
} finally {
|
|
8020
8038
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
8021
8039
|
}
|
|
@@ -8093,33 +8111,33 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8093
8111
|
updateHookTypesDev();
|
|
8094
8112
|
return readContext(context);
|
|
8095
8113
|
},
|
|
8096
|
-
useEffect: function(
|
|
8114
|
+
useEffect: function(create2, deps) {
|
|
8097
8115
|
currentHookNameInDev = "useEffect";
|
|
8098
8116
|
updateHookTypesDev();
|
|
8099
|
-
return mountEffect(
|
|
8117
|
+
return mountEffect(create2, deps);
|
|
8100
8118
|
},
|
|
8101
|
-
useImperativeHandle: function(ref,
|
|
8119
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
8102
8120
|
currentHookNameInDev = "useImperativeHandle";
|
|
8103
8121
|
updateHookTypesDev();
|
|
8104
|
-
return mountImperativeHandle(ref,
|
|
8122
|
+
return mountImperativeHandle(ref, create2, deps);
|
|
8105
8123
|
},
|
|
8106
|
-
useInsertionEffect: function(
|
|
8124
|
+
useInsertionEffect: function(create2, deps) {
|
|
8107
8125
|
currentHookNameInDev = "useInsertionEffect";
|
|
8108
8126
|
updateHookTypesDev();
|
|
8109
|
-
return mountInsertionEffect(
|
|
8127
|
+
return mountInsertionEffect(create2, deps);
|
|
8110
8128
|
},
|
|
8111
|
-
useLayoutEffect: function(
|
|
8129
|
+
useLayoutEffect: function(create2, deps) {
|
|
8112
8130
|
currentHookNameInDev = "useLayoutEffect";
|
|
8113
8131
|
updateHookTypesDev();
|
|
8114
|
-
return mountLayoutEffect(
|
|
8132
|
+
return mountLayoutEffect(create2, deps);
|
|
8115
8133
|
},
|
|
8116
|
-
useMemo: function(
|
|
8134
|
+
useMemo: function(create2, deps) {
|
|
8117
8135
|
currentHookNameInDev = "useMemo";
|
|
8118
8136
|
updateHookTypesDev();
|
|
8119
8137
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
8120
8138
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
8121
8139
|
try {
|
|
8122
|
-
return mountMemo(
|
|
8140
|
+
return mountMemo(create2, deps);
|
|
8123
8141
|
} finally {
|
|
8124
8142
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
8125
8143
|
}
|
|
@@ -8197,33 +8215,33 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8197
8215
|
updateHookTypesDev();
|
|
8198
8216
|
return readContext(context);
|
|
8199
8217
|
},
|
|
8200
|
-
useEffect: function(
|
|
8218
|
+
useEffect: function(create2, deps) {
|
|
8201
8219
|
currentHookNameInDev = "useEffect";
|
|
8202
8220
|
updateHookTypesDev();
|
|
8203
|
-
return updateEffect(
|
|
8221
|
+
return updateEffect(create2, deps);
|
|
8204
8222
|
},
|
|
8205
|
-
useImperativeHandle: function(ref,
|
|
8223
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
8206
8224
|
currentHookNameInDev = "useImperativeHandle";
|
|
8207
8225
|
updateHookTypesDev();
|
|
8208
|
-
return updateImperativeHandle(ref,
|
|
8226
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
8209
8227
|
},
|
|
8210
|
-
useInsertionEffect: function(
|
|
8228
|
+
useInsertionEffect: function(create2, deps) {
|
|
8211
8229
|
currentHookNameInDev = "useInsertionEffect";
|
|
8212
8230
|
updateHookTypesDev();
|
|
8213
|
-
return updateInsertionEffect(
|
|
8231
|
+
return updateInsertionEffect(create2, deps);
|
|
8214
8232
|
},
|
|
8215
|
-
useLayoutEffect: function(
|
|
8233
|
+
useLayoutEffect: function(create2, deps) {
|
|
8216
8234
|
currentHookNameInDev = "useLayoutEffect";
|
|
8217
8235
|
updateHookTypesDev();
|
|
8218
|
-
return updateLayoutEffect(
|
|
8236
|
+
return updateLayoutEffect(create2, deps);
|
|
8219
8237
|
},
|
|
8220
|
-
useMemo: function(
|
|
8238
|
+
useMemo: function(create2, deps) {
|
|
8221
8239
|
currentHookNameInDev = "useMemo";
|
|
8222
8240
|
updateHookTypesDev();
|
|
8223
8241
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
8224
8242
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
8225
8243
|
try {
|
|
8226
|
-
return updateMemo(
|
|
8244
|
+
return updateMemo(create2, deps);
|
|
8227
8245
|
} finally {
|
|
8228
8246
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
8229
8247
|
}
|
|
@@ -8301,33 +8319,33 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8301
8319
|
updateHookTypesDev();
|
|
8302
8320
|
return readContext(context);
|
|
8303
8321
|
},
|
|
8304
|
-
useEffect: function(
|
|
8322
|
+
useEffect: function(create2, deps) {
|
|
8305
8323
|
currentHookNameInDev = "useEffect";
|
|
8306
8324
|
updateHookTypesDev();
|
|
8307
|
-
return updateEffect(
|
|
8325
|
+
return updateEffect(create2, deps);
|
|
8308
8326
|
},
|
|
8309
|
-
useImperativeHandle: function(ref,
|
|
8327
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
8310
8328
|
currentHookNameInDev = "useImperativeHandle";
|
|
8311
8329
|
updateHookTypesDev();
|
|
8312
|
-
return updateImperativeHandle(ref,
|
|
8330
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
8313
8331
|
},
|
|
8314
|
-
useInsertionEffect: function(
|
|
8332
|
+
useInsertionEffect: function(create2, deps) {
|
|
8315
8333
|
currentHookNameInDev = "useInsertionEffect";
|
|
8316
8334
|
updateHookTypesDev();
|
|
8317
|
-
return updateInsertionEffect(
|
|
8335
|
+
return updateInsertionEffect(create2, deps);
|
|
8318
8336
|
},
|
|
8319
|
-
useLayoutEffect: function(
|
|
8337
|
+
useLayoutEffect: function(create2, deps) {
|
|
8320
8338
|
currentHookNameInDev = "useLayoutEffect";
|
|
8321
8339
|
updateHookTypesDev();
|
|
8322
|
-
return updateLayoutEffect(
|
|
8340
|
+
return updateLayoutEffect(create2, deps);
|
|
8323
8341
|
},
|
|
8324
|
-
useMemo: function(
|
|
8342
|
+
useMemo: function(create2, deps) {
|
|
8325
8343
|
currentHookNameInDev = "useMemo";
|
|
8326
8344
|
updateHookTypesDev();
|
|
8327
8345
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
8328
8346
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
8329
8347
|
try {
|
|
8330
|
-
return updateMemo(
|
|
8348
|
+
return updateMemo(create2, deps);
|
|
8331
8349
|
} finally {
|
|
8332
8350
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
8333
8351
|
}
|
|
@@ -8408,38 +8426,38 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8408
8426
|
mountHookTypesDev();
|
|
8409
8427
|
return readContext(context);
|
|
8410
8428
|
},
|
|
8411
|
-
useEffect: function(
|
|
8429
|
+
useEffect: function(create2, deps) {
|
|
8412
8430
|
currentHookNameInDev = "useEffect";
|
|
8413
8431
|
warnInvalidHookAccess();
|
|
8414
8432
|
mountHookTypesDev();
|
|
8415
|
-
return mountEffect(
|
|
8433
|
+
return mountEffect(create2, deps);
|
|
8416
8434
|
},
|
|
8417
|
-
useImperativeHandle: function(ref,
|
|
8435
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
8418
8436
|
currentHookNameInDev = "useImperativeHandle";
|
|
8419
8437
|
warnInvalidHookAccess();
|
|
8420
8438
|
mountHookTypesDev();
|
|
8421
|
-
return mountImperativeHandle(ref,
|
|
8439
|
+
return mountImperativeHandle(ref, create2, deps);
|
|
8422
8440
|
},
|
|
8423
|
-
useInsertionEffect: function(
|
|
8441
|
+
useInsertionEffect: function(create2, deps) {
|
|
8424
8442
|
currentHookNameInDev = "useInsertionEffect";
|
|
8425
8443
|
warnInvalidHookAccess();
|
|
8426
8444
|
mountHookTypesDev();
|
|
8427
|
-
return mountInsertionEffect(
|
|
8445
|
+
return mountInsertionEffect(create2, deps);
|
|
8428
8446
|
},
|
|
8429
|
-
useLayoutEffect: function(
|
|
8447
|
+
useLayoutEffect: function(create2, deps) {
|
|
8430
8448
|
currentHookNameInDev = "useLayoutEffect";
|
|
8431
8449
|
warnInvalidHookAccess();
|
|
8432
8450
|
mountHookTypesDev();
|
|
8433
|
-
return mountLayoutEffect(
|
|
8451
|
+
return mountLayoutEffect(create2, deps);
|
|
8434
8452
|
},
|
|
8435
|
-
useMemo: function(
|
|
8453
|
+
useMemo: function(create2, deps) {
|
|
8436
8454
|
currentHookNameInDev = "useMemo";
|
|
8437
8455
|
warnInvalidHookAccess();
|
|
8438
8456
|
mountHookTypesDev();
|
|
8439
8457
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
8440
8458
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
8441
8459
|
try {
|
|
8442
|
-
return mountMemo(
|
|
8460
|
+
return mountMemo(create2, deps);
|
|
8443
8461
|
} finally {
|
|
8444
8462
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
8445
8463
|
}
|
|
@@ -8529,38 +8547,38 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8529
8547
|
updateHookTypesDev();
|
|
8530
8548
|
return readContext(context);
|
|
8531
8549
|
},
|
|
8532
|
-
useEffect: function(
|
|
8550
|
+
useEffect: function(create2, deps) {
|
|
8533
8551
|
currentHookNameInDev = "useEffect";
|
|
8534
8552
|
warnInvalidHookAccess();
|
|
8535
8553
|
updateHookTypesDev();
|
|
8536
|
-
return updateEffect(
|
|
8554
|
+
return updateEffect(create2, deps);
|
|
8537
8555
|
},
|
|
8538
|
-
useImperativeHandle: function(ref,
|
|
8556
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
8539
8557
|
currentHookNameInDev = "useImperativeHandle";
|
|
8540
8558
|
warnInvalidHookAccess();
|
|
8541
8559
|
updateHookTypesDev();
|
|
8542
|
-
return updateImperativeHandle(ref,
|
|
8560
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
8543
8561
|
},
|
|
8544
|
-
useInsertionEffect: function(
|
|
8562
|
+
useInsertionEffect: function(create2, deps) {
|
|
8545
8563
|
currentHookNameInDev = "useInsertionEffect";
|
|
8546
8564
|
warnInvalidHookAccess();
|
|
8547
8565
|
updateHookTypesDev();
|
|
8548
|
-
return updateInsertionEffect(
|
|
8566
|
+
return updateInsertionEffect(create2, deps);
|
|
8549
8567
|
},
|
|
8550
|
-
useLayoutEffect: function(
|
|
8568
|
+
useLayoutEffect: function(create2, deps) {
|
|
8551
8569
|
currentHookNameInDev = "useLayoutEffect";
|
|
8552
8570
|
warnInvalidHookAccess();
|
|
8553
8571
|
updateHookTypesDev();
|
|
8554
|
-
return updateLayoutEffect(
|
|
8572
|
+
return updateLayoutEffect(create2, deps);
|
|
8555
8573
|
},
|
|
8556
|
-
useMemo: function(
|
|
8574
|
+
useMemo: function(create2, deps) {
|
|
8557
8575
|
currentHookNameInDev = "useMemo";
|
|
8558
8576
|
warnInvalidHookAccess();
|
|
8559
8577
|
updateHookTypesDev();
|
|
8560
8578
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
8561
8579
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
8562
8580
|
try {
|
|
8563
|
-
return updateMemo(
|
|
8581
|
+
return updateMemo(create2, deps);
|
|
8564
8582
|
} finally {
|
|
8565
8583
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
8566
8584
|
}
|
|
@@ -8650,38 +8668,38 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8650
8668
|
updateHookTypesDev();
|
|
8651
8669
|
return readContext(context);
|
|
8652
8670
|
},
|
|
8653
|
-
useEffect: function(
|
|
8671
|
+
useEffect: function(create2, deps) {
|
|
8654
8672
|
currentHookNameInDev = "useEffect";
|
|
8655
8673
|
warnInvalidHookAccess();
|
|
8656
8674
|
updateHookTypesDev();
|
|
8657
|
-
return updateEffect(
|
|
8675
|
+
return updateEffect(create2, deps);
|
|
8658
8676
|
},
|
|
8659
|
-
useImperativeHandle: function(ref,
|
|
8677
|
+
useImperativeHandle: function(ref, create2, deps) {
|
|
8660
8678
|
currentHookNameInDev = "useImperativeHandle";
|
|
8661
8679
|
warnInvalidHookAccess();
|
|
8662
8680
|
updateHookTypesDev();
|
|
8663
|
-
return updateImperativeHandle(ref,
|
|
8681
|
+
return updateImperativeHandle(ref, create2, deps);
|
|
8664
8682
|
},
|
|
8665
|
-
useInsertionEffect: function(
|
|
8683
|
+
useInsertionEffect: function(create2, deps) {
|
|
8666
8684
|
currentHookNameInDev = "useInsertionEffect";
|
|
8667
8685
|
warnInvalidHookAccess();
|
|
8668
8686
|
updateHookTypesDev();
|
|
8669
|
-
return updateInsertionEffect(
|
|
8687
|
+
return updateInsertionEffect(create2, deps);
|
|
8670
8688
|
},
|
|
8671
|
-
useLayoutEffect: function(
|
|
8689
|
+
useLayoutEffect: function(create2, deps) {
|
|
8672
8690
|
currentHookNameInDev = "useLayoutEffect";
|
|
8673
8691
|
warnInvalidHookAccess();
|
|
8674
8692
|
updateHookTypesDev();
|
|
8675
|
-
return updateLayoutEffect(
|
|
8693
|
+
return updateLayoutEffect(create2, deps);
|
|
8676
8694
|
},
|
|
8677
|
-
useMemo: function(
|
|
8695
|
+
useMemo: function(create2, deps) {
|
|
8678
8696
|
currentHookNameInDev = "useMemo";
|
|
8679
8697
|
warnInvalidHookAccess();
|
|
8680
8698
|
updateHookTypesDev();
|
|
8681
8699
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
8682
8700
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
8683
8701
|
try {
|
|
8684
|
-
return updateMemo(
|
|
8702
|
+
return updateMemo(create2, deps);
|
|
8685
8703
|
} finally {
|
|
8686
8704
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
8687
8705
|
}
|
|
@@ -8866,7 +8884,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8866
8884
|
}
|
|
8867
8885
|
function resolveDefaultProps(Component, baseProps) {
|
|
8868
8886
|
if (Component && Component.defaultProps) {
|
|
8869
|
-
var props =
|
|
8887
|
+
var props = assign2({}, baseProps);
|
|
8870
8888
|
var defaultProps = Component.defaultProps;
|
|
8871
8889
|
for (var propName in defaultProps) {
|
|
8872
8890
|
if (props[propName] === undefined) {
|
|
@@ -8941,7 +8959,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8941
8959
|
}
|
|
8942
8960
|
warnOnUndefinedDerivedState(ctor, partialState);
|
|
8943
8961
|
}
|
|
8944
|
-
var memoizedState = partialState === null || partialState === undefined ? prevState :
|
|
8962
|
+
var memoizedState = partialState === null || partialState === undefined ? prevState : assign2({}, prevState, partialState);
|
|
8945
8963
|
workInProgress2.memoizedState = memoizedState;
|
|
8946
8964
|
if (workInProgress2.lanes === NoLanes) {
|
|
8947
8965
|
var updateQueue = workInProgress2.updateQueue;
|
|
@@ -8951,18 +8969,18 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8951
8969
|
var classComponentUpdater = {
|
|
8952
8970
|
isMounted,
|
|
8953
8971
|
enqueueSetState: function(inst, payload, callback) {
|
|
8954
|
-
var fiber =
|
|
8972
|
+
var fiber = get2(inst);
|
|
8955
8973
|
var eventTime = requestEventTime();
|
|
8956
8974
|
var lane = requestUpdateLane(fiber);
|
|
8957
|
-
var
|
|
8958
|
-
|
|
8975
|
+
var update2 = createUpdate(eventTime, lane);
|
|
8976
|
+
update2.payload = payload;
|
|
8959
8977
|
if (callback !== undefined && callback !== null) {
|
|
8960
8978
|
{
|
|
8961
8979
|
warnOnInvalidCallback(callback, "setState");
|
|
8962
8980
|
}
|
|
8963
|
-
|
|
8981
|
+
update2.callback = callback;
|
|
8964
8982
|
}
|
|
8965
|
-
var root = enqueueUpdate(fiber,
|
|
8983
|
+
var root = enqueueUpdate(fiber, update2, lane);
|
|
8966
8984
|
if (root !== null) {
|
|
8967
8985
|
scheduleUpdateOnFiber(root, fiber, lane, eventTime);
|
|
8968
8986
|
entangleTransitions(root, fiber, lane);
|
|
@@ -8972,19 +8990,19 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8972
8990
|
}
|
|
8973
8991
|
},
|
|
8974
8992
|
enqueueReplaceState: function(inst, payload, callback) {
|
|
8975
|
-
var fiber =
|
|
8993
|
+
var fiber = get2(inst);
|
|
8976
8994
|
var eventTime = requestEventTime();
|
|
8977
8995
|
var lane = requestUpdateLane(fiber);
|
|
8978
|
-
var
|
|
8979
|
-
|
|
8980
|
-
|
|
8996
|
+
var update2 = createUpdate(eventTime, lane);
|
|
8997
|
+
update2.tag = ReplaceState;
|
|
8998
|
+
update2.payload = payload;
|
|
8981
8999
|
if (callback !== undefined && callback !== null) {
|
|
8982
9000
|
{
|
|
8983
9001
|
warnOnInvalidCallback(callback, "replaceState");
|
|
8984
9002
|
}
|
|
8985
|
-
|
|
9003
|
+
update2.callback = callback;
|
|
8986
9004
|
}
|
|
8987
|
-
var root = enqueueUpdate(fiber,
|
|
9005
|
+
var root = enqueueUpdate(fiber, update2, lane);
|
|
8988
9006
|
if (root !== null) {
|
|
8989
9007
|
scheduleUpdateOnFiber(root, fiber, lane, eventTime);
|
|
8990
9008
|
entangleTransitions(root, fiber, lane);
|
|
@@ -8994,18 +9012,18 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
8994
9012
|
}
|
|
8995
9013
|
},
|
|
8996
9014
|
enqueueForceUpdate: function(inst, callback) {
|
|
8997
|
-
var fiber =
|
|
9015
|
+
var fiber = get2(inst);
|
|
8998
9016
|
var eventTime = requestEventTime();
|
|
8999
9017
|
var lane = requestUpdateLane(fiber);
|
|
9000
|
-
var
|
|
9001
|
-
|
|
9018
|
+
var update2 = createUpdate(eventTime, lane);
|
|
9019
|
+
update2.tag = ForceUpdate;
|
|
9002
9020
|
if (callback !== undefined && callback !== null) {
|
|
9003
9021
|
{
|
|
9004
9022
|
warnOnInvalidCallback(callback, "forceUpdate");
|
|
9005
9023
|
}
|
|
9006
|
-
|
|
9024
|
+
update2.callback = callback;
|
|
9007
9025
|
}
|
|
9008
|
-
var root = enqueueUpdate(fiber,
|
|
9026
|
+
var root = enqueueUpdate(fiber, update2, lane);
|
|
9009
9027
|
if (root !== null) {
|
|
9010
9028
|
scheduleUpdateOnFiber(root, fiber, lane, eventTime);
|
|
9011
9029
|
entangleTransitions(root, fiber, lane);
|
|
@@ -9123,7 +9141,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
9123
9141
|
error("%s: getSnapshotBeforeUpdate() is defined as a static method " + "and will be ignored. Instead, declare it as an instance method.", name);
|
|
9124
9142
|
}
|
|
9125
9143
|
var _state = instance.state;
|
|
9126
|
-
if (_state && (typeof _state !== "object" ||
|
|
9144
|
+
if (_state && (typeof _state !== "object" || isArray2(_state))) {
|
|
9127
9145
|
error("%s.state: must be set to an object or null", name);
|
|
9128
9146
|
}
|
|
9129
9147
|
if (typeof instance.getChildContext === "function" && typeof ctor.childContextTypes !== "object") {
|
|
@@ -9134,7 +9152,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
9134
9152
|
function adoptClassInstance(workInProgress2, instance) {
|
|
9135
9153
|
instance.updater = classComponentUpdater;
|
|
9136
9154
|
workInProgress2.stateNode = instance;
|
|
9137
|
-
|
|
9155
|
+
set2(instance, workInProgress2);
|
|
9138
9156
|
{
|
|
9139
9157
|
instance._reactInternalInstance = fakeInternalInstance;
|
|
9140
9158
|
}
|
|
@@ -9544,28 +9562,28 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
9544
9562
|
}
|
|
9545
9563
|
var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map;
|
|
9546
9564
|
function createRootErrorUpdate(fiber, errorInfo, lane) {
|
|
9547
|
-
var
|
|
9548
|
-
|
|
9549
|
-
|
|
9565
|
+
var update2 = createUpdate(NoTimestamp, lane);
|
|
9566
|
+
update2.tag = CaptureUpdate;
|
|
9567
|
+
update2.payload = {
|
|
9550
9568
|
element: null
|
|
9551
9569
|
};
|
|
9552
9570
|
var error2 = errorInfo.value;
|
|
9553
|
-
|
|
9571
|
+
update2.callback = function() {
|
|
9554
9572
|
onUncaughtError(error2);
|
|
9555
9573
|
logCapturedError(fiber, errorInfo);
|
|
9556
9574
|
};
|
|
9557
|
-
return
|
|
9575
|
+
return update2;
|
|
9558
9576
|
}
|
|
9559
9577
|
function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
9560
|
-
var
|
|
9561
|
-
|
|
9578
|
+
var update2 = createUpdate(NoTimestamp, lane);
|
|
9579
|
+
update2.tag = CaptureUpdate;
|
|
9562
9580
|
var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
|
|
9563
9581
|
if (typeof getDerivedStateFromError === "function") {
|
|
9564
9582
|
var error$1 = errorInfo.value;
|
|
9565
|
-
|
|
9583
|
+
update2.payload = function() {
|
|
9566
9584
|
return getDerivedStateFromError(error$1);
|
|
9567
9585
|
};
|
|
9568
|
-
|
|
9586
|
+
update2.callback = function() {
|
|
9569
9587
|
{
|
|
9570
9588
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
9571
9589
|
}
|
|
@@ -9574,7 +9592,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
9574
9592
|
}
|
|
9575
9593
|
var inst = fiber.stateNode;
|
|
9576
9594
|
if (inst !== null && typeof inst.componentDidCatch === "function") {
|
|
9577
|
-
|
|
9595
|
+
update2.callback = function callback() {
|
|
9578
9596
|
{
|
|
9579
9597
|
markFailedErrorBoundaryForHotReloading(fiber);
|
|
9580
9598
|
}
|
|
@@ -9596,7 +9614,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
9596
9614
|
}
|
|
9597
9615
|
};
|
|
9598
9616
|
}
|
|
9599
|
-
return
|
|
9617
|
+
return update2;
|
|
9600
9618
|
}
|
|
9601
9619
|
function attachPingListener(root, wakeable, lanes) {
|
|
9602
9620
|
var pingCache = root.pingCache;
|
|
@@ -9670,9 +9688,9 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
9670
9688
|
if (currentSourceFiber === null) {
|
|
9671
9689
|
sourceFiber.tag = IncompleteClassComponent;
|
|
9672
9690
|
} else {
|
|
9673
|
-
var
|
|
9674
|
-
|
|
9675
|
-
enqueueUpdate(sourceFiber,
|
|
9691
|
+
var update2 = createUpdate(NoTimestamp, SyncLane);
|
|
9692
|
+
update2.tag = ForceUpdate;
|
|
9693
|
+
enqueueUpdate(sourceFiber, update2, SyncLane);
|
|
9676
9694
|
}
|
|
9677
9695
|
}
|
|
9678
9696
|
sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane);
|
|
@@ -9740,8 +9758,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
9740
9758
|
workInProgress2.flags |= ShouldCapture;
|
|
9741
9759
|
var lane = pickArbitraryLane(rootRenderLanes);
|
|
9742
9760
|
workInProgress2.lanes = mergeLanes(workInProgress2.lanes, lane);
|
|
9743
|
-
var
|
|
9744
|
-
enqueueCapturedUpdate(workInProgress2,
|
|
9761
|
+
var update2 = createRootErrorUpdate(workInProgress2, _errorInfo, lane);
|
|
9762
|
+
enqueueCapturedUpdate(workInProgress2, update2);
|
|
9745
9763
|
return;
|
|
9746
9764
|
}
|
|
9747
9765
|
case ClassComponent:
|
|
@@ -10094,8 +10112,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
10094
10112
|
var error$1 = new Error("Simulated error coming from DevTools");
|
|
10095
10113
|
var lane = pickArbitraryLane(renderLanes2);
|
|
10096
10114
|
workInProgress2.lanes = mergeLanes(workInProgress2.lanes, lane);
|
|
10097
|
-
var
|
|
10098
|
-
enqueueCapturedUpdate(workInProgress2,
|
|
10115
|
+
var update2 = createClassErrorUpdate(workInProgress2, createCapturedValueAtFiber(error$1, workInProgress2), lane);
|
|
10116
|
+
enqueueCapturedUpdate(workInProgress2, update2);
|
|
10099
10117
|
break;
|
|
10100
10118
|
}
|
|
10101
10119
|
}
|
|
@@ -10899,7 +10917,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
10899
10917
|
}
|
|
10900
10918
|
function validateSuspenseListNestedChild(childSlot, index2) {
|
|
10901
10919
|
{
|
|
10902
|
-
var isAnArray =
|
|
10920
|
+
var isAnArray = isArray2(childSlot);
|
|
10903
10921
|
var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === "function";
|
|
10904
10922
|
if (isAnArray || isIterable) {
|
|
10905
10923
|
var type = isAnArray ? "array" : "iterable";
|
|
@@ -10912,7 +10930,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
10912
10930
|
function validateSuspenseListChildren(children, revealOrder) {
|
|
10913
10931
|
{
|
|
10914
10932
|
if ((revealOrder === "forwards" || revealOrder === "backwards") && children !== undefined && children !== null && children !== false) {
|
|
10915
|
-
if (
|
|
10933
|
+
if (isArray2(children)) {
|
|
10916
10934
|
for (var i = 0;i < children.length; i++) {
|
|
10917
10935
|
if (!validateSuspenseListNestedChild(children[i], i)) {
|
|
10918
10936
|
return;
|
|
@@ -10939,7 +10957,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
10939
10957
|
}
|
|
10940
10958
|
}
|
|
10941
10959
|
}
|
|
10942
|
-
function initSuspenseListRenderState(workInProgress2, isBackwards,
|
|
10960
|
+
function initSuspenseListRenderState(workInProgress2, isBackwards, tail2, lastContentRow, tailMode) {
|
|
10943
10961
|
var renderState = workInProgress2.memoizedState;
|
|
10944
10962
|
if (renderState === null) {
|
|
10945
10963
|
workInProgress2.memoizedState = {
|
|
@@ -10947,7 +10965,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
10947
10965
|
rendering: null,
|
|
10948
10966
|
renderingStartTime: 0,
|
|
10949
10967
|
last: lastContentRow,
|
|
10950
|
-
tail,
|
|
10968
|
+
tail: tail2,
|
|
10951
10969
|
tailMode
|
|
10952
10970
|
};
|
|
10953
10971
|
} else {
|
|
@@ -10955,7 +10973,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
10955
10973
|
renderState.rendering = null;
|
|
10956
10974
|
renderState.renderingStartTime = 0;
|
|
10957
10975
|
renderState.last = lastContentRow;
|
|
10958
|
-
renderState.tail =
|
|
10976
|
+
renderState.tail = tail2;
|
|
10959
10977
|
renderState.tailMode = tailMode;
|
|
10960
10978
|
}
|
|
10961
10979
|
}
|
|
@@ -10987,15 +11005,15 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
10987
11005
|
switch (revealOrder) {
|
|
10988
11006
|
case "forwards": {
|
|
10989
11007
|
var lastContentRow = findLastContentRow(workInProgress2.child);
|
|
10990
|
-
var
|
|
11008
|
+
var tail2;
|
|
10991
11009
|
if (lastContentRow === null) {
|
|
10992
|
-
|
|
11010
|
+
tail2 = workInProgress2.child;
|
|
10993
11011
|
workInProgress2.child = null;
|
|
10994
11012
|
} else {
|
|
10995
|
-
|
|
11013
|
+
tail2 = lastContentRow.sibling;
|
|
10996
11014
|
lastContentRow.sibling = null;
|
|
10997
11015
|
}
|
|
10998
|
-
initSuspenseListRenderState(workInProgress2, false,
|
|
11016
|
+
initSuspenseListRenderState(workInProgress2, false, tail2, lastContentRow, tailMode);
|
|
10999
11017
|
break;
|
|
11000
11018
|
}
|
|
11001
11019
|
case "backwards": {
|
|
@@ -11993,7 +12011,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
11993
12011
|
row = row.sibling;
|
|
11994
12012
|
}
|
|
11995
12013
|
}
|
|
11996
|
-
if (renderState.tail !== null &&
|
|
12014
|
+
if (renderState.tail !== null && now2() > getRenderTargetTime()) {
|
|
11997
12015
|
workInProgress2.flags |= DidCapture;
|
|
11998
12016
|
didSuspendAlready = true;
|
|
11999
12017
|
cutOffTailIfNeeded(renderState, false);
|
|
@@ -12018,7 +12036,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
12018
12036
|
bubbleProperties(workInProgress2);
|
|
12019
12037
|
return null;
|
|
12020
12038
|
}
|
|
12021
|
-
} else if (
|
|
12039
|
+
} else if (now2() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes2 !== OffscreenLane) {
|
|
12022
12040
|
workInProgress2.flags |= DidCapture;
|
|
12023
12041
|
didSuspendAlready = true;
|
|
12024
12042
|
cutOffTailIfNeeded(renderState, false);
|
|
@@ -12042,7 +12060,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
12042
12060
|
var next = renderState.tail;
|
|
12043
12061
|
renderState.rendering = next;
|
|
12044
12062
|
renderState.tail = next.sibling;
|
|
12045
|
-
renderState.renderingStartTime =
|
|
12063
|
+
renderState.renderingStartTime = now2();
|
|
12046
12064
|
next.sibling = null;
|
|
12047
12065
|
var suspenseContext = suspenseStackCursor.current;
|
|
12048
12066
|
if (didSuspendAlready) {
|
|
@@ -12562,13 +12580,13 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
12562
12580
|
markComponentLayoutEffectMountStarted(finishedWork);
|
|
12563
12581
|
}
|
|
12564
12582
|
}
|
|
12565
|
-
var
|
|
12583
|
+
var create2 = effect.create;
|
|
12566
12584
|
{
|
|
12567
12585
|
if ((flags & Insertion) !== NoFlags$1) {
|
|
12568
12586
|
setIsRunningInsertionEffect(true);
|
|
12569
12587
|
}
|
|
12570
12588
|
}
|
|
12571
|
-
effect.destroy =
|
|
12589
|
+
effect.destroy = create2();
|
|
12572
12590
|
{
|
|
12573
12591
|
if ((flags & Insertion) !== NoFlags$1) {
|
|
12574
12592
|
setIsRunningInsertionEffect(false);
|
|
@@ -13070,8 +13088,8 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
13070
13088
|
resetTextContent(parent);
|
|
13071
13089
|
parentFiber.flags &= ~ContentReset;
|
|
13072
13090
|
}
|
|
13073
|
-
var
|
|
13074
|
-
insertOrAppendPlacementNode(finishedWork,
|
|
13091
|
+
var before2 = getHostSibling(finishedWork);
|
|
13092
|
+
insertOrAppendPlacementNode(finishedWork, before2, parent);
|
|
13075
13093
|
break;
|
|
13076
13094
|
}
|
|
13077
13095
|
case HostRoot:
|
|
@@ -13085,13 +13103,13 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
13085
13103
|
throw new Error("Invalid host parent fiber. This error is likely caused by a bug " + "in React. Please file an issue.");
|
|
13086
13104
|
}
|
|
13087
13105
|
}
|
|
13088
|
-
function insertOrAppendPlacementNodeIntoContainer(node,
|
|
13106
|
+
function insertOrAppendPlacementNodeIntoContainer(node, before2, parent) {
|
|
13089
13107
|
var tag = node.tag;
|
|
13090
13108
|
var isHost = tag === HostComponent || tag === HostText;
|
|
13091
13109
|
if (isHost) {
|
|
13092
13110
|
var stateNode = node.stateNode;
|
|
13093
|
-
if (
|
|
13094
|
-
insertInContainerBefore(parent, stateNode,
|
|
13111
|
+
if (before2) {
|
|
13112
|
+
insertInContainerBefore(parent, stateNode, before2);
|
|
13095
13113
|
} else {
|
|
13096
13114
|
appendChildToContainer(parent, stateNode);
|
|
13097
13115
|
}
|
|
@@ -13100,22 +13118,22 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
13100
13118
|
else {
|
|
13101
13119
|
var child = node.child;
|
|
13102
13120
|
if (child !== null) {
|
|
13103
|
-
insertOrAppendPlacementNodeIntoContainer(child,
|
|
13121
|
+
insertOrAppendPlacementNodeIntoContainer(child, before2, parent);
|
|
13104
13122
|
var sibling = child.sibling;
|
|
13105
13123
|
while (sibling !== null) {
|
|
13106
|
-
insertOrAppendPlacementNodeIntoContainer(sibling,
|
|
13124
|
+
insertOrAppendPlacementNodeIntoContainer(sibling, before2, parent);
|
|
13107
13125
|
sibling = sibling.sibling;
|
|
13108
13126
|
}
|
|
13109
13127
|
}
|
|
13110
13128
|
}
|
|
13111
13129
|
}
|
|
13112
|
-
function insertOrAppendPlacementNode(node,
|
|
13130
|
+
function insertOrAppendPlacementNode(node, before2, parent) {
|
|
13113
13131
|
var tag = node.tag;
|
|
13114
13132
|
var isHost = tag === HostComponent || tag === HostText;
|
|
13115
13133
|
if (isHost) {
|
|
13116
13134
|
var stateNode = node.stateNode;
|
|
13117
|
-
if (
|
|
13118
|
-
insertBefore(parent, stateNode,
|
|
13135
|
+
if (before2) {
|
|
13136
|
+
insertBefore(parent, stateNode, before2);
|
|
13119
13137
|
} else {
|
|
13120
13138
|
appendChild(parent, stateNode);
|
|
13121
13139
|
}
|
|
@@ -13124,10 +13142,10 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
13124
13142
|
else {
|
|
13125
13143
|
var child = node.child;
|
|
13126
13144
|
if (child !== null) {
|
|
13127
|
-
insertOrAppendPlacementNode(child,
|
|
13145
|
+
insertOrAppendPlacementNode(child, before2, parent);
|
|
13128
13146
|
var sibling = child.sibling;
|
|
13129
13147
|
while (sibling !== null) {
|
|
13130
|
-
insertOrAppendPlacementNode(sibling,
|
|
13148
|
+
insertOrAppendPlacementNode(sibling, before2, parent);
|
|
13131
13149
|
sibling = sibling.sibling;
|
|
13132
13150
|
}
|
|
13133
13151
|
}
|
|
@@ -14446,7 +14464,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14446
14464
|
return isReactActEnvironmentGlobal;
|
|
14447
14465
|
}
|
|
14448
14466
|
}
|
|
14449
|
-
var
|
|
14467
|
+
var ceil2 = Math.ceil;
|
|
14450
14468
|
var { ReactCurrentDispatcher: ReactCurrentDispatcher$2, ReactCurrentOwner: ReactCurrentOwner$2, ReactCurrentBatchConfig: ReactCurrentBatchConfig$2, ReactCurrentActQueue: ReactCurrentActQueue$1 } = ReactSharedInternals;
|
|
14451
14469
|
var NoContext = 0;
|
|
14452
14470
|
var BatchedContext = 1;
|
|
@@ -14479,7 +14497,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14479
14497
|
var RENDER_TIMEOUT_MS = 500;
|
|
14480
14498
|
var workInProgressTransitions = null;
|
|
14481
14499
|
function resetRenderTimer() {
|
|
14482
|
-
workInProgressRootRenderTargetTime =
|
|
14500
|
+
workInProgressRootRenderTargetTime = now2() + RENDER_TIMEOUT_MS;
|
|
14483
14501
|
}
|
|
14484
14502
|
function getRenderTargetTime() {
|
|
14485
14503
|
return workInProgressRootRenderTargetTime;
|
|
@@ -14508,12 +14526,12 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14508
14526
|
}
|
|
14509
14527
|
function requestEventTime() {
|
|
14510
14528
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
|
|
14511
|
-
return
|
|
14529
|
+
return now2();
|
|
14512
14530
|
}
|
|
14513
14531
|
if (currentEventTime !== NoTimestamp) {
|
|
14514
14532
|
return currentEventTime;
|
|
14515
14533
|
}
|
|
14516
|
-
currentEventTime =
|
|
14534
|
+
currentEventTime = now2();
|
|
14517
14535
|
return currentEventTime;
|
|
14518
14536
|
}
|
|
14519
14537
|
function requestUpdateLane(fiber) {
|
|
@@ -14704,7 +14722,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14704
14722
|
var fatalError = workInProgressRootFatalError;
|
|
14705
14723
|
prepareFreshStack(root, NoLanes);
|
|
14706
14724
|
markRootSuspended$1(root, lanes);
|
|
14707
|
-
ensureRootIsScheduled(root,
|
|
14725
|
+
ensureRootIsScheduled(root, now2());
|
|
14708
14726
|
throw fatalError;
|
|
14709
14727
|
}
|
|
14710
14728
|
if (exitStatus === RootDidNotComplete) {
|
|
@@ -14725,7 +14743,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14725
14743
|
var _fatalError = workInProgressRootFatalError;
|
|
14726
14744
|
prepareFreshStack(root, NoLanes);
|
|
14727
14745
|
markRootSuspended$1(root, lanes);
|
|
14728
|
-
ensureRootIsScheduled(root,
|
|
14746
|
+
ensureRootIsScheduled(root, now2());
|
|
14729
14747
|
throw _fatalError;
|
|
14730
14748
|
}
|
|
14731
14749
|
}
|
|
@@ -14734,7 +14752,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14734
14752
|
finishConcurrentRender(root, exitStatus, lanes);
|
|
14735
14753
|
}
|
|
14736
14754
|
}
|
|
14737
|
-
ensureRootIsScheduled(root,
|
|
14755
|
+
ensureRootIsScheduled(root, now2());
|
|
14738
14756
|
if (root.callbackNode === originalCallbackNode) {
|
|
14739
14757
|
return performConcurrentWorkOnRoot.bind(null, root);
|
|
14740
14758
|
}
|
|
@@ -14779,7 +14797,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14779
14797
|
case RootSuspended: {
|
|
14780
14798
|
markRootSuspended$1(root, lanes);
|
|
14781
14799
|
if (includesOnlyRetries(lanes) && !shouldForceFlushFallbacksInDEV()) {
|
|
14782
|
-
var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS -
|
|
14800
|
+
var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now2();
|
|
14783
14801
|
if (msUntilTimeout > 10) {
|
|
14784
14802
|
var nextLanes = getNextLanes(root, NoLanes);
|
|
14785
14803
|
if (nextLanes !== NoLanes) {
|
|
@@ -14806,7 +14824,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14806
14824
|
if (!shouldForceFlushFallbacksInDEV()) {
|
|
14807
14825
|
var mostRecentEventTime = getMostRecentEventTime(root, lanes);
|
|
14808
14826
|
var eventTimeMs = mostRecentEventTime;
|
|
14809
|
-
var timeElapsedMs =
|
|
14827
|
+
var timeElapsedMs = now2() - eventTimeMs;
|
|
14810
14828
|
var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs;
|
|
14811
14829
|
if (_msUntilTimeout > 10) {
|
|
14812
14830
|
root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout);
|
|
@@ -14883,7 +14901,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14883
14901
|
flushPassiveEffects();
|
|
14884
14902
|
var lanes = getNextLanes(root, NoLanes);
|
|
14885
14903
|
if (!includesSomeLane(lanes, SyncLane)) {
|
|
14886
|
-
ensureRootIsScheduled(root,
|
|
14904
|
+
ensureRootIsScheduled(root, now2());
|
|
14887
14905
|
return null;
|
|
14888
14906
|
}
|
|
14889
14907
|
var exitStatus = renderRootSync(root, lanes);
|
|
@@ -14898,7 +14916,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14898
14916
|
var fatalError = workInProgressRootFatalError;
|
|
14899
14917
|
prepareFreshStack(root, NoLanes);
|
|
14900
14918
|
markRootSuspended$1(root, lanes);
|
|
14901
|
-
ensureRootIsScheduled(root,
|
|
14919
|
+
ensureRootIsScheduled(root, now2());
|
|
14902
14920
|
throw fatalError;
|
|
14903
14921
|
}
|
|
14904
14922
|
if (exitStatus === RootDidNotComplete) {
|
|
@@ -14908,13 +14926,13 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
14908
14926
|
root.finishedWork = finishedWork;
|
|
14909
14927
|
root.finishedLanes = lanes;
|
|
14910
14928
|
commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
|
|
14911
|
-
ensureRootIsScheduled(root,
|
|
14929
|
+
ensureRootIsScheduled(root, now2());
|
|
14912
14930
|
return null;
|
|
14913
14931
|
}
|
|
14914
14932
|
function flushRoot(root, lanes) {
|
|
14915
14933
|
if (lanes !== NoLanes) {
|
|
14916
14934
|
markRootEntangled(root, mergeLanes(lanes, SyncLane));
|
|
14917
|
-
ensureRootIsScheduled(root,
|
|
14935
|
+
ensureRootIsScheduled(root, now2());
|
|
14918
14936
|
if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
|
|
14919
14937
|
resetRenderTimer();
|
|
14920
14938
|
flushSyncCallbacks();
|
|
@@ -15104,7 +15122,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
15104
15122
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
15105
15123
|
}
|
|
15106
15124
|
function markCommitTimeOfFallback() {
|
|
15107
|
-
globalMostRecentFallbackTime =
|
|
15125
|
+
globalMostRecentFallbackTime = now2();
|
|
15108
15126
|
}
|
|
15109
15127
|
function markSkippedUpdateLanes(lane) {
|
|
15110
15128
|
workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
|
|
@@ -15438,7 +15456,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
15438
15456
|
{
|
|
15439
15457
|
onCommitRoot$1();
|
|
15440
15458
|
}
|
|
15441
|
-
ensureRootIsScheduled(root,
|
|
15459
|
+
ensureRootIsScheduled(root, now2());
|
|
15442
15460
|
if (recoverableErrors !== null) {
|
|
15443
15461
|
var onRecoverableError = root.onRecoverableError;
|
|
15444
15462
|
for (var i = 0;i < recoverableErrors.length; i++) {
|
|
@@ -15590,8 +15608,8 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
15590
15608
|
var onUncaughtError = prepareToThrowUncaughtError;
|
|
15591
15609
|
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error2) {
|
|
15592
15610
|
var errorInfo = createCapturedValueAtFiber(error2, sourceFiber);
|
|
15593
|
-
var
|
|
15594
|
-
var root = enqueueUpdate(rootFiber,
|
|
15611
|
+
var update2 = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
|
|
15612
|
+
var root = enqueueUpdate(rootFiber, update2, SyncLane);
|
|
15595
15613
|
var eventTime = requestEventTime();
|
|
15596
15614
|
if (root !== null) {
|
|
15597
15615
|
markRootUpdated(root, SyncLane, eventTime);
|
|
@@ -15620,8 +15638,8 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
15620
15638
|
var instance = fiber.stateNode;
|
|
15621
15639
|
if (typeof ctor.getDerivedStateFromError === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) {
|
|
15622
15640
|
var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber);
|
|
15623
|
-
var
|
|
15624
|
-
var root = enqueueUpdate(fiber,
|
|
15641
|
+
var update2 = createClassErrorUpdate(fiber, errorInfo, SyncLane);
|
|
15642
|
+
var root = enqueueUpdate(fiber, update2, SyncLane);
|
|
15625
15643
|
var eventTime = requestEventTime();
|
|
15626
15644
|
if (root !== null) {
|
|
15627
15645
|
markRootUpdated(root, SyncLane, eventTime);
|
|
@@ -15649,7 +15667,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
15649
15667
|
markRootPinged(root, pingedLanes);
|
|
15650
15668
|
warnIfSuspenseResolutionNotWrappedWithActDEV(root);
|
|
15651
15669
|
if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
|
|
15652
|
-
if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) &&
|
|
15670
|
+
if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now2() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
|
|
15653
15671
|
prepareFreshStack(root, NoLanes);
|
|
15654
15672
|
} else {
|
|
15655
15673
|
workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
|
|
@@ -15699,7 +15717,7 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
15699
15717
|
retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
15700
15718
|
}
|
|
15701
15719
|
function jnd(timeElapsed) {
|
|
15702
|
-
return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 :
|
|
15720
|
+
return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil2(timeElapsed / 1960) * 1960;
|
|
15703
15721
|
}
|
|
15704
15722
|
function checkForNestedUpdates() {
|
|
15705
15723
|
if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
|
|
@@ -16061,12 +16079,12 @@ It looks like you wrote ` + hookName + "(async () => ...) or returned a Promise.
|
|
|
16061
16079
|
failedBoundaries.add(fiber);
|
|
16062
16080
|
}
|
|
16063
16081
|
}
|
|
16064
|
-
var scheduleRefresh = function(root,
|
|
16082
|
+
var scheduleRefresh = function(root, update2) {
|
|
16065
16083
|
{
|
|
16066
16084
|
if (resolveFamily === null) {
|
|
16067
16085
|
return;
|
|
16068
16086
|
}
|
|
16069
|
-
var { staleFamilies, updatedFamilies } =
|
|
16087
|
+
var { staleFamilies, updatedFamilies } = update2;
|
|
16070
16088
|
flushPassiveEffects();
|
|
16071
16089
|
flushSync(function() {
|
|
16072
16090
|
scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
|
|
@@ -16736,7 +16754,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16736
16754
|
if (!parentComponent) {
|
|
16737
16755
|
return emptyContextObject;
|
|
16738
16756
|
}
|
|
16739
|
-
var fiber =
|
|
16757
|
+
var fiber = get2(parentComponent);
|
|
16740
16758
|
var parentContext = findCurrentUnmaskedContext(fiber);
|
|
16741
16759
|
if (fiber.tag === ClassComponent) {
|
|
16742
16760
|
var Component = fiber.type;
|
|
@@ -16747,13 +16765,13 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16747
16765
|
return parentContext;
|
|
16748
16766
|
}
|
|
16749
16767
|
function findHostInstance(component) {
|
|
16750
|
-
var fiber =
|
|
16768
|
+
var fiber = get2(component);
|
|
16751
16769
|
if (fiber === undefined) {
|
|
16752
16770
|
if (typeof component.render === "function") {
|
|
16753
16771
|
throw new Error("Unable to find node on an unmounted component.");
|
|
16754
16772
|
} else {
|
|
16755
|
-
var
|
|
16756
|
-
throw new Error("Argument appears to not be a ReactComponent. Keys: " +
|
|
16773
|
+
var keys2 = Object.keys(component).join(",");
|
|
16774
|
+
throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys2);
|
|
16757
16775
|
}
|
|
16758
16776
|
}
|
|
16759
16777
|
var hostFiber = findCurrentHostFiber(fiber);
|
|
@@ -16764,13 +16782,13 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16764
16782
|
}
|
|
16765
16783
|
function findHostInstanceWithWarning(component, methodName) {
|
|
16766
16784
|
{
|
|
16767
|
-
var fiber =
|
|
16785
|
+
var fiber = get2(component);
|
|
16768
16786
|
if (fiber === undefined) {
|
|
16769
16787
|
if (typeof component.render === "function") {
|
|
16770
16788
|
throw new Error("Unable to find node on an unmounted component.");
|
|
16771
16789
|
} else {
|
|
16772
|
-
var
|
|
16773
|
-
throw new Error("Argument appears to not be a ReactComponent. Keys: " +
|
|
16790
|
+
var keys2 = Object.keys(component).join(",");
|
|
16791
|
+
throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys2);
|
|
16774
16792
|
}
|
|
16775
16793
|
}
|
|
16776
16794
|
var hostFiber = findCurrentHostFiber(fiber);
|
|
@@ -16813,9 +16831,9 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16813
16831
|
var current2 = root.current;
|
|
16814
16832
|
var eventTime = requestEventTime();
|
|
16815
16833
|
var lane = requestUpdateLane(current2);
|
|
16816
|
-
var
|
|
16817
|
-
|
|
16818
|
-
enqueueUpdate(current2,
|
|
16834
|
+
var update2 = createUpdate(eventTime, lane);
|
|
16835
|
+
update2.callback = callback !== undefined && callback !== null ? callback : null;
|
|
16836
|
+
enqueueUpdate(current2, update2, lane);
|
|
16819
16837
|
scheduleInitialHydrationOnRoot(root, lane, eventTime);
|
|
16820
16838
|
return root;
|
|
16821
16839
|
}
|
|
@@ -16843,8 +16861,8 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16843
16861
|
` + "Check the render method of %s.", getComponentNameFromFiber(current) || "Unknown");
|
|
16844
16862
|
}
|
|
16845
16863
|
}
|
|
16846
|
-
var
|
|
16847
|
-
|
|
16864
|
+
var update2 = createUpdate(eventTime, lane);
|
|
16865
|
+
update2.payload = {
|
|
16848
16866
|
element
|
|
16849
16867
|
};
|
|
16850
16868
|
callback = callback === undefined ? null : callback;
|
|
@@ -16854,9 +16872,9 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16854
16872
|
error("render(...): Expected the last optional `callback` argument to be a " + "function. Instead received: %s.", callback);
|
|
16855
16873
|
}
|
|
16856
16874
|
}
|
|
16857
|
-
|
|
16875
|
+
update2.callback = callback;
|
|
16858
16876
|
}
|
|
16859
|
-
var root = enqueueUpdate(current$1,
|
|
16877
|
+
var root = enqueueUpdate(current$1, update2, lane);
|
|
16860
16878
|
if (root !== null) {
|
|
16861
16879
|
scheduleUpdateOnFiber(root, current$1, lane, eventTime);
|
|
16862
16880
|
entangleTransitions(root, current$1, lane);
|
|
@@ -16979,9 +16997,9 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16979
16997
|
{
|
|
16980
16998
|
var copyWithDeleteImpl = function(obj, path, index2) {
|
|
16981
16999
|
var key = path[index2];
|
|
16982
|
-
var updated =
|
|
17000
|
+
var updated = isArray2(obj) ? obj.slice() : assign2({}, obj);
|
|
16983
17001
|
if (index2 + 1 === path.length) {
|
|
16984
|
-
if (
|
|
17002
|
+
if (isArray2(updated)) {
|
|
16985
17003
|
updated.splice(key, 1);
|
|
16986
17004
|
} else {
|
|
16987
17005
|
delete updated[key];
|
|
@@ -16996,11 +17014,11 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
16996
17014
|
};
|
|
16997
17015
|
var copyWithRenameImpl = function(obj, oldPath, newPath, index2) {
|
|
16998
17016
|
var oldKey = oldPath[index2];
|
|
16999
|
-
var updated =
|
|
17017
|
+
var updated = isArray2(obj) ? obj.slice() : assign2({}, obj);
|
|
17000
17018
|
if (index2 + 1 === oldPath.length) {
|
|
17001
17019
|
var newKey = newPath[index2];
|
|
17002
17020
|
updated[newKey] = updated[oldKey];
|
|
17003
|
-
if (
|
|
17021
|
+
if (isArray2(updated)) {
|
|
17004
17022
|
updated.splice(oldKey, 1);
|
|
17005
17023
|
} else {
|
|
17006
17024
|
delete updated[oldKey];
|
|
@@ -17029,7 +17047,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
17029
17047
|
return value;
|
|
17030
17048
|
}
|
|
17031
17049
|
var key = path[index2];
|
|
17032
|
-
var updated =
|
|
17050
|
+
var updated = isArray2(obj) ? obj.slice() : assign2({}, obj);
|
|
17033
17051
|
updated[key] = copyWithSetImpl(obj[key], path, index2 + 1, value);
|
|
17034
17052
|
return updated;
|
|
17035
17053
|
};
|
|
@@ -17050,7 +17068,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
17050
17068
|
var newState = copyWithSet(hook.memoizedState, path, value);
|
|
17051
17069
|
hook.memoizedState = newState;
|
|
17052
17070
|
hook.baseState = newState;
|
|
17053
|
-
fiber.memoizedProps =
|
|
17071
|
+
fiber.memoizedProps = assign2({}, fiber.memoizedProps);
|
|
17054
17072
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
17055
17073
|
if (root !== null) {
|
|
17056
17074
|
scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
@@ -17063,7 +17081,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
17063
17081
|
var newState = copyWithDelete(hook.memoizedState, path);
|
|
17064
17082
|
hook.memoizedState = newState;
|
|
17065
17083
|
hook.baseState = newState;
|
|
17066
|
-
fiber.memoizedProps =
|
|
17084
|
+
fiber.memoizedProps = assign2({}, fiber.memoizedProps);
|
|
17067
17085
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
17068
17086
|
if (root !== null) {
|
|
17069
17087
|
scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
@@ -17076,7 +17094,7 @@ Check the render method of \`` + ownerName + "`.";
|
|
|
17076
17094
|
var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
|
|
17077
17095
|
hook.memoizedState = newState;
|
|
17078
17096
|
hook.baseState = newState;
|
|
17079
|
-
fiber.memoizedProps =
|
|
17097
|
+
fiber.memoizedProps = assign2({}, fiber.memoizedProps);
|
|
17080
17098
|
var root = enqueueConcurrentRenderForLane(fiber, SyncLane);
|
|
17081
17099
|
if (root !== null) {
|
|
17082
17100
|
scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
|
|
@@ -17275,7 +17293,7 @@ var require_constants2 = __commonJS((exports, module) => {
|
|
|
17275
17293
|
var require_buffer_util = __commonJS((exports, module) => {
|
|
17276
17294
|
var { EMPTY_BUFFER } = require_constants2();
|
|
17277
17295
|
var FastBuffer = Buffer[Symbol.species];
|
|
17278
|
-
function
|
|
17296
|
+
function concat2(list, totalLength) {
|
|
17279
17297
|
if (list.length === 0)
|
|
17280
17298
|
return EMPTY_BUFFER;
|
|
17281
17299
|
if (list.length === 1)
|
|
@@ -17324,7 +17342,7 @@ var require_buffer_util = __commonJS((exports, module) => {
|
|
|
17324
17342
|
return buf;
|
|
17325
17343
|
}
|
|
17326
17344
|
module.exports = {
|
|
17327
|
-
concat,
|
|
17345
|
+
concat: concat2,
|
|
17328
17346
|
mask: _mask,
|
|
17329
17347
|
toArrayBuffer,
|
|
17330
17348
|
toBuffer,
|
|
@@ -17529,17 +17547,17 @@ var require_permessage_deflate = __commonJS((exports, module) => {
|
|
|
17529
17547
|
}
|
|
17530
17548
|
decompress(data, fin, callback) {
|
|
17531
17549
|
zlibLimiter.add((done) => {
|
|
17532
|
-
this._decompress(data, fin, (err,
|
|
17550
|
+
this._decompress(data, fin, (err, result2) => {
|
|
17533
17551
|
done();
|
|
17534
|
-
callback(err,
|
|
17552
|
+
callback(err, result2);
|
|
17535
17553
|
});
|
|
17536
17554
|
});
|
|
17537
17555
|
}
|
|
17538
17556
|
compress(data, fin, callback) {
|
|
17539
17557
|
zlibLimiter.add((done) => {
|
|
17540
|
-
this._compress(data, fin, (err,
|
|
17558
|
+
this._compress(data, fin, (err, result2) => {
|
|
17541
17559
|
done();
|
|
17542
|
-
callback(err,
|
|
17560
|
+
callback(err, result2);
|
|
17543
17561
|
});
|
|
17544
17562
|
});
|
|
17545
17563
|
}
|
|
@@ -17618,14 +17636,14 @@ var require_permessage_deflate = __commonJS((exports, module) => {
|
|
|
17618
17636
|
}
|
|
17619
17637
|
}
|
|
17620
17638
|
module.exports = PerMessageDeflate;
|
|
17621
|
-
function deflateOnData(
|
|
17622
|
-
this[kBuffers].push(
|
|
17623
|
-
this[kTotalLength] +=
|
|
17639
|
+
function deflateOnData(chunk2) {
|
|
17640
|
+
this[kBuffers].push(chunk2);
|
|
17641
|
+
this[kTotalLength] += chunk2.length;
|
|
17624
17642
|
}
|
|
17625
|
-
function inflateOnData(
|
|
17626
|
-
this[kTotalLength] +=
|
|
17643
|
+
function inflateOnData(chunk2) {
|
|
17644
|
+
this[kTotalLength] += chunk2.length;
|
|
17627
17645
|
if (this[kPerMessageDeflate]._maxPayload < 1 || this[kTotalLength] <= this[kPerMessageDeflate]._maxPayload) {
|
|
17628
|
-
this[kBuffers].push(
|
|
17646
|
+
this[kBuffers].push(chunk2);
|
|
17629
17647
|
return;
|
|
17630
17648
|
}
|
|
17631
17649
|
this[kError] = new RangeError("Max payload size exceeded");
|
|
@@ -17842,7 +17860,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
17842
17860
|
kStatusCode,
|
|
17843
17861
|
kWebSocket
|
|
17844
17862
|
} = require_constants2();
|
|
17845
|
-
var { concat, toArrayBuffer, unmask } = require_buffer_util();
|
|
17863
|
+
var { concat: concat2, toArrayBuffer, unmask } = require_buffer_util();
|
|
17846
17864
|
var { isValidStatusCode, isValidUTF8 } = require_validation();
|
|
17847
17865
|
var FastBuffer = Buffer[Symbol.species];
|
|
17848
17866
|
var GET_INFO = 0;
|
|
@@ -17879,11 +17897,11 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
17879
17897
|
this._loop = false;
|
|
17880
17898
|
this._state = GET_INFO;
|
|
17881
17899
|
}
|
|
17882
|
-
_write(
|
|
17900
|
+
_write(chunk2, encoding, cb) {
|
|
17883
17901
|
if (this._opcode === 8 && this._state == GET_INFO)
|
|
17884
17902
|
return cb();
|
|
17885
|
-
this._bufferedBytes +=
|
|
17886
|
-
this._buffers.push(
|
|
17903
|
+
this._bufferedBytes += chunk2.length;
|
|
17904
|
+
this._buffers.push(chunk2);
|
|
17887
17905
|
this.startLoop(cb);
|
|
17888
17906
|
}
|
|
17889
17907
|
consume(n) {
|
|
@@ -18123,9 +18141,9 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
18123
18141
|
if (this._opcode === 2) {
|
|
18124
18142
|
let data;
|
|
18125
18143
|
if (this._binaryType === "nodebuffer") {
|
|
18126
|
-
data =
|
|
18144
|
+
data = concat2(fragments, messageLength);
|
|
18127
18145
|
} else if (this._binaryType === "arraybuffer") {
|
|
18128
|
-
data = toArrayBuffer(
|
|
18146
|
+
data = toArrayBuffer(concat2(fragments, messageLength));
|
|
18129
18147
|
} else if (this._binaryType === "blob") {
|
|
18130
18148
|
data = new Blob(fragments);
|
|
18131
18149
|
} else {
|
|
@@ -18143,7 +18161,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
18143
18161
|
});
|
|
18144
18162
|
}
|
|
18145
18163
|
} else {
|
|
18146
|
-
const buf =
|
|
18164
|
+
const buf = concat2(fragments, messageLength);
|
|
18147
18165
|
if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
|
|
18148
18166
|
const error = this.createError(Error, "invalid UTF-8 sequence", true, 1007, "WS_ERR_INVALID_UTF8");
|
|
18149
18167
|
cb(error);
|
|
@@ -18248,7 +18266,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
18248
18266
|
}
|
|
18249
18267
|
static frame(data, options) {
|
|
18250
18268
|
let mask;
|
|
18251
|
-
let
|
|
18269
|
+
let merge2 = false;
|
|
18252
18270
|
let offset = 2;
|
|
18253
18271
|
let skipMasking = false;
|
|
18254
18272
|
if (options.mask) {
|
|
@@ -18281,7 +18299,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
18281
18299
|
}
|
|
18282
18300
|
} else {
|
|
18283
18301
|
dataLength = data.length;
|
|
18284
|
-
|
|
18302
|
+
merge2 = options.mask && options.readOnly && !skipMasking;
|
|
18285
18303
|
}
|
|
18286
18304
|
let payloadLength = dataLength;
|
|
18287
18305
|
if (dataLength >= 65536) {
|
|
@@ -18291,7 +18309,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
18291
18309
|
offset += 2;
|
|
18292
18310
|
payloadLength = 126;
|
|
18293
18311
|
}
|
|
18294
|
-
const target = Buffer.allocUnsafe(
|
|
18312
|
+
const target = Buffer.allocUnsafe(merge2 ? dataLength + offset : offset);
|
|
18295
18313
|
target[0] = options.fin ? options.opcode | 128 : options.opcode;
|
|
18296
18314
|
if (options.rsv1)
|
|
18297
18315
|
target[0] |= 64;
|
|
@@ -18311,7 +18329,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
18311
18329
|
target[offset - 1] = mask[3];
|
|
18312
18330
|
if (skipMasking)
|
|
18313
18331
|
return [target, data];
|
|
18314
|
-
if (
|
|
18332
|
+
if (merge2) {
|
|
18315
18333
|
applyMask(data, mask, target, offset, dataLength);
|
|
18316
18334
|
return [target];
|
|
18317
18335
|
}
|
|
@@ -18872,10 +18890,10 @@ var require_extension = __commonJS((exports, module) => {
|
|
|
18872
18890
|
configurations = [configurations];
|
|
18873
18891
|
return configurations.map((params) => {
|
|
18874
18892
|
return [extension].concat(Object.keys(params).map((k) => {
|
|
18875
|
-
let
|
|
18876
|
-
if (!Array.isArray(
|
|
18877
|
-
|
|
18878
|
-
return
|
|
18893
|
+
let values2 = params[k];
|
|
18894
|
+
if (!Array.isArray(values2))
|
|
18895
|
+
values2 = [values2];
|
|
18896
|
+
return values2.map((v) => v === true ? k : `${k}=${v}`).join("; ");
|
|
18879
18897
|
})).join("; ");
|
|
18880
18898
|
}).join(", ");
|
|
18881
18899
|
}).join(", ");
|
|
@@ -18997,7 +19015,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
18997
19015
|
get url() {
|
|
18998
19016
|
return this._url;
|
|
18999
19017
|
}
|
|
19000
|
-
setSocket(socket,
|
|
19018
|
+
setSocket(socket, head3, options) {
|
|
19001
19019
|
const receiver = new Receiver({
|
|
19002
19020
|
allowSynchronousEvents: options.allowSynchronousEvents,
|
|
19003
19021
|
binaryType: this.binaryType,
|
|
@@ -19024,8 +19042,8 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
19024
19042
|
socket.setTimeout(0);
|
|
19025
19043
|
if (socket.setNoDelay)
|
|
19026
19044
|
socket.setNoDelay();
|
|
19027
|
-
if (
|
|
19028
|
-
socket.unshift(
|
|
19045
|
+
if (head3.length > 0)
|
|
19046
|
+
socket.unshift(head3);
|
|
19029
19047
|
socket.on("close", socketOnClose);
|
|
19030
19048
|
socket.on("data", socketOnData);
|
|
19031
19049
|
socket.on("end", socketOnEnd);
|
|
@@ -19208,29 +19226,29 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
19208
19226
|
"protocol",
|
|
19209
19227
|
"readyState",
|
|
19210
19228
|
"url"
|
|
19211
|
-
].forEach((
|
|
19212
|
-
Object.defineProperty(WebSocket.prototype,
|
|
19229
|
+
].forEach((property2) => {
|
|
19230
|
+
Object.defineProperty(WebSocket.prototype, property2, { enumerable: true });
|
|
19213
19231
|
});
|
|
19214
|
-
["open", "error", "close", "message"].forEach((
|
|
19215
|
-
Object.defineProperty(WebSocket.prototype, `on${
|
|
19232
|
+
["open", "error", "close", "message"].forEach((method2) => {
|
|
19233
|
+
Object.defineProperty(WebSocket.prototype, `on${method2}`, {
|
|
19216
19234
|
enumerable: true,
|
|
19217
19235
|
get() {
|
|
19218
|
-
for (const listener of this.listeners(
|
|
19236
|
+
for (const listener of this.listeners(method2)) {
|
|
19219
19237
|
if (listener[kForOnEventAttribute])
|
|
19220
19238
|
return listener[kListener];
|
|
19221
19239
|
}
|
|
19222
19240
|
return null;
|
|
19223
19241
|
},
|
|
19224
19242
|
set(handler) {
|
|
19225
|
-
for (const listener of this.listeners(
|
|
19243
|
+
for (const listener of this.listeners(method2)) {
|
|
19226
19244
|
if (listener[kForOnEventAttribute]) {
|
|
19227
|
-
this.removeListener(
|
|
19245
|
+
this.removeListener(method2, listener);
|
|
19228
19246
|
break;
|
|
19229
19247
|
}
|
|
19230
19248
|
}
|
|
19231
19249
|
if (typeof handler !== "function")
|
|
19232
19250
|
return;
|
|
19233
|
-
this.addEventListener(
|
|
19251
|
+
this.addEventListener(method2, handler, {
|
|
19234
19252
|
[kForOnEventAttribute]: true
|
|
19235
19253
|
});
|
|
19236
19254
|
}
|
|
@@ -19412,7 +19430,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
19412
19430
|
abortHandshake(websocket, req, `Unexpected server response: ${res.statusCode}`);
|
|
19413
19431
|
}
|
|
19414
19432
|
});
|
|
19415
|
-
req.on("upgrade", (res, socket,
|
|
19433
|
+
req.on("upgrade", (res, socket, head3) => {
|
|
19416
19434
|
websocket.emit("upgrade", res);
|
|
19417
19435
|
if (websocket.readyState !== WebSocket.CONNECTING)
|
|
19418
19436
|
return;
|
|
@@ -19474,7 +19492,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
19474
19492
|
}
|
|
19475
19493
|
websocket._extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
|
|
19476
19494
|
}
|
|
19477
|
-
websocket.setSocket(socket,
|
|
19495
|
+
websocket.setSocket(socket, head3, {
|
|
19478
19496
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
19479
19497
|
generateMask: opts.generateMask,
|
|
19480
19498
|
maxPayload: opts.maxPayload,
|
|
@@ -19606,9 +19624,9 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
19606
19624
|
this.removeListener("data", socketOnData);
|
|
19607
19625
|
this.removeListener("end", socketOnEnd);
|
|
19608
19626
|
websocket._readyState = WebSocket.CLOSING;
|
|
19609
|
-
let
|
|
19610
|
-
if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && (
|
|
19611
|
-
websocket._receiver.write(
|
|
19627
|
+
let chunk2;
|
|
19628
|
+
if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && (chunk2 = websocket._socket.read()) !== null) {
|
|
19629
|
+
websocket._receiver.write(chunk2);
|
|
19612
19630
|
}
|
|
19613
19631
|
websocket._receiver.end();
|
|
19614
19632
|
this[kWebSocket] = undefined;
|
|
@@ -19620,8 +19638,8 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
19620
19638
|
websocket._receiver.on("finish", receiverOnFinish);
|
|
19621
19639
|
}
|
|
19622
19640
|
}
|
|
19623
|
-
function socketOnData(
|
|
19624
|
-
if (!this[kWebSocket]._receiver.write(
|
|
19641
|
+
function socketOnData(chunk2) {
|
|
19642
|
+
if (!this[kWebSocket]._receiver.write(chunk2)) {
|
|
19625
19643
|
this.pause();
|
|
19626
19644
|
}
|
|
19627
19645
|
}
|
|
@@ -19729,14 +19747,14 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
19729
19747
|
if (ws.isPaused)
|
|
19730
19748
|
ws.resume();
|
|
19731
19749
|
};
|
|
19732
|
-
duplex._write = function(
|
|
19750
|
+
duplex._write = function(chunk2, encoding, callback) {
|
|
19733
19751
|
if (ws.readyState === ws.CONNECTING) {
|
|
19734
19752
|
ws.once("open", function open() {
|
|
19735
|
-
duplex._write(
|
|
19753
|
+
duplex._write(chunk2, encoding, callback);
|
|
19736
19754
|
});
|
|
19737
19755
|
return;
|
|
19738
19756
|
}
|
|
19739
|
-
ws.send(
|
|
19757
|
+
ws.send(chunk2, callback);
|
|
19740
19758
|
};
|
|
19741
19759
|
duplex.on("end", duplexOnEnd);
|
|
19742
19760
|
duplex.on("error", duplexOnError);
|
|
@@ -19848,8 +19866,8 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
19848
19866
|
this._removeListeners = addListeners(this._server, {
|
|
19849
19867
|
listening: this.emit.bind(this, "listening"),
|
|
19850
19868
|
error: this.emit.bind(this, "error"),
|
|
19851
|
-
upgrade: (req, socket,
|
|
19852
|
-
this.handleUpgrade(req, socket,
|
|
19869
|
+
upgrade: (req, socket, head3) => {
|
|
19870
|
+
this.handleUpgrade(req, socket, head3, emitConnection);
|
|
19853
19871
|
}
|
|
19854
19872
|
});
|
|
19855
19873
|
}
|
|
@@ -19917,7 +19935,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
19917
19935
|
}
|
|
19918
19936
|
return true;
|
|
19919
19937
|
}
|
|
19920
|
-
handleUpgrade(req, socket,
|
|
19938
|
+
handleUpgrade(req, socket, head3, cb) {
|
|
19921
19939
|
socket.on("error", socketOnError);
|
|
19922
19940
|
const key = req.headers["sec-websocket-key"];
|
|
19923
19941
|
const upgrade = req.headers.upgrade;
|
|
@@ -19986,16 +20004,16 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
19986
20004
|
if (!verified) {
|
|
19987
20005
|
return abortHandshake(socket, code || 401, message, headers);
|
|
19988
20006
|
}
|
|
19989
|
-
this.completeUpgrade(extensions, key, protocols, req, socket,
|
|
20007
|
+
this.completeUpgrade(extensions, key, protocols, req, socket, head3, cb);
|
|
19990
20008
|
});
|
|
19991
20009
|
return;
|
|
19992
20010
|
}
|
|
19993
20011
|
if (!this.options.verifyClient(info))
|
|
19994
20012
|
return abortHandshake(socket, 401);
|
|
19995
20013
|
}
|
|
19996
|
-
this.completeUpgrade(extensions, key, protocols, req, socket,
|
|
20014
|
+
this.completeUpgrade(extensions, key, protocols, req, socket, head3, cb);
|
|
19997
20015
|
}
|
|
19998
|
-
completeUpgrade(extensions, key, protocols, req, socket,
|
|
20016
|
+
completeUpgrade(extensions, key, protocols, req, socket, head3, cb) {
|
|
19999
20017
|
if (!socket.readable || !socket.writable)
|
|
20000
20018
|
return socket.destroy();
|
|
20001
20019
|
if (socket[kWebSocket]) {
|
|
@@ -20031,7 +20049,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
20031
20049
|
`).join(`\r
|
|
20032
20050
|
`));
|
|
20033
20051
|
socket.removeListener("error", socketOnError);
|
|
20034
|
-
ws.setSocket(socket,
|
|
20052
|
+
ws.setSocket(socket, head3, {
|
|
20035
20053
|
allowSynchronousEvents: this.options.allowSynchronousEvents,
|
|
20036
20054
|
maxPayload: this.options.maxPayload,
|
|
20037
20055
|
skipUTF8Validation: this.options.skipUTF8Validation
|
|
@@ -20049,12 +20067,12 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
20049
20067
|
}
|
|
20050
20068
|
}
|
|
20051
20069
|
module.exports = WebSocketServer;
|
|
20052
|
-
function addListeners(server,
|
|
20053
|
-
for (const event of Object.keys(
|
|
20054
|
-
server.on(event,
|
|
20070
|
+
function addListeners(server, map2) {
|
|
20071
|
+
for (const event of Object.keys(map2))
|
|
20072
|
+
server.on(event, map2[event]);
|
|
20055
20073
|
return function removeListeners() {
|
|
20056
|
-
for (const event of Object.keys(
|
|
20057
|
-
server.removeListener(event,
|
|
20074
|
+
for (const event of Object.keys(map2)) {
|
|
20075
|
+
server.removeListener(event, map2[event]);
|
|
20058
20076
|
}
|
|
20059
20077
|
};
|
|
20060
20078
|
}
|
|
@@ -20184,7 +20202,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20184
20202
|
}
|
|
20185
20203
|
return _typeof(obj);
|
|
20186
20204
|
}
|
|
20187
|
-
var ErrorStackParser = __webpack_require__2(206), React = __webpack_require__2(189),
|
|
20205
|
+
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;
|
|
20188
20206
|
function getPrimitiveStackCache() {
|
|
20189
20207
|
if (primitiveStackCache === null) {
|
|
20190
20208
|
var cache3 = new Map;
|
|
@@ -20339,13 +20357,13 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20339
20357
|
});
|
|
20340
20358
|
return value;
|
|
20341
20359
|
},
|
|
20342
|
-
useEffect: function useEffect(
|
|
20360
|
+
useEffect: function useEffect(create2) {
|
|
20343
20361
|
nextHook();
|
|
20344
20362
|
hookLog.push({
|
|
20345
20363
|
displayName: null,
|
|
20346
20364
|
primitive: "Effect",
|
|
20347
20365
|
stackError: Error(),
|
|
20348
|
-
value:
|
|
20366
|
+
value: create2,
|
|
20349
20367
|
debugInfo: null,
|
|
20350
20368
|
dispatcherHookName: "Effect"
|
|
20351
20369
|
});
|
|
@@ -20363,24 +20381,24 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20363
20381
|
dispatcherHookName: "ImperativeHandle"
|
|
20364
20382
|
});
|
|
20365
20383
|
},
|
|
20366
|
-
useLayoutEffect: function useLayoutEffect(
|
|
20384
|
+
useLayoutEffect: function useLayoutEffect(create2) {
|
|
20367
20385
|
nextHook();
|
|
20368
20386
|
hookLog.push({
|
|
20369
20387
|
displayName: null,
|
|
20370
20388
|
primitive: "LayoutEffect",
|
|
20371
20389
|
stackError: Error(),
|
|
20372
|
-
value:
|
|
20390
|
+
value: create2,
|
|
20373
20391
|
debugInfo: null,
|
|
20374
20392
|
dispatcherHookName: "LayoutEffect"
|
|
20375
20393
|
});
|
|
20376
20394
|
},
|
|
20377
|
-
useInsertionEffect: function useInsertionEffect(
|
|
20395
|
+
useInsertionEffect: function useInsertionEffect(create2) {
|
|
20378
20396
|
nextHook();
|
|
20379
20397
|
hookLog.push({
|
|
20380
20398
|
displayName: null,
|
|
20381
20399
|
primitive: "InsertionEffect",
|
|
20382
20400
|
stackError: Error(),
|
|
20383
|
-
value:
|
|
20401
|
+
value: create2,
|
|
20384
20402
|
debugInfo: null,
|
|
20385
20403
|
dispatcherHookName: "InsertionEffect"
|
|
20386
20404
|
});
|
|
@@ -20600,7 +20618,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20600
20618
|
});
|
|
20601
20619
|
return [passthrough, function() {}];
|
|
20602
20620
|
},
|
|
20603
|
-
useMemoCache: function useMemoCache(
|
|
20621
|
+
useMemoCache: function useMemoCache(size2) {
|
|
20604
20622
|
var fiber = currentFiber;
|
|
20605
20623
|
if (fiber == null)
|
|
20606
20624
|
return [];
|
|
@@ -20609,8 +20627,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20609
20627
|
return [];
|
|
20610
20628
|
var data = fiber.data[fiber.index];
|
|
20611
20629
|
if (data === undefined) {
|
|
20612
|
-
data = fiber.data[fiber.index] = Array(
|
|
20613
|
-
for (var i = 0;i <
|
|
20630
|
+
data = fiber.data[fiber.index] = Array(size2);
|
|
20631
|
+
for (var i = 0;i < size2; i++) {
|
|
20614
20632
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
20615
20633
|
}
|
|
20616
20634
|
}
|
|
@@ -20642,7 +20660,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20642
20660
|
return callback;
|
|
20643
20661
|
}
|
|
20644
20662
|
}, DispatcherProxyHandler = {
|
|
20645
|
-
get: function
|
|
20663
|
+
get: function get2(target, prop) {
|
|
20646
20664
|
if (target.hasOwnProperty(prop))
|
|
20647
20665
|
return target[prop];
|
|
20648
20666
|
target = Error("Missing method in Dispatcher: " + prop);
|
|
@@ -20839,7 +20857,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20839
20857
|
dependencies = fiber.type;
|
|
20840
20858
|
var props = fiber.memoizedProps;
|
|
20841
20859
|
if (dependencies !== fiber.elementType && dependencies && dependencies.defaultProps) {
|
|
20842
|
-
props =
|
|
20860
|
+
props = assign2({}, props);
|
|
20843
20861
|
var defaultProps = dependencies.defaultProps;
|
|
20844
20862
|
for (propName in defaultProps) {
|
|
20845
20863
|
props[propName] === undefined && (props[propName] = defaultProps[propName]);
|
|
@@ -20916,7 +20934,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20916
20934
|
enqueueForceUpdate: function enqueueForceUpdate() {},
|
|
20917
20935
|
enqueueReplaceState: function enqueueReplaceState() {},
|
|
20918
20936
|
enqueueSetState: function enqueueSetState() {}
|
|
20919
|
-
},
|
|
20937
|
+
}, assign2 = Object.assign, emptyObject = {};
|
|
20920
20938
|
function Component(props, context, updater) {
|
|
20921
20939
|
this.props = props;
|
|
20922
20940
|
this.context = context;
|
|
@@ -20942,10 +20960,10 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20942
20960
|
}
|
|
20943
20961
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy;
|
|
20944
20962
|
pureComponentPrototype.constructor = PureComponent;
|
|
20945
|
-
|
|
20963
|
+
assign2(pureComponentPrototype, Component.prototype);
|
|
20946
20964
|
pureComponentPrototype.isPureReactComponent = true;
|
|
20947
20965
|
var isArrayImpl = Array.isArray;
|
|
20948
|
-
function
|
|
20966
|
+
function noop2() {}
|
|
20949
20967
|
var ReactSharedInternals = {
|
|
20950
20968
|
H: null,
|
|
20951
20969
|
A: null,
|
|
@@ -20969,7 +20987,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20969
20987
|
function isValidElement(object) {
|
|
20970
20988
|
return _typeof(object) === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
20971
20989
|
}
|
|
20972
|
-
function
|
|
20990
|
+
function escape2(key) {
|
|
20973
20991
|
var escaperLookup = {
|
|
20974
20992
|
"=": "=0",
|
|
20975
20993
|
":": "=2"
|
|
@@ -20980,7 +20998,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20980
20998
|
}
|
|
20981
20999
|
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
20982
21000
|
function getElementKey(element, index) {
|
|
20983
|
-
return _typeof(element) === "object" && element !== null && element.key != null ?
|
|
21001
|
+
return _typeof(element) === "object" && element !== null && element.key != null ? escape2("" + element.key) : index.toString(36);
|
|
20984
21002
|
}
|
|
20985
21003
|
function resolveThenable(thenable) {
|
|
20986
21004
|
switch (thenable.status) {
|
|
@@ -20989,7 +21007,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
20989
21007
|
case "rejected":
|
|
20990
21008
|
throw thenable.reason;
|
|
20991
21009
|
default:
|
|
20992
|
-
switch (typeof thenable.status === "string" ? thenable.then(
|
|
21010
|
+
switch (typeof thenable.status === "string" ? thenable.then(noop2, noop2) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
20993
21011
|
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
20994
21012
|
}, function(error) {
|
|
20995
21013
|
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error);
|
|
@@ -21051,11 +21069,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21051
21069
|
function mapChildren(children, func, context) {
|
|
21052
21070
|
if (children == null)
|
|
21053
21071
|
return children;
|
|
21054
|
-
var
|
|
21055
|
-
mapIntoArray(children,
|
|
21072
|
+
var result2 = [], count = 0;
|
|
21073
|
+
mapIntoArray(children, result2, "", "", function(child) {
|
|
21056
21074
|
return func.call(context, child, count++);
|
|
21057
21075
|
});
|
|
21058
|
-
return
|
|
21076
|
+
return result2;
|
|
21059
21077
|
}
|
|
21060
21078
|
function lazyInitializer(payload) {
|
|
21061
21079
|
if (payload._status === -1) {
|
|
@@ -21101,7 +21119,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21101
21119
|
try {
|
|
21102
21120
|
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
21103
21121
|
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue);
|
|
21104
|
-
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(
|
|
21122
|
+
_typeof(returnValue) === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(noop2, reportGlobalError);
|
|
21105
21123
|
} catch (error) {
|
|
21106
21124
|
reportGlobalError(error);
|
|
21107
21125
|
} finally {
|
|
@@ -21118,7 +21136,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21118
21136
|
}
|
|
21119
21137
|
exports2.Children = {
|
|
21120
21138
|
map: mapChildren,
|
|
21121
|
-
forEach: function
|
|
21139
|
+
forEach: function forEach3(children, forEachFunc, forEachContext) {
|
|
21122
21140
|
mapChildren(children, function() {
|
|
21123
21141
|
forEachFunc.apply(this, arguments);
|
|
21124
21142
|
}, forEachContext);
|
|
@@ -21130,7 +21148,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21130
21148
|
});
|
|
21131
21149
|
return n;
|
|
21132
21150
|
},
|
|
21133
|
-
toArray: function
|
|
21151
|
+
toArray: function toArray2(children) {
|
|
21134
21152
|
return mapChildren(children, function(child) {
|
|
21135
21153
|
return child;
|
|
21136
21154
|
}) || [];
|
|
@@ -21150,8 +21168,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21150
21168
|
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
21151
21169
|
exports2.__COMPILER_RUNTIME = {
|
|
21152
21170
|
__proto__: null,
|
|
21153
|
-
c: function c(
|
|
21154
|
-
return ReactSharedInternals.H.useMemoCache(
|
|
21171
|
+
c: function c(size2) {
|
|
21172
|
+
return ReactSharedInternals.H.useMemoCache(size2);
|
|
21155
21173
|
}
|
|
21156
21174
|
};
|
|
21157
21175
|
exports2.cache = function(fn) {
|
|
@@ -21165,7 +21183,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21165
21183
|
exports2.cloneElement = function(element, config, children) {
|
|
21166
21184
|
if (element === null || element === undefined)
|
|
21167
21185
|
throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
21168
|
-
var props =
|
|
21186
|
+
var props = assign2({}, element.props), key = element.key, owner = undefined;
|
|
21169
21187
|
if (config != null)
|
|
21170
21188
|
for (propName in config.ref !== undefined && (owner = undefined), config.key !== undefined && (key = "" + config.key), config) {
|
|
21171
21189
|
!hasOwnProperty.call(config, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config.ref === undefined || (props[propName] = config[propName]);
|
|
@@ -21285,7 +21303,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21285
21303
|
} finally {
|
|
21286
21304
|
ReactSharedInternals.T = prevTransition;
|
|
21287
21305
|
}
|
|
21288
|
-
return
|
|
21306
|
+
return noop2;
|
|
21289
21307
|
};
|
|
21290
21308
|
exports2.unstable_useCacheRefresh = function() {
|
|
21291
21309
|
return ReactSharedInternals.H.useCacheRefresh();
|
|
@@ -21306,23 +21324,23 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21306
21324
|
exports2.useDeferredValue = function(value, initialValue) {
|
|
21307
21325
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
21308
21326
|
};
|
|
21309
|
-
exports2.useEffect = function(
|
|
21310
|
-
return ReactSharedInternals.H.useEffect(
|
|
21327
|
+
exports2.useEffect = function(create2, deps) {
|
|
21328
|
+
return ReactSharedInternals.H.useEffect(create2, deps);
|
|
21311
21329
|
};
|
|
21312
21330
|
exports2.useId = function() {
|
|
21313
21331
|
return ReactSharedInternals.H.useId();
|
|
21314
21332
|
};
|
|
21315
|
-
exports2.useImperativeHandle = function(ref,
|
|
21316
|
-
return ReactSharedInternals.H.useImperativeHandle(ref,
|
|
21333
|
+
exports2.useImperativeHandle = function(ref, create2, deps) {
|
|
21334
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create2, deps);
|
|
21317
21335
|
};
|
|
21318
|
-
exports2.useInsertionEffect = function(
|
|
21319
|
-
return ReactSharedInternals.H.useInsertionEffect(
|
|
21336
|
+
exports2.useInsertionEffect = function(create2, deps) {
|
|
21337
|
+
return ReactSharedInternals.H.useInsertionEffect(create2, deps);
|
|
21320
21338
|
};
|
|
21321
|
-
exports2.useLayoutEffect = function(
|
|
21322
|
-
return ReactSharedInternals.H.useLayoutEffect(
|
|
21339
|
+
exports2.useLayoutEffect = function(create2, deps) {
|
|
21340
|
+
return ReactSharedInternals.H.useLayoutEffect(create2, deps);
|
|
21323
21341
|
};
|
|
21324
|
-
exports2.useMemo = function(
|
|
21325
|
-
return ReactSharedInternals.H.useMemo(
|
|
21342
|
+
exports2.useMemo = function(create2, deps) {
|
|
21343
|
+
return ReactSharedInternals.H.useMemo(create2, deps);
|
|
21326
21344
|
};
|
|
21327
21345
|
exports2.useOptimistic = useOptimistic;
|
|
21328
21346
|
exports2.useReducer = function(reducer, initialArg, init) {
|
|
@@ -21430,8 +21448,8 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21430
21448
|
});
|
|
21431
21449
|
} else {
|
|
21432
21450
|
var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;
|
|
21433
|
-
var
|
|
21434
|
-
var functionName =
|
|
21451
|
+
var matches2 = line.match(functionNameRegex);
|
|
21452
|
+
var functionName = matches2 && matches2[1] ? matches2[1] : undefined;
|
|
21435
21453
|
var locationParts = this.extractLocation(line.replace(functionNameRegex, ""));
|
|
21436
21454
|
return new StackFrame({
|
|
21437
21455
|
functionName,
|
|
@@ -21459,28 +21477,28 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21459
21477
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
|
|
21460
21478
|
var lines = e.message.split(`
|
|
21461
21479
|
`);
|
|
21462
|
-
var
|
|
21480
|
+
var result2 = [];
|
|
21463
21481
|
for (var i = 2, len = lines.length;i < len; i += 2) {
|
|
21464
21482
|
var match = lineRE.exec(lines[i]);
|
|
21465
21483
|
if (match) {
|
|
21466
|
-
|
|
21484
|
+
result2.push(new StackFrame({
|
|
21467
21485
|
fileName: match[2],
|
|
21468
21486
|
lineNumber: match[1],
|
|
21469
21487
|
source: lines[i]
|
|
21470
21488
|
}));
|
|
21471
21489
|
}
|
|
21472
21490
|
}
|
|
21473
|
-
return
|
|
21491
|
+
return result2;
|
|
21474
21492
|
},
|
|
21475
21493
|
parseOpera10: function ErrorStackParser$$parseOpera10(e) {
|
|
21476
21494
|
var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i;
|
|
21477
21495
|
var lines = e.stacktrace.split(`
|
|
21478
21496
|
`);
|
|
21479
|
-
var
|
|
21497
|
+
var result2 = [];
|
|
21480
21498
|
for (var i = 0, len = lines.length;i < len; i += 2) {
|
|
21481
21499
|
var match = lineRE.exec(lines[i]);
|
|
21482
21500
|
if (match) {
|
|
21483
|
-
|
|
21501
|
+
result2.push(new StackFrame({
|
|
21484
21502
|
functionName: match[3] || undefined,
|
|
21485
21503
|
fileName: match[2],
|
|
21486
21504
|
lineNumber: match[1],
|
|
@@ -21488,7 +21506,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21488
21506
|
}));
|
|
21489
21507
|
}
|
|
21490
21508
|
}
|
|
21491
|
-
return
|
|
21509
|
+
return result2;
|
|
21492
21510
|
},
|
|
21493
21511
|
parseOpera11: function ErrorStackParser$$parseOpera11(error) {
|
|
21494
21512
|
var filtered = error.stack.split(`
|
|
@@ -21566,7 +21584,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21566
21584
|
options = {};
|
|
21567
21585
|
if (options.max && (typeof options.max !== "number" || options.max < 0))
|
|
21568
21586
|
throw new TypeError("max must be a non-negative number");
|
|
21569
|
-
var
|
|
21587
|
+
var max2 = this[MAX] = options.max || Infinity;
|
|
21570
21588
|
var lc = options.length || naiveLength;
|
|
21571
21589
|
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
21572
21590
|
this[ALLOW_STALE] = options.stale || false;
|
|
@@ -21580,40 +21598,40 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21580
21598
|
}
|
|
21581
21599
|
return _createClass(LRUCache2, [{
|
|
21582
21600
|
key: "max",
|
|
21583
|
-
get: function
|
|
21601
|
+
get: function get2() {
|
|
21584
21602
|
return this[MAX];
|
|
21585
21603
|
},
|
|
21586
|
-
set: function
|
|
21604
|
+
set: function set2(mL) {
|
|
21587
21605
|
if (typeof mL !== "number" || mL < 0)
|
|
21588
21606
|
throw new TypeError("max must be a non-negative number");
|
|
21589
21607
|
this[MAX] = mL || Infinity;
|
|
21590
|
-
|
|
21608
|
+
trim2(this);
|
|
21591
21609
|
}
|
|
21592
21610
|
}, {
|
|
21593
21611
|
key: "allowStale",
|
|
21594
|
-
get: function
|
|
21612
|
+
get: function get2() {
|
|
21595
21613
|
return this[ALLOW_STALE];
|
|
21596
21614
|
},
|
|
21597
|
-
set: function
|
|
21615
|
+
set: function set2(allowStale) {
|
|
21598
21616
|
this[ALLOW_STALE] = !!allowStale;
|
|
21599
21617
|
}
|
|
21600
21618
|
}, {
|
|
21601
21619
|
key: "maxAge",
|
|
21602
|
-
get: function
|
|
21620
|
+
get: function get2() {
|
|
21603
21621
|
return this[MAX_AGE];
|
|
21604
21622
|
},
|
|
21605
|
-
set: function
|
|
21623
|
+
set: function set2(mA) {
|
|
21606
21624
|
if (typeof mA !== "number")
|
|
21607
21625
|
throw new TypeError("maxAge must be a non-negative number");
|
|
21608
21626
|
this[MAX_AGE] = mA;
|
|
21609
|
-
|
|
21627
|
+
trim2(this);
|
|
21610
21628
|
}
|
|
21611
21629
|
}, {
|
|
21612
21630
|
key: "lengthCalculator",
|
|
21613
|
-
get: function
|
|
21631
|
+
get: function get2() {
|
|
21614
21632
|
return this[LENGTH_CALCULATOR];
|
|
21615
21633
|
},
|
|
21616
|
-
set: function
|
|
21634
|
+
set: function set2(lC) {
|
|
21617
21635
|
var _this = this;
|
|
21618
21636
|
if (typeof lC !== "function")
|
|
21619
21637
|
lC = naiveLength;
|
|
@@ -21625,16 +21643,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21625
21643
|
_this[LENGTH] += hit.length;
|
|
21626
21644
|
});
|
|
21627
21645
|
}
|
|
21628
|
-
|
|
21646
|
+
trim2(this);
|
|
21629
21647
|
}
|
|
21630
21648
|
}, {
|
|
21631
21649
|
key: "length",
|
|
21632
|
-
get: function
|
|
21650
|
+
get: function get2() {
|
|
21633
21651
|
return this[LENGTH];
|
|
21634
21652
|
}
|
|
21635
21653
|
}, {
|
|
21636
21654
|
key: "itemCount",
|
|
21637
|
-
get: function
|
|
21655
|
+
get: function get2() {
|
|
21638
21656
|
return this[LRU_LIST].length;
|
|
21639
21657
|
}
|
|
21640
21658
|
}, {
|
|
@@ -21649,7 +21667,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21649
21667
|
}
|
|
21650
21668
|
}, {
|
|
21651
21669
|
key: "forEach",
|
|
21652
|
-
value: function
|
|
21670
|
+
value: function forEach3(fn, thisp) {
|
|
21653
21671
|
thisp = thisp || this;
|
|
21654
21672
|
for (var walker = this[LRU_LIST].head;walker !== null; ) {
|
|
21655
21673
|
var next = walker.next;
|
|
@@ -21659,14 +21677,14 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21659
21677
|
}
|
|
21660
21678
|
}, {
|
|
21661
21679
|
key: "keys",
|
|
21662
|
-
value: function
|
|
21680
|
+
value: function keys2() {
|
|
21663
21681
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
21664
21682
|
return k.key;
|
|
21665
21683
|
});
|
|
21666
21684
|
}
|
|
21667
21685
|
}, {
|
|
21668
21686
|
key: "values",
|
|
21669
|
-
value: function
|
|
21687
|
+
value: function values2() {
|
|
21670
21688
|
return this[LRU_LIST].toArray().map(function(k) {
|
|
21671
21689
|
return k.value;
|
|
21672
21690
|
});
|
|
@@ -21705,11 +21723,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21705
21723
|
}
|
|
21706
21724
|
}, {
|
|
21707
21725
|
key: "set",
|
|
21708
|
-
value: function
|
|
21726
|
+
value: function set2(key, value, maxAge) {
|
|
21709
21727
|
maxAge = maxAge || this[MAX_AGE];
|
|
21710
21728
|
if (maxAge && typeof maxAge !== "number")
|
|
21711
21729
|
throw new TypeError("maxAge must be a number");
|
|
21712
|
-
var
|
|
21730
|
+
var now2 = maxAge ? Date.now() : 0;
|
|
21713
21731
|
var len = this[LENGTH_CALCULATOR](value, key);
|
|
21714
21732
|
if (this[CACHE].has(key)) {
|
|
21715
21733
|
if (len > this[MAX]) {
|
|
@@ -21722,16 +21740,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21722
21740
|
if (!this[NO_DISPOSE_ON_SET])
|
|
21723
21741
|
this[DISPOSE](key, item.value);
|
|
21724
21742
|
}
|
|
21725
|
-
item.now =
|
|
21743
|
+
item.now = now2;
|
|
21726
21744
|
item.maxAge = maxAge;
|
|
21727
21745
|
item.value = value;
|
|
21728
21746
|
this[LENGTH] += len - item.length;
|
|
21729
21747
|
item.length = len;
|
|
21730
21748
|
this.get(key);
|
|
21731
|
-
|
|
21749
|
+
trim2(this);
|
|
21732
21750
|
return true;
|
|
21733
21751
|
}
|
|
21734
|
-
var hit = new Entry(key, value, len,
|
|
21752
|
+
var hit = new Entry(key, value, len, now2, maxAge);
|
|
21735
21753
|
if (hit.length > this[MAX]) {
|
|
21736
21754
|
if (this[DISPOSE])
|
|
21737
21755
|
this[DISPOSE](key, value);
|
|
@@ -21740,12 +21758,12 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21740
21758
|
this[LENGTH] += hit.length;
|
|
21741
21759
|
this[LRU_LIST].unshift(hit);
|
|
21742
21760
|
this[CACHE].set(key, this[LRU_LIST].head);
|
|
21743
|
-
|
|
21761
|
+
trim2(this);
|
|
21744
21762
|
return true;
|
|
21745
21763
|
}
|
|
21746
21764
|
}, {
|
|
21747
21765
|
key: "has",
|
|
21748
|
-
value: function
|
|
21766
|
+
value: function has2(key) {
|
|
21749
21767
|
if (!this[CACHE].has(key))
|
|
21750
21768
|
return false;
|
|
21751
21769
|
var hit = this[CACHE].get(key).value;
|
|
@@ -21753,7 +21771,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21753
21771
|
}
|
|
21754
21772
|
}, {
|
|
21755
21773
|
key: "get",
|
|
21756
|
-
value: function
|
|
21774
|
+
value: function get2(key) {
|
|
21757
21775
|
return _get(this, key, true);
|
|
21758
21776
|
}
|
|
21759
21777
|
}, {
|
|
@@ -21779,14 +21797,14 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21779
21797
|
key: "load",
|
|
21780
21798
|
value: function load(arr) {
|
|
21781
21799
|
this.reset();
|
|
21782
|
-
var
|
|
21800
|
+
var now2 = Date.now();
|
|
21783
21801
|
for (var l = arr.length - 1;l >= 0; l--) {
|
|
21784
21802
|
var hit = arr[l];
|
|
21785
21803
|
var expiresAt = hit.e || 0;
|
|
21786
21804
|
if (expiresAt === 0)
|
|
21787
21805
|
this.set(hit.k, hit.v);
|
|
21788
21806
|
else {
|
|
21789
|
-
var maxAge = expiresAt -
|
|
21807
|
+
var maxAge = expiresAt - now2;
|
|
21790
21808
|
if (maxAge > 0) {
|
|
21791
21809
|
this.set(hit.k, hit.v, maxAge);
|
|
21792
21810
|
}
|
|
@@ -21827,7 +21845,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21827
21845
|
var diff = Date.now() - hit.now;
|
|
21828
21846
|
return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
|
|
21829
21847
|
};
|
|
21830
|
-
var
|
|
21848
|
+
var trim2 = function trim3(self2) {
|
|
21831
21849
|
if (self2[LENGTH] > self2[MAX]) {
|
|
21832
21850
|
for (var walker = self2[LRU_LIST].tail;self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
|
21833
21851
|
var prev = walker.prev;
|
|
@@ -21846,12 +21864,12 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21846
21864
|
self2[LRU_LIST].removeNode(node);
|
|
21847
21865
|
}
|
|
21848
21866
|
};
|
|
21849
|
-
var Entry = /* @__PURE__ */ _createClass(function Entry2(key, value, length,
|
|
21867
|
+
var Entry = /* @__PURE__ */ _createClass(function Entry2(key, value, length, now2, maxAge) {
|
|
21850
21868
|
_classCallCheck(this, Entry2);
|
|
21851
21869
|
this.key = key;
|
|
21852
21870
|
this.value = value;
|
|
21853
21871
|
this.length = length;
|
|
21854
|
-
this.now =
|
|
21872
|
+
this.now = now2;
|
|
21855
21873
|
this.maxAge = maxAge || 0;
|
|
21856
21874
|
});
|
|
21857
21875
|
var forEachStep = function forEachStep2(self2, fn, node, thisp) {
|
|
@@ -21997,16 +22015,16 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
21997
22015
|
process3.argv = [];
|
|
21998
22016
|
process3.version = "";
|
|
21999
22017
|
process3.versions = {};
|
|
22000
|
-
function
|
|
22001
|
-
process3.on =
|
|
22002
|
-
process3.addListener =
|
|
22003
|
-
process3.once =
|
|
22004
|
-
process3.off =
|
|
22005
|
-
process3.removeListener =
|
|
22006
|
-
process3.removeAllListeners =
|
|
22007
|
-
process3.emit =
|
|
22008
|
-
process3.prependListener =
|
|
22009
|
-
process3.prependOnceListener =
|
|
22018
|
+
function noop2() {}
|
|
22019
|
+
process3.on = noop2;
|
|
22020
|
+
process3.addListener = noop2;
|
|
22021
|
+
process3.once = noop2;
|
|
22022
|
+
process3.off = noop2;
|
|
22023
|
+
process3.removeListener = noop2;
|
|
22024
|
+
process3.removeAllListeners = noop2;
|
|
22025
|
+
process3.emit = noop2;
|
|
22026
|
+
process3.prependListener = noop2;
|
|
22027
|
+
process3.prependOnceListener = noop2;
|
|
22010
22028
|
process3.listeners = function(name) {
|
|
22011
22029
|
return [];
|
|
22012
22030
|
};
|
|
@@ -22090,7 +22108,7 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
22090
22108
|
throw new TypeError("Eval Origin must be an Object or StackFrame");
|
|
22091
22109
|
}
|
|
22092
22110
|
},
|
|
22093
|
-
toString: function
|
|
22111
|
+
toString: function toString2() {
|
|
22094
22112
|
var fileName = this.getFileName() || "";
|
|
22095
22113
|
var lineNumber = this.getLineNumber() || "";
|
|
22096
22114
|
var columnNumber = this.getColumnNumber() || "";
|
|
@@ -22240,11 +22258,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
22240
22258
|
if (node.list) {
|
|
22241
22259
|
node.list.removeNode(node);
|
|
22242
22260
|
}
|
|
22243
|
-
var
|
|
22261
|
+
var head3 = this.head;
|
|
22244
22262
|
node.list = this;
|
|
22245
|
-
node.next =
|
|
22246
|
-
if (
|
|
22247
|
-
|
|
22263
|
+
node.next = head3;
|
|
22264
|
+
if (head3) {
|
|
22265
|
+
head3.prev = node;
|
|
22248
22266
|
}
|
|
22249
22267
|
this.head = node;
|
|
22250
22268
|
if (!this.tail) {
|
|
@@ -22259,11 +22277,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
22259
22277
|
if (node.list) {
|
|
22260
22278
|
node.list.removeNode(node);
|
|
22261
22279
|
}
|
|
22262
|
-
var
|
|
22280
|
+
var tail2 = this.tail;
|
|
22263
22281
|
node.list = this;
|
|
22264
|
-
node.prev =
|
|
22265
|
-
if (
|
|
22266
|
-
|
|
22282
|
+
node.prev = tail2;
|
|
22283
|
+
if (tail2) {
|
|
22284
|
+
tail2.next = node;
|
|
22267
22285
|
}
|
|
22268
22286
|
this.tail = node;
|
|
22269
22287
|
if (!this.head) {
|
|
@@ -22359,11 +22377,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
22359
22377
|
}
|
|
22360
22378
|
return res;
|
|
22361
22379
|
};
|
|
22362
|
-
Yallist.prototype.reduce = function(fn,
|
|
22380
|
+
Yallist.prototype.reduce = function(fn, initial2) {
|
|
22363
22381
|
var acc;
|
|
22364
22382
|
var walker = this.head;
|
|
22365
22383
|
if (arguments.length > 1) {
|
|
22366
|
-
acc =
|
|
22384
|
+
acc = initial2;
|
|
22367
22385
|
} else if (this.head) {
|
|
22368
22386
|
walker = this.head.next;
|
|
22369
22387
|
acc = this.head.value;
|
|
@@ -22376,11 +22394,11 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
22376
22394
|
}
|
|
22377
22395
|
return acc;
|
|
22378
22396
|
};
|
|
22379
|
-
Yallist.prototype.reduceReverse = function(fn,
|
|
22397
|
+
Yallist.prototype.reduceReverse = function(fn, initial2) {
|
|
22380
22398
|
var acc;
|
|
22381
22399
|
var walker = this.tail;
|
|
22382
22400
|
if (arguments.length > 1) {
|
|
22383
|
-
acc =
|
|
22401
|
+
acc = initial2;
|
|
22384
22402
|
} else if (this.tail) {
|
|
22385
22403
|
walker = this.tail.prev;
|
|
22386
22404
|
acc = this.tail.value;
|
|
@@ -22490,15 +22508,15 @@ var require_backend = __commonJS((exports, module) => {
|
|
|
22490
22508
|
return ret;
|
|
22491
22509
|
};
|
|
22492
22510
|
Yallist.prototype.reverse = function() {
|
|
22493
|
-
var
|
|
22494
|
-
var
|
|
22495
|
-
for (var walker =
|
|
22511
|
+
var head3 = this.head;
|
|
22512
|
+
var tail2 = this.tail;
|
|
22513
|
+
for (var walker = head3;walker !== null; walker = walker.prev) {
|
|
22496
22514
|
var p = walker.prev;
|
|
22497
22515
|
walker.prev = walker.next;
|
|
22498
22516
|
walker.next = p;
|
|
22499
22517
|
}
|
|
22500
|
-
this.head =
|
|
22501
|
-
this.tail =
|
|
22518
|
+
this.head = tail2;
|
|
22519
|
+
this.tail = head3;
|
|
22502
22520
|
return this;
|
|
22503
22521
|
};
|
|
22504
22522
|
function insert(self2, node, value) {
|
|
@@ -22820,13 +22838,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
22820
22838
|
var res = compareVersions(v1, v2);
|
|
22821
22839
|
return operatorResMap[operator].includes(res);
|
|
22822
22840
|
};
|
|
22823
|
-
var satisfies = function satisfies2(version,
|
|
22824
|
-
var m =
|
|
22841
|
+
var satisfies = function satisfies2(version, range2) {
|
|
22842
|
+
var m = range2.match(/^([<>=~^]+)/);
|
|
22825
22843
|
var op = m ? m[1] : "=";
|
|
22826
22844
|
if (op !== "^" && op !== "~")
|
|
22827
|
-
return compare(version,
|
|
22845
|
+
return compare(version, range2, op);
|
|
22828
22846
|
var _validateAndParse = validateAndParse(version), _validateAndParse2 = _slicedToArray(_validateAndParse, 5), v1 = _validateAndParse2[0], v2 = _validateAndParse2[1], v3 = _validateAndParse2[2], vp = _validateAndParse2[4];
|
|
22829
|
-
var _validateAndParse3 = validateAndParse(
|
|
22847
|
+
var _validateAndParse3 = validateAndParse(range2), _validateAndParse4 = _slicedToArray(_validateAndParse3, 5), r1 = _validateAndParse4[0], r2 = _validateAndParse4[1], r3 = _validateAndParse4[2], rp = _validateAndParse4[4];
|
|
22830
22848
|
var v = [v1, v2, v3];
|
|
22831
22849
|
var r = [r1, r2 !== null && r2 !== undefined ? r2 : "x", r3 !== null && r3 !== undefined ? r3 : "x"];
|
|
22832
22850
|
if (rp) {
|
|
@@ -23034,20 +23052,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23034
23052
|
var ComponentFilterHOC = 4;
|
|
23035
23053
|
var ComponentFilterEnvironmentName = 5;
|
|
23036
23054
|
var StrictMode = 1;
|
|
23037
|
-
var
|
|
23038
|
-
const src_isArray =
|
|
23055
|
+
var isArray2 = Array.isArray;
|
|
23056
|
+
const src_isArray = isArray2;
|
|
23039
23057
|
var process3 = __webpack_require__(169);
|
|
23040
23058
|
function ownKeys(object, enumerableOnly) {
|
|
23041
|
-
var
|
|
23059
|
+
var keys2 = Object.keys(object);
|
|
23042
23060
|
if (Object.getOwnPropertySymbols) {
|
|
23043
23061
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
23044
23062
|
if (enumerableOnly)
|
|
23045
23063
|
symbols = symbols.filter(function(sym) {
|
|
23046
23064
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23047
23065
|
});
|
|
23048
|
-
|
|
23066
|
+
keys2.push.apply(keys2, symbols);
|
|
23049
23067
|
}
|
|
23050
|
-
return
|
|
23068
|
+
return keys2;
|
|
23051
23069
|
}
|
|
23052
23070
|
function _objectSpread(target) {
|
|
23053
23071
|
for (var i = 1;i < arguments.length; i++) {
|
|
@@ -23139,14 +23157,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23139
23157
|
}
|
|
23140
23158
|
}
|
|
23141
23159
|
function getAllEnumerableKeys(obj) {
|
|
23142
|
-
var
|
|
23160
|
+
var keys2 = new Set;
|
|
23143
23161
|
var current = obj;
|
|
23144
23162
|
var _loop = function _loop2() {
|
|
23145
23163
|
var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current)));
|
|
23146
23164
|
var descriptors = Object.getOwnPropertyDescriptors(current);
|
|
23147
23165
|
currentKeys.forEach(function(key) {
|
|
23148
23166
|
if (descriptors[key].enumerable) {
|
|
23149
|
-
|
|
23167
|
+
keys2.add(key);
|
|
23150
23168
|
}
|
|
23151
23169
|
});
|
|
23152
23170
|
current = Object.getPrototypeOf(current);
|
|
@@ -23154,7 +23172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23154
23172
|
while (current != null) {
|
|
23155
23173
|
_loop();
|
|
23156
23174
|
}
|
|
23157
|
-
return
|
|
23175
|
+
return keys2;
|
|
23158
23176
|
}
|
|
23159
23177
|
function getWrappedDisplayName(outerType, innerType, wrapperName, fallbackName) {
|
|
23160
23178
|
var displayName = outerType === null || outerType === undefined ? undefined : outerType.displayName;
|
|
@@ -23363,10 +23381,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23363
23381
|
case ElementTypeMemo:
|
|
23364
23382
|
case ElementTypeVirtual:
|
|
23365
23383
|
if (displayName.indexOf("(") >= 0) {
|
|
23366
|
-
var
|
|
23367
|
-
if (
|
|
23368
|
-
displayName =
|
|
23369
|
-
hocDisplayNames =
|
|
23384
|
+
var matches2 = displayName.match(/[^()]+/g);
|
|
23385
|
+
if (matches2 != null) {
|
|
23386
|
+
displayName = matches2.pop();
|
|
23387
|
+
hocDisplayNames = matches2;
|
|
23370
23388
|
}
|
|
23371
23389
|
}
|
|
23372
23390
|
break;
|
|
@@ -23407,14 +23425,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23407
23425
|
}
|
|
23408
23426
|
function deletePathInObject(object, path) {
|
|
23409
23427
|
var length = path.length;
|
|
23410
|
-
var
|
|
23428
|
+
var last2 = path[length - 1];
|
|
23411
23429
|
if (object != null) {
|
|
23412
23430
|
var parent = utils_getInObject(object, path.slice(0, length - 1));
|
|
23413
23431
|
if (parent) {
|
|
23414
23432
|
if (src_isArray(parent)) {
|
|
23415
|
-
parent.splice(
|
|
23433
|
+
parent.splice(last2, 1);
|
|
23416
23434
|
} else {
|
|
23417
|
-
delete parent[
|
|
23435
|
+
delete parent[last2];
|
|
23418
23436
|
}
|
|
23419
23437
|
}
|
|
23420
23438
|
}
|
|
@@ -23437,15 +23455,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23437
23455
|
}
|
|
23438
23456
|
function utils_setInObject(object, path, value) {
|
|
23439
23457
|
var length = path.length;
|
|
23440
|
-
var
|
|
23458
|
+
var last2 = path[length - 1];
|
|
23441
23459
|
if (object != null) {
|
|
23442
23460
|
var parent = utils_getInObject(object, path.slice(0, length - 1));
|
|
23443
23461
|
if (parent) {
|
|
23444
|
-
parent[
|
|
23462
|
+
parent[last2] = value;
|
|
23445
23463
|
}
|
|
23446
23464
|
}
|
|
23447
23465
|
}
|
|
23448
|
-
function
|
|
23466
|
+
function isError2(data) {
|
|
23449
23467
|
if ("name" in data && "message" in data) {
|
|
23450
23468
|
while (data) {
|
|
23451
23469
|
if (Object.prototype.toString.call(data) === "[object Error]") {
|
|
@@ -23500,7 +23518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23500
23518
|
return "regexp";
|
|
23501
23519
|
} else if (typeof data.then === "function") {
|
|
23502
23520
|
return "thenable";
|
|
23503
|
-
} else if (
|
|
23521
|
+
} else if (isError2(data)) {
|
|
23504
23522
|
return "error";
|
|
23505
23523
|
} else {
|
|
23506
23524
|
var toStringValue = Object.prototype.toString.call(data);
|
|
@@ -23510,7 +23528,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23510
23528
|
return "html_all_collection";
|
|
23511
23529
|
}
|
|
23512
23530
|
}
|
|
23513
|
-
if (!
|
|
23531
|
+
if (!isPlainObject2(data)) {
|
|
23514
23532
|
return "class_instance";
|
|
23515
23533
|
}
|
|
23516
23534
|
return "object";
|
|
@@ -23726,7 +23744,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23726
23744
|
}
|
|
23727
23745
|
case "thenable":
|
|
23728
23746
|
var displayName;
|
|
23729
|
-
if (
|
|
23747
|
+
if (isPlainObject2(data)) {
|
|
23730
23748
|
displayName = "Thenable";
|
|
23731
23749
|
} else {
|
|
23732
23750
|
var _resolvedConstructorName = data.constructor.name;
|
|
@@ -23761,10 +23779,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23761
23779
|
}
|
|
23762
23780
|
case "object":
|
|
23763
23781
|
if (showFormattedValue) {
|
|
23764
|
-
var
|
|
23782
|
+
var keys2 = Array.from(getAllEnumerableKeys(data)).sort(alphaSortKeys);
|
|
23765
23783
|
var _formatted5 = "";
|
|
23766
|
-
for (var _i3 = 0;_i3 <
|
|
23767
|
-
var _key =
|
|
23784
|
+
for (var _i3 = 0;_i3 < keys2.length; _i3++) {
|
|
23785
|
+
var _key = keys2[_i3];
|
|
23768
23786
|
if (_i3 > 0) {
|
|
23769
23787
|
_formatted5 += ", ";
|
|
23770
23788
|
}
|
|
@@ -23794,7 +23812,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23794
23812
|
}
|
|
23795
23813
|
}
|
|
23796
23814
|
}
|
|
23797
|
-
var
|
|
23815
|
+
var isPlainObject2 = function isPlainObject3(object) {
|
|
23798
23816
|
var objectPrototype = Object.getPrototypeOf(object);
|
|
23799
23817
|
if (!objectPrototype)
|
|
23800
23818
|
return true;
|
|
@@ -23844,16 +23862,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23844
23862
|
sessionStorageRemoveItem(SESSION_STORAGE_RECORD_TIMELINE_KEY);
|
|
23845
23863
|
}
|
|
23846
23864
|
function hydration_ownKeys(object, enumerableOnly) {
|
|
23847
|
-
var
|
|
23865
|
+
var keys2 = Object.keys(object);
|
|
23848
23866
|
if (Object.getOwnPropertySymbols) {
|
|
23849
23867
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
23850
23868
|
if (enumerableOnly)
|
|
23851
23869
|
symbols = symbols.filter(function(sym) {
|
|
23852
23870
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23853
23871
|
});
|
|
23854
|
-
|
|
23872
|
+
keys2.push.apply(keys2, symbols);
|
|
23855
23873
|
}
|
|
23856
|
-
return
|
|
23874
|
+
return keys2;
|
|
23857
23875
|
}
|
|
23858
23876
|
function hydration_objectSpread(target) {
|
|
23859
23877
|
for (var i = 1;i < arguments.length; i++) {
|
|
@@ -24202,14 +24220,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24202
24220
|
}
|
|
24203
24221
|
if (value !== null && data.unserializable.length > 0) {
|
|
24204
24222
|
var unserializablePath = data.unserializable[0];
|
|
24205
|
-
var
|
|
24223
|
+
var isMatch2 = unserializablePath.length === path.length;
|
|
24206
24224
|
for (var i = 0;i < path.length; i++) {
|
|
24207
24225
|
if (path[i] !== unserializablePath[i]) {
|
|
24208
|
-
|
|
24226
|
+
isMatch2 = false;
|
|
24209
24227
|
break;
|
|
24210
24228
|
}
|
|
24211
24229
|
}
|
|
24212
|
-
if (
|
|
24230
|
+
if (isMatch2) {
|
|
24213
24231
|
upgradeUnserializable(value, value);
|
|
24214
24232
|
}
|
|
24215
24233
|
}
|
|
@@ -24218,20 +24236,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24218
24236
|
function hydrate(object, cleaned, unserializable) {
|
|
24219
24237
|
cleaned.forEach(function(path) {
|
|
24220
24238
|
var length = path.length;
|
|
24221
|
-
var
|
|
24239
|
+
var last2 = path[length - 1];
|
|
24222
24240
|
var parent = getInObject(object, path.slice(0, length - 1));
|
|
24223
|
-
if (!parent || !parent.hasOwnProperty(
|
|
24241
|
+
if (!parent || !parent.hasOwnProperty(last2)) {
|
|
24224
24242
|
return;
|
|
24225
24243
|
}
|
|
24226
|
-
var value = parent[
|
|
24244
|
+
var value = parent[last2];
|
|
24227
24245
|
if (!value) {
|
|
24228
24246
|
return;
|
|
24229
24247
|
} else if (value.type === "infinity") {
|
|
24230
|
-
parent[
|
|
24248
|
+
parent[last2] = Infinity;
|
|
24231
24249
|
} else if (value.type === "nan") {
|
|
24232
|
-
parent[
|
|
24250
|
+
parent[last2] = NaN;
|
|
24233
24251
|
} else if (value.type === "undefined") {
|
|
24234
|
-
parent[
|
|
24252
|
+
parent[last2] = undefined;
|
|
24235
24253
|
} else {
|
|
24236
24254
|
var replaced = {};
|
|
24237
24255
|
replaced[meta.inspectable] = !!value.inspectable;
|
|
@@ -24242,20 +24260,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24242
24260
|
replaced[meta.size] = value.size;
|
|
24243
24261
|
replaced[meta.readonly] = !!value.readonly;
|
|
24244
24262
|
replaced[meta.type] = value.type;
|
|
24245
|
-
parent[
|
|
24263
|
+
parent[last2] = replaced;
|
|
24246
24264
|
}
|
|
24247
24265
|
});
|
|
24248
24266
|
unserializable.forEach(function(path) {
|
|
24249
24267
|
var length = path.length;
|
|
24250
|
-
var
|
|
24268
|
+
var last2 = path[length - 1];
|
|
24251
24269
|
var parent = getInObject(object, path.slice(0, length - 1));
|
|
24252
|
-
if (!parent || !parent.hasOwnProperty(
|
|
24270
|
+
if (!parent || !parent.hasOwnProperty(last2)) {
|
|
24253
24271
|
return;
|
|
24254
24272
|
}
|
|
24255
|
-
var node = parent[
|
|
24273
|
+
var node = parent[last2];
|
|
24256
24274
|
var replacement = hydration_objectSpread({}, node);
|
|
24257
24275
|
upgradeUnserializable(replacement, node);
|
|
24258
|
-
parent[
|
|
24276
|
+
parent[last2] = replacement;
|
|
24259
24277
|
});
|
|
24260
24278
|
return object;
|
|
24261
24279
|
}
|
|
@@ -24449,16 +24467,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24449
24467
|
return backend_utils_typeof(obj);
|
|
24450
24468
|
}
|
|
24451
24469
|
function utils_ownKeys(object, enumerableOnly) {
|
|
24452
|
-
var
|
|
24470
|
+
var keys2 = Object.keys(object);
|
|
24453
24471
|
if (Object.getOwnPropertySymbols) {
|
|
24454
24472
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
24455
24473
|
if (enumerableOnly)
|
|
24456
24474
|
symbols = symbols.filter(function(sym) {
|
|
24457
24475
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
24458
24476
|
});
|
|
24459
|
-
|
|
24477
|
+
keys2.push.apply(keys2, symbols);
|
|
24460
24478
|
}
|
|
24461
|
-
return
|
|
24479
|
+
return keys2;
|
|
24462
24480
|
}
|
|
24463
24481
|
function utils_objectSpread(target) {
|
|
24464
24482
|
for (var i = 1;i < arguments.length; i++) {
|
|
@@ -24490,7 +24508,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24490
24508
|
if (version == null || version === "") {
|
|
24491
24509
|
return false;
|
|
24492
24510
|
}
|
|
24493
|
-
return
|
|
24511
|
+
return gte2(version, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
|
|
24494
24512
|
}
|
|
24495
24513
|
function cleanForBridge(data, isPathAllowed) {
|
|
24496
24514
|
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
@@ -24638,12 +24656,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24638
24656
|
function isSynchronousXHRSupported() {
|
|
24639
24657
|
return !!(window.document && window.document.featurePolicy && window.document.featurePolicy.allowsFeature("sync-xhr"));
|
|
24640
24658
|
}
|
|
24641
|
-
function
|
|
24659
|
+
function gt2() {
|
|
24642
24660
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
24643
24661
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
24644
24662
|
return compareVersions(a, b) === 1;
|
|
24645
24663
|
}
|
|
24646
|
-
function
|
|
24664
|
+
function gte2() {
|
|
24647
24665
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
24648
24666
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
24649
24667
|
return compareVersions(a, b) > -1;
|
|
@@ -24731,11 +24749,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24731
24749
|
}
|
|
24732
24750
|
var collectedLocation = null;
|
|
24733
24751
|
function collectStackTrace(error, structuredStackTrace) {
|
|
24734
|
-
var
|
|
24752
|
+
var result2 = null;
|
|
24735
24753
|
for (var i = 0;i < structuredStackTrace.length; i++) {
|
|
24736
24754
|
var callSite = structuredStackTrace[i];
|
|
24737
24755
|
if (callSite.getFunctionName() === "react-stack-bottom-frame") {
|
|
24738
|
-
collectedLocation =
|
|
24756
|
+
collectedLocation = result2;
|
|
24739
24757
|
break;
|
|
24740
24758
|
} else {
|
|
24741
24759
|
var sourceURL = callSite.getScriptNameOrSourceURL();
|
|
@@ -24744,7 +24762,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24744
24762
|
if (!sourceURL || !line || !col) {
|
|
24745
24763
|
continue;
|
|
24746
24764
|
}
|
|
24747
|
-
|
|
24765
|
+
result2 = {
|
|
24748
24766
|
sourceURL,
|
|
24749
24767
|
line,
|
|
24750
24768
|
column: col
|
|
@@ -24984,14 +25002,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24984
25002
|
}
|
|
24985
25003
|
return Overlay_createClass(OverlayRect2, [{
|
|
24986
25004
|
key: "remove",
|
|
24987
|
-
value: function
|
|
25005
|
+
value: function remove2() {
|
|
24988
25006
|
if (this.node.parentNode) {
|
|
24989
25007
|
this.node.parentNode.removeChild(this.node);
|
|
24990
25008
|
}
|
|
24991
25009
|
}
|
|
24992
25010
|
}, {
|
|
24993
25011
|
key: "update",
|
|
24994
|
-
value: function
|
|
25012
|
+
value: function update2(box, dims) {
|
|
24995
25013
|
boxWrap(dims, "margin", this.node);
|
|
24996
25014
|
boxWrap(dims, "border", this.border);
|
|
24997
25015
|
boxWrap(dims, "padding", this.padding);
|
|
@@ -25041,7 +25059,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25041
25059
|
}
|
|
25042
25060
|
return Overlay_createClass(OverlayTip2, [{
|
|
25043
25061
|
key: "remove",
|
|
25044
|
-
value: function
|
|
25062
|
+
value: function remove2() {
|
|
25045
25063
|
if (this.tip.parentNode) {
|
|
25046
25064
|
this.tip.parentNode.removeChild(this.tip);
|
|
25047
25065
|
}
|
|
@@ -25081,7 +25099,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25081
25099
|
}
|
|
25082
25100
|
return Overlay_createClass(Overlay2, [{
|
|
25083
25101
|
key: "remove",
|
|
25084
|
-
value: function
|
|
25102
|
+
value: function remove2() {
|
|
25085
25103
|
this.tip.remove();
|
|
25086
25104
|
this.rects.forEach(function(rect) {
|
|
25087
25105
|
rect.remove();
|
|
@@ -25615,11 +25633,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25615
25633
|
return;
|
|
25616
25634
|
nodes.forEach(function(node) {
|
|
25617
25635
|
var data = nodeToData.get(node);
|
|
25618
|
-
var
|
|
25636
|
+
var now2 = getCurrentTime();
|
|
25619
25637
|
var lastMeasuredAt = data != null ? data.lastMeasuredAt : 0;
|
|
25620
25638
|
var rect = data != null ? data.rect : null;
|
|
25621
|
-
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION <
|
|
25622
|
-
lastMeasuredAt =
|
|
25639
|
+
if (rect === null || lastMeasuredAt + REMEASUREMENT_AFTER_DURATION < now2) {
|
|
25640
|
+
lastMeasuredAt = now2;
|
|
25623
25641
|
rect = measureNode(node);
|
|
25624
25642
|
}
|
|
25625
25643
|
var displayName = agent.getComponentNameForHostInstance(node);
|
|
@@ -25633,7 +25651,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25633
25651
|
}
|
|
25634
25652
|
nodeToData.set(node, {
|
|
25635
25653
|
count: data != null ? data.count + 1 : 1,
|
|
25636
|
-
expirationTime: data != null ? Math.min(
|
|
25654
|
+
expirationTime: data != null ? Math.min(now2 + MAX_DISPLAY_DURATION, data.expirationTime + DISPLAY_DURATION) : now2 + DISPLAY_DURATION,
|
|
25637
25655
|
lastMeasuredAt,
|
|
25638
25656
|
rect,
|
|
25639
25657
|
displayName
|
|
@@ -25650,10 +25668,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25650
25668
|
function prepareToDraw() {
|
|
25651
25669
|
drawAnimationFrameID = null;
|
|
25652
25670
|
redrawTimeoutID = null;
|
|
25653
|
-
var
|
|
25671
|
+
var now2 = getCurrentTime();
|
|
25654
25672
|
var earliestExpiration = Number.MAX_VALUE;
|
|
25655
25673
|
nodeToData.forEach(function(data, node) {
|
|
25656
|
-
if (data.expirationTime <
|
|
25674
|
+
if (data.expirationTime < now2) {
|
|
25657
25675
|
nodeToData.delete(node);
|
|
25658
25676
|
} else {
|
|
25659
25677
|
earliestExpiration = Math.min(earliestExpiration, data.expirationTime);
|
|
@@ -25661,7 +25679,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25661
25679
|
});
|
|
25662
25680
|
draw(nodeToData, agent);
|
|
25663
25681
|
if (earliestExpiration !== Number.MAX_VALUE) {
|
|
25664
|
-
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration -
|
|
25682
|
+
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now2);
|
|
25665
25683
|
}
|
|
25666
25684
|
}
|
|
25667
25685
|
function measureNode(node) {
|
|
@@ -25893,7 +25911,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
25893
25911
|
_inherits(Bridge2, _EventEmitter);
|
|
25894
25912
|
return bridge_createClass(Bridge2, [{
|
|
25895
25913
|
key: "wall",
|
|
25896
|
-
get: function
|
|
25914
|
+
get: function get2() {
|
|
25897
25915
|
return this._wall;
|
|
25898
25916
|
}
|
|
25899
25917
|
}, {
|
|
@@ -26497,7 +26515,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26497
26515
|
agent_inherits(Agent2, _EventEmitter);
|
|
26498
26516
|
return agent_createClass(Agent2, [{
|
|
26499
26517
|
key: "rendererInterfaces",
|
|
26500
|
-
get: function
|
|
26518
|
+
get: function get2() {
|
|
26501
26519
|
return this._rendererInterfaces;
|
|
26502
26520
|
}
|
|
26503
26521
|
}, {
|
|
@@ -26620,16 +26638,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26620
26638
|
}]);
|
|
26621
26639
|
}(EventEmitter);
|
|
26622
26640
|
function DevToolsConsolePatching_ownKeys(object, enumerableOnly) {
|
|
26623
|
-
var
|
|
26641
|
+
var keys2 = Object.keys(object);
|
|
26624
26642
|
if (Object.getOwnPropertySymbols) {
|
|
26625
26643
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
26626
26644
|
if (enumerableOnly)
|
|
26627
26645
|
symbols = symbols.filter(function(sym) {
|
|
26628
26646
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26629
26647
|
});
|
|
26630
|
-
|
|
26648
|
+
keys2.push.apply(keys2, symbols);
|
|
26631
26649
|
}
|
|
26632
|
-
return
|
|
26650
|
+
return keys2;
|
|
26633
26651
|
}
|
|
26634
26652
|
function DevToolsConsolePatching_objectSpread(target) {
|
|
26635
26653
|
for (var i = 1;i < arguments.length; i++) {
|
|
@@ -26849,7 +26867,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26849
26867
|
throw Error();
|
|
26850
26868
|
};
|
|
26851
26869
|
Object.defineProperty(Fake.prototype, "props", {
|
|
26852
|
-
set: function
|
|
26870
|
+
set: function set2() {
|
|
26853
26871
|
throw Error();
|
|
26854
26872
|
}
|
|
26855
26873
|
});
|
|
@@ -26879,9 +26897,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26879
26897
|
maybePromise.catch(function() {});
|
|
26880
26898
|
}
|
|
26881
26899
|
}
|
|
26882
|
-
} catch (
|
|
26883
|
-
if (
|
|
26884
|
-
return [
|
|
26900
|
+
} catch (sample2) {
|
|
26901
|
+
if (sample2 && control && typeof sample2.stack === "string") {
|
|
26902
|
+
return [sample2.stack, control.stack];
|
|
26885
26903
|
}
|
|
26886
26904
|
}
|
|
26887
26905
|
return [null, null];
|
|
@@ -27364,8 +27382,8 @@ Error generating stack: ` + x.message + `
|
|
|
27364
27382
|
resolvedStyles = Object.fromEntries(Object.entries(resolvedStyles).sort());
|
|
27365
27383
|
}
|
|
27366
27384
|
function crawlObjectProperties(entry, sources, resolvedStyles) {
|
|
27367
|
-
var
|
|
27368
|
-
|
|
27385
|
+
var keys2 = Object.keys(entry);
|
|
27386
|
+
keys2.forEach(function(key) {
|
|
27369
27387
|
var value = entry[key];
|
|
27370
27388
|
if (typeof value === "string") {
|
|
27371
27389
|
if (key === value) {
|
|
@@ -27405,8 +27423,8 @@ Error generating stack: ` + x.message + `
|
|
|
27405
27423
|
if (selectorText.startsWith(".".concat(styleName))) {
|
|
27406
27424
|
var match = cssText.match(/{ *([a-z\-]+):/);
|
|
27407
27425
|
if (match !== null) {
|
|
27408
|
-
var
|
|
27409
|
-
var value = style.getPropertyValue(
|
|
27426
|
+
var property2 = match[1];
|
|
27427
|
+
var value = style.getPropertyValue(property2);
|
|
27410
27428
|
cachedStyleNameToValueMap.set(styleName, value);
|
|
27411
27429
|
return value;
|
|
27412
27430
|
} else {
|
|
@@ -27815,11 +27833,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27815
27833
|
var CHECK_V3_MARK = "__v3";
|
|
27816
27834
|
var markOptions = {};
|
|
27817
27835
|
Object.defineProperty(markOptions, "startTime", {
|
|
27818
|
-
get: function
|
|
27836
|
+
get: function get2() {
|
|
27819
27837
|
supportsUserTimingV3 = true;
|
|
27820
27838
|
return 0;
|
|
27821
27839
|
},
|
|
27822
|
-
set: function
|
|
27840
|
+
set: function set2() {}
|
|
27823
27841
|
});
|
|
27824
27842
|
try {
|
|
27825
27843
|
performance.mark(CHECK_V3_MARK, markOptions);
|
|
@@ -27889,8 +27907,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27889
27907
|
var ranges = getInternalModuleRanges();
|
|
27890
27908
|
if (ranges) {
|
|
27891
27909
|
for (var i = 0;i < ranges.length; i++) {
|
|
27892
|
-
var
|
|
27893
|
-
if (shared_isArray(
|
|
27910
|
+
var range2 = ranges[i];
|
|
27911
|
+
if (shared_isArray(range2) && range2.length === 2) {
|
|
27894
27912
|
var _ranges$i = profilingHooks_slicedToArray(ranges[i], 2), startStackFrame = _ranges$i[0], stopStackFrame = _ranges$i[1];
|
|
27895
27913
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
27896
27914
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -28328,8 +28346,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28328
28346
|
var ranges = getInternalModuleRanges();
|
|
28329
28347
|
if (ranges) {
|
|
28330
28348
|
for (var i = 0;i < ranges.length; i++) {
|
|
28331
|
-
var
|
|
28332
|
-
if (shared_isArray(
|
|
28349
|
+
var range2 = ranges[i];
|
|
28350
|
+
if (shared_isArray(range2) && range2.length === 2) {
|
|
28333
28351
|
var _ranges$i2 = profilingHooks_slicedToArray(ranges[i], 2), startStackFrame = _ranges$i2[0], stopStackFrame = _ranges$i2[1];
|
|
28334
28352
|
markAndClear("--react-internal-module-start-".concat(startStackFrame));
|
|
28335
28353
|
markAndClear("--react-internal-module-stop-".concat(stopStackFrame));
|
|
@@ -28450,16 +28468,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28450
28468
|
return target;
|
|
28451
28469
|
}
|
|
28452
28470
|
function renderer_ownKeys(object, enumerableOnly) {
|
|
28453
|
-
var
|
|
28471
|
+
var keys2 = Object.keys(object);
|
|
28454
28472
|
if (Object.getOwnPropertySymbols) {
|
|
28455
28473
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
28456
28474
|
if (enumerableOnly)
|
|
28457
28475
|
symbols = symbols.filter(function(sym) {
|
|
28458
28476
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
28459
28477
|
});
|
|
28460
|
-
|
|
28478
|
+
keys2.push.apply(keys2, symbols);
|
|
28461
28479
|
}
|
|
28462
|
-
return
|
|
28480
|
+
return keys2;
|
|
28463
28481
|
}
|
|
28464
28482
|
function renderer_objectSpread(target) {
|
|
28465
28483
|
for (var i = 1;i < arguments.length; i++) {
|
|
@@ -28654,7 +28672,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28654
28672
|
IdlePriority: 95,
|
|
28655
28673
|
NoPriority: 90
|
|
28656
28674
|
};
|
|
28657
|
-
if (
|
|
28675
|
+
if (gt2(version, "17.0.2")) {
|
|
28658
28676
|
ReactPriorityLevels = {
|
|
28659
28677
|
ImmediatePriority: 1,
|
|
28660
28678
|
UserBlockingPriority: 2,
|
|
@@ -28665,15 +28683,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28665
28683
|
};
|
|
28666
28684
|
}
|
|
28667
28685
|
var StrictModeBits = 0;
|
|
28668
|
-
if (
|
|
28686
|
+
if (gte2(version, "18.0.0-alpha")) {
|
|
28669
28687
|
StrictModeBits = 24;
|
|
28670
|
-
} else if (
|
|
28688
|
+
} else if (gte2(version, "16.9.0")) {
|
|
28671
28689
|
StrictModeBits = 1;
|
|
28672
|
-
} else if (
|
|
28690
|
+
} else if (gte2(version, "16.3.0")) {
|
|
28673
28691
|
StrictModeBits = 2;
|
|
28674
28692
|
}
|
|
28675
28693
|
var ReactTypeOfWork = null;
|
|
28676
|
-
if (
|
|
28694
|
+
if (gt2(version, "17.0.1")) {
|
|
28677
28695
|
ReactTypeOfWork = {
|
|
28678
28696
|
CacheComponent: 24,
|
|
28679
28697
|
ClassComponent: 1,
|
|
@@ -28710,7 +28728,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28710
28728
|
ViewTransitionComponent: 30,
|
|
28711
28729
|
ActivityComponent: 31
|
|
28712
28730
|
};
|
|
28713
|
-
} else if (
|
|
28731
|
+
} else if (gte2(version, "17.0.0-alpha")) {
|
|
28714
28732
|
ReactTypeOfWork = {
|
|
28715
28733
|
CacheComponent: -1,
|
|
28716
28734
|
ClassComponent: 1,
|
|
@@ -28747,7 +28765,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28747
28765
|
ViewTransitionComponent: -1,
|
|
28748
28766
|
ActivityComponent: -1
|
|
28749
28767
|
};
|
|
28750
|
-
} else if (
|
|
28768
|
+
} else if (gte2(version, "16.6.0-beta.0")) {
|
|
28751
28769
|
ReactTypeOfWork = {
|
|
28752
28770
|
CacheComponent: -1,
|
|
28753
28771
|
ClassComponent: 1,
|
|
@@ -28784,7 +28802,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28784
28802
|
ViewTransitionComponent: -1,
|
|
28785
28803
|
ActivityComponent: -1
|
|
28786
28804
|
};
|
|
28787
|
-
} else if (
|
|
28805
|
+
} else if (gte2(version, "16.4.3-alpha")) {
|
|
28788
28806
|
ReactTypeOfWork = {
|
|
28789
28807
|
CacheComponent: -1,
|
|
28790
28808
|
ClassComponent: 2,
|
|
@@ -29666,9 +29684,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
29666
29684
|
if (prev == null || next == null) {
|
|
29667
29685
|
return null;
|
|
29668
29686
|
}
|
|
29669
|
-
var
|
|
29687
|
+
var keys2 = new Set([].concat(fiber_renderer_toConsumableArray(Object.keys(prev)), fiber_renderer_toConsumableArray(Object.keys(next))));
|
|
29670
29688
|
var changedKeys = [];
|
|
29671
|
-
var _iterator6 = renderer_createForOfIteratorHelper(
|
|
29689
|
+
var _iterator6 = renderer_createForOfIteratorHelper(keys2), _step6;
|
|
29672
29690
|
try {
|
|
29673
29691
|
for (_iterator6.s();!(_step6 = _iterator6.n()).done; ) {
|
|
29674
29692
|
var key = _step6.value;
|
|
@@ -31063,10 +31081,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
31063
31081
|
var hooks = null;
|
|
31064
31082
|
if (usesHooks) {
|
|
31065
31083
|
var originalConsoleMethods = {};
|
|
31066
|
-
for (var
|
|
31084
|
+
for (var method2 in console) {
|
|
31067
31085
|
try {
|
|
31068
|
-
originalConsoleMethods[
|
|
31069
|
-
console[
|
|
31086
|
+
originalConsoleMethods[method2] = console[method2];
|
|
31087
|
+
console[method2] = function() {};
|
|
31070
31088
|
} catch (error) {}
|
|
31071
31089
|
}
|
|
31072
31090
|
try {
|
|
@@ -31423,8 +31441,8 @@ The error thrown in the component is:
|
|
|
31423
31441
|
};
|
|
31424
31442
|
}
|
|
31425
31443
|
function logElementToConsole(id) {
|
|
31426
|
-
var
|
|
31427
|
-
if (
|
|
31444
|
+
var result2 = isMostRecentlyInspectedElementCurrent(id) ? mostRecentlyInspectedElement : inspectElementRaw(id);
|
|
31445
|
+
if (result2 === null) {
|
|
31428
31446
|
console.warn('Could not find DevToolsInstance with id "'.concat(id, '"'));
|
|
31429
31447
|
return;
|
|
31430
31448
|
}
|
|
@@ -31433,14 +31451,14 @@ The error thrown in the component is:
|
|
|
31433
31451
|
if (supportsGroup) {
|
|
31434
31452
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
31435
31453
|
}
|
|
31436
|
-
if (
|
|
31437
|
-
console.log("Props:",
|
|
31454
|
+
if (result2.props !== null) {
|
|
31455
|
+
console.log("Props:", result2.props);
|
|
31438
31456
|
}
|
|
31439
|
-
if (
|
|
31440
|
-
console.log("State:",
|
|
31457
|
+
if (result2.state !== null) {
|
|
31458
|
+
console.log("State:", result2.state);
|
|
31441
31459
|
}
|
|
31442
|
-
if (
|
|
31443
|
-
console.log("Hooks:",
|
|
31460
|
+
if (result2.hooks !== null) {
|
|
31461
|
+
console.log("Hooks:", result2.hooks);
|
|
31444
31462
|
}
|
|
31445
31463
|
var hostInstances = findHostInstancesForElementID(id);
|
|
31446
31464
|
if (hostInstances !== null) {
|
|
@@ -31656,8 +31674,8 @@ The error thrown in the component is:
|
|
|
31656
31674
|
if (typeof getTimelineData === "function") {
|
|
31657
31675
|
var currentTimelineData = getTimelineData();
|
|
31658
31676
|
if (currentTimelineData) {
|
|
31659
|
-
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData,
|
|
31660
|
-
timelineData = renderer_objectSpread(renderer_objectSpread({},
|
|
31677
|
+
var { batchUIDToMeasuresMap, internalModuleSourceToRanges, laneToLabelMap, laneToReactMeasureMap } = currentTimelineData, rest2 = _objectWithoutProperties(currentTimelineData, ["batchUIDToMeasuresMap", "internalModuleSourceToRanges", "laneToLabelMap", "laneToReactMeasureMap"]);
|
|
31678
|
+
timelineData = renderer_objectSpread(renderer_objectSpread({}, rest2), {}, {
|
|
31661
31679
|
batchUIDToMeasuresKeyValueArray: Array.from(batchUIDToMeasuresMap.entries()),
|
|
31662
31680
|
internalModuleSourceToRanges: Array.from(internalModuleSourceToRanges.entries()),
|
|
31663
31681
|
laneToLabelKeyValueArray: Array.from(laneToLabelMap.entries()),
|
|
@@ -32157,16 +32175,16 @@ The error thrown in the component is:
|
|
|
32157
32175
|
}
|
|
32158
32176
|
}
|
|
32159
32177
|
function legacy_renderer_ownKeys(object, enumerableOnly) {
|
|
32160
|
-
var
|
|
32178
|
+
var keys2 = Object.keys(object);
|
|
32161
32179
|
if (Object.getOwnPropertySymbols) {
|
|
32162
32180
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
32163
32181
|
if (enumerableOnly)
|
|
32164
32182
|
symbols = symbols.filter(function(sym) {
|
|
32165
32183
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32166
32184
|
});
|
|
32167
|
-
|
|
32185
|
+
keys2.push.apply(keys2, symbols);
|
|
32168
32186
|
}
|
|
32169
|
-
return
|
|
32187
|
+
return keys2;
|
|
32170
32188
|
}
|
|
32171
32189
|
function legacy_renderer_objectSpread(target) {
|
|
32172
32190
|
for (var i = 1;i < arguments.length; i++) {
|
|
@@ -32337,9 +32355,9 @@ The error thrown in the component is:
|
|
|
32337
32355
|
parentIDStack.push(id);
|
|
32338
32356
|
internalInstanceToRootIDMap.set(internalInstance, getID(hostContainerInfo._topLevelWrapper));
|
|
32339
32357
|
try {
|
|
32340
|
-
var
|
|
32358
|
+
var result2 = fn.apply(this, args);
|
|
32341
32359
|
parentIDStack.pop();
|
|
32342
|
-
return
|
|
32360
|
+
return result2;
|
|
32343
32361
|
} catch (err) {
|
|
32344
32362
|
parentIDStack = [];
|
|
32345
32363
|
throw err;
|
|
@@ -32362,13 +32380,13 @@ The error thrown in the component is:
|
|
|
32362
32380
|
parentIDStack.push(id);
|
|
32363
32381
|
var prevChildren = getChildren(internalInstance);
|
|
32364
32382
|
try {
|
|
32365
|
-
var
|
|
32383
|
+
var result2 = fn.apply(this, args);
|
|
32366
32384
|
var nextChildren = getChildren(internalInstance);
|
|
32367
32385
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
32368
32386
|
recordReorder(internalInstance, id, nextChildren);
|
|
32369
32387
|
}
|
|
32370
32388
|
parentIDStack.pop();
|
|
32371
|
-
return
|
|
32389
|
+
return result2;
|
|
32372
32390
|
} catch (err) {
|
|
32373
32391
|
parentIDStack = [];
|
|
32374
32392
|
throw err;
|
|
@@ -32391,13 +32409,13 @@ The error thrown in the component is:
|
|
|
32391
32409
|
parentIDStack.push(id);
|
|
32392
32410
|
var prevChildren = getChildren(internalInstance);
|
|
32393
32411
|
try {
|
|
32394
|
-
var
|
|
32412
|
+
var result2 = fn.apply(this, args);
|
|
32395
32413
|
var nextChildren = getChildren(internalInstance);
|
|
32396
32414
|
if (!areEqualArrays(prevChildren, nextChildren)) {
|
|
32397
32415
|
recordReorder(internalInstance, id, nextChildren);
|
|
32398
32416
|
}
|
|
32399
32417
|
parentIDStack.pop();
|
|
32400
|
-
return
|
|
32418
|
+
return result2;
|
|
32401
32419
|
} catch (err) {
|
|
32402
32420
|
parentIDStack = [];
|
|
32403
32421
|
throw err;
|
|
@@ -32419,10 +32437,10 @@ The error thrown in the component is:
|
|
|
32419
32437
|
var id = getID(internalInstance);
|
|
32420
32438
|
parentIDStack.push(id);
|
|
32421
32439
|
try {
|
|
32422
|
-
var
|
|
32440
|
+
var result2 = fn.apply(this, args);
|
|
32423
32441
|
parentIDStack.pop();
|
|
32424
32442
|
recordUnmount(internalInstance, id);
|
|
32425
|
-
return
|
|
32443
|
+
return result2;
|
|
32426
32444
|
} catch (err) {
|
|
32427
32445
|
parentIDStack = [];
|
|
32428
32446
|
throw err;
|
|
@@ -32762,8 +32780,8 @@ The error thrown in the component is:
|
|
|
32762
32780
|
};
|
|
32763
32781
|
}
|
|
32764
32782
|
function logElementToConsole(id) {
|
|
32765
|
-
var
|
|
32766
|
-
if (
|
|
32783
|
+
var result2 = inspectElementRaw(id);
|
|
32784
|
+
if (result2 === null) {
|
|
32767
32785
|
console.warn('Could not find element with id "'.concat(id, '"'));
|
|
32768
32786
|
return;
|
|
32769
32787
|
}
|
|
@@ -32772,14 +32790,14 @@ The error thrown in the component is:
|
|
|
32772
32790
|
if (supportsGroup) {
|
|
32773
32791
|
console.groupCollapsed("[Click to expand] %c<".concat(displayName || "Component", " />"), "color: var(--dom-tag-name-color); font-weight: normal;");
|
|
32774
32792
|
}
|
|
32775
|
-
if (
|
|
32776
|
-
console.log("Props:",
|
|
32793
|
+
if (result2.props !== null) {
|
|
32794
|
+
console.log("Props:", result2.props);
|
|
32777
32795
|
}
|
|
32778
|
-
if (
|
|
32779
|
-
console.log("State:",
|
|
32796
|
+
if (result2.state !== null) {
|
|
32797
|
+
console.log("State:", result2.state);
|
|
32780
32798
|
}
|
|
32781
|
-
if (
|
|
32782
|
-
console.log("Context:",
|
|
32799
|
+
if (result2.context !== null) {
|
|
32800
|
+
console.log("Context:", result2.context);
|
|
32783
32801
|
}
|
|
32784
32802
|
var hostInstance = findHostInstanceForInternalID(id);
|
|
32785
32803
|
if (hostInstance !== null) {
|
|
@@ -33077,12 +33095,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33077
33095
|
return [maybeMessage].concat(inputArgs);
|
|
33078
33096
|
}
|
|
33079
33097
|
var args = inputArgs.slice();
|
|
33080
|
-
var
|
|
33098
|
+
var template2 = "";
|
|
33081
33099
|
var argumentsPointer = 0;
|
|
33082
33100
|
for (var i = 0;i < maybeMessage.length; ++i) {
|
|
33083
33101
|
var currentChar = maybeMessage[i];
|
|
33084
33102
|
if (currentChar !== "%") {
|
|
33085
|
-
|
|
33103
|
+
template2 += currentChar;
|
|
33086
33104
|
continue;
|
|
33087
33105
|
}
|
|
33088
33106
|
var nextChar = maybeMessage[i + 1];
|
|
@@ -33092,30 +33110,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33092
33110
|
case "O":
|
|
33093
33111
|
case "o": {
|
|
33094
33112
|
++argumentsPointer;
|
|
33095
|
-
|
|
33113
|
+
template2 += "%".concat(nextChar);
|
|
33096
33114
|
break;
|
|
33097
33115
|
}
|
|
33098
33116
|
case "d":
|
|
33099
33117
|
case "i": {
|
|
33100
33118
|
var _args$splice = args.splice(argumentsPointer, 1), _args$splice2 = formatConsoleArguments_slicedToArray(_args$splice, 1), arg = _args$splice2[0];
|
|
33101
|
-
|
|
33119
|
+
template2 += parseInt(arg, 10).toString();
|
|
33102
33120
|
break;
|
|
33103
33121
|
}
|
|
33104
33122
|
case "f": {
|
|
33105
33123
|
var _args$splice3 = args.splice(argumentsPointer, 1), _args$splice4 = formatConsoleArguments_slicedToArray(_args$splice3, 1), _arg = _args$splice4[0];
|
|
33106
|
-
|
|
33124
|
+
template2 += parseFloat(_arg).toString();
|
|
33107
33125
|
break;
|
|
33108
33126
|
}
|
|
33109
33127
|
case "s": {
|
|
33110
33128
|
var _args$splice5 = args.splice(argumentsPointer, 1), _args$splice6 = formatConsoleArguments_slicedToArray(_args$splice5, 1), _arg2 = _args$splice6[0];
|
|
33111
|
-
|
|
33129
|
+
template2 += String(_arg2);
|
|
33112
33130
|
break;
|
|
33113
33131
|
}
|
|
33114
33132
|
default:
|
|
33115
|
-
|
|
33133
|
+
template2 += "%".concat(nextChar);
|
|
33116
33134
|
}
|
|
33117
33135
|
}
|
|
33118
|
-
return [
|
|
33136
|
+
return [template2].concat(formatConsoleArguments_toConsumableArray(args));
|
|
33119
33137
|
}
|
|
33120
33138
|
function hook_createForOfIteratorHelper(o, allowArrayLike) {
|
|
33121
33139
|
var it;
|
|
@@ -33374,8 +33392,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33374
33392
|
}
|
|
33375
33393
|
var consoleMethodsToOverrideForStrictMode = ["group", "groupCollapsed", "info", "log"];
|
|
33376
33394
|
var _loop = function _loop2() {
|
|
33377
|
-
var
|
|
33378
|
-
var originalMethod = targetConsole[
|
|
33395
|
+
var method2 = _consoleMethodsToOver[_i];
|
|
33396
|
+
var originalMethod = targetConsole[method2];
|
|
33379
33397
|
var overrideMethod = function overrideMethod2() {
|
|
33380
33398
|
var settings = hook.settings;
|
|
33381
33399
|
for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
|
|
@@ -33392,9 +33410,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33392
33410
|
originalMethod.apply(undefined, [ANSI_STYLE_DIMMING_TEMPLATE].concat(hook_toConsumableArray(formatConsoleArguments.apply(undefined, args))));
|
|
33393
33411
|
}
|
|
33394
33412
|
};
|
|
33395
|
-
targetConsole[
|
|
33413
|
+
targetConsole[method2] = overrideMethod;
|
|
33396
33414
|
unpatchConsoleCallbacks.push(function() {
|
|
33397
|
-
targetConsole[
|
|
33415
|
+
targetConsole[method2] = originalMethod;
|
|
33398
33416
|
});
|
|
33399
33417
|
};
|
|
33400
33418
|
for (var _i = 0, _consoleMethodsToOver = consoleMethodsToOverrideForStrictMode;_i < _consoleMethodsToOver.length; _i++) {
|
|
@@ -33439,8 +33457,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33439
33457
|
}
|
|
33440
33458
|
var consoleMethodsToOverrideForErrorsAndWarnings = ["error", "trace", "warn"];
|
|
33441
33459
|
var _loop2 = function _loop22() {
|
|
33442
|
-
var
|
|
33443
|
-
var originalMethod = targetConsole[
|
|
33460
|
+
var method2 = _consoleMethodsToOver2[_i2];
|
|
33461
|
+
var originalMethod = targetConsole[method2];
|
|
33444
33462
|
var overrideMethod = function overrideMethod2() {
|
|
33445
33463
|
var settings = hook.settings;
|
|
33446
33464
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;_key2 < _len2; _key2++) {
|
|
@@ -33459,7 +33477,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33459
33477
|
var lastArg = args.length > 0 ? args[args.length - 1] : null;
|
|
33460
33478
|
alreadyHasComponentStack = typeof lastArg === "string" && isStringComponentStack(lastArg);
|
|
33461
33479
|
}
|
|
33462
|
-
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (
|
|
33480
|
+
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (method2 === "error" || method2 === "warn");
|
|
33463
33481
|
var _iterator = hook_createForOfIteratorHelper(hook.rendererInterfaces.values()), _step;
|
|
33464
33482
|
try {
|
|
33465
33483
|
for (_iterator.s();!(_step = _iterator.n()).done; ) {
|
|
@@ -33468,7 +33486,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33468
33486
|
try {
|
|
33469
33487
|
if (shouldShowInlineWarningsAndErrors) {
|
|
33470
33488
|
if (onErrorOrWarning != null) {
|
|
33471
|
-
onErrorOrWarning(
|
|
33489
|
+
onErrorOrWarning(method2, args.slice());
|
|
33472
33490
|
}
|
|
33473
33491
|
}
|
|
33474
33492
|
} catch (error) {
|
|
@@ -33529,7 +33547,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33529
33547
|
originalMethod.apply(undefined, args);
|
|
33530
33548
|
}
|
|
33531
33549
|
};
|
|
33532
|
-
targetConsole[
|
|
33550
|
+
targetConsole[method2] = overrideMethod;
|
|
33533
33551
|
};
|
|
33534
33552
|
for (var _i2 = 0, _consoleMethodsToOver2 = consoleMethodsToOverrideForErrorsAndWarnings;_i2 < _consoleMethodsToOver2.length; _i2++) {
|
|
33535
33553
|
_loop2();
|
|
@@ -33583,7 +33601,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33583
33601
|
Object.defineProperty(target, "__REACT_DEVTOOLS_GLOBAL_HOOK__", {
|
|
33584
33602
|
configurable: false,
|
|
33585
33603
|
enumerable: false,
|
|
33586
|
-
get: function
|
|
33604
|
+
get: function get2() {
|
|
33587
33605
|
return hook;
|
|
33588
33606
|
}
|
|
33589
33607
|
});
|
|
@@ -33649,7 +33667,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33649
33667
|
}
|
|
33650
33668
|
function resolveBoxStyle(prefix2, style) {
|
|
33651
33669
|
var hasParts = false;
|
|
33652
|
-
var
|
|
33670
|
+
var result2 = {
|
|
33653
33671
|
bottom: 0,
|
|
33654
33672
|
left: 0,
|
|
33655
33673
|
right: 0,
|
|
@@ -33657,57 +33675,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33657
33675
|
};
|
|
33658
33676
|
var styleForAll = style[prefix2];
|
|
33659
33677
|
if (styleForAll != null) {
|
|
33660
|
-
for (var _i = 0, _Object$keys = Object.keys(
|
|
33678
|
+
for (var _i = 0, _Object$keys = Object.keys(result2);_i < _Object$keys.length; _i++) {
|
|
33661
33679
|
var key = _Object$keys[_i];
|
|
33662
|
-
|
|
33680
|
+
result2[key] = styleForAll;
|
|
33663
33681
|
}
|
|
33664
33682
|
hasParts = true;
|
|
33665
33683
|
}
|
|
33666
33684
|
var styleForHorizontal = style[prefix2 + "Horizontal"];
|
|
33667
33685
|
if (styleForHorizontal != null) {
|
|
33668
|
-
|
|
33669
|
-
|
|
33686
|
+
result2.left = styleForHorizontal;
|
|
33687
|
+
result2.right = styleForHorizontal;
|
|
33670
33688
|
hasParts = true;
|
|
33671
33689
|
} else {
|
|
33672
33690
|
var styleForLeft = style[prefix2 + "Left"];
|
|
33673
33691
|
if (styleForLeft != null) {
|
|
33674
|
-
|
|
33692
|
+
result2.left = styleForLeft;
|
|
33675
33693
|
hasParts = true;
|
|
33676
33694
|
}
|
|
33677
33695
|
var styleForRight = style[prefix2 + "Right"];
|
|
33678
33696
|
if (styleForRight != null) {
|
|
33679
|
-
|
|
33697
|
+
result2.right = styleForRight;
|
|
33680
33698
|
hasParts = true;
|
|
33681
33699
|
}
|
|
33682
33700
|
var styleForEnd = style[prefix2 + "End"];
|
|
33683
33701
|
if (styleForEnd != null) {
|
|
33684
|
-
|
|
33702
|
+
result2.right = styleForEnd;
|
|
33685
33703
|
hasParts = true;
|
|
33686
33704
|
}
|
|
33687
33705
|
var styleForStart = style[prefix2 + "Start"];
|
|
33688
33706
|
if (styleForStart != null) {
|
|
33689
|
-
|
|
33707
|
+
result2.left = styleForStart;
|
|
33690
33708
|
hasParts = true;
|
|
33691
33709
|
}
|
|
33692
33710
|
}
|
|
33693
33711
|
var styleForVertical = style[prefix2 + "Vertical"];
|
|
33694
33712
|
if (styleForVertical != null) {
|
|
33695
|
-
|
|
33696
|
-
|
|
33713
|
+
result2.bottom = styleForVertical;
|
|
33714
|
+
result2.top = styleForVertical;
|
|
33697
33715
|
hasParts = true;
|
|
33698
33716
|
} else {
|
|
33699
33717
|
var styleForBottom = style[prefix2 + "Bottom"];
|
|
33700
33718
|
if (styleForBottom != null) {
|
|
33701
|
-
|
|
33719
|
+
result2.bottom = styleForBottom;
|
|
33702
33720
|
hasParts = true;
|
|
33703
33721
|
}
|
|
33704
33722
|
var styleForTop = style[prefix2 + "Top"];
|
|
33705
33723
|
if (styleForTop != null) {
|
|
33706
|
-
|
|
33724
|
+
result2.top = styleForTop;
|
|
33707
33725
|
hasParts = true;
|
|
33708
33726
|
}
|
|
33709
33727
|
}
|
|
33710
|
-
return hasParts ?
|
|
33728
|
+
return hasParts ? result2 : null;
|
|
33711
33729
|
}
|
|
33712
33730
|
function setupNativeStyleEditor_typeof(obj) {
|
|
33713
33731
|
"@babel/helpers - typeof";
|
|
@@ -34053,10 +34071,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34053
34071
|
if (!hook.hasOwnProperty("resolveRNStyle")) {
|
|
34054
34072
|
Object.defineProperty(hook, "resolveRNStyle", {
|
|
34055
34073
|
enumerable: false,
|
|
34056
|
-
get: function
|
|
34074
|
+
get: function get2() {
|
|
34057
34075
|
return lazyResolveRNStyle;
|
|
34058
34076
|
},
|
|
34059
|
-
set: function
|
|
34077
|
+
set: function set2(value) {
|
|
34060
34078
|
lazyResolveRNStyle = value;
|
|
34061
34079
|
initAfterTick();
|
|
34062
34080
|
}
|
|
@@ -34065,10 +34083,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
34065
34083
|
if (!hook.hasOwnProperty("nativeStyleEditorValidAttributes")) {
|
|
34066
34084
|
Object.defineProperty(hook, "nativeStyleEditorValidAttributes", {
|
|
34067
34085
|
enumerable: false,
|
|
34068
|
-
get: function
|
|
34086
|
+
get: function get2() {
|
|
34069
34087
|
return lazyNativeStyleEditorValidAttributes;
|
|
34070
34088
|
},
|
|
34071
|
-
set: function
|
|
34089
|
+
set: function set2(value) {
|
|
34072
34090
|
lazyNativeStyleEditorValidAttributes = value;
|
|
34073
34091
|
initAfterTick();
|
|
34074
34092
|
}
|
|
@@ -34365,7 +34383,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
34365
34383
|
}
|
|
34366
34384
|
let outdent = false;
|
|
34367
34385
|
let lastNonAtLine = null;
|
|
34368
|
-
const
|
|
34386
|
+
const result2 = [];
|
|
34369
34387
|
stack.forEach((st) => {
|
|
34370
34388
|
st = st.replace(/\\/g, "/");
|
|
34371
34389
|
if (this._internals.some((internal) => internal.test(st))) {
|
|
@@ -34384,17 +34402,17 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
34384
34402
|
if (st) {
|
|
34385
34403
|
if (isAtLine) {
|
|
34386
34404
|
if (lastNonAtLine) {
|
|
34387
|
-
|
|
34405
|
+
result2.push(lastNonAtLine);
|
|
34388
34406
|
lastNonAtLine = null;
|
|
34389
34407
|
}
|
|
34390
|
-
|
|
34408
|
+
result2.push(st);
|
|
34391
34409
|
} else {
|
|
34392
34410
|
outdent = true;
|
|
34393
34411
|
lastNonAtLine = st;
|
|
34394
34412
|
}
|
|
34395
34413
|
}
|
|
34396
34414
|
});
|
|
34397
|
-
return
|
|
34415
|
+
return result2.map((line) => `${indent}${line}
|
|
34398
34416
|
`).join("");
|
|
34399
34417
|
}
|
|
34400
34418
|
captureString(limit, fn = this.captureString) {
|
|
@@ -34488,7 +34506,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
34488
34506
|
const col = match[9];
|
|
34489
34507
|
const native = match[10] === "native";
|
|
34490
34508
|
const closeParen = match[11] === ")";
|
|
34491
|
-
let
|
|
34509
|
+
let method2;
|
|
34492
34510
|
const res = {};
|
|
34493
34511
|
if (lnum) {
|
|
34494
34512
|
res.line = Number(lnum);
|
|
@@ -34504,10 +34522,10 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
34504
34522
|
} else if (file.charAt(i) === "(" && file.charAt(i - 1) === " ") {
|
|
34505
34523
|
closes--;
|
|
34506
34524
|
if (closes === -1 && file.charAt(i - 1) === " ") {
|
|
34507
|
-
const
|
|
34508
|
-
const
|
|
34509
|
-
file =
|
|
34510
|
-
fname += ` (${
|
|
34525
|
+
const before2 = file.slice(0, i - 1);
|
|
34526
|
+
const after2 = file.slice(i + 1);
|
|
34527
|
+
file = after2;
|
|
34528
|
+
fname += ` (${before2}`;
|
|
34511
34529
|
break;
|
|
34512
34530
|
}
|
|
34513
34531
|
}
|
|
@@ -34517,7 +34535,7 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
34517
34535
|
const methodMatch = fname.match(methodRe);
|
|
34518
34536
|
if (methodMatch) {
|
|
34519
34537
|
fname = methodMatch[1];
|
|
34520
|
-
|
|
34538
|
+
method2 = methodMatch[2];
|
|
34521
34539
|
}
|
|
34522
34540
|
}
|
|
34523
34541
|
setFile(res, file, this._cwd);
|
|
@@ -34539,19 +34557,19 @@ var require_stack_utils = __commonJS((exports, module) => {
|
|
|
34539
34557
|
if (fname) {
|
|
34540
34558
|
res.function = fname;
|
|
34541
34559
|
}
|
|
34542
|
-
if (
|
|
34543
|
-
res.method =
|
|
34560
|
+
if (method2 && fname !== method2) {
|
|
34561
|
+
res.method = method2;
|
|
34544
34562
|
}
|
|
34545
34563
|
return res;
|
|
34546
34564
|
}
|
|
34547
34565
|
}
|
|
34548
|
-
function setFile(
|
|
34566
|
+
function setFile(result2, filename, cwd2) {
|
|
34549
34567
|
if (filename) {
|
|
34550
34568
|
filename = filename.replace(/\\/g, "/");
|
|
34551
34569
|
if (filename.startsWith(`${cwd2}/`)) {
|
|
34552
34570
|
filename = filename.slice(cwd2.length + 1);
|
|
34553
34571
|
}
|
|
34554
|
-
|
|
34572
|
+
result2.file = filename;
|
|
34555
34573
|
}
|
|
34556
34574
|
}
|
|
34557
34575
|
function ignoredPackagesRegExp(ignoredPackages) {
|
|
@@ -34576,7 +34594,6 @@ import process12 from "node:process";
|
|
|
34576
34594
|
// node_modules/ink/build/ink.js
|
|
34577
34595
|
var import_react10 = __toESM(require_react(), 1);
|
|
34578
34596
|
import process11 from "node:process";
|
|
34579
|
-
|
|
34580
34597
|
// node_modules/es-toolkit/dist/function/debounce.mjs
|
|
34581
34598
|
function debounce(func, debounceMs, { signal, edges } = {}) {
|
|
34582
34599
|
let pendingThis = undefined;
|
|
@@ -34884,7 +34901,7 @@ var getAllProperties = (object) => {
|
|
|
34884
34901
|
return properties;
|
|
34885
34902
|
};
|
|
34886
34903
|
function autoBind(self2, { include, exclude } = {}) {
|
|
34887
|
-
const
|
|
34904
|
+
const filter2 = (key) => {
|
|
34888
34905
|
const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
34889
34906
|
if (include) {
|
|
34890
34907
|
return include.some(match);
|
|
@@ -34895,7 +34912,7 @@ function autoBind(self2, { include, exclude } = {}) {
|
|
|
34895
34912
|
return true;
|
|
34896
34913
|
};
|
|
34897
34914
|
for (const [object, key] of getAllProperties(self2.constructor.prototype)) {
|
|
34898
|
-
if (key === "constructor" || !
|
|
34915
|
+
if (key === "constructor" || !filter2(key)) {
|
|
34899
34916
|
continue;
|
|
34900
34917
|
}
|
|
34901
34918
|
const descriptor = Reflect.getOwnPropertyDescriptor(object, key);
|
|
@@ -34942,13 +34959,13 @@ var patchConsole = (callback) => {
|
|
|
34942
34959
|
callback("stderr", data);
|
|
34943
34960
|
};
|
|
34944
34961
|
const internalConsole = new console.Console(stdout, stderr);
|
|
34945
|
-
for (const
|
|
34946
|
-
originalMethods[
|
|
34947
|
-
console[
|
|
34962
|
+
for (const method2 of consoleMethods) {
|
|
34963
|
+
originalMethods[method2] = console[method2];
|
|
34964
|
+
console[method2] = internalConsole[method2];
|
|
34948
34965
|
}
|
|
34949
34966
|
return () => {
|
|
34950
|
-
for (const
|
|
34951
|
-
console[
|
|
34967
|
+
for (const method2 of consoleMethods) {
|
|
34968
|
+
console[method2] = originalMethods[method2];
|
|
34952
34969
|
}
|
|
34953
34970
|
originalMethods = {};
|
|
34954
34971
|
};
|
|
@@ -36806,11 +36823,11 @@ function assembleStyles() {
|
|
|
36806
36823
|
},
|
|
36807
36824
|
hexToRgb: {
|
|
36808
36825
|
value: (hex) => {
|
|
36809
|
-
const
|
|
36810
|
-
if (!
|
|
36826
|
+
const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
36827
|
+
if (!matches2) {
|
|
36811
36828
|
return [0, 0, 0];
|
|
36812
36829
|
}
|
|
36813
|
-
let [colorString] =
|
|
36830
|
+
let [colorString] = matches2;
|
|
36814
36831
|
if (colorString.length === 3) {
|
|
36815
36832
|
colorString = [...colorString].map((character) => character + character).join("");
|
|
36816
36833
|
}
|
|
@@ -36853,11 +36870,11 @@ function assembleStyles() {
|
|
|
36853
36870
|
if (value === 0) {
|
|
36854
36871
|
return 30;
|
|
36855
36872
|
}
|
|
36856
|
-
let
|
|
36873
|
+
let result2 = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
36857
36874
|
if (value === 2) {
|
|
36858
|
-
|
|
36875
|
+
result2 += 60;
|
|
36859
36876
|
}
|
|
36860
|
-
return
|
|
36877
|
+
return result2;
|
|
36861
36878
|
},
|
|
36862
36879
|
enumerable: false
|
|
36863
36880
|
},
|
|
@@ -36929,18 +36946,18 @@ var wrapWord = (rows, word, columns) => {
|
|
|
36929
36946
|
}
|
|
36930
36947
|
};
|
|
36931
36948
|
var stringVisibleTrimSpacesRight = (string) => {
|
|
36932
|
-
const
|
|
36933
|
-
let
|
|
36934
|
-
while (
|
|
36935
|
-
if (stringWidth(
|
|
36949
|
+
const words2 = string.split(" ");
|
|
36950
|
+
let last2 = words2.length;
|
|
36951
|
+
while (last2 > 0) {
|
|
36952
|
+
if (stringWidth(words2[last2 - 1]) > 0) {
|
|
36936
36953
|
break;
|
|
36937
36954
|
}
|
|
36938
|
-
|
|
36955
|
+
last2--;
|
|
36939
36956
|
}
|
|
36940
|
-
if (
|
|
36957
|
+
if (last2 === words2.length) {
|
|
36941
36958
|
return string;
|
|
36942
36959
|
}
|
|
36943
|
-
return
|
|
36960
|
+
return words2.slice(0, last2).join(" ") + words2.slice(last2).join("");
|
|
36944
36961
|
};
|
|
36945
36962
|
var exec = (string, columns, options = {}) => {
|
|
36946
36963
|
if (options.trim !== false && string.trim() === "") {
|
|
@@ -37606,26 +37623,26 @@ $ npm install --save-dev react-devtools-core
|
|
|
37606
37623
|
}
|
|
37607
37624
|
}
|
|
37608
37625
|
}
|
|
37609
|
-
var diff = (
|
|
37610
|
-
if (
|
|
37626
|
+
var diff = (before2, after2) => {
|
|
37627
|
+
if (before2 === after2) {
|
|
37611
37628
|
return;
|
|
37612
37629
|
}
|
|
37613
|
-
if (!
|
|
37614
|
-
return
|
|
37630
|
+
if (!before2) {
|
|
37631
|
+
return after2;
|
|
37615
37632
|
}
|
|
37616
37633
|
const changed = {};
|
|
37617
37634
|
let isChanged = false;
|
|
37618
|
-
for (const key of Object.keys(
|
|
37619
|
-
const isDeleted =
|
|
37635
|
+
for (const key of Object.keys(before2)) {
|
|
37636
|
+
const isDeleted = after2 ? !Object.hasOwn(after2, key) : true;
|
|
37620
37637
|
if (isDeleted) {
|
|
37621
37638
|
changed[key] = undefined;
|
|
37622
37639
|
isChanged = true;
|
|
37623
37640
|
}
|
|
37624
37641
|
}
|
|
37625
|
-
if (
|
|
37626
|
-
for (const key of Object.keys(
|
|
37627
|
-
if (
|
|
37628
|
-
changed[key] =
|
|
37642
|
+
if (after2) {
|
|
37643
|
+
for (const key of Object.keys(after2)) {
|
|
37644
|
+
if (after2[key] !== before2[key]) {
|
|
37645
|
+
changed[key] = after2[key];
|
|
37629
37646
|
isChanged = true;
|
|
37630
37647
|
}
|
|
37631
37648
|
}
|
|
@@ -37930,11 +37947,11 @@ function assembleStyles2() {
|
|
|
37930
37947
|
},
|
|
37931
37948
|
hexToRgb: {
|
|
37932
37949
|
value(hex) {
|
|
37933
|
-
const
|
|
37934
|
-
if (!
|
|
37950
|
+
const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
37951
|
+
if (!matches2) {
|
|
37935
37952
|
return [0, 0, 0];
|
|
37936
37953
|
}
|
|
37937
|
-
let [colorString] =
|
|
37954
|
+
let [colorString] = matches2;
|
|
37938
37955
|
if (colorString.length === 3) {
|
|
37939
37956
|
colorString = [...colorString].map((character) => character + character).join("");
|
|
37940
37957
|
}
|
|
@@ -37977,11 +37994,11 @@ function assembleStyles2() {
|
|
|
37977
37994
|
if (value === 0) {
|
|
37978
37995
|
return 30;
|
|
37979
37996
|
}
|
|
37980
|
-
let
|
|
37997
|
+
let result2 = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
37981
37998
|
if (value === 2) {
|
|
37982
|
-
|
|
37999
|
+
result2 += 60;
|
|
37983
38000
|
}
|
|
37984
|
-
return
|
|
38001
|
+
return result2;
|
|
37985
38002
|
},
|
|
37986
38003
|
enumerable: false
|
|
37987
38004
|
},
|
|
@@ -38061,9 +38078,9 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
38061
38078
|
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
38062
38079
|
return 0;
|
|
38063
38080
|
}
|
|
38064
|
-
const
|
|
38081
|
+
const min2 = forceColor || 0;
|
|
38065
38082
|
if (env2.TERM === "dumb") {
|
|
38066
|
-
return
|
|
38083
|
+
return min2;
|
|
38067
38084
|
}
|
|
38068
38085
|
if (process4.platform === "win32") {
|
|
38069
38086
|
const osRelease = os.release().split(".");
|
|
@@ -38079,7 +38096,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
38079
38096
|
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env2)) || env2.CI_NAME === "codeship") {
|
|
38080
38097
|
return 1;
|
|
38081
38098
|
}
|
|
38082
|
-
return
|
|
38099
|
+
return min2;
|
|
38083
38100
|
}
|
|
38084
38101
|
if ("TEAMCITY_VERSION" in env2) {
|
|
38085
38102
|
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
@@ -38110,7 +38127,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
38110
38127
|
if ("COLORTERM" in env2) {
|
|
38111
38128
|
return 1;
|
|
38112
38129
|
}
|
|
38113
|
-
return
|
|
38130
|
+
return min2;
|
|
38114
38131
|
}
|
|
38115
38132
|
function createSupportsColor(stream, options = {}) {
|
|
38116
38133
|
const level = _supportsColor(stream, {
|
|
@@ -38326,21 +38343,21 @@ var colorize = (str, color, type) => {
|
|
|
38326
38343
|
return type === "foreground" ? source_default.hex(color)(str) : source_default.bgHex(color)(str);
|
|
38327
38344
|
}
|
|
38328
38345
|
if (color.startsWith("ansi256")) {
|
|
38329
|
-
const
|
|
38330
|
-
if (!
|
|
38346
|
+
const matches2 = ansiRegex2.exec(color);
|
|
38347
|
+
if (!matches2) {
|
|
38331
38348
|
return str;
|
|
38332
38349
|
}
|
|
38333
|
-
const value = Number(
|
|
38350
|
+
const value = Number(matches2[1]);
|
|
38334
38351
|
return type === "foreground" ? source_default.ansi256(value)(str) : source_default.bgAnsi256(value)(str);
|
|
38335
38352
|
}
|
|
38336
38353
|
if (color.startsWith("rgb")) {
|
|
38337
|
-
const
|
|
38338
|
-
if (!
|
|
38354
|
+
const matches2 = rgbRegex.exec(color);
|
|
38355
|
+
if (!matches2) {
|
|
38339
38356
|
return str;
|
|
38340
38357
|
}
|
|
38341
|
-
const firstValue = Number(
|
|
38342
|
-
const secondValue = Number(
|
|
38343
|
-
const thirdValue = Number(
|
|
38358
|
+
const firstValue = Number(matches2[1]);
|
|
38359
|
+
const secondValue = Number(matches2[2]);
|
|
38360
|
+
const thirdValue = Number(matches2[3]);
|
|
38344
38361
|
return type === "foreground" ? source_default.rgb(firstValue, secondValue, thirdValue)(str) : source_default.bgRgb(firstValue, secondValue, thirdValue)(str);
|
|
38345
38362
|
}
|
|
38346
38363
|
return str;
|
|
@@ -39005,7 +39022,7 @@ cliCursor.toggle = (force, writableStream) => {
|
|
|
39005
39022
|
var cli_cursor_default = cliCursor;
|
|
39006
39023
|
|
|
39007
39024
|
// node_modules/ink/build/log-update.js
|
|
39008
|
-
var
|
|
39025
|
+
var create2 = (stream, { showCursor = false } = {}) => {
|
|
39009
39026
|
let previousLineCount = 0;
|
|
39010
39027
|
let previousOutput = "";
|
|
39011
39028
|
let hasHiddenCursor = false;
|
|
@@ -39039,7 +39056,7 @@ var create = (stream, { showCursor = false } = {}) => {
|
|
|
39039
39056
|
};
|
|
39040
39057
|
return render;
|
|
39041
39058
|
};
|
|
39042
|
-
var logUpdate = { create };
|
|
39059
|
+
var logUpdate = { create: create2 };
|
|
39043
39060
|
var log_update_default = logUpdate;
|
|
39044
39061
|
|
|
39045
39062
|
// node_modules/ink/build/instances.js
|
|
@@ -39125,9 +39142,9 @@ var dist_default2 = convertToSpaces;
|
|
|
39125
39142
|
// node_modules/code-excerpt/dist/index.js
|
|
39126
39143
|
var generateLineNumbers = (line, around) => {
|
|
39127
39144
|
const lineNumbers = [];
|
|
39128
|
-
const
|
|
39129
|
-
const
|
|
39130
|
-
for (let lineNumber =
|
|
39145
|
+
const min2 = line - around;
|
|
39146
|
+
const max2 = line + around;
|
|
39147
|
+
for (let lineNumber = min2;lineNumber <= max2; lineNumber++) {
|
|
39131
39148
|
lineNumbers.push(lineNumber);
|
|
39132
39149
|
}
|
|
39133
39150
|
return lineNumbers;
|
|
@@ -39168,11 +39185,11 @@ var Box_default = Box;
|
|
|
39168
39185
|
|
|
39169
39186
|
// node_modules/ink/build/components/Text.js
|
|
39170
39187
|
var import_react7 = __toESM(require_react(), 1);
|
|
39171
|
-
function Text({ color, backgroundColor, dimColor = false, bold = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap = "wrap", children }) {
|
|
39188
|
+
function Text({ color, backgroundColor, dimColor = false, bold = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap: wrap2 = "wrap", children }) {
|
|
39172
39189
|
if (children === undefined || children === null) {
|
|
39173
39190
|
return null;
|
|
39174
39191
|
}
|
|
39175
|
-
const
|
|
39192
|
+
const transform2 = (children2) => {
|
|
39176
39193
|
if (dimColor) {
|
|
39177
39194
|
children2 = source_default.dim(children2);
|
|
39178
39195
|
}
|
|
@@ -39199,7 +39216,7 @@ function Text({ color, backgroundColor, dimColor = false, bold = false, italic =
|
|
|
39199
39216
|
}
|
|
39200
39217
|
return children2;
|
|
39201
39218
|
};
|
|
39202
|
-
return import_react7.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap:
|
|
39219
|
+
return import_react7.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap2 }, internal_transform: transform2 }, children);
|
|
39203
39220
|
}
|
|
39204
39221
|
|
|
39205
39222
|
// node_modules/ink/build/components/ErrorOverview.js
|
|
@@ -39239,7 +39256,7 @@ function ErrorOverview({ error }) {
|
|
|
39239
39256
|
// node_modules/ink/build/components/App.js
|
|
39240
39257
|
var tab = "\t";
|
|
39241
39258
|
var shiftTab = "\x1B[Z";
|
|
39242
|
-
var
|
|
39259
|
+
var escape2 = "\x1B";
|
|
39243
39260
|
|
|
39244
39261
|
class App extends import_react9.PureComponent {
|
|
39245
39262
|
static displayName = "InternalApp";
|
|
@@ -39335,17 +39352,17 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
39335
39352
|
}
|
|
39336
39353
|
};
|
|
39337
39354
|
handleReadable = () => {
|
|
39338
|
-
let
|
|
39339
|
-
while ((
|
|
39340
|
-
this.handleInput(
|
|
39341
|
-
this.internal_eventEmitter.emit("input",
|
|
39355
|
+
let chunk2;
|
|
39356
|
+
while ((chunk2 = this.props.stdin.read()) !== null) {
|
|
39357
|
+
this.handleInput(chunk2);
|
|
39358
|
+
this.internal_eventEmitter.emit("input", chunk2);
|
|
39342
39359
|
}
|
|
39343
39360
|
};
|
|
39344
39361
|
handleInput = (input) => {
|
|
39345
39362
|
if (input === "\x03" && this.props.exitOnCtrlC) {
|
|
39346
39363
|
this.handleExit();
|
|
39347
39364
|
}
|
|
39348
|
-
if (input ===
|
|
39365
|
+
if (input === escape2 && this.state.activeFocusId) {
|
|
39349
39366
|
this.setState({
|
|
39350
39367
|
activeFocusId: undefined
|
|
39351
39368
|
});
|
|
@@ -39482,7 +39499,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
39482
39499
|
}
|
|
39483
39500
|
|
|
39484
39501
|
// node_modules/ink/build/ink.js
|
|
39485
|
-
var
|
|
39502
|
+
var noop2 = () => {};
|
|
39486
39503
|
|
|
39487
39504
|
class Ink {
|
|
39488
39505
|
options;
|
|
@@ -39586,7 +39603,7 @@ class Ink {
|
|
|
39586
39603
|
};
|
|
39587
39604
|
render(node) {
|
|
39588
39605
|
const tree = import_react10.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);
|
|
39589
|
-
reconciler_default.updateContainer(tree, this.container, null,
|
|
39606
|
+
reconciler_default.updateContainer(tree, this.container, null, noop2);
|
|
39590
39607
|
}
|
|
39591
39608
|
writeToStdout(data) {
|
|
39592
39609
|
if (this.isUnmounted) {
|
|
@@ -39641,7 +39658,7 @@ class Ink {
|
|
|
39641
39658
|
this.log.done();
|
|
39642
39659
|
}
|
|
39643
39660
|
this.isUnmounted = true;
|
|
39644
|
-
reconciler_default.updateContainer(null, this.container, null,
|
|
39661
|
+
reconciler_default.updateContainer(null, this.container, null, noop2);
|
|
39645
39662
|
instances_default.delete(this.options.stdout);
|
|
39646
39663
|
if (error instanceof Error) {
|
|
39647
39664
|
this.rejectExitPromise(error);
|
|
@@ -39650,9 +39667,9 @@ class Ink {
|
|
|
39650
39667
|
}
|
|
39651
39668
|
}
|
|
39652
39669
|
async waitUntilExit() {
|
|
39653
|
-
this.exitPromise ||= new Promise((resolve,
|
|
39670
|
+
this.exitPromise ||= new Promise((resolve, reject2) => {
|
|
39654
39671
|
this.resolveExitPromise = resolve;
|
|
39655
|
-
this.rejectExitPromise =
|
|
39672
|
+
this.rejectExitPromise = reject2;
|
|
39656
39673
|
});
|
|
39657
39674
|
return this.exitPromise;
|
|
39658
39675
|
}
|
|
@@ -40140,15 +40157,15 @@ var buildStore = (atomStateMap = /* @__PURE__ */ new WeakMap, mountedMap = /* @_
|
|
|
40140
40157
|
call(storeHooks.f);
|
|
40141
40158
|
}
|
|
40142
40159
|
const callbacks = /* @__PURE__ */ new Set;
|
|
40143
|
-
const
|
|
40160
|
+
const add2 = callbacks.add.bind(callbacks);
|
|
40144
40161
|
changedAtoms.forEach((atom) => {
|
|
40145
40162
|
var _a;
|
|
40146
|
-
return (_a = mountedMap.get(atom)) == null ? undefined : _a.l.forEach(
|
|
40163
|
+
return (_a = mountedMap.get(atom)) == null ? undefined : _a.l.forEach(add2);
|
|
40147
40164
|
});
|
|
40148
40165
|
changedAtoms.clear();
|
|
40149
|
-
unmountCallbacks.forEach(
|
|
40166
|
+
unmountCallbacks.forEach(add2);
|
|
40150
40167
|
unmountCallbacks.clear();
|
|
40151
|
-
mountCallbacks.forEach(
|
|
40168
|
+
mountCallbacks.forEach(add2);
|
|
40152
40169
|
mountCallbacks.clear();
|
|
40153
40170
|
callbacks.forEach(call);
|
|
40154
40171
|
if (changedAtoms.size) {
|
|
@@ -40526,22 +40543,22 @@ function atom(read, write) {
|
|
|
40526
40543
|
}
|
|
40527
40544
|
return config;
|
|
40528
40545
|
}
|
|
40529
|
-
function defaultRead(
|
|
40530
|
-
return
|
|
40546
|
+
function defaultRead(get2) {
|
|
40547
|
+
return get2(this);
|
|
40531
40548
|
}
|
|
40532
|
-
function defaultWrite(
|
|
40533
|
-
return
|
|
40549
|
+
function defaultWrite(get2, set2, arg) {
|
|
40550
|
+
return set2(this, typeof arg === "function" ? arg(get2(this)) : arg);
|
|
40534
40551
|
}
|
|
40535
40552
|
var createDevStoreRev4 = () => {
|
|
40536
40553
|
let inRestoreAtom = 0;
|
|
40537
40554
|
const storeHooks = INTERNAL_initializeStoreHooks({});
|
|
40538
40555
|
const atomStateMap = /* @__PURE__ */ new WeakMap;
|
|
40539
40556
|
const mountedAtoms = /* @__PURE__ */ new WeakMap;
|
|
40540
|
-
const store = INTERNAL_buildStoreRev1(atomStateMap, mountedAtoms, undefined, undefined, undefined, undefined, storeHooks, undefined, (atom2,
|
|
40557
|
+
const store = INTERNAL_buildStoreRev1(atomStateMap, mountedAtoms, undefined, undefined, undefined, undefined, storeHooks, undefined, (atom2, get2, set2, ...args) => {
|
|
40541
40558
|
if (inRestoreAtom) {
|
|
40542
|
-
return
|
|
40559
|
+
return set2(atom2, ...args);
|
|
40543
40560
|
}
|
|
40544
|
-
return atom2.write(
|
|
40561
|
+
return atom2.write(get2, set2, ...args);
|
|
40545
40562
|
});
|
|
40546
40563
|
const debugMountedAtoms = /* @__PURE__ */ new Set;
|
|
40547
40564
|
storeHooks.m.add(undefined, (atom2) => {
|
|
@@ -40560,15 +40577,15 @@ var createDevStoreRev4 = () => {
|
|
|
40560
40577
|
return atomStateMap;
|
|
40561
40578
|
},
|
|
40562
40579
|
dev4_get_mounted_atoms: () => debugMountedAtoms,
|
|
40563
|
-
dev4_restore_atoms: (
|
|
40580
|
+
dev4_restore_atoms: (values2) => {
|
|
40564
40581
|
const restoreAtom = {
|
|
40565
40582
|
read: () => null,
|
|
40566
|
-
write: (_get,
|
|
40583
|
+
write: (_get, set2) => {
|
|
40567
40584
|
++inRestoreAtom;
|
|
40568
40585
|
try {
|
|
40569
|
-
for (const [atom2, value] of
|
|
40586
|
+
for (const [atom2, value] of values2) {
|
|
40570
40587
|
if ("init" in atom2) {
|
|
40571
|
-
|
|
40588
|
+
set2(atom2, value);
|
|
40572
40589
|
}
|
|
40573
40590
|
}
|
|
40574
40591
|
} finally {
|
|
@@ -40654,7 +40671,7 @@ var continuablePromiseMap = /* @__PURE__ */ new WeakMap;
|
|
|
40654
40671
|
var createContinuablePromise = (promise, getValue) => {
|
|
40655
40672
|
let continuablePromise = continuablePromiseMap.get(promise);
|
|
40656
40673
|
if (!continuablePromise) {
|
|
40657
|
-
continuablePromise = new Promise((resolve,
|
|
40674
|
+
continuablePromise = new Promise((resolve, reject2) => {
|
|
40658
40675
|
let curr = promise;
|
|
40659
40676
|
const onFulfilled = (me) => (v) => {
|
|
40660
40677
|
if (curr === me) {
|
|
@@ -40663,7 +40680,7 @@ var createContinuablePromise = (promise, getValue) => {
|
|
|
40663
40680
|
};
|
|
40664
40681
|
const onRejected = (me) => (e) => {
|
|
40665
40682
|
if (curr === me) {
|
|
40666
|
-
|
|
40683
|
+
reject2(e);
|
|
40667
40684
|
}
|
|
40668
40685
|
};
|
|
40669
40686
|
const onAbort = () => {
|
|
@@ -40678,7 +40695,7 @@ var createContinuablePromise = (promise, getValue) => {
|
|
|
40678
40695
|
resolve(nextValue);
|
|
40679
40696
|
}
|
|
40680
40697
|
} catch (e) {
|
|
40681
|
-
|
|
40698
|
+
reject2(e);
|
|
40682
40699
|
}
|
|
40683
40700
|
};
|
|
40684
40701
|
promise.then(onFulfilled(promise), onRejected(promise));
|
|
@@ -40689,7 +40706,7 @@ var createContinuablePromise = (promise, getValue) => {
|
|
|
40689
40706
|
return continuablePromise;
|
|
40690
40707
|
};
|
|
40691
40708
|
function useAtomValue(atom2, options) {
|
|
40692
|
-
const { delay, unstable_promiseStatus: promiseStatus = !import_react22.default.use } = options || {};
|
|
40709
|
+
const { delay: delay2, unstable_promiseStatus: promiseStatus = !import_react22.default.use } = options || {};
|
|
40693
40710
|
const store = useStore(options);
|
|
40694
40711
|
const [[valueFromReducer, storeFromReducer, atomFromReducer], rerender] = import_react22.useReducer((prev) => {
|
|
40695
40712
|
const nextValue = store.get(atom2);
|
|
@@ -40713,15 +40730,15 @@ function useAtomValue(atom2, options) {
|
|
|
40713
40730
|
}
|
|
40714
40731
|
} catch (e) {}
|
|
40715
40732
|
}
|
|
40716
|
-
if (typeof
|
|
40717
|
-
setTimeout(rerender,
|
|
40733
|
+
if (typeof delay2 === "number") {
|
|
40734
|
+
setTimeout(rerender, delay2);
|
|
40718
40735
|
return;
|
|
40719
40736
|
}
|
|
40720
40737
|
rerender();
|
|
40721
40738
|
});
|
|
40722
40739
|
rerender();
|
|
40723
40740
|
return unsub;
|
|
40724
|
-
}, [store, atom2,
|
|
40741
|
+
}, [store, atom2, delay2, promiseStatus]);
|
|
40725
40742
|
import_react22.useDebugValue(value);
|
|
40726
40743
|
if (isPromiseLike2(value)) {
|
|
40727
40744
|
const promise = createContinuablePromise(value, () => store.get(atom2));
|
|
@@ -40945,7 +40962,7 @@ var registerTemplate = async (sourceFilePath, relativePath, name) => {
|
|
|
40945
40962
|
const destPath = path.join(templateDir, relativePath);
|
|
40946
40963
|
await fs3.mkdir(path.dirname(destPath), { recursive: true });
|
|
40947
40964
|
await fs3.copyFile(sourceFilePath, destPath);
|
|
40948
|
-
const
|
|
40965
|
+
const template2 = {
|
|
40949
40966
|
id,
|
|
40950
40967
|
name,
|
|
40951
40968
|
relativePath,
|
|
@@ -40953,8 +40970,8 @@ var registerTemplate = async (sourceFilePath, relativePath, name) => {
|
|
|
40953
40970
|
registeredFrom: process.cwd()
|
|
40954
40971
|
};
|
|
40955
40972
|
const templates = await loadTemplates();
|
|
40956
|
-
await saveTemplates([
|
|
40957
|
-
return
|
|
40973
|
+
await saveTemplates([template2, ...templates]);
|
|
40974
|
+
return template2;
|
|
40958
40975
|
};
|
|
40959
40976
|
var deleteTemplate = async (id) => {
|
|
40960
40977
|
const templateDir = path.join(TEMPLATES_DIR, id);
|
|
@@ -40965,13 +40982,14 @@ var deleteTemplate = async (id) => {
|
|
|
40965
40982
|
const filtered = templates.filter((t) => t.id !== id);
|
|
40966
40983
|
await saveTemplates(filtered);
|
|
40967
40984
|
};
|
|
40968
|
-
var getTemplateFilePath = (
|
|
40969
|
-
return path.join(TEMPLATES_DIR,
|
|
40985
|
+
var getTemplateFilePath = (template2) => {
|
|
40986
|
+
return path.join(TEMPLATES_DIR, template2.id, template2.relativePath);
|
|
40970
40987
|
};
|
|
40971
40988
|
|
|
40972
40989
|
// src/features/template/copy.ts
|
|
40973
40990
|
import { promises as fs4 } from "fs";
|
|
40974
40991
|
import path2 from "path";
|
|
40992
|
+
import { spawn } from "child_process";
|
|
40975
40993
|
var computeRelativePath = (cwd2, filePath) => {
|
|
40976
40994
|
return path2.relative(cwd2, filePath);
|
|
40977
40995
|
};
|
|
@@ -40983,9 +41001,9 @@ var checkFileExists = async (filePath) => {
|
|
|
40983
41001
|
return false;
|
|
40984
41002
|
}
|
|
40985
41003
|
};
|
|
40986
|
-
var copyTemplateToDir = async (
|
|
40987
|
-
const sourcePath = getTemplateFilePath(
|
|
40988
|
-
const destPath = path2.join(destDir,
|
|
41004
|
+
var copyTemplateToDir = async (template2, destDir) => {
|
|
41005
|
+
const sourcePath = getTemplateFilePath(template2);
|
|
41006
|
+
const destPath = path2.join(destDir, template2.relativePath);
|
|
40989
41007
|
await fs4.mkdir(path2.dirname(destPath), { recursive: true });
|
|
40990
41008
|
await fs4.copyFile(sourcePath, destPath);
|
|
40991
41009
|
return destPath;
|
|
@@ -40993,6 +41011,21 @@ var copyTemplateToDir = async (template, destDir) => {
|
|
|
40993
41011
|
var getDestPath = (destDir, relativePath) => {
|
|
40994
41012
|
return path2.join(destDir, relativePath);
|
|
40995
41013
|
};
|
|
41014
|
+
var copyTemplateToClipboard = async (template2) => {
|
|
41015
|
+
const sourcePath = getTemplateFilePath(template2);
|
|
41016
|
+
const content = await fs4.readFile(sourcePath, "utf-8");
|
|
41017
|
+
return new Promise((resolve, reject2) => {
|
|
41018
|
+
const proc = spawn("pbcopy");
|
|
41019
|
+
proc.stdin.write(content);
|
|
41020
|
+
proc.stdin.end();
|
|
41021
|
+
proc.on("close", (code) => {
|
|
41022
|
+
if (code === 0)
|
|
41023
|
+
resolve();
|
|
41024
|
+
else
|
|
41025
|
+
reject2(new Error(`pbcopy exited with code ${code}`));
|
|
41026
|
+
});
|
|
41027
|
+
});
|
|
41028
|
+
};
|
|
40996
41029
|
|
|
40997
41030
|
// src/features/template/TemplateList.tsx
|
|
40998
41031
|
var TemplateList = () => {
|
|
@@ -41024,9 +41057,15 @@ var TemplateList = () => {
|
|
|
41024
41057
|
setView("register");
|
|
41025
41058
|
}
|
|
41026
41059
|
if (input === "d" && highlightedId) {
|
|
41027
|
-
const
|
|
41028
|
-
if (
|
|
41029
|
-
setConfirmState({ type: "confirmingDelete", template });
|
|
41060
|
+
const template2 = templates.find((t) => t.id === highlightedId);
|
|
41061
|
+
if (template2) {
|
|
41062
|
+
setConfirmState({ type: "confirmingDelete", template: template2 });
|
|
41063
|
+
}
|
|
41064
|
+
}
|
|
41065
|
+
if (input === "c" && highlightedId) {
|
|
41066
|
+
const template2 = templates.find((t) => t.id === highlightedId);
|
|
41067
|
+
if (template2) {
|
|
41068
|
+
handleCopyToClipboard(template2);
|
|
41030
41069
|
}
|
|
41031
41070
|
}
|
|
41032
41071
|
});
|
|
@@ -41039,13 +41078,13 @@ var TemplateList = () => {
|
|
|
41039
41078
|
};
|
|
41040
41079
|
load();
|
|
41041
41080
|
}, []);
|
|
41042
|
-
const handleConfirmedCopy = async (
|
|
41081
|
+
const handleConfirmedCopy = async (template2) => {
|
|
41043
41082
|
setConfirmState({ type: "copying" });
|
|
41044
41083
|
try {
|
|
41045
|
-
await copyTemplateToDir(
|
|
41084
|
+
await copyTemplateToDir(template2, process.cwd());
|
|
41046
41085
|
setConfirmState({
|
|
41047
41086
|
type: "done",
|
|
41048
|
-
message: `✅ Copied: ${
|
|
41087
|
+
message: `✅ Copied: ${template2.relativePath}`
|
|
41049
41088
|
});
|
|
41050
41089
|
setTimeout(() => setConfirmState({ type: "idle" }), 2000);
|
|
41051
41090
|
} catch (error) {
|
|
@@ -41054,13 +41093,27 @@ var TemplateList = () => {
|
|
|
41054
41093
|
setTimeout(() => setConfirmState({ type: "idle" }), 3000);
|
|
41055
41094
|
}
|
|
41056
41095
|
};
|
|
41057
|
-
const handleConfirmedDelete = async (
|
|
41096
|
+
const handleConfirmedDelete = async (template2) => {
|
|
41058
41097
|
try {
|
|
41059
|
-
await deleteTemplate(
|
|
41060
|
-
setTemplates(templates.filter((t) => t.id !==
|
|
41098
|
+
await deleteTemplate(template2.id);
|
|
41099
|
+
setTemplates(templates.filter((t) => t.id !== template2.id));
|
|
41061
41100
|
setConfirmState({
|
|
41062
41101
|
type: "done",
|
|
41063
|
-
message: `\uD83D\uDDD1️ Deleted: ${
|
|
41102
|
+
message: `\uD83D\uDDD1️ Deleted: ${template2.relativePath}`
|
|
41103
|
+
});
|
|
41104
|
+
setTimeout(() => setConfirmState({ type: "idle" }), 2000);
|
|
41105
|
+
} catch (error) {
|
|
41106
|
+
const message = error instanceof Error ? error.message : "Unknown error";
|
|
41107
|
+
setConfirmState({ type: "done", message: `❌ Failed: ${message}` });
|
|
41108
|
+
setTimeout(() => setConfirmState({ type: "idle" }), 3000);
|
|
41109
|
+
}
|
|
41110
|
+
};
|
|
41111
|
+
const handleCopyToClipboard = async (template2) => {
|
|
41112
|
+
try {
|
|
41113
|
+
await copyTemplateToClipboard(template2);
|
|
41114
|
+
setConfirmState({
|
|
41115
|
+
type: "done",
|
|
41116
|
+
message: `\uD83D\uDCCB Copied to clipboard: ${template2.relativePath}`
|
|
41064
41117
|
});
|
|
41065
41118
|
setTimeout(() => setConfirmState({ type: "idle" }), 2000);
|
|
41066
41119
|
} catch (error) {
|
|
@@ -41070,15 +41123,15 @@ var TemplateList = () => {
|
|
|
41070
41123
|
}
|
|
41071
41124
|
};
|
|
41072
41125
|
const handleSelect = async (item) => {
|
|
41073
|
-
const
|
|
41074
|
-
if (!
|
|
41126
|
+
const template2 = templates.find((t) => t.id === item.value);
|
|
41127
|
+
if (!template2)
|
|
41075
41128
|
return;
|
|
41076
|
-
const destPath = getDestPath(process.cwd(),
|
|
41129
|
+
const destPath = getDestPath(process.cwd(), template2.relativePath);
|
|
41077
41130
|
const exists = await checkFileExists(destPath);
|
|
41078
41131
|
if (exists) {
|
|
41079
|
-
setConfirmState({ type: "confirmingOverwrite", template });
|
|
41132
|
+
setConfirmState({ type: "confirmingOverwrite", template: template2 });
|
|
41080
41133
|
} else {
|
|
41081
|
-
await handleConfirmedCopy(
|
|
41134
|
+
await handleConfirmedCopy(template2);
|
|
41082
41135
|
}
|
|
41083
41136
|
};
|
|
41084
41137
|
const handleHighlight = (item) => {
|
|
@@ -41488,21 +41541,33 @@ var App2 = () => {
|
|
|
41488
41541
|
flexDirection: "column",
|
|
41489
41542
|
padding: 1
|
|
41490
41543
|
}, view === "templates" && /* @__PURE__ */ import_react28.default.createElement(TemplateList, null), view === "register" && /* @__PURE__ */ import_react28.default.createElement(RegisterScreen, null)), /* @__PURE__ */ import_react28.default.createElement(HelpBar, {
|
|
41491
|
-
items:
|
|
41492
|
-
{ key: "↑/↓", label: "navigate" },
|
|
41493
|
-
{ key: "←/→", label: "dir", show: view === "register" },
|
|
41494
|
-
{ key: "Enter", label: view === "register" ? "select" : "copy" },
|
|
41495
|
-
{ key: "Tab", label: "switch" },
|
|
41496
|
-
{ key: "d", label: "delete", show: view === "templates" },
|
|
41497
|
-
{ key: "Esc", label: "exit", show: view === "templates" }
|
|
41498
|
-
]
|
|
41544
|
+
items: helpItems(view)
|
|
41499
41545
|
}));
|
|
41500
41546
|
};
|
|
41547
|
+
var helpItems = (view) => {
|
|
41548
|
+
switch (view) {
|
|
41549
|
+
case "templates":
|
|
41550
|
+
return [
|
|
41551
|
+
{ key: "↑/↓", label: "navigate" },
|
|
41552
|
+
{ key: "Enter", label: "copy" },
|
|
41553
|
+
{ key: "Tab", label: "switch" },
|
|
41554
|
+
{ key: "c", label: "clipboard" },
|
|
41555
|
+
{ key: "d", label: "delete" },
|
|
41556
|
+
{ key: "Esc", label: "exit" }
|
|
41557
|
+
];
|
|
41558
|
+
case "register":
|
|
41559
|
+
return [
|
|
41560
|
+
{ key: "↑/↓", label: "navigate" },
|
|
41561
|
+
{ key: "←/→", label: "dir" },
|
|
41562
|
+
{ key: "Enter", label: "select" },
|
|
41563
|
+
{ key: "Tab", label: "switch" }
|
|
41564
|
+
];
|
|
41565
|
+
}
|
|
41566
|
+
};
|
|
41501
41567
|
var HelpBar = ({ items }) => {
|
|
41502
|
-
const visibleItems = items.filter((item) => item.show !== false);
|
|
41503
41568
|
return /* @__PURE__ */ import_react28.default.createElement(Box_default, {
|
|
41504
41569
|
marginTop: 1
|
|
41505
|
-
},
|
|
41570
|
+
}, items.map((item, index) => /* @__PURE__ */ import_react28.default.createElement(import_react28.default.Fragment, {
|
|
41506
41571
|
key: item.key
|
|
41507
41572
|
}, index > 0 && /* @__PURE__ */ import_react28.default.createElement(Text, {
|
|
41508
41573
|
dimColor: true
|