@solibo/home-api 1.1.110 → 1.1.111

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 (41) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +777 -778
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
  3. package/kotlin-kotlin-stdlib.mjs +1329 -1746
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -0
  5. package/kotlinx-atomicfu.mjs +13 -13
  6. package/kotlinx-atomicfu.mjs.map +1 -1
  7. package/kotlinx-coroutines-core.mjs +2004 -1993
  8. package/kotlinx-coroutines-core.mjs.map +1 -1
  9. package/kotlinx-io-kotlinx-io-bytestring.mjs +42 -42
  10. package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
  11. package/kotlinx-io-kotlinx-io-core.mjs +629 -625
  12. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  13. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1934 -1944
  14. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  15. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1497 -1496
  16. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  17. package/ktor-ktor-client-content-negotiation.mjs +142 -142
  18. package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
  19. package/ktor-ktor-client-core.mjs +2181 -2080
  20. package/ktor-ktor-client-core.mjs.map +1 -1
  21. package/ktor-ktor-events.mjs +7 -7
  22. package/ktor-ktor-events.mjs.map +1 -1
  23. package/ktor-ktor-http-cio.mjs +380 -380
  24. package/ktor-ktor-http-cio.mjs.map +1 -1
  25. package/ktor-ktor-http.mjs +728 -728
  26. package/ktor-ktor-http.mjs.map +1 -1
  27. package/ktor-ktor-io.mjs +658 -658
  28. package/ktor-ktor-io.mjs.map +1 -1
  29. package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
  30. package/ktor-ktor-serialization-kotlinx.mjs +147 -146
  31. package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
  32. package/ktor-ktor-serialization.mjs +65 -66
  33. package/ktor-ktor-serialization.mjs.map +1 -1
  34. package/ktor-ktor-utils.mjs +1354 -788
  35. package/ktor-ktor-utils.mjs.map +1 -1
  36. package/ktor-ktor-websockets.mjs +425 -427
  37. package/ktor-ktor-websockets.mjs.map +1 -1
  38. package/package.json +1 -1
  39. package/solibo-sdk-sdk-home-api.d.mts +152 -151
  40. package/solibo-sdk-sdk-home-api.mjs +48826 -48700
  41. package/solibo-sdk-sdk-home-api.mjs.map +1 -1
@@ -1,42 +1,42 @@
1
1
  import {
2
- IndexOutOfBoundsException_init_$Create$1rd2xj3xtaoo6 as IndexOutOfBoundsException_init_$Create$,
3
- IllegalArgumentException_init_$Create$1j1aj36nbo0wg as IllegalArgumentException_init_$Create$,
2
+ IndexOutOfBoundsException_init_$Create$3tkfni2s7f1n7 as IndexOutOfBoundsException_init_$Create$,
3
+ IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
4
4
  subtract2orl8z9upxd9l as subtract,
5
- _Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
5
+ _Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
6
6
  charArrayOf27f4r3dozbrk1 as charArrayOf,
7
7
  protoOf180f3jzyo7rfj as protoOf,
8
8
  toString1pkumu07cwy4m as toString,
9
- Unit_instance28fytmsmm6r23 as Unit_instance,
9
+ Unit_instancev9v8hjid95df as Unit_instance,
10
10
  toShort36kaw0zjdq3ex as toShort,
11
11
  add2suhfggl4zvkk as add,
12
12
  ensureNotNull1e947j3ixpazm as ensureNotNull,
13
13
  fromInt2ii0rejb1w62w as fromInt,
14
14
  convertToInty04h231mmjoh as convertToInt,
15
- StringBuilder_init_$Create$39ouzl6b47q8d as StringBuilder_init_$Create$,
15
+ StringBuilder_init_$Create$3pdhqn0ol6juo as StringBuilder_init_$Create$,
16
16
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
17
17
  VOID3gxj6tk5isa35 as VOID,
18
- IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
18
+ IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
19
19
  AutoCloseable1l5p57f9lp7kv as AutoCloseable,
20
20
  objectCreate1ve4bgxiu4x98 as objectCreate,
21
21
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
22
22
  arrayCopytctsywo3h7gj as arrayCopy,
23
23
  toByte4i43936u611k as toByte,
24
- IllegalArgumentException_init_$Create$nai51bbwz5t9 as IllegalArgumentException_init_$Create$_0,
24
+ IllegalArgumentException_init_$Create$6m98491a698m as IllegalArgumentException_init_$Create$_0,
25
25
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
26
26
  initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
27
27
  multiply2k9eolhnz1bjv as multiply,
28
28
  charCodeAt1yspne1d8erbm as charCodeAt,
29
- Char__toInt_impl_vasixd3jl92hthlhyn7 as Char__toInt_impl_vasixd,
29
+ Char__toInt_impl_vasixdnyockrdnmht5 as Char__toInt_impl_vasixd,
30
30
  charArray2ujmm1qusno00 as charArray,
31
31
  numberToChar93r9buh19yek as numberToChar,
32
32
  concatToString3cxf0c1gqonpo as concatToString,
33
- Exception_init_$Init$22vtgic9oqkxe as Exception_init_$Init$,
33
+ Exception_init_$Init$1giio8zw2zqqc as Exception_init_$Init$,
34
34
  captureStack1fzi4aczwc4hg as captureStack,
35
- Exception_init_$Init$2jymvyiuv5u42 as Exception_init_$Init$_0,
36
- Exception_init_$Init$gwg5c35cbjjd as Exception_init_$Init$_1,
35
+ Exception_init_$Init$2jzug8qe36bgh as Exception_init_$Init$_0,
36
+ Exception_init_$Init$yhreacyvvc92 as Exception_init_$Init$_1,
37
37
  Exceptiondt2hlxn7j7vw as Exception,
38
38
  } from './kotlin-kotlin-stdlib.mjs';
39
- import { UnsafeByteStringOperations_instance35zx8xrp4hu2p as UnsafeByteStringOperations_instance } from './kotlinx-io-kotlinx-io-bytestring.mjs';
39
+ import { UnsafeByteStringOperations_instance8alnioa9o8zd as UnsafeByteStringOperations_instance } from './kotlinx-io-kotlinx-io-bytestring.mjs';
40
40
  //region block: imports
41
41
  var imul = Math.imul;
42
42
  //endregion
@@ -47,10 +47,10 @@ function write$default(source, startIndex, endIndex, $super) {
47
47
  endIndex = endIndex === VOID ? source.length : endIndex;
48
48
  var tmp;
49
49
  if ($super === VOID) {
50
- this.aq(source, startIndex, endIndex);
50
+ this.sp(source, startIndex, endIndex);
51
51
  tmp = Unit_instance;
52
52
  } else {
53
- tmp = $super.aq.call(this, source, startIndex, endIndex);
53
+ tmp = $super.sp.call(this, source, startIndex, endIndex);
54
54
  }
55
55
  return tmp;
56
56
  }
@@ -102,20 +102,20 @@ function throwEof($this, byteCount) {
102
102
  throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.g1().toString() + ', required: ' + byteCount.toString() + ')');
103
103
  }
104
104
  function Buffer() {
105
- this.no_1 = null;
106
- this.oo_1 = null;
107
- this.po_1 = 0n;
105
+ this.fo_1 = null;
106
+ this.go_1 = null;
107
+ this.ho_1 = 0n;
108
108
  }
109
109
  protoOf(Buffer).g1 = function () {
110
- return this.po_1;
110
+ return this.ho_1;
111
111
  };
112
- protoOf(Buffer).qo = function () {
112
+ protoOf(Buffer).io = function () {
113
113
  return this;
114
114
  };
115
- protoOf(Buffer).ro = function () {
115
+ protoOf(Buffer).jo = function () {
116
116
  return this.g1() === 0n;
117
117
  };
118
- protoOf(Buffer).so = function (byteCount) {
118
+ protoOf(Buffer).ko = function (byteCount) {
119
119
  // Inline function 'kotlin.require' call
120
120
  if (!(byteCount >= 0n)) {
121
121
  var message = 'byteCount: ' + byteCount.toString();
@@ -125,7 +125,7 @@ protoOf(Buffer).so = function (byteCount) {
125
125
  throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.g1().toString() + ', required: ' + byteCount.toString() + ')');
126
126
  }
127
127
  };
128
- protoOf(Buffer).to = function (byteCount) {
128
+ protoOf(Buffer).lo = function (byteCount) {
129
129
  // Inline function 'kotlin.require' call
130
130
  if (!(byteCount >= 0n)) {
131
131
  var message = 'byteCount: ' + byteCount.toString() + ' < 0';
@@ -133,8 +133,8 @@ protoOf(Buffer).to = function (byteCount) {
133
133
  }
134
134
  return this.g1() >= byteCount;
135
135
  };
136
- protoOf(Buffer).uo = function () {
137
- var tmp0_elvis_lhs = this.no_1;
136
+ protoOf(Buffer).mo = function () {
137
+ var tmp0_elvis_lhs = this.fo_1;
138
138
  var tmp;
139
139
  if (tmp0_elvis_lhs == null) {
140
140
  throwEof(this, 1n);
@@ -144,18 +144,18 @@ protoOf(Buffer).uo = function () {
144
144
  var segment = tmp;
145
145
  var segmentSize = segment.g1();
146
146
  if (segmentSize === 0) {
147
- this.cp();
148
- return this.uo();
147
+ this.uo();
148
+ return this.mo();
149
149
  }
150
- var v = segment.dp();
151
- this.po_1 = subtract(this.po_1, 1n);
150
+ var v = segment.vo();
151
+ this.ho_1 = subtract(this.ho_1, 1n);
152
152
  if (segmentSize === 1) {
153
- this.cp();
153
+ this.uo();
154
154
  }
155
155
  return v;
156
156
  };
157
- protoOf(Buffer).ep = function () {
158
- var tmp0_elvis_lhs = this.no_1;
157
+ protoOf(Buffer).wo = function () {
158
+ var tmp0_elvis_lhs = this.fo_1;
159
159
  var tmp;
160
160
  if (tmp0_elvis_lhs == null) {
161
161
  throwEof(this, 2n);
@@ -165,119 +165,121 @@ protoOf(Buffer).ep = function () {
165
165
  var segment = tmp;
166
166
  var segmentSize = segment.g1();
167
167
  if (segmentSize < 2) {
168
- this.so(2n);
168
+ this.ko(2n);
169
169
  if (segmentSize === 0) {
170
- this.cp();
171
- return this.ep();
170
+ this.uo();
171
+ return this.wo();
172
172
  }
173
173
  // Inline function 'kotlinx.io.and' call
174
- var tmp_0 = (this.uo() & 255) << 8;
174
+ var tmp_0 = (this.mo() & 255) << 8;
175
175
  // Inline function 'kotlinx.io.and' call
176
- var tmp$ret$1 = this.uo() & 255;
176
+ var tmp$ret$1 = this.mo() & 255;
177
177
  return toShort(tmp_0 | tmp$ret$1);
178
178
  }
179
- var v = segment.fp();
180
- this.po_1 = subtract(this.po_1, 2n);
179
+ var v = segment.xo();
180
+ this.ho_1 = subtract(this.ho_1, 2n);
181
181
  if (segmentSize === 2) {
182
- this.cp();
182
+ this.uo();
183
183
  }
184
184
  return v;
185
185
  };
186
- protoOf(Buffer).gp = function () {
186
+ protoOf(Buffer).yo = function () {
187
187
  return Unit_instance;
188
188
  };
189
- protoOf(Buffer).hp = function (out, startIndex, endIndex) {
189
+ protoOf(Buffer).zo = function (out, startIndex, endIndex) {
190
190
  checkBounds(this.g1(), startIndex, endIndex);
191
191
  if (startIndex === endIndex)
192
192
  return Unit_instance;
193
193
  var currentOffset = startIndex;
194
194
  var remainingByteCount = subtract(endIndex, startIndex);
195
- out.po_1 = add(out.po_1, remainingByteCount);
196
- var s = this.no_1;
197
- while (currentOffset >= fromInt(ensureNotNull(s).xo_1 - s.wo_1 | 0)) {
198
- currentOffset = subtract(currentOffset, fromInt(s.xo_1 - s.wo_1 | 0));
199
- s = s.ap_1;
195
+ out.ho_1 = add(out.ho_1, remainingByteCount);
196
+ var s = this.fo_1;
197
+ while (currentOffset >= fromInt(ensureNotNull(s).po_1 - s.oo_1 | 0)) {
198
+ currentOffset = subtract(currentOffset, fromInt(s.po_1 - s.oo_1 | 0));
199
+ s = s.so_1;
200
200
  }
201
201
  while (remainingByteCount > 0n) {
202
- var copy = ensureNotNull(s).ip();
203
- copy.wo_1 = copy.wo_1 + convertToInt(currentOffset) | 0;
202
+ var copy = ensureNotNull(s).ap();
203
+ copy.oo_1 = copy.oo_1 + convertToInt(currentOffset) | 0;
204
204
  var tmp = copy;
205
- var tmp0 = copy.wo_1 + convertToInt(remainingByteCount) | 0;
205
+ var tmp0 = copy.oo_1 + convertToInt(remainingByteCount) | 0;
206
206
  // Inline function 'kotlin.comparisons.minOf' call
207
- var b = copy.xo_1;
208
- tmp.xo_1 = Math.min(tmp0, b);
207
+ var b = copy.po_1;
208
+ tmp.po_1 = Math.min(tmp0, b);
209
209
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
210
- if (out.no_1 == null) {
211
- out.no_1 = copy;
212
- out.oo_1 = copy;
210
+ if (out.fo_1 == null) {
211
+ out.fo_1 = copy;
212
+ out.go_1 = copy;
213
213
  } else if (false) {
214
- out.oo_1 = ensureNotNull(out.oo_1).jp(copy).kp();
215
- if (ensureNotNull(out.oo_1).bp_1 == null) {
216
- out.no_1 = out.oo_1;
214
+ out.go_1 = ensureNotNull(out.go_1).bp(copy).cp();
215
+ if (ensureNotNull(out.go_1).to_1 == null) {
216
+ out.fo_1 = out.go_1;
217
217
  }
218
218
  } else {
219
- out.oo_1 = ensureNotNull(out.oo_1).jp(copy);
219
+ out.go_1 = ensureNotNull(out.go_1).bp(copy);
220
220
  }
221
- remainingByteCount = subtract(remainingByteCount, fromInt(copy.xo_1 - copy.wo_1 | 0));
221
+ remainingByteCount = subtract(remainingByteCount, fromInt(copy.po_1 - copy.oo_1 | 0));
222
222
  currentOffset = 0n;
223
- s = s.ap_1;
223
+ s = s.so_1;
224
224
  }
225
225
  };
226
- protoOf(Buffer).lp = function () {
226
+ protoOf(Buffer).dp = function () {
227
227
  var result = this.g1();
228
228
  if (result === 0n)
229
229
  return 0n;
230
- var tail = ensureNotNull(this.oo_1);
231
- if (tail.xo_1 < 8192 && tail.zo_1) {
232
- result = subtract(result, fromInt(tail.xo_1 - tail.wo_1 | 0));
230
+ var tail = ensureNotNull(this.go_1);
231
+ if (tail.po_1 < 8192 && tail.ro_1) {
232
+ result = subtract(result, fromInt(tail.po_1 - tail.oo_1 | 0));
233
233
  }
234
234
  return result;
235
235
  };
236
- protoOf(Buffer).mp = function (position) {
236
+ protoOf(Buffer).ep = function (position) {
237
237
  if (position < 0n || position >= this.g1()) {
238
238
  throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.g1().toString() + '))');
239
239
  }
240
240
  if (position === 0n) {
241
- return ensureNotNull(this.no_1).np(0);
242
- }
243
- // Inline function 'kotlinx.io.seek' call
244
- if (this.no_1 == null) {
245
- return ensureNotNull(null).np(convertToInt(subtract(position, -1n)));
246
- }
247
- if (subtract(this.g1(), position) < position) {
248
- var s = this.oo_1;
249
- var offset = this.g1();
250
- $l$loop: while (!(s == null) && offset > position) {
251
- offset = subtract(offset, fromInt(s.xo_1 - s.wo_1 | 0));
252
- if (offset <= position)
253
- break $l$loop;
254
- s = s.bp_1;
241
+ return ensureNotNull(this.fo_1).fp(0);
242
+ }
243
+ $l$block_1: {
244
+ // Inline function 'kotlinx.io.seek' call
245
+ if (this.fo_1 == null) {
246
+ return ensureNotNull(null).fp(convertToInt(subtract(position, -1n)));
255
247
  }
256
- var tmp0 = s;
257
- var offset_0 = offset;
258
- return ensureNotNull(tmp0).np(convertToInt(subtract(position, offset_0)));
259
- } else {
260
- var s_0 = this.no_1;
261
- var offset_1 = 0n;
262
- $l$loop_0: while (!(s_0 == null)) {
263
- var tmp0_0 = offset_1;
264
- // Inline function 'kotlin.Long.plus' call
265
- var other = s_0.xo_1 - s_0.wo_1 | 0;
266
- var nextOffset = add(tmp0_0, fromInt(other));
267
- if (nextOffset > position)
268
- break $l$loop_0;
269
- s_0 = s_0.ap_1;
270
- offset_1 = nextOffset;
248
+ if (subtract(this.g1(), position) < position) {
249
+ var s = this.go_1;
250
+ var offset = this.g1();
251
+ $l$loop: while (!(s == null) && offset > position) {
252
+ offset = subtract(offset, fromInt(s.po_1 - s.oo_1 | 0));
253
+ if (offset <= position)
254
+ break $l$loop;
255
+ s = s.to_1;
256
+ }
257
+ var tmp0 = s;
258
+ var offset_0 = offset;
259
+ return ensureNotNull(tmp0).fp(convertToInt(subtract(position, offset_0)));
260
+ } else {
261
+ var s_0 = this.fo_1;
262
+ var offset_1 = 0n;
263
+ $l$loop_0: while (!(s_0 == null)) {
264
+ var tmp0_0 = offset_1;
265
+ // Inline function 'kotlin.Long.plus' call
266
+ var other = s_0.po_1 - s_0.oo_1 | 0;
267
+ var nextOffset = add(tmp0_0, fromInt(other));
268
+ if (nextOffset > position)
269
+ break $l$loop_0;
270
+ s_0 = s_0.so_1;
271
+ offset_1 = nextOffset;
272
+ }
273
+ var tmp0_1 = s_0;
274
+ var offset_2 = offset_1;
275
+ return ensureNotNull(tmp0_1).fp(convertToInt(subtract(position, offset_2)));
271
276
  }
272
- var tmp0_1 = s_0;
273
- var offset_2 = offset_1;
274
- return ensureNotNull(tmp0_1).np(convertToInt(subtract(position, offset_2)));
275
277
  }
276
278
  };
277
279
  protoOf(Buffer).n2 = function () {
278
- return this.op(this.g1());
280
+ return this.gp(this.g1());
279
281
  };
280
- protoOf(Buffer).op = function (byteCount) {
282
+ protoOf(Buffer).gp = function (byteCount) {
281
283
  // Inline function 'kotlinx.io.checkByteCount' call
282
284
  // Inline function 'kotlin.require' call
283
285
  if (!(byteCount >= 0n)) {
@@ -286,7 +288,7 @@ protoOf(Buffer).op = function (byteCount) {
286
288
  }
287
289
  var remainingByteCount = byteCount;
288
290
  while (remainingByteCount > 0n) {
289
- var tmp0_elvis_lhs = this.no_1;
291
+ var tmp0_elvis_lhs = this.fo_1;
290
292
  var tmp;
291
293
  if (tmp0_elvis_lhs == null) {
292
294
  throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -296,24 +298,24 @@ protoOf(Buffer).op = function (byteCount) {
296
298
  var head = tmp;
297
299
  var tmp0 = remainingByteCount;
298
300
  // Inline function 'kotlinx.io.minOf' call
299
- var b = head.xo_1 - head.wo_1 | 0;
301
+ var b = head.po_1 - head.oo_1 | 0;
300
302
  // Inline function 'kotlin.comparisons.minOf' call
301
303
  var b_0 = fromInt(b);
302
- var tmp$ret$4 = tmp0 <= b_0 ? tmp0 : b_0;
303
- var toSkip = convertToInt(tmp$ret$4);
304
- this.po_1 = subtract(this.po_1, fromInt(toSkip));
304
+ var tmp$ret$3 = tmp0 <= b_0 ? tmp0 : b_0;
305
+ var toSkip = convertToInt(tmp$ret$3);
306
+ this.ho_1 = subtract(this.ho_1, fromInt(toSkip));
305
307
  remainingByteCount = subtract(remainingByteCount, fromInt(toSkip));
306
- head.wo_1 = head.wo_1 + toSkip | 0;
307
- if (head.wo_1 === head.xo_1) {
308
- this.cp();
308
+ head.oo_1 = head.oo_1 + toSkip | 0;
309
+ if (head.oo_1 === head.po_1) {
310
+ this.uo();
309
311
  }
310
312
  }
311
313
  };
312
- protoOf(Buffer).pp = function (sink, startIndex, endIndex) {
314
+ protoOf(Buffer).hp = function (sink, startIndex, endIndex) {
313
315
  // Inline function 'kotlinx.io.checkBounds' call
314
316
  var size = sink.length;
315
317
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
316
- var tmp0_elvis_lhs = this.no_1;
318
+ var tmp0_elvis_lhs = this.fo_1;
317
319
  var tmp;
318
320
  if (tmp0_elvis_lhs == null) {
319
321
  return -1;
@@ -325,14 +327,14 @@ protoOf(Buffer).pp = function (sink, startIndex, endIndex) {
325
327
  // Inline function 'kotlin.comparisons.minOf' call
326
328
  var b = s.g1();
327
329
  var toCopy = Math.min(tmp0, b);
328
- s.qp(sink, startIndex, startIndex + toCopy | 0);
329
- this.po_1 = subtract(this.po_1, fromInt(toCopy));
330
+ s.ip(sink, startIndex, startIndex + toCopy | 0);
331
+ this.ho_1 = subtract(this.ho_1, fromInt(toCopy));
330
332
  if (isEmpty(s)) {
331
- this.cp();
333
+ this.uo();
332
334
  }
333
335
  return toCopy;
334
336
  };
335
- protoOf(Buffer).rp = function (sink, byteCount) {
337
+ protoOf(Buffer).jp = function (sink, byteCount) {
336
338
  // Inline function 'kotlinx.io.checkByteCount' call
337
339
  // Inline function 'kotlin.require' call
338
340
  if (!(byteCount >= 0n)) {
@@ -342,10 +344,10 @@ protoOf(Buffer).rp = function (sink, byteCount) {
342
344
  if (this.g1() === 0n)
343
345
  return -1n;
344
346
  var bytesWritten = byteCount > this.g1() ? this.g1() : byteCount;
345
- sink.sp(this, bytesWritten);
347
+ sink.kp(this, bytesWritten);
346
348
  return bytesWritten;
347
349
  };
348
- protoOf(Buffer).tp = function (sink, byteCount) {
350
+ protoOf(Buffer).lp = function (sink, byteCount) {
349
351
  // Inline function 'kotlinx.io.checkByteCount' call
350
352
  // Inline function 'kotlin.require' call
351
353
  if (!(byteCount >= 0n)) {
@@ -353,62 +355,62 @@ protoOf(Buffer).tp = function (sink, byteCount) {
353
355
  throw IllegalArgumentException_init_$Create$(toString(message));
354
356
  }
355
357
  if (this.g1() < byteCount) {
356
- sink.sp(this, this.g1());
358
+ sink.kp(this, this.g1());
357
359
  throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.g1().toString() + ' bytes were written.');
358
360
  }
359
- sink.sp(this, byteCount);
361
+ sink.kp(this, byteCount);
360
362
  };
361
- protoOf(Buffer).up = function (sink) {
363
+ protoOf(Buffer).mp = function (sink) {
362
364
  var byteCount = this.g1();
363
365
  if (byteCount > 0n) {
364
- sink.sp(this, byteCount);
366
+ sink.kp(this, byteCount);
365
367
  }
366
368
  return byteCount;
367
369
  };
368
- protoOf(Buffer).vp = function () {
370
+ protoOf(Buffer).np = function () {
369
371
  return buffered(new PeekSource(this));
370
372
  };
371
- protoOf(Buffer).wp = function (minimumCapacity) {
373
+ protoOf(Buffer).op = function (minimumCapacity) {
372
374
  // Inline function 'kotlin.require' call
373
375
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
374
376
  var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
375
377
  throw IllegalArgumentException_init_$Create$(toString(message));
376
378
  }
377
- if (this.oo_1 == null) {
378
- var result = SegmentPool_instance.zp();
379
- this.no_1 = result;
380
- this.oo_1 = result;
379
+ if (this.go_1 == null) {
380
+ var result = SegmentPool_instance.rp();
381
+ this.fo_1 = result;
382
+ this.go_1 = result;
381
383
  return result;
382
384
  }
383
- var t = ensureNotNull(this.oo_1);
384
- if ((t.xo_1 + minimumCapacity | 0) > 8192 || !t.zo_1) {
385
- var newTail = t.jp(SegmentPool_instance.zp());
386
- this.oo_1 = newTail;
385
+ var t = ensureNotNull(this.go_1);
386
+ if ((t.po_1 + minimumCapacity | 0) > 8192 || !t.ro_1) {
387
+ var newTail = t.bp(SegmentPool_instance.rp());
388
+ this.go_1 = newTail;
387
389
  return newTail;
388
390
  }
389
391
  return t;
390
392
  };
391
- protoOf(Buffer).aq = function (source, startIndex, endIndex) {
393
+ protoOf(Buffer).sp = function (source, startIndex, endIndex) {
392
394
  // Inline function 'kotlinx.io.checkBounds' call
393
395
  var size = source.length;
394
396
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
395
397
  var currentOffset = startIndex;
396
398
  while (currentOffset < endIndex) {
397
- var tail = this.wp(1);
399
+ var tail = this.op(1);
398
400
  var tmp0 = endIndex - currentOffset | 0;
399
401
  // Inline function 'kotlin.comparisons.minOf' call
400
- var b = tail.bq();
402
+ var b = tail.tp();
401
403
  var toCopy = Math.min(tmp0, b);
402
- tail.cq(source, currentOffset, currentOffset + toCopy | 0);
404
+ tail.up(source, currentOffset, currentOffset + toCopy | 0);
403
405
  currentOffset = currentOffset + toCopy | 0;
404
406
  }
405
407
  var tmp = this;
406
- var tmp0_0 = this.po_1;
408
+ var tmp0_0 = this.ho_1;
407
409
  // Inline function 'kotlin.Long.plus' call
408
410
  var other = endIndex - startIndex | 0;
409
- tmp.po_1 = add(tmp0_0, fromInt(other));
411
+ tmp.ho_1 = add(tmp0_0, fromInt(other));
410
412
  };
411
- protoOf(Buffer).eq = function (source, byteCount) {
413
+ protoOf(Buffer).wp = function (source, byteCount) {
412
414
  // Inline function 'kotlinx.io.checkByteCount' call
413
415
  // Inline function 'kotlin.require' call
414
416
  if (!(byteCount >= 0n)) {
@@ -417,85 +419,85 @@ protoOf(Buffer).eq = function (source, byteCount) {
417
419
  }
418
420
  var remainingByteCount = byteCount;
419
421
  while (remainingByteCount > 0n) {
420
- var read = source.rp(this, remainingByteCount);
422
+ var read = source.jp(this, remainingByteCount);
421
423
  if (read === -1n) {
422
424
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + subtract(byteCount, remainingByteCount).toString() + ' were read.'));
423
425
  }
424
426
  remainingByteCount = subtract(remainingByteCount, read);
425
427
  }
426
428
  };
427
- protoOf(Buffer).sp = function (source, byteCount) {
429
+ protoOf(Buffer).kp = function (source, byteCount) {
428
430
  // Inline function 'kotlin.require' call
429
431
  if (!!(source === this)) {
430
432
  var message = 'source == this';
431
433
  throw IllegalArgumentException_init_$Create$(toString(message));
432
434
  }
433
- checkOffsetAndCount(source.po_1, 0n, byteCount);
435
+ checkOffsetAndCount(source.ho_1, 0n, byteCount);
434
436
  var remainingByteCount = byteCount;
435
437
  while (remainingByteCount > 0n) {
436
- if (remainingByteCount < fromInt(ensureNotNull(source.no_1).g1())) {
437
- var tail = this.oo_1;
438
+ if (remainingByteCount < fromInt(ensureNotNull(source.fo_1).g1())) {
439
+ var tail = this.go_1;
438
440
  var tmp;
439
- if (!(tail == null) && tail.zo_1) {
441
+ if (!(tail == null) && tail.ro_1) {
440
442
  var tmp0 = remainingByteCount;
441
443
  // Inline function 'kotlin.Long.plus' call
442
- var other = tail.xo_1;
444
+ var other = tail.po_1;
443
445
  var tmp0_0 = add(tmp0, fromInt(other));
444
446
  // Inline function 'kotlin.Long.minus' call
445
- var other_0 = tail.fq() ? 0 : tail.wo_1;
447
+ var other_0 = tail.xp() ? 0 : tail.oo_1;
446
448
  tmp = subtract(tmp0_0, fromInt(other_0)) <= 8192n;
447
449
  } else {
448
450
  tmp = false;
449
451
  }
450
452
  if (tmp) {
451
- ensureNotNull(source.no_1).hq(tail, convertToInt(remainingByteCount));
452
- source.po_1 = subtract(source.po_1, remainingByteCount);
453
- this.po_1 = add(this.po_1, remainingByteCount);
453
+ ensureNotNull(source.fo_1).zp(tail, convertToInt(remainingByteCount));
454
+ source.ho_1 = subtract(source.ho_1, remainingByteCount);
455
+ this.ho_1 = add(this.ho_1, remainingByteCount);
454
456
  return Unit_instance;
455
457
  } else {
456
- source.no_1 = ensureNotNull(source.no_1).gq(convertToInt(remainingByteCount));
458
+ source.fo_1 = ensureNotNull(source.fo_1).yp(convertToInt(remainingByteCount));
457
459
  }
458
460
  }
459
- var segmentToMove = ensureNotNull(source.no_1);
461
+ var segmentToMove = ensureNotNull(source.fo_1);
460
462
  var movedByteCount = fromInt(segmentToMove.g1());
461
- source.no_1 = segmentToMove.iq();
462
- if (source.no_1 == null) {
463
- source.oo_1 = null;
463
+ source.fo_1 = segmentToMove.aq();
464
+ if (source.fo_1 == null) {
465
+ source.go_1 = null;
464
466
  }
465
467
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
466
- if (this.no_1 == null) {
467
- this.no_1 = segmentToMove;
468
- this.oo_1 = segmentToMove;
468
+ if (this.fo_1 == null) {
469
+ this.fo_1 = segmentToMove;
470
+ this.go_1 = segmentToMove;
469
471
  } else if (true) {
470
- this.oo_1 = ensureNotNull(this.oo_1).jp(segmentToMove).kp();
471
- if (ensureNotNull(this.oo_1).bp_1 == null) {
472
- this.no_1 = this.oo_1;
472
+ this.go_1 = ensureNotNull(this.go_1).bp(segmentToMove).cp();
473
+ if (ensureNotNull(this.go_1).to_1 == null) {
474
+ this.fo_1 = this.go_1;
473
475
  }
474
476
  } else {
475
- this.oo_1 = ensureNotNull(this.oo_1).jp(segmentToMove);
477
+ this.go_1 = ensureNotNull(this.go_1).bp(segmentToMove);
476
478
  }
477
- source.po_1 = subtract(source.po_1, movedByteCount);
478
- this.po_1 = add(this.po_1, movedByteCount);
479
+ source.ho_1 = subtract(source.ho_1, movedByteCount);
480
+ this.ho_1 = add(this.ho_1, movedByteCount);
479
481
  remainingByteCount = subtract(remainingByteCount, movedByteCount);
480
482
  }
481
483
  };
482
- protoOf(Buffer).jq = function (source) {
484
+ protoOf(Buffer).bq = function (source) {
483
485
  var totalBytesRead = 0n;
484
486
  $l$loop: while (true) {
485
- var readCount = source.rp(this, 8192n);
487
+ var readCount = source.jp(this, 8192n);
486
488
  if (readCount === -1n)
487
489
  break $l$loop;
488
490
  totalBytesRead = add(totalBytesRead, readCount);
489
491
  }
490
492
  return totalBytesRead;
491
493
  };
492
- protoOf(Buffer).kq = function (byte) {
493
- this.wp(1).lq(byte);
494
- this.po_1 = add(this.po_1, 1n);
494
+ protoOf(Buffer).cq = function (byte) {
495
+ this.op(1).dq(byte);
496
+ this.ho_1 = add(this.ho_1, 1n);
495
497
  };
496
- protoOf(Buffer).mq = function (short) {
497
- this.wp(2).nq(short);
498
- this.po_1 = add(this.po_1, 2n);
498
+ protoOf(Buffer).eq = function (short) {
499
+ this.op(2).fq(short);
500
+ this.ho_1 = add(this.ho_1, 2n);
499
501
  };
500
502
  protoOf(Buffer).j4 = function () {
501
503
  return Unit_instance;
@@ -508,12 +510,12 @@ protoOf(Buffer).toString = function () {
508
510
  var b = this.g1();
509
511
  // Inline function 'kotlin.comparisons.minOf' call
510
512
  var a = fromInt(maxPrintableBytes);
511
- var tmp$ret$1 = a <= b ? a : b;
512
- var len = convertToInt(tmp$ret$1);
513
+ var tmp$ret$0 = a <= b ? a : b;
514
+ var len = convertToInt(tmp$ret$0);
513
515
  var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.g1() > fromInt(maxPrintableBytes) ? 1 : 0) | 0);
514
516
  var bytesWritten = 0;
515
517
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
516
- var curr = this.no_1;
518
+ var curr = this.fo_1;
517
519
  while (!(curr == null)) {
518
520
  var tmp0 = get_SegmentReadContextImpl();
519
521
  var segment = curr;
@@ -521,47 +523,47 @@ protoOf(Buffer).toString = function () {
521
523
  while (bytesWritten < len && idx < segment.g1()) {
522
524
  var _unary__edvuaz = idx;
523
525
  idx = _unary__edvuaz + 1 | 0;
524
- var b_0 = tmp0.oq(segment, _unary__edvuaz);
526
+ var b_0 = tmp0.gq(segment, _unary__edvuaz);
525
527
  bytesWritten = bytesWritten + 1 | 0;
526
528
  var tmp = get_HEX_DIGIT_CHARS();
527
529
  // Inline function 'kotlinx.io.shr' call
528
- var tmp$ret$2 = b_0 >> 4;
529
- var tmp_0 = builder.s(tmp[tmp$ret$2 & 15]);
530
+ var tmp$ret$4 = b_0 >> 4;
531
+ var tmp_0 = builder.s(tmp[tmp$ret$4 & 15]);
530
532
  var tmp_1 = get_HEX_DIGIT_CHARS();
531
533
  // Inline function 'kotlinx.io.and' call
532
- var tmp$ret$3 = b_0 & 15;
533
- tmp_0.s(tmp_1[tmp$ret$3]);
534
+ var tmp$ret$5 = b_0 & 15;
535
+ tmp_0.s(tmp_1[tmp$ret$5]);
534
536
  }
535
- curr = curr.ap_1;
537
+ curr = curr.so_1;
536
538
  }
537
539
  if (this.g1() > fromInt(maxPrintableBytes)) {
538
540
  builder.s(_Char___init__impl__6a9atx(8230));
539
541
  }
540
542
  return 'Buffer(size=' + this.g1().toString() + ' hex=' + builder.toString() + ')';
541
543
  };
542
- protoOf(Buffer).cp = function () {
543
- var oldHead = ensureNotNull(this.no_1);
544
- var nextHead = oldHead.ap_1;
545
- this.no_1 = nextHead;
544
+ protoOf(Buffer).uo = function () {
545
+ var oldHead = ensureNotNull(this.fo_1);
546
+ var nextHead = oldHead.so_1;
547
+ this.fo_1 = nextHead;
546
548
  if (nextHead == null) {
547
- this.oo_1 = null;
549
+ this.go_1 = null;
548
550
  } else {
549
- nextHead.bp_1 = null;
551
+ nextHead.to_1 = null;
550
552
  }
551
- oldHead.ap_1 = null;
552
- SegmentPool_instance.pq(oldHead);
553
+ oldHead.so_1 = null;
554
+ SegmentPool_instance.hq(oldHead);
553
555
  };
554
- protoOf(Buffer).qq = function () {
555
- var oldTail = ensureNotNull(this.oo_1);
556
- var newTail = oldTail.bp_1;
557
- this.oo_1 = newTail;
556
+ protoOf(Buffer).iq = function () {
557
+ var oldTail = ensureNotNull(this.go_1);
558
+ var newTail = oldTail.to_1;
559
+ this.go_1 = newTail;
558
560
  if (newTail == null) {
559
- this.no_1 = null;
561
+ this.fo_1 = null;
560
562
  } else {
561
- newTail.ap_1 = null;
563
+ newTail.so_1 = null;
562
564
  }
563
- oldTail.bp_1 = null;
564
- SegmentPool_instance.pq(oldTail);
565
+ oldTail.to_1 = null;
566
+ SegmentPool_instance.hq(oldTail);
565
567
  };
566
568
  function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
567
569
  startIndex = startIndex === VOID ? 0n : startIndex;
@@ -572,150 +574,152 @@ function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
572
574
  checkBounds(_this__u8e3s4.g1(), startIndex, endOffset);
573
575
  if (startIndex === endOffset)
574
576
  return -1n;
575
- // Inline function 'kotlinx.io.seek' call
576
- if (_this__u8e3s4.no_1 == null) {
577
- if (-1n === -1n) {
578
- return -1n;
579
- }
580
- var segment = null;
581
- var offset = -1n;
582
- do {
583
- // Inline function 'kotlin.check' call
584
- if (!(endOffset > offset)) {
585
- throw IllegalStateException_init_$Create$('Check failed.');
577
+ $l$block_1: {
578
+ // Inline function 'kotlinx.io.seek' call
579
+ if (_this__u8e3s4.fo_1 == null) {
580
+ if (-1n === -1n) {
581
+ return -1n;
586
582
  }
587
- ensureNotNull(segment);
588
- var tmp = segment;
589
- // Inline function 'kotlin.comparisons.maxOf' call
590
- var a = convertToInt(subtract(startIndex, offset));
591
- var tmp_0 = Math.max(a, 0);
592
- var tmp0 = segment.g1();
593
- // Inline function 'kotlin.comparisons.minOf' call
594
- var b_0 = convertToInt(subtract(endOffset, offset));
595
- var tmp$ret$3 = Math.min(tmp0, b_0);
596
- var idx = indexOf_0(tmp, byte, tmp_0, tmp$ret$3);
597
- if (!(idx === -1)) {
598
- return add(offset, fromInt(idx));
583
+ var segment = null;
584
+ var offset = -1n;
585
+ do {
586
+ // Inline function 'kotlin.check' call
587
+ if (!(endOffset > offset)) {
588
+ throw IllegalStateException_init_$Create$('Check failed.');
589
+ }
590
+ ensureNotNull(segment);
591
+ var tmp = segment;
592
+ // Inline function 'kotlin.comparisons.maxOf' call
593
+ var a = convertToInt(subtract(startIndex, offset));
594
+ var tmp_0 = Math.max(a, 0);
595
+ var tmp0 = segment.g1();
596
+ // Inline function 'kotlin.comparisons.minOf' call
597
+ var b_0 = convertToInt(subtract(endOffset, offset));
598
+ var tmp$ret$5 = Math.min(tmp0, b_0);
599
+ var idx = indexOf_0(tmp, byte, tmp_0, tmp$ret$5);
600
+ if (!(idx === -1)) {
601
+ return add(offset, fromInt(idx));
602
+ }
603
+ var tmp0_0 = offset;
604
+ // Inline function 'kotlin.Long.plus' call
605
+ var other = segment.g1();
606
+ offset = add(tmp0_0, fromInt(other));
607
+ segment = segment.so_1;
599
608
  }
600
- var tmp0_0 = offset;
601
- // Inline function 'kotlin.Long.plus' call
602
- var other = segment.g1();
603
- offset = add(tmp0_0, fromInt(other));
604
- segment = segment.ap_1;
605
- }
606
- while (!(segment == null) && offset < endOffset);
607
- return -1n;
608
- }
609
- if (subtract(_this__u8e3s4.g1(), startIndex) < startIndex) {
610
- var s = _this__u8e3s4.oo_1;
611
- var offset_0 = _this__u8e3s4.g1();
612
- $l$loop: while (!(s == null) && offset_0 > startIndex) {
613
- offset_0 = subtract(offset_0, fromInt(s.xo_1 - s.wo_1 | 0));
614
- if (offset_0 <= startIndex)
615
- break $l$loop;
616
- s = s.bp_1;
617
- }
618
- var tmp0_1 = s;
619
- var o = offset_0;
620
- if (o === -1n) {
609
+ while (!(segment == null) && offset < endOffset);
621
610
  return -1n;
622
611
  }
623
- var segment_0 = tmp0_1;
624
- var offset_1 = o;
625
- do {
626
- // Inline function 'kotlin.check' call
627
- if (!(endOffset > offset_1)) {
628
- throw IllegalStateException_init_$Create$('Check failed.');
612
+ if (subtract(_this__u8e3s4.g1(), startIndex) < startIndex) {
613
+ var s = _this__u8e3s4.go_1;
614
+ var offset_0 = _this__u8e3s4.g1();
615
+ $l$loop: while (!(s == null) && offset_0 > startIndex) {
616
+ offset_0 = subtract(offset_0, fromInt(s.po_1 - s.oo_1 | 0));
617
+ if (offset_0 <= startIndex)
618
+ break $l$loop;
619
+ s = s.to_1;
629
620
  }
630
- ensureNotNull(segment_0);
631
- var tmp_1 = segment_0;
632
- // Inline function 'kotlin.comparisons.maxOf' call
633
- var a_0 = convertToInt(subtract(startIndex, offset_1));
634
- var tmp_2 = Math.max(a_0, 0);
635
- var tmp0_2 = segment_0.g1();
636
- // Inline function 'kotlin.comparisons.minOf' call
637
- var b_1 = convertToInt(subtract(endOffset, offset_1));
638
- var tmp$ret$8 = Math.min(tmp0_2, b_1);
639
- var idx_0 = indexOf_0(tmp_1, byte, tmp_2, tmp$ret$8);
640
- if (!(idx_0 === -1)) {
641
- return add(offset_1, fromInt(idx_0));
621
+ var tmp0_1 = s;
622
+ var o = offset_0;
623
+ if (o === -1n) {
624
+ return -1n;
642
625
  }
643
- var tmp0_3 = offset_1;
644
- // Inline function 'kotlin.Long.plus' call
645
- var other_0 = segment_0.g1();
646
- offset_1 = add(tmp0_3, fromInt(other_0));
647
- segment_0 = segment_0.ap_1;
648
- }
649
- while (!(segment_0 == null) && offset_1 < endOffset);
650
- return -1n;
651
- } else {
652
- var s_0 = _this__u8e3s4.no_1;
653
- var offset_2 = 0n;
654
- $l$loop_0: while (!(s_0 == null)) {
655
- var tmp0_4 = offset_2;
656
- // Inline function 'kotlin.Long.plus' call
657
- var other_1 = s_0.xo_1 - s_0.wo_1 | 0;
658
- var nextOffset = add(tmp0_4, fromInt(other_1));
659
- if (nextOffset > startIndex)
660
- break $l$loop_0;
661
- s_0 = s_0.ap_1;
662
- offset_2 = nextOffset;
663
- }
664
- var tmp0_5 = s_0;
665
- var o_0 = offset_2;
666
- if (o_0 === -1n) {
626
+ var segment_0 = tmp0_1;
627
+ var offset_1 = o;
628
+ do {
629
+ // Inline function 'kotlin.check' call
630
+ if (!(endOffset > offset_1)) {
631
+ throw IllegalStateException_init_$Create$('Check failed.');
632
+ }
633
+ ensureNotNull(segment_0);
634
+ var tmp_1 = segment_0;
635
+ // Inline function 'kotlin.comparisons.maxOf' call
636
+ var a_0 = convertToInt(subtract(startIndex, offset_1));
637
+ var tmp_2 = Math.max(a_0, 0);
638
+ var tmp0_2 = segment_0.g1();
639
+ // Inline function 'kotlin.comparisons.minOf' call
640
+ var b_1 = convertToInt(subtract(endOffset, offset_1));
641
+ var tmp$ret$10 = Math.min(tmp0_2, b_1);
642
+ var idx_0 = indexOf_0(tmp_1, byte, tmp_2, tmp$ret$10);
643
+ if (!(idx_0 === -1)) {
644
+ return add(offset_1, fromInt(idx_0));
645
+ }
646
+ var tmp0_3 = offset_1;
647
+ // Inline function 'kotlin.Long.plus' call
648
+ var other_0 = segment_0.g1();
649
+ offset_1 = add(tmp0_3, fromInt(other_0));
650
+ segment_0 = segment_0.so_1;
651
+ }
652
+ while (!(segment_0 == null) && offset_1 < endOffset);
667
653
  return -1n;
668
- }
669
- var segment_1 = tmp0_5;
670
- var offset_3 = o_0;
671
- do {
672
- // Inline function 'kotlin.check' call
673
- if (!(endOffset > offset_3)) {
674
- throw IllegalStateException_init_$Create$('Check failed.');
654
+ } else {
655
+ var s_0 = _this__u8e3s4.fo_1;
656
+ var offset_2 = 0n;
657
+ $l$loop_0: while (!(s_0 == null)) {
658
+ var tmp0_4 = offset_2;
659
+ // Inline function 'kotlin.Long.plus' call
660
+ var other_1 = s_0.po_1 - s_0.oo_1 | 0;
661
+ var nextOffset = add(tmp0_4, fromInt(other_1));
662
+ if (nextOffset > startIndex)
663
+ break $l$loop_0;
664
+ s_0 = s_0.so_1;
665
+ offset_2 = nextOffset;
675
666
  }
676
- ensureNotNull(segment_1);
677
- var tmp_3 = segment_1;
678
- // Inline function 'kotlin.comparisons.maxOf' call
679
- var a_1 = convertToInt(subtract(startIndex, offset_3));
680
- var tmp_4 = Math.max(a_1, 0);
681
- var tmp0_6 = segment_1.g1();
682
- // Inline function 'kotlin.comparisons.minOf' call
683
- var b_2 = convertToInt(subtract(endOffset, offset_3));
684
- var tmp$ret$13 = Math.min(tmp0_6, b_2);
685
- var idx_1 = indexOf_0(tmp_3, byte, tmp_4, tmp$ret$13);
686
- if (!(idx_1 === -1)) {
687
- return add(offset_3, fromInt(idx_1));
667
+ var tmp0_5 = s_0;
668
+ var o_0 = offset_2;
669
+ if (o_0 === -1n) {
670
+ return -1n;
688
671
  }
689
- var tmp0_7 = offset_3;
690
- // Inline function 'kotlin.Long.plus' call
691
- var other_2 = segment_1.g1();
692
- offset_3 = add(tmp0_7, fromInt(other_2));
693
- segment_1 = segment_1.ap_1;
672
+ var segment_1 = tmp0_5;
673
+ var offset_3 = o_0;
674
+ do {
675
+ // Inline function 'kotlin.check' call
676
+ if (!(endOffset > offset_3)) {
677
+ throw IllegalStateException_init_$Create$('Check failed.');
678
+ }
679
+ ensureNotNull(segment_1);
680
+ var tmp_3 = segment_1;
681
+ // Inline function 'kotlin.comparisons.maxOf' call
682
+ var a_1 = convertToInt(subtract(startIndex, offset_3));
683
+ var tmp_4 = Math.max(a_1, 0);
684
+ var tmp0_6 = segment_1.g1();
685
+ // Inline function 'kotlin.comparisons.minOf' call
686
+ var b_2 = convertToInt(subtract(endOffset, offset_3));
687
+ var tmp$ret$16 = Math.min(tmp0_6, b_2);
688
+ var idx_1 = indexOf_0(tmp_3, byte, tmp_4, tmp$ret$16);
689
+ if (!(idx_1 === -1)) {
690
+ return add(offset_3, fromInt(idx_1));
691
+ }
692
+ var tmp0_7 = offset_3;
693
+ // Inline function 'kotlin.Long.plus' call
694
+ var other_2 = segment_1.g1();
695
+ offset_3 = add(tmp0_7, fromInt(other_2));
696
+ segment_1 = segment_1.so_1;
697
+ }
698
+ while (!(segment_1 == null) && offset_3 < endOffset);
699
+ return -1n;
694
700
  }
695
- while (!(segment_1 == null) && offset_3 < endOffset);
696
- return -1n;
697
701
  }
698
702
  }
699
703
  function readByteString(_this__u8e3s4, byteCount) {
700
- return UnsafeByteStringOperations_instance.mo(readByteArray_0(_this__u8e3s4, byteCount));
704
+ return UnsafeByteStringOperations_instance.eo(readByteArray_0(_this__u8e3s4, byteCount));
701
705
  }
702
706
  function buffered(_this__u8e3s4) {
703
707
  return new RealSource(_this__u8e3s4);
704
708
  }
705
709
  function PeekSource(upstream) {
706
- this.rq_1 = upstream;
707
- this.sq_1 = this.rq_1.qo();
708
- this.tq_1 = this.sq_1.no_1;
710
+ this.jq_1 = upstream;
711
+ this.kq_1 = this.jq_1.io();
712
+ this.lq_1 = this.kq_1.fo_1;
709
713
  var tmp = this;
710
- var tmp0_safe_receiver = this.sq_1.no_1;
711
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wo_1;
712
- tmp.uq_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
713
- this.vq_1 = false;
714
- this.wq_1 = 0n;
714
+ var tmp0_safe_receiver = this.kq_1.fo_1;
715
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.oo_1;
716
+ tmp.mq_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
717
+ this.nq_1 = false;
718
+ this.oq_1 = 0n;
715
719
  }
716
- protoOf(PeekSource).rp = function (sink, byteCount) {
720
+ protoOf(PeekSource).jp = function (sink, byteCount) {
717
721
  // Inline function 'kotlin.check' call
718
- if (!!this.vq_1) {
722
+ if (!!this.nq_1) {
719
723
  var message = 'Source is closed.';
720
724
  throw IllegalStateException_init_$Create$(toString(message));
721
725
  }
@@ -726,43 +730,43 @@ protoOf(PeekSource).rp = function (sink, byteCount) {
726
730
  throw IllegalArgumentException_init_$Create$(toString(message_0));
727
731
  }
728
732
  // Inline function 'kotlin.check' call
729
- if (!(this.tq_1 == null || (this.tq_1 === this.sq_1.no_1 && this.uq_1 === ensureNotNull(this.sq_1.no_1).wo_1))) {
733
+ if (!(this.lq_1 == null || (this.lq_1 === this.kq_1.fo_1 && this.mq_1 === ensureNotNull(this.kq_1.fo_1).oo_1))) {
730
734
  var message_1 = 'Peek source is invalid because upstream source was used';
731
735
  throw IllegalStateException_init_$Create$(toString(message_1));
732
736
  }
733
737
  if (byteCount === 0n)
734
738
  return 0n;
735
739
  // Inline function 'kotlin.Long.plus' call
736
- var this_0 = this.wq_1;
740
+ var this_0 = this.oq_1;
737
741
  var tmp$ret$7 = add(this_0, fromInt(1));
738
- if (!this.rq_1.to(tmp$ret$7))
742
+ if (!this.jq_1.lo(tmp$ret$7))
739
743
  return -1n;
740
- if (this.tq_1 == null && !(this.sq_1.no_1 == null)) {
741
- this.tq_1 = this.sq_1.no_1;
742
- this.uq_1 = ensureNotNull(this.sq_1.no_1).wo_1;
744
+ if (this.lq_1 == null && !(this.kq_1.fo_1 == null)) {
745
+ this.lq_1 = this.kq_1.fo_1;
746
+ this.mq_1 = ensureNotNull(this.kq_1.fo_1).oo_1;
743
747
  }
744
748
  // Inline function 'kotlin.comparisons.minOf' call
745
- var b = subtract(this.sq_1.g1(), this.wq_1);
749
+ var b = subtract(this.kq_1.g1(), this.oq_1);
746
750
  var toCopy = byteCount <= b ? byteCount : b;
747
- this.sq_1.hp(sink, this.wq_1, add(this.wq_1, toCopy));
748
- this.wq_1 = add(this.wq_1, toCopy);
751
+ this.kq_1.zo(sink, this.oq_1, add(this.oq_1, toCopy));
752
+ this.oq_1 = add(this.oq_1, toCopy);
749
753
  return toCopy;
750
754
  };
751
755
  protoOf(PeekSource).j4 = function () {
752
- this.vq_1 = true;
756
+ this.nq_1 = true;
753
757
  };
754
758
  function RealSource(source) {
755
- this.xq_1 = source;
756
- this.yq_1 = false;
757
- this.zq_1 = new Buffer();
759
+ this.pq_1 = source;
760
+ this.qq_1 = false;
761
+ this.rq_1 = new Buffer();
758
762
  }
759
- protoOf(RealSource).qo = function () {
760
- return this.zq_1;
763
+ protoOf(RealSource).io = function () {
764
+ return this.rq_1;
761
765
  };
762
- protoOf(RealSource).rp = function (sink, byteCount) {
766
+ protoOf(RealSource).jp = function (sink, byteCount) {
763
767
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
764
768
  // Inline function 'kotlin.check' call
765
- if (!!this.yq_1) {
769
+ if (!!this.qq_1) {
766
770
  var message = 'Source is closed.';
767
771
  throw IllegalStateException_init_$Create$(toString(message));
768
772
  }
@@ -771,33 +775,33 @@ protoOf(RealSource).rp = function (sink, byteCount) {
771
775
  var message_0 = 'byteCount: ' + byteCount.toString();
772
776
  throw IllegalArgumentException_init_$Create$(toString(message_0));
773
777
  }
774
- if (this.zq_1.g1() === 0n) {
775
- var read = this.xq_1.rp(this.zq_1, 8192n);
778
+ if (this.rq_1.g1() === 0n) {
779
+ var read = this.pq_1.jp(this.rq_1, 8192n);
776
780
  if (read === -1n)
777
781
  return -1n;
778
782
  }
779
783
  // Inline function 'kotlin.comparisons.minOf' call
780
- var b = this.zq_1.g1();
784
+ var b = this.rq_1.g1();
781
785
  var toRead = byteCount <= b ? byteCount : b;
782
- return this.zq_1.rp(sink, toRead);
786
+ return this.rq_1.jp(sink, toRead);
783
787
  };
784
- protoOf(RealSource).ro = function () {
788
+ protoOf(RealSource).jo = function () {
785
789
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
786
790
  // Inline function 'kotlin.check' call
787
- if (!!this.yq_1) {
791
+ if (!!this.qq_1) {
788
792
  var message = 'Source is closed.';
789
793
  throw IllegalStateException_init_$Create$(toString(message));
790
794
  }
791
- return this.zq_1.ro() && this.xq_1.rp(this.zq_1, 8192n) === -1n;
795
+ return this.rq_1.jo() && this.pq_1.jp(this.rq_1, 8192n) === -1n;
792
796
  };
793
- protoOf(RealSource).so = function (byteCount) {
794
- if (!this.to(byteCount))
797
+ protoOf(RealSource).ko = function (byteCount) {
798
+ if (!this.lo(byteCount))
795
799
  throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
796
800
  };
797
- protoOf(RealSource).to = function (byteCount) {
801
+ protoOf(RealSource).lo = function (byteCount) {
798
802
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
799
803
  // Inline function 'kotlin.check' call
800
- if (!!this.yq_1) {
804
+ if (!!this.qq_1) {
801
805
  var message = 'Source is closed.';
802
806
  throw IllegalStateException_init_$Create$(toString(message));
803
807
  }
@@ -806,91 +810,91 @@ protoOf(RealSource).to = function (byteCount) {
806
810
  var message_0 = 'byteCount: ' + byteCount.toString();
807
811
  throw IllegalArgumentException_init_$Create$(toString(message_0));
808
812
  }
809
- while (this.zq_1.g1() < byteCount) {
810
- if (this.xq_1.rp(this.zq_1, 8192n) === -1n)
813
+ while (this.rq_1.g1() < byteCount) {
814
+ if (this.pq_1.jp(this.rq_1, 8192n) === -1n)
811
815
  return false;
812
816
  }
813
817
  return true;
814
818
  };
815
- protoOf(RealSource).uo = function () {
816
- this.so(1n);
817
- return this.zq_1.uo();
819
+ protoOf(RealSource).mo = function () {
820
+ this.ko(1n);
821
+ return this.rq_1.mo();
818
822
  };
819
- protoOf(RealSource).pp = function (sink, startIndex, endIndex) {
823
+ protoOf(RealSource).hp = function (sink, startIndex, endIndex) {
820
824
  // Inline function 'kotlinx.io.checkBounds' call
821
825
  var size = sink.length;
822
826
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
823
- if (this.zq_1.g1() === 0n) {
824
- var read = this.xq_1.rp(this.zq_1, 8192n);
827
+ if (this.rq_1.g1() === 0n) {
828
+ var read = this.pq_1.jp(this.rq_1, 8192n);
825
829
  if (read === -1n)
826
830
  return -1;
827
831
  }
828
832
  var tmp0 = endIndex - startIndex | 0;
829
833
  // Inline function 'kotlinx.io.minOf' call
830
- var b = this.zq_1.g1();
834
+ var b = this.rq_1.g1();
831
835
  // Inline function 'kotlin.comparisons.minOf' call
832
836
  var a = fromInt(tmp0);
833
- var tmp$ret$2 = a <= b ? a : b;
834
- var toRead = convertToInt(tmp$ret$2);
835
- return this.zq_1.pp(sink, startIndex, startIndex + toRead | 0);
837
+ var tmp$ret$1 = a <= b ? a : b;
838
+ var toRead = convertToInt(tmp$ret$1);
839
+ return this.rq_1.hp(sink, startIndex, startIndex + toRead | 0);
836
840
  };
837
- protoOf(RealSource).tp = function (sink, byteCount) {
841
+ protoOf(RealSource).lp = function (sink, byteCount) {
838
842
  try {
839
- this.so(byteCount);
843
+ this.ko(byteCount);
840
844
  } catch ($p) {
841
845
  if ($p instanceof EOFException) {
842
846
  var e = $p;
843
- sink.sp(this.zq_1, this.zq_1.g1());
847
+ sink.kp(this.rq_1, this.rq_1.g1());
844
848
  throw e;
845
849
  } else {
846
850
  throw $p;
847
851
  }
848
852
  }
849
- this.zq_1.tp(sink, byteCount);
853
+ this.rq_1.lp(sink, byteCount);
850
854
  };
851
- protoOf(RealSource).up = function (sink) {
855
+ protoOf(RealSource).mp = function (sink) {
852
856
  var totalBytesWritten = 0n;
853
- while (!(this.xq_1.rp(this.zq_1, 8192n) === -1n)) {
854
- var emitByteCount = this.zq_1.lp();
857
+ while (!(this.pq_1.jp(this.rq_1, 8192n) === -1n)) {
858
+ var emitByteCount = this.rq_1.dp();
855
859
  if (emitByteCount > 0n) {
856
860
  totalBytesWritten = add(totalBytesWritten, emitByteCount);
857
- sink.sp(this.zq_1, emitByteCount);
861
+ sink.kp(this.rq_1, emitByteCount);
858
862
  }
859
863
  }
860
- if (this.zq_1.g1() > 0n) {
861
- totalBytesWritten = add(totalBytesWritten, this.zq_1.g1());
862
- sink.sp(this.zq_1, this.zq_1.g1());
864
+ if (this.rq_1.g1() > 0n) {
865
+ totalBytesWritten = add(totalBytesWritten, this.rq_1.g1());
866
+ sink.kp(this.rq_1, this.rq_1.g1());
863
867
  }
864
868
  return totalBytesWritten;
865
869
  };
866
- protoOf(RealSource).ep = function () {
867
- this.so(2n);
868
- return this.zq_1.ep();
870
+ protoOf(RealSource).wo = function () {
871
+ this.ko(2n);
872
+ return this.rq_1.wo();
869
873
  };
870
- protoOf(RealSource).vp = function () {
874
+ protoOf(RealSource).np = function () {
871
875
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
872
876
  // Inline function 'kotlin.check' call
873
- if (!!this.yq_1) {
877
+ if (!!this.qq_1) {
874
878
  var message = 'Source is closed.';
875
879
  throw IllegalStateException_init_$Create$(toString(message));
876
880
  }
877
881
  return buffered(new PeekSource(this));
878
882
  };
879
883
  protoOf(RealSource).j4 = function () {
880
- if (this.yq_1)
884
+ if (this.qq_1)
881
885
  return Unit_instance;
882
- this.yq_1 = true;
883
- this.xq_1.j4();
884
- this.zq_1.n2();
886
+ this.qq_1 = true;
887
+ this.pq_1.j4();
888
+ this.rq_1.n2();
885
889
  };
886
890
  protoOf(RealSource).toString = function () {
887
- return 'buffered(' + toString(this.xq_1) + ')';
891
+ return 'buffered(' + toString(this.pq_1) + ')';
888
892
  };
889
893
  function Segment_init_$Init$($this) {
890
894
  Segment.call($this);
891
- $this.vo_1 = new Int8Array(8192);
892
- $this.zo_1 = true;
893
- $this.yo_1 = null;
895
+ $this.no_1 = new Int8Array(8192);
896
+ $this.ro_1 = true;
897
+ $this.qo_1 = null;
894
898
  return $this;
895
899
  }
896
900
  function Segment_init_$Create$() {
@@ -898,87 +902,87 @@ function Segment_init_$Create$() {
898
902
  }
899
903
  function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
900
904
  Segment.call($this);
901
- $this.vo_1 = data;
902
- $this.wo_1 = pos;
903
- $this.xo_1 = limit;
904
- $this.yo_1 = shareToken;
905
- $this.zo_1 = owner;
905
+ $this.no_1 = data;
906
+ $this.oo_1 = pos;
907
+ $this.po_1 = limit;
908
+ $this.qo_1 = shareToken;
909
+ $this.ro_1 = owner;
906
910
  return $this;
907
911
  }
908
912
  function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
909
913
  return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
910
914
  }
911
915
  function Companion() {
912
- this.ar_1 = 8192;
913
- this.br_1 = 1024;
916
+ this.sq_1 = 8192;
917
+ this.tq_1 = 1024;
914
918
  }
915
- protoOf(Companion).cr = function () {
919
+ protoOf(Companion).uq = function () {
916
920
  return Segment_init_$Create$();
917
921
  };
918
922
  var Companion_instance;
919
923
  function Companion_getInstance() {
920
924
  return Companion_instance;
921
925
  }
922
- protoOf(Segment).fq = function () {
923
- var tmp0_safe_receiver = this.yo_1;
924
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dr();
926
+ protoOf(Segment).xp = function () {
927
+ var tmp0_safe_receiver = this.qo_1;
928
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vq();
925
929
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
926
930
  };
927
- protoOf(Segment).ip = function () {
928
- var tmp0_elvis_lhs = this.yo_1;
931
+ protoOf(Segment).ap = function () {
932
+ var tmp0_elvis_lhs = this.qo_1;
929
933
  var tmp;
930
934
  if (tmp0_elvis_lhs == null) {
931
935
  // Inline function 'kotlin.also' call
932
- var this_0 = SegmentPool_instance.er();
933
- this.yo_1 = this_0;
936
+ var this_0 = SegmentPool_instance.wq();
937
+ this.qo_1 = this_0;
934
938
  tmp = this_0;
935
939
  } else {
936
940
  tmp = tmp0_elvis_lhs;
937
941
  }
938
942
  var t = tmp;
939
- var tmp_0 = this.wo_1;
940
- var tmp_1 = this.xo_1;
943
+ var tmp_0 = this.oo_1;
944
+ var tmp_1 = this.po_1;
941
945
  // Inline function 'kotlin.also' call
942
- t.fr();
943
- return Segment_init_$Create$_0(this.vo_1, tmp_0, tmp_1, t, false);
946
+ t.xq();
947
+ return Segment_init_$Create$_0(this.no_1, tmp_0, tmp_1, t, false);
944
948
  };
945
- protoOf(Segment).iq = function () {
946
- var result = this.ap_1;
947
- if (!(this.bp_1 == null)) {
948
- ensureNotNull(this.bp_1).ap_1 = this.ap_1;
949
+ protoOf(Segment).aq = function () {
950
+ var result = this.so_1;
951
+ if (!(this.to_1 == null)) {
952
+ ensureNotNull(this.to_1).so_1 = this.so_1;
949
953
  }
950
- if (!(this.ap_1 == null)) {
951
- ensureNotNull(this.ap_1).bp_1 = this.bp_1;
954
+ if (!(this.so_1 == null)) {
955
+ ensureNotNull(this.so_1).to_1 = this.to_1;
952
956
  }
953
- this.ap_1 = null;
954
- this.bp_1 = null;
957
+ this.so_1 = null;
958
+ this.to_1 = null;
955
959
  return result;
956
960
  };
957
- protoOf(Segment).jp = function (segment) {
958
- segment.bp_1 = this;
959
- segment.ap_1 = this.ap_1;
960
- if (!(this.ap_1 == null)) {
961
- ensureNotNull(this.ap_1).bp_1 = segment;
961
+ protoOf(Segment).bp = function (segment) {
962
+ segment.to_1 = this;
963
+ segment.so_1 = this.so_1;
964
+ if (!(this.so_1 == null)) {
965
+ ensureNotNull(this.so_1).to_1 = segment;
962
966
  }
963
- this.ap_1 = segment;
967
+ this.so_1 = segment;
964
968
  return segment;
965
969
  };
966
- protoOf(Segment).gq = function (byteCount) {
970
+ protoOf(Segment).yp = function (byteCount) {
967
971
  // Inline function 'kotlin.require' call
968
- if (!(byteCount > 0 && byteCount <= (this.xo_1 - this.wo_1 | 0))) {
972
+ if (!(byteCount > 0 && byteCount <= (this.po_1 - this.oo_1 | 0))) {
969
973
  var message = 'byteCount out of range';
970
974
  throw IllegalArgumentException_init_$Create$(toString(message));
971
975
  }
972
976
  var prefix;
973
977
  if (byteCount >= 1024) {
974
- prefix = this.ip();
978
+ prefix = this.ap();
975
979
  } else {
976
- prefix = SegmentPool_instance.zp();
977
- var tmp0 = this.vo_1;
978
- var tmp2 = prefix.vo_1;
979
- var tmp5 = this.wo_1;
980
+ prefix = SegmentPool_instance.rp();
981
+ var tmp0 = this.no_1;
982
+ var tmp2 = prefix.no_1;
983
+ var tmp5 = this.oo_1;
980
984
  // Inline function 'kotlin.collections.copyInto' call
981
- var endIndex = this.wo_1 + byteCount | 0;
985
+ var endIndex = this.oo_1 + byteCount | 0;
982
986
  // Inline function 'kotlin.js.unsafeCast' call
983
987
  // Inline function 'kotlin.js.asDynamic' call
984
988
  var tmp = tmp0;
@@ -986,62 +990,62 @@ protoOf(Segment).gq = function (byteCount) {
986
990
  // Inline function 'kotlin.js.asDynamic' call
987
991
  arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
988
992
  }
989
- prefix.xo_1 = prefix.wo_1 + byteCount | 0;
990
- this.wo_1 = this.wo_1 + byteCount | 0;
991
- if (!(this.bp_1 == null)) {
992
- ensureNotNull(this.bp_1).jp(prefix);
993
+ prefix.po_1 = prefix.oo_1 + byteCount | 0;
994
+ this.oo_1 = this.oo_1 + byteCount | 0;
995
+ if (!(this.to_1 == null)) {
996
+ ensureNotNull(this.to_1).bp(prefix);
993
997
  } else {
994
- prefix.ap_1 = this;
995
- this.bp_1 = prefix;
998
+ prefix.so_1 = this;
999
+ this.to_1 = prefix;
996
1000
  }
997
1001
  return prefix;
998
1002
  };
999
- protoOf(Segment).kp = function () {
1003
+ protoOf(Segment).cp = function () {
1000
1004
  // Inline function 'kotlin.check' call
1001
- if (!!(this.bp_1 == null)) {
1005
+ if (!!(this.to_1 == null)) {
1002
1006
  var message = 'cannot compact';
1003
1007
  throw IllegalStateException_init_$Create$(toString(message));
1004
1008
  }
1005
- if (!ensureNotNull(this.bp_1).zo_1)
1009
+ if (!ensureNotNull(this.to_1).ro_1)
1006
1010
  return this;
1007
- var byteCount = this.xo_1 - this.wo_1 | 0;
1008
- var availableByteCount = (8192 - ensureNotNull(this.bp_1).xo_1 | 0) + (ensureNotNull(this.bp_1).fq() ? 0 : ensureNotNull(this.bp_1).wo_1) | 0;
1011
+ var byteCount = this.po_1 - this.oo_1 | 0;
1012
+ var availableByteCount = (8192 - ensureNotNull(this.to_1).po_1 | 0) + (ensureNotNull(this.to_1).xp() ? 0 : ensureNotNull(this.to_1).oo_1) | 0;
1009
1013
  if (byteCount > availableByteCount)
1010
1014
  return this;
1011
- var predecessor = this.bp_1;
1012
- this.hq(ensureNotNull(predecessor), byteCount);
1013
- var successor = this.iq();
1015
+ var predecessor = this.to_1;
1016
+ this.zp(ensureNotNull(predecessor), byteCount);
1017
+ var successor = this.aq();
1014
1018
  // Inline function 'kotlin.check' call
1015
1019
  if (!(successor == null)) {
1016
1020
  throw IllegalStateException_init_$Create$('Check failed.');
1017
1021
  }
1018
- SegmentPool_instance.pq(this);
1022
+ SegmentPool_instance.hq(this);
1019
1023
  return predecessor;
1020
1024
  };
1021
- protoOf(Segment).lq = function (byte) {
1022
- var _unary__edvuaz = this.xo_1;
1023
- this.xo_1 = _unary__edvuaz + 1 | 0;
1024
- this.vo_1[_unary__edvuaz] = byte;
1025
+ protoOf(Segment).dq = function (byte) {
1026
+ var _unary__edvuaz = this.po_1;
1027
+ this.po_1 = _unary__edvuaz + 1 | 0;
1028
+ this.no_1[_unary__edvuaz] = byte;
1025
1029
  };
1026
- protoOf(Segment).nq = function (short) {
1027
- var data = this.vo_1;
1028
- var limit = this.xo_1;
1030
+ protoOf(Segment).fq = function (short) {
1031
+ var data = this.no_1;
1032
+ var limit = this.po_1;
1029
1033
  var _unary__edvuaz = limit;
1030
1034
  limit = _unary__edvuaz + 1 | 0;
1031
1035
  data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
1032
1036
  var _unary__edvuaz_0 = limit;
1033
1037
  limit = _unary__edvuaz_0 + 1 | 0;
1034
1038
  data[_unary__edvuaz_0] = toByte(short & 255);
1035
- this.xo_1 = limit;
1039
+ this.po_1 = limit;
1036
1040
  };
1037
- protoOf(Segment).dp = function () {
1038
- var _unary__edvuaz = this.wo_1;
1039
- this.wo_1 = _unary__edvuaz + 1 | 0;
1040
- return this.vo_1[_unary__edvuaz];
1041
+ protoOf(Segment).vo = function () {
1042
+ var _unary__edvuaz = this.oo_1;
1043
+ this.oo_1 = _unary__edvuaz + 1 | 0;
1044
+ return this.no_1[_unary__edvuaz];
1041
1045
  };
1042
- protoOf(Segment).fp = function () {
1043
- var data = this.vo_1;
1044
- var pos = this.wo_1;
1046
+ protoOf(Segment).xo = function () {
1047
+ var data = this.no_1;
1048
+ var pos = this.oo_1;
1045
1049
  var _unary__edvuaz = pos;
1046
1050
  pos = _unary__edvuaz + 1 | 0;
1047
1051
  // Inline function 'kotlinx.io.and' call
@@ -1051,118 +1055,118 @@ protoOf(Segment).fp = function () {
1051
1055
  // Inline function 'kotlinx.io.and' call
1052
1056
  var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
1053
1057
  var s = toShort(tmp | tmp$ret$1);
1054
- this.wo_1 = pos;
1058
+ this.oo_1 = pos;
1055
1059
  return s;
1056
1060
  };
1057
- protoOf(Segment).hq = function (sink, byteCount) {
1061
+ protoOf(Segment).zp = function (sink, byteCount) {
1058
1062
  // Inline function 'kotlin.check' call
1059
- if (!sink.zo_1) {
1063
+ if (!sink.ro_1) {
1060
1064
  var message = 'only owner can write';
1061
1065
  throw IllegalStateException_init_$Create$(toString(message));
1062
1066
  }
1063
- if ((sink.xo_1 + byteCount | 0) > 8192) {
1064
- if (sink.fq())
1067
+ if ((sink.po_1 + byteCount | 0) > 8192) {
1068
+ if (sink.xp())
1065
1069
  throw IllegalArgumentException_init_$Create$_0();
1066
- if (((sink.xo_1 + byteCount | 0) - sink.wo_1 | 0) > 8192)
1070
+ if (((sink.po_1 + byteCount | 0) - sink.oo_1 | 0) > 8192)
1067
1071
  throw IllegalArgumentException_init_$Create$_0();
1068
- var tmp0 = sink.vo_1;
1069
- var tmp2 = sink.vo_1;
1070
- var tmp5 = sink.wo_1;
1072
+ var tmp0 = sink.no_1;
1073
+ var tmp2 = sink.no_1;
1074
+ var tmp5 = sink.oo_1;
1071
1075
  // Inline function 'kotlin.collections.copyInto' call
1072
- var endIndex = sink.xo_1;
1076
+ var endIndex = sink.po_1;
1073
1077
  // Inline function 'kotlin.js.unsafeCast' call
1074
1078
  // Inline function 'kotlin.js.asDynamic' call
1075
1079
  var tmp = tmp0;
1076
1080
  // Inline function 'kotlin.js.unsafeCast' call
1077
1081
  // Inline function 'kotlin.js.asDynamic' call
1078
1082
  arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
1079
- sink.xo_1 = sink.xo_1 - sink.wo_1 | 0;
1080
- sink.wo_1 = 0;
1083
+ sink.po_1 = sink.po_1 - sink.oo_1 | 0;
1084
+ sink.oo_1 = 0;
1081
1085
  }
1082
- var tmp0_0 = this.vo_1;
1083
- var tmp2_0 = sink.vo_1;
1084
- var tmp4 = sink.xo_1;
1085
- var tmp6 = this.wo_1;
1086
+ var tmp0_0 = this.no_1;
1087
+ var tmp2_0 = sink.no_1;
1088
+ var tmp4 = sink.po_1;
1089
+ var tmp6 = this.oo_1;
1086
1090
  // Inline function 'kotlin.collections.copyInto' call
1087
- var endIndex_0 = this.wo_1 + byteCount | 0;
1091
+ var endIndex_0 = this.oo_1 + byteCount | 0;
1088
1092
  // Inline function 'kotlin.js.unsafeCast' call
1089
1093
  // Inline function 'kotlin.js.asDynamic' call
1090
1094
  var tmp_0 = tmp0_0;
1091
1095
  // Inline function 'kotlin.js.unsafeCast' call
1092
1096
  // Inline function 'kotlin.js.asDynamic' call
1093
1097
  arrayCopy(tmp_0, tmp2_0, tmp4, tmp6, endIndex_0);
1094
- sink.xo_1 = sink.xo_1 + byteCount | 0;
1095
- this.wo_1 = this.wo_1 + byteCount | 0;
1098
+ sink.po_1 = sink.po_1 + byteCount | 0;
1099
+ this.oo_1 = this.oo_1 + byteCount | 0;
1096
1100
  };
1097
- protoOf(Segment).qp = function (dst, dstStartOffset, dstEndOffset) {
1101
+ protoOf(Segment).ip = function (dst, dstStartOffset, dstEndOffset) {
1098
1102
  var len = dstEndOffset - dstStartOffset | 0;
1099
- var tmp0 = this.vo_1;
1100
- var tmp6 = this.wo_1;
1103
+ var tmp0 = this.no_1;
1104
+ var tmp6 = this.oo_1;
1101
1105
  // Inline function 'kotlin.collections.copyInto' call
1102
- var endIndex = this.wo_1 + len | 0;
1106
+ var endIndex = this.oo_1 + len | 0;
1103
1107
  // Inline function 'kotlin.js.unsafeCast' call
1104
1108
  // Inline function 'kotlin.js.asDynamic' call
1105
1109
  var tmp = tmp0;
1106
1110
  // Inline function 'kotlin.js.unsafeCast' call
1107
1111
  // Inline function 'kotlin.js.asDynamic' call
1108
1112
  arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
1109
- this.wo_1 = this.wo_1 + len | 0;
1113
+ this.oo_1 = this.oo_1 + len | 0;
1110
1114
  };
1111
- protoOf(Segment).cq = function (src, srcStartOffset, srcEndOffset) {
1112
- var tmp2 = this.vo_1;
1115
+ protoOf(Segment).up = function (src, srcStartOffset, srcEndOffset) {
1116
+ var tmp2 = this.no_1;
1113
1117
  // Inline function 'kotlin.collections.copyInto' call
1114
- var destinationOffset = this.xo_1;
1118
+ var destinationOffset = this.po_1;
1115
1119
  // Inline function 'kotlin.js.unsafeCast' call
1116
1120
  // Inline function 'kotlin.js.asDynamic' call
1117
1121
  var tmp = src;
1118
1122
  // Inline function 'kotlin.js.unsafeCast' call
1119
1123
  // Inline function 'kotlin.js.asDynamic' call
1120
1124
  arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
1121
- this.xo_1 = this.xo_1 + (srcEndOffset - srcStartOffset | 0) | 0;
1125
+ this.po_1 = this.po_1 + (srcEndOffset - srcStartOffset | 0) | 0;
1122
1126
  };
1123
1127
  protoOf(Segment).g1 = function () {
1124
- return this.xo_1 - this.wo_1 | 0;
1128
+ return this.po_1 - this.oo_1 | 0;
1125
1129
  };
1126
- protoOf(Segment).bq = function () {
1127
- return this.vo_1.length - this.xo_1 | 0;
1130
+ protoOf(Segment).tp = function () {
1131
+ return this.no_1.length - this.po_1 | 0;
1128
1132
  };
1129
- protoOf(Segment).gr = function (readOnly) {
1130
- return this.vo_1;
1133
+ protoOf(Segment).yq = function (readOnly) {
1134
+ return this.no_1;
1131
1135
  };
1132
- protoOf(Segment).np = function (index) {
1133
- return this.vo_1[this.wo_1 + index | 0];
1136
+ protoOf(Segment).fp = function (index) {
1137
+ return this.no_1[this.oo_1 + index | 0];
1134
1138
  };
1135
- protoOf(Segment).hr = function (index, value) {
1136
- this.vo_1[this.xo_1 + index | 0] = value;
1139
+ protoOf(Segment).zq = function (index, value) {
1140
+ this.no_1[this.po_1 + index | 0] = value;
1137
1141
  };
1138
- protoOf(Segment).ir = function (index, b0, b1) {
1139
- var d = this.vo_1;
1140
- var l = this.xo_1;
1142
+ protoOf(Segment).ar = function (index, b0, b1) {
1143
+ var d = this.no_1;
1144
+ var l = this.po_1;
1141
1145
  d[l + index | 0] = b0;
1142
1146
  d[(l + index | 0) + 1 | 0] = b1;
1143
1147
  };
1144
- protoOf(Segment).jr = function (index, b0, b1, b2) {
1145
- var d = this.vo_1;
1146
- var l = this.xo_1;
1148
+ protoOf(Segment).br = function (index, b0, b1, b2) {
1149
+ var d = this.no_1;
1150
+ var l = this.po_1;
1147
1151
  d[l + index | 0] = b0;
1148
1152
  d[(l + index | 0) + 1 | 0] = b1;
1149
1153
  d[(l + index | 0) + 2 | 0] = b2;
1150
1154
  };
1151
- protoOf(Segment).kr = function (index, b0, b1, b2, b3) {
1152
- var d = this.vo_1;
1153
- var l = this.xo_1;
1155
+ protoOf(Segment).cr = function (index, b0, b1, b2, b3) {
1156
+ var d = this.no_1;
1157
+ var l = this.po_1;
1154
1158
  d[l + index | 0] = b0;
1155
1159
  d[(l + index | 0) + 1 | 0] = b1;
1156
1160
  d[(l + index | 0) + 2 | 0] = b2;
1157
1161
  d[(l + index | 0) + 3 | 0] = b3;
1158
1162
  };
1159
1163
  function Segment() {
1160
- this.wo_1 = 0;
1161
- this.xo_1 = 0;
1162
- this.yo_1 = null;
1163
- this.zo_1 = false;
1164
- this.ap_1 = null;
1165
- this.bp_1 = null;
1164
+ this.oo_1 = 0;
1165
+ this.po_1 = 0;
1166
+ this.qo_1 = null;
1167
+ this.ro_1 = false;
1168
+ this.so_1 = null;
1169
+ this.to_1 = null;
1166
1170
  }
1167
1171
  function isEmpty(_this__u8e3s4) {
1168
1172
  return _this__u8e3s4.g1() === 0;
@@ -1173,10 +1177,10 @@ function AlwaysSharedCopyTracker() {
1173
1177
  AlwaysSharedCopyTracker_instance = this;
1174
1178
  SegmentCopyTracker.call(this);
1175
1179
  }
1176
- protoOf(AlwaysSharedCopyTracker).dr = function () {
1180
+ protoOf(AlwaysSharedCopyTracker).vq = function () {
1177
1181
  return true;
1178
1182
  };
1179
- protoOf(AlwaysSharedCopyTracker).fr = function () {
1183
+ protoOf(AlwaysSharedCopyTracker).xq = function () {
1180
1184
  return Unit_instance;
1181
1185
  };
1182
1186
  var AlwaysSharedCopyTracker_instance;
@@ -1196,8 +1200,8 @@ function indexOf_0(_this__u8e3s4, byte, startOffset, endOffset) {
1196
1200
  var message_0 = '' + endOffset;
1197
1201
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1198
1202
  }
1199
- var p = _this__u8e3s4.wo_1;
1200
- var data = _this__u8e3s4.gr(true);
1203
+ var p = _this__u8e3s4.oo_1;
1204
+ var data = _this__u8e3s4.yq(true);
1201
1205
  var inductionVariable = startOffset;
1202
1206
  if (inductionVariable < endOffset)
1203
1207
  do {
@@ -1250,23 +1254,23 @@ function indexOf_1(_this__u8e3s4, byte, startIndex, endIndex) {
1250
1254
  // Inline function 'kotlin.Long.plus' call
1251
1255
  var this_0 = offset;
1252
1256
  var tmp$ret$2 = add(this_0, fromInt(1));
1253
- tmp_0 = _this__u8e3s4.to(tmp$ret$2);
1257
+ tmp_0 = _this__u8e3s4.lo(tmp$ret$2);
1254
1258
  } else {
1255
1259
  tmp_0 = false;
1256
1260
  }
1257
1261
  if (!tmp_0) {
1258
1262
  break $l$loop;
1259
1263
  }
1260
- var tmp_1 = _this__u8e3s4.qo();
1264
+ var tmp_1 = _this__u8e3s4.io();
1261
1265
  var tmp_2 = offset;
1262
1266
  // Inline function 'kotlin.comparisons.minOf' call
1263
- var b = _this__u8e3s4.qo().g1();
1267
+ var b = _this__u8e3s4.io().g1();
1264
1268
  var tmp$ret$3 = endIndex <= b ? endIndex : b;
1265
1269
  var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
1266
1270
  if (!(idx === -1n)) {
1267
1271
  return idx;
1268
1272
  }
1269
- offset = _this__u8e3s4.qo().g1();
1273
+ offset = _this__u8e3s4.io().g1();
1270
1274
  }
1271
1275
  return -1n;
1272
1276
  }
@@ -1274,22 +1278,22 @@ function readByteArrayImpl(_this__u8e3s4, size) {
1274
1278
  var arraySize = size;
1275
1279
  if (size === -1) {
1276
1280
  var fetchSize = 2147483647n;
1277
- while (_this__u8e3s4.qo().g1() < 2147483647n && _this__u8e3s4.to(fetchSize)) {
1281
+ while (_this__u8e3s4.io().g1() < 2147483647n && _this__u8e3s4.lo(fetchSize)) {
1278
1282
  // Inline function 'kotlin.Long.times' call
1279
1283
  var this_0 = fetchSize;
1280
1284
  fetchSize = multiply(this_0, fromInt(2));
1281
1285
  }
1282
1286
  // Inline function 'kotlin.check' call
1283
- if (!(_this__u8e3s4.qo().g1() < 2147483647n)) {
1284
- var message = "Can't create an array of size " + _this__u8e3s4.qo().g1().toString();
1287
+ if (!(_this__u8e3s4.io().g1() < 2147483647n)) {
1288
+ var message = "Can't create an array of size " + _this__u8e3s4.io().g1().toString();
1285
1289
  throw IllegalStateException_init_$Create$(toString(message));
1286
1290
  }
1287
- arraySize = convertToInt(_this__u8e3s4.qo().g1());
1291
+ arraySize = convertToInt(_this__u8e3s4.io().g1());
1288
1292
  } else {
1289
- _this__u8e3s4.so(fromInt(size));
1293
+ _this__u8e3s4.ko(fromInt(size));
1290
1294
  }
1291
1295
  var array = new Int8Array(arraySize);
1292
- readTo(_this__u8e3s4.qo(), array);
1296
+ readTo(_this__u8e3s4.io(), array);
1293
1297
  return array;
1294
1298
  }
1295
1299
  function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
@@ -1300,7 +1304,7 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
1300
1304
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
1301
1305
  var offset = startIndex;
1302
1306
  while (offset < endIndex) {
1303
- var bytesRead = _this__u8e3s4.pp(sink, offset, endIndex);
1307
+ var bytesRead = _this__u8e3s4.hp(sink, offset, endIndex);
1304
1308
  if (bytesRead === -1) {
1305
1309
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
1306
1310
  }
@@ -1308,12 +1312,12 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
1308
1312
  }
1309
1313
  }
1310
1314
  function readString(_this__u8e3s4, byteCount) {
1311
- _this__u8e3s4.so(byteCount);
1312
- return commonReadUtf8(_this__u8e3s4.qo(), byteCount);
1315
+ _this__u8e3s4.ko(byteCount);
1316
+ return commonReadUtf8(_this__u8e3s4.io(), byteCount);
1313
1317
  }
1314
1318
  function readString_0(_this__u8e3s4) {
1315
- _this__u8e3s4.to(9223372036854775807n);
1316
- return commonReadUtf8(_this__u8e3s4.qo(), _this__u8e3s4.qo().g1());
1319
+ _this__u8e3s4.lo(9223372036854775807n);
1320
+ return commonReadUtf8(_this__u8e3s4.io(), _this__u8e3s4.io().g1());
1317
1321
  }
1318
1322
  function writeString(_this__u8e3s4, string, startIndex, endIndex) {
1319
1323
  startIndex = startIndex === VOID ? 0 : startIndex;
@@ -1323,7 +1327,7 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
1323
1327
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
1324
1328
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
1325
1329
  // Inline function 'kotlinx.io.commonWriteUtf8' call
1326
- var this_0 = _this__u8e3s4.qo();
1330
+ var this_0 = _this__u8e3s4.io();
1327
1331
  var i = startIndex;
1328
1332
  while (i < endIndex) {
1329
1333
  var p0 = i;
@@ -1333,15 +1337,15 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
1333
1337
  if (c < 128) {
1334
1338
  $l$block_0: {
1335
1339
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1336
- var tail = this_0.wp(1);
1340
+ var tail = this_0.op(1);
1337
1341
  var ctx = get_SegmentWriteContextImpl();
1338
1342
  var segmentOffset = -i | 0;
1339
1343
  // Inline function 'kotlin.comparisons.minOf' call
1340
- var b = i + tail.bq() | 0;
1344
+ var b = i + tail.tp() | 0;
1341
1345
  var runLimit = Math.min(endIndex, b);
1342
1346
  var _unary__edvuaz = i;
1343
1347
  i = _unary__edvuaz + 1 | 0;
1344
- ctx.or(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
1348
+ ctx.gr(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
1345
1349
  $l$loop: while (i < runLimit) {
1346
1350
  var p0_0 = i;
1347
1351
  // Inline function 'kotlin.code' call
@@ -1351,95 +1355,95 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
1351
1355
  break $l$loop;
1352
1356
  var _unary__edvuaz_0 = i;
1353
1357
  i = _unary__edvuaz_0 + 1 | 0;
1354
- ctx.or(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
1358
+ ctx.gr(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
1355
1359
  }
1356
1360
  var bytesWritten = i + segmentOffset | 0;
1357
1361
  if (bytesWritten === 1) {
1358
- tail.xo_1 = tail.xo_1 + bytesWritten | 0;
1362
+ tail.po_1 = tail.po_1 + bytesWritten | 0;
1359
1363
  var tmp = this_0;
1360
1364
  // Inline function 'kotlin.Long.plus' call
1361
- var this_3 = this_0.po_1;
1362
- tmp.po_1 = add(this_3, fromInt(bytesWritten));
1365
+ var this_3 = this_0.ho_1;
1366
+ tmp.ho_1 = add(this_3, fromInt(bytesWritten));
1363
1367
  break $l$block_0;
1364
1368
  }
1365
1369
  // Inline function 'kotlin.check' call
1366
- if (!(0 <= bytesWritten ? bytesWritten <= tail.bq() : false)) {
1367
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.bq();
1370
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.tp() : false)) {
1371
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.tp();
1368
1372
  throw IllegalStateException_init_$Create$(toString(message));
1369
1373
  }
1370
1374
  if (!(bytesWritten === 0)) {
1371
- tail.xo_1 = tail.xo_1 + bytesWritten | 0;
1375
+ tail.po_1 = tail.po_1 + bytesWritten | 0;
1372
1376
  var tmp_0 = this_0;
1373
1377
  // Inline function 'kotlin.Long.plus' call
1374
- var this_4 = this_0.po_1;
1375
- tmp_0.po_1 = add(this_4, fromInt(bytesWritten));
1378
+ var this_4 = this_0.ho_1;
1379
+ tmp_0.ho_1 = add(this_4, fromInt(bytesWritten));
1376
1380
  break $l$block_0;
1377
1381
  }
1378
1382
  if (isEmpty(tail)) {
1379
- this_0.qq();
1383
+ this_0.iq();
1380
1384
  }
1381
1385
  }
1382
1386
  } else if (c < 2048) {
1383
1387
  $l$block_2: {
1384
1388
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1385
- var tail_0 = this_0.wp(2);
1386
- get_SegmentWriteContextImpl().nr(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
1389
+ var tail_0 = this_0.op(2);
1390
+ get_SegmentWriteContextImpl().fr(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
1387
1391
  var bytesWritten_0 = 2;
1388
1392
  if (bytesWritten_0 === 2) {
1389
- tail_0.xo_1 = tail_0.xo_1 + bytesWritten_0 | 0;
1393
+ tail_0.po_1 = tail_0.po_1 + bytesWritten_0 | 0;
1390
1394
  var tmp_1 = this_0;
1391
1395
  // Inline function 'kotlin.Long.plus' call
1392
- var this_5 = this_0.po_1;
1393
- tmp_1.po_1 = add(this_5, fromInt(bytesWritten_0));
1396
+ var this_5 = this_0.ho_1;
1397
+ tmp_1.ho_1 = add(this_5, fromInt(bytesWritten_0));
1394
1398
  break $l$block_2;
1395
1399
  }
1396
1400
  // Inline function 'kotlin.check' call
1397
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.bq() : false)) {
1398
- var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.bq();
1401
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.tp() : false)) {
1402
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.tp();
1399
1403
  throw IllegalStateException_init_$Create$(toString(message_0));
1400
1404
  }
1401
1405
  if (!(bytesWritten_0 === 0)) {
1402
- tail_0.xo_1 = tail_0.xo_1 + bytesWritten_0 | 0;
1406
+ tail_0.po_1 = tail_0.po_1 + bytesWritten_0 | 0;
1403
1407
  var tmp_2 = this_0;
1404
1408
  // Inline function 'kotlin.Long.plus' call
1405
- var this_6 = this_0.po_1;
1406
- tmp_2.po_1 = add(this_6, fromInt(bytesWritten_0));
1409
+ var this_6 = this_0.ho_1;
1410
+ tmp_2.ho_1 = add(this_6, fromInt(bytesWritten_0));
1407
1411
  break $l$block_2;
1408
1412
  }
1409
1413
  if (isEmpty(tail_0)) {
1410
- this_0.qq();
1414
+ this_0.iq();
1411
1415
  }
1412
1416
  }
1413
1417
  i = i + 1 | 0;
1414
1418
  } else if (c < 55296 || c > 57343) {
1415
1419
  $l$block_4: {
1416
1420
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1417
- var tail_1 = this_0.wp(3);
1418
- get_SegmentWriteContextImpl().mr(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
1421
+ var tail_1 = this_0.op(3);
1422
+ get_SegmentWriteContextImpl().er(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
1419
1423
  var bytesWritten_1 = 3;
1420
1424
  if (bytesWritten_1 === 3) {
1421
- tail_1.xo_1 = tail_1.xo_1 + bytesWritten_1 | 0;
1425
+ tail_1.po_1 = tail_1.po_1 + bytesWritten_1 | 0;
1422
1426
  var tmp_3 = this_0;
1423
1427
  // Inline function 'kotlin.Long.plus' call
1424
- var this_7 = this_0.po_1;
1425
- tmp_3.po_1 = add(this_7, fromInt(bytesWritten_1));
1428
+ var this_7 = this_0.ho_1;
1429
+ tmp_3.ho_1 = add(this_7, fromInt(bytesWritten_1));
1426
1430
  break $l$block_4;
1427
1431
  }
1428
1432
  // Inline function 'kotlin.check' call
1429
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.bq() : false)) {
1430
- var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.bq();
1433
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.tp() : false)) {
1434
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.tp();
1431
1435
  throw IllegalStateException_init_$Create$(toString(message_1));
1432
1436
  }
1433
1437
  if (!(bytesWritten_1 === 0)) {
1434
- tail_1.xo_1 = tail_1.xo_1 + bytesWritten_1 | 0;
1438
+ tail_1.po_1 = tail_1.po_1 + bytesWritten_1 | 0;
1435
1439
  var tmp_4 = this_0;
1436
1440
  // Inline function 'kotlin.Long.plus' call
1437
- var this_8 = this_0.po_1;
1438
- tmp_4.po_1 = add(this_8, fromInt(bytesWritten_1));
1441
+ var this_8 = this_0.ho_1;
1442
+ tmp_4.ho_1 = add(this_8, fromInt(bytesWritten_1));
1439
1443
  break $l$block_4;
1440
1444
  }
1441
1445
  if (isEmpty(tail_1)) {
1442
- this_0.qq();
1446
+ this_0.iq();
1443
1447
  }
1444
1448
  }
1445
1449
  i = i + 1 | 0;
@@ -1457,65 +1461,65 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
1457
1461
  if (c > 56319 || !(56320 <= low ? low <= 57343 : false)) {
1458
1462
  // Inline function 'kotlin.code' call
1459
1463
  var this_10 = _Char___init__impl__6a9atx(63);
1460
- var tmp$ret$26 = Char__toInt_impl_vasixd(this_10);
1461
- this_0.kq(toByte(tmp$ret$26));
1464
+ var tmp$ret$29 = Char__toInt_impl_vasixd(this_10);
1465
+ this_0.cq(toByte(tmp$ret$29));
1462
1466
  i = i + 1 | 0;
1463
1467
  } else {
1464
1468
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
1465
1469
  $l$block_6: {
1466
1470
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1467
- var tail_2 = this_0.wp(4);
1468
- get_SegmentWriteContextImpl().lr(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
1471
+ var tail_2 = this_0.op(4);
1472
+ get_SegmentWriteContextImpl().dr(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
1469
1473
  var bytesWritten_2 = 4;
1470
1474
  if (bytesWritten_2 === 4) {
1471
- tail_2.xo_1 = tail_2.xo_1 + bytesWritten_2 | 0;
1475
+ tail_2.po_1 = tail_2.po_1 + bytesWritten_2 | 0;
1472
1476
  var tmp_6 = this_0;
1473
1477
  // Inline function 'kotlin.Long.plus' call
1474
- var this_11 = this_0.po_1;
1475
- tmp_6.po_1 = add(this_11, fromInt(bytesWritten_2));
1478
+ var this_11 = this_0.ho_1;
1479
+ tmp_6.ho_1 = add(this_11, fromInt(bytesWritten_2));
1476
1480
  break $l$block_6;
1477
1481
  }
1478
1482
  // Inline function 'kotlin.check' call
1479
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.bq() : false)) {
1480
- var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.bq();
1483
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.tp() : false)) {
1484
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.tp();
1481
1485
  throw IllegalStateException_init_$Create$(toString(message_2));
1482
1486
  }
1483
1487
  if (!(bytesWritten_2 === 0)) {
1484
- tail_2.xo_1 = tail_2.xo_1 + bytesWritten_2 | 0;
1488
+ tail_2.po_1 = tail_2.po_1 + bytesWritten_2 | 0;
1485
1489
  var tmp_7 = this_0;
1486
1490
  // Inline function 'kotlin.Long.plus' call
1487
- var this_12 = this_0.po_1;
1488
- tmp_7.po_1 = add(this_12, fromInt(bytesWritten_2));
1491
+ var this_12 = this_0.ho_1;
1492
+ tmp_7.ho_1 = add(this_12, fromInt(bytesWritten_2));
1489
1493
  break $l$block_6;
1490
1494
  }
1491
1495
  if (isEmpty(tail_2)) {
1492
- this_0.qq();
1496
+ this_0.iq();
1493
1497
  }
1494
1498
  }
1495
1499
  i = i + 2 | 0;
1496
1500
  }
1497
1501
  }
1498
1502
  }
1499
- _this__u8e3s4.gp();
1503
+ _this__u8e3s4.yo();
1500
1504
  }
1501
1505
  function commonReadUtf8(_this__u8e3s4, byteCount) {
1502
1506
  if (byteCount === 0n)
1503
1507
  return '';
1504
1508
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
1505
- var curr = _this__u8e3s4.no_1;
1509
+ var curr = _this__u8e3s4.fo_1;
1506
1510
  while (!(curr == null)) {
1507
1511
  get_SegmentReadContextImpl();
1508
1512
  if (fromInt(curr.g1()) >= byteCount) {
1509
1513
  var result = '';
1510
1514
  // Inline function 'kotlinx.io.unsafe.withData' call
1511
- var tmp0 = curr.gr(true);
1512
- var tmp2 = curr.wo_1;
1513
- var tmp0_0 = curr.xo_1;
1515
+ var tmp0 = curr.yq(true);
1516
+ var tmp2 = curr.oo_1;
1517
+ var tmp0_0 = curr.po_1;
1514
1518
  // Inline function 'kotlin.math.min' call
1515
1519
  var b = tmp2 + convertToInt(byteCount) | 0;
1516
- var tmp$ret$0 = Math.min(tmp0_0, b);
1517
- result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
1518
- _this__u8e3s4.op(byteCount);
1520
+ var tmp$ret$4 = Math.min(tmp0_0, b);
1521
+ result = commonToUtf8String(tmp0, tmp2, tmp$ret$4);
1522
+ _this__u8e3s4.gp(byteCount);
1519
1523
  return result;
1520
1524
  }
1521
1525
  return commonToUtf8String(readByteArray_0(_this__u8e3s4, convertToInt(byteCount)));
@@ -1555,7 +1559,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1555
1559
  if (b0 >> 5 === -2) {
1556
1560
  var tmp = index;
1557
1561
  var tmp2 = index;
1558
- var tmp$ret$5;
1562
+ var tmp$ret$4;
1559
1563
  $l$block_0: {
1560
1564
  // Inline function 'kotlinx.io.internal.process2Utf8Bytes' call
1561
1565
  if (endIndex <= (tmp2 + 1 | 0)) {
@@ -1563,7 +1567,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1563
1567
  var _unary__edvuaz_2 = length;
1564
1568
  length = _unary__edvuaz_2 + 1 | 0;
1565
1569
  chars[_unary__edvuaz_2] = c_1;
1566
- tmp$ret$5 = 1;
1570
+ tmp$ret$4 = 1;
1567
1571
  break $l$block_0;
1568
1572
  }
1569
1573
  var b0_0 = _this__u8e3s4[tmp2];
@@ -1575,7 +1579,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1575
1579
  var _unary__edvuaz_3 = length;
1576
1580
  length = _unary__edvuaz_3 + 1 | 0;
1577
1581
  chars[_unary__edvuaz_3] = c_2;
1578
- tmp$ret$5 = 1;
1582
+ tmp$ret$4 = 1;
1579
1583
  break $l$block_0;
1580
1584
  }
1581
1585
  var codePoint = 3968 ^ b1 ^ b0_0 << 6;
@@ -1590,15 +1594,15 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1590
1594
  length = _unary__edvuaz_5 + 1 | 0;
1591
1595
  chars[_unary__edvuaz_5] = c_4;
1592
1596
  }
1593
- tmp$ret$5 = 2;
1597
+ tmp$ret$4 = 2;
1594
1598
  }
1595
- index = tmp + tmp$ret$5 | 0;
1599
+ index = tmp + tmp$ret$4 | 0;
1596
1600
  } else {
1597
1601
  // Inline function 'kotlinx.io.shr' call
1598
1602
  if (b0 >> 4 === -2) {
1599
1603
  var tmp_0 = index;
1600
1604
  var tmp2_0 = index;
1601
- var tmp$ret$19;
1605
+ var tmp$ret$16;
1602
1606
  $l$block_4: {
1603
1607
  // Inline function 'kotlinx.io.internal.process3Utf8Bytes' call
1604
1608
  if (endIndex <= (tmp2_0 + 2 | 0)) {
@@ -1615,10 +1619,10 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1615
1619
  tmp_1 = !((_this__u8e3s4[tmp2_0 + 1 | 0] & 192) === 128);
1616
1620
  }
1617
1621
  if (tmp_1) {
1618
- tmp$ret$19 = 1;
1622
+ tmp$ret$16 = 1;
1619
1623
  break $l$block_4;
1620
1624
  } else {
1621
- tmp$ret$19 = 2;
1625
+ tmp$ret$16 = 2;
1622
1626
  break $l$block_4;
1623
1627
  }
1624
1628
  }
@@ -1631,7 +1635,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1631
1635
  var _unary__edvuaz_7 = length;
1632
1636
  length = _unary__edvuaz_7 + 1 | 0;
1633
1637
  chars[_unary__edvuaz_7] = c_6;
1634
- tmp$ret$19 = 1;
1638
+ tmp$ret$16 = 1;
1635
1639
  break $l$block_4;
1636
1640
  }
1637
1641
  var b2 = _this__u8e3s4[tmp2_0 + 2 | 0];
@@ -1642,7 +1646,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1642
1646
  var _unary__edvuaz_8 = length;
1643
1647
  length = _unary__edvuaz_8 + 1 | 0;
1644
1648
  chars[_unary__edvuaz_8] = c_7;
1645
- tmp$ret$19 = 2;
1649
+ tmp$ret$16 = 2;
1646
1650
  break $l$block_4;
1647
1651
  }
1648
1652
  var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
@@ -1662,15 +1666,15 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1662
1666
  length = _unary__edvuaz_11 + 1 | 0;
1663
1667
  chars[_unary__edvuaz_11] = c_10;
1664
1668
  }
1665
- tmp$ret$19 = 3;
1669
+ tmp$ret$16 = 3;
1666
1670
  }
1667
- index = tmp_0 + tmp$ret$19 | 0;
1671
+ index = tmp_0 + tmp$ret$16 | 0;
1668
1672
  } else {
1669
1673
  // Inline function 'kotlinx.io.shr' call
1670
1674
  if (b0 >> 3 === -2) {
1671
1675
  var tmp_2 = index;
1672
1676
  var tmp2_1 = index;
1673
- var tmp$ret$41;
1677
+ var tmp$ret$36;
1674
1678
  $l$block_10: {
1675
1679
  // Inline function 'kotlinx.io.internal.process4Utf8Bytes' call
1676
1680
  if (endIndex <= (tmp2_1 + 3 | 0)) {
@@ -1698,7 +1702,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1698
1702
  tmp_3 = !((_this__u8e3s4[tmp2_1 + 1 | 0] & 192) === 128);
1699
1703
  }
1700
1704
  if (tmp_3) {
1701
- tmp$ret$41 = 1;
1705
+ tmp$ret$36 = 1;
1702
1706
  break $l$block_10;
1703
1707
  } else {
1704
1708
  var tmp_4;
@@ -1710,10 +1714,10 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1710
1714
  tmp_4 = !((_this__u8e3s4[tmp2_1 + 2 | 0] & 192) === 128);
1711
1715
  }
1712
1716
  if (tmp_4) {
1713
- tmp$ret$41 = 2;
1717
+ tmp$ret$36 = 2;
1714
1718
  break $l$block_10;
1715
1719
  } else {
1716
- tmp$ret$41 = 3;
1720
+ tmp$ret$36 = 3;
1717
1721
  break $l$block_10;
1718
1722
  }
1719
1723
  }
@@ -1738,7 +1742,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1738
1742
  length = _unary__edvuaz_17 + 1 | 0;
1739
1743
  chars[_unary__edvuaz_17] = c_16;
1740
1744
  }
1741
- tmp$ret$41 = 1;
1745
+ tmp$ret$36 = 1;
1742
1746
  break $l$block_10;
1743
1747
  }
1744
1748
  var b2_0 = _this__u8e3s4[tmp2_1 + 2 | 0];
@@ -1760,7 +1764,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1760
1764
  length = _unary__edvuaz_20 + 1 | 0;
1761
1765
  chars[_unary__edvuaz_20] = c_19;
1762
1766
  }
1763
- tmp$ret$41 = 2;
1767
+ tmp$ret$36 = 2;
1764
1768
  break $l$block_10;
1765
1769
  }
1766
1770
  var b3 = _this__u8e3s4[tmp2_1 + 3 | 0];
@@ -1782,7 +1786,7 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1782
1786
  length = _unary__edvuaz_23 + 1 | 0;
1783
1787
  chars[_unary__edvuaz_23] = c_22;
1784
1788
  }
1785
- tmp$ret$41 = 3;
1789
+ tmp$ret$36 = 3;
1786
1790
  break $l$block_10;
1787
1791
  }
1788
1792
  var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
@@ -1851,9 +1855,9 @@ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
1851
1855
  chars[_unary__edvuaz_35] = c_34;
1852
1856
  }
1853
1857
  }
1854
- tmp$ret$41 = 4;
1858
+ tmp$ret$36 = 4;
1855
1859
  }
1856
- index = tmp_2 + tmp$ret$41 | 0;
1860
+ index = tmp_2 + tmp$ret$36 | 0;
1857
1861
  } else {
1858
1862
  var c_35 = _Char___init__impl__6a9atx(65533);
1859
1863
  var _unary__edvuaz_36 = length;
@@ -1886,27 +1890,27 @@ function UnsafeBufferOperations_getInstance() {
1886
1890
  }
1887
1891
  function SegmentReadContextImpl$1() {
1888
1892
  }
1889
- protoOf(SegmentReadContextImpl$1).oq = function (segment, offset) {
1890
- return segment.np(offset);
1893
+ protoOf(SegmentReadContextImpl$1).gq = function (segment, offset) {
1894
+ return segment.fp(offset);
1891
1895
  };
1892
1896
  function SegmentWriteContextImpl$1() {
1893
1897
  }
1894
- protoOf(SegmentWriteContextImpl$1).or = function (segment, offset, value) {
1895
- segment.hr(offset, value);
1898
+ protoOf(SegmentWriteContextImpl$1).gr = function (segment, offset, value) {
1899
+ segment.zq(offset, value);
1896
1900
  };
1897
- protoOf(SegmentWriteContextImpl$1).nr = function (segment, offset, b0, b1) {
1898
- segment.ir(offset, b0, b1);
1901
+ protoOf(SegmentWriteContextImpl$1).fr = function (segment, offset, b0, b1) {
1902
+ segment.ar(offset, b0, b1);
1899
1903
  };
1900
- protoOf(SegmentWriteContextImpl$1).mr = function (segment, offset, b0, b1, b2) {
1901
- segment.jr(offset, b0, b1, b2);
1904
+ protoOf(SegmentWriteContextImpl$1).er = function (segment, offset, b0, b1, b2) {
1905
+ segment.br(offset, b0, b1, b2);
1902
1906
  };
1903
- protoOf(SegmentWriteContextImpl$1).lr = function (segment, offset, b0, b1, b2, b3) {
1904
- segment.kr(offset, b0, b1, b2, b3);
1907
+ protoOf(SegmentWriteContextImpl$1).dr = function (segment, offset, b0, b1, b2, b3) {
1908
+ segment.cr(offset, b0, b1, b2, b3);
1905
1909
  };
1906
1910
  function BufferIterationContextImpl$1() {
1907
1911
  }
1908
- protoOf(BufferIterationContextImpl$1).oq = function (segment, offset) {
1909
- return get_SegmentReadContextImpl().oq(segment, offset);
1912
+ protoOf(BufferIterationContextImpl$1).gq = function (segment, offset) {
1913
+ return get_SegmentReadContextImpl().gq(segment, offset);
1910
1914
  };
1911
1915
  var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
1912
1916
  function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
@@ -1974,15 +1978,15 @@ function EOFException() {
1974
1978
  captureStack(this, EOFException);
1975
1979
  }
1976
1980
  function SegmentPool() {
1977
- this.xp_1 = 0;
1978
- this.yp_1 = 0;
1981
+ this.pp_1 = 0;
1982
+ this.qp_1 = 0;
1979
1983
  }
1980
- protoOf(SegmentPool).zp = function () {
1981
- return Companion_instance.cr();
1984
+ protoOf(SegmentPool).rp = function () {
1985
+ return Companion_instance.uq();
1982
1986
  };
1983
- protoOf(SegmentPool).pq = function (segment) {
1987
+ protoOf(SegmentPool).hq = function (segment) {
1984
1988
  };
1985
- protoOf(SegmentPool).er = function () {
1989
+ protoOf(SegmentPool).wq = function () {
1986
1990
  return AlwaysSharedCopyTracker_getInstance();
1987
1991
  };
1988
1992
  var SegmentPool_instance;
@@ -1990,7 +1994,7 @@ function SegmentPool_getInstance() {
1990
1994
  return SegmentPool_instance;
1991
1995
  }
1992
1996
  //region block: post-declaration
1993
- protoOf(Buffer).dq = write$default;
1997
+ protoOf(Buffer).vp = write$default;
1994
1998
  //endregion
1995
1999
  //region block: init
1996
2000
  Companion_instance = new Companion();
@@ -1999,11 +2003,11 @@ SegmentPool_instance = new SegmentPool();
1999
2003
  //endregion
2000
2004
  //region block: exports
2001
2005
  export {
2002
- EOFException_init_$Create$_0 as EOFException_init_$Create$35zn64u2vfdrf,
2003
- IOException_init_$Init$_0 as IOException_init_$Init$wyx5mfudk66d,
2004
- IOException_init_$Create$_0 as IOException_init_$Create$3s3kcdlhouh9j,
2005
- IOException_init_$Init$_1 as IOException_init_$Init$1najp4oty5euc,
2006
- IOException_init_$Create$_1 as IOException_init_$Create$3dh7c73wuug74,
2006
+ EOFException_init_$Create$_0 as EOFException_init_$Create$1bfeevmh0hfbn,
2007
+ IOException_init_$Init$_0 as IOException_init_$Init$2t3b4cq5mf3nb,
2008
+ IOException_init_$Create$_0 as IOException_init_$Create$1sfdrtkx2q59o,
2009
+ IOException_init_$Init$_1 as IOException_init_$Init$2ln63wnwl6kd2,
2010
+ IOException_init_$Create$_1 as IOException_init_$Create$1h61d73rydu58,
2007
2011
  Buffer as Buffergs925ekssbch,
2008
2012
  IOException as IOException1wyutdmfe71nu,
2009
2013
  Source as Source1shr0ps16u4p4,