client_plugin_logic_deb 1.8.350 → 1.8.352
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.
- package/Kosi-Kaverit-kaverit.js +70 -70
- package/Kosi-Kodein-kodein-di.js +562 -562
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1591 -1591
- package/Logic_Debertz-client_plugin.d.ts +4 -4
- package/Logic_Debertz-client_plugin.js +3728 -3559
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1749 -1749
- package/Logic_Debertz-engine.js +17906 -17818
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +10885 -10041
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1131 -1130
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +343 -330
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +2652 -1686
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +338 -338
- package/kotlinx-serialization-kotlinx-serialization-core.js +1915 -1915
- package/kotlinx-serialization-kotlinx-serialization-json.js +1428 -1428
- package/ktor-ktor-client-content-negotiation.js +157 -157
- package/ktor-ktor-client-core.js +1623 -1623
- package/ktor-ktor-client-logging.js +318 -318
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http.js +683 -683
- package/ktor-ktor-io.js +1301 -1301
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +169 -169
- package/ktor-ktor-serialization.js +85 -85
- package/ktor-ktor-utils.js +560 -560
- package/ktor-ktor-websockets.js +56 -56
- package/package.json +1 -1
- package/random-library-crypto-rand.js +11 -11
- package/random-library-secure-random.js +6 -6
- package/raspberry-cardgame-lib-core.js +225 -225
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +13 -13
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +870 -870
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +26 -26
|
@@ -14,47 +14,47 @@
|
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
17
|
-
var Long = kotlin_kotlin.$_$.
|
|
17
|
+
var Long = kotlin_kotlin.$_$.ng;
|
|
18
18
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
19
19
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p2;
|
|
20
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
21
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
+
var charArrayOf = kotlin_kotlin.$_$.eb;
|
|
21
|
+
var protoOf = kotlin_kotlin.$_$.uc;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
23
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
24
|
-
var toLong = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
23
|
+
var ensureNotNull = kotlin_kotlin.$_$.kh;
|
|
24
|
+
var toLong = kotlin_kotlin.$_$.wc;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
26
26
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
27
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
27
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
28
28
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
29
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
30
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
31
|
-
var arrayCopy = kotlin_kotlin.$_$.
|
|
29
|
+
var objectCreate = kotlin_kotlin.$_$.tc;
|
|
30
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
31
|
+
var arrayCopy = kotlin_kotlin.$_$.c6;
|
|
32
32
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.n1;
|
|
33
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
33
|
+
var initMetadataForObject = kotlin_kotlin.$_$.yb;
|
|
34
34
|
var VOID = kotlin_kotlin.$_$.f;
|
|
35
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
35
|
+
var charCodeAt = kotlin_kotlin.$_$.gb;
|
|
36
36
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.v2;
|
|
37
|
-
var toByte = kotlin_kotlin.$_$.
|
|
38
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
37
|
+
var toByte = kotlin_kotlin.$_$.vc;
|
|
38
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
39
39
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.d1;
|
|
40
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
41
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
42
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
43
|
-
var substring = kotlin_kotlin.$_$.
|
|
40
|
+
var charSequenceLength = kotlin_kotlin.$_$.ib;
|
|
41
|
+
var endsWith = kotlin_kotlin.$_$.be;
|
|
42
|
+
var startsWith = kotlin_kotlin.$_$.ze;
|
|
43
|
+
var substring = kotlin_kotlin.$_$.ef;
|
|
44
44
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.i1;
|
|
45
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
45
|
+
var captureStack = kotlin_kotlin.$_$.db;
|
|
46
46
|
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.j1;
|
|
47
47
|
var Exception_init_$Init$_1 = kotlin_kotlin.$_$.k1;
|
|
48
|
-
var Exception = kotlin_kotlin.$_$.
|
|
49
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
50
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
48
|
+
var Exception = kotlin_kotlin.$_$.kg;
|
|
49
|
+
var KProperty0 = kotlin_kotlin.$_$.nd;
|
|
50
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
|
|
51
51
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.h2;
|
|
52
|
-
var lazy = kotlin_kotlin.$_$.
|
|
52
|
+
var lazy = kotlin_kotlin.$_$.qh;
|
|
53
53
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
54
|
-
var asReversed = kotlin_kotlin.$_$.
|
|
55
|
-
var contains = kotlin_kotlin.$_$.
|
|
56
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
57
|
-
var Char = kotlin_kotlin.$_$.
|
|
54
|
+
var asReversed = kotlin_kotlin.$_$.e6;
|
|
55
|
+
var contains = kotlin_kotlin.$_$.yd;
|
|
56
|
+
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
57
|
+
var Char = kotlin_kotlin.$_$.dg;
|
|
58
58
|
//endregion
|
|
59
59
|
//region block: pre-declaration
|
|
60
60
|
initMetadataForClass(Buffer, 'Buffer', Buffer);
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
mustExist = mustExist === VOID ? true : mustExist;
|
|
68
68
|
var tmp;
|
|
69
69
|
if ($super === VOID) {
|
|
70
|
-
this.
|
|
70
|
+
this.d6k(path, mustExist);
|
|
71
71
|
tmp = Unit_instance;
|
|
72
72
|
} else {
|
|
73
|
-
tmp = $super.
|
|
73
|
+
tmp = $super.d6k.call(this, path, mustExist);
|
|
74
74
|
}
|
|
75
75
|
return tmp;
|
|
76
76
|
}
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
79
79
|
var tmp;
|
|
80
80
|
if ($super === VOID) {
|
|
81
|
-
this.
|
|
81
|
+
this.f6k(path, mustCreate);
|
|
82
82
|
tmp = Unit_instance;
|
|
83
83
|
} else {
|
|
84
|
-
tmp = $super.
|
|
84
|
+
tmp = $super.f6k.call(this, path, mustCreate);
|
|
85
85
|
}
|
|
86
86
|
return tmp;
|
|
87
87
|
}
|
|
@@ -129,33 +129,33 @@
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function Buffer() {
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
132
|
+
this.c6i_1 = null;
|
|
133
|
+
this.d6i_1 = null;
|
|
134
|
+
this.e6i_1 = new Long(0, 0);
|
|
135
135
|
}
|
|
136
136
|
protoOf(Buffer).m = function () {
|
|
137
|
-
return this.
|
|
137
|
+
return this.e6i_1;
|
|
138
138
|
};
|
|
139
|
-
protoOf(Buffer).
|
|
139
|
+
protoOf(Buffer).f6i = function () {
|
|
140
140
|
return this;
|
|
141
141
|
};
|
|
142
|
-
protoOf(Buffer).
|
|
142
|
+
protoOf(Buffer).g6i = function () {
|
|
143
143
|
return this.m().equals(new Long(0, 0));
|
|
144
144
|
};
|
|
145
|
-
protoOf(Buffer).
|
|
145
|
+
protoOf(Buffer).h6i = function () {
|
|
146
146
|
return Unit_instance;
|
|
147
147
|
};
|
|
148
|
-
protoOf(Buffer).
|
|
148
|
+
protoOf(Buffer).i6i = function () {
|
|
149
149
|
var result = this.m();
|
|
150
150
|
if (result.equals(new Long(0, 0)))
|
|
151
151
|
return new Long(0, 0);
|
|
152
|
-
var tail = ensureNotNull(this.
|
|
153
|
-
if (tail.
|
|
154
|
-
result = result.a3(toLong(tail.
|
|
152
|
+
var tail = ensureNotNull(this.d6i_1);
|
|
153
|
+
if (tail.l6i_1 < 8192 && tail.n6i_1) {
|
|
154
|
+
result = result.a3(toLong(tail.l6i_1 - tail.k6i_1 | 0));
|
|
155
155
|
}
|
|
156
156
|
return result;
|
|
157
157
|
};
|
|
158
|
-
protoOf(Buffer).
|
|
158
|
+
protoOf(Buffer).q6i = function (byteCount) {
|
|
159
159
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
160
160
|
// Inline function 'kotlin.require' call
|
|
161
161
|
if (!(byteCount.z(new Long(0, 0)) >= 0)) {
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
}
|
|
165
165
|
var remainingByteCount = byteCount;
|
|
166
166
|
while (remainingByteCount.z(new Long(0, 0)) > 0) {
|
|
167
|
-
var tmp0_elvis_lhs = this.
|
|
167
|
+
var tmp0_elvis_lhs = this.c6i_1;
|
|
168
168
|
var tmp;
|
|
169
169
|
if (tmp0_elvis_lhs == null) {
|
|
170
170
|
throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -174,98 +174,98 @@
|
|
|
174
174
|
var head = tmp;
|
|
175
175
|
var tmp0 = remainingByteCount;
|
|
176
176
|
// Inline function 'kotlinx.io.minOf' call
|
|
177
|
-
var b = head.
|
|
177
|
+
var b = head.l6i_1 - head.k6i_1 | 0;
|
|
178
178
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
179
179
|
var b_0 = toLong(b);
|
|
180
180
|
var toSkip = (tmp0.z(b_0) <= 0 ? tmp0 : b_0).e1();
|
|
181
|
-
this.
|
|
181
|
+
this.e6i_1 = this.e6i_1.a3(toLong(toSkip));
|
|
182
182
|
remainingByteCount = remainingByteCount.a3(toLong(toSkip));
|
|
183
|
-
head.
|
|
184
|
-
if (head.
|
|
185
|
-
this.
|
|
183
|
+
head.k6i_1 = head.k6i_1 + toSkip | 0;
|
|
184
|
+
if (head.k6i_1 === head.l6i_1) {
|
|
185
|
+
this.r6i();
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
protoOf(Buffer).
|
|
189
|
+
protoOf(Buffer).s6i = function (minimumCapacity) {
|
|
190
190
|
// Inline function 'kotlin.require' call
|
|
191
191
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
192
192
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
193
193
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
194
194
|
}
|
|
195
|
-
if (this.
|
|
196
|
-
var result = SegmentPool_instance.
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
195
|
+
if (this.d6i_1 == null) {
|
|
196
|
+
var result = SegmentPool_instance.v6i();
|
|
197
|
+
this.c6i_1 = result;
|
|
198
|
+
this.d6i_1 = result;
|
|
199
199
|
return result;
|
|
200
200
|
}
|
|
201
|
-
var t = ensureNotNull(this.
|
|
202
|
-
if ((t.
|
|
203
|
-
var newTail = t.
|
|
204
|
-
this.
|
|
201
|
+
var t = ensureNotNull(this.d6i_1);
|
|
202
|
+
if ((t.l6i_1 + minimumCapacity | 0) > 8192 || !t.n6i_1) {
|
|
203
|
+
var newTail = t.w6i(SegmentPool_instance.v6i());
|
|
204
|
+
this.d6i_1 = newTail;
|
|
205
205
|
return newTail;
|
|
206
206
|
}
|
|
207
207
|
return t;
|
|
208
208
|
};
|
|
209
|
-
protoOf(Buffer).
|
|
209
|
+
protoOf(Buffer).x6i = function (source, byteCount) {
|
|
210
210
|
// Inline function 'kotlin.require' call
|
|
211
211
|
if (!!(source === this)) {
|
|
212
212
|
var message = 'source == this';
|
|
213
213
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
214
214
|
}
|
|
215
|
-
checkOffsetAndCount(source.
|
|
215
|
+
checkOffsetAndCount(source.e6i_1, new Long(0, 0), byteCount);
|
|
216
216
|
var remainingByteCount = byteCount;
|
|
217
217
|
while (remainingByteCount.z(new Long(0, 0)) > 0) {
|
|
218
|
-
if (remainingByteCount.z(toLong(ensureNotNull(source.
|
|
219
|
-
var tail = this.
|
|
218
|
+
if (remainingByteCount.z(toLong(ensureNotNull(source.c6i_1).m())) < 0) {
|
|
219
|
+
var tail = this.d6i_1;
|
|
220
220
|
var tmp;
|
|
221
|
-
if (!(tail == null) && tail.
|
|
221
|
+
if (!(tail == null) && tail.n6i_1) {
|
|
222
222
|
var tmp0 = remainingByteCount;
|
|
223
223
|
// Inline function 'kotlin.Long.plus' call
|
|
224
|
-
var other = tail.
|
|
224
|
+
var other = tail.l6i_1;
|
|
225
225
|
var tmp0_0 = tmp0.z2(toLong(other));
|
|
226
226
|
// Inline function 'kotlin.Long.minus' call
|
|
227
|
-
var other_0 = tail.
|
|
227
|
+
var other_0 = tail.y6i() ? 0 : tail.k6i_1;
|
|
228
228
|
tmp = tmp0_0.a3(toLong(other_0)).z(new Long(8192, 0)) <= 0;
|
|
229
229
|
} else {
|
|
230
230
|
tmp = false;
|
|
231
231
|
}
|
|
232
232
|
if (tmp) {
|
|
233
|
-
ensureNotNull(source.
|
|
234
|
-
source.
|
|
235
|
-
this.
|
|
233
|
+
ensureNotNull(source.c6i_1).a6j(tail, remainingByteCount.e1());
|
|
234
|
+
source.e6i_1 = source.e6i_1.a3(remainingByteCount);
|
|
235
|
+
this.e6i_1 = this.e6i_1.z2(remainingByteCount);
|
|
236
236
|
return Unit_instance;
|
|
237
237
|
} else {
|
|
238
|
-
source.
|
|
238
|
+
source.c6i_1 = ensureNotNull(source.c6i_1).z6i(remainingByteCount.e1());
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
var segmentToMove = ensureNotNull(source.
|
|
241
|
+
var segmentToMove = ensureNotNull(source.c6i_1);
|
|
242
242
|
var movedByteCount = toLong(segmentToMove.m());
|
|
243
|
-
source.
|
|
244
|
-
if (source.
|
|
245
|
-
source.
|
|
243
|
+
source.c6i_1 = segmentToMove.b6j();
|
|
244
|
+
if (source.c6i_1 == null) {
|
|
245
|
+
source.d6i_1 = null;
|
|
246
246
|
}
|
|
247
247
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
248
|
-
if (this.
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
248
|
+
if (this.c6i_1 == null) {
|
|
249
|
+
this.c6i_1 = segmentToMove;
|
|
250
|
+
this.d6i_1 = segmentToMove;
|
|
251
251
|
} else if (true) {
|
|
252
|
-
this.
|
|
253
|
-
if (ensureNotNull(this.
|
|
254
|
-
this.
|
|
252
|
+
this.d6i_1 = ensureNotNull(this.d6i_1).w6i(segmentToMove).c6j();
|
|
253
|
+
if (ensureNotNull(this.d6i_1).p6i_1 == null) {
|
|
254
|
+
this.c6i_1 = this.d6i_1;
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
|
-
this.
|
|
257
|
+
this.d6i_1 = ensureNotNull(this.d6i_1).w6i(segmentToMove);
|
|
258
258
|
}
|
|
259
|
-
source.
|
|
260
|
-
this.
|
|
259
|
+
source.e6i_1 = source.e6i_1.a3(movedByteCount);
|
|
260
|
+
this.e6i_1 = this.e6i_1.z2(movedByteCount);
|
|
261
261
|
remainingByteCount = remainingByteCount.a3(movedByteCount);
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
|
-
protoOf(Buffer).
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
264
|
+
protoOf(Buffer).b2b = function (byte) {
|
|
265
|
+
this.s6i(1).d6j(byte);
|
|
266
|
+
this.e6i_1 = this.e6i_1.z2(new Long(1, 0));
|
|
267
267
|
};
|
|
268
|
-
protoOf(Buffer).
|
|
268
|
+
protoOf(Buffer).k2c = function () {
|
|
269
269
|
return Unit_instance;
|
|
270
270
|
};
|
|
271
271
|
protoOf(Buffer).toString = function () {
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.m().z(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
281
281
|
var bytesWritten = 0;
|
|
282
282
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
283
|
-
var curr = this.
|
|
283
|
+
var curr = this.c6i_1;
|
|
284
284
|
while (!(curr == null)) {
|
|
285
285
|
var tmp0 = get_SegmentReadContextImpl();
|
|
286
286
|
var segment = curr;
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
while (bytesWritten < len && idx < segment.m()) {
|
|
289
289
|
var _unary__edvuaz = idx;
|
|
290
290
|
idx = _unary__edvuaz + 1 | 0;
|
|
291
|
-
var b_0 = tmp0.
|
|
291
|
+
var b_0 = tmp0.e6j(segment, _unary__edvuaz);
|
|
292
292
|
bytesWritten = bytesWritten + 1 | 0;
|
|
293
293
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
294
294
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -299,52 +299,52 @@
|
|
|
299
299
|
var tmp$ret$3 = b_0 & 15;
|
|
300
300
|
tmp_0.x8(tmp_1[tmp$ret$3]);
|
|
301
301
|
}
|
|
302
|
-
curr = curr.
|
|
302
|
+
curr = curr.o6i_1;
|
|
303
303
|
}
|
|
304
304
|
if (this.m().z(toLong(maxPrintableBytes)) > 0) {
|
|
305
305
|
builder.x8(_Char___init__impl__6a9atx(8230));
|
|
306
306
|
}
|
|
307
307
|
return 'Buffer(size=' + this.m().toString() + ' hex=' + builder.toString() + ')';
|
|
308
308
|
};
|
|
309
|
-
protoOf(Buffer).
|
|
310
|
-
var oldHead = ensureNotNull(this.
|
|
311
|
-
var nextHead = oldHead.
|
|
312
|
-
this.
|
|
309
|
+
protoOf(Buffer).r6i = function () {
|
|
310
|
+
var oldHead = ensureNotNull(this.c6i_1);
|
|
311
|
+
var nextHead = oldHead.o6i_1;
|
|
312
|
+
this.c6i_1 = nextHead;
|
|
313
313
|
if (nextHead == null) {
|
|
314
|
-
this.
|
|
314
|
+
this.d6i_1 = null;
|
|
315
315
|
} else {
|
|
316
|
-
nextHead.
|
|
316
|
+
nextHead.p6i_1 = null;
|
|
317
317
|
}
|
|
318
|
-
oldHead.
|
|
319
|
-
SegmentPool_instance.
|
|
318
|
+
oldHead.o6i_1 = null;
|
|
319
|
+
SegmentPool_instance.f6j(oldHead);
|
|
320
320
|
};
|
|
321
|
-
protoOf(Buffer).
|
|
322
|
-
var oldTail = ensureNotNull(this.
|
|
323
|
-
var newTail = oldTail.
|
|
324
|
-
this.
|
|
321
|
+
protoOf(Buffer).g6j = function () {
|
|
322
|
+
var oldTail = ensureNotNull(this.d6i_1);
|
|
323
|
+
var newTail = oldTail.p6i_1;
|
|
324
|
+
this.d6i_1 = newTail;
|
|
325
325
|
if (newTail == null) {
|
|
326
|
-
this.
|
|
326
|
+
this.c6i_1 = null;
|
|
327
327
|
} else {
|
|
328
|
-
newTail.
|
|
328
|
+
newTail.o6i_1 = null;
|
|
329
329
|
}
|
|
330
|
-
oldTail.
|
|
331
|
-
SegmentPool_instance.
|
|
330
|
+
oldTail.p6i_1 = null;
|
|
331
|
+
SegmentPool_instance.f6j(oldTail);
|
|
332
332
|
};
|
|
333
333
|
function buffered(_this__u8e3s4) {
|
|
334
334
|
return new RealSink(_this__u8e3s4);
|
|
335
335
|
}
|
|
336
336
|
function RealSink(sink) {
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
337
|
+
this.h6j_1 = sink;
|
|
338
|
+
this.i6j_1 = false;
|
|
339
|
+
this.j6j_1 = new Buffer();
|
|
340
340
|
}
|
|
341
|
-
protoOf(RealSink).
|
|
342
|
-
return this.
|
|
341
|
+
protoOf(RealSink).f6i = function () {
|
|
342
|
+
return this.j6j_1;
|
|
343
343
|
};
|
|
344
|
-
protoOf(RealSink).
|
|
344
|
+
protoOf(RealSink).x6i = function (source, byteCount) {
|
|
345
345
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
346
346
|
// Inline function 'kotlin.check' call
|
|
347
|
-
if (!!this.
|
|
347
|
+
if (!!this.i6j_1) {
|
|
348
348
|
var message = 'Sink is closed.';
|
|
349
349
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
350
350
|
}
|
|
@@ -353,28 +353,28 @@
|
|
|
353
353
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
354
354
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
355
355
|
}
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
356
|
+
this.j6j_1.x6i(source, byteCount);
|
|
357
|
+
this.h6i();
|
|
358
358
|
};
|
|
359
|
-
protoOf(RealSink).
|
|
359
|
+
protoOf(RealSink).h6i = function () {
|
|
360
360
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
361
361
|
// Inline function 'kotlin.check' call
|
|
362
|
-
if (!!this.
|
|
362
|
+
if (!!this.i6j_1) {
|
|
363
363
|
var message = 'Sink is closed.';
|
|
364
364
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
365
365
|
}
|
|
366
|
-
var byteCount = this.
|
|
366
|
+
var byteCount = this.j6j_1.i6i();
|
|
367
367
|
if (byteCount.z(new Long(0, 0)) > 0) {
|
|
368
|
-
this.
|
|
368
|
+
this.h6j_1.x6i(this.j6j_1, byteCount);
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
protoOf(RealSink).
|
|
372
|
-
if (this.
|
|
371
|
+
protoOf(RealSink).k2c = function () {
|
|
372
|
+
if (this.i6j_1)
|
|
373
373
|
return Unit_instance;
|
|
374
374
|
var thrown = null;
|
|
375
375
|
try {
|
|
376
|
-
if (this.
|
|
377
|
-
this.
|
|
376
|
+
if (this.j6j_1.m().z(new Long(0, 0)) > 0) {
|
|
377
|
+
this.h6j_1.x6i(this.j6j_1, this.j6j_1.m());
|
|
378
378
|
}
|
|
379
379
|
} catch ($p) {
|
|
380
380
|
if ($p instanceof Error) {
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
try {
|
|
388
|
-
this.
|
|
388
|
+
this.h6j_1.k2c();
|
|
389
389
|
} catch ($p) {
|
|
390
390
|
if ($p instanceof Error) {
|
|
391
391
|
var e_0 = $p;
|
|
@@ -395,18 +395,18 @@
|
|
|
395
395
|
throw $p;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
this.
|
|
398
|
+
this.i6j_1 = true;
|
|
399
399
|
if (!(thrown == null))
|
|
400
400
|
throw thrown;
|
|
401
401
|
};
|
|
402
402
|
protoOf(RealSink).toString = function () {
|
|
403
|
-
return 'buffered(' + toString(this.
|
|
403
|
+
return 'buffered(' + toString(this.h6j_1) + ')';
|
|
404
404
|
};
|
|
405
405
|
function Segment_init_$Init$($this) {
|
|
406
406
|
Segment.call($this);
|
|
407
|
-
$this.
|
|
408
|
-
$this.
|
|
409
|
-
$this.
|
|
407
|
+
$this.j6i_1 = new Int8Array(8192);
|
|
408
|
+
$this.n6i_1 = true;
|
|
409
|
+
$this.m6i_1 = null;
|
|
410
410
|
return $this;
|
|
411
411
|
}
|
|
412
412
|
function Segment_init_$Create$() {
|
|
@@ -414,87 +414,87 @@
|
|
|
414
414
|
}
|
|
415
415
|
function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
|
|
416
416
|
Segment.call($this);
|
|
417
|
-
$this.
|
|
418
|
-
$this.
|
|
419
|
-
$this.
|
|
420
|
-
$this.
|
|
421
|
-
$this.
|
|
417
|
+
$this.j6i_1 = data;
|
|
418
|
+
$this.k6i_1 = pos;
|
|
419
|
+
$this.l6i_1 = limit;
|
|
420
|
+
$this.m6i_1 = shareToken;
|
|
421
|
+
$this.n6i_1 = owner;
|
|
422
422
|
return $this;
|
|
423
423
|
}
|
|
424
424
|
function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
|
|
425
425
|
return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
|
|
426
426
|
}
|
|
427
427
|
function Companion() {
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
428
|
+
this.k6j_1 = 8192;
|
|
429
|
+
this.l6j_1 = 1024;
|
|
430
430
|
}
|
|
431
|
-
protoOf(Companion).
|
|
431
|
+
protoOf(Companion).m6j = function () {
|
|
432
432
|
return Segment_init_$Create$();
|
|
433
433
|
};
|
|
434
434
|
var Companion_instance;
|
|
435
435
|
function Companion_getInstance() {
|
|
436
436
|
return Companion_instance;
|
|
437
437
|
}
|
|
438
|
-
protoOf(Segment).
|
|
439
|
-
var tmp0_safe_receiver = this.
|
|
440
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
438
|
+
protoOf(Segment).y6i = function () {
|
|
439
|
+
var tmp0_safe_receiver = this.m6i_1;
|
|
440
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n6j();
|
|
441
441
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
442
442
|
};
|
|
443
|
-
protoOf(Segment).
|
|
444
|
-
var tmp0_elvis_lhs = this.
|
|
443
|
+
protoOf(Segment).o6j = function () {
|
|
444
|
+
var tmp0_elvis_lhs = this.m6i_1;
|
|
445
445
|
var tmp;
|
|
446
446
|
if (tmp0_elvis_lhs == null) {
|
|
447
447
|
// Inline function 'kotlin.also' call
|
|
448
|
-
var this_0 = SegmentPool_instance.
|
|
449
|
-
this.
|
|
448
|
+
var this_0 = SegmentPool_instance.p6j();
|
|
449
|
+
this.m6i_1 = this_0;
|
|
450
450
|
tmp = this_0;
|
|
451
451
|
} else {
|
|
452
452
|
tmp = tmp0_elvis_lhs;
|
|
453
453
|
}
|
|
454
454
|
var t = tmp;
|
|
455
|
-
var tmp_0 = this.
|
|
456
|
-
var tmp_1 = this.
|
|
455
|
+
var tmp_0 = this.k6i_1;
|
|
456
|
+
var tmp_1 = this.l6i_1;
|
|
457
457
|
// Inline function 'kotlin.also' call
|
|
458
|
-
t.
|
|
459
|
-
return Segment_init_$Create$_0(this.
|
|
458
|
+
t.q6j();
|
|
459
|
+
return Segment_init_$Create$_0(this.j6i_1, tmp_0, tmp_1, t, false);
|
|
460
460
|
};
|
|
461
|
-
protoOf(Segment).
|
|
462
|
-
var result = this.
|
|
463
|
-
if (!(this.
|
|
464
|
-
ensureNotNull(this.
|
|
461
|
+
protoOf(Segment).b6j = function () {
|
|
462
|
+
var result = this.o6i_1;
|
|
463
|
+
if (!(this.p6i_1 == null)) {
|
|
464
|
+
ensureNotNull(this.p6i_1).o6i_1 = this.o6i_1;
|
|
465
465
|
}
|
|
466
|
-
if (!(this.
|
|
467
|
-
ensureNotNull(this.
|
|
466
|
+
if (!(this.o6i_1 == null)) {
|
|
467
|
+
ensureNotNull(this.o6i_1).p6i_1 = this.p6i_1;
|
|
468
468
|
}
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
469
|
+
this.o6i_1 = null;
|
|
470
|
+
this.p6i_1 = null;
|
|
471
471
|
return result;
|
|
472
472
|
};
|
|
473
|
-
protoOf(Segment).
|
|
474
|
-
segment.
|
|
475
|
-
segment.
|
|
476
|
-
if (!(this.
|
|
477
|
-
ensureNotNull(this.
|
|
473
|
+
protoOf(Segment).w6i = function (segment) {
|
|
474
|
+
segment.p6i_1 = this;
|
|
475
|
+
segment.o6i_1 = this.o6i_1;
|
|
476
|
+
if (!(this.o6i_1 == null)) {
|
|
477
|
+
ensureNotNull(this.o6i_1).p6i_1 = segment;
|
|
478
478
|
}
|
|
479
|
-
this.
|
|
479
|
+
this.o6i_1 = segment;
|
|
480
480
|
return segment;
|
|
481
481
|
};
|
|
482
|
-
protoOf(Segment).
|
|
482
|
+
protoOf(Segment).z6i = function (byteCount) {
|
|
483
483
|
// Inline function 'kotlin.require' call
|
|
484
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
484
|
+
if (!(byteCount > 0 && byteCount <= (this.l6i_1 - this.k6i_1 | 0))) {
|
|
485
485
|
var message = 'byteCount out of range';
|
|
486
486
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
487
487
|
}
|
|
488
488
|
var prefix;
|
|
489
489
|
if (byteCount >= 1024) {
|
|
490
|
-
prefix = this.
|
|
490
|
+
prefix = this.o6j();
|
|
491
491
|
} else {
|
|
492
|
-
prefix = SegmentPool_instance.
|
|
493
|
-
var tmp0 = this.
|
|
494
|
-
var tmp2 = prefix.
|
|
495
|
-
var tmp4 = this.
|
|
492
|
+
prefix = SegmentPool_instance.v6i();
|
|
493
|
+
var tmp0 = this.j6i_1;
|
|
494
|
+
var tmp2 = prefix.j6i_1;
|
|
495
|
+
var tmp4 = this.k6i_1;
|
|
496
496
|
// Inline function 'kotlin.collections.copyInto' call
|
|
497
|
-
var endIndex = this.
|
|
497
|
+
var endIndex = this.k6i_1 + byteCount | 0;
|
|
498
498
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
499
499
|
// Inline function 'kotlin.js.asDynamic' call
|
|
500
500
|
var tmp = tmp0;
|
|
@@ -502,126 +502,126 @@
|
|
|
502
502
|
// Inline function 'kotlin.js.asDynamic' call
|
|
503
503
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
504
504
|
}
|
|
505
|
-
prefix.
|
|
506
|
-
this.
|
|
507
|
-
if (!(this.
|
|
508
|
-
ensureNotNull(this.
|
|
505
|
+
prefix.l6i_1 = prefix.k6i_1 + byteCount | 0;
|
|
506
|
+
this.k6i_1 = this.k6i_1 + byteCount | 0;
|
|
507
|
+
if (!(this.p6i_1 == null)) {
|
|
508
|
+
ensureNotNull(this.p6i_1).w6i(prefix);
|
|
509
509
|
} else {
|
|
510
|
-
prefix.
|
|
511
|
-
this.
|
|
510
|
+
prefix.o6i_1 = this;
|
|
511
|
+
this.p6i_1 = prefix;
|
|
512
512
|
}
|
|
513
513
|
return prefix;
|
|
514
514
|
};
|
|
515
|
-
protoOf(Segment).
|
|
515
|
+
protoOf(Segment).c6j = function () {
|
|
516
516
|
// Inline function 'kotlin.check' call
|
|
517
|
-
if (!!(this.
|
|
517
|
+
if (!!(this.p6i_1 == null)) {
|
|
518
518
|
var message = 'cannot compact';
|
|
519
519
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
520
520
|
}
|
|
521
|
-
if (!ensureNotNull(this.
|
|
521
|
+
if (!ensureNotNull(this.p6i_1).n6i_1)
|
|
522
522
|
return this;
|
|
523
|
-
var byteCount = this.
|
|
524
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
523
|
+
var byteCount = this.l6i_1 - this.k6i_1 | 0;
|
|
524
|
+
var availableByteCount = (8192 - ensureNotNull(this.p6i_1).l6i_1 | 0) + (ensureNotNull(this.p6i_1).y6i() ? 0 : ensureNotNull(this.p6i_1).k6i_1) | 0;
|
|
525
525
|
if (byteCount > availableByteCount)
|
|
526
526
|
return this;
|
|
527
|
-
var predecessor = this.
|
|
528
|
-
this.
|
|
529
|
-
var successor = this.
|
|
527
|
+
var predecessor = this.p6i_1;
|
|
528
|
+
this.a6j(ensureNotNull(predecessor), byteCount);
|
|
529
|
+
var successor = this.b6j();
|
|
530
530
|
// Inline function 'kotlin.check' call
|
|
531
531
|
if (!(successor == null)) {
|
|
532
532
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
533
533
|
}
|
|
534
|
-
SegmentPool_instance.
|
|
534
|
+
SegmentPool_instance.f6j(this);
|
|
535
535
|
return predecessor;
|
|
536
536
|
};
|
|
537
|
-
protoOf(Segment).
|
|
538
|
-
var _unary__edvuaz = this.
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
537
|
+
protoOf(Segment).d6j = function (byte) {
|
|
538
|
+
var _unary__edvuaz = this.l6i_1;
|
|
539
|
+
this.l6i_1 = _unary__edvuaz + 1 | 0;
|
|
540
|
+
this.j6i_1[_unary__edvuaz] = byte;
|
|
541
541
|
};
|
|
542
|
-
protoOf(Segment).
|
|
542
|
+
protoOf(Segment).a6j = function (sink, byteCount) {
|
|
543
543
|
// Inline function 'kotlin.check' call
|
|
544
|
-
if (!sink.
|
|
544
|
+
if (!sink.n6i_1) {
|
|
545
545
|
var message = 'only owner can write';
|
|
546
546
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
547
547
|
}
|
|
548
|
-
if ((sink.
|
|
549
|
-
if (sink.
|
|
548
|
+
if ((sink.l6i_1 + byteCount | 0) > 8192) {
|
|
549
|
+
if (sink.y6i())
|
|
550
550
|
throw IllegalArgumentException_init_$Create$_0();
|
|
551
|
-
if (((sink.
|
|
551
|
+
if (((sink.l6i_1 + byteCount | 0) - sink.k6i_1 | 0) > 8192)
|
|
552
552
|
throw IllegalArgumentException_init_$Create$_0();
|
|
553
|
-
var tmp0 = sink.
|
|
554
|
-
var tmp2 = sink.
|
|
555
|
-
var tmp4 = sink.
|
|
553
|
+
var tmp0 = sink.j6i_1;
|
|
554
|
+
var tmp2 = sink.j6i_1;
|
|
555
|
+
var tmp4 = sink.k6i_1;
|
|
556
556
|
// Inline function 'kotlin.collections.copyInto' call
|
|
557
|
-
var endIndex = sink.
|
|
557
|
+
var endIndex = sink.l6i_1;
|
|
558
558
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
559
559
|
// Inline function 'kotlin.js.asDynamic' call
|
|
560
560
|
var tmp = tmp0;
|
|
561
561
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
562
562
|
// Inline function 'kotlin.js.asDynamic' call
|
|
563
563
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
564
|
-
sink.
|
|
565
|
-
sink.
|
|
564
|
+
sink.l6i_1 = sink.l6i_1 - sink.k6i_1 | 0;
|
|
565
|
+
sink.k6i_1 = 0;
|
|
566
566
|
}
|
|
567
|
-
var tmp0_0 = this.
|
|
568
|
-
var tmp2_0 = sink.
|
|
569
|
-
var tmp4_0 = sink.
|
|
570
|
-
var tmp6 = this.
|
|
567
|
+
var tmp0_0 = this.j6i_1;
|
|
568
|
+
var tmp2_0 = sink.j6i_1;
|
|
569
|
+
var tmp4_0 = sink.l6i_1;
|
|
570
|
+
var tmp6 = this.k6i_1;
|
|
571
571
|
// Inline function 'kotlin.collections.copyInto' call
|
|
572
|
-
var endIndex_0 = this.
|
|
572
|
+
var endIndex_0 = this.k6i_1 + byteCount | 0;
|
|
573
573
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
574
574
|
// Inline function 'kotlin.js.asDynamic' call
|
|
575
575
|
var tmp_0 = tmp0_0;
|
|
576
576
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
577
577
|
// Inline function 'kotlin.js.asDynamic' call
|
|
578
578
|
arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
|
|
579
|
-
sink.
|
|
580
|
-
this.
|
|
579
|
+
sink.l6i_1 = sink.l6i_1 + byteCount | 0;
|
|
580
|
+
this.k6i_1 = this.k6i_1 + byteCount | 0;
|
|
581
581
|
};
|
|
582
582
|
protoOf(Segment).m = function () {
|
|
583
|
-
return this.
|
|
583
|
+
return this.l6i_1 - this.k6i_1 | 0;
|
|
584
584
|
};
|
|
585
|
-
protoOf(Segment).
|
|
586
|
-
return this.
|
|
585
|
+
protoOf(Segment).r6j = function () {
|
|
586
|
+
return this.j6i_1.length - this.l6i_1 | 0;
|
|
587
587
|
};
|
|
588
|
-
protoOf(Segment).
|
|
589
|
-
return this.
|
|
588
|
+
protoOf(Segment).s6j = function (readOnly) {
|
|
589
|
+
return this.j6i_1;
|
|
590
590
|
};
|
|
591
|
-
protoOf(Segment).
|
|
592
|
-
return this.
|
|
591
|
+
protoOf(Segment).t6j = function (index) {
|
|
592
|
+
return this.j6i_1[this.k6i_1 + index | 0];
|
|
593
593
|
};
|
|
594
|
-
protoOf(Segment).
|
|
595
|
-
this.
|
|
594
|
+
protoOf(Segment).u6j = function (index, value) {
|
|
595
|
+
this.j6i_1[this.l6i_1 + index | 0] = value;
|
|
596
596
|
};
|
|
597
|
-
protoOf(Segment).
|
|
598
|
-
var d = this.
|
|
599
|
-
var l = this.
|
|
597
|
+
protoOf(Segment).v6j = function (index, b0, b1) {
|
|
598
|
+
var d = this.j6i_1;
|
|
599
|
+
var l = this.l6i_1;
|
|
600
600
|
d[l + index | 0] = b0;
|
|
601
601
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
602
602
|
};
|
|
603
|
-
protoOf(Segment).
|
|
604
|
-
var d = this.
|
|
605
|
-
var l = this.
|
|
603
|
+
protoOf(Segment).w6j = function (index, b0, b1, b2) {
|
|
604
|
+
var d = this.j6i_1;
|
|
605
|
+
var l = this.l6i_1;
|
|
606
606
|
d[l + index | 0] = b0;
|
|
607
607
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
608
608
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
609
609
|
};
|
|
610
|
-
protoOf(Segment).
|
|
611
|
-
var d = this.
|
|
612
|
-
var l = this.
|
|
610
|
+
protoOf(Segment).x6j = function (index, b0, b1, b2, b3) {
|
|
611
|
+
var d = this.j6i_1;
|
|
612
|
+
var l = this.l6i_1;
|
|
613
613
|
d[l + index | 0] = b0;
|
|
614
614
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
615
615
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
616
616
|
d[(l + index | 0) + 3 | 0] = b3;
|
|
617
617
|
};
|
|
618
618
|
function Segment() {
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
619
|
+
this.k6i_1 = 0;
|
|
620
|
+
this.l6i_1 = 0;
|
|
621
|
+
this.m6i_1 = null;
|
|
622
|
+
this.n6i_1 = false;
|
|
623
|
+
this.o6i_1 = null;
|
|
624
|
+
this.p6i_1 = null;
|
|
625
625
|
}
|
|
626
626
|
function SegmentCopyTracker() {
|
|
627
627
|
}
|
|
@@ -632,10 +632,10 @@
|
|
|
632
632
|
AlwaysSharedCopyTracker_instance = this;
|
|
633
633
|
SegmentCopyTracker.call(this);
|
|
634
634
|
}
|
|
635
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
635
|
+
protoOf(AlwaysSharedCopyTracker).n6j = function () {
|
|
636
636
|
return true;
|
|
637
637
|
};
|
|
638
|
-
protoOf(AlwaysSharedCopyTracker).
|
|
638
|
+
protoOf(AlwaysSharedCopyTracker).q6j = function () {
|
|
639
639
|
return Unit_instance;
|
|
640
640
|
};
|
|
641
641
|
var AlwaysSharedCopyTracker_instance;
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
653
653
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
654
654
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
655
|
-
var this_0 = _this__u8e3s4.
|
|
655
|
+
var this_0 = _this__u8e3s4.f6i();
|
|
656
656
|
var i = startIndex;
|
|
657
657
|
while (i < endIndex) {
|
|
658
658
|
var p0 = i;
|
|
@@ -662,15 +662,15 @@
|
|
|
662
662
|
if (c < 128) {
|
|
663
663
|
$l$block_0: {
|
|
664
664
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
665
|
-
var tail = this_0.
|
|
665
|
+
var tail = this_0.s6i(1);
|
|
666
666
|
var ctx = get_SegmentWriteContextImpl();
|
|
667
667
|
var segmentOffset = -i | 0;
|
|
668
668
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
669
|
-
var b = i + tail.
|
|
669
|
+
var b = i + tail.r6j() | 0;
|
|
670
670
|
var runLimit = Math.min(endIndex, b);
|
|
671
671
|
var _unary__edvuaz = i;
|
|
672
672
|
i = _unary__edvuaz + 1 | 0;
|
|
673
|
-
ctx.
|
|
673
|
+
ctx.b6k(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
674
674
|
$l$loop: while (i < runLimit) {
|
|
675
675
|
var p0_0 = i;
|
|
676
676
|
// Inline function 'kotlin.code' call
|
|
@@ -680,89 +680,89 @@
|
|
|
680
680
|
break $l$loop;
|
|
681
681
|
var _unary__edvuaz_0 = i;
|
|
682
682
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
683
|
-
ctx.
|
|
683
|
+
ctx.b6k(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
684
684
|
}
|
|
685
685
|
var bytesWritten = i + segmentOffset | 0;
|
|
686
686
|
if (bytesWritten === 1) {
|
|
687
|
-
tail.
|
|
687
|
+
tail.l6i_1 = tail.l6i_1 + bytesWritten | 0;
|
|
688
688
|
var tmp = this_0;
|
|
689
689
|
// Inline function 'kotlin.Long.plus' call
|
|
690
|
-
tmp.
|
|
690
|
+
tmp.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten));
|
|
691
691
|
break $l$block_0;
|
|
692
692
|
}
|
|
693
693
|
// Inline function 'kotlin.check' call
|
|
694
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
695
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
694
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.r6j() : false)) {
|
|
695
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.r6j();
|
|
696
696
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
697
697
|
}
|
|
698
698
|
if (!(bytesWritten === 0)) {
|
|
699
|
-
tail.
|
|
699
|
+
tail.l6i_1 = tail.l6i_1 + bytesWritten | 0;
|
|
700
700
|
var tmp_0 = this_0;
|
|
701
701
|
// Inline function 'kotlin.Long.plus' call
|
|
702
|
-
tmp_0.
|
|
702
|
+
tmp_0.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten));
|
|
703
703
|
break $l$block_0;
|
|
704
704
|
}
|
|
705
705
|
if (isEmpty(tail)) {
|
|
706
|
-
this_0.
|
|
706
|
+
this_0.g6j();
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
} else if (c < 2048) {
|
|
710
710
|
$l$block_2: {
|
|
711
711
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
712
|
-
var tail_0 = this_0.
|
|
713
|
-
get_SegmentWriteContextImpl().
|
|
712
|
+
var tail_0 = this_0.s6i(2);
|
|
713
|
+
get_SegmentWriteContextImpl().a6k(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
714
714
|
var bytesWritten_0 = 2;
|
|
715
715
|
if (bytesWritten_0 === 2) {
|
|
716
|
-
tail_0.
|
|
716
|
+
tail_0.l6i_1 = tail_0.l6i_1 + bytesWritten_0 | 0;
|
|
717
717
|
var tmp_1 = this_0;
|
|
718
718
|
// Inline function 'kotlin.Long.plus' call
|
|
719
|
-
tmp_1.
|
|
719
|
+
tmp_1.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten_0));
|
|
720
720
|
break $l$block_2;
|
|
721
721
|
}
|
|
722
722
|
// Inline function 'kotlin.check' call
|
|
723
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
724
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
723
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.r6j() : false)) {
|
|
724
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.r6j();
|
|
725
725
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
726
726
|
}
|
|
727
727
|
if (!(bytesWritten_0 === 0)) {
|
|
728
|
-
tail_0.
|
|
728
|
+
tail_0.l6i_1 = tail_0.l6i_1 + bytesWritten_0 | 0;
|
|
729
729
|
var tmp_2 = this_0;
|
|
730
730
|
// Inline function 'kotlin.Long.plus' call
|
|
731
|
-
tmp_2.
|
|
731
|
+
tmp_2.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten_0));
|
|
732
732
|
break $l$block_2;
|
|
733
733
|
}
|
|
734
734
|
if (isEmpty(tail_0)) {
|
|
735
|
-
this_0.
|
|
735
|
+
this_0.g6j();
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
i = i + 1 | 0;
|
|
739
739
|
} else if (c < 55296 || c > 57343) {
|
|
740
740
|
$l$block_4: {
|
|
741
741
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
742
|
-
var tail_1 = this_0.
|
|
743
|
-
get_SegmentWriteContextImpl().
|
|
742
|
+
var tail_1 = this_0.s6i(3);
|
|
743
|
+
get_SegmentWriteContextImpl().z6j(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
744
744
|
var bytesWritten_1 = 3;
|
|
745
745
|
if (bytesWritten_1 === 3) {
|
|
746
|
-
tail_1.
|
|
746
|
+
tail_1.l6i_1 = tail_1.l6i_1 + bytesWritten_1 | 0;
|
|
747
747
|
var tmp_3 = this_0;
|
|
748
748
|
// Inline function 'kotlin.Long.plus' call
|
|
749
|
-
tmp_3.
|
|
749
|
+
tmp_3.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten_1));
|
|
750
750
|
break $l$block_4;
|
|
751
751
|
}
|
|
752
752
|
// Inline function 'kotlin.check' call
|
|
753
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
754
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
753
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.r6j() : false)) {
|
|
754
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.r6j();
|
|
755
755
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
756
756
|
}
|
|
757
757
|
if (!(bytesWritten_1 === 0)) {
|
|
758
|
-
tail_1.
|
|
758
|
+
tail_1.l6i_1 = tail_1.l6i_1 + bytesWritten_1 | 0;
|
|
759
759
|
var tmp_4 = this_0;
|
|
760
760
|
// Inline function 'kotlin.Long.plus' call
|
|
761
|
-
tmp_4.
|
|
761
|
+
tmp_4.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten_1));
|
|
762
762
|
break $l$block_4;
|
|
763
763
|
}
|
|
764
764
|
if (isEmpty(tail_1)) {
|
|
765
|
-
this_0.
|
|
765
|
+
this_0.g6j();
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
i = i + 1 | 0;
|
|
@@ -781,43 +781,43 @@
|
|
|
781
781
|
// Inline function 'kotlin.code' call
|
|
782
782
|
var this_4 = _Char___init__impl__6a9atx(63);
|
|
783
783
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
|
|
784
|
-
this_0.
|
|
784
|
+
this_0.b2b(toByte(tmp$ret$26));
|
|
785
785
|
i = i + 1 | 0;
|
|
786
786
|
} else {
|
|
787
787
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
788
788
|
$l$block_6: {
|
|
789
789
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
790
|
-
var tail_2 = this_0.
|
|
791
|
-
get_SegmentWriteContextImpl().
|
|
790
|
+
var tail_2 = this_0.s6i(4);
|
|
791
|
+
get_SegmentWriteContextImpl().y6j(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
792
792
|
var bytesWritten_2 = 4;
|
|
793
793
|
if (bytesWritten_2 === 4) {
|
|
794
|
-
tail_2.
|
|
794
|
+
tail_2.l6i_1 = tail_2.l6i_1 + bytesWritten_2 | 0;
|
|
795
795
|
var tmp_6 = this_0;
|
|
796
796
|
// Inline function 'kotlin.Long.plus' call
|
|
797
|
-
tmp_6.
|
|
797
|
+
tmp_6.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten_2));
|
|
798
798
|
break $l$block_6;
|
|
799
799
|
}
|
|
800
800
|
// Inline function 'kotlin.check' call
|
|
801
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
802
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
801
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.r6j() : false)) {
|
|
802
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.r6j();
|
|
803
803
|
throw IllegalStateException_init_$Create$(toString(message_2));
|
|
804
804
|
}
|
|
805
805
|
if (!(bytesWritten_2 === 0)) {
|
|
806
|
-
tail_2.
|
|
806
|
+
tail_2.l6i_1 = tail_2.l6i_1 + bytesWritten_2 | 0;
|
|
807
807
|
var tmp_7 = this_0;
|
|
808
808
|
// Inline function 'kotlin.Long.plus' call
|
|
809
|
-
tmp_7.
|
|
809
|
+
tmp_7.e6i_1 = this_0.e6i_1.z2(toLong(bytesWritten_2));
|
|
810
810
|
break $l$block_6;
|
|
811
811
|
}
|
|
812
812
|
if (isEmpty(tail_2)) {
|
|
813
|
-
this_0.
|
|
813
|
+
this_0.g6j();
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
i = i + 2 | 0;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
_this__u8e3s4.
|
|
820
|
+
_this__u8e3s4.h6i();
|
|
821
821
|
}
|
|
822
822
|
function FileSystem() {
|
|
823
823
|
}
|
|
@@ -827,9 +827,9 @@
|
|
|
827
827
|
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
828
828
|
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
829
829
|
size = size === VOID ? new Long(0, 0) : size;
|
|
830
|
-
this.
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
830
|
+
this.i6k_1 = isRegularFile;
|
|
831
|
+
this.j6k_1 = isDirectory;
|
|
832
|
+
this.k6k_1 = size;
|
|
833
833
|
}
|
|
834
834
|
function removeTrailingSeparators(path, isWindows_) {
|
|
835
835
|
isWindows_ = isWindows_ === VOID ? get_isWindows() : isWindows_;
|
|
@@ -930,27 +930,27 @@
|
|
|
930
930
|
}
|
|
931
931
|
function SegmentReadContextImpl$1() {
|
|
932
932
|
}
|
|
933
|
-
protoOf(SegmentReadContextImpl$1).
|
|
934
|
-
return segment.
|
|
933
|
+
protoOf(SegmentReadContextImpl$1).e6j = function (segment, offset) {
|
|
934
|
+
return segment.t6j(offset);
|
|
935
935
|
};
|
|
936
936
|
function SegmentWriteContextImpl$1() {
|
|
937
937
|
}
|
|
938
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
939
|
-
segment.
|
|
938
|
+
protoOf(SegmentWriteContextImpl$1).b6k = function (segment, offset, value) {
|
|
939
|
+
segment.u6j(offset, value);
|
|
940
940
|
};
|
|
941
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
942
|
-
segment.
|
|
941
|
+
protoOf(SegmentWriteContextImpl$1).a6k = function (segment, offset, b0, b1) {
|
|
942
|
+
segment.v6j(offset, b0, b1);
|
|
943
943
|
};
|
|
944
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
945
|
-
segment.
|
|
944
|
+
protoOf(SegmentWriteContextImpl$1).z6j = function (segment, offset, b0, b1, b2) {
|
|
945
|
+
segment.w6j(offset, b0, b1, b2);
|
|
946
946
|
};
|
|
947
|
-
protoOf(SegmentWriteContextImpl$1).
|
|
948
|
-
segment.
|
|
947
|
+
protoOf(SegmentWriteContextImpl$1).y6j = function (segment, offset, b0, b1, b2, b3) {
|
|
948
|
+
segment.x6j(offset, b0, b1, b2, b3);
|
|
949
949
|
};
|
|
950
950
|
function BufferIterationContextImpl$1() {
|
|
951
951
|
}
|
|
952
|
-
protoOf(BufferIterationContextImpl$1).
|
|
953
|
-
return get_SegmentReadContextImpl().
|
|
952
|
+
protoOf(BufferIterationContextImpl$1).e6j = function (segment, offset) {
|
|
953
|
+
return get_SegmentReadContextImpl().e6j(segment, offset);
|
|
954
954
|
};
|
|
955
955
|
var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
|
|
956
956
|
function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
|
|
@@ -1031,15 +1031,15 @@
|
|
|
1031
1031
|
captureStack(this, EOFException);
|
|
1032
1032
|
}
|
|
1033
1033
|
function SegmentPool() {
|
|
1034
|
-
this.
|
|
1035
|
-
this.
|
|
1034
|
+
this.t6i_1 = 0;
|
|
1035
|
+
this.u6i_1 = 0;
|
|
1036
1036
|
}
|
|
1037
|
-
protoOf(SegmentPool).
|
|
1038
|
-
return Companion_instance.
|
|
1037
|
+
protoOf(SegmentPool).v6i = function () {
|
|
1038
|
+
return Companion_instance.m6j();
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(SegmentPool).
|
|
1040
|
+
protoOf(SegmentPool).f6j = function (segment) {
|
|
1041
1041
|
};
|
|
1042
|
-
protoOf(SegmentPool).
|
|
1042
|
+
protoOf(SegmentPool).p6j = function () {
|
|
1043
1043
|
return AlwaysSharedCopyTracker_getInstance();
|
|
1044
1044
|
};
|
|
1045
1045
|
var SegmentPool_instance;
|
|
@@ -1197,7 +1197,7 @@
|
|
|
1197
1197
|
}
|
|
1198
1198
|
function SystemFileSystem$o$delete$lambda($path) {
|
|
1199
1199
|
return function () {
|
|
1200
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
1200
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.l6k_1);
|
|
1201
1201
|
var tmp;
|
|
1202
1202
|
if (tmp0_elvis_lhs == null) {
|
|
1203
1203
|
throw new FileNotFoundException('File does not exist: ' + $path.toString());
|
|
@@ -1207,10 +1207,10 @@
|
|
|
1207
1207
|
var stats = tmp;
|
|
1208
1208
|
var tmp_0;
|
|
1209
1209
|
if (stats.isDirectory()) {
|
|
1210
|
-
get_fs().rmdirSync($path.
|
|
1210
|
+
get_fs().rmdirSync($path.l6k_1);
|
|
1211
1211
|
tmp_0 = Unit_instance;
|
|
1212
1212
|
} else {
|
|
1213
|
-
get_fs().rmSync($path.
|
|
1213
|
+
get_fs().rmSync($path.l6k_1);
|
|
1214
1214
|
tmp_0 = Unit_instance;
|
|
1215
1215
|
}
|
|
1216
1216
|
return Unit_instance;
|
|
@@ -1218,7 +1218,7 @@
|
|
|
1218
1218
|
}
|
|
1219
1219
|
function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
|
|
1220
1220
|
return function () {
|
|
1221
|
-
var tmp0_elvis_lhs = get_fs().statSync($path.
|
|
1221
|
+
var tmp0_elvis_lhs = get_fs().statSync($path.l6k_1);
|
|
1222
1222
|
var tmp;
|
|
1223
1223
|
if (tmp0_elvis_lhs == null) {
|
|
1224
1224
|
return Unit_instance;
|
|
@@ -1235,11 +1235,11 @@
|
|
|
1235
1235
|
function SystemFileSystem$1() {
|
|
1236
1236
|
SystemFileSystemImpl.call(this);
|
|
1237
1237
|
}
|
|
1238
|
-
protoOf(SystemFileSystem$1).
|
|
1239
|
-
return get_fs().existsSync(path.
|
|
1238
|
+
protoOf(SystemFileSystem$1).c6k = function (path) {
|
|
1239
|
+
return get_fs().existsSync(path.l6k_1);
|
|
1240
1240
|
};
|
|
1241
|
-
protoOf(SystemFileSystem$1).
|
|
1242
|
-
if (!this.
|
|
1241
|
+
protoOf(SystemFileSystem$1).d6k = function (path, mustExist) {
|
|
1242
|
+
if (!this.c6k(path)) {
|
|
1243
1243
|
if (mustExist) {
|
|
1244
1244
|
throw new FileNotFoundException('File does not exist: ' + path.toString());
|
|
1245
1245
|
}
|
|
@@ -1253,13 +1253,13 @@
|
|
|
1253
1253
|
throw IOException_init_$Create$_1('Delete failed for ' + path.toString(), tmp0_safe_receiver);
|
|
1254
1254
|
}
|
|
1255
1255
|
};
|
|
1256
|
-
protoOf(SystemFileSystem$1).
|
|
1257
|
-
var metadata = this.
|
|
1256
|
+
protoOf(SystemFileSystem$1).f6k = function (path, mustCreate) {
|
|
1257
|
+
var metadata = this.m6k(path);
|
|
1258
1258
|
if (!(metadata == null)) {
|
|
1259
1259
|
if (mustCreate) {
|
|
1260
1260
|
throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
|
|
1261
1261
|
}
|
|
1262
|
-
if (metadata.
|
|
1262
|
+
if (metadata.i6k_1) {
|
|
1263
1263
|
throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
|
|
1264
1264
|
}
|
|
1265
1265
|
return Unit_instance;
|
|
@@ -1267,7 +1267,7 @@
|
|
|
1267
1267
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1268
1268
|
var parts = ArrayList_init_$Create$();
|
|
1269
1269
|
var p = path;
|
|
1270
|
-
while (!(p == null) && !this.
|
|
1270
|
+
while (!(p == null) && !this.c6k(p)) {
|
|
1271
1271
|
parts.e(p.toString());
|
|
1272
1272
|
p = p.mr();
|
|
1273
1273
|
}
|
|
@@ -1278,8 +1278,8 @@
|
|
|
1278
1278
|
get_fs().mkdirSync(element);
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
|
-
protoOf(SystemFileSystem$1).
|
|
1282
|
-
if (!this.
|
|
1281
|
+
protoOf(SystemFileSystem$1).m6k = function (path) {
|
|
1282
|
+
if (!this.c6k(path))
|
|
1283
1283
|
return null;
|
|
1284
1284
|
var metadata = {_v: null};
|
|
1285
1285
|
var tmp0_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
|
|
@@ -1291,7 +1291,7 @@
|
|
|
1291
1291
|
}
|
|
1292
1292
|
return metadata._v;
|
|
1293
1293
|
};
|
|
1294
|
-
protoOf(SystemFileSystem$1).
|
|
1294
|
+
protoOf(SystemFileSystem$1).h6k = function (path, append) {
|
|
1295
1295
|
return new FileSink(path, append);
|
|
1296
1296
|
};
|
|
1297
1297
|
var properties_initialized_FileSystemNodeJs_kt_vmmd20;
|
|
@@ -1312,27 +1312,27 @@
|
|
|
1312
1312
|
}
|
|
1313
1313
|
var SystemPathSeparator$delegate;
|
|
1314
1314
|
function Path_0(rawPath, any) {
|
|
1315
|
-
this.
|
|
1315
|
+
this.l6k_1 = removeTrailingSeparators(rawPath);
|
|
1316
1316
|
}
|
|
1317
1317
|
protoOf(Path_0).mr = function () {
|
|
1318
1318
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1319
|
-
var this_0 = this.
|
|
1319
|
+
var this_0 = this.l6k_1;
|
|
1320
1320
|
if (charSequenceLength(this_0) === 0)
|
|
1321
1321
|
return null;
|
|
1322
1322
|
if (get_isWindows()) {
|
|
1323
|
-
if (!contains(this.
|
|
1323
|
+
if (!contains(this.l6k_1, _Char___init__impl__6a9atx(47)) && !contains(this.l6k_1, _Char___init__impl__6a9atx(92))) {
|
|
1324
1324
|
return null;
|
|
1325
1325
|
}
|
|
1326
|
-
} else if (!contains(this.
|
|
1326
|
+
} else if (!contains(this.l6k_1, get_SystemPathSeparator())) {
|
|
1327
1327
|
return null;
|
|
1328
1328
|
}
|
|
1329
|
-
var p = get_path().dirname(this.
|
|
1329
|
+
var p = get_path().dirname(this.l6k_1);
|
|
1330
1330
|
var tmp;
|
|
1331
1331
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1332
1332
|
if (charSequenceLength(p) === 0) {
|
|
1333
1333
|
tmp = null;
|
|
1334
1334
|
} else {
|
|
1335
|
-
if (p === this.
|
|
1335
|
+
if (p === this.l6k_1) {
|
|
1336
1336
|
tmp = null;
|
|
1337
1337
|
} else {
|
|
1338
1338
|
tmp = Path_1(p);
|
|
@@ -1341,17 +1341,17 @@
|
|
|
1341
1341
|
return tmp;
|
|
1342
1342
|
};
|
|
1343
1343
|
protoOf(Path_0).toString = function () {
|
|
1344
|
-
return this.
|
|
1344
|
+
return this.l6k_1;
|
|
1345
1345
|
};
|
|
1346
1346
|
protoOf(Path_0).equals = function (other) {
|
|
1347
1347
|
if (this === other)
|
|
1348
1348
|
return true;
|
|
1349
1349
|
if (!(other instanceof Path_0))
|
|
1350
1350
|
return false;
|
|
1351
|
-
return this.
|
|
1351
|
+
return this.l6k_1 === other.l6k_1;
|
|
1352
1352
|
};
|
|
1353
1353
|
protoOf(Path_0).hashCode = function () {
|
|
1354
|
-
return getStringHashCode(this.
|
|
1354
|
+
return getStringHashCode(this.l6k_1);
|
|
1355
1355
|
};
|
|
1356
1356
|
function open($this, path, append) {
|
|
1357
1357
|
var flags = append ? 'a' : 'w';
|
|
@@ -1361,31 +1361,31 @@
|
|
|
1361
1361
|
null;
|
|
1362
1362
|
else {
|
|
1363
1363
|
// Inline function 'kotlin.also' call
|
|
1364
|
-
throw IOException_init_$Create$_1('Failed to open a file ' + path.
|
|
1364
|
+
throw IOException_init_$Create$_1('Failed to open a file ' + path.l6k_1 + '.', tmp0_safe_receiver);
|
|
1365
1365
|
}
|
|
1366
1366
|
if (fd._v < 0)
|
|
1367
|
-
throw IOException_init_$Create$_0('Failed to open a file ' + path.
|
|
1367
|
+
throw IOException_init_$Create$_0('Failed to open a file ' + path.l6k_1 + '.');
|
|
1368
1368
|
return fd._v;
|
|
1369
1369
|
}
|
|
1370
1370
|
function FileSink$open$lambda($fd, $path, $flags) {
|
|
1371
1371
|
return function () {
|
|
1372
|
-
$fd._v = get_fs().openSync($path.
|
|
1372
|
+
$fd._v = get_fs().openSync($path.l6k_1, $flags);
|
|
1373
1373
|
return Unit_instance;
|
|
1374
1374
|
};
|
|
1375
1375
|
}
|
|
1376
1376
|
function FileSink$write$lambda(this$0, $buf) {
|
|
1377
1377
|
return function () {
|
|
1378
|
-
get_fs().writeFileSync(this$0.
|
|
1378
|
+
get_fs().writeFileSync(this$0.o6k_1, $buf);
|
|
1379
1379
|
return Unit_instance;
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
1382
|
function FileSink(path, append) {
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1383
|
+
this.n6k_1 = false;
|
|
1384
|
+
this.o6k_1 = open(this, path, append);
|
|
1385
1385
|
}
|
|
1386
|
-
protoOf(FileSink).
|
|
1386
|
+
protoOf(FileSink).x6i = function (source, byteCount) {
|
|
1387
1387
|
// Inline function 'kotlin.check' call
|
|
1388
|
-
if (!!this.
|
|
1388
|
+
if (!!this.n6k_1) {
|
|
1389
1389
|
var message = 'Sink is closed.';
|
|
1390
1390
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1391
1391
|
}
|
|
@@ -1399,14 +1399,14 @@
|
|
|
1399
1399
|
var segmentBytes = 0;
|
|
1400
1400
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
|
|
1401
1401
|
// Inline function 'kotlin.require' call
|
|
1402
|
-
if (!!source.
|
|
1402
|
+
if (!!source.g6i()) {
|
|
1403
1403
|
var message_0 = 'Buffer is empty';
|
|
1404
1404
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1405
1405
|
}
|
|
1406
|
-
var head = ensureNotNull(source.
|
|
1407
|
-
var tmp0 = head.
|
|
1408
|
-
var tmp2 = head.
|
|
1409
|
-
segmentBytes = head.
|
|
1406
|
+
var head = ensureNotNull(source.c6i_1);
|
|
1407
|
+
var tmp0 = head.s6j(true);
|
|
1408
|
+
var tmp2 = head.k6i_1;
|
|
1409
|
+
segmentBytes = head.l6i_1 - tmp2 | 0;
|
|
1410
1410
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
1411
1411
|
var inductionVariable = 0;
|
|
1412
1412
|
var last = segmentBytes;
|
|
@@ -1430,7 +1430,7 @@
|
|
|
1430
1430
|
throw IllegalStateException_init_$Create$('Returned negative read bytes count');
|
|
1431
1431
|
if (bytesRead > head.m())
|
|
1432
1432
|
throw IllegalStateException_init_$Create$('Returned too many bytes');
|
|
1433
|
-
source.
|
|
1433
|
+
source.q6i(toLong(bytesRead));
|
|
1434
1434
|
}
|
|
1435
1435
|
var tmp0_0 = remainingBytes;
|
|
1436
1436
|
// Inline function 'kotlin.Long.minus' call
|
|
@@ -1438,10 +1438,10 @@
|
|
|
1438
1438
|
remainingBytes = tmp0_0.a3(toLong(other));
|
|
1439
1439
|
}
|
|
1440
1440
|
};
|
|
1441
|
-
protoOf(FileSink).
|
|
1442
|
-
if (!this.
|
|
1443
|
-
this.
|
|
1444
|
-
get_fs().closeSync(this.
|
|
1441
|
+
protoOf(FileSink).k2c = function () {
|
|
1442
|
+
if (!this.n6k_1) {
|
|
1443
|
+
this.n6k_1 = true;
|
|
1444
|
+
get_fs().closeSync(this.o6k_1);
|
|
1445
1445
|
}
|
|
1446
1446
|
};
|
|
1447
1447
|
function Path_1(path) {
|
|
@@ -1470,8 +1470,8 @@
|
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
1472
|
//region block: post-declaration
|
|
1473
|
-
protoOf(SystemFileSystemImpl).
|
|
1474
|
-
protoOf(SystemFileSystemImpl).
|
|
1473
|
+
protoOf(SystemFileSystemImpl).e6k = delete$default;
|
|
1474
|
+
protoOf(SystemFileSystemImpl).g6k = createDirectories$default;
|
|
1475
1475
|
//endregion
|
|
1476
1476
|
//region block: init
|
|
1477
1477
|
Companion_instance = new Companion();
|