react-markup 0.0.0-experimental-7283a213-20241206 → 0.0.0-experimental-79ddf5b5-20241210
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.
|
@@ -638,19 +638,7 @@ function serializeThenable(request, task, thenable) {
|
|
|
638
638
|
newTask.id
|
|
639
639
|
);
|
|
640
640
|
case "rejected":
|
|
641
|
-
return (
|
|
642
|
-
(task = thenable.reason),
|
|
643
|
-
"object" === typeof task &&
|
|
644
|
-
null !== task &&
|
|
645
|
-
task.$$typeof === REACT_POSTPONE_TYPE
|
|
646
|
-
? (logPostpone$1(request, task.message, newTask),
|
|
647
|
-
emitPostponeChunk(request, newTask.id))
|
|
648
|
-
: ((task = logRecoverableError$1(request, task, null)),
|
|
649
|
-
emitErrorChunk(request, newTask.id, task)),
|
|
650
|
-
(newTask.status = 4),
|
|
651
|
-
request.abortableTasks.delete(newTask),
|
|
652
|
-
newTask.id
|
|
653
|
-
);
|
|
641
|
+
return erroredTask$1(request, newTask, thenable.reason), newTask.id;
|
|
654
642
|
default:
|
|
655
643
|
if (12 === request.status)
|
|
656
644
|
return (
|
|
@@ -683,16 +671,7 @@ function serializeThenable(request, task, thenable) {
|
|
|
683
671
|
},
|
|
684
672
|
function (reason) {
|
|
685
673
|
0 === newTask.status &&
|
|
686
|
-
(
|
|
687
|
-
null !== reason &&
|
|
688
|
-
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
689
|
-
? (logPostpone$1(request, reason.message, newTask),
|
|
690
|
-
emitPostponeChunk(request, newTask.id))
|
|
691
|
-
: ((reason = logRecoverableError$1(request, reason, newTask)),
|
|
692
|
-
emitErrorChunk(request, newTask.id, reason)),
|
|
693
|
-
(newTask.status = 4),
|
|
694
|
-
request.abortableTasks.delete(newTask),
|
|
695
|
-
enqueueFlush(request));
|
|
674
|
+
(erroredTask$1(request, newTask, reason), enqueueFlush(request));
|
|
696
675
|
}
|
|
697
676
|
);
|
|
698
677
|
return newTask.id;
|
|
@@ -713,43 +692,26 @@ function serializeReadableStream(request, task, stream) {
|
|
|
713
692
|
emitChunk(request, streamTask, streamTask.model),
|
|
714
693
|
enqueueFlush(request),
|
|
715
694
|
reader.read().then(progress, error);
|
|
716
|
-
} catch (x$
|
|
717
|
-
error(x$
|
|
695
|
+
} catch (x$9) {
|
|
696
|
+
error(x$9);
|
|
718
697
|
}
|
|
719
698
|
}
|
|
720
699
|
function error(reason) {
|
|
721
|
-
|
|
722
|
-
aborted = !0
|
|
723
|
-
request.abortListeners.delete(abortStream)
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
reader.cancel(reason).then(error, error);
|
|
728
|
-
}
|
|
700
|
+
aborted ||
|
|
701
|
+
((aborted = !0),
|
|
702
|
+
request.abortListeners.delete(abortStream),
|
|
703
|
+
erroredTask$1(request, streamTask, reason),
|
|
704
|
+
enqueueFlush(request),
|
|
705
|
+
reader.cancel(reason).then(error, error));
|
|
729
706
|
}
|
|
730
707
|
function abortStream(reason) {
|
|
731
|
-
|
|
732
|
-
aborted = !0
|
|
733
|
-
request.abortListeners.delete(abortStream)
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
)
|
|
739
|
-
logPostpone$1(request, reason.message, streamTask),
|
|
740
|
-
21 === request.type
|
|
741
|
-
? request.pendingChunks--
|
|
742
|
-
: (emitPostponeChunk(request, streamTask.id),
|
|
743
|
-
enqueueFlush(request));
|
|
744
|
-
else {
|
|
745
|
-
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
746
|
-
21 === request.type
|
|
747
|
-
? request.pendingChunks--
|
|
748
|
-
: (emitErrorChunk(request, streamTask.id, digest),
|
|
749
|
-
enqueueFlush(request));
|
|
750
|
-
}
|
|
751
|
-
reader.cancel(reason).then(error, error);
|
|
752
|
-
}
|
|
708
|
+
aborted ||
|
|
709
|
+
((aborted = !0),
|
|
710
|
+
request.abortListeners.delete(abortStream),
|
|
711
|
+
21 === request.type
|
|
712
|
+
? request.pendingChunks--
|
|
713
|
+
: (erroredTask$1(request, streamTask, reason), enqueueFlush(request)),
|
|
714
|
+
reader.cancel(reason).then(error, error));
|
|
753
715
|
}
|
|
754
716
|
var supportsBYOB = stream.supportsBYOB;
|
|
755
717
|
if (void 0 === supportsBYOB)
|
|
@@ -804,45 +766,28 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
804
766
|
emitChunk(request, streamTask, streamTask.model),
|
|
805
767
|
enqueueFlush(request),
|
|
806
768
|
iterator.next().then(progress, error);
|
|
807
|
-
} catch (x$
|
|
808
|
-
error(x$
|
|
769
|
+
} catch (x$10) {
|
|
770
|
+
error(x$10);
|
|
809
771
|
}
|
|
810
772
|
}
|
|
811
773
|
function error(reason) {
|
|
812
|
-
|
|
813
|
-
aborted = !0
|
|
814
|
-
request.abortListeners.delete(abortIterable)
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
enqueueFlush(request);
|
|
774
|
+
aborted ||
|
|
775
|
+
((aborted = !0),
|
|
776
|
+
request.abortListeners.delete(abortIterable),
|
|
777
|
+
erroredTask$1(request, streamTask, reason),
|
|
778
|
+
enqueueFlush(request),
|
|
818
779
|
"function" === typeof iterator.throw &&
|
|
819
|
-
iterator.throw(reason).then(error, error);
|
|
820
|
-
}
|
|
780
|
+
iterator.throw(reason).then(error, error));
|
|
821
781
|
}
|
|
822
782
|
function abortIterable(reason) {
|
|
823
|
-
|
|
824
|
-
aborted = !0
|
|
825
|
-
request.abortListeners.delete(abortIterable)
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
830
|
-
)
|
|
831
|
-
logPostpone$1(request, reason.message, streamTask),
|
|
832
|
-
21 === request.type
|
|
833
|
-
? request.pendingChunks--
|
|
834
|
-
: (emitPostponeChunk(request, streamTask.id),
|
|
835
|
-
enqueueFlush(request));
|
|
836
|
-
else {
|
|
837
|
-
var digest = logRecoverableError$1(request, reason, streamTask);
|
|
838
|
-
21 === request.type
|
|
839
|
-
? request.pendingChunks--
|
|
840
|
-
: (emitErrorChunk(request, streamTask.id, digest),
|
|
841
|
-
enqueueFlush(request));
|
|
842
|
-
}
|
|
783
|
+
aborted ||
|
|
784
|
+
((aborted = !0),
|
|
785
|
+
request.abortListeners.delete(abortIterable),
|
|
786
|
+
21 === request.type
|
|
787
|
+
? request.pendingChunks--
|
|
788
|
+
: (erroredTask$1(request, streamTask, reason), enqueueFlush(request)),
|
|
843
789
|
"function" === typeof iterator.throw &&
|
|
844
|
-
iterator.throw(reason).then(error, error);
|
|
845
|
-
}
|
|
790
|
+
iterator.throw(reason).then(error, error));
|
|
846
791
|
}
|
|
847
792
|
iterable = iterable === iterator;
|
|
848
793
|
var streamTask = createTask(
|
|
@@ -889,63 +834,57 @@ function createLazyWrapperAroundWakeable(wakeable) {
|
|
|
889
834
|
return { $$typeof: REACT_LAZY_TYPE, _payload: wakeable, _init: readThenable };
|
|
890
835
|
}
|
|
891
836
|
function voidHandler() {}
|
|
837
|
+
function processServerComponentReturnValue(request, task, Component, result) {
|
|
838
|
+
if (
|
|
839
|
+
"object" !== typeof result ||
|
|
840
|
+
null === result ||
|
|
841
|
+
result.$$typeof === CLIENT_REFERENCE_TAG$1
|
|
842
|
+
)
|
|
843
|
+
return result;
|
|
844
|
+
if ("function" === typeof result.then)
|
|
845
|
+
return "fulfilled" === result.status
|
|
846
|
+
? result.value
|
|
847
|
+
: createLazyWrapperAroundWakeable(result);
|
|
848
|
+
var iteratorFn = getIteratorFn(result);
|
|
849
|
+
return iteratorFn
|
|
850
|
+
? ((request = {}),
|
|
851
|
+
(request[Symbol.iterator] = function () {
|
|
852
|
+
return iteratorFn.call(result);
|
|
853
|
+
}),
|
|
854
|
+
request)
|
|
855
|
+
: "function" !== typeof result[ASYNC_ITERATOR] ||
|
|
856
|
+
("function" === typeof ReadableStream &&
|
|
857
|
+
result instanceof ReadableStream)
|
|
858
|
+
? result
|
|
859
|
+
: ((request = {}),
|
|
860
|
+
(request[ASYNC_ITERATOR] = function () {
|
|
861
|
+
return result[ASYNC_ITERATOR]();
|
|
862
|
+
}),
|
|
863
|
+
request);
|
|
864
|
+
}
|
|
892
865
|
function renderFunctionComponent$1(request, task, key, Component, props) {
|
|
893
866
|
var prevThenableState = task.thenableState;
|
|
894
867
|
task.thenableState = null;
|
|
895
868
|
thenableIndexCounter$1 = 0;
|
|
896
869
|
thenableState$1 = prevThenableState;
|
|
897
|
-
|
|
870
|
+
props = Component(props, void 0);
|
|
898
871
|
if (12 === request.status)
|
|
899
872
|
throw (
|
|
900
|
-
("object" === typeof
|
|
901
|
-
null !==
|
|
902
|
-
"function" === typeof
|
|
903
|
-
|
|
904
|
-
|
|
873
|
+
("object" === typeof props &&
|
|
874
|
+
null !== props &&
|
|
875
|
+
"function" === typeof props.then &&
|
|
876
|
+
props.$$typeof !== CLIENT_REFERENCE_TAG$1 &&
|
|
877
|
+
props.then(voidHandler, voidHandler),
|
|
905
878
|
null)
|
|
906
879
|
);
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
null !== Component &&
|
|
910
|
-
Component.$$typeof !== CLIENT_REFERENCE_TAG$1
|
|
911
|
-
) {
|
|
912
|
-
if ("function" === typeof Component.then) {
|
|
913
|
-
props = Component;
|
|
914
|
-
if ("fulfilled" === props.status) return props.value;
|
|
915
|
-
Component = createLazyWrapperAroundWakeable(Component);
|
|
916
|
-
}
|
|
917
|
-
var iteratorFn = getIteratorFn(Component);
|
|
918
|
-
if (iteratorFn) {
|
|
919
|
-
var iterableChild = Component;
|
|
920
|
-
Component = {};
|
|
921
|
-
Component =
|
|
922
|
-
((Component[Symbol.iterator] = function () {
|
|
923
|
-
return iteratorFn.call(iterableChild);
|
|
924
|
-
}),
|
|
925
|
-
Component);
|
|
926
|
-
} else if (
|
|
927
|
-
!(
|
|
928
|
-
"function" !== typeof Component[ASYNC_ITERATOR] ||
|
|
929
|
-
("function" === typeof ReadableStream &&
|
|
930
|
-
Component instanceof ReadableStream)
|
|
931
|
-
)
|
|
932
|
-
) {
|
|
933
|
-
var iterableChild$13 = Component;
|
|
934
|
-
Component = {};
|
|
935
|
-
Component =
|
|
936
|
-
((Component[ASYNC_ITERATOR] = function () {
|
|
937
|
-
return iterableChild$13[ASYNC_ITERATOR]();
|
|
938
|
-
}),
|
|
939
|
-
Component);
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
props = task.keyPath;
|
|
880
|
+
props = processServerComponentReturnValue(request, task, Component, props);
|
|
881
|
+
Component = task.keyPath;
|
|
943
882
|
prevThenableState = task.implicitSlot;
|
|
944
883
|
null !== key
|
|
945
|
-
? (task.keyPath = null ===
|
|
946
|
-
: null ===
|
|
947
|
-
request = renderModelDestructive(request, task, emptyRoot, "",
|
|
948
|
-
task.keyPath =
|
|
884
|
+
? (task.keyPath = null === Component ? key : Component + "," + key)
|
|
885
|
+
: null === Component && (task.implicitSlot = !0);
|
|
886
|
+
request = renderModelDestructive(request, task, emptyRoot, "", props);
|
|
887
|
+
task.keyPath = Component;
|
|
949
888
|
task.implicitSlot = prevThenableState;
|
|
950
889
|
return request;
|
|
951
890
|
}
|
|
@@ -1041,7 +980,83 @@ function createTask(request, model, keyPath, implicitSlot, abortSet) {
|
|
|
1041
980
|
return pingTask$1(request, task);
|
|
1042
981
|
},
|
|
1043
982
|
toJSON: function (parentPropertyName, value) {
|
|
1044
|
-
|
|
983
|
+
var prevKeyPath = task.keyPath,
|
|
984
|
+
prevImplicitSlot = task.implicitSlot;
|
|
985
|
+
try {
|
|
986
|
+
var JSCompiler_inline_result = renderModelDestructive(
|
|
987
|
+
request,
|
|
988
|
+
task,
|
|
989
|
+
this,
|
|
990
|
+
parentPropertyName,
|
|
991
|
+
value
|
|
992
|
+
);
|
|
993
|
+
} catch (thrownValue) {
|
|
994
|
+
if (
|
|
995
|
+
((parentPropertyName = task.model),
|
|
996
|
+
(parentPropertyName =
|
|
997
|
+
"object" === typeof parentPropertyName &&
|
|
998
|
+
null !== parentPropertyName &&
|
|
999
|
+
(parentPropertyName.$$typeof === REACT_ELEMENT_TYPE ||
|
|
1000
|
+
parentPropertyName.$$typeof === REACT_LAZY_TYPE)),
|
|
1001
|
+
12 === request.status)
|
|
1002
|
+
)
|
|
1003
|
+
(task.status = 3),
|
|
1004
|
+
21 === request.type
|
|
1005
|
+
? ((prevKeyPath = request.nextChunkId++),
|
|
1006
|
+
(prevKeyPath = parentPropertyName
|
|
1007
|
+
? "$L" + prevKeyPath.toString(16)
|
|
1008
|
+
: serializeByValueID$1(prevKeyPath)),
|
|
1009
|
+
(JSCompiler_inline_result = prevKeyPath))
|
|
1010
|
+
: ((prevKeyPath = request.fatalError),
|
|
1011
|
+
(JSCompiler_inline_result = parentPropertyName
|
|
1012
|
+
? "$L" + prevKeyPath.toString(16)
|
|
1013
|
+
: serializeByValueID$1(prevKeyPath)));
|
|
1014
|
+
else if (
|
|
1015
|
+
((value =
|
|
1016
|
+
thrownValue === SuspenseException$1
|
|
1017
|
+
? getSuspendedThenable$1()
|
|
1018
|
+
: thrownValue),
|
|
1019
|
+
"object" === typeof value &&
|
|
1020
|
+
null !== value &&
|
|
1021
|
+
"function" === typeof value.then)
|
|
1022
|
+
) {
|
|
1023
|
+
JSCompiler_inline_result = createTask(
|
|
1024
|
+
request,
|
|
1025
|
+
task.model,
|
|
1026
|
+
task.keyPath,
|
|
1027
|
+
task.implicitSlot,
|
|
1028
|
+
request.abortableTasks
|
|
1029
|
+
);
|
|
1030
|
+
var ping = JSCompiler_inline_result.ping;
|
|
1031
|
+
value.then(ping, ping);
|
|
1032
|
+
JSCompiler_inline_result.thenableState =
|
|
1033
|
+
getThenableStateAfterSuspending$1();
|
|
1034
|
+
task.keyPath = prevKeyPath;
|
|
1035
|
+
task.implicitSlot = prevImplicitSlot;
|
|
1036
|
+
JSCompiler_inline_result = parentPropertyName
|
|
1037
|
+
? "$L" + JSCompiler_inline_result.id.toString(16)
|
|
1038
|
+
: serializeByValueID$1(JSCompiler_inline_result.id);
|
|
1039
|
+
} else
|
|
1040
|
+
(task.keyPath = prevKeyPath),
|
|
1041
|
+
(task.implicitSlot = prevImplicitSlot),
|
|
1042
|
+
request.pendingChunks++,
|
|
1043
|
+
(prevKeyPath = request.nextChunkId++),
|
|
1044
|
+
"object" === typeof value &&
|
|
1045
|
+
null !== value &&
|
|
1046
|
+
value.$$typeof === REACT_POSTPONE_TYPE
|
|
1047
|
+
? (logPostpone$1(request, value.message, task),
|
|
1048
|
+
emitPostponeChunk(request, prevKeyPath))
|
|
1049
|
+
: ((prevImplicitSlot = logRecoverableError$1(
|
|
1050
|
+
request,
|
|
1051
|
+
value,
|
|
1052
|
+
task
|
|
1053
|
+
)),
|
|
1054
|
+
emitErrorChunk(request, prevKeyPath, prevImplicitSlot)),
|
|
1055
|
+
(JSCompiler_inline_result = parentPropertyName
|
|
1056
|
+
? "$L" + prevKeyPath.toString(16)
|
|
1057
|
+
: serializeByValueID$1(prevKeyPath));
|
|
1058
|
+
}
|
|
1059
|
+
return JSCompiler_inline_result;
|
|
1045
1060
|
},
|
|
1046
1061
|
thenableState: null
|
|
1047
1062
|
};
|
|
@@ -1084,37 +1099,21 @@ function serializeBlob(request, blob) {
|
|
|
1084
1099
|
);
|
|
1085
1100
|
}
|
|
1086
1101
|
function error(reason) {
|
|
1087
|
-
|
|
1088
|
-
aborted = !0
|
|
1089
|
-
request.abortListeners.delete(abortBlob)
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
reader.cancel(reason).then(error, error);
|
|
1094
|
-
}
|
|
1102
|
+
aborted ||
|
|
1103
|
+
((aborted = !0),
|
|
1104
|
+
request.abortListeners.delete(abortBlob),
|
|
1105
|
+
erroredTask$1(request, newTask, reason),
|
|
1106
|
+
enqueueFlush(request),
|
|
1107
|
+
reader.cancel(reason).then(error, error));
|
|
1095
1108
|
}
|
|
1096
1109
|
function abortBlob(reason) {
|
|
1097
|
-
|
|
1098
|
-
aborted = !0
|
|
1099
|
-
request.abortListeners.delete(abortBlob)
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
)
|
|
1105
|
-
logPostpone$1(request, reason.message, newTask),
|
|
1106
|
-
21 === request.type
|
|
1107
|
-
? request.pendingChunks--
|
|
1108
|
-
: (emitPostponeChunk(request, newTask.id), enqueueFlush(request));
|
|
1109
|
-
else {
|
|
1110
|
-
var digest = logRecoverableError$1(request, reason, newTask);
|
|
1111
|
-
21 === request.type
|
|
1112
|
-
? request.pendingChunks--
|
|
1113
|
-
: (emitErrorChunk(request, newTask.id, digest),
|
|
1114
|
-
enqueueFlush(request));
|
|
1115
|
-
}
|
|
1116
|
-
reader.cancel(reason).then(error, error);
|
|
1117
|
-
}
|
|
1110
|
+
aborted ||
|
|
1111
|
+
((aborted = !0),
|
|
1112
|
+
request.abortListeners.delete(abortBlob),
|
|
1113
|
+
21 === request.type
|
|
1114
|
+
? request.pendingChunks--
|
|
1115
|
+
: (erroredTask$1(request, newTask, reason), enqueueFlush(request)),
|
|
1116
|
+
reader.cancel(reason).then(error, error));
|
|
1118
1117
|
}
|
|
1119
1118
|
var model = [blob.type],
|
|
1120
1119
|
newTask = createTask(request, model, null, !1, request.abortableTasks),
|
|
@@ -1125,76 +1124,6 @@ function serializeBlob(request, blob) {
|
|
|
1125
1124
|
return "$B" + newTask.id.toString(16);
|
|
1126
1125
|
}
|
|
1127
1126
|
var modelRoot = !1;
|
|
1128
|
-
function renderModel(request, task, parent, key, value) {
|
|
1129
|
-
var prevKeyPath = task.keyPath,
|
|
1130
|
-
prevImplicitSlot = task.implicitSlot;
|
|
1131
|
-
try {
|
|
1132
|
-
return renderModelDestructive(request, task, parent, key, value);
|
|
1133
|
-
} catch (thrownValue) {
|
|
1134
|
-
parent = task.model;
|
|
1135
|
-
parent =
|
|
1136
|
-
"object" === typeof parent &&
|
|
1137
|
-
null !== parent &&
|
|
1138
|
-
(parent.$$typeof === REACT_ELEMENT_TYPE ||
|
|
1139
|
-
parent.$$typeof === REACT_LAZY_TYPE);
|
|
1140
|
-
if (12 === request.status) {
|
|
1141
|
-
task.status = 3;
|
|
1142
|
-
if (21 === request.type)
|
|
1143
|
-
return (
|
|
1144
|
-
(task = request.nextChunkId++),
|
|
1145
|
-
(task = parent
|
|
1146
|
-
? "$L" + task.toString(16)
|
|
1147
|
-
: serializeByValueID$1(task)),
|
|
1148
|
-
task
|
|
1149
|
-
);
|
|
1150
|
-
task = request.fatalError;
|
|
1151
|
-
return parent ? "$L" + task.toString(16) : serializeByValueID$1(task);
|
|
1152
|
-
}
|
|
1153
|
-
key =
|
|
1154
|
-
thrownValue === SuspenseException$1
|
|
1155
|
-
? getSuspendedThenable$1()
|
|
1156
|
-
: thrownValue;
|
|
1157
|
-
if ("object" === typeof key && null !== key) {
|
|
1158
|
-
if ("function" === typeof key.then)
|
|
1159
|
-
return (
|
|
1160
|
-
(request = createTask(
|
|
1161
|
-
request,
|
|
1162
|
-
task.model,
|
|
1163
|
-
task.keyPath,
|
|
1164
|
-
task.implicitSlot,
|
|
1165
|
-
request.abortableTasks
|
|
1166
|
-
)),
|
|
1167
|
-
(value = request.ping),
|
|
1168
|
-
key.then(value, value),
|
|
1169
|
-
(request.thenableState = getThenableStateAfterSuspending$1()),
|
|
1170
|
-
(task.keyPath = prevKeyPath),
|
|
1171
|
-
(task.implicitSlot = prevImplicitSlot),
|
|
1172
|
-
parent
|
|
1173
|
-
? "$L" + request.id.toString(16)
|
|
1174
|
-
: serializeByValueID$1(request.id)
|
|
1175
|
-
);
|
|
1176
|
-
if (key.$$typeof === REACT_POSTPONE_TYPE)
|
|
1177
|
-
return (
|
|
1178
|
-
request.pendingChunks++,
|
|
1179
|
-
(value = request.nextChunkId++),
|
|
1180
|
-
logPostpone$1(request, key.message, task),
|
|
1181
|
-
emitPostponeChunk(request, value),
|
|
1182
|
-
(task.keyPath = prevKeyPath),
|
|
1183
|
-
(task.implicitSlot = prevImplicitSlot),
|
|
1184
|
-
parent ? "$L" + value.toString(16) : serializeByValueID$1(value)
|
|
1185
|
-
);
|
|
1186
|
-
}
|
|
1187
|
-
task.keyPath = prevKeyPath;
|
|
1188
|
-
task.implicitSlot = prevImplicitSlot;
|
|
1189
|
-
request.pendingChunks++;
|
|
1190
|
-
prevKeyPath = request.nextChunkId++;
|
|
1191
|
-
task = logRecoverableError$1(request, key, task);
|
|
1192
|
-
emitErrorChunk(request, prevKeyPath, task);
|
|
1193
|
-
return parent
|
|
1194
|
-
? "$L" + prevKeyPath.toString(16)
|
|
1195
|
-
: serializeByValueID$1(prevKeyPath);
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
1127
|
function renderModelDestructive(
|
|
1199
1128
|
request,
|
|
1200
1129
|
task,
|
|
@@ -1582,6 +1511,17 @@ function emitChunk(request, task, value) {
|
|
|
1582
1511
|
: ((value = stringify(value, task.toJSON)),
|
|
1583
1512
|
emitModelChunk(request, task.id, value));
|
|
1584
1513
|
}
|
|
1514
|
+
function erroredTask$1(request, task, error) {
|
|
1515
|
+
request.abortableTasks.delete(task);
|
|
1516
|
+
task.status = 4;
|
|
1517
|
+
"object" === typeof error &&
|
|
1518
|
+
null !== error &&
|
|
1519
|
+
error.$$typeof === REACT_POSTPONE_TYPE
|
|
1520
|
+
? (logPostpone$1(request, error.message, task),
|
|
1521
|
+
emitPostponeChunk(request, task.id))
|
|
1522
|
+
: ((error = logRecoverableError$1(request, error, task)),
|
|
1523
|
+
emitErrorChunk(request, task.id, error));
|
|
1524
|
+
}
|
|
1585
1525
|
var emptyRoot = {};
|
|
1586
1526
|
function retryTask$1(request, task) {
|
|
1587
1527
|
if (0 === task.status) {
|
|
@@ -1627,26 +1567,16 @@ function retryTask$1(request, task) {
|
|
|
1627
1567
|
thrownValue === SuspenseException$1
|
|
1628
1568
|
? getSuspendedThenable$1()
|
|
1629
1569
|
: thrownValue;
|
|
1630
|
-
if (
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
task.status = 4;
|
|
1641
|
-
logPostpone$1(request, x.message, task);
|
|
1642
|
-
emitPostponeChunk(request, task.id);
|
|
1643
|
-
return;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
request.abortableTasks.delete(task);
|
|
1647
|
-
task.status = 4;
|
|
1648
|
-
var digest = logRecoverableError$1(request, x, task);
|
|
1649
|
-
emitErrorChunk(request, task.id, digest);
|
|
1570
|
+
if (
|
|
1571
|
+
"object" === typeof x &&
|
|
1572
|
+
null !== x &&
|
|
1573
|
+
"function" === typeof x.then
|
|
1574
|
+
) {
|
|
1575
|
+
task.status = 0;
|
|
1576
|
+
task.thenableState = getThenableStateAfterSuspending$1();
|
|
1577
|
+
var ping = task.ping;
|
|
1578
|
+
x.then(ping, ping);
|
|
1579
|
+
} else erroredTask$1(request, task, x);
|
|
1650
1580
|
}
|
|
1651
1581
|
} finally {
|
|
1652
1582
|
}
|
|
@@ -1746,25 +1676,24 @@ function abort$1(request, reason) {
|
|
|
1746
1676
|
11 >= request.status && (request.status = 12);
|
|
1747
1677
|
var abortableTasks = request.abortableTasks;
|
|
1748
1678
|
if (0 < abortableTasks.size) {
|
|
1749
|
-
if (
|
|
1679
|
+
if (21 === request.type)
|
|
1680
|
+
abortableTasks.forEach(function (task) {
|
|
1681
|
+
5 !== task.status && ((task.status = 3), request.pendingChunks--);
|
|
1682
|
+
});
|
|
1683
|
+
else if (
|
|
1750
1684
|
"object" === typeof reason &&
|
|
1751
1685
|
null !== reason &&
|
|
1752
1686
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
1753
|
-
)
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
request
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
abortableTasks.forEach(function (task) {
|
|
1764
|
-
return abortTask$1(task, request, errorId);
|
|
1765
|
-
});
|
|
1766
|
-
}
|
|
1767
|
-
else {
|
|
1687
|
+
) {
|
|
1688
|
+
logPostpone$1(request, reason.message, null);
|
|
1689
|
+
var errorId = request.nextChunkId++;
|
|
1690
|
+
request.fatalError = errorId;
|
|
1691
|
+
request.pendingChunks++;
|
|
1692
|
+
emitPostponeChunk(request, errorId, reason);
|
|
1693
|
+
abortableTasks.forEach(function (task) {
|
|
1694
|
+
return abortTask$1(task, request, errorId);
|
|
1695
|
+
});
|
|
1696
|
+
} else {
|
|
1768
1697
|
var error =
|
|
1769
1698
|
void 0 === reason
|
|
1770
1699
|
? Error("The render was aborted by the server without a reason.")
|
|
@@ -1773,20 +1702,14 @@ function abort$1(request, reason) {
|
|
|
1773
1702
|
"function" === typeof reason.then
|
|
1774
1703
|
? Error("The render was aborted by the server with a promise.")
|
|
1775
1704
|
: reason,
|
|
1776
|
-
digest = logRecoverableError$1(request, error, null)
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
request.pendingChunks++;
|
|
1785
|
-
emitErrorChunk(request, errorId$29, digest, error);
|
|
1786
|
-
abortableTasks.forEach(function (task) {
|
|
1787
|
-
return abortTask$1(task, request, errorId$29);
|
|
1788
|
-
});
|
|
1789
|
-
}
|
|
1705
|
+
digest = logRecoverableError$1(request, error, null),
|
|
1706
|
+
errorId$27 = request.nextChunkId++;
|
|
1707
|
+
request.fatalError = errorId$27;
|
|
1708
|
+
request.pendingChunks++;
|
|
1709
|
+
emitErrorChunk(request, errorId$27, digest, error);
|
|
1710
|
+
abortableTasks.forEach(function (task) {
|
|
1711
|
+
return abortTask$1(task, request, errorId$27);
|
|
1712
|
+
});
|
|
1790
1713
|
}
|
|
1791
1714
|
abortableTasks.clear();
|
|
1792
1715
|
var onAllReady = request.onAllReady;
|
|
@@ -1794,7 +1717,7 @@ function abort$1(request, reason) {
|
|
|
1794
1717
|
}
|
|
1795
1718
|
var abortListeners = request.abortListeners;
|
|
1796
1719
|
if (0 < abortListeners.size) {
|
|
1797
|
-
var error$
|
|
1720
|
+
var error$28 =
|
|
1798
1721
|
"object" === typeof reason &&
|
|
1799
1722
|
null !== reason &&
|
|
1800
1723
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
@@ -1807,15 +1730,15 @@ function abort$1(request, reason) {
|
|
|
1807
1730
|
? Error("The render was aborted by the server with a promise.")
|
|
1808
1731
|
: reason;
|
|
1809
1732
|
abortListeners.forEach(function (callback) {
|
|
1810
|
-
return callback(error$
|
|
1733
|
+
return callback(error$28);
|
|
1811
1734
|
});
|
|
1812
1735
|
abortListeners.clear();
|
|
1813
1736
|
}
|
|
1814
1737
|
null !== request.destination &&
|
|
1815
1738
|
flushCompletedChunks(request, request.destination);
|
|
1816
|
-
} catch (error$
|
|
1817
|
-
logRecoverableError$1(request, error$
|
|
1818
|
-
fatalError$1(request, error$
|
|
1739
|
+
} catch (error$29) {
|
|
1740
|
+
logRecoverableError$1(request, error$29, null),
|
|
1741
|
+
fatalError$1(request, error$29);
|
|
1819
1742
|
}
|
|
1820
1743
|
}
|
|
1821
1744
|
var bind$1 = Function.prototype.bind,
|
|
@@ -1922,11 +1845,11 @@ function processReply(
|
|
|
1922
1845
|
0 === pendingParts && resolve(data);
|
|
1923
1846
|
} else
|
|
1924
1847
|
try {
|
|
1925
|
-
var partJSON$
|
|
1926
|
-
data.append(formFieldPrefix + streamId, partJSON$
|
|
1848
|
+
var partJSON$30 = JSON.stringify(entry.value, resolveToJSON);
|
|
1849
|
+
data.append(formFieldPrefix + streamId, partJSON$30);
|
|
1927
1850
|
iterator.next().then(progress, reject);
|
|
1928
|
-
} catch (x$
|
|
1929
|
-
reject(x$
|
|
1851
|
+
} catch (x$31) {
|
|
1852
|
+
reject(x$31);
|
|
1930
1853
|
}
|
|
1931
1854
|
}
|
|
1932
1855
|
null === formData && (formData = new FormData());
|
|
@@ -1971,20 +1894,20 @@ function processReply(
|
|
|
1971
1894
|
"function" === typeof x.then
|
|
1972
1895
|
) {
|
|
1973
1896
|
pendingParts++;
|
|
1974
|
-
var lazyId$
|
|
1897
|
+
var lazyId$32 = nextPartId++;
|
|
1975
1898
|
parentReference = function () {
|
|
1976
1899
|
try {
|
|
1977
|
-
var partJSON$
|
|
1978
|
-
data$
|
|
1979
|
-
data$
|
|
1900
|
+
var partJSON$33 = serializeModel(value, lazyId$32),
|
|
1901
|
+
data$34 = formData;
|
|
1902
|
+
data$34.append(formFieldPrefix + lazyId$32, partJSON$33);
|
|
1980
1903
|
pendingParts--;
|
|
1981
|
-
0 === pendingParts && resolve(data$
|
|
1904
|
+
0 === pendingParts && resolve(data$34);
|
|
1982
1905
|
} catch (reason) {
|
|
1983
1906
|
reject(reason);
|
|
1984
1907
|
}
|
|
1985
1908
|
};
|
|
1986
1909
|
x.then(parentReference, parentReference);
|
|
1987
|
-
return "$" + lazyId$
|
|
1910
|
+
return "$" + lazyId$32.toString(16);
|
|
1988
1911
|
}
|
|
1989
1912
|
reject(x);
|
|
1990
1913
|
return null;
|
|
@@ -1998,9 +1921,9 @@ function processReply(
|
|
|
1998
1921
|
var promiseId = nextPartId++;
|
|
1999
1922
|
value.then(function (partValue) {
|
|
2000
1923
|
try {
|
|
2001
|
-
var partJSON$
|
|
1924
|
+
var partJSON$36 = serializeModel(partValue, promiseId);
|
|
2002
1925
|
partValue = formData;
|
|
2003
|
-
partValue.append(formFieldPrefix + promiseId, partJSON$
|
|
1926
|
+
partValue.append(formFieldPrefix + promiseId, partJSON$36);
|
|
2004
1927
|
pendingParts--;
|
|
2005
1928
|
0 === pendingParts && resolve(partValue);
|
|
2006
1929
|
} catch (reason) {
|
|
@@ -2024,11 +1947,11 @@ function processReply(
|
|
|
2024
1947
|
if (isArrayImpl(value)) return value;
|
|
2025
1948
|
if (value instanceof FormData) {
|
|
2026
1949
|
null === formData && (formData = new FormData());
|
|
2027
|
-
var data$
|
|
1950
|
+
var data$40 = formData;
|
|
2028
1951
|
key = nextPartId++;
|
|
2029
|
-
var prefix$
|
|
1952
|
+
var prefix$41 = formFieldPrefix + key + "_";
|
|
2030
1953
|
value.forEach(function (originalValue, originalKey) {
|
|
2031
|
-
data$
|
|
1954
|
+
data$40.append(prefix$41 + originalKey, originalValue);
|
|
2032
1955
|
});
|
|
2033
1956
|
return "$K" + key.toString(16);
|
|
2034
1957
|
}
|
|
@@ -2887,8 +2810,8 @@ function startReadableStream(response, id, type) {
|
|
|
2887
2810
|
(previousBlockedChunk = chunk));
|
|
2888
2811
|
} else {
|
|
2889
2812
|
chunk = previousBlockedChunk;
|
|
2890
|
-
var chunk$
|
|
2891
|
-
chunk$
|
|
2813
|
+
var chunk$61 = createPendingChunk(response);
|
|
2814
|
+
chunk$61.then(
|
|
2892
2815
|
function (v) {
|
|
2893
2816
|
return controller.enqueue(v);
|
|
2894
2817
|
},
|
|
@@ -2896,10 +2819,10 @@ function startReadableStream(response, id, type) {
|
|
|
2896
2819
|
return controller.error(e);
|
|
2897
2820
|
}
|
|
2898
2821
|
);
|
|
2899
|
-
previousBlockedChunk = chunk$
|
|
2822
|
+
previousBlockedChunk = chunk$61;
|
|
2900
2823
|
chunk.then(function () {
|
|
2901
|
-
previousBlockedChunk === chunk$
|
|
2902
|
-
resolveModelChunk(chunk$
|
|
2824
|
+
previousBlockedChunk === chunk$61 && (previousBlockedChunk = null);
|
|
2825
|
+
resolveModelChunk(chunk$61, json);
|
|
2903
2826
|
});
|
|
2904
2827
|
}
|
|
2905
2828
|
},
|
|
@@ -3784,8 +3707,8 @@ function pushAttribute(target, name, value) {
|
|
|
3784
3707
|
case "symbol":
|
|
3785
3708
|
return;
|
|
3786
3709
|
case "boolean":
|
|
3787
|
-
var prefix$
|
|
3788
|
-
if ("data-" !== prefix$
|
|
3710
|
+
var prefix$71 = name.toLowerCase().slice(0, 5);
|
|
3711
|
+
if ("data-" !== prefix$71 && "aria-" !== prefix$71) return;
|
|
3789
3712
|
}
|
|
3790
3713
|
target.push(" ", name, '="', escapeTextForBrowser(value), '"');
|
|
3791
3714
|
}
|
|
@@ -4520,10 +4443,10 @@ function pushStartInstance$1(
|
|
|
4520
4443
|
styleQueue.sheets.set(href, resource);
|
|
4521
4444
|
hoistableState && hoistableState.stylesheets.add(resource);
|
|
4522
4445
|
} else if (styleQueue) {
|
|
4523
|
-
var resource$
|
|
4524
|
-
resource$
|
|
4446
|
+
var resource$72 = styleQueue.sheets.get(href);
|
|
4447
|
+
resource$72 &&
|
|
4525
4448
|
hoistableState &&
|
|
4526
|
-
hoistableState.stylesheets.add(resource$
|
|
4449
|
+
hoistableState.stylesheets.add(resource$72);
|
|
4527
4450
|
}
|
|
4528
4451
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
|
|
4529
4452
|
JSCompiler_inline_result$jscomp$4 = null;
|
|
@@ -5753,10 +5676,10 @@ function useActionState(action, initialState, permalink) {
|
|
|
5753
5676
|
var nextPostbackStateKey = null,
|
|
5754
5677
|
componentKeyPath = currentlyRenderingKeyPath;
|
|
5755
5678
|
request = request.formState;
|
|
5756
|
-
var isSignatureEqual$
|
|
5757
|
-
if (null !== request && "function" === typeof isSignatureEqual$
|
|
5679
|
+
var isSignatureEqual$75 = action.$$IS_SIGNATURE_EQUAL;
|
|
5680
|
+
if (null !== request && "function" === typeof isSignatureEqual$75) {
|
|
5758
5681
|
var postbackKey = request[1];
|
|
5759
|
-
isSignatureEqual$
|
|
5682
|
+
isSignatureEqual$75.call(action, request[2], request[3]) &&
|
|
5760
5683
|
((nextPostbackStateKey =
|
|
5761
5684
|
void 0 !== permalink
|
|
5762
5685
|
? "p" + permalink
|
|
@@ -5798,11 +5721,11 @@ function useActionState(action, initialState, permalink) {
|
|
|
5798
5721
|
});
|
|
5799
5722
|
return [initialState, action, !1];
|
|
5800
5723
|
}
|
|
5801
|
-
var boundAction$
|
|
5724
|
+
var boundAction$76 = action.bind(null, initialState);
|
|
5802
5725
|
return [
|
|
5803
5726
|
initialState,
|
|
5804
5727
|
function (payload) {
|
|
5805
|
-
boundAction$
|
|
5728
|
+
boundAction$76(payload);
|
|
5806
5729
|
},
|
|
5807
5730
|
!1
|
|
5808
5731
|
];
|
|
@@ -6316,9 +6239,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6316
6239
|
var defaultProps = type.defaultProps;
|
|
6317
6240
|
if (defaultProps) {
|
|
6318
6241
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
6319
|
-
for (var propName$
|
|
6320
|
-
void 0 === newProps[propName$
|
|
6321
|
-
(newProps[propName$
|
|
6242
|
+
for (var propName$85 in defaultProps)
|
|
6243
|
+
void 0 === newProps[propName$85] &&
|
|
6244
|
+
(newProps[propName$85] = defaultProps[propName$85]);
|
|
6322
6245
|
}
|
|
6323
6246
|
props = newProps;
|
|
6324
6247
|
newProps = emptyContextObject;
|
|
@@ -6428,7 +6351,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6428
6351
|
defaultProps = newProps.chunks;
|
|
6429
6352
|
initialState = request.resumableState;
|
|
6430
6353
|
ref = request.renderState;
|
|
6431
|
-
propName$
|
|
6354
|
+
propName$85 = task.hoistableState;
|
|
6432
6355
|
propName = task.formatContext;
|
|
6433
6356
|
var textEmbedded = newProps.lastPushedText,
|
|
6434
6357
|
isFallback = task.isFallback;
|
|
@@ -6452,7 +6375,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6452
6375
|
props,
|
|
6453
6376
|
initialState,
|
|
6454
6377
|
ref,
|
|
6455
|
-
propName$
|
|
6378
|
+
propName$85,
|
|
6456
6379
|
propName,
|
|
6457
6380
|
textEmbedded,
|
|
6458
6381
|
isFallback
|
|
@@ -6549,13 +6472,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6549
6472
|
ref = props.fallback;
|
|
6550
6473
|
props = props.children;
|
|
6551
6474
|
var fallbackAbortSet = new Set();
|
|
6552
|
-
propName$
|
|
6475
|
+
propName$85 = createSuspenseBoundary(request, fallbackAbortSet);
|
|
6553
6476
|
null !== request.trackedPostpones &&
|
|
6554
|
-
(propName$
|
|
6477
|
+
(propName$85.trackedContentKeyPath = keyPath);
|
|
6555
6478
|
propName = createPendingSegment(
|
|
6556
6479
|
request,
|
|
6557
6480
|
contextType.chunks.length,
|
|
6558
|
-
propName$
|
|
6481
|
+
propName$85,
|
|
6559
6482
|
task.formatContext,
|
|
6560
6483
|
!1,
|
|
6561
6484
|
!1
|
|
@@ -6575,7 +6498,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6575
6498
|
newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
|
6576
6499
|
defaultProps = [newProps[1], newProps[2], [], null];
|
|
6577
6500
|
request.trackedPostpones.workingMap.set(newProps, defaultProps);
|
|
6578
|
-
propName$
|
|
6501
|
+
propName$85.trackedFallbackNode = defaultProps;
|
|
6579
6502
|
task.blockedSegment = propName;
|
|
6580
6503
|
task.keyPath = newProps;
|
|
6581
6504
|
propName.status = 6;
|
|
@@ -6593,9 +6516,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6593
6516
|
null,
|
|
6594
6517
|
props,
|
|
6595
6518
|
-1,
|
|
6596
|
-
propName$
|
|
6519
|
+
propName$85,
|
|
6597
6520
|
textEmbedded,
|
|
6598
|
-
propName$
|
|
6521
|
+
propName$85.contentState,
|
|
6599
6522
|
task.abortSet,
|
|
6600
6523
|
keyPath,
|
|
6601
6524
|
task.formatContext,
|
|
@@ -6607,8 +6530,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6607
6530
|
pushComponentStack(task);
|
|
6608
6531
|
request.pingedTasks.push(task);
|
|
6609
6532
|
} else {
|
|
6610
|
-
task.blockedBoundary = propName$
|
|
6611
|
-
task.hoistableState = propName$
|
|
6533
|
+
task.blockedBoundary = propName$85;
|
|
6534
|
+
task.hoistableState = propName$85.contentState;
|
|
6612
6535
|
task.blockedSegment = textEmbedded;
|
|
6613
6536
|
task.keyPath = keyPath;
|
|
6614
6537
|
textEmbedded.status = 6;
|
|
@@ -6616,17 +6539,17 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6616
6539
|
if (
|
|
6617
6540
|
(renderNode(request, task, props, -1),
|
|
6618
6541
|
(textEmbedded.status = 1),
|
|
6619
|
-
queueCompletedSegment(propName$
|
|
6620
|
-
0 === propName$
|
|
6542
|
+
queueCompletedSegment(propName$85, textEmbedded),
|
|
6543
|
+
0 === propName$85.pendingTasks && 0 === propName$85.status)
|
|
6621
6544
|
) {
|
|
6622
|
-
propName$
|
|
6545
|
+
propName$85.status = 1;
|
|
6623
6546
|
break a;
|
|
6624
6547
|
}
|
|
6625
|
-
} catch (thrownValue$
|
|
6626
|
-
(propName$
|
|
6548
|
+
} catch (thrownValue$80) {
|
|
6549
|
+
(propName$85.status = 4),
|
|
6627
6550
|
12 === request.status
|
|
6628
6551
|
? ((textEmbedded.status = 3), (newProps = request.fatalError))
|
|
6629
|
-
: ((textEmbedded.status = 4), (newProps = thrownValue$
|
|
6552
|
+
: ((textEmbedded.status = 4), (newProps = thrownValue$80)),
|
|
6630
6553
|
(defaultProps = getThrownInfo(task.componentStack)),
|
|
6631
6554
|
"object" === typeof newProps &&
|
|
6632
6555
|
null !== newProps &&
|
|
@@ -6638,8 +6561,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6638
6561
|
newProps,
|
|
6639
6562
|
defaultProps
|
|
6640
6563
|
)),
|
|
6641
|
-
(propName$
|
|
6642
|
-
untrackBoundary(request, propName$
|
|
6564
|
+
(propName$85.errorDigest = initialState),
|
|
6565
|
+
untrackBoundary(request, propName$85);
|
|
6643
6566
|
} finally {
|
|
6644
6567
|
(task.blockedBoundary = isFallback),
|
|
6645
6568
|
(task.hoistableState = propValue),
|
|
@@ -6653,7 +6576,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6653
6576
|
-1,
|
|
6654
6577
|
isFallback,
|
|
6655
6578
|
propName,
|
|
6656
|
-
propName$
|
|
6579
|
+
propName$85.fallbackState,
|
|
6657
6580
|
fallbackAbortSet,
|
|
6658
6581
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
6659
6582
|
task.formatContext,
|
|
@@ -7163,9 +7086,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7163
7086
|
addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
|
|
7164
7087
|
return;
|
|
7165
7088
|
}
|
|
7166
|
-
var boundaryNode$
|
|
7167
|
-
void 0 === boundaryNode$
|
|
7168
|
-
? ((boundaryNode$
|
|
7089
|
+
var boundaryNode$95 = trackedPostpones.workingMap.get(boundaryKeyPath);
|
|
7090
|
+
void 0 === boundaryNode$95
|
|
7091
|
+
? ((boundaryNode$95 = [
|
|
7169
7092
|
boundaryKeyPath[1],
|
|
7170
7093
|
boundaryKeyPath[2],
|
|
7171
7094
|
children,
|
|
@@ -7173,13 +7096,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7173
7096
|
fallbackReplayNode,
|
|
7174
7097
|
boundary.rootSegmentID
|
|
7175
7098
|
]),
|
|
7176
|
-
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$
|
|
7099
|
+
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$95),
|
|
7177
7100
|
addToReplayParent(
|
|
7178
|
-
boundaryNode$
|
|
7101
|
+
boundaryNode$95,
|
|
7179
7102
|
boundaryKeyPath[0],
|
|
7180
7103
|
trackedPostpones
|
|
7181
7104
|
))
|
|
7182
|
-
: ((boundaryKeyPath = boundaryNode$
|
|
7105
|
+
: ((boundaryKeyPath = boundaryNode$95),
|
|
7183
7106
|
(boundaryKeyPath[4] = fallbackReplayNode),
|
|
7184
7107
|
(boundaryKeyPath[5] = boundary.rootSegmentID));
|
|
7185
7108
|
}
|
|
@@ -7332,15 +7255,15 @@ function renderNode(request, task, node, childIndex) {
|
|
|
7332
7255
|
chunkLength = segment.chunks.length;
|
|
7333
7256
|
try {
|
|
7334
7257
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
7335
|
-
} catch (thrownValue$
|
|
7258
|
+
} catch (thrownValue$107) {
|
|
7336
7259
|
if (
|
|
7337
7260
|
(resetHooksState(),
|
|
7338
7261
|
(segment.children.length = childrenLength),
|
|
7339
7262
|
(segment.chunks.length = chunkLength),
|
|
7340
7263
|
(childIndex =
|
|
7341
|
-
thrownValue$
|
|
7264
|
+
thrownValue$107 === SuspenseException
|
|
7342
7265
|
? getSuspendedThenable()
|
|
7343
|
-
: thrownValue$
|
|
7266
|
+
: thrownValue$107),
|
|
7344
7267
|
"object" === typeof childIndex && null !== childIndex)
|
|
7345
7268
|
) {
|
|
7346
7269
|
if ("function" === typeof childIndex.then) {
|
|
@@ -7536,16 +7459,16 @@ function abortTask(task, request, error) {
|
|
|
7536
7459
|
}
|
|
7537
7460
|
} else {
|
|
7538
7461
|
boundary.pendingTasks--;
|
|
7539
|
-
var trackedPostpones$
|
|
7462
|
+
var trackedPostpones$110 = request.trackedPostpones;
|
|
7540
7463
|
if (4 !== boundary.status) {
|
|
7541
|
-
if (null !== trackedPostpones$
|
|
7464
|
+
if (null !== trackedPostpones$110 && null !== segment)
|
|
7542
7465
|
return (
|
|
7543
7466
|
"object" === typeof error &&
|
|
7544
7467
|
null !== error &&
|
|
7545
7468
|
error.$$typeof === REACT_POSTPONE_TYPE
|
|
7546
7469
|
? logPostpone(request, error.message, errorInfo)
|
|
7547
7470
|
: logRecoverableError(request, error, errorInfo),
|
|
7548
|
-
trackPostpone(request, trackedPostpones$
|
|
7471
|
+
trackPostpone(request, trackedPostpones$110, task, segment),
|
|
7549
7472
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7550
7473
|
return abortTask(fallbackTask, request, error);
|
|
7551
7474
|
}),
|
|
@@ -7843,13 +7766,13 @@ function performWork(request$jscomp$1) {
|
|
|
7843
7766
|
null !== request.trackedPostpones &&
|
|
7844
7767
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
7845
7768
|
) {
|
|
7846
|
-
var trackedPostpones$
|
|
7769
|
+
var trackedPostpones$114 = request.trackedPostpones;
|
|
7847
7770
|
task.abortSet.delete(task);
|
|
7848
7771
|
var postponeInfo = getThrownInfo(task.componentStack);
|
|
7849
7772
|
logPostpone(request, x$jscomp$0.message, postponeInfo);
|
|
7850
7773
|
trackPostpone(
|
|
7851
7774
|
request,
|
|
7852
|
-
trackedPostpones$
|
|
7775
|
+
trackedPostpones$114,
|
|
7853
7776
|
task,
|
|
7854
7777
|
segment$jscomp$0
|
|
7855
7778
|
);
|
|
@@ -8281,11 +8204,11 @@ function flushCompletedQueues(request, destination) {
|
|
|
8281
8204
|
completedBoundaries.splice(0, i);
|
|
8282
8205
|
var partialBoundaries = request.partialBoundaries;
|
|
8283
8206
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
8284
|
-
var boundary$
|
|
8207
|
+
var boundary$117 = partialBoundaries[i];
|
|
8285
8208
|
a: {
|
|
8286
8209
|
clientRenderedBoundaries = request;
|
|
8287
8210
|
boundary = destination;
|
|
8288
|
-
var completedSegments = boundary$
|
|
8211
|
+
var completedSegments = boundary$117.completedSegments;
|
|
8289
8212
|
for (
|
|
8290
8213
|
JSCompiler_inline_result = 0;
|
|
8291
8214
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -8295,7 +8218,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8295
8218
|
!flushPartiallyCompletedSegment(
|
|
8296
8219
|
clientRenderedBoundaries,
|
|
8297
8220
|
boundary,
|
|
8298
|
-
boundary$
|
|
8221
|
+
boundary$117,
|
|
8299
8222
|
completedSegments[JSCompiler_inline_result]
|
|
8300
8223
|
)
|
|
8301
8224
|
) {
|
|
@@ -8307,7 +8230,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8307
8230
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
8308
8231
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
8309
8232
|
boundary,
|
|
8310
|
-
boundary$
|
|
8233
|
+
boundary$117.contentState,
|
|
8311
8234
|
clientRenderedBoundaries.renderState
|
|
8312
8235
|
);
|
|
8313
8236
|
}
|
|
@@ -8379,8 +8302,8 @@ function abort(request, reason) {
|
|
|
8379
8302
|
}
|
|
8380
8303
|
null !== request.destination &&
|
|
8381
8304
|
flushCompletedQueues(request, request.destination);
|
|
8382
|
-
} catch (error$
|
|
8383
|
-
logRecoverableError(request, error$
|
|
8305
|
+
} catch (error$119) {
|
|
8306
|
+
logRecoverableError(request, error$119, {}), fatalError(request, error$119);
|
|
8384
8307
|
}
|
|
8385
8308
|
}
|
|
8386
8309
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -8512,6 +8435,7 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
8512
8435
|
new ReactPromise("fulfilled", i, null, flightResponse)
|
|
8513
8436
|
);
|
|
8514
8437
|
break;
|
|
8438
|
+
case 78:
|
|
8515
8439
|
case 68:
|
|
8516
8440
|
case 87:
|
|
8517
8441
|
throw Error(
|
|
@@ -8696,4 +8620,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
8696
8620
|
});
|
|
8697
8621
|
});
|
|
8698
8622
|
};
|
|
8699
|
-
exports.version = "19.0.0-experimental-
|
|
8623
|
+
exports.version = "19.0.0-experimental-79ddf5b5-20241210";
|