@solibo/home-api 1.15.15 → 1.16.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 (64) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1019 -943
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +1 -1
  4. package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -0
  5. package/MultiplatformSettings-multiplatform-settings.mjs +1 -1
  6. package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -0
  7. package/kotlin-kotlin-stdlib.mjs +2223 -1914
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -0
  9. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +1 -1
  10. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
  11. package/kotlinx-atomicfu.mjs +14 -14
  12. package/kotlinx-atomicfu.mjs.map +1 -0
  13. package/kotlinx-browser.mjs +1 -1
  14. package/kotlinx-browser.mjs.map +1 -0
  15. package/kotlinx-coroutines-core.mjs +2307 -2247
  16. package/kotlinx-coroutines-core.mjs.map +1 -0
  17. package/kotlinx-io-kotlinx-io-bytestring.mjs +41 -41
  18. package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
  19. package/kotlinx-io-kotlinx-io-core.mjs +474 -470
  20. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
  21. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1909 -1910
  22. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  23. package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +1 -1
  24. package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
  25. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1986 -1658
  26. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  27. package/ktor-ktor-client-auth.mjs +1 -1
  28. package/ktor-ktor-client-auth.mjs.map +1 -0
  29. package/ktor-ktor-client-content-negotiation.mjs +260 -234
  30. package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
  31. package/ktor-ktor-client-core.mjs +3240 -3326
  32. package/ktor-ktor-client-core.mjs.map +1 -0
  33. package/ktor-ktor-client-encoding.mjs +1 -1
  34. package/ktor-ktor-client-encoding.mjs.map +1 -0
  35. package/ktor-ktor-client-logging.mjs +1 -1
  36. package/ktor-ktor-client-logging.mjs.map +1 -0
  37. package/ktor-ktor-client-websockets.mjs +1 -1
  38. package/ktor-ktor-client-websockets.mjs.map +1 -0
  39. package/ktor-ktor-events.mjs +8 -8
  40. package/ktor-ktor-events.mjs.map +1 -0
  41. package/ktor-ktor-http-cio.mjs +525 -530
  42. package/ktor-ktor-http-cio.mjs.map +1 -0
  43. package/ktor-ktor-http.mjs +735 -766
  44. package/ktor-ktor-http.mjs.map +1 -0
  45. package/ktor-ktor-io.mjs +1502 -1279
  46. package/ktor-ktor-io.mjs.map +1 -0
  47. package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
  48. package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -0
  49. package/ktor-ktor-serialization-kotlinx.mjs +272 -389
  50. package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
  51. package/ktor-ktor-serialization.mjs +113 -142
  52. package/ktor-ktor-serialization.mjs.map +1 -0
  53. package/ktor-ktor-sse.mjs +1 -1
  54. package/ktor-ktor-sse.mjs.map +1 -0
  55. package/ktor-ktor-utils.mjs +812 -787
  56. package/ktor-ktor-utils.mjs.map +1 -0
  57. package/ktor-ktor-websocket-serialization.mjs +1 -1
  58. package/ktor-ktor-websocket-serialization.mjs.map +1 -0
  59. package/ktor-ktor-websockets.mjs +901 -862
  60. package/ktor-ktor-websockets.mjs.map +1 -0
  61. package/package.json +2 -2
  62. package/solibo-sdk-sdk-home-api.d.mts +127 -14
  63. package/solibo-sdk-sdk-home-api.mjs +110003 -108257
  64. package/solibo-sdk-sdk-home-api.mjs.map +1 -0
package/ktor-ktor-io.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
- Companion_instance1xjg859pd52fi as Companion_instance,
3
- Unit_instancev9v8hjid95df as Unit_instance,
4
- _Result___init__impl__xyqfz823vatsdepqb9n as _Result___init__impl__xyqfz8,
2
+ Companion_instance1co2nkledm2ru as Companion_instance,
3
+ Unit_instance3vdlo4e4f5ggx as Unit_instance,
4
+ _Result___init__impl__xyqfz810za1hm0unrcw as _Result___init__impl__xyqfz8,
5
5
  protoOf180f3jzyo7rfj as protoOf,
6
6
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
7
7
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
@@ -17,40 +17,43 @@ import {
17
17
  stackTraceToString2670q6lbhdojj as stackTraceToString,
18
18
  VOID3gxj6tk5isa35 as VOID,
19
19
  isInterface3d6p8outrmvmk as isInterface,
20
+ FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
20
21
  CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
21
22
  fromInt2ii0rejb1w62w as fromInt,
22
23
  numberToLong2pakxeg38estk as numberToLong,
23
24
  add2suhfggl4zvkk as add,
24
25
  intercepted2ogpsikxxj4u0 as intercepted,
25
26
  noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
26
- returnIfSuspended2cp16c6mekw0k as returnIfSuspended,
27
+ returnIfSuspended216etyc2z49su as returnIfSuspended,
27
28
  get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
28
29
  initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
30
+ CancellationException_init_$Create$3mozl5zk7b7i2 as CancellationException_init_$Create$,
31
+ CancellationException3b36o9qz53rgr as CancellationException,
29
32
  convertToInty04h231mmjoh as convertToInt,
33
+ toString1pkumu07cwy4m as toString_1,
34
+ IllegalStateException_init_$Create$3394faf8tdm0h as IllegalStateException_init_$Create$,
30
35
  IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
31
- IllegalStateException_init_$Init$3r27qucv8qq4u as IllegalStateException_init_$Init$,
36
+ IllegalStateException_init_$Init$1o0uxbvfescy4 as IllegalStateException_init_$Init$,
32
37
  captureStack1fzi4aczwc4hg as captureStack,
33
38
  replace3le3ie7l9k8aq as replace,
34
39
  THROW_CCE2g6jy02ryeudk as THROW_CCE,
35
40
  get_ONEazvfdh9ju3d4 as get_ONE,
36
- toString1pkumu07cwy4m as toString_1,
37
- IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
41
+ IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
38
42
  subtract2orl8z9upxd9l as subtract,
39
- IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
40
- EmptyCoroutineContext_instance101eax45qp7ot as EmptyCoroutineContext_instance,
43
+ constructCallableReference23y65rf941mch as constructCallableReference,
44
+ EmptyCoroutineContext_instancegbhtm9svfl3r as EmptyCoroutineContext_instance,
41
45
  Continuation1aa2oekvx7jm7 as Continuation,
46
+ KFunctionImpl1wt0sp8rkf847 as KFunctionImpl,
42
47
  initMetadataForFunctionReferencen3g5fpj34t8u as initMetadataForFunctionReference,
43
48
  initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
44
- CancellationException_init_$Create$3ch6sfo7bilrl as CancellationException_init_$Create$,
45
- CancellationException3b36o9qz53rgr as CancellationException,
46
49
  Enum3alwj03lh1n41 as Enum,
47
- ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$,
50
+ ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
48
51
  listOf1jh22dvmctj1r as listOf,
49
- StringBuilder_init_$Create$3pdhqn0ol6juo as StringBuilder_init_$Create$,
52
+ StringBuilder_init_$Create$3q4yitjcnfjo as StringBuilder_init_$Create$,
50
53
  charSequenceLength3278n89t01tmv as charSequenceLength,
51
- encodeToByteArray22651fhg4p67t as encodeToByteArray,
54
+ encodeToByteArray1onwao0uakjfh as encodeToByteArray,
52
55
  AutoCloseable1l5p57f9lp7kv as AutoCloseable,
53
- _Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
56
+ _Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
54
57
  replaceqbix900hl8kl as replace_0,
55
58
  getStringHashCode26igk1bx568vk as getStringHashCode,
56
59
  charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
@@ -60,33 +63,35 @@ import {
60
63
  decodeToString1x4faah2liw2p as decodeToString,
61
64
  setOf45ia9pnfhe90 as setOf,
62
65
  charSequenceGet1vxk1y5n17t1z as charSequenceGet,
63
- Char__toInt_impl_vasixdnyockrdnmht5 as Char__toInt_impl_vasixd,
66
+ Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
64
67
  } from './kotlin-kotlin-stdlib.mjs';
65
68
  import {
69
+ DisposableHandle1uzxt8frdchxn as DisposableHandle,
66
70
  CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl,
71
+ CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
67
72
  CoroutineScopefcb5f5dwqcas as CoroutineScope,
68
73
  startCoroutineCancellable18shtfwdieib as startCoroutineCancellable,
69
74
  launch1c91vkjzdi9sd as launch,
70
75
  get_job2zvlvce9o9a29 as get_job,
71
76
  Job13y4jkazwjho0 as Job,
72
77
  cancel1xim2hrvjmwpn as cancel,
73
- CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
74
- Dispatchers_getInstance2p2r3ndn98nn as Dispatchers_getInstance,
78
+ Dispatchers_getInstance20p7pyqnrepag as Dispatchers_getInstance,
75
79
  } from './kotlinx-coroutines-core.mjs';
76
80
  import {
77
81
  Buffergs925ekssbch as Buffer,
78
- IOException_init_$Create$1sfdrtkx2q59o as IOException_init_$Create$,
82
+ IOException_init_$Create$30ael4xxp8cz as IOException_init_$Create$,
79
83
  indexOf29nspdgx2e3ap as indexOf,
80
- EOFException_init_$Create$1bfeevmh0hfbn as EOFException_init_$Create$,
84
+ EOFException_init_$Create$28fkhq0q0kobq as EOFException_init_$Create$,
81
85
  readString3v6duspiz33tv as readString,
82
86
  readByteString2hnsbql6t4ads as readByteString,
83
- readString2nvggcfaijfhd as readString_0,
87
+ readStringo8i62qxt5m4m as readString_0,
88
+ readString2nvggcfaijfhd as readString_1,
84
89
  IOException1wyutdmfe71nu as IOException,
85
- IOException_init_$Init$2ln63wnwl6kd2 as IOException_init_$Init$,
86
- IOException_init_$Create$1h61d73rydu58 as IOException_init_$Create$_0,
90
+ IOException_init_$Init$1v5tzhogkz08y as IOException_init_$Init$,
91
+ IOException_init_$Create$1n9wqi59tj1t7 as IOException_init_$Create$_0,
87
92
  readByteArray1fhzfwi2j014k as readByteArray,
88
93
  writeString33ca4btrgctw7 as writeString,
89
- IOException_init_$Init$2t3b4cq5mf3nb as IOException_init_$Init$_0,
94
+ IOException_init_$Init$214bkj3jbj847 as IOException_init_$Init$_0,
90
95
  readByteArray1ri21h2rciakw as readByteArray_0,
91
96
  } from './kotlinx-io-kotlinx-io-core.mjs';
92
97
  import { atomic$ref$130aurmcwdfdf1 as atomic$ref$1 } from './kotlinx-atomicfu.mjs';
@@ -98,10 +103,10 @@ initMetadataForCompanion(Companion);
98
103
  initMetadataForObject(Empty, 'Empty');
99
104
  initMetadataForClass(Closed, 'Closed');
100
105
  function resume() {
101
- return this.l1e().u8(Companion_getInstance().i1e_1);
106
+ return this.y1e().v8(Companion_getInstance().v1e_1);
102
107
  }
103
108
  function resume_0(throwable) {
104
- var tmp = this.l1e();
109
+ var tmp = this.y1e();
105
110
  var tmp_0;
106
111
  if (throwable == null) {
107
112
  tmp_0 = null;
@@ -112,17 +117,18 @@ function resume_0(throwable) {
112
117
  tmp_0 = new Result(tmp$ret$0);
113
118
  }
114
119
  var tmp1_elvis_lhs = tmp_0;
115
- return tmp.u8(tmp1_elvis_lhs == null ? Companion_getInstance().i1e_1 : tmp1_elvis_lhs.yl_1);
120
+ return tmp.v8(tmp1_elvis_lhs == null ? Companion_getInstance().v1e_1 : tmp1_elvis_lhs.mm_1);
116
121
  }
117
122
  initMetadataForInterface(Task, 'Task');
118
123
  initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
119
124
  initMetadataForClass(Write, 'Write', VOID, VOID, [Task]);
125
+ initMetadataForClass(sam$kotlinx_coroutines_DisposableHandle$0, 'sam$kotlinx_coroutines_DisposableHandle$0', VOID, VOID, [DisposableHandle, FunctionAdapter]);
120
126
  initMetadataForCoroutine($awaitContentCOROUTINE$, CoroutineImpl);
121
127
  initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
122
128
  initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
123
129
  function awaitContent$default(min, $completion, $super) {
124
130
  min = min === VOID ? 1 : min;
125
- return $super === VOID ? this.s1g(min, $completion) : $super.s1g.call(this, min, $completion);
131
+ return $super === VOID ? this.f1h(min, $completion) : $super.f1h.call(this, min, $completion);
126
132
  }
127
133
  initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
128
134
  function get_autoFlush() {
@@ -153,9 +159,10 @@ initMetadataForCoroutine($flushIfNeededCOROUTINE$, CoroutineImpl);
153
159
  initMetadataForClass(WriterJob, 'WriterJob');
154
160
  initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
155
161
  initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
156
- initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref, VOID, VOID, [0]);
162
+ initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref_0, KFunctionImpl, VOID, [0]);
157
163
  initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
158
164
  initMetadataForCoroutine($writePacketCOROUTINE$, CoroutineImpl);
165
+ initMetadataForCompanion(Companion_1);
159
166
  initMetadataForClass(CloseToken, 'CloseToken');
160
167
  initMetadataForCoroutine($awaitContentCOROUTINE$_0, CoroutineImpl);
161
168
  initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
@@ -163,19 +170,19 @@ initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', C
163
170
  initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
164
171
  initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException, ClosedByteChannelException);
165
172
  initMetadataForClass(LineEnding, 'LineEnding', VOID, Enum);
166
- initMetadataForCompanion(Companion_1);
173
+ initMetadataForCompanion(Companion_2);
167
174
  initMetadataForClass(LineEndingMode, 'LineEndingMode');
168
175
  initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
169
176
  initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
170
177
  initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
171
178
  function close() {
172
- this.fv();
179
+ this.tv();
173
180
  }
174
181
  initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
175
182
  initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
176
183
  initMetadataForClass(ByteArrayPool$1, VOID, VOID, DefaultPool);
177
184
  initMetadataForClass(NoPoolImpl, 'NoPoolImpl', VOID, VOID, [ObjectPool]);
178
- initMetadataForCompanion(Companion_2);
185
+ initMetadataForCompanion(Companion_3);
179
186
  initMetadataForClass(Charset, 'Charset');
180
187
  initMetadataForObject(Charsets, 'Charsets');
181
188
  initMetadataForClass(CharsetDecoder, 'CharsetDecoder');
@@ -188,10 +195,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
188
195
  //endregion
189
196
  function Companion() {
190
197
  Companion_instance_0 = this;
191
- this.h1e_1 = new Closed(null);
198
+ this.u1e_1 = new Closed(null);
192
199
  var tmp = this;
193
200
  // Inline function 'kotlin.Companion.success' call
194
- tmp.i1e_1 = _Result___init__impl__xyqfz8(Unit_instance);
201
+ tmp.v1e_1 = _Result___init__impl__xyqfz8(Unit_instance);
195
202
  }
196
203
  var Companion_instance_0;
197
204
  function Companion_getInstance() {
@@ -219,149 +226,179 @@ function Empty_getInstance() {
219
226
  return Empty_instance;
220
227
  }
221
228
  function Closed(cause) {
222
- this.j1e_1 = cause;
229
+ this.w1e_1 = cause;
223
230
  }
224
231
  protoOf(Closed).toString = function () {
225
- return 'Closed(cause=' + toString(this.j1e_1) + ')';
232
+ return 'Closed(cause=' + toString(this.w1e_1) + ')';
226
233
  };
227
234
  protoOf(Closed).hashCode = function () {
228
- return this.j1e_1 == null ? 0 : hashCode(this.j1e_1);
235
+ return this.w1e_1 == null ? 0 : hashCode(this.w1e_1);
229
236
  };
230
237
  protoOf(Closed).equals = function (other) {
231
238
  if (this === other)
232
239
  return true;
233
240
  if (!(other instanceof Closed))
234
241
  return false;
235
- if (!equals(this.j1e_1, other.j1e_1))
242
+ if (!equals(this.w1e_1, other.w1e_1))
236
243
  return false;
237
244
  return true;
238
245
  };
239
246
  function Task() {
240
247
  }
241
248
  function Read(continuation) {
242
- this.p1e_1 = continuation;
243
- this.q1e_1 = null;
249
+ this.c1f_1 = continuation;
250
+ this.d1f_1 = null;
244
251
  if (get_DEVELOPMENT_MODE()) {
245
252
  var tmp = this;
246
253
  // Inline function 'kotlin.also' call
247
- var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.p1e_1), 16));
254
+ var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.c1f_1), 16));
248
255
  stackTraceToString(this_0);
249
- tmp.q1e_1 = this_0;
256
+ tmp.d1f_1 = this_0;
250
257
  }
251
258
  }
252
- protoOf(Read).l1e = function () {
253
- return this.p1e_1;
259
+ protoOf(Read).y1e = function () {
260
+ return this.c1f_1;
254
261
  };
255
- protoOf(Read).k1e = function () {
256
- return this.q1e_1;
262
+ protoOf(Read).x1e = function () {
263
+ return this.d1f_1;
257
264
  };
258
- protoOf(Read).m1e = function () {
265
+ protoOf(Read).z1e = function () {
259
266
  return 'read';
260
267
  };
261
268
  function Write(continuation) {
262
- this.r1e_1 = continuation;
263
- this.s1e_1 = null;
269
+ this.e1f_1 = continuation;
270
+ this.f1f_1 = null;
264
271
  if (get_DEVELOPMENT_MODE()) {
265
272
  var tmp = this;
266
273
  // Inline function 'kotlin.also' call
267
- var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.r1e_1), 16));
274
+ var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.e1f_1), 16));
268
275
  stackTraceToString(this_0);
269
- tmp.s1e_1 = this_0;
276
+ tmp.f1f_1 = this_0;
270
277
  }
271
278
  }
272
- protoOf(Write).l1e = function () {
273
- return this.r1e_1;
279
+ protoOf(Write).y1e = function () {
280
+ return this.e1f_1;
274
281
  };
275
- protoOf(Write).k1e = function () {
276
- return this.s1e_1;
282
+ protoOf(Write).x1e = function () {
283
+ return this.f1f_1;
277
284
  };
278
- protoOf(Write).m1e = function () {
285
+ protoOf(Write).z1e = function () {
279
286
  return 'write';
280
287
  };
281
288
  function moveFlushToReadBuffer($this) {
282
289
  // Inline function 'io.ktor.utils.io.locks.synchronized' call
283
- $this.w1e_1;
284
- $this.u1e_1.mp($this.y1e_1);
285
- $this.v1e_1 = 0;
290
+ $this.j1f_1;
291
+ $this.h1f_1.aq($this.l1f_1);
292
+ $this.i1f_1 = 0;
286
293
  // Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
287
- var current = $this.x1e_1.kotlinx$atomicfu$value;
294
+ var current = $this.k1f_1.kotlinx$atomicfu$value;
288
295
  var tmp;
289
296
  if (current instanceof Write) {
290
- tmp = $this.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
297
+ tmp = $this.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
291
298
  } else {
292
299
  tmp = false;
293
300
  }
294
301
  if (tmp) {
295
- current.n1e();
302
+ current.a1f();
296
303
  }
297
304
  }
298
305
  function closeSlot($this, cause) {
299
- var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().h1e_1;
300
- var continuation = $this.x1e_1.atomicfu$getAndSet(closeContinuation);
306
+ var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().u1e_1;
307
+ var continuation = $this.k1f_1.atomicfu$getAndSet(closeContinuation);
301
308
  if (isInterface(continuation, Task)) {
302
- continuation.o1e(cause);
309
+ continuation.b1f(cause);
303
310
  }
311
+ var tmp0_safe_receiver = $this.o1f_1.atomicfu$getAndSet(null);
312
+ if (tmp0_safe_receiver == null)
313
+ null;
314
+ else
315
+ tmp0_safe_receiver(cause);
304
316
  }
305
- function ClosedReadChannelException$_init_$ref_ix0089() {
306
- var l = function (p0) {
307
- return new ClosedReadChannelException(p0);
308
- };
309
- l.callableName = '<init>';
310
- return l;
317
+ function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
318
+ this.p1f_1 = function_0;
319
+ }
320
+ protoOf(sam$kotlinx_coroutines_DisposableHandle$0).tv = function () {
321
+ return this.p1f_1();
322
+ };
323
+ protoOf(sam$kotlinx_coroutines_DisposableHandle$0).g3 = function () {
324
+ return this.p1f_1;
325
+ };
326
+ protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
327
+ var tmp;
328
+ if (!(other == null) ? isInterface(other, DisposableHandle) : false) {
329
+ var tmp_0;
330
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
331
+ tmp_0 = equals(this.g3(), other.g3());
332
+ } else {
333
+ tmp_0 = false;
334
+ }
335
+ tmp = tmp_0;
336
+ } else {
337
+ tmp = false;
338
+ }
339
+ return tmp;
340
+ };
341
+ protoOf(sam$kotlinx_coroutines_DisposableHandle$0).hashCode = function () {
342
+ return hashCode(this.g3());
343
+ };
344
+ function ByteChannel$invokeOnClose$lambda() {
345
+ return Unit_instance;
346
+ }
347
+ function ByteChannel$invokeOnClose$lambda_0() {
348
+ return Unit_instance;
311
349
  }
312
- function ClosedWriteChannelException$_init_$ref_ef15ty() {
313
- var l = function (p0) {
314
- return new ClosedWriteChannelException(p0);
350
+ function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
351
+ return function () {
352
+ this$0.o1f_1.atomicfu$compareAndSet($handler, null);
353
+ return Unit_instance;
315
354
  };
316
- l.callableName = '<init>';
317
- return l;
318
355
  }
319
356
  function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
320
357
  CoroutineImpl.call(this, resultContinuation);
321
- this.j1f_1 = _this__u8e3s4;
322
- this.k1f_1 = min;
358
+ this.y1f_1 = _this__u8e3s4;
359
+ this.z1f_1 = min;
323
360
  }
324
- protoOf($awaitContentCOROUTINE$).r8 = function () {
325
- var suspendResult = this.l8_1;
361
+ protoOf($awaitContentCOROUTINE$).s8 = function () {
362
+ var suspendResult = this.m8_1;
326
363
  $sm: do
327
364
  try {
328
- var tmp = this.j8_1;
365
+ var tmp = this.k8_1;
329
366
  switch (tmp) {
330
367
  case 0:
331
- this.k8_1 = 4;
332
- rethrowCloseCauseIfNeeded(this.j1f_1);
333
- if (this.j1f_1.y1e_1.g1() >= fromInt(this.k1f_1))
368
+ this.l8_1 = 4;
369
+ rethrowCloseCauseIfNeeded_0(this.y1f_1);
370
+ if (this.y1f_1.l1f_1.g1() >= fromInt(this.z1f_1))
334
371
  return true;
335
- this.l1f_1 = this.j1f_1;
336
- this.j8_1 = 1;
372
+ this.a1g_1 = this.y1f_1;
373
+ this.k8_1 = 1;
337
374
  continue $sm;
338
375
  case 1:
339
- if (!(add(numberToLong(this.j1f_1.v1e_1), this.j1f_1.y1e_1.g1()) < fromInt(this.k1f_1) && this.j1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
340
- this.j8_1 = 3;
376
+ if (!(add(numberToLong(this.y1f_1.i1f_1), this.y1f_1.l1f_1.g1()) < fromInt(this.z1f_1) && this.y1f_1.n1f_1.kotlinx$atomicfu$value == null)) {
377
+ this.k8_1 = 3;
341
378
  continue $sm;
342
379
  }
343
380
 
344
- this.j8_1 = 2;
381
+ this.k8_1 = 2;
345
382
  var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
346
- cancellable.iw();
347
- var tmp0 = this.l1f_1;
383
+ cancellable.ww();
384
+ var tmp0 = this.a1g_1;
348
385
  var tmp2 = new Read(cancellable);
349
386
  l$ret$1: do {
350
- var previous = tmp0.x1e_1.kotlinx$atomicfu$value;
387
+ var previous = tmp0.k1f_1.kotlinx$atomicfu$value;
351
388
  if (!(previous instanceof Closed)) {
352
- if (!tmp0.x1e_1.atomicfu$compareAndSet(previous, tmp2)) {
353
- tmp2.n1e();
389
+ if (!tmp0.k1f_1.atomicfu$compareAndSet(previous, tmp2)) {
390
+ tmp2.a1f();
354
391
  break l$ret$1;
355
392
  }
356
393
  }
357
394
  if (previous instanceof Read) {
358
- previous.o1e(new ConcurrentIOException(tmp2.m1e(), previous.k1e()));
395
+ previous.b1f(new ConcurrentIOException(tmp2.z1e(), previous.x1e()));
359
396
  } else {
360
397
  if (isInterface(previous, Task)) {
361
- previous.n1e();
398
+ previous.a1f();
362
399
  } else {
363
400
  if (previous instanceof Closed) {
364
- tmp2.o1e(previous.j1e_1);
401
+ tmp2.b1f(previous.w1e_1);
365
402
  break l$ret$1;
366
403
  } else {
367
404
  if (!equals(previous, Empty_instance)) {
@@ -370,95 +407,95 @@ protoOf($awaitContentCOROUTINE$).r8 = function () {
370
407
  }
371
408
  }
372
409
  }
373
- if (!(add(numberToLong(this.j1f_1.v1e_1), this.j1f_1.y1e_1.g1()) < fromInt(this.k1f_1) && this.j1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
374
- var current = tmp0.x1e_1.kotlinx$atomicfu$value;
410
+ if (!(add(numberToLong(this.y1f_1.i1f_1), this.y1f_1.l1f_1.g1()) < fromInt(this.z1f_1) && this.y1f_1.n1f_1.kotlinx$atomicfu$value == null)) {
411
+ var current = tmp0.k1f_1.kotlinx$atomicfu$value;
375
412
  var tmp_0;
376
413
  if (current instanceof Read) {
377
- tmp_0 = tmp0.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
414
+ tmp_0 = tmp0.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
378
415
  } else {
379
416
  tmp_0 = false;
380
417
  }
381
418
  if (tmp_0) {
382
- current.n1e();
419
+ current.a1f();
383
420
  }
384
421
  }
385
422
  }
386
423
  while (false);
387
- suspendResult = returnIfSuspended(cancellable.qw(), this);
424
+ suspendResult = returnIfSuspended(cancellable.ex(), this);
388
425
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
389
426
  return suspendResult;
390
427
  }
391
428
 
392
429
  continue $sm;
393
430
  case 2:
394
- this.j8_1 = 1;
431
+ this.k8_1 = 1;
395
432
  continue $sm;
396
433
  case 3:
397
- if (this.j1f_1.y1e_1.g1() < 1048576n) {
398
- moveFlushToReadBuffer(this.j1f_1);
434
+ if (this.y1f_1.l1f_1.g1() < 1048576n) {
435
+ moveFlushToReadBuffer(this.y1f_1);
399
436
  }
400
437
 
401
- return this.j1f_1.y1e_1.g1() >= fromInt(this.k1f_1);
438
+ return this.y1f_1.l1f_1.g1() >= fromInt(this.z1f_1);
402
439
  case 4:
403
- throw this.m8_1;
440
+ throw this.n8_1;
404
441
  }
405
442
  } catch ($p) {
406
443
  var e = $p;
407
- if (this.k8_1 === 4) {
444
+ if (this.l8_1 === 4) {
408
445
  throw e;
409
446
  } else {
410
- this.j8_1 = this.k8_1;
411
- this.m8_1 = e;
447
+ this.k8_1 = this.l8_1;
448
+ this.n8_1 = e;
412
449
  }
413
450
  }
414
451
  while (true);
415
452
  };
416
453
  function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
417
454
  CoroutineImpl.call(this, resultContinuation);
418
- this.u1f_1 = _this__u8e3s4;
455
+ this.j1g_1 = _this__u8e3s4;
419
456
  }
420
- protoOf($flushCOROUTINE$).r8 = function () {
421
- var suspendResult = this.l8_1;
457
+ protoOf($flushCOROUTINE$).s8 = function () {
458
+ var suspendResult = this.m8_1;
422
459
  $sm: do
423
460
  try {
424
- var tmp = this.j8_1;
461
+ var tmp = this.k8_1;
425
462
  switch (tmp) {
426
463
  case 0:
427
- this.k8_1 = 4;
428
- rethrowCloseCauseIfNeeded(this.u1f_1);
429
- this.u1f_1.w1f();
430
- if (this.u1f_1.v1e_1 < 1048576)
464
+ this.l8_1 = 4;
465
+ rethrowCloseCauseIfNeeded_0(this.j1g_1);
466
+ this.j1g_1.l1g();
467
+ if (this.j1g_1.m1g())
431
468
  return Unit_instance;
432
- this.v1f_1 = this.u1f_1;
433
- this.j8_1 = 1;
469
+ this.k1g_1 = this.j1g_1;
470
+ this.k8_1 = 1;
434
471
  continue $sm;
435
472
  case 1:
436
- if (!(this.u1f_1.v1e_1 >= 1048576 && this.u1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
437
- this.j8_1 = 3;
473
+ if (!(!this.j1g_1.m1g() && this.j1g_1.n1f_1.kotlinx$atomicfu$value == null)) {
474
+ this.k8_1 = 3;
438
475
  continue $sm;
439
476
  }
440
477
 
441
- this.j8_1 = 2;
478
+ this.k8_1 = 2;
442
479
  var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
443
- cancellable.iw();
444
- var tmp0 = this.v1f_1;
480
+ cancellable.ww();
481
+ var tmp0 = this.k1g_1;
445
482
  var tmp2 = new Write(cancellable);
446
483
  l$ret$1: do {
447
- var previous = tmp0.x1e_1.kotlinx$atomicfu$value;
484
+ var previous = tmp0.k1f_1.kotlinx$atomicfu$value;
448
485
  if (!(previous instanceof Closed)) {
449
- if (!tmp0.x1e_1.atomicfu$compareAndSet(previous, tmp2)) {
450
- tmp2.n1e();
486
+ if (!tmp0.k1f_1.atomicfu$compareAndSet(previous, tmp2)) {
487
+ tmp2.a1f();
451
488
  break l$ret$1;
452
489
  }
453
490
  }
454
491
  if (previous instanceof Write) {
455
- previous.o1e(new ConcurrentIOException(tmp2.m1e(), previous.k1e()));
492
+ previous.b1f(new ConcurrentIOException(tmp2.z1e(), previous.x1e()));
456
493
  } else {
457
494
  if (isInterface(previous, Task)) {
458
- previous.n1e();
495
+ previous.a1f();
459
496
  } else {
460
497
  if (previous instanceof Closed) {
461
- tmp2.o1e(previous.j1e_1);
498
+ tmp2.b1f(previous.w1e_1);
462
499
  break l$ret$1;
463
500
  } else {
464
501
  if (!equals(previous, Empty_instance)) {
@@ -467,62 +504,62 @@ protoOf($flushCOROUTINE$).r8 = function () {
467
504
  }
468
505
  }
469
506
  }
470
- if (!(this.u1f_1.v1e_1 >= 1048576 && this.u1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
471
- var current = tmp0.x1e_1.kotlinx$atomicfu$value;
507
+ if (!(!this.j1g_1.m1g() && this.j1g_1.n1f_1.kotlinx$atomicfu$value == null)) {
508
+ var current = tmp0.k1f_1.kotlinx$atomicfu$value;
472
509
  var tmp_0;
473
510
  if (current instanceof Write) {
474
- tmp_0 = tmp0.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
511
+ tmp_0 = tmp0.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
475
512
  } else {
476
513
  tmp_0 = false;
477
514
  }
478
515
  if (tmp_0) {
479
- current.n1e();
516
+ current.a1f();
480
517
  }
481
518
  }
482
519
  }
483
520
  while (false);
484
- suspendResult = returnIfSuspended(cancellable.qw(), this);
521
+ suspendResult = returnIfSuspended(cancellable.ex(), this);
485
522
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
486
523
  return suspendResult;
487
524
  }
488
525
 
489
526
  continue $sm;
490
527
  case 2:
491
- this.j8_1 = 1;
528
+ this.k8_1 = 1;
492
529
  continue $sm;
493
530
  case 3:
494
531
  return Unit_instance;
495
532
  case 4:
496
- throw this.m8_1;
533
+ throw this.n8_1;
497
534
  }
498
535
  } catch ($p) {
499
536
  var e = $p;
500
- if (this.k8_1 === 4) {
537
+ if (this.l8_1 === 4) {
501
538
  throw e;
502
539
  } else {
503
- this.j8_1 = this.k8_1;
504
- this.m8_1 = e;
540
+ this.k8_1 = this.l8_1;
541
+ this.n8_1 = e;
505
542
  }
506
543
  }
507
544
  while (true);
508
545
  };
509
546
  function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
510
547
  CoroutineImpl.call(this, resultContinuation);
511
- this.f1g_1 = _this__u8e3s4;
548
+ this.v1g_1 = _this__u8e3s4;
512
549
  }
513
- protoOf($flushAndCloseCOROUTINE$).r8 = function () {
514
- var suspendResult = this.l8_1;
550
+ protoOf($flushAndCloseCOROUTINE$).s8 = function () {
551
+ var suspendResult = this.m8_1;
515
552
  $sm: do
516
553
  try {
517
- var tmp = this.j8_1;
554
+ var tmp = this.k8_1;
518
555
  switch (tmp) {
519
556
  case 0:
520
- this.k8_1 = 4;
521
- var this_0 = this.f1g_1;
522
- this.k8_1 = 2;
523
- this.h1g_1 = Companion_instance;
524
- this.j8_1 = 1;
525
- suspendResult = this_0.i1g(this);
557
+ this.l8_1 = 4;
558
+ var this_0 = this.v1g_1;
559
+ this.l8_1 = 2;
560
+ this.x1g_1 = Companion_instance;
561
+ this.k8_1 = 1;
562
+ suspendResult = this_0.y1g(this);
526
563
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
527
564
  return suspendResult;
528
565
  }
@@ -530,146 +567,296 @@ protoOf($flushAndCloseCOROUTINE$).r8 = function () {
530
567
  continue $sm;
531
568
  case 1:
532
569
  var tmp_0 = this;
533
- this.h1g_1;
534
- tmp_0.g1g_1 = _Result___init__impl__xyqfz8(Unit_instance);
535
- this.k8_1 = 4;
536
- this.j8_1 = 3;
570
+ this.x1g_1;
571
+ tmp_0.w1g_1 = _Result___init__impl__xyqfz8(Unit_instance);
572
+ this.l8_1 = 4;
573
+ this.k8_1 = 3;
537
574
  continue $sm;
538
575
  case 2:
539
- this.k8_1 = 4;
540
- var tmp_1 = this.m8_1;
576
+ this.l8_1 = 4;
577
+ var tmp_1 = this.n8_1;
541
578
  if (tmp_1 instanceof Error) {
542
- var e = this.m8_1;
579
+ var e = this.n8_1;
543
580
  var tmp_2 = this;
544
- tmp_2.g1g_1 = _Result___init__impl__xyqfz8(createFailure(e));
545
- this.j8_1 = 3;
581
+ tmp_2.w1g_1 = _Result___init__impl__xyqfz8(createFailure(e));
582
+ this.k8_1 = 3;
546
583
  continue $sm;
547
584
  } else {
548
- throw this.m8_1;
585
+ throw this.n8_1;
549
586
  }
550
587
 
551
588
  case 3:
552
- this.k8_1 = 4;
553
- if (!this.f1g_1.a1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
589
+ this.l8_1 = 4;
590
+ if (!this.v1g_1.n1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
554
591
  return Unit_instance;
555
- closeSlot(this.f1g_1, null);
592
+ closeSlot(this.v1g_1, null);
556
593
  return Unit_instance;
557
594
  case 4:
558
- throw this.m8_1;
595
+ throw this.n8_1;
559
596
  }
560
597
  } catch ($p) {
561
598
  var e_0 = $p;
562
- if (this.k8_1 === 4) {
599
+ if (this.l8_1 === 4) {
563
600
  throw e_0;
564
601
  } else {
565
- this.j8_1 = this.k8_1;
566
- this.m8_1 = e_0;
602
+ this.k8_1 = this.l8_1;
603
+ this.n8_1 = e_0;
567
604
  }
568
605
  }
569
606
  while (true);
570
607
  };
571
608
  function ByteChannel(autoFlush) {
572
609
  autoFlush = autoFlush === VOID ? false : autoFlush;
573
- this.t1e_1 = autoFlush;
574
- this.u1e_1 = new Buffer();
575
- this.v1e_1 = 0;
576
- this.w1e_1 = new Object();
577
- this.x1e_1 = atomic$ref$1(Empty_instance);
578
- this.y1e_1 = new Buffer();
579
- this.z1e_1 = new Buffer();
580
- this.a1f_1 = atomic$ref$1(null);
581
- }
582
- protoOf(ByteChannel).j1g = function () {
583
- return this.t1e_1;
584
- };
585
- protoOf(ByteChannel).k1g = function () {
586
- var tmp0_safe_receiver = this.a1f_1.kotlinx$atomicfu$value;
610
+ this.g1f_1 = autoFlush;
611
+ this.h1f_1 = new Buffer();
612
+ this.i1f_1 = 0;
613
+ this.j1f_1 = new Object();
614
+ this.k1f_1 = atomic$ref$1(Empty_instance);
615
+ this.l1f_1 = new Buffer();
616
+ this.m1f_1 = new Buffer();
617
+ this.n1f_1 = atomic$ref$1(null);
618
+ this.o1f_1 = atomic$ref$1(null);
619
+ }
620
+ protoOf(ByteChannel).z1g = function () {
621
+ return this.g1f_1;
622
+ };
623
+ protoOf(ByteChannel).m1g = function () {
624
+ return this.i1f_1 < 1048576;
625
+ };
626
+ protoOf(ByteChannel).a1h = function () {
627
+ var tmp0_safe_receiver = this.n1f_1.kotlinx$atomicfu$value;
587
628
  if (tmp0_safe_receiver == null)
588
629
  null;
589
630
  else {
590
- tmp0_safe_receiver.m1g(ClosedReadChannelException$_init_$ref_ix0089());
631
+ // Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
632
+ // Inline function 'io.ktor.utils.io.Companion.wrapCause' call
633
+ var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
634
+ var tmp;
635
+ if (tmp0_subject == null) {
636
+ tmp = null;
637
+ } else {
638
+ if (isInterface(tmp0_subject, CopyableThrowable)) {
639
+ tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
640
+ } else {
641
+ if (tmp0_subject instanceof CancellationException) {
642
+ tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
643
+ } else {
644
+ var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
645
+ tmp = new ClosedReadChannelException(p0);
646
+ }
647
+ }
648
+ }
649
+ var tmp0_safe_receiver_0 = tmp;
650
+ var tmp_0;
651
+ if (tmp0_safe_receiver_0 == null) {
652
+ tmp_0 = null;
653
+ } else {
654
+ // Inline function 'kotlin.let' call
655
+ throw tmp0_safe_receiver_0;
656
+ }
591
657
  }
592
- if (this.y1e_1.jo()) {
658
+ if (this.l1f_1.xo()) {
593
659
  moveFlushToReadBuffer(this);
594
660
  }
595
- return this.y1e_1;
661
+ return this.l1f_1;
596
662
  };
597
- protoOf(ByteChannel).n1g = function () {
598
- if (this.o1g()) {
599
- var tmp0_safe_receiver = this.a1f_1.kotlinx$atomicfu$value;
663
+ protoOf(ByteChannel).b1h = function () {
664
+ if (this.c1h()) {
665
+ var tmp0_safe_receiver = this.n1f_1.kotlinx$atomicfu$value;
600
666
  var tmp;
601
667
  if (tmp0_safe_receiver == null) {
602
668
  tmp = null;
603
669
  } else {
604
- tmp = tmp0_safe_receiver.m1g(ClosedWriteChannelException$_init_$ref_ef15ty());
670
+ // Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
671
+ // Inline function 'io.ktor.utils.io.Companion.wrapCause' call
672
+ var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
673
+ var tmp_0;
674
+ if (tmp0_subject == null) {
675
+ tmp_0 = null;
676
+ } else {
677
+ if (isInterface(tmp0_subject, CopyableThrowable)) {
678
+ tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
679
+ } else {
680
+ if (tmp0_subject instanceof CancellationException) {
681
+ tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
682
+ } else {
683
+ var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
684
+ tmp_0 = new ClosedWriteChannelException(p0);
685
+ }
686
+ }
687
+ }
688
+ var tmp0_safe_receiver_0 = tmp_0;
689
+ var tmp_1;
690
+ if (tmp0_safe_receiver_0 == null) {
691
+ tmp_1 = null;
692
+ } else {
693
+ // Inline function 'kotlin.let' call
694
+ throw tmp0_safe_receiver_0;
695
+ }
696
+ tmp = tmp_1;
605
697
  }
606
698
  if (tmp == null)
607
699
  throw new ClosedWriteChannelException();
608
700
  }
609
- return this.z1e_1;
701
+ return this.m1f_1;
610
702
  };
611
- protoOf(ByteChannel).p1g = function () {
612
- var tmp0_safe_receiver = this.a1f_1.kotlinx$atomicfu$value;
613
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1g();
703
+ protoOf(ByteChannel).d1h = function () {
704
+ var tmp0_safe_receiver = this.n1f_1.kotlinx$atomicfu$value;
705
+ var tmp;
706
+ if (tmp0_safe_receiver == null) {
707
+ tmp = null;
708
+ } else {
709
+ // Inline function 'io.ktor.utils.io.Companion.wrapCause' call
710
+ var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
711
+ var tmp_0;
712
+ if (tmp0_subject == null) {
713
+ tmp_0 = null;
714
+ } else {
715
+ if (isInterface(tmp0_subject, CopyableThrowable)) {
716
+ tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
717
+ } else {
718
+ if (tmp0_subject instanceof CancellationException) {
719
+ tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
720
+ } else {
721
+ var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
722
+ tmp_0 = new ClosedByteChannelException(p0);
723
+ }
724
+ }
725
+ }
726
+ tmp = tmp_0;
727
+ }
728
+ return tmp;
614
729
  };
615
- protoOf(ByteChannel).o1g = function () {
616
- return !(this.a1f_1.kotlinx$atomicfu$value == null);
730
+ protoOf(ByteChannel).c1h = function () {
731
+ return !(this.n1f_1.kotlinx$atomicfu$value == null);
617
732
  };
618
- protoOf(ByteChannel).r1g = function () {
619
- return !(this.p1g() == null) || (this.o1g() && this.v1e_1 === 0 && this.y1e_1.jo());
733
+ protoOf(ByteChannel).e1h = function () {
734
+ return !(this.d1h() == null) || (this.c1h() && this.i1f_1 === 0 && this.l1f_1.xo());
620
735
  };
621
- protoOf(ByteChannel).s1g = function (min, $completion) {
736
+ protoOf(ByteChannel).f1h = function (min, $completion) {
622
737
  var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
623
- tmp.l8_1 = Unit_instance;
624
- tmp.m8_1 = null;
625
- return tmp.r8();
738
+ tmp.m8_1 = Unit_instance;
739
+ tmp.n8_1 = null;
740
+ return tmp.s8();
626
741
  };
627
- protoOf(ByteChannel).i1g = function ($completion) {
742
+ protoOf(ByteChannel).y1g = function ($completion) {
628
743
  var tmp = new $flushCOROUTINE$(this, $completion);
629
- tmp.l8_1 = Unit_instance;
630
- tmp.m8_1 = null;
631
- return tmp.r8();
744
+ tmp.m8_1 = Unit_instance;
745
+ tmp.n8_1 = null;
746
+ return tmp.s8();
632
747
  };
633
- protoOf(ByteChannel).w1f = function () {
634
- if (this.z1e_1.jo())
748
+ protoOf(ByteChannel).l1g = function () {
749
+ if (this.m1f_1.xo())
635
750
  return Unit_instance;
636
751
  // Inline function 'io.ktor.utils.io.locks.synchronized' call
637
- this.w1e_1;
638
- var count = convertToInt(this.z1e_1.g1());
639
- this.u1e_1.bq(this.z1e_1);
640
- this.v1e_1 = this.v1e_1 + count | 0;
752
+ this.j1f_1;
753
+ var count = convertToInt(this.m1f_1.g1());
754
+ this.h1f_1.pq(this.m1f_1);
755
+ this.i1f_1 = this.i1f_1 + count | 0;
641
756
  // Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
642
- var current = this.x1e_1.kotlinx$atomicfu$value;
757
+ var current = this.k1f_1.kotlinx$atomicfu$value;
643
758
  var tmp;
644
759
  if (current instanceof Read) {
645
- tmp = this.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
760
+ tmp = this.k1f_1.atomicfu$compareAndSet(current, Empty_instance);
646
761
  } else {
647
762
  tmp = false;
648
763
  }
649
764
  if (tmp) {
650
- current.n1e();
765
+ current.a1f();
651
766
  }
652
767
  };
653
768
  protoOf(ByteChannel).j4 = function () {
654
- this.w1f();
655
- if (!this.a1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
769
+ this.l1g();
770
+ if (!this.n1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
656
771
  return Unit_instance;
657
772
  closeSlot(this, null);
658
773
  };
659
- protoOf(ByteChannel).u1g = function ($completion) {
774
+ protoOf(ByteChannel).h1h = function ($completion) {
660
775
  var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
661
- tmp.l8_1 = Unit_instance;
662
- tmp.m8_1 = null;
663
- return tmp.r8();
776
+ tmp.m8_1 = Unit_instance;
777
+ tmp.n8_1 = null;
778
+ return tmp.s8();
664
779
  };
665
- protoOf(ByteChannel).v1g = function (cause) {
666
- if (!(this.a1f_1.kotlinx$atomicfu$value == null))
780
+ protoOf(ByteChannel).i1h = function (cause) {
781
+ if (!(this.n1f_1.kotlinx$atomicfu$value == null))
667
782
  return Unit_instance;
668
783
  var closedToken = new CloseToken(cause);
669
- this.a1f_1.atomicfu$compareAndSet(null, closedToken);
670
- var wrappedCause = closedToken.q1g();
784
+ this.n1f_1.atomicfu$compareAndSet(null, closedToken);
785
+ // Inline function 'io.ktor.utils.io.Companion.wrapCause' call
786
+ var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
787
+ var tmp;
788
+ if (tmp0_subject == null) {
789
+ tmp = null;
790
+ } else {
791
+ if (isInterface(tmp0_subject, CopyableThrowable)) {
792
+ tmp = access$_get_origin__hdh1qz(closedToken).jz();
793
+ } else {
794
+ if (tmp0_subject instanceof CancellationException) {
795
+ tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
796
+ } else {
797
+ var p0 = access$_get_origin__hdh1qz(closedToken);
798
+ tmp = new ClosedByteChannelException(p0);
799
+ }
800
+ }
801
+ }
802
+ var wrappedCause = tmp;
671
803
  closeSlot(this, wrappedCause);
672
804
  };
805
+ protoOf(ByteChannel).j1h = function (handler) {
806
+ var existingCause = this.n1f_1.kotlinx$atomicfu$value;
807
+ if (!(existingCause == null)) {
808
+ // Inline function 'io.ktor.utils.io.Companion.wrapCause' call
809
+ var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
810
+ var tmp;
811
+ if (tmp0_subject == null) {
812
+ tmp = null;
813
+ } else {
814
+ if (isInterface(tmp0_subject, CopyableThrowable)) {
815
+ tmp = access$_get_origin__hdh1qz(existingCause).jz();
816
+ } else {
817
+ if (tmp0_subject instanceof CancellationException) {
818
+ tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
819
+ } else {
820
+ var p0 = access$_get_origin__hdh1qz(existingCause);
821
+ tmp = new ClosedByteChannelException(p0);
822
+ }
823
+ }
824
+ }
825
+ handler(tmp);
826
+ var tmp_0 = ByteChannel$invokeOnClose$lambda;
827
+ return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
828
+ }
829
+ if (!this.o1f_1.atomicfu$compareAndSet(null, handler)) {
830
+ // Inline function 'kotlin.error' call
831
+ var message = 'Only one invokeOnClose handler is supported per channel';
832
+ throw IllegalStateException_init_$Create$(toString_1(message));
833
+ }
834
+ var cause = this.n1f_1.kotlinx$atomicfu$value;
835
+ if (!(cause == null) && this.o1f_1.atomicfu$compareAndSet(handler, null)) {
836
+ // Inline function 'io.ktor.utils.io.Companion.wrapCause' call
837
+ var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
838
+ var tmp_1;
839
+ if (tmp0_subject_0 == null) {
840
+ tmp_1 = null;
841
+ } else {
842
+ if (isInterface(tmp0_subject_0, CopyableThrowable)) {
843
+ tmp_1 = access$_get_origin__hdh1qz(cause).jz();
844
+ } else {
845
+ if (tmp0_subject_0 instanceof CancellationException) {
846
+ tmp_1 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
847
+ } else {
848
+ var p0_0 = access$_get_origin__hdh1qz(cause);
849
+ tmp_1 = new ClosedByteChannelException(p0_0);
850
+ }
851
+ }
852
+ }
853
+ handler(tmp_1);
854
+ var tmp_2 = ByteChannel$invokeOnClose$lambda_0;
855
+ return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_2);
856
+ }
857
+ var tmp_3 = ByteChannel$invokeOnClose$lambda_1(this, handler);
858
+ return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_3);
859
+ };
673
860
  protoOf(ByteChannel).toString = function () {
674
861
  return 'ByteChannel[' + hashCode(this) + ']';
675
862
  };
@@ -683,7 +870,7 @@ function ByteReadChannel(content, offset, length) {
683
870
  length = length === VOID ? content.length : length;
684
871
  // Inline function 'kotlin.also' call
685
872
  var this_0 = new Buffer();
686
- this_0.sp(content, offset, offset + length | 0);
873
+ this_0.gq(content, offset, offset + length | 0);
687
874
  var source = this_0;
688
875
  return ByteReadChannel_0(source);
689
876
  }
@@ -691,18 +878,18 @@ function ByteReadChannel_0(source) {
691
878
  return new SourceByteReadChannel(source);
692
879
  }
693
880
  function buildPartialMatchTable($this) {
694
- var table = new Int32Array($this.x1g_1.g1());
881
+ var table = new Int32Array($this.l1h_1.g1());
695
882
  var j = 0;
696
883
  var inductionVariable = 1;
697
- var last = $this.x1g_1.g1();
884
+ var last = $this.l1h_1.g1();
698
885
  if (inductionVariable < last)
699
886
  do {
700
887
  var i = inductionVariable;
701
888
  inductionVariable = inductionVariable + 1 | 0;
702
- while (j > 0 && !($this.x1g_1.h1(i) === $this.x1g_1.h1(j))) {
889
+ while (j > 0 && !($this.l1h_1.h1(i) === $this.l1h_1.h1(j))) {
703
890
  j = table[j - 1 | 0];
704
891
  }
705
- if ($this.x1g_1.h1(i) === $this.x1g_1.h1(j)) {
892
+ if ($this.l1h_1.h1(i) === $this.l1h_1.h1(j)) {
706
893
  j = j + 1 | 0;
707
894
  }
708
895
  table[i] = j;
@@ -712,19 +899,19 @@ function buildPartialMatchTable($this) {
712
899
  }
713
900
  function advanceToNextPotentialMatch($this, $completion) {
714
901
  var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
715
- tmp.l8_1 = Unit_instance;
716
- tmp.m8_1 = null;
717
- return tmp.r8();
902
+ tmp.m8_1 = Unit_instance;
903
+ tmp.n8_1 = null;
904
+ return tmp.s8();
718
905
  }
719
906
  function checkFullMatch($this, $completion) {
720
907
  var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
721
- tmp.l8_1 = Unit_instance;
722
- tmp.m8_1 = null;
723
- return tmp.r8();
908
+ tmp.m8_1 = Unit_instance;
909
+ tmp.n8_1 = null;
910
+ return tmp.s8();
724
911
  }
725
912
  function checkBounds($this, extra) {
726
- if (add($this.d1h_1, extra) > $this.z1g_1) {
727
- throw IOException_init_$Create$('Limit of ' + $this.z1g_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.x1g_1) + '"'));
913
+ if (add($this.r1h_1, extra) > $this.n1h_1) {
914
+ throw IOException_init_$Create$('Limit of ' + $this.n1h_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.l1h_1) + '"'));
728
915
  }
729
916
  }
730
917
  function toSingleLineString($this, $receiver) {
@@ -732,28 +919,28 @@ function toSingleLineString($this, $receiver) {
732
919
  }
733
920
  function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
734
921
  CoroutineImpl.call(this, resultContinuation);
735
- this.i1i_1 = _this__u8e3s4;
736
- this.j1i_1 = ignoreMissing;
922
+ this.w1i_1 = _this__u8e3s4;
923
+ this.x1i_1 = ignoreMissing;
737
924
  }
738
- protoOf($findNextCOROUTINE$).r8 = function () {
739
- var suspendResult = this.l8_1;
925
+ protoOf($findNextCOROUTINE$).s8 = function () {
926
+ var suspendResult = this.m8_1;
740
927
  $sm: do
741
928
  try {
742
- var tmp = this.j8_1;
929
+ var tmp = this.k8_1;
743
930
  switch (tmp) {
744
931
  case 0:
745
- this.k8_1 = 9;
746
- this.i1i_1.d1h_1 = 0n;
747
- this.j8_1 = 1;
932
+ this.l8_1 = 9;
933
+ this.w1i_1.r1h_1 = 0n;
934
+ this.k8_1 = 1;
748
935
  continue $sm;
749
936
  case 1:
750
- if (!this.i1i_1.a1h_1.jo()) {
751
- this.k1i_1 = true;
752
- this.j8_1 = 3;
937
+ if (!this.w1i_1.o1h_1.xo()) {
938
+ this.y1i_1 = true;
939
+ this.k8_1 = 3;
753
940
  continue $sm;
754
941
  } else {
755
- this.j8_1 = 2;
756
- suspendResult = this.i1i_1.w1g_1.t1g(VOID, this);
942
+ this.k8_1 = 2;
943
+ suspendResult = this.w1i_1.k1h_1.g1h(VOID, this);
757
944
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
758
945
  return suspendResult;
759
946
  }
@@ -761,25 +948,25 @@ protoOf($findNextCOROUTINE$).r8 = function () {
761
948
  }
762
949
 
763
950
  case 2:
764
- this.k1i_1 = suspendResult;
765
- this.j8_1 = 3;
951
+ this.y1i_1 = suspendResult;
952
+ this.k8_1 = 3;
766
953
  continue $sm;
767
954
  case 3:
768
- if (!this.k1i_1) {
769
- this.j8_1 = 7;
955
+ if (!this.y1i_1) {
956
+ this.k8_1 = 7;
770
957
  continue $sm;
771
958
  }
772
959
 
773
- this.j8_1 = 4;
774
- suspendResult = advanceToNextPotentialMatch(this.i1i_1, this);
960
+ this.k8_1 = 4;
961
+ suspendResult = advanceToNextPotentialMatch(this.w1i_1, this);
775
962
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
776
963
  return suspendResult;
777
964
  }
778
965
 
779
966
  continue $sm;
780
967
  case 4:
781
- this.j8_1 = 5;
782
- suspendResult = checkFullMatch(this.i1i_1, this);
968
+ this.k8_1 = 5;
969
+ suspendResult = checkFullMatch(this.w1i_1, this);
783
970
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
784
971
  return suspendResult;
785
972
  }
@@ -787,66 +974,66 @@ protoOf($findNextCOROUTINE$).r8 = function () {
787
974
  continue $sm;
788
975
  case 5:
789
976
  if (suspendResult) {
790
- return this.i1i_1.d1h_1;
977
+ return this.w1i_1.r1h_1;
791
978
  } else {
792
- this.j8_1 = 6;
979
+ this.k8_1 = 6;
793
980
  continue $sm;
794
981
  }
795
982
 
796
983
  case 6:
797
- this.j8_1 = 1;
984
+ this.k8_1 = 1;
798
985
  continue $sm;
799
986
  case 7:
800
- if (!this.j1i_1) {
801
- throw IOException_init_$Create$('Expected "' + toSingleLineString(this.i1i_1, this.i1i_1.x1g_1) + '" but encountered end of input');
987
+ if (!this.x1i_1) {
988
+ throw IOException_init_$Create$('Expected "' + toSingleLineString(this.w1i_1, this.w1i_1.l1h_1) + '" but encountered end of input');
802
989
  }
803
990
 
804
- this.i1i_1.d1h_1 = add(this.i1i_1.d1h_1, this.i1i_1.c1h_1.mp(this.i1i_1.y1g_1.n1g()));
805
- this.j8_1 = 8;
806
- suspendResult = this.i1i_1.y1g_1.i1g(this);
991
+ this.w1i_1.r1h_1 = add(this.w1i_1.r1h_1, this.w1i_1.q1h_1.aq(this.w1i_1.m1h_1.b1h()));
992
+ this.k8_1 = 8;
993
+ suspendResult = this.w1i_1.m1h_1.y1g(this);
807
994
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
808
995
  return suspendResult;
809
996
  }
810
997
 
811
998
  continue $sm;
812
999
  case 8:
813
- return this.i1i_1.d1h_1;
1000
+ return this.w1i_1.r1h_1;
814
1001
  case 9:
815
- throw this.m8_1;
1002
+ throw this.n8_1;
816
1003
  }
817
1004
  } catch ($p) {
818
1005
  var e = $p;
819
- if (this.k8_1 === 9) {
1006
+ if (this.l8_1 === 9) {
820
1007
  throw e;
821
1008
  } else {
822
- this.j8_1 = this.k8_1;
823
- this.m8_1 = e;
1009
+ this.k8_1 = this.l8_1;
1010
+ this.n8_1 = e;
824
1011
  }
825
1012
  }
826
1013
  while (true);
827
1014
  };
828
1015
  function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
829
1016
  CoroutineImpl.call(this, resultContinuation);
830
- this.n1h_1 = _this__u8e3s4;
1017
+ this.b1i_1 = _this__u8e3s4;
831
1018
  }
832
- protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
833
- var suspendResult = this.l8_1;
1019
+ protoOf($advanceToNextPotentialMatchCOROUTINE$).s8 = function () {
1020
+ var suspendResult = this.m8_1;
834
1021
  $sm: do
835
1022
  try {
836
- var tmp = this.j8_1;
1023
+ var tmp = this.k8_1;
837
1024
  switch (tmp) {
838
1025
  case 0:
839
- this.k8_1 = 8;
840
- this.j8_1 = 1;
1026
+ this.l8_1 = 8;
1027
+ this.k8_1 = 1;
841
1028
  continue $sm;
842
1029
  case 1:
843
- if (!this.n1h_1.a1h_1.jo()) {
844
- this.o1h_1 = true;
845
- this.j8_1 = 3;
1030
+ if (!this.b1i_1.o1h_1.xo()) {
1031
+ this.c1i_1 = true;
1032
+ this.k8_1 = 3;
846
1033
  continue $sm;
847
1034
  } else {
848
- this.j8_1 = 2;
849
- suspendResult = this.n1h_1.w1g_1.t1g(VOID, this);
1035
+ this.k8_1 = 2;
1036
+ suspendResult = this.b1i_1.k1h_1.g1h(VOID, this);
850
1037
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
851
1038
  return suspendResult;
852
1039
  }
@@ -854,34 +1041,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
854
1041
  }
855
1042
 
856
1043
  case 2:
857
- this.o1h_1 = suspendResult;
858
- this.j8_1 = 3;
1044
+ this.c1i_1 = suspendResult;
1045
+ this.k8_1 = 3;
859
1046
  continue $sm;
860
1047
  case 3:
861
- if (!this.o1h_1) {
862
- this.j8_1 = 7;
1048
+ if (!this.c1i_1) {
1049
+ this.k8_1 = 7;
863
1050
  continue $sm;
864
1051
  }
865
1052
 
866
- var nextMatch = indexOf(this.n1h_1.a1h_1, this.n1h_1.x1g_1.h1(0));
1053
+ var nextMatch = indexOf(this.b1i_1.o1h_1, this.b1i_1.l1h_1.h1(0));
867
1054
  if (nextMatch === -1n) {
868
- var tmp_0 = this.n1h_1.a1h_1;
869
- checkBounds(this.n1h_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
870
- this.n1h_1.d1h_1 = add(this.n1h_1.d1h_1, this.n1h_1.a1h_1.mp(this.n1h_1.y1g_1.n1g()));
871
- this.j8_1 = 5;
872
- suspendResult = flushIfNeeded(this.n1h_1.y1g_1, this);
1055
+ var tmp_0 = this.b1i_1.o1h_1;
1056
+ checkBounds(this.b1i_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
1057
+ this.b1i_1.r1h_1 = add(this.b1i_1.r1h_1, this.b1i_1.o1h_1.aq(this.b1i_1.m1h_1.b1h()));
1058
+ this.k8_1 = 5;
1059
+ suspendResult = flushIfNeeded(this.b1i_1.m1h_1, this);
873
1060
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
874
1061
  return suspendResult;
875
1062
  }
876
1063
  continue $sm;
877
1064
  } else {
878
- checkBounds(this.n1h_1, nextMatch);
879
- var tmp_1 = this.n1h_1;
880
- var tmp_2 = this.n1h_1.d1h_1;
881
- var tmp_3 = this.n1h_1.y1g_1.n1g();
882
- tmp_1.d1h_1 = add(tmp_2, this.n1h_1.a1h_1.jp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
883
- this.j8_1 = 4;
884
- suspendResult = flushIfNeeded(this.n1h_1.y1g_1, this);
1065
+ checkBounds(this.b1i_1, nextMatch);
1066
+ var tmp_1 = this.b1i_1;
1067
+ var tmp_2 = this.b1i_1.r1h_1;
1068
+ var tmp_3 = this.b1i_1.m1h_1.b1h();
1069
+ tmp_1.r1h_1 = add(tmp_2, this.b1i_1.o1h_1.xp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
1070
+ this.k8_1 = 4;
1071
+ suspendResult = flushIfNeeded(this.b1i_1.m1h_1, this);
885
1072
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
886
1073
  return suspendResult;
887
1074
  }
@@ -891,49 +1078,49 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
891
1078
  case 4:
892
1079
  return Unit_instance;
893
1080
  case 5:
894
- this.j8_1 = 6;
1081
+ this.k8_1 = 6;
895
1082
  continue $sm;
896
1083
  case 6:
897
- this.j8_1 = 1;
1084
+ this.k8_1 = 1;
898
1085
  continue $sm;
899
1086
  case 7:
900
1087
  return Unit_instance;
901
1088
  case 8:
902
- throw this.m8_1;
1089
+ throw this.n8_1;
903
1090
  }
904
1091
  } catch ($p) {
905
1092
  var e = $p;
906
- if (this.k8_1 === 8) {
1093
+ if (this.l8_1 === 8) {
907
1094
  throw e;
908
1095
  } else {
909
- this.j8_1 = this.k8_1;
910
- this.m8_1 = e;
1096
+ this.k8_1 = this.l8_1;
1097
+ this.n8_1 = e;
911
1098
  }
912
1099
  }
913
1100
  while (true);
914
1101
  };
915
1102
  function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
916
1103
  CoroutineImpl.call(this, resultContinuation);
917
- this.x1h_1 = _this__u8e3s4;
1104
+ this.l1i_1 = _this__u8e3s4;
918
1105
  }
919
- protoOf($checkFullMatchCOROUTINE$).r8 = function () {
920
- var suspendResult = this.l8_1;
1106
+ protoOf($checkFullMatchCOROUTINE$).s8 = function () {
1107
+ var suspendResult = this.m8_1;
921
1108
  $sm: do
922
1109
  try {
923
- var tmp = this.j8_1;
1110
+ var tmp = this.k8_1;
924
1111
  switch (tmp) {
925
1112
  case 0:
926
- this.k8_1 = 8;
927
- this.j8_1 = 1;
1113
+ this.l8_1 = 8;
1114
+ this.k8_1 = 1;
928
1115
  continue $sm;
929
1116
  case 1:
930
- if (!this.x1h_1.a1h_1.jo()) {
931
- this.z1h_1 = true;
932
- this.j8_1 = 3;
1117
+ if (!this.l1i_1.o1h_1.xo()) {
1118
+ this.n1i_1 = true;
1119
+ this.k8_1 = 3;
933
1120
  continue $sm;
934
1121
  } else {
935
- this.j8_1 = 2;
936
- suspendResult = this.x1h_1.w1g_1.t1g(VOID, this);
1122
+ this.k8_1 = 2;
1123
+ suspendResult = this.l1i_1.k1h_1.g1h(VOID, this);
937
1124
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
938
1125
  return suspendResult;
939
1126
  }
@@ -941,120 +1128,139 @@ protoOf($checkFullMatchCOROUTINE$).r8 = function () {
941
1128
  }
942
1129
 
943
1130
  case 2:
944
- this.z1h_1 = suspendResult;
945
- this.j8_1 = 3;
1131
+ this.n1i_1 = suspendResult;
1132
+ this.k8_1 = 3;
946
1133
  continue $sm;
947
1134
  case 3:
948
- if (!this.z1h_1) {
949
- this.j8_1 = 7;
1135
+ if (!this.n1i_1) {
1136
+ this.k8_1 = 7;
950
1137
  continue $sm;
951
1138
  }
952
1139
 
953
- this.y1h_1 = this.x1h_1.a1h_1.mo();
954
- if (this.x1h_1.e1h_1 > 0 && !(this.y1h_1 === this.x1h_1.x1g_1.h1(this.x1h_1.e1h_1))) {
955
- var oldMatchIndex = this.x1h_1.e1h_1;
956
- while (this.x1h_1.e1h_1 > 0 && !(this.y1h_1 === this.x1h_1.x1g_1.h1(this.x1h_1.e1h_1))) {
957
- this.x1h_1.e1h_1 = this.x1h_1.b1h_1[this.x1h_1.e1h_1 - 1 | 0];
1140
+ this.m1i_1 = this.l1i_1.o1h_1.ap();
1141
+ if (this.l1i_1.s1h_1 > 0 && !(this.m1i_1 === this.l1i_1.l1h_1.h1(this.l1i_1.s1h_1))) {
1142
+ var oldMatchIndex = this.l1i_1.s1h_1;
1143
+ while (this.l1i_1.s1h_1 > 0 && !(this.m1i_1 === this.l1i_1.l1h_1.h1(this.l1i_1.s1h_1))) {
1144
+ this.l1i_1.s1h_1 = this.l1i_1.p1h_1[this.l1i_1.s1h_1 - 1 | 0];
958
1145
  }
959
- var retained = fromInt(oldMatchIndex - this.x1h_1.e1h_1 | 0);
960
- checkBounds(this.x1h_1, retained);
961
- var tmp_0 = this.x1h_1;
962
- var tmp_1 = this.x1h_1.d1h_1;
963
- var tmp_2 = this.x1h_1.y1g_1.n1g();
964
- tmp_0.d1h_1 = add(tmp_1, this.x1h_1.c1h_1.jp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
965
- if (this.x1h_1.e1h_1 === 0 && !(this.y1h_1 === this.x1h_1.x1g_1.h1(this.x1h_1.e1h_1))) {
966
- this.j8_1 = 6;
967
- suspendResult = writeByte(this.x1h_1.y1g_1, this.y1h_1, this);
1146
+ var retained = fromInt(oldMatchIndex - this.l1i_1.s1h_1 | 0);
1147
+ checkBounds(this.l1i_1, retained);
1148
+ var tmp_0 = this.l1i_1;
1149
+ var tmp_1 = this.l1i_1.r1h_1;
1150
+ var tmp_2 = this.l1i_1.m1h_1.b1h();
1151
+ tmp_0.r1h_1 = add(tmp_1, this.l1i_1.q1h_1.xp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
1152
+ if (this.l1i_1.s1h_1 === 0 && !(this.m1i_1 === this.l1i_1.l1h_1.h1(this.l1i_1.s1h_1))) {
1153
+ this.k8_1 = 6;
1154
+ suspendResult = writeByte(this.l1i_1.m1h_1, this.m1i_1, this);
968
1155
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
969
1156
  return suspendResult;
970
1157
  }
971
1158
  continue $sm;
972
1159
  } else {
973
- this.j8_1 = 4;
1160
+ this.k8_1 = 4;
974
1161
  continue $sm;
975
1162
  }
976
1163
  } else {
977
- this.j8_1 = 5;
1164
+ this.k8_1 = 5;
978
1165
  continue $sm;
979
1166
  }
980
1167
 
981
1168
  case 4:
982
- this.j8_1 = 5;
1169
+ this.k8_1 = 5;
983
1170
  continue $sm;
984
1171
  case 5:
985
- this.x1h_1.e1h_1 = this.x1h_1.e1h_1 + 1 | 0;
986
- if (this.x1h_1.e1h_1 === this.x1h_1.x1g_1.g1()) {
1172
+ this.l1i_1.s1h_1 = this.l1i_1.s1h_1 + 1 | 0;
1173
+ if (this.l1i_1.s1h_1 === this.l1i_1.l1h_1.g1()) {
987
1174
  return true;
988
1175
  }
989
1176
 
990
- this.x1h_1.c1h_1.cq(this.y1h_1);
991
- this.j8_1 = 1;
1177
+ this.l1i_1.q1h_1.qq(this.m1i_1);
1178
+ this.k8_1 = 1;
992
1179
  continue $sm;
993
1180
  case 6:
994
- var _unary__edvuaz = this.x1h_1.d1h_1;
995
- this.x1h_1.d1h_1 = add(_unary__edvuaz, get_ONE());
1181
+ var _unary__edvuaz = this.l1i_1.r1h_1;
1182
+ this.l1i_1.r1h_1 = add(_unary__edvuaz, get_ONE());
996
1183
  return false;
997
1184
  case 7:
998
1185
  return false;
999
1186
  case 8:
1000
- throw this.m8_1;
1187
+ throw this.n8_1;
1001
1188
  }
1002
1189
  } catch ($p) {
1003
1190
  var e = $p;
1004
- if (this.k8_1 === 8) {
1191
+ if (this.l8_1 === 8) {
1005
1192
  throw e;
1006
1193
  } else {
1007
- this.j8_1 = this.k8_1;
1008
- this.m8_1 = e;
1194
+ this.k8_1 = this.l8_1;
1195
+ this.n8_1 = e;
1009
1196
  }
1010
1197
  }
1011
1198
  while (true);
1012
1199
  };
1013
1200
  function ByteChannelScanner(channel, matchString, writeChannel, limit) {
1014
1201
  limit = limit === VOID ? 9223372036854775807n : limit;
1015
- this.w1g_1 = channel;
1016
- this.x1g_1 = matchString;
1017
- this.y1g_1 = writeChannel;
1018
- this.z1g_1 = limit;
1202
+ this.k1h_1 = channel;
1203
+ this.l1h_1 = matchString;
1204
+ this.m1h_1 = writeChannel;
1205
+ this.n1h_1 = limit;
1019
1206
  // Inline function 'kotlin.require' call
1020
- if (!(this.x1g_1.g1() > 0)) {
1207
+ if (!(this.l1h_1.g1() > 0)) {
1021
1208
  var message = 'Empty match string not permitted for scanning';
1022
1209
  throw IllegalArgumentException_init_$Create$(toString_1(message));
1023
1210
  }
1024
- this.a1h_1 = this.w1g_1.k1g();
1025
- this.b1h_1 = buildPartialMatchTable(this);
1026
- this.c1h_1 = new Buffer();
1027
- this.d1h_1 = 0n;
1028
- this.e1h_1 = 0;
1211
+ this.o1h_1 = this.k1h_1.a1h();
1212
+ this.p1h_1 = buildPartialMatchTable(this);
1213
+ this.q1h_1 = new Buffer();
1214
+ this.r1h_1 = 0n;
1215
+ this.s1h_1 = 0;
1029
1216
  }
1030
- protoOf(ByteChannelScanner).l1i = function (ignoreMissing, $completion) {
1217
+ protoOf(ByteChannelScanner).z1i = function (ignoreMissing, $completion) {
1031
1218
  var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
1032
- tmp.l8_1 = Unit_instance;
1033
- tmp.m8_1 = null;
1034
- return tmp.r8();
1219
+ tmp.m8_1 = Unit_instance;
1220
+ tmp.n8_1 = null;
1221
+ return tmp.s8();
1035
1222
  };
1223
+ function attachWriterJob(_this__u8e3s4, writerJob) {
1224
+ var tmp = writerJob.a1j_1;
1225
+ var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
1226
+ if (tmp0_safe_receiver == null)
1227
+ null;
1228
+ else {
1229
+ tmp0_safe_receiver.j1h(attachWriterJob$lambda(_this__u8e3s4));
1230
+ }
1231
+ }
1232
+ function attachWriterJob$lambda($this_attachWriterJob) {
1233
+ return function (cause) {
1234
+ var tmp;
1235
+ if (!(cause == null)) {
1236
+ $this_attachWriterJob.i1h(cause);
1237
+ tmp = Unit_instance;
1238
+ }
1239
+ return Unit_instance;
1240
+ };
1241
+ }
1036
1242
  function ByteReadChannel$Companion$Empty$1() {
1037
- this.m1i_1 = null;
1038
- this.n1i_1 = new Buffer();
1243
+ this.c1j_1 = null;
1244
+ this.d1j_1 = new Buffer();
1039
1245
  }
1040
- protoOf(ByteReadChannel$Companion$Empty$1).p1g = function () {
1041
- return this.m1i_1;
1246
+ protoOf(ByteReadChannel$Companion$Empty$1).d1h = function () {
1247
+ return this.c1j_1;
1042
1248
  };
1043
- protoOf(ByteReadChannel$Companion$Empty$1).r1g = function () {
1249
+ protoOf(ByteReadChannel$Companion$Empty$1).e1h = function () {
1044
1250
  return true;
1045
1251
  };
1046
- protoOf(ByteReadChannel$Companion$Empty$1).k1g = function () {
1047
- return this.n1i_1;
1252
+ protoOf(ByteReadChannel$Companion$Empty$1).a1h = function () {
1253
+ return this.d1j_1;
1048
1254
  };
1049
- protoOf(ByteReadChannel$Companion$Empty$1).s1g = function (min, $completion) {
1255
+ protoOf(ByteReadChannel$Companion$Empty$1).f1h = function (min, $completion) {
1050
1256
  return false;
1051
1257
  };
1052
- protoOf(ByteReadChannel$Companion$Empty$1).v1g = function (cause) {
1258
+ protoOf(ByteReadChannel$Companion$Empty$1).i1h = function (cause) {
1053
1259
  };
1054
1260
  function Companion_0() {
1055
1261
  Companion_instance_1 = this;
1056
1262
  var tmp = this;
1057
- tmp.o1i_1 = new ByteReadChannel$Companion$Empty$1();
1263
+ tmp.e1j_1 = new ByteReadChannel$Companion$Empty$1();
1058
1264
  }
1059
1265
  var Companion_instance_1;
1060
1266
  function Companion_getInstance_0() {
@@ -1065,69 +1271,78 @@ function Companion_getInstance_0() {
1065
1271
  function ByteReadChannel_1() {
1066
1272
  }
1067
1273
  function cancel_0(_this__u8e3s4) {
1068
- _this__u8e3s4.v1g(IOException_init_$Create$('Channel was cancelled'));
1274
+ _this__u8e3s4.i1h(IOException_init_$Create$('Channel was cancelled'));
1069
1275
  }
1070
1276
  function readBuffer(_this__u8e3s4, $completion) {
1071
1277
  var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
1072
- tmp.l8_1 = Unit_instance;
1073
- tmp.m8_1 = null;
1074
- return tmp.r8();
1278
+ tmp.m8_1 = Unit_instance;
1279
+ tmp.n8_1 = null;
1280
+ return tmp.s8();
1075
1281
  }
1076
1282
  function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
1077
1283
  offset = offset === VOID ? 0 : offset;
1078
1284
  length = length === VOID ? buffer.length - offset | 0 : length;
1079
1285
  var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
1080
- tmp.l8_1 = Unit_instance;
1081
- tmp.m8_1 = null;
1082
- return tmp.r8();
1286
+ tmp.m8_1 = Unit_instance;
1287
+ tmp.n8_1 = null;
1288
+ return tmp.s8();
1083
1289
  }
1084
1290
  function readRemaining(_this__u8e3s4, $completion) {
1085
1291
  var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
1086
- tmp.l8_1 = Unit_instance;
1087
- tmp.m8_1 = null;
1088
- return tmp.r8();
1292
+ tmp.m8_1 = Unit_instance;
1293
+ tmp.n8_1 = null;
1294
+ return tmp.s8();
1089
1295
  }
1090
1296
  function toByteArray(_this__u8e3s4, $completion) {
1091
1297
  var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
1092
- tmp.l8_1 = Unit_instance;
1093
- tmp.m8_1 = null;
1094
- return tmp.r8();
1298
+ tmp.m8_1 = Unit_instance;
1299
+ tmp.n8_1 = null;
1300
+ return tmp.s8();
1095
1301
  }
1096
1302
  function copyTo(_this__u8e3s4, channel, limit, $completion) {
1097
1303
  var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
1098
- tmp.l8_1 = Unit_instance;
1099
- tmp.m8_1 = null;
1100
- return tmp.r8();
1304
+ tmp.m8_1 = Unit_instance;
1305
+ tmp.n8_1 = null;
1306
+ return tmp.s8();
1307
+ }
1308
+ function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
1309
+ var tmp0_safe_receiver = _this__u8e3s4.d1h();
1310
+ if (tmp0_safe_receiver == null)
1311
+ null;
1312
+ else {
1313
+ // Inline function 'kotlin.let' call
1314
+ throw tmp0_safe_receiver;
1315
+ }
1101
1316
  }
1102
1317
  function discard(_this__u8e3s4, max, $completion) {
1103
1318
  max = max === VOID ? 9223372036854775807n : max;
1104
1319
  var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
1105
- tmp.l8_1 = Unit_instance;
1106
- tmp.m8_1 = null;
1107
- return tmp.r8();
1320
+ tmp.m8_1 = Unit_instance;
1321
+ tmp.n8_1 = null;
1322
+ return tmp.s8();
1108
1323
  }
1109
1324
  function copyTo_0(_this__u8e3s4, channel, $completion) {
1110
1325
  var tmp = new $copyToCOROUTINE$_0(_this__u8e3s4, channel, $completion);
1111
- tmp.l8_1 = Unit_instance;
1112
- tmp.m8_1 = null;
1113
- return tmp.r8();
1326
+ tmp.m8_1 = Unit_instance;
1327
+ tmp.n8_1 = null;
1328
+ return tmp.s8();
1114
1329
  }
1115
1330
  function skipIfFound(_this__u8e3s4, byteString, $completion) {
1116
1331
  var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
1117
- tmp.l8_1 = Unit_instance;
1118
- tmp.m8_1 = null;
1119
- return tmp.r8();
1332
+ tmp.m8_1 = Unit_instance;
1333
+ tmp.n8_1 = null;
1334
+ return tmp.s8();
1120
1335
  }
1121
1336
  function readPacket(_this__u8e3s4, packet, $completion) {
1122
1337
  var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
1123
- tmp.l8_1 = Unit_instance;
1124
- tmp.m8_1 = null;
1125
- return tmp.r8();
1338
+ tmp.m8_1 = Unit_instance;
1339
+ tmp.n8_1 = null;
1340
+ return tmp.s8();
1126
1341
  }
1127
1342
  function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
1128
1343
  limit = limit === VOID ? 9223372036854775807n : limit;
1129
1344
  ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
1130
- return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).l1i(ignoreMissing, $completion);
1345
+ return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).z1i(ignoreMissing, $completion);
1131
1346
  }
1132
1347
  function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
1133
1348
  limit = limit === VOID ? 9223372036854775807n : limit;
@@ -1139,17 +1354,8 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
1139
1354
  }
1140
1355
  return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
1141
1356
  }
1142
- function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
1143
- var tmp0_safe_receiver = _this__u8e3s4.p1g();
1144
- if (tmp0_safe_receiver == null)
1145
- null;
1146
- else {
1147
- // Inline function 'kotlin.let' call
1148
- throw tmp0_safe_receiver;
1149
- }
1150
- }
1151
1357
  function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
1152
- var tmp0_safe_receiver = _this__u8e3s4.p1g();
1358
+ var tmp0_safe_receiver = _this__u8e3s4.d1h();
1153
1359
  if (tmp0_safe_receiver == null)
1154
1360
  null;
1155
1361
  else {
@@ -1158,28 +1364,28 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
1158
1364
  }
1159
1365
  }
1160
1366
  function get_availableForRead(_this__u8e3s4) {
1161
- return convertToInt(_this__u8e3s4.k1g().io().g1());
1367
+ return convertToInt(_this__u8e3s4.a1h().wo().g1());
1162
1368
  }
1163
1369
  function peek(_this__u8e3s4, count, $completion) {
1164
1370
  var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
1165
- tmp.l8_1 = Unit_instance;
1166
- tmp.m8_1 = null;
1167
- return tmp.r8();
1371
+ tmp.m8_1 = Unit_instance;
1372
+ tmp.n8_1 = null;
1373
+ return tmp.s8();
1168
1374
  }
1169
1375
  function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
1170
1376
  var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
1171
- tmp.l8_1 = Unit_instance;
1172
- tmp.m8_1 = null;
1173
- return tmp.r8();
1377
+ tmp.m8_1 = Unit_instance;
1378
+ tmp.n8_1 = null;
1379
+ return tmp.s8();
1174
1380
  }
1175
1381
  function throwEndOfStreamException(consumed) {
1176
- throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' characters');
1382
+ throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' bytes');
1177
1383
  }
1178
1384
  function throwTooLongLineException(limit) {
1179
- throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
1385
+ throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
1180
1386
  }
1181
1387
  function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
1182
- var tmp0_safe_receiver = _this__u8e3s4.p1g();
1388
+ var tmp0_safe_receiver = _this__u8e3s4.d1h();
1183
1389
  if (tmp0_safe_receiver == null)
1184
1390
  null;
1185
1391
  else {
@@ -1187,14 +1393,23 @@ function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
1187
1393
  throw tmp0_safe_receiver;
1188
1394
  }
1189
1395
  }
1190
- function internalReadLineTo$transferString(readBuffer, $out, consumed, count) {
1396
+ function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count) {
1191
1397
  if (count > 0n) {
1192
- var string = readString(readBuffer, count);
1193
- $out.f1(string);
1194
- var tmp0 = consumed._v;
1195
- // Inline function 'kotlin.Long.plus' call
1196
- var other = string.length;
1197
- consumed._v = add(tmp0, fromInt(other));
1398
+ if (outBuffer._v == null) {
1399
+ outBuffer._v = new Buffer();
1400
+ }
1401
+ outBuffer._v.kq(readBuffer, count);
1402
+ consumed._v = add(consumed._v, count);
1403
+ }
1404
+ }
1405
+ function internalReadLineTo$appendOrBuffer(outBuffer, $out, readBuffer, consumed, count) {
1406
+ if (outBuffer._v == null) {
1407
+ if (count > 0n) {
1408
+ $out.f1(readString(readBuffer, count));
1409
+ consumed._v = add(consumed._v, count);
1410
+ }
1411
+ } else {
1412
+ internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count);
1198
1413
  }
1199
1414
  }
1200
1415
  function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfIndex, limitLeft) {
@@ -1218,178 +1433,178 @@ function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfI
1218
1433
  }
1219
1434
  function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
1220
1435
  var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
1221
- tmp.l8_1 = Unit_instance;
1222
- tmp.m8_1 = null;
1223
- return tmp.r8();
1436
+ tmp.m8_1 = Unit_instance;
1437
+ tmp.n8_1 = null;
1438
+ return tmp.s8();
1224
1439
  }
1225
1440
  function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
1226
1441
  CoroutineImpl.call(this, resultContinuation);
1227
- this.x1i_1 = _this__u8e3s4;
1442
+ this.n1j_1 = _this__u8e3s4;
1228
1443
  }
1229
- protoOf($readBufferCOROUTINE$).r8 = function () {
1230
- var suspendResult = this.l8_1;
1444
+ protoOf($readBufferCOROUTINE$).s8 = function () {
1445
+ var suspendResult = this.m8_1;
1231
1446
  $sm: do
1232
1447
  try {
1233
- var tmp = this.j8_1;
1448
+ var tmp = this.k8_1;
1234
1449
  switch (tmp) {
1235
1450
  case 0:
1236
- this.k8_1 = 4;
1237
- this.y1i_1 = new Buffer();
1238
- this.j8_1 = 1;
1451
+ this.l8_1 = 4;
1452
+ this.o1j_1 = new Buffer();
1453
+ this.k8_1 = 1;
1239
1454
  continue $sm;
1240
1455
  case 1:
1241
- if (!!this.x1i_1.r1g()) {
1242
- this.j8_1 = 3;
1456
+ if (!!this.n1j_1.e1h()) {
1457
+ this.k8_1 = 3;
1243
1458
  continue $sm;
1244
1459
  }
1245
1460
 
1246
- this.y1i_1.bq(this.x1i_1.k1g());
1247
- this.j8_1 = 2;
1248
- suspendResult = this.x1i_1.t1g(VOID, this);
1461
+ this.o1j_1.pq(this.n1j_1.a1h());
1462
+ this.k8_1 = 2;
1463
+ suspendResult = this.n1j_1.g1h(VOID, this);
1249
1464
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1250
1465
  return suspendResult;
1251
1466
  }
1252
1467
 
1253
1468
  continue $sm;
1254
1469
  case 2:
1255
- this.j8_1 = 1;
1470
+ this.k8_1 = 1;
1256
1471
  continue $sm;
1257
1472
  case 3:
1258
- var tmp0_safe_receiver = this.x1i_1.p1g();
1473
+ var tmp0_safe_receiver = this.n1j_1.d1h();
1259
1474
  if (tmp0_safe_receiver == null)
1260
1475
  null;
1261
1476
  else {
1262
1477
  throw tmp0_safe_receiver;
1263
1478
  }
1264
1479
 
1265
- return this.y1i_1;
1480
+ return this.o1j_1;
1266
1481
  case 4:
1267
- throw this.m8_1;
1482
+ throw this.n8_1;
1268
1483
  }
1269
1484
  } catch ($p) {
1270
1485
  var e = $p;
1271
- if (this.k8_1 === 4) {
1486
+ if (this.l8_1 === 4) {
1272
1487
  throw e;
1273
1488
  } else {
1274
- this.j8_1 = this.k8_1;
1275
- this.m8_1 = e;
1489
+ this.k8_1 = this.l8_1;
1490
+ this.n8_1 = e;
1276
1491
  }
1277
1492
  }
1278
1493
  while (true);
1279
1494
  };
1280
1495
  function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
1281
1496
  CoroutineImpl.call(this, resultContinuation);
1282
- this.h1j_1 = _this__u8e3s4;
1283
- this.i1j_1 = buffer;
1284
- this.j1j_1 = offset;
1285
- this.k1j_1 = length;
1497
+ this.x1j_1 = _this__u8e3s4;
1498
+ this.y1j_1 = buffer;
1499
+ this.z1j_1 = offset;
1500
+ this.a1k_1 = length;
1286
1501
  }
1287
- protoOf($readAvailableCOROUTINE$).r8 = function () {
1288
- var suspendResult = this.l8_1;
1502
+ protoOf($readAvailableCOROUTINE$).s8 = function () {
1503
+ var suspendResult = this.m8_1;
1289
1504
  $sm: do
1290
1505
  try {
1291
- var tmp = this.j8_1;
1506
+ var tmp = this.k8_1;
1292
1507
  switch (tmp) {
1293
1508
  case 0:
1294
- this.k8_1 = 3;
1295
- if (this.h1j_1.r1g())
1509
+ this.l8_1 = 3;
1510
+ if (this.x1j_1.e1h())
1296
1511
  return -1;
1297
- if (this.h1j_1.k1g().jo()) {
1298
- this.j8_1 = 1;
1299
- suspendResult = this.h1j_1.t1g(VOID, this);
1512
+ if (this.x1j_1.a1h().xo()) {
1513
+ this.k8_1 = 1;
1514
+ suspendResult = this.x1j_1.g1h(VOID, this);
1300
1515
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1301
1516
  return suspendResult;
1302
1517
  }
1303
1518
  continue $sm;
1304
1519
  } else {
1305
- this.j8_1 = 2;
1520
+ this.k8_1 = 2;
1306
1521
  continue $sm;
1307
1522
  }
1308
1523
 
1309
1524
  case 1:
1310
- this.j8_1 = 2;
1525
+ this.k8_1 = 2;
1311
1526
  continue $sm;
1312
1527
  case 2:
1313
- if (this.h1j_1.r1g())
1528
+ if (this.x1j_1.e1h())
1314
1529
  return -1;
1315
- return readAvailable_0(this.h1j_1.k1g(), this.i1j_1, this.j1j_1, this.k1j_1);
1530
+ return readAvailable_0(this.x1j_1.a1h(), this.y1j_1, this.z1j_1, this.a1k_1);
1316
1531
  case 3:
1317
- throw this.m8_1;
1532
+ throw this.n8_1;
1318
1533
  }
1319
1534
  } catch ($p) {
1320
1535
  var e = $p;
1321
- if (this.k8_1 === 3) {
1536
+ if (this.l8_1 === 3) {
1322
1537
  throw e;
1323
1538
  } else {
1324
- this.j8_1 = this.k8_1;
1325
- this.m8_1 = e;
1539
+ this.k8_1 = this.l8_1;
1540
+ this.n8_1 = e;
1326
1541
  }
1327
1542
  }
1328
1543
  while (true);
1329
1544
  };
1330
1545
  function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
1331
1546
  CoroutineImpl.call(this, resultContinuation);
1332
- this.t1j_1 = _this__u8e3s4;
1547
+ this.j1k_1 = _this__u8e3s4;
1333
1548
  }
1334
- protoOf($readRemainingCOROUTINE$).r8 = function () {
1335
- var suspendResult = this.l8_1;
1549
+ protoOf($readRemainingCOROUTINE$).s8 = function () {
1550
+ var suspendResult = this.m8_1;
1336
1551
  $sm: do
1337
1552
  try {
1338
- var tmp = this.j8_1;
1553
+ var tmp = this.k8_1;
1339
1554
  switch (tmp) {
1340
1555
  case 0:
1341
- this.k8_1 = 4;
1342
- this.u1j_1 = BytePacketBuilder();
1343
- this.j8_1 = 1;
1556
+ this.l8_1 = 4;
1557
+ this.k1k_1 = BytePacketBuilder();
1558
+ this.k8_1 = 1;
1344
1559
  continue $sm;
1345
1560
  case 1:
1346
- if (!!this.t1j_1.r1g()) {
1347
- this.j8_1 = 3;
1561
+ if (!!this.j1k_1.e1h()) {
1562
+ this.k8_1 = 3;
1348
1563
  continue $sm;
1349
1564
  }
1350
1565
 
1351
- this.u1j_1.bq(this.t1j_1.k1g());
1352
- this.j8_1 = 2;
1353
- suspendResult = this.t1j_1.t1g(VOID, this);
1566
+ this.k1k_1.pq(this.j1k_1.a1h());
1567
+ this.k8_1 = 2;
1568
+ suspendResult = this.j1k_1.g1h(VOID, this);
1354
1569
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1355
1570
  return suspendResult;
1356
1571
  }
1357
1572
 
1358
1573
  continue $sm;
1359
1574
  case 2:
1360
- this.j8_1 = 1;
1575
+ this.k8_1 = 1;
1361
1576
  continue $sm;
1362
1577
  case 3:
1363
- rethrowCloseCauseIfNeeded_0(this.t1j_1);
1364
- return this.u1j_1.io();
1578
+ rethrowCloseCauseIfNeeded(this.j1k_1);
1579
+ return this.k1k_1.wo();
1365
1580
  case 4:
1366
- throw this.m8_1;
1581
+ throw this.n8_1;
1367
1582
  }
1368
1583
  } catch ($p) {
1369
1584
  var e = $p;
1370
- if (this.k8_1 === 4) {
1585
+ if (this.l8_1 === 4) {
1371
1586
  throw e;
1372
1587
  } else {
1373
- this.j8_1 = this.k8_1;
1374
- this.m8_1 = e;
1588
+ this.k8_1 = this.l8_1;
1589
+ this.n8_1 = e;
1375
1590
  }
1376
1591
  }
1377
1592
  while (true);
1378
1593
  };
1379
1594
  function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
1380
1595
  CoroutineImpl.call(this, resultContinuation);
1381
- this.d1k_1 = _this__u8e3s4;
1596
+ this.t1k_1 = _this__u8e3s4;
1382
1597
  }
1383
- protoOf($toByteArrayCOROUTINE$).r8 = function () {
1384
- var suspendResult = this.l8_1;
1598
+ protoOf($toByteArrayCOROUTINE$).s8 = function () {
1599
+ var suspendResult = this.m8_1;
1385
1600
  $sm: do
1386
1601
  try {
1387
- var tmp = this.j8_1;
1602
+ var tmp = this.k8_1;
1388
1603
  switch (tmp) {
1389
1604
  case 0:
1390
- this.k8_1 = 2;
1391
- this.j8_1 = 1;
1392
- suspendResult = readBuffer(this.d1k_1, this);
1605
+ this.l8_1 = 2;
1606
+ this.k8_1 = 1;
1607
+ suspendResult = readBuffer(this.t1k_1, this);
1393
1608
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1394
1609
  return suspendResult;
1395
1610
  }
@@ -1399,306 +1614,306 @@ protoOf($toByteArrayCOROUTINE$).r8 = function () {
1399
1614
  var ARGUMENT = suspendResult;
1400
1615
  return readBytes(ARGUMENT);
1401
1616
  case 2:
1402
- throw this.m8_1;
1617
+ throw this.n8_1;
1403
1618
  }
1404
1619
  } catch ($p) {
1405
1620
  var e = $p;
1406
- if (this.k8_1 === 2) {
1621
+ if (this.l8_1 === 2) {
1407
1622
  throw e;
1408
1623
  } else {
1409
- this.j8_1 = this.k8_1;
1410
- this.m8_1 = e;
1624
+ this.k8_1 = this.l8_1;
1625
+ this.n8_1 = e;
1411
1626
  }
1412
1627
  }
1413
1628
  while (true);
1414
1629
  };
1415
1630
  function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
1416
1631
  CoroutineImpl.call(this, resultContinuation);
1417
- this.m1k_1 = _this__u8e3s4;
1418
- this.n1k_1 = channel;
1419
- this.o1k_1 = limit;
1632
+ this.c1l_1 = _this__u8e3s4;
1633
+ this.d1l_1 = channel;
1634
+ this.e1l_1 = limit;
1420
1635
  }
1421
- protoOf($copyToCOROUTINE$).r8 = function () {
1422
- var suspendResult = this.l8_1;
1636
+ protoOf($copyToCOROUTINE$).s8 = function () {
1637
+ var suspendResult = this.m8_1;
1423
1638
  $sm: do
1424
1639
  try {
1425
- var tmp = this.j8_1;
1640
+ var tmp = this.k8_1;
1426
1641
  switch (tmp) {
1427
1642
  case 0:
1428
- this.k8_1 = 12;
1429
- this.p1k_1 = this.o1k_1;
1430
- this.j8_1 = 1;
1643
+ this.l8_1 = 12;
1644
+ this.f1l_1 = this.e1l_1;
1645
+ this.k8_1 = 1;
1431
1646
  continue $sm;
1432
1647
  case 1:
1433
- this.k8_1 = 8;
1434
- this.k8_1 = 7;
1435
- this.j8_1 = 2;
1648
+ this.l8_1 = 8;
1649
+ this.l8_1 = 7;
1650
+ this.k8_1 = 2;
1436
1651
  continue $sm;
1437
1652
  case 2:
1438
- if (!(!this.m1k_1.r1g() && this.p1k_1 > 0n)) {
1439
- this.j8_1 = 6;
1653
+ if (!(!this.c1l_1.e1h() && this.f1l_1 > 0n)) {
1654
+ this.k8_1 = 6;
1440
1655
  continue $sm;
1441
1656
  }
1442
1657
 
1443
- if (this.m1k_1.k1g().jo()) {
1444
- this.j8_1 = 3;
1445
- suspendResult = this.m1k_1.t1g(VOID, this);
1658
+ if (this.c1l_1.a1h().xo()) {
1659
+ this.k8_1 = 3;
1660
+ suspendResult = this.c1l_1.g1h(VOID, this);
1446
1661
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1447
1662
  return suspendResult;
1448
1663
  }
1449
1664
  continue $sm;
1450
1665
  } else {
1451
- this.j8_1 = 4;
1666
+ this.k8_1 = 4;
1452
1667
  continue $sm;
1453
1668
  }
1454
1669
 
1455
1670
  case 3:
1456
- this.j8_1 = 4;
1671
+ this.k8_1 = 4;
1457
1672
  continue $sm;
1458
1673
  case 4:
1459
- var tmp0 = this.p1k_1;
1460
- var b = get_remaining(this.m1k_1.k1g());
1674
+ var tmp0 = this.f1l_1;
1675
+ var b = get_remaining(this.c1l_1.a1h());
1461
1676
  var count = tmp0 <= b ? tmp0 : b;
1462
- this.m1k_1.k1g().lp(this.n1k_1.n1g(), count);
1463
- this.p1k_1 = subtract(this.p1k_1, count);
1464
- this.j8_1 = 5;
1465
- suspendResult = this.n1k_1.i1g(this);
1677
+ this.c1l_1.a1h().zp(this.d1l_1.b1h(), count);
1678
+ this.f1l_1 = subtract(this.f1l_1, count);
1679
+ this.k8_1 = 5;
1680
+ suspendResult = this.d1l_1.y1g(this);
1466
1681
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1467
1682
  return suspendResult;
1468
1683
  }
1469
1684
 
1470
1685
  continue $sm;
1471
1686
  case 5:
1472
- this.j8_1 = 2;
1687
+ this.k8_1 = 2;
1473
1688
  continue $sm;
1474
1689
  case 6:
1475
- this.k8_1 = 12;
1476
- this.j8_1 = 10;
1690
+ this.l8_1 = 12;
1691
+ this.k8_1 = 10;
1477
1692
  continue $sm;
1478
1693
  case 7:
1479
- this.k8_1 = 8;
1480
- var tmp_0 = this.m8_1;
1694
+ this.l8_1 = 8;
1695
+ var tmp_0 = this.n8_1;
1481
1696
  if (tmp_0 instanceof Error) {
1482
- var cause = this.m8_1;
1483
- this.m1k_1.v1g(cause);
1484
- close_0(this.n1k_1, cause);
1697
+ var cause = this.n8_1;
1698
+ this.c1l_1.i1h(cause);
1699
+ close_0(this.d1l_1, cause);
1485
1700
  throw cause;
1486
1701
  } else {
1487
- throw this.m8_1;
1702
+ throw this.n8_1;
1488
1703
  }
1489
1704
 
1490
1705
  case 8:
1491
- this.k8_1 = 12;
1492
- this.q1k_1 = this.m8_1;
1493
- this.j8_1 = 9;
1494
- suspendResult = this.n1k_1.i1g(this);
1706
+ this.l8_1 = 12;
1707
+ this.g1l_1 = this.n8_1;
1708
+ this.k8_1 = 9;
1709
+ suspendResult = this.d1l_1.y1g(this);
1495
1710
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1496
1711
  return suspendResult;
1497
1712
  }
1498
1713
 
1499
1714
  continue $sm;
1500
1715
  case 9:
1501
- throw this.q1k_1;
1716
+ throw this.g1l_1;
1502
1717
  case 10:
1503
- this.k8_1 = 12;
1504
- this.j8_1 = 11;
1505
- suspendResult = this.n1k_1.i1g(this);
1718
+ this.l8_1 = 12;
1719
+ this.k8_1 = 11;
1720
+ suspendResult = this.d1l_1.y1g(this);
1506
1721
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1507
1722
  return suspendResult;
1508
1723
  }
1509
1724
 
1510
1725
  continue $sm;
1511
1726
  case 11:
1512
- return subtract(this.o1k_1, this.p1k_1);
1727
+ return subtract(this.e1l_1, this.f1l_1);
1513
1728
  case 12:
1514
- throw this.m8_1;
1729
+ throw this.n8_1;
1515
1730
  }
1516
1731
  } catch ($p) {
1517
1732
  var e = $p;
1518
- if (this.k8_1 === 12) {
1733
+ if (this.l8_1 === 12) {
1519
1734
  throw e;
1520
1735
  } else {
1521
- this.j8_1 = this.k8_1;
1522
- this.m8_1 = e;
1736
+ this.k8_1 = this.l8_1;
1737
+ this.n8_1 = e;
1523
1738
  }
1524
1739
  }
1525
1740
  while (true);
1526
1741
  };
1527
1742
  function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
1528
1743
  CoroutineImpl.call(this, resultContinuation);
1529
- this.z1k_1 = _this__u8e3s4;
1530
- this.a1l_1 = max;
1744
+ this.p1l_1 = _this__u8e3s4;
1745
+ this.q1l_1 = max;
1531
1746
  }
1532
- protoOf($discardCOROUTINE$).r8 = function () {
1533
- var suspendResult = this.l8_1;
1747
+ protoOf($discardCOROUTINE$).s8 = function () {
1748
+ var suspendResult = this.m8_1;
1534
1749
  $sm: do
1535
1750
  try {
1536
- var tmp = this.j8_1;
1751
+ var tmp = this.k8_1;
1537
1752
  switch (tmp) {
1538
1753
  case 0:
1539
- this.k8_1 = 5;
1540
- this.b1l_1 = this.a1l_1;
1541
- this.j8_1 = 1;
1754
+ this.l8_1 = 5;
1755
+ this.r1l_1 = this.q1l_1;
1756
+ this.k8_1 = 1;
1542
1757
  continue $sm;
1543
1758
  case 1:
1544
- if (!(this.b1l_1 > 0n && !this.z1k_1.r1g())) {
1545
- this.j8_1 = 4;
1759
+ if (!(this.r1l_1 > 0n && !this.p1l_1.e1h())) {
1760
+ this.k8_1 = 4;
1546
1761
  continue $sm;
1547
1762
  }
1548
1763
 
1549
- if (get_availableForRead(this.z1k_1) === 0) {
1550
- this.j8_1 = 2;
1551
- suspendResult = this.z1k_1.t1g(VOID, this);
1764
+ if (get_availableForRead(this.p1l_1) === 0) {
1765
+ this.k8_1 = 2;
1766
+ suspendResult = this.p1l_1.g1h(VOID, this);
1552
1767
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1553
1768
  return suspendResult;
1554
1769
  }
1555
1770
  continue $sm;
1556
1771
  } else {
1557
- this.j8_1 = 3;
1772
+ this.k8_1 = 3;
1558
1773
  continue $sm;
1559
1774
  }
1560
1775
 
1561
1776
  case 2:
1562
- this.j8_1 = 3;
1777
+ this.k8_1 = 3;
1563
1778
  continue $sm;
1564
1779
  case 3:
1565
- var tmp0 = this.b1l_1;
1566
- var b = get_remaining(this.z1k_1.k1g());
1780
+ var tmp0 = this.r1l_1;
1781
+ var b = get_remaining(this.p1l_1.a1h());
1567
1782
  var count = tmp0 <= b ? tmp0 : b;
1568
- discard_0(this.z1k_1.k1g(), count);
1569
- this.b1l_1 = subtract(this.b1l_1, count);
1570
- this.j8_1 = 1;
1783
+ discard_0(this.p1l_1.a1h(), count);
1784
+ this.r1l_1 = subtract(this.r1l_1, count);
1785
+ this.k8_1 = 1;
1571
1786
  continue $sm;
1572
1787
  case 4:
1573
- return subtract(this.a1l_1, this.b1l_1);
1788
+ return subtract(this.q1l_1, this.r1l_1);
1574
1789
  case 5:
1575
- throw this.m8_1;
1790
+ throw this.n8_1;
1576
1791
  }
1577
1792
  } catch ($p) {
1578
1793
  var e = $p;
1579
- if (this.k8_1 === 5) {
1794
+ if (this.l8_1 === 5) {
1580
1795
  throw e;
1581
1796
  } else {
1582
- this.j8_1 = this.k8_1;
1583
- this.m8_1 = e;
1797
+ this.k8_1 = this.l8_1;
1798
+ this.n8_1 = e;
1584
1799
  }
1585
1800
  }
1586
1801
  while (true);
1587
1802
  };
1588
1803
  function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
1589
1804
  CoroutineImpl.call(this, resultContinuation);
1590
- this.k1l_1 = _this__u8e3s4;
1591
- this.l1l_1 = channel;
1805
+ this.a1m_1 = _this__u8e3s4;
1806
+ this.b1m_1 = channel;
1592
1807
  }
1593
- protoOf($copyToCOROUTINE$_0).r8 = function () {
1594
- var suspendResult = this.l8_1;
1808
+ protoOf($copyToCOROUTINE$_0).s8 = function () {
1809
+ var suspendResult = this.m8_1;
1595
1810
  $sm: do
1596
1811
  try {
1597
- var tmp = this.j8_1;
1812
+ var tmp = this.k8_1;
1598
1813
  switch (tmp) {
1599
1814
  case 0:
1600
- this.k8_1 = 11;
1601
- this.m1l_1 = 0n;
1602
- this.j8_1 = 1;
1815
+ this.l8_1 = 11;
1816
+ this.c1m_1 = 0n;
1817
+ this.k8_1 = 1;
1603
1818
  continue $sm;
1604
1819
  case 1:
1605
- this.k8_1 = 7;
1606
- this.k8_1 = 6;
1607
- this.j8_1 = 2;
1820
+ this.l8_1 = 7;
1821
+ this.l8_1 = 6;
1822
+ this.k8_1 = 2;
1608
1823
  continue $sm;
1609
1824
  case 2:
1610
- if (!!this.k1l_1.r1g()) {
1611
- this.j8_1 = 5;
1825
+ if (!!this.a1m_1.e1h()) {
1826
+ this.k8_1 = 5;
1612
1827
  continue $sm;
1613
1828
  }
1614
1829
 
1615
- this.m1l_1 = add(this.m1l_1, this.k1l_1.k1g().mp(this.l1l_1.n1g()));
1616
- this.j8_1 = 3;
1617
- suspendResult = this.l1l_1.i1g(this);
1830
+ this.c1m_1 = add(this.c1m_1, this.a1m_1.a1h().aq(this.b1m_1.b1h()));
1831
+ this.k8_1 = 3;
1832
+ suspendResult = this.b1m_1.y1g(this);
1618
1833
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1619
1834
  return suspendResult;
1620
1835
  }
1621
1836
 
1622
1837
  continue $sm;
1623
1838
  case 3:
1624
- this.j8_1 = 4;
1625
- suspendResult = this.k1l_1.t1g(VOID, this);
1839
+ this.k8_1 = 4;
1840
+ suspendResult = this.a1m_1.g1h(VOID, this);
1626
1841
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1627
1842
  return suspendResult;
1628
1843
  }
1629
1844
 
1630
1845
  continue $sm;
1631
1846
  case 4:
1632
- this.j8_1 = 2;
1847
+ this.k8_1 = 2;
1633
1848
  continue $sm;
1634
1849
  case 5:
1635
- this.k8_1 = 11;
1636
- this.j8_1 = 9;
1850
+ this.l8_1 = 11;
1851
+ this.k8_1 = 9;
1637
1852
  continue $sm;
1638
1853
  case 6:
1639
- this.k8_1 = 7;
1640
- var tmp_0 = this.m8_1;
1854
+ this.l8_1 = 7;
1855
+ var tmp_0 = this.n8_1;
1641
1856
  if (tmp_0 instanceof Error) {
1642
- var cause = this.m8_1;
1643
- this.k1l_1.v1g(cause);
1644
- close_0(this.l1l_1, cause);
1857
+ var cause = this.n8_1;
1858
+ this.a1m_1.i1h(cause);
1859
+ close_0(this.b1m_1, cause);
1645
1860
  throw cause;
1646
1861
  } else {
1647
- throw this.m8_1;
1862
+ throw this.n8_1;
1648
1863
  }
1649
1864
 
1650
1865
  case 7:
1651
- this.k8_1 = 11;
1652
- this.n1l_1 = this.m8_1;
1653
- this.j8_1 = 8;
1654
- suspendResult = this.l1l_1.i1g(this);
1866
+ this.l8_1 = 11;
1867
+ this.d1m_1 = this.n8_1;
1868
+ this.k8_1 = 8;
1869
+ suspendResult = this.b1m_1.y1g(this);
1655
1870
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1656
1871
  return suspendResult;
1657
1872
  }
1658
1873
 
1659
1874
  continue $sm;
1660
1875
  case 8:
1661
- throw this.n1l_1;
1876
+ throw this.d1m_1;
1662
1877
  case 9:
1663
- this.k8_1 = 11;
1664
- this.j8_1 = 10;
1665
- suspendResult = this.l1l_1.i1g(this);
1878
+ this.l8_1 = 11;
1879
+ this.k8_1 = 10;
1880
+ suspendResult = this.b1m_1.y1g(this);
1666
1881
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1667
1882
  return suspendResult;
1668
1883
  }
1669
1884
 
1670
1885
  continue $sm;
1671
1886
  case 10:
1672
- return this.m1l_1;
1887
+ return this.c1m_1;
1673
1888
  case 11:
1674
- throw this.m8_1;
1889
+ throw this.n8_1;
1675
1890
  }
1676
1891
  } catch ($p) {
1677
1892
  var e = $p;
1678
- if (this.k8_1 === 11) {
1893
+ if (this.l8_1 === 11) {
1679
1894
  throw e;
1680
1895
  } else {
1681
- this.j8_1 = this.k8_1;
1682
- this.m8_1 = e;
1896
+ this.k8_1 = this.l8_1;
1897
+ this.n8_1 = e;
1683
1898
  }
1684
1899
  }
1685
1900
  while (true);
1686
1901
  };
1687
1902
  function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
1688
1903
  CoroutineImpl.call(this, resultContinuation);
1689
- this.w1l_1 = _this__u8e3s4;
1690
- this.x1l_1 = byteString;
1904
+ this.m1m_1 = _this__u8e3s4;
1905
+ this.n1m_1 = byteString;
1691
1906
  }
1692
- protoOf($skipIfFoundCOROUTINE$).r8 = function () {
1693
- var suspendResult = this.l8_1;
1907
+ protoOf($skipIfFoundCOROUTINE$).s8 = function () {
1908
+ var suspendResult = this.m8_1;
1694
1909
  $sm: do
1695
1910
  try {
1696
- var tmp = this.j8_1;
1911
+ var tmp = this.k8_1;
1697
1912
  switch (tmp) {
1698
1913
  case 0:
1699
- this.k8_1 = 4;
1700
- this.j8_1 = 1;
1701
- suspendResult = peek(this.w1l_1, this.x1l_1.g1(), this);
1914
+ this.l8_1 = 4;
1915
+ this.k8_1 = 1;
1916
+ suspendResult = peek(this.m1m_1, this.n1m_1.g1(), this);
1702
1917
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1703
1918
  return suspendResult;
1704
1919
  }
@@ -1706,15 +1921,15 @@ protoOf($skipIfFoundCOROUTINE$).r8 = function () {
1706
1921
  continue $sm;
1707
1922
  case 1:
1708
1923
  var ARGUMENT = suspendResult;
1709
- if (equals(ARGUMENT, this.x1l_1)) {
1710
- this.j8_1 = 3;
1711
- suspendResult = discard(this.w1l_1, fromInt(this.x1l_1.g1()), this);
1924
+ if (equals(ARGUMENT, this.n1m_1)) {
1925
+ this.k8_1 = 3;
1926
+ suspendResult = discard(this.m1m_1, fromInt(this.n1m_1.g1()), this);
1712
1927
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1713
1928
  return suspendResult;
1714
1929
  }
1715
1930
  continue $sm;
1716
1931
  } else {
1717
- this.j8_1 = 2;
1932
+ this.k8_1 = 2;
1718
1933
  continue $sm;
1719
1934
  }
1720
1935
 
@@ -1723,111 +1938,111 @@ protoOf($skipIfFoundCOROUTINE$).r8 = function () {
1723
1938
  case 3:
1724
1939
  return true;
1725
1940
  case 4:
1726
- throw this.m8_1;
1941
+ throw this.n8_1;
1727
1942
  }
1728
1943
  } catch ($p) {
1729
1944
  var e = $p;
1730
- if (this.k8_1 === 4) {
1945
+ if (this.l8_1 === 4) {
1731
1946
  throw e;
1732
1947
  } else {
1733
- this.j8_1 = this.k8_1;
1734
- this.m8_1 = e;
1948
+ this.k8_1 = this.l8_1;
1949
+ this.n8_1 = e;
1735
1950
  }
1736
1951
  }
1737
1952
  while (true);
1738
1953
  };
1739
1954
  function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
1740
1955
  CoroutineImpl.call(this, resultContinuation);
1741
- this.g1m_1 = _this__u8e3s4;
1742
- this.h1m_1 = packet;
1956
+ this.w1m_1 = _this__u8e3s4;
1957
+ this.x1m_1 = packet;
1743
1958
  }
1744
- protoOf($readPacketCOROUTINE$).r8 = function () {
1745
- var suspendResult = this.l8_1;
1959
+ protoOf($readPacketCOROUTINE$).s8 = function () {
1960
+ var suspendResult = this.m8_1;
1746
1961
  $sm: do
1747
1962
  try {
1748
- var tmp = this.j8_1;
1963
+ var tmp = this.k8_1;
1749
1964
  switch (tmp) {
1750
1965
  case 0:
1751
- this.k8_1 = 6;
1752
- this.i1m_1 = new Buffer();
1753
- this.j8_1 = 1;
1966
+ this.l8_1 = 6;
1967
+ this.y1m_1 = new Buffer();
1968
+ this.k8_1 = 1;
1754
1969
  continue $sm;
1755
1970
  case 1:
1756
- if (!(this.i1m_1.g1() < fromInt(this.h1m_1))) {
1757
- this.j8_1 = 5;
1971
+ if (!(this.y1m_1.g1() < fromInt(this.x1m_1))) {
1972
+ this.k8_1 = 5;
1758
1973
  continue $sm;
1759
1974
  }
1760
1975
 
1761
- if (this.g1m_1.k1g().jo()) {
1762
- this.j8_1 = 2;
1763
- suspendResult = this.g1m_1.t1g(VOID, this);
1976
+ if (this.w1m_1.a1h().xo()) {
1977
+ this.k8_1 = 2;
1978
+ suspendResult = this.w1m_1.g1h(VOID, this);
1764
1979
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1765
1980
  return suspendResult;
1766
1981
  }
1767
1982
  continue $sm;
1768
1983
  } else {
1769
- this.j8_1 = 3;
1984
+ this.k8_1 = 3;
1770
1985
  continue $sm;
1771
1986
  }
1772
1987
 
1773
1988
  case 2:
1774
- this.j8_1 = 3;
1989
+ this.k8_1 = 3;
1775
1990
  continue $sm;
1776
1991
  case 3:
1777
- if (this.g1m_1.r1g()) {
1778
- this.j8_1 = 5;
1992
+ if (this.w1m_1.e1h()) {
1993
+ this.k8_1 = 5;
1779
1994
  continue $sm;
1780
1995
  } else {
1781
- this.j8_1 = 4;
1996
+ this.k8_1 = 4;
1782
1997
  continue $sm;
1783
1998
  }
1784
1999
 
1785
2000
  case 4:
1786
- if (get_remaining(this.g1m_1.k1g()) > subtract(numberToLong(this.h1m_1), this.i1m_1.g1())) {
1787
- this.g1m_1.k1g().lp(this.i1m_1, subtract(numberToLong(this.h1m_1), this.i1m_1.g1()));
2001
+ if (get_remaining(this.w1m_1.a1h()) > subtract(numberToLong(this.x1m_1), this.y1m_1.g1())) {
2002
+ this.w1m_1.a1h().zp(this.y1m_1, subtract(numberToLong(this.x1m_1), this.y1m_1.g1()));
1788
2003
  } else {
1789
- this.g1m_1.k1g().mp(this.i1m_1);
2004
+ this.w1m_1.a1h().aq(this.y1m_1);
1790
2005
  }
1791
2006
 
1792
- this.j8_1 = 1;
2007
+ this.k8_1 = 1;
1793
2008
  continue $sm;
1794
2009
  case 5:
1795
- if (this.i1m_1.g1() < fromInt(this.h1m_1)) {
1796
- throw EOFException_init_$Create$('Not enough data available, required ' + this.h1m_1 + ' bytes but only ' + this.i1m_1.g1().toString() + ' available');
2010
+ if (this.y1m_1.g1() < fromInt(this.x1m_1)) {
2011
+ throw EOFException_init_$Create$('Not enough data available, required ' + this.x1m_1 + ' bytes but only ' + this.y1m_1.g1().toString() + ' available');
1797
2012
  }
1798
2013
 
1799
- return this.i1m_1;
2014
+ return this.y1m_1;
1800
2015
  case 6:
1801
- throw this.m8_1;
2016
+ throw this.n8_1;
1802
2017
  }
1803
2018
  } catch ($p) {
1804
2019
  var e = $p;
1805
- if (this.k8_1 === 6) {
2020
+ if (this.l8_1 === 6) {
1806
2021
  throw e;
1807
2022
  } else {
1808
- this.j8_1 = this.k8_1;
1809
- this.m8_1 = e;
2023
+ this.k8_1 = this.l8_1;
2024
+ this.n8_1 = e;
1810
2025
  }
1811
2026
  }
1812
2027
  while (true);
1813
2028
  };
1814
2029
  function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
1815
2030
  CoroutineImpl.call(this, resultContinuation);
1816
- this.r1m_1 = _this__u8e3s4;
1817
- this.s1m_1 = count;
2031
+ this.h1n_1 = _this__u8e3s4;
2032
+ this.i1n_1 = count;
1818
2033
  }
1819
- protoOf($peekCOROUTINE$).r8 = function () {
1820
- var suspendResult = this.l8_1;
2034
+ protoOf($peekCOROUTINE$).s8 = function () {
2035
+ var suspendResult = this.m8_1;
1821
2036
  $sm: do
1822
2037
  try {
1823
- var tmp = this.j8_1;
2038
+ var tmp = this.k8_1;
1824
2039
  switch (tmp) {
1825
2040
  case 0:
1826
- this.k8_1 = 3;
1827
- if (this.r1m_1.r1g())
2041
+ this.l8_1 = 3;
2042
+ if (this.h1n_1.e1h())
1828
2043
  return null;
1829
- this.j8_1 = 1;
1830
- suspendResult = this.r1m_1.s1g(this.s1m_1, this);
2044
+ this.k8_1 = 1;
2045
+ suspendResult = this.h1n_1.f1h(this.i1n_1, this);
1831
2046
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1832
2047
  return suspendResult;
1833
2048
  }
@@ -1837,272 +2052,348 @@ protoOf($peekCOROUTINE$).r8 = function () {
1837
2052
  if (!suspendResult) {
1838
2053
  return null;
1839
2054
  } else {
1840
- this.j8_1 = 2;
2055
+ this.k8_1 = 2;
1841
2056
  continue $sm;
1842
2057
  }
1843
2058
 
1844
2059
  case 2:
1845
- return readByteString(this.r1m_1.k1g().np(), this.s1m_1);
2060
+ return readByteString(this.h1n_1.a1h().bq(), this.i1n_1);
1846
2061
  case 3:
1847
- throw this.m8_1;
2062
+ throw this.n8_1;
1848
2063
  }
1849
2064
  } catch ($p) {
1850
2065
  var e = $p;
1851
- if (this.k8_1 === 3) {
2066
+ if (this.l8_1 === 3) {
1852
2067
  throw e;
1853
2068
  } else {
1854
- this.j8_1 = this.k8_1;
1855
- this.m8_1 = e;
2069
+ this.k8_1 = this.l8_1;
2070
+ this.n8_1 = e;
1856
2071
  }
1857
2072
  }
1858
2073
  while (true);
1859
2074
  };
1860
2075
  function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
1861
2076
  CoroutineImpl.call(this, resultContinuation);
1862
- this.b1n_1 = _this__u8e3s4;
1863
- this.c1n_1 = out;
1864
- this.d1n_1 = limit;
1865
- this.e1n_1 = lenientLineEnding;
1866
- this.f1n_1 = throwOnIncompleteLine;
1867
- }
1868
- protoOf($internalReadLineToCOROUTINE$).r8 = function () {
1869
- var suspendResult = this.l8_1;
2077
+ this.r1n_1 = _this__u8e3s4;
2078
+ this.s1n_1 = out;
2079
+ this.t1n_1 = limit;
2080
+ this.u1n_1 = lenientLineEnding;
2081
+ this.v1n_1 = throwOnIncompleteLine;
2082
+ }
2083
+ protoOf($internalReadLineToCOROUTINE$).s8 = function () {
2084
+ var suspendResult = this.m8_1;
1870
2085
  $sm: do
1871
2086
  try {
1872
- var tmp = this.j8_1;
2087
+ var tmp = this.k8_1;
1873
2088
  switch (tmp) {
1874
2089
  case 0:
1875
- this.k8_1 = 18;
1876
- this.h1n_1 = this.b1n_1.k1g();
1877
- if (this.h1n_1.jo()) {
1878
- this.j8_1 = 1;
1879
- suspendResult = this.b1n_1.t1g(VOID, this);
2090
+ this.l8_1 = 27;
2091
+ this.z1n_1 = this.r1n_1.a1h();
2092
+ if (this.z1n_1.xo()) {
2093
+ this.k8_1 = 1;
2094
+ suspendResult = this.r1n_1.g1h(VOID, this);
1880
2095
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1881
2096
  return suspendResult;
1882
2097
  }
1883
2098
  continue $sm;
1884
2099
  } else {
1885
- this.j8_1 = 2;
2100
+ this.k8_1 = 2;
1886
2101
  continue $sm;
1887
2102
  }
1888
2103
 
1889
2104
  case 1:
1890
- this.j8_1 = 2;
2105
+ this.k8_1 = 2;
1891
2106
  continue $sm;
1892
2107
  case 2:
1893
- if (this.b1n_1.r1g())
2108
+ if (this.r1n_1.e1h())
1894
2109
  return -1n;
1895
- this.g1n_1 = {_v: 0n};
1896
- this.j8_1 = 3;
2110
+ this.y1n_1 = {_v: 0n};
2111
+ this.w1n_1 = {_v: null};
2112
+ this.k8_1 = 3;
1897
2113
  continue $sm;
1898
2114
  case 3:
1899
- if (!(this.g1n_1._v < this.d1n_1 && !this.b1n_1.r1g())) {
1900
- this.j8_1 = 10;
2115
+ this.k8_1 = 4;
2116
+ continue $sm;
2117
+ case 4:
2118
+ this.l8_1 = 24;
2119
+ this.k8_1 = 5;
2120
+ continue $sm;
2121
+ case 5:
2122
+ if (!(this.y1n_1._v < this.t1n_1 && !this.r1n_1.e1h())) {
2123
+ this.k8_1 = 15;
1901
2124
  continue $sm;
1902
2125
  }
1903
2126
 
1904
- var limitLeft = subtract(this.d1n_1, this.g1n_1._v);
1905
- var lfIndex = indexOf(this.h1n_1, 10, VOID, limitLeft);
1906
- var crIndex = internalReadLineTo$scanForSoleCr(this.h1n_1, this.e1n_1, lfIndex, limitLeft);
2127
+ this.c1o_1 = subtract(this.t1n_1, this.y1n_1._v);
2128
+ this.d1o_1 = indexOf(this.z1n_1, 10, VOID, this.c1o_1);
2129
+ var crIndex = internalReadLineTo$scanForSoleCr(this.z1n_1, this.u1n_1, this.d1o_1, this.c1o_1);
1907
2130
  if (crIndex >= 0n) {
1908
- internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, crIndex);
1909
- discard_0(this.h1n_1, 1n);
1910
- return this.g1n_1._v;
2131
+ internalReadLineTo$appendOrBuffer(this.w1n_1, this.s1n_1, this.z1n_1, this.y1n_1, crIndex);
2132
+ discard_0(this.z1n_1, 1n);
2133
+ this.x1n_1 = this.y1n_1._v;
2134
+ this.l8_1 = 27;
2135
+ this.k8_1 = 25;
2136
+ continue $sm;
2137
+ } else {
2138
+ this.k8_1 = 6;
2139
+ continue $sm;
1911
2140
  }
1912
2141
 
1913
- if (lfIndex === 0n) {
1914
- discard_0(this.h1n_1, 1n);
1915
- return this.g1n_1._v;
2142
+ case 6:
2143
+ if (this.d1o_1 === 0n) {
2144
+ discard_0(this.z1n_1, 1n);
2145
+ this.x1n_1 = this.y1n_1._v;
2146
+ this.l8_1 = 27;
2147
+ this.k8_1 = 25;
2148
+ continue $sm;
2149
+ } else {
2150
+ this.k8_1 = 7;
2151
+ continue $sm;
1916
2152
  }
1917
2153
 
1918
- if (lfIndex > 0n) {
2154
+ case 7:
2155
+ if (this.d1o_1 > 0n) {
1919
2156
  var tmp_0;
1920
- var tmp_1 = this.h1n_1.io();
1921
- if (tmp_1.ep(subtract(lfIndex, fromInt(1))) === 13) {
2157
+ var tmp_1 = this.z1n_1.wo();
2158
+ var this_0 = this.d1o_1;
2159
+ if (tmp_1.sp(subtract(this_0, fromInt(1))) === 13) {
1922
2160
  tmp_0 = 1n;
1923
2161
  } else {
1924
2162
  tmp_0 = 0n;
1925
2163
  }
1926
2164
  var isCrlf = tmp_0;
1927
- internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, subtract(lfIndex, isCrlf));
1928
- discard_0(this.h1n_1, add(numberToLong(1), isCrlf));
1929
- return this.g1n_1._v;
1930
- }
1931
-
1932
- var b = get_remaining(this.h1n_1);
1933
- var count = limitLeft <= b ? limitLeft : b;
1934
- var tmp_2 = this.h1n_1.io();
1935
- if (tmp_2.ep(subtract(count, fromInt(1))) === 13) {
1936
- internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, subtract(count, fromInt(1)));
1937
- this.j8_1 = 4;
1938
- suspendResult = internalReadLineTo$discardCrlfOrCr(this.h1n_1, this.b1n_1, this.e1n_1, this);
2165
+ internalReadLineTo$appendOrBuffer(this.w1n_1, this.s1n_1, this.z1n_1, this.y1n_1, subtract(this.d1o_1, isCrlf));
2166
+ discard_0(this.z1n_1, add(numberToLong(1), isCrlf));
2167
+ this.x1n_1 = this.y1n_1._v;
2168
+ this.l8_1 = 27;
2169
+ this.k8_1 = 25;
2170
+ continue $sm;
2171
+ } else {
2172
+ this.k8_1 = 8;
2173
+ continue $sm;
2174
+ }
2175
+
2176
+ case 8:
2177
+ var tmp0 = this.c1o_1;
2178
+ var b = get_remaining(this.z1n_1);
2179
+ var count = tmp0 <= b ? tmp0 : b;
2180
+ var tmp_2 = this.z1n_1.wo();
2181
+ if (tmp_2.sp(subtract(count, fromInt(1))) === 13) {
2182
+ internalReadLineTo$appendOrBuffer(this.w1n_1, this.s1n_1, this.z1n_1, this.y1n_1, subtract(count, fromInt(1)));
2183
+ this.k8_1 = 9;
2184
+ suspendResult = internalReadLineTo$discardCrlfOrCr(this.z1n_1, this.r1n_1, this.u1n_1, this);
1939
2185
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1940
2186
  return suspendResult;
1941
2187
  }
1942
2188
  continue $sm;
1943
2189
  } else {
1944
- internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, count);
1945
- this.j8_1 = 6;
2190
+ internalReadLineTo$bufferBytes(this.w1n_1, this.z1n_1, this.y1n_1, count);
2191
+ this.k8_1 = 11;
1946
2192
  continue $sm;
1947
2193
  }
1948
2194
 
1949
- case 4:
2195
+ case 9:
1950
2196
  if (suspendResult) {
1951
- return this.g1n_1._v;
2197
+ this.x1n_1 = this.y1n_1._v;
2198
+ this.l8_1 = 27;
2199
+ this.k8_1 = 25;
2200
+ continue $sm;
1952
2201
  } else {
1953
- this.j8_1 = 5;
2202
+ internalReadLineTo$bufferBytes(this.w1n_1, this.z1n_1, this.y1n_1, 1n);
2203
+ this.k8_1 = 10;
1954
2204
  continue $sm;
1955
2205
  }
1956
2206
 
1957
- case 5:
1958
- internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, 1n);
1959
- this.j8_1 = 6;
2207
+ case 10:
2208
+ this.k8_1 = 11;
1960
2209
  continue $sm;
1961
- case 6:
1962
- if (this.g1n_1._v < this.d1n_1 && get_remaining(this.h1n_1) === 0n) {
1963
- this.j8_1 = 7;
1964
- suspendResult = this.b1n_1.t1g(VOID, this);
2210
+ case 11:
2211
+ if (this.y1n_1._v < this.t1n_1 && get_remaining(this.z1n_1) === 0n) {
2212
+ this.k8_1 = 12;
2213
+ suspendResult = this.r1n_1.g1h(VOID, this);
1965
2214
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1966
2215
  return suspendResult;
1967
2216
  }
1968
2217
  continue $sm;
1969
2218
  } else {
1970
- this.j1n_1 = false;
1971
- this.j8_1 = 8;
2219
+ this.b1o_1 = false;
2220
+ this.k8_1 = 13;
1972
2221
  continue $sm;
1973
2222
  }
1974
2223
 
1975
- case 7:
1976
- this.j1n_1 = !suspendResult;
1977
- this.j8_1 = 8;
2224
+ case 12:
2225
+ this.b1o_1 = !suspendResult;
2226
+ this.k8_1 = 13;
1978
2227
  continue $sm;
1979
- case 8:
1980
- if (this.j1n_1) {
1981
- this.j8_1 = 10;
2228
+ case 13:
2229
+ if (this.b1o_1) {
2230
+ this.k8_1 = 15;
1982
2231
  continue $sm;
1983
2232
  } else {
1984
- this.j8_1 = 9;
2233
+ this.k8_1 = 14;
1985
2234
  continue $sm;
1986
2235
  }
1987
2236
 
1988
- case 9:
1989
- this.j8_1 = 3;
2237
+ case 14:
2238
+ this.k8_1 = 5;
1990
2239
  continue $sm;
1991
- case 10:
1992
- if (this.g1n_1._v === 0n && this.b1n_1.r1g())
1993
- return -1n;
1994
- if (!(this.g1n_1._v <= this.d1n_1)) {
1995
- var message = 'Consumed bytes exceed the limit: ' + this.g1n_1._v.toString() + ' > ' + this.d1n_1.toString() + ". It's an implementation bug, please report it.";
2240
+ case 15:
2241
+ if (this.y1n_1._v === 0n && this.r1n_1.e1h()) {
2242
+ this.x1n_1 = -1n;
2243
+ this.l8_1 = 27;
2244
+ this.k8_1 = 25;
2245
+ continue $sm;
2246
+ } else {
2247
+ this.k8_1 = 16;
2248
+ continue $sm;
2249
+ }
2250
+
2251
+ case 16:
2252
+ if (!(this.y1n_1._v <= this.t1n_1)) {
2253
+ var message = 'Consumed bytes exceed the limit: ' + this.y1n_1._v.toString() + ' > ' + this.t1n_1.toString() + ". It's an implementation bug, please report it.";
1996
2254
  throw IllegalStateException_init_$Create$(toString_1(message));
1997
2255
  }
1998
2256
 
1999
- if (this.g1n_1._v === this.d1n_1) {
2000
- if (this.d1n_1 === 9223372036854775807n)
2257
+ if (this.y1n_1._v === this.t1n_1) {
2258
+ if (this.t1n_1 === 9223372036854775807n)
2001
2259
  throw new TooLongLineException('Max line length exceeded');
2002
- if (get_remaining(this.h1n_1) === 0n) {
2003
- this.j8_1 = 12;
2004
- suspendResult = this.b1n_1.t1g(VOID, this);
2260
+ if (get_remaining(this.z1n_1) === 0n) {
2261
+ this.k8_1 = 18;
2262
+ suspendResult = this.r1n_1.g1h(VOID, this);
2005
2263
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2006
2264
  return suspendResult;
2007
2265
  }
2008
2266
  continue $sm;
2009
2267
  } else {
2010
- this.i1n_1 = false;
2011
- this.j8_1 = 13;
2268
+ this.a1o_1 = false;
2269
+ this.k8_1 = 19;
2012
2270
  continue $sm;
2013
2271
  }
2014
2272
  } else {
2015
- this.j8_1 = 11;
2273
+ this.k8_1 = 17;
2016
2274
  continue $sm;
2017
2275
  }
2018
2276
 
2019
- case 11:
2020
- if (this.f1n_1) {
2021
- throwEndOfStreamException(this.g1n_1._v);
2277
+ case 17:
2278
+ if (this.v1n_1) {
2279
+ throwEndOfStreamException(this.y1n_1._v);
2022
2280
  }
2023
2281
 
2024
- return this.g1n_1._v;
2025
- case 12:
2026
- this.i1n_1 = !suspendResult;
2027
- this.j8_1 = 13;
2282
+ this.x1n_1 = this.y1n_1._v;
2283
+ this.l8_1 = 27;
2284
+ this.k8_1 = 25;
2285
+ var tmp_3 = this;
2028
2286
  continue $sm;
2029
- case 13:
2030
- if (this.i1n_1) {
2031
- throwEndOfStreamException(this.g1n_1._v);
2287
+ case 18:
2288
+ this.a1o_1 = !suspendResult;
2289
+ this.k8_1 = 19;
2290
+ continue $sm;
2291
+ case 19:
2292
+ if (this.a1o_1) {
2293
+ throwEndOfStreamException(this.y1n_1._v);
2032
2294
  } else {
2033
- this.j8_1 = 14;
2295
+ this.k8_1 = 20;
2034
2296
  continue $sm;
2035
2297
  }
2036
2298
 
2037
2299
  break;
2038
- case 14:
2039
- var tmp0_subject = this.h1n_1.io().ep(0n);
2300
+ case 20:
2301
+ var tmp0_subject = this.z1n_1.wo().sp(0n);
2040
2302
  if (tmp0_subject === 10) {
2041
- discard_0(this.h1n_1, 1n);
2042
- return this.g1n_1._v;
2303
+ discard_0(this.z1n_1, 1n);
2304
+ this.x1n_1 = this.y1n_1._v;
2305
+ this.l8_1 = 27;
2306
+ this.k8_1 = 25;
2307
+ continue $sm;
2043
2308
  } else {
2044
2309
  if (tmp0_subject === 13) {
2045
- this.j8_1 = 15;
2046
- suspendResult = internalReadLineTo$discardCrlfOrCr(this.h1n_1, this.b1n_1, this.e1n_1, this);
2310
+ this.k8_1 = 21;
2311
+ suspendResult = internalReadLineTo$discardCrlfOrCr(this.z1n_1, this.r1n_1, this.u1n_1, this);
2047
2312
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2048
2313
  return suspendResult;
2049
2314
  }
2050
2315
  continue $sm;
2051
2316
  } else {
2052
- this.j8_1 = 17;
2317
+ this.k8_1 = 23;
2053
2318
  continue $sm;
2054
2319
  }
2055
2320
  }
2056
2321
 
2057
- case 15:
2322
+ case 21:
2058
2323
  if (suspendResult) {
2059
- return this.g1n_1._v;
2324
+ this.x1n_1 = this.y1n_1._v;
2325
+ this.l8_1 = 27;
2326
+ this.k8_1 = 25;
2327
+ continue $sm;
2060
2328
  } else {
2061
- this.j8_1 = 16;
2329
+ this.k8_1 = 22;
2062
2330
  continue $sm;
2063
2331
  }
2064
2332
 
2065
- case 16:
2066
- this.j8_1 = 17;
2333
+ case 22:
2334
+ this.k8_1 = 23;
2067
2335
  continue $sm;
2068
- case 17:
2069
- throwTooLongLineException(this.d1n_1);
2336
+ case 23:
2337
+ throwTooLongLineException(this.t1n_1);
2070
2338
  break;
2071
- case 18:
2072
- throw this.m8_1;
2339
+ case 24:
2340
+ this.l8_1 = 27;
2341
+ var t = this.n8_1;
2342
+ if (!(this.w1n_1._v == null)) {
2343
+ this.s1n_1.f1(readString_0(this.w1n_1._v));
2344
+ }
2345
+
2346
+ throw t;
2347
+ case 25:
2348
+ var tmp_4 = this.x1n_1;
2349
+ this.l8_1 = 27;
2350
+ if (!(this.w1n_1._v == null)) {
2351
+ this.s1n_1.f1(readString_0(this.w1n_1._v));
2352
+ }
2353
+
2354
+ return tmp_4;
2355
+ case 26:
2356
+ this.l8_1 = 27;
2357
+ if (!(this.w1n_1._v == null)) {
2358
+ this.s1n_1.f1(readString_0(this.w1n_1._v));
2359
+ }
2360
+
2361
+ return Unit_instance;
2362
+ case 27:
2363
+ throw this.n8_1;
2073
2364
  }
2074
2365
  } catch ($p) {
2075
2366
  var e = $p;
2076
- if (this.k8_1 === 18) {
2367
+ if (this.l8_1 === 27) {
2077
2368
  throw e;
2078
2369
  } else {
2079
- this.j8_1 = this.k8_1;
2080
- this.m8_1 = e;
2370
+ this.k8_1 = this.l8_1;
2371
+ this.n8_1 = e;
2081
2372
  }
2082
2373
  }
2083
2374
  while (true);
2084
2375
  };
2085
2376
  function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
2086
2377
  CoroutineImpl.call(this, resultContinuation);
2087
- this.s1n_1 = _this__u8e3s4;
2088
- this.t1n_1 = $this_internalReadLineTo;
2089
- this.u1n_1 = $lenientLineEnding;
2378
+ this.m1o_1 = _this__u8e3s4;
2379
+ this.n1o_1 = $this_internalReadLineTo;
2380
+ this.o1o_1 = $lenientLineEnding;
2090
2381
  }
2091
- protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
2092
- var suspendResult = this.l8_1;
2382
+ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).s8 = function () {
2383
+ var suspendResult = this.m8_1;
2093
2384
  $sm: do
2094
2385
  try {
2095
- var tmp = this.j8_1;
2386
+ var tmp = this.k8_1;
2096
2387
  switch (tmp) {
2097
2388
  case 0:
2098
- this.k8_1 = 5;
2099
- if (get_remaining(this.s1n_1) >= 2n) {
2100
- this.w1n_1 = true;
2101
- this.j8_1 = 2;
2389
+ this.l8_1 = 5;
2390
+ if (get_remaining(this.m1o_1) >= 2n) {
2391
+ this.q1o_1 = true;
2392
+ this.k8_1 = 2;
2102
2393
  continue $sm;
2103
2394
  } else {
2104
- this.j8_1 = 1;
2105
- suspendResult = this.t1n_1.s1g(2, this);
2395
+ this.k8_1 = 1;
2396
+ suspendResult = this.n1o_1.f1h(2, this);
2106
2397
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2107
2398
  return suspendResult;
2108
2399
  }
@@ -2110,46 +2401,46 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
2110
2401
  }
2111
2402
 
2112
2403
  case 1:
2113
- this.w1n_1 = suspendResult;
2114
- this.j8_1 = 2;
2404
+ this.q1o_1 = suspendResult;
2405
+ this.k8_1 = 2;
2115
2406
  continue $sm;
2116
2407
  case 2:
2117
- if (this.w1n_1) {
2118
- this.v1n_1 = this.s1n_1.io().ep(1n) === 10;
2119
- this.j8_1 = 3;
2408
+ if (this.q1o_1) {
2409
+ this.p1o_1 = this.m1o_1.wo().sp(1n) === 10;
2410
+ this.k8_1 = 3;
2120
2411
  continue $sm;
2121
2412
  } else {
2122
- this.v1n_1 = false;
2123
- this.j8_1 = 3;
2413
+ this.p1o_1 = false;
2414
+ this.k8_1 = 3;
2124
2415
  continue $sm;
2125
2416
  }
2126
2417
 
2127
2418
  case 3:
2128
- if (this.v1n_1) {
2129
- discard_0(this.s1n_1, 2n);
2419
+ if (this.p1o_1) {
2420
+ discard_0(this.m1o_1, 2n);
2130
2421
  return true;
2131
2422
  } else {
2132
- this.j8_1 = 4;
2423
+ this.k8_1 = 4;
2133
2424
  continue $sm;
2134
2425
  }
2135
2426
 
2136
2427
  case 4:
2137
- if (this.u1n_1) {
2138
- discard_0(this.s1n_1, 1n);
2428
+ if (this.o1o_1) {
2429
+ discard_0(this.m1o_1, 1n);
2139
2430
  return true;
2140
2431
  }
2141
2432
 
2142
2433
  return false;
2143
2434
  case 5:
2144
- throw this.m8_1;
2435
+ throw this.n8_1;
2145
2436
  }
2146
2437
  } catch ($p) {
2147
2438
  var e = $p;
2148
- if (this.k8_1 === 5) {
2439
+ if (this.l8_1 === 5) {
2149
2440
  throw e;
2150
2441
  } else {
2151
- this.j8_1 = this.k8_1;
2152
- this.m8_1 = e;
2442
+ this.k8_1 = this.l8_1;
2443
+ this.n8_1 = e;
2153
2444
  }
2154
2445
  }
2155
2446
  while (true);
@@ -2158,54 +2449,60 @@ function ByteWriteChannel() {
2158
2449
  }
2159
2450
  function flushIfNeeded(_this__u8e3s4, $completion) {
2160
2451
  var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
2161
- tmp.l8_1 = Unit_instance;
2162
- tmp.m8_1 = null;
2163
- return tmp.r8();
2452
+ tmp.m8_1 = Unit_instance;
2453
+ tmp.n8_1 = null;
2454
+ return tmp.s8();
2164
2455
  }
2165
2456
  function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
2166
2457
  CoroutineImpl.call(this, resultContinuation);
2167
- this.f1o_1 = _this__u8e3s4;
2458
+ this.z1o_1 = _this__u8e3s4;
2168
2459
  }
2169
- protoOf($flushIfNeededCOROUTINE$).r8 = function () {
2170
- var suspendResult = this.l8_1;
2460
+ protoOf($flushIfNeededCOROUTINE$).s8 = function () {
2461
+ var suspendResult = this.m8_1;
2171
2462
  $sm: do
2172
2463
  try {
2173
- var tmp = this.j8_1;
2464
+ var tmp = this.k8_1;
2174
2465
  switch (tmp) {
2175
2466
  case 0:
2176
- this.k8_1 = 3;
2177
- rethrowCloseCauseIfNeeded_1(this.f1o_1);
2178
- if (this.f1o_1.j1g() || get_size(this.f1o_1.n1g()) >= 1048576) {
2179
- this.j8_1 = 1;
2180
- suspendResult = this.f1o_1.i1g(this);
2467
+ this.l8_1 = 3;
2468
+ rethrowCloseCauseIfNeeded_1(this.z1o_1);
2469
+ if (this.z1o_1.z1g() || get_size(this.z1o_1.b1h()) >= 1048576) {
2470
+ this.k8_1 = 1;
2471
+ suspendResult = this.z1o_1.y1g(this);
2181
2472
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2182
2473
  return suspendResult;
2183
2474
  }
2184
2475
  continue $sm;
2185
2476
  } else {
2186
- this.j8_1 = 2;
2477
+ this.k8_1 = 2;
2187
2478
  continue $sm;
2188
2479
  }
2189
2480
 
2190
2481
  case 1:
2191
- this.j8_1 = 2;
2482
+ this.k8_1 = 2;
2192
2483
  continue $sm;
2193
2484
  case 2:
2194
2485
  return Unit_instance;
2195
2486
  case 3:
2196
- throw this.m8_1;
2487
+ throw this.n8_1;
2197
2488
  }
2198
2489
  } catch ($p) {
2199
2490
  var e = $p;
2200
- if (this.k8_1 === 3) {
2491
+ if (this.l8_1 === 3) {
2201
2492
  throw e;
2202
2493
  } else {
2203
- this.j8_1 = this.k8_1;
2204
- this.m8_1 = e;
2494
+ this.k8_1 = this.l8_1;
2495
+ this.n8_1 = e;
2205
2496
  }
2206
2497
  }
2207
2498
  while (true);
2208
2499
  };
2500
+ function ByteWriteChannel$flushAndClose$ref(p0) {
2501
+ var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
2502
+ return constructCallableReference(function ($completion) {
2503
+ return i.e1p($completion);
2504
+ }, 0, 1, 6, 'flushAndClose', [p0]);
2505
+ }
2209
2506
  function get_NO_CALLBACK() {
2210
2507
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2211
2508
  return NO_CALLBACK;
@@ -2214,15 +2511,15 @@ var NO_CALLBACK;
2214
2511
  function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
2215
2512
  startIndex = startIndex === VOID ? 0 : startIndex;
2216
2513
  endIndex = endIndex === VOID ? value.length : endIndex;
2217
- _this__u8e3s4.n1g().sp(value, startIndex, endIndex);
2514
+ _this__u8e3s4.b1h().gq(value, startIndex, endIndex);
2218
2515
  return flushIfNeeded(_this__u8e3s4, $completion);
2219
2516
  }
2220
2517
  function WriterJob(channel, job) {
2221
- this.g1o_1 = channel;
2222
- this.h1o_1 = job;
2518
+ this.a1j_1 = channel;
2519
+ this.b1j_1 = job;
2223
2520
  }
2224
- protoOf(WriterJob).rx = function () {
2225
- return this.h1o_1;
2521
+ protoOf(WriterJob).fy = function () {
2522
+ return this.b1j_1;
2226
2523
  };
2227
2524
  function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
2228
2525
  coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
@@ -2231,29 +2528,29 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
2231
2528
  return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
2232
2529
  }
2233
2530
  function WriterScope(channel, coroutineContext) {
2234
- this.i1o_1 = channel;
2235
- this.j1o_1 = coroutineContext;
2531
+ this.f1p_1 = channel;
2532
+ this.g1p_1 = coroutineContext;
2236
2533
  }
2237
- protoOf(WriterScope).ur = function () {
2238
- return this.j1o_1;
2534
+ protoOf(WriterScope).is = function () {
2535
+ return this.g1p_1;
2239
2536
  };
2240
2537
  function invokeOnCompletion(_this__u8e3s4, block) {
2241
2538
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2242
- return _this__u8e3s4.rx().ws(block);
2539
+ return _this__u8e3s4.fy().kt(block);
2243
2540
  }
2244
2541
  function close_0(_this__u8e3s4, cause) {
2245
2542
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2246
2543
  if (cause == null) {
2247
- fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
2544
+ fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
2248
2545
  } else {
2249
- _this__u8e3s4.v1g(cause);
2546
+ _this__u8e3s4.i1h(cause);
2250
2547
  }
2251
2548
  }
2252
2549
  function writePacket(_this__u8e3s4, source, $completion) {
2253
2550
  var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
2254
- tmp.l8_1 = Unit_instance;
2255
- tmp.m8_1 = null;
2256
- return tmp.r8();
2551
+ tmp.m8_1 = Unit_instance;
2552
+ tmp.n8_1 = null;
2553
+ return tmp.s8();
2257
2554
  }
2258
2555
  function fireAndForget(_this__u8e3s4) {
2259
2556
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
@@ -2264,120 +2561,112 @@ function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
2264
2561
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2265
2562
  // Inline function 'kotlin.apply' call
2266
2563
  var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
2267
- this_0.ws(writer$lambda(channel));
2564
+ this_0.kt(writer$lambda(channel));
2268
2565
  var job = this_0;
2269
2566
  return new WriterJob(channel, job);
2270
2567
  }
2271
2568
  function writeByte(_this__u8e3s4, value, $completion) {
2272
- _this__u8e3s4.n1g().cq(value);
2569
+ _this__u8e3s4.b1h().qq(value);
2273
2570
  return flushIfNeeded(_this__u8e3s4, $completion);
2274
2571
  }
2275
2572
  function NO_CALLBACK$1() {
2276
- this.u1o_1 = EmptyCoroutineContext_instance;
2573
+ this.r1p_1 = EmptyCoroutineContext_instance;
2277
2574
  }
2278
- protoOf(NO_CALLBACK$1).p8 = function () {
2279
- return this.u1o_1;
2575
+ protoOf(NO_CALLBACK$1).q8 = function () {
2576
+ return this.r1p_1;
2280
2577
  };
2281
- protoOf(NO_CALLBACK$1).q8 = function (result) {
2578
+ protoOf(NO_CALLBACK$1).r8 = function (result) {
2282
2579
  return Unit_instance;
2283
2580
  };
2284
- protoOf(NO_CALLBACK$1).u8 = function (result) {
2285
- return this.q8(result);
2581
+ protoOf(NO_CALLBACK$1).v8 = function (result) {
2582
+ return this.r8(result);
2286
2583
  };
2287
- function ByteWriteChannel$flushAndClose$ref(p0) {
2288
- this.v1o_1 = p0;
2584
+ function ByteWriteChannel$flushAndClose$ref_0(p0) {
2585
+ KFunctionImpl.call(this, 1, 1, 6);
2586
+ this.d1p_1 = p0;
2289
2587
  }
2290
- protoOf(ByteWriteChannel$flushAndClose$ref).w1o = function ($completion) {
2291
- return this.v1o_1.u1g($completion);
2588
+ protoOf(ByteWriteChannel$flushAndClose$ref_0).e1p = function ($completion) {
2589
+ return this.d1p_1.h1h($completion);
2292
2590
  };
2293
- protoOf(ByteWriteChannel$flushAndClose$ref).aa = function ($completion) {
2294
- return this.w1o($completion);
2591
+ protoOf(ByteWriteChannel$flushAndClose$ref_0).e9 = function ($completion) {
2592
+ return this.e1p($completion);
2295
2593
  };
2296
- function ByteWriteChannel$flushAndClose$ref_0(p0) {
2297
- var i = new ByteWriteChannel$flushAndClose$ref(p0);
2298
- var l = function ($completion) {
2299
- return i.w1o($completion);
2300
- };
2301
- l.callableName = 'flushAndClose';
2302
- l.$arity = 0;
2303
- return l;
2304
- }
2305
2594
  function writer$slambda($block, $channel, resultContinuation) {
2306
- this.f1p_1 = $block;
2307
- this.g1p_1 = $channel;
2595
+ this.a1q_1 = $block;
2596
+ this.b1q_1 = $channel;
2308
2597
  CoroutineImpl.call(this, resultContinuation);
2309
2598
  }
2310
- protoOf(writer$slambda).o1p = function ($this$launch, $completion) {
2311
- var tmp = this.p1p($this$launch, $completion);
2312
- tmp.l8_1 = Unit_instance;
2313
- tmp.m8_1 = null;
2314
- return tmp.r8();
2599
+ protoOf(writer$slambda).j1q = function ($this$launch, $completion) {
2600
+ var tmp = this.k1q($this$launch, $completion);
2601
+ tmp.m8_1 = Unit_instance;
2602
+ tmp.n8_1 = null;
2603
+ return tmp.s8();
2315
2604
  };
2316
- protoOf(writer$slambda).d9 = function (p1, $completion) {
2317
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2605
+ protoOf(writer$slambda).f9 = function (p1, $completion) {
2606
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2318
2607
  };
2319
- protoOf(writer$slambda).r8 = function () {
2320
- var suspendResult = this.l8_1;
2608
+ protoOf(writer$slambda).s8 = function () {
2609
+ var suspendResult = this.m8_1;
2321
2610
  $sm: do
2322
2611
  try {
2323
- var tmp = this.j8_1;
2612
+ var tmp = this.k8_1;
2324
2613
  switch (tmp) {
2325
2614
  case 0:
2326
- this.k8_1 = 14;
2327
- this.k1p_1 = Job(get_job(this.h1p_1.ur()));
2328
- this.j8_1 = 1;
2615
+ this.l8_1 = 14;
2616
+ this.f1q_1 = Job(get_job(this.c1q_1.is()));
2617
+ this.k8_1 = 1;
2329
2618
  continue $sm;
2330
2619
  case 1:
2331
- this.k8_1 = 4;
2332
- this.k8_1 = 3;
2333
- this.j8_1 = 2;
2334
- suspendResult = this.f1p_1(new WriterScope(this.g1p_1, this.h1p_1.ur().hf(this.k1p_1)), this);
2620
+ this.l8_1 = 4;
2621
+ this.l8_1 = 3;
2622
+ this.k8_1 = 2;
2623
+ suspendResult = this.a1q_1(new WriterScope(this.b1q_1, this.c1q_1.is().vf(this.f1q_1)), this);
2335
2624
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2336
2625
  return suspendResult;
2337
2626
  }
2338
2627
 
2339
2628
  continue $sm;
2340
2629
  case 2:
2341
- this.k1p_1.my();
2630
+ this.f1q_1.az();
2342
2631
  var tmp_0;
2343
- if (get_job(this.h1p_1.ur()).qs()) {
2344
- this.g1p_1.v1g(get_job(this.h1p_1.ur()).ts());
2632
+ if (get_job(this.c1q_1.is()).et()) {
2633
+ this.b1q_1.i1h(get_job(this.c1q_1.is()).ht());
2345
2634
  tmp_0 = Unit_instance;
2346
2635
  }
2347
2636
 
2348
- this.k8_1 = 14;
2349
- this.j8_1 = 9;
2637
+ this.l8_1 = 14;
2638
+ this.k8_1 = 9;
2350
2639
  continue $sm;
2351
2640
  case 3:
2352
- this.k8_1 = 4;
2353
- var tmp_1 = this.m8_1;
2641
+ this.l8_1 = 4;
2642
+ var tmp_1 = this.n8_1;
2354
2643
  if (tmp_1 instanceof Error) {
2355
- var cause = this.m8_1;
2356
- cancel(this.k1p_1, 'Exception thrown while writing to channel', cause);
2357
- this.g1p_1.v1g(cause);
2358
- this.k8_1 = 14;
2359
- this.j8_1 = 9;
2644
+ var cause = this.n8_1;
2645
+ cancel(this.f1q_1, 'Exception thrown while writing to channel', cause);
2646
+ this.b1q_1.i1h(cause);
2647
+ this.l8_1 = 14;
2648
+ this.k8_1 = 9;
2360
2649
  continue $sm;
2361
2650
  } else {
2362
- throw this.m8_1;
2651
+ throw this.n8_1;
2363
2652
  }
2364
2653
 
2365
2654
  case 4:
2366
- this.k8_1 = 14;
2367
- this.l1p_1 = this.m8_1;
2368
- this.j8_1 = 5;
2369
- suspendResult = this.k1p_1.at(this);
2655
+ this.l8_1 = 14;
2656
+ this.g1q_1 = this.n8_1;
2657
+ this.k8_1 = 5;
2658
+ suspendResult = this.f1q_1.ot(this);
2370
2659
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2371
2660
  return suspendResult;
2372
2661
  }
2373
2662
 
2374
2663
  continue $sm;
2375
2664
  case 5:
2376
- this.h1p_1;
2377
- this.k8_1 = 7;
2378
- this.n1p_1 = Companion_instance;
2379
- this.j8_1 = 6;
2380
- suspendResult = this.g1p_1.u1g(this);
2665
+ this.c1q_1;
2666
+ this.l8_1 = 7;
2667
+ this.i1q_1 = Companion_instance;
2668
+ this.k8_1 = 6;
2669
+ suspendResult = this.b1q_1.h1h(this);
2381
2670
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2382
2671
  return suspendResult;
2383
2672
  }
@@ -2385,42 +2674,42 @@ protoOf(writer$slambda).r8 = function () {
2385
2674
  continue $sm;
2386
2675
  case 6:
2387
2676
  var tmp_2 = this;
2388
- this.n1p_1;
2389
- tmp_2.m1p_1 = _Result___init__impl__xyqfz8(Unit_instance);
2390
- this.k8_1 = 14;
2391
- this.j8_1 = 8;
2677
+ this.i1q_1;
2678
+ tmp_2.h1q_1 = _Result___init__impl__xyqfz8(Unit_instance);
2679
+ this.l8_1 = 14;
2680
+ this.k8_1 = 8;
2392
2681
  continue $sm;
2393
2682
  case 7:
2394
- this.k8_1 = 14;
2395
- var tmp_3 = this.m8_1;
2683
+ this.l8_1 = 14;
2684
+ var tmp_3 = this.n8_1;
2396
2685
  if (tmp_3 instanceof Error) {
2397
- var e = this.m8_1;
2686
+ var e = this.n8_1;
2398
2687
  var tmp_4 = this;
2399
- tmp_4.m1p_1 = _Result___init__impl__xyqfz8(createFailure(e));
2400
- this.j8_1 = 8;
2688
+ tmp_4.h1q_1 = _Result___init__impl__xyqfz8(createFailure(e));
2689
+ this.k8_1 = 8;
2401
2690
  continue $sm;
2402
2691
  } else {
2403
- throw this.m8_1;
2692
+ throw this.n8_1;
2404
2693
  }
2405
2694
 
2406
2695
  case 8:
2407
- this.k8_1 = 14;
2408
- throw this.l1p_1;
2696
+ this.l8_1 = 14;
2697
+ throw this.g1q_1;
2409
2698
  case 9:
2410
- this.k8_1 = 14;
2411
- this.j8_1 = 10;
2412
- suspendResult = this.k1p_1.at(this);
2699
+ this.l8_1 = 14;
2700
+ this.k8_1 = 10;
2701
+ suspendResult = this.f1q_1.ot(this);
2413
2702
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2414
2703
  return suspendResult;
2415
2704
  }
2416
2705
 
2417
2706
  continue $sm;
2418
2707
  case 10:
2419
- this.h1p_1;
2420
- this.k8_1 = 12;
2421
- this.j1p_1 = Companion_instance;
2422
- this.j8_1 = 11;
2423
- suspendResult = this.g1p_1.u1g(this);
2708
+ this.c1q_1;
2709
+ this.l8_1 = 12;
2710
+ this.e1q_1 = Companion_instance;
2711
+ this.k8_1 = 11;
2712
+ suspendResult = this.b1q_1.h1h(this);
2424
2713
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2425
2714
  return suspendResult;
2426
2715
  }
@@ -2428,59 +2717,57 @@ protoOf(writer$slambda).r8 = function () {
2428
2717
  continue $sm;
2429
2718
  case 11:
2430
2719
  var tmp_5 = this;
2431
- this.j1p_1;
2432
- tmp_5.i1p_1 = _Result___init__impl__xyqfz8(Unit_instance);
2433
- this.k8_1 = 14;
2434
- this.j8_1 = 13;
2720
+ this.e1q_1;
2721
+ tmp_5.d1q_1 = _Result___init__impl__xyqfz8(Unit_instance);
2722
+ this.l8_1 = 14;
2723
+ this.k8_1 = 13;
2435
2724
  continue $sm;
2436
2725
  case 12:
2437
- this.k8_1 = 14;
2438
- var tmp_6 = this.m8_1;
2726
+ this.l8_1 = 14;
2727
+ var tmp_6 = this.n8_1;
2439
2728
  if (tmp_6 instanceof Error) {
2440
- var e_0 = this.m8_1;
2729
+ var e_0 = this.n8_1;
2441
2730
  var tmp_7 = this;
2442
- tmp_7.i1p_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
2443
- this.j8_1 = 13;
2731
+ tmp_7.d1q_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
2732
+ this.k8_1 = 13;
2444
2733
  continue $sm;
2445
2734
  } else {
2446
- throw this.m8_1;
2735
+ throw this.n8_1;
2447
2736
  }
2448
2737
 
2449
2738
  case 13:
2450
- this.k8_1 = 14;
2739
+ this.l8_1 = 14;
2451
2740
  return Unit_instance;
2452
2741
  case 14:
2453
- throw this.m8_1;
2742
+ throw this.n8_1;
2454
2743
  }
2455
2744
  } catch ($p) {
2456
2745
  var e_1 = $p;
2457
- if (this.k8_1 === 14) {
2746
+ if (this.l8_1 === 14) {
2458
2747
  throw e_1;
2459
2748
  } else {
2460
- this.j8_1 = this.k8_1;
2461
- this.m8_1 = e_1;
2749
+ this.k8_1 = this.l8_1;
2750
+ this.n8_1 = e_1;
2462
2751
  }
2463
2752
  }
2464
2753
  while (true);
2465
2754
  };
2466
- protoOf(writer$slambda).p1p = function ($this$launch, completion) {
2467
- var i = new writer$slambda(this.f1p_1, this.g1p_1, completion);
2468
- i.h1p_1 = $this$launch;
2755
+ protoOf(writer$slambda).k1q = function ($this$launch, completion) {
2756
+ var i = new writer$slambda(this.a1q_1, this.b1q_1, completion);
2757
+ i.c1q_1 = $this$launch;
2469
2758
  return i;
2470
2759
  };
2471
2760
  function writer$slambda_0($block, $channel, resultContinuation) {
2472
2761
  var i = new writer$slambda($block, $channel, resultContinuation);
2473
- var l = function ($this$launch, $completion) {
2474
- return i.o1p($this$launch, $completion);
2475
- };
2476
- l.$arity = 1;
2477
- return l;
2762
+ return constructCallableReference(function ($this$launch, $completion) {
2763
+ return i.j1q($this$launch, $completion);
2764
+ }, 1);
2478
2765
  }
2479
2766
  function writer$lambda($channel) {
2480
2767
  return function (it) {
2481
2768
  var tmp;
2482
- if (!(it == null) && !$channel.o1g()) {
2483
- $channel.v1g(it);
2769
+ if (!(it == null) && !$channel.c1h()) {
2770
+ $channel.i1h(it);
2484
2771
  tmp = Unit_instance;
2485
2772
  }
2486
2773
  return Unit_instance;
@@ -2488,48 +2775,48 @@ function writer$lambda($channel) {
2488
2775
  }
2489
2776
  function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
2490
2777
  CoroutineImpl.call(this, resultContinuation);
2491
- this.s1o_1 = _this__u8e3s4;
2492
- this.t1o_1 = source;
2778
+ this.p1p_1 = _this__u8e3s4;
2779
+ this.q1p_1 = source;
2493
2780
  }
2494
- protoOf($writePacketCOROUTINE$).r8 = function () {
2495
- var suspendResult = this.l8_1;
2781
+ protoOf($writePacketCOROUTINE$).s8 = function () {
2782
+ var suspendResult = this.m8_1;
2496
2783
  $sm: do
2497
2784
  try {
2498
- var tmp = this.j8_1;
2785
+ var tmp = this.k8_1;
2499
2786
  switch (tmp) {
2500
2787
  case 0:
2501
- this.k8_1 = 4;
2502
- this.j8_1 = 1;
2788
+ this.l8_1 = 4;
2789
+ this.k8_1 = 1;
2503
2790
  continue $sm;
2504
2791
  case 1:
2505
- if (!!this.t1o_1.jo()) {
2506
- this.j8_1 = 3;
2792
+ if (!!this.q1p_1.xo()) {
2793
+ this.k8_1 = 3;
2507
2794
  continue $sm;
2508
2795
  }
2509
2796
 
2510
- this.s1o_1.n1g().wp(this.t1o_1, get_remaining(this.t1o_1));
2511
- this.j8_1 = 2;
2512
- suspendResult = flushIfNeeded(this.s1o_1, this);
2797
+ this.p1p_1.b1h().kq(this.q1p_1, get_remaining(this.q1p_1));
2798
+ this.k8_1 = 2;
2799
+ suspendResult = flushIfNeeded(this.p1p_1, this);
2513
2800
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2514
2801
  return suspendResult;
2515
2802
  }
2516
2803
 
2517
2804
  continue $sm;
2518
2805
  case 2:
2519
- this.j8_1 = 1;
2806
+ this.k8_1 = 1;
2520
2807
  continue $sm;
2521
2808
  case 3:
2522
2809
  return Unit_instance;
2523
2810
  case 4:
2524
- throw this.m8_1;
2811
+ throw this.n8_1;
2525
2812
  }
2526
2813
  } catch ($p) {
2527
2814
  var e = $p;
2528
- if (this.k8_1 === 4) {
2815
+ if (this.l8_1 === 4) {
2529
2816
  throw e;
2530
2817
  } else {
2531
- this.j8_1 = this.k8_1;
2532
- this.m8_1 = e;
2818
+ this.k8_1 = this.l8_1;
2819
+ this.n8_1 = e;
2533
2820
  }
2534
2821
  }
2535
2822
  while (true);
@@ -2546,55 +2833,18 @@ function get_CLOSED() {
2546
2833
  return CLOSED;
2547
2834
  }
2548
2835
  var CLOSED;
2549
- function ClosedByteChannelException$_init_$ref_yjp351() {
2550
- var l = function (p0) {
2551
- return new ClosedByteChannelException(p0);
2552
- };
2553
- l.callableName = '<init>';
2554
- return l;
2836
+ function Companion_1() {
2837
+ }
2838
+ var Companion_instance_2;
2839
+ function Companion_getInstance_1() {
2840
+ return Companion_instance_2;
2841
+ }
2842
+ function access$_get_origin__hdh1qz($this) {
2843
+ return $this.l1q_1;
2555
2844
  }
2556
2845
  function CloseToken(origin) {
2557
- this.l1g_1 = origin;
2846
+ this.l1q_1 = origin;
2558
2847
  }
2559
- protoOf(CloseToken).q1p = function (wrap) {
2560
- var tmp0_subject = this.l1g_1;
2561
- var tmp;
2562
- if (tmp0_subject == null) {
2563
- tmp = null;
2564
- } else {
2565
- if (isInterface(tmp0_subject, CopyableThrowable)) {
2566
- tmp = this.l1g_1.vy();
2567
- } else {
2568
- if (tmp0_subject instanceof CancellationException) {
2569
- tmp = CancellationException_init_$Create$(this.l1g_1.message, this.l1g_1);
2570
- } else {
2571
- tmp = wrap(this.l1g_1);
2572
- }
2573
- }
2574
- }
2575
- return tmp;
2576
- };
2577
- protoOf(CloseToken).q1g = function (wrap, $super) {
2578
- var tmp;
2579
- if (wrap === VOID) {
2580
- tmp = ClosedByteChannelException$_init_$ref_yjp351();
2581
- } else {
2582
- tmp = wrap;
2583
- }
2584
- wrap = tmp;
2585
- return $super === VOID ? this.q1p(wrap) : $super.q1p.call(this, wrap);
2586
- };
2587
- protoOf(CloseToken).m1g = function (wrap) {
2588
- var tmp0_safe_receiver = this.q1p(wrap);
2589
- var tmp;
2590
- if (tmp0_safe_receiver == null) {
2591
- tmp = null;
2592
- } else {
2593
- // Inline function 'kotlin.let' call
2594
- throw tmp0_safe_receiver;
2595
- }
2596
- return tmp;
2597
- };
2598
2848
  var properties_initialized_CloseToken_kt_lgg8zn;
2599
2849
  function _init_properties_CloseToken_kt__9ucr41() {
2600
2850
  if (!properties_initialized_CloseToken_kt_lgg8zn) {
@@ -2604,32 +2854,32 @@ function _init_properties_CloseToken_kt__9ucr41() {
2604
2854
  }
2605
2855
  function transferFromDelegate($this) {
2606
2856
  updateConsumed($this);
2607
- var appended = $this.s1p_1.bq($this.r1p_1.k1g());
2608
- $this.t1p_1 = add($this.t1p_1, appended);
2857
+ var appended = $this.n1q_1.pq($this.m1q_1.a1h());
2858
+ $this.o1q_1 = add($this.o1q_1, appended);
2609
2859
  }
2610
2860
  function updateConsumed($this) {
2611
- $this.u1p_1 = add($this.u1p_1, subtract($this.t1p_1, $this.s1p_1.g1()));
2612
- $this.t1p_1 = $this.s1p_1.g1();
2861
+ $this.p1q_1 = add($this.p1q_1, subtract($this.o1q_1, $this.n1q_1.g1()));
2862
+ $this.o1q_1 = $this.n1q_1.g1();
2613
2863
  }
2614
2864
  function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
2615
2865
  CoroutineImpl.call(this, resultContinuation);
2616
- this.d1q_1 = _this__u8e3s4;
2617
- this.e1q_1 = min;
2866
+ this.y1q_1 = _this__u8e3s4;
2867
+ this.z1q_1 = min;
2618
2868
  }
2619
- protoOf($awaitContentCOROUTINE$_0).r8 = function () {
2620
- var suspendResult = this.l8_1;
2869
+ protoOf($awaitContentCOROUTINE$_0).s8 = function () {
2870
+ var suspendResult = this.m8_1;
2621
2871
  $sm: do
2622
2872
  try {
2623
- var tmp = this.j8_1;
2873
+ var tmp = this.k8_1;
2624
2874
  switch (tmp) {
2625
2875
  case 0:
2626
- this.k8_1 = 3;
2627
- if (this.d1q_1.k1g().g1() >= fromInt(this.e1q_1)) {
2876
+ this.l8_1 = 3;
2877
+ if (this.y1q_1.a1h().g1() >= fromInt(this.z1q_1)) {
2628
2878
  return true;
2629
2879
  }
2630
2880
 
2631
- this.j8_1 = 1;
2632
- suspendResult = this.d1q_1.r1p_1.s1g(this.e1q_1, this);
2881
+ this.k8_1 = 1;
2882
+ suspendResult = this.y1q_1.m1q_1.f1h(this.z1q_1, this);
2633
2883
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2634
2884
  return suspendResult;
2635
2885
  }
@@ -2637,64 +2887,64 @@ protoOf($awaitContentCOROUTINE$_0).r8 = function () {
2637
2887
  continue $sm;
2638
2888
  case 1:
2639
2889
  if (suspendResult) {
2640
- transferFromDelegate(this.d1q_1);
2890
+ transferFromDelegate(this.y1q_1);
2641
2891
  return true;
2642
2892
  } else {
2643
- this.j8_1 = 2;
2893
+ this.k8_1 = 2;
2644
2894
  continue $sm;
2645
2895
  }
2646
2896
 
2647
2897
  case 2:
2648
2898
  return false;
2649
2899
  case 3:
2650
- throw this.m8_1;
2900
+ throw this.n8_1;
2651
2901
  }
2652
2902
  } catch ($p) {
2653
2903
  var e = $p;
2654
- if (this.k8_1 === 3) {
2904
+ if (this.l8_1 === 3) {
2655
2905
  throw e;
2656
2906
  } else {
2657
- this.j8_1 = this.k8_1;
2658
- this.m8_1 = e;
2907
+ this.k8_1 = this.l8_1;
2908
+ this.n8_1 = e;
2659
2909
  }
2660
2910
  }
2661
2911
  while (true);
2662
2912
  };
2663
2913
  function CountedByteReadChannel(delegate) {
2664
- this.r1p_1 = delegate;
2665
- this.s1p_1 = new Buffer();
2666
- this.t1p_1 = 0n;
2667
- this.u1p_1 = 0n;
2914
+ this.m1q_1 = delegate;
2915
+ this.n1q_1 = new Buffer();
2916
+ this.o1q_1 = 0n;
2917
+ this.p1q_1 = 0n;
2668
2918
  }
2669
- protoOf(CountedByteReadChannel).f1q = function () {
2919
+ protoOf(CountedByteReadChannel).a1r = function () {
2670
2920
  updateConsumed(this);
2671
- return this.u1p_1;
2921
+ return this.p1q_1;
2672
2922
  };
2673
- protoOf(CountedByteReadChannel).p1g = function () {
2674
- return this.r1p_1.p1g();
2923
+ protoOf(CountedByteReadChannel).d1h = function () {
2924
+ return this.m1q_1.d1h();
2675
2925
  };
2676
- protoOf(CountedByteReadChannel).r1g = function () {
2677
- return this.s1p_1.jo() && this.r1p_1.r1g();
2926
+ protoOf(CountedByteReadChannel).e1h = function () {
2927
+ return this.n1q_1.xo() && this.m1q_1.e1h();
2678
2928
  };
2679
- protoOf(CountedByteReadChannel).k1g = function () {
2929
+ protoOf(CountedByteReadChannel).a1h = function () {
2680
2930
  transferFromDelegate(this);
2681
- return this.s1p_1;
2931
+ return this.n1q_1;
2682
2932
  };
2683
- protoOf(CountedByteReadChannel).s1g = function (min, $completion) {
2933
+ protoOf(CountedByteReadChannel).f1h = function (min, $completion) {
2684
2934
  var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
2685
- tmp.l8_1 = Unit_instance;
2686
- tmp.m8_1 = null;
2687
- return tmp.r8();
2935
+ tmp.m8_1 = Unit_instance;
2936
+ tmp.n8_1 = null;
2937
+ return tmp.s8();
2688
2938
  };
2689
- protoOf(CountedByteReadChannel).v1g = function (cause) {
2690
- this.r1p_1.v1g(cause);
2691
- this.s1p_1.j4();
2939
+ protoOf(CountedByteReadChannel).i1h = function (cause) {
2940
+ this.m1q_1.i1h(cause);
2941
+ this.n1q_1.j4();
2692
2942
  };
2693
2943
  function counted(_this__u8e3s4) {
2694
2944
  return new CountedByteReadChannel(_this__u8e3s4);
2695
2945
  }
2696
2946
  function readText(_this__u8e3s4) {
2697
- return readString_0(_this__u8e3s4);
2947
+ return readString_1(_this__u8e3s4);
2698
2948
  }
2699
2949
  function ClosedByteChannelException(cause) {
2700
2950
  cause = cause === VOID ? null : cause;
@@ -2746,21 +2996,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
2746
2996
  }
2747
2997
  function LineEndingMode__toString_impl_j4h76r($this) {
2748
2998
  var tmp;
2749
- if ($this === Companion_getInstance_1().g1q_1) {
2999
+ if ($this === Companion_getInstance_2().b1r_1) {
2750
3000
  tmp = 'CR';
2751
- } else if ($this === Companion_getInstance_1().h1q_1) {
3001
+ } else if ($this === Companion_getInstance_2().c1r_1) {
2752
3002
  tmp = 'LF';
2753
- } else if ($this === Companion_getInstance_1().i1q_1) {
3003
+ } else if ($this === Companion_getInstance_2().d1r_1) {
2754
3004
  tmp = 'CRLF';
2755
3005
  } else {
2756
3006
  // Inline function 'kotlin.collections.filter' call
2757
- var tmp0 = Companion_getInstance_1().k1q_1;
3007
+ var tmp0 = Companion_getInstance_2().f1r_1;
2758
3008
  // Inline function 'kotlin.collections.filterTo' call
2759
3009
  var destination = ArrayList_init_$Create$();
2760
3010
  var _iterator__ex2g4s = tmp0.t();
2761
3011
  while (_iterator__ex2g4s.u()) {
2762
3012
  var element = _iterator__ex2g4s.v();
2763
- var it = element.l1q_1;
3013
+ var it = element.g1r_1;
2764
3014
  if (LineEndingMode__contains_impl_q5pr68($this, it)) {
2765
3015
  destination.e1(element);
2766
3016
  }
@@ -2769,19 +3019,19 @@ function LineEndingMode__toString_impl_j4h76r($this) {
2769
3019
  }
2770
3020
  return tmp;
2771
3021
  }
2772
- function Companion_1() {
2773
- Companion_instance_2 = this;
2774
- this.g1q_1 = _LineEndingMode___init__impl__jo5bul(1);
2775
- this.h1q_1 = _LineEndingMode___init__impl__jo5bul(2);
2776
- this.i1q_1 = _LineEndingMode___init__impl__jo5bul(4);
2777
- this.j1q_1 = _LineEndingMode___init__impl__jo5bul(7);
2778
- this.k1q_1 = listOf([new LineEndingMode(this.g1q_1), new LineEndingMode(this.h1q_1), new LineEndingMode(this.i1q_1)]);
3022
+ function Companion_2() {
3023
+ Companion_instance_3 = this;
3024
+ this.b1r_1 = _LineEndingMode___init__impl__jo5bul(1);
3025
+ this.c1r_1 = _LineEndingMode___init__impl__jo5bul(2);
3026
+ this.d1r_1 = _LineEndingMode___init__impl__jo5bul(4);
3027
+ this.e1r_1 = _LineEndingMode___init__impl__jo5bul(7);
3028
+ this.f1r_1 = listOf([new LineEndingMode(this.b1r_1), new LineEndingMode(this.c1r_1), new LineEndingMode(this.d1r_1)]);
2779
3029
  }
2780
- var Companion_instance_2;
2781
- function Companion_getInstance_1() {
2782
- if (Companion_instance_2 == null)
2783
- new Companion_1();
2784
- return Companion_instance_2;
3030
+ var Companion_instance_3;
3031
+ function Companion_getInstance_2() {
3032
+ if (Companion_instance_3 == null)
3033
+ new Companion_2();
3034
+ return Companion_instance_3;
2785
3035
  }
2786
3036
  function LineEndingMode__hashCode_impl_2mopm4($this) {
2787
3037
  return $this;
@@ -2789,67 +3039,90 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
2789
3039
  function LineEndingMode__equals_impl_qyr4nk($this, other) {
2790
3040
  if (!(other instanceof LineEndingMode))
2791
3041
  return false;
2792
- if (!($this === other.l1q_1))
3042
+ if (!($this === other.g1r_1))
2793
3043
  return false;
2794
3044
  return true;
2795
3045
  }
2796
3046
  function LineEndingMode(mode) {
2797
- Companion_getInstance_1();
2798
- this.l1q_1 = mode;
3047
+ Companion_getInstance_2();
3048
+ this.g1r_1 = mode;
2799
3049
  }
2800
3050
  protoOf(LineEndingMode).toString = function () {
2801
- return LineEndingMode__toString_impl_j4h76r(this.l1q_1);
3051
+ return LineEndingMode__toString_impl_j4h76r(this.g1r_1);
2802
3052
  };
2803
3053
  protoOf(LineEndingMode).hashCode = function () {
2804
- return LineEndingMode__hashCode_impl_2mopm4(this.l1q_1);
3054
+ return LineEndingMode__hashCode_impl_2mopm4(this.g1r_1);
2805
3055
  };
2806
3056
  protoOf(LineEndingMode).equals = function (other) {
2807
- return LineEndingMode__equals_impl_qyr4nk(this.l1q_1, other);
3057
+ return LineEndingMode__equals_impl_qyr4nk(this.g1r_1, other);
2808
3058
  };
2809
3059
  function SourceByteReadChannel(source) {
2810
- this.m1q_1 = source;
2811
- this.n1q_1 = null;
3060
+ this.h1r_1 = source;
3061
+ this.i1r_1 = null;
2812
3062
  }
2813
- protoOf(SourceByteReadChannel).p1g = function () {
2814
- var tmp0_safe_receiver = this.n1q_1;
2815
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1g();
3063
+ protoOf(SourceByteReadChannel).d1h = function () {
3064
+ var tmp0_safe_receiver = this.i1r_1;
3065
+ var tmp;
3066
+ if (tmp0_safe_receiver == null) {
3067
+ tmp = null;
3068
+ } else {
3069
+ // Inline function 'io.ktor.utils.io.Companion.wrapCause' call
3070
+ var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
3071
+ var tmp_0;
3072
+ if (tmp0_subject == null) {
3073
+ tmp_0 = null;
3074
+ } else {
3075
+ if (isInterface(tmp0_subject, CopyableThrowable)) {
3076
+ tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).jz();
3077
+ } else {
3078
+ if (tmp0_subject instanceof CancellationException) {
3079
+ tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
3080
+ } else {
3081
+ var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
3082
+ tmp_0 = new ClosedByteChannelException(p0);
3083
+ }
3084
+ }
3085
+ }
3086
+ tmp = tmp_0;
3087
+ }
3088
+ return tmp;
2816
3089
  };
2817
- protoOf(SourceByteReadChannel).r1g = function () {
2818
- return this.m1q_1.jo();
3090
+ protoOf(SourceByteReadChannel).e1h = function () {
3091
+ return this.h1r_1.xo();
2819
3092
  };
2820
- protoOf(SourceByteReadChannel).k1g = function () {
2821
- var tmp0_safe_receiver = this.p1g();
3093
+ protoOf(SourceByteReadChannel).a1h = function () {
3094
+ var tmp0_safe_receiver = this.d1h();
2822
3095
  if (tmp0_safe_receiver == null)
2823
3096
  null;
2824
3097
  else {
2825
3098
  // Inline function 'kotlin.let' call
2826
3099
  throw tmp0_safe_receiver;
2827
3100
  }
2828
- return this.m1q_1.io();
3101
+ return this.h1r_1.wo();
2829
3102
  };
2830
- protoOf(SourceByteReadChannel).s1g = function (min, $completion) {
2831
- var tmp0_safe_receiver = this.p1g();
3103
+ protoOf(SourceByteReadChannel).f1h = function (min, $completion) {
3104
+ var tmp0_safe_receiver = this.d1h();
2832
3105
  if (tmp0_safe_receiver == null)
2833
3106
  null;
2834
3107
  else {
2835
3108
  // Inline function 'kotlin.let' call
2836
3109
  throw tmp0_safe_receiver;
2837
3110
  }
2838
- return this.m1q_1.lo(fromInt(min));
3111
+ return this.h1r_1.zo(fromInt(min));
2839
3112
  };
2840
- protoOf(SourceByteReadChannel).v1g = function (cause) {
2841
- if (!(this.n1q_1 == null))
3113
+ protoOf(SourceByteReadChannel).i1h = function (cause) {
3114
+ if (!(this.i1r_1 == null))
2842
3115
  return Unit_instance;
2843
- this.m1q_1.j4();
3116
+ this.h1r_1.j4();
2844
3117
  var tmp = this;
2845
3118
  var tmp1_elvis_lhs = cause == null ? null : cause.message;
2846
- tmp.n1q_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
3119
+ tmp.i1r_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
2847
3120
  };
2848
3121
  function decode(_this__u8e3s4, input, max) {
2849
3122
  max = max === VOID ? 2147483647 : max;
2850
3123
  var tmp0 = fromInt(max);
2851
3124
  // Inline function 'kotlin.comparisons.minOf' call
2852
- var b = input.io().g1();
3125
+ var b = input.wo().g1();
2853
3126
  var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
2854
3127
  // Inline function 'kotlin.text.buildString' call
2855
3128
  var capacity = convertToInt(tmp$ret$0);
@@ -2886,7 +3159,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
2886
3159
  }
2887
3160
  }
2888
3161
  function canRead(_this__u8e3s4) {
2889
- return !_this__u8e3s4.jo();
3162
+ return !_this__u8e3s4.xo();
2890
3163
  }
2891
3164
  function readBytes(_this__u8e3s4, count) {
2892
3165
  count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
@@ -2895,35 +3168,35 @@ function readBytes(_this__u8e3s4, count) {
2895
3168
  function writeFully_0(_this__u8e3s4, buffer, offset, length) {
2896
3169
  offset = offset === VOID ? 0 : offset;
2897
3170
  length = length === VOID ? buffer.length - offset | 0 : length;
2898
- _this__u8e3s4.sp(buffer, offset, offset + length | 0);
3171
+ _this__u8e3s4.gq(buffer, offset, offset + length | 0);
2899
3172
  }
2900
3173
  function BytePacketBuilder() {
2901
3174
  return new Buffer();
2902
3175
  }
2903
3176
  function build(_this__u8e3s4) {
2904
- return _this__u8e3s4.io();
3177
+ return _this__u8e3s4.wo();
2905
3178
  }
2906
3179
  function get_size(_this__u8e3s4) {
2907
- return convertToInt(_this__u8e3s4.io().g1());
3180
+ return convertToInt(_this__u8e3s4.wo().g1());
2908
3181
  }
2909
3182
  var ByteReadPacketEmpty;
2910
3183
  function get_remaining(_this__u8e3s4) {
2911
3184
  _init_properties_ByteReadPacket_kt__28475y();
2912
- return _this__u8e3s4.io().g1();
3185
+ return _this__u8e3s4.wo().g1();
2913
3186
  }
2914
3187
  function takeWhile(_this__u8e3s4, block) {
2915
3188
  _init_properties_ByteReadPacket_kt__28475y();
2916
- while (!_this__u8e3s4.jo() && block(_this__u8e3s4.io())) {
3189
+ while (!_this__u8e3s4.xo() && block(_this__u8e3s4.wo())) {
2917
3190
  }
2918
3191
  }
2919
3192
  function discard_0(_this__u8e3s4, count) {
2920
3193
  count = count === VOID ? 9223372036854775807n : count;
2921
3194
  _init_properties_ByteReadPacket_kt__28475y();
2922
- _this__u8e3s4.lo(count);
3195
+ _this__u8e3s4.zo(count);
2923
3196
  // Inline function 'kotlin.comparisons.minOf' call
2924
3197
  var b = get_remaining(_this__u8e3s4);
2925
3198
  var countToDiscard = count <= b ? count : b;
2926
- _this__u8e3s4.io().gp(countToDiscard);
3199
+ _this__u8e3s4.wo().up(countToDiscard);
2927
3200
  return countToDiscard;
2928
3201
  }
2929
3202
  var properties_initialized_ByteReadPacket_kt_hw4st4;
@@ -2936,37 +3209,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
2936
3209
  function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
2937
3210
  offset = offset === VOID ? 0 : offset;
2938
3211
  length = length === VOID ? buffer.length - offset | 0 : length;
2939
- var result = _this__u8e3s4.hp(buffer, offset, offset + length | 0);
3212
+ var result = _this__u8e3s4.vp(buffer, offset, offset + length | 0);
2940
3213
  return result === -1 ? 0 : result;
2941
3214
  }
2942
- function readText_0(_this__u8e3s4, charset, max) {
2943
- charset = charset === VOID ? Charsets_getInstance().o1q_1 : charset;
2944
- max = max === VOID ? 2147483647 : max;
2945
- if (charset.equals(Charsets_getInstance().o1q_1)) {
2946
- if (max === 2147483647)
2947
- return readString_0(_this__u8e3s4);
2948
- var tmp0 = _this__u8e3s4.io().g1();
2949
- // Inline function 'kotlin.math.min' call
2950
- var b = fromInt(max);
2951
- var count = tmp0 <= b ? tmp0 : b;
2952
- return readString(_this__u8e3s4, count);
2953
- }
2954
- return decode(charset.r1q(), _this__u8e3s4, max);
2955
- }
2956
3215
  function toByteArray_0(_this__u8e3s4, charset) {
2957
- charset = charset === VOID ? Charsets_getInstance().o1q_1 : charset;
2958
- if (charset.equals(Charsets_getInstance().o1q_1))
2959
- return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
2960
- return encodeToByteArray_0(charset.s1q(), _this__u8e3s4, 0, _this__u8e3s4.length);
3216
+ charset = charset === VOID ? Charsets_getInstance().j1r_1 : charset;
3217
+ if (charset.equals(Charsets_getInstance().j1r_1))
3218
+ return encodeToByteArray(_this__u8e3s4);
3219
+ return encodeToByteArray_0(charset.m1r(), _this__u8e3s4, 0, _this__u8e3s4.length);
2961
3220
  }
2962
3221
  function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
2963
3222
  fromIndex = fromIndex === VOID ? 0 : fromIndex;
2964
3223
  toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
2965
- charset = charset === VOID ? Charsets_getInstance().o1q_1 : charset;
2966
- if (charset === Charsets_getInstance().o1q_1) {
3224
+ charset = charset === VOID ? Charsets_getInstance().j1r_1 : charset;
3225
+ if (charset === Charsets_getInstance().j1r_1) {
2967
3226
  return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
2968
3227
  }
2969
- encodeToImpl(charset.s1q(), _this__u8e3s4, text, fromIndex, toIndex);
3228
+ encodeToImpl(charset.m1r(), _this__u8e3s4, text, fromIndex, toIndex);
2970
3229
  }
2971
3230
  function get_ByteArrayPool() {
2972
3231
  _init_properties_ByteArrayPool_kt__kfi3uj();
@@ -2976,7 +3235,7 @@ var ByteArrayPool;
2976
3235
  function ByteArrayPool$1() {
2977
3236
  DefaultPool.call(this, 128);
2978
3237
  }
2979
- protoOf(ByteArrayPool$1).w1q = function () {
3238
+ protoOf(ByteArrayPool$1).q1r = function () {
2980
3239
  return new Int8Array(4096);
2981
3240
  };
2982
3241
  var properties_initialized_ByteArrayPool_kt_td6pfh;
@@ -2990,21 +3249,21 @@ function ObjectPool() {
2990
3249
  }
2991
3250
  function NoPoolImpl() {
2992
3251
  }
2993
- protoOf(NoPoolImpl).e1r = function (instance) {
3252
+ protoOf(NoPoolImpl).y1r = function (instance) {
2994
3253
  return Unit_instance;
2995
3254
  };
2996
- protoOf(NoPoolImpl).fv = function () {
3255
+ protoOf(NoPoolImpl).tv = function () {
2997
3256
  return Unit_instance;
2998
3257
  };
2999
- function Companion_2() {
3258
+ function Companion_3() {
3000
3259
  }
3001
- protoOf(Companion_2).f1r = function (name) {
3260
+ protoOf(Companion_3).z1r = function (name) {
3002
3261
  switch (name) {
3003
3262
  case 'UTF-8':
3004
3263
  case 'utf-8':
3005
3264
  case 'UTF8':
3006
3265
  case 'utf8':
3007
- return Charsets_getInstance().o1q_1;
3266
+ return Charsets_getInstance().j1r_1;
3008
3267
  }
3009
3268
  var tmp;
3010
3269
  var tmp_0;
@@ -3035,66 +3294,16 @@ protoOf(Companion_2).f1r = function (name) {
3035
3294
  tmp = name === 'latin1' || name === 'Latin1';
3036
3295
  }
3037
3296
  if (tmp) {
3038
- return Charsets_getInstance().p1q_1;
3297
+ return Charsets_getInstance().k1r_1;
3039
3298
  }
3040
3299
  throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
3041
3300
  };
3042
- protoOf(Companion_2).g1r = function (charset) {
3043
- var tmp;
3044
- switch (charset) {
3045
- case 'UTF-8':
3046
- case 'utf-8':
3047
- case 'UTF8':
3048
- case 'utf8':
3049
- tmp = true;
3050
- break;
3051
- default:
3052
- var tmp_0;
3053
- var tmp_1;
3054
- switch (charset) {
3055
- case 'ISO-8859-1':
3056
- case 'iso-8859-1':
3057
- tmp_1 = true;
3058
- break;
3059
- default:
3060
- // Inline function 'kotlin.let' call
3061
-
3062
- var it = replace_0(charset, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
3063
- var tmp_2;
3064
- if (it === 'iso-8859-1') {
3065
- tmp_2 = true;
3066
- } else {
3067
- // Inline function 'kotlin.text.lowercase' call
3068
- // Inline function 'kotlin.js.asDynamic' call
3069
- tmp_2 = it.toLowerCase() === 'iso-8859-1';
3070
- }
3071
-
3072
- tmp_1 = tmp_2;
3073
- break;
3074
- }
3075
-
3076
- if (tmp_1) {
3077
- tmp_0 = true;
3078
- } else {
3079
- tmp_0 = charset === 'latin1';
3080
- }
3081
-
3082
- if (tmp_0) {
3083
- tmp = true;
3084
- } else {
3085
- tmp = false;
3086
- }
3087
-
3088
- break;
3089
- }
3090
- return tmp;
3091
- };
3092
- var Companion_instance_3;
3093
- function Companion_getInstance_2() {
3094
- return Companion_instance_3;
3301
+ var Companion_instance_4;
3302
+ function Companion_getInstance_3() {
3303
+ return Companion_instance_4;
3095
3304
  }
3096
3305
  function Charset(_name) {
3097
- this.q1q_1 = _name;
3306
+ this.l1r_1 = _name;
3098
3307
  }
3099
3308
  protoOf(Charset).equals = function (other) {
3100
3309
  if (this === other)
@@ -3103,18 +3312,18 @@ protoOf(Charset).equals = function (other) {
3103
3312
  return false;
3104
3313
  if (!(other instanceof Charset))
3105
3314
  THROW_CCE();
3106
- return this.q1q_1 === other.q1q_1;
3315
+ return this.l1r_1 === other.l1r_1;
3107
3316
  };
3108
3317
  protoOf(Charset).hashCode = function () {
3109
- return getStringHashCode(this.q1q_1);
3318
+ return getStringHashCode(this.l1r_1);
3110
3319
  };
3111
3320
  protoOf(Charset).toString = function () {
3112
- return this.q1q_1;
3321
+ return this.l1r_1;
3113
3322
  };
3114
3323
  function Charsets() {
3115
3324
  Charsets_instance = this;
3116
- this.o1q_1 = new CharsetImpl('UTF-8');
3117
- this.p1q_1 = new CharsetImpl('ISO-8859-1');
3325
+ this.j1r_1 = new CharsetImpl('UTF-8');
3326
+ this.k1r_1 = new CharsetImpl('ISO-8859-1');
3118
3327
  }
3119
3328
  var Charsets_instance;
3120
3329
  function Charsets_getInstance() {
@@ -3123,27 +3332,24 @@ function Charsets_getInstance() {
3123
3332
  return Charsets_instance;
3124
3333
  }
3125
3334
  function CharsetDecoder(_charset) {
3126
- this.h1r_1 = _charset;
3335
+ this.b1s_1 = _charset;
3127
3336
  }
3128
3337
  function MalformedInputException(message) {
3129
3338
  IOException_init_$Init$_0(message, this);
3130
3339
  captureStack(this, MalformedInputException);
3131
3340
  }
3132
3341
  function get_name(_this__u8e3s4) {
3133
- return _this__u8e3s4.q1q_1;
3134
- }
3135
- function isSupported(_this__u8e3s4, name) {
3136
- return Companion_instance_3.g1r(name);
3342
+ return _this__u8e3s4.l1r_1;
3137
3343
  }
3138
3344
  function forName(_this__u8e3s4, name) {
3139
- return Companion_instance_3.f1r(name);
3345
+ return Companion_instance_4.z1r(name);
3140
3346
  }
3141
3347
  function CharsetEncoder(_charset) {
3142
- this.i1r_1 = _charset;
3348
+ this.c1s_1 = _charset;
3143
3349
  }
3144
3350
  function decode_0(_this__u8e3s4, input, dst, max) {
3145
3351
  var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
3146
- var tmp0 = input.io().g1();
3352
+ var tmp0 = input.wo().g1();
3147
3353
  // Inline function 'kotlin.comparisons.minOf' call
3148
3354
  var b = fromInt(max);
3149
3355
  var count = tmp0 <= b ? tmp0 : b;
@@ -3153,7 +3359,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
3153
3359
  // Inline function 'org.khronos.webgl.toInt8Array' call
3154
3360
  // Inline function 'kotlin.js.unsafeCast' call
3155
3361
  // Inline function 'kotlin.js.asDynamic' call
3156
- tmp = decoder.j1r(array);
3362
+ tmp = decoder.d1s(array);
3157
3363
  } catch ($p) {
3158
3364
  var tmp_0;
3159
3365
  if ($p instanceof Error) {
@@ -3175,11 +3381,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
3175
3381
  var message = 'Failed requirement.';
3176
3382
  throw IllegalArgumentException_init_$Create$(toString_1(message));
3177
3383
  }
3178
- if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().p1q_1)) {
3384
+ if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().k1r_1)) {
3179
3385
  return encodeISO88591(input, fromIndex, toIndex, dst);
3180
3386
  }
3181
3387
  // Inline function 'kotlin.require' call
3182
- if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().o1q_1)) {
3388
+ if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().j1r_1)) {
3183
3389
  var message_0 = 'Only UTF-8 encoding is supported in JS';
3184
3390
  throw IllegalArgumentException_init_$Create$(toString_1(message_0));
3185
3391
  }
@@ -3189,7 +3395,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
3189
3395
  var result = encoder.encode(tmp$ret$5);
3190
3396
  // Inline function 'kotlin.js.unsafeCast' call
3191
3397
  // Inline function 'kotlin.js.asDynamic' call
3192
- dst.vp(result);
3398
+ dst.jq(result);
3193
3399
  return result.length;
3194
3400
  }
3195
3401
  function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
@@ -3200,17 +3406,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
3200
3406
  function CharsetImpl(name) {
3201
3407
  Charset.call(this, name);
3202
3408
  }
3203
- protoOf(CharsetImpl).s1q = function () {
3409
+ protoOf(CharsetImpl).m1r = function () {
3204
3410
  return new CharsetEncoderImpl(this);
3205
3411
  };
3206
- protoOf(CharsetImpl).r1q = function () {
3412
+ protoOf(CharsetImpl).a1s = function () {
3207
3413
  return new CharsetDecoderImpl(this);
3208
3414
  };
3209
3415
  function get_charset(_this__u8e3s4) {
3210
- return _this__u8e3s4.h1r_1;
3416
+ return _this__u8e3s4.b1s_1;
3211
3417
  }
3212
3418
  function get_charset_0(_this__u8e3s4) {
3213
- return _this__u8e3s4.i1r_1;
3419
+ return _this__u8e3s4.c1s_1;
3214
3420
  }
3215
3421
  function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
3216
3422
  fromIndex = fromIndex === VOID ? 0 : fromIndex;
@@ -3229,39 +3435,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
3229
3435
  }
3230
3436
  function CharsetEncoderImpl(charset) {
3231
3437
  CharsetEncoder.call(this, charset);
3232
- this.m1r_1 = charset;
3438
+ this.g1s_1 = charset;
3233
3439
  }
3234
3440
  protoOf(CharsetEncoderImpl).toString = function () {
3235
- return 'CharsetEncoderImpl(charset=' + this.m1r_1.toString() + ')';
3441
+ return 'CharsetEncoderImpl(charset=' + this.g1s_1.toString() + ')';
3236
3442
  };
3237
3443
  protoOf(CharsetEncoderImpl).hashCode = function () {
3238
- return this.m1r_1.hashCode();
3444
+ return this.g1s_1.hashCode();
3239
3445
  };
3240
3446
  protoOf(CharsetEncoderImpl).equals = function (other) {
3241
3447
  if (this === other)
3242
3448
  return true;
3243
3449
  if (!(other instanceof CharsetEncoderImpl))
3244
3450
  return false;
3245
- if (!this.m1r_1.equals(other.m1r_1))
3451
+ if (!this.g1s_1.equals(other.g1s_1))
3246
3452
  return false;
3247
3453
  return true;
3248
3454
  };
3249
3455
  function CharsetDecoderImpl(charset) {
3250
3456
  CharsetDecoder.call(this, charset);
3251
- this.o1r_1 = charset;
3457
+ this.i1s_1 = charset;
3252
3458
  }
3253
3459
  protoOf(CharsetDecoderImpl).toString = function () {
3254
- return 'CharsetDecoderImpl(charset=' + this.o1r_1.toString() + ')';
3460
+ return 'CharsetDecoderImpl(charset=' + this.i1s_1.toString() + ')';
3255
3461
  };
3256
3462
  protoOf(CharsetDecoderImpl).hashCode = function () {
3257
- return this.o1r_1.hashCode();
3463
+ return this.i1s_1.hashCode();
3258
3464
  };
3259
3465
  protoOf(CharsetDecoderImpl).equals = function (other) {
3260
3466
  if (this === other)
3261
3467
  return true;
3262
3468
  if (!(other instanceof CharsetDecoderImpl))
3263
3469
  return false;
3264
- if (!this.o1r_1.equals(other.o1r_1))
3470
+ if (!this.i1s_1.equals(other.i1s_1))
3265
3471
  return false;
3266
3472
  return true;
3267
3473
  };
@@ -3295,10 +3501,10 @@ function textDecoderOptions(fatal) {
3295
3501
  return this_0;
3296
3502
  }
3297
3503
  function toKtor$1($this_toKtor) {
3298
- this.p1r_1 = $this_toKtor;
3504
+ this.j1s_1 = $this_toKtor;
3299
3505
  }
3300
- protoOf(toKtor$1).j1r = function (buffer) {
3301
- return this.p1r_1.decode(buffer);
3506
+ protoOf(toKtor$1).d1s = function (buffer) {
3507
+ return this.j1s_1.decode(buffer);
3302
3508
  };
3303
3509
  function get_ENCODING_ALIASES() {
3304
3510
  _init_properties_TextDecoderFallback_js_kt__an7r6m();
@@ -3311,7 +3517,7 @@ function get_REPLACEMENT() {
3311
3517
  }
3312
3518
  var REPLACEMENT;
3313
3519
  function TextDecoderFallback(encoding, fatal) {
3314
- this.q1r_1 = fatal;
3520
+ this.k1s_1 = fatal;
3315
3521
  // Inline function 'kotlin.text.trim' call
3316
3522
  // Inline function 'kotlin.text.lowercase' call
3317
3523
  // Inline function 'kotlin.js.asDynamic' call
@@ -3322,7 +3528,7 @@ function TextDecoderFallback(encoding, fatal) {
3322
3528
  throw IllegalStateException_init_$Create$(toString_1(message));
3323
3529
  }
3324
3530
  }
3325
- protoOf(TextDecoderFallback).j1r = function (buffer) {
3531
+ protoOf(TextDecoderFallback).d1s = function (buffer) {
3326
3532
  // Inline function 'io.ktor.utils.io.core.buildPacket' call
3327
3533
  var builder = new Buffer();
3328
3534
  var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
@@ -3338,7 +3544,7 @@ protoOf(TextDecoderFallback).j1r = function (buffer) {
3338
3544
  var point = toCodePoint(byte);
3339
3545
  if (point < 0) {
3340
3546
  // Inline function 'kotlin.check' call
3341
- if (!!this.q1r_1) {
3547
+ if (!!this.k1s_1) {
3342
3548
  var message = 'Invalid character: ' + point;
3343
3549
  throw IllegalStateException_init_$Create$(toString_1(message));
3344
3550
  }
@@ -3346,9 +3552,9 @@ protoOf(TextDecoderFallback).j1r = function (buffer) {
3346
3552
  continue $l$loop;
3347
3553
  }
3348
3554
  if (point > 255) {
3349
- builder.cq(toByte(point >> 8));
3555
+ builder.qq(toByte(point >> 8));
3350
3556
  }
3351
- builder.cq(toByte(point & 255));
3557
+ builder.qq(toByte(point & 255));
3352
3558
  }
3353
3559
  while (inductionVariable < last);
3354
3560
  return decodeToString(readByteArray_0(builder));
@@ -3374,11 +3580,25 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
3374
3580
  REPLACEMENT = new Int8Array([-17, -65, -67]);
3375
3581
  }
3376
3582
  }
3583
+ function readText_0(_this__u8e3s4, charset, max) {
3584
+ charset = charset === VOID ? Charsets_getInstance().j1r_1 : charset;
3585
+ max = max === VOID ? 2147483647 : max;
3586
+ if (charset.equals(Charsets_getInstance().j1r_1)) {
3587
+ if (max === 2147483647)
3588
+ return readString_1(_this__u8e3s4);
3589
+ var tmp0 = _this__u8e3s4.wo().g1();
3590
+ // Inline function 'kotlin.math.min' call
3591
+ var b = fromInt(max);
3592
+ var count = tmp0 <= b ? tmp0 : b;
3593
+ return readString(_this__u8e3s4, count);
3594
+ }
3595
+ return decode(charset.a1s(), _this__u8e3s4, max);
3596
+ }
3377
3597
  function get_DEVELOPMENT_MODE() {
3378
3598
  return false;
3379
3599
  }
3380
3600
  function ioDispatcher() {
3381
- return Dispatchers_getInstance().j12_1;
3601
+ return Dispatchers_getInstance().x12_1;
3382
3602
  }
3383
3603
  function encodeISO88591(input, fromIndex, toIndex, dst) {
3384
3604
  if (fromIndex >= toIndex)
@@ -3394,7 +3614,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
3394
3614
  if (character > 255) {
3395
3615
  failedToMapError(character);
3396
3616
  }
3397
- dst.cq(toByte(character));
3617
+ dst.qq(toByte(character));
3398
3618
  }
3399
3619
  while (inductionVariable < toIndex);
3400
3620
  return toIndex - fromIndex | 0;
@@ -3416,93 +3636,93 @@ function _init_properties_Win1252Table_kt__tl0v64() {
3416
3636
  }
3417
3637
  }
3418
3638
  function DefaultPool(capacity) {
3419
- this.x1q_1 = capacity;
3639
+ this.r1r_1 = capacity;
3420
3640
  var tmp = this;
3421
3641
  // Inline function 'kotlin.arrayOfNulls' call
3422
- var size = this.x1q_1;
3423
- tmp.y1q_1 = Array(size);
3424
- this.z1q_1 = 0;
3642
+ var size = this.r1r_1;
3643
+ tmp.s1r_1 = Array(size);
3644
+ this.t1r_1 = 0;
3425
3645
  }
3426
- protoOf(DefaultPool).a1r = function (instance) {
3646
+ protoOf(DefaultPool).u1r = function (instance) {
3427
3647
  };
3428
- protoOf(DefaultPool).b1r = function (instance) {
3648
+ protoOf(DefaultPool).v1r = function (instance) {
3429
3649
  return instance;
3430
3650
  };
3431
- protoOf(DefaultPool).c1r = function (instance) {
3651
+ protoOf(DefaultPool).w1r = function (instance) {
3432
3652
  };
3433
- protoOf(DefaultPool).d1r = function () {
3434
- if (this.z1q_1 === 0)
3435
- return this.w1q();
3436
- this.z1q_1 = this.z1q_1 - 1 | 0;
3437
- var idx = this.z1q_1;
3438
- var tmp = this.y1q_1[idx];
3653
+ protoOf(DefaultPool).x1r = function () {
3654
+ if (this.t1r_1 === 0)
3655
+ return this.q1r();
3656
+ this.t1r_1 = this.t1r_1 - 1 | 0;
3657
+ var idx = this.t1r_1;
3658
+ var tmp = this.s1r_1[idx];
3439
3659
  var instance = !(tmp == null) ? tmp : THROW_CCE();
3440
- this.y1q_1[idx] = null;
3441
- return this.b1r(instance);
3660
+ this.s1r_1[idx] = null;
3661
+ return this.v1r(instance);
3442
3662
  };
3443
- protoOf(DefaultPool).e1r = function (instance) {
3444
- this.c1r(instance);
3445
- if (this.z1q_1 === this.x1q_1) {
3446
- this.a1r(instance);
3663
+ protoOf(DefaultPool).y1r = function (instance) {
3664
+ this.w1r(instance);
3665
+ if (this.t1r_1 === this.r1r_1) {
3666
+ this.u1r(instance);
3447
3667
  } else {
3448
- var _unary__edvuaz = this.z1q_1;
3449
- this.z1q_1 = _unary__edvuaz + 1 | 0;
3450
- this.y1q_1[_unary__edvuaz] = instance;
3668
+ var _unary__edvuaz = this.t1r_1;
3669
+ this.t1r_1 = _unary__edvuaz + 1 | 0;
3670
+ this.s1r_1[_unary__edvuaz] = instance;
3451
3671
  }
3452
3672
  };
3453
- protoOf(DefaultPool).fv = function () {
3673
+ protoOf(DefaultPool).tv = function () {
3454
3674
  var inductionVariable = 0;
3455
- var last = this.z1q_1;
3675
+ var last = this.t1r_1;
3456
3676
  if (inductionVariable < last)
3457
3677
  do {
3458
3678
  var i = inductionVariable;
3459
3679
  inductionVariable = inductionVariable + 1 | 0;
3460
- var tmp = this.y1q_1[i];
3680
+ var tmp = this.s1r_1[i];
3461
3681
  var instance = !(tmp == null) ? tmp : THROW_CCE();
3462
- this.y1q_1[i] = null;
3463
- this.a1r(instance);
3682
+ this.s1r_1[i] = null;
3683
+ this.u1r(instance);
3464
3684
  }
3465
3685
  while (inductionVariable < last);
3466
- this.z1q_1 = 0;
3686
+ this.t1r_1 = 0;
3467
3687
  };
3468
3688
  //region block: post-declaration
3469
- protoOf(Read).n1e = resume;
3470
- protoOf(Read).o1e = resume_0;
3471
- protoOf(Write).n1e = resume;
3472
- protoOf(Write).o1e = resume_0;
3473
- protoOf(ByteChannel).t1g = awaitContent$default;
3474
- protoOf(ByteReadChannel$Companion$Empty$1).t1g = awaitContent$default;
3475
- protoOf(CountedByteReadChannel).t1g = awaitContent$default;
3476
- protoOf(SourceByteReadChannel).t1g = awaitContent$default;
3689
+ protoOf(Read).a1f = resume;
3690
+ protoOf(Read).b1f = resume_0;
3691
+ protoOf(Write).a1f = resume;
3692
+ protoOf(Write).b1f = resume_0;
3693
+ protoOf(ByteChannel).g1h = awaitContent$default;
3694
+ protoOf(ByteReadChannel$Companion$Empty$1).g1h = awaitContent$default;
3695
+ protoOf(CountedByteReadChannel).g1h = awaitContent$default;
3696
+ protoOf(SourceByteReadChannel).g1h = awaitContent$default;
3477
3697
  protoOf(DefaultPool).j4 = close;
3478
3698
  protoOf(NoPoolImpl).j4 = close;
3479
3699
  //endregion
3480
3700
  //region block: init
3481
3701
  Empty_instance = new Empty();
3482
- Companion_instance_3 = new Companion_2();
3702
+ Companion_instance_2 = new Companion_1();
3703
+ Companion_instance_4 = new Companion_3();
3483
3704
  //endregion
3484
3705
  //region block: exports
3485
3706
  export {
3486
- Charsets_getInstance as Charsets_getInstanceqkyjyusuh1b0,
3487
- Companion_getInstance_0 as Companion_getInstance16dzvgcii8pc4,
3488
- Companion_getInstance_1 as Companion_getInstanceu6i25dezdn6m,
3489
- copyTo as copyTo2si6ixg3c5rjz,
3490
- copyTo_0 as copyTo3d5z1yutz1t4g,
3491
- readAvailable as readAvailable2v9sgy82btrhn,
3492
- readLineStrictTo as readLineStrictTo1xxmy01uq4bp,
3493
- readPacket as readPacket1qzyfym3sry67,
3494
- readRemaining as readRemaining1u8soafhjma7y,
3495
- readUntil as readUntil3qqal0dj72fys,
3496
- skipIfFound as skipIfFound34xzbgurmhd09,
3497
- toByteArray as toByteArray39hw81iegcnuw,
3498
- writeFully as writeFully1yd4favg5iwxl,
3499
- writePacket as writePacket2srkw4h0yhov0,
3500
- LineEndingMode__plus_impl_ttpz2j as LineEndingMode__plus_impl_ttpz2jpqrbpe81vmkf,
3707
+ LineEndingMode__plus_impl_ttpz2j as LineEndingMode__plus_impl_ttpz2j3u2ebrlepd29o,
3708
+ Charsets_getInstance as Charsets_getInstance3jooo7e4x0j2x,
3709
+ Companion_getInstance_0 as Companion_getInstance25751un9ltd4f,
3710
+ Companion_getInstance_2 as Companion_getInstance33j3lym6q7yx7,
3711
+ copyTo as copyTo1e8cxw3cmqjst,
3712
+ copyTo_0 as copyTo3qvfg88wirbvt,
3713
+ readAvailable as readAvailable2yaaricqompas,
3714
+ readLineStrictTo as readLineStrictTo30g42df56og5l,
3715
+ readPacket as readPacket25aqlhslm04t6,
3716
+ readRemaining as readRemaining1kbpbgdrq25q1,
3717
+ readUntil as readUntil13nwpwqdlw2vo,
3718
+ skipIfFound as skipIfFound2z2la3mzzpubl,
3719
+ toByteArray as toByteArray1nbmiiav9igm0,
3720
+ writeFully as writeFullyuc6cd2hh6ex3,
3721
+ writePacket as writePacket3icztho1wkb6k,
3501
3722
  MalformedInputException as MalformedInputExceptionbvc6h5ij0ias,
3502
3723
  decode as decode1t43jmuxrxpmo,
3503
3724
  encode as encode35e4rpnc94tb5,
3504
3725
  forName as forName2faodmskqnoz5,
3505
- isSupported as isSupported2nf870ypy50et,
3506
3726
  get_name as get_name2f11g4r0d5pxp,
3507
3727
  BytePacketBuilder as BytePacketBuilder2biodf4wxvlba,
3508
3728
  build as buildjygoh729rhy8,
@@ -3519,18 +3739,21 @@ export {
3519
3739
  DefaultPool as DefaultPool2gb1fm4epwgu9,
3520
3740
  NoPoolImpl as NoPoolImplgos9n8jphzjp,
3521
3741
  ByteChannel as ByteChannel3cxdguezl3lu7,
3742
+ ByteReadChannel_0 as ByteReadChannel2ndu7k90iil3s,
3522
3743
  ByteReadChannel as ByteReadChannel1cb89sbyipkce,
3523
3744
  ByteReadChannel_1 as ByteReadChannel2wzou76jce72d,
3524
3745
  ClosedByteChannelException as ClosedByteChannelException3il8gfpye60w,
3525
3746
  WriterScope as WriterScope3b0bo1enaee6b,
3747
+ attachWriterJob as attachWriterJob2dr3tee7atoa9,
3526
3748
  cancel_0 as canceldn4b3cdqcfny,
3527
3749
  close_0 as close3semq7pafb42g,
3528
3750
  counted as counted3iniv3aql3f9n,
3529
3751
  invokeOnCompletion as invokeOnCompletion1ziuxzoag0iwj,
3530
3752
  ioDispatcher as ioDispatcher3b9pa3x0duop,
3531
3753
  readText as readText3frapgncbqrcg,
3754
+ rethrowCloseCauseIfNeeded as rethrowCloseCauseIfNeeded3ixo8wl4o3bz4,
3532
3755
  writer as writer1eia5its2a1fh,
3533
3756
  };
3534
3757
  //endregion
3535
3758
 
3536
-
3759
+ //# sourceMappingURL=ktor-ktor-io.mjs.map