@dmarket/p2p-tracker-core 1.0.3-beta → 1.0.4-SNAPSHOT.37
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-DateTime-library-kotlinx-datetime.mjs +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/VERSION +5 -5
- package/dmarket-p2p-tracker-core-domain.mjs +3575 -3575
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2260 -2222
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2492 -2492
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +454 -454
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1935 -1935
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1510 -1510
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3341 -3227
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +484 -484
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1067 -1010
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1060 -1111
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +4 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +790 -751
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +761 -750
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +2 -2
- package/p2p-tracker-core.mjs +11384 -11347
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
- package/pkg/client_wasm.js +11 -3
- package/pkg/client_wasm_bg.wasm +0 -0
package/ktor-ktor-http.mjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
shiftRightUnsigned1kzopyqvwpisb as shiftRightUnsigned,
|
|
3
|
+
Long2qws0ah9gnpki as Long,
|
|
4
|
+
bitwiseAnd2g7wmsfd45l12 as bitwiseAnd,
|
|
5
|
+
equalsLong28bsrfhwvd686 as equalsLong,
|
|
6
|
+
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
7
|
+
toString336ienavfnzn0 as toString,
|
|
8
|
+
toString1pkumu07cwy4m as toString_0,
|
|
9
|
+
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
4
10
|
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
11
|
+
shiftLeft1ck77p6vapyra as shiftLeft,
|
|
12
|
+
bitwiseOr1ita6dahwp8zb as bitwiseOr,
|
|
13
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
14
|
+
asIterable3syp9x858o4em as asIterable,
|
|
15
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
16
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
17
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
18
|
+
StringBuilder_init_$Create$3q4yitjcnfjo as StringBuilder_init_$Create$,
|
|
5
19
|
_Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
|
|
20
|
+
toByte4i43936u611k as toByte,
|
|
21
|
+
numberToChar93r9buh19yek as numberToChar,
|
|
6
22
|
Char__plus_impl_qi7pgj1h8009bm3fa2t as Char__plus_impl_qi7pgj,
|
|
7
23
|
Char__minus_impl_a2frrh3216wnsvv1j3k as Char__minus_impl_a2frrh,
|
|
8
|
-
|
|
9
|
-
concatToString2syawgu50khxi as concatToString,
|
|
24
|
+
StringBuilder_init_$Create$3pb07k1b5jr7z as StringBuilder_init_$Create$_0,
|
|
10
25
|
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
11
|
-
substringiqarkczpya5m as substring,
|
|
12
|
-
toString1pkumu07cwy4m as toString,
|
|
13
|
-
Char19o2r8palgjof as Char,
|
|
14
26
|
isSurrogatewe8xicw8z84n as isSurrogate,
|
|
15
|
-
|
|
27
|
+
substringiqarkczpya5m as substring,
|
|
16
28
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
17
29
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
18
30
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
19
|
-
toString336ienavfnzn0 as toString_0,
|
|
20
|
-
toByte4i43936u611k as toByte,
|
|
21
31
|
decodeToString1dbzcjd620q25 as decodeToString,
|
|
22
32
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
23
33
|
Exception_init_$Init$1ksq2fk0jxaag as Exception_init_$Init$,
|
|
24
34
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
25
|
-
protoOf180f3jzyo7rfj as protoOf,
|
|
26
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
27
35
|
Char__minus_impl_a2frrh370khreoakmi6 as Char__minus_impl_a2frrh_0,
|
|
28
|
-
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
29
|
-
numberToChar93r9buh19yek as numberToChar,
|
|
30
36
|
Char__rangeTo_impl_tkncvp39f1k6qse2e6h as Char__rangeTo_impl_tkncvp,
|
|
31
37
|
plus39kp8wyage607 as plus,
|
|
32
38
|
plus310ted5e4i90h as plus_0,
|
|
33
|
-
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
34
|
-
ArrayList_init_$Create$3o344dm0ee4ws as ArrayList_init_$Create$,
|
|
35
|
-
toSet2orjxp16sotqu as toSet,
|
|
36
|
-
setOf45ia9pnfhe90 as setOf,
|
|
37
|
-
plus1ogy4liedzq5j as plus_1,
|
|
38
|
-
listOf1jh22dvmctj1r as listOf,
|
|
39
39
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
40
40
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
41
41
|
equals2v6cggk171b6e as equals,
|
|
@@ -50,40 +50,42 @@ import {
|
|
|
50
50
|
take9j4462mea726 as take,
|
|
51
51
|
substring3saq8ornu0luv as substring_0,
|
|
52
52
|
contains2el4s70rdq4ld as contains,
|
|
53
|
-
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
54
53
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
55
54
|
startsWith38d3sbg25w0lx as startsWith,
|
|
56
|
-
plus20p0vtfmu0596 as
|
|
55
|
+
plus20p0vtfmu0596 as plus_1,
|
|
57
56
|
equals2au1ep9vhcato as equals_0,
|
|
58
57
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
59
58
|
hashCodeq5arwsb9dgti as hashCode,
|
|
60
59
|
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
60
|
+
setOf45ia9pnfhe90 as setOf,
|
|
61
61
|
get_lastIndex1yw0x4k50k51w as get_lastIndex,
|
|
62
62
|
first3kg261hmihapu as first,
|
|
63
63
|
last2n4gf5az1lkn4 as last_0,
|
|
64
64
|
get_lastIndexld83bqhfgcdd as get_lastIndex_0,
|
|
65
|
-
listOfvhqybd2zx248 as
|
|
65
|
+
listOfvhqybd2zx248 as listOf,
|
|
66
66
|
emptyMapr06gerzljqtm as emptyMap,
|
|
67
67
|
emptySetcxexqki71qfa as emptySet,
|
|
68
68
|
toDoubleOrNullkxwozihadygj as toDoubleOrNull,
|
|
69
69
|
LazyThreadSafetyMode_NONE_getInstance2o5dw3dzszhgg as LazyThreadSafetyMode_NONE_getInstance,
|
|
70
70
|
lazy1261dae0bgscp as lazy,
|
|
71
71
|
to2cs3ny02qtbcb as to,
|
|
72
|
-
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create
|
|
72
|
+
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
|
|
73
73
|
asList2ho2pewtsfvv as asList,
|
|
74
74
|
Char__compareTo_impl_ypi4mb1yxpplfe5vmm as Char__compareTo_impl_ypi4mb,
|
|
75
75
|
IllegalArgumentException_init_$Init$2il8idvytc2u5 as IllegalArgumentException_init_$Init$,
|
|
76
76
|
toLongOrNullutqivezb0wx1 as toLongOrNull,
|
|
77
|
+
listOf1jh22dvmctj1r as listOf_0,
|
|
78
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
77
79
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
78
80
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
79
81
|
LinkedHashMap_init_$Create$1gaaqjdgvat9g as LinkedHashMap_init_$Create$,
|
|
80
82
|
Comparable198qfk8pnblz0 as Comparable,
|
|
83
|
+
ArrayList_init_$Create$3o344dm0ee4ws as ArrayList_init_$Create$_0,
|
|
81
84
|
addAll1k27qatfgp3k5 as addAll,
|
|
82
85
|
joinTo3lkanfaxbzac2 as joinTo,
|
|
83
86
|
toString30pk9tzaqopn as toString_1,
|
|
84
87
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
85
88
|
isWhitespace25occ8z1ed1s9 as isWhitespace,
|
|
86
|
-
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
87
89
|
startsWith1bgirhbedtv2y as startsWith_0,
|
|
88
90
|
charArrayOf27f4r3dozbrk1 as charArrayOf,
|
|
89
91
|
split3d3yeauc4rm2n as split,
|
|
@@ -102,16 +104,17 @@ import {
|
|
|
102
104
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
103
105
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
104
106
|
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
|
|
107
|
+
toSet2orjxp16sotqu as toSet,
|
|
105
108
|
fromInt1lka3ktyu79a4 as fromInt,
|
|
106
109
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
107
110
|
import {
|
|
108
111
|
Charsets_getInstance3jooo7e4x0j2x as Charsets_getInstance,
|
|
112
|
+
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
109
113
|
encode35e4rpnc94tb5 as encode,
|
|
110
114
|
takeWhile34751tcfg6owx as takeWhile,
|
|
111
115
|
canRead1guo8vbveth0f as canRead,
|
|
112
116
|
forName2faodmskqnoz5 as forName,
|
|
113
117
|
get_name2f11g4r0d5pxp as get_name,
|
|
114
|
-
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
115
118
|
} from './ktor-ktor-io.mjs';
|
|
116
119
|
import {
|
|
117
120
|
StringValuesBuilderImpl3ey9etj3bwnqf as StringValuesBuilderImpl,
|
|
@@ -136,43 +139,45 @@ import {
|
|
|
136
139
|
var imul = Math.imul;
|
|
137
140
|
//endregion
|
|
138
141
|
//region block: pre-declaration
|
|
139
|
-
initMetadataForClass(URLDecodeException, 'URLDecodeException', VOID, Exception);
|
|
140
142
|
initMetadataForCompanion(Companion);
|
|
143
|
+
initMetadataForClass(AsciiBitSet, 'AsciiBitSet');
|
|
144
|
+
initMetadataForClass(URLDecodeException, 'URLDecodeException', VOID, Exception);
|
|
145
|
+
initMetadataForCompanion(Companion_0);
|
|
141
146
|
initMetadataForObject(Application, 'Application');
|
|
142
147
|
initMetadataForObject(MultiPart, 'MultiPart');
|
|
143
148
|
initMetadataForObject(Text, 'Text');
|
|
144
149
|
initMetadataForClass(HeaderValueWithParameters, 'HeaderValueWithParameters');
|
|
145
150
|
initMetadataForClass(ContentType, 'ContentType', VOID, HeaderValueWithParameters);
|
|
146
151
|
initMetadataForClass(BadContentTypeFormatException, 'BadContentTypeFormatException', VOID, Exception);
|
|
147
|
-
initMetadataForCompanion(Companion_0);
|
|
148
|
-
initMetadataForClass(HeadersBuilder, 'HeadersBuilder', HeadersBuilder, StringValuesBuilderImpl);
|
|
149
152
|
initMetadataForCompanion(Companion_1);
|
|
153
|
+
initMetadataForClass(HeadersBuilder, 'HeadersBuilder', HeadersBuilder, StringValuesBuilderImpl);
|
|
154
|
+
initMetadataForCompanion(Companion_2);
|
|
150
155
|
initMetadataForClass(HeadersImpl, 'HeadersImpl', HeadersImpl, StringValuesImpl, [StringValues]);
|
|
151
156
|
initMetadataForObject(EmptyHeaders, 'EmptyHeaders', VOID, VOID, [StringValues]);
|
|
152
157
|
initMetadataForClass(HeadersSingleImpl, 'HeadersSingleImpl', VOID, StringValuesSingleImpl, [StringValues]);
|
|
153
|
-
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
154
158
|
initMetadataForClass(HeaderValue, 'HeaderValue');
|
|
159
|
+
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
155
160
|
initMetadataForObject(HttpHeaders, 'HttpHeaders');
|
|
156
161
|
initMetadataForClass(UnsafeHeaderException, 'UnsafeHeaderException', VOID, IllegalArgumentException);
|
|
157
162
|
initMetadataForClass(IllegalHeaderNameException, 'IllegalHeaderNameException', VOID, IllegalArgumentException);
|
|
158
163
|
initMetadataForClass(IllegalHeaderValueException, 'IllegalHeaderValueException', VOID, IllegalArgumentException);
|
|
159
|
-
initMetadataForCompanion(Companion_2);
|
|
160
|
-
initMetadataForClass(HttpMethod, 'HttpMethod');
|
|
161
164
|
initMetadataForCompanion(Companion_3);
|
|
162
|
-
initMetadataForClass(
|
|
165
|
+
initMetadataForClass(HttpMethod, 'HttpMethod');
|
|
163
166
|
initMetadataForCompanion(Companion_4);
|
|
164
|
-
initMetadataForClass(
|
|
167
|
+
initMetadataForClass(HttpProtocolVersion, 'HttpProtocolVersion');
|
|
165
168
|
initMetadataForCompanion(Companion_5);
|
|
169
|
+
initMetadataForClass(HttpStatusCode, 'HttpStatusCode', VOID, VOID, [Comparable]);
|
|
170
|
+
initMetadataForCompanion(Companion_6);
|
|
166
171
|
initMetadataForInterface(Parameters, 'Parameters', VOID, VOID, [StringValues]);
|
|
167
172
|
initMetadataForObject(EmptyParameters, 'EmptyParameters', VOID, VOID, [Parameters]);
|
|
168
173
|
initMetadataForClass(ParametersBuilderImpl, 'ParametersBuilderImpl', ParametersBuilderImpl, StringValuesBuilderImpl);
|
|
169
174
|
initMetadataForClass(ParametersImpl, 'ParametersImpl', ParametersImpl, StringValuesImpl, [Parameters]);
|
|
170
|
-
initMetadataForCompanion(
|
|
175
|
+
initMetadataForCompanion(Companion_7);
|
|
171
176
|
initMetadataForClass(URLBuilder, 'URLBuilder', URLBuilder);
|
|
172
177
|
initMetadataForClass(URLParserException, 'URLParserException', VOID, IllegalStateException);
|
|
173
|
-
initMetadataForCompanion(Companion_7);
|
|
174
|
-
initMetadataForClass(URLProtocol, 'URLProtocol');
|
|
175
178
|
initMetadataForCompanion(Companion_8);
|
|
179
|
+
initMetadataForClass(URLProtocol, 'URLProtocol');
|
|
180
|
+
initMetadataForCompanion(Companion_9);
|
|
176
181
|
initMetadataForClass(Url_0, 'Url', VOID, VOID, VOID, VOID, VOID, {0: UrlSerializer_getInstance});
|
|
177
182
|
initMetadataForObject(UrlSerializer, 'UrlSerializer', VOID, VOID, [KSerializer]);
|
|
178
183
|
initMetadataForClass(UrlDecodedParametersBuilder, 'UrlDecodedParametersBuilder');
|
|
@@ -187,16 +192,61 @@ initMetadataForClass(ContentWrapper, 'ContentWrapper', VOID, OutgoingContent);
|
|
|
187
192
|
initMetadataForObject(NullBody, 'NullBody');
|
|
188
193
|
initMetadataForClass(TextContent, 'TextContent', VOID, ByteArrayContent);
|
|
189
194
|
//endregion
|
|
195
|
+
function containsCode($this, code) {
|
|
196
|
+
if (!((code >>> 7 | 0) === 0))
|
|
197
|
+
return false;
|
|
198
|
+
var bits = code < 64 ? $this.o42_1 : $this.p42_1;
|
|
199
|
+
return equalsLong(bitwiseAnd(shiftRightUnsigned(bits, code), new Long(1, 0)), new Long(1, 0));
|
|
200
|
+
}
|
|
201
|
+
function Companion() {
|
|
202
|
+
}
|
|
203
|
+
protoOf(Companion).q42 = function (chars) {
|
|
204
|
+
var low = new Long(0, 0);
|
|
205
|
+
var high = new Long(0, 0);
|
|
206
|
+
var _iterator__ex2g4s = chars.t();
|
|
207
|
+
while (_iterator__ex2g4s.u()) {
|
|
208
|
+
var char = _iterator__ex2g4s.v().a2_1;
|
|
209
|
+
// Inline function 'kotlin.code' call
|
|
210
|
+
var code = Char__toInt_impl_vasixd(char);
|
|
211
|
+
// Inline function 'kotlin.require' call
|
|
212
|
+
if (!(code < 128)) {
|
|
213
|
+
var message = "Only ASCII characters are supported, got '" + toString(char) + "' (code " + code + ')';
|
|
214
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
215
|
+
}
|
|
216
|
+
if (code < 64)
|
|
217
|
+
low = bitwiseOr(low, shiftLeft(new Long(1, 0), code));
|
|
218
|
+
else
|
|
219
|
+
high = bitwiseOr(high, shiftLeft(new Long(1, 0), code));
|
|
220
|
+
}
|
|
221
|
+
return new AsciiBitSet(low, high);
|
|
222
|
+
};
|
|
223
|
+
protoOf(Companion).r42 = function (chars) {
|
|
224
|
+
return this.q42(asIterable(chars));
|
|
225
|
+
};
|
|
226
|
+
var Companion_instance;
|
|
227
|
+
function Companion_getInstance() {
|
|
228
|
+
return Companion_instance;
|
|
229
|
+
}
|
|
230
|
+
function AsciiBitSet(low, high) {
|
|
231
|
+
this.o42_1 = low;
|
|
232
|
+
this.p42_1 = high;
|
|
233
|
+
}
|
|
234
|
+
protoOf(AsciiBitSet).gk = function (char) {
|
|
235
|
+
// Inline function 'kotlin.code' call
|
|
236
|
+
var tmp$ret$0 = Char__toInt_impl_vasixd(char);
|
|
237
|
+
return containsCode(this, tmp$ret$0);
|
|
238
|
+
};
|
|
239
|
+
protoOf(AsciiBitSet).s42 = function (byte) {
|
|
240
|
+
return containsCode(this, byte);
|
|
241
|
+
};
|
|
242
|
+
protoOf(AsciiBitSet).t42 = function (other) {
|
|
243
|
+
return new AsciiBitSet(bitwiseOr(this.o42_1, other.o42_1), bitwiseOr(this.p42_1, other.p42_1));
|
|
244
|
+
};
|
|
190
245
|
function get_URL_ALPHABET() {
|
|
191
246
|
_init_properties_Codecs_kt__fudxxf();
|
|
192
247
|
return URL_ALPHABET;
|
|
193
248
|
}
|
|
194
249
|
var URL_ALPHABET;
|
|
195
|
-
function get_URL_ALPHABET_CHARS() {
|
|
196
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
197
|
-
return URL_ALPHABET_CHARS;
|
|
198
|
-
}
|
|
199
|
-
var URL_ALPHABET_CHARS;
|
|
200
250
|
function get_HEX_ALPHABET() {
|
|
201
251
|
_init_properties_Codecs_kt__fudxxf();
|
|
202
252
|
return HEX_ALPHABET;
|
|
@@ -213,45 +263,103 @@ function get_VALID_PATH_PART() {
|
|
|
213
263
|
}
|
|
214
264
|
var VALID_PATH_PART;
|
|
215
265
|
var ATTRIBUTE_CHARACTERS;
|
|
216
|
-
function
|
|
266
|
+
function get_URL_PARAMETER_CHARS() {
|
|
217
267
|
_init_properties_Codecs_kt__fudxxf();
|
|
218
|
-
return
|
|
268
|
+
return URL_PARAMETER_CHARS;
|
|
219
269
|
}
|
|
220
|
-
var
|
|
270
|
+
var URL_PARAMETER_CHARS;
|
|
221
271
|
function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
222
272
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
223
273
|
_init_properties_Codecs_kt__fudxxf();
|
|
274
|
+
var content = toByteArray(_this__u8e3s4, Charsets_getInstance().g3u_1);
|
|
224
275
|
// Inline function 'kotlin.text.buildString' call
|
|
276
|
+
var capacity = content.length;
|
|
225
277
|
// Inline function 'kotlin.apply' call
|
|
226
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
227
|
-
var
|
|
228
|
-
|
|
278
|
+
var this_0 = StringBuilder_init_$Create$(capacity);
|
|
279
|
+
var inductionVariable = 0;
|
|
280
|
+
var last = content.length;
|
|
281
|
+
while (inductionVariable < last) {
|
|
282
|
+
var byte = content[inductionVariable];
|
|
283
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
284
|
+
if (get_URL_PARAMETER_CHARS().s42(byte))
|
|
285
|
+
this_0.s(numberToChar(byte));
|
|
286
|
+
else {
|
|
287
|
+
var tmp;
|
|
288
|
+
if (spaceToPlus) {
|
|
289
|
+
var tmp_0 = byte;
|
|
290
|
+
// Inline function 'kotlin.code' call
|
|
291
|
+
var this_1 = _Char___init__impl__6a9atx(32);
|
|
292
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
293
|
+
tmp = tmp_0 === toByte(tmp$ret$3);
|
|
294
|
+
} else {
|
|
295
|
+
tmp = false;
|
|
296
|
+
}
|
|
297
|
+
if (tmp)
|
|
298
|
+
this_0.s(_Char___init__impl__6a9atx(43));
|
|
299
|
+
else {
|
|
300
|
+
appendPercentEncoded(this_0, byte);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
229
304
|
return this_0.toString();
|
|
230
305
|
}
|
|
306
|
+
function appendPercentEncoded(_this__u8e3s4, byte) {
|
|
307
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
308
|
+
var code = byte & 255;
|
|
309
|
+
_this__u8e3s4.s(_Char___init__impl__6a9atx(37));
|
|
310
|
+
_this__u8e3s4.s(hexDigitToChar(code >> 4));
|
|
311
|
+
_this__u8e3s4.s(hexDigitToChar(code & 15));
|
|
312
|
+
}
|
|
313
|
+
function hexDigitToChar(digit) {
|
|
314
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
315
|
+
return (0 <= digit ? digit <= 9 : false) ? Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(48), digit) : Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(65), digit), 10);
|
|
316
|
+
}
|
|
231
317
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
232
318
|
start = start === VOID ? 0 : start;
|
|
233
319
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
234
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
320
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
235
321
|
_init_properties_Codecs_kt__fudxxf();
|
|
236
322
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
237
323
|
}
|
|
238
324
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
239
325
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
240
326
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
241
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
327
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
242
328
|
_init_properties_Codecs_kt__fudxxf();
|
|
329
|
+
var content = toByteArray(_this__u8e3s4, charset);
|
|
243
330
|
// Inline function 'kotlin.text.buildString' call
|
|
331
|
+
var capacity = content.length;
|
|
244
332
|
// Inline function 'kotlin.apply' call
|
|
245
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
246
|
-
var
|
|
247
|
-
|
|
333
|
+
var this_0 = StringBuilder_init_$Create$(capacity);
|
|
334
|
+
var inductionVariable = 0;
|
|
335
|
+
var last = content.length;
|
|
336
|
+
while (inductionVariable < last) {
|
|
337
|
+
var byte = content[inductionVariable];
|
|
338
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
339
|
+
var tmp = byte;
|
|
340
|
+
// Inline function 'kotlin.code' call
|
|
341
|
+
var this_1 = _Char___init__impl__6a9atx(32);
|
|
342
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
343
|
+
if (tmp === toByte(tmp$ret$3))
|
|
344
|
+
if (spaceToPlus)
|
|
345
|
+
this_0.s(_Char___init__impl__6a9atx(43));
|
|
346
|
+
else
|
|
347
|
+
this_0.q('%20');
|
|
348
|
+
else {
|
|
349
|
+
if (get_URL_ALPHABET().s42(byte) || (!encodeFull && get_URL_PROTOCOL_PART().s42(byte)))
|
|
350
|
+
this_0.s(numberToChar(byte));
|
|
351
|
+
else {
|
|
352
|
+
appendPercentEncoded(this_0, byte);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
248
356
|
return this_0.toString();
|
|
249
357
|
}
|
|
250
358
|
function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
251
359
|
start = start === VOID ? 0 : start;
|
|
252
360
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
253
361
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
254
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
362
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
255
363
|
_init_properties_Codecs_kt__fudxxf();
|
|
256
364
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
257
365
|
}
|
|
@@ -259,79 +367,74 @@ function encodeURLPathPart(_this__u8e3s4) {
|
|
|
259
367
|
_init_properties_Codecs_kt__fudxxf();
|
|
260
368
|
return encodeURLPath(_this__u8e3s4, true);
|
|
261
369
|
}
|
|
262
|
-
function encodeURLParameterValue(_this__u8e3s4) {
|
|
263
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
264
|
-
return encodeURLParameter(_this__u8e3s4, true);
|
|
265
|
-
}
|
|
266
|
-
function hexDigitToChar(digit) {
|
|
267
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
268
|
-
return (0 <= digit ? digit <= 9 : false) ? Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(48), digit) : Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(65), digit), 10);
|
|
269
|
-
}
|
|
270
|
-
function forEach_0(_this__u8e3s4, block) {
|
|
271
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
272
|
-
takeWhile(_this__u8e3s4, forEach$lambda(block));
|
|
273
|
-
}
|
|
274
|
-
function percentEncode(_this__u8e3s4) {
|
|
275
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
276
|
-
var code = _this__u8e3s4 & 255;
|
|
277
|
-
var array = charArray(3);
|
|
278
|
-
array[0] = _Char___init__impl__6a9atx(37);
|
|
279
|
-
array[1] = hexDigitToChar(code >> 4);
|
|
280
|
-
array[2] = hexDigitToChar(code & 15);
|
|
281
|
-
return concatToString(array);
|
|
282
|
-
}
|
|
283
|
-
function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
284
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
285
|
-
var inductionVariable = start;
|
|
286
|
-
if (inductionVariable < end)
|
|
287
|
-
do {
|
|
288
|
-
var index = inductionVariable;
|
|
289
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
290
|
-
var ch = charCodeAt(_this__u8e3s4, index);
|
|
291
|
-
if (ch === _Char___init__impl__6a9atx(37) || (plusIsSpace && ch === _Char___init__impl__6a9atx(43))) {
|
|
292
|
-
return decodeImpl(_this__u8e3s4, start, end, index, plusIsSpace, charset);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
while (inductionVariable < end);
|
|
296
|
-
return start === 0 && end === _this__u8e3s4.length ? toString(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
|
|
297
|
-
}
|
|
298
370
|
function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
299
371
|
encodeSlash = encodeSlash === VOID ? false : encodeSlash;
|
|
300
372
|
encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
|
|
301
373
|
_init_properties_Codecs_kt__fudxxf();
|
|
302
374
|
// Inline function 'kotlin.text.buildString' call
|
|
303
375
|
// Inline function 'kotlin.apply' call
|
|
304
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
305
|
-
var charset = Charsets_getInstance().
|
|
376
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
377
|
+
var charset = Charsets_getInstance().g3u_1;
|
|
306
378
|
var index = 0;
|
|
307
|
-
$l$
|
|
379
|
+
$l$loop_1: while (index < _this__u8e3s4.length) {
|
|
308
380
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
309
|
-
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) ||
|
|
381
|
+
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET().gk(current) || get_VALID_PATH_PART().gk(current)) {
|
|
310
382
|
this_0.s(current);
|
|
311
383
|
index = index + 1 | 0;
|
|
312
|
-
continue $l$
|
|
384
|
+
continue $l$loop_1;
|
|
313
385
|
}
|
|
314
|
-
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().
|
|
386
|
+
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().gk(charCodeAt(_this__u8e3s4, index + 1 | 0)) && get_HEX_ALPHABET().gk(charCodeAt(_this__u8e3s4, index + 2 | 0))) {
|
|
315
387
|
this_0.s(current);
|
|
316
388
|
this_0.s(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
317
389
|
this_0.s(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
318
390
|
index = index + 3 | 0;
|
|
319
|
-
continue $l$
|
|
391
|
+
continue $l$loop_1;
|
|
392
|
+
}
|
|
393
|
+
// Inline function 'kotlin.code' call
|
|
394
|
+
if (Char__toInt_impl_vasixd(current) < 128) {
|
|
395
|
+
// Inline function 'kotlin.code' call
|
|
396
|
+
var tmp$ret$4 = Char__toInt_impl_vasixd(current);
|
|
397
|
+
appendPercentEncoded(this_0, toByte(tmp$ret$4));
|
|
398
|
+
index = index + 1 | 0;
|
|
399
|
+
continue $l$loop_1;
|
|
320
400
|
}
|
|
321
401
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
322
|
-
var tmp = encode(charset.
|
|
402
|
+
var tmp = encode(charset.j3u(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
323
403
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
324
404
|
index = index + symbolSize | 0;
|
|
325
405
|
}
|
|
326
406
|
return this_0.toString();
|
|
327
407
|
}
|
|
408
|
+
function encodeURLParameterValue(_this__u8e3s4) {
|
|
409
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
410
|
+
return encodeURLParameter(_this__u8e3s4, true);
|
|
411
|
+
}
|
|
412
|
+
function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
413
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
414
|
+
var inductionVariable = start;
|
|
415
|
+
if (inductionVariable < end)
|
|
416
|
+
do {
|
|
417
|
+
var index = inductionVariable;
|
|
418
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
419
|
+
var ch = charCodeAt(_this__u8e3s4, index);
|
|
420
|
+
if (ch === _Char___init__impl__6a9atx(37) || (plusIsSpace && ch === _Char___init__impl__6a9atx(43))) {
|
|
421
|
+
return decodeImpl(_this__u8e3s4, start, end, index, plusIsSpace, charset);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
while (inductionVariable < end);
|
|
425
|
+
return start === 0 && end === _this__u8e3s4.length ? toString_0(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
|
|
426
|
+
}
|
|
427
|
+
function forEach_0(_this__u8e3s4, block) {
|
|
428
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
429
|
+
takeWhile(_this__u8e3s4, forEach$lambda(block));
|
|
430
|
+
}
|
|
328
431
|
function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset) {
|
|
329
432
|
_init_properties_Codecs_kt__fudxxf();
|
|
330
433
|
var length = end - start | 0;
|
|
331
434
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
332
|
-
var sb = StringBuilder_init_$Create$
|
|
435
|
+
var sb = StringBuilder_init_$Create$(sbSize);
|
|
333
436
|
if (prefixEnd > start) {
|
|
334
|
-
sb.
|
|
437
|
+
sb.kc(_this__u8e3s4, start, prefixEnd);
|
|
335
438
|
}
|
|
336
439
|
var index = prefixEnd;
|
|
337
440
|
var bytes = null;
|
|
@@ -350,13 +453,13 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
350
453
|
// Inline function 'kotlin.text.substring' call
|
|
351
454
|
var startIndex = index;
|
|
352
455
|
var endIndex = charSequenceLength(_this__u8e3s4);
|
|
353
|
-
var tmp$ret$0 =
|
|
354
|
-
throw new URLDecodeException('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' +
|
|
456
|
+
var tmp$ret$0 = toString_0(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
|
|
457
|
+
throw new URLDecodeException('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' + toString_0(_this__u8e3s4) + ' at ' + index);
|
|
355
458
|
}
|
|
356
459
|
var digit1 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 1 | 0));
|
|
357
460
|
var digit2 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 2 | 0));
|
|
358
461
|
if (digit1 === -1 || digit2 === -1) {
|
|
359
|
-
throw new URLDecodeException('Wrong HEX escape: %' +
|
|
462
|
+
throw new URLDecodeException('Wrong HEX escape: %' + toString(charSequenceGet(_this__u8e3s4, index + 1 | 0)) + toString(charSequenceGet(_this__u8e3s4, index + 2 | 0)) + ', in ' + toString_0(_this__u8e3s4) + ', at ' + index);
|
|
360
463
|
}
|
|
361
464
|
var tmp = bytes;
|
|
362
465
|
var _unary__edvuaz = count;
|
|
@@ -380,115 +483,30 @@ function charToHexDigit(c2) {
|
|
|
380
483
|
_init_properties_Codecs_kt__fudxxf();
|
|
381
484
|
return (_Char___init__impl__6a9atx(48) <= c2 ? c2 <= _Char___init__impl__6a9atx(57) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(48)) : (_Char___init__impl__6a9atx(65) <= c2 ? c2 <= _Char___init__impl__6a9atx(70) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(65)) + 10 | 0 : (_Char___init__impl__6a9atx(97) <= c2 ? c2 <= _Char___init__impl__6a9atx(102) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(97)) + 10 | 0 : -1;
|
|
382
485
|
}
|
|
383
|
-
function
|
|
486
|
+
function encodeURLPath$lambda($$this$buildString) {
|
|
384
487
|
return function (it) {
|
|
385
|
-
|
|
386
|
-
$$this$buildString.s(numberToChar(it));
|
|
387
|
-
else {
|
|
388
|
-
var tmp;
|
|
389
|
-
if ($spaceToPlus) {
|
|
390
|
-
var tmp_0 = it;
|
|
391
|
-
// Inline function 'kotlin.code' call
|
|
392
|
-
var this_0 = _Char___init__impl__6a9atx(32);
|
|
393
|
-
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
394
|
-
tmp = tmp_0 === toByte(tmp$ret$0);
|
|
395
|
-
} else {
|
|
396
|
-
tmp = false;
|
|
397
|
-
}
|
|
398
|
-
if (tmp)
|
|
399
|
-
$$this$buildString.s(_Char___init__impl__6a9atx(43));
|
|
400
|
-
else {
|
|
401
|
-
$$this$buildString.q(percentEncode(it));
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
return Unit_instance;
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encodeFull) {
|
|
408
|
-
return function (it) {
|
|
409
|
-
var tmp = it;
|
|
410
|
-
// Inline function 'kotlin.code' call
|
|
411
|
-
var this_0 = _Char___init__impl__6a9atx(32);
|
|
412
|
-
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
413
|
-
if (tmp === toByte(tmp$ret$0))
|
|
414
|
-
if ($spaceToPlus)
|
|
415
|
-
$$this$buildString.s(_Char___init__impl__6a9atx(43));
|
|
416
|
-
else
|
|
417
|
-
$$this$buildString.q('%20');
|
|
418
|
-
else {
|
|
419
|
-
if (get_URL_ALPHABET().d1(it) || (!$encodeFull && get_URL_PROTOCOL_PART().d1(it)))
|
|
420
|
-
$$this$buildString.s(numberToChar(it));
|
|
421
|
-
else {
|
|
422
|
-
$$this$buildString.q(percentEncode(it));
|
|
423
|
-
}
|
|
424
|
-
}
|
|
488
|
+
appendPercentEncoded($$this$buildString, it);
|
|
425
489
|
return Unit_instance;
|
|
426
490
|
};
|
|
427
491
|
}
|
|
428
492
|
function forEach$lambda($block) {
|
|
429
493
|
return function (buffer) {
|
|
430
494
|
while (canRead(buffer)) {
|
|
431
|
-
$block(buffer.
|
|
495
|
+
$block(buffer.c3g());
|
|
432
496
|
}
|
|
433
497
|
return true;
|
|
434
498
|
};
|
|
435
499
|
}
|
|
436
|
-
function encodeURLPath$lambda($$this$buildString) {
|
|
437
|
-
return function (it) {
|
|
438
|
-
$$this$buildString.q(percentEncode(it));
|
|
439
|
-
return Unit_instance;
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
500
|
var properties_initialized_Codecs_kt_hkj9s1;
|
|
443
501
|
function _init_properties_Codecs_kt__fudxxf() {
|
|
444
502
|
if (!properties_initialized_Codecs_kt_hkj9s1) {
|
|
445
503
|
properties_initialized_Codecs_kt_hkj9s1 = true;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
var item = _iterator__ex2g4s.v();
|
|
453
|
-
// Inline function 'kotlin.code' call
|
|
454
|
-
var this_1 = item.z1_1;
|
|
455
|
-
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
456
|
-
var tmp$ret$2 = toByte(tmp$ret$3);
|
|
457
|
-
destination.b1(tmp$ret$2);
|
|
458
|
-
}
|
|
459
|
-
URL_ALPHABET = toSet(destination);
|
|
460
|
-
URL_ALPHABET_CHARS = toSet(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
461
|
-
HEX_ALPHABET = toSet(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(102)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(70))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
462
|
-
// Inline function 'kotlin.collections.map' call
|
|
463
|
-
var this_2 = setOf([new Char(_Char___init__impl__6a9atx(58)), 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(91)), new Char(_Char___init__impl__6a9atx(93)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(39)), new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(42)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126)), new Char(_Char___init__impl__6a9atx(43))]);
|
|
464
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
465
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
466
|
-
var _iterator__ex2g4s_0 = this_2.t();
|
|
467
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
468
|
-
var item_0 = _iterator__ex2g4s_0.v();
|
|
469
|
-
// Inline function 'kotlin.code' call
|
|
470
|
-
var this_3 = item_0.z1_1;
|
|
471
|
-
var tmp$ret$3_0 = Char__toInt_impl_vasixd(this_3);
|
|
472
|
-
var tmp$ret$2_0 = toByte(tmp$ret$3_0);
|
|
473
|
-
destination_0.b1(tmp$ret$2_0);
|
|
474
|
-
}
|
|
475
|
-
URL_PROTOCOL_PART = destination_0;
|
|
476
|
-
VALID_PATH_PART = setOf([new Char(_Char___init__impl__6a9atx(58)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(39)), new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(42)), new Char(_Char___init__impl__6a9atx(43)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126))]);
|
|
477
|
-
ATTRIBUTE_CHARACTERS = plus_1(get_URL_ALPHABET_CHARS(), setOf([new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(43)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(94)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(96)), new Char(_Char___init__impl__6a9atx(124)), new Char(_Char___init__impl__6a9atx(126))]));
|
|
478
|
-
// Inline function 'kotlin.collections.map' call
|
|
479
|
-
var this_4 = listOf([new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126))]);
|
|
480
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
481
|
-
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
482
|
-
var _iterator__ex2g4s_1 = this_4.t();
|
|
483
|
-
while (_iterator__ex2g4s_1.u()) {
|
|
484
|
-
var item_1 = _iterator__ex2g4s_1.v();
|
|
485
|
-
// Inline function 'kotlin.code' call
|
|
486
|
-
var this_5 = item_1.z1_1;
|
|
487
|
-
var tmp$ret$3_1 = Char__toInt_impl_vasixd(this_5);
|
|
488
|
-
var tmp$ret$2_1 = toByte(tmp$ret$3_1);
|
|
489
|
-
destination_1.b1(tmp$ret$2_1);
|
|
490
|
-
}
|
|
491
|
-
SPECIAL_SYMBOLS = destination_1;
|
|
504
|
+
URL_ALPHABET = Companion_instance.q42(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
505
|
+
HEX_ALPHABET = Companion_instance.q42(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(102)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(70))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
506
|
+
URL_PROTOCOL_PART = Companion_instance.r42(":/?#[]@!$&'()*,;=-._~+");
|
|
507
|
+
VALID_PATH_PART = Companion_instance.r42(":@!$&'()*+,;=-._~");
|
|
508
|
+
ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().t42(Companion_instance.r42('!#$&+-.^_`|~'));
|
|
509
|
+
URL_PARAMETER_CHARS = get_URL_ALPHABET().t42(Companion_instance.r42('-._~'));
|
|
492
510
|
}
|
|
493
511
|
}
|
|
494
512
|
var textSubTypes;
|
|
@@ -502,18 +520,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
502
520
|
}
|
|
503
521
|
function hasParameter($this, name, value) {
|
|
504
522
|
var tmp;
|
|
505
|
-
switch ($this.
|
|
523
|
+
switch ($this.v42_1.e1()) {
|
|
506
524
|
case 0:
|
|
507
525
|
tmp = false;
|
|
508
526
|
break;
|
|
509
527
|
case 1:
|
|
510
528
|
// Inline function 'kotlin.let' call
|
|
511
529
|
|
|
512
|
-
var it = $this.
|
|
513
|
-
tmp = (equals(it.
|
|
530
|
+
var it = $this.v42_1.f1(0);
|
|
531
|
+
tmp = (equals(it.w42_1, name, true) && equals(it.x42_1, value, true));
|
|
514
532
|
break;
|
|
515
533
|
default:
|
|
516
|
-
var tmp0 = $this.
|
|
534
|
+
var tmp0 = $this.v42_1;
|
|
517
535
|
var tmp$ret$2;
|
|
518
536
|
$l$block_0: {
|
|
519
537
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -530,7 +548,7 @@ function hasParameter($this, name, value) {
|
|
|
530
548
|
var _iterator__ex2g4s = tmp0.t();
|
|
531
549
|
while (_iterator__ex2g4s.u()) {
|
|
532
550
|
var element = _iterator__ex2g4s.v();
|
|
533
|
-
if (equals(element.
|
|
551
|
+
if (equals(element.w42_1, name, true) && equals(element.x42_1, value, true)) {
|
|
534
552
|
tmp$ret$2 = true;
|
|
535
553
|
break $l$block_0;
|
|
536
554
|
}
|
|
@@ -543,34 +561,34 @@ function hasParameter($this, name, value) {
|
|
|
543
561
|
}
|
|
544
562
|
return tmp;
|
|
545
563
|
}
|
|
546
|
-
function
|
|
547
|
-
|
|
548
|
-
this.
|
|
564
|
+
function Companion_0() {
|
|
565
|
+
Companion_instance_0 = this;
|
|
566
|
+
this.z42_1 = ContentType_init_$Create$('*', '*');
|
|
549
567
|
}
|
|
550
|
-
protoOf(
|
|
568
|
+
protoOf(Companion_0).ko = function (value) {
|
|
551
569
|
if (isBlank(value))
|
|
552
|
-
return this.
|
|
570
|
+
return this.z42_1;
|
|
553
571
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
554
572
|
var headerValue = last(parseHeaderValue(value));
|
|
555
|
-
var tmp0 = headerValue.
|
|
556
|
-
var parameters = headerValue.
|
|
573
|
+
var tmp0 = headerValue.a43_1;
|
|
574
|
+
var parameters = headerValue.b43_1;
|
|
557
575
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
558
576
|
if (slash === -1) {
|
|
559
577
|
// Inline function 'kotlin.text.trim' call
|
|
560
|
-
if (
|
|
561
|
-
return
|
|
578
|
+
if (toString_0(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
579
|
+
return Companion_getInstance_0().z42_1;
|
|
562
580
|
throw new BadContentTypeFormatException(value);
|
|
563
581
|
}
|
|
564
582
|
// Inline function 'kotlin.text.trim' call
|
|
565
583
|
var this_0 = take(tmp0, slash);
|
|
566
|
-
var type =
|
|
584
|
+
var type = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
567
585
|
// Inline function 'kotlin.text.isEmpty' call
|
|
568
586
|
if (charSequenceLength(type) === 0) {
|
|
569
587
|
throw new BadContentTypeFormatException(value);
|
|
570
588
|
}
|
|
571
589
|
// Inline function 'kotlin.text.trim' call
|
|
572
590
|
var this_1 = substring_0(tmp0, slash + 1 | 0);
|
|
573
|
-
var subtype =
|
|
591
|
+
var subtype = toString_0(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
574
592
|
if (contains(type, _Char___init__impl__6a9atx(32)) || contains(subtype, _Char___init__impl__6a9atx(32))) {
|
|
575
593
|
throw new BadContentTypeFormatException(value);
|
|
576
594
|
}
|
|
@@ -586,38 +604,38 @@ protoOf(Companion).ho = function (value) {
|
|
|
586
604
|
}
|
|
587
605
|
return ContentType_init_$Create$(type, subtype, parameters);
|
|
588
606
|
};
|
|
589
|
-
var
|
|
590
|
-
function
|
|
591
|
-
if (
|
|
592
|
-
new
|
|
593
|
-
return
|
|
607
|
+
var Companion_instance_0;
|
|
608
|
+
function Companion_getInstance_0() {
|
|
609
|
+
if (Companion_instance_0 == null)
|
|
610
|
+
new Companion_0();
|
|
611
|
+
return Companion_instance_0;
|
|
594
612
|
}
|
|
595
613
|
function Application() {
|
|
596
614
|
Application_instance = this;
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
615
|
+
this.d43_1 = 'application';
|
|
616
|
+
this.e43_1 = ContentType_init_$Create$('application', '*');
|
|
617
|
+
this.f43_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
618
|
+
this.g43_1 = ContentType_init_$Create$('application', 'cbor');
|
|
619
|
+
this.h43_1 = ContentType_init_$Create$('application', 'json');
|
|
620
|
+
this.i43_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
621
|
+
this.j43_1 = ContentType_init_$Create$('application', 'javascript');
|
|
622
|
+
this.k43_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
623
|
+
this.l43_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
624
|
+
this.m43_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
625
|
+
this.n43_1 = ContentType_init_$Create$('application', 'xml');
|
|
626
|
+
this.o43_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
627
|
+
this.p43_1 = ContentType_init_$Create$('application', 'yaml');
|
|
628
|
+
this.q43_1 = ContentType_init_$Create$('application', 'zip');
|
|
629
|
+
this.r43_1 = ContentType_init_$Create$('application', 'gzip');
|
|
630
|
+
this.s43_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
631
|
+
this.t43_1 = ContentType_init_$Create$('application', 'pdf');
|
|
632
|
+
this.u43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
633
|
+
this.v43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
634
|
+
this.w43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
635
|
+
this.x43_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
636
|
+
this.y43_1 = ContentType_init_$Create$('application', 'wasm');
|
|
637
|
+
this.z43_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
638
|
+
this.a44_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
621
639
|
}
|
|
622
640
|
var Application_instance;
|
|
623
641
|
function Application_getInstance() {
|
|
@@ -627,17 +645,17 @@ function Application_getInstance() {
|
|
|
627
645
|
}
|
|
628
646
|
function MultiPart() {
|
|
629
647
|
MultiPart_instance = this;
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
}
|
|
640
|
-
protoOf(MultiPart).
|
|
648
|
+
this.b44_1 = 'multipart';
|
|
649
|
+
this.c44_1 = ContentType_init_$Create$('multipart', '*');
|
|
650
|
+
this.d44_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
651
|
+
this.e44_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
652
|
+
this.f44_1 = ContentType_init_$Create$('multipart', 'related');
|
|
653
|
+
this.g44_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
654
|
+
this.h44_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
655
|
+
this.i44_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
656
|
+
this.j44_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
657
|
+
}
|
|
658
|
+
protoOf(MultiPart).k44 = function (contentType) {
|
|
641
659
|
return startsWith(contentType, 'multipart/', true);
|
|
642
660
|
};
|
|
643
661
|
var MultiPart_instance;
|
|
@@ -648,16 +666,17 @@ function MultiPart_getInstance() {
|
|
|
648
666
|
}
|
|
649
667
|
function Text() {
|
|
650
668
|
Text_instance = this;
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
669
|
+
this.l44_1 = 'text';
|
|
670
|
+
this.m44_1 = ContentType_init_$Create$('text', '*');
|
|
671
|
+
this.n44_1 = ContentType_init_$Create$('text', 'plain');
|
|
672
|
+
this.o44_1 = ContentType_init_$Create$('text', 'css');
|
|
673
|
+
this.p44_1 = ContentType_init_$Create$('text', 'csv');
|
|
674
|
+
this.q44_1 = ContentType_init_$Create$('text', 'html');
|
|
675
|
+
this.r44_1 = ContentType_init_$Create$('text', 'javascript');
|
|
676
|
+
this.s44_1 = ContentType_init_$Create$('text', 'markdown');
|
|
677
|
+
this.t44_1 = ContentType_init_$Create$('text', 'vcard');
|
|
678
|
+
this.u44_1 = ContentType_init_$Create$('text', 'xml');
|
|
679
|
+
this.v44_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
661
680
|
}
|
|
662
681
|
var Text_instance;
|
|
663
682
|
function Text_getInstance() {
|
|
@@ -666,36 +685,36 @@ function Text_getInstance() {
|
|
|
666
685
|
return Text_instance;
|
|
667
686
|
}
|
|
668
687
|
function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
669
|
-
|
|
688
|
+
Companion_getInstance_0();
|
|
670
689
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
671
690
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
691
|
+
this.y44_1 = contentType;
|
|
692
|
+
this.z44_1 = contentSubtype;
|
|
674
693
|
}
|
|
675
|
-
protoOf(ContentType).
|
|
694
|
+
protoOf(ContentType).a45 = function (name, value) {
|
|
676
695
|
if (hasParameter(this, name, value))
|
|
677
696
|
return this;
|
|
678
|
-
return new ContentType(this.
|
|
697
|
+
return new ContentType(this.y44_1, this.z44_1, this.u42_1, plus_1(this.v42_1, HeaderValueParam_init_$Create$(name, value)));
|
|
679
698
|
};
|
|
680
|
-
protoOf(ContentType).
|
|
681
|
-
if (!(pattern.
|
|
699
|
+
protoOf(ContentType).b45 = function (pattern) {
|
|
700
|
+
if (!(pattern.y44_1 === '*') && !equals(pattern.y44_1, this.y44_1, true)) {
|
|
682
701
|
return false;
|
|
683
702
|
}
|
|
684
|
-
if (!(pattern.
|
|
703
|
+
if (!(pattern.z44_1 === '*') && !equals(pattern.z44_1, this.z44_1, true)) {
|
|
685
704
|
return false;
|
|
686
705
|
}
|
|
687
|
-
var _iterator__ex2g4s = pattern.
|
|
706
|
+
var _iterator__ex2g4s = pattern.v42_1.t();
|
|
688
707
|
while (_iterator__ex2g4s.u()) {
|
|
689
708
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
690
|
-
var patternName = _destruct__k2r9zo.
|
|
691
|
-
var patternValue = _destruct__k2r9zo.
|
|
709
|
+
var patternName = _destruct__k2r9zo.yg();
|
|
710
|
+
var patternValue = _destruct__k2r9zo.zg();
|
|
692
711
|
var tmp;
|
|
693
712
|
if (patternName === '*') {
|
|
694
713
|
var tmp_0;
|
|
695
714
|
if (patternValue === '*') {
|
|
696
715
|
tmp_0 = true;
|
|
697
716
|
} else {
|
|
698
|
-
var tmp0 = this.
|
|
717
|
+
var tmp0 = this.v42_1;
|
|
699
718
|
var tmp$ret$0;
|
|
700
719
|
$l$block_0: {
|
|
701
720
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -712,7 +731,7 @@ protoOf(ContentType).z44 = function (pattern) {
|
|
|
712
731
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
713
732
|
while (_iterator__ex2g4s_0.u()) {
|
|
714
733
|
var element = _iterator__ex2g4s_0.v();
|
|
715
|
-
if (equals(element.
|
|
734
|
+
if (equals(element.x42_1, patternValue, true)) {
|
|
716
735
|
tmp$ret$0 = true;
|
|
717
736
|
break $l$block_0;
|
|
718
737
|
}
|
|
@@ -723,7 +742,7 @@ protoOf(ContentType).z44 = function (pattern) {
|
|
|
723
742
|
}
|
|
724
743
|
tmp = tmp_0;
|
|
725
744
|
} else {
|
|
726
|
-
var value = this.
|
|
745
|
+
var value = this.c45(patternName);
|
|
727
746
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
728
747
|
}
|
|
729
748
|
var matches = tmp;
|
|
@@ -738,17 +757,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
738
757
|
var tmp_0;
|
|
739
758
|
var tmp_1;
|
|
740
759
|
if (other instanceof ContentType) {
|
|
741
|
-
tmp_1 = equals(this.
|
|
760
|
+
tmp_1 = equals(this.y44_1, other.y44_1, true);
|
|
742
761
|
} else {
|
|
743
762
|
tmp_1 = false;
|
|
744
763
|
}
|
|
745
764
|
if (tmp_1) {
|
|
746
|
-
tmp_0 = equals(this.
|
|
765
|
+
tmp_0 = equals(this.z44_1, other.z44_1, true);
|
|
747
766
|
} else {
|
|
748
767
|
tmp_0 = false;
|
|
749
768
|
}
|
|
750
769
|
if (tmp_0) {
|
|
751
|
-
tmp = equals_0(this.
|
|
770
|
+
tmp = equals_0(this.v42_1, other.v42_1);
|
|
752
771
|
} else {
|
|
753
772
|
tmp = false;
|
|
754
773
|
}
|
|
@@ -757,20 +776,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
757
776
|
protoOf(ContentType).hashCode = function () {
|
|
758
777
|
// Inline function 'kotlin.text.lowercase' call
|
|
759
778
|
// Inline function 'kotlin.js.asDynamic' call
|
|
760
|
-
var tmp$ret$0 = this.
|
|
779
|
+
var tmp$ret$0 = this.y44_1.toLowerCase();
|
|
761
780
|
var result = getStringHashCode(tmp$ret$0);
|
|
762
781
|
var tmp = result;
|
|
763
782
|
var tmp_0 = imul(31, result);
|
|
764
783
|
// Inline function 'kotlin.text.lowercase' call
|
|
765
784
|
// Inline function 'kotlin.js.asDynamic' call
|
|
766
|
-
var tmp$ret$2 = this.
|
|
785
|
+
var tmp$ret$2 = this.z44_1.toLowerCase();
|
|
767
786
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
768
|
-
result = result + imul(31, hashCode(this.
|
|
787
|
+
result = result + imul(31, hashCode(this.v42_1)) | 0;
|
|
769
788
|
return result;
|
|
770
789
|
};
|
|
771
790
|
function charset(_this__u8e3s4) {
|
|
772
791
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
773
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
792
|
+
var tmp0_safe_receiver = _this__u8e3s4.c45('charset');
|
|
774
793
|
var tmp;
|
|
775
794
|
if (tmp0_safe_receiver == null) {
|
|
776
795
|
tmp = null;
|
|
@@ -793,14 +812,14 @@ function charset(_this__u8e3s4) {
|
|
|
793
812
|
}
|
|
794
813
|
return tmp;
|
|
795
814
|
}
|
|
796
|
-
function withCharset(_this__u8e3s4, charset) {
|
|
797
|
-
_init_properties_ContentTypes_kt__i9dj34();
|
|
798
|
-
return _this__u8e3s4.y44('charset', get_name(charset));
|
|
799
|
-
}
|
|
800
815
|
function BadContentTypeFormatException(value) {
|
|
801
816
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
802
817
|
captureStack(this, BadContentTypeFormatException);
|
|
803
818
|
}
|
|
819
|
+
function withCharset(_this__u8e3s4, charset) {
|
|
820
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
821
|
+
return _this__u8e3s4.a45('charset', get_name(charset));
|
|
822
|
+
}
|
|
804
823
|
var properties_initialized_ContentTypes_kt_1k2nnm;
|
|
805
824
|
function _init_properties_ContentTypes_kt__i9dj34() {
|
|
806
825
|
if (!properties_initialized_ContentTypes_kt_1k2nnm) {
|
|
@@ -813,27 +832,27 @@ function get_HeaderFieldValueSeparators() {
|
|
|
813
832
|
return HeaderFieldValueSeparators;
|
|
814
833
|
}
|
|
815
834
|
var HeaderFieldValueSeparators;
|
|
816
|
-
function
|
|
835
|
+
function Companion_1() {
|
|
817
836
|
}
|
|
818
|
-
var
|
|
819
|
-
function
|
|
820
|
-
return
|
|
837
|
+
var Companion_instance_1;
|
|
838
|
+
function Companion_getInstance_1() {
|
|
839
|
+
return Companion_instance_1;
|
|
821
840
|
}
|
|
822
841
|
function HeaderValueWithParameters(content, parameters) {
|
|
823
842
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
843
|
+
this.u42_1 = content;
|
|
844
|
+
this.v42_1 = parameters;
|
|
826
845
|
}
|
|
827
|
-
protoOf(HeaderValueWithParameters).
|
|
846
|
+
protoOf(HeaderValueWithParameters).c45 = function (name) {
|
|
828
847
|
var inductionVariable = 0;
|
|
829
|
-
var last = get_lastIndex(this.
|
|
848
|
+
var last = get_lastIndex(this.v42_1);
|
|
830
849
|
if (inductionVariable <= last)
|
|
831
850
|
do {
|
|
832
851
|
var index = inductionVariable;
|
|
833
852
|
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
-
var parameter = this.
|
|
835
|
-
if (equals(parameter.
|
|
836
|
-
return parameter.
|
|
853
|
+
var parameter = this.v42_1.f1(index);
|
|
854
|
+
if (equals(parameter.w42_1, name, true)) {
|
|
855
|
+
return parameter.x42_1;
|
|
837
856
|
}
|
|
838
857
|
}
|
|
839
858
|
while (!(index === last));
|
|
@@ -841,34 +860,34 @@ protoOf(HeaderValueWithParameters).a45 = function (name) {
|
|
|
841
860
|
};
|
|
842
861
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
843
862
|
var tmp;
|
|
844
|
-
if (this.
|
|
845
|
-
tmp = this.
|
|
863
|
+
if (this.v42_1.r()) {
|
|
864
|
+
tmp = this.u42_1;
|
|
846
865
|
} else {
|
|
847
|
-
var tmp_0 = this.
|
|
866
|
+
var tmp_0 = this.u42_1.length;
|
|
848
867
|
// Inline function 'kotlin.collections.sumOf' call
|
|
849
868
|
var sum = 0;
|
|
850
|
-
var _iterator__ex2g4s = this.
|
|
869
|
+
var _iterator__ex2g4s = this.v42_1.t();
|
|
851
870
|
while (_iterator__ex2g4s.u()) {
|
|
852
871
|
var element = _iterator__ex2g4s.v();
|
|
853
872
|
var tmp_1 = sum;
|
|
854
|
-
sum = tmp_1 + ((element.
|
|
873
|
+
sum = tmp_1 + ((element.w42_1.length + element.x42_1.length | 0) + 3 | 0) | 0;
|
|
855
874
|
}
|
|
856
875
|
var size = tmp_0 + sum | 0;
|
|
857
876
|
// Inline function 'kotlin.apply' call
|
|
858
|
-
var this_0 = StringBuilder_init_$Create$
|
|
859
|
-
this_0.q(this.
|
|
877
|
+
var this_0 = StringBuilder_init_$Create$(size);
|
|
878
|
+
this_0.q(this.u42_1);
|
|
860
879
|
var inductionVariable = 0;
|
|
861
|
-
var last = get_lastIndex(this.
|
|
880
|
+
var last = get_lastIndex(this.v42_1);
|
|
862
881
|
if (inductionVariable <= last)
|
|
863
882
|
do {
|
|
864
883
|
var index = inductionVariable;
|
|
865
884
|
inductionVariable = inductionVariable + 1 | 0;
|
|
866
|
-
var element_0 = this.
|
|
885
|
+
var element_0 = this.v42_1.f1(index);
|
|
867
886
|
this_0.q('; ');
|
|
868
|
-
this_0.q(element_0.
|
|
887
|
+
this_0.q(element_0.w42_1);
|
|
869
888
|
this_0.q('=');
|
|
870
889
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
871
|
-
var this_1 = element_0.
|
|
890
|
+
var this_1 = element_0.x42_1;
|
|
872
891
|
if (needQuotes(this_1))
|
|
873
892
|
this_0.q(quote(this_1));
|
|
874
893
|
else
|
|
@@ -891,7 +910,7 @@ function needQuotes(_this__u8e3s4) {
|
|
|
891
910
|
while (inductionVariable < last) {
|
|
892
911
|
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
893
912
|
inductionVariable = inductionVariable + 1 | 0;
|
|
894
|
-
if (get_HeaderFieldValueSeparators().
|
|
913
|
+
if (get_HeaderFieldValueSeparators().gk(element))
|
|
895
914
|
return true;
|
|
896
915
|
}
|
|
897
916
|
return false;
|
|
@@ -900,7 +919,7 @@ function quote(_this__u8e3s4) {
|
|
|
900
919
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
901
920
|
// Inline function 'kotlin.text.buildString' call
|
|
902
921
|
// Inline function 'kotlin.apply' call
|
|
903
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
922
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
904
923
|
quoteTo(_this__u8e3s4, this_0);
|
|
905
924
|
return this_0.toString();
|
|
906
925
|
}
|
|
@@ -960,63 +979,63 @@ var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
|
960
979
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
961
980
|
if (!properties_initialized_HeaderValueWithParameters_kt_yu5xg) {
|
|
962
981
|
properties_initialized_HeaderValueWithParameters_kt_yu5xg = true;
|
|
963
|
-
HeaderFieldValueSeparators =
|
|
982
|
+
HeaderFieldValueSeparators = Companion_instance.r42('()<>@,;:\\"/[]?={} \t\n\r');
|
|
964
983
|
}
|
|
965
984
|
}
|
|
966
985
|
function HeadersBuilder(size) {
|
|
967
986
|
size = size === VOID ? 8 : size;
|
|
968
987
|
StringValuesBuilderImpl.call(this, true, size);
|
|
969
988
|
}
|
|
970
|
-
protoOf(HeadersBuilder).
|
|
971
|
-
return new HeadersImpl(this.
|
|
989
|
+
protoOf(HeadersBuilder).f45 = function () {
|
|
990
|
+
return new HeadersImpl(this.o3x_1);
|
|
972
991
|
};
|
|
973
|
-
protoOf(HeadersBuilder).
|
|
974
|
-
protoOf(StringValuesBuilderImpl).
|
|
975
|
-
HttpHeaders_getInstance().
|
|
992
|
+
protoOf(HeadersBuilder).p3x = function (name) {
|
|
993
|
+
protoOf(StringValuesBuilderImpl).p3x.call(this, name);
|
|
994
|
+
HttpHeaders_getInstance().f49(name);
|
|
976
995
|
};
|
|
977
|
-
protoOf(HeadersBuilder).
|
|
978
|
-
protoOf(StringValuesBuilderImpl).
|
|
979
|
-
HttpHeaders_getInstance().
|
|
996
|
+
protoOf(HeadersBuilder).u3x = function (value) {
|
|
997
|
+
protoOf(StringValuesBuilderImpl).u3x.call(this, value);
|
|
998
|
+
HttpHeaders_getInstance().g49(value);
|
|
980
999
|
};
|
|
981
|
-
function
|
|
982
|
-
|
|
983
|
-
this.
|
|
1000
|
+
function Companion_2() {
|
|
1001
|
+
Companion_instance_2 = this;
|
|
1002
|
+
this.h49_1 = EmptyHeaders_instance;
|
|
984
1003
|
}
|
|
985
|
-
var
|
|
986
|
-
function
|
|
987
|
-
if (
|
|
988
|
-
new
|
|
989
|
-
return
|
|
1004
|
+
var Companion_instance_2;
|
|
1005
|
+
function Companion_getInstance_2() {
|
|
1006
|
+
if (Companion_instance_2 == null)
|
|
1007
|
+
new Companion_2();
|
|
1008
|
+
return Companion_instance_2;
|
|
990
1009
|
}
|
|
991
1010
|
function headersOf(name, value) {
|
|
992
|
-
return new HeadersSingleImpl(name,
|
|
1011
|
+
return new HeadersSingleImpl(name, listOf(value));
|
|
993
1012
|
}
|
|
994
1013
|
function HeadersImpl(values) {
|
|
995
1014
|
values = values === VOID ? emptyMap() : values;
|
|
996
1015
|
StringValuesImpl.call(this, true, values);
|
|
997
1016
|
}
|
|
998
1017
|
protoOf(HeadersImpl).toString = function () {
|
|
999
|
-
return 'Headers ' +
|
|
1018
|
+
return 'Headers ' + toString_0(this.l3x());
|
|
1000
1019
|
};
|
|
1001
1020
|
function EmptyHeaders() {
|
|
1002
1021
|
}
|
|
1003
|
-
protoOf(EmptyHeaders).
|
|
1022
|
+
protoOf(EmptyHeaders).q3x = function () {
|
|
1004
1023
|
return true;
|
|
1005
1024
|
};
|
|
1006
|
-
protoOf(EmptyHeaders).
|
|
1025
|
+
protoOf(EmptyHeaders).r3x = function (name) {
|
|
1007
1026
|
return null;
|
|
1008
1027
|
};
|
|
1009
|
-
protoOf(EmptyHeaders).
|
|
1028
|
+
protoOf(EmptyHeaders).s3x = function () {
|
|
1010
1029
|
return emptySet();
|
|
1011
1030
|
};
|
|
1012
|
-
protoOf(EmptyHeaders).
|
|
1031
|
+
protoOf(EmptyHeaders).l3x = function () {
|
|
1013
1032
|
return emptySet();
|
|
1014
1033
|
};
|
|
1015
1034
|
protoOf(EmptyHeaders).r = function () {
|
|
1016
1035
|
return true;
|
|
1017
1036
|
};
|
|
1018
1037
|
protoOf(EmptyHeaders).toString = function () {
|
|
1019
|
-
return 'Headers ' +
|
|
1038
|
+
return 'Headers ' + toString_0(this.l3x());
|
|
1020
1039
|
};
|
|
1021
1040
|
var EmptyHeaders_instance;
|
|
1022
1041
|
function EmptyHeaders_getInstance() {
|
|
@@ -1026,70 +1045,21 @@ function HeadersSingleImpl(name, values) {
|
|
|
1026
1045
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1027
1046
|
}
|
|
1028
1047
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1029
|
-
return 'Headers ' +
|
|
1030
|
-
};
|
|
1031
|
-
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1032
|
-
HeaderValueParam.call($this, name, value, false);
|
|
1033
|
-
return $this;
|
|
1034
|
-
}
|
|
1035
|
-
function HeaderValueParam_init_$Create$(name, value) {
|
|
1036
|
-
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1037
|
-
}
|
|
1038
|
-
function HeaderValueParam(name, value, escapeValue) {
|
|
1039
|
-
this.v42_1 = name;
|
|
1040
|
-
this.w42_1 = value;
|
|
1041
|
-
this.x42_1 = escapeValue;
|
|
1042
|
-
}
|
|
1043
|
-
protoOf(HeaderValueParam).equals = function (other) {
|
|
1044
|
-
var tmp;
|
|
1045
|
-
var tmp_0;
|
|
1046
|
-
if (other instanceof HeaderValueParam) {
|
|
1047
|
-
tmp_0 = equals(other.v42_1, this.v42_1, true);
|
|
1048
|
-
} else {
|
|
1049
|
-
tmp_0 = false;
|
|
1050
|
-
}
|
|
1051
|
-
if (tmp_0) {
|
|
1052
|
-
tmp = equals(other.w42_1, this.w42_1, true);
|
|
1053
|
-
} else {
|
|
1054
|
-
tmp = false;
|
|
1055
|
-
}
|
|
1056
|
-
return tmp;
|
|
1057
|
-
};
|
|
1058
|
-
protoOf(HeaderValueParam).hashCode = function () {
|
|
1059
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1060
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1061
|
-
var tmp$ret$0 = this.v42_1.toLowerCase();
|
|
1062
|
-
var result = getStringHashCode(tmp$ret$0);
|
|
1063
|
-
var tmp = result;
|
|
1064
|
-
var tmp_0 = imul(31, result);
|
|
1065
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1066
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1067
|
-
var tmp$ret$2 = this.w42_1.toLowerCase();
|
|
1068
|
-
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1069
|
-
return result;
|
|
1070
|
-
};
|
|
1071
|
-
protoOf(HeaderValueParam).xg = function () {
|
|
1072
|
-
return this.v42_1;
|
|
1073
|
-
};
|
|
1074
|
-
protoOf(HeaderValueParam).yg = function () {
|
|
1075
|
-
return this.w42_1;
|
|
1076
|
-
};
|
|
1077
|
-
protoOf(HeaderValueParam).toString = function () {
|
|
1078
|
-
return 'HeaderValueParam(name=' + this.v42_1 + ', value=' + this.w42_1 + ', escapeValue=' + this.x42_1 + ')';
|
|
1048
|
+
return 'Headers ' + toString_0(this.l3x());
|
|
1079
1049
|
};
|
|
1080
1050
|
function HeaderValue(value, params) {
|
|
1081
1051
|
params = params === VOID ? emptyList() : params;
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1052
|
+
this.a43_1 = value;
|
|
1053
|
+
this.b43_1 = params;
|
|
1084
1054
|
var tmp = this;
|
|
1085
|
-
var tmp0 = this.
|
|
1055
|
+
var tmp0 = this.b43_1;
|
|
1086
1056
|
var tmp$ret$0;
|
|
1087
1057
|
$l$block: {
|
|
1088
1058
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1089
1059
|
var _iterator__ex2g4s = tmp0.t();
|
|
1090
1060
|
while (_iterator__ex2g4s.u()) {
|
|
1091
1061
|
var element = _iterator__ex2g4s.v();
|
|
1092
|
-
if (element.
|
|
1062
|
+
if (equals(element.w42_1, 'q', true)) {
|
|
1093
1063
|
tmp$ret$0 = element;
|
|
1094
1064
|
break $l$block;
|
|
1095
1065
|
}
|
|
@@ -1097,7 +1067,7 @@ function HeaderValue(value, params) {
|
|
|
1097
1067
|
tmp$ret$0 = null;
|
|
1098
1068
|
}
|
|
1099
1069
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
1100
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1070
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x42_1;
|
|
1101
1071
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1102
1072
|
var tmp_0;
|
|
1103
1073
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1113,14 +1083,14 @@ function HeaderValue(value, params) {
|
|
|
1113
1083
|
tmp_0 = tmp_1;
|
|
1114
1084
|
}
|
|
1115
1085
|
var tmp3_elvis_lhs = tmp_0;
|
|
1116
|
-
tmp.
|
|
1086
|
+
tmp.c43_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1117
1087
|
}
|
|
1118
1088
|
protoOf(HeaderValue).toString = function () {
|
|
1119
|
-
return 'HeaderValue(value=' + this.
|
|
1089
|
+
return 'HeaderValue(value=' + this.a43_1 + ', params=' + toString_0(this.b43_1) + ')';
|
|
1120
1090
|
};
|
|
1121
1091
|
protoOf(HeaderValue).hashCode = function () {
|
|
1122
|
-
var result = getStringHashCode(this.
|
|
1123
|
-
result = imul(result, 31) + hashCode(this.
|
|
1092
|
+
var result = getStringHashCode(this.a43_1);
|
|
1093
|
+
result = imul(result, 31) + hashCode(this.b43_1) | 0;
|
|
1124
1094
|
return result;
|
|
1125
1095
|
};
|
|
1126
1096
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1128,15 +1098,64 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1128
1098
|
return true;
|
|
1129
1099
|
if (!(other instanceof HeaderValue))
|
|
1130
1100
|
return false;
|
|
1131
|
-
if (!(this.
|
|
1101
|
+
if (!(this.a43_1 === other.a43_1))
|
|
1132
1102
|
return false;
|
|
1133
|
-
if (!equals_0(this.
|
|
1103
|
+
if (!equals_0(this.b43_1, other.b43_1))
|
|
1134
1104
|
return false;
|
|
1135
1105
|
return true;
|
|
1136
1106
|
};
|
|
1137
1107
|
function parseHeaderValue(text) {
|
|
1138
1108
|
return parseHeaderValue_0(text, false);
|
|
1139
1109
|
}
|
|
1110
|
+
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1111
|
+
HeaderValueParam.call($this, name, value, false);
|
|
1112
|
+
return $this;
|
|
1113
|
+
}
|
|
1114
|
+
function HeaderValueParam_init_$Create$(name, value) {
|
|
1115
|
+
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1116
|
+
}
|
|
1117
|
+
function HeaderValueParam(name, value, escapeValue) {
|
|
1118
|
+
this.w42_1 = name;
|
|
1119
|
+
this.x42_1 = value;
|
|
1120
|
+
this.y42_1 = escapeValue;
|
|
1121
|
+
}
|
|
1122
|
+
protoOf(HeaderValueParam).equals = function (other) {
|
|
1123
|
+
var tmp;
|
|
1124
|
+
var tmp_0;
|
|
1125
|
+
if (other instanceof HeaderValueParam) {
|
|
1126
|
+
tmp_0 = equals(other.w42_1, this.w42_1, true);
|
|
1127
|
+
} else {
|
|
1128
|
+
tmp_0 = false;
|
|
1129
|
+
}
|
|
1130
|
+
if (tmp_0) {
|
|
1131
|
+
tmp = equals(other.x42_1, this.x42_1, true);
|
|
1132
|
+
} else {
|
|
1133
|
+
tmp = false;
|
|
1134
|
+
}
|
|
1135
|
+
return tmp;
|
|
1136
|
+
};
|
|
1137
|
+
protoOf(HeaderValueParam).hashCode = function () {
|
|
1138
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1139
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1140
|
+
var tmp$ret$0 = this.w42_1.toLowerCase();
|
|
1141
|
+
var result = getStringHashCode(tmp$ret$0);
|
|
1142
|
+
var tmp = result;
|
|
1143
|
+
var tmp_0 = imul(31, result);
|
|
1144
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1145
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1146
|
+
var tmp$ret$2 = this.x42_1.toLowerCase();
|
|
1147
|
+
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1148
|
+
return result;
|
|
1149
|
+
};
|
|
1150
|
+
protoOf(HeaderValueParam).yg = function () {
|
|
1151
|
+
return this.w42_1;
|
|
1152
|
+
};
|
|
1153
|
+
protoOf(HeaderValueParam).zg = function () {
|
|
1154
|
+
return this.x42_1;
|
|
1155
|
+
};
|
|
1156
|
+
protoOf(HeaderValueParam).toString = function () {
|
|
1157
|
+
return 'HeaderValueParam(name=' + this.w42_1 + ', value=' + this.x42_1 + ', escapeValue=' + this.y42_1 + ')';
|
|
1158
|
+
};
|
|
1140
1159
|
function parseHeaderValue_0(text, parametersOnly) {
|
|
1141
1160
|
if (text == null) {
|
|
1142
1161
|
return emptyList();
|
|
@@ -1181,12 +1200,12 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1181
1200
|
return position;
|
|
1182
1201
|
}
|
|
1183
1202
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1184
|
-
return _this__u8e3s4.
|
|
1203
|
+
return _this__u8e3s4.fo() ? _this__u8e3s4.p1() : emptyList();
|
|
1185
1204
|
}
|
|
1186
1205
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1187
1206
|
// Inline function 'kotlin.text.trim' call
|
|
1188
1207
|
var this_0 = substring(_this__u8e3s4, start, end);
|
|
1189
|
-
return
|
|
1208
|
+
return toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
1190
1209
|
}
|
|
1191
1210
|
function parseHeaderValueParameter(text, start, parameters) {
|
|
1192
1211
|
var position = start;
|
|
@@ -1194,8 +1213,8 @@ function parseHeaderValueParameter(text, start, parameters) {
|
|
|
1194
1213
|
var tmp0_subject = charCodeAt(text, position);
|
|
1195
1214
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1196
1215
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1197
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1198
|
-
var paramValue = _destruct__k2r9zo.
|
|
1216
|
+
var paramEnd = _destruct__k2r9zo.yg();
|
|
1217
|
+
var paramValue = _destruct__k2r9zo.zg();
|
|
1199
1218
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1200
1219
|
return paramEnd;
|
|
1201
1220
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1228,12 +1247,12 @@ function parseHeaderValueParameterValue(value, start) {
|
|
|
1228
1247
|
}
|
|
1229
1248
|
function parseHeaderValueParameterValueQuoted(value, start) {
|
|
1230
1249
|
var position = start;
|
|
1231
|
-
var builder = StringBuilder_init_$Create$();
|
|
1250
|
+
var builder = StringBuilder_init_$Create$_0();
|
|
1232
1251
|
loop: while (position <= get_lastIndex_0(value)) {
|
|
1233
1252
|
var currentChar = charCodeAt(value, position);
|
|
1234
1253
|
if (currentChar === _Char___init__impl__6a9atx(34) && nextIsDelimiterOrEnd(value, position)) {
|
|
1235
1254
|
return to(position + 1 | 0, builder.toString());
|
|
1236
|
-
} else if (currentChar === _Char___init__impl__6a9atx(92) && position <
|
|
1255
|
+
} else if (currentChar === _Char___init__impl__6a9atx(92) && position < get_lastIndex_0(value)) {
|
|
1237
1256
|
builder.s(charCodeAt(value, position + 1 | 0));
|
|
1238
1257
|
position = position + 2 | 0;
|
|
1239
1258
|
continue loop;
|
|
@@ -1241,12 +1260,7 @@ function parseHeaderValueParameterValueQuoted(value, start) {
|
|
|
1241
1260
|
builder.s(currentChar);
|
|
1242
1261
|
position = position + 1 | 0;
|
|
1243
1262
|
}
|
|
1244
|
-
|
|
1245
|
-
var tmp0 = _Char___init__impl__6a9atx(34);
|
|
1246
|
-
// Inline function 'kotlin.text.plus' call
|
|
1247
|
-
var other = builder.toString();
|
|
1248
|
-
var tmp$ret$0 = toString_0(tmp0) + other;
|
|
1249
|
-
return to(tmp, tmp$ret$0);
|
|
1263
|
+
return to(position, substring(value, start - 1 | 0, position));
|
|
1250
1264
|
}
|
|
1251
1265
|
function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
1252
1266
|
var position = start + 1 | 0;
|
|
@@ -1257,11 +1271,11 @@ function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
|
1257
1271
|
}
|
|
1258
1272
|
function parseHeaderValue$lambda() {
|
|
1259
1273
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1260
|
-
return ArrayList_init_$Create$
|
|
1274
|
+
return ArrayList_init_$Create$();
|
|
1261
1275
|
}
|
|
1262
1276
|
function parseHeaderValueItem$lambda() {
|
|
1263
1277
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1264
|
-
return ArrayList_init_$Create$
|
|
1278
|
+
return ArrayList_init_$Create$();
|
|
1265
1279
|
}
|
|
1266
1280
|
function parseHeaderValueParameter$addParam($parameters, text, start, end, value) {
|
|
1267
1281
|
var name = subtrim(text, start, end);
|
|
@@ -1271,117 +1285,122 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
|
|
|
1271
1285
|
}
|
|
1272
1286
|
$parameters.p1().b1(HeaderValueParam_init_$Create$(name, value));
|
|
1273
1287
|
}
|
|
1288
|
+
function get_ILLEGAL_HEADER_NAME_CHARS() {
|
|
1289
|
+
_init_properties_HttpHeaders_kt__8vtb1o();
|
|
1290
|
+
return ILLEGAL_HEADER_NAME_CHARS;
|
|
1291
|
+
}
|
|
1292
|
+
var ILLEGAL_HEADER_NAME_CHARS;
|
|
1274
1293
|
function HttpHeaders() {
|
|
1275
1294
|
HttpHeaders_instance = this;
|
|
1276
|
-
this.
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1291
|
-
this.
|
|
1292
|
-
this.
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1295
|
+
this.g45_1 = 'Accept';
|
|
1296
|
+
this.h45_1 = 'Accept-Charset';
|
|
1297
|
+
this.i45_1 = 'Accept-Encoding';
|
|
1298
|
+
this.j45_1 = 'Accept-Language';
|
|
1299
|
+
this.k45_1 = 'Accept-Ranges';
|
|
1300
|
+
this.l45_1 = 'Age';
|
|
1301
|
+
this.m45_1 = 'Allow';
|
|
1302
|
+
this.n45_1 = 'ALPN';
|
|
1303
|
+
this.o45_1 = 'Authentication-Info';
|
|
1304
|
+
this.p45_1 = 'Authorization';
|
|
1305
|
+
this.q45_1 = 'Cache-Control';
|
|
1306
|
+
this.r45_1 = 'Connection';
|
|
1307
|
+
this.s45_1 = 'Content-Disposition';
|
|
1308
|
+
this.t45_1 = 'Content-Encoding';
|
|
1309
|
+
this.u45_1 = 'Content-Language';
|
|
1310
|
+
this.v45_1 = 'Content-Length';
|
|
1311
|
+
this.w45_1 = 'Content-Location';
|
|
1312
|
+
this.x45_1 = 'Content-Range';
|
|
1313
|
+
this.y45_1 = 'Content-Type';
|
|
1314
|
+
this.z45_1 = 'Cookie';
|
|
1315
|
+
this.a46_1 = 'DASL';
|
|
1316
|
+
this.b46_1 = 'Date';
|
|
1317
|
+
this.c46_1 = 'DAV';
|
|
1318
|
+
this.d46_1 = 'Depth';
|
|
1319
|
+
this.e46_1 = 'Destination';
|
|
1320
|
+
this.f46_1 = 'ETag';
|
|
1321
|
+
this.g46_1 = 'Expect';
|
|
1322
|
+
this.h46_1 = 'Expires';
|
|
1323
|
+
this.i46_1 = 'From';
|
|
1324
|
+
this.j46_1 = 'Forwarded';
|
|
1325
|
+
this.k46_1 = 'Host';
|
|
1326
|
+
this.l46_1 = 'HTTP2-Settings';
|
|
1327
|
+
this.m46_1 = 'If';
|
|
1328
|
+
this.n46_1 = 'If-Match';
|
|
1329
|
+
this.o46_1 = 'If-Modified-Since';
|
|
1330
|
+
this.p46_1 = 'If-None-Match';
|
|
1331
|
+
this.q46_1 = 'If-Range';
|
|
1332
|
+
this.r46_1 = 'If-Schedule-Tag-Match';
|
|
1333
|
+
this.s46_1 = 'If-Unmodified-Since';
|
|
1334
|
+
this.t46_1 = 'Last-Modified';
|
|
1335
|
+
this.u46_1 = 'Location';
|
|
1336
|
+
this.v46_1 = 'Lock-Token';
|
|
1337
|
+
this.w46_1 = 'Link';
|
|
1338
|
+
this.x46_1 = 'Max-Forwards';
|
|
1339
|
+
this.y46_1 = 'MIME-Version';
|
|
1340
|
+
this.z46_1 = 'Ordering-Type';
|
|
1341
|
+
this.a47_1 = 'Origin';
|
|
1342
|
+
this.b47_1 = 'Overwrite';
|
|
1343
|
+
this.c47_1 = 'Position';
|
|
1344
|
+
this.d47_1 = 'Pragma';
|
|
1345
|
+
this.e47_1 = 'Prefer';
|
|
1346
|
+
this.f47_1 = 'Preference-Applied';
|
|
1347
|
+
this.g47_1 = 'Proxy-Authenticate';
|
|
1348
|
+
this.h47_1 = 'Proxy-Authentication-Info';
|
|
1349
|
+
this.i47_1 = 'Proxy-Authorization';
|
|
1350
|
+
this.j47_1 = 'Public-Key-Pins';
|
|
1351
|
+
this.k47_1 = 'Public-Key-Pins-Report-Only';
|
|
1352
|
+
this.l47_1 = 'Range';
|
|
1353
|
+
this.m47_1 = 'Referer';
|
|
1354
|
+
this.n47_1 = 'Retry-After';
|
|
1355
|
+
this.o47_1 = 'Schedule-Reply';
|
|
1356
|
+
this.p47_1 = 'Schedule-Tag';
|
|
1357
|
+
this.q47_1 = 'Sec-WebSocket-Accept';
|
|
1358
|
+
this.r47_1 = 'Sec-WebSocket-Extensions';
|
|
1359
|
+
this.s47_1 = 'Sec-WebSocket-Key';
|
|
1360
|
+
this.t47_1 = 'Sec-WebSocket-Protocol';
|
|
1361
|
+
this.u47_1 = 'Sec-WebSocket-Version';
|
|
1362
|
+
this.v47_1 = 'Server';
|
|
1363
|
+
this.w47_1 = 'Set-Cookie';
|
|
1364
|
+
this.x47_1 = 'SLUG';
|
|
1365
|
+
this.y47_1 = 'Strict-Transport-Security';
|
|
1366
|
+
this.z47_1 = 'TE';
|
|
1367
|
+
this.a48_1 = 'Timeout';
|
|
1368
|
+
this.b48_1 = 'Trailer';
|
|
1369
|
+
this.c48_1 = 'Transfer-Encoding';
|
|
1370
|
+
this.d48_1 = 'Upgrade';
|
|
1371
|
+
this.e48_1 = 'User-Agent';
|
|
1372
|
+
this.f48_1 = 'Vary';
|
|
1373
|
+
this.g48_1 = 'Via';
|
|
1374
|
+
this.h48_1 = 'Warning';
|
|
1375
|
+
this.i48_1 = 'WWW-Authenticate';
|
|
1376
|
+
this.j48_1 = 'Access-Control-Allow-Origin';
|
|
1377
|
+
this.k48_1 = 'Access-Control-Allow-Methods';
|
|
1378
|
+
this.l48_1 = 'Access-Control-Allow-Credentials';
|
|
1379
|
+
this.m48_1 = 'Access-Control-Allow-Headers';
|
|
1380
|
+
this.n48_1 = 'Access-Control-Request-Method';
|
|
1381
|
+
this.o48_1 = 'Access-Control-Request-Headers';
|
|
1382
|
+
this.p48_1 = 'Access-Control-Expose-Headers';
|
|
1383
|
+
this.q48_1 = 'Access-Control-Max-Age';
|
|
1384
|
+
this.r48_1 = 'X-Http-Method-Override';
|
|
1385
|
+
this.s48_1 = 'X-Forwarded-Host';
|
|
1386
|
+
this.t48_1 = 'X-Forwarded-Server';
|
|
1387
|
+
this.u48_1 = 'X-Forwarded-Proto';
|
|
1388
|
+
this.v48_1 = 'X-Forwarded-For';
|
|
1389
|
+
this.w48_1 = 'X-Forwarded-Port';
|
|
1390
|
+
this.x48_1 = 'X-Request-ID';
|
|
1391
|
+
this.y48_1 = 'X-Correlation-ID';
|
|
1392
|
+
this.z48_1 = 'X-Total-Count';
|
|
1393
|
+
this.a49_1 = 'Last-Event-ID';
|
|
1394
|
+
this.b49_1 = 'TDM-Reservation';
|
|
1395
|
+
this.c49_1 = 'TDM-Policy';
|
|
1377
1396
|
var tmp = this;
|
|
1378
1397
|
// Inline function 'kotlin.arrayOf' call
|
|
1379
1398
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1380
1399
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1381
|
-
tmp.
|
|
1382
|
-
this.
|
|
1400
|
+
tmp.d49_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1401
|
+
this.e49_1 = asList(this.d49_1);
|
|
1383
1402
|
}
|
|
1384
|
-
protoOf(HttpHeaders).
|
|
1403
|
+
protoOf(HttpHeaders).f49 = function (name) {
|
|
1385
1404
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1386
1405
|
var index = 0;
|
|
1387
1406
|
var inductionVariable = 0;
|
|
@@ -1390,12 +1409,12 @@ protoOf(HttpHeaders).d49 = function (name) {
|
|
|
1390
1409
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1391
1410
|
var _unary__edvuaz = index;
|
|
1392
1411
|
index = _unary__edvuaz + 1 | 0;
|
|
1393
|
-
if (
|
|
1412
|
+
if (get_ILLEGAL_HEADER_NAME_CHARS().gk(item)) {
|
|
1394
1413
|
throw new IllegalHeaderNameException(name, _unary__edvuaz);
|
|
1395
1414
|
}
|
|
1396
1415
|
}
|
|
1397
1416
|
};
|
|
1398
|
-
protoOf(HttpHeaders).
|
|
1417
|
+
protoOf(HttpHeaders).g49 = function (value) {
|
|
1399
1418
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1400
1419
|
var index = 0;
|
|
1401
1420
|
var inductionVariable = 0;
|
|
@@ -1419,53 +1438,57 @@ function UnsafeHeaderException(header) {
|
|
|
1419
1438
|
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1420
1439
|
captureStack(this, UnsafeHeaderException);
|
|
1421
1440
|
}
|
|
1422
|
-
function isDelimiter(ch) {
|
|
1423
|
-
return contains('"(),/:;<=>?@[\\]{}', ch);
|
|
1424
|
-
}
|
|
1425
1441
|
function IllegalHeaderNameException(headerName, position) {
|
|
1426
|
-
var tmp = "Header name '" + headerName + "' contains illegal character '" +
|
|
1442
|
+
var tmp = "Header name '" + headerName + "' contains illegal character '" + toString(charCodeAt(headerName, position)) + "'";
|
|
1427
1443
|
// Inline function 'kotlin.code' call
|
|
1428
1444
|
var this_0 = charCodeAt(headerName, position);
|
|
1429
1445
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1430
1446
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1431
1447
|
captureStack(this, IllegalHeaderNameException);
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1448
|
+
this.i49_1 = headerName;
|
|
1449
|
+
this.j49_1 = position;
|
|
1434
1450
|
}
|
|
1435
1451
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1436
|
-
var tmp = "Header value '" + headerValue + "' contains illegal character '" +
|
|
1452
|
+
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString(charCodeAt(headerValue, position)) + "'";
|
|
1437
1453
|
// Inline function 'kotlin.code' call
|
|
1438
1454
|
var this_0 = charCodeAt(headerValue, position);
|
|
1439
1455
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1440
1456
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1441
1457
|
captureStack(this, IllegalHeaderValueException);
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1458
|
+
this.k49_1 = headerValue;
|
|
1459
|
+
this.l49_1 = position;
|
|
1460
|
+
}
|
|
1461
|
+
var properties_initialized_HttpHeaders_kt_3d6wem;
|
|
1462
|
+
function _init_properties_HttpHeaders_kt__8vtb1o() {
|
|
1463
|
+
if (!properties_initialized_HttpHeaders_kt_3d6wem) {
|
|
1464
|
+
properties_initialized_HttpHeaders_kt_3d6wem = true;
|
|
1465
|
+
ILLEGAL_HEADER_NAME_CHARS = Companion_instance.q42(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(0), _Char___init__impl__6a9atx(32))).t42(Companion_instance.r42('"(),/:;<=>?@[\\]{}'));
|
|
1466
|
+
}
|
|
1444
1467
|
}
|
|
1445
1468
|
function contentType(_this__u8e3s4) {
|
|
1446
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1469
|
+
var tmp0_safe_receiver = _this__u8e3s4.m49().td('Content-Type');
|
|
1447
1470
|
var tmp;
|
|
1448
1471
|
if (tmp0_safe_receiver == null) {
|
|
1449
1472
|
tmp = null;
|
|
1450
1473
|
} else {
|
|
1451
1474
|
// Inline function 'kotlin.let' call
|
|
1452
|
-
tmp =
|
|
1475
|
+
tmp = Companion_getInstance_0().ko(tmp0_safe_receiver);
|
|
1453
1476
|
}
|
|
1454
1477
|
return tmp;
|
|
1455
1478
|
}
|
|
1456
1479
|
function contentType_0(_this__u8e3s4) {
|
|
1457
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1480
|
+
var tmp0_safe_receiver = _this__u8e3s4.m49().td('Content-Type');
|
|
1458
1481
|
var tmp;
|
|
1459
1482
|
if (tmp0_safe_receiver == null) {
|
|
1460
1483
|
tmp = null;
|
|
1461
1484
|
} else {
|
|
1462
1485
|
// Inline function 'kotlin.let' call
|
|
1463
|
-
tmp =
|
|
1486
|
+
tmp = Companion_getInstance_0().ko(tmp0_safe_receiver);
|
|
1464
1487
|
}
|
|
1465
1488
|
return tmp;
|
|
1466
1489
|
}
|
|
1467
1490
|
function contentLength(_this__u8e3s4) {
|
|
1468
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1491
|
+
var tmp0_safe_receiver = _this__u8e3s4.m49().td('Content-Length');
|
|
1469
1492
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1470
1493
|
}
|
|
1471
1494
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1473,48 +1496,48 @@ function charset_0(_this__u8e3s4) {
|
|
|
1473
1496
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1474
1497
|
}
|
|
1475
1498
|
function contentType_1(_this__u8e3s4, type) {
|
|
1476
|
-
return _this__u8e3s4.
|
|
1499
|
+
return _this__u8e3s4.m49().t3x('Content-Type', type.toString());
|
|
1477
1500
|
}
|
|
1478
1501
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1479
1502
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1480
1503
|
return REQUESTS_WITHOUT_BODY;
|
|
1481
1504
|
}
|
|
1482
1505
|
var REQUESTS_WITHOUT_BODY;
|
|
1483
|
-
function
|
|
1484
|
-
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1506
|
+
function Companion_3() {
|
|
1507
|
+
Companion_instance_3 = this;
|
|
1508
|
+
this.n49_1 = new HttpMethod('GET');
|
|
1509
|
+
this.o49_1 = new HttpMethod('POST');
|
|
1510
|
+
this.p49_1 = new HttpMethod('PUT');
|
|
1511
|
+
this.q49_1 = new HttpMethod('PATCH');
|
|
1512
|
+
this.r49_1 = new HttpMethod('DELETE');
|
|
1513
|
+
this.s49_1 = new HttpMethod('HEAD');
|
|
1514
|
+
this.t49_1 = new HttpMethod('OPTIONS');
|
|
1515
|
+
this.u49_1 = new HttpMethod('TRACE');
|
|
1516
|
+
this.v49_1 = new HttpMethod('QUERY');
|
|
1517
|
+
this.w49_1 = listOf_0([this.n49_1, this.o49_1, this.p49_1, this.q49_1, this.r49_1, this.s49_1, this.t49_1]);
|
|
1495
1518
|
}
|
|
1496
|
-
var
|
|
1497
|
-
function
|
|
1498
|
-
if (
|
|
1499
|
-
new
|
|
1500
|
-
return
|
|
1519
|
+
var Companion_instance_3;
|
|
1520
|
+
function Companion_getInstance_3() {
|
|
1521
|
+
if (Companion_instance_3 == null)
|
|
1522
|
+
new Companion_3();
|
|
1523
|
+
return Companion_instance_3;
|
|
1501
1524
|
}
|
|
1502
1525
|
function HttpMethod(value) {
|
|
1503
|
-
|
|
1504
|
-
this.
|
|
1526
|
+
Companion_getInstance_3();
|
|
1527
|
+
this.x49_1 = value;
|
|
1505
1528
|
}
|
|
1506
1529
|
protoOf(HttpMethod).toString = function () {
|
|
1507
|
-
return this.
|
|
1530
|
+
return this.x49_1;
|
|
1508
1531
|
};
|
|
1509
1532
|
protoOf(HttpMethod).hashCode = function () {
|
|
1510
|
-
return getStringHashCode(this.
|
|
1533
|
+
return getStringHashCode(this.x49_1);
|
|
1511
1534
|
};
|
|
1512
1535
|
protoOf(HttpMethod).equals = function (other) {
|
|
1513
1536
|
if (this === other)
|
|
1514
1537
|
return true;
|
|
1515
1538
|
if (!(other instanceof HttpMethod))
|
|
1516
1539
|
return false;
|
|
1517
|
-
if (!(this.
|
|
1540
|
+
if (!(this.x49_1 === other.x49_1))
|
|
1518
1541
|
return false;
|
|
1519
1542
|
return true;
|
|
1520
1543
|
};
|
|
@@ -1526,37 +1549,37 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1526
1549
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1527
1550
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1528
1551
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1529
|
-
REQUESTS_WITHOUT_BODY = setOf([
|
|
1552
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().n49_1, Companion_getInstance_3().s49_1, Companion_getInstance_3().t49_1, Companion_getInstance_3().u49_1]);
|
|
1530
1553
|
}
|
|
1531
1554
|
}
|
|
1532
|
-
function
|
|
1533
|
-
|
|
1534
|
-
this.
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1555
|
+
function Companion_4() {
|
|
1556
|
+
Companion_instance_4 = this;
|
|
1557
|
+
this.y49_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1558
|
+
this.z49_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1559
|
+
this.a4a_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1560
|
+
this.b4a_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1561
|
+
this.c4a_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1562
|
+
this.d4a_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1540
1563
|
}
|
|
1541
|
-
var
|
|
1542
|
-
function
|
|
1543
|
-
if (
|
|
1544
|
-
new
|
|
1545
|
-
return
|
|
1564
|
+
var Companion_instance_4;
|
|
1565
|
+
function Companion_getInstance_4() {
|
|
1566
|
+
if (Companion_instance_4 == null)
|
|
1567
|
+
new Companion_4();
|
|
1568
|
+
return Companion_instance_4;
|
|
1546
1569
|
}
|
|
1547
1570
|
function HttpProtocolVersion(name, major, minor) {
|
|
1548
|
-
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1571
|
+
Companion_getInstance_4();
|
|
1572
|
+
this.e4a_1 = name;
|
|
1573
|
+
this.f4a_1 = major;
|
|
1574
|
+
this.g4a_1 = minor;
|
|
1552
1575
|
}
|
|
1553
1576
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1554
|
-
return this.
|
|
1577
|
+
return this.e4a_1 + '/' + this.f4a_1 + '.' + this.g4a_1;
|
|
1555
1578
|
};
|
|
1556
1579
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1557
|
-
var result = getStringHashCode(this.
|
|
1558
|
-
result = imul(result, 31) + this.
|
|
1559
|
-
result = imul(result, 31) + this.
|
|
1580
|
+
var result = getStringHashCode(this.e4a_1);
|
|
1581
|
+
result = imul(result, 31) + this.f4a_1 | 0;
|
|
1582
|
+
result = imul(result, 31) + this.g4a_1 | 0;
|
|
1560
1583
|
return result;
|
|
1561
1584
|
};
|
|
1562
1585
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1564,131 +1587,132 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1564
1587
|
return true;
|
|
1565
1588
|
if (!(other instanceof HttpProtocolVersion))
|
|
1566
1589
|
return false;
|
|
1567
|
-
if (!(this.
|
|
1590
|
+
if (!(this.e4a_1 === other.e4a_1))
|
|
1568
1591
|
return false;
|
|
1569
|
-
if (!(this.
|
|
1592
|
+
if (!(this.f4a_1 === other.f4a_1))
|
|
1570
1593
|
return false;
|
|
1571
|
-
if (!(this.
|
|
1594
|
+
if (!(this.g4a_1 === other.g4a_1))
|
|
1572
1595
|
return false;
|
|
1573
1596
|
return true;
|
|
1574
1597
|
};
|
|
1575
|
-
function
|
|
1576
|
-
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1594
|
-
this.
|
|
1595
|
-
this.
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1598
|
+
function Companion_5() {
|
|
1599
|
+
Companion_instance_5 = this;
|
|
1600
|
+
this.h4a_1 = new HttpStatusCode(100, 'Continue');
|
|
1601
|
+
this.i4a_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1602
|
+
this.j4a_1 = new HttpStatusCode(102, 'Processing');
|
|
1603
|
+
this.k4a_1 = new HttpStatusCode(200, 'OK');
|
|
1604
|
+
this.l4a_1 = new HttpStatusCode(201, 'Created');
|
|
1605
|
+
this.m4a_1 = new HttpStatusCode(202, 'Accepted');
|
|
1606
|
+
this.n4a_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1607
|
+
this.o4a_1 = new HttpStatusCode(204, 'No Content');
|
|
1608
|
+
this.p4a_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1609
|
+
this.q4a_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1610
|
+
this.r4a_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1611
|
+
this.s4a_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1612
|
+
this.t4a_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1613
|
+
this.u4a_1 = new HttpStatusCode(302, 'Found');
|
|
1614
|
+
this.v4a_1 = new HttpStatusCode(303, 'See Other');
|
|
1615
|
+
this.w4a_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1616
|
+
this.x4a_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1617
|
+
this.y4a_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1618
|
+
this.z4a_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1619
|
+
this.a4b_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1620
|
+
this.b4b_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1621
|
+
this.c4b_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1622
|
+
this.d4b_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1623
|
+
this.e4b_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1624
|
+
this.f4b_1 = new HttpStatusCode(404, 'Not Found');
|
|
1625
|
+
this.g4b_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1626
|
+
this.h4b_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1627
|
+
this.i4b_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1628
|
+
this.j4b_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1629
|
+
this.k4b_1 = new HttpStatusCode(409, 'Conflict');
|
|
1630
|
+
this.l4b_1 = new HttpStatusCode(410, 'Gone');
|
|
1631
|
+
this.m4b_1 = new HttpStatusCode(411, 'Length Required');
|
|
1632
|
+
this.n4b_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1633
|
+
this.o4b_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1634
|
+
this.p4b_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1635
|
+
this.q4b_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1636
|
+
this.r4b_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1637
|
+
this.s4b_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1638
|
+
this.t4b_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1639
|
+
this.u4b_1 = new HttpStatusCode(423, 'Locked');
|
|
1640
|
+
this.v4b_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1641
|
+
this.w4b_1 = new HttpStatusCode(425, 'Too Early');
|
|
1642
|
+
this.x4b_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1643
|
+
this.y4b_1 = new HttpStatusCode(428, 'Precondition Required');
|
|
1644
|
+
this.z4b_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1645
|
+
this.a4c_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1646
|
+
this.b4c_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1647
|
+
this.c4c_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1648
|
+
this.d4c_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1649
|
+
this.e4c_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1650
|
+
this.f4c_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1651
|
+
this.g4c_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1652
|
+
this.h4c_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1653
|
+
this.i4c_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1654
|
+
this.j4c_1 = allStatusCodes();
|
|
1631
1655
|
var tmp = this;
|
|
1632
1656
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1633
|
-
var this_0 = this.
|
|
1657
|
+
var this_0 = this.j4c_1;
|
|
1634
1658
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1635
1659
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1636
1660
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1637
1661
|
var _iterator__ex2g4s = this_0.t();
|
|
1638
1662
|
while (_iterator__ex2g4s.u()) {
|
|
1639
1663
|
var element = _iterator__ex2g4s.v();
|
|
1640
|
-
var tmp$ret$2 = element.
|
|
1641
|
-
destination.
|
|
1664
|
+
var tmp$ret$2 = element.l4c_1;
|
|
1665
|
+
destination.c3(tmp$ret$2, element);
|
|
1642
1666
|
}
|
|
1643
|
-
tmp.
|
|
1667
|
+
tmp.k4c_1 = destination;
|
|
1644
1668
|
}
|
|
1645
|
-
var
|
|
1646
|
-
function
|
|
1647
|
-
if (
|
|
1648
|
-
new
|
|
1649
|
-
return
|
|
1669
|
+
var Companion_instance_5;
|
|
1670
|
+
function Companion_getInstance_5() {
|
|
1671
|
+
if (Companion_instance_5 == null)
|
|
1672
|
+
new Companion_5();
|
|
1673
|
+
return Companion_instance_5;
|
|
1650
1674
|
}
|
|
1651
1675
|
function HttpStatusCode(value, description) {
|
|
1652
|
-
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1676
|
+
Companion_getInstance_5();
|
|
1677
|
+
this.l4c_1 = value;
|
|
1678
|
+
this.m4c_1 = description;
|
|
1655
1679
|
}
|
|
1656
1680
|
protoOf(HttpStatusCode).toString = function () {
|
|
1657
|
-
return '' + this.
|
|
1681
|
+
return '' + this.l4c_1 + ' ' + this.m4c_1;
|
|
1658
1682
|
};
|
|
1659
1683
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1660
1684
|
var tmp;
|
|
1661
1685
|
if (other instanceof HttpStatusCode) {
|
|
1662
|
-
tmp = other.
|
|
1686
|
+
tmp = other.l4c_1 === this.l4c_1;
|
|
1663
1687
|
} else {
|
|
1664
1688
|
tmp = false;
|
|
1665
1689
|
}
|
|
1666
1690
|
return tmp;
|
|
1667
1691
|
};
|
|
1668
1692
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1669
|
-
return this.
|
|
1693
|
+
return this.l4c_1;
|
|
1670
1694
|
};
|
|
1671
|
-
protoOf(HttpStatusCode).
|
|
1672
|
-
return this.
|
|
1695
|
+
protoOf(HttpStatusCode).n4c = function (other) {
|
|
1696
|
+
return this.l4c_1 - other.l4c_1 | 0;
|
|
1673
1697
|
};
|
|
1674
1698
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1675
|
-
return this.
|
|
1699
|
+
return this.n4c(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1676
1700
|
};
|
|
1677
1701
|
function allStatusCodes() {
|
|
1678
|
-
return
|
|
1702
|
+
return listOf_0([Companion_getInstance_5().h4a_1, Companion_getInstance_5().i4a_1, Companion_getInstance_5().j4a_1, Companion_getInstance_5().k4a_1, Companion_getInstance_5().l4a_1, Companion_getInstance_5().m4a_1, Companion_getInstance_5().n4a_1, Companion_getInstance_5().o4a_1, Companion_getInstance_5().p4a_1, Companion_getInstance_5().q4a_1, Companion_getInstance_5().r4a_1, Companion_getInstance_5().s4a_1, Companion_getInstance_5().t4a_1, Companion_getInstance_5().u4a_1, Companion_getInstance_5().v4a_1, Companion_getInstance_5().w4a_1, Companion_getInstance_5().x4a_1, Companion_getInstance_5().y4a_1, Companion_getInstance_5().z4a_1, Companion_getInstance_5().a4b_1, Companion_getInstance_5().b4b_1, Companion_getInstance_5().c4b_1, Companion_getInstance_5().d4b_1, Companion_getInstance_5().e4b_1, Companion_getInstance_5().f4b_1, Companion_getInstance_5().g4b_1, Companion_getInstance_5().h4b_1, Companion_getInstance_5().i4b_1, Companion_getInstance_5().j4b_1, Companion_getInstance_5().k4b_1, Companion_getInstance_5().l4b_1, Companion_getInstance_5().m4b_1, Companion_getInstance_5().n4b_1, Companion_getInstance_5().y4b_1, Companion_getInstance_5().o4b_1, Companion_getInstance_5().p4b_1, Companion_getInstance_5().q4b_1, Companion_getInstance_5().r4b_1, Companion_getInstance_5().s4b_1, Companion_getInstance_5().t4b_1, Companion_getInstance_5().u4b_1, Companion_getInstance_5().v4b_1, Companion_getInstance_5().w4b_1, Companion_getInstance_5().x4b_1, Companion_getInstance_5().z4b_1, Companion_getInstance_5().a4c_1, Companion_getInstance_5().b4c_1, Companion_getInstance_5().c4c_1, Companion_getInstance_5().d4c_1, Companion_getInstance_5().e4c_1, Companion_getInstance_5().f4c_1, Companion_getInstance_5().g4c_1, Companion_getInstance_5().h4c_1, Companion_getInstance_5().i4c_1]);
|
|
1679
1703
|
}
|
|
1680
1704
|
function formUrlEncode(_this__u8e3s4) {
|
|
1681
1705
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1682
|
-
var tmp0 = _this__u8e3s4.
|
|
1706
|
+
var tmp0 = _this__u8e3s4.l3x();
|
|
1683
1707
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1684
|
-
var destination = ArrayList_init_$Create$
|
|
1708
|
+
var destination = ArrayList_init_$Create$();
|
|
1685
1709
|
var _iterator__ex2g4s = tmp0.t();
|
|
1686
1710
|
while (_iterator__ex2g4s.u()) {
|
|
1687
1711
|
var element = _iterator__ex2g4s.v();
|
|
1688
1712
|
// Inline function 'kotlin.collections.map' call
|
|
1689
1713
|
var this_0 = element.p1();
|
|
1690
1714
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1691
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1715
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1692
1716
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
1693
1717
|
while (_iterator__ex2g4s_0.u()) {
|
|
1694
1718
|
var item = _iterator__ex2g4s_0.v();
|
|
@@ -1703,7 +1727,7 @@ function formUrlEncode(_this__u8e3s4) {
|
|
|
1703
1727
|
function formUrlEncode_0(_this__u8e3s4) {
|
|
1704
1728
|
// Inline function 'kotlin.text.buildString' call
|
|
1705
1729
|
// Inline function 'kotlin.apply' call
|
|
1706
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
1730
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
1707
1731
|
formUrlEncodeTo(_this__u8e3s4, this_0);
|
|
1708
1732
|
return this_0.toString();
|
|
1709
1733
|
}
|
|
@@ -1711,47 +1735,47 @@ function formUrlEncodeTo(_this__u8e3s4, out) {
|
|
|
1711
1735
|
joinTo(_this__u8e3s4, out, '&', VOID, VOID, VOID, VOID, formUrlEncodeTo$lambda);
|
|
1712
1736
|
}
|
|
1713
1737
|
function formUrlEncodeTo$lambda(it) {
|
|
1714
|
-
var key = encodeURLParameter(it.
|
|
1738
|
+
var key = encodeURLParameter(it.tg_1, true);
|
|
1715
1739
|
var tmp;
|
|
1716
|
-
if (it.
|
|
1740
|
+
if (it.ug_1 == null) {
|
|
1717
1741
|
tmp = key;
|
|
1718
1742
|
} else {
|
|
1719
|
-
var value = encodeURLParameterValue(toString_1(it.
|
|
1743
|
+
var value = encodeURLParameterValue(toString_1(it.ug_1));
|
|
1720
1744
|
tmp = key + '=' + value;
|
|
1721
1745
|
}
|
|
1722
1746
|
return tmp;
|
|
1723
1747
|
}
|
|
1724
|
-
function
|
|
1725
|
-
|
|
1726
|
-
this.
|
|
1748
|
+
function Companion_6() {
|
|
1749
|
+
Companion_instance_6 = this;
|
|
1750
|
+
this.o4c_1 = EmptyParameters_instance;
|
|
1727
1751
|
}
|
|
1728
|
-
var
|
|
1729
|
-
function
|
|
1730
|
-
if (
|
|
1731
|
-
new
|
|
1732
|
-
return
|
|
1752
|
+
var Companion_instance_6;
|
|
1753
|
+
function Companion_getInstance_6() {
|
|
1754
|
+
if (Companion_instance_6 == null)
|
|
1755
|
+
new Companion_6();
|
|
1756
|
+
return Companion_instance_6;
|
|
1733
1757
|
}
|
|
1734
1758
|
function Parameters() {
|
|
1735
1759
|
}
|
|
1736
1760
|
function EmptyParameters() {
|
|
1737
1761
|
}
|
|
1738
|
-
protoOf(EmptyParameters).
|
|
1762
|
+
protoOf(EmptyParameters).q3x = function () {
|
|
1739
1763
|
return true;
|
|
1740
1764
|
};
|
|
1741
|
-
protoOf(EmptyParameters).
|
|
1765
|
+
protoOf(EmptyParameters).r3x = function (name) {
|
|
1742
1766
|
return null;
|
|
1743
1767
|
};
|
|
1744
|
-
protoOf(EmptyParameters).
|
|
1768
|
+
protoOf(EmptyParameters).s3x = function () {
|
|
1745
1769
|
return emptySet();
|
|
1746
1770
|
};
|
|
1747
|
-
protoOf(EmptyParameters).
|
|
1771
|
+
protoOf(EmptyParameters).l3x = function () {
|
|
1748
1772
|
return emptySet();
|
|
1749
1773
|
};
|
|
1750
1774
|
protoOf(EmptyParameters).r = function () {
|
|
1751
1775
|
return true;
|
|
1752
1776
|
};
|
|
1753
1777
|
protoOf(EmptyParameters).toString = function () {
|
|
1754
|
-
return 'Parameters ' +
|
|
1778
|
+
return 'Parameters ' + toString_0(this.l3x());
|
|
1755
1779
|
};
|
|
1756
1780
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1757
1781
|
var tmp;
|
|
@@ -1774,23 +1798,23 @@ function ParametersBuilderImpl(size) {
|
|
|
1774
1798
|
size = size === VOID ? 8 : size;
|
|
1775
1799
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1776
1800
|
}
|
|
1777
|
-
protoOf(ParametersBuilderImpl).
|
|
1778
|
-
return new ParametersImpl(this.
|
|
1801
|
+
protoOf(ParametersBuilderImpl).f45 = function () {
|
|
1802
|
+
return new ParametersImpl(this.o3x_1);
|
|
1779
1803
|
};
|
|
1780
1804
|
function ParametersImpl(values) {
|
|
1781
1805
|
values = values === VOID ? emptyMap() : values;
|
|
1782
1806
|
StringValuesImpl.call(this, true, values);
|
|
1783
1807
|
}
|
|
1784
1808
|
protoOf(ParametersImpl).toString = function () {
|
|
1785
|
-
return 'Parameters ' +
|
|
1809
|
+
return 'Parameters ' + toString_0(this.l3x());
|
|
1786
1810
|
};
|
|
1787
1811
|
function parameters(builder) {
|
|
1788
1812
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1789
|
-
|
|
1813
|
+
Companion_getInstance_6();
|
|
1790
1814
|
// Inline function 'kotlin.apply' call
|
|
1791
1815
|
var this_0 = ParametersBuilder();
|
|
1792
1816
|
builder(this_0);
|
|
1793
|
-
return this_0.
|
|
1817
|
+
return this_0.f45();
|
|
1794
1818
|
}
|
|
1795
1819
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1796
1820
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1798,14 +1822,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1798
1822
|
decode = decode === VOID ? true : decode;
|
|
1799
1823
|
var tmp;
|
|
1800
1824
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1801
|
-
tmp =
|
|
1825
|
+
tmp = Companion_getInstance_6().o4c_1;
|
|
1802
1826
|
} else {
|
|
1803
1827
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1804
|
-
|
|
1828
|
+
Companion_getInstance_6();
|
|
1805
1829
|
// Inline function 'kotlin.apply' call
|
|
1806
1830
|
var this_0 = ParametersBuilder();
|
|
1807
1831
|
parse(this_0, query, startIndex, limit, decode);
|
|
1808
|
-
tmp = this_0.
|
|
1832
|
+
tmp = this_0.f45();
|
|
1809
1833
|
}
|
|
1810
1834
|
return tmp;
|
|
1811
1835
|
}
|
|
@@ -1846,7 +1870,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1846
1870
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1847
1871
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1848
1872
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1849
|
-
_this__u8e3s4.
|
|
1873
|
+
_this__u8e3s4.m3x(name, emptyList());
|
|
1850
1874
|
}
|
|
1851
1875
|
return Unit_instance;
|
|
1852
1876
|
}
|
|
@@ -1857,7 +1881,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1857
1881
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1858
1882
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1859
1883
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1860
|
-
_this__u8e3s4.
|
|
1884
|
+
_this__u8e3s4.v3x(name_0, value);
|
|
1861
1885
|
}
|
|
1862
1886
|
}
|
|
1863
1887
|
function trimStart(start, end, query) {
|
|
@@ -1877,101 +1901,101 @@ function trimEnd(start, end, text) {
|
|
|
1877
1901
|
function applyOrigin($this) {
|
|
1878
1902
|
var tmp;
|
|
1879
1903
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1880
|
-
var this_0 = $this.
|
|
1904
|
+
var this_0 = $this.r4c_1;
|
|
1881
1905
|
if (charSequenceLength(this_0) > 0) {
|
|
1882
1906
|
tmp = true;
|
|
1883
1907
|
} else {
|
|
1884
|
-
tmp = $this.
|
|
1908
|
+
tmp = $this.d4d().b4d_1 === 'file';
|
|
1885
1909
|
}
|
|
1886
1910
|
if (tmp)
|
|
1887
1911
|
return Unit_instance;
|
|
1888
|
-
$this.
|
|
1889
|
-
if ($this.
|
|
1890
|
-
$this.
|
|
1891
|
-
if ($this.
|
|
1892
|
-
$this.
|
|
1912
|
+
$this.r4c_1 = Companion_getInstance_7().x4d_1.e4d_1;
|
|
1913
|
+
if ($this.u4c_1 == null)
|
|
1914
|
+
$this.u4c_1 = Companion_getInstance_7().x4d_1.p4d_1;
|
|
1915
|
+
if ($this.t4c_1 === 0) {
|
|
1916
|
+
$this.z4d(Companion_getInstance_7().x4d_1.f4d_1);
|
|
1893
1917
|
}
|
|
1894
1918
|
}
|
|
1895
|
-
function
|
|
1896
|
-
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1919
|
+
function Companion_7() {
|
|
1920
|
+
Companion_instance_7 = this;
|
|
1921
|
+
this.x4d_1 = Url(get_origin(this));
|
|
1922
|
+
this.y4d_1 = 256;
|
|
1899
1923
|
}
|
|
1900
|
-
var
|
|
1901
|
-
function
|
|
1902
|
-
if (
|
|
1903
|
-
new
|
|
1904
|
-
return
|
|
1924
|
+
var Companion_instance_7;
|
|
1925
|
+
function Companion_getInstance_7() {
|
|
1926
|
+
if (Companion_instance_7 == null)
|
|
1927
|
+
new Companion_7();
|
|
1928
|
+
return Companion_instance_7;
|
|
1905
1929
|
}
|
|
1906
1930
|
function URLBuilder(protocol, host, port, user, password, pathSegments, parameters, fragment, trailingQuery) {
|
|
1907
|
-
|
|
1931
|
+
Companion_getInstance_7();
|
|
1908
1932
|
protocol = protocol === VOID ? null : protocol;
|
|
1909
1933
|
host = host === VOID ? '' : host;
|
|
1910
1934
|
port = port === VOID ? 0 : port;
|
|
1911
1935
|
user = user === VOID ? null : user;
|
|
1912
1936
|
password = password === VOID ? null : password;
|
|
1913
1937
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1914
|
-
parameters = parameters === VOID ?
|
|
1938
|
+
parameters = parameters === VOID ? Companion_getInstance_6().o4c_1 : parameters;
|
|
1915
1939
|
fragment = fragment === VOID ? '' : fragment;
|
|
1916
1940
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1941
|
+
this.r4c_1 = host;
|
|
1942
|
+
this.s4c_1 = trailingQuery;
|
|
1943
|
+
this.t4c_1 = port;
|
|
1944
|
+
this.u4c_1 = protocol;
|
|
1921
1945
|
var tmp = this;
|
|
1922
|
-
tmp.
|
|
1946
|
+
tmp.v4c_1 = user == null ? null : encodeURLParameter(user);
|
|
1923
1947
|
var tmp_0 = this;
|
|
1924
|
-
tmp_0.
|
|
1925
|
-
this.
|
|
1948
|
+
tmp_0.w4c_1 = password == null ? null : encodeURLParameter(password);
|
|
1949
|
+
this.x4c_1 = encodeURLQueryComponent(fragment);
|
|
1926
1950
|
var tmp_1 = this;
|
|
1927
1951
|
// Inline function 'kotlin.collections.map' call
|
|
1928
1952
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1929
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(pathSegments, 10));
|
|
1953
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(pathSegments, 10));
|
|
1930
1954
|
var _iterator__ex2g4s = pathSegments.t();
|
|
1931
1955
|
while (_iterator__ex2g4s.u()) {
|
|
1932
1956
|
var item = _iterator__ex2g4s.v();
|
|
1933
1957
|
var tmp$ret$2 = encodeURLPathPart(item);
|
|
1934
1958
|
destination.b1(tmp$ret$2);
|
|
1935
1959
|
}
|
|
1936
|
-
tmp_1.
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1960
|
+
tmp_1.y4c_1 = destination;
|
|
1961
|
+
this.z4c_1 = encodeParameters(parameters);
|
|
1962
|
+
this.a4d_1 = new UrlDecodedParametersBuilder(this.z4c_1);
|
|
1939
1963
|
}
|
|
1940
|
-
protoOf(URLBuilder).
|
|
1964
|
+
protoOf(URLBuilder).z4d = function (value) {
|
|
1941
1965
|
// Inline function 'kotlin.require' call
|
|
1942
1966
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1943
1967
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1944
|
-
throw IllegalArgumentException_init_$Create$(
|
|
1968
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1945
1969
|
}
|
|
1946
|
-
this.
|
|
1970
|
+
this.t4c_1 = value;
|
|
1947
1971
|
};
|
|
1948
|
-
protoOf(URLBuilder).
|
|
1949
|
-
this.
|
|
1972
|
+
protoOf(URLBuilder).a4e = function (value) {
|
|
1973
|
+
this.u4c_1 = value;
|
|
1950
1974
|
};
|
|
1951
|
-
protoOf(URLBuilder).
|
|
1952
|
-
var tmp0_elvis_lhs = this.
|
|
1953
|
-
return tmp0_elvis_lhs == null ?
|
|
1975
|
+
protoOf(URLBuilder).d4d = function () {
|
|
1976
|
+
var tmp0_elvis_lhs = this.u4c_1;
|
|
1977
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_8().b4e_1 : tmp0_elvis_lhs;
|
|
1954
1978
|
};
|
|
1955
|
-
protoOf(URLBuilder).
|
|
1979
|
+
protoOf(URLBuilder).h4e = function (value) {
|
|
1956
1980
|
var tmp = this;
|
|
1957
|
-
tmp.
|
|
1981
|
+
tmp.v4c_1 = value == null ? null : encodeURLParameter(value);
|
|
1958
1982
|
};
|
|
1959
|
-
protoOf(URLBuilder).
|
|
1960
|
-
var tmp0_safe_receiver = this.
|
|
1983
|
+
protoOf(URLBuilder).i4e = function () {
|
|
1984
|
+
var tmp0_safe_receiver = this.v4c_1;
|
|
1961
1985
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1962
1986
|
};
|
|
1963
|
-
protoOf(URLBuilder).
|
|
1964
|
-
var tmp0_safe_receiver = this.
|
|
1987
|
+
protoOf(URLBuilder).j4e = function () {
|
|
1988
|
+
var tmp0_safe_receiver = this.w4c_1;
|
|
1965
1989
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1966
1990
|
};
|
|
1967
|
-
protoOf(URLBuilder).
|
|
1968
|
-
return decodeURLQueryComponent(this.
|
|
1991
|
+
protoOf(URLBuilder).k4e = function () {
|
|
1992
|
+
return decodeURLQueryComponent(this.x4c_1);
|
|
1969
1993
|
};
|
|
1970
|
-
protoOf(URLBuilder).
|
|
1994
|
+
protoOf(URLBuilder).l4e = function () {
|
|
1971
1995
|
// Inline function 'kotlin.collections.map' call
|
|
1972
|
-
var this_0 = this.
|
|
1996
|
+
var this_0 = this.y4c_1;
|
|
1973
1997
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1974
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1998
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1975
1999
|
var _iterator__ex2g4s = this_0.t();
|
|
1976
2000
|
while (_iterator__ex2g4s.u()) {
|
|
1977
2001
|
var item = _iterator__ex2g4s.v();
|
|
@@ -1980,68 +2004,71 @@ protoOf(URLBuilder).i4e = function () {
|
|
|
1980
2004
|
}
|
|
1981
2005
|
return destination;
|
|
1982
2006
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
2007
|
+
protoOf(URLBuilder).m4e = function (value) {
|
|
2008
|
+
this.z4c_1 = value;
|
|
2009
|
+
this.a4d_1 = new UrlDecodedParametersBuilder(value);
|
|
1986
2010
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
2011
|
+
protoOf(URLBuilder).n4e = function () {
|
|
1988
2012
|
applyOrigin(this);
|
|
1989
|
-
return appendTo(this, StringBuilder_init_$Create$
|
|
2013
|
+
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
1990
2014
|
};
|
|
1991
2015
|
protoOf(URLBuilder).toString = function () {
|
|
1992
|
-
return appendTo(this, StringBuilder_init_$Create$
|
|
2016
|
+
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
1993
2017
|
};
|
|
1994
|
-
protoOf(URLBuilder).
|
|
2018
|
+
protoOf(URLBuilder).f45 = function () {
|
|
1995
2019
|
applyOrigin(this);
|
|
1996
|
-
return new Url_0(this.
|
|
2020
|
+
return new Url_0(this.u4c_1, this.r4c_1, this.t4c_1, this.l4e(), this.a4d_1.f45(), this.k4e(), this.i4e(), this.j4e(), this.s4c_1, this.n4e());
|
|
1997
2021
|
};
|
|
1998
2022
|
function get_authority(_this__u8e3s4) {
|
|
1999
2023
|
// Inline function 'kotlin.text.buildString' call
|
|
2000
2024
|
// Inline function 'kotlin.apply' call
|
|
2001
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2025
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2002
2026
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2003
|
-
this_0.q(_this__u8e3s4.
|
|
2004
|
-
if (!(_this__u8e3s4.
|
|
2027
|
+
this_0.q(_this__u8e3s4.r4c_1);
|
|
2028
|
+
if (!(_this__u8e3s4.t4c_1 === 0) && !(_this__u8e3s4.t4c_1 === _this__u8e3s4.d4d().c4d_1)) {
|
|
2005
2029
|
this_0.q(':');
|
|
2006
|
-
this_0.q(_this__u8e3s4.
|
|
2030
|
+
this_0.q(_this__u8e3s4.t4c_1.toString());
|
|
2007
2031
|
}
|
|
2008
2032
|
return this_0.toString();
|
|
2009
2033
|
}
|
|
2010
2034
|
function appendTo(_this__u8e3s4, out) {
|
|
2011
|
-
out.c1(_this__u8e3s4.
|
|
2012
|
-
switch (_this__u8e3s4.
|
|
2035
|
+
out.c1(_this__u8e3s4.d4d().b4d_1);
|
|
2036
|
+
switch (_this__u8e3s4.d4d().b4d_1) {
|
|
2013
2037
|
case 'file':
|
|
2014
|
-
appendFile(out, _this__u8e3s4.
|
|
2015
|
-
|
|
2038
|
+
appendFile(out, _this__u8e3s4.r4c_1, get_encodedPath(_this__u8e3s4));
|
|
2039
|
+
appendUrlFullPath(out, '', _this__u8e3s4.z4c_1, _this__u8e3s4.s4c_1);
|
|
2040
|
+
break;
|
|
2016
2041
|
case 'mailto':
|
|
2017
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2042
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.r4c_1);
|
|
2018
2043
|
return out;
|
|
2019
2044
|
case 'about':
|
|
2020
|
-
appendPayload(out, _this__u8e3s4.
|
|
2045
|
+
appendPayload(out, _this__u8e3s4.r4c_1);
|
|
2021
2046
|
return out;
|
|
2022
2047
|
case 'tel':
|
|
2023
|
-
appendPayload(out, _this__u8e3s4.
|
|
2048
|
+
appendPayload(out, _this__u8e3s4.r4c_1);
|
|
2024
2049
|
return out;
|
|
2025
2050
|
case 'data':
|
|
2026
|
-
appendPayload(out, _this__u8e3s4.
|
|
2051
|
+
appendPayload(out, _this__u8e3s4.r4c_1);
|
|
2027
2052
|
return out;
|
|
2053
|
+
default:
|
|
2054
|
+
out.c1('://');
|
|
2055
|
+
out.c1(get_authority(_this__u8e3s4));
|
|
2056
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.z4c_1, _this__u8e3s4.s4c_1);
|
|
2057
|
+
break;
|
|
2028
2058
|
}
|
|
2029
|
-
out.c1('://');
|
|
2030
|
-
out.c1(get_authority(_this__u8e3s4));
|
|
2031
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.w4c_1, _this__u8e3s4.p4c_1);
|
|
2032
2059
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2033
|
-
var this_0 = _this__u8e3s4.
|
|
2060
|
+
var this_0 = _this__u8e3s4.x4c_1;
|
|
2034
2061
|
if (charSequenceLength(this_0) > 0) {
|
|
2035
2062
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2036
|
-
out.c1(_this__u8e3s4.
|
|
2063
|
+
out.c1(_this__u8e3s4.x4c_1);
|
|
2037
2064
|
}
|
|
2038
2065
|
return out;
|
|
2039
2066
|
}
|
|
2040
2067
|
function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
2041
2068
|
// Inline function 'kotlin.text.buildString' call
|
|
2042
2069
|
// Inline function 'kotlin.apply' call
|
|
2043
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2044
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2070
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2071
|
+
appendUserAndPassword(this_0, _this__u8e3s4.v4c_1, _this__u8e3s4.w4c_1);
|
|
2045
2072
|
return this_0.toString();
|
|
2046
2073
|
}
|
|
2047
2074
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2053,10 +2080,10 @@ function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
|
2053
2080
|
_this__u8e3s4.c1(encodedPath);
|
|
2054
2081
|
}
|
|
2055
2082
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2056
|
-
_this__u8e3s4.
|
|
2083
|
+
_this__u8e3s4.y4c_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2057
2084
|
}
|
|
2058
2085
|
function get_encodedPath(_this__u8e3s4) {
|
|
2059
|
-
return joinPath(_this__u8e3s4.
|
|
2086
|
+
return joinPath(_this__u8e3s4.y4c_1);
|
|
2060
2087
|
}
|
|
2061
2088
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2062
2089
|
_this__u8e3s4.c1(':');
|
|
@@ -2144,47 +2171,47 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2144
2171
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2145
2172
|
if (schemeLength > 0) {
|
|
2146
2173
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2147
|
-
_this__u8e3s4.
|
|
2174
|
+
_this__u8e3s4.a4e(Companion_getInstance_8().o4e(scheme));
|
|
2148
2175
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2149
2176
|
}
|
|
2150
|
-
if (_this__u8e3s4.
|
|
2151
|
-
_this__u8e3s4.
|
|
2177
|
+
if (_this__u8e3s4.d4d().b4d_1 === 'data') {
|
|
2178
|
+
_this__u8e3s4.r4c_1 = substring(urlString, startIndex, endIndex);
|
|
2152
2179
|
return _this__u8e3s4;
|
|
2153
2180
|
}
|
|
2154
2181
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2155
2182
|
startIndex = startIndex + slashCount | 0;
|
|
2156
|
-
if (_this__u8e3s4.
|
|
2183
|
+
if (_this__u8e3s4.d4d().b4d_1 === 'file') {
|
|
2157
2184
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2158
2185
|
return _this__u8e3s4;
|
|
2159
2186
|
}
|
|
2160
|
-
if (_this__u8e3s4.
|
|
2187
|
+
if (_this__u8e3s4.d4d().b4d_1 === 'mailto') {
|
|
2161
2188
|
// Inline function 'kotlin.require' call
|
|
2162
2189
|
// Inline function 'kotlin.require' call
|
|
2163
2190
|
if (!(slashCount === 0)) {
|
|
2164
2191
|
var message = 'Failed requirement.';
|
|
2165
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2192
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2166
2193
|
}
|
|
2167
2194
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2168
2195
|
return _this__u8e3s4;
|
|
2169
2196
|
}
|
|
2170
|
-
if (_this__u8e3s4.
|
|
2197
|
+
if (_this__u8e3s4.d4d().b4d_1 === 'about') {
|
|
2171
2198
|
// Inline function 'kotlin.require' call
|
|
2172
2199
|
// Inline function 'kotlin.require' call
|
|
2173
2200
|
if (!(slashCount === 0)) {
|
|
2174
2201
|
var message_0 = 'Failed requirement.';
|
|
2175
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2202
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2176
2203
|
}
|
|
2177
|
-
_this__u8e3s4.
|
|
2204
|
+
_this__u8e3s4.r4c_1 = substring(urlString, startIndex, endIndex);
|
|
2178
2205
|
return _this__u8e3s4;
|
|
2179
2206
|
}
|
|
2180
|
-
if (_this__u8e3s4.
|
|
2207
|
+
if (_this__u8e3s4.d4d().b4d_1 === 'tel') {
|
|
2181
2208
|
// Inline function 'kotlin.require' call
|
|
2182
2209
|
// Inline function 'kotlin.require' call
|
|
2183
2210
|
if (!(slashCount === 0)) {
|
|
2184
2211
|
var message_1 = 'Failed requirement.';
|
|
2185
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2212
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
2186
2213
|
}
|
|
2187
|
-
_this__u8e3s4.
|
|
2214
|
+
_this__u8e3s4.r4c_1 = substring(urlString, startIndex, endIndex);
|
|
2188
2215
|
return _this__u8e3s4;
|
|
2189
2216
|
}
|
|
2190
2217
|
if (slashCount >= 2) {
|
|
@@ -2202,10 +2229,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2202
2229
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2203
2230
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2204
2231
|
if (!(passwordIndex === -1)) {
|
|
2205
|
-
_this__u8e3s4.
|
|
2206
|
-
_this__u8e3s4.
|
|
2232
|
+
_this__u8e3s4.v4c_1 = substring(urlString, startIndex, passwordIndex);
|
|
2233
|
+
_this__u8e3s4.w4c_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2207
2234
|
} else {
|
|
2208
|
-
_this__u8e3s4.
|
|
2235
|
+
_this__u8e3s4.v4c_1 = substring(urlString, startIndex, delimiter);
|
|
2209
2236
|
}
|
|
2210
2237
|
startIndex = delimiter + 1 | 0;
|
|
2211
2238
|
} else {
|
|
@@ -2216,34 +2243,34 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2216
2243
|
}
|
|
2217
2244
|
}
|
|
2218
2245
|
if (startIndex >= endIndex) {
|
|
2219
|
-
_this__u8e3s4.
|
|
2246
|
+
_this__u8e3s4.y4c_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2220
2247
|
return _this__u8e3s4;
|
|
2221
2248
|
}
|
|
2222
|
-
var tmp_0 = _this__u8e3s4;
|
|
2223
|
-
var tmp_1;
|
|
2224
|
-
if (slashCount === 0) {
|
|
2225
|
-
tmp_1 = dropLast(_this__u8e3s4.v4c_1, 1);
|
|
2226
|
-
} else {
|
|
2227
|
-
tmp_1 = emptyList();
|
|
2228
|
-
}
|
|
2229
|
-
tmp_0.v4c_1 = tmp_1;
|
|
2230
2249
|
// Inline function 'kotlin.takeIf' call
|
|
2231
2250
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2232
|
-
var
|
|
2233
|
-
if (this_1
|
|
2234
|
-
|
|
2251
|
+
var tmp_0;
|
|
2252
|
+
if (this_1 >= 0) {
|
|
2253
|
+
tmp_0 = this_1;
|
|
2235
2254
|
} else {
|
|
2236
|
-
|
|
2255
|
+
tmp_0 = null;
|
|
2237
2256
|
}
|
|
2238
|
-
var tmp1_elvis_lhs =
|
|
2257
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
2239
2258
|
var pathEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2240
2259
|
if (pathEnd > startIndex) {
|
|
2241
|
-
var
|
|
2260
|
+
var tmp_1 = _this__u8e3s4;
|
|
2261
|
+
var tmp_2;
|
|
2262
|
+
if (slashCount === 0) {
|
|
2263
|
+
tmp_2 = dropLast(_this__u8e3s4.y4c_1, 1);
|
|
2264
|
+
} else {
|
|
2265
|
+
tmp_2 = emptyList();
|
|
2266
|
+
}
|
|
2267
|
+
tmp_1.y4c_1 = tmp_2;
|
|
2268
|
+
var encodedPath = encodeURLPath(substring(urlString, startIndex, pathEnd), VOID, false);
|
|
2242
2269
|
var tmp_3;
|
|
2243
2270
|
var tmp_4;
|
|
2244
|
-
if (_this__u8e3s4.
|
|
2271
|
+
if (_this__u8e3s4.y4c_1.e1() === 1) {
|
|
2245
2272
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2246
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2273
|
+
var this_2 = first_0(_this__u8e3s4.y4c_1);
|
|
2247
2274
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2248
2275
|
} else {
|
|
2249
2276
|
tmp_4 = false;
|
|
@@ -2251,13 +2278,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2251
2278
|
if (tmp_4) {
|
|
2252
2279
|
tmp_3 = emptyList();
|
|
2253
2280
|
} else {
|
|
2254
|
-
tmp_3 = _this__u8e3s4.
|
|
2281
|
+
tmp_3 = _this__u8e3s4.y4c_1;
|
|
2255
2282
|
}
|
|
2256
2283
|
var basePath = tmp_3;
|
|
2257
|
-
var
|
|
2258
|
-
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(),
|
|
2259
|
-
_this__u8e3s4.
|
|
2284
|
+
var encodedChunks = encodedPath === '/' ? get_ROOT_PATH() : split(encodedPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2285
|
+
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), encodedChunks);
|
|
2286
|
+
_this__u8e3s4.y4c_1 = plus_0(basePath, relativePath);
|
|
2260
2287
|
startIndex = pathEnd;
|
|
2288
|
+
} else if (slashCount === 0 && _this__u8e3s4.y4c_1.r() && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2289
|
+
_this__u8e3s4.y4c_1 = get_ROOT_PATH();
|
|
2290
|
+
} else if (slashCount > 0) {
|
|
2291
|
+
_this__u8e3s4.y4c_1 = emptyList();
|
|
2261
2292
|
}
|
|
2262
2293
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2263
2294
|
startIndex = parseQuery(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
@@ -2304,28 +2335,53 @@ function count(urlString, startIndex, endIndex, char) {
|
|
|
2304
2335
|
}
|
|
2305
2336
|
function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
2306
2337
|
_init_properties_URLParser_kt__sf11to();
|
|
2338
|
+
var tmp;
|
|
2307
2339
|
switch (slashCount) {
|
|
2308
2340
|
case 1:
|
|
2309
|
-
_this__u8e3s4.
|
|
2310
|
-
|
|
2341
|
+
_this__u8e3s4.r4c_1 = '';
|
|
2342
|
+
tmp = startIndex;
|
|
2311
2343
|
break;
|
|
2312
2344
|
case 2:
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2345
|
+
// Inline function 'kotlin.takeIf' call
|
|
2346
|
+
|
|
2347
|
+
var this_0 = indexOfAny(urlString, toCharArray('/?#'), startIndex);
|
|
2348
|
+
var tmp_0;
|
|
2349
|
+
if (startIndex <= this_0 ? this_0 < endIndex : false) {
|
|
2350
|
+
tmp_0 = this_0;
|
|
2351
|
+
} else {
|
|
2352
|
+
tmp_0 = null;
|
|
2317
2353
|
}
|
|
2318
2354
|
|
|
2319
|
-
|
|
2320
|
-
|
|
2355
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
2356
|
+
var hostEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2357
|
+
_this__u8e3s4.r4c_1 = substring(urlString, startIndex, hostEnd);
|
|
2358
|
+
tmp = hostEnd;
|
|
2321
2359
|
break;
|
|
2322
2360
|
case 3:
|
|
2323
|
-
_this__u8e3s4.
|
|
2324
|
-
|
|
2361
|
+
_this__u8e3s4.r4c_1 = '';
|
|
2362
|
+
tmp = startIndex;
|
|
2325
2363
|
break;
|
|
2326
2364
|
default:
|
|
2327
2365
|
throw IllegalArgumentException_init_$Create$('Invalid file url: ' + urlString);
|
|
2328
2366
|
}
|
|
2367
|
+
var pathStart = tmp;
|
|
2368
|
+
// Inline function 'kotlin.takeIf' call
|
|
2369
|
+
var this_1 = indexOfAny(urlString, toCharArray('?#'), pathStart);
|
|
2370
|
+
var tmp_1;
|
|
2371
|
+
if (this_1 >= 0) {
|
|
2372
|
+
tmp_1 = this_1;
|
|
2373
|
+
} else {
|
|
2374
|
+
tmp_1 = null;
|
|
2375
|
+
}
|
|
2376
|
+
var tmp2_elvis_lhs = tmp_1;
|
|
2377
|
+
var pathEnd = tmp2_elvis_lhs == null ? endIndex : tmp2_elvis_lhs;
|
|
2378
|
+
var path = encodeURLPath(substring(urlString, pathStart, pathEnd), VOID, false);
|
|
2379
|
+
set_encodedPath(_this__u8e3s4, slashCount === 3 ? '/' + path : path);
|
|
2380
|
+
var nextPartStart = pathEnd;
|
|
2381
|
+
if (nextPartStart < endIndex && charCodeAt(urlString, nextPartStart) === _Char___init__impl__6a9atx(63)) {
|
|
2382
|
+
nextPartStart = parseQuery(_this__u8e3s4, urlString, nextPartStart, endIndex);
|
|
2383
|
+
}
|
|
2384
|
+
parseFragment(_this__u8e3s4, urlString, nextPartStart, endIndex);
|
|
2329
2385
|
}
|
|
2330
2386
|
function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2331
2387
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2333,8 +2389,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2333
2389
|
if (delimiter === -1) {
|
|
2334
2390
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2335
2391
|
}
|
|
2336
|
-
_this__u8e3s4.
|
|
2337
|
-
_this__u8e3s4.
|
|
2392
|
+
_this__u8e3s4.h4e(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2393
|
+
_this__u8e3s4.r4c_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2338
2394
|
}
|
|
2339
2395
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2340
2396
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2386,21 +2442,21 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2386
2442
|
// Inline function 'kotlin.require' call
|
|
2387
2443
|
if (!tmp$ret$2) {
|
|
2388
2444
|
var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
|
|
2389
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2445
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2390
2446
|
}
|
|
2391
|
-
_this__u8e3s4.
|
|
2447
|
+
_this__u8e3s4.r4c_1 = hostValue;
|
|
2392
2448
|
var tmp_0;
|
|
2393
2449
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2394
2450
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2395
2451
|
} else {
|
|
2396
2452
|
tmp_0 = 0;
|
|
2397
2453
|
}
|
|
2398
|
-
_this__u8e3s4.
|
|
2454
|
+
_this__u8e3s4.z4d(tmp_0);
|
|
2399
2455
|
}
|
|
2400
2456
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2401
2457
|
_init_properties_URLParser_kt__sf11to();
|
|
2402
2458
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2403
|
-
_this__u8e3s4.
|
|
2459
|
+
_this__u8e3s4.s4c_1 = true;
|
|
2404
2460
|
return endIndex;
|
|
2405
2461
|
}
|
|
2406
2462
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2414,18 +2470,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2414
2470
|
var tmp0_elvis_lhs = tmp;
|
|
2415
2471
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2416
2472
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2417
|
-
rawParameters.
|
|
2473
|
+
rawParameters.x3x(parseQuery$lambda(_this__u8e3s4));
|
|
2418
2474
|
return fragmentStart;
|
|
2419
2475
|
}
|
|
2420
2476
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2421
2477
|
_init_properties_URLParser_kt__sf11to();
|
|
2422
2478
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2423
|
-
_this__u8e3s4.
|
|
2479
|
+
_this__u8e3s4.x4c_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2424
2480
|
}
|
|
2425
2481
|
}
|
|
2426
2482
|
function parseQuery$lambda($this_parseQuery) {
|
|
2427
2483
|
return function (key, values) {
|
|
2428
|
-
$this_parseQuery.
|
|
2484
|
+
$this_parseQuery.z4c_1.m3x(key, values);
|
|
2429
2485
|
return Unit_instance;
|
|
2430
2486
|
};
|
|
2431
2487
|
}
|
|
@@ -2433,47 +2489,47 @@ var properties_initialized_URLParser_kt_hd1g6a;
|
|
|
2433
2489
|
function _init_properties_URLParser_kt__sf11to() {
|
|
2434
2490
|
if (!properties_initialized_URLParser_kt_hd1g6a) {
|
|
2435
2491
|
properties_initialized_URLParser_kt_hd1g6a = true;
|
|
2436
|
-
ROOT_PATH =
|
|
2492
|
+
ROOT_PATH = listOf('');
|
|
2437
2493
|
}
|
|
2438
2494
|
}
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2441
|
-
this.
|
|
2442
|
-
this.
|
|
2443
|
-
this.
|
|
2444
|
-
this.
|
|
2445
|
-
this.
|
|
2495
|
+
function Companion_8() {
|
|
2496
|
+
Companion_instance_8 = this;
|
|
2497
|
+
this.b4e_1 = new URLProtocol('http', 80);
|
|
2498
|
+
this.c4e_1 = new URLProtocol('https', 443);
|
|
2499
|
+
this.d4e_1 = new URLProtocol('ws', 80);
|
|
2500
|
+
this.e4e_1 = new URLProtocol('wss', 443);
|
|
2501
|
+
this.f4e_1 = new URLProtocol('socks', 1080);
|
|
2446
2502
|
var tmp = this;
|
|
2447
2503
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2448
|
-
var this_0 =
|
|
2504
|
+
var this_0 = listOf_0([this.b4e_1, this.c4e_1, this.d4e_1, this.e4e_1, this.f4e_1]);
|
|
2449
2505
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2450
2506
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2451
2507
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2452
2508
|
var _iterator__ex2g4s = this_0.t();
|
|
2453
2509
|
while (_iterator__ex2g4s.u()) {
|
|
2454
2510
|
var element = _iterator__ex2g4s.v();
|
|
2455
|
-
var tmp$ret$2 = element.
|
|
2456
|
-
destination.
|
|
2511
|
+
var tmp$ret$2 = element.b4d_1;
|
|
2512
|
+
destination.c3(tmp$ret$2, element);
|
|
2457
2513
|
}
|
|
2458
|
-
tmp.
|
|
2514
|
+
tmp.g4e_1 = destination;
|
|
2459
2515
|
}
|
|
2460
|
-
protoOf(
|
|
2516
|
+
protoOf(Companion_8).o4e = function (name) {
|
|
2461
2517
|
// Inline function 'kotlin.let' call
|
|
2462
2518
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2463
|
-
var tmp0_elvis_lhs =
|
|
2519
|
+
var tmp0_elvis_lhs = Companion_getInstance_8().g4e_1.t2(it);
|
|
2464
2520
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2465
2521
|
};
|
|
2466
|
-
var
|
|
2467
|
-
function
|
|
2468
|
-
if (
|
|
2469
|
-
new
|
|
2470
|
-
return
|
|
2522
|
+
var Companion_instance_8;
|
|
2523
|
+
function Companion_getInstance_8() {
|
|
2524
|
+
if (Companion_instance_8 == null)
|
|
2525
|
+
new Companion_8();
|
|
2526
|
+
return Companion_instance_8;
|
|
2471
2527
|
}
|
|
2472
2528
|
function URLProtocol(name, defaultPort) {
|
|
2473
|
-
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
var tmp0 = this.
|
|
2529
|
+
Companion_getInstance_8();
|
|
2530
|
+
this.b4d_1 = name;
|
|
2531
|
+
this.c4d_1 = defaultPort;
|
|
2532
|
+
var tmp0 = this.b4d_1;
|
|
2477
2533
|
var tmp$ret$0;
|
|
2478
2534
|
$l$block: {
|
|
2479
2535
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2491,15 +2547,15 @@ function URLProtocol(name, defaultPort) {
|
|
|
2491
2547
|
// Inline function 'kotlin.require' call
|
|
2492
2548
|
if (!tmp$ret$0) {
|
|
2493
2549
|
var message = 'All characters should be lower case';
|
|
2494
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2550
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2495
2551
|
}
|
|
2496
2552
|
}
|
|
2497
2553
|
protoOf(URLProtocol).toString = function () {
|
|
2498
|
-
return 'URLProtocol(name=' + this.
|
|
2554
|
+
return 'URLProtocol(name=' + this.b4d_1 + ', defaultPort=' + this.c4d_1 + ')';
|
|
2499
2555
|
};
|
|
2500
2556
|
protoOf(URLProtocol).hashCode = function () {
|
|
2501
|
-
var result = getStringHashCode(this.
|
|
2502
|
-
result = imul(result, 31) + this.
|
|
2557
|
+
var result = getStringHashCode(this.b4d_1);
|
|
2558
|
+
result = imul(result, 31) + this.c4d_1 | 0;
|
|
2503
2559
|
return result;
|
|
2504
2560
|
};
|
|
2505
2561
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2507,35 +2563,38 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2507
2563
|
return true;
|
|
2508
2564
|
if (!(other instanceof URLProtocol))
|
|
2509
2565
|
return false;
|
|
2510
|
-
if (!(this.
|
|
2566
|
+
if (!(this.b4d_1 === other.b4d_1))
|
|
2511
2567
|
return false;
|
|
2512
|
-
if (!(this.
|
|
2568
|
+
if (!(this.c4d_1 === other.c4d_1))
|
|
2513
2569
|
return false;
|
|
2514
2570
|
return true;
|
|
2515
2571
|
};
|
|
2516
2572
|
function isSecure(_this__u8e3s4) {
|
|
2517
|
-
return _this__u8e3s4.
|
|
2573
|
+
return _this__u8e3s4.b4d_1 === 'https' || _this__u8e3s4.b4d_1 === 'wss';
|
|
2518
2574
|
}
|
|
2519
2575
|
function isWebsocket(_this__u8e3s4) {
|
|
2520
|
-
return _this__u8e3s4.
|
|
2576
|
+
return _this__u8e3s4.b4d_1 === 'ws' || _this__u8e3s4.b4d_1 === 'wss';
|
|
2521
2577
|
}
|
|
2522
2578
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2579
|
+
_this__u8e3s4.u4c_1 = url.u4c_1;
|
|
2523
2580
|
_this__u8e3s4.r4c_1 = url.r4c_1;
|
|
2524
|
-
_this__u8e3s4.
|
|
2525
|
-
_this__u8e3s4.
|
|
2581
|
+
_this__u8e3s4.z4d(url.t4c_1);
|
|
2582
|
+
_this__u8e3s4.y4c_1 = url.y4c_1;
|
|
2526
2583
|
_this__u8e3s4.v4c_1 = url.v4c_1;
|
|
2527
|
-
_this__u8e3s4.
|
|
2528
|
-
_this__u8e3s4.t4c_1 = url.t4c_1;
|
|
2584
|
+
_this__u8e3s4.w4c_1 = url.w4c_1;
|
|
2529
2585
|
// Inline function 'kotlin.apply' call
|
|
2530
2586
|
var this_0 = ParametersBuilder();
|
|
2531
|
-
appendAll(this_0, url.
|
|
2532
|
-
_this__u8e3s4.
|
|
2533
|
-
_this__u8e3s4.
|
|
2534
|
-
_this__u8e3s4.
|
|
2587
|
+
appendAll(this_0, url.z4c_1);
|
|
2588
|
+
_this__u8e3s4.m4e(this_0);
|
|
2589
|
+
_this__u8e3s4.x4c_1 = url.x4c_1;
|
|
2590
|
+
_this__u8e3s4.s4c_1 = url.s4c_1;
|
|
2535
2591
|
return _this__u8e3s4;
|
|
2536
2592
|
}
|
|
2593
|
+
function get_hostWithPort(_this__u8e3s4) {
|
|
2594
|
+
return _this__u8e3s4.e4d_1 + ':' + _this__u8e3s4.p4e();
|
|
2595
|
+
}
|
|
2537
2596
|
function Url(urlString) {
|
|
2538
|
-
return URLBuilder_0(urlString).
|
|
2597
|
+
return URLBuilder_0(urlString).f45();
|
|
2539
2598
|
}
|
|
2540
2599
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2541
2600
|
var tmp;
|
|
@@ -2553,9 +2612,9 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2553
2612
|
_this__u8e3s4.c1('?');
|
|
2554
2613
|
}
|
|
2555
2614
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2556
|
-
var tmp0 = encodedQueryParameters.
|
|
2615
|
+
var tmp0 = encodedQueryParameters.l3x();
|
|
2557
2616
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2558
|
-
var destination = ArrayList_init_$Create$
|
|
2617
|
+
var destination = ArrayList_init_$Create$();
|
|
2559
2618
|
var _iterator__ex2g4s = tmp0.t();
|
|
2560
2619
|
while (_iterator__ex2g4s.u()) {
|
|
2561
2620
|
var element = _iterator__ex2g4s.v();
|
|
@@ -2565,11 +2624,11 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2565
2624
|
var value = element.p1();
|
|
2566
2625
|
var tmp_0;
|
|
2567
2626
|
if (value.r()) {
|
|
2568
|
-
tmp_0 =
|
|
2627
|
+
tmp_0 = listOf(to(key, null));
|
|
2569
2628
|
} else {
|
|
2570
2629
|
// Inline function 'kotlin.collections.map' call
|
|
2571
2630
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2572
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(value, 10));
|
|
2631
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(value, 10));
|
|
2573
2632
|
var _iterator__ex2g4s_0 = value.t();
|
|
2574
2633
|
while (_iterator__ex2g4s_0.u()) {
|
|
2575
2634
|
var item = _iterator__ex2g4s_0.v();
|
|
@@ -2599,28 +2658,25 @@ function URLBuilder_0(urlString) {
|
|
|
2599
2658
|
return takeFrom(new URLBuilder(), urlString);
|
|
2600
2659
|
}
|
|
2601
2660
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2602
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2603
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2604
|
-
}
|
|
2605
|
-
function get_hostWithPort(_this__u8e3s4) {
|
|
2606
|
-
return _this__u8e3s4.b4d_1 + ':' + _this__u8e3s4.m4e();
|
|
2661
|
+
var tmp0_subject = _this__u8e3s4.f4d_1;
|
|
2662
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.q4d_1.c4d_1 ? _this__u8e3s4.e4d_1 : get_hostWithPort(_this__u8e3s4);
|
|
2607
2663
|
}
|
|
2608
2664
|
function appendUrlFullPath$lambda(it) {
|
|
2609
|
-
var key = it.
|
|
2665
|
+
var key = it.tg_1;
|
|
2610
2666
|
var tmp;
|
|
2611
|
-
if (it.
|
|
2667
|
+
if (it.ug_1 == null) {
|
|
2612
2668
|
tmp = key;
|
|
2613
2669
|
} else {
|
|
2614
|
-
var value = toString_1(it.
|
|
2670
|
+
var value = toString_1(it.ug_1);
|
|
2615
2671
|
tmp = key + '=' + value;
|
|
2616
2672
|
}
|
|
2617
2673
|
return tmp;
|
|
2618
2674
|
}
|
|
2619
|
-
function
|
|
2675
|
+
function Companion_9() {
|
|
2620
2676
|
}
|
|
2621
|
-
var
|
|
2622
|
-
function
|
|
2623
|
-
return
|
|
2677
|
+
var Companion_instance_9;
|
|
2678
|
+
function Companion_getInstance_9() {
|
|
2679
|
+
return Companion_instance_9;
|
|
2624
2680
|
}
|
|
2625
2681
|
function Url$segments$delegate$lambda($pathSegments) {
|
|
2626
2682
|
return function () {
|
|
@@ -2652,7 +2708,7 @@ function Url$segments$delegate$lambda($pathSegments) {
|
|
|
2652
2708
|
tmp_2 = get_lastIndex($pathSegments) + 1 | 0;
|
|
2653
2709
|
}
|
|
2654
2710
|
var end = tmp_2;
|
|
2655
|
-
return $pathSegments.
|
|
2711
|
+
return $pathSegments.q2(start, end);
|
|
2656
2712
|
};
|
|
2657
2713
|
}
|
|
2658
2714
|
function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
@@ -2661,146 +2717,146 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2661
2717
|
if ($pathSegments.r()) {
|
|
2662
2718
|
return '';
|
|
2663
2719
|
}
|
|
2664
|
-
var pathStartIndex = indexOf(this$0.
|
|
2720
|
+
var pathStartIndex = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(47), this$0.q4d_1.b4d_1.length + 3 | 0);
|
|
2665
2721
|
var tmp_0;
|
|
2666
2722
|
if (pathStartIndex === -1) {
|
|
2667
2723
|
return '';
|
|
2668
2724
|
}
|
|
2669
2725
|
// Inline function 'kotlin.charArrayOf' call
|
|
2670
2726
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2671
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2727
|
+
var pathEndIndex = indexOfAny(this$0.l4d_1, tmp$ret$0, pathStartIndex);
|
|
2672
2728
|
var tmp_1;
|
|
2673
2729
|
if (pathEndIndex === -1) {
|
|
2674
|
-
return substring_0(this$0.
|
|
2730
|
+
return substring_0(this$0.l4d_1, pathStartIndex);
|
|
2675
2731
|
}
|
|
2676
|
-
return substring(this$0.
|
|
2732
|
+
return substring(this$0.l4d_1, pathStartIndex, pathEndIndex);
|
|
2677
2733
|
};
|
|
2678
2734
|
}
|
|
2679
2735
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2680
2736
|
return function () {
|
|
2681
|
-
var queryStart = indexOf(this$0.
|
|
2737
|
+
var queryStart = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2682
2738
|
var tmp;
|
|
2683
2739
|
if (queryStart === 0) {
|
|
2684
2740
|
return '';
|
|
2685
2741
|
}
|
|
2686
|
-
var queryEnd = indexOf(this$0.
|
|
2742
|
+
var queryEnd = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2687
2743
|
var tmp_0;
|
|
2688
2744
|
if (queryEnd === -1) {
|
|
2689
|
-
return substring_0(this$0.
|
|
2745
|
+
return substring_0(this$0.l4d_1, queryStart);
|
|
2690
2746
|
}
|
|
2691
|
-
return substring(this$0.
|
|
2747
|
+
return substring(this$0.l4d_1, queryStart, queryEnd);
|
|
2692
2748
|
};
|
|
2693
2749
|
}
|
|
2694
2750
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2695
2751
|
return function () {
|
|
2696
|
-
var pathStart = indexOf(this$0.
|
|
2752
|
+
var pathStart = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(47), this$0.q4d_1.b4d_1.length + 3 | 0);
|
|
2697
2753
|
var tmp;
|
|
2698
2754
|
if (pathStart === -1) {
|
|
2699
2755
|
return '';
|
|
2700
2756
|
}
|
|
2701
|
-
var queryEnd = indexOf(this$0.
|
|
2757
|
+
var queryEnd = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2702
2758
|
var tmp_0;
|
|
2703
2759
|
if (queryEnd === -1) {
|
|
2704
|
-
return substring_0(this$0.
|
|
2760
|
+
return substring_0(this$0.l4d_1, pathStart);
|
|
2705
2761
|
}
|
|
2706
|
-
return substring(this$0.
|
|
2762
|
+
return substring(this$0.l4d_1, pathStart, queryEnd);
|
|
2707
2763
|
};
|
|
2708
2764
|
}
|
|
2709
2765
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2710
2766
|
return function () {
|
|
2711
2767
|
var tmp;
|
|
2712
|
-
if (this$0.
|
|
2768
|
+
if (this$0.i4d_1 == null) {
|
|
2713
2769
|
return null;
|
|
2714
2770
|
}
|
|
2715
2771
|
var tmp_0;
|
|
2716
2772
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2717
|
-
var this_0 = this$0.
|
|
2773
|
+
var this_0 = this$0.i4d_1;
|
|
2718
2774
|
if (charSequenceLength(this_0) === 0) {
|
|
2719
2775
|
return '';
|
|
2720
2776
|
}
|
|
2721
|
-
var usernameStart = this$0.
|
|
2777
|
+
var usernameStart = this$0.q4d_1.b4d_1.length + 3 | 0;
|
|
2722
2778
|
// Inline function 'kotlin.charArrayOf' call
|
|
2723
2779
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2724
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2725
|
-
return substring(this$0.
|
|
2780
|
+
var usernameEnd = indexOfAny(this$0.l4d_1, tmp$ret$1, usernameStart);
|
|
2781
|
+
return substring(this$0.l4d_1, usernameStart, usernameEnd);
|
|
2726
2782
|
};
|
|
2727
2783
|
}
|
|
2728
2784
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2729
2785
|
return constructCallableReference(function (p0) {
|
|
2730
|
-
return p0.
|
|
2786
|
+
return p0.q4e();
|
|
2731
2787
|
}, 1, 0, 21);
|
|
2732
2788
|
}
|
|
2733
2789
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2734
2790
|
return function () {
|
|
2735
2791
|
var tmp;
|
|
2736
|
-
if (this$0.
|
|
2792
|
+
if (this$0.j4d_1 == null) {
|
|
2737
2793
|
return null;
|
|
2738
2794
|
}
|
|
2739
2795
|
var tmp_0;
|
|
2740
2796
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2741
|
-
var this_0 = this$0.
|
|
2797
|
+
var this_0 = this$0.j4d_1;
|
|
2742
2798
|
if (charSequenceLength(this_0) === 0) {
|
|
2743
2799
|
return '';
|
|
2744
2800
|
}
|
|
2745
|
-
var passwordStart = indexOf(this$0.
|
|
2746
|
-
var passwordEnd = indexOf(this$0.
|
|
2747
|
-
return substring(this$0.
|
|
2801
|
+
var passwordStart = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(58), this$0.q4d_1.b4d_1.length + 3 | 0) + 1 | 0;
|
|
2802
|
+
var passwordEnd = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(64));
|
|
2803
|
+
return substring(this$0.l4d_1, passwordStart, passwordEnd);
|
|
2748
2804
|
};
|
|
2749
2805
|
}
|
|
2750
2806
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2751
2807
|
return constructCallableReference(function (p0) {
|
|
2752
|
-
return p0.
|
|
2808
|
+
return p0.r4e();
|
|
2753
2809
|
}, 1, 0, 22);
|
|
2754
2810
|
}
|
|
2755
2811
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2756
2812
|
return function () {
|
|
2757
|
-
var fragmentStart = indexOf(this$0.
|
|
2813
|
+
var fragmentStart = indexOf(this$0.l4d_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2758
2814
|
var tmp;
|
|
2759
2815
|
if (fragmentStart === 0) {
|
|
2760
2816
|
return '';
|
|
2761
2817
|
}
|
|
2762
|
-
return substring_0(this$0.
|
|
2818
|
+
return substring_0(this$0.l4d_1, fragmentStart);
|
|
2763
2819
|
};
|
|
2764
2820
|
}
|
|
2765
2821
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2766
|
-
this.
|
|
2767
|
-
this.
|
|
2768
|
-
this.
|
|
2769
|
-
this.
|
|
2770
|
-
this.
|
|
2771
|
-
this.
|
|
2772
|
-
this.
|
|
2773
|
-
this.
|
|
2774
|
-
var containsArg = this.
|
|
2822
|
+
this.e4d_1 = host;
|
|
2823
|
+
this.f4d_1 = specifiedPort;
|
|
2824
|
+
this.g4d_1 = parameters;
|
|
2825
|
+
this.h4d_1 = fragment;
|
|
2826
|
+
this.i4d_1 = user;
|
|
2827
|
+
this.j4d_1 = password;
|
|
2828
|
+
this.k4d_1 = trailingQuery;
|
|
2829
|
+
this.l4d_1 = urlString;
|
|
2830
|
+
var containsArg = this.f4d_1;
|
|
2775
2831
|
// Inline function 'kotlin.require' call
|
|
2776
2832
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2777
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2778
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2833
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.f4d_1;
|
|
2834
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2779
2835
|
}
|
|
2780
|
-
this.
|
|
2781
|
-
this.
|
|
2836
|
+
this.m4d_1 = pathSegments;
|
|
2837
|
+
this.n4d_1 = pathSegments;
|
|
2782
2838
|
var tmp = this;
|
|
2783
|
-
tmp.
|
|
2784
|
-
this.
|
|
2839
|
+
tmp.o4d_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2840
|
+
this.p4d_1 = protocol;
|
|
2785
2841
|
var tmp_0 = this;
|
|
2786
|
-
var tmp0_elvis_lhs = this.
|
|
2787
|
-
tmp_0.
|
|
2842
|
+
var tmp0_elvis_lhs = this.p4d_1;
|
|
2843
|
+
tmp_0.q4d_1 = tmp0_elvis_lhs == null ? Companion_getInstance_8().b4e_1 : tmp0_elvis_lhs;
|
|
2788
2844
|
var tmp_1 = this;
|
|
2789
|
-
tmp_1.
|
|
2845
|
+
tmp_1.r4d_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2790
2846
|
var tmp_2 = this;
|
|
2791
|
-
tmp_2.
|
|
2847
|
+
tmp_2.s4d_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2792
2848
|
var tmp_3 = this;
|
|
2793
|
-
tmp_3.
|
|
2849
|
+
tmp_3.t4d_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2794
2850
|
var tmp_4 = this;
|
|
2795
|
-
tmp_4.
|
|
2851
|
+
tmp_4.u4d_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2796
2852
|
var tmp_5 = this;
|
|
2797
|
-
tmp_5.
|
|
2853
|
+
tmp_5.v4d_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2798
2854
|
var tmp_6 = this;
|
|
2799
|
-
tmp_6.
|
|
2855
|
+
tmp_6.w4d_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2800
2856
|
}
|
|
2801
|
-
protoOf(Url_0).
|
|
2857
|
+
protoOf(Url_0).p4e = function () {
|
|
2802
2858
|
// Inline function 'kotlin.takeUnless' call
|
|
2803
|
-
var this_0 = this.
|
|
2859
|
+
var this_0 = this.f4d_1;
|
|
2804
2860
|
var tmp;
|
|
2805
2861
|
if (!(this_0 === 0)) {
|
|
2806
2862
|
tmp = this_0;
|
|
@@ -2808,24 +2864,24 @@ protoOf(Url_0).m4e = function () {
|
|
|
2808
2864
|
tmp = null;
|
|
2809
2865
|
}
|
|
2810
2866
|
var tmp0_elvis_lhs = tmp;
|
|
2811
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2867
|
+
return tmp0_elvis_lhs == null ? this.q4d_1.c4d_1 : tmp0_elvis_lhs;
|
|
2812
2868
|
};
|
|
2813
|
-
protoOf(Url_0).
|
|
2814
|
-
var tmp0 = this.
|
|
2869
|
+
protoOf(Url_0).q4e = function () {
|
|
2870
|
+
var tmp0 = this.u4d_1;
|
|
2815
2871
|
var tmp = KProperty1;
|
|
2816
2872
|
// Inline function 'kotlin.getValue' call
|
|
2817
2873
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2818
2874
|
return tmp0.p1();
|
|
2819
2875
|
};
|
|
2820
|
-
protoOf(Url_0).
|
|
2821
|
-
var tmp0 = this.
|
|
2876
|
+
protoOf(Url_0).r4e = function () {
|
|
2877
|
+
var tmp0 = this.v4d_1;
|
|
2822
2878
|
var tmp = KProperty1;
|
|
2823
2879
|
// Inline function 'kotlin.getValue' call
|
|
2824
2880
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2825
2881
|
return tmp0.p1();
|
|
2826
2882
|
};
|
|
2827
2883
|
protoOf(Url_0).toString = function () {
|
|
2828
|
-
return this.
|
|
2884
|
+
return this.l4d_1;
|
|
2829
2885
|
};
|
|
2830
2886
|
protoOf(Url_0).equals = function (other) {
|
|
2831
2887
|
if (this === other)
|
|
@@ -2834,34 +2890,34 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2834
2890
|
return false;
|
|
2835
2891
|
if (!(other instanceof Url_0))
|
|
2836
2892
|
THROW_CCE();
|
|
2837
|
-
return this.
|
|
2893
|
+
return this.l4d_1 === other.l4d_1;
|
|
2838
2894
|
};
|
|
2839
2895
|
protoOf(Url_0).hashCode = function () {
|
|
2840
|
-
return getStringHashCode(this.
|
|
2896
|
+
return getStringHashCode(this.l4d_1);
|
|
2841
2897
|
};
|
|
2842
2898
|
function get_authority_0(_this__u8e3s4) {
|
|
2843
2899
|
// Inline function 'kotlin.text.buildString' call
|
|
2844
2900
|
// Inline function 'kotlin.apply' call
|
|
2845
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2901
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2846
2902
|
this_0.q(get_encodedUserAndPassword_0(_this__u8e3s4));
|
|
2847
2903
|
this_0.q(get_hostWithPortIfSpecified(_this__u8e3s4));
|
|
2848
2904
|
return this_0.toString();
|
|
2849
2905
|
}
|
|
2850
2906
|
function UrlSerializer() {
|
|
2851
2907
|
UrlSerializer_instance = this;
|
|
2852
|
-
this.
|
|
2908
|
+
this.s4e_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2853
2909
|
}
|
|
2854
|
-
protoOf(UrlSerializer).
|
|
2855
|
-
return this.
|
|
2910
|
+
protoOf(UrlSerializer).hq = function () {
|
|
2911
|
+
return this.s4e_1;
|
|
2856
2912
|
};
|
|
2857
|
-
protoOf(UrlSerializer).
|
|
2858
|
-
return Url(decoder.
|
|
2913
|
+
protoOf(UrlSerializer).jq = function (decoder) {
|
|
2914
|
+
return Url(decoder.et());
|
|
2859
2915
|
};
|
|
2860
|
-
protoOf(UrlSerializer).
|
|
2861
|
-
encoder.
|
|
2916
|
+
protoOf(UrlSerializer).t4e = function (encoder, value) {
|
|
2917
|
+
encoder.nu(value.toString());
|
|
2862
2918
|
};
|
|
2863
|
-
protoOf(UrlSerializer).
|
|
2864
|
-
return this.
|
|
2919
|
+
protoOf(UrlSerializer).iq = function (encoder, value) {
|
|
2920
|
+
return this.t4e(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2865
2921
|
};
|
|
2866
2922
|
var UrlSerializer_instance;
|
|
2867
2923
|
function UrlSerializer_getInstance() {
|
|
@@ -2872,29 +2928,29 @@ function UrlSerializer_getInstance() {
|
|
|
2872
2928
|
function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
2873
2929
|
// Inline function 'kotlin.text.buildString' call
|
|
2874
2930
|
// Inline function 'kotlin.apply' call
|
|
2875
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2876
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2931
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2932
|
+
appendUserAndPassword(this_0, _this__u8e3s4.q4e(), _this__u8e3s4.r4e());
|
|
2877
2933
|
return this_0.toString();
|
|
2878
2934
|
}
|
|
2879
2935
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2936
|
+
this.u4e_1 = encodedParametersBuilder;
|
|
2937
|
+
this.v4e_1 = this.u4e_1.q3x();
|
|
2882
2938
|
}
|
|
2883
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2884
|
-
return decodeParameters(this.
|
|
2939
|
+
protoOf(UrlDecodedParametersBuilder).f45 = function () {
|
|
2940
|
+
return decodeParameters(this.u4e_1);
|
|
2885
2941
|
};
|
|
2886
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2887
|
-
return this.
|
|
2942
|
+
protoOf(UrlDecodedParametersBuilder).q3x = function () {
|
|
2943
|
+
return this.v4e_1;
|
|
2888
2944
|
};
|
|
2889
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2890
|
-
var tmp0_safe_receiver = this.
|
|
2945
|
+
protoOf(UrlDecodedParametersBuilder).r3x = function (name) {
|
|
2946
|
+
var tmp0_safe_receiver = this.u4e_1.r3x(encodeURLParameter(name));
|
|
2891
2947
|
var tmp;
|
|
2892
2948
|
if (tmp0_safe_receiver == null) {
|
|
2893
2949
|
tmp = null;
|
|
2894
2950
|
} else {
|
|
2895
2951
|
// Inline function 'kotlin.collections.map' call
|
|
2896
2952
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2897
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
2953
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
2898
2954
|
var _iterator__ex2g4s = tmp0_safe_receiver.t();
|
|
2899
2955
|
while (_iterator__ex2g4s.u()) {
|
|
2900
2956
|
var item = _iterator__ex2g4s.v();
|
|
@@ -2905,11 +2961,11 @@ protoOf(UrlDecodedParametersBuilder).y3x = function (name) {
|
|
|
2905
2961
|
}
|
|
2906
2962
|
return tmp;
|
|
2907
2963
|
};
|
|
2908
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2964
|
+
protoOf(UrlDecodedParametersBuilder).s3x = function () {
|
|
2909
2965
|
// Inline function 'kotlin.collections.map' call
|
|
2910
|
-
var this_0 = this.
|
|
2966
|
+
var this_0 = this.u4e_1.s3x();
|
|
2911
2967
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2912
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2968
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2913
2969
|
var _iterator__ex2g4s = this_0.t();
|
|
2914
2970
|
while (_iterator__ex2g4s.u()) {
|
|
2915
2971
|
var item = _iterator__ex2g4s.v();
|
|
@@ -2919,32 +2975,32 @@ protoOf(UrlDecodedParametersBuilder).z3x = function () {
|
|
|
2919
2975
|
return toSet(destination);
|
|
2920
2976
|
};
|
|
2921
2977
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
2922
|
-
return this.
|
|
2978
|
+
return this.u4e_1.r();
|
|
2923
2979
|
};
|
|
2924
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2925
|
-
return decodeParameters(this.
|
|
2980
|
+
protoOf(UrlDecodedParametersBuilder).l3x = function () {
|
|
2981
|
+
return decodeParameters(this.u4e_1).l3x();
|
|
2926
2982
|
};
|
|
2927
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2928
|
-
return this.
|
|
2983
|
+
protoOf(UrlDecodedParametersBuilder).v3x = function (name, value) {
|
|
2984
|
+
return this.u4e_1.v3x(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2929
2985
|
};
|
|
2930
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2931
|
-
return appendAllEncoded(this.
|
|
2986
|
+
protoOf(UrlDecodedParametersBuilder).w3x = function (stringValues) {
|
|
2987
|
+
return appendAllEncoded(this.u4e_1, stringValues);
|
|
2932
2988
|
};
|
|
2933
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2989
|
+
protoOf(UrlDecodedParametersBuilder).m3x = function (name, values) {
|
|
2934
2990
|
var tmp = encodeURLParameter(name);
|
|
2935
2991
|
// Inline function 'kotlin.collections.map' call
|
|
2936
2992
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2937
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
2993
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
2938
2994
|
var _iterator__ex2g4s = values.t();
|
|
2939
2995
|
while (_iterator__ex2g4s.u()) {
|
|
2940
2996
|
var item = _iterator__ex2g4s.v();
|
|
2941
2997
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
2942
2998
|
destination.b1(tmp$ret$2);
|
|
2943
2999
|
}
|
|
2944
|
-
return this.
|
|
3000
|
+
return this.u4e_1.m3x(tmp, destination);
|
|
2945
3001
|
};
|
|
2946
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2947
|
-
return this.
|
|
3002
|
+
protoOf(UrlDecodedParametersBuilder).x2 = function () {
|
|
3003
|
+
return this.u4e_1.x2();
|
|
2948
3004
|
};
|
|
2949
3005
|
function encodeParameters(parameters) {
|
|
2950
3006
|
// Inline function 'kotlin.apply' call
|
|
@@ -2956,46 +3012,46 @@ function decodeParameters(parameters) {
|
|
|
2956
3012
|
// Inline function 'kotlin.apply' call
|
|
2957
3013
|
var this_0 = ParametersBuilder();
|
|
2958
3014
|
appendAllDecoded(this_0, parameters);
|
|
2959
|
-
return this_0.
|
|
3015
|
+
return this_0.f45();
|
|
2960
3016
|
}
|
|
2961
3017
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
2962
3018
|
// Inline function 'kotlin.collections.forEach' call
|
|
2963
|
-
var _iterator__ex2g4s = parameters.
|
|
3019
|
+
var _iterator__ex2g4s = parameters.s3x().t();
|
|
2964
3020
|
while (_iterator__ex2g4s.u()) {
|
|
2965
3021
|
var element = _iterator__ex2g4s.v();
|
|
2966
|
-
var tmp0_elvis_lhs = parameters.
|
|
3022
|
+
var tmp0_elvis_lhs = parameters.r3x(element);
|
|
2967
3023
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2968
3024
|
var tmp = encodeURLParameter(element);
|
|
2969
3025
|
// Inline function 'kotlin.collections.map' call
|
|
2970
3026
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2971
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3027
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
2972
3028
|
var _iterator__ex2g4s_0 = values.t();
|
|
2973
3029
|
while (_iterator__ex2g4s_0.u()) {
|
|
2974
3030
|
var item = _iterator__ex2g4s_0.v();
|
|
2975
3031
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
2976
3032
|
destination.b1(tmp$ret$4);
|
|
2977
3033
|
}
|
|
2978
|
-
_this__u8e3s4.
|
|
3034
|
+
_this__u8e3s4.m3x(tmp, destination);
|
|
2979
3035
|
}
|
|
2980
3036
|
}
|
|
2981
3037
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
2982
3038
|
// Inline function 'kotlin.collections.forEach' call
|
|
2983
|
-
var _iterator__ex2g4s = parameters.
|
|
3039
|
+
var _iterator__ex2g4s = parameters.s3x().t();
|
|
2984
3040
|
while (_iterator__ex2g4s.u()) {
|
|
2985
3041
|
var element = _iterator__ex2g4s.v();
|
|
2986
|
-
var tmp0_elvis_lhs = parameters.
|
|
3042
|
+
var tmp0_elvis_lhs = parameters.r3x(element);
|
|
2987
3043
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2988
3044
|
var tmp = decodeURLQueryComponent(element);
|
|
2989
3045
|
// Inline function 'kotlin.collections.map' call
|
|
2990
3046
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2991
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3047
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
2992
3048
|
var _iterator__ex2g4s_0 = values.t();
|
|
2993
3049
|
while (_iterator__ex2g4s_0.u()) {
|
|
2994
3050
|
var item = _iterator__ex2g4s_0.v();
|
|
2995
3051
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
2996
3052
|
destination.b1(tmp$ret$4);
|
|
2997
3053
|
}
|
|
2998
|
-
_this__u8e3s4.
|
|
3054
|
+
_this__u8e3s4.m3x(tmp, destination);
|
|
2999
3055
|
}
|
|
3000
3056
|
}
|
|
3001
3057
|
function MultiPartData() {
|
|
@@ -3015,20 +3071,20 @@ function ProtocolUpgrade() {
|
|
|
3015
3071
|
}
|
|
3016
3072
|
function ContentWrapper() {
|
|
3017
3073
|
}
|
|
3018
|
-
protoOf(ContentWrapper).
|
|
3019
|
-
return this.
|
|
3074
|
+
protoOf(ContentWrapper).h4f = function () {
|
|
3075
|
+
return this.g4f_1;
|
|
3020
3076
|
};
|
|
3021
3077
|
function OutgoingContent() {
|
|
3022
|
-
this.
|
|
3078
|
+
this.w4e_1 = null;
|
|
3023
3079
|
}
|
|
3024
|
-
protoOf(OutgoingContent).
|
|
3080
|
+
protoOf(OutgoingContent).x4e = function () {
|
|
3025
3081
|
return null;
|
|
3026
3082
|
};
|
|
3027
|
-
protoOf(OutgoingContent).
|
|
3083
|
+
protoOf(OutgoingContent).y4e = function () {
|
|
3028
3084
|
return null;
|
|
3029
3085
|
};
|
|
3030
|
-
protoOf(OutgoingContent).
|
|
3031
|
-
return
|
|
3086
|
+
protoOf(OutgoingContent).m49 = function () {
|
|
3087
|
+
return Companion_getInstance_2().h49_1;
|
|
3032
3088
|
};
|
|
3033
3089
|
function NullBody() {
|
|
3034
3090
|
}
|
|
@@ -3042,7 +3098,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3042
3098
|
tmp = true;
|
|
3043
3099
|
} else {
|
|
3044
3100
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3045
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3101
|
+
tmp = isEmpty(_this__u8e3s4.h4f());
|
|
3046
3102
|
} else {
|
|
3047
3103
|
tmp = false;
|
|
3048
3104
|
}
|
|
@@ -3052,27 +3108,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3052
3108
|
function TextContent(text, contentType, status) {
|
|
3053
3109
|
status = status === VOID ? null : status;
|
|
3054
3110
|
ByteArrayContent.call(this);
|
|
3055
|
-
this.
|
|
3056
|
-
this.
|
|
3057
|
-
this.
|
|
3111
|
+
this.j4f_1 = text;
|
|
3112
|
+
this.k4f_1 = contentType;
|
|
3113
|
+
this.l4f_1 = status;
|
|
3058
3114
|
var tmp = this;
|
|
3059
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3060
|
-
tmp.
|
|
3115
|
+
var tmp0_elvis_lhs = charset(this.k4f_1);
|
|
3116
|
+
tmp.m4f_1 = toByteArray(this.j4f_1, tmp0_elvis_lhs == null ? Charsets_getInstance().g3u_1 : tmp0_elvis_lhs);
|
|
3061
3117
|
}
|
|
3062
|
-
protoOf(TextContent).
|
|
3063
|
-
return this.
|
|
3118
|
+
protoOf(TextContent).x4e = function () {
|
|
3119
|
+
return this.k4f_1;
|
|
3064
3120
|
};
|
|
3065
|
-
protoOf(TextContent).
|
|
3066
|
-
return fromInt(this.
|
|
3121
|
+
protoOf(TextContent).y4e = function () {
|
|
3122
|
+
return fromInt(this.m4f_1.length);
|
|
3067
3123
|
};
|
|
3068
|
-
protoOf(TextContent).
|
|
3069
|
-
return this.
|
|
3124
|
+
protoOf(TextContent).e4f = function () {
|
|
3125
|
+
return this.m4f_1;
|
|
3070
3126
|
};
|
|
3071
3127
|
protoOf(TextContent).toString = function () {
|
|
3072
|
-
return 'TextContent[' + this.
|
|
3128
|
+
return 'TextContent[' + this.k4f_1.toString() + '] "' + take(this.j4f_1, 30) + '"';
|
|
3073
3129
|
};
|
|
3074
3130
|
function get_origin(_this__u8e3s4) {
|
|
3075
|
-
return PlatformUtils_getInstance().
|
|
3131
|
+
return PlatformUtils_getInstance().d3x_1 ? locationOrigin() : 'http://localhost';
|
|
3076
3132
|
}
|
|
3077
3133
|
function locationOrigin() {
|
|
3078
3134
|
return function () {
|
|
@@ -3090,31 +3146,32 @@ function locationOrigin() {
|
|
|
3090
3146
|
}();
|
|
3091
3147
|
}
|
|
3092
3148
|
//region block: post-declaration
|
|
3093
|
-
protoOf(EmptyHeaders).
|
|
3094
|
-
protoOf(EmptyHeaders).
|
|
3095
|
-
protoOf(EmptyParameters).
|
|
3096
|
-
protoOf(EmptyParameters).
|
|
3149
|
+
protoOf(EmptyHeaders).td = get;
|
|
3150
|
+
protoOf(EmptyHeaders).x3x = forEach;
|
|
3151
|
+
protoOf(EmptyParameters).td = get;
|
|
3152
|
+
protoOf(EmptyParameters).x3x = forEach;
|
|
3097
3153
|
//endregion
|
|
3098
3154
|
//region block: init
|
|
3099
|
-
|
|
3155
|
+
Companion_instance = new Companion();
|
|
3156
|
+
Companion_instance_1 = new Companion_1();
|
|
3100
3157
|
EmptyHeaders_instance = new EmptyHeaders();
|
|
3101
3158
|
EmptyParameters_instance = new EmptyParameters();
|
|
3102
|
-
|
|
3159
|
+
Companion_instance_9 = new Companion_9();
|
|
3103
3160
|
NullBody_instance = new NullBody();
|
|
3104
3161
|
//endregion
|
|
3105
3162
|
//region block: exports
|
|
3106
3163
|
export {
|
|
3107
3164
|
NullBody_instance as NullBody_instanceyfq32eqie90j,
|
|
3108
3165
|
Application_getInstance as Application_getInstance17ubdrb0i0ohu,
|
|
3109
|
-
|
|
3166
|
+
Companion_getInstance_0 as Companion_getInstance3eu9tsw6r4gc4,
|
|
3110
3167
|
MultiPart_getInstance as MultiPart_getInstance1k6b6wx1k1sjr,
|
|
3111
3168
|
Text_getInstance as Text_getInstancecnzpw4phsgym,
|
|
3112
|
-
|
|
3169
|
+
Companion_getInstance_2 as Companion_getInstance37paccmlttr9s,
|
|
3113
3170
|
HttpHeaders_getInstance as HttpHeaders_getInstance3m47m69p49qfb,
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3171
|
+
Companion_getInstance_3 as Companion_getInstance1pptfj8vjmgsz,
|
|
3172
|
+
Companion_getInstance_4 as Companion_getInstance222gjh8cwt6g7,
|
|
3173
|
+
Companion_getInstance_5 as Companion_getInstance2192nrpo98q6y,
|
|
3174
|
+
Companion_getInstance_6 as Companion_getInstance2z7k6aavckkrm,
|
|
3118
3175
|
MultiPartData as MultiPartData57syw40llxls,
|
|
3119
3176
|
NullBody as NullBody1903zz7riiwr0,
|
|
3120
3177
|
ByteArrayContent as ByteArrayContent2n0wb43y6ugs1,
|