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