@doordeck/doordeck-headless-sdk 0.149.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +65 -65
- package/kotlin/Kermit-kermit.js +9 -9
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +59 -59
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +25 -25
- package/kotlin/doordeck-sdk.d.ts +1 -1
- package/kotlin/doordeck-sdk.js +13870 -15047
- package/kotlin/kotlin-kotlin-stdlib.js +4885 -4837
- package/kotlin/kotlinx-atomicfu.js +92 -88
- package/kotlin/kotlinx-coroutines-core.js +2871 -2878
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +71 -71
- package/kotlin/kotlinx-io-kotlinx-io-core.js +697 -676
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2632 -2628
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1841 -1829
- package/kotlin/ktor-ktor-client-auth.js +493 -512
- package/kotlin/ktor-ktor-client-content-negotiation.js +300 -308
- package/kotlin/ktor-ktor-client-core.js +3260 -3343
- package/kotlin/ktor-ktor-client-logging.js +1267 -1301
- package/kotlin/ktor-ktor-events.js +18 -18
- package/kotlin/ktor-ktor-http-cio.js +724 -719
- package/kotlin/ktor-ktor-http.js +1171 -1166
- package/kotlin/ktor-ktor-io.js +1413 -1440
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/kotlin/ktor-ktor-serialization-kotlinx.js +295 -311
- package/kotlin/ktor-ktor-serialization.js +128 -136
- package/kotlin/ktor-ktor-utils.js +1128 -1129
- package/kotlin/ktor-ktor-websockets.js +68 -68
- package/package.json +3 -2
package/kotlin/ktor-ktor-http.js
CHANGED
|
@@ -2,145 +2,145 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var VOID = kotlin_kotlin.$_$.
|
|
6
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
5
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
7
7
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
8
8
|
var encode = kotlin_io_ktor_ktor_io.$_$.t;
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var isSurrogate = kotlin_kotlin.$_$.wc;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
10
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
11
|
+
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.j2;
|
|
12
|
+
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.i2;
|
|
14
13
|
var takeWhile = kotlin_io_ktor_ktor_io.$_$.c1;
|
|
15
|
-
var charArray = kotlin_kotlin.$_$.
|
|
16
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
14
|
+
var charArray = kotlin_kotlin.$_$.la;
|
|
15
|
+
var concatToString = kotlin_kotlin.$_$.zc;
|
|
16
|
+
var charCodeAt = kotlin_kotlin.$_$.ma;
|
|
17
|
+
var substring = kotlin_kotlin.$_$.ie;
|
|
18
|
+
var toString = kotlin_kotlin.$_$.cc;
|
|
19
|
+
var Char = kotlin_kotlin.$_$.jf;
|
|
20
|
+
var isSurrogate = kotlin_kotlin.$_$.pd;
|
|
21
|
+
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.c1;
|
|
22
|
+
var charSequenceGet = kotlin_kotlin.$_$.na;
|
|
23
|
+
var charSequenceLength = kotlin_kotlin.$_$.oa;
|
|
24
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.pa;
|
|
25
|
+
var toString_0 = kotlin_kotlin.$_$.m2;
|
|
26
|
+
var toByte = kotlin_kotlin.$_$.ac;
|
|
27
|
+
var decodeToString = kotlin_kotlin.$_$.ed;
|
|
28
|
+
var Exception = kotlin_kotlin.$_$.qf;
|
|
29
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
30
|
+
var captureStack = kotlin_kotlin.$_$.ja;
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
32
|
+
var initMetadataForClass = kotlin_kotlin.$_$.za;
|
|
33
|
+
var Char__minus_impl_a2frrh_0 = kotlin_kotlin.$_$.h2;
|
|
34
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
|
|
35
|
+
var numberToChar = kotlin_kotlin.$_$.xb;
|
|
36
36
|
var canRead = kotlin_io_ktor_ktor_io.$_$.x;
|
|
37
|
-
var Char__rangeTo_impl_tkncvp = kotlin_kotlin.$_$.
|
|
38
|
-
var plus = kotlin_kotlin.$_$.
|
|
39
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
40
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
41
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
-
var toSet = kotlin_kotlin.$_$.
|
|
43
|
-
var setOf = kotlin_kotlin.$_$.
|
|
44
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
45
|
-
var listOf = kotlin_kotlin.$_$.
|
|
46
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
47
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
48
|
-
var equals = kotlin_kotlin.$_$.
|
|
49
|
-
var Collection = kotlin_kotlin.$_$.
|
|
50
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
51
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
52
|
-
var last = kotlin_kotlin.$_$.
|
|
53
|
-
var indexOf = kotlin_kotlin.$_$.
|
|
54
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
55
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
56
|
-
var trim = kotlin_kotlin.$_$.
|
|
57
|
-
var substring_0 = kotlin_kotlin.$_$.
|
|
58
|
-
var contains = kotlin_kotlin.$_$.
|
|
59
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
60
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
61
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
62
|
-
var plus_2 = kotlin_kotlin.$_$.
|
|
63
|
-
var equals_0 = kotlin_kotlin.$_$.
|
|
64
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
65
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
37
|
+
var Char__rangeTo_impl_tkncvp = kotlin_kotlin.$_$.k2;
|
|
38
|
+
var plus = kotlin_kotlin.$_$.p7;
|
|
39
|
+
var plus_0 = kotlin_kotlin.$_$.q7;
|
|
40
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
|
|
41
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
42
|
+
var toSet = kotlin_kotlin.$_$.l8;
|
|
43
|
+
var setOf = kotlin_kotlin.$_$.w7;
|
|
44
|
+
var plus_1 = kotlin_kotlin.$_$.o7;
|
|
45
|
+
var listOf = kotlin_kotlin.$_$.k7;
|
|
46
|
+
var emptyList = kotlin_kotlin.$_$.o6;
|
|
47
|
+
var objectCreate = kotlin_kotlin.$_$.yb;
|
|
48
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
49
|
+
var Collection = kotlin_kotlin.$_$.b5;
|
|
50
|
+
var isInterface = kotlin_kotlin.$_$.ob;
|
|
51
|
+
var isBlank = kotlin_kotlin.$_$.od;
|
|
52
|
+
var last = kotlin_kotlin.$_$.i7;
|
|
53
|
+
var indexOf = kotlin_kotlin.$_$.nd;
|
|
54
|
+
var THROW_CCE = kotlin_kotlin.$_$.yf;
|
|
55
|
+
var isCharSequence = kotlin_kotlin.$_$.kb;
|
|
56
|
+
var trim = kotlin_kotlin.$_$.cf;
|
|
57
|
+
var substring_0 = kotlin_kotlin.$_$.he;
|
|
58
|
+
var contains = kotlin_kotlin.$_$.cd;
|
|
59
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ab;
|
|
60
|
+
var startsWith = kotlin_kotlin.$_$.ce;
|
|
61
|
+
var initMetadataForObject = kotlin_kotlin.$_$.fb;
|
|
62
|
+
var plus_2 = kotlin_kotlin.$_$.r7;
|
|
63
|
+
var equals_0 = kotlin_kotlin.$_$.sa;
|
|
64
|
+
var getStringHashCode = kotlin_kotlin.$_$.xa;
|
|
65
|
+
var hashCode = kotlin_kotlin.$_$.ya;
|
|
66
66
|
var forName = kotlin_io_ktor_ktor_io.$_$.u;
|
|
67
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
67
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.rf;
|
|
68
68
|
var get_name = kotlin_io_ktor_ktor_io.$_$.w;
|
|
69
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
70
|
-
var first = kotlin_kotlin.$_$.
|
|
71
|
-
var last_0 = kotlin_kotlin.$_$.
|
|
72
|
-
var get_lastIndex_0 = kotlin_kotlin.$_$.
|
|
69
|
+
var get_lastIndex = kotlin_kotlin.$_$.g7;
|
|
70
|
+
var first = kotlin_kotlin.$_$.kd;
|
|
71
|
+
var last_0 = kotlin_kotlin.$_$.td;
|
|
72
|
+
var get_lastIndex_0 = kotlin_kotlin.$_$.rd;
|
|
73
73
|
var StringValuesBuilderImpl = kotlin_io_ktor_ktor_utils.$_$.v;
|
|
74
|
-
var
|
|
74
|
+
var listOf_0 = kotlin_kotlin.$_$.j7;
|
|
75
|
+
var emptySet = kotlin_kotlin.$_$.q6;
|
|
75
76
|
var get = kotlin_io_ktor_ktor_utils.$_$.u;
|
|
76
77
|
var contains_0 = kotlin_io_ktor_ktor_utils.$_$.s;
|
|
77
78
|
var forEach = kotlin_io_ktor_ktor_utils.$_$.t;
|
|
78
79
|
var StringValues = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
79
80
|
var StringValuesImpl = kotlin_io_ktor_ktor_utils.$_$.w;
|
|
80
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
81
|
-
var listOf_0 = kotlin_kotlin.$_$.p7;
|
|
81
|
+
var emptyMap = kotlin_kotlin.$_$.p6;
|
|
82
82
|
var StringValuesSingleImpl = kotlin_io_ktor_ktor_utils.$_$.x;
|
|
83
|
-
var toDoubleOrNull = kotlin_kotlin.$_$.
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
89
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var asList = kotlin_kotlin.$_$.
|
|
93
|
-
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.
|
|
94
|
-
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.
|
|
95
|
-
var toLong = kotlin_kotlin.$_$.
|
|
96
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
97
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
98
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
99
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
100
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
101
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
102
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
var
|
|
107
|
-
var
|
|
108
|
-
var
|
|
83
|
+
var toDoubleOrNull = kotlin_kotlin.$_$.oe;
|
|
84
|
+
var sortedWith = kotlin_kotlin.$_$.z7;
|
|
85
|
+
var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.e;
|
|
86
|
+
var lazy = kotlin_kotlin.$_$.vg;
|
|
87
|
+
var to = kotlin_kotlin.$_$.ch;
|
|
88
|
+
var FunctionAdapter = kotlin_kotlin.$_$.fa;
|
|
89
|
+
var Comparator = kotlin_kotlin.$_$.lf;
|
|
90
|
+
var compareValues = kotlin_kotlin.$_$.p8;
|
|
91
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
92
|
+
var asList = kotlin_kotlin.$_$.s5;
|
|
93
|
+
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.g2;
|
|
94
|
+
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.m1;
|
|
95
|
+
var toLong = kotlin_kotlin.$_$.te;
|
|
96
|
+
var mapCapacity = kotlin_kotlin.$_$.l7;
|
|
97
|
+
var coerceAtLeast = kotlin_kotlin.$_$.gc;
|
|
98
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
99
|
+
var Comparable = kotlin_kotlin.$_$.kf;
|
|
100
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.db;
|
|
101
|
+
var isWhitespace = kotlin_kotlin.$_$.qd;
|
|
102
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
103
|
+
var startsWith_0 = kotlin_kotlin.$_$.be;
|
|
104
|
+
var charArrayOf = kotlin_kotlin.$_$.ka;
|
|
105
|
+
var split = kotlin_kotlin.$_$.yd;
|
|
106
|
+
var toMutableList = kotlin_kotlin.$_$.i8;
|
|
107
|
+
var first_0 = kotlin_kotlin.$_$.v6;
|
|
108
|
+
var joinToString = kotlin_kotlin.$_$.d7;
|
|
109
109
|
var toCharArray = kotlin_io_ktor_ktor_utils.$_$.i1;
|
|
110
|
-
var indexOfAny = kotlin_kotlin.$_$.
|
|
111
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
112
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
113
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
114
|
-
var indexOf_0 = kotlin_kotlin.$_$.
|
|
115
|
-
var toInt = kotlin_kotlin.$_$.
|
|
110
|
+
var indexOfAny = kotlin_kotlin.$_$.ld;
|
|
111
|
+
var dropLast = kotlin_kotlin.$_$.n6;
|
|
112
|
+
var IllegalStateException = kotlin_kotlin.$_$.sf;
|
|
113
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s1;
|
|
114
|
+
var indexOf_0 = kotlin_kotlin.$_$.md;
|
|
115
|
+
var toInt = kotlin_kotlin.$_$.re;
|
|
116
116
|
var toLowerCasePreservingASCIIRules = kotlin_io_ktor_ktor_utils.$_$.k1;
|
|
117
117
|
var isLowerCase = kotlin_io_ktor_ktor_utils.$_$.f1;
|
|
118
118
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
119
|
-
var startsWith_1 = kotlin_kotlin.$_$.
|
|
120
|
-
var addAll = kotlin_kotlin.$_$.
|
|
121
|
-
var joinTo = kotlin_kotlin.$_$.
|
|
122
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
123
|
-
var lazy_0 = kotlin_kotlin.$_$.
|
|
124
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
125
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
126
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
119
|
+
var startsWith_1 = kotlin_kotlin.$_$.ae;
|
|
120
|
+
var addAll = kotlin_kotlin.$_$.q5;
|
|
121
|
+
var joinTo = kotlin_kotlin.$_$.e7;
|
|
122
|
+
var toString_1 = kotlin_kotlin.$_$.bh;
|
|
123
|
+
var lazy_0 = kotlin_kotlin.$_$.wg;
|
|
124
|
+
var KProperty1 = kotlin_kotlin.$_$.vc;
|
|
125
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.wa;
|
|
126
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.pc;
|
|
127
127
|
var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
128
128
|
var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
|
|
129
129
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
130
|
-
var Enum = kotlin_kotlin.$_$.
|
|
131
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
130
|
+
var Enum = kotlin_kotlin.$_$.of;
|
|
131
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.xg;
|
|
132
132
|
var Hash_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
133
|
-
var until = kotlin_kotlin.$_$.
|
|
134
|
-
var substring_1 = kotlin_kotlin.$_$.
|
|
135
|
-
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
136
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
137
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
138
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
139
|
-
var
|
|
133
|
+
var until = kotlin_kotlin.$_$.lc;
|
|
134
|
+
var substring_1 = kotlin_kotlin.$_$.ge;
|
|
135
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.s;
|
|
136
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
137
|
+
var takeLast = kotlin_kotlin.$_$.je;
|
|
138
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
139
|
+
var fromInt = kotlin_kotlin.$_$.v9;
|
|
140
140
|
var toByteArray = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
141
|
-
var take = kotlin_kotlin.$_$.
|
|
142
|
-
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.
|
|
143
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
141
|
+
var take = kotlin_kotlin.$_$.ke;
|
|
142
|
+
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.o1;
|
|
143
|
+
var defineProp = kotlin_kotlin.$_$.ra;
|
|
144
144
|
var PlatformUtils_getInstance = kotlin_io_ktor_ktor_utils.$_$.c;
|
|
145
145
|
//endregion
|
|
146
146
|
//region block: pre-declaration
|
|
@@ -158,13 +158,13 @@
|
|
|
158
158
|
initMetadataForObject(EmptyHeaders, 'EmptyHeaders', VOID, VOID, [StringValues]);
|
|
159
159
|
initMetadataForClass(HeadersImpl, 'HeadersImpl', HeadersImpl, StringValuesImpl, [StringValues, StringValuesImpl]);
|
|
160
160
|
initMetadataForClass(HeadersSingleImpl, 'HeadersSingleImpl', VOID, StringValuesSingleImpl, [StringValues, StringValuesSingleImpl]);
|
|
161
|
-
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
162
161
|
initMetadataForClass(HeaderValue, 'HeaderValue');
|
|
162
|
+
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
163
163
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
164
164
|
initMetadataForObject(HttpHeaders, 'HttpHeaders');
|
|
165
|
+
initMetadataForClass(UnsafeHeaderException, 'UnsafeHeaderException', VOID, IllegalArgumentException);
|
|
165
166
|
initMetadataForClass(IllegalHeaderNameException, 'IllegalHeaderNameException', VOID, IllegalArgumentException);
|
|
166
167
|
initMetadataForClass(IllegalHeaderValueException, 'IllegalHeaderValueException', VOID, IllegalArgumentException);
|
|
167
|
-
initMetadataForClass(UnsafeHeaderException, 'UnsafeHeaderException', VOID, IllegalArgumentException);
|
|
168
168
|
initMetadataForCompanion(Companion_2);
|
|
169
169
|
initMetadataForClass(HttpMethod, 'HttpMethod');
|
|
170
170
|
initMetadataForCompanion(Companion_3);
|
|
@@ -240,26 +240,26 @@
|
|
|
240
240
|
// Inline function 'kotlin.text.buildString' call
|
|
241
241
|
// Inline function 'kotlin.apply' call
|
|
242
242
|
var this_0 = StringBuilder_init_$Create$();
|
|
243
|
-
var content = encode(Charsets_getInstance().
|
|
243
|
+
var content = encode(Charsets_getInstance().d1w_1.h1w(), _this__u8e3s4);
|
|
244
244
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
245
245
|
return this_0.toString();
|
|
246
246
|
}
|
|
247
247
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
248
248
|
start = start === VOID ? 0 : start;
|
|
249
249
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
250
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
250
|
+
charset = charset === VOID ? Charsets_getInstance().d1w_1 : charset;
|
|
251
251
|
_init_properties_Codecs_kt__fudxxf();
|
|
252
252
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
253
253
|
}
|
|
254
254
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
255
255
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
256
256
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
257
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
257
|
+
charset = charset === VOID ? Charsets_getInstance().d1w_1 : charset;
|
|
258
258
|
_init_properties_Codecs_kt__fudxxf();
|
|
259
259
|
// Inline function 'kotlin.text.buildString' call
|
|
260
260
|
// Inline function 'kotlin.apply' call
|
|
261
261
|
var this_0 = StringBuilder_init_$Create$();
|
|
262
|
-
var content = encode(charset.
|
|
262
|
+
var content = encode(charset.h1w(), _this__u8e3s4);
|
|
263
263
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
264
264
|
return this_0.toString();
|
|
265
265
|
}
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
start = start === VOID ? 0 : start;
|
|
268
268
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
269
269
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
270
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
270
|
+
charset = charset === VOID ? Charsets_getInstance().d1w_1 : charset;
|
|
271
271
|
_init_properties_Codecs_kt__fudxxf();
|
|
272
272
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
273
273
|
}
|
|
@@ -275,35 +275,13 @@
|
|
|
275
275
|
_init_properties_Codecs_kt__fudxxf();
|
|
276
276
|
return encodeURLPath(_this__u8e3s4, true);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
encodeSlash = encodeSlash === VOID ? false : encodeSlash;
|
|
280
|
-
encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
|
|
278
|
+
function encodeURLParameterValue(_this__u8e3s4) {
|
|
281
279
|
_init_properties_Codecs_kt__fudxxf();
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
288
|
-
var current = charCodeAt(_this__u8e3s4, index);
|
|
289
|
-
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().w1(new Char(current)) || get_VALID_PATH_PART().w1(new Char(current))) {
|
|
290
|
-
this_0.z8(current);
|
|
291
|
-
index = index + 1 | 0;
|
|
292
|
-
continue $l$loop_0;
|
|
293
|
-
}
|
|
294
|
-
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().w1(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().w1(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
|
|
295
|
-
this_0.z8(current);
|
|
296
|
-
this_0.z8(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
297
|
-
this_0.z8(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
298
|
-
index = index + 3 | 0;
|
|
299
|
-
continue $l$loop_0;
|
|
300
|
-
}
|
|
301
|
-
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
302
|
-
var tmp = encode(charset.o1z(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
303
|
-
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
304
|
-
index = index + symbolSize | 0;
|
|
305
|
-
}
|
|
306
|
-
return this_0.toString();
|
|
280
|
+
return encodeURLParameter(_this__u8e3s4, true);
|
|
281
|
+
}
|
|
282
|
+
function hexDigitToChar(digit) {
|
|
283
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
284
|
+
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);
|
|
307
285
|
}
|
|
308
286
|
function forEach_0(_this__u8e3s4, block) {
|
|
309
287
|
_init_properties_Codecs_kt__fudxxf();
|
|
@@ -333,9 +311,35 @@
|
|
|
333
311
|
while (inductionVariable < end);
|
|
334
312
|
return start === 0 && end === _this__u8e3s4.length ? toString(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
|
|
335
313
|
}
|
|
336
|
-
function
|
|
314
|
+
function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
315
|
+
encodeSlash = encodeSlash === VOID ? false : encodeSlash;
|
|
316
|
+
encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
|
|
337
317
|
_init_properties_Codecs_kt__fudxxf();
|
|
338
|
-
|
|
318
|
+
// Inline function 'kotlin.text.buildString' call
|
|
319
|
+
// Inline function 'kotlin.apply' call
|
|
320
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
321
|
+
var charset = Charsets_getInstance().d1w_1;
|
|
322
|
+
var index = 0;
|
|
323
|
+
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
324
|
+
var current = charCodeAt(_this__u8e3s4, index);
|
|
325
|
+
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().u1(new Char(current)) || get_VALID_PATH_PART().u1(new Char(current))) {
|
|
326
|
+
this_0.g8(current);
|
|
327
|
+
index = index + 1 | 0;
|
|
328
|
+
continue $l$loop_0;
|
|
329
|
+
}
|
|
330
|
+
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().u1(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().u1(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
|
|
331
|
+
this_0.g8(current);
|
|
332
|
+
this_0.g8(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
333
|
+
this_0.g8(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
334
|
+
index = index + 3 | 0;
|
|
335
|
+
continue $l$loop_0;
|
|
336
|
+
}
|
|
337
|
+
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
338
|
+
var tmp = encode(charset.h1w(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
339
|
+
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
340
|
+
index = index + symbolSize | 0;
|
|
341
|
+
}
|
|
342
|
+
return this_0.toString();
|
|
339
343
|
}
|
|
340
344
|
function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset) {
|
|
341
345
|
_init_properties_Codecs_kt__fudxxf();
|
|
@@ -343,14 +347,14 @@
|
|
|
343
347
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
344
348
|
var sb = StringBuilder_init_$Create$_0(sbSize);
|
|
345
349
|
if (prefixEnd > start) {
|
|
346
|
-
sb.
|
|
350
|
+
sb.mc(_this__u8e3s4, start, prefixEnd);
|
|
347
351
|
}
|
|
348
352
|
var index = prefixEnd;
|
|
349
353
|
var bytes = null;
|
|
350
354
|
while (index < end) {
|
|
351
355
|
var c = charSequenceGet(_this__u8e3s4, index);
|
|
352
356
|
if (plusIsSpace && c === _Char___init__impl__6a9atx(43)) {
|
|
353
|
-
sb.
|
|
357
|
+
sb.g8(_Char___init__impl__6a9atx(32));
|
|
354
358
|
index = index + 1 | 0;
|
|
355
359
|
} else if (c === _Char___init__impl__6a9atx(37)) {
|
|
356
360
|
if (bytes == null) {
|
|
@@ -376,9 +380,9 @@
|
|
|
376
380
|
tmp[_unary__edvuaz] = toByte(imul(digit1, 16) + digit2 | 0);
|
|
377
381
|
index = index + 3 | 0;
|
|
378
382
|
}
|
|
379
|
-
sb.
|
|
383
|
+
sb.f8(decodeToString(bytes, 0, 0 + count | 0));
|
|
380
384
|
} else {
|
|
381
|
-
sb.
|
|
385
|
+
sb.g8(c);
|
|
382
386
|
index = index + 1 | 0;
|
|
383
387
|
}
|
|
384
388
|
}
|
|
@@ -392,14 +396,10 @@
|
|
|
392
396
|
_init_properties_Codecs_kt__fudxxf();
|
|
393
397
|
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;
|
|
394
398
|
}
|
|
395
|
-
function encodeURLParameterValue(_this__u8e3s4) {
|
|
396
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
397
|
-
return encodeURLParameter(_this__u8e3s4, true);
|
|
398
|
-
}
|
|
399
399
|
function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
400
400
|
return function (it) {
|
|
401
|
-
if (get_URL_ALPHABET().
|
|
402
|
-
$$this$buildString.
|
|
401
|
+
if (get_URL_ALPHABET().u1(it) || get_SPECIAL_SYMBOLS().u1(it))
|
|
402
|
+
$$this$buildString.g8(numberToChar(it));
|
|
403
403
|
else {
|
|
404
404
|
var tmp;
|
|
405
405
|
if ($spaceToPlus) {
|
|
@@ -412,9 +412,9 @@
|
|
|
412
412
|
tmp = false;
|
|
413
413
|
}
|
|
414
414
|
if (tmp)
|
|
415
|
-
$$this$buildString.
|
|
415
|
+
$$this$buildString.g8(_Char___init__impl__6a9atx(43));
|
|
416
416
|
else {
|
|
417
|
-
$$this$buildString.
|
|
417
|
+
$$this$buildString.f8(percentEncode(it));
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
return Unit_instance;
|
|
@@ -428,33 +428,33 @@
|
|
|
428
428
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
429
429
|
if (tmp === toByte(tmp$ret$0))
|
|
430
430
|
if ($spaceToPlus)
|
|
431
|
-
$$this$buildString.
|
|
431
|
+
$$this$buildString.g8(_Char___init__impl__6a9atx(43));
|
|
432
432
|
else
|
|
433
|
-
$$this$buildString.
|
|
433
|
+
$$this$buildString.f8('%20');
|
|
434
434
|
else {
|
|
435
|
-
if (get_URL_ALPHABET().
|
|
436
|
-
$$this$buildString.
|
|
435
|
+
if (get_URL_ALPHABET().u1(it) || (!$encodeFull && get_URL_PROTOCOL_PART().u1(it)))
|
|
436
|
+
$$this$buildString.g8(numberToChar(it));
|
|
437
437
|
else {
|
|
438
|
-
$$this$buildString.
|
|
438
|
+
$$this$buildString.f8(percentEncode(it));
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
return Unit_instance;
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
function encodeURLPath$lambda($$this$buildString) {
|
|
445
|
-
return function (it) {
|
|
446
|
-
$$this$buildString.y8(percentEncode(it));
|
|
447
|
-
return Unit_instance;
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
444
|
function forEach$lambda($block) {
|
|
451
445
|
return function (buffer) {
|
|
452
446
|
while (canRead(buffer)) {
|
|
453
|
-
$block(buffer.
|
|
447
|
+
$block(buffer.op());
|
|
454
448
|
}
|
|
455
449
|
return true;
|
|
456
450
|
};
|
|
457
451
|
}
|
|
452
|
+
function encodeURLPath$lambda($$this$buildString) {
|
|
453
|
+
return function (it) {
|
|
454
|
+
$$this$buildString.f8(percentEncode(it));
|
|
455
|
+
return Unit_instance;
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
458
|
var properties_initialized_Codecs_kt_hkj9s1;
|
|
459
459
|
function _init_properties_Codecs_kt__fudxxf() {
|
|
460
460
|
if (!properties_initialized_Codecs_kt_hkj9s1) {
|
|
@@ -463,14 +463,14 @@
|
|
|
463
463
|
var this_0 = 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)));
|
|
464
464
|
// Inline function 'kotlin.collections.mapTo' call
|
|
465
465
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
466
|
-
var _iterator__ex2g4s = this_0.
|
|
467
|
-
while (_iterator__ex2g4s.
|
|
468
|
-
var item = _iterator__ex2g4s.
|
|
466
|
+
var _iterator__ex2g4s = this_0.r();
|
|
467
|
+
while (_iterator__ex2g4s.s()) {
|
|
468
|
+
var item = _iterator__ex2g4s.t();
|
|
469
469
|
// Inline function 'kotlin.code' call
|
|
470
|
-
var this_1 = item.
|
|
470
|
+
var this_1 = item.i1_1;
|
|
471
471
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_1);
|
|
472
472
|
var tmp$ret$1 = toByte(tmp$ret$0);
|
|
473
|
-
destination.
|
|
473
|
+
destination.p(tmp$ret$1);
|
|
474
474
|
}
|
|
475
475
|
URL_ALPHABET = toSet(destination);
|
|
476
476
|
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))));
|
|
@@ -479,14 +479,14 @@
|
|
|
479
479
|
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))]);
|
|
480
480
|
// Inline function 'kotlin.collections.mapTo' call
|
|
481
481
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
482
|
-
var _iterator__ex2g4s_0 = this_2.
|
|
483
|
-
while (_iterator__ex2g4s_0.
|
|
484
|
-
var item_0 = _iterator__ex2g4s_0.
|
|
482
|
+
var _iterator__ex2g4s_0 = this_2.r();
|
|
483
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
484
|
+
var item_0 = _iterator__ex2g4s_0.t();
|
|
485
485
|
// Inline function 'kotlin.code' call
|
|
486
|
-
var this_3 = item_0.
|
|
486
|
+
var this_3 = item_0.i1_1;
|
|
487
487
|
var tmp$ret$0_0 = Char__toInt_impl_vasixd(this_3);
|
|
488
488
|
var tmp$ret$1_0 = toByte(tmp$ret$0_0);
|
|
489
|
-
destination_0.
|
|
489
|
+
destination_0.p(tmp$ret$1_0);
|
|
490
490
|
}
|
|
491
491
|
URL_PROTOCOL_PART = destination_0;
|
|
492
492
|
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))]);
|
|
@@ -495,14 +495,14 @@
|
|
|
495
495
|
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))]);
|
|
496
496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
497
497
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
498
|
-
var _iterator__ex2g4s_1 = this_4.
|
|
499
|
-
while (_iterator__ex2g4s_1.
|
|
500
|
-
var item_1 = _iterator__ex2g4s_1.
|
|
498
|
+
var _iterator__ex2g4s_1 = this_4.r();
|
|
499
|
+
while (_iterator__ex2g4s_1.s()) {
|
|
500
|
+
var item_1 = _iterator__ex2g4s_1.t();
|
|
501
501
|
// Inline function 'kotlin.code' call
|
|
502
|
-
var this_5 = item_1.
|
|
502
|
+
var this_5 = item_1.i1_1;
|
|
503
503
|
var tmp$ret$0_1 = Char__toInt_impl_vasixd(this_5);
|
|
504
504
|
var tmp$ret$1_1 = toByte(tmp$ret$0_1);
|
|
505
|
-
destination_1.
|
|
505
|
+
destination_1.p(tmp$ret$1_1);
|
|
506
506
|
}
|
|
507
507
|
SPECIAL_SYMBOLS = destination_1;
|
|
508
508
|
}
|
|
@@ -517,24 +517,24 @@
|
|
|
517
517
|
}
|
|
518
518
|
function hasParameter($this, name, value) {
|
|
519
519
|
var tmp;
|
|
520
|
-
switch ($this.
|
|
520
|
+
switch ($this.y2q_1.u()) {
|
|
521
521
|
case 0:
|
|
522
522
|
tmp = false;
|
|
523
523
|
break;
|
|
524
524
|
case 1:
|
|
525
525
|
// Inline function 'kotlin.let' call
|
|
526
526
|
|
|
527
|
-
var it = $this.
|
|
528
|
-
tmp = (equals(it.
|
|
527
|
+
var it = $this.y2q_1.v(0);
|
|
528
|
+
tmp = (equals(it.z2q_1, name, true) && equals(it.a2r_1, value, true));
|
|
529
529
|
break;
|
|
530
530
|
default:
|
|
531
|
-
var tmp0 = $this.
|
|
531
|
+
var tmp0 = $this.y2q_1;
|
|
532
532
|
var tmp$ret$2;
|
|
533
533
|
$l$block_0: {
|
|
534
534
|
// Inline function 'kotlin.collections.any' call
|
|
535
535
|
var tmp_0;
|
|
536
536
|
if (isInterface(tmp0, Collection)) {
|
|
537
|
-
tmp_0 = tmp0.
|
|
537
|
+
tmp_0 = tmp0.j();
|
|
538
538
|
} else {
|
|
539
539
|
tmp_0 = false;
|
|
540
540
|
}
|
|
@@ -542,10 +542,10 @@
|
|
|
542
542
|
tmp$ret$2 = false;
|
|
543
543
|
break $l$block_0;
|
|
544
544
|
}
|
|
545
|
-
var _iterator__ex2g4s = tmp0.
|
|
546
|
-
while (_iterator__ex2g4s.
|
|
547
|
-
var element = _iterator__ex2g4s.
|
|
548
|
-
if (equals(element.
|
|
545
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
546
|
+
while (_iterator__ex2g4s.s()) {
|
|
547
|
+
var element = _iterator__ex2g4s.t();
|
|
548
|
+
if (equals(element.z2q_1, name, true) && equals(element.a2r_1, value, true)) {
|
|
549
549
|
tmp$ret$2 = true;
|
|
550
550
|
break $l$block_0;
|
|
551
551
|
}
|
|
@@ -560,20 +560,20 @@
|
|
|
560
560
|
}
|
|
561
561
|
function Companion() {
|
|
562
562
|
Companion_instance = this;
|
|
563
|
-
this.
|
|
563
|
+
this.c2r_1 = ContentType_init_$Create$('*', '*');
|
|
564
564
|
}
|
|
565
|
-
protoOf(Companion).
|
|
565
|
+
protoOf(Companion).hm = function (value) {
|
|
566
566
|
if (isBlank(value))
|
|
567
|
-
return this.
|
|
567
|
+
return this.c2r_1;
|
|
568
568
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
569
569
|
var headerValue = last(parseHeaderValue(value));
|
|
570
|
-
var tmp0 = headerValue.
|
|
571
|
-
var parameters = headerValue.
|
|
570
|
+
var tmp0 = headerValue.d2r_1;
|
|
571
|
+
var parameters = headerValue.e2r_1;
|
|
572
572
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
573
573
|
if (slash === -1) {
|
|
574
574
|
// Inline function 'kotlin.text.trim' call
|
|
575
575
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
576
|
-
return Companion_getInstance().
|
|
576
|
+
return Companion_getInstance().c2r_1;
|
|
577
577
|
throw new BadContentTypeFormatException(value);
|
|
578
578
|
}
|
|
579
579
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -609,32 +609,32 @@
|
|
|
609
609
|
}
|
|
610
610
|
function Application() {
|
|
611
611
|
Application_instance = 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.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
}
|
|
637
|
-
protoOf(Application).
|
|
612
|
+
this.g2r_1 = 'application';
|
|
613
|
+
this.h2r_1 = ContentType_init_$Create$('application', '*');
|
|
614
|
+
this.i2r_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
615
|
+
this.j2r_1 = ContentType_init_$Create$('application', 'cbor');
|
|
616
|
+
this.k2r_1 = ContentType_init_$Create$('application', 'json');
|
|
617
|
+
this.l2r_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
618
|
+
this.m2r_1 = ContentType_init_$Create$('application', 'javascript');
|
|
619
|
+
this.n2r_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
620
|
+
this.o2r_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
621
|
+
this.p2r_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
622
|
+
this.q2r_1 = ContentType_init_$Create$('application', 'xml');
|
|
623
|
+
this.r2r_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
624
|
+
this.s2r_1 = ContentType_init_$Create$('application', 'yaml');
|
|
625
|
+
this.t2r_1 = ContentType_init_$Create$('application', 'zip');
|
|
626
|
+
this.u2r_1 = ContentType_init_$Create$('application', 'gzip');
|
|
627
|
+
this.v2r_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
628
|
+
this.w2r_1 = ContentType_init_$Create$('application', 'pdf');
|
|
629
|
+
this.x2r_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
630
|
+
this.y2r_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
631
|
+
this.z2r_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
632
|
+
this.a2s_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
633
|
+
this.b2s_1 = ContentType_init_$Create$('application', 'wasm');
|
|
634
|
+
this.c2s_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
635
|
+
this.d2s_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
636
|
+
}
|
|
637
|
+
protoOf(Application).e2s = function (contentType) {
|
|
638
638
|
return startsWith(contentType, 'application/', true);
|
|
639
639
|
};
|
|
640
640
|
var Application_instance;
|
|
@@ -645,17 +645,17 @@
|
|
|
645
645
|
}
|
|
646
646
|
function MultiPart() {
|
|
647
647
|
MultiPart_instance = this;
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
}
|
|
658
|
-
protoOf(MultiPart).
|
|
648
|
+
this.f2s_1 = 'multipart';
|
|
649
|
+
this.g2s_1 = ContentType_init_$Create$('multipart', '*');
|
|
650
|
+
this.h2s_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
651
|
+
this.i2s_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
652
|
+
this.j2s_1 = ContentType_init_$Create$('multipart', 'related');
|
|
653
|
+
this.k2s_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
654
|
+
this.l2s_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
655
|
+
this.m2s_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
656
|
+
this.n2s_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
657
|
+
}
|
|
658
|
+
protoOf(MultiPart).e2s = function (contentType) {
|
|
659
659
|
return startsWith(contentType, 'multipart/', true);
|
|
660
660
|
};
|
|
661
661
|
var MultiPart_instance;
|
|
@@ -666,16 +666,16 @@
|
|
|
666
666
|
}
|
|
667
667
|
function Text() {
|
|
668
668
|
Text_instance = this;
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
669
|
+
this.o2s_1 = 'text';
|
|
670
|
+
this.p2s_1 = ContentType_init_$Create$('text', '*');
|
|
671
|
+
this.q2s_1 = ContentType_init_$Create$('text', 'plain');
|
|
672
|
+
this.r2s_1 = ContentType_init_$Create$('text', 'css');
|
|
673
|
+
this.s2s_1 = ContentType_init_$Create$('text', 'csv');
|
|
674
|
+
this.t2s_1 = ContentType_init_$Create$('text', 'html');
|
|
675
|
+
this.u2s_1 = ContentType_init_$Create$('text', 'javascript');
|
|
676
|
+
this.v2s_1 = ContentType_init_$Create$('text', 'vcard');
|
|
677
|
+
this.w2s_1 = ContentType_init_$Create$('text', 'xml');
|
|
678
|
+
this.x2s_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
679
679
|
}
|
|
680
680
|
var Text_instance;
|
|
681
681
|
function Text_getInstance() {
|
|
@@ -687,42 +687,42 @@
|
|
|
687
687
|
Companion_getInstance();
|
|
688
688
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
689
689
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
690
|
+
this.a2t_1 = contentType;
|
|
691
|
+
this.b2t_1 = contentSubtype;
|
|
692
692
|
}
|
|
693
|
-
protoOf(ContentType).
|
|
693
|
+
protoOf(ContentType).c2t = function (name, value) {
|
|
694
694
|
if (hasParameter(this, name, value))
|
|
695
695
|
return this;
|
|
696
|
-
return new ContentType(this.
|
|
696
|
+
return new ContentType(this.a2t_1, this.b2t_1, this.x2q_1, plus_2(this.y2q_1, HeaderValueParam_init_$Create$(name, value)));
|
|
697
697
|
};
|
|
698
|
-
protoOf(ContentType).
|
|
699
|
-
return this.
|
|
698
|
+
protoOf(ContentType).d2t = function () {
|
|
699
|
+
return this.y2q_1.j() ? this : ContentType_init_$Create$(this.a2t_1, this.b2t_1);
|
|
700
700
|
};
|
|
701
|
-
protoOf(ContentType).
|
|
702
|
-
if (!(pattern.
|
|
701
|
+
protoOf(ContentType).e2t = function (pattern) {
|
|
702
|
+
if (!(pattern.a2t_1 === '*') && !equals(pattern.a2t_1, this.a2t_1, true)) {
|
|
703
703
|
return false;
|
|
704
704
|
}
|
|
705
|
-
if (!(pattern.
|
|
705
|
+
if (!(pattern.b2t_1 === '*') && !equals(pattern.b2t_1, this.b2t_1, true)) {
|
|
706
706
|
return false;
|
|
707
707
|
}
|
|
708
|
-
var _iterator__ex2g4s = pattern.
|
|
709
|
-
while (_iterator__ex2g4s.
|
|
710
|
-
var _destruct__k2r9zo = _iterator__ex2g4s.
|
|
711
|
-
var patternName = _destruct__k2r9zo.
|
|
712
|
-
var patternValue = _destruct__k2r9zo.
|
|
708
|
+
var _iterator__ex2g4s = pattern.y2q_1.r();
|
|
709
|
+
while (_iterator__ex2g4s.s()) {
|
|
710
|
+
var _destruct__k2r9zo = _iterator__ex2g4s.t();
|
|
711
|
+
var patternName = _destruct__k2r9zo.ig();
|
|
712
|
+
var patternValue = _destruct__k2r9zo.jg();
|
|
713
713
|
var tmp;
|
|
714
714
|
if (patternName === '*') {
|
|
715
715
|
var tmp_0;
|
|
716
716
|
if (patternValue === '*') {
|
|
717
717
|
tmp_0 = true;
|
|
718
718
|
} else {
|
|
719
|
-
var tmp0 = this.
|
|
719
|
+
var tmp0 = this.y2q_1;
|
|
720
720
|
var tmp$ret$0;
|
|
721
721
|
$l$block_0: {
|
|
722
722
|
// Inline function 'kotlin.collections.any' call
|
|
723
723
|
var tmp_1;
|
|
724
724
|
if (isInterface(tmp0, Collection)) {
|
|
725
|
-
tmp_1 = tmp0.
|
|
725
|
+
tmp_1 = tmp0.j();
|
|
726
726
|
} else {
|
|
727
727
|
tmp_1 = false;
|
|
728
728
|
}
|
|
@@ -730,10 +730,10 @@
|
|
|
730
730
|
tmp$ret$0 = false;
|
|
731
731
|
break $l$block_0;
|
|
732
732
|
}
|
|
733
|
-
var _iterator__ex2g4s_0 = tmp0.
|
|
734
|
-
while (_iterator__ex2g4s_0.
|
|
735
|
-
var element = _iterator__ex2g4s_0.
|
|
736
|
-
if (equals(element.
|
|
733
|
+
var _iterator__ex2g4s_0 = tmp0.r();
|
|
734
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
735
|
+
var element = _iterator__ex2g4s_0.t();
|
|
736
|
+
if (equals(element.a2r_1, patternValue, true)) {
|
|
737
737
|
tmp$ret$0 = true;
|
|
738
738
|
break $l$block_0;
|
|
739
739
|
}
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
}
|
|
745
745
|
tmp = tmp_0;
|
|
746
746
|
} else {
|
|
747
|
-
var value = this.
|
|
747
|
+
var value = this.f2t(patternName);
|
|
748
748
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
749
749
|
}
|
|
750
750
|
var matches = tmp;
|
|
@@ -759,17 +759,17 @@
|
|
|
759
759
|
var tmp_0;
|
|
760
760
|
var tmp_1;
|
|
761
761
|
if (other instanceof ContentType) {
|
|
762
|
-
tmp_1 = equals(this.
|
|
762
|
+
tmp_1 = equals(this.a2t_1, other.a2t_1, true);
|
|
763
763
|
} else {
|
|
764
764
|
tmp_1 = false;
|
|
765
765
|
}
|
|
766
766
|
if (tmp_1) {
|
|
767
|
-
tmp_0 = equals(this.
|
|
767
|
+
tmp_0 = equals(this.b2t_1, other.b2t_1, true);
|
|
768
768
|
} else {
|
|
769
769
|
tmp_0 = false;
|
|
770
770
|
}
|
|
771
771
|
if (tmp_0) {
|
|
772
|
-
tmp = equals_0(this.
|
|
772
|
+
tmp = equals_0(this.y2q_1, other.y2q_1);
|
|
773
773
|
} else {
|
|
774
774
|
tmp = false;
|
|
775
775
|
}
|
|
@@ -778,23 +778,19 @@
|
|
|
778
778
|
protoOf(ContentType).hashCode = function () {
|
|
779
779
|
// Inline function 'kotlin.text.lowercase' call
|
|
780
780
|
// Inline function 'kotlin.js.asDynamic' call
|
|
781
|
-
var tmp$ret$1 = this.
|
|
781
|
+
var tmp$ret$1 = this.a2t_1.toLowerCase();
|
|
782
782
|
var result = getStringHashCode(tmp$ret$1);
|
|
783
783
|
var tmp = result;
|
|
784
784
|
var tmp_0 = imul(31, result);
|
|
785
785
|
// Inline function 'kotlin.text.lowercase' call
|
|
786
786
|
// Inline function 'kotlin.js.asDynamic' call
|
|
787
|
-
var tmp$ret$3 = this.
|
|
787
|
+
var tmp$ret$3 = this.b2t_1.toLowerCase();
|
|
788
788
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
789
|
-
result = result + imul(31, hashCode(this.
|
|
789
|
+
result = result + imul(31, hashCode(this.y2q_1)) | 0;
|
|
790
790
|
return result;
|
|
791
791
|
};
|
|
792
|
-
function BadContentTypeFormatException(value) {
|
|
793
|
-
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
794
|
-
captureStack(this, BadContentTypeFormatException);
|
|
795
|
-
}
|
|
796
792
|
function charset(_this__u8e3s4) {
|
|
797
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
793
|
+
var tmp0_safe_receiver = _this__u8e3s4.f2t('charset');
|
|
798
794
|
var tmp;
|
|
799
795
|
if (tmp0_safe_receiver == null) {
|
|
800
796
|
tmp = null;
|
|
@@ -818,16 +814,20 @@
|
|
|
818
814
|
return tmp;
|
|
819
815
|
}
|
|
820
816
|
function withCharset(_this__u8e3s4, charset) {
|
|
821
|
-
return _this__u8e3s4.
|
|
817
|
+
return _this__u8e3s4.c2t('charset', get_name(charset));
|
|
818
|
+
}
|
|
819
|
+
function BadContentTypeFormatException(value) {
|
|
820
|
+
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
821
|
+
captureStack(this, BadContentTypeFormatException);
|
|
822
822
|
}
|
|
823
823
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
824
824
|
var tmp;
|
|
825
825
|
// Inline function 'kotlin.text.lowercase' call
|
|
826
826
|
// Inline function 'kotlin.js.asDynamic' call
|
|
827
|
-
if (!(_this__u8e3s4.
|
|
827
|
+
if (!(_this__u8e3s4.a2t_1.toLowerCase() === 'text')) {
|
|
828
828
|
tmp = _this__u8e3s4;
|
|
829
829
|
} else {
|
|
830
|
-
tmp = _this__u8e3s4.
|
|
830
|
+
tmp = _this__u8e3s4.c2t('charset', get_name(charset));
|
|
831
831
|
}
|
|
832
832
|
return tmp;
|
|
833
833
|
}
|
|
@@ -839,6 +839,10 @@
|
|
|
839
839
|
return HeaderFieldValueSeparators;
|
|
840
840
|
}
|
|
841
841
|
var HeaderFieldValueSeparators;
|
|
842
|
+
function append(_this__u8e3s4, name, value) {
|
|
843
|
+
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
844
|
+
_this__u8e3s4.y2l(name, value.toString());
|
|
845
|
+
}
|
|
842
846
|
function Companion_0() {
|
|
843
847
|
}
|
|
844
848
|
var Companion_instance_0;
|
|
@@ -847,19 +851,19 @@
|
|
|
847
851
|
}
|
|
848
852
|
function HeaderValueWithParameters(content, parameters) {
|
|
849
853
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
854
|
+
this.x2q_1 = content;
|
|
855
|
+
this.y2q_1 = parameters;
|
|
852
856
|
}
|
|
853
|
-
protoOf(HeaderValueWithParameters).
|
|
857
|
+
protoOf(HeaderValueWithParameters).f2t = function (name) {
|
|
854
858
|
var inductionVariable = 0;
|
|
855
|
-
var last = get_lastIndex(this.
|
|
859
|
+
var last = get_lastIndex(this.y2q_1);
|
|
856
860
|
if (inductionVariable <= last)
|
|
857
861
|
do {
|
|
858
862
|
var index = inductionVariable;
|
|
859
863
|
inductionVariable = inductionVariable + 1 | 0;
|
|
860
|
-
var parameter = this.
|
|
861
|
-
if (equals(parameter.
|
|
862
|
-
return parameter.
|
|
864
|
+
var parameter = this.y2q_1.v(index);
|
|
865
|
+
if (equals(parameter.z2q_1, name, true)) {
|
|
866
|
+
return parameter.a2r_1;
|
|
863
867
|
}
|
|
864
868
|
}
|
|
865
869
|
while (!(index === last));
|
|
@@ -867,38 +871,38 @@
|
|
|
867
871
|
};
|
|
868
872
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
869
873
|
var tmp;
|
|
870
|
-
if (this.
|
|
871
|
-
tmp = this.
|
|
874
|
+
if (this.y2q_1.j()) {
|
|
875
|
+
tmp = this.x2q_1;
|
|
872
876
|
} else {
|
|
873
|
-
var tmp_0 = this.
|
|
877
|
+
var tmp_0 = this.x2q_1.length;
|
|
874
878
|
// Inline function 'kotlin.collections.sumOf' call
|
|
875
879
|
var sum = 0;
|
|
876
|
-
var _iterator__ex2g4s = this.
|
|
877
|
-
while (_iterator__ex2g4s.
|
|
878
|
-
var element = _iterator__ex2g4s.
|
|
880
|
+
var _iterator__ex2g4s = this.y2q_1.r();
|
|
881
|
+
while (_iterator__ex2g4s.s()) {
|
|
882
|
+
var element = _iterator__ex2g4s.t();
|
|
879
883
|
var tmp_1 = sum;
|
|
880
|
-
sum = tmp_1 + ((element.
|
|
884
|
+
sum = tmp_1 + ((element.z2q_1.length + element.a2r_1.length | 0) + 3 | 0) | 0;
|
|
881
885
|
}
|
|
882
886
|
var size = tmp_0 + sum | 0;
|
|
883
887
|
// Inline function 'kotlin.apply' call
|
|
884
888
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
885
|
-
this_0.
|
|
889
|
+
this_0.f8(this.x2q_1);
|
|
886
890
|
var inductionVariable = 0;
|
|
887
|
-
var last = get_lastIndex(this.
|
|
891
|
+
var last = get_lastIndex(this.y2q_1);
|
|
888
892
|
if (inductionVariable <= last)
|
|
889
893
|
do {
|
|
890
894
|
var index = inductionVariable;
|
|
891
895
|
inductionVariable = inductionVariable + 1 | 0;
|
|
892
|
-
var element_0 = this.
|
|
893
|
-
this_0.
|
|
894
|
-
this_0.
|
|
895
|
-
this_0.
|
|
896
|
+
var element_0 = this.y2q_1.v(index);
|
|
897
|
+
this_0.f8('; ');
|
|
898
|
+
this_0.f8(element_0.z2q_1);
|
|
899
|
+
this_0.f8('=');
|
|
896
900
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
897
|
-
var this_1 = element_0.
|
|
901
|
+
var this_1 = element_0.a2r_1;
|
|
898
902
|
if (needQuotes(this_1))
|
|
899
|
-
this_0.
|
|
903
|
+
this_0.f8(quote(this_1));
|
|
900
904
|
else
|
|
901
|
-
this_0.
|
|
905
|
+
this_0.f8(this_1);
|
|
902
906
|
}
|
|
903
907
|
while (!(index === last));
|
|
904
908
|
tmp = this_0.toString();
|
|
@@ -917,7 +921,7 @@
|
|
|
917
921
|
while (inductionVariable < last) {
|
|
918
922
|
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
919
923
|
inductionVariable = inductionVariable + 1 | 0;
|
|
920
|
-
if (get_HeaderFieldValueSeparators().
|
|
924
|
+
if (get_HeaderFieldValueSeparators().u1(new Char(element)))
|
|
921
925
|
return true;
|
|
922
926
|
}
|
|
923
927
|
return false;
|
|
@@ -960,7 +964,7 @@
|
|
|
960
964
|
}
|
|
961
965
|
function quoteTo(_this__u8e3s4, out) {
|
|
962
966
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
963
|
-
out.
|
|
967
|
+
out.f8('"');
|
|
964
968
|
var inductionVariable = 0;
|
|
965
969
|
var last = _this__u8e3s4.length;
|
|
966
970
|
while (inductionVariable < last) {
|
|
@@ -968,23 +972,19 @@
|
|
|
968
972
|
inductionVariable = inductionVariable + 1 | 0;
|
|
969
973
|
var ch = element;
|
|
970
974
|
if (ch === _Char___init__impl__6a9atx(92))
|
|
971
|
-
out.
|
|
975
|
+
out.f8('\\\\');
|
|
972
976
|
else if (ch === _Char___init__impl__6a9atx(10))
|
|
973
|
-
out.
|
|
977
|
+
out.f8('\\n');
|
|
974
978
|
else if (ch === _Char___init__impl__6a9atx(13))
|
|
975
|
-
out.
|
|
979
|
+
out.f8('\\r');
|
|
976
980
|
else if (ch === _Char___init__impl__6a9atx(9))
|
|
977
|
-
out.
|
|
981
|
+
out.f8('\\t');
|
|
978
982
|
else if (ch === _Char___init__impl__6a9atx(34))
|
|
979
|
-
out.
|
|
983
|
+
out.f8('\\"');
|
|
980
984
|
else
|
|
981
|
-
out.
|
|
985
|
+
out.g8(ch);
|
|
982
986
|
}
|
|
983
|
-
out.
|
|
984
|
-
}
|
|
985
|
-
function append(_this__u8e3s4, name, value) {
|
|
986
|
-
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
987
|
-
_this__u8e3s4.y2p(name, value.toString());
|
|
987
|
+
out.f8('"');
|
|
988
988
|
}
|
|
989
989
|
function escapeIfNeeded(_this__u8e3s4) {
|
|
990
990
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
}
|
|
1000
1000
|
function Companion_1() {
|
|
1001
1001
|
Companion_instance_1 = this;
|
|
1002
|
-
this.
|
|
1002
|
+
this.g2t_1 = EmptyHeaders_instance;
|
|
1003
1003
|
}
|
|
1004
1004
|
var Companion_instance_1;
|
|
1005
1005
|
function Companion_getInstance_1() {
|
|
@@ -1011,33 +1011,39 @@
|
|
|
1011
1011
|
size = size === VOID ? 8 : size;
|
|
1012
1012
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1013
1013
|
}
|
|
1014
|
-
protoOf(HeadersBuilder).
|
|
1015
|
-
return new HeadersImpl(this.
|
|
1014
|
+
protoOf(HeadersBuilder).j2t = function () {
|
|
1015
|
+
return new HeadersImpl(this.g2m_1);
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf(HeadersBuilder).
|
|
1018
|
-
protoOf(StringValuesBuilderImpl).
|
|
1019
|
-
HttpHeaders_getInstance().
|
|
1017
|
+
protoOf(HeadersBuilder).h2m = function (name) {
|
|
1018
|
+
protoOf(StringValuesBuilderImpl).h2m.call(this, name);
|
|
1019
|
+
HttpHeaders_getInstance().g2x(name);
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(HeadersBuilder).
|
|
1022
|
-
protoOf(StringValuesBuilderImpl).
|
|
1023
|
-
HttpHeaders_getInstance().
|
|
1021
|
+
protoOf(HeadersBuilder).j2m = function (value) {
|
|
1022
|
+
protoOf(StringValuesBuilderImpl).j2m.call(this, value);
|
|
1023
|
+
HttpHeaders_getInstance().h2x(value);
|
|
1024
1024
|
};
|
|
1025
|
+
function headersOf(name, value) {
|
|
1026
|
+
return new HeadersSingleImpl(name, listOf_0(value));
|
|
1027
|
+
}
|
|
1025
1028
|
function EmptyHeaders() {
|
|
1026
1029
|
}
|
|
1027
|
-
protoOf(EmptyHeaders).
|
|
1030
|
+
protoOf(EmptyHeaders).b2m = function () {
|
|
1028
1031
|
return true;
|
|
1029
1032
|
};
|
|
1030
|
-
protoOf(EmptyHeaders).
|
|
1033
|
+
protoOf(EmptyHeaders).c2m = function (name) {
|
|
1031
1034
|
return null;
|
|
1032
1035
|
};
|
|
1033
|
-
protoOf(EmptyHeaders).
|
|
1036
|
+
protoOf(EmptyHeaders).d2m = function () {
|
|
1034
1037
|
return emptySet();
|
|
1035
1038
|
};
|
|
1036
|
-
protoOf(EmptyHeaders).
|
|
1039
|
+
protoOf(EmptyHeaders).z2l = function () {
|
|
1037
1040
|
return emptySet();
|
|
1038
1041
|
};
|
|
1042
|
+
protoOf(EmptyHeaders).j = function () {
|
|
1043
|
+
return true;
|
|
1044
|
+
};
|
|
1039
1045
|
protoOf(EmptyHeaders).toString = function () {
|
|
1040
|
-
return 'Headers ' + toString(this.
|
|
1046
|
+
return 'Headers ' + toString(this.z2l());
|
|
1041
1047
|
};
|
|
1042
1048
|
var EmptyHeaders_instance;
|
|
1043
1049
|
function EmptyHeaders_getInstance() {
|
|
@@ -1048,79 +1054,27 @@
|
|
|
1048
1054
|
StringValuesImpl.call(this, true, values);
|
|
1049
1055
|
}
|
|
1050
1056
|
protoOf(HeadersImpl).toString = function () {
|
|
1051
|
-
return 'Headers ' + toString(this.
|
|
1057
|
+
return 'Headers ' + toString(this.z2l());
|
|
1052
1058
|
};
|
|
1053
|
-
function headersOf(name, value) {
|
|
1054
|
-
return new HeadersSingleImpl(name, listOf_0(value));
|
|
1055
|
-
}
|
|
1056
1059
|
function HeadersSingleImpl(name, values) {
|
|
1057
1060
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1058
1061
|
}
|
|
1059
1062
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1060
|
-
return 'Headers ' + toString(this.
|
|
1061
|
-
};
|
|
1062
|
-
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1063
|
-
HeaderValueParam.call($this, name, value, false);
|
|
1064
|
-
return $this;
|
|
1065
|
-
}
|
|
1066
|
-
function HeaderValueParam_init_$Create$(name, value) {
|
|
1067
|
-
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1068
|
-
}
|
|
1069
|
-
function HeaderValueParam(name, value, escapeValue) {
|
|
1070
|
-
this.l2u_1 = name;
|
|
1071
|
-
this.m2u_1 = value;
|
|
1072
|
-
this.n2u_1 = escapeValue;
|
|
1073
|
-
}
|
|
1074
|
-
protoOf(HeaderValueParam).equals = function (other) {
|
|
1075
|
-
var tmp;
|
|
1076
|
-
var tmp_0;
|
|
1077
|
-
if (other instanceof HeaderValueParam) {
|
|
1078
|
-
tmp_0 = equals(other.l2u_1, this.l2u_1, true);
|
|
1079
|
-
} else {
|
|
1080
|
-
tmp_0 = false;
|
|
1081
|
-
}
|
|
1082
|
-
if (tmp_0) {
|
|
1083
|
-
tmp = equals(other.m2u_1, this.m2u_1, true);
|
|
1084
|
-
} else {
|
|
1085
|
-
tmp = false;
|
|
1086
|
-
}
|
|
1087
|
-
return tmp;
|
|
1088
|
-
};
|
|
1089
|
-
protoOf(HeaderValueParam).hashCode = function () {
|
|
1090
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1091
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1092
|
-
var tmp$ret$1 = this.l2u_1.toLowerCase();
|
|
1093
|
-
var result = getStringHashCode(tmp$ret$1);
|
|
1094
|
-
var tmp = result;
|
|
1095
|
-
var tmp_0 = imul(31, result);
|
|
1096
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1097
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1098
|
-
var tmp$ret$3 = this.m2u_1.toLowerCase();
|
|
1099
|
-
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1100
|
-
return result;
|
|
1101
|
-
};
|
|
1102
|
-
protoOf(HeaderValueParam).dh = function () {
|
|
1103
|
-
return this.l2u_1;
|
|
1104
|
-
};
|
|
1105
|
-
protoOf(HeaderValueParam).eh = function () {
|
|
1106
|
-
return this.m2u_1;
|
|
1107
|
-
};
|
|
1108
|
-
protoOf(HeaderValueParam).toString = function () {
|
|
1109
|
-
return 'HeaderValueParam(name=' + this.l2u_1 + ', value=' + this.m2u_1 + ', escapeValue=' + this.n2u_1 + ')';
|
|
1063
|
+
return 'Headers ' + toString(this.z2l());
|
|
1110
1064
|
};
|
|
1111
1065
|
function HeaderValue(value, params) {
|
|
1112
1066
|
params = params === VOID ? emptyList() : params;
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1067
|
+
this.d2r_1 = value;
|
|
1068
|
+
this.e2r_1 = params;
|
|
1115
1069
|
var tmp = this;
|
|
1116
|
-
var tmp0 = this.
|
|
1070
|
+
var tmp0 = this.e2r_1;
|
|
1117
1071
|
var tmp$ret$1;
|
|
1118
1072
|
$l$block: {
|
|
1119
1073
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1120
|
-
var _iterator__ex2g4s = tmp0.
|
|
1121
|
-
while (_iterator__ex2g4s.
|
|
1122
|
-
var element = _iterator__ex2g4s.
|
|
1123
|
-
if (element.
|
|
1074
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
1075
|
+
while (_iterator__ex2g4s.s()) {
|
|
1076
|
+
var element = _iterator__ex2g4s.t();
|
|
1077
|
+
if (element.z2q_1 === 'q') {
|
|
1124
1078
|
tmp$ret$1 = element;
|
|
1125
1079
|
break $l$block;
|
|
1126
1080
|
}
|
|
@@ -1128,7 +1082,7 @@
|
|
|
1128
1082
|
tmp$ret$1 = null;
|
|
1129
1083
|
}
|
|
1130
1084
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1131
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1085
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a2r_1;
|
|
1132
1086
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1133
1087
|
var tmp_0;
|
|
1134
1088
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1144,17 +1098,17 @@
|
|
|
1144
1098
|
tmp_0 = tmp_1;
|
|
1145
1099
|
}
|
|
1146
1100
|
var tmp3_elvis_lhs = tmp_0;
|
|
1147
|
-
tmp.
|
|
1101
|
+
tmp.f2r_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1148
1102
|
}
|
|
1149
|
-
protoOf(HeaderValue).
|
|
1150
|
-
return this.
|
|
1103
|
+
protoOf(HeaderValue).ig = function () {
|
|
1104
|
+
return this.d2r_1;
|
|
1151
1105
|
};
|
|
1152
1106
|
protoOf(HeaderValue).toString = function () {
|
|
1153
|
-
return 'HeaderValue(value=' + this.
|
|
1107
|
+
return 'HeaderValue(value=' + this.d2r_1 + ', params=' + toString(this.e2r_1) + ')';
|
|
1154
1108
|
};
|
|
1155
1109
|
protoOf(HeaderValue).hashCode = function () {
|
|
1156
|
-
var result = getStringHashCode(this.
|
|
1157
|
-
result = imul(result, 31) + hashCode(this.
|
|
1110
|
+
var result = getStringHashCode(this.d2r_1);
|
|
1111
|
+
result = imul(result, 31) + hashCode(this.e2r_1) | 0;
|
|
1158
1112
|
return result;
|
|
1159
1113
|
};
|
|
1160
1114
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1163,12 +1117,69 @@
|
|
|
1163
1117
|
if (!(other instanceof HeaderValue))
|
|
1164
1118
|
return false;
|
|
1165
1119
|
var tmp0_other_with_cast = other instanceof HeaderValue ? other : THROW_CCE();
|
|
1166
|
-
if (!(this.
|
|
1120
|
+
if (!(this.d2r_1 === tmp0_other_with_cast.d2r_1))
|
|
1167
1121
|
return false;
|
|
1168
|
-
if (!equals_0(this.
|
|
1122
|
+
if (!equals_0(this.e2r_1, tmp0_other_with_cast.e2r_1))
|
|
1169
1123
|
return false;
|
|
1170
1124
|
return true;
|
|
1171
1125
|
};
|
|
1126
|
+
function parseAndSortHeader(header) {
|
|
1127
|
+
// Inline function 'kotlin.collections.sortedByDescending' call
|
|
1128
|
+
var this_0 = parseHeaderValue(header);
|
|
1129
|
+
// Inline function 'kotlin.comparisons.compareByDescending' call
|
|
1130
|
+
var tmp = parseAndSortHeader$lambda;
|
|
1131
|
+
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
1132
|
+
return sortedWith(this_0, tmp$ret$0);
|
|
1133
|
+
}
|
|
1134
|
+
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1135
|
+
HeaderValueParam.call($this, name, value, false);
|
|
1136
|
+
return $this;
|
|
1137
|
+
}
|
|
1138
|
+
function HeaderValueParam_init_$Create$(name, value) {
|
|
1139
|
+
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1140
|
+
}
|
|
1141
|
+
function HeaderValueParam(name, value, escapeValue) {
|
|
1142
|
+
this.z2q_1 = name;
|
|
1143
|
+
this.a2r_1 = value;
|
|
1144
|
+
this.b2r_1 = escapeValue;
|
|
1145
|
+
}
|
|
1146
|
+
protoOf(HeaderValueParam).equals = function (other) {
|
|
1147
|
+
var tmp;
|
|
1148
|
+
var tmp_0;
|
|
1149
|
+
if (other instanceof HeaderValueParam) {
|
|
1150
|
+
tmp_0 = equals(other.z2q_1, this.z2q_1, true);
|
|
1151
|
+
} else {
|
|
1152
|
+
tmp_0 = false;
|
|
1153
|
+
}
|
|
1154
|
+
if (tmp_0) {
|
|
1155
|
+
tmp = equals(other.a2r_1, this.a2r_1, true);
|
|
1156
|
+
} else {
|
|
1157
|
+
tmp = false;
|
|
1158
|
+
}
|
|
1159
|
+
return tmp;
|
|
1160
|
+
};
|
|
1161
|
+
protoOf(HeaderValueParam).hashCode = function () {
|
|
1162
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1163
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1164
|
+
var tmp$ret$1 = this.z2q_1.toLowerCase();
|
|
1165
|
+
var result = getStringHashCode(tmp$ret$1);
|
|
1166
|
+
var tmp = result;
|
|
1167
|
+
var tmp_0 = imul(31, result);
|
|
1168
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1169
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1170
|
+
var tmp$ret$3 = this.a2r_1.toLowerCase();
|
|
1171
|
+
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1172
|
+
return result;
|
|
1173
|
+
};
|
|
1174
|
+
protoOf(HeaderValueParam).ig = function () {
|
|
1175
|
+
return this.z2q_1;
|
|
1176
|
+
};
|
|
1177
|
+
protoOf(HeaderValueParam).jg = function () {
|
|
1178
|
+
return this.a2r_1;
|
|
1179
|
+
};
|
|
1180
|
+
protoOf(HeaderValueParam).toString = function () {
|
|
1181
|
+
return 'HeaderValueParam(name=' + this.z2q_1 + ', value=' + this.a2r_1 + ', escapeValue=' + this.b2r_1 + ')';
|
|
1182
|
+
};
|
|
1172
1183
|
function parseHeaderValue(text) {
|
|
1173
1184
|
return parseHeaderValue_0(text, false);
|
|
1174
1185
|
}
|
|
@@ -1192,9 +1203,9 @@
|
|
|
1192
1203
|
while (position <= get_lastIndex_0(text)) {
|
|
1193
1204
|
var tmp0_subject = charCodeAt(text, position);
|
|
1194
1205
|
if (tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
1195
|
-
var tmp_0 = items.
|
|
1206
|
+
var tmp_0 = items.a1();
|
|
1196
1207
|
var tmp1_elvis_lhs = valueEnd;
|
|
1197
|
-
tmp_0.
|
|
1208
|
+
tmp_0.p(new HeaderValue(subtrim(text, start, tmp1_elvis_lhs == null ? position : tmp1_elvis_lhs), valueOrEmpty(parameters)));
|
|
1198
1209
|
return position + 1 | 0;
|
|
1199
1210
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59)) {
|
|
1200
1211
|
if (valueEnd == null)
|
|
@@ -1210,13 +1221,13 @@
|
|
|
1210
1221
|
position = tmp_1;
|
|
1211
1222
|
}
|
|
1212
1223
|
}
|
|
1213
|
-
var tmp_2 = items.
|
|
1224
|
+
var tmp_2 = items.a1();
|
|
1214
1225
|
var tmp2_elvis_lhs = valueEnd;
|
|
1215
|
-
tmp_2.
|
|
1226
|
+
tmp_2.p(new HeaderValue(subtrim(text, start, tmp2_elvis_lhs == null ? position : tmp2_elvis_lhs), valueOrEmpty(parameters)));
|
|
1216
1227
|
return position;
|
|
1217
1228
|
}
|
|
1218
1229
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1219
|
-
return _this__u8e3s4.
|
|
1230
|
+
return _this__u8e3s4.am() ? _this__u8e3s4.a1() : emptyList();
|
|
1220
1231
|
}
|
|
1221
1232
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1222
1233
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -1229,8 +1240,8 @@
|
|
|
1229
1240
|
var tmp0_subject = charCodeAt(text, position);
|
|
1230
1241
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1231
1242
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1232
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1233
|
-
var paramValue = _destruct__k2r9zo.
|
|
1243
|
+
var paramEnd = _destruct__k2r9zo.ig();
|
|
1244
|
+
var paramValue = _destruct__k2r9zo.jg();
|
|
1234
1245
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1235
1246
|
return paramEnd;
|
|
1236
1247
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1269,11 +1280,11 @@
|
|
|
1269
1280
|
if (currentChar === _Char___init__impl__6a9atx(34) && nextIsDelimiterOrEnd(value, position)) {
|
|
1270
1281
|
return to(position + 1 | 0, builder.toString());
|
|
1271
1282
|
} else if (currentChar === _Char___init__impl__6a9atx(92) && position < (get_lastIndex_0(value) - 2 | 0)) {
|
|
1272
|
-
builder.
|
|
1283
|
+
builder.g8(charCodeAt(value, position + 1 | 0));
|
|
1273
1284
|
position = position + 2 | 0;
|
|
1274
1285
|
continue loop;
|
|
1275
1286
|
}
|
|
1276
|
-
builder.
|
|
1287
|
+
builder.g8(currentChar);
|
|
1277
1288
|
position = position + 1 | 0;
|
|
1278
1289
|
}
|
|
1279
1290
|
var tmp = position;
|
|
@@ -1290,32 +1301,24 @@
|
|
|
1290
1301
|
}
|
|
1291
1302
|
return position === _this__u8e3s4.length || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(59) || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(44);
|
|
1292
1303
|
}
|
|
1293
|
-
function parseAndSortHeader(header) {
|
|
1294
|
-
// Inline function 'kotlin.collections.sortedByDescending' call
|
|
1295
|
-
var this_0 = parseHeaderValue(header);
|
|
1296
|
-
// Inline function 'kotlin.comparisons.compareByDescending' call
|
|
1297
|
-
var tmp = parseAndSortHeader$lambda;
|
|
1298
|
-
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
1299
|
-
return sortedWith(this_0, tmp$ret$0);
|
|
1300
|
-
}
|
|
1301
1304
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1302
|
-
this.
|
|
1305
|
+
this.i2x_1 = function_0;
|
|
1303
1306
|
}
|
|
1304
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1305
|
-
return this.
|
|
1307
|
+
protoOf(sam$kotlin_Comparator$0).zd = function (a, b) {
|
|
1308
|
+
return this.i2x_1(a, b);
|
|
1306
1309
|
};
|
|
1307
1310
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1308
|
-
return this.
|
|
1311
|
+
return this.zd(a, b);
|
|
1309
1312
|
};
|
|
1310
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1311
|
-
return this.
|
|
1313
|
+
protoOf(sam$kotlin_Comparator$0).d3 = function () {
|
|
1314
|
+
return this.i2x_1;
|
|
1312
1315
|
};
|
|
1313
1316
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1314
1317
|
var tmp;
|
|
1315
1318
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1316
1319
|
var tmp_0;
|
|
1317
1320
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1318
|
-
tmp_0 = equals_0(this.
|
|
1321
|
+
tmp_0 = equals_0(this.d3(), other.d3());
|
|
1319
1322
|
} else {
|
|
1320
1323
|
tmp_0 = false;
|
|
1321
1324
|
}
|
|
@@ -1326,7 +1329,7 @@
|
|
|
1326
1329
|
return tmp;
|
|
1327
1330
|
};
|
|
1328
1331
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1329
|
-
return hashCode(this.
|
|
1332
|
+
return hashCode(this.d3());
|
|
1330
1333
|
};
|
|
1331
1334
|
function parseHeaderValueParameter$addParam($parameters, text, start, end, value) {
|
|
1332
1335
|
var name = subtrim(text, start, end);
|
|
@@ -1334,7 +1337,13 @@
|
|
|
1334
1337
|
if (charSequenceLength(name) === 0) {
|
|
1335
1338
|
return Unit_instance;
|
|
1336
1339
|
}
|
|
1337
|
-
$parameters.
|
|
1340
|
+
$parameters.a1().p(HeaderValueParam_init_$Create$(name, value));
|
|
1341
|
+
}
|
|
1342
|
+
function parseAndSortHeader$lambda(a, b) {
|
|
1343
|
+
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1344
|
+
var tmp = b.f2r_1;
|
|
1345
|
+
var tmp$ret$1 = a.f2r_1;
|
|
1346
|
+
return compareValues(tmp, tmp$ret$1);
|
|
1338
1347
|
}
|
|
1339
1348
|
function parseHeaderValue$lambda() {
|
|
1340
1349
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
@@ -1344,120 +1353,114 @@
|
|
|
1344
1353
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1345
1354
|
return ArrayList_init_$Create$_0();
|
|
1346
1355
|
}
|
|
1347
|
-
function parseAndSortHeader$lambda(a, b) {
|
|
1348
|
-
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1349
|
-
var tmp = b.r2u_1;
|
|
1350
|
-
var tmp$ret$1 = a.r2u_1;
|
|
1351
|
-
return compareValues(tmp, tmp$ret$1);
|
|
1352
|
-
}
|
|
1353
1356
|
function HttpHeaders() {
|
|
1354
1357
|
HttpHeaders_instance = 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.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1445
|
-
this.
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1358
|
+
this.k2t_1 = 'Accept';
|
|
1359
|
+
this.l2t_1 = 'Accept-Charset';
|
|
1360
|
+
this.m2t_1 = 'Accept-Encoding';
|
|
1361
|
+
this.n2t_1 = 'Accept-Language';
|
|
1362
|
+
this.o2t_1 = 'Accept-Ranges';
|
|
1363
|
+
this.p2t_1 = 'Age';
|
|
1364
|
+
this.q2t_1 = 'Allow';
|
|
1365
|
+
this.r2t_1 = 'ALPN';
|
|
1366
|
+
this.s2t_1 = 'Authentication-Info';
|
|
1367
|
+
this.t2t_1 = 'Authorization';
|
|
1368
|
+
this.u2t_1 = 'Cache-Control';
|
|
1369
|
+
this.v2t_1 = 'Connection';
|
|
1370
|
+
this.w2t_1 = 'Content-Disposition';
|
|
1371
|
+
this.x2t_1 = 'Content-Encoding';
|
|
1372
|
+
this.y2t_1 = 'Content-Language';
|
|
1373
|
+
this.z2t_1 = 'Content-Length';
|
|
1374
|
+
this.a2u_1 = 'Content-Location';
|
|
1375
|
+
this.b2u_1 = 'Content-Range';
|
|
1376
|
+
this.c2u_1 = 'Content-Type';
|
|
1377
|
+
this.d2u_1 = 'Cookie';
|
|
1378
|
+
this.e2u_1 = 'DASL';
|
|
1379
|
+
this.f2u_1 = 'Date';
|
|
1380
|
+
this.g2u_1 = 'DAV';
|
|
1381
|
+
this.h2u_1 = 'Depth';
|
|
1382
|
+
this.i2u_1 = 'Destination';
|
|
1383
|
+
this.j2u_1 = 'ETag';
|
|
1384
|
+
this.k2u_1 = 'Expect';
|
|
1385
|
+
this.l2u_1 = 'Expires';
|
|
1386
|
+
this.m2u_1 = 'From';
|
|
1387
|
+
this.n2u_1 = 'Forwarded';
|
|
1388
|
+
this.o2u_1 = 'Host';
|
|
1389
|
+
this.p2u_1 = 'HTTP2-Settings';
|
|
1390
|
+
this.q2u_1 = 'If';
|
|
1391
|
+
this.r2u_1 = 'If-Match';
|
|
1392
|
+
this.s2u_1 = 'If-Modified-Since';
|
|
1393
|
+
this.t2u_1 = 'If-None-Match';
|
|
1394
|
+
this.u2u_1 = 'If-Range';
|
|
1395
|
+
this.v2u_1 = 'If-Schedule-Tag-Match';
|
|
1396
|
+
this.w2u_1 = 'If-Unmodified-Since';
|
|
1397
|
+
this.x2u_1 = 'Last-Modified';
|
|
1398
|
+
this.y2u_1 = 'Location';
|
|
1399
|
+
this.z2u_1 = 'Lock-Token';
|
|
1400
|
+
this.a2v_1 = 'Link';
|
|
1401
|
+
this.b2v_1 = 'Max-Forwards';
|
|
1402
|
+
this.c2v_1 = 'MIME-Version';
|
|
1403
|
+
this.d2v_1 = 'Ordering-Type';
|
|
1404
|
+
this.e2v_1 = 'Origin';
|
|
1405
|
+
this.f2v_1 = 'Overwrite';
|
|
1406
|
+
this.g2v_1 = 'Position';
|
|
1407
|
+
this.h2v_1 = 'Pragma';
|
|
1408
|
+
this.i2v_1 = 'Prefer';
|
|
1409
|
+
this.j2v_1 = 'Preference-Applied';
|
|
1410
|
+
this.k2v_1 = 'Proxy-Authenticate';
|
|
1411
|
+
this.l2v_1 = 'Proxy-Authentication-Info';
|
|
1412
|
+
this.m2v_1 = 'Proxy-Authorization';
|
|
1413
|
+
this.n2v_1 = 'Public-Key-Pins';
|
|
1414
|
+
this.o2v_1 = 'Public-Key-Pins-Report-Only';
|
|
1415
|
+
this.p2v_1 = 'Range';
|
|
1416
|
+
this.q2v_1 = 'Referer';
|
|
1417
|
+
this.r2v_1 = 'Retry-After';
|
|
1418
|
+
this.s2v_1 = 'Schedule-Reply';
|
|
1419
|
+
this.t2v_1 = 'Schedule-Tag';
|
|
1420
|
+
this.u2v_1 = 'Sec-WebSocket-Accept';
|
|
1421
|
+
this.v2v_1 = 'Sec-WebSocket-Extensions';
|
|
1422
|
+
this.w2v_1 = 'Sec-WebSocket-Key';
|
|
1423
|
+
this.x2v_1 = 'Sec-WebSocket-Protocol';
|
|
1424
|
+
this.y2v_1 = 'Sec-WebSocket-Version';
|
|
1425
|
+
this.z2v_1 = 'Server';
|
|
1426
|
+
this.a2w_1 = 'Set-Cookie';
|
|
1427
|
+
this.b2w_1 = 'SLUG';
|
|
1428
|
+
this.c2w_1 = 'Strict-Transport-Security';
|
|
1429
|
+
this.d2w_1 = 'TE';
|
|
1430
|
+
this.e2w_1 = 'Timeout';
|
|
1431
|
+
this.f2w_1 = 'Trailer';
|
|
1432
|
+
this.g2w_1 = 'Transfer-Encoding';
|
|
1433
|
+
this.h2w_1 = 'Upgrade';
|
|
1434
|
+
this.i2w_1 = 'User-Agent';
|
|
1435
|
+
this.j2w_1 = 'Vary';
|
|
1436
|
+
this.k2w_1 = 'Via';
|
|
1437
|
+
this.l2w_1 = 'Warning';
|
|
1438
|
+
this.m2w_1 = 'WWW-Authenticate';
|
|
1439
|
+
this.n2w_1 = 'Access-Control-Allow-Origin';
|
|
1440
|
+
this.o2w_1 = 'Access-Control-Allow-Methods';
|
|
1441
|
+
this.p2w_1 = 'Access-Control-Allow-Credentials';
|
|
1442
|
+
this.q2w_1 = 'Access-Control-Allow-Headers';
|
|
1443
|
+
this.r2w_1 = 'Access-Control-Request-Method';
|
|
1444
|
+
this.s2w_1 = 'Access-Control-Request-Headers';
|
|
1445
|
+
this.t2w_1 = 'Access-Control-Expose-Headers';
|
|
1446
|
+
this.u2w_1 = 'Access-Control-Max-Age';
|
|
1447
|
+
this.v2w_1 = 'X-Http-Method-Override';
|
|
1448
|
+
this.w2w_1 = 'X-Forwarded-Host';
|
|
1449
|
+
this.x2w_1 = 'X-Forwarded-Server';
|
|
1450
|
+
this.y2w_1 = 'X-Forwarded-Proto';
|
|
1451
|
+
this.z2w_1 = 'X-Forwarded-For';
|
|
1452
|
+
this.a2x_1 = 'X-Forwarded-Port';
|
|
1453
|
+
this.b2x_1 = 'X-Request-ID';
|
|
1454
|
+
this.c2x_1 = 'X-Correlation-ID';
|
|
1455
|
+
this.d2x_1 = 'X-Total-Count';
|
|
1453
1456
|
var tmp = this;
|
|
1454
1457
|
// Inline function 'kotlin.arrayOf' call
|
|
1455
1458
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1456
1459
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1457
|
-
tmp.
|
|
1458
|
-
this.
|
|
1460
|
+
tmp.e2x_1 = [this.g2w_1, this.h2w_1];
|
|
1461
|
+
this.f2x_1 = asList(this.e2x_1);
|
|
1459
1462
|
}
|
|
1460
|
-
protoOf(HttpHeaders).
|
|
1463
|
+
protoOf(HttpHeaders).g2x = function (name) {
|
|
1461
1464
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1462
1465
|
var index = 0;
|
|
1463
1466
|
var inductionVariable = 0;
|
|
@@ -1471,7 +1474,7 @@
|
|
|
1471
1474
|
}
|
|
1472
1475
|
}
|
|
1473
1476
|
};
|
|
1474
|
-
protoOf(HttpHeaders).
|
|
1477
|
+
protoOf(HttpHeaders).h2x = function (value) {
|
|
1475
1478
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1476
1479
|
var index = 0;
|
|
1477
1480
|
var inductionVariable = 0;
|
|
@@ -1491,6 +1494,10 @@
|
|
|
1491
1494
|
new HttpHeaders();
|
|
1492
1495
|
return HttpHeaders_instance;
|
|
1493
1496
|
}
|
|
1497
|
+
function UnsafeHeaderException(header) {
|
|
1498
|
+
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1499
|
+
captureStack(this, UnsafeHeaderException);
|
|
1500
|
+
}
|
|
1494
1501
|
function isDelimiter(ch) {
|
|
1495
1502
|
return contains('"(),/:;<=>?@[\\]{}', ch);
|
|
1496
1503
|
}
|
|
@@ -1501,8 +1508,8 @@
|
|
|
1501
1508
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1502
1509
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1503
1510
|
captureStack(this, IllegalHeaderNameException);
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1511
|
+
this.j2x_1 = headerName;
|
|
1512
|
+
this.k2x_1 = position;
|
|
1506
1513
|
}
|
|
1507
1514
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1508
1515
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1511,43 +1518,39 @@
|
|
|
1511
1518
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1512
1519
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1513
1520
|
captureStack(this, IllegalHeaderValueException);
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1516
|
-
}
|
|
1517
|
-
function UnsafeHeaderException(header) {
|
|
1518
|
-
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1519
|
-
captureStack(this, UnsafeHeaderException);
|
|
1521
|
+
this.l2x_1 = headerValue;
|
|
1522
|
+
this.m2x_1 = position;
|
|
1520
1523
|
}
|
|
1521
1524
|
function contentLength(_this__u8e3s4) {
|
|
1522
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1525
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2x().q2k(HttpHeaders_getInstance().z2t_1);
|
|
1523
1526
|
return tmp0_safe_receiver == null ? null : toLong(tmp0_safe_receiver);
|
|
1524
1527
|
}
|
|
1525
|
-
function charset_0(_this__u8e3s4) {
|
|
1526
|
-
var tmp0_safe_receiver = contentType_0(_this__u8e3s4);
|
|
1527
|
-
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1528
|
-
}
|
|
1529
1528
|
function contentType(_this__u8e3s4) {
|
|
1530
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1529
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2x().q2k(HttpHeaders_getInstance().c2u_1);
|
|
1531
1530
|
var tmp;
|
|
1532
1531
|
if (tmp0_safe_receiver == null) {
|
|
1533
1532
|
tmp = null;
|
|
1534
1533
|
} else {
|
|
1535
1534
|
// Inline function 'kotlin.let' call
|
|
1536
|
-
tmp = Companion_getInstance().
|
|
1535
|
+
tmp = Companion_getInstance().hm(tmp0_safe_receiver);
|
|
1537
1536
|
}
|
|
1538
1537
|
return tmp;
|
|
1539
1538
|
}
|
|
1540
1539
|
function contentType_0(_this__u8e3s4) {
|
|
1541
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1540
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2x().q2k(HttpHeaders_getInstance().c2u_1);
|
|
1542
1541
|
var tmp;
|
|
1543
1542
|
if (tmp0_safe_receiver == null) {
|
|
1544
1543
|
tmp = null;
|
|
1545
1544
|
} else {
|
|
1546
1545
|
// Inline function 'kotlin.let' call
|
|
1547
|
-
tmp = Companion_getInstance().
|
|
1546
|
+
tmp = Companion_getInstance().hm(tmp0_safe_receiver);
|
|
1548
1547
|
}
|
|
1549
1548
|
return tmp;
|
|
1550
1549
|
}
|
|
1550
|
+
function charset_0(_this__u8e3s4) {
|
|
1551
|
+
var tmp0_safe_receiver = contentType(_this__u8e3s4);
|
|
1552
|
+
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1553
|
+
}
|
|
1551
1554
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1552
1555
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1553
1556
|
return REQUESTS_WITHOUT_BODY;
|
|
@@ -1555,14 +1558,14 @@
|
|
|
1555
1558
|
var REQUESTS_WITHOUT_BODY;
|
|
1556
1559
|
function Companion_2() {
|
|
1557
1560
|
Companion_instance_2 = this;
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1561
|
+
this.o2x_1 = new HttpMethod('GET');
|
|
1562
|
+
this.p2x_1 = new HttpMethod('POST');
|
|
1563
|
+
this.q2x_1 = new HttpMethod('PUT');
|
|
1564
|
+
this.r2x_1 = new HttpMethod('PATCH');
|
|
1565
|
+
this.s2x_1 = new HttpMethod('DELETE');
|
|
1566
|
+
this.t2x_1 = new HttpMethod('HEAD');
|
|
1567
|
+
this.u2x_1 = new HttpMethod('OPTIONS');
|
|
1568
|
+
this.v2x_1 = listOf([this.o2x_1, this.p2x_1, this.q2x_1, this.r2x_1, this.s2x_1, this.t2x_1, this.u2x_1]);
|
|
1566
1569
|
}
|
|
1567
1570
|
var Companion_instance_2;
|
|
1568
1571
|
function Companion_getInstance_2() {
|
|
@@ -1572,13 +1575,13 @@
|
|
|
1572
1575
|
}
|
|
1573
1576
|
function HttpMethod(value) {
|
|
1574
1577
|
Companion_getInstance_2();
|
|
1575
|
-
this.
|
|
1578
|
+
this.w2x_1 = value;
|
|
1576
1579
|
}
|
|
1577
1580
|
protoOf(HttpMethod).toString = function () {
|
|
1578
|
-
return this.
|
|
1581
|
+
return this.w2x_1;
|
|
1579
1582
|
};
|
|
1580
1583
|
protoOf(HttpMethod).hashCode = function () {
|
|
1581
|
-
return getStringHashCode(this.
|
|
1584
|
+
return getStringHashCode(this.w2x_1);
|
|
1582
1585
|
};
|
|
1583
1586
|
protoOf(HttpMethod).equals = function (other) {
|
|
1584
1587
|
if (this === other)
|
|
@@ -1586,28 +1589,28 @@
|
|
|
1586
1589
|
if (!(other instanceof HttpMethod))
|
|
1587
1590
|
return false;
|
|
1588
1591
|
var tmp0_other_with_cast = other instanceof HttpMethod ? other : THROW_CCE();
|
|
1589
|
-
if (!(this.
|
|
1592
|
+
if (!(this.w2x_1 === tmp0_other_with_cast.w2x_1))
|
|
1590
1593
|
return false;
|
|
1591
1594
|
return true;
|
|
1592
1595
|
};
|
|
1593
1596
|
function get_supportsRequestBody(_this__u8e3s4) {
|
|
1594
1597
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1595
|
-
return !get_REQUESTS_WITHOUT_BODY().
|
|
1598
|
+
return !get_REQUESTS_WITHOUT_BODY().u1(_this__u8e3s4);
|
|
1596
1599
|
}
|
|
1597
1600
|
var properties_initialized_HttpMethod_kt_ogor3f;
|
|
1598
1601
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1599
1602
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1600
1603
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1601
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1604
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().o2x_1, Companion_getInstance_2().t2x_1, Companion_getInstance_2().u2x_1, new HttpMethod('TRACE')]);
|
|
1602
1605
|
}
|
|
1603
1606
|
}
|
|
1604
1607
|
function Companion_3() {
|
|
1605
1608
|
Companion_instance_3 = this;
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1609
|
+
this.x2x_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1610
|
+
this.y2x_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1611
|
+
this.z2x_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1612
|
+
this.a2y_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1613
|
+
this.b2y_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1611
1614
|
}
|
|
1612
1615
|
var Companion_instance_3;
|
|
1613
1616
|
function Companion_getInstance_3() {
|
|
@@ -1617,17 +1620,17 @@
|
|
|
1617
1620
|
}
|
|
1618
1621
|
function HttpProtocolVersion(name, major, minor) {
|
|
1619
1622
|
Companion_getInstance_3();
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
+
this.c2y_1 = name;
|
|
1624
|
+
this.d2y_1 = major;
|
|
1625
|
+
this.e2y_1 = minor;
|
|
1623
1626
|
}
|
|
1624
1627
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1625
|
-
return this.
|
|
1628
|
+
return this.c2y_1 + '/' + this.d2y_1 + '.' + this.e2y_1;
|
|
1626
1629
|
};
|
|
1627
1630
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1628
|
-
var result = getStringHashCode(this.
|
|
1629
|
-
result = imul(result, 31) + this.
|
|
1630
|
-
result = imul(result, 31) + this.
|
|
1631
|
+
var result = getStringHashCode(this.c2y_1);
|
|
1632
|
+
result = imul(result, 31) + this.d2y_1 | 0;
|
|
1633
|
+
result = imul(result, 31) + this.e2y_1 | 0;
|
|
1631
1634
|
return result;
|
|
1632
1635
|
};
|
|
1633
1636
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1636,83 +1639,83 @@
|
|
|
1636
1639
|
if (!(other instanceof HttpProtocolVersion))
|
|
1637
1640
|
return false;
|
|
1638
1641
|
var tmp0_other_with_cast = other instanceof HttpProtocolVersion ? other : THROW_CCE();
|
|
1639
|
-
if (!(this.
|
|
1642
|
+
if (!(this.c2y_1 === tmp0_other_with_cast.c2y_1))
|
|
1640
1643
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1644
|
+
if (!(this.d2y_1 === tmp0_other_with_cast.d2y_1))
|
|
1642
1645
|
return false;
|
|
1643
|
-
if (!(this.
|
|
1646
|
+
if (!(this.e2y_1 === tmp0_other_with_cast.e2y_1))
|
|
1644
1647
|
return false;
|
|
1645
1648
|
return true;
|
|
1646
1649
|
};
|
|
1647
1650
|
function Companion_4() {
|
|
1648
1651
|
Companion_instance_4 = this;
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1652
|
+
this.f2y_1 = new HttpStatusCode(100, 'Continue');
|
|
1653
|
+
this.g2y_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1654
|
+
this.h2y_1 = new HttpStatusCode(102, 'Processing');
|
|
1655
|
+
this.i2y_1 = new HttpStatusCode(200, 'OK');
|
|
1656
|
+
this.j2y_1 = new HttpStatusCode(201, 'Created');
|
|
1657
|
+
this.k2y_1 = new HttpStatusCode(202, 'Accepted');
|
|
1658
|
+
this.l2y_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1659
|
+
this.m2y_1 = new HttpStatusCode(204, 'No Content');
|
|
1660
|
+
this.n2y_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1661
|
+
this.o2y_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1662
|
+
this.p2y_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1663
|
+
this.q2y_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1664
|
+
this.r2y_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1665
|
+
this.s2y_1 = new HttpStatusCode(302, 'Found');
|
|
1666
|
+
this.t2y_1 = new HttpStatusCode(303, 'See Other');
|
|
1667
|
+
this.u2y_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1668
|
+
this.v2y_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1669
|
+
this.w2y_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1670
|
+
this.x2y_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1671
|
+
this.y2y_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1672
|
+
this.z2y_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1673
|
+
this.a2z_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1674
|
+
this.b2z_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1675
|
+
this.c2z_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1676
|
+
this.d2z_1 = new HttpStatusCode(404, 'Not Found');
|
|
1677
|
+
this.e2z_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1678
|
+
this.f2z_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1679
|
+
this.g2z_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1680
|
+
this.h2z_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1681
|
+
this.i2z_1 = new HttpStatusCode(409, 'Conflict');
|
|
1682
|
+
this.j2z_1 = new HttpStatusCode(410, 'Gone');
|
|
1683
|
+
this.k2z_1 = new HttpStatusCode(411, 'Length Required');
|
|
1684
|
+
this.l2z_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1685
|
+
this.m2z_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1686
|
+
this.n2z_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1687
|
+
this.o2z_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1688
|
+
this.p2z_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1689
|
+
this.q2z_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1690
|
+
this.r2z_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1691
|
+
this.s2z_1 = new HttpStatusCode(423, 'Locked');
|
|
1692
|
+
this.t2z_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1693
|
+
this.u2z_1 = new HttpStatusCode(425, 'Too Early');
|
|
1694
|
+
this.v2z_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1695
|
+
this.w2z_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1696
|
+
this.x2z_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1697
|
+
this.y2z_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1698
|
+
this.z2z_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1699
|
+
this.a30_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1700
|
+
this.b30_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1701
|
+
this.c30_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1702
|
+
this.d30_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1703
|
+
this.e30_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1704
|
+
this.f30_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1705
|
+
this.g30_1 = allStatusCodes();
|
|
1703
1706
|
var tmp = this;
|
|
1704
1707
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1705
|
-
var this_0 = this.
|
|
1708
|
+
var this_0 = this.g30_1;
|
|
1706
1709
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1707
1710
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1708
1711
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1709
|
-
var _iterator__ex2g4s = this_0.
|
|
1710
|
-
while (_iterator__ex2g4s.
|
|
1711
|
-
var element = _iterator__ex2g4s.
|
|
1712
|
-
var tmp$ret$0 = element.
|
|
1713
|
-
destination.
|
|
1712
|
+
var _iterator__ex2g4s = this_0.r();
|
|
1713
|
+
while (_iterator__ex2g4s.s()) {
|
|
1714
|
+
var element = _iterator__ex2g4s.t();
|
|
1715
|
+
var tmp$ret$0 = element.i30_1;
|
|
1716
|
+
destination.g2(tmp$ret$0, element);
|
|
1714
1717
|
}
|
|
1715
|
-
tmp.
|
|
1718
|
+
tmp.h30_1 = destination;
|
|
1716
1719
|
}
|
|
1717
1720
|
var Companion_instance_4;
|
|
1718
1721
|
function Companion_getInstance_4() {
|
|
@@ -1722,36 +1725,36 @@
|
|
|
1722
1725
|
}
|
|
1723
1726
|
function HttpStatusCode(value, description) {
|
|
1724
1727
|
Companion_getInstance_4();
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1728
|
+
this.i30_1 = value;
|
|
1729
|
+
this.j30_1 = description;
|
|
1727
1730
|
}
|
|
1728
1731
|
protoOf(HttpStatusCode).toString = function () {
|
|
1729
|
-
return '' + this.
|
|
1732
|
+
return '' + this.i30_1 + ' ' + this.j30_1;
|
|
1730
1733
|
};
|
|
1731
1734
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1732
1735
|
var tmp;
|
|
1733
1736
|
if (other instanceof HttpStatusCode) {
|
|
1734
|
-
tmp = other.
|
|
1737
|
+
tmp = other.i30_1 === this.i30_1;
|
|
1735
1738
|
} else {
|
|
1736
1739
|
tmp = false;
|
|
1737
1740
|
}
|
|
1738
1741
|
return tmp;
|
|
1739
1742
|
};
|
|
1740
1743
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1741
|
-
return this.
|
|
1744
|
+
return this.i30_1;
|
|
1742
1745
|
};
|
|
1743
|
-
protoOf(HttpStatusCode).
|
|
1744
|
-
return this.
|
|
1746
|
+
protoOf(HttpStatusCode).k30 = function (other) {
|
|
1747
|
+
return this.i30_1 - other.i30_1 | 0;
|
|
1745
1748
|
};
|
|
1746
1749
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1747
|
-
return this.
|
|
1750
|
+
return this.k30(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1748
1751
|
};
|
|
1749
1752
|
function allStatusCodes() {
|
|
1750
|
-
return listOf([Companion_getInstance_4().
|
|
1753
|
+
return listOf([Companion_getInstance_4().f2y_1, Companion_getInstance_4().g2y_1, Companion_getInstance_4().h2y_1, Companion_getInstance_4().i2y_1, Companion_getInstance_4().j2y_1, Companion_getInstance_4().k2y_1, Companion_getInstance_4().l2y_1, Companion_getInstance_4().m2y_1, Companion_getInstance_4().n2y_1, Companion_getInstance_4().o2y_1, Companion_getInstance_4().p2y_1, Companion_getInstance_4().q2y_1, Companion_getInstance_4().r2y_1, Companion_getInstance_4().s2y_1, Companion_getInstance_4().t2y_1, Companion_getInstance_4().u2y_1, Companion_getInstance_4().v2y_1, Companion_getInstance_4().w2y_1, Companion_getInstance_4().x2y_1, Companion_getInstance_4().y2y_1, Companion_getInstance_4().z2y_1, Companion_getInstance_4().a2z_1, Companion_getInstance_4().b2z_1, Companion_getInstance_4().c2z_1, Companion_getInstance_4().d2z_1, Companion_getInstance_4().e2z_1, Companion_getInstance_4().f2z_1, Companion_getInstance_4().g2z_1, Companion_getInstance_4().h2z_1, Companion_getInstance_4().i2z_1, Companion_getInstance_4().j2z_1, Companion_getInstance_4().k2z_1, Companion_getInstance_4().l2z_1, Companion_getInstance_4().m2z_1, Companion_getInstance_4().n2z_1, Companion_getInstance_4().o2z_1, Companion_getInstance_4().p2z_1, Companion_getInstance_4().q2z_1, Companion_getInstance_4().r2z_1, Companion_getInstance_4().s2z_1, Companion_getInstance_4().t2z_1, Companion_getInstance_4().u2z_1, Companion_getInstance_4().v2z_1, Companion_getInstance_4().w2z_1, Companion_getInstance_4().x2z_1, Companion_getInstance_4().y2z_1, Companion_getInstance_4().z2z_1, Companion_getInstance_4().a30_1, Companion_getInstance_4().b30_1, Companion_getInstance_4().c30_1, Companion_getInstance_4().d30_1, Companion_getInstance_4().e30_1, Companion_getInstance_4().f30_1]);
|
|
1751
1754
|
}
|
|
1752
1755
|
function Companion_5() {
|
|
1753
1756
|
Companion_instance_5 = this;
|
|
1754
|
-
this.
|
|
1757
|
+
this.l30_1 = EmptyParameters_instance;
|
|
1755
1758
|
}
|
|
1756
1759
|
var Companion_instance_5;
|
|
1757
1760
|
function Companion_getInstance_5() {
|
|
@@ -1763,28 +1766,28 @@
|
|
|
1763
1766
|
}
|
|
1764
1767
|
function EmptyParameters() {
|
|
1765
1768
|
}
|
|
1766
|
-
protoOf(EmptyParameters).
|
|
1769
|
+
protoOf(EmptyParameters).b2m = function () {
|
|
1767
1770
|
return true;
|
|
1768
1771
|
};
|
|
1769
|
-
protoOf(EmptyParameters).
|
|
1772
|
+
protoOf(EmptyParameters).c2m = function (name) {
|
|
1770
1773
|
return null;
|
|
1771
1774
|
};
|
|
1772
|
-
protoOf(EmptyParameters).
|
|
1775
|
+
protoOf(EmptyParameters).d2m = function () {
|
|
1773
1776
|
return emptySet();
|
|
1774
1777
|
};
|
|
1775
|
-
protoOf(EmptyParameters).
|
|
1778
|
+
protoOf(EmptyParameters).z2l = function () {
|
|
1776
1779
|
return emptySet();
|
|
1777
1780
|
};
|
|
1778
|
-
protoOf(EmptyParameters).
|
|
1781
|
+
protoOf(EmptyParameters).j = function () {
|
|
1779
1782
|
return true;
|
|
1780
1783
|
};
|
|
1781
1784
|
protoOf(EmptyParameters).toString = function () {
|
|
1782
|
-
return 'Parameters ' + toString(this.
|
|
1785
|
+
return 'Parameters ' + toString(this.z2l());
|
|
1783
1786
|
};
|
|
1784
1787
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1785
1788
|
var tmp;
|
|
1786
1789
|
if (!(other == null) ? isInterface(other, Parameters) : false) {
|
|
1787
|
-
tmp = other.
|
|
1790
|
+
tmp = other.j();
|
|
1788
1791
|
} else {
|
|
1789
1792
|
tmp = false;
|
|
1790
1793
|
}
|
|
@@ -1802,15 +1805,15 @@
|
|
|
1802
1805
|
size = size === VOID ? 8 : size;
|
|
1803
1806
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1804
1807
|
}
|
|
1805
|
-
protoOf(ParametersBuilderImpl).
|
|
1806
|
-
return new ParametersImpl(this.
|
|
1808
|
+
protoOf(ParametersBuilderImpl).j2t = function () {
|
|
1809
|
+
return new ParametersImpl(this.g2m_1);
|
|
1807
1810
|
};
|
|
1808
1811
|
function ParametersImpl(values) {
|
|
1809
1812
|
values = values === VOID ? emptyMap() : values;
|
|
1810
1813
|
StringValuesImpl.call(this, true, values);
|
|
1811
1814
|
}
|
|
1812
1815
|
protoOf(ParametersImpl).toString = function () {
|
|
1813
|
-
return 'Parameters ' + toString(this.
|
|
1816
|
+
return 'Parameters ' + toString(this.z2l());
|
|
1814
1817
|
};
|
|
1815
1818
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1816
1819
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1818,14 +1821,14 @@
|
|
|
1818
1821
|
decode = decode === VOID ? true : decode;
|
|
1819
1822
|
var tmp;
|
|
1820
1823
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1821
|
-
tmp = Companion_getInstance_5().
|
|
1824
|
+
tmp = Companion_getInstance_5().l30_1;
|
|
1822
1825
|
} else {
|
|
1823
1826
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1824
1827
|
Companion_getInstance_5();
|
|
1825
1828
|
// Inline function 'kotlin.apply' call
|
|
1826
1829
|
var this_0 = ParametersBuilder();
|
|
1827
1830
|
parse(this_0, query, startIndex, limit, decode);
|
|
1828
|
-
tmp = this_0.
|
|
1831
|
+
tmp = this_0.j2t();
|
|
1829
1832
|
}
|
|
1830
1833
|
return tmp;
|
|
1831
1834
|
}
|
|
@@ -1866,7 +1869,7 @@
|
|
|
1866
1869
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1867
1870
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1868
1871
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1869
|
-
_this__u8e3s4.
|
|
1872
|
+
_this__u8e3s4.a2m(name, emptyList());
|
|
1870
1873
|
}
|
|
1871
1874
|
return Unit_instance;
|
|
1872
1875
|
}
|
|
@@ -1877,7 +1880,7 @@
|
|
|
1877
1880
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1878
1881
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1879
1882
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1880
|
-
_this__u8e3s4.
|
|
1883
|
+
_this__u8e3s4.y2l(name_0, value);
|
|
1881
1884
|
}
|
|
1882
1885
|
}
|
|
1883
1886
|
function trimStart(start, end, query) {
|
|
@@ -1897,25 +1900,25 @@
|
|
|
1897
1900
|
function applyOrigin($this) {
|
|
1898
1901
|
var tmp;
|
|
1899
1902
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1900
|
-
var this_0 = $this.
|
|
1903
|
+
var this_0 = $this.o30_1;
|
|
1901
1904
|
if (charSequenceLength(this_0) > 0) {
|
|
1902
1905
|
tmp = true;
|
|
1903
1906
|
} else {
|
|
1904
|
-
tmp = $this.
|
|
1907
|
+
tmp = $this.a31().y30_1 === 'file';
|
|
1905
1908
|
}
|
|
1906
1909
|
if (tmp)
|
|
1907
1910
|
return Unit_instance;
|
|
1908
|
-
$this.
|
|
1909
|
-
if ($this.
|
|
1910
|
-
$this.
|
|
1911
|
-
if ($this.
|
|
1912
|
-
$this.
|
|
1911
|
+
$this.o30_1 = Companion_getInstance_6().u31_1.b31_1;
|
|
1912
|
+
if ($this.r30_1 == null)
|
|
1913
|
+
$this.r30_1 = Companion_getInstance_6().u31_1.m31_1;
|
|
1914
|
+
if ($this.q30_1 === 0) {
|
|
1915
|
+
$this.w31(Companion_getInstance_6().u31_1.c31_1);
|
|
1913
1916
|
}
|
|
1914
1917
|
}
|
|
1915
1918
|
function Companion_6() {
|
|
1916
1919
|
Companion_instance_6 = this;
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1920
|
+
this.u31_1 = Url_0(get_origin(this));
|
|
1921
|
+
this.v31_1 = 256;
|
|
1919
1922
|
}
|
|
1920
1923
|
var Companion_instance_6;
|
|
1921
1924
|
function Companion_getInstance_6() {
|
|
@@ -1931,150 +1934,129 @@
|
|
|
1931
1934
|
user = user === VOID ? null : user;
|
|
1932
1935
|
password = password === VOID ? null : password;
|
|
1933
1936
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1934
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1937
|
+
parameters = parameters === VOID ? Companion_getInstance_5().l30_1 : parameters;
|
|
1935
1938
|
fragment = fragment === VOID ? '' : fragment;
|
|
1936
1939
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1940
|
-
this.
|
|
1940
|
+
this.o30_1 = host;
|
|
1941
|
+
this.p30_1 = trailingQuery;
|
|
1942
|
+
this.q30_1 = port;
|
|
1943
|
+
this.r30_1 = protocol;
|
|
1941
1944
|
var tmp = this;
|
|
1942
|
-
tmp.
|
|
1945
|
+
tmp.s30_1 = user == null ? null : encodeURLParameter(user);
|
|
1943
1946
|
var tmp_0 = this;
|
|
1944
|
-
tmp_0.
|
|
1945
|
-
this.
|
|
1947
|
+
tmp_0.t30_1 = password == null ? null : encodeURLParameter(password);
|
|
1948
|
+
this.u30_1 = encodeURLQueryComponent(fragment);
|
|
1946
1949
|
var tmp_1 = this;
|
|
1947
1950
|
// Inline function 'kotlin.collections.map' call
|
|
1948
1951
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1949
1952
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(pathSegments, 10));
|
|
1950
|
-
var _iterator__ex2g4s = pathSegments.
|
|
1951
|
-
while (_iterator__ex2g4s.
|
|
1952
|
-
var item = _iterator__ex2g4s.
|
|
1953
|
+
var _iterator__ex2g4s = pathSegments.r();
|
|
1954
|
+
while (_iterator__ex2g4s.s()) {
|
|
1955
|
+
var item = _iterator__ex2g4s.t();
|
|
1953
1956
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1954
|
-
destination.
|
|
1957
|
+
destination.p(tmp$ret$0);
|
|
1955
1958
|
}
|
|
1956
|
-
tmp_1.
|
|
1957
|
-
this.
|
|
1958
|
-
this.
|
|
1959
|
+
tmp_1.v30_1 = destination;
|
|
1960
|
+
this.w30_1 = encodeParameters(parameters);
|
|
1961
|
+
this.x30_1 = new UrlDecodedParametersBuilder(this.w30_1);
|
|
1959
1962
|
}
|
|
1960
|
-
protoOf(URLBuilder).
|
|
1963
|
+
protoOf(URLBuilder).w31 = function (value) {
|
|
1961
1964
|
// Inline function 'kotlin.require' call
|
|
1962
1965
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1963
1966
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1964
1967
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1965
1968
|
}
|
|
1966
|
-
this.
|
|
1969
|
+
this.q30_1 = value;
|
|
1967
1970
|
};
|
|
1968
|
-
protoOf(URLBuilder).
|
|
1969
|
-
this.
|
|
1971
|
+
protoOf(URLBuilder).x31 = function (value) {
|
|
1972
|
+
this.r30_1 = value;
|
|
1970
1973
|
};
|
|
1971
|
-
protoOf(URLBuilder).
|
|
1972
|
-
var tmp0_elvis_lhs = this.
|
|
1973
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1974
|
+
protoOf(URLBuilder).a31 = function () {
|
|
1975
|
+
var tmp0_elvis_lhs = this.r30_1;
|
|
1976
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().y31_1 : tmp0_elvis_lhs;
|
|
1974
1977
|
};
|
|
1975
|
-
protoOf(URLBuilder).
|
|
1978
|
+
protoOf(URLBuilder).e32 = function (value) {
|
|
1976
1979
|
var tmp = this;
|
|
1977
|
-
tmp.
|
|
1980
|
+
tmp.s30_1 = value == null ? null : encodeURLParameter(value);
|
|
1978
1981
|
};
|
|
1979
|
-
protoOf(URLBuilder).
|
|
1980
|
-
var tmp0_safe_receiver = this.
|
|
1982
|
+
protoOf(URLBuilder).f32 = function () {
|
|
1983
|
+
var tmp0_safe_receiver = this.s30_1;
|
|
1981
1984
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1982
1985
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
var tmp0_safe_receiver = this.
|
|
1986
|
+
protoOf(URLBuilder).g32 = function () {
|
|
1987
|
+
var tmp0_safe_receiver = this.t30_1;
|
|
1985
1988
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1986
1989
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1988
|
-
return decodeURLQueryComponent(this.
|
|
1990
|
+
protoOf(URLBuilder).h32 = function () {
|
|
1991
|
+
return decodeURLQueryComponent(this.u30_1);
|
|
1989
1992
|
};
|
|
1990
|
-
protoOf(URLBuilder).
|
|
1993
|
+
protoOf(URLBuilder).i32 = function () {
|
|
1991
1994
|
// Inline function 'kotlin.collections.map' call
|
|
1992
|
-
var this_0 = this.
|
|
1995
|
+
var this_0 = this.v30_1;
|
|
1993
1996
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1994
1997
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1995
|
-
var _iterator__ex2g4s = this_0.
|
|
1996
|
-
while (_iterator__ex2g4s.
|
|
1997
|
-
var item = _iterator__ex2g4s.
|
|
1998
|
+
var _iterator__ex2g4s = this_0.r();
|
|
1999
|
+
while (_iterator__ex2g4s.s()) {
|
|
2000
|
+
var item = _iterator__ex2g4s.t();
|
|
1998
2001
|
var tmp$ret$0 = decodeURLPart(item);
|
|
1999
|
-
destination.
|
|
2002
|
+
destination.p(tmp$ret$0);
|
|
2000
2003
|
}
|
|
2001
2004
|
return destination;
|
|
2002
2005
|
};
|
|
2003
|
-
protoOf(URLBuilder).
|
|
2004
|
-
this.
|
|
2005
|
-
this.
|
|
2006
|
+
protoOf(URLBuilder).j32 = function (value) {
|
|
2007
|
+
this.w30_1 = value;
|
|
2008
|
+
this.x30_1 = new UrlDecodedParametersBuilder(value);
|
|
2006
2009
|
};
|
|
2007
|
-
protoOf(URLBuilder).
|
|
2010
|
+
protoOf(URLBuilder).k32 = function () {
|
|
2008
2011
|
applyOrigin(this);
|
|
2009
2012
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2010
2013
|
};
|
|
2011
2014
|
protoOf(URLBuilder).toString = function () {
|
|
2012
2015
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2013
2016
|
};
|
|
2014
|
-
protoOf(URLBuilder).
|
|
2017
|
+
protoOf(URLBuilder).j2t = function () {
|
|
2015
2018
|
applyOrigin(this);
|
|
2016
|
-
return new Url_1(this.
|
|
2019
|
+
return new Url_1(this.r30_1, this.o30_1, this.q30_1, this.i32(), this.x30_1.j2t(), this.h32(), this.f32(), this.g32(), this.p30_1, this.k32());
|
|
2017
2020
|
};
|
|
2018
2021
|
function get_authority(_this__u8e3s4) {
|
|
2019
2022
|
// Inline function 'kotlin.text.buildString' call
|
|
2020
2023
|
// Inline function 'kotlin.apply' call
|
|
2021
2024
|
var this_0 = StringBuilder_init_$Create$();
|
|
2022
|
-
this_0.
|
|
2023
|
-
this_0.
|
|
2024
|
-
if (!(_this__u8e3s4.
|
|
2025
|
-
this_0.
|
|
2026
|
-
this_0.
|
|
2025
|
+
this_0.f8(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2026
|
+
this_0.f8(_this__u8e3s4.o30_1);
|
|
2027
|
+
if (!(_this__u8e3s4.q30_1 === 0) && !(_this__u8e3s4.q30_1 === _this__u8e3s4.a31().z30_1)) {
|
|
2028
|
+
this_0.f8(':');
|
|
2029
|
+
this_0.f8(_this__u8e3s4.q30_1.toString());
|
|
2027
2030
|
}
|
|
2028
2031
|
return this_0.toString();
|
|
2029
2032
|
}
|
|
2030
|
-
function path(_this__u8e3s4, path) {
|
|
2031
|
-
var tmp = _this__u8e3s4;
|
|
2032
|
-
// Inline function 'kotlin.collections.map' call
|
|
2033
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
2034
|
-
var destination = ArrayList_init_$Create$(path.length);
|
|
2035
|
-
var inductionVariable = 0;
|
|
2036
|
-
var last = path.length;
|
|
2037
|
-
while (inductionVariable < last) {
|
|
2038
|
-
var item = path[inductionVariable];
|
|
2039
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
2040
|
-
var tmp$ret$0 = encodeURLPath(item);
|
|
2041
|
-
destination.k(tmp$ret$0);
|
|
2042
|
-
}
|
|
2043
|
-
tmp.h34_1 = destination;
|
|
2044
|
-
}
|
|
2045
|
-
function set_encodedPath(_this__u8e3s4, value) {
|
|
2046
|
-
_this__u8e3s4.h34_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2047
|
-
}
|
|
2048
|
-
function get_encodedPath(_this__u8e3s4) {
|
|
2049
|
-
return joinPath(_this__u8e3s4.h34_1);
|
|
2050
|
-
}
|
|
2051
2033
|
function appendTo(_this__u8e3s4, out) {
|
|
2052
|
-
out.
|
|
2053
|
-
switch (_this__u8e3s4.
|
|
2034
|
+
out.q(_this__u8e3s4.a31().y30_1);
|
|
2035
|
+
switch (_this__u8e3s4.a31().y30_1) {
|
|
2054
2036
|
case 'file':
|
|
2055
|
-
appendFile(out, _this__u8e3s4.
|
|
2037
|
+
appendFile(out, _this__u8e3s4.o30_1, get_encodedPath(_this__u8e3s4));
|
|
2056
2038
|
return out;
|
|
2057
2039
|
case 'mailto':
|
|
2058
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2040
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.o30_1);
|
|
2059
2041
|
return out;
|
|
2060
2042
|
case 'about':
|
|
2061
|
-
appendPayload(out, _this__u8e3s4.
|
|
2043
|
+
appendPayload(out, _this__u8e3s4.o30_1);
|
|
2062
2044
|
return out;
|
|
2063
2045
|
case 'tel':
|
|
2064
|
-
appendPayload(out, _this__u8e3s4.
|
|
2046
|
+
appendPayload(out, _this__u8e3s4.o30_1);
|
|
2065
2047
|
return out;
|
|
2066
2048
|
case 'data':
|
|
2067
|
-
appendPayload(out, _this__u8e3s4.
|
|
2049
|
+
appendPayload(out, _this__u8e3s4.o30_1);
|
|
2068
2050
|
return out;
|
|
2069
2051
|
}
|
|
2070
|
-
out.
|
|
2071
|
-
out.
|
|
2072
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2052
|
+
out.q('://');
|
|
2053
|
+
out.q(get_authority(_this__u8e3s4));
|
|
2054
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.w30_1, _this__u8e3s4.p30_1);
|
|
2073
2055
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2074
|
-
var this_0 = _this__u8e3s4.
|
|
2056
|
+
var this_0 = _this__u8e3s4.u30_1;
|
|
2075
2057
|
if (charSequenceLength(this_0) > 0) {
|
|
2076
|
-
out.
|
|
2077
|
-
out.
|
|
2058
|
+
out.g8(_Char___init__impl__6a9atx(35));
|
|
2059
|
+
out.q(_this__u8e3s4.u30_1);
|
|
2078
2060
|
}
|
|
2079
2061
|
return out;
|
|
2080
2062
|
}
|
|
@@ -2082,13 +2064,36 @@
|
|
|
2082
2064
|
// Inline function 'kotlin.text.buildString' call
|
|
2083
2065
|
// Inline function 'kotlin.apply' call
|
|
2084
2066
|
var this_0 = StringBuilder_init_$Create$();
|
|
2085
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2067
|
+
appendUserAndPassword(this_0, _this__u8e3s4.s30_1, _this__u8e3s4.t30_1);
|
|
2086
2068
|
return this_0.toString();
|
|
2087
2069
|
}
|
|
2070
|
+
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
2071
|
+
_this__u8e3s4.q('://');
|
|
2072
|
+
_this__u8e3s4.q(host);
|
|
2073
|
+
if (!startsWith_0(encodedPath, _Char___init__impl__6a9atx(47))) {
|
|
2074
|
+
_this__u8e3s4.g8(_Char___init__impl__6a9atx(47));
|
|
2075
|
+
}
|
|
2076
|
+
_this__u8e3s4.q(encodedPath);
|
|
2077
|
+
}
|
|
2078
|
+
function set_encodedPath(_this__u8e3s4, value) {
|
|
2079
|
+
_this__u8e3s4.v30_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2080
|
+
}
|
|
2081
|
+
function get_encodedPath(_this__u8e3s4) {
|
|
2082
|
+
return joinPath(_this__u8e3s4.v30_1);
|
|
2083
|
+
}
|
|
2084
|
+
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2085
|
+
_this__u8e3s4.q(':');
|
|
2086
|
+
_this__u8e3s4.q(encodedUser);
|
|
2087
|
+
_this__u8e3s4.q(host);
|
|
2088
|
+
}
|
|
2089
|
+
function appendPayload(_this__u8e3s4, host) {
|
|
2090
|
+
_this__u8e3s4.q(':');
|
|
2091
|
+
_this__u8e3s4.q(host);
|
|
2092
|
+
}
|
|
2088
2093
|
function joinPath(_this__u8e3s4) {
|
|
2089
|
-
if (_this__u8e3s4.
|
|
2094
|
+
if (_this__u8e3s4.j())
|
|
2090
2095
|
return '';
|
|
2091
|
-
if (_this__u8e3s4.
|
|
2096
|
+
if (_this__u8e3s4.u() === 1) {
|
|
2092
2097
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2093
2098
|
var this_0 = first_0(_this__u8e3s4);
|
|
2094
2099
|
if (charSequenceLength(this_0) === 0)
|
|
@@ -2097,22 +2102,20 @@
|
|
|
2097
2102
|
}
|
|
2098
2103
|
return joinToString(_this__u8e3s4, '/');
|
|
2099
2104
|
}
|
|
2100
|
-
function
|
|
2101
|
-
_this__u8e3s4
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
+
function path(_this__u8e3s4, path) {
|
|
2106
|
+
var tmp = _this__u8e3s4;
|
|
2107
|
+
// Inline function 'kotlin.collections.map' call
|
|
2108
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2109
|
+
var destination = ArrayList_init_$Create$(path.length);
|
|
2110
|
+
var inductionVariable = 0;
|
|
2111
|
+
var last = path.length;
|
|
2112
|
+
while (inductionVariable < last) {
|
|
2113
|
+
var item = path[inductionVariable];
|
|
2114
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2115
|
+
var tmp$ret$0 = encodeURLPath(item);
|
|
2116
|
+
destination.p(tmp$ret$0);
|
|
2105
2117
|
}
|
|
2106
|
-
|
|
2107
|
-
}
|
|
2108
|
-
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2109
|
-
_this__u8e3s4.l(':');
|
|
2110
|
-
_this__u8e3s4.l(encodedUser);
|
|
2111
|
-
_this__u8e3s4.l(host);
|
|
2112
|
-
}
|
|
2113
|
-
function appendPayload(_this__u8e3s4, host) {
|
|
2114
|
-
_this__u8e3s4.l(':');
|
|
2115
|
-
_this__u8e3s4.l(host);
|
|
2118
|
+
tmp.v30_1 = destination;
|
|
2116
2119
|
}
|
|
2117
2120
|
function get_ROOT_PATH() {
|
|
2118
2121
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2179,20 +2182,20 @@
|
|
|
2179
2182
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2180
2183
|
if (schemeLength > 0) {
|
|
2181
2184
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2182
|
-
_this__u8e3s4.
|
|
2185
|
+
_this__u8e3s4.x31(Companion_getInstance_7().l32(scheme));
|
|
2183
2186
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2184
2187
|
}
|
|
2185
|
-
if (_this__u8e3s4.
|
|
2186
|
-
_this__u8e3s4.
|
|
2188
|
+
if (_this__u8e3s4.a31().y30_1 === 'data') {
|
|
2189
|
+
_this__u8e3s4.o30_1 = substring(urlString, startIndex, endIndex);
|
|
2187
2190
|
return _this__u8e3s4;
|
|
2188
2191
|
}
|
|
2189
2192
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2190
2193
|
startIndex = startIndex + slashCount | 0;
|
|
2191
|
-
if (_this__u8e3s4.
|
|
2194
|
+
if (_this__u8e3s4.a31().y30_1 === 'file') {
|
|
2192
2195
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2193
2196
|
return _this__u8e3s4;
|
|
2194
2197
|
}
|
|
2195
|
-
if (_this__u8e3s4.
|
|
2198
|
+
if (_this__u8e3s4.a31().y30_1 === 'mailto') {
|
|
2196
2199
|
// Inline function 'kotlin.require' call
|
|
2197
2200
|
// Inline function 'kotlin.require' call
|
|
2198
2201
|
if (!(slashCount === 0)) {
|
|
@@ -2202,24 +2205,24 @@
|
|
|
2202
2205
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2203
2206
|
return _this__u8e3s4;
|
|
2204
2207
|
}
|
|
2205
|
-
if (_this__u8e3s4.
|
|
2208
|
+
if (_this__u8e3s4.a31().y30_1 === 'about') {
|
|
2206
2209
|
// Inline function 'kotlin.require' call
|
|
2207
2210
|
// Inline function 'kotlin.require' call
|
|
2208
2211
|
if (!(slashCount === 0)) {
|
|
2209
2212
|
var message_0 = 'Failed requirement.';
|
|
2210
2213
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2211
2214
|
}
|
|
2212
|
-
_this__u8e3s4.
|
|
2215
|
+
_this__u8e3s4.o30_1 = substring(urlString, startIndex, endIndex);
|
|
2213
2216
|
return _this__u8e3s4;
|
|
2214
2217
|
}
|
|
2215
|
-
if (_this__u8e3s4.
|
|
2218
|
+
if (_this__u8e3s4.a31().y30_1 === 'tel') {
|
|
2216
2219
|
// Inline function 'kotlin.require' call
|
|
2217
2220
|
// Inline function 'kotlin.require' call
|
|
2218
2221
|
if (!(slashCount === 0)) {
|
|
2219
2222
|
var message_1 = 'Failed requirement.';
|
|
2220
2223
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2221
2224
|
}
|
|
2222
|
-
_this__u8e3s4.
|
|
2225
|
+
_this__u8e3s4.o30_1 = substring(urlString, startIndex, endIndex);
|
|
2223
2226
|
return _this__u8e3s4;
|
|
2224
2227
|
}
|
|
2225
2228
|
if (slashCount >= 2) {
|
|
@@ -2237,10 +2240,10 @@
|
|
|
2237
2240
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2238
2241
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2239
2242
|
if (!(passwordIndex === -1)) {
|
|
2240
|
-
_this__u8e3s4.
|
|
2241
|
-
_this__u8e3s4.
|
|
2243
|
+
_this__u8e3s4.s30_1 = substring(urlString, startIndex, passwordIndex);
|
|
2244
|
+
_this__u8e3s4.t30_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2242
2245
|
} else {
|
|
2243
|
-
_this__u8e3s4.
|
|
2246
|
+
_this__u8e3s4.s30_1 = substring(urlString, startIndex, delimiter);
|
|
2244
2247
|
}
|
|
2245
2248
|
startIndex = delimiter + 1 | 0;
|
|
2246
2249
|
} else {
|
|
@@ -2251,17 +2254,17 @@
|
|
|
2251
2254
|
}
|
|
2252
2255
|
}
|
|
2253
2256
|
if (startIndex >= endIndex) {
|
|
2254
|
-
_this__u8e3s4.
|
|
2257
|
+
_this__u8e3s4.v30_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2255
2258
|
return _this__u8e3s4;
|
|
2256
2259
|
}
|
|
2257
2260
|
var tmp_0 = _this__u8e3s4;
|
|
2258
2261
|
var tmp_1;
|
|
2259
2262
|
if (slashCount === 0) {
|
|
2260
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
2263
|
+
tmp_1 = dropLast(_this__u8e3s4.v30_1, 1);
|
|
2261
2264
|
} else {
|
|
2262
2265
|
tmp_1 = emptyList();
|
|
2263
2266
|
}
|
|
2264
|
-
tmp_0.
|
|
2267
|
+
tmp_0.v30_1 = tmp_1;
|
|
2265
2268
|
// Inline function 'kotlin.takeIf' call
|
|
2266
2269
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2267
2270
|
var tmp_2;
|
|
@@ -2276,9 +2279,9 @@
|
|
|
2276
2279
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2277
2280
|
var tmp_3;
|
|
2278
2281
|
var tmp_4;
|
|
2279
|
-
if (_this__u8e3s4.
|
|
2282
|
+
if (_this__u8e3s4.v30_1.u() === 1) {
|
|
2280
2283
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2281
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2284
|
+
var this_2 = first_0(_this__u8e3s4.v30_1);
|
|
2282
2285
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2283
2286
|
} else {
|
|
2284
2287
|
tmp_4 = false;
|
|
@@ -2286,12 +2289,12 @@
|
|
|
2286
2289
|
if (tmp_4) {
|
|
2287
2290
|
tmp_3 = emptyList();
|
|
2288
2291
|
} else {
|
|
2289
|
-
tmp_3 = _this__u8e3s4.
|
|
2292
|
+
tmp_3 = _this__u8e3s4.v30_1;
|
|
2290
2293
|
}
|
|
2291
2294
|
var basePath = tmp_3;
|
|
2292
2295
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2293
2296
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2294
|
-
_this__u8e3s4.
|
|
2297
|
+
_this__u8e3s4.v30_1 = plus_0(basePath, relativePath);
|
|
2295
2298
|
startIndex = pathEnd;
|
|
2296
2299
|
}
|
|
2297
2300
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2341,21 +2344,21 @@
|
|
|
2341
2344
|
_init_properties_URLParser_kt__sf11to();
|
|
2342
2345
|
switch (slashCount) {
|
|
2343
2346
|
case 1:
|
|
2344
|
-
_this__u8e3s4.
|
|
2347
|
+
_this__u8e3s4.o30_1 = '';
|
|
2345
2348
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2346
2349
|
break;
|
|
2347
2350
|
case 2:
|
|
2348
2351
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2349
2352
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2350
|
-
_this__u8e3s4.
|
|
2353
|
+
_this__u8e3s4.o30_1 = substring(urlString, startIndex, endIndex);
|
|
2351
2354
|
return Unit_instance;
|
|
2352
2355
|
}
|
|
2353
2356
|
|
|
2354
|
-
_this__u8e3s4.
|
|
2357
|
+
_this__u8e3s4.o30_1 = substring(urlString, startIndex, nextSlash);
|
|
2355
2358
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2356
2359
|
break;
|
|
2357
2360
|
case 3:
|
|
2358
|
-
_this__u8e3s4.
|
|
2361
|
+
_this__u8e3s4.o30_1 = '';
|
|
2359
2362
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2360
2363
|
break;
|
|
2361
2364
|
default:
|
|
@@ -2368,8 +2371,8 @@
|
|
|
2368
2371
|
if (delimiter === -1) {
|
|
2369
2372
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2370
2373
|
}
|
|
2371
|
-
_this__u8e3s4.
|
|
2372
|
-
_this__u8e3s4.
|
|
2374
|
+
_this__u8e3s4.e32(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2375
|
+
_this__u8e3s4.o30_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2373
2376
|
}
|
|
2374
2377
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2375
2378
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2403,19 +2406,19 @@
|
|
|
2403
2406
|
}
|
|
2404
2407
|
var tmp0_elvis_lhs = tmp;
|
|
2405
2408
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2406
|
-
_this__u8e3s4.
|
|
2409
|
+
_this__u8e3s4.o30_1 = substring(urlString, startIndex, colonIndex);
|
|
2407
2410
|
var tmp_0;
|
|
2408
2411
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2409
2412
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2410
2413
|
} else {
|
|
2411
2414
|
tmp_0 = 0;
|
|
2412
2415
|
}
|
|
2413
|
-
_this__u8e3s4.
|
|
2416
|
+
_this__u8e3s4.w31(tmp_0);
|
|
2414
2417
|
}
|
|
2415
2418
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2416
2419
|
_init_properties_URLParser_kt__sf11to();
|
|
2417
2420
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2418
|
-
_this__u8e3s4.
|
|
2421
|
+
_this__u8e3s4.p30_1 = true;
|
|
2419
2422
|
return endIndex;
|
|
2420
2423
|
}
|
|
2421
2424
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2429,18 +2432,18 @@
|
|
|
2429
2432
|
var tmp0_elvis_lhs = tmp;
|
|
2430
2433
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2431
2434
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2432
|
-
rawParameters.
|
|
2435
|
+
rawParameters.e2m(parseQuery$lambda(_this__u8e3s4));
|
|
2433
2436
|
return fragmentStart;
|
|
2434
2437
|
}
|
|
2435
2438
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2436
2439
|
_init_properties_URLParser_kt__sf11to();
|
|
2437
2440
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2438
|
-
_this__u8e3s4.
|
|
2441
|
+
_this__u8e3s4.u30_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2439
2442
|
}
|
|
2440
2443
|
}
|
|
2441
2444
|
function parseQuery$lambda($this_parseQuery) {
|
|
2442
2445
|
return function (key, values) {
|
|
2443
|
-
$this_parseQuery.
|
|
2446
|
+
$this_parseQuery.w30_1.a2m(key, values);
|
|
2444
2447
|
return Unit_instance;
|
|
2445
2448
|
};
|
|
2446
2449
|
}
|
|
@@ -2453,29 +2456,29 @@
|
|
|
2453
2456
|
}
|
|
2454
2457
|
function Companion_7() {
|
|
2455
2458
|
Companion_instance_7 = this;
|
|
2456
|
-
this.
|
|
2457
|
-
this.
|
|
2458
|
-
this.
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2459
|
+
this.y31_1 = new URLProtocol('http', 80);
|
|
2460
|
+
this.z31_1 = new URLProtocol('https', 443);
|
|
2461
|
+
this.a32_1 = new URLProtocol('ws', 80);
|
|
2462
|
+
this.b32_1 = new URLProtocol('wss', 443);
|
|
2463
|
+
this.c32_1 = new URLProtocol('socks', 1080);
|
|
2461
2464
|
var tmp = this;
|
|
2462
2465
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2463
|
-
var this_0 = listOf([this.
|
|
2466
|
+
var this_0 = listOf([this.y31_1, this.z31_1, this.a32_1, this.b32_1, this.c32_1]);
|
|
2464
2467
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2465
2468
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2466
2469
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2467
|
-
var _iterator__ex2g4s = this_0.
|
|
2468
|
-
while (_iterator__ex2g4s.
|
|
2469
|
-
var element = _iterator__ex2g4s.
|
|
2470
|
-
var tmp$ret$0 = element.
|
|
2471
|
-
destination.
|
|
2470
|
+
var _iterator__ex2g4s = this_0.r();
|
|
2471
|
+
while (_iterator__ex2g4s.s()) {
|
|
2472
|
+
var element = _iterator__ex2g4s.t();
|
|
2473
|
+
var tmp$ret$0 = element.y30_1;
|
|
2474
|
+
destination.g2(tmp$ret$0, element);
|
|
2472
2475
|
}
|
|
2473
|
-
tmp.
|
|
2476
|
+
tmp.d32_1 = destination;
|
|
2474
2477
|
}
|
|
2475
|
-
protoOf(Companion_7).
|
|
2478
|
+
protoOf(Companion_7).l32 = function (name) {
|
|
2476
2479
|
// Inline function 'kotlin.let' call
|
|
2477
2480
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2478
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2481
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().d32_1.o2(it);
|
|
2479
2482
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2480
2483
|
};
|
|
2481
2484
|
var Companion_instance_7;
|
|
@@ -2486,9 +2489,9 @@
|
|
|
2486
2489
|
}
|
|
2487
2490
|
function URLProtocol(name, defaultPort) {
|
|
2488
2491
|
Companion_getInstance_7();
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2491
|
-
var tmp0 = this.
|
|
2492
|
+
this.y30_1 = name;
|
|
2493
|
+
this.z30_1 = defaultPort;
|
|
2494
|
+
var tmp0 = this.y30_1;
|
|
2492
2495
|
var tmp$ret$1;
|
|
2493
2496
|
$l$block: {
|
|
2494
2497
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2510,11 +2513,11 @@
|
|
|
2510
2513
|
}
|
|
2511
2514
|
}
|
|
2512
2515
|
protoOf(URLProtocol).toString = function () {
|
|
2513
|
-
return 'URLProtocol(name=' + this.
|
|
2516
|
+
return 'URLProtocol(name=' + this.y30_1 + ', defaultPort=' + this.z30_1 + ')';
|
|
2514
2517
|
};
|
|
2515
2518
|
protoOf(URLProtocol).hashCode = function () {
|
|
2516
|
-
var result = getStringHashCode(this.
|
|
2517
|
-
result = imul(result, 31) + this.
|
|
2519
|
+
var result = getStringHashCode(this.y30_1);
|
|
2520
|
+
result = imul(result, 31) + this.z30_1 | 0;
|
|
2518
2521
|
return result;
|
|
2519
2522
|
};
|
|
2520
2523
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2523,80 +2526,38 @@
|
|
|
2523
2526
|
if (!(other instanceof URLProtocol))
|
|
2524
2527
|
return false;
|
|
2525
2528
|
var tmp0_other_with_cast = other instanceof URLProtocol ? other : THROW_CCE();
|
|
2526
|
-
if (!(this.
|
|
2529
|
+
if (!(this.y30_1 === tmp0_other_with_cast.y30_1))
|
|
2527
2530
|
return false;
|
|
2528
|
-
if (!(this.
|
|
2531
|
+
if (!(this.z30_1 === tmp0_other_with_cast.z30_1))
|
|
2529
2532
|
return false;
|
|
2530
2533
|
return true;
|
|
2531
2534
|
};
|
|
2532
2535
|
function isSecure(_this__u8e3s4) {
|
|
2533
|
-
return _this__u8e3s4.
|
|
2536
|
+
return _this__u8e3s4.y30_1 === 'https' || _this__u8e3s4.y30_1 === 'wss';
|
|
2534
2537
|
}
|
|
2535
2538
|
function isWebsocket(_this__u8e3s4) {
|
|
2536
|
-
return _this__u8e3s4.
|
|
2539
|
+
return _this__u8e3s4.y30_1 === 'ws' || _this__u8e3s4.y30_1 === 'wss';
|
|
2537
2540
|
}
|
|
2538
2541
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2539
|
-
_this__u8e3s4.
|
|
2540
|
-
_this__u8e3s4.
|
|
2541
|
-
_this__u8e3s4.
|
|
2542
|
-
_this__u8e3s4.
|
|
2543
|
-
_this__u8e3s4.
|
|
2544
|
-
_this__u8e3s4.
|
|
2542
|
+
_this__u8e3s4.r30_1 = url.r30_1;
|
|
2543
|
+
_this__u8e3s4.o30_1 = url.o30_1;
|
|
2544
|
+
_this__u8e3s4.w31(url.q30_1);
|
|
2545
|
+
_this__u8e3s4.v30_1 = url.v30_1;
|
|
2546
|
+
_this__u8e3s4.s30_1 = url.s30_1;
|
|
2547
|
+
_this__u8e3s4.t30_1 = url.t30_1;
|
|
2545
2548
|
// Inline function 'kotlin.apply' call
|
|
2546
2549
|
var this_0 = ParametersBuilder();
|
|
2547
|
-
appendAll(this_0, url.
|
|
2548
|
-
_this__u8e3s4.
|
|
2549
|
-
_this__u8e3s4.
|
|
2550
|
-
_this__u8e3s4.
|
|
2550
|
+
appendAll(this_0, url.w30_1);
|
|
2551
|
+
_this__u8e3s4.j32(this_0);
|
|
2552
|
+
_this__u8e3s4.u30_1 = url.u30_1;
|
|
2553
|
+
_this__u8e3s4.p30_1 = url.p30_1;
|
|
2551
2554
|
return _this__u8e3s4;
|
|
2552
2555
|
}
|
|
2553
2556
|
function Url(builder) {
|
|
2554
|
-
return takeFrom_0(new URLBuilder(), builder).
|
|
2555
|
-
}
|
|
2556
|
-
function parseUrl(urlString) {
|
|
2557
|
-
var tmp;
|
|
2558
|
-
try {
|
|
2559
|
-
// Inline function 'kotlin.takeIf' call
|
|
2560
|
-
var this_0 = URLBuilder_0(urlString);
|
|
2561
|
-
var tmp_0;
|
|
2562
|
-
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2563
|
-
var this_1 = this_0.a34_1;
|
|
2564
|
-
if (charSequenceLength(this_1) > 0) {
|
|
2565
|
-
tmp_0 = this_0;
|
|
2566
|
-
} else {
|
|
2567
|
-
tmp_0 = null;
|
|
2568
|
-
}
|
|
2569
|
-
var tmp0_safe_receiver = tmp_0;
|
|
2570
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v2w();
|
|
2571
|
-
} catch ($p) {
|
|
2572
|
-
var tmp_1;
|
|
2573
|
-
if ($p instanceof URLParserException) {
|
|
2574
|
-
var cause = $p;
|
|
2575
|
-
tmp_1 = null;
|
|
2576
|
-
} else {
|
|
2577
|
-
throw $p;
|
|
2578
|
-
}
|
|
2579
|
-
tmp = tmp_1;
|
|
2580
|
-
}
|
|
2581
|
-
return tmp;
|
|
2582
|
-
}
|
|
2583
|
-
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2584
|
-
var tmp0_subject = _this__u8e3s4.o34_1;
|
|
2585
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.z34_1.l34_1 ? _this__u8e3s4.n34_1 : get_hostWithPort(_this__u8e3s4);
|
|
2557
|
+
return takeFrom_0(new URLBuilder(), builder).j2t();
|
|
2586
2558
|
}
|
|
2587
2559
|
function Url_0(urlString) {
|
|
2588
|
-
return URLBuilder_0(urlString).
|
|
2589
|
-
}
|
|
2590
|
-
function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
2591
|
-
if (encodedUser == null) {
|
|
2592
|
-
return Unit_instance;
|
|
2593
|
-
}
|
|
2594
|
-
_this__u8e3s4.y8(encodedUser);
|
|
2595
|
-
if (!(encodedPassword == null)) {
|
|
2596
|
-
_this__u8e3s4.z8(_Char___init__impl__6a9atx(58));
|
|
2597
|
-
_this__u8e3s4.y8(encodedPassword);
|
|
2598
|
-
}
|
|
2599
|
-
_this__u8e3s4.y8('@');
|
|
2560
|
+
return URLBuilder_0(urlString).j2t();
|
|
2600
2561
|
}
|
|
2601
2562
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2602
2563
|
var tmp;
|
|
@@ -2607,35 +2568,35 @@
|
|
|
2607
2568
|
tmp = false;
|
|
2608
2569
|
}
|
|
2609
2570
|
if (tmp) {
|
|
2610
|
-
_this__u8e3s4.
|
|
2571
|
+
_this__u8e3s4.g8(_Char___init__impl__6a9atx(47));
|
|
2611
2572
|
}
|
|
2612
|
-
_this__u8e3s4.
|
|
2613
|
-
if (!encodedQueryParameters.
|
|
2614
|
-
_this__u8e3s4.
|
|
2573
|
+
_this__u8e3s4.q(encodedPath);
|
|
2574
|
+
if (!encodedQueryParameters.j() || trailingQuery) {
|
|
2575
|
+
_this__u8e3s4.q('?');
|
|
2615
2576
|
}
|
|
2616
2577
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2617
|
-
var tmp0 = encodedQueryParameters.
|
|
2578
|
+
var tmp0 = encodedQueryParameters.z2l();
|
|
2618
2579
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2619
2580
|
var destination = ArrayList_init_$Create$_0();
|
|
2620
|
-
var _iterator__ex2g4s = tmp0.
|
|
2621
|
-
while (_iterator__ex2g4s.
|
|
2622
|
-
var element = _iterator__ex2g4s.
|
|
2581
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
2582
|
+
while (_iterator__ex2g4s.s()) {
|
|
2583
|
+
var element = _iterator__ex2g4s.t();
|
|
2623
2584
|
// Inline function 'kotlin.collections.component1' call
|
|
2624
|
-
var key = element.
|
|
2585
|
+
var key = element.z();
|
|
2625
2586
|
// Inline function 'kotlin.collections.component2' call
|
|
2626
|
-
var value = element.
|
|
2587
|
+
var value = element.a1();
|
|
2627
2588
|
var tmp_0;
|
|
2628
|
-
if (value.
|
|
2589
|
+
if (value.j()) {
|
|
2629
2590
|
tmp_0 = listOf_0(to(key, null));
|
|
2630
2591
|
} else {
|
|
2631
2592
|
// Inline function 'kotlin.collections.map' call
|
|
2632
2593
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2633
2594
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(value, 10));
|
|
2634
|
-
var _iterator__ex2g4s_0 = value.
|
|
2635
|
-
while (_iterator__ex2g4s_0.
|
|
2636
|
-
var item = _iterator__ex2g4s_0.
|
|
2595
|
+
var _iterator__ex2g4s_0 = value.r();
|
|
2596
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
2597
|
+
var item = _iterator__ex2g4s_0.t();
|
|
2637
2598
|
var tmp$ret$3 = to(key, item);
|
|
2638
|
-
destination_0.
|
|
2599
|
+
destination_0.p(tmp$ret$3);
|
|
2639
2600
|
}
|
|
2640
2601
|
tmp_0 = destination_0;
|
|
2641
2602
|
}
|
|
@@ -2645,37 +2606,79 @@
|
|
|
2645
2606
|
var tmp_1 = destination;
|
|
2646
2607
|
joinTo(tmp_1, _this__u8e3s4, '&', VOID, VOID, VOID, VOID, appendUrlFullPath$lambda);
|
|
2647
2608
|
}
|
|
2609
|
+
function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
2610
|
+
if (encodedUser == null) {
|
|
2611
|
+
return Unit_instance;
|
|
2612
|
+
}
|
|
2613
|
+
_this__u8e3s4.f8(encodedUser);
|
|
2614
|
+
if (!(encodedPassword == null)) {
|
|
2615
|
+
_this__u8e3s4.g8(_Char___init__impl__6a9atx(58));
|
|
2616
|
+
_this__u8e3s4.f8(encodedPassword);
|
|
2617
|
+
}
|
|
2618
|
+
_this__u8e3s4.f8('@');
|
|
2619
|
+
}
|
|
2648
2620
|
function URLBuilder_0(urlString) {
|
|
2649
2621
|
return takeFrom(new URLBuilder(), urlString);
|
|
2650
2622
|
}
|
|
2623
|
+
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2624
|
+
var tmp0_subject = _this__u8e3s4.c31_1;
|
|
2625
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.n31_1.z30_1 ? _this__u8e3s4.b31_1 : get_hostWithPort(_this__u8e3s4);
|
|
2626
|
+
}
|
|
2651
2627
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2652
|
-
return _this__u8e3s4.
|
|
2628
|
+
return _this__u8e3s4.b31_1 + ':' + _this__u8e3s4.m32();
|
|
2629
|
+
}
|
|
2630
|
+
function parseUrl(urlString) {
|
|
2631
|
+
var tmp;
|
|
2632
|
+
try {
|
|
2633
|
+
// Inline function 'kotlin.takeIf' call
|
|
2634
|
+
var this_0 = URLBuilder_0(urlString);
|
|
2635
|
+
var tmp_0;
|
|
2636
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2637
|
+
var this_1 = this_0.o30_1;
|
|
2638
|
+
if (charSequenceLength(this_1) > 0) {
|
|
2639
|
+
tmp_0 = this_0;
|
|
2640
|
+
} else {
|
|
2641
|
+
tmp_0 = null;
|
|
2642
|
+
}
|
|
2643
|
+
var tmp0_safe_receiver = tmp_0;
|
|
2644
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2t();
|
|
2645
|
+
} catch ($p) {
|
|
2646
|
+
var tmp_1;
|
|
2647
|
+
if ($p instanceof URLParserException) {
|
|
2648
|
+
var cause = $p;
|
|
2649
|
+
tmp_1 = null;
|
|
2650
|
+
} else {
|
|
2651
|
+
throw $p;
|
|
2652
|
+
}
|
|
2653
|
+
tmp = tmp_1;
|
|
2654
|
+
}
|
|
2655
|
+
return tmp;
|
|
2653
2656
|
}
|
|
2654
2657
|
function URLBuilder_1(url) {
|
|
2655
2658
|
return takeFrom_1(new URLBuilder(), url);
|
|
2656
2659
|
}
|
|
2657
2660
|
function takeFrom_1(_this__u8e3s4, url) {
|
|
2658
|
-
_this__u8e3s4.
|
|
2659
|
-
_this__u8e3s4.
|
|
2660
|
-
_this__u8e3s4.
|
|
2661
|
-
set_encodedPath(_this__u8e3s4, url.
|
|
2662
|
-
_this__u8e3s4.
|
|
2663
|
-
_this__u8e3s4.
|
|
2661
|
+
_this__u8e3s4.r30_1 = url.m31_1;
|
|
2662
|
+
_this__u8e3s4.o30_1 = url.b31_1;
|
|
2663
|
+
_this__u8e3s4.w31(url.m32());
|
|
2664
|
+
set_encodedPath(_this__u8e3s4, url.n32());
|
|
2665
|
+
_this__u8e3s4.s30_1 = url.o32();
|
|
2666
|
+
_this__u8e3s4.t30_1 = url.p32();
|
|
2664
2667
|
// Inline function 'kotlin.apply' call
|
|
2665
2668
|
var this_0 = ParametersBuilder();
|
|
2666
|
-
this_0.
|
|
2667
|
-
_this__u8e3s4.
|
|
2668
|
-
_this__u8e3s4.
|
|
2669
|
-
_this__u8e3s4.
|
|
2669
|
+
this_0.k2m(parseQueryString(url.q32(), VOID, VOID, false));
|
|
2670
|
+
_this__u8e3s4.j32(this_0);
|
|
2671
|
+
_this__u8e3s4.u30_1 = url.r32();
|
|
2672
|
+
_this__u8e3s4.p30_1 = url.h31_1;
|
|
2670
2673
|
return _this__u8e3s4;
|
|
2671
2674
|
}
|
|
2672
2675
|
function appendUrlFullPath$lambda(it) {
|
|
2673
|
-
var key = it.
|
|
2676
|
+
var key = it.gg_1;
|
|
2674
2677
|
var tmp;
|
|
2675
|
-
if (it.
|
|
2678
|
+
if (it.hg_1 == null) {
|
|
2676
2679
|
tmp = key;
|
|
2677
2680
|
} else {
|
|
2678
|
-
var value = toString_1(it.
|
|
2681
|
+
var value = toString_1(it.hg_1);
|
|
2679
2682
|
tmp = key + '=' + value;
|
|
2680
2683
|
}
|
|
2681
2684
|
return tmp;
|
|
@@ -2689,7 +2692,7 @@
|
|
|
2689
2692
|
function Url$segments$delegate$lambda($pathSegments) {
|
|
2690
2693
|
return function () {
|
|
2691
2694
|
var tmp;
|
|
2692
|
-
if ($pathSegments.
|
|
2695
|
+
if ($pathSegments.j()) {
|
|
2693
2696
|
return emptyList();
|
|
2694
2697
|
}
|
|
2695
2698
|
var tmp_0;
|
|
@@ -2697,7 +2700,7 @@
|
|
|
2697
2700
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2698
2701
|
var this_0 = first_0($pathSegments);
|
|
2699
2702
|
if (charSequenceLength(this_0) === 0) {
|
|
2700
|
-
tmp_1 = $pathSegments.
|
|
2703
|
+
tmp_1 = $pathSegments.u() > 1;
|
|
2701
2704
|
} else {
|
|
2702
2705
|
tmp_1 = false;
|
|
2703
2706
|
}
|
|
@@ -2716,170 +2719,170 @@
|
|
|
2716
2719
|
tmp_2 = get_lastIndex($pathSegments) + 1 | 0;
|
|
2717
2720
|
}
|
|
2718
2721
|
var end = tmp_2;
|
|
2719
|
-
return $pathSegments.
|
|
2722
|
+
return $pathSegments.a2(start, end);
|
|
2720
2723
|
};
|
|
2721
2724
|
}
|
|
2722
2725
|
function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
2723
2726
|
return function () {
|
|
2724
2727
|
var tmp;
|
|
2725
|
-
if ($pathSegments.
|
|
2728
|
+
if ($pathSegments.j()) {
|
|
2726
2729
|
return '';
|
|
2727
2730
|
}
|
|
2728
|
-
var pathStartIndex = indexOf(this$0.
|
|
2731
|
+
var pathStartIndex = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(47), this$0.n31_1.y30_1.length + 3 | 0);
|
|
2729
2732
|
var tmp_0;
|
|
2730
2733
|
if (pathStartIndex === -1) {
|
|
2731
2734
|
return '';
|
|
2732
2735
|
}
|
|
2733
2736
|
// Inline function 'kotlin.charArrayOf' call
|
|
2734
2737
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2735
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2738
|
+
var pathEndIndex = indexOfAny(this$0.i31_1, tmp$ret$0, pathStartIndex);
|
|
2736
2739
|
var tmp_1;
|
|
2737
2740
|
if (pathEndIndex === -1) {
|
|
2738
|
-
return substring_0(this$0.
|
|
2741
|
+
return substring_0(this$0.i31_1, pathStartIndex);
|
|
2739
2742
|
}
|
|
2740
|
-
return substring(this$0.
|
|
2743
|
+
return substring(this$0.i31_1, pathStartIndex, pathEndIndex);
|
|
2741
2744
|
};
|
|
2742
2745
|
}
|
|
2743
2746
|
function Url$_get_encodedPath_$ref_fg9j48() {
|
|
2744
2747
|
return function (p0) {
|
|
2745
|
-
return p0.
|
|
2748
|
+
return p0.n32();
|
|
2746
2749
|
};
|
|
2747
2750
|
}
|
|
2748
2751
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2749
2752
|
return function () {
|
|
2750
|
-
var queryStart = indexOf(this$0.
|
|
2753
|
+
var queryStart = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2751
2754
|
var tmp;
|
|
2752
2755
|
if (queryStart === 0) {
|
|
2753
2756
|
return '';
|
|
2754
2757
|
}
|
|
2755
|
-
var queryEnd = indexOf(this$0.
|
|
2758
|
+
var queryEnd = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2756
2759
|
var tmp_0;
|
|
2757
2760
|
if (queryEnd === -1) {
|
|
2758
|
-
return substring_0(this$0.
|
|
2761
|
+
return substring_0(this$0.i31_1, queryStart);
|
|
2759
2762
|
}
|
|
2760
|
-
return substring(this$0.
|
|
2763
|
+
return substring(this$0.i31_1, queryStart, queryEnd);
|
|
2761
2764
|
};
|
|
2762
2765
|
}
|
|
2763
2766
|
function Url$_get_encodedQuery_$ref_c7vq1h() {
|
|
2764
2767
|
return function (p0) {
|
|
2765
|
-
return p0.
|
|
2768
|
+
return p0.q32();
|
|
2766
2769
|
};
|
|
2767
2770
|
}
|
|
2768
2771
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2769
2772
|
return function () {
|
|
2770
|
-
var pathStart = indexOf(this$0.
|
|
2773
|
+
var pathStart = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(47), this$0.n31_1.y30_1.length + 3 | 0);
|
|
2771
2774
|
var tmp;
|
|
2772
2775
|
if (pathStart === -1) {
|
|
2773
2776
|
return '';
|
|
2774
2777
|
}
|
|
2775
|
-
var queryEnd = indexOf(this$0.
|
|
2778
|
+
var queryEnd = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2776
2779
|
var tmp_0;
|
|
2777
2780
|
if (queryEnd === -1) {
|
|
2778
|
-
return substring_0(this$0.
|
|
2781
|
+
return substring_0(this$0.i31_1, pathStart);
|
|
2779
2782
|
}
|
|
2780
|
-
return substring(this$0.
|
|
2783
|
+
return substring(this$0.i31_1, pathStart, queryEnd);
|
|
2781
2784
|
};
|
|
2782
2785
|
}
|
|
2783
2786
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2784
2787
|
return function () {
|
|
2785
2788
|
var tmp;
|
|
2786
|
-
if (this$0.
|
|
2789
|
+
if (this$0.f31_1 == null) {
|
|
2787
2790
|
return null;
|
|
2788
2791
|
}
|
|
2789
2792
|
var tmp_0;
|
|
2790
2793
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2791
|
-
var this_0 = this$0.
|
|
2794
|
+
var this_0 = this$0.f31_1;
|
|
2792
2795
|
if (charSequenceLength(this_0) === 0) {
|
|
2793
2796
|
return '';
|
|
2794
2797
|
}
|
|
2795
|
-
var usernameStart = this$0.
|
|
2798
|
+
var usernameStart = this$0.n31_1.y30_1.length + 3 | 0;
|
|
2796
2799
|
// Inline function 'kotlin.charArrayOf' call
|
|
2797
2800
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2798
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2799
|
-
return substring(this$0.
|
|
2801
|
+
var usernameEnd = indexOfAny(this$0.i31_1, tmp$ret$1, usernameStart);
|
|
2802
|
+
return substring(this$0.i31_1, usernameStart, usernameEnd);
|
|
2800
2803
|
};
|
|
2801
2804
|
}
|
|
2802
2805
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2803
2806
|
return function (p0) {
|
|
2804
|
-
return p0.
|
|
2807
|
+
return p0.o32();
|
|
2805
2808
|
};
|
|
2806
2809
|
}
|
|
2807
2810
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2808
2811
|
return function () {
|
|
2809
2812
|
var tmp;
|
|
2810
|
-
if (this$0.
|
|
2813
|
+
if (this$0.g31_1 == null) {
|
|
2811
2814
|
return null;
|
|
2812
2815
|
}
|
|
2813
2816
|
var tmp_0;
|
|
2814
2817
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2815
|
-
var this_0 = this$0.
|
|
2818
|
+
var this_0 = this$0.g31_1;
|
|
2816
2819
|
if (charSequenceLength(this_0) === 0) {
|
|
2817
2820
|
return '';
|
|
2818
2821
|
}
|
|
2819
|
-
var passwordStart = indexOf(this$0.
|
|
2820
|
-
var passwordEnd = indexOf(this$0.
|
|
2821
|
-
return substring(this$0.
|
|
2822
|
+
var passwordStart = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(58), this$0.n31_1.y30_1.length + 3 | 0) + 1 | 0;
|
|
2823
|
+
var passwordEnd = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(64));
|
|
2824
|
+
return substring(this$0.i31_1, passwordStart, passwordEnd);
|
|
2822
2825
|
};
|
|
2823
2826
|
}
|
|
2824
2827
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2825
2828
|
return function (p0) {
|
|
2826
|
-
return p0.
|
|
2829
|
+
return p0.p32();
|
|
2827
2830
|
};
|
|
2828
2831
|
}
|
|
2829
2832
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2830
2833
|
return function () {
|
|
2831
|
-
var fragmentStart = indexOf(this$0.
|
|
2834
|
+
var fragmentStart = indexOf(this$0.i31_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2832
2835
|
var tmp;
|
|
2833
2836
|
if (fragmentStart === 0) {
|
|
2834
2837
|
return '';
|
|
2835
2838
|
}
|
|
2836
|
-
return substring_0(this$0.
|
|
2839
|
+
return substring_0(this$0.i31_1, fragmentStart);
|
|
2837
2840
|
};
|
|
2838
2841
|
}
|
|
2839
2842
|
function Url$_get_encodedFragment_$ref_itp7pv() {
|
|
2840
2843
|
return function (p0) {
|
|
2841
|
-
return p0.
|
|
2844
|
+
return p0.r32();
|
|
2842
2845
|
};
|
|
2843
2846
|
}
|
|
2844
2847
|
function Url_1(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2845
|
-
this.
|
|
2846
|
-
this.
|
|
2847
|
-
this.
|
|
2848
|
-
this.
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2853
|
-
var containsArg = this.
|
|
2848
|
+
this.b31_1 = host;
|
|
2849
|
+
this.c31_1 = specifiedPort;
|
|
2850
|
+
this.d31_1 = parameters;
|
|
2851
|
+
this.e31_1 = fragment;
|
|
2852
|
+
this.f31_1 = user;
|
|
2853
|
+
this.g31_1 = password;
|
|
2854
|
+
this.h31_1 = trailingQuery;
|
|
2855
|
+
this.i31_1 = urlString;
|
|
2856
|
+
var containsArg = this.c31_1;
|
|
2854
2857
|
// Inline function 'kotlin.require' call
|
|
2855
2858
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2856
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2859
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.c31_1;
|
|
2857
2860
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2858
2861
|
}
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2862
|
+
this.j31_1 = pathSegments;
|
|
2863
|
+
this.k31_1 = pathSegments;
|
|
2861
2864
|
var tmp = this;
|
|
2862
|
-
tmp.
|
|
2863
|
-
this.
|
|
2865
|
+
tmp.l31_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2866
|
+
this.m31_1 = protocol;
|
|
2864
2867
|
var tmp_0 = this;
|
|
2865
|
-
var tmp0_elvis_lhs = this.
|
|
2866
|
-
tmp_0.
|
|
2868
|
+
var tmp0_elvis_lhs = this.m31_1;
|
|
2869
|
+
tmp_0.n31_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().y31_1 : tmp0_elvis_lhs;
|
|
2867
2870
|
var tmp_1 = this;
|
|
2868
|
-
tmp_1.
|
|
2871
|
+
tmp_1.o31_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2869
2872
|
var tmp_2 = this;
|
|
2870
|
-
tmp_2.
|
|
2873
|
+
tmp_2.p31_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2871
2874
|
var tmp_3 = this;
|
|
2872
|
-
tmp_3.
|
|
2875
|
+
tmp_3.q31_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2873
2876
|
var tmp_4 = this;
|
|
2874
|
-
tmp_4.
|
|
2877
|
+
tmp_4.r31_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2875
2878
|
var tmp_5 = this;
|
|
2876
|
-
tmp_5.
|
|
2879
|
+
tmp_5.s31_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2877
2880
|
var tmp_6 = this;
|
|
2878
|
-
tmp_6.
|
|
2881
|
+
tmp_6.t31_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2879
2882
|
}
|
|
2880
|
-
protoOf(Url_1).
|
|
2883
|
+
protoOf(Url_1).m32 = function () {
|
|
2881
2884
|
// Inline function 'kotlin.takeUnless' call
|
|
2882
|
-
var this_0 = this.
|
|
2885
|
+
var this_0 = this.c31_1;
|
|
2883
2886
|
var tmp;
|
|
2884
2887
|
if (!(this_0 === 0)) {
|
|
2885
2888
|
tmp = this_0;
|
|
@@ -2887,45 +2890,45 @@
|
|
|
2887
2890
|
tmp = null;
|
|
2888
2891
|
}
|
|
2889
2892
|
var tmp0_elvis_lhs = tmp;
|
|
2890
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2893
|
+
return tmp0_elvis_lhs == null ? this.n31_1.z30_1 : tmp0_elvis_lhs;
|
|
2891
2894
|
};
|
|
2892
|
-
protoOf(Url_1).
|
|
2893
|
-
var tmp0 = this.
|
|
2895
|
+
protoOf(Url_1).n32 = function () {
|
|
2896
|
+
var tmp0 = this.o31_1;
|
|
2894
2897
|
var tmp = KProperty1;
|
|
2895
2898
|
// Inline function 'kotlin.getValue' call
|
|
2896
2899
|
getPropertyCallableRef('encodedPath', 1, tmp, Url$_get_encodedPath_$ref_fg9j48(), null);
|
|
2897
|
-
return tmp0.
|
|
2900
|
+
return tmp0.a1();
|
|
2898
2901
|
};
|
|
2899
|
-
protoOf(Url_1).
|
|
2900
|
-
var tmp0 = this.
|
|
2902
|
+
protoOf(Url_1).q32 = function () {
|
|
2903
|
+
var tmp0 = this.p31_1;
|
|
2901
2904
|
var tmp = KProperty1;
|
|
2902
2905
|
// Inline function 'kotlin.getValue' call
|
|
2903
2906
|
getPropertyCallableRef('encodedQuery', 1, tmp, Url$_get_encodedQuery_$ref_c7vq1h(), null);
|
|
2904
|
-
return tmp0.
|
|
2907
|
+
return tmp0.a1();
|
|
2905
2908
|
};
|
|
2906
|
-
protoOf(Url_1).
|
|
2907
|
-
var tmp0 = this.
|
|
2909
|
+
protoOf(Url_1).o32 = function () {
|
|
2910
|
+
var tmp0 = this.r31_1;
|
|
2908
2911
|
var tmp = KProperty1;
|
|
2909
2912
|
// Inline function 'kotlin.getValue' call
|
|
2910
2913
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2911
|
-
return tmp0.
|
|
2914
|
+
return tmp0.a1();
|
|
2912
2915
|
};
|
|
2913
|
-
protoOf(Url_1).
|
|
2914
|
-
var tmp0 = this.
|
|
2916
|
+
protoOf(Url_1).p32 = function () {
|
|
2917
|
+
var tmp0 = this.s31_1;
|
|
2915
2918
|
var tmp = KProperty1;
|
|
2916
2919
|
// Inline function 'kotlin.getValue' call
|
|
2917
2920
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2918
|
-
return tmp0.
|
|
2921
|
+
return tmp0.a1();
|
|
2919
2922
|
};
|
|
2920
|
-
protoOf(Url_1).
|
|
2921
|
-
var tmp0 = this.
|
|
2923
|
+
protoOf(Url_1).r32 = function () {
|
|
2924
|
+
var tmp0 = this.t31_1;
|
|
2922
2925
|
var tmp = KProperty1;
|
|
2923
2926
|
// Inline function 'kotlin.getValue' call
|
|
2924
2927
|
getPropertyCallableRef('encodedFragment', 1, tmp, Url$_get_encodedFragment_$ref_itp7pv(), null);
|
|
2925
|
-
return tmp0.
|
|
2928
|
+
return tmp0.a1();
|
|
2926
2929
|
};
|
|
2927
2930
|
protoOf(Url_1).toString = function () {
|
|
2928
|
-
return this.
|
|
2931
|
+
return this.i31_1;
|
|
2929
2932
|
};
|
|
2930
2933
|
protoOf(Url_1).equals = function (other) {
|
|
2931
2934
|
if (this === other)
|
|
@@ -2934,34 +2937,34 @@
|
|
|
2934
2937
|
return false;
|
|
2935
2938
|
if (!(other instanceof Url_1))
|
|
2936
2939
|
THROW_CCE();
|
|
2937
|
-
return this.
|
|
2940
|
+
return this.i31_1 === other.i31_1;
|
|
2938
2941
|
};
|
|
2939
2942
|
protoOf(Url_1).hashCode = function () {
|
|
2940
|
-
return getStringHashCode(this.
|
|
2943
|
+
return getStringHashCode(this.i31_1);
|
|
2941
2944
|
};
|
|
2942
2945
|
function get_authority_0(_this__u8e3s4) {
|
|
2943
2946
|
// Inline function 'kotlin.text.buildString' call
|
|
2944
2947
|
// Inline function 'kotlin.apply' call
|
|
2945
2948
|
var this_0 = StringBuilder_init_$Create$();
|
|
2946
|
-
this_0.
|
|
2947
|
-
this_0.
|
|
2949
|
+
this_0.f8(get_encodedUserAndPassword_0(_this__u8e3s4));
|
|
2950
|
+
this_0.f8(get_hostWithPortIfSpecified(_this__u8e3s4));
|
|
2948
2951
|
return this_0.toString();
|
|
2949
2952
|
}
|
|
2950
2953
|
function UrlSerializer() {
|
|
2951
2954
|
UrlSerializer_instance = this;
|
|
2952
|
-
this.
|
|
2955
|
+
this.s32_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2953
2956
|
}
|
|
2954
|
-
protoOf(UrlSerializer).
|
|
2955
|
-
return this.
|
|
2957
|
+
protoOf(UrlSerializer).g1x = function () {
|
|
2958
|
+
return this.s32_1;
|
|
2956
2959
|
};
|
|
2957
|
-
protoOf(UrlSerializer).
|
|
2958
|
-
return Url_0(decoder.
|
|
2960
|
+
protoOf(UrlSerializer).i1x = function (decoder) {
|
|
2961
|
+
return Url_0(decoder.o20());
|
|
2959
2962
|
};
|
|
2960
|
-
protoOf(UrlSerializer).
|
|
2961
|
-
encoder.
|
|
2963
|
+
protoOf(UrlSerializer).t32 = function (encoder, value) {
|
|
2964
|
+
encoder.x21(value.toString());
|
|
2962
2965
|
};
|
|
2963
|
-
protoOf(UrlSerializer).
|
|
2964
|
-
return this.
|
|
2966
|
+
protoOf(UrlSerializer).h1x = function (encoder, value) {
|
|
2967
|
+
return this.t32(encoder, value instanceof Url_1 ? value : THROW_CCE());
|
|
2965
2968
|
};
|
|
2966
2969
|
var UrlSerializer_instance;
|
|
2967
2970
|
function UrlSerializer_getInstance() {
|
|
@@ -2973,21 +2976,21 @@
|
|
|
2973
2976
|
// Inline function 'kotlin.text.buildString' call
|
|
2974
2977
|
// Inline function 'kotlin.apply' call
|
|
2975
2978
|
var this_0 = StringBuilder_init_$Create$();
|
|
2976
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2979
|
+
appendUserAndPassword(this_0, _this__u8e3s4.o32(), _this__u8e3s4.p32());
|
|
2977
2980
|
return this_0.toString();
|
|
2978
2981
|
}
|
|
2979
2982
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2980
|
-
this.
|
|
2981
|
-
this.
|
|
2983
|
+
this.u32_1 = encodedParametersBuilder;
|
|
2984
|
+
this.v32_1 = this.u32_1.b2m();
|
|
2982
2985
|
}
|
|
2983
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2984
|
-
return decodeParameters(this.
|
|
2986
|
+
protoOf(UrlDecodedParametersBuilder).j2t = function () {
|
|
2987
|
+
return decodeParameters(this.u32_1);
|
|
2985
2988
|
};
|
|
2986
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2987
|
-
return this.
|
|
2989
|
+
protoOf(UrlDecodedParametersBuilder).b2m = function () {
|
|
2990
|
+
return this.v32_1;
|
|
2988
2991
|
};
|
|
2989
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2990
|
-
var tmp0_safe_receiver = this.
|
|
2992
|
+
protoOf(UrlDecodedParametersBuilder).c2m = function (name) {
|
|
2993
|
+
var tmp0_safe_receiver = this.u32_1.c2m(encodeURLParameter(name));
|
|
2991
2994
|
var tmp;
|
|
2992
2995
|
if (tmp0_safe_receiver == null) {
|
|
2993
2996
|
tmp = null;
|
|
@@ -2995,59 +2998,59 @@
|
|
|
2995
2998
|
// Inline function 'kotlin.collections.map' call
|
|
2996
2999
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2997
3000
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
2998
|
-
var _iterator__ex2g4s = tmp0_safe_receiver.
|
|
2999
|
-
while (_iterator__ex2g4s.
|
|
3000
|
-
var item = _iterator__ex2g4s.
|
|
3001
|
+
var _iterator__ex2g4s = tmp0_safe_receiver.r();
|
|
3002
|
+
while (_iterator__ex2g4s.s()) {
|
|
3003
|
+
var item = _iterator__ex2g4s.t();
|
|
3001
3004
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3002
|
-
destination.
|
|
3005
|
+
destination.p(tmp$ret$0);
|
|
3003
3006
|
}
|
|
3004
3007
|
tmp = destination;
|
|
3005
3008
|
}
|
|
3006
3009
|
return tmp;
|
|
3007
3010
|
};
|
|
3008
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3009
|
-
return this.
|
|
3011
|
+
protoOf(UrlDecodedParametersBuilder).x2l = function (name) {
|
|
3012
|
+
return this.u32_1.x2l(encodeURLParameter(name));
|
|
3010
3013
|
};
|
|
3011
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3014
|
+
protoOf(UrlDecodedParametersBuilder).d2m = function () {
|
|
3012
3015
|
// Inline function 'kotlin.collections.map' call
|
|
3013
|
-
var this_0 = this.
|
|
3016
|
+
var this_0 = this.u32_1.d2m();
|
|
3014
3017
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3015
3018
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3016
|
-
var _iterator__ex2g4s = this_0.
|
|
3017
|
-
while (_iterator__ex2g4s.
|
|
3018
|
-
var item = _iterator__ex2g4s.
|
|
3019
|
+
var _iterator__ex2g4s = this_0.r();
|
|
3020
|
+
while (_iterator__ex2g4s.s()) {
|
|
3021
|
+
var item = _iterator__ex2g4s.t();
|
|
3019
3022
|
var tmp$ret$0 = decodeURLQueryComponent(item);
|
|
3020
|
-
destination.
|
|
3023
|
+
destination.p(tmp$ret$0);
|
|
3021
3024
|
}
|
|
3022
3025
|
return toSet(destination);
|
|
3023
3026
|
};
|
|
3024
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3025
|
-
return this.
|
|
3027
|
+
protoOf(UrlDecodedParametersBuilder).j = function () {
|
|
3028
|
+
return this.u32_1.j();
|
|
3026
3029
|
};
|
|
3027
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3028
|
-
return decodeParameters(this.
|
|
3030
|
+
protoOf(UrlDecodedParametersBuilder).z2l = function () {
|
|
3031
|
+
return decodeParameters(this.u32_1).z2l();
|
|
3029
3032
|
};
|
|
3030
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3031
|
-
return this.
|
|
3033
|
+
protoOf(UrlDecodedParametersBuilder).y2l = function (name, value) {
|
|
3034
|
+
return this.u32_1.y2l(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3032
3035
|
};
|
|
3033
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3034
|
-
return appendAllEncoded(this.
|
|
3036
|
+
protoOf(UrlDecodedParametersBuilder).k2m = function (stringValues) {
|
|
3037
|
+
return appendAllEncoded(this.u32_1, stringValues);
|
|
3035
3038
|
};
|
|
3036
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3039
|
+
protoOf(UrlDecodedParametersBuilder).a2m = function (name, values) {
|
|
3037
3040
|
var tmp = encodeURLParameter(name);
|
|
3038
3041
|
// Inline function 'kotlin.collections.map' call
|
|
3039
3042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3040
3043
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3041
|
-
var _iterator__ex2g4s = values.
|
|
3042
|
-
while (_iterator__ex2g4s.
|
|
3043
|
-
var item = _iterator__ex2g4s.
|
|
3044
|
+
var _iterator__ex2g4s = values.r();
|
|
3045
|
+
while (_iterator__ex2g4s.s()) {
|
|
3046
|
+
var item = _iterator__ex2g4s.t();
|
|
3044
3047
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3045
|
-
destination.
|
|
3048
|
+
destination.p(tmp$ret$0);
|
|
3046
3049
|
}
|
|
3047
|
-
return this.
|
|
3050
|
+
return this.u32_1.a2m(tmp, destination);
|
|
3048
3051
|
};
|
|
3049
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3050
|
-
return this.
|
|
3052
|
+
protoOf(UrlDecodedParametersBuilder).b2 = function () {
|
|
3053
|
+
return this.u32_1.b2();
|
|
3051
3054
|
};
|
|
3052
3055
|
function encodeParameters(parameters) {
|
|
3053
3056
|
// Inline function 'kotlin.apply' call
|
|
@@ -3059,46 +3062,46 @@
|
|
|
3059
3062
|
// Inline function 'kotlin.apply' call
|
|
3060
3063
|
var this_0 = ParametersBuilder();
|
|
3061
3064
|
appendAllDecoded(this_0, parameters);
|
|
3062
|
-
return this_0.
|
|
3065
|
+
return this_0.j2t();
|
|
3063
3066
|
}
|
|
3064
3067
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3065
3068
|
// Inline function 'kotlin.collections.forEach' call
|
|
3066
|
-
var _iterator__ex2g4s = parameters.
|
|
3067
|
-
while (_iterator__ex2g4s.
|
|
3068
|
-
var element = _iterator__ex2g4s.
|
|
3069
|
-
var tmp0_elvis_lhs = parameters.
|
|
3069
|
+
var _iterator__ex2g4s = parameters.d2m().r();
|
|
3070
|
+
while (_iterator__ex2g4s.s()) {
|
|
3071
|
+
var element = _iterator__ex2g4s.t();
|
|
3072
|
+
var tmp0_elvis_lhs = parameters.c2m(element);
|
|
3070
3073
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3071
3074
|
var tmp = encodeURLParameter(element);
|
|
3072
3075
|
// Inline function 'kotlin.collections.map' call
|
|
3073
3076
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3074
3077
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3075
|
-
var _iterator__ex2g4s_0 = values.
|
|
3076
|
-
while (_iterator__ex2g4s_0.
|
|
3077
|
-
var item = _iterator__ex2g4s_0.
|
|
3078
|
+
var _iterator__ex2g4s_0 = values.r();
|
|
3079
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
3080
|
+
var item = _iterator__ex2g4s_0.t();
|
|
3078
3081
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3079
|
-
destination.
|
|
3082
|
+
destination.p(tmp$ret$0);
|
|
3080
3083
|
}
|
|
3081
|
-
_this__u8e3s4.
|
|
3084
|
+
_this__u8e3s4.a2m(tmp, destination);
|
|
3082
3085
|
}
|
|
3083
3086
|
}
|
|
3084
3087
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3085
3088
|
// Inline function 'kotlin.collections.forEach' call
|
|
3086
|
-
var _iterator__ex2g4s = parameters.
|
|
3087
|
-
while (_iterator__ex2g4s.
|
|
3088
|
-
var element = _iterator__ex2g4s.
|
|
3089
|
-
var tmp0_elvis_lhs = parameters.
|
|
3089
|
+
var _iterator__ex2g4s = parameters.d2m().r();
|
|
3090
|
+
while (_iterator__ex2g4s.s()) {
|
|
3091
|
+
var element = _iterator__ex2g4s.t();
|
|
3092
|
+
var tmp0_elvis_lhs = parameters.c2m(element);
|
|
3090
3093
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3091
3094
|
var tmp = decodeURLQueryComponent(element);
|
|
3092
3095
|
// Inline function 'kotlin.collections.map' call
|
|
3093
3096
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3094
3097
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3095
|
-
var _iterator__ex2g4s_0 = values.
|
|
3096
|
-
while (_iterator__ex2g4s_0.
|
|
3097
|
-
var item = _iterator__ex2g4s_0.
|
|
3098
|
+
var _iterator__ex2g4s_0 = values.r();
|
|
3099
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
3100
|
+
var item = _iterator__ex2g4s_0.t();
|
|
3098
3101
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3099
|
-
destination.
|
|
3102
|
+
destination.p(tmp$ret$0);
|
|
3100
3103
|
}
|
|
3101
|
-
_this__u8e3s4.
|
|
3104
|
+
_this__u8e3s4.a2m(tmp, destination);
|
|
3102
3105
|
}
|
|
3103
3106
|
}
|
|
3104
3107
|
var HeaderValueEncoding_QUOTED_WHEN_REQUIRED_instance;
|
|
@@ -3143,14 +3146,14 @@
|
|
|
3143
3146
|
function Parameterized_init_$Init$(authScheme, parameters, encoding, $this) {
|
|
3144
3147
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3145
3148
|
// Inline function 'kotlin.collections.map' call
|
|
3146
|
-
var this_0 = parameters.
|
|
3149
|
+
var this_0 = parameters.y();
|
|
3147
3150
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3148
3151
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3149
|
-
var _iterator__ex2g4s = this_0.
|
|
3150
|
-
while (_iterator__ex2g4s.
|
|
3151
|
-
var item = _iterator__ex2g4s.
|
|
3152
|
-
var tmp$ret$0 = HeaderValueParam_init_$Create$(item.
|
|
3153
|
-
destination.
|
|
3152
|
+
var _iterator__ex2g4s = this_0.r();
|
|
3153
|
+
while (_iterator__ex2g4s.s()) {
|
|
3154
|
+
var item = _iterator__ex2g4s.t();
|
|
3155
|
+
var tmp$ret$0 = HeaderValueParam_init_$Create$(item.z(), item.a1());
|
|
3156
|
+
destination.p(tmp$ret$0);
|
|
3154
3157
|
}
|
|
3155
3158
|
Parameterized.call($this, authScheme, destination, encoding);
|
|
3156
3159
|
return $this;
|
|
@@ -3160,7 +3163,7 @@
|
|
|
3160
3163
|
}
|
|
3161
3164
|
function encode_0($this, _this__u8e3s4, encoding) {
|
|
3162
3165
|
var tmp;
|
|
3163
|
-
switch (encoding.
|
|
3166
|
+
switch (encoding.s2_1) {
|
|
3164
3167
|
case 0:
|
|
3165
3168
|
tmp = escapeIfNeeded(_this__u8e3s4);
|
|
3166
3169
|
break;
|
|
@@ -3178,71 +3181,71 @@
|
|
|
3178
3181
|
}
|
|
3179
3182
|
function HttpAuthHeader$Parameterized$render$lambda(this$0, $encoding) {
|
|
3180
3183
|
return function (it) {
|
|
3181
|
-
return it.
|
|
3184
|
+
return it.z2q_1 + '=' + encode_0(this$0, it.a2r_1, $encoding);
|
|
3182
3185
|
};
|
|
3183
3186
|
}
|
|
3184
3187
|
function Single(authScheme, blob) {
|
|
3185
3188
|
HttpAuthHeader.call(this, authScheme);
|
|
3186
|
-
this.
|
|
3187
|
-
var tmp0 = this.
|
|
3189
|
+
this.x32_1 = blob;
|
|
3190
|
+
var tmp0 = this.x32_1;
|
|
3188
3191
|
// Inline function 'kotlin.text.matches' call
|
|
3189
|
-
if (!get_token68Pattern().
|
|
3192
|
+
if (!get_token68Pattern().gd(tmp0)) {
|
|
3190
3193
|
throw new ParseException('Invalid blob value: it should be token68');
|
|
3191
3194
|
}
|
|
3192
3195
|
}
|
|
3193
|
-
protoOf(Single).
|
|
3194
|
-
return this.
|
|
3196
|
+
protoOf(Single).y32 = function () {
|
|
3197
|
+
return this.z32_1 + ' ' + this.x32_1;
|
|
3195
3198
|
};
|
|
3196
3199
|
protoOf(Single).equals = function (other) {
|
|
3197
3200
|
if (!(other instanceof Single))
|
|
3198
3201
|
return false;
|
|
3199
|
-
return equals(other.
|
|
3202
|
+
return equals(other.z32_1, this.z32_1, true) && equals(other.x32_1, this.x32_1, true);
|
|
3200
3203
|
};
|
|
3201
3204
|
protoOf(Single).hashCode = function () {
|
|
3202
3205
|
var tmp = Hash_instance;
|
|
3203
3206
|
// Inline function 'kotlin.text.lowercase' call
|
|
3204
3207
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3205
|
-
var tmp_0 = this.
|
|
3208
|
+
var tmp_0 = this.z32_1.toLowerCase();
|
|
3206
3209
|
// Inline function 'kotlin.text.lowercase' call
|
|
3207
3210
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3208
|
-
var tmp$ret$3 = this.
|
|
3209
|
-
return tmp.
|
|
3211
|
+
var tmp$ret$3 = this.x32_1.toLowerCase();
|
|
3212
|
+
return tmp.m2l([tmp_0, tmp$ret$3]);
|
|
3210
3213
|
};
|
|
3211
3214
|
function Parameterized(authScheme, parameters, encoding) {
|
|
3212
3215
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3213
3216
|
HttpAuthHeader.call(this, authScheme);
|
|
3214
|
-
this.
|
|
3215
|
-
this.
|
|
3217
|
+
this.b33_1 = parameters;
|
|
3218
|
+
this.c33_1 = encoding;
|
|
3216
3219
|
// Inline function 'kotlin.collections.forEach' call
|
|
3217
|
-
var _iterator__ex2g4s = this.
|
|
3218
|
-
while (_iterator__ex2g4s.
|
|
3219
|
-
var element = _iterator__ex2g4s.
|
|
3220
|
-
var tmp0 = element.
|
|
3220
|
+
var _iterator__ex2g4s = this.b33_1.r();
|
|
3221
|
+
while (_iterator__ex2g4s.s()) {
|
|
3222
|
+
var element = _iterator__ex2g4s.t();
|
|
3223
|
+
var tmp0 = element.z2q_1;
|
|
3221
3224
|
// Inline function 'kotlin.text.matches' call
|
|
3222
|
-
if (!get_token68Pattern().
|
|
3225
|
+
if (!get_token68Pattern().gd(tmp0)) {
|
|
3223
3226
|
throw new ParseException('Parameter name should be a token');
|
|
3224
3227
|
}
|
|
3225
3228
|
}
|
|
3226
3229
|
}
|
|
3227
|
-
protoOf(Parameterized).
|
|
3230
|
+
protoOf(Parameterized).d33 = function (encoding) {
|
|
3228
3231
|
var tmp;
|
|
3229
|
-
if (this.
|
|
3230
|
-
tmp = this.
|
|
3232
|
+
if (this.b33_1.j()) {
|
|
3233
|
+
tmp = this.z32_1;
|
|
3231
3234
|
} else {
|
|
3232
|
-
var tmp_0 = this.
|
|
3233
|
-
tmp = joinToString(this.
|
|
3235
|
+
var tmp_0 = this.z32_1 + ' ';
|
|
3236
|
+
tmp = joinToString(this.b33_1, ', ', tmp_0, VOID, VOID, VOID, HttpAuthHeader$Parameterized$render$lambda(this, encoding));
|
|
3234
3237
|
}
|
|
3235
3238
|
return tmp;
|
|
3236
3239
|
};
|
|
3237
|
-
protoOf(Parameterized).
|
|
3238
|
-
var tmp0 = this.
|
|
3240
|
+
protoOf(Parameterized).f2t = function (name) {
|
|
3241
|
+
var tmp0 = this.b33_1;
|
|
3239
3242
|
var tmp$ret$1;
|
|
3240
3243
|
$l$block: {
|
|
3241
3244
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3242
|
-
var _iterator__ex2g4s = tmp0.
|
|
3243
|
-
while (_iterator__ex2g4s.
|
|
3244
|
-
var element = _iterator__ex2g4s.
|
|
3245
|
-
if (element.
|
|
3245
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
3246
|
+
while (_iterator__ex2g4s.s()) {
|
|
3247
|
+
var element = _iterator__ex2g4s.t();
|
|
3248
|
+
if (element.z2q_1 === name) {
|
|
3246
3249
|
tmp$ret$1 = element;
|
|
3247
3250
|
break $l$block;
|
|
3248
3251
|
}
|
|
@@ -3250,22 +3253,22 @@
|
|
|
3250
3253
|
tmp$ret$1 = null;
|
|
3251
3254
|
}
|
|
3252
3255
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
3253
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3256
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a2r_1;
|
|
3254
3257
|
};
|
|
3255
|
-
protoOf(Parameterized).
|
|
3256
|
-
return this.
|
|
3258
|
+
protoOf(Parameterized).y32 = function () {
|
|
3259
|
+
return this.d33(this.c33_1);
|
|
3257
3260
|
};
|
|
3258
3261
|
protoOf(Parameterized).equals = function (other) {
|
|
3259
3262
|
if (!(other instanceof Parameterized))
|
|
3260
3263
|
return false;
|
|
3261
|
-
return equals(other.
|
|
3264
|
+
return equals(other.z32_1, this.z32_1, true) && equals_0(other.b33_1, this.b33_1);
|
|
3262
3265
|
};
|
|
3263
3266
|
protoOf(Parameterized).hashCode = function () {
|
|
3264
3267
|
var tmp = Hash_instance;
|
|
3265
3268
|
// Inline function 'kotlin.text.lowercase' call
|
|
3266
3269
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3267
|
-
var tmp$ret$1 = this.
|
|
3268
|
-
return tmp.
|
|
3270
|
+
var tmp$ret$1 = this.z32_1.toLowerCase();
|
|
3271
|
+
return tmp.m2l([tmp$ret$1, this.b33_1]);
|
|
3269
3272
|
};
|
|
3270
3273
|
function Companion_9() {
|
|
3271
3274
|
}
|
|
@@ -3274,15 +3277,15 @@
|
|
|
3274
3277
|
return Companion_instance_9;
|
|
3275
3278
|
}
|
|
3276
3279
|
function HttpAuthHeader(authScheme) {
|
|
3277
|
-
this.
|
|
3278
|
-
var tmp0 = this.
|
|
3280
|
+
this.z32_1 = authScheme;
|
|
3281
|
+
var tmp0 = this.z32_1;
|
|
3279
3282
|
// Inline function 'kotlin.text.matches' call
|
|
3280
|
-
if (!get_token68Pattern().
|
|
3281
|
-
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.
|
|
3283
|
+
if (!get_token68Pattern().gd(tmp0)) {
|
|
3284
|
+
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.z32_1);
|
|
3282
3285
|
}
|
|
3283
3286
|
}
|
|
3284
3287
|
protoOf(HttpAuthHeader).toString = function () {
|
|
3285
|
-
return this.
|
|
3288
|
+
return this.y32();
|
|
3286
3289
|
};
|
|
3287
3290
|
function parseAuthorizationHeaders(headerValue) {
|
|
3288
3291
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3330,7 +3333,7 @@
|
|
|
3330
3333
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
3331
3334
|
var parameters = LinkedHashMap_init_$Create$_0();
|
|
3332
3335
|
var nextIndexChallenge = matchParameters(headerValue, index, parameters);
|
|
3333
|
-
headers.
|
|
3336
|
+
headers.p(Parameterized_init_$Create$(authScheme, parameters));
|
|
3334
3337
|
return nextIndexChallenge;
|
|
3335
3338
|
}
|
|
3336
3339
|
function skipSpaces(_this__u8e3s4, startIndex) {
|
|
@@ -3343,12 +3346,12 @@
|
|
|
3343
3346
|
}
|
|
3344
3347
|
function isToken(_this__u8e3s4) {
|
|
3345
3348
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3346
|
-
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN_EXTRA().
|
|
3349
|
+
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN_EXTRA().u1(new Char(_this__u8e3s4));
|
|
3347
3350
|
}
|
|
3348
3351
|
function nextChallengeIndex(headers, header, index, headerValue) {
|
|
3349
3352
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3350
3353
|
if (index === headerValue.length || charCodeAt(headerValue, index) === _Char___init__impl__6a9atx(44)) {
|
|
3351
|
-
headers.
|
|
3354
|
+
headers.p(header);
|
|
3352
3355
|
var tmp;
|
|
3353
3356
|
if (index === headerValue.length) {
|
|
3354
3357
|
tmp = -1;
|
|
@@ -3387,7 +3390,7 @@
|
|
|
3387
3390
|
}
|
|
3388
3391
|
function isToken68(_this__u8e3s4) {
|
|
3389
3392
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3390
|
-
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN68_EXTRA().
|
|
3393
|
+
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN68_EXTRA().u1(new Char(_this__u8e3s4));
|
|
3391
3394
|
}
|
|
3392
3395
|
function matchParameter(headerValue, startIndex, parameters) {
|
|
3393
3396
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3425,7 +3428,7 @@
|
|
|
3425
3428
|
var value = substring_1(headerValue, until(valueStart, index));
|
|
3426
3429
|
// Inline function 'kotlin.collections.set' call
|
|
3427
3430
|
var value_0 = quoted ? unescaped(value) : value;
|
|
3428
|
-
parameters.
|
|
3431
|
+
parameters.g2(key, value_0);
|
|
3429
3432
|
if (quoted) {
|
|
3430
3433
|
index = index + 1 | 0;
|
|
3431
3434
|
}
|
|
@@ -3447,11 +3450,11 @@
|
|
|
3447
3450
|
var tmp2 = get_escapeRegex();
|
|
3448
3451
|
// Inline function 'kotlin.text.replace' call
|
|
3449
3452
|
var transform = unescaped$lambda;
|
|
3450
|
-
return tmp2.
|
|
3453
|
+
return tmp2.jd(_this__u8e3s4, transform);
|
|
3451
3454
|
}
|
|
3452
3455
|
function unescaped$lambda(it) {
|
|
3453
3456
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3454
|
-
return takeLast(it.
|
|
3457
|
+
return takeLast(it.a1(), 1);
|
|
3455
3458
|
}
|
|
3456
3459
|
var properties_initialized_HttpAuthHeader_kt_y7nech;
|
|
3457
3460
|
function _init_properties_HttpAuthHeader_kt__axcd0d() {
|
|
@@ -3470,21 +3473,21 @@
|
|
|
3470
3473
|
contentType = contentType === VOID ? null : contentType;
|
|
3471
3474
|
status = status === VOID ? null : status;
|
|
3472
3475
|
ByteArrayContent_0.call(this);
|
|
3473
|
-
this.
|
|
3474
|
-
this.
|
|
3475
|
-
this.
|
|
3476
|
+
this.f33_1 = bytes;
|
|
3477
|
+
this.g33_1 = contentType;
|
|
3478
|
+
this.h33_1 = status;
|
|
3476
3479
|
}
|
|
3477
|
-
protoOf(ByteArrayContent).
|
|
3478
|
-
return this.
|
|
3480
|
+
protoOf(ByteArrayContent).i33 = function () {
|
|
3481
|
+
return this.g33_1;
|
|
3479
3482
|
};
|
|
3480
|
-
protoOf(ByteArrayContent).
|
|
3481
|
-
return this.
|
|
3483
|
+
protoOf(ByteArrayContent).j33 = function () {
|
|
3484
|
+
return this.h33_1;
|
|
3482
3485
|
};
|
|
3483
|
-
protoOf(ByteArrayContent).
|
|
3484
|
-
return
|
|
3486
|
+
protoOf(ByteArrayContent).k33 = function () {
|
|
3487
|
+
return fromInt(this.f33_1.length);
|
|
3485
3488
|
};
|
|
3486
|
-
protoOf(ByteArrayContent).
|
|
3487
|
-
return this.
|
|
3489
|
+
protoOf(ByteArrayContent).l33 = function () {
|
|
3490
|
+
return this.f33_1;
|
|
3488
3491
|
};
|
|
3489
3492
|
function MultiPartData() {
|
|
3490
3493
|
}
|
|
@@ -3503,23 +3506,23 @@
|
|
|
3503
3506
|
}
|
|
3504
3507
|
function ContentWrapper() {
|
|
3505
3508
|
}
|
|
3506
|
-
protoOf(ContentWrapper).
|
|
3507
|
-
return this.
|
|
3509
|
+
protoOf(ContentWrapper).u33 = function () {
|
|
3510
|
+
return this.t33_1;
|
|
3508
3511
|
};
|
|
3509
3512
|
function OutgoingContent() {
|
|
3510
|
-
this.
|
|
3513
|
+
this.m33_1 = null;
|
|
3511
3514
|
}
|
|
3512
|
-
protoOf(OutgoingContent).
|
|
3515
|
+
protoOf(OutgoingContent).i33 = function () {
|
|
3513
3516
|
return null;
|
|
3514
3517
|
};
|
|
3515
|
-
protoOf(OutgoingContent).
|
|
3518
|
+
protoOf(OutgoingContent).k33 = function () {
|
|
3516
3519
|
return null;
|
|
3517
3520
|
};
|
|
3518
|
-
protoOf(OutgoingContent).
|
|
3521
|
+
protoOf(OutgoingContent).j33 = function () {
|
|
3519
3522
|
return null;
|
|
3520
3523
|
};
|
|
3521
|
-
protoOf(OutgoingContent).
|
|
3522
|
-
return Companion_getInstance_1().
|
|
3524
|
+
protoOf(OutgoingContent).n2x = function () {
|
|
3525
|
+
return Companion_getInstance_1().g2t_1;
|
|
3523
3526
|
};
|
|
3524
3527
|
function NullBody() {
|
|
3525
3528
|
}
|
|
@@ -3533,7 +3536,7 @@
|
|
|
3533
3536
|
tmp = true;
|
|
3534
3537
|
} else {
|
|
3535
3538
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3536
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3539
|
+
tmp = isEmpty(_this__u8e3s4.u33());
|
|
3537
3540
|
} else {
|
|
3538
3541
|
tmp = false;
|
|
3539
3542
|
}
|
|
@@ -3543,45 +3546,45 @@
|
|
|
3543
3546
|
function TextContent(text, contentType, status) {
|
|
3544
3547
|
status = status === VOID ? null : status;
|
|
3545
3548
|
ByteArrayContent_0.call(this);
|
|
3546
|
-
this.
|
|
3547
|
-
this.
|
|
3548
|
-
this.
|
|
3549
|
+
this.x33_1 = text;
|
|
3550
|
+
this.y33_1 = contentType;
|
|
3551
|
+
this.z33_1 = status;
|
|
3549
3552
|
var tmp = this;
|
|
3550
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3551
|
-
tmp.
|
|
3553
|
+
var tmp0_elvis_lhs = charset(this.y33_1);
|
|
3554
|
+
tmp.a34_1 = toByteArray(this.x33_1, tmp0_elvis_lhs == null ? Charsets_getInstance().d1w_1 : tmp0_elvis_lhs);
|
|
3552
3555
|
}
|
|
3553
|
-
protoOf(TextContent).
|
|
3554
|
-
return this.
|
|
3556
|
+
protoOf(TextContent).i33 = function () {
|
|
3557
|
+
return this.y33_1;
|
|
3555
3558
|
};
|
|
3556
|
-
protoOf(TextContent).
|
|
3557
|
-
return this.
|
|
3559
|
+
protoOf(TextContent).j33 = function () {
|
|
3560
|
+
return this.z33_1;
|
|
3558
3561
|
};
|
|
3559
|
-
protoOf(TextContent).
|
|
3560
|
-
return
|
|
3562
|
+
protoOf(TextContent).k33 = function () {
|
|
3563
|
+
return fromInt(this.a34_1.length);
|
|
3561
3564
|
};
|
|
3562
|
-
protoOf(TextContent).
|
|
3563
|
-
return this.
|
|
3565
|
+
protoOf(TextContent).l33 = function () {
|
|
3566
|
+
return this.a34_1;
|
|
3564
3567
|
};
|
|
3565
3568
|
protoOf(TextContent).toString = function () {
|
|
3566
|
-
return 'TextContent[' + this.
|
|
3569
|
+
return 'TextContent[' + this.y33_1.toString() + '] "' + take(this.x33_1, 30) + '"';
|
|
3567
3570
|
};
|
|
3568
3571
|
function ParseException(message, cause) {
|
|
3569
3572
|
cause = cause === VOID ? null : cause;
|
|
3570
3573
|
IllegalArgumentException_init_$Init$_0(message, cause, this);
|
|
3571
3574
|
captureStack(this, ParseException);
|
|
3572
|
-
this.
|
|
3573
|
-
this.
|
|
3575
|
+
this.b34_1 = message;
|
|
3576
|
+
this.c34_1 = cause;
|
|
3574
3577
|
delete this.message;
|
|
3575
3578
|
delete this.cause;
|
|
3576
3579
|
}
|
|
3577
|
-
protoOf(ParseException).
|
|
3578
|
-
return this.
|
|
3580
|
+
protoOf(ParseException).e = function () {
|
|
3581
|
+
return this.b34_1;
|
|
3579
3582
|
};
|
|
3580
|
-
protoOf(ParseException).
|
|
3581
|
-
return this.
|
|
3583
|
+
protoOf(ParseException).f = function () {
|
|
3584
|
+
return this.c34_1;
|
|
3582
3585
|
};
|
|
3583
3586
|
function get_origin(_this__u8e3s4) {
|
|
3584
|
-
return PlatformUtils_getInstance().
|
|
3587
|
+
return PlatformUtils_getInstance().p2l_1 ? locationOrigin() : 'http://localhost';
|
|
3585
3588
|
}
|
|
3586
3589
|
function locationOrigin() {
|
|
3587
3590
|
return function () {
|
|
@@ -3599,15 +3602,17 @@
|
|
|
3599
3602
|
}();
|
|
3600
3603
|
}
|
|
3601
3604
|
//region block: post-declaration
|
|
3602
|
-
protoOf(EmptyHeaders).
|
|
3603
|
-
protoOf(EmptyHeaders).
|
|
3604
|
-
protoOf(EmptyHeaders).
|
|
3605
|
-
protoOf(EmptyParameters).
|
|
3605
|
+
protoOf(EmptyHeaders).q2k = get;
|
|
3606
|
+
protoOf(EmptyHeaders).x2l = contains_0;
|
|
3607
|
+
protoOf(EmptyHeaders).e2m = forEach;
|
|
3608
|
+
protoOf(EmptyParameters).q2k = get;
|
|
3609
|
+
protoOf(EmptyParameters).x2l = contains_0;
|
|
3610
|
+
protoOf(EmptyParameters).e2m = forEach;
|
|
3606
3611
|
defineProp(protoOf(ParseException), 'message', function () {
|
|
3607
|
-
return this.
|
|
3612
|
+
return this.e();
|
|
3608
3613
|
});
|
|
3609
3614
|
defineProp(protoOf(ParseException), 'cause', function () {
|
|
3610
|
-
return this.
|
|
3615
|
+
return this.f();
|
|
3611
3616
|
});
|
|
3612
3617
|
//endregion
|
|
3613
3618
|
//region block: init
|
|
@@ -3658,8 +3663,8 @@
|
|
|
3658
3663
|
_.$_$.j1 = charset_0;
|
|
3659
3664
|
_.$_$.k1 = charset;
|
|
3660
3665
|
_.$_$.l1 = contentLength;
|
|
3661
|
-
_.$_$.m1 =
|
|
3662
|
-
_.$_$.n1 =
|
|
3666
|
+
_.$_$.m1 = contentType_0;
|
|
3667
|
+
_.$_$.n1 = contentType;
|
|
3663
3668
|
_.$_$.o1 = get_encodedPath;
|
|
3664
3669
|
_.$_$.p1 = headersOf;
|
|
3665
3670
|
_.$_$.q1 = isSecure;
|