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