@doordeck/doordeck-headless-sdk 0.195.0 → 0.196.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 +57 -57
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.js +10188 -10162
- package/kotlin/kotlin-kotlin-stdlib.js +442 -688
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2034 -2034
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +46 -46
- package/kotlin/kotlinx-io-kotlinx-io-core.js +475 -475
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1843 -1843
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1440 -1440
- package/kotlin/ktor-ktor-client-auth.js +264 -264
- package/kotlin/ktor-ktor-client-content-negotiation.js +156 -156
- package/kotlin/ktor-ktor-client-core.js +2195 -2156
- package/kotlin/ktor-ktor-client-logging.js +670 -679
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +369 -369
- package/kotlin/ktor-ktor-http.js +789 -789
- package/kotlin/ktor-ktor-io.js +663 -663
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +151 -151
- package/kotlin/ktor-ktor-serialization.js +70 -70
- package/kotlin/ktor-ktor-utils.js +1549 -1014
- package/kotlin/ktor-ktor-websockets.js +422 -422
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -4,89 +4,89 @@
|
|
|
4
4
|
var Companion_instance = kotlin_kotlin.$_$.u;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
6
6
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n3;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
10
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
12
|
-
var equals = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
14
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
15
|
-
var Result = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
17
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
18
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
19
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.cc;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.gb;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.lb;
|
|
10
|
+
var toString = kotlin_kotlin.$_$.fh;
|
|
11
|
+
var hashCode = kotlin_kotlin.$_$.eb;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.xa;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.fb;
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.tg;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.ag;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.jb;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.ye;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.yb;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.dh;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
22
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
23
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
24
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
25
|
-
var add = kotlin_kotlin.$_$.
|
|
26
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.ub;
|
|
22
|
+
var CoroutineImpl = kotlin_kotlin.$_$.o9;
|
|
23
|
+
var fromInt = kotlin_kotlin.$_$.z9;
|
|
24
|
+
var numberToLong = kotlin_kotlin.$_$.fa;
|
|
25
|
+
var add = kotlin_kotlin.$_$.u9;
|
|
26
|
+
var intercepted = kotlin_kotlin.$_$.b9;
|
|
27
27
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
28
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
28
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bh;
|
|
29
29
|
var returnIfSuspended = kotlin_kotlin.$_$.g1;
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.y8;
|
|
31
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.hb;
|
|
32
32
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
33
33
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
34
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
35
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
34
|
+
var convertToInt = kotlin_kotlin.$_$.w9;
|
|
35
|
+
var IllegalStateException = kotlin_kotlin.$_$.xf;
|
|
36
36
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s2;
|
|
37
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
37
|
+
var captureStack = kotlin_kotlin.$_$.oa;
|
|
38
38
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
39
39
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
40
|
-
var replace = kotlin_kotlin.$_$.
|
|
40
|
+
var replace = kotlin_kotlin.$_$.zd;
|
|
41
41
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
42
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
43
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
44
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
42
|
+
var THROW_CCE = kotlin_kotlin.$_$.cg;
|
|
43
|
+
var get_ONE = kotlin_kotlin.$_$.t9;
|
|
44
|
+
var toString_1 = kotlin_kotlin.$_$.fc;
|
|
45
45
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n2;
|
|
46
46
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
47
47
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
48
|
-
var subtract = kotlin_kotlin.$_$.
|
|
48
|
+
var subtract = kotlin_kotlin.$_$.ia;
|
|
49
49
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
50
50
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r2;
|
|
51
51
|
var EmptyCoroutineContext_instance = kotlin_kotlin.$_$.d;
|
|
52
52
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
53
53
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
54
54
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
55
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
56
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
55
|
+
var Continuation = kotlin_kotlin.$_$.i9;
|
|
56
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.ib;
|
|
57
57
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1;
|
|
58
58
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
59
59
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y1;
|
|
60
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
60
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.kb;
|
|
61
61
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z1;
|
|
62
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
62
|
+
var CancellationException = kotlin_kotlin.$_$.x8;
|
|
63
63
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
64
64
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
65
65
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
66
66
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
67
|
-
var Enum = kotlin_kotlin.$_$.
|
|
67
|
+
var Enum = kotlin_kotlin.$_$.tf;
|
|
68
68
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
69
|
-
var listOf = kotlin_kotlin.$_$.
|
|
69
|
+
var listOf = kotlin_kotlin.$_$.r7;
|
|
70
70
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
71
71
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c2;
|
|
72
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
72
|
+
var charSequenceLength = kotlin_kotlin.$_$.ta;
|
|
73
73
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
74
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
74
|
+
var encodeToByteArray = kotlin_kotlin.$_$.jd;
|
|
75
75
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
76
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
76
|
+
var AutoCloseable = kotlin_kotlin.$_$.mf;
|
|
77
77
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f3;
|
|
78
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
79
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
78
|
+
var replace_0 = kotlin_kotlin.$_$.ae;
|
|
79
|
+
var getStringHashCode = kotlin_kotlin.$_$.db;
|
|
80
80
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
81
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
81
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ua;
|
|
82
82
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
83
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
84
|
-
var trim = kotlin_kotlin.$_$.
|
|
85
|
-
var toByte = kotlin_kotlin.$_$.
|
|
86
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
87
|
-
var setOf = kotlin_kotlin.$_$.
|
|
83
|
+
var isCharSequence = kotlin_kotlin.$_$.qb;
|
|
84
|
+
var trim = kotlin_kotlin.$_$.gf;
|
|
85
|
+
var toByte = kotlin_kotlin.$_$.dc;
|
|
86
|
+
var decodeToString_0 = kotlin_kotlin.$_$.hd;
|
|
87
|
+
var setOf = kotlin_kotlin.$_$.d8;
|
|
88
88
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
89
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
89
|
+
var charSequenceGet = kotlin_kotlin.$_$.sa;
|
|
90
90
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l3;
|
|
91
91
|
//endregion
|
|
92
92
|
//region block: pre-declaration
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
initMetadataForObject(Empty, 'Empty');
|
|
95
95
|
initMetadataForClass(Closed, 'Closed');
|
|
96
96
|
function resume() {
|
|
97
|
-
return this.
|
|
97
|
+
return this.q1l().l9(Companion_getInstance().n1l_1);
|
|
98
98
|
}
|
|
99
99
|
function resume_0(throwable) {
|
|
100
|
-
var tmp = this.
|
|
100
|
+
var tmp = this.q1l();
|
|
101
101
|
var tmp_0;
|
|
102
102
|
if (throwable == null) {
|
|
103
103
|
tmp_0 = null;
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
tmp_0 = new Result(tmp$ret$0);
|
|
109
109
|
}
|
|
110
110
|
var tmp1_elvis_lhs = tmp_0;
|
|
111
|
-
return tmp.l9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
111
|
+
return tmp.l9(tmp1_elvis_lhs == null ? Companion_getInstance().n1l_1 : tmp1_elvis_lhs.pm_1);
|
|
112
112
|
}
|
|
113
113
|
initMetadataForInterface(Task, 'Task');
|
|
114
114
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
119
119
|
function awaitContent$default(min, $completion, $super) {
|
|
120
120
|
min = min === VOID ? 1 : min;
|
|
121
|
-
return $super === VOID ? this.
|
|
121
|
+
return $super === VOID ? this.x1n(min, $completion) : $super.x1n.call(this, min, $completion);
|
|
122
122
|
}
|
|
123
123
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
124
124
|
function get_autoFlush() {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
166
166
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
167
167
|
function close() {
|
|
168
|
-
this.
|
|
168
|
+
this.mv();
|
|
169
169
|
}
|
|
170
170
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
171
171
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
//endregion
|
|
185
185
|
function Companion() {
|
|
186
186
|
Companion_instance_0 = this;
|
|
187
|
-
this.
|
|
187
|
+
this.m1l_1 = new Closed(null);
|
|
188
188
|
var tmp = this;
|
|
189
189
|
// Inline function 'kotlin.Companion.success' call
|
|
190
|
-
tmp.
|
|
190
|
+
tmp.n1l_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
191
191
|
}
|
|
192
192
|
var Companion_instance_0;
|
|
193
193
|
function Companion_getInstance() {
|
|
@@ -215,87 +215,87 @@
|
|
|
215
215
|
return Empty_instance;
|
|
216
216
|
}
|
|
217
217
|
function Closed(cause) {
|
|
218
|
-
this.
|
|
218
|
+
this.o1l_1 = cause;
|
|
219
219
|
}
|
|
220
220
|
protoOf(Closed).toString = function () {
|
|
221
|
-
return 'Closed(cause=' + toString(this.
|
|
221
|
+
return 'Closed(cause=' + toString(this.o1l_1) + ')';
|
|
222
222
|
};
|
|
223
223
|
protoOf(Closed).hashCode = function () {
|
|
224
|
-
return this.
|
|
224
|
+
return this.o1l_1 == null ? 0 : hashCode(this.o1l_1);
|
|
225
225
|
};
|
|
226
226
|
protoOf(Closed).equals = function (other) {
|
|
227
227
|
if (this === other)
|
|
228
228
|
return true;
|
|
229
229
|
if (!(other instanceof Closed))
|
|
230
230
|
return false;
|
|
231
|
-
if (!equals(this.
|
|
231
|
+
if (!equals(this.o1l_1, other.o1l_1))
|
|
232
232
|
return false;
|
|
233
233
|
return true;
|
|
234
234
|
};
|
|
235
235
|
function Task() {
|
|
236
236
|
}
|
|
237
237
|
function Read(continuation) {
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
238
|
+
this.u1l_1 = continuation;
|
|
239
|
+
this.v1l_1 = null;
|
|
240
240
|
if (get_DEVELOPMENT_MODE()) {
|
|
241
241
|
var tmp = this;
|
|
242
242
|
// Inline function 'kotlin.also' call
|
|
243
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
243
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.u1l_1), 16));
|
|
244
244
|
stackTraceToString(this_0);
|
|
245
|
-
tmp.
|
|
245
|
+
tmp.v1l_1 = this_0;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
protoOf(Read).
|
|
249
|
-
return this.
|
|
248
|
+
protoOf(Read).q1l = function () {
|
|
249
|
+
return this.u1l_1;
|
|
250
250
|
};
|
|
251
|
-
protoOf(Read).
|
|
252
|
-
return this.
|
|
251
|
+
protoOf(Read).p1l = function () {
|
|
252
|
+
return this.v1l_1;
|
|
253
253
|
};
|
|
254
|
-
protoOf(Read).
|
|
254
|
+
protoOf(Read).r1l = function () {
|
|
255
255
|
return 'read';
|
|
256
256
|
};
|
|
257
257
|
function Write(continuation) {
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
258
|
+
this.w1l_1 = continuation;
|
|
259
|
+
this.x1l_1 = null;
|
|
260
260
|
if (get_DEVELOPMENT_MODE()) {
|
|
261
261
|
var tmp = this;
|
|
262
262
|
// Inline function 'kotlin.also' call
|
|
263
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
263
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.w1l_1), 16));
|
|
264
264
|
stackTraceToString(this_0);
|
|
265
|
-
tmp.
|
|
265
|
+
tmp.x1l_1 = this_0;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
protoOf(Write).
|
|
269
|
-
return this.
|
|
268
|
+
protoOf(Write).q1l = function () {
|
|
269
|
+
return this.w1l_1;
|
|
270
270
|
};
|
|
271
|
-
protoOf(Write).
|
|
272
|
-
return this.
|
|
271
|
+
protoOf(Write).p1l = function () {
|
|
272
|
+
return this.x1l_1;
|
|
273
273
|
};
|
|
274
|
-
protoOf(Write).
|
|
274
|
+
protoOf(Write).r1l = function () {
|
|
275
275
|
return 'write';
|
|
276
276
|
};
|
|
277
277
|
function moveFlushToReadBuffer($this) {
|
|
278
278
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
279
|
-
$this.
|
|
280
|
-
$this.
|
|
281
|
-
$this.
|
|
279
|
+
$this.b1m_1;
|
|
280
|
+
$this.z1l_1.gq($this.d1m_1);
|
|
281
|
+
$this.a1m_1 = 0;
|
|
282
282
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
283
|
-
var current = $this.
|
|
283
|
+
var current = $this.c1m_1.kotlinx$atomicfu$value;
|
|
284
284
|
var tmp;
|
|
285
285
|
if (current instanceof Write) {
|
|
286
|
-
tmp = $this.
|
|
286
|
+
tmp = $this.c1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
287
287
|
} else {
|
|
288
288
|
tmp = false;
|
|
289
289
|
}
|
|
290
290
|
if (tmp) {
|
|
291
|
-
current.
|
|
291
|
+
current.s1l();
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
function closeSlot($this, cause) {
|
|
295
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
296
|
-
var continuation = $this.
|
|
295
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().m1l_1;
|
|
296
|
+
var continuation = $this.c1m_1.atomicfu$getAndSet(closeContinuation);
|
|
297
297
|
if (isInterface(continuation, Task)) {
|
|
298
|
-
continuation.
|
|
298
|
+
continuation.t1l(cause);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -314,8 +314,8 @@
|
|
|
314
314
|
}
|
|
315
315
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
316
316
|
CoroutineImpl.call(this, resultContinuation);
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
317
|
+
this.o1m_1 = _this__u8e3s4;
|
|
318
|
+
this.p1m_1 = min;
|
|
319
319
|
}
|
|
320
320
|
protoOf($awaitContentCOROUTINE$).i9 = function () {
|
|
321
321
|
var suspendResult = this.c9_1;
|
|
@@ -325,39 +325,39 @@
|
|
|
325
325
|
switch (tmp) {
|
|
326
326
|
case 0:
|
|
327
327
|
this.b9_1 = 4;
|
|
328
|
-
rethrowCloseCauseIfNeeded(this.
|
|
329
|
-
if (this.
|
|
328
|
+
rethrowCloseCauseIfNeeded(this.o1m_1);
|
|
329
|
+
if (this.o1m_1.d1m_1.l1() >= fromInt(this.p1m_1))
|
|
330
330
|
return true;
|
|
331
|
-
this.
|
|
331
|
+
this.q1m_1 = this.o1m_1;
|
|
332
332
|
this.a9_1 = 1;
|
|
333
333
|
continue $sm;
|
|
334
334
|
case 1:
|
|
335
|
-
if (!(add(numberToLong(this.
|
|
335
|
+
if (!(add(numberToLong(this.o1m_1.a1m_1), this.o1m_1.d1m_1.l1()) < fromInt(this.p1m_1) && this.o1m_1.f1m_1.kotlinx$atomicfu$value == null)) {
|
|
336
336
|
this.a9_1 = 3;
|
|
337
337
|
continue $sm;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
this.a9_1 = 2;
|
|
341
341
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
342
|
-
cancellable.
|
|
343
|
-
var tmp0 = this.
|
|
342
|
+
cancellable.pw();
|
|
343
|
+
var tmp0 = this.q1m_1;
|
|
344
344
|
var tmp2 = new Read(cancellable);
|
|
345
345
|
l$ret$1: do {
|
|
346
|
-
var previous = tmp0.
|
|
346
|
+
var previous = tmp0.c1m_1.kotlinx$atomicfu$value;
|
|
347
347
|
if (!(previous instanceof Closed)) {
|
|
348
|
-
if (!tmp0.
|
|
349
|
-
tmp2.
|
|
348
|
+
if (!tmp0.c1m_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
349
|
+
tmp2.s1l();
|
|
350
350
|
break l$ret$1;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
if (previous instanceof Read) {
|
|
354
|
-
previous.
|
|
354
|
+
previous.t1l(new ConcurrentIOException(tmp2.r1l(), previous.p1l()));
|
|
355
355
|
} else {
|
|
356
356
|
if (isInterface(previous, Task)) {
|
|
357
|
-
previous.
|
|
357
|
+
previous.s1l();
|
|
358
358
|
} else {
|
|
359
359
|
if (previous instanceof Closed) {
|
|
360
|
-
tmp2.
|
|
360
|
+
tmp2.t1l(previous.o1l_1);
|
|
361
361
|
break l$ret$1;
|
|
362
362
|
} else {
|
|
363
363
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -366,21 +366,21 @@
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
if (!(add(numberToLong(this.
|
|
370
|
-
var current = tmp0.
|
|
369
|
+
if (!(add(numberToLong(this.o1m_1.a1m_1), this.o1m_1.d1m_1.l1()) < fromInt(this.p1m_1) && this.o1m_1.f1m_1.kotlinx$atomicfu$value == null)) {
|
|
370
|
+
var current = tmp0.c1m_1.kotlinx$atomicfu$value;
|
|
371
371
|
var tmp_0;
|
|
372
372
|
if (current instanceof Read) {
|
|
373
|
-
tmp_0 = tmp0.
|
|
373
|
+
tmp_0 = tmp0.c1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
374
374
|
} else {
|
|
375
375
|
tmp_0 = false;
|
|
376
376
|
}
|
|
377
377
|
if (tmp_0) {
|
|
378
|
-
current.
|
|
378
|
+
current.s1l();
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
while (false);
|
|
383
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
383
|
+
suspendResult = returnIfSuspended(cancellable.qw(), this);
|
|
384
384
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
385
385
|
return suspendResult;
|
|
386
386
|
}
|
|
@@ -390,11 +390,11 @@
|
|
|
390
390
|
this.a9_1 = 1;
|
|
391
391
|
continue $sm;
|
|
392
392
|
case 3:
|
|
393
|
-
if (this.
|
|
394
|
-
moveFlushToReadBuffer(this.
|
|
393
|
+
if (this.o1m_1.d1m_1.l1() < 1048576n) {
|
|
394
|
+
moveFlushToReadBuffer(this.o1m_1);
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
return this.
|
|
397
|
+
return this.o1m_1.d1m_1.l1() >= fromInt(this.p1m_1);
|
|
398
398
|
case 4:
|
|
399
399
|
throw this.d9_1;
|
|
400
400
|
}
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
};
|
|
412
412
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
413
413
|
CoroutineImpl.call(this, resultContinuation);
|
|
414
|
-
this.
|
|
414
|
+
this.z1m_1 = _this__u8e3s4;
|
|
415
415
|
}
|
|
416
416
|
protoOf($flushCOROUTINE$).i9 = function () {
|
|
417
417
|
var suspendResult = this.c9_1;
|
|
@@ -421,40 +421,40 @@
|
|
|
421
421
|
switch (tmp) {
|
|
422
422
|
case 0:
|
|
423
423
|
this.b9_1 = 4;
|
|
424
|
-
rethrowCloseCauseIfNeeded(this.
|
|
425
|
-
this.
|
|
426
|
-
if (this.
|
|
424
|
+
rethrowCloseCauseIfNeeded(this.z1m_1);
|
|
425
|
+
this.z1m_1.b1n();
|
|
426
|
+
if (this.z1m_1.a1m_1 < 1048576)
|
|
427
427
|
return Unit_instance;
|
|
428
|
-
this.
|
|
428
|
+
this.a1n_1 = this.z1m_1;
|
|
429
429
|
this.a9_1 = 1;
|
|
430
430
|
continue $sm;
|
|
431
431
|
case 1:
|
|
432
|
-
if (!(this.
|
|
432
|
+
if (!(this.z1m_1.a1m_1 >= 1048576 && this.z1m_1.f1m_1.kotlinx$atomicfu$value == null)) {
|
|
433
433
|
this.a9_1 = 3;
|
|
434
434
|
continue $sm;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
this.a9_1 = 2;
|
|
438
438
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
439
|
-
cancellable.
|
|
440
|
-
var tmp0 = this.
|
|
439
|
+
cancellable.pw();
|
|
440
|
+
var tmp0 = this.a1n_1;
|
|
441
441
|
var tmp2 = new Write(cancellable);
|
|
442
442
|
l$ret$1: do {
|
|
443
|
-
var previous = tmp0.
|
|
443
|
+
var previous = tmp0.c1m_1.kotlinx$atomicfu$value;
|
|
444
444
|
if (!(previous instanceof Closed)) {
|
|
445
|
-
if (!tmp0.
|
|
446
|
-
tmp2.
|
|
445
|
+
if (!tmp0.c1m_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
446
|
+
tmp2.s1l();
|
|
447
447
|
break l$ret$1;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
if (previous instanceof Write) {
|
|
451
|
-
previous.
|
|
451
|
+
previous.t1l(new ConcurrentIOException(tmp2.r1l(), previous.p1l()));
|
|
452
452
|
} else {
|
|
453
453
|
if (isInterface(previous, Task)) {
|
|
454
|
-
previous.
|
|
454
|
+
previous.s1l();
|
|
455
455
|
} else {
|
|
456
456
|
if (previous instanceof Closed) {
|
|
457
|
-
tmp2.
|
|
457
|
+
tmp2.t1l(previous.o1l_1);
|
|
458
458
|
break l$ret$1;
|
|
459
459
|
} else {
|
|
460
460
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -463,21 +463,21 @@
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
if (!(this.
|
|
467
|
-
var current = tmp0.
|
|
466
|
+
if (!(this.z1m_1.a1m_1 >= 1048576 && this.z1m_1.f1m_1.kotlinx$atomicfu$value == null)) {
|
|
467
|
+
var current = tmp0.c1m_1.kotlinx$atomicfu$value;
|
|
468
468
|
var tmp_0;
|
|
469
469
|
if (current instanceof Write) {
|
|
470
|
-
tmp_0 = tmp0.
|
|
470
|
+
tmp_0 = tmp0.c1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
471
471
|
} else {
|
|
472
472
|
tmp_0 = false;
|
|
473
473
|
}
|
|
474
474
|
if (tmp_0) {
|
|
475
|
-
current.
|
|
475
|
+
current.s1l();
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
while (false);
|
|
480
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
480
|
+
suspendResult = returnIfSuspended(cancellable.qw(), this);
|
|
481
481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
482
482
|
return suspendResult;
|
|
483
483
|
}
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
};
|
|
505
505
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
506
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
507
|
-
this.
|
|
507
|
+
this.k1n_1 = _this__u8e3s4;
|
|
508
508
|
}
|
|
509
509
|
protoOf($flushAndCloseCOROUTINE$).i9 = function () {
|
|
510
510
|
var suspendResult = this.c9_1;
|
|
@@ -514,11 +514,11 @@
|
|
|
514
514
|
switch (tmp) {
|
|
515
515
|
case 0:
|
|
516
516
|
this.b9_1 = 4;
|
|
517
|
-
var this_0 = this.
|
|
517
|
+
var this_0 = this.k1n_1;
|
|
518
518
|
this.b9_1 = 2;
|
|
519
|
-
this.
|
|
519
|
+
this.m1n_1 = Companion_instance;
|
|
520
520
|
this.a9_1 = 1;
|
|
521
|
-
suspendResult = this_0.
|
|
521
|
+
suspendResult = this_0.n1n(this);
|
|
522
522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
523
|
return suspendResult;
|
|
524
524
|
}
|
|
@@ -526,8 +526,8 @@
|
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 1:
|
|
528
528
|
var tmp_0 = this;
|
|
529
|
-
this.
|
|
530
|
-
tmp_0.
|
|
529
|
+
this.m1n_1;
|
|
530
|
+
tmp_0.l1n_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
531
531
|
this.b9_1 = 4;
|
|
532
532
|
this.a9_1 = 3;
|
|
533
533
|
continue $sm;
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
if (tmp_1 instanceof Error) {
|
|
538
538
|
var e = this.d9_1;
|
|
539
539
|
var tmp_2 = this;
|
|
540
|
-
tmp_2.
|
|
540
|
+
tmp_2.l1n_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
541
541
|
this.a9_1 = 3;
|
|
542
542
|
continue $sm;
|
|
543
543
|
} else {
|
|
@@ -546,9 +546,9 @@
|
|
|
546
546
|
|
|
547
547
|
case 3:
|
|
548
548
|
this.b9_1 = 4;
|
|
549
|
-
if (!this.
|
|
549
|
+
if (!this.k1n_1.f1m_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
550
550
|
return Unit_instance;
|
|
551
|
-
closeSlot(this.
|
|
551
|
+
closeSlot(this.k1n_1, null);
|
|
552
552
|
return Unit_instance;
|
|
553
553
|
case 4:
|
|
554
554
|
throw this.d9_1;
|
|
@@ -566,104 +566,104 @@
|
|
|
566
566
|
};
|
|
567
567
|
function ByteChannel(autoFlush) {
|
|
568
568
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
569
|
-
this.
|
|
569
|
+
this.y1l_1 = autoFlush;
|
|
570
|
+
this.z1l_1 = new Buffer();
|
|
571
|
+
this.a1m_1 = 0;
|
|
572
|
+
this.b1m_1 = new Object();
|
|
573
|
+
this.c1m_1 = atomic$ref$1(Empty_instance);
|
|
570
574
|
this.d1m_1 = new Buffer();
|
|
571
|
-
this.e1m_1 =
|
|
572
|
-
this.f1m_1 =
|
|
573
|
-
this.g1m_1 = atomic$ref$1(Empty_instance);
|
|
574
|
-
this.h1m_1 = new Buffer();
|
|
575
|
-
this.i1m_1 = new Buffer();
|
|
576
|
-
this.j1m_1 = atomic$ref$1(null);
|
|
575
|
+
this.e1m_1 = new Buffer();
|
|
576
|
+
this.f1m_1 = atomic$ref$1(null);
|
|
577
577
|
}
|
|
578
|
-
protoOf(ByteChannel).
|
|
579
|
-
return this.
|
|
578
|
+
protoOf(ByteChannel).o1n = function () {
|
|
579
|
+
return this.y1l_1;
|
|
580
580
|
};
|
|
581
|
-
protoOf(ByteChannel).
|
|
582
|
-
var tmp0_safe_receiver = this.
|
|
581
|
+
protoOf(ByteChannel).p1n = function () {
|
|
582
|
+
var tmp0_safe_receiver = this.f1m_1.kotlinx$atomicfu$value;
|
|
583
583
|
if (tmp0_safe_receiver == null)
|
|
584
584
|
null;
|
|
585
585
|
else {
|
|
586
|
-
tmp0_safe_receiver.
|
|
586
|
+
tmp0_safe_receiver.r1n(ClosedReadChannelException$_init_$ref_ix0089());
|
|
587
587
|
}
|
|
588
|
-
if (this.
|
|
588
|
+
if (this.d1m_1.dp()) {
|
|
589
589
|
moveFlushToReadBuffer(this);
|
|
590
590
|
}
|
|
591
|
-
return this.
|
|
591
|
+
return this.d1m_1;
|
|
592
592
|
};
|
|
593
|
-
protoOf(ByteChannel).
|
|
594
|
-
if (this.
|
|
595
|
-
var tmp0_safe_receiver = this.
|
|
593
|
+
protoOf(ByteChannel).s1n = function () {
|
|
594
|
+
if (this.t1n()) {
|
|
595
|
+
var tmp0_safe_receiver = this.f1m_1.kotlinx$atomicfu$value;
|
|
596
596
|
var tmp;
|
|
597
597
|
if (tmp0_safe_receiver == null) {
|
|
598
598
|
tmp = null;
|
|
599
599
|
} else {
|
|
600
|
-
tmp = tmp0_safe_receiver.
|
|
600
|
+
tmp = tmp0_safe_receiver.r1n(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
601
601
|
}
|
|
602
602
|
if (tmp == null)
|
|
603
603
|
throw new ClosedWriteChannelException();
|
|
604
604
|
}
|
|
605
|
-
return this.
|
|
605
|
+
return this.e1m_1;
|
|
606
606
|
};
|
|
607
|
-
protoOf(ByteChannel).
|
|
608
|
-
var tmp0_safe_receiver = this.
|
|
609
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
607
|
+
protoOf(ByteChannel).u1n = function () {
|
|
608
|
+
var tmp0_safe_receiver = this.f1m_1.kotlinx$atomicfu$value;
|
|
609
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1n();
|
|
610
610
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
return !(this.
|
|
611
|
+
protoOf(ByteChannel).t1n = function () {
|
|
612
|
+
return !(this.f1m_1.kotlinx$atomicfu$value == null);
|
|
613
613
|
};
|
|
614
|
-
protoOf(ByteChannel).
|
|
615
|
-
return !(this.
|
|
614
|
+
protoOf(ByteChannel).w1n = function () {
|
|
615
|
+
return !(this.u1n() == null) || (this.t1n() && this.a1m_1 === 0 && this.d1m_1.dp());
|
|
616
616
|
};
|
|
617
|
-
protoOf(ByteChannel).
|
|
617
|
+
protoOf(ByteChannel).x1n = function (min, $completion) {
|
|
618
618
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
619
619
|
tmp.c9_1 = Unit_instance;
|
|
620
620
|
tmp.d9_1 = null;
|
|
621
621
|
return tmp.i9();
|
|
622
622
|
};
|
|
623
|
-
protoOf(ByteChannel).
|
|
623
|
+
protoOf(ByteChannel).n1n = function ($completion) {
|
|
624
624
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
625
625
|
tmp.c9_1 = Unit_instance;
|
|
626
626
|
tmp.d9_1 = null;
|
|
627
627
|
return tmp.i9();
|
|
628
628
|
};
|
|
629
|
-
protoOf(ByteChannel).
|
|
630
|
-
if (this.
|
|
629
|
+
protoOf(ByteChannel).b1n = function () {
|
|
630
|
+
if (this.e1m_1.dp())
|
|
631
631
|
return Unit_instance;
|
|
632
632
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
633
|
-
this.
|
|
634
|
-
var count = convertToInt(this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
633
|
+
this.b1m_1;
|
|
634
|
+
var count = convertToInt(this.e1m_1.l1());
|
|
635
|
+
this.z1l_1.vq(this.e1m_1);
|
|
636
|
+
this.a1m_1 = this.a1m_1 + count | 0;
|
|
637
637
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
638
|
-
var current = this.
|
|
638
|
+
var current = this.c1m_1.kotlinx$atomicfu$value;
|
|
639
639
|
var tmp;
|
|
640
640
|
if (current instanceof Read) {
|
|
641
|
-
tmp = this.
|
|
641
|
+
tmp = this.c1m_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
642
642
|
} else {
|
|
643
643
|
tmp = false;
|
|
644
644
|
}
|
|
645
645
|
if (tmp) {
|
|
646
|
-
current.
|
|
646
|
+
current.s1l();
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
649
|
protoOf(ByteChannel).l4 = function () {
|
|
650
|
-
this.
|
|
651
|
-
if (!this.
|
|
650
|
+
this.b1n();
|
|
651
|
+
if (!this.f1m_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
652
652
|
return Unit_instance;
|
|
653
653
|
closeSlot(this, null);
|
|
654
654
|
};
|
|
655
|
-
protoOf(ByteChannel).
|
|
655
|
+
protoOf(ByteChannel).z1n = function ($completion) {
|
|
656
656
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
657
657
|
tmp.c9_1 = Unit_instance;
|
|
658
658
|
tmp.d9_1 = null;
|
|
659
659
|
return tmp.i9();
|
|
660
660
|
};
|
|
661
|
-
protoOf(ByteChannel).
|
|
662
|
-
if (!(this.
|
|
661
|
+
protoOf(ByteChannel).a1o = function (cause) {
|
|
662
|
+
if (!(this.f1m_1.kotlinx$atomicfu$value == null))
|
|
663
663
|
return Unit_instance;
|
|
664
664
|
var closedToken = new CloseToken(cause);
|
|
665
|
-
this.
|
|
666
|
-
var wrappedCause = closedToken.
|
|
665
|
+
this.f1m_1.atomicfu$compareAndSet(null, closedToken);
|
|
666
|
+
var wrappedCause = closedToken.v1n();
|
|
667
667
|
closeSlot(this, wrappedCause);
|
|
668
668
|
};
|
|
669
669
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
length = length === VOID ? content.length : length;
|
|
680
680
|
// Inline function 'kotlin.also' call
|
|
681
681
|
var this_0 = new Buffer();
|
|
682
|
-
this_0.
|
|
682
|
+
this_0.mq(content, offset, offset + length | 0);
|
|
683
683
|
var source = this_0;
|
|
684
684
|
return ByteReadChannel_0(source);
|
|
685
685
|
}
|
|
@@ -687,18 +687,18 @@
|
|
|
687
687
|
return new SourceByteReadChannel(source);
|
|
688
688
|
}
|
|
689
689
|
function buildPartialMatchTable($this) {
|
|
690
|
-
var table = new Int32Array($this.
|
|
690
|
+
var table = new Int32Array($this.c1o_1.l1());
|
|
691
691
|
var j = 0;
|
|
692
692
|
var inductionVariable = 1;
|
|
693
|
-
var last = $this.
|
|
693
|
+
var last = $this.c1o_1.l1();
|
|
694
694
|
if (inductionVariable < last)
|
|
695
695
|
do {
|
|
696
696
|
var i = inductionVariable;
|
|
697
697
|
inductionVariable = inductionVariable + 1 | 0;
|
|
698
|
-
while (j > 0 && !($this.
|
|
698
|
+
while (j > 0 && !($this.c1o_1.m1(i) === $this.c1o_1.m1(j))) {
|
|
699
699
|
j = table[j - 1 | 0];
|
|
700
700
|
}
|
|
701
|
-
if ($this.
|
|
701
|
+
if ($this.c1o_1.m1(i) === $this.c1o_1.m1(j)) {
|
|
702
702
|
j = j + 1 | 0;
|
|
703
703
|
}
|
|
704
704
|
table[i] = j;
|
|
@@ -719,8 +719,8 @@
|
|
|
719
719
|
return tmp.i9();
|
|
720
720
|
}
|
|
721
721
|
function checkBounds($this, extra) {
|
|
722
|
-
if (add($this.
|
|
723
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
722
|
+
if (add($this.i1o_1, extra) > $this.e1o_1) {
|
|
723
|
+
throw IOException_init_$Create$('Limit of ' + $this.e1o_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.c1o_1) + '"'));
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
function toSingleLineString($this, $receiver) {
|
|
@@ -728,8 +728,8 @@
|
|
|
728
728
|
}
|
|
729
729
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
730
730
|
CoroutineImpl.call(this, resultContinuation);
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
731
|
+
this.n1p_1 = _this__u8e3s4;
|
|
732
|
+
this.o1p_1 = ignoreMissing;
|
|
733
733
|
}
|
|
734
734
|
protoOf($findNextCOROUTINE$).i9 = function () {
|
|
735
735
|
var suspendResult = this.c9_1;
|
|
@@ -739,17 +739,17 @@
|
|
|
739
739
|
switch (tmp) {
|
|
740
740
|
case 0:
|
|
741
741
|
this.b9_1 = 9;
|
|
742
|
-
this.
|
|
742
|
+
this.n1p_1.i1o_1 = 0n;
|
|
743
743
|
this.a9_1 = 1;
|
|
744
744
|
continue $sm;
|
|
745
745
|
case 1:
|
|
746
|
-
if (!this.
|
|
747
|
-
this.
|
|
746
|
+
if (!this.n1p_1.f1o_1.dp()) {
|
|
747
|
+
this.p1p_1 = true;
|
|
748
748
|
this.a9_1 = 3;
|
|
749
749
|
continue $sm;
|
|
750
750
|
} else {
|
|
751
751
|
this.a9_1 = 2;
|
|
752
|
-
suspendResult = this.
|
|
752
|
+
suspendResult = this.n1p_1.b1o_1.y1n(VOID, this);
|
|
753
753
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
754
754
|
return suspendResult;
|
|
755
755
|
}
|
|
@@ -757,17 +757,17 @@
|
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
case 2:
|
|
760
|
-
this.
|
|
760
|
+
this.p1p_1 = suspendResult;
|
|
761
761
|
this.a9_1 = 3;
|
|
762
762
|
continue $sm;
|
|
763
763
|
case 3:
|
|
764
|
-
if (!this.
|
|
764
|
+
if (!this.p1p_1) {
|
|
765
765
|
this.a9_1 = 7;
|
|
766
766
|
continue $sm;
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
this.a9_1 = 4;
|
|
770
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
770
|
+
suspendResult = advanceToNextPotentialMatch(this.n1p_1, this);
|
|
771
771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
772
772
|
return suspendResult;
|
|
773
773
|
}
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
continue $sm;
|
|
776
776
|
case 4:
|
|
777
777
|
this.a9_1 = 5;
|
|
778
|
-
suspendResult = checkFullMatch(this.
|
|
778
|
+
suspendResult = checkFullMatch(this.n1p_1, this);
|
|
779
779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
780
|
return suspendResult;
|
|
781
781
|
}
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
continue $sm;
|
|
784
784
|
case 5:
|
|
785
785
|
if (suspendResult) {
|
|
786
|
-
return this.
|
|
786
|
+
return this.n1p_1.i1o_1;
|
|
787
787
|
} else {
|
|
788
788
|
this.a9_1 = 6;
|
|
789
789
|
continue $sm;
|
|
@@ -793,20 +793,20 @@
|
|
|
793
793
|
this.a9_1 = 1;
|
|
794
794
|
continue $sm;
|
|
795
795
|
case 7:
|
|
796
|
-
if (!this.
|
|
797
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
796
|
+
if (!this.o1p_1) {
|
|
797
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.n1p_1, this.n1p_1.c1o_1) + '" but encountered end of input');
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
-
this.
|
|
800
|
+
this.n1p_1.i1o_1 = add(this.n1p_1.i1o_1, this.n1p_1.h1o_1.gq(this.n1p_1.d1o_1.s1n()));
|
|
801
801
|
this.a9_1 = 8;
|
|
802
|
-
suspendResult = this.
|
|
802
|
+
suspendResult = this.n1p_1.d1o_1.n1n(this);
|
|
803
803
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
804
804
|
return suspendResult;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
continue $sm;
|
|
808
808
|
case 8:
|
|
809
|
-
return this.
|
|
809
|
+
return this.n1p_1.i1o_1;
|
|
810
810
|
case 9:
|
|
811
811
|
throw this.d9_1;
|
|
812
812
|
}
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
};
|
|
824
824
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
825
825
|
CoroutineImpl.call(this, resultContinuation);
|
|
826
|
-
this.
|
|
826
|
+
this.s1o_1 = _this__u8e3s4;
|
|
827
827
|
}
|
|
828
828
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).i9 = function () {
|
|
829
829
|
var suspendResult = this.c9_1;
|
|
@@ -836,13 +836,13 @@
|
|
|
836
836
|
this.a9_1 = 1;
|
|
837
837
|
continue $sm;
|
|
838
838
|
case 1:
|
|
839
|
-
if (!this.
|
|
840
|
-
this.
|
|
839
|
+
if (!this.s1o_1.f1o_1.dp()) {
|
|
840
|
+
this.t1o_1 = true;
|
|
841
841
|
this.a9_1 = 3;
|
|
842
842
|
continue $sm;
|
|
843
843
|
} else {
|
|
844
844
|
this.a9_1 = 2;
|
|
845
|
-
suspendResult = this.
|
|
845
|
+
suspendResult = this.s1o_1.b1o_1.y1n(VOID, this);
|
|
846
846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
847
847
|
return suspendResult;
|
|
848
848
|
}
|
|
@@ -850,34 +850,34 @@
|
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
case 2:
|
|
853
|
-
this.
|
|
853
|
+
this.t1o_1 = suspendResult;
|
|
854
854
|
this.a9_1 = 3;
|
|
855
855
|
continue $sm;
|
|
856
856
|
case 3:
|
|
857
|
-
if (!this.
|
|
857
|
+
if (!this.t1o_1) {
|
|
858
858
|
this.a9_1 = 7;
|
|
859
859
|
continue $sm;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
var nextMatch = indexOf(this.
|
|
862
|
+
var nextMatch = indexOf(this.s1o_1.f1o_1, this.s1o_1.c1o_1.m1(0));
|
|
863
863
|
if (nextMatch === -1n) {
|
|
864
|
-
var tmp_0 = this.
|
|
865
|
-
checkBounds(this.
|
|
866
|
-
this.
|
|
864
|
+
var tmp_0 = this.s1o_1.f1o_1;
|
|
865
|
+
checkBounds(this.s1o_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).l1());
|
|
866
|
+
this.s1o_1.i1o_1 = add(this.s1o_1.i1o_1, this.s1o_1.f1o_1.gq(this.s1o_1.d1o_1.s1n()));
|
|
867
867
|
this.a9_1 = 5;
|
|
868
|
-
suspendResult = flushIfNeeded(this.
|
|
868
|
+
suspendResult = flushIfNeeded(this.s1o_1.d1o_1, this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
872
872
|
continue $sm;
|
|
873
873
|
} else {
|
|
874
|
-
checkBounds(this.
|
|
875
|
-
var tmp_1 = this.
|
|
876
|
-
var tmp_2 = this.
|
|
877
|
-
var tmp_3 = this.
|
|
878
|
-
tmp_1.
|
|
874
|
+
checkBounds(this.s1o_1, nextMatch);
|
|
875
|
+
var tmp_1 = this.s1o_1;
|
|
876
|
+
var tmp_2 = this.s1o_1.i1o_1;
|
|
877
|
+
var tmp_3 = this.s1o_1.d1o_1.s1n();
|
|
878
|
+
tmp_1.i1o_1 = add(tmp_2, this.s1o_1.f1o_1.dq(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
879
879
|
this.a9_1 = 4;
|
|
880
|
-
suspendResult = flushIfNeeded(this.
|
|
880
|
+
suspendResult = flushIfNeeded(this.s1o_1.d1o_1, this);
|
|
881
881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
882
882
|
return suspendResult;
|
|
883
883
|
}
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
};
|
|
911
911
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
912
912
|
CoroutineImpl.call(this, resultContinuation);
|
|
913
|
-
this.
|
|
913
|
+
this.c1p_1 = _this__u8e3s4;
|
|
914
914
|
}
|
|
915
915
|
protoOf($checkFullMatchCOROUTINE$).i9 = function () {
|
|
916
916
|
var suspendResult = this.c9_1;
|
|
@@ -923,13 +923,13 @@
|
|
|
923
923
|
this.a9_1 = 1;
|
|
924
924
|
continue $sm;
|
|
925
925
|
case 1:
|
|
926
|
-
if (!this.
|
|
927
|
-
this.
|
|
926
|
+
if (!this.c1p_1.f1o_1.dp()) {
|
|
927
|
+
this.e1p_1 = true;
|
|
928
928
|
this.a9_1 = 3;
|
|
929
929
|
continue $sm;
|
|
930
930
|
} else {
|
|
931
931
|
this.a9_1 = 2;
|
|
932
|
-
suspendResult = this.
|
|
932
|
+
suspendResult = this.c1p_1.b1o_1.y1n(VOID, this);
|
|
933
933
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
934
934
|
return suspendResult;
|
|
935
935
|
}
|
|
@@ -937,30 +937,30 @@
|
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
case 2:
|
|
940
|
-
this.
|
|
940
|
+
this.e1p_1 = suspendResult;
|
|
941
941
|
this.a9_1 = 3;
|
|
942
942
|
continue $sm;
|
|
943
943
|
case 3:
|
|
944
|
-
if (!this.
|
|
944
|
+
if (!this.e1p_1) {
|
|
945
945
|
this.a9_1 = 7;
|
|
946
946
|
continue $sm;
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
this.
|
|
950
|
-
if (this.
|
|
951
|
-
var oldMatchIndex = this.
|
|
952
|
-
while (this.
|
|
953
|
-
this.
|
|
949
|
+
this.d1p_1 = this.c1p_1.f1o_1.gp();
|
|
950
|
+
if (this.c1p_1.j1o_1 > 0 && !(this.d1p_1 === this.c1p_1.c1o_1.m1(this.c1p_1.j1o_1))) {
|
|
951
|
+
var oldMatchIndex = this.c1p_1.j1o_1;
|
|
952
|
+
while (this.c1p_1.j1o_1 > 0 && !(this.d1p_1 === this.c1p_1.c1o_1.m1(this.c1p_1.j1o_1))) {
|
|
953
|
+
this.c1p_1.j1o_1 = this.c1p_1.g1o_1[this.c1p_1.j1o_1 - 1 | 0];
|
|
954
954
|
}
|
|
955
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
956
|
-
checkBounds(this.
|
|
957
|
-
var tmp_0 = this.
|
|
958
|
-
var tmp_1 = this.
|
|
959
|
-
var tmp_2 = this.
|
|
960
|
-
tmp_0.
|
|
961
|
-
if (this.
|
|
955
|
+
var retained = fromInt(oldMatchIndex - this.c1p_1.j1o_1 | 0);
|
|
956
|
+
checkBounds(this.c1p_1, retained);
|
|
957
|
+
var tmp_0 = this.c1p_1;
|
|
958
|
+
var tmp_1 = this.c1p_1.i1o_1;
|
|
959
|
+
var tmp_2 = this.c1p_1.d1o_1.s1n();
|
|
960
|
+
tmp_0.i1o_1 = add(tmp_1, this.c1p_1.h1o_1.dq(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
961
|
+
if (this.c1p_1.j1o_1 === 0 && !(this.d1p_1 === this.c1p_1.c1o_1.m1(this.c1p_1.j1o_1))) {
|
|
962
962
|
this.a9_1 = 6;
|
|
963
|
-
suspendResult = writeByte(this.
|
|
963
|
+
suspendResult = writeByte(this.c1p_1.d1o_1, this.d1p_1, this);
|
|
964
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
965
|
return suspendResult;
|
|
966
966
|
}
|
|
@@ -978,17 +978,17 @@
|
|
|
978
978
|
this.a9_1 = 5;
|
|
979
979
|
continue $sm;
|
|
980
980
|
case 5:
|
|
981
|
-
this.
|
|
982
|
-
if (this.
|
|
981
|
+
this.c1p_1.j1o_1 = this.c1p_1.j1o_1 + 1 | 0;
|
|
982
|
+
if (this.c1p_1.j1o_1 === this.c1p_1.c1o_1.l1()) {
|
|
983
983
|
return true;
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
this.
|
|
986
|
+
this.c1p_1.h1o_1.wq(this.d1p_1);
|
|
987
987
|
this.a9_1 = 1;
|
|
988
988
|
continue $sm;
|
|
989
989
|
case 6:
|
|
990
|
-
var _unary__edvuaz = this.
|
|
991
|
-
this.
|
|
990
|
+
var _unary__edvuaz = this.c1p_1.i1o_1;
|
|
991
|
+
this.c1p_1.i1o_1 = add(_unary__edvuaz, get_ONE());
|
|
992
992
|
return false;
|
|
993
993
|
case 7:
|
|
994
994
|
return false;
|
|
@@ -1008,49 +1008,49 @@
|
|
|
1008
1008
|
};
|
|
1009
1009
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1010
1010
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1011
|
+
this.b1o_1 = channel;
|
|
1012
|
+
this.c1o_1 = matchString;
|
|
1013
|
+
this.d1o_1 = writeChannel;
|
|
1014
|
+
this.e1o_1 = limit;
|
|
1015
1015
|
// Inline function 'kotlin.require' call
|
|
1016
|
-
if (!(this.
|
|
1016
|
+
if (!(this.c1o_1.l1() > 0)) {
|
|
1017
1017
|
var message = 'Empty match string not permitted for scanning';
|
|
1018
1018
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1019
1019
|
}
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1020
|
+
this.f1o_1 = this.b1o_1.p1n();
|
|
1021
|
+
this.g1o_1 = buildPartialMatchTable(this);
|
|
1022
|
+
this.h1o_1 = new Buffer();
|
|
1023
|
+
this.i1o_1 = 0n;
|
|
1024
|
+
this.j1o_1 = 0;
|
|
1025
1025
|
}
|
|
1026
|
-
protoOf(ByteChannelScanner).
|
|
1026
|
+
protoOf(ByteChannelScanner).q1p = function (ignoreMissing, $completion) {
|
|
1027
1027
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1028
1028
|
tmp.c9_1 = Unit_instance;
|
|
1029
1029
|
tmp.d9_1 = null;
|
|
1030
1030
|
return tmp.i9();
|
|
1031
1031
|
};
|
|
1032
1032
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1033
|
-
this.
|
|
1034
|
-
this.
|
|
1033
|
+
this.r1p_1 = null;
|
|
1034
|
+
this.s1p_1 = new Buffer();
|
|
1035
1035
|
}
|
|
1036
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1037
|
-
return this.
|
|
1036
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1n = function () {
|
|
1037
|
+
return this.r1p_1;
|
|
1038
1038
|
};
|
|
1039
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1039
|
+
protoOf(ByteReadChannel$Companion$Empty$1).w1n = function () {
|
|
1040
1040
|
return true;
|
|
1041
1041
|
};
|
|
1042
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1043
|
-
return this.
|
|
1042
|
+
protoOf(ByteReadChannel$Companion$Empty$1).p1n = function () {
|
|
1043
|
+
return this.s1p_1;
|
|
1044
1044
|
};
|
|
1045
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1045
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x1n = function (min, $completion) {
|
|
1046
1046
|
return false;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1048
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1o = function (cause) {
|
|
1049
1049
|
};
|
|
1050
1050
|
function Companion_0() {
|
|
1051
1051
|
Companion_instance_1 = this;
|
|
1052
1052
|
var tmp = this;
|
|
1053
|
-
tmp.
|
|
1053
|
+
tmp.t1p_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1054
1054
|
}
|
|
1055
1055
|
var Companion_instance_1;
|
|
1056
1056
|
function Companion_getInstance_0() {
|
|
@@ -1061,7 +1061,7 @@
|
|
|
1061
1061
|
function ByteReadChannel_1() {
|
|
1062
1062
|
}
|
|
1063
1063
|
function cancel_0(_this__u8e3s4) {
|
|
1064
|
-
_this__u8e3s4.
|
|
1064
|
+
_this__u8e3s4.a1o(IOException_init_$Create$('Channel was cancelled'));
|
|
1065
1065
|
}
|
|
1066
1066
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1067
1067
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1117,7 +1117,7 @@
|
|
|
1117
1117
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1118
1118
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1119
1119
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1120
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1120
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).q1p(ignoreMissing, $completion);
|
|
1121
1121
|
}
|
|
1122
1122
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1123
1123
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1136,7 +1136,7 @@
|
|
|
1136
1136
|
return tmp.i9();
|
|
1137
1137
|
}
|
|
1138
1138
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1139
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1139
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1n();
|
|
1140
1140
|
if (tmp0_safe_receiver == null)
|
|
1141
1141
|
null;
|
|
1142
1142
|
else {
|
|
@@ -1145,7 +1145,7 @@
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1148
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1148
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1n();
|
|
1149
1149
|
if (tmp0_safe_receiver == null)
|
|
1150
1150
|
null;
|
|
1151
1151
|
else {
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
function get_availableForRead(_this__u8e3s4) {
|
|
1157
|
-
return convertToInt(_this__u8e3s4.
|
|
1157
|
+
return convertToInt(_this__u8e3s4.p1n().cp().l1());
|
|
1158
1158
|
}
|
|
1159
1159
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1160
1160
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1175,7 +1175,7 @@
|
|
|
1175
1175
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1176
1176
|
}
|
|
1177
1177
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1178
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1178
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1n();
|
|
1179
1179
|
if (tmp0_safe_receiver == null)
|
|
1180
1180
|
null;
|
|
1181
1181
|
else {
|
|
@@ -1220,7 +1220,7 @@
|
|
|
1220
1220
|
}
|
|
1221
1221
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1222
1222
|
CoroutineImpl.call(this, resultContinuation);
|
|
1223
|
-
this.
|
|
1223
|
+
this.c1q_1 = _this__u8e3s4;
|
|
1224
1224
|
}
|
|
1225
1225
|
protoOf($readBufferCOROUTINE$).i9 = function () {
|
|
1226
1226
|
var suspendResult = this.c9_1;
|
|
@@ -1230,18 +1230,18 @@
|
|
|
1230
1230
|
switch (tmp) {
|
|
1231
1231
|
case 0:
|
|
1232
1232
|
this.b9_1 = 4;
|
|
1233
|
-
this.
|
|
1233
|
+
this.d1q_1 = new Buffer();
|
|
1234
1234
|
this.a9_1 = 1;
|
|
1235
1235
|
continue $sm;
|
|
1236
1236
|
case 1:
|
|
1237
|
-
if (!!this.
|
|
1237
|
+
if (!!this.c1q_1.w1n()) {
|
|
1238
1238
|
this.a9_1 = 3;
|
|
1239
1239
|
continue $sm;
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
|
-
this.
|
|
1242
|
+
this.d1q_1.vq(this.c1q_1.p1n());
|
|
1243
1243
|
this.a9_1 = 2;
|
|
1244
|
-
suspendResult = this.
|
|
1244
|
+
suspendResult = this.c1q_1.y1n(VOID, this);
|
|
1245
1245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1246
1246
|
return suspendResult;
|
|
1247
1247
|
}
|
|
@@ -1251,14 +1251,14 @@
|
|
|
1251
1251
|
this.a9_1 = 1;
|
|
1252
1252
|
continue $sm;
|
|
1253
1253
|
case 3:
|
|
1254
|
-
var tmp0_safe_receiver = this.
|
|
1254
|
+
var tmp0_safe_receiver = this.c1q_1.u1n();
|
|
1255
1255
|
if (tmp0_safe_receiver == null)
|
|
1256
1256
|
null;
|
|
1257
1257
|
else {
|
|
1258
1258
|
throw tmp0_safe_receiver;
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
-
return this.
|
|
1261
|
+
return this.d1q_1;
|
|
1262
1262
|
case 4:
|
|
1263
1263
|
throw this.d9_1;
|
|
1264
1264
|
}
|
|
@@ -1275,10 +1275,10 @@
|
|
|
1275
1275
|
};
|
|
1276
1276
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1277
1277
|
CoroutineImpl.call(this, resultContinuation);
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1278
|
+
this.m1q_1 = _this__u8e3s4;
|
|
1279
|
+
this.n1q_1 = buffer;
|
|
1280
|
+
this.o1q_1 = offset;
|
|
1281
|
+
this.p1q_1 = length;
|
|
1282
1282
|
}
|
|
1283
1283
|
protoOf($readAvailableCOROUTINE$).i9 = function () {
|
|
1284
1284
|
var suspendResult = this.c9_1;
|
|
@@ -1288,11 +1288,11 @@
|
|
|
1288
1288
|
switch (tmp) {
|
|
1289
1289
|
case 0:
|
|
1290
1290
|
this.b9_1 = 3;
|
|
1291
|
-
if (this.
|
|
1291
|
+
if (this.m1q_1.w1n())
|
|
1292
1292
|
return -1;
|
|
1293
|
-
if (this.
|
|
1293
|
+
if (this.m1q_1.p1n().dp()) {
|
|
1294
1294
|
this.a9_1 = 1;
|
|
1295
|
-
suspendResult = this.
|
|
1295
|
+
suspendResult = this.m1q_1.y1n(VOID, this);
|
|
1296
1296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1297
1297
|
return suspendResult;
|
|
1298
1298
|
}
|
|
@@ -1306,9 +1306,9 @@
|
|
|
1306
1306
|
this.a9_1 = 2;
|
|
1307
1307
|
continue $sm;
|
|
1308
1308
|
case 2:
|
|
1309
|
-
if (this.
|
|
1309
|
+
if (this.m1q_1.w1n())
|
|
1310
1310
|
return -1;
|
|
1311
|
-
return readAvailable_0(this.
|
|
1311
|
+
return readAvailable_0(this.m1q_1.p1n(), this.n1q_1, this.o1q_1, this.p1q_1);
|
|
1312
1312
|
case 3:
|
|
1313
1313
|
throw this.d9_1;
|
|
1314
1314
|
}
|
|
@@ -1325,7 +1325,7 @@
|
|
|
1325
1325
|
};
|
|
1326
1326
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1327
1327
|
CoroutineImpl.call(this, resultContinuation);
|
|
1328
|
-
this.
|
|
1328
|
+
this.y1q_1 = _this__u8e3s4;
|
|
1329
1329
|
}
|
|
1330
1330
|
protoOf($readRemainingCOROUTINE$).i9 = function () {
|
|
1331
1331
|
var suspendResult = this.c9_1;
|
|
@@ -1335,18 +1335,18 @@
|
|
|
1335
1335
|
switch (tmp) {
|
|
1336
1336
|
case 0:
|
|
1337
1337
|
this.b9_1 = 4;
|
|
1338
|
-
this.
|
|
1338
|
+
this.z1q_1 = BytePacketBuilder();
|
|
1339
1339
|
this.a9_1 = 1;
|
|
1340
1340
|
continue $sm;
|
|
1341
1341
|
case 1:
|
|
1342
|
-
if (!!this.
|
|
1342
|
+
if (!!this.y1q_1.w1n()) {
|
|
1343
1343
|
this.a9_1 = 3;
|
|
1344
1344
|
continue $sm;
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
|
-
this.
|
|
1347
|
+
this.z1q_1.vq(this.y1q_1.p1n());
|
|
1348
1348
|
this.a9_1 = 2;
|
|
1349
|
-
suspendResult = this.
|
|
1349
|
+
suspendResult = this.y1q_1.y1n(VOID, this);
|
|
1350
1350
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1351
1351
|
return suspendResult;
|
|
1352
1352
|
}
|
|
@@ -1356,8 +1356,8 @@
|
|
|
1356
1356
|
this.a9_1 = 1;
|
|
1357
1357
|
continue $sm;
|
|
1358
1358
|
case 3:
|
|
1359
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1360
|
-
return this.
|
|
1359
|
+
rethrowCloseCauseIfNeeded_0(this.y1q_1);
|
|
1360
|
+
return this.z1q_1.cp();
|
|
1361
1361
|
case 4:
|
|
1362
1362
|
throw this.d9_1;
|
|
1363
1363
|
}
|
|
@@ -1374,7 +1374,7 @@
|
|
|
1374
1374
|
};
|
|
1375
1375
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1376
1376
|
CoroutineImpl.call(this, resultContinuation);
|
|
1377
|
-
this.
|
|
1377
|
+
this.i1r_1 = _this__u8e3s4;
|
|
1378
1378
|
}
|
|
1379
1379
|
protoOf($toByteArrayCOROUTINE$).i9 = function () {
|
|
1380
1380
|
var suspendResult = this.c9_1;
|
|
@@ -1385,7 +1385,7 @@
|
|
|
1385
1385
|
case 0:
|
|
1386
1386
|
this.b9_1 = 2;
|
|
1387
1387
|
this.a9_1 = 1;
|
|
1388
|
-
suspendResult = readBuffer(this.
|
|
1388
|
+
suspendResult = readBuffer(this.i1r_1, this);
|
|
1389
1389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1390
1390
|
return suspendResult;
|
|
1391
1391
|
}
|
|
@@ -1410,9 +1410,9 @@
|
|
|
1410
1410
|
};
|
|
1411
1411
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1412
1412
|
CoroutineImpl.call(this, resultContinuation);
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1413
|
+
this.r1r_1 = _this__u8e3s4;
|
|
1414
|
+
this.s1r_1 = channel;
|
|
1415
|
+
this.t1r_1 = limit;
|
|
1416
1416
|
}
|
|
1417
1417
|
protoOf($copyToCOROUTINE$).i9 = function () {
|
|
1418
1418
|
var suspendResult = this.c9_1;
|
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
switch (tmp) {
|
|
1423
1423
|
case 0:
|
|
1424
1424
|
this.b9_1 = 12;
|
|
1425
|
-
this.
|
|
1425
|
+
this.u1r_1 = this.t1r_1;
|
|
1426
1426
|
this.a9_1 = 1;
|
|
1427
1427
|
continue $sm;
|
|
1428
1428
|
case 1:
|
|
@@ -1431,14 +1431,14 @@
|
|
|
1431
1431
|
this.a9_1 = 2;
|
|
1432
1432
|
continue $sm;
|
|
1433
1433
|
case 2:
|
|
1434
|
-
if (!(!this.
|
|
1434
|
+
if (!(!this.r1r_1.w1n() && this.u1r_1 > 0n)) {
|
|
1435
1435
|
this.a9_1 = 6;
|
|
1436
1436
|
continue $sm;
|
|
1437
1437
|
}
|
|
1438
1438
|
|
|
1439
|
-
if (this.
|
|
1439
|
+
if (this.r1r_1.p1n().dp()) {
|
|
1440
1440
|
this.a9_1 = 3;
|
|
1441
|
-
suspendResult = this.
|
|
1441
|
+
suspendResult = this.r1r_1.y1n(VOID, this);
|
|
1442
1442
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1443
1443
|
return suspendResult;
|
|
1444
1444
|
}
|
|
@@ -1452,13 +1452,13 @@
|
|
|
1452
1452
|
this.a9_1 = 4;
|
|
1453
1453
|
continue $sm;
|
|
1454
1454
|
case 4:
|
|
1455
|
-
var tmp0 = this.
|
|
1456
|
-
var b = get_remaining(this.
|
|
1455
|
+
var tmp0 = this.u1r_1;
|
|
1456
|
+
var b = get_remaining(this.r1r_1.p1n());
|
|
1457
1457
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1458
|
+
this.r1r_1.p1n().fq(this.s1r_1.s1n(), count);
|
|
1459
|
+
this.u1r_1 = subtract(this.u1r_1, count);
|
|
1460
1460
|
this.a9_1 = 5;
|
|
1461
|
-
suspendResult = this.
|
|
1461
|
+
suspendResult = this.s1r_1.n1n(this);
|
|
1462
1462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1463
1463
|
return suspendResult;
|
|
1464
1464
|
}
|
|
@@ -1476,8 +1476,8 @@
|
|
|
1476
1476
|
var tmp_0 = this.d9_1;
|
|
1477
1477
|
if (tmp_0 instanceof Error) {
|
|
1478
1478
|
var cause = this.d9_1;
|
|
1479
|
-
this.
|
|
1480
|
-
close_0(this.
|
|
1479
|
+
this.r1r_1.a1o(cause);
|
|
1480
|
+
close_0(this.s1r_1, cause);
|
|
1481
1481
|
throw cause;
|
|
1482
1482
|
} else {
|
|
1483
1483
|
throw this.d9_1;
|
|
@@ -1485,27 +1485,27 @@
|
|
|
1485
1485
|
|
|
1486
1486
|
case 8:
|
|
1487
1487
|
this.b9_1 = 12;
|
|
1488
|
-
this.
|
|
1488
|
+
this.v1r_1 = this.d9_1;
|
|
1489
1489
|
this.a9_1 = 9;
|
|
1490
|
-
suspendResult = this.
|
|
1490
|
+
suspendResult = this.s1r_1.n1n(this);
|
|
1491
1491
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1492
1492
|
return suspendResult;
|
|
1493
1493
|
}
|
|
1494
1494
|
|
|
1495
1495
|
continue $sm;
|
|
1496
1496
|
case 9:
|
|
1497
|
-
throw this.
|
|
1497
|
+
throw this.v1r_1;
|
|
1498
1498
|
case 10:
|
|
1499
1499
|
this.b9_1 = 12;
|
|
1500
1500
|
this.a9_1 = 11;
|
|
1501
|
-
suspendResult = this.
|
|
1501
|
+
suspendResult = this.s1r_1.n1n(this);
|
|
1502
1502
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1503
1503
|
return suspendResult;
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
1506
|
continue $sm;
|
|
1507
1507
|
case 11:
|
|
1508
|
-
return subtract(this.
|
|
1508
|
+
return subtract(this.t1r_1, this.u1r_1);
|
|
1509
1509
|
case 12:
|
|
1510
1510
|
throw this.d9_1;
|
|
1511
1511
|
}
|
|
@@ -1522,8 +1522,8 @@
|
|
|
1522
1522
|
};
|
|
1523
1523
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1524
1524
|
CoroutineImpl.call(this, resultContinuation);
|
|
1525
|
-
this.
|
|
1526
|
-
this.
|
|
1525
|
+
this.e1s_1 = _this__u8e3s4;
|
|
1526
|
+
this.f1s_1 = max;
|
|
1527
1527
|
}
|
|
1528
1528
|
protoOf($discardCOROUTINE$).i9 = function () {
|
|
1529
1529
|
var suspendResult = this.c9_1;
|
|
@@ -1533,18 +1533,18 @@
|
|
|
1533
1533
|
switch (tmp) {
|
|
1534
1534
|
case 0:
|
|
1535
1535
|
this.b9_1 = 5;
|
|
1536
|
-
this.
|
|
1536
|
+
this.g1s_1 = this.f1s_1;
|
|
1537
1537
|
this.a9_1 = 1;
|
|
1538
1538
|
continue $sm;
|
|
1539
1539
|
case 1:
|
|
1540
|
-
if (!(this.
|
|
1540
|
+
if (!(this.g1s_1 > 0n && !this.e1s_1.w1n())) {
|
|
1541
1541
|
this.a9_1 = 4;
|
|
1542
1542
|
continue $sm;
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
|
-
if (get_availableForRead(this.
|
|
1545
|
+
if (get_availableForRead(this.e1s_1) === 0) {
|
|
1546
1546
|
this.a9_1 = 2;
|
|
1547
|
-
suspendResult = this.
|
|
1547
|
+
suspendResult = this.e1s_1.y1n(VOID, this);
|
|
1548
1548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1549
1549
|
return suspendResult;
|
|
1550
1550
|
}
|
|
@@ -1558,15 +1558,15 @@
|
|
|
1558
1558
|
this.a9_1 = 3;
|
|
1559
1559
|
continue $sm;
|
|
1560
1560
|
case 3:
|
|
1561
|
-
var tmp0 = this.
|
|
1562
|
-
var b = get_remaining(this.
|
|
1561
|
+
var tmp0 = this.g1s_1;
|
|
1562
|
+
var b = get_remaining(this.e1s_1.p1n());
|
|
1563
1563
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1564
|
-
discard_0(this.
|
|
1565
|
-
this.
|
|
1564
|
+
discard_0(this.e1s_1.p1n(), count);
|
|
1565
|
+
this.g1s_1 = subtract(this.g1s_1, count);
|
|
1566
1566
|
this.a9_1 = 1;
|
|
1567
1567
|
continue $sm;
|
|
1568
1568
|
case 4:
|
|
1569
|
-
return subtract(this.
|
|
1569
|
+
return subtract(this.f1s_1, this.g1s_1);
|
|
1570
1570
|
case 5:
|
|
1571
1571
|
throw this.d9_1;
|
|
1572
1572
|
}
|
|
@@ -1583,8 +1583,8 @@
|
|
|
1583
1583
|
};
|
|
1584
1584
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1585
1585
|
CoroutineImpl.call(this, resultContinuation);
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1586
|
+
this.p1s_1 = _this__u8e3s4;
|
|
1587
|
+
this.q1s_1 = byteString;
|
|
1588
1588
|
}
|
|
1589
1589
|
protoOf($skipIfFoundCOROUTINE$).i9 = function () {
|
|
1590
1590
|
var suspendResult = this.c9_1;
|
|
@@ -1595,7 +1595,7 @@
|
|
|
1595
1595
|
case 0:
|
|
1596
1596
|
this.b9_1 = 4;
|
|
1597
1597
|
this.a9_1 = 1;
|
|
1598
|
-
suspendResult = peek(this.
|
|
1598
|
+
suspendResult = peek(this.p1s_1, this.q1s_1.l1(), this);
|
|
1599
1599
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1600
1600
|
return suspendResult;
|
|
1601
1601
|
}
|
|
@@ -1603,9 +1603,9 @@
|
|
|
1603
1603
|
continue $sm;
|
|
1604
1604
|
case 1:
|
|
1605
1605
|
var ARGUMENT = suspendResult;
|
|
1606
|
-
if (equals(ARGUMENT, this.
|
|
1606
|
+
if (equals(ARGUMENT, this.q1s_1)) {
|
|
1607
1607
|
this.a9_1 = 3;
|
|
1608
|
-
suspendResult = discard(this.
|
|
1608
|
+
suspendResult = discard(this.p1s_1, fromInt(this.q1s_1.l1()), this);
|
|
1609
1609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1610
1610
|
return suspendResult;
|
|
1611
1611
|
}
|
|
@@ -1635,8 +1635,8 @@
|
|
|
1635
1635
|
};
|
|
1636
1636
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1637
1637
|
CoroutineImpl.call(this, resultContinuation);
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1638
|
+
this.z1s_1 = _this__u8e3s4;
|
|
1639
|
+
this.a1t_1 = packet;
|
|
1640
1640
|
}
|
|
1641
1641
|
protoOf($readPacketCOROUTINE$).i9 = function () {
|
|
1642
1642
|
var suspendResult = this.c9_1;
|
|
@@ -1646,18 +1646,18 @@
|
|
|
1646
1646
|
switch (tmp) {
|
|
1647
1647
|
case 0:
|
|
1648
1648
|
this.b9_1 = 6;
|
|
1649
|
-
this.
|
|
1649
|
+
this.b1t_1 = new Buffer();
|
|
1650
1650
|
this.a9_1 = 1;
|
|
1651
1651
|
continue $sm;
|
|
1652
1652
|
case 1:
|
|
1653
|
-
if (!(this.
|
|
1653
|
+
if (!(this.b1t_1.l1() < fromInt(this.a1t_1))) {
|
|
1654
1654
|
this.a9_1 = 5;
|
|
1655
1655
|
continue $sm;
|
|
1656
1656
|
}
|
|
1657
1657
|
|
|
1658
|
-
if (this.
|
|
1658
|
+
if (this.z1s_1.p1n().dp()) {
|
|
1659
1659
|
this.a9_1 = 2;
|
|
1660
|
-
suspendResult = this.
|
|
1660
|
+
suspendResult = this.z1s_1.y1n(VOID, this);
|
|
1661
1661
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1662
1662
|
return suspendResult;
|
|
1663
1663
|
}
|
|
@@ -1671,7 +1671,7 @@
|
|
|
1671
1671
|
this.a9_1 = 3;
|
|
1672
1672
|
continue $sm;
|
|
1673
1673
|
case 3:
|
|
1674
|
-
if (this.
|
|
1674
|
+
if (this.z1s_1.w1n()) {
|
|
1675
1675
|
this.a9_1 = 5;
|
|
1676
1676
|
continue $sm;
|
|
1677
1677
|
} else {
|
|
@@ -1680,20 +1680,20 @@
|
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
1682
|
case 4:
|
|
1683
|
-
if (get_remaining(this.
|
|
1684
|
-
this.
|
|
1683
|
+
if (get_remaining(this.z1s_1.p1n()) > subtract(numberToLong(this.a1t_1), this.b1t_1.l1())) {
|
|
1684
|
+
this.z1s_1.p1n().fq(this.b1t_1, subtract(numberToLong(this.a1t_1), this.b1t_1.l1()));
|
|
1685
1685
|
} else {
|
|
1686
|
-
this.
|
|
1686
|
+
this.z1s_1.p1n().gq(this.b1t_1);
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
this.a9_1 = 1;
|
|
1690
1690
|
continue $sm;
|
|
1691
1691
|
case 5:
|
|
1692
|
-
if (this.
|
|
1693
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1692
|
+
if (this.b1t_1.l1() < fromInt(this.a1t_1)) {
|
|
1693
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.a1t_1 + ' bytes but only ' + this.b1t_1.l1().toString() + ' available');
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
|
-
return this.
|
|
1696
|
+
return this.b1t_1;
|
|
1697
1697
|
case 6:
|
|
1698
1698
|
throw this.d9_1;
|
|
1699
1699
|
}
|
|
@@ -1710,8 +1710,8 @@
|
|
|
1710
1710
|
};
|
|
1711
1711
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1712
1712
|
CoroutineImpl.call(this, resultContinuation);
|
|
1713
|
-
this.
|
|
1714
|
-
this.
|
|
1713
|
+
this.k1t_1 = _this__u8e3s4;
|
|
1714
|
+
this.l1t_1 = max;
|
|
1715
1715
|
}
|
|
1716
1716
|
protoOf($readRemainingCOROUTINE$_0).i9 = function () {
|
|
1717
1717
|
var suspendResult = this.c9_1;
|
|
@@ -1721,26 +1721,26 @@
|
|
|
1721
1721
|
switch (tmp) {
|
|
1722
1722
|
case 0:
|
|
1723
1723
|
this.b9_1 = 4;
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1724
|
+
this.m1t_1 = BytePacketBuilder();
|
|
1725
|
+
this.n1t_1 = this.l1t_1;
|
|
1726
1726
|
this.a9_1 = 1;
|
|
1727
1727
|
continue $sm;
|
|
1728
1728
|
case 1:
|
|
1729
|
-
if (!(!this.
|
|
1729
|
+
if (!(!this.k1t_1.w1n() && this.n1t_1 > 0n)) {
|
|
1730
1730
|
this.a9_1 = 3;
|
|
1731
1731
|
continue $sm;
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
|
-
if (this.
|
|
1735
|
-
this.
|
|
1736
|
-
this.
|
|
1734
|
+
if (this.n1t_1 >= get_remaining(this.k1t_1.p1n())) {
|
|
1735
|
+
this.n1t_1 = subtract(this.n1t_1, get_remaining(this.k1t_1.p1n()));
|
|
1736
|
+
this.k1t_1.p1n().gq(this.m1t_1);
|
|
1737
1737
|
} else {
|
|
1738
|
-
this.
|
|
1739
|
-
this.
|
|
1738
|
+
this.k1t_1.p1n().fq(this.m1t_1, this.n1t_1);
|
|
1739
|
+
this.n1t_1 = 0n;
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
1742
1742
|
this.a9_1 = 2;
|
|
1743
|
-
suspendResult = this.
|
|
1743
|
+
suspendResult = this.k1t_1.y1n(VOID, this);
|
|
1744
1744
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1745
1745
|
return suspendResult;
|
|
1746
1746
|
}
|
|
@@ -1750,7 +1750,7 @@
|
|
|
1750
1750
|
this.a9_1 = 1;
|
|
1751
1751
|
continue $sm;
|
|
1752
1752
|
case 3:
|
|
1753
|
-
return this.
|
|
1753
|
+
return this.m1t_1.cp();
|
|
1754
1754
|
case 4:
|
|
1755
1755
|
throw this.d9_1;
|
|
1756
1756
|
}
|
|
@@ -1767,8 +1767,8 @@
|
|
|
1767
1767
|
};
|
|
1768
1768
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1769
1769
|
CoroutineImpl.call(this, resultContinuation);
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1770
|
+
this.w1t_1 = _this__u8e3s4;
|
|
1771
|
+
this.x1t_1 = count;
|
|
1772
1772
|
}
|
|
1773
1773
|
protoOf($peekCOROUTINE$).i9 = function () {
|
|
1774
1774
|
var suspendResult = this.c9_1;
|
|
@@ -1778,10 +1778,10 @@
|
|
|
1778
1778
|
switch (tmp) {
|
|
1779
1779
|
case 0:
|
|
1780
1780
|
this.b9_1 = 3;
|
|
1781
|
-
if (this.
|
|
1781
|
+
if (this.w1t_1.w1n())
|
|
1782
1782
|
return null;
|
|
1783
1783
|
this.a9_1 = 1;
|
|
1784
|
-
suspendResult = this.
|
|
1784
|
+
suspendResult = this.w1t_1.x1n(this.x1t_1, this);
|
|
1785
1785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1786
1786
|
return suspendResult;
|
|
1787
1787
|
}
|
|
@@ -1796,7 +1796,7 @@
|
|
|
1796
1796
|
}
|
|
1797
1797
|
|
|
1798
1798
|
case 2:
|
|
1799
|
-
return readByteString(this.
|
|
1799
|
+
return readByteString(this.w1t_1.p1n().hq(), this.x1t_1);
|
|
1800
1800
|
case 3:
|
|
1801
1801
|
throw this.d9_1;
|
|
1802
1802
|
}
|
|
@@ -1813,11 +1813,11 @@
|
|
|
1813
1813
|
};
|
|
1814
1814
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1815
1815
|
CoroutineImpl.call(this, resultContinuation);
|
|
1816
|
-
this.
|
|
1817
|
-
this.
|
|
1818
|
-
this.
|
|
1819
|
-
this.
|
|
1820
|
-
this.
|
|
1816
|
+
this.g1u_1 = _this__u8e3s4;
|
|
1817
|
+
this.h1u_1 = out;
|
|
1818
|
+
this.i1u_1 = limit;
|
|
1819
|
+
this.j1u_1 = lenientLineEnding;
|
|
1820
|
+
this.k1u_1 = throwOnIncompleteLine;
|
|
1821
1821
|
}
|
|
1822
1822
|
protoOf($internalReadLineToCOROUTINE$).i9 = function () {
|
|
1823
1823
|
var suspendResult = this.c9_1;
|
|
@@ -1827,10 +1827,10 @@
|
|
|
1827
1827
|
switch (tmp) {
|
|
1828
1828
|
case 0:
|
|
1829
1829
|
this.b9_1 = 18;
|
|
1830
|
-
this.
|
|
1831
|
-
if (this.
|
|
1830
|
+
this.m1u_1 = this.g1u_1.p1n();
|
|
1831
|
+
if (this.m1u_1.dp()) {
|
|
1832
1832
|
this.a9_1 = 1;
|
|
1833
|
-
suspendResult = this.
|
|
1833
|
+
suspendResult = this.g1u_1.y1n(VOID, this);
|
|
1834
1834
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1835
1835
|
return suspendResult;
|
|
1836
1836
|
}
|
|
@@ -1844,94 +1844,94 @@
|
|
|
1844
1844
|
this.a9_1 = 2;
|
|
1845
1845
|
continue $sm;
|
|
1846
1846
|
case 2:
|
|
1847
|
-
if (this.
|
|
1847
|
+
if (this.g1u_1.w1n())
|
|
1848
1848
|
return -1n;
|
|
1849
|
-
this.
|
|
1849
|
+
this.l1u_1 = {_v: 0n};
|
|
1850
1850
|
this.a9_1 = 3;
|
|
1851
1851
|
continue $sm;
|
|
1852
1852
|
case 3:
|
|
1853
|
-
if (!(this.
|
|
1853
|
+
if (!(this.l1u_1._v < this.i1u_1 && !this.g1u_1.w1n())) {
|
|
1854
1854
|
this.a9_1 = 10;
|
|
1855
1855
|
continue $sm;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
var limitLeft = subtract(this.
|
|
1859
|
-
var lfIndex = indexOf(this.
|
|
1860
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1858
|
+
var limitLeft = subtract(this.i1u_1, this.l1u_1._v);
|
|
1859
|
+
var lfIndex = indexOf(this.m1u_1, 10, VOID, limitLeft);
|
|
1860
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.m1u_1, this.j1u_1, lfIndex, limitLeft);
|
|
1861
1861
|
if (crIndex >= 0n) {
|
|
1862
|
-
internalReadLineTo$transferString(this.
|
|
1863
|
-
discard_0(this.
|
|
1864
|
-
return this.
|
|
1862
|
+
internalReadLineTo$transferString(this.m1u_1, this.h1u_1, this.l1u_1, crIndex);
|
|
1863
|
+
discard_0(this.m1u_1, 1n);
|
|
1864
|
+
return this.l1u_1._v;
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
1867
|
if (lfIndex === 0n) {
|
|
1868
|
-
discard_0(this.
|
|
1869
|
-
return this.
|
|
1868
|
+
discard_0(this.m1u_1, 1n);
|
|
1869
|
+
return this.l1u_1._v;
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
1872
|
if (lfIndex > 0n) {
|
|
1873
1873
|
var tmp_0;
|
|
1874
|
-
var tmp_1 = this.
|
|
1875
|
-
if (tmp_1.
|
|
1874
|
+
var tmp_1 = this.m1u_1.cp();
|
|
1875
|
+
if (tmp_1.yp(subtract(lfIndex, fromInt(1))) === 13) {
|
|
1876
1876
|
tmp_0 = 1n;
|
|
1877
1877
|
} else {
|
|
1878
1878
|
tmp_0 = 0n;
|
|
1879
1879
|
}
|
|
1880
1880
|
var isCrlf = tmp_0;
|
|
1881
|
-
internalReadLineTo$transferString(this.
|
|
1882
|
-
discard_0(this.
|
|
1883
|
-
return this.
|
|
1881
|
+
internalReadLineTo$transferString(this.m1u_1, this.h1u_1, this.l1u_1, subtract(lfIndex, isCrlf));
|
|
1882
|
+
discard_0(this.m1u_1, add(numberToLong(1), isCrlf));
|
|
1883
|
+
return this.l1u_1._v;
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
|
-
var b = get_remaining(this.
|
|
1886
|
+
var b = get_remaining(this.m1u_1);
|
|
1887
1887
|
var count = limitLeft <= b ? limitLeft : b;
|
|
1888
|
-
var tmp_2 = this.
|
|
1889
|
-
if (tmp_2.
|
|
1890
|
-
internalReadLineTo$transferString(this.
|
|
1888
|
+
var tmp_2 = this.m1u_1.cp();
|
|
1889
|
+
if (tmp_2.yp(subtract(count, fromInt(1))) === 13) {
|
|
1890
|
+
internalReadLineTo$transferString(this.m1u_1, this.h1u_1, this.l1u_1, subtract(count, fromInt(1)));
|
|
1891
1891
|
this.a9_1 = 4;
|
|
1892
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
1892
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.m1u_1, this.g1u_1, this.j1u_1, this);
|
|
1893
1893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1894
1894
|
return suspendResult;
|
|
1895
1895
|
}
|
|
1896
1896
|
continue $sm;
|
|
1897
1897
|
} else {
|
|
1898
|
-
internalReadLineTo$transferString(this.
|
|
1898
|
+
internalReadLineTo$transferString(this.m1u_1, this.h1u_1, this.l1u_1, count);
|
|
1899
1899
|
this.a9_1 = 6;
|
|
1900
1900
|
continue $sm;
|
|
1901
1901
|
}
|
|
1902
1902
|
|
|
1903
1903
|
case 4:
|
|
1904
1904
|
if (suspendResult) {
|
|
1905
|
-
return this.
|
|
1905
|
+
return this.l1u_1._v;
|
|
1906
1906
|
} else {
|
|
1907
1907
|
this.a9_1 = 5;
|
|
1908
1908
|
continue $sm;
|
|
1909
1909
|
}
|
|
1910
1910
|
|
|
1911
1911
|
case 5:
|
|
1912
|
-
internalReadLineTo$transferString(this.
|
|
1912
|
+
internalReadLineTo$transferString(this.m1u_1, this.h1u_1, this.l1u_1, 1n);
|
|
1913
1913
|
this.a9_1 = 6;
|
|
1914
1914
|
continue $sm;
|
|
1915
1915
|
case 6:
|
|
1916
|
-
if (this.
|
|
1916
|
+
if (this.l1u_1._v < this.i1u_1 && get_remaining(this.m1u_1) === 0n) {
|
|
1917
1917
|
this.a9_1 = 7;
|
|
1918
|
-
suspendResult = this.
|
|
1918
|
+
suspendResult = this.g1u_1.y1n(VOID, this);
|
|
1919
1919
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1920
1920
|
return suspendResult;
|
|
1921
1921
|
}
|
|
1922
1922
|
continue $sm;
|
|
1923
1923
|
} else {
|
|
1924
|
-
this.
|
|
1924
|
+
this.o1u_1 = false;
|
|
1925
1925
|
this.a9_1 = 8;
|
|
1926
1926
|
continue $sm;
|
|
1927
1927
|
}
|
|
1928
1928
|
|
|
1929
1929
|
case 7:
|
|
1930
|
-
this.
|
|
1930
|
+
this.o1u_1 = !suspendResult;
|
|
1931
1931
|
this.a9_1 = 8;
|
|
1932
1932
|
continue $sm;
|
|
1933
1933
|
case 8:
|
|
1934
|
-
if (this.
|
|
1934
|
+
if (this.o1u_1) {
|
|
1935
1935
|
this.a9_1 = 10;
|
|
1936
1936
|
continue $sm;
|
|
1937
1937
|
} else {
|
|
@@ -1943,25 +1943,25 @@
|
|
|
1943
1943
|
this.a9_1 = 3;
|
|
1944
1944
|
continue $sm;
|
|
1945
1945
|
case 10:
|
|
1946
|
-
if (this.
|
|
1946
|
+
if (this.l1u_1._v === 0n && this.g1u_1.w1n())
|
|
1947
1947
|
return -1n;
|
|
1948
|
-
if (!(this.
|
|
1949
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
1948
|
+
if (!(this.l1u_1._v <= this.i1u_1)) {
|
|
1949
|
+
var message = 'Consumed bytes exceed the limit: ' + this.l1u_1._v.toString() + ' > ' + this.i1u_1.toString() + ". It's an implementation bug, please report it.";
|
|
1950
1950
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1951
1951
|
}
|
|
1952
1952
|
|
|
1953
|
-
if (this.
|
|
1954
|
-
if (this.
|
|
1953
|
+
if (this.l1u_1._v === this.i1u_1) {
|
|
1954
|
+
if (this.i1u_1 === 9223372036854775807n)
|
|
1955
1955
|
throw new TooLongLineException('Max line length exceeded');
|
|
1956
|
-
if (get_remaining(this.
|
|
1956
|
+
if (get_remaining(this.m1u_1) === 0n) {
|
|
1957
1957
|
this.a9_1 = 12;
|
|
1958
|
-
suspendResult = this.
|
|
1958
|
+
suspendResult = this.g1u_1.y1n(VOID, this);
|
|
1959
1959
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1960
1960
|
return suspendResult;
|
|
1961
1961
|
}
|
|
1962
1962
|
continue $sm;
|
|
1963
1963
|
} else {
|
|
1964
|
-
this.
|
|
1964
|
+
this.n1u_1 = false;
|
|
1965
1965
|
this.a9_1 = 13;
|
|
1966
1966
|
continue $sm;
|
|
1967
1967
|
}
|
|
@@ -1971,18 +1971,18 @@
|
|
|
1971
1971
|
}
|
|
1972
1972
|
|
|
1973
1973
|
case 11:
|
|
1974
|
-
if (this.
|
|
1975
|
-
throwEndOfStreamException(this.
|
|
1974
|
+
if (this.k1u_1) {
|
|
1975
|
+
throwEndOfStreamException(this.l1u_1._v);
|
|
1976
1976
|
}
|
|
1977
1977
|
|
|
1978
|
-
return this.
|
|
1978
|
+
return this.l1u_1._v;
|
|
1979
1979
|
case 12:
|
|
1980
|
-
this.
|
|
1980
|
+
this.n1u_1 = !suspendResult;
|
|
1981
1981
|
this.a9_1 = 13;
|
|
1982
1982
|
continue $sm;
|
|
1983
1983
|
case 13:
|
|
1984
|
-
if (this.
|
|
1985
|
-
throwEndOfStreamException(this.
|
|
1984
|
+
if (this.n1u_1) {
|
|
1985
|
+
throwEndOfStreamException(this.l1u_1._v);
|
|
1986
1986
|
} else {
|
|
1987
1987
|
this.a9_1 = 14;
|
|
1988
1988
|
continue $sm;
|
|
@@ -1990,14 +1990,14 @@
|
|
|
1990
1990
|
|
|
1991
1991
|
break;
|
|
1992
1992
|
case 14:
|
|
1993
|
-
var tmp0_subject = this.
|
|
1993
|
+
var tmp0_subject = this.m1u_1.cp().yp(0n);
|
|
1994
1994
|
if (tmp0_subject === 10) {
|
|
1995
|
-
discard_0(this.
|
|
1996
|
-
return this.
|
|
1995
|
+
discard_0(this.m1u_1, 1n);
|
|
1996
|
+
return this.l1u_1._v;
|
|
1997
1997
|
} else {
|
|
1998
1998
|
if (tmp0_subject === 13) {
|
|
1999
1999
|
this.a9_1 = 15;
|
|
2000
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2000
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.m1u_1, this.g1u_1, this.j1u_1, this);
|
|
2001
2001
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2002
2002
|
return suspendResult;
|
|
2003
2003
|
}
|
|
@@ -2010,7 +2010,7 @@
|
|
|
2010
2010
|
|
|
2011
2011
|
case 15:
|
|
2012
2012
|
if (suspendResult) {
|
|
2013
|
-
return this.
|
|
2013
|
+
return this.l1u_1._v;
|
|
2014
2014
|
} else {
|
|
2015
2015
|
this.a9_1 = 16;
|
|
2016
2016
|
continue $sm;
|
|
@@ -2020,7 +2020,7 @@
|
|
|
2020
2020
|
this.a9_1 = 17;
|
|
2021
2021
|
continue $sm;
|
|
2022
2022
|
case 17:
|
|
2023
|
-
throwTooLongLineException(this.
|
|
2023
|
+
throwTooLongLineException(this.i1u_1);
|
|
2024
2024
|
break;
|
|
2025
2025
|
case 18:
|
|
2026
2026
|
throw this.d9_1;
|
|
@@ -2038,9 +2038,9 @@
|
|
|
2038
2038
|
};
|
|
2039
2039
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2040
2040
|
CoroutineImpl.call(this, resultContinuation);
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2043
|
-
this.
|
|
2041
|
+
this.x1u_1 = _this__u8e3s4;
|
|
2042
|
+
this.y1u_1 = $this_internalReadLineTo;
|
|
2043
|
+
this.z1u_1 = $lenientLineEnding;
|
|
2044
2044
|
}
|
|
2045
2045
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).i9 = function () {
|
|
2046
2046
|
var suspendResult = this.c9_1;
|
|
@@ -2050,13 +2050,13 @@
|
|
|
2050
2050
|
switch (tmp) {
|
|
2051
2051
|
case 0:
|
|
2052
2052
|
this.b9_1 = 5;
|
|
2053
|
-
if (get_remaining(this.
|
|
2054
|
-
this.
|
|
2053
|
+
if (get_remaining(this.x1u_1) >= 2n) {
|
|
2054
|
+
this.b1v_1 = true;
|
|
2055
2055
|
this.a9_1 = 2;
|
|
2056
2056
|
continue $sm;
|
|
2057
2057
|
} else {
|
|
2058
2058
|
this.a9_1 = 1;
|
|
2059
|
-
suspendResult = this.
|
|
2059
|
+
suspendResult = this.y1u_1.x1n(2, this);
|
|
2060
2060
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2061
2061
|
return suspendResult;
|
|
2062
2062
|
}
|
|
@@ -2064,23 +2064,23 @@
|
|
|
2064
2064
|
}
|
|
2065
2065
|
|
|
2066
2066
|
case 1:
|
|
2067
|
-
this.
|
|
2067
|
+
this.b1v_1 = suspendResult;
|
|
2068
2068
|
this.a9_1 = 2;
|
|
2069
2069
|
continue $sm;
|
|
2070
2070
|
case 2:
|
|
2071
|
-
if (this.
|
|
2072
|
-
this.
|
|
2071
|
+
if (this.b1v_1) {
|
|
2072
|
+
this.a1v_1 = this.x1u_1.cp().yp(1n) === 10;
|
|
2073
2073
|
this.a9_1 = 3;
|
|
2074
2074
|
continue $sm;
|
|
2075
2075
|
} else {
|
|
2076
|
-
this.
|
|
2076
|
+
this.a1v_1 = false;
|
|
2077
2077
|
this.a9_1 = 3;
|
|
2078
2078
|
continue $sm;
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
2081
|
case 3:
|
|
2082
|
-
if (this.
|
|
2083
|
-
discard_0(this.
|
|
2082
|
+
if (this.a1v_1) {
|
|
2083
|
+
discard_0(this.x1u_1, 2n);
|
|
2084
2084
|
return true;
|
|
2085
2085
|
} else {
|
|
2086
2086
|
this.a9_1 = 4;
|
|
@@ -2088,8 +2088,8 @@
|
|
|
2088
2088
|
}
|
|
2089
2089
|
|
|
2090
2090
|
case 4:
|
|
2091
|
-
if (this.
|
|
2092
|
-
discard_0(this.
|
|
2091
|
+
if (this.z1u_1) {
|
|
2092
|
+
discard_0(this.x1u_1, 1n);
|
|
2093
2093
|
return true;
|
|
2094
2094
|
}
|
|
2095
2095
|
|
|
@@ -2118,7 +2118,7 @@
|
|
|
2118
2118
|
}
|
|
2119
2119
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2120
2120
|
CoroutineImpl.call(this, resultContinuation);
|
|
2121
|
-
this.
|
|
2121
|
+
this.k1v_1 = _this__u8e3s4;
|
|
2122
2122
|
}
|
|
2123
2123
|
protoOf($flushIfNeededCOROUTINE$).i9 = function () {
|
|
2124
2124
|
var suspendResult = this.c9_1;
|
|
@@ -2128,10 +2128,10 @@
|
|
|
2128
2128
|
switch (tmp) {
|
|
2129
2129
|
case 0:
|
|
2130
2130
|
this.b9_1 = 3;
|
|
2131
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2132
|
-
if (this.
|
|
2131
|
+
rethrowCloseCauseIfNeeded_1(this.k1v_1);
|
|
2132
|
+
if (this.k1v_1.o1n() || get_size(this.k1v_1.s1n()) >= 1048576) {
|
|
2133
2133
|
this.a9_1 = 1;
|
|
2134
|
-
suspendResult = this.
|
|
2134
|
+
suspendResult = this.k1v_1.n1n(this);
|
|
2135
2135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2136
2136
|
return suspendResult;
|
|
2137
2137
|
}
|
|
@@ -2168,15 +2168,15 @@
|
|
|
2168
2168
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2169
2169
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2170
2170
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2171
|
-
_this__u8e3s4.
|
|
2171
|
+
_this__u8e3s4.s1n().mq(value, startIndex, endIndex);
|
|
2172
2172
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2173
2173
|
}
|
|
2174
2174
|
function WriterJob(channel, job) {
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2175
|
+
this.l1v_1 = channel;
|
|
2176
|
+
this.m1v_1 = job;
|
|
2177
2177
|
}
|
|
2178
|
-
protoOf(WriterJob).
|
|
2179
|
-
return this.
|
|
2178
|
+
protoOf(WriterJob).aw = function () {
|
|
2179
|
+
return this.m1v_1;
|
|
2180
2180
|
};
|
|
2181
2181
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2182
2182
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2185,22 +2185,22 @@
|
|
|
2185
2185
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2186
2186
|
}
|
|
2187
2187
|
function WriterScope(channel, coroutineContext) {
|
|
2188
|
-
this.
|
|
2189
|
-
this.
|
|
2188
|
+
this.n1v_1 = channel;
|
|
2189
|
+
this.o1v_1 = coroutineContext;
|
|
2190
2190
|
}
|
|
2191
|
-
protoOf(WriterScope).
|
|
2192
|
-
return this.
|
|
2191
|
+
protoOf(WriterScope).os = function () {
|
|
2192
|
+
return this.o1v_1;
|
|
2193
2193
|
};
|
|
2194
2194
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2195
2195
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2196
|
-
return _this__u8e3s4.
|
|
2196
|
+
return _this__u8e3s4.aw().qt(block);
|
|
2197
2197
|
}
|
|
2198
2198
|
function close_0(_this__u8e3s4, cause) {
|
|
2199
2199
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2200
2200
|
if (cause == null) {
|
|
2201
2201
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2202
2202
|
} else {
|
|
2203
|
-
_this__u8e3s4.
|
|
2203
|
+
_this__u8e3s4.a1o(cause);
|
|
2204
2204
|
}
|
|
2205
2205
|
}
|
|
2206
2206
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2218,19 +2218,19 @@
|
|
|
2218
2218
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2219
2219
|
// Inline function 'kotlin.apply' call
|
|
2220
2220
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2221
|
-
this_0.
|
|
2221
|
+
this_0.qt(writer$lambda(channel));
|
|
2222
2222
|
var job = this_0;
|
|
2223
2223
|
return new WriterJob(channel, job);
|
|
2224
2224
|
}
|
|
2225
2225
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2226
|
-
_this__u8e3s4.
|
|
2226
|
+
_this__u8e3s4.s1n().wq(value);
|
|
2227
2227
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2228
2228
|
}
|
|
2229
2229
|
function NO_CALLBACK$1() {
|
|
2230
|
-
this.
|
|
2230
|
+
this.z1v_1 = EmptyCoroutineContext_instance;
|
|
2231
2231
|
}
|
|
2232
2232
|
protoOf(NO_CALLBACK$1).g9 = function () {
|
|
2233
|
-
return this.
|
|
2233
|
+
return this.z1v_1;
|
|
2234
2234
|
};
|
|
2235
2235
|
protoOf(NO_CALLBACK$1).h9 = function (result) {
|
|
2236
2236
|
return Unit_instance;
|
|
@@ -2239,36 +2239,36 @@
|
|
|
2239
2239
|
return this.h9(result);
|
|
2240
2240
|
};
|
|
2241
2241
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2242
|
-
this.
|
|
2242
|
+
this.a1w_1 = p0;
|
|
2243
2243
|
}
|
|
2244
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2245
|
-
return this.
|
|
2244
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).b1w = function ($completion) {
|
|
2245
|
+
return this.a1w_1.z1n($completion);
|
|
2246
2246
|
};
|
|
2247
2247
|
protoOf(ByteWriteChannel$flushAndClose$ref).ra = function ($completion) {
|
|
2248
|
-
return this.
|
|
2248
|
+
return this.b1w($completion);
|
|
2249
2249
|
};
|
|
2250
2250
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2251
2251
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2252
2252
|
var l = function ($completion) {
|
|
2253
|
-
return i.
|
|
2253
|
+
return i.b1w($completion);
|
|
2254
2254
|
};
|
|
2255
2255
|
l.callableName = 'flushAndClose';
|
|
2256
2256
|
l.$arity = 0;
|
|
2257
2257
|
return l;
|
|
2258
2258
|
}
|
|
2259
2259
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2260
|
-
this.
|
|
2261
|
-
this.
|
|
2260
|
+
this.k1w_1 = $block;
|
|
2261
|
+
this.l1w_1 = $channel;
|
|
2262
2262
|
CoroutineImpl.call(this, resultContinuation);
|
|
2263
2263
|
}
|
|
2264
|
-
protoOf(writer$slambda).
|
|
2265
|
-
var tmp = this.
|
|
2264
|
+
protoOf(writer$slambda).t1w = function ($this$launch, $completion) {
|
|
2265
|
+
var tmp = this.u1w($this$launch, $completion);
|
|
2266
2266
|
tmp.c9_1 = Unit_instance;
|
|
2267
2267
|
tmp.d9_1 = null;
|
|
2268
2268
|
return tmp.i9();
|
|
2269
2269
|
};
|
|
2270
2270
|
protoOf(writer$slambda).u9 = function (p1, $completion) {
|
|
2271
|
-
return this.
|
|
2271
|
+
return this.t1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2272
2272
|
};
|
|
2273
2273
|
protoOf(writer$slambda).i9 = function () {
|
|
2274
2274
|
var suspendResult = this.c9_1;
|
|
@@ -2278,24 +2278,24 @@
|
|
|
2278
2278
|
switch (tmp) {
|
|
2279
2279
|
case 0:
|
|
2280
2280
|
this.b9_1 = 14;
|
|
2281
|
-
this.
|
|
2281
|
+
this.p1w_1 = Job(get_job(this.m1w_1.os()));
|
|
2282
2282
|
this.a9_1 = 1;
|
|
2283
2283
|
continue $sm;
|
|
2284
2284
|
case 1:
|
|
2285
2285
|
this.b9_1 = 4;
|
|
2286
2286
|
this.b9_1 = 3;
|
|
2287
2287
|
this.a9_1 = 2;
|
|
2288
|
-
suspendResult = this.
|
|
2288
|
+
suspendResult = this.k1w_1(new WriterScope(this.l1w_1, this.m1w_1.os().yg(this.p1w_1)), this);
|
|
2289
2289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2290
2290
|
return suspendResult;
|
|
2291
2291
|
}
|
|
2292
2292
|
|
|
2293
2293
|
continue $sm;
|
|
2294
2294
|
case 2:
|
|
2295
|
-
this.
|
|
2295
|
+
this.p1w_1.y10();
|
|
2296
2296
|
var tmp_0;
|
|
2297
|
-
if (get_job(this.
|
|
2298
|
-
this.
|
|
2297
|
+
if (get_job(this.m1w_1.os()).kt()) {
|
|
2298
|
+
this.l1w_1.a1o(get_job(this.m1w_1.os()).nt());
|
|
2299
2299
|
tmp_0 = Unit_instance;
|
|
2300
2300
|
}
|
|
2301
2301
|
|
|
@@ -2307,8 +2307,8 @@
|
|
|
2307
2307
|
var tmp_1 = this.d9_1;
|
|
2308
2308
|
if (tmp_1 instanceof Error) {
|
|
2309
2309
|
var cause = this.d9_1;
|
|
2310
|
-
cancel(this.
|
|
2311
|
-
this.
|
|
2310
|
+
cancel(this.p1w_1, 'Exception thrown while writing to channel', cause);
|
|
2311
|
+
this.l1w_1.a1o(cause);
|
|
2312
2312
|
this.b9_1 = 14;
|
|
2313
2313
|
this.a9_1 = 9;
|
|
2314
2314
|
continue $sm;
|
|
@@ -2318,20 +2318,20 @@
|
|
|
2318
2318
|
|
|
2319
2319
|
case 4:
|
|
2320
2320
|
this.b9_1 = 14;
|
|
2321
|
-
this.
|
|
2321
|
+
this.q1w_1 = this.d9_1;
|
|
2322
2322
|
this.a9_1 = 5;
|
|
2323
|
-
suspendResult = this.
|
|
2323
|
+
suspendResult = this.p1w_1.ut(this);
|
|
2324
2324
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2325
2325
|
return suspendResult;
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
2328
|
continue $sm;
|
|
2329
2329
|
case 5:
|
|
2330
|
-
this.
|
|
2330
|
+
this.m1w_1;
|
|
2331
2331
|
this.b9_1 = 7;
|
|
2332
|
-
this.
|
|
2332
|
+
this.s1w_1 = Companion_instance;
|
|
2333
2333
|
this.a9_1 = 6;
|
|
2334
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.l1w_1.z1n(this);
|
|
2335
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2336
|
return suspendResult;
|
|
2337
2337
|
}
|
|
@@ -2339,8 +2339,8 @@
|
|
|
2339
2339
|
continue $sm;
|
|
2340
2340
|
case 6:
|
|
2341
2341
|
var tmp_2 = this;
|
|
2342
|
-
this.
|
|
2343
|
-
tmp_2.
|
|
2342
|
+
this.s1w_1;
|
|
2343
|
+
tmp_2.r1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2344
2344
|
this.b9_1 = 14;
|
|
2345
2345
|
this.a9_1 = 8;
|
|
2346
2346
|
continue $sm;
|
|
@@ -2350,7 +2350,7 @@
|
|
|
2350
2350
|
if (tmp_3 instanceof Error) {
|
|
2351
2351
|
var e = this.d9_1;
|
|
2352
2352
|
var tmp_4 = this;
|
|
2353
|
-
tmp_4.
|
|
2353
|
+
tmp_4.r1w_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2354
2354
|
this.a9_1 = 8;
|
|
2355
2355
|
continue $sm;
|
|
2356
2356
|
} else {
|
|
@@ -2359,22 +2359,22 @@
|
|
|
2359
2359
|
|
|
2360
2360
|
case 8:
|
|
2361
2361
|
this.b9_1 = 14;
|
|
2362
|
-
throw this.
|
|
2362
|
+
throw this.q1w_1;
|
|
2363
2363
|
case 9:
|
|
2364
2364
|
this.b9_1 = 14;
|
|
2365
2365
|
this.a9_1 = 10;
|
|
2366
|
-
suspendResult = this.
|
|
2366
|
+
suspendResult = this.p1w_1.ut(this);
|
|
2367
2367
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2368
2368
|
return suspendResult;
|
|
2369
2369
|
}
|
|
2370
2370
|
|
|
2371
2371
|
continue $sm;
|
|
2372
2372
|
case 10:
|
|
2373
|
-
this.
|
|
2373
|
+
this.m1w_1;
|
|
2374
2374
|
this.b9_1 = 12;
|
|
2375
|
-
this.
|
|
2375
|
+
this.o1w_1 = Companion_instance;
|
|
2376
2376
|
this.a9_1 = 11;
|
|
2377
|
-
suspendResult = this.
|
|
2377
|
+
suspendResult = this.l1w_1.z1n(this);
|
|
2378
2378
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2379
2379
|
return suspendResult;
|
|
2380
2380
|
}
|
|
@@ -2382,8 +2382,8 @@
|
|
|
2382
2382
|
continue $sm;
|
|
2383
2383
|
case 11:
|
|
2384
2384
|
var tmp_5 = this;
|
|
2385
|
-
this.
|
|
2386
|
-
tmp_5.
|
|
2385
|
+
this.o1w_1;
|
|
2386
|
+
tmp_5.n1w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2387
2387
|
this.b9_1 = 14;
|
|
2388
2388
|
this.a9_1 = 13;
|
|
2389
2389
|
continue $sm;
|
|
@@ -2393,7 +2393,7 @@
|
|
|
2393
2393
|
if (tmp_6 instanceof Error) {
|
|
2394
2394
|
var e_0 = this.d9_1;
|
|
2395
2395
|
var tmp_7 = this;
|
|
2396
|
-
tmp_7.
|
|
2396
|
+
tmp_7.n1w_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2397
2397
|
this.a9_1 = 13;
|
|
2398
2398
|
continue $sm;
|
|
2399
2399
|
} else {
|
|
@@ -2417,15 +2417,15 @@
|
|
|
2417
2417
|
}
|
|
2418
2418
|
while (true);
|
|
2419
2419
|
};
|
|
2420
|
-
protoOf(writer$slambda).
|
|
2421
|
-
var i = new writer$slambda(this.
|
|
2422
|
-
i.
|
|
2420
|
+
protoOf(writer$slambda).u1w = function ($this$launch, completion) {
|
|
2421
|
+
var i = new writer$slambda(this.k1w_1, this.l1w_1, completion);
|
|
2422
|
+
i.m1w_1 = $this$launch;
|
|
2423
2423
|
return i;
|
|
2424
2424
|
};
|
|
2425
2425
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2426
2426
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2427
2427
|
var l = function ($this$launch, $completion) {
|
|
2428
|
-
return i.
|
|
2428
|
+
return i.t1w($this$launch, $completion);
|
|
2429
2429
|
};
|
|
2430
2430
|
l.$arity = 1;
|
|
2431
2431
|
return l;
|
|
@@ -2433,8 +2433,8 @@
|
|
|
2433
2433
|
function writer$lambda($channel) {
|
|
2434
2434
|
return function (it) {
|
|
2435
2435
|
var tmp;
|
|
2436
|
-
if (!(it == null) && !$channel.
|
|
2437
|
-
$channel.
|
|
2436
|
+
if (!(it == null) && !$channel.t1n()) {
|
|
2437
|
+
$channel.a1o(it);
|
|
2438
2438
|
tmp = Unit_instance;
|
|
2439
2439
|
}
|
|
2440
2440
|
return Unit_instance;
|
|
@@ -2442,8 +2442,8 @@
|
|
|
2442
2442
|
}
|
|
2443
2443
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2444
2444
|
CoroutineImpl.call(this, resultContinuation);
|
|
2445
|
-
this.
|
|
2446
|
-
this.
|
|
2445
|
+
this.x1v_1 = _this__u8e3s4;
|
|
2446
|
+
this.y1v_1 = source;
|
|
2447
2447
|
}
|
|
2448
2448
|
protoOf($writePacketCOROUTINE$).i9 = function () {
|
|
2449
2449
|
var suspendResult = this.c9_1;
|
|
@@ -2456,14 +2456,14 @@
|
|
|
2456
2456
|
this.a9_1 = 1;
|
|
2457
2457
|
continue $sm;
|
|
2458
2458
|
case 1:
|
|
2459
|
-
if (!!this.
|
|
2459
|
+
if (!!this.y1v_1.dp()) {
|
|
2460
2460
|
this.a9_1 = 3;
|
|
2461
2461
|
continue $sm;
|
|
2462
2462
|
}
|
|
2463
2463
|
|
|
2464
|
-
this.
|
|
2464
|
+
this.x1v_1.s1n().qq(this.y1v_1, get_remaining(this.y1v_1));
|
|
2465
2465
|
this.a9_1 = 2;
|
|
2466
|
-
suspendResult = flushIfNeeded(this.
|
|
2466
|
+
suspendResult = flushIfNeeded(this.x1v_1, this);
|
|
2467
2467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2468
2468
|
return suspendResult;
|
|
2469
2469
|
}
|
|
@@ -2508,27 +2508,27 @@
|
|
|
2508
2508
|
return l;
|
|
2509
2509
|
}
|
|
2510
2510
|
function CloseToken(origin) {
|
|
2511
|
-
this.
|
|
2511
|
+
this.q1n_1 = origin;
|
|
2512
2512
|
}
|
|
2513
|
-
protoOf(CloseToken).
|
|
2514
|
-
var tmp0_subject = this.
|
|
2513
|
+
protoOf(CloseToken).v1w = function (wrap) {
|
|
2514
|
+
var tmp0_subject = this.q1n_1;
|
|
2515
2515
|
var tmp;
|
|
2516
2516
|
if (tmp0_subject == null) {
|
|
2517
2517
|
tmp = null;
|
|
2518
2518
|
} else {
|
|
2519
2519
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2520
|
-
tmp = this.
|
|
2520
|
+
tmp = this.q1n_1.h11();
|
|
2521
2521
|
} else {
|
|
2522
2522
|
if (tmp0_subject instanceof CancellationException) {
|
|
2523
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2523
|
+
tmp = CancellationException_init_$Create$(this.q1n_1.message, this.q1n_1);
|
|
2524
2524
|
} else {
|
|
2525
|
-
tmp = wrap(this.
|
|
2525
|
+
tmp = wrap(this.q1n_1);
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
2529
|
return tmp;
|
|
2530
2530
|
};
|
|
2531
|
-
protoOf(CloseToken).
|
|
2531
|
+
protoOf(CloseToken).v1n = function (wrap, $super) {
|
|
2532
2532
|
var tmp;
|
|
2533
2533
|
if (wrap === VOID) {
|
|
2534
2534
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2536,10 +2536,10 @@
|
|
|
2536
2536
|
tmp = wrap;
|
|
2537
2537
|
}
|
|
2538
2538
|
wrap = tmp;
|
|
2539
|
-
return $super === VOID ? this.
|
|
2539
|
+
return $super === VOID ? this.v1w(wrap) : $super.v1w.call(this, wrap);
|
|
2540
2540
|
};
|
|
2541
|
-
protoOf(CloseToken).
|
|
2542
|
-
var tmp0_safe_receiver = this.
|
|
2541
|
+
protoOf(CloseToken).r1n = function (wrap) {
|
|
2542
|
+
var tmp0_safe_receiver = this.v1w(wrap);
|
|
2543
2543
|
var tmp;
|
|
2544
2544
|
if (tmp0_safe_receiver == null) {
|
|
2545
2545
|
tmp = null;
|
|
@@ -2558,17 +2558,17 @@
|
|
|
2558
2558
|
}
|
|
2559
2559
|
function transferFromDelegate($this) {
|
|
2560
2560
|
updateConsumed($this);
|
|
2561
|
-
var appended = $this.
|
|
2562
|
-
$this.
|
|
2561
|
+
var appended = $this.x1w_1.vq($this.w1w_1.p1n());
|
|
2562
|
+
$this.y1w_1 = add($this.y1w_1, appended);
|
|
2563
2563
|
}
|
|
2564
2564
|
function updateConsumed($this) {
|
|
2565
|
-
$this.
|
|
2566
|
-
$this.
|
|
2565
|
+
$this.z1w_1 = add($this.z1w_1, subtract($this.y1w_1, $this.x1w_1.l1()));
|
|
2566
|
+
$this.y1w_1 = $this.x1w_1.l1();
|
|
2567
2567
|
}
|
|
2568
2568
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2569
2569
|
CoroutineImpl.call(this, resultContinuation);
|
|
2570
|
-
this.
|
|
2571
|
-
this.
|
|
2570
|
+
this.i1x_1 = _this__u8e3s4;
|
|
2571
|
+
this.j1x_1 = min;
|
|
2572
2572
|
}
|
|
2573
2573
|
protoOf($awaitContentCOROUTINE$_0).i9 = function () {
|
|
2574
2574
|
var suspendResult = this.c9_1;
|
|
@@ -2578,12 +2578,12 @@
|
|
|
2578
2578
|
switch (tmp) {
|
|
2579
2579
|
case 0:
|
|
2580
2580
|
this.b9_1 = 3;
|
|
2581
|
-
if (this.
|
|
2581
|
+
if (this.i1x_1.p1n().l1() >= fromInt(this.j1x_1)) {
|
|
2582
2582
|
return true;
|
|
2583
2583
|
}
|
|
2584
2584
|
|
|
2585
2585
|
this.a9_1 = 1;
|
|
2586
|
-
suspendResult = this.
|
|
2586
|
+
suspendResult = this.i1x_1.w1w_1.x1n(this.j1x_1, this);
|
|
2587
2587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2588
2588
|
return suspendResult;
|
|
2589
2589
|
}
|
|
@@ -2591,7 +2591,7 @@
|
|
|
2591
2591
|
continue $sm;
|
|
2592
2592
|
case 1:
|
|
2593
2593
|
if (suspendResult) {
|
|
2594
|
-
transferFromDelegate(this.
|
|
2594
|
+
transferFromDelegate(this.i1x_1);
|
|
2595
2595
|
return true;
|
|
2596
2596
|
} else {
|
|
2597
2597
|
this.a9_1 = 2;
|
|
@@ -2615,34 +2615,34 @@
|
|
|
2615
2615
|
while (true);
|
|
2616
2616
|
};
|
|
2617
2617
|
function CountedByteReadChannel(delegate) {
|
|
2618
|
-
this.
|
|
2619
|
-
this.
|
|
2620
|
-
this.
|
|
2621
|
-
this.
|
|
2618
|
+
this.w1w_1 = delegate;
|
|
2619
|
+
this.x1w_1 = new Buffer();
|
|
2620
|
+
this.y1w_1 = 0n;
|
|
2621
|
+
this.z1w_1 = 0n;
|
|
2622
2622
|
}
|
|
2623
|
-
protoOf(CountedByteReadChannel).
|
|
2623
|
+
protoOf(CountedByteReadChannel).k1x = function () {
|
|
2624
2624
|
updateConsumed(this);
|
|
2625
|
-
return this.
|
|
2625
|
+
return this.z1w_1;
|
|
2626
2626
|
};
|
|
2627
|
-
protoOf(CountedByteReadChannel).
|
|
2628
|
-
return this.
|
|
2627
|
+
protoOf(CountedByteReadChannel).u1n = function () {
|
|
2628
|
+
return this.w1w_1.u1n();
|
|
2629
2629
|
};
|
|
2630
|
-
protoOf(CountedByteReadChannel).
|
|
2631
|
-
return this.
|
|
2630
|
+
protoOf(CountedByteReadChannel).w1n = function () {
|
|
2631
|
+
return this.x1w_1.dp() && this.w1w_1.w1n();
|
|
2632
2632
|
};
|
|
2633
|
-
protoOf(CountedByteReadChannel).
|
|
2633
|
+
protoOf(CountedByteReadChannel).p1n = function () {
|
|
2634
2634
|
transferFromDelegate(this);
|
|
2635
|
-
return this.
|
|
2635
|
+
return this.x1w_1;
|
|
2636
2636
|
};
|
|
2637
|
-
protoOf(CountedByteReadChannel).
|
|
2637
|
+
protoOf(CountedByteReadChannel).x1n = function (min, $completion) {
|
|
2638
2638
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2639
2639
|
tmp.c9_1 = Unit_instance;
|
|
2640
2640
|
tmp.d9_1 = null;
|
|
2641
2641
|
return tmp.i9();
|
|
2642
2642
|
};
|
|
2643
|
-
protoOf(CountedByteReadChannel).
|
|
2644
|
-
this.
|
|
2645
|
-
this.
|
|
2643
|
+
protoOf(CountedByteReadChannel).a1o = function (cause) {
|
|
2644
|
+
this.w1w_1.a1o(cause);
|
|
2645
|
+
this.x1w_1.l4();
|
|
2646
2646
|
};
|
|
2647
2647
|
function counted(_this__u8e3s4) {
|
|
2648
2648
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2700,21 +2700,21 @@
|
|
|
2700
2700
|
}
|
|
2701
2701
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2702
2702
|
var tmp;
|
|
2703
|
-
if ($this === Companion_getInstance_1().
|
|
2703
|
+
if ($this === Companion_getInstance_1().l1x_1) {
|
|
2704
2704
|
tmp = 'CR';
|
|
2705
|
-
} else if ($this === Companion_getInstance_1().
|
|
2705
|
+
} else if ($this === Companion_getInstance_1().m1x_1) {
|
|
2706
2706
|
tmp = 'LF';
|
|
2707
|
-
} else if ($this === Companion_getInstance_1().
|
|
2707
|
+
} else if ($this === Companion_getInstance_1().n1x_1) {
|
|
2708
2708
|
tmp = 'CRLF';
|
|
2709
2709
|
} else {
|
|
2710
2710
|
// Inline function 'kotlin.collections.filter' call
|
|
2711
|
-
var tmp0 = Companion_getInstance_1().
|
|
2711
|
+
var tmp0 = Companion_getInstance_1().p1x_1;
|
|
2712
2712
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2713
2713
|
var destination = ArrayList_init_$Create$();
|
|
2714
2714
|
var _iterator__ex2g4s = tmp0.t();
|
|
2715
2715
|
while (_iterator__ex2g4s.u()) {
|
|
2716
2716
|
var element = _iterator__ex2g4s.v();
|
|
2717
|
-
var it = element.
|
|
2717
|
+
var it = element.q1x_1;
|
|
2718
2718
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2719
2719
|
destination.j1(element);
|
|
2720
2720
|
}
|
|
@@ -2725,11 +2725,11 @@
|
|
|
2725
2725
|
}
|
|
2726
2726
|
function Companion_1() {
|
|
2727
2727
|
Companion_instance_2 = this;
|
|
2728
|
-
this.
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2732
|
-
this.
|
|
2728
|
+
this.l1x_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2729
|
+
this.m1x_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2730
|
+
this.n1x_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2731
|
+
this.o1x_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2732
|
+
this.p1x_1 = listOf([new LineEndingMode(this.l1x_1), new LineEndingMode(this.m1x_1), new LineEndingMode(this.n1x_1)]);
|
|
2733
2733
|
}
|
|
2734
2734
|
var Companion_instance_2;
|
|
2735
2735
|
function Companion_getInstance_1() {
|
|
@@ -2743,67 +2743,67 @@
|
|
|
2743
2743
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2744
2744
|
if (!(other instanceof LineEndingMode))
|
|
2745
2745
|
return false;
|
|
2746
|
-
if (!($this === other.
|
|
2746
|
+
if (!($this === other.q1x_1))
|
|
2747
2747
|
return false;
|
|
2748
2748
|
return true;
|
|
2749
2749
|
}
|
|
2750
2750
|
function LineEndingMode(mode) {
|
|
2751
2751
|
Companion_getInstance_1();
|
|
2752
|
-
this.
|
|
2752
|
+
this.q1x_1 = mode;
|
|
2753
2753
|
}
|
|
2754
2754
|
protoOf(LineEndingMode).toString = function () {
|
|
2755
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2755
|
+
return LineEndingMode__toString_impl_j4h76r(this.q1x_1);
|
|
2756
2756
|
};
|
|
2757
2757
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2758
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2758
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.q1x_1);
|
|
2759
2759
|
};
|
|
2760
2760
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2761
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2761
|
+
return LineEndingMode__equals_impl_qyr4nk(this.q1x_1, other);
|
|
2762
2762
|
};
|
|
2763
2763
|
function SourceByteReadChannel(source) {
|
|
2764
|
-
this.
|
|
2765
|
-
this.
|
|
2764
|
+
this.r1x_1 = source;
|
|
2765
|
+
this.s1x_1 = null;
|
|
2766
2766
|
}
|
|
2767
|
-
protoOf(SourceByteReadChannel).
|
|
2768
|
-
var tmp0_safe_receiver = this.
|
|
2769
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2767
|
+
protoOf(SourceByteReadChannel).u1n = function () {
|
|
2768
|
+
var tmp0_safe_receiver = this.s1x_1;
|
|
2769
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v1n();
|
|
2770
2770
|
};
|
|
2771
|
-
protoOf(SourceByteReadChannel).
|
|
2772
|
-
return this.
|
|
2771
|
+
protoOf(SourceByteReadChannel).w1n = function () {
|
|
2772
|
+
return this.r1x_1.dp();
|
|
2773
2773
|
};
|
|
2774
|
-
protoOf(SourceByteReadChannel).
|
|
2775
|
-
var tmp0_safe_receiver = this.
|
|
2774
|
+
protoOf(SourceByteReadChannel).p1n = function () {
|
|
2775
|
+
var tmp0_safe_receiver = this.u1n();
|
|
2776
2776
|
if (tmp0_safe_receiver == null)
|
|
2777
2777
|
null;
|
|
2778
2778
|
else {
|
|
2779
2779
|
// Inline function 'kotlin.let' call
|
|
2780
2780
|
throw tmp0_safe_receiver;
|
|
2781
2781
|
}
|
|
2782
|
-
return this.
|
|
2782
|
+
return this.r1x_1.cp();
|
|
2783
2783
|
};
|
|
2784
|
-
protoOf(SourceByteReadChannel).
|
|
2785
|
-
var tmp0_safe_receiver = this.
|
|
2784
|
+
protoOf(SourceByteReadChannel).x1n = function (min, $completion) {
|
|
2785
|
+
var tmp0_safe_receiver = this.u1n();
|
|
2786
2786
|
if (tmp0_safe_receiver == null)
|
|
2787
2787
|
null;
|
|
2788
2788
|
else {
|
|
2789
2789
|
// Inline function 'kotlin.let' call
|
|
2790
2790
|
throw tmp0_safe_receiver;
|
|
2791
2791
|
}
|
|
2792
|
-
return this.
|
|
2792
|
+
return this.r1x_1.fp(fromInt(min));
|
|
2793
2793
|
};
|
|
2794
|
-
protoOf(SourceByteReadChannel).
|
|
2795
|
-
if (!(this.
|
|
2794
|
+
protoOf(SourceByteReadChannel).a1o = function (cause) {
|
|
2795
|
+
if (!(this.s1x_1 == null))
|
|
2796
2796
|
return Unit_instance;
|
|
2797
|
-
this.
|
|
2797
|
+
this.r1x_1.l4();
|
|
2798
2798
|
var tmp = this;
|
|
2799
2799
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2800
|
-
tmp.
|
|
2800
|
+
tmp.s1x_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2801
2801
|
};
|
|
2802
2802
|
function decode(_this__u8e3s4, input, max) {
|
|
2803
2803
|
max = max === VOID ? 2147483647 : max;
|
|
2804
2804
|
var tmp0 = fromInt(max);
|
|
2805
2805
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2806
|
-
var b = input.
|
|
2806
|
+
var b = input.cp().l1();
|
|
2807
2807
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2808
2808
|
// Inline function 'kotlin.text.buildString' call
|
|
2809
2809
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2840,7 +2840,7 @@
|
|
|
2840
2840
|
}
|
|
2841
2841
|
}
|
|
2842
2842
|
function canRead(_this__u8e3s4) {
|
|
2843
|
-
return !_this__u8e3s4.
|
|
2843
|
+
return !_this__u8e3s4.dp();
|
|
2844
2844
|
}
|
|
2845
2845
|
function readBytes(_this__u8e3s4, count) {
|
|
2846
2846
|
count = count === VOID ? convertToInt(_this__u8e3s4.l1()) : count;
|
|
@@ -2849,35 +2849,35 @@
|
|
|
2849
2849
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2850
2850
|
offset = offset === VOID ? 0 : offset;
|
|
2851
2851
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2852
|
-
_this__u8e3s4.
|
|
2852
|
+
_this__u8e3s4.mq(buffer, offset, offset + length | 0);
|
|
2853
2853
|
}
|
|
2854
2854
|
function BytePacketBuilder() {
|
|
2855
2855
|
return new Buffer();
|
|
2856
2856
|
}
|
|
2857
2857
|
function build(_this__u8e3s4) {
|
|
2858
|
-
return _this__u8e3s4.
|
|
2858
|
+
return _this__u8e3s4.cp();
|
|
2859
2859
|
}
|
|
2860
2860
|
function get_size(_this__u8e3s4) {
|
|
2861
|
-
return convertToInt(_this__u8e3s4.
|
|
2861
|
+
return convertToInt(_this__u8e3s4.cp().l1());
|
|
2862
2862
|
}
|
|
2863
2863
|
var ByteReadPacketEmpty;
|
|
2864
2864
|
function get_remaining(_this__u8e3s4) {
|
|
2865
2865
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2866
|
-
return _this__u8e3s4.
|
|
2866
|
+
return _this__u8e3s4.cp().l1();
|
|
2867
2867
|
}
|
|
2868
2868
|
function takeWhile(_this__u8e3s4, block) {
|
|
2869
2869
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2870
|
-
while (!_this__u8e3s4.
|
|
2870
|
+
while (!_this__u8e3s4.dp() && block(_this__u8e3s4.cp())) {
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
2873
|
function discard_0(_this__u8e3s4, count) {
|
|
2874
2874
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2875
2875
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2876
|
-
_this__u8e3s4.
|
|
2876
|
+
_this__u8e3s4.fp(count);
|
|
2877
2877
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2878
2878
|
var b = get_remaining(_this__u8e3s4);
|
|
2879
2879
|
var countToDiscard = count <= b ? count : b;
|
|
2880
|
-
_this__u8e3s4.
|
|
2880
|
+
_this__u8e3s4.cp().aq(countToDiscard);
|
|
2881
2881
|
return countToDiscard;
|
|
2882
2882
|
}
|
|
2883
2883
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2890,37 +2890,37 @@
|
|
|
2890
2890
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2891
2891
|
offset = offset === VOID ? 0 : offset;
|
|
2892
2892
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2893
|
-
var result = _this__u8e3s4.
|
|
2893
|
+
var result = _this__u8e3s4.bq(buffer, offset, offset + length | 0);
|
|
2894
2894
|
return result === -1 ? 0 : result;
|
|
2895
2895
|
}
|
|
2896
2896
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2897
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2897
|
+
charset = charset === VOID ? Charsets_getInstance().t1x_1 : charset;
|
|
2898
2898
|
max = max === VOID ? 2147483647 : max;
|
|
2899
|
-
if (charset.equals(Charsets_getInstance().
|
|
2899
|
+
if (charset.equals(Charsets_getInstance().t1x_1)) {
|
|
2900
2900
|
if (max === 2147483647)
|
|
2901
2901
|
return readString_0(_this__u8e3s4);
|
|
2902
|
-
var tmp0 = _this__u8e3s4.
|
|
2902
|
+
var tmp0 = _this__u8e3s4.cp().l1();
|
|
2903
2903
|
// Inline function 'kotlin.math.min' call
|
|
2904
2904
|
var b = fromInt(max);
|
|
2905
2905
|
var count = tmp0 <= b ? tmp0 : b;
|
|
2906
2906
|
return readString(_this__u8e3s4, count);
|
|
2907
2907
|
}
|
|
2908
|
-
return decode(charset.
|
|
2908
|
+
return decode(charset.w1x(), _this__u8e3s4, max);
|
|
2909
2909
|
}
|
|
2910
2910
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2911
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2912
|
-
if (charset.equals(Charsets_getInstance().
|
|
2911
|
+
charset = charset === VOID ? Charsets_getInstance().t1x_1 : charset;
|
|
2912
|
+
if (charset.equals(Charsets_getInstance().t1x_1))
|
|
2913
2913
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2914
|
-
return encodeToByteArray_0(charset.
|
|
2914
|
+
return encodeToByteArray_0(charset.x1x(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2915
2915
|
}
|
|
2916
2916
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2917
2917
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2918
2918
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2919
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2920
|
-
if (charset === Charsets_getInstance().
|
|
2919
|
+
charset = charset === VOID ? Charsets_getInstance().t1x_1 : charset;
|
|
2920
|
+
if (charset === Charsets_getInstance().t1x_1) {
|
|
2921
2921
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2922
2922
|
}
|
|
2923
|
-
encodeToImpl(charset.
|
|
2923
|
+
encodeToImpl(charset.x1x(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2924
2924
|
}
|
|
2925
2925
|
function get_ByteArrayPool() {
|
|
2926
2926
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2930,7 +2930,7 @@
|
|
|
2930
2930
|
function ByteArrayPool$1() {
|
|
2931
2931
|
DefaultPool.call(this, 128);
|
|
2932
2932
|
}
|
|
2933
|
-
protoOf(ByteArrayPool$1).
|
|
2933
|
+
protoOf(ByteArrayPool$1).b1y = function () {
|
|
2934
2934
|
return new Int8Array(4096);
|
|
2935
2935
|
};
|
|
2936
2936
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2944,21 +2944,21 @@
|
|
|
2944
2944
|
}
|
|
2945
2945
|
function NoPoolImpl() {
|
|
2946
2946
|
}
|
|
2947
|
-
protoOf(NoPoolImpl).
|
|
2947
|
+
protoOf(NoPoolImpl).j1y = function (instance) {
|
|
2948
2948
|
return Unit_instance;
|
|
2949
2949
|
};
|
|
2950
|
-
protoOf(NoPoolImpl).
|
|
2950
|
+
protoOf(NoPoolImpl).mv = function () {
|
|
2951
2951
|
return Unit_instance;
|
|
2952
2952
|
};
|
|
2953
2953
|
function Companion_2() {
|
|
2954
2954
|
}
|
|
2955
|
-
protoOf(Companion_2).
|
|
2955
|
+
protoOf(Companion_2).k1y = function (name) {
|
|
2956
2956
|
switch (name) {
|
|
2957
2957
|
case 'UTF-8':
|
|
2958
2958
|
case 'utf-8':
|
|
2959
2959
|
case 'UTF8':
|
|
2960
2960
|
case 'utf8':
|
|
2961
|
-
return Charsets_getInstance().
|
|
2961
|
+
return Charsets_getInstance().t1x_1;
|
|
2962
2962
|
}
|
|
2963
2963
|
var tmp;
|
|
2964
2964
|
var tmp_0;
|
|
@@ -2989,11 +2989,11 @@
|
|
|
2989
2989
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2990
2990
|
}
|
|
2991
2991
|
if (tmp) {
|
|
2992
|
-
return Charsets_getInstance().
|
|
2992
|
+
return Charsets_getInstance().u1x_1;
|
|
2993
2993
|
}
|
|
2994
2994
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2995
2995
|
};
|
|
2996
|
-
protoOf(Companion_2).
|
|
2996
|
+
protoOf(Companion_2).l1y = function (charset) {
|
|
2997
2997
|
var tmp;
|
|
2998
2998
|
switch (charset) {
|
|
2999
2999
|
case 'UTF-8':
|
|
@@ -3048,7 +3048,7 @@
|
|
|
3048
3048
|
return Companion_instance_3;
|
|
3049
3049
|
}
|
|
3050
3050
|
function Charset(_name) {
|
|
3051
|
-
this.
|
|
3051
|
+
this.v1x_1 = _name;
|
|
3052
3052
|
}
|
|
3053
3053
|
protoOf(Charset).equals = function (other) {
|
|
3054
3054
|
if (this === other)
|
|
@@ -3057,18 +3057,18 @@
|
|
|
3057
3057
|
return false;
|
|
3058
3058
|
if (!(other instanceof Charset))
|
|
3059
3059
|
THROW_CCE();
|
|
3060
|
-
return this.
|
|
3060
|
+
return this.v1x_1 === other.v1x_1;
|
|
3061
3061
|
};
|
|
3062
3062
|
protoOf(Charset).hashCode = function () {
|
|
3063
|
-
return getStringHashCode(this.
|
|
3063
|
+
return getStringHashCode(this.v1x_1);
|
|
3064
3064
|
};
|
|
3065
3065
|
protoOf(Charset).toString = function () {
|
|
3066
|
-
return this.
|
|
3066
|
+
return this.v1x_1;
|
|
3067
3067
|
};
|
|
3068
3068
|
function Charsets() {
|
|
3069
3069
|
Charsets_instance = this;
|
|
3070
|
-
this.
|
|
3071
|
-
this.
|
|
3070
|
+
this.t1x_1 = new CharsetImpl('UTF-8');
|
|
3071
|
+
this.u1x_1 = new CharsetImpl('ISO-8859-1');
|
|
3072
3072
|
}
|
|
3073
3073
|
var Charsets_instance;
|
|
3074
3074
|
function Charsets_getInstance() {
|
|
@@ -3077,27 +3077,27 @@
|
|
|
3077
3077
|
return Charsets_instance;
|
|
3078
3078
|
}
|
|
3079
3079
|
function CharsetDecoder(_charset) {
|
|
3080
|
-
this.
|
|
3080
|
+
this.m1y_1 = _charset;
|
|
3081
3081
|
}
|
|
3082
3082
|
function MalformedInputException(message) {
|
|
3083
3083
|
IOException_init_$Init$_0(message, this);
|
|
3084
3084
|
captureStack(this, MalformedInputException);
|
|
3085
3085
|
}
|
|
3086
3086
|
function get_name(_this__u8e3s4) {
|
|
3087
|
-
return _this__u8e3s4.
|
|
3087
|
+
return _this__u8e3s4.v1x_1;
|
|
3088
3088
|
}
|
|
3089
3089
|
function isSupported(_this__u8e3s4, name) {
|
|
3090
|
-
return Companion_instance_3.
|
|
3090
|
+
return Companion_instance_3.l1y(name);
|
|
3091
3091
|
}
|
|
3092
3092
|
function forName(_this__u8e3s4, name) {
|
|
3093
|
-
return Companion_instance_3.
|
|
3093
|
+
return Companion_instance_3.k1y(name);
|
|
3094
3094
|
}
|
|
3095
3095
|
function CharsetEncoder(_charset) {
|
|
3096
|
-
this.
|
|
3096
|
+
this.n1y_1 = _charset;
|
|
3097
3097
|
}
|
|
3098
3098
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3099
3099
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3100
|
-
var tmp0 = input.
|
|
3100
|
+
var tmp0 = input.cp().l1();
|
|
3101
3101
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3102
3102
|
var b = fromInt(max);
|
|
3103
3103
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3107,7 +3107,7 @@
|
|
|
3107
3107
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3108
3108
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3109
3109
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3110
|
-
tmp = decoder.
|
|
3110
|
+
tmp = decoder.o1y(array);
|
|
3111
3111
|
} catch ($p) {
|
|
3112
3112
|
var tmp_0;
|
|
3113
3113
|
if ($p instanceof Error) {
|
|
@@ -3129,11 +3129,11 @@
|
|
|
3129
3129
|
var message = 'Failed requirement.';
|
|
3130
3130
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3131
3131
|
}
|
|
3132
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3132
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().u1x_1)) {
|
|
3133
3133
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3134
3134
|
}
|
|
3135
3135
|
// Inline function 'kotlin.require' call
|
|
3136
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3136
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().t1x_1)) {
|
|
3137
3137
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3138
3138
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3139
3139
|
}
|
|
@@ -3143,7 +3143,7 @@
|
|
|
3143
3143
|
var result = encoder.encode(tmp$ret$5);
|
|
3144
3144
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3145
3145
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3146
|
-
dst.
|
|
3146
|
+
dst.pq(result);
|
|
3147
3147
|
return result.length;
|
|
3148
3148
|
}
|
|
3149
3149
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3154,17 +3154,17 @@
|
|
|
3154
3154
|
function CharsetImpl(name) {
|
|
3155
3155
|
Charset.call(this, name);
|
|
3156
3156
|
}
|
|
3157
|
-
protoOf(CharsetImpl).
|
|
3157
|
+
protoOf(CharsetImpl).x1x = function () {
|
|
3158
3158
|
return new CharsetEncoderImpl(this);
|
|
3159
3159
|
};
|
|
3160
|
-
protoOf(CharsetImpl).
|
|
3160
|
+
protoOf(CharsetImpl).w1x = function () {
|
|
3161
3161
|
return new CharsetDecoderImpl(this);
|
|
3162
3162
|
};
|
|
3163
3163
|
function get_charset(_this__u8e3s4) {
|
|
3164
|
-
return _this__u8e3s4.
|
|
3164
|
+
return _this__u8e3s4.m1y_1;
|
|
3165
3165
|
}
|
|
3166
3166
|
function get_charset_0(_this__u8e3s4) {
|
|
3167
|
-
return _this__u8e3s4.
|
|
3167
|
+
return _this__u8e3s4.n1y_1;
|
|
3168
3168
|
}
|
|
3169
3169
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3170
3170
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3183,39 +3183,39 @@
|
|
|
3183
3183
|
}
|
|
3184
3184
|
function CharsetEncoderImpl(charset) {
|
|
3185
3185
|
CharsetEncoder.call(this, charset);
|
|
3186
|
-
this.
|
|
3186
|
+
this.r1y_1 = charset;
|
|
3187
3187
|
}
|
|
3188
3188
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3189
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3189
|
+
return 'CharsetEncoderImpl(charset=' + this.r1y_1.toString() + ')';
|
|
3190
3190
|
};
|
|
3191
3191
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3192
|
-
return this.
|
|
3192
|
+
return this.r1y_1.hashCode();
|
|
3193
3193
|
};
|
|
3194
3194
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3195
3195
|
if (this === other)
|
|
3196
3196
|
return true;
|
|
3197
3197
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3198
3198
|
return false;
|
|
3199
|
-
if (!this.
|
|
3199
|
+
if (!this.r1y_1.equals(other.r1y_1))
|
|
3200
3200
|
return false;
|
|
3201
3201
|
return true;
|
|
3202
3202
|
};
|
|
3203
3203
|
function CharsetDecoderImpl(charset) {
|
|
3204
3204
|
CharsetDecoder.call(this, charset);
|
|
3205
|
-
this.
|
|
3205
|
+
this.t1y_1 = charset;
|
|
3206
3206
|
}
|
|
3207
3207
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3208
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3208
|
+
return 'CharsetDecoderImpl(charset=' + this.t1y_1.toString() + ')';
|
|
3209
3209
|
};
|
|
3210
3210
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3211
|
-
return this.
|
|
3211
|
+
return this.t1y_1.hashCode();
|
|
3212
3212
|
};
|
|
3213
3213
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3214
3214
|
if (this === other)
|
|
3215
3215
|
return true;
|
|
3216
3216
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3217
3217
|
return false;
|
|
3218
|
-
if (!this.
|
|
3218
|
+
if (!this.t1y_1.equals(other.t1y_1))
|
|
3219
3219
|
return false;
|
|
3220
3220
|
return true;
|
|
3221
3221
|
};
|
|
@@ -3249,10 +3249,10 @@
|
|
|
3249
3249
|
return this_0;
|
|
3250
3250
|
}
|
|
3251
3251
|
function toKtor$1($this_toKtor) {
|
|
3252
|
-
this.
|
|
3252
|
+
this.u1y_1 = $this_toKtor;
|
|
3253
3253
|
}
|
|
3254
|
-
protoOf(toKtor$1).
|
|
3255
|
-
return this.
|
|
3254
|
+
protoOf(toKtor$1).o1y = function (buffer) {
|
|
3255
|
+
return this.u1y_1.decode(buffer);
|
|
3256
3256
|
};
|
|
3257
3257
|
function get_ENCODING_ALIASES() {
|
|
3258
3258
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3265,7 +3265,7 @@
|
|
|
3265
3265
|
}
|
|
3266
3266
|
var REPLACEMENT;
|
|
3267
3267
|
function TextDecoderFallback(encoding, fatal) {
|
|
3268
|
-
this.
|
|
3268
|
+
this.v1y_1 = fatal;
|
|
3269
3269
|
// Inline function 'kotlin.text.trim' call
|
|
3270
3270
|
// Inline function 'kotlin.text.lowercase' call
|
|
3271
3271
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3276,7 +3276,7 @@
|
|
|
3276
3276
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3277
3277
|
}
|
|
3278
3278
|
}
|
|
3279
|
-
protoOf(TextDecoderFallback).
|
|
3279
|
+
protoOf(TextDecoderFallback).o1y = function (buffer) {
|
|
3280
3280
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3281
3281
|
var builder = new Buffer();
|
|
3282
3282
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3292,7 +3292,7 @@
|
|
|
3292
3292
|
var point = toCodePoint(byte);
|
|
3293
3293
|
if (point < 0) {
|
|
3294
3294
|
// Inline function 'kotlin.check' call
|
|
3295
|
-
if (!!this.
|
|
3295
|
+
if (!!this.v1y_1) {
|
|
3296
3296
|
var message = 'Invalid character: ' + point;
|
|
3297
3297
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3298
3298
|
}
|
|
@@ -3300,9 +3300,9 @@
|
|
|
3300
3300
|
continue $l$loop;
|
|
3301
3301
|
}
|
|
3302
3302
|
if (point > 255) {
|
|
3303
|
-
builder.
|
|
3303
|
+
builder.wq(toByte(point >> 8));
|
|
3304
3304
|
}
|
|
3305
|
-
builder.
|
|
3305
|
+
builder.wq(toByte(point & 255));
|
|
3306
3306
|
}
|
|
3307
3307
|
while (inductionVariable < last);
|
|
3308
3308
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3332,7 +3332,7 @@
|
|
|
3332
3332
|
return false;
|
|
3333
3333
|
}
|
|
3334
3334
|
function ioDispatcher() {
|
|
3335
|
-
return Dispatchers_getInstance().
|
|
3335
|
+
return Dispatchers_getInstance().e15_1;
|
|
3336
3336
|
}
|
|
3337
3337
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3338
3338
|
if (fromIndex >= toIndex)
|
|
@@ -3348,7 +3348,7 @@
|
|
|
3348
3348
|
if (character > 255) {
|
|
3349
3349
|
failedToMapError(character);
|
|
3350
3350
|
}
|
|
3351
|
-
dst.
|
|
3351
|
+
dst.wq(toByte(character));
|
|
3352
3352
|
}
|
|
3353
3353
|
while (inductionVariable < toIndex);
|
|
3354
3354
|
return toIndex - fromIndex | 0;
|
|
@@ -3370,64 +3370,64 @@
|
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
3372
|
function DefaultPool(capacity) {
|
|
3373
|
-
this.
|
|
3373
|
+
this.c1y_1 = capacity;
|
|
3374
3374
|
var tmp = this;
|
|
3375
3375
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3376
|
-
var size = this.
|
|
3377
|
-
tmp.
|
|
3378
|
-
this.
|
|
3376
|
+
var size = this.c1y_1;
|
|
3377
|
+
tmp.d1y_1 = Array(size);
|
|
3378
|
+
this.e1y_1 = 0;
|
|
3379
3379
|
}
|
|
3380
|
-
protoOf(DefaultPool).
|
|
3380
|
+
protoOf(DefaultPool).f1y = function (instance) {
|
|
3381
3381
|
};
|
|
3382
|
-
protoOf(DefaultPool).
|
|
3382
|
+
protoOf(DefaultPool).g1y = function (instance) {
|
|
3383
3383
|
return instance;
|
|
3384
3384
|
};
|
|
3385
|
-
protoOf(DefaultPool).
|
|
3385
|
+
protoOf(DefaultPool).h1y = function (instance) {
|
|
3386
3386
|
};
|
|
3387
|
-
protoOf(DefaultPool).
|
|
3388
|
-
if (this.
|
|
3389
|
-
return this.
|
|
3390
|
-
this.
|
|
3391
|
-
var idx = this.
|
|
3392
|
-
var tmp = this.
|
|
3387
|
+
protoOf(DefaultPool).i1y = function () {
|
|
3388
|
+
if (this.e1y_1 === 0)
|
|
3389
|
+
return this.b1y();
|
|
3390
|
+
this.e1y_1 = this.e1y_1 - 1 | 0;
|
|
3391
|
+
var idx = this.e1y_1;
|
|
3392
|
+
var tmp = this.d1y_1[idx];
|
|
3393
3393
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3394
|
-
this.
|
|
3395
|
-
return this.
|
|
3394
|
+
this.d1y_1[idx] = null;
|
|
3395
|
+
return this.g1y(instance);
|
|
3396
3396
|
};
|
|
3397
|
-
protoOf(DefaultPool).
|
|
3398
|
-
this.
|
|
3399
|
-
if (this.
|
|
3400
|
-
this.
|
|
3397
|
+
protoOf(DefaultPool).j1y = function (instance) {
|
|
3398
|
+
this.h1y(instance);
|
|
3399
|
+
if (this.e1y_1 === this.c1y_1) {
|
|
3400
|
+
this.f1y(instance);
|
|
3401
3401
|
} else {
|
|
3402
|
-
var _unary__edvuaz = this.
|
|
3403
|
-
this.
|
|
3404
|
-
this.
|
|
3402
|
+
var _unary__edvuaz = this.e1y_1;
|
|
3403
|
+
this.e1y_1 = _unary__edvuaz + 1 | 0;
|
|
3404
|
+
this.d1y_1[_unary__edvuaz] = instance;
|
|
3405
3405
|
}
|
|
3406
3406
|
};
|
|
3407
|
-
protoOf(DefaultPool).
|
|
3407
|
+
protoOf(DefaultPool).mv = function () {
|
|
3408
3408
|
var inductionVariable = 0;
|
|
3409
|
-
var last = this.
|
|
3409
|
+
var last = this.e1y_1;
|
|
3410
3410
|
if (inductionVariable < last)
|
|
3411
3411
|
do {
|
|
3412
3412
|
var i = inductionVariable;
|
|
3413
3413
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3414
|
-
var tmp = this.
|
|
3414
|
+
var tmp = this.d1y_1[i];
|
|
3415
3415
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3416
|
-
this.
|
|
3417
|
-
this.
|
|
3416
|
+
this.d1y_1[i] = null;
|
|
3417
|
+
this.f1y(instance);
|
|
3418
3418
|
}
|
|
3419
3419
|
while (inductionVariable < last);
|
|
3420
|
-
this.
|
|
3420
|
+
this.e1y_1 = 0;
|
|
3421
3421
|
};
|
|
3422
3422
|
//region block: post-declaration
|
|
3423
|
-
protoOf(Read).
|
|
3424
|
-
protoOf(Read).
|
|
3425
|
-
protoOf(Write).
|
|
3426
|
-
protoOf(Write).
|
|
3427
|
-
protoOf(ByteChannel).
|
|
3428
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3429
|
-
protoOf(CountedByteReadChannel).
|
|
3430
|
-
protoOf(SourceByteReadChannel).
|
|
3423
|
+
protoOf(Read).s1l = resume;
|
|
3424
|
+
protoOf(Read).t1l = resume_0;
|
|
3425
|
+
protoOf(Write).s1l = resume;
|
|
3426
|
+
protoOf(Write).t1l = resume_0;
|
|
3427
|
+
protoOf(ByteChannel).y1n = awaitContent$default;
|
|
3428
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y1n = awaitContent$default;
|
|
3429
|
+
protoOf(CountedByteReadChannel).y1n = awaitContent$default;
|
|
3430
|
+
protoOf(SourceByteReadChannel).y1n = awaitContent$default;
|
|
3431
3431
|
protoOf(DefaultPool).l4 = close;
|
|
3432
3432
|
protoOf(NoPoolImpl).l4 = close;
|
|
3433
3433
|
//endregion
|