@doordeck/doordeck-headless-sdk 0.94.0 → 0.96.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/Kotlin-DateTime-library-kotlinx-datetime.js +1471 -1471
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +27 -27
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +13 -13
- package/kotlin/doordeck-sdk.js +9661 -9661
- package/kotlin/kotlin-kotlin-stdlib.js +866 -739
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2601 -1851
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +42 -42
- package/kotlin/kotlinx-io-kotlinx-io-core.js +447 -447
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1818 -1818
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1424 -1424
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1898 -1898
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +411 -323
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +156 -156
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +603 -363
- package/kotlin/ktor-ktor-http.js +754 -754
- package/kotlin/ktor-ktor-io.js +629 -629
- package/kotlin/ktor-ktor-shared-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +158 -158
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +78 -78
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +52 -52
- package/kotlin/ktor-ktor-utils.js +627 -603
- package/package.json +4 -4
|
@@ -2,103 +2,110 @@
|
|
|
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.$_$.mf;
|
|
6
6
|
var VOID = kotlin_kotlin.$_$.h;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.ub;
|
|
8
8
|
var MultiPartData = kotlin_io_ktor_ktor_http.$_$.o;
|
|
9
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
10
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
11
|
-
var
|
|
9
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
10
|
+
var initMetadataForClass = kotlin_kotlin.$_$.sa;
|
|
11
|
+
var CoroutineImpl = kotlin_kotlin.$_$.v9;
|
|
12
12
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
13
|
-
var
|
|
13
|
+
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
14
|
+
var SequenceScope = kotlin_kotlin.$_$.oc;
|
|
15
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
|
|
16
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.xa;
|
|
17
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
18
|
+
var sequence = kotlin_kotlin.$_$.pc;
|
|
19
|
+
var toString = kotlin_kotlin.$_$.yb;
|
|
14
20
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
21
|
+
var abs = kotlin_kotlin.$_$.zb;
|
|
15
22
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
16
23
|
var DefaultPool = kotlin_io_ktor_ktor_io.$_$.h1;
|
|
24
|
+
var fill = kotlin_kotlin.$_$.c7;
|
|
25
|
+
var isIntArray = kotlin_kotlin.$_$.gb;
|
|
17
26
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t2;
|
|
18
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
19
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
20
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
21
|
-
var Char = kotlin_kotlin.$_$.
|
|
27
|
+
var endsWith = kotlin_kotlin.$_$.yc;
|
|
28
|
+
var charSequenceLength = kotlin_kotlin.$_$.ha;
|
|
29
|
+
var charSequenceGet = kotlin_kotlin.$_$.ga;
|
|
30
|
+
var Char = kotlin_kotlin.$_$.cf;
|
|
22
31
|
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.u2;
|
|
23
|
-
var contains = kotlin_kotlin.$_$.
|
|
24
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
32
|
+
var contains = kotlin_kotlin.$_$.tc;
|
|
33
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ia;
|
|
25
34
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.z2;
|
|
26
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
35
|
+
var IllegalStateException = kotlin_kotlin.$_$.lf;
|
|
27
36
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.z1;
|
|
28
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
29
|
-
var CoroutineImpl = kotlin_kotlin.$_$.u9;
|
|
37
|
+
var captureStack = kotlin_kotlin.$_$.da;
|
|
30
38
|
var readUTF8LineTo = kotlin_io_ktor_ktor_io.$_$.e;
|
|
31
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.e9;
|
|
32
39
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
33
40
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
34
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
35
|
-
var setOf = kotlin_kotlin.$_$.
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ua;
|
|
42
|
+
var setOf = kotlin_kotlin.$_$.j8;
|
|
36
43
|
var Companion_getInstance = kotlin_io_ktor_ktor_io.$_$.n;
|
|
37
44
|
var LineEndingMode__plus_impl_ttpz2j = kotlin_io_ktor_ktor_io.$_$.k;
|
|
38
|
-
var listOf = kotlin_kotlin.$_$.
|
|
45
|
+
var listOf = kotlin_kotlin.$_$.w7;
|
|
39
46
|
var MultiPart_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
40
47
|
var ByteString_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.a;
|
|
41
48
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
42
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
43
|
-
var toByte = kotlin_kotlin.$_$.
|
|
49
|
+
var toString_0 = kotlin_kotlin.$_$.ne;
|
|
50
|
+
var toByte = kotlin_kotlin.$_$.vb;
|
|
44
51
|
var copyOfRange = kotlin_kotlin.$_$.l6;
|
|
45
|
-
var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
46
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
52
|
+
var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
53
|
+
var startsWith = kotlin_kotlin.$_$.yd;
|
|
47
54
|
var readUntil = kotlin_io_ktor_ktor_io.$_$.f;
|
|
48
|
-
var THROW_CCE = kotlin_kotlin.$_$.of;
|
|
49
55
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var isInterface = kotlin_kotlin.$_$.gb;
|
|
56
|
+
var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.hb;
|
|
53
58
|
var counted = kotlin_io_ktor_ktor_io.$_$.q1;
|
|
54
59
|
var writer = kotlin_io_ktor_ktor_io.$_$.u1;
|
|
55
60
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.d;
|
|
56
61
|
var get_remaining = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
57
62
|
var skipIfFound = kotlin_io_ktor_ktor_io.$_$.g;
|
|
58
63
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
59
|
-
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
64
|
+
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
60
65
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
61
66
|
var close = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
62
67
|
var readPacket = kotlin_io_ktor_ktor_io.$_$.c;
|
|
63
68
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
64
69
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.a;
|
|
65
|
-
var toLong = kotlin_kotlin.$_$.
|
|
70
|
+
var toLong = kotlin_kotlin.$_$.wb;
|
|
66
71
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.c1;
|
|
67
72
|
var ByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.c;
|
|
68
73
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
69
|
-
var
|
|
70
|
-
var compareTo = kotlin_kotlin.$_$.ia;
|
|
74
|
+
var compareTo = kotlin_kotlin.$_$.ja;
|
|
71
75
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.g2;
|
|
72
76
|
var Collection = kotlin_kotlin.$_$.m5;
|
|
73
77
|
var emptyList = kotlin_kotlin.$_$.z6;
|
|
74
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
75
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
78
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ta;
|
|
79
|
+
var ensureNotNull = kotlin_kotlin.$_$.kg;
|
|
76
80
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.i1;
|
|
77
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
78
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
79
|
-
var CharSequence = kotlin_kotlin.$_$.
|
|
81
|
+
var isCharSequence = kotlin_kotlin.$_$.db;
|
|
82
|
+
var getStringHashCode = kotlin_kotlin.$_$.qa;
|
|
83
|
+
var CharSequence = kotlin_kotlin.$_$.bf;
|
|
80
84
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
81
85
|
var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
82
|
-
var charArray = kotlin_kotlin.$_$.
|
|
86
|
+
var charArray = kotlin_kotlin.$_$.fa;
|
|
83
87
|
var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.h2;
|
|
84
88
|
var toString_1 = kotlin_kotlin.$_$.a3;
|
|
85
89
|
var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.h;
|
|
86
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
90
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.ob;
|
|
87
91
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.f6;
|
|
88
92
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
89
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
90
|
-
var toLongArray = kotlin_kotlin.$_$.
|
|
93
|
+
var numberToLong = kotlin_kotlin.$_$.sb;
|
|
94
|
+
var toLongArray = kotlin_kotlin.$_$.v8;
|
|
91
95
|
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.x2;
|
|
92
96
|
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.w2;
|
|
93
|
-
var toByteArray_0 = kotlin_kotlin.$_$.
|
|
97
|
+
var toByteArray_0 = kotlin_kotlin.$_$.q8;
|
|
94
98
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
95
99
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
96
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
100
|
+
var isWhitespace = kotlin_kotlin.$_$.hd;
|
|
97
101
|
//endregion
|
|
98
102
|
//region block: pre-declaration
|
|
99
103
|
initMetadataForClass(CIOMultipartDataBase, 'CIOMultipartDataBase', VOID, VOID, [MultiPartData, CoroutineScope], [0, 1]);
|
|
104
|
+
initMetadataForLambda(HeadersData$headersStarts$slambda, CoroutineImpl, VOID, [1]);
|
|
105
|
+
initMetadataForClass(HeadersData, 'HeadersData', HeadersData);
|
|
100
106
|
initMetadataForClass(HttpHeadersMap, 'HttpHeadersMap');
|
|
101
107
|
initMetadataForClass(IntArrayPool$1, VOID, VOID, DefaultPool);
|
|
108
|
+
initMetadataForClass(HeadersDataPool$1, VOID, VOID, DefaultPool);
|
|
102
109
|
initMetadataForClass(ParserException, 'ParserException', VOID, IllegalStateException);
|
|
103
110
|
initMetadataForCoroutine($parseHeadersCOROUTINE$4, CoroutineImpl);
|
|
104
111
|
initMetadataForClass(MultipartEvent, 'MultipartEvent');
|
|
@@ -122,107 +129,250 @@
|
|
|
122
129
|
//endregion
|
|
123
130
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
124
131
|
formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
132
|
+
this.r30_1 = coroutineContext;
|
|
133
|
+
this.s30_1 = null;
|
|
134
|
+
this.t30_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
128
135
|
}
|
|
129
|
-
protoOf(CIOMultipartDataBase).
|
|
130
|
-
return this.
|
|
136
|
+
protoOf(CIOMultipartDataBase).oo = function () {
|
|
137
|
+
return this.r30_1;
|
|
131
138
|
};
|
|
132
|
-
function get_EMPTY_INT_LIST() {
|
|
133
|
-
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
134
|
-
return EMPTY_INT_LIST;
|
|
135
|
-
}
|
|
136
|
-
var EMPTY_INT_LIST;
|
|
137
139
|
function get_IntArrayPool() {
|
|
138
140
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
139
141
|
return IntArrayPool;
|
|
140
142
|
}
|
|
141
143
|
var IntArrayPool;
|
|
142
|
-
function
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
array[base + 4 | 0] = valueStartIndex;
|
|
160
|
-
array[base + 5 | 0] = valueEndIndex;
|
|
161
|
-
array[base + 6 | 0] = -1;
|
|
162
|
-
array[base + 7 | 0] = -1;
|
|
163
|
-
this.s2y_1 = this.s2y_1 + 1 | 0;
|
|
144
|
+
function get_HeadersDataPool() {
|
|
145
|
+
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
146
|
+
return HeadersDataPool;
|
|
147
|
+
}
|
|
148
|
+
var HeadersDataPool;
|
|
149
|
+
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
150
|
+
this.c31_1 = this$0;
|
|
151
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
152
|
+
}
|
|
153
|
+
protoOf(HeadersData$headersStarts$slambda).i31 = function ($this$sequence, $completion) {
|
|
154
|
+
var tmp = this.j31($this$sequence, $completion);
|
|
155
|
+
tmp.i9_1 = Unit_instance;
|
|
156
|
+
tmp.j9_1 = null;
|
|
157
|
+
return tmp.o9();
|
|
158
|
+
};
|
|
159
|
+
protoOf(HeadersData$headersStarts$slambda).ca = function (p1, $completion) {
|
|
160
|
+
return this.i31(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
164
161
|
};
|
|
165
|
-
protoOf(
|
|
166
|
-
var
|
|
162
|
+
protoOf(HeadersData$headersStarts$slambda).o9 = function () {
|
|
163
|
+
var suspendResult = this.i9_1;
|
|
164
|
+
$sm: do
|
|
165
|
+
try {
|
|
166
|
+
var tmp = this.g9_1;
|
|
167
|
+
switch (tmp) {
|
|
168
|
+
case 0:
|
|
169
|
+
this.h9_1 = 7;
|
|
170
|
+
this.e31_1 = 0;
|
|
171
|
+
this.f31_1 = this.c31_1.k31_1.p();
|
|
172
|
+
this.g9_1 = 1;
|
|
173
|
+
continue $sm;
|
|
174
|
+
case 1:
|
|
175
|
+
if (!this.f31_1.q()) {
|
|
176
|
+
this.g9_1 = 6;
|
|
177
|
+
continue $sm;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
this.g31_1 = this.f31_1.r();
|
|
181
|
+
this.h31_1 = 0;
|
|
182
|
+
this.g9_1 = 2;
|
|
183
|
+
continue $sm;
|
|
184
|
+
case 2:
|
|
185
|
+
if (!(this.h31_1 < this.g31_1.length)) {
|
|
186
|
+
this.g9_1 = 5;
|
|
187
|
+
continue $sm;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (!(this.c31_1.l31(this.e31_1 + 0 | 0) === -1)) {
|
|
191
|
+
this.g9_1 = 3;
|
|
192
|
+
suspendResult = this.d31_1.zg(this.e31_1, this);
|
|
193
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
194
|
+
return suspendResult;
|
|
195
|
+
}
|
|
196
|
+
continue $sm;
|
|
197
|
+
} else {
|
|
198
|
+
this.g9_1 = 4;
|
|
199
|
+
continue $sm;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
case 3:
|
|
203
|
+
this.g9_1 = 4;
|
|
204
|
+
continue $sm;
|
|
205
|
+
case 4:
|
|
206
|
+
this.h31_1 = this.h31_1 + 6 | 0;
|
|
207
|
+
this.e31_1 = this.e31_1 + 6 | 0;
|
|
208
|
+
this.g9_1 = 2;
|
|
209
|
+
continue $sm;
|
|
210
|
+
case 5:
|
|
211
|
+
this.g9_1 = 1;
|
|
212
|
+
continue $sm;
|
|
213
|
+
case 6:
|
|
214
|
+
return Unit_instance;
|
|
215
|
+
case 7:
|
|
216
|
+
throw this.j9_1;
|
|
217
|
+
}
|
|
218
|
+
} catch ($p) {
|
|
219
|
+
var e = $p;
|
|
220
|
+
if (this.h9_1 === 7) {
|
|
221
|
+
throw e;
|
|
222
|
+
} else {
|
|
223
|
+
this.g9_1 = this.h9_1;
|
|
224
|
+
this.j9_1 = e;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
while (true);
|
|
228
|
+
};
|
|
229
|
+
protoOf(HeadersData$headersStarts$slambda).j31 = function ($this$sequence, completion) {
|
|
230
|
+
var i = new HeadersData$headersStarts$slambda(this.c31_1, completion);
|
|
231
|
+
i.d31_1 = $this$sequence;
|
|
232
|
+
return i;
|
|
233
|
+
};
|
|
234
|
+
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
235
|
+
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
236
|
+
var l = function ($this$sequence, $completion) {
|
|
237
|
+
return i.i31($this$sequence, $completion);
|
|
238
|
+
};
|
|
239
|
+
l.$arity = 1;
|
|
240
|
+
return l;
|
|
241
|
+
}
|
|
242
|
+
function HeadersData() {
|
|
243
|
+
var tmp = this;
|
|
244
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
245
|
+
tmp.k31_1 = ArrayList_init_$Create$();
|
|
246
|
+
}
|
|
247
|
+
protoOf(HeadersData).m31 = function () {
|
|
248
|
+
return this.k31_1.s();
|
|
249
|
+
};
|
|
250
|
+
protoOf(HeadersData).n31 = function (subArraysCount) {
|
|
251
|
+
// Inline function 'kotlin.repeat' call
|
|
167
252
|
var inductionVariable = 0;
|
|
168
|
-
|
|
169
|
-
if (inductionVariable < last)
|
|
253
|
+
if (inductionVariable < subArraysCount)
|
|
170
254
|
do {
|
|
171
|
-
var
|
|
255
|
+
var index = inductionVariable;
|
|
172
256
|
inductionVariable = inductionVariable + 1 | 0;
|
|
173
|
-
|
|
174
|
-
if (this.t2y_1[offset] === nameHash) {
|
|
175
|
-
return this.r2y_1.c(this.t2y_1[offset + 4 | 0], this.t2y_1[offset + 5 | 0]);
|
|
176
|
-
}
|
|
257
|
+
this.k31_1.k(get_IntArrayPool().c1w());
|
|
177
258
|
}
|
|
178
|
-
while (inductionVariable <
|
|
179
|
-
return null;
|
|
259
|
+
while (inductionVariable < subArraysCount);
|
|
180
260
|
};
|
|
181
|
-
protoOf(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
261
|
+
protoOf(HeadersData).l31 = function (index) {
|
|
262
|
+
return this.k31_1.u(index / 768 | 0)[index % 768 | 0];
|
|
263
|
+
};
|
|
264
|
+
protoOf(HeadersData).o31 = function (index, value) {
|
|
265
|
+
this.k31_1.u(index / 768 | 0)[index % 768 | 0] = value;
|
|
266
|
+
};
|
|
267
|
+
protoOf(HeadersData).p31 = function () {
|
|
268
|
+
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
269
|
+
};
|
|
270
|
+
protoOf(HeadersData).m1d = function () {
|
|
271
|
+
var _iterator__ex2g4s = this.k31_1.p();
|
|
272
|
+
while (_iterator__ex2g4s.q()) {
|
|
273
|
+
var array = _iterator__ex2g4s.r();
|
|
274
|
+
get_IntArrayPool().d1w(array);
|
|
193
275
|
}
|
|
194
|
-
|
|
195
|
-
var array = this.t2y_1;
|
|
196
|
-
var nameStart = array[offset + 2 | 0];
|
|
197
|
-
var nameEnd = array[offset + 3 | 0];
|
|
198
|
-
return this.r2y_1.c(nameStart, nameEnd);
|
|
276
|
+
this.k31_1.e2();
|
|
199
277
|
};
|
|
200
|
-
|
|
278
|
+
function thresholdReached($this) {
|
|
279
|
+
return $this.r31_1 >= $this.s31_1 * 0.75;
|
|
280
|
+
}
|
|
281
|
+
function resize($this) {
|
|
282
|
+
var prevSize = $this.r31_1;
|
|
283
|
+
var prevData = $this.t31_1;
|
|
284
|
+
$this.r31_1 = 0;
|
|
285
|
+
$this.s31_1 = imul($this.s31_1, 2) | 128;
|
|
286
|
+
var tmp = $this;
|
|
287
|
+
// Inline function 'kotlin.apply' call
|
|
288
|
+
var this_0 = get_HeadersDataPool().c1w();
|
|
289
|
+
this_0.n31(imul(prevData.m31(), 2) | 1);
|
|
290
|
+
tmp.t31_1 = this_0;
|
|
291
|
+
var _iterator__ex2g4s = prevData.p31().p();
|
|
292
|
+
while (_iterator__ex2g4s.q()) {
|
|
293
|
+
var headerOffset = _iterator__ex2g4s.r();
|
|
294
|
+
$this.u31(prevData.l31(headerOffset + 1 | 0), prevData.l31(headerOffset + 2 | 0), prevData.l31(headerOffset + 3 | 0), prevData.l31(headerOffset + 4 | 0));
|
|
295
|
+
}
|
|
296
|
+
get_HeadersDataPool().d1w(prevData);
|
|
201
297
|
// Inline function 'kotlin.require' call
|
|
202
298
|
// Inline function 'kotlin.require' call
|
|
203
|
-
if (!(
|
|
299
|
+
if (!(prevSize === $this.r31_1)) {
|
|
204
300
|
var message = 'Failed requirement.';
|
|
205
301
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
206
302
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
303
|
+
}
|
|
304
|
+
function headerHasName($this, name, headerOffset) {
|
|
305
|
+
var nameStartIndex = $this.t31_1.l31(headerOffset + 1 | 0);
|
|
306
|
+
var nameEndIndex = $this.t31_1.l31(headerOffset + 2 | 0);
|
|
307
|
+
return equalsLowerCase($this.q31_1, nameStartIndex, nameEndIndex, name);
|
|
308
|
+
}
|
|
309
|
+
function HttpHeadersMap(builder) {
|
|
310
|
+
this.q31_1 = builder;
|
|
311
|
+
this.r31_1 = 0;
|
|
312
|
+
this.s31_1 = 0;
|
|
313
|
+
this.t31_1 = get_HeadersDataPool().c1w();
|
|
314
|
+
}
|
|
315
|
+
protoOf(HttpHeadersMap).r2h = function (name) {
|
|
316
|
+
if (this.r31_1 === 0)
|
|
317
|
+
return null;
|
|
318
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
319
|
+
var this_0 = hashCodeLowerCase(name);
|
|
320
|
+
var hash = abs(this_0);
|
|
321
|
+
var headerIndex = hash % this.s31_1 | 0;
|
|
322
|
+
while (!(this.t31_1.l31(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
323
|
+
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
324
|
+
return this.v31(imul(headerIndex, 6));
|
|
325
|
+
}
|
|
326
|
+
headerIndex = (headerIndex + 1 | 0) % this.s31_1 | 0;
|
|
212
327
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return this.r2y_1.c(nameStart, nameEnd);
|
|
328
|
+
return null;
|
|
329
|
+
};
|
|
330
|
+
protoOf(HttpHeadersMap).w31 = function () {
|
|
331
|
+
return this.t31_1.p31();
|
|
218
332
|
};
|
|
219
|
-
protoOf(HttpHeadersMap).
|
|
220
|
-
this
|
|
221
|
-
|
|
222
|
-
this.t2y_1 = get_EMPTY_INT_LIST();
|
|
223
|
-
if (!(indexes === get_EMPTY_INT_LIST())) {
|
|
224
|
-
get_IntArrayPool().z1t(indexes);
|
|
333
|
+
protoOf(HttpHeadersMap).u31 = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
334
|
+
if (thresholdReached(this)) {
|
|
335
|
+
resize(this);
|
|
225
336
|
}
|
|
337
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
338
|
+
var this_0 = hashCodeLowerCase(this.q31_1, nameStartIndex, nameEndIndex);
|
|
339
|
+
var hash = abs(this_0);
|
|
340
|
+
var name = this.q31_1.c(nameStartIndex, nameEndIndex);
|
|
341
|
+
var headerIndex = hash % this.s31_1 | 0;
|
|
342
|
+
var sameNameHeaderIndex = -1;
|
|
343
|
+
while (!(this.t31_1.l31(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
344
|
+
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
345
|
+
sameNameHeaderIndex = headerIndex;
|
|
346
|
+
}
|
|
347
|
+
headerIndex = (headerIndex + 1 | 0) % this.s31_1 | 0;
|
|
348
|
+
}
|
|
349
|
+
var headerOffset = imul(headerIndex, 6);
|
|
350
|
+
this.t31_1.o31(headerOffset + 0 | 0, hash);
|
|
351
|
+
this.t31_1.o31(headerOffset + 1 | 0, nameStartIndex);
|
|
352
|
+
this.t31_1.o31(headerOffset + 2 | 0, nameEndIndex);
|
|
353
|
+
this.t31_1.o31(headerOffset + 3 | 0, valueStartIndex);
|
|
354
|
+
this.t31_1.o31(headerOffset + 4 | 0, valueEndIndex);
|
|
355
|
+
this.t31_1.o31(headerOffset + 5 | 0, -1);
|
|
356
|
+
if (!(sameNameHeaderIndex === -1)) {
|
|
357
|
+
this.t31_1.o31(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
358
|
+
}
|
|
359
|
+
this.r31_1 = this.r31_1 + 1 | 0;
|
|
360
|
+
};
|
|
361
|
+
protoOf(HttpHeadersMap).e32 = function (headerOffset) {
|
|
362
|
+
var nameStartIndex = this.t31_1.l31(headerOffset + 1 | 0);
|
|
363
|
+
var nameEndIndex = this.t31_1.l31(headerOffset + 2 | 0);
|
|
364
|
+
return this.q31_1.c(nameStartIndex, nameEndIndex);
|
|
365
|
+
};
|
|
366
|
+
protoOf(HttpHeadersMap).v31 = function (headerOffset) {
|
|
367
|
+
var valueStartIndex = this.t31_1.l31(headerOffset + 3 | 0);
|
|
368
|
+
var valueEndIndex = this.t31_1.l31(headerOffset + 4 | 0);
|
|
369
|
+
return this.q31_1.c(valueStartIndex, valueEndIndex);
|
|
370
|
+
};
|
|
371
|
+
protoOf(HttpHeadersMap).m1d = function () {
|
|
372
|
+
this.r31_1 = 0;
|
|
373
|
+
this.s31_1 = 0;
|
|
374
|
+
get_HeadersDataPool().d1w(this.t31_1);
|
|
375
|
+
this.t31_1 = get_HeadersDataPool().c1w();
|
|
226
376
|
};
|
|
227
377
|
protoOf(HttpHeadersMap).toString = function () {
|
|
228
378
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -233,32 +383,54 @@
|
|
|
233
383
|
};
|
|
234
384
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
235
385
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
236
|
-
var
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
out.l(_this__u8e3s4.d2z(i));
|
|
246
|
-
out.l('\n');
|
|
247
|
-
}
|
|
248
|
-
while (inductionVariable < last);
|
|
386
|
+
var _iterator__ex2g4s = _this__u8e3s4.w31().p();
|
|
387
|
+
while (_iterator__ex2g4s.q()) {
|
|
388
|
+
var offset = _iterator__ex2g4s.r();
|
|
389
|
+
out.l(indent);
|
|
390
|
+
out.l(_this__u8e3s4.e32(offset));
|
|
391
|
+
out.l(' => ');
|
|
392
|
+
out.l(_this__u8e3s4.v31(offset));
|
|
393
|
+
out.l('\n');
|
|
394
|
+
}
|
|
249
395
|
}
|
|
250
396
|
function IntArrayPool$1() {
|
|
251
397
|
DefaultPool.call(this, 1000);
|
|
252
398
|
}
|
|
253
|
-
protoOf(IntArrayPool$1).
|
|
254
|
-
|
|
399
|
+
protoOf(IntArrayPool$1).v1v = function () {
|
|
400
|
+
var tmp = 0;
|
|
401
|
+
var tmp_0 = new Int32Array(768);
|
|
402
|
+
while (tmp < 768) {
|
|
403
|
+
tmp_0[tmp] = -1;
|
|
404
|
+
tmp = tmp + 1 | 0;
|
|
405
|
+
}
|
|
406
|
+
return tmp_0;
|
|
407
|
+
};
|
|
408
|
+
protoOf(IntArrayPool$1).i32 = function (instance) {
|
|
409
|
+
fill(instance, -1);
|
|
410
|
+
return protoOf(DefaultPool).a1w.call(this, instance);
|
|
411
|
+
};
|
|
412
|
+
protoOf(IntArrayPool$1).a1w = function (instance) {
|
|
413
|
+
return this.i32(isIntArray(instance) ? instance : THROW_CCE());
|
|
414
|
+
};
|
|
415
|
+
function HeadersDataPool$1() {
|
|
416
|
+
DefaultPool.call(this, 1000);
|
|
417
|
+
}
|
|
418
|
+
protoOf(HeadersDataPool$1).v1v = function () {
|
|
419
|
+
return new HeadersData();
|
|
420
|
+
};
|
|
421
|
+
protoOf(HeadersDataPool$1).m32 = function (instance) {
|
|
422
|
+
instance.m1d();
|
|
423
|
+
return protoOf(DefaultPool).a1w.call(this, instance);
|
|
424
|
+
};
|
|
425
|
+
protoOf(HeadersDataPool$1).a1w = function (instance) {
|
|
426
|
+
return this.m32(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
255
427
|
};
|
|
256
428
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
257
429
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
258
430
|
if (!properties_initialized_HttpHeadersMap_kt_kotj4w) {
|
|
259
431
|
properties_initialized_HttpHeadersMap_kt_kotj4w = true;
|
|
260
|
-
EMPTY_INT_LIST = new Int32Array(0);
|
|
261
432
|
IntArrayPool = new IntArrayPool$1();
|
|
433
|
+
HeadersDataPool = new HeadersDataPool$1();
|
|
262
434
|
}
|
|
263
435
|
}
|
|
264
436
|
function get_hostForbiddenSymbols() {
|
|
@@ -281,16 +453,16 @@
|
|
|
281
453
|
}
|
|
282
454
|
function parseHeaderName(text, range) {
|
|
283
455
|
_init_properties_HttpParser_kt__gbdom1();
|
|
284
|
-
var index = range.
|
|
285
|
-
var end = range.
|
|
456
|
+
var index = range.z32_1;
|
|
457
|
+
var end = range.a33_1;
|
|
286
458
|
while (index < end) {
|
|
287
459
|
var ch = text.b(index);
|
|
288
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
289
|
-
range.
|
|
460
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.z32_1)) {
|
|
461
|
+
range.z32_1 = index + 1 | 0;
|
|
290
462
|
return index;
|
|
291
463
|
}
|
|
292
464
|
if (isDelimiter(ch)) {
|
|
293
|
-
parseHeaderNameFailed(text, index, range.
|
|
465
|
+
parseHeaderNameFailed(text, index, range.z32_1, ch);
|
|
294
466
|
}
|
|
295
467
|
index = index + 1 | 0;
|
|
296
468
|
}
|
|
@@ -298,12 +470,12 @@
|
|
|
298
470
|
}
|
|
299
471
|
function parseHeaderValue(text, range) {
|
|
300
472
|
_init_properties_HttpParser_kt__gbdom1();
|
|
301
|
-
var start = range.
|
|
302
|
-
var end = range.
|
|
473
|
+
var start = range.z32_1;
|
|
474
|
+
var end = range.a33_1;
|
|
303
475
|
var index = start;
|
|
304
476
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
305
477
|
if (index >= end) {
|
|
306
|
-
range.
|
|
478
|
+
range.z32_1 = end;
|
|
307
479
|
return Unit_instance;
|
|
308
480
|
}
|
|
309
481
|
var valueStart = index;
|
|
@@ -317,8 +489,8 @@
|
|
|
317
489
|
valueLastIndex = index;
|
|
318
490
|
index = index + 1 | 0;
|
|
319
491
|
}
|
|
320
|
-
range.
|
|
321
|
-
range.
|
|
492
|
+
range.z32_1 = valueStart;
|
|
493
|
+
range.a33_1 = valueLastIndex + 1 | 0;
|
|
322
494
|
}
|
|
323
495
|
function validateHostHeader(host) {
|
|
324
496
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -359,9 +531,9 @@
|
|
|
359
531
|
}
|
|
360
532
|
function noColonFound(text, range) {
|
|
361
533
|
_init_properties_HttpParser_kt__gbdom1();
|
|
362
|
-
var tmp1 = range.
|
|
534
|
+
var tmp1 = range.z32_1;
|
|
363
535
|
// Inline function 'kotlin.text.substring' call
|
|
364
|
-
var endIndex = range.
|
|
536
|
+
var endIndex = range.a33_1;
|
|
365
537
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp1, endIndex));
|
|
366
538
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
367
539
|
}
|
|
@@ -377,9 +549,9 @@
|
|
|
377
549
|
}
|
|
378
550
|
function $parseHeadersCOROUTINE$4(input, builder, range, resultContinuation) {
|
|
379
551
|
CoroutineImpl.call(this, resultContinuation);
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
552
|
+
this.v32_1 = input;
|
|
553
|
+
this.w32_1 = builder;
|
|
554
|
+
this.x32_1 = range;
|
|
383
555
|
}
|
|
384
556
|
protoOf($parseHeadersCOROUTINE$4).o9 = function () {
|
|
385
557
|
var suspendResult = this.i9_1;
|
|
@@ -389,7 +561,7 @@
|
|
|
389
561
|
switch (tmp) {
|
|
390
562
|
case 0:
|
|
391
563
|
this.h9_1 = 7;
|
|
392
|
-
this.
|
|
564
|
+
this.y32_1 = new HttpHeadersMap(this.w32_1);
|
|
393
565
|
this.h9_1 = 6;
|
|
394
566
|
this.g9_1 = 1;
|
|
395
567
|
continue $sm;
|
|
@@ -400,7 +572,7 @@
|
|
|
400
572
|
}
|
|
401
573
|
|
|
402
574
|
this.g9_1 = 2;
|
|
403
|
-
suspendResult = readUTF8LineTo(this.
|
|
575
|
+
suspendResult = readUTF8LineTo(this.v32_1, this.w32_1, 8192, get_httpLineEndings(), this);
|
|
404
576
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
405
577
|
return suspendResult;
|
|
406
578
|
}
|
|
@@ -409,7 +581,7 @@
|
|
|
409
581
|
case 2:
|
|
410
582
|
var ARGUMENT = suspendResult;
|
|
411
583
|
if (!ARGUMENT) {
|
|
412
|
-
this.
|
|
584
|
+
this.y32_1.m1d();
|
|
413
585
|
return null;
|
|
414
586
|
} else {
|
|
415
587
|
this.g9_1 = 3;
|
|
@@ -417,8 +589,8 @@
|
|
|
417
589
|
}
|
|
418
590
|
|
|
419
591
|
case 3:
|
|
420
|
-
this.
|
|
421
|
-
var rangeLength = this.
|
|
592
|
+
this.x32_1.a33_1 = this.w32_1.d32_1;
|
|
593
|
+
var rangeLength = this.x32_1.a33_1 - this.x32_1.z32_1 | 0;
|
|
422
594
|
if (rangeLength === 0) {
|
|
423
595
|
this.g9_1 = 5;
|
|
424
596
|
continue $sm;
|
|
@@ -433,31 +605,29 @@
|
|
|
433
605
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
434
606
|
}
|
|
435
607
|
|
|
436
|
-
var nameStart = this.
|
|
437
|
-
var nameEnd = parseHeaderName(this.
|
|
438
|
-
var
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
var
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
this.s2z_1.u2z_1 = headerEnd;
|
|
445
|
-
this.t2z_1.u2y(nameHash, valueHash, nameStart, nameEnd, valueStart, valueEnd);
|
|
608
|
+
var nameStart = this.x32_1.z32_1;
|
|
609
|
+
var nameEnd = parseHeaderName(this.w32_1, this.x32_1);
|
|
610
|
+
var headerEnd = this.x32_1.a33_1;
|
|
611
|
+
parseHeaderValue(this.w32_1, this.x32_1);
|
|
612
|
+
var valueStart = this.x32_1.z32_1;
|
|
613
|
+
var valueEnd = this.x32_1.a33_1;
|
|
614
|
+
this.x32_1.z32_1 = headerEnd;
|
|
615
|
+
this.y32_1.u31(nameStart, nameEnd, valueStart, valueEnd);
|
|
446
616
|
this.g9_1 = 1;
|
|
447
617
|
continue $sm;
|
|
448
618
|
case 5:
|
|
449
|
-
var host = this.
|
|
619
|
+
var host = this.y32_1.r2h(HttpHeaders_getInstance().e2r_1);
|
|
450
620
|
if (!(host == null)) {
|
|
451
621
|
validateHostHeader(host);
|
|
452
622
|
}
|
|
453
623
|
|
|
454
|
-
return this.
|
|
624
|
+
return this.y32_1;
|
|
455
625
|
case 6:
|
|
456
626
|
this.h9_1 = 7;
|
|
457
627
|
var tmp_0 = this.j9_1;
|
|
458
628
|
if (tmp_0 instanceof Error) {
|
|
459
629
|
var t = this.j9_1;
|
|
460
|
-
this.
|
|
630
|
+
this.y32_1.m1d();
|
|
461
631
|
throw t;
|
|
462
632
|
} else {
|
|
463
633
|
throw this.j9_1;
|
|
@@ -482,8 +652,8 @@
|
|
|
482
652
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
483
653
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
484
654
|
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))]);
|
|
485
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
486
|
-
versions = Companion_instance.
|
|
655
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().i1p_1, Companion_getInstance().h1p_1);
|
|
656
|
+
versions = Companion_instance.b33(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
487
657
|
}
|
|
488
658
|
}
|
|
489
659
|
function get_CrLf() {
|
|
@@ -498,23 +668,23 @@
|
|
|
498
668
|
var PrefixString;
|
|
499
669
|
function Preamble(body) {
|
|
500
670
|
MultipartEvent.call(this);
|
|
501
|
-
this.
|
|
671
|
+
this.c33_1 = body;
|
|
502
672
|
}
|
|
503
673
|
function MultipartPart(headers, body) {
|
|
504
674
|
MultipartEvent.call(this);
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
675
|
+
this.d33_1 = headers;
|
|
676
|
+
this.e33_1 = body;
|
|
507
677
|
}
|
|
508
678
|
function Epilogue(body) {
|
|
509
679
|
MultipartEvent.call(this);
|
|
510
|
-
this.
|
|
680
|
+
this.f33_1 = body;
|
|
511
681
|
}
|
|
512
682
|
function MultipartEvent() {
|
|
513
683
|
}
|
|
514
684
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
515
685
|
maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
|
|
516
686
|
_init_properties_Multipart_kt__ato98a();
|
|
517
|
-
if (!MultiPart_getInstance().
|
|
687
|
+
if (!MultiPart_getInstance().u2o(contentType)) {
|
|
518
688
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
519
689
|
}
|
|
520
690
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -691,18 +861,18 @@
|
|
|
691
861
|
boundaryBytes[_unary__edvuaz] = value;
|
|
692
862
|
}
|
|
693
863
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
864
|
+
this.b35_1 = $firstBoundary;
|
|
865
|
+
this.c35_1 = $countedInput;
|
|
696
866
|
CoroutineImpl.call(this, resultContinuation);
|
|
697
867
|
}
|
|
698
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
699
|
-
var tmp = this.
|
|
868
|
+
protoOf(parseMultipart$slambda$slambda).e35 = function ($this$writer, $completion) {
|
|
869
|
+
var tmp = this.f35($this$writer, $completion);
|
|
700
870
|
tmp.i9_1 = Unit_instance;
|
|
701
871
|
tmp.j9_1 = null;
|
|
702
872
|
return tmp.o9();
|
|
703
873
|
};
|
|
704
874
|
protoOf(parseMultipart$slambda$slambda).ca = function (p1, $completion) {
|
|
705
|
-
return this.
|
|
875
|
+
return this.e35(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
706
876
|
};
|
|
707
877
|
protoOf(parseMultipart$slambda$slambda).o9 = function () {
|
|
708
878
|
var suspendResult = this.i9_1;
|
|
@@ -713,7 +883,7 @@
|
|
|
713
883
|
case 0:
|
|
714
884
|
this.h9_1 = 3;
|
|
715
885
|
this.g9_1 = 1;
|
|
716
|
-
suspendResult = parsePreambleImpl(this.
|
|
886
|
+
suspendResult = parsePreambleImpl(this.b35_1, this.c35_1, this.d35_1.z1s_1, new Long(8193, 0), this);
|
|
717
887
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
718
888
|
return suspendResult;
|
|
719
889
|
}
|
|
@@ -721,7 +891,7 @@
|
|
|
721
891
|
continue $sm;
|
|
722
892
|
case 1:
|
|
723
893
|
this.g9_1 = 2;
|
|
724
|
-
suspendResult = this.
|
|
894
|
+
suspendResult = this.d35_1.z1s_1.a1m(this);
|
|
725
895
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
726
896
|
return suspendResult;
|
|
727
897
|
}
|
|
@@ -743,34 +913,34 @@
|
|
|
743
913
|
}
|
|
744
914
|
while (true);
|
|
745
915
|
};
|
|
746
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
747
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
748
|
-
i.
|
|
916
|
+
protoOf(parseMultipart$slambda$slambda).f35 = function ($this$writer, completion) {
|
|
917
|
+
var i = new parseMultipart$slambda$slambda(this.b35_1, this.c35_1, completion);
|
|
918
|
+
i.d35_1 = $this$writer;
|
|
749
919
|
return i;
|
|
750
920
|
};
|
|
751
921
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
752
922
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
753
923
|
var l = function ($this$writer, $completion) {
|
|
754
|
-
return i.
|
|
924
|
+
return i.e35($this$writer, $completion);
|
|
755
925
|
};
|
|
756
926
|
l.$arity = 1;
|
|
757
927
|
return l;
|
|
758
928
|
}
|
|
759
929
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
760
|
-
this.
|
|
761
|
-
this.
|
|
762
|
-
this.
|
|
763
|
-
this.
|
|
930
|
+
this.o35_1 = $input;
|
|
931
|
+
this.p35_1 = $boundaryPrefixed;
|
|
932
|
+
this.q35_1 = $maxPartSize;
|
|
933
|
+
this.r35_1 = $totalLength;
|
|
764
934
|
CoroutineImpl.call(this, resultContinuation);
|
|
765
935
|
}
|
|
766
|
-
protoOf(parseMultipart$slambda).
|
|
767
|
-
var tmp = this.
|
|
936
|
+
protoOf(parseMultipart$slambda).j36 = function ($this$produce, $completion) {
|
|
937
|
+
var tmp = this.k36($this$produce, $completion);
|
|
768
938
|
tmp.i9_1 = Unit_instance;
|
|
769
939
|
tmp.j9_1 = null;
|
|
770
940
|
return tmp.o9();
|
|
771
941
|
};
|
|
772
942
|
protoOf(parseMultipart$slambda).ca = function (p1, $completion) {
|
|
773
|
-
return this.
|
|
943
|
+
return this.j36((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
774
944
|
};
|
|
775
945
|
protoOf(parseMultipart$slambda).o9 = function () {
|
|
776
946
|
var suspendResult = this.i9_1;
|
|
@@ -780,21 +950,21 @@
|
|
|
780
950
|
switch (tmp) {
|
|
781
951
|
case 0:
|
|
782
952
|
this.h9_1 = 23;
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
953
|
+
this.t35_1 = counted(this.o35_1);
|
|
954
|
+
this.u35_1 = this.t35_1.j1v();
|
|
955
|
+
this.v35_1 = this.p35_1.c1g(get_PrefixString().s());
|
|
786
956
|
this.g9_1 = 1;
|
|
787
|
-
suspendResult = readRemaining(writer(this.
|
|
957
|
+
suspendResult = readRemaining(writer(this.s35_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.v35_1, this.t35_1, null)).x1s_1, this);
|
|
788
958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
789
959
|
return suspendResult;
|
|
790
960
|
}
|
|
791
961
|
|
|
792
962
|
continue $sm;
|
|
793
963
|
case 1:
|
|
794
|
-
this.
|
|
795
|
-
if (get_remaining(this.
|
|
964
|
+
this.w35_1 = suspendResult;
|
|
965
|
+
if (get_remaining(this.w35_1).e1(new Long(0, 0)) > 0) {
|
|
796
966
|
this.g9_1 = 2;
|
|
797
|
-
suspendResult = this.
|
|
967
|
+
suspendResult = this.s35_1.n15(new Preamble(this.w35_1), this);
|
|
798
968
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
799
969
|
return suspendResult;
|
|
800
970
|
}
|
|
@@ -811,74 +981,74 @@
|
|
|
811
981
|
this.g9_1 = 4;
|
|
812
982
|
continue $sm;
|
|
813
983
|
case 4:
|
|
814
|
-
if (!this.
|
|
984
|
+
if (!this.t35_1.x1l()) {
|
|
815
985
|
this.g9_1 = 5;
|
|
816
|
-
suspendResult = skipIfFound(this.
|
|
986
|
+
suspendResult = skipIfFound(this.t35_1, get_PrefixString(), this);
|
|
817
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
818
988
|
return suspendResult;
|
|
819
989
|
}
|
|
820
990
|
continue $sm;
|
|
821
991
|
} else {
|
|
822
|
-
this.
|
|
992
|
+
this.x35_1 = false;
|
|
823
993
|
this.g9_1 = 6;
|
|
824
994
|
continue $sm;
|
|
825
995
|
}
|
|
826
996
|
|
|
827
997
|
case 5:
|
|
828
|
-
this.
|
|
829
|
-
this.
|
|
998
|
+
this.y35_1 = suspendResult;
|
|
999
|
+
this.x35_1 = !this.y35_1;
|
|
830
1000
|
this.g9_1 = 6;
|
|
831
1001
|
continue $sm;
|
|
832
1002
|
case 6:
|
|
833
|
-
if (!this.
|
|
1003
|
+
if (!this.x35_1) {
|
|
834
1004
|
this.g9_1 = 13;
|
|
835
1005
|
continue $sm;
|
|
836
1006
|
}
|
|
837
1007
|
|
|
838
1008
|
this.g9_1 = 7;
|
|
839
|
-
suspendResult = skipIfFound(this.
|
|
1009
|
+
suspendResult = skipIfFound(this.t35_1, get_CrLf(), this);
|
|
840
1010
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
841
1011
|
return suspendResult;
|
|
842
1012
|
}
|
|
843
1013
|
|
|
844
1014
|
continue $sm;
|
|
845
1015
|
case 7:
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
1016
|
+
this.z35_1 = new ByteChannel();
|
|
1017
|
+
this.a36_1 = CompletableDeferred();
|
|
1018
|
+
this.b36_1 = new MultipartPart(this.a36_1, this.z35_1);
|
|
849
1019
|
this.g9_1 = 8;
|
|
850
|
-
suspendResult = this.
|
|
1020
|
+
suspendResult = this.s35_1.n15(this.b36_1, this);
|
|
851
1021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
852
1022
|
return suspendResult;
|
|
853
1023
|
}
|
|
854
1024
|
|
|
855
1025
|
continue $sm;
|
|
856
1026
|
case 8:
|
|
857
|
-
this.
|
|
1027
|
+
this.c36_1 = null;
|
|
858
1028
|
this.h9_1 = 12;
|
|
859
1029
|
this.g9_1 = 9;
|
|
860
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1030
|
+
suspendResult = parsePartHeadersImpl(this.t35_1, this);
|
|
861
1031
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
862
1032
|
return suspendResult;
|
|
863
1033
|
}
|
|
864
1034
|
|
|
865
1035
|
continue $sm;
|
|
866
1036
|
case 9:
|
|
867
|
-
this.
|
|
868
|
-
if (!this.
|
|
869
|
-
this.
|
|
1037
|
+
this.c36_1 = suspendResult;
|
|
1038
|
+
if (!this.a36_1.sv(this.c36_1)) {
|
|
1039
|
+
this.c36_1.m1d();
|
|
870
1040
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
871
1041
|
}
|
|
872
1042
|
|
|
873
1043
|
this.g9_1 = 10;
|
|
874
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1044
|
+
suspendResult = parsePartBodyImpl(this.p35_1, this.t35_1, this.z35_1, this.c36_1, this.q35_1, this);
|
|
875
1045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
876
1046
|
return suspendResult;
|
|
877
1047
|
}
|
|
878
1048
|
|
|
879
1049
|
continue $sm;
|
|
880
1050
|
case 10:
|
|
881
|
-
this.
|
|
1051
|
+
this.z35_1.p4();
|
|
882
1052
|
this.h9_1 = 23;
|
|
883
1053
|
this.g9_1 = 11;
|
|
884
1054
|
continue $sm;
|
|
@@ -890,24 +1060,24 @@
|
|
|
890
1060
|
this.h9_1 = 23;
|
|
891
1061
|
var tmp_0 = this.j9_1;
|
|
892
1062
|
if (tmp_0 instanceof Error) {
|
|
893
|
-
this.
|
|
894
|
-
if (this.
|
|
895
|
-
var tmp0_safe_receiver = this.
|
|
1063
|
+
this.d36_1 = this.j9_1;
|
|
1064
|
+
if (this.a36_1.uv(this.d36_1)) {
|
|
1065
|
+
var tmp0_safe_receiver = this.c36_1;
|
|
896
1066
|
if (tmp0_safe_receiver == null)
|
|
897
1067
|
null;
|
|
898
1068
|
else {
|
|
899
|
-
tmp0_safe_receiver.
|
|
1069
|
+
tmp0_safe_receiver.m1d();
|
|
900
1070
|
}
|
|
901
1071
|
}
|
|
902
|
-
close(this.
|
|
903
|
-
throw this.
|
|
1072
|
+
close(this.z35_1, this.d36_1);
|
|
1073
|
+
throw this.d36_1;
|
|
904
1074
|
} else {
|
|
905
1075
|
throw this.j9_1;
|
|
906
1076
|
}
|
|
907
1077
|
|
|
908
1078
|
case 13:
|
|
909
1079
|
this.g9_1 = 14;
|
|
910
|
-
suspendResult = skipIfFound(this.
|
|
1080
|
+
suspendResult = skipIfFound(this.t35_1, get_CrLf(), this);
|
|
911
1081
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
912
1082
|
return suspendResult;
|
|
913
1083
|
}
|
|
@@ -915,21 +1085,21 @@
|
|
|
915
1085
|
continue $sm;
|
|
916
1086
|
case 14:
|
|
917
1087
|
this.g9_1 = 15;
|
|
918
|
-
suspendResult = skipIfFound(this.
|
|
1088
|
+
suspendResult = skipIfFound(this.t35_1, get_CrLf(), this);
|
|
919
1089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
920
1090
|
return suspendResult;
|
|
921
1091
|
}
|
|
922
1092
|
|
|
923
1093
|
continue $sm;
|
|
924
1094
|
case 15:
|
|
925
|
-
if (!(this.
|
|
926
|
-
this.
|
|
927
|
-
this.
|
|
928
|
-
if (this.
|
|
1095
|
+
if (!(this.r35_1 == null)) {
|
|
1096
|
+
this.e36_1 = this.t35_1.j1v().a3(this.u35_1);
|
|
1097
|
+
this.f36_1 = this.r35_1.a3(this.e36_1);
|
|
1098
|
+
if (this.f36_1.e1(new Long(2147483647, 0)) > 0)
|
|
929
1099
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
930
|
-
if (this.
|
|
1100
|
+
if (this.f36_1.e1(new Long(0, 0)) > 0) {
|
|
931
1101
|
this.g9_1 = 19;
|
|
932
|
-
suspendResult = readPacket(this.
|
|
1102
|
+
suspendResult = readPacket(this.t35_1, this.f36_1.j1(), this);
|
|
933
1103
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
934
1104
|
return suspendResult;
|
|
935
1105
|
}
|
|
@@ -940,7 +1110,7 @@
|
|
|
940
1110
|
}
|
|
941
1111
|
} else {
|
|
942
1112
|
this.g9_1 = 16;
|
|
943
|
-
suspendResult = readRemaining(this.
|
|
1113
|
+
suspendResult = readRemaining(this.t35_1, this);
|
|
944
1114
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
945
1115
|
return suspendResult;
|
|
946
1116
|
}
|
|
@@ -948,10 +1118,10 @@
|
|
|
948
1118
|
}
|
|
949
1119
|
|
|
950
1120
|
case 16:
|
|
951
|
-
this.
|
|
952
|
-
if (!this.
|
|
1121
|
+
this.g36_1 = suspendResult;
|
|
1122
|
+
if (!this.g36_1.k1g()) {
|
|
953
1123
|
this.g9_1 = 17;
|
|
954
|
-
suspendResult = this.
|
|
1124
|
+
suspendResult = this.s35_1.n15(new Epilogue(this.g36_1), this);
|
|
955
1125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
956
1126
|
return suspendResult;
|
|
957
1127
|
}
|
|
@@ -968,10 +1138,10 @@
|
|
|
968
1138
|
this.g9_1 = 22;
|
|
969
1139
|
continue $sm;
|
|
970
1140
|
case 19:
|
|
971
|
-
this.
|
|
972
|
-
this.
|
|
1141
|
+
this.h36_1 = suspendResult;
|
|
1142
|
+
this.i36_1 = new Epilogue(this.h36_1);
|
|
973
1143
|
this.g9_1 = 20;
|
|
974
|
-
suspendResult = this.
|
|
1144
|
+
suspendResult = this.s35_1.n15(this.i36_1, this);
|
|
975
1145
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
976
1146
|
return suspendResult;
|
|
977
1147
|
}
|
|
@@ -999,22 +1169,22 @@
|
|
|
999
1169
|
}
|
|
1000
1170
|
while (true);
|
|
1001
1171
|
};
|
|
1002
|
-
protoOf(parseMultipart$slambda).
|
|
1003
|
-
var i = new parseMultipart$slambda(this.
|
|
1004
|
-
i.
|
|
1172
|
+
protoOf(parseMultipart$slambda).k36 = function ($this$produce, completion) {
|
|
1173
|
+
var i = new parseMultipart$slambda(this.o35_1, this.p35_1, this.q35_1, this.r35_1, completion);
|
|
1174
|
+
i.s35_1 = $this$produce;
|
|
1005
1175
|
return i;
|
|
1006
1176
|
};
|
|
1007
1177
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1008
1178
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1009
1179
|
var l = function ($this$produce, $completion) {
|
|
1010
|
-
return i.
|
|
1180
|
+
return i.j36($this$produce, $completion);
|
|
1011
1181
|
};
|
|
1012
1182
|
l.$arity = 1;
|
|
1013
1183
|
return l;
|
|
1014
1184
|
}
|
|
1015
1185
|
function $parsePartHeadersImplCOROUTINE$5(input, resultContinuation) {
|
|
1016
1186
|
CoroutineImpl.call(this, resultContinuation);
|
|
1017
|
-
this.
|
|
1187
|
+
this.o33_1 = input;
|
|
1018
1188
|
}
|
|
1019
1189
|
protoOf($parsePartHeadersImplCOROUTINE$5).o9 = function () {
|
|
1020
1190
|
var suspendResult = this.i9_1;
|
|
@@ -1024,10 +1194,10 @@
|
|
|
1024
1194
|
switch (tmp) {
|
|
1025
1195
|
case 0:
|
|
1026
1196
|
this.h9_1 = 3;
|
|
1027
|
-
this.
|
|
1197
|
+
this.p33_1 = new CharArrayBuilder();
|
|
1028
1198
|
this.h9_1 = 2;
|
|
1029
1199
|
this.g9_1 = 1;
|
|
1030
|
-
suspendResult = parseHeaders(this.
|
|
1200
|
+
suspendResult = parseHeaders(this.o33_1, this.p33_1, VOID, this);
|
|
1031
1201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1032
1202
|
return suspendResult;
|
|
1033
1203
|
}
|
|
@@ -1048,7 +1218,7 @@
|
|
|
1048
1218
|
var tmp_1 = this.j9_1;
|
|
1049
1219
|
if (tmp_1 instanceof Error) {
|
|
1050
1220
|
var t = this.j9_1;
|
|
1051
|
-
this.
|
|
1221
|
+
this.p33_1.m1d();
|
|
1052
1222
|
throw t;
|
|
1053
1223
|
} else {
|
|
1054
1224
|
throw this.j9_1;
|
|
@@ -1070,11 +1240,11 @@
|
|
|
1070
1240
|
};
|
|
1071
1241
|
function $parsePartBodyImplCOROUTINE$6(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1072
1242
|
CoroutineImpl.call(this, resultContinuation);
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1077
|
-
this.
|
|
1243
|
+
this.y33_1 = boundaryPrefixed;
|
|
1244
|
+
this.z33_1 = input;
|
|
1245
|
+
this.a34_1 = output;
|
|
1246
|
+
this.b34_1 = headers;
|
|
1247
|
+
this.c34_1 = limit;
|
|
1078
1248
|
}
|
|
1079
1249
|
protoOf($parsePartBodyImplCOROUTINE$6).o9 = function () {
|
|
1080
1250
|
var suspendResult = this.i9_1;
|
|
@@ -1085,59 +1255,59 @@
|
|
|
1085
1255
|
case 0:
|
|
1086
1256
|
this.h9_1 = 6;
|
|
1087
1257
|
var tmp_0 = this;
|
|
1088
|
-
var tmp0_safe_receiver = this.
|
|
1089
|
-
tmp_0.
|
|
1090
|
-
if (this.
|
|
1258
|
+
var tmp0_safe_receiver = this.b34_1.r2h('Content-Length');
|
|
1259
|
+
tmp_0.d34_1 = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1260
|
+
if (this.d34_1 == null) {
|
|
1091
1261
|
this.g9_1 = 3;
|
|
1092
|
-
suspendResult = readUntil(this.
|
|
1262
|
+
suspendResult = readUntil(this.z33_1, this.y33_1, this.a34_1, this.c34_1, true, this);
|
|
1093
1263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1094
1264
|
return suspendResult;
|
|
1095
1265
|
}
|
|
1096
1266
|
continue $sm;
|
|
1097
1267
|
} else {
|
|
1098
|
-
if ((new Long(0, 0)).i3(this.
|
|
1268
|
+
if ((new Long(0, 0)).i3(this.c34_1).ii(this.d34_1)) {
|
|
1099
1269
|
this.g9_1 = 1;
|
|
1100
|
-
suspendResult = copyTo(this.
|
|
1270
|
+
suspendResult = copyTo(this.z33_1, this.a34_1, this.d34_1, this);
|
|
1101
1271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1102
1272
|
return suspendResult;
|
|
1103
1273
|
}
|
|
1104
1274
|
continue $sm;
|
|
1105
1275
|
} else {
|
|
1106
1276
|
var tmp_1 = this;
|
|
1107
|
-
throwLimitExceeded(this.
|
|
1277
|
+
throwLimitExceeded(this.d34_1, this.c34_1);
|
|
1108
1278
|
}
|
|
1109
1279
|
}
|
|
1110
1280
|
|
|
1111
1281
|
break;
|
|
1112
1282
|
case 1:
|
|
1113
|
-
this.
|
|
1283
|
+
this.f34_1 = suspendResult;
|
|
1114
1284
|
this.g9_1 = 2;
|
|
1115
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1285
|
+
suspendResult = skipIfFoundReadCount(this.z33_1, this.y33_1, this);
|
|
1116
1286
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1117
1287
|
return suspendResult;
|
|
1118
1288
|
}
|
|
1119
1289
|
|
|
1120
1290
|
continue $sm;
|
|
1121
1291
|
case 2:
|
|
1122
|
-
this.
|
|
1123
|
-
this.
|
|
1292
|
+
this.g34_1 = suspendResult;
|
|
1293
|
+
this.e34_1 = this.f34_1.z2(this.g34_1);
|
|
1124
1294
|
this.g9_1 = 4;
|
|
1125
1295
|
continue $sm;
|
|
1126
1296
|
case 3:
|
|
1127
|
-
this.
|
|
1297
|
+
this.e34_1 = suspendResult;
|
|
1128
1298
|
this.g9_1 = 4;
|
|
1129
1299
|
continue $sm;
|
|
1130
1300
|
case 4:
|
|
1131
|
-
this.
|
|
1301
|
+
this.h34_1 = this.e34_1;
|
|
1132
1302
|
this.g9_1 = 5;
|
|
1133
|
-
suspendResult = this.
|
|
1303
|
+
suspendResult = this.a34_1.p1l(this);
|
|
1134
1304
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1135
1305
|
return suspendResult;
|
|
1136
1306
|
}
|
|
1137
1307
|
|
|
1138
1308
|
continue $sm;
|
|
1139
1309
|
case 5:
|
|
1140
|
-
return this.
|
|
1310
|
+
return this.h34_1;
|
|
1141
1311
|
case 6:
|
|
1142
1312
|
throw this.j9_1;
|
|
1143
1313
|
}
|
|
@@ -1154,8 +1324,8 @@
|
|
|
1154
1324
|
};
|
|
1155
1325
|
function $skipIfFoundReadCountCOROUTINE$7(_this__u8e3s4, prefix, resultContinuation) {
|
|
1156
1326
|
CoroutineImpl.call(this, resultContinuation);
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1327
|
+
this.q34_1 = _this__u8e3s4;
|
|
1328
|
+
this.r34_1 = prefix;
|
|
1159
1329
|
}
|
|
1160
1330
|
protoOf($skipIfFoundReadCountCOROUTINE$7).o9 = function () {
|
|
1161
1331
|
var suspendResult = this.i9_1;
|
|
@@ -1166,7 +1336,7 @@
|
|
|
1166
1336
|
case 0:
|
|
1167
1337
|
this.h9_1 = 3;
|
|
1168
1338
|
this.g9_1 = 1;
|
|
1169
|
-
suspendResult = skipIfFound(this.
|
|
1339
|
+
suspendResult = skipIfFound(this.q34_1, this.r34_1, this);
|
|
1170
1340
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1171
1341
|
return suspendResult;
|
|
1172
1342
|
}
|
|
@@ -1175,18 +1345,18 @@
|
|
|
1175
1345
|
case 1:
|
|
1176
1346
|
if (suspendResult) {
|
|
1177
1347
|
var tmp_0 = this;
|
|
1178
|
-
tmp_0.
|
|
1348
|
+
tmp_0.s34_1 = toLong(this.r34_1.s());
|
|
1179
1349
|
this.g9_1 = 2;
|
|
1180
1350
|
continue $sm;
|
|
1181
1351
|
} else {
|
|
1182
1352
|
var tmp_1 = this;
|
|
1183
|
-
tmp_1.
|
|
1353
|
+
tmp_1.s34_1 = new Long(0, 0);
|
|
1184
1354
|
this.g9_1 = 2;
|
|
1185
1355
|
continue $sm;
|
|
1186
1356
|
}
|
|
1187
1357
|
|
|
1188
1358
|
case 2:
|
|
1189
|
-
return this.
|
|
1359
|
+
return this.s34_1;
|
|
1190
1360
|
case 3:
|
|
1191
1361
|
throw this.j9_1;
|
|
1192
1362
|
}
|
|
@@ -1274,16 +1444,16 @@
|
|
|
1274
1444
|
return new Char(charSequenceGet(s, idx));
|
|
1275
1445
|
}
|
|
1276
1446
|
function Node(ch, exact, children) {
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1447
|
+
this.l36_1 = ch;
|
|
1448
|
+
this.m36_1 = exact;
|
|
1449
|
+
this.n36_1 = children;
|
|
1280
1450
|
var tmp = this;
|
|
1281
1451
|
var tmp_0 = 0;
|
|
1282
1452
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1283
1453
|
var tmp_1 = Array(256);
|
|
1284
1454
|
while (tmp_0 < 256) {
|
|
1285
1455
|
var tmp_2 = tmp_0;
|
|
1286
|
-
var tmp1 = this.
|
|
1456
|
+
var tmp1 = this.n36_1;
|
|
1287
1457
|
var tmp$ret$3;
|
|
1288
1458
|
$l$block_0: {
|
|
1289
1459
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1293,7 +1463,7 @@
|
|
|
1293
1463
|
while (_iterator__ex2g4s.q()) {
|
|
1294
1464
|
var element = _iterator__ex2g4s.r();
|
|
1295
1465
|
// Inline function 'kotlin.code' call
|
|
1296
|
-
var this_0 = element.
|
|
1466
|
+
var this_0 = element.l36_1;
|
|
1297
1467
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1298
1468
|
if (found) {
|
|
1299
1469
|
tmp$ret$3 = null;
|
|
@@ -1312,15 +1482,15 @@
|
|
|
1312
1482
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
1313
1483
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1314
1484
|
}
|
|
1315
|
-
tmp.
|
|
1485
|
+
tmp.o36_1 = tmp_1;
|
|
1316
1486
|
}
|
|
1317
1487
|
function Companion() {
|
|
1318
1488
|
}
|
|
1319
|
-
protoOf(Companion).
|
|
1489
|
+
protoOf(Companion).b33 = function (from) {
|
|
1320
1490
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1321
|
-
return this.
|
|
1491
|
+
return this.p36(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1322
1492
|
};
|
|
1323
|
-
protoOf(Companion).
|
|
1493
|
+
protoOf(Companion).p36 = function (from, length, charAt) {
|
|
1324
1494
|
var tmp$ret$0;
|
|
1325
1495
|
$l$block_0: {
|
|
1326
1496
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1397,10 +1567,10 @@
|
|
|
1397
1567
|
return Companion_instance;
|
|
1398
1568
|
}
|
|
1399
1569
|
function AsciiCharTree(root) {
|
|
1400
|
-
this.
|
|
1570
|
+
this.q36_1 = root;
|
|
1401
1571
|
}
|
|
1402
1572
|
function getImpl($this, index) {
|
|
1403
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1573
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.z31_1).length | 0];
|
|
1404
1574
|
}
|
|
1405
1575
|
function copy($this, startIndex, endIndex) {
|
|
1406
1576
|
if (startIndex === endIndex)
|
|
@@ -1429,27 +1599,27 @@
|
|
|
1429
1599
|
return builder;
|
|
1430
1600
|
}
|
|
1431
1601
|
function SubSequenceImpl($outer, start, end) {
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1602
|
+
this.u36_1 = $outer;
|
|
1603
|
+
this.r36_1 = start;
|
|
1604
|
+
this.s36_1 = end;
|
|
1605
|
+
this.t36_1 = null;
|
|
1436
1606
|
}
|
|
1437
1607
|
protoOf(SubSequenceImpl).a = function () {
|
|
1438
|
-
return this.
|
|
1608
|
+
return this.s36_1 - this.r36_1 | 0;
|
|
1439
1609
|
};
|
|
1440
1610
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1441
|
-
var withOffset = index + this.
|
|
1611
|
+
var withOffset = index + this.r36_1 | 0;
|
|
1442
1612
|
// Inline function 'kotlin.require' call
|
|
1443
1613
|
if (!(index >= 0)) {
|
|
1444
1614
|
var message = 'index is negative: ' + index;
|
|
1445
1615
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1446
1616
|
}
|
|
1447
1617
|
// Inline function 'kotlin.require' call
|
|
1448
|
-
if (!(withOffset < this.
|
|
1618
|
+
if (!(withOffset < this.s36_1)) {
|
|
1449
1619
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1450
1620
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1451
1621
|
}
|
|
1452
|
-
return getImpl(this.
|
|
1622
|
+
return getImpl(this.u36_1, withOffset);
|
|
1453
1623
|
};
|
|
1454
1624
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1455
1625
|
// Inline function 'kotlin.require' call
|
|
@@ -1463,21 +1633,21 @@
|
|
|
1463
1633
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1464
1634
|
}
|
|
1465
1635
|
// Inline function 'kotlin.require' call
|
|
1466
|
-
if (!(endIndex <= (this.
|
|
1636
|
+
if (!(endIndex <= (this.s36_1 - this.r36_1 | 0))) {
|
|
1467
1637
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1468
1638
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1469
1639
|
}
|
|
1470
1640
|
if (startIndex === endIndex)
|
|
1471
1641
|
return '';
|
|
1472
|
-
return new SubSequenceImpl(this.
|
|
1642
|
+
return new SubSequenceImpl(this.u36_1, this.r36_1 + startIndex | 0, this.r36_1 + endIndex | 0);
|
|
1473
1643
|
};
|
|
1474
1644
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1475
|
-
var tmp0_elvis_lhs = this.
|
|
1645
|
+
var tmp0_elvis_lhs = this.t36_1;
|
|
1476
1646
|
var tmp;
|
|
1477
1647
|
if (tmp0_elvis_lhs == null) {
|
|
1478
1648
|
// Inline function 'kotlin.also' call
|
|
1479
|
-
var this_0 = toString(copy(this.
|
|
1480
|
-
this.
|
|
1649
|
+
var this_0 = toString(copy(this.u36_1, this.r36_1, this.s36_1));
|
|
1650
|
+
this.t36_1 = this_0;
|
|
1481
1651
|
tmp = this_0;
|
|
1482
1652
|
} else {
|
|
1483
1653
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1489,20 +1659,20 @@
|
|
|
1489
1659
|
return false;
|
|
1490
1660
|
if (!(charSequenceLength(other) === this.a()))
|
|
1491
1661
|
return false;
|
|
1492
|
-
return rangeEqualsImpl(this.
|
|
1662
|
+
return rangeEqualsImpl(this.u36_1, this.r36_1, other, 0, this.a());
|
|
1493
1663
|
};
|
|
1494
1664
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1495
|
-
var tmp0_safe_receiver = this.
|
|
1665
|
+
var tmp0_safe_receiver = this.t36_1;
|
|
1496
1666
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1497
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1667
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.u36_1, this.r36_1, this.s36_1) : tmp1_elvis_lhs;
|
|
1498
1668
|
};
|
|
1499
1669
|
function bufferForIndex($this, index) {
|
|
1500
|
-
var list = $this.
|
|
1670
|
+
var list = $this.y31_1;
|
|
1501
1671
|
if (list == null) {
|
|
1502
1672
|
if (index >= 2048) {
|
|
1503
1673
|
throwSingleBuffer($this, index);
|
|
1504
1674
|
}
|
|
1505
|
-
var tmp0_elvis_lhs = $this.
|
|
1675
|
+
var tmp0_elvis_lhs = $this.z31_1;
|
|
1506
1676
|
var tmp;
|
|
1507
1677
|
if (tmp0_elvis_lhs == null) {
|
|
1508
1678
|
throwSingleBuffer($this, index);
|
|
@@ -1511,29 +1681,29 @@
|
|
|
1511
1681
|
}
|
|
1512
1682
|
return tmp;
|
|
1513
1683
|
}
|
|
1514
|
-
return list.u(index / ensureNotNull($this.
|
|
1684
|
+
return list.u(index / ensureNotNull($this.z31_1).length | 0);
|
|
1515
1685
|
}
|
|
1516
1686
|
function throwSingleBuffer($this, index) {
|
|
1517
|
-
if ($this.
|
|
1687
|
+
if ($this.b32_1)
|
|
1518
1688
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1519
1689
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1520
1690
|
}
|
|
1521
1691
|
function nonFullBuffer($this) {
|
|
1522
|
-
return $this.
|
|
1692
|
+
return $this.c32_1 === 0 ? appendNewArray($this) : ensureNotNull($this.z31_1);
|
|
1523
1693
|
}
|
|
1524
1694
|
function appendNewArray($this) {
|
|
1525
|
-
var newBuffer = $this.
|
|
1526
|
-
var existing = $this.
|
|
1527
|
-
$this.
|
|
1528
|
-
$this.
|
|
1529
|
-
$this.
|
|
1695
|
+
var newBuffer = $this.x31_1.c1w();
|
|
1696
|
+
var existing = $this.z31_1;
|
|
1697
|
+
$this.z31_1 = newBuffer;
|
|
1698
|
+
$this.c32_1 = newBuffer.length;
|
|
1699
|
+
$this.b32_1 = false;
|
|
1530
1700
|
if (!(existing == null)) {
|
|
1531
|
-
var tmp0_elvis_lhs = $this.
|
|
1701
|
+
var tmp0_elvis_lhs = $this.y31_1;
|
|
1532
1702
|
var tmp;
|
|
1533
1703
|
if (tmp0_elvis_lhs == null) {
|
|
1534
1704
|
// Inline function 'kotlin.also' call
|
|
1535
1705
|
var this_0 = ArrayList_init_$Create$();
|
|
1536
|
-
$this.
|
|
1706
|
+
$this.y31_1 = this_0;
|
|
1537
1707
|
this_0.k(existing);
|
|
1538
1708
|
tmp = this_0;
|
|
1539
1709
|
} else {
|
|
@@ -1572,20 +1742,20 @@
|
|
|
1572
1742
|
return hc;
|
|
1573
1743
|
}
|
|
1574
1744
|
function currentPosition($this) {
|
|
1575
|
-
return ensureNotNull($this.
|
|
1745
|
+
return ensureNotNull($this.z31_1).length - $this.c32_1 | 0;
|
|
1576
1746
|
}
|
|
1577
1747
|
function CharArrayBuilder(pool) {
|
|
1578
1748
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1749
|
+
this.x31_1 = pool;
|
|
1750
|
+
this.y31_1 = null;
|
|
1751
|
+
this.z31_1 = null;
|
|
1752
|
+
this.a32_1 = null;
|
|
1753
|
+
this.b32_1 = false;
|
|
1754
|
+
this.c32_1 = 0;
|
|
1755
|
+
this.d32_1 = 0;
|
|
1586
1756
|
}
|
|
1587
1757
|
protoOf(CharArrayBuilder).a = function () {
|
|
1588
|
-
return this.
|
|
1758
|
+
return this.d32_1;
|
|
1589
1759
|
};
|
|
1590
1760
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1591
1761
|
// Inline function 'kotlin.require' call
|
|
@@ -1594,8 +1764,8 @@
|
|
|
1594
1764
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1595
1765
|
}
|
|
1596
1766
|
// Inline function 'kotlin.require' call
|
|
1597
|
-
if (!(index < this.
|
|
1598
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1767
|
+
if (!(index < this.d32_1)) {
|
|
1768
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.d32_1 + ')';
|
|
1599
1769
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1600
1770
|
}
|
|
1601
1771
|
return getImpl(this, index);
|
|
@@ -1612,19 +1782,19 @@
|
|
|
1612
1782
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1613
1783
|
}
|
|
1614
1784
|
// Inline function 'kotlin.require' call
|
|
1615
|
-
if (!(endIndex <= this.
|
|
1616
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1785
|
+
if (!(endIndex <= this.d32_1)) {
|
|
1786
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.d32_1 + ')';
|
|
1617
1787
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1618
1788
|
}
|
|
1619
1789
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1620
1790
|
};
|
|
1621
1791
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1622
|
-
var tmp0_elvis_lhs = this.
|
|
1792
|
+
var tmp0_elvis_lhs = this.a32_1;
|
|
1623
1793
|
var tmp;
|
|
1624
1794
|
if (tmp0_elvis_lhs == null) {
|
|
1625
1795
|
// Inline function 'kotlin.also' call
|
|
1626
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1627
|
-
this.
|
|
1796
|
+
var this_0 = toString(copy(this, 0, this.d32_1));
|
|
1797
|
+
this.a32_1 = this_0;
|
|
1628
1798
|
tmp = this_0;
|
|
1629
1799
|
} else {
|
|
1630
1800
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1634,20 +1804,20 @@
|
|
|
1634
1804
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1635
1805
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1636
1806
|
return false;
|
|
1637
|
-
if (!(this.
|
|
1807
|
+
if (!(this.d32_1 === charSequenceLength(other)))
|
|
1638
1808
|
return false;
|
|
1639
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1809
|
+
return rangeEqualsImpl(this, 0, other, 0, this.d32_1);
|
|
1640
1810
|
};
|
|
1641
1811
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1642
|
-
var tmp0_safe_receiver = this.
|
|
1812
|
+
var tmp0_safe_receiver = this.a32_1;
|
|
1643
1813
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1644
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1814
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.d32_1) : tmp1_elvis_lhs;
|
|
1645
1815
|
};
|
|
1646
1816
|
protoOf(CharArrayBuilder).s8 = function (value) {
|
|
1647
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1817
|
+
nonFullBuffer(this)[ensureNotNull(this.z31_1).length - this.c32_1 | 0] = value;
|
|
1818
|
+
this.a32_1 = null;
|
|
1819
|
+
this.c32_1 = this.c32_1 - 1 | 0;
|
|
1820
|
+
this.d32_1 = this.d32_1 + 1 | 0;
|
|
1651
1821
|
return this;
|
|
1652
1822
|
};
|
|
1653
1823
|
protoOf(CharArrayBuilder).ad = function (value, startIndex, endIndex) {
|
|
@@ -1656,10 +1826,10 @@
|
|
|
1656
1826
|
var current = startIndex;
|
|
1657
1827
|
while (current < endIndex) {
|
|
1658
1828
|
var buffer = nonFullBuffer(this);
|
|
1659
|
-
var offset = buffer.length - this.
|
|
1829
|
+
var offset = buffer.length - this.c32_1 | 0;
|
|
1660
1830
|
var tmp0 = endIndex - current | 0;
|
|
1661
1831
|
// Inline function 'kotlin.math.min' call
|
|
1662
|
-
var b = this.
|
|
1832
|
+
var b = this.c32_1;
|
|
1663
1833
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1664
1834
|
var inductionVariable = 0;
|
|
1665
1835
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1670,10 +1840,10 @@
|
|
|
1670
1840
|
}
|
|
1671
1841
|
while (inductionVariable < bytesToCopy);
|
|
1672
1842
|
current = current + bytesToCopy | 0;
|
|
1673
|
-
this.
|
|
1843
|
+
this.c32_1 = this.c32_1 - bytesToCopy | 0;
|
|
1674
1844
|
}
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1845
|
+
this.a32_1 = null;
|
|
1846
|
+
this.d32_1 = this.d32_1 + (endIndex - startIndex | 0) | 0;
|
|
1677
1847
|
return this;
|
|
1678
1848
|
};
|
|
1679
1849
|
protoOf(CharArrayBuilder).l = function (value) {
|
|
@@ -1681,34 +1851,34 @@
|
|
|
1681
1851
|
return this;
|
|
1682
1852
|
return this.ad(value, 0, charSequenceLength(value));
|
|
1683
1853
|
};
|
|
1684
|
-
protoOf(CharArrayBuilder).
|
|
1685
|
-
var list = this.
|
|
1854
|
+
protoOf(CharArrayBuilder).m1d = function () {
|
|
1855
|
+
var list = this.y31_1;
|
|
1686
1856
|
if (!(list == null)) {
|
|
1687
|
-
this.
|
|
1857
|
+
this.z31_1 = null;
|
|
1688
1858
|
var inductionVariable = 0;
|
|
1689
1859
|
var last = list.s();
|
|
1690
1860
|
if (inductionVariable < last)
|
|
1691
1861
|
do {
|
|
1692
1862
|
var i = inductionVariable;
|
|
1693
1863
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1694
|
-
this.
|
|
1864
|
+
this.x31_1.d1w(list.u(i));
|
|
1695
1865
|
}
|
|
1696
1866
|
while (inductionVariable < last);
|
|
1697
1867
|
} else {
|
|
1698
|
-
var tmp0_safe_receiver = this.
|
|
1868
|
+
var tmp0_safe_receiver = this.z31_1;
|
|
1699
1869
|
if (tmp0_safe_receiver == null)
|
|
1700
1870
|
null;
|
|
1701
1871
|
else {
|
|
1702
1872
|
// Inline function 'kotlin.let' call
|
|
1703
|
-
this.
|
|
1873
|
+
this.x31_1.d1w(tmp0_safe_receiver);
|
|
1704
1874
|
}
|
|
1705
|
-
this.
|
|
1875
|
+
this.z31_1 = null;
|
|
1706
1876
|
}
|
|
1707
|
-
this.
|
|
1708
|
-
this.
|
|
1709
|
-
this.
|
|
1710
|
-
this.
|
|
1711
|
-
this.
|
|
1877
|
+
this.b32_1 = true;
|
|
1878
|
+
this.y31_1 = null;
|
|
1879
|
+
this.a32_1 = null;
|
|
1880
|
+
this.d32_1 = 0;
|
|
1881
|
+
this.c32_1 = 0;
|
|
1712
1882
|
};
|
|
1713
1883
|
function get_CharArrayPool() {
|
|
1714
1884
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1718,13 +1888,13 @@
|
|
|
1718
1888
|
function CharArrayPool$1() {
|
|
1719
1889
|
NoPoolImpl.call(this);
|
|
1720
1890
|
}
|
|
1721
|
-
protoOf(CharArrayPool$1).
|
|
1891
|
+
protoOf(CharArrayPool$1).c1w = function () {
|
|
1722
1892
|
return charArray(2048);
|
|
1723
1893
|
};
|
|
1724
1894
|
function CharArrayPool$2() {
|
|
1725
1895
|
DefaultPool.call(this, 4096);
|
|
1726
1896
|
}
|
|
1727
|
-
protoOf(CharArrayPool$2).
|
|
1897
|
+
protoOf(CharArrayPool$2).v1v = function () {
|
|
1728
1898
|
return charArray(2048);
|
|
1729
1899
|
};
|
|
1730
1900
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -1811,6 +1981,76 @@
|
|
|
1811
1981
|
while (inductionVariable < end);
|
|
1812
1982
|
return hashCode;
|
|
1813
1983
|
}
|
|
1984
|
+
function equalsLowerCase(_this__u8e3s4, start, end, other) {
|
|
1985
|
+
start = start === VOID ? 0 : start;
|
|
1986
|
+
end = end === VOID ? charSequenceLength(_this__u8e3s4) : end;
|
|
1987
|
+
_init_properties_Chars_kt__d3i39x();
|
|
1988
|
+
if (!((end - start | 0) === charSequenceLength(other)))
|
|
1989
|
+
return false;
|
|
1990
|
+
var inductionVariable = start;
|
|
1991
|
+
if (inductionVariable < end)
|
|
1992
|
+
do {
|
|
1993
|
+
var pos = inductionVariable;
|
|
1994
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1995
|
+
// Inline function 'kotlin.code' call
|
|
1996
|
+
var this_0 = charSequenceGet(_this__u8e3s4, pos);
|
|
1997
|
+
// Inline function 'io.ktor.http.cio.internals.toLowerCase' call
|
|
1998
|
+
var this_1 = Char__toInt_impl_vasixd(this_0);
|
|
1999
|
+
var tmp;
|
|
2000
|
+
// Inline function 'kotlin.code' call
|
|
2001
|
+
var this_2 = _Char___init__impl__6a9atx(65);
|
|
2002
|
+
var containsLower = Char__toInt_impl_vasixd(this_2);
|
|
2003
|
+
var tmp_0;
|
|
2004
|
+
// Inline function 'kotlin.code' call
|
|
2005
|
+
var this_3 = _Char___init__impl__6a9atx(90);
|
|
2006
|
+
if (this_1 <= Char__toInt_impl_vasixd(this_3)) {
|
|
2007
|
+
tmp_0 = containsLower <= this_1;
|
|
2008
|
+
} else {
|
|
2009
|
+
tmp_0 = false;
|
|
2010
|
+
}
|
|
2011
|
+
if (tmp_0) {
|
|
2012
|
+
// Inline function 'kotlin.code' call
|
|
2013
|
+
var this_4 = _Char___init__impl__6a9atx(97);
|
|
2014
|
+
var tmp_1 = Char__toInt_impl_vasixd(this_4);
|
|
2015
|
+
// Inline function 'kotlin.code' call
|
|
2016
|
+
var this_5 = _Char___init__impl__6a9atx(65);
|
|
2017
|
+
tmp = tmp_1 + (this_1 - Char__toInt_impl_vasixd(this_5) | 0) | 0;
|
|
2018
|
+
} else {
|
|
2019
|
+
tmp = this_1;
|
|
2020
|
+
}
|
|
2021
|
+
var tmp_2 = tmp;
|
|
2022
|
+
// Inline function 'kotlin.code' call
|
|
2023
|
+
var this_6 = charSequenceGet(other, pos - start | 0);
|
|
2024
|
+
// Inline function 'io.ktor.http.cio.internals.toLowerCase' call
|
|
2025
|
+
var this_7 = Char__toInt_impl_vasixd(this_6);
|
|
2026
|
+
var tmp_3;
|
|
2027
|
+
// Inline function 'kotlin.code' call
|
|
2028
|
+
var this_8 = _Char___init__impl__6a9atx(65);
|
|
2029
|
+
var containsLower_0 = Char__toInt_impl_vasixd(this_8);
|
|
2030
|
+
var tmp_4;
|
|
2031
|
+
// Inline function 'kotlin.code' call
|
|
2032
|
+
var this_9 = _Char___init__impl__6a9atx(90);
|
|
2033
|
+
if (this_7 <= Char__toInt_impl_vasixd(this_9)) {
|
|
2034
|
+
tmp_4 = containsLower_0 <= this_7;
|
|
2035
|
+
} else {
|
|
2036
|
+
tmp_4 = false;
|
|
2037
|
+
}
|
|
2038
|
+
if (tmp_4) {
|
|
2039
|
+
// Inline function 'kotlin.code' call
|
|
2040
|
+
var this_10 = _Char___init__impl__6a9atx(97);
|
|
2041
|
+
var tmp_5 = Char__toInt_impl_vasixd(this_10);
|
|
2042
|
+
// Inline function 'kotlin.code' call
|
|
2043
|
+
var this_11 = _Char___init__impl__6a9atx(65);
|
|
2044
|
+
tmp_3 = tmp_5 + (this_7 - Char__toInt_impl_vasixd(this_11) | 0) | 0;
|
|
2045
|
+
} else {
|
|
2046
|
+
tmp_3 = this_7;
|
|
2047
|
+
}
|
|
2048
|
+
if (!(tmp_2 === tmp_3))
|
|
2049
|
+
return false;
|
|
2050
|
+
}
|
|
2051
|
+
while (inductionVariable < end);
|
|
2052
|
+
return true;
|
|
2053
|
+
}
|
|
1814
2054
|
function numberFormatException(cs) {
|
|
1815
2055
|
_init_properties_Chars_kt__d3i39x();
|
|
1816
2056
|
throw NumberFormatException_init_$Create$('Invalid number ' + toString(cs) + ': too large for Long type');
|
|
@@ -1845,20 +2085,20 @@
|
|
|
1845
2085
|
}
|
|
1846
2086
|
function DefaultHttpMethods$lambda(it) {
|
|
1847
2087
|
_init_properties_Chars_kt__d3i39x();
|
|
1848
|
-
return it.
|
|
2088
|
+
return it.m2u_1.length;
|
|
1849
2089
|
}
|
|
1850
2090
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
1851
2091
|
_init_properties_Chars_kt__d3i39x();
|
|
1852
|
-
return new Char(charSequenceGet(m.
|
|
2092
|
+
return new Char(charSequenceGet(m.m2u_1, idx));
|
|
1853
2093
|
}
|
|
1854
2094
|
var properties_initialized_Chars_kt_phjfhp;
|
|
1855
2095
|
function _init_properties_Chars_kt__d3i39x() {
|
|
1856
2096
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
1857
2097
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
1858
2098
|
var tmp = Companion_instance;
|
|
1859
|
-
var tmp_0 = Companion_getInstance_0().
|
|
2099
|
+
var tmp_0 = Companion_getInstance_0().l2u_1;
|
|
1860
2100
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
1861
|
-
DefaultHttpMethods = tmp.
|
|
2101
|
+
DefaultHttpMethods = tmp.p36(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
1862
2102
|
// Inline function 'kotlin.collections.map' call
|
|
1863
2103
|
var this_0 = numberRangeToNumber(0, 255);
|
|
1864
2104
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1957,11 +2197,11 @@
|
|
|
1957
2197
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
1958
2198
|
}
|
|
1959
2199
|
function MutableRange(start, end) {
|
|
1960
|
-
this.
|
|
1961
|
-
this.
|
|
2200
|
+
this.z32_1 = start;
|
|
2201
|
+
this.a33_1 = end;
|
|
1962
2202
|
}
|
|
1963
2203
|
protoOf(MutableRange).toString = function () {
|
|
1964
|
-
return 'MutableRange(start=' + this.
|
|
2204
|
+
return 'MutableRange(start=' + this.z32_1 + ', end=' + this.a33_1 + ')';
|
|
1965
2205
|
};
|
|
1966
2206
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
1967
2207
|
var index = start;
|