@doordeck/doordeck-headless-sdk 0.187.0 → 0.188.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,45 +3,42 @@
3
3
  //region block: imports
4
4
  var imul = Math.imul;
5
5
  var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.u1;
6
- var Long = kotlin_kotlin.$_$.wf;
7
- var compare = kotlin_kotlin.$_$.s9;
8
6
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
9
- var subtract = kotlin_kotlin.$_$.ia;
7
+ var subtract = kotlin_kotlin.$_$.da;
10
8
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
11
- var charArrayOf = kotlin_kotlin.$_$.pa;
12
- var protoOf = kotlin_kotlin.$_$.cc;
13
- var equalsLong = kotlin_kotlin.$_$.x9;
14
- var toString = kotlin_kotlin.$_$.fc;
9
+ var charArrayOf = kotlin_kotlin.$_$.ka;
10
+ var protoOf = kotlin_kotlin.$_$.xb;
11
+ var toString = kotlin_kotlin.$_$.ac;
15
12
  var Unit_instance = kotlin_kotlin.$_$.b5;
16
- var toShort = kotlin_kotlin.$_$.ec;
13
+ var toShort = kotlin_kotlin.$_$.zb;
17
14
  var add = kotlin_kotlin.$_$.p9;
18
- var ensureNotNull = kotlin_kotlin.$_$.tg;
19
- var fromInt = kotlin_kotlin.$_$.y9;
20
- var convertToInt = kotlin_kotlin.$_$.u9;
15
+ var ensureNotNull = kotlin_kotlin.$_$.ng;
16
+ var fromInt = kotlin_kotlin.$_$.u9;
17
+ var convertToInt = kotlin_kotlin.$_$.r9;
21
18
  var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
22
- var initMetadataForClass = kotlin_kotlin.$_$.eb;
19
+ var initMetadataForClass = kotlin_kotlin.$_$.ab;
23
20
  var VOID = kotlin_kotlin.$_$.b;
24
21
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
25
22
  var UnsafeByteStringOperations_instance = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
26
- var AutoCloseable = kotlin_kotlin.$_$.kf;
27
- var objectCreate = kotlin_kotlin.$_$.bc;
28
- var initMetadataForCompanion = kotlin_kotlin.$_$.fb;
23
+ var AutoCloseable = kotlin_kotlin.$_$.ff;
24
+ var objectCreate = kotlin_kotlin.$_$.wb;
25
+ var initMetadataForCompanion = kotlin_kotlin.$_$.bb;
29
26
  var arrayCopy = kotlin_kotlin.$_$.t5;
30
- var toByte = kotlin_kotlin.$_$.dc;
27
+ var toByte = kotlin_kotlin.$_$.yb;
31
28
  var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.l1;
32
- var initMetadataForObject = kotlin_kotlin.$_$.kb;
33
- var initMetadataForInterface = kotlin_kotlin.$_$.ib;
34
- var multiply = kotlin_kotlin.$_$.da;
35
- var charCodeAt = kotlin_kotlin.$_$.ra;
29
+ var initMetadataForObject = kotlin_kotlin.$_$.gb;
30
+ var initMetadataForInterface = kotlin_kotlin.$_$.eb;
31
+ var multiply = kotlin_kotlin.$_$.y9;
32
+ var charCodeAt = kotlin_kotlin.$_$.ma;
36
33
  var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
37
- var charArray = kotlin_kotlin.$_$.qa;
38
- var numberToChar = kotlin_kotlin.$_$.ac;
39
- var concatToString = kotlin_kotlin.$_$.dd;
34
+ var charArray = kotlin_kotlin.$_$.la;
35
+ var numberToChar = kotlin_kotlin.$_$.vb;
36
+ var concatToString = kotlin_kotlin.$_$.yc;
40
37
  var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
41
- var captureStack = kotlin_kotlin.$_$.oa;
38
+ var captureStack = kotlin_kotlin.$_$.ja;
42
39
  var Exception_init_$Init$_0 = kotlin_kotlin.$_$.h1;
43
40
  var Exception_init_$Init$_1 = kotlin_kotlin.$_$.j1;
44
- var Exception = kotlin_kotlin.$_$.tf;
41
+ var Exception = kotlin_kotlin.$_$.of;
45
42
  //endregion
46
43
  //region block: pre-declaration
47
44
  initMetadataForInterface(Source, 'Source', VOID, VOID, [AutoCloseable]);
@@ -50,10 +47,10 @@
50
47
  endIndex = endIndex === VOID ? source.length : endIndex;
51
48
  var tmp;
52
49
  if ($super === VOID) {
53
- this.fq(source, startIndex, endIndex);
50
+ this.cq(source, startIndex, endIndex);
54
51
  tmp = Unit_instance;
55
52
  } else {
56
- tmp = $super.fq.call(this, source, startIndex, endIndex);
53
+ tmp = $super.cq.call(this, source, startIndex, endIndex);
57
54
  }
58
55
  return tmp;
59
56
  }
@@ -80,16 +77,16 @@
80
77
  var HEX_DIGIT_CHARS;
81
78
  function checkBounds(size, startIndex, endIndex) {
82
79
  _init_properties__Util_kt__g8tcl9();
83
- if (compare(startIndex, new Long(0, 0)) < 0 || compare(endIndex, size) > 0) {
80
+ if (startIndex < 0n || endIndex > size) {
84
81
  throw IndexOutOfBoundsException_init_$Create$('startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') are not within the range [0..size(' + size.toString() + '))');
85
82
  }
86
- if (compare(startIndex, endIndex) > 0) {
83
+ if (startIndex > endIndex) {
87
84
  throw IllegalArgumentException_init_$Create$('startIndex (' + startIndex.toString() + ') > endIndex (' + endIndex.toString() + ')');
88
85
  }
89
86
  }
90
87
  function checkOffsetAndCount(size, offset, byteCount) {
91
88
  _init_properties__Util_kt__g8tcl9();
92
- if (compare(offset, new Long(0, 0)) < 0 || compare(offset, size) > 0 || compare(subtract(size, offset), byteCount) < 0 || compare(byteCount, new Long(0, 0)) < 0) {
89
+ if (offset < 0n || offset > size || subtract(size, offset) < byteCount || byteCount < 0n) {
93
90
  throw IllegalArgumentException_init_$Create$('offset (' + offset.toString() + ') and byteCount (' + byteCount.toString() + ') are not within the range [0..size(' + size.toString() + '))');
94
91
  }
95
92
  }
@@ -105,192 +102,191 @@
105
102
  throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + $this.l1().toString() + ', required: ' + byteCount.toString() + ')');
106
103
  }
107
104
  function Buffer() {
108
- this.so_1 = null;
109
- this.to_1 = null;
110
- this.uo_1 = new Long(0, 0);
105
+ this.po_1 = null;
106
+ this.qo_1 = null;
107
+ this.ro_1 = 0n;
111
108
  }
112
109
  protoOf(Buffer).l1 = function () {
113
- return this.uo_1;
110
+ return this.ro_1;
114
111
  };
115
- protoOf(Buffer).vo = function () {
112
+ protoOf(Buffer).so = function () {
116
113
  return this;
117
114
  };
118
- protoOf(Buffer).wo = function () {
119
- return equalsLong(this.l1(), new Long(0, 0));
115
+ protoOf(Buffer).to = function () {
116
+ return this.l1() === 0n;
120
117
  };
121
- protoOf(Buffer).xo = function (byteCount) {
118
+ protoOf(Buffer).uo = function (byteCount) {
122
119
  // Inline function 'kotlin.require' call
123
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
120
+ if (!(byteCount >= 0n)) {
124
121
  var message = 'byteCount: ' + byteCount.toString();
125
122
  throw IllegalArgumentException_init_$Create$(toString(message));
126
123
  }
127
- if (compare(this.l1(), byteCount) < 0) {
124
+ if (this.l1() < byteCount) {
128
125
  throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.l1().toString() + ', required: ' + byteCount.toString() + ')');
129
126
  }
130
127
  };
131
- protoOf(Buffer).yo = function (byteCount) {
128
+ protoOf(Buffer).vo = function (byteCount) {
132
129
  // Inline function 'kotlin.require' call
133
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
130
+ if (!(byteCount >= 0n)) {
134
131
  var message = 'byteCount: ' + byteCount.toString() + ' < 0';
135
132
  throw IllegalArgumentException_init_$Create$(toString(message));
136
133
  }
137
- return compare(this.l1(), byteCount) >= 0;
134
+ return this.l1() >= byteCount;
138
135
  };
139
- protoOf(Buffer).zo = function () {
140
- var tmp0_elvis_lhs = this.so_1;
136
+ protoOf(Buffer).wo = function () {
137
+ var tmp0_elvis_lhs = this.po_1;
141
138
  var tmp;
142
139
  if (tmp0_elvis_lhs == null) {
143
- throwEof(this, new Long(1, 0));
140
+ throwEof(this, 1n);
144
141
  } else {
145
142
  tmp = tmp0_elvis_lhs;
146
143
  }
147
144
  var segment = tmp;
148
145
  var segmentSize = segment.l1();
149
146
  if (segmentSize === 0) {
150
- this.hp();
151
- return this.zo();
147
+ this.ep();
148
+ return this.wo();
152
149
  }
153
- var v = segment.ip();
154
- this.uo_1 = subtract(this.uo_1, new Long(1, 0));
150
+ var v = segment.fp();
151
+ this.ro_1 = subtract(this.ro_1, 1n);
155
152
  if (segmentSize === 1) {
156
- this.hp();
153
+ this.ep();
157
154
  }
158
155
  return v;
159
156
  };
160
- protoOf(Buffer).jp = function () {
161
- var tmp0_elvis_lhs = this.so_1;
157
+ protoOf(Buffer).gp = function () {
158
+ var tmp0_elvis_lhs = this.po_1;
162
159
  var tmp;
163
160
  if (tmp0_elvis_lhs == null) {
164
- throwEof(this, new Long(2, 0));
161
+ throwEof(this, 2n);
165
162
  } else {
166
163
  tmp = tmp0_elvis_lhs;
167
164
  }
168
165
  var segment = tmp;
169
166
  var segmentSize = segment.l1();
170
167
  if (segmentSize < 2) {
171
- this.xo(new Long(2, 0));
168
+ this.uo(2n);
172
169
  if (segmentSize === 0) {
173
- this.hp();
174
- return this.jp();
170
+ this.ep();
171
+ return this.gp();
175
172
  }
176
173
  // Inline function 'kotlinx.io.and' call
177
- var tmp_0 = (this.zo() & 255) << 8;
174
+ var tmp_0 = (this.wo() & 255) << 8;
178
175
  // Inline function 'kotlinx.io.and' call
179
- var tmp$ret$1 = this.zo() & 255;
176
+ var tmp$ret$1 = this.wo() & 255;
180
177
  return toShort(tmp_0 | tmp$ret$1);
181
178
  }
182
- var v = segment.kp();
183
- this.uo_1 = subtract(this.uo_1, new Long(2, 0));
179
+ var v = segment.hp();
180
+ this.ro_1 = subtract(this.ro_1, 2n);
184
181
  if (segmentSize === 2) {
185
- this.hp();
182
+ this.ep();
186
183
  }
187
184
  return v;
188
185
  };
189
- protoOf(Buffer).lp = function () {
186
+ protoOf(Buffer).ip = function () {
190
187
  return Unit_instance;
191
188
  };
192
- protoOf(Buffer).mp = function (out, startIndex, endIndex) {
189
+ protoOf(Buffer).jp = function (out, startIndex, endIndex) {
193
190
  checkBounds(this.l1(), startIndex, endIndex);
194
- if (equalsLong(startIndex, endIndex))
191
+ if (startIndex === endIndex)
195
192
  return Unit_instance;
196
193
  var currentOffset = startIndex;
197
194
  var remainingByteCount = subtract(endIndex, startIndex);
198
- out.uo_1 = add(out.uo_1, remainingByteCount);
199
- var s = this.so_1;
200
- while (compare(currentOffset, fromInt(ensureNotNull(s).cp_1 - s.bp_1 | 0)) >= 0) {
201
- currentOffset = subtract(currentOffset, fromInt(s.cp_1 - s.bp_1 | 0));
202
- s = s.fp_1;
203
- }
204
- while (compare(remainingByteCount, new Long(0, 0)) > 0) {
205
- var copy = ensureNotNull(s).np();
206
- copy.bp_1 = copy.bp_1 + convertToInt(currentOffset) | 0;
195
+ out.ro_1 = add(out.ro_1, remainingByteCount);
196
+ var s = this.po_1;
197
+ while (currentOffset >= fromInt(ensureNotNull(s).zo_1 - s.yo_1 | 0)) {
198
+ currentOffset = subtract(currentOffset, fromInt(s.zo_1 - s.yo_1 | 0));
199
+ s = s.cp_1;
200
+ }
201
+ while (remainingByteCount > 0n) {
202
+ var copy = ensureNotNull(s).kp();
203
+ copy.yo_1 = copy.yo_1 + convertToInt(currentOffset) | 0;
207
204
  var tmp = copy;
208
- var tmp0 = copy.bp_1 + convertToInt(remainingByteCount) | 0;
205
+ var tmp0 = copy.yo_1 + convertToInt(remainingByteCount) | 0;
209
206
  // Inline function 'kotlin.comparisons.minOf' call
210
- var b = copy.cp_1;
211
- tmp.cp_1 = Math.min(tmp0, b);
207
+ var b = copy.zo_1;
208
+ tmp.zo_1 = Math.min(tmp0, b);
212
209
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
213
- if (out.so_1 == null) {
214
- out.so_1 = copy;
215
- out.to_1 = copy;
210
+ if (out.po_1 == null) {
211
+ out.po_1 = copy;
212
+ out.qo_1 = copy;
216
213
  } else if (false) {
217
- out.to_1 = ensureNotNull(out.to_1).op(copy).pp();
218
- if (ensureNotNull(out.to_1).gp_1 == null) {
219
- out.so_1 = out.to_1;
214
+ out.qo_1 = ensureNotNull(out.qo_1).lp(copy).mp();
215
+ if (ensureNotNull(out.qo_1).dp_1 == null) {
216
+ out.po_1 = out.qo_1;
220
217
  }
221
218
  } else {
222
- out.to_1 = ensureNotNull(out.to_1).op(copy);
219
+ out.qo_1 = ensureNotNull(out.qo_1).lp(copy);
223
220
  }
224
- remainingByteCount = subtract(remainingByteCount, fromInt(copy.cp_1 - copy.bp_1 | 0));
225
- currentOffset = new Long(0, 0);
226
- s = s.fp_1;
221
+ remainingByteCount = subtract(remainingByteCount, fromInt(copy.zo_1 - copy.yo_1 | 0));
222
+ currentOffset = 0n;
223
+ s = s.cp_1;
227
224
  }
228
225
  };
229
- protoOf(Buffer).qp = function () {
226
+ protoOf(Buffer).np = function () {
230
227
  var result = this.l1();
231
- if (equalsLong(result, new Long(0, 0)))
232
- return new Long(0, 0);
233
- var tail = ensureNotNull(this.to_1);
234
- if (tail.cp_1 < 8192 && tail.ep_1) {
235
- result = subtract(result, fromInt(tail.cp_1 - tail.bp_1 | 0));
228
+ if (result === 0n)
229
+ return 0n;
230
+ var tail = ensureNotNull(this.qo_1);
231
+ if (tail.zo_1 < 8192 && tail.bp_1) {
232
+ result = subtract(result, fromInt(tail.zo_1 - tail.yo_1 | 0));
236
233
  }
237
234
  return result;
238
235
  };
239
- protoOf(Buffer).rp = function (position) {
240
- if (compare(position, new Long(0, 0)) < 0 || compare(position, this.l1()) >= 0) {
236
+ protoOf(Buffer).op = function (position) {
237
+ if (position < 0n || position >= this.l1()) {
241
238
  throw IndexOutOfBoundsException_init_$Create$('position (' + position.toString() + ') is not within the range [0..size(' + this.l1().toString() + '))');
242
239
  }
243
- if (equalsLong(position, new Long(0, 0))) {
244
- return ensureNotNull(this.so_1).sp(0);
240
+ if (position === 0n) {
241
+ return ensureNotNull(this.po_1).pp(0);
245
242
  }
246
243
  // Inline function 'kotlinx.io.seek' call
247
- if (this.so_1 == null) {
248
- var offset = new Long(-1, -1);
249
- return ensureNotNull(null).sp(convertToInt(subtract(position, offset)));
250
- }
251
- if (compare(subtract(this.l1(), position), position) < 0) {
252
- var s = this.to_1;
253
- var offset_0 = this.l1();
254
- $l$loop: while (!(s == null) && compare(offset_0, position) > 0) {
255
- offset_0 = subtract(offset_0, fromInt(s.cp_1 - s.bp_1 | 0));
256
- if (compare(offset_0, position) <= 0)
244
+ if (this.po_1 == null) {
245
+ return ensureNotNull(null).pp(convertToInt(subtract(position, -1n)));
246
+ }
247
+ if (subtract(this.l1(), position) < position) {
248
+ var s = this.qo_1;
249
+ var offset = this.l1();
250
+ $l$loop: while (!(s == null) && offset > position) {
251
+ offset = subtract(offset, fromInt(s.zo_1 - s.yo_1 | 0));
252
+ if (offset <= position)
257
253
  break $l$loop;
258
- s = s.gp_1;
254
+ s = s.dp_1;
259
255
  }
260
256
  var tmp0 = s;
261
- var offset_1 = offset_0;
262
- return ensureNotNull(tmp0).sp(convertToInt(subtract(position, offset_1)));
257
+ var offset_0 = offset;
258
+ return ensureNotNull(tmp0).pp(convertToInt(subtract(position, offset_0)));
263
259
  } else {
264
- var s_0 = this.so_1;
265
- var offset_2 = new Long(0, 0);
260
+ var s_0 = this.po_1;
261
+ var offset_1 = 0n;
266
262
  $l$loop_0: while (!(s_0 == null)) {
267
- var tmp0_0 = offset_2;
263
+ var tmp0_0 = offset_1;
268
264
  // Inline function 'kotlin.Long.plus' call
269
- var other = s_0.cp_1 - s_0.bp_1 | 0;
265
+ var other = s_0.zo_1 - s_0.yo_1 | 0;
270
266
  var nextOffset = add(tmp0_0, fromInt(other));
271
- if (compare(nextOffset, position) > 0)
267
+ if (nextOffset > position)
272
268
  break $l$loop_0;
273
- s_0 = s_0.fp_1;
274
- offset_2 = nextOffset;
269
+ s_0 = s_0.cp_1;
270
+ offset_1 = nextOffset;
275
271
  }
276
272
  var tmp0_1 = s_0;
277
- var offset_3 = offset_2;
278
- return ensureNotNull(tmp0_1).sp(convertToInt(subtract(position, offset_3)));
273
+ var offset_2 = offset_1;
274
+ return ensureNotNull(tmp0_1).pp(convertToInt(subtract(position, offset_2)));
279
275
  }
280
276
  };
281
277
  protoOf(Buffer).t2 = function () {
282
- return this.tp(this.l1());
278
+ return this.qp(this.l1());
283
279
  };
284
- protoOf(Buffer).tp = function (byteCount) {
280
+ protoOf(Buffer).qp = function (byteCount) {
285
281
  // Inline function 'kotlinx.io.checkByteCount' call
286
282
  // Inline function 'kotlin.require' call
287
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
283
+ if (!(byteCount >= 0n)) {
288
284
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
289
285
  throw IllegalArgumentException_init_$Create$(toString(message));
290
286
  }
291
287
  var remainingByteCount = byteCount;
292
- while (compare(remainingByteCount, new Long(0, 0)) > 0) {
293
- var tmp0_elvis_lhs = this.so_1;
288
+ while (remainingByteCount > 0n) {
289
+ var tmp0_elvis_lhs = this.po_1;
294
290
  var tmp;
295
291
  if (tmp0_elvis_lhs == null) {
296
292
  throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -300,24 +296,24 @@
300
296
  var head = tmp;
301
297
  var tmp0 = remainingByteCount;
302
298
  // Inline function 'kotlinx.io.minOf' call
303
- var b = head.cp_1 - head.bp_1 | 0;
299
+ var b = head.zo_1 - head.yo_1 | 0;
304
300
  // Inline function 'kotlin.comparisons.minOf' call
305
301
  var b_0 = fromInt(b);
306
- var tmp$ret$4 = compare(tmp0, b_0) <= 0 ? tmp0 : b_0;
302
+ var tmp$ret$4 = tmp0 <= b_0 ? tmp0 : b_0;
307
303
  var toSkip = convertToInt(tmp$ret$4);
308
- this.uo_1 = subtract(this.uo_1, fromInt(toSkip));
304
+ this.ro_1 = subtract(this.ro_1, fromInt(toSkip));
309
305
  remainingByteCount = subtract(remainingByteCount, fromInt(toSkip));
310
- head.bp_1 = head.bp_1 + toSkip | 0;
311
- if (head.bp_1 === head.cp_1) {
312
- this.hp();
306
+ head.yo_1 = head.yo_1 + toSkip | 0;
307
+ if (head.yo_1 === head.zo_1) {
308
+ this.ep();
313
309
  }
314
310
  }
315
311
  };
316
- protoOf(Buffer).up = function (sink, startIndex, endIndex) {
312
+ protoOf(Buffer).rp = function (sink, startIndex, endIndex) {
317
313
  // Inline function 'kotlinx.io.checkBounds' call
318
314
  var size = sink.length;
319
315
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
320
- var tmp0_elvis_lhs = this.so_1;
316
+ var tmp0_elvis_lhs = this.po_1;
321
317
  var tmp;
322
318
  if (tmp0_elvis_lhs == null) {
323
319
  return -1;
@@ -329,196 +325,195 @@
329
325
  // Inline function 'kotlin.comparisons.minOf' call
330
326
  var b = s.l1();
331
327
  var toCopy = Math.min(tmp0, b);
332
- s.vp(sink, startIndex, startIndex + toCopy | 0);
333
- this.uo_1 = subtract(this.uo_1, fromInt(toCopy));
328
+ s.sp(sink, startIndex, startIndex + toCopy | 0);
329
+ this.ro_1 = subtract(this.ro_1, fromInt(toCopy));
334
330
  if (isEmpty(s)) {
335
- this.hp();
331
+ this.ep();
336
332
  }
337
333
  return toCopy;
338
334
  };
339
- protoOf(Buffer).wp = function (sink, byteCount) {
335
+ protoOf(Buffer).tp = function (sink, byteCount) {
340
336
  // Inline function 'kotlinx.io.checkByteCount' call
341
337
  // Inline function 'kotlin.require' call
342
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
338
+ if (!(byteCount >= 0n)) {
343
339
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
344
340
  throw IllegalArgumentException_init_$Create$(toString(message));
345
341
  }
346
- if (equalsLong(this.l1(), new Long(0, 0)))
347
- return new Long(-1, -1);
348
- var bytesWritten = compare(byteCount, this.l1()) > 0 ? this.l1() : byteCount;
349
- sink.xp(this, bytesWritten);
342
+ if (this.l1() === 0n)
343
+ return -1n;
344
+ var bytesWritten = byteCount > this.l1() ? this.l1() : byteCount;
345
+ sink.up(this, bytesWritten);
350
346
  return bytesWritten;
351
347
  };
352
- protoOf(Buffer).yp = function (sink, byteCount) {
348
+ protoOf(Buffer).vp = function (sink, byteCount) {
353
349
  // Inline function 'kotlinx.io.checkByteCount' call
354
350
  // Inline function 'kotlin.require' call
355
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
351
+ if (!(byteCount >= 0n)) {
356
352
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
357
353
  throw IllegalArgumentException_init_$Create$(toString(message));
358
354
  }
359
- if (compare(this.l1(), byteCount) < 0) {
360
- sink.xp(this, this.l1());
355
+ if (this.l1() < byteCount) {
356
+ sink.up(this, this.l1());
361
357
  throw EOFException_init_$Create$_0('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.l1().toString() + ' bytes were written.');
362
358
  }
363
- sink.xp(this, byteCount);
359
+ sink.up(this, byteCount);
364
360
  };
365
- protoOf(Buffer).zp = function (sink) {
361
+ protoOf(Buffer).wp = function (sink) {
366
362
  var byteCount = this.l1();
367
- if (compare(byteCount, new Long(0, 0)) > 0) {
368
- sink.xp(this, byteCount);
363
+ if (byteCount > 0n) {
364
+ sink.up(this, byteCount);
369
365
  }
370
366
  return byteCount;
371
367
  };
372
- protoOf(Buffer).aq = function () {
368
+ protoOf(Buffer).xp = function () {
373
369
  return buffered(new PeekSource(this));
374
370
  };
375
- protoOf(Buffer).bq = function (minimumCapacity) {
371
+ protoOf(Buffer).yp = function (minimumCapacity) {
376
372
  // Inline function 'kotlin.require' call
377
373
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
378
374
  var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
379
375
  throw IllegalArgumentException_init_$Create$(toString(message));
380
376
  }
381
- if (this.to_1 == null) {
382
- var result = SegmentPool_instance.eq();
383
- this.so_1 = result;
384
- this.to_1 = result;
377
+ if (this.qo_1 == null) {
378
+ var result = SegmentPool_instance.bq();
379
+ this.po_1 = result;
380
+ this.qo_1 = result;
385
381
  return result;
386
382
  }
387
- var t = ensureNotNull(this.to_1);
388
- if ((t.cp_1 + minimumCapacity | 0) > 8192 || !t.ep_1) {
389
- var newTail = t.op(SegmentPool_instance.eq());
390
- this.to_1 = newTail;
383
+ var t = ensureNotNull(this.qo_1);
384
+ if ((t.zo_1 + minimumCapacity | 0) > 8192 || !t.bp_1) {
385
+ var newTail = t.lp(SegmentPool_instance.bq());
386
+ this.qo_1 = newTail;
391
387
  return newTail;
392
388
  }
393
389
  return t;
394
390
  };
395
- protoOf(Buffer).fq = function (source, startIndex, endIndex) {
391
+ protoOf(Buffer).cq = function (source, startIndex, endIndex) {
396
392
  // Inline function 'kotlinx.io.checkBounds' call
397
393
  var size = source.length;
398
394
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
399
395
  var currentOffset = startIndex;
400
396
  while (currentOffset < endIndex) {
401
- var tail = this.bq(1);
397
+ var tail = this.yp(1);
402
398
  var tmp0 = endIndex - currentOffset | 0;
403
399
  // Inline function 'kotlin.comparisons.minOf' call
404
- var b = tail.gq();
400
+ var b = tail.dq();
405
401
  var toCopy = Math.min(tmp0, b);
406
- tail.hq(source, currentOffset, currentOffset + toCopy | 0);
402
+ tail.eq(source, currentOffset, currentOffset + toCopy | 0);
407
403
  currentOffset = currentOffset + toCopy | 0;
408
404
  }
409
405
  var tmp = this;
410
- var tmp0_0 = this.uo_1;
406
+ var tmp0_0 = this.ro_1;
411
407
  // Inline function 'kotlin.Long.plus' call
412
408
  var other = endIndex - startIndex | 0;
413
- tmp.uo_1 = add(tmp0_0, fromInt(other));
409
+ tmp.ro_1 = add(tmp0_0, fromInt(other));
414
410
  };
415
- protoOf(Buffer).jq = function (source, byteCount) {
411
+ protoOf(Buffer).gq = function (source, byteCount) {
416
412
  // Inline function 'kotlinx.io.checkByteCount' call
417
413
  // Inline function 'kotlin.require' call
418
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
414
+ if (!(byteCount >= 0n)) {
419
415
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
420
416
  throw IllegalArgumentException_init_$Create$(toString(message));
421
417
  }
422
418
  var remainingByteCount = byteCount;
423
- while (compare(remainingByteCount, new Long(0, 0)) > 0) {
424
- var read = source.wp(this, remainingByteCount);
425
- if (equalsLong(read, new Long(-1, -1))) {
419
+ while (remainingByteCount > 0n) {
420
+ var read = source.tp(this, remainingByteCount);
421
+ if (read === -1n) {
426
422
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + subtract(byteCount, remainingByteCount).toString() + ' were read.'));
427
423
  }
428
424
  remainingByteCount = subtract(remainingByteCount, read);
429
425
  }
430
426
  };
431
- protoOf(Buffer).xp = function (source, byteCount) {
427
+ protoOf(Buffer).up = function (source, byteCount) {
432
428
  // Inline function 'kotlin.require' call
433
429
  if (!!(source === this)) {
434
430
  var message = 'source == this';
435
431
  throw IllegalArgumentException_init_$Create$(toString(message));
436
432
  }
437
- checkOffsetAndCount(source.uo_1, new Long(0, 0), byteCount);
433
+ checkOffsetAndCount(source.ro_1, 0n, byteCount);
438
434
  var remainingByteCount = byteCount;
439
- while (compare(remainingByteCount, new Long(0, 0)) > 0) {
440
- if (compare(remainingByteCount, fromInt(ensureNotNull(source.so_1).l1())) < 0) {
441
- var tail = this.to_1;
435
+ while (remainingByteCount > 0n) {
436
+ if (remainingByteCount < fromInt(ensureNotNull(source.po_1).l1())) {
437
+ var tail = this.qo_1;
442
438
  var tmp;
443
- if (!(tail == null) && tail.ep_1) {
439
+ if (!(tail == null) && tail.bp_1) {
444
440
  var tmp0 = remainingByteCount;
445
441
  // Inline function 'kotlin.Long.plus' call
446
- var other = tail.cp_1;
442
+ var other = tail.zo_1;
447
443
  var tmp0_0 = add(tmp0, fromInt(other));
448
444
  // Inline function 'kotlin.Long.minus' call
449
- var other_0 = tail.kq() ? 0 : tail.bp_1;
450
- var tmp$ret$3 = subtract(tmp0_0, fromInt(other_0));
451
- tmp = compare(tmp$ret$3, new Long(8192, 0)) <= 0;
445
+ var other_0 = tail.hq() ? 0 : tail.yo_1;
446
+ tmp = subtract(tmp0_0, fromInt(other_0)) <= 8192n;
452
447
  } else {
453
448
  tmp = false;
454
449
  }
455
450
  if (tmp) {
456
- ensureNotNull(source.so_1).mq(tail, convertToInt(remainingByteCount));
457
- source.uo_1 = subtract(source.uo_1, remainingByteCount);
458
- this.uo_1 = add(this.uo_1, remainingByteCount);
451
+ ensureNotNull(source.po_1).jq(tail, convertToInt(remainingByteCount));
452
+ source.ro_1 = subtract(source.ro_1, remainingByteCount);
453
+ this.ro_1 = add(this.ro_1, remainingByteCount);
459
454
  return Unit_instance;
460
455
  } else {
461
- source.so_1 = ensureNotNull(source.so_1).lq(convertToInt(remainingByteCount));
456
+ source.po_1 = ensureNotNull(source.po_1).iq(convertToInt(remainingByteCount));
462
457
  }
463
458
  }
464
- var segmentToMove = ensureNotNull(source.so_1);
459
+ var segmentToMove = ensureNotNull(source.po_1);
465
460
  var movedByteCount = fromInt(segmentToMove.l1());
466
- source.so_1 = segmentToMove.nq();
467
- if (source.so_1 == null) {
468
- source.to_1 = null;
461
+ source.po_1 = segmentToMove.kq();
462
+ if (source.po_1 == null) {
463
+ source.qo_1 = null;
469
464
  }
470
465
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
471
- if (this.so_1 == null) {
472
- this.so_1 = segmentToMove;
473
- this.to_1 = segmentToMove;
466
+ if (this.po_1 == null) {
467
+ this.po_1 = segmentToMove;
468
+ this.qo_1 = segmentToMove;
474
469
  } else if (true) {
475
- this.to_1 = ensureNotNull(this.to_1).op(segmentToMove).pp();
476
- if (ensureNotNull(this.to_1).gp_1 == null) {
477
- this.so_1 = this.to_1;
470
+ this.qo_1 = ensureNotNull(this.qo_1).lp(segmentToMove).mp();
471
+ if (ensureNotNull(this.qo_1).dp_1 == null) {
472
+ this.po_1 = this.qo_1;
478
473
  }
479
474
  } else {
480
- this.to_1 = ensureNotNull(this.to_1).op(segmentToMove);
475
+ this.qo_1 = ensureNotNull(this.qo_1).lp(segmentToMove);
481
476
  }
482
- source.uo_1 = subtract(source.uo_1, movedByteCount);
483
- this.uo_1 = add(this.uo_1, movedByteCount);
477
+ source.ro_1 = subtract(source.ro_1, movedByteCount);
478
+ this.ro_1 = add(this.ro_1, movedByteCount);
484
479
  remainingByteCount = subtract(remainingByteCount, movedByteCount);
485
480
  }
486
481
  };
487
- protoOf(Buffer).oq = function (source) {
488
- var totalBytesRead = new Long(0, 0);
482
+ protoOf(Buffer).lq = function (source) {
483
+ var totalBytesRead = 0n;
489
484
  $l$loop: while (true) {
490
- var readCount = source.wp(this, new Long(8192, 0));
491
- if (equalsLong(readCount, new Long(-1, -1)))
485
+ var readCount = source.tp(this, 8192n);
486
+ if (readCount === -1n)
492
487
  break $l$loop;
493
488
  totalBytesRead = add(totalBytesRead, readCount);
494
489
  }
495
490
  return totalBytesRead;
496
491
  };
497
- protoOf(Buffer).pq = function (byte) {
498
- this.bq(1).qq(byte);
499
- this.uo_1 = add(this.uo_1, new Long(1, 0));
492
+ protoOf(Buffer).mq = function (byte) {
493
+ this.yp(1).nq(byte);
494
+ this.ro_1 = add(this.ro_1, 1n);
500
495
  };
501
- protoOf(Buffer).rq = function (short) {
502
- this.bq(2).sq(short);
503
- this.uo_1 = add(this.uo_1, new Long(2, 0));
496
+ protoOf(Buffer).oq = function (short) {
497
+ this.yp(2).pq(short);
498
+ this.ro_1 = add(this.ro_1, 2n);
504
499
  };
505
- protoOf(Buffer).o4 = function () {
500
+ protoOf(Buffer).l4 = function () {
506
501
  return Unit_instance;
507
502
  };
508
503
  protoOf(Buffer).toString = function () {
509
- if (equalsLong(this.l1(), new Long(0, 0)))
504
+ if (this.l1() === 0n)
510
505
  return 'Buffer(size=0)';
511
506
  var maxPrintableBytes = 64;
512
507
  // Inline function 'kotlinx.io.minOf' call
513
508
  var b = this.l1();
514
509
  // Inline function 'kotlin.comparisons.minOf' call
515
510
  var a = fromInt(maxPrintableBytes);
516
- var tmp$ret$1 = compare(a, b) <= 0 ? a : b;
511
+ var tmp$ret$1 = a <= b ? a : b;
517
512
  var len = convertToInt(tmp$ret$1);
518
- var builder = StringBuilder_init_$Create$(imul(len, 2) + (compare(this.l1(), fromInt(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
513
+ var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.l1() > fromInt(maxPrintableBytes) ? 1 : 0) | 0);
519
514
  var bytesWritten = 0;
520
515
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
521
- var curr = this.so_1;
516
+ var curr = this.po_1;
522
517
  while (!(curr == null)) {
523
518
  var tmp0 = get_SegmentReadContextImpl();
524
519
  var segment = curr;
@@ -526,7 +521,7 @@
526
521
  while (bytesWritten < len && idx < segment.l1()) {
527
522
  var _unary__edvuaz = idx;
528
523
  idx = _unary__edvuaz + 1 | 0;
529
- var b_0 = tmp0.tq(segment, _unary__edvuaz);
524
+ var b_0 = tmp0.qq(segment, _unary__edvuaz);
530
525
  bytesWritten = bytesWritten + 1 | 0;
531
526
  var tmp = get_HEX_DIGIT_CHARS();
532
527
  // Inline function 'kotlinx.io.shr' call
@@ -537,57 +532,56 @@
537
532
  var tmp$ret$3 = b_0 & 15;
538
533
  tmp_0.s(tmp_1[tmp$ret$3]);
539
534
  }
540
- curr = curr.fp_1;
535
+ curr = curr.cp_1;
541
536
  }
542
- if (compare(this.l1(), fromInt(maxPrintableBytes)) > 0) {
537
+ if (this.l1() > fromInt(maxPrintableBytes)) {
543
538
  builder.s(_Char___init__impl__6a9atx(8230));
544
539
  }
545
540
  return 'Buffer(size=' + this.l1().toString() + ' hex=' + builder.toString() + ')';
546
541
  };
547
- protoOf(Buffer).hp = function () {
548
- var oldHead = ensureNotNull(this.so_1);
549
- var nextHead = oldHead.fp_1;
550
- this.so_1 = nextHead;
542
+ protoOf(Buffer).ep = function () {
543
+ var oldHead = ensureNotNull(this.po_1);
544
+ var nextHead = oldHead.cp_1;
545
+ this.po_1 = nextHead;
551
546
  if (nextHead == null) {
552
- this.to_1 = null;
547
+ this.qo_1 = null;
553
548
  } else {
554
- nextHead.gp_1 = null;
549
+ nextHead.dp_1 = null;
555
550
  }
556
- oldHead.fp_1 = null;
557
- SegmentPool_instance.uq(oldHead);
551
+ oldHead.cp_1 = null;
552
+ SegmentPool_instance.rq(oldHead);
558
553
  };
559
- protoOf(Buffer).vq = function () {
560
- var oldTail = ensureNotNull(this.to_1);
561
- var newTail = oldTail.gp_1;
562
- this.to_1 = newTail;
554
+ protoOf(Buffer).sq = function () {
555
+ var oldTail = ensureNotNull(this.qo_1);
556
+ var newTail = oldTail.dp_1;
557
+ this.qo_1 = newTail;
563
558
  if (newTail == null) {
564
- this.so_1 = null;
559
+ this.po_1 = null;
565
560
  } else {
566
- newTail.fp_1 = null;
561
+ newTail.cp_1 = null;
567
562
  }
568
- oldTail.gp_1 = null;
569
- SegmentPool_instance.uq(oldTail);
563
+ oldTail.dp_1 = null;
564
+ SegmentPool_instance.rq(oldTail);
570
565
  };
571
566
  function indexOf(_this__u8e3s4, byte, startIndex, endIndex) {
572
- startIndex = startIndex === VOID ? new Long(0, 0) : startIndex;
567
+ startIndex = startIndex === VOID ? 0n : startIndex;
573
568
  endIndex = endIndex === VOID ? _this__u8e3s4.l1() : endIndex;
574
569
  // Inline function 'kotlin.comparisons.minOf' call
575
570
  var b = _this__u8e3s4.l1();
576
- var endOffset = compare(endIndex, b) <= 0 ? endIndex : b;
571
+ var endOffset = endIndex <= b ? endIndex : b;
577
572
  checkBounds(_this__u8e3s4.l1(), startIndex, endOffset);
578
- if (equalsLong(startIndex, endOffset))
579
- return new Long(-1, -1);
573
+ if (startIndex === endOffset)
574
+ return -1n;
580
575
  // Inline function 'kotlinx.io.seek' call
581
- if (_this__u8e3s4.so_1 == null) {
582
- var o = new Long(-1, -1);
583
- if (equalsLong(o, new Long(-1, -1))) {
584
- return new Long(-1, -1);
576
+ if (_this__u8e3s4.po_1 == null) {
577
+ if (-1n === -1n) {
578
+ return -1n;
585
579
  }
586
580
  var segment = null;
587
- var offset = o;
581
+ var offset = -1n;
588
582
  do {
589
583
  // Inline function 'kotlin.check' call
590
- if (!(compare(endOffset, offset) > 0)) {
584
+ if (!(endOffset > offset)) {
591
585
  throw IllegalStateException_init_$Create$('Check failed.');
592
586
  }
593
587
  ensureNotNull(segment);
@@ -607,30 +601,30 @@
607
601
  // Inline function 'kotlin.Long.plus' call
608
602
  var other = segment.l1();
609
603
  offset = add(tmp0_0, fromInt(other));
610
- segment = segment.fp_1;
604
+ segment = segment.cp_1;
611
605
  }
612
- while (!(segment == null) && compare(offset, endOffset) < 0);
613
- return new Long(-1, -1);
606
+ while (!(segment == null) && offset < endOffset);
607
+ return -1n;
614
608
  }
615
- if (compare(subtract(_this__u8e3s4.l1(), startIndex), startIndex) < 0) {
616
- var s = _this__u8e3s4.to_1;
609
+ if (subtract(_this__u8e3s4.l1(), startIndex) < startIndex) {
610
+ var s = _this__u8e3s4.qo_1;
617
611
  var offset_0 = _this__u8e3s4.l1();
618
- $l$loop: while (!(s == null) && compare(offset_0, startIndex) > 0) {
619
- offset_0 = subtract(offset_0, fromInt(s.cp_1 - s.bp_1 | 0));
620
- if (compare(offset_0, startIndex) <= 0)
612
+ $l$loop: while (!(s == null) && offset_0 > startIndex) {
613
+ offset_0 = subtract(offset_0, fromInt(s.zo_1 - s.yo_1 | 0));
614
+ if (offset_0 <= startIndex)
621
615
  break $l$loop;
622
- s = s.gp_1;
616
+ s = s.dp_1;
623
617
  }
624
618
  var tmp0_1 = s;
625
- var o_0 = offset_0;
626
- if (equalsLong(o_0, new Long(-1, -1))) {
627
- return new Long(-1, -1);
619
+ var o = offset_0;
620
+ if (o === -1n) {
621
+ return -1n;
628
622
  }
629
623
  var segment_0 = tmp0_1;
630
- var offset_1 = o_0;
624
+ var offset_1 = o;
631
625
  do {
632
626
  // Inline function 'kotlin.check' call
633
- if (!(compare(endOffset, offset_1) > 0)) {
627
+ if (!(endOffset > offset_1)) {
634
628
  throw IllegalStateException_init_$Create$('Check failed.');
635
629
  }
636
630
  ensureNotNull(segment_0);
@@ -650,33 +644,33 @@
650
644
  // Inline function 'kotlin.Long.plus' call
651
645
  var other_0 = segment_0.l1();
652
646
  offset_1 = add(tmp0_3, fromInt(other_0));
653
- segment_0 = segment_0.fp_1;
647
+ segment_0 = segment_0.cp_1;
654
648
  }
655
- while (!(segment_0 == null) && compare(offset_1, endOffset) < 0);
656
- return new Long(-1, -1);
649
+ while (!(segment_0 == null) && offset_1 < endOffset);
650
+ return -1n;
657
651
  } else {
658
- var s_0 = _this__u8e3s4.so_1;
659
- var offset_2 = new Long(0, 0);
652
+ var s_0 = _this__u8e3s4.po_1;
653
+ var offset_2 = 0n;
660
654
  $l$loop_0: while (!(s_0 == null)) {
661
655
  var tmp0_4 = offset_2;
662
656
  // Inline function 'kotlin.Long.plus' call
663
- var other_1 = s_0.cp_1 - s_0.bp_1 | 0;
657
+ var other_1 = s_0.zo_1 - s_0.yo_1 | 0;
664
658
  var nextOffset = add(tmp0_4, fromInt(other_1));
665
- if (compare(nextOffset, startIndex) > 0)
659
+ if (nextOffset > startIndex)
666
660
  break $l$loop_0;
667
- s_0 = s_0.fp_1;
661
+ s_0 = s_0.cp_1;
668
662
  offset_2 = nextOffset;
669
663
  }
670
664
  var tmp0_5 = s_0;
671
- var o_1 = offset_2;
672
- if (equalsLong(o_1, new Long(-1, -1))) {
673
- return new Long(-1, -1);
665
+ var o_0 = offset_2;
666
+ if (o_0 === -1n) {
667
+ return -1n;
674
668
  }
675
669
  var segment_1 = tmp0_5;
676
- var offset_3 = o_1;
670
+ var offset_3 = o_0;
677
671
  do {
678
672
  // Inline function 'kotlin.check' call
679
- if (!(compare(endOffset, offset_3) > 0)) {
673
+ if (!(endOffset > offset_3)) {
680
674
  throw IllegalStateException_init_$Create$('Check failed.');
681
675
  }
682
676
  ensureNotNull(segment_1);
@@ -696,207 +690,207 @@
696
690
  // Inline function 'kotlin.Long.plus' call
697
691
  var other_2 = segment_1.l1();
698
692
  offset_3 = add(tmp0_7, fromInt(other_2));
699
- segment_1 = segment_1.fp_1;
693
+ segment_1 = segment_1.cp_1;
700
694
  }
701
- while (!(segment_1 == null) && compare(offset_3, endOffset) < 0);
702
- return new Long(-1, -1);
695
+ while (!(segment_1 == null) && offset_3 < endOffset);
696
+ return -1n;
703
697
  }
704
698
  }
705
699
  function readByteString(_this__u8e3s4, byteCount) {
706
- return UnsafeByteStringOperations_instance.ro(readByteArray_0(_this__u8e3s4, byteCount));
700
+ return UnsafeByteStringOperations_instance.oo(readByteArray_0(_this__u8e3s4, byteCount));
707
701
  }
708
702
  function buffered(_this__u8e3s4) {
709
703
  return new RealSource(_this__u8e3s4);
710
704
  }
711
705
  function PeekSource(upstream) {
712
- this.wq_1 = upstream;
713
- this.xq_1 = this.wq_1.vo();
714
- this.yq_1 = this.xq_1.so_1;
706
+ this.tq_1 = upstream;
707
+ this.uq_1 = this.tq_1.so();
708
+ this.vq_1 = this.uq_1.po_1;
715
709
  var tmp = this;
716
- var tmp0_safe_receiver = this.xq_1.so_1;
717
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bp_1;
718
- tmp.zq_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
719
- this.ar_1 = false;
720
- this.br_1 = new Long(0, 0);
710
+ var tmp0_safe_receiver = this.uq_1.po_1;
711
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yo_1;
712
+ tmp.wq_1 = tmp1_elvis_lhs == null ? -1 : tmp1_elvis_lhs;
713
+ this.xq_1 = false;
714
+ this.yq_1 = 0n;
721
715
  }
722
- protoOf(PeekSource).wp = function (sink, byteCount) {
716
+ protoOf(PeekSource).tp = function (sink, byteCount) {
723
717
  // Inline function 'kotlin.check' call
724
- if (!!this.ar_1) {
718
+ if (!!this.xq_1) {
725
719
  var message = 'Source is closed.';
726
720
  throw IllegalStateException_init_$Create$(toString(message));
727
721
  }
728
722
  // Inline function 'kotlinx.io.checkByteCount' call
729
723
  // Inline function 'kotlin.require' call
730
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
724
+ if (!(byteCount >= 0n)) {
731
725
  var message_0 = 'byteCount (' + byteCount.toString() + ') < 0';
732
726
  throw IllegalArgumentException_init_$Create$(toString(message_0));
733
727
  }
734
728
  // Inline function 'kotlin.check' call
735
- if (!(this.yq_1 == null || (this.yq_1 === this.xq_1.so_1 && this.zq_1 === ensureNotNull(this.xq_1.so_1).bp_1))) {
729
+ if (!(this.vq_1 == null || (this.vq_1 === this.uq_1.po_1 && this.wq_1 === ensureNotNull(this.uq_1.po_1).yo_1))) {
736
730
  var message_1 = 'Peek source is invalid because upstream source was used';
737
731
  throw IllegalStateException_init_$Create$(toString(message_1));
738
732
  }
739
- if (equalsLong(byteCount, new Long(0, 0)))
740
- return new Long(0, 0);
733
+ if (byteCount === 0n)
734
+ return 0n;
741
735
  // Inline function 'kotlin.Long.plus' call
742
- var this_0 = this.br_1;
736
+ var this_0 = this.yq_1;
743
737
  var tmp$ret$7 = add(this_0, fromInt(1));
744
- if (!this.wq_1.yo(tmp$ret$7))
745
- return new Long(-1, -1);
746
- if (this.yq_1 == null && !(this.xq_1.so_1 == null)) {
747
- this.yq_1 = this.xq_1.so_1;
748
- this.zq_1 = ensureNotNull(this.xq_1.so_1).bp_1;
738
+ if (!this.tq_1.vo(tmp$ret$7))
739
+ return -1n;
740
+ if (this.vq_1 == null && !(this.uq_1.po_1 == null)) {
741
+ this.vq_1 = this.uq_1.po_1;
742
+ this.wq_1 = ensureNotNull(this.uq_1.po_1).yo_1;
749
743
  }
750
744
  // Inline function 'kotlin.comparisons.minOf' call
751
- var b = subtract(this.xq_1.l1(), this.br_1);
752
- var toCopy = compare(byteCount, b) <= 0 ? byteCount : b;
753
- this.xq_1.mp(sink, this.br_1, add(this.br_1, toCopy));
754
- this.br_1 = add(this.br_1, toCopy);
745
+ var b = subtract(this.uq_1.l1(), this.yq_1);
746
+ var toCopy = byteCount <= b ? byteCount : b;
747
+ this.uq_1.jp(sink, this.yq_1, add(this.yq_1, toCopy));
748
+ this.yq_1 = add(this.yq_1, toCopy);
755
749
  return toCopy;
756
750
  };
757
- protoOf(PeekSource).o4 = function () {
758
- this.ar_1 = true;
751
+ protoOf(PeekSource).l4 = function () {
752
+ this.xq_1 = true;
759
753
  };
760
754
  function RealSource(source) {
761
- this.cr_1 = source;
762
- this.dr_1 = false;
763
- this.er_1 = new Buffer();
755
+ this.zq_1 = source;
756
+ this.ar_1 = false;
757
+ this.br_1 = new Buffer();
764
758
  }
765
- protoOf(RealSource).vo = function () {
766
- return this.er_1;
759
+ protoOf(RealSource).so = function () {
760
+ return this.br_1;
767
761
  };
768
- protoOf(RealSource).wp = function (sink, byteCount) {
762
+ protoOf(RealSource).tp = function (sink, byteCount) {
769
763
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
770
764
  // Inline function 'kotlin.check' call
771
- if (!!this.dr_1) {
765
+ if (!!this.ar_1) {
772
766
  var message = 'Source is closed.';
773
767
  throw IllegalStateException_init_$Create$(toString(message));
774
768
  }
775
769
  // Inline function 'kotlin.require' call
776
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
770
+ if (!(byteCount >= 0n)) {
777
771
  var message_0 = 'byteCount: ' + byteCount.toString();
778
772
  throw IllegalArgumentException_init_$Create$(toString(message_0));
779
773
  }
780
- if (equalsLong(this.er_1.l1(), new Long(0, 0))) {
781
- var read = this.cr_1.wp(this.er_1, new Long(8192, 0));
782
- if (equalsLong(read, new Long(-1, -1)))
783
- return new Long(-1, -1);
774
+ if (this.br_1.l1() === 0n) {
775
+ var read = this.zq_1.tp(this.br_1, 8192n);
776
+ if (read === -1n)
777
+ return -1n;
784
778
  }
785
779
  // Inline function 'kotlin.comparisons.minOf' call
786
- var b = this.er_1.l1();
787
- var toRead = compare(byteCount, b) <= 0 ? byteCount : b;
788
- return this.er_1.wp(sink, toRead);
780
+ var b = this.br_1.l1();
781
+ var toRead = byteCount <= b ? byteCount : b;
782
+ return this.br_1.tp(sink, toRead);
789
783
  };
790
- protoOf(RealSource).wo = function () {
784
+ protoOf(RealSource).to = function () {
791
785
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
792
786
  // Inline function 'kotlin.check' call
793
- if (!!this.dr_1) {
787
+ if (!!this.ar_1) {
794
788
  var message = 'Source is closed.';
795
789
  throw IllegalStateException_init_$Create$(toString(message));
796
790
  }
797
- return this.er_1.wo() && equalsLong(this.cr_1.wp(this.er_1, new Long(8192, 0)), new Long(-1, -1));
791
+ return this.br_1.to() && this.zq_1.tp(this.br_1, 8192n) === -1n;
798
792
  };
799
- protoOf(RealSource).xo = function (byteCount) {
800
- if (!this.yo(byteCount))
793
+ protoOf(RealSource).uo = function (byteCount) {
794
+ if (!this.vo(byteCount))
801
795
  throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
802
796
  };
803
- protoOf(RealSource).yo = function (byteCount) {
797
+ protoOf(RealSource).vo = function (byteCount) {
804
798
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
805
799
  // Inline function 'kotlin.check' call
806
- if (!!this.dr_1) {
800
+ if (!!this.ar_1) {
807
801
  var message = 'Source is closed.';
808
802
  throw IllegalStateException_init_$Create$(toString(message));
809
803
  }
810
804
  // Inline function 'kotlin.require' call
811
- if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
805
+ if (!(byteCount >= 0n)) {
812
806
  var message_0 = 'byteCount: ' + byteCount.toString();
813
807
  throw IllegalArgumentException_init_$Create$(toString(message_0));
814
808
  }
815
- while (compare(this.er_1.l1(), byteCount) < 0) {
816
- if (equalsLong(this.cr_1.wp(this.er_1, new Long(8192, 0)), new Long(-1, -1)))
809
+ while (this.br_1.l1() < byteCount) {
810
+ if (this.zq_1.tp(this.br_1, 8192n) === -1n)
817
811
  return false;
818
812
  }
819
813
  return true;
820
814
  };
821
- protoOf(RealSource).zo = function () {
822
- this.xo(new Long(1, 0));
823
- return this.er_1.zo();
815
+ protoOf(RealSource).wo = function () {
816
+ this.uo(1n);
817
+ return this.br_1.wo();
824
818
  };
825
- protoOf(RealSource).up = function (sink, startIndex, endIndex) {
819
+ protoOf(RealSource).rp = function (sink, startIndex, endIndex) {
826
820
  // Inline function 'kotlinx.io.checkBounds' call
827
821
  var size = sink.length;
828
822
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
829
- if (equalsLong(this.er_1.l1(), new Long(0, 0))) {
830
- var read = this.cr_1.wp(this.er_1, new Long(8192, 0));
831
- if (equalsLong(read, new Long(-1, -1)))
823
+ if (this.br_1.l1() === 0n) {
824
+ var read = this.zq_1.tp(this.br_1, 8192n);
825
+ if (read === -1n)
832
826
  return -1;
833
827
  }
834
828
  var tmp0 = endIndex - startIndex | 0;
835
829
  // Inline function 'kotlinx.io.minOf' call
836
- var b = this.er_1.l1();
830
+ var b = this.br_1.l1();
837
831
  // Inline function 'kotlin.comparisons.minOf' call
838
832
  var a = fromInt(tmp0);
839
- var tmp$ret$2 = compare(a, b) <= 0 ? a : b;
833
+ var tmp$ret$2 = a <= b ? a : b;
840
834
  var toRead = convertToInt(tmp$ret$2);
841
- return this.er_1.up(sink, startIndex, startIndex + toRead | 0);
835
+ return this.br_1.rp(sink, startIndex, startIndex + toRead | 0);
842
836
  };
843
- protoOf(RealSource).yp = function (sink, byteCount) {
837
+ protoOf(RealSource).vp = function (sink, byteCount) {
844
838
  try {
845
- this.xo(byteCount);
839
+ this.uo(byteCount);
846
840
  } catch ($p) {
847
841
  if ($p instanceof EOFException) {
848
842
  var e = $p;
849
- sink.xp(this.er_1, this.er_1.l1());
843
+ sink.up(this.br_1, this.br_1.l1());
850
844
  throw e;
851
845
  } else {
852
846
  throw $p;
853
847
  }
854
848
  }
855
- this.er_1.yp(sink, byteCount);
849
+ this.br_1.vp(sink, byteCount);
856
850
  };
857
- protoOf(RealSource).zp = function (sink) {
858
- var totalBytesWritten = new Long(0, 0);
859
- while (!equalsLong(this.cr_1.wp(this.er_1, new Long(8192, 0)), new Long(-1, -1))) {
860
- var emitByteCount = this.er_1.qp();
861
- if (compare(emitByteCount, new Long(0, 0)) > 0) {
851
+ protoOf(RealSource).wp = function (sink) {
852
+ var totalBytesWritten = 0n;
853
+ while (!(this.zq_1.tp(this.br_1, 8192n) === -1n)) {
854
+ var emitByteCount = this.br_1.np();
855
+ if (emitByteCount > 0n) {
862
856
  totalBytesWritten = add(totalBytesWritten, emitByteCount);
863
- sink.xp(this.er_1, emitByteCount);
857
+ sink.up(this.br_1, emitByteCount);
864
858
  }
865
859
  }
866
- if (compare(this.er_1.l1(), new Long(0, 0)) > 0) {
867
- totalBytesWritten = add(totalBytesWritten, this.er_1.l1());
868
- sink.xp(this.er_1, this.er_1.l1());
860
+ if (this.br_1.l1() > 0n) {
861
+ totalBytesWritten = add(totalBytesWritten, this.br_1.l1());
862
+ sink.up(this.br_1, this.br_1.l1());
869
863
  }
870
864
  return totalBytesWritten;
871
865
  };
872
- protoOf(RealSource).jp = function () {
873
- this.xo(new Long(2, 0));
874
- return this.er_1.jp();
866
+ protoOf(RealSource).gp = function () {
867
+ this.uo(2n);
868
+ return this.br_1.gp();
875
869
  };
876
- protoOf(RealSource).aq = function () {
870
+ protoOf(RealSource).xp = function () {
877
871
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
878
872
  // Inline function 'kotlin.check' call
879
- if (!!this.dr_1) {
873
+ if (!!this.ar_1) {
880
874
  var message = 'Source is closed.';
881
875
  throw IllegalStateException_init_$Create$(toString(message));
882
876
  }
883
877
  return buffered(new PeekSource(this));
884
878
  };
885
- protoOf(RealSource).o4 = function () {
886
- if (this.dr_1)
879
+ protoOf(RealSource).l4 = function () {
880
+ if (this.ar_1)
887
881
  return Unit_instance;
888
- this.dr_1 = true;
889
- this.cr_1.o4();
890
- this.er_1.t2();
882
+ this.ar_1 = true;
883
+ this.zq_1.l4();
884
+ this.br_1.t2();
891
885
  };
892
886
  protoOf(RealSource).toString = function () {
893
- return 'buffered(' + toString(this.cr_1) + ')';
887
+ return 'buffered(' + toString(this.zq_1) + ')';
894
888
  };
895
889
  function Segment_init_$Init$($this) {
896
890
  Segment.call($this);
897
- $this.ap_1 = new Int8Array(8192);
898
- $this.ep_1 = true;
899
- $this.dp_1 = null;
891
+ $this.xo_1 = new Int8Array(8192);
892
+ $this.bp_1 = true;
893
+ $this.ap_1 = null;
900
894
  return $this;
901
895
  }
902
896
  function Segment_init_$Create$() {
@@ -904,87 +898,87 @@
904
898
  }
905
899
  function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
906
900
  Segment.call($this);
907
- $this.ap_1 = data;
908
- $this.bp_1 = pos;
909
- $this.cp_1 = limit;
910
- $this.dp_1 = shareToken;
911
- $this.ep_1 = owner;
901
+ $this.xo_1 = data;
902
+ $this.yo_1 = pos;
903
+ $this.zo_1 = limit;
904
+ $this.ap_1 = shareToken;
905
+ $this.bp_1 = owner;
912
906
  return $this;
913
907
  }
914
908
  function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
915
909
  return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
916
910
  }
917
911
  function Companion() {
918
- this.fr_1 = 8192;
919
- this.gr_1 = 1024;
912
+ this.cr_1 = 8192;
913
+ this.dr_1 = 1024;
920
914
  }
921
- protoOf(Companion).hr = function () {
915
+ protoOf(Companion).er = function () {
922
916
  return Segment_init_$Create$();
923
917
  };
924
918
  var Companion_instance;
925
919
  function Companion_getInstance() {
926
920
  return Companion_instance;
927
921
  }
928
- protoOf(Segment).kq = function () {
929
- var tmp0_safe_receiver = this.dp_1;
930
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ir();
922
+ protoOf(Segment).hq = function () {
923
+ var tmp0_safe_receiver = this.ap_1;
924
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fr();
931
925
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
932
926
  };
933
- protoOf(Segment).np = function () {
934
- var tmp0_elvis_lhs = this.dp_1;
927
+ protoOf(Segment).kp = function () {
928
+ var tmp0_elvis_lhs = this.ap_1;
935
929
  var tmp;
936
930
  if (tmp0_elvis_lhs == null) {
937
931
  // Inline function 'kotlin.also' call
938
- var this_0 = SegmentPool_instance.jr();
939
- this.dp_1 = this_0;
932
+ var this_0 = SegmentPool_instance.gr();
933
+ this.ap_1 = this_0;
940
934
  tmp = this_0;
941
935
  } else {
942
936
  tmp = tmp0_elvis_lhs;
943
937
  }
944
938
  var t = tmp;
945
- var tmp_0 = this.bp_1;
946
- var tmp_1 = this.cp_1;
939
+ var tmp_0 = this.yo_1;
940
+ var tmp_1 = this.zo_1;
947
941
  // Inline function 'kotlin.also' call
948
- t.kr();
949
- return Segment_init_$Create$_0(this.ap_1, tmp_0, tmp_1, t, false);
942
+ t.hr();
943
+ return Segment_init_$Create$_0(this.xo_1, tmp_0, tmp_1, t, false);
950
944
  };
951
- protoOf(Segment).nq = function () {
952
- var result = this.fp_1;
953
- if (!(this.gp_1 == null)) {
954
- ensureNotNull(this.gp_1).fp_1 = this.fp_1;
945
+ protoOf(Segment).kq = function () {
946
+ var result = this.cp_1;
947
+ if (!(this.dp_1 == null)) {
948
+ ensureNotNull(this.dp_1).cp_1 = this.cp_1;
955
949
  }
956
- if (!(this.fp_1 == null)) {
957
- ensureNotNull(this.fp_1).gp_1 = this.gp_1;
950
+ if (!(this.cp_1 == null)) {
951
+ ensureNotNull(this.cp_1).dp_1 = this.dp_1;
958
952
  }
959
- this.fp_1 = null;
960
- this.gp_1 = null;
953
+ this.cp_1 = null;
954
+ this.dp_1 = null;
961
955
  return result;
962
956
  };
963
- protoOf(Segment).op = function (segment) {
964
- segment.gp_1 = this;
965
- segment.fp_1 = this.fp_1;
966
- if (!(this.fp_1 == null)) {
967
- ensureNotNull(this.fp_1).gp_1 = segment;
957
+ protoOf(Segment).lp = function (segment) {
958
+ segment.dp_1 = this;
959
+ segment.cp_1 = this.cp_1;
960
+ if (!(this.cp_1 == null)) {
961
+ ensureNotNull(this.cp_1).dp_1 = segment;
968
962
  }
969
- this.fp_1 = segment;
963
+ this.cp_1 = segment;
970
964
  return segment;
971
965
  };
972
- protoOf(Segment).lq = function (byteCount) {
966
+ protoOf(Segment).iq = function (byteCount) {
973
967
  // Inline function 'kotlin.require' call
974
- if (!(byteCount > 0 && byteCount <= (this.cp_1 - this.bp_1 | 0))) {
968
+ if (!(byteCount > 0 && byteCount <= (this.zo_1 - this.yo_1 | 0))) {
975
969
  var message = 'byteCount out of range';
976
970
  throw IllegalArgumentException_init_$Create$(toString(message));
977
971
  }
978
972
  var prefix;
979
973
  if (byteCount >= 1024) {
980
- prefix = this.np();
974
+ prefix = this.kp();
981
975
  } else {
982
- prefix = SegmentPool_instance.eq();
983
- var tmp0 = this.ap_1;
984
- var tmp2 = prefix.ap_1;
985
- var tmp5 = this.bp_1;
976
+ prefix = SegmentPool_instance.bq();
977
+ var tmp0 = this.xo_1;
978
+ var tmp2 = prefix.xo_1;
979
+ var tmp5 = this.yo_1;
986
980
  // Inline function 'kotlin.collections.copyInto' call
987
- var endIndex = this.bp_1 + byteCount | 0;
981
+ var endIndex = this.yo_1 + byteCount | 0;
988
982
  // Inline function 'kotlin.js.unsafeCast' call
989
983
  // Inline function 'kotlin.js.asDynamic' call
990
984
  var tmp = tmp0;
@@ -992,62 +986,62 @@
992
986
  // Inline function 'kotlin.js.asDynamic' call
993
987
  arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
994
988
  }
995
- prefix.cp_1 = prefix.bp_1 + byteCount | 0;
996
- this.bp_1 = this.bp_1 + byteCount | 0;
997
- if (!(this.gp_1 == null)) {
998
- ensureNotNull(this.gp_1).op(prefix);
989
+ prefix.zo_1 = prefix.yo_1 + byteCount | 0;
990
+ this.yo_1 = this.yo_1 + byteCount | 0;
991
+ if (!(this.dp_1 == null)) {
992
+ ensureNotNull(this.dp_1).lp(prefix);
999
993
  } else {
1000
- prefix.fp_1 = this;
1001
- this.gp_1 = prefix;
994
+ prefix.cp_1 = this;
995
+ this.dp_1 = prefix;
1002
996
  }
1003
997
  return prefix;
1004
998
  };
1005
- protoOf(Segment).pp = function () {
999
+ protoOf(Segment).mp = function () {
1006
1000
  // Inline function 'kotlin.check' call
1007
- if (!!(this.gp_1 == null)) {
1001
+ if (!!(this.dp_1 == null)) {
1008
1002
  var message = 'cannot compact';
1009
1003
  throw IllegalStateException_init_$Create$(toString(message));
1010
1004
  }
1011
- if (!ensureNotNull(this.gp_1).ep_1)
1005
+ if (!ensureNotNull(this.dp_1).bp_1)
1012
1006
  return this;
1013
- var byteCount = this.cp_1 - this.bp_1 | 0;
1014
- var availableByteCount = (8192 - ensureNotNull(this.gp_1).cp_1 | 0) + (ensureNotNull(this.gp_1).kq() ? 0 : ensureNotNull(this.gp_1).bp_1) | 0;
1007
+ var byteCount = this.zo_1 - this.yo_1 | 0;
1008
+ var availableByteCount = (8192 - ensureNotNull(this.dp_1).zo_1 | 0) + (ensureNotNull(this.dp_1).hq() ? 0 : ensureNotNull(this.dp_1).yo_1) | 0;
1015
1009
  if (byteCount > availableByteCount)
1016
1010
  return this;
1017
- var predecessor = this.gp_1;
1018
- this.mq(ensureNotNull(predecessor), byteCount);
1019
- var successor = this.nq();
1011
+ var predecessor = this.dp_1;
1012
+ this.jq(ensureNotNull(predecessor), byteCount);
1013
+ var successor = this.kq();
1020
1014
  // Inline function 'kotlin.check' call
1021
1015
  if (!(successor == null)) {
1022
1016
  throw IllegalStateException_init_$Create$('Check failed.');
1023
1017
  }
1024
- SegmentPool_instance.uq(this);
1018
+ SegmentPool_instance.rq(this);
1025
1019
  return predecessor;
1026
1020
  };
1027
- protoOf(Segment).qq = function (byte) {
1028
- var _unary__edvuaz = this.cp_1;
1029
- this.cp_1 = _unary__edvuaz + 1 | 0;
1030
- this.ap_1[_unary__edvuaz] = byte;
1021
+ protoOf(Segment).nq = function (byte) {
1022
+ var _unary__edvuaz = this.zo_1;
1023
+ this.zo_1 = _unary__edvuaz + 1 | 0;
1024
+ this.xo_1[_unary__edvuaz] = byte;
1031
1025
  };
1032
- protoOf(Segment).sq = function (short) {
1033
- var data = this.ap_1;
1034
- var limit = this.cp_1;
1026
+ protoOf(Segment).pq = function (short) {
1027
+ var data = this.xo_1;
1028
+ var limit = this.zo_1;
1035
1029
  var _unary__edvuaz = limit;
1036
1030
  limit = _unary__edvuaz + 1 | 0;
1037
1031
  data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
1038
1032
  var _unary__edvuaz_0 = limit;
1039
1033
  limit = _unary__edvuaz_0 + 1 | 0;
1040
1034
  data[_unary__edvuaz_0] = toByte(short & 255);
1041
- this.cp_1 = limit;
1035
+ this.zo_1 = limit;
1042
1036
  };
1043
- protoOf(Segment).ip = function () {
1044
- var _unary__edvuaz = this.bp_1;
1045
- this.bp_1 = _unary__edvuaz + 1 | 0;
1046
- return this.ap_1[_unary__edvuaz];
1037
+ protoOf(Segment).fp = function () {
1038
+ var _unary__edvuaz = this.yo_1;
1039
+ this.yo_1 = _unary__edvuaz + 1 | 0;
1040
+ return this.xo_1[_unary__edvuaz];
1047
1041
  };
1048
- protoOf(Segment).kp = function () {
1049
- var data = this.ap_1;
1050
- var pos = this.bp_1;
1042
+ protoOf(Segment).hp = function () {
1043
+ var data = this.xo_1;
1044
+ var pos = this.yo_1;
1051
1045
  var _unary__edvuaz = pos;
1052
1046
  pos = _unary__edvuaz + 1 | 0;
1053
1047
  // Inline function 'kotlinx.io.and' call
@@ -1057,118 +1051,118 @@
1057
1051
  // Inline function 'kotlinx.io.and' call
1058
1052
  var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
1059
1053
  var s = toShort(tmp | tmp$ret$1);
1060
- this.bp_1 = pos;
1054
+ this.yo_1 = pos;
1061
1055
  return s;
1062
1056
  };
1063
- protoOf(Segment).mq = function (sink, byteCount) {
1057
+ protoOf(Segment).jq = function (sink, byteCount) {
1064
1058
  // Inline function 'kotlin.check' call
1065
- if (!sink.ep_1) {
1059
+ if (!sink.bp_1) {
1066
1060
  var message = 'only owner can write';
1067
1061
  throw IllegalStateException_init_$Create$(toString(message));
1068
1062
  }
1069
- if ((sink.cp_1 + byteCount | 0) > 8192) {
1070
- if (sink.kq())
1063
+ if ((sink.zo_1 + byteCount | 0) > 8192) {
1064
+ if (sink.hq())
1071
1065
  throw IllegalArgumentException_init_$Create$_0();
1072
- if (((sink.cp_1 + byteCount | 0) - sink.bp_1 | 0) > 8192)
1066
+ if (((sink.zo_1 + byteCount | 0) - sink.yo_1 | 0) > 8192)
1073
1067
  throw IllegalArgumentException_init_$Create$_0();
1074
- var tmp0 = sink.ap_1;
1075
- var tmp2 = sink.ap_1;
1076
- var tmp5 = sink.bp_1;
1068
+ var tmp0 = sink.xo_1;
1069
+ var tmp2 = sink.xo_1;
1070
+ var tmp5 = sink.yo_1;
1077
1071
  // Inline function 'kotlin.collections.copyInto' call
1078
- var endIndex = sink.cp_1;
1072
+ var endIndex = sink.zo_1;
1079
1073
  // Inline function 'kotlin.js.unsafeCast' call
1080
1074
  // Inline function 'kotlin.js.asDynamic' call
1081
1075
  var tmp = tmp0;
1082
1076
  // Inline function 'kotlin.js.unsafeCast' call
1083
1077
  // Inline function 'kotlin.js.asDynamic' call
1084
1078
  arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
1085
- sink.cp_1 = sink.cp_1 - sink.bp_1 | 0;
1086
- sink.bp_1 = 0;
1079
+ sink.zo_1 = sink.zo_1 - sink.yo_1 | 0;
1080
+ sink.yo_1 = 0;
1087
1081
  }
1088
- var tmp0_0 = this.ap_1;
1089
- var tmp2_0 = sink.ap_1;
1090
- var tmp4 = sink.cp_1;
1091
- var tmp6 = this.bp_1;
1082
+ var tmp0_0 = this.xo_1;
1083
+ var tmp2_0 = sink.xo_1;
1084
+ var tmp4 = sink.zo_1;
1085
+ var tmp6 = this.yo_1;
1092
1086
  // Inline function 'kotlin.collections.copyInto' call
1093
- var endIndex_0 = this.bp_1 + byteCount | 0;
1087
+ var endIndex_0 = this.yo_1 + byteCount | 0;
1094
1088
  // Inline function 'kotlin.js.unsafeCast' call
1095
1089
  // Inline function 'kotlin.js.asDynamic' call
1096
1090
  var tmp_0 = tmp0_0;
1097
1091
  // Inline function 'kotlin.js.unsafeCast' call
1098
1092
  // Inline function 'kotlin.js.asDynamic' call
1099
1093
  arrayCopy(tmp_0, tmp2_0, tmp4, tmp6, endIndex_0);
1100
- sink.cp_1 = sink.cp_1 + byteCount | 0;
1101
- this.bp_1 = this.bp_1 + byteCount | 0;
1094
+ sink.zo_1 = sink.zo_1 + byteCount | 0;
1095
+ this.yo_1 = this.yo_1 + byteCount | 0;
1102
1096
  };
1103
- protoOf(Segment).vp = function (dst, dstStartOffset, dstEndOffset) {
1097
+ protoOf(Segment).sp = function (dst, dstStartOffset, dstEndOffset) {
1104
1098
  var len = dstEndOffset - dstStartOffset | 0;
1105
- var tmp0 = this.ap_1;
1106
- var tmp6 = this.bp_1;
1099
+ var tmp0 = this.xo_1;
1100
+ var tmp6 = this.yo_1;
1107
1101
  // Inline function 'kotlin.collections.copyInto' call
1108
- var endIndex = this.bp_1 + len | 0;
1102
+ var endIndex = this.yo_1 + len | 0;
1109
1103
  // Inline function 'kotlin.js.unsafeCast' call
1110
1104
  // Inline function 'kotlin.js.asDynamic' call
1111
1105
  var tmp = tmp0;
1112
1106
  // Inline function 'kotlin.js.unsafeCast' call
1113
1107
  // Inline function 'kotlin.js.asDynamic' call
1114
1108
  arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
1115
- this.bp_1 = this.bp_1 + len | 0;
1109
+ this.yo_1 = this.yo_1 + len | 0;
1116
1110
  };
1117
- protoOf(Segment).hq = function (src, srcStartOffset, srcEndOffset) {
1118
- var tmp2 = this.ap_1;
1111
+ protoOf(Segment).eq = function (src, srcStartOffset, srcEndOffset) {
1112
+ var tmp2 = this.xo_1;
1119
1113
  // Inline function 'kotlin.collections.copyInto' call
1120
- var destinationOffset = this.cp_1;
1114
+ var destinationOffset = this.zo_1;
1121
1115
  // Inline function 'kotlin.js.unsafeCast' call
1122
1116
  // Inline function 'kotlin.js.asDynamic' call
1123
1117
  var tmp = src;
1124
1118
  // Inline function 'kotlin.js.unsafeCast' call
1125
1119
  // Inline function 'kotlin.js.asDynamic' call
1126
1120
  arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
1127
- this.cp_1 = this.cp_1 + (srcEndOffset - srcStartOffset | 0) | 0;
1121
+ this.zo_1 = this.zo_1 + (srcEndOffset - srcStartOffset | 0) | 0;
1128
1122
  };
1129
1123
  protoOf(Segment).l1 = function () {
1130
- return this.cp_1 - this.bp_1 | 0;
1124
+ return this.zo_1 - this.yo_1 | 0;
1131
1125
  };
1132
- protoOf(Segment).gq = function () {
1133
- return this.ap_1.length - this.cp_1 | 0;
1126
+ protoOf(Segment).dq = function () {
1127
+ return this.xo_1.length - this.zo_1 | 0;
1134
1128
  };
1135
- protoOf(Segment).lr = function (readOnly) {
1136
- return this.ap_1;
1129
+ protoOf(Segment).ir = function (readOnly) {
1130
+ return this.xo_1;
1137
1131
  };
1138
- protoOf(Segment).sp = function (index) {
1139
- return this.ap_1[this.bp_1 + index | 0];
1132
+ protoOf(Segment).pp = function (index) {
1133
+ return this.xo_1[this.yo_1 + index | 0];
1140
1134
  };
1141
- protoOf(Segment).mr = function (index, value) {
1142
- this.ap_1[this.cp_1 + index | 0] = value;
1135
+ protoOf(Segment).jr = function (index, value) {
1136
+ this.xo_1[this.zo_1 + index | 0] = value;
1143
1137
  };
1144
- protoOf(Segment).nr = function (index, b0, b1) {
1145
- var d = this.ap_1;
1146
- var l = this.cp_1;
1138
+ protoOf(Segment).kr = function (index, b0, b1) {
1139
+ var d = this.xo_1;
1140
+ var l = this.zo_1;
1147
1141
  d[l + index | 0] = b0;
1148
1142
  d[(l + index | 0) + 1 | 0] = b1;
1149
1143
  };
1150
- protoOf(Segment).or = function (index, b0, b1, b2) {
1151
- var d = this.ap_1;
1152
- var l = this.cp_1;
1144
+ protoOf(Segment).lr = function (index, b0, b1, b2) {
1145
+ var d = this.xo_1;
1146
+ var l = this.zo_1;
1153
1147
  d[l + index | 0] = b0;
1154
1148
  d[(l + index | 0) + 1 | 0] = b1;
1155
1149
  d[(l + index | 0) + 2 | 0] = b2;
1156
1150
  };
1157
- protoOf(Segment).pr = function (index, b0, b1, b2, b3) {
1158
- var d = this.ap_1;
1159
- var l = this.cp_1;
1151
+ protoOf(Segment).mr = function (index, b0, b1, b2, b3) {
1152
+ var d = this.xo_1;
1153
+ var l = this.zo_1;
1160
1154
  d[l + index | 0] = b0;
1161
1155
  d[(l + index | 0) + 1 | 0] = b1;
1162
1156
  d[(l + index | 0) + 2 | 0] = b2;
1163
1157
  d[(l + index | 0) + 3 | 0] = b3;
1164
1158
  };
1165
1159
  function Segment() {
1166
- this.bp_1 = 0;
1167
- this.cp_1 = 0;
1160
+ this.yo_1 = 0;
1161
+ this.zo_1 = 0;
1162
+ this.ap_1 = null;
1163
+ this.bp_1 = false;
1164
+ this.cp_1 = null;
1168
1165
  this.dp_1 = null;
1169
- this.ep_1 = false;
1170
- this.fp_1 = null;
1171
- this.gp_1 = null;
1172
1166
  }
1173
1167
  function isEmpty(_this__u8e3s4) {
1174
1168
  return _this__u8e3s4.l1() === 0;
@@ -1179,10 +1173,10 @@
1179
1173
  AlwaysSharedCopyTracker_instance = this;
1180
1174
  SegmentCopyTracker.call(this);
1181
1175
  }
1182
- protoOf(AlwaysSharedCopyTracker).ir = function () {
1176
+ protoOf(AlwaysSharedCopyTracker).fr = function () {
1183
1177
  return true;
1184
1178
  };
1185
- protoOf(AlwaysSharedCopyTracker).kr = function () {
1179
+ protoOf(AlwaysSharedCopyTracker).hr = function () {
1186
1180
  return Unit_instance;
1187
1181
  };
1188
1182
  var AlwaysSharedCopyTracker_instance;
@@ -1202,8 +1196,8 @@
1202
1196
  var message_0 = '' + endOffset;
1203
1197
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1204
1198
  }
1205
- var p = _this__u8e3s4.bp_1;
1206
- var data = _this__u8e3s4.lr(true);
1199
+ var p = _this__u8e3s4.yo_1;
1200
+ var data = _this__u8e3s4.ir(true);
1207
1201
  var inductionVariable = startOffset;
1208
1202
  if (inductionVariable < endOffset)
1209
1203
  do {
@@ -1227,19 +1221,19 @@
1227
1221
  // Inline function 'kotlinx.io.checkByteCount' call
1228
1222
  var byteCount_0 = fromInt(byteCount);
1229
1223
  // Inline function 'kotlin.require' call
1230
- if (!(compare(byteCount_0, new Long(0, 0)) >= 0)) {
1224
+ if (!(byteCount_0 >= 0n)) {
1231
1225
  var message = 'byteCount (' + byteCount_0.toString() + ') < 0';
1232
1226
  throw IllegalArgumentException_init_$Create$(toString(message));
1233
1227
  }
1234
1228
  return readByteArrayImpl(_this__u8e3s4, byteCount);
1235
1229
  }
1236
1230
  function indexOf_1(_this__u8e3s4, byte, startIndex, endIndex) {
1237
- startIndex = startIndex === VOID ? new Long(0, 0) : startIndex;
1238
- endIndex = endIndex === VOID ? new Long(-1, 2147483647) : endIndex;
1231
+ startIndex = startIndex === VOID ? 0n : startIndex;
1232
+ endIndex = endIndex === VOID ? 9223372036854775807n : endIndex;
1239
1233
  // Inline function 'kotlin.require' call
1240
- if (!(compare(new Long(0, 0), startIndex) <= 0 ? compare(startIndex, endIndex) <= 0 : false)) {
1234
+ if (!(0n <= startIndex ? startIndex <= endIndex : false)) {
1241
1235
  var tmp;
1242
- if (compare(endIndex, new Long(0, 0)) < 0) {
1236
+ if (endIndex < 0n) {
1243
1237
  tmp = 'startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') should be non negative';
1244
1238
  } else {
1245
1239
  tmp = 'startIndex (' + startIndex.toString() + ') is not within the range [0..endIndex(' + endIndex.toString() + '))';
@@ -1247,55 +1241,55 @@
1247
1241
  var message = tmp;
1248
1242
  throw IllegalArgumentException_init_$Create$(toString(message));
1249
1243
  }
1250
- if (equalsLong(startIndex, endIndex))
1251
- return new Long(-1, -1);
1244
+ if (startIndex === endIndex)
1245
+ return -1n;
1252
1246
  var offset = startIndex;
1253
1247
  $l$loop: while (true) {
1254
1248
  var tmp_0;
1255
- if (compare(offset, endIndex) < 0) {
1249
+ if (offset < endIndex) {
1256
1250
  // Inline function 'kotlin.Long.plus' call
1257
1251
  var this_0 = offset;
1258
1252
  var tmp$ret$2 = add(this_0, fromInt(1));
1259
- tmp_0 = _this__u8e3s4.yo(tmp$ret$2);
1253
+ tmp_0 = _this__u8e3s4.vo(tmp$ret$2);
1260
1254
  } else {
1261
1255
  tmp_0 = false;
1262
1256
  }
1263
1257
  if (!tmp_0) {
1264
1258
  break $l$loop;
1265
1259
  }
1266
- var tmp_1 = _this__u8e3s4.vo();
1260
+ var tmp_1 = _this__u8e3s4.so();
1267
1261
  var tmp_2 = offset;
1268
1262
  // Inline function 'kotlin.comparisons.minOf' call
1269
- var b = _this__u8e3s4.vo().l1();
1270
- var tmp$ret$3 = compare(endIndex, b) <= 0 ? endIndex : b;
1263
+ var b = _this__u8e3s4.so().l1();
1264
+ var tmp$ret$3 = endIndex <= b ? endIndex : b;
1271
1265
  var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
1272
- if (!equalsLong(idx, new Long(-1, -1))) {
1266
+ if (!(idx === -1n)) {
1273
1267
  return idx;
1274
1268
  }
1275
- offset = _this__u8e3s4.vo().l1();
1269
+ offset = _this__u8e3s4.so().l1();
1276
1270
  }
1277
- return new Long(-1, -1);
1271
+ return -1n;
1278
1272
  }
1279
1273
  function readByteArrayImpl(_this__u8e3s4, size) {
1280
1274
  var arraySize = size;
1281
1275
  if (size === -1) {
1282
- var fetchSize = new Long(2147483647, 0);
1283
- while (compare(_this__u8e3s4.vo().l1(), new Long(2147483647, 0)) < 0 && _this__u8e3s4.yo(fetchSize)) {
1276
+ var fetchSize = 2147483647n;
1277
+ while (_this__u8e3s4.so().l1() < 2147483647n && _this__u8e3s4.vo(fetchSize)) {
1284
1278
  // Inline function 'kotlin.Long.times' call
1285
1279
  var this_0 = fetchSize;
1286
1280
  fetchSize = multiply(this_0, fromInt(2));
1287
1281
  }
1288
1282
  // Inline function 'kotlin.check' call
1289
- if (!(compare(_this__u8e3s4.vo().l1(), new Long(2147483647, 0)) < 0)) {
1290
- var message = "Can't create an array of size " + _this__u8e3s4.vo().l1().toString();
1283
+ if (!(_this__u8e3s4.so().l1() < 2147483647n)) {
1284
+ var message = "Can't create an array of size " + _this__u8e3s4.so().l1().toString();
1291
1285
  throw IllegalStateException_init_$Create$(toString(message));
1292
1286
  }
1293
- arraySize = convertToInt(_this__u8e3s4.vo().l1());
1287
+ arraySize = convertToInt(_this__u8e3s4.so().l1());
1294
1288
  } else {
1295
- _this__u8e3s4.xo(fromInt(size));
1289
+ _this__u8e3s4.uo(fromInt(size));
1296
1290
  }
1297
1291
  var array = new Int8Array(arraySize);
1298
- readTo(_this__u8e3s4.vo(), array);
1292
+ readTo(_this__u8e3s4.so(), array);
1299
1293
  return array;
1300
1294
  }
1301
1295
  function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
@@ -1306,7 +1300,7 @@
1306
1300
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
1307
1301
  var offset = startIndex;
1308
1302
  while (offset < endIndex) {
1309
- var bytesRead = _this__u8e3s4.up(sink, offset, endIndex);
1303
+ var bytesRead = _this__u8e3s4.rp(sink, offset, endIndex);
1310
1304
  if (bytesRead === -1) {
1311
1305
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
1312
1306
  }
@@ -1317,12 +1311,12 @@
1317
1311
  return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.l1());
1318
1312
  }
1319
1313
  function readString_0(_this__u8e3s4) {
1320
- _this__u8e3s4.yo(new Long(-1, 2147483647));
1321
- return commonReadUtf8(_this__u8e3s4.vo(), _this__u8e3s4.vo().l1());
1314
+ _this__u8e3s4.vo(9223372036854775807n);
1315
+ return commonReadUtf8(_this__u8e3s4.so(), _this__u8e3s4.so().l1());
1322
1316
  }
1323
1317
  function readString_1(_this__u8e3s4, byteCount) {
1324
- _this__u8e3s4.xo(byteCount);
1325
- return commonReadUtf8(_this__u8e3s4.vo(), byteCount);
1318
+ _this__u8e3s4.uo(byteCount);
1319
+ return commonReadUtf8(_this__u8e3s4.so(), byteCount);
1326
1320
  }
1327
1321
  function writeString(_this__u8e3s4, string, startIndex, endIndex) {
1328
1322
  startIndex = startIndex === VOID ? 0 : startIndex;
@@ -1332,7 +1326,7 @@
1332
1326
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
1333
1327
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
1334
1328
  // Inline function 'kotlinx.io.commonWriteUtf8' call
1335
- var this_0 = _this__u8e3s4.vo();
1329
+ var this_0 = _this__u8e3s4.so();
1336
1330
  var i = startIndex;
1337
1331
  while (i < endIndex) {
1338
1332
  var p0 = i;
@@ -1342,15 +1336,15 @@
1342
1336
  if (c < 128) {
1343
1337
  $l$block_0: {
1344
1338
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1345
- var tail = this_0.bq(1);
1339
+ var tail = this_0.yp(1);
1346
1340
  var ctx = get_SegmentWriteContextImpl();
1347
1341
  var segmentOffset = -i | 0;
1348
1342
  // Inline function 'kotlin.comparisons.minOf' call
1349
- var b = i + tail.gq() | 0;
1343
+ var b = i + tail.dq() | 0;
1350
1344
  var runLimit = Math.min(endIndex, b);
1351
1345
  var _unary__edvuaz = i;
1352
1346
  i = _unary__edvuaz + 1 | 0;
1353
- ctx.tr(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
1347
+ ctx.qr(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
1354
1348
  $l$loop: while (i < runLimit) {
1355
1349
  var p0_0 = i;
1356
1350
  // Inline function 'kotlin.code' call
@@ -1360,95 +1354,95 @@
1360
1354
  break $l$loop;
1361
1355
  var _unary__edvuaz_0 = i;
1362
1356
  i = _unary__edvuaz_0 + 1 | 0;
1363
- ctx.tr(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
1357
+ ctx.qr(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
1364
1358
  }
1365
1359
  var bytesWritten = i + segmentOffset | 0;
1366
1360
  if (bytesWritten === 1) {
1367
- tail.cp_1 = tail.cp_1 + bytesWritten | 0;
1361
+ tail.zo_1 = tail.zo_1 + bytesWritten | 0;
1368
1362
  var tmp = this_0;
1369
1363
  // Inline function 'kotlin.Long.plus' call
1370
- var this_3 = this_0.uo_1;
1371
- tmp.uo_1 = add(this_3, fromInt(bytesWritten));
1364
+ var this_3 = this_0.ro_1;
1365
+ tmp.ro_1 = add(this_3, fromInt(bytesWritten));
1372
1366
  break $l$block_0;
1373
1367
  }
1374
1368
  // Inline function 'kotlin.check' call
1375
- if (!(0 <= bytesWritten ? bytesWritten <= tail.gq() : false)) {
1376
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.gq();
1369
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.dq() : false)) {
1370
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.dq();
1377
1371
  throw IllegalStateException_init_$Create$(toString(message));
1378
1372
  }
1379
1373
  if (!(bytesWritten === 0)) {
1380
- tail.cp_1 = tail.cp_1 + bytesWritten | 0;
1374
+ tail.zo_1 = tail.zo_1 + bytesWritten | 0;
1381
1375
  var tmp_0 = this_0;
1382
1376
  // Inline function 'kotlin.Long.plus' call
1383
- var this_4 = this_0.uo_1;
1384
- tmp_0.uo_1 = add(this_4, fromInt(bytesWritten));
1377
+ var this_4 = this_0.ro_1;
1378
+ tmp_0.ro_1 = add(this_4, fromInt(bytesWritten));
1385
1379
  break $l$block_0;
1386
1380
  }
1387
1381
  if (isEmpty(tail)) {
1388
- this_0.vq();
1382
+ this_0.sq();
1389
1383
  }
1390
1384
  }
1391
1385
  } else if (c < 2048) {
1392
1386
  $l$block_2: {
1393
1387
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1394
- var tail_0 = this_0.bq(2);
1395
- get_SegmentWriteContextImpl().sr(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
1388
+ var tail_0 = this_0.yp(2);
1389
+ get_SegmentWriteContextImpl().pr(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
1396
1390
  var bytesWritten_0 = 2;
1397
1391
  if (bytesWritten_0 === 2) {
1398
- tail_0.cp_1 = tail_0.cp_1 + bytesWritten_0 | 0;
1392
+ tail_0.zo_1 = tail_0.zo_1 + bytesWritten_0 | 0;
1399
1393
  var tmp_1 = this_0;
1400
1394
  // Inline function 'kotlin.Long.plus' call
1401
- var this_5 = this_0.uo_1;
1402
- tmp_1.uo_1 = add(this_5, fromInt(bytesWritten_0));
1395
+ var this_5 = this_0.ro_1;
1396
+ tmp_1.ro_1 = add(this_5, fromInt(bytesWritten_0));
1403
1397
  break $l$block_2;
1404
1398
  }
1405
1399
  // Inline function 'kotlin.check' call
1406
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.gq() : false)) {
1407
- var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.gq();
1400
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.dq() : false)) {
1401
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.dq();
1408
1402
  throw IllegalStateException_init_$Create$(toString(message_0));
1409
1403
  }
1410
1404
  if (!(bytesWritten_0 === 0)) {
1411
- tail_0.cp_1 = tail_0.cp_1 + bytesWritten_0 | 0;
1405
+ tail_0.zo_1 = tail_0.zo_1 + bytesWritten_0 | 0;
1412
1406
  var tmp_2 = this_0;
1413
1407
  // Inline function 'kotlin.Long.plus' call
1414
- var this_6 = this_0.uo_1;
1415
- tmp_2.uo_1 = add(this_6, fromInt(bytesWritten_0));
1408
+ var this_6 = this_0.ro_1;
1409
+ tmp_2.ro_1 = add(this_6, fromInt(bytesWritten_0));
1416
1410
  break $l$block_2;
1417
1411
  }
1418
1412
  if (isEmpty(tail_0)) {
1419
- this_0.vq();
1413
+ this_0.sq();
1420
1414
  }
1421
1415
  }
1422
1416
  i = i + 1 | 0;
1423
1417
  } else if (c < 55296 || c > 57343) {
1424
1418
  $l$block_4: {
1425
1419
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1426
- var tail_1 = this_0.bq(3);
1427
- get_SegmentWriteContextImpl().rr(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
1420
+ var tail_1 = this_0.yp(3);
1421
+ get_SegmentWriteContextImpl().or(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
1428
1422
  var bytesWritten_1 = 3;
1429
1423
  if (bytesWritten_1 === 3) {
1430
- tail_1.cp_1 = tail_1.cp_1 + bytesWritten_1 | 0;
1424
+ tail_1.zo_1 = tail_1.zo_1 + bytesWritten_1 | 0;
1431
1425
  var tmp_3 = this_0;
1432
1426
  // Inline function 'kotlin.Long.plus' call
1433
- var this_7 = this_0.uo_1;
1434
- tmp_3.uo_1 = add(this_7, fromInt(bytesWritten_1));
1427
+ var this_7 = this_0.ro_1;
1428
+ tmp_3.ro_1 = add(this_7, fromInt(bytesWritten_1));
1435
1429
  break $l$block_4;
1436
1430
  }
1437
1431
  // Inline function 'kotlin.check' call
1438
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.gq() : false)) {
1439
- var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.gq();
1432
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.dq() : false)) {
1433
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.dq();
1440
1434
  throw IllegalStateException_init_$Create$(toString(message_1));
1441
1435
  }
1442
1436
  if (!(bytesWritten_1 === 0)) {
1443
- tail_1.cp_1 = tail_1.cp_1 + bytesWritten_1 | 0;
1437
+ tail_1.zo_1 = tail_1.zo_1 + bytesWritten_1 | 0;
1444
1438
  var tmp_4 = this_0;
1445
1439
  // Inline function 'kotlin.Long.plus' call
1446
- var this_8 = this_0.uo_1;
1447
- tmp_4.uo_1 = add(this_8, fromInt(bytesWritten_1));
1440
+ var this_8 = this_0.ro_1;
1441
+ tmp_4.ro_1 = add(this_8, fromInt(bytesWritten_1));
1448
1442
  break $l$block_4;
1449
1443
  }
1450
1444
  if (isEmpty(tail_1)) {
1451
- this_0.vq();
1445
+ this_0.sq();
1452
1446
  }
1453
1447
  }
1454
1448
  i = i + 1 | 0;
@@ -1467,64 +1461,64 @@
1467
1461
  // Inline function 'kotlin.code' call
1468
1462
  var this_10 = _Char___init__impl__6a9atx(63);
1469
1463
  var tmp$ret$26 = Char__toInt_impl_vasixd(this_10);
1470
- this_0.pq(toByte(tmp$ret$26));
1464
+ this_0.mq(toByte(tmp$ret$26));
1471
1465
  i = i + 1 | 0;
1472
1466
  } else {
1473
1467
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
1474
1468
  $l$block_6: {
1475
1469
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
1476
- var tail_2 = this_0.bq(4);
1477
- get_SegmentWriteContextImpl().qr(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
1470
+ var tail_2 = this_0.yp(4);
1471
+ get_SegmentWriteContextImpl().nr(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
1478
1472
  var bytesWritten_2 = 4;
1479
1473
  if (bytesWritten_2 === 4) {
1480
- tail_2.cp_1 = tail_2.cp_1 + bytesWritten_2 | 0;
1474
+ tail_2.zo_1 = tail_2.zo_1 + bytesWritten_2 | 0;
1481
1475
  var tmp_6 = this_0;
1482
1476
  // Inline function 'kotlin.Long.plus' call
1483
- var this_11 = this_0.uo_1;
1484
- tmp_6.uo_1 = add(this_11, fromInt(bytesWritten_2));
1477
+ var this_11 = this_0.ro_1;
1478
+ tmp_6.ro_1 = add(this_11, fromInt(bytesWritten_2));
1485
1479
  break $l$block_6;
1486
1480
  }
1487
1481
  // Inline function 'kotlin.check' call
1488
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.gq() : false)) {
1489
- var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.gq();
1482
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.dq() : false)) {
1483
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.dq();
1490
1484
  throw IllegalStateException_init_$Create$(toString(message_2));
1491
1485
  }
1492
1486
  if (!(bytesWritten_2 === 0)) {
1493
- tail_2.cp_1 = tail_2.cp_1 + bytesWritten_2 | 0;
1487
+ tail_2.zo_1 = tail_2.zo_1 + bytesWritten_2 | 0;
1494
1488
  var tmp_7 = this_0;
1495
1489
  // Inline function 'kotlin.Long.plus' call
1496
- var this_12 = this_0.uo_1;
1497
- tmp_7.uo_1 = add(this_12, fromInt(bytesWritten_2));
1490
+ var this_12 = this_0.ro_1;
1491
+ tmp_7.ro_1 = add(this_12, fromInt(bytesWritten_2));
1498
1492
  break $l$block_6;
1499
1493
  }
1500
1494
  if (isEmpty(tail_2)) {
1501
- this_0.vq();
1495
+ this_0.sq();
1502
1496
  }
1503
1497
  }
1504
1498
  i = i + 2 | 0;
1505
1499
  }
1506
1500
  }
1507
1501
  }
1508
- _this__u8e3s4.lp();
1502
+ _this__u8e3s4.ip();
1509
1503
  }
1510
1504
  function commonReadUtf8(_this__u8e3s4, byteCount) {
1511
- if (equalsLong(byteCount, new Long(0, 0)))
1505
+ if (byteCount === 0n)
1512
1506
  return '';
1513
1507
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
1514
- var curr = _this__u8e3s4.so_1;
1508
+ var curr = _this__u8e3s4.po_1;
1515
1509
  while (!(curr == null)) {
1516
1510
  get_SegmentReadContextImpl();
1517
- if (compare(fromInt(curr.l1()), byteCount) >= 0) {
1511
+ if (fromInt(curr.l1()) >= byteCount) {
1518
1512
  var result = '';
1519
1513
  // Inline function 'kotlinx.io.unsafe.withData' call
1520
- var tmp0 = curr.lr(true);
1521
- var tmp2 = curr.bp_1;
1522
- var tmp0_0 = curr.cp_1;
1514
+ var tmp0 = curr.ir(true);
1515
+ var tmp2 = curr.yo_1;
1516
+ var tmp0_0 = curr.zo_1;
1523
1517
  // Inline function 'kotlin.math.min' call
1524
1518
  var b = tmp2 + convertToInt(byteCount) | 0;
1525
1519
  var tmp$ret$0 = Math.min(tmp0_0, b);
1526
1520
  result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
1527
- _this__u8e3s4.tp(byteCount);
1521
+ _this__u8e3s4.qp(byteCount);
1528
1522
  return result;
1529
1523
  }
1530
1524
  return commonToUtf8String(readByteArray_0(_this__u8e3s4, convertToInt(byteCount)));
@@ -1895,27 +1889,27 @@
1895
1889
  }
1896
1890
  function SegmentReadContextImpl$1() {
1897
1891
  }
1898
- protoOf(SegmentReadContextImpl$1).tq = function (segment, offset) {
1899
- return segment.sp(offset);
1892
+ protoOf(SegmentReadContextImpl$1).qq = function (segment, offset) {
1893
+ return segment.pp(offset);
1900
1894
  };
1901
1895
  function SegmentWriteContextImpl$1() {
1902
1896
  }
1903
- protoOf(SegmentWriteContextImpl$1).tr = function (segment, offset, value) {
1904
- segment.mr(offset, value);
1897
+ protoOf(SegmentWriteContextImpl$1).qr = function (segment, offset, value) {
1898
+ segment.jr(offset, value);
1905
1899
  };
1906
- protoOf(SegmentWriteContextImpl$1).sr = function (segment, offset, b0, b1) {
1907
- segment.nr(offset, b0, b1);
1900
+ protoOf(SegmentWriteContextImpl$1).pr = function (segment, offset, b0, b1) {
1901
+ segment.kr(offset, b0, b1);
1908
1902
  };
1909
- protoOf(SegmentWriteContextImpl$1).rr = function (segment, offset, b0, b1, b2) {
1910
- segment.or(offset, b0, b1, b2);
1903
+ protoOf(SegmentWriteContextImpl$1).or = function (segment, offset, b0, b1, b2) {
1904
+ segment.lr(offset, b0, b1, b2);
1911
1905
  };
1912
- protoOf(SegmentWriteContextImpl$1).qr = function (segment, offset, b0, b1, b2, b3) {
1913
- segment.pr(offset, b0, b1, b2, b3);
1906
+ protoOf(SegmentWriteContextImpl$1).nr = function (segment, offset, b0, b1, b2, b3) {
1907
+ segment.mr(offset, b0, b1, b2, b3);
1914
1908
  };
1915
1909
  function BufferIterationContextImpl$1() {
1916
1910
  }
1917
- protoOf(BufferIterationContextImpl$1).tq = function (segment, offset) {
1918
- return get_SegmentReadContextImpl().tq(segment, offset);
1911
+ protoOf(BufferIterationContextImpl$1).qq = function (segment, offset) {
1912
+ return get_SegmentReadContextImpl().qq(segment, offset);
1919
1913
  };
1920
1914
  var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
1921
1915
  function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
@@ -1983,15 +1977,15 @@
1983
1977
  captureStack(this, EOFException);
1984
1978
  }
1985
1979
  function SegmentPool() {
1986
- this.cq_1 = 0;
1987
- this.dq_1 = 0;
1980
+ this.zp_1 = 0;
1981
+ this.aq_1 = 0;
1988
1982
  }
1989
- protoOf(SegmentPool).eq = function () {
1990
- return Companion_instance.hr();
1983
+ protoOf(SegmentPool).bq = function () {
1984
+ return Companion_instance.er();
1991
1985
  };
1992
- protoOf(SegmentPool).uq = function (segment) {
1986
+ protoOf(SegmentPool).rq = function (segment) {
1993
1987
  };
1994
- protoOf(SegmentPool).jr = function () {
1988
+ protoOf(SegmentPool).gr = function () {
1995
1989
  return AlwaysSharedCopyTracker_getInstance();
1996
1990
  };
1997
1991
  var SegmentPool_instance;
@@ -1999,7 +1993,7 @@
1999
1993
  return SegmentPool_instance;
2000
1994
  }
2001
1995
  //region block: post-declaration
2002
- protoOf(Buffer).iq = write$default;
1996
+ protoOf(Buffer).fq = write$default;
2003
1997
  //endregion
2004
1998
  //region block: init
2005
1999
  Companion_instance = new Companion();