@doordeck/doordeck-headless-sdk 0.201.0 → 0.202.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 +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +12764 -12709
- package/kotlin/kotlin-kotlin-stdlib.js +2780 -2207
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2837 -2759
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core.js +487 -487
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1918 -1918
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1540 -1540
- package/kotlin/ktor-ktor-client-auth.js +461 -461
- package/kotlin/ktor-ktor-client-content-negotiation.js +217 -217
- package/kotlin/ktor-ktor-client-core.js +3364 -3349
- package/kotlin/ktor-ktor-client-logging.js +1128 -1128
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +548 -548
- package/kotlin/ktor-ktor-http.js +834 -832
- package/kotlin/ktor-ktor-io.js +1373 -1181
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +327 -254
- package/kotlin/ktor-ktor-serialization.js +119 -119
- package/kotlin/ktor-ktor-utils.js +1169 -1134
- package/kotlin/ktor-ktor-websockets.js +792 -794
- package/package.json +1 -1
|
@@ -3,104 +3,104 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.c;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.gc;
|
|
7
7
|
var MultiPartData = kotlin_io_ktor_ktor_http.$_$.n;
|
|
8
8
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
12
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
13
|
-
var abs = kotlin_kotlin.$_$.
|
|
11
|
+
var toString = kotlin_kotlin.$_$.jc;
|
|
12
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p2;
|
|
13
|
+
var abs = kotlin_kotlin.$_$.kc;
|
|
14
14
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
15
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
16
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
17
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
18
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
15
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
16
|
+
var THROW_CCE = kotlin_kotlin.$_$.hg;
|
|
17
|
+
var SequenceScope = kotlin_kotlin.$_$.fd;
|
|
18
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
19
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ob;
|
|
20
20
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
21
|
-
var sequence = kotlin_kotlin.$_$.
|
|
21
|
+
var sequence = kotlin_kotlin.$_$.gd;
|
|
22
22
|
var DefaultPool = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
23
|
-
var fill = kotlin_kotlin.$_$.
|
|
24
|
-
var isIntArray = kotlin_kotlin.$_$.
|
|
25
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
26
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
27
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
28
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
29
|
-
var Char = kotlin_kotlin.$_$.
|
|
30
|
-
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.
|
|
31
|
-
var contains = kotlin_kotlin.$_$.
|
|
32
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
33
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
34
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
35
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
36
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
23
|
+
var fill = kotlin_kotlin.$_$.z6;
|
|
24
|
+
var isIntArray = kotlin_kotlin.$_$.xb;
|
|
25
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h3;
|
|
26
|
+
var endsWith = kotlin_kotlin.$_$.pd;
|
|
27
|
+
var charSequenceLength = kotlin_kotlin.$_$.xa;
|
|
28
|
+
var charSequenceGet = kotlin_kotlin.$_$.wa;
|
|
29
|
+
var Char = kotlin_kotlin.$_$.tf;
|
|
30
|
+
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.i3;
|
|
31
|
+
var contains = kotlin_kotlin.$_$.kd;
|
|
32
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ya;
|
|
33
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.n3;
|
|
34
|
+
var IllegalStateException = kotlin_kotlin.$_$.cg;
|
|
35
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s2;
|
|
36
|
+
var captureStack = kotlin_kotlin.$_$.sa;
|
|
37
37
|
var readLineStrictTo = kotlin_io_ktor_ktor_io.$_$.h;
|
|
38
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
39
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
40
|
-
var setOf = kotlin_kotlin.$_$.
|
|
38
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t2;
|
|
39
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
|
|
40
|
+
var setOf = kotlin_kotlin.$_$.f8;
|
|
41
41
|
var Companion_getInstance = kotlin_io_ktor_ktor_io.$_$.c;
|
|
42
42
|
var LineEndingMode__plus_impl_ttpz2j = kotlin_io_ktor_ktor_io.$_$.q;
|
|
43
|
-
var listOf = kotlin_kotlin.$_$.
|
|
43
|
+
var listOf = kotlin_kotlin.$_$.t7;
|
|
44
44
|
var MultiPart_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
45
45
|
var ByteString_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.b;
|
|
46
46
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
47
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
48
|
-
var toByte = kotlin_kotlin.$_$.
|
|
49
|
-
var copyOfRange = kotlin_kotlin.$_$.
|
|
47
|
+
var toString_0 = kotlin_kotlin.$_$.df;
|
|
48
|
+
var toByte = kotlin_kotlin.$_$.hc;
|
|
49
|
+
var copyOfRange = kotlin_kotlin.$_$.h6;
|
|
50
50
|
var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
51
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
51
|
+
var startsWith = kotlin_kotlin.$_$.le;
|
|
52
52
|
var readUntil = kotlin_io_ktor_ktor_io.$_$.l;
|
|
53
53
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
54
54
|
var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
-
var counted = kotlin_io_ktor_ktor_io.$_$.
|
|
57
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.yb;
|
|
56
|
+
var counted = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
57
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.y1;
|
|
58
58
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.j;
|
|
59
59
|
var get_remaining = kotlin_io_ktor_ktor_io.$_$.c1;
|
|
60
60
|
var skipIfFound = kotlin_io_ktor_ktor_io.$_$.m;
|
|
61
61
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
62
62
|
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
63
63
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
64
|
-
var close = kotlin_io_ktor_ktor_io.$_$.
|
|
65
|
-
var subtract = kotlin_kotlin.$_$.
|
|
66
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
64
|
+
var close = kotlin_io_ktor_ktor_io.$_$.s1;
|
|
65
|
+
var subtract = kotlin_kotlin.$_$.ma;
|
|
66
|
+
var convertToInt = kotlin_kotlin.$_$.aa;
|
|
67
67
|
var readPacket = kotlin_io_ktor_ktor_io.$_$.i;
|
|
68
68
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
69
69
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.d;
|
|
70
|
-
var add = kotlin_kotlin.$_$.
|
|
71
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
70
|
+
var add = kotlin_kotlin.$_$.y9;
|
|
71
|
+
var fromInt = kotlin_kotlin.$_$.da;
|
|
72
72
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
73
73
|
var ByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.c;
|
|
74
74
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
75
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
76
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
77
|
-
var Collection = kotlin_kotlin.$_$.
|
|
78
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
79
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
80
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
75
|
+
var compareTo = kotlin_kotlin.$_$.za;
|
|
76
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.z2;
|
|
77
|
+
var Collection = kotlin_kotlin.$_$.i5;
|
|
78
|
+
var emptyList = kotlin_kotlin.$_$.w6;
|
|
79
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.kb;
|
|
80
|
+
var ensureNotNull = kotlin_kotlin.$_$.zg;
|
|
81
81
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.d2;
|
|
82
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
83
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
84
|
-
var CharSequence = kotlin_kotlin.$_$.
|
|
85
|
-
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.
|
|
82
|
+
var isCharSequence = kotlin_kotlin.$_$.ub;
|
|
83
|
+
var getStringHashCode = kotlin_kotlin.$_$.hb;
|
|
84
|
+
var CharSequence = kotlin_kotlin.$_$.sf;
|
|
85
|
+
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.w2;
|
|
86
86
|
var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
87
|
-
var charArray = kotlin_kotlin.$_$.
|
|
88
|
-
var shiftLeft = kotlin_kotlin.$_$.
|
|
89
|
-
var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.
|
|
90
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
91
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
87
|
+
var charArray = kotlin_kotlin.$_$.ua;
|
|
88
|
+
var shiftLeft = kotlin_kotlin.$_$.ka;
|
|
89
|
+
var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.a3;
|
|
90
|
+
var toString_1 = kotlin_kotlin.$_$.o3;
|
|
91
|
+
var charCodeAt = kotlin_kotlin.$_$.va;
|
|
92
92
|
var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.h;
|
|
93
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
94
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
93
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.dc;
|
|
94
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
95
95
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
|
|
96
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
97
|
-
var toLongArray = kotlin_kotlin.$_$.
|
|
98
|
-
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.
|
|
99
|
-
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.
|
|
100
|
-
var toByteArray_0 = kotlin_kotlin.$_$.
|
|
96
|
+
var numberToLong = kotlin_kotlin.$_$.ja;
|
|
97
|
+
var toLongArray = kotlin_kotlin.$_$.p8;
|
|
98
|
+
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.l3;
|
|
99
|
+
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.k3;
|
|
100
|
+
var toByteArray_0 = kotlin_kotlin.$_$.k8;
|
|
101
101
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
102
102
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
103
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
103
|
+
var isWhitespace = kotlin_kotlin.$_$.yd;
|
|
104
104
|
//endregion
|
|
105
105
|
//region block: pre-declaration
|
|
106
106
|
initMetadataForClass(CIOMultipartDataBase, 'CIOMultipartDataBase', VOID, VOID, [MultiPartData, CoroutineScope], [0, 1]);
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
initMetadataForClass(HeadersDataPool$1, VOID, VOID, DefaultPool);
|
|
112
112
|
initMetadataForClass(ParserException, 'ParserException', VOID, IllegalStateException);
|
|
113
113
|
initMetadataForCoroutine($parseHeadersCOROUTINE$, CoroutineImpl);
|
|
114
|
-
initMetadataForClass(MultipartEvent, 'MultipartEvent');
|
|
115
|
-
initMetadataForClass(Preamble, 'Preamble', VOID, MultipartEvent);
|
|
116
|
-
initMetadataForClass(MultipartPart, 'MultipartPart', VOID, MultipartEvent);
|
|
117
|
-
initMetadataForClass(Epilogue, 'Epilogue', VOID, MultipartEvent);
|
|
114
|
+
initMetadataForClass(MultipartEvent, 'MultipartEvent', VOID, VOID, VOID, [0]);
|
|
115
|
+
initMetadataForClass(Preamble, 'Preamble', VOID, MultipartEvent, VOID, [0]);
|
|
116
|
+
initMetadataForClass(MultipartPart, 'MultipartPart', VOID, MultipartEvent, VOID, [0]);
|
|
117
|
+
initMetadataForClass(Epilogue, 'Epilogue', VOID, MultipartEvent, VOID, [0]);
|
|
118
118
|
initMetadataForLambda(parseMultipart$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
119
119
|
initMetadataForLambda(parseMultipart$slambda, CoroutineImpl, VOID, [1]);
|
|
120
120
|
initMetadataForCoroutine($parsePartHeadersImplCOROUTINE$, CoroutineImpl);
|
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
//endregion
|
|
133
133
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
134
134
|
formFieldLimit = formFieldLimit === VOID ? 65536n : formFieldLimit;
|
|
135
|
-
this.
|
|
136
|
-
this.
|
|
137
|
-
this.
|
|
135
|
+
this.i38_1 = coroutineContext;
|
|
136
|
+
this.j38_1 = null;
|
|
137
|
+
this.k38_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
138
138
|
}
|
|
139
|
-
protoOf(CIOMultipartDataBase).
|
|
140
|
-
return this.
|
|
139
|
+
protoOf(CIOMultipartDataBase).qt = function () {
|
|
140
|
+
return this.i38_1;
|
|
141
141
|
};
|
|
142
142
|
function get_IntArrayPool() {
|
|
143
143
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -150,103 +150,103 @@
|
|
|
150
150
|
}
|
|
151
151
|
var HeadersDataPool;
|
|
152
152
|
function thresholdReached($this) {
|
|
153
|
-
return $this.
|
|
153
|
+
return $this.m38_1 >= $this.n38_1 * 0.75;
|
|
154
154
|
}
|
|
155
155
|
function resize($this) {
|
|
156
|
-
var prevSize = $this.
|
|
157
|
-
var prevData = $this.
|
|
158
|
-
$this.
|
|
159
|
-
$this.
|
|
156
|
+
var prevSize = $this.m38_1;
|
|
157
|
+
var prevData = $this.o38_1;
|
|
158
|
+
$this.m38_1 = 0;
|
|
159
|
+
$this.n38_1 = imul($this.n38_1, 2) | 128;
|
|
160
160
|
var tmp = $this;
|
|
161
161
|
// Inline function 'kotlin.apply' call
|
|
162
|
-
var this_0 = get_HeadersDataPool().
|
|
163
|
-
this_0.
|
|
164
|
-
tmp.
|
|
165
|
-
var _iterator__ex2g4s = prevData.
|
|
162
|
+
var this_0 = get_HeadersDataPool().k1z();
|
|
163
|
+
this_0.r38(imul(prevData.q38(), 2) | 1);
|
|
164
|
+
tmp.o38_1 = this_0;
|
|
165
|
+
var _iterator__ex2g4s = prevData.s38().t();
|
|
166
166
|
while (_iterator__ex2g4s.u()) {
|
|
167
167
|
var headerOffset = _iterator__ex2g4s.v();
|
|
168
|
-
$this.
|
|
168
|
+
$this.u38(prevData.t38(headerOffset + 1 | 0), prevData.t38(headerOffset + 2 | 0), prevData.t38(headerOffset + 3 | 0), prevData.t38(headerOffset + 4 | 0));
|
|
169
169
|
}
|
|
170
|
-
get_HeadersDataPool().
|
|
170
|
+
get_HeadersDataPool().l1z(prevData);
|
|
171
171
|
// Inline function 'kotlin.require' call
|
|
172
172
|
// Inline function 'kotlin.require' call
|
|
173
|
-
if (!(prevSize === $this.
|
|
173
|
+
if (!(prevSize === $this.m38_1)) {
|
|
174
174
|
var message = 'Failed requirement.';
|
|
175
175
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
function headerHasName($this, name, headerOffset) {
|
|
179
|
-
var nameStartIndex = $this.
|
|
180
|
-
var nameEndIndex = $this.
|
|
181
|
-
return equalsLowerCase($this.
|
|
179
|
+
var nameStartIndex = $this.o38_1.t38(headerOffset + 1 | 0);
|
|
180
|
+
var nameEndIndex = $this.o38_1.t38(headerOffset + 2 | 0);
|
|
181
|
+
return equalsLowerCase($this.l38_1, nameStartIndex, nameEndIndex, name);
|
|
182
182
|
}
|
|
183
183
|
function HttpHeadersMap(builder) {
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
184
|
+
this.l38_1 = builder;
|
|
185
|
+
this.m38_1 = 0;
|
|
186
|
+
this.n38_1 = 0;
|
|
187
|
+
this.o38_1 = get_HeadersDataPool().k1z();
|
|
188
188
|
}
|
|
189
|
-
protoOf(HttpHeadersMap).
|
|
190
|
-
if (this.
|
|
189
|
+
protoOf(HttpHeadersMap).p2o = function (name) {
|
|
190
|
+
if (this.m38_1 === 0)
|
|
191
191
|
return null;
|
|
192
192
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
193
193
|
var this_0 = hashCodeLowerCase(name);
|
|
194
194
|
var hash = abs(this_0);
|
|
195
|
-
var headerIndex = hash % this.
|
|
196
|
-
while (!(this.
|
|
195
|
+
var headerIndex = hash % this.n38_1 | 0;
|
|
196
|
+
while (!(this.o38_1.t38(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
197
197
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
198
|
-
return this.
|
|
198
|
+
return this.v38(imul(headerIndex, 6));
|
|
199
199
|
}
|
|
200
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
200
|
+
headerIndex = (headerIndex + 1 | 0) % this.n38_1 | 0;
|
|
201
201
|
}
|
|
202
202
|
return null;
|
|
203
203
|
};
|
|
204
|
-
protoOf(HttpHeadersMap).
|
|
205
|
-
return this.
|
|
204
|
+
protoOf(HttpHeadersMap).w38 = function () {
|
|
205
|
+
return this.o38_1.s38();
|
|
206
206
|
};
|
|
207
|
-
protoOf(HttpHeadersMap).
|
|
207
|
+
protoOf(HttpHeadersMap).u38 = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
208
208
|
if (thresholdReached(this)) {
|
|
209
209
|
resize(this);
|
|
210
210
|
}
|
|
211
211
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
212
|
-
var this_0 = hashCodeLowerCase(this.
|
|
212
|
+
var this_0 = hashCodeLowerCase(this.l38_1, nameStartIndex, nameEndIndex);
|
|
213
213
|
var hash = abs(this_0);
|
|
214
|
-
var name = this.
|
|
215
|
-
var headerIndex = hash % this.
|
|
214
|
+
var name = this.l38_1.c(nameStartIndex, nameEndIndex);
|
|
215
|
+
var headerIndex = hash % this.n38_1 | 0;
|
|
216
216
|
var sameNameHeaderIndex = -1;
|
|
217
|
-
while (!(this.
|
|
217
|
+
while (!(this.o38_1.t38(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
218
218
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
219
219
|
sameNameHeaderIndex = headerIndex;
|
|
220
220
|
}
|
|
221
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
221
|
+
headerIndex = (headerIndex + 1 | 0) % this.n38_1 | 0;
|
|
222
222
|
}
|
|
223
223
|
var headerOffset = imul(headerIndex, 6);
|
|
224
|
-
this.
|
|
225
|
-
this.
|
|
226
|
-
this.
|
|
227
|
-
this.
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
224
|
+
this.o38_1.e39(headerOffset + 0 | 0, hash);
|
|
225
|
+
this.o38_1.e39(headerOffset + 1 | 0, nameStartIndex);
|
|
226
|
+
this.o38_1.e39(headerOffset + 2 | 0, nameEndIndex);
|
|
227
|
+
this.o38_1.e39(headerOffset + 3 | 0, valueStartIndex);
|
|
228
|
+
this.o38_1.e39(headerOffset + 4 | 0, valueEndIndex);
|
|
229
|
+
this.o38_1.e39(headerOffset + 5 | 0, -1);
|
|
230
230
|
if (!(sameNameHeaderIndex === -1)) {
|
|
231
|
-
this.
|
|
231
|
+
this.o38_1.e39(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
232
232
|
}
|
|
233
|
-
this.
|
|
233
|
+
this.m38_1 = this.m38_1 + 1 | 0;
|
|
234
234
|
};
|
|
235
|
-
protoOf(HttpHeadersMap).
|
|
236
|
-
var nameStartIndex = this.
|
|
237
|
-
var nameEndIndex = this.
|
|
238
|
-
return this.
|
|
235
|
+
protoOf(HttpHeadersMap).f39 = function (headerOffset) {
|
|
236
|
+
var nameStartIndex = this.o38_1.t38(headerOffset + 1 | 0);
|
|
237
|
+
var nameEndIndex = this.o38_1.t38(headerOffset + 2 | 0);
|
|
238
|
+
return this.l38_1.c(nameStartIndex, nameEndIndex);
|
|
239
239
|
};
|
|
240
|
-
protoOf(HttpHeadersMap).
|
|
241
|
-
var valueStartIndex = this.
|
|
242
|
-
var valueEndIndex = this.
|
|
243
|
-
return this.
|
|
240
|
+
protoOf(HttpHeadersMap).v38 = function (headerOffset) {
|
|
241
|
+
var valueStartIndex = this.o38_1.t38(headerOffset + 3 | 0);
|
|
242
|
+
var valueEndIndex = this.o38_1.t38(headerOffset + 4 | 0);
|
|
243
|
+
return this.l38_1.c(valueStartIndex, valueEndIndex);
|
|
244
244
|
};
|
|
245
|
-
protoOf(HttpHeadersMap).
|
|
246
|
-
this.
|
|
247
|
-
this.
|
|
248
|
-
get_HeadersDataPool().
|
|
249
|
-
this.
|
|
245
|
+
protoOf(HttpHeadersMap).d1k = function () {
|
|
246
|
+
this.m38_1 = 0;
|
|
247
|
+
this.n38_1 = 0;
|
|
248
|
+
get_HeadersDataPool().l1z(this.o38_1);
|
|
249
|
+
this.o38_1 = get_HeadersDataPool().k1z();
|
|
250
250
|
};
|
|
251
251
|
protoOf(HttpHeadersMap).toString = function () {
|
|
252
252
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -256,94 +256,94 @@
|
|
|
256
256
|
return this_0.toString();
|
|
257
257
|
};
|
|
258
258
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
259
|
-
this.
|
|
259
|
+
this.o39_1 = this$0;
|
|
260
260
|
CoroutineImpl.call(this, resultContinuation);
|
|
261
261
|
}
|
|
262
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
263
|
-
var tmp = this.
|
|
264
|
-
tmp.
|
|
265
|
-
tmp.
|
|
266
|
-
return tmp.
|
|
262
|
+
protoOf(HeadersData$headersStarts$slambda).u39 = function ($this$sequence, $completion) {
|
|
263
|
+
var tmp = this.v39($this$sequence, $completion);
|
|
264
|
+
tmp.f9_1 = Unit_instance;
|
|
265
|
+
tmp.g9_1 = null;
|
|
266
|
+
return tmp.l9();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
269
|
-
return this.
|
|
268
|
+
protoOf(HeadersData$headersStarts$slambda).y9 = function (p1, $completion) {
|
|
269
|
+
return this.u39(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
270
270
|
};
|
|
271
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
272
|
-
var suspendResult = this.
|
|
271
|
+
protoOf(HeadersData$headersStarts$slambda).l9 = function () {
|
|
272
|
+
var suspendResult = this.f9_1;
|
|
273
273
|
$sm: do
|
|
274
274
|
try {
|
|
275
|
-
var tmp = this.
|
|
275
|
+
var tmp = this.d9_1;
|
|
276
276
|
switch (tmp) {
|
|
277
277
|
case 0:
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
278
|
+
this.e9_1 = 7;
|
|
279
|
+
this.q39_1 = 0;
|
|
280
|
+
this.t39_1 = this.o39_1.p38_1.t();
|
|
281
|
+
this.d9_1 = 1;
|
|
282
282
|
continue $sm;
|
|
283
283
|
case 1:
|
|
284
|
-
if (!this.
|
|
285
|
-
this.
|
|
284
|
+
if (!this.t39_1.u()) {
|
|
285
|
+
this.d9_1 = 6;
|
|
286
286
|
continue $sm;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
289
|
+
this.s39_1 = this.t39_1.v();
|
|
290
|
+
this.r39_1 = 0;
|
|
291
|
+
this.d9_1 = 2;
|
|
292
292
|
continue $sm;
|
|
293
293
|
case 2:
|
|
294
|
-
if (!(this.
|
|
295
|
-
this.
|
|
294
|
+
if (!(this.r39_1 < this.s39_1.length)) {
|
|
295
|
+
this.d9_1 = 5;
|
|
296
296
|
continue $sm;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
if (!(this.
|
|
300
|
-
this.
|
|
301
|
-
suspendResult = this.
|
|
299
|
+
if (!(this.o39_1.t38(this.q39_1 + 0 | 0) === -1)) {
|
|
300
|
+
this.d9_1 = 3;
|
|
301
|
+
suspendResult = this.p39_1.kg(this.q39_1, this);
|
|
302
302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
303
303
|
return suspendResult;
|
|
304
304
|
}
|
|
305
305
|
continue $sm;
|
|
306
306
|
} else {
|
|
307
|
-
this.
|
|
307
|
+
this.d9_1 = 4;
|
|
308
308
|
continue $sm;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
case 3:
|
|
312
|
-
this.
|
|
312
|
+
this.d9_1 = 4;
|
|
313
313
|
continue $sm;
|
|
314
314
|
case 4:
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
315
|
+
this.r39_1 = this.r39_1 + 6 | 0;
|
|
316
|
+
this.q39_1 = this.q39_1 + 6 | 0;
|
|
317
|
+
this.d9_1 = 2;
|
|
318
318
|
continue $sm;
|
|
319
319
|
case 5:
|
|
320
|
-
this.
|
|
320
|
+
this.d9_1 = 1;
|
|
321
321
|
continue $sm;
|
|
322
322
|
case 6:
|
|
323
323
|
return Unit_instance;
|
|
324
324
|
case 7:
|
|
325
|
-
throw this.
|
|
325
|
+
throw this.g9_1;
|
|
326
326
|
}
|
|
327
327
|
} catch ($p) {
|
|
328
328
|
var e = $p;
|
|
329
|
-
if (this.
|
|
329
|
+
if (this.e9_1 === 7) {
|
|
330
330
|
throw e;
|
|
331
331
|
} else {
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
332
|
+
this.d9_1 = this.e9_1;
|
|
333
|
+
this.g9_1 = e;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
while (true);
|
|
337
337
|
};
|
|
338
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
339
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
340
|
-
i.
|
|
338
|
+
protoOf(HeadersData$headersStarts$slambda).v39 = function ($this$sequence, completion) {
|
|
339
|
+
var i = new HeadersData$headersStarts$slambda(this.o39_1, completion);
|
|
340
|
+
i.p39_1 = $this$sequence;
|
|
341
341
|
return i;
|
|
342
342
|
};
|
|
343
343
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
344
344
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
345
345
|
var l = function ($this$sequence, $completion) {
|
|
346
|
-
return i.
|
|
346
|
+
return i.u39($this$sequence, $completion);
|
|
347
347
|
};
|
|
348
348
|
l.$arity = 1;
|
|
349
349
|
return l;
|
|
@@ -351,55 +351,55 @@
|
|
|
351
351
|
function HeadersData() {
|
|
352
352
|
var tmp = this;
|
|
353
353
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
354
|
-
tmp.
|
|
354
|
+
tmp.p38_1 = ArrayList_init_$Create$();
|
|
355
355
|
}
|
|
356
|
-
protoOf(HeadersData).
|
|
357
|
-
return this.
|
|
356
|
+
protoOf(HeadersData).q38 = function () {
|
|
357
|
+
return this.p38_1.l1();
|
|
358
358
|
};
|
|
359
|
-
protoOf(HeadersData).
|
|
359
|
+
protoOf(HeadersData).r38 = function (subArraysCount) {
|
|
360
360
|
// Inline function 'kotlin.repeat' call
|
|
361
361
|
var inductionVariable = 0;
|
|
362
362
|
if (inductionVariable < subArraysCount)
|
|
363
363
|
do {
|
|
364
364
|
var index = inductionVariable;
|
|
365
365
|
inductionVariable = inductionVariable + 1 | 0;
|
|
366
|
-
this.
|
|
366
|
+
this.p38_1.j1(get_IntArrayPool().k1z());
|
|
367
367
|
}
|
|
368
368
|
while (inductionVariable < subArraysCount);
|
|
369
369
|
};
|
|
370
|
-
protoOf(HeadersData).
|
|
371
|
-
return this.
|
|
370
|
+
protoOf(HeadersData).t38 = function (index) {
|
|
371
|
+
return this.p38_1.m1(index / 768 | 0)[index % 768 | 0];
|
|
372
372
|
};
|
|
373
|
-
protoOf(HeadersData).
|
|
374
|
-
this.
|
|
373
|
+
protoOf(HeadersData).e39 = function (index, value) {
|
|
374
|
+
this.p38_1.m1(index / 768 | 0)[index % 768 | 0] = value;
|
|
375
375
|
};
|
|
376
|
-
protoOf(HeadersData).
|
|
376
|
+
protoOf(HeadersData).s38 = function () {
|
|
377
377
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
378
378
|
};
|
|
379
|
-
protoOf(HeadersData).
|
|
380
|
-
var _iterator__ex2g4s = this.
|
|
379
|
+
protoOf(HeadersData).d1k = function () {
|
|
380
|
+
var _iterator__ex2g4s = this.p38_1.t();
|
|
381
381
|
while (_iterator__ex2g4s.u()) {
|
|
382
382
|
var array = _iterator__ex2g4s.v();
|
|
383
|
-
get_IntArrayPool().
|
|
383
|
+
get_IntArrayPool().l1z(array);
|
|
384
384
|
}
|
|
385
|
-
this.
|
|
385
|
+
this.p38_1.t2();
|
|
386
386
|
};
|
|
387
387
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
388
388
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
389
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
389
|
+
var _iterator__ex2g4s = _this__u8e3s4.w38().t();
|
|
390
390
|
while (_iterator__ex2g4s.u()) {
|
|
391
391
|
var offset = _iterator__ex2g4s.v();
|
|
392
392
|
out.k1(indent);
|
|
393
|
-
out.k1(_this__u8e3s4.
|
|
393
|
+
out.k1(_this__u8e3s4.f39(offset));
|
|
394
394
|
out.k1(' => ');
|
|
395
|
-
out.k1(_this__u8e3s4.
|
|
395
|
+
out.k1(_this__u8e3s4.v38(offset));
|
|
396
396
|
out.k1('\n');
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
function IntArrayPool$1() {
|
|
400
400
|
DefaultPool.call(this, 1000);
|
|
401
401
|
}
|
|
402
|
-
protoOf(IntArrayPool$1).
|
|
402
|
+
protoOf(IntArrayPool$1).d1z = function () {
|
|
403
403
|
var tmp = 0;
|
|
404
404
|
var tmp_0 = new Int32Array(768);
|
|
405
405
|
while (tmp < 768) {
|
|
@@ -408,25 +408,25 @@
|
|
|
408
408
|
}
|
|
409
409
|
return tmp_0;
|
|
410
410
|
};
|
|
411
|
-
protoOf(IntArrayPool$1).
|
|
411
|
+
protoOf(IntArrayPool$1).z39 = function (instance) {
|
|
412
412
|
fill(instance, -1);
|
|
413
|
-
return protoOf(DefaultPool).
|
|
413
|
+
return protoOf(DefaultPool).i1z.call(this, instance);
|
|
414
414
|
};
|
|
415
|
-
protoOf(IntArrayPool$1).
|
|
416
|
-
return this.
|
|
415
|
+
protoOf(IntArrayPool$1).i1z = function (instance) {
|
|
416
|
+
return this.z39(isIntArray(instance) ? instance : THROW_CCE());
|
|
417
417
|
};
|
|
418
418
|
function HeadersDataPool$1() {
|
|
419
419
|
DefaultPool.call(this, 1000);
|
|
420
420
|
}
|
|
421
|
-
protoOf(HeadersDataPool$1).
|
|
421
|
+
protoOf(HeadersDataPool$1).d1z = function () {
|
|
422
422
|
return new HeadersData();
|
|
423
423
|
};
|
|
424
|
-
protoOf(HeadersDataPool$1).
|
|
425
|
-
instance.
|
|
426
|
-
return protoOf(DefaultPool).
|
|
424
|
+
protoOf(HeadersDataPool$1).d3a = function (instance) {
|
|
425
|
+
instance.d1k();
|
|
426
|
+
return protoOf(DefaultPool).i1z.call(this, instance);
|
|
427
427
|
};
|
|
428
|
-
protoOf(HeadersDataPool$1).
|
|
429
|
-
return this.
|
|
428
|
+
protoOf(HeadersDataPool$1).i1z = function (instance) {
|
|
429
|
+
return this.d3a(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
430
430
|
};
|
|
431
431
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
432
432
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -446,22 +446,22 @@
|
|
|
446
446
|
function parseHeaders(input, builder, range, $completion) {
|
|
447
447
|
range = range === VOID ? new MutableRange(0, 0) : range;
|
|
448
448
|
var tmp = new $parseHeadersCOROUTINE$(input, builder, range, $completion);
|
|
449
|
-
tmp.
|
|
450
|
-
tmp.
|
|
451
|
-
return tmp.
|
|
449
|
+
tmp.f9_1 = Unit_instance;
|
|
450
|
+
tmp.g9_1 = null;
|
|
451
|
+
return tmp.l9();
|
|
452
452
|
}
|
|
453
453
|
function parseHeaderName(text, range) {
|
|
454
454
|
_init_properties_HttpParser_kt__gbdom1();
|
|
455
|
-
var index = range.
|
|
456
|
-
var end = range.
|
|
455
|
+
var index = range.r3a_1;
|
|
456
|
+
var end = range.s3a_1;
|
|
457
457
|
while (index < end) {
|
|
458
458
|
var ch = text.b(index);
|
|
459
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
460
|
-
range.
|
|
459
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.r3a_1)) {
|
|
460
|
+
range.r3a_1 = index + 1 | 0;
|
|
461
461
|
return index;
|
|
462
462
|
}
|
|
463
463
|
if (isDelimiter(ch)) {
|
|
464
|
-
parseHeaderNameFailed(text, index, range.
|
|
464
|
+
parseHeaderNameFailed(text, index, range.r3a_1, ch);
|
|
465
465
|
}
|
|
466
466
|
index = index + 1 | 0;
|
|
467
467
|
}
|
|
@@ -469,12 +469,12 @@
|
|
|
469
469
|
}
|
|
470
470
|
function parseHeaderValue(text, range) {
|
|
471
471
|
_init_properties_HttpParser_kt__gbdom1();
|
|
472
|
-
var start = range.
|
|
473
|
-
var end = range.
|
|
472
|
+
var start = range.r3a_1;
|
|
473
|
+
var end = range.s3a_1;
|
|
474
474
|
var index = start;
|
|
475
475
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
476
476
|
if (index >= end) {
|
|
477
|
-
range.
|
|
477
|
+
range.r3a_1 = end;
|
|
478
478
|
return Unit_instance;
|
|
479
479
|
}
|
|
480
480
|
var valueStart = index;
|
|
@@ -488,8 +488,8 @@
|
|
|
488
488
|
valueLastIndex = index;
|
|
489
489
|
index = index + 1 | 0;
|
|
490
490
|
}
|
|
491
|
-
range.
|
|
492
|
-
range.
|
|
491
|
+
range.r3a_1 = valueStart;
|
|
492
|
+
range.s3a_1 = valueLastIndex + 1 | 0;
|
|
493
493
|
}
|
|
494
494
|
function validateHostHeader(host) {
|
|
495
495
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -530,9 +530,9 @@
|
|
|
530
530
|
}
|
|
531
531
|
function noColonFound(text, range) {
|
|
532
532
|
_init_properties_HttpParser_kt__gbdom1();
|
|
533
|
-
var tmp2 = range.
|
|
533
|
+
var tmp2 = range.r3a_1;
|
|
534
534
|
// Inline function 'kotlin.text.substring' call
|
|
535
|
-
var endIndex = range.
|
|
535
|
+
var endIndex = range.s3a_1;
|
|
536
536
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
537
537
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
538
538
|
}
|
|
@@ -548,30 +548,30 @@
|
|
|
548
548
|
}
|
|
549
549
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
550
550
|
CoroutineImpl.call(this, resultContinuation);
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
551
|
+
this.m3a_1 = input;
|
|
552
|
+
this.n3a_1 = builder;
|
|
553
|
+
this.o3a_1 = range;
|
|
554
554
|
}
|
|
555
|
-
protoOf($parseHeadersCOROUTINE$).
|
|
556
|
-
var suspendResult = this.
|
|
555
|
+
protoOf($parseHeadersCOROUTINE$).l9 = function () {
|
|
556
|
+
var suspendResult = this.f9_1;
|
|
557
557
|
$sm: do
|
|
558
558
|
try {
|
|
559
|
-
var tmp = this.
|
|
559
|
+
var tmp = this.d9_1;
|
|
560
560
|
switch (tmp) {
|
|
561
561
|
case 0:
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
562
|
+
this.e9_1 = 7;
|
|
563
|
+
this.p3a_1 = new HttpHeadersMap(this.n3a_1);
|
|
564
|
+
this.e9_1 = 6;
|
|
565
|
+
this.d9_1 = 1;
|
|
566
566
|
continue $sm;
|
|
567
567
|
case 1:
|
|
568
568
|
if (!true) {
|
|
569
|
-
this.
|
|
569
|
+
this.d9_1 = 5;
|
|
570
570
|
continue $sm;
|
|
571
571
|
}
|
|
572
572
|
|
|
573
|
-
this.
|
|
574
|
-
suspendResult = readLineStrictTo(this.
|
|
573
|
+
this.d9_1 = 2;
|
|
574
|
+
suspendResult = readLineStrictTo(this.m3a_1, this.n3a_1, 8192n, VOID, this);
|
|
575
575
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
576
576
|
return suspendResult;
|
|
577
577
|
}
|
|
@@ -579,68 +579,68 @@
|
|
|
579
579
|
continue $sm;
|
|
580
580
|
case 2:
|
|
581
581
|
if (suspendResult === -1n) {
|
|
582
|
-
this.
|
|
582
|
+
this.p3a_1.d1k();
|
|
583
583
|
return null;
|
|
584
584
|
} else {
|
|
585
|
-
this.
|
|
585
|
+
this.d9_1 = 3;
|
|
586
586
|
continue $sm;
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
case 3:
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
if (this.
|
|
593
|
-
this.
|
|
590
|
+
this.o3a_1.s3a_1 = this.n3a_1.d39_1;
|
|
591
|
+
this.q3a_1 = this.o3a_1.s3a_1 - this.o3a_1.r3a_1 | 0;
|
|
592
|
+
if (this.q3a_1 === 0) {
|
|
593
|
+
this.d9_1 = 5;
|
|
594
594
|
continue $sm;
|
|
595
595
|
} else {
|
|
596
|
-
this.
|
|
596
|
+
this.d9_1 = 4;
|
|
597
597
|
continue $sm;
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
case 4:
|
|
601
|
-
if (this.
|
|
601
|
+
if (this.q3a_1 >= 8192) {
|
|
602
602
|
var message = 'Header line length limit exceeded';
|
|
603
603
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
-
var nameStart = this.
|
|
607
|
-
var nameEnd = parseHeaderName(this.
|
|
608
|
-
var headerEnd = this.
|
|
609
|
-
parseHeaderValue(this.
|
|
610
|
-
var valueStart = this.
|
|
611
|
-
var valueEnd = this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
606
|
+
var nameStart = this.o3a_1.r3a_1;
|
|
607
|
+
var nameEnd = parseHeaderName(this.n3a_1, this.o3a_1);
|
|
608
|
+
var headerEnd = this.o3a_1.s3a_1;
|
|
609
|
+
parseHeaderValue(this.n3a_1, this.o3a_1);
|
|
610
|
+
var valueStart = this.o3a_1.r3a_1;
|
|
611
|
+
var valueEnd = this.o3a_1.s3a_1;
|
|
612
|
+
this.o3a_1.r3a_1 = headerEnd;
|
|
613
|
+
this.p3a_1.u38(nameStart, nameEnd, valueStart, valueEnd);
|
|
614
|
+
this.d9_1 = 1;
|
|
615
615
|
continue $sm;
|
|
616
616
|
case 5:
|
|
617
|
-
var host = this.
|
|
617
|
+
var host = this.p3a_1.p2o('Host');
|
|
618
618
|
if (!(host == null)) {
|
|
619
619
|
validateHostHeader(host);
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
return this.
|
|
622
|
+
return this.p3a_1;
|
|
623
623
|
case 6:
|
|
624
|
-
this.
|
|
625
|
-
var tmp_0 = this.
|
|
624
|
+
this.e9_1 = 7;
|
|
625
|
+
var tmp_0 = this.g9_1;
|
|
626
626
|
if (tmp_0 instanceof Error) {
|
|
627
|
-
var t = this.
|
|
628
|
-
this.
|
|
627
|
+
var t = this.g9_1;
|
|
628
|
+
this.p3a_1.d1k();
|
|
629
629
|
throw t;
|
|
630
630
|
} else {
|
|
631
|
-
throw this.
|
|
631
|
+
throw this.g9_1;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
case 7:
|
|
635
|
-
throw this.
|
|
635
|
+
throw this.g9_1;
|
|
636
636
|
}
|
|
637
637
|
} catch ($p) {
|
|
638
638
|
var e = $p;
|
|
639
|
-
if (this.
|
|
639
|
+
if (this.e9_1 === 7) {
|
|
640
640
|
throw e;
|
|
641
641
|
} else {
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
642
|
+
this.d9_1 = this.e9_1;
|
|
643
|
+
this.g9_1 = e;
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
while (true);
|
|
@@ -650,8 +650,8 @@
|
|
|
650
650
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
651
651
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
652
652
|
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))]);
|
|
653
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
654
|
-
versions = Companion_instance.
|
|
653
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().p1y_1, Companion_getInstance().o1y_1);
|
|
654
|
+
versions = Companion_instance.t3a(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
function get_CrLf() {
|
|
@@ -666,23 +666,23 @@
|
|
|
666
666
|
var PrefixString;
|
|
667
667
|
function Preamble(body) {
|
|
668
668
|
MultipartEvent.call(this);
|
|
669
|
-
this.
|
|
669
|
+
this.u3a_1 = body;
|
|
670
670
|
}
|
|
671
671
|
function MultipartPart(headers, body) {
|
|
672
672
|
MultipartEvent.call(this);
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
673
|
+
this.v3a_1 = headers;
|
|
674
|
+
this.w3a_1 = body;
|
|
675
675
|
}
|
|
676
676
|
function Epilogue(body) {
|
|
677
677
|
MultipartEvent.call(this);
|
|
678
|
-
this.
|
|
678
|
+
this.x3a_1 = body;
|
|
679
679
|
}
|
|
680
680
|
function MultipartEvent() {
|
|
681
681
|
}
|
|
682
682
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
683
683
|
maxPartSize = maxPartSize === VOID ? 9223372036854775807n : maxPartSize;
|
|
684
684
|
_init_properties_Multipart_kt__ato98a();
|
|
685
|
-
if (!MultiPart_getInstance().
|
|
685
|
+
if (!MultiPart_getInstance().d2w(contentType)) {
|
|
686
686
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
687
687
|
}
|
|
688
688
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -830,21 +830,21 @@
|
|
|
830
830
|
}
|
|
831
831
|
function parsePartHeadersImpl(input, $completion) {
|
|
832
832
|
var tmp = new $parsePartHeadersImplCOROUTINE$(input, $completion);
|
|
833
|
-
tmp.
|
|
834
|
-
tmp.
|
|
835
|
-
return tmp.
|
|
833
|
+
tmp.f9_1 = Unit_instance;
|
|
834
|
+
tmp.g9_1 = null;
|
|
835
|
+
return tmp.l9();
|
|
836
836
|
}
|
|
837
837
|
function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
|
|
838
838
|
var tmp = new $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, $completion);
|
|
839
|
-
tmp.
|
|
840
|
-
tmp.
|
|
841
|
-
return tmp.
|
|
839
|
+
tmp.f9_1 = Unit_instance;
|
|
840
|
+
tmp.g9_1 = null;
|
|
841
|
+
return tmp.l9();
|
|
842
842
|
}
|
|
843
843
|
function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
844
844
|
var tmp = new $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, $completion);
|
|
845
|
-
tmp.
|
|
846
|
-
tmp.
|
|
847
|
-
return tmp.
|
|
845
|
+
tmp.f9_1 = Unit_instance;
|
|
846
|
+
tmp.g9_1 = null;
|
|
847
|
+
return tmp.l9();
|
|
848
848
|
}
|
|
849
849
|
function throwLimitExceeded(actual, limit) {
|
|
850
850
|
_init_properties_Multipart_kt__ato98a();
|
|
@@ -859,37 +859,37 @@
|
|
|
859
859
|
boundaryBytes[_unary__edvuaz] = value;
|
|
860
860
|
}
|
|
861
861
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
862
|
+
this.r3c_1 = $firstBoundary;
|
|
863
|
+
this.s3c_1 = $countedInput;
|
|
864
864
|
CoroutineImpl.call(this, resultContinuation);
|
|
865
865
|
}
|
|
866
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
867
|
-
var tmp = this.
|
|
868
|
-
tmp.
|
|
869
|
-
tmp.
|
|
870
|
-
return tmp.
|
|
866
|
+
protoOf(parseMultipart$slambda$slambda).u3c = function ($this$writer, $completion) {
|
|
867
|
+
var tmp = this.v3c($this$writer, $completion);
|
|
868
|
+
tmp.f9_1 = Unit_instance;
|
|
869
|
+
tmp.g9_1 = null;
|
|
870
|
+
return tmp.l9();
|
|
871
871
|
};
|
|
872
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
873
|
-
return this.
|
|
872
|
+
protoOf(parseMultipart$slambda$slambda).y9 = function (p1, $completion) {
|
|
873
|
+
return this.u3c(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
874
874
|
};
|
|
875
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
876
|
-
var suspendResult = this.
|
|
875
|
+
protoOf(parseMultipart$slambda$slambda).l9 = function () {
|
|
876
|
+
var suspendResult = this.f9_1;
|
|
877
877
|
$sm: do
|
|
878
878
|
try {
|
|
879
|
-
var tmp = this.
|
|
879
|
+
var tmp = this.d9_1;
|
|
880
880
|
switch (tmp) {
|
|
881
881
|
case 0:
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
suspendResult = parsePreambleImpl(this.
|
|
882
|
+
this.e9_1 = 3;
|
|
883
|
+
this.d9_1 = 1;
|
|
884
|
+
suspendResult = parsePreambleImpl(this.r3c_1, this.s3c_1, this.t3c_1.p1w_1, 8193n, this);
|
|
885
885
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
886
886
|
return suspendResult;
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
continue $sm;
|
|
890
890
|
case 1:
|
|
891
|
-
this.
|
|
892
|
-
suspendResult = this.
|
|
891
|
+
this.d9_1 = 2;
|
|
892
|
+
suspendResult = this.t3c_1.p1w_1.a1p(this);
|
|
893
893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
894
894
|
return suspendResult;
|
|
895
895
|
}
|
|
@@ -898,61 +898,61 @@
|
|
|
898
898
|
case 2:
|
|
899
899
|
return Unit_instance;
|
|
900
900
|
case 3:
|
|
901
|
-
throw this.
|
|
901
|
+
throw this.g9_1;
|
|
902
902
|
}
|
|
903
903
|
} catch ($p) {
|
|
904
904
|
var e = $p;
|
|
905
|
-
if (this.
|
|
905
|
+
if (this.e9_1 === 3) {
|
|
906
906
|
throw e;
|
|
907
907
|
} else {
|
|
908
|
-
this.
|
|
909
|
-
this.
|
|
908
|
+
this.d9_1 = this.e9_1;
|
|
909
|
+
this.g9_1 = e;
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
while (true);
|
|
913
913
|
};
|
|
914
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
915
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
916
|
-
i.
|
|
914
|
+
protoOf(parseMultipart$slambda$slambda).v3c = function ($this$writer, completion) {
|
|
915
|
+
var i = new parseMultipart$slambda$slambda(this.r3c_1, this.s3c_1, completion);
|
|
916
|
+
i.t3c_1 = $this$writer;
|
|
917
917
|
return i;
|
|
918
918
|
};
|
|
919
919
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
920
920
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
921
921
|
var l = function ($this$writer, $completion) {
|
|
922
|
-
return i.
|
|
922
|
+
return i.u3c($this$writer, $completion);
|
|
923
923
|
};
|
|
924
924
|
l.$arity = 1;
|
|
925
925
|
return l;
|
|
926
926
|
}
|
|
927
927
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
928
|
+
this.e3d_1 = $input;
|
|
929
|
+
this.f3d_1 = $boundaryPrefixed;
|
|
930
|
+
this.g3d_1 = $maxPartSize;
|
|
931
|
+
this.h3d_1 = $totalLength;
|
|
932
932
|
CoroutineImpl.call(this, resultContinuation);
|
|
933
933
|
}
|
|
934
|
-
protoOf(parseMultipart$slambda).
|
|
935
|
-
var tmp = this.
|
|
936
|
-
tmp.
|
|
937
|
-
tmp.
|
|
938
|
-
return tmp.
|
|
934
|
+
protoOf(parseMultipart$slambda).q3d = function ($this$produce, $completion) {
|
|
935
|
+
var tmp = this.r3d($this$produce, $completion);
|
|
936
|
+
tmp.f9_1 = Unit_instance;
|
|
937
|
+
tmp.g9_1 = null;
|
|
938
|
+
return tmp.l9();
|
|
939
939
|
};
|
|
940
|
-
protoOf(parseMultipart$slambda).
|
|
941
|
-
return this.
|
|
940
|
+
protoOf(parseMultipart$slambda).y9 = function (p1, $completion) {
|
|
941
|
+
return this.q3d((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
942
942
|
};
|
|
943
|
-
protoOf(parseMultipart$slambda).
|
|
944
|
-
var suspendResult = this.
|
|
943
|
+
protoOf(parseMultipart$slambda).l9 = function () {
|
|
944
|
+
var suspendResult = this.f9_1;
|
|
945
945
|
$sm: do
|
|
946
946
|
try {
|
|
947
|
-
var tmp = this.
|
|
947
|
+
var tmp = this.d9_1;
|
|
948
948
|
switch (tmp) {
|
|
949
949
|
case 0:
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
955
|
-
suspendResult = readRemaining(writer(this.
|
|
950
|
+
this.e9_1 = 25;
|
|
951
|
+
this.j3d_1 = counted(this.e3d_1);
|
|
952
|
+
this.k3d_1 = this.j3d_1.m1y();
|
|
953
|
+
this.o3d_1 = this.f3d_1.xp(get_PrefixString().l1());
|
|
954
|
+
this.d9_1 = 1;
|
|
955
|
+
suspendResult = readRemaining(writer(this.i3d_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.o3d_1, this.j3d_1, null)).t1q_1, this);
|
|
956
956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
957
957
|
return suspendResult;
|
|
958
958
|
}
|
|
@@ -961,57 +961,57 @@
|
|
|
961
961
|
case 1:
|
|
962
962
|
var preambleData = suspendResult;
|
|
963
963
|
if (get_remaining(preambleData) > 0n) {
|
|
964
|
-
this.
|
|
965
|
-
suspendResult = this.
|
|
964
|
+
this.d9_1 = 2;
|
|
965
|
+
suspendResult = this.i3d_1.s1c(new Preamble(preambleData), this);
|
|
966
966
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
967
967
|
return suspendResult;
|
|
968
968
|
}
|
|
969
969
|
continue $sm;
|
|
970
970
|
} else {
|
|
971
|
-
this.
|
|
971
|
+
this.d9_1 = 3;
|
|
972
972
|
continue $sm;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
case 2:
|
|
976
|
-
this.
|
|
976
|
+
this.d9_1 = 3;
|
|
977
977
|
continue $sm;
|
|
978
978
|
case 3:
|
|
979
|
-
this.
|
|
979
|
+
this.d9_1 = 4;
|
|
980
980
|
continue $sm;
|
|
981
981
|
case 4:
|
|
982
|
-
if (!this.
|
|
983
|
-
this.
|
|
984
|
-
suspendResult = skipIfFound(this.
|
|
982
|
+
if (!this.j3d_1.x1o()) {
|
|
983
|
+
this.d9_1 = 5;
|
|
984
|
+
suspendResult = skipIfFound(this.j3d_1, get_PrefixString(), this);
|
|
985
985
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
986
986
|
return suspendResult;
|
|
987
987
|
}
|
|
988
988
|
continue $sm;
|
|
989
989
|
} else {
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
990
|
+
this.p3d_1 = false;
|
|
991
|
+
this.d9_1 = 6;
|
|
992
992
|
continue $sm;
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
case 5:
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
996
|
+
this.p3d_1 = !suspendResult;
|
|
997
|
+
this.d9_1 = 6;
|
|
998
998
|
continue $sm;
|
|
999
999
|
case 6:
|
|
1000
|
-
if (!this.
|
|
1001
|
-
this.
|
|
1000
|
+
if (!this.p3d_1) {
|
|
1001
|
+
this.d9_1 = 15;
|
|
1002
1002
|
continue $sm;
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
-
this.
|
|
1006
|
-
suspendResult = skipIfFound(this.
|
|
1005
|
+
this.d9_1 = 7;
|
|
1006
|
+
suspendResult = skipIfFound(this.j3d_1, get_CrLf(), this);
|
|
1007
1007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1008
1008
|
return suspendResult;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
continue $sm;
|
|
1012
1012
|
case 7:
|
|
1013
|
-
this.
|
|
1014
|
-
suspendResult = skipIfFound(this.
|
|
1013
|
+
this.d9_1 = 8;
|
|
1014
|
+
suspendResult = skipIfFound(this.j3d_1, this.o3d_1, this);
|
|
1015
1015
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1016
|
return suspendResult;
|
|
1017
1017
|
}
|
|
@@ -1019,112 +1019,112 @@
|
|
|
1019
1019
|
continue $sm;
|
|
1020
1020
|
case 8:
|
|
1021
1021
|
if (suspendResult) {
|
|
1022
|
-
this.
|
|
1022
|
+
this.d9_1 = 4;
|
|
1023
1023
|
continue $sm;
|
|
1024
1024
|
} else {
|
|
1025
|
-
this.
|
|
1025
|
+
this.d9_1 = 9;
|
|
1026
1026
|
continue $sm;
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
case 9:
|
|
1030
|
-
this.
|
|
1031
|
-
this.
|
|
1032
|
-
var part = new MultipartPart(this.
|
|
1033
|
-
this.
|
|
1034
|
-
suspendResult = this.
|
|
1030
|
+
this.l3d_1 = new ByteChannel();
|
|
1031
|
+
this.n3d_1 = CompletableDeferred();
|
|
1032
|
+
var part = new MultipartPart(this.n3d_1, this.l3d_1);
|
|
1033
|
+
this.d9_1 = 10;
|
|
1034
|
+
suspendResult = this.i3d_1.s1c(part, this);
|
|
1035
1035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1036
1036
|
return suspendResult;
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
continue $sm;
|
|
1040
1040
|
case 10:
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1043
|
-
this.
|
|
1044
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1041
|
+
this.m3d_1 = null;
|
|
1042
|
+
this.e9_1 = 14;
|
|
1043
|
+
this.d9_1 = 11;
|
|
1044
|
+
suspendResult = parsePartHeadersImpl(this.j3d_1, this);
|
|
1045
1045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1046
1046
|
return suspendResult;
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
1049
|
continue $sm;
|
|
1050
1050
|
case 11:
|
|
1051
|
-
this.
|
|
1052
|
-
if (!this.
|
|
1053
|
-
this.
|
|
1051
|
+
this.m3d_1 = suspendResult;
|
|
1052
|
+
if (!this.n3d_1.y11(this.m3d_1)) {
|
|
1053
|
+
this.m3d_1.d1k();
|
|
1054
1054
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
this.
|
|
1058
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1057
|
+
this.d9_1 = 12;
|
|
1058
|
+
suspendResult = parsePartBodyImpl(this.f3d_1, this.j3d_1, this.l3d_1, this.m3d_1, this.g3d_1, this);
|
|
1059
1059
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1060
1060
|
return suspendResult;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
1063
|
continue $sm;
|
|
1064
1064
|
case 12:
|
|
1065
|
-
this.
|
|
1066
|
-
this.
|
|
1067
|
-
this.
|
|
1065
|
+
this.l3d_1.o4();
|
|
1066
|
+
this.e9_1 = 25;
|
|
1067
|
+
this.d9_1 = 13;
|
|
1068
1068
|
continue $sm;
|
|
1069
1069
|
case 13:
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1070
|
+
this.e9_1 = 25;
|
|
1071
|
+
this.d9_1 = 4;
|
|
1072
1072
|
continue $sm;
|
|
1073
1073
|
case 14:
|
|
1074
|
-
this.
|
|
1075
|
-
var tmp_0 = this.
|
|
1074
|
+
this.e9_1 = 25;
|
|
1075
|
+
var tmp_0 = this.g9_1;
|
|
1076
1076
|
if (tmp_0 instanceof Error) {
|
|
1077
|
-
var cause = this.
|
|
1078
|
-
if (this.
|
|
1079
|
-
var tmp0_safe_receiver = this.
|
|
1077
|
+
var cause = this.g9_1;
|
|
1078
|
+
if (this.n3d_1.z11(cause)) {
|
|
1079
|
+
var tmp0_safe_receiver = this.m3d_1;
|
|
1080
1080
|
if (tmp0_safe_receiver == null)
|
|
1081
1081
|
null;
|
|
1082
1082
|
else {
|
|
1083
|
-
tmp0_safe_receiver.
|
|
1083
|
+
tmp0_safe_receiver.d1k();
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
close(this.
|
|
1086
|
+
close(this.l3d_1, cause);
|
|
1087
1087
|
throw cause;
|
|
1088
1088
|
} else {
|
|
1089
|
-
throw this.
|
|
1089
|
+
throw this.g9_1;
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
1092
|
case 15:
|
|
1093
|
-
this.
|
|
1094
|
-
suspendResult = skipIfFound(this.
|
|
1093
|
+
this.d9_1 = 16;
|
|
1094
|
+
suspendResult = skipIfFound(this.j3d_1, get_CrLf(), this);
|
|
1095
1095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1096
1096
|
return suspendResult;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
1099
|
continue $sm;
|
|
1100
1100
|
case 16:
|
|
1101
|
-
this.
|
|
1102
|
-
suspendResult = skipIfFound(this.
|
|
1101
|
+
this.d9_1 = 17;
|
|
1102
|
+
suspendResult = skipIfFound(this.j3d_1, get_CrLf(), this);
|
|
1103
1103
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1104
1104
|
return suspendResult;
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
1107
|
continue $sm;
|
|
1108
1108
|
case 17:
|
|
1109
|
-
if (!(this.
|
|
1110
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1111
|
-
var size = subtract(this.
|
|
1109
|
+
if (!(this.h3d_1 == null)) {
|
|
1110
|
+
var consumedExceptEpilogue = subtract(this.j3d_1.m1y(), this.k3d_1);
|
|
1111
|
+
var size = subtract(this.h3d_1, consumedExceptEpilogue);
|
|
1112
1112
|
if (size > 2147483647n)
|
|
1113
1113
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1114
1114
|
if (size > 0n) {
|
|
1115
|
-
this.
|
|
1116
|
-
suspendResult = readPacket(this.
|
|
1115
|
+
this.d9_1 = 21;
|
|
1116
|
+
suspendResult = readPacket(this.j3d_1, convertToInt(size), this);
|
|
1117
1117
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1118
1118
|
return suspendResult;
|
|
1119
1119
|
}
|
|
1120
1120
|
continue $sm;
|
|
1121
1121
|
} else {
|
|
1122
|
-
this.
|
|
1122
|
+
this.d9_1 = 23;
|
|
1123
1123
|
continue $sm;
|
|
1124
1124
|
}
|
|
1125
1125
|
} else {
|
|
1126
|
-
this.
|
|
1127
|
-
suspendResult = readRemaining(this.
|
|
1126
|
+
this.d9_1 = 18;
|
|
1127
|
+
suspendResult = readRemaining(this.j3d_1, this);
|
|
1128
1128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1129
1129
|
return suspendResult;
|
|
1130
1130
|
}
|
|
@@ -1133,85 +1133,85 @@
|
|
|
1133
1133
|
|
|
1134
1134
|
case 18:
|
|
1135
1135
|
var epilogueContent = suspendResult;
|
|
1136
|
-
if (!epilogueContent.
|
|
1137
|
-
this.
|
|
1138
|
-
suspendResult = this.
|
|
1136
|
+
if (!epilogueContent.fq()) {
|
|
1137
|
+
this.d9_1 = 19;
|
|
1138
|
+
suspendResult = this.i3d_1.s1c(new Epilogue(epilogueContent), this);
|
|
1139
1139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1140
1140
|
return suspendResult;
|
|
1141
1141
|
}
|
|
1142
1142
|
continue $sm;
|
|
1143
1143
|
} else {
|
|
1144
|
-
this.
|
|
1144
|
+
this.d9_1 = 20;
|
|
1145
1145
|
continue $sm;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
1148
|
case 19:
|
|
1149
|
-
this.
|
|
1149
|
+
this.d9_1 = 20;
|
|
1150
1150
|
continue $sm;
|
|
1151
1151
|
case 20:
|
|
1152
|
-
this.
|
|
1152
|
+
this.d9_1 = 24;
|
|
1153
1153
|
continue $sm;
|
|
1154
1154
|
case 21:
|
|
1155
1155
|
var ARGUMENT = suspendResult;
|
|
1156
1156
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1157
|
-
this.
|
|
1158
|
-
suspendResult = this.
|
|
1157
|
+
this.d9_1 = 22;
|
|
1158
|
+
suspendResult = this.i3d_1.s1c(ARGUMENT_0, this);
|
|
1159
1159
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1160
1160
|
return suspendResult;
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
1163
|
continue $sm;
|
|
1164
1164
|
case 22:
|
|
1165
|
-
this.
|
|
1165
|
+
this.d9_1 = 23;
|
|
1166
1166
|
continue $sm;
|
|
1167
1167
|
case 23:
|
|
1168
|
-
this.
|
|
1168
|
+
this.d9_1 = 24;
|
|
1169
1169
|
continue $sm;
|
|
1170
1170
|
case 24:
|
|
1171
1171
|
return Unit_instance;
|
|
1172
1172
|
case 25:
|
|
1173
|
-
throw this.
|
|
1173
|
+
throw this.g9_1;
|
|
1174
1174
|
}
|
|
1175
1175
|
} catch ($p) {
|
|
1176
1176
|
var e = $p;
|
|
1177
|
-
if (this.
|
|
1177
|
+
if (this.e9_1 === 25) {
|
|
1178
1178
|
throw e;
|
|
1179
1179
|
} else {
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1180
|
+
this.d9_1 = this.e9_1;
|
|
1181
|
+
this.g9_1 = e;
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
1184
|
while (true);
|
|
1185
1185
|
};
|
|
1186
|
-
protoOf(parseMultipart$slambda).
|
|
1187
|
-
var i = new parseMultipart$slambda(this.
|
|
1188
|
-
i.
|
|
1186
|
+
protoOf(parseMultipart$slambda).r3d = function ($this$produce, completion) {
|
|
1187
|
+
var i = new parseMultipart$slambda(this.e3d_1, this.f3d_1, this.g3d_1, this.h3d_1, completion);
|
|
1188
|
+
i.i3d_1 = $this$produce;
|
|
1189
1189
|
return i;
|
|
1190
1190
|
};
|
|
1191
1191
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1192
1192
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1193
1193
|
var l = function ($this$produce, $completion) {
|
|
1194
|
-
return i.
|
|
1194
|
+
return i.q3d($this$produce, $completion);
|
|
1195
1195
|
};
|
|
1196
1196
|
l.$arity = 1;
|
|
1197
1197
|
return l;
|
|
1198
1198
|
}
|
|
1199
1199
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1200
1200
|
CoroutineImpl.call(this, resultContinuation);
|
|
1201
|
-
this.
|
|
1201
|
+
this.g3b_1 = input;
|
|
1202
1202
|
}
|
|
1203
|
-
protoOf($parsePartHeadersImplCOROUTINE$).
|
|
1204
|
-
var suspendResult = this.
|
|
1203
|
+
protoOf($parsePartHeadersImplCOROUTINE$).l9 = function () {
|
|
1204
|
+
var suspendResult = this.f9_1;
|
|
1205
1205
|
$sm: do
|
|
1206
1206
|
try {
|
|
1207
|
-
var tmp = this.
|
|
1207
|
+
var tmp = this.d9_1;
|
|
1208
1208
|
switch (tmp) {
|
|
1209
1209
|
case 0:
|
|
1210
|
-
this.
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
suspendResult = parseHeaders(this.
|
|
1210
|
+
this.e9_1 = 3;
|
|
1211
|
+
this.h3b_1 = new CharArrayBuilder();
|
|
1212
|
+
this.e9_1 = 2;
|
|
1213
|
+
this.d9_1 = 1;
|
|
1214
|
+
suspendResult = parseHeaders(this.g3b_1, this.h3b_1, VOID, this);
|
|
1215
1215
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1216
1216
|
return suspendResult;
|
|
1217
1217
|
}
|
|
@@ -1228,75 +1228,75 @@
|
|
|
1228
1228
|
|
|
1229
1229
|
return tmp_0;
|
|
1230
1230
|
case 2:
|
|
1231
|
-
this.
|
|
1232
|
-
var tmp_1 = this.
|
|
1231
|
+
this.e9_1 = 3;
|
|
1232
|
+
var tmp_1 = this.g9_1;
|
|
1233
1233
|
if (tmp_1 instanceof Error) {
|
|
1234
|
-
var t = this.
|
|
1235
|
-
this.
|
|
1234
|
+
var t = this.g9_1;
|
|
1235
|
+
this.h3b_1.d1k();
|
|
1236
1236
|
throw t;
|
|
1237
1237
|
} else {
|
|
1238
|
-
throw this.
|
|
1238
|
+
throw this.g9_1;
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
1241
|
case 3:
|
|
1242
|
-
throw this.
|
|
1242
|
+
throw this.g9_1;
|
|
1243
1243
|
}
|
|
1244
1244
|
} catch ($p) {
|
|
1245
1245
|
var e = $p;
|
|
1246
|
-
if (this.
|
|
1246
|
+
if (this.e9_1 === 3) {
|
|
1247
1247
|
throw e;
|
|
1248
1248
|
} else {
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1249
|
+
this.d9_1 = this.e9_1;
|
|
1250
|
+
this.g9_1 = e;
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
while (true);
|
|
1254
1254
|
};
|
|
1255
1255
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1256
1256
|
CoroutineImpl.call(this, resultContinuation);
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1262
|
-
}
|
|
1263
|
-
protoOf($parsePartBodyImplCOROUTINE$).
|
|
1264
|
-
var suspendResult = this.
|
|
1257
|
+
this.q3b_1 = boundaryPrefixed;
|
|
1258
|
+
this.r3b_1 = input;
|
|
1259
|
+
this.s3b_1 = output;
|
|
1260
|
+
this.t3b_1 = headers;
|
|
1261
|
+
this.u3b_1 = limit;
|
|
1262
|
+
}
|
|
1263
|
+
protoOf($parsePartBodyImplCOROUTINE$).l9 = function () {
|
|
1264
|
+
var suspendResult = this.f9_1;
|
|
1265
1265
|
$sm: do
|
|
1266
1266
|
try {
|
|
1267
|
-
var tmp = this.
|
|
1267
|
+
var tmp = this.d9_1;
|
|
1268
1268
|
switch (tmp) {
|
|
1269
1269
|
case 0:
|
|
1270
|
-
this.
|
|
1271
|
-
var tmp0_safe_receiver = this.
|
|
1270
|
+
this.e9_1 = 6;
|
|
1271
|
+
var tmp0_safe_receiver = this.t3b_1.p2o('Content-Length');
|
|
1272
1272
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1273
1273
|
if (contentLength == null) {
|
|
1274
|
-
this.
|
|
1275
|
-
suspendResult = readUntil(this.
|
|
1274
|
+
this.d9_1 = 3;
|
|
1275
|
+
suspendResult = readUntil(this.r3b_1, this.q3b_1, this.s3b_1, this.u3b_1, true, this);
|
|
1276
1276
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1277
1277
|
return suspendResult;
|
|
1278
1278
|
}
|
|
1279
1279
|
continue $sm;
|
|
1280
1280
|
} else {
|
|
1281
|
-
var containsUpper = this.
|
|
1281
|
+
var containsUpper = this.u3b_1;
|
|
1282
1282
|
if (0n <= contentLength ? contentLength <= containsUpper : false) {
|
|
1283
|
-
this.
|
|
1284
|
-
suspendResult = copyTo(this.
|
|
1283
|
+
this.d9_1 = 1;
|
|
1284
|
+
suspendResult = copyTo(this.r3b_1, this.s3b_1, contentLength, this);
|
|
1285
1285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1286
1286
|
return suspendResult;
|
|
1287
1287
|
}
|
|
1288
1288
|
continue $sm;
|
|
1289
1289
|
} else {
|
|
1290
1290
|
var tmp_0 = this;
|
|
1291
|
-
throwLimitExceeded(contentLength, this.
|
|
1291
|
+
throwLimitExceeded(contentLength, this.u3b_1);
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
1295
|
break;
|
|
1296
1296
|
case 1:
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1297
|
+
this.x3b_1 = suspendResult;
|
|
1298
|
+
this.d9_1 = 2;
|
|
1299
|
+
suspendResult = skipIfFoundReadCount(this.r3b_1, this.q3b_1, this);
|
|
1300
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
1301
|
return suspendResult;
|
|
1302
1302
|
}
|
|
@@ -1304,53 +1304,53 @@
|
|
|
1304
1304
|
continue $sm;
|
|
1305
1305
|
case 2:
|
|
1306
1306
|
var ARGUMENT = suspendResult;
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1307
|
+
this.w3b_1 = add(this.x3b_1, ARGUMENT);
|
|
1308
|
+
this.d9_1 = 4;
|
|
1309
1309
|
continue $sm;
|
|
1310
1310
|
case 3:
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1311
|
+
this.w3b_1 = suspendResult;
|
|
1312
|
+
this.d9_1 = 4;
|
|
1313
1313
|
continue $sm;
|
|
1314
1314
|
case 4:
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
suspendResult = this.
|
|
1315
|
+
this.v3b_1 = this.w3b_1;
|
|
1316
|
+
this.d9_1 = 5;
|
|
1317
|
+
suspendResult = this.s3b_1.r1o(this);
|
|
1318
1318
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1319
1319
|
return suspendResult;
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
continue $sm;
|
|
1323
1323
|
case 5:
|
|
1324
|
-
return this.
|
|
1324
|
+
return this.v3b_1;
|
|
1325
1325
|
case 6:
|
|
1326
|
-
throw this.
|
|
1326
|
+
throw this.g9_1;
|
|
1327
1327
|
}
|
|
1328
1328
|
} catch ($p) {
|
|
1329
1329
|
var e = $p;
|
|
1330
|
-
if (this.
|
|
1330
|
+
if (this.e9_1 === 6) {
|
|
1331
1331
|
throw e;
|
|
1332
1332
|
} else {
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1333
|
+
this.d9_1 = this.e9_1;
|
|
1334
|
+
this.g9_1 = e;
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
while (true);
|
|
1338
1338
|
};
|
|
1339
1339
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1340
1340
|
CoroutineImpl.call(this, resultContinuation);
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1341
|
+
this.g3c_1 = _this__u8e3s4;
|
|
1342
|
+
this.h3c_1 = prefix;
|
|
1343
1343
|
}
|
|
1344
|
-
protoOf($skipIfFoundReadCountCOROUTINE$).
|
|
1345
|
-
var suspendResult = this.
|
|
1344
|
+
protoOf($skipIfFoundReadCountCOROUTINE$).l9 = function () {
|
|
1345
|
+
var suspendResult = this.f9_1;
|
|
1346
1346
|
$sm: do
|
|
1347
1347
|
try {
|
|
1348
|
-
var tmp = this.
|
|
1348
|
+
var tmp = this.d9_1;
|
|
1349
1349
|
switch (tmp) {
|
|
1350
1350
|
case 0:
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
suspendResult = skipIfFound(this.
|
|
1351
|
+
this.e9_1 = 3;
|
|
1352
|
+
this.d9_1 = 1;
|
|
1353
|
+
suspendResult = skipIfFound(this.g3c_1, this.h3c_1, this);
|
|
1354
1354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1355
1355
|
return suspendResult;
|
|
1356
1356
|
}
|
|
@@ -1359,28 +1359,28 @@
|
|
|
1359
1359
|
case 1:
|
|
1360
1360
|
if (suspendResult) {
|
|
1361
1361
|
var tmp_0 = this;
|
|
1362
|
-
tmp_0.
|
|
1363
|
-
this.
|
|
1362
|
+
tmp_0.i3c_1 = fromInt(this.h3c_1.l1());
|
|
1363
|
+
this.d9_1 = 2;
|
|
1364
1364
|
continue $sm;
|
|
1365
1365
|
} else {
|
|
1366
1366
|
var tmp_1 = this;
|
|
1367
|
-
tmp_1.
|
|
1368
|
-
this.
|
|
1367
|
+
tmp_1.i3c_1 = 0n;
|
|
1368
|
+
this.d9_1 = 2;
|
|
1369
1369
|
continue $sm;
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
1372
|
case 2:
|
|
1373
|
-
return this.
|
|
1373
|
+
return this.i3c_1;
|
|
1374
1374
|
case 3:
|
|
1375
|
-
throw this.
|
|
1375
|
+
throw this.g9_1;
|
|
1376
1376
|
}
|
|
1377
1377
|
} catch ($p) {
|
|
1378
1378
|
var e = $p;
|
|
1379
|
-
if (this.
|
|
1379
|
+
if (this.e9_1 === 3) {
|
|
1380
1380
|
throw e;
|
|
1381
1381
|
} else {
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1382
|
+
this.d9_1 = this.e9_1;
|
|
1383
|
+
this.g9_1 = e;
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
while (true);
|
|
@@ -1437,7 +1437,7 @@
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
|
|
1440
|
-
children.
|
|
1440
|
+
children.x5();
|
|
1441
1441
|
// Inline function 'kotlin.collections.filter' call
|
|
1442
1442
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1443
1443
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1458,16 +1458,16 @@
|
|
|
1458
1458
|
return new Char(charSequenceGet(s, idx));
|
|
1459
1459
|
}
|
|
1460
1460
|
function Node(ch, exact, children) {
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1461
|
+
this.s3d_1 = ch;
|
|
1462
|
+
this.t3d_1 = exact;
|
|
1463
|
+
this.u3d_1 = children;
|
|
1464
1464
|
var tmp = this;
|
|
1465
1465
|
var tmp_0 = 0;
|
|
1466
1466
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1467
1467
|
var tmp_1 = Array(256);
|
|
1468
1468
|
while (tmp_0 < 256) {
|
|
1469
1469
|
var tmp_2 = tmp_0;
|
|
1470
|
-
var tmp0 = this.
|
|
1470
|
+
var tmp0 = this.u3d_1;
|
|
1471
1471
|
var tmp$ret$2;
|
|
1472
1472
|
$l$block_0: {
|
|
1473
1473
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1477,7 +1477,7 @@
|
|
|
1477
1477
|
while (_iterator__ex2g4s.u()) {
|
|
1478
1478
|
var element = _iterator__ex2g4s.v();
|
|
1479
1479
|
// Inline function 'kotlin.code' call
|
|
1480
|
-
var this_0 = element.
|
|
1480
|
+
var this_0 = element.s3d_1;
|
|
1481
1481
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1482
1482
|
if (found) {
|
|
1483
1483
|
tmp$ret$2 = null;
|
|
@@ -1496,15 +1496,15 @@
|
|
|
1496
1496
|
tmp_1[tmp_2] = tmp$ret$2;
|
|
1497
1497
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1498
1498
|
}
|
|
1499
|
-
tmp.
|
|
1499
|
+
tmp.v3d_1 = tmp_1;
|
|
1500
1500
|
}
|
|
1501
1501
|
function Companion() {
|
|
1502
1502
|
}
|
|
1503
|
-
protoOf(Companion).
|
|
1503
|
+
protoOf(Companion).t3a = function (from) {
|
|
1504
1504
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1505
|
-
return this.
|
|
1505
|
+
return this.w3d(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1506
1506
|
};
|
|
1507
|
-
protoOf(Companion).
|
|
1507
|
+
protoOf(Companion).w3d = function (from, length, charAt) {
|
|
1508
1508
|
var tmp$ret$0;
|
|
1509
1509
|
$l$block_0: {
|
|
1510
1510
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1573,7 +1573,7 @@
|
|
|
1573
1573
|
throw IllegalArgumentException_init_$Create$('There should be no empty entries');
|
|
1574
1574
|
var root = ArrayList_init_$Create$();
|
|
1575
1575
|
build(this, root, from, maxLen, 0, length, charAt);
|
|
1576
|
-
root.
|
|
1576
|
+
root.x5();
|
|
1577
1577
|
return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
|
|
1578
1578
|
};
|
|
1579
1579
|
var Companion_instance;
|
|
@@ -1581,10 +1581,10 @@
|
|
|
1581
1581
|
return Companion_instance;
|
|
1582
1582
|
}
|
|
1583
1583
|
function AsciiCharTree(root) {
|
|
1584
|
-
this.
|
|
1584
|
+
this.x3d_1 = root;
|
|
1585
1585
|
}
|
|
1586
1586
|
function getImpl($this, index) {
|
|
1587
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1587
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.z38_1).length | 0];
|
|
1588
1588
|
}
|
|
1589
1589
|
function copy($this, startIndex, endIndex) {
|
|
1590
1590
|
if (startIndex === endIndex)
|
|
@@ -1613,27 +1613,27 @@
|
|
|
1613
1613
|
return builder;
|
|
1614
1614
|
}
|
|
1615
1615
|
function SubSequenceImpl($outer, start, end) {
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1616
|
+
this.b3e_1 = $outer;
|
|
1617
|
+
this.y3d_1 = start;
|
|
1618
|
+
this.z3d_1 = end;
|
|
1619
|
+
this.a3e_1 = null;
|
|
1620
1620
|
}
|
|
1621
1621
|
protoOf(SubSequenceImpl).a = function () {
|
|
1622
|
-
return this.
|
|
1622
|
+
return this.z3d_1 - this.y3d_1 | 0;
|
|
1623
1623
|
};
|
|
1624
1624
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1625
|
-
var withOffset = index + this.
|
|
1625
|
+
var withOffset = index + this.y3d_1 | 0;
|
|
1626
1626
|
// Inline function 'kotlin.require' call
|
|
1627
1627
|
if (!(index >= 0)) {
|
|
1628
1628
|
var message = 'index is negative: ' + index;
|
|
1629
1629
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1630
1630
|
}
|
|
1631
1631
|
// Inline function 'kotlin.require' call
|
|
1632
|
-
if (!(withOffset < this.
|
|
1632
|
+
if (!(withOffset < this.z3d_1)) {
|
|
1633
1633
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1634
1634
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1635
1635
|
}
|
|
1636
|
-
return getImpl(this.
|
|
1636
|
+
return getImpl(this.b3e_1, withOffset);
|
|
1637
1637
|
};
|
|
1638
1638
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1639
1639
|
// Inline function 'kotlin.require' call
|
|
@@ -1647,21 +1647,21 @@
|
|
|
1647
1647
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1648
1648
|
}
|
|
1649
1649
|
// Inline function 'kotlin.require' call
|
|
1650
|
-
if (!(endIndex <= (this.
|
|
1650
|
+
if (!(endIndex <= (this.z3d_1 - this.y3d_1 | 0))) {
|
|
1651
1651
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1652
1652
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1653
1653
|
}
|
|
1654
1654
|
if (startIndex === endIndex)
|
|
1655
1655
|
return '';
|
|
1656
|
-
return new SubSequenceImpl(this.
|
|
1656
|
+
return new SubSequenceImpl(this.b3e_1, this.y3d_1 + startIndex | 0, this.y3d_1 + endIndex | 0);
|
|
1657
1657
|
};
|
|
1658
1658
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1659
|
-
var tmp0_elvis_lhs = this.
|
|
1659
|
+
var tmp0_elvis_lhs = this.a3e_1;
|
|
1660
1660
|
var tmp;
|
|
1661
1661
|
if (tmp0_elvis_lhs == null) {
|
|
1662
1662
|
// Inline function 'kotlin.also' call
|
|
1663
|
-
var this_0 = toString(copy(this.
|
|
1664
|
-
this.
|
|
1663
|
+
var this_0 = toString(copy(this.b3e_1, this.y3d_1, this.z3d_1));
|
|
1664
|
+
this.a3e_1 = this_0;
|
|
1665
1665
|
tmp = this_0;
|
|
1666
1666
|
} else {
|
|
1667
1667
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1673,20 +1673,20 @@
|
|
|
1673
1673
|
return false;
|
|
1674
1674
|
if (!(charSequenceLength(other) === this.a()))
|
|
1675
1675
|
return false;
|
|
1676
|
-
return rangeEqualsImpl(this.
|
|
1676
|
+
return rangeEqualsImpl(this.b3e_1, this.y3d_1, other, 0, this.a());
|
|
1677
1677
|
};
|
|
1678
1678
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1679
|
-
var tmp0_safe_receiver = this.
|
|
1679
|
+
var tmp0_safe_receiver = this.a3e_1;
|
|
1680
1680
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1681
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1681
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.b3e_1, this.y3d_1, this.z3d_1) : tmp1_elvis_lhs;
|
|
1682
1682
|
};
|
|
1683
1683
|
function bufferForIndex($this, index) {
|
|
1684
|
-
var list = $this.
|
|
1684
|
+
var list = $this.y38_1;
|
|
1685
1685
|
if (list == null) {
|
|
1686
1686
|
if (index >= 2048) {
|
|
1687
1687
|
throwSingleBuffer($this, index);
|
|
1688
1688
|
}
|
|
1689
|
-
var tmp0_elvis_lhs = $this.
|
|
1689
|
+
var tmp0_elvis_lhs = $this.z38_1;
|
|
1690
1690
|
var tmp;
|
|
1691
1691
|
if (tmp0_elvis_lhs == null) {
|
|
1692
1692
|
throwSingleBuffer($this, index);
|
|
@@ -1695,29 +1695,29 @@
|
|
|
1695
1695
|
}
|
|
1696
1696
|
return tmp;
|
|
1697
1697
|
}
|
|
1698
|
-
return list.m1(index / ensureNotNull($this.
|
|
1698
|
+
return list.m1(index / ensureNotNull($this.z38_1).length | 0);
|
|
1699
1699
|
}
|
|
1700
1700
|
function throwSingleBuffer($this, index) {
|
|
1701
|
-
if ($this.
|
|
1701
|
+
if ($this.b39_1)
|
|
1702
1702
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1703
1703
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1704
1704
|
}
|
|
1705
1705
|
function nonFullBuffer($this) {
|
|
1706
|
-
return $this.
|
|
1706
|
+
return $this.c39_1 === 0 ? appendNewArray($this) : ensureNotNull($this.z38_1);
|
|
1707
1707
|
}
|
|
1708
1708
|
function appendNewArray($this) {
|
|
1709
|
-
var newBuffer = $this.
|
|
1710
|
-
var existing = $this.
|
|
1711
|
-
$this.
|
|
1712
|
-
$this.
|
|
1713
|
-
$this.
|
|
1709
|
+
var newBuffer = $this.x38_1.k1z();
|
|
1710
|
+
var existing = $this.z38_1;
|
|
1711
|
+
$this.z38_1 = newBuffer;
|
|
1712
|
+
$this.c39_1 = newBuffer.length;
|
|
1713
|
+
$this.b39_1 = false;
|
|
1714
1714
|
if (!(existing == null)) {
|
|
1715
|
-
var tmp0_elvis_lhs = $this.
|
|
1715
|
+
var tmp0_elvis_lhs = $this.y38_1;
|
|
1716
1716
|
var tmp;
|
|
1717
1717
|
if (tmp0_elvis_lhs == null) {
|
|
1718
1718
|
// Inline function 'kotlin.also' call
|
|
1719
1719
|
var this_0 = ArrayList_init_$Create$();
|
|
1720
|
-
$this.
|
|
1720
|
+
$this.y38_1 = this_0;
|
|
1721
1721
|
this_0.j1(existing);
|
|
1722
1722
|
tmp = this_0;
|
|
1723
1723
|
} else {
|
|
@@ -1756,20 +1756,20 @@
|
|
|
1756
1756
|
return hc;
|
|
1757
1757
|
}
|
|
1758
1758
|
function currentPosition($this) {
|
|
1759
|
-
return ensureNotNull($this.
|
|
1759
|
+
return ensureNotNull($this.z38_1).length - $this.c39_1 | 0;
|
|
1760
1760
|
}
|
|
1761
1761
|
function CharArrayBuilder(pool) {
|
|
1762
1762
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1763
|
-
this.
|
|
1764
|
-
this.
|
|
1765
|
-
this.
|
|
1766
|
-
this.
|
|
1767
|
-
this.
|
|
1768
|
-
this.
|
|
1769
|
-
this.
|
|
1763
|
+
this.x38_1 = pool;
|
|
1764
|
+
this.y38_1 = null;
|
|
1765
|
+
this.z38_1 = null;
|
|
1766
|
+
this.a39_1 = null;
|
|
1767
|
+
this.b39_1 = false;
|
|
1768
|
+
this.c39_1 = 0;
|
|
1769
|
+
this.d39_1 = 0;
|
|
1770
1770
|
}
|
|
1771
1771
|
protoOf(CharArrayBuilder).a = function () {
|
|
1772
|
-
return this.
|
|
1772
|
+
return this.d39_1;
|
|
1773
1773
|
};
|
|
1774
1774
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1775
1775
|
// Inline function 'kotlin.require' call
|
|
@@ -1778,8 +1778,8 @@
|
|
|
1778
1778
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1779
1779
|
}
|
|
1780
1780
|
// Inline function 'kotlin.require' call
|
|
1781
|
-
if (!(index < this.
|
|
1782
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1781
|
+
if (!(index < this.d39_1)) {
|
|
1782
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.d39_1 + ')';
|
|
1783
1783
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1784
1784
|
}
|
|
1785
1785
|
return getImpl(this, index);
|
|
@@ -1796,19 +1796,19 @@
|
|
|
1796
1796
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1797
1797
|
}
|
|
1798
1798
|
// Inline function 'kotlin.require' call
|
|
1799
|
-
if (!(endIndex <= this.
|
|
1800
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1799
|
+
if (!(endIndex <= this.d39_1)) {
|
|
1800
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.d39_1 + ')';
|
|
1801
1801
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1802
1802
|
}
|
|
1803
1803
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1804
1804
|
};
|
|
1805
1805
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1806
|
-
var tmp0_elvis_lhs = this.
|
|
1806
|
+
var tmp0_elvis_lhs = this.a39_1;
|
|
1807
1807
|
var tmp;
|
|
1808
1808
|
if (tmp0_elvis_lhs == null) {
|
|
1809
1809
|
// Inline function 'kotlin.also' call
|
|
1810
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1811
|
-
this.
|
|
1810
|
+
var this_0 = toString(copy(this, 0, this.d39_1));
|
|
1811
|
+
this.a39_1 = this_0;
|
|
1812
1812
|
tmp = this_0;
|
|
1813
1813
|
} else {
|
|
1814
1814
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1818,32 +1818,32 @@
|
|
|
1818
1818
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1819
1819
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1820
1820
|
return false;
|
|
1821
|
-
if (!(this.
|
|
1821
|
+
if (!(this.d39_1 === charSequenceLength(other)))
|
|
1822
1822
|
return false;
|
|
1823
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1823
|
+
return rangeEqualsImpl(this, 0, other, 0, this.d39_1);
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1826
|
-
var tmp0_safe_receiver = this.
|
|
1826
|
+
var tmp0_safe_receiver = this.a39_1;
|
|
1827
1827
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1828
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1828
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.d39_1) : tmp1_elvis_lhs;
|
|
1829
1829
|
};
|
|
1830
1830
|
protoOf(CharArrayBuilder).s = function (value) {
|
|
1831
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1832
|
-
this.
|
|
1833
|
-
this.
|
|
1834
|
-
this.
|
|
1831
|
+
nonFullBuffer(this)[ensureNotNull(this.z38_1).length - this.c39_1 | 0] = value;
|
|
1832
|
+
this.a39_1 = null;
|
|
1833
|
+
this.c39_1 = this.c39_1 - 1 | 0;
|
|
1834
|
+
this.d39_1 = this.d39_1 + 1 | 0;
|
|
1835
1835
|
return this;
|
|
1836
1836
|
};
|
|
1837
|
-
protoOf(CharArrayBuilder).
|
|
1837
|
+
protoOf(CharArrayBuilder).nc = function (value, startIndex, endIndex) {
|
|
1838
1838
|
if (value == null)
|
|
1839
1839
|
return this;
|
|
1840
1840
|
var current = startIndex;
|
|
1841
1841
|
while (current < endIndex) {
|
|
1842
1842
|
var buffer = nonFullBuffer(this);
|
|
1843
|
-
var offset = buffer.length - this.
|
|
1843
|
+
var offset = buffer.length - this.c39_1 | 0;
|
|
1844
1844
|
var tmp0 = endIndex - current | 0;
|
|
1845
1845
|
// Inline function 'kotlin.math.min' call
|
|
1846
|
-
var b = this.
|
|
1846
|
+
var b = this.c39_1;
|
|
1847
1847
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1848
1848
|
var inductionVariable = 0;
|
|
1849
1849
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1854,45 +1854,45 @@
|
|
|
1854
1854
|
}
|
|
1855
1855
|
while (inductionVariable < bytesToCopy);
|
|
1856
1856
|
current = current + bytesToCopy | 0;
|
|
1857
|
-
this.
|
|
1857
|
+
this.c39_1 = this.c39_1 - bytesToCopy | 0;
|
|
1858
1858
|
}
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
1859
|
+
this.a39_1 = null;
|
|
1860
|
+
this.d39_1 = this.d39_1 + (endIndex - startIndex | 0) | 0;
|
|
1861
1861
|
return this;
|
|
1862
1862
|
};
|
|
1863
1863
|
protoOf(CharArrayBuilder).k1 = function (value) {
|
|
1864
1864
|
if (value == null)
|
|
1865
1865
|
return this;
|
|
1866
|
-
return this.
|
|
1866
|
+
return this.nc(value, 0, charSequenceLength(value));
|
|
1867
1867
|
};
|
|
1868
|
-
protoOf(CharArrayBuilder).
|
|
1869
|
-
var list = this.
|
|
1868
|
+
protoOf(CharArrayBuilder).d1k = function () {
|
|
1869
|
+
var list = this.y38_1;
|
|
1870
1870
|
if (!(list == null)) {
|
|
1871
|
-
this.
|
|
1871
|
+
this.z38_1 = null;
|
|
1872
1872
|
var inductionVariable = 0;
|
|
1873
1873
|
var last = list.l1();
|
|
1874
1874
|
if (inductionVariable < last)
|
|
1875
1875
|
do {
|
|
1876
1876
|
var i = inductionVariable;
|
|
1877
1877
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1878
|
-
this.
|
|
1878
|
+
this.x38_1.l1z(list.m1(i));
|
|
1879
1879
|
}
|
|
1880
1880
|
while (inductionVariable < last);
|
|
1881
1881
|
} else {
|
|
1882
|
-
var tmp0_safe_receiver = this.
|
|
1882
|
+
var tmp0_safe_receiver = this.z38_1;
|
|
1883
1883
|
if (tmp0_safe_receiver == null)
|
|
1884
1884
|
null;
|
|
1885
1885
|
else {
|
|
1886
1886
|
// Inline function 'kotlin.let' call
|
|
1887
|
-
this.
|
|
1887
|
+
this.x38_1.l1z(tmp0_safe_receiver);
|
|
1888
1888
|
}
|
|
1889
|
-
this.
|
|
1889
|
+
this.z38_1 = null;
|
|
1890
1890
|
}
|
|
1891
|
-
this.
|
|
1892
|
-
this.
|
|
1893
|
-
this.
|
|
1894
|
-
this.
|
|
1895
|
-
this.
|
|
1891
|
+
this.b39_1 = true;
|
|
1892
|
+
this.y38_1 = null;
|
|
1893
|
+
this.a39_1 = null;
|
|
1894
|
+
this.d39_1 = 0;
|
|
1895
|
+
this.c39_1 = 0;
|
|
1896
1896
|
};
|
|
1897
1897
|
function get_CharArrayPool() {
|
|
1898
1898
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1902,13 +1902,13 @@
|
|
|
1902
1902
|
function CharArrayPool$1() {
|
|
1903
1903
|
NoPoolImpl.call(this);
|
|
1904
1904
|
}
|
|
1905
|
-
protoOf(CharArrayPool$1).
|
|
1905
|
+
protoOf(CharArrayPool$1).k1z = function () {
|
|
1906
1906
|
return charArray(2048);
|
|
1907
1907
|
};
|
|
1908
1908
|
function CharArrayPool$2() {
|
|
1909
1909
|
DefaultPool.call(this, 4096);
|
|
1910
1910
|
}
|
|
1911
|
-
protoOf(CharArrayPool$2).
|
|
1911
|
+
protoOf(CharArrayPool$2).d1z = function () {
|
|
1912
1912
|
return charArray(2048);
|
|
1913
1913
|
};
|
|
1914
1914
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2099,20 +2099,20 @@
|
|
|
2099
2099
|
}
|
|
2100
2100
|
function DefaultHttpMethods$lambda(it) {
|
|
2101
2101
|
_init_properties_Chars_kt__d3i39x();
|
|
2102
|
-
return it.
|
|
2102
|
+
return it.a32_1.length;
|
|
2103
2103
|
}
|
|
2104
2104
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2105
2105
|
_init_properties_Chars_kt__d3i39x();
|
|
2106
|
-
return new Char(charCodeAt(m.
|
|
2106
|
+
return new Char(charCodeAt(m.a32_1, idx));
|
|
2107
2107
|
}
|
|
2108
2108
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2109
2109
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2110
2110
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2111
2111
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2112
2112
|
var tmp = Companion_instance;
|
|
2113
|
-
var tmp_0 = Companion_getInstance_0().
|
|
2113
|
+
var tmp_0 = Companion_getInstance_0().z31_1;
|
|
2114
2114
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2115
|
-
DefaultHttpMethods = tmp.
|
|
2115
|
+
DefaultHttpMethods = tmp.w3d(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2116
2116
|
// Inline function 'kotlin.collections.map' call
|
|
2117
2117
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2118
2118
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2213,11 +2213,11 @@
|
|
|
2213
2213
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2214
2214
|
}
|
|
2215
2215
|
function MutableRange(start, end) {
|
|
2216
|
-
this.
|
|
2217
|
-
this.
|
|
2216
|
+
this.r3a_1 = start;
|
|
2217
|
+
this.s3a_1 = end;
|
|
2218
2218
|
}
|
|
2219
2219
|
protoOf(MutableRange).toString = function () {
|
|
2220
|
-
return 'MutableRange(start=' + this.
|
|
2220
|
+
return 'MutableRange(start=' + this.r3a_1 + ', end=' + this.s3a_1 + ')';
|
|
2221
2221
|
};
|
|
2222
2222
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2223
2223
|
var index = start;
|