raspberry_games_server_game_logic 1.8.342 → 1.8.345

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/Kosi-Kaverit-kaverit.js +105 -117
  2. package/Kosi-Kaverit-kaverit.js.map +1 -1
  3. package/Kosi-Kodein-kodein-di.js +935 -945
  4. package/Kosi-Kodein-kodein-di.js.map +1 -1
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +4637 -3658
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  7. package/Logic_Debertz-core.js +1909 -1936
  8. package/Logic_Debertz-core.js.map +1 -1
  9. package/Logic_Debertz-engine.js +18559 -19039
  10. package/Logic_Debertz-engine.js.map +1 -1
  11. package/Logic_Debertz-game_server.d.ts +934 -167
  12. package/Logic_Debertz-game_server.js +2061 -2015
  13. package/Logic_Debertz-game_server.js.map +1 -1
  14. package/kotlin-kotlin-stdlib.js +4834 -4537
  15. package/kotlin-kotlin-stdlib.js.map +1 -1
  16. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
  17. package/kotlinx-atomicfu.js +25 -26
  18. package/kotlinx-atomicfu.js.map +1 -1
  19. package/kotlinx-coroutines-core.js +3201 -3379
  20. package/kotlinx-coroutines-core.js.map +1 -1
  21. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
  22. package/kotlinx-io-kotlinx-io-core.js +459 -523
  23. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  24. package/kotlinx-serialization-kotlinx-serialization-core.js +2372 -2414
  25. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  26. package/kotlinx-serialization-kotlinx-serialization-json.js +1963 -1977
  27. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  28. package/ktor-ktor-client-content-negotiation.js +194 -194
  29. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  30. package/ktor-ktor-client-core.js +1902 -1937
  31. package/ktor-ktor-client-core.js.map +1 -1
  32. package/ktor-ktor-client-js.js.map +1 -1
  33. package/ktor-ktor-client-logging.js +393 -399
  34. package/ktor-ktor-client-logging.js.map +1 -1
  35. package/ktor-ktor-events.js +12 -15
  36. package/ktor-ktor-events.js.map +1 -1
  37. package/ktor-ktor-http.js +964 -1154
  38. package/ktor-ktor-http.js.map +1 -1
  39. package/ktor-ktor-io.js +1715 -1825
  40. package/ktor-ktor-io.js.map +1 -1
  41. package/ktor-ktor-serialization-kotlinx-json.js +8 -8
  42. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  43. package/ktor-ktor-serialization-kotlinx.js +238 -243
  44. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  45. package/ktor-ktor-serialization.js +100 -96
  46. package/ktor-ktor-serialization.js.map +1 -1
  47. package/ktor-ktor-utils.js +655 -689
  48. package/ktor-ktor-utils.js.map +1 -1
  49. package/ktor-ktor-websocket-serialization.js.map +1 -1
  50. package/ktor-ktor-websockets.js +71 -77
  51. package/ktor-ktor-websockets.js.map +1 -1
  52. package/package.json +1 -2
  53. package/raspberry-cardgame-lib-core.js +326 -360
  54. package/raspberry-cardgame-lib-core.js.map +1 -1
  55. package/raspberry-cardgame-lib-logger.js +148 -119
  56. package/raspberry-cardgame-lib-logger.js.map +1 -1
  57. package/raspberry-cardgame-lib-random.js +965 -1034
  58. package/raspberry-cardgame-lib-random.js.map +1 -1
  59. package/secure-random-secure-random.js +36 -35
  60. package/secure-random-secure-random.js.map +1 -1
  61. package/uuid.js +35 -39
  62. package/uuid.js.map +1 -1
  63. package/kotlin-kotlinx-atomicfu-runtime.js +0 -15
  64. package/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
@@ -13,47 +13,48 @@
13
13
  'use strict';
14
14
  //region block: imports
15
15
  var imul = Math.imul;
16
- var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.a2;
17
- var Long = kotlin_kotlin.$_$.og;
18
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
19
- var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.y2;
20
- var charArrayOf = kotlin_kotlin.$_$.gb;
21
- var protoOf = kotlin_kotlin.$_$.wc;
22
- var Unit_instance = kotlin_kotlin.$_$.q5;
23
- var ensureNotNull = kotlin_kotlin.$_$.kh;
24
- var toLong = kotlin_kotlin.$_$.yc;
25
- var toString = kotlin_kotlin.$_$.ad;
26
- var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e1;
27
- var initMetadataForClass = kotlin_kotlin.$_$.vb;
28
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
29
- var objectCreate = kotlin_kotlin.$_$.vc;
30
- var initMetadataForCompanion = kotlin_kotlin.$_$.wb;
31
- var arrayCopy = kotlin_kotlin.$_$.i6;
32
- var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.q1;
33
- var initMetadataForObject = kotlin_kotlin.$_$.ac;
16
+ var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.x1;
17
+ var Long = kotlin_kotlin.$_$.jg;
18
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
19
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.o2;
20
+ var charArrayOf = kotlin_kotlin.$_$.za;
21
+ var protoOf = kotlin_kotlin.$_$.pc;
22
+ var Unit_instance = kotlin_kotlin.$_$.i5;
23
+ var ensureNotNull = kotlin_kotlin.$_$.fh;
24
+ var toLong = kotlin_kotlin.$_$.sc;
25
+ var toString = kotlin_kotlin.$_$.uc;
26
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
27
+ var initMetadataForClass = kotlin_kotlin.$_$.ob;
28
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
29
+ var objectCreate = kotlin_kotlin.$_$.oc;
30
+ var initMetadataForCompanion = kotlin_kotlin.$_$.pb;
31
+ var arrayCopy = kotlin_kotlin.$_$.a6;
32
+ var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.n1;
33
+ var initMetadataForObject = kotlin_kotlin.$_$.tb;
34
34
  var VOID = kotlin_kotlin.$_$.f;
35
- var charSequenceGet = kotlin_kotlin.$_$.ib;
36
- var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.e3;
37
- var toByte = kotlin_kotlin.$_$.xc;
38
- var initMetadataForInterface = kotlin_kotlin.$_$.yb;
39
- var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.f1;
40
- var charSequenceLength = kotlin_kotlin.$_$.jb;
41
- var endsWith = kotlin_kotlin.$_$.ee;
42
- var startsWith = kotlin_kotlin.$_$.cf;
43
- var Exception_init_$Init$ = kotlin_kotlin.$_$.k1;
44
- var captureStack = kotlin_kotlin.$_$.fb;
45
- var Exception_init_$Init$_0 = kotlin_kotlin.$_$.l1;
46
- var Exception_init_$Init$_1 = kotlin_kotlin.$_$.m1;
47
- var Exception = kotlin_kotlin.$_$.lg;
48
- var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.m2;
49
- var KProperty0 = kotlin_kotlin.$_$.qd;
50
- var getPropertyCallableRef = kotlin_kotlin.$_$.sb;
51
- var lazy = kotlin_kotlin.$_$.qh;
52
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
53
- var asReversed = kotlin_kotlin.$_$.k6;
54
- var contains = kotlin_kotlin.$_$.be;
55
- var getStringHashCode = kotlin_kotlin.$_$.tb;
56
- var Char = kotlin_kotlin.$_$.eg;
35
+ var charCodeAt = kotlin_kotlin.$_$.bb;
36
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.u2;
37
+ var toByte = kotlin_kotlin.$_$.rc;
38
+ var initMetadataForInterface = kotlin_kotlin.$_$.rb;
39
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.d1;
40
+ var charSequenceLength = kotlin_kotlin.$_$.db;
41
+ var endsWith = kotlin_kotlin.$_$.xd;
42
+ var startsWith = kotlin_kotlin.$_$.ve;
43
+ var substring = kotlin_kotlin.$_$.af;
44
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.i1;
45
+ var captureStack = kotlin_kotlin.$_$.ya;
46
+ var Exception_init_$Init$_0 = kotlin_kotlin.$_$.j1;
47
+ var Exception_init_$Init$_1 = kotlin_kotlin.$_$.k1;
48
+ var Exception = kotlin_kotlin.$_$.gg;
49
+ var KProperty0 = kotlin_kotlin.$_$.jd;
50
+ var getPropertyCallableRef = kotlin_kotlin.$_$.lb;
51
+ var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.h2;
52
+ var lazy = kotlin_kotlin.$_$.lh;
53
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
54
+ var asReversed = kotlin_kotlin.$_$.c6;
55
+ var contains = kotlin_kotlin.$_$.ud;
56
+ var getStringHashCode = kotlin_kotlin.$_$.mb;
57
+ var Char = kotlin_kotlin.$_$.zf;
57
58
  //endregion
58
59
  //region block: pre-declaration
59
60
  initMetadataForClass(Buffer, 'Buffer', Buffer);
@@ -66,10 +67,10 @@
66
67
  mustExist = mustExist === VOID ? true : mustExist;
67
68
  var tmp;
68
69
  if ($super === VOID) {
69
- this.h66(path, mustExist);
70
+ this.d6b(path, mustExist);
70
71
  tmp = Unit_instance;
71
72
  } else {
72
- tmp = $super.h66.call(this, path, mustExist);
73
+ tmp = $super.d6b.call(this, path, mustExist);
73
74
  }
74
75
  return tmp;
75
76
  }
@@ -77,10 +78,10 @@
77
78
  mustCreate = mustCreate === VOID ? false : mustCreate;
78
79
  var tmp;
79
80
  if ($super === VOID) {
80
- this.j66(path, mustCreate);
81
+ this.f6b(path, mustCreate);
81
82
  tmp = Unit_instance;
82
83
  } else {
83
- tmp = $super.j66.call(this, path, mustCreate);
84
+ tmp = $super.f6b.call(this, path, mustCreate);
84
85
  }
85
86
  return tmp;
86
87
  }
@@ -115,7 +116,7 @@
115
116
  }
116
117
  function checkOffsetAndCount(size, offset, byteCount) {
117
118
  _init_properties__Util_kt__g8tcl9();
118
- if (offset.z(new Long(0, 0)) < 0 || offset.z(size) > 0 || size.a3(offset).z(byteCount) < 0 || byteCount.z(new Long(0, 0)) < 0) {
119
+ if (offset.z(new Long(0, 0)) < 0 || offset.z(size) > 0 || size.x2(offset).z(byteCount) < 0 || byteCount.z(new Long(0, 0)) < 0) {
119
120
  throw IllegalArgumentException_init_$Create$('offset (' + offset.toString() + ') and byteCount (' + byteCount.toString() + ') are not within the range [0..size(' + size.toString() + '))');
120
121
  }
121
122
  }
@@ -128,44 +129,42 @@
128
129
  }
129
130
  }
130
131
  function Buffer() {
131
- this.f64_1 = null;
132
- this.g64_1 = null;
133
- this.h64_1 = new Long(0, 0);
132
+ this.c69_1 = null;
133
+ this.d69_1 = null;
134
+ this.e69_1 = new Long(0, 0);
134
135
  }
135
136
  protoOf(Buffer).m = function () {
136
- return this.h64_1;
137
+ return this.e69_1;
137
138
  };
138
- protoOf(Buffer).i64 = function () {
139
+ protoOf(Buffer).f69 = function () {
139
140
  return this;
140
141
  };
141
- protoOf(Buffer).j64 = function () {
142
+ protoOf(Buffer).g69 = function () {
142
143
  return this.m().equals(new Long(0, 0));
143
144
  };
144
- protoOf(Buffer).k64 = function () {
145
+ protoOf(Buffer).h69 = function () {
145
146
  return Unit_instance;
146
147
  };
147
- protoOf(Buffer).l64 = function () {
148
+ protoOf(Buffer).i69 = function () {
148
149
  var result = this.m();
149
150
  if (result.equals(new Long(0, 0)))
150
151
  return new Long(0, 0);
151
- var tail = ensureNotNull(this.g64_1);
152
- if (tail.o64_1 < 8192 && tail.q64_1) {
153
- result = result.a3(toLong(tail.o64_1 - tail.n64_1 | 0));
152
+ var tail = ensureNotNull(this.d69_1);
153
+ if (tail.l69_1 < 8192 && tail.n69_1) {
154
+ result = result.x2(toLong(tail.l69_1 - tail.k69_1 | 0));
154
155
  }
155
156
  return result;
156
157
  };
157
- protoOf(Buffer).t64 = function (byteCount) {
158
+ protoOf(Buffer).q69 = function (byteCount) {
158
159
  // Inline function 'kotlinx.io.checkByteCount' call
159
160
  // Inline function 'kotlin.require' call
160
- // Inline function 'kotlin.contracts.contract' call
161
161
  if (!(byteCount.z(new Long(0, 0)) >= 0)) {
162
- // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
163
162
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
164
163
  throw IllegalArgumentException_init_$Create$(toString(message));
165
164
  }
166
165
  var remainingByteCount = byteCount;
167
166
  while (remainingByteCount.z(new Long(0, 0)) > 0) {
168
- var tmp0_elvis_lhs = this.f64_1;
167
+ var tmp0_elvis_lhs = this.c69_1;
169
168
  var tmp;
170
169
  if (tmp0_elvis_lhs == null) {
171
170
  throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -173,104 +172,100 @@
173
172
  tmp = tmp0_elvis_lhs;
174
173
  }
175
174
  var head = tmp;
175
+ var tmp0 = remainingByteCount;
176
176
  // Inline function 'kotlinx.io.minOf' call
177
- var a = remainingByteCount;
178
- var b = head.o64_1 - head.n64_1 | 0;
177
+ var b = head.l69_1 - head.k69_1 | 0;
179
178
  // Inline function 'kotlin.comparisons.minOf' call
180
179
  var b_0 = toLong(b);
181
- var toSkip = (a.z(b_0) <= 0 ? a : b_0).h1();
182
- this.h64_1 = this.h64_1.a3(toLong(toSkip));
183
- remainingByteCount = remainingByteCount.a3(toLong(toSkip));
184
- head.n64_1 = head.n64_1 + toSkip | 0;
185
- if (head.n64_1 === head.o64_1) {
186
- this.u64();
180
+ var toSkip = (tmp0.z(b_0) <= 0 ? tmp0 : b_0).e1();
181
+ this.e69_1 = this.e69_1.x2(toLong(toSkip));
182
+ remainingByteCount = remainingByteCount.x2(toLong(toSkip));
183
+ head.k69_1 = head.k69_1 + toSkip | 0;
184
+ if (head.k69_1 === head.l69_1) {
185
+ this.r69();
187
186
  }
188
187
  }
189
188
  };
190
- protoOf(Buffer).v64 = function (minimumCapacity) {
189
+ protoOf(Buffer).s69 = function (minimumCapacity) {
191
190
  // Inline function 'kotlin.require' call
192
- // Inline function 'kotlin.contracts.contract' call
193
191
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
194
- // Inline function 'kotlinx.io.Buffer.writableSegment.<anonymous>' call
195
- var message = 'unexpected capacity';
192
+ var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
196
193
  throw IllegalArgumentException_init_$Create$(toString(message));
197
194
  }
198
- if (this.g64_1 == null) {
199
- var result = SegmentPool_instance.y64();
200
- this.f64_1 = result;
201
- this.g64_1 = result;
195
+ if (this.d69_1 == null) {
196
+ var result = SegmentPool_instance.v69();
197
+ this.c69_1 = result;
198
+ this.d69_1 = result;
202
199
  return result;
203
200
  }
204
- var t = ensureNotNull(this.g64_1);
205
- if ((t.o64_1 + minimumCapacity | 0) > 8192 || !t.q64_1) {
206
- var newTail = t.z64(SegmentPool_instance.y64());
207
- this.g64_1 = newTail;
201
+ var t = ensureNotNull(this.d69_1);
202
+ if ((t.l69_1 + minimumCapacity | 0) > 8192 || !t.n69_1) {
203
+ var newTail = t.w69(SegmentPool_instance.v69());
204
+ this.d69_1 = newTail;
208
205
  return newTail;
209
206
  }
210
207
  return t;
211
208
  };
212
- protoOf(Buffer).a65 = function (source, byteCount) {
209
+ protoOf(Buffer).x69 = function (source, byteCount) {
213
210
  // Inline function 'kotlin.require' call
214
- // Inline function 'kotlin.contracts.contract' call
215
211
  if (!!(source === this)) {
216
- // Inline function 'kotlinx.io.Buffer.write.<anonymous>' call
217
212
  var message = 'source == this';
218
213
  throw IllegalArgumentException_init_$Create$(toString(message));
219
214
  }
220
- checkOffsetAndCount(source.h64_1, new Long(0, 0), byteCount);
215
+ checkOffsetAndCount(source.e69_1, new Long(0, 0), byteCount);
221
216
  var remainingByteCount = byteCount;
222
217
  while (remainingByteCount.z(new Long(0, 0)) > 0) {
223
- if (remainingByteCount.z(toLong(ensureNotNull(source.f64_1).e65())) < 0) {
224
- var tail = this.g64_1;
218
+ if (remainingByteCount.z(toLong(ensureNotNull(source.c69_1).m())) < 0) {
219
+ var tail = this.d69_1;
225
220
  var tmp;
226
- if (!(tail == null) && tail.q64_1) {
227
- // Inline function 'kotlin.Long.minus' call
221
+ if (!(tail == null) && tail.n69_1) {
222
+ var tmp0 = remainingByteCount;
228
223
  // Inline function 'kotlin.Long.plus' call
229
- var this_0 = remainingByteCount;
230
- var other = tail.o64_1;
231
- var this_1 = this_0.z2(toLong(other));
232
- var other_0 = tail.b65() ? 0 : tail.n64_1;
233
- tmp = this_1.a3(toLong(other_0)).z(new Long(8192, 0)) <= 0;
224
+ var other = tail.l69_1;
225
+ var tmp0_0 = tmp0.w2(toLong(other));
226
+ // Inline function 'kotlin.Long.minus' call
227
+ var other_0 = tail.y69() ? 0 : tail.k69_1;
228
+ tmp = tmp0_0.x2(toLong(other_0)).z(new Long(8192, 0)) <= 0;
234
229
  } else {
235
230
  tmp = false;
236
231
  }
237
232
  if (tmp) {
238
- ensureNotNull(source.f64_1).d65(tail, remainingByteCount.h1());
239
- source.h64_1 = source.h64_1.a3(remainingByteCount);
240
- this.h64_1 = this.h64_1.z2(remainingByteCount);
233
+ ensureNotNull(source.c69_1).a6a(tail, remainingByteCount.e1());
234
+ source.e69_1 = source.e69_1.x2(remainingByteCount);
235
+ this.e69_1 = this.e69_1.w2(remainingByteCount);
241
236
  return Unit_instance;
242
237
  } else {
243
- source.f64_1 = ensureNotNull(source.f64_1).c65(remainingByteCount.h1());
238
+ source.c69_1 = ensureNotNull(source.c69_1).z69(remainingByteCount.e1());
244
239
  }
245
240
  }
246
- var segmentToMove = ensureNotNull(source.f64_1);
247
- var movedByteCount = toLong(segmentToMove.e65());
248
- source.f64_1 = segmentToMove.f65();
249
- if (source.f64_1 == null) {
250
- source.g64_1 = null;
241
+ var segmentToMove = ensureNotNull(source.c69_1);
242
+ var movedByteCount = toLong(segmentToMove.m());
243
+ source.c69_1 = segmentToMove.b6a();
244
+ if (source.c69_1 == null) {
245
+ source.d69_1 = null;
251
246
  }
252
247
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
253
- if (this.f64_1 == null) {
254
- this.f64_1 = segmentToMove;
255
- this.g64_1 = segmentToMove;
248
+ if (this.c69_1 == null) {
249
+ this.c69_1 = segmentToMove;
250
+ this.d69_1 = segmentToMove;
256
251
  } else if (true) {
257
- this.g64_1 = ensureNotNull(this.g64_1).z64(segmentToMove).g65();
258
- if (ensureNotNull(this.g64_1).s64_1 == null) {
259
- this.f64_1 = this.g64_1;
252
+ this.d69_1 = ensureNotNull(this.d69_1).w69(segmentToMove).c6a();
253
+ if (ensureNotNull(this.d69_1).p69_1 == null) {
254
+ this.c69_1 = this.d69_1;
260
255
  }
261
256
  } else {
262
- this.g64_1 = ensureNotNull(this.g64_1).z64(segmentToMove);
257
+ this.d69_1 = ensureNotNull(this.d69_1).w69(segmentToMove);
263
258
  }
264
- source.h64_1 = source.h64_1.a3(movedByteCount);
265
- this.h64_1 = this.h64_1.z2(movedByteCount);
266
- remainingByteCount = remainingByteCount.a3(movedByteCount);
259
+ source.e69_1 = source.e69_1.x2(movedByteCount);
260
+ this.e69_1 = this.e69_1.w2(movedByteCount);
261
+ remainingByteCount = remainingByteCount.x2(movedByteCount);
267
262
  }
268
263
  };
269
- protoOf(Buffer).v1z = function (byte) {
270
- this.v64(1).h65(byte);
271
- this.h64_1 = this.h64_1.z2(new Long(1, 0));
264
+ protoOf(Buffer).b22 = function (byte) {
265
+ this.s69(1).d6a(byte);
266
+ this.e69_1 = this.e69_1.w2(new Long(1, 0));
272
267
  };
273
- protoOf(Buffer).e21 = function () {
268
+ protoOf(Buffer).k23 = function () {
274
269
  return Unit_instance;
275
270
  };
276
271
  protoOf(Buffer).toString = function () {
@@ -281,112 +276,105 @@
281
276
  var b = this.m();
282
277
  // Inline function 'kotlin.comparisons.minOf' call
283
278
  var a = toLong(maxPrintableBytes);
284
- var len = (a.z(b) <= 0 ? a : b).h1();
279
+ var len = (a.z(b) <= 0 ? a : b).e1();
285
280
  var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.m().z(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
286
281
  var bytesWritten = 0;
287
282
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
288
- var curr = this.f64_1;
283
+ var curr = this.c69_1;
289
284
  while (!(curr == null)) {
290
- // Inline function 'kotlinx.io.Buffer.toString.<anonymous>' call
291
- var ctx = get_SegmentReadContextImpl();
285
+ var tmp0 = get_SegmentReadContextImpl();
292
286
  var segment = curr;
293
287
  var idx = 0;
294
- while (bytesWritten < len && idx < segment.e65()) {
288
+ while (bytesWritten < len && idx < segment.m()) {
295
289
  var _unary__edvuaz = idx;
296
290
  idx = _unary__edvuaz + 1 | 0;
297
- var b_0 = ctx.i65(segment, _unary__edvuaz);
291
+ var b_0 = tmp0.e6a(segment, _unary__edvuaz);
298
292
  bytesWritten = bytesWritten + 1 | 0;
299
293
  var tmp = get_HEX_DIGIT_CHARS();
300
294
  // Inline function 'kotlinx.io.shr' call
301
295
  var tmp$ret$2 = b_0 >> 4;
302
- var tmp_0 = builder.t8(tmp[tmp$ret$2 & 15]);
296
+ var tmp_0 = builder.v8(tmp[tmp$ret$2 & 15]);
303
297
  var tmp_1 = get_HEX_DIGIT_CHARS();
304
298
  // Inline function 'kotlinx.io.and' call
305
299
  var tmp$ret$3 = b_0 & 15;
306
- tmp_0.t8(tmp_1[tmp$ret$3]);
300
+ tmp_0.v8(tmp_1[tmp$ret$3]);
307
301
  }
308
- curr = curr.r64_1;
302
+ curr = curr.o69_1;
309
303
  }
310
304
  if (this.m().z(toLong(maxPrintableBytes)) > 0) {
311
- builder.t8(_Char___init__impl__6a9atx(8230));
305
+ builder.v8(_Char___init__impl__6a9atx(8230));
312
306
  }
313
307
  return 'Buffer(size=' + this.m().toString() + ' hex=' + builder.toString() + ')';
314
308
  };
315
- protoOf(Buffer).u64 = function () {
316
- var oldHead = ensureNotNull(this.f64_1);
317
- var nextHead = oldHead.r64_1;
318
- this.f64_1 = nextHead;
309
+ protoOf(Buffer).r69 = function () {
310
+ var oldHead = ensureNotNull(this.c69_1);
311
+ var nextHead = oldHead.o69_1;
312
+ this.c69_1 = nextHead;
319
313
  if (nextHead == null) {
320
- this.g64_1 = null;
314
+ this.d69_1 = null;
321
315
  } else {
322
- nextHead.s64_1 = null;
316
+ nextHead.p69_1 = null;
323
317
  }
324
- oldHead.r64_1 = null;
325
- SegmentPool_instance.j65(oldHead);
318
+ oldHead.o69_1 = null;
319
+ SegmentPool_instance.f6a(oldHead);
326
320
  };
327
- protoOf(Buffer).k65 = function () {
328
- var oldTail = ensureNotNull(this.g64_1);
329
- var newTail = oldTail.s64_1;
330
- this.g64_1 = newTail;
321
+ protoOf(Buffer).g6a = function () {
322
+ var oldTail = ensureNotNull(this.d69_1);
323
+ var newTail = oldTail.p69_1;
324
+ this.d69_1 = newTail;
331
325
  if (newTail == null) {
332
- this.f64_1 = null;
326
+ this.c69_1 = null;
333
327
  } else {
334
- newTail.r64_1 = null;
328
+ newTail.o69_1 = null;
335
329
  }
336
- oldTail.s64_1 = null;
337
- SegmentPool_instance.j65(oldTail);
330
+ oldTail.p69_1 = null;
331
+ SegmentPool_instance.f6a(oldTail);
338
332
  };
339
333
  function buffered(_this__u8e3s4) {
340
334
  return new RealSink(_this__u8e3s4);
341
335
  }
342
336
  function RealSink(sink) {
343
- this.l65_1 = sink;
344
- this.m65_1 = false;
345
- this.n65_1 = new Buffer();
337
+ this.h6a_1 = sink;
338
+ this.i6a_1 = false;
339
+ this.j6a_1 = new Buffer();
346
340
  }
347
- protoOf(RealSink).i64 = function () {
348
- return this.n65_1;
341
+ protoOf(RealSink).f69 = function () {
342
+ return this.j6a_1;
349
343
  };
350
- protoOf(RealSink).a65 = function (source, byteCount) {
344
+ protoOf(RealSink).x69 = function (source, byteCount) {
351
345
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
352
346
  // Inline function 'kotlin.check' call
353
- // Inline function 'kotlin.contracts.contract' call
354
- if (!!this.m65_1) {
355
- // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
347
+ if (!!this.i6a_1) {
356
348
  var message = 'Sink is closed.';
357
349
  throw IllegalStateException_init_$Create$(toString(message));
358
350
  }
359
351
  // Inline function 'kotlin.require' call
360
- // Inline function 'kotlin.contracts.contract' call
361
352
  if (!(byteCount.z(new Long(0, 0)) >= 0)) {
362
- // Inline function 'kotlinx.io.RealSink.write.<anonymous>' call
363
353
  var message_0 = 'byteCount: ' + byteCount.toString();
364
354
  throw IllegalArgumentException_init_$Create$(toString(message_0));
365
355
  }
366
- this.n65_1.a65(source, byteCount);
367
- this.k64();
356
+ this.j6a_1.x69(source, byteCount);
357
+ this.h69();
368
358
  };
369
- protoOf(RealSink).k64 = function () {
359
+ protoOf(RealSink).h69 = function () {
370
360
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
371
361
  // Inline function 'kotlin.check' call
372
- // Inline function 'kotlin.contracts.contract' call
373
- if (!!this.m65_1) {
374
- // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
362
+ if (!!this.i6a_1) {
375
363
  var message = 'Sink is closed.';
376
364
  throw IllegalStateException_init_$Create$(toString(message));
377
365
  }
378
- var byteCount = this.n65_1.l64();
366
+ var byteCount = this.j6a_1.i69();
379
367
  if (byteCount.z(new Long(0, 0)) > 0) {
380
- this.l65_1.a65(this.n65_1, byteCount);
368
+ this.h6a_1.x69(this.j6a_1, byteCount);
381
369
  }
382
370
  };
383
- protoOf(RealSink).e21 = function () {
384
- if (this.m65_1)
371
+ protoOf(RealSink).k23 = function () {
372
+ if (this.i6a_1)
385
373
  return Unit_instance;
386
374
  var thrown = null;
387
375
  try {
388
- if (this.n65_1.m().z(new Long(0, 0)) > 0) {
389
- this.l65_1.a65(this.n65_1, this.n65_1.m());
376
+ if (this.j6a_1.m().z(new Long(0, 0)) > 0) {
377
+ this.h6a_1.x69(this.j6a_1, this.j6a_1.m());
390
378
  }
391
379
  } catch ($p) {
392
380
  if ($p instanceof Error) {
@@ -397,7 +385,7 @@
397
385
  }
398
386
  }
399
387
  try {
400
- this.l65_1.e21();
388
+ this.h6a_1.k23();
401
389
  } catch ($p) {
402
390
  if ($p instanceof Error) {
403
391
  var e_0 = $p;
@@ -407,18 +395,18 @@
407
395
  throw $p;
408
396
  }
409
397
  }
410
- this.m65_1 = true;
398
+ this.i6a_1 = true;
411
399
  if (!(thrown == null))
412
400
  throw thrown;
413
401
  };
414
402
  protoOf(RealSink).toString = function () {
415
- return 'buffered(' + toString(this.l65_1) + ')';
403
+ return 'buffered(' + toString(this.h6a_1) + ')';
416
404
  };
417
405
  function Segment_init_$Init$($this) {
418
406
  Segment.call($this);
419
- $this.m64_1 = new Int8Array(8192);
420
- $this.q64_1 = true;
421
- $this.p64_1 = null;
407
+ $this.j69_1 = new Int8Array(8192);
408
+ $this.n69_1 = true;
409
+ $this.m69_1 = null;
422
410
  return $this;
423
411
  }
424
412
  function Segment_init_$Create$() {
@@ -426,243 +414,228 @@
426
414
  }
427
415
  function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
428
416
  Segment.call($this);
429
- $this.m64_1 = data;
430
- $this.n64_1 = pos;
431
- $this.o64_1 = limit;
432
- $this.p64_1 = shareToken;
433
- $this.q64_1 = owner;
417
+ $this.j69_1 = data;
418
+ $this.k69_1 = pos;
419
+ $this.l69_1 = limit;
420
+ $this.m69_1 = shareToken;
421
+ $this.n69_1 = owner;
434
422
  return $this;
435
423
  }
436
424
  function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
437
425
  return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
438
426
  }
439
427
  function Companion() {
440
- this.o65_1 = 8192;
441
- this.p65_1 = 1024;
428
+ this.k6a_1 = 8192;
429
+ this.l6a_1 = 1024;
442
430
  }
443
- protoOf(Companion).q65 = function () {
431
+ protoOf(Companion).m6a = function () {
444
432
  return Segment_init_$Create$();
445
433
  };
446
434
  var Companion_instance;
447
435
  function Companion_getInstance() {
448
436
  return Companion_instance;
449
437
  }
450
- protoOf(Segment).b65 = function () {
451
- var tmp1_safe_receiver = this.p64_1;
452
- var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r65();
453
- return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
438
+ protoOf(Segment).y69 = function () {
439
+ var tmp0_safe_receiver = this.m69_1;
440
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n6a();
441
+ return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
454
442
  };
455
- protoOf(Segment).s65 = function () {
456
- var tmp0_elvis_lhs = this.p64_1;
443
+ protoOf(Segment).o6a = function () {
444
+ var tmp0_elvis_lhs = this.m69_1;
457
445
  var tmp;
458
446
  if (tmp0_elvis_lhs == null) {
459
447
  // Inline function 'kotlin.also' call
460
- var this_0 = SegmentPool_instance.t65();
461
- // Inline function 'kotlin.contracts.contract' call
462
- // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
463
- this.p64_1 = this_0;
448
+ var this_0 = SegmentPool_instance.p6a();
449
+ this.m69_1 = this_0;
464
450
  tmp = this_0;
465
451
  } else {
466
452
  tmp = tmp0_elvis_lhs;
467
453
  }
468
454
  var t = tmp;
469
- var tmp_0 = this.n64_1;
470
- var tmp_1 = this.o64_1;
455
+ var tmp_0 = this.k69_1;
456
+ var tmp_1 = this.l69_1;
471
457
  // Inline function 'kotlin.also' call
472
- // Inline function 'kotlin.contracts.contract' call
473
- // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
474
- t.u65();
475
- return Segment_init_$Create$_0(this.m64_1, tmp_0, tmp_1, t, false);
458
+ t.q6a();
459
+ return Segment_init_$Create$_0(this.j69_1, tmp_0, tmp_1, t, false);
476
460
  };
477
- protoOf(Segment).f65 = function () {
478
- var result = this.r64_1;
479
- if (!(this.s64_1 == null)) {
480
- ensureNotNull(this.s64_1).r64_1 = this.r64_1;
461
+ protoOf(Segment).b6a = function () {
462
+ var result = this.o69_1;
463
+ if (!(this.p69_1 == null)) {
464
+ ensureNotNull(this.p69_1).o69_1 = this.o69_1;
481
465
  }
482
- if (!(this.r64_1 == null)) {
483
- ensureNotNull(this.r64_1).s64_1 = this.s64_1;
466
+ if (!(this.o69_1 == null)) {
467
+ ensureNotNull(this.o69_1).p69_1 = this.p69_1;
484
468
  }
485
- this.r64_1 = null;
486
- this.s64_1 = null;
469
+ this.o69_1 = null;
470
+ this.p69_1 = null;
487
471
  return result;
488
472
  };
489
- protoOf(Segment).z64 = function (segment) {
490
- segment.s64_1 = this;
491
- segment.r64_1 = this.r64_1;
492
- if (!(this.r64_1 == null)) {
493
- ensureNotNull(this.r64_1).s64_1 = segment;
473
+ protoOf(Segment).w69 = function (segment) {
474
+ segment.p69_1 = this;
475
+ segment.o69_1 = this.o69_1;
476
+ if (!(this.o69_1 == null)) {
477
+ ensureNotNull(this.o69_1).p69_1 = segment;
494
478
  }
495
- this.r64_1 = segment;
479
+ this.o69_1 = segment;
496
480
  return segment;
497
481
  };
498
- protoOf(Segment).c65 = function (byteCount) {
482
+ protoOf(Segment).z69 = function (byteCount) {
499
483
  // Inline function 'kotlin.require' call
500
- // Inline function 'kotlin.contracts.contract' call
501
- if (!(byteCount > 0 && byteCount <= (this.o64_1 - this.n64_1 | 0))) {
502
- // Inline function 'kotlinx.io.Segment.split.<anonymous>' call
484
+ if (!(byteCount > 0 && byteCount <= (this.l69_1 - this.k69_1 | 0))) {
503
485
  var message = 'byteCount out of range';
504
486
  throw IllegalArgumentException_init_$Create$(toString(message));
505
487
  }
506
488
  var prefix;
507
489
  if (byteCount >= 1024) {
508
- prefix = this.s65();
490
+ prefix = this.o6a();
509
491
  } else {
510
- prefix = SegmentPool_instance.y64();
492
+ prefix = SegmentPool_instance.v69();
493
+ var tmp0 = this.j69_1;
494
+ var tmp2 = prefix.j69_1;
495
+ var tmp4 = this.k69_1;
511
496
  // Inline function 'kotlin.collections.copyInto' call
512
- var this_0 = this.m64_1;
513
- var destination = prefix.m64_1;
514
- var startIndex = this.n64_1;
515
- var endIndex = this.n64_1 + byteCount | 0;
497
+ var endIndex = this.k69_1 + byteCount | 0;
516
498
  // Inline function 'kotlin.js.unsafeCast' call
517
499
  // Inline function 'kotlin.js.asDynamic' call
518
- var tmp = this_0;
500
+ var tmp = tmp0;
519
501
  // Inline function 'kotlin.js.unsafeCast' call
520
502
  // Inline function 'kotlin.js.asDynamic' call
521
- arrayCopy(tmp, destination, 0, startIndex, endIndex);
503
+ arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
522
504
  }
523
- prefix.o64_1 = prefix.n64_1 + byteCount | 0;
524
- this.n64_1 = this.n64_1 + byteCount | 0;
525
- if (!(this.s64_1 == null)) {
526
- ensureNotNull(this.s64_1).z64(prefix);
505
+ prefix.l69_1 = prefix.k69_1 + byteCount | 0;
506
+ this.k69_1 = this.k69_1 + byteCount | 0;
507
+ if (!(this.p69_1 == null)) {
508
+ ensureNotNull(this.p69_1).w69(prefix);
527
509
  } else {
528
- prefix.r64_1 = this;
529
- this.s64_1 = prefix;
510
+ prefix.o69_1 = this;
511
+ this.p69_1 = prefix;
530
512
  }
531
513
  return prefix;
532
514
  };
533
- protoOf(Segment).g65 = function () {
515
+ protoOf(Segment).c6a = function () {
534
516
  // Inline function 'kotlin.check' call
535
- // Inline function 'kotlin.contracts.contract' call
536
- if (!!(this.s64_1 == null)) {
537
- // Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
517
+ if (!!(this.p69_1 == null)) {
538
518
  var message = 'cannot compact';
539
519
  throw IllegalStateException_init_$Create$(toString(message));
540
520
  }
541
- if (!ensureNotNull(this.s64_1).q64_1)
521
+ if (!ensureNotNull(this.p69_1).n69_1)
542
522
  return this;
543
- var byteCount = this.o64_1 - this.n64_1 | 0;
544
- var availableByteCount = (8192 - ensureNotNull(this.s64_1).o64_1 | 0) + (ensureNotNull(this.s64_1).b65() ? 0 : ensureNotNull(this.s64_1).n64_1) | 0;
523
+ var byteCount = this.l69_1 - this.k69_1 | 0;
524
+ var availableByteCount = (8192 - ensureNotNull(this.p69_1).l69_1 | 0) + (ensureNotNull(this.p69_1).y69() ? 0 : ensureNotNull(this.p69_1).k69_1) | 0;
545
525
  if (byteCount > availableByteCount)
546
526
  return this;
547
- var predecessor = this.s64_1;
548
- this.d65(ensureNotNull(predecessor), byteCount);
549
- var successor = this.f65();
550
- // Inline function 'kotlin.check' call
551
- // Inline function 'kotlin.contracts.contract' call
527
+ var predecessor = this.p69_1;
528
+ this.a6a(ensureNotNull(predecessor), byteCount);
529
+ var successor = this.b6a();
552
530
  // Inline function 'kotlin.check' call
553
- // Inline function 'kotlin.contracts.contract' call
554
531
  if (!(successor == null)) {
555
- // Inline function 'kotlin.check.<anonymous>' call
556
- var message_0 = 'Check failed.';
557
- throw IllegalStateException_init_$Create$(toString(message_0));
532
+ throw IllegalStateException_init_$Create$('Check failed.');
558
533
  }
559
- SegmentPool_instance.j65(this);
534
+ SegmentPool_instance.f6a(this);
560
535
  return predecessor;
561
536
  };
562
- protoOf(Segment).h65 = function (byte) {
563
- var _unary__edvuaz = this.o64_1;
564
- this.o64_1 = _unary__edvuaz + 1 | 0;
565
- this.m64_1[_unary__edvuaz] = byte;
537
+ protoOf(Segment).d6a = function (byte) {
538
+ var _unary__edvuaz = this.l69_1;
539
+ this.l69_1 = _unary__edvuaz + 1 | 0;
540
+ this.j69_1[_unary__edvuaz] = byte;
566
541
  };
567
- protoOf(Segment).d65 = function (sink, byteCount) {
542
+ protoOf(Segment).a6a = function (sink, byteCount) {
568
543
  // Inline function 'kotlin.check' call
569
- // Inline function 'kotlin.contracts.contract' call
570
- if (!sink.q64_1) {
571
- // Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
544
+ if (!sink.n69_1) {
572
545
  var message = 'only owner can write';
573
546
  throw IllegalStateException_init_$Create$(toString(message));
574
547
  }
575
- if ((sink.o64_1 + byteCount | 0) > 8192) {
576
- if (sink.b65())
548
+ if ((sink.l69_1 + byteCount | 0) > 8192) {
549
+ if (sink.y69())
577
550
  throw IllegalArgumentException_init_$Create$_0();
578
- if (((sink.o64_1 + byteCount | 0) - sink.n64_1 | 0) > 8192)
551
+ if (((sink.l69_1 + byteCount | 0) - sink.k69_1 | 0) > 8192)
579
552
  throw IllegalArgumentException_init_$Create$_0();
553
+ var tmp0 = sink.j69_1;
554
+ var tmp2 = sink.j69_1;
555
+ var tmp4 = sink.k69_1;
580
556
  // Inline function 'kotlin.collections.copyInto' call
581
- var this_0 = sink.m64_1;
582
- var destination = sink.m64_1;
583
- var startIndex = sink.n64_1;
584
- var endIndex = sink.o64_1;
557
+ var endIndex = sink.l69_1;
585
558
  // Inline function 'kotlin.js.unsafeCast' call
586
559
  // Inline function 'kotlin.js.asDynamic' call
587
- var tmp = this_0;
560
+ var tmp = tmp0;
588
561
  // Inline function 'kotlin.js.unsafeCast' call
589
562
  // Inline function 'kotlin.js.asDynamic' call
590
- arrayCopy(tmp, destination, 0, startIndex, endIndex);
591
- sink.o64_1 = sink.o64_1 - sink.n64_1 | 0;
592
- sink.n64_1 = 0;
593
- }
563
+ arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
564
+ sink.l69_1 = sink.l69_1 - sink.k69_1 | 0;
565
+ sink.k69_1 = 0;
566
+ }
567
+ var tmp0_0 = this.j69_1;
568
+ var tmp2_0 = sink.j69_1;
569
+ var tmp4_0 = sink.l69_1;
570
+ var tmp6 = this.k69_1;
594
571
  // Inline function 'kotlin.collections.copyInto' call
595
- var this_1 = this.m64_1;
596
- var destination_0 = sink.m64_1;
597
- var destinationOffset = sink.o64_1;
598
- var startIndex_0 = this.n64_1;
599
- var endIndex_0 = this.n64_1 + byteCount | 0;
572
+ var endIndex_0 = this.k69_1 + byteCount | 0;
600
573
  // Inline function 'kotlin.js.unsafeCast' call
601
574
  // Inline function 'kotlin.js.asDynamic' call
602
- var tmp_0 = this_1;
575
+ var tmp_0 = tmp0_0;
603
576
  // Inline function 'kotlin.js.unsafeCast' call
604
577
  // Inline function 'kotlin.js.asDynamic' call
605
- arrayCopy(tmp_0, destination_0, destinationOffset, startIndex_0, endIndex_0);
606
- sink.o64_1 = sink.o64_1 + byteCount | 0;
607
- this.n64_1 = this.n64_1 + byteCount | 0;
578
+ arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
579
+ sink.l69_1 = sink.l69_1 + byteCount | 0;
580
+ this.k69_1 = this.k69_1 + byteCount | 0;
608
581
  };
609
- protoOf(Segment).e65 = function () {
610
- return this.o64_1 - this.n64_1 | 0;
582
+ protoOf(Segment).m = function () {
583
+ return this.l69_1 - this.k69_1 | 0;
611
584
  };
612
- protoOf(Segment).v65 = function () {
613
- return this.m64_1.length - this.o64_1 | 0;
585
+ protoOf(Segment).r6a = function () {
586
+ return this.j69_1.length - this.l69_1 | 0;
614
587
  };
615
- protoOf(Segment).w65 = function (readOnly) {
616
- return this.m64_1;
588
+ protoOf(Segment).s6a = function (readOnly) {
589
+ return this.j69_1;
617
590
  };
618
- protoOf(Segment).x65 = function (index) {
619
- return this.m64_1[this.n64_1 + index | 0];
591
+ protoOf(Segment).t6a = function (index) {
592
+ return this.j69_1[this.k69_1 + index | 0];
620
593
  };
621
- protoOf(Segment).y65 = function (index, value) {
622
- this.m64_1[this.o64_1 + index | 0] = value;
594
+ protoOf(Segment).u6a = function (index, value) {
595
+ this.j69_1[this.l69_1 + index | 0] = value;
623
596
  };
624
- protoOf(Segment).z65 = function (index, b0, b1) {
625
- var d = this.m64_1;
626
- var l = this.o64_1;
597
+ protoOf(Segment).v6a = function (index, b0, b1) {
598
+ var d = this.j69_1;
599
+ var l = this.l69_1;
627
600
  d[l + index | 0] = b0;
628
601
  d[(l + index | 0) + 1 | 0] = b1;
629
602
  };
630
- protoOf(Segment).a66 = function (index, b0, b1, b2) {
631
- var d = this.m64_1;
632
- var l = this.o64_1;
603
+ protoOf(Segment).w6a = function (index, b0, b1, b2) {
604
+ var d = this.j69_1;
605
+ var l = this.l69_1;
633
606
  d[l + index | 0] = b0;
634
607
  d[(l + index | 0) + 1 | 0] = b1;
635
608
  d[(l + index | 0) + 2 | 0] = b2;
636
609
  };
637
- protoOf(Segment).b66 = function (index, b0, b1, b2, b3) {
638
- var d = this.m64_1;
639
- var l = this.o64_1;
610
+ protoOf(Segment).x6a = function (index, b0, b1, b2, b3) {
611
+ var d = this.j69_1;
612
+ var l = this.l69_1;
640
613
  d[l + index | 0] = b0;
641
614
  d[(l + index | 0) + 1 | 0] = b1;
642
615
  d[(l + index | 0) + 2 | 0] = b2;
643
616
  d[(l + index | 0) + 3 | 0] = b3;
644
617
  };
645
618
  function Segment() {
646
- this.n64_1 = 0;
647
- this.o64_1 = 0;
648
- this.p64_1 = null;
649
- this.q64_1 = false;
650
- this.r64_1 = null;
651
- this.s64_1 = null;
619
+ this.k69_1 = 0;
620
+ this.l69_1 = 0;
621
+ this.m69_1 = null;
622
+ this.n69_1 = false;
623
+ this.o69_1 = null;
624
+ this.p69_1 = null;
652
625
  }
653
626
  function SegmentCopyTracker() {
654
627
  }
655
628
  function isEmpty(_this__u8e3s4) {
656
- return _this__u8e3s4.e65() === 0;
629
+ return _this__u8e3s4.m() === 0;
657
630
  }
658
631
  function AlwaysSharedCopyTracker() {
659
632
  AlwaysSharedCopyTracker_instance = this;
660
633
  SegmentCopyTracker.call(this);
661
634
  }
662
- protoOf(AlwaysSharedCopyTracker).r65 = function () {
635
+ protoOf(AlwaysSharedCopyTracker).n6a = function () {
663
636
  return true;
664
637
  };
665
- protoOf(AlwaysSharedCopyTracker).u65 = function () {
638
+ protoOf(AlwaysSharedCopyTracker).q6a = function () {
666
639
  return Unit_instance;
667
640
  };
668
641
  var AlwaysSharedCopyTracker_instance;
@@ -678,183 +651,173 @@
678
651
  var size = string.length;
679
652
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
680
653
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
681
- // Inline function 'kotlinx.io.writeString.<anonymous>' call
682
654
  // Inline function 'kotlinx.io.commonWriteUtf8' call
683
- var this_0 = _this__u8e3s4.i64();
655
+ var this_0 = _this__u8e3s4.f69();
684
656
  var i = startIndex;
685
657
  while (i < endIndex) {
686
- // Inline function 'kotlin.code' call
687
658
  var p0 = i;
688
- var this_1 = charSequenceGet(string, p0);
659
+ // Inline function 'kotlin.code' call
660
+ var this_1 = charCodeAt(string, p0);
689
661
  var c = Char__toInt_impl_vasixd(this_1);
690
662
  if (c < 128) {
691
663
  $l$block_0: {
692
664
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
693
- var tail = this_0.v64(1);
694
- // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
665
+ var tail = this_0.s69(1);
695
666
  var ctx = get_SegmentWriteContextImpl();
696
667
  var segmentOffset = -i | 0;
697
668
  // Inline function 'kotlin.comparisons.minOf' call
698
- var b = i + tail.v65() | 0;
669
+ var b = i + tail.r6a() | 0;
699
670
  var runLimit = Math.min(endIndex, b);
700
671
  var _unary__edvuaz = i;
701
672
  i = _unary__edvuaz + 1 | 0;
702
- ctx.f66(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
673
+ ctx.b6b(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
703
674
  $l$loop: while (i < runLimit) {
704
- // Inline function 'kotlin.code' call
705
675
  var p0_0 = i;
706
- var this_2 = charSequenceGet(string, p0_0);
676
+ // Inline function 'kotlin.code' call
677
+ var this_2 = charCodeAt(string, p0_0);
707
678
  c = Char__toInt_impl_vasixd(this_2);
708
679
  if (c >= 128)
709
680
  break $l$loop;
710
681
  var _unary__edvuaz_0 = i;
711
682
  i = _unary__edvuaz_0 + 1 | 0;
712
- ctx.f66(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
683
+ ctx.b6b(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
713
684
  }
714
685
  var bytesWritten = i + segmentOffset | 0;
715
686
  if (bytesWritten === 1) {
716
- tail.o64_1 = tail.o64_1 + bytesWritten | 0;
687
+ tail.l69_1 = tail.l69_1 + bytesWritten | 0;
717
688
  var tmp = this_0;
718
689
  // Inline function 'kotlin.Long.plus' call
719
- tmp.h64_1 = this_0.h64_1.z2(toLong(bytesWritten));
690
+ tmp.e69_1 = this_0.e69_1.w2(toLong(bytesWritten));
720
691
  break $l$block_0;
721
692
  }
722
693
  // Inline function 'kotlin.check' call
723
- // Inline function 'kotlin.contracts.contract' call
724
- if (!(0 <= bytesWritten ? bytesWritten <= tail.v65() : false)) {
725
- // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
726
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.v65();
694
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.r6a() : false)) {
695
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.r6a();
727
696
  throw IllegalStateException_init_$Create$(toString(message));
728
697
  }
729
698
  if (!(bytesWritten === 0)) {
730
- tail.o64_1 = tail.o64_1 + bytesWritten | 0;
699
+ tail.l69_1 = tail.l69_1 + bytesWritten | 0;
731
700
  var tmp_0 = this_0;
732
701
  // Inline function 'kotlin.Long.plus' call
733
- tmp_0.h64_1 = this_0.h64_1.z2(toLong(bytesWritten));
702
+ tmp_0.e69_1 = this_0.e69_1.w2(toLong(bytesWritten));
734
703
  break $l$block_0;
735
704
  }
736
705
  if (isEmpty(tail)) {
737
- this_0.k65();
706
+ this_0.g6a();
738
707
  }
739
708
  }
740
709
  } else if (c < 2048) {
741
710
  $l$block_2: {
742
711
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
743
- var tail_0 = this_0.v64(2);
744
- // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
745
- get_SegmentWriteContextImpl().e66(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
712
+ var tail_0 = this_0.s69(2);
713
+ get_SegmentWriteContextImpl().a6b(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
746
714
  var bytesWritten_0 = 2;
747
715
  if (bytesWritten_0 === 2) {
748
- tail_0.o64_1 = tail_0.o64_1 + bytesWritten_0 | 0;
716
+ tail_0.l69_1 = tail_0.l69_1 + bytesWritten_0 | 0;
749
717
  var tmp_1 = this_0;
750
718
  // Inline function 'kotlin.Long.plus' call
751
- tmp_1.h64_1 = this_0.h64_1.z2(toLong(bytesWritten_0));
719
+ tmp_1.e69_1 = this_0.e69_1.w2(toLong(bytesWritten_0));
752
720
  break $l$block_2;
753
721
  }
754
722
  // Inline function 'kotlin.check' call
755
- // Inline function 'kotlin.contracts.contract' call
756
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.v65() : false)) {
757
- // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
758
- var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.v65();
723
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.r6a() : false)) {
724
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.r6a();
759
725
  throw IllegalStateException_init_$Create$(toString(message_0));
760
726
  }
761
727
  if (!(bytesWritten_0 === 0)) {
762
- tail_0.o64_1 = tail_0.o64_1 + bytesWritten_0 | 0;
728
+ tail_0.l69_1 = tail_0.l69_1 + bytesWritten_0 | 0;
763
729
  var tmp_2 = this_0;
764
730
  // Inline function 'kotlin.Long.plus' call
765
- tmp_2.h64_1 = this_0.h64_1.z2(toLong(bytesWritten_0));
731
+ tmp_2.e69_1 = this_0.e69_1.w2(toLong(bytesWritten_0));
766
732
  break $l$block_2;
767
733
  }
768
734
  if (isEmpty(tail_0)) {
769
- this_0.k65();
735
+ this_0.g6a();
770
736
  }
771
737
  }
772
738
  i = i + 1 | 0;
773
739
  } else if (c < 55296 || c > 57343) {
774
740
  $l$block_4: {
775
741
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
776
- var tail_1 = this_0.v64(3);
777
- // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
778
- get_SegmentWriteContextImpl().d66(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
742
+ var tail_1 = this_0.s69(3);
743
+ get_SegmentWriteContextImpl().z6a(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
779
744
  var bytesWritten_1 = 3;
780
745
  if (bytesWritten_1 === 3) {
781
- tail_1.o64_1 = tail_1.o64_1 + bytesWritten_1 | 0;
746
+ tail_1.l69_1 = tail_1.l69_1 + bytesWritten_1 | 0;
782
747
  var tmp_3 = this_0;
783
748
  // Inline function 'kotlin.Long.plus' call
784
- tmp_3.h64_1 = this_0.h64_1.z2(toLong(bytesWritten_1));
749
+ tmp_3.e69_1 = this_0.e69_1.w2(toLong(bytesWritten_1));
785
750
  break $l$block_4;
786
751
  }
787
752
  // Inline function 'kotlin.check' call
788
- // Inline function 'kotlin.contracts.contract' call
789
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.v65() : false)) {
790
- // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
791
- var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.v65();
753
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.r6a() : false)) {
754
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.r6a();
792
755
  throw IllegalStateException_init_$Create$(toString(message_1));
793
756
  }
794
757
  if (!(bytesWritten_1 === 0)) {
795
- tail_1.o64_1 = tail_1.o64_1 + bytesWritten_1 | 0;
758
+ tail_1.l69_1 = tail_1.l69_1 + bytesWritten_1 | 0;
796
759
  var tmp_4 = this_0;
797
760
  // Inline function 'kotlin.Long.plus' call
798
- tmp_4.h64_1 = this_0.h64_1.z2(toLong(bytesWritten_1));
761
+ tmp_4.e69_1 = this_0.e69_1.w2(toLong(bytesWritten_1));
799
762
  break $l$block_4;
800
763
  }
801
764
  if (isEmpty(tail_1)) {
802
- this_0.k65();
765
+ this_0.g6a();
803
766
  }
804
767
  }
805
768
  i = i + 1 | 0;
806
769
  } else {
807
770
  var tmp_5;
808
771
  if ((i + 1 | 0) < endIndex) {
809
- // Inline function 'kotlin.code' call
810
772
  var p0_1 = i + 1 | 0;
811
- var this_3 = charSequenceGet(string, p0_1);
773
+ // Inline function 'kotlin.code' call
774
+ var this_3 = charCodeAt(string, p0_1);
812
775
  tmp_5 = Char__toInt_impl_vasixd(this_3);
813
776
  } else {
814
777
  tmp_5 = 0;
815
778
  }
816
779
  var low = tmp_5;
817
780
  if (c > 56319 || !(56320 <= low ? low <= 57343 : false)) {
818
- this_0.v1z(63);
781
+ // Inline function 'kotlin.code' call
782
+ var this_4 = _Char___init__impl__6a9atx(63);
783
+ var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
784
+ this_0.b22(toByte(tmp$ret$26));
819
785
  i = i + 1 | 0;
820
786
  } else {
821
787
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
822
788
  $l$block_6: {
823
789
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
824
- var tail_2 = this_0.v64(4);
825
- // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
826
- get_SegmentWriteContextImpl().c66(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
790
+ var tail_2 = this_0.s69(4);
791
+ get_SegmentWriteContextImpl().y6a(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
827
792
  var bytesWritten_2 = 4;
828
793
  if (bytesWritten_2 === 4) {
829
- tail_2.o64_1 = tail_2.o64_1 + bytesWritten_2 | 0;
794
+ tail_2.l69_1 = tail_2.l69_1 + bytesWritten_2 | 0;
830
795
  var tmp_6 = this_0;
831
796
  // Inline function 'kotlin.Long.plus' call
832
- tmp_6.h64_1 = this_0.h64_1.z2(toLong(bytesWritten_2));
797
+ tmp_6.e69_1 = this_0.e69_1.w2(toLong(bytesWritten_2));
833
798
  break $l$block_6;
834
799
  }
835
800
  // Inline function 'kotlin.check' call
836
- // Inline function 'kotlin.contracts.contract' call
837
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.v65() : false)) {
838
- // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
839
- var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.v65();
801
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.r6a() : false)) {
802
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.r6a();
840
803
  throw IllegalStateException_init_$Create$(toString(message_2));
841
804
  }
842
805
  if (!(bytesWritten_2 === 0)) {
843
- tail_2.o64_1 = tail_2.o64_1 + bytesWritten_2 | 0;
806
+ tail_2.l69_1 = tail_2.l69_1 + bytesWritten_2 | 0;
844
807
  var tmp_7 = this_0;
845
808
  // Inline function 'kotlin.Long.plus' call
846
- tmp_7.h64_1 = this_0.h64_1.z2(toLong(bytesWritten_2));
809
+ tmp_7.e69_1 = this_0.e69_1.w2(toLong(bytesWritten_2));
847
810
  break $l$block_6;
848
811
  }
849
812
  if (isEmpty(tail_2)) {
850
- this_0.k65();
813
+ this_0.g6a();
851
814
  }
852
815
  }
853
816
  i = i + 2 | 0;
854
817
  }
855
818
  }
856
819
  }
857
- _this__u8e3s4.k64();
820
+ _this__u8e3s4.h69();
858
821
  }
859
822
  function FileSystem() {
860
823
  }
@@ -864,9 +827,9 @@
864
827
  isRegularFile = isRegularFile === VOID ? false : isRegularFile;
865
828
  isDirectory = isDirectory === VOID ? false : isDirectory;
866
829
  size = size === VOID ? new Long(0, 0) : size;
867
- this.m66_1 = isRegularFile;
868
- this.n66_1 = isDirectory;
869
- this.o66_1 = size;
830
+ this.i6b_1 = isRegularFile;
831
+ this.j6b_1 = isDirectory;
832
+ this.k6b_1 = size;
870
833
  }
871
834
  function removeTrailingSeparators(path, isWindows_) {
872
835
  isWindows_ = isWindows_ === VOID ? get_isWindows() : isWindows_;
@@ -874,7 +837,7 @@
874
837
  var tmp;
875
838
  if (path.length > 1) {
876
839
  var tmp_0;
877
- if (charSequenceGet(path, 1) === _Char___init__impl__6a9atx(58)) {
840
+ if (charCodeAt(path, 1) === _Char___init__impl__6a9atx(58)) {
878
841
  tmp_0 = 3;
879
842
  } else if (isUnc(path)) {
880
843
  tmp_0 = 2;
@@ -892,19 +855,15 @@
892
855
  }
893
856
  function Path(base, parts) {
894
857
  // Inline function 'kotlin.text.buildString' call
895
- // Inline function 'kotlin.contracts.contract' call
896
858
  // Inline function 'kotlin.apply' call
897
859
  var this_0 = StringBuilder_init_$Create$_0();
898
- // Inline function 'kotlin.contracts.contract' call
899
- // Inline function 'kotlinx.io.files.Path.<anonymous>' call
900
- this_0.s8(base);
860
+ this_0.u8(base);
901
861
  // Inline function 'kotlin.collections.forEach' call
902
862
  var inductionVariable = 0;
903
863
  var last = parts.length;
904
864
  while (inductionVariable < last) {
905
865
  var element = parts[inductionVariable];
906
866
  inductionVariable = inductionVariable + 1 | 0;
907
- // Inline function 'kotlinx.io.files.Path.<anonymous>.<anonymous>' call
908
867
  var tmp;
909
868
  // Inline function 'kotlin.text.isNotEmpty' call
910
869
  if (charSequenceLength(this_0) > 0) {
@@ -913,12 +872,12 @@
913
872
  tmp = false;
914
873
  }
915
874
  if (tmp) {
916
- this_0.t8(get_SystemPathSeparator());
875
+ this_0.v8(get_SystemPathSeparator());
917
876
  }
918
- this_0.s8(element);
877
+ this_0.u8(element);
919
878
  }
920
- var tmp$ret$2 = this_0.toString();
921
- return Path_1(tmp$ret$2);
879
+ var tmp$ret$5 = this_0.toString();
880
+ return Path_1(tmp$ret$5);
922
881
  }
923
882
  function isUnc(path) {
924
883
  if (path.length < 2)
@@ -931,35 +890,26 @@
931
890
  }
932
891
  function removeTrailingSeparatorsWindows(suffixLength, path) {
933
892
  // Inline function 'kotlin.require' call
934
- // Inline function 'kotlin.contracts.contract' call
935
893
  // Inline function 'kotlin.require' call
936
- // Inline function 'kotlin.contracts.contract' call
937
894
  if (!(suffixLength >= 1)) {
938
- // Inline function 'kotlin.require.<anonymous>' call
939
895
  var message = 'Failed requirement.';
940
896
  throw IllegalArgumentException_init_$Create$(toString(message));
941
897
  }
942
898
  var idx = path.length;
943
899
  $l$loop: while (idx > suffixLength) {
944
- var c = charSequenceGet(path, idx - 1 | 0);
900
+ var c = charCodeAt(path, idx - 1 | 0);
945
901
  if (!(c === _Char___init__impl__6a9atx(92)) && !(c === _Char___init__impl__6a9atx(47)))
946
902
  break $l$loop;
947
903
  idx = idx - 1 | 0;
948
904
  }
949
- // Inline function 'kotlin.text.substring' call
950
- var endIndex = idx;
951
- // Inline function 'kotlin.js.asDynamic' call
952
- return path.substring(0, endIndex);
905
+ return substring(path, 0, idx);
953
906
  }
954
907
  function removeTrailingSeparatorsUnix(path) {
955
908
  var idx = path.length;
956
- while (idx > 1 && charSequenceGet(path, idx - 1 | 0) === _Char___init__impl__6a9atx(47)) {
909
+ while (idx > 1 && charCodeAt(path, idx - 1 | 0) === _Char___init__impl__6a9atx(47)) {
957
910
  idx = idx - 1 | 0;
958
911
  }
959
- // Inline function 'kotlin.text.substring' call
960
- var endIndex = idx;
961
- // Inline function 'kotlin.js.asDynamic' call
962
- return path.substring(0, endIndex);
912
+ return substring(path, 0, idx);
963
913
  }
964
914
  function get_SegmentReadContextImpl() {
965
915
  _init_properties_UnsafeBufferOperations_kt__xw75gy();
@@ -980,27 +930,27 @@
980
930
  }
981
931
  function SegmentReadContextImpl$1() {
982
932
  }
983
- protoOf(SegmentReadContextImpl$1).i65 = function (segment, offset) {
984
- return segment.x65(offset);
933
+ protoOf(SegmentReadContextImpl$1).e6a = function (segment, offset) {
934
+ return segment.t6a(offset);
985
935
  };
986
936
  function SegmentWriteContextImpl$1() {
987
937
  }
988
- protoOf(SegmentWriteContextImpl$1).f66 = function (segment, offset, value) {
989
- segment.y65(offset, value);
938
+ protoOf(SegmentWriteContextImpl$1).b6b = function (segment, offset, value) {
939
+ segment.u6a(offset, value);
990
940
  };
991
- protoOf(SegmentWriteContextImpl$1).e66 = function (segment, offset, b0, b1) {
992
- segment.z65(offset, b0, b1);
941
+ protoOf(SegmentWriteContextImpl$1).a6b = function (segment, offset, b0, b1) {
942
+ segment.v6a(offset, b0, b1);
993
943
  };
994
- protoOf(SegmentWriteContextImpl$1).d66 = function (segment, offset, b0, b1, b2) {
995
- segment.a66(offset, b0, b1, b2);
944
+ protoOf(SegmentWriteContextImpl$1).z6a = function (segment, offset, b0, b1, b2) {
945
+ segment.w6a(offset, b0, b1, b2);
996
946
  };
997
- protoOf(SegmentWriteContextImpl$1).c66 = function (segment, offset, b0, b1, b2, b3) {
998
- segment.b66(offset, b0, b1, b2, b3);
947
+ protoOf(SegmentWriteContextImpl$1).y6a = function (segment, offset, b0, b1, b2, b3) {
948
+ segment.x6a(offset, b0, b1, b2, b3);
999
949
  };
1000
950
  function BufferIterationContextImpl$1() {
1001
951
  }
1002
- protoOf(BufferIterationContextImpl$1).i65 = function (segment, offset) {
1003
- return get_SegmentReadContextImpl().i65(segment, offset);
952
+ protoOf(BufferIterationContextImpl$1).e6a = function (segment, offset) {
953
+ return get_SegmentReadContextImpl().e6a(segment, offset);
1004
954
  };
1005
955
  var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
1006
956
  function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
@@ -1081,15 +1031,15 @@
1081
1031
  captureStack(this, EOFException);
1082
1032
  }
1083
1033
  function SegmentPool() {
1084
- this.w64_1 = 0;
1085
- this.x64_1 = 0;
1034
+ this.t69_1 = 0;
1035
+ this.u69_1 = 0;
1086
1036
  }
1087
- protoOf(SegmentPool).y64 = function () {
1088
- return Companion_instance.q65();
1037
+ protoOf(SegmentPool).v69 = function () {
1038
+ return Companion_instance.m6a();
1089
1039
  };
1090
- protoOf(SegmentPool).j65 = function (segment) {
1040
+ protoOf(SegmentPool).f6a = function (segment) {
1091
1041
  };
1092
- protoOf(SegmentPool).t65 = function () {
1042
+ protoOf(SegmentPool).p6a = function () {
1093
1043
  return AlwaysSharedCopyTracker_getInstance();
1094
1044
  };
1095
1045
  var SegmentPool_instance;
@@ -1098,34 +1048,38 @@
1098
1048
  }
1099
1049
  function get_path() {
1100
1050
  _init_properties_nodeModulesJs_kt__ngjjzw();
1051
+ var tmp0 = path$delegate;
1052
+ var tmp = KProperty0;
1101
1053
  // Inline function 'kotlin.getValue' call
1102
- var this_0 = path$delegate;
1103
- path$factory();
1104
- return this_0.u();
1054
+ getPropertyCallableRef('path', 0, tmp, _get_path_$ref_hpvpv9(), null);
1055
+ return tmp0.u();
1105
1056
  }
1106
1057
  var path$delegate;
1107
1058
  function get_fs() {
1108
1059
  _init_properties_nodeModulesJs_kt__ngjjzw();
1060
+ var tmp0 = fs$delegate;
1061
+ var tmp = KProperty0;
1109
1062
  // Inline function 'kotlin.getValue' call
1110
- var this_0 = fs$delegate;
1111
- fs$factory();
1112
- return this_0.u();
1063
+ getPropertyCallableRef('fs', 0, tmp, _get_fs_$ref_rnlob1(), null);
1064
+ return tmp0.u();
1113
1065
  }
1114
1066
  var fs$delegate;
1115
1067
  function get_os() {
1116
1068
  _init_properties_nodeModulesJs_kt__ngjjzw();
1069
+ var tmp0 = os$delegate;
1070
+ var tmp = KProperty0;
1117
1071
  // Inline function 'kotlin.getValue' call
1118
- var this_0 = os$delegate;
1119
- os$factory();
1120
- return this_0.u();
1072
+ getPropertyCallableRef('os', 0, tmp, _get_os_$ref_hoy4d2(), null);
1073
+ return tmp0.u();
1121
1074
  }
1122
1075
  var os$delegate;
1123
1076
  function get_buffer() {
1124
1077
  _init_properties_nodeModulesJs_kt__ngjjzw();
1078
+ var tmp0 = buffer$delegate;
1079
+ var tmp = KProperty0;
1125
1080
  // Inline function 'kotlin.getValue' call
1126
- var this_0 = buffer$delegate;
1127
- buffer$factory();
1128
- return this_0.u();
1081
+ getPropertyCallableRef('buffer', 0, tmp, _get_buffer_$ref_mc964a(), null);
1082
+ return tmp0.u();
1129
1083
  }
1130
1084
  var buffer$delegate;
1131
1085
  function path$delegate$lambda() {
@@ -1144,6 +1098,11 @@
1144
1098
  }
1145
1099
  return tmp;
1146
1100
  }
1101
+ function _get_path_$ref_hpvpv9() {
1102
+ return function () {
1103
+ return get_path();
1104
+ };
1105
+ }
1147
1106
  function fs$delegate$lambda() {
1148
1107
  _init_properties_nodeModulesJs_kt__ngjjzw();
1149
1108
  var tmp;
@@ -1160,6 +1119,11 @@
1160
1119
  }
1161
1120
  return tmp;
1162
1121
  }
1122
+ function _get_fs_$ref_rnlob1() {
1123
+ return function () {
1124
+ return get_fs();
1125
+ };
1126
+ }
1163
1127
  function os$delegate$lambda() {
1164
1128
  _init_properties_nodeModulesJs_kt__ngjjzw();
1165
1129
  var tmp;
@@ -1176,6 +1140,11 @@
1176
1140
  }
1177
1141
  return tmp;
1178
1142
  }
1143
+ function _get_os_$ref_hoy4d2() {
1144
+ return function () {
1145
+ return get_os();
1146
+ };
1147
+ }
1179
1148
  function buffer$delegate$lambda() {
1180
1149
  _init_properties_nodeModulesJs_kt__ngjjzw();
1181
1150
  var tmp;
@@ -1192,25 +1161,10 @@
1192
1161
  }
1193
1162
  return tmp;
1194
1163
  }
1195
- function path$factory() {
1196
- return getPropertyCallableRef('path', 0, KProperty0, function () {
1197
- return get_path();
1198
- }, null);
1199
- }
1200
- function fs$factory() {
1201
- return getPropertyCallableRef('fs', 0, KProperty0, function () {
1202
- return get_fs();
1203
- }, null);
1204
- }
1205
- function os$factory() {
1206
- return getPropertyCallableRef('os', 0, KProperty0, function () {
1207
- return get_os();
1208
- }, null);
1209
- }
1210
- function buffer$factory() {
1211
- return getPropertyCallableRef('buffer', 0, KProperty0, function () {
1164
+ function _get_buffer_$ref_mc964a() {
1165
+ return function () {
1212
1166
  return get_buffer();
1213
- }, null);
1167
+ };
1214
1168
  }
1215
1169
  var properties_initialized_nodeModulesJs_kt_oooz8e;
1216
1170
  function _init_properties_nodeModulesJs_kt__ngjjzw() {
@@ -1243,7 +1197,7 @@
1243
1197
  }
1244
1198
  function SystemFileSystem$o$delete$lambda($path) {
1245
1199
  return function () {
1246
- var tmp0_elvis_lhs = get_fs().statSync($path.p66_1);
1200
+ var tmp0_elvis_lhs = get_fs().statSync($path.l6b_1);
1247
1201
  var tmp;
1248
1202
  if (tmp0_elvis_lhs == null) {
1249
1203
  throw new FileNotFoundException('File does not exist: ' + $path.toString());
@@ -1253,10 +1207,10 @@
1253
1207
  var stats = tmp;
1254
1208
  var tmp_0;
1255
1209
  if (stats.isDirectory()) {
1256
- get_fs().rmdirSync($path.p66_1);
1210
+ get_fs().rmdirSync($path.l6b_1);
1257
1211
  tmp_0 = Unit_instance;
1258
1212
  } else {
1259
- get_fs().rmSync($path.p66_1);
1213
+ get_fs().rmSync($path.l6b_1);
1260
1214
  tmp_0 = Unit_instance;
1261
1215
  }
1262
1216
  return Unit_instance;
@@ -1264,7 +1218,7 @@
1264
1218
  }
1265
1219
  function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
1266
1220
  return function () {
1267
- var tmp0_elvis_lhs = get_fs().statSync($path.p66_1);
1221
+ var tmp0_elvis_lhs = get_fs().statSync($path.l6b_1);
1268
1222
  var tmp;
1269
1223
  if (tmp0_elvis_lhs == null) {
1270
1224
  return Unit_instance;
@@ -1281,11 +1235,11 @@
1281
1235
  function SystemFileSystem$1() {
1282
1236
  SystemFileSystemImpl.call(this);
1283
1237
  }
1284
- protoOf(SystemFileSystem$1).g66 = function (path) {
1285
- return get_fs().existsSync(path.p66_1);
1238
+ protoOf(SystemFileSystem$1).c6b = function (path) {
1239
+ return get_fs().existsSync(path.l6b_1);
1286
1240
  };
1287
- protoOf(SystemFileSystem$1).h66 = function (path, mustExist) {
1288
- if (!this.g66(path)) {
1241
+ protoOf(SystemFileSystem$1).d6b = function (path, mustExist) {
1242
+ if (!this.c6b(path)) {
1289
1243
  if (mustExist) {
1290
1244
  throw new FileNotFoundException('File does not exist: ' + path.toString());
1291
1245
  }
@@ -1296,18 +1250,16 @@
1296
1250
  null;
1297
1251
  else {
1298
1252
  // Inline function 'kotlin.also' call
1299
- // Inline function 'kotlin.contracts.contract' call
1300
- // Inline function 'kotlinx.io.files.<no name provided>.delete.<anonymous>' call
1301
1253
  throw IOException_init_$Create$_1('Delete failed for ' + path.toString(), tmp0_safe_receiver);
1302
1254
  }
1303
1255
  };
1304
- protoOf(SystemFileSystem$1).j66 = function (path, mustCreate) {
1305
- var metadata = this.q66(path);
1256
+ protoOf(SystemFileSystem$1).f6b = function (path, mustCreate) {
1257
+ var metadata = this.m6b(path);
1306
1258
  if (!(metadata == null)) {
1307
1259
  if (mustCreate) {
1308
1260
  throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
1309
1261
  }
1310
- if (metadata.m66_1) {
1262
+ if (metadata.i6b_1) {
1311
1263
  throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
1312
1264
  }
1313
1265
  return Unit_instance;
@@ -1315,34 +1267,31 @@
1315
1267
  // Inline function 'kotlin.collections.arrayListOf' call
1316
1268
  var parts = ArrayList_init_$Create$();
1317
1269
  var p = path;
1318
- while (!(p == null) && !this.g66(p)) {
1270
+ while (!(p == null) && !this.c6b(p)) {
1319
1271
  parts.e(p.toString());
1320
- p = p.sp();
1272
+ p = p.yq();
1321
1273
  }
1322
1274
  // Inline function 'kotlin.collections.forEach' call
1323
- var tmp0_iterator = asReversed(parts).j();
1324
- while (tmp0_iterator.k()) {
1325
- var element = tmp0_iterator.l();
1326
- // Inline function 'kotlinx.io.files.<no name provided>.createDirectories.<anonymous>' call
1275
+ var _iterator__ex2g4s = asReversed(parts).j();
1276
+ while (_iterator__ex2g4s.k()) {
1277
+ var element = _iterator__ex2g4s.l();
1327
1278
  get_fs().mkdirSync(element);
1328
1279
  }
1329
1280
  };
1330
- protoOf(SystemFileSystem$1).q66 = function (path) {
1331
- if (!this.g66(path))
1281
+ protoOf(SystemFileSystem$1).m6b = function (path) {
1282
+ if (!this.c6b(path))
1332
1283
  return null;
1333
1284
  var metadata = {_v: null};
1334
- var tmp2_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
1335
- if (tmp2_safe_receiver == null)
1285
+ var tmp0_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
1286
+ if (tmp0_safe_receiver == null)
1336
1287
  null;
1337
1288
  else {
1338
1289
  // Inline function 'kotlin.also' call
1339
- // Inline function 'kotlin.contracts.contract' call
1340
- // Inline function 'kotlinx.io.files.<no name provided>.metadataOrNull.<anonymous>' call
1341
- throw IOException_init_$Create$_1('Stat failed for ' + path.toString(), tmp2_safe_receiver);
1290
+ throw IOException_init_$Create$_1('Stat failed for ' + path.toString(), tmp0_safe_receiver);
1342
1291
  }
1343
1292
  return metadata._v;
1344
1293
  };
1345
- protoOf(SystemFileSystem$1).l66 = function (path, append) {
1294
+ protoOf(SystemFileSystem$1).h6b = function (path, append) {
1346
1295
  return new FileSink(path, append);
1347
1296
  };
1348
1297
  var properties_initialized_FileSystemNodeJs_kt_vmmd20;
@@ -1355,34 +1304,35 @@
1355
1304
  }
1356
1305
  function get_SystemPathSeparator() {
1357
1306
  _init_properties_PathsNodeJs_kt__bvvvsp();
1307
+ var tmp0 = SystemPathSeparator$delegate;
1308
+ var tmp = KProperty0;
1358
1309
  // Inline function 'kotlin.getValue' call
1359
- var this_0 = SystemPathSeparator$delegate;
1360
- SystemPathSeparator$factory();
1361
- return this_0.u().j1_1;
1310
+ getPropertyCallableRef('SystemPathSeparator', 0, tmp, _get_SystemPathSeparator_$ref_lvdbpt(), null);
1311
+ return tmp0.u().g1_1;
1362
1312
  }
1363
1313
  var SystemPathSeparator$delegate;
1364
1314
  function Path_0(rawPath, any) {
1365
- this.p66_1 = removeTrailingSeparators(rawPath);
1315
+ this.l6b_1 = removeTrailingSeparators(rawPath);
1366
1316
  }
1367
- protoOf(Path_0).sp = function () {
1317
+ protoOf(Path_0).yq = function () {
1368
1318
  // Inline function 'kotlin.text.isEmpty' call
1369
- var this_0 = this.p66_1;
1319
+ var this_0 = this.l6b_1;
1370
1320
  if (charSequenceLength(this_0) === 0)
1371
1321
  return null;
1372
1322
  if (get_isWindows()) {
1373
- if (!contains(this.p66_1, _Char___init__impl__6a9atx(47)) && !contains(this.p66_1, _Char___init__impl__6a9atx(92))) {
1323
+ if (!contains(this.l6b_1, _Char___init__impl__6a9atx(47)) && !contains(this.l6b_1, _Char___init__impl__6a9atx(92))) {
1374
1324
  return null;
1375
1325
  }
1376
- } else if (!contains(this.p66_1, get_SystemPathSeparator())) {
1326
+ } else if (!contains(this.l6b_1, get_SystemPathSeparator())) {
1377
1327
  return null;
1378
1328
  }
1379
- var p = get_path().dirname(this.p66_1);
1329
+ var p = get_path().dirname(this.l6b_1);
1380
1330
  var tmp;
1381
1331
  // Inline function 'kotlin.text.isEmpty' call
1382
1332
  if (charSequenceLength(p) === 0) {
1383
1333
  tmp = null;
1384
1334
  } else {
1385
- if (p === this.p66_1) {
1335
+ if (p === this.l6b_1) {
1386
1336
  tmp = null;
1387
1337
  } else {
1388
1338
  tmp = Path_1(p);
@@ -1391,55 +1341,51 @@
1391
1341
  return tmp;
1392
1342
  };
1393
1343
  protoOf(Path_0).toString = function () {
1394
- return this.p66_1;
1344
+ return this.l6b_1;
1395
1345
  };
1396
1346
  protoOf(Path_0).equals = function (other) {
1397
1347
  if (this === other)
1398
1348
  return true;
1399
1349
  if (!(other instanceof Path_0))
1400
1350
  return false;
1401
- return this.p66_1 === other.p66_1;
1351
+ return this.l6b_1 === other.l6b_1;
1402
1352
  };
1403
1353
  protoOf(Path_0).hashCode = function () {
1404
- return getStringHashCode(this.p66_1);
1354
+ return getStringHashCode(this.l6b_1);
1405
1355
  };
1406
1356
  function open($this, path, append) {
1407
1357
  var flags = append ? 'a' : 'w';
1408
1358
  var fd = {_v: -1};
1409
- var tmp5_safe_receiver = withCaughtException(FileSink$open$lambda(fd, path, flags));
1410
- if (tmp5_safe_receiver == null)
1359
+ var tmp0_safe_receiver = withCaughtException(FileSink$open$lambda(fd, path, flags));
1360
+ if (tmp0_safe_receiver == null)
1411
1361
  null;
1412
1362
  else {
1413
1363
  // Inline function 'kotlin.also' call
1414
- // Inline function 'kotlin.contracts.contract' call
1415
- // Inline function 'kotlinx.io.files.FileSink.open.<anonymous>' call
1416
- throw IOException_init_$Create$_1('Failed to open a file ' + path.p66_1 + '.', tmp5_safe_receiver);
1364
+ throw IOException_init_$Create$_1('Failed to open a file ' + path.l6b_1 + '.', tmp0_safe_receiver);
1417
1365
  }
1418
1366
  if (fd._v < 0)
1419
- throw IOException_init_$Create$_0('Failed to open a file ' + path.p66_1 + '.');
1367
+ throw IOException_init_$Create$_0('Failed to open a file ' + path.l6b_1 + '.');
1420
1368
  return fd._v;
1421
1369
  }
1422
1370
  function FileSink$open$lambda($fd, $path, $flags) {
1423
1371
  return function () {
1424
- $fd._v = get_fs().openSync($path.p66_1, $flags);
1372
+ $fd._v = get_fs().openSync($path.l6b_1, $flags);
1425
1373
  return Unit_instance;
1426
1374
  };
1427
1375
  }
1428
1376
  function FileSink$write$lambda(this$0, $buf) {
1429
1377
  return function () {
1430
- get_fs().writeFileSync(this$0.s66_1, $buf);
1378
+ get_fs().writeFileSync(this$0.o6b_1, $buf);
1431
1379
  return Unit_instance;
1432
1380
  };
1433
1381
  }
1434
1382
  function FileSink(path, append) {
1435
- this.r66_1 = false;
1436
- this.s66_1 = open(this, path, append);
1383
+ this.n6b_1 = false;
1384
+ this.o6b_1 = open(this, path, append);
1437
1385
  }
1438
- protoOf(FileSink).a65 = function (source, byteCount) {
1386
+ protoOf(FileSink).x69 = function (source, byteCount) {
1439
1387
  // Inline function 'kotlin.check' call
1440
- // Inline function 'kotlin.contracts.contract' call
1441
- if (!!this.r66_1) {
1442
- // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
1388
+ if (!!this.n6b_1) {
1443
1389
  var message = 'Sink is closed.';
1444
1390
  throw IllegalStateException_init_$Create$(toString(message));
1445
1391
  }
@@ -1453,17 +1399,14 @@
1453
1399
  var segmentBytes = 0;
1454
1400
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
1455
1401
  // Inline function 'kotlin.require' call
1456
- // Inline function 'kotlin.contracts.contract' call
1457
- if (!!source.j64()) {
1458
- // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead.<anonymous>' call
1402
+ if (!!source.g69()) {
1459
1403
  var message_0 = 'Buffer is empty';
1460
1404
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1461
1405
  }
1462
- var head = ensureNotNull(source.f64_1);
1463
- // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
1464
- var headData = head.w65(true);
1465
- var headPos = head.n64_1;
1466
- segmentBytes = head.o64_1 - headPos | 0;
1406
+ var head = ensureNotNull(source.c69_1);
1407
+ var tmp0 = head.s6a(true);
1408
+ var tmp2 = head.k69_1;
1409
+ segmentBytes = head.l69_1 - tmp2 | 0;
1467
1410
  var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
1468
1411
  var inductionVariable = 0;
1469
1412
  var last = segmentBytes;
@@ -1471,36 +1414,34 @@
1471
1414
  do {
1472
1415
  var offset = inductionVariable;
1473
1416
  inductionVariable = inductionVariable + 1 | 0;
1474
- buf.writeInt8(headData[headPos + offset | 0], offset);
1417
+ buf.writeInt8(tmp0[tmp2 + offset | 0], offset);
1475
1418
  }
1476
1419
  while (inductionVariable < last);
1477
- var tmp6_safe_receiver = withCaughtException(FileSink$write$lambda(this, buf));
1478
- if (tmp6_safe_receiver == null)
1420
+ var tmp0_safe_receiver = withCaughtException(FileSink$write$lambda(this, buf));
1421
+ if (tmp0_safe_receiver == null)
1479
1422
  null;
1480
1423
  else {
1481
1424
  // Inline function 'kotlin.also' call
1482
- // Inline function 'kotlin.contracts.contract' call
1483
- // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>.<anonymous>' call
1484
- throw IOException_init_$Create$_1('Write failed', tmp6_safe_receiver);
1425
+ throw IOException_init_$Create$_1('Write failed', tmp0_safe_receiver);
1485
1426
  }
1486
1427
  var bytesRead = segmentBytes;
1487
1428
  if (!(bytesRead === 0)) {
1488
1429
  if (bytesRead < 0)
1489
1430
  throw IllegalStateException_init_$Create$('Returned negative read bytes count');
1490
- if (bytesRead > head.e65())
1431
+ if (bytesRead > head.m())
1491
1432
  throw IllegalStateException_init_$Create$('Returned too many bytes');
1492
- source.t64(toLong(bytesRead));
1433
+ source.q69(toLong(bytesRead));
1493
1434
  }
1435
+ var tmp0_0 = remainingBytes;
1494
1436
  // Inline function 'kotlin.Long.minus' call
1495
- var this_0 = remainingBytes;
1496
1437
  var other = segmentBytes;
1497
- remainingBytes = this_0.a3(toLong(other));
1438
+ remainingBytes = tmp0_0.x2(toLong(other));
1498
1439
  }
1499
1440
  };
1500
- protoOf(FileSink).e21 = function () {
1501
- if (!this.r66_1) {
1502
- this.r66_1 = true;
1503
- get_fs().closeSync(this.s66_1);
1441
+ protoOf(FileSink).k23 = function () {
1442
+ if (!this.n6b_1) {
1443
+ this.n6b_1 = true;
1444
+ get_fs().closeSync(this.o6b_1);
1504
1445
  }
1505
1446
  };
1506
1447
  function Path_1(path) {
@@ -1511,20 +1452,15 @@
1511
1452
  _init_properties_PathsNodeJs_kt__bvvvsp();
1512
1453
  var sep = get_path().sep;
1513
1454
  // Inline function 'kotlin.check' call
1514
- // Inline function 'kotlin.contracts.contract' call
1515
- // Inline function 'kotlin.check' call
1516
- // Inline function 'kotlin.contracts.contract' call
1517
1455
  if (!(sep.length === 1)) {
1518
- // Inline function 'kotlin.check.<anonymous>' call
1519
- var message = 'Check failed.';
1520
- throw IllegalStateException_init_$Create$(toString(message));
1456
+ throw IllegalStateException_init_$Create$('Check failed.');
1521
1457
  }
1522
- return new Char(charSequenceGet(sep, 0));
1458
+ return new Char(charCodeAt(sep, 0));
1523
1459
  }
1524
- function SystemPathSeparator$factory() {
1525
- return getPropertyCallableRef('SystemPathSeparator', 0, KProperty0, function () {
1460
+ function _get_SystemPathSeparator_$ref_lvdbpt() {
1461
+ return function () {
1526
1462
  return new Char(get_SystemPathSeparator());
1527
- }, null);
1463
+ };
1528
1464
  }
1529
1465
  var properties_initialized_PathsNodeJs_kt_2u5gc7;
1530
1466
  function _init_properties_PathsNodeJs_kt__bvvvsp() {
@@ -1534,8 +1470,8 @@
1534
1470
  }
1535
1471
  }
1536
1472
  //region block: post-declaration
1537
- protoOf(SystemFileSystemImpl).i66 = delete$default;
1538
- protoOf(SystemFileSystemImpl).k66 = createDirectories$default;
1473
+ protoOf(SystemFileSystemImpl).e6b = delete$default;
1474
+ protoOf(SystemFileSystemImpl).g6b = createDirectories$default;
1539
1475
  //endregion
1540
1476
  //region block: init
1541
1477
  Companion_instance = new Companion();