@doordeck/doordeck-headless-sdk 0.161.0 → 0.163.0
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/kotlin/Kermit-kermit-core.js +50 -50
- package/kotlin/Kermit-kermit.js +5 -5
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +21 -21
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +21 -21
- package/kotlin/doordeck-sdk.js +10121 -10121
- package/kotlin/kotlin-kotlin-stdlib.js +835 -970
- package/kotlin/kotlinx-atomicfu.js +15 -15
- package/kotlin/kotlinx-coroutines-core.js +1900 -1900
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +39 -39
- package/kotlin/kotlinx-io-kotlinx-io-core.js +462 -462
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1795 -1795
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1395 -1395
- package/kotlin/ktor-ktor-client-auth.js +241 -241
- package/kotlin/ktor-ktor-client-content-negotiation.js +146 -144
- package/kotlin/ktor-ktor-client-core.js +1831 -1819
- package/kotlin/ktor-ktor-client-logging.js +631 -631
- package/kotlin/ktor-ktor-events.js +9 -9
- package/kotlin/ktor-ktor-http-cio.js +339 -339
- package/kotlin/ktor-ktor-http.js +741 -745
- package/kotlin/ktor-ktor-io.js +621 -625
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +136 -136
- package/kotlin/ktor-ktor-serialization.js +60 -60
- package/kotlin/ktor-ktor-utils.js +690 -696
- package/kotlin/ktor-ktor-websockets.js +43 -46
- package/package.json +1 -1
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var Long = kotlin_kotlin.$_$.
|
|
5
|
+
var Long = kotlin_kotlin.$_$.sf;
|
|
6
6
|
var VOID = kotlin_kotlin.$_$.b;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.yb;
|
|
8
8
|
var MultiPartData = kotlin_io_ktor_ktor_http.$_$.n;
|
|
9
9
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
10
10
|
var initMetadataForClass = kotlin_kotlin.$_$.za;
|
|
11
11
|
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
12
|
-
var toString = kotlin_kotlin.$_$.
|
|
12
|
+
var toString = kotlin_kotlin.$_$.bc;
|
|
13
13
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
14
|
-
var abs = kotlin_kotlin.$_$.
|
|
14
|
+
var abs = kotlin_kotlin.$_$.cc;
|
|
15
15
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
16
16
|
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
17
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
18
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
17
|
+
var THROW_CCE = kotlin_kotlin.$_$.xf;
|
|
18
|
+
var SequenceScope = kotlin_kotlin.$_$.wc;
|
|
19
19
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
20
20
|
var initMetadataForLambda = kotlin_kotlin.$_$.eb;
|
|
21
21
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
22
|
-
var sequence = kotlin_kotlin.$_$.
|
|
22
|
+
var sequence = kotlin_kotlin.$_$.xc;
|
|
23
23
|
var DefaultPool = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
24
24
|
var fill = kotlin_kotlin.$_$.r6;
|
|
25
25
|
var isIntArray = kotlin_kotlin.$_$.nb;
|
|
26
26
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
27
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
27
|
+
var endsWith = kotlin_kotlin.$_$.gd;
|
|
28
28
|
var charSequenceLength = kotlin_kotlin.$_$.oa;
|
|
29
29
|
var charSequenceGet = kotlin_kotlin.$_$.na;
|
|
30
|
-
var Char = kotlin_kotlin.$_$.
|
|
30
|
+
var Char = kotlin_kotlin.$_$.if;
|
|
31
31
|
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.g2;
|
|
32
|
-
var contains = kotlin_kotlin.$_$.
|
|
32
|
+
var contains = kotlin_kotlin.$_$.bd;
|
|
33
33
|
var charSequenceSubSequence = kotlin_kotlin.$_$.pa;
|
|
34
34
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
|
|
35
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
35
|
+
var IllegalStateException = kotlin_kotlin.$_$.rf;
|
|
36
36
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.q1;
|
|
37
37
|
var captureStack = kotlin_kotlin.$_$.ja;
|
|
38
38
|
var readUTF8LineTo = kotlin_io_ktor_ktor_io.$_$.h;
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
var MultiPart_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
47
47
|
var ByteString_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.a;
|
|
48
48
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
49
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
50
|
-
var toByte = kotlin_kotlin.$_$.
|
|
49
|
+
var toString_0 = kotlin_kotlin.$_$.te;
|
|
50
|
+
var toByte = kotlin_kotlin.$_$.zb;
|
|
51
51
|
var copyOfRange = kotlin_kotlin.$_$.a6;
|
|
52
52
|
var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
53
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
53
|
+
var startsWith = kotlin_kotlin.$_$.ce;
|
|
54
54
|
var readUntil = kotlin_io_ktor_ktor_io.$_$.i;
|
|
55
55
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
56
56
|
var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
var readPacket = kotlin_io_ktor_ktor_io.$_$.e;
|
|
71
71
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
72
72
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.a;
|
|
73
|
-
var longRangeToLong = kotlin_kotlin.$_$.ub;
|
|
74
73
|
var add = kotlin_kotlin.$_$.m9;
|
|
75
74
|
var fromInt = kotlin_kotlin.$_$.v9;
|
|
76
75
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
@@ -81,11 +80,11 @@
|
|
|
81
80
|
var Collection = kotlin_kotlin.$_$.b5;
|
|
82
81
|
var emptyList = kotlin_kotlin.$_$.o6;
|
|
83
82
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ab;
|
|
84
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
83
|
+
var ensureNotNull = kotlin_kotlin.$_$.pg;
|
|
85
84
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.c1;
|
|
86
85
|
var isCharSequence = kotlin_kotlin.$_$.kb;
|
|
87
86
|
var getStringHashCode = kotlin_kotlin.$_$.xa;
|
|
88
|
-
var CharSequence = kotlin_kotlin.$_$.
|
|
87
|
+
var CharSequence = kotlin_kotlin.$_$.hf;
|
|
89
88
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
90
89
|
var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
91
90
|
var charArray = kotlin_kotlin.$_$.la;
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
var toString_1 = kotlin_kotlin.$_$.m2;
|
|
95
94
|
var charCodeAt = kotlin_kotlin.$_$.ma;
|
|
96
95
|
var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.h;
|
|
97
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
96
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.vb;
|
|
98
97
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
|
|
99
98
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
100
99
|
var numberToLong = kotlin_kotlin.$_$.aa;
|
|
@@ -104,7 +103,7 @@
|
|
|
104
103
|
var toByteArray_0 = kotlin_kotlin.$_$.b8;
|
|
105
104
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
106
105
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
107
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
106
|
+
var isWhitespace = kotlin_kotlin.$_$.pd;
|
|
108
107
|
//endregion
|
|
109
108
|
//region block: pre-declaration
|
|
110
109
|
initMetadataForClass(CIOMultipartDataBase, 'CIOMultipartDataBase', VOID, VOID, [MultiPartData, CoroutineScope], [0, 1]);
|
|
@@ -136,12 +135,12 @@
|
|
|
136
135
|
//endregion
|
|
137
136
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
138
137
|
formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
|
|
139
|
-
this.
|
|
140
|
-
this.
|
|
141
|
-
this.
|
|
138
|
+
this.t33_1 = coroutineContext;
|
|
139
|
+
this.u33_1 = null;
|
|
140
|
+
this.v33_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
142
141
|
}
|
|
143
|
-
protoOf(CIOMultipartDataBase).
|
|
144
|
-
return this.
|
|
142
|
+
protoOf(CIOMultipartDataBase).js = function () {
|
|
143
|
+
return this.t33_1;
|
|
145
144
|
};
|
|
146
145
|
function get_IntArrayPool() {
|
|
147
146
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -154,103 +153,103 @@
|
|
|
154
153
|
}
|
|
155
154
|
var HeadersDataPool;
|
|
156
155
|
function thresholdReached($this) {
|
|
157
|
-
return $this.
|
|
156
|
+
return $this.x33_1 >= $this.y33_1 * 0.75;
|
|
158
157
|
}
|
|
159
158
|
function resize($this) {
|
|
160
|
-
var prevSize = $this.
|
|
161
|
-
var prevData = $this.
|
|
162
|
-
$this.
|
|
163
|
-
$this.
|
|
159
|
+
var prevSize = $this.x33_1;
|
|
160
|
+
var prevData = $this.z33_1;
|
|
161
|
+
$this.x33_1 = 0;
|
|
162
|
+
$this.y33_1 = imul($this.y33_1, 2) | 128;
|
|
164
163
|
var tmp = $this;
|
|
165
164
|
// Inline function 'kotlin.apply' call
|
|
166
|
-
var this_0 = get_HeadersDataPool().
|
|
167
|
-
this_0.
|
|
168
|
-
tmp.
|
|
169
|
-
var _iterator__ex2g4s = prevData.
|
|
165
|
+
var this_0 = get_HeadersDataPool().g1w();
|
|
166
|
+
this_0.c34(imul(prevData.b34(), 2) | 1);
|
|
167
|
+
tmp.z33_1 = this_0;
|
|
168
|
+
var _iterator__ex2g4s = prevData.d34().r();
|
|
170
169
|
while (_iterator__ex2g4s.s()) {
|
|
171
170
|
var headerOffset = _iterator__ex2g4s.t();
|
|
172
|
-
$this.
|
|
171
|
+
$this.f34(prevData.e34(headerOffset + 1 | 0), prevData.e34(headerOffset + 2 | 0), prevData.e34(headerOffset + 3 | 0), prevData.e34(headerOffset + 4 | 0));
|
|
173
172
|
}
|
|
174
|
-
get_HeadersDataPool().
|
|
173
|
+
get_HeadersDataPool().h1w(prevData);
|
|
175
174
|
// Inline function 'kotlin.require' call
|
|
176
175
|
// Inline function 'kotlin.require' call
|
|
177
|
-
if (!(prevSize === $this.
|
|
176
|
+
if (!(prevSize === $this.x33_1)) {
|
|
178
177
|
var message = 'Failed requirement.';
|
|
179
178
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
180
179
|
}
|
|
181
180
|
}
|
|
182
181
|
function headerHasName($this, name, headerOffset) {
|
|
183
|
-
var nameStartIndex = $this.
|
|
184
|
-
var nameEndIndex = $this.
|
|
185
|
-
return equalsLowerCase($this.
|
|
182
|
+
var nameStartIndex = $this.z33_1.e34(headerOffset + 1 | 0);
|
|
183
|
+
var nameEndIndex = $this.z33_1.e34(headerOffset + 2 | 0);
|
|
184
|
+
return equalsLowerCase($this.w33_1, nameStartIndex, nameEndIndex, name);
|
|
186
185
|
}
|
|
187
186
|
function HttpHeadersMap(builder) {
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
187
|
+
this.w33_1 = builder;
|
|
188
|
+
this.x33_1 = 0;
|
|
189
|
+
this.y33_1 = 0;
|
|
190
|
+
this.z33_1 = get_HeadersDataPool().g1w();
|
|
192
191
|
}
|
|
193
|
-
protoOf(HttpHeadersMap).
|
|
194
|
-
if (this.
|
|
192
|
+
protoOf(HttpHeadersMap).e2k = function (name) {
|
|
193
|
+
if (this.x33_1 === 0)
|
|
195
194
|
return null;
|
|
196
195
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
197
196
|
var this_0 = hashCodeLowerCase(name);
|
|
198
197
|
var hash = abs(this_0);
|
|
199
|
-
var headerIndex = hash % this.
|
|
200
|
-
while (!(this.
|
|
198
|
+
var headerIndex = hash % this.y33_1 | 0;
|
|
199
|
+
while (!(this.z33_1.e34(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
201
200
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
202
|
-
return this.
|
|
201
|
+
return this.g34(imul(headerIndex, 6));
|
|
203
202
|
}
|
|
204
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
203
|
+
headerIndex = (headerIndex + 1 | 0) % this.y33_1 | 0;
|
|
205
204
|
}
|
|
206
205
|
return null;
|
|
207
206
|
};
|
|
208
|
-
protoOf(HttpHeadersMap).
|
|
209
|
-
return this.
|
|
207
|
+
protoOf(HttpHeadersMap).h34 = function () {
|
|
208
|
+
return this.z33_1.d34();
|
|
210
209
|
};
|
|
211
|
-
protoOf(HttpHeadersMap).
|
|
210
|
+
protoOf(HttpHeadersMap).f34 = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
212
211
|
if (thresholdReached(this)) {
|
|
213
212
|
resize(this);
|
|
214
213
|
}
|
|
215
214
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
216
|
-
var this_0 = hashCodeLowerCase(this.
|
|
215
|
+
var this_0 = hashCodeLowerCase(this.w33_1, nameStartIndex, nameEndIndex);
|
|
217
216
|
var hash = abs(this_0);
|
|
218
|
-
var name = this.
|
|
219
|
-
var headerIndex = hash % this.
|
|
217
|
+
var name = this.w33_1.c(nameStartIndex, nameEndIndex);
|
|
218
|
+
var headerIndex = hash % this.y33_1 | 0;
|
|
220
219
|
var sameNameHeaderIndex = -1;
|
|
221
|
-
while (!(this.
|
|
220
|
+
while (!(this.z33_1.e34(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
222
221
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
223
222
|
sameNameHeaderIndex = headerIndex;
|
|
224
223
|
}
|
|
225
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
224
|
+
headerIndex = (headerIndex + 1 | 0) % this.y33_1 | 0;
|
|
226
225
|
}
|
|
227
226
|
var headerOffset = imul(headerIndex, 6);
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
227
|
+
this.z33_1.p34(headerOffset + 0 | 0, hash);
|
|
228
|
+
this.z33_1.p34(headerOffset + 1 | 0, nameStartIndex);
|
|
229
|
+
this.z33_1.p34(headerOffset + 2 | 0, nameEndIndex);
|
|
230
|
+
this.z33_1.p34(headerOffset + 3 | 0, valueStartIndex);
|
|
231
|
+
this.z33_1.p34(headerOffset + 4 | 0, valueEndIndex);
|
|
232
|
+
this.z33_1.p34(headerOffset + 5 | 0, -1);
|
|
234
233
|
if (!(sameNameHeaderIndex === -1)) {
|
|
235
|
-
this.
|
|
234
|
+
this.z33_1.p34(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
236
235
|
}
|
|
237
|
-
this.
|
|
236
|
+
this.x33_1 = this.x33_1 + 1 | 0;
|
|
238
237
|
};
|
|
239
|
-
protoOf(HttpHeadersMap).
|
|
240
|
-
var nameStartIndex = this.
|
|
241
|
-
var nameEndIndex = this.
|
|
242
|
-
return this.
|
|
238
|
+
protoOf(HttpHeadersMap).q34 = function (headerOffset) {
|
|
239
|
+
var nameStartIndex = this.z33_1.e34(headerOffset + 1 | 0);
|
|
240
|
+
var nameEndIndex = this.z33_1.e34(headerOffset + 2 | 0);
|
|
241
|
+
return this.w33_1.c(nameStartIndex, nameEndIndex);
|
|
243
242
|
};
|
|
244
|
-
protoOf(HttpHeadersMap).
|
|
245
|
-
var valueStartIndex = this.
|
|
246
|
-
var valueEndIndex = this.
|
|
247
|
-
return this.
|
|
243
|
+
protoOf(HttpHeadersMap).g34 = function (headerOffset) {
|
|
244
|
+
var valueStartIndex = this.z33_1.e34(headerOffset + 3 | 0);
|
|
245
|
+
var valueEndIndex = this.z33_1.e34(headerOffset + 4 | 0);
|
|
246
|
+
return this.w33_1.c(valueStartIndex, valueEndIndex);
|
|
248
247
|
};
|
|
249
|
-
protoOf(HttpHeadersMap).
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
get_HeadersDataPool().
|
|
253
|
-
this.
|
|
248
|
+
protoOf(HttpHeadersMap).a1h = function () {
|
|
249
|
+
this.x33_1 = 0;
|
|
250
|
+
this.y33_1 = 0;
|
|
251
|
+
get_HeadersDataPool().h1w(this.z33_1);
|
|
252
|
+
this.z33_1 = get_HeadersDataPool().g1w();
|
|
254
253
|
};
|
|
255
254
|
protoOf(HttpHeadersMap).toString = function () {
|
|
256
255
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -260,17 +259,17 @@
|
|
|
260
259
|
return this_0.toString();
|
|
261
260
|
};
|
|
262
261
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
263
|
-
this.
|
|
262
|
+
this.z34_1 = this$0;
|
|
264
263
|
CoroutineImpl.call(this, resultContinuation);
|
|
265
264
|
}
|
|
266
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
267
|
-
var tmp = this.
|
|
265
|
+
protoOf(HeadersData$headersStarts$slambda).f35 = function ($this$sequence, $completion) {
|
|
266
|
+
var tmp = this.g35($this$sequence, $completion);
|
|
268
267
|
tmp.w8_1 = Unit_instance;
|
|
269
268
|
tmp.x8_1 = null;
|
|
270
269
|
return tmp.c9();
|
|
271
270
|
};
|
|
272
271
|
protoOf(HeadersData$headersStarts$slambda).o9 = function (p1, $completion) {
|
|
273
|
-
return this.
|
|
272
|
+
return this.f35(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
274
273
|
};
|
|
275
274
|
protoOf(HeadersData$headersStarts$slambda).c9 = function () {
|
|
276
275
|
var suspendResult = this.w8_1;
|
|
@@ -280,29 +279,29 @@
|
|
|
280
279
|
switch (tmp) {
|
|
281
280
|
case 0:
|
|
282
281
|
this.v8_1 = 7;
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
282
|
+
this.b35_1 = 0;
|
|
283
|
+
this.e35_1 = this.z34_1.a34_1.r();
|
|
285
284
|
this.u8_1 = 1;
|
|
286
285
|
continue $sm;
|
|
287
286
|
case 1:
|
|
288
|
-
if (!this.
|
|
287
|
+
if (!this.e35_1.s()) {
|
|
289
288
|
this.u8_1 = 6;
|
|
290
289
|
continue $sm;
|
|
291
290
|
}
|
|
292
291
|
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
292
|
+
this.d35_1 = this.e35_1.t();
|
|
293
|
+
this.c35_1 = 0;
|
|
295
294
|
this.u8_1 = 2;
|
|
296
295
|
continue $sm;
|
|
297
296
|
case 2:
|
|
298
|
-
if (!(this.
|
|
297
|
+
if (!(this.c35_1 < this.d35_1.length)) {
|
|
299
298
|
this.u8_1 = 5;
|
|
300
299
|
continue $sm;
|
|
301
300
|
}
|
|
302
301
|
|
|
303
|
-
if (!(this.
|
|
302
|
+
if (!(this.z34_1.e34(this.b35_1 + 0 | 0) === -1)) {
|
|
304
303
|
this.u8_1 = 3;
|
|
305
|
-
suspendResult = this.
|
|
304
|
+
suspendResult = this.a35_1.ng(this.b35_1, this);
|
|
306
305
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
307
306
|
return suspendResult;
|
|
308
307
|
}
|
|
@@ -316,8 +315,8 @@
|
|
|
316
315
|
this.u8_1 = 4;
|
|
317
316
|
continue $sm;
|
|
318
317
|
case 4:
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
318
|
+
this.c35_1 = this.c35_1 + 6 | 0;
|
|
319
|
+
this.b35_1 = this.b35_1 + 6 | 0;
|
|
321
320
|
this.u8_1 = 2;
|
|
322
321
|
continue $sm;
|
|
323
322
|
case 5:
|
|
@@ -339,15 +338,15 @@
|
|
|
339
338
|
}
|
|
340
339
|
while (true);
|
|
341
340
|
};
|
|
342
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
343
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
344
|
-
i.
|
|
341
|
+
protoOf(HeadersData$headersStarts$slambda).g35 = function ($this$sequence, completion) {
|
|
342
|
+
var i = new HeadersData$headersStarts$slambda(this.z34_1, completion);
|
|
343
|
+
i.a35_1 = $this$sequence;
|
|
345
344
|
return i;
|
|
346
345
|
};
|
|
347
346
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
348
347
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
349
348
|
var l = function ($this$sequence, $completion) {
|
|
350
|
-
return i.
|
|
349
|
+
return i.f35($this$sequence, $completion);
|
|
351
350
|
};
|
|
352
351
|
l.$arity = 1;
|
|
353
352
|
return l;
|
|
@@ -355,55 +354,55 @@
|
|
|
355
354
|
function HeadersData() {
|
|
356
355
|
var tmp = this;
|
|
357
356
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
358
|
-
tmp.
|
|
357
|
+
tmp.a34_1 = ArrayList_init_$Create$();
|
|
359
358
|
}
|
|
360
|
-
protoOf(HeadersData).
|
|
361
|
-
return this.
|
|
359
|
+
protoOf(HeadersData).b34 = function () {
|
|
360
|
+
return this.a34_1.u();
|
|
362
361
|
};
|
|
363
|
-
protoOf(HeadersData).
|
|
362
|
+
protoOf(HeadersData).c34 = function (subArraysCount) {
|
|
364
363
|
// Inline function 'kotlin.repeat' call
|
|
365
364
|
var inductionVariable = 0;
|
|
366
365
|
if (inductionVariable < subArraysCount)
|
|
367
366
|
do {
|
|
368
367
|
var index = inductionVariable;
|
|
369
368
|
inductionVariable = inductionVariable + 1 | 0;
|
|
370
|
-
this.
|
|
369
|
+
this.a34_1.p(get_IntArrayPool().g1w());
|
|
371
370
|
}
|
|
372
371
|
while (inductionVariable < subArraysCount);
|
|
373
372
|
};
|
|
374
|
-
protoOf(HeadersData).
|
|
375
|
-
return this.
|
|
373
|
+
protoOf(HeadersData).e34 = function (index) {
|
|
374
|
+
return this.a34_1.v(index / 768 | 0)[index % 768 | 0];
|
|
376
375
|
};
|
|
377
|
-
protoOf(HeadersData).
|
|
378
|
-
this.
|
|
376
|
+
protoOf(HeadersData).p34 = function (index, value) {
|
|
377
|
+
this.a34_1.v(index / 768 | 0)[index % 768 | 0] = value;
|
|
379
378
|
};
|
|
380
|
-
protoOf(HeadersData).
|
|
379
|
+
protoOf(HeadersData).d34 = function () {
|
|
381
380
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
382
381
|
};
|
|
383
|
-
protoOf(HeadersData).
|
|
384
|
-
var _iterator__ex2g4s = this.
|
|
382
|
+
protoOf(HeadersData).a1h = function () {
|
|
383
|
+
var _iterator__ex2g4s = this.a34_1.r();
|
|
385
384
|
while (_iterator__ex2g4s.s()) {
|
|
386
385
|
var array = _iterator__ex2g4s.t();
|
|
387
|
-
get_IntArrayPool().
|
|
386
|
+
get_IntArrayPool().h1w(array);
|
|
388
387
|
}
|
|
389
|
-
this.
|
|
388
|
+
this.a34_1.b2();
|
|
390
389
|
};
|
|
391
390
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
392
391
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
393
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
392
|
+
var _iterator__ex2g4s = _this__u8e3s4.h34().r();
|
|
394
393
|
while (_iterator__ex2g4s.s()) {
|
|
395
394
|
var offset = _iterator__ex2g4s.t();
|
|
396
395
|
out.q(indent);
|
|
397
|
-
out.q(_this__u8e3s4.
|
|
396
|
+
out.q(_this__u8e3s4.q34(offset));
|
|
398
397
|
out.q(' => ');
|
|
399
|
-
out.q(_this__u8e3s4.
|
|
398
|
+
out.q(_this__u8e3s4.g34(offset));
|
|
400
399
|
out.q('\n');
|
|
401
400
|
}
|
|
402
401
|
}
|
|
403
402
|
function IntArrayPool$1() {
|
|
404
403
|
DefaultPool.call(this, 1000);
|
|
405
404
|
}
|
|
406
|
-
protoOf(IntArrayPool$1).
|
|
405
|
+
protoOf(IntArrayPool$1).z1v = function () {
|
|
407
406
|
var tmp = 0;
|
|
408
407
|
var tmp_0 = new Int32Array(768);
|
|
409
408
|
while (tmp < 768) {
|
|
@@ -412,25 +411,25 @@
|
|
|
412
411
|
}
|
|
413
412
|
return tmp_0;
|
|
414
413
|
};
|
|
415
|
-
protoOf(IntArrayPool$1).
|
|
414
|
+
protoOf(IntArrayPool$1).k35 = function (instance) {
|
|
416
415
|
fill(instance, -1);
|
|
417
|
-
return protoOf(DefaultPool).
|
|
416
|
+
return protoOf(DefaultPool).e1w.call(this, instance);
|
|
418
417
|
};
|
|
419
|
-
protoOf(IntArrayPool$1).
|
|
420
|
-
return this.
|
|
418
|
+
protoOf(IntArrayPool$1).e1w = function (instance) {
|
|
419
|
+
return this.k35(isIntArray(instance) ? instance : THROW_CCE());
|
|
421
420
|
};
|
|
422
421
|
function HeadersDataPool$1() {
|
|
423
422
|
DefaultPool.call(this, 1000);
|
|
424
423
|
}
|
|
425
|
-
protoOf(HeadersDataPool$1).
|
|
424
|
+
protoOf(HeadersDataPool$1).z1v = function () {
|
|
426
425
|
return new HeadersData();
|
|
427
426
|
};
|
|
428
|
-
protoOf(HeadersDataPool$1).
|
|
429
|
-
instance.
|
|
430
|
-
return protoOf(DefaultPool).
|
|
427
|
+
protoOf(HeadersDataPool$1).o35 = function (instance) {
|
|
428
|
+
instance.a1h();
|
|
429
|
+
return protoOf(DefaultPool).e1w.call(this, instance);
|
|
431
430
|
};
|
|
432
|
-
protoOf(HeadersDataPool$1).
|
|
433
|
-
return this.
|
|
431
|
+
protoOf(HeadersDataPool$1).e1w = function (instance) {
|
|
432
|
+
return this.o35(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
434
433
|
};
|
|
435
434
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
436
435
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -460,16 +459,16 @@
|
|
|
460
459
|
}
|
|
461
460
|
function parseHeaderName(text, range) {
|
|
462
461
|
_init_properties_HttpParser_kt__gbdom1();
|
|
463
|
-
var index = range.
|
|
464
|
-
var end = range.
|
|
462
|
+
var index = range.c36_1;
|
|
463
|
+
var end = range.d36_1;
|
|
465
464
|
while (index < end) {
|
|
466
465
|
var ch = text.b(index);
|
|
467
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
468
|
-
range.
|
|
466
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.c36_1)) {
|
|
467
|
+
range.c36_1 = index + 1 | 0;
|
|
469
468
|
return index;
|
|
470
469
|
}
|
|
471
470
|
if (isDelimiter(ch)) {
|
|
472
|
-
parseHeaderNameFailed(text, index, range.
|
|
471
|
+
parseHeaderNameFailed(text, index, range.c36_1, ch);
|
|
473
472
|
}
|
|
474
473
|
index = index + 1 | 0;
|
|
475
474
|
}
|
|
@@ -477,12 +476,12 @@
|
|
|
477
476
|
}
|
|
478
477
|
function parseHeaderValue(text, range) {
|
|
479
478
|
_init_properties_HttpParser_kt__gbdom1();
|
|
480
|
-
var start = range.
|
|
481
|
-
var end = range.
|
|
479
|
+
var start = range.c36_1;
|
|
480
|
+
var end = range.d36_1;
|
|
482
481
|
var index = start;
|
|
483
482
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
484
483
|
if (index >= end) {
|
|
485
|
-
range.
|
|
484
|
+
range.c36_1 = end;
|
|
486
485
|
return Unit_instance;
|
|
487
486
|
}
|
|
488
487
|
var valueStart = index;
|
|
@@ -496,8 +495,8 @@
|
|
|
496
495
|
valueLastIndex = index;
|
|
497
496
|
index = index + 1 | 0;
|
|
498
497
|
}
|
|
499
|
-
range.
|
|
500
|
-
range.
|
|
498
|
+
range.c36_1 = valueStart;
|
|
499
|
+
range.d36_1 = valueLastIndex + 1 | 0;
|
|
501
500
|
}
|
|
502
501
|
function validateHostHeader(host) {
|
|
503
502
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -538,9 +537,9 @@
|
|
|
538
537
|
}
|
|
539
538
|
function noColonFound(text, range) {
|
|
540
539
|
_init_properties_HttpParser_kt__gbdom1();
|
|
541
|
-
var tmp2 = range.
|
|
540
|
+
var tmp2 = range.c36_1;
|
|
542
541
|
// Inline function 'kotlin.text.substring' call
|
|
543
|
-
var endIndex = range.
|
|
542
|
+
var endIndex = range.d36_1;
|
|
544
543
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
545
544
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
546
545
|
}
|
|
@@ -556,9 +555,9 @@
|
|
|
556
555
|
}
|
|
557
556
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
558
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
558
|
+
this.x35_1 = input;
|
|
559
|
+
this.y35_1 = builder;
|
|
560
|
+
this.z35_1 = range;
|
|
562
561
|
}
|
|
563
562
|
protoOf($parseHeadersCOROUTINE$).c9 = function () {
|
|
564
563
|
var suspendResult = this.w8_1;
|
|
@@ -568,7 +567,7 @@
|
|
|
568
567
|
switch (tmp) {
|
|
569
568
|
case 0:
|
|
570
569
|
this.v8_1 = 7;
|
|
571
|
-
this.
|
|
570
|
+
this.a36_1 = new HttpHeadersMap(this.y35_1);
|
|
572
571
|
this.v8_1 = 6;
|
|
573
572
|
this.u8_1 = 1;
|
|
574
573
|
continue $sm;
|
|
@@ -579,7 +578,7 @@
|
|
|
579
578
|
}
|
|
580
579
|
|
|
581
580
|
this.u8_1 = 2;
|
|
582
|
-
suspendResult = readUTF8LineTo(this.
|
|
581
|
+
suspendResult = readUTF8LineTo(this.x35_1, this.y35_1, 8192, get_httpLineEndings(), this);
|
|
583
582
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
584
583
|
return suspendResult;
|
|
585
584
|
}
|
|
@@ -587,7 +586,7 @@
|
|
|
587
586
|
continue $sm;
|
|
588
587
|
case 2:
|
|
589
588
|
if (!suspendResult) {
|
|
590
|
-
this.
|
|
589
|
+
this.a36_1.a1h();
|
|
591
590
|
return null;
|
|
592
591
|
} else {
|
|
593
592
|
this.u8_1 = 3;
|
|
@@ -595,9 +594,9 @@
|
|
|
595
594
|
}
|
|
596
595
|
|
|
597
596
|
case 3:
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
if (this.
|
|
597
|
+
this.z35_1.d36_1 = this.y35_1.o34_1;
|
|
598
|
+
this.b36_1 = this.z35_1.d36_1 - this.z35_1.c36_1 | 0;
|
|
599
|
+
if (this.b36_1 === 0) {
|
|
601
600
|
this.u8_1 = 5;
|
|
602
601
|
continue $sm;
|
|
603
602
|
} else {
|
|
@@ -606,34 +605,34 @@
|
|
|
606
605
|
}
|
|
607
606
|
|
|
608
607
|
case 4:
|
|
609
|
-
if (this.
|
|
608
|
+
if (this.b36_1 >= 8192) {
|
|
610
609
|
var message = 'Header line length limit exceeded';
|
|
611
610
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
612
611
|
}
|
|
613
612
|
|
|
614
|
-
var nameStart = this.
|
|
615
|
-
var nameEnd = parseHeaderName(this.
|
|
616
|
-
var headerEnd = this.
|
|
617
|
-
parseHeaderValue(this.
|
|
618
|
-
var valueStart = this.
|
|
619
|
-
var valueEnd = this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
613
|
+
var nameStart = this.z35_1.c36_1;
|
|
614
|
+
var nameEnd = parseHeaderName(this.y35_1, this.z35_1);
|
|
615
|
+
var headerEnd = this.z35_1.d36_1;
|
|
616
|
+
parseHeaderValue(this.y35_1, this.z35_1);
|
|
617
|
+
var valueStart = this.z35_1.c36_1;
|
|
618
|
+
var valueEnd = this.z35_1.d36_1;
|
|
619
|
+
this.z35_1.c36_1 = headerEnd;
|
|
620
|
+
this.a36_1.f34(nameStart, nameEnd, valueStart, valueEnd);
|
|
622
621
|
this.u8_1 = 1;
|
|
623
622
|
continue $sm;
|
|
624
623
|
case 5:
|
|
625
|
-
var host = this.
|
|
624
|
+
var host = this.a36_1.e2k(HttpHeaders_getInstance().c2u_1);
|
|
626
625
|
if (!(host == null)) {
|
|
627
626
|
validateHostHeader(host);
|
|
628
627
|
}
|
|
629
628
|
|
|
630
|
-
return this.
|
|
629
|
+
return this.a36_1;
|
|
631
630
|
case 6:
|
|
632
631
|
this.v8_1 = 7;
|
|
633
632
|
var tmp_0 = this.x8_1;
|
|
634
633
|
if (tmp_0 instanceof Error) {
|
|
635
634
|
var t = this.x8_1;
|
|
636
|
-
this.
|
|
635
|
+
this.a36_1.a1h();
|
|
637
636
|
throw t;
|
|
638
637
|
} else {
|
|
639
638
|
throw this.x8_1;
|
|
@@ -658,8 +657,8 @@
|
|
|
658
657
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
659
658
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
660
659
|
hostForbiddenSymbols = setOf([new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(64))]);
|
|
661
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
662
|
-
versions = Companion_instance.
|
|
660
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().e1r_1, Companion_getInstance().d1r_1);
|
|
661
|
+
versions = Companion_instance.e36(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
663
662
|
}
|
|
664
663
|
}
|
|
665
664
|
function get_CrLf() {
|
|
@@ -674,23 +673,23 @@
|
|
|
674
673
|
var PrefixString;
|
|
675
674
|
function Preamble(body) {
|
|
676
675
|
MultipartEvent.call(this);
|
|
677
|
-
this.
|
|
676
|
+
this.f36_1 = body;
|
|
678
677
|
}
|
|
679
678
|
function MultipartPart(headers, body) {
|
|
680
679
|
MultipartEvent.call(this);
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
680
|
+
this.g36_1 = headers;
|
|
681
|
+
this.h36_1 = body;
|
|
683
682
|
}
|
|
684
683
|
function Epilogue(body) {
|
|
685
684
|
MultipartEvent.call(this);
|
|
686
|
-
this.
|
|
685
|
+
this.i36_1 = body;
|
|
687
686
|
}
|
|
688
687
|
function MultipartEvent() {
|
|
689
688
|
}
|
|
690
689
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
691
690
|
maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
|
|
692
691
|
_init_properties_Multipart_kt__ato98a();
|
|
693
|
-
if (!MultiPart_getInstance().
|
|
692
|
+
if (!MultiPart_getInstance().s2r(contentType)) {
|
|
694
693
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
695
694
|
}
|
|
696
695
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -867,18 +866,18 @@
|
|
|
867
866
|
boundaryBytes[_unary__edvuaz] = value;
|
|
868
867
|
}
|
|
869
868
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
869
|
+
this.c38_1 = $firstBoundary;
|
|
870
|
+
this.d38_1 = $countedInput;
|
|
872
871
|
CoroutineImpl.call(this, resultContinuation);
|
|
873
872
|
}
|
|
874
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
875
|
-
var tmp = this.
|
|
873
|
+
protoOf(parseMultipart$slambda$slambda).f38 = function ($this$writer, $completion) {
|
|
874
|
+
var tmp = this.g38($this$writer, $completion);
|
|
876
875
|
tmp.w8_1 = Unit_instance;
|
|
877
876
|
tmp.x8_1 = null;
|
|
878
877
|
return tmp.c9();
|
|
879
878
|
};
|
|
880
879
|
protoOf(parseMultipart$slambda$slambda).o9 = function (p1, $completion) {
|
|
881
|
-
return this.
|
|
880
|
+
return this.f38(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
882
881
|
};
|
|
883
882
|
protoOf(parseMultipart$slambda$slambda).c9 = function () {
|
|
884
883
|
var suspendResult = this.w8_1;
|
|
@@ -889,7 +888,7 @@
|
|
|
889
888
|
case 0:
|
|
890
889
|
this.v8_1 = 3;
|
|
891
890
|
this.u8_1 = 1;
|
|
892
|
-
suspendResult = parsePreambleImpl(this.
|
|
891
|
+
suspendResult = parsePreambleImpl(this.c38_1, this.d38_1, this.e38_1.q1t_1, new Long(8193, 0), this);
|
|
893
892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
894
893
|
return suspendResult;
|
|
895
894
|
}
|
|
@@ -897,7 +896,7 @@
|
|
|
897
896
|
continue $sm;
|
|
898
897
|
case 1:
|
|
899
898
|
this.u8_1 = 2;
|
|
900
|
-
suspendResult = this.
|
|
899
|
+
suspendResult = this.e38_1.q1t_1.x1l(this);
|
|
901
900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
901
|
return suspendResult;
|
|
903
902
|
}
|
|
@@ -919,34 +918,34 @@
|
|
|
919
918
|
}
|
|
920
919
|
while (true);
|
|
921
920
|
};
|
|
922
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
923
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
924
|
-
i.
|
|
921
|
+
protoOf(parseMultipart$slambda$slambda).g38 = function ($this$writer, completion) {
|
|
922
|
+
var i = new parseMultipart$slambda$slambda(this.c38_1, this.d38_1, completion);
|
|
923
|
+
i.e38_1 = $this$writer;
|
|
925
924
|
return i;
|
|
926
925
|
};
|
|
927
926
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
928
927
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
929
928
|
var l = function ($this$writer, $completion) {
|
|
930
|
-
return i.
|
|
929
|
+
return i.f38($this$writer, $completion);
|
|
931
930
|
};
|
|
932
931
|
l.$arity = 1;
|
|
933
932
|
return l;
|
|
934
933
|
}
|
|
935
934
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
936
|
-
this.
|
|
937
|
-
this.
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
935
|
+
this.p38_1 = $input;
|
|
936
|
+
this.q38_1 = $boundaryPrefixed;
|
|
937
|
+
this.r38_1 = $maxPartSize;
|
|
938
|
+
this.s38_1 = $totalLength;
|
|
940
939
|
CoroutineImpl.call(this, resultContinuation);
|
|
941
940
|
}
|
|
942
|
-
protoOf(parseMultipart$slambda).
|
|
943
|
-
var tmp = this.
|
|
941
|
+
protoOf(parseMultipart$slambda).b39 = function ($this$produce, $completion) {
|
|
942
|
+
var tmp = this.c39($this$produce, $completion);
|
|
944
943
|
tmp.w8_1 = Unit_instance;
|
|
945
944
|
tmp.x8_1 = null;
|
|
946
945
|
return tmp.c9();
|
|
947
946
|
};
|
|
948
947
|
protoOf(parseMultipart$slambda).o9 = function (p1, $completion) {
|
|
949
|
-
return this.
|
|
948
|
+
return this.b39((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
950
949
|
};
|
|
951
950
|
protoOf(parseMultipart$slambda).c9 = function () {
|
|
952
951
|
var suspendResult = this.w8_1;
|
|
@@ -956,11 +955,11 @@
|
|
|
956
955
|
switch (tmp) {
|
|
957
956
|
case 0:
|
|
958
957
|
this.v8_1 = 25;
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
958
|
+
this.u38_1 = counted(this.p38_1);
|
|
959
|
+
this.v38_1 = this.u38_1.n1v();
|
|
960
|
+
this.z38_1 = this.q38_1.qo(get_PrefixString().u());
|
|
962
961
|
this.u8_1 = 1;
|
|
963
|
-
suspendResult = readRemaining(writer(this.
|
|
962
|
+
suspendResult = readRemaining(writer(this.t38_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.z38_1, this.u38_1, null)).o1t_1, this);
|
|
964
963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
964
|
return suspendResult;
|
|
966
965
|
}
|
|
@@ -970,7 +969,7 @@
|
|
|
970
969
|
var preambleData = suspendResult;
|
|
971
970
|
if (compare(get_remaining(preambleData), new Long(0, 0)) > 0) {
|
|
972
971
|
this.u8_1 = 2;
|
|
973
|
-
suspendResult = this.
|
|
972
|
+
suspendResult = this.t38_1.o19(new Preamble(preambleData), this);
|
|
974
973
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
975
974
|
return suspendResult;
|
|
976
975
|
}
|
|
@@ -987,31 +986,31 @@
|
|
|
987
986
|
this.u8_1 = 4;
|
|
988
987
|
continue $sm;
|
|
989
988
|
case 4:
|
|
990
|
-
if (!this.
|
|
989
|
+
if (!this.u38_1.u1l()) {
|
|
991
990
|
this.u8_1 = 5;
|
|
992
|
-
suspendResult = skipIfFound(this.
|
|
991
|
+
suspendResult = skipIfFound(this.u38_1, get_PrefixString(), this);
|
|
993
992
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
994
993
|
return suspendResult;
|
|
995
994
|
}
|
|
996
995
|
continue $sm;
|
|
997
996
|
} else {
|
|
998
|
-
this.
|
|
997
|
+
this.a39_1 = false;
|
|
999
998
|
this.u8_1 = 6;
|
|
1000
999
|
continue $sm;
|
|
1001
1000
|
}
|
|
1002
1001
|
|
|
1003
1002
|
case 5:
|
|
1004
|
-
this.
|
|
1003
|
+
this.a39_1 = !suspendResult;
|
|
1005
1004
|
this.u8_1 = 6;
|
|
1006
1005
|
continue $sm;
|
|
1007
1006
|
case 6:
|
|
1008
|
-
if (!this.
|
|
1007
|
+
if (!this.a39_1) {
|
|
1009
1008
|
this.u8_1 = 15;
|
|
1010
1009
|
continue $sm;
|
|
1011
1010
|
}
|
|
1012
1011
|
|
|
1013
1012
|
this.u8_1 = 7;
|
|
1014
|
-
suspendResult = skipIfFound(this.
|
|
1013
|
+
suspendResult = skipIfFound(this.u38_1, get_CrLf(), this);
|
|
1015
1014
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1015
|
return suspendResult;
|
|
1017
1016
|
}
|
|
@@ -1019,7 +1018,7 @@
|
|
|
1019
1018
|
continue $sm;
|
|
1020
1019
|
case 7:
|
|
1021
1020
|
this.u8_1 = 8;
|
|
1022
|
-
suspendResult = skipIfFound(this.
|
|
1021
|
+
suspendResult = skipIfFound(this.u38_1, this.z38_1, this);
|
|
1023
1022
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1024
1023
|
return suspendResult;
|
|
1025
1024
|
}
|
|
@@ -1035,42 +1034,42 @@
|
|
|
1035
1034
|
}
|
|
1036
1035
|
|
|
1037
1036
|
case 9:
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1040
|
-
var part = new MultipartPart(this.
|
|
1037
|
+
this.w38_1 = new ByteChannel();
|
|
1038
|
+
this.y38_1 = CompletableDeferred();
|
|
1039
|
+
var part = new MultipartPart(this.y38_1, this.w38_1);
|
|
1041
1040
|
this.u8_1 = 10;
|
|
1042
|
-
suspendResult = this.
|
|
1041
|
+
suspendResult = this.t38_1.o19(part, this);
|
|
1043
1042
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1044
1043
|
return suspendResult;
|
|
1045
1044
|
}
|
|
1046
1045
|
|
|
1047
1046
|
continue $sm;
|
|
1048
1047
|
case 10:
|
|
1049
|
-
this.
|
|
1048
|
+
this.x38_1 = null;
|
|
1050
1049
|
this.v8_1 = 14;
|
|
1051
1050
|
this.u8_1 = 11;
|
|
1052
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1051
|
+
suspendResult = parsePartHeadersImpl(this.u38_1, this);
|
|
1053
1052
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1054
1053
|
return suspendResult;
|
|
1055
1054
|
}
|
|
1056
1055
|
|
|
1057
1056
|
continue $sm;
|
|
1058
1057
|
case 11:
|
|
1059
|
-
this.
|
|
1060
|
-
if (!this.
|
|
1061
|
-
this.
|
|
1058
|
+
this.x38_1 = suspendResult;
|
|
1059
|
+
if (!this.y38_1.r10(this.x38_1)) {
|
|
1060
|
+
this.x38_1.a1h();
|
|
1062
1061
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1063
1062
|
}
|
|
1064
1063
|
|
|
1065
1064
|
this.u8_1 = 12;
|
|
1066
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1065
|
+
suspendResult = parsePartBodyImpl(this.q38_1, this.u38_1, this.w38_1, this.x38_1, this.r38_1, this);
|
|
1067
1066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1068
1067
|
return suspendResult;
|
|
1069
1068
|
}
|
|
1070
1069
|
|
|
1071
1070
|
continue $sm;
|
|
1072
1071
|
case 12:
|
|
1073
|
-
this.
|
|
1072
|
+
this.w38_1.b4();
|
|
1074
1073
|
this.v8_1 = 25;
|
|
1075
1074
|
this.u8_1 = 13;
|
|
1076
1075
|
continue $sm;
|
|
@@ -1083,15 +1082,15 @@
|
|
|
1083
1082
|
var tmp_0 = this.x8_1;
|
|
1084
1083
|
if (tmp_0 instanceof Error) {
|
|
1085
1084
|
var cause = this.x8_1;
|
|
1086
|
-
if (this.
|
|
1087
|
-
var tmp0_safe_receiver = this.
|
|
1085
|
+
if (this.y38_1.s10(cause)) {
|
|
1086
|
+
var tmp0_safe_receiver = this.x38_1;
|
|
1088
1087
|
if (tmp0_safe_receiver == null)
|
|
1089
1088
|
null;
|
|
1090
1089
|
else {
|
|
1091
|
-
tmp0_safe_receiver.
|
|
1090
|
+
tmp0_safe_receiver.a1h();
|
|
1092
1091
|
}
|
|
1093
1092
|
}
|
|
1094
|
-
close(this.
|
|
1093
|
+
close(this.w38_1, cause);
|
|
1095
1094
|
throw cause;
|
|
1096
1095
|
} else {
|
|
1097
1096
|
throw this.x8_1;
|
|
@@ -1099,7 +1098,7 @@
|
|
|
1099
1098
|
|
|
1100
1099
|
case 15:
|
|
1101
1100
|
this.u8_1 = 16;
|
|
1102
|
-
suspendResult = skipIfFound(this.
|
|
1101
|
+
suspendResult = skipIfFound(this.u38_1, get_CrLf(), this);
|
|
1103
1102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1104
1103
|
return suspendResult;
|
|
1105
1104
|
}
|
|
@@ -1107,21 +1106,21 @@
|
|
|
1107
1106
|
continue $sm;
|
|
1108
1107
|
case 16:
|
|
1109
1108
|
this.u8_1 = 17;
|
|
1110
|
-
suspendResult = skipIfFound(this.
|
|
1109
|
+
suspendResult = skipIfFound(this.u38_1, get_CrLf(), this);
|
|
1111
1110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1112
1111
|
return suspendResult;
|
|
1113
1112
|
}
|
|
1114
1113
|
|
|
1115
1114
|
continue $sm;
|
|
1116
1115
|
case 17:
|
|
1117
|
-
if (!(this.
|
|
1118
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1119
|
-
var size = subtract(this.
|
|
1116
|
+
if (!(this.s38_1 == null)) {
|
|
1117
|
+
var consumedExceptEpilogue = subtract(this.u38_1.n1v(), this.v38_1);
|
|
1118
|
+
var size = subtract(this.s38_1, consumedExceptEpilogue);
|
|
1120
1119
|
if (compare(size, new Long(2147483647, 0)) > 0)
|
|
1121
1120
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1122
1121
|
if (compare(size, new Long(0, 0)) > 0) {
|
|
1123
1122
|
this.u8_1 = 21;
|
|
1124
|
-
suspendResult = readPacket(this.
|
|
1123
|
+
suspendResult = readPacket(this.u38_1, convertToInt(size), this);
|
|
1125
1124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1126
1125
|
return suspendResult;
|
|
1127
1126
|
}
|
|
@@ -1132,7 +1131,7 @@
|
|
|
1132
1131
|
}
|
|
1133
1132
|
} else {
|
|
1134
1133
|
this.u8_1 = 18;
|
|
1135
|
-
suspendResult = readRemaining(this.
|
|
1134
|
+
suspendResult = readRemaining(this.u38_1, this);
|
|
1136
1135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1137
1136
|
return suspendResult;
|
|
1138
1137
|
}
|
|
@@ -1141,9 +1140,9 @@
|
|
|
1141
1140
|
|
|
1142
1141
|
case 18:
|
|
1143
1142
|
var epilogueContent = suspendResult;
|
|
1144
|
-
if (!epilogueContent.
|
|
1143
|
+
if (!epilogueContent.yo()) {
|
|
1145
1144
|
this.u8_1 = 19;
|
|
1146
|
-
suspendResult = this.
|
|
1145
|
+
suspendResult = this.t38_1.o19(new Epilogue(epilogueContent), this);
|
|
1147
1146
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1148
1147
|
return suspendResult;
|
|
1149
1148
|
}
|
|
@@ -1163,7 +1162,7 @@
|
|
|
1163
1162
|
var ARGUMENT = suspendResult;
|
|
1164
1163
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1165
1164
|
this.u8_1 = 22;
|
|
1166
|
-
suspendResult = this.
|
|
1165
|
+
suspendResult = this.t38_1.o19(ARGUMENT_0, this);
|
|
1167
1166
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1168
1167
|
return suspendResult;
|
|
1169
1168
|
}
|
|
@@ -1191,22 +1190,22 @@
|
|
|
1191
1190
|
}
|
|
1192
1191
|
while (true);
|
|
1193
1192
|
};
|
|
1194
|
-
protoOf(parseMultipart$slambda).
|
|
1195
|
-
var i = new parseMultipart$slambda(this.
|
|
1196
|
-
i.
|
|
1193
|
+
protoOf(parseMultipart$slambda).c39 = function ($this$produce, completion) {
|
|
1194
|
+
var i = new parseMultipart$slambda(this.p38_1, this.q38_1, this.r38_1, this.s38_1, completion);
|
|
1195
|
+
i.t38_1 = $this$produce;
|
|
1197
1196
|
return i;
|
|
1198
1197
|
};
|
|
1199
1198
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1200
1199
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1201
1200
|
var l = function ($this$produce, $completion) {
|
|
1202
|
-
return i.
|
|
1201
|
+
return i.b39($this$produce, $completion);
|
|
1203
1202
|
};
|
|
1204
1203
|
l.$arity = 1;
|
|
1205
1204
|
return l;
|
|
1206
1205
|
}
|
|
1207
1206
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1208
1207
|
CoroutineImpl.call(this, resultContinuation);
|
|
1209
|
-
this.
|
|
1208
|
+
this.r36_1 = input;
|
|
1210
1209
|
}
|
|
1211
1210
|
protoOf($parsePartHeadersImplCOROUTINE$).c9 = function () {
|
|
1212
1211
|
var suspendResult = this.w8_1;
|
|
@@ -1216,10 +1215,10 @@
|
|
|
1216
1215
|
switch (tmp) {
|
|
1217
1216
|
case 0:
|
|
1218
1217
|
this.v8_1 = 3;
|
|
1219
|
-
this.
|
|
1218
|
+
this.s36_1 = new CharArrayBuilder();
|
|
1220
1219
|
this.v8_1 = 2;
|
|
1221
1220
|
this.u8_1 = 1;
|
|
1222
|
-
suspendResult = parseHeaders(this.
|
|
1221
|
+
suspendResult = parseHeaders(this.r36_1, this.s36_1, VOID, this);
|
|
1223
1222
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1224
1223
|
return suspendResult;
|
|
1225
1224
|
}
|
|
@@ -1240,7 +1239,7 @@
|
|
|
1240
1239
|
var tmp_1 = this.x8_1;
|
|
1241
1240
|
if (tmp_1 instanceof Error) {
|
|
1242
1241
|
var t = this.x8_1;
|
|
1243
|
-
this.
|
|
1242
|
+
this.s36_1.a1h();
|
|
1244
1243
|
throw t;
|
|
1245
1244
|
} else {
|
|
1246
1245
|
throw this.x8_1;
|
|
@@ -1262,11 +1261,11 @@
|
|
|
1262
1261
|
};
|
|
1263
1262
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1264
1263
|
CoroutineImpl.call(this, resultContinuation);
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1264
|
+
this.b37_1 = boundaryPrefixed;
|
|
1265
|
+
this.c37_1 = input;
|
|
1266
|
+
this.d37_1 = output;
|
|
1267
|
+
this.e37_1 = headers;
|
|
1268
|
+
this.f37_1 = limit;
|
|
1270
1269
|
}
|
|
1271
1270
|
protoOf($parsePartBodyImplCOROUTINE$).c9 = function () {
|
|
1272
1271
|
var suspendResult = this.w8_1;
|
|
@@ -1276,34 +1275,35 @@
|
|
|
1276
1275
|
switch (tmp) {
|
|
1277
1276
|
case 0:
|
|
1278
1277
|
this.v8_1 = 6;
|
|
1279
|
-
var tmp0_safe_receiver = this.
|
|
1278
|
+
var tmp0_safe_receiver = this.e37_1.e2k('Content-Length');
|
|
1280
1279
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1281
1280
|
if (contentLength == null) {
|
|
1282
1281
|
this.u8_1 = 3;
|
|
1283
|
-
suspendResult = readUntil(this.
|
|
1282
|
+
suspendResult = readUntil(this.c37_1, this.b37_1, this.d37_1, this.f37_1, true, this);
|
|
1284
1283
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1285
1284
|
return suspendResult;
|
|
1286
1285
|
}
|
|
1287
1286
|
continue $sm;
|
|
1288
1287
|
} else {
|
|
1289
|
-
|
|
1288
|
+
var containsUpper = this.f37_1;
|
|
1289
|
+
if (compare(new Long(0, 0), contentLength) <= 0 ? compare(contentLength, containsUpper) <= 0 : false) {
|
|
1290
1290
|
this.u8_1 = 1;
|
|
1291
|
-
suspendResult = copyTo(this.
|
|
1291
|
+
suspendResult = copyTo(this.c37_1, this.d37_1, contentLength, this);
|
|
1292
1292
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1293
1293
|
return suspendResult;
|
|
1294
1294
|
}
|
|
1295
1295
|
continue $sm;
|
|
1296
1296
|
} else {
|
|
1297
1297
|
var tmp_0 = this;
|
|
1298
|
-
throwLimitExceeded(contentLength, this.
|
|
1298
|
+
throwLimitExceeded(contentLength, this.f37_1);
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
1302
|
break;
|
|
1303
1303
|
case 1:
|
|
1304
|
-
this.
|
|
1304
|
+
this.i37_1 = suspendResult;
|
|
1305
1305
|
this.u8_1 = 2;
|
|
1306
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1306
|
+
suspendResult = skipIfFoundReadCount(this.c37_1, this.b37_1, this);
|
|
1307
1307
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1308
1308
|
return suspendResult;
|
|
1309
1309
|
}
|
|
@@ -1311,24 +1311,24 @@
|
|
|
1311
1311
|
continue $sm;
|
|
1312
1312
|
case 2:
|
|
1313
1313
|
var ARGUMENT = suspendResult;
|
|
1314
|
-
this.
|
|
1314
|
+
this.h37_1 = add(this.i37_1, ARGUMENT);
|
|
1315
1315
|
this.u8_1 = 4;
|
|
1316
1316
|
continue $sm;
|
|
1317
1317
|
case 3:
|
|
1318
|
-
this.
|
|
1318
|
+
this.h37_1 = suspendResult;
|
|
1319
1319
|
this.u8_1 = 4;
|
|
1320
1320
|
continue $sm;
|
|
1321
1321
|
case 4:
|
|
1322
|
-
this.
|
|
1322
|
+
this.g37_1 = this.h37_1;
|
|
1323
1323
|
this.u8_1 = 5;
|
|
1324
|
-
suspendResult = this.
|
|
1324
|
+
suspendResult = this.d37_1.l1l(this);
|
|
1325
1325
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1326
1326
|
return suspendResult;
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
1329
|
continue $sm;
|
|
1330
1330
|
case 5:
|
|
1331
|
-
return this.
|
|
1331
|
+
return this.g37_1;
|
|
1332
1332
|
case 6:
|
|
1333
1333
|
throw this.x8_1;
|
|
1334
1334
|
}
|
|
@@ -1345,8 +1345,8 @@
|
|
|
1345
1345
|
};
|
|
1346
1346
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1347
1347
|
CoroutineImpl.call(this, resultContinuation);
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1348
|
+
this.r37_1 = _this__u8e3s4;
|
|
1349
|
+
this.s37_1 = prefix;
|
|
1350
1350
|
}
|
|
1351
1351
|
protoOf($skipIfFoundReadCountCOROUTINE$).c9 = function () {
|
|
1352
1352
|
var suspendResult = this.w8_1;
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
case 0:
|
|
1358
1358
|
this.v8_1 = 3;
|
|
1359
1359
|
this.u8_1 = 1;
|
|
1360
|
-
suspendResult = skipIfFound(this.
|
|
1360
|
+
suspendResult = skipIfFound(this.r37_1, this.s37_1, this);
|
|
1361
1361
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1362
1362
|
return suspendResult;
|
|
1363
1363
|
}
|
|
@@ -1366,18 +1366,18 @@
|
|
|
1366
1366
|
case 1:
|
|
1367
1367
|
if (suspendResult) {
|
|
1368
1368
|
var tmp_0 = this;
|
|
1369
|
-
tmp_0.
|
|
1369
|
+
tmp_0.t37_1 = fromInt(this.s37_1.u());
|
|
1370
1370
|
this.u8_1 = 2;
|
|
1371
1371
|
continue $sm;
|
|
1372
1372
|
} else {
|
|
1373
1373
|
var tmp_1 = this;
|
|
1374
|
-
tmp_1.
|
|
1374
|
+
tmp_1.t37_1 = new Long(0, 0);
|
|
1375
1375
|
this.u8_1 = 2;
|
|
1376
1376
|
continue $sm;
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
1379
1379
|
case 2:
|
|
1380
|
-
return this.
|
|
1380
|
+
return this.t37_1;
|
|
1381
1381
|
case 3:
|
|
1382
1382
|
throw this.x8_1;
|
|
1383
1383
|
}
|
|
@@ -1465,16 +1465,16 @@
|
|
|
1465
1465
|
return new Char(charSequenceGet(s, idx));
|
|
1466
1466
|
}
|
|
1467
1467
|
function Node(ch, exact, children) {
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1470
|
-
this.
|
|
1468
|
+
this.d39_1 = ch;
|
|
1469
|
+
this.e39_1 = exact;
|
|
1470
|
+
this.f39_1 = children;
|
|
1471
1471
|
var tmp = this;
|
|
1472
1472
|
var tmp_0 = 0;
|
|
1473
1473
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1474
1474
|
var tmp_1 = Array(256);
|
|
1475
1475
|
while (tmp_0 < 256) {
|
|
1476
1476
|
var tmp_2 = tmp_0;
|
|
1477
|
-
var tmp0 = this.
|
|
1477
|
+
var tmp0 = this.f39_1;
|
|
1478
1478
|
var tmp$ret$3;
|
|
1479
1479
|
$l$block_0: {
|
|
1480
1480
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1484,7 +1484,7 @@
|
|
|
1484
1484
|
while (_iterator__ex2g4s.s()) {
|
|
1485
1485
|
var element = _iterator__ex2g4s.t();
|
|
1486
1486
|
// Inline function 'kotlin.code' call
|
|
1487
|
-
var this_0 = element.
|
|
1487
|
+
var this_0 = element.d39_1;
|
|
1488
1488
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1489
1489
|
if (found) {
|
|
1490
1490
|
tmp$ret$3 = null;
|
|
@@ -1503,15 +1503,15 @@
|
|
|
1503
1503
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
1504
1504
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1505
1505
|
}
|
|
1506
|
-
tmp.
|
|
1506
|
+
tmp.g39_1 = tmp_1;
|
|
1507
1507
|
}
|
|
1508
1508
|
function Companion() {
|
|
1509
1509
|
}
|
|
1510
|
-
protoOf(Companion).
|
|
1510
|
+
protoOf(Companion).e36 = function (from) {
|
|
1511
1511
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1512
|
-
return this.
|
|
1512
|
+
return this.h39(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1513
1513
|
};
|
|
1514
|
-
protoOf(Companion).
|
|
1514
|
+
protoOf(Companion).h39 = function (from, length, charAt) {
|
|
1515
1515
|
var tmp$ret$0;
|
|
1516
1516
|
$l$block_0: {
|
|
1517
1517
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1588,10 +1588,10 @@
|
|
|
1588
1588
|
return Companion_instance;
|
|
1589
1589
|
}
|
|
1590
1590
|
function AsciiCharTree(root) {
|
|
1591
|
-
this.
|
|
1591
|
+
this.i39_1 = root;
|
|
1592
1592
|
}
|
|
1593
1593
|
function getImpl($this, index) {
|
|
1594
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1594
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.k34_1).length | 0];
|
|
1595
1595
|
}
|
|
1596
1596
|
function copy($this, startIndex, endIndex) {
|
|
1597
1597
|
if (startIndex === endIndex)
|
|
@@ -1620,27 +1620,27 @@
|
|
|
1620
1620
|
return builder;
|
|
1621
1621
|
}
|
|
1622
1622
|
function SubSequenceImpl($outer, start, end) {
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1623
|
+
this.m39_1 = $outer;
|
|
1624
|
+
this.j39_1 = start;
|
|
1625
|
+
this.k39_1 = end;
|
|
1626
|
+
this.l39_1 = null;
|
|
1627
1627
|
}
|
|
1628
1628
|
protoOf(SubSequenceImpl).a = function () {
|
|
1629
|
-
return this.
|
|
1629
|
+
return this.k39_1 - this.j39_1 | 0;
|
|
1630
1630
|
};
|
|
1631
1631
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1632
|
-
var withOffset = index + this.
|
|
1632
|
+
var withOffset = index + this.j39_1 | 0;
|
|
1633
1633
|
// Inline function 'kotlin.require' call
|
|
1634
1634
|
if (!(index >= 0)) {
|
|
1635
1635
|
var message = 'index is negative: ' + index;
|
|
1636
1636
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1637
1637
|
}
|
|
1638
1638
|
// Inline function 'kotlin.require' call
|
|
1639
|
-
if (!(withOffset < this.
|
|
1639
|
+
if (!(withOffset < this.k39_1)) {
|
|
1640
1640
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1641
1641
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1642
1642
|
}
|
|
1643
|
-
return getImpl(this.
|
|
1643
|
+
return getImpl(this.m39_1, withOffset);
|
|
1644
1644
|
};
|
|
1645
1645
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1646
1646
|
// Inline function 'kotlin.require' call
|
|
@@ -1654,21 +1654,21 @@
|
|
|
1654
1654
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1655
1655
|
}
|
|
1656
1656
|
// Inline function 'kotlin.require' call
|
|
1657
|
-
if (!(endIndex <= (this.
|
|
1657
|
+
if (!(endIndex <= (this.k39_1 - this.j39_1 | 0))) {
|
|
1658
1658
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1659
1659
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1660
1660
|
}
|
|
1661
1661
|
if (startIndex === endIndex)
|
|
1662
1662
|
return '';
|
|
1663
|
-
return new SubSequenceImpl(this.
|
|
1663
|
+
return new SubSequenceImpl(this.m39_1, this.j39_1 + startIndex | 0, this.j39_1 + endIndex | 0);
|
|
1664
1664
|
};
|
|
1665
1665
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1666
|
-
var tmp0_elvis_lhs = this.
|
|
1666
|
+
var tmp0_elvis_lhs = this.l39_1;
|
|
1667
1667
|
var tmp;
|
|
1668
1668
|
if (tmp0_elvis_lhs == null) {
|
|
1669
1669
|
// Inline function 'kotlin.also' call
|
|
1670
|
-
var this_0 = toString(copy(this.
|
|
1671
|
-
this.
|
|
1670
|
+
var this_0 = toString(copy(this.m39_1, this.j39_1, this.k39_1));
|
|
1671
|
+
this.l39_1 = this_0;
|
|
1672
1672
|
tmp = this_0;
|
|
1673
1673
|
} else {
|
|
1674
1674
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1680,20 +1680,20 @@
|
|
|
1680
1680
|
return false;
|
|
1681
1681
|
if (!(charSequenceLength(other) === this.a()))
|
|
1682
1682
|
return false;
|
|
1683
|
-
return rangeEqualsImpl(this.
|
|
1683
|
+
return rangeEqualsImpl(this.m39_1, this.j39_1, other, 0, this.a());
|
|
1684
1684
|
};
|
|
1685
1685
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1686
|
-
var tmp0_safe_receiver = this.
|
|
1686
|
+
var tmp0_safe_receiver = this.l39_1;
|
|
1687
1687
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1688
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1688
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.m39_1, this.j39_1, this.k39_1) : tmp1_elvis_lhs;
|
|
1689
1689
|
};
|
|
1690
1690
|
function bufferForIndex($this, index) {
|
|
1691
|
-
var list = $this.
|
|
1691
|
+
var list = $this.j34_1;
|
|
1692
1692
|
if (list == null) {
|
|
1693
1693
|
if (index >= 2048) {
|
|
1694
1694
|
throwSingleBuffer($this, index);
|
|
1695
1695
|
}
|
|
1696
|
-
var tmp0_elvis_lhs = $this.
|
|
1696
|
+
var tmp0_elvis_lhs = $this.k34_1;
|
|
1697
1697
|
var tmp;
|
|
1698
1698
|
if (tmp0_elvis_lhs == null) {
|
|
1699
1699
|
throwSingleBuffer($this, index);
|
|
@@ -1702,29 +1702,29 @@
|
|
|
1702
1702
|
}
|
|
1703
1703
|
return tmp;
|
|
1704
1704
|
}
|
|
1705
|
-
return list.v(index / ensureNotNull($this.
|
|
1705
|
+
return list.v(index / ensureNotNull($this.k34_1).length | 0);
|
|
1706
1706
|
}
|
|
1707
1707
|
function throwSingleBuffer($this, index) {
|
|
1708
|
-
if ($this.
|
|
1708
|
+
if ($this.m34_1)
|
|
1709
1709
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1710
1710
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1711
1711
|
}
|
|
1712
1712
|
function nonFullBuffer($this) {
|
|
1713
|
-
return $this.
|
|
1713
|
+
return $this.n34_1 === 0 ? appendNewArray($this) : ensureNotNull($this.k34_1);
|
|
1714
1714
|
}
|
|
1715
1715
|
function appendNewArray($this) {
|
|
1716
|
-
var newBuffer = $this.
|
|
1717
|
-
var existing = $this.
|
|
1718
|
-
$this.
|
|
1719
|
-
$this.
|
|
1720
|
-
$this.
|
|
1716
|
+
var newBuffer = $this.i34_1.g1w();
|
|
1717
|
+
var existing = $this.k34_1;
|
|
1718
|
+
$this.k34_1 = newBuffer;
|
|
1719
|
+
$this.n34_1 = newBuffer.length;
|
|
1720
|
+
$this.m34_1 = false;
|
|
1721
1721
|
if (!(existing == null)) {
|
|
1722
|
-
var tmp0_elvis_lhs = $this.
|
|
1722
|
+
var tmp0_elvis_lhs = $this.j34_1;
|
|
1723
1723
|
var tmp;
|
|
1724
1724
|
if (tmp0_elvis_lhs == null) {
|
|
1725
1725
|
// Inline function 'kotlin.also' call
|
|
1726
1726
|
var this_0 = ArrayList_init_$Create$();
|
|
1727
|
-
$this.
|
|
1727
|
+
$this.j34_1 = this_0;
|
|
1728
1728
|
this_0.p(existing);
|
|
1729
1729
|
tmp = this_0;
|
|
1730
1730
|
} else {
|
|
@@ -1763,20 +1763,20 @@
|
|
|
1763
1763
|
return hc;
|
|
1764
1764
|
}
|
|
1765
1765
|
function currentPosition($this) {
|
|
1766
|
-
return ensureNotNull($this.
|
|
1766
|
+
return ensureNotNull($this.k34_1).length - $this.n34_1 | 0;
|
|
1767
1767
|
}
|
|
1768
1768
|
function CharArrayBuilder(pool) {
|
|
1769
1769
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1774
|
-
this.
|
|
1775
|
-
this.
|
|
1776
|
-
this.
|
|
1770
|
+
this.i34_1 = pool;
|
|
1771
|
+
this.j34_1 = null;
|
|
1772
|
+
this.k34_1 = null;
|
|
1773
|
+
this.l34_1 = null;
|
|
1774
|
+
this.m34_1 = false;
|
|
1775
|
+
this.n34_1 = 0;
|
|
1776
|
+
this.o34_1 = 0;
|
|
1777
1777
|
}
|
|
1778
1778
|
protoOf(CharArrayBuilder).a = function () {
|
|
1779
|
-
return this.
|
|
1779
|
+
return this.o34_1;
|
|
1780
1780
|
};
|
|
1781
1781
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1782
1782
|
// Inline function 'kotlin.require' call
|
|
@@ -1785,8 +1785,8 @@
|
|
|
1785
1785
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1786
1786
|
}
|
|
1787
1787
|
// Inline function 'kotlin.require' call
|
|
1788
|
-
if (!(index < this.
|
|
1789
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1788
|
+
if (!(index < this.o34_1)) {
|
|
1789
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.o34_1 + ')';
|
|
1790
1790
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1791
1791
|
}
|
|
1792
1792
|
return getImpl(this, index);
|
|
@@ -1803,19 +1803,19 @@
|
|
|
1803
1803
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1804
1804
|
}
|
|
1805
1805
|
// Inline function 'kotlin.require' call
|
|
1806
|
-
if (!(endIndex <= this.
|
|
1807
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1806
|
+
if (!(endIndex <= this.o34_1)) {
|
|
1807
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.o34_1 + ')';
|
|
1808
1808
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1809
1809
|
}
|
|
1810
1810
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1811
1811
|
};
|
|
1812
1812
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1813
|
-
var tmp0_elvis_lhs = this.
|
|
1813
|
+
var tmp0_elvis_lhs = this.l34_1;
|
|
1814
1814
|
var tmp;
|
|
1815
1815
|
if (tmp0_elvis_lhs == null) {
|
|
1816
1816
|
// Inline function 'kotlin.also' call
|
|
1817
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1818
|
-
this.
|
|
1817
|
+
var this_0 = toString(copy(this, 0, this.o34_1));
|
|
1818
|
+
this.l34_1 = this_0;
|
|
1819
1819
|
tmp = this_0;
|
|
1820
1820
|
} else {
|
|
1821
1821
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1825,20 +1825,20 @@
|
|
|
1825
1825
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1826
1826
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1827
1827
|
return false;
|
|
1828
|
-
if (!(this.
|
|
1828
|
+
if (!(this.o34_1 === charSequenceLength(other)))
|
|
1829
1829
|
return false;
|
|
1830
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1830
|
+
return rangeEqualsImpl(this, 0, other, 0, this.o34_1);
|
|
1831
1831
|
};
|
|
1832
1832
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1833
|
-
var tmp0_safe_receiver = this.
|
|
1833
|
+
var tmp0_safe_receiver = this.l34_1;
|
|
1834
1834
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1835
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1835
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.o34_1) : tmp1_elvis_lhs;
|
|
1836
1836
|
};
|
|
1837
1837
|
protoOf(CharArrayBuilder).g8 = function (value) {
|
|
1838
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1839
|
-
this.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
1838
|
+
nonFullBuffer(this)[ensureNotNull(this.k34_1).length - this.n34_1 | 0] = value;
|
|
1839
|
+
this.l34_1 = null;
|
|
1840
|
+
this.n34_1 = this.n34_1 - 1 | 0;
|
|
1841
|
+
this.o34_1 = this.o34_1 + 1 | 0;
|
|
1842
1842
|
return this;
|
|
1843
1843
|
};
|
|
1844
1844
|
protoOf(CharArrayBuilder).mc = function (value, startIndex, endIndex) {
|
|
@@ -1847,10 +1847,10 @@
|
|
|
1847
1847
|
var current = startIndex;
|
|
1848
1848
|
while (current < endIndex) {
|
|
1849
1849
|
var buffer = nonFullBuffer(this);
|
|
1850
|
-
var offset = buffer.length - this.
|
|
1850
|
+
var offset = buffer.length - this.n34_1 | 0;
|
|
1851
1851
|
var tmp0 = endIndex - current | 0;
|
|
1852
1852
|
// Inline function 'kotlin.math.min' call
|
|
1853
|
-
var b = this.
|
|
1853
|
+
var b = this.n34_1;
|
|
1854
1854
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1855
1855
|
var inductionVariable = 0;
|
|
1856
1856
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1861,10 +1861,10 @@
|
|
|
1861
1861
|
}
|
|
1862
1862
|
while (inductionVariable < bytesToCopy);
|
|
1863
1863
|
current = current + bytesToCopy | 0;
|
|
1864
|
-
this.
|
|
1864
|
+
this.n34_1 = this.n34_1 - bytesToCopy | 0;
|
|
1865
1865
|
}
|
|
1866
|
-
this.
|
|
1867
|
-
this.
|
|
1866
|
+
this.l34_1 = null;
|
|
1867
|
+
this.o34_1 = this.o34_1 + (endIndex - startIndex | 0) | 0;
|
|
1868
1868
|
return this;
|
|
1869
1869
|
};
|
|
1870
1870
|
protoOf(CharArrayBuilder).q = function (value) {
|
|
@@ -1872,34 +1872,34 @@
|
|
|
1872
1872
|
return this;
|
|
1873
1873
|
return this.mc(value, 0, charSequenceLength(value));
|
|
1874
1874
|
};
|
|
1875
|
-
protoOf(CharArrayBuilder).
|
|
1876
|
-
var list = this.
|
|
1875
|
+
protoOf(CharArrayBuilder).a1h = function () {
|
|
1876
|
+
var list = this.j34_1;
|
|
1877
1877
|
if (!(list == null)) {
|
|
1878
|
-
this.
|
|
1878
|
+
this.k34_1 = null;
|
|
1879
1879
|
var inductionVariable = 0;
|
|
1880
1880
|
var last = list.u();
|
|
1881
1881
|
if (inductionVariable < last)
|
|
1882
1882
|
do {
|
|
1883
1883
|
var i = inductionVariable;
|
|
1884
1884
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1885
|
-
this.
|
|
1885
|
+
this.i34_1.h1w(list.v(i));
|
|
1886
1886
|
}
|
|
1887
1887
|
while (inductionVariable < last);
|
|
1888
1888
|
} else {
|
|
1889
|
-
var tmp0_safe_receiver = this.
|
|
1889
|
+
var tmp0_safe_receiver = this.k34_1;
|
|
1890
1890
|
if (tmp0_safe_receiver == null)
|
|
1891
1891
|
null;
|
|
1892
1892
|
else {
|
|
1893
1893
|
// Inline function 'kotlin.let' call
|
|
1894
|
-
this.
|
|
1894
|
+
this.i34_1.h1w(tmp0_safe_receiver);
|
|
1895
1895
|
}
|
|
1896
|
-
this.
|
|
1896
|
+
this.k34_1 = null;
|
|
1897
1897
|
}
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1901
|
-
this.
|
|
1902
|
-
this.
|
|
1898
|
+
this.m34_1 = true;
|
|
1899
|
+
this.j34_1 = null;
|
|
1900
|
+
this.l34_1 = null;
|
|
1901
|
+
this.o34_1 = 0;
|
|
1902
|
+
this.n34_1 = 0;
|
|
1903
1903
|
};
|
|
1904
1904
|
function get_CharArrayPool() {
|
|
1905
1905
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1909,13 +1909,13 @@
|
|
|
1909
1909
|
function CharArrayPool$1() {
|
|
1910
1910
|
NoPoolImpl.call(this);
|
|
1911
1911
|
}
|
|
1912
|
-
protoOf(CharArrayPool$1).
|
|
1912
|
+
protoOf(CharArrayPool$1).g1w = function () {
|
|
1913
1913
|
return charArray(2048);
|
|
1914
1914
|
};
|
|
1915
1915
|
function CharArrayPool$2() {
|
|
1916
1916
|
DefaultPool.call(this, 4096);
|
|
1917
1917
|
}
|
|
1918
|
-
protoOf(CharArrayPool$2).
|
|
1918
|
+
protoOf(CharArrayPool$2).z1v = function () {
|
|
1919
1919
|
return charArray(2048);
|
|
1920
1920
|
};
|
|
1921
1921
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2106,20 +2106,20 @@
|
|
|
2106
2106
|
}
|
|
2107
2107
|
function DefaultHttpMethods$lambda(it) {
|
|
2108
2108
|
_init_properties_Chars_kt__d3i39x();
|
|
2109
|
-
return it.
|
|
2109
|
+
return it.l2x_1.length;
|
|
2110
2110
|
}
|
|
2111
2111
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2112
2112
|
_init_properties_Chars_kt__d3i39x();
|
|
2113
|
-
return new Char(charCodeAt(m.
|
|
2113
|
+
return new Char(charCodeAt(m.l2x_1, idx));
|
|
2114
2114
|
}
|
|
2115
2115
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2116
2116
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2117
2117
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2118
2118
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2119
2119
|
var tmp = Companion_instance;
|
|
2120
|
-
var tmp_0 = Companion_getInstance_0().
|
|
2120
|
+
var tmp_0 = Companion_getInstance_0().k2x_1;
|
|
2121
2121
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2122
|
-
DefaultHttpMethods = tmp.
|
|
2122
|
+
DefaultHttpMethods = tmp.h39(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2123
2123
|
// Inline function 'kotlin.collections.map' call
|
|
2124
2124
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2125
2125
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2220,11 +2220,11 @@
|
|
|
2220
2220
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2221
2221
|
}
|
|
2222
2222
|
function MutableRange(start, end) {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2223
|
+
this.c36_1 = start;
|
|
2224
|
+
this.d36_1 = end;
|
|
2225
2225
|
}
|
|
2226
2226
|
protoOf(MutableRange).toString = function () {
|
|
2227
|
-
return 'MutableRange(start=' + this.
|
|
2227
|
+
return 'MutableRange(start=' + this.c36_1 + ', end=' + this.d36_1 + ')';
|
|
2228
2228
|
};
|
|
2229
2229
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2230
2230
|
var index = start;
|