@dmarket/p2p-tracker-headless 1.2.1-SNAPSHOT-development.162 → 1.3.0-beta
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/dmarket-p2p-tracker-core-domain.mjs +4431 -4291
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/kotlin-kotlin-stdlib.mjs +7 -7
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1843 -1843
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1554 -1554
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +2020 -1910
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +312 -312
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +623 -623
- package/ktor-ktor-io.mjs +464 -439
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +690 -690
- package/ktor-ktor-websockets.mjs +328 -328
- package/p2p-tracker-core.mjs +8930 -8580
- package/p2p-tracker-core.mjs.map +1 -1
- package/p2p-tracker-headless.mjs +1168 -1015
- package/p2p-tracker-headless.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-io.mjs
CHANGED
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
47
47
|
EmptyCoroutineContext_getInstance2wsqunjuleo79 as EmptyCoroutineContext_getInstance,
|
|
48
48
|
Continuation1aa2oekvx7jm7 as Continuation,
|
|
49
|
+
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
49
50
|
KFunctionImpl1wt0sp8rkf847 as KFunctionImpl,
|
|
50
51
|
initMetadataForFunctionReferencen3g5fpj34t8u as initMetadataForFunctionReference,
|
|
51
|
-
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
52
52
|
Enum3alwj03lh1n41 as Enum,
|
|
53
53
|
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
|
|
54
54
|
listOf1jh22dvmctj1r as listOf,
|
|
@@ -72,8 +72,8 @@ import {
|
|
|
72
72
|
DisposableHandle1uzxt8frdchxn as DisposableHandle,
|
|
73
73
|
CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl,
|
|
74
74
|
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
75
|
-
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
76
75
|
launch1c91vkjzdi9sd as launch,
|
|
76
|
+
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
77
77
|
startCoroutineCancellable18shtfwdieib as startCoroutineCancellable,
|
|
78
78
|
get_job2zvlvce9o9a29 as get_job,
|
|
79
79
|
Job13y4jkazwjho0 as Job,
|
|
@@ -131,7 +131,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
131
131
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
132
132
|
function awaitContent$default(min, $completion, $super) {
|
|
133
133
|
min = min === VOID ? 1 : min;
|
|
134
|
-
return $super === VOID ? this.
|
|
134
|
+
return $super === VOID ? this.q1z(min, $completion) : $super.q1z.call(this, min, $completion);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
137
137
|
function get_autoFlush() {
|
|
@@ -160,8 +160,8 @@ initMetadataForCoroutine($flushIfNeededCOROUTINE$, CoroutineImpl);
|
|
|
160
160
|
initMetadataForClass(WriterJob, 'WriterJob');
|
|
161
161
|
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
162
162
|
initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
|
|
163
|
-
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref_0, KFunctionImpl, VOID, [0]);
|
|
164
163
|
initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
|
|
164
|
+
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref_0, KFunctionImpl, VOID, [0]);
|
|
165
165
|
initMetadataForCompanion(Companion_1);
|
|
166
166
|
initMetadataForClass(CloseToken, 'CloseToken');
|
|
167
167
|
initMetadataForCoroutine($awaitContentCOROUTINE$_0, CoroutineImpl);
|
|
@@ -741,9 +741,16 @@ protoOf(ByteChannel).m1z = function () {
|
|
|
741
741
|
return !(this.w1x_1.kotlinx$atomicfu$value == null);
|
|
742
742
|
};
|
|
743
743
|
protoOf(ByteChannel).n1z = function () {
|
|
744
|
-
|
|
744
|
+
var tmp;
|
|
745
|
+
var tmp0_safe_receiver = this.w1x_1.kotlinx$atomicfu$value;
|
|
746
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1z()) === true) {
|
|
747
|
+
tmp = true;
|
|
748
|
+
} else {
|
|
749
|
+
tmp = (this.m1z() && this.r1x_1 === 0 && this.u1x_1.iu());
|
|
750
|
+
}
|
|
751
|
+
return tmp;
|
|
745
752
|
};
|
|
746
|
-
protoOf(ByteChannel).
|
|
753
|
+
protoOf(ByteChannel).q1z = function (min, $completion) {
|
|
747
754
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
748
755
|
tmp.k9_1 = Unit_instance;
|
|
749
756
|
tmp.l9_1 = null;
|
|
@@ -781,13 +788,13 @@ protoOf(ByteChannel).j4 = function () {
|
|
|
781
788
|
return Unit_instance;
|
|
782
789
|
closeSlot(this, null);
|
|
783
790
|
};
|
|
784
|
-
protoOf(ByteChannel).
|
|
791
|
+
protoOf(ByteChannel).s1z = function ($completion) {
|
|
785
792
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
786
793
|
tmp.k9_1 = Unit_instance;
|
|
787
794
|
tmp.l9_1 = null;
|
|
788
795
|
return tmp.q9();
|
|
789
796
|
};
|
|
790
|
-
protoOf(ByteChannel).
|
|
797
|
+
protoOf(ByteChannel).t1z = function (cause) {
|
|
791
798
|
if (!(this.w1x_1.kotlinx$atomicfu$value == null))
|
|
792
799
|
return Unit_instance;
|
|
793
800
|
var closedToken = new CloseToken(cause);
|
|
@@ -812,7 +819,7 @@ protoOf(ByteChannel).r1z = function (cause) {
|
|
|
812
819
|
var wrappedCause = tmp;
|
|
813
820
|
closeSlot(this, wrappedCause);
|
|
814
821
|
};
|
|
815
|
-
protoOf(ByteChannel).
|
|
822
|
+
protoOf(ByteChannel).u1z = function (handler) {
|
|
816
823
|
var existingCause = this.w1x_1.kotlinx$atomicfu$value;
|
|
817
824
|
if (!(existingCause == null)) {
|
|
818
825
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
@@ -888,18 +895,18 @@ function ByteReadChannel_0(source) {
|
|
|
888
895
|
return new SourceByteReadChannel(source);
|
|
889
896
|
}
|
|
890
897
|
function buildPartialMatchTable($this) {
|
|
891
|
-
var table = new Int32Array($this.
|
|
898
|
+
var table = new Int32Array($this.w1z_1.g1());
|
|
892
899
|
var j = 0;
|
|
893
900
|
var inductionVariable = 1;
|
|
894
|
-
var last = $this.
|
|
901
|
+
var last = $this.w1z_1.g1();
|
|
895
902
|
if (inductionVariable < last)
|
|
896
903
|
do {
|
|
897
904
|
var i = inductionVariable;
|
|
898
905
|
inductionVariable = inductionVariable + 1 | 0;
|
|
899
|
-
while (j > 0 && !($this.
|
|
906
|
+
while (j > 0 && !($this.w1z_1.h1(i) === $this.w1z_1.h1(j))) {
|
|
900
907
|
j = table[j - 1 | 0];
|
|
901
908
|
}
|
|
902
|
-
if ($this.
|
|
909
|
+
if ($this.w1z_1.h1(i) === $this.w1z_1.h1(j)) {
|
|
903
910
|
j = j + 1 | 0;
|
|
904
911
|
}
|
|
905
912
|
table[i] = j;
|
|
@@ -920,8 +927,8 @@ function checkFullMatch($this, $completion) {
|
|
|
920
927
|
return tmp.q9();
|
|
921
928
|
}
|
|
922
929
|
function checkBounds($this, extra) {
|
|
923
|
-
if (compare(add($this.
|
|
924
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
930
|
+
if (compare(add($this.c20_1, extra), $this.y1z_1) > 0) {
|
|
931
|
+
throw IOException_init_$Create$('Limit of ' + $this.y1z_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.w1z_1) + '"'));
|
|
925
932
|
}
|
|
926
933
|
}
|
|
927
934
|
function toSingleLineString($this, $receiver) {
|
|
@@ -929,8 +936,8 @@ function toSingleLineString($this, $receiver) {
|
|
|
929
936
|
}
|
|
930
937
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
931
938
|
CoroutineImpl.call(this, resultContinuation);
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
939
|
+
this.h21_1 = _this__u8e3s4;
|
|
940
|
+
this.i21_1 = ignoreMissing;
|
|
934
941
|
}
|
|
935
942
|
protoOf($findNextCOROUTINE$).q9 = function () {
|
|
936
943
|
var suspendResult = this.k9_1;
|
|
@@ -940,17 +947,17 @@ protoOf($findNextCOROUTINE$).q9 = function () {
|
|
|
940
947
|
switch (tmp) {
|
|
941
948
|
case 0:
|
|
942
949
|
this.j9_1 = 9;
|
|
943
|
-
this.
|
|
950
|
+
this.h21_1.c20_1 = new Long(0, 0);
|
|
944
951
|
this.i9_1 = 1;
|
|
945
952
|
continue $sm;
|
|
946
953
|
case 1:
|
|
947
|
-
if (!this.
|
|
948
|
-
this.
|
|
954
|
+
if (!this.h21_1.z1z_1.iu()) {
|
|
955
|
+
this.j21_1 = true;
|
|
949
956
|
this.i9_1 = 3;
|
|
950
957
|
continue $sm;
|
|
951
958
|
} else {
|
|
952
959
|
this.i9_1 = 2;
|
|
953
|
-
suspendResult = this.
|
|
960
|
+
suspendResult = this.h21_1.v1z_1.r1z(VOID, this);
|
|
954
961
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
955
962
|
return suspendResult;
|
|
956
963
|
}
|
|
@@ -958,17 +965,17 @@ protoOf($findNextCOROUTINE$).q9 = function () {
|
|
|
958
965
|
}
|
|
959
966
|
|
|
960
967
|
case 2:
|
|
961
|
-
this.
|
|
968
|
+
this.j21_1 = suspendResult;
|
|
962
969
|
this.i9_1 = 3;
|
|
963
970
|
continue $sm;
|
|
964
971
|
case 3:
|
|
965
|
-
if (!this.
|
|
972
|
+
if (!this.j21_1) {
|
|
966
973
|
this.i9_1 = 7;
|
|
967
974
|
continue $sm;
|
|
968
975
|
}
|
|
969
976
|
|
|
970
977
|
this.i9_1 = 4;
|
|
971
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
978
|
+
suspendResult = advanceToNextPotentialMatch(this.h21_1, this);
|
|
972
979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
973
980
|
return suspendResult;
|
|
974
981
|
}
|
|
@@ -976,7 +983,7 @@ protoOf($findNextCOROUTINE$).q9 = function () {
|
|
|
976
983
|
continue $sm;
|
|
977
984
|
case 4:
|
|
978
985
|
this.i9_1 = 5;
|
|
979
|
-
suspendResult = checkFullMatch(this.
|
|
986
|
+
suspendResult = checkFullMatch(this.h21_1, this);
|
|
980
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
981
988
|
return suspendResult;
|
|
982
989
|
}
|
|
@@ -984,7 +991,7 @@ protoOf($findNextCOROUTINE$).q9 = function () {
|
|
|
984
991
|
continue $sm;
|
|
985
992
|
case 5:
|
|
986
993
|
if (suspendResult) {
|
|
987
|
-
return this.
|
|
994
|
+
return this.h21_1.c20_1;
|
|
988
995
|
} else {
|
|
989
996
|
this.i9_1 = 6;
|
|
990
997
|
continue $sm;
|
|
@@ -994,20 +1001,20 @@ protoOf($findNextCOROUTINE$).q9 = function () {
|
|
|
994
1001
|
this.i9_1 = 1;
|
|
995
1002
|
continue $sm;
|
|
996
1003
|
case 7:
|
|
997
|
-
if (!this.
|
|
998
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
1004
|
+
if (!this.i21_1) {
|
|
1005
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.h21_1, this.h21_1.w1z_1) + '" but encountered end of input');
|
|
999
1006
|
}
|
|
1000
1007
|
|
|
1001
|
-
this.
|
|
1008
|
+
this.h21_1.c20_1 = add(this.h21_1.c20_1, this.h21_1.b20_1.lv(this.h21_1.x1z_1.l1z()));
|
|
1002
1009
|
this.i9_1 = 8;
|
|
1003
|
-
suspendResult = this.
|
|
1010
|
+
suspendResult = this.h21_1.x1z_1.i1z(this);
|
|
1004
1011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1005
1012
|
return suspendResult;
|
|
1006
1013
|
}
|
|
1007
1014
|
|
|
1008
1015
|
continue $sm;
|
|
1009
1016
|
case 8:
|
|
1010
|
-
return this.
|
|
1017
|
+
return this.h21_1.c20_1;
|
|
1011
1018
|
case 9:
|
|
1012
1019
|
throw this.l9_1;
|
|
1013
1020
|
}
|
|
@@ -1024,7 +1031,7 @@ protoOf($findNextCOROUTINE$).q9 = function () {
|
|
|
1024
1031
|
};
|
|
1025
1032
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1026
1033
|
CoroutineImpl.call(this, resultContinuation);
|
|
1027
|
-
this.
|
|
1034
|
+
this.m20_1 = _this__u8e3s4;
|
|
1028
1035
|
}
|
|
1029
1036
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).q9 = function () {
|
|
1030
1037
|
var suspendResult = this.k9_1;
|
|
@@ -1037,13 +1044,13 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).q9 = function () {
|
|
|
1037
1044
|
this.i9_1 = 1;
|
|
1038
1045
|
continue $sm;
|
|
1039
1046
|
case 1:
|
|
1040
|
-
if (!this.
|
|
1041
|
-
this.
|
|
1047
|
+
if (!this.m20_1.z1z_1.iu()) {
|
|
1048
|
+
this.n20_1 = true;
|
|
1042
1049
|
this.i9_1 = 3;
|
|
1043
1050
|
continue $sm;
|
|
1044
1051
|
} else {
|
|
1045
1052
|
this.i9_1 = 2;
|
|
1046
|
-
suspendResult = this.
|
|
1053
|
+
suspendResult = this.m20_1.v1z_1.r1z(VOID, this);
|
|
1047
1054
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1048
1055
|
return suspendResult;
|
|
1049
1056
|
}
|
|
@@ -1051,34 +1058,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).q9 = function () {
|
|
|
1051
1058
|
}
|
|
1052
1059
|
|
|
1053
1060
|
case 2:
|
|
1054
|
-
this.
|
|
1061
|
+
this.n20_1 = suspendResult;
|
|
1055
1062
|
this.i9_1 = 3;
|
|
1056
1063
|
continue $sm;
|
|
1057
1064
|
case 3:
|
|
1058
|
-
if (!this.
|
|
1065
|
+
if (!this.n20_1) {
|
|
1059
1066
|
this.i9_1 = 7;
|
|
1060
1067
|
continue $sm;
|
|
1061
1068
|
}
|
|
1062
1069
|
|
|
1063
|
-
var nextMatch = indexOf(this.
|
|
1070
|
+
var nextMatch = indexOf(this.m20_1.z1z_1, this.m20_1.w1z_1.h1(0));
|
|
1064
1071
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1065
|
-
var tmp_0 = this.
|
|
1066
|
-
checkBounds(this.
|
|
1067
|
-
this.
|
|
1072
|
+
var tmp_0 = this.m20_1.z1z_1;
|
|
1073
|
+
checkBounds(this.m20_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
1074
|
+
this.m20_1.c20_1 = add(this.m20_1.c20_1, this.m20_1.z1z_1.lv(this.m20_1.x1z_1.l1z()));
|
|
1068
1075
|
this.i9_1 = 5;
|
|
1069
|
-
suspendResult = flushIfNeeded(this.
|
|
1076
|
+
suspendResult = flushIfNeeded(this.m20_1.x1z_1, this);
|
|
1070
1077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1071
1078
|
return suspendResult;
|
|
1072
1079
|
}
|
|
1073
1080
|
continue $sm;
|
|
1074
1081
|
} else {
|
|
1075
|
-
checkBounds(this.
|
|
1076
|
-
var tmp_1 = this.
|
|
1077
|
-
var tmp_2 = this.
|
|
1078
|
-
var tmp_3 = this.
|
|
1079
|
-
tmp_1.
|
|
1082
|
+
checkBounds(this.m20_1, nextMatch);
|
|
1083
|
+
var tmp_1 = this.m20_1;
|
|
1084
|
+
var tmp_2 = this.m20_1.c20_1;
|
|
1085
|
+
var tmp_3 = this.m20_1.x1z_1.l1z();
|
|
1086
|
+
tmp_1.c20_1 = add(tmp_2, this.m20_1.z1z_1.iv(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1080
1087
|
this.i9_1 = 4;
|
|
1081
|
-
suspendResult = flushIfNeeded(this.
|
|
1088
|
+
suspendResult = flushIfNeeded(this.m20_1.x1z_1, this);
|
|
1082
1089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1083
1090
|
return suspendResult;
|
|
1084
1091
|
}
|
|
@@ -1111,7 +1118,7 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).q9 = function () {
|
|
|
1111
1118
|
};
|
|
1112
1119
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1113
1120
|
CoroutineImpl.call(this, resultContinuation);
|
|
1114
|
-
this.
|
|
1121
|
+
this.w20_1 = _this__u8e3s4;
|
|
1115
1122
|
}
|
|
1116
1123
|
protoOf($checkFullMatchCOROUTINE$).q9 = function () {
|
|
1117
1124
|
var suspendResult = this.k9_1;
|
|
@@ -1124,13 +1131,13 @@ protoOf($checkFullMatchCOROUTINE$).q9 = function () {
|
|
|
1124
1131
|
this.i9_1 = 1;
|
|
1125
1132
|
continue $sm;
|
|
1126
1133
|
case 1:
|
|
1127
|
-
if (!this.
|
|
1128
|
-
this.
|
|
1134
|
+
if (!this.w20_1.z1z_1.iu()) {
|
|
1135
|
+
this.y20_1 = true;
|
|
1129
1136
|
this.i9_1 = 3;
|
|
1130
1137
|
continue $sm;
|
|
1131
1138
|
} else {
|
|
1132
1139
|
this.i9_1 = 2;
|
|
1133
|
-
suspendResult = this.
|
|
1140
|
+
suspendResult = this.w20_1.v1z_1.r1z(VOID, this);
|
|
1134
1141
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1135
1142
|
return suspendResult;
|
|
1136
1143
|
}
|
|
@@ -1138,30 +1145,30 @@ protoOf($checkFullMatchCOROUTINE$).q9 = function () {
|
|
|
1138
1145
|
}
|
|
1139
1146
|
|
|
1140
1147
|
case 2:
|
|
1141
|
-
this.
|
|
1148
|
+
this.y20_1 = suspendResult;
|
|
1142
1149
|
this.i9_1 = 3;
|
|
1143
1150
|
continue $sm;
|
|
1144
1151
|
case 3:
|
|
1145
|
-
if (!this.
|
|
1152
|
+
if (!this.y20_1) {
|
|
1146
1153
|
this.i9_1 = 7;
|
|
1147
1154
|
continue $sm;
|
|
1148
1155
|
}
|
|
1149
1156
|
|
|
1150
|
-
this.
|
|
1151
|
-
if (this.
|
|
1152
|
-
var oldMatchIndex = this.
|
|
1153
|
-
while (this.
|
|
1154
|
-
this.
|
|
1157
|
+
this.x20_1 = this.w20_1.z1z_1.lu();
|
|
1158
|
+
if (this.w20_1.d20_1 > 0 && !(this.x20_1 === this.w20_1.w1z_1.h1(this.w20_1.d20_1))) {
|
|
1159
|
+
var oldMatchIndex = this.w20_1.d20_1;
|
|
1160
|
+
while (this.w20_1.d20_1 > 0 && !(this.x20_1 === this.w20_1.w1z_1.h1(this.w20_1.d20_1))) {
|
|
1161
|
+
this.w20_1.d20_1 = this.w20_1.a20_1[this.w20_1.d20_1 - 1 | 0];
|
|
1155
1162
|
}
|
|
1156
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1157
|
-
checkBounds(this.
|
|
1158
|
-
var tmp_0 = this.
|
|
1159
|
-
var tmp_1 = this.
|
|
1160
|
-
var tmp_2 = this.
|
|
1161
|
-
tmp_0.
|
|
1162
|
-
if (this.
|
|
1163
|
+
var retained = fromInt(oldMatchIndex - this.w20_1.d20_1 | 0);
|
|
1164
|
+
checkBounds(this.w20_1, retained);
|
|
1165
|
+
var tmp_0 = this.w20_1;
|
|
1166
|
+
var tmp_1 = this.w20_1.c20_1;
|
|
1167
|
+
var tmp_2 = this.w20_1.x1z_1.l1z();
|
|
1168
|
+
tmp_0.c20_1 = add(tmp_1, this.w20_1.b20_1.iv(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1169
|
+
if (this.w20_1.d20_1 === 0 && !(this.x20_1 === this.w20_1.w1z_1.h1(this.w20_1.d20_1))) {
|
|
1163
1170
|
this.i9_1 = 6;
|
|
1164
|
-
suspendResult = writeByte(this.
|
|
1171
|
+
suspendResult = writeByte(this.w20_1.x1z_1, this.x20_1, this);
|
|
1165
1172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1166
1173
|
return suspendResult;
|
|
1167
1174
|
}
|
|
@@ -1179,17 +1186,17 @@ protoOf($checkFullMatchCOROUTINE$).q9 = function () {
|
|
|
1179
1186
|
this.i9_1 = 5;
|
|
1180
1187
|
continue $sm;
|
|
1181
1188
|
case 5:
|
|
1182
|
-
this.
|
|
1183
|
-
if (this.
|
|
1189
|
+
this.w20_1.d20_1 = this.w20_1.d20_1 + 1 | 0;
|
|
1190
|
+
if (this.w20_1.d20_1 === this.w20_1.w1z_1.g1()) {
|
|
1184
1191
|
return true;
|
|
1185
1192
|
}
|
|
1186
1193
|
|
|
1187
|
-
this.
|
|
1194
|
+
this.w20_1.b20_1.bw(this.x20_1);
|
|
1188
1195
|
this.i9_1 = 1;
|
|
1189
1196
|
continue $sm;
|
|
1190
1197
|
case 6:
|
|
1191
|
-
var _unary__edvuaz = this.
|
|
1192
|
-
this.
|
|
1198
|
+
var _unary__edvuaz = this.w20_1.c20_1;
|
|
1199
|
+
this.w20_1.c20_1 = add(_unary__edvuaz, get_ONE());
|
|
1193
1200
|
return false;
|
|
1194
1201
|
case 7:
|
|
1195
1202
|
return false;
|
|
@@ -1209,68 +1216,81 @@ protoOf($checkFullMatchCOROUTINE$).q9 = function () {
|
|
|
1209
1216
|
};
|
|
1210
1217
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1211
1218
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1219
|
+
this.v1z_1 = channel;
|
|
1220
|
+
this.w1z_1 = matchString;
|
|
1221
|
+
this.x1z_1 = writeChannel;
|
|
1222
|
+
this.y1z_1 = limit;
|
|
1216
1223
|
// Inline function 'kotlin.require' call
|
|
1217
|
-
if (!(this.
|
|
1224
|
+
if (!(this.w1z_1.g1() > 0)) {
|
|
1218
1225
|
var message = 'Empty match string not permitted for scanning';
|
|
1219
1226
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1220
1227
|
}
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1225
|
-
this.
|
|
1228
|
+
this.z1z_1 = this.v1z_1.k1z();
|
|
1229
|
+
this.a20_1 = buildPartialMatchTable(this);
|
|
1230
|
+
this.b20_1 = new Buffer();
|
|
1231
|
+
this.c20_1 = new Long(0, 0);
|
|
1232
|
+
this.d20_1 = 0;
|
|
1226
1233
|
}
|
|
1227
|
-
protoOf(ByteChannelScanner).
|
|
1234
|
+
protoOf(ByteChannelScanner).k21 = function (ignoreMissing, $completion) {
|
|
1228
1235
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1229
1236
|
tmp.k9_1 = Unit_instance;
|
|
1230
1237
|
tmp.l9_1 = null;
|
|
1231
1238
|
return tmp.q9();
|
|
1232
1239
|
};
|
|
1240
|
+
function attachJob(_this__u8e3s4, job) {
|
|
1241
|
+
job.yy(true, VOID, attachJob$lambda(_this__u8e3s4));
|
|
1242
|
+
}
|
|
1233
1243
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1234
|
-
var tmp = writerJob.
|
|
1244
|
+
var tmp = writerJob.l21_1;
|
|
1235
1245
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1236
1246
|
if (tmp0_safe_receiver == null)
|
|
1237
1247
|
null;
|
|
1238
1248
|
else {
|
|
1239
|
-
tmp0_safe_receiver.
|
|
1249
|
+
tmp0_safe_receiver.u1z(attachWriterJob$lambda(_this__u8e3s4));
|
|
1240
1250
|
}
|
|
1241
1251
|
}
|
|
1252
|
+
function attachJob$lambda($this_attachJob) {
|
|
1253
|
+
return function (it) {
|
|
1254
|
+
var tmp;
|
|
1255
|
+
if (!(it == null)) {
|
|
1256
|
+
$this_attachJob.t1z(it);
|
|
1257
|
+
tmp = Unit_instance;
|
|
1258
|
+
}
|
|
1259
|
+
return Unit_instance;
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1242
1262
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1243
1263
|
return function (cause) {
|
|
1244
1264
|
var tmp;
|
|
1245
1265
|
if (!(cause == null)) {
|
|
1246
|
-
$this_attachWriterJob.
|
|
1266
|
+
$this_attachWriterJob.t1z(cause);
|
|
1247
1267
|
tmp = Unit_instance;
|
|
1248
1268
|
}
|
|
1249
1269
|
return Unit_instance;
|
|
1250
1270
|
};
|
|
1251
1271
|
}
|
|
1252
1272
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1273
|
+
this.n21_1 = null;
|
|
1274
|
+
this.o21_1 = new Buffer();
|
|
1255
1275
|
}
|
|
1256
1276
|
protoOf(ByteReadChannel$Companion$Empty$1).y1x = function () {
|
|
1257
|
-
return this.
|
|
1277
|
+
return this.n21_1;
|
|
1258
1278
|
};
|
|
1259
1279
|
protoOf(ByteReadChannel$Companion$Empty$1).n1z = function () {
|
|
1260
1280
|
return true;
|
|
1261
1281
|
};
|
|
1262
1282
|
protoOf(ByteReadChannel$Companion$Empty$1).k1z = function () {
|
|
1263
|
-
return this.
|
|
1283
|
+
return this.o21_1;
|
|
1264
1284
|
};
|
|
1265
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1285
|
+
protoOf(ByteReadChannel$Companion$Empty$1).q1z = function (min, $completion) {
|
|
1266
1286
|
return false;
|
|
1267
1287
|
};
|
|
1268
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1288
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1z = function (cause) {
|
|
1269
1289
|
};
|
|
1270
1290
|
function Companion_0() {
|
|
1271
1291
|
Companion_instance_1 = this;
|
|
1272
1292
|
var tmp = this;
|
|
1273
|
-
tmp.
|
|
1293
|
+
tmp.p21_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1274
1294
|
}
|
|
1275
1295
|
var Companion_instance_1;
|
|
1276
1296
|
function Companion_getInstance_0() {
|
|
@@ -1281,7 +1301,7 @@ function Companion_getInstance_0() {
|
|
|
1281
1301
|
function ByteReadChannel_1() {
|
|
1282
1302
|
}
|
|
1283
1303
|
function cancel_0(_this__u8e3s4) {
|
|
1284
|
-
_this__u8e3s4.
|
|
1304
|
+
_this__u8e3s4.t1z(IOException_init_$Create$('Channel was cancelled'));
|
|
1285
1305
|
}
|
|
1286
1306
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1287
1307
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1340,7 +1360,7 @@ function readPacket(_this__u8e3s4, packet, $completion) {
|
|
|
1340
1360
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1341
1361
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1342
1362
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1343
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1363
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).k21(ignoreMissing, $completion);
|
|
1344
1364
|
}
|
|
1345
1365
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1346
1366
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1428,7 +1448,7 @@ function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLin
|
|
|
1428
1448
|
}
|
|
1429
1449
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1430
1450
|
CoroutineImpl.call(this, resultContinuation);
|
|
1431
|
-
this.
|
|
1451
|
+
this.y21_1 = _this__u8e3s4;
|
|
1432
1452
|
}
|
|
1433
1453
|
protoOf($readBufferCOROUTINE$).q9 = function () {
|
|
1434
1454
|
var suspendResult = this.k9_1;
|
|
@@ -1438,18 +1458,18 @@ protoOf($readBufferCOROUTINE$).q9 = function () {
|
|
|
1438
1458
|
switch (tmp) {
|
|
1439
1459
|
case 0:
|
|
1440
1460
|
this.j9_1 = 5;
|
|
1441
|
-
this.
|
|
1461
|
+
this.z21_1 = new Buffer();
|
|
1442
1462
|
this.i9_1 = 1;
|
|
1443
1463
|
continue $sm;
|
|
1444
1464
|
case 1:
|
|
1445
|
-
if (!!this.
|
|
1465
|
+
if (!!this.y21_1.n1z()) {
|
|
1446
1466
|
this.i9_1 = 4;
|
|
1447
1467
|
continue $sm;
|
|
1448
1468
|
}
|
|
1449
1469
|
|
|
1450
|
-
if (this.
|
|
1470
|
+
if (this.y21_1.k1z().iu()) {
|
|
1451
1471
|
this.i9_1 = 2;
|
|
1452
|
-
suspendResult = this.
|
|
1472
|
+
suspendResult = this.y21_1.r1z(VOID, this);
|
|
1453
1473
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1474
|
return suspendResult;
|
|
1455
1475
|
}
|
|
@@ -1463,12 +1483,12 @@ protoOf($readBufferCOROUTINE$).q9 = function () {
|
|
|
1463
1483
|
this.i9_1 = 3;
|
|
1464
1484
|
continue $sm;
|
|
1465
1485
|
case 3:
|
|
1466
|
-
this.
|
|
1486
|
+
this.z21_1.aw(this.y21_1.k1z());
|
|
1467
1487
|
this.i9_1 = 1;
|
|
1468
1488
|
continue $sm;
|
|
1469
1489
|
case 4:
|
|
1470
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1471
|
-
return this.
|
|
1490
|
+
rethrowCloseCauseIfNeeded_0(this.y21_1);
|
|
1491
|
+
return this.z21_1;
|
|
1472
1492
|
case 5:
|
|
1473
1493
|
throw this.l9_1;
|
|
1474
1494
|
}
|
|
@@ -1485,7 +1505,7 @@ protoOf($readBufferCOROUTINE$).q9 = function () {
|
|
|
1485
1505
|
};
|
|
1486
1506
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1487
1507
|
CoroutineImpl.call(this, resultContinuation);
|
|
1488
|
-
this.
|
|
1508
|
+
this.i22_1 = _this__u8e3s4;
|
|
1489
1509
|
}
|
|
1490
1510
|
protoOf($toByteArrayCOROUTINE$).q9 = function () {
|
|
1491
1511
|
var suspendResult = this.k9_1;
|
|
@@ -1496,7 +1516,7 @@ protoOf($toByteArrayCOROUTINE$).q9 = function () {
|
|
|
1496
1516
|
case 0:
|
|
1497
1517
|
this.j9_1 = 2;
|
|
1498
1518
|
this.i9_1 = 1;
|
|
1499
|
-
suspendResult = readBuffer(this.
|
|
1519
|
+
suspendResult = readBuffer(this.i22_1, this);
|
|
1500
1520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1501
1521
|
return suspendResult;
|
|
1502
1522
|
}
|
|
@@ -1521,9 +1541,9 @@ protoOf($toByteArrayCOROUTINE$).q9 = function () {
|
|
|
1521
1541
|
};
|
|
1522
1542
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1523
1543
|
CoroutineImpl.call(this, resultContinuation);
|
|
1524
|
-
this.
|
|
1525
|
-
this.
|
|
1526
|
-
this.
|
|
1544
|
+
this.r22_1 = _this__u8e3s4;
|
|
1545
|
+
this.s22_1 = channel;
|
|
1546
|
+
this.t22_1 = limit;
|
|
1527
1547
|
}
|
|
1528
1548
|
protoOf($copyToCOROUTINE$).q9 = function () {
|
|
1529
1549
|
var suspendResult = this.k9_1;
|
|
@@ -1533,7 +1553,7 @@ protoOf($copyToCOROUTINE$).q9 = function () {
|
|
|
1533
1553
|
switch (tmp) {
|
|
1534
1554
|
case 0:
|
|
1535
1555
|
this.j9_1 = 12;
|
|
1536
|
-
this.
|
|
1556
|
+
this.u22_1 = this.t22_1;
|
|
1537
1557
|
this.i9_1 = 1;
|
|
1538
1558
|
continue $sm;
|
|
1539
1559
|
case 1:
|
|
@@ -1542,14 +1562,14 @@ protoOf($copyToCOROUTINE$).q9 = function () {
|
|
|
1542
1562
|
this.i9_1 = 2;
|
|
1543
1563
|
continue $sm;
|
|
1544
1564
|
case 2:
|
|
1545
|
-
if (!(!this.
|
|
1565
|
+
if (!(!this.r22_1.n1z() && compare(this.u22_1, new Long(0, 0)) > 0)) {
|
|
1546
1566
|
this.i9_1 = 6;
|
|
1547
1567
|
continue $sm;
|
|
1548
1568
|
}
|
|
1549
1569
|
|
|
1550
|
-
if (this.
|
|
1570
|
+
if (this.r22_1.k1z().iu()) {
|
|
1551
1571
|
this.i9_1 = 3;
|
|
1552
|
-
suspendResult = this.
|
|
1572
|
+
suspendResult = this.r22_1.r1z(VOID, this);
|
|
1553
1573
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1554
1574
|
return suspendResult;
|
|
1555
1575
|
}
|
|
@@ -1563,13 +1583,13 @@ protoOf($copyToCOROUTINE$).q9 = function () {
|
|
|
1563
1583
|
this.i9_1 = 4;
|
|
1564
1584
|
continue $sm;
|
|
1565
1585
|
case 4:
|
|
1566
|
-
var tmp0 = this.
|
|
1567
|
-
var b = get_remaining(this.
|
|
1586
|
+
var tmp0 = this.u22_1;
|
|
1587
|
+
var b = get_remaining(this.r22_1.k1z());
|
|
1568
1588
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1569
|
-
this.
|
|
1570
|
-
this.
|
|
1589
|
+
this.r22_1.k1z().kv(this.s22_1.l1z(), count);
|
|
1590
|
+
this.u22_1 = subtract(this.u22_1, count);
|
|
1571
1591
|
this.i9_1 = 5;
|
|
1572
|
-
suspendResult = this.
|
|
1592
|
+
suspendResult = this.s22_1.i1z(this);
|
|
1573
1593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1574
1594
|
return suspendResult;
|
|
1575
1595
|
}
|
|
@@ -1587,8 +1607,8 @@ protoOf($copyToCOROUTINE$).q9 = function () {
|
|
|
1587
1607
|
var tmp_0 = this.l9_1;
|
|
1588
1608
|
if (tmp_0 instanceof Error) {
|
|
1589
1609
|
var cause = this.l9_1;
|
|
1590
|
-
this.
|
|
1591
|
-
close_0(this.
|
|
1610
|
+
this.r22_1.t1z(cause);
|
|
1611
|
+
close_0(this.s22_1, cause);
|
|
1592
1612
|
throw cause;
|
|
1593
1613
|
} else {
|
|
1594
1614
|
throw this.l9_1;
|
|
@@ -1596,27 +1616,27 @@ protoOf($copyToCOROUTINE$).q9 = function () {
|
|
|
1596
1616
|
|
|
1597
1617
|
case 8:
|
|
1598
1618
|
this.j9_1 = 12;
|
|
1599
|
-
this.
|
|
1619
|
+
this.v22_1 = this.l9_1;
|
|
1600
1620
|
this.i9_1 = 9;
|
|
1601
|
-
suspendResult = this.
|
|
1621
|
+
suspendResult = this.s22_1.i1z(this);
|
|
1602
1622
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1603
1623
|
return suspendResult;
|
|
1604
1624
|
}
|
|
1605
1625
|
|
|
1606
1626
|
continue $sm;
|
|
1607
1627
|
case 9:
|
|
1608
|
-
throw this.
|
|
1628
|
+
throw this.v22_1;
|
|
1609
1629
|
case 10:
|
|
1610
1630
|
this.j9_1 = 12;
|
|
1611
1631
|
this.i9_1 = 11;
|
|
1612
|
-
suspendResult = this.
|
|
1632
|
+
suspendResult = this.s22_1.i1z(this);
|
|
1613
1633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1614
1634
|
return suspendResult;
|
|
1615
1635
|
}
|
|
1616
1636
|
|
|
1617
1637
|
continue $sm;
|
|
1618
1638
|
case 11:
|
|
1619
|
-
return subtract(this.
|
|
1639
|
+
return subtract(this.t22_1, this.u22_1);
|
|
1620
1640
|
case 12:
|
|
1621
1641
|
throw this.l9_1;
|
|
1622
1642
|
}
|
|
@@ -1633,8 +1653,8 @@ protoOf($copyToCOROUTINE$).q9 = function () {
|
|
|
1633
1653
|
};
|
|
1634
1654
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1635
1655
|
CoroutineImpl.call(this, resultContinuation);
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1656
|
+
this.e23_1 = _this__u8e3s4;
|
|
1657
|
+
this.f23_1 = max;
|
|
1638
1658
|
}
|
|
1639
1659
|
protoOf($discardCOROUTINE$).q9 = function () {
|
|
1640
1660
|
var suspendResult = this.k9_1;
|
|
@@ -1644,18 +1664,18 @@ protoOf($discardCOROUTINE$).q9 = function () {
|
|
|
1644
1664
|
switch (tmp) {
|
|
1645
1665
|
case 0:
|
|
1646
1666
|
this.j9_1 = 5;
|
|
1647
|
-
this.
|
|
1667
|
+
this.g23_1 = this.f23_1;
|
|
1648
1668
|
this.i9_1 = 1;
|
|
1649
1669
|
continue $sm;
|
|
1650
1670
|
case 1:
|
|
1651
|
-
if (!(compare(this.
|
|
1671
|
+
if (!(compare(this.g23_1, new Long(0, 0)) > 0 && !this.e23_1.n1z())) {
|
|
1652
1672
|
this.i9_1 = 4;
|
|
1653
1673
|
continue $sm;
|
|
1654
1674
|
}
|
|
1655
1675
|
|
|
1656
|
-
if (get_availableForRead(this.
|
|
1676
|
+
if (get_availableForRead(this.e23_1) === 0) {
|
|
1657
1677
|
this.i9_1 = 2;
|
|
1658
|
-
suspendResult = this.
|
|
1678
|
+
suspendResult = this.e23_1.r1z(VOID, this);
|
|
1659
1679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1660
1680
|
return suspendResult;
|
|
1661
1681
|
}
|
|
@@ -1669,15 +1689,15 @@ protoOf($discardCOROUTINE$).q9 = function () {
|
|
|
1669
1689
|
this.i9_1 = 3;
|
|
1670
1690
|
continue $sm;
|
|
1671
1691
|
case 3:
|
|
1672
|
-
var tmp0 = this.
|
|
1673
|
-
var b = get_remaining(this.
|
|
1692
|
+
var tmp0 = this.g23_1;
|
|
1693
|
+
var b = get_remaining(this.e23_1.k1z());
|
|
1674
1694
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1675
|
-
discard_0(this.
|
|
1676
|
-
this.
|
|
1695
|
+
discard_0(this.e23_1.k1z(), count);
|
|
1696
|
+
this.g23_1 = subtract(this.g23_1, count);
|
|
1677
1697
|
this.i9_1 = 1;
|
|
1678
1698
|
continue $sm;
|
|
1679
1699
|
case 4:
|
|
1680
|
-
return subtract(this.
|
|
1700
|
+
return subtract(this.f23_1, this.g23_1);
|
|
1681
1701
|
case 5:
|
|
1682
1702
|
throw this.l9_1;
|
|
1683
1703
|
}
|
|
@@ -1694,10 +1714,10 @@ protoOf($discardCOROUTINE$).q9 = function () {
|
|
|
1694
1714
|
};
|
|
1695
1715
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1696
1716
|
CoroutineImpl.call(this, resultContinuation);
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1700
|
-
this.
|
|
1717
|
+
this.p23_1 = _this__u8e3s4;
|
|
1718
|
+
this.q23_1 = buffer;
|
|
1719
|
+
this.r23_1 = offset;
|
|
1720
|
+
this.s23_1 = length;
|
|
1701
1721
|
}
|
|
1702
1722
|
protoOf($readAvailableCOROUTINE$).q9 = function () {
|
|
1703
1723
|
var suspendResult = this.k9_1;
|
|
@@ -1707,11 +1727,11 @@ protoOf($readAvailableCOROUTINE$).q9 = function () {
|
|
|
1707
1727
|
switch (tmp) {
|
|
1708
1728
|
case 0:
|
|
1709
1729
|
this.j9_1 = 3;
|
|
1710
|
-
if (this.
|
|
1730
|
+
if (this.p23_1.n1z())
|
|
1711
1731
|
return -1;
|
|
1712
|
-
if (this.
|
|
1732
|
+
if (this.p23_1.k1z().iu()) {
|
|
1713
1733
|
this.i9_1 = 1;
|
|
1714
|
-
suspendResult = this.
|
|
1734
|
+
suspendResult = this.p23_1.r1z(VOID, this);
|
|
1715
1735
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1716
1736
|
return suspendResult;
|
|
1717
1737
|
}
|
|
@@ -1725,9 +1745,9 @@ protoOf($readAvailableCOROUTINE$).q9 = function () {
|
|
|
1725
1745
|
this.i9_1 = 2;
|
|
1726
1746
|
continue $sm;
|
|
1727
1747
|
case 2:
|
|
1728
|
-
if (this.
|
|
1748
|
+
if (this.p23_1.n1z())
|
|
1729
1749
|
return -1;
|
|
1730
|
-
return readAvailable_0(this.
|
|
1750
|
+
return readAvailable_0(this.p23_1.k1z(), this.q23_1, this.r23_1, this.s23_1);
|
|
1731
1751
|
case 3:
|
|
1732
1752
|
throw this.l9_1;
|
|
1733
1753
|
}
|
|
@@ -1744,8 +1764,8 @@ protoOf($readAvailableCOROUTINE$).q9 = function () {
|
|
|
1744
1764
|
};
|
|
1745
1765
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1746
1766
|
CoroutineImpl.call(this, resultContinuation);
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1767
|
+
this.b24_1 = _this__u8e3s4;
|
|
1768
|
+
this.c24_1 = byteString;
|
|
1749
1769
|
}
|
|
1750
1770
|
protoOf($skipIfFoundCOROUTINE$).q9 = function () {
|
|
1751
1771
|
var suspendResult = this.k9_1;
|
|
@@ -1756,7 +1776,7 @@ protoOf($skipIfFoundCOROUTINE$).q9 = function () {
|
|
|
1756
1776
|
case 0:
|
|
1757
1777
|
this.j9_1 = 4;
|
|
1758
1778
|
this.i9_1 = 1;
|
|
1759
|
-
suspendResult = peek(this.
|
|
1779
|
+
suspendResult = peek(this.b24_1, this.c24_1.g1(), this);
|
|
1760
1780
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1761
1781
|
return suspendResult;
|
|
1762
1782
|
}
|
|
@@ -1764,9 +1784,9 @@ protoOf($skipIfFoundCOROUTINE$).q9 = function () {
|
|
|
1764
1784
|
continue $sm;
|
|
1765
1785
|
case 1:
|
|
1766
1786
|
var ARGUMENT = suspendResult;
|
|
1767
|
-
if (equals(ARGUMENT, this.
|
|
1787
|
+
if (equals(ARGUMENT, this.c24_1)) {
|
|
1768
1788
|
this.i9_1 = 3;
|
|
1769
|
-
suspendResult = discard(this.
|
|
1789
|
+
suspendResult = discard(this.b24_1, fromInt(this.c24_1.g1()), this);
|
|
1770
1790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1771
1791
|
return suspendResult;
|
|
1772
1792
|
}
|
|
@@ -1796,8 +1816,8 @@ protoOf($skipIfFoundCOROUTINE$).q9 = function () {
|
|
|
1796
1816
|
};
|
|
1797
1817
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1798
1818
|
CoroutineImpl.call(this, resultContinuation);
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1819
|
+
this.l24_1 = _this__u8e3s4;
|
|
1820
|
+
this.m24_1 = packet;
|
|
1801
1821
|
}
|
|
1802
1822
|
protoOf($readPacketCOROUTINE$).q9 = function () {
|
|
1803
1823
|
var suspendResult = this.k9_1;
|
|
@@ -1807,18 +1827,18 @@ protoOf($readPacketCOROUTINE$).q9 = function () {
|
|
|
1807
1827
|
switch (tmp) {
|
|
1808
1828
|
case 0:
|
|
1809
1829
|
this.j9_1 = 6;
|
|
1810
|
-
this.
|
|
1830
|
+
this.n24_1 = new Buffer();
|
|
1811
1831
|
this.i9_1 = 1;
|
|
1812
1832
|
continue $sm;
|
|
1813
1833
|
case 1:
|
|
1814
|
-
if (!(compare(this.
|
|
1834
|
+
if (!(compare(this.n24_1.g1(), fromInt(this.m24_1)) < 0)) {
|
|
1815
1835
|
this.i9_1 = 5;
|
|
1816
1836
|
continue $sm;
|
|
1817
1837
|
}
|
|
1818
1838
|
|
|
1819
|
-
if (this.
|
|
1839
|
+
if (this.l24_1.k1z().iu()) {
|
|
1820
1840
|
this.i9_1 = 2;
|
|
1821
|
-
suspendResult = this.
|
|
1841
|
+
suspendResult = this.l24_1.r1z(VOID, this);
|
|
1822
1842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1823
1843
|
return suspendResult;
|
|
1824
1844
|
}
|
|
@@ -1832,7 +1852,7 @@ protoOf($readPacketCOROUTINE$).q9 = function () {
|
|
|
1832
1852
|
this.i9_1 = 3;
|
|
1833
1853
|
continue $sm;
|
|
1834
1854
|
case 3:
|
|
1835
|
-
if (this.
|
|
1855
|
+
if (this.l24_1.n1z()) {
|
|
1836
1856
|
this.i9_1 = 5;
|
|
1837
1857
|
continue $sm;
|
|
1838
1858
|
} else {
|
|
@@ -1841,20 +1861,20 @@ protoOf($readPacketCOROUTINE$).q9 = function () {
|
|
|
1841
1861
|
}
|
|
1842
1862
|
|
|
1843
1863
|
case 4:
|
|
1844
|
-
if (compare(get_remaining(this.
|
|
1845
|
-
this.
|
|
1864
|
+
if (compare(get_remaining(this.l24_1.k1z()), subtract(numberToLong(this.m24_1), this.n24_1.g1())) > 0) {
|
|
1865
|
+
this.l24_1.k1z().kv(this.n24_1, subtract(numberToLong(this.m24_1), this.n24_1.g1()));
|
|
1846
1866
|
} else {
|
|
1847
|
-
this.
|
|
1867
|
+
this.l24_1.k1z().lv(this.n24_1);
|
|
1848
1868
|
}
|
|
1849
1869
|
|
|
1850
1870
|
this.i9_1 = 1;
|
|
1851
1871
|
continue $sm;
|
|
1852
1872
|
case 5:
|
|
1853
|
-
if (compare(this.
|
|
1854
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1873
|
+
if (compare(this.n24_1.g1(), fromInt(this.m24_1)) < 0) {
|
|
1874
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.m24_1 + ' bytes but only ' + this.n24_1.g1().toString() + ' available');
|
|
1855
1875
|
}
|
|
1856
1876
|
|
|
1857
|
-
return this.
|
|
1877
|
+
return this.n24_1;
|
|
1858
1878
|
case 6:
|
|
1859
1879
|
throw this.l9_1;
|
|
1860
1880
|
}
|
|
@@ -1871,8 +1891,8 @@ protoOf($readPacketCOROUTINE$).q9 = function () {
|
|
|
1871
1891
|
};
|
|
1872
1892
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1873
1893
|
CoroutineImpl.call(this, resultContinuation);
|
|
1874
|
-
this.
|
|
1875
|
-
this.
|
|
1894
|
+
this.w24_1 = _this__u8e3s4;
|
|
1895
|
+
this.x24_1 = count;
|
|
1876
1896
|
}
|
|
1877
1897
|
protoOf($peekCOROUTINE$).q9 = function () {
|
|
1878
1898
|
var suspendResult = this.k9_1;
|
|
@@ -1882,10 +1902,10 @@ protoOf($peekCOROUTINE$).q9 = function () {
|
|
|
1882
1902
|
switch (tmp) {
|
|
1883
1903
|
case 0:
|
|
1884
1904
|
this.j9_1 = 3;
|
|
1885
|
-
if (this.
|
|
1905
|
+
if (this.w24_1.n1z())
|
|
1886
1906
|
return null;
|
|
1887
1907
|
this.i9_1 = 1;
|
|
1888
|
-
suspendResult = this.
|
|
1908
|
+
suspendResult = this.w24_1.q1z(this.x24_1, this);
|
|
1889
1909
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1910
|
return suspendResult;
|
|
1891
1911
|
}
|
|
@@ -1900,7 +1920,7 @@ protoOf($peekCOROUTINE$).q9 = function () {
|
|
|
1900
1920
|
}
|
|
1901
1921
|
|
|
1902
1922
|
case 2:
|
|
1903
|
-
return readByteString(this.
|
|
1923
|
+
return readByteString(this.w24_1.k1z().mv(), this.x24_1);
|
|
1904
1924
|
case 3:
|
|
1905
1925
|
throw this.l9_1;
|
|
1906
1926
|
}
|
|
@@ -1917,11 +1937,11 @@ protoOf($peekCOROUTINE$).q9 = function () {
|
|
|
1917
1937
|
};
|
|
1918
1938
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1919
1939
|
CoroutineImpl.call(this, resultContinuation);
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1940
|
+
this.g25_1 = _this__u8e3s4;
|
|
1941
|
+
this.h25_1 = out;
|
|
1942
|
+
this.i25_1 = limit;
|
|
1943
|
+
this.j25_1 = lenientLineEnding;
|
|
1944
|
+
this.k25_1 = throwOnIncompleteLine;
|
|
1925
1945
|
}
|
|
1926
1946
|
protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
1927
1947
|
var suspendResult = this.k9_1;
|
|
@@ -1931,10 +1951,10 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
1931
1951
|
switch (tmp) {
|
|
1932
1952
|
case 0:
|
|
1933
1953
|
this.j9_1 = 27;
|
|
1934
|
-
this.
|
|
1935
|
-
if (this.
|
|
1954
|
+
this.o25_1 = this.g25_1.k1z();
|
|
1955
|
+
if (this.o25_1.iu()) {
|
|
1936
1956
|
this.i9_1 = 1;
|
|
1937
|
-
suspendResult = this.
|
|
1957
|
+
suspendResult = this.g25_1.r1z(VOID, this);
|
|
1938
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1939
1959
|
return suspendResult;
|
|
1940
1960
|
}
|
|
@@ -1948,10 +1968,10 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
1948
1968
|
this.i9_1 = 2;
|
|
1949
1969
|
continue $sm;
|
|
1950
1970
|
case 2:
|
|
1951
|
-
if (this.
|
|
1971
|
+
if (this.g25_1.n1z())
|
|
1952
1972
|
return new Long(-1, -1);
|
|
1953
|
-
this.
|
|
1954
|
-
this.
|
|
1973
|
+
this.n25_1 = {_v: new Long(0, 0)};
|
|
1974
|
+
this.l25_1 = {_v: null};
|
|
1955
1975
|
this.i9_1 = 3;
|
|
1956
1976
|
continue $sm;
|
|
1957
1977
|
case 3:
|
|
@@ -1962,18 +1982,18 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
1962
1982
|
this.i9_1 = 5;
|
|
1963
1983
|
continue $sm;
|
|
1964
1984
|
case 5:
|
|
1965
|
-
if (!(compare(this.
|
|
1985
|
+
if (!(compare(this.n25_1._v, this.i25_1) < 0 && !this.g25_1.n1z())) {
|
|
1966
1986
|
this.i9_1 = 15;
|
|
1967
1987
|
continue $sm;
|
|
1968
1988
|
}
|
|
1969
1989
|
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1990
|
+
this.r25_1 = subtract(this.i25_1, this.n25_1._v);
|
|
1991
|
+
this.s25_1 = indexOf(this.o25_1, 10, VOID, this.r25_1);
|
|
1992
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.o25_1, this.j25_1, this.s25_1, this.r25_1);
|
|
1973
1993
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
1974
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
1975
|
-
discard_0(this.
|
|
1976
|
-
this.
|
|
1994
|
+
internalReadLineTo$appendOrBuffer(this.l25_1, this.h25_1, this.o25_1, this.n25_1, crIndex);
|
|
1995
|
+
discard_0(this.o25_1, new Long(1, 0));
|
|
1996
|
+
this.m25_1 = this.n25_1._v;
|
|
1977
1997
|
this.j9_1 = 27;
|
|
1978
1998
|
this.i9_1 = 25;
|
|
1979
1999
|
continue $sm;
|
|
@@ -1983,9 +2003,9 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
1983
2003
|
}
|
|
1984
2004
|
|
|
1985
2005
|
case 6:
|
|
1986
|
-
if (equalsLong(this.
|
|
1987
|
-
discard_0(this.
|
|
1988
|
-
this.
|
|
2006
|
+
if (equalsLong(this.s25_1, new Long(0, 0))) {
|
|
2007
|
+
discard_0(this.o25_1, new Long(1, 0));
|
|
2008
|
+
this.m25_1 = this.n25_1._v;
|
|
1989
2009
|
this.j9_1 = 27;
|
|
1990
2010
|
this.i9_1 = 25;
|
|
1991
2011
|
continue $sm;
|
|
@@ -1995,19 +2015,19 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
1995
2015
|
}
|
|
1996
2016
|
|
|
1997
2017
|
case 7:
|
|
1998
|
-
if (compare(this.
|
|
2018
|
+
if (compare(this.s25_1, new Long(0, 0)) > 0) {
|
|
1999
2019
|
var tmp_0;
|
|
2000
|
-
var tmp_1 = this.
|
|
2001
|
-
var this_0 = this.
|
|
2020
|
+
var tmp_1 = this.o25_1.hu();
|
|
2021
|
+
var this_0 = this.s25_1;
|
|
2002
2022
|
if (tmp_1.dv(subtract(this_0, fromInt(1))) === 13) {
|
|
2003
2023
|
tmp_0 = new Long(1, 0);
|
|
2004
2024
|
} else {
|
|
2005
2025
|
tmp_0 = new Long(0, 0);
|
|
2006
2026
|
}
|
|
2007
2027
|
var isCrlf = tmp_0;
|
|
2008
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2009
|
-
discard_0(this.
|
|
2010
|
-
this.
|
|
2028
|
+
internalReadLineTo$appendOrBuffer(this.l25_1, this.h25_1, this.o25_1, this.n25_1, subtract(this.s25_1, isCrlf));
|
|
2029
|
+
discard_0(this.o25_1, add(numberToLong(1), isCrlf));
|
|
2030
|
+
this.m25_1 = this.n25_1._v;
|
|
2011
2031
|
this.j9_1 = 27;
|
|
2012
2032
|
this.i9_1 = 25;
|
|
2013
2033
|
continue $sm;
|
|
@@ -2017,32 +2037,32 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2017
2037
|
}
|
|
2018
2038
|
|
|
2019
2039
|
case 8:
|
|
2020
|
-
var tmp0 = this.
|
|
2021
|
-
var b = get_remaining(this.
|
|
2040
|
+
var tmp0 = this.r25_1;
|
|
2041
|
+
var b = get_remaining(this.o25_1);
|
|
2022
2042
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2023
|
-
var tmp_2 = this.
|
|
2043
|
+
var tmp_2 = this.o25_1.hu();
|
|
2024
2044
|
if (tmp_2.dv(subtract(count, fromInt(1))) === 13) {
|
|
2025
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2045
|
+
internalReadLineTo$appendOrBuffer(this.l25_1, this.h25_1, this.o25_1, this.n25_1, subtract(count, fromInt(1)));
|
|
2026
2046
|
this.i9_1 = 9;
|
|
2027
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2047
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.o25_1, this.g25_1, this.j25_1, this);
|
|
2028
2048
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2029
2049
|
return suspendResult;
|
|
2030
2050
|
}
|
|
2031
2051
|
continue $sm;
|
|
2032
2052
|
} else {
|
|
2033
|
-
internalReadLineTo$bufferBytes(this.
|
|
2053
|
+
internalReadLineTo$bufferBytes(this.l25_1, this.o25_1, this.n25_1, count);
|
|
2034
2054
|
this.i9_1 = 11;
|
|
2035
2055
|
continue $sm;
|
|
2036
2056
|
}
|
|
2037
2057
|
|
|
2038
2058
|
case 9:
|
|
2039
2059
|
if (suspendResult) {
|
|
2040
|
-
this.
|
|
2060
|
+
this.m25_1 = this.n25_1._v;
|
|
2041
2061
|
this.j9_1 = 27;
|
|
2042
2062
|
this.i9_1 = 25;
|
|
2043
2063
|
continue $sm;
|
|
2044
2064
|
} else {
|
|
2045
|
-
internalReadLineTo$bufferBytes(this.
|
|
2065
|
+
internalReadLineTo$bufferBytes(this.l25_1, this.o25_1, this.n25_1, new Long(1, 0));
|
|
2046
2066
|
this.i9_1 = 10;
|
|
2047
2067
|
continue $sm;
|
|
2048
2068
|
}
|
|
@@ -2051,25 +2071,25 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2051
2071
|
this.i9_1 = 11;
|
|
2052
2072
|
continue $sm;
|
|
2053
2073
|
case 11:
|
|
2054
|
-
if (compare(this.
|
|
2074
|
+
if (compare(this.n25_1._v, this.i25_1) < 0 && equalsLong(get_remaining(this.o25_1), new Long(0, 0))) {
|
|
2055
2075
|
this.i9_1 = 12;
|
|
2056
|
-
suspendResult = this.
|
|
2076
|
+
suspendResult = this.g25_1.r1z(VOID, this);
|
|
2057
2077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2058
2078
|
return suspendResult;
|
|
2059
2079
|
}
|
|
2060
2080
|
continue $sm;
|
|
2061
2081
|
} else {
|
|
2062
|
-
this.
|
|
2082
|
+
this.q25_1 = false;
|
|
2063
2083
|
this.i9_1 = 13;
|
|
2064
2084
|
continue $sm;
|
|
2065
2085
|
}
|
|
2066
2086
|
|
|
2067
2087
|
case 12:
|
|
2068
|
-
this.
|
|
2088
|
+
this.q25_1 = !suspendResult;
|
|
2069
2089
|
this.i9_1 = 13;
|
|
2070
2090
|
continue $sm;
|
|
2071
2091
|
case 13:
|
|
2072
|
-
if (this.
|
|
2092
|
+
if (this.q25_1) {
|
|
2073
2093
|
this.i9_1 = 15;
|
|
2074
2094
|
continue $sm;
|
|
2075
2095
|
} else {
|
|
@@ -2081,8 +2101,8 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2081
2101
|
this.i9_1 = 5;
|
|
2082
2102
|
continue $sm;
|
|
2083
2103
|
case 15:
|
|
2084
|
-
if (equalsLong(this.
|
|
2085
|
-
this.
|
|
2104
|
+
if (equalsLong(this.n25_1._v, new Long(0, 0)) && this.g25_1.n1z()) {
|
|
2105
|
+
this.m25_1 = new Long(-1, -1);
|
|
2086
2106
|
this.j9_1 = 27;
|
|
2087
2107
|
this.i9_1 = 25;
|
|
2088
2108
|
continue $sm;
|
|
@@ -2092,23 +2112,23 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2092
2112
|
}
|
|
2093
2113
|
|
|
2094
2114
|
case 16:
|
|
2095
|
-
if (!(compare(this.
|
|
2096
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2115
|
+
if (!(compare(this.n25_1._v, this.i25_1) <= 0)) {
|
|
2116
|
+
var message = 'Consumed bytes exceed the limit: ' + this.n25_1._v.toString() + ' > ' + this.i25_1.toString() + ". It's an implementation bug, please report it.";
|
|
2097
2117
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2098
2118
|
}
|
|
2099
2119
|
|
|
2100
|
-
if (equalsLong(this.
|
|
2101
|
-
if (equalsLong(this.
|
|
2120
|
+
if (equalsLong(this.n25_1._v, this.i25_1)) {
|
|
2121
|
+
if (equalsLong(this.i25_1, new Long(-1, 2147483647)))
|
|
2102
2122
|
throw new TooLongLineException('Max line length exceeded');
|
|
2103
|
-
if (equalsLong(get_remaining(this.
|
|
2123
|
+
if (equalsLong(get_remaining(this.o25_1), new Long(0, 0))) {
|
|
2104
2124
|
this.i9_1 = 18;
|
|
2105
|
-
suspendResult = this.
|
|
2125
|
+
suspendResult = this.g25_1.r1z(VOID, this);
|
|
2106
2126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2127
|
return suspendResult;
|
|
2108
2128
|
}
|
|
2109
2129
|
continue $sm;
|
|
2110
2130
|
} else {
|
|
2111
|
-
this.
|
|
2131
|
+
this.p25_1 = false;
|
|
2112
2132
|
this.i9_1 = 19;
|
|
2113
2133
|
continue $sm;
|
|
2114
2134
|
}
|
|
@@ -2118,22 +2138,22 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2118
2138
|
}
|
|
2119
2139
|
|
|
2120
2140
|
case 17:
|
|
2121
|
-
if (this.
|
|
2122
|
-
throwEndOfStreamException(this.
|
|
2141
|
+
if (this.k25_1) {
|
|
2142
|
+
throwEndOfStreamException(this.n25_1._v);
|
|
2123
2143
|
}
|
|
2124
2144
|
|
|
2125
|
-
this.
|
|
2145
|
+
this.m25_1 = this.n25_1._v;
|
|
2126
2146
|
this.j9_1 = 27;
|
|
2127
2147
|
this.i9_1 = 25;
|
|
2128
2148
|
var tmp_3 = this;
|
|
2129
2149
|
continue $sm;
|
|
2130
2150
|
case 18:
|
|
2131
|
-
this.
|
|
2151
|
+
this.p25_1 = !suspendResult;
|
|
2132
2152
|
this.i9_1 = 19;
|
|
2133
2153
|
continue $sm;
|
|
2134
2154
|
case 19:
|
|
2135
|
-
if (this.
|
|
2136
|
-
throwEndOfStreamException(this.
|
|
2155
|
+
if (this.p25_1) {
|
|
2156
|
+
throwEndOfStreamException(this.n25_1._v);
|
|
2137
2157
|
} else {
|
|
2138
2158
|
this.i9_1 = 20;
|
|
2139
2159
|
continue $sm;
|
|
@@ -2141,17 +2161,17 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2141
2161
|
|
|
2142
2162
|
break;
|
|
2143
2163
|
case 20:
|
|
2144
|
-
var tmp0_subject = this.
|
|
2164
|
+
var tmp0_subject = this.o25_1.hu().dv(new Long(0, 0));
|
|
2145
2165
|
if (tmp0_subject === 10) {
|
|
2146
|
-
discard_0(this.
|
|
2147
|
-
this.
|
|
2166
|
+
discard_0(this.o25_1, new Long(1, 0));
|
|
2167
|
+
this.m25_1 = this.n25_1._v;
|
|
2148
2168
|
this.j9_1 = 27;
|
|
2149
2169
|
this.i9_1 = 25;
|
|
2150
2170
|
continue $sm;
|
|
2151
2171
|
} else {
|
|
2152
2172
|
if (tmp0_subject === 13) {
|
|
2153
2173
|
this.i9_1 = 21;
|
|
2154
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2174
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.o25_1, this.g25_1, this.j25_1, this);
|
|
2155
2175
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2156
2176
|
return suspendResult;
|
|
2157
2177
|
}
|
|
@@ -2164,7 +2184,7 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2164
2184
|
|
|
2165
2185
|
case 21:
|
|
2166
2186
|
if (suspendResult) {
|
|
2167
|
-
this.
|
|
2187
|
+
this.m25_1 = this.n25_1._v;
|
|
2168
2188
|
this.j9_1 = 27;
|
|
2169
2189
|
this.i9_1 = 25;
|
|
2170
2190
|
continue $sm;
|
|
@@ -2177,28 +2197,28 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2177
2197
|
this.i9_1 = 23;
|
|
2178
2198
|
continue $sm;
|
|
2179
2199
|
case 23:
|
|
2180
|
-
throwTooLongLineException(this.
|
|
2200
|
+
throwTooLongLineException(this.i25_1);
|
|
2181
2201
|
break;
|
|
2182
2202
|
case 24:
|
|
2183
2203
|
this.j9_1 = 27;
|
|
2184
2204
|
var t = this.l9_1;
|
|
2185
|
-
if (!(this.
|
|
2186
|
-
this.
|
|
2205
|
+
if (!(this.l25_1._v == null)) {
|
|
2206
|
+
this.h25_1.f1(readString_0(this.l25_1._v));
|
|
2187
2207
|
}
|
|
2188
2208
|
|
|
2189
2209
|
throw t;
|
|
2190
2210
|
case 25:
|
|
2191
|
-
var tmp_4 = this.
|
|
2211
|
+
var tmp_4 = this.m25_1;
|
|
2192
2212
|
this.j9_1 = 27;
|
|
2193
|
-
if (!(this.
|
|
2194
|
-
this.
|
|
2213
|
+
if (!(this.l25_1._v == null)) {
|
|
2214
|
+
this.h25_1.f1(readString_0(this.l25_1._v));
|
|
2195
2215
|
}
|
|
2196
2216
|
|
|
2197
2217
|
return tmp_4;
|
|
2198
2218
|
case 26:
|
|
2199
2219
|
this.j9_1 = 27;
|
|
2200
|
-
if (!(this.
|
|
2201
|
-
this.
|
|
2220
|
+
if (!(this.l25_1._v == null)) {
|
|
2221
|
+
this.h25_1.f1(readString_0(this.l25_1._v));
|
|
2202
2222
|
}
|
|
2203
2223
|
|
|
2204
2224
|
return Unit_instance;
|
|
@@ -2218,9 +2238,9 @@ protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
|
2218
2238
|
};
|
|
2219
2239
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2220
2240
|
CoroutineImpl.call(this, resultContinuation);
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2241
|
+
this.b26_1 = _this__u8e3s4;
|
|
2242
|
+
this.c26_1 = $this_internalReadLineTo;
|
|
2243
|
+
this.d26_1 = $lenientLineEnding;
|
|
2224
2244
|
}
|
|
2225
2245
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).q9 = function () {
|
|
2226
2246
|
var suspendResult = this.k9_1;
|
|
@@ -2230,13 +2250,13 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).q9 = function () {
|
|
|
2230
2250
|
switch (tmp) {
|
|
2231
2251
|
case 0:
|
|
2232
2252
|
this.j9_1 = 5;
|
|
2233
|
-
if (compare(get_remaining(this.
|
|
2234
|
-
this.
|
|
2253
|
+
if (compare(get_remaining(this.b26_1), new Long(2, 0)) >= 0) {
|
|
2254
|
+
this.f26_1 = true;
|
|
2235
2255
|
this.i9_1 = 2;
|
|
2236
2256
|
continue $sm;
|
|
2237
2257
|
} else {
|
|
2238
2258
|
this.i9_1 = 1;
|
|
2239
|
-
suspendResult = this.
|
|
2259
|
+
suspendResult = this.c26_1.q1z(2, this);
|
|
2240
2260
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2241
2261
|
return suspendResult;
|
|
2242
2262
|
}
|
|
@@ -2244,23 +2264,23 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).q9 = function () {
|
|
|
2244
2264
|
}
|
|
2245
2265
|
|
|
2246
2266
|
case 1:
|
|
2247
|
-
this.
|
|
2267
|
+
this.f26_1 = suspendResult;
|
|
2248
2268
|
this.i9_1 = 2;
|
|
2249
2269
|
continue $sm;
|
|
2250
2270
|
case 2:
|
|
2251
|
-
if (this.
|
|
2252
|
-
this.
|
|
2271
|
+
if (this.f26_1) {
|
|
2272
|
+
this.e26_1 = this.b26_1.hu().dv(new Long(1, 0)) === 10;
|
|
2253
2273
|
this.i9_1 = 3;
|
|
2254
2274
|
continue $sm;
|
|
2255
2275
|
} else {
|
|
2256
|
-
this.
|
|
2276
|
+
this.e26_1 = false;
|
|
2257
2277
|
this.i9_1 = 3;
|
|
2258
2278
|
continue $sm;
|
|
2259
2279
|
}
|
|
2260
2280
|
|
|
2261
2281
|
case 3:
|
|
2262
|
-
if (this.
|
|
2263
|
-
discard_0(this.
|
|
2282
|
+
if (this.e26_1) {
|
|
2283
|
+
discard_0(this.b26_1, new Long(2, 0));
|
|
2264
2284
|
return true;
|
|
2265
2285
|
} else {
|
|
2266
2286
|
this.i9_1 = 4;
|
|
@@ -2268,8 +2288,8 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).q9 = function () {
|
|
|
2268
2288
|
}
|
|
2269
2289
|
|
|
2270
2290
|
case 4:
|
|
2271
|
-
if (this.
|
|
2272
|
-
discard_0(this.
|
|
2291
|
+
if (this.d26_1) {
|
|
2292
|
+
discard_0(this.b26_1, new Long(1, 0));
|
|
2273
2293
|
return true;
|
|
2274
2294
|
}
|
|
2275
2295
|
|
|
@@ -2298,7 +2318,7 @@ function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
|
2298
2318
|
}
|
|
2299
2319
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2300
2320
|
CoroutineImpl.call(this, resultContinuation);
|
|
2301
|
-
this.
|
|
2321
|
+
this.o26_1 = _this__u8e3s4;
|
|
2302
2322
|
}
|
|
2303
2323
|
protoOf($flushIfNeededCOROUTINE$).q9 = function () {
|
|
2304
2324
|
var suspendResult = this.k9_1;
|
|
@@ -2308,10 +2328,10 @@ protoOf($flushIfNeededCOROUTINE$).q9 = function () {
|
|
|
2308
2328
|
switch (tmp) {
|
|
2309
2329
|
case 0:
|
|
2310
2330
|
this.j9_1 = 3;
|
|
2311
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2312
|
-
if (this.
|
|
2331
|
+
rethrowCloseCauseIfNeeded_1(this.o26_1);
|
|
2332
|
+
if (this.o26_1.j1z() || get_size(this.o26_1.l1z()) >= 1048576) {
|
|
2313
2333
|
this.i9_1 = 1;
|
|
2314
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.o26_1.i1z(this);
|
|
2315
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2316
2336
|
return suspendResult;
|
|
2317
2337
|
}
|
|
@@ -2343,7 +2363,7 @@ protoOf($flushIfNeededCOROUTINE$).q9 = function () {
|
|
|
2343
2363
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2344
2364
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2345
2365
|
return constructCallableReference(function ($completion) {
|
|
2346
|
-
return i.
|
|
2366
|
+
return i.t26($completion);
|
|
2347
2367
|
}, 0, 1, 9, 'flushAndClose', [p0]);
|
|
2348
2368
|
}
|
|
2349
2369
|
function get_NO_CALLBACK() {
|
|
@@ -2352,29 +2372,38 @@ function get_NO_CALLBACK() {
|
|
|
2352
2372
|
}
|
|
2353
2373
|
var NO_CALLBACK;
|
|
2354
2374
|
function WriterJob(channel, job) {
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2375
|
+
this.l21_1 = channel;
|
|
2376
|
+
this.m21_1 = job;
|
|
2357
2377
|
}
|
|
2358
2378
|
protoOf(WriterJob).g11 = function () {
|
|
2359
|
-
return this.
|
|
2379
|
+
return this.m21_1;
|
|
2360
2380
|
};
|
|
2361
|
-
function writer(_this__u8e3s4, coroutineContext,
|
|
2381
|
+
function writer(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2362
2382
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
2363
|
-
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
2364
2383
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2365
|
-
|
|
2384
|
+
// Inline function 'kotlin.apply' call
|
|
2385
|
+
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2386
|
+
this_0.wy(writer$lambda(channel));
|
|
2387
|
+
var job = this_0;
|
|
2388
|
+
return new WriterJob(channel, job);
|
|
2366
2389
|
}
|
|
2367
2390
|
function WriterScope(channel, coroutineContext) {
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2391
|
+
this.u26_1 = channel;
|
|
2392
|
+
this.v26_1 = coroutineContext;
|
|
2370
2393
|
}
|
|
2371
2394
|
protoOf(WriterScope).tx = function () {
|
|
2372
|
-
return this.
|
|
2395
|
+
return this.v26_1;
|
|
2373
2396
|
};
|
|
2374
2397
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2375
2398
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2376
2399
|
return _this__u8e3s4.g11().wy(block);
|
|
2377
2400
|
}
|
|
2401
|
+
function writer_0(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2402
|
+
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
2403
|
+
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
2404
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2405
|
+
return writer(_this__u8e3s4, coroutineContext, new ByteChannel(autoFlush), block);
|
|
2406
|
+
}
|
|
2378
2407
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2379
2408
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2380
2409
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
@@ -2386,18 +2415,9 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2386
2415
|
if (cause == null) {
|
|
2387
2416
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2388
2417
|
} else {
|
|
2389
|
-
_this__u8e3s4.
|
|
2418
|
+
_this__u8e3s4.t1z(cause);
|
|
2390
2419
|
}
|
|
2391
2420
|
}
|
|
2392
|
-
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2393
|
-
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
2394
|
-
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2395
|
-
// Inline function 'kotlin.apply' call
|
|
2396
|
-
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2397
|
-
this_0.wy(writer$lambda(channel));
|
|
2398
|
-
var job = this_0;
|
|
2399
|
-
return new WriterJob(channel, job);
|
|
2400
|
-
}
|
|
2401
2421
|
function fireAndForget(_this__u8e3s4) {
|
|
2402
2422
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2403
2423
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
@@ -2407,10 +2427,10 @@ function writeByte(_this__u8e3s4, value, $completion) {
|
|
|
2407
2427
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2408
2428
|
}
|
|
2409
2429
|
function NO_CALLBACK$1() {
|
|
2410
|
-
this.
|
|
2430
|
+
this.w26_1 = EmptyCoroutineContext_getInstance();
|
|
2411
2431
|
}
|
|
2412
2432
|
protoOf(NO_CALLBACK$1).o9 = function () {
|
|
2413
|
-
return this.
|
|
2433
|
+
return this.w26_1;
|
|
2414
2434
|
};
|
|
2415
2435
|
protoOf(NO_CALLBACK$1).p9 = function (result) {
|
|
2416
2436
|
return Unit_instance;
|
|
@@ -2418,19 +2438,9 @@ protoOf(NO_CALLBACK$1).p9 = function (result) {
|
|
|
2418
2438
|
protoOf(NO_CALLBACK$1).t9 = function (result) {
|
|
2419
2439
|
return this.p9(result);
|
|
2420
2440
|
};
|
|
2421
|
-
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2422
|
-
KFunctionImpl.call(this, 1, 1, 9);
|
|
2423
|
-
this.q26_1 = p0;
|
|
2424
|
-
}
|
|
2425
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).r26 = function ($completion) {
|
|
2426
|
-
return this.q26_1.q1z($completion);
|
|
2427
|
-
};
|
|
2428
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).ca = function ($completion) {
|
|
2429
|
-
return this.r26($completion);
|
|
2430
|
-
};
|
|
2431
2441
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2432
|
-
this.
|
|
2433
|
-
this.
|
|
2442
|
+
this.f27_1 = $block;
|
|
2443
|
+
this.g27_1 = $channel;
|
|
2434
2444
|
CoroutineImpl.call(this, resultContinuation);
|
|
2435
2445
|
}
|
|
2436
2446
|
protoOf(writer$slambda).w1o = function ($this$launch, $completion) {
|
|
@@ -2450,24 +2460,24 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2450
2460
|
switch (tmp) {
|
|
2451
2461
|
case 0:
|
|
2452
2462
|
this.j9_1 = 14;
|
|
2453
|
-
this.
|
|
2463
|
+
this.k27_1 = Job(get_job(this.h27_1.tx()));
|
|
2454
2464
|
this.i9_1 = 1;
|
|
2455
2465
|
continue $sm;
|
|
2456
2466
|
case 1:
|
|
2457
2467
|
this.j9_1 = 4;
|
|
2458
2468
|
this.j9_1 = 3;
|
|
2459
2469
|
this.i9_1 = 2;
|
|
2460
|
-
suspendResult = this.
|
|
2470
|
+
suspendResult = this.f27_1(new WriterScope(this.g27_1, this.h27_1.tx().sk(this.k27_1)), this);
|
|
2461
2471
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2462
2472
|
return suspendResult;
|
|
2463
2473
|
}
|
|
2464
2474
|
|
|
2465
2475
|
continue $sm;
|
|
2466
2476
|
case 2:
|
|
2467
|
-
this.
|
|
2477
|
+
this.k27_1.e16();
|
|
2468
2478
|
var tmp_0;
|
|
2469
|
-
if (get_job(this.
|
|
2470
|
-
this.
|
|
2479
|
+
if (get_job(this.h27_1.tx()).qy()) {
|
|
2480
|
+
this.g27_1.t1z(get_job(this.h27_1.tx()).ty());
|
|
2471
2481
|
tmp_0 = Unit_instance;
|
|
2472
2482
|
}
|
|
2473
2483
|
|
|
@@ -2479,8 +2489,8 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2479
2489
|
var tmp_1 = this.l9_1;
|
|
2480
2490
|
if (tmp_1 instanceof Error) {
|
|
2481
2491
|
var cause = this.l9_1;
|
|
2482
|
-
cancel(this.
|
|
2483
|
-
this.
|
|
2492
|
+
cancel(this.k27_1, 'Exception thrown while writing to channel', cause);
|
|
2493
|
+
this.g27_1.t1z(cause);
|
|
2484
2494
|
this.j9_1 = 14;
|
|
2485
2495
|
this.i9_1 = 9;
|
|
2486
2496
|
continue $sm;
|
|
@@ -2490,20 +2500,20 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2490
2500
|
|
|
2491
2501
|
case 4:
|
|
2492
2502
|
this.j9_1 = 14;
|
|
2493
|
-
this.
|
|
2503
|
+
this.l27_1 = this.l9_1;
|
|
2494
2504
|
this.i9_1 = 5;
|
|
2495
|
-
suspendResult = this.
|
|
2505
|
+
suspendResult = this.k27_1.az(this);
|
|
2496
2506
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2497
2507
|
return suspendResult;
|
|
2498
2508
|
}
|
|
2499
2509
|
|
|
2500
2510
|
continue $sm;
|
|
2501
2511
|
case 5:
|
|
2502
|
-
this.
|
|
2512
|
+
this.h27_1;
|
|
2503
2513
|
this.j9_1 = 7;
|
|
2504
|
-
this.
|
|
2514
|
+
this.n27_1 = Companion_instance;
|
|
2505
2515
|
this.i9_1 = 6;
|
|
2506
|
-
suspendResult = this.
|
|
2516
|
+
suspendResult = this.g27_1.s1z(this);
|
|
2507
2517
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2508
2518
|
return suspendResult;
|
|
2509
2519
|
}
|
|
@@ -2511,8 +2521,8 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2511
2521
|
continue $sm;
|
|
2512
2522
|
case 6:
|
|
2513
2523
|
var tmp_2 = this;
|
|
2514
|
-
this.
|
|
2515
|
-
tmp_2.
|
|
2524
|
+
this.n27_1;
|
|
2525
|
+
tmp_2.m27_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2516
2526
|
this.j9_1 = 14;
|
|
2517
2527
|
this.i9_1 = 8;
|
|
2518
2528
|
continue $sm;
|
|
@@ -2522,7 +2532,7 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2522
2532
|
if (tmp_3 instanceof Error) {
|
|
2523
2533
|
var e = this.l9_1;
|
|
2524
2534
|
var tmp_4 = this;
|
|
2525
|
-
tmp_4.
|
|
2535
|
+
tmp_4.m27_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2526
2536
|
this.i9_1 = 8;
|
|
2527
2537
|
continue $sm;
|
|
2528
2538
|
} else {
|
|
@@ -2531,22 +2541,22 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2531
2541
|
|
|
2532
2542
|
case 8:
|
|
2533
2543
|
this.j9_1 = 14;
|
|
2534
|
-
throw this.
|
|
2544
|
+
throw this.l27_1;
|
|
2535
2545
|
case 9:
|
|
2536
2546
|
this.j9_1 = 14;
|
|
2537
2547
|
this.i9_1 = 10;
|
|
2538
|
-
suspendResult = this.
|
|
2548
|
+
suspendResult = this.k27_1.az(this);
|
|
2539
2549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2540
2550
|
return suspendResult;
|
|
2541
2551
|
}
|
|
2542
2552
|
|
|
2543
2553
|
continue $sm;
|
|
2544
2554
|
case 10:
|
|
2545
|
-
this.
|
|
2555
|
+
this.h27_1;
|
|
2546
2556
|
this.j9_1 = 12;
|
|
2547
|
-
this.
|
|
2557
|
+
this.j27_1 = Companion_instance;
|
|
2548
2558
|
this.i9_1 = 11;
|
|
2549
|
-
suspendResult = this.
|
|
2559
|
+
suspendResult = this.g27_1.s1z(this);
|
|
2550
2560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2551
2561
|
return suspendResult;
|
|
2552
2562
|
}
|
|
@@ -2554,8 +2564,8 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2554
2564
|
continue $sm;
|
|
2555
2565
|
case 11:
|
|
2556
2566
|
var tmp_5 = this;
|
|
2557
|
-
this.
|
|
2558
|
-
tmp_5.
|
|
2567
|
+
this.j27_1;
|
|
2568
|
+
tmp_5.i27_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2559
2569
|
this.j9_1 = 14;
|
|
2560
2570
|
this.i9_1 = 13;
|
|
2561
2571
|
continue $sm;
|
|
@@ -2565,7 +2575,7 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2565
2575
|
if (tmp_6 instanceof Error) {
|
|
2566
2576
|
var e_0 = this.l9_1;
|
|
2567
2577
|
var tmp_7 = this;
|
|
2568
|
-
tmp_7.
|
|
2578
|
+
tmp_7.i27_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2569
2579
|
this.i9_1 = 13;
|
|
2570
2580
|
continue $sm;
|
|
2571
2581
|
} else {
|
|
@@ -2590,8 +2600,8 @@ protoOf(writer$slambda).q9 = function () {
|
|
|
2590
2600
|
while (true);
|
|
2591
2601
|
};
|
|
2592
2602
|
protoOf(writer$slambda).x1o = function ($this$launch, completion) {
|
|
2593
|
-
var i = new writer$slambda(this.
|
|
2594
|
-
i.
|
|
2603
|
+
var i = new writer$slambda(this.f27_1, this.g27_1, completion);
|
|
2604
|
+
i.h27_1 = $this$launch;
|
|
2595
2605
|
return i;
|
|
2596
2606
|
};
|
|
2597
2607
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
@@ -2604,12 +2614,22 @@ function writer$lambda($channel) {
|
|
|
2604
2614
|
return function (it) {
|
|
2605
2615
|
var tmp;
|
|
2606
2616
|
if (!(it == null) && !$channel.m1z()) {
|
|
2607
|
-
$channel.
|
|
2617
|
+
$channel.t1z(it);
|
|
2608
2618
|
tmp = Unit_instance;
|
|
2609
2619
|
}
|
|
2610
2620
|
return Unit_instance;
|
|
2611
2621
|
};
|
|
2612
2622
|
}
|
|
2623
|
+
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2624
|
+
KFunctionImpl.call(this, 1, 1, 9);
|
|
2625
|
+
this.s26_1 = p0;
|
|
2626
|
+
}
|
|
2627
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).t26 = function ($completion) {
|
|
2628
|
+
return this.s26_1.s1z($completion);
|
|
2629
|
+
};
|
|
2630
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).ca = function ($completion) {
|
|
2631
|
+
return this.t26($completion);
|
|
2632
|
+
};
|
|
2613
2633
|
var properties_initialized_ByteWriteChannelOperations_kt_acrf6u;
|
|
2614
2634
|
function _init_properties_ByteWriteChannelOperations_kt__i7slrs() {
|
|
2615
2635
|
if (!properties_initialized_ByteWriteChannelOperations_kt_acrf6u) {
|
|
@@ -2629,11 +2649,14 @@ function Companion_getInstance_1() {
|
|
|
2629
2649
|
return Companion_instance_2;
|
|
2630
2650
|
}
|
|
2631
2651
|
function access$_get_origin__hdh1qz($this) {
|
|
2632
|
-
return $this.
|
|
2652
|
+
return $this.o1z_1;
|
|
2633
2653
|
}
|
|
2634
2654
|
function CloseToken(origin) {
|
|
2635
|
-
this.
|
|
2655
|
+
this.o1z_1 = origin;
|
|
2636
2656
|
}
|
|
2657
|
+
protoOf(CloseToken).p1z = function () {
|
|
2658
|
+
return !(this.o1z_1 == null);
|
|
2659
|
+
};
|
|
2637
2660
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2638
2661
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
2639
2662
|
if (!properties_initialized_CloseToken_kt_lgg8zn) {
|
|
@@ -2643,17 +2666,17 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2643
2666
|
}
|
|
2644
2667
|
function transferFromDelegate($this) {
|
|
2645
2668
|
updateConsumed($this);
|
|
2646
|
-
var appended = $this.
|
|
2647
|
-
$this.
|
|
2669
|
+
var appended = $this.p27_1.aw($this.o27_1.k1z());
|
|
2670
|
+
$this.q27_1 = add($this.q27_1, appended);
|
|
2648
2671
|
}
|
|
2649
2672
|
function updateConsumed($this) {
|
|
2650
|
-
$this.
|
|
2651
|
-
$this.
|
|
2673
|
+
$this.r27_1 = add($this.r27_1, subtract($this.q27_1, $this.p27_1.g1()));
|
|
2674
|
+
$this.q27_1 = $this.p27_1.g1();
|
|
2652
2675
|
}
|
|
2653
2676
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2654
2677
|
CoroutineImpl.call(this, resultContinuation);
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2678
|
+
this.a28_1 = _this__u8e3s4;
|
|
2679
|
+
this.b28_1 = min;
|
|
2657
2680
|
}
|
|
2658
2681
|
protoOf($awaitContentCOROUTINE$_0).q9 = function () {
|
|
2659
2682
|
var suspendResult = this.k9_1;
|
|
@@ -2663,12 +2686,12 @@ protoOf($awaitContentCOROUTINE$_0).q9 = function () {
|
|
|
2663
2686
|
switch (tmp) {
|
|
2664
2687
|
case 0:
|
|
2665
2688
|
this.j9_1 = 3;
|
|
2666
|
-
if (compare(this.
|
|
2689
|
+
if (compare(this.a28_1.k1z().g1(), fromInt(this.b28_1)) >= 0) {
|
|
2667
2690
|
return true;
|
|
2668
2691
|
}
|
|
2669
2692
|
|
|
2670
2693
|
this.i9_1 = 1;
|
|
2671
|
-
suspendResult = this.
|
|
2694
|
+
suspendResult = this.a28_1.o27_1.q1z(this.b28_1, this);
|
|
2672
2695
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2673
2696
|
return suspendResult;
|
|
2674
2697
|
}
|
|
@@ -2676,7 +2699,7 @@ protoOf($awaitContentCOROUTINE$_0).q9 = function () {
|
|
|
2676
2699
|
continue $sm;
|
|
2677
2700
|
case 1:
|
|
2678
2701
|
if (suspendResult) {
|
|
2679
|
-
transferFromDelegate(this.
|
|
2702
|
+
transferFromDelegate(this.a28_1);
|
|
2680
2703
|
return true;
|
|
2681
2704
|
} else {
|
|
2682
2705
|
this.i9_1 = 2;
|
|
@@ -2700,34 +2723,34 @@ protoOf($awaitContentCOROUTINE$_0).q9 = function () {
|
|
|
2700
2723
|
while (true);
|
|
2701
2724
|
};
|
|
2702
2725
|
function CountedByteReadChannel(delegate) {
|
|
2703
|
-
this.
|
|
2704
|
-
this.
|
|
2705
|
-
this.p27_1 = new Long(0, 0);
|
|
2726
|
+
this.o27_1 = delegate;
|
|
2727
|
+
this.p27_1 = new Buffer();
|
|
2706
2728
|
this.q27_1 = new Long(0, 0);
|
|
2729
|
+
this.r27_1 = new Long(0, 0);
|
|
2707
2730
|
}
|
|
2708
|
-
protoOf(CountedByteReadChannel).
|
|
2731
|
+
protoOf(CountedByteReadChannel).c28 = function () {
|
|
2709
2732
|
updateConsumed(this);
|
|
2710
|
-
return this.
|
|
2733
|
+
return this.r27_1;
|
|
2711
2734
|
};
|
|
2712
2735
|
protoOf(CountedByteReadChannel).y1x = function () {
|
|
2713
|
-
return this.
|
|
2736
|
+
return this.o27_1.y1x();
|
|
2714
2737
|
};
|
|
2715
2738
|
protoOf(CountedByteReadChannel).n1z = function () {
|
|
2716
|
-
return this.
|
|
2739
|
+
return this.p27_1.iu() && this.o27_1.n1z();
|
|
2717
2740
|
};
|
|
2718
2741
|
protoOf(CountedByteReadChannel).k1z = function () {
|
|
2719
2742
|
transferFromDelegate(this);
|
|
2720
|
-
return this.
|
|
2743
|
+
return this.p27_1;
|
|
2721
2744
|
};
|
|
2722
|
-
protoOf(CountedByteReadChannel).
|
|
2745
|
+
protoOf(CountedByteReadChannel).q1z = function (min, $completion) {
|
|
2723
2746
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2724
2747
|
tmp.k9_1 = Unit_instance;
|
|
2725
2748
|
tmp.l9_1 = null;
|
|
2726
2749
|
return tmp.q9();
|
|
2727
2750
|
};
|
|
2728
|
-
protoOf(CountedByteReadChannel).
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2751
|
+
protoOf(CountedByteReadChannel).t1z = function (cause) {
|
|
2752
|
+
this.o27_1.t1z(cause);
|
|
2753
|
+
this.p27_1.j4();
|
|
2731
2754
|
};
|
|
2732
2755
|
function counted(_this__u8e3s4) {
|
|
2733
2756
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2785,21 +2808,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2785
2808
|
}
|
|
2786
2809
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2787
2810
|
var tmp;
|
|
2788
|
-
if ($this === Companion_getInstance_2().
|
|
2811
|
+
if ($this === Companion_getInstance_2().d28_1) {
|
|
2789
2812
|
tmp = 'CR';
|
|
2790
|
-
} else if ($this === Companion_getInstance_2().d28_1) {
|
|
2791
|
-
tmp = 'LF';
|
|
2792
2813
|
} else if ($this === Companion_getInstance_2().e28_1) {
|
|
2814
|
+
tmp = 'LF';
|
|
2815
|
+
} else if ($this === Companion_getInstance_2().f28_1) {
|
|
2793
2816
|
tmp = 'CRLF';
|
|
2794
2817
|
} else {
|
|
2795
2818
|
// Inline function 'kotlin.collections.filter' call
|
|
2796
|
-
var tmp0 = Companion_getInstance_2().
|
|
2819
|
+
var tmp0 = Companion_getInstance_2().h28_1;
|
|
2797
2820
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2798
2821
|
var destination = ArrayList_init_$Create$();
|
|
2799
2822
|
var _iterator__ex2g4s = tmp0.t();
|
|
2800
2823
|
while (_iterator__ex2g4s.u()) {
|
|
2801
2824
|
var element = _iterator__ex2g4s.v();
|
|
2802
|
-
var it = element.
|
|
2825
|
+
var it = element.i28_1;
|
|
2803
2826
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2804
2827
|
destination.e1(element);
|
|
2805
2828
|
}
|
|
@@ -2810,11 +2833,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2810
2833
|
}
|
|
2811
2834
|
function Companion_2() {
|
|
2812
2835
|
Companion_instance_3 = this;
|
|
2813
|
-
this.
|
|
2814
|
-
this.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2836
|
+
this.d28_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2837
|
+
this.e28_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2838
|
+
this.f28_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2839
|
+
this.g28_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2840
|
+
this.h28_1 = listOf([new LineEndingMode(this.d28_1), new LineEndingMode(this.e28_1), new LineEndingMode(this.f28_1)]);
|
|
2818
2841
|
}
|
|
2819
2842
|
var Companion_instance_3;
|
|
2820
2843
|
function Companion_getInstance_2() {
|
|
@@ -2828,29 +2851,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2828
2851
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2829
2852
|
if (!(other instanceof LineEndingMode))
|
|
2830
2853
|
return false;
|
|
2831
|
-
if (!($this === other.
|
|
2854
|
+
if (!($this === other.i28_1))
|
|
2832
2855
|
return false;
|
|
2833
2856
|
return true;
|
|
2834
2857
|
}
|
|
2835
2858
|
function LineEndingMode(mode) {
|
|
2836
2859
|
Companion_getInstance_2();
|
|
2837
|
-
this.
|
|
2860
|
+
this.i28_1 = mode;
|
|
2838
2861
|
}
|
|
2839
2862
|
protoOf(LineEndingMode).toString = function () {
|
|
2840
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2863
|
+
return LineEndingMode__toString_impl_j4h76r(this.i28_1);
|
|
2841
2864
|
};
|
|
2842
2865
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2843
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2866
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.i28_1);
|
|
2844
2867
|
};
|
|
2845
2868
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2846
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2869
|
+
return LineEndingMode__equals_impl_qyr4nk(this.i28_1, other);
|
|
2847
2870
|
};
|
|
2848
2871
|
function SourceByteReadChannel(source) {
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2872
|
+
this.j28_1 = source;
|
|
2873
|
+
this.k28_1 = null;
|
|
2851
2874
|
}
|
|
2852
2875
|
protoOf(SourceByteReadChannel).y1x = function () {
|
|
2853
|
-
var tmp0_safe_receiver = this.
|
|
2876
|
+
var tmp0_safe_receiver = this.k28_1;
|
|
2854
2877
|
var tmp;
|
|
2855
2878
|
if (tmp0_safe_receiver == null) {
|
|
2856
2879
|
tmp = null;
|
|
@@ -2877,7 +2900,7 @@ protoOf(SourceByteReadChannel).y1x = function () {
|
|
|
2877
2900
|
return tmp;
|
|
2878
2901
|
};
|
|
2879
2902
|
protoOf(SourceByteReadChannel).n1z = function () {
|
|
2880
|
-
return this.
|
|
2903
|
+
return this.j28_1.iu();
|
|
2881
2904
|
};
|
|
2882
2905
|
protoOf(SourceByteReadChannel).k1z = function () {
|
|
2883
2906
|
var tmp0_safe_receiver = this.y1x();
|
|
@@ -2887,9 +2910,9 @@ protoOf(SourceByteReadChannel).k1z = function () {
|
|
|
2887
2910
|
// Inline function 'kotlin.let' call
|
|
2888
2911
|
throw tmp0_safe_receiver;
|
|
2889
2912
|
}
|
|
2890
|
-
return this.
|
|
2913
|
+
return this.j28_1.hu();
|
|
2891
2914
|
};
|
|
2892
|
-
protoOf(SourceByteReadChannel).
|
|
2915
|
+
protoOf(SourceByteReadChannel).q1z = function (min, $completion) {
|
|
2893
2916
|
var tmp0_safe_receiver = this.y1x();
|
|
2894
2917
|
if (tmp0_safe_receiver == null)
|
|
2895
2918
|
null;
|
|
@@ -2897,15 +2920,15 @@ protoOf(SourceByteReadChannel).o1z = function (min, $completion) {
|
|
|
2897
2920
|
// Inline function 'kotlin.let' call
|
|
2898
2921
|
throw tmp0_safe_receiver;
|
|
2899
2922
|
}
|
|
2900
|
-
return this.
|
|
2923
|
+
return this.j28_1.ku(fromInt(min));
|
|
2901
2924
|
};
|
|
2902
|
-
protoOf(SourceByteReadChannel).
|
|
2903
|
-
if (!(this.
|
|
2925
|
+
protoOf(SourceByteReadChannel).t1z = function (cause) {
|
|
2926
|
+
if (!(this.k28_1 == null))
|
|
2904
2927
|
return Unit_instance;
|
|
2905
|
-
this.
|
|
2928
|
+
this.j28_1.j4();
|
|
2906
2929
|
var tmp = this;
|
|
2907
2930
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2908
|
-
tmp.
|
|
2931
|
+
tmp.k28_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2909
2932
|
};
|
|
2910
2933
|
function decode(_this__u8e3s4, input, max) {
|
|
2911
2934
|
max = max === VOID ? 2147483647 : max;
|
|
@@ -3002,19 +3025,19 @@ function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
|
3002
3025
|
return result === -1 ? 0 : result;
|
|
3003
3026
|
}
|
|
3004
3027
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3005
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3006
|
-
if (charset.equals(Charsets_getInstance().
|
|
3028
|
+
charset = charset === VOID ? Charsets_getInstance().l28_1 : charset;
|
|
3029
|
+
if (charset.equals(Charsets_getInstance().l28_1))
|
|
3007
3030
|
return encodeToByteArray(_this__u8e3s4);
|
|
3008
|
-
return encodeToByteArray_0(charset.
|
|
3031
|
+
return encodeToByteArray_0(charset.o28(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3009
3032
|
}
|
|
3010
3033
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3011
3034
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3012
3035
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3013
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3014
|
-
if (charset === Charsets_getInstance().
|
|
3036
|
+
charset = charset === VOID ? Charsets_getInstance().l28_1 : charset;
|
|
3037
|
+
if (charset === Charsets_getInstance().l28_1) {
|
|
3015
3038
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3016
3039
|
}
|
|
3017
|
-
encodeToImpl(charset.
|
|
3040
|
+
encodeToImpl(charset.o28(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3018
3041
|
}
|
|
3019
3042
|
function get_ByteArrayPool() {
|
|
3020
3043
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3024,7 +3047,7 @@ var ByteArrayPool;
|
|
|
3024
3047
|
function ByteArrayPool$1() {
|
|
3025
3048
|
DefaultPool.call(this, 128);
|
|
3026
3049
|
}
|
|
3027
|
-
protoOf(ByteArrayPool$1).
|
|
3050
|
+
protoOf(ByteArrayPool$1).s28 = function () {
|
|
3028
3051
|
return new Int8Array(4096);
|
|
3029
3052
|
};
|
|
3030
3053
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3038,7 +3061,7 @@ function ObjectPool() {
|
|
|
3038
3061
|
}
|
|
3039
3062
|
function NoPoolImpl() {
|
|
3040
3063
|
}
|
|
3041
|
-
protoOf(NoPoolImpl).
|
|
3064
|
+
protoOf(NoPoolImpl).a29 = function (instance) {
|
|
3042
3065
|
return Unit_instance;
|
|
3043
3066
|
};
|
|
3044
3067
|
protoOf(NoPoolImpl).s10 = function () {
|
|
@@ -3046,13 +3069,13 @@ protoOf(NoPoolImpl).s10 = function () {
|
|
|
3046
3069
|
};
|
|
3047
3070
|
function Companion_3() {
|
|
3048
3071
|
}
|
|
3049
|
-
protoOf(Companion_3).
|
|
3072
|
+
protoOf(Companion_3).b29 = function (name) {
|
|
3050
3073
|
switch (name) {
|
|
3051
3074
|
case 'UTF-8':
|
|
3052
3075
|
case 'utf-8':
|
|
3053
3076
|
case 'UTF8':
|
|
3054
3077
|
case 'utf8':
|
|
3055
|
-
return Charsets_getInstance().
|
|
3078
|
+
return Charsets_getInstance().l28_1;
|
|
3056
3079
|
}
|
|
3057
3080
|
var tmp;
|
|
3058
3081
|
var tmp_0;
|
|
@@ -3083,7 +3106,7 @@ protoOf(Companion_3).a29 = function (name) {
|
|
|
3083
3106
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3084
3107
|
}
|
|
3085
3108
|
if (tmp) {
|
|
3086
|
-
return Charsets_getInstance().
|
|
3109
|
+
return Charsets_getInstance().m28_1;
|
|
3087
3110
|
}
|
|
3088
3111
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3089
3112
|
};
|
|
@@ -3092,7 +3115,7 @@ function Companion_getInstance_3() {
|
|
|
3092
3115
|
return Companion_instance_4;
|
|
3093
3116
|
}
|
|
3094
3117
|
function Charset(_name) {
|
|
3095
|
-
this.
|
|
3118
|
+
this.n28_1 = _name;
|
|
3096
3119
|
}
|
|
3097
3120
|
protoOf(Charset).equals = function (other) {
|
|
3098
3121
|
if (this === other)
|
|
@@ -3101,18 +3124,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3101
3124
|
return false;
|
|
3102
3125
|
if (!(other instanceof Charset))
|
|
3103
3126
|
THROW_CCE();
|
|
3104
|
-
return this.
|
|
3127
|
+
return this.n28_1 === other.n28_1;
|
|
3105
3128
|
};
|
|
3106
3129
|
protoOf(Charset).hashCode = function () {
|
|
3107
|
-
return getStringHashCode(this.
|
|
3130
|
+
return getStringHashCode(this.n28_1);
|
|
3108
3131
|
};
|
|
3109
3132
|
protoOf(Charset).toString = function () {
|
|
3110
|
-
return this.
|
|
3133
|
+
return this.n28_1;
|
|
3111
3134
|
};
|
|
3112
3135
|
function Charsets() {
|
|
3113
3136
|
Charsets_instance = this;
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3137
|
+
this.l28_1 = new CharsetImpl('UTF-8');
|
|
3138
|
+
this.m28_1 = new CharsetImpl('ISO-8859-1');
|
|
3116
3139
|
}
|
|
3117
3140
|
var Charsets_instance;
|
|
3118
3141
|
function Charsets_getInstance() {
|
|
@@ -3125,16 +3148,16 @@ function MalformedInputException(message) {
|
|
|
3125
3148
|
captureStack(this, MalformedInputException);
|
|
3126
3149
|
}
|
|
3127
3150
|
function get_name(_this__u8e3s4) {
|
|
3128
|
-
return _this__u8e3s4.
|
|
3151
|
+
return _this__u8e3s4.n28_1;
|
|
3129
3152
|
}
|
|
3130
3153
|
function CharsetDecoder(_charset) {
|
|
3131
|
-
this.
|
|
3154
|
+
this.d29_1 = _charset;
|
|
3132
3155
|
}
|
|
3133
3156
|
function CharsetEncoder(_charset) {
|
|
3134
|
-
this.
|
|
3157
|
+
this.e29_1 = _charset;
|
|
3135
3158
|
}
|
|
3136
3159
|
function forName(_this__u8e3s4, name) {
|
|
3137
|
-
return Companion_instance_4.
|
|
3160
|
+
return Companion_instance_4.b29(name);
|
|
3138
3161
|
}
|
|
3139
3162
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3140
3163
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
@@ -3149,7 +3172,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3149
3172
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3150
3173
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3151
3174
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3152
|
-
tmp = decoder.
|
|
3175
|
+
tmp = decoder.f29(array);
|
|
3153
3176
|
} catch ($p) {
|
|
3154
3177
|
var tmp_0;
|
|
3155
3178
|
if ($p instanceof Error) {
|
|
@@ -3171,11 +3194,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3171
3194
|
var message = 'Failed requirement.';
|
|
3172
3195
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3173
3196
|
}
|
|
3174
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3197
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().m28_1)) {
|
|
3175
3198
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3176
3199
|
}
|
|
3177
3200
|
// Inline function 'kotlin.require' call
|
|
3178
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3201
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().l28_1)) {
|
|
3179
3202
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3180
3203
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3181
3204
|
}
|
|
@@ -3196,17 +3219,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3196
3219
|
function CharsetImpl(name) {
|
|
3197
3220
|
Charset.call(this, name);
|
|
3198
3221
|
}
|
|
3199
|
-
protoOf(CharsetImpl).
|
|
3222
|
+
protoOf(CharsetImpl).o28 = function () {
|
|
3200
3223
|
return new CharsetEncoderImpl(this);
|
|
3201
3224
|
};
|
|
3202
|
-
protoOf(CharsetImpl).
|
|
3225
|
+
protoOf(CharsetImpl).c29 = function () {
|
|
3203
3226
|
return new CharsetDecoderImpl(this);
|
|
3204
3227
|
};
|
|
3205
3228
|
function get_charset(_this__u8e3s4) {
|
|
3206
|
-
return _this__u8e3s4.
|
|
3229
|
+
return _this__u8e3s4.d29_1;
|
|
3207
3230
|
}
|
|
3208
3231
|
function get_charset_0(_this__u8e3s4) {
|
|
3209
|
-
return _this__u8e3s4.
|
|
3232
|
+
return _this__u8e3s4.e29_1;
|
|
3210
3233
|
}
|
|
3211
3234
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3212
3235
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3225,39 +3248,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3225
3248
|
}
|
|
3226
3249
|
function CharsetEncoderImpl(charset) {
|
|
3227
3250
|
CharsetEncoder.call(this, charset);
|
|
3228
|
-
this.
|
|
3251
|
+
this.i29_1 = charset;
|
|
3229
3252
|
}
|
|
3230
3253
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3231
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3254
|
+
return 'CharsetEncoderImpl(charset=' + this.i29_1.toString() + ')';
|
|
3232
3255
|
};
|
|
3233
3256
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3234
|
-
return this.
|
|
3257
|
+
return this.i29_1.hashCode();
|
|
3235
3258
|
};
|
|
3236
3259
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3237
3260
|
if (this === other)
|
|
3238
3261
|
return true;
|
|
3239
3262
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3240
3263
|
return false;
|
|
3241
|
-
if (!this.
|
|
3264
|
+
if (!this.i29_1.equals(other.i29_1))
|
|
3242
3265
|
return false;
|
|
3243
3266
|
return true;
|
|
3244
3267
|
};
|
|
3245
3268
|
function CharsetDecoderImpl(charset) {
|
|
3246
3269
|
CharsetDecoder.call(this, charset);
|
|
3247
|
-
this.
|
|
3270
|
+
this.k29_1 = charset;
|
|
3248
3271
|
}
|
|
3249
3272
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3250
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3273
|
+
return 'CharsetDecoderImpl(charset=' + this.k29_1.toString() + ')';
|
|
3251
3274
|
};
|
|
3252
3275
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3253
|
-
return this.
|
|
3276
|
+
return this.k29_1.hashCode();
|
|
3254
3277
|
};
|
|
3255
3278
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3256
3279
|
if (this === other)
|
|
3257
3280
|
return true;
|
|
3258
3281
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3259
3282
|
return false;
|
|
3260
|
-
if (!this.
|
|
3283
|
+
if (!this.k29_1.equals(other.k29_1))
|
|
3261
3284
|
return false;
|
|
3262
3285
|
return true;
|
|
3263
3286
|
};
|
|
@@ -3291,10 +3314,10 @@ function textDecoderOptions(fatal) {
|
|
|
3291
3314
|
return this_0;
|
|
3292
3315
|
}
|
|
3293
3316
|
function toKtor$1($this_toKtor) {
|
|
3294
|
-
this.
|
|
3317
|
+
this.l29_1 = $this_toKtor;
|
|
3295
3318
|
}
|
|
3296
|
-
protoOf(toKtor$1).
|
|
3297
|
-
return this.
|
|
3319
|
+
protoOf(toKtor$1).f29 = function (buffer) {
|
|
3320
|
+
return this.l29_1.decode(buffer);
|
|
3298
3321
|
};
|
|
3299
3322
|
function get_ENCODING_ALIASES() {
|
|
3300
3323
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3307,7 +3330,7 @@ function get_REPLACEMENT() {
|
|
|
3307
3330
|
}
|
|
3308
3331
|
var REPLACEMENT;
|
|
3309
3332
|
function TextDecoderFallback(encoding, fatal) {
|
|
3310
|
-
this.
|
|
3333
|
+
this.m29_1 = fatal;
|
|
3311
3334
|
// Inline function 'kotlin.text.trim' call
|
|
3312
3335
|
// Inline function 'kotlin.text.lowercase' call
|
|
3313
3336
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3318,7 +3341,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3318
3341
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3319
3342
|
}
|
|
3320
3343
|
}
|
|
3321
|
-
protoOf(TextDecoderFallback).
|
|
3344
|
+
protoOf(TextDecoderFallback).f29 = function (buffer) {
|
|
3322
3345
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3323
3346
|
var builder = new Buffer();
|
|
3324
3347
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3334,7 +3357,7 @@ protoOf(TextDecoderFallback).e29 = function (buffer) {
|
|
|
3334
3357
|
var point = toCodePoint(byte);
|
|
3335
3358
|
if (point < 0) {
|
|
3336
3359
|
// Inline function 'kotlin.check' call
|
|
3337
|
-
if (!!this.
|
|
3360
|
+
if (!!this.m29_1) {
|
|
3338
3361
|
var message = 'Invalid character: ' + point;
|
|
3339
3362
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3340
3363
|
}
|
|
@@ -3371,9 +3394,9 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3371
3394
|
}
|
|
3372
3395
|
}
|
|
3373
3396
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3374
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3397
|
+
charset = charset === VOID ? Charsets_getInstance().l28_1 : charset;
|
|
3375
3398
|
max = max === VOID ? 2147483647 : max;
|
|
3376
|
-
if (charset.equals(Charsets_getInstance().
|
|
3399
|
+
if (charset.equals(Charsets_getInstance().l28_1)) {
|
|
3377
3400
|
if (max === 2147483647)
|
|
3378
3401
|
return readString_1(_this__u8e3s4);
|
|
3379
3402
|
_this__u8e3s4.ku(fromInt(max));
|
|
@@ -3383,7 +3406,7 @@ function readText_0(_this__u8e3s4, charset, max) {
|
|
|
3383
3406
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3384
3407
|
return readString(_this__u8e3s4, count);
|
|
3385
3408
|
}
|
|
3386
|
-
return decode(charset.
|
|
3409
|
+
return decode(charset.c29(), _this__u8e3s4, max);
|
|
3387
3410
|
}
|
|
3388
3411
|
function get_DEVELOPMENT_MODE() {
|
|
3389
3412
|
return false;
|
|
@@ -3427,64 +3450,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3427
3450
|
}
|
|
3428
3451
|
}
|
|
3429
3452
|
function DefaultPool(capacity) {
|
|
3430
|
-
this.
|
|
3453
|
+
this.t28_1 = capacity;
|
|
3431
3454
|
var tmp = this;
|
|
3432
3455
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3433
|
-
var size = this.
|
|
3434
|
-
tmp.
|
|
3435
|
-
this.
|
|
3456
|
+
var size = this.t28_1;
|
|
3457
|
+
tmp.u28_1 = Array(size);
|
|
3458
|
+
this.v28_1 = 0;
|
|
3436
3459
|
}
|
|
3437
|
-
protoOf(DefaultPool).v28 = function (instance) {
|
|
3438
|
-
};
|
|
3439
3460
|
protoOf(DefaultPool).w28 = function (instance) {
|
|
3440
|
-
return instance;
|
|
3441
3461
|
};
|
|
3442
3462
|
protoOf(DefaultPool).x28 = function (instance) {
|
|
3463
|
+
return instance;
|
|
3464
|
+
};
|
|
3465
|
+
protoOf(DefaultPool).y28 = function (instance) {
|
|
3443
3466
|
};
|
|
3444
|
-
protoOf(DefaultPool).
|
|
3445
|
-
if (this.
|
|
3446
|
-
return this.
|
|
3447
|
-
this.
|
|
3448
|
-
var idx = this.
|
|
3449
|
-
var tmp = this.
|
|
3467
|
+
protoOf(DefaultPool).z28 = function () {
|
|
3468
|
+
if (this.v28_1 === 0)
|
|
3469
|
+
return this.s28();
|
|
3470
|
+
this.v28_1 = this.v28_1 - 1 | 0;
|
|
3471
|
+
var idx = this.v28_1;
|
|
3472
|
+
var tmp = this.u28_1[idx];
|
|
3450
3473
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3451
|
-
this.
|
|
3452
|
-
return this.
|
|
3474
|
+
this.u28_1[idx] = null;
|
|
3475
|
+
return this.x28(instance);
|
|
3453
3476
|
};
|
|
3454
|
-
protoOf(DefaultPool).
|
|
3455
|
-
this.
|
|
3456
|
-
if (this.
|
|
3457
|
-
this.
|
|
3477
|
+
protoOf(DefaultPool).a29 = function (instance) {
|
|
3478
|
+
this.y28(instance);
|
|
3479
|
+
if (this.v28_1 === this.t28_1) {
|
|
3480
|
+
this.w28(instance);
|
|
3458
3481
|
} else {
|
|
3459
|
-
var _unary__edvuaz = this.
|
|
3460
|
-
this.
|
|
3461
|
-
this.
|
|
3482
|
+
var _unary__edvuaz = this.v28_1;
|
|
3483
|
+
this.v28_1 = _unary__edvuaz + 1 | 0;
|
|
3484
|
+
this.u28_1[_unary__edvuaz] = instance;
|
|
3462
3485
|
}
|
|
3463
3486
|
};
|
|
3464
3487
|
protoOf(DefaultPool).s10 = function () {
|
|
3465
3488
|
var inductionVariable = 0;
|
|
3466
|
-
var last = this.
|
|
3489
|
+
var last = this.v28_1;
|
|
3467
3490
|
if (inductionVariable < last)
|
|
3468
3491
|
do {
|
|
3469
3492
|
var i = inductionVariable;
|
|
3470
3493
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3471
|
-
var tmp = this.
|
|
3494
|
+
var tmp = this.u28_1[i];
|
|
3472
3495
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3473
|
-
this.
|
|
3474
|
-
this.
|
|
3496
|
+
this.u28_1[i] = null;
|
|
3497
|
+
this.w28(instance);
|
|
3475
3498
|
}
|
|
3476
3499
|
while (inductionVariable < last);
|
|
3477
|
-
this.
|
|
3500
|
+
this.v28_1 = 0;
|
|
3478
3501
|
};
|
|
3479
3502
|
//region block: post-declaration
|
|
3480
3503
|
protoOf(Read).j1x = resume;
|
|
3481
3504
|
protoOf(Read).k1x = resume_0;
|
|
3482
3505
|
protoOf(Write).j1x = resume;
|
|
3483
3506
|
protoOf(Write).k1x = resume_0;
|
|
3484
|
-
protoOf(ByteChannel).
|
|
3485
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3486
|
-
protoOf(CountedByteReadChannel).
|
|
3487
|
-
protoOf(SourceByteReadChannel).
|
|
3507
|
+
protoOf(ByteChannel).r1z = awaitContent$default;
|
|
3508
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r1z = awaitContent$default;
|
|
3509
|
+
protoOf(CountedByteReadChannel).r1z = awaitContent$default;
|
|
3510
|
+
protoOf(SourceByteReadChannel).r1z = awaitContent$default;
|
|
3488
3511
|
protoOf(DefaultPool).j4 = close;
|
|
3489
3512
|
protoOf(NoPoolImpl).j4 = close;
|
|
3490
3513
|
//endregion
|
|
@@ -3531,6 +3554,7 @@ export {
|
|
|
3531
3554
|
ByteReadChannel_1 as ByteReadChannel2wzou76jce72d,
|
|
3532
3555
|
ClosedByteChannelException as ClosedByteChannelException3il8gfpye60w,
|
|
3533
3556
|
WriterScope as WriterScope3b0bo1enaee6b,
|
|
3557
|
+
attachJob as attachJoby0kwkw2fc958,
|
|
3534
3558
|
attachWriterJob as attachWriterJob2dr3tee7atoa9,
|
|
3535
3559
|
cancel_0 as canceldn4b3cdqcfny,
|
|
3536
3560
|
close_0 as close3semq7pafb42g,
|
|
@@ -3539,7 +3563,8 @@ export {
|
|
|
3539
3563
|
ioDispatcher as ioDispatcher3b9pa3x0duop,
|
|
3540
3564
|
readText as readText3frapgncbqrcg,
|
|
3541
3565
|
rethrowCloseCauseIfNeeded_0 as rethrowCloseCauseIfNeeded3ixo8wl4o3bz4,
|
|
3542
|
-
|
|
3566
|
+
writer_0 as writer1eia5its2a1fh,
|
|
3567
|
+
writer as writers3lcf9rq7qek,
|
|
3543
3568
|
};
|
|
3544
3569
|
//endregion
|
|
3545
3570
|
|