@doordeck/doordeck-headless-sdk 0.162.0 → 0.163.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 +50 -50
- package/kotlin/Kermit-kermit.js +5 -5
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +21 -21
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +21 -21
- package/kotlin/doordeck-sdk.js +10121 -10121
- package/kotlin/kotlin-kotlin-stdlib.js +829 -964
- package/kotlin/kotlinx-atomicfu.js +15 -15
- package/kotlin/kotlinx-coroutines-core.js +1899 -1899
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +39 -39
- package/kotlin/kotlinx-io-kotlinx-io-core.js +462 -462
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1795 -1795
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1395 -1395
- package/kotlin/ktor-ktor-client-auth.js +241 -241
- package/kotlin/ktor-ktor-client-content-negotiation.js +146 -144
- package/kotlin/ktor-ktor-client-core.js +1831 -1819
- package/kotlin/ktor-ktor-client-logging.js +631 -631
- package/kotlin/ktor-ktor-events.js +9 -9
- package/kotlin/ktor-ktor-http-cio.js +339 -339
- package/kotlin/ktor-ktor-http.js +741 -745
- package/kotlin/ktor-ktor-io.js +621 -625
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +136 -136
- package/kotlin/ktor-ktor-serialization.js +60 -60
- package/kotlin/ktor-ktor-utils.js +690 -696
- package/kotlin/ktor-ktor-websockets.js +43 -46
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -4,20 +4,19 @@
|
|
|
4
4
|
var Companion_instance = kotlin_kotlin.$_$.u4;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
6
6
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n2;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.yb;
|
|
8
8
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ab;
|
|
9
|
-
var THROW_CCE = kotlin_kotlin.$_$.yf;
|
|
10
9
|
var initMetadataForObject = kotlin_kotlin.$_$.fb;
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
10
|
+
var toString = kotlin_kotlin.$_$.ah;
|
|
12
11
|
var hashCode = kotlin_kotlin.$_$.ya;
|
|
13
12
|
var equals = kotlin_kotlin.$_$.sa;
|
|
14
13
|
var initMetadataForClass = kotlin_kotlin.$_$.za;
|
|
15
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
16
|
-
var Result = kotlin_kotlin.$_$.
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.og;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.vf;
|
|
17
16
|
var initMetadataForInterface = kotlin_kotlin.$_$.db;
|
|
18
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
19
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
20
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.te;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.ub;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.yg;
|
|
21
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
22
21
|
var isInterface = kotlin_kotlin.$_$.ob;
|
|
23
22
|
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
@@ -27,29 +26,30 @@
|
|
|
27
26
|
var add = kotlin_kotlin.$_$.m9;
|
|
28
27
|
var intercepted = kotlin_kotlin.$_$.u8;
|
|
29
28
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
30
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
29
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.wg;
|
|
31
30
|
var returnIfSuspended = kotlin_kotlin.$_$.g;
|
|
32
31
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
33
|
-
var Long = kotlin_kotlin.$_$.
|
|
32
|
+
var Long = kotlin_kotlin.$_$.sf;
|
|
34
33
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.bb;
|
|
35
34
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
36
35
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
37
36
|
var convertToInt = kotlin_kotlin.$_$.r9;
|
|
38
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
37
|
+
var IllegalStateException = kotlin_kotlin.$_$.rf;
|
|
39
38
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s1;
|
|
40
39
|
var captureStack = kotlin_kotlin.$_$.ja;
|
|
41
40
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
42
41
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
43
|
-
var replace = kotlin_kotlin.$_$.
|
|
42
|
+
var replace = kotlin_kotlin.$_$.ud;
|
|
44
43
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
44
|
+
var THROW_CCE = kotlin_kotlin.$_$.xf;
|
|
45
45
|
var equalsLong = kotlin_kotlin.$_$.u9;
|
|
46
46
|
var get_ONE = kotlin_kotlin.$_$.l9;
|
|
47
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
47
|
+
var toString_1 = kotlin_kotlin.$_$.bc;
|
|
48
48
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
49
49
|
var subtract = kotlin_kotlin.$_$.da;
|
|
50
50
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
51
51
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
52
|
-
var closeFinally = kotlin_kotlin.$_$.
|
|
52
|
+
var closeFinally = kotlin_kotlin.$_$.mg;
|
|
53
53
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
54
54
|
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.f4;
|
|
55
55
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
@@ -75,19 +75,19 @@
|
|
|
75
75
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
76
76
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
77
77
|
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
78
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
78
|
+
var encodeToByteArray = kotlin_kotlin.$_$.ed;
|
|
79
79
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
|
|
80
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
80
|
+
var AutoCloseable = kotlin_kotlin.$_$.gf;
|
|
81
81
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
82
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
82
|
+
var replace_0 = kotlin_kotlin.$_$.vd;
|
|
83
83
|
var getStringHashCode = kotlin_kotlin.$_$.xa;
|
|
84
84
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
85
85
|
var charSequenceSubSequence = kotlin_kotlin.$_$.pa;
|
|
86
86
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
87
87
|
var isCharSequence = kotlin_kotlin.$_$.kb;
|
|
88
|
-
var trim = kotlin_kotlin.$_$.
|
|
89
|
-
var toByte = kotlin_kotlin.$_$.
|
|
90
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
88
|
+
var trim = kotlin_kotlin.$_$.bf;
|
|
89
|
+
var toByte = kotlin_kotlin.$_$.zb;
|
|
90
|
+
var decodeToString_0 = kotlin_kotlin.$_$.cd;
|
|
91
91
|
var setOf = kotlin_kotlin.$_$.w7;
|
|
92
92
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
93
93
|
var charSequenceGet = kotlin_kotlin.$_$.na;
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
initMetadataForObject(Empty, 'Empty');
|
|
99
99
|
initMetadataForClass(Closed, 'Closed');
|
|
100
100
|
function resume() {
|
|
101
|
-
return this.
|
|
101
|
+
return this.o1j().f9(Companion_getInstance().l1j_1);
|
|
102
102
|
}
|
|
103
103
|
function resume_0(throwable) {
|
|
104
|
-
var tmp = this.
|
|
104
|
+
var tmp = this.o1j();
|
|
105
105
|
var tmp_0;
|
|
106
106
|
if (throwable == null) {
|
|
107
107
|
tmp_0 = null;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
tmp_0 = new Result(tmp$ret$2);
|
|
113
113
|
}
|
|
114
114
|
var tmp1_elvis_lhs = tmp_0;
|
|
115
|
-
return tmp.f9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
115
|
+
return tmp.f9(tmp1_elvis_lhs == null ? Companion_getInstance().l1j_1 : tmp1_elvis_lhs.ol_1);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(Task, 'Task');
|
|
118
118
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
123
123
|
function awaitContent$default(min, $completion, $super) {
|
|
124
124
|
min = min === VOID ? 1 : min;
|
|
125
|
-
return $super === VOID ? this.
|
|
125
|
+
return $super === VOID ? this.v1l(min, $completion) : $super.v1l.call(this, min, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
128
128
|
function get_autoFlush() {
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
169
169
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
170
170
|
function close() {
|
|
171
|
-
this.
|
|
171
|
+
this.hv();
|
|
172
172
|
}
|
|
173
173
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
174
174
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -187,10 +187,10 @@
|
|
|
187
187
|
//endregion
|
|
188
188
|
function Companion() {
|
|
189
189
|
Companion_instance_0 = this;
|
|
190
|
-
this.
|
|
190
|
+
this.k1j_1 = new Closed(null);
|
|
191
191
|
var tmp = this;
|
|
192
192
|
// Inline function 'kotlin.Companion.success' call
|
|
193
|
-
tmp.
|
|
193
|
+
tmp.l1j_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
194
194
|
}
|
|
195
195
|
var Companion_instance_0;
|
|
196
196
|
function Companion_getInstance() {
|
|
@@ -211,7 +211,6 @@
|
|
|
211
211
|
return true;
|
|
212
212
|
if (!(other instanceof Empty))
|
|
213
213
|
return false;
|
|
214
|
-
other instanceof Empty || THROW_CCE();
|
|
215
214
|
return true;
|
|
216
215
|
};
|
|
217
216
|
var Empty_instance;
|
|
@@ -219,88 +218,87 @@
|
|
|
219
218
|
return Empty_instance;
|
|
220
219
|
}
|
|
221
220
|
function Closed(cause) {
|
|
222
|
-
this.
|
|
221
|
+
this.m1j_1 = cause;
|
|
223
222
|
}
|
|
224
223
|
protoOf(Closed).toString = function () {
|
|
225
|
-
return 'Closed(cause=' + toString(this.
|
|
224
|
+
return 'Closed(cause=' + toString(this.m1j_1) + ')';
|
|
226
225
|
};
|
|
227
226
|
protoOf(Closed).hashCode = function () {
|
|
228
|
-
return this.
|
|
227
|
+
return this.m1j_1 == null ? 0 : hashCode(this.m1j_1);
|
|
229
228
|
};
|
|
230
229
|
protoOf(Closed).equals = function (other) {
|
|
231
230
|
if (this === other)
|
|
232
231
|
return true;
|
|
233
232
|
if (!(other instanceof Closed))
|
|
234
233
|
return false;
|
|
235
|
-
|
|
236
|
-
if (!equals(this.z1j_1, tmp0_other_with_cast.z1j_1))
|
|
234
|
+
if (!equals(this.m1j_1, other.m1j_1))
|
|
237
235
|
return false;
|
|
238
236
|
return true;
|
|
239
237
|
};
|
|
240
238
|
function Task() {
|
|
241
239
|
}
|
|
242
240
|
function Read(continuation) {
|
|
243
|
-
this.
|
|
244
|
-
this.
|
|
241
|
+
this.s1j_1 = continuation;
|
|
242
|
+
this.t1j_1 = null;
|
|
245
243
|
if (get_DEVELOPMENT_MODE()) {
|
|
246
244
|
var tmp = this;
|
|
247
245
|
// Inline function 'kotlin.also' call
|
|
248
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
246
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.s1j_1), 16));
|
|
249
247
|
stackTraceToString(this_0);
|
|
250
|
-
tmp.
|
|
248
|
+
tmp.t1j_1 = this_0;
|
|
251
249
|
}
|
|
252
250
|
}
|
|
253
|
-
protoOf(Read).
|
|
254
|
-
return this.
|
|
251
|
+
protoOf(Read).o1j = function () {
|
|
252
|
+
return this.s1j_1;
|
|
255
253
|
};
|
|
256
|
-
protoOf(Read).
|
|
257
|
-
return this.
|
|
254
|
+
protoOf(Read).n1j = function () {
|
|
255
|
+
return this.t1j_1;
|
|
258
256
|
};
|
|
259
|
-
protoOf(Read).
|
|
257
|
+
protoOf(Read).p1j = function () {
|
|
260
258
|
return 'read';
|
|
261
259
|
};
|
|
262
260
|
function Write(continuation) {
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
261
|
+
this.u1j_1 = continuation;
|
|
262
|
+
this.v1j_1 = null;
|
|
265
263
|
if (get_DEVELOPMENT_MODE()) {
|
|
266
264
|
var tmp = this;
|
|
267
265
|
// Inline function 'kotlin.also' call
|
|
268
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
266
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.u1j_1), 16));
|
|
269
267
|
stackTraceToString(this_0);
|
|
270
|
-
tmp.
|
|
268
|
+
tmp.v1j_1 = this_0;
|
|
271
269
|
}
|
|
272
270
|
}
|
|
273
|
-
protoOf(Write).
|
|
274
|
-
return this.
|
|
271
|
+
protoOf(Write).o1j = function () {
|
|
272
|
+
return this.u1j_1;
|
|
275
273
|
};
|
|
276
|
-
protoOf(Write).
|
|
277
|
-
return this.
|
|
274
|
+
protoOf(Write).n1j = function () {
|
|
275
|
+
return this.v1j_1;
|
|
278
276
|
};
|
|
279
|
-
protoOf(Write).
|
|
277
|
+
protoOf(Write).p1j = function () {
|
|
280
278
|
return 'write';
|
|
281
279
|
};
|
|
282
280
|
function moveFlushToReadBuffer($this) {
|
|
283
281
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
284
|
-
$this.
|
|
285
|
-
$this.
|
|
286
|
-
$this.
|
|
282
|
+
$this.z1j_1;
|
|
283
|
+
$this.x1j_1.bq($this.b1k_1);
|
|
284
|
+
$this.y1j_1 = 0;
|
|
287
285
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
288
|
-
var current = $this.
|
|
286
|
+
var current = $this.a1k_1.kotlinx$atomicfu$value;
|
|
289
287
|
var tmp;
|
|
290
288
|
if (current instanceof Write) {
|
|
291
|
-
tmp = $this.
|
|
289
|
+
tmp = $this.a1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
292
290
|
} else {
|
|
293
291
|
tmp = false;
|
|
294
292
|
}
|
|
295
293
|
if (tmp) {
|
|
296
|
-
current.
|
|
294
|
+
current.q1j();
|
|
297
295
|
}
|
|
298
296
|
}
|
|
299
297
|
function closeSlot($this, cause) {
|
|
300
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
301
|
-
var continuation = $this.
|
|
298
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().k1j_1;
|
|
299
|
+
var continuation = $this.a1k_1.atomicfu$getAndSet(closeContinuation);
|
|
302
300
|
if (isInterface(continuation, Task)) {
|
|
303
|
-
continuation.
|
|
301
|
+
continuation.r1j(cause);
|
|
304
302
|
}
|
|
305
303
|
}
|
|
306
304
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -319,8 +317,8 @@
|
|
|
319
317
|
}
|
|
320
318
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
321
319
|
CoroutineImpl.call(this, resultContinuation);
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
320
|
+
this.m1k_1 = _this__u8e3s4;
|
|
321
|
+
this.n1k_1 = min;
|
|
324
322
|
}
|
|
325
323
|
protoOf($awaitContentCOROUTINE$).c9 = function () {
|
|
326
324
|
var suspendResult = this.w8_1;
|
|
@@ -330,39 +328,39 @@
|
|
|
330
328
|
switch (tmp) {
|
|
331
329
|
case 0:
|
|
332
330
|
this.v8_1 = 4;
|
|
333
|
-
rethrowCloseCauseIfNeeded(this.
|
|
334
|
-
if (compare(this.
|
|
331
|
+
rethrowCloseCauseIfNeeded(this.m1k_1);
|
|
332
|
+
if (compare(this.m1k_1.b1k_1.u(), fromInt(this.n1k_1)) >= 0)
|
|
335
333
|
return true;
|
|
336
|
-
this.
|
|
334
|
+
this.o1k_1 = this.m1k_1;
|
|
337
335
|
this.u8_1 = 1;
|
|
338
336
|
continue $sm;
|
|
339
337
|
case 1:
|
|
340
|
-
if (!(compare(add(numberToLong(this.
|
|
338
|
+
if (!(compare(add(numberToLong(this.m1k_1.y1j_1), this.m1k_1.b1k_1.u()), fromInt(this.n1k_1)) < 0 && this.m1k_1.d1k_1.kotlinx$atomicfu$value == null)) {
|
|
341
339
|
this.u8_1 = 3;
|
|
342
340
|
continue $sm;
|
|
343
341
|
}
|
|
344
342
|
|
|
345
343
|
this.u8_1 = 2;
|
|
346
344
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
347
|
-
cancellable.
|
|
348
|
-
var tmp0 = this.
|
|
345
|
+
cancellable.kw();
|
|
346
|
+
var tmp0 = this.o1k_1;
|
|
349
347
|
var tmp2 = new Read(cancellable);
|
|
350
348
|
l$ret$1: do {
|
|
351
|
-
var previous = tmp0.
|
|
349
|
+
var previous = tmp0.a1k_1.kotlinx$atomicfu$value;
|
|
352
350
|
if (!(previous instanceof Closed)) {
|
|
353
|
-
if (!tmp0.
|
|
354
|
-
tmp2.
|
|
351
|
+
if (!tmp0.a1k_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
352
|
+
tmp2.q1j();
|
|
355
353
|
break l$ret$1;
|
|
356
354
|
}
|
|
357
355
|
}
|
|
358
356
|
if (previous instanceof Read) {
|
|
359
|
-
previous.
|
|
357
|
+
previous.r1j(new ConcurrentIOException(tmp2.p1j(), previous.n1j()));
|
|
360
358
|
} else {
|
|
361
359
|
if (isInterface(previous, Task)) {
|
|
362
|
-
previous.
|
|
360
|
+
previous.q1j();
|
|
363
361
|
} else {
|
|
364
362
|
if (previous instanceof Closed) {
|
|
365
|
-
tmp2.
|
|
363
|
+
tmp2.r1j(previous.m1j_1);
|
|
366
364
|
break l$ret$1;
|
|
367
365
|
} else {
|
|
368
366
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -371,21 +369,21 @@
|
|
|
371
369
|
}
|
|
372
370
|
}
|
|
373
371
|
}
|
|
374
|
-
if (!(compare(add(numberToLong(this.
|
|
375
|
-
var current = tmp0.
|
|
372
|
+
if (!(compare(add(numberToLong(this.m1k_1.y1j_1), this.m1k_1.b1k_1.u()), fromInt(this.n1k_1)) < 0 && this.m1k_1.d1k_1.kotlinx$atomicfu$value == null)) {
|
|
373
|
+
var current = tmp0.a1k_1.kotlinx$atomicfu$value;
|
|
376
374
|
var tmp_0;
|
|
377
375
|
if (current instanceof Read) {
|
|
378
|
-
tmp_0 = tmp0.
|
|
376
|
+
tmp_0 = tmp0.a1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
379
377
|
} else {
|
|
380
378
|
tmp_0 = false;
|
|
381
379
|
}
|
|
382
380
|
if (tmp_0) {
|
|
383
|
-
current.
|
|
381
|
+
current.q1j();
|
|
384
382
|
}
|
|
385
383
|
}
|
|
386
384
|
}
|
|
387
385
|
while (false);
|
|
388
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
386
|
+
suspendResult = returnIfSuspended(cancellable.lw(), this);
|
|
389
387
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
390
388
|
return suspendResult;
|
|
391
389
|
}
|
|
@@ -395,11 +393,11 @@
|
|
|
395
393
|
this.u8_1 = 1;
|
|
396
394
|
continue $sm;
|
|
397
395
|
case 3:
|
|
398
|
-
if (compare(this.
|
|
399
|
-
moveFlushToReadBuffer(this.
|
|
396
|
+
if (compare(this.m1k_1.b1k_1.u(), new Long(1048576, 0)) < 0) {
|
|
397
|
+
moveFlushToReadBuffer(this.m1k_1);
|
|
400
398
|
}
|
|
401
399
|
|
|
402
|
-
return compare(this.
|
|
400
|
+
return compare(this.m1k_1.b1k_1.u(), fromInt(this.n1k_1)) >= 0;
|
|
403
401
|
case 4:
|
|
404
402
|
throw this.x8_1;
|
|
405
403
|
}
|
|
@@ -416,7 +414,7 @@
|
|
|
416
414
|
};
|
|
417
415
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
418
416
|
CoroutineImpl.call(this, resultContinuation);
|
|
419
|
-
this.
|
|
417
|
+
this.x1k_1 = _this__u8e3s4;
|
|
420
418
|
}
|
|
421
419
|
protoOf($flushCOROUTINE$).c9 = function () {
|
|
422
420
|
var suspendResult = this.w8_1;
|
|
@@ -426,40 +424,40 @@
|
|
|
426
424
|
switch (tmp) {
|
|
427
425
|
case 0:
|
|
428
426
|
this.v8_1 = 4;
|
|
429
|
-
rethrowCloseCauseIfNeeded(this.
|
|
430
|
-
this.
|
|
431
|
-
if (this.
|
|
427
|
+
rethrowCloseCauseIfNeeded(this.x1k_1);
|
|
428
|
+
this.x1k_1.z1k();
|
|
429
|
+
if (this.x1k_1.y1j_1 < 1048576)
|
|
432
430
|
return Unit_instance;
|
|
433
|
-
this.
|
|
431
|
+
this.y1k_1 = this.x1k_1;
|
|
434
432
|
this.u8_1 = 1;
|
|
435
433
|
continue $sm;
|
|
436
434
|
case 1:
|
|
437
|
-
if (!(this.
|
|
435
|
+
if (!(this.x1k_1.y1j_1 >= 1048576 && this.x1k_1.d1k_1.kotlinx$atomicfu$value == null)) {
|
|
438
436
|
this.u8_1 = 3;
|
|
439
437
|
continue $sm;
|
|
440
438
|
}
|
|
441
439
|
|
|
442
440
|
this.u8_1 = 2;
|
|
443
441
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
444
|
-
cancellable.
|
|
445
|
-
var tmp0 = this.
|
|
442
|
+
cancellable.kw();
|
|
443
|
+
var tmp0 = this.y1k_1;
|
|
446
444
|
var tmp2 = new Write(cancellable);
|
|
447
445
|
l$ret$1: do {
|
|
448
|
-
var previous = tmp0.
|
|
446
|
+
var previous = tmp0.a1k_1.kotlinx$atomicfu$value;
|
|
449
447
|
if (!(previous instanceof Closed)) {
|
|
450
|
-
if (!tmp0.
|
|
451
|
-
tmp2.
|
|
448
|
+
if (!tmp0.a1k_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
449
|
+
tmp2.q1j();
|
|
452
450
|
break l$ret$1;
|
|
453
451
|
}
|
|
454
452
|
}
|
|
455
453
|
if (previous instanceof Write) {
|
|
456
|
-
previous.
|
|
454
|
+
previous.r1j(new ConcurrentIOException(tmp2.p1j(), previous.n1j()));
|
|
457
455
|
} else {
|
|
458
456
|
if (isInterface(previous, Task)) {
|
|
459
|
-
previous.
|
|
457
|
+
previous.q1j();
|
|
460
458
|
} else {
|
|
461
459
|
if (previous instanceof Closed) {
|
|
462
|
-
tmp2.
|
|
460
|
+
tmp2.r1j(previous.m1j_1);
|
|
463
461
|
break l$ret$1;
|
|
464
462
|
} else {
|
|
465
463
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -468,21 +466,21 @@
|
|
|
468
466
|
}
|
|
469
467
|
}
|
|
470
468
|
}
|
|
471
|
-
if (!(this.
|
|
472
|
-
var current = tmp0.
|
|
469
|
+
if (!(this.x1k_1.y1j_1 >= 1048576 && this.x1k_1.d1k_1.kotlinx$atomicfu$value == null)) {
|
|
470
|
+
var current = tmp0.a1k_1.kotlinx$atomicfu$value;
|
|
473
471
|
var tmp_0;
|
|
474
472
|
if (current instanceof Write) {
|
|
475
|
-
tmp_0 = tmp0.
|
|
473
|
+
tmp_0 = tmp0.a1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
476
474
|
} else {
|
|
477
475
|
tmp_0 = false;
|
|
478
476
|
}
|
|
479
477
|
if (tmp_0) {
|
|
480
|
-
current.
|
|
478
|
+
current.q1j();
|
|
481
479
|
}
|
|
482
480
|
}
|
|
483
481
|
}
|
|
484
482
|
while (false);
|
|
485
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
483
|
+
suspendResult = returnIfSuspended(cancellable.lw(), this);
|
|
486
484
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
487
485
|
return suspendResult;
|
|
488
486
|
}
|
|
@@ -509,7 +507,7 @@
|
|
|
509
507
|
};
|
|
510
508
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
511
509
|
CoroutineImpl.call(this, resultContinuation);
|
|
512
|
-
this.
|
|
510
|
+
this.i1l_1 = _this__u8e3s4;
|
|
513
511
|
}
|
|
514
512
|
protoOf($flushAndCloseCOROUTINE$).c9 = function () {
|
|
515
513
|
var suspendResult = this.w8_1;
|
|
@@ -519,12 +517,12 @@
|
|
|
519
517
|
switch (tmp) {
|
|
520
518
|
case 0:
|
|
521
519
|
this.v8_1 = 4;
|
|
522
|
-
var this_0 = this.
|
|
520
|
+
var this_0 = this.i1l_1;
|
|
523
521
|
this.v8_1 = 2;
|
|
524
522
|
var tmp_0 = this;
|
|
525
|
-
tmp_0.
|
|
523
|
+
tmp_0.k1l_1 = Companion_instance;
|
|
526
524
|
this.u8_1 = 1;
|
|
527
|
-
suspendResult = this_0.
|
|
525
|
+
suspendResult = this_0.l1l(this);
|
|
528
526
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
529
527
|
return suspendResult;
|
|
530
528
|
}
|
|
@@ -532,8 +530,8 @@
|
|
|
532
530
|
continue $sm;
|
|
533
531
|
case 1:
|
|
534
532
|
var tmp_1 = this;
|
|
535
|
-
this.
|
|
536
|
-
tmp_1.
|
|
533
|
+
this.k1l_1;
|
|
534
|
+
tmp_1.j1l_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
537
535
|
this.v8_1 = 4;
|
|
538
536
|
this.u8_1 = 3;
|
|
539
537
|
continue $sm;
|
|
@@ -543,7 +541,7 @@
|
|
|
543
541
|
if (tmp_2 instanceof Error) {
|
|
544
542
|
var e = this.x8_1;
|
|
545
543
|
var tmp_3 = this;
|
|
546
|
-
tmp_3.
|
|
544
|
+
tmp_3.j1l_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
547
545
|
this.u8_1 = 3;
|
|
548
546
|
continue $sm;
|
|
549
547
|
} else {
|
|
@@ -552,9 +550,9 @@
|
|
|
552
550
|
|
|
553
551
|
case 3:
|
|
554
552
|
this.v8_1 = 4;
|
|
555
|
-
if (!this.
|
|
553
|
+
if (!this.i1l_1.d1k_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
556
554
|
return Unit_instance;
|
|
557
|
-
closeSlot(this.
|
|
555
|
+
closeSlot(this.i1l_1, null);
|
|
558
556
|
return Unit_instance;
|
|
559
557
|
case 4:
|
|
560
558
|
throw this.x8_1;
|
|
@@ -572,104 +570,104 @@
|
|
|
572
570
|
};
|
|
573
571
|
function ByteChannel(autoFlush) {
|
|
574
572
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
}
|
|
584
|
-
protoOf(ByteChannel).
|
|
585
|
-
return this.
|
|
586
|
-
};
|
|
587
|
-
protoOf(ByteChannel).
|
|
588
|
-
var tmp0_safe_receiver = this.
|
|
573
|
+
this.w1j_1 = autoFlush;
|
|
574
|
+
this.x1j_1 = new Buffer();
|
|
575
|
+
this.y1j_1 = 0;
|
|
576
|
+
this.z1j_1 = new Object();
|
|
577
|
+
this.a1k_1 = atomic$ref$1(Empty_instance);
|
|
578
|
+
this.b1k_1 = new Buffer();
|
|
579
|
+
this.c1k_1 = new Buffer();
|
|
580
|
+
this.d1k_1 = atomic$ref$1(null);
|
|
581
|
+
}
|
|
582
|
+
protoOf(ByteChannel).m1l = function () {
|
|
583
|
+
return this.w1j_1;
|
|
584
|
+
};
|
|
585
|
+
protoOf(ByteChannel).n1l = function () {
|
|
586
|
+
var tmp0_safe_receiver = this.d1k_1.kotlinx$atomicfu$value;
|
|
589
587
|
if (tmp0_safe_receiver == null)
|
|
590
588
|
null;
|
|
591
589
|
else {
|
|
592
|
-
tmp0_safe_receiver.
|
|
590
|
+
tmp0_safe_receiver.p1l(ClosedReadChannelException$_init_$ref_ix0089());
|
|
593
591
|
}
|
|
594
|
-
if (this.
|
|
592
|
+
if (this.b1k_1.yo()) {
|
|
595
593
|
moveFlushToReadBuffer(this);
|
|
596
594
|
}
|
|
597
|
-
return this.
|
|
595
|
+
return this.b1k_1;
|
|
598
596
|
};
|
|
599
|
-
protoOf(ByteChannel).
|
|
600
|
-
if (this.
|
|
601
|
-
var tmp0_safe_receiver = this.
|
|
597
|
+
protoOf(ByteChannel).q1l = function () {
|
|
598
|
+
if (this.r1l()) {
|
|
599
|
+
var tmp0_safe_receiver = this.d1k_1.kotlinx$atomicfu$value;
|
|
602
600
|
var tmp;
|
|
603
601
|
if (tmp0_safe_receiver == null) {
|
|
604
602
|
tmp = null;
|
|
605
603
|
} else {
|
|
606
|
-
tmp = tmp0_safe_receiver.
|
|
604
|
+
tmp = tmp0_safe_receiver.p1l(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
607
605
|
}
|
|
608
606
|
if (tmp == null)
|
|
609
607
|
throw new ClosedWriteChannelException();
|
|
610
608
|
}
|
|
611
|
-
return this.
|
|
609
|
+
return this.c1k_1;
|
|
612
610
|
};
|
|
613
|
-
protoOf(ByteChannel).
|
|
614
|
-
var tmp0_safe_receiver = this.
|
|
615
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
611
|
+
protoOf(ByteChannel).s1l = function () {
|
|
612
|
+
var tmp0_safe_receiver = this.d1k_1.kotlinx$atomicfu$value;
|
|
613
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1l();
|
|
616
614
|
};
|
|
617
|
-
protoOf(ByteChannel).
|
|
618
|
-
return !(this.
|
|
615
|
+
protoOf(ByteChannel).r1l = function () {
|
|
616
|
+
return !(this.d1k_1.kotlinx$atomicfu$value == null);
|
|
619
617
|
};
|
|
620
|
-
protoOf(ByteChannel).
|
|
621
|
-
return !(this.
|
|
618
|
+
protoOf(ByteChannel).u1l = function () {
|
|
619
|
+
return !(this.s1l() == null) || (this.r1l() && this.y1j_1 === 0 && this.b1k_1.yo());
|
|
622
620
|
};
|
|
623
|
-
protoOf(ByteChannel).
|
|
621
|
+
protoOf(ByteChannel).v1l = function (min, $completion) {
|
|
624
622
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
625
623
|
tmp.w8_1 = Unit_instance;
|
|
626
624
|
tmp.x8_1 = null;
|
|
627
625
|
return tmp.c9();
|
|
628
626
|
};
|
|
629
|
-
protoOf(ByteChannel).
|
|
627
|
+
protoOf(ByteChannel).l1l = function ($completion) {
|
|
630
628
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
631
629
|
tmp.w8_1 = Unit_instance;
|
|
632
630
|
tmp.x8_1 = null;
|
|
633
631
|
return tmp.c9();
|
|
634
632
|
};
|
|
635
|
-
protoOf(ByteChannel).
|
|
636
|
-
if (this.
|
|
633
|
+
protoOf(ByteChannel).z1k = function () {
|
|
634
|
+
if (this.c1k_1.yo())
|
|
637
635
|
return Unit_instance;
|
|
638
636
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
639
|
-
this.
|
|
640
|
-
var count = convertToInt(this.
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
637
|
+
this.z1j_1;
|
|
638
|
+
var count = convertToInt(this.c1k_1.u());
|
|
639
|
+
this.x1j_1.qq(this.c1k_1);
|
|
640
|
+
this.y1j_1 = this.y1j_1 + count | 0;
|
|
643
641
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
644
|
-
var current = this.
|
|
642
|
+
var current = this.a1k_1.kotlinx$atomicfu$value;
|
|
645
643
|
var tmp;
|
|
646
644
|
if (current instanceof Read) {
|
|
647
|
-
tmp = this.
|
|
645
|
+
tmp = this.a1k_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
648
646
|
} else {
|
|
649
647
|
tmp = false;
|
|
650
648
|
}
|
|
651
649
|
if (tmp) {
|
|
652
|
-
current.
|
|
650
|
+
current.q1j();
|
|
653
651
|
}
|
|
654
652
|
};
|
|
655
653
|
protoOf(ByteChannel).b4 = function () {
|
|
656
|
-
this.
|
|
657
|
-
if (!this.
|
|
654
|
+
this.z1k();
|
|
655
|
+
if (!this.d1k_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
658
656
|
return Unit_instance;
|
|
659
657
|
closeSlot(this, null);
|
|
660
658
|
};
|
|
661
|
-
protoOf(ByteChannel).
|
|
659
|
+
protoOf(ByteChannel).x1l = function ($completion) {
|
|
662
660
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
663
661
|
tmp.w8_1 = Unit_instance;
|
|
664
662
|
tmp.x8_1 = null;
|
|
665
663
|
return tmp.c9();
|
|
666
664
|
};
|
|
667
|
-
protoOf(ByteChannel).
|
|
668
|
-
if (!(this.
|
|
665
|
+
protoOf(ByteChannel).y1l = function (cause) {
|
|
666
|
+
if (!(this.d1k_1.kotlinx$atomicfu$value == null))
|
|
669
667
|
return Unit_instance;
|
|
670
668
|
var closedToken = new CloseToken(cause);
|
|
671
|
-
this.
|
|
672
|
-
var wrappedCause = closedToken.
|
|
669
|
+
this.d1k_1.atomicfu$compareAndSet(null, closedToken);
|
|
670
|
+
var wrappedCause = closedToken.t1l();
|
|
673
671
|
closeSlot(this, wrappedCause);
|
|
674
672
|
};
|
|
675
673
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -685,7 +683,7 @@
|
|
|
685
683
|
length = length === VOID ? content.length : length;
|
|
686
684
|
// Inline function 'kotlin.also' call
|
|
687
685
|
var this_0 = new Buffer();
|
|
688
|
-
this_0.
|
|
686
|
+
this_0.hq(content, offset, offset + length | 0);
|
|
689
687
|
var source = this_0;
|
|
690
688
|
return ByteReadChannel_0(source);
|
|
691
689
|
}
|
|
@@ -693,18 +691,18 @@
|
|
|
693
691
|
return new SourceByteReadChannel(source);
|
|
694
692
|
}
|
|
695
693
|
function buildPartialMatchTable($this) {
|
|
696
|
-
var table = new Int32Array($this.
|
|
694
|
+
var table = new Int32Array($this.a1m_1.u());
|
|
697
695
|
var j = 0;
|
|
698
696
|
var inductionVariable = 1;
|
|
699
|
-
var last = $this.
|
|
697
|
+
var last = $this.a1m_1.u();
|
|
700
698
|
if (inductionVariable < last)
|
|
701
699
|
do {
|
|
702
700
|
var i = inductionVariable;
|
|
703
701
|
inductionVariable = inductionVariable + 1 | 0;
|
|
704
|
-
while (j > 0 && !($this.
|
|
702
|
+
while (j > 0 && !($this.a1m_1.v(i) === $this.a1m_1.v(j))) {
|
|
705
703
|
j = table[j - 1 | 0];
|
|
706
704
|
}
|
|
707
|
-
if ($this.
|
|
705
|
+
if ($this.a1m_1.v(i) === $this.a1m_1.v(j)) {
|
|
708
706
|
j = j + 1 | 0;
|
|
709
707
|
}
|
|
710
708
|
table[i] = j;
|
|
@@ -725,8 +723,8 @@
|
|
|
725
723
|
return tmp.c9();
|
|
726
724
|
}
|
|
727
725
|
function checkBounds($this, extra) {
|
|
728
|
-
if (compare(add($this.
|
|
729
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
726
|
+
if (compare(add($this.g1m_1, extra), $this.c1m_1) > 0) {
|
|
727
|
+
throw IOException_init_$Create$('Limit of ' + $this.c1m_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.a1m_1) + '"'));
|
|
730
728
|
}
|
|
731
729
|
}
|
|
732
730
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -734,8 +732,8 @@
|
|
|
734
732
|
}
|
|
735
733
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
736
734
|
CoroutineImpl.call(this, resultContinuation);
|
|
737
|
-
this.
|
|
738
|
-
this.
|
|
735
|
+
this.l1n_1 = _this__u8e3s4;
|
|
736
|
+
this.m1n_1 = ignoreMissing;
|
|
739
737
|
}
|
|
740
738
|
protoOf($findNextCOROUTINE$).c9 = function () {
|
|
741
739
|
var suspendResult = this.w8_1;
|
|
@@ -745,17 +743,17 @@
|
|
|
745
743
|
switch (tmp) {
|
|
746
744
|
case 0:
|
|
747
745
|
this.v8_1 = 9;
|
|
748
|
-
this.
|
|
746
|
+
this.l1n_1.g1m_1 = new Long(0, 0);
|
|
749
747
|
this.u8_1 = 1;
|
|
750
748
|
continue $sm;
|
|
751
749
|
case 1:
|
|
752
|
-
if (!this.
|
|
753
|
-
this.
|
|
750
|
+
if (!this.l1n_1.d1m_1.yo()) {
|
|
751
|
+
this.n1n_1 = true;
|
|
754
752
|
this.u8_1 = 3;
|
|
755
753
|
continue $sm;
|
|
756
754
|
} else {
|
|
757
755
|
this.u8_1 = 2;
|
|
758
|
-
suspendResult = this.
|
|
756
|
+
suspendResult = this.l1n_1.z1l_1.w1l(VOID, this);
|
|
759
757
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
760
758
|
return suspendResult;
|
|
761
759
|
}
|
|
@@ -763,17 +761,17 @@
|
|
|
763
761
|
}
|
|
764
762
|
|
|
765
763
|
case 2:
|
|
766
|
-
this.
|
|
764
|
+
this.n1n_1 = suspendResult;
|
|
767
765
|
this.u8_1 = 3;
|
|
768
766
|
continue $sm;
|
|
769
767
|
case 3:
|
|
770
|
-
if (!this.
|
|
768
|
+
if (!this.n1n_1) {
|
|
771
769
|
this.u8_1 = 7;
|
|
772
770
|
continue $sm;
|
|
773
771
|
}
|
|
774
772
|
|
|
775
773
|
this.u8_1 = 4;
|
|
776
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
774
|
+
suspendResult = advanceToNextPotentialMatch(this.l1n_1, this);
|
|
777
775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
778
776
|
return suspendResult;
|
|
779
777
|
}
|
|
@@ -781,7 +779,7 @@
|
|
|
781
779
|
continue $sm;
|
|
782
780
|
case 4:
|
|
783
781
|
this.u8_1 = 5;
|
|
784
|
-
suspendResult = checkFullMatch(this.
|
|
782
|
+
suspendResult = checkFullMatch(this.l1n_1, this);
|
|
785
783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
786
784
|
return suspendResult;
|
|
787
785
|
}
|
|
@@ -789,7 +787,7 @@
|
|
|
789
787
|
continue $sm;
|
|
790
788
|
case 5:
|
|
791
789
|
if (suspendResult) {
|
|
792
|
-
return this.
|
|
790
|
+
return this.l1n_1.g1m_1;
|
|
793
791
|
} else {
|
|
794
792
|
this.u8_1 = 6;
|
|
795
793
|
continue $sm;
|
|
@@ -799,20 +797,20 @@
|
|
|
799
797
|
this.u8_1 = 1;
|
|
800
798
|
continue $sm;
|
|
801
799
|
case 7:
|
|
802
|
-
if (!this.
|
|
803
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
800
|
+
if (!this.m1n_1) {
|
|
801
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.l1n_1, this.l1n_1.a1m_1) + '" but encountered end of input');
|
|
804
802
|
}
|
|
805
803
|
|
|
806
|
-
this.
|
|
804
|
+
this.l1n_1.g1m_1 = add(this.l1n_1.g1m_1, this.l1n_1.f1m_1.bq(this.l1n_1.b1m_1.q1l()));
|
|
807
805
|
this.u8_1 = 8;
|
|
808
|
-
suspendResult = this.
|
|
806
|
+
suspendResult = this.l1n_1.b1m_1.l1l(this);
|
|
809
807
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
810
808
|
return suspendResult;
|
|
811
809
|
}
|
|
812
810
|
|
|
813
811
|
continue $sm;
|
|
814
812
|
case 8:
|
|
815
|
-
return this.
|
|
813
|
+
return this.l1n_1.g1m_1;
|
|
816
814
|
case 9:
|
|
817
815
|
throw this.x8_1;
|
|
818
816
|
}
|
|
@@ -829,7 +827,7 @@
|
|
|
829
827
|
};
|
|
830
828
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
831
829
|
CoroutineImpl.call(this, resultContinuation);
|
|
832
|
-
this.
|
|
830
|
+
this.q1m_1 = _this__u8e3s4;
|
|
833
831
|
}
|
|
834
832
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).c9 = function () {
|
|
835
833
|
var suspendResult = this.w8_1;
|
|
@@ -842,13 +840,13 @@
|
|
|
842
840
|
this.u8_1 = 1;
|
|
843
841
|
continue $sm;
|
|
844
842
|
case 1:
|
|
845
|
-
if (!this.
|
|
846
|
-
this.
|
|
843
|
+
if (!this.q1m_1.d1m_1.yo()) {
|
|
844
|
+
this.r1m_1 = true;
|
|
847
845
|
this.u8_1 = 3;
|
|
848
846
|
continue $sm;
|
|
849
847
|
} else {
|
|
850
848
|
this.u8_1 = 2;
|
|
851
|
-
suspendResult = this.
|
|
849
|
+
suspendResult = this.q1m_1.z1l_1.w1l(VOID, this);
|
|
852
850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
853
851
|
return suspendResult;
|
|
854
852
|
}
|
|
@@ -856,34 +854,34 @@
|
|
|
856
854
|
}
|
|
857
855
|
|
|
858
856
|
case 2:
|
|
859
|
-
this.
|
|
857
|
+
this.r1m_1 = suspendResult;
|
|
860
858
|
this.u8_1 = 3;
|
|
861
859
|
continue $sm;
|
|
862
860
|
case 3:
|
|
863
|
-
if (!this.
|
|
861
|
+
if (!this.r1m_1) {
|
|
864
862
|
this.u8_1 = 7;
|
|
865
863
|
continue $sm;
|
|
866
864
|
}
|
|
867
865
|
|
|
868
|
-
var nextMatch = indexOf(this.
|
|
866
|
+
var nextMatch = indexOf(this.q1m_1.d1m_1, this.q1m_1.a1m_1.v(0));
|
|
869
867
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
870
|
-
var tmp_0 = this.
|
|
871
|
-
checkBounds(this.
|
|
872
|
-
this.
|
|
868
|
+
var tmp_0 = this.q1m_1.d1m_1;
|
|
869
|
+
checkBounds(this.q1m_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).u());
|
|
870
|
+
this.q1m_1.g1m_1 = add(this.q1m_1.g1m_1, this.q1m_1.d1m_1.bq(this.q1m_1.b1m_1.q1l()));
|
|
873
871
|
this.u8_1 = 5;
|
|
874
|
-
suspendResult = flushIfNeeded(this.
|
|
872
|
+
suspendResult = flushIfNeeded(this.q1m_1.b1m_1, this);
|
|
875
873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
876
874
|
return suspendResult;
|
|
877
875
|
}
|
|
878
876
|
continue $sm;
|
|
879
877
|
} else {
|
|
880
|
-
checkBounds(this.
|
|
881
|
-
var tmp_1 = this.
|
|
882
|
-
var tmp_2 = this.
|
|
883
|
-
var tmp_3 = this.
|
|
884
|
-
tmp_1.
|
|
878
|
+
checkBounds(this.q1m_1, nextMatch);
|
|
879
|
+
var tmp_1 = this.q1m_1;
|
|
880
|
+
var tmp_2 = this.q1m_1.g1m_1;
|
|
881
|
+
var tmp_3 = this.q1m_1.b1m_1.q1l();
|
|
882
|
+
tmp_1.g1m_1 = add(tmp_2, this.q1m_1.d1m_1.yp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
885
883
|
this.u8_1 = 4;
|
|
886
|
-
suspendResult = flushIfNeeded(this.
|
|
884
|
+
suspendResult = flushIfNeeded(this.q1m_1.b1m_1, this);
|
|
887
885
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
888
886
|
return suspendResult;
|
|
889
887
|
}
|
|
@@ -916,7 +914,7 @@
|
|
|
916
914
|
};
|
|
917
915
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
918
916
|
CoroutineImpl.call(this, resultContinuation);
|
|
919
|
-
this.
|
|
917
|
+
this.a1n_1 = _this__u8e3s4;
|
|
920
918
|
}
|
|
921
919
|
protoOf($checkFullMatchCOROUTINE$).c9 = function () {
|
|
922
920
|
var suspendResult = this.w8_1;
|
|
@@ -929,13 +927,13 @@
|
|
|
929
927
|
this.u8_1 = 1;
|
|
930
928
|
continue $sm;
|
|
931
929
|
case 1:
|
|
932
|
-
if (!this.
|
|
933
|
-
this.
|
|
930
|
+
if (!this.a1n_1.d1m_1.yo()) {
|
|
931
|
+
this.c1n_1 = true;
|
|
934
932
|
this.u8_1 = 3;
|
|
935
933
|
continue $sm;
|
|
936
934
|
} else {
|
|
937
935
|
this.u8_1 = 2;
|
|
938
|
-
suspendResult = this.
|
|
936
|
+
suspendResult = this.a1n_1.z1l_1.w1l(VOID, this);
|
|
939
937
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
940
938
|
return suspendResult;
|
|
941
939
|
}
|
|
@@ -943,30 +941,30 @@
|
|
|
943
941
|
}
|
|
944
942
|
|
|
945
943
|
case 2:
|
|
946
|
-
this.
|
|
944
|
+
this.c1n_1 = suspendResult;
|
|
947
945
|
this.u8_1 = 3;
|
|
948
946
|
continue $sm;
|
|
949
947
|
case 3:
|
|
950
|
-
if (!this.
|
|
948
|
+
if (!this.c1n_1) {
|
|
951
949
|
this.u8_1 = 7;
|
|
952
950
|
continue $sm;
|
|
953
951
|
}
|
|
954
952
|
|
|
955
|
-
this.
|
|
956
|
-
if (this.
|
|
957
|
-
var oldMatchIndex = this.
|
|
958
|
-
while (this.
|
|
959
|
-
this.
|
|
953
|
+
this.b1n_1 = this.a1n_1.d1m_1.bp();
|
|
954
|
+
if (this.a1n_1.h1m_1 > 0 && !(this.b1n_1 === this.a1n_1.a1m_1.v(this.a1n_1.h1m_1))) {
|
|
955
|
+
var oldMatchIndex = this.a1n_1.h1m_1;
|
|
956
|
+
while (this.a1n_1.h1m_1 > 0 && !(this.b1n_1 === this.a1n_1.a1m_1.v(this.a1n_1.h1m_1))) {
|
|
957
|
+
this.a1n_1.h1m_1 = this.a1n_1.e1m_1[this.a1n_1.h1m_1 - 1 | 0];
|
|
960
958
|
}
|
|
961
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
962
|
-
checkBounds(this.
|
|
963
|
-
var tmp_0 = this.
|
|
964
|
-
var tmp_1 = this.
|
|
965
|
-
var tmp_2 = this.
|
|
966
|
-
tmp_0.
|
|
967
|
-
if (this.
|
|
959
|
+
var retained = fromInt(oldMatchIndex - this.a1n_1.h1m_1 | 0);
|
|
960
|
+
checkBounds(this.a1n_1, retained);
|
|
961
|
+
var tmp_0 = this.a1n_1;
|
|
962
|
+
var tmp_1 = this.a1n_1.g1m_1;
|
|
963
|
+
var tmp_2 = this.a1n_1.b1m_1.q1l();
|
|
964
|
+
tmp_0.g1m_1 = add(tmp_1, this.a1n_1.f1m_1.yp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
965
|
+
if (this.a1n_1.h1m_1 === 0 && !(this.b1n_1 === this.a1n_1.a1m_1.v(this.a1n_1.h1m_1))) {
|
|
968
966
|
this.u8_1 = 6;
|
|
969
|
-
suspendResult = writeByte(this.
|
|
967
|
+
suspendResult = writeByte(this.a1n_1.b1m_1, this.b1n_1, this);
|
|
970
968
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
969
|
return suspendResult;
|
|
972
970
|
}
|
|
@@ -984,17 +982,17 @@
|
|
|
984
982
|
this.u8_1 = 5;
|
|
985
983
|
continue $sm;
|
|
986
984
|
case 5:
|
|
987
|
-
this.
|
|
988
|
-
if (this.
|
|
985
|
+
this.a1n_1.h1m_1 = this.a1n_1.h1m_1 + 1 | 0;
|
|
986
|
+
if (this.a1n_1.h1m_1 === this.a1n_1.a1m_1.u()) {
|
|
989
987
|
return true;
|
|
990
988
|
}
|
|
991
989
|
|
|
992
|
-
this.
|
|
990
|
+
this.a1n_1.f1m_1.rq(this.b1n_1);
|
|
993
991
|
this.u8_1 = 1;
|
|
994
992
|
continue $sm;
|
|
995
993
|
case 6:
|
|
996
|
-
var _unary__edvuaz = this.
|
|
997
|
-
this.
|
|
994
|
+
var _unary__edvuaz = this.a1n_1.g1m_1;
|
|
995
|
+
this.a1n_1.g1m_1 = add(_unary__edvuaz, get_ONE());
|
|
998
996
|
return false;
|
|
999
997
|
case 7:
|
|
1000
998
|
return false;
|
|
@@ -1014,49 +1012,49 @@
|
|
|
1014
1012
|
};
|
|
1015
1013
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1016
1014
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1015
|
+
this.z1l_1 = channel;
|
|
1016
|
+
this.a1m_1 = matchString;
|
|
1017
|
+
this.b1m_1 = writeChannel;
|
|
1018
|
+
this.c1m_1 = limit;
|
|
1021
1019
|
// Inline function 'kotlin.require' call
|
|
1022
|
-
if (!(this.
|
|
1020
|
+
if (!(this.a1m_1.u() > 0)) {
|
|
1023
1021
|
var message = 'Empty match string not permitted for scanning';
|
|
1024
1022
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1025
1023
|
}
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1028
|
-
this.
|
|
1029
|
-
this.
|
|
1030
|
-
this.
|
|
1024
|
+
this.d1m_1 = this.z1l_1.n1l();
|
|
1025
|
+
this.e1m_1 = buildPartialMatchTable(this);
|
|
1026
|
+
this.f1m_1 = new Buffer();
|
|
1027
|
+
this.g1m_1 = new Long(0, 0);
|
|
1028
|
+
this.h1m_1 = 0;
|
|
1031
1029
|
}
|
|
1032
|
-
protoOf(ByteChannelScanner).
|
|
1030
|
+
protoOf(ByteChannelScanner).o1n = function (ignoreMissing, $completion) {
|
|
1033
1031
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1034
1032
|
tmp.w8_1 = Unit_instance;
|
|
1035
1033
|
tmp.x8_1 = null;
|
|
1036
1034
|
return tmp.c9();
|
|
1037
1035
|
};
|
|
1038
1036
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1037
|
+
this.p1n_1 = null;
|
|
1038
|
+
this.q1n_1 = new Buffer();
|
|
1041
1039
|
}
|
|
1042
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1043
|
-
return this.
|
|
1040
|
+
protoOf(ByteReadChannel$Companion$Empty$1).s1l = function () {
|
|
1041
|
+
return this.p1n_1;
|
|
1044
1042
|
};
|
|
1045
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1043
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1l = function () {
|
|
1046
1044
|
return true;
|
|
1047
1045
|
};
|
|
1048
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1049
|
-
return this.
|
|
1046
|
+
protoOf(ByteReadChannel$Companion$Empty$1).n1l = function () {
|
|
1047
|
+
return this.q1n_1;
|
|
1050
1048
|
};
|
|
1051
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1049
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v1l = function (min, $completion) {
|
|
1052
1050
|
return false;
|
|
1053
1051
|
};
|
|
1054
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1052
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y1l = function (cause) {
|
|
1055
1053
|
};
|
|
1056
1054
|
function Companion_0() {
|
|
1057
1055
|
Companion_instance_1 = this;
|
|
1058
1056
|
var tmp = this;
|
|
1059
|
-
tmp.
|
|
1057
|
+
tmp.r1n_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1060
1058
|
}
|
|
1061
1059
|
var Companion_instance_1;
|
|
1062
1060
|
function Companion_getInstance_0() {
|
|
@@ -1067,7 +1065,7 @@
|
|
|
1067
1065
|
function ByteReadChannel_1() {
|
|
1068
1066
|
}
|
|
1069
1067
|
function cancel_0(_this__u8e3s4) {
|
|
1070
|
-
_this__u8e3s4.
|
|
1068
|
+
_this__u8e3s4.y1l(IOException_init_$Create$('Channel was cancelled'));
|
|
1071
1069
|
}
|
|
1072
1070
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1073
1071
|
offset = offset === VOID ? 0 : offset;
|
|
@@ -1123,11 +1121,11 @@
|
|
|
1123
1121
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1124
1122
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1125
1123
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1126
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1124
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).o1n(ignoreMissing, $completion);
|
|
1127
1125
|
}
|
|
1128
1126
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
1129
1127
|
max = max === VOID ? 2147483647 : max;
|
|
1130
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
1128
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().f1r_1 : lineEnding;
|
|
1131
1129
|
var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
1132
1130
|
tmp.w8_1 = Unit_instance;
|
|
1133
1131
|
tmp.x8_1 = null;
|
|
@@ -1140,7 +1138,7 @@
|
|
|
1140
1138
|
return tmp.c9();
|
|
1141
1139
|
}
|
|
1142
1140
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1143
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1141
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1l();
|
|
1144
1142
|
if (tmp0_safe_receiver == null)
|
|
1145
1143
|
null;
|
|
1146
1144
|
else {
|
|
@@ -1149,7 +1147,7 @@
|
|
|
1149
1147
|
}
|
|
1150
1148
|
}
|
|
1151
1149
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1152
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1150
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1l();
|
|
1153
1151
|
if (tmp0_safe_receiver == null)
|
|
1154
1152
|
null;
|
|
1155
1153
|
else {
|
|
@@ -1164,7 +1162,7 @@
|
|
|
1164
1162
|
return tmp.c9();
|
|
1165
1163
|
}
|
|
1166
1164
|
function get_availableForRead(_this__u8e3s4) {
|
|
1167
|
-
return convertToInt(_this__u8e3s4.
|
|
1165
|
+
return convertToInt(_this__u8e3s4.n1l().xo().u());
|
|
1168
1166
|
}
|
|
1169
1167
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1170
1168
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1173,7 +1171,7 @@
|
|
|
1173
1171
|
return tmp.c9();
|
|
1174
1172
|
}
|
|
1175
1173
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1176
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1174
|
+
var tmp0_safe_receiver = _this__u8e3s4.s1l();
|
|
1177
1175
|
if (tmp0_safe_receiver == null)
|
|
1178
1176
|
null;
|
|
1179
1177
|
else {
|
|
@@ -1188,10 +1186,10 @@
|
|
|
1188
1186
|
}
|
|
1189
1187
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1190
1188
|
CoroutineImpl.call(this, resultContinuation);
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1189
|
+
this.a1o_1 = _this__u8e3s4;
|
|
1190
|
+
this.b1o_1 = buffer;
|
|
1191
|
+
this.c1o_1 = offset;
|
|
1192
|
+
this.d1o_1 = length;
|
|
1195
1193
|
}
|
|
1196
1194
|
protoOf($readAvailableCOROUTINE$).c9 = function () {
|
|
1197
1195
|
var suspendResult = this.w8_1;
|
|
@@ -1201,11 +1199,11 @@
|
|
|
1201
1199
|
switch (tmp) {
|
|
1202
1200
|
case 0:
|
|
1203
1201
|
this.v8_1 = 3;
|
|
1204
|
-
if (this.
|
|
1202
|
+
if (this.a1o_1.u1l())
|
|
1205
1203
|
return -1;
|
|
1206
|
-
if (this.
|
|
1204
|
+
if (this.a1o_1.n1l().yo()) {
|
|
1207
1205
|
this.u8_1 = 1;
|
|
1208
|
-
suspendResult = this.
|
|
1206
|
+
suspendResult = this.a1o_1.w1l(VOID, this);
|
|
1209
1207
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1210
1208
|
return suspendResult;
|
|
1211
1209
|
}
|
|
@@ -1219,9 +1217,9 @@
|
|
|
1219
1217
|
this.u8_1 = 2;
|
|
1220
1218
|
continue $sm;
|
|
1221
1219
|
case 2:
|
|
1222
|
-
if (this.
|
|
1220
|
+
if (this.a1o_1.u1l())
|
|
1223
1221
|
return -1;
|
|
1224
|
-
return readAvailable_0(this.
|
|
1222
|
+
return readAvailable_0(this.a1o_1.n1l(), this.b1o_1, this.c1o_1, this.d1o_1);
|
|
1225
1223
|
case 3:
|
|
1226
1224
|
throw this.x8_1;
|
|
1227
1225
|
}
|
|
@@ -1238,8 +1236,8 @@
|
|
|
1238
1236
|
};
|
|
1239
1237
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
1240
1238
|
CoroutineImpl.call(this, resultContinuation);
|
|
1241
|
-
this.
|
|
1242
|
-
this.
|
|
1239
|
+
this.m1o_1 = _this__u8e3s4;
|
|
1240
|
+
this.n1o_1 = channel;
|
|
1243
1241
|
}
|
|
1244
1242
|
protoOf($copyToCOROUTINE$).c9 = function () {
|
|
1245
1243
|
var suspendResult = this.w8_1;
|
|
@@ -1249,7 +1247,7 @@
|
|
|
1249
1247
|
switch (tmp) {
|
|
1250
1248
|
case 0:
|
|
1251
1249
|
this.v8_1 = 11;
|
|
1252
|
-
this.
|
|
1250
|
+
this.o1o_1 = new Long(0, 0);
|
|
1253
1251
|
this.u8_1 = 1;
|
|
1254
1252
|
continue $sm;
|
|
1255
1253
|
case 1:
|
|
@@ -1258,14 +1256,14 @@
|
|
|
1258
1256
|
this.u8_1 = 2;
|
|
1259
1257
|
continue $sm;
|
|
1260
1258
|
case 2:
|
|
1261
|
-
if (!!this.
|
|
1259
|
+
if (!!this.m1o_1.u1l()) {
|
|
1262
1260
|
this.u8_1 = 5;
|
|
1263
1261
|
continue $sm;
|
|
1264
1262
|
}
|
|
1265
1263
|
|
|
1266
|
-
this.
|
|
1264
|
+
this.o1o_1 = add(this.o1o_1, this.m1o_1.n1l().bq(this.n1o_1.q1l()));
|
|
1267
1265
|
this.u8_1 = 3;
|
|
1268
|
-
suspendResult = this.
|
|
1266
|
+
suspendResult = this.n1o_1.l1l(this);
|
|
1269
1267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1270
1268
|
return suspendResult;
|
|
1271
1269
|
}
|
|
@@ -1273,7 +1271,7 @@
|
|
|
1273
1271
|
continue $sm;
|
|
1274
1272
|
case 3:
|
|
1275
1273
|
this.u8_1 = 4;
|
|
1276
|
-
suspendResult = this.
|
|
1274
|
+
suspendResult = this.m1o_1.w1l(VOID, this);
|
|
1277
1275
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1278
1276
|
return suspendResult;
|
|
1279
1277
|
}
|
|
@@ -1291,8 +1289,8 @@
|
|
|
1291
1289
|
var tmp_0 = this.x8_1;
|
|
1292
1290
|
if (tmp_0 instanceof Error) {
|
|
1293
1291
|
var cause = this.x8_1;
|
|
1294
|
-
this.
|
|
1295
|
-
close_0(this.
|
|
1292
|
+
this.m1o_1.y1l(cause);
|
|
1293
|
+
close_0(this.n1o_1, cause);
|
|
1296
1294
|
throw cause;
|
|
1297
1295
|
} else {
|
|
1298
1296
|
throw this.x8_1;
|
|
@@ -1300,27 +1298,27 @@
|
|
|
1300
1298
|
|
|
1301
1299
|
case 7:
|
|
1302
1300
|
this.v8_1 = 11;
|
|
1303
|
-
this.
|
|
1301
|
+
this.p1o_1 = this.x8_1;
|
|
1304
1302
|
this.u8_1 = 8;
|
|
1305
|
-
suspendResult = this.
|
|
1303
|
+
suspendResult = this.n1o_1.l1l(this);
|
|
1306
1304
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1307
1305
|
return suspendResult;
|
|
1308
1306
|
}
|
|
1309
1307
|
|
|
1310
1308
|
continue $sm;
|
|
1311
1309
|
case 8:
|
|
1312
|
-
throw this.
|
|
1310
|
+
throw this.p1o_1;
|
|
1313
1311
|
case 9:
|
|
1314
1312
|
this.v8_1 = 11;
|
|
1315
1313
|
this.u8_1 = 10;
|
|
1316
|
-
suspendResult = this.
|
|
1314
|
+
suspendResult = this.n1o_1.l1l(this);
|
|
1317
1315
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1318
1316
|
return suspendResult;
|
|
1319
1317
|
}
|
|
1320
1318
|
|
|
1321
1319
|
continue $sm;
|
|
1322
1320
|
case 10:
|
|
1323
|
-
return this.
|
|
1321
|
+
return this.o1o_1;
|
|
1324
1322
|
case 11:
|
|
1325
1323
|
throw this.x8_1;
|
|
1326
1324
|
}
|
|
@@ -1337,7 +1335,7 @@
|
|
|
1337
1335
|
};
|
|
1338
1336
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1339
1337
|
CoroutineImpl.call(this, resultContinuation);
|
|
1340
|
-
this.
|
|
1338
|
+
this.y1o_1 = _this__u8e3s4;
|
|
1341
1339
|
}
|
|
1342
1340
|
protoOf($readRemainingCOROUTINE$).c9 = function () {
|
|
1343
1341
|
var suspendResult = this.w8_1;
|
|
@@ -1347,18 +1345,18 @@
|
|
|
1347
1345
|
switch (tmp) {
|
|
1348
1346
|
case 0:
|
|
1349
1347
|
this.v8_1 = 4;
|
|
1350
|
-
this.
|
|
1348
|
+
this.z1o_1 = BytePacketBuilder();
|
|
1351
1349
|
this.u8_1 = 1;
|
|
1352
1350
|
continue $sm;
|
|
1353
1351
|
case 1:
|
|
1354
|
-
if (!!this.
|
|
1352
|
+
if (!!this.y1o_1.u1l()) {
|
|
1355
1353
|
this.u8_1 = 3;
|
|
1356
1354
|
continue $sm;
|
|
1357
1355
|
}
|
|
1358
1356
|
|
|
1359
|
-
this.
|
|
1357
|
+
this.z1o_1.qq(this.y1o_1.n1l());
|
|
1360
1358
|
this.u8_1 = 2;
|
|
1361
|
-
suspendResult = this.
|
|
1359
|
+
suspendResult = this.y1o_1.w1l(VOID, this);
|
|
1362
1360
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1363
1361
|
return suspendResult;
|
|
1364
1362
|
}
|
|
@@ -1368,8 +1366,8 @@
|
|
|
1368
1366
|
this.u8_1 = 1;
|
|
1369
1367
|
continue $sm;
|
|
1370
1368
|
case 3:
|
|
1371
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1372
|
-
return this.
|
|
1369
|
+
rethrowCloseCauseIfNeeded_0(this.y1o_1);
|
|
1370
|
+
return this.z1o_1.xo();
|
|
1373
1371
|
case 4:
|
|
1374
1372
|
throw this.x8_1;
|
|
1375
1373
|
}
|
|
@@ -1386,7 +1384,7 @@
|
|
|
1386
1384
|
};
|
|
1387
1385
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1388
1386
|
CoroutineImpl.call(this, resultContinuation);
|
|
1389
|
-
this.
|
|
1387
|
+
this.i1p_1 = _this__u8e3s4;
|
|
1390
1388
|
}
|
|
1391
1389
|
protoOf($toByteArrayCOROUTINE$).c9 = function () {
|
|
1392
1390
|
var suspendResult = this.w8_1;
|
|
@@ -1397,7 +1395,7 @@
|
|
|
1397
1395
|
case 0:
|
|
1398
1396
|
this.v8_1 = 2;
|
|
1399
1397
|
this.u8_1 = 1;
|
|
1400
|
-
suspendResult = readBuffer(this.
|
|
1398
|
+
suspendResult = readBuffer(this.i1p_1, this);
|
|
1401
1399
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1402
1400
|
return suspendResult;
|
|
1403
1401
|
}
|
|
@@ -1422,9 +1420,9 @@
|
|
|
1422
1420
|
};
|
|
1423
1421
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1424
1422
|
CoroutineImpl.call(this, resultContinuation);
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1423
|
+
this.r1p_1 = _this__u8e3s4;
|
|
1424
|
+
this.s1p_1 = channel;
|
|
1425
|
+
this.t1p_1 = limit;
|
|
1428
1426
|
}
|
|
1429
1427
|
protoOf($copyToCOROUTINE$_0).c9 = function () {
|
|
1430
1428
|
var suspendResult = this.w8_1;
|
|
@@ -1434,7 +1432,7 @@
|
|
|
1434
1432
|
switch (tmp) {
|
|
1435
1433
|
case 0:
|
|
1436
1434
|
this.v8_1 = 12;
|
|
1437
|
-
this.
|
|
1435
|
+
this.u1p_1 = this.t1p_1;
|
|
1438
1436
|
this.u8_1 = 1;
|
|
1439
1437
|
continue $sm;
|
|
1440
1438
|
case 1:
|
|
@@ -1443,14 +1441,14 @@
|
|
|
1443
1441
|
this.u8_1 = 2;
|
|
1444
1442
|
continue $sm;
|
|
1445
1443
|
case 2:
|
|
1446
|
-
if (!(!this.
|
|
1444
|
+
if (!(!this.r1p_1.u1l() && compare(this.u1p_1, new Long(0, 0)) > 0)) {
|
|
1447
1445
|
this.u8_1 = 6;
|
|
1448
1446
|
continue $sm;
|
|
1449
1447
|
}
|
|
1450
1448
|
|
|
1451
|
-
if (this.
|
|
1449
|
+
if (this.r1p_1.n1l().yo()) {
|
|
1452
1450
|
this.u8_1 = 3;
|
|
1453
|
-
suspendResult = this.
|
|
1451
|
+
suspendResult = this.r1p_1.w1l(VOID, this);
|
|
1454
1452
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1455
1453
|
return suspendResult;
|
|
1456
1454
|
}
|
|
@@ -1464,13 +1462,13 @@
|
|
|
1464
1462
|
this.u8_1 = 4;
|
|
1465
1463
|
continue $sm;
|
|
1466
1464
|
case 4:
|
|
1467
|
-
var tmp0 = this.
|
|
1468
|
-
var b = get_remaining(this.
|
|
1465
|
+
var tmp0 = this.u1p_1;
|
|
1466
|
+
var b = get_remaining(this.r1p_1.n1l());
|
|
1469
1467
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1470
|
-
this.
|
|
1471
|
-
this.
|
|
1468
|
+
this.r1p_1.n1l().aq(this.s1p_1.q1l(), count);
|
|
1469
|
+
this.u1p_1 = subtract(this.u1p_1, count);
|
|
1472
1470
|
this.u8_1 = 5;
|
|
1473
|
-
suspendResult = this.
|
|
1471
|
+
suspendResult = this.s1p_1.l1l(this);
|
|
1474
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1475
1473
|
return suspendResult;
|
|
1476
1474
|
}
|
|
@@ -1488,8 +1486,8 @@
|
|
|
1488
1486
|
var tmp_0 = this.x8_1;
|
|
1489
1487
|
if (tmp_0 instanceof Error) {
|
|
1490
1488
|
var cause = this.x8_1;
|
|
1491
|
-
this.
|
|
1492
|
-
close_0(this.
|
|
1489
|
+
this.r1p_1.y1l(cause);
|
|
1490
|
+
close_0(this.s1p_1, cause);
|
|
1493
1491
|
throw cause;
|
|
1494
1492
|
} else {
|
|
1495
1493
|
throw this.x8_1;
|
|
@@ -1497,27 +1495,27 @@
|
|
|
1497
1495
|
|
|
1498
1496
|
case 8:
|
|
1499
1497
|
this.v8_1 = 12;
|
|
1500
|
-
this.
|
|
1498
|
+
this.v1p_1 = this.x8_1;
|
|
1501
1499
|
this.u8_1 = 9;
|
|
1502
|
-
suspendResult = this.
|
|
1500
|
+
suspendResult = this.s1p_1.l1l(this);
|
|
1503
1501
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1504
1502
|
return suspendResult;
|
|
1505
1503
|
}
|
|
1506
1504
|
|
|
1507
1505
|
continue $sm;
|
|
1508
1506
|
case 9:
|
|
1509
|
-
throw this.
|
|
1507
|
+
throw this.v1p_1;
|
|
1510
1508
|
case 10:
|
|
1511
1509
|
this.v8_1 = 12;
|
|
1512
1510
|
this.u8_1 = 11;
|
|
1513
|
-
suspendResult = this.
|
|
1511
|
+
suspendResult = this.s1p_1.l1l(this);
|
|
1514
1512
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1515
1513
|
return suspendResult;
|
|
1516
1514
|
}
|
|
1517
1515
|
|
|
1518
1516
|
continue $sm;
|
|
1519
1517
|
case 11:
|
|
1520
|
-
return subtract(this.
|
|
1518
|
+
return subtract(this.t1p_1, this.u1p_1);
|
|
1521
1519
|
case 12:
|
|
1522
1520
|
throw this.x8_1;
|
|
1523
1521
|
}
|
|
@@ -1534,8 +1532,8 @@
|
|
|
1534
1532
|
};
|
|
1535
1533
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1536
1534
|
CoroutineImpl.call(this, resultContinuation);
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1535
|
+
this.e1q_1 = _this__u8e3s4;
|
|
1536
|
+
this.f1q_1 = max;
|
|
1539
1537
|
}
|
|
1540
1538
|
protoOf($discardCOROUTINE$).c9 = function () {
|
|
1541
1539
|
var suspendResult = this.w8_1;
|
|
@@ -1545,18 +1543,18 @@
|
|
|
1545
1543
|
switch (tmp) {
|
|
1546
1544
|
case 0:
|
|
1547
1545
|
this.v8_1 = 5;
|
|
1548
|
-
this.
|
|
1546
|
+
this.g1q_1 = this.f1q_1;
|
|
1549
1547
|
this.u8_1 = 1;
|
|
1550
1548
|
continue $sm;
|
|
1551
1549
|
case 1:
|
|
1552
|
-
if (!(compare(this.
|
|
1550
|
+
if (!(compare(this.g1q_1, new Long(0, 0)) > 0 && !this.e1q_1.u1l())) {
|
|
1553
1551
|
this.u8_1 = 4;
|
|
1554
1552
|
continue $sm;
|
|
1555
1553
|
}
|
|
1556
1554
|
|
|
1557
|
-
if (get_availableForRead(this.
|
|
1555
|
+
if (get_availableForRead(this.e1q_1) === 0) {
|
|
1558
1556
|
this.u8_1 = 2;
|
|
1559
|
-
suspendResult = this.
|
|
1557
|
+
suspendResult = this.e1q_1.w1l(VOID, this);
|
|
1560
1558
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1561
1559
|
return suspendResult;
|
|
1562
1560
|
}
|
|
@@ -1570,15 +1568,15 @@
|
|
|
1570
1568
|
this.u8_1 = 3;
|
|
1571
1569
|
continue $sm;
|
|
1572
1570
|
case 3:
|
|
1573
|
-
var tmp0 = this.
|
|
1574
|
-
var b = get_remaining(this.
|
|
1571
|
+
var tmp0 = this.g1q_1;
|
|
1572
|
+
var b = get_remaining(this.e1q_1.n1l());
|
|
1575
1573
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1576
|
-
discard_0(this.
|
|
1577
|
-
this.
|
|
1574
|
+
discard_0(this.e1q_1.n1l(), count);
|
|
1575
|
+
this.g1q_1 = subtract(this.g1q_1, count);
|
|
1578
1576
|
this.u8_1 = 1;
|
|
1579
1577
|
continue $sm;
|
|
1580
1578
|
case 4:
|
|
1581
|
-
return subtract(this.
|
|
1579
|
+
return subtract(this.f1q_1, this.g1q_1);
|
|
1582
1580
|
case 5:
|
|
1583
1581
|
throw this.x8_1;
|
|
1584
1582
|
}
|
|
@@ -1595,8 +1593,8 @@
|
|
|
1595
1593
|
};
|
|
1596
1594
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1597
1595
|
CoroutineImpl.call(this, resultContinuation);
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1596
|
+
this.p1q_1 = _this__u8e3s4;
|
|
1597
|
+
this.q1q_1 = byteString;
|
|
1600
1598
|
}
|
|
1601
1599
|
protoOf($skipIfFoundCOROUTINE$).c9 = function () {
|
|
1602
1600
|
var suspendResult = this.w8_1;
|
|
@@ -1607,7 +1605,7 @@
|
|
|
1607
1605
|
case 0:
|
|
1608
1606
|
this.v8_1 = 4;
|
|
1609
1607
|
this.u8_1 = 1;
|
|
1610
|
-
suspendResult = peek(this.
|
|
1608
|
+
suspendResult = peek(this.p1q_1, this.q1q_1.u(), this);
|
|
1611
1609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1612
1610
|
return suspendResult;
|
|
1613
1611
|
}
|
|
@@ -1615,9 +1613,9 @@
|
|
|
1615
1613
|
continue $sm;
|
|
1616
1614
|
case 1:
|
|
1617
1615
|
var ARGUMENT = suspendResult;
|
|
1618
|
-
if (equals(ARGUMENT, this.
|
|
1616
|
+
if (equals(ARGUMENT, this.q1q_1)) {
|
|
1619
1617
|
this.u8_1 = 3;
|
|
1620
|
-
suspendResult = discard(this.
|
|
1618
|
+
suspendResult = discard(this.p1q_1, fromInt(this.q1q_1.u()), this);
|
|
1621
1619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1622
1620
|
return suspendResult;
|
|
1623
1621
|
}
|
|
@@ -1647,8 +1645,8 @@
|
|
|
1647
1645
|
};
|
|
1648
1646
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1649
1647
|
CoroutineImpl.call(this, resultContinuation);
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1648
|
+
this.z1q_1 = _this__u8e3s4;
|
|
1649
|
+
this.a1r_1 = packet;
|
|
1652
1650
|
}
|
|
1653
1651
|
protoOf($readPacketCOROUTINE$).c9 = function () {
|
|
1654
1652
|
var suspendResult = this.w8_1;
|
|
@@ -1658,18 +1656,18 @@
|
|
|
1658
1656
|
switch (tmp) {
|
|
1659
1657
|
case 0:
|
|
1660
1658
|
this.v8_1 = 6;
|
|
1661
|
-
this.
|
|
1659
|
+
this.b1r_1 = new Buffer();
|
|
1662
1660
|
this.u8_1 = 1;
|
|
1663
1661
|
continue $sm;
|
|
1664
1662
|
case 1:
|
|
1665
|
-
if (!(compare(this.
|
|
1663
|
+
if (!(compare(this.b1r_1.u(), fromInt(this.a1r_1)) < 0)) {
|
|
1666
1664
|
this.u8_1 = 5;
|
|
1667
1665
|
continue $sm;
|
|
1668
1666
|
}
|
|
1669
1667
|
|
|
1670
|
-
if (this.
|
|
1668
|
+
if (this.z1q_1.n1l().yo()) {
|
|
1671
1669
|
this.u8_1 = 2;
|
|
1672
|
-
suspendResult = this.
|
|
1670
|
+
suspendResult = this.z1q_1.w1l(VOID, this);
|
|
1673
1671
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1674
1672
|
return suspendResult;
|
|
1675
1673
|
}
|
|
@@ -1683,7 +1681,7 @@
|
|
|
1683
1681
|
this.u8_1 = 3;
|
|
1684
1682
|
continue $sm;
|
|
1685
1683
|
case 3:
|
|
1686
|
-
if (this.
|
|
1684
|
+
if (this.z1q_1.u1l()) {
|
|
1687
1685
|
this.u8_1 = 5;
|
|
1688
1686
|
continue $sm;
|
|
1689
1687
|
} else {
|
|
@@ -1692,20 +1690,20 @@
|
|
|
1692
1690
|
}
|
|
1693
1691
|
|
|
1694
1692
|
case 4:
|
|
1695
|
-
if (compare(get_remaining(this.
|
|
1696
|
-
this.
|
|
1693
|
+
if (compare(get_remaining(this.z1q_1.n1l()), subtract(numberToLong(this.a1r_1), this.b1r_1.u())) > 0) {
|
|
1694
|
+
this.z1q_1.n1l().aq(this.b1r_1, subtract(numberToLong(this.a1r_1), this.b1r_1.u()));
|
|
1697
1695
|
} else {
|
|
1698
|
-
this.
|
|
1696
|
+
this.z1q_1.n1l().bq(this.b1r_1);
|
|
1699
1697
|
}
|
|
1700
1698
|
|
|
1701
1699
|
this.u8_1 = 1;
|
|
1702
1700
|
continue $sm;
|
|
1703
1701
|
case 5:
|
|
1704
|
-
if (compare(this.
|
|
1705
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1702
|
+
if (compare(this.b1r_1.u(), fromInt(this.a1r_1)) < 0) {
|
|
1703
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.a1r_1 + ' bytes but only ' + this.b1r_1.u().toString() + ' available');
|
|
1706
1704
|
}
|
|
1707
1705
|
|
|
1708
|
-
return this.
|
|
1706
|
+
return this.b1r_1;
|
|
1709
1707
|
case 6:
|
|
1710
1708
|
throw this.x8_1;
|
|
1711
1709
|
}
|
|
@@ -1722,10 +1720,10 @@
|
|
|
1722
1720
|
};
|
|
1723
1721
|
function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1724
1722
|
CoroutineImpl.call(this, resultContinuation);
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1727
|
-
this.
|
|
1728
|
-
this.
|
|
1723
|
+
this.p1r_1 = _this__u8e3s4;
|
|
1724
|
+
this.q1r_1 = out;
|
|
1725
|
+
this.r1r_1 = max;
|
|
1726
|
+
this.s1r_1 = lineEnding;
|
|
1729
1727
|
}
|
|
1730
1728
|
protoOf($readUTF8LineToCOROUTINE$).c9 = function () {
|
|
1731
1729
|
var suspendResult = this.w8_1;
|
|
@@ -1735,9 +1733,9 @@
|
|
|
1735
1733
|
switch (tmp) {
|
|
1736
1734
|
case 0:
|
|
1737
1735
|
this.v8_1 = 21;
|
|
1738
|
-
if (this.
|
|
1736
|
+
if (this.p1r_1.n1l().yo()) {
|
|
1739
1737
|
this.u8_1 = 1;
|
|
1740
|
-
suspendResult = this.
|
|
1738
|
+
suspendResult = this.p1r_1.w1l(VOID, this);
|
|
1741
1739
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1742
1740
|
return suspendResult;
|
|
1743
1741
|
}
|
|
@@ -1751,15 +1749,15 @@
|
|
|
1751
1749
|
this.u8_1 = 2;
|
|
1752
1750
|
continue $sm;
|
|
1753
1751
|
case 2:
|
|
1754
|
-
if (this.
|
|
1752
|
+
if (this.p1r_1.u1l())
|
|
1755
1753
|
return false;
|
|
1756
1754
|
var tmp_0 = this;
|
|
1757
|
-
tmp_0.
|
|
1755
|
+
tmp_0.y1r_1 = new Buffer();
|
|
1758
1756
|
this.u8_1 = 3;
|
|
1759
1757
|
continue $sm;
|
|
1760
1758
|
case 3:
|
|
1761
|
-
this.
|
|
1762
|
-
this.
|
|
1759
|
+
this.v1r_1 = this.y1r_1;
|
|
1760
|
+
this.u1r_1 = null;
|
|
1763
1761
|
this.u8_1 = 4;
|
|
1764
1762
|
continue $sm;
|
|
1765
1763
|
case 4:
|
|
@@ -1771,11 +1769,11 @@
|
|
|
1771
1769
|
case 6:
|
|
1772
1770
|
this.v8_1 = 18;
|
|
1773
1771
|
this.v8_1 = 17;
|
|
1774
|
-
this.
|
|
1772
|
+
this.x1r_1 = this.v1r_1;
|
|
1775
1773
|
this.u8_1 = 7;
|
|
1776
1774
|
continue $sm;
|
|
1777
1775
|
case 7:
|
|
1778
|
-
if (!!this.
|
|
1776
|
+
if (!!this.p1r_1.u1l()) {
|
|
1779
1777
|
this.u8_1 = 14;
|
|
1780
1778
|
continue $sm;
|
|
1781
1779
|
}
|
|
@@ -1783,16 +1781,16 @@
|
|
|
1783
1781
|
this.u8_1 = 8;
|
|
1784
1782
|
continue $sm;
|
|
1785
1783
|
case 8:
|
|
1786
|
-
if (!!this.
|
|
1784
|
+
if (!!this.p1r_1.n1l().yo()) {
|
|
1787
1785
|
this.u8_1 = 12;
|
|
1788
1786
|
continue $sm;
|
|
1789
1787
|
}
|
|
1790
1788
|
|
|
1791
|
-
var b = this.
|
|
1789
|
+
var b = this.p1r_1.n1l().bp();
|
|
1792
1790
|
if (b === 13) {
|
|
1793
|
-
if (this.
|
|
1791
|
+
if (this.p1r_1.n1l().yo()) {
|
|
1794
1792
|
this.u8_1 = 10;
|
|
1795
|
-
suspendResult = this.
|
|
1793
|
+
suspendResult = this.p1r_1.w1l(VOID, this);
|
|
1796
1794
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1797
1795
|
return suspendResult;
|
|
1798
1796
|
}
|
|
@@ -1803,14 +1801,14 @@
|
|
|
1803
1801
|
}
|
|
1804
1802
|
} else {
|
|
1805
1803
|
if (b === 10) {
|
|
1806
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1804
|
+
readUTF8LineTo$checkLineEndingAllowed(this.s1r_1, Companion_getInstance_1().d1r_1);
|
|
1805
|
+
this.q1r_1.q(readString(this.x1r_1));
|
|
1806
|
+
this.w1r_1 = true;
|
|
1809
1807
|
this.v8_1 = 21;
|
|
1810
1808
|
this.u8_1 = 15;
|
|
1811
1809
|
continue $sm;
|
|
1812
1810
|
} else {
|
|
1813
|
-
this.
|
|
1811
|
+
this.x1r_1.rq(b);
|
|
1814
1812
|
this.u8_1 = 9;
|
|
1815
1813
|
continue $sm;
|
|
1816
1814
|
}
|
|
@@ -1823,25 +1821,25 @@
|
|
|
1823
1821
|
this.u8_1 = 11;
|
|
1824
1822
|
continue $sm;
|
|
1825
1823
|
case 11:
|
|
1826
|
-
if (this.
|
|
1827
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1828
|
-
discard_0(this.
|
|
1824
|
+
if (this.p1r_1.n1l().xo().tp(new Long(0, 0)) === 10) {
|
|
1825
|
+
readUTF8LineTo$checkLineEndingAllowed(this.s1r_1, Companion_getInstance_1().e1r_1);
|
|
1826
|
+
discard_0(this.p1r_1.n1l(), new Long(1, 0));
|
|
1829
1827
|
} else {
|
|
1830
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1828
|
+
readUTF8LineTo$checkLineEndingAllowed(this.s1r_1, Companion_getInstance_1().c1r_1);
|
|
1831
1829
|
}
|
|
1832
1830
|
|
|
1833
|
-
this.
|
|
1834
|
-
this.
|
|
1831
|
+
this.q1r_1.q(readString(this.x1r_1));
|
|
1832
|
+
this.w1r_1 = true;
|
|
1835
1833
|
this.v8_1 = 21;
|
|
1836
1834
|
this.u8_1 = 15;
|
|
1837
1835
|
continue $sm;
|
|
1838
1836
|
case 12:
|
|
1839
|
-
if (compare(this.
|
|
1840
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1837
|
+
if (compare(this.x1r_1.u(), fromInt(this.r1r_1)) >= 0) {
|
|
1838
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.r1r_1 + ' characters');
|
|
1841
1839
|
}
|
|
1842
1840
|
|
|
1843
1841
|
this.u8_1 = 13;
|
|
1844
|
-
suspendResult = this.
|
|
1842
|
+
suspendResult = this.p1r_1.w1l(VOID, this);
|
|
1845
1843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1846
1844
|
return suspendResult;
|
|
1847
1845
|
}
|
|
@@ -1852,26 +1850,26 @@
|
|
|
1852
1850
|
continue $sm;
|
|
1853
1851
|
case 14:
|
|
1854
1852
|
var tmp_1 = this;
|
|
1855
|
-
var this_0 = compare(this.
|
|
1853
|
+
var this_0 = compare(this.x1r_1.u(), new Long(0, 0)) > 0;
|
|
1856
1854
|
if (this_0) {
|
|
1857
|
-
this.
|
|
1855
|
+
this.q1r_1.q(readString(this.x1r_1));
|
|
1858
1856
|
}
|
|
1859
1857
|
|
|
1860
|
-
tmp_1.
|
|
1858
|
+
tmp_1.w1r_1 = this_0;
|
|
1861
1859
|
this.v8_1 = 21;
|
|
1862
1860
|
this.u8_1 = 15;
|
|
1863
1861
|
var tmp_2 = this;
|
|
1864
1862
|
continue $sm;
|
|
1865
1863
|
case 15:
|
|
1866
|
-
var tmp_3 = this.
|
|
1864
|
+
var tmp_3 = this.w1r_1;
|
|
1867
1865
|
this.v8_1 = 21;
|
|
1868
|
-
closeFinally(this.
|
|
1866
|
+
closeFinally(this.v1r_1, this.u1r_1);
|
|
1869
1867
|
return tmp_3;
|
|
1870
1868
|
case 16:
|
|
1871
1869
|
this.v8_1 = 21;
|
|
1872
1870
|
var tmp_4 = this;
|
|
1873
|
-
closeFinally(this.
|
|
1874
|
-
tmp_4.
|
|
1871
|
+
closeFinally(this.v1r_1, this.u1r_1);
|
|
1872
|
+
tmp_4.t1r_1 = Unit_instance;
|
|
1875
1873
|
this.u8_1 = 20;
|
|
1876
1874
|
continue $sm;
|
|
1877
1875
|
case 17:
|
|
@@ -1880,7 +1878,7 @@
|
|
|
1880
1878
|
if (tmp_5 instanceof Error) {
|
|
1881
1879
|
var e = this.x8_1;
|
|
1882
1880
|
var tmp_6 = this;
|
|
1883
|
-
this.
|
|
1881
|
+
this.u1r_1 = e;
|
|
1884
1882
|
throw e;
|
|
1885
1883
|
} else {
|
|
1886
1884
|
throw this.x8_1;
|
|
@@ -1889,11 +1887,11 @@
|
|
|
1889
1887
|
case 18:
|
|
1890
1888
|
this.v8_1 = 21;
|
|
1891
1889
|
var t = this.x8_1;
|
|
1892
|
-
closeFinally(this.
|
|
1890
|
+
closeFinally(this.v1r_1, this.u1r_1);
|
|
1893
1891
|
throw t;
|
|
1894
1892
|
case 19:
|
|
1895
1893
|
this.v8_1 = 21;
|
|
1896
|
-
closeFinally(this.
|
|
1894
|
+
closeFinally(this.v1r_1, this.u1r_1);
|
|
1897
1895
|
if (false) {
|
|
1898
1896
|
this.u8_1 = 3;
|
|
1899
1897
|
continue $sm;
|
|
@@ -1919,8 +1917,8 @@
|
|
|
1919
1917
|
};
|
|
1920
1918
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1921
1919
|
CoroutineImpl.call(this, resultContinuation);
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1920
|
+
this.h1s_1 = _this__u8e3s4;
|
|
1921
|
+
this.i1s_1 = max;
|
|
1924
1922
|
}
|
|
1925
1923
|
protoOf($readRemainingCOROUTINE$_0).c9 = function () {
|
|
1926
1924
|
var suspendResult = this.w8_1;
|
|
@@ -1930,26 +1928,26 @@
|
|
|
1930
1928
|
switch (tmp) {
|
|
1931
1929
|
case 0:
|
|
1932
1930
|
this.v8_1 = 4;
|
|
1933
|
-
this.
|
|
1934
|
-
this.
|
|
1931
|
+
this.j1s_1 = BytePacketBuilder();
|
|
1932
|
+
this.k1s_1 = this.i1s_1;
|
|
1935
1933
|
this.u8_1 = 1;
|
|
1936
1934
|
continue $sm;
|
|
1937
1935
|
case 1:
|
|
1938
|
-
if (!(!this.
|
|
1936
|
+
if (!(!this.h1s_1.u1l() && compare(this.k1s_1, new Long(0, 0)) > 0)) {
|
|
1939
1937
|
this.u8_1 = 3;
|
|
1940
1938
|
continue $sm;
|
|
1941
1939
|
}
|
|
1942
1940
|
|
|
1943
|
-
if (compare(this.
|
|
1944
|
-
this.
|
|
1945
|
-
this.
|
|
1941
|
+
if (compare(this.k1s_1, get_remaining(this.h1s_1.n1l())) >= 0) {
|
|
1942
|
+
this.k1s_1 = subtract(this.k1s_1, get_remaining(this.h1s_1.n1l()));
|
|
1943
|
+
this.h1s_1.n1l().bq(this.j1s_1);
|
|
1946
1944
|
} else {
|
|
1947
|
-
this.
|
|
1948
|
-
this.
|
|
1945
|
+
this.h1s_1.n1l().aq(this.j1s_1, this.k1s_1);
|
|
1946
|
+
this.k1s_1 = new Long(0, 0);
|
|
1949
1947
|
}
|
|
1950
1948
|
|
|
1951
1949
|
this.u8_1 = 2;
|
|
1952
|
-
suspendResult = this.
|
|
1950
|
+
suspendResult = this.h1s_1.w1l(VOID, this);
|
|
1953
1951
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1954
1952
|
return suspendResult;
|
|
1955
1953
|
}
|
|
@@ -1959,7 +1957,7 @@
|
|
|
1959
1957
|
this.u8_1 = 1;
|
|
1960
1958
|
continue $sm;
|
|
1961
1959
|
case 3:
|
|
1962
|
-
return this.
|
|
1960
|
+
return this.j1s_1.xo();
|
|
1963
1961
|
case 4:
|
|
1964
1962
|
throw this.x8_1;
|
|
1965
1963
|
}
|
|
@@ -1976,7 +1974,7 @@
|
|
|
1976
1974
|
};
|
|
1977
1975
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1978
1976
|
CoroutineImpl.call(this, resultContinuation);
|
|
1979
|
-
this.
|
|
1977
|
+
this.t1s_1 = _this__u8e3s4;
|
|
1980
1978
|
}
|
|
1981
1979
|
protoOf($readBufferCOROUTINE$).c9 = function () {
|
|
1982
1980
|
var suspendResult = this.w8_1;
|
|
@@ -1986,18 +1984,18 @@
|
|
|
1986
1984
|
switch (tmp) {
|
|
1987
1985
|
case 0:
|
|
1988
1986
|
this.v8_1 = 4;
|
|
1989
|
-
this.
|
|
1987
|
+
this.u1s_1 = new Buffer();
|
|
1990
1988
|
this.u8_1 = 1;
|
|
1991
1989
|
continue $sm;
|
|
1992
1990
|
case 1:
|
|
1993
|
-
if (!!this.
|
|
1991
|
+
if (!!this.t1s_1.u1l()) {
|
|
1994
1992
|
this.u8_1 = 3;
|
|
1995
1993
|
continue $sm;
|
|
1996
1994
|
}
|
|
1997
1995
|
|
|
1998
|
-
this.
|
|
1996
|
+
this.u1s_1.qq(this.t1s_1.n1l());
|
|
1999
1997
|
this.u8_1 = 2;
|
|
2000
|
-
suspendResult = this.
|
|
1998
|
+
suspendResult = this.t1s_1.w1l(VOID, this);
|
|
2001
1999
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2002
2000
|
return suspendResult;
|
|
2003
2001
|
}
|
|
@@ -2007,14 +2005,14 @@
|
|
|
2007
2005
|
this.u8_1 = 1;
|
|
2008
2006
|
continue $sm;
|
|
2009
2007
|
case 3:
|
|
2010
|
-
var tmp0_safe_receiver = this.
|
|
2008
|
+
var tmp0_safe_receiver = this.t1s_1.s1l();
|
|
2011
2009
|
if (tmp0_safe_receiver == null)
|
|
2012
2010
|
null;
|
|
2013
2011
|
else {
|
|
2014
2012
|
throw tmp0_safe_receiver;
|
|
2015
2013
|
}
|
|
2016
2014
|
|
|
2017
|
-
return this.
|
|
2015
|
+
return this.u1s_1;
|
|
2018
2016
|
case 4:
|
|
2019
2017
|
throw this.x8_1;
|
|
2020
2018
|
}
|
|
@@ -2031,8 +2029,8 @@
|
|
|
2031
2029
|
};
|
|
2032
2030
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
2033
2031
|
CoroutineImpl.call(this, resultContinuation);
|
|
2034
|
-
this.
|
|
2035
|
-
this.
|
|
2032
|
+
this.d1t_1 = _this__u8e3s4;
|
|
2033
|
+
this.e1t_1 = count;
|
|
2036
2034
|
}
|
|
2037
2035
|
protoOf($peekCOROUTINE$).c9 = function () {
|
|
2038
2036
|
var suspendResult = this.w8_1;
|
|
@@ -2042,10 +2040,10 @@
|
|
|
2042
2040
|
switch (tmp) {
|
|
2043
2041
|
case 0:
|
|
2044
2042
|
this.v8_1 = 3;
|
|
2045
|
-
if (this.
|
|
2043
|
+
if (this.d1t_1.u1l())
|
|
2046
2044
|
return null;
|
|
2047
2045
|
this.u8_1 = 1;
|
|
2048
|
-
suspendResult = this.
|
|
2046
|
+
suspendResult = this.d1t_1.v1l(this.e1t_1, this);
|
|
2049
2047
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2050
2048
|
return suspendResult;
|
|
2051
2049
|
}
|
|
@@ -2060,7 +2058,7 @@
|
|
|
2060
2058
|
}
|
|
2061
2059
|
|
|
2062
2060
|
case 2:
|
|
2063
|
-
return readByteString(this.
|
|
2061
|
+
return readByteString(this.d1t_1.n1l().cq(), this.e1t_1);
|
|
2064
2062
|
case 3:
|
|
2065
2063
|
throw this.x8_1;
|
|
2066
2064
|
}
|
|
@@ -2085,7 +2083,7 @@
|
|
|
2085
2083
|
}
|
|
2086
2084
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2087
2085
|
CoroutineImpl.call(this, resultContinuation);
|
|
2088
|
-
this.
|
|
2086
|
+
this.n1t_1 = _this__u8e3s4;
|
|
2089
2087
|
}
|
|
2090
2088
|
protoOf($flushIfNeededCOROUTINE$).c9 = function () {
|
|
2091
2089
|
var suspendResult = this.w8_1;
|
|
@@ -2095,10 +2093,10 @@
|
|
|
2095
2093
|
switch (tmp) {
|
|
2096
2094
|
case 0:
|
|
2097
2095
|
this.v8_1 = 3;
|
|
2098
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2099
|
-
if (this.
|
|
2096
|
+
rethrowCloseCauseIfNeeded_1(this.n1t_1);
|
|
2097
|
+
if (this.n1t_1.m1l() || get_size(this.n1t_1.q1l()) >= 1048576) {
|
|
2100
2098
|
this.u8_1 = 1;
|
|
2101
|
-
suspendResult = this.
|
|
2099
|
+
suspendResult = this.n1t_1.l1l(this);
|
|
2102
2100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2103
2101
|
return suspendResult;
|
|
2104
2102
|
}
|
|
@@ -2135,15 +2133,15 @@
|
|
|
2135
2133
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2136
2134
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2137
2135
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2138
|
-
_this__u8e3s4.
|
|
2136
|
+
_this__u8e3s4.q1l().hq(value, startIndex, endIndex);
|
|
2139
2137
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2140
2138
|
}
|
|
2141
2139
|
function WriterJob(channel, job) {
|
|
2142
|
-
this.
|
|
2143
|
-
this.
|
|
2140
|
+
this.o1t_1 = channel;
|
|
2141
|
+
this.p1t_1 = job;
|
|
2144
2142
|
}
|
|
2145
|
-
protoOf(WriterJob).
|
|
2146
|
-
return this.
|
|
2143
|
+
protoOf(WriterJob).vv = function () {
|
|
2144
|
+
return this.p1t_1;
|
|
2147
2145
|
};
|
|
2148
2146
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2149
2147
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2152,22 +2150,22 @@
|
|
|
2152
2150
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2153
2151
|
}
|
|
2154
2152
|
function WriterScope(channel, coroutineContext) {
|
|
2155
|
-
this.
|
|
2156
|
-
this.
|
|
2153
|
+
this.q1t_1 = channel;
|
|
2154
|
+
this.r1t_1 = coroutineContext;
|
|
2157
2155
|
}
|
|
2158
|
-
protoOf(WriterScope).
|
|
2159
|
-
return this.
|
|
2156
|
+
protoOf(WriterScope).js = function () {
|
|
2157
|
+
return this.r1t_1;
|
|
2160
2158
|
};
|
|
2161
2159
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2162
2160
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2163
|
-
return _this__u8e3s4.
|
|
2161
|
+
return _this__u8e3s4.vv().lt(block);
|
|
2164
2162
|
}
|
|
2165
2163
|
function close_0(_this__u8e3s4, cause) {
|
|
2166
2164
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2167
2165
|
if (cause == null) {
|
|
2168
2166
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2169
2167
|
} else {
|
|
2170
|
-
_this__u8e3s4.
|
|
2168
|
+
_this__u8e3s4.y1l(cause);
|
|
2171
2169
|
}
|
|
2172
2170
|
}
|
|
2173
2171
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2185,19 +2183,19 @@
|
|
|
2185
2183
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2186
2184
|
// Inline function 'kotlin.apply' call
|
|
2187
2185
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2188
|
-
this_0.
|
|
2186
|
+
this_0.lt(writer$lambda(channel));
|
|
2189
2187
|
var job = this_0;
|
|
2190
2188
|
return new WriterJob(channel, job);
|
|
2191
2189
|
}
|
|
2192
2190
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2193
|
-
_this__u8e3s4.
|
|
2191
|
+
_this__u8e3s4.q1l().rq(value);
|
|
2194
2192
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2195
2193
|
}
|
|
2196
2194
|
function NO_CALLBACK$1() {
|
|
2197
|
-
this.
|
|
2195
|
+
this.c1u_1 = EmptyCoroutineContext_getInstance();
|
|
2198
2196
|
}
|
|
2199
2197
|
protoOf(NO_CALLBACK$1).a9 = function () {
|
|
2200
|
-
return this.
|
|
2198
|
+
return this.c1u_1;
|
|
2201
2199
|
};
|
|
2202
2200
|
protoOf(NO_CALLBACK$1).b9 = function (result) {
|
|
2203
2201
|
return Unit_instance;
|
|
@@ -2206,36 +2204,36 @@
|
|
|
2206
2204
|
return this.b9(result);
|
|
2207
2205
|
};
|
|
2208
2206
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2209
|
-
this.
|
|
2207
|
+
this.d1u_1 = p0;
|
|
2210
2208
|
}
|
|
2211
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2212
|
-
return this.
|
|
2209
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).e1u = function ($completion) {
|
|
2210
|
+
return this.d1u_1.x1l($completion);
|
|
2213
2211
|
};
|
|
2214
2212
|
protoOf(ByteWriteChannel$flushAndClose$ref).la = function ($completion) {
|
|
2215
|
-
return this.
|
|
2213
|
+
return this.e1u($completion);
|
|
2216
2214
|
};
|
|
2217
2215
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2218
2216
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2219
2217
|
var l = function ($completion) {
|
|
2220
|
-
return i.
|
|
2218
|
+
return i.e1u($completion);
|
|
2221
2219
|
};
|
|
2222
2220
|
l.callableName = 'flushAndClose';
|
|
2223
2221
|
l.$arity = 0;
|
|
2224
2222
|
return l;
|
|
2225
2223
|
}
|
|
2226
2224
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2225
|
+
this.n1u_1 = $block;
|
|
2226
|
+
this.o1u_1 = $channel;
|
|
2229
2227
|
CoroutineImpl.call(this, resultContinuation);
|
|
2230
2228
|
}
|
|
2231
|
-
protoOf(writer$slambda).
|
|
2232
|
-
var tmp = this.
|
|
2229
|
+
protoOf(writer$slambda).w1u = function ($this$launch, $completion) {
|
|
2230
|
+
var tmp = this.x1u($this$launch, $completion);
|
|
2233
2231
|
tmp.w8_1 = Unit_instance;
|
|
2234
2232
|
tmp.x8_1 = null;
|
|
2235
2233
|
return tmp.c9();
|
|
2236
2234
|
};
|
|
2237
2235
|
protoOf(writer$slambda).o9 = function (p1, $completion) {
|
|
2238
|
-
return this.
|
|
2236
|
+
return this.w1u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2239
2237
|
};
|
|
2240
2238
|
protoOf(writer$slambda).c9 = function () {
|
|
2241
2239
|
var suspendResult = this.w8_1;
|
|
@@ -2245,24 +2243,24 @@
|
|
|
2245
2243
|
switch (tmp) {
|
|
2246
2244
|
case 0:
|
|
2247
2245
|
this.v8_1 = 14;
|
|
2248
|
-
this.
|
|
2246
|
+
this.s1u_1 = Job(get_job(this.p1u_1.js()));
|
|
2249
2247
|
this.u8_1 = 1;
|
|
2250
2248
|
continue $sm;
|
|
2251
2249
|
case 1:
|
|
2252
2250
|
this.v8_1 = 4;
|
|
2253
2251
|
this.v8_1 = 3;
|
|
2254
2252
|
this.u8_1 = 2;
|
|
2255
|
-
suspendResult = this.
|
|
2253
|
+
suspendResult = this.n1u_1(new WriterScope(this.o1u_1, this.p1u_1.js().fh(this.s1u_1)), this);
|
|
2256
2254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2257
2255
|
return suspendResult;
|
|
2258
2256
|
}
|
|
2259
2257
|
|
|
2260
2258
|
continue $sm;
|
|
2261
2259
|
case 2:
|
|
2262
|
-
this.
|
|
2260
|
+
this.s1u_1.t10();
|
|
2263
2261
|
var tmp_0;
|
|
2264
|
-
if (get_job(this.
|
|
2265
|
-
this.
|
|
2262
|
+
if (get_job(this.p1u_1.js()).ft()) {
|
|
2263
|
+
this.o1u_1.y1l(get_job(this.p1u_1.js()).it());
|
|
2266
2264
|
tmp_0 = Unit_instance;
|
|
2267
2265
|
}
|
|
2268
2266
|
|
|
@@ -2274,8 +2272,8 @@
|
|
|
2274
2272
|
var tmp_1 = this.x8_1;
|
|
2275
2273
|
if (tmp_1 instanceof Error) {
|
|
2276
2274
|
var cause = this.x8_1;
|
|
2277
|
-
cancel(this.
|
|
2278
|
-
this.
|
|
2275
|
+
cancel(this.s1u_1, 'Exception thrown while writing to channel', cause);
|
|
2276
|
+
this.o1u_1.y1l(cause);
|
|
2279
2277
|
this.v8_1 = 14;
|
|
2280
2278
|
this.u8_1 = 9;
|
|
2281
2279
|
continue $sm;
|
|
@@ -2285,21 +2283,21 @@
|
|
|
2285
2283
|
|
|
2286
2284
|
case 4:
|
|
2287
2285
|
this.v8_1 = 14;
|
|
2288
|
-
this.
|
|
2286
|
+
this.t1u_1 = this.x8_1;
|
|
2289
2287
|
this.u8_1 = 5;
|
|
2290
|
-
suspendResult = this.
|
|
2288
|
+
suspendResult = this.s1u_1.pt(this);
|
|
2291
2289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2292
2290
|
return suspendResult;
|
|
2293
2291
|
}
|
|
2294
2292
|
|
|
2295
2293
|
continue $sm;
|
|
2296
2294
|
case 5:
|
|
2297
|
-
this.
|
|
2295
|
+
this.p1u_1;
|
|
2298
2296
|
this.v8_1 = 7;
|
|
2299
2297
|
var tmp_2 = this;
|
|
2300
|
-
tmp_2.
|
|
2298
|
+
tmp_2.v1u_1 = Companion_instance;
|
|
2301
2299
|
this.u8_1 = 6;
|
|
2302
|
-
suspendResult = this.
|
|
2300
|
+
suspendResult = this.o1u_1.x1l(this);
|
|
2303
2301
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2304
2302
|
return suspendResult;
|
|
2305
2303
|
}
|
|
@@ -2307,8 +2305,8 @@
|
|
|
2307
2305
|
continue $sm;
|
|
2308
2306
|
case 6:
|
|
2309
2307
|
var tmp_3 = this;
|
|
2310
|
-
this.
|
|
2311
|
-
tmp_3.
|
|
2308
|
+
this.v1u_1;
|
|
2309
|
+
tmp_3.u1u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2312
2310
|
this.v8_1 = 14;
|
|
2313
2311
|
this.u8_1 = 8;
|
|
2314
2312
|
continue $sm;
|
|
@@ -2318,7 +2316,7 @@
|
|
|
2318
2316
|
if (tmp_4 instanceof Error) {
|
|
2319
2317
|
var e = this.x8_1;
|
|
2320
2318
|
var tmp_5 = this;
|
|
2321
|
-
tmp_5.
|
|
2319
|
+
tmp_5.u1u_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2322
2320
|
this.u8_1 = 8;
|
|
2323
2321
|
continue $sm;
|
|
2324
2322
|
} else {
|
|
@@ -2327,23 +2325,23 @@
|
|
|
2327
2325
|
|
|
2328
2326
|
case 8:
|
|
2329
2327
|
this.v8_1 = 14;
|
|
2330
|
-
throw this.
|
|
2328
|
+
throw this.t1u_1;
|
|
2331
2329
|
case 9:
|
|
2332
2330
|
this.v8_1 = 14;
|
|
2333
2331
|
this.u8_1 = 10;
|
|
2334
|
-
suspendResult = this.
|
|
2332
|
+
suspendResult = this.s1u_1.pt(this);
|
|
2335
2333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2334
|
return suspendResult;
|
|
2337
2335
|
}
|
|
2338
2336
|
|
|
2339
2337
|
continue $sm;
|
|
2340
2338
|
case 10:
|
|
2341
|
-
this.
|
|
2339
|
+
this.p1u_1;
|
|
2342
2340
|
this.v8_1 = 12;
|
|
2343
2341
|
var tmp_6 = this;
|
|
2344
|
-
tmp_6.
|
|
2342
|
+
tmp_6.r1u_1 = Companion_instance;
|
|
2345
2343
|
this.u8_1 = 11;
|
|
2346
|
-
suspendResult = this.
|
|
2344
|
+
suspendResult = this.o1u_1.x1l(this);
|
|
2347
2345
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2348
2346
|
return suspendResult;
|
|
2349
2347
|
}
|
|
@@ -2351,8 +2349,8 @@
|
|
|
2351
2349
|
continue $sm;
|
|
2352
2350
|
case 11:
|
|
2353
2351
|
var tmp_7 = this;
|
|
2354
|
-
this.
|
|
2355
|
-
tmp_7.
|
|
2352
|
+
this.r1u_1;
|
|
2353
|
+
tmp_7.q1u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2356
2354
|
this.v8_1 = 14;
|
|
2357
2355
|
this.u8_1 = 13;
|
|
2358
2356
|
continue $sm;
|
|
@@ -2362,7 +2360,7 @@
|
|
|
2362
2360
|
if (tmp_8 instanceof Error) {
|
|
2363
2361
|
var e_0 = this.x8_1;
|
|
2364
2362
|
var tmp_9 = this;
|
|
2365
|
-
tmp_9.
|
|
2363
|
+
tmp_9.q1u_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2366
2364
|
this.u8_1 = 13;
|
|
2367
2365
|
continue $sm;
|
|
2368
2366
|
} else {
|
|
@@ -2386,15 +2384,15 @@
|
|
|
2386
2384
|
}
|
|
2387
2385
|
while (true);
|
|
2388
2386
|
};
|
|
2389
|
-
protoOf(writer$slambda).
|
|
2390
|
-
var i = new writer$slambda(this.
|
|
2391
|
-
i.
|
|
2387
|
+
protoOf(writer$slambda).x1u = function ($this$launch, completion) {
|
|
2388
|
+
var i = new writer$slambda(this.n1u_1, this.o1u_1, completion);
|
|
2389
|
+
i.p1u_1 = $this$launch;
|
|
2392
2390
|
return i;
|
|
2393
2391
|
};
|
|
2394
2392
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2395
2393
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2396
2394
|
var l = function ($this$launch, $completion) {
|
|
2397
|
-
return i.
|
|
2395
|
+
return i.w1u($this$launch, $completion);
|
|
2398
2396
|
};
|
|
2399
2397
|
l.$arity = 1;
|
|
2400
2398
|
return l;
|
|
@@ -2402,8 +2400,8 @@
|
|
|
2402
2400
|
function writer$lambda($channel) {
|
|
2403
2401
|
return function (it) {
|
|
2404
2402
|
var tmp;
|
|
2405
|
-
if (!(it == null) && !$channel.
|
|
2406
|
-
$channel.
|
|
2403
|
+
if (!(it == null) && !$channel.r1l()) {
|
|
2404
|
+
$channel.y1l(it);
|
|
2407
2405
|
tmp = Unit_instance;
|
|
2408
2406
|
}
|
|
2409
2407
|
return Unit_instance;
|
|
@@ -2411,8 +2409,8 @@
|
|
|
2411
2409
|
}
|
|
2412
2410
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2413
2411
|
CoroutineImpl.call(this, resultContinuation);
|
|
2414
|
-
this.
|
|
2415
|
-
this.
|
|
2412
|
+
this.a1u_1 = _this__u8e3s4;
|
|
2413
|
+
this.b1u_1 = source;
|
|
2416
2414
|
}
|
|
2417
2415
|
protoOf($writePacketCOROUTINE$).c9 = function () {
|
|
2418
2416
|
var suspendResult = this.w8_1;
|
|
@@ -2425,14 +2423,14 @@
|
|
|
2425
2423
|
this.u8_1 = 1;
|
|
2426
2424
|
continue $sm;
|
|
2427
2425
|
case 1:
|
|
2428
|
-
if (!!this.
|
|
2426
|
+
if (!!this.b1u_1.yo()) {
|
|
2429
2427
|
this.u8_1 = 3;
|
|
2430
2428
|
continue $sm;
|
|
2431
2429
|
}
|
|
2432
2430
|
|
|
2433
|
-
this.
|
|
2431
|
+
this.a1u_1.q1l().lq(this.b1u_1, get_remaining(this.b1u_1));
|
|
2434
2432
|
this.u8_1 = 2;
|
|
2435
|
-
suspendResult = flushIfNeeded(this.
|
|
2433
|
+
suspendResult = flushIfNeeded(this.a1u_1, this);
|
|
2436
2434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2437
2435
|
return suspendResult;
|
|
2438
2436
|
}
|
|
@@ -2477,27 +2475,27 @@
|
|
|
2477
2475
|
return l;
|
|
2478
2476
|
}
|
|
2479
2477
|
function CloseToken(origin) {
|
|
2480
|
-
this.
|
|
2478
|
+
this.o1l_1 = origin;
|
|
2481
2479
|
}
|
|
2482
|
-
protoOf(CloseToken).
|
|
2483
|
-
var tmp0_subject = this.
|
|
2480
|
+
protoOf(CloseToken).y1u = function (wrap) {
|
|
2481
|
+
var tmp0_subject = this.o1l_1;
|
|
2484
2482
|
var tmp;
|
|
2485
2483
|
if (tmp0_subject == null) {
|
|
2486
2484
|
tmp = null;
|
|
2487
2485
|
} else {
|
|
2488
|
-
if (
|
|
2489
|
-
tmp = this.
|
|
2486
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2487
|
+
tmp = this.o1l_1.c11();
|
|
2490
2488
|
} else {
|
|
2491
2489
|
if (tmp0_subject instanceof CancellationException) {
|
|
2492
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2490
|
+
tmp = CancellationException_init_$Create$(this.o1l_1.message, this.o1l_1);
|
|
2493
2491
|
} else {
|
|
2494
|
-
tmp = wrap(this.
|
|
2492
|
+
tmp = wrap(this.o1l_1);
|
|
2495
2493
|
}
|
|
2496
2494
|
}
|
|
2497
2495
|
}
|
|
2498
2496
|
return tmp;
|
|
2499
2497
|
};
|
|
2500
|
-
protoOf(CloseToken).
|
|
2498
|
+
protoOf(CloseToken).t1l = function (wrap, $super) {
|
|
2501
2499
|
var tmp;
|
|
2502
2500
|
if (wrap === VOID) {
|
|
2503
2501
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2505,10 +2503,10 @@
|
|
|
2505
2503
|
tmp = wrap;
|
|
2506
2504
|
}
|
|
2507
2505
|
wrap = tmp;
|
|
2508
|
-
return $super === VOID ? this.
|
|
2506
|
+
return $super === VOID ? this.y1u(wrap) : $super.y1u.call(this, wrap);
|
|
2509
2507
|
};
|
|
2510
|
-
protoOf(CloseToken).
|
|
2511
|
-
var tmp0_safe_receiver = this.
|
|
2508
|
+
protoOf(CloseToken).p1l = function (wrap) {
|
|
2509
|
+
var tmp0_safe_receiver = this.y1u(wrap);
|
|
2512
2510
|
var tmp;
|
|
2513
2511
|
if (tmp0_safe_receiver == null) {
|
|
2514
2512
|
tmp = null;
|
|
@@ -2527,17 +2525,17 @@
|
|
|
2527
2525
|
}
|
|
2528
2526
|
function transferFromDelegate($this) {
|
|
2529
2527
|
updateConsumed($this);
|
|
2530
|
-
var appended = $this.
|
|
2531
|
-
$this.
|
|
2528
|
+
var appended = $this.a1v_1.qq($this.z1u_1.n1l());
|
|
2529
|
+
$this.b1v_1 = add($this.b1v_1, appended);
|
|
2532
2530
|
}
|
|
2533
2531
|
function updateConsumed($this) {
|
|
2534
|
-
$this.
|
|
2535
|
-
$this.
|
|
2532
|
+
$this.c1v_1 = add($this.c1v_1, subtract($this.b1v_1, $this.a1v_1.u()));
|
|
2533
|
+
$this.b1v_1 = $this.a1v_1.u();
|
|
2536
2534
|
}
|
|
2537
2535
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2538
2536
|
CoroutineImpl.call(this, resultContinuation);
|
|
2539
|
-
this.
|
|
2540
|
-
this.
|
|
2537
|
+
this.l1v_1 = _this__u8e3s4;
|
|
2538
|
+
this.m1v_1 = min;
|
|
2541
2539
|
}
|
|
2542
2540
|
protoOf($awaitContentCOROUTINE$_0).c9 = function () {
|
|
2543
2541
|
var suspendResult = this.w8_1;
|
|
@@ -2547,12 +2545,12 @@
|
|
|
2547
2545
|
switch (tmp) {
|
|
2548
2546
|
case 0:
|
|
2549
2547
|
this.v8_1 = 3;
|
|
2550
|
-
if (compare(this.
|
|
2548
|
+
if (compare(this.l1v_1.n1l().u(), fromInt(this.m1v_1)) >= 0) {
|
|
2551
2549
|
return true;
|
|
2552
2550
|
}
|
|
2553
2551
|
|
|
2554
2552
|
this.u8_1 = 1;
|
|
2555
|
-
suspendResult = this.
|
|
2553
|
+
suspendResult = this.l1v_1.z1u_1.v1l(this.m1v_1, this);
|
|
2556
2554
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2557
2555
|
return suspendResult;
|
|
2558
2556
|
}
|
|
@@ -2560,7 +2558,7 @@
|
|
|
2560
2558
|
continue $sm;
|
|
2561
2559
|
case 1:
|
|
2562
2560
|
if (suspendResult) {
|
|
2563
|
-
transferFromDelegate(this.
|
|
2561
|
+
transferFromDelegate(this.l1v_1);
|
|
2564
2562
|
return true;
|
|
2565
2563
|
} else {
|
|
2566
2564
|
this.u8_1 = 2;
|
|
@@ -2584,34 +2582,34 @@
|
|
|
2584
2582
|
while (true);
|
|
2585
2583
|
};
|
|
2586
2584
|
function CountedByteReadChannel(delegate) {
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2589
|
-
this.
|
|
2590
|
-
this.
|
|
2585
|
+
this.z1u_1 = delegate;
|
|
2586
|
+
this.a1v_1 = new Buffer();
|
|
2587
|
+
this.b1v_1 = new Long(0, 0);
|
|
2588
|
+
this.c1v_1 = new Long(0, 0);
|
|
2591
2589
|
}
|
|
2592
|
-
protoOf(CountedByteReadChannel).
|
|
2590
|
+
protoOf(CountedByteReadChannel).n1v = function () {
|
|
2593
2591
|
updateConsumed(this);
|
|
2594
|
-
return this.
|
|
2592
|
+
return this.c1v_1;
|
|
2595
2593
|
};
|
|
2596
|
-
protoOf(CountedByteReadChannel).
|
|
2597
|
-
return this.
|
|
2594
|
+
protoOf(CountedByteReadChannel).s1l = function () {
|
|
2595
|
+
return this.z1u_1.s1l();
|
|
2598
2596
|
};
|
|
2599
|
-
protoOf(CountedByteReadChannel).
|
|
2600
|
-
return this.
|
|
2597
|
+
protoOf(CountedByteReadChannel).u1l = function () {
|
|
2598
|
+
return this.a1v_1.yo() && this.z1u_1.u1l();
|
|
2601
2599
|
};
|
|
2602
|
-
protoOf(CountedByteReadChannel).
|
|
2600
|
+
protoOf(CountedByteReadChannel).n1l = function () {
|
|
2603
2601
|
transferFromDelegate(this);
|
|
2604
|
-
return this.
|
|
2602
|
+
return this.a1v_1;
|
|
2605
2603
|
};
|
|
2606
|
-
protoOf(CountedByteReadChannel).
|
|
2604
|
+
protoOf(CountedByteReadChannel).v1l = function (min, $completion) {
|
|
2607
2605
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2608
2606
|
tmp.w8_1 = Unit_instance;
|
|
2609
2607
|
tmp.x8_1 = null;
|
|
2610
2608
|
return tmp.c9();
|
|
2611
2609
|
};
|
|
2612
|
-
protoOf(CountedByteReadChannel).
|
|
2613
|
-
this.
|
|
2614
|
-
this.
|
|
2610
|
+
protoOf(CountedByteReadChannel).y1l = function (cause) {
|
|
2611
|
+
this.z1u_1.y1l(cause);
|
|
2612
|
+
this.a1v_1.b4();
|
|
2615
2613
|
};
|
|
2616
2614
|
function counted(_this__u8e3s4) {
|
|
2617
2615
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2648,21 +2646,21 @@
|
|
|
2648
2646
|
}
|
|
2649
2647
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2650
2648
|
var tmp;
|
|
2651
|
-
if ($this === Companion_getInstance_1().
|
|
2649
|
+
if ($this === Companion_getInstance_1().c1r_1) {
|
|
2652
2650
|
tmp = 'CR';
|
|
2653
|
-
} else if ($this === Companion_getInstance_1().
|
|
2651
|
+
} else if ($this === Companion_getInstance_1().d1r_1) {
|
|
2654
2652
|
tmp = 'LF';
|
|
2655
|
-
} else if ($this === Companion_getInstance_1().
|
|
2653
|
+
} else if ($this === Companion_getInstance_1().e1r_1) {
|
|
2656
2654
|
tmp = 'CRLF';
|
|
2657
2655
|
} else {
|
|
2658
2656
|
// Inline function 'kotlin.collections.filter' call
|
|
2659
|
-
var tmp0 = Companion_getInstance_1().
|
|
2657
|
+
var tmp0 = Companion_getInstance_1().g1r_1;
|
|
2660
2658
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2661
2659
|
var destination = ArrayList_init_$Create$();
|
|
2662
2660
|
var _iterator__ex2g4s = tmp0.r();
|
|
2663
2661
|
while (_iterator__ex2g4s.s()) {
|
|
2664
2662
|
var element = _iterator__ex2g4s.t();
|
|
2665
|
-
var it = element.
|
|
2663
|
+
var it = element.o1v_1;
|
|
2666
2664
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2667
2665
|
destination.p(element);
|
|
2668
2666
|
}
|
|
@@ -2673,11 +2671,11 @@
|
|
|
2673
2671
|
}
|
|
2674
2672
|
function Companion_1() {
|
|
2675
2673
|
Companion_instance_2 = this;
|
|
2676
|
-
this.
|
|
2677
|
-
this.
|
|
2678
|
-
this.
|
|
2679
|
-
this.
|
|
2680
|
-
this.
|
|
2674
|
+
this.c1r_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2675
|
+
this.d1r_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2676
|
+
this.e1r_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2677
|
+
this.f1r_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2678
|
+
this.g1r_1 = listOf([new LineEndingMode(this.c1r_1), new LineEndingMode(this.d1r_1), new LineEndingMode(this.e1r_1)]);
|
|
2681
2679
|
}
|
|
2682
2680
|
var Companion_instance_2;
|
|
2683
2681
|
function Companion_getInstance_1() {
|
|
@@ -2691,67 +2689,67 @@
|
|
|
2691
2689
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2692
2690
|
if (!(other instanceof LineEndingMode))
|
|
2693
2691
|
return false;
|
|
2694
|
-
if (!($this ===
|
|
2692
|
+
if (!($this === other.o1v_1))
|
|
2695
2693
|
return false;
|
|
2696
2694
|
return true;
|
|
2697
2695
|
}
|
|
2698
2696
|
function LineEndingMode(mode) {
|
|
2699
2697
|
Companion_getInstance_1();
|
|
2700
|
-
this.
|
|
2698
|
+
this.o1v_1 = mode;
|
|
2701
2699
|
}
|
|
2702
2700
|
protoOf(LineEndingMode).toString = function () {
|
|
2703
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2701
|
+
return LineEndingMode__toString_impl_j4h76r(this.o1v_1);
|
|
2704
2702
|
};
|
|
2705
2703
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2706
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2704
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.o1v_1);
|
|
2707
2705
|
};
|
|
2708
2706
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2709
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2707
|
+
return LineEndingMode__equals_impl_qyr4nk(this.o1v_1, other);
|
|
2710
2708
|
};
|
|
2711
2709
|
function SourceByteReadChannel(source) {
|
|
2712
|
-
this.
|
|
2713
|
-
this.
|
|
2710
|
+
this.p1v_1 = source;
|
|
2711
|
+
this.q1v_1 = null;
|
|
2714
2712
|
}
|
|
2715
|
-
protoOf(SourceByteReadChannel).
|
|
2716
|
-
var tmp0_safe_receiver = this.
|
|
2717
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2713
|
+
protoOf(SourceByteReadChannel).s1l = function () {
|
|
2714
|
+
var tmp0_safe_receiver = this.q1v_1;
|
|
2715
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1l();
|
|
2718
2716
|
};
|
|
2719
|
-
protoOf(SourceByteReadChannel).
|
|
2720
|
-
return this.
|
|
2717
|
+
protoOf(SourceByteReadChannel).u1l = function () {
|
|
2718
|
+
return this.p1v_1.yo();
|
|
2721
2719
|
};
|
|
2722
|
-
protoOf(SourceByteReadChannel).
|
|
2723
|
-
var tmp0_safe_receiver = this.
|
|
2720
|
+
protoOf(SourceByteReadChannel).n1l = function () {
|
|
2721
|
+
var tmp0_safe_receiver = this.s1l();
|
|
2724
2722
|
if (tmp0_safe_receiver == null)
|
|
2725
2723
|
null;
|
|
2726
2724
|
else {
|
|
2727
2725
|
// Inline function 'kotlin.let' call
|
|
2728
2726
|
throw tmp0_safe_receiver;
|
|
2729
2727
|
}
|
|
2730
|
-
return this.
|
|
2728
|
+
return this.p1v_1.xo();
|
|
2731
2729
|
};
|
|
2732
|
-
protoOf(SourceByteReadChannel).
|
|
2733
|
-
var tmp0_safe_receiver = this.
|
|
2730
|
+
protoOf(SourceByteReadChannel).v1l = function (min, $completion) {
|
|
2731
|
+
var tmp0_safe_receiver = this.s1l();
|
|
2734
2732
|
if (tmp0_safe_receiver == null)
|
|
2735
2733
|
null;
|
|
2736
2734
|
else {
|
|
2737
2735
|
// Inline function 'kotlin.let' call
|
|
2738
2736
|
throw tmp0_safe_receiver;
|
|
2739
2737
|
}
|
|
2740
|
-
return this.
|
|
2738
|
+
return this.p1v_1.ap(fromInt(min));
|
|
2741
2739
|
};
|
|
2742
|
-
protoOf(SourceByteReadChannel).
|
|
2743
|
-
if (!(this.
|
|
2740
|
+
protoOf(SourceByteReadChannel).y1l = function (cause) {
|
|
2741
|
+
if (!(this.q1v_1 == null))
|
|
2744
2742
|
return Unit_instance;
|
|
2745
|
-
this.
|
|
2743
|
+
this.p1v_1.b4();
|
|
2746
2744
|
var tmp = this;
|
|
2747
2745
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2748
|
-
tmp.
|
|
2746
|
+
tmp.q1v_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2749
2747
|
};
|
|
2750
2748
|
function decode(_this__u8e3s4, input, max) {
|
|
2751
2749
|
max = max === VOID ? 2147483647 : max;
|
|
2752
2750
|
var tmp0 = fromInt(max);
|
|
2753
2751
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2754
|
-
var b = input.
|
|
2752
|
+
var b = input.xo().u();
|
|
2755
2753
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2756
2754
|
// Inline function 'kotlin.text.buildString' call
|
|
2757
2755
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2788,7 +2786,7 @@
|
|
|
2788
2786
|
}
|
|
2789
2787
|
}
|
|
2790
2788
|
function canRead(_this__u8e3s4) {
|
|
2791
|
-
return !_this__u8e3s4.
|
|
2789
|
+
return !_this__u8e3s4.yo();
|
|
2792
2790
|
}
|
|
2793
2791
|
function readBytes(_this__u8e3s4, count) {
|
|
2794
2792
|
count = count === VOID ? convertToInt(_this__u8e3s4.u()) : count;
|
|
@@ -2797,32 +2795,32 @@
|
|
|
2797
2795
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2798
2796
|
offset = offset === VOID ? 0 : offset;
|
|
2799
2797
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2800
|
-
_this__u8e3s4.
|
|
2798
|
+
_this__u8e3s4.hq(buffer, offset, offset + length | 0);
|
|
2801
2799
|
}
|
|
2802
2800
|
function BytePacketBuilder() {
|
|
2803
2801
|
return new Buffer();
|
|
2804
2802
|
}
|
|
2805
2803
|
function get_size(_this__u8e3s4) {
|
|
2806
|
-
return convertToInt(_this__u8e3s4.
|
|
2804
|
+
return convertToInt(_this__u8e3s4.xo().u());
|
|
2807
2805
|
}
|
|
2808
2806
|
var ByteReadPacketEmpty;
|
|
2809
2807
|
function get_remaining(_this__u8e3s4) {
|
|
2810
2808
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2811
|
-
return _this__u8e3s4.
|
|
2809
|
+
return _this__u8e3s4.xo().u();
|
|
2812
2810
|
}
|
|
2813
2811
|
function takeWhile(_this__u8e3s4, block) {
|
|
2814
2812
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2815
|
-
while (!_this__u8e3s4.
|
|
2813
|
+
while (!_this__u8e3s4.yo() && block(_this__u8e3s4.xo())) {
|
|
2816
2814
|
}
|
|
2817
2815
|
}
|
|
2818
2816
|
function discard_0(_this__u8e3s4, count) {
|
|
2819
2817
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2820
2818
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2821
|
-
_this__u8e3s4.
|
|
2819
|
+
_this__u8e3s4.ap(count);
|
|
2822
2820
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2823
2821
|
var b = get_remaining(_this__u8e3s4);
|
|
2824
2822
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2825
|
-
_this__u8e3s4.
|
|
2823
|
+
_this__u8e3s4.xo().vp(countToDiscard);
|
|
2826
2824
|
return countToDiscard;
|
|
2827
2825
|
}
|
|
2828
2826
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2835,37 +2833,37 @@
|
|
|
2835
2833
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2836
2834
|
offset = offset === VOID ? 0 : offset;
|
|
2837
2835
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2838
|
-
var result = _this__u8e3s4.
|
|
2836
|
+
var result = _this__u8e3s4.wp(buffer, offset, offset + length | 0);
|
|
2839
2837
|
return result === -1 ? 0 : result;
|
|
2840
2838
|
}
|
|
2841
2839
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2842
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2840
|
+
charset = charset === VOID ? Charsets_getInstance().r1v_1 : charset;
|
|
2843
2841
|
max = max === VOID ? 2147483647 : max;
|
|
2844
|
-
if (charset.equals(Charsets_getInstance().
|
|
2842
|
+
if (charset.equals(Charsets_getInstance().r1v_1)) {
|
|
2845
2843
|
if (max === 2147483647)
|
|
2846
2844
|
return readString_0(_this__u8e3s4);
|
|
2847
|
-
var tmp0 = _this__u8e3s4.
|
|
2845
|
+
var tmp0 = _this__u8e3s4.xo().u();
|
|
2848
2846
|
// Inline function 'kotlin.math.min' call
|
|
2849
2847
|
var b = fromInt(max);
|
|
2850
2848
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2851
2849
|
return readString_1(_this__u8e3s4, count);
|
|
2852
2850
|
}
|
|
2853
|
-
return decode(charset.
|
|
2851
|
+
return decode(charset.u1v(), _this__u8e3s4, max);
|
|
2854
2852
|
}
|
|
2855
2853
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2856
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2857
|
-
if (charset.equals(Charsets_getInstance().
|
|
2854
|
+
charset = charset === VOID ? Charsets_getInstance().r1v_1 : charset;
|
|
2855
|
+
if (charset.equals(Charsets_getInstance().r1v_1))
|
|
2858
2856
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2859
|
-
return encodeToByteArray_0(charset.
|
|
2857
|
+
return encodeToByteArray_0(charset.v1v(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2860
2858
|
}
|
|
2861
2859
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2862
2860
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2863
2861
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2864
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2865
|
-
if (charset === Charsets_getInstance().
|
|
2862
|
+
charset = charset === VOID ? Charsets_getInstance().r1v_1 : charset;
|
|
2863
|
+
if (charset === Charsets_getInstance().r1v_1) {
|
|
2866
2864
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2867
2865
|
}
|
|
2868
|
-
encodeToImpl(charset.
|
|
2866
|
+
encodeToImpl(charset.v1v(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2869
2867
|
}
|
|
2870
2868
|
function get_ByteArrayPool() {
|
|
2871
2869
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2875,7 +2873,7 @@
|
|
|
2875
2873
|
function ByteArrayPool$1() {
|
|
2876
2874
|
DefaultPool.call(this, 128);
|
|
2877
2875
|
}
|
|
2878
|
-
protoOf(ByteArrayPool$1).
|
|
2876
|
+
protoOf(ByteArrayPool$1).z1v = function () {
|
|
2879
2877
|
return new Int8Array(4096);
|
|
2880
2878
|
};
|
|
2881
2879
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2889,21 +2887,21 @@
|
|
|
2889
2887
|
}
|
|
2890
2888
|
function NoPoolImpl() {
|
|
2891
2889
|
}
|
|
2892
|
-
protoOf(NoPoolImpl).
|
|
2890
|
+
protoOf(NoPoolImpl).h1w = function (instance) {
|
|
2893
2891
|
return Unit_instance;
|
|
2894
2892
|
};
|
|
2895
|
-
protoOf(NoPoolImpl).
|
|
2893
|
+
protoOf(NoPoolImpl).hv = function () {
|
|
2896
2894
|
return Unit_instance;
|
|
2897
2895
|
};
|
|
2898
2896
|
function Companion_2() {
|
|
2899
2897
|
}
|
|
2900
|
-
protoOf(Companion_2).
|
|
2898
|
+
protoOf(Companion_2).i1w = function (name) {
|
|
2901
2899
|
switch (name) {
|
|
2902
2900
|
case 'UTF-8':
|
|
2903
2901
|
case 'utf-8':
|
|
2904
2902
|
case 'UTF8':
|
|
2905
2903
|
case 'utf8':
|
|
2906
|
-
return Charsets_getInstance().
|
|
2904
|
+
return Charsets_getInstance().r1v_1;
|
|
2907
2905
|
}
|
|
2908
2906
|
var tmp;
|
|
2909
2907
|
var tmp_0;
|
|
@@ -2934,11 +2932,11 @@
|
|
|
2934
2932
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2935
2933
|
}
|
|
2936
2934
|
if (tmp) {
|
|
2937
|
-
return Charsets_getInstance().
|
|
2935
|
+
return Charsets_getInstance().s1v_1;
|
|
2938
2936
|
}
|
|
2939
2937
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2940
2938
|
};
|
|
2941
|
-
protoOf(Companion_2).
|
|
2939
|
+
protoOf(Companion_2).j1w = function (charset) {
|
|
2942
2940
|
var tmp;
|
|
2943
2941
|
switch (charset) {
|
|
2944
2942
|
case 'UTF-8':
|
|
@@ -2993,7 +2991,7 @@
|
|
|
2993
2991
|
return Companion_instance_3;
|
|
2994
2992
|
}
|
|
2995
2993
|
function Charset(_name) {
|
|
2996
|
-
this.
|
|
2994
|
+
this.t1v_1 = _name;
|
|
2997
2995
|
}
|
|
2998
2996
|
protoOf(Charset).equals = function (other) {
|
|
2999
2997
|
if (this === other)
|
|
@@ -3002,18 +3000,18 @@
|
|
|
3002
3000
|
return false;
|
|
3003
3001
|
if (!(other instanceof Charset))
|
|
3004
3002
|
THROW_CCE();
|
|
3005
|
-
return this.
|
|
3003
|
+
return this.t1v_1 === other.t1v_1;
|
|
3006
3004
|
};
|
|
3007
3005
|
protoOf(Charset).hashCode = function () {
|
|
3008
|
-
return getStringHashCode(this.
|
|
3006
|
+
return getStringHashCode(this.t1v_1);
|
|
3009
3007
|
};
|
|
3010
3008
|
protoOf(Charset).toString = function () {
|
|
3011
|
-
return this.
|
|
3009
|
+
return this.t1v_1;
|
|
3012
3010
|
};
|
|
3013
3011
|
function Charsets() {
|
|
3014
3012
|
Charsets_instance = this;
|
|
3015
|
-
this.
|
|
3016
|
-
this.
|
|
3013
|
+
this.r1v_1 = new CharsetImpl('UTF-8');
|
|
3014
|
+
this.s1v_1 = new CharsetImpl('ISO-8859-1');
|
|
3017
3015
|
}
|
|
3018
3016
|
var Charsets_instance;
|
|
3019
3017
|
function Charsets_getInstance() {
|
|
@@ -3022,27 +3020,27 @@
|
|
|
3022
3020
|
return Charsets_instance;
|
|
3023
3021
|
}
|
|
3024
3022
|
function CharsetDecoder(_charset) {
|
|
3025
|
-
this.
|
|
3023
|
+
this.k1w_1 = _charset;
|
|
3026
3024
|
}
|
|
3027
3025
|
function MalformedInputException(message) {
|
|
3028
3026
|
IOException_init_$Init$_0(message, this);
|
|
3029
3027
|
captureStack(this, MalformedInputException);
|
|
3030
3028
|
}
|
|
3031
3029
|
function get_name(_this__u8e3s4) {
|
|
3032
|
-
return _this__u8e3s4.
|
|
3030
|
+
return _this__u8e3s4.t1v_1;
|
|
3033
3031
|
}
|
|
3034
3032
|
function isSupported(_this__u8e3s4, name) {
|
|
3035
|
-
return Companion_instance_3.
|
|
3033
|
+
return Companion_instance_3.j1w(name);
|
|
3036
3034
|
}
|
|
3037
3035
|
function forName(_this__u8e3s4, name) {
|
|
3038
|
-
return Companion_instance_3.
|
|
3036
|
+
return Companion_instance_3.i1w(name);
|
|
3039
3037
|
}
|
|
3040
3038
|
function CharsetEncoder(_charset) {
|
|
3041
|
-
this.
|
|
3039
|
+
this.l1w_1 = _charset;
|
|
3042
3040
|
}
|
|
3043
3041
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3044
3042
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3045
|
-
var tmp0 = input.
|
|
3043
|
+
var tmp0 = input.xo().u();
|
|
3046
3044
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3047
3045
|
var b = fromInt(max);
|
|
3048
3046
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3050,7 +3048,7 @@
|
|
|
3050
3048
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3051
3049
|
var tmp_0;
|
|
3052
3050
|
try {
|
|
3053
|
-
tmp_0 = decoder.
|
|
3051
|
+
tmp_0 = decoder.m1w(array);
|
|
3054
3052
|
} catch ($p) {
|
|
3055
3053
|
var tmp_1;
|
|
3056
3054
|
if ($p instanceof Error) {
|
|
@@ -3072,11 +3070,11 @@
|
|
|
3072
3070
|
var message = 'Failed requirement.';
|
|
3073
3071
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3074
3072
|
}
|
|
3075
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3073
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().s1v_1)) {
|
|
3076
3074
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3077
3075
|
}
|
|
3078
3076
|
// Inline function 'kotlin.require' call
|
|
3079
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3077
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().r1v_1)) {
|
|
3080
3078
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3081
3079
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3082
3080
|
}
|
|
@@ -3086,7 +3084,7 @@
|
|
|
3086
3084
|
var result = encoder.encode(tmp$ret$5);
|
|
3087
3085
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3088
3086
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3089
|
-
dst.
|
|
3087
|
+
dst.kq(result);
|
|
3090
3088
|
return result.length;
|
|
3091
3089
|
}
|
|
3092
3090
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3097,17 +3095,17 @@
|
|
|
3097
3095
|
function CharsetImpl(name) {
|
|
3098
3096
|
Charset.call(this, name);
|
|
3099
3097
|
}
|
|
3100
|
-
protoOf(CharsetImpl).
|
|
3098
|
+
protoOf(CharsetImpl).v1v = function () {
|
|
3101
3099
|
return new CharsetEncoderImpl(this);
|
|
3102
3100
|
};
|
|
3103
|
-
protoOf(CharsetImpl).
|
|
3101
|
+
protoOf(CharsetImpl).u1v = function () {
|
|
3104
3102
|
return new CharsetDecoderImpl(this);
|
|
3105
3103
|
};
|
|
3106
3104
|
function get_charset(_this__u8e3s4) {
|
|
3107
|
-
return _this__u8e3s4.
|
|
3105
|
+
return _this__u8e3s4.k1w_1;
|
|
3108
3106
|
}
|
|
3109
3107
|
function get_charset_0(_this__u8e3s4) {
|
|
3110
|
-
return _this__u8e3s4.
|
|
3108
|
+
return _this__u8e3s4.l1w_1;
|
|
3111
3109
|
}
|
|
3112
3110
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3113
3111
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3126,41 +3124,39 @@
|
|
|
3126
3124
|
}
|
|
3127
3125
|
function CharsetEncoderImpl(charset) {
|
|
3128
3126
|
CharsetEncoder.call(this, charset);
|
|
3129
|
-
this.
|
|
3127
|
+
this.p1w_1 = charset;
|
|
3130
3128
|
}
|
|
3131
3129
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3132
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3130
|
+
return 'CharsetEncoderImpl(charset=' + this.p1w_1.toString() + ')';
|
|
3133
3131
|
};
|
|
3134
3132
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3135
|
-
return this.
|
|
3133
|
+
return this.p1w_1.hashCode();
|
|
3136
3134
|
};
|
|
3137
3135
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3138
3136
|
if (this === other)
|
|
3139
3137
|
return true;
|
|
3140
3138
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3141
3139
|
return false;
|
|
3142
|
-
|
|
3143
|
-
if (!this.c1x_1.equals(tmp0_other_with_cast.c1x_1))
|
|
3140
|
+
if (!this.p1w_1.equals(other.p1w_1))
|
|
3144
3141
|
return false;
|
|
3145
3142
|
return true;
|
|
3146
3143
|
};
|
|
3147
3144
|
function CharsetDecoderImpl(charset) {
|
|
3148
3145
|
CharsetDecoder.call(this, charset);
|
|
3149
|
-
this.
|
|
3146
|
+
this.r1w_1 = charset;
|
|
3150
3147
|
}
|
|
3151
3148
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3152
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3149
|
+
return 'CharsetDecoderImpl(charset=' + this.r1w_1.toString() + ')';
|
|
3153
3150
|
};
|
|
3154
3151
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3155
|
-
return this.
|
|
3152
|
+
return this.r1w_1.hashCode();
|
|
3156
3153
|
};
|
|
3157
3154
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3158
3155
|
if (this === other)
|
|
3159
3156
|
return true;
|
|
3160
3157
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3161
3158
|
return false;
|
|
3162
|
-
|
|
3163
|
-
if (!this.e1x_1.equals(tmp0_other_with_cast.e1x_1))
|
|
3159
|
+
if (!this.r1w_1.equals(other.r1w_1))
|
|
3164
3160
|
return false;
|
|
3165
3161
|
return true;
|
|
3166
3162
|
};
|
|
@@ -3194,10 +3190,10 @@
|
|
|
3194
3190
|
return this_0;
|
|
3195
3191
|
}
|
|
3196
3192
|
function toKtor$1($this_toKtor) {
|
|
3197
|
-
this.
|
|
3193
|
+
this.s1w_1 = $this_toKtor;
|
|
3198
3194
|
}
|
|
3199
|
-
protoOf(toKtor$1).
|
|
3200
|
-
return this.
|
|
3195
|
+
protoOf(toKtor$1).m1w = function (buffer) {
|
|
3196
|
+
return this.s1w_1.decode(buffer);
|
|
3201
3197
|
};
|
|
3202
3198
|
function get_ENCODING_ALIASES() {
|
|
3203
3199
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3210,7 +3206,7 @@
|
|
|
3210
3206
|
}
|
|
3211
3207
|
var REPLACEMENT;
|
|
3212
3208
|
function TextDecoderFallback(encoding, fatal) {
|
|
3213
|
-
this.
|
|
3209
|
+
this.t1w_1 = fatal;
|
|
3214
3210
|
// Inline function 'kotlin.text.trim' call
|
|
3215
3211
|
// Inline function 'kotlin.text.lowercase' call
|
|
3216
3212
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3221,7 +3217,7 @@
|
|
|
3221
3217
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3222
3218
|
}
|
|
3223
3219
|
}
|
|
3224
|
-
protoOf(TextDecoderFallback).
|
|
3220
|
+
protoOf(TextDecoderFallback).m1w = function (buffer) {
|
|
3225
3221
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3226
3222
|
var builder = new Buffer();
|
|
3227
3223
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3237,7 +3233,7 @@
|
|
|
3237
3233
|
var point = toCodePoint(byte);
|
|
3238
3234
|
if (point < 0) {
|
|
3239
3235
|
// Inline function 'kotlin.check' call
|
|
3240
|
-
if (!!this.
|
|
3236
|
+
if (!!this.t1w_1) {
|
|
3241
3237
|
var message = 'Invalid character: ' + point;
|
|
3242
3238
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3243
3239
|
}
|
|
@@ -3245,9 +3241,9 @@
|
|
|
3245
3241
|
continue $l$loop;
|
|
3246
3242
|
}
|
|
3247
3243
|
if (point > 255) {
|
|
3248
|
-
builder.
|
|
3244
|
+
builder.rq(toByte(point >> 8));
|
|
3249
3245
|
}
|
|
3250
|
-
builder.
|
|
3246
|
+
builder.rq(toByte(point & 255));
|
|
3251
3247
|
}
|
|
3252
3248
|
while (inductionVariable < last);
|
|
3253
3249
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3277,7 +3273,7 @@
|
|
|
3277
3273
|
return false;
|
|
3278
3274
|
}
|
|
3279
3275
|
function ioDispatcher() {
|
|
3280
|
-
return Dispatchers_getInstance().
|
|
3276
|
+
return Dispatchers_getInstance().s14_1;
|
|
3281
3277
|
}
|
|
3282
3278
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3283
3279
|
if (fromIndex >= toIndex)
|
|
@@ -3293,7 +3289,7 @@
|
|
|
3293
3289
|
if (character > 255) {
|
|
3294
3290
|
failedToMapError(character);
|
|
3295
3291
|
}
|
|
3296
|
-
dst.
|
|
3292
|
+
dst.rq(toByte(character));
|
|
3297
3293
|
}
|
|
3298
3294
|
while (inductionVariable < toIndex);
|
|
3299
3295
|
return toIndex - fromIndex | 0;
|
|
@@ -3315,64 +3311,64 @@
|
|
|
3315
3311
|
}
|
|
3316
3312
|
}
|
|
3317
3313
|
function DefaultPool(capacity) {
|
|
3318
|
-
this.
|
|
3314
|
+
this.a1w_1 = capacity;
|
|
3319
3315
|
var tmp = this;
|
|
3320
3316
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3321
|
-
var size = this.
|
|
3322
|
-
tmp.
|
|
3323
|
-
this.
|
|
3317
|
+
var size = this.a1w_1;
|
|
3318
|
+
tmp.b1w_1 = Array(size);
|
|
3319
|
+
this.c1w_1 = 0;
|
|
3324
3320
|
}
|
|
3325
|
-
protoOf(DefaultPool).
|
|
3321
|
+
protoOf(DefaultPool).d1w = function (instance) {
|
|
3326
3322
|
};
|
|
3327
|
-
protoOf(DefaultPool).
|
|
3323
|
+
protoOf(DefaultPool).e1w = function (instance) {
|
|
3328
3324
|
return instance;
|
|
3329
3325
|
};
|
|
3330
|
-
protoOf(DefaultPool).
|
|
3326
|
+
protoOf(DefaultPool).f1w = function (instance) {
|
|
3331
3327
|
};
|
|
3332
|
-
protoOf(DefaultPool).
|
|
3333
|
-
if (this.
|
|
3334
|
-
return this.
|
|
3335
|
-
this.
|
|
3336
|
-
var idx = this.
|
|
3337
|
-
var tmp = this.
|
|
3328
|
+
protoOf(DefaultPool).g1w = function () {
|
|
3329
|
+
if (this.c1w_1 === 0)
|
|
3330
|
+
return this.z1v();
|
|
3331
|
+
this.c1w_1 = this.c1w_1 - 1 | 0;
|
|
3332
|
+
var idx = this.c1w_1;
|
|
3333
|
+
var tmp = this.b1w_1[idx];
|
|
3338
3334
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3339
|
-
this.
|
|
3340
|
-
return this.
|
|
3335
|
+
this.b1w_1[idx] = null;
|
|
3336
|
+
return this.e1w(instance);
|
|
3341
3337
|
};
|
|
3342
|
-
protoOf(DefaultPool).
|
|
3343
|
-
this.
|
|
3344
|
-
if (this.
|
|
3345
|
-
this.
|
|
3338
|
+
protoOf(DefaultPool).h1w = function (instance) {
|
|
3339
|
+
this.f1w(instance);
|
|
3340
|
+
if (this.c1w_1 === this.a1w_1) {
|
|
3341
|
+
this.d1w(instance);
|
|
3346
3342
|
} else {
|
|
3347
|
-
var _unary__edvuaz = this.
|
|
3348
|
-
this.
|
|
3349
|
-
this.
|
|
3343
|
+
var _unary__edvuaz = this.c1w_1;
|
|
3344
|
+
this.c1w_1 = _unary__edvuaz + 1 | 0;
|
|
3345
|
+
this.b1w_1[_unary__edvuaz] = instance;
|
|
3350
3346
|
}
|
|
3351
3347
|
};
|
|
3352
|
-
protoOf(DefaultPool).
|
|
3348
|
+
protoOf(DefaultPool).hv = function () {
|
|
3353
3349
|
var inductionVariable = 0;
|
|
3354
|
-
var last = this.
|
|
3350
|
+
var last = this.c1w_1;
|
|
3355
3351
|
if (inductionVariable < last)
|
|
3356
3352
|
do {
|
|
3357
3353
|
var i = inductionVariable;
|
|
3358
3354
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3359
|
-
var tmp = this.
|
|
3355
|
+
var tmp = this.b1w_1[i];
|
|
3360
3356
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3361
|
-
this.
|
|
3362
|
-
this.
|
|
3357
|
+
this.b1w_1[i] = null;
|
|
3358
|
+
this.d1w(instance);
|
|
3363
3359
|
}
|
|
3364
3360
|
while (inductionVariable < last);
|
|
3365
|
-
this.
|
|
3361
|
+
this.c1w_1 = 0;
|
|
3366
3362
|
};
|
|
3367
3363
|
//region block: post-declaration
|
|
3368
|
-
protoOf(Read).
|
|
3369
|
-
protoOf(Read).
|
|
3370
|
-
protoOf(Write).
|
|
3371
|
-
protoOf(Write).
|
|
3372
|
-
protoOf(ByteChannel).
|
|
3373
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3374
|
-
protoOf(CountedByteReadChannel).
|
|
3375
|
-
protoOf(SourceByteReadChannel).
|
|
3364
|
+
protoOf(Read).q1j = resume;
|
|
3365
|
+
protoOf(Read).r1j = resume_0;
|
|
3366
|
+
protoOf(Write).q1j = resume;
|
|
3367
|
+
protoOf(Write).r1j = resume_0;
|
|
3368
|
+
protoOf(ByteChannel).w1l = awaitContent$default;
|
|
3369
|
+
protoOf(ByteReadChannel$Companion$Empty$1).w1l = awaitContent$default;
|
|
3370
|
+
protoOf(CountedByteReadChannel).w1l = awaitContent$default;
|
|
3371
|
+
protoOf(SourceByteReadChannel).w1l = awaitContent$default;
|
|
3376
3372
|
protoOf(DefaultPool).b4 = close;
|
|
3377
3373
|
protoOf(NoPoolImpl).b4 = close;
|
|
3378
3374
|
//endregion
|