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