@doordeck/doordeck-headless-sdk 0.69.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1344 -1344
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
- package/kotlin/doordeck-sdk.d.ts +4 -0
- package/kotlin/doordeck-sdk.js +11567 -11566
- package/kotlin/kotlin-kotlin-stdlib.js +2612 -2324
- package/kotlin/kotlinx-atomicfu.js +19 -19
- package/kotlin/kotlinx-coroutines-core.js +2800 -2214
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +198 -2
- package/kotlin/kotlinx-io-kotlinx-io-core.js +536 -463
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1939 -1939
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1684
- package/kotlin/ktor-ktor-client-ktor-client-core.js +3274 -3074
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +529 -427
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +372 -271
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +2009 -0
- package/kotlin/ktor-ktor-http.js +1012 -907
- package/kotlin/ktor-ktor-io.js +1748 -871
- package/kotlin/ktor-ktor-shared-ktor-events.js +13 -13
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +282 -282
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +137 -137
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +57 -57
- package/kotlin/ktor-ktor-utils.js +736 -667
- package/package.json +2 -2
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -6
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -1,91 +1,98 @@
|
|
|
1
|
-
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_atomicfu) {
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
9
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
10
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
12
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
13
|
-
var equals = kotlin_kotlin.$_$.
|
|
14
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
15
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
16
|
-
var Result = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
18
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
19
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
20
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
4
|
+
var Companion_instance = kotlin_kotlin.$_$.e5;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
6
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a3;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.sb;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.sa;
|
|
9
|
+
var THROW_CCE = kotlin_kotlin.$_$.lf;
|
|
10
|
+
var initMetadataForObject = kotlin_kotlin.$_$.xa;
|
|
11
|
+
var toString = kotlin_kotlin.$_$.og;
|
|
12
|
+
var hashCode = kotlin_kotlin.$_$.qa;
|
|
13
|
+
var equals = kotlin_kotlin.$_$.ja;
|
|
14
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ra;
|
|
15
|
+
var createFailure = kotlin_kotlin.$_$.cg;
|
|
16
|
+
var Result = kotlin_kotlin.$_$.jf;
|
|
17
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.va;
|
|
18
|
+
var toString_0 = kotlin_kotlin.$_$.ge;
|
|
19
|
+
var newThrowable = kotlin_kotlin.$_$.mb;
|
|
20
|
+
var stackTraceToString = kotlin_kotlin.$_$.mg;
|
|
21
21
|
var VOID = kotlin_kotlin.$_$.h;
|
|
22
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
23
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
24
|
-
var toLong = kotlin_kotlin.$_$.
|
|
25
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
26
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
27
|
-
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
28
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
22
|
+
var isInterface = kotlin_kotlin.$_$.gb;
|
|
23
|
+
var CoroutineImpl = kotlin_kotlin.$_$.t9;
|
|
24
|
+
var toLong = kotlin_kotlin.$_$.ub;
|
|
25
|
+
var numberToLong = kotlin_kotlin.$_$.qb;
|
|
26
|
+
var intercepted = kotlin_kotlin.$_$.g9;
|
|
27
|
+
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
28
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.kg;
|
|
29
29
|
var returnIfSuspended = kotlin_kotlin.$_$.m;
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var Long = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.d9;
|
|
31
|
+
var Long = kotlin_kotlin.$_$.ff;
|
|
32
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ta;
|
|
33
33
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
34
34
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
35
|
+
var IllegalStateException = kotlin_kotlin.$_$.ef;
|
|
36
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2;
|
|
37
|
+
var captureStack = kotlin_kotlin.$_$.ba;
|
|
35
38
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var captureStack = kotlin_kotlin.$_$.t9;
|
|
39
|
+
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
40
|
+
var replace = kotlin_kotlin.$_$.kd;
|
|
39
41
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
42
|
+
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
43
|
+
var closeFinally = kotlin_kotlin.$_$.ag;
|
|
44
|
+
var toString_1 = kotlin_kotlin.$_$.wb;
|
|
45
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
46
|
+
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
47
|
+
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.r4;
|
|
48
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
49
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
50
|
+
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
|
|
51
|
+
var Continuation = kotlin_kotlin.$_$.n9;
|
|
52
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.ua;
|
|
53
|
+
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h1;
|
|
54
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
55
|
+
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
56
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.wa;
|
|
57
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
58
|
+
var CancellationException = kotlin_kotlin.$_$.c9;
|
|
59
|
+
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
60
|
+
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
51
61
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
62
|
+
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
52
63
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
56
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
57
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
58
|
-
var charSequenceLength = kotlin_kotlin.$_$.x9;
|
|
64
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
65
|
+
var charSequenceLength = kotlin_kotlin.$_$.fa;
|
|
59
66
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
65
|
-
var
|
|
66
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
67
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
68
|
-
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
67
|
+
var encodeToByteArray = kotlin_kotlin.$_$.rc;
|
|
68
|
+
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
69
|
+
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
70
|
+
var AutoCloseable = kotlin_kotlin.$_$.te;
|
|
71
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s2;
|
|
72
|
+
var replace_0 = kotlin_kotlin.$_$.ld;
|
|
73
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
74
|
+
var getStringHashCode = kotlin_kotlin.$_$.pa;
|
|
75
|
+
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
69
76
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
70
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
71
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
72
|
-
var trim = kotlin_kotlin.$_$.
|
|
73
|
-
var toByte = kotlin_kotlin.$_$.
|
|
74
|
-
var
|
|
75
|
-
var setOf = kotlin_kotlin.$_$.
|
|
76
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
77
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
78
|
-
var fillArrayVal = kotlin_kotlin.$_$.
|
|
77
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ga;
|
|
78
|
+
var isCharSequence = kotlin_kotlin.$_$.cb;
|
|
79
|
+
var trim = kotlin_kotlin.$_$.oe;
|
|
80
|
+
var toByte = kotlin_kotlin.$_$.tb;
|
|
81
|
+
var decodeToString_0 = kotlin_kotlin.$_$.pc;
|
|
82
|
+
var setOf = kotlin_kotlin.$_$.h8;
|
|
83
|
+
var charSequenceGet = kotlin_kotlin.$_$.ea;
|
|
84
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.y2;
|
|
85
|
+
var fillArrayVal = kotlin_kotlin.$_$.la;
|
|
79
86
|
//endregion
|
|
80
87
|
//region block: pre-declaration
|
|
81
88
|
initMetadataForCompanion(Companion);
|
|
82
89
|
initMetadataForObject(Empty, 'Empty');
|
|
83
90
|
initMetadataForClass(Closed, 'Closed');
|
|
84
91
|
function resume() {
|
|
85
|
-
return this.
|
|
92
|
+
return this.i1h().r9(Companion_getInstance().f1h_1);
|
|
86
93
|
}
|
|
87
94
|
function resume_0(throwable) {
|
|
88
|
-
var tmp = this.
|
|
95
|
+
var tmp = this.i1h();
|
|
89
96
|
var tmp_0;
|
|
90
97
|
if (throwable == null) {
|
|
91
98
|
tmp_0 = null;
|
|
@@ -97,7 +104,7 @@
|
|
|
97
104
|
tmp_0 = new Result(tmp$ret$2);
|
|
98
105
|
}
|
|
99
106
|
var tmp1_elvis_lhs = tmp_0;
|
|
100
|
-
return tmp.
|
|
107
|
+
return tmp.r9(tmp1_elvis_lhs == null ? Companion_getInstance().f1h_1 : tmp1_elvis_lhs.el_1);
|
|
101
108
|
}
|
|
102
109
|
initMetadataForInterface(Task, 'Task');
|
|
103
110
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -107,7 +114,7 @@
|
|
|
107
114
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$2, CoroutineImpl);
|
|
108
115
|
function awaitContent$default(min, $completion, $super) {
|
|
109
116
|
min = min === VOID ? 1 : min;
|
|
110
|
-
return $super === VOID ? this.
|
|
117
|
+
return $super === VOID ? this.u1j(min, $completion) : $super.u1j.call(this, min, $completion);
|
|
111
118
|
}
|
|
112
119
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
113
120
|
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1], [1, 0]);
|
|
@@ -116,24 +123,43 @@
|
|
|
116
123
|
initMetadataForCompanion(Companion_0);
|
|
117
124
|
initMetadataForCoroutine($readRemainingCOROUTINE$3, CoroutineImpl);
|
|
118
125
|
initMetadataForCoroutine($readPacketCOROUTINE$4, CoroutineImpl);
|
|
119
|
-
initMetadataForCoroutine($
|
|
120
|
-
initMetadataForCoroutine($
|
|
121
|
-
initMetadataForCoroutine($
|
|
126
|
+
initMetadataForCoroutine($discardCOROUTINE$5, CoroutineImpl);
|
|
127
|
+
initMetadataForCoroutine($readAvailableCOROUTINE$7, CoroutineImpl);
|
|
128
|
+
initMetadataForCoroutine($toByteArrayCOROUTINE$9, CoroutineImpl);
|
|
129
|
+
initMetadataForCoroutine($copyToCOROUTINE$10, CoroutineImpl);
|
|
130
|
+
initMetadataForCoroutine($readUTF8LineToCOROUTINE$12, CoroutineImpl);
|
|
122
131
|
initMetadataForCoroutine($readBufferCOROUTINE$13, CoroutineImpl);
|
|
123
|
-
initMetadataForCoroutine($
|
|
132
|
+
initMetadataForCoroutine($skipIfFoundCOROUTINE$15, CoroutineImpl);
|
|
133
|
+
initMetadataForCoroutine($readUntilCOROUTINE$16, CoroutineImpl);
|
|
134
|
+
initMetadataForCoroutine($peekCOROUTINE$17, CoroutineImpl);
|
|
135
|
+
initMetadataForCoroutine($readByteCOROUTINE$18, CoroutineImpl);
|
|
136
|
+
initMetadataForCoroutine($readUntil$appendPartialMatchCOROUTINE$19, CoroutineImpl);
|
|
137
|
+
initMetadataForCoroutine($flushIfNeededCOROUTINE$20, CoroutineImpl);
|
|
124
138
|
initMetadataForClass(WriterJob, 'WriterJob');
|
|
125
139
|
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
126
140
|
initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
|
|
127
141
|
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref, VOID, VOID, [0]);
|
|
128
142
|
initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
|
|
143
|
+
initMetadataForCoroutine($writePacketCOROUTINE$21, CoroutineImpl);
|
|
129
144
|
initMetadataForClass(CloseToken, 'CloseToken');
|
|
145
|
+
initMetadataForCoroutine($awaitContentCOROUTINE$22, CoroutineImpl);
|
|
146
|
+
initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
147
|
+
initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', ClosedByteChannelException, IOException);
|
|
148
|
+
initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
|
|
149
|
+
initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException, ClosedByteChannelException);
|
|
130
150
|
initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
131
|
-
initMetadataForClass(
|
|
151
|
+
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
152
|
+
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
153
|
+
function close() {
|
|
154
|
+
this.wr();
|
|
155
|
+
}
|
|
156
|
+
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
157
|
+
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
132
158
|
initMetadataForClass(ByteArrayPool$1, VOID, VOID, DefaultPool);
|
|
159
|
+
initMetadataForClass(NoPoolImpl, 'NoPoolImpl', VOID, VOID, [ObjectPool]);
|
|
133
160
|
initMetadataForCompanion(Companion_1);
|
|
134
161
|
initMetadataForClass(Charset, 'Charset');
|
|
135
162
|
initMetadataForObject(Charsets, 'Charsets');
|
|
136
|
-
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
137
163
|
initMetadataForClass(CharsetDecoder, 'CharsetDecoder');
|
|
138
164
|
initMetadataForClass(CharsetEncoder, 'CharsetEncoder');
|
|
139
165
|
initMetadataForClass(CharsetImpl, 'CharsetImpl', VOID, Charset);
|
|
@@ -144,10 +170,10 @@
|
|
|
144
170
|
//endregion
|
|
145
171
|
function Companion() {
|
|
146
172
|
Companion_instance_0 = this;
|
|
147
|
-
this.
|
|
173
|
+
this.e1h_1 = new Closed(null);
|
|
148
174
|
var tmp = this;
|
|
149
175
|
// Inline function 'kotlin.Companion.success' call
|
|
150
|
-
tmp.
|
|
176
|
+
tmp.f1h_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
151
177
|
}
|
|
152
178
|
var Companion_instance_0;
|
|
153
179
|
function Companion_getInstance() {
|
|
@@ -176,13 +202,13 @@
|
|
|
176
202
|
return Empty_instance;
|
|
177
203
|
}
|
|
178
204
|
function Closed(cause) {
|
|
179
|
-
this.
|
|
205
|
+
this.g1h_1 = cause;
|
|
180
206
|
}
|
|
181
207
|
protoOf(Closed).toString = function () {
|
|
182
|
-
return 'Closed(cause=' + toString(this.
|
|
208
|
+
return 'Closed(cause=' + toString(this.g1h_1) + ')';
|
|
183
209
|
};
|
|
184
210
|
protoOf(Closed).hashCode = function () {
|
|
185
|
-
return this.
|
|
211
|
+
return this.g1h_1 == null ? 0 : hashCode(this.g1h_1);
|
|
186
212
|
};
|
|
187
213
|
protoOf(Closed).equals = function (other) {
|
|
188
214
|
if (this === other)
|
|
@@ -190,127 +216,141 @@
|
|
|
190
216
|
if (!(other instanceof Closed))
|
|
191
217
|
return false;
|
|
192
218
|
var tmp0_other_with_cast = other instanceof Closed ? other : THROW_CCE();
|
|
193
|
-
if (!equals(this.
|
|
219
|
+
if (!equals(this.g1h_1, tmp0_other_with_cast.g1h_1))
|
|
194
220
|
return false;
|
|
195
221
|
return true;
|
|
196
222
|
};
|
|
197
223
|
function Task() {
|
|
198
224
|
}
|
|
199
225
|
function Read(continuation) {
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
226
|
+
this.m1h_1 = continuation;
|
|
227
|
+
this.n1h_1 = null;
|
|
202
228
|
if (get_DEVELOPMENT_MODE()) {
|
|
203
229
|
var tmp = this;
|
|
204
230
|
// Inline function 'kotlin.also' call
|
|
205
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
231
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.m1h_1), 16));
|
|
206
232
|
// Inline function 'io.ktor.utils.io.Read.<anonymous>' call
|
|
207
233
|
stackTraceToString(this_0);
|
|
208
|
-
tmp.
|
|
234
|
+
tmp.n1h_1 = this_0;
|
|
209
235
|
}
|
|
210
236
|
}
|
|
211
|
-
protoOf(Read).
|
|
212
|
-
return this.
|
|
237
|
+
protoOf(Read).i1h = function () {
|
|
238
|
+
return this.m1h_1;
|
|
213
239
|
};
|
|
214
|
-
protoOf(Read).
|
|
215
|
-
return this.
|
|
240
|
+
protoOf(Read).h1h = function () {
|
|
241
|
+
return this.n1h_1;
|
|
216
242
|
};
|
|
217
|
-
protoOf(Read).
|
|
243
|
+
protoOf(Read).j1h = function () {
|
|
218
244
|
return 'read';
|
|
219
245
|
};
|
|
220
246
|
function Write(continuation) {
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
247
|
+
this.o1h_1 = continuation;
|
|
248
|
+
this.p1h_1 = null;
|
|
223
249
|
if (get_DEVELOPMENT_MODE()) {
|
|
224
250
|
var tmp = this;
|
|
225
251
|
// Inline function 'kotlin.also' call
|
|
226
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
252
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.o1h_1), 16));
|
|
227
253
|
// Inline function 'io.ktor.utils.io.Write.<anonymous>' call
|
|
228
254
|
stackTraceToString(this_0);
|
|
229
|
-
tmp.
|
|
255
|
+
tmp.p1h_1 = this_0;
|
|
230
256
|
}
|
|
231
257
|
}
|
|
232
|
-
protoOf(Write).
|
|
233
|
-
return this.
|
|
258
|
+
protoOf(Write).i1h = function () {
|
|
259
|
+
return this.o1h_1;
|
|
234
260
|
};
|
|
235
|
-
protoOf(Write).
|
|
236
|
-
return this.
|
|
261
|
+
protoOf(Write).h1h = function () {
|
|
262
|
+
return this.p1h_1;
|
|
237
263
|
};
|
|
238
|
-
protoOf(Write).
|
|
264
|
+
protoOf(Write).j1h = function () {
|
|
239
265
|
return 'write';
|
|
240
266
|
};
|
|
241
267
|
function moveFlushToReadBuffer($this) {
|
|
242
268
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
243
|
-
$this.
|
|
269
|
+
$this.t1h_1;
|
|
244
270
|
// Inline function 'io.ktor.utils.io.ByteChannel.moveFlushToReadBuffer.<anonymous>' call
|
|
245
|
-
$this.
|
|
246
|
-
$this.
|
|
271
|
+
$this.r1h_1.j1f($this.v1h_1);
|
|
272
|
+
$this.s1h_1 = 0;
|
|
247
273
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
248
|
-
var current = $this.
|
|
274
|
+
var current = $this.u1h_1.kotlinx$atomicfu$value;
|
|
249
275
|
var tmp;
|
|
250
276
|
if (current instanceof Write) {
|
|
251
|
-
tmp = $this.
|
|
277
|
+
tmp = $this.u1h_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
252
278
|
} else {
|
|
253
279
|
tmp = false;
|
|
254
280
|
}
|
|
255
281
|
if (tmp) {
|
|
256
|
-
current.
|
|
282
|
+
current.k1h();
|
|
257
283
|
}
|
|
258
284
|
}
|
|
259
285
|
function closeSlot($this, cause) {
|
|
260
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
261
|
-
var continuation = $this.
|
|
286
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().e1h_1;
|
|
287
|
+
var continuation = $this.u1h_1.atomicfu$getAndSet(closeContinuation);
|
|
262
288
|
if (!isInterface(continuation, Task))
|
|
263
289
|
return Unit_instance;
|
|
264
|
-
continuation.
|
|
290
|
+
continuation.l1h(cause);
|
|
291
|
+
}
|
|
292
|
+
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
293
|
+
var l = function (p0) {
|
|
294
|
+
return new ClosedReadChannelException(p0);
|
|
295
|
+
};
|
|
296
|
+
l.callableName = '<init>';
|
|
297
|
+
return l;
|
|
298
|
+
}
|
|
299
|
+
function ClosedWriteChannelException$_init_$ref_ef15ty() {
|
|
300
|
+
var l = function (p0) {
|
|
301
|
+
return new ClosedWriteChannelException(p0);
|
|
302
|
+
};
|
|
303
|
+
l.callableName = '<init>';
|
|
304
|
+
return l;
|
|
265
305
|
}
|
|
266
306
|
function $awaitContentCOROUTINE$0(_this__u8e3s4, min, resultContinuation) {
|
|
267
307
|
CoroutineImpl.call(this, resultContinuation);
|
|
268
|
-
this.
|
|
269
|
-
this.
|
|
308
|
+
this.g1i_1 = _this__u8e3s4;
|
|
309
|
+
this.h1i_1 = min;
|
|
270
310
|
}
|
|
271
|
-
protoOf($awaitContentCOROUTINE$0).
|
|
272
|
-
var suspendResult = this.
|
|
311
|
+
protoOf($awaitContentCOROUTINE$0).o9 = function () {
|
|
312
|
+
var suspendResult = this.i9_1;
|
|
273
313
|
$sm: do
|
|
274
314
|
try {
|
|
275
|
-
var tmp = this.
|
|
315
|
+
var tmp = this.g9_1;
|
|
276
316
|
switch (tmp) {
|
|
277
317
|
case 0:
|
|
278
|
-
this.
|
|
279
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
280
|
-
if (this.
|
|
318
|
+
this.h9_1 = 4;
|
|
319
|
+
rethrowCloseCauseIfNeeded_1(this.g1i_1);
|
|
320
|
+
if (this.g1i_1.v1h_1.s().e1(toLong(this.h1i_1)) >= 0)
|
|
281
321
|
return true;
|
|
282
322
|
var tmp_0 = this;
|
|
283
|
-
tmp_0.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
323
|
+
tmp_0.i1i_1 = this.g1i_1;
|
|
324
|
+
this.j1i_1 = this.i1i_1;
|
|
325
|
+
this.g9_1 = 1;
|
|
286
326
|
continue $sm;
|
|
287
327
|
case 1:
|
|
288
|
-
if (!(numberToLong(this.
|
|
289
|
-
this.
|
|
328
|
+
if (!(numberToLong(this.g1i_1.s1h_1).z2(this.g1i_1.v1h_1.s()).e1(toLong(this.h1i_1)) < 0 && this.g1i_1.x1h_1.kotlinx$atomicfu$value == null)) {
|
|
329
|
+
this.g9_1 = 3;
|
|
290
330
|
continue $sm;
|
|
291
331
|
}
|
|
292
332
|
|
|
293
|
-
this.
|
|
333
|
+
this.g9_1 = 2;
|
|
294
334
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
295
|
-
cancellable.
|
|
296
|
-
var tmp0 = this.
|
|
335
|
+
cancellable.ys();
|
|
336
|
+
var tmp0 = this.j1i_1;
|
|
297
337
|
var tmp1 = new Read(cancellable);
|
|
298
338
|
l$ret$1: do {
|
|
299
|
-
var previous = tmp0.
|
|
339
|
+
var previous = tmp0.u1h_1.kotlinx$atomicfu$value;
|
|
300
340
|
if (!(previous instanceof Closed)) {
|
|
301
|
-
if (!tmp0.
|
|
302
|
-
tmp1.
|
|
341
|
+
if (!tmp0.u1h_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
342
|
+
tmp1.k1h();
|
|
303
343
|
break l$ret$1;
|
|
304
344
|
}
|
|
305
345
|
}
|
|
306
346
|
if (previous instanceof Read) {
|
|
307
|
-
previous.
|
|
347
|
+
previous.l1h(new ConcurrentIOException(tmp1.j1h(), previous.h1h()));
|
|
308
348
|
} else {
|
|
309
349
|
if (isInterface(previous, Task)) {
|
|
310
|
-
previous.
|
|
350
|
+
previous.k1h();
|
|
311
351
|
} else {
|
|
312
352
|
if (previous instanceof Closed) {
|
|
313
|
-
tmp1.
|
|
353
|
+
tmp1.l1h(previous.g1h_1);
|
|
314
354
|
break l$ret$1;
|
|
315
355
|
} else {
|
|
316
356
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -319,97 +359,97 @@
|
|
|
319
359
|
}
|
|
320
360
|
}
|
|
321
361
|
}
|
|
322
|
-
if (!(numberToLong(this.
|
|
323
|
-
var current = tmp0.
|
|
362
|
+
if (!(numberToLong(this.g1i_1.s1h_1).z2(this.g1i_1.v1h_1.s()).e1(toLong(this.h1i_1)) < 0 && this.g1i_1.x1h_1.kotlinx$atomicfu$value == null)) {
|
|
363
|
+
var current = tmp0.u1h_1.kotlinx$atomicfu$value;
|
|
324
364
|
var tmp_1;
|
|
325
365
|
if (current instanceof Read) {
|
|
326
|
-
tmp_1 = tmp0.
|
|
366
|
+
tmp_1 = tmp0.u1h_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
327
367
|
} else {
|
|
328
368
|
tmp_1 = false;
|
|
329
369
|
}
|
|
330
370
|
if (tmp_1) {
|
|
331
|
-
current.
|
|
371
|
+
current.k1h();
|
|
332
372
|
}
|
|
333
373
|
}
|
|
334
374
|
}
|
|
335
375
|
while (false);
|
|
336
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
376
|
+
suspendResult = returnIfSuspended(cancellable.gt(), this);
|
|
337
377
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
338
378
|
return suspendResult;
|
|
339
379
|
}
|
|
340
380
|
|
|
341
381
|
continue $sm;
|
|
342
382
|
case 2:
|
|
343
|
-
this.
|
|
383
|
+
this.g9_1 = 1;
|
|
344
384
|
continue $sm;
|
|
345
385
|
case 3:
|
|
346
|
-
if (this.
|
|
347
|
-
moveFlushToReadBuffer(this.
|
|
386
|
+
if (this.g1i_1.v1h_1.s().e1(new Long(1048576, 0)) < 0) {
|
|
387
|
+
moveFlushToReadBuffer(this.g1i_1);
|
|
348
388
|
}
|
|
349
389
|
|
|
350
|
-
return this.
|
|
390
|
+
return this.g1i_1.v1h_1.s().e1(toLong(this.h1i_1)) >= 0;
|
|
351
391
|
case 4:
|
|
352
|
-
throw this.
|
|
392
|
+
throw this.j9_1;
|
|
353
393
|
}
|
|
354
394
|
} catch ($p) {
|
|
355
395
|
var e = $p;
|
|
356
|
-
if (this.
|
|
396
|
+
if (this.h9_1 === 4) {
|
|
357
397
|
throw e;
|
|
358
398
|
} else {
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
399
|
+
this.g9_1 = this.h9_1;
|
|
400
|
+
this.j9_1 = e;
|
|
361
401
|
}
|
|
362
402
|
}
|
|
363
403
|
while (true);
|
|
364
404
|
};
|
|
365
405
|
function $flushCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
366
406
|
CoroutineImpl.call(this, resultContinuation);
|
|
367
|
-
this.
|
|
407
|
+
this.s1i_1 = _this__u8e3s4;
|
|
368
408
|
}
|
|
369
|
-
protoOf($flushCOROUTINE$1).
|
|
370
|
-
var suspendResult = this.
|
|
409
|
+
protoOf($flushCOROUTINE$1).o9 = function () {
|
|
410
|
+
var suspendResult = this.i9_1;
|
|
371
411
|
$sm: do
|
|
372
412
|
try {
|
|
373
|
-
var tmp = this.
|
|
413
|
+
var tmp = this.g9_1;
|
|
374
414
|
switch (tmp) {
|
|
375
415
|
case 0:
|
|
376
|
-
this.
|
|
377
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
378
|
-
this.
|
|
379
|
-
if (this.
|
|
416
|
+
this.h9_1 = 4;
|
|
417
|
+
rethrowCloseCauseIfNeeded_1(this.s1i_1);
|
|
418
|
+
this.s1i_1.v1i();
|
|
419
|
+
if (this.s1i_1.s1h_1 < 1048576)
|
|
380
420
|
return Unit_instance;
|
|
381
421
|
var tmp_0 = this;
|
|
382
|
-
tmp_0.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
422
|
+
tmp_0.t1i_1 = this.s1i_1;
|
|
423
|
+
this.u1i_1 = this.t1i_1;
|
|
424
|
+
this.g9_1 = 1;
|
|
385
425
|
continue $sm;
|
|
386
426
|
case 1:
|
|
387
|
-
if (!(this.
|
|
388
|
-
this.
|
|
427
|
+
if (!(this.s1i_1.s1h_1 >= 1048576 && this.s1i_1.x1h_1.kotlinx$atomicfu$value == null)) {
|
|
428
|
+
this.g9_1 = 3;
|
|
389
429
|
continue $sm;
|
|
390
430
|
}
|
|
391
431
|
|
|
392
|
-
this.
|
|
432
|
+
this.g9_1 = 2;
|
|
393
433
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
394
|
-
cancellable.
|
|
395
|
-
var tmp0 = this.
|
|
434
|
+
cancellable.ys();
|
|
435
|
+
var tmp0 = this.u1i_1;
|
|
396
436
|
var tmp1 = new Write(cancellable);
|
|
397
437
|
l$ret$1: do {
|
|
398
|
-
var previous = tmp0.
|
|
438
|
+
var previous = tmp0.u1h_1.kotlinx$atomicfu$value;
|
|
399
439
|
if (!(previous instanceof Closed)) {
|
|
400
|
-
if (!tmp0.
|
|
401
|
-
tmp1.
|
|
440
|
+
if (!tmp0.u1h_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
441
|
+
tmp1.k1h();
|
|
402
442
|
break l$ret$1;
|
|
403
443
|
}
|
|
404
444
|
}
|
|
405
445
|
if (previous instanceof Write) {
|
|
406
|
-
previous.
|
|
446
|
+
previous.l1h(new ConcurrentIOException(tmp1.j1h(), previous.h1h()));
|
|
407
447
|
} else {
|
|
408
448
|
if (isInterface(previous, Task)) {
|
|
409
|
-
previous.
|
|
449
|
+
previous.k1h();
|
|
410
450
|
} else {
|
|
411
451
|
if (previous instanceof Closed) {
|
|
412
|
-
tmp1.
|
|
452
|
+
tmp1.l1h(previous.g1h_1);
|
|
413
453
|
break l$ret$1;
|
|
414
454
|
} else {
|
|
415
455
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -418,68 +458,68 @@
|
|
|
418
458
|
}
|
|
419
459
|
}
|
|
420
460
|
}
|
|
421
|
-
if (!(this.
|
|
422
|
-
var current = tmp0.
|
|
461
|
+
if (!(this.s1i_1.s1h_1 >= 1048576 && this.s1i_1.x1h_1.kotlinx$atomicfu$value == null)) {
|
|
462
|
+
var current = tmp0.u1h_1.kotlinx$atomicfu$value;
|
|
423
463
|
var tmp_1;
|
|
424
464
|
if (current instanceof Write) {
|
|
425
|
-
tmp_1 = tmp0.
|
|
465
|
+
tmp_1 = tmp0.u1h_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
426
466
|
} else {
|
|
427
467
|
tmp_1 = false;
|
|
428
468
|
}
|
|
429
469
|
if (tmp_1) {
|
|
430
|
-
current.
|
|
470
|
+
current.k1h();
|
|
431
471
|
}
|
|
432
472
|
}
|
|
433
473
|
}
|
|
434
474
|
while (false);
|
|
435
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
475
|
+
suspendResult = returnIfSuspended(cancellable.gt(), this);
|
|
436
476
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
437
477
|
return suspendResult;
|
|
438
478
|
}
|
|
439
479
|
|
|
440
480
|
continue $sm;
|
|
441
481
|
case 2:
|
|
442
|
-
this.
|
|
482
|
+
this.g9_1 = 1;
|
|
443
483
|
continue $sm;
|
|
444
484
|
case 3:
|
|
445
485
|
return Unit_instance;
|
|
446
486
|
case 4:
|
|
447
|
-
throw this.
|
|
487
|
+
throw this.j9_1;
|
|
448
488
|
}
|
|
449
489
|
} catch ($p) {
|
|
450
490
|
var e = $p;
|
|
451
|
-
if (this.
|
|
491
|
+
if (this.h9_1 === 4) {
|
|
452
492
|
throw e;
|
|
453
493
|
} else {
|
|
454
|
-
this.
|
|
455
|
-
this.
|
|
494
|
+
this.g9_1 = this.h9_1;
|
|
495
|
+
this.j9_1 = e;
|
|
456
496
|
}
|
|
457
497
|
}
|
|
458
498
|
while (true);
|
|
459
499
|
};
|
|
460
500
|
function $flushAndCloseCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
461
501
|
CoroutineImpl.call(this, resultContinuation);
|
|
462
|
-
this.
|
|
502
|
+
this.e1j_1 = _this__u8e3s4;
|
|
463
503
|
}
|
|
464
|
-
protoOf($flushAndCloseCOROUTINE$2).
|
|
465
|
-
var suspendResult = this.
|
|
504
|
+
protoOf($flushAndCloseCOROUTINE$2).o9 = function () {
|
|
505
|
+
var suspendResult = this.i9_1;
|
|
466
506
|
$sm: do
|
|
467
507
|
try {
|
|
468
|
-
var tmp = this.
|
|
508
|
+
var tmp = this.g9_1;
|
|
469
509
|
switch (tmp) {
|
|
470
510
|
case 0:
|
|
471
|
-
this.
|
|
511
|
+
this.h9_1 = 4;
|
|
472
512
|
var tmp_0 = this;
|
|
473
|
-
tmp_0.
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
513
|
+
tmp_0.f1j_1 = this.e1j_1;
|
|
514
|
+
this.g1j_1 = this.f1j_1;
|
|
515
|
+
this.h9_1 = 2;
|
|
476
516
|
var tmp_1 = this;
|
|
477
|
-
tmp_1.
|
|
517
|
+
tmp_1.i1j_1 = Companion_instance;
|
|
478
518
|
var tmp_2 = this;
|
|
479
|
-
tmp_2.
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
482
|
-
suspendResult = this.
|
|
519
|
+
tmp_2.j1j_1 = this.g1j_1;
|
|
520
|
+
this.k1j_1 = this.j1j_1;
|
|
521
|
+
this.g9_1 = 1;
|
|
522
|
+
suspendResult = this.k1j_1.l1j(this);
|
|
483
523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
484
524
|
return suspendResult;
|
|
485
525
|
}
|
|
@@ -487,137 +527,143 @@
|
|
|
487
527
|
continue $sm;
|
|
488
528
|
case 1:
|
|
489
529
|
var tmp_3 = this;
|
|
490
|
-
this.
|
|
491
|
-
tmp_3.
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
530
|
+
this.i1j_1;
|
|
531
|
+
tmp_3.h1j_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
532
|
+
this.h9_1 = 4;
|
|
533
|
+
this.g9_1 = 3;
|
|
494
534
|
continue $sm;
|
|
495
535
|
case 2:
|
|
496
|
-
this.
|
|
497
|
-
var tmp_4 = this.
|
|
536
|
+
this.h9_1 = 4;
|
|
537
|
+
var tmp_4 = this.j9_1;
|
|
498
538
|
if (tmp_4 instanceof Error) {
|
|
499
|
-
var e = this.
|
|
539
|
+
var e = this.j9_1;
|
|
500
540
|
var tmp_5 = this;
|
|
501
|
-
tmp_5.
|
|
502
|
-
this.
|
|
541
|
+
tmp_5.h1j_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
542
|
+
this.g9_1 = 3;
|
|
503
543
|
continue $sm;
|
|
504
544
|
} else {
|
|
505
|
-
throw this.
|
|
545
|
+
throw this.j9_1;
|
|
506
546
|
}
|
|
507
547
|
|
|
508
548
|
case 3:
|
|
509
|
-
this.
|
|
510
|
-
if (!this.
|
|
549
|
+
this.h9_1 = 4;
|
|
550
|
+
if (!this.e1j_1.x1h_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
511
551
|
return Unit_instance;
|
|
512
|
-
closeSlot(this.
|
|
552
|
+
closeSlot(this.e1j_1, null);
|
|
513
553
|
return Unit_instance;
|
|
514
554
|
case 4:
|
|
515
|
-
throw this.
|
|
555
|
+
throw this.j9_1;
|
|
516
556
|
}
|
|
517
557
|
} catch ($p) {
|
|
518
558
|
var e_0 = $p;
|
|
519
|
-
if (this.
|
|
559
|
+
if (this.h9_1 === 4) {
|
|
520
560
|
throw e_0;
|
|
521
561
|
} else {
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
562
|
+
this.g9_1 = this.h9_1;
|
|
563
|
+
this.j9_1 = e_0;
|
|
524
564
|
}
|
|
525
565
|
}
|
|
526
566
|
while (true);
|
|
527
567
|
};
|
|
528
568
|
function ByteChannel(autoFlush) {
|
|
529
569
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
538
|
-
}
|
|
539
|
-
protoOf(ByteChannel).
|
|
540
|
-
var tmp0_safe_receiver = this.
|
|
570
|
+
this.q1h_1 = autoFlush;
|
|
571
|
+
this.r1h_1 = new Buffer();
|
|
572
|
+
this.s1h_1 = 0;
|
|
573
|
+
this.t1h_1 = new Object();
|
|
574
|
+
this.u1h_1 = atomic$ref$1(Empty_instance);
|
|
575
|
+
this.v1h_1 = new Buffer();
|
|
576
|
+
this.w1h_1 = new Buffer();
|
|
577
|
+
this.x1h_1 = atomic$ref$1(null);
|
|
578
|
+
}
|
|
579
|
+
protoOf(ByteChannel).m1j = function () {
|
|
580
|
+
var tmp0_safe_receiver = this.x1h_1.kotlinx$atomicfu$value;
|
|
541
581
|
if (tmp0_safe_receiver == null)
|
|
542
582
|
null;
|
|
543
583
|
else {
|
|
544
|
-
|
|
545
|
-
throw tmp0_safe_receiver;
|
|
584
|
+
tmp0_safe_receiver.o1j(ClosedReadChannelException$_init_$ref_ix0089());
|
|
546
585
|
}
|
|
547
|
-
if (this.
|
|
586
|
+
if (this.v1h_1.g1e()) {
|
|
548
587
|
moveFlushToReadBuffer(this);
|
|
549
588
|
}
|
|
550
|
-
return this.
|
|
589
|
+
return this.v1h_1;
|
|
551
590
|
};
|
|
552
|
-
protoOf(ByteChannel).
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
591
|
+
protoOf(ByteChannel).p1j = function () {
|
|
592
|
+
if (this.q1j()) {
|
|
593
|
+
var tmp0_safe_receiver = this.x1h_1.kotlinx$atomicfu$value;
|
|
594
|
+
var tmp;
|
|
595
|
+
if (tmp0_safe_receiver == null) {
|
|
596
|
+
tmp = null;
|
|
597
|
+
} else {
|
|
598
|
+
tmp = tmp0_safe_receiver.o1j(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
599
|
+
}
|
|
600
|
+
if (tmp == null)
|
|
601
|
+
throw new ClosedWriteChannelException();
|
|
562
602
|
}
|
|
563
|
-
return this.
|
|
603
|
+
return this.w1h_1;
|
|
564
604
|
};
|
|
565
|
-
protoOf(ByteChannel).
|
|
566
|
-
var tmp0_safe_receiver = this.
|
|
567
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
605
|
+
protoOf(ByteChannel).r1j = function () {
|
|
606
|
+
var tmp0_safe_receiver = this.x1h_1.kotlinx$atomicfu$value;
|
|
607
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1j();
|
|
568
608
|
};
|
|
569
|
-
protoOf(ByteChannel).
|
|
570
|
-
return !(this.
|
|
609
|
+
protoOf(ByteChannel).q1j = function () {
|
|
610
|
+
return !(this.x1h_1.kotlinx$atomicfu$value == null);
|
|
571
611
|
};
|
|
572
|
-
protoOf(ByteChannel).
|
|
573
|
-
return !(this.
|
|
612
|
+
protoOf(ByteChannel).t1j = function () {
|
|
613
|
+
return !(this.r1j() == null) || (this.q1j() && this.s1h_1 === 0 && this.v1h_1.g1e());
|
|
574
614
|
};
|
|
575
|
-
protoOf(ByteChannel).
|
|
615
|
+
protoOf(ByteChannel).u1j = function (min, $completion) {
|
|
576
616
|
var tmp = new $awaitContentCOROUTINE$0(this, min, $completion);
|
|
577
|
-
tmp.
|
|
578
|
-
tmp.
|
|
579
|
-
return tmp.
|
|
617
|
+
tmp.i9_1 = Unit_instance;
|
|
618
|
+
tmp.j9_1 = null;
|
|
619
|
+
return tmp.o9();
|
|
580
620
|
};
|
|
581
|
-
protoOf(ByteChannel).
|
|
621
|
+
protoOf(ByteChannel).l1j = function ($completion) {
|
|
582
622
|
var tmp = new $flushCOROUTINE$1(this, $completion);
|
|
583
|
-
tmp.
|
|
584
|
-
tmp.
|
|
585
|
-
return tmp.
|
|
623
|
+
tmp.i9_1 = Unit_instance;
|
|
624
|
+
tmp.j9_1 = null;
|
|
625
|
+
return tmp.o9();
|
|
586
626
|
};
|
|
587
|
-
protoOf(ByteChannel).
|
|
588
|
-
if (this.
|
|
627
|
+
protoOf(ByteChannel).v1i = function () {
|
|
628
|
+
if (this.w1h_1.g1e())
|
|
589
629
|
return Unit_instance;
|
|
590
630
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
591
|
-
this.
|
|
631
|
+
this.t1h_1;
|
|
592
632
|
// Inline function 'io.ktor.utils.io.ByteChannel.flushWriteBuffer.<anonymous>' call
|
|
593
|
-
var count = this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
633
|
+
var count = this.w1h_1.s().j1();
|
|
634
|
+
this.r1h_1.y1f(this.w1h_1);
|
|
635
|
+
this.s1h_1 = this.s1h_1 + count | 0;
|
|
596
636
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
597
|
-
var current = this.
|
|
637
|
+
var current = this.u1h_1.kotlinx$atomicfu$value;
|
|
598
638
|
var tmp;
|
|
599
639
|
if (current instanceof Read) {
|
|
600
|
-
tmp = this.
|
|
640
|
+
tmp = this.u1h_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
601
641
|
} else {
|
|
602
642
|
tmp = false;
|
|
603
643
|
}
|
|
604
644
|
if (tmp) {
|
|
605
|
-
current.
|
|
645
|
+
current.k1h();
|
|
606
646
|
}
|
|
607
647
|
};
|
|
608
|
-
protoOf(ByteChannel).
|
|
648
|
+
protoOf(ByteChannel).p4 = function () {
|
|
649
|
+
this.v1i();
|
|
650
|
+
if (!this.x1h_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
651
|
+
return Unit_instance;
|
|
652
|
+
closeSlot(this, null);
|
|
653
|
+
};
|
|
654
|
+
protoOf(ByteChannel).w1j = function ($completion) {
|
|
609
655
|
var tmp = new $flushAndCloseCOROUTINE$2(this, $completion);
|
|
610
|
-
tmp.
|
|
611
|
-
tmp.
|
|
612
|
-
return tmp.
|
|
656
|
+
tmp.i9_1 = Unit_instance;
|
|
657
|
+
tmp.j9_1 = null;
|
|
658
|
+
return tmp.o9();
|
|
613
659
|
};
|
|
614
|
-
protoOf(ByteChannel).
|
|
615
|
-
if (!(this.
|
|
660
|
+
protoOf(ByteChannel).x1j = function (cause) {
|
|
661
|
+
if (!(this.x1h_1.kotlinx$atomicfu$value == null))
|
|
616
662
|
return Unit_instance;
|
|
617
663
|
var closedToken = new CloseToken(cause);
|
|
618
|
-
this.
|
|
619
|
-
var
|
|
620
|
-
closeSlot(this,
|
|
664
|
+
this.x1h_1.atomicfu$compareAndSet(null, closedToken);
|
|
665
|
+
var wrappedCause = closedToken.s1j();
|
|
666
|
+
closeSlot(this, wrappedCause);
|
|
621
667
|
};
|
|
622
668
|
protoOf(ByteChannel).toString = function () {
|
|
623
669
|
return 'ByteChannel[' + hashCode(this) + ']';
|
|
@@ -633,7 +679,7 @@
|
|
|
633
679
|
// Inline function 'kotlin.also' call
|
|
634
680
|
var this_0 = new Buffer();
|
|
635
681
|
// Inline function 'io.ktor.utils.io.ByteReadChannel.<anonymous>' call
|
|
636
|
-
this_0.
|
|
682
|
+
this_0.p1f(content, offset, offset + length | 0);
|
|
637
683
|
var source = this_0;
|
|
638
684
|
return ByteReadChannel_0(source);
|
|
639
685
|
}
|
|
@@ -641,27 +687,27 @@
|
|
|
641
687
|
return new SourceByteReadChannel(source);
|
|
642
688
|
}
|
|
643
689
|
function ByteReadChannel$Companion$Empty$1() {
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
690
|
+
this.y1j_1 = null;
|
|
691
|
+
this.z1j_1 = new Buffer();
|
|
646
692
|
}
|
|
647
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
648
|
-
return this.
|
|
693
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r1j = function () {
|
|
694
|
+
return this.y1j_1;
|
|
649
695
|
};
|
|
650
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
696
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1j = function () {
|
|
651
697
|
return true;
|
|
652
698
|
};
|
|
653
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
654
|
-
return this.
|
|
699
|
+
protoOf(ByteReadChannel$Companion$Empty$1).m1j = function () {
|
|
700
|
+
return this.z1j_1;
|
|
655
701
|
};
|
|
656
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
702
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1j = function (min, $completion) {
|
|
657
703
|
return false;
|
|
658
704
|
};
|
|
659
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
705
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x1j = function (cause) {
|
|
660
706
|
};
|
|
661
707
|
function Companion_0() {
|
|
662
708
|
Companion_instance_1 = this;
|
|
663
709
|
var tmp = this;
|
|
664
|
-
tmp.
|
|
710
|
+
tmp.a1k_1 = new ByteReadChannel$Companion$Empty$1();
|
|
665
711
|
}
|
|
666
712
|
var Companion_instance_1;
|
|
667
713
|
function Companion_getInstance_0() {
|
|
@@ -672,45 +718,52 @@
|
|
|
672
718
|
function ByteReadChannel_1() {
|
|
673
719
|
}
|
|
674
720
|
function cancel_0(_this__u8e3s4) {
|
|
675
|
-
_this__u8e3s4.
|
|
721
|
+
_this__u8e3s4.x1j(IOException_init_$Create$('Channel was cancelled'));
|
|
676
722
|
}
|
|
677
723
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
678
724
|
var tmp = new $readRemainingCOROUTINE$3(_this__u8e3s4, $completion);
|
|
679
|
-
tmp.
|
|
680
|
-
tmp.
|
|
681
|
-
return tmp.
|
|
725
|
+
tmp.i9_1 = Unit_instance;
|
|
726
|
+
tmp.j9_1 = null;
|
|
727
|
+
return tmp.o9();
|
|
682
728
|
}
|
|
683
729
|
function get_availableForRead(_this__u8e3s4) {
|
|
684
|
-
return _this__u8e3s4.
|
|
730
|
+
return _this__u8e3s4.m1j().f1e().s().j1();
|
|
685
731
|
}
|
|
686
732
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
687
733
|
var tmp = new $readPacketCOROUTINE$4(_this__u8e3s4, packet, $completion);
|
|
688
|
-
tmp.
|
|
689
|
-
tmp.
|
|
690
|
-
return tmp.
|
|
734
|
+
tmp.i9_1 = Unit_instance;
|
|
735
|
+
tmp.j9_1 = null;
|
|
736
|
+
return tmp.o9();
|
|
737
|
+
}
|
|
738
|
+
function discard(_this__u8e3s4, max, $completion) {
|
|
739
|
+
max = max === VOID ? new Long(-1, 2147483647) : max;
|
|
740
|
+
var tmp = new $discardCOROUTINE$5(_this__u8e3s4, max, $completion);
|
|
741
|
+
tmp.i9_1 = Unit_instance;
|
|
742
|
+
tmp.j9_1 = null;
|
|
743
|
+
return tmp.o9();
|
|
691
744
|
}
|
|
692
745
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
693
746
|
offset = offset === VOID ? 0 : offset;
|
|
694
747
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
695
|
-
var tmp = new $readAvailableCOROUTINE$
|
|
696
|
-
tmp.
|
|
697
|
-
tmp.
|
|
698
|
-
return tmp.
|
|
748
|
+
var tmp = new $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, $completion);
|
|
749
|
+
tmp.i9_1 = Unit_instance;
|
|
750
|
+
tmp.j9_1 = null;
|
|
751
|
+
return tmp.o9();
|
|
699
752
|
}
|
|
700
753
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
701
|
-
var tmp = new $toByteArrayCOROUTINE$
|
|
702
|
-
tmp.
|
|
703
|
-
tmp.
|
|
704
|
-
return tmp.
|
|
754
|
+
var tmp = new $toByteArrayCOROUTINE$9(_this__u8e3s4, $completion);
|
|
755
|
+
tmp.i9_1 = Unit_instance;
|
|
756
|
+
tmp.j9_1 = null;
|
|
757
|
+
return tmp.o9();
|
|
705
758
|
}
|
|
706
759
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
707
|
-
var tmp = new $copyToCOROUTINE$
|
|
708
|
-
tmp.
|
|
709
|
-
tmp.
|
|
710
|
-
return tmp.
|
|
760
|
+
var tmp = new $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, $completion);
|
|
761
|
+
tmp.i9_1 = Unit_instance;
|
|
762
|
+
tmp.j9_1 = null;
|
|
763
|
+
return tmp.o9();
|
|
711
764
|
}
|
|
712
765
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
713
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
766
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1j();
|
|
714
767
|
if (tmp0_safe_receiver == null)
|
|
715
768
|
null;
|
|
716
769
|
else {
|
|
@@ -718,14 +771,21 @@
|
|
|
718
771
|
throw tmp0_safe_receiver;
|
|
719
772
|
}
|
|
720
773
|
}
|
|
774
|
+
function readUTF8LineTo(_this__u8e3s4, out, max, $completion) {
|
|
775
|
+
max = max === VOID ? 2147483647 : max;
|
|
776
|
+
var tmp = new $readUTF8LineToCOROUTINE$12(_this__u8e3s4, out, max, $completion);
|
|
777
|
+
tmp.i9_1 = Unit_instance;
|
|
778
|
+
tmp.j9_1 = null;
|
|
779
|
+
return tmp.o9();
|
|
780
|
+
}
|
|
721
781
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
722
782
|
var tmp = new $readBufferCOROUTINE$13(_this__u8e3s4, $completion);
|
|
723
|
-
tmp.
|
|
724
|
-
tmp.
|
|
725
|
-
return tmp.
|
|
783
|
+
tmp.i9_1 = Unit_instance;
|
|
784
|
+
tmp.j9_1 = null;
|
|
785
|
+
return tmp.o9();
|
|
726
786
|
}
|
|
727
787
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
728
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
788
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1j();
|
|
729
789
|
if (tmp0_safe_receiver == null)
|
|
730
790
|
null;
|
|
731
791
|
else {
|
|
@@ -734,7 +794,7 @@
|
|
|
734
794
|
}
|
|
735
795
|
}
|
|
736
796
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
737
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
797
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1j();
|
|
738
798
|
if (tmp0_safe_receiver == null)
|
|
739
799
|
null;
|
|
740
800
|
else {
|
|
@@ -742,194 +802,315 @@
|
|
|
742
802
|
throw tmp0_safe_receiver;
|
|
743
803
|
}
|
|
744
804
|
}
|
|
805
|
+
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
806
|
+
var tmp = new $skipIfFoundCOROUTINE$15(_this__u8e3s4, byteString, $completion);
|
|
807
|
+
tmp.i9_1 = Unit_instance;
|
|
808
|
+
tmp.j9_1 = null;
|
|
809
|
+
return tmp.o9();
|
|
810
|
+
}
|
|
811
|
+
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
812
|
+
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
813
|
+
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
814
|
+
var tmp = new $readUntilCOROUTINE$16(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion);
|
|
815
|
+
tmp.i9_1 = Unit_instance;
|
|
816
|
+
tmp.j9_1 = null;
|
|
817
|
+
return tmp.o9();
|
|
818
|
+
}
|
|
819
|
+
function peek(_this__u8e3s4, count, $completion) {
|
|
820
|
+
var tmp = new $peekCOROUTINE$17(_this__u8e3s4, count, $completion);
|
|
821
|
+
tmp.i9_1 = Unit_instance;
|
|
822
|
+
tmp.j9_1 = null;
|
|
823
|
+
return tmp.o9();
|
|
824
|
+
}
|
|
825
|
+
function buildPartialMatchTable(byteString) {
|
|
826
|
+
var table = new Int32Array(byteString.s());
|
|
827
|
+
var j = 0;
|
|
828
|
+
var inductionVariable = 1;
|
|
829
|
+
var last = byteString.s();
|
|
830
|
+
if (inductionVariable < last)
|
|
831
|
+
do {
|
|
832
|
+
var i = inductionVariable;
|
|
833
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
+
while (j > 0 && !(byteString.u(i) === byteString.u(j))) {
|
|
835
|
+
j = table[j - 1 | 0];
|
|
836
|
+
}
|
|
837
|
+
if (byteString.u(i) === byteString.u(j)) {
|
|
838
|
+
j = j + 1 | 0;
|
|
839
|
+
}
|
|
840
|
+
table[i] = j;
|
|
841
|
+
}
|
|
842
|
+
while (inductionVariable < last);
|
|
843
|
+
return table;
|
|
844
|
+
}
|
|
845
|
+
function readByte(_this__u8e3s4, $completion) {
|
|
846
|
+
var tmp = new $readByteCOROUTINE$18(_this__u8e3s4, $completion);
|
|
847
|
+
tmp.i9_1 = Unit_instance;
|
|
848
|
+
tmp.j9_1 = null;
|
|
849
|
+
return tmp.o9();
|
|
850
|
+
}
|
|
851
|
+
function toSingleLineString(_this__u8e3s4) {
|
|
852
|
+
return replace(decodeToString(_this__u8e3s4), '\n', '\\n');
|
|
853
|
+
}
|
|
854
|
+
function readUntil$appendPartialMatch($writeChannel, matchBuffer, matchIndex, rc, $completion) {
|
|
855
|
+
var tmp = new $readUntil$appendPartialMatchCOROUTINE$19($writeChannel, matchBuffer, matchIndex, rc, $completion);
|
|
856
|
+
tmp.i9_1 = Unit_instance;
|
|
857
|
+
tmp.j9_1 = null;
|
|
858
|
+
return tmp.o9();
|
|
859
|
+
}
|
|
860
|
+
function readUntil$resetPartialMatch(matchIndex, $matchString, partialMatchTable, byte) {
|
|
861
|
+
while (matchIndex._v > 0 && !(byte === $matchString.u(matchIndex._v))) {
|
|
862
|
+
matchIndex._v = partialMatchTable[matchIndex._v - 1 | 0];
|
|
863
|
+
}
|
|
864
|
+
}
|
|
745
865
|
function $readRemainingCOROUTINE$3(_this__u8e3s4, resultContinuation) {
|
|
746
866
|
CoroutineImpl.call(this, resultContinuation);
|
|
747
|
-
this.
|
|
867
|
+
this.j1k_1 = _this__u8e3s4;
|
|
748
868
|
}
|
|
749
|
-
protoOf($readRemainingCOROUTINE$3).
|
|
750
|
-
var suspendResult = this.
|
|
869
|
+
protoOf($readRemainingCOROUTINE$3).o9 = function () {
|
|
870
|
+
var suspendResult = this.i9_1;
|
|
751
871
|
$sm: do
|
|
752
872
|
try {
|
|
753
|
-
var tmp = this.
|
|
873
|
+
var tmp = this.g9_1;
|
|
754
874
|
switch (tmp) {
|
|
755
875
|
case 0:
|
|
756
|
-
this.
|
|
757
|
-
this.
|
|
758
|
-
this.
|
|
876
|
+
this.h9_1 = 4;
|
|
877
|
+
this.k1k_1 = BytePacketBuilder();
|
|
878
|
+
this.g9_1 = 1;
|
|
759
879
|
continue $sm;
|
|
760
880
|
case 1:
|
|
761
|
-
if (!!this.
|
|
762
|
-
this.
|
|
881
|
+
if (!!this.j1k_1.t1j()) {
|
|
882
|
+
this.g9_1 = 3;
|
|
763
883
|
continue $sm;
|
|
764
884
|
}
|
|
765
885
|
|
|
766
|
-
this.
|
|
767
|
-
this.
|
|
768
|
-
suspendResult = this.
|
|
886
|
+
this.k1k_1.y1f(this.j1k_1.m1j());
|
|
887
|
+
this.g9_1 = 2;
|
|
888
|
+
suspendResult = this.j1k_1.v1j(VOID, this);
|
|
769
889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
770
890
|
return suspendResult;
|
|
771
891
|
}
|
|
772
892
|
|
|
773
893
|
continue $sm;
|
|
774
894
|
case 2:
|
|
775
|
-
this.
|
|
895
|
+
this.g9_1 = 1;
|
|
776
896
|
continue $sm;
|
|
777
897
|
case 3:
|
|
778
|
-
rethrowCloseCauseIfNeeded(this.
|
|
779
|
-
return this.
|
|
898
|
+
rethrowCloseCauseIfNeeded(this.j1k_1);
|
|
899
|
+
return this.k1k_1.f1e();
|
|
780
900
|
case 4:
|
|
781
|
-
throw this.
|
|
901
|
+
throw this.j9_1;
|
|
782
902
|
}
|
|
783
903
|
} catch ($p) {
|
|
784
904
|
var e = $p;
|
|
785
|
-
if (this.
|
|
905
|
+
if (this.h9_1 === 4) {
|
|
786
906
|
throw e;
|
|
787
907
|
} else {
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
908
|
+
this.g9_1 = this.h9_1;
|
|
909
|
+
this.j9_1 = e;
|
|
790
910
|
}
|
|
791
911
|
}
|
|
792
912
|
while (true);
|
|
793
913
|
};
|
|
794
914
|
function $readPacketCOROUTINE$4(_this__u8e3s4, packet, resultContinuation) {
|
|
795
915
|
CoroutineImpl.call(this, resultContinuation);
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
916
|
+
this.t1k_1 = _this__u8e3s4;
|
|
917
|
+
this.u1k_1 = packet;
|
|
798
918
|
}
|
|
799
|
-
protoOf($readPacketCOROUTINE$4).
|
|
800
|
-
var suspendResult = this.
|
|
919
|
+
protoOf($readPacketCOROUTINE$4).o9 = function () {
|
|
920
|
+
var suspendResult = this.i9_1;
|
|
801
921
|
$sm: do
|
|
802
922
|
try {
|
|
803
|
-
var tmp = this.
|
|
923
|
+
var tmp = this.g9_1;
|
|
804
924
|
switch (tmp) {
|
|
805
925
|
case 0:
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
926
|
+
this.h9_1 = 6;
|
|
927
|
+
this.v1k_1 = new Buffer();
|
|
928
|
+
this.g9_1 = 1;
|
|
809
929
|
continue $sm;
|
|
810
930
|
case 1:
|
|
811
|
-
if (!(this.
|
|
812
|
-
this.
|
|
931
|
+
if (!(this.v1k_1.s().e1(toLong(this.u1k_1)) < 0)) {
|
|
932
|
+
this.g9_1 = 5;
|
|
813
933
|
continue $sm;
|
|
814
934
|
}
|
|
815
935
|
|
|
816
|
-
if (this.
|
|
817
|
-
this.
|
|
818
|
-
suspendResult = this.
|
|
936
|
+
if (this.t1k_1.m1j().g1e()) {
|
|
937
|
+
this.g9_1 = 2;
|
|
938
|
+
suspendResult = this.t1k_1.v1j(VOID, this);
|
|
819
939
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
820
940
|
return suspendResult;
|
|
821
941
|
}
|
|
822
942
|
continue $sm;
|
|
823
943
|
} else {
|
|
824
|
-
this.
|
|
944
|
+
this.g9_1 = 3;
|
|
825
945
|
continue $sm;
|
|
826
946
|
}
|
|
827
947
|
|
|
828
948
|
case 2:
|
|
829
|
-
this.
|
|
949
|
+
this.g9_1 = 3;
|
|
830
950
|
continue $sm;
|
|
831
951
|
case 3:
|
|
832
|
-
if (this.
|
|
833
|
-
this.
|
|
952
|
+
if (this.t1k_1.t1j()) {
|
|
953
|
+
this.g9_1 = 5;
|
|
834
954
|
continue $sm;
|
|
835
955
|
} else {
|
|
836
|
-
this.
|
|
956
|
+
this.g9_1 = 4;
|
|
837
957
|
continue $sm;
|
|
838
958
|
}
|
|
839
959
|
|
|
840
960
|
case 4:
|
|
841
|
-
if (get_remaining(this.
|
|
842
|
-
this.
|
|
961
|
+
if (get_remaining(this.t1k_1.m1j()).e1(numberToLong(this.u1k_1).a3(this.v1k_1.s())) > 0) {
|
|
962
|
+
this.t1k_1.m1j().i1f(this.v1k_1, numberToLong(this.u1k_1).a3(this.v1k_1.s()));
|
|
843
963
|
} else {
|
|
844
|
-
this.
|
|
964
|
+
this.t1k_1.m1j().j1f(this.v1k_1);
|
|
845
965
|
}
|
|
846
966
|
|
|
847
|
-
this.
|
|
967
|
+
this.g9_1 = 1;
|
|
848
968
|
continue $sm;
|
|
849
969
|
case 5:
|
|
850
|
-
if (this.
|
|
851
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
970
|
+
if (this.v1k_1.s().e1(toLong(this.u1k_1)) < 0) {
|
|
971
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.u1k_1 + ' bytes but only ' + this.v1k_1.s().toString() + ' available');
|
|
852
972
|
}
|
|
853
973
|
|
|
854
|
-
return this.
|
|
974
|
+
return this.v1k_1;
|
|
855
975
|
case 6:
|
|
856
|
-
throw this.
|
|
976
|
+
throw this.j9_1;
|
|
857
977
|
}
|
|
858
978
|
} catch ($p) {
|
|
859
979
|
var e = $p;
|
|
860
|
-
if (this.
|
|
980
|
+
if (this.h9_1 === 6) {
|
|
861
981
|
throw e;
|
|
862
982
|
} else {
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
983
|
+
this.g9_1 = this.h9_1;
|
|
984
|
+
this.j9_1 = e;
|
|
865
985
|
}
|
|
866
986
|
}
|
|
867
987
|
while (true);
|
|
868
988
|
};
|
|
869
|
-
function $
|
|
989
|
+
function $discardCOROUTINE$5(_this__u8e3s4, max, resultContinuation) {
|
|
870
990
|
CoroutineImpl.call(this, resultContinuation);
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.g1i_1 = offset;
|
|
874
|
-
this.h1i_1 = length;
|
|
991
|
+
this.e1l_1 = _this__u8e3s4;
|
|
992
|
+
this.f1l_1 = max;
|
|
875
993
|
}
|
|
876
|
-
protoOf($
|
|
877
|
-
var suspendResult = this.
|
|
994
|
+
protoOf($discardCOROUTINE$5).o9 = function () {
|
|
995
|
+
var suspendResult = this.i9_1;
|
|
878
996
|
$sm: do
|
|
879
997
|
try {
|
|
880
|
-
var tmp = this.
|
|
998
|
+
var tmp = this.g9_1;
|
|
881
999
|
switch (tmp) {
|
|
882
1000
|
case 0:
|
|
883
|
-
this.
|
|
884
|
-
|
|
1001
|
+
this.h9_1 = 5;
|
|
1002
|
+
this.g1l_1 = this.f1l_1;
|
|
1003
|
+
this.g9_1 = 1;
|
|
1004
|
+
continue $sm;
|
|
1005
|
+
case 1:
|
|
1006
|
+
if (!(this.g1l_1.e1(new Long(0, 0)) > 0 && !this.e1l_1.t1j())) {
|
|
1007
|
+
this.g9_1 = 4;
|
|
1008
|
+
continue $sm;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
if (get_availableForRead(this.e1l_1) === 0) {
|
|
1012
|
+
this.g9_1 = 2;
|
|
1013
|
+
suspendResult = this.e1l_1.v1j(VOID, this);
|
|
1014
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1015
|
+
return suspendResult;
|
|
1016
|
+
}
|
|
1017
|
+
continue $sm;
|
|
1018
|
+
} else {
|
|
1019
|
+
this.g9_1 = 3;
|
|
1020
|
+
continue $sm;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
case 2:
|
|
1024
|
+
this.g9_1 = 3;
|
|
1025
|
+
continue $sm;
|
|
1026
|
+
case 3:
|
|
1027
|
+
var tmp0 = this.g1l_1;
|
|
1028
|
+
var b = get_remaining(this.e1l_1.m1j());
|
|
1029
|
+
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1030
|
+
discard_0(this.e1l_1.m1j(), count);
|
|
1031
|
+
this.g1l_1 = this.g1l_1.a3(count);
|
|
1032
|
+
this.g9_1 = 1;
|
|
1033
|
+
continue $sm;
|
|
1034
|
+
case 4:
|
|
1035
|
+
return this.f1l_1.a3(this.g1l_1);
|
|
1036
|
+
case 5:
|
|
1037
|
+
throw this.j9_1;
|
|
1038
|
+
}
|
|
1039
|
+
} catch ($p) {
|
|
1040
|
+
var e = $p;
|
|
1041
|
+
if (this.h9_1 === 5) {
|
|
1042
|
+
throw e;
|
|
1043
|
+
} else {
|
|
1044
|
+
this.g9_1 = this.h9_1;
|
|
1045
|
+
this.j9_1 = e;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
while (true);
|
|
1049
|
+
};
|
|
1050
|
+
function $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1051
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1052
|
+
this.p1l_1 = _this__u8e3s4;
|
|
1053
|
+
this.q1l_1 = buffer;
|
|
1054
|
+
this.r1l_1 = offset;
|
|
1055
|
+
this.s1l_1 = length;
|
|
1056
|
+
}
|
|
1057
|
+
protoOf($readAvailableCOROUTINE$7).o9 = function () {
|
|
1058
|
+
var suspendResult = this.i9_1;
|
|
1059
|
+
$sm: do
|
|
1060
|
+
try {
|
|
1061
|
+
var tmp = this.g9_1;
|
|
1062
|
+
switch (tmp) {
|
|
1063
|
+
case 0:
|
|
1064
|
+
this.h9_1 = 3;
|
|
1065
|
+
if (this.p1l_1.t1j())
|
|
885
1066
|
return -1;
|
|
886
|
-
if (this.
|
|
887
|
-
this.
|
|
888
|
-
suspendResult = this.
|
|
1067
|
+
if (this.p1l_1.m1j().g1e()) {
|
|
1068
|
+
this.g9_1 = 1;
|
|
1069
|
+
suspendResult = this.p1l_1.v1j(VOID, this);
|
|
889
1070
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
890
1071
|
return suspendResult;
|
|
891
1072
|
}
|
|
892
1073
|
continue $sm;
|
|
893
1074
|
} else {
|
|
894
|
-
this.
|
|
1075
|
+
this.g9_1 = 2;
|
|
895
1076
|
continue $sm;
|
|
896
1077
|
}
|
|
897
1078
|
|
|
898
1079
|
case 1:
|
|
899
|
-
this.
|
|
1080
|
+
this.g9_1 = 2;
|
|
900
1081
|
continue $sm;
|
|
901
1082
|
case 2:
|
|
902
|
-
if (this.
|
|
1083
|
+
if (this.p1l_1.t1j())
|
|
903
1084
|
return -1;
|
|
904
|
-
return readAvailable_0(this.
|
|
1085
|
+
return readAvailable_0(this.p1l_1.m1j(), this.q1l_1, this.r1l_1, this.s1l_1);
|
|
905
1086
|
case 3:
|
|
906
|
-
throw this.
|
|
1087
|
+
throw this.j9_1;
|
|
907
1088
|
}
|
|
908
1089
|
} catch ($p) {
|
|
909
1090
|
var e = $p;
|
|
910
|
-
if (this.
|
|
1091
|
+
if (this.h9_1 === 3) {
|
|
911
1092
|
throw e;
|
|
912
1093
|
} else {
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
1094
|
+
this.g9_1 = this.h9_1;
|
|
1095
|
+
this.j9_1 = e;
|
|
915
1096
|
}
|
|
916
1097
|
}
|
|
917
1098
|
while (true);
|
|
918
1099
|
};
|
|
919
|
-
function $toByteArrayCOROUTINE$
|
|
1100
|
+
function $toByteArrayCOROUTINE$9(_this__u8e3s4, resultContinuation) {
|
|
920
1101
|
CoroutineImpl.call(this, resultContinuation);
|
|
921
|
-
this.
|
|
1102
|
+
this.b1m_1 = _this__u8e3s4;
|
|
922
1103
|
}
|
|
923
|
-
protoOf($toByteArrayCOROUTINE$
|
|
924
|
-
var suspendResult = this.
|
|
1104
|
+
protoOf($toByteArrayCOROUTINE$9).o9 = function () {
|
|
1105
|
+
var suspendResult = this.i9_1;
|
|
925
1106
|
$sm: do
|
|
926
1107
|
try {
|
|
927
|
-
var tmp = this.
|
|
1108
|
+
var tmp = this.g9_1;
|
|
928
1109
|
switch (tmp) {
|
|
929
1110
|
case 0:
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
932
|
-
suspendResult = readBuffer(this.
|
|
1111
|
+
this.h9_1 = 2;
|
|
1112
|
+
this.g9_1 = 1;
|
|
1113
|
+
suspendResult = readBuffer(this.b1m_1, this);
|
|
933
1114
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
934
1115
|
return suspendResult;
|
|
935
1116
|
}
|
|
@@ -939,244 +1120,757 @@
|
|
|
939
1120
|
var ARGUMENT = suspendResult;
|
|
940
1121
|
return readBytes(ARGUMENT);
|
|
941
1122
|
case 2:
|
|
942
|
-
throw this.
|
|
1123
|
+
throw this.j9_1;
|
|
943
1124
|
}
|
|
944
1125
|
} catch ($p) {
|
|
945
1126
|
var e = $p;
|
|
946
|
-
if (this.
|
|
1127
|
+
if (this.h9_1 === 2) {
|
|
947
1128
|
throw e;
|
|
948
1129
|
} else {
|
|
949
|
-
this.
|
|
950
|
-
this.
|
|
1130
|
+
this.g9_1 = this.h9_1;
|
|
1131
|
+
this.j9_1 = e;
|
|
951
1132
|
}
|
|
952
1133
|
}
|
|
953
1134
|
while (true);
|
|
954
1135
|
};
|
|
955
|
-
function $copyToCOROUTINE$
|
|
1136
|
+
function $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
956
1137
|
CoroutineImpl.call(this, resultContinuation);
|
|
957
|
-
this.
|
|
958
|
-
this.
|
|
959
|
-
this.
|
|
1138
|
+
this.k1m_1 = _this__u8e3s4;
|
|
1139
|
+
this.l1m_1 = channel;
|
|
1140
|
+
this.m1m_1 = limit;
|
|
960
1141
|
}
|
|
961
|
-
protoOf($copyToCOROUTINE$
|
|
962
|
-
var suspendResult = this.
|
|
1142
|
+
protoOf($copyToCOROUTINE$10).o9 = function () {
|
|
1143
|
+
var suspendResult = this.i9_1;
|
|
963
1144
|
$sm: do
|
|
964
1145
|
try {
|
|
965
|
-
var tmp = this.
|
|
1146
|
+
var tmp = this.g9_1;
|
|
966
1147
|
switch (tmp) {
|
|
967
1148
|
case 0:
|
|
968
|
-
this.
|
|
969
|
-
this.
|
|
970
|
-
this.
|
|
1149
|
+
this.h9_1 = 12;
|
|
1150
|
+
this.n1m_1 = this.m1m_1;
|
|
1151
|
+
this.g9_1 = 1;
|
|
971
1152
|
continue $sm;
|
|
972
1153
|
case 1:
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
1154
|
+
this.h9_1 = 8;
|
|
1155
|
+
this.h9_1 = 7;
|
|
1156
|
+
this.g9_1 = 2;
|
|
976
1157
|
continue $sm;
|
|
977
1158
|
case 2:
|
|
978
|
-
if (!(!this.
|
|
979
|
-
this.
|
|
1159
|
+
if (!(!this.k1m_1.t1j() && this.n1m_1.e1(new Long(0, 0)) > 0)) {
|
|
1160
|
+
this.g9_1 = 6;
|
|
980
1161
|
continue $sm;
|
|
981
1162
|
}
|
|
982
1163
|
|
|
983
|
-
if (this.
|
|
984
|
-
this.
|
|
985
|
-
suspendResult = this.
|
|
1164
|
+
if (this.k1m_1.m1j().g1e()) {
|
|
1165
|
+
this.g9_1 = 3;
|
|
1166
|
+
suspendResult = this.k1m_1.v1j(VOID, this);
|
|
986
1167
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
987
1168
|
return suspendResult;
|
|
988
1169
|
}
|
|
989
1170
|
continue $sm;
|
|
990
1171
|
} else {
|
|
991
|
-
this.
|
|
1172
|
+
this.g9_1 = 4;
|
|
992
1173
|
continue $sm;
|
|
993
1174
|
}
|
|
994
1175
|
|
|
995
1176
|
case 3:
|
|
996
|
-
this.
|
|
1177
|
+
this.g9_1 = 4;
|
|
997
1178
|
continue $sm;
|
|
998
1179
|
case 4:
|
|
999
1180
|
var tmp_0 = this;
|
|
1000
|
-
var tmp0 = this.
|
|
1001
|
-
var b = get_remaining(this.
|
|
1002
|
-
tmp_0.
|
|
1003
|
-
this.
|
|
1004
|
-
this.
|
|
1005
|
-
this.
|
|
1006
|
-
suspendResult = this.
|
|
1181
|
+
var tmp0 = this.n1m_1;
|
|
1182
|
+
var b = get_remaining(this.k1m_1.m1j());
|
|
1183
|
+
tmp_0.p1m_1 = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1184
|
+
this.k1m_1.m1j().i1f(this.l1m_1.p1j(), this.p1m_1);
|
|
1185
|
+
this.n1m_1 = this.n1m_1.a3(this.p1m_1);
|
|
1186
|
+
this.g9_1 = 5;
|
|
1187
|
+
suspendResult = this.l1m_1.l1j(this);
|
|
1007
1188
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1008
1189
|
return suspendResult;
|
|
1009
1190
|
}
|
|
1010
1191
|
|
|
1011
1192
|
continue $sm;
|
|
1012
1193
|
case 5:
|
|
1013
|
-
this.
|
|
1194
|
+
this.g9_1 = 2;
|
|
1014
1195
|
continue $sm;
|
|
1015
1196
|
case 6:
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1197
|
+
this.o1m_1 = Unit_instance;
|
|
1198
|
+
this.h9_1 = 12;
|
|
1199
|
+
this.g9_1 = 10;
|
|
1019
1200
|
continue $sm;
|
|
1020
1201
|
case 7:
|
|
1021
|
-
this.
|
|
1022
|
-
var tmp_1 = this.
|
|
1202
|
+
this.h9_1 = 8;
|
|
1203
|
+
var tmp_1 = this.j9_1;
|
|
1023
1204
|
if (tmp_1 instanceof Error) {
|
|
1024
|
-
this.
|
|
1205
|
+
this.q1m_1 = this.j9_1;
|
|
1025
1206
|
var tmp_2 = this;
|
|
1026
|
-
this.
|
|
1027
|
-
|
|
1028
|
-
throw this.
|
|
1207
|
+
this.k1m_1.x1j(this.q1m_1);
|
|
1208
|
+
close_0(this.l1m_1, this.q1m_1);
|
|
1209
|
+
throw this.q1m_1;
|
|
1210
|
+
} else {
|
|
1211
|
+
throw this.j9_1;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
case 8:
|
|
1215
|
+
this.h9_1 = 12;
|
|
1216
|
+
this.r1m_1 = this.j9_1;
|
|
1217
|
+
this.g9_1 = 9;
|
|
1218
|
+
suspendResult = this.l1m_1.l1j(this);
|
|
1219
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1220
|
+
return suspendResult;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
continue $sm;
|
|
1224
|
+
case 9:
|
|
1225
|
+
throw this.r1m_1;
|
|
1226
|
+
case 10:
|
|
1227
|
+
this.h9_1 = 12;
|
|
1228
|
+
this.g9_1 = 11;
|
|
1229
|
+
suspendResult = this.l1m_1.l1j(this);
|
|
1230
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1231
|
+
return suspendResult;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
continue $sm;
|
|
1235
|
+
case 11:
|
|
1236
|
+
return this.m1m_1.a3(this.n1m_1);
|
|
1237
|
+
case 12:
|
|
1238
|
+
throw this.j9_1;
|
|
1239
|
+
}
|
|
1240
|
+
} catch ($p) {
|
|
1241
|
+
var e = $p;
|
|
1242
|
+
if (this.h9_1 === 12) {
|
|
1243
|
+
throw e;
|
|
1244
|
+
} else {
|
|
1245
|
+
this.g9_1 = this.h9_1;
|
|
1246
|
+
this.j9_1 = e;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
while (true);
|
|
1250
|
+
};
|
|
1251
|
+
function $readUTF8LineToCOROUTINE$12(_this__u8e3s4, out, max, resultContinuation) {
|
|
1252
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1253
|
+
this.a1n_1 = _this__u8e3s4;
|
|
1254
|
+
this.b1n_1 = out;
|
|
1255
|
+
this.c1n_1 = max;
|
|
1256
|
+
}
|
|
1257
|
+
protoOf($readUTF8LineToCOROUTINE$12).o9 = function () {
|
|
1258
|
+
var suspendResult = this.i9_1;
|
|
1259
|
+
$sm: do
|
|
1260
|
+
try {
|
|
1261
|
+
var tmp = this.g9_1;
|
|
1262
|
+
switch (tmp) {
|
|
1263
|
+
case 0:
|
|
1264
|
+
this.h9_1 = 21;
|
|
1265
|
+
if (this.a1n_1.m1j().g1e()) {
|
|
1266
|
+
this.g9_1 = 1;
|
|
1267
|
+
suspendResult = this.a1n_1.v1j(VOID, this);
|
|
1268
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1269
|
+
return suspendResult;
|
|
1270
|
+
}
|
|
1271
|
+
continue $sm;
|
|
1272
|
+
} else {
|
|
1273
|
+
this.g9_1 = 2;
|
|
1274
|
+
continue $sm;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
case 1:
|
|
1278
|
+
this.g9_1 = 2;
|
|
1279
|
+
continue $sm;
|
|
1280
|
+
case 2:
|
|
1281
|
+
if (this.a1n_1.t1j())
|
|
1282
|
+
return false;
|
|
1283
|
+
var tmp_0 = this;
|
|
1284
|
+
tmp_0.d1n_1 = new Buffer();
|
|
1285
|
+
this.g9_1 = 3;
|
|
1286
|
+
continue $sm;
|
|
1287
|
+
case 3:
|
|
1288
|
+
this.f1n_1 = this.d1n_1;
|
|
1289
|
+
this.g1n_1 = null;
|
|
1290
|
+
this.g9_1 = 4;
|
|
1291
|
+
continue $sm;
|
|
1292
|
+
case 4:
|
|
1293
|
+
this.g9_1 = 5;
|
|
1294
|
+
continue $sm;
|
|
1295
|
+
case 5:
|
|
1296
|
+
this.g9_1 = 6;
|
|
1297
|
+
continue $sm;
|
|
1298
|
+
case 6:
|
|
1299
|
+
this.h9_1 = 18;
|
|
1300
|
+
this.h9_1 = 17;
|
|
1301
|
+
var tmp_1 = this;
|
|
1302
|
+
tmp_1.i1n_1 = this.f1n_1;
|
|
1303
|
+
this.j1n_1 = this.i1n_1;
|
|
1304
|
+
this.g9_1 = 7;
|
|
1305
|
+
continue $sm;
|
|
1306
|
+
case 7:
|
|
1307
|
+
if (!!this.a1n_1.t1j()) {
|
|
1308
|
+
this.g9_1 = 14;
|
|
1309
|
+
continue $sm;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
this.g9_1 = 8;
|
|
1313
|
+
continue $sm;
|
|
1314
|
+
case 8:
|
|
1315
|
+
if (!!this.a1n_1.m1j().g1e()) {
|
|
1316
|
+
this.g9_1 = 12;
|
|
1317
|
+
continue $sm;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
this.k1n_1 = this.a1n_1.m1j().j1e();
|
|
1321
|
+
if (this.k1n_1 === 13) {
|
|
1322
|
+
if (this.a1n_1.m1j().g1e()) {
|
|
1323
|
+
this.g9_1 = 10;
|
|
1324
|
+
suspendResult = this.a1n_1.v1j(VOID, this);
|
|
1325
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1326
|
+
return suspendResult;
|
|
1327
|
+
}
|
|
1328
|
+
continue $sm;
|
|
1329
|
+
} else {
|
|
1330
|
+
this.g9_1 = 11;
|
|
1331
|
+
continue $sm;
|
|
1332
|
+
}
|
|
1333
|
+
} else {
|
|
1334
|
+
if (this.k1n_1 === 10) {
|
|
1335
|
+
this.b1n_1.l(readString(this.j1n_1));
|
|
1336
|
+
this.h1n_1 = true;
|
|
1337
|
+
this.h9_1 = 21;
|
|
1338
|
+
this.g9_1 = 15;
|
|
1339
|
+
continue $sm;
|
|
1340
|
+
} else {
|
|
1341
|
+
this.j1n_1.z1f(this.k1n_1);
|
|
1342
|
+
this.g9_1 = 9;
|
|
1343
|
+
continue $sm;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
case 9:
|
|
1348
|
+
this.g9_1 = 8;
|
|
1349
|
+
continue $sm;
|
|
1350
|
+
case 10:
|
|
1351
|
+
this.g9_1 = 11;
|
|
1352
|
+
continue $sm;
|
|
1353
|
+
case 11:
|
|
1354
|
+
if (this.a1n_1.m1j().f1e().b1f(new Long(0, 0)) === 10) {
|
|
1355
|
+
discard_0(this.a1n_1.m1j(), new Long(1, 0));
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
this.b1n_1.l(readString(this.j1n_1));
|
|
1359
|
+
this.h1n_1 = true;
|
|
1360
|
+
this.h9_1 = 21;
|
|
1361
|
+
this.g9_1 = 15;
|
|
1362
|
+
continue $sm;
|
|
1363
|
+
case 12:
|
|
1364
|
+
if (this.j1n_1.s().e1(toLong(this.c1n_1)) >= 0) {
|
|
1365
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.c1n_1 + ' characters');
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
this.g9_1 = 13;
|
|
1369
|
+
suspendResult = this.a1n_1.v1j(VOID, this);
|
|
1370
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1371
|
+
return suspendResult;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
continue $sm;
|
|
1375
|
+
case 13:
|
|
1376
|
+
this.g9_1 = 7;
|
|
1377
|
+
continue $sm;
|
|
1378
|
+
case 14:
|
|
1379
|
+
var tmp_2 = this;
|
|
1380
|
+
var this_0 = this.j1n_1.s().e1(new Long(0, 0)) > 0;
|
|
1381
|
+
if (this_0) {
|
|
1382
|
+
this.b1n_1.l(readString(this.j1n_1));
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
tmp_2.h1n_1 = this_0;
|
|
1386
|
+
this.h9_1 = 21;
|
|
1387
|
+
this.g9_1 = 15;
|
|
1388
|
+
var tmp_3 = this;
|
|
1389
|
+
continue $sm;
|
|
1390
|
+
case 15:
|
|
1391
|
+
var tmp_4 = this.h1n_1;
|
|
1392
|
+
this.h9_1 = 21;
|
|
1393
|
+
closeFinally(this.f1n_1, this.g1n_1);
|
|
1394
|
+
return tmp_4;
|
|
1395
|
+
case 16:
|
|
1396
|
+
this.h9_1 = 21;
|
|
1397
|
+
var tmp_5 = this;
|
|
1398
|
+
closeFinally(this.f1n_1, this.g1n_1);
|
|
1399
|
+
tmp_5.e1n_1 = Unit_instance;
|
|
1400
|
+
this.g9_1 = 20;
|
|
1401
|
+
continue $sm;
|
|
1402
|
+
case 17:
|
|
1403
|
+
this.h9_1 = 18;
|
|
1404
|
+
var tmp_6 = this.j9_1;
|
|
1405
|
+
if (tmp_6 instanceof Error) {
|
|
1406
|
+
var e = this.j9_1;
|
|
1407
|
+
var tmp_7 = this;
|
|
1408
|
+
this.g1n_1 = e;
|
|
1409
|
+
throw e;
|
|
1410
|
+
} else {
|
|
1411
|
+
throw this.j9_1;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
case 18:
|
|
1415
|
+
this.h9_1 = 21;
|
|
1416
|
+
var t = this.j9_1;
|
|
1417
|
+
closeFinally(this.f1n_1, this.g1n_1);
|
|
1418
|
+
throw t;
|
|
1419
|
+
case 19:
|
|
1420
|
+
this.h9_1 = 21;
|
|
1421
|
+
closeFinally(this.f1n_1, this.g1n_1);
|
|
1422
|
+
if (false) {
|
|
1423
|
+
this.g9_1 = 3;
|
|
1424
|
+
continue $sm;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
this.g9_1 = 20;
|
|
1428
|
+
continue $sm;
|
|
1429
|
+
case 20:
|
|
1430
|
+
return Unit_instance;
|
|
1431
|
+
case 21:
|
|
1432
|
+
throw this.j9_1;
|
|
1433
|
+
}
|
|
1434
|
+
} catch ($p) {
|
|
1435
|
+
var e_0 = $p;
|
|
1436
|
+
if (this.h9_1 === 21) {
|
|
1437
|
+
throw e_0;
|
|
1438
|
+
} else {
|
|
1439
|
+
this.g9_1 = this.h9_1;
|
|
1440
|
+
this.j9_1 = e_0;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
while (true);
|
|
1444
|
+
};
|
|
1445
|
+
function $readBufferCOROUTINE$13(_this__u8e3s4, resultContinuation) {
|
|
1446
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1447
|
+
this.t1n_1 = _this__u8e3s4;
|
|
1448
|
+
}
|
|
1449
|
+
protoOf($readBufferCOROUTINE$13).o9 = function () {
|
|
1450
|
+
var suspendResult = this.i9_1;
|
|
1451
|
+
$sm: do
|
|
1452
|
+
try {
|
|
1453
|
+
var tmp = this.g9_1;
|
|
1454
|
+
switch (tmp) {
|
|
1455
|
+
case 0:
|
|
1456
|
+
this.h9_1 = 4;
|
|
1457
|
+
this.u1n_1 = new Buffer();
|
|
1458
|
+
this.g9_1 = 1;
|
|
1459
|
+
continue $sm;
|
|
1460
|
+
case 1:
|
|
1461
|
+
if (!!this.t1n_1.t1j()) {
|
|
1462
|
+
this.g9_1 = 3;
|
|
1463
|
+
continue $sm;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
this.u1n_1.y1f(this.t1n_1.m1j());
|
|
1467
|
+
this.g9_1 = 2;
|
|
1468
|
+
suspendResult = this.t1n_1.v1j(VOID, this);
|
|
1469
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1470
|
+
return suspendResult;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
continue $sm;
|
|
1474
|
+
case 2:
|
|
1475
|
+
this.g9_1 = 1;
|
|
1476
|
+
continue $sm;
|
|
1477
|
+
case 3:
|
|
1478
|
+
var tmp0_safe_receiver = this.t1n_1.r1j();
|
|
1479
|
+
if (tmp0_safe_receiver == null)
|
|
1480
|
+
null;
|
|
1481
|
+
else {
|
|
1482
|
+
throw tmp0_safe_receiver;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
return this.u1n_1;
|
|
1486
|
+
case 4:
|
|
1487
|
+
throw this.j9_1;
|
|
1488
|
+
}
|
|
1489
|
+
} catch ($p) {
|
|
1490
|
+
var e = $p;
|
|
1491
|
+
if (this.h9_1 === 4) {
|
|
1492
|
+
throw e;
|
|
1493
|
+
} else {
|
|
1494
|
+
this.g9_1 = this.h9_1;
|
|
1495
|
+
this.j9_1 = e;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
while (true);
|
|
1499
|
+
};
|
|
1500
|
+
function $skipIfFoundCOROUTINE$15(_this__u8e3s4, byteString, resultContinuation) {
|
|
1501
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1502
|
+
this.d1o_1 = _this__u8e3s4;
|
|
1503
|
+
this.e1o_1 = byteString;
|
|
1504
|
+
}
|
|
1505
|
+
protoOf($skipIfFoundCOROUTINE$15).o9 = function () {
|
|
1506
|
+
var suspendResult = this.i9_1;
|
|
1507
|
+
$sm: do
|
|
1508
|
+
try {
|
|
1509
|
+
var tmp = this.g9_1;
|
|
1510
|
+
switch (tmp) {
|
|
1511
|
+
case 0:
|
|
1512
|
+
this.h9_1 = 4;
|
|
1513
|
+
this.g9_1 = 1;
|
|
1514
|
+
suspendResult = peek(this.d1o_1, this.e1o_1.s(), this);
|
|
1515
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1516
|
+
return suspendResult;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
continue $sm;
|
|
1520
|
+
case 1:
|
|
1521
|
+
this.f1o_1 = suspendResult;
|
|
1522
|
+
if (equals(this.f1o_1, this.e1o_1)) {
|
|
1523
|
+
this.g9_1 = 3;
|
|
1524
|
+
suspendResult = discard(this.d1o_1, toLong(this.e1o_1.s()), this);
|
|
1525
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1526
|
+
return suspendResult;
|
|
1527
|
+
}
|
|
1528
|
+
continue $sm;
|
|
1529
|
+
} else {
|
|
1530
|
+
this.g9_1 = 2;
|
|
1531
|
+
continue $sm;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
case 2:
|
|
1535
|
+
return false;
|
|
1536
|
+
case 3:
|
|
1537
|
+
return true;
|
|
1538
|
+
case 4:
|
|
1539
|
+
throw this.j9_1;
|
|
1540
|
+
}
|
|
1541
|
+
} catch ($p) {
|
|
1542
|
+
var e = $p;
|
|
1543
|
+
if (this.h9_1 === 4) {
|
|
1544
|
+
throw e;
|
|
1545
|
+
} else {
|
|
1546
|
+
this.g9_1 = this.h9_1;
|
|
1547
|
+
this.j9_1 = e;
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
while (true);
|
|
1551
|
+
};
|
|
1552
|
+
function $readUntilCOROUTINE$16(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, resultContinuation) {
|
|
1553
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1554
|
+
this.o1o_1 = _this__u8e3s4;
|
|
1555
|
+
this.p1o_1 = matchString;
|
|
1556
|
+
this.q1o_1 = writeChannel;
|
|
1557
|
+
this.r1o_1 = limit;
|
|
1558
|
+
this.s1o_1 = ignoreMissing;
|
|
1559
|
+
}
|
|
1560
|
+
protoOf($readUntilCOROUTINE$16).o9 = function () {
|
|
1561
|
+
var suspendResult = this.i9_1;
|
|
1562
|
+
$sm: do
|
|
1563
|
+
try {
|
|
1564
|
+
var tmp = this.g9_1;
|
|
1565
|
+
switch (tmp) {
|
|
1566
|
+
case 0:
|
|
1567
|
+
this.h9_1 = 11;
|
|
1568
|
+
if (!(this.p1o_1.s() > 0)) {
|
|
1569
|
+
var message = 'Empty match string not permitted for readUntil';
|
|
1570
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
this.t1o_1 = buildPartialMatchTable(this.p1o_1);
|
|
1574
|
+
this.u1o_1 = {_v: 0};
|
|
1575
|
+
this.v1o_1 = new Int8Array(this.p1o_1.s());
|
|
1576
|
+
this.w1o_1 = {_v: new Long(0, 0)};
|
|
1577
|
+
this.g9_1 = 1;
|
|
1578
|
+
continue $sm;
|
|
1579
|
+
case 1:
|
|
1580
|
+
if (!!this.o1o_1.t1j()) {
|
|
1581
|
+
this.g9_1 = 7;
|
|
1582
|
+
continue $sm;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
this.g9_1 = 2;
|
|
1586
|
+
suspendResult = readByte(this.o1o_1, this);
|
|
1587
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1588
|
+
return suspendResult;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
continue $sm;
|
|
1592
|
+
case 2:
|
|
1593
|
+
this.x1o_1 = suspendResult;
|
|
1594
|
+
if (this.u1o_1._v > 0 && !(this.x1o_1 === this.p1o_1.u(this.u1o_1._v))) {
|
|
1595
|
+
this.g9_1 = 3;
|
|
1596
|
+
suspendResult = readUntil$appendPartialMatch(this.q1o_1, this.v1o_1, this.u1o_1, this.w1o_1, this);
|
|
1597
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1598
|
+
return suspendResult;
|
|
1599
|
+
}
|
|
1600
|
+
continue $sm;
|
|
1029
1601
|
} else {
|
|
1030
|
-
|
|
1602
|
+
this.g9_1 = 4;
|
|
1603
|
+
continue $sm;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
case 3:
|
|
1607
|
+
readUntil$resetPartialMatch(this.u1o_1, this.p1o_1, this.t1o_1, this.x1o_1);
|
|
1608
|
+
this.g9_1 = 4;
|
|
1609
|
+
continue $sm;
|
|
1610
|
+
case 4:
|
|
1611
|
+
if (this.x1o_1 === this.p1o_1.u(this.u1o_1._v)) {
|
|
1612
|
+
var tmp_0 = this;
|
|
1613
|
+
this.v1o_1[this.u1o_1._v] = this.x1o_1;
|
|
1614
|
+
this.u1o_1._v = this.u1o_1._v + 1 | 0;
|
|
1615
|
+
if (this.u1o_1._v === this.p1o_1.s()) {
|
|
1616
|
+
return this.w1o_1._v;
|
|
1617
|
+
}
|
|
1618
|
+
tmp_0.y1o_1 = Unit_instance;
|
|
1619
|
+
this.g9_1 = 6;
|
|
1620
|
+
continue $sm;
|
|
1621
|
+
} else {
|
|
1622
|
+
this.g9_1 = 5;
|
|
1623
|
+
suspendResult = writeByte(this.q1o_1, this.x1o_1, this);
|
|
1624
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1625
|
+
return suspendResult;
|
|
1626
|
+
}
|
|
1627
|
+
continue $sm;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
case 5:
|
|
1631
|
+
var tmp_1 = this;
|
|
1632
|
+
var _unary__edvuaz = this.w1o_1._v;
|
|
1633
|
+
this.w1o_1._v = _unary__edvuaz.e3();
|
|
1634
|
+
tmp_1.y1o_1 = _unary__edvuaz;
|
|
1635
|
+
this.g9_1 = 6;
|
|
1636
|
+
continue $sm;
|
|
1637
|
+
case 6:
|
|
1638
|
+
if (this.w1o_1._v.e1(this.r1o_1) > 0) {
|
|
1639
|
+
throw IOException_init_$Create$('Limit of ' + this.r1o_1.toString() + ' bytes exceeded while scanning for "' + decodeToString(this.p1o_1) + '"');
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
this.g9_1 = 1;
|
|
1643
|
+
continue $sm;
|
|
1644
|
+
case 7:
|
|
1645
|
+
if (this.s1o_1) {
|
|
1646
|
+
this.g9_1 = 9;
|
|
1647
|
+
suspendResult = readUntil$appendPartialMatch(this.q1o_1, this.v1o_1, this.u1o_1, this.w1o_1, this);
|
|
1648
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1649
|
+
return suspendResult;
|
|
1650
|
+
}
|
|
1651
|
+
continue $sm;
|
|
1652
|
+
} else {
|
|
1653
|
+
this.g9_1 = 8;
|
|
1654
|
+
continue $sm;
|
|
1031
1655
|
}
|
|
1032
1656
|
|
|
1033
1657
|
case 8:
|
|
1034
|
-
this.
|
|
1035
|
-
|
|
1036
|
-
this.
|
|
1037
|
-
suspendResult = this.
|
|
1658
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.p1o_1) + '" but encountered end of input');
|
|
1659
|
+
case 9:
|
|
1660
|
+
this.g9_1 = 10;
|
|
1661
|
+
suspendResult = this.q1o_1.l1j(this);
|
|
1038
1662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1039
1663
|
return suspendResult;
|
|
1040
1664
|
}
|
|
1041
1665
|
|
|
1042
1666
|
continue $sm;
|
|
1043
|
-
case
|
|
1044
|
-
|
|
1045
|
-
case
|
|
1046
|
-
this.
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1667
|
+
case 10:
|
|
1668
|
+
return this.w1o_1._v;
|
|
1669
|
+
case 11:
|
|
1670
|
+
throw this.j9_1;
|
|
1671
|
+
}
|
|
1672
|
+
} catch ($p) {
|
|
1673
|
+
var e = $p;
|
|
1674
|
+
if (this.h9_1 === 11) {
|
|
1675
|
+
throw e;
|
|
1676
|
+
} else {
|
|
1677
|
+
this.g9_1 = this.h9_1;
|
|
1678
|
+
this.j9_1 = e;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
while (true);
|
|
1682
|
+
};
|
|
1683
|
+
function $peekCOROUTINE$17(_this__u8e3s4, count, resultContinuation) {
|
|
1684
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1685
|
+
this.h1p_1 = _this__u8e3s4;
|
|
1686
|
+
this.i1p_1 = count;
|
|
1687
|
+
}
|
|
1688
|
+
protoOf($peekCOROUTINE$17).o9 = function () {
|
|
1689
|
+
var suspendResult = this.i9_1;
|
|
1690
|
+
$sm: do
|
|
1691
|
+
try {
|
|
1692
|
+
var tmp = this.g9_1;
|
|
1693
|
+
switch (tmp) {
|
|
1694
|
+
case 0:
|
|
1695
|
+
this.h9_1 = 3;
|
|
1696
|
+
if (this.h1p_1.t1j())
|
|
1697
|
+
return null;
|
|
1698
|
+
this.g9_1 = 1;
|
|
1699
|
+
suspendResult = this.h1p_1.u1j(this.i1p_1, this);
|
|
1700
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1701
|
+
return suspendResult;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
continue $sm;
|
|
1705
|
+
case 1:
|
|
1706
|
+
var ARGUMENT = suspendResult;
|
|
1707
|
+
if (!ARGUMENT) {
|
|
1708
|
+
return null;
|
|
1709
|
+
} else {
|
|
1710
|
+
this.g9_1 = 2;
|
|
1711
|
+
continue $sm;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
case 2:
|
|
1715
|
+
return readByteString(this.h1p_1.m1j().k1f(), this.i1p_1);
|
|
1716
|
+
case 3:
|
|
1717
|
+
throw this.j9_1;
|
|
1718
|
+
}
|
|
1719
|
+
} catch ($p) {
|
|
1720
|
+
var e = $p;
|
|
1721
|
+
if (this.h9_1 === 3) {
|
|
1722
|
+
throw e;
|
|
1723
|
+
} else {
|
|
1724
|
+
this.g9_1 = this.h9_1;
|
|
1725
|
+
this.j9_1 = e;
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
while (true);
|
|
1729
|
+
};
|
|
1730
|
+
function $readByteCOROUTINE$18(_this__u8e3s4, resultContinuation) {
|
|
1731
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1732
|
+
this.r1p_1 = _this__u8e3s4;
|
|
1733
|
+
}
|
|
1734
|
+
protoOf($readByteCOROUTINE$18).o9 = function () {
|
|
1735
|
+
var suspendResult = this.i9_1;
|
|
1736
|
+
$sm: do
|
|
1737
|
+
try {
|
|
1738
|
+
var tmp = this.g9_1;
|
|
1739
|
+
switch (tmp) {
|
|
1740
|
+
case 0:
|
|
1741
|
+
this.h9_1 = 3;
|
|
1742
|
+
if (this.r1p_1.m1j().g1e()) {
|
|
1743
|
+
this.g9_1 = 1;
|
|
1744
|
+
suspendResult = this.r1p_1.v1j(VOID, this);
|
|
1745
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1746
|
+
return suspendResult;
|
|
1747
|
+
}
|
|
1748
|
+
continue $sm;
|
|
1749
|
+
} else {
|
|
1750
|
+
this.g9_1 = 2;
|
|
1751
|
+
continue $sm;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
case 1:
|
|
1755
|
+
this.g9_1 = 2;
|
|
1756
|
+
continue $sm;
|
|
1757
|
+
case 2:
|
|
1758
|
+
if (this.r1p_1.m1j().g1e()) {
|
|
1759
|
+
throw EOFException_init_$Create$('Not enough data available');
|
|
1051
1760
|
}
|
|
1052
1761
|
|
|
1053
|
-
|
|
1054
|
-
case
|
|
1055
|
-
|
|
1056
|
-
case 12:
|
|
1057
|
-
throw this.g9_1;
|
|
1762
|
+
return this.r1p_1.m1j().j1e();
|
|
1763
|
+
case 3:
|
|
1764
|
+
throw this.j9_1;
|
|
1058
1765
|
}
|
|
1059
1766
|
} catch ($p) {
|
|
1060
1767
|
var e = $p;
|
|
1061
|
-
if (this.
|
|
1768
|
+
if (this.h9_1 === 3) {
|
|
1062
1769
|
throw e;
|
|
1063
1770
|
} else {
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1771
|
+
this.g9_1 = this.h9_1;
|
|
1772
|
+
this.j9_1 = e;
|
|
1066
1773
|
}
|
|
1067
1774
|
}
|
|
1068
1775
|
while (true);
|
|
1069
1776
|
};
|
|
1070
|
-
function $
|
|
1777
|
+
function $readUntil$appendPartialMatchCOROUTINE$19($writeChannel, matchBuffer, matchIndex, rc, resultContinuation) {
|
|
1071
1778
|
CoroutineImpl.call(this, resultContinuation);
|
|
1072
|
-
this.
|
|
1779
|
+
this.a1q_1 = $writeChannel;
|
|
1780
|
+
this.b1q_1 = matchBuffer;
|
|
1781
|
+
this.c1q_1 = matchIndex;
|
|
1782
|
+
this.d1q_1 = rc;
|
|
1073
1783
|
}
|
|
1074
|
-
protoOf($
|
|
1075
|
-
var suspendResult = this.
|
|
1784
|
+
protoOf($readUntil$appendPartialMatchCOROUTINE$19).o9 = function () {
|
|
1785
|
+
var suspendResult = this.i9_1;
|
|
1076
1786
|
$sm: do
|
|
1077
1787
|
try {
|
|
1078
|
-
var tmp = this.
|
|
1788
|
+
var tmp = this.g9_1;
|
|
1079
1789
|
switch (tmp) {
|
|
1080
1790
|
case 0:
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1084
|
-
continue $sm;
|
|
1085
|
-
case 1:
|
|
1086
|
-
if (!!this.p1j_1.t1g()) {
|
|
1087
|
-
this.d9_1 = 3;
|
|
1088
|
-
continue $sm;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
this.q1j_1.y1c(this.p1j_1.o1g());
|
|
1092
|
-
this.d9_1 = 2;
|
|
1093
|
-
suspendResult = this.p1j_1.v1g(VOID, this);
|
|
1791
|
+
this.h9_1 = 2;
|
|
1792
|
+
this.g9_1 = 1;
|
|
1793
|
+
suspendResult = writeFully(this.a1q_1, this.b1q_1, 0, this.c1q_1._v, this);
|
|
1094
1794
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1095
1795
|
return suspendResult;
|
|
1096
1796
|
}
|
|
1097
1797
|
|
|
1098
1798
|
continue $sm;
|
|
1799
|
+
case 1:
|
|
1800
|
+
var tmp0 = this.d1q_1._v;
|
|
1801
|
+
var other = this.c1q_1._v;
|
|
1802
|
+
this.d1q_1._v = tmp0.z2(toLong(other));
|
|
1803
|
+
this.c1q_1._v = 0;
|
|
1804
|
+
return Unit_instance;
|
|
1099
1805
|
case 2:
|
|
1100
|
-
this.
|
|
1101
|
-
continue $sm;
|
|
1102
|
-
case 3:
|
|
1103
|
-
var tmp0_safe_receiver = this.p1j_1.p1g();
|
|
1104
|
-
if (tmp0_safe_receiver == null)
|
|
1105
|
-
null;
|
|
1106
|
-
else {
|
|
1107
|
-
throw tmp0_safe_receiver;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
return this.q1j_1;
|
|
1111
|
-
case 4:
|
|
1112
|
-
throw this.g9_1;
|
|
1806
|
+
throw this.j9_1;
|
|
1113
1807
|
}
|
|
1114
1808
|
} catch ($p) {
|
|
1115
1809
|
var e = $p;
|
|
1116
|
-
if (this.
|
|
1810
|
+
if (this.h9_1 === 2) {
|
|
1117
1811
|
throw e;
|
|
1118
1812
|
} else {
|
|
1119
|
-
this.
|
|
1120
|
-
this.
|
|
1813
|
+
this.g9_1 = this.h9_1;
|
|
1814
|
+
this.j9_1 = e;
|
|
1121
1815
|
}
|
|
1122
1816
|
}
|
|
1123
1817
|
while (true);
|
|
1124
1818
|
};
|
|
1125
1819
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
1126
|
-
var tmp = new $flushIfNeededCOROUTINE$
|
|
1127
|
-
tmp.
|
|
1128
|
-
tmp.
|
|
1129
|
-
return tmp.
|
|
1820
|
+
var tmp = new $flushIfNeededCOROUTINE$20(_this__u8e3s4, $completion);
|
|
1821
|
+
tmp.i9_1 = Unit_instance;
|
|
1822
|
+
tmp.j9_1 = null;
|
|
1823
|
+
return tmp.o9();
|
|
1130
1824
|
}
|
|
1131
|
-
function $flushIfNeededCOROUTINE$
|
|
1825
|
+
function $flushIfNeededCOROUTINE$20(_this__u8e3s4, resultContinuation) {
|
|
1132
1826
|
CoroutineImpl.call(this, resultContinuation);
|
|
1133
|
-
this.
|
|
1827
|
+
this.m1q_1 = _this__u8e3s4;
|
|
1134
1828
|
}
|
|
1135
|
-
protoOf($flushIfNeededCOROUTINE$
|
|
1136
|
-
var suspendResult = this.
|
|
1829
|
+
protoOf($flushIfNeededCOROUTINE$20).o9 = function () {
|
|
1830
|
+
var suspendResult = this.i9_1;
|
|
1137
1831
|
$sm: do
|
|
1138
1832
|
try {
|
|
1139
|
-
var tmp = this.
|
|
1833
|
+
var tmp = this.g9_1;
|
|
1140
1834
|
switch (tmp) {
|
|
1141
1835
|
case 0:
|
|
1142
|
-
this.
|
|
1143
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1836
|
+
this.h9_1 = 3;
|
|
1837
|
+
rethrowCloseCauseIfNeeded_0(this.m1q_1);
|
|
1144
1838
|
var tmp_0;
|
|
1145
|
-
var tmp_1 = this.
|
|
1839
|
+
var tmp_1 = this.m1q_1;
|
|
1146
1840
|
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
|
|
1147
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1841
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1h_1) === true) {
|
|
1148
1842
|
tmp_0 = true;
|
|
1149
1843
|
} else {
|
|
1150
|
-
tmp_0 = get_size(this.
|
|
1844
|
+
tmp_0 = get_size(this.m1q_1.p1j()) >= 1048576;
|
|
1151
1845
|
}
|
|
1152
1846
|
|
|
1153
1847
|
if (tmp_0) {
|
|
1154
|
-
this.
|
|
1155
|
-
suspendResult = this.
|
|
1848
|
+
this.g9_1 = 1;
|
|
1849
|
+
suspendResult = this.m1q_1.l1j(this);
|
|
1156
1850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1157
1851
|
return suspendResult;
|
|
1158
1852
|
}
|
|
1159
1853
|
continue $sm;
|
|
1160
1854
|
} else {
|
|
1161
|
-
this.
|
|
1855
|
+
this.g9_1 = 2;
|
|
1162
1856
|
continue $sm;
|
|
1163
1857
|
}
|
|
1164
1858
|
|
|
1165
1859
|
case 1:
|
|
1166
|
-
this.
|
|
1860
|
+
this.g9_1 = 2;
|
|
1167
1861
|
continue $sm;
|
|
1168
1862
|
case 2:
|
|
1169
1863
|
return Unit_instance;
|
|
1170
1864
|
case 3:
|
|
1171
|
-
throw this.
|
|
1865
|
+
throw this.j9_1;
|
|
1172
1866
|
}
|
|
1173
1867
|
} catch ($p) {
|
|
1174
1868
|
var e = $p;
|
|
1175
|
-
if (this.
|
|
1869
|
+
if (this.h9_1 === 3) {
|
|
1176
1870
|
throw e;
|
|
1177
1871
|
} else {
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1872
|
+
this.g9_1 = this.h9_1;
|
|
1873
|
+
this.j9_1 = e;
|
|
1180
1874
|
}
|
|
1181
1875
|
}
|
|
1182
1876
|
while (true);
|
|
@@ -1187,11 +1881,11 @@
|
|
|
1187
1881
|
}
|
|
1188
1882
|
var NO_CALLBACK;
|
|
1189
1883
|
function WriterJob(channel, job) {
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1884
|
+
this.n1q_1 = channel;
|
|
1885
|
+
this.o1q_1 = job;
|
|
1192
1886
|
}
|
|
1193
|
-
protoOf(WriterJob).
|
|
1194
|
-
return this.
|
|
1887
|
+
protoOf(WriterJob).hu = function () {
|
|
1888
|
+
return this.o1q_1;
|
|
1195
1889
|
};
|
|
1196
1890
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
1197
1891
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -1200,38 +1894,40 @@
|
|
|
1200
1894
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
1201
1895
|
}
|
|
1202
1896
|
function WriterScope(channel, coroutineContext) {
|
|
1203
|
-
this.
|
|
1204
|
-
this.
|
|
1897
|
+
this.p1q_1 = channel;
|
|
1898
|
+
this.q1q_1 = coroutineContext;
|
|
1205
1899
|
}
|
|
1206
|
-
protoOf(WriterScope).
|
|
1207
|
-
return this.
|
|
1900
|
+
protoOf(WriterScope).ho = function () {
|
|
1901
|
+
return this.q1q_1;
|
|
1208
1902
|
};
|
|
1209
1903
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
1210
1904
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
1211
1905
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
1212
|
-
_this__u8e3s4.
|
|
1906
|
+
_this__u8e3s4.p1j().p1f(value, startIndex, endIndex);
|
|
1213
1907
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1214
1908
|
}
|
|
1215
|
-
function writePacket(_this__u8e3s4,
|
|
1216
|
-
_this__u8e3s4
|
|
1217
|
-
|
|
1909
|
+
function writePacket(_this__u8e3s4, source, $completion) {
|
|
1910
|
+
var tmp = new $writePacketCOROUTINE$21(_this__u8e3s4, source, $completion);
|
|
1911
|
+
tmp.i9_1 = Unit_instance;
|
|
1912
|
+
tmp.j9_1 = null;
|
|
1913
|
+
return tmp.o9();
|
|
1218
1914
|
}
|
|
1219
1915
|
function get_isCompleted(_this__u8e3s4) {
|
|
1220
1916
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1221
|
-
return _this__u8e3s4.
|
|
1917
|
+
return _this__u8e3s4.hu().cp();
|
|
1222
1918
|
}
|
|
1223
|
-
function
|
|
1919
|
+
function close_0(_this__u8e3s4, cause) {
|
|
1224
1920
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1225
1921
|
if (cause == null) {
|
|
1226
1922
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
1227
1923
|
} else {
|
|
1228
|
-
_this__u8e3s4.
|
|
1924
|
+
_this__u8e3s4.x1j(cause);
|
|
1229
1925
|
}
|
|
1230
1926
|
}
|
|
1231
1927
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
1232
1928
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1233
|
-
var tmp = _this__u8e3s4.
|
|
1234
|
-
tmp.
|
|
1929
|
+
var tmp = _this__u8e3s4.hu();
|
|
1930
|
+
tmp.jp(invokeOnCompletion$lambda(block));
|
|
1235
1931
|
}
|
|
1236
1932
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
1237
1933
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -1239,7 +1935,7 @@
|
|
|
1239
1935
|
// Inline function 'kotlin.apply' call
|
|
1240
1936
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
1241
1937
|
// Inline function 'io.ktor.utils.io.writer.<anonymous>' call
|
|
1242
|
-
this_0.
|
|
1938
|
+
this_0.jp(writer$lambda(channel));
|
|
1243
1939
|
var job = this_0;
|
|
1244
1940
|
return new WriterJob(channel, job);
|
|
1245
1941
|
}
|
|
@@ -1247,31 +1943,35 @@
|
|
|
1247
1943
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1248
1944
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
1249
1945
|
}
|
|
1946
|
+
function writeByte(_this__u8e3s4, value, $completion) {
|
|
1947
|
+
_this__u8e3s4.p1j().z1f(value);
|
|
1948
|
+
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1949
|
+
}
|
|
1250
1950
|
function NO_CALLBACK$1() {
|
|
1251
|
-
this.
|
|
1951
|
+
this.b1r_1 = EmptyCoroutineContext_getInstance();
|
|
1252
1952
|
}
|
|
1253
|
-
protoOf(NO_CALLBACK$1).
|
|
1254
|
-
return this.
|
|
1953
|
+
protoOf(NO_CALLBACK$1).m9 = function () {
|
|
1954
|
+
return this.b1r_1;
|
|
1255
1955
|
};
|
|
1256
|
-
protoOf(NO_CALLBACK$1).
|
|
1956
|
+
protoOf(NO_CALLBACK$1).n9 = function (result) {
|
|
1257
1957
|
return Unit_instance;
|
|
1258
1958
|
};
|
|
1259
|
-
protoOf(NO_CALLBACK$1).
|
|
1260
|
-
return this.
|
|
1959
|
+
protoOf(NO_CALLBACK$1).r9 = function (result) {
|
|
1960
|
+
return this.n9(result);
|
|
1261
1961
|
};
|
|
1262
1962
|
function ByteWriteChannel$flushAndClose$ref($boundThis) {
|
|
1263
|
-
this.
|
|
1963
|
+
this.c1r_1 = $boundThis;
|
|
1264
1964
|
}
|
|
1265
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
1266
|
-
return this.
|
|
1965
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).d1r = function ($completion) {
|
|
1966
|
+
return this.c1r_1.w1j($completion);
|
|
1267
1967
|
};
|
|
1268
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
1269
|
-
return this.
|
|
1968
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).hb = function ($completion) {
|
|
1969
|
+
return this.d1r($completion);
|
|
1270
1970
|
};
|
|
1271
1971
|
function ByteWriteChannel$flushAndClose$ref_0($boundThis) {
|
|
1272
1972
|
var i = new ByteWriteChannel$flushAndClose$ref($boundThis);
|
|
1273
1973
|
var l = function ($completion) {
|
|
1274
|
-
return i.
|
|
1974
|
+
return i.d1r($completion);
|
|
1275
1975
|
};
|
|
1276
1976
|
l.callableName = 'flushAndClose';
|
|
1277
1977
|
l.$arity = 0;
|
|
@@ -1284,74 +1984,74 @@
|
|
|
1284
1984
|
};
|
|
1285
1985
|
}
|
|
1286
1986
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1987
|
+
this.m1r_1 = $block;
|
|
1988
|
+
this.n1r_1 = $channel;
|
|
1289
1989
|
CoroutineImpl.call(this, resultContinuation);
|
|
1290
1990
|
}
|
|
1291
|
-
protoOf(writer$slambda).
|
|
1292
|
-
var tmp = this.
|
|
1293
|
-
tmp.
|
|
1294
|
-
tmp.
|
|
1295
|
-
return tmp.
|
|
1991
|
+
protoOf(writer$slambda).h1s = function ($this$launch, $completion) {
|
|
1992
|
+
var tmp = this.i1s($this$launch, $completion);
|
|
1993
|
+
tmp.i9_1 = Unit_instance;
|
|
1994
|
+
tmp.j9_1 = null;
|
|
1995
|
+
return tmp.o9();
|
|
1296
1996
|
};
|
|
1297
|
-
protoOf(writer$slambda).
|
|
1298
|
-
return this.
|
|
1997
|
+
protoOf(writer$slambda).ca = function (p1, $completion) {
|
|
1998
|
+
return this.h1s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1299
1999
|
};
|
|
1300
|
-
protoOf(writer$slambda).
|
|
1301
|
-
var suspendResult = this.
|
|
2000
|
+
protoOf(writer$slambda).o9 = function () {
|
|
2001
|
+
var suspendResult = this.i9_1;
|
|
1302
2002
|
$sm: do
|
|
1303
2003
|
try {
|
|
1304
|
-
var tmp = this.
|
|
2004
|
+
var tmp = this.g9_1;
|
|
1305
2005
|
switch (tmp) {
|
|
1306
2006
|
case 0:
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
2007
|
+
this.h9_1 = 14;
|
|
2008
|
+
this.p1r_1 = Job(get_job(this.o1r_1.ho()));
|
|
2009
|
+
this.g9_1 = 1;
|
|
1310
2010
|
continue $sm;
|
|
1311
2011
|
case 1:
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
suspendResult = this.
|
|
2012
|
+
this.h9_1 = 4;
|
|
2013
|
+
this.h9_1 = 3;
|
|
2014
|
+
this.g9_1 = 2;
|
|
2015
|
+
suspendResult = this.m1r_1(new WriterScope(this.n1r_1, this.o1r_1.ho().gh(this.p1r_1)), this);
|
|
1316
2016
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1317
2017
|
return suspendResult;
|
|
1318
2018
|
}
|
|
1319
2019
|
|
|
1320
2020
|
continue $sm;
|
|
1321
2021
|
case 2:
|
|
1322
|
-
this.
|
|
2022
|
+
this.p1r_1.dv();
|
|
1323
2023
|
var tmp_0 = this;
|
|
1324
2024
|
var tmp_1;
|
|
1325
|
-
if (get_job(this.
|
|
1326
|
-
this.
|
|
2025
|
+
if (get_job(this.o1r_1.ho()).dp()) {
|
|
2026
|
+
this.n1r_1.x1j(get_job(this.o1r_1.ho()).gp());
|
|
1327
2027
|
tmp_1 = Unit_instance;
|
|
1328
2028
|
}
|
|
1329
2029
|
|
|
1330
|
-
tmp_0.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
2030
|
+
tmp_0.q1r_1 = tmp_1;
|
|
2031
|
+
this.h9_1 = 14;
|
|
2032
|
+
this.g9_1 = 9;
|
|
1333
2033
|
continue $sm;
|
|
1334
2034
|
case 3:
|
|
1335
|
-
this.
|
|
1336
|
-
var tmp_2 = this.
|
|
2035
|
+
this.h9_1 = 4;
|
|
2036
|
+
var tmp_2 = this.j9_1;
|
|
1337
2037
|
if (tmp_2 instanceof Error) {
|
|
1338
|
-
this.
|
|
2038
|
+
this.r1r_1 = this.j9_1;
|
|
1339
2039
|
var tmp_3 = this;
|
|
1340
|
-
cancel(this.
|
|
1341
|
-
this.
|
|
1342
|
-
tmp_3.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
2040
|
+
cancel(this.p1r_1, 'Exception thrown while writing to channel', this.r1r_1);
|
|
2041
|
+
this.n1r_1.x1j(this.r1r_1);
|
|
2042
|
+
tmp_3.q1r_1 = Unit_instance;
|
|
2043
|
+
this.h9_1 = 14;
|
|
2044
|
+
this.g9_1 = 9;
|
|
1345
2045
|
continue $sm;
|
|
1346
2046
|
} else {
|
|
1347
|
-
throw this.
|
|
2047
|
+
throw this.j9_1;
|
|
1348
2048
|
}
|
|
1349
2049
|
|
|
1350
2050
|
case 4:
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
suspendResult = this.
|
|
2051
|
+
this.h9_1 = 14;
|
|
2052
|
+
this.s1r_1 = this.j9_1;
|
|
2053
|
+
this.g9_1 = 5;
|
|
2054
|
+
suspendResult = this.p1r_1.ev(this);
|
|
1355
2055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1356
2056
|
return suspendResult;
|
|
1357
2057
|
}
|
|
@@ -1359,16 +2059,16 @@
|
|
|
1359
2059
|
continue $sm;
|
|
1360
2060
|
case 5:
|
|
1361
2061
|
var tmp_4 = this;
|
|
1362
|
-
tmp_4.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
2062
|
+
tmp_4.t1r_1 = this.o1r_1;
|
|
2063
|
+
this.u1r_1 = this.t1r_1;
|
|
2064
|
+
this.h9_1 = 7;
|
|
1365
2065
|
var tmp_5 = this;
|
|
1366
|
-
tmp_5.
|
|
2066
|
+
tmp_5.w1r_1 = Companion_instance;
|
|
1367
2067
|
var tmp_6 = this;
|
|
1368
|
-
tmp_6.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
suspendResult = this.
|
|
2068
|
+
tmp_6.x1r_1 = this.u1r_1;
|
|
2069
|
+
this.y1r_1 = this.x1r_1;
|
|
2070
|
+
this.g9_1 = 6;
|
|
2071
|
+
suspendResult = this.n1r_1.w1j(this);
|
|
1372
2072
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1373
2073
|
return suspendResult;
|
|
1374
2074
|
}
|
|
@@ -1376,35 +2076,35 @@
|
|
|
1376
2076
|
continue $sm;
|
|
1377
2077
|
case 6:
|
|
1378
2078
|
var tmp_7 = this;
|
|
1379
|
-
tmp_7.
|
|
2079
|
+
tmp_7.z1r_1 = Unit_instance;
|
|
1380
2080
|
var tmp_8 = this;
|
|
1381
|
-
this.
|
|
1382
|
-
var value = this.
|
|
1383
|
-
tmp_8.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
2081
|
+
this.w1r_1;
|
|
2082
|
+
var value = this.z1r_1;
|
|
2083
|
+
tmp_8.v1r_1 = _Result___init__impl__xyqfz8(value);
|
|
2084
|
+
this.h9_1 = 14;
|
|
2085
|
+
this.g9_1 = 8;
|
|
1386
2086
|
continue $sm;
|
|
1387
2087
|
case 7:
|
|
1388
|
-
this.
|
|
1389
|
-
var tmp_9 = this.
|
|
2088
|
+
this.h9_1 = 14;
|
|
2089
|
+
var tmp_9 = this.j9_1;
|
|
1390
2090
|
if (tmp_9 instanceof Error) {
|
|
1391
|
-
this.
|
|
2091
|
+
this.a1s_1 = this.j9_1;
|
|
1392
2092
|
var tmp_10 = this;
|
|
1393
|
-
var exception = this.
|
|
1394
|
-
tmp_10.
|
|
1395
|
-
this.
|
|
2093
|
+
var exception = this.a1s_1;
|
|
2094
|
+
tmp_10.v1r_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
2095
|
+
this.g9_1 = 8;
|
|
1396
2096
|
continue $sm;
|
|
1397
2097
|
} else {
|
|
1398
|
-
throw this.
|
|
2098
|
+
throw this.j9_1;
|
|
1399
2099
|
}
|
|
1400
2100
|
|
|
1401
2101
|
case 8:
|
|
1402
|
-
this.
|
|
1403
|
-
throw this.
|
|
2102
|
+
this.h9_1 = 14;
|
|
2103
|
+
throw this.s1r_1;
|
|
1404
2104
|
case 9:
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
suspendResult = this.
|
|
2105
|
+
this.h9_1 = 14;
|
|
2106
|
+
this.g9_1 = 10;
|
|
2107
|
+
suspendResult = this.p1r_1.ev(this);
|
|
1408
2108
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1409
2109
|
return suspendResult;
|
|
1410
2110
|
}
|
|
@@ -1412,16 +2112,16 @@
|
|
|
1412
2112
|
continue $sm;
|
|
1413
2113
|
case 10:
|
|
1414
2114
|
var tmp_11 = this;
|
|
1415
|
-
tmp_11.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
2115
|
+
tmp_11.b1s_1 = this.o1r_1;
|
|
2116
|
+
this.c1s_1 = this.b1s_1;
|
|
2117
|
+
this.h9_1 = 12;
|
|
1418
2118
|
var tmp_12 = this;
|
|
1419
|
-
tmp_12.
|
|
2119
|
+
tmp_12.e1s_1 = Companion_instance;
|
|
1420
2120
|
var tmp_13 = this;
|
|
1421
|
-
tmp_13.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
suspendResult = this.
|
|
2121
|
+
tmp_13.f1s_1 = this.c1s_1;
|
|
2122
|
+
this.g1s_1 = this.f1s_1;
|
|
2123
|
+
this.g9_1 = 11;
|
|
2124
|
+
suspendResult = this.n1r_1.w1j(this);
|
|
1425
2125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1426
2126
|
return suspendResult;
|
|
1427
2127
|
}
|
|
@@ -1429,50 +2129,50 @@
|
|
|
1429
2129
|
continue $sm;
|
|
1430
2130
|
case 11:
|
|
1431
2131
|
var tmp_14 = this;
|
|
1432
|
-
this.
|
|
1433
|
-
tmp_14.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
2132
|
+
this.e1s_1;
|
|
2133
|
+
tmp_14.d1s_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2134
|
+
this.h9_1 = 14;
|
|
2135
|
+
this.g9_1 = 13;
|
|
1436
2136
|
continue $sm;
|
|
1437
2137
|
case 12:
|
|
1438
|
-
this.
|
|
1439
|
-
var tmp_15 = this.
|
|
2138
|
+
this.h9_1 = 14;
|
|
2139
|
+
var tmp_15 = this.j9_1;
|
|
1440
2140
|
if (tmp_15 instanceof Error) {
|
|
1441
|
-
var e = this.
|
|
2141
|
+
var e = this.j9_1;
|
|
1442
2142
|
var tmp_16 = this;
|
|
1443
|
-
tmp_16.
|
|
1444
|
-
this.
|
|
2143
|
+
tmp_16.d1s_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2144
|
+
this.g9_1 = 13;
|
|
1445
2145
|
continue $sm;
|
|
1446
2146
|
} else {
|
|
1447
|
-
throw this.
|
|
2147
|
+
throw this.j9_1;
|
|
1448
2148
|
}
|
|
1449
2149
|
|
|
1450
2150
|
case 13:
|
|
1451
|
-
this.
|
|
2151
|
+
this.h9_1 = 14;
|
|
1452
2152
|
return Unit_instance;
|
|
1453
2153
|
case 14:
|
|
1454
|
-
throw this.
|
|
2154
|
+
throw this.j9_1;
|
|
1455
2155
|
}
|
|
1456
2156
|
} catch ($p) {
|
|
1457
2157
|
var e_0 = $p;
|
|
1458
|
-
if (this.
|
|
2158
|
+
if (this.h9_1 === 14) {
|
|
1459
2159
|
throw e_0;
|
|
1460
2160
|
} else {
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
2161
|
+
this.g9_1 = this.h9_1;
|
|
2162
|
+
this.j9_1 = e_0;
|
|
1463
2163
|
}
|
|
1464
2164
|
}
|
|
1465
2165
|
while (true);
|
|
1466
2166
|
};
|
|
1467
|
-
protoOf(writer$slambda).
|
|
1468
|
-
var i = new writer$slambda(this.
|
|
1469
|
-
i.
|
|
2167
|
+
protoOf(writer$slambda).i1s = function ($this$launch, completion) {
|
|
2168
|
+
var i = new writer$slambda(this.m1r_1, this.n1r_1, completion);
|
|
2169
|
+
i.o1r_1 = $this$launch;
|
|
1470
2170
|
return i;
|
|
1471
2171
|
};
|
|
1472
2172
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
1473
2173
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
1474
2174
|
var l = function ($this$launch, $completion) {
|
|
1475
|
-
return i.
|
|
2175
|
+
return i.h1s($this$launch, $completion);
|
|
1476
2176
|
};
|
|
1477
2177
|
l.$arity = 1;
|
|
1478
2178
|
return l;
|
|
@@ -1480,13 +2180,61 @@
|
|
|
1480
2180
|
function writer$lambda($channel) {
|
|
1481
2181
|
return function (it) {
|
|
1482
2182
|
var tmp;
|
|
1483
|
-
if (!(it == null) && !$channel.
|
|
1484
|
-
$channel.
|
|
2183
|
+
if (!(it == null) && !$channel.q1j()) {
|
|
2184
|
+
$channel.x1j(it);
|
|
1485
2185
|
tmp = Unit_instance;
|
|
1486
2186
|
}
|
|
1487
2187
|
return Unit_instance;
|
|
1488
2188
|
};
|
|
1489
2189
|
}
|
|
2190
|
+
function $writePacketCOROUTINE$21(_this__u8e3s4, source, resultContinuation) {
|
|
2191
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2192
|
+
this.z1q_1 = _this__u8e3s4;
|
|
2193
|
+
this.a1r_1 = source;
|
|
2194
|
+
}
|
|
2195
|
+
protoOf($writePacketCOROUTINE$21).o9 = function () {
|
|
2196
|
+
var suspendResult = this.i9_1;
|
|
2197
|
+
$sm: do
|
|
2198
|
+
try {
|
|
2199
|
+
var tmp = this.g9_1;
|
|
2200
|
+
switch (tmp) {
|
|
2201
|
+
case 0:
|
|
2202
|
+
this.h9_1 = 4;
|
|
2203
|
+
this.g9_1 = 1;
|
|
2204
|
+
continue $sm;
|
|
2205
|
+
case 1:
|
|
2206
|
+
if (!!this.a1r_1.g1e()) {
|
|
2207
|
+
this.g9_1 = 3;
|
|
2208
|
+
continue $sm;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
this.z1q_1.p1j().t1f(this.a1r_1, get_remaining(this.a1r_1));
|
|
2212
|
+
this.g9_1 = 2;
|
|
2213
|
+
suspendResult = flushIfNeeded(this.z1q_1, this);
|
|
2214
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2215
|
+
return suspendResult;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
continue $sm;
|
|
2219
|
+
case 2:
|
|
2220
|
+
this.g9_1 = 1;
|
|
2221
|
+
continue $sm;
|
|
2222
|
+
case 3:
|
|
2223
|
+
return Unit_instance;
|
|
2224
|
+
case 4:
|
|
2225
|
+
throw this.j9_1;
|
|
2226
|
+
}
|
|
2227
|
+
} catch ($p) {
|
|
2228
|
+
var e = $p;
|
|
2229
|
+
if (this.h9_1 === 4) {
|
|
2230
|
+
throw e;
|
|
2231
|
+
} else {
|
|
2232
|
+
this.g9_1 = this.h9_1;
|
|
2233
|
+
this.j9_1 = e;
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
while (true);
|
|
2237
|
+
};
|
|
1490
2238
|
var properties_initialized_ByteWriteChannelOperations_kt_acrf6u;
|
|
1491
2239
|
function _init_properties_ByteWriteChannelOperations_kt__i7slrs() {
|
|
1492
2240
|
if (!properties_initialized_ByteWriteChannelOperations_kt_acrf6u) {
|
|
@@ -1499,62 +2247,52 @@
|
|
|
1499
2247
|
return CLOSED;
|
|
1500
2248
|
}
|
|
1501
2249
|
var CLOSED;
|
|
2250
|
+
function ClosedByteChannelException$_init_$ref_yjp351() {
|
|
2251
|
+
var l = function (p0) {
|
|
2252
|
+
return new ClosedByteChannelException(p0);
|
|
2253
|
+
};
|
|
2254
|
+
l.callableName = '<init>';
|
|
2255
|
+
return l;
|
|
2256
|
+
}
|
|
1502
2257
|
function CloseToken(origin) {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
2258
|
+
this.n1j_1 = origin;
|
|
2259
|
+
}
|
|
2260
|
+
protoOf(CloseToken).j1s = function (wrap) {
|
|
2261
|
+
var tmp0_subject = this.n1j_1;
|
|
2262
|
+
var tmp;
|
|
2263
|
+
if (tmp0_subject == null) {
|
|
2264
|
+
tmp = null;
|
|
1507
2265
|
} else {
|
|
1508
|
-
if (
|
|
1509
|
-
|
|
1510
|
-
if (isInterface(origin, CopyableThrowable)) {
|
|
1511
|
-
tmp_1 = origin.ru();
|
|
1512
|
-
} else {
|
|
1513
|
-
var tmp0_elvis_lhs = origin.message;
|
|
1514
|
-
tmp_1 = CancellationException_init_$Create$(tmp0_elvis_lhs == null ? 'Channel was cancelled' : tmp0_elvis_lhs, origin);
|
|
1515
|
-
}
|
|
1516
|
-
tmp_0 = tmp_1;
|
|
2266
|
+
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, CopyableThrowable) : false) {
|
|
2267
|
+
tmp = this.n1j_1.nv();
|
|
1517
2268
|
} else {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
tmp_2 = isInterface(origin, CopyableThrowable);
|
|
1521
|
-
} else {
|
|
1522
|
-
tmp_2 = false;
|
|
1523
|
-
}
|
|
1524
|
-
if (tmp_2) {
|
|
1525
|
-
tmp_0 = origin.ru();
|
|
2269
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
2270
|
+
tmp = CancellationException_init_$Create$(this.n1j_1.message, this.n1j_1);
|
|
1526
2271
|
} else {
|
|
1527
|
-
|
|
1528
|
-
tmp_0 = IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was closed' : tmp1_elvis_lhs, origin);
|
|
2272
|
+
tmp = wrap(this.n1j_1);
|
|
1529
2273
|
}
|
|
1530
2274
|
}
|
|
1531
2275
|
}
|
|
1532
|
-
tmp
|
|
1533
|
-
}
|
|
1534
|
-
protoOf(CloseToken).
|
|
2276
|
+
return tmp;
|
|
2277
|
+
};
|
|
2278
|
+
protoOf(CloseToken).s1j = function (wrap, $super) {
|
|
2279
|
+
var tmp;
|
|
2280
|
+
if (wrap === VOID) {
|
|
2281
|
+
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
2282
|
+
} else {
|
|
2283
|
+
tmp = wrap;
|
|
2284
|
+
}
|
|
2285
|
+
wrap = tmp;
|
|
2286
|
+
return $super === VOID ? this.j1s(wrap) : $super.j1s.call(this, wrap);
|
|
2287
|
+
};
|
|
2288
|
+
protoOf(CloseToken).o1j = function (wrap) {
|
|
2289
|
+
var tmp0_safe_receiver = this.j1s(wrap);
|
|
1535
2290
|
var tmp;
|
|
1536
|
-
if (
|
|
2291
|
+
if (tmp0_safe_receiver == null) {
|
|
1537
2292
|
tmp = null;
|
|
1538
2293
|
} else {
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
var tmp_1;
|
|
1542
|
-
var tmp_2 = this.s1g_1;
|
|
1543
|
-
if (isInterface(tmp_2, CopyableThrowable)) {
|
|
1544
|
-
tmp_1 = this.s1g_1.ru();
|
|
1545
|
-
} else {
|
|
1546
|
-
tmp_1 = IOException_init_$Create$_0(this.s1g_1.message, this.s1g_1);
|
|
1547
|
-
}
|
|
1548
|
-
tmp = tmp_1;
|
|
1549
|
-
} else {
|
|
1550
|
-
var tmp_3 = this.s1g_1;
|
|
1551
|
-
if (!(tmp_3 == null) ? isInterface(tmp_3, CopyableThrowable) : false) {
|
|
1552
|
-
var tmp0_elvis_lhs = this.s1g_1.ru();
|
|
1553
|
-
tmp = tmp0_elvis_lhs == null ? CancellationException_init_$Create$(this.s1g_1.message, this.s1g_1) : tmp0_elvis_lhs;
|
|
1554
|
-
} else {
|
|
1555
|
-
tmp = CancellationException_init_$Create$(this.s1g_1.message, this.s1g_1);
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
2294
|
+
// Inline function 'kotlin.let' call
|
|
2295
|
+
throw tmp0_safe_receiver;
|
|
1558
2296
|
}
|
|
1559
2297
|
return tmp;
|
|
1560
2298
|
};
|
|
@@ -1565,53 +2303,153 @@
|
|
|
1565
2303
|
CLOSED = new CloseToken(null);
|
|
1566
2304
|
}
|
|
1567
2305
|
}
|
|
2306
|
+
function updateConsumed($this) {
|
|
2307
|
+
$this.n1s_1 = $this.n1s_1.z2($this.m1s_1.a3($this.l1s_1.s()));
|
|
2308
|
+
$this.m1s_1 = $this.l1s_1.s();
|
|
2309
|
+
}
|
|
2310
|
+
function $awaitContentCOROUTINE$22(_this__u8e3s4, min, resultContinuation) {
|
|
2311
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2312
|
+
this.w1s_1 = _this__u8e3s4;
|
|
2313
|
+
this.x1s_1 = min;
|
|
2314
|
+
}
|
|
2315
|
+
protoOf($awaitContentCOROUTINE$22).o9 = function () {
|
|
2316
|
+
var suspendResult = this.i9_1;
|
|
2317
|
+
$sm: do
|
|
2318
|
+
try {
|
|
2319
|
+
var tmp = this.g9_1;
|
|
2320
|
+
switch (tmp) {
|
|
2321
|
+
case 0:
|
|
2322
|
+
this.h9_1 = 3;
|
|
2323
|
+
if (this.w1s_1.m1j().s().e1(toLong(this.x1s_1)) >= 0) {
|
|
2324
|
+
this.y1s_1 = true;
|
|
2325
|
+
this.g9_1 = 2;
|
|
2326
|
+
continue $sm;
|
|
2327
|
+
} else {
|
|
2328
|
+
this.g9_1 = 1;
|
|
2329
|
+
suspendResult = this.w1s_1.k1s_1.u1j(this.x1s_1, this);
|
|
2330
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2331
|
+
return suspendResult;
|
|
2332
|
+
}
|
|
2333
|
+
continue $sm;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
case 1:
|
|
2337
|
+
this.y1s_1 = suspendResult;
|
|
2338
|
+
this.g9_1 = 2;
|
|
2339
|
+
continue $sm;
|
|
2340
|
+
case 2:
|
|
2341
|
+
return this.y1s_1;
|
|
2342
|
+
case 3:
|
|
2343
|
+
throw this.j9_1;
|
|
2344
|
+
}
|
|
2345
|
+
} catch ($p) {
|
|
2346
|
+
var e = $p;
|
|
2347
|
+
if (this.h9_1 === 3) {
|
|
2348
|
+
throw e;
|
|
2349
|
+
} else {
|
|
2350
|
+
this.g9_1 = this.h9_1;
|
|
2351
|
+
this.j9_1 = e;
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
while (true);
|
|
2355
|
+
};
|
|
2356
|
+
function CountedByteReadChannel(delegate) {
|
|
2357
|
+
this.k1s_1 = delegate;
|
|
2358
|
+
this.l1s_1 = new Buffer();
|
|
2359
|
+
this.m1s_1 = new Long(0, 0);
|
|
2360
|
+
this.n1s_1 = new Long(0, 0);
|
|
2361
|
+
}
|
|
2362
|
+
protoOf(CountedByteReadChannel).z1s = function () {
|
|
2363
|
+
updateConsumed(this);
|
|
2364
|
+
return this.n1s_1;
|
|
2365
|
+
};
|
|
2366
|
+
protoOf(CountedByteReadChannel).r1j = function () {
|
|
2367
|
+
return this.k1s_1.r1j();
|
|
2368
|
+
};
|
|
2369
|
+
protoOf(CountedByteReadChannel).t1j = function () {
|
|
2370
|
+
return this.l1s_1.g1e() && this.k1s_1.t1j();
|
|
2371
|
+
};
|
|
2372
|
+
protoOf(CountedByteReadChannel).m1j = function () {
|
|
2373
|
+
updateConsumed(this);
|
|
2374
|
+
var appended = this.l1s_1.y1f(this.k1s_1.m1j());
|
|
2375
|
+
this.m1s_1 = this.m1s_1.z2(appended);
|
|
2376
|
+
return this.l1s_1;
|
|
2377
|
+
};
|
|
2378
|
+
protoOf(CountedByteReadChannel).u1j = function (min, $completion) {
|
|
2379
|
+
var tmp = new $awaitContentCOROUTINE$22(this, min, $completion);
|
|
2380
|
+
tmp.i9_1 = Unit_instance;
|
|
2381
|
+
tmp.j9_1 = null;
|
|
2382
|
+
return tmp.o9();
|
|
2383
|
+
};
|
|
2384
|
+
protoOf(CountedByteReadChannel).x1j = function (cause) {
|
|
2385
|
+
this.k1s_1.x1j(cause);
|
|
2386
|
+
this.l1s_1.p4();
|
|
2387
|
+
};
|
|
2388
|
+
function counted(_this__u8e3s4) {
|
|
2389
|
+
return new CountedByteReadChannel(_this__u8e3s4);
|
|
2390
|
+
}
|
|
1568
2391
|
function readText(_this__u8e3s4) {
|
|
1569
|
-
return
|
|
2392
|
+
return readString_0(_this__u8e3s4);
|
|
2393
|
+
}
|
|
2394
|
+
function ClosedByteChannelException(cause) {
|
|
2395
|
+
cause = cause === VOID ? null : cause;
|
|
2396
|
+
IOException_init_$Init$(cause == null ? null : cause.message, cause, this);
|
|
2397
|
+
captureStack(this, ClosedByteChannelException);
|
|
2398
|
+
}
|
|
2399
|
+
function ClosedReadChannelException(cause) {
|
|
2400
|
+
cause = cause === VOID ? null : cause;
|
|
2401
|
+
ClosedByteChannelException.call(this, cause);
|
|
2402
|
+
captureStack(this, ClosedReadChannelException);
|
|
2403
|
+
}
|
|
2404
|
+
function ClosedWriteChannelException(cause) {
|
|
2405
|
+
cause = cause === VOID ? null : cause;
|
|
2406
|
+
ClosedByteChannelException.call(this, cause);
|
|
2407
|
+
captureStack(this, ClosedWriteChannelException);
|
|
1570
2408
|
}
|
|
1571
2409
|
function SourceByteReadChannel(source) {
|
|
1572
|
-
this.
|
|
1573
|
-
this.
|
|
2410
|
+
this.a1t_1 = source;
|
|
2411
|
+
this.b1t_1 = null;
|
|
1574
2412
|
}
|
|
1575
|
-
protoOf(SourceByteReadChannel).
|
|
1576
|
-
var tmp0_safe_receiver = this.
|
|
1577
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2413
|
+
protoOf(SourceByteReadChannel).r1j = function () {
|
|
2414
|
+
var tmp0_safe_receiver = this.b1t_1;
|
|
2415
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1j();
|
|
1578
2416
|
};
|
|
1579
|
-
protoOf(SourceByteReadChannel).
|
|
1580
|
-
return this.
|
|
2417
|
+
protoOf(SourceByteReadChannel).t1j = function () {
|
|
2418
|
+
return this.a1t_1.g1e();
|
|
1581
2419
|
};
|
|
1582
|
-
protoOf(SourceByteReadChannel).
|
|
1583
|
-
var tmp0_safe_receiver = this.
|
|
2420
|
+
protoOf(SourceByteReadChannel).m1j = function () {
|
|
2421
|
+
var tmp0_safe_receiver = this.r1j();
|
|
1584
2422
|
if (tmp0_safe_receiver == null)
|
|
1585
2423
|
null;
|
|
1586
2424
|
else {
|
|
1587
2425
|
// Inline function 'kotlin.let' call
|
|
1588
2426
|
throw tmp0_safe_receiver;
|
|
1589
2427
|
}
|
|
1590
|
-
return this.
|
|
2428
|
+
return this.a1t_1;
|
|
1591
2429
|
};
|
|
1592
|
-
protoOf(SourceByteReadChannel).
|
|
1593
|
-
var tmp0_safe_receiver = this.
|
|
2430
|
+
protoOf(SourceByteReadChannel).u1j = function (min, $completion) {
|
|
2431
|
+
var tmp0_safe_receiver = this.r1j();
|
|
1594
2432
|
if (tmp0_safe_receiver == null)
|
|
1595
2433
|
null;
|
|
1596
2434
|
else {
|
|
1597
2435
|
// Inline function 'kotlin.let' call
|
|
1598
2436
|
throw tmp0_safe_receiver;
|
|
1599
2437
|
}
|
|
1600
|
-
return get_remaining(this.
|
|
2438
|
+
return get_remaining(this.a1t_1).e1(toLong(min)) >= 0;
|
|
1601
2439
|
};
|
|
1602
|
-
protoOf(SourceByteReadChannel).
|
|
1603
|
-
if (!(this.
|
|
2440
|
+
protoOf(SourceByteReadChannel).x1j = function (cause) {
|
|
2441
|
+
if (!(this.b1t_1 == null))
|
|
1604
2442
|
return Unit_instance;
|
|
1605
|
-
this.
|
|
2443
|
+
this.a1t_1.p4();
|
|
1606
2444
|
var tmp = this;
|
|
1607
2445
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
1608
|
-
tmp.
|
|
2446
|
+
tmp.b1t_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
1609
2447
|
};
|
|
1610
2448
|
function decode(_this__u8e3s4, input, max) {
|
|
1611
2449
|
max = max === VOID ? 2147483647 : max;
|
|
1612
2450
|
var tmp0 = toLong(max);
|
|
1613
2451
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1614
|
-
var b = input.
|
|
2452
|
+
var b = input.f1e().s();
|
|
1615
2453
|
// Inline function 'kotlin.text.buildString' call
|
|
1616
2454
|
var capacity = (tmp0.e1(b) <= 0 ? tmp0 : b).j1();
|
|
1617
2455
|
// Inline function 'kotlin.apply' call
|
|
@@ -1635,6 +2473,10 @@
|
|
|
1635
2473
|
break $l$loop;
|
|
1636
2474
|
}
|
|
1637
2475
|
}
|
|
2476
|
+
function TooLongLineException(message) {
|
|
2477
|
+
MalformedInputException.call(this, message);
|
|
2478
|
+
captureStack(this, TooLongLineException);
|
|
2479
|
+
}
|
|
1638
2480
|
function encode(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
1639
2481
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1640
2482
|
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
@@ -1645,7 +2487,7 @@
|
|
|
1645
2487
|
return builder;
|
|
1646
2488
|
}
|
|
1647
2489
|
function canRead(_this__u8e3s4) {
|
|
1648
|
-
return !_this__u8e3s4.
|
|
2490
|
+
return !_this__u8e3s4.g1e();
|
|
1649
2491
|
}
|
|
1650
2492
|
function readBytes(_this__u8e3s4, count) {
|
|
1651
2493
|
count = count === VOID ? _this__u8e3s4.s().j1() : count;
|
|
@@ -1655,37 +2497,37 @@
|
|
|
1655
2497
|
return new Buffer();
|
|
1656
2498
|
}
|
|
1657
2499
|
function writePacket_0(_this__u8e3s4, packet) {
|
|
1658
|
-
_this__u8e3s4.
|
|
2500
|
+
_this__u8e3s4.y1f(packet);
|
|
1659
2501
|
}
|
|
1660
2502
|
function build(_this__u8e3s4) {
|
|
1661
|
-
return _this__u8e3s4.
|
|
1662
|
-
}
|
|
1663
|
-
function get_size(_this__u8e3s4) {
|
|
1664
|
-
return _this__u8e3s4.h1b().s().j1();
|
|
2503
|
+
return _this__u8e3s4.f1e();
|
|
1665
2504
|
}
|
|
1666
2505
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
1667
2506
|
offset = offset === VOID ? 0 : offset;
|
|
1668
2507
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1669
|
-
_this__u8e3s4.
|
|
2508
|
+
_this__u8e3s4.p1f(buffer, offset, offset + length | 0);
|
|
2509
|
+
}
|
|
2510
|
+
function get_size(_this__u8e3s4) {
|
|
2511
|
+
return _this__u8e3s4.f1e().s().j1();
|
|
1670
2512
|
}
|
|
1671
2513
|
var ByteReadPacketEmpty;
|
|
1672
2514
|
function get_remaining(_this__u8e3s4) {
|
|
1673
2515
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1674
|
-
return _this__u8e3s4.
|
|
2516
|
+
return _this__u8e3s4.f1e().s();
|
|
1675
2517
|
}
|
|
1676
|
-
function
|
|
2518
|
+
function discard_0(_this__u8e3s4, count) {
|
|
1677
2519
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
1678
2520
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1679
|
-
_this__u8e3s4.
|
|
2521
|
+
_this__u8e3s4.i1e(count);
|
|
1680
2522
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1681
2523
|
var b = get_remaining(_this__u8e3s4);
|
|
1682
2524
|
var countToDiscard = count.e1(b) <= 0 ? count : b;
|
|
1683
|
-
_this__u8e3s4.
|
|
2525
|
+
_this__u8e3s4.f1e().d1f(countToDiscard);
|
|
1684
2526
|
return countToDiscard;
|
|
1685
2527
|
}
|
|
1686
2528
|
function takeWhile(_this__u8e3s4, block) {
|
|
1687
2529
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1688
|
-
while (!_this__u8e3s4.
|
|
2530
|
+
while (!_this__u8e3s4.g1e() && block(_this__u8e3s4.f1e())) {
|
|
1689
2531
|
}
|
|
1690
2532
|
}
|
|
1691
2533
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -1698,37 +2540,37 @@
|
|
|
1698
2540
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
1699
2541
|
offset = offset === VOID ? 0 : offset;
|
|
1700
2542
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1701
|
-
var result = _this__u8e3s4.
|
|
2543
|
+
var result = _this__u8e3s4.e1f(buffer, offset, offset + length | 0);
|
|
1702
2544
|
return result === -1 ? 0 : result;
|
|
1703
2545
|
}
|
|
2546
|
+
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2547
|
+
charset = charset === VOID ? Charsets_getInstance().c1t_1 : charset;
|
|
2548
|
+
if (charset.equals(Charsets_getInstance().c1t_1))
|
|
2549
|
+
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2550
|
+
return encodeToByteArray_0(charset.f1t(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2551
|
+
}
|
|
1704
2552
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
1705
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2553
|
+
charset = charset === VOID ? Charsets_getInstance().c1t_1 : charset;
|
|
1706
2554
|
max = max === VOID ? 2147483647 : max;
|
|
1707
|
-
if (charset.equals(Charsets_getInstance().
|
|
2555
|
+
if (charset.equals(Charsets_getInstance().c1t_1)) {
|
|
1708
2556
|
if (max === 2147483647)
|
|
1709
|
-
return
|
|
1710
|
-
var tmp0 = _this__u8e3s4.
|
|
2557
|
+
return readString_0(_this__u8e3s4);
|
|
2558
|
+
var tmp0 = _this__u8e3s4.f1e().s();
|
|
1711
2559
|
// Inline function 'kotlin.math.min' call
|
|
1712
2560
|
var b = toLong(max);
|
|
1713
2561
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1714
|
-
return
|
|
2562
|
+
return readString_1(_this__u8e3s4, count);
|
|
1715
2563
|
}
|
|
1716
|
-
return decode(charset.
|
|
1717
|
-
}
|
|
1718
|
-
function toByteArray_0(_this__u8e3s4, charset) {
|
|
1719
|
-
charset = charset === VOID ? Charsets_getInstance().o1l_1 : charset;
|
|
1720
|
-
if (charset.equals(Charsets_getInstance().o1l_1))
|
|
1721
|
-
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
1722
|
-
return encodeToByteArray_0(charset.s1l(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2564
|
+
return decode(charset.g1t(), _this__u8e3s4, max);
|
|
1723
2565
|
}
|
|
1724
2566
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
1725
2567
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1726
2568
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
1727
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
1728
|
-
if (charset === Charsets_getInstance().
|
|
2569
|
+
charset = charset === VOID ? Charsets_getInstance().c1t_1 : charset;
|
|
2570
|
+
if (charset === Charsets_getInstance().c1t_1) {
|
|
1729
2571
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
1730
2572
|
}
|
|
1731
|
-
encodeToImpl(charset.
|
|
2573
|
+
encodeToImpl(charset.f1t(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
1732
2574
|
}
|
|
1733
2575
|
function get_ByteArrayPool() {
|
|
1734
2576
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -1738,7 +2580,7 @@
|
|
|
1738
2580
|
function ByteArrayPool$1() {
|
|
1739
2581
|
DefaultPool.call(this, 128);
|
|
1740
2582
|
}
|
|
1741
|
-
protoOf(ByteArrayPool$1).
|
|
2583
|
+
protoOf(ByteArrayPool$1).k1t = function () {
|
|
1742
2584
|
return new Int8Array(4096);
|
|
1743
2585
|
};
|
|
1744
2586
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -1748,15 +2590,25 @@
|
|
|
1748
2590
|
ByteArrayPool = new ByteArrayPool$1();
|
|
1749
2591
|
}
|
|
1750
2592
|
}
|
|
2593
|
+
function ObjectPool() {
|
|
2594
|
+
}
|
|
2595
|
+
function NoPoolImpl() {
|
|
2596
|
+
}
|
|
2597
|
+
protoOf(NoPoolImpl).s1t = function (instance) {
|
|
2598
|
+
return Unit_instance;
|
|
2599
|
+
};
|
|
2600
|
+
protoOf(NoPoolImpl).wr = function () {
|
|
2601
|
+
return Unit_instance;
|
|
2602
|
+
};
|
|
1751
2603
|
function Companion_1() {
|
|
1752
2604
|
}
|
|
1753
|
-
protoOf(Companion_1).
|
|
2605
|
+
protoOf(Companion_1).t1t = function (name) {
|
|
1754
2606
|
switch (name) {
|
|
1755
2607
|
case 'UTF-8':
|
|
1756
2608
|
case 'utf-8':
|
|
1757
2609
|
case 'UTF8':
|
|
1758
2610
|
case 'utf8':
|
|
1759
|
-
return Charsets_getInstance().
|
|
2611
|
+
return Charsets_getInstance().c1t_1;
|
|
1760
2612
|
}
|
|
1761
2613
|
var tmp;
|
|
1762
2614
|
var tmp_0;
|
|
@@ -1770,7 +2622,7 @@
|
|
|
1770
2622
|
|
|
1771
2623
|
// Inline function 'io.ktor.utils.io.charsets.Companion.forName.<anonymous>' call
|
|
1772
2624
|
|
|
1773
|
-
var it =
|
|
2625
|
+
var it = replace_0(name, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
|
|
1774
2626
|
var tmp_1;
|
|
1775
2627
|
if (it === 'iso-8859-1') {
|
|
1776
2628
|
tmp_1 = true;
|
|
@@ -1789,11 +2641,11 @@
|
|
|
1789
2641
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
1790
2642
|
}
|
|
1791
2643
|
if (tmp) {
|
|
1792
|
-
return Charsets_getInstance().
|
|
2644
|
+
return Charsets_getInstance().d1t_1;
|
|
1793
2645
|
}
|
|
1794
2646
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
1795
2647
|
};
|
|
1796
|
-
protoOf(Companion_1).
|
|
2648
|
+
protoOf(Companion_1).u1t = function (charset) {
|
|
1797
2649
|
var tmp;
|
|
1798
2650
|
switch (charset) {
|
|
1799
2651
|
case 'UTF-8':
|
|
@@ -1815,7 +2667,7 @@
|
|
|
1815
2667
|
|
|
1816
2668
|
// Inline function 'io.ktor.utils.io.charsets.Companion.isSupported.<anonymous>' call
|
|
1817
2669
|
|
|
1818
|
-
var it =
|
|
2670
|
+
var it = replace_0(charset, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
|
|
1819
2671
|
var tmp_2;
|
|
1820
2672
|
if (it === 'iso-8859-1') {
|
|
1821
2673
|
tmp_2 = true;
|
|
@@ -1850,7 +2702,7 @@
|
|
|
1850
2702
|
return Companion_instance_2;
|
|
1851
2703
|
}
|
|
1852
2704
|
function Charset(_name) {
|
|
1853
|
-
this.
|
|
2705
|
+
this.e1t_1 = _name;
|
|
1854
2706
|
}
|
|
1855
2707
|
protoOf(Charset).equals = function (other) {
|
|
1856
2708
|
if (this === other)
|
|
@@ -1859,21 +2711,21 @@
|
|
|
1859
2711
|
return false;
|
|
1860
2712
|
if (!(other instanceof Charset))
|
|
1861
2713
|
THROW_CCE();
|
|
1862
|
-
return this.
|
|
2714
|
+
return this.e1t_1 === other.e1t_1;
|
|
1863
2715
|
};
|
|
1864
2716
|
protoOf(Charset).hashCode = function () {
|
|
1865
|
-
return getStringHashCode(this.
|
|
2717
|
+
return getStringHashCode(this.e1t_1);
|
|
1866
2718
|
};
|
|
1867
2719
|
protoOf(Charset).toString = function () {
|
|
1868
|
-
return this.
|
|
2720
|
+
return this.e1t_1;
|
|
1869
2721
|
};
|
|
1870
2722
|
function get_name(_this__u8e3s4) {
|
|
1871
|
-
return _this__u8e3s4.
|
|
2723
|
+
return _this__u8e3s4.e1t_1;
|
|
1872
2724
|
}
|
|
1873
2725
|
function Charsets() {
|
|
1874
2726
|
Charsets_instance = this;
|
|
1875
|
-
this.
|
|
1876
|
-
this.
|
|
2727
|
+
this.c1t_1 = new CharsetImpl('UTF-8');
|
|
2728
|
+
this.d1t_1 = new CharsetImpl('ISO-8859-1');
|
|
1877
2729
|
}
|
|
1878
2730
|
var Charsets_instance;
|
|
1879
2731
|
function Charsets_getInstance() {
|
|
@@ -1882,33 +2734,53 @@
|
|
|
1882
2734
|
return Charsets_instance;
|
|
1883
2735
|
}
|
|
1884
2736
|
function MalformedInputException(message) {
|
|
1885
|
-
IOException_init_$Init$(message, this);
|
|
2737
|
+
IOException_init_$Init$_0(message, this);
|
|
1886
2738
|
captureStack(this, MalformedInputException);
|
|
1887
2739
|
}
|
|
1888
2740
|
function CharsetDecoder(_charset) {
|
|
1889
|
-
this.
|
|
2741
|
+
this.v1t_1 = _charset;
|
|
2742
|
+
}
|
|
2743
|
+
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2744
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2745
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
2746
|
+
return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
|
|
1890
2747
|
}
|
|
1891
2748
|
function CharsetEncoder(_charset) {
|
|
1892
|
-
this.
|
|
2749
|
+
this.w1t_1 = _charset;
|
|
1893
2750
|
}
|
|
1894
2751
|
function CharsetImpl(name) {
|
|
1895
2752
|
Charset.call(this, name);
|
|
1896
2753
|
}
|
|
1897
|
-
protoOf(CharsetImpl).
|
|
2754
|
+
protoOf(CharsetImpl).f1t = function () {
|
|
1898
2755
|
return new CharsetEncoderImpl(this);
|
|
1899
2756
|
};
|
|
1900
|
-
protoOf(CharsetImpl).
|
|
2757
|
+
protoOf(CharsetImpl).g1t = function () {
|
|
1901
2758
|
return new CharsetDecoderImpl(this);
|
|
1902
2759
|
};
|
|
2760
|
+
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2761
|
+
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2762
|
+
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
2763
|
+
var start = fromIndex;
|
|
2764
|
+
if (start >= toIndex)
|
|
2765
|
+
return new Int8Array(0);
|
|
2766
|
+
var dst = new Buffer();
|
|
2767
|
+
var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, dst);
|
|
2768
|
+
start = start + rc | 0;
|
|
2769
|
+
if (start === toIndex) {
|
|
2770
|
+
return readByteArray_0(dst);
|
|
2771
|
+
}
|
|
2772
|
+
encodeToImpl(_this__u8e3s4, dst, input, start, toIndex);
|
|
2773
|
+
return readByteArray_0(dst);
|
|
2774
|
+
}
|
|
1903
2775
|
function CharsetEncoderImpl(charset) {
|
|
1904
2776
|
CharsetEncoder.call(this, charset);
|
|
1905
|
-
this.
|
|
2777
|
+
this.z1t_1 = charset;
|
|
1906
2778
|
}
|
|
1907
2779
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
1908
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
2780
|
+
return 'CharsetEncoderImpl(charset=' + this.z1t_1.toString() + ')';
|
|
1909
2781
|
};
|
|
1910
2782
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
1911
|
-
return this.
|
|
2783
|
+
return this.z1t_1.hashCode();
|
|
1912
2784
|
};
|
|
1913
2785
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
1914
2786
|
if (this === other)
|
|
@@ -1916,19 +2788,19 @@
|
|
|
1916
2788
|
if (!(other instanceof CharsetEncoderImpl))
|
|
1917
2789
|
return false;
|
|
1918
2790
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
1919
|
-
if (!this.
|
|
2791
|
+
if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
|
|
1920
2792
|
return false;
|
|
1921
2793
|
return true;
|
|
1922
2794
|
};
|
|
1923
2795
|
function CharsetDecoderImpl(charset) {
|
|
1924
2796
|
CharsetDecoder.call(this, charset);
|
|
1925
|
-
this.
|
|
2797
|
+
this.b1u_1 = charset;
|
|
1926
2798
|
}
|
|
1927
2799
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
1928
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
2800
|
+
return 'CharsetDecoderImpl(charset=' + this.b1u_1.toString() + ')';
|
|
1929
2801
|
};
|
|
1930
2802
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
1931
|
-
return this.
|
|
2803
|
+
return this.b1u_1.hashCode();
|
|
1932
2804
|
};
|
|
1933
2805
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
1934
2806
|
if (this === other)
|
|
@@ -1936,58 +2808,10 @@
|
|
|
1936
2808
|
if (!(other instanceof CharsetDecoderImpl))
|
|
1937
2809
|
return false;
|
|
1938
2810
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
1939
|
-
if (!this.
|
|
2811
|
+
if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
|
|
1940
2812
|
return false;
|
|
1941
2813
|
return true;
|
|
1942
2814
|
};
|
|
1943
|
-
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
1944
|
-
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1945
|
-
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
1946
|
-
return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
|
|
1947
|
-
}
|
|
1948
|
-
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
1949
|
-
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
1950
|
-
var tmp0 = input.h1b().s();
|
|
1951
|
-
// Inline function 'kotlin.comparisons.minOf' call
|
|
1952
|
-
var b = toLong(max);
|
|
1953
|
-
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1954
|
-
var tmp = readByteArray(input, count.j1());
|
|
1955
|
-
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
1956
|
-
var tmp_0;
|
|
1957
|
-
try {
|
|
1958
|
-
tmp_0 = decoder.o1m(array);
|
|
1959
|
-
} catch ($p) {
|
|
1960
|
-
var tmp_1;
|
|
1961
|
-
if ($p instanceof Error) {
|
|
1962
|
-
var cause = $p;
|
|
1963
|
-
var tmp0_elvis_lhs = cause.message;
|
|
1964
|
-
throw new MalformedInputException('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
|
|
1965
|
-
} else {
|
|
1966
|
-
throw $p;
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
var result = tmp_0;
|
|
1970
|
-
dst.l(result);
|
|
1971
|
-
return result.length;
|
|
1972
|
-
}
|
|
1973
|
-
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
1974
|
-
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1975
|
-
toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
|
|
1976
|
-
var start = fromIndex;
|
|
1977
|
-
if (start >= toIndex)
|
|
1978
|
-
return new Int8Array(0);
|
|
1979
|
-
var dst = new Buffer();
|
|
1980
|
-
var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, dst);
|
|
1981
|
-
start = start + rc | 0;
|
|
1982
|
-
if (start === toIndex) {
|
|
1983
|
-
return readByteArray_0(dst);
|
|
1984
|
-
}
|
|
1985
|
-
encodeToImpl(_this__u8e3s4, dst, input, start, toIndex);
|
|
1986
|
-
return readByteArray_0(dst);
|
|
1987
|
-
}
|
|
1988
|
-
function get_charset(_this__u8e3s4) {
|
|
1989
|
-
return _this__u8e3s4.h1m_1;
|
|
1990
|
-
}
|
|
1991
2815
|
function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
1992
2816
|
// Inline function 'kotlin.require' call
|
|
1993
2817
|
// Inline function 'kotlin.require' call
|
|
@@ -1996,11 +2820,11 @@
|
|
|
1996
2820
|
var message = 'Failed requirement.';
|
|
1997
2821
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1998
2822
|
}
|
|
1999
|
-
if (
|
|
2823
|
+
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().d1t_1)) {
|
|
2000
2824
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
2001
2825
|
}
|
|
2002
2826
|
// Inline function 'kotlin.require' call
|
|
2003
|
-
if (!(
|
|
2827
|
+
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().c1t_1)) {
|
|
2004
2828
|
// Inline function 'io.ktor.utils.io.charsets.encodeImpl.<anonymous>' call
|
|
2005
2829
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
2006
2830
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
@@ -2011,17 +2835,45 @@
|
|
|
2011
2835
|
var result = encoder.encode(tmp$ret$2);
|
|
2012
2836
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2013
2837
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2014
|
-
dst.
|
|
2838
|
+
dst.s1f(result);
|
|
2839
|
+
return result.length;
|
|
2840
|
+
}
|
|
2841
|
+
function get_charset(_this__u8e3s4) {
|
|
2842
|
+
return _this__u8e3s4.w1t_1;
|
|
2843
|
+
}
|
|
2844
|
+
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
2845
|
+
var decoder = Decoder(get_name(get_charset_0(_this__u8e3s4)), true);
|
|
2846
|
+
var tmp0 = input.f1e().s();
|
|
2847
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2848
|
+
var b = toLong(max);
|
|
2849
|
+
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
2850
|
+
var tmp = readByteArray(input, count.j1());
|
|
2851
|
+
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
2852
|
+
var tmp_0;
|
|
2853
|
+
try {
|
|
2854
|
+
tmp_0 = decoder.c1u(array);
|
|
2855
|
+
} catch ($p) {
|
|
2856
|
+
var tmp_1;
|
|
2857
|
+
if ($p instanceof Error) {
|
|
2858
|
+
var cause = $p;
|
|
2859
|
+
var tmp0_elvis_lhs = cause.message;
|
|
2860
|
+
throw new MalformedInputException('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
|
|
2861
|
+
} else {
|
|
2862
|
+
throw $p;
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
var result = tmp_0;
|
|
2866
|
+
dst.l(result);
|
|
2015
2867
|
return result.length;
|
|
2016
2868
|
}
|
|
2017
2869
|
function get_charset_0(_this__u8e3s4) {
|
|
2018
|
-
return _this__u8e3s4.
|
|
2870
|
+
return _this__u8e3s4.v1t_1;
|
|
2019
2871
|
}
|
|
2020
2872
|
function forName(_this__u8e3s4, name) {
|
|
2021
|
-
return Companion_instance_2.
|
|
2873
|
+
return Companion_instance_2.t1t(name);
|
|
2022
2874
|
}
|
|
2023
2875
|
function isSupported(_this__u8e3s4, name) {
|
|
2024
|
-
return Companion_instance_2.
|
|
2876
|
+
return Companion_instance_2.u1t(name);
|
|
2025
2877
|
}
|
|
2026
2878
|
function Decoder(encoding, fatal) {
|
|
2027
2879
|
fatal = fatal === VOID ? true : fatal;
|
|
@@ -2055,10 +2907,10 @@
|
|
|
2055
2907
|
return this_0;
|
|
2056
2908
|
}
|
|
2057
2909
|
function toKtor$1($this_toKtor) {
|
|
2058
|
-
this.
|
|
2910
|
+
this.d1u_1 = $this_toKtor;
|
|
2059
2911
|
}
|
|
2060
|
-
protoOf(toKtor$1).
|
|
2061
|
-
return this.
|
|
2912
|
+
protoOf(toKtor$1).c1u = function (buffer) {
|
|
2913
|
+
return this.d1u_1.decode(buffer);
|
|
2062
2914
|
};
|
|
2063
2915
|
function get_ENCODING_ALIASES() {
|
|
2064
2916
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -2071,7 +2923,7 @@
|
|
|
2071
2923
|
}
|
|
2072
2924
|
var REPLACEMENT;
|
|
2073
2925
|
function TextDecoderFallback(encoding, fatal) {
|
|
2074
|
-
this.
|
|
2926
|
+
this.e1u_1 = fatal;
|
|
2075
2927
|
// Inline function 'kotlin.text.trim' call
|
|
2076
2928
|
// Inline function 'kotlin.text.lowercase' call
|
|
2077
2929
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2083,7 +2935,7 @@
|
|
|
2083
2935
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2084
2936
|
}
|
|
2085
2937
|
}
|
|
2086
|
-
protoOf(TextDecoderFallback).
|
|
2938
|
+
protoOf(TextDecoderFallback).c1u = function (buffer) {
|
|
2087
2939
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2088
2940
|
var builder = new Buffer();
|
|
2089
2941
|
// Inline function 'io.ktor.utils.io.charsets.TextDecoderFallback.decode.<anonymous>' call
|
|
@@ -2100,7 +2952,7 @@
|
|
|
2100
2952
|
var point = toCodePoint(byte);
|
|
2101
2953
|
if (point < 0) {
|
|
2102
2954
|
// Inline function 'kotlin.check' call
|
|
2103
|
-
if (!!this.
|
|
2955
|
+
if (!!this.e1u_1) {
|
|
2104
2956
|
// Inline function 'io.ktor.utils.io.charsets.TextDecoderFallback.decode.<anonymous>.<anonymous>' call
|
|
2105
2957
|
var message = 'Invalid character: ' + point;
|
|
2106
2958
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
@@ -2109,12 +2961,12 @@
|
|
|
2109
2961
|
continue $l$loop;
|
|
2110
2962
|
}
|
|
2111
2963
|
if (point > 255) {
|
|
2112
|
-
builder.
|
|
2964
|
+
builder.z1f(toByte(point >> 8));
|
|
2113
2965
|
}
|
|
2114
|
-
builder.
|
|
2966
|
+
builder.z1f(toByte(point & 255));
|
|
2115
2967
|
}
|
|
2116
2968
|
while (inductionVariable < last);
|
|
2117
|
-
return
|
|
2969
|
+
return decodeToString_0(readByteArray_0(builder));
|
|
2118
2970
|
};
|
|
2119
2971
|
function toCodePoint(_this__u8e3s4) {
|
|
2120
2972
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -2137,6 +2989,9 @@
|
|
|
2137
2989
|
REPLACEMENT = new Int8Array([-17, -65, -67]);
|
|
2138
2990
|
}
|
|
2139
2991
|
}
|
|
2992
|
+
function get_DEVELOPMENT_MODE() {
|
|
2993
|
+
return false;
|
|
2994
|
+
}
|
|
2140
2995
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
2141
2996
|
if (fromIndex >= toIndex)
|
|
2142
2997
|
return 0;
|
|
@@ -2151,7 +3006,7 @@
|
|
|
2151
3006
|
if (character > 255) {
|
|
2152
3007
|
failedToMapError(character);
|
|
2153
3008
|
}
|
|
2154
|
-
dst.
|
|
3009
|
+
dst.z1f(toByte(character));
|
|
2155
3010
|
}
|
|
2156
3011
|
while (inductionVariable < toIndex);
|
|
2157
3012
|
return toIndex - fromIndex | 0;
|
|
@@ -2173,51 +3028,66 @@
|
|
|
2173
3028
|
}
|
|
2174
3029
|
}
|
|
2175
3030
|
function DefaultPool(capacity) {
|
|
2176
|
-
this.
|
|
3031
|
+
this.l1t_1 = capacity;
|
|
2177
3032
|
var tmp = this;
|
|
2178
3033
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
2179
|
-
var size = this.
|
|
2180
|
-
tmp.
|
|
2181
|
-
this.
|
|
3034
|
+
var size = this.l1t_1;
|
|
3035
|
+
tmp.m1t_1 = fillArrayVal(Array(size), null);
|
|
3036
|
+
this.n1t_1 = 0;
|
|
2182
3037
|
}
|
|
2183
|
-
protoOf(DefaultPool).
|
|
3038
|
+
protoOf(DefaultPool).o1t = function (instance) {
|
|
2184
3039
|
};
|
|
2185
|
-
protoOf(DefaultPool).
|
|
3040
|
+
protoOf(DefaultPool).p1t = function (instance) {
|
|
2186
3041
|
return instance;
|
|
2187
3042
|
};
|
|
2188
|
-
protoOf(DefaultPool).
|
|
3043
|
+
protoOf(DefaultPool).q1t = function (instance) {
|
|
2189
3044
|
};
|
|
2190
|
-
protoOf(DefaultPool).
|
|
2191
|
-
if (this.
|
|
2192
|
-
return this.
|
|
2193
|
-
this.
|
|
2194
|
-
var idx = this.
|
|
2195
|
-
var tmp = this.
|
|
3045
|
+
protoOf(DefaultPool).r1t = function () {
|
|
3046
|
+
if (this.n1t_1 === 0)
|
|
3047
|
+
return this.k1t();
|
|
3048
|
+
this.n1t_1 = this.n1t_1 - 1 | 0;
|
|
3049
|
+
var idx = this.n1t_1;
|
|
3050
|
+
var tmp = this.m1t_1[idx];
|
|
2196
3051
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
2197
|
-
this.
|
|
2198
|
-
return this.
|
|
3052
|
+
this.m1t_1[idx] = null;
|
|
3053
|
+
return this.p1t(instance);
|
|
2199
3054
|
};
|
|
2200
|
-
protoOf(DefaultPool).
|
|
2201
|
-
this.
|
|
2202
|
-
if (this.
|
|
2203
|
-
this.
|
|
3055
|
+
protoOf(DefaultPool).s1t = function (instance) {
|
|
3056
|
+
this.q1t(instance);
|
|
3057
|
+
if (this.n1t_1 === this.l1t_1) {
|
|
3058
|
+
this.o1t(instance);
|
|
2204
3059
|
} else {
|
|
2205
|
-
var _unary__edvuaz = this.
|
|
2206
|
-
this.
|
|
2207
|
-
this.
|
|
3060
|
+
var _unary__edvuaz = this.n1t_1;
|
|
3061
|
+
this.n1t_1 = _unary__edvuaz + 1 | 0;
|
|
3062
|
+
this.m1t_1[_unary__edvuaz] = instance;
|
|
2208
3063
|
}
|
|
2209
3064
|
};
|
|
2210
|
-
function
|
|
2211
|
-
|
|
2212
|
-
|
|
3065
|
+
protoOf(DefaultPool).wr = function () {
|
|
3066
|
+
var inductionVariable = 0;
|
|
3067
|
+
var last = this.n1t_1;
|
|
3068
|
+
if (inductionVariable < last)
|
|
3069
|
+
do {
|
|
3070
|
+
var i = inductionVariable;
|
|
3071
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3072
|
+
var tmp = this.m1t_1[i];
|
|
3073
|
+
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3074
|
+
this.m1t_1[i] = null;
|
|
3075
|
+
this.o1t(instance);
|
|
3076
|
+
}
|
|
3077
|
+
while (inductionVariable < last);
|
|
3078
|
+
this.n1t_1 = 0;
|
|
3079
|
+
};
|
|
2213
3080
|
//region block: post-declaration
|
|
2214
|
-
protoOf(Read).
|
|
2215
|
-
protoOf(Read).
|
|
2216
|
-
protoOf(Write).
|
|
2217
|
-
protoOf(Write).
|
|
2218
|
-
protoOf(ByteChannel).
|
|
2219
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
2220
|
-
protoOf(
|
|
3081
|
+
protoOf(Read).k1h = resume;
|
|
3082
|
+
protoOf(Read).l1h = resume_0;
|
|
3083
|
+
protoOf(Write).k1h = resume;
|
|
3084
|
+
protoOf(Write).l1h = resume_0;
|
|
3085
|
+
protoOf(ByteChannel).v1j = awaitContent$default;
|
|
3086
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v1j = awaitContent$default;
|
|
3087
|
+
protoOf(CountedByteReadChannel).v1j = awaitContent$default;
|
|
3088
|
+
protoOf(SourceByteReadChannel).v1j = awaitContent$default;
|
|
3089
|
+
protoOf(DefaultPool).p4 = close;
|
|
3090
|
+
protoOf(NoPoolImpl).p4 = close;
|
|
2221
3091
|
//endregion
|
|
2222
3092
|
//region block: init
|
|
2223
3093
|
Empty_instance = new Empty();
|
|
@@ -2229,40 +3099,47 @@
|
|
|
2229
3099
|
_.$_$.b = readAvailable;
|
|
2230
3100
|
_.$_$.c = readPacket;
|
|
2231
3101
|
_.$_$.d = readRemaining;
|
|
2232
|
-
_.$_$.e =
|
|
2233
|
-
_.$_$.f =
|
|
2234
|
-
_.$_$.g =
|
|
2235
|
-
_.$_$.h =
|
|
2236
|
-
_.$_$.i =
|
|
2237
|
-
_.$_$.j =
|
|
2238
|
-
_.$_$.k =
|
|
2239
|
-
_.$_$.l =
|
|
2240
|
-
_.$_$.m =
|
|
2241
|
-
_.$_$.n =
|
|
2242
|
-
_.$_$.o =
|
|
2243
|
-
_.$_$.p =
|
|
2244
|
-
_.$_$.q =
|
|
2245
|
-
_.$_$.r =
|
|
2246
|
-
_.$_$.s =
|
|
2247
|
-
_.$_$.t =
|
|
2248
|
-
_.$_$.u =
|
|
2249
|
-
_.$_$.v =
|
|
2250
|
-
_.$_$.w =
|
|
2251
|
-
_.$_$.x =
|
|
2252
|
-
_.$_$.y =
|
|
2253
|
-
_.$_$.z =
|
|
2254
|
-
_.$_$.a1 =
|
|
2255
|
-
_.$_$.b1 =
|
|
2256
|
-
_.$_$.c1 =
|
|
2257
|
-
_.$_$.d1 =
|
|
2258
|
-
_.$_$.e1 =
|
|
2259
|
-
_.$_$.f1 =
|
|
2260
|
-
_.$_$.g1 =
|
|
2261
|
-
_.$_$.h1 =
|
|
2262
|
-
_.$_$.i1 =
|
|
2263
|
-
_.$_$.j1 =
|
|
2264
|
-
_.$_$.k1 =
|
|
2265
|
-
_.$_$.l1 =
|
|
3102
|
+
_.$_$.e = readUTF8LineTo;
|
|
3103
|
+
_.$_$.f = readUntil;
|
|
3104
|
+
_.$_$.g = skipIfFound;
|
|
3105
|
+
_.$_$.h = toByteArray;
|
|
3106
|
+
_.$_$.i = writeFully;
|
|
3107
|
+
_.$_$.j = writePacket;
|
|
3108
|
+
_.$_$.k = Charsets_getInstance;
|
|
3109
|
+
_.$_$.l = Companion_getInstance_0;
|
|
3110
|
+
_.$_$.m = MalformedInputException;
|
|
3111
|
+
_.$_$.n = decode;
|
|
3112
|
+
_.$_$.o = encode;
|
|
3113
|
+
_.$_$.p = forName;
|
|
3114
|
+
_.$_$.q = isSupported;
|
|
3115
|
+
_.$_$.r = get_name;
|
|
3116
|
+
_.$_$.s = BytePacketBuilder;
|
|
3117
|
+
_.$_$.t = build;
|
|
3118
|
+
_.$_$.u = canRead;
|
|
3119
|
+
_.$_$.v = discard_0;
|
|
3120
|
+
_.$_$.w = readAvailable_0;
|
|
3121
|
+
_.$_$.x = readText_0;
|
|
3122
|
+
_.$_$.y = get_remaining;
|
|
3123
|
+
_.$_$.z = takeWhile;
|
|
3124
|
+
_.$_$.a1 = toByteArray_0;
|
|
3125
|
+
_.$_$.b1 = writeFully_0;
|
|
3126
|
+
_.$_$.c1 = writePacket_0;
|
|
3127
|
+
_.$_$.d1 = writeText;
|
|
3128
|
+
_.$_$.e1 = get_ByteArrayPool;
|
|
3129
|
+
_.$_$.f1 = DefaultPool;
|
|
3130
|
+
_.$_$.g1 = NoPoolImpl;
|
|
3131
|
+
_.$_$.h1 = ByteChannel;
|
|
3132
|
+
_.$_$.i1 = ByteReadChannel;
|
|
3133
|
+
_.$_$.j1 = ByteReadChannel_1;
|
|
3134
|
+
_.$_$.k1 = WriterScope;
|
|
3135
|
+
_.$_$.l1 = get_availableForRead;
|
|
3136
|
+
_.$_$.m1 = cancel_0;
|
|
3137
|
+
_.$_$.n1 = close_0;
|
|
3138
|
+
_.$_$.o1 = counted;
|
|
3139
|
+
_.$_$.p1 = invokeOnCompletion;
|
|
3140
|
+
_.$_$.q1 = get_isCompleted;
|
|
3141
|
+
_.$_$.r1 = readText;
|
|
3142
|
+
_.$_$.s1 = writer;
|
|
2266
3143
|
//endregion
|
|
2267
3144
|
return _;
|
|
2268
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./kotlinx-atomicfu.js')));
|
|
3145
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-io-kotlinx-io-bytestring.js')));
|