@solibo/home-api 1.16.17 → 1.16.18
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 +964 -960
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3712 -3533
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-browser.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2054 -2054
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +57 -57
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +519 -519
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2285 -2286
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1713 -1711
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation.mjs +452 -292
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3486 -3378
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -1
- package/ktor-ktor-events.mjs +7 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +581 -581
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1231 -1174
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1172 -1223
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +84 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +216 -226
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/ktor-ktor-serialization.mjs +111 -116
- package/ktor-ktor-serialization.mjs.map +1 -1
- package/ktor-ktor-sse.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +1037 -983
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +925 -911
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +46 -46
- package/solibo-sdk-sdk-home-api.mjs +98430 -97370
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-http.mjs
CHANGED
|
@@ -1,41 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
|
+
shiftRightUnsigned1ga7wnvbv2qur as shiftRightUnsigned,
|
|
3
|
+
Char__toInt_impl_vasixd28v1p2u6jau5g as Char__toInt_impl_vasixd,
|
|
4
|
+
toString1n9qg6fb0b5i8 as toString,
|
|
5
|
+
toString1pkumu07cwy4m as toString_0,
|
|
6
|
+
IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$,
|
|
7
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
8
|
+
shiftLeft3tsh2sstjchzn as shiftLeft,
|
|
9
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
10
|
+
asIterable3syp9x858o4em as asIterable,
|
|
11
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
2
13
|
VOID3gxj6tk5isa35 as VOID,
|
|
3
|
-
StringBuilder_init_$Create$
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
StringBuilder_init_$Create$yggnhbmai7wr as StringBuilder_init_$Create$,
|
|
15
|
+
_Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx,
|
|
16
|
+
toByte4i43936u611k as toByte,
|
|
17
|
+
numberToChar93r9buh19yek as numberToChar,
|
|
18
|
+
Char__plus_impl_qi7pgj12gj4qbkhmj1y as Char__plus_impl_qi7pgj,
|
|
19
|
+
Char__minus_impl_a2frrh4e9xgjqbj3za as Char__minus_impl_a2frrh,
|
|
20
|
+
StringBuilder_init_$Create$b2348mky3co as StringBuilder_init_$Create$_0,
|
|
10
21
|
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
11
|
-
substringiqarkczpya5m as substring,
|
|
12
|
-
toString1pkumu07cwy4m as toString,
|
|
13
|
-
Char19o2r8palgjof as Char,
|
|
14
22
|
isSurrogatewe8xicw8z84n as isSurrogate,
|
|
15
|
-
|
|
23
|
+
substringiqarkczpya5m as substring,
|
|
16
24
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
17
25
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
18
26
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
19
|
-
toString336ienavfnzn0 as toString_0,
|
|
20
|
-
toByte4i43936u611k as toByte,
|
|
21
27
|
decodeToString1dbzcjd620q25 as decodeToString,
|
|
22
28
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
23
|
-
Exception_init_$Init$
|
|
29
|
+
Exception_init_$Init$aq0gqtvnezdz as Exception_init_$Init$,
|
|
24
30
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
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
|
-
Char__rangeTo_impl_tkncvp39f1k6qse2e6h as Char__rangeTo_impl_tkncvp,
|
|
31
|
+
Char__minus_impl_a2frrhw2puetaduxyd as Char__minus_impl_a2frrh_0,
|
|
32
|
+
Char__rangeTo_impl_tkncvpnglpnjmwahwh as Char__rangeTo_impl_tkncvp,
|
|
31
33
|
plus39kp8wyage607 as plus,
|
|
32
34
|
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
35
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
40
36
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
41
37
|
equals2v6cggk171b6e as equals,
|
|
@@ -50,40 +46,42 @@ import {
|
|
|
50
46
|
take9j4462mea726 as take,
|
|
51
47
|
substring3saq8ornu0luv as substring_0,
|
|
52
48
|
contains2el4s70rdq4ld as contains,
|
|
53
|
-
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
54
49
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
55
50
|
startsWith38d3sbg25w0lx as startsWith,
|
|
56
|
-
plus20p0vtfmu0596 as
|
|
51
|
+
plus20p0vtfmu0596 as plus_1,
|
|
57
52
|
equals2au1ep9vhcato as equals_0,
|
|
58
53
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
59
54
|
hashCodeq5arwsb9dgti as hashCode,
|
|
60
55
|
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
56
|
+
setOf45ia9pnfhe90 as setOf,
|
|
61
57
|
get_lastIndex1yw0x4k50k51w as get_lastIndex,
|
|
62
58
|
first3kg261hmihapu as first,
|
|
63
59
|
last2n4gf5az1lkn4 as last_0,
|
|
64
60
|
get_lastIndexld83bqhfgcdd as get_lastIndex_0,
|
|
65
|
-
listOfvhqybd2zx248 as
|
|
61
|
+
listOfvhqybd2zx248 as listOf,
|
|
66
62
|
emptySetcxexqki71qfa as emptySet,
|
|
67
63
|
emptyMapr06gerzljqtm as emptyMap,
|
|
68
64
|
toDoubleOrNullkxwozihadygj as toDoubleOrNull,
|
|
69
|
-
|
|
65
|
+
LazyThreadSafetyMode_NONE_getInstance29obelyddqkpt as LazyThreadSafetyMode_NONE_getInstance,
|
|
70
66
|
lazy1261dae0bgscp as lazy,
|
|
71
67
|
to2cs3ny02qtbcb as to,
|
|
72
|
-
ArrayList_init_$Create$
|
|
68
|
+
ArrayList_init_$Create$2xrifdqz5xirg as ArrayList_init_$Create$,
|
|
73
69
|
asList2ho2pewtsfvv as asList,
|
|
74
|
-
|
|
75
|
-
IllegalArgumentException_init_$Init$
|
|
70
|
+
Char__compareTo_impl_ypi4mb3bl0kdwnivnp6 as Char__compareTo_impl_ypi4mb,
|
|
71
|
+
IllegalArgumentException_init_$Init$c3q2g5ghz7m0 as IllegalArgumentException_init_$Init$,
|
|
76
72
|
toLongOrNullutqivezb0wx1 as toLongOrNull,
|
|
73
|
+
listOf1jh22dvmctj1r as listOf_0,
|
|
74
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
77
75
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
78
76
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
79
|
-
LinkedHashMap_init_$Create$
|
|
77
|
+
LinkedHashMap_init_$Create$21wpz6bm2n4yn as LinkedHashMap_init_$Create$,
|
|
80
78
|
Comparable198qfk8pnblz0 as Comparable,
|
|
79
|
+
ArrayList_init_$Create$a978fvbbts3d as ArrayList_init_$Create$_0,
|
|
81
80
|
addAll1k27qatfgp3k5 as addAll,
|
|
82
81
|
joinTo3lkanfaxbzac2 as joinTo,
|
|
83
82
|
toString30pk9tzaqopn as toString_1,
|
|
84
83
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
85
84
|
isWhitespace25occ8z1ed1s9 as isWhitespace,
|
|
86
|
-
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
87
85
|
startsWith1bgirhbedtv2y as startsWith_0,
|
|
88
86
|
charArrayOf27f4r3dozbrk1 as charArrayOf,
|
|
89
87
|
split3d3yeauc4rm2n as split,
|
|
@@ -93,7 +91,7 @@ import {
|
|
|
93
91
|
indexOfAny2ijjuuzpljsyd as indexOfAny,
|
|
94
92
|
dropLast1vpiyky649o34 as dropLast,
|
|
95
93
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
96
|
-
IllegalStateException_init_$Init$
|
|
94
|
+
IllegalStateException_init_$Init$3qej4dbq7zzt3 as IllegalStateException_init_$Init$,
|
|
97
95
|
indexOfwa4w6635jewi as indexOf_0,
|
|
98
96
|
toInt2q8uldh7sc951 as toInt,
|
|
99
97
|
startsWith26w8qjqapeeq6 as startsWith_1,
|
|
@@ -102,16 +100,17 @@ import {
|
|
|
102
100
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
103
101
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
104
102
|
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
|
|
103
|
+
toSet2orjxp16sotqu as toSet,
|
|
105
104
|
fromInt2ii0rejb1w62w as fromInt,
|
|
106
105
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
107
106
|
import {
|
|
108
|
-
|
|
107
|
+
Charsets_getInstancezrqwjk0yrlyw as Charsets_getInstance,
|
|
108
|
+
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
109
109
|
encode35e4rpnc94tb5 as encode,
|
|
110
110
|
takeWhile34751tcfg6owx as takeWhile,
|
|
111
111
|
canRead1guo8vbveth0f as canRead,
|
|
112
112
|
forName2faodmskqnoz5 as forName,
|
|
113
113
|
get_name2f11g4r0d5pxp as get_name,
|
|
114
|
-
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
115
114
|
} from './ktor-ktor-io.mjs';
|
|
116
115
|
import {
|
|
117
116
|
StringValuesBuilderImpl3ey9etj3bwnqf as StringValuesBuilderImpl,
|
|
@@ -124,10 +123,10 @@ import {
|
|
|
124
123
|
toLowerCasePreservingASCIIRulesa2d90zyoc6kw as toLowerCasePreservingASCIIRules,
|
|
125
124
|
isLowerCase2jodys5jo7d58 as isLowerCase,
|
|
126
125
|
appendAlltwnjnu28pmtx as appendAll,
|
|
127
|
-
|
|
126
|
+
PlatformUtils_getInstancezyao53u70tqo as PlatformUtils_getInstance,
|
|
128
127
|
} from './ktor-ktor-utils.mjs';
|
|
129
128
|
import {
|
|
130
|
-
|
|
129
|
+
STRING_getInstance7xungxdjbzv as STRING_getInstance,
|
|
131
130
|
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
|
|
132
131
|
KSerializerzf77vz1967fq as KSerializer,
|
|
133
132
|
SerializableWithd2dap36updxd as SerializableWith,
|
|
@@ -136,43 +135,45 @@ import {
|
|
|
136
135
|
var imul = Math.imul;
|
|
137
136
|
//endregion
|
|
138
137
|
//region block: pre-declaration
|
|
139
|
-
initMetadataForClass(URLDecodeException, 'URLDecodeException', VOID, Exception);
|
|
140
138
|
initMetadataForCompanion(Companion);
|
|
139
|
+
initMetadataForClass(AsciiBitSet, 'AsciiBitSet');
|
|
140
|
+
initMetadataForClass(URLDecodeException, 'URLDecodeException', VOID, Exception);
|
|
141
|
+
initMetadataForCompanion(Companion_0);
|
|
141
142
|
initMetadataForObject(Application, 'Application');
|
|
142
143
|
initMetadataForObject(MultiPart, 'MultiPart');
|
|
143
144
|
initMetadataForObject(Text, 'Text');
|
|
144
145
|
initMetadataForClass(HeaderValueWithParameters, 'HeaderValueWithParameters');
|
|
145
146
|
initMetadataForClass(ContentType, 'ContentType', VOID, HeaderValueWithParameters);
|
|
146
147
|
initMetadataForClass(BadContentTypeFormatException, 'BadContentTypeFormatException', VOID, Exception);
|
|
147
|
-
initMetadataForCompanion(Companion_0);
|
|
148
148
|
initMetadataForCompanion(Companion_1);
|
|
149
|
+
initMetadataForCompanion(Companion_2);
|
|
149
150
|
initMetadataForClass(HeadersBuilder, 'HeadersBuilder', HeadersBuilder, StringValuesBuilderImpl);
|
|
150
151
|
initMetadataForObject(EmptyHeaders, 'EmptyHeaders', VOID, VOID, [StringValues]);
|
|
151
152
|
initMetadataForClass(HeadersImpl, 'HeadersImpl', HeadersImpl, StringValuesImpl, [StringValues]);
|
|
152
153
|
initMetadataForClass(HeadersSingleImpl, 'HeadersSingleImpl', VOID, StringValuesSingleImpl, [StringValues]);
|
|
153
|
-
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
154
154
|
initMetadataForClass(HeaderValue, 'HeaderValue');
|
|
155
|
+
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
155
156
|
initMetadataForObject(HttpHeaders, 'HttpHeaders');
|
|
156
157
|
initMetadataForClass(UnsafeHeaderException, 'UnsafeHeaderException', VOID, IllegalArgumentException);
|
|
157
158
|
initMetadataForClass(IllegalHeaderNameException, 'IllegalHeaderNameException', VOID, IllegalArgumentException);
|
|
158
159
|
initMetadataForClass(IllegalHeaderValueException, 'IllegalHeaderValueException', VOID, IllegalArgumentException);
|
|
159
|
-
initMetadataForCompanion(Companion_2);
|
|
160
|
-
initMetadataForClass(HttpMethod, 'HttpMethod');
|
|
161
160
|
initMetadataForCompanion(Companion_3);
|
|
162
|
-
initMetadataForClass(
|
|
161
|
+
initMetadataForClass(HttpMethod, 'HttpMethod');
|
|
163
162
|
initMetadataForCompanion(Companion_4);
|
|
164
|
-
initMetadataForClass(
|
|
163
|
+
initMetadataForClass(HttpProtocolVersion, 'HttpProtocolVersion');
|
|
165
164
|
initMetadataForCompanion(Companion_5);
|
|
165
|
+
initMetadataForClass(HttpStatusCode, 'HttpStatusCode', VOID, VOID, [Comparable]);
|
|
166
|
+
initMetadataForCompanion(Companion_6);
|
|
166
167
|
initMetadataForInterface(Parameters, 'Parameters', VOID, VOID, [StringValues]);
|
|
167
168
|
initMetadataForObject(EmptyParameters, 'EmptyParameters', VOID, VOID, [Parameters]);
|
|
168
169
|
initMetadataForClass(ParametersBuilderImpl, 'ParametersBuilderImpl', ParametersBuilderImpl, StringValuesBuilderImpl);
|
|
169
170
|
initMetadataForClass(ParametersImpl, 'ParametersImpl', ParametersImpl, StringValuesImpl, [Parameters]);
|
|
170
|
-
initMetadataForCompanion(
|
|
171
|
+
initMetadataForCompanion(Companion_7);
|
|
171
172
|
initMetadataForClass(URLBuilder, 'URLBuilder', URLBuilder);
|
|
172
173
|
initMetadataForClass(URLParserException, 'URLParserException', VOID, IllegalStateException);
|
|
173
|
-
initMetadataForCompanion(Companion_7);
|
|
174
|
-
initMetadataForClass(URLProtocol, 'URLProtocol');
|
|
175
174
|
initMetadataForCompanion(Companion_8);
|
|
175
|
+
initMetadataForClass(URLProtocol, 'URLProtocol');
|
|
176
|
+
initMetadataForCompanion(Companion_9);
|
|
176
177
|
initMetadataForClass(Url_0, 'Url', VOID, VOID, VOID, VOID, VOID, {0: UrlSerializer_getInstance});
|
|
177
178
|
initMetadataForObject(UrlSerializer, 'UrlSerializer', VOID, VOID, [KSerializer]);
|
|
178
179
|
initMetadataForClass(UrlDecodedParametersBuilder, 'UrlDecodedParametersBuilder');
|
|
@@ -193,16 +194,61 @@ initMetadataForClass(ContentWrapper, 'ContentWrapper', VOID, OutgoingContent);
|
|
|
193
194
|
initMetadataForObject(NullBody, 'NullBody');
|
|
194
195
|
initMetadataForClass(TextContent, 'TextContent', VOID, ByteArrayContent_0);
|
|
195
196
|
//endregion
|
|
197
|
+
function containsCode($this, code) {
|
|
198
|
+
if (!((code >>> 7 | 0) === 0))
|
|
199
|
+
return false;
|
|
200
|
+
var bits = code < 64 ? $this.low_1 : $this.high_1;
|
|
201
|
+
return (shiftRightUnsigned(bits, code) & 1n) === 1n;
|
|
202
|
+
}
|
|
203
|
+
function Companion() {
|
|
204
|
+
}
|
|
205
|
+
protoOf(Companion).of_75jmpt_k$ = function (chars) {
|
|
206
|
+
var low = 0n;
|
|
207
|
+
var high = 0n;
|
|
208
|
+
var _iterator__ex2g4s = chars.iterator_jk1svi_k$();
|
|
209
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
210
|
+
var char = _iterator__ex2g4s.next_20eer_k$().value_1;
|
|
211
|
+
// Inline function 'kotlin.code' call
|
|
212
|
+
var code = Char__toInt_impl_vasixd(char);
|
|
213
|
+
// Inline function 'kotlin.require' call
|
|
214
|
+
if (!(code < 128)) {
|
|
215
|
+
var message = "Only ASCII characters are supported, got '" + toString(char) + "' (code " + code + ')';
|
|
216
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
217
|
+
}
|
|
218
|
+
if (code < 64)
|
|
219
|
+
low = low | shiftLeft(1n, code);
|
|
220
|
+
else
|
|
221
|
+
high = high | shiftLeft(1n, code);
|
|
222
|
+
}
|
|
223
|
+
return new AsciiBitSet(low, high);
|
|
224
|
+
};
|
|
225
|
+
protoOf(Companion).of_5gnbr7_k$ = function (chars) {
|
|
226
|
+
return this.of_75jmpt_k$(asIterable(chars));
|
|
227
|
+
};
|
|
228
|
+
var Companion_instance;
|
|
229
|
+
function Companion_getInstance() {
|
|
230
|
+
return Companion_instance;
|
|
231
|
+
}
|
|
232
|
+
function AsciiBitSet(low, high) {
|
|
233
|
+
this.low_1 = low;
|
|
234
|
+
this.high_1 = high;
|
|
235
|
+
}
|
|
236
|
+
protoOf(AsciiBitSet).contains_egozq6_k$ = function (char) {
|
|
237
|
+
// Inline function 'kotlin.code' call
|
|
238
|
+
var tmp$ret$0 = Char__toInt_impl_vasixd(char);
|
|
239
|
+
return containsCode(this, tmp$ret$0);
|
|
240
|
+
};
|
|
241
|
+
protoOf(AsciiBitSet).contains_y9oc0p_k$ = function (byte) {
|
|
242
|
+
return containsCode(this, byte);
|
|
243
|
+
};
|
|
244
|
+
protoOf(AsciiBitSet).plus_an5ph_k$ = function (other) {
|
|
245
|
+
return new AsciiBitSet(this.low_1 | other.low_1, this.high_1 | other.high_1);
|
|
246
|
+
};
|
|
196
247
|
function get_URL_ALPHABET() {
|
|
197
248
|
_init_properties_Codecs_kt__fudxxf();
|
|
198
249
|
return URL_ALPHABET;
|
|
199
250
|
}
|
|
200
251
|
var URL_ALPHABET;
|
|
201
|
-
function get_URL_ALPHABET_CHARS() {
|
|
202
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
203
|
-
return URL_ALPHABET_CHARS;
|
|
204
|
-
}
|
|
205
|
-
var URL_ALPHABET_CHARS;
|
|
206
252
|
function get_HEX_ALPHABET() {
|
|
207
253
|
_init_properties_Codecs_kt__fudxxf();
|
|
208
254
|
return HEX_ALPHABET;
|
|
@@ -219,45 +265,103 @@ function get_VALID_PATH_PART() {
|
|
|
219
265
|
}
|
|
220
266
|
var VALID_PATH_PART;
|
|
221
267
|
var ATTRIBUTE_CHARACTERS;
|
|
222
|
-
function
|
|
268
|
+
function get_URL_PARAMETER_CHARS() {
|
|
223
269
|
_init_properties_Codecs_kt__fudxxf();
|
|
224
|
-
return
|
|
270
|
+
return URL_PARAMETER_CHARS;
|
|
225
271
|
}
|
|
226
|
-
var
|
|
272
|
+
var URL_PARAMETER_CHARS;
|
|
227
273
|
function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
228
274
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
229
275
|
_init_properties_Codecs_kt__fudxxf();
|
|
276
|
+
var content = toByteArray(_this__u8e3s4, Charsets_getInstance().UTF_8__1);
|
|
230
277
|
// Inline function 'kotlin.text.buildString' call
|
|
278
|
+
var capacity = content.length;
|
|
231
279
|
// Inline function 'kotlin.apply' call
|
|
232
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
233
|
-
var
|
|
234
|
-
|
|
280
|
+
var this_0 = StringBuilder_init_$Create$(capacity);
|
|
281
|
+
var inductionVariable = 0;
|
|
282
|
+
var last = content.length;
|
|
283
|
+
while (inductionVariable < last) {
|
|
284
|
+
var byte = content[inductionVariable];
|
|
285
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
286
|
+
if (get_URL_PARAMETER_CHARS().contains_y9oc0p_k$(byte))
|
|
287
|
+
this_0.append_58al37_k$(numberToChar(byte));
|
|
288
|
+
else {
|
|
289
|
+
var tmp;
|
|
290
|
+
if (spaceToPlus) {
|
|
291
|
+
var tmp_0 = byte;
|
|
292
|
+
// Inline function 'kotlin.code' call
|
|
293
|
+
var this_1 = _Char___init__impl__6a9atx(32);
|
|
294
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
295
|
+
tmp = tmp_0 === toByte(tmp$ret$3);
|
|
296
|
+
} else {
|
|
297
|
+
tmp = false;
|
|
298
|
+
}
|
|
299
|
+
if (tmp)
|
|
300
|
+
this_0.append_58al37_k$(_Char___init__impl__6a9atx(43));
|
|
301
|
+
else {
|
|
302
|
+
appendPercentEncoded(this_0, byte);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
235
306
|
return this_0.toString();
|
|
236
307
|
}
|
|
308
|
+
function appendPercentEncoded(_this__u8e3s4, byte) {
|
|
309
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
310
|
+
var code = byte & 255;
|
|
311
|
+
_this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(37));
|
|
312
|
+
_this__u8e3s4.append_58al37_k$(hexDigitToChar(code >> 4));
|
|
313
|
+
_this__u8e3s4.append_58al37_k$(hexDigitToChar(code & 15));
|
|
314
|
+
}
|
|
315
|
+
function hexDigitToChar(digit) {
|
|
316
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
317
|
+
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);
|
|
318
|
+
}
|
|
237
319
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
238
320
|
start = start === VOID ? 0 : start;
|
|
239
321
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
240
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
322
|
+
charset = charset === VOID ? Charsets_getInstance().UTF_8__1 : charset;
|
|
241
323
|
_init_properties_Codecs_kt__fudxxf();
|
|
242
324
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
243
325
|
}
|
|
244
326
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
245
327
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
246
328
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
247
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
329
|
+
charset = charset === VOID ? Charsets_getInstance().UTF_8__1 : charset;
|
|
248
330
|
_init_properties_Codecs_kt__fudxxf();
|
|
331
|
+
var content = toByteArray(_this__u8e3s4, charset);
|
|
249
332
|
// Inline function 'kotlin.text.buildString' call
|
|
333
|
+
var capacity = content.length;
|
|
250
334
|
// Inline function 'kotlin.apply' call
|
|
251
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
252
|
-
var
|
|
253
|
-
|
|
335
|
+
var this_0 = StringBuilder_init_$Create$(capacity);
|
|
336
|
+
var inductionVariable = 0;
|
|
337
|
+
var last = content.length;
|
|
338
|
+
while (inductionVariable < last) {
|
|
339
|
+
var byte = content[inductionVariable];
|
|
340
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
341
|
+
var tmp = byte;
|
|
342
|
+
// Inline function 'kotlin.code' call
|
|
343
|
+
var this_1 = _Char___init__impl__6a9atx(32);
|
|
344
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
345
|
+
if (tmp === toByte(tmp$ret$3))
|
|
346
|
+
if (spaceToPlus)
|
|
347
|
+
this_0.append_58al37_k$(_Char___init__impl__6a9atx(43));
|
|
348
|
+
else
|
|
349
|
+
this_0.append_22ad7x_k$('%20');
|
|
350
|
+
else {
|
|
351
|
+
if (get_URL_ALPHABET().contains_y9oc0p_k$(byte) || (!encodeFull && get_URL_PROTOCOL_PART().contains_y9oc0p_k$(byte)))
|
|
352
|
+
this_0.append_58al37_k$(numberToChar(byte));
|
|
353
|
+
else {
|
|
354
|
+
appendPercentEncoded(this_0, byte);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
254
358
|
return this_0.toString();
|
|
255
359
|
}
|
|
256
360
|
function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
257
361
|
start = start === VOID ? 0 : start;
|
|
258
362
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
259
363
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
260
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
364
|
+
charset = charset === VOID ? Charsets_getInstance().UTF_8__1 : charset;
|
|
261
365
|
_init_properties_Codecs_kt__fudxxf();
|
|
262
366
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
263
367
|
}
|
|
@@ -265,26 +369,47 @@ function encodeURLPathPart(_this__u8e3s4) {
|
|
|
265
369
|
_init_properties_Codecs_kt__fudxxf();
|
|
266
370
|
return encodeURLPath(_this__u8e3s4, true);
|
|
267
371
|
}
|
|
268
|
-
function
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
function hexDigitToChar(digit) {
|
|
273
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
274
|
-
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);
|
|
275
|
-
}
|
|
276
|
-
function forEach_0(_this__u8e3s4, block) {
|
|
372
|
+
function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
373
|
+
encodeSlash = encodeSlash === VOID ? false : encodeSlash;
|
|
374
|
+
encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
|
|
277
375
|
_init_properties_Codecs_kt__fudxxf();
|
|
278
|
-
|
|
376
|
+
// Inline function 'kotlin.text.buildString' call
|
|
377
|
+
// Inline function 'kotlin.apply' call
|
|
378
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
379
|
+
var charset = Charsets_getInstance().UTF_8__1;
|
|
380
|
+
var index = 0;
|
|
381
|
+
$l$loop_1: while (index < _this__u8e3s4.length) {
|
|
382
|
+
var current = charCodeAt(_this__u8e3s4, index);
|
|
383
|
+
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET().contains_egozq6_k$(current) || get_VALID_PATH_PART().contains_egozq6_k$(current)) {
|
|
384
|
+
this_0.append_58al37_k$(current);
|
|
385
|
+
index = index + 1 | 0;
|
|
386
|
+
continue $l$loop_1;
|
|
387
|
+
}
|
|
388
|
+
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().contains_egozq6_k$(charCodeAt(_this__u8e3s4, index + 1 | 0)) && get_HEX_ALPHABET().contains_egozq6_k$(charCodeAt(_this__u8e3s4, index + 2 | 0))) {
|
|
389
|
+
this_0.append_58al37_k$(current);
|
|
390
|
+
this_0.append_58al37_k$(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
391
|
+
this_0.append_58al37_k$(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
392
|
+
index = index + 3 | 0;
|
|
393
|
+
continue $l$loop_1;
|
|
394
|
+
}
|
|
395
|
+
// Inline function 'kotlin.code' call
|
|
396
|
+
if (Char__toInt_impl_vasixd(current) < 128) {
|
|
397
|
+
// Inline function 'kotlin.code' call
|
|
398
|
+
var tmp$ret$4 = Char__toInt_impl_vasixd(current);
|
|
399
|
+
appendPercentEncoded(this_0, toByte(tmp$ret$4));
|
|
400
|
+
index = index + 1 | 0;
|
|
401
|
+
continue $l$loop_1;
|
|
402
|
+
}
|
|
403
|
+
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
404
|
+
var tmp = encode(charset.newEncoder_gqwcdg_k$(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
405
|
+
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
406
|
+
index = index + symbolSize | 0;
|
|
407
|
+
}
|
|
408
|
+
return this_0.toString();
|
|
279
409
|
}
|
|
280
|
-
function
|
|
410
|
+
function encodeURLParameterValue(_this__u8e3s4) {
|
|
281
411
|
_init_properties_Codecs_kt__fudxxf();
|
|
282
|
-
|
|
283
|
-
var array = charArray(3);
|
|
284
|
-
array[0] = _Char___init__impl__6a9atx(37);
|
|
285
|
-
array[1] = hexDigitToChar(code >> 4);
|
|
286
|
-
array[2] = hexDigitToChar(code & 15);
|
|
287
|
-
return concatToString(array);
|
|
412
|
+
return encodeURLParameter(_this__u8e3s4, true);
|
|
288
413
|
}
|
|
289
414
|
function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
290
415
|
_init_properties_Codecs_kt__fudxxf();
|
|
@@ -299,52 +424,26 @@ function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
|
299
424
|
}
|
|
300
425
|
}
|
|
301
426
|
while (inductionVariable < end);
|
|
302
|
-
return start === 0 && end === _this__u8e3s4.length ?
|
|
427
|
+
return start === 0 && end === _this__u8e3s4.length ? toString_0(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
|
|
303
428
|
}
|
|
304
|
-
function
|
|
305
|
-
encodeSlash = encodeSlash === VOID ? false : encodeSlash;
|
|
306
|
-
encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
|
|
429
|
+
function forEach_0(_this__u8e3s4, block) {
|
|
307
430
|
_init_properties_Codecs_kt__fudxxf();
|
|
308
|
-
|
|
309
|
-
// Inline function 'kotlin.apply' call
|
|
310
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
311
|
-
var charset = Charsets_getInstance().j1r_1;
|
|
312
|
-
var index = 0;
|
|
313
|
-
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
314
|
-
var current = charCodeAt(_this__u8e3s4, index);
|
|
315
|
-
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().h2(new Char(current)) || get_VALID_PATH_PART().h2(new Char(current))) {
|
|
316
|
-
this_0.s(current);
|
|
317
|
-
index = index + 1 | 0;
|
|
318
|
-
continue $l$loop_0;
|
|
319
|
-
}
|
|
320
|
-
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().h2(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().h2(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
|
|
321
|
-
this_0.s(current);
|
|
322
|
-
this_0.s(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
323
|
-
this_0.s(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
324
|
-
index = index + 3 | 0;
|
|
325
|
-
continue $l$loop_0;
|
|
326
|
-
}
|
|
327
|
-
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
328
|
-
var tmp = encode(charset.m1r(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
329
|
-
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
330
|
-
index = index + symbolSize | 0;
|
|
331
|
-
}
|
|
332
|
-
return this_0.toString();
|
|
431
|
+
takeWhile(_this__u8e3s4, forEach$lambda(block));
|
|
333
432
|
}
|
|
334
433
|
function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset) {
|
|
335
434
|
_init_properties_Codecs_kt__fudxxf();
|
|
336
435
|
var length = end - start | 0;
|
|
337
436
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
338
|
-
var sb = StringBuilder_init_$Create$
|
|
437
|
+
var sb = StringBuilder_init_$Create$(sbSize);
|
|
339
438
|
if (prefixEnd > start) {
|
|
340
|
-
sb.
|
|
439
|
+
sb.append_xdc1zw_k$(_this__u8e3s4, start, prefixEnd);
|
|
341
440
|
}
|
|
342
441
|
var index = prefixEnd;
|
|
343
442
|
var bytes = null;
|
|
344
443
|
while (index < end) {
|
|
345
444
|
var c = charSequenceGet(_this__u8e3s4, index);
|
|
346
445
|
if (plusIsSpace && c === _Char___init__impl__6a9atx(43)) {
|
|
347
|
-
sb.
|
|
446
|
+
sb.append_58al37_k$(_Char___init__impl__6a9atx(32));
|
|
348
447
|
index = index + 1 | 0;
|
|
349
448
|
} else if (c === _Char___init__impl__6a9atx(37)) {
|
|
350
449
|
if (bytes == null) {
|
|
@@ -356,13 +455,13 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
356
455
|
// Inline function 'kotlin.text.substring' call
|
|
357
456
|
var startIndex = index;
|
|
358
457
|
var endIndex = charSequenceLength(_this__u8e3s4);
|
|
359
|
-
var tmp$ret$0 =
|
|
360
|
-
throw new URLDecodeException('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' +
|
|
458
|
+
var tmp$ret$0 = toString_0(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
|
|
459
|
+
throw new URLDecodeException('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' + toString_0(_this__u8e3s4) + ' at ' + index);
|
|
361
460
|
}
|
|
362
461
|
var digit1 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 1 | 0));
|
|
363
462
|
var digit2 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 2 | 0));
|
|
364
463
|
if (digit1 === -1 || digit2 === -1) {
|
|
365
|
-
throw new URLDecodeException('Wrong HEX escape: %' +
|
|
464
|
+
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);
|
|
366
465
|
}
|
|
367
466
|
var tmp = bytes;
|
|
368
467
|
var _unary__edvuaz = count;
|
|
@@ -370,9 +469,9 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
370
469
|
tmp[_unary__edvuaz] = toByte(imul(digit1, 16) + digit2 | 0);
|
|
371
470
|
index = index + 3 | 0;
|
|
372
471
|
}
|
|
373
|
-
sb.
|
|
472
|
+
sb.append_22ad7x_k$(decodeToString(bytes, 0, 0 + count | 0));
|
|
374
473
|
} else {
|
|
375
|
-
sb.
|
|
474
|
+
sb.append_58al37_k$(c);
|
|
376
475
|
index = index + 1 | 0;
|
|
377
476
|
}
|
|
378
477
|
}
|
|
@@ -386,115 +485,30 @@ function charToHexDigit(c2) {
|
|
|
386
485
|
_init_properties_Codecs_kt__fudxxf();
|
|
387
486
|
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;
|
|
388
487
|
}
|
|
389
|
-
function
|
|
390
|
-
return function (it) {
|
|
391
|
-
if (get_URL_ALPHABET().h2(it) || get_SPECIAL_SYMBOLS().h2(it))
|
|
392
|
-
$$this$buildString.s(numberToChar(it));
|
|
393
|
-
else {
|
|
394
|
-
var tmp;
|
|
395
|
-
if ($spaceToPlus) {
|
|
396
|
-
var tmp_0 = it;
|
|
397
|
-
// Inline function 'kotlin.code' call
|
|
398
|
-
var this_0 = _Char___init__impl__6a9atx(32);
|
|
399
|
-
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
400
|
-
tmp = tmp_0 === toByte(tmp$ret$0);
|
|
401
|
-
} else {
|
|
402
|
-
tmp = false;
|
|
403
|
-
}
|
|
404
|
-
if (tmp)
|
|
405
|
-
$$this$buildString.s(_Char___init__impl__6a9atx(43));
|
|
406
|
-
else {
|
|
407
|
-
$$this$buildString.q(percentEncode(it));
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
return Unit_instance;
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encodeFull) {
|
|
488
|
+
function encodeURLPath$lambda($$this$buildString) {
|
|
414
489
|
return function (it) {
|
|
415
|
-
|
|
416
|
-
// Inline function 'kotlin.code' call
|
|
417
|
-
var this_0 = _Char___init__impl__6a9atx(32);
|
|
418
|
-
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
419
|
-
if (tmp === toByte(tmp$ret$0))
|
|
420
|
-
if ($spaceToPlus)
|
|
421
|
-
$$this$buildString.s(_Char___init__impl__6a9atx(43));
|
|
422
|
-
else
|
|
423
|
-
$$this$buildString.q('%20');
|
|
424
|
-
else {
|
|
425
|
-
if (get_URL_ALPHABET().h2(it) || (!$encodeFull && get_URL_PROTOCOL_PART().h2(it)))
|
|
426
|
-
$$this$buildString.s(numberToChar(it));
|
|
427
|
-
else {
|
|
428
|
-
$$this$buildString.q(percentEncode(it));
|
|
429
|
-
}
|
|
430
|
-
}
|
|
490
|
+
appendPercentEncoded($$this$buildString, it);
|
|
431
491
|
return Unit_instance;
|
|
432
492
|
};
|
|
433
493
|
}
|
|
434
494
|
function forEach$lambda($block) {
|
|
435
495
|
return function (buffer) {
|
|
436
496
|
while (canRead(buffer)) {
|
|
437
|
-
$block(buffer.
|
|
497
|
+
$block(buffer.readByte_ectjk2_k$());
|
|
438
498
|
}
|
|
439
499
|
return true;
|
|
440
500
|
};
|
|
441
501
|
}
|
|
442
|
-
function encodeURLPath$lambda($$this$buildString) {
|
|
443
|
-
return function (it) {
|
|
444
|
-
$$this$buildString.q(percentEncode(it));
|
|
445
|
-
return Unit_instance;
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
502
|
var properties_initialized_Codecs_kt_hkj9s1;
|
|
449
503
|
function _init_properties_Codecs_kt__fudxxf() {
|
|
450
504
|
if (!properties_initialized_Codecs_kt_hkj9s1) {
|
|
451
505
|
properties_initialized_Codecs_kt_hkj9s1 = true;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
var item = _iterator__ex2g4s.v();
|
|
459
|
-
// Inline function 'kotlin.code' call
|
|
460
|
-
var this_1 = item.u1_1;
|
|
461
|
-
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
462
|
-
var tmp$ret$2 = toByte(tmp$ret$3);
|
|
463
|
-
destination.e1(tmp$ret$2);
|
|
464
|
-
}
|
|
465
|
-
URL_ALPHABET = toSet(destination);
|
|
466
|
-
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))));
|
|
467
|
-
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))));
|
|
468
|
-
// Inline function 'kotlin.collections.map' call
|
|
469
|
-
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))]);
|
|
470
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
471
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
472
|
-
var _iterator__ex2g4s_0 = this_2.t();
|
|
473
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
474
|
-
var item_0 = _iterator__ex2g4s_0.v();
|
|
475
|
-
// Inline function 'kotlin.code' call
|
|
476
|
-
var this_3 = item_0.u1_1;
|
|
477
|
-
var tmp$ret$3_0 = Char__toInt_impl_vasixd(this_3);
|
|
478
|
-
var tmp$ret$2_0 = toByte(tmp$ret$3_0);
|
|
479
|
-
destination_0.e1(tmp$ret$2_0);
|
|
480
|
-
}
|
|
481
|
-
URL_PROTOCOL_PART = destination_0;
|
|
482
|
-
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))]);
|
|
483
|
-
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))]));
|
|
484
|
-
// Inline function 'kotlin.collections.map' call
|
|
485
|
-
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))]);
|
|
486
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
487
|
-
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
488
|
-
var _iterator__ex2g4s_1 = this_4.t();
|
|
489
|
-
while (_iterator__ex2g4s_1.u()) {
|
|
490
|
-
var item_1 = _iterator__ex2g4s_1.v();
|
|
491
|
-
// Inline function 'kotlin.code' call
|
|
492
|
-
var this_5 = item_1.u1_1;
|
|
493
|
-
var tmp$ret$3_1 = Char__toInt_impl_vasixd(this_5);
|
|
494
|
-
var tmp$ret$2_1 = toByte(tmp$ret$3_1);
|
|
495
|
-
destination_1.e1(tmp$ret$2_1);
|
|
496
|
-
}
|
|
497
|
-
SPECIAL_SYMBOLS = destination_1;
|
|
506
|
+
URL_ALPHABET = Companion_instance.of_75jmpt_k$(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))));
|
|
507
|
+
HEX_ALPHABET = Companion_instance.of_75jmpt_k$(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))));
|
|
508
|
+
URL_PROTOCOL_PART = Companion_instance.of_5gnbr7_k$(":/?#[]@!$&'()*,;=-._~+");
|
|
509
|
+
VALID_PATH_PART = Companion_instance.of_5gnbr7_k$(":@!$&'()*+,;=-._~");
|
|
510
|
+
ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().plus_an5ph_k$(Companion_instance.of_5gnbr7_k$('!#$&+-.^_`|~'));
|
|
511
|
+
URL_PARAMETER_CHARS = get_URL_ALPHABET().plus_an5ph_k$(Companion_instance.of_5gnbr7_k$('-._~'));
|
|
498
512
|
}
|
|
499
513
|
}
|
|
500
514
|
var textSubTypes;
|
|
@@ -508,24 +522,24 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
508
522
|
}
|
|
509
523
|
function hasParameter($this, name, value) {
|
|
510
524
|
var tmp;
|
|
511
|
-
switch ($this.
|
|
525
|
+
switch ($this.parameters_1.get_size_woubt6_k$()) {
|
|
512
526
|
case 0:
|
|
513
527
|
tmp = false;
|
|
514
528
|
break;
|
|
515
529
|
case 1:
|
|
516
530
|
// Inline function 'kotlin.let' call
|
|
517
531
|
|
|
518
|
-
var it = $this.
|
|
519
|
-
tmp = (equals(it.
|
|
532
|
+
var it = $this.parameters_1.get_c1px32_k$(0);
|
|
533
|
+
tmp = (equals(it.name_1, name, true) && equals(it.value_1, value, true));
|
|
520
534
|
break;
|
|
521
535
|
default:
|
|
522
|
-
var tmp0 = $this.
|
|
536
|
+
var tmp0 = $this.parameters_1;
|
|
523
537
|
var tmp$ret$2;
|
|
524
538
|
$l$block_0: {
|
|
525
539
|
// Inline function 'kotlin.collections.any' call
|
|
526
540
|
var tmp_0;
|
|
527
541
|
if (isInterface(tmp0, Collection)) {
|
|
528
|
-
tmp_0 = tmp0.
|
|
542
|
+
tmp_0 = tmp0.isEmpty_y1axqb_k$();
|
|
529
543
|
} else {
|
|
530
544
|
tmp_0 = false;
|
|
531
545
|
}
|
|
@@ -533,10 +547,10 @@ function hasParameter($this, name, value) {
|
|
|
533
547
|
tmp$ret$2 = false;
|
|
534
548
|
break $l$block_0;
|
|
535
549
|
}
|
|
536
|
-
var _iterator__ex2g4s = tmp0.
|
|
537
|
-
while (_iterator__ex2g4s.
|
|
538
|
-
var element = _iterator__ex2g4s.
|
|
539
|
-
if (equals(element.
|
|
550
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
551
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
552
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
553
|
+
if (equals(element.name_1, name, true) && equals(element.value_1, value, true)) {
|
|
540
554
|
tmp$ret$2 = true;
|
|
541
555
|
break $l$block_0;
|
|
542
556
|
}
|
|
@@ -549,34 +563,34 @@ function hasParameter($this, name, value) {
|
|
|
549
563
|
}
|
|
550
564
|
return tmp;
|
|
551
565
|
}
|
|
552
|
-
function
|
|
553
|
-
|
|
554
|
-
this.
|
|
566
|
+
function Companion_0() {
|
|
567
|
+
Companion_instance_0 = this;
|
|
568
|
+
this.Any_1 = ContentType_init_$Create$('*', '*');
|
|
555
569
|
}
|
|
556
|
-
protoOf(
|
|
570
|
+
protoOf(Companion_0).parse_pc1q8p_k$ = function (value) {
|
|
557
571
|
if (isBlank(value))
|
|
558
|
-
return this.
|
|
572
|
+
return this.Any_1;
|
|
559
573
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
560
574
|
var headerValue = last(parseHeaderValue(value));
|
|
561
|
-
var tmp0 = headerValue.
|
|
562
|
-
var parameters = headerValue.
|
|
575
|
+
var tmp0 = headerValue.value_1;
|
|
576
|
+
var parameters = headerValue.params_1;
|
|
563
577
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
564
578
|
if (slash === -1) {
|
|
565
579
|
// Inline function 'kotlin.text.trim' call
|
|
566
|
-
if (
|
|
567
|
-
return
|
|
580
|
+
if (toString_0(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
581
|
+
return Companion_getInstance_0().Any_1;
|
|
568
582
|
throw new BadContentTypeFormatException(value);
|
|
569
583
|
}
|
|
570
584
|
// Inline function 'kotlin.text.trim' call
|
|
571
585
|
var this_0 = take(tmp0, slash);
|
|
572
|
-
var type =
|
|
586
|
+
var type = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
573
587
|
// Inline function 'kotlin.text.isEmpty' call
|
|
574
588
|
if (charSequenceLength(type) === 0) {
|
|
575
589
|
throw new BadContentTypeFormatException(value);
|
|
576
590
|
}
|
|
577
591
|
// Inline function 'kotlin.text.trim' call
|
|
578
592
|
var this_1 = substring_0(tmp0, slash + 1 | 0);
|
|
579
|
-
var subtype =
|
|
593
|
+
var subtype = toString_0(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
580
594
|
if (contains(type, _Char___init__impl__6a9atx(32)) || contains(subtype, _Char___init__impl__6a9atx(32))) {
|
|
581
595
|
throw new BadContentTypeFormatException(value);
|
|
582
596
|
}
|
|
@@ -592,38 +606,40 @@ protoOf(Companion).qm = function (value) {
|
|
|
592
606
|
}
|
|
593
607
|
return ContentType_init_$Create$(type, subtype, parameters);
|
|
594
608
|
};
|
|
595
|
-
var
|
|
596
|
-
function
|
|
597
|
-
if (
|
|
598
|
-
|
|
599
|
-
|
|
609
|
+
var Companion_instance_0;
|
|
610
|
+
function Companion_getInstance_0() {
|
|
611
|
+
if (Companion_instance_0 == null) {
|
|
612
|
+
Companion_instance_1;
|
|
613
|
+
new Companion_0();
|
|
614
|
+
}
|
|
615
|
+
return Companion_instance_0;
|
|
600
616
|
}
|
|
601
617
|
function Application() {
|
|
602
618
|
Application_instance = 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.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
619
|
+
this.TYPE_1 = 'application';
|
|
620
|
+
this.Any_1 = ContentType_init_$Create$('application', '*');
|
|
621
|
+
this.Atom_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
622
|
+
this.Cbor_1 = ContentType_init_$Create$('application', 'cbor');
|
|
623
|
+
this.Json_1 = ContentType_init_$Create$('application', 'json');
|
|
624
|
+
this.HalJson_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
625
|
+
this.JavaScript_1 = ContentType_init_$Create$('application', 'javascript');
|
|
626
|
+
this.OctetStream_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
627
|
+
this.Rss_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
628
|
+
this.Soap_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
629
|
+
this.Xml_1 = ContentType_init_$Create$('application', 'xml');
|
|
630
|
+
this.Xml_Dtd_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
631
|
+
this.Yaml_1 = ContentType_init_$Create$('application', 'yaml');
|
|
632
|
+
this.Zip_1 = ContentType_init_$Create$('application', 'zip');
|
|
633
|
+
this.GZip_1 = ContentType_init_$Create$('application', 'gzip');
|
|
634
|
+
this.FormUrlEncoded_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
635
|
+
this.Pdf_1 = ContentType_init_$Create$('application', 'pdf');
|
|
636
|
+
this.Xlsx_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
637
|
+
this.Docx_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
638
|
+
this.Pptx_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
639
|
+
this.ProtoBuf_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
640
|
+
this.Wasm_1 = ContentType_init_$Create$('application', 'wasm');
|
|
641
|
+
this.ProblemJson_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
642
|
+
this.ProblemXml_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
627
643
|
}
|
|
628
644
|
var Application_instance;
|
|
629
645
|
function Application_getInstance() {
|
|
@@ -633,17 +649,17 @@ function Application_getInstance() {
|
|
|
633
649
|
}
|
|
634
650
|
function MultiPart() {
|
|
635
651
|
MultiPart_instance = this;
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
}
|
|
646
|
-
protoOf(MultiPart).
|
|
652
|
+
this.TYPE_1 = 'multipart';
|
|
653
|
+
this.Any_1 = ContentType_init_$Create$('multipart', '*');
|
|
654
|
+
this.Mixed_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
655
|
+
this.Alternative_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
656
|
+
this.Related_1 = ContentType_init_$Create$('multipart', 'related');
|
|
657
|
+
this.FormData_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
658
|
+
this.Signed_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
659
|
+
this.Encrypted_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
660
|
+
this.ByteRanges_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
661
|
+
}
|
|
662
|
+
protoOf(MultiPart).contains_vaykv6_k$ = function (contentType) {
|
|
647
663
|
return startsWith(contentType, 'multipart/', true);
|
|
648
664
|
};
|
|
649
665
|
var MultiPart_instance;
|
|
@@ -654,16 +670,17 @@ function MultiPart_getInstance() {
|
|
|
654
670
|
}
|
|
655
671
|
function Text() {
|
|
656
672
|
Text_instance = this;
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
666
|
-
this.
|
|
673
|
+
this.TYPE_1 = 'text';
|
|
674
|
+
this.Any_1 = ContentType_init_$Create$('text', '*');
|
|
675
|
+
this.Plain_1 = ContentType_init_$Create$('text', 'plain');
|
|
676
|
+
this.CSS_1 = ContentType_init_$Create$('text', 'css');
|
|
677
|
+
this.CSV_1 = ContentType_init_$Create$('text', 'csv');
|
|
678
|
+
this.Html_1 = ContentType_init_$Create$('text', 'html');
|
|
679
|
+
this.JavaScript_1 = ContentType_init_$Create$('text', 'javascript');
|
|
680
|
+
this.Markdown_1 = ContentType_init_$Create$('text', 'markdown');
|
|
681
|
+
this.VCard_1 = ContentType_init_$Create$('text', 'vcard');
|
|
682
|
+
this.Xml_1 = ContentType_init_$Create$('text', 'xml');
|
|
683
|
+
this.EventStream_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
667
684
|
}
|
|
668
685
|
var Text_instance;
|
|
669
686
|
function Text_getInstance() {
|
|
@@ -672,45 +689,45 @@ function Text_getInstance() {
|
|
|
672
689
|
return Text_instance;
|
|
673
690
|
}
|
|
674
691
|
function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
675
|
-
|
|
692
|
+
Companion_getInstance_0();
|
|
676
693
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
677
694
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
678
|
-
this.
|
|
679
|
-
this.
|
|
695
|
+
this.contentType_1 = contentType;
|
|
696
|
+
this.contentSubtype_1 = contentSubtype;
|
|
680
697
|
}
|
|
681
|
-
protoOf(ContentType).
|
|
698
|
+
protoOf(ContentType).withParameter_j6bpqb_k$ = function (name, value) {
|
|
682
699
|
if (hasParameter(this, name, value))
|
|
683
700
|
return this;
|
|
684
|
-
return new ContentType(this.
|
|
701
|
+
return new ContentType(this.contentType_1, this.contentSubtype_1, this.content_1, plus_1(this.parameters_1, HeaderValueParam_init_$Create$(name, value)));
|
|
685
702
|
};
|
|
686
|
-
protoOf(ContentType).
|
|
687
|
-
return this.
|
|
703
|
+
protoOf(ContentType).withoutParameters_wrqe36_k$ = function () {
|
|
704
|
+
return this.parameters_1.isEmpty_y1axqb_k$() ? this : ContentType_init_$Create$(this.contentType_1, this.contentSubtype_1);
|
|
688
705
|
};
|
|
689
|
-
protoOf(ContentType).
|
|
690
|
-
if (!(pattern.
|
|
706
|
+
protoOf(ContentType).match_syvve3_k$ = function (pattern) {
|
|
707
|
+
if (!(pattern.contentType_1 === '*') && !equals(pattern.contentType_1, this.contentType_1, true)) {
|
|
691
708
|
return false;
|
|
692
709
|
}
|
|
693
|
-
if (!(pattern.
|
|
710
|
+
if (!(pattern.contentSubtype_1 === '*') && !equals(pattern.contentSubtype_1, this.contentSubtype_1, true)) {
|
|
694
711
|
return false;
|
|
695
712
|
}
|
|
696
|
-
var _iterator__ex2g4s = pattern.
|
|
697
|
-
while (_iterator__ex2g4s.
|
|
698
|
-
var _destruct__k2r9zo = _iterator__ex2g4s.
|
|
699
|
-
var patternName = _destruct__k2r9zo.
|
|
700
|
-
var patternValue = _destruct__k2r9zo.
|
|
713
|
+
var _iterator__ex2g4s = pattern.parameters_1.iterator_jk1svi_k$();
|
|
714
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
715
|
+
var _destruct__k2r9zo = _iterator__ex2g4s.next_20eer_k$();
|
|
716
|
+
var patternName = _destruct__k2r9zo.component1_7eebsc_k$();
|
|
717
|
+
var patternValue = _destruct__k2r9zo.component2_7eebsb_k$();
|
|
701
718
|
var tmp;
|
|
702
719
|
if (patternName === '*') {
|
|
703
720
|
var tmp_0;
|
|
704
721
|
if (patternValue === '*') {
|
|
705
722
|
tmp_0 = true;
|
|
706
723
|
} else {
|
|
707
|
-
var tmp0 = this.
|
|
724
|
+
var tmp0 = this.parameters_1;
|
|
708
725
|
var tmp$ret$0;
|
|
709
726
|
$l$block_0: {
|
|
710
727
|
// Inline function 'kotlin.collections.any' call
|
|
711
728
|
var tmp_1;
|
|
712
729
|
if (isInterface(tmp0, Collection)) {
|
|
713
|
-
tmp_1 = tmp0.
|
|
730
|
+
tmp_1 = tmp0.isEmpty_y1axqb_k$();
|
|
714
731
|
} else {
|
|
715
732
|
tmp_1 = false;
|
|
716
733
|
}
|
|
@@ -718,10 +735,10 @@ protoOf(ContentType).a2n = function (pattern) {
|
|
|
718
735
|
tmp$ret$0 = false;
|
|
719
736
|
break $l$block_0;
|
|
720
737
|
}
|
|
721
|
-
var _iterator__ex2g4s_0 = tmp0.
|
|
722
|
-
while (_iterator__ex2g4s_0.
|
|
723
|
-
var element = _iterator__ex2g4s_0.
|
|
724
|
-
if (equals(element.
|
|
738
|
+
var _iterator__ex2g4s_0 = tmp0.iterator_jk1svi_k$();
|
|
739
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
740
|
+
var element = _iterator__ex2g4s_0.next_20eer_k$();
|
|
741
|
+
if (equals(element.value_1, patternValue, true)) {
|
|
725
742
|
tmp$ret$0 = true;
|
|
726
743
|
break $l$block_0;
|
|
727
744
|
}
|
|
@@ -732,7 +749,7 @@ protoOf(ContentType).a2n = function (pattern) {
|
|
|
732
749
|
}
|
|
733
750
|
tmp = tmp_0;
|
|
734
751
|
} else {
|
|
735
|
-
var value = this.
|
|
752
|
+
var value = this.parameter_w3eqbz_k$(patternName);
|
|
736
753
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
737
754
|
}
|
|
738
755
|
var matches = tmp;
|
|
@@ -747,17 +764,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
747
764
|
var tmp_0;
|
|
748
765
|
var tmp_1;
|
|
749
766
|
if (other instanceof ContentType) {
|
|
750
|
-
tmp_1 = equals(this.
|
|
767
|
+
tmp_1 = equals(this.contentType_1, other.contentType_1, true);
|
|
751
768
|
} else {
|
|
752
769
|
tmp_1 = false;
|
|
753
770
|
}
|
|
754
771
|
if (tmp_1) {
|
|
755
|
-
tmp_0 = equals(this.
|
|
772
|
+
tmp_0 = equals(this.contentSubtype_1, other.contentSubtype_1, true);
|
|
756
773
|
} else {
|
|
757
774
|
tmp_0 = false;
|
|
758
775
|
}
|
|
759
776
|
if (tmp_0) {
|
|
760
|
-
tmp = equals_0(this.
|
|
777
|
+
tmp = equals_0(this.parameters_1, other.parameters_1);
|
|
761
778
|
} else {
|
|
762
779
|
tmp = false;
|
|
763
780
|
}
|
|
@@ -766,20 +783,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
766
783
|
protoOf(ContentType).hashCode = function () {
|
|
767
784
|
// Inline function 'kotlin.text.lowercase' call
|
|
768
785
|
// Inline function 'kotlin.js.asDynamic' call
|
|
769
|
-
var tmp$ret$0 = this.
|
|
786
|
+
var tmp$ret$0 = this.contentType_1.toLowerCase();
|
|
770
787
|
var result = getStringHashCode(tmp$ret$0);
|
|
771
788
|
var tmp = result;
|
|
772
789
|
var tmp_0 = imul(31, result);
|
|
773
790
|
// Inline function 'kotlin.text.lowercase' call
|
|
774
791
|
// Inline function 'kotlin.js.asDynamic' call
|
|
775
|
-
var tmp$ret$2 = this.
|
|
792
|
+
var tmp$ret$2 = this.contentSubtype_1.toLowerCase();
|
|
776
793
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
777
|
-
result = result + imul(31, hashCode(this.
|
|
794
|
+
result = result + imul(31, hashCode(this.parameters_1)) | 0;
|
|
778
795
|
return result;
|
|
779
796
|
};
|
|
780
797
|
function charset(_this__u8e3s4) {
|
|
781
798
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
782
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
799
|
+
var tmp0_safe_receiver = _this__u8e3s4.parameter_w3eqbz_k$('charset');
|
|
783
800
|
var tmp;
|
|
784
801
|
if (tmp0_safe_receiver == null) {
|
|
785
802
|
tmp = null;
|
|
@@ -802,23 +819,23 @@ function charset(_this__u8e3s4) {
|
|
|
802
819
|
}
|
|
803
820
|
return tmp;
|
|
804
821
|
}
|
|
805
|
-
function withCharset(_this__u8e3s4, charset) {
|
|
806
|
-
_init_properties_ContentTypes_kt__i9dj34();
|
|
807
|
-
return _this__u8e3s4.y2m('charset', get_name(charset));
|
|
808
|
-
}
|
|
809
822
|
function BadContentTypeFormatException(value) {
|
|
810
823
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
811
824
|
captureStack(this, BadContentTypeFormatException);
|
|
812
825
|
}
|
|
826
|
+
function withCharset(_this__u8e3s4, charset) {
|
|
827
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
828
|
+
return _this__u8e3s4.withParameter_j6bpqb_k$('charset', get_name(charset));
|
|
829
|
+
}
|
|
813
830
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
814
831
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
815
832
|
var tmp;
|
|
816
833
|
// Inline function 'kotlin.text.lowercase' call
|
|
817
834
|
// Inline function 'kotlin.js.asDynamic' call
|
|
818
|
-
if (!(_this__u8e3s4.
|
|
835
|
+
if (!(_this__u8e3s4.contentType_1.toLowerCase() === 'text')) {
|
|
819
836
|
tmp = _this__u8e3s4;
|
|
820
837
|
} else {
|
|
821
|
-
tmp = _this__u8e3s4.
|
|
838
|
+
tmp = _this__u8e3s4.withParameter_j6bpqb_k$('charset', get_name(charset));
|
|
822
839
|
}
|
|
823
840
|
return tmp;
|
|
824
841
|
}
|
|
@@ -834,27 +851,27 @@ function get_HeaderFieldValueSeparators() {
|
|
|
834
851
|
return HeaderFieldValueSeparators;
|
|
835
852
|
}
|
|
836
853
|
var HeaderFieldValueSeparators;
|
|
837
|
-
function
|
|
854
|
+
function Companion_1() {
|
|
838
855
|
}
|
|
839
|
-
var
|
|
840
|
-
function
|
|
841
|
-
return
|
|
856
|
+
var Companion_instance_1;
|
|
857
|
+
function Companion_getInstance_1() {
|
|
858
|
+
return Companion_instance_1;
|
|
842
859
|
}
|
|
843
860
|
function HeaderValueWithParameters(content, parameters) {
|
|
844
861
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
862
|
+
this.content_1 = content;
|
|
863
|
+
this.parameters_1 = parameters;
|
|
847
864
|
}
|
|
848
|
-
protoOf(HeaderValueWithParameters).
|
|
865
|
+
protoOf(HeaderValueWithParameters).parameter_w3eqbz_k$ = function (name) {
|
|
849
866
|
var inductionVariable = 0;
|
|
850
|
-
var last = get_lastIndex(this.
|
|
867
|
+
var last = get_lastIndex(this.parameters_1);
|
|
851
868
|
if (inductionVariable <= last)
|
|
852
869
|
do {
|
|
853
870
|
var index = inductionVariable;
|
|
854
871
|
inductionVariable = inductionVariable + 1 | 0;
|
|
855
|
-
var parameter = this.
|
|
856
|
-
if (equals(parameter.
|
|
857
|
-
return parameter.
|
|
872
|
+
var parameter = this.parameters_1.get_c1px32_k$(index);
|
|
873
|
+
if (equals(parameter.name_1, name, true)) {
|
|
874
|
+
return parameter.value_1;
|
|
858
875
|
}
|
|
859
876
|
}
|
|
860
877
|
while (!(index === last));
|
|
@@ -862,38 +879,38 @@ protoOf(HeaderValueWithParameters).b2n = function (name) {
|
|
|
862
879
|
};
|
|
863
880
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
864
881
|
var tmp;
|
|
865
|
-
if (this.
|
|
866
|
-
tmp = this.
|
|
882
|
+
if (this.parameters_1.isEmpty_y1axqb_k$()) {
|
|
883
|
+
tmp = this.content_1;
|
|
867
884
|
} else {
|
|
868
|
-
var tmp_0 = this.
|
|
885
|
+
var tmp_0 = this.content_1.length;
|
|
869
886
|
// Inline function 'kotlin.collections.sumOf' call
|
|
870
887
|
var sum = 0;
|
|
871
|
-
var _iterator__ex2g4s = this.
|
|
872
|
-
while (_iterator__ex2g4s.
|
|
873
|
-
var element = _iterator__ex2g4s.
|
|
888
|
+
var _iterator__ex2g4s = this.parameters_1.iterator_jk1svi_k$();
|
|
889
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
890
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
874
891
|
var tmp_1 = sum;
|
|
875
|
-
sum = tmp_1 + ((element.
|
|
892
|
+
sum = tmp_1 + ((element.name_1.length + element.value_1.length | 0) + 3 | 0) | 0;
|
|
876
893
|
}
|
|
877
894
|
var size = tmp_0 + sum | 0;
|
|
878
895
|
// Inline function 'kotlin.apply' call
|
|
879
|
-
var this_0 = StringBuilder_init_$Create$
|
|
880
|
-
this_0.
|
|
896
|
+
var this_0 = StringBuilder_init_$Create$(size);
|
|
897
|
+
this_0.append_22ad7x_k$(this.content_1);
|
|
881
898
|
var inductionVariable = 0;
|
|
882
|
-
var last = get_lastIndex(this.
|
|
899
|
+
var last = get_lastIndex(this.parameters_1);
|
|
883
900
|
if (inductionVariable <= last)
|
|
884
901
|
do {
|
|
885
902
|
var index = inductionVariable;
|
|
886
903
|
inductionVariable = inductionVariable + 1 | 0;
|
|
887
|
-
var element_0 = this.
|
|
888
|
-
this_0.
|
|
889
|
-
this_0.
|
|
890
|
-
this_0.
|
|
904
|
+
var element_0 = this.parameters_1.get_c1px32_k$(index);
|
|
905
|
+
this_0.append_22ad7x_k$('; ');
|
|
906
|
+
this_0.append_22ad7x_k$(element_0.name_1);
|
|
907
|
+
this_0.append_22ad7x_k$('=');
|
|
891
908
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
892
|
-
var this_1 = element_0.
|
|
909
|
+
var this_1 = element_0.value_1;
|
|
893
910
|
if (needQuotes(this_1))
|
|
894
|
-
this_0.
|
|
911
|
+
this_0.append_22ad7x_k$(quote(this_1));
|
|
895
912
|
else
|
|
896
|
-
this_0.
|
|
913
|
+
this_0.append_22ad7x_k$(this_1);
|
|
897
914
|
}
|
|
898
915
|
while (!(index === last));
|
|
899
916
|
tmp = this_0.toString();
|
|
@@ -912,7 +929,7 @@ function needQuotes(_this__u8e3s4) {
|
|
|
912
929
|
while (inductionVariable < last) {
|
|
913
930
|
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
914
931
|
inductionVariable = inductionVariable + 1 | 0;
|
|
915
|
-
if (get_HeaderFieldValueSeparators().
|
|
932
|
+
if (get_HeaderFieldValueSeparators().contains_egozq6_k$(element))
|
|
916
933
|
return true;
|
|
917
934
|
}
|
|
918
935
|
return false;
|
|
@@ -921,7 +938,7 @@ function quote(_this__u8e3s4) {
|
|
|
921
938
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
922
939
|
// Inline function 'kotlin.text.buildString' call
|
|
923
940
|
// Inline function 'kotlin.apply' call
|
|
924
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
941
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
925
942
|
quoteTo(_this__u8e3s4, this_0);
|
|
926
943
|
return this_0.toString();
|
|
927
944
|
}
|
|
@@ -955,7 +972,7 @@ function isQuoted(_this__u8e3s4) {
|
|
|
955
972
|
}
|
|
956
973
|
function quoteTo(_this__u8e3s4, out) {
|
|
957
974
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
958
|
-
out.
|
|
975
|
+
out.append_22ad7x_k$('"');
|
|
959
976
|
var inductionVariable = 0;
|
|
960
977
|
var last = _this__u8e3s4.length;
|
|
961
978
|
while (inductionVariable < last) {
|
|
@@ -963,74 +980,74 @@ function quoteTo(_this__u8e3s4, out) {
|
|
|
963
980
|
inductionVariable = inductionVariable + 1 | 0;
|
|
964
981
|
var ch = element;
|
|
965
982
|
if (ch === _Char___init__impl__6a9atx(92))
|
|
966
|
-
out.
|
|
983
|
+
out.append_22ad7x_k$('\\\\');
|
|
967
984
|
else if (ch === _Char___init__impl__6a9atx(10))
|
|
968
|
-
out.
|
|
985
|
+
out.append_22ad7x_k$('\\n');
|
|
969
986
|
else if (ch === _Char___init__impl__6a9atx(13))
|
|
970
|
-
out.
|
|
987
|
+
out.append_22ad7x_k$('\\r');
|
|
971
988
|
else if (ch === _Char___init__impl__6a9atx(9))
|
|
972
|
-
out.
|
|
989
|
+
out.append_22ad7x_k$('\\t');
|
|
973
990
|
else if (ch === _Char___init__impl__6a9atx(34))
|
|
974
|
-
out.
|
|
991
|
+
out.append_22ad7x_k$('\\"');
|
|
975
992
|
else
|
|
976
|
-
out.
|
|
993
|
+
out.append_58al37_k$(ch);
|
|
977
994
|
}
|
|
978
|
-
out.
|
|
995
|
+
out.append_22ad7x_k$('"');
|
|
979
996
|
}
|
|
980
997
|
var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
981
998
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
982
999
|
if (!properties_initialized_HeaderValueWithParameters_kt_yu5xg) {
|
|
983
1000
|
properties_initialized_HeaderValueWithParameters_kt_yu5xg = true;
|
|
984
|
-
HeaderFieldValueSeparators =
|
|
1001
|
+
HeaderFieldValueSeparators = Companion_instance.of_5gnbr7_k$('()<>@,;:\\"/[]?={} \t\n\r');
|
|
985
1002
|
}
|
|
986
1003
|
}
|
|
987
|
-
function
|
|
988
|
-
|
|
989
|
-
this.
|
|
1004
|
+
function Companion_2() {
|
|
1005
|
+
Companion_instance_2 = this;
|
|
1006
|
+
this.Empty_1 = EmptyHeaders_instance;
|
|
990
1007
|
}
|
|
991
|
-
var
|
|
992
|
-
function
|
|
993
|
-
if (
|
|
994
|
-
new
|
|
995
|
-
return
|
|
1008
|
+
var Companion_instance_2;
|
|
1009
|
+
function Companion_getInstance_2() {
|
|
1010
|
+
if (Companion_instance_2 == null)
|
|
1011
|
+
new Companion_2();
|
|
1012
|
+
return Companion_instance_2;
|
|
996
1013
|
}
|
|
997
1014
|
function HeadersBuilder(size) {
|
|
998
1015
|
size = size === VOID ? 8 : size;
|
|
999
1016
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1000
1017
|
}
|
|
1001
|
-
protoOf(HeadersBuilder).
|
|
1002
|
-
return new HeadersImpl(this.
|
|
1018
|
+
protoOf(HeadersBuilder).build_1k0s4u_k$ = function () {
|
|
1019
|
+
return new HeadersImpl(this.values_1);
|
|
1003
1020
|
};
|
|
1004
|
-
protoOf(HeadersBuilder).
|
|
1005
|
-
protoOf(StringValuesBuilderImpl).
|
|
1006
|
-
HttpHeaders_getInstance().
|
|
1021
|
+
protoOf(HeadersBuilder).validateName_mv1fw7_k$ = function (name) {
|
|
1022
|
+
protoOf(StringValuesBuilderImpl).validateName_mv1fw7_k$.call(this, name);
|
|
1023
|
+
HttpHeaders_getInstance().checkHeaderName_cxkzpm_k$(name);
|
|
1007
1024
|
};
|
|
1008
|
-
protoOf(HeadersBuilder).
|
|
1009
|
-
protoOf(StringValuesBuilderImpl).
|
|
1010
|
-
HttpHeaders_getInstance().
|
|
1025
|
+
protoOf(HeadersBuilder).validateValue_x1igun_k$ = function (value) {
|
|
1026
|
+
protoOf(StringValuesBuilderImpl).validateValue_x1igun_k$.call(this, value);
|
|
1027
|
+
HttpHeaders_getInstance().checkHeaderValue_67110u_k$(value);
|
|
1011
1028
|
};
|
|
1012
1029
|
function headersOf(name, value) {
|
|
1013
|
-
return new HeadersSingleImpl(name,
|
|
1030
|
+
return new HeadersSingleImpl(name, listOf(value));
|
|
1014
1031
|
}
|
|
1015
1032
|
function EmptyHeaders() {
|
|
1016
1033
|
}
|
|
1017
|
-
protoOf(EmptyHeaders).
|
|
1034
|
+
protoOf(EmptyHeaders).get_caseInsensitiveName_ehooe5_k$ = function () {
|
|
1018
1035
|
return true;
|
|
1019
1036
|
};
|
|
1020
|
-
protoOf(EmptyHeaders).
|
|
1037
|
+
protoOf(EmptyHeaders).getAll_ffxf4h_k$ = function (name) {
|
|
1021
1038
|
return null;
|
|
1022
1039
|
};
|
|
1023
|
-
protoOf(EmptyHeaders).
|
|
1040
|
+
protoOf(EmptyHeaders).names_1q9mbs_k$ = function () {
|
|
1024
1041
|
return emptySet();
|
|
1025
1042
|
};
|
|
1026
|
-
protoOf(EmptyHeaders).
|
|
1043
|
+
protoOf(EmptyHeaders).entries_qbkxv4_k$ = function () {
|
|
1027
1044
|
return emptySet();
|
|
1028
1045
|
};
|
|
1029
|
-
protoOf(EmptyHeaders).
|
|
1046
|
+
protoOf(EmptyHeaders).isEmpty_y1axqb_k$ = function () {
|
|
1030
1047
|
return true;
|
|
1031
1048
|
};
|
|
1032
1049
|
protoOf(EmptyHeaders).toString = function () {
|
|
1033
|
-
return 'Headers ' +
|
|
1050
|
+
return 'Headers ' + toString_0(this.entries_qbkxv4_k$());
|
|
1034
1051
|
};
|
|
1035
1052
|
var EmptyHeaders_instance;
|
|
1036
1053
|
function EmptyHeaders_getInstance() {
|
|
@@ -1041,76 +1058,27 @@ function HeadersImpl(values) {
|
|
|
1041
1058
|
StringValuesImpl.call(this, true, values);
|
|
1042
1059
|
}
|
|
1043
1060
|
protoOf(HeadersImpl).toString = function () {
|
|
1044
|
-
return 'Headers ' +
|
|
1061
|
+
return 'Headers ' + toString_0(this.entries_qbkxv4_k$());
|
|
1045
1062
|
};
|
|
1046
1063
|
function HeadersSingleImpl(name, values) {
|
|
1047
1064
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1048
1065
|
}
|
|
1049
1066
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1050
|
-
return 'Headers ' +
|
|
1051
|
-
};
|
|
1052
|
-
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1053
|
-
HeaderValueParam.call($this, name, value, false);
|
|
1054
|
-
return $this;
|
|
1055
|
-
}
|
|
1056
|
-
function HeaderValueParam_init_$Create$(name, value) {
|
|
1057
|
-
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1058
|
-
}
|
|
1059
|
-
function HeaderValueParam(name, value, escapeValue) {
|
|
1060
|
-
this.v2k_1 = name;
|
|
1061
|
-
this.w2k_1 = value;
|
|
1062
|
-
this.x2k_1 = escapeValue;
|
|
1063
|
-
}
|
|
1064
|
-
protoOf(HeaderValueParam).equals = function (other) {
|
|
1065
|
-
var tmp;
|
|
1066
|
-
var tmp_0;
|
|
1067
|
-
if (other instanceof HeaderValueParam) {
|
|
1068
|
-
tmp_0 = equals(other.v2k_1, this.v2k_1, true);
|
|
1069
|
-
} else {
|
|
1070
|
-
tmp_0 = false;
|
|
1071
|
-
}
|
|
1072
|
-
if (tmp_0) {
|
|
1073
|
-
tmp = equals(other.w2k_1, this.w2k_1, true);
|
|
1074
|
-
} else {
|
|
1075
|
-
tmp = false;
|
|
1076
|
-
}
|
|
1077
|
-
return tmp;
|
|
1078
|
-
};
|
|
1079
|
-
protoOf(HeaderValueParam).hashCode = function () {
|
|
1080
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1081
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1082
|
-
var tmp$ret$0 = this.v2k_1.toLowerCase();
|
|
1083
|
-
var result = getStringHashCode(tmp$ret$0);
|
|
1084
|
-
var tmp = result;
|
|
1085
|
-
var tmp_0 = imul(31, result);
|
|
1086
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1087
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1088
|
-
var tmp$ret$2 = this.w2k_1.toLowerCase();
|
|
1089
|
-
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1090
|
-
return result;
|
|
1091
|
-
};
|
|
1092
|
-
protoOf(HeaderValueParam).te = function () {
|
|
1093
|
-
return this.v2k_1;
|
|
1094
|
-
};
|
|
1095
|
-
protoOf(HeaderValueParam).ue = function () {
|
|
1096
|
-
return this.w2k_1;
|
|
1097
|
-
};
|
|
1098
|
-
protoOf(HeaderValueParam).toString = function () {
|
|
1099
|
-
return 'HeaderValueParam(name=' + this.v2k_1 + ', value=' + this.w2k_1 + ', escapeValue=' + this.x2k_1 + ')';
|
|
1067
|
+
return 'Headers ' + toString_0(this.entries_qbkxv4_k$());
|
|
1100
1068
|
};
|
|
1101
1069
|
function HeaderValue(value, params) {
|
|
1102
1070
|
params = params === VOID ? emptyList() : params;
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1071
|
+
this.value_1 = value;
|
|
1072
|
+
this.params_1 = params;
|
|
1105
1073
|
var tmp = this;
|
|
1106
|
-
var tmp0 = this.
|
|
1074
|
+
var tmp0 = this.params_1;
|
|
1107
1075
|
var tmp$ret$0;
|
|
1108
1076
|
$l$block: {
|
|
1109
1077
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1110
|
-
var _iterator__ex2g4s = tmp0.
|
|
1111
|
-
while (_iterator__ex2g4s.
|
|
1112
|
-
var element = _iterator__ex2g4s.
|
|
1113
|
-
if (element.
|
|
1078
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1079
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1080
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1081
|
+
if (equals(element.name_1, 'q', true)) {
|
|
1114
1082
|
tmp$ret$0 = element;
|
|
1115
1083
|
break $l$block;
|
|
1116
1084
|
}
|
|
@@ -1118,7 +1086,7 @@ function HeaderValue(value, params) {
|
|
|
1118
1086
|
tmp$ret$0 = null;
|
|
1119
1087
|
}
|
|
1120
1088
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
1121
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1089
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.value_1;
|
|
1122
1090
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1123
1091
|
var tmp_0;
|
|
1124
1092
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1134,14 +1102,14 @@ function HeaderValue(value, params) {
|
|
|
1134
1102
|
tmp_0 = tmp_1;
|
|
1135
1103
|
}
|
|
1136
1104
|
var tmp3_elvis_lhs = tmp_0;
|
|
1137
|
-
tmp.
|
|
1105
|
+
tmp.quality_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1138
1106
|
}
|
|
1139
1107
|
protoOf(HeaderValue).toString = function () {
|
|
1140
|
-
return 'HeaderValue(value=' + this.
|
|
1108
|
+
return 'HeaderValue(value=' + this.value_1 + ', params=' + toString_0(this.params_1) + ')';
|
|
1141
1109
|
};
|
|
1142
1110
|
protoOf(HeaderValue).hashCode = function () {
|
|
1143
|
-
var result = getStringHashCode(this.
|
|
1144
|
-
result = imul(result, 31) + hashCode(this.
|
|
1111
|
+
var result = getStringHashCode(this.value_1);
|
|
1112
|
+
result = imul(result, 31) + hashCode(this.params_1) | 0;
|
|
1145
1113
|
return result;
|
|
1146
1114
|
};
|
|
1147
1115
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1149,15 +1117,64 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1149
1117
|
return true;
|
|
1150
1118
|
if (!(other instanceof HeaderValue))
|
|
1151
1119
|
return false;
|
|
1152
|
-
if (!(this.
|
|
1120
|
+
if (!(this.value_1 === other.value_1))
|
|
1153
1121
|
return false;
|
|
1154
|
-
if (!equals_0(this.
|
|
1122
|
+
if (!equals_0(this.params_1, other.params_1))
|
|
1155
1123
|
return false;
|
|
1156
1124
|
return true;
|
|
1157
1125
|
};
|
|
1158
1126
|
function parseHeaderValue(text) {
|
|
1159
1127
|
return parseHeaderValue_0(text, false);
|
|
1160
1128
|
}
|
|
1129
|
+
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1130
|
+
HeaderValueParam.call($this, name, value, false);
|
|
1131
|
+
return $this;
|
|
1132
|
+
}
|
|
1133
|
+
function HeaderValueParam_init_$Create$(name, value) {
|
|
1134
|
+
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1135
|
+
}
|
|
1136
|
+
function HeaderValueParam(name, value, escapeValue) {
|
|
1137
|
+
this.name_1 = name;
|
|
1138
|
+
this.value_1 = value;
|
|
1139
|
+
this.escapeValue_1 = escapeValue;
|
|
1140
|
+
}
|
|
1141
|
+
protoOf(HeaderValueParam).equals = function (other) {
|
|
1142
|
+
var tmp;
|
|
1143
|
+
var tmp_0;
|
|
1144
|
+
if (other instanceof HeaderValueParam) {
|
|
1145
|
+
tmp_0 = equals(other.name_1, this.name_1, true);
|
|
1146
|
+
} else {
|
|
1147
|
+
tmp_0 = false;
|
|
1148
|
+
}
|
|
1149
|
+
if (tmp_0) {
|
|
1150
|
+
tmp = equals(other.value_1, this.value_1, true);
|
|
1151
|
+
} else {
|
|
1152
|
+
tmp = false;
|
|
1153
|
+
}
|
|
1154
|
+
return tmp;
|
|
1155
|
+
};
|
|
1156
|
+
protoOf(HeaderValueParam).hashCode = function () {
|
|
1157
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1158
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1159
|
+
var tmp$ret$0 = this.name_1.toLowerCase();
|
|
1160
|
+
var result = getStringHashCode(tmp$ret$0);
|
|
1161
|
+
var tmp = result;
|
|
1162
|
+
var tmp_0 = imul(31, result);
|
|
1163
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1164
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1165
|
+
var tmp$ret$2 = this.value_1.toLowerCase();
|
|
1166
|
+
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1167
|
+
return result;
|
|
1168
|
+
};
|
|
1169
|
+
protoOf(HeaderValueParam).component1_7eebsc_k$ = function () {
|
|
1170
|
+
return this.name_1;
|
|
1171
|
+
};
|
|
1172
|
+
protoOf(HeaderValueParam).component2_7eebsb_k$ = function () {
|
|
1173
|
+
return this.value_1;
|
|
1174
|
+
};
|
|
1175
|
+
protoOf(HeaderValueParam).toString = function () {
|
|
1176
|
+
return 'HeaderValueParam(name=' + this.name_1 + ', value=' + this.value_1 + ', escapeValue=' + this.escapeValue_1 + ')';
|
|
1177
|
+
};
|
|
1161
1178
|
function parseHeaderValue_0(text, parametersOnly) {
|
|
1162
1179
|
if (text == null) {
|
|
1163
1180
|
return emptyList();
|
|
@@ -1178,9 +1195,9 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1178
1195
|
while (position <= get_lastIndex_0(text)) {
|
|
1179
1196
|
var tmp0_subject = charCodeAt(text, position);
|
|
1180
1197
|
if (tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
1181
|
-
var tmp_0 = items.
|
|
1198
|
+
var tmp_0 = items.get_value_j01efc_k$();
|
|
1182
1199
|
var tmp1_elvis_lhs = valueEnd;
|
|
1183
|
-
tmp_0.
|
|
1200
|
+
tmp_0.add_utx5q5_k$(new HeaderValue(subtrim(text, start, tmp1_elvis_lhs == null ? position : tmp1_elvis_lhs), valueOrEmpty(parameters)));
|
|
1184
1201
|
return position + 1 | 0;
|
|
1185
1202
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59)) {
|
|
1186
1203
|
if (valueEnd == null)
|
|
@@ -1196,18 +1213,18 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1196
1213
|
position = tmp_1;
|
|
1197
1214
|
}
|
|
1198
1215
|
}
|
|
1199
|
-
var tmp_2 = items.
|
|
1216
|
+
var tmp_2 = items.get_value_j01efc_k$();
|
|
1200
1217
|
var tmp2_elvis_lhs = valueEnd;
|
|
1201
|
-
tmp_2.
|
|
1218
|
+
tmp_2.add_utx5q5_k$(new HeaderValue(subtrim(text, start, tmp2_elvis_lhs == null ? position : tmp2_elvis_lhs), valueOrEmpty(parameters)));
|
|
1202
1219
|
return position;
|
|
1203
1220
|
}
|
|
1204
1221
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1205
|
-
return _this__u8e3s4.
|
|
1222
|
+
return _this__u8e3s4.isInitialized_2wsk3a_k$() ? _this__u8e3s4.get_value_j01efc_k$() : emptyList();
|
|
1206
1223
|
}
|
|
1207
1224
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1208
1225
|
// Inline function 'kotlin.text.trim' call
|
|
1209
1226
|
var this_0 = substring(_this__u8e3s4, start, end);
|
|
1210
|
-
return
|
|
1227
|
+
return toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
1211
1228
|
}
|
|
1212
1229
|
function parseHeaderValueParameter(text, start, parameters) {
|
|
1213
1230
|
var position = start;
|
|
@@ -1215,8 +1232,8 @@ function parseHeaderValueParameter(text, start, parameters) {
|
|
|
1215
1232
|
var tmp0_subject = charCodeAt(text, position);
|
|
1216
1233
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1217
1234
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1218
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1219
|
-
var paramValue = _destruct__k2r9zo.
|
|
1235
|
+
var paramEnd = _destruct__k2r9zo.component1_7eebsc_k$();
|
|
1236
|
+
var paramValue = _destruct__k2r9zo.component2_7eebsb_k$();
|
|
1220
1237
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1221
1238
|
return paramEnd;
|
|
1222
1239
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1249,25 +1266,20 @@ function parseHeaderValueParameterValue(value, start) {
|
|
|
1249
1266
|
}
|
|
1250
1267
|
function parseHeaderValueParameterValueQuoted(value, start) {
|
|
1251
1268
|
var position = start;
|
|
1252
|
-
var builder = StringBuilder_init_$Create$();
|
|
1269
|
+
var builder = StringBuilder_init_$Create$_0();
|
|
1253
1270
|
loop: while (position <= get_lastIndex_0(value)) {
|
|
1254
1271
|
var currentChar = charCodeAt(value, position);
|
|
1255
1272
|
if (currentChar === _Char___init__impl__6a9atx(34) && nextIsDelimiterOrEnd(value, position)) {
|
|
1256
1273
|
return to(position + 1 | 0, builder.toString());
|
|
1257
|
-
} else if (currentChar === _Char___init__impl__6a9atx(92) && position <
|
|
1258
|
-
builder.
|
|
1274
|
+
} else if (currentChar === _Char___init__impl__6a9atx(92) && position < get_lastIndex_0(value)) {
|
|
1275
|
+
builder.append_58al37_k$(charCodeAt(value, position + 1 | 0));
|
|
1259
1276
|
position = position + 2 | 0;
|
|
1260
1277
|
continue loop;
|
|
1261
1278
|
}
|
|
1262
|
-
builder.
|
|
1279
|
+
builder.append_58al37_k$(currentChar);
|
|
1263
1280
|
position = position + 1 | 0;
|
|
1264
1281
|
}
|
|
1265
|
-
|
|
1266
|
-
var tmp0 = _Char___init__impl__6a9atx(34);
|
|
1267
|
-
// Inline function 'kotlin.text.plus' call
|
|
1268
|
-
var other = builder.toString();
|
|
1269
|
-
var tmp$ret$0 = toString_0(tmp0) + other;
|
|
1270
|
-
return to(tmp, tmp$ret$0);
|
|
1282
|
+
return to(position, substring(value, start - 1 | 0, position));
|
|
1271
1283
|
}
|
|
1272
1284
|
function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
1273
1285
|
var position = start + 1 | 0;
|
|
@@ -1278,11 +1290,11 @@ function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
|
1278
1290
|
}
|
|
1279
1291
|
function parseHeaderValue$lambda() {
|
|
1280
1292
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1281
|
-
return ArrayList_init_$Create$
|
|
1293
|
+
return ArrayList_init_$Create$();
|
|
1282
1294
|
}
|
|
1283
1295
|
function parseHeaderValueItem$lambda() {
|
|
1284
1296
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1285
|
-
return ArrayList_init_$Create$
|
|
1297
|
+
return ArrayList_init_$Create$();
|
|
1286
1298
|
}
|
|
1287
1299
|
function parseHeaderValueParameter$addParam($parameters, text, start, end, value) {
|
|
1288
1300
|
var name = subtrim(text, start, end);
|
|
@@ -1290,119 +1302,124 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
|
|
|
1290
1302
|
if (charSequenceLength(name) === 0) {
|
|
1291
1303
|
return Unit_instance;
|
|
1292
1304
|
}
|
|
1293
|
-
$parameters.
|
|
1305
|
+
$parameters.get_value_j01efc_k$().add_utx5q5_k$(HeaderValueParam_init_$Create$(name, value));
|
|
1306
|
+
}
|
|
1307
|
+
function get_ILLEGAL_HEADER_NAME_CHARS() {
|
|
1308
|
+
_init_properties_HttpHeaders_kt__8vtb1o();
|
|
1309
|
+
return ILLEGAL_HEADER_NAME_CHARS;
|
|
1294
1310
|
}
|
|
1311
|
+
var ILLEGAL_HEADER_NAME_CHARS;
|
|
1295
1312
|
function HttpHeaders() {
|
|
1296
1313
|
HttpHeaders_instance = 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.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1314
|
+
this.Accept_1 = 'Accept';
|
|
1315
|
+
this.AcceptCharset_1 = 'Accept-Charset';
|
|
1316
|
+
this.AcceptEncoding_1 = 'Accept-Encoding';
|
|
1317
|
+
this.AcceptLanguage_1 = 'Accept-Language';
|
|
1318
|
+
this.AcceptRanges_1 = 'Accept-Ranges';
|
|
1319
|
+
this.Age_1 = 'Age';
|
|
1320
|
+
this.Allow_1 = 'Allow';
|
|
1321
|
+
this.ALPN_1 = 'ALPN';
|
|
1322
|
+
this.AuthenticationInfo_1 = 'Authentication-Info';
|
|
1323
|
+
this.Authorization_1 = 'Authorization';
|
|
1324
|
+
this.CacheControl_1 = 'Cache-Control';
|
|
1325
|
+
this.Connection_1 = 'Connection';
|
|
1326
|
+
this.ContentDisposition_1 = 'Content-Disposition';
|
|
1327
|
+
this.ContentEncoding_1 = 'Content-Encoding';
|
|
1328
|
+
this.ContentLanguage_1 = 'Content-Language';
|
|
1329
|
+
this.ContentLength_1 = 'Content-Length';
|
|
1330
|
+
this.ContentLocation_1 = 'Content-Location';
|
|
1331
|
+
this.ContentRange_1 = 'Content-Range';
|
|
1332
|
+
this.ContentType_1 = 'Content-Type';
|
|
1333
|
+
this.Cookie_1 = 'Cookie';
|
|
1334
|
+
this.DASL_1 = 'DASL';
|
|
1335
|
+
this.Date_1 = 'Date';
|
|
1336
|
+
this.DAV_1 = 'DAV';
|
|
1337
|
+
this.Depth_1 = 'Depth';
|
|
1338
|
+
this.Destination_1 = 'Destination';
|
|
1339
|
+
this.ETag_1 = 'ETag';
|
|
1340
|
+
this.Expect_1 = 'Expect';
|
|
1341
|
+
this.Expires_1 = 'Expires';
|
|
1342
|
+
this.From_1 = 'From';
|
|
1343
|
+
this.Forwarded_1 = 'Forwarded';
|
|
1344
|
+
this.Host_1 = 'Host';
|
|
1345
|
+
this.HTTP2Settings_1 = 'HTTP2-Settings';
|
|
1346
|
+
this.If_1 = 'If';
|
|
1347
|
+
this.IfMatch_1 = 'If-Match';
|
|
1348
|
+
this.IfModifiedSince_1 = 'If-Modified-Since';
|
|
1349
|
+
this.IfNoneMatch_1 = 'If-None-Match';
|
|
1350
|
+
this.IfRange_1 = 'If-Range';
|
|
1351
|
+
this.IfScheduleTagMatch_1 = 'If-Schedule-Tag-Match';
|
|
1352
|
+
this.IfUnmodifiedSince_1 = 'If-Unmodified-Since';
|
|
1353
|
+
this.LastModified_1 = 'Last-Modified';
|
|
1354
|
+
this.Location_1 = 'Location';
|
|
1355
|
+
this.LockToken_1 = 'Lock-Token';
|
|
1356
|
+
this.Link_1 = 'Link';
|
|
1357
|
+
this.MaxForwards_1 = 'Max-Forwards';
|
|
1358
|
+
this.MIMEVersion_1 = 'MIME-Version';
|
|
1359
|
+
this.OrderingType_1 = 'Ordering-Type';
|
|
1360
|
+
this.Origin_1 = 'Origin';
|
|
1361
|
+
this.Overwrite_1 = 'Overwrite';
|
|
1362
|
+
this.Position_1 = 'Position';
|
|
1363
|
+
this.Pragma_1 = 'Pragma';
|
|
1364
|
+
this.Prefer_1 = 'Prefer';
|
|
1365
|
+
this.PreferenceApplied_1 = 'Preference-Applied';
|
|
1366
|
+
this.ProxyAuthenticate_1 = 'Proxy-Authenticate';
|
|
1367
|
+
this.ProxyAuthenticationInfo_1 = 'Proxy-Authentication-Info';
|
|
1368
|
+
this.ProxyAuthorization_1 = 'Proxy-Authorization';
|
|
1369
|
+
this.PublicKeyPins_1 = 'Public-Key-Pins';
|
|
1370
|
+
this.PublicKeyPinsReportOnly_1 = 'Public-Key-Pins-Report-Only';
|
|
1371
|
+
this.Range_1 = 'Range';
|
|
1372
|
+
this.Referrer_1 = 'Referer';
|
|
1373
|
+
this.RetryAfter_1 = 'Retry-After';
|
|
1374
|
+
this.ScheduleReply_1 = 'Schedule-Reply';
|
|
1375
|
+
this.ScheduleTag_1 = 'Schedule-Tag';
|
|
1376
|
+
this.SecWebSocketAccept_1 = 'Sec-WebSocket-Accept';
|
|
1377
|
+
this.SecWebSocketExtensions_1 = 'Sec-WebSocket-Extensions';
|
|
1378
|
+
this.SecWebSocketKey_1 = 'Sec-WebSocket-Key';
|
|
1379
|
+
this.SecWebSocketProtocol_1 = 'Sec-WebSocket-Protocol';
|
|
1380
|
+
this.SecWebSocketVersion_1 = 'Sec-WebSocket-Version';
|
|
1381
|
+
this.Server_1 = 'Server';
|
|
1382
|
+
this.SetCookie_1 = 'Set-Cookie';
|
|
1383
|
+
this.SLUG_1 = 'SLUG';
|
|
1384
|
+
this.StrictTransportSecurity_1 = 'Strict-Transport-Security';
|
|
1385
|
+
this.TE_1 = 'TE';
|
|
1386
|
+
this.Timeout_1 = 'Timeout';
|
|
1387
|
+
this.Trailer_1 = 'Trailer';
|
|
1388
|
+
this.TransferEncoding_1 = 'Transfer-Encoding';
|
|
1389
|
+
this.Upgrade_1 = 'Upgrade';
|
|
1390
|
+
this.UserAgent_1 = 'User-Agent';
|
|
1391
|
+
this.Vary_1 = 'Vary';
|
|
1392
|
+
this.Via_1 = 'Via';
|
|
1393
|
+
this.Warning_1 = 'Warning';
|
|
1394
|
+
this.WWWAuthenticate_1 = 'WWW-Authenticate';
|
|
1395
|
+
this.AccessControlAllowOrigin_1 = 'Access-Control-Allow-Origin';
|
|
1396
|
+
this.AccessControlAllowMethods_1 = 'Access-Control-Allow-Methods';
|
|
1397
|
+
this.AccessControlAllowCredentials_1 = 'Access-Control-Allow-Credentials';
|
|
1398
|
+
this.AccessControlAllowHeaders_1 = 'Access-Control-Allow-Headers';
|
|
1399
|
+
this.AccessControlRequestMethod_1 = 'Access-Control-Request-Method';
|
|
1400
|
+
this.AccessControlRequestHeaders_1 = 'Access-Control-Request-Headers';
|
|
1401
|
+
this.AccessControlExposeHeaders_1 = 'Access-Control-Expose-Headers';
|
|
1402
|
+
this.AccessControlMaxAge_1 = 'Access-Control-Max-Age';
|
|
1403
|
+
this.XHttpMethodOverride_1 = 'X-Http-Method-Override';
|
|
1404
|
+
this.XForwardedHost_1 = 'X-Forwarded-Host';
|
|
1405
|
+
this.XForwardedServer_1 = 'X-Forwarded-Server';
|
|
1406
|
+
this.XForwardedProto_1 = 'X-Forwarded-Proto';
|
|
1407
|
+
this.XForwardedFor_1 = 'X-Forwarded-For';
|
|
1408
|
+
this.XForwardedPort_1 = 'X-Forwarded-Port';
|
|
1409
|
+
this.XRequestId_1 = 'X-Request-ID';
|
|
1410
|
+
this.XCorrelationId_1 = 'X-Correlation-ID';
|
|
1411
|
+
this.XTotalCount_1 = 'X-Total-Count';
|
|
1412
|
+
this.LastEventID_1 = 'Last-Event-ID';
|
|
1413
|
+
this.TDMReservation_1 = 'TDM-Reservation';
|
|
1414
|
+
this.TDMPolicy_1 = 'TDM-Policy';
|
|
1398
1415
|
var tmp = this;
|
|
1399
1416
|
// Inline function 'kotlin.arrayOf' call
|
|
1400
1417
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1401
1418
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1402
|
-
tmp.
|
|
1403
|
-
this.
|
|
1419
|
+
tmp.UnsafeHeadersArray_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1420
|
+
this.UnsafeHeadersList_1 = asList(this.UnsafeHeadersArray_1);
|
|
1404
1421
|
}
|
|
1405
|
-
protoOf(HttpHeaders).
|
|
1422
|
+
protoOf(HttpHeaders).checkHeaderName_cxkzpm_k$ = function (name) {
|
|
1406
1423
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1407
1424
|
var index = 0;
|
|
1408
1425
|
var inductionVariable = 0;
|
|
@@ -1411,12 +1428,12 @@ protoOf(HttpHeaders).f2r = function (name) {
|
|
|
1411
1428
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1412
1429
|
var _unary__edvuaz = index;
|
|
1413
1430
|
index = _unary__edvuaz + 1 | 0;
|
|
1414
|
-
if (
|
|
1431
|
+
if (get_ILLEGAL_HEADER_NAME_CHARS().contains_egozq6_k$(item)) {
|
|
1415
1432
|
throw new IllegalHeaderNameException(name, _unary__edvuaz);
|
|
1416
1433
|
}
|
|
1417
1434
|
}
|
|
1418
1435
|
};
|
|
1419
|
-
protoOf(HttpHeaders).
|
|
1436
|
+
protoOf(HttpHeaders).checkHeaderValue_67110u_k$ = function (value) {
|
|
1420
1437
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1421
1438
|
var index = 0;
|
|
1422
1439
|
var inductionVariable = 0;
|
|
@@ -1440,52 +1457,56 @@ function UnsafeHeaderException(header) {
|
|
|
1440
1457
|
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1441
1458
|
captureStack(this, UnsafeHeaderException);
|
|
1442
1459
|
}
|
|
1443
|
-
function isDelimiter(ch) {
|
|
1444
|
-
return contains('"(),/:;<=>?@[\\]{}', ch);
|
|
1445
|
-
}
|
|
1446
1460
|
function IllegalHeaderNameException(headerName, position) {
|
|
1447
|
-
var tmp = "Header name '" + headerName + "' contains illegal character '" +
|
|
1461
|
+
var tmp = "Header name '" + headerName + "' contains illegal character '" + toString(charCodeAt(headerName, position)) + "'";
|
|
1448
1462
|
// Inline function 'kotlin.code' call
|
|
1449
1463
|
var this_0 = charCodeAt(headerName, position);
|
|
1450
1464
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1451
1465
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1452
1466
|
captureStack(this, IllegalHeaderNameException);
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1467
|
+
this.headerName_1 = headerName;
|
|
1468
|
+
this.position_1 = position;
|
|
1455
1469
|
}
|
|
1456
1470
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1457
|
-
var tmp = "Header value '" + headerValue + "' contains illegal character '" +
|
|
1471
|
+
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString(charCodeAt(headerValue, position)) + "'";
|
|
1458
1472
|
// Inline function 'kotlin.code' call
|
|
1459
1473
|
var this_0 = charCodeAt(headerValue, position);
|
|
1460
1474
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1461
1475
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1462
1476
|
captureStack(this, IllegalHeaderValueException);
|
|
1463
|
-
this.
|
|
1464
|
-
this.
|
|
1477
|
+
this.headerValue_1 = headerValue;
|
|
1478
|
+
this.position_1 = position;
|
|
1479
|
+
}
|
|
1480
|
+
var properties_initialized_HttpHeaders_kt_3d6wem;
|
|
1481
|
+
function _init_properties_HttpHeaders_kt__8vtb1o() {
|
|
1482
|
+
if (!properties_initialized_HttpHeaders_kt_3d6wem) {
|
|
1483
|
+
properties_initialized_HttpHeaders_kt_3d6wem = true;
|
|
1484
|
+
ILLEGAL_HEADER_NAME_CHARS = Companion_instance.of_75jmpt_k$(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(0), _Char___init__impl__6a9atx(32))).plus_an5ph_k$(Companion_instance.of_5gnbr7_k$('"(),/:;<=>?@[\\]{}'));
|
|
1485
|
+
}
|
|
1465
1486
|
}
|
|
1466
1487
|
function contentLength(_this__u8e3s4) {
|
|
1467
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1488
|
+
var tmp0_safe_receiver = _this__u8e3s4.get_headers_ef25jx_k$().get_6bo4tg_k$('Content-Length');
|
|
1468
1489
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1469
1490
|
}
|
|
1470
1491
|
function contentType(_this__u8e3s4) {
|
|
1471
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1492
|
+
var tmp0_safe_receiver = _this__u8e3s4.get_headers_ef25jx_k$().get_6bo4tg_k$('Content-Type');
|
|
1472
1493
|
var tmp;
|
|
1473
1494
|
if (tmp0_safe_receiver == null) {
|
|
1474
1495
|
tmp = null;
|
|
1475
1496
|
} else {
|
|
1476
1497
|
// Inline function 'kotlin.let' call
|
|
1477
|
-
tmp =
|
|
1498
|
+
tmp = Companion_getInstance_0().parse_pc1q8p_k$(tmp0_safe_receiver);
|
|
1478
1499
|
}
|
|
1479
1500
|
return tmp;
|
|
1480
1501
|
}
|
|
1481
1502
|
function contentType_0(_this__u8e3s4) {
|
|
1482
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1503
|
+
var tmp0_safe_receiver = _this__u8e3s4.get_headers_ef25jx_k$().get_6bo4tg_k$('Content-Type');
|
|
1483
1504
|
var tmp;
|
|
1484
1505
|
if (tmp0_safe_receiver == null) {
|
|
1485
1506
|
tmp = null;
|
|
1486
1507
|
} else {
|
|
1487
1508
|
// Inline function 'kotlin.let' call
|
|
1488
|
-
tmp =
|
|
1509
|
+
tmp = Companion_getInstance_0().parse_pc1q8p_k$(tmp0_safe_receiver);
|
|
1489
1510
|
}
|
|
1490
1511
|
return tmp;
|
|
1491
1512
|
}
|
|
@@ -1494,90 +1515,90 @@ function charset_0(_this__u8e3s4) {
|
|
|
1494
1515
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1495
1516
|
}
|
|
1496
1517
|
function contentType_1(_this__u8e3s4, type) {
|
|
1497
|
-
return _this__u8e3s4.
|
|
1518
|
+
return _this__u8e3s4.get_headers_ef25jx_k$().set_j87cuq_k$('Content-Type', type.toString());
|
|
1498
1519
|
}
|
|
1499
1520
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1500
1521
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1501
1522
|
return REQUESTS_WITHOUT_BODY;
|
|
1502
1523
|
}
|
|
1503
1524
|
var REQUESTS_WITHOUT_BODY;
|
|
1504
|
-
function
|
|
1505
|
-
|
|
1506
|
-
this.
|
|
1507
|
-
this.
|
|
1508
|
-
this.
|
|
1509
|
-
this.
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1513
|
-
this.
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1525
|
+
function Companion_3() {
|
|
1526
|
+
Companion_instance_3 = this;
|
|
1527
|
+
this.Get_1 = new HttpMethod('GET');
|
|
1528
|
+
this.Post_1 = new HttpMethod('POST');
|
|
1529
|
+
this.Put_1 = new HttpMethod('PUT');
|
|
1530
|
+
this.Patch_1 = new HttpMethod('PATCH');
|
|
1531
|
+
this.Delete_1 = new HttpMethod('DELETE');
|
|
1532
|
+
this.Head_1 = new HttpMethod('HEAD');
|
|
1533
|
+
this.Options_1 = new HttpMethod('OPTIONS');
|
|
1534
|
+
this.Trace_1 = new HttpMethod('TRACE');
|
|
1535
|
+
this.Query_1 = new HttpMethod('QUERY');
|
|
1536
|
+
this.DefaultMethods_1 = listOf_0([this.Get_1, this.Post_1, this.Put_1, this.Patch_1, this.Delete_1, this.Head_1, this.Options_1]);
|
|
1516
1537
|
}
|
|
1517
|
-
var
|
|
1518
|
-
function
|
|
1519
|
-
if (
|
|
1520
|
-
new
|
|
1521
|
-
return
|
|
1538
|
+
var Companion_instance_3;
|
|
1539
|
+
function Companion_getInstance_3() {
|
|
1540
|
+
if (Companion_instance_3 == null)
|
|
1541
|
+
new Companion_3();
|
|
1542
|
+
return Companion_instance_3;
|
|
1522
1543
|
}
|
|
1523
1544
|
function HttpMethod(value) {
|
|
1524
|
-
|
|
1525
|
-
this.
|
|
1545
|
+
Companion_getInstance_3();
|
|
1546
|
+
this.value_1 = value;
|
|
1526
1547
|
}
|
|
1527
1548
|
protoOf(HttpMethod).toString = function () {
|
|
1528
|
-
return this.
|
|
1549
|
+
return this.value_1;
|
|
1529
1550
|
};
|
|
1530
1551
|
protoOf(HttpMethod).hashCode = function () {
|
|
1531
|
-
return getStringHashCode(this.
|
|
1552
|
+
return getStringHashCode(this.value_1);
|
|
1532
1553
|
};
|
|
1533
1554
|
protoOf(HttpMethod).equals = function (other) {
|
|
1534
1555
|
if (this === other)
|
|
1535
1556
|
return true;
|
|
1536
1557
|
if (!(other instanceof HttpMethod))
|
|
1537
1558
|
return false;
|
|
1538
|
-
if (!(this.
|
|
1559
|
+
if (!(this.value_1 === other.value_1))
|
|
1539
1560
|
return false;
|
|
1540
1561
|
return true;
|
|
1541
1562
|
};
|
|
1542
1563
|
function get_supportsRequestBody(_this__u8e3s4) {
|
|
1543
1564
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1544
|
-
return !get_REQUESTS_WITHOUT_BODY().
|
|
1565
|
+
return !get_REQUESTS_WITHOUT_BODY().contains_aljjnj_k$(_this__u8e3s4);
|
|
1545
1566
|
}
|
|
1546
1567
|
var properties_initialized_HttpMethod_kt_ogor3f;
|
|
1547
1568
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1548
1569
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1549
1570
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1550
|
-
REQUESTS_WITHOUT_BODY = setOf([
|
|
1571
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().Get_1, Companion_getInstance_3().Head_1, Companion_getInstance_3().Options_1, Companion_getInstance_3().Trace_1]);
|
|
1551
1572
|
}
|
|
1552
1573
|
}
|
|
1553
|
-
function
|
|
1554
|
-
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1574
|
+
function Companion_4() {
|
|
1575
|
+
Companion_instance_4 = this;
|
|
1576
|
+
this.HTTP_3_0__1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1577
|
+
this.HTTP_2_0__1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1578
|
+
this.HTTP_1_1__1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1579
|
+
this.HTTP_1_0__1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1580
|
+
this.SPDY_3__1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1581
|
+
this.QUIC_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1561
1582
|
}
|
|
1562
|
-
var
|
|
1563
|
-
function
|
|
1564
|
-
if (
|
|
1565
|
-
new
|
|
1566
|
-
return
|
|
1583
|
+
var Companion_instance_4;
|
|
1584
|
+
function Companion_getInstance_4() {
|
|
1585
|
+
if (Companion_instance_4 == null)
|
|
1586
|
+
new Companion_4();
|
|
1587
|
+
return Companion_instance_4;
|
|
1567
1588
|
}
|
|
1568
1589
|
function HttpProtocolVersion(name, major, minor) {
|
|
1569
|
-
|
|
1570
|
-
this.
|
|
1571
|
-
this.
|
|
1572
|
-
this.
|
|
1590
|
+
Companion_getInstance_4();
|
|
1591
|
+
this.name_1 = name;
|
|
1592
|
+
this.major_1 = major;
|
|
1593
|
+
this.minor_1 = minor;
|
|
1573
1594
|
}
|
|
1574
1595
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1575
|
-
return this.
|
|
1596
|
+
return this.name_1 + '/' + this.major_1 + '.' + this.minor_1;
|
|
1576
1597
|
};
|
|
1577
1598
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1578
|
-
var result = getStringHashCode(this.
|
|
1579
|
-
result = imul(result, 31) + this.
|
|
1580
|
-
result = imul(result, 31) + this.
|
|
1599
|
+
var result = getStringHashCode(this.name_1);
|
|
1600
|
+
result = imul(result, 31) + this.major_1 | 0;
|
|
1601
|
+
result = imul(result, 31) + this.minor_1 | 0;
|
|
1581
1602
|
return result;
|
|
1582
1603
|
};
|
|
1583
1604
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1585,140 +1606,141 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1585
1606
|
return true;
|
|
1586
1607
|
if (!(other instanceof HttpProtocolVersion))
|
|
1587
1608
|
return false;
|
|
1588
|
-
if (!(this.
|
|
1609
|
+
if (!(this.name_1 === other.name_1))
|
|
1589
1610
|
return false;
|
|
1590
|
-
if (!(this.
|
|
1611
|
+
if (!(this.major_1 === other.major_1))
|
|
1591
1612
|
return false;
|
|
1592
|
-
if (!(this.
|
|
1613
|
+
if (!(this.minor_1 === other.minor_1))
|
|
1593
1614
|
return false;
|
|
1594
1615
|
return true;
|
|
1595
1616
|
};
|
|
1596
|
-
function
|
|
1597
|
-
|
|
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.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1617
|
+
function Companion_5() {
|
|
1618
|
+
Companion_instance_5 = this;
|
|
1619
|
+
this.Continue_1 = new HttpStatusCode(100, 'Continue');
|
|
1620
|
+
this.SwitchingProtocols_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1621
|
+
this.Processing_1 = new HttpStatusCode(102, 'Processing');
|
|
1622
|
+
this.OK_1 = new HttpStatusCode(200, 'OK');
|
|
1623
|
+
this.Created_1 = new HttpStatusCode(201, 'Created');
|
|
1624
|
+
this.Accepted_1 = new HttpStatusCode(202, 'Accepted');
|
|
1625
|
+
this.NonAuthoritativeInformation_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1626
|
+
this.NoContent_1 = new HttpStatusCode(204, 'No Content');
|
|
1627
|
+
this.ResetContent_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1628
|
+
this.PartialContent_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1629
|
+
this.MultiStatus_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1630
|
+
this.MultipleChoices_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1631
|
+
this.MovedPermanently_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1632
|
+
this.Found_1 = new HttpStatusCode(302, 'Found');
|
|
1633
|
+
this.SeeOther_1 = new HttpStatusCode(303, 'See Other');
|
|
1634
|
+
this.NotModified_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1635
|
+
this.UseProxy_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1636
|
+
this.SwitchProxy_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1637
|
+
this.TemporaryRedirect_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1638
|
+
this.PermanentRedirect_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1639
|
+
this.BadRequest_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1640
|
+
this.Unauthorized_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1641
|
+
this.PaymentRequired_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1642
|
+
this.Forbidden_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1643
|
+
this.NotFound_1 = new HttpStatusCode(404, 'Not Found');
|
|
1644
|
+
this.MethodNotAllowed_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1645
|
+
this.NotAcceptable_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1646
|
+
this.ProxyAuthenticationRequired_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1647
|
+
this.RequestTimeout_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1648
|
+
this.Conflict_1 = new HttpStatusCode(409, 'Conflict');
|
|
1649
|
+
this.Gone_1 = new HttpStatusCode(410, 'Gone');
|
|
1650
|
+
this.LengthRequired_1 = new HttpStatusCode(411, 'Length Required');
|
|
1651
|
+
this.PreconditionFailed_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1652
|
+
this.PayloadTooLarge_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1653
|
+
this.RequestURITooLong_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1654
|
+
this.UnsupportedMediaType_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1655
|
+
this.RequestedRangeNotSatisfiable_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1656
|
+
this.ExpectationFailed_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1657
|
+
this.UnprocessableEntity_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1658
|
+
this.Locked_1 = new HttpStatusCode(423, 'Locked');
|
|
1659
|
+
this.FailedDependency_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1660
|
+
this.TooEarly_1 = new HttpStatusCode(425, 'Too Early');
|
|
1661
|
+
this.UpgradeRequired_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1662
|
+
this.PreconditionRequired_1 = new HttpStatusCode(428, 'Precondition Required');
|
|
1663
|
+
this.TooManyRequests_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1664
|
+
this.RequestHeaderFieldTooLarge_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1665
|
+
this.InternalServerError_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1666
|
+
this.NotImplemented_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1667
|
+
this.BadGateway_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1668
|
+
this.ServiceUnavailable_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1669
|
+
this.GatewayTimeout_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1670
|
+
this.VersionNotSupported_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1671
|
+
this.VariantAlsoNegotiates_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1672
|
+
this.InsufficientStorage_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1673
|
+
this.allStatusCodes_1 = allStatusCodes();
|
|
1652
1674
|
var tmp = this;
|
|
1653
1675
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1654
|
-
var this_0 = this.
|
|
1676
|
+
var this_0 = this.allStatusCodes_1;
|
|
1655
1677
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1656
1678
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1657
1679
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1658
|
-
var _iterator__ex2g4s = this_0.
|
|
1659
|
-
while (_iterator__ex2g4s.
|
|
1660
|
-
var element = _iterator__ex2g4s.
|
|
1661
|
-
var tmp$ret$2 = element.
|
|
1662
|
-
destination.
|
|
1680
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
1681
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1682
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1683
|
+
var tmp$ret$2 = element.value_1;
|
|
1684
|
+
destination.put_4fpzoq_k$(tmp$ret$2, element);
|
|
1663
1685
|
}
|
|
1664
|
-
tmp.
|
|
1686
|
+
tmp.statusCodesMap_1 = destination;
|
|
1665
1687
|
}
|
|
1666
|
-
var
|
|
1667
|
-
function
|
|
1668
|
-
if (
|
|
1669
|
-
new
|
|
1670
|
-
return
|
|
1688
|
+
var Companion_instance_5;
|
|
1689
|
+
function Companion_getInstance_5() {
|
|
1690
|
+
if (Companion_instance_5 == null)
|
|
1691
|
+
new Companion_5();
|
|
1692
|
+
return Companion_instance_5;
|
|
1671
1693
|
}
|
|
1672
1694
|
function HttpStatusCode(value, description) {
|
|
1673
|
-
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1695
|
+
Companion_getInstance_5();
|
|
1696
|
+
this.value_1 = value;
|
|
1697
|
+
this.description_1 = description;
|
|
1676
1698
|
}
|
|
1677
1699
|
protoOf(HttpStatusCode).toString = function () {
|
|
1678
|
-
return '' + this.
|
|
1700
|
+
return '' + this.value_1 + ' ' + this.description_1;
|
|
1679
1701
|
};
|
|
1680
1702
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1681
1703
|
var tmp;
|
|
1682
1704
|
if (other instanceof HttpStatusCode) {
|
|
1683
|
-
tmp = other.
|
|
1705
|
+
tmp = other.value_1 === this.value_1;
|
|
1684
1706
|
} else {
|
|
1685
1707
|
tmp = false;
|
|
1686
1708
|
}
|
|
1687
1709
|
return tmp;
|
|
1688
1710
|
};
|
|
1689
1711
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1690
|
-
return this.
|
|
1712
|
+
return this.value_1;
|
|
1691
1713
|
};
|
|
1692
|
-
protoOf(HttpStatusCode).
|
|
1693
|
-
return this.
|
|
1714
|
+
protoOf(HttpStatusCode).compareTo_ro40fh_k$ = function (other) {
|
|
1715
|
+
return this.value_1 - other.value_1 | 0;
|
|
1694
1716
|
};
|
|
1695
|
-
protoOf(HttpStatusCode).
|
|
1696
|
-
return this.
|
|
1717
|
+
protoOf(HttpStatusCode).compareTo_hpufkf_k$ = function (other) {
|
|
1718
|
+
return this.compareTo_ro40fh_k$(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1697
1719
|
};
|
|
1698
1720
|
function allStatusCodes() {
|
|
1699
|
-
return
|
|
1721
|
+
return listOf_0([Companion_getInstance_5().Continue_1, Companion_getInstance_5().SwitchingProtocols_1, Companion_getInstance_5().Processing_1, Companion_getInstance_5().OK_1, Companion_getInstance_5().Created_1, Companion_getInstance_5().Accepted_1, Companion_getInstance_5().NonAuthoritativeInformation_1, Companion_getInstance_5().NoContent_1, Companion_getInstance_5().ResetContent_1, Companion_getInstance_5().PartialContent_1, Companion_getInstance_5().MultiStatus_1, Companion_getInstance_5().MultipleChoices_1, Companion_getInstance_5().MovedPermanently_1, Companion_getInstance_5().Found_1, Companion_getInstance_5().SeeOther_1, Companion_getInstance_5().NotModified_1, Companion_getInstance_5().UseProxy_1, Companion_getInstance_5().SwitchProxy_1, Companion_getInstance_5().TemporaryRedirect_1, Companion_getInstance_5().PermanentRedirect_1, Companion_getInstance_5().BadRequest_1, Companion_getInstance_5().Unauthorized_1, Companion_getInstance_5().PaymentRequired_1, Companion_getInstance_5().Forbidden_1, Companion_getInstance_5().NotFound_1, Companion_getInstance_5().MethodNotAllowed_1, Companion_getInstance_5().NotAcceptable_1, Companion_getInstance_5().ProxyAuthenticationRequired_1, Companion_getInstance_5().RequestTimeout_1, Companion_getInstance_5().Conflict_1, Companion_getInstance_5().Gone_1, Companion_getInstance_5().LengthRequired_1, Companion_getInstance_5().PreconditionFailed_1, Companion_getInstance_5().PreconditionRequired_1, Companion_getInstance_5().PayloadTooLarge_1, Companion_getInstance_5().RequestURITooLong_1, Companion_getInstance_5().UnsupportedMediaType_1, Companion_getInstance_5().RequestedRangeNotSatisfiable_1, Companion_getInstance_5().ExpectationFailed_1, Companion_getInstance_5().UnprocessableEntity_1, Companion_getInstance_5().Locked_1, Companion_getInstance_5().FailedDependency_1, Companion_getInstance_5().TooEarly_1, Companion_getInstance_5().UpgradeRequired_1, Companion_getInstance_5().TooManyRequests_1, Companion_getInstance_5().RequestHeaderFieldTooLarge_1, Companion_getInstance_5().InternalServerError_1, Companion_getInstance_5().NotImplemented_1, Companion_getInstance_5().BadGateway_1, Companion_getInstance_5().ServiceUnavailable_1, Companion_getInstance_5().GatewayTimeout_1, Companion_getInstance_5().VersionNotSupported_1, Companion_getInstance_5().VariantAlsoNegotiates_1, Companion_getInstance_5().InsufficientStorage_1]);
|
|
1700
1722
|
}
|
|
1701
1723
|
function isSuccess(_this__u8e3s4) {
|
|
1702
|
-
var containsArg = _this__u8e3s4.
|
|
1724
|
+
var containsArg = _this__u8e3s4.value_1;
|
|
1703
1725
|
return 200 <= containsArg ? containsArg < 300 : false;
|
|
1704
1726
|
}
|
|
1705
1727
|
function formUrlEncode(_this__u8e3s4) {
|
|
1706
1728
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1707
|
-
var tmp0 = _this__u8e3s4.
|
|
1729
|
+
var tmp0 = _this__u8e3s4.entries_qbkxv4_k$();
|
|
1708
1730
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1709
|
-
var destination = ArrayList_init_$Create$
|
|
1710
|
-
var _iterator__ex2g4s = tmp0.
|
|
1711
|
-
while (_iterator__ex2g4s.
|
|
1712
|
-
var element = _iterator__ex2g4s.
|
|
1731
|
+
var destination = ArrayList_init_$Create$();
|
|
1732
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1733
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1734
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1713
1735
|
// Inline function 'kotlin.collections.map' call
|
|
1714
|
-
var this_0 = element.
|
|
1736
|
+
var this_0 = element.get_value_j01efc_k$();
|
|
1715
1737
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1716
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1717
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
1718
|
-
while (_iterator__ex2g4s_0.
|
|
1719
|
-
var item = _iterator__ex2g4s_0.
|
|
1720
|
-
var tmp$ret$5 = to(element.
|
|
1721
|
-
destination_0.
|
|
1738
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1739
|
+
var _iterator__ex2g4s_0 = this_0.iterator_jk1svi_k$();
|
|
1740
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
1741
|
+
var item = _iterator__ex2g4s_0.next_20eer_k$();
|
|
1742
|
+
var tmp$ret$5 = to(element.get_key_18j28a_k$(), item);
|
|
1743
|
+
destination_0.add_utx5q5_k$(tmp$ret$5);
|
|
1722
1744
|
}
|
|
1723
1745
|
var list = destination_0;
|
|
1724
1746
|
addAll(destination, list);
|
|
@@ -1728,7 +1750,7 @@ function formUrlEncode(_this__u8e3s4) {
|
|
|
1728
1750
|
function formUrlEncode_0(_this__u8e3s4) {
|
|
1729
1751
|
// Inline function 'kotlin.text.buildString' call
|
|
1730
1752
|
// Inline function 'kotlin.apply' call
|
|
1731
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
1753
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
1732
1754
|
formUrlEncodeTo(_this__u8e3s4, this_0);
|
|
1733
1755
|
return this_0.toString();
|
|
1734
1756
|
}
|
|
@@ -1736,52 +1758,52 @@ function formUrlEncodeTo(_this__u8e3s4, out) {
|
|
|
1736
1758
|
joinTo(_this__u8e3s4, out, '&', VOID, VOID, VOID, VOID, formUrlEncodeTo$lambda);
|
|
1737
1759
|
}
|
|
1738
1760
|
function formUrlEncodeTo$lambda(it) {
|
|
1739
|
-
var key = encodeURLParameter(it.
|
|
1761
|
+
var key = encodeURLParameter(it.first_1, true);
|
|
1740
1762
|
var tmp;
|
|
1741
|
-
if (it.
|
|
1763
|
+
if (it.second_1 == null) {
|
|
1742
1764
|
tmp = key;
|
|
1743
1765
|
} else {
|
|
1744
|
-
var value = encodeURLParameterValue(toString_1(it.
|
|
1766
|
+
var value = encodeURLParameterValue(toString_1(it.second_1));
|
|
1745
1767
|
tmp = key + '=' + value;
|
|
1746
1768
|
}
|
|
1747
1769
|
return tmp;
|
|
1748
1770
|
}
|
|
1749
|
-
function
|
|
1750
|
-
|
|
1751
|
-
this.
|
|
1771
|
+
function Companion_6() {
|
|
1772
|
+
Companion_instance_6 = this;
|
|
1773
|
+
this.Empty_1 = EmptyParameters_instance;
|
|
1752
1774
|
}
|
|
1753
|
-
var
|
|
1754
|
-
function
|
|
1755
|
-
if (
|
|
1756
|
-
new
|
|
1757
|
-
return
|
|
1775
|
+
var Companion_instance_6;
|
|
1776
|
+
function Companion_getInstance_6() {
|
|
1777
|
+
if (Companion_instance_6 == null)
|
|
1778
|
+
new Companion_6();
|
|
1779
|
+
return Companion_instance_6;
|
|
1758
1780
|
}
|
|
1759
1781
|
function Parameters() {
|
|
1760
1782
|
}
|
|
1761
1783
|
function EmptyParameters() {
|
|
1762
1784
|
}
|
|
1763
|
-
protoOf(EmptyParameters).
|
|
1785
|
+
protoOf(EmptyParameters).get_caseInsensitiveName_ehooe5_k$ = function () {
|
|
1764
1786
|
return true;
|
|
1765
1787
|
};
|
|
1766
|
-
protoOf(EmptyParameters).
|
|
1788
|
+
protoOf(EmptyParameters).getAll_ffxf4h_k$ = function (name) {
|
|
1767
1789
|
return null;
|
|
1768
1790
|
};
|
|
1769
|
-
protoOf(EmptyParameters).
|
|
1791
|
+
protoOf(EmptyParameters).names_1q9mbs_k$ = function () {
|
|
1770
1792
|
return emptySet();
|
|
1771
1793
|
};
|
|
1772
|
-
protoOf(EmptyParameters).
|
|
1794
|
+
protoOf(EmptyParameters).entries_qbkxv4_k$ = function () {
|
|
1773
1795
|
return emptySet();
|
|
1774
1796
|
};
|
|
1775
|
-
protoOf(EmptyParameters).
|
|
1797
|
+
protoOf(EmptyParameters).isEmpty_y1axqb_k$ = function () {
|
|
1776
1798
|
return true;
|
|
1777
1799
|
};
|
|
1778
1800
|
protoOf(EmptyParameters).toString = function () {
|
|
1779
|
-
return 'Parameters ' +
|
|
1801
|
+
return 'Parameters ' + toString_0(this.entries_qbkxv4_k$());
|
|
1780
1802
|
};
|
|
1781
1803
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1782
1804
|
var tmp;
|
|
1783
1805
|
if (!(other == null) ? isInterface(other, Parameters) : false) {
|
|
1784
|
-
tmp = other.
|
|
1806
|
+
tmp = other.isEmpty_y1axqb_k$();
|
|
1785
1807
|
} else {
|
|
1786
1808
|
tmp = false;
|
|
1787
1809
|
}
|
|
@@ -1799,15 +1821,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1799
1821
|
size = size === VOID ? 8 : size;
|
|
1800
1822
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1801
1823
|
}
|
|
1802
|
-
protoOf(ParametersBuilderImpl).
|
|
1803
|
-
return new ParametersImpl(this.
|
|
1824
|
+
protoOf(ParametersBuilderImpl).build_1k0s4u_k$ = function () {
|
|
1825
|
+
return new ParametersImpl(this.values_1);
|
|
1804
1826
|
};
|
|
1805
1827
|
function ParametersImpl(values) {
|
|
1806
1828
|
values = values === VOID ? emptyMap() : values;
|
|
1807
1829
|
StringValuesImpl.call(this, true, values);
|
|
1808
1830
|
}
|
|
1809
1831
|
protoOf(ParametersImpl).toString = function () {
|
|
1810
|
-
return 'Parameters ' +
|
|
1832
|
+
return 'Parameters ' + toString_0(this.entries_qbkxv4_k$());
|
|
1811
1833
|
};
|
|
1812
1834
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1813
1835
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1815,14 +1837,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1815
1837
|
decode = decode === VOID ? true : decode;
|
|
1816
1838
|
var tmp;
|
|
1817
1839
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1818
|
-
tmp =
|
|
1840
|
+
tmp = Companion_getInstance_6().Empty_1;
|
|
1819
1841
|
} else {
|
|
1820
1842
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1821
|
-
|
|
1843
|
+
Companion_getInstance_6();
|
|
1822
1844
|
// Inline function 'kotlin.apply' call
|
|
1823
1845
|
var this_0 = ParametersBuilder();
|
|
1824
1846
|
parse(this_0, query, startIndex, limit, decode);
|
|
1825
|
-
tmp = this_0.
|
|
1847
|
+
tmp = this_0.build_1k0s4u_k$();
|
|
1826
1848
|
}
|
|
1827
1849
|
return tmp;
|
|
1828
1850
|
}
|
|
@@ -1863,7 +1885,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1863
1885
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1864
1886
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1865
1887
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1866
|
-
_this__u8e3s4.
|
|
1888
|
+
_this__u8e3s4.appendAll_ytnfgb_k$(name, emptyList());
|
|
1867
1889
|
}
|
|
1868
1890
|
return Unit_instance;
|
|
1869
1891
|
}
|
|
@@ -1874,7 +1896,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1874
1896
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1875
1897
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1876
1898
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1877
|
-
_this__u8e3s4.
|
|
1899
|
+
_this__u8e3s4.append_rhug0a_k$(name_0, value);
|
|
1878
1900
|
}
|
|
1879
1901
|
}
|
|
1880
1902
|
function trimStart(start, end, query) {
|
|
@@ -1894,200 +1916,203 @@ function trimEnd(start, end, text) {
|
|
|
1894
1916
|
function applyOrigin($this) {
|
|
1895
1917
|
var tmp;
|
|
1896
1918
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1897
|
-
var this_0 = $this.
|
|
1919
|
+
var this_0 = $this.host_1;
|
|
1898
1920
|
if (charSequenceLength(this_0) > 0) {
|
|
1899
1921
|
tmp = true;
|
|
1900
1922
|
} else {
|
|
1901
|
-
tmp = $this.
|
|
1923
|
+
tmp = $this.get_protocol_mv93kx_k$().name_1 === 'file';
|
|
1902
1924
|
}
|
|
1903
1925
|
if (tmp)
|
|
1904
1926
|
return Unit_instance;
|
|
1905
|
-
$this.
|
|
1906
|
-
if ($this.
|
|
1907
|
-
$this.
|
|
1908
|
-
if ($this.
|
|
1909
|
-
$this.
|
|
1927
|
+
$this.host_1 = Companion_getInstance_7().originUrl_1.host_1;
|
|
1928
|
+
if ($this.protocolOrNull_1 == null)
|
|
1929
|
+
$this.protocolOrNull_1 = Companion_getInstance_7().originUrl_1.protocolOrNull_1;
|
|
1930
|
+
if ($this.port_1 === 0) {
|
|
1931
|
+
$this.set_port_gcpocq_k$(Companion_getInstance_7().originUrl_1.specifiedPort_1);
|
|
1910
1932
|
}
|
|
1911
1933
|
}
|
|
1912
|
-
function
|
|
1913
|
-
|
|
1914
|
-
this.
|
|
1915
|
-
this.
|
|
1934
|
+
function Companion_7() {
|
|
1935
|
+
Companion_instance_7 = this;
|
|
1936
|
+
this.originUrl_1 = Url(get_origin(this));
|
|
1937
|
+
this.INITIAL_CAPACITY_1 = 256;
|
|
1916
1938
|
}
|
|
1917
|
-
var
|
|
1918
|
-
function
|
|
1919
|
-
if (
|
|
1920
|
-
new
|
|
1921
|
-
return
|
|
1939
|
+
var Companion_instance_7;
|
|
1940
|
+
function Companion_getInstance_7() {
|
|
1941
|
+
if (Companion_instance_7 == null)
|
|
1942
|
+
new Companion_7();
|
|
1943
|
+
return Companion_instance_7;
|
|
1922
1944
|
}
|
|
1923
1945
|
function URLBuilder(protocol, host, port, user, password, pathSegments, parameters, fragment, trailingQuery) {
|
|
1924
|
-
|
|
1946
|
+
Companion_getInstance_7();
|
|
1925
1947
|
protocol = protocol === VOID ? null : protocol;
|
|
1926
1948
|
host = host === VOID ? '' : host;
|
|
1927
1949
|
port = port === VOID ? 0 : port;
|
|
1928
1950
|
user = user === VOID ? null : user;
|
|
1929
1951
|
password = password === VOID ? null : password;
|
|
1930
1952
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1931
|
-
parameters = parameters === VOID ?
|
|
1953
|
+
parameters = parameters === VOID ? Companion_getInstance_6().Empty_1 : parameters;
|
|
1932
1954
|
fragment = fragment === VOID ? '' : fragment;
|
|
1933
1955
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1934
|
-
this.
|
|
1935
|
-
this.
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1956
|
+
this.host_1 = host;
|
|
1957
|
+
this.trailingQuery_1 = trailingQuery;
|
|
1958
|
+
this.port_1 = port;
|
|
1959
|
+
this.protocolOrNull_1 = protocol;
|
|
1938
1960
|
var tmp = this;
|
|
1939
|
-
tmp.
|
|
1961
|
+
tmp.encodedUser_1 = user == null ? null : encodeURLParameter(user);
|
|
1940
1962
|
var tmp_0 = this;
|
|
1941
|
-
tmp_0.
|
|
1942
|
-
this.
|
|
1963
|
+
tmp_0.encodedPassword_1 = password == null ? null : encodeURLParameter(password);
|
|
1964
|
+
this.encodedFragment_1 = encodeURLQueryComponent(fragment);
|
|
1943
1965
|
var tmp_1 = this;
|
|
1944
1966
|
// Inline function 'kotlin.collections.map' call
|
|
1945
1967
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1946
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(pathSegments, 10));
|
|
1947
|
-
var _iterator__ex2g4s = pathSegments.
|
|
1948
|
-
while (_iterator__ex2g4s.
|
|
1949
|
-
var item = _iterator__ex2g4s.
|
|
1968
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(pathSegments, 10));
|
|
1969
|
+
var _iterator__ex2g4s = pathSegments.iterator_jk1svi_k$();
|
|
1970
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1971
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
1950
1972
|
var tmp$ret$2 = encodeURLPathPart(item);
|
|
1951
|
-
destination.
|
|
1973
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
1952
1974
|
}
|
|
1953
|
-
tmp_1.
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1975
|
+
tmp_1.encodedPathSegments_1 = destination;
|
|
1976
|
+
this.encodedParameters_1 = encodeParameters(parameters);
|
|
1977
|
+
this.parameters_1 = new UrlDecodedParametersBuilder(this.encodedParameters_1);
|
|
1956
1978
|
}
|
|
1957
|
-
protoOf(URLBuilder).
|
|
1979
|
+
protoOf(URLBuilder).set_port_gcpocq_k$ = function (value) {
|
|
1958
1980
|
// Inline function 'kotlin.require' call
|
|
1959
1981
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1960
1982
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1961
|
-
throw IllegalArgumentException_init_$Create$(
|
|
1983
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1962
1984
|
}
|
|
1963
|
-
this.
|
|
1985
|
+
this.port_1 = value;
|
|
1964
1986
|
};
|
|
1965
|
-
protoOf(URLBuilder).
|
|
1966
|
-
this.
|
|
1987
|
+
protoOf(URLBuilder).set_protocol_4rvp64_k$ = function (value) {
|
|
1988
|
+
this.protocolOrNull_1 = value;
|
|
1967
1989
|
};
|
|
1968
|
-
protoOf(URLBuilder).
|
|
1969
|
-
var tmp0_elvis_lhs = this.
|
|
1970
|
-
return tmp0_elvis_lhs == null ?
|
|
1990
|
+
protoOf(URLBuilder).get_protocol_mv93kx_k$ = function () {
|
|
1991
|
+
var tmp0_elvis_lhs = this.protocolOrNull_1;
|
|
1992
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_8().HTTP_1 : tmp0_elvis_lhs;
|
|
1971
1993
|
};
|
|
1972
|
-
protoOf(URLBuilder).
|
|
1994
|
+
protoOf(URLBuilder).set_user_5x9835_k$ = function (value) {
|
|
1973
1995
|
var tmp = this;
|
|
1974
|
-
tmp.
|
|
1996
|
+
tmp.encodedUser_1 = value == null ? null : encodeURLParameter(value);
|
|
1975
1997
|
};
|
|
1976
|
-
protoOf(URLBuilder).
|
|
1977
|
-
var tmp0_safe_receiver = this.
|
|
1998
|
+
protoOf(URLBuilder).get_user_wovspg_k$ = function () {
|
|
1999
|
+
var tmp0_safe_receiver = this.encodedUser_1;
|
|
1978
2000
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1979
2001
|
};
|
|
1980
|
-
protoOf(URLBuilder).
|
|
1981
|
-
var tmp0_safe_receiver = this.
|
|
2002
|
+
protoOf(URLBuilder).get_password_bodifw_k$ = function () {
|
|
2003
|
+
var tmp0_safe_receiver = this.encodedPassword_1;
|
|
1982
2004
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1983
2005
|
};
|
|
1984
|
-
protoOf(URLBuilder).
|
|
1985
|
-
return decodeURLQueryComponent(this.
|
|
2006
|
+
protoOf(URLBuilder).get_fragment_bxnb4p_k$ = function () {
|
|
2007
|
+
return decodeURLQueryComponent(this.encodedFragment_1);
|
|
1986
2008
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
2009
|
+
protoOf(URLBuilder).get_pathSegments_2e2s6m_k$ = function () {
|
|
1988
2010
|
// Inline function 'kotlin.collections.map' call
|
|
1989
|
-
var this_0 = this.
|
|
2011
|
+
var this_0 = this.encodedPathSegments_1;
|
|
1990
2012
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1991
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1992
|
-
var _iterator__ex2g4s = this_0.
|
|
1993
|
-
while (_iterator__ex2g4s.
|
|
1994
|
-
var item = _iterator__ex2g4s.
|
|
2013
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2014
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
2015
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2016
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
1995
2017
|
var tmp$ret$2 = decodeURLPart(item);
|
|
1996
|
-
destination.
|
|
2018
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
1997
2019
|
}
|
|
1998
2020
|
return destination;
|
|
1999
2021
|
};
|
|
2000
|
-
protoOf(URLBuilder).
|
|
2001
|
-
this.
|
|
2002
|
-
this.
|
|
2022
|
+
protoOf(URLBuilder).set_encodedParameters_t3ck1r_k$ = function (value) {
|
|
2023
|
+
this.encodedParameters_1 = value;
|
|
2024
|
+
this.parameters_1 = new UrlDecodedParametersBuilder(value);
|
|
2003
2025
|
};
|
|
2004
|
-
protoOf(URLBuilder).
|
|
2026
|
+
protoOf(URLBuilder).buildString_xr87oh_k$ = function () {
|
|
2005
2027
|
applyOrigin(this);
|
|
2006
|
-
return appendTo(this, StringBuilder_init_$Create$
|
|
2028
|
+
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
2007
2029
|
};
|
|
2008
2030
|
protoOf(URLBuilder).toString = function () {
|
|
2009
|
-
return appendTo(this, StringBuilder_init_$Create$
|
|
2031
|
+
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
2010
2032
|
};
|
|
2011
|
-
protoOf(URLBuilder).
|
|
2033
|
+
protoOf(URLBuilder).build_1k0s4u_k$ = function () {
|
|
2012
2034
|
applyOrigin(this);
|
|
2013
|
-
return new Url_0(this.
|
|
2035
|
+
return new Url_0(this.protocolOrNull_1, this.host_1, this.port_1, this.get_pathSegments_2e2s6m_k$(), this.parameters_1.build_1k0s4u_k$(), this.get_fragment_bxnb4p_k$(), this.get_user_wovspg_k$(), this.get_password_bodifw_k$(), this.trailingQuery_1, this.buildString_xr87oh_k$());
|
|
2014
2036
|
};
|
|
2015
2037
|
function get_authority(_this__u8e3s4) {
|
|
2016
2038
|
// Inline function 'kotlin.text.buildString' call
|
|
2017
2039
|
// Inline function 'kotlin.apply' call
|
|
2018
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2019
|
-
this_0.
|
|
2020
|
-
this_0.
|
|
2021
|
-
if (!(_this__u8e3s4.
|
|
2022
|
-
this_0.
|
|
2023
|
-
this_0.
|
|
2040
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2041
|
+
this_0.append_22ad7x_k$(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2042
|
+
this_0.append_22ad7x_k$(_this__u8e3s4.host_1);
|
|
2043
|
+
if (!(_this__u8e3s4.port_1 === 0) && !(_this__u8e3s4.port_1 === _this__u8e3s4.get_protocol_mv93kx_k$().defaultPort_1)) {
|
|
2044
|
+
this_0.append_22ad7x_k$(':');
|
|
2045
|
+
this_0.append_22ad7x_k$(_this__u8e3s4.port_1.toString());
|
|
2024
2046
|
}
|
|
2025
2047
|
return this_0.toString();
|
|
2026
2048
|
}
|
|
2027
2049
|
function appendTo(_this__u8e3s4, out) {
|
|
2028
|
-
out.
|
|
2029
|
-
switch (_this__u8e3s4.
|
|
2050
|
+
out.append_jgojdo_k$(_this__u8e3s4.get_protocol_mv93kx_k$().name_1);
|
|
2051
|
+
switch (_this__u8e3s4.get_protocol_mv93kx_k$().name_1) {
|
|
2030
2052
|
case 'file':
|
|
2031
|
-
appendFile(out, _this__u8e3s4.
|
|
2032
|
-
|
|
2053
|
+
appendFile(out, _this__u8e3s4.host_1, get_encodedPath(_this__u8e3s4));
|
|
2054
|
+
appendUrlFullPath(out, '', _this__u8e3s4.encodedParameters_1, _this__u8e3s4.trailingQuery_1);
|
|
2055
|
+
break;
|
|
2033
2056
|
case 'mailto':
|
|
2034
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2057
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.host_1);
|
|
2035
2058
|
return out;
|
|
2036
2059
|
case 'about':
|
|
2037
|
-
appendPayload(out, _this__u8e3s4.
|
|
2060
|
+
appendPayload(out, _this__u8e3s4.host_1);
|
|
2038
2061
|
return out;
|
|
2039
2062
|
case 'tel':
|
|
2040
|
-
appendPayload(out, _this__u8e3s4.
|
|
2063
|
+
appendPayload(out, _this__u8e3s4.host_1);
|
|
2041
2064
|
return out;
|
|
2042
2065
|
case 'data':
|
|
2043
|
-
appendPayload(out, _this__u8e3s4.
|
|
2066
|
+
appendPayload(out, _this__u8e3s4.host_1);
|
|
2044
2067
|
return out;
|
|
2068
|
+
default:
|
|
2069
|
+
out.append_jgojdo_k$('://');
|
|
2070
|
+
out.append_jgojdo_k$(get_authority(_this__u8e3s4));
|
|
2071
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.encodedParameters_1, _this__u8e3s4.trailingQuery_1);
|
|
2072
|
+
break;
|
|
2045
2073
|
}
|
|
2046
|
-
out.f1('://');
|
|
2047
|
-
out.f1(get_authority(_this__u8e3s4));
|
|
2048
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.x2u_1, _this__u8e3s4.q2u_1);
|
|
2049
2074
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2050
|
-
var this_0 = _this__u8e3s4.
|
|
2075
|
+
var this_0 = _this__u8e3s4.encodedFragment_1;
|
|
2051
2076
|
if (charSequenceLength(this_0) > 0) {
|
|
2052
|
-
out.
|
|
2053
|
-
out.
|
|
2077
|
+
out.append_58al37_k$(_Char___init__impl__6a9atx(35));
|
|
2078
|
+
out.append_jgojdo_k$(_this__u8e3s4.encodedFragment_1);
|
|
2054
2079
|
}
|
|
2055
2080
|
return out;
|
|
2056
2081
|
}
|
|
2057
2082
|
function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
2058
2083
|
// Inline function 'kotlin.text.buildString' call
|
|
2059
2084
|
// Inline function 'kotlin.apply' call
|
|
2060
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2061
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2085
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2086
|
+
appendUserAndPassword(this_0, _this__u8e3s4.encodedUser_1, _this__u8e3s4.encodedPassword_1);
|
|
2062
2087
|
return this_0.toString();
|
|
2063
2088
|
}
|
|
2064
2089
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
2065
|
-
_this__u8e3s4.
|
|
2066
|
-
_this__u8e3s4.
|
|
2090
|
+
_this__u8e3s4.append_jgojdo_k$('://');
|
|
2091
|
+
_this__u8e3s4.append_jgojdo_k$(host);
|
|
2067
2092
|
if (!startsWith_0(encodedPath, _Char___init__impl__6a9atx(47))) {
|
|
2068
|
-
_this__u8e3s4.
|
|
2093
|
+
_this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(47));
|
|
2069
2094
|
}
|
|
2070
|
-
_this__u8e3s4.
|
|
2095
|
+
_this__u8e3s4.append_jgojdo_k$(encodedPath);
|
|
2071
2096
|
}
|
|
2072
2097
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2073
|
-
_this__u8e3s4.
|
|
2098
|
+
_this__u8e3s4.encodedPathSegments_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2074
2099
|
}
|
|
2075
2100
|
function get_encodedPath(_this__u8e3s4) {
|
|
2076
|
-
return joinPath(_this__u8e3s4.
|
|
2101
|
+
return joinPath(_this__u8e3s4.encodedPathSegments_1);
|
|
2077
2102
|
}
|
|
2078
2103
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2079
|
-
_this__u8e3s4.
|
|
2080
|
-
_this__u8e3s4.
|
|
2081
|
-
_this__u8e3s4.
|
|
2104
|
+
_this__u8e3s4.append_jgojdo_k$(':');
|
|
2105
|
+
_this__u8e3s4.append_jgojdo_k$(encodedUser);
|
|
2106
|
+
_this__u8e3s4.append_jgojdo_k$(host);
|
|
2082
2107
|
}
|
|
2083
2108
|
function appendPayload(_this__u8e3s4, host) {
|
|
2084
|
-
_this__u8e3s4.
|
|
2085
|
-
_this__u8e3s4.
|
|
2109
|
+
_this__u8e3s4.append_jgojdo_k$(':');
|
|
2110
|
+
_this__u8e3s4.append_jgojdo_k$(host);
|
|
2086
2111
|
}
|
|
2087
2112
|
function joinPath(_this__u8e3s4) {
|
|
2088
|
-
if (_this__u8e3s4.
|
|
2113
|
+
if (_this__u8e3s4.isEmpty_y1axqb_k$())
|
|
2089
2114
|
return '';
|
|
2090
|
-
if (_this__u8e3s4.
|
|
2115
|
+
if (_this__u8e3s4.get_size_woubt6_k$() === 1) {
|
|
2091
2116
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2092
2117
|
var this_0 = first_0(_this__u8e3s4);
|
|
2093
2118
|
if (charSequenceLength(this_0) === 0)
|
|
@@ -2161,47 +2186,47 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2161
2186
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2162
2187
|
if (schemeLength > 0) {
|
|
2163
2188
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2164
|
-
_this__u8e3s4.
|
|
2189
|
+
_this__u8e3s4.set_protocol_4rvp64_k$(Companion_getInstance_8().createOrDefault_lkipzc_k$(scheme));
|
|
2165
2190
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2166
2191
|
}
|
|
2167
|
-
if (_this__u8e3s4.
|
|
2168
|
-
_this__u8e3s4.
|
|
2192
|
+
if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'data') {
|
|
2193
|
+
_this__u8e3s4.host_1 = substring(urlString, startIndex, endIndex);
|
|
2169
2194
|
return _this__u8e3s4;
|
|
2170
2195
|
}
|
|
2171
2196
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2172
2197
|
startIndex = startIndex + slashCount | 0;
|
|
2173
|
-
if (_this__u8e3s4.
|
|
2198
|
+
if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'file') {
|
|
2174
2199
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2175
2200
|
return _this__u8e3s4;
|
|
2176
2201
|
}
|
|
2177
|
-
if (_this__u8e3s4.
|
|
2202
|
+
if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'mailto') {
|
|
2178
2203
|
// Inline function 'kotlin.require' call
|
|
2179
2204
|
// Inline function 'kotlin.require' call
|
|
2180
2205
|
if (!(slashCount === 0)) {
|
|
2181
2206
|
var message = 'Failed requirement.';
|
|
2182
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2207
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2183
2208
|
}
|
|
2184
2209
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2185
2210
|
return _this__u8e3s4;
|
|
2186
2211
|
}
|
|
2187
|
-
if (_this__u8e3s4.
|
|
2212
|
+
if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'about') {
|
|
2188
2213
|
// Inline function 'kotlin.require' call
|
|
2189
2214
|
// Inline function 'kotlin.require' call
|
|
2190
2215
|
if (!(slashCount === 0)) {
|
|
2191
2216
|
var message_0 = 'Failed requirement.';
|
|
2192
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2217
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2193
2218
|
}
|
|
2194
|
-
_this__u8e3s4.
|
|
2219
|
+
_this__u8e3s4.host_1 = substring(urlString, startIndex, endIndex);
|
|
2195
2220
|
return _this__u8e3s4;
|
|
2196
2221
|
}
|
|
2197
|
-
if (_this__u8e3s4.
|
|
2222
|
+
if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'tel') {
|
|
2198
2223
|
// Inline function 'kotlin.require' call
|
|
2199
2224
|
// Inline function 'kotlin.require' call
|
|
2200
2225
|
if (!(slashCount === 0)) {
|
|
2201
2226
|
var message_1 = 'Failed requirement.';
|
|
2202
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2227
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
2203
2228
|
}
|
|
2204
|
-
_this__u8e3s4.
|
|
2229
|
+
_this__u8e3s4.host_1 = substring(urlString, startIndex, endIndex);
|
|
2205
2230
|
return _this__u8e3s4;
|
|
2206
2231
|
}
|
|
2207
2232
|
if (slashCount >= 2) {
|
|
@@ -2219,10 +2244,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2219
2244
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2220
2245
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2221
2246
|
if (!(passwordIndex === -1)) {
|
|
2222
|
-
_this__u8e3s4.
|
|
2223
|
-
_this__u8e3s4.
|
|
2247
|
+
_this__u8e3s4.encodedUser_1 = substring(urlString, startIndex, passwordIndex);
|
|
2248
|
+
_this__u8e3s4.encodedPassword_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2224
2249
|
} else {
|
|
2225
|
-
_this__u8e3s4.
|
|
2250
|
+
_this__u8e3s4.encodedUser_1 = substring(urlString, startIndex, delimiter);
|
|
2226
2251
|
}
|
|
2227
2252
|
startIndex = delimiter + 1 | 0;
|
|
2228
2253
|
} else {
|
|
@@ -2233,34 +2258,34 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2233
2258
|
}
|
|
2234
2259
|
}
|
|
2235
2260
|
if (startIndex >= endIndex) {
|
|
2236
|
-
_this__u8e3s4.
|
|
2261
|
+
_this__u8e3s4.encodedPathSegments_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2237
2262
|
return _this__u8e3s4;
|
|
2238
2263
|
}
|
|
2239
|
-
var tmp_0 = _this__u8e3s4;
|
|
2240
|
-
var tmp_1;
|
|
2241
|
-
if (slashCount === 0) {
|
|
2242
|
-
tmp_1 = dropLast(_this__u8e3s4.w2u_1, 1);
|
|
2243
|
-
} else {
|
|
2244
|
-
tmp_1 = emptyList();
|
|
2245
|
-
}
|
|
2246
|
-
tmp_0.w2u_1 = tmp_1;
|
|
2247
2264
|
// Inline function 'kotlin.takeIf' call
|
|
2248
2265
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2249
|
-
var
|
|
2250
|
-
if (this_1
|
|
2251
|
-
|
|
2266
|
+
var tmp_0;
|
|
2267
|
+
if (this_1 >= 0) {
|
|
2268
|
+
tmp_0 = this_1;
|
|
2252
2269
|
} else {
|
|
2253
|
-
|
|
2270
|
+
tmp_0 = null;
|
|
2254
2271
|
}
|
|
2255
|
-
var tmp1_elvis_lhs =
|
|
2272
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
2256
2273
|
var pathEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2257
2274
|
if (pathEnd > startIndex) {
|
|
2258
|
-
var
|
|
2275
|
+
var tmp_1 = _this__u8e3s4;
|
|
2276
|
+
var tmp_2;
|
|
2277
|
+
if (slashCount === 0) {
|
|
2278
|
+
tmp_2 = dropLast(_this__u8e3s4.encodedPathSegments_1, 1);
|
|
2279
|
+
} else {
|
|
2280
|
+
tmp_2 = emptyList();
|
|
2281
|
+
}
|
|
2282
|
+
tmp_1.encodedPathSegments_1 = tmp_2;
|
|
2283
|
+
var encodedPath = encodeURLPath(substring(urlString, startIndex, pathEnd), VOID, false);
|
|
2259
2284
|
var tmp_3;
|
|
2260
2285
|
var tmp_4;
|
|
2261
|
-
if (_this__u8e3s4.
|
|
2286
|
+
if (_this__u8e3s4.encodedPathSegments_1.get_size_woubt6_k$() === 1) {
|
|
2262
2287
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2263
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2288
|
+
var this_2 = first_0(_this__u8e3s4.encodedPathSegments_1);
|
|
2264
2289
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2265
2290
|
} else {
|
|
2266
2291
|
tmp_4 = false;
|
|
@@ -2268,13 +2293,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2268
2293
|
if (tmp_4) {
|
|
2269
2294
|
tmp_3 = emptyList();
|
|
2270
2295
|
} else {
|
|
2271
|
-
tmp_3 = _this__u8e3s4.
|
|
2296
|
+
tmp_3 = _this__u8e3s4.encodedPathSegments_1;
|
|
2272
2297
|
}
|
|
2273
2298
|
var basePath = tmp_3;
|
|
2274
|
-
var
|
|
2275
|
-
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(),
|
|
2276
|
-
_this__u8e3s4.
|
|
2299
|
+
var encodedChunks = encodedPath === '/' ? get_ROOT_PATH() : split(encodedPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2300
|
+
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), encodedChunks);
|
|
2301
|
+
_this__u8e3s4.encodedPathSegments_1 = plus_0(basePath, relativePath);
|
|
2277
2302
|
startIndex = pathEnd;
|
|
2303
|
+
} else if (slashCount === 0 && _this__u8e3s4.encodedPathSegments_1.isEmpty_y1axqb_k$() && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2304
|
+
_this__u8e3s4.encodedPathSegments_1 = get_ROOT_PATH();
|
|
2305
|
+
} else if (slashCount > 0) {
|
|
2306
|
+
_this__u8e3s4.encodedPathSegments_1 = emptyList();
|
|
2278
2307
|
}
|
|
2279
2308
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2280
2309
|
startIndex = parseQuery(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
@@ -2321,28 +2350,53 @@ function count(urlString, startIndex, endIndex, char) {
|
|
|
2321
2350
|
}
|
|
2322
2351
|
function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
2323
2352
|
_init_properties_URLParser_kt__sf11to();
|
|
2353
|
+
var tmp;
|
|
2324
2354
|
switch (slashCount) {
|
|
2325
2355
|
case 1:
|
|
2326
|
-
_this__u8e3s4.
|
|
2327
|
-
|
|
2356
|
+
_this__u8e3s4.host_1 = '';
|
|
2357
|
+
tmp = startIndex;
|
|
2328
2358
|
break;
|
|
2329
2359
|
case 2:
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2360
|
+
// Inline function 'kotlin.takeIf' call
|
|
2361
|
+
|
|
2362
|
+
var this_0 = indexOfAny(urlString, toCharArray('/?#'), startIndex);
|
|
2363
|
+
var tmp_0;
|
|
2364
|
+
if (startIndex <= this_0 ? this_0 < endIndex : false) {
|
|
2365
|
+
tmp_0 = this_0;
|
|
2366
|
+
} else {
|
|
2367
|
+
tmp_0 = null;
|
|
2334
2368
|
}
|
|
2335
2369
|
|
|
2336
|
-
|
|
2337
|
-
|
|
2370
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
2371
|
+
var hostEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2372
|
+
_this__u8e3s4.host_1 = substring(urlString, startIndex, hostEnd);
|
|
2373
|
+
tmp = hostEnd;
|
|
2338
2374
|
break;
|
|
2339
2375
|
case 3:
|
|
2340
|
-
_this__u8e3s4.
|
|
2341
|
-
|
|
2376
|
+
_this__u8e3s4.host_1 = '';
|
|
2377
|
+
tmp = startIndex;
|
|
2342
2378
|
break;
|
|
2343
2379
|
default:
|
|
2344
2380
|
throw IllegalArgumentException_init_$Create$('Invalid file url: ' + urlString);
|
|
2345
2381
|
}
|
|
2382
|
+
var pathStart = tmp;
|
|
2383
|
+
// Inline function 'kotlin.takeIf' call
|
|
2384
|
+
var this_1 = indexOfAny(urlString, toCharArray('?#'), pathStart);
|
|
2385
|
+
var tmp_1;
|
|
2386
|
+
if (this_1 >= 0) {
|
|
2387
|
+
tmp_1 = this_1;
|
|
2388
|
+
} else {
|
|
2389
|
+
tmp_1 = null;
|
|
2390
|
+
}
|
|
2391
|
+
var tmp2_elvis_lhs = tmp_1;
|
|
2392
|
+
var pathEnd = tmp2_elvis_lhs == null ? endIndex : tmp2_elvis_lhs;
|
|
2393
|
+
var path = encodeURLPath(substring(urlString, pathStart, pathEnd), VOID, false);
|
|
2394
|
+
set_encodedPath(_this__u8e3s4, slashCount === 3 ? '/' + path : path);
|
|
2395
|
+
var nextPartStart = pathEnd;
|
|
2396
|
+
if (nextPartStart < endIndex && charCodeAt(urlString, nextPartStart) === _Char___init__impl__6a9atx(63)) {
|
|
2397
|
+
nextPartStart = parseQuery(_this__u8e3s4, urlString, nextPartStart, endIndex);
|
|
2398
|
+
}
|
|
2399
|
+
parseFragment(_this__u8e3s4, urlString, nextPartStart, endIndex);
|
|
2346
2400
|
}
|
|
2347
2401
|
function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2348
2402
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2350,8 +2404,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2350
2404
|
if (delimiter === -1) {
|
|
2351
2405
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2352
2406
|
}
|
|
2353
|
-
_this__u8e3s4.
|
|
2354
|
-
_this__u8e3s4.
|
|
2407
|
+
_this__u8e3s4.set_user_5x9835_k$(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2408
|
+
_this__u8e3s4.host_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2355
2409
|
}
|
|
2356
2410
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2357
2411
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2403,21 +2457,21 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2403
2457
|
// Inline function 'kotlin.require' call
|
|
2404
2458
|
if (!tmp$ret$2) {
|
|
2405
2459
|
var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
|
|
2406
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2460
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2407
2461
|
}
|
|
2408
|
-
_this__u8e3s4.
|
|
2462
|
+
_this__u8e3s4.host_1 = hostValue;
|
|
2409
2463
|
var tmp_0;
|
|
2410
2464
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2411
2465
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2412
2466
|
} else {
|
|
2413
2467
|
tmp_0 = 0;
|
|
2414
2468
|
}
|
|
2415
|
-
_this__u8e3s4.
|
|
2469
|
+
_this__u8e3s4.set_port_gcpocq_k$(tmp_0);
|
|
2416
2470
|
}
|
|
2417
2471
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2418
2472
|
_init_properties_URLParser_kt__sf11to();
|
|
2419
2473
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2420
|
-
_this__u8e3s4.
|
|
2474
|
+
_this__u8e3s4.trailingQuery_1 = true;
|
|
2421
2475
|
return endIndex;
|
|
2422
2476
|
}
|
|
2423
2477
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2431,18 +2485,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2431
2485
|
var tmp0_elvis_lhs = tmp;
|
|
2432
2486
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2433
2487
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2434
|
-
rawParameters.
|
|
2488
|
+
rawParameters.forEach_jocloe_k$(parseQuery$lambda(_this__u8e3s4));
|
|
2435
2489
|
return fragmentStart;
|
|
2436
2490
|
}
|
|
2437
2491
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2438
2492
|
_init_properties_URLParser_kt__sf11to();
|
|
2439
2493
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2440
|
-
_this__u8e3s4.
|
|
2494
|
+
_this__u8e3s4.encodedFragment_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2441
2495
|
}
|
|
2442
2496
|
}
|
|
2443
2497
|
function parseQuery$lambda($this_parseQuery) {
|
|
2444
2498
|
return function (key, values) {
|
|
2445
|
-
$this_parseQuery.
|
|
2499
|
+
$this_parseQuery.encodedParameters_1.appendAll_ytnfgb_k$(key, values);
|
|
2446
2500
|
return Unit_instance;
|
|
2447
2501
|
};
|
|
2448
2502
|
}
|
|
@@ -2450,47 +2504,47 @@ var properties_initialized_URLParser_kt_hd1g6a;
|
|
|
2450
2504
|
function _init_properties_URLParser_kt__sf11to() {
|
|
2451
2505
|
if (!properties_initialized_URLParser_kt_hd1g6a) {
|
|
2452
2506
|
properties_initialized_URLParser_kt_hd1g6a = true;
|
|
2453
|
-
ROOT_PATH =
|
|
2507
|
+
ROOT_PATH = listOf('');
|
|
2454
2508
|
}
|
|
2455
2509
|
}
|
|
2456
|
-
function
|
|
2457
|
-
|
|
2458
|
-
this.
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2510
|
+
function Companion_8() {
|
|
2511
|
+
Companion_instance_8 = this;
|
|
2512
|
+
this.HTTP_1 = new URLProtocol('http', 80);
|
|
2513
|
+
this.HTTPS_1 = new URLProtocol('https', 443);
|
|
2514
|
+
this.WS_1 = new URLProtocol('ws', 80);
|
|
2515
|
+
this.WSS_1 = new URLProtocol('wss', 443);
|
|
2516
|
+
this.SOCKS_1 = new URLProtocol('socks', 1080);
|
|
2463
2517
|
var tmp = this;
|
|
2464
2518
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2465
|
-
var this_0 =
|
|
2519
|
+
var this_0 = listOf_0([this.HTTP_1, this.HTTPS_1, this.WS_1, this.WSS_1, this.SOCKS_1]);
|
|
2466
2520
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2467
2521
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2468
2522
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2469
|
-
var _iterator__ex2g4s = this_0.
|
|
2470
|
-
while (_iterator__ex2g4s.
|
|
2471
|
-
var element = _iterator__ex2g4s.
|
|
2472
|
-
var tmp$ret$2 = element.
|
|
2473
|
-
destination.
|
|
2523
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
2524
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2525
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
2526
|
+
var tmp$ret$2 = element.name_1;
|
|
2527
|
+
destination.put_4fpzoq_k$(tmp$ret$2, element);
|
|
2474
2528
|
}
|
|
2475
|
-
tmp.
|
|
2529
|
+
tmp.byName_1 = destination;
|
|
2476
2530
|
}
|
|
2477
|
-
protoOf(
|
|
2531
|
+
protoOf(Companion_8).createOrDefault_lkipzc_k$ = function (name) {
|
|
2478
2532
|
// Inline function 'kotlin.let' call
|
|
2479
2533
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2480
|
-
var tmp0_elvis_lhs =
|
|
2534
|
+
var tmp0_elvis_lhs = Companion_getInstance_8().byName_1.get_wei43m_k$(it);
|
|
2481
2535
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2482
2536
|
};
|
|
2483
|
-
var
|
|
2484
|
-
function
|
|
2485
|
-
if (
|
|
2486
|
-
new
|
|
2487
|
-
return
|
|
2537
|
+
var Companion_instance_8;
|
|
2538
|
+
function Companion_getInstance_8() {
|
|
2539
|
+
if (Companion_instance_8 == null)
|
|
2540
|
+
new Companion_8();
|
|
2541
|
+
return Companion_instance_8;
|
|
2488
2542
|
}
|
|
2489
2543
|
function URLProtocol(name, defaultPort) {
|
|
2490
|
-
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2493
|
-
var tmp0 = this.
|
|
2544
|
+
Companion_getInstance_8();
|
|
2545
|
+
this.name_1 = name;
|
|
2546
|
+
this.defaultPort_1 = defaultPort;
|
|
2547
|
+
var tmp0 = this.name_1;
|
|
2494
2548
|
var tmp$ret$0;
|
|
2495
2549
|
$l$block: {
|
|
2496
2550
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2508,15 +2562,15 @@ function URLProtocol(name, defaultPort) {
|
|
|
2508
2562
|
// Inline function 'kotlin.require' call
|
|
2509
2563
|
if (!tmp$ret$0) {
|
|
2510
2564
|
var message = 'All characters should be lower case';
|
|
2511
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2565
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2512
2566
|
}
|
|
2513
2567
|
}
|
|
2514
2568
|
protoOf(URLProtocol).toString = function () {
|
|
2515
|
-
return 'URLProtocol(name=' + this.
|
|
2569
|
+
return 'URLProtocol(name=' + this.name_1 + ', defaultPort=' + this.defaultPort_1 + ')';
|
|
2516
2570
|
};
|
|
2517
2571
|
protoOf(URLProtocol).hashCode = function () {
|
|
2518
|
-
var result = getStringHashCode(this.
|
|
2519
|
-
result = imul(result, 31) + this.
|
|
2572
|
+
var result = getStringHashCode(this.name_1);
|
|
2573
|
+
result = imul(result, 31) + this.defaultPort_1 | 0;
|
|
2520
2574
|
return result;
|
|
2521
2575
|
};
|
|
2522
2576
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2524,35 +2578,38 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2524
2578
|
return true;
|
|
2525
2579
|
if (!(other instanceof URLProtocol))
|
|
2526
2580
|
return false;
|
|
2527
|
-
if (!(this.
|
|
2581
|
+
if (!(this.name_1 === other.name_1))
|
|
2528
2582
|
return false;
|
|
2529
|
-
if (!(this.
|
|
2583
|
+
if (!(this.defaultPort_1 === other.defaultPort_1))
|
|
2530
2584
|
return false;
|
|
2531
2585
|
return true;
|
|
2532
2586
|
};
|
|
2533
2587
|
function isSecure(_this__u8e3s4) {
|
|
2534
|
-
return _this__u8e3s4.
|
|
2588
|
+
return _this__u8e3s4.name_1 === 'https' || _this__u8e3s4.name_1 === 'wss';
|
|
2535
2589
|
}
|
|
2536
2590
|
function isWebsocket(_this__u8e3s4) {
|
|
2537
|
-
return _this__u8e3s4.
|
|
2591
|
+
return _this__u8e3s4.name_1 === 'ws' || _this__u8e3s4.name_1 === 'wss';
|
|
2538
2592
|
}
|
|
2539
2593
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2540
|
-
_this__u8e3s4.
|
|
2541
|
-
_this__u8e3s4.
|
|
2542
|
-
_this__u8e3s4.
|
|
2543
|
-
_this__u8e3s4.
|
|
2544
|
-
_this__u8e3s4.
|
|
2545
|
-
_this__u8e3s4.
|
|
2594
|
+
_this__u8e3s4.protocolOrNull_1 = url.protocolOrNull_1;
|
|
2595
|
+
_this__u8e3s4.host_1 = url.host_1;
|
|
2596
|
+
_this__u8e3s4.set_port_gcpocq_k$(url.port_1);
|
|
2597
|
+
_this__u8e3s4.encodedPathSegments_1 = url.encodedPathSegments_1;
|
|
2598
|
+
_this__u8e3s4.encodedUser_1 = url.encodedUser_1;
|
|
2599
|
+
_this__u8e3s4.encodedPassword_1 = url.encodedPassword_1;
|
|
2546
2600
|
// Inline function 'kotlin.apply' call
|
|
2547
2601
|
var this_0 = ParametersBuilder();
|
|
2548
|
-
appendAll(this_0, url.
|
|
2549
|
-
_this__u8e3s4.
|
|
2550
|
-
_this__u8e3s4.
|
|
2551
|
-
_this__u8e3s4.
|
|
2602
|
+
appendAll(this_0, url.encodedParameters_1);
|
|
2603
|
+
_this__u8e3s4.set_encodedParameters_t3ck1r_k$(this_0);
|
|
2604
|
+
_this__u8e3s4.encodedFragment_1 = url.encodedFragment_1;
|
|
2605
|
+
_this__u8e3s4.trailingQuery_1 = url.trailingQuery_1;
|
|
2552
2606
|
return _this__u8e3s4;
|
|
2553
2607
|
}
|
|
2608
|
+
function get_hostWithPort(_this__u8e3s4) {
|
|
2609
|
+
return _this__u8e3s4.host_1 + ':' + _this__u8e3s4.get_port_wosj4a_k$();
|
|
2610
|
+
}
|
|
2554
2611
|
function Url(urlString) {
|
|
2555
|
-
return URLBuilder_0(urlString).
|
|
2612
|
+
return URLBuilder_0(urlString).build_1k0s4u_k$();
|
|
2556
2613
|
}
|
|
2557
2614
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2558
2615
|
var tmp;
|
|
@@ -2563,35 +2620,35 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2563
2620
|
tmp = false;
|
|
2564
2621
|
}
|
|
2565
2622
|
if (tmp) {
|
|
2566
|
-
_this__u8e3s4.
|
|
2623
|
+
_this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(47));
|
|
2567
2624
|
}
|
|
2568
|
-
_this__u8e3s4.
|
|
2569
|
-
if (!encodedQueryParameters.
|
|
2570
|
-
_this__u8e3s4.
|
|
2625
|
+
_this__u8e3s4.append_jgojdo_k$(encodedPath);
|
|
2626
|
+
if (!encodedQueryParameters.isEmpty_y1axqb_k$() || trailingQuery) {
|
|
2627
|
+
_this__u8e3s4.append_jgojdo_k$('?');
|
|
2571
2628
|
}
|
|
2572
2629
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2573
|
-
var tmp0 = encodedQueryParameters.
|
|
2630
|
+
var tmp0 = encodedQueryParameters.entries_qbkxv4_k$();
|
|
2574
2631
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2575
|
-
var destination = ArrayList_init_$Create$
|
|
2576
|
-
var _iterator__ex2g4s = tmp0.
|
|
2577
|
-
while (_iterator__ex2g4s.
|
|
2578
|
-
var element = _iterator__ex2g4s.
|
|
2632
|
+
var destination = ArrayList_init_$Create$();
|
|
2633
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
2634
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2635
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
2579
2636
|
// Inline function 'kotlin.collections.component1' call
|
|
2580
|
-
var key = element.
|
|
2637
|
+
var key = element.get_key_18j28a_k$();
|
|
2581
2638
|
// Inline function 'kotlin.collections.component2' call
|
|
2582
|
-
var value = element.
|
|
2639
|
+
var value = element.get_value_j01efc_k$();
|
|
2583
2640
|
var tmp_0;
|
|
2584
|
-
if (value.
|
|
2585
|
-
tmp_0 =
|
|
2641
|
+
if (value.isEmpty_y1axqb_k$()) {
|
|
2642
|
+
tmp_0 = listOf(to(key, null));
|
|
2586
2643
|
} else {
|
|
2587
2644
|
// Inline function 'kotlin.collections.map' call
|
|
2588
2645
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2589
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(value, 10));
|
|
2590
|
-
var _iterator__ex2g4s_0 = value.
|
|
2591
|
-
while (_iterator__ex2g4s_0.
|
|
2592
|
-
var item = _iterator__ex2g4s_0.
|
|
2646
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(value, 10));
|
|
2647
|
+
var _iterator__ex2g4s_0 = value.iterator_jk1svi_k$();
|
|
2648
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
2649
|
+
var item = _iterator__ex2g4s_0.next_20eer_k$();
|
|
2593
2650
|
var tmp$ret$8 = to(key, item);
|
|
2594
|
-
destination_0.
|
|
2651
|
+
destination_0.add_utx5q5_k$(tmp$ret$8);
|
|
2595
2652
|
}
|
|
2596
2653
|
tmp_0 = destination_0;
|
|
2597
2654
|
}
|
|
@@ -2605,44 +2662,41 @@ function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
|
2605
2662
|
if (encodedUser == null) {
|
|
2606
2663
|
return Unit_instance;
|
|
2607
2664
|
}
|
|
2608
|
-
_this__u8e3s4.
|
|
2665
|
+
_this__u8e3s4.append_22ad7x_k$(encodedUser);
|
|
2609
2666
|
if (!(encodedPassword == null)) {
|
|
2610
|
-
_this__u8e3s4.
|
|
2611
|
-
_this__u8e3s4.
|
|
2667
|
+
_this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(58));
|
|
2668
|
+
_this__u8e3s4.append_22ad7x_k$(encodedPassword);
|
|
2612
2669
|
}
|
|
2613
|
-
_this__u8e3s4.
|
|
2670
|
+
_this__u8e3s4.append_22ad7x_k$('@');
|
|
2614
2671
|
}
|
|
2615
2672
|
function URLBuilder_0(urlString) {
|
|
2616
2673
|
return takeFrom(new URLBuilder(), urlString);
|
|
2617
2674
|
}
|
|
2618
2675
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2619
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2620
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2621
|
-
}
|
|
2622
|
-
function get_hostWithPort(_this__u8e3s4) {
|
|
2623
|
-
return _this__u8e3s4.c2v_1 + ':' + _this__u8e3s4.n2w();
|
|
2676
|
+
var tmp0_subject = _this__u8e3s4.specifiedPort_1;
|
|
2677
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.protocol_1.defaultPort_1 ? _this__u8e3s4.host_1 : get_hostWithPort(_this__u8e3s4);
|
|
2624
2678
|
}
|
|
2625
2679
|
function appendUrlFullPath$lambda(it) {
|
|
2626
|
-
var key = it.
|
|
2680
|
+
var key = it.first_1;
|
|
2627
2681
|
var tmp;
|
|
2628
|
-
if (it.
|
|
2682
|
+
if (it.second_1 == null) {
|
|
2629
2683
|
tmp = key;
|
|
2630
2684
|
} else {
|
|
2631
|
-
var value = toString_1(it.
|
|
2685
|
+
var value = toString_1(it.second_1);
|
|
2632
2686
|
tmp = key + '=' + value;
|
|
2633
2687
|
}
|
|
2634
2688
|
return tmp;
|
|
2635
2689
|
}
|
|
2636
|
-
function
|
|
2690
|
+
function Companion_9() {
|
|
2637
2691
|
}
|
|
2638
|
-
var
|
|
2639
|
-
function
|
|
2640
|
-
return
|
|
2692
|
+
var Companion_instance_9;
|
|
2693
|
+
function Companion_getInstance_9() {
|
|
2694
|
+
return Companion_instance_9;
|
|
2641
2695
|
}
|
|
2642
2696
|
function Url$segments$delegate$lambda($pathSegments) {
|
|
2643
2697
|
return function () {
|
|
2644
2698
|
var tmp;
|
|
2645
|
-
if ($pathSegments.
|
|
2699
|
+
if ($pathSegments.isEmpty_y1axqb_k$()) {
|
|
2646
2700
|
return emptyList();
|
|
2647
2701
|
}
|
|
2648
2702
|
var tmp_0;
|
|
@@ -2650,7 +2704,7 @@ function Url$segments$delegate$lambda($pathSegments) {
|
|
|
2650
2704
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2651
2705
|
var this_0 = first_0($pathSegments);
|
|
2652
2706
|
if (charSequenceLength(this_0) === 0) {
|
|
2653
|
-
tmp_1 = $pathSegments.
|
|
2707
|
+
tmp_1 = $pathSegments.get_size_woubt6_k$() > 1;
|
|
2654
2708
|
} else {
|
|
2655
2709
|
tmp_1 = false;
|
|
2656
2710
|
}
|
|
@@ -2669,155 +2723,155 @@ function Url$segments$delegate$lambda($pathSegments) {
|
|
|
2669
2723
|
tmp_2 = get_lastIndex($pathSegments) + 1 | 0;
|
|
2670
2724
|
}
|
|
2671
2725
|
var end = tmp_2;
|
|
2672
|
-
return $pathSegments.
|
|
2726
|
+
return $pathSegments.subList_xle3r2_k$(start, end);
|
|
2673
2727
|
};
|
|
2674
2728
|
}
|
|
2675
2729
|
function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
2676
2730
|
return function () {
|
|
2677
2731
|
var tmp;
|
|
2678
|
-
if ($pathSegments.
|
|
2732
|
+
if ($pathSegments.isEmpty_y1axqb_k$()) {
|
|
2679
2733
|
return '';
|
|
2680
2734
|
}
|
|
2681
|
-
var pathStartIndex = indexOf(this$0.
|
|
2735
|
+
var pathStartIndex = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(47), this$0.protocol_1.name_1.length + 3 | 0);
|
|
2682
2736
|
var tmp_0;
|
|
2683
2737
|
if (pathStartIndex === -1) {
|
|
2684
2738
|
return '';
|
|
2685
2739
|
}
|
|
2686
2740
|
// Inline function 'kotlin.charArrayOf' call
|
|
2687
2741
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2688
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2742
|
+
var pathEndIndex = indexOfAny(this$0.urlString_1, tmp$ret$0, pathStartIndex);
|
|
2689
2743
|
var tmp_1;
|
|
2690
2744
|
if (pathEndIndex === -1) {
|
|
2691
|
-
return substring_0(this$0.
|
|
2745
|
+
return substring_0(this$0.urlString_1, pathStartIndex);
|
|
2692
2746
|
}
|
|
2693
|
-
return substring(this$0.
|
|
2747
|
+
return substring(this$0.urlString_1, pathStartIndex, pathEndIndex);
|
|
2694
2748
|
};
|
|
2695
2749
|
}
|
|
2696
2750
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2697
2751
|
return function () {
|
|
2698
|
-
var queryStart = indexOf(this$0.
|
|
2752
|
+
var queryStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2699
2753
|
var tmp;
|
|
2700
2754
|
if (queryStart === 0) {
|
|
2701
2755
|
return '';
|
|
2702
2756
|
}
|
|
2703
|
-
var queryEnd = indexOf(this$0.
|
|
2757
|
+
var queryEnd = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2704
2758
|
var tmp_0;
|
|
2705
2759
|
if (queryEnd === -1) {
|
|
2706
|
-
return substring_0(this$0.
|
|
2760
|
+
return substring_0(this$0.urlString_1, queryStart);
|
|
2707
2761
|
}
|
|
2708
|
-
return substring(this$0.
|
|
2762
|
+
return substring(this$0.urlString_1, queryStart, queryEnd);
|
|
2709
2763
|
};
|
|
2710
2764
|
}
|
|
2711
2765
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2712
2766
|
return function () {
|
|
2713
|
-
var pathStart = indexOf(this$0.
|
|
2767
|
+
var pathStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(47), this$0.protocol_1.name_1.length + 3 | 0);
|
|
2714
2768
|
var tmp;
|
|
2715
2769
|
if (pathStart === -1) {
|
|
2716
2770
|
return '';
|
|
2717
2771
|
}
|
|
2718
|
-
var queryEnd = indexOf(this$0.
|
|
2772
|
+
var queryEnd = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2719
2773
|
var tmp_0;
|
|
2720
2774
|
if (queryEnd === -1) {
|
|
2721
|
-
return substring_0(this$0.
|
|
2775
|
+
return substring_0(this$0.urlString_1, pathStart);
|
|
2722
2776
|
}
|
|
2723
|
-
return substring(this$0.
|
|
2777
|
+
return substring(this$0.urlString_1, pathStart, queryEnd);
|
|
2724
2778
|
};
|
|
2725
2779
|
}
|
|
2726
2780
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2727
2781
|
return function () {
|
|
2728
2782
|
var tmp;
|
|
2729
|
-
if (this$0.
|
|
2783
|
+
if (this$0.user_1 == null) {
|
|
2730
2784
|
return null;
|
|
2731
2785
|
}
|
|
2732
2786
|
var tmp_0;
|
|
2733
2787
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2734
|
-
var this_0 = this$0.
|
|
2788
|
+
var this_0 = this$0.user_1;
|
|
2735
2789
|
if (charSequenceLength(this_0) === 0) {
|
|
2736
2790
|
return '';
|
|
2737
2791
|
}
|
|
2738
|
-
var usernameStart = this$0.
|
|
2792
|
+
var usernameStart = this$0.protocol_1.name_1.length + 3 | 0;
|
|
2739
2793
|
// Inline function 'kotlin.charArrayOf' call
|
|
2740
2794
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2741
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2742
|
-
return substring(this$0.
|
|
2795
|
+
var usernameEnd = indexOfAny(this$0.urlString_1, tmp$ret$1, usernameStart);
|
|
2796
|
+
return substring(this$0.urlString_1, usernameStart, usernameEnd);
|
|
2743
2797
|
};
|
|
2744
2798
|
}
|
|
2745
2799
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2746
2800
|
return constructCallableReference(function (p0) {
|
|
2747
|
-
return p0.
|
|
2748
|
-
}, 1, 0,
|
|
2801
|
+
return p0.get_encodedUser_p9wcq8_k$();
|
|
2802
|
+
}, 1, 0, 20);
|
|
2749
2803
|
}
|
|
2750
2804
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2751
2805
|
return function () {
|
|
2752
2806
|
var tmp;
|
|
2753
|
-
if (this$0.
|
|
2807
|
+
if (this$0.password_1 == null) {
|
|
2754
2808
|
return null;
|
|
2755
2809
|
}
|
|
2756
2810
|
var tmp_0;
|
|
2757
2811
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2758
|
-
var this_0 = this$0.
|
|
2812
|
+
var this_0 = this$0.password_1;
|
|
2759
2813
|
if (charSequenceLength(this_0) === 0) {
|
|
2760
2814
|
return '';
|
|
2761
2815
|
}
|
|
2762
|
-
var passwordStart = indexOf(this$0.
|
|
2763
|
-
var passwordEnd = indexOf(this$0.
|
|
2764
|
-
return substring(this$0.
|
|
2816
|
+
var passwordStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(58), this$0.protocol_1.name_1.length + 3 | 0) + 1 | 0;
|
|
2817
|
+
var passwordEnd = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(64));
|
|
2818
|
+
return substring(this$0.urlString_1, passwordStart, passwordEnd);
|
|
2765
2819
|
};
|
|
2766
2820
|
}
|
|
2767
2821
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2768
2822
|
return constructCallableReference(function (p0) {
|
|
2769
|
-
return p0.
|
|
2770
|
-
}, 1, 0,
|
|
2823
|
+
return p0.get_encodedPassword_rswp28_k$();
|
|
2824
|
+
}, 1, 0, 21);
|
|
2771
2825
|
}
|
|
2772
2826
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2773
2827
|
return function () {
|
|
2774
|
-
var fragmentStart = indexOf(this$0.
|
|
2828
|
+
var fragmentStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2775
2829
|
var tmp;
|
|
2776
2830
|
if (fragmentStart === 0) {
|
|
2777
2831
|
return '';
|
|
2778
2832
|
}
|
|
2779
|
-
return substring_0(this$0.
|
|
2833
|
+
return substring_0(this$0.urlString_1, fragmentStart);
|
|
2780
2834
|
};
|
|
2781
2835
|
}
|
|
2782
2836
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2783
|
-
this.
|
|
2784
|
-
this.
|
|
2785
|
-
this.
|
|
2786
|
-
this.
|
|
2787
|
-
this.
|
|
2788
|
-
this.
|
|
2789
|
-
this.
|
|
2790
|
-
this.
|
|
2791
|
-
var containsArg = this.
|
|
2837
|
+
this.host_1 = host;
|
|
2838
|
+
this.specifiedPort_1 = specifiedPort;
|
|
2839
|
+
this.parameters_1 = parameters;
|
|
2840
|
+
this.fragment_1 = fragment;
|
|
2841
|
+
this.user_1 = user;
|
|
2842
|
+
this.password_1 = password;
|
|
2843
|
+
this.trailingQuery_1 = trailingQuery;
|
|
2844
|
+
this.urlString_1 = urlString;
|
|
2845
|
+
var containsArg = this.specifiedPort_1;
|
|
2792
2846
|
// Inline function 'kotlin.require' call
|
|
2793
2847
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2794
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2795
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2848
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.specifiedPort_1;
|
|
2849
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2796
2850
|
}
|
|
2797
|
-
this.
|
|
2798
|
-
this.
|
|
2851
|
+
this.pathSegments_1 = pathSegments;
|
|
2852
|
+
this.rawSegments_1 = pathSegments;
|
|
2799
2853
|
var tmp = this;
|
|
2800
|
-
tmp.
|
|
2801
|
-
this.
|
|
2854
|
+
tmp.segments$delegate_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2855
|
+
this.protocolOrNull_1 = protocol;
|
|
2802
2856
|
var tmp_0 = this;
|
|
2803
|
-
var tmp0_elvis_lhs = this.
|
|
2804
|
-
tmp_0.
|
|
2857
|
+
var tmp0_elvis_lhs = this.protocolOrNull_1;
|
|
2858
|
+
tmp_0.protocol_1 = tmp0_elvis_lhs == null ? Companion_getInstance_8().HTTP_1 : tmp0_elvis_lhs;
|
|
2805
2859
|
var tmp_1 = this;
|
|
2806
|
-
tmp_1.
|
|
2860
|
+
tmp_1.encodedPath$delegate_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2807
2861
|
var tmp_2 = this;
|
|
2808
|
-
tmp_2.
|
|
2862
|
+
tmp_2.encodedQuery$delegate_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2809
2863
|
var tmp_3 = this;
|
|
2810
|
-
tmp_3.
|
|
2864
|
+
tmp_3.encodedPathAndQuery$delegate_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2811
2865
|
var tmp_4 = this;
|
|
2812
|
-
tmp_4.
|
|
2866
|
+
tmp_4.encodedUser$delegate_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2813
2867
|
var tmp_5 = this;
|
|
2814
|
-
tmp_5.
|
|
2868
|
+
tmp_5.encodedPassword$delegate_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2815
2869
|
var tmp_6 = this;
|
|
2816
|
-
tmp_6.
|
|
2870
|
+
tmp_6.encodedFragment$delegate_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2817
2871
|
}
|
|
2818
|
-
protoOf(Url_0).
|
|
2872
|
+
protoOf(Url_0).get_port_wosj4a_k$ = function () {
|
|
2819
2873
|
// Inline function 'kotlin.takeUnless' call
|
|
2820
|
-
var this_0 = this.
|
|
2874
|
+
var this_0 = this.specifiedPort_1;
|
|
2821
2875
|
var tmp;
|
|
2822
2876
|
if (!(this_0 === 0)) {
|
|
2823
2877
|
tmp = this_0;
|
|
@@ -2825,24 +2879,24 @@ protoOf(Url_0).n2w = function () {
|
|
|
2825
2879
|
tmp = null;
|
|
2826
2880
|
}
|
|
2827
2881
|
var tmp0_elvis_lhs = tmp;
|
|
2828
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2882
|
+
return tmp0_elvis_lhs == null ? this.protocol_1.defaultPort_1 : tmp0_elvis_lhs;
|
|
2829
2883
|
};
|
|
2830
|
-
protoOf(Url_0).
|
|
2831
|
-
var tmp0 = this.
|
|
2884
|
+
protoOf(Url_0).get_encodedUser_p9wcq8_k$ = function () {
|
|
2885
|
+
var tmp0 = this.encodedUser$delegate_1;
|
|
2832
2886
|
var tmp = KProperty1;
|
|
2833
2887
|
// Inline function 'kotlin.getValue' call
|
|
2834
2888
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2835
|
-
return tmp0.
|
|
2889
|
+
return tmp0.get_value_j01efc_k$();
|
|
2836
2890
|
};
|
|
2837
|
-
protoOf(Url_0).
|
|
2838
|
-
var tmp0 = this.
|
|
2891
|
+
protoOf(Url_0).get_encodedPassword_rswp28_k$ = function () {
|
|
2892
|
+
var tmp0 = this.encodedPassword$delegate_1;
|
|
2839
2893
|
var tmp = KProperty1;
|
|
2840
2894
|
// Inline function 'kotlin.getValue' call
|
|
2841
2895
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2842
|
-
return tmp0.
|
|
2896
|
+
return tmp0.get_value_j01efc_k$();
|
|
2843
2897
|
};
|
|
2844
2898
|
protoOf(Url_0).toString = function () {
|
|
2845
|
-
return this.
|
|
2899
|
+
return this.urlString_1;
|
|
2846
2900
|
};
|
|
2847
2901
|
protoOf(Url_0).equals = function (other) {
|
|
2848
2902
|
if (this === other)
|
|
@@ -2851,34 +2905,34 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2851
2905
|
return false;
|
|
2852
2906
|
if (!(other instanceof Url_0))
|
|
2853
2907
|
THROW_CCE();
|
|
2854
|
-
return this.
|
|
2908
|
+
return this.urlString_1 === other.urlString_1;
|
|
2855
2909
|
};
|
|
2856
2910
|
protoOf(Url_0).hashCode = function () {
|
|
2857
|
-
return getStringHashCode(this.
|
|
2911
|
+
return getStringHashCode(this.urlString_1);
|
|
2858
2912
|
};
|
|
2859
2913
|
function get_authority_0(_this__u8e3s4) {
|
|
2860
2914
|
// Inline function 'kotlin.text.buildString' call
|
|
2861
2915
|
// Inline function 'kotlin.apply' call
|
|
2862
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2863
|
-
this_0.
|
|
2864
|
-
this_0.
|
|
2916
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2917
|
+
this_0.append_22ad7x_k$(get_encodedUserAndPassword_0(_this__u8e3s4));
|
|
2918
|
+
this_0.append_22ad7x_k$(get_hostWithPortIfSpecified(_this__u8e3s4));
|
|
2865
2919
|
return this_0.toString();
|
|
2866
2920
|
}
|
|
2867
2921
|
function UrlSerializer() {
|
|
2868
2922
|
UrlSerializer_instance = this;
|
|
2869
|
-
this.
|
|
2923
|
+
this.descriptor_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2870
2924
|
}
|
|
2871
|
-
protoOf(UrlSerializer).
|
|
2872
|
-
return this.
|
|
2925
|
+
protoOf(UrlSerializer).get_descriptor_wjt6a0_k$ = function () {
|
|
2926
|
+
return this.descriptor_1;
|
|
2873
2927
|
};
|
|
2874
|
-
protoOf(UrlSerializer).
|
|
2875
|
-
return Url(decoder.
|
|
2928
|
+
protoOf(UrlSerializer).deserialize_sy6x50_k$ = function (decoder) {
|
|
2929
|
+
return Url(decoder.decodeString_x3hxsx_k$());
|
|
2876
2930
|
};
|
|
2877
|
-
protoOf(UrlSerializer).
|
|
2878
|
-
encoder.
|
|
2931
|
+
protoOf(UrlSerializer).serialize_30km78_k$ = function (encoder, value) {
|
|
2932
|
+
encoder.encodeString_424b5v_k$(value.toString());
|
|
2879
2933
|
};
|
|
2880
|
-
protoOf(UrlSerializer).
|
|
2881
|
-
return this.
|
|
2934
|
+
protoOf(UrlSerializer).serialize_5ase3y_k$ = function (encoder, value) {
|
|
2935
|
+
return this.serialize_30km78_k$(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2882
2936
|
};
|
|
2883
2937
|
var UrlSerializer_instance;
|
|
2884
2938
|
function UrlSerializer_getInstance() {
|
|
@@ -2889,76 +2943,76 @@ function UrlSerializer_getInstance() {
|
|
|
2889
2943
|
function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
2890
2944
|
// Inline function 'kotlin.text.buildString' call
|
|
2891
2945
|
// Inline function 'kotlin.apply' call
|
|
2892
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2893
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2946
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2947
|
+
appendUserAndPassword(this_0, _this__u8e3s4.get_encodedUser_p9wcq8_k$(), _this__u8e3s4.get_encodedPassword_rswp28_k$());
|
|
2894
2948
|
return this_0.toString();
|
|
2895
2949
|
}
|
|
2896
2950
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2897
|
-
this.
|
|
2898
|
-
this.
|
|
2951
|
+
this.encodedParametersBuilder_1 = encodedParametersBuilder;
|
|
2952
|
+
this.caseInsensitiveName_1 = this.encodedParametersBuilder_1.get_caseInsensitiveName_ehooe5_k$();
|
|
2899
2953
|
}
|
|
2900
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2901
|
-
return decodeParameters(this.
|
|
2954
|
+
protoOf(UrlDecodedParametersBuilder).build_1k0s4u_k$ = function () {
|
|
2955
|
+
return decodeParameters(this.encodedParametersBuilder_1);
|
|
2902
2956
|
};
|
|
2903
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2904
|
-
return this.
|
|
2957
|
+
protoOf(UrlDecodedParametersBuilder).get_caseInsensitiveName_ehooe5_k$ = function () {
|
|
2958
|
+
return this.caseInsensitiveName_1;
|
|
2905
2959
|
};
|
|
2906
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2907
|
-
var tmp0_safe_receiver = this.
|
|
2960
|
+
protoOf(UrlDecodedParametersBuilder).getAll_ffxf4h_k$ = function (name) {
|
|
2961
|
+
var tmp0_safe_receiver = this.encodedParametersBuilder_1.getAll_ffxf4h_k$(encodeURLParameter(name));
|
|
2908
2962
|
var tmp;
|
|
2909
2963
|
if (tmp0_safe_receiver == null) {
|
|
2910
2964
|
tmp = null;
|
|
2911
2965
|
} else {
|
|
2912
2966
|
// Inline function 'kotlin.collections.map' call
|
|
2913
2967
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2914
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
2915
|
-
var _iterator__ex2g4s = tmp0_safe_receiver.
|
|
2916
|
-
while (_iterator__ex2g4s.
|
|
2917
|
-
var item = _iterator__ex2g4s.
|
|
2968
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
2969
|
+
var _iterator__ex2g4s = tmp0_safe_receiver.iterator_jk1svi_k$();
|
|
2970
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2971
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
2918
2972
|
var tmp$ret$2 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
2919
|
-
destination.
|
|
2973
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
2920
2974
|
}
|
|
2921
2975
|
tmp = destination;
|
|
2922
2976
|
}
|
|
2923
2977
|
return tmp;
|
|
2924
2978
|
};
|
|
2925
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2979
|
+
protoOf(UrlDecodedParametersBuilder).names_1q9mbs_k$ = function () {
|
|
2926
2980
|
// Inline function 'kotlin.collections.map' call
|
|
2927
|
-
var this_0 = this.
|
|
2981
|
+
var this_0 = this.encodedParametersBuilder_1.names_1q9mbs_k$();
|
|
2928
2982
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2929
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2930
|
-
var _iterator__ex2g4s = this_0.
|
|
2931
|
-
while (_iterator__ex2g4s.
|
|
2932
|
-
var item = _iterator__ex2g4s.
|
|
2983
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2984
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
2985
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2986
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
2933
2987
|
var tmp$ret$2 = decodeURLQueryComponent(item);
|
|
2934
|
-
destination.
|
|
2988
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
2935
2989
|
}
|
|
2936
2990
|
return toSet(destination);
|
|
2937
2991
|
};
|
|
2938
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2939
|
-
return this.
|
|
2992
|
+
protoOf(UrlDecodedParametersBuilder).isEmpty_y1axqb_k$ = function () {
|
|
2993
|
+
return this.encodedParametersBuilder_1.isEmpty_y1axqb_k$();
|
|
2940
2994
|
};
|
|
2941
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2942
|
-
return decodeParameters(this.
|
|
2995
|
+
protoOf(UrlDecodedParametersBuilder).entries_qbkxv4_k$ = function () {
|
|
2996
|
+
return decodeParameters(this.encodedParametersBuilder_1).entries_qbkxv4_k$();
|
|
2943
2997
|
};
|
|
2944
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2945
|
-
return this.
|
|
2998
|
+
protoOf(UrlDecodedParametersBuilder).append_rhug0a_k$ = function (name, value) {
|
|
2999
|
+
return this.encodedParametersBuilder_1.append_rhug0a_k$(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2946
3000
|
};
|
|
2947
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3001
|
+
protoOf(UrlDecodedParametersBuilder).appendAll_ytnfgb_k$ = function (name, values) {
|
|
2948
3002
|
var tmp = encodeURLParameter(name);
|
|
2949
3003
|
// Inline function 'kotlin.collections.map' call
|
|
2950
3004
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2951
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
2952
|
-
var _iterator__ex2g4s = values.
|
|
2953
|
-
while (_iterator__ex2g4s.
|
|
2954
|
-
var item = _iterator__ex2g4s.
|
|
3005
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
3006
|
+
var _iterator__ex2g4s = values.iterator_jk1svi_k$();
|
|
3007
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
3008
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
2955
3009
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
2956
|
-
destination.
|
|
3010
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
2957
3011
|
}
|
|
2958
|
-
return this.
|
|
3012
|
+
return this.encodedParametersBuilder_1.appendAll_ytnfgb_k$(tmp, destination);
|
|
2959
3013
|
};
|
|
2960
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2961
|
-
return this.
|
|
3014
|
+
protoOf(UrlDecodedParametersBuilder).clear_j9egeb_k$ = function () {
|
|
3015
|
+
return this.encodedParametersBuilder_1.clear_j9egeb_k$();
|
|
2962
3016
|
};
|
|
2963
3017
|
function encodeParameters(parameters) {
|
|
2964
3018
|
// Inline function 'kotlin.apply' call
|
|
@@ -2970,64 +3024,64 @@ function decodeParameters(parameters) {
|
|
|
2970
3024
|
// Inline function 'kotlin.apply' call
|
|
2971
3025
|
var this_0 = ParametersBuilder();
|
|
2972
3026
|
appendAllDecoded(this_0, parameters);
|
|
2973
|
-
return this_0.
|
|
3027
|
+
return this_0.build_1k0s4u_k$();
|
|
2974
3028
|
}
|
|
2975
3029
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
2976
3030
|
// Inline function 'kotlin.collections.forEach' call
|
|
2977
|
-
var _iterator__ex2g4s = parameters.
|
|
2978
|
-
while (_iterator__ex2g4s.
|
|
2979
|
-
var element = _iterator__ex2g4s.
|
|
2980
|
-
var tmp0_elvis_lhs = parameters.
|
|
3031
|
+
var _iterator__ex2g4s = parameters.names_1q9mbs_k$().iterator_jk1svi_k$();
|
|
3032
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
3033
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
3034
|
+
var tmp0_elvis_lhs = parameters.getAll_ffxf4h_k$(element);
|
|
2981
3035
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2982
3036
|
var tmp = encodeURLParameter(element);
|
|
2983
3037
|
// Inline function 'kotlin.collections.map' call
|
|
2984
3038
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2985
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
2986
|
-
var _iterator__ex2g4s_0 = values.
|
|
2987
|
-
while (_iterator__ex2g4s_0.
|
|
2988
|
-
var item = _iterator__ex2g4s_0.
|
|
3039
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
3040
|
+
var _iterator__ex2g4s_0 = values.iterator_jk1svi_k$();
|
|
3041
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
3042
|
+
var item = _iterator__ex2g4s_0.next_20eer_k$();
|
|
2989
3043
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
2990
|
-
destination.
|
|
3044
|
+
destination.add_utx5q5_k$(tmp$ret$4);
|
|
2991
3045
|
}
|
|
2992
|
-
_this__u8e3s4.
|
|
3046
|
+
_this__u8e3s4.appendAll_ytnfgb_k$(tmp, destination);
|
|
2993
3047
|
}
|
|
2994
3048
|
}
|
|
2995
3049
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
2996
3050
|
// Inline function 'kotlin.collections.forEach' call
|
|
2997
|
-
var _iterator__ex2g4s = parameters.
|
|
2998
|
-
while (_iterator__ex2g4s.
|
|
2999
|
-
var element = _iterator__ex2g4s.
|
|
3000
|
-
var tmp0_elvis_lhs = parameters.
|
|
3051
|
+
var _iterator__ex2g4s = parameters.names_1q9mbs_k$().iterator_jk1svi_k$();
|
|
3052
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
3053
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
3054
|
+
var tmp0_elvis_lhs = parameters.getAll_ffxf4h_k$(element);
|
|
3001
3055
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3002
3056
|
var tmp = decodeURLQueryComponent(element);
|
|
3003
3057
|
// Inline function 'kotlin.collections.map' call
|
|
3004
3058
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3005
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3006
|
-
var _iterator__ex2g4s_0 = values.
|
|
3007
|
-
while (_iterator__ex2g4s_0.
|
|
3008
|
-
var item = _iterator__ex2g4s_0.
|
|
3059
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
3060
|
+
var _iterator__ex2g4s_0 = values.iterator_jk1svi_k$();
|
|
3061
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
3062
|
+
var item = _iterator__ex2g4s_0.next_20eer_k$();
|
|
3009
3063
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3010
|
-
destination.
|
|
3064
|
+
destination.add_utx5q5_k$(tmp$ret$4);
|
|
3011
3065
|
}
|
|
3012
|
-
_this__u8e3s4.
|
|
3066
|
+
_this__u8e3s4.appendAll_ytnfgb_k$(tmp, destination);
|
|
3013
3067
|
}
|
|
3014
3068
|
}
|
|
3015
3069
|
function ByteArrayContent(bytes, contentType, status) {
|
|
3016
3070
|
contentType = contentType === VOID ? null : contentType;
|
|
3017
3071
|
status = status === VOID ? null : status;
|
|
3018
3072
|
ByteArrayContent_0.call(this);
|
|
3019
|
-
this.
|
|
3020
|
-
this.
|
|
3021
|
-
this.
|
|
3073
|
+
this.bytes_1 = bytes;
|
|
3074
|
+
this.contentType_1 = contentType;
|
|
3075
|
+
this.status_1 = status;
|
|
3022
3076
|
}
|
|
3023
|
-
protoOf(ByteArrayContent).
|
|
3024
|
-
return this.
|
|
3077
|
+
protoOf(ByteArrayContent).get_contentType_7git4a_k$ = function () {
|
|
3078
|
+
return this.contentType_1;
|
|
3025
3079
|
};
|
|
3026
|
-
protoOf(ByteArrayContent).
|
|
3027
|
-
return fromInt(this.
|
|
3080
|
+
protoOf(ByteArrayContent).get_contentLength_a5o8yy_k$ = function () {
|
|
3081
|
+
return fromInt(this.bytes_1.length);
|
|
3028
3082
|
};
|
|
3029
|
-
protoOf(ByteArrayContent).
|
|
3030
|
-
return this.
|
|
3083
|
+
protoOf(ByteArrayContent).bytes_1k3k2z_k$ = function () {
|
|
3084
|
+
return this.bytes_1;
|
|
3031
3085
|
};
|
|
3032
3086
|
function FormItem() {
|
|
3033
3087
|
}
|
|
@@ -3057,20 +3111,20 @@ function ProtocolUpgrade() {
|
|
|
3057
3111
|
}
|
|
3058
3112
|
function ContentWrapper() {
|
|
3059
3113
|
}
|
|
3060
|
-
protoOf(ContentWrapper).
|
|
3061
|
-
return this.
|
|
3114
|
+
protoOf(ContentWrapper).delegate_djsx39_k$ = function () {
|
|
3115
|
+
return this.delegate_1;
|
|
3062
3116
|
};
|
|
3063
3117
|
function OutgoingContent() {
|
|
3064
|
-
this.
|
|
3118
|
+
this.extensionProperties_1 = null;
|
|
3065
3119
|
}
|
|
3066
|
-
protoOf(OutgoingContent).
|
|
3120
|
+
protoOf(OutgoingContent).get_contentType_7git4a_k$ = function () {
|
|
3067
3121
|
return null;
|
|
3068
3122
|
};
|
|
3069
|
-
protoOf(OutgoingContent).
|
|
3123
|
+
protoOf(OutgoingContent).get_contentLength_a5o8yy_k$ = function () {
|
|
3070
3124
|
return null;
|
|
3071
3125
|
};
|
|
3072
|
-
protoOf(OutgoingContent).
|
|
3073
|
-
return
|
|
3126
|
+
protoOf(OutgoingContent).get_headers_ef25jx_k$ = function () {
|
|
3127
|
+
return Companion_getInstance_2().Empty_1;
|
|
3074
3128
|
};
|
|
3075
3129
|
function NullBody() {
|
|
3076
3130
|
}
|
|
@@ -3084,7 +3138,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3084
3138
|
tmp = true;
|
|
3085
3139
|
} else {
|
|
3086
3140
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3087
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3141
|
+
tmp = isEmpty(_this__u8e3s4.delegate_djsx39_k$());
|
|
3088
3142
|
} else {
|
|
3089
3143
|
tmp = false;
|
|
3090
3144
|
}
|
|
@@ -3094,27 +3148,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3094
3148
|
function TextContent(text, contentType, status) {
|
|
3095
3149
|
status = status === VOID ? null : status;
|
|
3096
3150
|
ByteArrayContent_0.call(this);
|
|
3097
|
-
this.
|
|
3098
|
-
this.
|
|
3099
|
-
this.
|
|
3151
|
+
this.text_1 = text;
|
|
3152
|
+
this.contentType_1 = contentType;
|
|
3153
|
+
this.status_1 = status;
|
|
3100
3154
|
var tmp = this;
|
|
3101
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3102
|
-
tmp.
|
|
3155
|
+
var tmp0_elvis_lhs = charset(this.contentType_1);
|
|
3156
|
+
tmp.bytes_1 = toByteArray(this.text_1, tmp0_elvis_lhs == null ? Charsets_getInstance().UTF_8__1 : tmp0_elvis_lhs);
|
|
3103
3157
|
}
|
|
3104
|
-
protoOf(TextContent).
|
|
3105
|
-
return this.
|
|
3158
|
+
protoOf(TextContent).get_contentType_7git4a_k$ = function () {
|
|
3159
|
+
return this.contentType_1;
|
|
3106
3160
|
};
|
|
3107
|
-
protoOf(TextContent).
|
|
3108
|
-
return fromInt(this.
|
|
3161
|
+
protoOf(TextContent).get_contentLength_a5o8yy_k$ = function () {
|
|
3162
|
+
return fromInt(this.bytes_1.length);
|
|
3109
3163
|
};
|
|
3110
|
-
protoOf(TextContent).
|
|
3111
|
-
return this.
|
|
3164
|
+
protoOf(TextContent).bytes_1k3k2z_k$ = function () {
|
|
3165
|
+
return this.bytes_1;
|
|
3112
3166
|
};
|
|
3113
3167
|
protoOf(TextContent).toString = function () {
|
|
3114
|
-
return 'TextContent[' + this.
|
|
3168
|
+
return 'TextContent[' + this.contentType_1.toString() + '] "' + take(this.text_1, 30) + '"';
|
|
3115
3169
|
};
|
|
3116
3170
|
function get_origin(_this__u8e3s4) {
|
|
3117
|
-
return PlatformUtils_getInstance().
|
|
3171
|
+
return PlatformUtils_getInstance().IS_BROWSER_1 ? locationOrigin() : 'http://localhost';
|
|
3118
3172
|
}
|
|
3119
3173
|
function locationOrigin() {
|
|
3120
3174
|
return function () {
|
|
@@ -3132,32 +3186,33 @@ function locationOrigin() {
|
|
|
3132
3186
|
}();
|
|
3133
3187
|
}
|
|
3134
3188
|
//region block: post-declaration
|
|
3135
|
-
protoOf(EmptyHeaders).
|
|
3136
|
-
protoOf(EmptyHeaders).
|
|
3137
|
-
protoOf(EmptyParameters).
|
|
3138
|
-
protoOf(EmptyParameters).
|
|
3189
|
+
protoOf(EmptyHeaders).get_6bo4tg_k$ = get;
|
|
3190
|
+
protoOf(EmptyHeaders).forEach_jocloe_k$ = forEach;
|
|
3191
|
+
protoOf(EmptyParameters).get_6bo4tg_k$ = get;
|
|
3192
|
+
protoOf(EmptyParameters).forEach_jocloe_k$ = forEach;
|
|
3139
3193
|
//endregion
|
|
3140
3194
|
//region block: init
|
|
3141
|
-
|
|
3195
|
+
Companion_instance = new Companion();
|
|
3196
|
+
Companion_instance_1 = new Companion_1();
|
|
3142
3197
|
EmptyHeaders_instance = new EmptyHeaders();
|
|
3143
3198
|
EmptyParameters_instance = new EmptyParameters();
|
|
3144
|
-
|
|
3199
|
+
Companion_instance_9 = new Companion_9();
|
|
3145
3200
|
NullBody_instance = new NullBody();
|
|
3146
3201
|
//endregion
|
|
3147
3202
|
//region block: exports
|
|
3148
3203
|
export {
|
|
3149
|
-
NullBody_instance as
|
|
3150
|
-
Application_getInstance as
|
|
3151
|
-
|
|
3152
|
-
MultiPart_getInstance as
|
|
3153
|
-
Text_getInstance as
|
|
3154
|
-
|
|
3155
|
-
HttpHeaders_getInstance as
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
ContentType_init_$Create$ as ContentType_init_$Create$
|
|
3204
|
+
NullBody_instance as NullBody_instance22vwyocs8eppk,
|
|
3205
|
+
Application_getInstance as Application_getInstance3vhi2qmce4cj0,
|
|
3206
|
+
Companion_getInstance_0 as Companion_getInstance2mdqh2piyf0f8,
|
|
3207
|
+
MultiPart_getInstance as MultiPart_getInstance5h1nld8q49pe,
|
|
3208
|
+
Text_getInstance as Text_getInstance2n0fbbag7eq4k,
|
|
3209
|
+
Companion_getInstance_2 as Companion_getInstance72dans54qq1a,
|
|
3210
|
+
HttpHeaders_getInstance as HttpHeaders_getInstance1avhj7ffsen7f,
|
|
3211
|
+
Companion_getInstance_3 as Companion_getInstance29j9s2wnmk34z,
|
|
3212
|
+
Companion_getInstance_4 as Companion_getInstance32hwbrsal0o03,
|
|
3213
|
+
Companion_getInstance_5 as Companion_getInstanceu2wrlss616lb,
|
|
3214
|
+
Companion_getInstance_6 as Companion_getInstance25cbdbruarm2m,
|
|
3215
|
+
ContentType_init_$Create$ as ContentType_init_$Create$ziwsiybilmbs,
|
|
3161
3216
|
ByteArrayContent as ByteArrayContent9zol65b22hp0,
|
|
3162
3217
|
MultiPartData as MultiPartData57syw40llxls,
|
|
3163
3218
|
NullBody as NullBody1903zz7riiwr0,
|
|
@@ -3174,6 +3229,7 @@ export {
|
|
|
3174
3229
|
FormItem as FormItem1iov1k1zypjjb,
|
|
3175
3230
|
TextContent as TextContent1rb6ftlpvl1d2,
|
|
3176
3231
|
isEmpty as isEmpty1yq29t926r0va,
|
|
3232
|
+
BadContentTypeFormatException as BadContentTypeFormatException2lqc4nmtnbgvk,
|
|
3177
3233
|
ContentType as ContentType1svlpabm9v7iz,
|
|
3178
3234
|
HeadersBuilder as HeadersBuilder3h7sn3kkvu98m,
|
|
3179
3235
|
HttpStatusCode as HttpStatusCode3o1wkms10pg4k,
|
|
@@ -3196,6 +3252,7 @@ export {
|
|
|
3196
3252
|
isSecure as isSecurex1qiiavqi0xu,
|
|
3197
3253
|
isSuccess as isSuccess1pokn37fdu56v,
|
|
3198
3254
|
isWebsocket as isWebsocket1w1xog9vfgwm1,
|
|
3255
|
+
parseHeaderValue as parseHeaderValuealpos28fgp6t,
|
|
3199
3256
|
get_supportsRequestBody as get_supportsRequestBodyjdtitrt33hir,
|
|
3200
3257
|
takeFrom_0 as takeFromkqlcz7c6dx2r,
|
|
3201
3258
|
takeFrom as takeFrom3rd40szpqy350,
|