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