@dmarket/p2p-tracker-core 1.0.4-SNAPSHOT.37 → 1.1.0-beta
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/VERSION +6 -6
- package/dmarket-p2p-tracker-core-domain.mjs +5147 -4020
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +320 -216
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2110 -2110
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1678 -1678
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1413 -1382
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +1954 -1950
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +319 -319
- package/ktor-ktor-http.mjs +700 -649
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +622 -622
- package/ktor-ktor-utils.mjs +864 -691
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +390 -390
- package/p2p-tracker-core.d.mts +7 -4
- package/p2p-tracker-core.mjs +18930 -15269
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
- package/pkg/README.md +21 -9
- package/pkg/client_wasm.d.ts +4 -0
- package/pkg/client_wasm.js +4 -0
- package/pkg/client_wasm_bg.wasm +0 -0
- package/transport/README.md +81 -13
- package/transport/dist/channel.d.ts.map +1 -1
- package/transport/dist/channel.js.map +1 -1
- package/transport/dist/index.d.ts +2 -0
- package/transport/dist/index.d.ts.map +1 -1
- package/transport/dist/index.js +3 -2
- package/transport/dist/index.js.map +1 -1
- package/transport/dist/node.d.ts +4 -0
- package/transport/dist/node.d.ts.map +1 -0
- package/transport/dist/node.js +62 -0
- package/transport/dist/node.js.map +1 -0
- package/transport/dist/prover.d.ts +2 -0
- package/transport/dist/prover.d.ts.map +1 -1
- package/transport/dist/prover.js.map +1 -1
- package/transport/dist/tcp.d.ts +38 -0
- package/transport/dist/tcp.d.ts.map +1 -0
- package/transport/dist/tcp.js +88 -0
- package/transport/dist/tcp.js.map +1 -0
- package/transport/dist/types.d.ts +1 -1
- package/transport/package.json +7 -1
package/ktor-ktor-http.mjs
CHANGED
|
@@ -58,11 +58,13 @@ import {
|
|
|
58
58
|
hashCodeq5arwsb9dgti as hashCode,
|
|
59
59
|
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
60
60
|
setOf45ia9pnfhe90 as setOf,
|
|
61
|
+
IllegalStateException_init_$Create$3394faf8tdm0h as IllegalStateException_init_$Create$,
|
|
62
|
+
listOf1jh22dvmctj1r as listOf,
|
|
61
63
|
get_lastIndex1yw0x4k50k51w as get_lastIndex,
|
|
62
64
|
first3kg261hmihapu as first,
|
|
63
65
|
last2n4gf5az1lkn4 as last_0,
|
|
64
66
|
get_lastIndexld83bqhfgcdd as get_lastIndex_0,
|
|
65
|
-
listOfvhqybd2zx248 as
|
|
67
|
+
listOfvhqybd2zx248 as listOf_0,
|
|
66
68
|
emptyMapr06gerzljqtm as emptyMap,
|
|
67
69
|
emptySetcxexqki71qfa as emptySet,
|
|
68
70
|
toDoubleOrNullkxwozihadygj as toDoubleOrNull,
|
|
@@ -74,7 +76,6 @@ import {
|
|
|
74
76
|
Char__compareTo_impl_ypi4mb1yxpplfe5vmm as Char__compareTo_impl_ypi4mb,
|
|
75
77
|
IllegalArgumentException_init_$Init$2il8idvytc2u5 as IllegalArgumentException_init_$Init$,
|
|
76
78
|
toLongOrNullutqivezb0wx1 as toLongOrNull,
|
|
77
|
-
listOf1jh22dvmctj1r as listOf_0,
|
|
78
79
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
79
80
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
80
81
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
@@ -117,6 +118,8 @@ import {
|
|
|
117
118
|
get_name2f11g4r0d5pxp as get_name,
|
|
118
119
|
} from './ktor-ktor-io.mjs';
|
|
119
120
|
import {
|
|
121
|
+
GMTDateParser2n3dcykk4v76n as GMTDateParser,
|
|
122
|
+
InvalidDateStringException32oxg8bbalei2 as InvalidDateStringException,
|
|
120
123
|
StringValuesBuilderImpl3ey9etj3bwnqf as StringValuesBuilderImpl,
|
|
121
124
|
StringValuesImpl2l95y9du7b61t as StringValuesImpl,
|
|
122
125
|
StringValuesjqid5a6cuday as StringValues,
|
|
@@ -195,12 +198,12 @@ initMetadataForClass(TextContent, 'TextContent', VOID, ByteArrayContent);
|
|
|
195
198
|
function containsCode($this, code) {
|
|
196
199
|
if (!((code >>> 7 | 0) === 0))
|
|
197
200
|
return false;
|
|
198
|
-
var bits = code < 64 ? $this.
|
|
201
|
+
var bits = code < 64 ? $this.h46_1 : $this.i46_1;
|
|
199
202
|
return equalsLong(bitwiseAnd(shiftRightUnsigned(bits, code), new Long(1, 0)), new Long(1, 0));
|
|
200
203
|
}
|
|
201
204
|
function Companion() {
|
|
202
205
|
}
|
|
203
|
-
protoOf(Companion).
|
|
206
|
+
protoOf(Companion).j46 = function (chars) {
|
|
204
207
|
var low = new Long(0, 0);
|
|
205
208
|
var high = new Long(0, 0);
|
|
206
209
|
var _iterator__ex2g4s = chars.t();
|
|
@@ -220,27 +223,27 @@ protoOf(Companion).q42 = function (chars) {
|
|
|
220
223
|
}
|
|
221
224
|
return new AsciiBitSet(low, high);
|
|
222
225
|
};
|
|
223
|
-
protoOf(Companion).
|
|
224
|
-
return this.
|
|
226
|
+
protoOf(Companion).k46 = function (chars) {
|
|
227
|
+
return this.j46(asIterable(chars));
|
|
225
228
|
};
|
|
226
229
|
var Companion_instance;
|
|
227
230
|
function Companion_getInstance() {
|
|
228
231
|
return Companion_instance;
|
|
229
232
|
}
|
|
230
233
|
function AsciiBitSet(low, high) {
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
234
|
+
this.h46_1 = low;
|
|
235
|
+
this.i46_1 = high;
|
|
233
236
|
}
|
|
234
237
|
protoOf(AsciiBitSet).gk = function (char) {
|
|
235
238
|
// Inline function 'kotlin.code' call
|
|
236
239
|
var tmp$ret$0 = Char__toInt_impl_vasixd(char);
|
|
237
240
|
return containsCode(this, tmp$ret$0);
|
|
238
241
|
};
|
|
239
|
-
protoOf(AsciiBitSet).
|
|
242
|
+
protoOf(AsciiBitSet).l46 = function (byte) {
|
|
240
243
|
return containsCode(this, byte);
|
|
241
244
|
};
|
|
242
|
-
protoOf(AsciiBitSet).
|
|
243
|
-
return new AsciiBitSet(bitwiseOr(this.
|
|
245
|
+
protoOf(AsciiBitSet).m46 = function (other) {
|
|
246
|
+
return new AsciiBitSet(bitwiseOr(this.h46_1, other.h46_1), bitwiseOr(this.i46_1, other.i46_1));
|
|
244
247
|
};
|
|
245
248
|
function get_URL_ALPHABET() {
|
|
246
249
|
_init_properties_Codecs_kt__fudxxf();
|
|
@@ -271,7 +274,7 @@ var URL_PARAMETER_CHARS;
|
|
|
271
274
|
function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
272
275
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
273
276
|
_init_properties_Codecs_kt__fudxxf();
|
|
274
|
-
var content = toByteArray(_this__u8e3s4, Charsets_getInstance().
|
|
277
|
+
var content = toByteArray(_this__u8e3s4, Charsets_getInstance().h3x_1);
|
|
275
278
|
// Inline function 'kotlin.text.buildString' call
|
|
276
279
|
var capacity = content.length;
|
|
277
280
|
// Inline function 'kotlin.apply' call
|
|
@@ -281,7 +284,7 @@ function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
|
281
284
|
while (inductionVariable < last) {
|
|
282
285
|
var byte = content[inductionVariable];
|
|
283
286
|
inductionVariable = inductionVariable + 1 | 0;
|
|
284
|
-
if (get_URL_PARAMETER_CHARS().
|
|
287
|
+
if (get_URL_PARAMETER_CHARS().l46(byte))
|
|
285
288
|
this_0.s(numberToChar(byte));
|
|
286
289
|
else {
|
|
287
290
|
var tmp;
|
|
@@ -317,14 +320,14 @@ function hexDigitToChar(digit) {
|
|
|
317
320
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
318
321
|
start = start === VOID ? 0 : start;
|
|
319
322
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
320
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
323
|
+
charset = charset === VOID ? Charsets_getInstance().h3x_1 : charset;
|
|
321
324
|
_init_properties_Codecs_kt__fudxxf();
|
|
322
325
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
323
326
|
}
|
|
324
327
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
325
328
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
326
329
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
327
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
330
|
+
charset = charset === VOID ? Charsets_getInstance().h3x_1 : charset;
|
|
328
331
|
_init_properties_Codecs_kt__fudxxf();
|
|
329
332
|
var content = toByteArray(_this__u8e3s4, charset);
|
|
330
333
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -346,7 +349,7 @@ function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset
|
|
|
346
349
|
else
|
|
347
350
|
this_0.q('%20');
|
|
348
351
|
else {
|
|
349
|
-
if (get_URL_ALPHABET().
|
|
352
|
+
if (get_URL_ALPHABET().l46(byte) || (!encodeFull && get_URL_PROTOCOL_PART().l46(byte)))
|
|
350
353
|
this_0.s(numberToChar(byte));
|
|
351
354
|
else {
|
|
352
355
|
appendPercentEncoded(this_0, byte);
|
|
@@ -359,7 +362,7 @@ function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset
|
|
|
359
362
|
start = start === VOID ? 0 : start;
|
|
360
363
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
361
364
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
362
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
365
|
+
charset = charset === VOID ? Charsets_getInstance().h3x_1 : charset;
|
|
363
366
|
_init_properties_Codecs_kt__fudxxf();
|
|
364
367
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
365
368
|
}
|
|
@@ -374,7 +377,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
374
377
|
// Inline function 'kotlin.text.buildString' call
|
|
375
378
|
// Inline function 'kotlin.apply' call
|
|
376
379
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
377
|
-
var charset = Charsets_getInstance().
|
|
380
|
+
var charset = Charsets_getInstance().h3x_1;
|
|
378
381
|
var index = 0;
|
|
379
382
|
$l$loop_1: while (index < _this__u8e3s4.length) {
|
|
380
383
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
@@ -399,7 +402,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
399
402
|
continue $l$loop_1;
|
|
400
403
|
}
|
|
401
404
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
402
|
-
var tmp = encode(charset.
|
|
405
|
+
var tmp = encode(charset.k3x(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
403
406
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
404
407
|
index = index + symbolSize | 0;
|
|
405
408
|
}
|
|
@@ -492,7 +495,7 @@ function encodeURLPath$lambda($$this$buildString) {
|
|
|
492
495
|
function forEach$lambda($block) {
|
|
493
496
|
return function (buffer) {
|
|
494
497
|
while (canRead(buffer)) {
|
|
495
|
-
$block(buffer.
|
|
498
|
+
$block(buffer.d3j());
|
|
496
499
|
}
|
|
497
500
|
return true;
|
|
498
501
|
};
|
|
@@ -501,12 +504,12 @@ var properties_initialized_Codecs_kt_hkj9s1;
|
|
|
501
504
|
function _init_properties_Codecs_kt__fudxxf() {
|
|
502
505
|
if (!properties_initialized_Codecs_kt_hkj9s1) {
|
|
503
506
|
properties_initialized_Codecs_kt_hkj9s1 = true;
|
|
504
|
-
URL_ALPHABET = Companion_instance.
|
|
505
|
-
HEX_ALPHABET = Companion_instance.
|
|
506
|
-
URL_PROTOCOL_PART = Companion_instance.
|
|
507
|
-
VALID_PATH_PART = Companion_instance.
|
|
508
|
-
ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().
|
|
509
|
-
URL_PARAMETER_CHARS = get_URL_ALPHABET().
|
|
507
|
+
URL_ALPHABET = Companion_instance.j46(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))));
|
|
508
|
+
HEX_ALPHABET = Companion_instance.j46(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(102)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(70))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
509
|
+
URL_PROTOCOL_PART = Companion_instance.k46(":/?#[]@!$&'()*,;=-._~+");
|
|
510
|
+
VALID_PATH_PART = Companion_instance.k46(":@!$&'()*+,;=-._~");
|
|
511
|
+
ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().m46(Companion_instance.k46('!#$&+-.^_`|~'));
|
|
512
|
+
URL_PARAMETER_CHARS = get_URL_ALPHABET().m46(Companion_instance.k46('-._~'));
|
|
510
513
|
}
|
|
511
514
|
}
|
|
512
515
|
var textSubTypes;
|
|
@@ -520,18 +523,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
520
523
|
}
|
|
521
524
|
function hasParameter($this, name, value) {
|
|
522
525
|
var tmp;
|
|
523
|
-
switch ($this.
|
|
526
|
+
switch ($this.o46_1.e1()) {
|
|
524
527
|
case 0:
|
|
525
528
|
tmp = false;
|
|
526
529
|
break;
|
|
527
530
|
case 1:
|
|
528
531
|
// Inline function 'kotlin.let' call
|
|
529
532
|
|
|
530
|
-
var it = $this.
|
|
531
|
-
tmp = (equals(it.
|
|
533
|
+
var it = $this.o46_1.f1(0);
|
|
534
|
+
tmp = (equals(it.p46_1, name, true) && equals(it.q46_1, value, true));
|
|
532
535
|
break;
|
|
533
536
|
default:
|
|
534
|
-
var tmp0 = $this.
|
|
537
|
+
var tmp0 = $this.o46_1;
|
|
535
538
|
var tmp$ret$2;
|
|
536
539
|
$l$block_0: {
|
|
537
540
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -548,7 +551,7 @@ function hasParameter($this, name, value) {
|
|
|
548
551
|
var _iterator__ex2g4s = tmp0.t();
|
|
549
552
|
while (_iterator__ex2g4s.u()) {
|
|
550
553
|
var element = _iterator__ex2g4s.v();
|
|
551
|
-
if (equals(element.
|
|
554
|
+
if (equals(element.p46_1, name, true) && equals(element.q46_1, value, true)) {
|
|
552
555
|
tmp$ret$2 = true;
|
|
553
556
|
break $l$block_0;
|
|
554
557
|
}
|
|
@@ -563,20 +566,20 @@ function hasParameter($this, name, value) {
|
|
|
563
566
|
}
|
|
564
567
|
function Companion_0() {
|
|
565
568
|
Companion_instance_0 = this;
|
|
566
|
-
this.
|
|
569
|
+
this.s46_1 = ContentType_init_$Create$('*', '*');
|
|
567
570
|
}
|
|
568
|
-
protoOf(Companion_0).
|
|
571
|
+
protoOf(Companion_0).lo = function (value) {
|
|
569
572
|
if (isBlank(value))
|
|
570
|
-
return this.
|
|
573
|
+
return this.s46_1;
|
|
571
574
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
572
575
|
var headerValue = last(parseHeaderValue(value));
|
|
573
|
-
var tmp0 = headerValue.
|
|
574
|
-
var parameters = headerValue.
|
|
576
|
+
var tmp0 = headerValue.t46_1;
|
|
577
|
+
var parameters = headerValue.u46_1;
|
|
575
578
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
576
579
|
if (slash === -1) {
|
|
577
580
|
// Inline function 'kotlin.text.trim' call
|
|
578
581
|
if (toString_0(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
579
|
-
return Companion_getInstance_0().
|
|
582
|
+
return Companion_getInstance_0().s46_1;
|
|
580
583
|
throw new BadContentTypeFormatException(value);
|
|
581
584
|
}
|
|
582
585
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -612,30 +615,30 @@ function Companion_getInstance_0() {
|
|
|
612
615
|
}
|
|
613
616
|
function Application() {
|
|
614
617
|
Application_instance = 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
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
618
|
+
this.w46_1 = 'application';
|
|
619
|
+
this.x46_1 = ContentType_init_$Create$('application', '*');
|
|
620
|
+
this.y46_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
621
|
+
this.z46_1 = ContentType_init_$Create$('application', 'cbor');
|
|
622
|
+
this.a47_1 = ContentType_init_$Create$('application', 'json');
|
|
623
|
+
this.b47_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
624
|
+
this.c47_1 = ContentType_init_$Create$('application', 'javascript');
|
|
625
|
+
this.d47_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
626
|
+
this.e47_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
627
|
+
this.f47_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
628
|
+
this.g47_1 = ContentType_init_$Create$('application', 'xml');
|
|
629
|
+
this.h47_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
630
|
+
this.i47_1 = ContentType_init_$Create$('application', 'yaml');
|
|
631
|
+
this.j47_1 = ContentType_init_$Create$('application', 'zip');
|
|
632
|
+
this.k47_1 = ContentType_init_$Create$('application', 'gzip');
|
|
633
|
+
this.l47_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
634
|
+
this.m47_1 = ContentType_init_$Create$('application', 'pdf');
|
|
635
|
+
this.n47_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
636
|
+
this.o47_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
637
|
+
this.p47_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
638
|
+
this.q47_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
639
|
+
this.r47_1 = ContentType_init_$Create$('application', 'wasm');
|
|
640
|
+
this.s47_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
641
|
+
this.t47_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
639
642
|
}
|
|
640
643
|
var Application_instance;
|
|
641
644
|
function Application_getInstance() {
|
|
@@ -645,17 +648,17 @@ function Application_getInstance() {
|
|
|
645
648
|
}
|
|
646
649
|
function MultiPart() {
|
|
647
650
|
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).
|
|
651
|
+
this.u47_1 = 'multipart';
|
|
652
|
+
this.v47_1 = ContentType_init_$Create$('multipart', '*');
|
|
653
|
+
this.w47_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
654
|
+
this.x47_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
655
|
+
this.y47_1 = ContentType_init_$Create$('multipart', 'related');
|
|
656
|
+
this.z47_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
657
|
+
this.a48_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
658
|
+
this.b48_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
659
|
+
this.c48_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
660
|
+
}
|
|
661
|
+
protoOf(MultiPart).d48 = function (contentType) {
|
|
659
662
|
return startsWith(contentType, 'multipart/', true);
|
|
660
663
|
};
|
|
661
664
|
var MultiPart_instance;
|
|
@@ -666,17 +669,17 @@ function MultiPart_getInstance() {
|
|
|
666
669
|
}
|
|
667
670
|
function Text() {
|
|
668
671
|
Text_instance = this;
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
679
|
-
this.
|
|
672
|
+
this.e48_1 = 'text';
|
|
673
|
+
this.f48_1 = ContentType_init_$Create$('text', '*');
|
|
674
|
+
this.g48_1 = ContentType_init_$Create$('text', 'plain');
|
|
675
|
+
this.h48_1 = ContentType_init_$Create$('text', 'css');
|
|
676
|
+
this.i48_1 = ContentType_init_$Create$('text', 'csv');
|
|
677
|
+
this.j48_1 = ContentType_init_$Create$('text', 'html');
|
|
678
|
+
this.k48_1 = ContentType_init_$Create$('text', 'javascript');
|
|
679
|
+
this.l48_1 = ContentType_init_$Create$('text', 'markdown');
|
|
680
|
+
this.m48_1 = ContentType_init_$Create$('text', 'vcard');
|
|
681
|
+
this.n48_1 = ContentType_init_$Create$('text', 'xml');
|
|
682
|
+
this.o48_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
680
683
|
}
|
|
681
684
|
var Text_instance;
|
|
682
685
|
function Text_getInstance() {
|
|
@@ -688,33 +691,33 @@ function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
|
688
691
|
Companion_getInstance_0();
|
|
689
692
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
690
693
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
691
|
-
this.
|
|
692
|
-
this.
|
|
694
|
+
this.r48_1 = contentType;
|
|
695
|
+
this.s48_1 = contentSubtype;
|
|
693
696
|
}
|
|
694
|
-
protoOf(ContentType).
|
|
697
|
+
protoOf(ContentType).t48 = function (name, value) {
|
|
695
698
|
if (hasParameter(this, name, value))
|
|
696
699
|
return this;
|
|
697
|
-
return new ContentType(this.
|
|
700
|
+
return new ContentType(this.r48_1, this.s48_1, this.n46_1, plus_1(this.o46_1, HeaderValueParam_init_$Create$(name, value)));
|
|
698
701
|
};
|
|
699
|
-
protoOf(ContentType).
|
|
700
|
-
if (!(pattern.
|
|
702
|
+
protoOf(ContentType).u48 = function (pattern) {
|
|
703
|
+
if (!(pattern.r48_1 === '*') && !equals(pattern.r48_1, this.r48_1, true)) {
|
|
701
704
|
return false;
|
|
702
705
|
}
|
|
703
|
-
if (!(pattern.
|
|
706
|
+
if (!(pattern.s48_1 === '*') && !equals(pattern.s48_1, this.s48_1, true)) {
|
|
704
707
|
return false;
|
|
705
708
|
}
|
|
706
|
-
var _iterator__ex2g4s = pattern.
|
|
709
|
+
var _iterator__ex2g4s = pattern.o46_1.t();
|
|
707
710
|
while (_iterator__ex2g4s.u()) {
|
|
708
711
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
709
|
-
var patternName = _destruct__k2r9zo.
|
|
710
|
-
var patternValue = _destruct__k2r9zo.
|
|
712
|
+
var patternName = _destruct__k2r9zo.pg();
|
|
713
|
+
var patternValue = _destruct__k2r9zo.qg();
|
|
711
714
|
var tmp;
|
|
712
715
|
if (patternName === '*') {
|
|
713
716
|
var tmp_0;
|
|
714
717
|
if (patternValue === '*') {
|
|
715
718
|
tmp_0 = true;
|
|
716
719
|
} else {
|
|
717
|
-
var tmp0 = this.
|
|
720
|
+
var tmp0 = this.o46_1;
|
|
718
721
|
var tmp$ret$0;
|
|
719
722
|
$l$block_0: {
|
|
720
723
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -731,7 +734,7 @@ protoOf(ContentType).b45 = function (pattern) {
|
|
|
731
734
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
732
735
|
while (_iterator__ex2g4s_0.u()) {
|
|
733
736
|
var element = _iterator__ex2g4s_0.v();
|
|
734
|
-
if (equals(element.
|
|
737
|
+
if (equals(element.q46_1, patternValue, true)) {
|
|
735
738
|
tmp$ret$0 = true;
|
|
736
739
|
break $l$block_0;
|
|
737
740
|
}
|
|
@@ -742,7 +745,7 @@ protoOf(ContentType).b45 = function (pattern) {
|
|
|
742
745
|
}
|
|
743
746
|
tmp = tmp_0;
|
|
744
747
|
} else {
|
|
745
|
-
var value = this.
|
|
748
|
+
var value = this.v48(patternName);
|
|
746
749
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
747
750
|
}
|
|
748
751
|
var matches = tmp;
|
|
@@ -757,17 +760,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
757
760
|
var tmp_0;
|
|
758
761
|
var tmp_1;
|
|
759
762
|
if (other instanceof ContentType) {
|
|
760
|
-
tmp_1 = equals(this.
|
|
763
|
+
tmp_1 = equals(this.r48_1, other.r48_1, true);
|
|
761
764
|
} else {
|
|
762
765
|
tmp_1 = false;
|
|
763
766
|
}
|
|
764
767
|
if (tmp_1) {
|
|
765
|
-
tmp_0 = equals(this.
|
|
768
|
+
tmp_0 = equals(this.s48_1, other.s48_1, true);
|
|
766
769
|
} else {
|
|
767
770
|
tmp_0 = false;
|
|
768
771
|
}
|
|
769
772
|
if (tmp_0) {
|
|
770
|
-
tmp = equals_0(this.
|
|
773
|
+
tmp = equals_0(this.o46_1, other.o46_1);
|
|
771
774
|
} else {
|
|
772
775
|
tmp = false;
|
|
773
776
|
}
|
|
@@ -776,20 +779,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
776
779
|
protoOf(ContentType).hashCode = function () {
|
|
777
780
|
// Inline function 'kotlin.text.lowercase' call
|
|
778
781
|
// Inline function 'kotlin.js.asDynamic' call
|
|
779
|
-
var tmp$ret$0 = this.
|
|
782
|
+
var tmp$ret$0 = this.r48_1.toLowerCase();
|
|
780
783
|
var result = getStringHashCode(tmp$ret$0);
|
|
781
784
|
var tmp = result;
|
|
782
785
|
var tmp_0 = imul(31, result);
|
|
783
786
|
// Inline function 'kotlin.text.lowercase' call
|
|
784
787
|
// Inline function 'kotlin.js.asDynamic' call
|
|
785
|
-
var tmp$ret$2 = this.
|
|
788
|
+
var tmp$ret$2 = this.s48_1.toLowerCase();
|
|
786
789
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
787
|
-
result = result + imul(31, hashCode(this.
|
|
790
|
+
result = result + imul(31, hashCode(this.o46_1)) | 0;
|
|
788
791
|
return result;
|
|
789
792
|
};
|
|
790
793
|
function charset(_this__u8e3s4) {
|
|
791
794
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
792
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
795
|
+
var tmp0_safe_receiver = _this__u8e3s4.v48('charset');
|
|
793
796
|
var tmp;
|
|
794
797
|
if (tmp0_safe_receiver == null) {
|
|
795
798
|
tmp = null;
|
|
@@ -818,7 +821,7 @@ function BadContentTypeFormatException(value) {
|
|
|
818
821
|
}
|
|
819
822
|
function withCharset(_this__u8e3s4, charset) {
|
|
820
823
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
821
|
-
return _this__u8e3s4.
|
|
824
|
+
return _this__u8e3s4.t48('charset', get_name(charset));
|
|
822
825
|
}
|
|
823
826
|
var properties_initialized_ContentTypes_kt_1k2nnm;
|
|
824
827
|
function _init_properties_ContentTypes_kt__i9dj34() {
|
|
@@ -827,6 +830,41 @@ function _init_properties_ContentTypes_kt__i9dj34() {
|
|
|
827
830
|
textSubTypes = setOf(['json', 'ld+json', 'xml', 'xhtml+xml', 'rss+xml', 'atom+xml', 'x-www-form-urlencoded', 'svg+xml']);
|
|
828
831
|
}
|
|
829
832
|
}
|
|
833
|
+
function get_HTTP_DATE_FORMATS() {
|
|
834
|
+
_init_properties_DateUtils_kt__b7z3g1();
|
|
835
|
+
return HTTP_DATE_FORMATS;
|
|
836
|
+
}
|
|
837
|
+
var HTTP_DATE_FORMATS;
|
|
838
|
+
function fromHttpToGmtDate(_this__u8e3s4) {
|
|
839
|
+
_init_properties_DateUtils_kt__b7z3g1();
|
|
840
|
+
// Inline function 'kotlin.text.trim' call
|
|
841
|
+
// Inline function 'kotlin.with' call
|
|
842
|
+
var $this$with = toString_0(trim(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE()));
|
|
843
|
+
var _iterator__ex2g4s = get_HTTP_DATE_FORMATS().t();
|
|
844
|
+
while (_iterator__ex2g4s.u()) {
|
|
845
|
+
var format = _iterator__ex2g4s.v();
|
|
846
|
+
try {
|
|
847
|
+
var parser = new GMTDateParser(format);
|
|
848
|
+
return parser.lo(_this__u8e3s4);
|
|
849
|
+
} catch ($p) {
|
|
850
|
+
if ($p instanceof InvalidDateStringException) {
|
|
851
|
+
var _unused_var__etf5q3 = $p;
|
|
852
|
+
} else {
|
|
853
|
+
throw $p;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
// Inline function 'kotlin.error' call
|
|
858
|
+
var message = 'Failed to parse date: ' + $this$with;
|
|
859
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
860
|
+
}
|
|
861
|
+
var properties_initialized_DateUtils_kt_j3k3il;
|
|
862
|
+
function _init_properties_DateUtils_kt__b7z3g1() {
|
|
863
|
+
if (!properties_initialized_DateUtils_kt_j3k3il) {
|
|
864
|
+
properties_initialized_DateUtils_kt_j3k3il = true;
|
|
865
|
+
HTTP_DATE_FORMATS = listOf(['***, dd MMM YYYY hh:mm:ss zzz', '****, dd-MMM-YYYY hh:mm:ss zzz', '*** MMM d hh:mm:ss YYYY', '***, dd-MMM-YYYY hh:mm:ss zzz', '***, dd-MMM-YYYY hh-mm-ss zzz', '***, dd MMM YYYY hh:mm:ss zzz', '*** dd-MMM-YYYY hh:mm:ss zzz', '*** dd MMM YYYY hh:mm:ss zzz', '*** dd-MMM-YYYY hh-mm-ss zzz', '***,dd-MMM-YYYY hh:mm:ss zzz', '*** MMM d YYYY hh:mm:ss zzz']);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
830
868
|
function get_HeaderFieldValueSeparators() {
|
|
831
869
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
832
870
|
return HeaderFieldValueSeparators;
|
|
@@ -840,19 +878,19 @@ function Companion_getInstance_1() {
|
|
|
840
878
|
}
|
|
841
879
|
function HeaderValueWithParameters(content, parameters) {
|
|
842
880
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
881
|
+
this.n46_1 = content;
|
|
882
|
+
this.o46_1 = parameters;
|
|
845
883
|
}
|
|
846
|
-
protoOf(HeaderValueWithParameters).
|
|
884
|
+
protoOf(HeaderValueWithParameters).v48 = function (name) {
|
|
847
885
|
var inductionVariable = 0;
|
|
848
|
-
var last = get_lastIndex(this.
|
|
886
|
+
var last = get_lastIndex(this.o46_1);
|
|
849
887
|
if (inductionVariable <= last)
|
|
850
888
|
do {
|
|
851
889
|
var index = inductionVariable;
|
|
852
890
|
inductionVariable = inductionVariable + 1 | 0;
|
|
853
|
-
var parameter = this.
|
|
854
|
-
if (equals(parameter.
|
|
855
|
-
return parameter.
|
|
891
|
+
var parameter = this.o46_1.f1(index);
|
|
892
|
+
if (equals(parameter.p46_1, name, true)) {
|
|
893
|
+
return parameter.q46_1;
|
|
856
894
|
}
|
|
857
895
|
}
|
|
858
896
|
while (!(index === last));
|
|
@@ -860,34 +898,34 @@ protoOf(HeaderValueWithParameters).c45 = function (name) {
|
|
|
860
898
|
};
|
|
861
899
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
862
900
|
var tmp;
|
|
863
|
-
if (this.
|
|
864
|
-
tmp = this.
|
|
901
|
+
if (this.o46_1.r()) {
|
|
902
|
+
tmp = this.n46_1;
|
|
865
903
|
} else {
|
|
866
|
-
var tmp_0 = this.
|
|
904
|
+
var tmp_0 = this.n46_1.length;
|
|
867
905
|
// Inline function 'kotlin.collections.sumOf' call
|
|
868
906
|
var sum = 0;
|
|
869
|
-
var _iterator__ex2g4s = this.
|
|
907
|
+
var _iterator__ex2g4s = this.o46_1.t();
|
|
870
908
|
while (_iterator__ex2g4s.u()) {
|
|
871
909
|
var element = _iterator__ex2g4s.v();
|
|
872
910
|
var tmp_1 = sum;
|
|
873
|
-
sum = tmp_1 + ((element.
|
|
911
|
+
sum = tmp_1 + ((element.p46_1.length + element.q46_1.length | 0) + 3 | 0) | 0;
|
|
874
912
|
}
|
|
875
913
|
var size = tmp_0 + sum | 0;
|
|
876
914
|
// Inline function 'kotlin.apply' call
|
|
877
915
|
var this_0 = StringBuilder_init_$Create$(size);
|
|
878
|
-
this_0.q(this.
|
|
916
|
+
this_0.q(this.n46_1);
|
|
879
917
|
var inductionVariable = 0;
|
|
880
|
-
var last = get_lastIndex(this.
|
|
918
|
+
var last = get_lastIndex(this.o46_1);
|
|
881
919
|
if (inductionVariable <= last)
|
|
882
920
|
do {
|
|
883
921
|
var index = inductionVariable;
|
|
884
922
|
inductionVariable = inductionVariable + 1 | 0;
|
|
885
|
-
var element_0 = this.
|
|
923
|
+
var element_0 = this.o46_1.f1(index);
|
|
886
924
|
this_0.q('; ');
|
|
887
|
-
this_0.q(element_0.
|
|
925
|
+
this_0.q(element_0.p46_1);
|
|
888
926
|
this_0.q('=');
|
|
889
927
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
890
|
-
var this_1 = element_0.
|
|
928
|
+
var this_1 = element_0.q46_1;
|
|
891
929
|
if (needQuotes(this_1))
|
|
892
930
|
this_0.q(quote(this_1));
|
|
893
931
|
else
|
|
@@ -979,27 +1017,27 @@ var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
|
979
1017
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
980
1018
|
if (!properties_initialized_HeaderValueWithParameters_kt_yu5xg) {
|
|
981
1019
|
properties_initialized_HeaderValueWithParameters_kt_yu5xg = true;
|
|
982
|
-
HeaderFieldValueSeparators = Companion_instance.
|
|
1020
|
+
HeaderFieldValueSeparators = Companion_instance.k46('()<>@,;:\\"/[]?={} \t\n\r');
|
|
983
1021
|
}
|
|
984
1022
|
}
|
|
985
1023
|
function HeadersBuilder(size) {
|
|
986
1024
|
size = size === VOID ? 8 : size;
|
|
987
1025
|
StringValuesBuilderImpl.call(this, true, size);
|
|
988
1026
|
}
|
|
989
|
-
protoOf(HeadersBuilder).
|
|
990
|
-
return new HeadersImpl(this.
|
|
1027
|
+
protoOf(HeadersBuilder).a43 = function () {
|
|
1028
|
+
return new HeadersImpl(this.p40_1);
|
|
991
1029
|
};
|
|
992
|
-
protoOf(HeadersBuilder).
|
|
993
|
-
protoOf(StringValuesBuilderImpl).
|
|
994
|
-
HttpHeaders_getInstance().
|
|
1030
|
+
protoOf(HeadersBuilder).q40 = function (name) {
|
|
1031
|
+
protoOf(StringValuesBuilderImpl).q40.call(this, name);
|
|
1032
|
+
HttpHeaders_getInstance().x4c(name);
|
|
995
1033
|
};
|
|
996
|
-
protoOf(HeadersBuilder).
|
|
997
|
-
protoOf(StringValuesBuilderImpl).
|
|
998
|
-
HttpHeaders_getInstance().
|
|
1034
|
+
protoOf(HeadersBuilder).v40 = function (value) {
|
|
1035
|
+
protoOf(StringValuesBuilderImpl).v40.call(this, value);
|
|
1036
|
+
HttpHeaders_getInstance().y4c(value);
|
|
999
1037
|
};
|
|
1000
1038
|
function Companion_2() {
|
|
1001
1039
|
Companion_instance_2 = this;
|
|
1002
|
-
this.
|
|
1040
|
+
this.z4c_1 = EmptyHeaders_instance;
|
|
1003
1041
|
}
|
|
1004
1042
|
var Companion_instance_2;
|
|
1005
1043
|
function Companion_getInstance_2() {
|
|
@@ -1008,34 +1046,34 @@ function Companion_getInstance_2() {
|
|
|
1008
1046
|
return Companion_instance_2;
|
|
1009
1047
|
}
|
|
1010
1048
|
function headersOf(name, value) {
|
|
1011
|
-
return new HeadersSingleImpl(name,
|
|
1049
|
+
return new HeadersSingleImpl(name, listOf_0(value));
|
|
1012
1050
|
}
|
|
1013
1051
|
function HeadersImpl(values) {
|
|
1014
1052
|
values = values === VOID ? emptyMap() : values;
|
|
1015
1053
|
StringValuesImpl.call(this, true, values);
|
|
1016
1054
|
}
|
|
1017
1055
|
protoOf(HeadersImpl).toString = function () {
|
|
1018
|
-
return 'Headers ' + toString_0(this.
|
|
1056
|
+
return 'Headers ' + toString_0(this.m40());
|
|
1019
1057
|
};
|
|
1020
1058
|
function EmptyHeaders() {
|
|
1021
1059
|
}
|
|
1022
|
-
protoOf(EmptyHeaders).
|
|
1060
|
+
protoOf(EmptyHeaders).r40 = function () {
|
|
1023
1061
|
return true;
|
|
1024
1062
|
};
|
|
1025
|
-
protoOf(EmptyHeaders).
|
|
1063
|
+
protoOf(EmptyHeaders).s40 = function (name) {
|
|
1026
1064
|
return null;
|
|
1027
1065
|
};
|
|
1028
|
-
protoOf(EmptyHeaders).
|
|
1066
|
+
protoOf(EmptyHeaders).t40 = function () {
|
|
1029
1067
|
return emptySet();
|
|
1030
1068
|
};
|
|
1031
|
-
protoOf(EmptyHeaders).
|
|
1069
|
+
protoOf(EmptyHeaders).m40 = function () {
|
|
1032
1070
|
return emptySet();
|
|
1033
1071
|
};
|
|
1034
1072
|
protoOf(EmptyHeaders).r = function () {
|
|
1035
1073
|
return true;
|
|
1036
1074
|
};
|
|
1037
1075
|
protoOf(EmptyHeaders).toString = function () {
|
|
1038
|
-
return 'Headers ' + toString_0(this.
|
|
1076
|
+
return 'Headers ' + toString_0(this.m40());
|
|
1039
1077
|
};
|
|
1040
1078
|
var EmptyHeaders_instance;
|
|
1041
1079
|
function EmptyHeaders_getInstance() {
|
|
@@ -1045,21 +1083,21 @@ function HeadersSingleImpl(name, values) {
|
|
|
1045
1083
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1046
1084
|
}
|
|
1047
1085
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1048
|
-
return 'Headers ' + toString_0(this.
|
|
1086
|
+
return 'Headers ' + toString_0(this.m40());
|
|
1049
1087
|
};
|
|
1050
1088
|
function HeaderValue(value, params) {
|
|
1051
1089
|
params = params === VOID ? emptyList() : params;
|
|
1052
|
-
this.
|
|
1053
|
-
this.
|
|
1090
|
+
this.t46_1 = value;
|
|
1091
|
+
this.u46_1 = params;
|
|
1054
1092
|
var tmp = this;
|
|
1055
|
-
var tmp0 = this.
|
|
1093
|
+
var tmp0 = this.u46_1;
|
|
1056
1094
|
var tmp$ret$0;
|
|
1057
1095
|
$l$block: {
|
|
1058
1096
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1059
1097
|
var _iterator__ex2g4s = tmp0.t();
|
|
1060
1098
|
while (_iterator__ex2g4s.u()) {
|
|
1061
1099
|
var element = _iterator__ex2g4s.v();
|
|
1062
|
-
if (equals(element.
|
|
1100
|
+
if (equals(element.p46_1, 'q', true)) {
|
|
1063
1101
|
tmp$ret$0 = element;
|
|
1064
1102
|
break $l$block;
|
|
1065
1103
|
}
|
|
@@ -1067,7 +1105,7 @@ function HeaderValue(value, params) {
|
|
|
1067
1105
|
tmp$ret$0 = null;
|
|
1068
1106
|
}
|
|
1069
1107
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
1070
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1108
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q46_1;
|
|
1071
1109
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1072
1110
|
var tmp_0;
|
|
1073
1111
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1083,14 +1121,14 @@ function HeaderValue(value, params) {
|
|
|
1083
1121
|
tmp_0 = tmp_1;
|
|
1084
1122
|
}
|
|
1085
1123
|
var tmp3_elvis_lhs = tmp_0;
|
|
1086
|
-
tmp.
|
|
1124
|
+
tmp.v46_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1087
1125
|
}
|
|
1088
1126
|
protoOf(HeaderValue).toString = function () {
|
|
1089
|
-
return 'HeaderValue(value=' + this.
|
|
1127
|
+
return 'HeaderValue(value=' + this.t46_1 + ', params=' + toString_0(this.u46_1) + ')';
|
|
1090
1128
|
};
|
|
1091
1129
|
protoOf(HeaderValue).hashCode = function () {
|
|
1092
|
-
var result = getStringHashCode(this.
|
|
1093
|
-
result = imul(result, 31) + hashCode(this.
|
|
1130
|
+
var result = getStringHashCode(this.t46_1);
|
|
1131
|
+
result = imul(result, 31) + hashCode(this.u46_1) | 0;
|
|
1094
1132
|
return result;
|
|
1095
1133
|
};
|
|
1096
1134
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1098,9 +1136,9 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1098
1136
|
return true;
|
|
1099
1137
|
if (!(other instanceof HeaderValue))
|
|
1100
1138
|
return false;
|
|
1101
|
-
if (!(this.
|
|
1139
|
+
if (!(this.t46_1 === other.t46_1))
|
|
1102
1140
|
return false;
|
|
1103
|
-
if (!equals_0(this.
|
|
1141
|
+
if (!equals_0(this.u46_1, other.u46_1))
|
|
1104
1142
|
return false;
|
|
1105
1143
|
return true;
|
|
1106
1144
|
};
|
|
@@ -1115,20 +1153,20 @@ function HeaderValueParam_init_$Create$(name, value) {
|
|
|
1115
1153
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1116
1154
|
}
|
|
1117
1155
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1120
|
-
this.
|
|
1156
|
+
this.p46_1 = name;
|
|
1157
|
+
this.q46_1 = value;
|
|
1158
|
+
this.r46_1 = escapeValue;
|
|
1121
1159
|
}
|
|
1122
1160
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1123
1161
|
var tmp;
|
|
1124
1162
|
var tmp_0;
|
|
1125
1163
|
if (other instanceof HeaderValueParam) {
|
|
1126
|
-
tmp_0 = equals(other.
|
|
1164
|
+
tmp_0 = equals(other.p46_1, this.p46_1, true);
|
|
1127
1165
|
} else {
|
|
1128
1166
|
tmp_0 = false;
|
|
1129
1167
|
}
|
|
1130
1168
|
if (tmp_0) {
|
|
1131
|
-
tmp = equals(other.
|
|
1169
|
+
tmp = equals(other.q46_1, this.q46_1, true);
|
|
1132
1170
|
} else {
|
|
1133
1171
|
tmp = false;
|
|
1134
1172
|
}
|
|
@@ -1137,24 +1175,24 @@ protoOf(HeaderValueParam).equals = function (other) {
|
|
|
1137
1175
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1138
1176
|
// Inline function 'kotlin.text.lowercase' call
|
|
1139
1177
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1140
|
-
var tmp$ret$0 = this.
|
|
1178
|
+
var tmp$ret$0 = this.p46_1.toLowerCase();
|
|
1141
1179
|
var result = getStringHashCode(tmp$ret$0);
|
|
1142
1180
|
var tmp = result;
|
|
1143
1181
|
var tmp_0 = imul(31, result);
|
|
1144
1182
|
// Inline function 'kotlin.text.lowercase' call
|
|
1145
1183
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1146
|
-
var tmp$ret$2 = this.
|
|
1184
|
+
var tmp$ret$2 = this.q46_1.toLowerCase();
|
|
1147
1185
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1148
1186
|
return result;
|
|
1149
1187
|
};
|
|
1150
|
-
protoOf(HeaderValueParam).
|
|
1151
|
-
return this.
|
|
1188
|
+
protoOf(HeaderValueParam).pg = function () {
|
|
1189
|
+
return this.p46_1;
|
|
1152
1190
|
};
|
|
1153
|
-
protoOf(HeaderValueParam).
|
|
1154
|
-
return this.
|
|
1191
|
+
protoOf(HeaderValueParam).qg = function () {
|
|
1192
|
+
return this.q46_1;
|
|
1155
1193
|
};
|
|
1156
1194
|
protoOf(HeaderValueParam).toString = function () {
|
|
1157
|
-
return 'HeaderValueParam(name=' + this.
|
|
1195
|
+
return 'HeaderValueParam(name=' + this.p46_1 + ', value=' + this.q46_1 + ', escapeValue=' + this.r46_1 + ')';
|
|
1158
1196
|
};
|
|
1159
1197
|
function parseHeaderValue_0(text, parametersOnly) {
|
|
1160
1198
|
if (text == null) {
|
|
@@ -1213,8 +1251,8 @@ function parseHeaderValueParameter(text, start, parameters) {
|
|
|
1213
1251
|
var tmp0_subject = charCodeAt(text, position);
|
|
1214
1252
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1215
1253
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1216
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1217
|
-
var paramValue = _destruct__k2r9zo.
|
|
1254
|
+
var paramEnd = _destruct__k2r9zo.pg();
|
|
1255
|
+
var paramValue = _destruct__k2r9zo.qg();
|
|
1218
1256
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1219
1257
|
return paramEnd;
|
|
1220
1258
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1292,115 +1330,115 @@ function get_ILLEGAL_HEADER_NAME_CHARS() {
|
|
|
1292
1330
|
var ILLEGAL_HEADER_NAME_CHARS;
|
|
1293
1331
|
function HttpHeaders() {
|
|
1294
1332
|
HttpHeaders_instance = this;
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
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.
|
|
1333
|
+
this.y48_1 = 'Accept';
|
|
1334
|
+
this.z48_1 = 'Accept-Charset';
|
|
1335
|
+
this.a49_1 = 'Accept-Encoding';
|
|
1336
|
+
this.b49_1 = 'Accept-Language';
|
|
1337
|
+
this.c49_1 = 'Accept-Ranges';
|
|
1338
|
+
this.d49_1 = 'Age';
|
|
1339
|
+
this.e49_1 = 'Allow';
|
|
1340
|
+
this.f49_1 = 'ALPN';
|
|
1341
|
+
this.g49_1 = 'Authentication-Info';
|
|
1342
|
+
this.h49_1 = 'Authorization';
|
|
1343
|
+
this.i49_1 = 'Cache-Control';
|
|
1344
|
+
this.j49_1 = 'Connection';
|
|
1345
|
+
this.k49_1 = 'Content-Disposition';
|
|
1346
|
+
this.l49_1 = 'Content-Encoding';
|
|
1347
|
+
this.m49_1 = 'Content-Language';
|
|
1348
|
+
this.n49_1 = 'Content-Length';
|
|
1349
|
+
this.o49_1 = 'Content-Location';
|
|
1350
|
+
this.p49_1 = 'Content-Range';
|
|
1351
|
+
this.q49_1 = 'Content-Type';
|
|
1352
|
+
this.r49_1 = 'Cookie';
|
|
1353
|
+
this.s49_1 = 'DASL';
|
|
1354
|
+
this.t49_1 = 'Date';
|
|
1355
|
+
this.u49_1 = 'DAV';
|
|
1356
|
+
this.v49_1 = 'Depth';
|
|
1357
|
+
this.w49_1 = 'Destination';
|
|
1358
|
+
this.x49_1 = 'ETag';
|
|
1359
|
+
this.y49_1 = 'Expect';
|
|
1360
|
+
this.z49_1 = 'Expires';
|
|
1361
|
+
this.a4a_1 = 'From';
|
|
1362
|
+
this.b4a_1 = 'Forwarded';
|
|
1363
|
+
this.c4a_1 = 'Host';
|
|
1364
|
+
this.d4a_1 = 'HTTP2-Settings';
|
|
1365
|
+
this.e4a_1 = 'If';
|
|
1366
|
+
this.f4a_1 = 'If-Match';
|
|
1367
|
+
this.g4a_1 = 'If-Modified-Since';
|
|
1368
|
+
this.h4a_1 = 'If-None-Match';
|
|
1369
|
+
this.i4a_1 = 'If-Range';
|
|
1370
|
+
this.j4a_1 = 'If-Schedule-Tag-Match';
|
|
1371
|
+
this.k4a_1 = 'If-Unmodified-Since';
|
|
1372
|
+
this.l4a_1 = 'Last-Modified';
|
|
1373
|
+
this.m4a_1 = 'Location';
|
|
1374
|
+
this.n4a_1 = 'Lock-Token';
|
|
1375
|
+
this.o4a_1 = 'Link';
|
|
1376
|
+
this.p4a_1 = 'Max-Forwards';
|
|
1377
|
+
this.q4a_1 = 'MIME-Version';
|
|
1378
|
+
this.r4a_1 = 'Ordering-Type';
|
|
1379
|
+
this.s4a_1 = 'Origin';
|
|
1380
|
+
this.t4a_1 = 'Overwrite';
|
|
1381
|
+
this.u4a_1 = 'Position';
|
|
1382
|
+
this.v4a_1 = 'Pragma';
|
|
1383
|
+
this.w4a_1 = 'Prefer';
|
|
1384
|
+
this.x4a_1 = 'Preference-Applied';
|
|
1385
|
+
this.y4a_1 = 'Proxy-Authenticate';
|
|
1386
|
+
this.z4a_1 = 'Proxy-Authentication-Info';
|
|
1387
|
+
this.a4b_1 = 'Proxy-Authorization';
|
|
1388
|
+
this.b4b_1 = 'Public-Key-Pins';
|
|
1389
|
+
this.c4b_1 = 'Public-Key-Pins-Report-Only';
|
|
1390
|
+
this.d4b_1 = 'Range';
|
|
1391
|
+
this.e4b_1 = 'Referer';
|
|
1392
|
+
this.f4b_1 = 'Retry-After';
|
|
1393
|
+
this.g4b_1 = 'Schedule-Reply';
|
|
1394
|
+
this.h4b_1 = 'Schedule-Tag';
|
|
1395
|
+
this.i4b_1 = 'Sec-WebSocket-Accept';
|
|
1396
|
+
this.j4b_1 = 'Sec-WebSocket-Extensions';
|
|
1397
|
+
this.k4b_1 = 'Sec-WebSocket-Key';
|
|
1398
|
+
this.l4b_1 = 'Sec-WebSocket-Protocol';
|
|
1399
|
+
this.m4b_1 = 'Sec-WebSocket-Version';
|
|
1400
|
+
this.n4b_1 = 'Server';
|
|
1401
|
+
this.o4b_1 = 'Set-Cookie';
|
|
1402
|
+
this.p4b_1 = 'SLUG';
|
|
1403
|
+
this.q4b_1 = 'Strict-Transport-Security';
|
|
1404
|
+
this.r4b_1 = 'TE';
|
|
1405
|
+
this.s4b_1 = 'Timeout';
|
|
1406
|
+
this.t4b_1 = 'Trailer';
|
|
1407
|
+
this.u4b_1 = 'Transfer-Encoding';
|
|
1408
|
+
this.v4b_1 = 'Upgrade';
|
|
1409
|
+
this.w4b_1 = 'User-Agent';
|
|
1410
|
+
this.x4b_1 = 'Vary';
|
|
1411
|
+
this.y4b_1 = 'Via';
|
|
1412
|
+
this.z4b_1 = 'Warning';
|
|
1413
|
+
this.a4c_1 = 'WWW-Authenticate';
|
|
1414
|
+
this.b4c_1 = 'Access-Control-Allow-Origin';
|
|
1415
|
+
this.c4c_1 = 'Access-Control-Allow-Methods';
|
|
1416
|
+
this.d4c_1 = 'Access-Control-Allow-Credentials';
|
|
1417
|
+
this.e4c_1 = 'Access-Control-Allow-Headers';
|
|
1418
|
+
this.f4c_1 = 'Access-Control-Request-Method';
|
|
1419
|
+
this.g4c_1 = 'Access-Control-Request-Headers';
|
|
1420
|
+
this.h4c_1 = 'Access-Control-Expose-Headers';
|
|
1421
|
+
this.i4c_1 = 'Access-Control-Max-Age';
|
|
1422
|
+
this.j4c_1 = 'X-Http-Method-Override';
|
|
1423
|
+
this.k4c_1 = 'X-Forwarded-Host';
|
|
1424
|
+
this.l4c_1 = 'X-Forwarded-Server';
|
|
1425
|
+
this.m4c_1 = 'X-Forwarded-Proto';
|
|
1426
|
+
this.n4c_1 = 'X-Forwarded-For';
|
|
1427
|
+
this.o4c_1 = 'X-Forwarded-Port';
|
|
1428
|
+
this.p4c_1 = 'X-Request-ID';
|
|
1429
|
+
this.q4c_1 = 'X-Correlation-ID';
|
|
1430
|
+
this.r4c_1 = 'X-Total-Count';
|
|
1431
|
+
this.s4c_1 = 'Last-Event-ID';
|
|
1432
|
+
this.t4c_1 = 'TDM-Reservation';
|
|
1433
|
+
this.u4c_1 = 'TDM-Policy';
|
|
1396
1434
|
var tmp = this;
|
|
1397
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1398
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1399
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1400
|
-
tmp.
|
|
1401
|
-
this.
|
|
1438
|
+
tmp.v4c_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1439
|
+
this.w4c_1 = asList(this.v4c_1);
|
|
1402
1440
|
}
|
|
1403
|
-
protoOf(HttpHeaders).
|
|
1441
|
+
protoOf(HttpHeaders).x4c = function (name) {
|
|
1404
1442
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1405
1443
|
var index = 0;
|
|
1406
1444
|
var inductionVariable = 0;
|
|
@@ -1414,7 +1452,7 @@ protoOf(HttpHeaders).f49 = function (name) {
|
|
|
1414
1452
|
}
|
|
1415
1453
|
}
|
|
1416
1454
|
};
|
|
1417
|
-
protoOf(HttpHeaders).
|
|
1455
|
+
protoOf(HttpHeaders).y4c = function (value) {
|
|
1418
1456
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1419
1457
|
var index = 0;
|
|
1420
1458
|
var inductionVariable = 0;
|
|
@@ -1445,8 +1483,8 @@ function IllegalHeaderNameException(headerName, position) {
|
|
|
1445
1483
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1446
1484
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1447
1485
|
captureStack(this, IllegalHeaderNameException);
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1486
|
+
this.a4d_1 = headerName;
|
|
1487
|
+
this.b4d_1 = position;
|
|
1450
1488
|
}
|
|
1451
1489
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1452
1490
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1455,40 +1493,40 @@ function IllegalHeaderValueException(headerValue, position) {
|
|
|
1455
1493
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1456
1494
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1457
1495
|
captureStack(this, IllegalHeaderValueException);
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1496
|
+
this.c4d_1 = headerValue;
|
|
1497
|
+
this.d4d_1 = position;
|
|
1460
1498
|
}
|
|
1461
1499
|
var properties_initialized_HttpHeaders_kt_3d6wem;
|
|
1462
1500
|
function _init_properties_HttpHeaders_kt__8vtb1o() {
|
|
1463
1501
|
if (!properties_initialized_HttpHeaders_kt_3d6wem) {
|
|
1464
1502
|
properties_initialized_HttpHeaders_kt_3d6wem = true;
|
|
1465
|
-
ILLEGAL_HEADER_NAME_CHARS = Companion_instance.
|
|
1503
|
+
ILLEGAL_HEADER_NAME_CHARS = Companion_instance.j46(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(0), _Char___init__impl__6a9atx(32))).m46(Companion_instance.k46('"(),/:;<=>?@[\\]{}'));
|
|
1466
1504
|
}
|
|
1467
1505
|
}
|
|
1468
1506
|
function contentType(_this__u8e3s4) {
|
|
1469
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1507
|
+
var tmp0_safe_receiver = _this__u8e3s4.e4d().td('Content-Type');
|
|
1470
1508
|
var tmp;
|
|
1471
1509
|
if (tmp0_safe_receiver == null) {
|
|
1472
1510
|
tmp = null;
|
|
1473
1511
|
} else {
|
|
1474
1512
|
// Inline function 'kotlin.let' call
|
|
1475
|
-
tmp = Companion_getInstance_0().
|
|
1513
|
+
tmp = Companion_getInstance_0().lo(tmp0_safe_receiver);
|
|
1476
1514
|
}
|
|
1477
1515
|
return tmp;
|
|
1478
1516
|
}
|
|
1479
1517
|
function contentType_0(_this__u8e3s4) {
|
|
1480
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1518
|
+
var tmp0_safe_receiver = _this__u8e3s4.e4d().td('Content-Type');
|
|
1481
1519
|
var tmp;
|
|
1482
1520
|
if (tmp0_safe_receiver == null) {
|
|
1483
1521
|
tmp = null;
|
|
1484
1522
|
} else {
|
|
1485
1523
|
// Inline function 'kotlin.let' call
|
|
1486
|
-
tmp = Companion_getInstance_0().
|
|
1524
|
+
tmp = Companion_getInstance_0().lo(tmp0_safe_receiver);
|
|
1487
1525
|
}
|
|
1488
1526
|
return tmp;
|
|
1489
1527
|
}
|
|
1490
1528
|
function contentLength(_this__u8e3s4) {
|
|
1491
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1529
|
+
var tmp0_safe_receiver = _this__u8e3s4.e4d().td('Content-Length');
|
|
1492
1530
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1493
1531
|
}
|
|
1494
1532
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1496,7 +1534,7 @@ function charset_0(_this__u8e3s4) {
|
|
|
1496
1534
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1497
1535
|
}
|
|
1498
1536
|
function contentType_1(_this__u8e3s4, type) {
|
|
1499
|
-
return _this__u8e3s4.
|
|
1537
|
+
return _this__u8e3s4.e4d().u40('Content-Type', type.toString());
|
|
1500
1538
|
}
|
|
1501
1539
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1502
1540
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
@@ -1505,16 +1543,16 @@ function get_REQUESTS_WITHOUT_BODY() {
|
|
|
1505
1543
|
var REQUESTS_WITHOUT_BODY;
|
|
1506
1544
|
function Companion_3() {
|
|
1507
1545
|
Companion_instance_3 = this;
|
|
1508
|
-
this.
|
|
1509
|
-
this.
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1513
|
-
this.
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1516
|
-
this.
|
|
1517
|
-
this.
|
|
1546
|
+
this.f4d_1 = new HttpMethod('GET');
|
|
1547
|
+
this.g4d_1 = new HttpMethod('POST');
|
|
1548
|
+
this.h4d_1 = new HttpMethod('PUT');
|
|
1549
|
+
this.i4d_1 = new HttpMethod('PATCH');
|
|
1550
|
+
this.j4d_1 = new HttpMethod('DELETE');
|
|
1551
|
+
this.k4d_1 = new HttpMethod('HEAD');
|
|
1552
|
+
this.l4d_1 = new HttpMethod('OPTIONS');
|
|
1553
|
+
this.m4d_1 = new HttpMethod('TRACE');
|
|
1554
|
+
this.n4d_1 = new HttpMethod('QUERY');
|
|
1555
|
+
this.o4d_1 = listOf([this.f4d_1, this.g4d_1, this.h4d_1, this.i4d_1, this.j4d_1, this.k4d_1, this.l4d_1]);
|
|
1518
1556
|
}
|
|
1519
1557
|
var Companion_instance_3;
|
|
1520
1558
|
function Companion_getInstance_3() {
|
|
@@ -1524,20 +1562,20 @@ function Companion_getInstance_3() {
|
|
|
1524
1562
|
}
|
|
1525
1563
|
function HttpMethod(value) {
|
|
1526
1564
|
Companion_getInstance_3();
|
|
1527
|
-
this.
|
|
1565
|
+
this.p4d_1 = value;
|
|
1528
1566
|
}
|
|
1529
1567
|
protoOf(HttpMethod).toString = function () {
|
|
1530
|
-
return this.
|
|
1568
|
+
return this.p4d_1;
|
|
1531
1569
|
};
|
|
1532
1570
|
protoOf(HttpMethod).hashCode = function () {
|
|
1533
|
-
return getStringHashCode(this.
|
|
1571
|
+
return getStringHashCode(this.p4d_1);
|
|
1534
1572
|
};
|
|
1535
1573
|
protoOf(HttpMethod).equals = function (other) {
|
|
1536
1574
|
if (this === other)
|
|
1537
1575
|
return true;
|
|
1538
1576
|
if (!(other instanceof HttpMethod))
|
|
1539
1577
|
return false;
|
|
1540
|
-
if (!(this.
|
|
1578
|
+
if (!(this.p4d_1 === other.p4d_1))
|
|
1541
1579
|
return false;
|
|
1542
1580
|
return true;
|
|
1543
1581
|
};
|
|
@@ -1549,17 +1587,17 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1549
1587
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1550
1588
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1551
1589
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1552
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().
|
|
1590
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().f4d_1, Companion_getInstance_3().k4d_1, Companion_getInstance_3().l4d_1, Companion_getInstance_3().m4d_1]);
|
|
1553
1591
|
}
|
|
1554
1592
|
}
|
|
1555
1593
|
function Companion_4() {
|
|
1556
1594
|
Companion_instance_4 = this;
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1595
|
+
this.q4d_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1596
|
+
this.r4d_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1597
|
+
this.s4d_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1598
|
+
this.t4d_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1599
|
+
this.u4d_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1600
|
+
this.v4d_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1563
1601
|
}
|
|
1564
1602
|
var Companion_instance_4;
|
|
1565
1603
|
function Companion_getInstance_4() {
|
|
@@ -1569,17 +1607,17 @@ function Companion_getInstance_4() {
|
|
|
1569
1607
|
}
|
|
1570
1608
|
function HttpProtocolVersion(name, major, minor) {
|
|
1571
1609
|
Companion_getInstance_4();
|
|
1572
|
-
this.
|
|
1573
|
-
this.
|
|
1574
|
-
this.
|
|
1610
|
+
this.w4d_1 = name;
|
|
1611
|
+
this.x4d_1 = major;
|
|
1612
|
+
this.y4d_1 = minor;
|
|
1575
1613
|
}
|
|
1576
1614
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1577
|
-
return this.
|
|
1615
|
+
return this.w4d_1 + '/' + this.x4d_1 + '.' + this.y4d_1;
|
|
1578
1616
|
};
|
|
1579
1617
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1580
|
-
var result = getStringHashCode(this.
|
|
1581
|
-
result = imul(result, 31) + this.
|
|
1582
|
-
result = imul(result, 31) + this.
|
|
1618
|
+
var result = getStringHashCode(this.w4d_1);
|
|
1619
|
+
result = imul(result, 31) + this.x4d_1 | 0;
|
|
1620
|
+
result = imul(result, 31) + this.y4d_1 | 0;
|
|
1583
1621
|
return result;
|
|
1584
1622
|
};
|
|
1585
1623
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1587,84 +1625,84 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1587
1625
|
return true;
|
|
1588
1626
|
if (!(other instanceof HttpProtocolVersion))
|
|
1589
1627
|
return false;
|
|
1590
|
-
if (!(this.
|
|
1628
|
+
if (!(this.w4d_1 === other.w4d_1))
|
|
1591
1629
|
return false;
|
|
1592
|
-
if (!(this.
|
|
1630
|
+
if (!(this.x4d_1 === other.x4d_1))
|
|
1593
1631
|
return false;
|
|
1594
|
-
if (!(this.
|
|
1632
|
+
if (!(this.y4d_1 === other.y4d_1))
|
|
1595
1633
|
return false;
|
|
1596
1634
|
return true;
|
|
1597
1635
|
};
|
|
1598
1636
|
function Companion_5() {
|
|
1599
1637
|
Companion_instance_5 = this;
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1638
|
+
this.z4d_1 = new HttpStatusCode(100, 'Continue');
|
|
1639
|
+
this.a4e_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1640
|
+
this.b4e_1 = new HttpStatusCode(102, 'Processing');
|
|
1641
|
+
this.c4e_1 = new HttpStatusCode(200, 'OK');
|
|
1642
|
+
this.d4e_1 = new HttpStatusCode(201, 'Created');
|
|
1643
|
+
this.e4e_1 = new HttpStatusCode(202, 'Accepted');
|
|
1644
|
+
this.f4e_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1645
|
+
this.g4e_1 = new HttpStatusCode(204, 'No Content');
|
|
1646
|
+
this.h4e_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1647
|
+
this.i4e_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1648
|
+
this.j4e_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1649
|
+
this.k4e_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1650
|
+
this.l4e_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1651
|
+
this.m4e_1 = new HttpStatusCode(302, 'Found');
|
|
1652
|
+
this.n4e_1 = new HttpStatusCode(303, 'See Other');
|
|
1653
|
+
this.o4e_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1654
|
+
this.p4e_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1655
|
+
this.q4e_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1656
|
+
this.r4e_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1657
|
+
this.s4e_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1658
|
+
this.t4e_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1659
|
+
this.u4e_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1660
|
+
this.v4e_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1661
|
+
this.w4e_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1662
|
+
this.x4e_1 = new HttpStatusCode(404, 'Not Found');
|
|
1663
|
+
this.y4e_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1664
|
+
this.z4e_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1665
|
+
this.a4f_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1666
|
+
this.b4f_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1667
|
+
this.c4f_1 = new HttpStatusCode(409, 'Conflict');
|
|
1668
|
+
this.d4f_1 = new HttpStatusCode(410, 'Gone');
|
|
1669
|
+
this.e4f_1 = new HttpStatusCode(411, 'Length Required');
|
|
1670
|
+
this.f4f_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1671
|
+
this.g4f_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1672
|
+
this.h4f_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1673
|
+
this.i4f_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1674
|
+
this.j4f_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1675
|
+
this.k4f_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1676
|
+
this.l4f_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1677
|
+
this.m4f_1 = new HttpStatusCode(423, 'Locked');
|
|
1678
|
+
this.n4f_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1679
|
+
this.o4f_1 = new HttpStatusCode(425, 'Too Early');
|
|
1680
|
+
this.p4f_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1681
|
+
this.q4f_1 = new HttpStatusCode(428, 'Precondition Required');
|
|
1682
|
+
this.r4f_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1683
|
+
this.s4f_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1684
|
+
this.t4f_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1685
|
+
this.u4f_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1686
|
+
this.v4f_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1687
|
+
this.w4f_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1688
|
+
this.x4f_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1689
|
+
this.y4f_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1690
|
+
this.z4f_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1691
|
+
this.a4g_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1692
|
+
this.b4g_1 = allStatusCodes();
|
|
1655
1693
|
var tmp = this;
|
|
1656
1694
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1657
|
-
var this_0 = this.
|
|
1695
|
+
var this_0 = this.b4g_1;
|
|
1658
1696
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1659
1697
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1660
1698
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1661
1699
|
var _iterator__ex2g4s = this_0.t();
|
|
1662
1700
|
while (_iterator__ex2g4s.u()) {
|
|
1663
1701
|
var element = _iterator__ex2g4s.v();
|
|
1664
|
-
var tmp$ret$2 = element.
|
|
1702
|
+
var tmp$ret$2 = element.d4g_1;
|
|
1665
1703
|
destination.c3(tmp$ret$2, element);
|
|
1666
1704
|
}
|
|
1667
|
-
tmp.
|
|
1705
|
+
tmp.c4g_1 = destination;
|
|
1668
1706
|
}
|
|
1669
1707
|
var Companion_instance_5;
|
|
1670
1708
|
function Companion_getInstance_5() {
|
|
@@ -1674,36 +1712,36 @@ function Companion_getInstance_5() {
|
|
|
1674
1712
|
}
|
|
1675
1713
|
function HttpStatusCode(value, description) {
|
|
1676
1714
|
Companion_getInstance_5();
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1715
|
+
this.d4g_1 = value;
|
|
1716
|
+
this.e4g_1 = description;
|
|
1679
1717
|
}
|
|
1680
1718
|
protoOf(HttpStatusCode).toString = function () {
|
|
1681
|
-
return '' + this.
|
|
1719
|
+
return '' + this.d4g_1 + ' ' + this.e4g_1;
|
|
1682
1720
|
};
|
|
1683
1721
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1684
1722
|
var tmp;
|
|
1685
1723
|
if (other instanceof HttpStatusCode) {
|
|
1686
|
-
tmp = other.
|
|
1724
|
+
tmp = other.d4g_1 === this.d4g_1;
|
|
1687
1725
|
} else {
|
|
1688
1726
|
tmp = false;
|
|
1689
1727
|
}
|
|
1690
1728
|
return tmp;
|
|
1691
1729
|
};
|
|
1692
1730
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1693
|
-
return this.
|
|
1731
|
+
return this.d4g_1;
|
|
1694
1732
|
};
|
|
1695
|
-
protoOf(HttpStatusCode).
|
|
1696
|
-
return this.
|
|
1733
|
+
protoOf(HttpStatusCode).f4g = function (other) {
|
|
1734
|
+
return this.d4g_1 - other.d4g_1 | 0;
|
|
1697
1735
|
};
|
|
1698
1736
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1699
|
-
return this.
|
|
1737
|
+
return this.f4g(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1700
1738
|
};
|
|
1701
1739
|
function allStatusCodes() {
|
|
1702
|
-
return
|
|
1740
|
+
return listOf([Companion_getInstance_5().z4d_1, Companion_getInstance_5().a4e_1, Companion_getInstance_5().b4e_1, Companion_getInstance_5().c4e_1, Companion_getInstance_5().d4e_1, Companion_getInstance_5().e4e_1, Companion_getInstance_5().f4e_1, Companion_getInstance_5().g4e_1, Companion_getInstance_5().h4e_1, Companion_getInstance_5().i4e_1, Companion_getInstance_5().j4e_1, Companion_getInstance_5().k4e_1, Companion_getInstance_5().l4e_1, Companion_getInstance_5().m4e_1, Companion_getInstance_5().n4e_1, Companion_getInstance_5().o4e_1, Companion_getInstance_5().p4e_1, Companion_getInstance_5().q4e_1, Companion_getInstance_5().r4e_1, Companion_getInstance_5().s4e_1, Companion_getInstance_5().t4e_1, Companion_getInstance_5().u4e_1, Companion_getInstance_5().v4e_1, Companion_getInstance_5().w4e_1, Companion_getInstance_5().x4e_1, Companion_getInstance_5().y4e_1, Companion_getInstance_5().z4e_1, Companion_getInstance_5().a4f_1, Companion_getInstance_5().b4f_1, Companion_getInstance_5().c4f_1, Companion_getInstance_5().d4f_1, Companion_getInstance_5().e4f_1, Companion_getInstance_5().f4f_1, Companion_getInstance_5().q4f_1, Companion_getInstance_5().g4f_1, Companion_getInstance_5().h4f_1, Companion_getInstance_5().i4f_1, Companion_getInstance_5().j4f_1, Companion_getInstance_5().k4f_1, Companion_getInstance_5().l4f_1, Companion_getInstance_5().m4f_1, Companion_getInstance_5().n4f_1, Companion_getInstance_5().o4f_1, Companion_getInstance_5().p4f_1, Companion_getInstance_5().r4f_1, Companion_getInstance_5().s4f_1, Companion_getInstance_5().t4f_1, Companion_getInstance_5().u4f_1, Companion_getInstance_5().v4f_1, Companion_getInstance_5().w4f_1, Companion_getInstance_5().x4f_1, Companion_getInstance_5().y4f_1, Companion_getInstance_5().z4f_1, Companion_getInstance_5().a4g_1]);
|
|
1703
1741
|
}
|
|
1704
1742
|
function formUrlEncode(_this__u8e3s4) {
|
|
1705
1743
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1706
|
-
var tmp0 = _this__u8e3s4.
|
|
1744
|
+
var tmp0 = _this__u8e3s4.m40();
|
|
1707
1745
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1708
1746
|
var destination = ArrayList_init_$Create$();
|
|
1709
1747
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1735,19 +1773,19 @@ function formUrlEncodeTo(_this__u8e3s4, out) {
|
|
|
1735
1773
|
joinTo(_this__u8e3s4, out, '&', VOID, VOID, VOID, VOID, formUrlEncodeTo$lambda);
|
|
1736
1774
|
}
|
|
1737
1775
|
function formUrlEncodeTo$lambda(it) {
|
|
1738
|
-
var key = encodeURLParameter(it.
|
|
1776
|
+
var key = encodeURLParameter(it.vg_1, true);
|
|
1739
1777
|
var tmp;
|
|
1740
|
-
if (it.
|
|
1778
|
+
if (it.wg_1 == null) {
|
|
1741
1779
|
tmp = key;
|
|
1742
1780
|
} else {
|
|
1743
|
-
var value = encodeURLParameterValue(toString_1(it.
|
|
1781
|
+
var value = encodeURLParameterValue(toString_1(it.wg_1));
|
|
1744
1782
|
tmp = key + '=' + value;
|
|
1745
1783
|
}
|
|
1746
1784
|
return tmp;
|
|
1747
1785
|
}
|
|
1748
1786
|
function Companion_6() {
|
|
1749
1787
|
Companion_instance_6 = this;
|
|
1750
|
-
this.
|
|
1788
|
+
this.g4g_1 = EmptyParameters_instance;
|
|
1751
1789
|
}
|
|
1752
1790
|
var Companion_instance_6;
|
|
1753
1791
|
function Companion_getInstance_6() {
|
|
@@ -1759,23 +1797,23 @@ function Parameters() {
|
|
|
1759
1797
|
}
|
|
1760
1798
|
function EmptyParameters() {
|
|
1761
1799
|
}
|
|
1762
|
-
protoOf(EmptyParameters).
|
|
1800
|
+
protoOf(EmptyParameters).r40 = function () {
|
|
1763
1801
|
return true;
|
|
1764
1802
|
};
|
|
1765
|
-
protoOf(EmptyParameters).
|
|
1803
|
+
protoOf(EmptyParameters).s40 = function (name) {
|
|
1766
1804
|
return null;
|
|
1767
1805
|
};
|
|
1768
|
-
protoOf(EmptyParameters).
|
|
1806
|
+
protoOf(EmptyParameters).t40 = function () {
|
|
1769
1807
|
return emptySet();
|
|
1770
1808
|
};
|
|
1771
|
-
protoOf(EmptyParameters).
|
|
1809
|
+
protoOf(EmptyParameters).m40 = function () {
|
|
1772
1810
|
return emptySet();
|
|
1773
1811
|
};
|
|
1774
1812
|
protoOf(EmptyParameters).r = function () {
|
|
1775
1813
|
return true;
|
|
1776
1814
|
};
|
|
1777
1815
|
protoOf(EmptyParameters).toString = function () {
|
|
1778
|
-
return 'Parameters ' + toString_0(this.
|
|
1816
|
+
return 'Parameters ' + toString_0(this.m40());
|
|
1779
1817
|
};
|
|
1780
1818
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1781
1819
|
var tmp;
|
|
@@ -1798,15 +1836,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1798
1836
|
size = size === VOID ? 8 : size;
|
|
1799
1837
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1800
1838
|
}
|
|
1801
|
-
protoOf(ParametersBuilderImpl).
|
|
1802
|
-
return new ParametersImpl(this.
|
|
1839
|
+
protoOf(ParametersBuilderImpl).a43 = function () {
|
|
1840
|
+
return new ParametersImpl(this.p40_1);
|
|
1803
1841
|
};
|
|
1804
1842
|
function ParametersImpl(values) {
|
|
1805
1843
|
values = values === VOID ? emptyMap() : values;
|
|
1806
1844
|
StringValuesImpl.call(this, true, values);
|
|
1807
1845
|
}
|
|
1808
1846
|
protoOf(ParametersImpl).toString = function () {
|
|
1809
|
-
return 'Parameters ' + toString_0(this.
|
|
1847
|
+
return 'Parameters ' + toString_0(this.m40());
|
|
1810
1848
|
};
|
|
1811
1849
|
function parameters(builder) {
|
|
1812
1850
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
@@ -1814,7 +1852,7 @@ function parameters(builder) {
|
|
|
1814
1852
|
// Inline function 'kotlin.apply' call
|
|
1815
1853
|
var this_0 = ParametersBuilder();
|
|
1816
1854
|
builder(this_0);
|
|
1817
|
-
return this_0.
|
|
1855
|
+
return this_0.a43();
|
|
1818
1856
|
}
|
|
1819
1857
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1820
1858
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1822,14 +1860,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1822
1860
|
decode = decode === VOID ? true : decode;
|
|
1823
1861
|
var tmp;
|
|
1824
1862
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1825
|
-
tmp = Companion_getInstance_6().
|
|
1863
|
+
tmp = Companion_getInstance_6().g4g_1;
|
|
1826
1864
|
} else {
|
|
1827
1865
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1828
1866
|
Companion_getInstance_6();
|
|
1829
1867
|
// Inline function 'kotlin.apply' call
|
|
1830
1868
|
var this_0 = ParametersBuilder();
|
|
1831
1869
|
parse(this_0, query, startIndex, limit, decode);
|
|
1832
|
-
tmp = this_0.
|
|
1870
|
+
tmp = this_0.a43();
|
|
1833
1871
|
}
|
|
1834
1872
|
return tmp;
|
|
1835
1873
|
}
|
|
@@ -1870,7 +1908,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1870
1908
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1871
1909
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1872
1910
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1873
|
-
_this__u8e3s4.
|
|
1911
|
+
_this__u8e3s4.n40(name, emptyList());
|
|
1874
1912
|
}
|
|
1875
1913
|
return Unit_instance;
|
|
1876
1914
|
}
|
|
@@ -1881,7 +1919,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1881
1919
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1882
1920
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1883
1921
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1884
|
-
_this__u8e3s4.
|
|
1922
|
+
_this__u8e3s4.w40(name_0, value);
|
|
1885
1923
|
}
|
|
1886
1924
|
}
|
|
1887
1925
|
function trimStart(start, end, query) {
|
|
@@ -1901,25 +1939,25 @@ function trimEnd(start, end, text) {
|
|
|
1901
1939
|
function applyOrigin($this) {
|
|
1902
1940
|
var tmp;
|
|
1903
1941
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1904
|
-
var this_0 = $this.
|
|
1942
|
+
var this_0 = $this.j4g_1;
|
|
1905
1943
|
if (charSequenceLength(this_0) > 0) {
|
|
1906
1944
|
tmp = true;
|
|
1907
1945
|
} else {
|
|
1908
|
-
tmp = $this.
|
|
1946
|
+
tmp = $this.v4g().t4g_1 === 'file';
|
|
1909
1947
|
}
|
|
1910
1948
|
if (tmp)
|
|
1911
1949
|
return Unit_instance;
|
|
1912
|
-
$this.
|
|
1913
|
-
if ($this.
|
|
1914
|
-
$this.
|
|
1915
|
-
if ($this.
|
|
1916
|
-
$this.
|
|
1950
|
+
$this.j4g_1 = Companion_getInstance_7().p4h_1.w4g_1;
|
|
1951
|
+
if ($this.m4g_1 == null)
|
|
1952
|
+
$this.m4g_1 = Companion_getInstance_7().p4h_1.h4h_1;
|
|
1953
|
+
if ($this.l4g_1 === 0) {
|
|
1954
|
+
$this.r4h(Companion_getInstance_7().p4h_1.x4g_1);
|
|
1917
1955
|
}
|
|
1918
1956
|
}
|
|
1919
1957
|
function Companion_7() {
|
|
1920
1958
|
Companion_instance_7 = this;
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1959
|
+
this.p4h_1 = Url(get_origin(this));
|
|
1960
|
+
this.q4h_1 = 256;
|
|
1923
1961
|
}
|
|
1924
1962
|
var Companion_instance_7;
|
|
1925
1963
|
function Companion_getInstance_7() {
|
|
@@ -1935,18 +1973,18 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1935
1973
|
user = user === VOID ? null : user;
|
|
1936
1974
|
password = password === VOID ? null : password;
|
|
1937
1975
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1938
|
-
parameters = parameters === VOID ? Companion_getInstance_6().
|
|
1976
|
+
parameters = parameters === VOID ? Companion_getInstance_6().g4g_1 : parameters;
|
|
1939
1977
|
fragment = fragment === VOID ? '' : fragment;
|
|
1940
1978
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1979
|
+
this.j4g_1 = host;
|
|
1980
|
+
this.k4g_1 = trailingQuery;
|
|
1981
|
+
this.l4g_1 = port;
|
|
1982
|
+
this.m4g_1 = protocol;
|
|
1945
1983
|
var tmp = this;
|
|
1946
|
-
tmp.
|
|
1984
|
+
tmp.n4g_1 = user == null ? null : encodeURLParameter(user);
|
|
1947
1985
|
var tmp_0 = this;
|
|
1948
|
-
tmp_0.
|
|
1949
|
-
this.
|
|
1986
|
+
tmp_0.o4g_1 = password == null ? null : encodeURLParameter(password);
|
|
1987
|
+
this.p4g_1 = encodeURLQueryComponent(fragment);
|
|
1950
1988
|
var tmp_1 = this;
|
|
1951
1989
|
// Inline function 'kotlin.collections.map' call
|
|
1952
1990
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1957,43 +1995,43 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1957
1995
|
var tmp$ret$2 = encodeURLPathPart(item);
|
|
1958
1996
|
destination.b1(tmp$ret$2);
|
|
1959
1997
|
}
|
|
1960
|
-
tmp_1.
|
|
1961
|
-
this.
|
|
1962
|
-
this.
|
|
1998
|
+
tmp_1.q4g_1 = destination;
|
|
1999
|
+
this.r4g_1 = encodeParameters(parameters);
|
|
2000
|
+
this.s4g_1 = new UrlDecodedParametersBuilder(this.r4g_1);
|
|
1963
2001
|
}
|
|
1964
|
-
protoOf(URLBuilder).
|
|
2002
|
+
protoOf(URLBuilder).r4h = function (value) {
|
|
1965
2003
|
// Inline function 'kotlin.require' call
|
|
1966
2004
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1967
2005
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1968
2006
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1969
2007
|
}
|
|
1970
|
-
this.
|
|
2008
|
+
this.l4g_1 = value;
|
|
1971
2009
|
};
|
|
1972
|
-
protoOf(URLBuilder).
|
|
1973
|
-
this.
|
|
2010
|
+
protoOf(URLBuilder).s4h = function (value) {
|
|
2011
|
+
this.m4g_1 = value;
|
|
1974
2012
|
};
|
|
1975
|
-
protoOf(URLBuilder).
|
|
1976
|
-
var tmp0_elvis_lhs = this.
|
|
1977
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_8().
|
|
2013
|
+
protoOf(URLBuilder).v4g = function () {
|
|
2014
|
+
var tmp0_elvis_lhs = this.m4g_1;
|
|
2015
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_8().t4h_1 : tmp0_elvis_lhs;
|
|
1978
2016
|
};
|
|
1979
|
-
protoOf(URLBuilder).
|
|
2017
|
+
protoOf(URLBuilder).z4h = function (value) {
|
|
1980
2018
|
var tmp = this;
|
|
1981
|
-
tmp.
|
|
2019
|
+
tmp.n4g_1 = value == null ? null : encodeURLParameter(value);
|
|
1982
2020
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
var tmp0_safe_receiver = this.
|
|
2021
|
+
protoOf(URLBuilder).a4i = function () {
|
|
2022
|
+
var tmp0_safe_receiver = this.n4g_1;
|
|
1985
2023
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1986
2024
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1988
|
-
var tmp0_safe_receiver = this.
|
|
2025
|
+
protoOf(URLBuilder).b4i = function () {
|
|
2026
|
+
var tmp0_safe_receiver = this.o4g_1;
|
|
1989
2027
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1990
2028
|
};
|
|
1991
|
-
protoOf(URLBuilder).
|
|
1992
|
-
return decodeURLQueryComponent(this.
|
|
2029
|
+
protoOf(URLBuilder).c4i = function () {
|
|
2030
|
+
return decodeURLQueryComponent(this.p4g_1);
|
|
1993
2031
|
};
|
|
1994
|
-
protoOf(URLBuilder).
|
|
2032
|
+
protoOf(URLBuilder).d4i = function () {
|
|
1995
2033
|
// Inline function 'kotlin.collections.map' call
|
|
1996
|
-
var this_0 = this.
|
|
2034
|
+
var this_0 = this.q4g_1;
|
|
1997
2035
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1998
2036
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1999
2037
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2004,63 +2042,63 @@ protoOf(URLBuilder).l4e = function () {
|
|
|
2004
2042
|
}
|
|
2005
2043
|
return destination;
|
|
2006
2044
|
};
|
|
2007
|
-
protoOf(URLBuilder).
|
|
2008
|
-
this.
|
|
2009
|
-
this.
|
|
2045
|
+
protoOf(URLBuilder).e4i = function (value) {
|
|
2046
|
+
this.r4g_1 = value;
|
|
2047
|
+
this.s4g_1 = new UrlDecodedParametersBuilder(value);
|
|
2010
2048
|
};
|
|
2011
|
-
protoOf(URLBuilder).
|
|
2049
|
+
protoOf(URLBuilder).f4i = function () {
|
|
2012
2050
|
applyOrigin(this);
|
|
2013
2051
|
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
2014
2052
|
};
|
|
2015
2053
|
protoOf(URLBuilder).toString = function () {
|
|
2016
2054
|
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
2017
2055
|
};
|
|
2018
|
-
protoOf(URLBuilder).
|
|
2056
|
+
protoOf(URLBuilder).a43 = function () {
|
|
2019
2057
|
applyOrigin(this);
|
|
2020
|
-
return new Url_0(this.
|
|
2058
|
+
return new Url_0(this.m4g_1, this.j4g_1, this.l4g_1, this.d4i(), this.s4g_1.a43(), this.c4i(), this.a4i(), this.b4i(), this.k4g_1, this.f4i());
|
|
2021
2059
|
};
|
|
2022
2060
|
function get_authority(_this__u8e3s4) {
|
|
2023
2061
|
// Inline function 'kotlin.text.buildString' call
|
|
2024
2062
|
// Inline function 'kotlin.apply' call
|
|
2025
2063
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
2026
2064
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2027
|
-
this_0.q(_this__u8e3s4.
|
|
2028
|
-
if (!(_this__u8e3s4.
|
|
2065
|
+
this_0.q(_this__u8e3s4.j4g_1);
|
|
2066
|
+
if (!(_this__u8e3s4.l4g_1 === 0) && !(_this__u8e3s4.l4g_1 === _this__u8e3s4.v4g().u4g_1)) {
|
|
2029
2067
|
this_0.q(':');
|
|
2030
|
-
this_0.q(_this__u8e3s4.
|
|
2068
|
+
this_0.q(_this__u8e3s4.l4g_1.toString());
|
|
2031
2069
|
}
|
|
2032
2070
|
return this_0.toString();
|
|
2033
2071
|
}
|
|
2034
2072
|
function appendTo(_this__u8e3s4, out) {
|
|
2035
|
-
out.c1(_this__u8e3s4.
|
|
2036
|
-
switch (_this__u8e3s4.
|
|
2073
|
+
out.c1(_this__u8e3s4.v4g().t4g_1);
|
|
2074
|
+
switch (_this__u8e3s4.v4g().t4g_1) {
|
|
2037
2075
|
case 'file':
|
|
2038
|
-
appendFile(out, _this__u8e3s4.
|
|
2039
|
-
appendUrlFullPath(out, '', _this__u8e3s4.
|
|
2076
|
+
appendFile(out, _this__u8e3s4.j4g_1, get_encodedPath(_this__u8e3s4));
|
|
2077
|
+
appendUrlFullPath(out, '', _this__u8e3s4.r4g_1, _this__u8e3s4.k4g_1);
|
|
2040
2078
|
break;
|
|
2041
2079
|
case 'mailto':
|
|
2042
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2080
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.j4g_1);
|
|
2043
2081
|
return out;
|
|
2044
2082
|
case 'about':
|
|
2045
|
-
appendPayload(out, _this__u8e3s4.
|
|
2083
|
+
appendPayload(out, _this__u8e3s4.j4g_1);
|
|
2046
2084
|
return out;
|
|
2047
2085
|
case 'tel':
|
|
2048
|
-
appendPayload(out, _this__u8e3s4.
|
|
2086
|
+
appendPayload(out, _this__u8e3s4.j4g_1);
|
|
2049
2087
|
return out;
|
|
2050
2088
|
case 'data':
|
|
2051
|
-
appendPayload(out, _this__u8e3s4.
|
|
2089
|
+
appendPayload(out, _this__u8e3s4.j4g_1);
|
|
2052
2090
|
return out;
|
|
2053
2091
|
default:
|
|
2054
2092
|
out.c1('://');
|
|
2055
2093
|
out.c1(get_authority(_this__u8e3s4));
|
|
2056
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2094
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.r4g_1, _this__u8e3s4.k4g_1);
|
|
2057
2095
|
break;
|
|
2058
2096
|
}
|
|
2059
2097
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2060
|
-
var this_0 = _this__u8e3s4.
|
|
2098
|
+
var this_0 = _this__u8e3s4.p4g_1;
|
|
2061
2099
|
if (charSequenceLength(this_0) > 0) {
|
|
2062
2100
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2063
|
-
out.c1(_this__u8e3s4.
|
|
2101
|
+
out.c1(_this__u8e3s4.p4g_1);
|
|
2064
2102
|
}
|
|
2065
2103
|
return out;
|
|
2066
2104
|
}
|
|
@@ -2068,7 +2106,7 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
2068
2106
|
// Inline function 'kotlin.text.buildString' call
|
|
2069
2107
|
// Inline function 'kotlin.apply' call
|
|
2070
2108
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
2071
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2109
|
+
appendUserAndPassword(this_0, _this__u8e3s4.n4g_1, _this__u8e3s4.o4g_1);
|
|
2072
2110
|
return this_0.toString();
|
|
2073
2111
|
}
|
|
2074
2112
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2080,10 +2118,10 @@ function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
|
2080
2118
|
_this__u8e3s4.c1(encodedPath);
|
|
2081
2119
|
}
|
|
2082
2120
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2083
|
-
_this__u8e3s4.
|
|
2121
|
+
_this__u8e3s4.q4g_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2084
2122
|
}
|
|
2085
2123
|
function get_encodedPath(_this__u8e3s4) {
|
|
2086
|
-
return joinPath(_this__u8e3s4.
|
|
2124
|
+
return joinPath(_this__u8e3s4.q4g_1);
|
|
2087
2125
|
}
|
|
2088
2126
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2089
2127
|
_this__u8e3s4.c1(':');
|
|
@@ -2171,20 +2209,20 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2171
2209
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2172
2210
|
if (schemeLength > 0) {
|
|
2173
2211
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2174
|
-
_this__u8e3s4.
|
|
2212
|
+
_this__u8e3s4.s4h(Companion_getInstance_8().g4i(scheme));
|
|
2175
2213
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2176
2214
|
}
|
|
2177
|
-
if (_this__u8e3s4.
|
|
2178
|
-
_this__u8e3s4.
|
|
2215
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'data') {
|
|
2216
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, endIndex);
|
|
2179
2217
|
return _this__u8e3s4;
|
|
2180
2218
|
}
|
|
2181
2219
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2182
2220
|
startIndex = startIndex + slashCount | 0;
|
|
2183
|
-
if (_this__u8e3s4.
|
|
2221
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'file') {
|
|
2184
2222
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2185
2223
|
return _this__u8e3s4;
|
|
2186
2224
|
}
|
|
2187
|
-
if (_this__u8e3s4.
|
|
2225
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'mailto') {
|
|
2188
2226
|
// Inline function 'kotlin.require' call
|
|
2189
2227
|
// Inline function 'kotlin.require' call
|
|
2190
2228
|
if (!(slashCount === 0)) {
|
|
@@ -2194,24 +2232,24 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2194
2232
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2195
2233
|
return _this__u8e3s4;
|
|
2196
2234
|
}
|
|
2197
|
-
if (_this__u8e3s4.
|
|
2235
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'about') {
|
|
2198
2236
|
// Inline function 'kotlin.require' call
|
|
2199
2237
|
// Inline function 'kotlin.require' call
|
|
2200
2238
|
if (!(slashCount === 0)) {
|
|
2201
2239
|
var message_0 = 'Failed requirement.';
|
|
2202
2240
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2203
2241
|
}
|
|
2204
|
-
_this__u8e3s4.
|
|
2242
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, endIndex);
|
|
2205
2243
|
return _this__u8e3s4;
|
|
2206
2244
|
}
|
|
2207
|
-
if (_this__u8e3s4.
|
|
2245
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'tel') {
|
|
2208
2246
|
// Inline function 'kotlin.require' call
|
|
2209
2247
|
// Inline function 'kotlin.require' call
|
|
2210
2248
|
if (!(slashCount === 0)) {
|
|
2211
2249
|
var message_1 = 'Failed requirement.';
|
|
2212
2250
|
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
2213
2251
|
}
|
|
2214
|
-
_this__u8e3s4.
|
|
2252
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, endIndex);
|
|
2215
2253
|
return _this__u8e3s4;
|
|
2216
2254
|
}
|
|
2217
2255
|
if (slashCount >= 2) {
|
|
@@ -2229,10 +2267,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2229
2267
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2230
2268
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2231
2269
|
if (!(passwordIndex === -1)) {
|
|
2232
|
-
_this__u8e3s4.
|
|
2233
|
-
_this__u8e3s4.
|
|
2270
|
+
_this__u8e3s4.n4g_1 = substring(urlString, startIndex, passwordIndex);
|
|
2271
|
+
_this__u8e3s4.o4g_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2234
2272
|
} else {
|
|
2235
|
-
_this__u8e3s4.
|
|
2273
|
+
_this__u8e3s4.n4g_1 = substring(urlString, startIndex, delimiter);
|
|
2236
2274
|
}
|
|
2237
2275
|
startIndex = delimiter + 1 | 0;
|
|
2238
2276
|
} else {
|
|
@@ -2243,7 +2281,7 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2243
2281
|
}
|
|
2244
2282
|
}
|
|
2245
2283
|
if (startIndex >= endIndex) {
|
|
2246
|
-
_this__u8e3s4.
|
|
2284
|
+
_this__u8e3s4.q4g_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2247
2285
|
return _this__u8e3s4;
|
|
2248
2286
|
}
|
|
2249
2287
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2260,17 +2298,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2260
2298
|
var tmp_1 = _this__u8e3s4;
|
|
2261
2299
|
var tmp_2;
|
|
2262
2300
|
if (slashCount === 0) {
|
|
2263
|
-
tmp_2 = dropLast(_this__u8e3s4.
|
|
2301
|
+
tmp_2 = dropLast(_this__u8e3s4.q4g_1, 1);
|
|
2264
2302
|
} else {
|
|
2265
2303
|
tmp_2 = emptyList();
|
|
2266
2304
|
}
|
|
2267
|
-
tmp_1.
|
|
2305
|
+
tmp_1.q4g_1 = tmp_2;
|
|
2268
2306
|
var encodedPath = encodeURLPath(substring(urlString, startIndex, pathEnd), VOID, false);
|
|
2269
2307
|
var tmp_3;
|
|
2270
2308
|
var tmp_4;
|
|
2271
|
-
if (_this__u8e3s4.
|
|
2309
|
+
if (_this__u8e3s4.q4g_1.e1() === 1) {
|
|
2272
2310
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2273
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2311
|
+
var this_2 = first_0(_this__u8e3s4.q4g_1);
|
|
2274
2312
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2275
2313
|
} else {
|
|
2276
2314
|
tmp_4 = false;
|
|
@@ -2278,17 +2316,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2278
2316
|
if (tmp_4) {
|
|
2279
2317
|
tmp_3 = emptyList();
|
|
2280
2318
|
} else {
|
|
2281
|
-
tmp_3 = _this__u8e3s4.
|
|
2319
|
+
tmp_3 = _this__u8e3s4.q4g_1;
|
|
2282
2320
|
}
|
|
2283
2321
|
var basePath = tmp_3;
|
|
2284
2322
|
var encodedChunks = encodedPath === '/' ? get_ROOT_PATH() : split(encodedPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2285
2323
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), encodedChunks);
|
|
2286
|
-
_this__u8e3s4.
|
|
2324
|
+
_this__u8e3s4.q4g_1 = plus_0(basePath, relativePath);
|
|
2287
2325
|
startIndex = pathEnd;
|
|
2288
|
-
} else if (slashCount === 0 && _this__u8e3s4.
|
|
2289
|
-
_this__u8e3s4.
|
|
2326
|
+
} else if (slashCount === 0 && _this__u8e3s4.q4g_1.r() && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2327
|
+
_this__u8e3s4.q4g_1 = get_ROOT_PATH();
|
|
2290
2328
|
} else if (slashCount > 0) {
|
|
2291
|
-
_this__u8e3s4.
|
|
2329
|
+
_this__u8e3s4.q4g_1 = emptyList();
|
|
2292
2330
|
}
|
|
2293
2331
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2294
2332
|
startIndex = parseQuery(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
@@ -2338,7 +2376,7 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2338
2376
|
var tmp;
|
|
2339
2377
|
switch (slashCount) {
|
|
2340
2378
|
case 1:
|
|
2341
|
-
_this__u8e3s4.
|
|
2379
|
+
_this__u8e3s4.j4g_1 = '';
|
|
2342
2380
|
tmp = startIndex;
|
|
2343
2381
|
break;
|
|
2344
2382
|
case 2:
|
|
@@ -2354,11 +2392,11 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2354
2392
|
|
|
2355
2393
|
var tmp1_elvis_lhs = tmp_0;
|
|
2356
2394
|
var hostEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2357
|
-
_this__u8e3s4.
|
|
2395
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, hostEnd);
|
|
2358
2396
|
tmp = hostEnd;
|
|
2359
2397
|
break;
|
|
2360
2398
|
case 3:
|
|
2361
|
-
_this__u8e3s4.
|
|
2399
|
+
_this__u8e3s4.j4g_1 = '';
|
|
2362
2400
|
tmp = startIndex;
|
|
2363
2401
|
break;
|
|
2364
2402
|
default:
|
|
@@ -2389,8 +2427,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2389
2427
|
if (delimiter === -1) {
|
|
2390
2428
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2391
2429
|
}
|
|
2392
|
-
_this__u8e3s4.
|
|
2393
|
-
_this__u8e3s4.
|
|
2430
|
+
_this__u8e3s4.z4h(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2431
|
+
_this__u8e3s4.j4g_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2394
2432
|
}
|
|
2395
2433
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2396
2434
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2444,19 +2482,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2444
2482
|
var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
|
|
2445
2483
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2446
2484
|
}
|
|
2447
|
-
_this__u8e3s4.
|
|
2485
|
+
_this__u8e3s4.j4g_1 = hostValue;
|
|
2448
2486
|
var tmp_0;
|
|
2449
2487
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2450
2488
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2451
2489
|
} else {
|
|
2452
2490
|
tmp_0 = 0;
|
|
2453
2491
|
}
|
|
2454
|
-
_this__u8e3s4.
|
|
2492
|
+
_this__u8e3s4.r4h(tmp_0);
|
|
2455
2493
|
}
|
|
2456
2494
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2457
2495
|
_init_properties_URLParser_kt__sf11to();
|
|
2458
2496
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2459
|
-
_this__u8e3s4.
|
|
2497
|
+
_this__u8e3s4.k4g_1 = true;
|
|
2460
2498
|
return endIndex;
|
|
2461
2499
|
}
|
|
2462
2500
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2470,18 +2508,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2470
2508
|
var tmp0_elvis_lhs = tmp;
|
|
2471
2509
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2472
2510
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2473
|
-
rawParameters.
|
|
2511
|
+
rawParameters.y40(parseQuery$lambda(_this__u8e3s4));
|
|
2474
2512
|
return fragmentStart;
|
|
2475
2513
|
}
|
|
2476
2514
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2477
2515
|
_init_properties_URLParser_kt__sf11to();
|
|
2478
2516
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2479
|
-
_this__u8e3s4.
|
|
2517
|
+
_this__u8e3s4.p4g_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2480
2518
|
}
|
|
2481
2519
|
}
|
|
2482
2520
|
function parseQuery$lambda($this_parseQuery) {
|
|
2483
2521
|
return function (key, values) {
|
|
2484
|
-
$this_parseQuery.
|
|
2522
|
+
$this_parseQuery.r4g_1.n40(key, values);
|
|
2485
2523
|
return Unit_instance;
|
|
2486
2524
|
};
|
|
2487
2525
|
}
|
|
@@ -2489,34 +2527,34 @@ var properties_initialized_URLParser_kt_hd1g6a;
|
|
|
2489
2527
|
function _init_properties_URLParser_kt__sf11to() {
|
|
2490
2528
|
if (!properties_initialized_URLParser_kt_hd1g6a) {
|
|
2491
2529
|
properties_initialized_URLParser_kt_hd1g6a = true;
|
|
2492
|
-
ROOT_PATH =
|
|
2530
|
+
ROOT_PATH = listOf_0('');
|
|
2493
2531
|
}
|
|
2494
2532
|
}
|
|
2495
2533
|
function Companion_8() {
|
|
2496
2534
|
Companion_instance_8 = this;
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2501
|
-
this.
|
|
2535
|
+
this.t4h_1 = new URLProtocol('http', 80);
|
|
2536
|
+
this.u4h_1 = new URLProtocol('https', 443);
|
|
2537
|
+
this.v4h_1 = new URLProtocol('ws', 80);
|
|
2538
|
+
this.w4h_1 = new URLProtocol('wss', 443);
|
|
2539
|
+
this.x4h_1 = new URLProtocol('socks', 1080);
|
|
2502
2540
|
var tmp = this;
|
|
2503
2541
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2504
|
-
var this_0 =
|
|
2542
|
+
var this_0 = listOf([this.t4h_1, this.u4h_1, this.v4h_1, this.w4h_1, this.x4h_1]);
|
|
2505
2543
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2506
2544
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2507
2545
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2508
2546
|
var _iterator__ex2g4s = this_0.t();
|
|
2509
2547
|
while (_iterator__ex2g4s.u()) {
|
|
2510
2548
|
var element = _iterator__ex2g4s.v();
|
|
2511
|
-
var tmp$ret$2 = element.
|
|
2549
|
+
var tmp$ret$2 = element.t4g_1;
|
|
2512
2550
|
destination.c3(tmp$ret$2, element);
|
|
2513
2551
|
}
|
|
2514
|
-
tmp.
|
|
2552
|
+
tmp.y4h_1 = destination;
|
|
2515
2553
|
}
|
|
2516
|
-
protoOf(Companion_8).
|
|
2554
|
+
protoOf(Companion_8).g4i = function (name) {
|
|
2517
2555
|
// Inline function 'kotlin.let' call
|
|
2518
2556
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2519
|
-
var tmp0_elvis_lhs = Companion_getInstance_8().
|
|
2557
|
+
var tmp0_elvis_lhs = Companion_getInstance_8().y4h_1.t2(it);
|
|
2520
2558
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2521
2559
|
};
|
|
2522
2560
|
var Companion_instance_8;
|
|
@@ -2527,9 +2565,9 @@ function Companion_getInstance_8() {
|
|
|
2527
2565
|
}
|
|
2528
2566
|
function URLProtocol(name, defaultPort) {
|
|
2529
2567
|
Companion_getInstance_8();
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2532
|
-
var tmp0 = this.
|
|
2568
|
+
this.t4g_1 = name;
|
|
2569
|
+
this.u4g_1 = defaultPort;
|
|
2570
|
+
var tmp0 = this.t4g_1;
|
|
2533
2571
|
var tmp$ret$0;
|
|
2534
2572
|
$l$block: {
|
|
2535
2573
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2551,11 +2589,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2551
2589
|
}
|
|
2552
2590
|
}
|
|
2553
2591
|
protoOf(URLProtocol).toString = function () {
|
|
2554
|
-
return 'URLProtocol(name=' + this.
|
|
2592
|
+
return 'URLProtocol(name=' + this.t4g_1 + ', defaultPort=' + this.u4g_1 + ')';
|
|
2555
2593
|
};
|
|
2556
2594
|
protoOf(URLProtocol).hashCode = function () {
|
|
2557
|
-
var result = getStringHashCode(this.
|
|
2558
|
-
result = imul(result, 31) + this.
|
|
2595
|
+
var result = getStringHashCode(this.t4g_1);
|
|
2596
|
+
result = imul(result, 31) + this.u4g_1 | 0;
|
|
2559
2597
|
return result;
|
|
2560
2598
|
};
|
|
2561
2599
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2563,38 +2601,38 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2563
2601
|
return true;
|
|
2564
2602
|
if (!(other instanceof URLProtocol))
|
|
2565
2603
|
return false;
|
|
2566
|
-
if (!(this.
|
|
2604
|
+
if (!(this.t4g_1 === other.t4g_1))
|
|
2567
2605
|
return false;
|
|
2568
|
-
if (!(this.
|
|
2606
|
+
if (!(this.u4g_1 === other.u4g_1))
|
|
2569
2607
|
return false;
|
|
2570
2608
|
return true;
|
|
2571
2609
|
};
|
|
2572
2610
|
function isSecure(_this__u8e3s4) {
|
|
2573
|
-
return _this__u8e3s4.
|
|
2611
|
+
return _this__u8e3s4.t4g_1 === 'https' || _this__u8e3s4.t4g_1 === 'wss';
|
|
2574
2612
|
}
|
|
2575
2613
|
function isWebsocket(_this__u8e3s4) {
|
|
2576
|
-
return _this__u8e3s4.
|
|
2614
|
+
return _this__u8e3s4.t4g_1 === 'ws' || _this__u8e3s4.t4g_1 === 'wss';
|
|
2577
2615
|
}
|
|
2578
2616
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2579
|
-
_this__u8e3s4.
|
|
2580
|
-
_this__u8e3s4.
|
|
2581
|
-
_this__u8e3s4.
|
|
2582
|
-
_this__u8e3s4.
|
|
2583
|
-
_this__u8e3s4.
|
|
2584
|
-
_this__u8e3s4.
|
|
2617
|
+
_this__u8e3s4.m4g_1 = url.m4g_1;
|
|
2618
|
+
_this__u8e3s4.j4g_1 = url.j4g_1;
|
|
2619
|
+
_this__u8e3s4.r4h(url.l4g_1);
|
|
2620
|
+
_this__u8e3s4.q4g_1 = url.q4g_1;
|
|
2621
|
+
_this__u8e3s4.n4g_1 = url.n4g_1;
|
|
2622
|
+
_this__u8e3s4.o4g_1 = url.o4g_1;
|
|
2585
2623
|
// Inline function 'kotlin.apply' call
|
|
2586
2624
|
var this_0 = ParametersBuilder();
|
|
2587
|
-
appendAll(this_0, url.
|
|
2588
|
-
_this__u8e3s4.
|
|
2589
|
-
_this__u8e3s4.
|
|
2590
|
-
_this__u8e3s4.
|
|
2625
|
+
appendAll(this_0, url.r4g_1);
|
|
2626
|
+
_this__u8e3s4.e4i(this_0);
|
|
2627
|
+
_this__u8e3s4.p4g_1 = url.p4g_1;
|
|
2628
|
+
_this__u8e3s4.k4g_1 = url.k4g_1;
|
|
2591
2629
|
return _this__u8e3s4;
|
|
2592
2630
|
}
|
|
2593
2631
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2594
|
-
return _this__u8e3s4.
|
|
2632
|
+
return _this__u8e3s4.w4g_1 + ':' + _this__u8e3s4.h4i();
|
|
2595
2633
|
}
|
|
2596
2634
|
function Url(urlString) {
|
|
2597
|
-
return URLBuilder_0(urlString).
|
|
2635
|
+
return URLBuilder_0(urlString).a43();
|
|
2598
2636
|
}
|
|
2599
2637
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2600
2638
|
var tmp;
|
|
@@ -2612,7 +2650,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2612
2650
|
_this__u8e3s4.c1('?');
|
|
2613
2651
|
}
|
|
2614
2652
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2615
|
-
var tmp0 = encodedQueryParameters.
|
|
2653
|
+
var tmp0 = encodedQueryParameters.m40();
|
|
2616
2654
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2617
2655
|
var destination = ArrayList_init_$Create$();
|
|
2618
2656
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -2624,7 +2662,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2624
2662
|
var value = element.p1();
|
|
2625
2663
|
var tmp_0;
|
|
2626
2664
|
if (value.r()) {
|
|
2627
|
-
tmp_0 =
|
|
2665
|
+
tmp_0 = listOf_0(to(key, null));
|
|
2628
2666
|
} else {
|
|
2629
2667
|
// Inline function 'kotlin.collections.map' call
|
|
2630
2668
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2658,16 +2696,16 @@ function URLBuilder_0(urlString) {
|
|
|
2658
2696
|
return takeFrom(new URLBuilder(), urlString);
|
|
2659
2697
|
}
|
|
2660
2698
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2661
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2662
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2699
|
+
var tmp0_subject = _this__u8e3s4.x4g_1;
|
|
2700
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.i4h_1.u4g_1 ? _this__u8e3s4.w4g_1 : get_hostWithPort(_this__u8e3s4);
|
|
2663
2701
|
}
|
|
2664
2702
|
function appendUrlFullPath$lambda(it) {
|
|
2665
|
-
var key = it.
|
|
2703
|
+
var key = it.vg_1;
|
|
2666
2704
|
var tmp;
|
|
2667
|
-
if (it.
|
|
2705
|
+
if (it.wg_1 == null) {
|
|
2668
2706
|
tmp = key;
|
|
2669
2707
|
} else {
|
|
2670
|
-
var value = toString_1(it.
|
|
2708
|
+
var value = toString_1(it.wg_1);
|
|
2671
2709
|
tmp = key + '=' + value;
|
|
2672
2710
|
}
|
|
2673
2711
|
return tmp;
|
|
@@ -2717,146 +2755,151 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2717
2755
|
if ($pathSegments.r()) {
|
|
2718
2756
|
return '';
|
|
2719
2757
|
}
|
|
2720
|
-
var pathStartIndex = indexOf(this$0.
|
|
2758
|
+
var pathStartIndex = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(47), this$0.i4h_1.t4g_1.length + 3 | 0);
|
|
2721
2759
|
var tmp_0;
|
|
2722
2760
|
if (pathStartIndex === -1) {
|
|
2723
2761
|
return '';
|
|
2724
2762
|
}
|
|
2725
2763
|
// Inline function 'kotlin.charArrayOf' call
|
|
2726
2764
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2727
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2765
|
+
var pathEndIndex = indexOfAny(this$0.d4h_1, tmp$ret$0, pathStartIndex);
|
|
2728
2766
|
var tmp_1;
|
|
2729
2767
|
if (pathEndIndex === -1) {
|
|
2730
|
-
return substring_0(this$0.
|
|
2768
|
+
return substring_0(this$0.d4h_1, pathStartIndex);
|
|
2731
2769
|
}
|
|
2732
|
-
return substring(this$0.
|
|
2770
|
+
return substring(this$0.d4h_1, pathStartIndex, pathEndIndex);
|
|
2733
2771
|
};
|
|
2734
2772
|
}
|
|
2735
2773
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2736
2774
|
return function () {
|
|
2737
|
-
var queryStart = indexOf(this$0.
|
|
2775
|
+
var queryStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2738
2776
|
var tmp;
|
|
2739
2777
|
if (queryStart === 0) {
|
|
2740
2778
|
return '';
|
|
2741
2779
|
}
|
|
2742
|
-
var queryEnd = indexOf(this$0.
|
|
2780
|
+
var queryEnd = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2743
2781
|
var tmp_0;
|
|
2744
2782
|
if (queryEnd === -1) {
|
|
2745
|
-
return substring_0(this$0.
|
|
2783
|
+
return substring_0(this$0.d4h_1, queryStart);
|
|
2746
2784
|
}
|
|
2747
|
-
return substring(this$0.
|
|
2785
|
+
return substring(this$0.d4h_1, queryStart, queryEnd);
|
|
2748
2786
|
};
|
|
2749
2787
|
}
|
|
2750
2788
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2751
2789
|
return function () {
|
|
2752
|
-
var pathStart = indexOf(this$0.
|
|
2790
|
+
var pathStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(47), this$0.i4h_1.t4g_1.length + 3 | 0);
|
|
2753
2791
|
var tmp;
|
|
2754
2792
|
if (pathStart === -1) {
|
|
2755
2793
|
return '';
|
|
2756
2794
|
}
|
|
2757
|
-
var queryEnd = indexOf(this$0.
|
|
2795
|
+
var queryEnd = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2758
2796
|
var tmp_0;
|
|
2759
2797
|
if (queryEnd === -1) {
|
|
2760
|
-
return substring_0(this$0.
|
|
2798
|
+
return substring_0(this$0.d4h_1, pathStart);
|
|
2761
2799
|
}
|
|
2762
|
-
return substring(this$0.
|
|
2800
|
+
return substring(this$0.d4h_1, pathStart, queryEnd);
|
|
2763
2801
|
};
|
|
2764
2802
|
}
|
|
2803
|
+
function Url$_get_encodedPathAndQuery_$ref_sf10sn() {
|
|
2804
|
+
return constructCallableReference(function (p0) {
|
|
2805
|
+
return p0.i4i();
|
|
2806
|
+
}, 1, 0, 21);
|
|
2807
|
+
}
|
|
2765
2808
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2766
2809
|
return function () {
|
|
2767
2810
|
var tmp;
|
|
2768
|
-
if (this$0.
|
|
2811
|
+
if (this$0.a4h_1 == null) {
|
|
2769
2812
|
return null;
|
|
2770
2813
|
}
|
|
2771
2814
|
var tmp_0;
|
|
2772
2815
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2773
|
-
var this_0 = this$0.
|
|
2816
|
+
var this_0 = this$0.a4h_1;
|
|
2774
2817
|
if (charSequenceLength(this_0) === 0) {
|
|
2775
2818
|
return '';
|
|
2776
2819
|
}
|
|
2777
|
-
var usernameStart = this$0.
|
|
2820
|
+
var usernameStart = this$0.i4h_1.t4g_1.length + 3 | 0;
|
|
2778
2821
|
// Inline function 'kotlin.charArrayOf' call
|
|
2779
2822
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2780
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2781
|
-
return substring(this$0.
|
|
2823
|
+
var usernameEnd = indexOfAny(this$0.d4h_1, tmp$ret$1, usernameStart);
|
|
2824
|
+
return substring(this$0.d4h_1, usernameStart, usernameEnd);
|
|
2782
2825
|
};
|
|
2783
2826
|
}
|
|
2784
2827
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2785
2828
|
return constructCallableReference(function (p0) {
|
|
2786
|
-
return p0.
|
|
2787
|
-
}, 1, 0,
|
|
2829
|
+
return p0.j4i();
|
|
2830
|
+
}, 1, 0, 22);
|
|
2788
2831
|
}
|
|
2789
2832
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2790
2833
|
return function () {
|
|
2791
2834
|
var tmp;
|
|
2792
|
-
if (this$0.
|
|
2835
|
+
if (this$0.b4h_1 == null) {
|
|
2793
2836
|
return null;
|
|
2794
2837
|
}
|
|
2795
2838
|
var tmp_0;
|
|
2796
2839
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2797
|
-
var this_0 = this$0.
|
|
2840
|
+
var this_0 = this$0.b4h_1;
|
|
2798
2841
|
if (charSequenceLength(this_0) === 0) {
|
|
2799
2842
|
return '';
|
|
2800
2843
|
}
|
|
2801
|
-
var passwordStart = indexOf(this$0.
|
|
2802
|
-
var passwordEnd = indexOf(this$0.
|
|
2803
|
-
return substring(this$0.
|
|
2844
|
+
var passwordStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(58), this$0.i4h_1.t4g_1.length + 3 | 0) + 1 | 0;
|
|
2845
|
+
var passwordEnd = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(64));
|
|
2846
|
+
return substring(this$0.d4h_1, passwordStart, passwordEnd);
|
|
2804
2847
|
};
|
|
2805
2848
|
}
|
|
2806
2849
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2807
2850
|
return constructCallableReference(function (p0) {
|
|
2808
|
-
return p0.
|
|
2809
|
-
}, 1, 0,
|
|
2851
|
+
return p0.k4i();
|
|
2852
|
+
}, 1, 0, 23);
|
|
2810
2853
|
}
|
|
2811
2854
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2812
2855
|
return function () {
|
|
2813
|
-
var fragmentStart = indexOf(this$0.
|
|
2856
|
+
var fragmentStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2814
2857
|
var tmp;
|
|
2815
2858
|
if (fragmentStart === 0) {
|
|
2816
2859
|
return '';
|
|
2817
2860
|
}
|
|
2818
|
-
return substring_0(this$0.
|
|
2861
|
+
return substring_0(this$0.d4h_1, fragmentStart);
|
|
2819
2862
|
};
|
|
2820
2863
|
}
|
|
2821
2864
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2822
|
-
this.
|
|
2823
|
-
this.
|
|
2824
|
-
this.
|
|
2825
|
-
this.
|
|
2826
|
-
this.
|
|
2827
|
-
this.
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2830
|
-
var containsArg = this.
|
|
2865
|
+
this.w4g_1 = host;
|
|
2866
|
+
this.x4g_1 = specifiedPort;
|
|
2867
|
+
this.y4g_1 = parameters;
|
|
2868
|
+
this.z4g_1 = fragment;
|
|
2869
|
+
this.a4h_1 = user;
|
|
2870
|
+
this.b4h_1 = password;
|
|
2871
|
+
this.c4h_1 = trailingQuery;
|
|
2872
|
+
this.d4h_1 = urlString;
|
|
2873
|
+
var containsArg = this.x4g_1;
|
|
2831
2874
|
// Inline function 'kotlin.require' call
|
|
2832
2875
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2833
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2876
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.x4g_1;
|
|
2834
2877
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2835
2878
|
}
|
|
2836
|
-
this.
|
|
2837
|
-
this.
|
|
2879
|
+
this.e4h_1 = pathSegments;
|
|
2880
|
+
this.f4h_1 = pathSegments;
|
|
2838
2881
|
var tmp = this;
|
|
2839
|
-
tmp.
|
|
2840
|
-
this.
|
|
2882
|
+
tmp.g4h_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2883
|
+
this.h4h_1 = protocol;
|
|
2841
2884
|
var tmp_0 = this;
|
|
2842
|
-
var tmp0_elvis_lhs = this.
|
|
2843
|
-
tmp_0.
|
|
2885
|
+
var tmp0_elvis_lhs = this.h4h_1;
|
|
2886
|
+
tmp_0.i4h_1 = tmp0_elvis_lhs == null ? Companion_getInstance_8().t4h_1 : tmp0_elvis_lhs;
|
|
2844
2887
|
var tmp_1 = this;
|
|
2845
|
-
tmp_1.
|
|
2888
|
+
tmp_1.j4h_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2846
2889
|
var tmp_2 = this;
|
|
2847
|
-
tmp_2.
|
|
2890
|
+
tmp_2.k4h_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2848
2891
|
var tmp_3 = this;
|
|
2849
|
-
tmp_3.
|
|
2892
|
+
tmp_3.l4h_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2850
2893
|
var tmp_4 = this;
|
|
2851
|
-
tmp_4.
|
|
2894
|
+
tmp_4.m4h_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2852
2895
|
var tmp_5 = this;
|
|
2853
|
-
tmp_5.
|
|
2896
|
+
tmp_5.n4h_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2854
2897
|
var tmp_6 = this;
|
|
2855
|
-
tmp_6.
|
|
2898
|
+
tmp_6.o4h_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2856
2899
|
}
|
|
2857
|
-
protoOf(Url_0).
|
|
2900
|
+
protoOf(Url_0).h4i = function () {
|
|
2858
2901
|
// Inline function 'kotlin.takeUnless' call
|
|
2859
|
-
var this_0 = this.
|
|
2902
|
+
var this_0 = this.x4g_1;
|
|
2860
2903
|
var tmp;
|
|
2861
2904
|
if (!(this_0 === 0)) {
|
|
2862
2905
|
tmp = this_0;
|
|
@@ -2864,24 +2907,31 @@ protoOf(Url_0).p4e = function () {
|
|
|
2864
2907
|
tmp = null;
|
|
2865
2908
|
}
|
|
2866
2909
|
var tmp0_elvis_lhs = tmp;
|
|
2867
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2910
|
+
return tmp0_elvis_lhs == null ? this.i4h_1.u4g_1 : tmp0_elvis_lhs;
|
|
2911
|
+
};
|
|
2912
|
+
protoOf(Url_0).i4i = function () {
|
|
2913
|
+
var tmp0 = this.l4h_1;
|
|
2914
|
+
var tmp = KProperty1;
|
|
2915
|
+
// Inline function 'kotlin.getValue' call
|
|
2916
|
+
getPropertyCallableRef('encodedPathAndQuery', 1, tmp, Url$_get_encodedPathAndQuery_$ref_sf10sn(), null);
|
|
2917
|
+
return tmp0.p1();
|
|
2868
2918
|
};
|
|
2869
|
-
protoOf(Url_0).
|
|
2870
|
-
var tmp0 = this.
|
|
2919
|
+
protoOf(Url_0).j4i = function () {
|
|
2920
|
+
var tmp0 = this.m4h_1;
|
|
2871
2921
|
var tmp = KProperty1;
|
|
2872
2922
|
// Inline function 'kotlin.getValue' call
|
|
2873
2923
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2874
2924
|
return tmp0.p1();
|
|
2875
2925
|
};
|
|
2876
|
-
protoOf(Url_0).
|
|
2877
|
-
var tmp0 = this.
|
|
2926
|
+
protoOf(Url_0).k4i = function () {
|
|
2927
|
+
var tmp0 = this.n4h_1;
|
|
2878
2928
|
var tmp = KProperty1;
|
|
2879
2929
|
// Inline function 'kotlin.getValue' call
|
|
2880
2930
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2881
2931
|
return tmp0.p1();
|
|
2882
2932
|
};
|
|
2883
2933
|
protoOf(Url_0).toString = function () {
|
|
2884
|
-
return this.
|
|
2934
|
+
return this.d4h_1;
|
|
2885
2935
|
};
|
|
2886
2936
|
protoOf(Url_0).equals = function (other) {
|
|
2887
2937
|
if (this === other)
|
|
@@ -2890,10 +2940,10 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2890
2940
|
return false;
|
|
2891
2941
|
if (!(other instanceof Url_0))
|
|
2892
2942
|
THROW_CCE();
|
|
2893
|
-
return this.
|
|
2943
|
+
return this.d4h_1 === other.d4h_1;
|
|
2894
2944
|
};
|
|
2895
2945
|
protoOf(Url_0).hashCode = function () {
|
|
2896
|
-
return getStringHashCode(this.
|
|
2946
|
+
return getStringHashCode(this.d4h_1);
|
|
2897
2947
|
};
|
|
2898
2948
|
function get_authority_0(_this__u8e3s4) {
|
|
2899
2949
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2905,19 +2955,19 @@ function get_authority_0(_this__u8e3s4) {
|
|
|
2905
2955
|
}
|
|
2906
2956
|
function UrlSerializer() {
|
|
2907
2957
|
UrlSerializer_instance = this;
|
|
2908
|
-
this.
|
|
2958
|
+
this.l4i_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2909
2959
|
}
|
|
2910
|
-
protoOf(UrlSerializer).
|
|
2911
|
-
return this.
|
|
2960
|
+
protoOf(UrlSerializer).kq = function () {
|
|
2961
|
+
return this.l4i_1;
|
|
2912
2962
|
};
|
|
2913
|
-
protoOf(UrlSerializer).
|
|
2914
|
-
return Url(decoder.
|
|
2963
|
+
protoOf(UrlSerializer).mq = function (decoder) {
|
|
2964
|
+
return Url(decoder.ht());
|
|
2915
2965
|
};
|
|
2916
|
-
protoOf(UrlSerializer).
|
|
2917
|
-
encoder.
|
|
2966
|
+
protoOf(UrlSerializer).m4i = function (encoder, value) {
|
|
2967
|
+
encoder.qu(value.toString());
|
|
2918
2968
|
};
|
|
2919
|
-
protoOf(UrlSerializer).
|
|
2920
|
-
return this.
|
|
2969
|
+
protoOf(UrlSerializer).lq = function (encoder, value) {
|
|
2970
|
+
return this.m4i(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2921
2971
|
};
|
|
2922
2972
|
var UrlSerializer_instance;
|
|
2923
2973
|
function UrlSerializer_getInstance() {
|
|
@@ -2929,21 +2979,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
2929
2979
|
// Inline function 'kotlin.text.buildString' call
|
|
2930
2980
|
// Inline function 'kotlin.apply' call
|
|
2931
2981
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
2932
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2982
|
+
appendUserAndPassword(this_0, _this__u8e3s4.j4i(), _this__u8e3s4.k4i());
|
|
2933
2983
|
return this_0.toString();
|
|
2934
2984
|
}
|
|
2935
2985
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2936
|
-
this.
|
|
2937
|
-
this.
|
|
2986
|
+
this.n4i_1 = encodedParametersBuilder;
|
|
2987
|
+
this.o4i_1 = this.n4i_1.r40();
|
|
2938
2988
|
}
|
|
2939
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2940
|
-
return decodeParameters(this.
|
|
2989
|
+
protoOf(UrlDecodedParametersBuilder).a43 = function () {
|
|
2990
|
+
return decodeParameters(this.n4i_1);
|
|
2941
2991
|
};
|
|
2942
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2943
|
-
return this.
|
|
2992
|
+
protoOf(UrlDecodedParametersBuilder).r40 = function () {
|
|
2993
|
+
return this.o4i_1;
|
|
2944
2994
|
};
|
|
2945
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2946
|
-
var tmp0_safe_receiver = this.
|
|
2995
|
+
protoOf(UrlDecodedParametersBuilder).s40 = function (name) {
|
|
2996
|
+
var tmp0_safe_receiver = this.n4i_1.s40(encodeURLParameter(name));
|
|
2947
2997
|
var tmp;
|
|
2948
2998
|
if (tmp0_safe_receiver == null) {
|
|
2949
2999
|
tmp = null;
|
|
@@ -2961,9 +3011,9 @@ protoOf(UrlDecodedParametersBuilder).r3x = function (name) {
|
|
|
2961
3011
|
}
|
|
2962
3012
|
return tmp;
|
|
2963
3013
|
};
|
|
2964
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3014
|
+
protoOf(UrlDecodedParametersBuilder).t40 = function () {
|
|
2965
3015
|
// Inline function 'kotlin.collections.map' call
|
|
2966
|
-
var this_0 = this.
|
|
3016
|
+
var this_0 = this.n4i_1.t40();
|
|
2967
3017
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2968
3018
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2969
3019
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2975,18 +3025,18 @@ protoOf(UrlDecodedParametersBuilder).s3x = function () {
|
|
|
2975
3025
|
return toSet(destination);
|
|
2976
3026
|
};
|
|
2977
3027
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
2978
|
-
return this.
|
|
3028
|
+
return this.n4i_1.r();
|
|
2979
3029
|
};
|
|
2980
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2981
|
-
return decodeParameters(this.
|
|
3030
|
+
protoOf(UrlDecodedParametersBuilder).m40 = function () {
|
|
3031
|
+
return decodeParameters(this.n4i_1).m40();
|
|
2982
3032
|
};
|
|
2983
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2984
|
-
return this.
|
|
3033
|
+
protoOf(UrlDecodedParametersBuilder).w40 = function (name, value) {
|
|
3034
|
+
return this.n4i_1.w40(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2985
3035
|
};
|
|
2986
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2987
|
-
return appendAllEncoded(this.
|
|
3036
|
+
protoOf(UrlDecodedParametersBuilder).x40 = function (stringValues) {
|
|
3037
|
+
return appendAllEncoded(this.n4i_1, stringValues);
|
|
2988
3038
|
};
|
|
2989
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3039
|
+
protoOf(UrlDecodedParametersBuilder).n40 = function (name, values) {
|
|
2990
3040
|
var tmp = encodeURLParameter(name);
|
|
2991
3041
|
// Inline function 'kotlin.collections.map' call
|
|
2992
3042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2997,10 +3047,10 @@ protoOf(UrlDecodedParametersBuilder).m3x = function (name, values) {
|
|
|
2997
3047
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
2998
3048
|
destination.b1(tmp$ret$2);
|
|
2999
3049
|
}
|
|
3000
|
-
return this.
|
|
3050
|
+
return this.n4i_1.n40(tmp, destination);
|
|
3001
3051
|
};
|
|
3002
3052
|
protoOf(UrlDecodedParametersBuilder).x2 = function () {
|
|
3003
|
-
return this.
|
|
3053
|
+
return this.n4i_1.x2();
|
|
3004
3054
|
};
|
|
3005
3055
|
function encodeParameters(parameters) {
|
|
3006
3056
|
// Inline function 'kotlin.apply' call
|
|
@@ -3012,14 +3062,14 @@ function decodeParameters(parameters) {
|
|
|
3012
3062
|
// Inline function 'kotlin.apply' call
|
|
3013
3063
|
var this_0 = ParametersBuilder();
|
|
3014
3064
|
appendAllDecoded(this_0, parameters);
|
|
3015
|
-
return this_0.
|
|
3065
|
+
return this_0.a43();
|
|
3016
3066
|
}
|
|
3017
3067
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3018
3068
|
// Inline function 'kotlin.collections.forEach' call
|
|
3019
|
-
var _iterator__ex2g4s = parameters.
|
|
3069
|
+
var _iterator__ex2g4s = parameters.t40().t();
|
|
3020
3070
|
while (_iterator__ex2g4s.u()) {
|
|
3021
3071
|
var element = _iterator__ex2g4s.v();
|
|
3022
|
-
var tmp0_elvis_lhs = parameters.
|
|
3072
|
+
var tmp0_elvis_lhs = parameters.s40(element);
|
|
3023
3073
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3024
3074
|
var tmp = encodeURLParameter(element);
|
|
3025
3075
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3031,15 +3081,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
3031
3081
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
3032
3082
|
destination.b1(tmp$ret$4);
|
|
3033
3083
|
}
|
|
3034
|
-
_this__u8e3s4.
|
|
3084
|
+
_this__u8e3s4.n40(tmp, destination);
|
|
3035
3085
|
}
|
|
3036
3086
|
}
|
|
3037
3087
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3038
3088
|
// Inline function 'kotlin.collections.forEach' call
|
|
3039
|
-
var _iterator__ex2g4s = parameters.
|
|
3089
|
+
var _iterator__ex2g4s = parameters.t40().t();
|
|
3040
3090
|
while (_iterator__ex2g4s.u()) {
|
|
3041
3091
|
var element = _iterator__ex2g4s.v();
|
|
3042
|
-
var tmp0_elvis_lhs = parameters.
|
|
3092
|
+
var tmp0_elvis_lhs = parameters.s40(element);
|
|
3043
3093
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3044
3094
|
var tmp = decodeURLQueryComponent(element);
|
|
3045
3095
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3051,7 +3101,7 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
3051
3101
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3052
3102
|
destination.b1(tmp$ret$4);
|
|
3053
3103
|
}
|
|
3054
|
-
_this__u8e3s4.
|
|
3104
|
+
_this__u8e3s4.n40(tmp, destination);
|
|
3055
3105
|
}
|
|
3056
3106
|
}
|
|
3057
3107
|
function MultiPartData() {
|
|
@@ -3071,20 +3121,20 @@ function ProtocolUpgrade() {
|
|
|
3071
3121
|
}
|
|
3072
3122
|
function ContentWrapper() {
|
|
3073
3123
|
}
|
|
3074
|
-
protoOf(ContentWrapper).
|
|
3075
|
-
return this.
|
|
3124
|
+
protoOf(ContentWrapper).a4j = function () {
|
|
3125
|
+
return this.z4i_1;
|
|
3076
3126
|
};
|
|
3077
3127
|
function OutgoingContent() {
|
|
3078
|
-
this.
|
|
3128
|
+
this.p4i_1 = null;
|
|
3079
3129
|
}
|
|
3080
|
-
protoOf(OutgoingContent).
|
|
3130
|
+
protoOf(OutgoingContent).q4i = function () {
|
|
3081
3131
|
return null;
|
|
3082
3132
|
};
|
|
3083
|
-
protoOf(OutgoingContent).
|
|
3133
|
+
protoOf(OutgoingContent).r4i = function () {
|
|
3084
3134
|
return null;
|
|
3085
3135
|
};
|
|
3086
|
-
protoOf(OutgoingContent).
|
|
3087
|
-
return Companion_getInstance_2().
|
|
3136
|
+
protoOf(OutgoingContent).e4d = function () {
|
|
3137
|
+
return Companion_getInstance_2().z4c_1;
|
|
3088
3138
|
};
|
|
3089
3139
|
function NullBody() {
|
|
3090
3140
|
}
|
|
@@ -3098,7 +3148,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3098
3148
|
tmp = true;
|
|
3099
3149
|
} else {
|
|
3100
3150
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3101
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3151
|
+
tmp = isEmpty(_this__u8e3s4.a4j());
|
|
3102
3152
|
} else {
|
|
3103
3153
|
tmp = false;
|
|
3104
3154
|
}
|
|
@@ -3108,27 +3158,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3108
3158
|
function TextContent(text, contentType, status) {
|
|
3109
3159
|
status = status === VOID ? null : status;
|
|
3110
3160
|
ByteArrayContent.call(this);
|
|
3111
|
-
this.
|
|
3112
|
-
this.
|
|
3113
|
-
this.
|
|
3161
|
+
this.c4j_1 = text;
|
|
3162
|
+
this.d4j_1 = contentType;
|
|
3163
|
+
this.e4j_1 = status;
|
|
3114
3164
|
var tmp = this;
|
|
3115
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3116
|
-
tmp.
|
|
3165
|
+
var tmp0_elvis_lhs = charset(this.d4j_1);
|
|
3166
|
+
tmp.f4j_1 = toByteArray(this.c4j_1, tmp0_elvis_lhs == null ? Charsets_getInstance().h3x_1 : tmp0_elvis_lhs);
|
|
3117
3167
|
}
|
|
3118
|
-
protoOf(TextContent).
|
|
3119
|
-
return this.
|
|
3168
|
+
protoOf(TextContent).q4i = function () {
|
|
3169
|
+
return this.d4j_1;
|
|
3120
3170
|
};
|
|
3121
|
-
protoOf(TextContent).
|
|
3122
|
-
return fromInt(this.
|
|
3171
|
+
protoOf(TextContent).r4i = function () {
|
|
3172
|
+
return fromInt(this.f4j_1.length);
|
|
3123
3173
|
};
|
|
3124
|
-
protoOf(TextContent).
|
|
3125
|
-
return this.
|
|
3174
|
+
protoOf(TextContent).x4i = function () {
|
|
3175
|
+
return this.f4j_1;
|
|
3126
3176
|
};
|
|
3127
3177
|
protoOf(TextContent).toString = function () {
|
|
3128
|
-
return 'TextContent[' + this.
|
|
3178
|
+
return 'TextContent[' + this.d4j_1.toString() + '] "' + take(this.c4j_1, 30) + '"';
|
|
3129
3179
|
};
|
|
3130
3180
|
function get_origin(_this__u8e3s4) {
|
|
3131
|
-
return PlatformUtils_getInstance().
|
|
3181
|
+
return PlatformUtils_getInstance().e40_1 ? locationOrigin() : 'http://localhost';
|
|
3132
3182
|
}
|
|
3133
3183
|
function locationOrigin() {
|
|
3134
3184
|
return function () {
|
|
@@ -3147,9 +3197,9 @@ function locationOrigin() {
|
|
|
3147
3197
|
}
|
|
3148
3198
|
//region block: post-declaration
|
|
3149
3199
|
protoOf(EmptyHeaders).td = get;
|
|
3150
|
-
protoOf(EmptyHeaders).
|
|
3200
|
+
protoOf(EmptyHeaders).y40 = forEach;
|
|
3151
3201
|
protoOf(EmptyParameters).td = get;
|
|
3152
|
-
protoOf(EmptyParameters).
|
|
3202
|
+
protoOf(EmptyParameters).y40 = forEach;
|
|
3153
3203
|
//endregion
|
|
3154
3204
|
//region block: init
|
|
3155
3205
|
Companion_instance = new Companion();
|
|
@@ -3196,6 +3246,7 @@ export {
|
|
|
3196
3246
|
contentType_1 as contentType1lwcfjsjo0z8g,
|
|
3197
3247
|
encodeURLPath as encodeURLPath2fwba5way5jjt,
|
|
3198
3248
|
formUrlEncode as formUrlEncode1cs6tvna5e1qw,
|
|
3249
|
+
fromHttpToGmtDate as fromHttpToGmtDate33lhlvsspfa5v,
|
|
3199
3250
|
headersOf as headersOf2tgdoojg8tifn,
|
|
3200
3251
|
isSecure as isSecurex1qiiavqi0xu,
|
|
3201
3252
|
isWebsocket as isWebsocket1w1xog9vfgwm1,
|