@doordeck/doordeck-headless-sdk 0.107.0 → 0.108.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/Kermit-kermit-core.js +44 -44
- package/kotlin/Kermit-kermit.js +4 -4
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1393 -1393
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +10 -10
- package/kotlin/doordeck-sdk.js +9596 -9786
- package/kotlin/kotlinx-coroutines-core.js +855 -844
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlin/kotlinx-io-kotlinx-io-core.js +630 -428
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1738 -1742
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1399 -1399
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1895 -1895
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +245 -241
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +135 -135
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +658 -658
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +329 -329
- package/kotlin/ktor-ktor-http.js +677 -677
- package/kotlin/ktor-ktor-io.js +976 -888
- package/kotlin/ktor-ktor-shared-ktor-events.js +5 -5
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +133 -133
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +38 -38
- package/kotlin/ktor-ktor-utils.js +644 -644
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
39
39
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
40
40
|
var replace = kotlin_kotlin.$_$.qd;
|
|
41
|
+
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
42
|
+
var toString_1 = kotlin_kotlin.$_$.yb;
|
|
43
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
41
44
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
42
|
-
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.
|
|
45
|
+
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
43
46
|
var closeFinally = kotlin_kotlin.$_$.hg;
|
|
44
|
-
var
|
|
45
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
46
|
-
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
47
|
+
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
47
48
|
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.s4;
|
|
48
49
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
49
50
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
@@ -57,25 +58,25 @@
|
|
|
57
58
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
58
59
|
var CancellationException = kotlin_kotlin.$_$.e9;
|
|
59
60
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
60
|
-
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.
|
|
61
|
+
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
61
62
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
62
63
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
63
64
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
64
65
|
var listOf = kotlin_kotlin.$_$.w7;
|
|
65
66
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
66
67
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
68
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
67
69
|
var charSequenceLength = kotlin_kotlin.$_$.ha;
|
|
68
|
-
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.
|
|
70
|
+
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
69
71
|
var encodeToByteArray = kotlin_kotlin.$_$.wc;
|
|
70
|
-
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.
|
|
71
|
-
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.
|
|
72
|
+
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
73
|
+
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
|
|
72
74
|
var AutoCloseable = kotlin_kotlin.$_$.af;
|
|
73
75
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t2;
|
|
74
76
|
var replace_0 = kotlin_kotlin.$_$.rd;
|
|
75
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
76
77
|
var getStringHashCode = kotlin_kotlin.$_$.qa;
|
|
77
78
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
78
|
-
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.
|
|
79
|
+
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
79
80
|
var charSequenceSubSequence = kotlin_kotlin.$_$.ia;
|
|
80
81
|
var isCharSequence = kotlin_kotlin.$_$.db;
|
|
81
82
|
var trim = kotlin_kotlin.$_$.ve;
|
|
@@ -90,10 +91,10 @@
|
|
|
90
91
|
initMetadataForObject(Empty, 'Empty');
|
|
91
92
|
initMetadataForClass(Closed, 'Closed');
|
|
92
93
|
function resume() {
|
|
93
|
-
return this.
|
|
94
|
+
return this.q1k().r9(Companion_getInstance().n1k_1);
|
|
94
95
|
}
|
|
95
96
|
function resume_0(throwable) {
|
|
96
|
-
var tmp = this.
|
|
97
|
+
var tmp = this.q1k();
|
|
97
98
|
var tmp_0;
|
|
98
99
|
if (throwable == null) {
|
|
99
100
|
tmp_0 = null;
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
tmp_0 = new Result(tmp$ret$2);
|
|
105
106
|
}
|
|
106
107
|
var tmp1_elvis_lhs = tmp_0;
|
|
107
|
-
return tmp.r9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
108
|
+
return tmp.r9(tmp1_elvis_lhs == null ? Companion_getInstance().n1k_1 : tmp1_elvis_lhs.pl_1);
|
|
108
109
|
}
|
|
109
110
|
initMetadataForInterface(Task, 'Task');
|
|
110
111
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -114,28 +115,29 @@
|
|
|
114
115
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$2, CoroutineImpl);
|
|
115
116
|
function awaitContent$default(min, $completion, $super) {
|
|
116
117
|
min = min === VOID ? 1 : min;
|
|
117
|
-
return $super === VOID ? this.
|
|
118
|
+
return $super === VOID ? this.c1n(min, $completion) : $super.c1n.call(this, min, $completion);
|
|
118
119
|
}
|
|
119
120
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
120
121
|
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1], [1, 0]);
|
|
121
122
|
initMetadataForClass(ConcurrentIOException, 'ConcurrentIOException', VOID, IllegalStateException);
|
|
123
|
+
initMetadataForCoroutine($findNextCOROUTINE$3, CoroutineImpl);
|
|
124
|
+
initMetadataForCoroutine($advanceToNextPotentialMatchCOROUTINE$4, CoroutineImpl);
|
|
125
|
+
initMetadataForCoroutine($checkFullMatchCOROUTINE$5, CoroutineImpl);
|
|
126
|
+
initMetadataForClass(ByteChannelScanner, 'ByteChannelScanner', VOID, VOID, VOID, [1, 0]);
|
|
122
127
|
initMetadataForClass(ByteReadChannel$Companion$Empty$1, VOID, VOID, VOID, [ByteReadChannel_1], [1]);
|
|
123
128
|
initMetadataForCompanion(Companion_0);
|
|
124
|
-
initMetadataForCoroutine($readRemainingCOROUTINE$
|
|
125
|
-
initMetadataForCoroutine($readPacketCOROUTINE$
|
|
126
|
-
initMetadataForCoroutine($discardCOROUTINE$
|
|
127
|
-
initMetadataForCoroutine($readAvailableCOROUTINE$
|
|
128
|
-
initMetadataForCoroutine($toByteArrayCOROUTINE$
|
|
129
|
-
initMetadataForCoroutine($copyToCOROUTINE$
|
|
130
|
-
initMetadataForCoroutine($copyToCOROUTINE$
|
|
131
|
-
initMetadataForCoroutine($readBufferCOROUTINE$
|
|
132
|
-
initMetadataForCoroutine($readUTF8LineToCOROUTINE$
|
|
133
|
-
initMetadataForCoroutine($readRemainingCOROUTINE$
|
|
134
|
-
initMetadataForCoroutine($skipIfFoundCOROUTINE$
|
|
135
|
-
initMetadataForCoroutine($
|
|
136
|
-
initMetadataForCoroutine($peekCOROUTINE$17, CoroutineImpl);
|
|
137
|
-
initMetadataForCoroutine($readByteCOROUTINE$18, CoroutineImpl);
|
|
138
|
-
initMetadataForCoroutine($readUntil$appendPartialMatchCOROUTINE$19, CoroutineImpl);
|
|
129
|
+
initMetadataForCoroutine($readRemainingCOROUTINE$6, CoroutineImpl);
|
|
130
|
+
initMetadataForCoroutine($readPacketCOROUTINE$7, CoroutineImpl);
|
|
131
|
+
initMetadataForCoroutine($discardCOROUTINE$8, CoroutineImpl);
|
|
132
|
+
initMetadataForCoroutine($readAvailableCOROUTINE$10, CoroutineImpl);
|
|
133
|
+
initMetadataForCoroutine($toByteArrayCOROUTINE$12, CoroutineImpl);
|
|
134
|
+
initMetadataForCoroutine($copyToCOROUTINE$13, CoroutineImpl);
|
|
135
|
+
initMetadataForCoroutine($copyToCOROUTINE$14, CoroutineImpl);
|
|
136
|
+
initMetadataForCoroutine($readBufferCOROUTINE$15, CoroutineImpl);
|
|
137
|
+
initMetadataForCoroutine($readUTF8LineToCOROUTINE$16, CoroutineImpl);
|
|
138
|
+
initMetadataForCoroutine($readRemainingCOROUTINE$17, CoroutineImpl);
|
|
139
|
+
initMetadataForCoroutine($skipIfFoundCOROUTINE$18, CoroutineImpl);
|
|
140
|
+
initMetadataForCoroutine($peekCOROUTINE$19, CoroutineImpl);
|
|
139
141
|
initMetadataForCoroutine($flushIfNeededCOROUTINE$20, CoroutineImpl);
|
|
140
142
|
initMetadataForClass(WriterJob, 'WriterJob');
|
|
141
143
|
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
@@ -155,7 +157,7 @@
|
|
|
155
157
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
156
158
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
157
159
|
function close() {
|
|
158
|
-
this.
|
|
160
|
+
this.mr();
|
|
159
161
|
}
|
|
160
162
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
161
163
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -174,10 +176,10 @@
|
|
|
174
176
|
//endregion
|
|
175
177
|
function Companion() {
|
|
176
178
|
Companion_instance_0 = this;
|
|
177
|
-
this.
|
|
179
|
+
this.m1k_1 = new Closed(null);
|
|
178
180
|
var tmp = this;
|
|
179
181
|
// Inline function 'kotlin.Companion.success' call
|
|
180
|
-
tmp.
|
|
182
|
+
tmp.n1k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
181
183
|
}
|
|
182
184
|
var Companion_instance_0;
|
|
183
185
|
function Companion_getInstance() {
|
|
@@ -206,13 +208,13 @@
|
|
|
206
208
|
return Empty_instance;
|
|
207
209
|
}
|
|
208
210
|
function Closed(cause) {
|
|
209
|
-
this.
|
|
211
|
+
this.o1k_1 = cause;
|
|
210
212
|
}
|
|
211
213
|
protoOf(Closed).toString = function () {
|
|
212
|
-
return 'Closed(cause=' + toString(this.
|
|
214
|
+
return 'Closed(cause=' + toString(this.o1k_1) + ')';
|
|
213
215
|
};
|
|
214
216
|
protoOf(Closed).hashCode = function () {
|
|
215
|
-
return this.
|
|
217
|
+
return this.o1k_1 == null ? 0 : hashCode(this.o1k_1);
|
|
216
218
|
};
|
|
217
219
|
protoOf(Closed).equals = function (other) {
|
|
218
220
|
if (this === other)
|
|
@@ -220,74 +222,74 @@
|
|
|
220
222
|
if (!(other instanceof Closed))
|
|
221
223
|
return false;
|
|
222
224
|
var tmp0_other_with_cast = other instanceof Closed ? other : THROW_CCE();
|
|
223
|
-
if (!equals(this.
|
|
225
|
+
if (!equals(this.o1k_1, tmp0_other_with_cast.o1k_1))
|
|
224
226
|
return false;
|
|
225
227
|
return true;
|
|
226
228
|
};
|
|
227
229
|
function Task() {
|
|
228
230
|
}
|
|
229
231
|
function Read(continuation) {
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
232
|
+
this.u1k_1 = continuation;
|
|
233
|
+
this.v1k_1 = null;
|
|
232
234
|
if (get_DEVELOPMENT_MODE()) {
|
|
233
235
|
var tmp = this;
|
|
234
236
|
// Inline function 'kotlin.also' call
|
|
235
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
237
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.u1k_1), 16));
|
|
236
238
|
stackTraceToString(this_0);
|
|
237
|
-
tmp.
|
|
239
|
+
tmp.v1k_1 = this_0;
|
|
238
240
|
}
|
|
239
241
|
}
|
|
240
|
-
protoOf(Read).
|
|
241
|
-
return this.t1k_1;
|
|
242
|
-
};
|
|
243
|
-
protoOf(Read).o1k = function () {
|
|
242
|
+
protoOf(Read).q1k = function () {
|
|
244
243
|
return this.u1k_1;
|
|
245
244
|
};
|
|
246
|
-
protoOf(Read).
|
|
245
|
+
protoOf(Read).p1k = function () {
|
|
246
|
+
return this.v1k_1;
|
|
247
|
+
};
|
|
248
|
+
protoOf(Read).r1k = function () {
|
|
247
249
|
return 'read';
|
|
248
250
|
};
|
|
249
251
|
function Write(continuation) {
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
+
this.w1k_1 = continuation;
|
|
253
|
+
this.x1k_1 = null;
|
|
252
254
|
if (get_DEVELOPMENT_MODE()) {
|
|
253
255
|
var tmp = this;
|
|
254
256
|
// Inline function 'kotlin.also' call
|
|
255
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
257
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.w1k_1), 16));
|
|
256
258
|
stackTraceToString(this_0);
|
|
257
|
-
tmp.
|
|
259
|
+
tmp.x1k_1 = this_0;
|
|
258
260
|
}
|
|
259
261
|
}
|
|
260
|
-
protoOf(Write).
|
|
261
|
-
return this.v1k_1;
|
|
262
|
-
};
|
|
263
|
-
protoOf(Write).o1k = function () {
|
|
262
|
+
protoOf(Write).q1k = function () {
|
|
264
263
|
return this.w1k_1;
|
|
265
264
|
};
|
|
266
|
-
protoOf(Write).
|
|
265
|
+
protoOf(Write).p1k = function () {
|
|
266
|
+
return this.x1k_1;
|
|
267
|
+
};
|
|
268
|
+
protoOf(Write).r1k = function () {
|
|
267
269
|
return 'write';
|
|
268
270
|
};
|
|
269
271
|
function moveFlushToReadBuffer($this) {
|
|
270
272
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
271
|
-
$this.
|
|
272
|
-
$this.
|
|
273
|
-
$this.
|
|
273
|
+
$this.b1l_1;
|
|
274
|
+
$this.z1k_1.r1i($this.d1l_1);
|
|
275
|
+
$this.a1l_1 = 0;
|
|
274
276
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
275
|
-
var current = $this.
|
|
277
|
+
var current = $this.c1l_1.kotlinx$atomicfu$value;
|
|
276
278
|
var tmp;
|
|
277
279
|
if (current instanceof Write) {
|
|
278
|
-
tmp = $this.
|
|
280
|
+
tmp = $this.c1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
279
281
|
} else {
|
|
280
282
|
tmp = false;
|
|
281
283
|
}
|
|
282
284
|
if (tmp) {
|
|
283
|
-
current.
|
|
285
|
+
current.s1k();
|
|
284
286
|
}
|
|
285
287
|
}
|
|
286
288
|
function closeSlot($this, cause) {
|
|
287
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
288
|
-
var continuation = $this.
|
|
289
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().m1k_1;
|
|
290
|
+
var continuation = $this.c1l_1.atomicfu$getAndSet(closeContinuation);
|
|
289
291
|
if (isInterface(continuation, Task)) {
|
|
290
|
-
continuation.
|
|
292
|
+
continuation.t1k(cause);
|
|
291
293
|
}
|
|
292
294
|
}
|
|
293
295
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -306,8 +308,8 @@
|
|
|
306
308
|
}
|
|
307
309
|
function $awaitContentCOROUTINE$0(_this__u8e3s4, min, resultContinuation) {
|
|
308
310
|
CoroutineImpl.call(this, resultContinuation);
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
+
this.o1l_1 = _this__u8e3s4;
|
|
312
|
+
this.p1l_1 = min;
|
|
311
313
|
}
|
|
312
314
|
protoOf($awaitContentCOROUTINE$0).o9 = function () {
|
|
313
315
|
var suspendResult = this.i9_1;
|
|
@@ -317,41 +319,41 @@
|
|
|
317
319
|
switch (tmp) {
|
|
318
320
|
case 0:
|
|
319
321
|
this.h9_1 = 4;
|
|
320
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
321
|
-
if (this.
|
|
322
|
+
rethrowCloseCauseIfNeeded_1(this.o1l_1);
|
|
323
|
+
if (this.o1l_1.d1l_1.s().e1(toLong(this.p1l_1)) >= 0)
|
|
322
324
|
return true;
|
|
323
325
|
var tmp_0 = this;
|
|
324
|
-
tmp_0.
|
|
325
|
-
this.
|
|
326
|
+
tmp_0.q1l_1 = this.o1l_1;
|
|
327
|
+
this.r1l_1 = this.q1l_1;
|
|
326
328
|
this.g9_1 = 1;
|
|
327
329
|
continue $sm;
|
|
328
330
|
case 1:
|
|
329
|
-
if (!(numberToLong(this.
|
|
331
|
+
if (!(numberToLong(this.o1l_1.a1l_1).z2(this.o1l_1.d1l_1.s()).e1(toLong(this.p1l_1)) < 0 && this.o1l_1.f1l_1.kotlinx$atomicfu$value == null)) {
|
|
330
332
|
this.g9_1 = 3;
|
|
331
333
|
continue $sm;
|
|
332
334
|
}
|
|
333
335
|
|
|
334
336
|
this.g9_1 = 2;
|
|
335
337
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
336
|
-
cancellable.
|
|
337
|
-
var tmp0 = this.
|
|
338
|
+
cancellable.ps();
|
|
339
|
+
var tmp0 = this.r1l_1;
|
|
338
340
|
var tmp1 = new Read(cancellable);
|
|
339
341
|
l$ret$1: do {
|
|
340
|
-
var previous = tmp0.
|
|
342
|
+
var previous = tmp0.c1l_1.kotlinx$atomicfu$value;
|
|
341
343
|
if (!(previous instanceof Closed)) {
|
|
342
|
-
if (!tmp0.
|
|
343
|
-
tmp1.
|
|
344
|
+
if (!tmp0.c1l_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
345
|
+
tmp1.s1k();
|
|
344
346
|
break l$ret$1;
|
|
345
347
|
}
|
|
346
348
|
}
|
|
347
349
|
if (previous instanceof Read) {
|
|
348
|
-
previous.
|
|
350
|
+
previous.t1k(new ConcurrentIOException(tmp1.r1k(), previous.p1k()));
|
|
349
351
|
} else {
|
|
350
352
|
if (isInterface(previous, Task)) {
|
|
351
|
-
previous.
|
|
353
|
+
previous.s1k();
|
|
352
354
|
} else {
|
|
353
355
|
if (previous instanceof Closed) {
|
|
354
|
-
tmp1.
|
|
356
|
+
tmp1.t1k(previous.o1k_1);
|
|
355
357
|
break l$ret$1;
|
|
356
358
|
} else {
|
|
357
359
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -360,21 +362,21 @@
|
|
|
360
362
|
}
|
|
361
363
|
}
|
|
362
364
|
}
|
|
363
|
-
if (!(numberToLong(this.
|
|
364
|
-
var current = tmp0.
|
|
365
|
+
if (!(numberToLong(this.o1l_1.a1l_1).z2(this.o1l_1.d1l_1.s()).e1(toLong(this.p1l_1)) < 0 && this.o1l_1.f1l_1.kotlinx$atomicfu$value == null)) {
|
|
366
|
+
var current = tmp0.c1l_1.kotlinx$atomicfu$value;
|
|
365
367
|
var tmp_1;
|
|
366
368
|
if (current instanceof Read) {
|
|
367
|
-
tmp_1 = tmp0.
|
|
369
|
+
tmp_1 = tmp0.c1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
368
370
|
} else {
|
|
369
371
|
tmp_1 = false;
|
|
370
372
|
}
|
|
371
373
|
if (tmp_1) {
|
|
372
|
-
current.
|
|
374
|
+
current.s1k();
|
|
373
375
|
}
|
|
374
376
|
}
|
|
375
377
|
}
|
|
376
378
|
while (false);
|
|
377
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
379
|
+
suspendResult = returnIfSuspended(cancellable.qs(), this);
|
|
378
380
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
379
381
|
return suspendResult;
|
|
380
382
|
}
|
|
@@ -384,11 +386,11 @@
|
|
|
384
386
|
this.g9_1 = 1;
|
|
385
387
|
continue $sm;
|
|
386
388
|
case 3:
|
|
387
|
-
if (this.
|
|
388
|
-
moveFlushToReadBuffer(this.
|
|
389
|
+
if (this.o1l_1.d1l_1.s().e1(new Long(1048576, 0)) < 0) {
|
|
390
|
+
moveFlushToReadBuffer(this.o1l_1);
|
|
389
391
|
}
|
|
390
392
|
|
|
391
|
-
return this.
|
|
393
|
+
return this.o1l_1.d1l_1.s().e1(toLong(this.p1l_1)) >= 0;
|
|
392
394
|
case 4:
|
|
393
395
|
throw this.j9_1;
|
|
394
396
|
}
|
|
@@ -405,7 +407,7 @@
|
|
|
405
407
|
};
|
|
406
408
|
function $flushCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
407
409
|
CoroutineImpl.call(this, resultContinuation);
|
|
408
|
-
this.
|
|
410
|
+
this.a1m_1 = _this__u8e3s4;
|
|
409
411
|
}
|
|
410
412
|
protoOf($flushCOROUTINE$1).o9 = function () {
|
|
411
413
|
var suspendResult = this.i9_1;
|
|
@@ -415,42 +417,42 @@
|
|
|
415
417
|
switch (tmp) {
|
|
416
418
|
case 0:
|
|
417
419
|
this.h9_1 = 4;
|
|
418
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
419
|
-
this.
|
|
420
|
-
if (this.
|
|
420
|
+
rethrowCloseCauseIfNeeded_1(this.a1m_1);
|
|
421
|
+
this.a1m_1.d1m();
|
|
422
|
+
if (this.a1m_1.a1l_1 < 1048576)
|
|
421
423
|
return Unit_instance;
|
|
422
424
|
var tmp_0 = this;
|
|
423
|
-
tmp_0.
|
|
424
|
-
this.
|
|
425
|
+
tmp_0.b1m_1 = this.a1m_1;
|
|
426
|
+
this.c1m_1 = this.b1m_1;
|
|
425
427
|
this.g9_1 = 1;
|
|
426
428
|
continue $sm;
|
|
427
429
|
case 1:
|
|
428
|
-
if (!(this.
|
|
430
|
+
if (!(this.a1m_1.a1l_1 >= 1048576 && this.a1m_1.f1l_1.kotlinx$atomicfu$value == null)) {
|
|
429
431
|
this.g9_1 = 3;
|
|
430
432
|
continue $sm;
|
|
431
433
|
}
|
|
432
434
|
|
|
433
435
|
this.g9_1 = 2;
|
|
434
436
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
435
|
-
cancellable.
|
|
436
|
-
var tmp0 = this.
|
|
437
|
+
cancellable.ps();
|
|
438
|
+
var tmp0 = this.c1m_1;
|
|
437
439
|
var tmp1 = new Write(cancellable);
|
|
438
440
|
l$ret$1: do {
|
|
439
|
-
var previous = tmp0.
|
|
441
|
+
var previous = tmp0.c1l_1.kotlinx$atomicfu$value;
|
|
440
442
|
if (!(previous instanceof Closed)) {
|
|
441
|
-
if (!tmp0.
|
|
442
|
-
tmp1.
|
|
443
|
+
if (!tmp0.c1l_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
444
|
+
tmp1.s1k();
|
|
443
445
|
break l$ret$1;
|
|
444
446
|
}
|
|
445
447
|
}
|
|
446
448
|
if (previous instanceof Write) {
|
|
447
|
-
previous.
|
|
449
|
+
previous.t1k(new ConcurrentIOException(tmp1.r1k(), previous.p1k()));
|
|
448
450
|
} else {
|
|
449
451
|
if (isInterface(previous, Task)) {
|
|
450
|
-
previous.
|
|
452
|
+
previous.s1k();
|
|
451
453
|
} else {
|
|
452
454
|
if (previous instanceof Closed) {
|
|
453
|
-
tmp1.
|
|
455
|
+
tmp1.t1k(previous.o1k_1);
|
|
454
456
|
break l$ret$1;
|
|
455
457
|
} else {
|
|
456
458
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -459,21 +461,21 @@
|
|
|
459
461
|
}
|
|
460
462
|
}
|
|
461
463
|
}
|
|
462
|
-
if (!(this.
|
|
463
|
-
var current = tmp0.
|
|
464
|
+
if (!(this.a1m_1.a1l_1 >= 1048576 && this.a1m_1.f1l_1.kotlinx$atomicfu$value == null)) {
|
|
465
|
+
var current = tmp0.c1l_1.kotlinx$atomicfu$value;
|
|
464
466
|
var tmp_1;
|
|
465
467
|
if (current instanceof Write) {
|
|
466
|
-
tmp_1 = tmp0.
|
|
468
|
+
tmp_1 = tmp0.c1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
467
469
|
} else {
|
|
468
470
|
tmp_1 = false;
|
|
469
471
|
}
|
|
470
472
|
if (tmp_1) {
|
|
471
|
-
current.
|
|
473
|
+
current.s1k();
|
|
472
474
|
}
|
|
473
475
|
}
|
|
474
476
|
}
|
|
475
477
|
while (false);
|
|
476
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
478
|
+
suspendResult = returnIfSuspended(cancellable.qs(), this);
|
|
477
479
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
478
480
|
return suspendResult;
|
|
479
481
|
}
|
|
@@ -500,7 +502,7 @@
|
|
|
500
502
|
};
|
|
501
503
|
function $flushAndCloseCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
502
504
|
CoroutineImpl.call(this, resultContinuation);
|
|
503
|
-
this.
|
|
505
|
+
this.m1m_1 = _this__u8e3s4;
|
|
504
506
|
}
|
|
505
507
|
protoOf($flushAndCloseCOROUTINE$2).o9 = function () {
|
|
506
508
|
var suspendResult = this.i9_1;
|
|
@@ -511,16 +513,16 @@
|
|
|
511
513
|
case 0:
|
|
512
514
|
this.h9_1 = 4;
|
|
513
515
|
var tmp_0 = this;
|
|
514
|
-
tmp_0.
|
|
515
|
-
this.
|
|
516
|
+
tmp_0.n1m_1 = this.m1m_1;
|
|
517
|
+
this.o1m_1 = this.n1m_1;
|
|
516
518
|
this.h9_1 = 2;
|
|
517
519
|
var tmp_1 = this;
|
|
518
|
-
tmp_1.
|
|
520
|
+
tmp_1.q1m_1 = Companion_instance;
|
|
519
521
|
var tmp_2 = this;
|
|
520
|
-
tmp_2.
|
|
521
|
-
this.
|
|
522
|
+
tmp_2.r1m_1 = this.o1m_1;
|
|
523
|
+
this.s1m_1 = this.r1m_1;
|
|
522
524
|
this.g9_1 = 1;
|
|
523
|
-
suspendResult = this.
|
|
525
|
+
suspendResult = this.s1m_1.t1m(this);
|
|
524
526
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
525
527
|
return suspendResult;
|
|
526
528
|
}
|
|
@@ -528,8 +530,8 @@
|
|
|
528
530
|
continue $sm;
|
|
529
531
|
case 1:
|
|
530
532
|
var tmp_3 = this;
|
|
531
|
-
this.
|
|
532
|
-
tmp_3.
|
|
533
|
+
this.q1m_1;
|
|
534
|
+
tmp_3.p1m_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
533
535
|
this.h9_1 = 4;
|
|
534
536
|
this.g9_1 = 3;
|
|
535
537
|
continue $sm;
|
|
@@ -539,7 +541,7 @@
|
|
|
539
541
|
if (tmp_4 instanceof Error) {
|
|
540
542
|
var e = this.j9_1;
|
|
541
543
|
var tmp_5 = this;
|
|
542
|
-
tmp_5.
|
|
544
|
+
tmp_5.p1m_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
543
545
|
this.g9_1 = 3;
|
|
544
546
|
continue $sm;
|
|
545
547
|
} else {
|
|
@@ -548,9 +550,9 @@
|
|
|
548
550
|
|
|
549
551
|
case 3:
|
|
550
552
|
this.h9_1 = 4;
|
|
551
|
-
if (!this.
|
|
553
|
+
if (!this.m1m_1.f1l_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
552
554
|
return Unit_instance;
|
|
553
|
-
closeSlot(this.
|
|
555
|
+
closeSlot(this.m1m_1, null);
|
|
554
556
|
return Unit_instance;
|
|
555
557
|
case 4:
|
|
556
558
|
throw this.j9_1;
|
|
@@ -568,101 +570,101 @@
|
|
|
568
570
|
};
|
|
569
571
|
function ByteChannel(autoFlush) {
|
|
570
572
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.c1l_1 = new Buffer();
|
|
573
|
+
this.y1k_1 = autoFlush;
|
|
574
|
+
this.z1k_1 = new Buffer();
|
|
575
|
+
this.a1l_1 = 0;
|
|
576
|
+
this.b1l_1 = new Object();
|
|
577
|
+
this.c1l_1 = atomic$ref$1(Empty_instance);
|
|
577
578
|
this.d1l_1 = new Buffer();
|
|
578
|
-
this.e1l_1 =
|
|
579
|
+
this.e1l_1 = new Buffer();
|
|
580
|
+
this.f1l_1 = atomic$ref$1(null);
|
|
579
581
|
}
|
|
580
|
-
protoOf(ByteChannel).
|
|
581
|
-
var tmp0_safe_receiver = this.
|
|
582
|
+
protoOf(ByteChannel).u1m = function () {
|
|
583
|
+
var tmp0_safe_receiver = this.f1l_1.kotlinx$atomicfu$value;
|
|
582
584
|
if (tmp0_safe_receiver == null)
|
|
583
585
|
null;
|
|
584
586
|
else {
|
|
585
|
-
tmp0_safe_receiver.
|
|
587
|
+
tmp0_safe_receiver.w1m(ClosedReadChannelException$_init_$ref_ix0089());
|
|
586
588
|
}
|
|
587
|
-
if (this.
|
|
589
|
+
if (this.d1l_1.o1h()) {
|
|
588
590
|
moveFlushToReadBuffer(this);
|
|
589
591
|
}
|
|
590
|
-
return this.
|
|
592
|
+
return this.d1l_1;
|
|
591
593
|
};
|
|
592
|
-
protoOf(ByteChannel).
|
|
593
|
-
if (this.
|
|
594
|
-
var tmp0_safe_receiver = this.
|
|
594
|
+
protoOf(ByteChannel).x1m = function () {
|
|
595
|
+
if (this.y1m()) {
|
|
596
|
+
var tmp0_safe_receiver = this.f1l_1.kotlinx$atomicfu$value;
|
|
595
597
|
var tmp;
|
|
596
598
|
if (tmp0_safe_receiver == null) {
|
|
597
599
|
tmp = null;
|
|
598
600
|
} else {
|
|
599
|
-
tmp = tmp0_safe_receiver.
|
|
601
|
+
tmp = tmp0_safe_receiver.w1m(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
600
602
|
}
|
|
601
603
|
if (tmp == null)
|
|
602
604
|
throw new ClosedWriteChannelException();
|
|
603
605
|
}
|
|
604
|
-
return this.
|
|
606
|
+
return this.e1l_1;
|
|
605
607
|
};
|
|
606
|
-
protoOf(ByteChannel).
|
|
607
|
-
var tmp0_safe_receiver = this.
|
|
608
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
608
|
+
protoOf(ByteChannel).z1m = function () {
|
|
609
|
+
var tmp0_safe_receiver = this.f1l_1.kotlinx$atomicfu$value;
|
|
610
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1n();
|
|
609
611
|
};
|
|
610
|
-
protoOf(ByteChannel).
|
|
611
|
-
return !(this.
|
|
612
|
+
protoOf(ByteChannel).y1m = function () {
|
|
613
|
+
return !(this.f1l_1.kotlinx$atomicfu$value == null);
|
|
612
614
|
};
|
|
613
|
-
protoOf(ByteChannel).
|
|
614
|
-
return !(this.
|
|
615
|
+
protoOf(ByteChannel).b1n = function () {
|
|
616
|
+
return !(this.z1m() == null) || (this.y1m() && this.a1l_1 === 0 && this.d1l_1.o1h());
|
|
615
617
|
};
|
|
616
|
-
protoOf(ByteChannel).
|
|
618
|
+
protoOf(ByteChannel).c1n = function (min, $completion) {
|
|
617
619
|
var tmp = new $awaitContentCOROUTINE$0(this, min, $completion);
|
|
618
620
|
tmp.i9_1 = Unit_instance;
|
|
619
621
|
tmp.j9_1 = null;
|
|
620
622
|
return tmp.o9();
|
|
621
623
|
};
|
|
622
|
-
protoOf(ByteChannel).
|
|
624
|
+
protoOf(ByteChannel).t1m = function ($completion) {
|
|
623
625
|
var tmp = new $flushCOROUTINE$1(this, $completion);
|
|
624
626
|
tmp.i9_1 = Unit_instance;
|
|
625
627
|
tmp.j9_1 = null;
|
|
626
628
|
return tmp.o9();
|
|
627
629
|
};
|
|
628
|
-
protoOf(ByteChannel).
|
|
629
|
-
if (this.
|
|
630
|
+
protoOf(ByteChannel).d1m = function () {
|
|
631
|
+
if (this.e1l_1.o1h())
|
|
630
632
|
return Unit_instance;
|
|
631
633
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
632
|
-
this.
|
|
633
|
-
var count = this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
634
|
+
this.b1l_1;
|
|
635
|
+
var count = this.e1l_1.s().j1();
|
|
636
|
+
this.z1k_1.g1j(this.e1l_1);
|
|
637
|
+
this.a1l_1 = this.a1l_1 + count | 0;
|
|
636
638
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
637
|
-
var current = this.
|
|
639
|
+
var current = this.c1l_1.kotlinx$atomicfu$value;
|
|
638
640
|
var tmp;
|
|
639
641
|
if (current instanceof Read) {
|
|
640
|
-
tmp = this.
|
|
642
|
+
tmp = this.c1l_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
641
643
|
} else {
|
|
642
644
|
tmp = false;
|
|
643
645
|
}
|
|
644
646
|
if (tmp) {
|
|
645
|
-
current.
|
|
647
|
+
current.s1k();
|
|
646
648
|
}
|
|
647
649
|
};
|
|
648
650
|
protoOf(ByteChannel).p4 = function () {
|
|
649
|
-
this.
|
|
650
|
-
if (!this.
|
|
651
|
+
this.d1m();
|
|
652
|
+
if (!this.f1l_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
651
653
|
return Unit_instance;
|
|
652
654
|
closeSlot(this, null);
|
|
653
655
|
};
|
|
654
|
-
protoOf(ByteChannel).
|
|
656
|
+
protoOf(ByteChannel).e1n = function ($completion) {
|
|
655
657
|
var tmp = new $flushAndCloseCOROUTINE$2(this, $completion);
|
|
656
658
|
tmp.i9_1 = Unit_instance;
|
|
657
659
|
tmp.j9_1 = null;
|
|
658
660
|
return tmp.o9();
|
|
659
661
|
};
|
|
660
|
-
protoOf(ByteChannel).
|
|
661
|
-
if (!(this.
|
|
662
|
+
protoOf(ByteChannel).f1n = function (cause) {
|
|
663
|
+
if (!(this.f1l_1.kotlinx$atomicfu$value == null))
|
|
662
664
|
return Unit_instance;
|
|
663
665
|
var closedToken = new CloseToken(cause);
|
|
664
|
-
this.
|
|
665
|
-
var wrappedCause = closedToken.
|
|
666
|
+
this.f1l_1.atomicfu$compareAndSet(null, closedToken);
|
|
667
|
+
var wrappedCause = closedToken.a1n();
|
|
666
668
|
closeSlot(this, wrappedCause);
|
|
667
669
|
};
|
|
668
670
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -678,35 +680,378 @@
|
|
|
678
680
|
length = length === VOID ? content.length : length;
|
|
679
681
|
// Inline function 'kotlin.also' call
|
|
680
682
|
var this_0 = new Buffer();
|
|
681
|
-
this_0.
|
|
683
|
+
this_0.x1i(content, offset, offset + length | 0);
|
|
682
684
|
var source = this_0;
|
|
683
685
|
return ByteReadChannel_0(source);
|
|
684
686
|
}
|
|
685
687
|
function ByteReadChannel_0(source) {
|
|
686
688
|
return new SourceByteReadChannel(source);
|
|
687
689
|
}
|
|
690
|
+
function buildPartialMatchTable($this) {
|
|
691
|
+
var table = new Int32Array($this.h1n_1.s());
|
|
692
|
+
var j = 0;
|
|
693
|
+
var inductionVariable = 1;
|
|
694
|
+
var last = $this.h1n_1.s();
|
|
695
|
+
if (inductionVariable < last)
|
|
696
|
+
do {
|
|
697
|
+
var i = inductionVariable;
|
|
698
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
699
|
+
while (j > 0 && !($this.h1n_1.u(i) === $this.h1n_1.u(j))) {
|
|
700
|
+
j = table[j - 1 | 0];
|
|
701
|
+
}
|
|
702
|
+
if ($this.h1n_1.u(i) === $this.h1n_1.u(j)) {
|
|
703
|
+
j = j + 1 | 0;
|
|
704
|
+
}
|
|
705
|
+
table[i] = j;
|
|
706
|
+
}
|
|
707
|
+
while (inductionVariable < last);
|
|
708
|
+
return table;
|
|
709
|
+
}
|
|
710
|
+
function advanceToNextPotentialMatch($this, $completion) {
|
|
711
|
+
var tmp = new $advanceToNextPotentialMatchCOROUTINE$4($this, $completion);
|
|
712
|
+
tmp.i9_1 = Unit_instance;
|
|
713
|
+
tmp.j9_1 = null;
|
|
714
|
+
return tmp.o9();
|
|
715
|
+
}
|
|
716
|
+
function checkFullMatch($this, $completion) {
|
|
717
|
+
var tmp = new $checkFullMatchCOROUTINE$5($this, $completion);
|
|
718
|
+
tmp.i9_1 = Unit_instance;
|
|
719
|
+
tmp.j9_1 = null;
|
|
720
|
+
return tmp.o9();
|
|
721
|
+
}
|
|
722
|
+
function checkBounds($this, extra) {
|
|
723
|
+
if ($this.n1n_1.z2(extra).e1($this.j1n_1) > 0) {
|
|
724
|
+
throw IOException_init_$Create$('Limit of ' + $this.j1n_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.h1n_1) + '"'));
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
function toSingleLineString($this, _this__u8e3s4) {
|
|
728
|
+
return replace(decodeToString(_this__u8e3s4), '\n', '\\n');
|
|
729
|
+
}
|
|
730
|
+
function $findNextCOROUTINE$3(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
731
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
732
|
+
this.v1o_1 = _this__u8e3s4;
|
|
733
|
+
this.w1o_1 = ignoreMissing;
|
|
734
|
+
}
|
|
735
|
+
protoOf($findNextCOROUTINE$3).o9 = function () {
|
|
736
|
+
var suspendResult = this.i9_1;
|
|
737
|
+
$sm: do
|
|
738
|
+
try {
|
|
739
|
+
var tmp = this.g9_1;
|
|
740
|
+
switch (tmp) {
|
|
741
|
+
case 0:
|
|
742
|
+
this.h9_1 = 9;
|
|
743
|
+
this.v1o_1.n1n_1 = new Long(0, 0);
|
|
744
|
+
this.g9_1 = 1;
|
|
745
|
+
continue $sm;
|
|
746
|
+
case 1:
|
|
747
|
+
if (!this.v1o_1.k1n_1.o1h()) {
|
|
748
|
+
this.x1o_1 = true;
|
|
749
|
+
this.g9_1 = 3;
|
|
750
|
+
continue $sm;
|
|
751
|
+
} else {
|
|
752
|
+
this.g9_1 = 2;
|
|
753
|
+
suspendResult = this.v1o_1.g1n_1.d1n(VOID, this);
|
|
754
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
755
|
+
return suspendResult;
|
|
756
|
+
}
|
|
757
|
+
continue $sm;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
case 2:
|
|
761
|
+
this.x1o_1 = suspendResult;
|
|
762
|
+
this.g9_1 = 3;
|
|
763
|
+
continue $sm;
|
|
764
|
+
case 3:
|
|
765
|
+
if (!this.x1o_1) {
|
|
766
|
+
this.g9_1 = 7;
|
|
767
|
+
continue $sm;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
this.g9_1 = 4;
|
|
771
|
+
suspendResult = advanceToNextPotentialMatch(this.v1o_1, this);
|
|
772
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
773
|
+
return suspendResult;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
continue $sm;
|
|
777
|
+
case 4:
|
|
778
|
+
this.g9_1 = 5;
|
|
779
|
+
suspendResult = checkFullMatch(this.v1o_1, this);
|
|
780
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
781
|
+
return suspendResult;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
continue $sm;
|
|
785
|
+
case 5:
|
|
786
|
+
if (suspendResult) {
|
|
787
|
+
return this.v1o_1.n1n_1;
|
|
788
|
+
} else {
|
|
789
|
+
this.g9_1 = 6;
|
|
790
|
+
continue $sm;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
case 6:
|
|
794
|
+
this.g9_1 = 1;
|
|
795
|
+
continue $sm;
|
|
796
|
+
case 7:
|
|
797
|
+
if (!this.w1o_1) {
|
|
798
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.v1o_1, this.v1o_1.h1n_1) + '" but encountered end of input');
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
this.v1o_1.n1n_1 = this.v1o_1.n1n_1.z2(this.v1o_1.m1n_1.r1i(this.v1o_1.i1n_1.x1m()));
|
|
802
|
+
this.g9_1 = 8;
|
|
803
|
+
suspendResult = this.v1o_1.i1n_1.t1m(this);
|
|
804
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
805
|
+
return suspendResult;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
continue $sm;
|
|
809
|
+
case 8:
|
|
810
|
+
return this.v1o_1.n1n_1;
|
|
811
|
+
case 9:
|
|
812
|
+
throw this.j9_1;
|
|
813
|
+
}
|
|
814
|
+
} catch ($p) {
|
|
815
|
+
var e = $p;
|
|
816
|
+
if (this.h9_1 === 9) {
|
|
817
|
+
throw e;
|
|
818
|
+
} else {
|
|
819
|
+
this.g9_1 = this.h9_1;
|
|
820
|
+
this.j9_1 = e;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
while (true);
|
|
824
|
+
};
|
|
825
|
+
function $advanceToNextPotentialMatchCOROUTINE$4(_this__u8e3s4, resultContinuation) {
|
|
826
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
827
|
+
this.x1n_1 = _this__u8e3s4;
|
|
828
|
+
}
|
|
829
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$4).o9 = function () {
|
|
830
|
+
var suspendResult = this.i9_1;
|
|
831
|
+
$sm: do
|
|
832
|
+
try {
|
|
833
|
+
var tmp = this.g9_1;
|
|
834
|
+
switch (tmp) {
|
|
835
|
+
case 0:
|
|
836
|
+
this.h9_1 = 8;
|
|
837
|
+
this.g9_1 = 1;
|
|
838
|
+
continue $sm;
|
|
839
|
+
case 1:
|
|
840
|
+
if (!this.x1n_1.k1n_1.o1h()) {
|
|
841
|
+
this.y1n_1 = true;
|
|
842
|
+
this.g9_1 = 3;
|
|
843
|
+
continue $sm;
|
|
844
|
+
} else {
|
|
845
|
+
this.g9_1 = 2;
|
|
846
|
+
suspendResult = this.x1n_1.g1n_1.d1n(VOID, this);
|
|
847
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
848
|
+
return suspendResult;
|
|
849
|
+
}
|
|
850
|
+
continue $sm;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
case 2:
|
|
854
|
+
this.y1n_1 = suspendResult;
|
|
855
|
+
this.g9_1 = 3;
|
|
856
|
+
continue $sm;
|
|
857
|
+
case 3:
|
|
858
|
+
if (!this.y1n_1) {
|
|
859
|
+
this.g9_1 = 7;
|
|
860
|
+
continue $sm;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
this.z1n_1 = indexOf(this.x1n_1.k1n_1, this.x1n_1.h1n_1.u(0));
|
|
864
|
+
if (this.z1n_1.equals(new Long(-1, -1))) {
|
|
865
|
+
var tmp_0 = this.x1n_1.k1n_1;
|
|
866
|
+
checkBounds(this.x1n_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).s());
|
|
867
|
+
this.x1n_1.n1n_1 = this.x1n_1.n1n_1.z2(this.x1n_1.k1n_1.r1i(this.x1n_1.i1n_1.x1m()));
|
|
868
|
+
this.g9_1 = 5;
|
|
869
|
+
suspendResult = flushIfNeeded(this.x1n_1.i1n_1, this);
|
|
870
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
871
|
+
return suspendResult;
|
|
872
|
+
}
|
|
873
|
+
continue $sm;
|
|
874
|
+
} else {
|
|
875
|
+
checkBounds(this.x1n_1, this.z1n_1);
|
|
876
|
+
var tmp_1 = this.x1n_1;
|
|
877
|
+
var tmp_2 = this.x1n_1.n1n_1;
|
|
878
|
+
var tmp_3 = this.x1n_1.i1n_1.x1m();
|
|
879
|
+
tmp_1.n1n_1 = tmp_2.z2(this.x1n_1.k1n_1.o1i(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), this.z1n_1));
|
|
880
|
+
this.g9_1 = 4;
|
|
881
|
+
suspendResult = flushIfNeeded(this.x1n_1.i1n_1, this);
|
|
882
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
883
|
+
return suspendResult;
|
|
884
|
+
}
|
|
885
|
+
continue $sm;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
case 4:
|
|
889
|
+
return Unit_instance;
|
|
890
|
+
case 5:
|
|
891
|
+
this.g9_1 = 6;
|
|
892
|
+
continue $sm;
|
|
893
|
+
case 6:
|
|
894
|
+
this.g9_1 = 1;
|
|
895
|
+
continue $sm;
|
|
896
|
+
case 7:
|
|
897
|
+
return Unit_instance;
|
|
898
|
+
case 8:
|
|
899
|
+
throw this.j9_1;
|
|
900
|
+
}
|
|
901
|
+
} catch ($p) {
|
|
902
|
+
var e = $p;
|
|
903
|
+
if (this.h9_1 === 8) {
|
|
904
|
+
throw e;
|
|
905
|
+
} else {
|
|
906
|
+
this.g9_1 = this.h9_1;
|
|
907
|
+
this.j9_1 = e;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
while (true);
|
|
911
|
+
};
|
|
912
|
+
function $checkFullMatchCOROUTINE$5(_this__u8e3s4, resultContinuation) {
|
|
913
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
914
|
+
this.i1o_1 = _this__u8e3s4;
|
|
915
|
+
}
|
|
916
|
+
protoOf($checkFullMatchCOROUTINE$5).o9 = function () {
|
|
917
|
+
var suspendResult = this.i9_1;
|
|
918
|
+
$sm: do
|
|
919
|
+
try {
|
|
920
|
+
var tmp = this.g9_1;
|
|
921
|
+
switch (tmp) {
|
|
922
|
+
case 0:
|
|
923
|
+
this.h9_1 = 8;
|
|
924
|
+
this.g9_1 = 1;
|
|
925
|
+
continue $sm;
|
|
926
|
+
case 1:
|
|
927
|
+
if (!this.i1o_1.k1n_1.o1h()) {
|
|
928
|
+
this.j1o_1 = true;
|
|
929
|
+
this.g9_1 = 3;
|
|
930
|
+
continue $sm;
|
|
931
|
+
} else {
|
|
932
|
+
this.g9_1 = 2;
|
|
933
|
+
suspendResult = this.i1o_1.g1n_1.d1n(VOID, this);
|
|
934
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
935
|
+
return suspendResult;
|
|
936
|
+
}
|
|
937
|
+
continue $sm;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
case 2:
|
|
941
|
+
this.j1o_1 = suspendResult;
|
|
942
|
+
this.g9_1 = 3;
|
|
943
|
+
continue $sm;
|
|
944
|
+
case 3:
|
|
945
|
+
if (!this.j1o_1) {
|
|
946
|
+
this.g9_1 = 7;
|
|
947
|
+
continue $sm;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
this.k1o_1 = this.i1o_1.k1n_1.r1h();
|
|
951
|
+
if (this.i1o_1.o1n_1 > 0 && !(this.k1o_1 === this.i1o_1.h1n_1.u(this.i1o_1.o1n_1))) {
|
|
952
|
+
this.l1o_1 = this.i1o_1.o1n_1;
|
|
953
|
+
while (this.i1o_1.o1n_1 > 0 && !(this.k1o_1 === this.i1o_1.h1n_1.u(this.i1o_1.o1n_1))) {
|
|
954
|
+
this.i1o_1.o1n_1 = this.i1o_1.l1n_1[this.i1o_1.o1n_1 - 1 | 0];
|
|
955
|
+
}
|
|
956
|
+
this.m1o_1 = toLong(this.l1o_1 - this.i1o_1.o1n_1 | 0);
|
|
957
|
+
checkBounds(this.i1o_1, this.m1o_1);
|
|
958
|
+
var tmp_0 = this.i1o_1;
|
|
959
|
+
var tmp_1 = this.i1o_1.n1n_1;
|
|
960
|
+
var tmp_2 = this.i1o_1.i1n_1.x1m();
|
|
961
|
+
tmp_0.n1n_1 = tmp_1.z2(this.i1o_1.m1n_1.o1i(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), this.m1o_1));
|
|
962
|
+
if (this.i1o_1.o1n_1 === 0 && !(this.k1o_1 === this.i1o_1.h1n_1.u(this.i1o_1.o1n_1))) {
|
|
963
|
+
this.g9_1 = 6;
|
|
964
|
+
suspendResult = writeByte(this.i1o_1.i1n_1, this.k1o_1, this);
|
|
965
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
966
|
+
return suspendResult;
|
|
967
|
+
}
|
|
968
|
+
continue $sm;
|
|
969
|
+
} else {
|
|
970
|
+
this.g9_1 = 4;
|
|
971
|
+
continue $sm;
|
|
972
|
+
}
|
|
973
|
+
} else {
|
|
974
|
+
this.g9_1 = 5;
|
|
975
|
+
continue $sm;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
case 4:
|
|
979
|
+
this.g9_1 = 5;
|
|
980
|
+
continue $sm;
|
|
981
|
+
case 5:
|
|
982
|
+
this.i1o_1.o1n_1 = this.i1o_1.o1n_1 + 1 | 0;
|
|
983
|
+
if (this.i1o_1.o1n_1 === this.i1o_1.h1n_1.s()) {
|
|
984
|
+
return true;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
this.i1o_1.m1n_1.h1j(this.k1o_1);
|
|
988
|
+
this.g9_1 = 1;
|
|
989
|
+
continue $sm;
|
|
990
|
+
case 6:
|
|
991
|
+
var _unary__edvuaz = this.i1o_1.n1n_1;
|
|
992
|
+
this.i1o_1.n1n_1 = _unary__edvuaz.e3();
|
|
993
|
+
return false;
|
|
994
|
+
case 7:
|
|
995
|
+
return false;
|
|
996
|
+
case 8:
|
|
997
|
+
throw this.j9_1;
|
|
998
|
+
}
|
|
999
|
+
} catch ($p) {
|
|
1000
|
+
var e = $p;
|
|
1001
|
+
if (this.h9_1 === 8) {
|
|
1002
|
+
throw e;
|
|
1003
|
+
} else {
|
|
1004
|
+
this.g9_1 = this.h9_1;
|
|
1005
|
+
this.j9_1 = e;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
while (true);
|
|
1009
|
+
};
|
|
1010
|
+
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1011
|
+
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1012
|
+
this.g1n_1 = channel;
|
|
1013
|
+
this.h1n_1 = matchString;
|
|
1014
|
+
this.i1n_1 = writeChannel;
|
|
1015
|
+
this.j1n_1 = limit;
|
|
1016
|
+
// Inline function 'kotlin.require' call
|
|
1017
|
+
if (!(this.h1n_1.s() > 0)) {
|
|
1018
|
+
var message = 'Empty match string not permitted for scanning';
|
|
1019
|
+
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1020
|
+
}
|
|
1021
|
+
this.k1n_1 = this.g1n_1.u1m();
|
|
1022
|
+
this.l1n_1 = buildPartialMatchTable(this);
|
|
1023
|
+
this.m1n_1 = new Buffer();
|
|
1024
|
+
this.n1n_1 = new Long(0, 0);
|
|
1025
|
+
this.o1n_1 = 0;
|
|
1026
|
+
}
|
|
1027
|
+
protoOf(ByteChannelScanner).y1o = function (ignoreMissing, $completion) {
|
|
1028
|
+
var tmp = new $findNextCOROUTINE$3(this, ignoreMissing, $completion);
|
|
1029
|
+
tmp.i9_1 = Unit_instance;
|
|
1030
|
+
tmp.j9_1 = null;
|
|
1031
|
+
return tmp.o9();
|
|
1032
|
+
};
|
|
688
1033
|
function ByteReadChannel$Companion$Empty$1() {
|
|
689
|
-
this.
|
|
690
|
-
this.
|
|
1034
|
+
this.z1o_1 = null;
|
|
1035
|
+
this.a1p_1 = new Buffer();
|
|
691
1036
|
}
|
|
692
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
693
|
-
return this.
|
|
1037
|
+
protoOf(ByteReadChannel$Companion$Empty$1).z1m = function () {
|
|
1038
|
+
return this.z1o_1;
|
|
694
1039
|
};
|
|
695
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1040
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1n = function () {
|
|
696
1041
|
return true;
|
|
697
1042
|
};
|
|
698
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
699
|
-
return this.
|
|
1043
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1m = function () {
|
|
1044
|
+
return this.a1p_1;
|
|
700
1045
|
};
|
|
701
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1046
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c1n = function (min, $completion) {
|
|
702
1047
|
return false;
|
|
703
1048
|
};
|
|
704
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1049
|
+
protoOf(ByteReadChannel$Companion$Empty$1).f1n = function (cause) {
|
|
705
1050
|
};
|
|
706
1051
|
function Companion_0() {
|
|
707
1052
|
Companion_instance_1 = this;
|
|
708
1053
|
var tmp = this;
|
|
709
|
-
tmp.
|
|
1054
|
+
tmp.b1p_1 = new ByteReadChannel$Companion$Empty$1();
|
|
710
1055
|
}
|
|
711
1056
|
var Companion_instance_1;
|
|
712
1057
|
function Companion_getInstance_0() {
|
|
@@ -717,26 +1062,26 @@
|
|
|
717
1062
|
function ByteReadChannel_1() {
|
|
718
1063
|
}
|
|
719
1064
|
function cancel_0(_this__u8e3s4) {
|
|
720
|
-
_this__u8e3s4.
|
|
1065
|
+
_this__u8e3s4.f1n(IOException_init_$Create$('Channel was cancelled'));
|
|
721
1066
|
}
|
|
722
1067
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
723
|
-
var tmp = new $readRemainingCOROUTINE$
|
|
1068
|
+
var tmp = new $readRemainingCOROUTINE$6(_this__u8e3s4, $completion);
|
|
724
1069
|
tmp.i9_1 = Unit_instance;
|
|
725
1070
|
tmp.j9_1 = null;
|
|
726
1071
|
return tmp.o9();
|
|
727
1072
|
}
|
|
728
1073
|
function get_availableForRead(_this__u8e3s4) {
|
|
729
|
-
return _this__u8e3s4.
|
|
1074
|
+
return _this__u8e3s4.u1m().n1h().s().j1();
|
|
730
1075
|
}
|
|
731
1076
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
732
|
-
var tmp = new $readPacketCOROUTINE$
|
|
1077
|
+
var tmp = new $readPacketCOROUTINE$7(_this__u8e3s4, packet, $completion);
|
|
733
1078
|
tmp.i9_1 = Unit_instance;
|
|
734
1079
|
tmp.j9_1 = null;
|
|
735
1080
|
return tmp.o9();
|
|
736
1081
|
}
|
|
737
1082
|
function discard(_this__u8e3s4, max, $completion) {
|
|
738
1083
|
max = max === VOID ? new Long(-1, 2147483647) : max;
|
|
739
|
-
var tmp = new $discardCOROUTINE$
|
|
1084
|
+
var tmp = new $discardCOROUTINE$8(_this__u8e3s4, max, $completion);
|
|
740
1085
|
tmp.i9_1 = Unit_instance;
|
|
741
1086
|
tmp.j9_1 = null;
|
|
742
1087
|
return tmp.o9();
|
|
@@ -744,31 +1089,31 @@
|
|
|
744
1089
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
745
1090
|
offset = offset === VOID ? 0 : offset;
|
|
746
1091
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
747
|
-
var tmp = new $readAvailableCOROUTINE$
|
|
1092
|
+
var tmp = new $readAvailableCOROUTINE$10(_this__u8e3s4, buffer, offset, length, $completion);
|
|
748
1093
|
tmp.i9_1 = Unit_instance;
|
|
749
1094
|
tmp.j9_1 = null;
|
|
750
1095
|
return tmp.o9();
|
|
751
1096
|
}
|
|
752
1097
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
753
|
-
var tmp = new $toByteArrayCOROUTINE$
|
|
1098
|
+
var tmp = new $toByteArrayCOROUTINE$12(_this__u8e3s4, $completion);
|
|
754
1099
|
tmp.i9_1 = Unit_instance;
|
|
755
1100
|
tmp.j9_1 = null;
|
|
756
1101
|
return tmp.o9();
|
|
757
1102
|
}
|
|
758
1103
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
759
|
-
var tmp = new $copyToCOROUTINE$
|
|
1104
|
+
var tmp = new $copyToCOROUTINE$13(_this__u8e3s4, channel, limit, $completion);
|
|
760
1105
|
tmp.i9_1 = Unit_instance;
|
|
761
1106
|
tmp.j9_1 = null;
|
|
762
1107
|
return tmp.o9();
|
|
763
1108
|
}
|
|
764
1109
|
function copyTo_0(_this__u8e3s4, channel, $completion) {
|
|
765
|
-
var tmp = new $copyToCOROUTINE$
|
|
1110
|
+
var tmp = new $copyToCOROUTINE$14(_this__u8e3s4, channel, $completion);
|
|
766
1111
|
tmp.i9_1 = Unit_instance;
|
|
767
1112
|
tmp.j9_1 = null;
|
|
768
1113
|
return tmp.o9();
|
|
769
1114
|
}
|
|
770
1115
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
771
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1116
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1m();
|
|
772
1117
|
if (tmp0_safe_receiver == null)
|
|
773
1118
|
null;
|
|
774
1119
|
else {
|
|
@@ -777,21 +1122,21 @@
|
|
|
777
1122
|
}
|
|
778
1123
|
}
|
|
779
1124
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
780
|
-
var tmp = new $readBufferCOROUTINE$
|
|
1125
|
+
var tmp = new $readBufferCOROUTINE$15(_this__u8e3s4, $completion);
|
|
781
1126
|
tmp.i9_1 = Unit_instance;
|
|
782
1127
|
tmp.j9_1 = null;
|
|
783
1128
|
return tmp.o9();
|
|
784
1129
|
}
|
|
785
1130
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
786
1131
|
max = max === VOID ? 2147483647 : max;
|
|
787
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
788
|
-
var tmp = new $readUTF8LineToCOROUTINE$
|
|
1132
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().u1s_1 : lineEnding;
|
|
1133
|
+
var tmp = new $readUTF8LineToCOROUTINE$16(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
789
1134
|
tmp.i9_1 = Unit_instance;
|
|
790
1135
|
tmp.j9_1 = null;
|
|
791
1136
|
return tmp.o9();
|
|
792
1137
|
}
|
|
793
1138
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
794
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1139
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1m();
|
|
795
1140
|
if (tmp0_safe_receiver == null)
|
|
796
1141
|
null;
|
|
797
1142
|
else {
|
|
@@ -800,7 +1145,7 @@
|
|
|
800
1145
|
}
|
|
801
1146
|
}
|
|
802
1147
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
803
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1148
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1m();
|
|
804
1149
|
if (tmp0_safe_receiver == null)
|
|
805
1150
|
null;
|
|
806
1151
|
else {
|
|
@@ -809,13 +1154,13 @@
|
|
|
809
1154
|
}
|
|
810
1155
|
}
|
|
811
1156
|
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
812
|
-
var tmp = new $readRemainingCOROUTINE$
|
|
1157
|
+
var tmp = new $readRemainingCOROUTINE$17(_this__u8e3s4, max, $completion);
|
|
813
1158
|
tmp.i9_1 = Unit_instance;
|
|
814
1159
|
tmp.j9_1 = null;
|
|
815
1160
|
return tmp.o9();
|
|
816
1161
|
}
|
|
817
1162
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
818
|
-
var tmp = new $skipIfFoundCOROUTINE$
|
|
1163
|
+
var tmp = new $skipIfFoundCOROUTINE$18(_this__u8e3s4, byteString, $completion);
|
|
819
1164
|
tmp.i9_1 = Unit_instance;
|
|
820
1165
|
tmp.j9_1 = null;
|
|
821
1166
|
return tmp.o9();
|
|
@@ -823,67 +1168,24 @@
|
|
|
823
1168
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
824
1169
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
825
1170
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
826
|
-
|
|
827
|
-
tmp.i9_1 = Unit_instance;
|
|
828
|
-
tmp.j9_1 = null;
|
|
829
|
-
return tmp.o9();
|
|
1171
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).y1o(ignoreMissing, $completion);
|
|
830
1172
|
}
|
|
831
1173
|
function peek(_this__u8e3s4, count, $completion) {
|
|
832
|
-
var tmp = new $peekCOROUTINE$
|
|
1174
|
+
var tmp = new $peekCOROUTINE$19(_this__u8e3s4, count, $completion);
|
|
833
1175
|
tmp.i9_1 = Unit_instance;
|
|
834
1176
|
tmp.j9_1 = null;
|
|
835
1177
|
return tmp.o9();
|
|
836
1178
|
}
|
|
837
|
-
function buildPartialMatchTable(byteString) {
|
|
838
|
-
var table = new Int32Array(byteString.s());
|
|
839
|
-
var j = 0;
|
|
840
|
-
var inductionVariable = 1;
|
|
841
|
-
var last = byteString.s();
|
|
842
|
-
if (inductionVariable < last)
|
|
843
|
-
do {
|
|
844
|
-
var i = inductionVariable;
|
|
845
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
846
|
-
while (j > 0 && !(byteString.u(i) === byteString.u(j))) {
|
|
847
|
-
j = table[j - 1 | 0];
|
|
848
|
-
}
|
|
849
|
-
if (byteString.u(i) === byteString.u(j)) {
|
|
850
|
-
j = j + 1 | 0;
|
|
851
|
-
}
|
|
852
|
-
table[i] = j;
|
|
853
|
-
}
|
|
854
|
-
while (inductionVariable < last);
|
|
855
|
-
return table;
|
|
856
|
-
}
|
|
857
|
-
function readByte(_this__u8e3s4, $completion) {
|
|
858
|
-
var tmp = new $readByteCOROUTINE$18(_this__u8e3s4, $completion);
|
|
859
|
-
tmp.i9_1 = Unit_instance;
|
|
860
|
-
tmp.j9_1 = null;
|
|
861
|
-
return tmp.o9();
|
|
862
|
-
}
|
|
863
|
-
function toSingleLineString(_this__u8e3s4) {
|
|
864
|
-
return replace(decodeToString(_this__u8e3s4), '\n', '\\n');
|
|
865
|
-
}
|
|
866
1179
|
function readUTF8LineTo$checkLineEndingAllowed($lineEnding, lineEndingToCheck) {
|
|
867
1180
|
if (!LineEndingMode__contains_impl_q5pr68($lineEnding, lineEndingToCheck)) {
|
|
868
1181
|
throw IOException_init_$Create$('Unexpected line ending ' + LineEndingMode__toString_impl_j4h76r(lineEndingToCheck) + ', while expected ' + LineEndingMode__toString_impl_j4h76r($lineEnding));
|
|
869
1182
|
}
|
|
870
1183
|
}
|
|
871
|
-
function
|
|
872
|
-
var tmp = new $readUntil$appendPartialMatchCOROUTINE$19($writeChannel, matchBuffer, matchIndex, rc, $completion);
|
|
873
|
-
tmp.i9_1 = Unit_instance;
|
|
874
|
-
tmp.j9_1 = null;
|
|
875
|
-
return tmp.o9();
|
|
876
|
-
}
|
|
877
|
-
function readUntil$resetPartialMatch(matchIndex, $matchString, partialMatchTable, byte) {
|
|
878
|
-
while (matchIndex._v > 0 && !(byte === $matchString.u(matchIndex._v))) {
|
|
879
|
-
matchIndex._v = partialMatchTable[matchIndex._v - 1 | 0];
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
function $readRemainingCOROUTINE$3(_this__u8e3s4, resultContinuation) {
|
|
1184
|
+
function $readRemainingCOROUTINE$6(_this__u8e3s4, resultContinuation) {
|
|
883
1185
|
CoroutineImpl.call(this, resultContinuation);
|
|
884
|
-
this.
|
|
1186
|
+
this.k1p_1 = _this__u8e3s4;
|
|
885
1187
|
}
|
|
886
|
-
protoOf($readRemainingCOROUTINE$
|
|
1188
|
+
protoOf($readRemainingCOROUTINE$6).o9 = function () {
|
|
887
1189
|
var suspendResult = this.i9_1;
|
|
888
1190
|
$sm: do
|
|
889
1191
|
try {
|
|
@@ -891,18 +1193,18 @@
|
|
|
891
1193
|
switch (tmp) {
|
|
892
1194
|
case 0:
|
|
893
1195
|
this.h9_1 = 4;
|
|
894
|
-
this.
|
|
1196
|
+
this.l1p_1 = BytePacketBuilder();
|
|
895
1197
|
this.g9_1 = 1;
|
|
896
1198
|
continue $sm;
|
|
897
1199
|
case 1:
|
|
898
|
-
if (!!this.
|
|
1200
|
+
if (!!this.k1p_1.b1n()) {
|
|
899
1201
|
this.g9_1 = 3;
|
|
900
1202
|
continue $sm;
|
|
901
1203
|
}
|
|
902
1204
|
|
|
903
|
-
this.
|
|
1205
|
+
this.l1p_1.g1j(this.k1p_1.u1m());
|
|
904
1206
|
this.g9_1 = 2;
|
|
905
|
-
suspendResult = this.
|
|
1207
|
+
suspendResult = this.k1p_1.d1n(VOID, this);
|
|
906
1208
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
907
1209
|
return suspendResult;
|
|
908
1210
|
}
|
|
@@ -912,8 +1214,8 @@
|
|
|
912
1214
|
this.g9_1 = 1;
|
|
913
1215
|
continue $sm;
|
|
914
1216
|
case 3:
|
|
915
|
-
rethrowCloseCauseIfNeeded(this.
|
|
916
|
-
return this.
|
|
1217
|
+
rethrowCloseCauseIfNeeded(this.k1p_1);
|
|
1218
|
+
return this.l1p_1.n1h();
|
|
917
1219
|
case 4:
|
|
918
1220
|
throw this.j9_1;
|
|
919
1221
|
}
|
|
@@ -928,12 +1230,12 @@
|
|
|
928
1230
|
}
|
|
929
1231
|
while (true);
|
|
930
1232
|
};
|
|
931
|
-
function $readPacketCOROUTINE$
|
|
1233
|
+
function $readPacketCOROUTINE$7(_this__u8e3s4, packet, resultContinuation) {
|
|
932
1234
|
CoroutineImpl.call(this, resultContinuation);
|
|
933
|
-
this.
|
|
934
|
-
this.
|
|
1235
|
+
this.u1p_1 = _this__u8e3s4;
|
|
1236
|
+
this.v1p_1 = packet;
|
|
935
1237
|
}
|
|
936
|
-
protoOf($readPacketCOROUTINE$
|
|
1238
|
+
protoOf($readPacketCOROUTINE$7).o9 = function () {
|
|
937
1239
|
var suspendResult = this.i9_1;
|
|
938
1240
|
$sm: do
|
|
939
1241
|
try {
|
|
@@ -941,18 +1243,18 @@
|
|
|
941
1243
|
switch (tmp) {
|
|
942
1244
|
case 0:
|
|
943
1245
|
this.h9_1 = 6;
|
|
944
|
-
this.
|
|
1246
|
+
this.w1p_1 = new Buffer();
|
|
945
1247
|
this.g9_1 = 1;
|
|
946
1248
|
continue $sm;
|
|
947
1249
|
case 1:
|
|
948
|
-
if (!(this.
|
|
1250
|
+
if (!(this.w1p_1.s().e1(toLong(this.v1p_1)) < 0)) {
|
|
949
1251
|
this.g9_1 = 5;
|
|
950
1252
|
continue $sm;
|
|
951
1253
|
}
|
|
952
1254
|
|
|
953
|
-
if (this.
|
|
1255
|
+
if (this.u1p_1.u1m().o1h()) {
|
|
954
1256
|
this.g9_1 = 2;
|
|
955
|
-
suspendResult = this.
|
|
1257
|
+
suspendResult = this.u1p_1.d1n(VOID, this);
|
|
956
1258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
957
1259
|
return suspendResult;
|
|
958
1260
|
}
|
|
@@ -966,7 +1268,7 @@
|
|
|
966
1268
|
this.g9_1 = 3;
|
|
967
1269
|
continue $sm;
|
|
968
1270
|
case 3:
|
|
969
|
-
if (this.
|
|
1271
|
+
if (this.u1p_1.b1n()) {
|
|
970
1272
|
this.g9_1 = 5;
|
|
971
1273
|
continue $sm;
|
|
972
1274
|
} else {
|
|
@@ -975,20 +1277,20 @@
|
|
|
975
1277
|
}
|
|
976
1278
|
|
|
977
1279
|
case 4:
|
|
978
|
-
if (get_remaining(this.
|
|
979
|
-
this.
|
|
1280
|
+
if (get_remaining(this.u1p_1.u1m()).e1(numberToLong(this.v1p_1).a3(this.w1p_1.s())) > 0) {
|
|
1281
|
+
this.u1p_1.u1m().q1i(this.w1p_1, numberToLong(this.v1p_1).a3(this.w1p_1.s()));
|
|
980
1282
|
} else {
|
|
981
|
-
this.
|
|
1283
|
+
this.u1p_1.u1m().r1i(this.w1p_1);
|
|
982
1284
|
}
|
|
983
1285
|
|
|
984
1286
|
this.g9_1 = 1;
|
|
985
1287
|
continue $sm;
|
|
986
1288
|
case 5:
|
|
987
|
-
if (this.
|
|
988
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1289
|
+
if (this.w1p_1.s().e1(toLong(this.v1p_1)) < 0) {
|
|
1290
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.v1p_1 + ' bytes but only ' + this.w1p_1.s().toString() + ' available');
|
|
989
1291
|
}
|
|
990
1292
|
|
|
991
|
-
return this.
|
|
1293
|
+
return this.w1p_1;
|
|
992
1294
|
case 6:
|
|
993
1295
|
throw this.j9_1;
|
|
994
1296
|
}
|
|
@@ -1003,12 +1305,12 @@
|
|
|
1003
1305
|
}
|
|
1004
1306
|
while (true);
|
|
1005
1307
|
};
|
|
1006
|
-
function $discardCOROUTINE$
|
|
1308
|
+
function $discardCOROUTINE$8(_this__u8e3s4, max, resultContinuation) {
|
|
1007
1309
|
CoroutineImpl.call(this, resultContinuation);
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1310
|
+
this.f1q_1 = _this__u8e3s4;
|
|
1311
|
+
this.g1q_1 = max;
|
|
1010
1312
|
}
|
|
1011
|
-
protoOf($discardCOROUTINE$
|
|
1313
|
+
protoOf($discardCOROUTINE$8).o9 = function () {
|
|
1012
1314
|
var suspendResult = this.i9_1;
|
|
1013
1315
|
$sm: do
|
|
1014
1316
|
try {
|
|
@@ -1016,18 +1318,18 @@
|
|
|
1016
1318
|
switch (tmp) {
|
|
1017
1319
|
case 0:
|
|
1018
1320
|
this.h9_1 = 5;
|
|
1019
|
-
this.
|
|
1321
|
+
this.h1q_1 = this.g1q_1;
|
|
1020
1322
|
this.g9_1 = 1;
|
|
1021
1323
|
continue $sm;
|
|
1022
1324
|
case 1:
|
|
1023
|
-
if (!(this.
|
|
1325
|
+
if (!(this.h1q_1.e1(new Long(0, 0)) > 0 && !this.f1q_1.b1n())) {
|
|
1024
1326
|
this.g9_1 = 4;
|
|
1025
1327
|
continue $sm;
|
|
1026
1328
|
}
|
|
1027
1329
|
|
|
1028
|
-
if (get_availableForRead(this.
|
|
1330
|
+
if (get_availableForRead(this.f1q_1) === 0) {
|
|
1029
1331
|
this.g9_1 = 2;
|
|
1030
|
-
suspendResult = this.
|
|
1332
|
+
suspendResult = this.f1q_1.d1n(VOID, this);
|
|
1031
1333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1032
1334
|
return suspendResult;
|
|
1033
1335
|
}
|
|
@@ -1041,15 +1343,15 @@
|
|
|
1041
1343
|
this.g9_1 = 3;
|
|
1042
1344
|
continue $sm;
|
|
1043
1345
|
case 3:
|
|
1044
|
-
var tmp0 = this.
|
|
1045
|
-
var b = get_remaining(this.
|
|
1346
|
+
var tmp0 = this.h1q_1;
|
|
1347
|
+
var b = get_remaining(this.f1q_1.u1m());
|
|
1046
1348
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1047
|
-
discard_0(this.
|
|
1048
|
-
this.
|
|
1349
|
+
discard_0(this.f1q_1.u1m(), count);
|
|
1350
|
+
this.h1q_1 = this.h1q_1.a3(count);
|
|
1049
1351
|
this.g9_1 = 1;
|
|
1050
1352
|
continue $sm;
|
|
1051
1353
|
case 4:
|
|
1052
|
-
return this.
|
|
1354
|
+
return this.g1q_1.a3(this.h1q_1);
|
|
1053
1355
|
case 5:
|
|
1054
1356
|
throw this.j9_1;
|
|
1055
1357
|
}
|
|
@@ -1064,14 +1366,14 @@
|
|
|
1064
1366
|
}
|
|
1065
1367
|
while (true);
|
|
1066
1368
|
};
|
|
1067
|
-
function $readAvailableCOROUTINE$
|
|
1369
|
+
function $readAvailableCOROUTINE$10(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1068
1370
|
CoroutineImpl.call(this, resultContinuation);
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1371
|
+
this.q1q_1 = _this__u8e3s4;
|
|
1372
|
+
this.r1q_1 = buffer;
|
|
1373
|
+
this.s1q_1 = offset;
|
|
1374
|
+
this.t1q_1 = length;
|
|
1073
1375
|
}
|
|
1074
|
-
protoOf($readAvailableCOROUTINE$
|
|
1376
|
+
protoOf($readAvailableCOROUTINE$10).o9 = function () {
|
|
1075
1377
|
var suspendResult = this.i9_1;
|
|
1076
1378
|
$sm: do
|
|
1077
1379
|
try {
|
|
@@ -1079,11 +1381,11 @@
|
|
|
1079
1381
|
switch (tmp) {
|
|
1080
1382
|
case 0:
|
|
1081
1383
|
this.h9_1 = 3;
|
|
1082
|
-
if (this.
|
|
1384
|
+
if (this.q1q_1.b1n())
|
|
1083
1385
|
return -1;
|
|
1084
|
-
if (this.
|
|
1386
|
+
if (this.q1q_1.u1m().o1h()) {
|
|
1085
1387
|
this.g9_1 = 1;
|
|
1086
|
-
suspendResult = this.
|
|
1388
|
+
suspendResult = this.q1q_1.d1n(VOID, this);
|
|
1087
1389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1088
1390
|
return suspendResult;
|
|
1089
1391
|
}
|
|
@@ -1097,9 +1399,9 @@
|
|
|
1097
1399
|
this.g9_1 = 2;
|
|
1098
1400
|
continue $sm;
|
|
1099
1401
|
case 2:
|
|
1100
|
-
if (this.
|
|
1402
|
+
if (this.q1q_1.b1n())
|
|
1101
1403
|
return -1;
|
|
1102
|
-
return readAvailable_0(this.
|
|
1404
|
+
return readAvailable_0(this.q1q_1.u1m(), this.r1q_1, this.s1q_1, this.t1q_1);
|
|
1103
1405
|
case 3:
|
|
1104
1406
|
throw this.j9_1;
|
|
1105
1407
|
}
|
|
@@ -1114,11 +1416,11 @@
|
|
|
1114
1416
|
}
|
|
1115
1417
|
while (true);
|
|
1116
1418
|
};
|
|
1117
|
-
function $toByteArrayCOROUTINE$
|
|
1419
|
+
function $toByteArrayCOROUTINE$12(_this__u8e3s4, resultContinuation) {
|
|
1118
1420
|
CoroutineImpl.call(this, resultContinuation);
|
|
1119
|
-
this.
|
|
1421
|
+
this.c1r_1 = _this__u8e3s4;
|
|
1120
1422
|
}
|
|
1121
|
-
protoOf($toByteArrayCOROUTINE$
|
|
1423
|
+
protoOf($toByteArrayCOROUTINE$12).o9 = function () {
|
|
1122
1424
|
var suspendResult = this.i9_1;
|
|
1123
1425
|
$sm: do
|
|
1124
1426
|
try {
|
|
@@ -1127,7 +1429,7 @@
|
|
|
1127
1429
|
case 0:
|
|
1128
1430
|
this.h9_1 = 2;
|
|
1129
1431
|
this.g9_1 = 1;
|
|
1130
|
-
suspendResult = readBuffer(this.
|
|
1432
|
+
suspendResult = readBuffer(this.c1r_1, this);
|
|
1131
1433
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1132
1434
|
return suspendResult;
|
|
1133
1435
|
}
|
|
@@ -1150,13 +1452,13 @@
|
|
|
1150
1452
|
}
|
|
1151
1453
|
while (true);
|
|
1152
1454
|
};
|
|
1153
|
-
function $copyToCOROUTINE$
|
|
1455
|
+
function $copyToCOROUTINE$13(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1154
1456
|
CoroutineImpl.call(this, resultContinuation);
|
|
1155
|
-
this.
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1457
|
+
this.l1r_1 = _this__u8e3s4;
|
|
1458
|
+
this.m1r_1 = channel;
|
|
1459
|
+
this.n1r_1 = limit;
|
|
1158
1460
|
}
|
|
1159
|
-
protoOf($copyToCOROUTINE$
|
|
1461
|
+
protoOf($copyToCOROUTINE$13).o9 = function () {
|
|
1160
1462
|
var suspendResult = this.i9_1;
|
|
1161
1463
|
$sm: do
|
|
1162
1464
|
try {
|
|
@@ -1164,7 +1466,7 @@
|
|
|
1164
1466
|
switch (tmp) {
|
|
1165
1467
|
case 0:
|
|
1166
1468
|
this.h9_1 = 12;
|
|
1167
|
-
this.
|
|
1469
|
+
this.o1r_1 = this.n1r_1;
|
|
1168
1470
|
this.g9_1 = 1;
|
|
1169
1471
|
continue $sm;
|
|
1170
1472
|
case 1:
|
|
@@ -1173,14 +1475,14 @@
|
|
|
1173
1475
|
this.g9_1 = 2;
|
|
1174
1476
|
continue $sm;
|
|
1175
1477
|
case 2:
|
|
1176
|
-
if (!(!this.
|
|
1478
|
+
if (!(!this.l1r_1.b1n() && this.o1r_1.e1(new Long(0, 0)) > 0)) {
|
|
1177
1479
|
this.g9_1 = 6;
|
|
1178
1480
|
continue $sm;
|
|
1179
1481
|
}
|
|
1180
1482
|
|
|
1181
|
-
if (this.
|
|
1483
|
+
if (this.l1r_1.u1m().o1h()) {
|
|
1182
1484
|
this.g9_1 = 3;
|
|
1183
|
-
suspendResult = this.
|
|
1485
|
+
suspendResult = this.l1r_1.d1n(VOID, this);
|
|
1184
1486
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1185
1487
|
return suspendResult;
|
|
1186
1488
|
}
|
|
@@ -1195,13 +1497,13 @@
|
|
|
1195
1497
|
continue $sm;
|
|
1196
1498
|
case 4:
|
|
1197
1499
|
var tmp_0 = this;
|
|
1198
|
-
var tmp0 = this.
|
|
1199
|
-
var b = get_remaining(this.
|
|
1200
|
-
tmp_0.
|
|
1201
|
-
this.
|
|
1202
|
-
this.
|
|
1500
|
+
var tmp0 = this.o1r_1;
|
|
1501
|
+
var b = get_remaining(this.l1r_1.u1m());
|
|
1502
|
+
tmp_0.q1r_1 = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1503
|
+
this.l1r_1.u1m().q1i(this.m1r_1.x1m(), this.q1r_1);
|
|
1504
|
+
this.o1r_1 = this.o1r_1.a3(this.q1r_1);
|
|
1203
1505
|
this.g9_1 = 5;
|
|
1204
|
-
suspendResult = this.
|
|
1506
|
+
suspendResult = this.m1r_1.t1m(this);
|
|
1205
1507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1206
1508
|
return suspendResult;
|
|
1207
1509
|
}
|
|
@@ -1211,7 +1513,7 @@
|
|
|
1211
1513
|
this.g9_1 = 2;
|
|
1212
1514
|
continue $sm;
|
|
1213
1515
|
case 6:
|
|
1214
|
-
this.
|
|
1516
|
+
this.p1r_1 = Unit_instance;
|
|
1215
1517
|
this.h9_1 = 12;
|
|
1216
1518
|
this.g9_1 = 10;
|
|
1217
1519
|
continue $sm;
|
|
@@ -1219,38 +1521,38 @@
|
|
|
1219
1521
|
this.h9_1 = 8;
|
|
1220
1522
|
var tmp_1 = this.j9_1;
|
|
1221
1523
|
if (tmp_1 instanceof Error) {
|
|
1222
|
-
this.
|
|
1524
|
+
this.r1r_1 = this.j9_1;
|
|
1223
1525
|
var tmp_2 = this;
|
|
1224
|
-
this.
|
|
1225
|
-
close_0(this.
|
|
1226
|
-
throw this.
|
|
1526
|
+
this.l1r_1.f1n(this.r1r_1);
|
|
1527
|
+
close_0(this.m1r_1, this.r1r_1);
|
|
1528
|
+
throw this.r1r_1;
|
|
1227
1529
|
} else {
|
|
1228
1530
|
throw this.j9_1;
|
|
1229
1531
|
}
|
|
1230
1532
|
|
|
1231
1533
|
case 8:
|
|
1232
1534
|
this.h9_1 = 12;
|
|
1233
|
-
this.
|
|
1535
|
+
this.s1r_1 = this.j9_1;
|
|
1234
1536
|
this.g9_1 = 9;
|
|
1235
|
-
suspendResult = this.
|
|
1537
|
+
suspendResult = this.m1r_1.t1m(this);
|
|
1236
1538
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1237
1539
|
return suspendResult;
|
|
1238
1540
|
}
|
|
1239
1541
|
|
|
1240
1542
|
continue $sm;
|
|
1241
1543
|
case 9:
|
|
1242
|
-
throw this.
|
|
1544
|
+
throw this.s1r_1;
|
|
1243
1545
|
case 10:
|
|
1244
1546
|
this.h9_1 = 12;
|
|
1245
1547
|
this.g9_1 = 11;
|
|
1246
|
-
suspendResult = this.
|
|
1548
|
+
suspendResult = this.m1r_1.t1m(this);
|
|
1247
1549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1248
1550
|
return suspendResult;
|
|
1249
1551
|
}
|
|
1250
1552
|
|
|
1251
1553
|
continue $sm;
|
|
1252
1554
|
case 11:
|
|
1253
|
-
return this.
|
|
1555
|
+
return this.n1r_1.a3(this.o1r_1);
|
|
1254
1556
|
case 12:
|
|
1255
1557
|
throw this.j9_1;
|
|
1256
1558
|
}
|
|
@@ -1265,12 +1567,12 @@
|
|
|
1265
1567
|
}
|
|
1266
1568
|
while (true);
|
|
1267
1569
|
};
|
|
1268
|
-
function $copyToCOROUTINE$
|
|
1570
|
+
function $copyToCOROUTINE$14(_this__u8e3s4, channel, resultContinuation) {
|
|
1269
1571
|
CoroutineImpl.call(this, resultContinuation);
|
|
1270
|
-
this.
|
|
1271
|
-
this.
|
|
1572
|
+
this.b1s_1 = _this__u8e3s4;
|
|
1573
|
+
this.c1s_1 = channel;
|
|
1272
1574
|
}
|
|
1273
|
-
protoOf($copyToCOROUTINE$
|
|
1575
|
+
protoOf($copyToCOROUTINE$14).o9 = function () {
|
|
1274
1576
|
var suspendResult = this.i9_1;
|
|
1275
1577
|
$sm: do
|
|
1276
1578
|
try {
|
|
@@ -1278,7 +1580,7 @@
|
|
|
1278
1580
|
switch (tmp) {
|
|
1279
1581
|
case 0:
|
|
1280
1582
|
this.h9_1 = 11;
|
|
1281
|
-
this.
|
|
1583
|
+
this.d1s_1 = new Long(0, 0);
|
|
1282
1584
|
this.g9_1 = 1;
|
|
1283
1585
|
continue $sm;
|
|
1284
1586
|
case 1:
|
|
@@ -1287,14 +1589,14 @@
|
|
|
1287
1589
|
this.g9_1 = 2;
|
|
1288
1590
|
continue $sm;
|
|
1289
1591
|
case 2:
|
|
1290
|
-
if (!!this.
|
|
1592
|
+
if (!!this.b1s_1.b1n()) {
|
|
1291
1593
|
this.g9_1 = 5;
|
|
1292
1594
|
continue $sm;
|
|
1293
1595
|
}
|
|
1294
1596
|
|
|
1295
|
-
this.
|
|
1597
|
+
this.d1s_1 = this.d1s_1.z2(this.b1s_1.u1m().r1i(this.c1s_1.x1m()));
|
|
1296
1598
|
this.g9_1 = 3;
|
|
1297
|
-
suspendResult = this.
|
|
1599
|
+
suspendResult = this.c1s_1.t1m(this);
|
|
1298
1600
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1299
1601
|
return suspendResult;
|
|
1300
1602
|
}
|
|
@@ -1302,7 +1604,7 @@
|
|
|
1302
1604
|
continue $sm;
|
|
1303
1605
|
case 3:
|
|
1304
1606
|
this.g9_1 = 4;
|
|
1305
|
-
suspendResult = this.
|
|
1607
|
+
suspendResult = this.b1s_1.d1n(VOID, this);
|
|
1306
1608
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1307
1609
|
return suspendResult;
|
|
1308
1610
|
}
|
|
@@ -1312,7 +1614,7 @@
|
|
|
1312
1614
|
this.g9_1 = 2;
|
|
1313
1615
|
continue $sm;
|
|
1314
1616
|
case 5:
|
|
1315
|
-
this.
|
|
1617
|
+
this.e1s_1 = Unit_instance;
|
|
1316
1618
|
this.h9_1 = 11;
|
|
1317
1619
|
this.g9_1 = 9;
|
|
1318
1620
|
continue $sm;
|
|
@@ -1320,38 +1622,38 @@
|
|
|
1320
1622
|
this.h9_1 = 7;
|
|
1321
1623
|
var tmp_0 = this.j9_1;
|
|
1322
1624
|
if (tmp_0 instanceof Error) {
|
|
1323
|
-
this.
|
|
1625
|
+
this.f1s_1 = this.j9_1;
|
|
1324
1626
|
var tmp_1 = this;
|
|
1325
|
-
this.
|
|
1326
|
-
close_0(this.
|
|
1327
|
-
throw this.
|
|
1627
|
+
this.b1s_1.f1n(this.f1s_1);
|
|
1628
|
+
close_0(this.c1s_1, this.f1s_1);
|
|
1629
|
+
throw this.f1s_1;
|
|
1328
1630
|
} else {
|
|
1329
1631
|
throw this.j9_1;
|
|
1330
1632
|
}
|
|
1331
1633
|
|
|
1332
1634
|
case 7:
|
|
1333
1635
|
this.h9_1 = 11;
|
|
1334
|
-
this.
|
|
1636
|
+
this.g1s_1 = this.j9_1;
|
|
1335
1637
|
this.g9_1 = 8;
|
|
1336
|
-
suspendResult = this.
|
|
1638
|
+
suspendResult = this.c1s_1.t1m(this);
|
|
1337
1639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1338
1640
|
return suspendResult;
|
|
1339
1641
|
}
|
|
1340
1642
|
|
|
1341
1643
|
continue $sm;
|
|
1342
1644
|
case 8:
|
|
1343
|
-
throw this.
|
|
1645
|
+
throw this.g1s_1;
|
|
1344
1646
|
case 9:
|
|
1345
1647
|
this.h9_1 = 11;
|
|
1346
1648
|
this.g9_1 = 10;
|
|
1347
|
-
suspendResult = this.
|
|
1649
|
+
suspendResult = this.c1s_1.t1m(this);
|
|
1348
1650
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1349
1651
|
return suspendResult;
|
|
1350
1652
|
}
|
|
1351
1653
|
|
|
1352
1654
|
continue $sm;
|
|
1353
1655
|
case 10:
|
|
1354
|
-
return this.
|
|
1656
|
+
return this.d1s_1;
|
|
1355
1657
|
case 11:
|
|
1356
1658
|
throw this.j9_1;
|
|
1357
1659
|
}
|
|
@@ -1366,11 +1668,11 @@
|
|
|
1366
1668
|
}
|
|
1367
1669
|
while (true);
|
|
1368
1670
|
};
|
|
1369
|
-
function $readBufferCOROUTINE$
|
|
1671
|
+
function $readBufferCOROUTINE$15(_this__u8e3s4, resultContinuation) {
|
|
1370
1672
|
CoroutineImpl.call(this, resultContinuation);
|
|
1371
|
-
this.
|
|
1673
|
+
this.p1s_1 = _this__u8e3s4;
|
|
1372
1674
|
}
|
|
1373
|
-
protoOf($readBufferCOROUTINE$
|
|
1675
|
+
protoOf($readBufferCOROUTINE$15).o9 = function () {
|
|
1374
1676
|
var suspendResult = this.i9_1;
|
|
1375
1677
|
$sm: do
|
|
1376
1678
|
try {
|
|
@@ -1378,18 +1680,18 @@
|
|
|
1378
1680
|
switch (tmp) {
|
|
1379
1681
|
case 0:
|
|
1380
1682
|
this.h9_1 = 4;
|
|
1381
|
-
this.
|
|
1683
|
+
this.q1s_1 = new Buffer();
|
|
1382
1684
|
this.g9_1 = 1;
|
|
1383
1685
|
continue $sm;
|
|
1384
1686
|
case 1:
|
|
1385
|
-
if (!!this.
|
|
1687
|
+
if (!!this.p1s_1.b1n()) {
|
|
1386
1688
|
this.g9_1 = 3;
|
|
1387
1689
|
continue $sm;
|
|
1388
1690
|
}
|
|
1389
1691
|
|
|
1390
|
-
this.
|
|
1692
|
+
this.q1s_1.g1j(this.p1s_1.u1m());
|
|
1391
1693
|
this.g9_1 = 2;
|
|
1392
|
-
suspendResult = this.
|
|
1694
|
+
suspendResult = this.p1s_1.d1n(VOID, this);
|
|
1393
1695
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1394
1696
|
return suspendResult;
|
|
1395
1697
|
}
|
|
@@ -1399,14 +1701,14 @@
|
|
|
1399
1701
|
this.g9_1 = 1;
|
|
1400
1702
|
continue $sm;
|
|
1401
1703
|
case 3:
|
|
1402
|
-
var tmp0_safe_receiver = this.
|
|
1704
|
+
var tmp0_safe_receiver = this.p1s_1.z1m();
|
|
1403
1705
|
if (tmp0_safe_receiver == null)
|
|
1404
1706
|
null;
|
|
1405
1707
|
else {
|
|
1406
1708
|
throw tmp0_safe_receiver;
|
|
1407
1709
|
}
|
|
1408
1710
|
|
|
1409
|
-
return this.
|
|
1711
|
+
return this.q1s_1;
|
|
1410
1712
|
case 4:
|
|
1411
1713
|
throw this.j9_1;
|
|
1412
1714
|
}
|
|
@@ -1421,14 +1723,14 @@
|
|
|
1421
1723
|
}
|
|
1422
1724
|
while (true);
|
|
1423
1725
|
};
|
|
1424
|
-
function $readUTF8LineToCOROUTINE$
|
|
1726
|
+
function $readUTF8LineToCOROUTINE$16(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1425
1727
|
CoroutineImpl.call(this, resultContinuation);
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1728
|
+
this.e1t_1 = _this__u8e3s4;
|
|
1729
|
+
this.f1t_1 = out;
|
|
1730
|
+
this.g1t_1 = max;
|
|
1731
|
+
this.h1t_1 = lineEnding;
|
|
1430
1732
|
}
|
|
1431
|
-
protoOf($readUTF8LineToCOROUTINE$
|
|
1733
|
+
protoOf($readUTF8LineToCOROUTINE$16).o9 = function () {
|
|
1432
1734
|
var suspendResult = this.i9_1;
|
|
1433
1735
|
$sm: do
|
|
1434
1736
|
try {
|
|
@@ -1436,9 +1738,9 @@
|
|
|
1436
1738
|
switch (tmp) {
|
|
1437
1739
|
case 0:
|
|
1438
1740
|
this.h9_1 = 21;
|
|
1439
|
-
if (this.
|
|
1741
|
+
if (this.e1t_1.u1m().o1h()) {
|
|
1440
1742
|
this.g9_1 = 1;
|
|
1441
|
-
suspendResult = this.
|
|
1743
|
+
suspendResult = this.e1t_1.d1n(VOID, this);
|
|
1442
1744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1443
1745
|
return suspendResult;
|
|
1444
1746
|
}
|
|
@@ -1452,15 +1754,15 @@
|
|
|
1452
1754
|
this.g9_1 = 2;
|
|
1453
1755
|
continue $sm;
|
|
1454
1756
|
case 2:
|
|
1455
|
-
if (this.
|
|
1757
|
+
if (this.e1t_1.b1n())
|
|
1456
1758
|
return false;
|
|
1457
1759
|
var tmp_0 = this;
|
|
1458
|
-
tmp_0.
|
|
1760
|
+
tmp_0.i1t_1 = new Buffer();
|
|
1459
1761
|
this.g9_1 = 3;
|
|
1460
1762
|
continue $sm;
|
|
1461
1763
|
case 3:
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1764
|
+
this.k1t_1 = this.i1t_1;
|
|
1765
|
+
this.l1t_1 = null;
|
|
1464
1766
|
this.g9_1 = 4;
|
|
1465
1767
|
continue $sm;
|
|
1466
1768
|
case 4:
|
|
@@ -1473,12 +1775,12 @@
|
|
|
1473
1775
|
this.h9_1 = 18;
|
|
1474
1776
|
this.h9_1 = 17;
|
|
1475
1777
|
var tmp_1 = this;
|
|
1476
|
-
tmp_1.
|
|
1477
|
-
this.
|
|
1778
|
+
tmp_1.n1t_1 = this.k1t_1;
|
|
1779
|
+
this.o1t_1 = this.n1t_1;
|
|
1478
1780
|
this.g9_1 = 7;
|
|
1479
1781
|
continue $sm;
|
|
1480
1782
|
case 7:
|
|
1481
|
-
if (!!this.
|
|
1783
|
+
if (!!this.e1t_1.b1n()) {
|
|
1482
1784
|
this.g9_1 = 14;
|
|
1483
1785
|
continue $sm;
|
|
1484
1786
|
}
|
|
@@ -1486,16 +1788,16 @@
|
|
|
1486
1788
|
this.g9_1 = 8;
|
|
1487
1789
|
continue $sm;
|
|
1488
1790
|
case 8:
|
|
1489
|
-
if (!!this.
|
|
1791
|
+
if (!!this.e1t_1.u1m().o1h()) {
|
|
1490
1792
|
this.g9_1 = 12;
|
|
1491
1793
|
continue $sm;
|
|
1492
1794
|
}
|
|
1493
1795
|
|
|
1494
|
-
this.
|
|
1495
|
-
if (this.
|
|
1496
|
-
if (this.
|
|
1796
|
+
this.p1t_1 = this.e1t_1.u1m().r1h();
|
|
1797
|
+
if (this.p1t_1 === 13) {
|
|
1798
|
+
if (this.e1t_1.u1m().o1h()) {
|
|
1497
1799
|
this.g9_1 = 10;
|
|
1498
|
-
suspendResult = this.
|
|
1800
|
+
suspendResult = this.e1t_1.d1n(VOID, this);
|
|
1499
1801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1500
1802
|
return suspendResult;
|
|
1501
1803
|
}
|
|
@@ -1505,15 +1807,15 @@
|
|
|
1505
1807
|
continue $sm;
|
|
1506
1808
|
}
|
|
1507
1809
|
} else {
|
|
1508
|
-
if (this.
|
|
1509
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1810
|
+
if (this.p1t_1 === 10) {
|
|
1811
|
+
readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().s1s_1);
|
|
1812
|
+
this.f1t_1.l(readString(this.o1t_1));
|
|
1813
|
+
this.m1t_1 = true;
|
|
1512
1814
|
this.h9_1 = 21;
|
|
1513
1815
|
this.g9_1 = 15;
|
|
1514
1816
|
continue $sm;
|
|
1515
1817
|
} else {
|
|
1516
|
-
this.
|
|
1818
|
+
this.o1t_1.h1j(this.p1t_1);
|
|
1517
1819
|
this.g9_1 = 9;
|
|
1518
1820
|
continue $sm;
|
|
1519
1821
|
}
|
|
@@ -1526,25 +1828,25 @@
|
|
|
1526
1828
|
this.g9_1 = 11;
|
|
1527
1829
|
continue $sm;
|
|
1528
1830
|
case 11:
|
|
1529
|
-
if (this.
|
|
1530
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1531
|
-
discard_0(this.
|
|
1831
|
+
if (this.e1t_1.u1m().n1h().j1i(new Long(0, 0)) === 10) {
|
|
1832
|
+
readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().t1s_1);
|
|
1833
|
+
discard_0(this.e1t_1.u1m(), new Long(1, 0));
|
|
1532
1834
|
} else {
|
|
1533
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1835
|
+
readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().r1s_1);
|
|
1534
1836
|
}
|
|
1535
1837
|
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1838
|
+
this.f1t_1.l(readString(this.o1t_1));
|
|
1839
|
+
this.m1t_1 = true;
|
|
1538
1840
|
this.h9_1 = 21;
|
|
1539
1841
|
this.g9_1 = 15;
|
|
1540
1842
|
continue $sm;
|
|
1541
1843
|
case 12:
|
|
1542
|
-
if (this.
|
|
1543
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1844
|
+
if (this.o1t_1.s().e1(toLong(this.g1t_1)) >= 0) {
|
|
1845
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.g1t_1 + ' characters');
|
|
1544
1846
|
}
|
|
1545
1847
|
|
|
1546
1848
|
this.g9_1 = 13;
|
|
1547
|
-
suspendResult = this.
|
|
1849
|
+
suspendResult = this.e1t_1.d1n(VOID, this);
|
|
1548
1850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1549
1851
|
return suspendResult;
|
|
1550
1852
|
}
|
|
@@ -1555,26 +1857,26 @@
|
|
|
1555
1857
|
continue $sm;
|
|
1556
1858
|
case 14:
|
|
1557
1859
|
var tmp_2 = this;
|
|
1558
|
-
var this_0 = this.
|
|
1860
|
+
var this_0 = this.o1t_1.s().e1(new Long(0, 0)) > 0;
|
|
1559
1861
|
if (this_0) {
|
|
1560
|
-
this.
|
|
1862
|
+
this.f1t_1.l(readString(this.o1t_1));
|
|
1561
1863
|
}
|
|
1562
1864
|
|
|
1563
|
-
tmp_2.
|
|
1865
|
+
tmp_2.m1t_1 = this_0;
|
|
1564
1866
|
this.h9_1 = 21;
|
|
1565
1867
|
this.g9_1 = 15;
|
|
1566
1868
|
var tmp_3 = this;
|
|
1567
1869
|
continue $sm;
|
|
1568
1870
|
case 15:
|
|
1569
|
-
var tmp_4 = this.
|
|
1871
|
+
var tmp_4 = this.m1t_1;
|
|
1570
1872
|
this.h9_1 = 21;
|
|
1571
|
-
closeFinally(this.
|
|
1873
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1572
1874
|
return tmp_4;
|
|
1573
1875
|
case 16:
|
|
1574
1876
|
this.h9_1 = 21;
|
|
1575
1877
|
var tmp_5 = this;
|
|
1576
|
-
closeFinally(this.
|
|
1577
|
-
tmp_5.
|
|
1878
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1879
|
+
tmp_5.j1t_1 = Unit_instance;
|
|
1578
1880
|
this.g9_1 = 20;
|
|
1579
1881
|
continue $sm;
|
|
1580
1882
|
case 17:
|
|
@@ -1583,7 +1885,7 @@
|
|
|
1583
1885
|
if (tmp_6 instanceof Error) {
|
|
1584
1886
|
var e = this.j9_1;
|
|
1585
1887
|
var tmp_7 = this;
|
|
1586
|
-
this.
|
|
1888
|
+
this.l1t_1 = e;
|
|
1587
1889
|
throw e;
|
|
1588
1890
|
} else {
|
|
1589
1891
|
throw this.j9_1;
|
|
@@ -1592,11 +1894,11 @@
|
|
|
1592
1894
|
case 18:
|
|
1593
1895
|
this.h9_1 = 21;
|
|
1594
1896
|
var t = this.j9_1;
|
|
1595
|
-
closeFinally(this.
|
|
1897
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1596
1898
|
throw t;
|
|
1597
1899
|
case 19:
|
|
1598
1900
|
this.h9_1 = 21;
|
|
1599
|
-
closeFinally(this.
|
|
1901
|
+
closeFinally(this.k1t_1, this.l1t_1);
|
|
1600
1902
|
if (false) {
|
|
1601
1903
|
this.g9_1 = 3;
|
|
1602
1904
|
continue $sm;
|
|
@@ -1620,12 +1922,12 @@
|
|
|
1620
1922
|
}
|
|
1621
1923
|
while (true);
|
|
1622
1924
|
};
|
|
1623
|
-
function $readRemainingCOROUTINE$
|
|
1925
|
+
function $readRemainingCOROUTINE$17(_this__u8e3s4, max, resultContinuation) {
|
|
1624
1926
|
CoroutineImpl.call(this, resultContinuation);
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1927
|
+
this.y1t_1 = _this__u8e3s4;
|
|
1928
|
+
this.z1t_1 = max;
|
|
1627
1929
|
}
|
|
1628
|
-
protoOf($readRemainingCOROUTINE$
|
|
1930
|
+
protoOf($readRemainingCOROUTINE$17).o9 = function () {
|
|
1629
1931
|
var suspendResult = this.i9_1;
|
|
1630
1932
|
$sm: do
|
|
1631
1933
|
try {
|
|
@@ -1633,26 +1935,26 @@
|
|
|
1633
1935
|
switch (tmp) {
|
|
1634
1936
|
case 0:
|
|
1635
1937
|
this.h9_1 = 4;
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1938
|
+
this.a1u_1 = BytePacketBuilder();
|
|
1939
|
+
this.b1u_1 = this.z1t_1;
|
|
1638
1940
|
this.g9_1 = 1;
|
|
1639
1941
|
continue $sm;
|
|
1640
1942
|
case 1:
|
|
1641
|
-
if (!(!this.
|
|
1943
|
+
if (!(!this.y1t_1.b1n() && this.b1u_1.e1(new Long(0, 0)) > 0)) {
|
|
1642
1944
|
this.g9_1 = 3;
|
|
1643
1945
|
continue $sm;
|
|
1644
1946
|
}
|
|
1645
1947
|
|
|
1646
|
-
if (this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1948
|
+
if (this.b1u_1.e1(get_remaining(this.y1t_1.u1m())) >= 0) {
|
|
1949
|
+
this.b1u_1 = this.b1u_1.a3(get_remaining(this.y1t_1.u1m()));
|
|
1950
|
+
this.y1t_1.u1m().r1i(this.a1u_1);
|
|
1649
1951
|
} else {
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1952
|
+
this.y1t_1.u1m().q1i(this.a1u_1, this.b1u_1);
|
|
1953
|
+
this.b1u_1 = new Long(0, 0);
|
|
1652
1954
|
}
|
|
1653
1955
|
|
|
1654
1956
|
this.g9_1 = 2;
|
|
1655
|
-
suspendResult = this.
|
|
1957
|
+
suspendResult = this.y1t_1.d1n(VOID, this);
|
|
1656
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1657
1959
|
return suspendResult;
|
|
1658
1960
|
}
|
|
@@ -1662,7 +1964,7 @@
|
|
|
1662
1964
|
this.g9_1 = 1;
|
|
1663
1965
|
continue $sm;
|
|
1664
1966
|
case 3:
|
|
1665
|
-
return this.
|
|
1967
|
+
return this.a1u_1.n1h();
|
|
1666
1968
|
case 4:
|
|
1667
1969
|
throw this.j9_1;
|
|
1668
1970
|
}
|
|
@@ -1677,12 +1979,12 @@
|
|
|
1677
1979
|
}
|
|
1678
1980
|
while (true);
|
|
1679
1981
|
};
|
|
1680
|
-
function $skipIfFoundCOROUTINE$
|
|
1982
|
+
function $skipIfFoundCOROUTINE$18(_this__u8e3s4, byteString, resultContinuation) {
|
|
1681
1983
|
CoroutineImpl.call(this, resultContinuation);
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1984
|
+
this.k1u_1 = _this__u8e3s4;
|
|
1985
|
+
this.l1u_1 = byteString;
|
|
1684
1986
|
}
|
|
1685
|
-
protoOf($skipIfFoundCOROUTINE$
|
|
1987
|
+
protoOf($skipIfFoundCOROUTINE$18).o9 = function () {
|
|
1686
1988
|
var suspendResult = this.i9_1;
|
|
1687
1989
|
$sm: do
|
|
1688
1990
|
try {
|
|
@@ -1691,17 +1993,17 @@
|
|
|
1691
1993
|
case 0:
|
|
1692
1994
|
this.h9_1 = 4;
|
|
1693
1995
|
this.g9_1 = 1;
|
|
1694
|
-
suspendResult = peek(this.
|
|
1996
|
+
suspendResult = peek(this.k1u_1, this.l1u_1.s(), this);
|
|
1695
1997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1696
1998
|
return suspendResult;
|
|
1697
1999
|
}
|
|
1698
2000
|
|
|
1699
2001
|
continue $sm;
|
|
1700
2002
|
case 1:
|
|
1701
|
-
this.
|
|
1702
|
-
if (equals(this.
|
|
2003
|
+
this.m1u_1 = suspendResult;
|
|
2004
|
+
if (equals(this.m1u_1, this.l1u_1)) {
|
|
1703
2005
|
this.g9_1 = 3;
|
|
1704
|
-
suspendResult = discard(this.
|
|
2006
|
+
suspendResult = discard(this.k1u_1, toLong(this.l1u_1.s()), this);
|
|
1705
2007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1706
2008
|
return suspendResult;
|
|
1707
2009
|
}
|
|
@@ -1729,143 +2031,12 @@
|
|
|
1729
2031
|
}
|
|
1730
2032
|
while (true);
|
|
1731
2033
|
};
|
|
1732
|
-
function $
|
|
2034
|
+
function $peekCOROUTINE$19(_this__u8e3s4, count, resultContinuation) {
|
|
1733
2035
|
CoroutineImpl.call(this, resultContinuation);
|
|
1734
|
-
this.
|
|
1735
|
-
this.
|
|
1736
|
-
this.d1t_1 = writeChannel;
|
|
1737
|
-
this.e1t_1 = limit;
|
|
1738
|
-
this.f1t_1 = ignoreMissing;
|
|
2036
|
+
this.v1u_1 = _this__u8e3s4;
|
|
2037
|
+
this.w1u_1 = count;
|
|
1739
2038
|
}
|
|
1740
|
-
protoOf($
|
|
1741
|
-
var suspendResult = this.i9_1;
|
|
1742
|
-
$sm: do
|
|
1743
|
-
try {
|
|
1744
|
-
var tmp = this.g9_1;
|
|
1745
|
-
switch (tmp) {
|
|
1746
|
-
case 0:
|
|
1747
|
-
this.h9_1 = 11;
|
|
1748
|
-
if (!(this.c1t_1.s() > 0)) {
|
|
1749
|
-
var message = 'Empty match string not permitted for readUntil';
|
|
1750
|
-
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
this.g1t_1 = buildPartialMatchTable(this.c1t_1);
|
|
1754
|
-
this.h1t_1 = {_v: 0};
|
|
1755
|
-
this.i1t_1 = new Int8Array(this.c1t_1.s());
|
|
1756
|
-
this.j1t_1 = {_v: new Long(0, 0)};
|
|
1757
|
-
this.g9_1 = 1;
|
|
1758
|
-
continue $sm;
|
|
1759
|
-
case 1:
|
|
1760
|
-
if (!!this.b1t_1.a1n()) {
|
|
1761
|
-
this.g9_1 = 7;
|
|
1762
|
-
continue $sm;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
this.g9_1 = 2;
|
|
1766
|
-
suspendResult = readByte(this.b1t_1, this);
|
|
1767
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1768
|
-
return suspendResult;
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
continue $sm;
|
|
1772
|
-
case 2:
|
|
1773
|
-
this.k1t_1 = suspendResult;
|
|
1774
|
-
if (this.h1t_1._v > 0 && !(this.k1t_1 === this.c1t_1.u(this.h1t_1._v))) {
|
|
1775
|
-
this.g9_1 = 3;
|
|
1776
|
-
suspendResult = readUntil$appendPartialMatch(this.d1t_1, this.i1t_1, this.h1t_1, this.j1t_1, this);
|
|
1777
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1778
|
-
return suspendResult;
|
|
1779
|
-
}
|
|
1780
|
-
continue $sm;
|
|
1781
|
-
} else {
|
|
1782
|
-
this.g9_1 = 4;
|
|
1783
|
-
continue $sm;
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
case 3:
|
|
1787
|
-
readUntil$resetPartialMatch(this.h1t_1, this.c1t_1, this.g1t_1, this.k1t_1);
|
|
1788
|
-
this.g9_1 = 4;
|
|
1789
|
-
continue $sm;
|
|
1790
|
-
case 4:
|
|
1791
|
-
if (this.k1t_1 === this.c1t_1.u(this.h1t_1._v)) {
|
|
1792
|
-
var tmp_0 = this;
|
|
1793
|
-
this.i1t_1[this.h1t_1._v] = this.k1t_1;
|
|
1794
|
-
this.h1t_1._v = this.h1t_1._v + 1 | 0;
|
|
1795
|
-
if (this.h1t_1._v === this.c1t_1.s()) {
|
|
1796
|
-
return this.j1t_1._v;
|
|
1797
|
-
}
|
|
1798
|
-
tmp_0.l1t_1 = Unit_instance;
|
|
1799
|
-
this.g9_1 = 6;
|
|
1800
|
-
continue $sm;
|
|
1801
|
-
} else {
|
|
1802
|
-
this.g9_1 = 5;
|
|
1803
|
-
suspendResult = writeByte(this.d1t_1, this.k1t_1, this);
|
|
1804
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1805
|
-
return suspendResult;
|
|
1806
|
-
}
|
|
1807
|
-
continue $sm;
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
case 5:
|
|
1811
|
-
var tmp_1 = this;
|
|
1812
|
-
var _unary__edvuaz = this.j1t_1._v;
|
|
1813
|
-
this.j1t_1._v = _unary__edvuaz.e3();
|
|
1814
|
-
tmp_1.l1t_1 = _unary__edvuaz;
|
|
1815
|
-
this.g9_1 = 6;
|
|
1816
|
-
continue $sm;
|
|
1817
|
-
case 6:
|
|
1818
|
-
if (this.j1t_1._v.e1(this.e1t_1) > 0) {
|
|
1819
|
-
throw IOException_init_$Create$('Limit of ' + this.e1t_1.toString() + ' bytes exceeded while scanning for "' + decodeToString(this.c1t_1) + '"');
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
this.g9_1 = 1;
|
|
1823
|
-
continue $sm;
|
|
1824
|
-
case 7:
|
|
1825
|
-
if (this.f1t_1) {
|
|
1826
|
-
this.g9_1 = 9;
|
|
1827
|
-
suspendResult = readUntil$appendPartialMatch(this.d1t_1, this.i1t_1, this.h1t_1, this.j1t_1, this);
|
|
1828
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1829
|
-
return suspendResult;
|
|
1830
|
-
}
|
|
1831
|
-
continue $sm;
|
|
1832
|
-
} else {
|
|
1833
|
-
this.g9_1 = 8;
|
|
1834
|
-
continue $sm;
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
case 8:
|
|
1838
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.c1t_1) + '" but encountered end of input');
|
|
1839
|
-
case 9:
|
|
1840
|
-
this.g9_1 = 10;
|
|
1841
|
-
suspendResult = this.d1t_1.s1m(this);
|
|
1842
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1843
|
-
return suspendResult;
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
continue $sm;
|
|
1847
|
-
case 10:
|
|
1848
|
-
return this.j1t_1._v;
|
|
1849
|
-
case 11:
|
|
1850
|
-
throw this.j9_1;
|
|
1851
|
-
}
|
|
1852
|
-
} catch ($p) {
|
|
1853
|
-
var e = $p;
|
|
1854
|
-
if (this.h9_1 === 11) {
|
|
1855
|
-
throw e;
|
|
1856
|
-
} else {
|
|
1857
|
-
this.g9_1 = this.h9_1;
|
|
1858
|
-
this.j9_1 = e;
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
while (true);
|
|
1862
|
-
};
|
|
1863
|
-
function $peekCOROUTINE$17(_this__u8e3s4, count, resultContinuation) {
|
|
1864
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1865
|
-
this.u1t_1 = _this__u8e3s4;
|
|
1866
|
-
this.v1t_1 = count;
|
|
1867
|
-
}
|
|
1868
|
-
protoOf($peekCOROUTINE$17).o9 = function () {
|
|
2039
|
+
protoOf($peekCOROUTINE$19).o9 = function () {
|
|
1869
2040
|
var suspendResult = this.i9_1;
|
|
1870
2041
|
$sm: do
|
|
1871
2042
|
try {
|
|
@@ -1873,10 +2044,10 @@
|
|
|
1873
2044
|
switch (tmp) {
|
|
1874
2045
|
case 0:
|
|
1875
2046
|
this.h9_1 = 3;
|
|
1876
|
-
if (this.
|
|
2047
|
+
if (this.v1u_1.b1n())
|
|
1877
2048
|
return null;
|
|
1878
2049
|
this.g9_1 = 1;
|
|
1879
|
-
suspendResult = this.
|
|
2050
|
+
suspendResult = this.v1u_1.c1n(this.w1u_1, this);
|
|
1880
2051
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
2052
|
return suspendResult;
|
|
1882
2053
|
}
|
|
@@ -1892,7 +2063,7 @@
|
|
|
1892
2063
|
}
|
|
1893
2064
|
|
|
1894
2065
|
case 2:
|
|
1895
|
-
return readByteString(this.
|
|
2066
|
+
return readByteString(this.v1u_1.u1m().s1i(), this.w1u_1);
|
|
1896
2067
|
case 3:
|
|
1897
2068
|
throw this.j9_1;
|
|
1898
2069
|
}
|
|
@@ -1907,95 +2078,6 @@
|
|
|
1907
2078
|
}
|
|
1908
2079
|
while (true);
|
|
1909
2080
|
};
|
|
1910
|
-
function $readByteCOROUTINE$18(_this__u8e3s4, resultContinuation) {
|
|
1911
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1912
|
-
this.e1u_1 = _this__u8e3s4;
|
|
1913
|
-
}
|
|
1914
|
-
protoOf($readByteCOROUTINE$18).o9 = function () {
|
|
1915
|
-
var suspendResult = this.i9_1;
|
|
1916
|
-
$sm: do
|
|
1917
|
-
try {
|
|
1918
|
-
var tmp = this.g9_1;
|
|
1919
|
-
switch (tmp) {
|
|
1920
|
-
case 0:
|
|
1921
|
-
this.h9_1 = 3;
|
|
1922
|
-
if (this.e1u_1.t1m().n1h()) {
|
|
1923
|
-
this.g9_1 = 1;
|
|
1924
|
-
suspendResult = this.e1u_1.c1n(VOID, this);
|
|
1925
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1926
|
-
return suspendResult;
|
|
1927
|
-
}
|
|
1928
|
-
continue $sm;
|
|
1929
|
-
} else {
|
|
1930
|
-
this.g9_1 = 2;
|
|
1931
|
-
continue $sm;
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
case 1:
|
|
1935
|
-
this.g9_1 = 2;
|
|
1936
|
-
continue $sm;
|
|
1937
|
-
case 2:
|
|
1938
|
-
if (this.e1u_1.t1m().n1h()) {
|
|
1939
|
-
throw EOFException_init_$Create$('Not enough data available');
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
|
-
return this.e1u_1.t1m().q1h();
|
|
1943
|
-
case 3:
|
|
1944
|
-
throw this.j9_1;
|
|
1945
|
-
}
|
|
1946
|
-
} catch ($p) {
|
|
1947
|
-
var e = $p;
|
|
1948
|
-
if (this.h9_1 === 3) {
|
|
1949
|
-
throw e;
|
|
1950
|
-
} else {
|
|
1951
|
-
this.g9_1 = this.h9_1;
|
|
1952
|
-
this.j9_1 = e;
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
1955
|
-
while (true);
|
|
1956
|
-
};
|
|
1957
|
-
function $readUntil$appendPartialMatchCOROUTINE$19($writeChannel, matchBuffer, matchIndex, rc, resultContinuation) {
|
|
1958
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1959
|
-
this.n1u_1 = $writeChannel;
|
|
1960
|
-
this.o1u_1 = matchBuffer;
|
|
1961
|
-
this.p1u_1 = matchIndex;
|
|
1962
|
-
this.q1u_1 = rc;
|
|
1963
|
-
}
|
|
1964
|
-
protoOf($readUntil$appendPartialMatchCOROUTINE$19).o9 = function () {
|
|
1965
|
-
var suspendResult = this.i9_1;
|
|
1966
|
-
$sm: do
|
|
1967
|
-
try {
|
|
1968
|
-
var tmp = this.g9_1;
|
|
1969
|
-
switch (tmp) {
|
|
1970
|
-
case 0:
|
|
1971
|
-
this.h9_1 = 2;
|
|
1972
|
-
this.g9_1 = 1;
|
|
1973
|
-
suspendResult = writeFully(this.n1u_1, this.o1u_1, 0, this.p1u_1._v, this);
|
|
1974
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1975
|
-
return suspendResult;
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
continue $sm;
|
|
1979
|
-
case 1:
|
|
1980
|
-
var tmp0 = this.q1u_1._v;
|
|
1981
|
-
var other = this.p1u_1._v;
|
|
1982
|
-
this.q1u_1._v = tmp0.z2(toLong(other));
|
|
1983
|
-
this.p1u_1._v = 0;
|
|
1984
|
-
return Unit_instance;
|
|
1985
|
-
case 2:
|
|
1986
|
-
throw this.j9_1;
|
|
1987
|
-
}
|
|
1988
|
-
} catch ($p) {
|
|
1989
|
-
var e = $p;
|
|
1990
|
-
if (this.h9_1 === 2) {
|
|
1991
|
-
throw e;
|
|
1992
|
-
} else {
|
|
1993
|
-
this.g9_1 = this.h9_1;
|
|
1994
|
-
this.j9_1 = e;
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
while (true);
|
|
1998
|
-
};
|
|
1999
2081
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2000
2082
|
var tmp = new $flushIfNeededCOROUTINE$20(_this__u8e3s4, $completion);
|
|
2001
2083
|
tmp.i9_1 = Unit_instance;
|
|
@@ -2004,7 +2086,7 @@
|
|
|
2004
2086
|
}
|
|
2005
2087
|
function $flushIfNeededCOROUTINE$20(_this__u8e3s4, resultContinuation) {
|
|
2006
2088
|
CoroutineImpl.call(this, resultContinuation);
|
|
2007
|
-
this.
|
|
2089
|
+
this.f1v_1 = _this__u8e3s4;
|
|
2008
2090
|
}
|
|
2009
2091
|
protoOf($flushIfNeededCOROUTINE$20).o9 = function () {
|
|
2010
2092
|
var suspendResult = this.i9_1;
|
|
@@ -2014,19 +2096,19 @@
|
|
|
2014
2096
|
switch (tmp) {
|
|
2015
2097
|
case 0:
|
|
2016
2098
|
this.h9_1 = 3;
|
|
2017
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
2099
|
+
rethrowCloseCauseIfNeeded_0(this.f1v_1);
|
|
2018
2100
|
var tmp_0;
|
|
2019
|
-
var tmp_1 = this.
|
|
2101
|
+
var tmp_1 = this.f1v_1;
|
|
2020
2102
|
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
|
|
2021
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2103
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1k_1) === true) {
|
|
2022
2104
|
tmp_0 = true;
|
|
2023
2105
|
} else {
|
|
2024
|
-
tmp_0 = get_size(this.
|
|
2106
|
+
tmp_0 = get_size(this.f1v_1.x1m()) >= 1048576;
|
|
2025
2107
|
}
|
|
2026
2108
|
|
|
2027
2109
|
if (tmp_0) {
|
|
2028
2110
|
this.g9_1 = 1;
|
|
2029
|
-
suspendResult = this.
|
|
2111
|
+
suspendResult = this.f1v_1.t1m(this);
|
|
2030
2112
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2031
2113
|
return suspendResult;
|
|
2032
2114
|
}
|
|
@@ -2061,11 +2143,11 @@
|
|
|
2061
2143
|
}
|
|
2062
2144
|
var NO_CALLBACK;
|
|
2063
2145
|
function WriterJob(channel, job) {
|
|
2064
|
-
this.
|
|
2065
|
-
this.
|
|
2146
|
+
this.g1v_1 = channel;
|
|
2147
|
+
this.h1v_1 = job;
|
|
2066
2148
|
}
|
|
2067
|
-
protoOf(WriterJob).
|
|
2068
|
-
return this.
|
|
2149
|
+
protoOf(WriterJob).as = function () {
|
|
2150
|
+
return this.h1v_1;
|
|
2069
2151
|
};
|
|
2070
2152
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2071
2153
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2074,16 +2156,16 @@
|
|
|
2074
2156
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2075
2157
|
}
|
|
2076
2158
|
function WriterScope(channel, coroutineContext) {
|
|
2077
|
-
this.
|
|
2078
|
-
this.
|
|
2159
|
+
this.i1v_1 = channel;
|
|
2160
|
+
this.j1v_1 = coroutineContext;
|
|
2079
2161
|
}
|
|
2080
2162
|
protoOf(WriterScope).po = function () {
|
|
2081
|
-
return this.
|
|
2163
|
+
return this.j1v_1;
|
|
2082
2164
|
};
|
|
2083
2165
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2084
2166
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2085
2167
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2086
|
-
_this__u8e3s4.
|
|
2168
|
+
_this__u8e3s4.x1m().x1i(value, startIndex, endIndex);
|
|
2087
2169
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2088
2170
|
}
|
|
2089
2171
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2094,19 +2176,19 @@
|
|
|
2094
2176
|
}
|
|
2095
2177
|
function get_isCompleted(_this__u8e3s4) {
|
|
2096
2178
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2097
|
-
return _this__u8e3s4.
|
|
2179
|
+
return _this__u8e3s4.as().kp();
|
|
2098
2180
|
}
|
|
2099
2181
|
function close_0(_this__u8e3s4, cause) {
|
|
2100
2182
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2101
2183
|
if (cause == null) {
|
|
2102
2184
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2103
2185
|
} else {
|
|
2104
|
-
_this__u8e3s4.
|
|
2186
|
+
_this__u8e3s4.f1n(cause);
|
|
2105
2187
|
}
|
|
2106
2188
|
}
|
|
2107
2189
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2108
2190
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2109
|
-
var tmp = _this__u8e3s4.
|
|
2191
|
+
var tmp = _this__u8e3s4.as();
|
|
2110
2192
|
tmp.rp(invokeOnCompletion$lambda(block));
|
|
2111
2193
|
}
|
|
2112
2194
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
@@ -2123,14 +2205,14 @@
|
|
|
2123
2205
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2124
2206
|
}
|
|
2125
2207
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2126
|
-
_this__u8e3s4.
|
|
2208
|
+
_this__u8e3s4.x1m().h1j(value);
|
|
2127
2209
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2128
2210
|
}
|
|
2129
2211
|
function NO_CALLBACK$1() {
|
|
2130
|
-
this.
|
|
2212
|
+
this.u1v_1 = EmptyCoroutineContext_getInstance();
|
|
2131
2213
|
}
|
|
2132
2214
|
protoOf(NO_CALLBACK$1).m9 = function () {
|
|
2133
|
-
return this.
|
|
2215
|
+
return this.u1v_1;
|
|
2134
2216
|
};
|
|
2135
2217
|
protoOf(NO_CALLBACK$1).n9 = function (result) {
|
|
2136
2218
|
return Unit_instance;
|
|
@@ -2139,18 +2221,18 @@
|
|
|
2139
2221
|
return this.n9(result);
|
|
2140
2222
|
};
|
|
2141
2223
|
function ByteWriteChannel$flushAndClose$ref($boundThis) {
|
|
2142
|
-
this.
|
|
2224
|
+
this.v1v_1 = $boundThis;
|
|
2143
2225
|
}
|
|
2144
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2145
|
-
return this.
|
|
2226
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).w1v = function ($completion) {
|
|
2227
|
+
return this.v1v_1.e1n($completion);
|
|
2146
2228
|
};
|
|
2147
2229
|
protoOf(ByteWriteChannel$flushAndClose$ref).hb = function ($completion) {
|
|
2148
|
-
return this.
|
|
2230
|
+
return this.w1v($completion);
|
|
2149
2231
|
};
|
|
2150
2232
|
function ByteWriteChannel$flushAndClose$ref_0($boundThis) {
|
|
2151
2233
|
var i = new ByteWriteChannel$flushAndClose$ref($boundThis);
|
|
2152
2234
|
var l = function ($completion) {
|
|
2153
|
-
return i.
|
|
2235
|
+
return i.w1v($completion);
|
|
2154
2236
|
};
|
|
2155
2237
|
l.callableName = 'flushAndClose';
|
|
2156
2238
|
l.$arity = 0;
|
|
@@ -2163,18 +2245,18 @@
|
|
|
2163
2245
|
};
|
|
2164
2246
|
}
|
|
2165
2247
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2248
|
+
this.f1w_1 = $block;
|
|
2249
|
+
this.g1w_1 = $channel;
|
|
2168
2250
|
CoroutineImpl.call(this, resultContinuation);
|
|
2169
2251
|
}
|
|
2170
|
-
protoOf(writer$slambda).
|
|
2171
|
-
var tmp = this.
|
|
2252
|
+
protoOf(writer$slambda).a1x = function ($this$launch, $completion) {
|
|
2253
|
+
var tmp = this.b1x($this$launch, $completion);
|
|
2172
2254
|
tmp.i9_1 = Unit_instance;
|
|
2173
2255
|
tmp.j9_1 = null;
|
|
2174
2256
|
return tmp.o9();
|
|
2175
2257
|
};
|
|
2176
2258
|
protoOf(writer$slambda).ca = function (p1, $completion) {
|
|
2177
|
-
return this.
|
|
2259
|
+
return this.a1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2178
2260
|
};
|
|
2179
2261
|
protoOf(writer$slambda).o9 = function () {
|
|
2180
2262
|
var suspendResult = this.i9_1;
|
|
@@ -2184,29 +2266,29 @@
|
|
|
2184
2266
|
switch (tmp) {
|
|
2185
2267
|
case 0:
|
|
2186
2268
|
this.h9_1 = 14;
|
|
2187
|
-
this.
|
|
2269
|
+
this.i1w_1 = Job(get_job(this.h1w_1.po()));
|
|
2188
2270
|
this.g9_1 = 1;
|
|
2189
2271
|
continue $sm;
|
|
2190
2272
|
case 1:
|
|
2191
2273
|
this.h9_1 = 4;
|
|
2192
2274
|
this.h9_1 = 3;
|
|
2193
2275
|
this.g9_1 = 2;
|
|
2194
|
-
suspendResult = this.
|
|
2276
|
+
suspendResult = this.f1w_1(new WriterScope(this.g1w_1, this.h1w_1.po().rh(this.i1w_1)), this);
|
|
2195
2277
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2196
2278
|
return suspendResult;
|
|
2197
2279
|
}
|
|
2198
2280
|
|
|
2199
2281
|
continue $sm;
|
|
2200
2282
|
case 2:
|
|
2201
|
-
this.
|
|
2283
|
+
this.i1w_1.yw();
|
|
2202
2284
|
var tmp_0 = this;
|
|
2203
2285
|
var tmp_1;
|
|
2204
|
-
if (get_job(this.
|
|
2205
|
-
this.
|
|
2286
|
+
if (get_job(this.h1w_1.po()).lp()) {
|
|
2287
|
+
this.g1w_1.f1n(get_job(this.h1w_1.po()).op());
|
|
2206
2288
|
tmp_1 = Unit_instance;
|
|
2207
2289
|
}
|
|
2208
2290
|
|
|
2209
|
-
tmp_0.
|
|
2291
|
+
tmp_0.j1w_1 = tmp_1;
|
|
2210
2292
|
this.h9_1 = 14;
|
|
2211
2293
|
this.g9_1 = 9;
|
|
2212
2294
|
continue $sm;
|
|
@@ -2214,11 +2296,11 @@
|
|
|
2214
2296
|
this.h9_1 = 4;
|
|
2215
2297
|
var tmp_2 = this.j9_1;
|
|
2216
2298
|
if (tmp_2 instanceof Error) {
|
|
2217
|
-
this.
|
|
2299
|
+
this.k1w_1 = this.j9_1;
|
|
2218
2300
|
var tmp_3 = this;
|
|
2219
|
-
cancel(this.
|
|
2220
|
-
this.
|
|
2221
|
-
tmp_3.
|
|
2301
|
+
cancel(this.i1w_1, 'Exception thrown while writing to channel', this.k1w_1);
|
|
2302
|
+
this.g1w_1.f1n(this.k1w_1);
|
|
2303
|
+
tmp_3.j1w_1 = Unit_instance;
|
|
2222
2304
|
this.h9_1 = 14;
|
|
2223
2305
|
this.g9_1 = 9;
|
|
2224
2306
|
continue $sm;
|
|
@@ -2228,9 +2310,9 @@
|
|
|
2228
2310
|
|
|
2229
2311
|
case 4:
|
|
2230
2312
|
this.h9_1 = 14;
|
|
2231
|
-
this.
|
|
2313
|
+
this.l1w_1 = this.j9_1;
|
|
2232
2314
|
this.g9_1 = 5;
|
|
2233
|
-
suspendResult = this.
|
|
2315
|
+
suspendResult = this.i1w_1.zw(this);
|
|
2234
2316
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2235
2317
|
return suspendResult;
|
|
2236
2318
|
}
|
|
@@ -2238,27 +2320,27 @@
|
|
|
2238
2320
|
continue $sm;
|
|
2239
2321
|
case 5:
|
|
2240
2322
|
var tmp_4 = this;
|
|
2241
|
-
tmp_4.
|
|
2242
|
-
this.
|
|
2323
|
+
tmp_4.m1w_1 = this.h1w_1;
|
|
2324
|
+
this.n1w_1 = this.m1w_1;
|
|
2243
2325
|
this.h9_1 = 7;
|
|
2244
2326
|
var tmp_5 = this;
|
|
2245
|
-
tmp_5.
|
|
2327
|
+
tmp_5.p1w_1 = Companion_instance;
|
|
2246
2328
|
var tmp_6 = this;
|
|
2247
|
-
tmp_6.
|
|
2248
|
-
this.
|
|
2329
|
+
tmp_6.q1w_1 = this.n1w_1;
|
|
2330
|
+
this.r1w_1 = this.q1w_1;
|
|
2249
2331
|
this.g9_1 = 6;
|
|
2250
|
-
suspendResult = this.
|
|
2332
|
+
suspendResult = this.g1w_1.e1n(this);
|
|
2251
2333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2252
2334
|
return suspendResult;
|
|
2253
2335
|
}
|
|
2254
2336
|
|
|
2255
2337
|
continue $sm;
|
|
2256
2338
|
case 6:
|
|
2257
|
-
this.
|
|
2339
|
+
this.s1w_1 = Unit_instance;
|
|
2258
2340
|
var tmp_7 = this;
|
|
2259
|
-
this.
|
|
2260
|
-
var value = this.
|
|
2261
|
-
tmp_7.
|
|
2341
|
+
this.p1w_1;
|
|
2342
|
+
var value = this.s1w_1;
|
|
2343
|
+
tmp_7.o1w_1 = _Result___init__impl__xyqfz8(value);
|
|
2262
2344
|
this.h9_1 = 14;
|
|
2263
2345
|
this.g9_1 = 8;
|
|
2264
2346
|
continue $sm;
|
|
@@ -2266,10 +2348,10 @@
|
|
|
2266
2348
|
this.h9_1 = 14;
|
|
2267
2349
|
var tmp_8 = this.j9_1;
|
|
2268
2350
|
if (tmp_8 instanceof Error) {
|
|
2269
|
-
this.
|
|
2351
|
+
this.t1w_1 = this.j9_1;
|
|
2270
2352
|
var tmp_9 = this;
|
|
2271
|
-
var exception = this.
|
|
2272
|
-
tmp_9.
|
|
2353
|
+
var exception = this.t1w_1;
|
|
2354
|
+
tmp_9.o1w_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
2273
2355
|
this.g9_1 = 8;
|
|
2274
2356
|
continue $sm;
|
|
2275
2357
|
} else {
|
|
@@ -2278,11 +2360,11 @@
|
|
|
2278
2360
|
|
|
2279
2361
|
case 8:
|
|
2280
2362
|
this.h9_1 = 14;
|
|
2281
|
-
throw this.
|
|
2363
|
+
throw this.l1w_1;
|
|
2282
2364
|
case 9:
|
|
2283
2365
|
this.h9_1 = 14;
|
|
2284
2366
|
this.g9_1 = 10;
|
|
2285
|
-
suspendResult = this.
|
|
2367
|
+
suspendResult = this.i1w_1.zw(this);
|
|
2286
2368
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2287
2369
|
return suspendResult;
|
|
2288
2370
|
}
|
|
@@ -2290,16 +2372,16 @@
|
|
|
2290
2372
|
continue $sm;
|
|
2291
2373
|
case 10:
|
|
2292
2374
|
var tmp_10 = this;
|
|
2293
|
-
tmp_10.
|
|
2294
|
-
this.
|
|
2375
|
+
tmp_10.u1w_1 = this.h1w_1;
|
|
2376
|
+
this.v1w_1 = this.u1w_1;
|
|
2295
2377
|
this.h9_1 = 12;
|
|
2296
2378
|
var tmp_11 = this;
|
|
2297
|
-
tmp_11.
|
|
2379
|
+
tmp_11.x1w_1 = Companion_instance;
|
|
2298
2380
|
var tmp_12 = this;
|
|
2299
|
-
tmp_12.
|
|
2300
|
-
this.
|
|
2381
|
+
tmp_12.y1w_1 = this.v1w_1;
|
|
2382
|
+
this.z1w_1 = this.y1w_1;
|
|
2301
2383
|
this.g9_1 = 11;
|
|
2302
|
-
suspendResult = this.
|
|
2384
|
+
suspendResult = this.g1w_1.e1n(this);
|
|
2303
2385
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2304
2386
|
return suspendResult;
|
|
2305
2387
|
}
|
|
@@ -2307,8 +2389,8 @@
|
|
|
2307
2389
|
continue $sm;
|
|
2308
2390
|
case 11:
|
|
2309
2391
|
var tmp_13 = this;
|
|
2310
|
-
this.
|
|
2311
|
-
tmp_13.
|
|
2392
|
+
this.x1w_1;
|
|
2393
|
+
tmp_13.w1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2312
2394
|
this.h9_1 = 14;
|
|
2313
2395
|
this.g9_1 = 13;
|
|
2314
2396
|
continue $sm;
|
|
@@ -2318,7 +2400,7 @@
|
|
|
2318
2400
|
if (tmp_14 instanceof Error) {
|
|
2319
2401
|
var e = this.j9_1;
|
|
2320
2402
|
var tmp_15 = this;
|
|
2321
|
-
tmp_15.
|
|
2403
|
+
tmp_15.w1w_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2322
2404
|
this.g9_1 = 13;
|
|
2323
2405
|
continue $sm;
|
|
2324
2406
|
} else {
|
|
@@ -2342,15 +2424,15 @@
|
|
|
2342
2424
|
}
|
|
2343
2425
|
while (true);
|
|
2344
2426
|
};
|
|
2345
|
-
protoOf(writer$slambda).
|
|
2346
|
-
var i = new writer$slambda(this.
|
|
2347
|
-
i.
|
|
2427
|
+
protoOf(writer$slambda).b1x = function ($this$launch, completion) {
|
|
2428
|
+
var i = new writer$slambda(this.f1w_1, this.g1w_1, completion);
|
|
2429
|
+
i.h1w_1 = $this$launch;
|
|
2348
2430
|
return i;
|
|
2349
2431
|
};
|
|
2350
2432
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2351
2433
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2352
2434
|
var l = function ($this$launch, $completion) {
|
|
2353
|
-
return i.
|
|
2435
|
+
return i.a1x($this$launch, $completion);
|
|
2354
2436
|
};
|
|
2355
2437
|
l.$arity = 1;
|
|
2356
2438
|
return l;
|
|
@@ -2358,8 +2440,8 @@
|
|
|
2358
2440
|
function writer$lambda($channel) {
|
|
2359
2441
|
return function (it) {
|
|
2360
2442
|
var tmp;
|
|
2361
|
-
if (!(it == null) && !$channel.
|
|
2362
|
-
$channel.
|
|
2443
|
+
if (!(it == null) && !$channel.y1m()) {
|
|
2444
|
+
$channel.f1n(it);
|
|
2363
2445
|
tmp = Unit_instance;
|
|
2364
2446
|
}
|
|
2365
2447
|
return Unit_instance;
|
|
@@ -2367,8 +2449,8 @@
|
|
|
2367
2449
|
}
|
|
2368
2450
|
function $writePacketCOROUTINE$21(_this__u8e3s4, source, resultContinuation) {
|
|
2369
2451
|
CoroutineImpl.call(this, resultContinuation);
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2452
|
+
this.s1v_1 = _this__u8e3s4;
|
|
2453
|
+
this.t1v_1 = source;
|
|
2372
2454
|
}
|
|
2373
2455
|
protoOf($writePacketCOROUTINE$21).o9 = function () {
|
|
2374
2456
|
var suspendResult = this.i9_1;
|
|
@@ -2381,14 +2463,14 @@
|
|
|
2381
2463
|
this.g9_1 = 1;
|
|
2382
2464
|
continue $sm;
|
|
2383
2465
|
case 1:
|
|
2384
|
-
if (!!this.
|
|
2466
|
+
if (!!this.t1v_1.o1h()) {
|
|
2385
2467
|
this.g9_1 = 3;
|
|
2386
2468
|
continue $sm;
|
|
2387
2469
|
}
|
|
2388
2470
|
|
|
2389
|
-
this.
|
|
2471
|
+
this.s1v_1.x1m().b1j(this.t1v_1, get_remaining(this.t1v_1));
|
|
2390
2472
|
this.g9_1 = 2;
|
|
2391
|
-
suspendResult = flushIfNeeded(this.
|
|
2473
|
+
suspendResult = flushIfNeeded(this.s1v_1, this);
|
|
2392
2474
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2393
2475
|
return suspendResult;
|
|
2394
2476
|
}
|
|
@@ -2433,27 +2515,27 @@
|
|
|
2433
2515
|
return l;
|
|
2434
2516
|
}
|
|
2435
2517
|
function CloseToken(origin) {
|
|
2436
|
-
this.
|
|
2518
|
+
this.v1m_1 = origin;
|
|
2437
2519
|
}
|
|
2438
|
-
protoOf(CloseToken).
|
|
2439
|
-
var tmp0_subject = this.
|
|
2520
|
+
protoOf(CloseToken).c1x = function (wrap) {
|
|
2521
|
+
var tmp0_subject = this.v1m_1;
|
|
2440
2522
|
var tmp;
|
|
2441
2523
|
if (tmp0_subject == null) {
|
|
2442
2524
|
tmp = null;
|
|
2443
2525
|
} else {
|
|
2444
2526
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, CopyableThrowable) : false) {
|
|
2445
|
-
tmp = this.
|
|
2527
|
+
tmp = this.v1m_1.ix();
|
|
2446
2528
|
} else {
|
|
2447
2529
|
if (tmp0_subject instanceof CancellationException) {
|
|
2448
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2530
|
+
tmp = CancellationException_init_$Create$(this.v1m_1.message, this.v1m_1);
|
|
2449
2531
|
} else {
|
|
2450
|
-
tmp = wrap(this.
|
|
2532
|
+
tmp = wrap(this.v1m_1);
|
|
2451
2533
|
}
|
|
2452
2534
|
}
|
|
2453
2535
|
}
|
|
2454
2536
|
return tmp;
|
|
2455
2537
|
};
|
|
2456
|
-
protoOf(CloseToken).
|
|
2538
|
+
protoOf(CloseToken).a1n = function (wrap, $super) {
|
|
2457
2539
|
var tmp;
|
|
2458
2540
|
if (wrap === VOID) {
|
|
2459
2541
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2461,10 +2543,10 @@
|
|
|
2461
2543
|
tmp = wrap;
|
|
2462
2544
|
}
|
|
2463
2545
|
wrap = tmp;
|
|
2464
|
-
return $super === VOID ? this.
|
|
2546
|
+
return $super === VOID ? this.c1x(wrap) : $super.c1x.call(this, wrap);
|
|
2465
2547
|
};
|
|
2466
|
-
protoOf(CloseToken).
|
|
2467
|
-
var tmp0_safe_receiver = this.
|
|
2548
|
+
protoOf(CloseToken).w1m = function (wrap) {
|
|
2549
|
+
var tmp0_safe_receiver = this.c1x(wrap);
|
|
2468
2550
|
var tmp;
|
|
2469
2551
|
if (tmp0_safe_receiver == null) {
|
|
2470
2552
|
tmp = null;
|
|
@@ -2481,14 +2563,19 @@
|
|
|
2481
2563
|
CLOSED = new CloseToken(null);
|
|
2482
2564
|
}
|
|
2483
2565
|
}
|
|
2566
|
+
function transferFromDelegate($this) {
|
|
2567
|
+
updateConsumed($this);
|
|
2568
|
+
var appended = $this.e1x_1.g1j($this.d1x_1.u1m());
|
|
2569
|
+
$this.f1x_1 = $this.f1x_1.z2(appended);
|
|
2570
|
+
}
|
|
2484
2571
|
function updateConsumed($this) {
|
|
2485
|
-
$this.
|
|
2486
|
-
$this.
|
|
2572
|
+
$this.g1x_1 = $this.g1x_1.z2($this.f1x_1.a3($this.e1x_1.s()));
|
|
2573
|
+
$this.f1x_1 = $this.e1x_1.s();
|
|
2487
2574
|
}
|
|
2488
2575
|
function $awaitContentCOROUTINE$22(_this__u8e3s4, min, resultContinuation) {
|
|
2489
2576
|
CoroutineImpl.call(this, resultContinuation);
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2577
|
+
this.p1x_1 = _this__u8e3s4;
|
|
2578
|
+
this.q1x_1 = min;
|
|
2492
2579
|
}
|
|
2493
2580
|
protoOf($awaitContentCOROUTINE$22).o9 = function () {
|
|
2494
2581
|
var suspendResult = this.i9_1;
|
|
@@ -2498,25 +2585,28 @@
|
|
|
2498
2585
|
switch (tmp) {
|
|
2499
2586
|
case 0:
|
|
2500
2587
|
this.h9_1 = 3;
|
|
2501
|
-
if (this.
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2588
|
+
if (this.p1x_1.u1m().s().e1(toLong(this.q1x_1)) >= 0) {
|
|
2589
|
+
return true;
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
this.g9_1 = 1;
|
|
2593
|
+
suspendResult = this.p1x_1.d1x_1.c1n(this.q1x_1, this);
|
|
2594
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2595
|
+
return suspendResult;
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
continue $sm;
|
|
2599
|
+
case 1:
|
|
2600
|
+
if (suspendResult) {
|
|
2601
|
+
transferFromDelegate(this.p1x_1);
|
|
2602
|
+
return true;
|
|
2505
2603
|
} else {
|
|
2506
|
-
this.g9_1 =
|
|
2507
|
-
suspendResult = this.j1x_1.x1w_1.b1n(this.k1x_1, this);
|
|
2508
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2509
|
-
return suspendResult;
|
|
2510
|
-
}
|
|
2604
|
+
this.g9_1 = 2;
|
|
2511
2605
|
continue $sm;
|
|
2512
2606
|
}
|
|
2513
2607
|
|
|
2514
|
-
case 1:
|
|
2515
|
-
this.l1x_1 = suspendResult;
|
|
2516
|
-
this.g9_1 = 2;
|
|
2517
|
-
continue $sm;
|
|
2518
2608
|
case 2:
|
|
2519
|
-
return
|
|
2609
|
+
return false;
|
|
2520
2610
|
case 3:
|
|
2521
2611
|
throw this.j9_1;
|
|
2522
2612
|
}
|
|
@@ -2532,36 +2622,34 @@
|
|
|
2532
2622
|
while (true);
|
|
2533
2623
|
};
|
|
2534
2624
|
function CountedByteReadChannel(delegate) {
|
|
2535
|
-
this.
|
|
2536
|
-
this.
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2625
|
+
this.d1x_1 = delegate;
|
|
2626
|
+
this.e1x_1 = new Buffer();
|
|
2627
|
+
this.f1x_1 = new Long(0, 0);
|
|
2628
|
+
this.g1x_1 = new Long(0, 0);
|
|
2539
2629
|
}
|
|
2540
|
-
protoOf(CountedByteReadChannel).
|
|
2630
|
+
protoOf(CountedByteReadChannel).r1x = function () {
|
|
2541
2631
|
updateConsumed(this);
|
|
2542
|
-
return this.
|
|
2632
|
+
return this.g1x_1;
|
|
2543
2633
|
};
|
|
2544
|
-
protoOf(CountedByteReadChannel).
|
|
2545
|
-
return this.
|
|
2634
|
+
protoOf(CountedByteReadChannel).z1m = function () {
|
|
2635
|
+
return this.d1x_1.z1m();
|
|
2546
2636
|
};
|
|
2547
|
-
protoOf(CountedByteReadChannel).
|
|
2548
|
-
return this.
|
|
2637
|
+
protoOf(CountedByteReadChannel).b1n = function () {
|
|
2638
|
+
return this.e1x_1.o1h() && this.d1x_1.b1n();
|
|
2549
2639
|
};
|
|
2550
|
-
protoOf(CountedByteReadChannel).
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
this.z1w_1 = this.z1w_1.z2(appended);
|
|
2554
|
-
return this.y1w_1;
|
|
2640
|
+
protoOf(CountedByteReadChannel).u1m = function () {
|
|
2641
|
+
transferFromDelegate(this);
|
|
2642
|
+
return this.e1x_1;
|
|
2555
2643
|
};
|
|
2556
|
-
protoOf(CountedByteReadChannel).
|
|
2644
|
+
protoOf(CountedByteReadChannel).c1n = function (min, $completion) {
|
|
2557
2645
|
var tmp = new $awaitContentCOROUTINE$22(this, min, $completion);
|
|
2558
2646
|
tmp.i9_1 = Unit_instance;
|
|
2559
2647
|
tmp.j9_1 = null;
|
|
2560
2648
|
return tmp.o9();
|
|
2561
2649
|
};
|
|
2562
|
-
protoOf(CountedByteReadChannel).
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2650
|
+
protoOf(CountedByteReadChannel).f1n = function (cause) {
|
|
2651
|
+
this.d1x_1.f1n(cause);
|
|
2652
|
+
this.e1x_1.p4();
|
|
2565
2653
|
};
|
|
2566
2654
|
function counted(_this__u8e3s4) {
|
|
2567
2655
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2598,21 +2686,21 @@
|
|
|
2598
2686
|
}
|
|
2599
2687
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2600
2688
|
var tmp;
|
|
2601
|
-
if ($this === Companion_getInstance_1().
|
|
2689
|
+
if ($this === Companion_getInstance_1().r1s_1) {
|
|
2602
2690
|
tmp = 'CR';
|
|
2603
|
-
} else if ($this === Companion_getInstance_1().
|
|
2691
|
+
} else if ($this === Companion_getInstance_1().s1s_1) {
|
|
2604
2692
|
tmp = 'LF';
|
|
2605
|
-
} else if ($this === Companion_getInstance_1().
|
|
2693
|
+
} else if ($this === Companion_getInstance_1().t1s_1) {
|
|
2606
2694
|
tmp = 'CRLF';
|
|
2607
2695
|
} else {
|
|
2608
2696
|
// Inline function 'kotlin.collections.filter' call
|
|
2609
|
-
var tmp0 = Companion_getInstance_1().
|
|
2697
|
+
var tmp0 = Companion_getInstance_1().v1s_1;
|
|
2610
2698
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2611
2699
|
var destination = ArrayList_init_$Create$();
|
|
2612
2700
|
var _iterator__ex2g4s = tmp0.p();
|
|
2613
2701
|
while (_iterator__ex2g4s.q()) {
|
|
2614
2702
|
var element = _iterator__ex2g4s.r();
|
|
2615
|
-
var it = element.
|
|
2703
|
+
var it = element.s1x_1;
|
|
2616
2704
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2617
2705
|
destination.k(element);
|
|
2618
2706
|
}
|
|
@@ -2623,11 +2711,11 @@
|
|
|
2623
2711
|
}
|
|
2624
2712
|
function Companion_1() {
|
|
2625
2713
|
Companion_instance_2 = this;
|
|
2626
|
-
this.
|
|
2627
|
-
this.
|
|
2628
|
-
this.
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2714
|
+
this.r1s_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2715
|
+
this.s1s_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2716
|
+
this.t1s_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2717
|
+
this.u1s_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2718
|
+
this.v1s_1 = listOf([new LineEndingMode(this.r1s_1), new LineEndingMode(this.s1s_1), new LineEndingMode(this.t1s_1)]);
|
|
2631
2719
|
}
|
|
2632
2720
|
var Companion_instance_2;
|
|
2633
2721
|
function Companion_getInstance_1() {
|
|
@@ -2641,67 +2729,67 @@
|
|
|
2641
2729
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2642
2730
|
if (!(other instanceof LineEndingMode))
|
|
2643
2731
|
return false;
|
|
2644
|
-
if (!($this === (other instanceof LineEndingMode ? other.
|
|
2732
|
+
if (!($this === (other instanceof LineEndingMode ? other.s1x_1 : THROW_CCE())))
|
|
2645
2733
|
return false;
|
|
2646
2734
|
return true;
|
|
2647
2735
|
}
|
|
2648
2736
|
function LineEndingMode(mode) {
|
|
2649
2737
|
Companion_getInstance_1();
|
|
2650
|
-
this.
|
|
2738
|
+
this.s1x_1 = mode;
|
|
2651
2739
|
}
|
|
2652
2740
|
protoOf(LineEndingMode).toString = function () {
|
|
2653
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2741
|
+
return LineEndingMode__toString_impl_j4h76r(this.s1x_1);
|
|
2654
2742
|
};
|
|
2655
2743
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2656
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2744
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.s1x_1);
|
|
2657
2745
|
};
|
|
2658
2746
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2659
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2747
|
+
return LineEndingMode__equals_impl_qyr4nk(this.s1x_1, other);
|
|
2660
2748
|
};
|
|
2661
2749
|
function SourceByteReadChannel(source) {
|
|
2662
|
-
this.
|
|
2663
|
-
this.
|
|
2750
|
+
this.t1x_1 = source;
|
|
2751
|
+
this.u1x_1 = null;
|
|
2664
2752
|
}
|
|
2665
|
-
protoOf(SourceByteReadChannel).
|
|
2666
|
-
var tmp0_safe_receiver = this.
|
|
2667
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2753
|
+
protoOf(SourceByteReadChannel).z1m = function () {
|
|
2754
|
+
var tmp0_safe_receiver = this.u1x_1;
|
|
2755
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1n();
|
|
2668
2756
|
};
|
|
2669
|
-
protoOf(SourceByteReadChannel).
|
|
2670
|
-
return this.
|
|
2757
|
+
protoOf(SourceByteReadChannel).b1n = function () {
|
|
2758
|
+
return this.t1x_1.o1h();
|
|
2671
2759
|
};
|
|
2672
|
-
protoOf(SourceByteReadChannel).
|
|
2673
|
-
var tmp0_safe_receiver = this.
|
|
2760
|
+
protoOf(SourceByteReadChannel).u1m = function () {
|
|
2761
|
+
var tmp0_safe_receiver = this.z1m();
|
|
2674
2762
|
if (tmp0_safe_receiver == null)
|
|
2675
2763
|
null;
|
|
2676
2764
|
else {
|
|
2677
2765
|
// Inline function 'kotlin.let' call
|
|
2678
2766
|
throw tmp0_safe_receiver;
|
|
2679
2767
|
}
|
|
2680
|
-
return this.
|
|
2768
|
+
return this.t1x_1.n1h();
|
|
2681
2769
|
};
|
|
2682
|
-
protoOf(SourceByteReadChannel).
|
|
2683
|
-
var tmp0_safe_receiver = this.
|
|
2770
|
+
protoOf(SourceByteReadChannel).c1n = function (min, $completion) {
|
|
2771
|
+
var tmp0_safe_receiver = this.z1m();
|
|
2684
2772
|
if (tmp0_safe_receiver == null)
|
|
2685
2773
|
null;
|
|
2686
2774
|
else {
|
|
2687
2775
|
// Inline function 'kotlin.let' call
|
|
2688
2776
|
throw tmp0_safe_receiver;
|
|
2689
2777
|
}
|
|
2690
|
-
return this.
|
|
2778
|
+
return this.t1x_1.q1h(toLong(min));
|
|
2691
2779
|
};
|
|
2692
|
-
protoOf(SourceByteReadChannel).
|
|
2693
|
-
if (!(this.
|
|
2780
|
+
protoOf(SourceByteReadChannel).f1n = function (cause) {
|
|
2781
|
+
if (!(this.u1x_1 == null))
|
|
2694
2782
|
return Unit_instance;
|
|
2695
|
-
this.
|
|
2783
|
+
this.t1x_1.p4();
|
|
2696
2784
|
var tmp = this;
|
|
2697
2785
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2698
|
-
tmp.
|
|
2786
|
+
tmp.u1x_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2699
2787
|
};
|
|
2700
2788
|
function decode(_this__u8e3s4, input, max) {
|
|
2701
2789
|
max = max === VOID ? 2147483647 : max;
|
|
2702
2790
|
var tmp0 = toLong(max);
|
|
2703
2791
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2704
|
-
var b = input.
|
|
2792
|
+
var b = input.n1h().s();
|
|
2705
2793
|
// Inline function 'kotlin.text.buildString' call
|
|
2706
2794
|
var capacity = (tmp0.e1(b) <= 0 ? tmp0 : b).j1();
|
|
2707
2795
|
// Inline function 'kotlin.apply' call
|
|
@@ -2737,7 +2825,7 @@
|
|
|
2737
2825
|
return builder;
|
|
2738
2826
|
}
|
|
2739
2827
|
function canRead(_this__u8e3s4) {
|
|
2740
|
-
return !_this__u8e3s4.
|
|
2828
|
+
return !_this__u8e3s4.o1h();
|
|
2741
2829
|
}
|
|
2742
2830
|
function readBytes(_this__u8e3s4, count) {
|
|
2743
2831
|
count = count === VOID ? _this__u8e3s4.s().j1() : count;
|
|
@@ -2747,37 +2835,37 @@
|
|
|
2747
2835
|
return new Buffer();
|
|
2748
2836
|
}
|
|
2749
2837
|
function writePacket_0(_this__u8e3s4, packet) {
|
|
2750
|
-
_this__u8e3s4.
|
|
2838
|
+
_this__u8e3s4.g1j(packet);
|
|
2751
2839
|
}
|
|
2752
2840
|
function build(_this__u8e3s4) {
|
|
2753
|
-
return _this__u8e3s4.
|
|
2841
|
+
return _this__u8e3s4.n1h();
|
|
2754
2842
|
}
|
|
2755
2843
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2756
2844
|
offset = offset === VOID ? 0 : offset;
|
|
2757
2845
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2758
|
-
_this__u8e3s4.
|
|
2846
|
+
_this__u8e3s4.x1i(buffer, offset, offset + length | 0);
|
|
2759
2847
|
}
|
|
2760
2848
|
function get_size(_this__u8e3s4) {
|
|
2761
|
-
return _this__u8e3s4.
|
|
2849
|
+
return _this__u8e3s4.n1h().s().j1();
|
|
2762
2850
|
}
|
|
2763
2851
|
var ByteReadPacketEmpty;
|
|
2764
2852
|
function get_remaining(_this__u8e3s4) {
|
|
2765
2853
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2766
|
-
return _this__u8e3s4.
|
|
2854
|
+
return _this__u8e3s4.n1h().s();
|
|
2767
2855
|
}
|
|
2768
2856
|
function discard_0(_this__u8e3s4, count) {
|
|
2769
2857
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2770
2858
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2771
|
-
_this__u8e3s4.
|
|
2859
|
+
_this__u8e3s4.q1h(count);
|
|
2772
2860
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2773
2861
|
var b = get_remaining(_this__u8e3s4);
|
|
2774
2862
|
var countToDiscard = count.e1(b) <= 0 ? count : b;
|
|
2775
|
-
_this__u8e3s4.
|
|
2863
|
+
_this__u8e3s4.n1h().l1i(countToDiscard);
|
|
2776
2864
|
return countToDiscard;
|
|
2777
2865
|
}
|
|
2778
2866
|
function takeWhile(_this__u8e3s4, block) {
|
|
2779
2867
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2780
|
-
while (!_this__u8e3s4.
|
|
2868
|
+
while (!_this__u8e3s4.o1h() && block(_this__u8e3s4.n1h())) {
|
|
2781
2869
|
}
|
|
2782
2870
|
}
|
|
2783
2871
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2790,37 +2878,37 @@
|
|
|
2790
2878
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2791
2879
|
offset = offset === VOID ? 0 : offset;
|
|
2792
2880
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2793
|
-
var result = _this__u8e3s4.
|
|
2881
|
+
var result = _this__u8e3s4.m1i(buffer, offset, offset + length | 0);
|
|
2794
2882
|
return result === -1 ? 0 : result;
|
|
2795
2883
|
}
|
|
2796
2884
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2797
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2798
|
-
if (charset.equals(Charsets_getInstance().
|
|
2885
|
+
charset = charset === VOID ? Charsets_getInstance().v1x_1 : charset;
|
|
2886
|
+
if (charset.equals(Charsets_getInstance().v1x_1))
|
|
2799
2887
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2800
|
-
return encodeToByteArray_0(charset.
|
|
2888
|
+
return encodeToByteArray_0(charset.y1x(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2801
2889
|
}
|
|
2802
2890
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2803
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2891
|
+
charset = charset === VOID ? Charsets_getInstance().v1x_1 : charset;
|
|
2804
2892
|
max = max === VOID ? 2147483647 : max;
|
|
2805
|
-
if (charset.equals(Charsets_getInstance().
|
|
2893
|
+
if (charset.equals(Charsets_getInstance().v1x_1)) {
|
|
2806
2894
|
if (max === 2147483647)
|
|
2807
2895
|
return readString_0(_this__u8e3s4);
|
|
2808
|
-
var tmp0 = _this__u8e3s4.
|
|
2896
|
+
var tmp0 = _this__u8e3s4.n1h().s();
|
|
2809
2897
|
// Inline function 'kotlin.math.min' call
|
|
2810
2898
|
var b = toLong(max);
|
|
2811
2899
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
2812
2900
|
return readString_1(_this__u8e3s4, count);
|
|
2813
2901
|
}
|
|
2814
|
-
return decode(charset.
|
|
2902
|
+
return decode(charset.z1x(), _this__u8e3s4, max);
|
|
2815
2903
|
}
|
|
2816
2904
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2817
2905
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2818
2906
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2819
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2820
|
-
if (charset === Charsets_getInstance().
|
|
2907
|
+
charset = charset === VOID ? Charsets_getInstance().v1x_1 : charset;
|
|
2908
|
+
if (charset === Charsets_getInstance().v1x_1) {
|
|
2821
2909
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2822
2910
|
}
|
|
2823
|
-
encodeToImpl(charset.
|
|
2911
|
+
encodeToImpl(charset.y1x(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2824
2912
|
}
|
|
2825
2913
|
function get_ByteArrayPool() {
|
|
2826
2914
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2830,7 +2918,7 @@
|
|
|
2830
2918
|
function ByteArrayPool$1() {
|
|
2831
2919
|
DefaultPool.call(this, 128);
|
|
2832
2920
|
}
|
|
2833
|
-
protoOf(ByteArrayPool$1).
|
|
2921
|
+
protoOf(ByteArrayPool$1).d1y = function () {
|
|
2834
2922
|
return new Int8Array(4096);
|
|
2835
2923
|
};
|
|
2836
2924
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2844,21 +2932,21 @@
|
|
|
2844
2932
|
}
|
|
2845
2933
|
function NoPoolImpl() {
|
|
2846
2934
|
}
|
|
2847
|
-
protoOf(NoPoolImpl).
|
|
2935
|
+
protoOf(NoPoolImpl).l1y = function (instance) {
|
|
2848
2936
|
return Unit_instance;
|
|
2849
2937
|
};
|
|
2850
|
-
protoOf(NoPoolImpl).
|
|
2938
|
+
protoOf(NoPoolImpl).mr = function () {
|
|
2851
2939
|
return Unit_instance;
|
|
2852
2940
|
};
|
|
2853
2941
|
function Companion_2() {
|
|
2854
2942
|
}
|
|
2855
|
-
protoOf(Companion_2).
|
|
2943
|
+
protoOf(Companion_2).m1y = function (name) {
|
|
2856
2944
|
switch (name) {
|
|
2857
2945
|
case 'UTF-8':
|
|
2858
2946
|
case 'utf-8':
|
|
2859
2947
|
case 'UTF8':
|
|
2860
2948
|
case 'utf8':
|
|
2861
|
-
return Charsets_getInstance().
|
|
2949
|
+
return Charsets_getInstance().v1x_1;
|
|
2862
2950
|
}
|
|
2863
2951
|
var tmp;
|
|
2864
2952
|
var tmp_0;
|
|
@@ -2889,11 +2977,11 @@
|
|
|
2889
2977
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2890
2978
|
}
|
|
2891
2979
|
if (tmp) {
|
|
2892
|
-
return Charsets_getInstance().
|
|
2980
|
+
return Charsets_getInstance().w1x_1;
|
|
2893
2981
|
}
|
|
2894
2982
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2895
2983
|
};
|
|
2896
|
-
protoOf(Companion_2).
|
|
2984
|
+
protoOf(Companion_2).n1y = function (charset) {
|
|
2897
2985
|
var tmp;
|
|
2898
2986
|
switch (charset) {
|
|
2899
2987
|
case 'UTF-8':
|
|
@@ -2948,7 +3036,7 @@
|
|
|
2948
3036
|
return Companion_instance_3;
|
|
2949
3037
|
}
|
|
2950
3038
|
function Charset(_name) {
|
|
2951
|
-
this.
|
|
3039
|
+
this.x1x_1 = _name;
|
|
2952
3040
|
}
|
|
2953
3041
|
protoOf(Charset).equals = function (other) {
|
|
2954
3042
|
if (this === other)
|
|
@@ -2957,21 +3045,21 @@
|
|
|
2957
3045
|
return false;
|
|
2958
3046
|
if (!(other instanceof Charset))
|
|
2959
3047
|
THROW_CCE();
|
|
2960
|
-
return this.
|
|
3048
|
+
return this.x1x_1 === other.x1x_1;
|
|
2961
3049
|
};
|
|
2962
3050
|
protoOf(Charset).hashCode = function () {
|
|
2963
|
-
return getStringHashCode(this.
|
|
3051
|
+
return getStringHashCode(this.x1x_1);
|
|
2964
3052
|
};
|
|
2965
3053
|
protoOf(Charset).toString = function () {
|
|
2966
|
-
return this.
|
|
3054
|
+
return this.x1x_1;
|
|
2967
3055
|
};
|
|
2968
3056
|
function get_name(_this__u8e3s4) {
|
|
2969
|
-
return _this__u8e3s4.
|
|
3057
|
+
return _this__u8e3s4.x1x_1;
|
|
2970
3058
|
}
|
|
2971
3059
|
function Charsets() {
|
|
2972
3060
|
Charsets_instance = this;
|
|
2973
|
-
this.
|
|
2974
|
-
this.
|
|
3061
|
+
this.v1x_1 = new CharsetImpl('UTF-8');
|
|
3062
|
+
this.w1x_1 = new CharsetImpl('ISO-8859-1');
|
|
2975
3063
|
}
|
|
2976
3064
|
var Charsets_instance;
|
|
2977
3065
|
function Charsets_getInstance() {
|
|
@@ -2984,7 +3072,7 @@
|
|
|
2984
3072
|
captureStack(this, MalformedInputException);
|
|
2985
3073
|
}
|
|
2986
3074
|
function CharsetDecoder(_charset) {
|
|
2987
|
-
this.
|
|
3075
|
+
this.o1y_1 = _charset;
|
|
2988
3076
|
}
|
|
2989
3077
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
2990
3078
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -2992,15 +3080,15 @@
|
|
|
2992
3080
|
return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
|
|
2993
3081
|
}
|
|
2994
3082
|
function CharsetEncoder(_charset) {
|
|
2995
|
-
this.
|
|
3083
|
+
this.p1y_1 = _charset;
|
|
2996
3084
|
}
|
|
2997
3085
|
function CharsetImpl(name) {
|
|
2998
3086
|
Charset.call(this, name);
|
|
2999
3087
|
}
|
|
3000
|
-
protoOf(CharsetImpl).
|
|
3088
|
+
protoOf(CharsetImpl).y1x = function () {
|
|
3001
3089
|
return new CharsetEncoderImpl(this);
|
|
3002
3090
|
};
|
|
3003
|
-
protoOf(CharsetImpl).
|
|
3091
|
+
protoOf(CharsetImpl).z1x = function () {
|
|
3004
3092
|
return new CharsetDecoderImpl(this);
|
|
3005
3093
|
};
|
|
3006
3094
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3020,13 +3108,13 @@
|
|
|
3020
3108
|
}
|
|
3021
3109
|
function CharsetEncoderImpl(charset) {
|
|
3022
3110
|
CharsetEncoder.call(this, charset);
|
|
3023
|
-
this.
|
|
3111
|
+
this.s1y_1 = charset;
|
|
3024
3112
|
}
|
|
3025
3113
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3026
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3114
|
+
return 'CharsetEncoderImpl(charset=' + this.s1y_1.toString() + ')';
|
|
3027
3115
|
};
|
|
3028
3116
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3029
|
-
return this.
|
|
3117
|
+
return this.s1y_1.hashCode();
|
|
3030
3118
|
};
|
|
3031
3119
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3032
3120
|
if (this === other)
|
|
@@ -3034,19 +3122,19 @@
|
|
|
3034
3122
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3035
3123
|
return false;
|
|
3036
3124
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
3037
|
-
if (!this.
|
|
3125
|
+
if (!this.s1y_1.equals(tmp0_other_with_cast.s1y_1))
|
|
3038
3126
|
return false;
|
|
3039
3127
|
return true;
|
|
3040
3128
|
};
|
|
3041
3129
|
function CharsetDecoderImpl(charset) {
|
|
3042
3130
|
CharsetDecoder.call(this, charset);
|
|
3043
|
-
this.
|
|
3131
|
+
this.u1y_1 = charset;
|
|
3044
3132
|
}
|
|
3045
3133
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3046
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3134
|
+
return 'CharsetDecoderImpl(charset=' + this.u1y_1.toString() + ')';
|
|
3047
3135
|
};
|
|
3048
3136
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3049
|
-
return this.
|
|
3137
|
+
return this.u1y_1.hashCode();
|
|
3050
3138
|
};
|
|
3051
3139
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3052
3140
|
if (this === other)
|
|
@@ -3054,7 +3142,7 @@
|
|
|
3054
3142
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3055
3143
|
return false;
|
|
3056
3144
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
3057
|
-
if (!this.
|
|
3145
|
+
if (!this.u1y_1.equals(tmp0_other_with_cast.u1y_1))
|
|
3058
3146
|
return false;
|
|
3059
3147
|
return true;
|
|
3060
3148
|
};
|
|
@@ -3065,11 +3153,11 @@
|
|
|
3065
3153
|
var message = 'Failed requirement.';
|
|
3066
3154
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3067
3155
|
}
|
|
3068
|
-
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3156
|
+
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().w1x_1)) {
|
|
3069
3157
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3070
3158
|
}
|
|
3071
3159
|
// Inline function 'kotlin.require' call
|
|
3072
|
-
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().
|
|
3160
|
+
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().v1x_1)) {
|
|
3073
3161
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3074
3162
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3075
3163
|
}
|
|
@@ -3079,15 +3167,15 @@
|
|
|
3079
3167
|
var result = encoder.encode(tmp$ret$5);
|
|
3080
3168
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3081
3169
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3082
|
-
dst.
|
|
3170
|
+
dst.a1j(result);
|
|
3083
3171
|
return result.length;
|
|
3084
3172
|
}
|
|
3085
3173
|
function get_charset(_this__u8e3s4) {
|
|
3086
|
-
return _this__u8e3s4.
|
|
3174
|
+
return _this__u8e3s4.p1y_1;
|
|
3087
3175
|
}
|
|
3088
3176
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3089
3177
|
var decoder = Decoder(get_name(get_charset_0(_this__u8e3s4)), true);
|
|
3090
|
-
var tmp0 = input.
|
|
3178
|
+
var tmp0 = input.n1h().s();
|
|
3091
3179
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3092
3180
|
var b = toLong(max);
|
|
3093
3181
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
@@ -3095,7 +3183,7 @@
|
|
|
3095
3183
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3096
3184
|
var tmp_0;
|
|
3097
3185
|
try {
|
|
3098
|
-
tmp_0 = decoder.
|
|
3186
|
+
tmp_0 = decoder.v1y(array);
|
|
3099
3187
|
} catch ($p) {
|
|
3100
3188
|
var tmp_1;
|
|
3101
3189
|
if ($p instanceof Error) {
|
|
@@ -3111,13 +3199,13 @@
|
|
|
3111
3199
|
return result.length;
|
|
3112
3200
|
}
|
|
3113
3201
|
function get_charset_0(_this__u8e3s4) {
|
|
3114
|
-
return _this__u8e3s4.
|
|
3202
|
+
return _this__u8e3s4.o1y_1;
|
|
3115
3203
|
}
|
|
3116
3204
|
function forName(_this__u8e3s4, name) {
|
|
3117
|
-
return Companion_instance_3.
|
|
3205
|
+
return Companion_instance_3.m1y(name);
|
|
3118
3206
|
}
|
|
3119
3207
|
function isSupported(_this__u8e3s4, name) {
|
|
3120
|
-
return Companion_instance_3.
|
|
3208
|
+
return Companion_instance_3.n1y(name);
|
|
3121
3209
|
}
|
|
3122
3210
|
function Decoder(encoding, fatal) {
|
|
3123
3211
|
fatal = fatal === VOID ? true : fatal;
|
|
@@ -3149,10 +3237,10 @@
|
|
|
3149
3237
|
return this_0;
|
|
3150
3238
|
}
|
|
3151
3239
|
function toKtor$1($this_toKtor) {
|
|
3152
|
-
this.
|
|
3240
|
+
this.w1y_1 = $this_toKtor;
|
|
3153
3241
|
}
|
|
3154
|
-
protoOf(toKtor$1).
|
|
3155
|
-
return this.
|
|
3242
|
+
protoOf(toKtor$1).v1y = function (buffer) {
|
|
3243
|
+
return this.w1y_1.decode(buffer);
|
|
3156
3244
|
};
|
|
3157
3245
|
function get_ENCODING_ALIASES() {
|
|
3158
3246
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3165,7 +3253,7 @@
|
|
|
3165
3253
|
}
|
|
3166
3254
|
var REPLACEMENT;
|
|
3167
3255
|
function TextDecoderFallback(encoding, fatal) {
|
|
3168
|
-
this.
|
|
3256
|
+
this.x1y_1 = fatal;
|
|
3169
3257
|
// Inline function 'kotlin.text.trim' call
|
|
3170
3258
|
// Inline function 'kotlin.text.lowercase' call
|
|
3171
3259
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3176,7 +3264,7 @@
|
|
|
3176
3264
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3177
3265
|
}
|
|
3178
3266
|
}
|
|
3179
|
-
protoOf(TextDecoderFallback).
|
|
3267
|
+
protoOf(TextDecoderFallback).v1y = function (buffer) {
|
|
3180
3268
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3181
3269
|
var builder = new Buffer();
|
|
3182
3270
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3192,7 +3280,7 @@
|
|
|
3192
3280
|
var point = toCodePoint(byte);
|
|
3193
3281
|
if (point < 0) {
|
|
3194
3282
|
// Inline function 'kotlin.check' call
|
|
3195
|
-
if (!!this.
|
|
3283
|
+
if (!!this.x1y_1) {
|
|
3196
3284
|
var message = 'Invalid character: ' + point;
|
|
3197
3285
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3198
3286
|
}
|
|
@@ -3200,9 +3288,9 @@
|
|
|
3200
3288
|
continue $l$loop;
|
|
3201
3289
|
}
|
|
3202
3290
|
if (point > 255) {
|
|
3203
|
-
builder.
|
|
3291
|
+
builder.h1j(toByte(point >> 8));
|
|
3204
3292
|
}
|
|
3205
|
-
builder.
|
|
3293
|
+
builder.h1j(toByte(point & 255));
|
|
3206
3294
|
}
|
|
3207
3295
|
while (inductionVariable < last);
|
|
3208
3296
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3245,7 +3333,7 @@
|
|
|
3245
3333
|
if (character > 255) {
|
|
3246
3334
|
failedToMapError(character);
|
|
3247
3335
|
}
|
|
3248
|
-
dst.
|
|
3336
|
+
dst.h1j(toByte(character));
|
|
3249
3337
|
}
|
|
3250
3338
|
while (inductionVariable < toIndex);
|
|
3251
3339
|
return toIndex - fromIndex | 0;
|
|
@@ -3267,64 +3355,64 @@
|
|
|
3267
3355
|
}
|
|
3268
3356
|
}
|
|
3269
3357
|
function DefaultPool(capacity) {
|
|
3270
|
-
this.
|
|
3358
|
+
this.e1y_1 = capacity;
|
|
3271
3359
|
var tmp = this;
|
|
3272
3360
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3273
|
-
var size = this.
|
|
3274
|
-
tmp.
|
|
3275
|
-
this.
|
|
3361
|
+
var size = this.e1y_1;
|
|
3362
|
+
tmp.f1y_1 = Array(size);
|
|
3363
|
+
this.g1y_1 = 0;
|
|
3276
3364
|
}
|
|
3277
|
-
protoOf(DefaultPool).
|
|
3365
|
+
protoOf(DefaultPool).h1y = function (instance) {
|
|
3278
3366
|
};
|
|
3279
|
-
protoOf(DefaultPool).
|
|
3367
|
+
protoOf(DefaultPool).i1y = function (instance) {
|
|
3280
3368
|
return instance;
|
|
3281
3369
|
};
|
|
3282
|
-
protoOf(DefaultPool).
|
|
3370
|
+
protoOf(DefaultPool).j1y = function (instance) {
|
|
3283
3371
|
};
|
|
3284
|
-
protoOf(DefaultPool).
|
|
3285
|
-
if (this.
|
|
3286
|
-
return this.
|
|
3287
|
-
this.
|
|
3288
|
-
var idx = this.
|
|
3289
|
-
var tmp = this.
|
|
3372
|
+
protoOf(DefaultPool).k1y = function () {
|
|
3373
|
+
if (this.g1y_1 === 0)
|
|
3374
|
+
return this.d1y();
|
|
3375
|
+
this.g1y_1 = this.g1y_1 - 1 | 0;
|
|
3376
|
+
var idx = this.g1y_1;
|
|
3377
|
+
var tmp = this.f1y_1[idx];
|
|
3290
3378
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3291
|
-
this.
|
|
3292
|
-
return this.
|
|
3379
|
+
this.f1y_1[idx] = null;
|
|
3380
|
+
return this.i1y(instance);
|
|
3293
3381
|
};
|
|
3294
|
-
protoOf(DefaultPool).
|
|
3295
|
-
this.
|
|
3296
|
-
if (this.
|
|
3297
|
-
this.
|
|
3382
|
+
protoOf(DefaultPool).l1y = function (instance) {
|
|
3383
|
+
this.j1y(instance);
|
|
3384
|
+
if (this.g1y_1 === this.e1y_1) {
|
|
3385
|
+
this.h1y(instance);
|
|
3298
3386
|
} else {
|
|
3299
|
-
var _unary__edvuaz = this.
|
|
3300
|
-
this.
|
|
3301
|
-
this.
|
|
3387
|
+
var _unary__edvuaz = this.g1y_1;
|
|
3388
|
+
this.g1y_1 = _unary__edvuaz + 1 | 0;
|
|
3389
|
+
this.f1y_1[_unary__edvuaz] = instance;
|
|
3302
3390
|
}
|
|
3303
3391
|
};
|
|
3304
|
-
protoOf(DefaultPool).
|
|
3392
|
+
protoOf(DefaultPool).mr = function () {
|
|
3305
3393
|
var inductionVariable = 0;
|
|
3306
|
-
var last = this.
|
|
3394
|
+
var last = this.g1y_1;
|
|
3307
3395
|
if (inductionVariable < last)
|
|
3308
3396
|
do {
|
|
3309
3397
|
var i = inductionVariable;
|
|
3310
3398
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3311
|
-
var tmp = this.
|
|
3399
|
+
var tmp = this.f1y_1[i];
|
|
3312
3400
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3313
|
-
this.
|
|
3314
|
-
this.
|
|
3401
|
+
this.f1y_1[i] = null;
|
|
3402
|
+
this.h1y(instance);
|
|
3315
3403
|
}
|
|
3316
3404
|
while (inductionVariable < last);
|
|
3317
|
-
this.
|
|
3405
|
+
this.g1y_1 = 0;
|
|
3318
3406
|
};
|
|
3319
3407
|
//region block: post-declaration
|
|
3320
|
-
protoOf(Read).
|
|
3321
|
-
protoOf(Read).
|
|
3322
|
-
protoOf(Write).
|
|
3323
|
-
protoOf(Write).
|
|
3324
|
-
protoOf(ByteChannel).
|
|
3325
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3326
|
-
protoOf(CountedByteReadChannel).
|
|
3327
|
-
protoOf(SourceByteReadChannel).
|
|
3408
|
+
protoOf(Read).s1k = resume;
|
|
3409
|
+
protoOf(Read).t1k = resume_0;
|
|
3410
|
+
protoOf(Write).s1k = resume;
|
|
3411
|
+
protoOf(Write).t1k = resume_0;
|
|
3412
|
+
protoOf(ByteChannel).d1n = awaitContent$default;
|
|
3413
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d1n = awaitContent$default;
|
|
3414
|
+
protoOf(CountedByteReadChannel).d1n = awaitContent$default;
|
|
3415
|
+
protoOf(SourceByteReadChannel).d1n = awaitContent$default;
|
|
3328
3416
|
protoOf(DefaultPool).p4 = close;
|
|
3329
3417
|
protoOf(NoPoolImpl).p4 = close;
|
|
3330
3418
|
//endregion
|