game_client_logic_deb 1.8.96 → 1.8.104

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 (34) hide show
  1. package/Kosi-Kaverit-kaverit.js +98 -99
  2. package/Kosi-Kaverit-kaverit.js.map +1 -1
  3. package/Kosi-Kodein-kodein-di.js +803 -804
  4. package/Kosi-Kodein-kodein-di.js.map +1 -1
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +171 -202
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  7. package/Logic_Debertz-core.js +1918 -2300
  8. package/Logic_Debertz-core.js.map +1 -1
  9. package/Logic_Debertz-engine.js +16480 -20499
  10. package/Logic_Debertz-engine.js.map +1 -1
  11. package/Logic_Debertz-game_client.d.ts +92 -127
  12. package/Logic_Debertz-game_client.js +5078 -5649
  13. package/Logic_Debertz-game_client.js.map +1 -1
  14. package/kotlin-kotlin-stdlib.js +8597 -7800
  15. package/kotlin-kotlin-stdlib.js.map +1 -1
  16. package/kotlin-kotlinx-atomicfu-runtime.js +1 -1
  17. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +1 -1
  18. package/kotlinx-atomicfu.js +54 -39
  19. package/kotlinx-atomicfu.js.map +1 -1
  20. package/kotlinx-coroutines-core.js +2899 -2964
  21. package/kotlinx-coroutines-core.js.map +1 -1
  22. package/kotlinx-io-kotlinx-io-bytestring.js +1 -1
  23. package/kotlinx-io-kotlinx-io-core.js +326 -358
  24. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  25. package/kotlinx-serialization-kotlinx-serialization-core.js +2416 -2452
  26. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  27. package/kotlinx-serialization-kotlinx-serialization-json.js +1699 -1842
  28. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  29. package/package.json +1 -1
  30. package/raspberry-cardgame-lib-core.js +281 -290
  31. package/raspberry-cardgame-lib-core.js.map +1 -1
  32. package/secure-random-secure-random.js +1 -1
  33. package/uuid.js +44 -59
  34. package/uuid.js.map +1 -1
@@ -9,65 +9,64 @@
9
9
  }
10
10
  root['kotlinx-io-kotlinx-io-core'] = factory(typeof this['kotlinx-io-kotlinx-io-core'] === 'undefined' ? {} : this['kotlinx-io-kotlinx-io-core'], this['kotlin-kotlin-stdlib']);
11
11
  }
12
- }(this, function (_, kotlin_kotlin) {
12
+ }(globalThis, function (_, kotlin_kotlin) {
13
13
  'use strict';
14
14
  //region block: imports
15
15
  var imul = Math.imul;
16
16
  var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.s1;
17
- var Long = kotlin_kotlin.$_$.td;
17
+ var Long = kotlin_kotlin.$_$.yd;
18
18
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
19
- var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.l2;
20
- var charArrayOf = kotlin_kotlin.$_$.s9;
21
- var protoOf = kotlin_kotlin.$_$.ab;
22
- var Unit_instance = kotlin_kotlin.$_$.y4;
23
- var ensureNotNull = kotlin_kotlin.$_$.qe;
24
- var toLong = kotlin_kotlin.$_$.db;
25
- var toString = kotlin_kotlin.$_$.fb;
19
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.m2;
20
+ var charArrayOf = kotlin_kotlin.$_$.v9;
21
+ var protoOf = kotlin_kotlin.$_$.gb;
22
+ var Unit_instance = kotlin_kotlin.$_$.z4;
23
+ var ensureNotNull = kotlin_kotlin.$_$.ve;
24
+ var toLong = kotlin_kotlin.$_$.ib;
25
+ var toString = kotlin_kotlin.$_$.kb;
26
26
  var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
27
- var classMeta = kotlin_kotlin.$_$.x9;
28
- var setMetadataFor = kotlin_kotlin.$_$.bb;
29
- var VOID = kotlin_kotlin.$_$.f;
27
+ var initMetadataForClass = kotlin_kotlin.$_$.ja;
30
28
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.q1;
31
- var objectCreate = kotlin_kotlin.$_$.ya;
32
- var objectMeta = kotlin_kotlin.$_$.za;
33
- var arrayCopy = kotlin_kotlin.$_$.n5;
29
+ var objectCreate = kotlin_kotlin.$_$.fb;
30
+ var initMetadataForCompanion = kotlin_kotlin.$_$.ka;
31
+ var arrayCopy = kotlin_kotlin.$_$.q5;
34
32
  var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.l1;
35
- var charSequenceGet = kotlin_kotlin.$_$.u9;
36
- var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.o2;
37
- var toByte = kotlin_kotlin.$_$.cb;
38
- var interfaceMeta = kotlin_kotlin.$_$.ha;
39
- var toString_0 = kotlin_kotlin.$_$.p2;
40
- var startsWith = kotlin_kotlin.$_$.oc;
33
+ var VOID = kotlin_kotlin.$_$.f;
34
+ var charSequenceGet = kotlin_kotlin.$_$.x9;
35
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.p2;
36
+ var toByte = kotlin_kotlin.$_$.hb;
37
+ var initMetadataForInterface = kotlin_kotlin.$_$.ma;
38
+ var startsWith = kotlin_kotlin.$_$.tc;
41
39
  var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.e1;
42
- var charSequenceLength = kotlin_kotlin.$_$.v9;
43
- var endsWith = kotlin_kotlin.$_$.cc;
44
- var captureStack = kotlin_kotlin.$_$.r9;
45
- var Exception = kotlin_kotlin.$_$.qd;
40
+ var charSequenceLength = kotlin_kotlin.$_$.y9;
41
+ var endsWith = kotlin_kotlin.$_$.hc;
42
+ var captureStack = kotlin_kotlin.$_$.u9;
43
+ var Exception = kotlin_kotlin.$_$.vd;
46
44
  var Exception_init_$Init$ = kotlin_kotlin.$_$.i1;
47
- var THROW_CCE = kotlin_kotlin.$_$.zd;
45
+ var initMetadataForObject = kotlin_kotlin.$_$.oa;
46
+ var THROW_CCE = kotlin_kotlin.$_$.ee;
48
47
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
49
- var asReversed = kotlin_kotlin.$_$.p5;
50
- var equals = kotlin_kotlin.$_$.aa;
51
- var contains = kotlin_kotlin.$_$.bc;
52
- var getStringHashCode = kotlin_kotlin.$_$.fa;
53
- var Char = kotlin_kotlin.$_$.jd;
54
- var KProperty0 = kotlin_kotlin.$_$.qb;
55
- var getPropertyCallableRef = kotlin_kotlin.$_$.ea;
56
- var lazy = kotlin_kotlin.$_$.ve;
48
+ var asReversed = kotlin_kotlin.$_$.s5;
49
+ var equals = kotlin_kotlin.$_$.ca;
50
+ var contains = kotlin_kotlin.$_$.gc;
51
+ var getStringHashCode = kotlin_kotlin.$_$.ha;
52
+ var Char = kotlin_kotlin.$_$.od;
53
+ var KProperty0 = kotlin_kotlin.$_$.vb;
54
+ var getPropertyCallableRef = kotlin_kotlin.$_$.ga;
55
+ var lazy = kotlin_kotlin.$_$.af;
57
56
  //endregion
58
57
  //region block: pre-declaration
59
- setMetadataFor(Buffer, 'Buffer', classMeta, VOID, VOID, Buffer);
60
- setMetadataFor(RealSink, 'RealSink', classMeta);
61
- setMetadataFor(Companion, 'Companion', objectMeta);
62
- setMetadataFor(Segment, 'Segment', classMeta, VOID, VOID, Segment_init_$Create$);
58
+ initMetadataForClass(Buffer, 'Buffer', Buffer);
59
+ initMetadataForClass(RealSink, 'RealSink');
60
+ initMetadataForCompanion(Companion);
61
+ initMetadataForClass(Segment, 'Segment', Segment_init_$Create$);
63
62
  function delete$default(path, mustExist, $super) {
64
63
  mustExist = mustExist === VOID ? true : mustExist;
65
64
  var tmp;
66
65
  if ($super === VOID) {
67
- this.a2k(path, mustExist);
66
+ this.k2l(path, mustExist);
68
67
  tmp = Unit_instance;
69
68
  } else {
70
- tmp = $super.a2k.call(this, path, mustExist);
69
+ tmp = $super.k2l.call(this, path, mustExist);
71
70
  }
72
71
  return tmp;
73
72
  }
@@ -75,23 +74,23 @@
75
74
  mustCreate = mustCreate === VOID ? false : mustCreate;
76
75
  var tmp;
77
76
  if ($super === VOID) {
78
- this.c2k(path, mustCreate);
77
+ this.m2l(path, mustCreate);
79
78
  tmp = Unit_instance;
80
79
  } else {
81
- tmp = $super.c2k.call(this, path, mustCreate);
80
+ tmp = $super.m2l.call(this, path, mustCreate);
82
81
  }
83
82
  return tmp;
84
83
  }
85
- setMetadataFor(FileSystem, 'FileSystem', interfaceMeta);
86
- setMetadataFor(SystemFileSystemImpl, 'SystemFileSystemImpl', classMeta, VOID, [FileSystem]);
87
- setMetadataFor(FileMetadata, 'FileMetadata', classMeta, VOID, VOID, FileMetadata);
88
- setMetadataFor(IOException, 'IOException', classMeta, Exception, VOID, IOException_init_$Create$_0);
89
- setMetadataFor(EOFException, 'EOFException', classMeta, IOException, VOID, EOFException_init_$Create$);
90
- setMetadataFor(SegmentPool, 'SegmentPool', objectMeta);
91
- setMetadataFor(FileNotFoundException, 'FileNotFoundException', classMeta, IOException);
92
- setMetadataFor(SystemFileSystem$1, VOID, classMeta, SystemFileSystemImpl);
93
- setMetadataFor(Path_0, 'Path', classMeta);
94
- setMetadataFor(FileSink, 'FileSink', classMeta);
84
+ initMetadataForInterface(FileSystem, 'FileSystem');
85
+ initMetadataForClass(SystemFileSystemImpl, 'SystemFileSystemImpl', VOID, VOID, [FileSystem]);
86
+ initMetadataForClass(FileMetadata, 'FileMetadata', FileMetadata);
87
+ initMetadataForClass(IOException, 'IOException', IOException_init_$Create$_0, Exception);
88
+ initMetadataForClass(EOFException, 'EOFException', EOFException_init_$Create$, IOException);
89
+ initMetadataForObject(SegmentPool, 'SegmentPool');
90
+ initMetadataForClass(FileNotFoundException, 'FileNotFoundException', VOID, IOException);
91
+ initMetadataForClass(SystemFileSystem$1, VOID, VOID, SystemFileSystemImpl);
92
+ initMetadataForClass(Path_0, 'Path');
93
+ initMetadataForClass(FileSink, 'FileSink');
95
94
  //endregion
96
95
  function get_HEX_DIGIT_CHARS() {
97
96
  _init_properties__Util_kt__g8tcl9();
@@ -100,16 +99,16 @@
100
99
  var HEX_DIGIT_CHARS;
101
100
  function checkBounds(size, startIndex, endIndex) {
102
101
  _init_properties__Util_kt__g8tcl9();
103
- if (startIndex.m8(new Long(0, 0)) < 0 ? true : endIndex.m8(size) > 0) {
102
+ if (startIndex.x(new Long(0, 0)) < 0 || endIndex.x(size) > 0) {
104
103
  throw IndexOutOfBoundsException_init_$Create$('startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') are not within the range [0..size(' + size.toString() + '))');
105
104
  }
106
- if (startIndex.m8(endIndex) > 0) {
105
+ if (startIndex.x(endIndex) > 0) {
107
106
  throw IllegalArgumentException_init_$Create$('startIndex (' + startIndex.toString() + ') > endIndex (' + endIndex.toString() + ')');
108
107
  }
109
108
  }
110
109
  function checkOffsetAndCount(size, offset, byteCount) {
111
110
  _init_properties__Util_kt__g8tcl9();
112
- if (((offset.m8(new Long(0, 0)) < 0 ? true : offset.m8(size) > 0) ? true : size.r9(offset).m8(byteCount) < 0) ? true : byteCount.m8(new Long(0, 0)) < 0) {
111
+ if (offset.x(new Long(0, 0)) < 0 || offset.x(size) > 0 || size.w2(offset).x(byteCount) < 0 || byteCount.x(new Long(0, 0)) < 0) {
113
112
  throw IllegalArgumentException_init_$Create$('offset (' + offset.toString() + ') and byteCount (' + byteCount.toString() + ') are not within the range [0..size(' + size.toString() + '))');
114
113
  }
115
114
  }
@@ -122,45 +121,38 @@
122
121
  }
123
122
  }
124
123
  function Buffer() {
125
- this.s2i_1 = null;
126
- this.t2i_1 = new Long(0, 0);
127
- this.u2i_1 = this;
124
+ this.c2k_1 = null;
125
+ this.d2k_1 = new Long(0, 0);
126
+ this.e2k_1 = this;
128
127
  }
129
- protoOf(Buffer).v2i = function () {
130
- return this.u2i_1;
128
+ protoOf(Buffer).f2k = function () {
129
+ return this.e2k_1;
131
130
  };
132
- protoOf(Buffer).w2i = function () {
131
+ protoOf(Buffer).g2k = function () {
133
132
  return Unit_instance;
134
133
  };
135
- protoOf(Buffer).x2i = function () {
136
- var result = this.t2i_1;
134
+ protoOf(Buffer).h2k = function () {
135
+ var result = this.d2k_1;
137
136
  if (result.equals(new Long(0, 0)))
138
137
  return new Long(0, 0);
139
- var tail = ensureNotNull(ensureNotNull(this.s2i_1).e2j_1);
140
- var tmp;
141
- var tmp_0 = tail.a2j_1;
142
- if (tmp_0 < 8192) {
143
- tmp = tail.c2j_1;
144
- } else {
145
- tmp = false;
146
- }
147
- if (tmp) {
148
- result = result.r9(toLong(tail.a2j_1 - tail.z2i_1 | 0));
138
+ var tail = ensureNotNull(ensureNotNull(this.c2k_1).o2k_1);
139
+ if (tail.k2k_1 < 8192 && tail.m2k_1) {
140
+ result = result.w2(toLong(tail.k2k_1 - tail.j2k_1 | 0));
149
141
  }
150
142
  return result;
151
143
  };
152
- protoOf(Buffer).f2j = function (byteCount) {
144
+ protoOf(Buffer).p2k = function (byteCount) {
153
145
  // Inline function 'kotlinx.io.checkByteCount' call
154
146
  // Inline function 'kotlin.require' call
155
147
  // Inline function 'kotlin.contracts.contract' call
156
- if (!(byteCount.m8(new Long(0, 0)) >= 0)) {
148
+ if (!(byteCount.x(new Long(0, 0)) >= 0)) {
157
149
  // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
158
150
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
159
151
  throw IllegalArgumentException_init_$Create$(toString(message));
160
152
  }
161
153
  var remainingByteCount = byteCount;
162
- while (remainingByteCount.m8(new Long(0, 0)) > 0) {
163
- var tmp0_elvis_lhs = this.s2i_1;
154
+ while (remainingByteCount.x(new Long(0, 0)) > 0) {
155
+ var tmp0_elvis_lhs = this.c2k_1;
164
156
  var tmp;
165
157
  if (tmp0_elvis_lhs == null) {
166
158
  throw new EOFException('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -170,54 +162,41 @@
170
162
  var head = tmp;
171
163
  // Inline function 'kotlinx.io.minOf' call
172
164
  var a = remainingByteCount;
173
- var b = head.a2j_1 - head.z2i_1 | 0;
165
+ var b = head.k2k_1 - head.j2k_1 | 0;
174
166
  // Inline function 'kotlin.comparisons.minOf' call
175
167
  var b_0 = toLong(b);
176
- var toSkip = (a.m8(b_0) <= 0 ? a : b_0).u8();
177
- this.t2i_1 = this.t2i_1.r9(toLong(toSkip));
178
- remainingByteCount = remainingByteCount.r9(toLong(toSkip));
179
- head.z2i_1 = head.z2i_1 + toSkip | 0;
180
- if (head.z2i_1 === head.a2j_1) {
181
- this.s2i_1 = head.g2j();
182
- SegmentPool_instance.j2j(head);
168
+ var toSkip = (a.x(b_0) <= 0 ? a : b_0).c1();
169
+ this.d2k_1 = this.d2k_1.w2(toLong(toSkip));
170
+ remainingByteCount = remainingByteCount.w2(toLong(toSkip));
171
+ head.j2k_1 = head.j2k_1 + toSkip | 0;
172
+ if (head.j2k_1 === head.k2k_1) {
173
+ this.c2k_1 = head.q2k();
174
+ SegmentPool_instance.t2k(head);
183
175
  }
184
176
  }
185
177
  };
186
- protoOf(Buffer).k2j = function (minimumCapacity) {
178
+ protoOf(Buffer).u2k = function (minimumCapacity) {
187
179
  // Inline function 'kotlin.require' call
188
- var tmp;
189
- if (minimumCapacity >= 1) {
190
- tmp = minimumCapacity <= 8192;
191
- } else {
192
- tmp = false;
193
- }
194
180
  // Inline function 'kotlin.contracts.contract' call
195
- if (!tmp) {
181
+ if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
196
182
  // Inline function 'kotlinx.io.Buffer.writableSegment.<anonymous>' call
197
183
  var message = 'unexpected capacity';
198
184
  throw IllegalArgumentException_init_$Create$(toString(message));
199
185
  }
200
- if (this.s2i_1 == null) {
201
- var result = SegmentPool_instance.l2j();
202
- this.s2i_1 = result;
203
- result.e2j_1 = result;
204
- result.d2j_1 = result;
186
+ if (this.c2k_1 == null) {
187
+ var result = SegmentPool_instance.v2k();
188
+ this.c2k_1 = result;
189
+ result.o2k_1 = result;
190
+ result.n2k_1 = result;
205
191
  return result;
206
192
  }
207
- var tail = ensureNotNull(this.s2i_1).e2j_1;
208
- var tmp_0;
209
- var tmp_1 = ensureNotNull(tail).a2j_1 + minimumCapacity | 0;
210
- if (tmp_1 > 8192) {
211
- tmp_0 = true;
212
- } else {
213
- tmp_0 = !tail.c2j_1;
214
- }
215
- if (tmp_0) {
216
- tail = tail.m2j(SegmentPool_instance.l2j());
193
+ var tail = ensureNotNull(this.c2k_1).o2k_1;
194
+ if ((ensureNotNull(tail).k2k_1 + minimumCapacity | 0) > 8192 || !tail.m2k_1) {
195
+ tail = tail.w2k(SegmentPool_instance.v2k());
217
196
  }
218
197
  return tail;
219
198
  };
220
- protoOf(Buffer).n2j = function (source, byteCount) {
199
+ protoOf(Buffer).x2k = function (source, byteCount) {
221
200
  // Inline function 'kotlin.require' call
222
201
  // Inline function 'kotlin.contracts.contract' call
223
202
  if (!!(source === this)) {
@@ -225,141 +204,140 @@
225
204
  var message = 'source == this';
226
205
  throw IllegalArgumentException_init_$Create$(toString(message));
227
206
  }
228
- checkOffsetAndCount(source.t2i_1, new Long(0, 0), byteCount);
207
+ checkOffsetAndCount(source.d2k_1, new Long(0, 0), byteCount);
229
208
  var remainingByteCount = byteCount;
230
- while (remainingByteCount.m8(new Long(0, 0)) > 0) {
231
- if (remainingByteCount.m8(toLong(ensureNotNull(source.s2i_1).a2j_1 - ensureNotNull(source.s2i_1).z2i_1 | 0)) < 0) {
232
- var tail = !(this.s2i_1 == null) ? ensureNotNull(this.s2i_1).e2j_1 : null;
209
+ while (remainingByteCount.x(new Long(0, 0)) > 0) {
210
+ if (remainingByteCount.x(toLong(ensureNotNull(source.c2k_1).k2k_1 - ensureNotNull(source.c2k_1).j2k_1 | 0)) < 0) {
211
+ var tail = !(this.c2k_1 == null) ? ensureNotNull(this.c2k_1).o2k_1 : null;
233
212
  var tmp;
234
- if (!(tail == null) ? tail.c2j_1 : false) {
213
+ if (!(tail == null) && tail.m2k_1) {
235
214
  // Inline function 'kotlin.Long.minus' call
236
215
  // Inline function 'kotlin.Long.plus' call
237
216
  var this_0 = remainingByteCount;
238
- var other = tail.a2j_1;
239
- var this_1 = this_0.q9(toLong(other));
240
- var other_0 = tail.b2j_1 ? 0 : tail.z2i_1;
241
- var tmp_0 = this_1.r9(toLong(other_0));
242
- tmp = tmp_0.m8(toLong(8192)) <= 0;
217
+ var other = tail.k2k_1;
218
+ var this_1 = this_0.v2(toLong(other));
219
+ var other_0 = tail.l2k_1 ? 0 : tail.j2k_1;
220
+ tmp = this_1.w2(toLong(other_0)).x(new Long(8192, 0)) <= 0;
243
221
  } else {
244
222
  tmp = false;
245
223
  }
246
224
  if (tmp) {
247
- ensureNotNull(source.s2i_1).p2j(tail, remainingByteCount.u8());
248
- source.t2i_1 = source.t2i_1.r9(remainingByteCount);
249
- this.t2i_1 = this.t2i_1.q9(remainingByteCount);
225
+ ensureNotNull(source.c2k_1).z2k(tail, remainingByteCount.c1());
226
+ source.d2k_1 = source.d2k_1.w2(remainingByteCount);
227
+ this.d2k_1 = this.d2k_1.v2(remainingByteCount);
250
228
  return Unit_instance;
251
229
  } else {
252
- source.s2i_1 = ensureNotNull(source.s2i_1).o2j(remainingByteCount.u8());
230
+ source.c2k_1 = ensureNotNull(source.c2k_1).y2k(remainingByteCount.c1());
253
231
  }
254
232
  }
255
- var segmentToMove = source.s2i_1;
256
- var movedByteCount = toLong(ensureNotNull(segmentToMove).a2j_1 - segmentToMove.z2i_1 | 0);
257
- source.s2i_1 = segmentToMove.g2j();
258
- if (this.s2i_1 == null) {
259
- this.s2i_1 = segmentToMove;
260
- segmentToMove.e2j_1 = segmentToMove;
261
- segmentToMove.d2j_1 = segmentToMove.e2j_1;
233
+ var segmentToMove = source.c2k_1;
234
+ var movedByteCount = toLong(ensureNotNull(segmentToMove).k2k_1 - segmentToMove.j2k_1 | 0);
235
+ source.c2k_1 = segmentToMove.q2k();
236
+ if (this.c2k_1 == null) {
237
+ this.c2k_1 = segmentToMove;
238
+ segmentToMove.o2k_1 = segmentToMove;
239
+ segmentToMove.n2k_1 = segmentToMove.o2k_1;
262
240
  } else {
263
- var tail_0 = ensureNotNull(this.s2i_1).e2j_1;
264
- tail_0 = ensureNotNull(tail_0).m2j(segmentToMove);
265
- tail_0.q2j();
241
+ var tail_0 = ensureNotNull(this.c2k_1).o2k_1;
242
+ tail_0 = ensureNotNull(tail_0).w2k(segmentToMove);
243
+ tail_0.a2l();
266
244
  }
267
- source.t2i_1 = source.t2i_1.r9(movedByteCount);
268
- this.t2i_1 = this.t2i_1.q9(movedByteCount);
269
- remainingByteCount = remainingByteCount.r9(movedByteCount);
245
+ source.d2k_1 = source.d2k_1.w2(movedByteCount);
246
+ this.d2k_1 = this.d2k_1.v2(movedByteCount);
247
+ remainingByteCount = remainingByteCount.w2(movedByteCount);
270
248
  }
271
249
  };
272
- protoOf(Buffer).r2j = function (byte) {
273
- var tail = this.k2j(1);
274
- var tmp1 = tail.a2j_1;
275
- tail.a2j_1 = tmp1 + 1 | 0;
276
- tail.y2i_1[tmp1] = byte;
277
- this.t2i_1 = this.t2i_1.q9(new Long(1, 0));
250
+ protoOf(Buffer).b2l = function (byte) {
251
+ var tail = this.u2k(1);
252
+ var tmp1 = tail.k2k_1;
253
+ tail.k2k_1 = tmp1 + 1 | 0;
254
+ tail.i2k_1[tmp1] = byte;
255
+ this.d2k_1 = this.d2k_1.v2(new Long(1, 0));
278
256
  };
279
- protoOf(Buffer).s2j = function () {
257
+ protoOf(Buffer).c2l = function () {
280
258
  return Unit_instance;
281
259
  };
282
260
  protoOf(Buffer).toString = function () {
283
- if (this.t2i_1.equals(new Long(0, 0)))
261
+ if (this.d2k_1.equals(new Long(0, 0)))
284
262
  return 'Buffer(size=0)';
285
263
  var maxPrintableBytes = 64;
286
264
  // Inline function 'kotlinx.io.minOf' call
287
- var b = this.t2i_1;
265
+ var b = this.d2k_1;
288
266
  // Inline function 'kotlin.comparisons.minOf' call
289
267
  var a = toLong(maxPrintableBytes);
290
- var len = (a.m8(b) <= 0 ? a : b).u8();
291
- var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.t2i_1.m8(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
292
- var curr = ensureNotNull(this.s2i_1);
268
+ var len = (a.x(b) <= 0 ? a : b).c1();
269
+ var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.d2k_1.x(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
270
+ var curr = ensureNotNull(this.c2k_1);
293
271
  var bytesWritten = 0;
294
- var pos = curr.z2i_1;
272
+ var pos = curr.j2k_1;
295
273
  while (bytesWritten < len) {
296
- if (pos === curr.a2j_1) {
297
- curr = ensureNotNull(curr.d2j_1);
298
- pos = curr.z2i_1;
274
+ if (pos === curr.k2k_1) {
275
+ curr = ensureNotNull(curr.n2k_1);
276
+ pos = curr.j2k_1;
299
277
  }
300
- var tmp = curr.y2i_1;
278
+ var tmp = curr.i2k_1;
301
279
  var tmp0 = pos;
302
280
  pos = tmp0 + 1 | 0;
303
281
  var b_0 = tmp[tmp0];
304
282
  bytesWritten = bytesWritten + 1 | 0;
305
- builder.h5(get_HEX_DIGIT_CHARS()[b_0 >> 4 & 15]).h5(get_HEX_DIGIT_CHARS()[b_0 & 15]);
283
+ builder.i8(get_HEX_DIGIT_CHARS()[b_0 >> 4 & 15]).i8(get_HEX_DIGIT_CHARS()[b_0 & 15]);
306
284
  }
307
- if (this.t2i_1.m8(toLong(maxPrintableBytes)) > 0) {
308
- builder.h5(_Char___init__impl__6a9atx(8230));
285
+ if (this.d2k_1.x(toLong(maxPrintableBytes)) > 0) {
286
+ builder.i8(_Char___init__impl__6a9atx(8230));
309
287
  }
310
- return 'Buffer(size=' + this.t2i_1.toString() + ' hex=' + builder + ')';
288
+ return 'Buffer(size=' + this.d2k_1.toString() + ' hex=' + builder.toString() + ')';
311
289
  };
312
290
  function buffered(_this__u8e3s4) {
313
291
  return new RealSink(_this__u8e3s4);
314
292
  }
315
293
  function RealSink(sink) {
316
- this.t2j_1 = sink;
317
- this.u2j_1 = false;
318
- this.v2j_1 = new Buffer();
294
+ this.d2l_1 = sink;
295
+ this.e2l_1 = false;
296
+ this.f2l_1 = new Buffer();
319
297
  }
320
- protoOf(RealSink).v2i = function () {
321
- return this.v2j_1;
298
+ protoOf(RealSink).f2k = function () {
299
+ return this.f2l_1;
322
300
  };
323
- protoOf(RealSink).n2j = function (source, byteCount) {
301
+ protoOf(RealSink).x2k = function (source, byteCount) {
324
302
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
325
303
  // Inline function 'kotlin.check' call
326
304
  // Inline function 'kotlin.contracts.contract' call
327
- if (!!this.u2j_1) {
305
+ if (!!this.e2l_1) {
328
306
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
329
307
  var message = 'Sink is closed.';
330
308
  throw IllegalStateException_init_$Create$(toString(message));
331
309
  }
332
310
  // Inline function 'kotlin.require' call
333
311
  // Inline function 'kotlin.contracts.contract' call
334
- if (!(byteCount.m8(new Long(0, 0)) >= 0)) {
312
+ if (!(byteCount.x(new Long(0, 0)) >= 0)) {
335
313
  // Inline function 'kotlinx.io.RealSink.write.<anonymous>' call
336
314
  var message_0 = 'byteCount: ' + byteCount.toString();
337
315
  throw IllegalArgumentException_init_$Create$(toString(message_0));
338
316
  }
339
- this.v2j_1.n2j(source, byteCount);
340
- this.w2i();
317
+ this.f2l_1.x2k(source, byteCount);
318
+ this.g2k();
341
319
  };
342
- protoOf(RealSink).w2i = function () {
320
+ protoOf(RealSink).g2k = function () {
343
321
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
344
322
  // Inline function 'kotlin.check' call
345
323
  // Inline function 'kotlin.contracts.contract' call
346
- if (!!this.u2j_1) {
324
+ if (!!this.e2l_1) {
347
325
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
348
326
  var message = 'Sink is closed.';
349
327
  throw IllegalStateException_init_$Create$(toString(message));
350
328
  }
351
- var byteCount = this.v2j_1.x2i();
352
- if (byteCount.m8(new Long(0, 0)) > 0) {
353
- this.t2j_1.n2j(this.v2j_1, byteCount);
329
+ var byteCount = this.f2l_1.h2k();
330
+ if (byteCount.x(new Long(0, 0)) > 0) {
331
+ this.d2l_1.x2k(this.f2l_1, byteCount);
354
332
  }
355
333
  };
356
- protoOf(RealSink).s2j = function () {
357
- if (this.u2j_1)
334
+ protoOf(RealSink).c2l = function () {
335
+ if (this.e2l_1)
358
336
  return Unit_instance;
359
337
  var thrown = null;
360
338
  try {
361
- if (this.v2j_1.t2i_1.m8(new Long(0, 0)) > 0) {
362
- this.t2j_1.n2j(this.v2j_1, this.v2j_1.t2i_1);
339
+ if (this.f2l_1.d2k_1.x(new Long(0, 0)) > 0) {
340
+ this.d2l_1.x2k(this.f2l_1, this.f2l_1.d2k_1);
363
341
  }
364
342
  } catch ($p) {
365
343
  if ($p instanceof Error) {
@@ -370,7 +348,7 @@
370
348
  }
371
349
  }
372
350
  try {
373
- this.t2j_1.s2j();
351
+ this.d2l_1.c2l();
374
352
  } catch ($p) {
375
353
  if ($p instanceof Error) {
376
354
  var e_0 = $p;
@@ -380,18 +358,18 @@
380
358
  throw $p;
381
359
  }
382
360
  }
383
- this.u2j_1 = true;
361
+ this.e2l_1 = true;
384
362
  if (!(thrown == null))
385
363
  throw thrown;
386
364
  };
387
365
  protoOf(RealSink).toString = function () {
388
- return 'buffered(' + this.t2j_1 + ')';
366
+ return 'buffered(' + toString(this.d2l_1) + ')';
389
367
  };
390
368
  function Segment_init_$Init$($this) {
391
369
  Segment.call($this);
392
- $this.y2i_1 = new Int8Array(8192);
393
- $this.c2j_1 = true;
394
- $this.b2j_1 = false;
370
+ $this.i2k_1 = new Int8Array(8192);
371
+ $this.m2k_1 = true;
372
+ $this.l2k_1 = false;
395
373
  return $this;
396
374
  }
397
375
  function Segment_init_$Create$() {
@@ -399,61 +377,61 @@
399
377
  }
400
378
  function Segment_init_$Init$_0(data, pos, limit, shared, owner, $this) {
401
379
  Segment.call($this);
402
- $this.y2i_1 = data;
403
- $this.z2i_1 = pos;
404
- $this.a2j_1 = limit;
405
- $this.b2j_1 = shared;
406
- $this.c2j_1 = owner;
380
+ $this.i2k_1 = data;
381
+ $this.j2k_1 = pos;
382
+ $this.k2k_1 = limit;
383
+ $this.l2k_1 = shared;
384
+ $this.m2k_1 = owner;
407
385
  return $this;
408
386
  }
409
387
  function Segment_init_$Create$_0(data, pos, limit, shared, owner) {
410
388
  return Segment_init_$Init$_0(data, pos, limit, shared, owner, objectCreate(protoOf(Segment)));
411
389
  }
412
390
  function Companion() {
413
- this.w2j_1 = 8192;
414
- this.x2j_1 = 1024;
391
+ this.g2l_1 = 8192;
392
+ this.h2l_1 = 1024;
415
393
  }
416
394
  var Companion_instance;
417
395
  function Companion_getInstance() {
418
396
  return Companion_instance;
419
397
  }
420
- protoOf(Segment).y2j = function () {
421
- this.b2j_1 = true;
422
- return Segment_init_$Create$_0(this.y2i_1, this.z2i_1, this.a2j_1, true, false);
398
+ protoOf(Segment).i2l = function () {
399
+ this.l2k_1 = true;
400
+ return Segment_init_$Create$_0(this.i2k_1, this.j2k_1, this.k2k_1, true, false);
423
401
  };
424
- protoOf(Segment).g2j = function () {
425
- var result = !(this.d2j_1 === this) ? this.d2j_1 : null;
426
- ensureNotNull(this.e2j_1).d2j_1 = this.d2j_1;
427
- ensureNotNull(this.d2j_1).e2j_1 = this.e2j_1;
428
- this.d2j_1 = null;
429
- this.e2j_1 = null;
402
+ protoOf(Segment).q2k = function () {
403
+ var result = !(this.n2k_1 === this) ? this.n2k_1 : null;
404
+ ensureNotNull(this.o2k_1).n2k_1 = this.n2k_1;
405
+ ensureNotNull(this.n2k_1).o2k_1 = this.o2k_1;
406
+ this.n2k_1 = null;
407
+ this.o2k_1 = null;
430
408
  return result;
431
409
  };
432
- protoOf(Segment).m2j = function (segment) {
433
- segment.e2j_1 = this;
434
- segment.d2j_1 = this.d2j_1;
435
- ensureNotNull(this.d2j_1).e2j_1 = segment;
436
- this.d2j_1 = segment;
410
+ protoOf(Segment).w2k = function (segment) {
411
+ segment.o2k_1 = this;
412
+ segment.n2k_1 = this.n2k_1;
413
+ ensureNotNull(this.n2k_1).o2k_1 = segment;
414
+ this.n2k_1 = segment;
437
415
  return segment;
438
416
  };
439
- protoOf(Segment).o2j = function (byteCount) {
417
+ protoOf(Segment).y2k = function (byteCount) {
440
418
  // Inline function 'kotlin.require' call
441
419
  // Inline function 'kotlin.contracts.contract' call
442
- if (!(byteCount > 0 ? byteCount <= (this.a2j_1 - this.z2i_1 | 0) : false)) {
420
+ if (!(byteCount > 0 && byteCount <= (this.k2k_1 - this.j2k_1 | 0))) {
443
421
  // Inline function 'kotlinx.io.Segment.split.<anonymous>' call
444
422
  var message = 'byteCount out of range';
445
423
  throw IllegalArgumentException_init_$Create$(toString(message));
446
424
  }
447
425
  var prefix;
448
426
  if (byteCount >= 1024) {
449
- prefix = this.y2j();
427
+ prefix = this.i2l();
450
428
  } else {
451
- prefix = SegmentPool_instance.l2j();
429
+ prefix = SegmentPool_instance.v2k();
452
430
  // Inline function 'kotlin.collections.copyInto' call
453
- var this_0 = this.y2i_1;
454
- var destination = prefix.y2i_1;
455
- var startIndex = this.z2i_1;
456
- var endIndex = this.z2i_1 + byteCount | 0;
431
+ var this_0 = this.i2k_1;
432
+ var destination = prefix.i2k_1;
433
+ var startIndex = this.j2k_1;
434
+ var endIndex = this.j2k_1 + byteCount | 0;
457
435
  // Inline function 'kotlin.js.unsafeCast' call
458
436
  // Inline function 'kotlin.js.asDynamic' call
459
437
  var tmp = this_0;
@@ -461,86 +439,86 @@
461
439
  // Inline function 'kotlin.js.asDynamic' call
462
440
  arrayCopy(tmp, destination, 0, startIndex, endIndex);
463
441
  }
464
- prefix.a2j_1 = prefix.z2i_1 + byteCount | 0;
465
- this.z2i_1 = this.z2i_1 + byteCount | 0;
466
- ensureNotNull(this.e2j_1).m2j(prefix);
442
+ prefix.k2k_1 = prefix.j2k_1 + byteCount | 0;
443
+ this.j2k_1 = this.j2k_1 + byteCount | 0;
444
+ ensureNotNull(this.o2k_1).w2k(prefix);
467
445
  return prefix;
468
446
  };
469
- protoOf(Segment).q2j = function () {
447
+ protoOf(Segment).a2l = function () {
470
448
  // Inline function 'kotlin.check' call
471
449
  // Inline function 'kotlin.contracts.contract' call
472
- if (!!(this.e2j_1 === this)) {
450
+ if (!!(this.o2k_1 === this)) {
473
451
  // Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
474
452
  var message = 'cannot compact';
475
453
  throw IllegalStateException_init_$Create$(toString(message));
476
454
  }
477
- if (!ensureNotNull(this.e2j_1).c2j_1)
455
+ if (!ensureNotNull(this.o2k_1).m2k_1)
478
456
  return Unit_instance;
479
- var byteCount = this.a2j_1 - this.z2i_1 | 0;
480
- var availableByteCount = (8192 - ensureNotNull(this.e2j_1).a2j_1 | 0) + (ensureNotNull(this.e2j_1).b2j_1 ? 0 : ensureNotNull(this.e2j_1).z2i_1) | 0;
457
+ var byteCount = this.k2k_1 - this.j2k_1 | 0;
458
+ var availableByteCount = (8192 - ensureNotNull(this.o2k_1).k2k_1 | 0) + (ensureNotNull(this.o2k_1).l2k_1 ? 0 : ensureNotNull(this.o2k_1).j2k_1) | 0;
481
459
  if (byteCount > availableByteCount)
482
460
  return Unit_instance;
483
- this.p2j(ensureNotNull(this.e2j_1), byteCount);
484
- this.g2j();
485
- SegmentPool_instance.j2j(this);
461
+ this.z2k(ensureNotNull(this.o2k_1), byteCount);
462
+ this.q2k();
463
+ SegmentPool_instance.t2k(this);
486
464
  };
487
- protoOf(Segment).p2j = function (sink, byteCount) {
465
+ protoOf(Segment).z2k = function (sink, byteCount) {
488
466
  // Inline function 'kotlin.check' call
489
467
  // Inline function 'kotlin.contracts.contract' call
490
- if (!sink.c2j_1) {
468
+ if (!sink.m2k_1) {
491
469
  // Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
492
470
  var message = 'only owner can write';
493
471
  throw IllegalStateException_init_$Create$(toString(message));
494
472
  }
495
- if ((sink.a2j_1 + byteCount | 0) > 8192) {
496
- if (sink.b2j_1)
473
+ if ((sink.k2k_1 + byteCount | 0) > 8192) {
474
+ if (sink.l2k_1)
497
475
  throw IllegalArgumentException_init_$Create$_0();
498
- if (((sink.a2j_1 + byteCount | 0) - sink.z2i_1 | 0) > 8192)
476
+ if (((sink.k2k_1 + byteCount | 0) - sink.j2k_1 | 0) > 8192)
499
477
  throw IllegalArgumentException_init_$Create$_0();
500
478
  // Inline function 'kotlin.collections.copyInto' call
501
- var this_0 = sink.y2i_1;
502
- var destination = sink.y2i_1;
503
- var startIndex = sink.z2i_1;
504
- var endIndex = sink.a2j_1;
479
+ var this_0 = sink.i2k_1;
480
+ var destination = sink.i2k_1;
481
+ var startIndex = sink.j2k_1;
482
+ var endIndex = sink.k2k_1;
505
483
  // Inline function 'kotlin.js.unsafeCast' call
506
484
  // Inline function 'kotlin.js.asDynamic' call
507
485
  var tmp = this_0;
508
486
  // Inline function 'kotlin.js.unsafeCast' call
509
487
  // Inline function 'kotlin.js.asDynamic' call
510
488
  arrayCopy(tmp, destination, 0, startIndex, endIndex);
511
- sink.a2j_1 = sink.a2j_1 - sink.z2i_1 | 0;
512
- sink.z2i_1 = 0;
489
+ sink.k2k_1 = sink.k2k_1 - sink.j2k_1 | 0;
490
+ sink.j2k_1 = 0;
513
491
  }
514
492
  // Inline function 'kotlin.collections.copyInto' call
515
- var this_1 = this.y2i_1;
516
- var destination_0 = sink.y2i_1;
517
- var destinationOffset = sink.a2j_1;
518
- var startIndex_0 = this.z2i_1;
519
- var endIndex_0 = this.z2i_1 + byteCount | 0;
493
+ var this_1 = this.i2k_1;
494
+ var destination_0 = sink.i2k_1;
495
+ var destinationOffset = sink.k2k_1;
496
+ var startIndex_0 = this.j2k_1;
497
+ var endIndex_0 = this.j2k_1 + byteCount | 0;
520
498
  // Inline function 'kotlin.js.unsafeCast' call
521
499
  // Inline function 'kotlin.js.asDynamic' call
522
500
  var tmp_0 = this_1;
523
501
  // Inline function 'kotlin.js.unsafeCast' call
524
502
  // Inline function 'kotlin.js.asDynamic' call
525
503
  arrayCopy(tmp_0, destination_0, destinationOffset, startIndex_0, endIndex_0);
526
- sink.a2j_1 = sink.a2j_1 + byteCount | 0;
527
- this.z2i_1 = this.z2i_1 + byteCount | 0;
504
+ sink.k2k_1 = sink.k2k_1 + byteCount | 0;
505
+ this.j2k_1 = this.j2k_1 + byteCount | 0;
528
506
  };
529
507
  function Segment() {
530
- this.z2i_1 = 0;
531
- this.a2j_1 = 0;
532
- this.b2j_1 = false;
533
- this.c2j_1 = false;
534
- this.d2j_1 = null;
535
- this.e2j_1 = null;
508
+ this.j2k_1 = 0;
509
+ this.k2k_1 = 0;
510
+ this.l2k_1 = false;
511
+ this.m2k_1 = false;
512
+ this.n2k_1 = null;
513
+ this.o2k_1 = null;
536
514
  }
537
515
  function writeString(_this__u8e3s4, string, startIndex, endIndex) {
538
516
  startIndex = startIndex === VOID ? 0 : startIndex;
539
517
  endIndex = endIndex === VOID ? string.length : endIndex;
540
518
  // Inline function 'kotlinx.io.writeString.<anonymous>' call
541
- var it = _this__u8e3s4.v2i();
519
+ var it = _this__u8e3s4.f2k();
542
520
  commonWriteUtf8(it, string, startIndex, endIndex);
543
- _this__u8e3s4.w2i();
521
+ _this__u8e3s4.g2k();
544
522
  return Unit_instance;
545
523
  }
546
524
  function commonWriteUtf8(_this__u8e3s4, string, beginIndex, endIndex) {
@@ -553,9 +531,9 @@
553
531
  var this_0 = charSequenceGet(string, i);
554
532
  var c = Char__toInt_impl_vasixd(this_0);
555
533
  if (c < 128) {
556
- var tail = _this__u8e3s4.k2j(1);
557
- var data = tail.y2i_1;
558
- var segmentOffset = tail.a2j_1 - i | 0;
534
+ var tail = _this__u8e3s4.u2k(1);
535
+ var data = tail.i2k_1;
536
+ var segmentOffset = tail.k2k_1 - i | 0;
559
537
  // Inline function 'kotlin.comparisons.minOf' call
560
538
  var b = 8192 - segmentOffset | 0;
561
539
  var runLimit = Math.min(endIndex, b);
@@ -572,23 +550,23 @@
572
550
  i = tmp1 + 1 | 0;
573
551
  data[segmentOffset + tmp1 | 0] = toByte(c);
574
552
  }
575
- var runSize = (i + segmentOffset | 0) - tail.a2j_1 | 0;
576
- tail.a2j_1 = tail.a2j_1 + runSize | 0;
577
- _this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(toLong(runSize));
553
+ var runSize = (i + segmentOffset | 0) - tail.k2k_1 | 0;
554
+ tail.k2k_1 = tail.k2k_1 + runSize | 0;
555
+ _this__u8e3s4.d2k_1 = _this__u8e3s4.d2k_1.v2(toLong(runSize));
578
556
  } else if (c < 2048) {
579
- var tail_0 = _this__u8e3s4.k2j(2);
580
- tail_0.y2i_1[tail_0.a2j_1] = toByte(c >> 6 | 192);
581
- tail_0.y2i_1[tail_0.a2j_1 + 1 | 0] = toByte(c & 63 | 128);
582
- tail_0.a2j_1 = tail_0.a2j_1 + 2 | 0;
583
- _this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(new Long(2, 0));
557
+ var tail_0 = _this__u8e3s4.u2k(2);
558
+ tail_0.i2k_1[tail_0.k2k_1] = toByte(c >> 6 | 192);
559
+ tail_0.i2k_1[tail_0.k2k_1 + 1 | 0] = toByte(c & 63 | 128);
560
+ tail_0.k2k_1 = tail_0.k2k_1 + 2 | 0;
561
+ _this__u8e3s4.d2k_1 = _this__u8e3s4.d2k_1.v2(new Long(2, 0));
584
562
  i = i + 1 | 0;
585
- } else if (c < 55296 ? true : c > 57343) {
586
- var tail_1 = _this__u8e3s4.k2j(3);
587
- tail_1.y2i_1[tail_1.a2j_1] = toByte(c >> 12 | 224);
588
- tail_1.y2i_1[tail_1.a2j_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
589
- tail_1.y2i_1[tail_1.a2j_1 + 2 | 0] = toByte(c & 63 | 128);
590
- tail_1.a2j_1 = tail_1.a2j_1 + 3 | 0;
591
- _this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(new Long(3, 0));
563
+ } else if (c < 55296 || c > 57343) {
564
+ var tail_1 = _this__u8e3s4.u2k(3);
565
+ tail_1.i2k_1[tail_1.k2k_1] = toByte(c >> 12 | 224);
566
+ tail_1.i2k_1[tail_1.k2k_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
567
+ tail_1.i2k_1[tail_1.k2k_1 + 2 | 0] = toByte(c & 63 | 128);
568
+ tail_1.k2k_1 = tail_1.k2k_1 + 3 | 0;
569
+ _this__u8e3s4.d2k_1 = _this__u8e3s4.d2k_1.v2(new Long(3, 0));
592
570
  i = i + 1 | 0;
593
571
  } else {
594
572
  var tmp;
@@ -600,18 +578,18 @@
600
578
  tmp = 0;
601
579
  }
602
580
  var low = tmp;
603
- if (c > 56319 ? true : !(56320 <= low ? low <= 57343 : false)) {
604
- _this__u8e3s4.r2j(63);
581
+ if (c > 56319 || !(56320 <= low ? low <= 57343 : false)) {
582
+ _this__u8e3s4.b2l(63);
605
583
  i = i + 1 | 0;
606
584
  } else {
607
585
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
608
- var tail_2 = _this__u8e3s4.k2j(4);
609
- tail_2.y2i_1[tail_2.a2j_1] = toByte(codePoint >> 18 | 240);
610
- tail_2.y2i_1[tail_2.a2j_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
611
- tail_2.y2i_1[tail_2.a2j_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
612
- tail_2.y2i_1[tail_2.a2j_1 + 3 | 0] = toByte(codePoint & 63 | 128);
613
- tail_2.a2j_1 = tail_2.a2j_1 + 4 | 0;
614
- _this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(new Long(4, 0));
586
+ var tail_2 = _this__u8e3s4.u2k(4);
587
+ tail_2.i2k_1[tail_2.k2k_1] = toByte(codePoint >> 18 | 240);
588
+ tail_2.i2k_1[tail_2.k2k_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
589
+ tail_2.i2k_1[tail_2.k2k_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
590
+ tail_2.i2k_1[tail_2.k2k_1 + 3 | 0] = toByte(codePoint & 63 | 128);
591
+ tail_2.k2k_1 = tail_2.k2k_1 + 4 | 0;
592
+ _this__u8e3s4.d2k_1 = _this__u8e3s4.d2k_1.v2(new Long(4, 0));
615
593
  i = i + 2 | 0;
616
594
  }
617
595
  }
@@ -625,18 +603,10 @@
625
603
  isRegularFile = isRegularFile === VOID ? false : isRegularFile;
626
604
  isDirectory = isDirectory === VOID ? false : isDirectory;
627
605
  size = size === VOID ? new Long(0, 0) : size;
628
- this.f2k_1 = isRegularFile;
629
- this.g2k_1 = isDirectory;
630
- this.h2k_1 = size;
631
- }
632
- function get_UnixPathSeparator() {
633
- return UnixPathSeparator;
634
- }
635
- var UnixPathSeparator;
636
- function get_WindowsPathSeparator() {
637
- return WindowsPathSeparator;
606
+ this.p2l_1 = isRegularFile;
607
+ this.q2l_1 = isDirectory;
608
+ this.r2l_1 = size;
638
609
  }
639
- var WindowsPathSeparator;
640
610
  function removeTrailingSeparators(path, isWindows_) {
641
611
  isWindows_ = isWindows_ === VOID ? get_isWindows() : isWindows_;
642
612
  if (isWindows_) {
@@ -662,9 +632,9 @@
662
632
  function isUnc(path) {
663
633
  if (path.length < 2)
664
634
  return false;
665
- if (startsWith(path, toString_0(get_WindowsPathSeparator()) + toString_0(get_WindowsPathSeparator())))
635
+ if (startsWith(path, '\\\\'))
666
636
  return true;
667
- if (startsWith(path, toString_0(get_UnixPathSeparator()) + toString_0(get_UnixPathSeparator())))
637
+ if (startsWith(path, '//'))
668
638
  return true;
669
639
  return false;
670
640
  }
@@ -681,7 +651,7 @@
681
651
  var idx = path.length;
682
652
  $l$loop: while (idx > suffixLength) {
683
653
  var c = charSequenceGet(path, idx - 1 | 0);
684
- if (!(c === get_WindowsPathSeparator()) ? !(c === get_UnixPathSeparator()) : false)
654
+ if (!(c === _Char___init__impl__6a9atx(92)) && !(c === _Char___init__impl__6a9atx(47)))
685
655
  break $l$loop;
686
656
  idx = idx - 1 | 0;
687
657
  }
@@ -692,7 +662,7 @@
692
662
  }
693
663
  function removeTrailingSeparatorsUnix(path) {
694
664
  var idx = path.length;
695
- while (idx > 1 ? charSequenceGet(path, idx - 1 | 0) === get_UnixPathSeparator() : false) {
665
+ while (idx > 1 && charSequenceGet(path, idx - 1 | 0) === _Char___init__impl__6a9atx(47)) {
696
666
  idx = idx - 1 | 0;
697
667
  }
698
668
  // Inline function 'kotlin.text.substring' call
@@ -707,7 +677,7 @@
707
677
  var this_0 = StringBuilder_init_$Create$_0();
708
678
  // Inline function 'kotlin.contracts.contract' call
709
679
  // Inline function 'kotlinx.io.files.Path.<anonymous>' call
710
- this_0.g5(base);
680
+ this_0.h8(base);
711
681
  // Inline function 'kotlin.collections.forEach' call
712
682
  var inductionVariable = 0;
713
683
  var last = parts.length;
@@ -723,9 +693,9 @@
723
693
  tmp = false;
724
694
  }
725
695
  if (tmp) {
726
- this_0.h5(get_SystemPathSeparator());
696
+ this_0.i8(get_SystemPathSeparator());
727
697
  }
728
- this_0.g5(element);
698
+ this_0.h8(element);
729
699
  }
730
700
  var tmp$ret$2 = this_0.toString();
731
701
  return Path_1(tmp$ret$2);
@@ -766,13 +736,13 @@
766
736
  captureStack(this, EOFException);
767
737
  }
768
738
  function SegmentPool() {
769
- this.h2j_1 = 0;
770
- this.i2j_1 = 0;
739
+ this.r2k_1 = 0;
740
+ this.s2k_1 = 0;
771
741
  }
772
- protoOf(SegmentPool).l2j = function () {
742
+ protoOf(SegmentPool).v2k = function () {
773
743
  return Segment_init_$Create$();
774
744
  };
775
- protoOf(SegmentPool).j2j = function (segment) {
745
+ protoOf(SegmentPool).t2k = function (segment) {
776
746
  };
777
747
  var SegmentPool_instance;
778
748
  function SegmentPool_getInstance() {
@@ -808,7 +778,7 @@
808
778
  function SystemFileSystem$1() {
809
779
  SystemFileSystemImpl.call(this);
810
780
  }
811
- protoOf(SystemFileSystem$1).z2j = function (path) {
781
+ protoOf(SystemFileSystem$1).j2l = function (path) {
812
782
  // Inline function 'kotlin.check' call
813
783
  // Inline function 'kotlin.contracts.contract' call
814
784
  if (!(get_fs() !== null)) {
@@ -816,10 +786,10 @@
816
786
  var message = "Module 'fs' was not found";
817
787
  throw IllegalStateException_init_$Create$(toString(message));
818
788
  }
819
- var tmp = get_fs().existsSync(path.i2k_1);
789
+ var tmp = get_fs().existsSync(path.s2l_1);
820
790
  return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
821
791
  };
822
- protoOf(SystemFileSystem$1).a2k = function (path, mustExist) {
792
+ protoOf(SystemFileSystem$1).k2l = function (path, mustExist) {
823
793
  // Inline function 'kotlin.check' call
824
794
  // Inline function 'kotlin.contracts.contract' call
825
795
  if (!(get_fs() !== null)) {
@@ -827,56 +797,56 @@
827
797
  var message = "Module 'fs' was not found";
828
798
  throw IllegalStateException_init_$Create$(toString(message));
829
799
  }
830
- if (!this.z2j(path)) {
800
+ if (!this.j2l(path)) {
831
801
  if (mustExist) {
832
- throw new FileNotFoundException('File does not exist: ' + path.i2k_1);
802
+ throw new FileNotFoundException('File does not exist: ' + path.s2l_1);
833
803
  }
834
804
  return Unit_instance;
835
805
  }
836
806
  try {
837
- var stats = get_fs().statSync(path.i2k_1);
807
+ var stats = get_fs().statSync(path.s2l_1);
838
808
  var tmp = stats.isDirectory();
839
809
  if ((!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE()) {
840
- get_fs().rmdirSync(path.i2k_1);
810
+ get_fs().rmdirSync(path.s2l_1);
841
811
  } else {
842
- get_fs().rmSync(path.i2k_1);
812
+ get_fs().rmSync(path.s2l_1);
843
813
  }
844
814
  } catch ($p) {
845
815
  if ($p instanceof Error) {
846
816
  var t = $p;
847
- throw new IOException('Delete failed for ' + path, t);
817
+ throw new IOException('Delete failed for ' + path.toString(), t);
848
818
  } else {
849
819
  throw $p;
850
820
  }
851
821
  }
852
822
  };
853
- protoOf(SystemFileSystem$1).c2k = function (path, mustCreate) {
854
- var metadata = this.j2k(path);
823
+ protoOf(SystemFileSystem$1).m2l = function (path, mustCreate) {
824
+ var metadata = this.t2l(path);
855
825
  if (!(metadata == null)) {
856
826
  if (mustCreate) {
857
- throw IOException_init_$Create$('Path already exists: ' + path);
827
+ throw IOException_init_$Create$('Path already exists: ' + path.toString());
858
828
  }
859
- if (metadata.f2k_1) {
860
- throw IOException_init_$Create$("Path already exists and it's a file: " + path);
829
+ if (metadata.p2l_1) {
830
+ throw IOException_init_$Create$("Path already exists and it's a file: " + path.toString());
861
831
  }
862
832
  return Unit_instance;
863
833
  }
864
834
  // Inline function 'kotlin.collections.arrayListOf' call
865
835
  var parts = ArrayList_init_$Create$();
866
836
  var p = path;
867
- while (!(p == null) ? !this.z2j(p) : false) {
868
- parts.s(p.toString());
869
- p = p.bl();
837
+ while (!(p == null) && !this.j2l(p)) {
838
+ parts.e(p.toString());
839
+ p = p.dm();
870
840
  }
871
841
  // Inline function 'kotlin.collections.forEach' call
872
- var tmp0_iterator = asReversed(parts).v();
873
- while (tmp0_iterator.w()) {
874
- var element = tmp0_iterator.y();
842
+ var tmp0_iterator = asReversed(parts).j();
843
+ while (tmp0_iterator.k()) {
844
+ var element = tmp0_iterator.l();
875
845
  // Inline function 'kotlinx.io.files.<no name provided>.createDirectories.<anonymous>' call
876
846
  get_fs().mkdirSync(element);
877
847
  }
878
848
  };
879
- protoOf(SystemFileSystem$1).j2k = function (path) {
849
+ protoOf(SystemFileSystem$1).t2l = function (path) {
880
850
  // Inline function 'kotlin.check' call
881
851
  // Inline function 'kotlin.contracts.contract' call
882
852
  if (!(get_fs() !== null)) {
@@ -886,7 +856,7 @@
886
856
  }
887
857
  var tmp;
888
858
  try {
889
- var stat = get_fs().statSync(path.i2k_1);
859
+ var stat = get_fs().statSync(path.s2l_1);
890
860
  var tmp_0 = stat.mode;
891
861
  var mode = (!(tmp_0 == null) ? typeof tmp_0 === 'number' : false) ? tmp_0 : THROW_CCE();
892
862
  var tmp_1 = get_fs().constants.S_IFMT;
@@ -905,8 +875,8 @@
905
875
  var tmp_6;
906
876
  if ($p instanceof Error) {
907
877
  var t = $p;
908
- if (this.z2j(path))
909
- throw new IOException('Stat failed for ' + path, t);
878
+ if (this.j2l(path))
879
+ throw new IOException('Stat failed for ' + path.toString(), t);
910
880
  return null;
911
881
  } else {
912
882
  throw $p;
@@ -914,7 +884,7 @@
914
884
  }
915
885
  return tmp;
916
886
  };
917
- protoOf(SystemFileSystem$1).e2k = function (path, append) {
887
+ protoOf(SystemFileSystem$1).o2l = function (path, append) {
918
888
  // Inline function 'kotlin.check' call
919
889
  // Inline function 'kotlin.contracts.contract' call
920
890
  if (!(get_fs() !== null)) {
@@ -944,13 +914,13 @@
944
914
  // Inline function 'kotlin.getValue' call
945
915
  var this_0 = SystemPathSeparator$delegate;
946
916
  SystemPathSeparator$factory();
947
- return this_0.o2().w8_1;
917
+ return this_0.e2().e1_1;
948
918
  }
949
919
  var SystemPathSeparator$delegate;
950
920
  function Path_0(rawPath, any) {
951
- this.i2k_1 = removeTrailingSeparators(rawPath);
921
+ this.s2l_1 = removeTrailingSeparators(rawPath);
952
922
  }
953
- protoOf(Path_0).bl = function () {
923
+ protoOf(Path_0).dm = function () {
954
924
  // Inline function 'kotlin.check' call
955
925
  // Inline function 'kotlin.contracts.contract' call
956
926
  if (!(get_pathLib() !== null)) {
@@ -959,25 +929,25 @@
959
929
  throw IllegalStateException_init_$Create$(toString(message));
960
930
  }
961
931
  // Inline function 'kotlin.text.isEmpty' call
962
- var this_0 = this.i2k_1;
932
+ var this_0 = this.s2l_1;
963
933
  if (charSequenceLength(this_0) === 0)
964
934
  return null;
965
935
  if (get_isWindows()) {
966
- if (!contains(this.i2k_1, get_UnixPathSeparator()) ? !contains(this.i2k_1, get_WindowsPathSeparator()) : false) {
936
+ if (!contains(this.s2l_1, _Char___init__impl__6a9atx(47)) && !contains(this.s2l_1, _Char___init__impl__6a9atx(92))) {
967
937
  return null;
968
938
  }
969
- } else if (!contains(this.i2k_1, get_SystemPathSeparator())) {
939
+ } else if (!contains(this.s2l_1, get_SystemPathSeparator())) {
970
940
  return null;
971
941
  }
972
- var tmp = get_pathLib().dirname(this.i2k_1);
942
+ var tmp = get_pathLib().dirname(this.s2l_1);
973
943
  var p = (tmp == null ? true : typeof tmp === 'string') ? tmp : THROW_CCE();
974
944
  var tmp_0;
975
945
  // Inline function 'kotlin.text.isNullOrEmpty' call
976
946
  // Inline function 'kotlin.contracts.contract' call
977
- if (p == null ? true : charSequenceLength(p) === 0) {
947
+ if (p == null || charSequenceLength(p) === 0) {
978
948
  tmp_0 = null;
979
949
  } else {
980
- if (p === this.i2k_1) {
950
+ if (p === this.s2l_1) {
981
951
  tmp_0 = null;
982
952
  } else {
983
953
  tmp_0 = Path_1(p);
@@ -986,45 +956,45 @@
986
956
  return tmp_0;
987
957
  };
988
958
  protoOf(Path_0).toString = function () {
989
- return this.i2k_1;
959
+ return this.s2l_1;
990
960
  };
991
961
  protoOf(Path_0).equals = function (other) {
992
962
  if (this === other)
993
963
  return true;
994
964
  if (!(other instanceof Path_0))
995
965
  return false;
996
- return this.i2k_1 === other.i2k_1;
966
+ return this.s2l_1 === other.s2l_1;
997
967
  };
998
968
  protoOf(Path_0).hashCode = function () {
999
- return getStringHashCode(this.i2k_1);
969
+ return getStringHashCode(this.s2l_1);
1000
970
  };
1001
971
  function open($this, path, append) {
1002
972
  var flags = append ? 'a' : 'w';
1003
973
  var tmp;
1004
974
  try {
1005
- tmp = get_fs().openSync(path.i2k_1, flags);
975
+ tmp = get_fs().openSync(path.s2l_1, flags);
1006
976
  } catch ($p) {
1007
977
  var tmp_0;
1008
978
  if ($p instanceof Error) {
1009
979
  var e = $p;
1010
- throw new IOException('Failed to open a file ' + path.i2k_1 + '.', e);
980
+ throw new IOException('Failed to open a file ' + path.s2l_1 + '.', e);
1011
981
  } else {
1012
982
  throw $p;
1013
983
  }
1014
984
  }
1015
985
  var fd = tmp;
1016
986
  if (fd < 0)
1017
- throw IOException_init_$Create$('Failed to open a file ' + path.i2k_1 + '.');
987
+ throw IOException_init_$Create$('Failed to open a file ' + path.s2l_1 + '.');
1018
988
  return fd;
1019
989
  }
1020
990
  function FileSink(path, append) {
1021
- this.k2k_1 = false;
1022
- this.l2k_1 = open(this, path, append);
991
+ this.u2l_1 = false;
992
+ this.v2l_1 = open(this, path, append);
1023
993
  }
1024
- protoOf(FileSink).n2j = function (source, byteCount) {
994
+ protoOf(FileSink).x2k = function (source, byteCount) {
1025
995
  // Inline function 'kotlin.check' call
1026
996
  // Inline function 'kotlin.contracts.contract' call
1027
- if (!!this.k2k_1) {
997
+ if (!!this.u2l_1) {
1028
998
  // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
1029
999
  var message = 'Sink is closed.';
1030
1000
  throw IllegalStateException_init_$Create$(toString(message));
@@ -1033,15 +1003,15 @@
1033
1003
  return Unit_instance;
1034
1004
  }
1035
1005
  // Inline function 'kotlin.comparisons.minOf' call
1036
- var b = source.t2i_1;
1037
- var remainingBytes = byteCount.m8(b) <= 0 ? byteCount : b;
1038
- while (remainingBytes.m8(new Long(0, 0)) > 0) {
1039
- var head = ensureNotNull(source.s2i_1);
1040
- var segmentBytes = head.a2j_1 - head.z2i_1 | 0;
1006
+ var b = source.d2k_1;
1007
+ var remainingBytes = byteCount.x(b) <= 0 ? byteCount : b;
1008
+ while (remainingBytes.x(new Long(0, 0)) > 0) {
1009
+ var head = ensureNotNull(source.c2k_1);
1010
+ var segmentBytes = head.k2k_1 - head.j2k_1 | 0;
1041
1011
  var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
1042
- buf.fill(head.y2i_1, head.z2i_1, segmentBytes);
1012
+ buf.fill(head.i2k_1, head.j2k_1, segmentBytes);
1043
1013
  try {
1044
- get_fs().writeFileSync(this.l2k_1, buf);
1014
+ get_fs().writeFileSync(this.v2l_1, buf);
1045
1015
  } catch ($p) {
1046
1016
  if ($p instanceof Error) {
1047
1017
  var e = $p;
@@ -1050,15 +1020,15 @@
1050
1020
  throw $p;
1051
1021
  }
1052
1022
  }
1053
- source.f2j(toLong(segmentBytes));
1023
+ source.p2k(toLong(segmentBytes));
1054
1024
  // Inline function 'kotlin.Long.minus' call
1055
- remainingBytes = remainingBytes.r9(toLong(segmentBytes));
1025
+ remainingBytes = remainingBytes.w2(toLong(segmentBytes));
1056
1026
  }
1057
1027
  };
1058
- protoOf(FileSink).s2j = function () {
1059
- if (!this.k2k_1) {
1060
- this.k2k_1 = true;
1061
- get_fs().closeSync(this.l2k_1);
1028
+ protoOf(FileSink).c2l = function () {
1029
+ if (!this.u2l_1) {
1030
+ this.u2l_1 = true;
1031
+ get_fs().closeSync(this.v2l_1);
1062
1032
  }
1063
1033
  };
1064
1034
  function Path_1(path) {
@@ -1164,13 +1134,11 @@
1164
1134
  return tmp;
1165
1135
  }
1166
1136
  //region block: post-declaration
1167
- protoOf(SystemFileSystemImpl).b2k = delete$default;
1168
- protoOf(SystemFileSystemImpl).d2k = createDirectories$default;
1137
+ protoOf(SystemFileSystemImpl).l2l = delete$default;
1138
+ protoOf(SystemFileSystemImpl).n2l = createDirectories$default;
1169
1139
  //endregion
1170
1140
  //region block: init
1171
1141
  Companion_instance = new Companion();
1172
- UnixPathSeparator = _Char___init__impl__6a9atx(47);
1173
- WindowsPathSeparator = _Char___init__impl__6a9atx(92);
1174
1142
  SegmentPool_instance = new SegmentPool();
1175
1143
  //endregion
1176
1144
  //region block: exports