@dmarket/p2p-tracker-core 0.1.0-SNAPSHOT.99 → 1.0.0-beta.1
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 +14 -0
- package/dmarket-p2p-tracker-core-domain.mjs +10678 -4377
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3172 -2659
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2763 -2433
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +44 -44
- package/kotlinx-io-kotlinx-io-core.mjs +496 -496
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1791 -1790
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1586 -1564
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3008 -3000
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +491 -491
- package/ktor-ktor-http.mjs +646 -646
- package/ktor-ktor-io.mjs +1015 -1015
- package/ktor-ktor-utils.mjs +794 -786
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +747 -747
- package/p2p-tracker-core.d.mts +107 -40
- package/p2p-tracker-core.mjs +26723 -10673
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +2 -4
- package/pkg/README.md +92 -0
- package/pkg/client_wasm.d.ts +312 -0
- package/pkg/client_wasm.js +1187 -0
- package/pkg/client_wasm_bg.wasm +0 -0
- package/pkg/client_wasm_bg.wasm.d.ts +32 -0
- package/pkg/package.json +19 -0
- package/pkg/snippets/web-spawn-05868593a72e2d44/js/spawn.js +73 -0
- package/pkg/spawn.js +73 -0
- package/transport/README.md +172 -0
- package/transport/dist/channel.d.ts +48 -0
- package/transport/dist/channel.d.ts.map +1 -0
- package/transport/dist/channel.js +150 -0
- package/transport/dist/channel.js.map +1 -0
- package/transport/dist/index.d.ts +8 -0
- package/transport/dist/index.d.ts.map +1 -0
- package/transport/dist/index.js +18 -0
- package/transport/dist/index.js.map +1 -0
- package/transport/dist/prover.d.ts +103 -0
- package/transport/dist/prover.d.ts.map +1 -0
- package/transport/dist/prover.js +139 -0
- package/transport/dist/prover.js.map +1 -0
- package/transport/dist/transport.d.ts +31 -0
- package/transport/dist/transport.d.ts.map +1 -0
- package/transport/dist/transport.js +75 -0
- package/transport/dist/transport.js.map +1 -0
- package/transport/dist/types.d.ts +162 -0
- package/transport/dist/types.d.ts.map +1 -0
- package/transport/dist/types.js +21 -0
- package/transport/dist/types.js.map +1 -0
- package/transport/dist/wasm-compat.d.ts +2 -0
- package/transport/dist/wasm-compat.d.ts.map +1 -0
- package/transport/dist/wasm-compat.js +15 -0
- package/transport/dist/wasm-compat.js.map +1 -0
- package/transport/package.json +28 -0
package/ktor-ktor-http.mjs
CHANGED
|
@@ -224,26 +224,26 @@ function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
|
224
224
|
// Inline function 'kotlin.text.buildString' call
|
|
225
225
|
// Inline function 'kotlin.apply' call
|
|
226
226
|
var this_0 = StringBuilder_init_$Create$();
|
|
227
|
-
var content = encode(Charsets_getInstance().
|
|
227
|
+
var content = encode(Charsets_getInstance().i3t_1.m3t(), _this__u8e3s4);
|
|
228
228
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
229
229
|
return this_0.toString();
|
|
230
230
|
}
|
|
231
231
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
232
232
|
start = start === VOID ? 0 : start;
|
|
233
233
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
234
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
234
|
+
charset = charset === VOID ? Charsets_getInstance().i3t_1 : charset;
|
|
235
235
|
_init_properties_Codecs_kt__fudxxf();
|
|
236
236
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
237
237
|
}
|
|
238
238
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
239
239
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
240
240
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
241
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
241
|
+
charset = charset === VOID ? Charsets_getInstance().i3t_1 : charset;
|
|
242
242
|
_init_properties_Codecs_kt__fudxxf();
|
|
243
243
|
// Inline function 'kotlin.text.buildString' call
|
|
244
244
|
// Inline function 'kotlin.apply' call
|
|
245
245
|
var this_0 = StringBuilder_init_$Create$();
|
|
246
|
-
var content = encode(charset.
|
|
246
|
+
var content = encode(charset.m3t(), _this__u8e3s4);
|
|
247
247
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
248
248
|
return this_0.toString();
|
|
249
249
|
}
|
|
@@ -251,7 +251,7 @@ function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset
|
|
|
251
251
|
start = start === VOID ? 0 : start;
|
|
252
252
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
253
253
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
254
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
254
|
+
charset = charset === VOID ? Charsets_getInstance().i3t_1 : charset;
|
|
255
255
|
_init_properties_Codecs_kt__fudxxf();
|
|
256
256
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
257
257
|
}
|
|
@@ -302,16 +302,16 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
302
302
|
// Inline function 'kotlin.text.buildString' call
|
|
303
303
|
// Inline function 'kotlin.apply' call
|
|
304
304
|
var this_0 = StringBuilder_init_$Create$();
|
|
305
|
-
var charset = Charsets_getInstance().
|
|
305
|
+
var charset = Charsets_getInstance().i3t_1;
|
|
306
306
|
var index = 0;
|
|
307
307
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
308
308
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
309
|
-
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().
|
|
309
|
+
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().d1(new Char(current)) || get_VALID_PATH_PART().d1(new Char(current))) {
|
|
310
310
|
this_0.s(current);
|
|
311
311
|
index = index + 1 | 0;
|
|
312
312
|
continue $l$loop_0;
|
|
313
313
|
}
|
|
314
|
-
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().
|
|
314
|
+
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().d1(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().d1(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
|
|
315
315
|
this_0.s(current);
|
|
316
316
|
this_0.s(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
317
317
|
this_0.s(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
@@ -319,7 +319,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
319
319
|
continue $l$loop_0;
|
|
320
320
|
}
|
|
321
321
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
322
|
-
var tmp = encode(charset.
|
|
322
|
+
var tmp = encode(charset.m3t(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
323
323
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
324
324
|
index = index + symbolSize | 0;
|
|
325
325
|
}
|
|
@@ -331,7 +331,7 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
331
331
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
332
332
|
var sb = StringBuilder_init_$Create$_0(sbSize);
|
|
333
333
|
if (prefixEnd > start) {
|
|
334
|
-
sb.
|
|
334
|
+
sb.jc(_this__u8e3s4, start, prefixEnd);
|
|
335
335
|
}
|
|
336
336
|
var index = prefixEnd;
|
|
337
337
|
var bytes = null;
|
|
@@ -382,7 +382,7 @@ function charToHexDigit(c2) {
|
|
|
382
382
|
}
|
|
383
383
|
function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
384
384
|
return function (it) {
|
|
385
|
-
if (get_URL_ALPHABET().
|
|
385
|
+
if (get_URL_ALPHABET().d1(it) || get_SPECIAL_SYMBOLS().d1(it))
|
|
386
386
|
$$this$buildString.s(numberToChar(it));
|
|
387
387
|
else {
|
|
388
388
|
var tmp;
|
|
@@ -416,7 +416,7 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
416
416
|
else
|
|
417
417
|
$$this$buildString.q('%20');
|
|
418
418
|
else {
|
|
419
|
-
if (get_URL_ALPHABET().
|
|
419
|
+
if (get_URL_ALPHABET().d1(it) || (!$encodeFull && get_URL_PROTOCOL_PART().d1(it)))
|
|
420
420
|
$$this$buildString.s(numberToChar(it));
|
|
421
421
|
else {
|
|
422
422
|
$$this$buildString.q(percentEncode(it));
|
|
@@ -428,7 +428,7 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
428
428
|
function forEach$lambda($block) {
|
|
429
429
|
return function (buffer) {
|
|
430
430
|
while (canRead(buffer)) {
|
|
431
|
-
$block(buffer.
|
|
431
|
+
$block(buffer.z3e());
|
|
432
432
|
}
|
|
433
433
|
return true;
|
|
434
434
|
};
|
|
@@ -451,7 +451,7 @@ function _init_properties_Codecs_kt__fudxxf() {
|
|
|
451
451
|
while (_iterator__ex2g4s.u()) {
|
|
452
452
|
var item = _iterator__ex2g4s.v();
|
|
453
453
|
// Inline function 'kotlin.code' call
|
|
454
|
-
var this_1 = item.
|
|
454
|
+
var this_1 = item.z1_1;
|
|
455
455
|
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
456
456
|
var tmp$ret$2 = toByte(tmp$ret$3);
|
|
457
457
|
destination.b1(tmp$ret$2);
|
|
@@ -467,7 +467,7 @@ function _init_properties_Codecs_kt__fudxxf() {
|
|
|
467
467
|
while (_iterator__ex2g4s_0.u()) {
|
|
468
468
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
469
469
|
// Inline function 'kotlin.code' call
|
|
470
|
-
var this_3 = item_0.
|
|
470
|
+
var this_3 = item_0.z1_1;
|
|
471
471
|
var tmp$ret$3_0 = Char__toInt_impl_vasixd(this_3);
|
|
472
472
|
var tmp$ret$2_0 = toByte(tmp$ret$3_0);
|
|
473
473
|
destination_0.b1(tmp$ret$2_0);
|
|
@@ -483,7 +483,7 @@ function _init_properties_Codecs_kt__fudxxf() {
|
|
|
483
483
|
while (_iterator__ex2g4s_1.u()) {
|
|
484
484
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
485
485
|
// Inline function 'kotlin.code' call
|
|
486
|
-
var this_5 = item_1.
|
|
486
|
+
var this_5 = item_1.z1_1;
|
|
487
487
|
var tmp$ret$3_1 = Char__toInt_impl_vasixd(this_5);
|
|
488
488
|
var tmp$ret$2_1 = toByte(tmp$ret$3_1);
|
|
489
489
|
destination_1.b1(tmp$ret$2_1);
|
|
@@ -502,18 +502,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
502
502
|
}
|
|
503
503
|
function hasParameter($this, name, value) {
|
|
504
504
|
var tmp;
|
|
505
|
-
switch ($this.
|
|
505
|
+
switch ($this.p41_1.e1()) {
|
|
506
506
|
case 0:
|
|
507
507
|
tmp = false;
|
|
508
508
|
break;
|
|
509
509
|
case 1:
|
|
510
510
|
// Inline function 'kotlin.let' call
|
|
511
511
|
|
|
512
|
-
var it = $this.
|
|
513
|
-
tmp = (equals(it.
|
|
512
|
+
var it = $this.p41_1.f1(0);
|
|
513
|
+
tmp = (equals(it.q41_1, name, true) && equals(it.r41_1, value, true));
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
var tmp0 = $this.
|
|
516
|
+
var tmp0 = $this.p41_1;
|
|
517
517
|
var tmp$ret$2;
|
|
518
518
|
$l$block_0: {
|
|
519
519
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -530,7 +530,7 @@ function hasParameter($this, name, value) {
|
|
|
530
530
|
var _iterator__ex2g4s = tmp0.t();
|
|
531
531
|
while (_iterator__ex2g4s.u()) {
|
|
532
532
|
var element = _iterator__ex2g4s.v();
|
|
533
|
-
if (equals(element.
|
|
533
|
+
if (equals(element.q41_1, name, true) && equals(element.r41_1, value, true)) {
|
|
534
534
|
tmp$ret$2 = true;
|
|
535
535
|
break $l$block_0;
|
|
536
536
|
}
|
|
@@ -545,20 +545,20 @@ function hasParameter($this, name, value) {
|
|
|
545
545
|
}
|
|
546
546
|
function Companion() {
|
|
547
547
|
Companion_instance = this;
|
|
548
|
-
this.
|
|
548
|
+
this.t41_1 = ContentType_init_$Create$('*', '*');
|
|
549
549
|
}
|
|
550
|
-
protoOf(Companion).
|
|
550
|
+
protoOf(Companion).ho = function (value) {
|
|
551
551
|
if (isBlank(value))
|
|
552
|
-
return this.
|
|
552
|
+
return this.t41_1;
|
|
553
553
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
554
554
|
var headerValue = last(parseHeaderValue(value));
|
|
555
|
-
var tmp0 = headerValue.
|
|
556
|
-
var parameters = headerValue.
|
|
555
|
+
var tmp0 = headerValue.u41_1;
|
|
556
|
+
var parameters = headerValue.v41_1;
|
|
557
557
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
558
558
|
if (slash === -1) {
|
|
559
559
|
// Inline function 'kotlin.text.trim' call
|
|
560
560
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
561
|
-
return Companion_getInstance().
|
|
561
|
+
return Companion_getInstance().t41_1;
|
|
562
562
|
throw new BadContentTypeFormatException(value);
|
|
563
563
|
}
|
|
564
564
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -594,30 +594,30 @@ function Companion_getInstance() {
|
|
|
594
594
|
}
|
|
595
595
|
function Application() {
|
|
596
596
|
Application_instance = this;
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
597
|
+
this.x41_1 = 'application';
|
|
598
|
+
this.y41_1 = ContentType_init_$Create$('application', '*');
|
|
599
|
+
this.z41_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
600
|
+
this.a42_1 = ContentType_init_$Create$('application', 'cbor');
|
|
601
|
+
this.b42_1 = ContentType_init_$Create$('application', 'json');
|
|
602
|
+
this.c42_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
603
|
+
this.d42_1 = ContentType_init_$Create$('application', 'javascript');
|
|
604
|
+
this.e42_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
605
|
+
this.f42_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
606
|
+
this.g42_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
607
|
+
this.h42_1 = ContentType_init_$Create$('application', 'xml');
|
|
608
|
+
this.i42_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
609
|
+
this.j42_1 = ContentType_init_$Create$('application', 'yaml');
|
|
610
|
+
this.k42_1 = ContentType_init_$Create$('application', 'zip');
|
|
611
|
+
this.l42_1 = ContentType_init_$Create$('application', 'gzip');
|
|
612
|
+
this.m42_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
613
|
+
this.n42_1 = ContentType_init_$Create$('application', 'pdf');
|
|
614
|
+
this.o42_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
615
|
+
this.p42_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
616
|
+
this.q42_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
617
|
+
this.r42_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
618
|
+
this.s42_1 = ContentType_init_$Create$('application', 'wasm');
|
|
619
|
+
this.t42_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
620
|
+
this.u42_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
621
621
|
}
|
|
622
622
|
var Application_instance;
|
|
623
623
|
function Application_getInstance() {
|
|
@@ -627,17 +627,17 @@ function Application_getInstance() {
|
|
|
627
627
|
}
|
|
628
628
|
function MultiPart() {
|
|
629
629
|
MultiPart_instance = this;
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
}
|
|
640
|
-
protoOf(MultiPart).
|
|
630
|
+
this.v42_1 = 'multipart';
|
|
631
|
+
this.w42_1 = ContentType_init_$Create$('multipart', '*');
|
|
632
|
+
this.x42_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
633
|
+
this.y42_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
634
|
+
this.z42_1 = ContentType_init_$Create$('multipart', 'related');
|
|
635
|
+
this.a43_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
636
|
+
this.b43_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
637
|
+
this.c43_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
638
|
+
this.d43_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
639
|
+
}
|
|
640
|
+
protoOf(MultiPart).e43 = function (contentType) {
|
|
641
641
|
return startsWith(contentType, 'multipart/', true);
|
|
642
642
|
};
|
|
643
643
|
var MultiPart_instance;
|
|
@@ -648,16 +648,16 @@ function MultiPart_getInstance() {
|
|
|
648
648
|
}
|
|
649
649
|
function Text() {
|
|
650
650
|
Text_instance = this;
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
651
|
+
this.f43_1 = 'text';
|
|
652
|
+
this.g43_1 = ContentType_init_$Create$('text', '*');
|
|
653
|
+
this.h43_1 = ContentType_init_$Create$('text', 'plain');
|
|
654
|
+
this.i43_1 = ContentType_init_$Create$('text', 'css');
|
|
655
|
+
this.j43_1 = ContentType_init_$Create$('text', 'csv');
|
|
656
|
+
this.k43_1 = ContentType_init_$Create$('text', 'html');
|
|
657
|
+
this.l43_1 = ContentType_init_$Create$('text', 'javascript');
|
|
658
|
+
this.m43_1 = ContentType_init_$Create$('text', 'vcard');
|
|
659
|
+
this.n43_1 = ContentType_init_$Create$('text', 'xml');
|
|
660
|
+
this.o43_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
661
661
|
}
|
|
662
662
|
var Text_instance;
|
|
663
663
|
function Text_getInstance() {
|
|
@@ -669,33 +669,33 @@ function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
|
669
669
|
Companion_getInstance();
|
|
670
670
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
671
671
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
672
|
+
this.r43_1 = contentType;
|
|
673
|
+
this.s43_1 = contentSubtype;
|
|
674
674
|
}
|
|
675
|
-
protoOf(ContentType).
|
|
675
|
+
protoOf(ContentType).t43 = function (name, value) {
|
|
676
676
|
if (hasParameter(this, name, value))
|
|
677
677
|
return this;
|
|
678
|
-
return new ContentType(this.
|
|
678
|
+
return new ContentType(this.r43_1, this.s43_1, this.o41_1, plus_2(this.p41_1, HeaderValueParam_init_$Create$(name, value)));
|
|
679
679
|
};
|
|
680
|
-
protoOf(ContentType).
|
|
681
|
-
if (!(pattern.
|
|
680
|
+
protoOf(ContentType).u43 = function (pattern) {
|
|
681
|
+
if (!(pattern.r43_1 === '*') && !equals(pattern.r43_1, this.r43_1, true)) {
|
|
682
682
|
return false;
|
|
683
683
|
}
|
|
684
|
-
if (!(pattern.
|
|
684
|
+
if (!(pattern.s43_1 === '*') && !equals(pattern.s43_1, this.s43_1, true)) {
|
|
685
685
|
return false;
|
|
686
686
|
}
|
|
687
|
-
var _iterator__ex2g4s = pattern.
|
|
687
|
+
var _iterator__ex2g4s = pattern.p41_1.t();
|
|
688
688
|
while (_iterator__ex2g4s.u()) {
|
|
689
689
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
690
|
-
var patternName = _destruct__k2r9zo.
|
|
691
|
-
var patternValue = _destruct__k2r9zo.
|
|
690
|
+
var patternName = _destruct__k2r9zo.xg();
|
|
691
|
+
var patternValue = _destruct__k2r9zo.yg();
|
|
692
692
|
var tmp;
|
|
693
693
|
if (patternName === '*') {
|
|
694
694
|
var tmp_0;
|
|
695
695
|
if (patternValue === '*') {
|
|
696
696
|
tmp_0 = true;
|
|
697
697
|
} else {
|
|
698
|
-
var tmp0 = this.
|
|
698
|
+
var tmp0 = this.p41_1;
|
|
699
699
|
var tmp$ret$0;
|
|
700
700
|
$l$block_0: {
|
|
701
701
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -712,7 +712,7 @@ protoOf(ContentType).c3n = function (pattern) {
|
|
|
712
712
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
713
713
|
while (_iterator__ex2g4s_0.u()) {
|
|
714
714
|
var element = _iterator__ex2g4s_0.v();
|
|
715
|
-
if (equals(element.
|
|
715
|
+
if (equals(element.r41_1, patternValue, true)) {
|
|
716
716
|
tmp$ret$0 = true;
|
|
717
717
|
break $l$block_0;
|
|
718
718
|
}
|
|
@@ -723,7 +723,7 @@ protoOf(ContentType).c3n = function (pattern) {
|
|
|
723
723
|
}
|
|
724
724
|
tmp = tmp_0;
|
|
725
725
|
} else {
|
|
726
|
-
var value = this.
|
|
726
|
+
var value = this.v43(patternName);
|
|
727
727
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
728
728
|
}
|
|
729
729
|
var matches = tmp;
|
|
@@ -738,17 +738,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
738
738
|
var tmp_0;
|
|
739
739
|
var tmp_1;
|
|
740
740
|
if (other instanceof ContentType) {
|
|
741
|
-
tmp_1 = equals(this.
|
|
741
|
+
tmp_1 = equals(this.r43_1, other.r43_1, true);
|
|
742
742
|
} else {
|
|
743
743
|
tmp_1 = false;
|
|
744
744
|
}
|
|
745
745
|
if (tmp_1) {
|
|
746
|
-
tmp_0 = equals(this.
|
|
746
|
+
tmp_0 = equals(this.s43_1, other.s43_1, true);
|
|
747
747
|
} else {
|
|
748
748
|
tmp_0 = false;
|
|
749
749
|
}
|
|
750
750
|
if (tmp_0) {
|
|
751
|
-
tmp = equals_0(this.
|
|
751
|
+
tmp = equals_0(this.p41_1, other.p41_1);
|
|
752
752
|
} else {
|
|
753
753
|
tmp = false;
|
|
754
754
|
}
|
|
@@ -757,20 +757,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
757
757
|
protoOf(ContentType).hashCode = function () {
|
|
758
758
|
// Inline function 'kotlin.text.lowercase' call
|
|
759
759
|
// Inline function 'kotlin.js.asDynamic' call
|
|
760
|
-
var tmp$ret$0 = this.
|
|
760
|
+
var tmp$ret$0 = this.r43_1.toLowerCase();
|
|
761
761
|
var result = getStringHashCode(tmp$ret$0);
|
|
762
762
|
var tmp = result;
|
|
763
763
|
var tmp_0 = imul(31, result);
|
|
764
764
|
// Inline function 'kotlin.text.lowercase' call
|
|
765
765
|
// Inline function 'kotlin.js.asDynamic' call
|
|
766
|
-
var tmp$ret$2 = this.
|
|
766
|
+
var tmp$ret$2 = this.s43_1.toLowerCase();
|
|
767
767
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
768
|
-
result = result + imul(31, hashCode(this.
|
|
768
|
+
result = result + imul(31, hashCode(this.p41_1)) | 0;
|
|
769
769
|
return result;
|
|
770
770
|
};
|
|
771
771
|
function charset(_this__u8e3s4) {
|
|
772
772
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
773
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
773
|
+
var tmp0_safe_receiver = _this__u8e3s4.v43('charset');
|
|
774
774
|
var tmp;
|
|
775
775
|
if (tmp0_safe_receiver == null) {
|
|
776
776
|
tmp = null;
|
|
@@ -795,7 +795,7 @@ function charset(_this__u8e3s4) {
|
|
|
795
795
|
}
|
|
796
796
|
function withCharset(_this__u8e3s4, charset) {
|
|
797
797
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
798
|
-
return _this__u8e3s4.
|
|
798
|
+
return _this__u8e3s4.t43('charset', get_name(charset));
|
|
799
799
|
}
|
|
800
800
|
function BadContentTypeFormatException(value) {
|
|
801
801
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
@@ -821,19 +821,19 @@ function Companion_getInstance_0() {
|
|
|
821
821
|
}
|
|
822
822
|
function HeaderValueWithParameters(content, parameters) {
|
|
823
823
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
824
|
+
this.o41_1 = content;
|
|
825
|
+
this.p41_1 = parameters;
|
|
826
826
|
}
|
|
827
|
-
protoOf(HeaderValueWithParameters).
|
|
827
|
+
protoOf(HeaderValueWithParameters).v43 = function (name) {
|
|
828
828
|
var inductionVariable = 0;
|
|
829
|
-
var last = get_lastIndex(this.
|
|
829
|
+
var last = get_lastIndex(this.p41_1);
|
|
830
830
|
if (inductionVariable <= last)
|
|
831
831
|
do {
|
|
832
832
|
var index = inductionVariable;
|
|
833
833
|
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
-
var parameter = this.
|
|
835
|
-
if (equals(parameter.
|
|
836
|
-
return parameter.
|
|
834
|
+
var parameter = this.p41_1.f1(index);
|
|
835
|
+
if (equals(parameter.q41_1, name, true)) {
|
|
836
|
+
return parameter.r41_1;
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
while (!(index === last));
|
|
@@ -841,34 +841,34 @@ protoOf(HeaderValueWithParameters).d3n = function (name) {
|
|
|
841
841
|
};
|
|
842
842
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
843
843
|
var tmp;
|
|
844
|
-
if (this.
|
|
845
|
-
tmp = this.
|
|
844
|
+
if (this.p41_1.r()) {
|
|
845
|
+
tmp = this.o41_1;
|
|
846
846
|
} else {
|
|
847
|
-
var tmp_0 = this.
|
|
847
|
+
var tmp_0 = this.o41_1.length;
|
|
848
848
|
// Inline function 'kotlin.collections.sumOf' call
|
|
849
849
|
var sum = 0;
|
|
850
|
-
var _iterator__ex2g4s = this.
|
|
850
|
+
var _iterator__ex2g4s = this.p41_1.t();
|
|
851
851
|
while (_iterator__ex2g4s.u()) {
|
|
852
852
|
var element = _iterator__ex2g4s.v();
|
|
853
853
|
var tmp_1 = sum;
|
|
854
|
-
sum = tmp_1 + ((element.
|
|
854
|
+
sum = tmp_1 + ((element.q41_1.length + element.r41_1.length | 0) + 3 | 0) | 0;
|
|
855
855
|
}
|
|
856
856
|
var size = tmp_0 + sum | 0;
|
|
857
857
|
// Inline function 'kotlin.apply' call
|
|
858
858
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
859
|
-
this_0.q(this.
|
|
859
|
+
this_0.q(this.o41_1);
|
|
860
860
|
var inductionVariable = 0;
|
|
861
|
-
var last = get_lastIndex(this.
|
|
861
|
+
var last = get_lastIndex(this.p41_1);
|
|
862
862
|
if (inductionVariable <= last)
|
|
863
863
|
do {
|
|
864
864
|
var index = inductionVariable;
|
|
865
865
|
inductionVariable = inductionVariable + 1 | 0;
|
|
866
|
-
var element_0 = this.
|
|
866
|
+
var element_0 = this.p41_1.f1(index);
|
|
867
867
|
this_0.q('; ');
|
|
868
|
-
this_0.q(element_0.
|
|
868
|
+
this_0.q(element_0.q41_1);
|
|
869
869
|
this_0.q('=');
|
|
870
870
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
871
|
-
var this_1 = element_0.
|
|
871
|
+
var this_1 = element_0.r41_1;
|
|
872
872
|
if (needQuotes(this_1))
|
|
873
873
|
this_0.q(quote(this_1));
|
|
874
874
|
else
|
|
@@ -891,7 +891,7 @@ function needQuotes(_this__u8e3s4) {
|
|
|
891
891
|
while (inductionVariable < last) {
|
|
892
892
|
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
893
893
|
inductionVariable = inductionVariable + 1 | 0;
|
|
894
|
-
if (get_HeaderFieldValueSeparators().
|
|
894
|
+
if (get_HeaderFieldValueSeparators().d1(new Char(element)))
|
|
895
895
|
return true;
|
|
896
896
|
}
|
|
897
897
|
return false;
|
|
@@ -967,20 +967,20 @@ function HeadersBuilder(size) {
|
|
|
967
967
|
size = size === VOID ? 8 : size;
|
|
968
968
|
StringValuesBuilderImpl.call(this, true, size);
|
|
969
969
|
}
|
|
970
|
-
protoOf(HeadersBuilder).
|
|
971
|
-
return new HeadersImpl(this.
|
|
970
|
+
protoOf(HeadersBuilder).y43 = function () {
|
|
971
|
+
return new HeadersImpl(this.q3w_1);
|
|
972
972
|
};
|
|
973
|
-
protoOf(HeadersBuilder).
|
|
974
|
-
protoOf(StringValuesBuilderImpl).
|
|
975
|
-
HttpHeaders_getInstance().
|
|
973
|
+
protoOf(HeadersBuilder).r3w = function (name) {
|
|
974
|
+
protoOf(StringValuesBuilderImpl).r3w.call(this, name);
|
|
975
|
+
HttpHeaders_getInstance().y47(name);
|
|
976
976
|
};
|
|
977
|
-
protoOf(HeadersBuilder).
|
|
978
|
-
protoOf(StringValuesBuilderImpl).
|
|
979
|
-
HttpHeaders_getInstance().
|
|
977
|
+
protoOf(HeadersBuilder).w3w = function (value) {
|
|
978
|
+
protoOf(StringValuesBuilderImpl).w3w.call(this, value);
|
|
979
|
+
HttpHeaders_getInstance().z47(value);
|
|
980
980
|
};
|
|
981
981
|
function Companion_1() {
|
|
982
982
|
Companion_instance_1 = this;
|
|
983
|
-
this.
|
|
983
|
+
this.a48_1 = EmptyHeaders_instance;
|
|
984
984
|
}
|
|
985
985
|
var Companion_instance_1;
|
|
986
986
|
function Companion_getInstance_1() {
|
|
@@ -996,27 +996,27 @@ function HeadersImpl(values) {
|
|
|
996
996
|
StringValuesImpl.call(this, true, values);
|
|
997
997
|
}
|
|
998
998
|
protoOf(HeadersImpl).toString = function () {
|
|
999
|
-
return 'Headers ' + toString(this.
|
|
999
|
+
return 'Headers ' + toString(this.n3w());
|
|
1000
1000
|
};
|
|
1001
1001
|
function EmptyHeaders() {
|
|
1002
1002
|
}
|
|
1003
|
-
protoOf(EmptyHeaders).
|
|
1003
|
+
protoOf(EmptyHeaders).s3w = function () {
|
|
1004
1004
|
return true;
|
|
1005
1005
|
};
|
|
1006
|
-
protoOf(EmptyHeaders).
|
|
1006
|
+
protoOf(EmptyHeaders).t3w = function (name) {
|
|
1007
1007
|
return null;
|
|
1008
1008
|
};
|
|
1009
|
-
protoOf(EmptyHeaders).
|
|
1009
|
+
protoOf(EmptyHeaders).u3w = function () {
|
|
1010
1010
|
return emptySet();
|
|
1011
1011
|
};
|
|
1012
|
-
protoOf(EmptyHeaders).
|
|
1012
|
+
protoOf(EmptyHeaders).n3w = function () {
|
|
1013
1013
|
return emptySet();
|
|
1014
1014
|
};
|
|
1015
1015
|
protoOf(EmptyHeaders).r = function () {
|
|
1016
1016
|
return true;
|
|
1017
1017
|
};
|
|
1018
1018
|
protoOf(EmptyHeaders).toString = function () {
|
|
1019
|
-
return 'Headers ' + toString(this.
|
|
1019
|
+
return 'Headers ' + toString(this.n3w());
|
|
1020
1020
|
};
|
|
1021
1021
|
var EmptyHeaders_instance;
|
|
1022
1022
|
function EmptyHeaders_getInstance() {
|
|
@@ -1026,7 +1026,7 @@ function HeadersSingleImpl(name, values) {
|
|
|
1026
1026
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1027
1027
|
}
|
|
1028
1028
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1029
|
-
return 'Headers ' + toString(this.
|
|
1029
|
+
return 'Headers ' + toString(this.n3w());
|
|
1030
1030
|
};
|
|
1031
1031
|
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1032
1032
|
HeaderValueParam.call($this, name, value, false);
|
|
@@ -1036,20 +1036,20 @@ function HeaderValueParam_init_$Create$(name, value) {
|
|
|
1036
1036
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1037
1037
|
}
|
|
1038
1038
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1039
|
+
this.q41_1 = name;
|
|
1040
|
+
this.r41_1 = value;
|
|
1041
|
+
this.s41_1 = escapeValue;
|
|
1042
1042
|
}
|
|
1043
1043
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1044
1044
|
var tmp;
|
|
1045
1045
|
var tmp_0;
|
|
1046
1046
|
if (other instanceof HeaderValueParam) {
|
|
1047
|
-
tmp_0 = equals(other.
|
|
1047
|
+
tmp_0 = equals(other.q41_1, this.q41_1, true);
|
|
1048
1048
|
} else {
|
|
1049
1049
|
tmp_0 = false;
|
|
1050
1050
|
}
|
|
1051
1051
|
if (tmp_0) {
|
|
1052
|
-
tmp = equals(other.
|
|
1052
|
+
tmp = equals(other.r41_1, this.r41_1, true);
|
|
1053
1053
|
} else {
|
|
1054
1054
|
tmp = false;
|
|
1055
1055
|
}
|
|
@@ -1058,38 +1058,38 @@ protoOf(HeaderValueParam).equals = function (other) {
|
|
|
1058
1058
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1059
1059
|
// Inline function 'kotlin.text.lowercase' call
|
|
1060
1060
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1061
|
-
var tmp$ret$0 = this.
|
|
1061
|
+
var tmp$ret$0 = this.q41_1.toLowerCase();
|
|
1062
1062
|
var result = getStringHashCode(tmp$ret$0);
|
|
1063
1063
|
var tmp = result;
|
|
1064
1064
|
var tmp_0 = imul(31, result);
|
|
1065
1065
|
// Inline function 'kotlin.text.lowercase' call
|
|
1066
1066
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1067
|
-
var tmp$ret$2 = this.
|
|
1067
|
+
var tmp$ret$2 = this.r41_1.toLowerCase();
|
|
1068
1068
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1069
1069
|
return result;
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(HeaderValueParam).
|
|
1072
|
-
return this.
|
|
1071
|
+
protoOf(HeaderValueParam).xg = function () {
|
|
1072
|
+
return this.q41_1;
|
|
1073
1073
|
};
|
|
1074
|
-
protoOf(HeaderValueParam).
|
|
1075
|
-
return this.
|
|
1074
|
+
protoOf(HeaderValueParam).yg = function () {
|
|
1075
|
+
return this.r41_1;
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf(HeaderValueParam).toString = function () {
|
|
1078
|
-
return 'HeaderValueParam(name=' + this.
|
|
1078
|
+
return 'HeaderValueParam(name=' + this.q41_1 + ', value=' + this.r41_1 + ', escapeValue=' + this.s41_1 + ')';
|
|
1079
1079
|
};
|
|
1080
1080
|
function HeaderValue(value, params) {
|
|
1081
1081
|
params = params === VOID ? emptyList() : params;
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1082
|
+
this.u41_1 = value;
|
|
1083
|
+
this.v41_1 = params;
|
|
1084
1084
|
var tmp = this;
|
|
1085
|
-
var tmp0 = this.
|
|
1085
|
+
var tmp0 = this.v41_1;
|
|
1086
1086
|
var tmp$ret$0;
|
|
1087
1087
|
$l$block: {
|
|
1088
1088
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1089
1089
|
var _iterator__ex2g4s = tmp0.t();
|
|
1090
1090
|
while (_iterator__ex2g4s.u()) {
|
|
1091
1091
|
var element = _iterator__ex2g4s.v();
|
|
1092
|
-
if (element.
|
|
1092
|
+
if (element.q41_1 === 'q') {
|
|
1093
1093
|
tmp$ret$0 = element;
|
|
1094
1094
|
break $l$block;
|
|
1095
1095
|
}
|
|
@@ -1097,7 +1097,7 @@ function HeaderValue(value, params) {
|
|
|
1097
1097
|
tmp$ret$0 = null;
|
|
1098
1098
|
}
|
|
1099
1099
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
1100
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1100
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r41_1;
|
|
1101
1101
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1102
1102
|
var tmp_0;
|
|
1103
1103
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1113,14 +1113,14 @@ function HeaderValue(value, params) {
|
|
|
1113
1113
|
tmp_0 = tmp_1;
|
|
1114
1114
|
}
|
|
1115
1115
|
var tmp3_elvis_lhs = tmp_0;
|
|
1116
|
-
tmp.
|
|
1116
|
+
tmp.w41_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1117
1117
|
}
|
|
1118
1118
|
protoOf(HeaderValue).toString = function () {
|
|
1119
|
-
return 'HeaderValue(value=' + this.
|
|
1119
|
+
return 'HeaderValue(value=' + this.u41_1 + ', params=' + toString(this.v41_1) + ')';
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(HeaderValue).hashCode = function () {
|
|
1122
|
-
var result = getStringHashCode(this.
|
|
1123
|
-
result = imul(result, 31) + hashCode(this.
|
|
1122
|
+
var result = getStringHashCode(this.u41_1);
|
|
1123
|
+
result = imul(result, 31) + hashCode(this.v41_1) | 0;
|
|
1124
1124
|
return result;
|
|
1125
1125
|
};
|
|
1126
1126
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1128,9 +1128,9 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1128
1128
|
return true;
|
|
1129
1129
|
if (!(other instanceof HeaderValue))
|
|
1130
1130
|
return false;
|
|
1131
|
-
if (!(this.
|
|
1131
|
+
if (!(this.u41_1 === other.u41_1))
|
|
1132
1132
|
return false;
|
|
1133
|
-
if (!equals_0(this.
|
|
1133
|
+
if (!equals_0(this.v41_1, other.v41_1))
|
|
1134
1134
|
return false;
|
|
1135
1135
|
return true;
|
|
1136
1136
|
};
|
|
@@ -1157,7 +1157,7 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1157
1157
|
while (position <= get_lastIndex_0(text)) {
|
|
1158
1158
|
var tmp0_subject = charCodeAt(text, position);
|
|
1159
1159
|
if (tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
1160
|
-
var tmp_0 = items.
|
|
1160
|
+
var tmp_0 = items.p1();
|
|
1161
1161
|
var tmp1_elvis_lhs = valueEnd;
|
|
1162
1162
|
tmp_0.b1(new HeaderValue(subtrim(text, start, tmp1_elvis_lhs == null ? position : tmp1_elvis_lhs), valueOrEmpty(parameters)));
|
|
1163
1163
|
return position + 1 | 0;
|
|
@@ -1175,13 +1175,13 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1175
1175
|
position = tmp_1;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
var tmp_2 = items.
|
|
1178
|
+
var tmp_2 = items.p1();
|
|
1179
1179
|
var tmp2_elvis_lhs = valueEnd;
|
|
1180
1180
|
tmp_2.b1(new HeaderValue(subtrim(text, start, tmp2_elvis_lhs == null ? position : tmp2_elvis_lhs), valueOrEmpty(parameters)));
|
|
1181
1181
|
return position;
|
|
1182
1182
|
}
|
|
1183
1183
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1184
|
-
return _this__u8e3s4.
|
|
1184
|
+
return _this__u8e3s4.co() ? _this__u8e3s4.p1() : emptyList();
|
|
1185
1185
|
}
|
|
1186
1186
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1187
1187
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -1194,8 +1194,8 @@ function parseHeaderValueParameter(text, start, parameters) {
|
|
|
1194
1194
|
var tmp0_subject = charCodeAt(text, position);
|
|
1195
1195
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1196
1196
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1197
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1198
|
-
var paramValue = _destruct__k2r9zo.
|
|
1197
|
+
var paramEnd = _destruct__k2r9zo.xg();
|
|
1198
|
+
var paramValue = _destruct__k2r9zo.yg();
|
|
1199
1199
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1200
1200
|
return paramEnd;
|
|
1201
1201
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1269,119 +1269,119 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
|
|
|
1269
1269
|
if (charSequenceLength(name) === 0) {
|
|
1270
1270
|
return Unit_instance;
|
|
1271
1271
|
}
|
|
1272
|
-
$parameters.
|
|
1272
|
+
$parameters.p1().b1(HeaderValueParam_init_$Create$(name, value));
|
|
1273
1273
|
}
|
|
1274
1274
|
function HttpHeaders() {
|
|
1275
1275
|
HttpHeaders_instance = this;
|
|
1276
|
-
this.
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1291
|
-
this.
|
|
1292
|
-
this.
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1276
|
+
this.z43_1 = 'Accept';
|
|
1277
|
+
this.a44_1 = 'Accept-Charset';
|
|
1278
|
+
this.b44_1 = 'Accept-Encoding';
|
|
1279
|
+
this.c44_1 = 'Accept-Language';
|
|
1280
|
+
this.d44_1 = 'Accept-Ranges';
|
|
1281
|
+
this.e44_1 = 'Age';
|
|
1282
|
+
this.f44_1 = 'Allow';
|
|
1283
|
+
this.g44_1 = 'ALPN';
|
|
1284
|
+
this.h44_1 = 'Authentication-Info';
|
|
1285
|
+
this.i44_1 = 'Authorization';
|
|
1286
|
+
this.j44_1 = 'Cache-Control';
|
|
1287
|
+
this.k44_1 = 'Connection';
|
|
1288
|
+
this.l44_1 = 'Content-Disposition';
|
|
1289
|
+
this.m44_1 = 'Content-Encoding';
|
|
1290
|
+
this.n44_1 = 'Content-Language';
|
|
1291
|
+
this.o44_1 = 'Content-Length';
|
|
1292
|
+
this.p44_1 = 'Content-Location';
|
|
1293
|
+
this.q44_1 = 'Content-Range';
|
|
1294
|
+
this.r44_1 = 'Content-Type';
|
|
1295
|
+
this.s44_1 = 'Cookie';
|
|
1296
|
+
this.t44_1 = 'DASL';
|
|
1297
|
+
this.u44_1 = 'Date';
|
|
1298
|
+
this.v44_1 = 'DAV';
|
|
1299
|
+
this.w44_1 = 'Depth';
|
|
1300
|
+
this.x44_1 = 'Destination';
|
|
1301
|
+
this.y44_1 = 'ETag';
|
|
1302
|
+
this.z44_1 = 'Expect';
|
|
1303
|
+
this.a45_1 = 'Expires';
|
|
1304
|
+
this.b45_1 = 'From';
|
|
1305
|
+
this.c45_1 = 'Forwarded';
|
|
1306
|
+
this.d45_1 = 'Host';
|
|
1307
|
+
this.e45_1 = 'HTTP2-Settings';
|
|
1308
|
+
this.f45_1 = 'If';
|
|
1309
|
+
this.g45_1 = 'If-Match';
|
|
1310
|
+
this.h45_1 = 'If-Modified-Since';
|
|
1311
|
+
this.i45_1 = 'If-None-Match';
|
|
1312
|
+
this.j45_1 = 'If-Range';
|
|
1313
|
+
this.k45_1 = 'If-Schedule-Tag-Match';
|
|
1314
|
+
this.l45_1 = 'If-Unmodified-Since';
|
|
1315
|
+
this.m45_1 = 'Last-Modified';
|
|
1316
|
+
this.n45_1 = 'Location';
|
|
1317
|
+
this.o45_1 = 'Lock-Token';
|
|
1318
|
+
this.p45_1 = 'Link';
|
|
1319
|
+
this.q45_1 = 'Max-Forwards';
|
|
1320
|
+
this.r45_1 = 'MIME-Version';
|
|
1321
|
+
this.s45_1 = 'Ordering-Type';
|
|
1322
|
+
this.t45_1 = 'Origin';
|
|
1323
|
+
this.u45_1 = 'Overwrite';
|
|
1324
|
+
this.v45_1 = 'Position';
|
|
1325
|
+
this.w45_1 = 'Pragma';
|
|
1326
|
+
this.x45_1 = 'Prefer';
|
|
1327
|
+
this.y45_1 = 'Preference-Applied';
|
|
1328
|
+
this.z45_1 = 'Proxy-Authenticate';
|
|
1329
|
+
this.a46_1 = 'Proxy-Authentication-Info';
|
|
1330
|
+
this.b46_1 = 'Proxy-Authorization';
|
|
1331
|
+
this.c46_1 = 'Public-Key-Pins';
|
|
1332
|
+
this.d46_1 = 'Public-Key-Pins-Report-Only';
|
|
1333
|
+
this.e46_1 = 'Range';
|
|
1334
|
+
this.f46_1 = 'Referer';
|
|
1335
|
+
this.g46_1 = 'Retry-After';
|
|
1336
|
+
this.h46_1 = 'Schedule-Reply';
|
|
1337
|
+
this.i46_1 = 'Schedule-Tag';
|
|
1338
|
+
this.j46_1 = 'Sec-WebSocket-Accept';
|
|
1339
|
+
this.k46_1 = 'Sec-WebSocket-Extensions';
|
|
1340
|
+
this.l46_1 = 'Sec-WebSocket-Key';
|
|
1341
|
+
this.m46_1 = 'Sec-WebSocket-Protocol';
|
|
1342
|
+
this.n46_1 = 'Sec-WebSocket-Version';
|
|
1343
|
+
this.o46_1 = 'Server';
|
|
1344
|
+
this.p46_1 = 'Set-Cookie';
|
|
1345
|
+
this.q46_1 = 'SLUG';
|
|
1346
|
+
this.r46_1 = 'Strict-Transport-Security';
|
|
1347
|
+
this.s46_1 = 'TE';
|
|
1348
|
+
this.t46_1 = 'Timeout';
|
|
1349
|
+
this.u46_1 = 'Trailer';
|
|
1350
|
+
this.v46_1 = 'Transfer-Encoding';
|
|
1351
|
+
this.w46_1 = 'Upgrade';
|
|
1352
|
+
this.x46_1 = 'User-Agent';
|
|
1353
|
+
this.y46_1 = 'Vary';
|
|
1354
|
+
this.z46_1 = 'Via';
|
|
1355
|
+
this.a47_1 = 'Warning';
|
|
1356
|
+
this.b47_1 = 'WWW-Authenticate';
|
|
1357
|
+
this.c47_1 = 'Access-Control-Allow-Origin';
|
|
1358
|
+
this.d47_1 = 'Access-Control-Allow-Methods';
|
|
1359
|
+
this.e47_1 = 'Access-Control-Allow-Credentials';
|
|
1360
|
+
this.f47_1 = 'Access-Control-Allow-Headers';
|
|
1361
|
+
this.g47_1 = 'Access-Control-Request-Method';
|
|
1362
|
+
this.h47_1 = 'Access-Control-Request-Headers';
|
|
1363
|
+
this.i47_1 = 'Access-Control-Expose-Headers';
|
|
1364
|
+
this.j47_1 = 'Access-Control-Max-Age';
|
|
1365
|
+
this.k47_1 = 'X-Http-Method-Override';
|
|
1366
|
+
this.l47_1 = 'X-Forwarded-Host';
|
|
1367
|
+
this.m47_1 = 'X-Forwarded-Server';
|
|
1368
|
+
this.n47_1 = 'X-Forwarded-Proto';
|
|
1369
|
+
this.o47_1 = 'X-Forwarded-For';
|
|
1370
|
+
this.p47_1 = 'X-Forwarded-Port';
|
|
1371
|
+
this.q47_1 = 'X-Request-ID';
|
|
1372
|
+
this.r47_1 = 'X-Correlation-ID';
|
|
1373
|
+
this.s47_1 = 'X-Total-Count';
|
|
1374
|
+
this.t47_1 = 'Last-Event-ID';
|
|
1375
|
+
this.u47_1 = 'TDM-Reservation';
|
|
1376
|
+
this.v47_1 = 'TDM-Policy';
|
|
1377
1377
|
var tmp = this;
|
|
1378
1378
|
// Inline function 'kotlin.arrayOf' call
|
|
1379
1379
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1380
1380
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1381
|
-
tmp.
|
|
1382
|
-
this.
|
|
1381
|
+
tmp.w47_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1382
|
+
this.x47_1 = asList(this.w47_1);
|
|
1383
1383
|
}
|
|
1384
|
-
protoOf(HttpHeaders).
|
|
1384
|
+
protoOf(HttpHeaders).y47 = function (name) {
|
|
1385
1385
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1386
1386
|
var index = 0;
|
|
1387
1387
|
var inductionVariable = 0;
|
|
@@ -1395,7 +1395,7 @@ protoOf(HttpHeaders).g3r = function (name) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
|
-
protoOf(HttpHeaders).
|
|
1398
|
+
protoOf(HttpHeaders).z47 = function (value) {
|
|
1399
1399
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1400
1400
|
var index = 0;
|
|
1401
1401
|
var inductionVariable = 0;
|
|
@@ -1429,8 +1429,8 @@ function IllegalHeaderNameException(headerName, position) {
|
|
|
1429
1429
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1430
1430
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1431
1431
|
captureStack(this, IllegalHeaderNameException);
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1432
|
+
this.b48_1 = headerName;
|
|
1433
|
+
this.c48_1 = position;
|
|
1434
1434
|
}
|
|
1435
1435
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1436
1436
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1439,33 +1439,33 @@ function IllegalHeaderValueException(headerValue, position) {
|
|
|
1439
1439
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1440
1440
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1441
1441
|
captureStack(this, IllegalHeaderValueException);
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1442
|
+
this.d48_1 = headerValue;
|
|
1443
|
+
this.e48_1 = position;
|
|
1444
1444
|
}
|
|
1445
1445
|
function contentType(_this__u8e3s4) {
|
|
1446
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1446
|
+
var tmp0_safe_receiver = _this__u8e3s4.f48().sd('Content-Type');
|
|
1447
1447
|
var tmp;
|
|
1448
1448
|
if (tmp0_safe_receiver == null) {
|
|
1449
1449
|
tmp = null;
|
|
1450
1450
|
} else {
|
|
1451
1451
|
// Inline function 'kotlin.let' call
|
|
1452
|
-
tmp = Companion_getInstance().
|
|
1452
|
+
tmp = Companion_getInstance().ho(tmp0_safe_receiver);
|
|
1453
1453
|
}
|
|
1454
1454
|
return tmp;
|
|
1455
1455
|
}
|
|
1456
1456
|
function contentType_0(_this__u8e3s4) {
|
|
1457
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1457
|
+
var tmp0_safe_receiver = _this__u8e3s4.f48().sd('Content-Type');
|
|
1458
1458
|
var tmp;
|
|
1459
1459
|
if (tmp0_safe_receiver == null) {
|
|
1460
1460
|
tmp = null;
|
|
1461
1461
|
} else {
|
|
1462
1462
|
// Inline function 'kotlin.let' call
|
|
1463
|
-
tmp = Companion_getInstance().
|
|
1463
|
+
tmp = Companion_getInstance().ho(tmp0_safe_receiver);
|
|
1464
1464
|
}
|
|
1465
1465
|
return tmp;
|
|
1466
1466
|
}
|
|
1467
1467
|
function contentLength(_this__u8e3s4) {
|
|
1468
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1468
|
+
var tmp0_safe_receiver = _this__u8e3s4.f48().sd('Content-Length');
|
|
1469
1469
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1470
1470
|
}
|
|
1471
1471
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1473,7 +1473,7 @@ function charset_0(_this__u8e3s4) {
|
|
|
1473
1473
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1474
1474
|
}
|
|
1475
1475
|
function contentType_1(_this__u8e3s4, type) {
|
|
1476
|
-
return _this__u8e3s4.
|
|
1476
|
+
return _this__u8e3s4.f48().v3w('Content-Type', type.toString());
|
|
1477
1477
|
}
|
|
1478
1478
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1479
1479
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
@@ -1482,16 +1482,16 @@ function get_REQUESTS_WITHOUT_BODY() {
|
|
|
1482
1482
|
var REQUESTS_WITHOUT_BODY;
|
|
1483
1483
|
function Companion_2() {
|
|
1484
1484
|
Companion_instance_2 = this;
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1485
|
+
this.g48_1 = new HttpMethod('GET');
|
|
1486
|
+
this.h48_1 = new HttpMethod('POST');
|
|
1487
|
+
this.i48_1 = new HttpMethod('PUT');
|
|
1488
|
+
this.j48_1 = new HttpMethod('PATCH');
|
|
1489
|
+
this.k48_1 = new HttpMethod('DELETE');
|
|
1490
|
+
this.l48_1 = new HttpMethod('HEAD');
|
|
1491
|
+
this.m48_1 = new HttpMethod('OPTIONS');
|
|
1492
|
+
this.n48_1 = new HttpMethod('TRACE');
|
|
1493
|
+
this.o48_1 = new HttpMethod('QUERY');
|
|
1494
|
+
this.p48_1 = listOf([this.g48_1, this.h48_1, this.i48_1, this.j48_1, this.k48_1, this.l48_1, this.m48_1]);
|
|
1495
1495
|
}
|
|
1496
1496
|
var Companion_instance_2;
|
|
1497
1497
|
function Companion_getInstance_2() {
|
|
@@ -1501,42 +1501,42 @@ function Companion_getInstance_2() {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
function HttpMethod(value) {
|
|
1503
1503
|
Companion_getInstance_2();
|
|
1504
|
-
this.
|
|
1504
|
+
this.q48_1 = value;
|
|
1505
1505
|
}
|
|
1506
1506
|
protoOf(HttpMethod).toString = function () {
|
|
1507
|
-
return this.
|
|
1507
|
+
return this.q48_1;
|
|
1508
1508
|
};
|
|
1509
1509
|
protoOf(HttpMethod).hashCode = function () {
|
|
1510
|
-
return getStringHashCode(this.
|
|
1510
|
+
return getStringHashCode(this.q48_1);
|
|
1511
1511
|
};
|
|
1512
1512
|
protoOf(HttpMethod).equals = function (other) {
|
|
1513
1513
|
if (this === other)
|
|
1514
1514
|
return true;
|
|
1515
1515
|
if (!(other instanceof HttpMethod))
|
|
1516
1516
|
return false;
|
|
1517
|
-
if (!(this.
|
|
1517
|
+
if (!(this.q48_1 === other.q48_1))
|
|
1518
1518
|
return false;
|
|
1519
1519
|
return true;
|
|
1520
1520
|
};
|
|
1521
1521
|
function get_supportsRequestBody(_this__u8e3s4) {
|
|
1522
1522
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1523
|
-
return !get_REQUESTS_WITHOUT_BODY().
|
|
1523
|
+
return !get_REQUESTS_WITHOUT_BODY().d1(_this__u8e3s4);
|
|
1524
1524
|
}
|
|
1525
1525
|
var properties_initialized_HttpMethod_kt_ogor3f;
|
|
1526
1526
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1527
1527
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1528
1528
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1529
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1529
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().g48_1, Companion_getInstance_2().l48_1, Companion_getInstance_2().m48_1, Companion_getInstance_2().n48_1]);
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
function Companion_3() {
|
|
1533
1533
|
Companion_instance_3 = this;
|
|
1534
|
-
this.
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1534
|
+
this.r48_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1535
|
+
this.s48_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1536
|
+
this.t48_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1537
|
+
this.u48_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1538
|
+
this.v48_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1539
|
+
this.w48_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1540
1540
|
}
|
|
1541
1541
|
var Companion_instance_3;
|
|
1542
1542
|
function Companion_getInstance_3() {
|
|
@@ -1546,17 +1546,17 @@ function Companion_getInstance_3() {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
function HttpProtocolVersion(name, major, minor) {
|
|
1548
1548
|
Companion_getInstance_3();
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1549
|
+
this.x48_1 = name;
|
|
1550
|
+
this.y48_1 = major;
|
|
1551
|
+
this.z48_1 = minor;
|
|
1552
1552
|
}
|
|
1553
1553
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1554
|
-
return this.
|
|
1554
|
+
return this.x48_1 + '/' + this.y48_1 + '.' + this.z48_1;
|
|
1555
1555
|
};
|
|
1556
1556
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1557
|
-
var result = getStringHashCode(this.
|
|
1558
|
-
result = imul(result, 31) + this.
|
|
1559
|
-
result = imul(result, 31) + this.
|
|
1557
|
+
var result = getStringHashCode(this.x48_1);
|
|
1558
|
+
result = imul(result, 31) + this.y48_1 | 0;
|
|
1559
|
+
result = imul(result, 31) + this.z48_1 | 0;
|
|
1560
1560
|
return result;
|
|
1561
1561
|
};
|
|
1562
1562
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1564,83 +1564,83 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1564
1564
|
return true;
|
|
1565
1565
|
if (!(other instanceof HttpProtocolVersion))
|
|
1566
1566
|
return false;
|
|
1567
|
-
if (!(this.
|
|
1567
|
+
if (!(this.x48_1 === other.x48_1))
|
|
1568
1568
|
return false;
|
|
1569
|
-
if (!(this.
|
|
1569
|
+
if (!(this.y48_1 === other.y48_1))
|
|
1570
1570
|
return false;
|
|
1571
|
-
if (!(this.
|
|
1571
|
+
if (!(this.z48_1 === other.z48_1))
|
|
1572
1572
|
return false;
|
|
1573
1573
|
return true;
|
|
1574
1574
|
};
|
|
1575
1575
|
function Companion_4() {
|
|
1576
1576
|
Companion_instance_4 = this;
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1594
|
-
this.
|
|
1595
|
-
this.
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1577
|
+
this.a49_1 = new HttpStatusCode(100, 'Continue');
|
|
1578
|
+
this.b49_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1579
|
+
this.c49_1 = new HttpStatusCode(102, 'Processing');
|
|
1580
|
+
this.d49_1 = new HttpStatusCode(200, 'OK');
|
|
1581
|
+
this.e49_1 = new HttpStatusCode(201, 'Created');
|
|
1582
|
+
this.f49_1 = new HttpStatusCode(202, 'Accepted');
|
|
1583
|
+
this.g49_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1584
|
+
this.h49_1 = new HttpStatusCode(204, 'No Content');
|
|
1585
|
+
this.i49_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1586
|
+
this.j49_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1587
|
+
this.k49_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1588
|
+
this.l49_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1589
|
+
this.m49_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1590
|
+
this.n49_1 = new HttpStatusCode(302, 'Found');
|
|
1591
|
+
this.o49_1 = new HttpStatusCode(303, 'See Other');
|
|
1592
|
+
this.p49_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1593
|
+
this.q49_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1594
|
+
this.r49_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1595
|
+
this.s49_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1596
|
+
this.t49_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1597
|
+
this.u49_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1598
|
+
this.v49_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1599
|
+
this.w49_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1600
|
+
this.x49_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1601
|
+
this.y49_1 = new HttpStatusCode(404, 'Not Found');
|
|
1602
|
+
this.z49_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1603
|
+
this.a4a_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1604
|
+
this.b4a_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1605
|
+
this.c4a_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1606
|
+
this.d4a_1 = new HttpStatusCode(409, 'Conflict');
|
|
1607
|
+
this.e4a_1 = new HttpStatusCode(410, 'Gone');
|
|
1608
|
+
this.f4a_1 = new HttpStatusCode(411, 'Length Required');
|
|
1609
|
+
this.g4a_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1610
|
+
this.h4a_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1611
|
+
this.i4a_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1612
|
+
this.j4a_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1613
|
+
this.k4a_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1614
|
+
this.l4a_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1615
|
+
this.m4a_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1616
|
+
this.n4a_1 = new HttpStatusCode(423, 'Locked');
|
|
1617
|
+
this.o4a_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1618
|
+
this.p4a_1 = new HttpStatusCode(425, 'Too Early');
|
|
1619
|
+
this.q4a_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1620
|
+
this.r4a_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1621
|
+
this.s4a_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1622
|
+
this.t4a_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1623
|
+
this.u4a_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1624
|
+
this.v4a_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1625
|
+
this.w4a_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1626
|
+
this.x4a_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1627
|
+
this.y4a_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1628
|
+
this.z4a_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1629
|
+
this.a4b_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1630
|
+
this.b4b_1 = allStatusCodes();
|
|
1631
1631
|
var tmp = this;
|
|
1632
1632
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1633
|
-
var this_0 = this.
|
|
1633
|
+
var this_0 = this.b4b_1;
|
|
1634
1634
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1635
1635
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1636
1636
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1637
1637
|
var _iterator__ex2g4s = this_0.t();
|
|
1638
1638
|
while (_iterator__ex2g4s.u()) {
|
|
1639
1639
|
var element = _iterator__ex2g4s.v();
|
|
1640
|
-
var tmp$ret$2 = element.
|
|
1641
|
-
destination.
|
|
1640
|
+
var tmp$ret$2 = element.d4b_1;
|
|
1641
|
+
destination.b3(tmp$ret$2, element);
|
|
1642
1642
|
}
|
|
1643
|
-
tmp.
|
|
1643
|
+
tmp.c4b_1 = destination;
|
|
1644
1644
|
}
|
|
1645
1645
|
var Companion_instance_4;
|
|
1646
1646
|
function Companion_getInstance_4() {
|
|
@@ -1650,49 +1650,49 @@ function Companion_getInstance_4() {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
function HttpStatusCode(value, description) {
|
|
1652
1652
|
Companion_getInstance_4();
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1653
|
+
this.d4b_1 = value;
|
|
1654
|
+
this.e4b_1 = description;
|
|
1655
1655
|
}
|
|
1656
1656
|
protoOf(HttpStatusCode).toString = function () {
|
|
1657
|
-
return '' + this.
|
|
1657
|
+
return '' + this.d4b_1 + ' ' + this.e4b_1;
|
|
1658
1658
|
};
|
|
1659
1659
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1660
1660
|
var tmp;
|
|
1661
1661
|
if (other instanceof HttpStatusCode) {
|
|
1662
|
-
tmp = other.
|
|
1662
|
+
tmp = other.d4b_1 === this.d4b_1;
|
|
1663
1663
|
} else {
|
|
1664
1664
|
tmp = false;
|
|
1665
1665
|
}
|
|
1666
1666
|
return tmp;
|
|
1667
1667
|
};
|
|
1668
1668
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1669
|
-
return this.
|
|
1669
|
+
return this.d4b_1;
|
|
1670
1670
|
};
|
|
1671
|
-
protoOf(HttpStatusCode).
|
|
1672
|
-
return this.
|
|
1671
|
+
protoOf(HttpStatusCode).f4b = function (other) {
|
|
1672
|
+
return this.d4b_1 - other.d4b_1 | 0;
|
|
1673
1673
|
};
|
|
1674
1674
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1675
|
-
return this.
|
|
1675
|
+
return this.f4b(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1676
1676
|
};
|
|
1677
1677
|
function allStatusCodes() {
|
|
1678
|
-
return listOf([Companion_getInstance_4().
|
|
1678
|
+
return listOf([Companion_getInstance_4().a49_1, Companion_getInstance_4().b49_1, Companion_getInstance_4().c49_1, Companion_getInstance_4().d49_1, Companion_getInstance_4().e49_1, Companion_getInstance_4().f49_1, Companion_getInstance_4().g49_1, Companion_getInstance_4().h49_1, Companion_getInstance_4().i49_1, Companion_getInstance_4().j49_1, Companion_getInstance_4().k49_1, Companion_getInstance_4().l49_1, Companion_getInstance_4().m49_1, Companion_getInstance_4().n49_1, Companion_getInstance_4().o49_1, Companion_getInstance_4().p49_1, Companion_getInstance_4().q49_1, Companion_getInstance_4().r49_1, Companion_getInstance_4().s49_1, Companion_getInstance_4().t49_1, Companion_getInstance_4().u49_1, Companion_getInstance_4().v49_1, Companion_getInstance_4().w49_1, Companion_getInstance_4().x49_1, Companion_getInstance_4().y49_1, Companion_getInstance_4().z49_1, Companion_getInstance_4().a4a_1, Companion_getInstance_4().b4a_1, Companion_getInstance_4().c4a_1, Companion_getInstance_4().d4a_1, Companion_getInstance_4().e4a_1, Companion_getInstance_4().f4a_1, Companion_getInstance_4().g4a_1, Companion_getInstance_4().h4a_1, Companion_getInstance_4().i4a_1, Companion_getInstance_4().j4a_1, Companion_getInstance_4().k4a_1, Companion_getInstance_4().l4a_1, Companion_getInstance_4().m4a_1, Companion_getInstance_4().n4a_1, Companion_getInstance_4().o4a_1, Companion_getInstance_4().p4a_1, Companion_getInstance_4().q4a_1, Companion_getInstance_4().r4a_1, Companion_getInstance_4().s4a_1, Companion_getInstance_4().t4a_1, Companion_getInstance_4().u4a_1, Companion_getInstance_4().v4a_1, Companion_getInstance_4().w4a_1, Companion_getInstance_4().x4a_1, Companion_getInstance_4().y4a_1, Companion_getInstance_4().z4a_1, Companion_getInstance_4().a4b_1]);
|
|
1679
1679
|
}
|
|
1680
1680
|
function formUrlEncode(_this__u8e3s4) {
|
|
1681
1681
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1682
|
-
var tmp0 = _this__u8e3s4.
|
|
1682
|
+
var tmp0 = _this__u8e3s4.n3w();
|
|
1683
1683
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1684
1684
|
var destination = ArrayList_init_$Create$_0();
|
|
1685
1685
|
var _iterator__ex2g4s = tmp0.t();
|
|
1686
1686
|
while (_iterator__ex2g4s.u()) {
|
|
1687
1687
|
var element = _iterator__ex2g4s.v();
|
|
1688
1688
|
// Inline function 'kotlin.collections.map' call
|
|
1689
|
-
var this_0 = element.
|
|
1689
|
+
var this_0 = element.p1();
|
|
1690
1690
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1691
1691
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1692
1692
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
1693
1693
|
while (_iterator__ex2g4s_0.u()) {
|
|
1694
1694
|
var item = _iterator__ex2g4s_0.v();
|
|
1695
|
-
var tmp$ret$5 = to(element.
|
|
1695
|
+
var tmp$ret$5 = to(element.o1(), item);
|
|
1696
1696
|
destination_0.b1(tmp$ret$5);
|
|
1697
1697
|
}
|
|
1698
1698
|
var list = destination_0;
|
|
@@ -1711,19 +1711,19 @@ function formUrlEncodeTo(_this__u8e3s4, out) {
|
|
|
1711
1711
|
joinTo(_this__u8e3s4, out, '&', VOID, VOID, VOID, VOID, formUrlEncodeTo$lambda);
|
|
1712
1712
|
}
|
|
1713
1713
|
function formUrlEncodeTo$lambda(it) {
|
|
1714
|
-
var key = encodeURLParameter(it.
|
|
1714
|
+
var key = encodeURLParameter(it.sg_1, true);
|
|
1715
1715
|
var tmp;
|
|
1716
|
-
if (it.
|
|
1716
|
+
if (it.tg_1 == null) {
|
|
1717
1717
|
tmp = key;
|
|
1718
1718
|
} else {
|
|
1719
|
-
var value = encodeURLParameterValue(toString_1(it.
|
|
1719
|
+
var value = encodeURLParameterValue(toString_1(it.tg_1));
|
|
1720
1720
|
tmp = key + '=' + value;
|
|
1721
1721
|
}
|
|
1722
1722
|
return tmp;
|
|
1723
1723
|
}
|
|
1724
1724
|
function Companion_5() {
|
|
1725
1725
|
Companion_instance_5 = this;
|
|
1726
|
-
this.
|
|
1726
|
+
this.g4b_1 = EmptyParameters_instance;
|
|
1727
1727
|
}
|
|
1728
1728
|
var Companion_instance_5;
|
|
1729
1729
|
function Companion_getInstance_5() {
|
|
@@ -1735,23 +1735,23 @@ function Parameters() {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
function EmptyParameters() {
|
|
1737
1737
|
}
|
|
1738
|
-
protoOf(EmptyParameters).
|
|
1738
|
+
protoOf(EmptyParameters).s3w = function () {
|
|
1739
1739
|
return true;
|
|
1740
1740
|
};
|
|
1741
|
-
protoOf(EmptyParameters).
|
|
1741
|
+
protoOf(EmptyParameters).t3w = function (name) {
|
|
1742
1742
|
return null;
|
|
1743
1743
|
};
|
|
1744
|
-
protoOf(EmptyParameters).
|
|
1744
|
+
protoOf(EmptyParameters).u3w = function () {
|
|
1745
1745
|
return emptySet();
|
|
1746
1746
|
};
|
|
1747
|
-
protoOf(EmptyParameters).
|
|
1747
|
+
protoOf(EmptyParameters).n3w = function () {
|
|
1748
1748
|
return emptySet();
|
|
1749
1749
|
};
|
|
1750
1750
|
protoOf(EmptyParameters).r = function () {
|
|
1751
1751
|
return true;
|
|
1752
1752
|
};
|
|
1753
1753
|
protoOf(EmptyParameters).toString = function () {
|
|
1754
|
-
return 'Parameters ' + toString(this.
|
|
1754
|
+
return 'Parameters ' + toString(this.n3w());
|
|
1755
1755
|
};
|
|
1756
1756
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1757
1757
|
var tmp;
|
|
@@ -1774,15 +1774,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1774
1774
|
size = size === VOID ? 8 : size;
|
|
1775
1775
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1776
1776
|
}
|
|
1777
|
-
protoOf(ParametersBuilderImpl).
|
|
1778
|
-
return new ParametersImpl(this.
|
|
1777
|
+
protoOf(ParametersBuilderImpl).y43 = function () {
|
|
1778
|
+
return new ParametersImpl(this.q3w_1);
|
|
1779
1779
|
};
|
|
1780
1780
|
function ParametersImpl(values) {
|
|
1781
1781
|
values = values === VOID ? emptyMap() : values;
|
|
1782
1782
|
StringValuesImpl.call(this, true, values);
|
|
1783
1783
|
}
|
|
1784
1784
|
protoOf(ParametersImpl).toString = function () {
|
|
1785
|
-
return 'Parameters ' + toString(this.
|
|
1785
|
+
return 'Parameters ' + toString(this.n3w());
|
|
1786
1786
|
};
|
|
1787
1787
|
function parameters(builder) {
|
|
1788
1788
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
@@ -1790,7 +1790,7 @@ function parameters(builder) {
|
|
|
1790
1790
|
// Inline function 'kotlin.apply' call
|
|
1791
1791
|
var this_0 = ParametersBuilder();
|
|
1792
1792
|
builder(this_0);
|
|
1793
|
-
return this_0.
|
|
1793
|
+
return this_0.y43();
|
|
1794
1794
|
}
|
|
1795
1795
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1796
1796
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1798,14 +1798,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1798
1798
|
decode = decode === VOID ? true : decode;
|
|
1799
1799
|
var tmp;
|
|
1800
1800
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1801
|
-
tmp = Companion_getInstance_5().
|
|
1801
|
+
tmp = Companion_getInstance_5().g4b_1;
|
|
1802
1802
|
} else {
|
|
1803
1803
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1804
1804
|
Companion_getInstance_5();
|
|
1805
1805
|
// Inline function 'kotlin.apply' call
|
|
1806
1806
|
var this_0 = ParametersBuilder();
|
|
1807
1807
|
parse(this_0, query, startIndex, limit, decode);
|
|
1808
|
-
tmp = this_0.
|
|
1808
|
+
tmp = this_0.y43();
|
|
1809
1809
|
}
|
|
1810
1810
|
return tmp;
|
|
1811
1811
|
}
|
|
@@ -1846,7 +1846,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1846
1846
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1847
1847
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1848
1848
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1849
|
-
_this__u8e3s4.
|
|
1849
|
+
_this__u8e3s4.o3w(name, emptyList());
|
|
1850
1850
|
}
|
|
1851
1851
|
return Unit_instance;
|
|
1852
1852
|
}
|
|
@@ -1857,7 +1857,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1857
1857
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1858
1858
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1859
1859
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1860
|
-
_this__u8e3s4.
|
|
1860
|
+
_this__u8e3s4.x3w(name_0, value);
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
1863
|
function trimStart(start, end, query) {
|
|
@@ -1877,25 +1877,25 @@ function trimEnd(start, end, text) {
|
|
|
1877
1877
|
function applyOrigin($this) {
|
|
1878
1878
|
var tmp;
|
|
1879
1879
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1880
|
-
var this_0 = $this.
|
|
1880
|
+
var this_0 = $this.j4b_1;
|
|
1881
1881
|
if (charSequenceLength(this_0) > 0) {
|
|
1882
1882
|
tmp = true;
|
|
1883
1883
|
} else {
|
|
1884
|
-
tmp = $this.
|
|
1884
|
+
tmp = $this.v4b().t4b_1 === 'file';
|
|
1885
1885
|
}
|
|
1886
1886
|
if (tmp)
|
|
1887
1887
|
return Unit_instance;
|
|
1888
|
-
$this.
|
|
1889
|
-
if ($this.
|
|
1890
|
-
$this.
|
|
1891
|
-
if ($this.
|
|
1892
|
-
$this.
|
|
1888
|
+
$this.j4b_1 = Companion_getInstance_6().p4c_1.w4b_1;
|
|
1889
|
+
if ($this.m4b_1 == null)
|
|
1890
|
+
$this.m4b_1 = Companion_getInstance_6().p4c_1.h4c_1;
|
|
1891
|
+
if ($this.l4b_1 === 0) {
|
|
1892
|
+
$this.r4c(Companion_getInstance_6().p4c_1.x4b_1);
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
1895
|
function Companion_6() {
|
|
1896
1896
|
Companion_instance_6 = this;
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1897
|
+
this.p4c_1 = Url(get_origin(this));
|
|
1898
|
+
this.q4c_1 = 256;
|
|
1899
1899
|
}
|
|
1900
1900
|
var Companion_instance_6;
|
|
1901
1901
|
function Companion_getInstance_6() {
|
|
@@ -1911,18 +1911,18 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1911
1911
|
user = user === VOID ? null : user;
|
|
1912
1912
|
password = password === VOID ? null : password;
|
|
1913
1913
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1914
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1914
|
+
parameters = parameters === VOID ? Companion_getInstance_5().g4b_1 : parameters;
|
|
1915
1915
|
fragment = fragment === VOID ? '' : fragment;
|
|
1916
1916
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1917
|
+
this.j4b_1 = host;
|
|
1918
|
+
this.k4b_1 = trailingQuery;
|
|
1919
|
+
this.l4b_1 = port;
|
|
1920
|
+
this.m4b_1 = protocol;
|
|
1921
1921
|
var tmp = this;
|
|
1922
|
-
tmp.
|
|
1922
|
+
tmp.n4b_1 = user == null ? null : encodeURLParameter(user);
|
|
1923
1923
|
var tmp_0 = this;
|
|
1924
|
-
tmp_0.
|
|
1925
|
-
this.
|
|
1924
|
+
tmp_0.o4b_1 = password == null ? null : encodeURLParameter(password);
|
|
1925
|
+
this.p4b_1 = encodeURLQueryComponent(fragment);
|
|
1926
1926
|
var tmp_1 = this;
|
|
1927
1927
|
// Inline function 'kotlin.collections.map' call
|
|
1928
1928
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1933,43 +1933,43 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1933
1933
|
var tmp$ret$2 = encodeURLPathPart(item);
|
|
1934
1934
|
destination.b1(tmp$ret$2);
|
|
1935
1935
|
}
|
|
1936
|
-
tmp_1.
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1936
|
+
tmp_1.q4b_1 = destination;
|
|
1937
|
+
this.r4b_1 = encodeParameters(parameters);
|
|
1938
|
+
this.s4b_1 = new UrlDecodedParametersBuilder(this.r4b_1);
|
|
1939
1939
|
}
|
|
1940
|
-
protoOf(URLBuilder).
|
|
1940
|
+
protoOf(URLBuilder).r4c = function (value) {
|
|
1941
1941
|
// Inline function 'kotlin.require' call
|
|
1942
1942
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1943
1943
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1944
1944
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1945
1945
|
}
|
|
1946
|
-
this.
|
|
1946
|
+
this.l4b_1 = value;
|
|
1947
1947
|
};
|
|
1948
|
-
protoOf(URLBuilder).
|
|
1949
|
-
this.
|
|
1948
|
+
protoOf(URLBuilder).s4c = function (value) {
|
|
1949
|
+
this.m4b_1 = value;
|
|
1950
1950
|
};
|
|
1951
|
-
protoOf(URLBuilder).
|
|
1952
|
-
var tmp0_elvis_lhs = this.
|
|
1953
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1951
|
+
protoOf(URLBuilder).v4b = function () {
|
|
1952
|
+
var tmp0_elvis_lhs = this.m4b_1;
|
|
1953
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().t4c_1 : tmp0_elvis_lhs;
|
|
1954
1954
|
};
|
|
1955
|
-
protoOf(URLBuilder).
|
|
1955
|
+
protoOf(URLBuilder).z4c = function (value) {
|
|
1956
1956
|
var tmp = this;
|
|
1957
|
-
tmp.
|
|
1957
|
+
tmp.n4b_1 = value == null ? null : encodeURLParameter(value);
|
|
1958
1958
|
};
|
|
1959
|
-
protoOf(URLBuilder).
|
|
1960
|
-
var tmp0_safe_receiver = this.
|
|
1959
|
+
protoOf(URLBuilder).a4d = function () {
|
|
1960
|
+
var tmp0_safe_receiver = this.n4b_1;
|
|
1961
1961
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1962
1962
|
};
|
|
1963
|
-
protoOf(URLBuilder).
|
|
1964
|
-
var tmp0_safe_receiver = this.
|
|
1963
|
+
protoOf(URLBuilder).b4d = function () {
|
|
1964
|
+
var tmp0_safe_receiver = this.o4b_1;
|
|
1965
1965
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1966
1966
|
};
|
|
1967
|
-
protoOf(URLBuilder).
|
|
1968
|
-
return decodeURLQueryComponent(this.
|
|
1967
|
+
protoOf(URLBuilder).c4d = function () {
|
|
1968
|
+
return decodeURLQueryComponent(this.p4b_1);
|
|
1969
1969
|
};
|
|
1970
|
-
protoOf(URLBuilder).
|
|
1970
|
+
protoOf(URLBuilder).d4d = function () {
|
|
1971
1971
|
// Inline function 'kotlin.collections.map' call
|
|
1972
|
-
var this_0 = this.
|
|
1972
|
+
var this_0 = this.q4b_1;
|
|
1973
1973
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1974
1974
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1975
1975
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1980,60 +1980,60 @@ protoOf(URLBuilder).l3w = function () {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
return destination;
|
|
1982
1982
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
1983
|
+
protoOf(URLBuilder).e4d = function (value) {
|
|
1984
|
+
this.r4b_1 = value;
|
|
1985
|
+
this.s4b_1 = new UrlDecodedParametersBuilder(value);
|
|
1986
1986
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1987
|
+
protoOf(URLBuilder).f4d = function () {
|
|
1988
1988
|
applyOrigin(this);
|
|
1989
1989
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
1990
1990
|
};
|
|
1991
1991
|
protoOf(URLBuilder).toString = function () {
|
|
1992
1992
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
1993
1993
|
};
|
|
1994
|
-
protoOf(URLBuilder).
|
|
1994
|
+
protoOf(URLBuilder).y43 = function () {
|
|
1995
1995
|
applyOrigin(this);
|
|
1996
|
-
return new Url_0(this.
|
|
1996
|
+
return new Url_0(this.m4b_1, this.j4b_1, this.l4b_1, this.d4d(), this.s4b_1.y43(), this.c4d(), this.a4d(), this.b4d(), this.k4b_1, this.f4d());
|
|
1997
1997
|
};
|
|
1998
1998
|
function get_authority(_this__u8e3s4) {
|
|
1999
1999
|
// Inline function 'kotlin.text.buildString' call
|
|
2000
2000
|
// Inline function 'kotlin.apply' call
|
|
2001
2001
|
var this_0 = StringBuilder_init_$Create$();
|
|
2002
2002
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2003
|
-
this_0.q(_this__u8e3s4.
|
|
2004
|
-
if (!(_this__u8e3s4.
|
|
2003
|
+
this_0.q(_this__u8e3s4.j4b_1);
|
|
2004
|
+
if (!(_this__u8e3s4.l4b_1 === 0) && !(_this__u8e3s4.l4b_1 === _this__u8e3s4.v4b().u4b_1)) {
|
|
2005
2005
|
this_0.q(':');
|
|
2006
|
-
this_0.q(_this__u8e3s4.
|
|
2006
|
+
this_0.q(_this__u8e3s4.l4b_1.toString());
|
|
2007
2007
|
}
|
|
2008
2008
|
return this_0.toString();
|
|
2009
2009
|
}
|
|
2010
2010
|
function appendTo(_this__u8e3s4, out) {
|
|
2011
|
-
out.c1(_this__u8e3s4.
|
|
2012
|
-
switch (_this__u8e3s4.
|
|
2011
|
+
out.c1(_this__u8e3s4.v4b().t4b_1);
|
|
2012
|
+
switch (_this__u8e3s4.v4b().t4b_1) {
|
|
2013
2013
|
case 'file':
|
|
2014
|
-
appendFile(out, _this__u8e3s4.
|
|
2014
|
+
appendFile(out, _this__u8e3s4.j4b_1, get_encodedPath(_this__u8e3s4));
|
|
2015
2015
|
return out;
|
|
2016
2016
|
case 'mailto':
|
|
2017
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2017
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.j4b_1);
|
|
2018
2018
|
return out;
|
|
2019
2019
|
case 'about':
|
|
2020
|
-
appendPayload(out, _this__u8e3s4.
|
|
2020
|
+
appendPayload(out, _this__u8e3s4.j4b_1);
|
|
2021
2021
|
return out;
|
|
2022
2022
|
case 'tel':
|
|
2023
|
-
appendPayload(out, _this__u8e3s4.
|
|
2023
|
+
appendPayload(out, _this__u8e3s4.j4b_1);
|
|
2024
2024
|
return out;
|
|
2025
2025
|
case 'data':
|
|
2026
|
-
appendPayload(out, _this__u8e3s4.
|
|
2026
|
+
appendPayload(out, _this__u8e3s4.j4b_1);
|
|
2027
2027
|
return out;
|
|
2028
2028
|
}
|
|
2029
2029
|
out.c1('://');
|
|
2030
2030
|
out.c1(get_authority(_this__u8e3s4));
|
|
2031
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2031
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.r4b_1, _this__u8e3s4.k4b_1);
|
|
2032
2032
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2033
|
-
var this_0 = _this__u8e3s4.
|
|
2033
|
+
var this_0 = _this__u8e3s4.p4b_1;
|
|
2034
2034
|
if (charSequenceLength(this_0) > 0) {
|
|
2035
2035
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2036
|
-
out.c1(_this__u8e3s4.
|
|
2036
|
+
out.c1(_this__u8e3s4.p4b_1);
|
|
2037
2037
|
}
|
|
2038
2038
|
return out;
|
|
2039
2039
|
}
|
|
@@ -2041,7 +2041,7 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
2041
2041
|
// Inline function 'kotlin.text.buildString' call
|
|
2042
2042
|
// Inline function 'kotlin.apply' call
|
|
2043
2043
|
var this_0 = StringBuilder_init_$Create$();
|
|
2044
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2044
|
+
appendUserAndPassword(this_0, _this__u8e3s4.n4b_1, _this__u8e3s4.o4b_1);
|
|
2045
2045
|
return this_0.toString();
|
|
2046
2046
|
}
|
|
2047
2047
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2053,10 +2053,10 @@ function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
|
2053
2053
|
_this__u8e3s4.c1(encodedPath);
|
|
2054
2054
|
}
|
|
2055
2055
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2056
|
-
_this__u8e3s4.
|
|
2056
|
+
_this__u8e3s4.q4b_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2057
2057
|
}
|
|
2058
2058
|
function get_encodedPath(_this__u8e3s4) {
|
|
2059
|
-
return joinPath(_this__u8e3s4.
|
|
2059
|
+
return joinPath(_this__u8e3s4.q4b_1);
|
|
2060
2060
|
}
|
|
2061
2061
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2062
2062
|
_this__u8e3s4.c1(':');
|
|
@@ -2070,7 +2070,7 @@ function appendPayload(_this__u8e3s4, host) {
|
|
|
2070
2070
|
function joinPath(_this__u8e3s4) {
|
|
2071
2071
|
if (_this__u8e3s4.r())
|
|
2072
2072
|
return '';
|
|
2073
|
-
if (_this__u8e3s4.
|
|
2073
|
+
if (_this__u8e3s4.e1() === 1) {
|
|
2074
2074
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2075
2075
|
var this_0 = first_0(_this__u8e3s4);
|
|
2076
2076
|
if (charSequenceLength(this_0) === 0)
|
|
@@ -2144,20 +2144,20 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2144
2144
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2145
2145
|
if (schemeLength > 0) {
|
|
2146
2146
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2147
|
-
_this__u8e3s4.
|
|
2147
|
+
_this__u8e3s4.s4c(Companion_getInstance_7().g4d(scheme));
|
|
2148
2148
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2149
2149
|
}
|
|
2150
|
-
if (_this__u8e3s4.
|
|
2151
|
-
_this__u8e3s4.
|
|
2150
|
+
if (_this__u8e3s4.v4b().t4b_1 === 'data') {
|
|
2151
|
+
_this__u8e3s4.j4b_1 = substring(urlString, startIndex, endIndex);
|
|
2152
2152
|
return _this__u8e3s4;
|
|
2153
2153
|
}
|
|
2154
2154
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2155
2155
|
startIndex = startIndex + slashCount | 0;
|
|
2156
|
-
if (_this__u8e3s4.
|
|
2156
|
+
if (_this__u8e3s4.v4b().t4b_1 === 'file') {
|
|
2157
2157
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2158
2158
|
return _this__u8e3s4;
|
|
2159
2159
|
}
|
|
2160
|
-
if (_this__u8e3s4.
|
|
2160
|
+
if (_this__u8e3s4.v4b().t4b_1 === 'mailto') {
|
|
2161
2161
|
// Inline function 'kotlin.require' call
|
|
2162
2162
|
// Inline function 'kotlin.require' call
|
|
2163
2163
|
if (!(slashCount === 0)) {
|
|
@@ -2167,24 +2167,24 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2167
2167
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2168
2168
|
return _this__u8e3s4;
|
|
2169
2169
|
}
|
|
2170
|
-
if (_this__u8e3s4.
|
|
2170
|
+
if (_this__u8e3s4.v4b().t4b_1 === 'about') {
|
|
2171
2171
|
// Inline function 'kotlin.require' call
|
|
2172
2172
|
// Inline function 'kotlin.require' call
|
|
2173
2173
|
if (!(slashCount === 0)) {
|
|
2174
2174
|
var message_0 = 'Failed requirement.';
|
|
2175
2175
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2176
2176
|
}
|
|
2177
|
-
_this__u8e3s4.
|
|
2177
|
+
_this__u8e3s4.j4b_1 = substring(urlString, startIndex, endIndex);
|
|
2178
2178
|
return _this__u8e3s4;
|
|
2179
2179
|
}
|
|
2180
|
-
if (_this__u8e3s4.
|
|
2180
|
+
if (_this__u8e3s4.v4b().t4b_1 === 'tel') {
|
|
2181
2181
|
// Inline function 'kotlin.require' call
|
|
2182
2182
|
// Inline function 'kotlin.require' call
|
|
2183
2183
|
if (!(slashCount === 0)) {
|
|
2184
2184
|
var message_1 = 'Failed requirement.';
|
|
2185
2185
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2186
2186
|
}
|
|
2187
|
-
_this__u8e3s4.
|
|
2187
|
+
_this__u8e3s4.j4b_1 = substring(urlString, startIndex, endIndex);
|
|
2188
2188
|
return _this__u8e3s4;
|
|
2189
2189
|
}
|
|
2190
2190
|
if (slashCount >= 2) {
|
|
@@ -2202,10 +2202,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2202
2202
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2203
2203
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2204
2204
|
if (!(passwordIndex === -1)) {
|
|
2205
|
-
_this__u8e3s4.
|
|
2206
|
-
_this__u8e3s4.
|
|
2205
|
+
_this__u8e3s4.n4b_1 = substring(urlString, startIndex, passwordIndex);
|
|
2206
|
+
_this__u8e3s4.o4b_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2207
2207
|
} else {
|
|
2208
|
-
_this__u8e3s4.
|
|
2208
|
+
_this__u8e3s4.n4b_1 = substring(urlString, startIndex, delimiter);
|
|
2209
2209
|
}
|
|
2210
2210
|
startIndex = delimiter + 1 | 0;
|
|
2211
2211
|
} else {
|
|
@@ -2216,17 +2216,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
2218
|
if (startIndex >= endIndex) {
|
|
2219
|
-
_this__u8e3s4.
|
|
2219
|
+
_this__u8e3s4.q4b_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2220
2220
|
return _this__u8e3s4;
|
|
2221
2221
|
}
|
|
2222
2222
|
var tmp_0 = _this__u8e3s4;
|
|
2223
2223
|
var tmp_1;
|
|
2224
2224
|
if (slashCount === 0) {
|
|
2225
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
2225
|
+
tmp_1 = dropLast(_this__u8e3s4.q4b_1, 1);
|
|
2226
2226
|
} else {
|
|
2227
2227
|
tmp_1 = emptyList();
|
|
2228
2228
|
}
|
|
2229
|
-
tmp_0.
|
|
2229
|
+
tmp_0.q4b_1 = tmp_1;
|
|
2230
2230
|
// Inline function 'kotlin.takeIf' call
|
|
2231
2231
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2232
2232
|
var tmp_2;
|
|
@@ -2241,9 +2241,9 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2241
2241
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2242
2242
|
var tmp_3;
|
|
2243
2243
|
var tmp_4;
|
|
2244
|
-
if (_this__u8e3s4.
|
|
2244
|
+
if (_this__u8e3s4.q4b_1.e1() === 1) {
|
|
2245
2245
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2246
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2246
|
+
var this_2 = first_0(_this__u8e3s4.q4b_1);
|
|
2247
2247
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2248
2248
|
} else {
|
|
2249
2249
|
tmp_4 = false;
|
|
@@ -2251,12 +2251,12 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2251
2251
|
if (tmp_4) {
|
|
2252
2252
|
tmp_3 = emptyList();
|
|
2253
2253
|
} else {
|
|
2254
|
-
tmp_3 = _this__u8e3s4.
|
|
2254
|
+
tmp_3 = _this__u8e3s4.q4b_1;
|
|
2255
2255
|
}
|
|
2256
2256
|
var basePath = tmp_3;
|
|
2257
2257
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2258
2258
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2259
|
-
_this__u8e3s4.
|
|
2259
|
+
_this__u8e3s4.q4b_1 = plus_0(basePath, relativePath);
|
|
2260
2260
|
startIndex = pathEnd;
|
|
2261
2261
|
}
|
|
2262
2262
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2306,21 +2306,21 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2306
2306
|
_init_properties_URLParser_kt__sf11to();
|
|
2307
2307
|
switch (slashCount) {
|
|
2308
2308
|
case 1:
|
|
2309
|
-
_this__u8e3s4.
|
|
2309
|
+
_this__u8e3s4.j4b_1 = '';
|
|
2310
2310
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2311
2311
|
break;
|
|
2312
2312
|
case 2:
|
|
2313
2313
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2314
2314
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2315
|
-
_this__u8e3s4.
|
|
2315
|
+
_this__u8e3s4.j4b_1 = substring(urlString, startIndex, endIndex);
|
|
2316
2316
|
return Unit_instance;
|
|
2317
2317
|
}
|
|
2318
2318
|
|
|
2319
|
-
_this__u8e3s4.
|
|
2319
|
+
_this__u8e3s4.j4b_1 = substring(urlString, startIndex, nextSlash);
|
|
2320
2320
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2321
2321
|
break;
|
|
2322
2322
|
case 3:
|
|
2323
|
-
_this__u8e3s4.
|
|
2323
|
+
_this__u8e3s4.j4b_1 = '';
|
|
2324
2324
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2325
2325
|
break;
|
|
2326
2326
|
default:
|
|
@@ -2333,8 +2333,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2333
2333
|
if (delimiter === -1) {
|
|
2334
2334
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2335
2335
|
}
|
|
2336
|
-
_this__u8e3s4.
|
|
2337
|
-
_this__u8e3s4.
|
|
2336
|
+
_this__u8e3s4.z4c(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2337
|
+
_this__u8e3s4.j4b_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2338
2338
|
}
|
|
2339
2339
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2340
2340
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2368,19 +2368,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2368
2368
|
}
|
|
2369
2369
|
var tmp0_elvis_lhs = tmp;
|
|
2370
2370
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2371
|
-
_this__u8e3s4.
|
|
2371
|
+
_this__u8e3s4.j4b_1 = substring(urlString, startIndex, colonIndex);
|
|
2372
2372
|
var tmp_0;
|
|
2373
2373
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2374
2374
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2375
2375
|
} else {
|
|
2376
2376
|
tmp_0 = 0;
|
|
2377
2377
|
}
|
|
2378
|
-
_this__u8e3s4.
|
|
2378
|
+
_this__u8e3s4.r4c(tmp_0);
|
|
2379
2379
|
}
|
|
2380
2380
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2381
2381
|
_init_properties_URLParser_kt__sf11to();
|
|
2382
2382
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2383
|
-
_this__u8e3s4.
|
|
2383
|
+
_this__u8e3s4.k4b_1 = true;
|
|
2384
2384
|
return endIndex;
|
|
2385
2385
|
}
|
|
2386
2386
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2394,18 +2394,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2394
2394
|
var tmp0_elvis_lhs = tmp;
|
|
2395
2395
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2396
2396
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2397
|
-
rawParameters.
|
|
2397
|
+
rawParameters.z3w(parseQuery$lambda(_this__u8e3s4));
|
|
2398
2398
|
return fragmentStart;
|
|
2399
2399
|
}
|
|
2400
2400
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2401
2401
|
_init_properties_URLParser_kt__sf11to();
|
|
2402
2402
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2403
|
-
_this__u8e3s4.
|
|
2403
|
+
_this__u8e3s4.p4b_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
function parseQuery$lambda($this_parseQuery) {
|
|
2407
2407
|
return function (key, values) {
|
|
2408
|
-
$this_parseQuery.
|
|
2408
|
+
$this_parseQuery.r4b_1.o3w(key, values);
|
|
2409
2409
|
return Unit_instance;
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
@@ -2418,29 +2418,29 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2418
2418
|
}
|
|
2419
2419
|
function Companion_7() {
|
|
2420
2420
|
Companion_instance_7 = this;
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2423
|
-
this.
|
|
2424
|
-
this.
|
|
2425
|
-
this.
|
|
2421
|
+
this.t4c_1 = new URLProtocol('http', 80);
|
|
2422
|
+
this.u4c_1 = new URLProtocol('https', 443);
|
|
2423
|
+
this.v4c_1 = new URLProtocol('ws', 80);
|
|
2424
|
+
this.w4c_1 = new URLProtocol('wss', 443);
|
|
2425
|
+
this.x4c_1 = new URLProtocol('socks', 1080);
|
|
2426
2426
|
var tmp = this;
|
|
2427
2427
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2428
|
-
var this_0 = listOf([this.
|
|
2428
|
+
var this_0 = listOf([this.t4c_1, this.u4c_1, this.v4c_1, this.w4c_1, this.x4c_1]);
|
|
2429
2429
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2430
2430
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2431
2431
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2432
2432
|
var _iterator__ex2g4s = this_0.t();
|
|
2433
2433
|
while (_iterator__ex2g4s.u()) {
|
|
2434
2434
|
var element = _iterator__ex2g4s.v();
|
|
2435
|
-
var tmp$ret$2 = element.
|
|
2436
|
-
destination.
|
|
2435
|
+
var tmp$ret$2 = element.t4b_1;
|
|
2436
|
+
destination.b3(tmp$ret$2, element);
|
|
2437
2437
|
}
|
|
2438
|
-
tmp.
|
|
2438
|
+
tmp.y4c_1 = destination;
|
|
2439
2439
|
}
|
|
2440
|
-
protoOf(Companion_7).
|
|
2440
|
+
protoOf(Companion_7).g4d = function (name) {
|
|
2441
2441
|
// Inline function 'kotlin.let' call
|
|
2442
2442
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2443
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2443
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().y4c_1.s2(it);
|
|
2444
2444
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2445
2445
|
};
|
|
2446
2446
|
var Companion_instance_7;
|
|
@@ -2451,9 +2451,9 @@ function Companion_getInstance_7() {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
function URLProtocol(name, defaultPort) {
|
|
2453
2453
|
Companion_getInstance_7();
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2456
|
-
var tmp0 = this.
|
|
2454
|
+
this.t4b_1 = name;
|
|
2455
|
+
this.u4b_1 = defaultPort;
|
|
2456
|
+
var tmp0 = this.t4b_1;
|
|
2457
2457
|
var tmp$ret$0;
|
|
2458
2458
|
$l$block: {
|
|
2459
2459
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2475,11 +2475,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
2477
|
protoOf(URLProtocol).toString = function () {
|
|
2478
|
-
return 'URLProtocol(name=' + this.
|
|
2478
|
+
return 'URLProtocol(name=' + this.t4b_1 + ', defaultPort=' + this.u4b_1 + ')';
|
|
2479
2479
|
};
|
|
2480
2480
|
protoOf(URLProtocol).hashCode = function () {
|
|
2481
|
-
var result = getStringHashCode(this.
|
|
2482
|
-
result = imul(result, 31) + this.
|
|
2481
|
+
var result = getStringHashCode(this.t4b_1);
|
|
2482
|
+
result = imul(result, 31) + this.u4b_1 | 0;
|
|
2483
2483
|
return result;
|
|
2484
2484
|
};
|
|
2485
2485
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2487,35 +2487,35 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2487
2487
|
return true;
|
|
2488
2488
|
if (!(other instanceof URLProtocol))
|
|
2489
2489
|
return false;
|
|
2490
|
-
if (!(this.
|
|
2490
|
+
if (!(this.t4b_1 === other.t4b_1))
|
|
2491
2491
|
return false;
|
|
2492
|
-
if (!(this.
|
|
2492
|
+
if (!(this.u4b_1 === other.u4b_1))
|
|
2493
2493
|
return false;
|
|
2494
2494
|
return true;
|
|
2495
2495
|
};
|
|
2496
2496
|
function isSecure(_this__u8e3s4) {
|
|
2497
|
-
return _this__u8e3s4.
|
|
2497
|
+
return _this__u8e3s4.t4b_1 === 'https' || _this__u8e3s4.t4b_1 === 'wss';
|
|
2498
2498
|
}
|
|
2499
2499
|
function isWebsocket(_this__u8e3s4) {
|
|
2500
|
-
return _this__u8e3s4.
|
|
2500
|
+
return _this__u8e3s4.t4b_1 === 'ws' || _this__u8e3s4.t4b_1 === 'wss';
|
|
2501
2501
|
}
|
|
2502
2502
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2503
|
-
_this__u8e3s4.
|
|
2504
|
-
_this__u8e3s4.
|
|
2505
|
-
_this__u8e3s4.
|
|
2506
|
-
_this__u8e3s4.
|
|
2507
|
-
_this__u8e3s4.
|
|
2508
|
-
_this__u8e3s4.
|
|
2503
|
+
_this__u8e3s4.m4b_1 = url.m4b_1;
|
|
2504
|
+
_this__u8e3s4.j4b_1 = url.j4b_1;
|
|
2505
|
+
_this__u8e3s4.r4c(url.l4b_1);
|
|
2506
|
+
_this__u8e3s4.q4b_1 = url.q4b_1;
|
|
2507
|
+
_this__u8e3s4.n4b_1 = url.n4b_1;
|
|
2508
|
+
_this__u8e3s4.o4b_1 = url.o4b_1;
|
|
2509
2509
|
// Inline function 'kotlin.apply' call
|
|
2510
2510
|
var this_0 = ParametersBuilder();
|
|
2511
|
-
appendAll(this_0, url.
|
|
2512
|
-
_this__u8e3s4.
|
|
2513
|
-
_this__u8e3s4.
|
|
2514
|
-
_this__u8e3s4.
|
|
2511
|
+
appendAll(this_0, url.r4b_1);
|
|
2512
|
+
_this__u8e3s4.e4d(this_0);
|
|
2513
|
+
_this__u8e3s4.p4b_1 = url.p4b_1;
|
|
2514
|
+
_this__u8e3s4.k4b_1 = url.k4b_1;
|
|
2515
2515
|
return _this__u8e3s4;
|
|
2516
2516
|
}
|
|
2517
2517
|
function Url(urlString) {
|
|
2518
|
-
return URLBuilder_0(urlString).
|
|
2518
|
+
return URLBuilder_0(urlString).y43();
|
|
2519
2519
|
}
|
|
2520
2520
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2521
2521
|
var tmp;
|
|
@@ -2533,16 +2533,16 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2533
2533
|
_this__u8e3s4.c1('?');
|
|
2534
2534
|
}
|
|
2535
2535
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2536
|
-
var tmp0 = encodedQueryParameters.
|
|
2536
|
+
var tmp0 = encodedQueryParameters.n3w();
|
|
2537
2537
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2538
2538
|
var destination = ArrayList_init_$Create$_0();
|
|
2539
2539
|
var _iterator__ex2g4s = tmp0.t();
|
|
2540
2540
|
while (_iterator__ex2g4s.u()) {
|
|
2541
2541
|
var element = _iterator__ex2g4s.v();
|
|
2542
2542
|
// Inline function 'kotlin.collections.component1' call
|
|
2543
|
-
var key = element.
|
|
2543
|
+
var key = element.o1();
|
|
2544
2544
|
// Inline function 'kotlin.collections.component2' call
|
|
2545
|
-
var value = element.
|
|
2545
|
+
var value = element.p1();
|
|
2546
2546
|
var tmp_0;
|
|
2547
2547
|
if (value.r()) {
|
|
2548
2548
|
tmp_0 = listOf_0(to(key, null));
|
|
@@ -2579,19 +2579,19 @@ function URLBuilder_0(urlString) {
|
|
|
2579
2579
|
return takeFrom(new URLBuilder(), urlString);
|
|
2580
2580
|
}
|
|
2581
2581
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2582
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2583
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2582
|
+
var tmp0_subject = _this__u8e3s4.x4b_1;
|
|
2583
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.i4c_1.u4b_1 ? _this__u8e3s4.w4b_1 : get_hostWithPort(_this__u8e3s4);
|
|
2584
2584
|
}
|
|
2585
2585
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2586
|
-
return _this__u8e3s4.
|
|
2586
|
+
return _this__u8e3s4.w4b_1 + ':' + _this__u8e3s4.h4d();
|
|
2587
2587
|
}
|
|
2588
2588
|
function appendUrlFullPath$lambda(it) {
|
|
2589
|
-
var key = it.
|
|
2589
|
+
var key = it.sg_1;
|
|
2590
2590
|
var tmp;
|
|
2591
|
-
if (it.
|
|
2591
|
+
if (it.tg_1 == null) {
|
|
2592
2592
|
tmp = key;
|
|
2593
2593
|
} else {
|
|
2594
|
-
var value = toString_1(it.
|
|
2594
|
+
var value = toString_1(it.tg_1);
|
|
2595
2595
|
tmp = key + '=' + value;
|
|
2596
2596
|
}
|
|
2597
2597
|
return tmp;
|
|
@@ -2613,7 +2613,7 @@ function Url$segments$delegate$lambda($pathSegments) {
|
|
|
2613
2613
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2614
2614
|
var this_0 = first_0($pathSegments);
|
|
2615
2615
|
if (charSequenceLength(this_0) === 0) {
|
|
2616
|
-
tmp_1 = $pathSegments.
|
|
2616
|
+
tmp_1 = $pathSegments.e1() > 1;
|
|
2617
2617
|
} else {
|
|
2618
2618
|
tmp_1 = false;
|
|
2619
2619
|
}
|
|
@@ -2641,146 +2641,146 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2641
2641
|
if ($pathSegments.r()) {
|
|
2642
2642
|
return '';
|
|
2643
2643
|
}
|
|
2644
|
-
var pathStartIndex = indexOf(this$0.
|
|
2644
|
+
var pathStartIndex = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(47), this$0.i4c_1.t4b_1.length + 3 | 0);
|
|
2645
2645
|
var tmp_0;
|
|
2646
2646
|
if (pathStartIndex === -1) {
|
|
2647
2647
|
return '';
|
|
2648
2648
|
}
|
|
2649
2649
|
// Inline function 'kotlin.charArrayOf' call
|
|
2650
2650
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2651
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2651
|
+
var pathEndIndex = indexOfAny(this$0.d4c_1, tmp$ret$0, pathStartIndex);
|
|
2652
2652
|
var tmp_1;
|
|
2653
2653
|
if (pathEndIndex === -1) {
|
|
2654
|
-
return substring_0(this$0.
|
|
2654
|
+
return substring_0(this$0.d4c_1, pathStartIndex);
|
|
2655
2655
|
}
|
|
2656
|
-
return substring(this$0.
|
|
2656
|
+
return substring(this$0.d4c_1, pathStartIndex, pathEndIndex);
|
|
2657
2657
|
};
|
|
2658
2658
|
}
|
|
2659
2659
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2660
2660
|
return function () {
|
|
2661
|
-
var queryStart = indexOf(this$0.
|
|
2661
|
+
var queryStart = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2662
2662
|
var tmp;
|
|
2663
2663
|
if (queryStart === 0) {
|
|
2664
2664
|
return '';
|
|
2665
2665
|
}
|
|
2666
|
-
var queryEnd = indexOf(this$0.
|
|
2666
|
+
var queryEnd = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2667
2667
|
var tmp_0;
|
|
2668
2668
|
if (queryEnd === -1) {
|
|
2669
|
-
return substring_0(this$0.
|
|
2669
|
+
return substring_0(this$0.d4c_1, queryStart);
|
|
2670
2670
|
}
|
|
2671
|
-
return substring(this$0.
|
|
2671
|
+
return substring(this$0.d4c_1, queryStart, queryEnd);
|
|
2672
2672
|
};
|
|
2673
2673
|
}
|
|
2674
2674
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2675
2675
|
return function () {
|
|
2676
|
-
var pathStart = indexOf(this$0.
|
|
2676
|
+
var pathStart = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(47), this$0.i4c_1.t4b_1.length + 3 | 0);
|
|
2677
2677
|
var tmp;
|
|
2678
2678
|
if (pathStart === -1) {
|
|
2679
2679
|
return '';
|
|
2680
2680
|
}
|
|
2681
|
-
var queryEnd = indexOf(this$0.
|
|
2681
|
+
var queryEnd = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2682
2682
|
var tmp_0;
|
|
2683
2683
|
if (queryEnd === -1) {
|
|
2684
|
-
return substring_0(this$0.
|
|
2684
|
+
return substring_0(this$0.d4c_1, pathStart);
|
|
2685
2685
|
}
|
|
2686
|
-
return substring(this$0.
|
|
2686
|
+
return substring(this$0.d4c_1, pathStart, queryEnd);
|
|
2687
2687
|
};
|
|
2688
2688
|
}
|
|
2689
2689
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2690
2690
|
return function () {
|
|
2691
2691
|
var tmp;
|
|
2692
|
-
if (this$0.
|
|
2692
|
+
if (this$0.a4c_1 == null) {
|
|
2693
2693
|
return null;
|
|
2694
2694
|
}
|
|
2695
2695
|
var tmp_0;
|
|
2696
2696
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2697
|
-
var this_0 = this$0.
|
|
2697
|
+
var this_0 = this$0.a4c_1;
|
|
2698
2698
|
if (charSequenceLength(this_0) === 0) {
|
|
2699
2699
|
return '';
|
|
2700
2700
|
}
|
|
2701
|
-
var usernameStart = this$0.
|
|
2701
|
+
var usernameStart = this$0.i4c_1.t4b_1.length + 3 | 0;
|
|
2702
2702
|
// Inline function 'kotlin.charArrayOf' call
|
|
2703
2703
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2704
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2705
|
-
return substring(this$0.
|
|
2704
|
+
var usernameEnd = indexOfAny(this$0.d4c_1, tmp$ret$1, usernameStart);
|
|
2705
|
+
return substring(this$0.d4c_1, usernameStart, usernameEnd);
|
|
2706
2706
|
};
|
|
2707
2707
|
}
|
|
2708
2708
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2709
2709
|
return constructCallableReference(function (p0) {
|
|
2710
|
-
return p0.
|
|
2710
|
+
return p0.i4d();
|
|
2711
2711
|
}, 1, 0, 21);
|
|
2712
2712
|
}
|
|
2713
2713
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2714
2714
|
return function () {
|
|
2715
2715
|
var tmp;
|
|
2716
|
-
if (this$0.
|
|
2716
|
+
if (this$0.b4c_1 == null) {
|
|
2717
2717
|
return null;
|
|
2718
2718
|
}
|
|
2719
2719
|
var tmp_0;
|
|
2720
2720
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2721
|
-
var this_0 = this$0.
|
|
2721
|
+
var this_0 = this$0.b4c_1;
|
|
2722
2722
|
if (charSequenceLength(this_0) === 0) {
|
|
2723
2723
|
return '';
|
|
2724
2724
|
}
|
|
2725
|
-
var passwordStart = indexOf(this$0.
|
|
2726
|
-
var passwordEnd = indexOf(this$0.
|
|
2727
|
-
return substring(this$0.
|
|
2725
|
+
var passwordStart = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(58), this$0.i4c_1.t4b_1.length + 3 | 0) + 1 | 0;
|
|
2726
|
+
var passwordEnd = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(64));
|
|
2727
|
+
return substring(this$0.d4c_1, passwordStart, passwordEnd);
|
|
2728
2728
|
};
|
|
2729
2729
|
}
|
|
2730
2730
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2731
2731
|
return constructCallableReference(function (p0) {
|
|
2732
|
-
return p0.
|
|
2732
|
+
return p0.j4d();
|
|
2733
2733
|
}, 1, 0, 22);
|
|
2734
2734
|
}
|
|
2735
2735
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2736
2736
|
return function () {
|
|
2737
|
-
var fragmentStart = indexOf(this$0.
|
|
2737
|
+
var fragmentStart = indexOf(this$0.d4c_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2738
2738
|
var tmp;
|
|
2739
2739
|
if (fragmentStart === 0) {
|
|
2740
2740
|
return '';
|
|
2741
2741
|
}
|
|
2742
|
-
return substring_0(this$0.
|
|
2742
|
+
return substring_0(this$0.d4c_1, fragmentStart);
|
|
2743
2743
|
};
|
|
2744
2744
|
}
|
|
2745
2745
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2746
|
-
this.
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2749
|
-
this.
|
|
2750
|
-
this.
|
|
2751
|
-
this.
|
|
2752
|
-
this.
|
|
2753
|
-
this.
|
|
2754
|
-
var containsArg = this.
|
|
2746
|
+
this.w4b_1 = host;
|
|
2747
|
+
this.x4b_1 = specifiedPort;
|
|
2748
|
+
this.y4b_1 = parameters;
|
|
2749
|
+
this.z4b_1 = fragment;
|
|
2750
|
+
this.a4c_1 = user;
|
|
2751
|
+
this.b4c_1 = password;
|
|
2752
|
+
this.c4c_1 = trailingQuery;
|
|
2753
|
+
this.d4c_1 = urlString;
|
|
2754
|
+
var containsArg = this.x4b_1;
|
|
2755
2755
|
// Inline function 'kotlin.require' call
|
|
2756
2756
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2757
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2757
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.x4b_1;
|
|
2758
2758
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2759
2759
|
}
|
|
2760
|
-
this.
|
|
2761
|
-
this.
|
|
2760
|
+
this.e4c_1 = pathSegments;
|
|
2761
|
+
this.f4c_1 = pathSegments;
|
|
2762
2762
|
var tmp = this;
|
|
2763
|
-
tmp.
|
|
2764
|
-
this.
|
|
2763
|
+
tmp.g4c_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2764
|
+
this.h4c_1 = protocol;
|
|
2765
2765
|
var tmp_0 = this;
|
|
2766
|
-
var tmp0_elvis_lhs = this.
|
|
2767
|
-
tmp_0.
|
|
2766
|
+
var tmp0_elvis_lhs = this.h4c_1;
|
|
2767
|
+
tmp_0.i4c_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().t4c_1 : tmp0_elvis_lhs;
|
|
2768
2768
|
var tmp_1 = this;
|
|
2769
|
-
tmp_1.
|
|
2769
|
+
tmp_1.j4c_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2770
2770
|
var tmp_2 = this;
|
|
2771
|
-
tmp_2.
|
|
2771
|
+
tmp_2.k4c_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2772
2772
|
var tmp_3 = this;
|
|
2773
|
-
tmp_3.
|
|
2773
|
+
tmp_3.l4c_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2774
2774
|
var tmp_4 = this;
|
|
2775
|
-
tmp_4.
|
|
2775
|
+
tmp_4.m4c_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2776
2776
|
var tmp_5 = this;
|
|
2777
|
-
tmp_5.
|
|
2777
|
+
tmp_5.n4c_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2778
2778
|
var tmp_6 = this;
|
|
2779
|
-
tmp_6.
|
|
2779
|
+
tmp_6.o4c_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2780
2780
|
}
|
|
2781
|
-
protoOf(Url_0).
|
|
2781
|
+
protoOf(Url_0).h4d = function () {
|
|
2782
2782
|
// Inline function 'kotlin.takeUnless' call
|
|
2783
|
-
var this_0 = this.
|
|
2783
|
+
var this_0 = this.x4b_1;
|
|
2784
2784
|
var tmp;
|
|
2785
2785
|
if (!(this_0 === 0)) {
|
|
2786
2786
|
tmp = this_0;
|
|
@@ -2788,24 +2788,24 @@ protoOf(Url_0).p3w = function () {
|
|
|
2788
2788
|
tmp = null;
|
|
2789
2789
|
}
|
|
2790
2790
|
var tmp0_elvis_lhs = tmp;
|
|
2791
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2791
|
+
return tmp0_elvis_lhs == null ? this.i4c_1.u4b_1 : tmp0_elvis_lhs;
|
|
2792
2792
|
};
|
|
2793
|
-
protoOf(Url_0).
|
|
2794
|
-
var tmp0 = this.
|
|
2793
|
+
protoOf(Url_0).i4d = function () {
|
|
2794
|
+
var tmp0 = this.m4c_1;
|
|
2795
2795
|
var tmp = KProperty1;
|
|
2796
2796
|
// Inline function 'kotlin.getValue' call
|
|
2797
2797
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2798
|
-
return tmp0.
|
|
2798
|
+
return tmp0.p1();
|
|
2799
2799
|
};
|
|
2800
|
-
protoOf(Url_0).
|
|
2801
|
-
var tmp0 = this.
|
|
2800
|
+
protoOf(Url_0).j4d = function () {
|
|
2801
|
+
var tmp0 = this.n4c_1;
|
|
2802
2802
|
var tmp = KProperty1;
|
|
2803
2803
|
// Inline function 'kotlin.getValue' call
|
|
2804
2804
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2805
|
-
return tmp0.
|
|
2805
|
+
return tmp0.p1();
|
|
2806
2806
|
};
|
|
2807
2807
|
protoOf(Url_0).toString = function () {
|
|
2808
|
-
return this.
|
|
2808
|
+
return this.d4c_1;
|
|
2809
2809
|
};
|
|
2810
2810
|
protoOf(Url_0).equals = function (other) {
|
|
2811
2811
|
if (this === other)
|
|
@@ -2814,10 +2814,10 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2814
2814
|
return false;
|
|
2815
2815
|
if (!(other instanceof Url_0))
|
|
2816
2816
|
THROW_CCE();
|
|
2817
|
-
return this.
|
|
2817
|
+
return this.d4c_1 === other.d4c_1;
|
|
2818
2818
|
};
|
|
2819
2819
|
protoOf(Url_0).hashCode = function () {
|
|
2820
|
-
return getStringHashCode(this.
|
|
2820
|
+
return getStringHashCode(this.d4c_1);
|
|
2821
2821
|
};
|
|
2822
2822
|
function get_authority_0(_this__u8e3s4) {
|
|
2823
2823
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2829,19 +2829,19 @@ function get_authority_0(_this__u8e3s4) {
|
|
|
2829
2829
|
}
|
|
2830
2830
|
function UrlSerializer() {
|
|
2831
2831
|
UrlSerializer_instance = this;
|
|
2832
|
-
this.
|
|
2832
|
+
this.k4d_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2833
2833
|
}
|
|
2834
|
-
protoOf(UrlSerializer).
|
|
2835
|
-
return this.
|
|
2834
|
+
protoOf(UrlSerializer).eq = function () {
|
|
2835
|
+
return this.k4d_1;
|
|
2836
2836
|
};
|
|
2837
|
-
protoOf(UrlSerializer).
|
|
2838
|
-
return Url(decoder.
|
|
2837
|
+
protoOf(UrlSerializer).gq = function (decoder) {
|
|
2838
|
+
return Url(decoder.bt());
|
|
2839
2839
|
};
|
|
2840
|
-
protoOf(UrlSerializer).
|
|
2841
|
-
encoder.
|
|
2840
|
+
protoOf(UrlSerializer).l4d = function (encoder, value) {
|
|
2841
|
+
encoder.ku(value.toString());
|
|
2842
2842
|
};
|
|
2843
|
-
protoOf(UrlSerializer).
|
|
2844
|
-
return this.
|
|
2843
|
+
protoOf(UrlSerializer).fq = function (encoder, value) {
|
|
2844
|
+
return this.l4d(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2845
2845
|
};
|
|
2846
2846
|
var UrlSerializer_instance;
|
|
2847
2847
|
function UrlSerializer_getInstance() {
|
|
@@ -2853,21 +2853,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
2853
2853
|
// Inline function 'kotlin.text.buildString' call
|
|
2854
2854
|
// Inline function 'kotlin.apply' call
|
|
2855
2855
|
var this_0 = StringBuilder_init_$Create$();
|
|
2856
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2856
|
+
appendUserAndPassword(this_0, _this__u8e3s4.i4d(), _this__u8e3s4.j4d());
|
|
2857
2857
|
return this_0.toString();
|
|
2858
2858
|
}
|
|
2859
2859
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2860
|
-
this.
|
|
2861
|
-
this.
|
|
2860
|
+
this.m4d_1 = encodedParametersBuilder;
|
|
2861
|
+
this.n4d_1 = this.m4d_1.s3w();
|
|
2862
2862
|
}
|
|
2863
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2864
|
-
return decodeParameters(this.
|
|
2863
|
+
protoOf(UrlDecodedParametersBuilder).y43 = function () {
|
|
2864
|
+
return decodeParameters(this.m4d_1);
|
|
2865
2865
|
};
|
|
2866
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2867
|
-
return this.
|
|
2866
|
+
protoOf(UrlDecodedParametersBuilder).s3w = function () {
|
|
2867
|
+
return this.n4d_1;
|
|
2868
2868
|
};
|
|
2869
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2870
|
-
var tmp0_safe_receiver = this.
|
|
2869
|
+
protoOf(UrlDecodedParametersBuilder).t3w = function (name) {
|
|
2870
|
+
var tmp0_safe_receiver = this.m4d_1.t3w(encodeURLParameter(name));
|
|
2871
2871
|
var tmp;
|
|
2872
2872
|
if (tmp0_safe_receiver == null) {
|
|
2873
2873
|
tmp = null;
|
|
@@ -2885,9 +2885,9 @@ protoOf(UrlDecodedParametersBuilder).b3g = function (name) {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
return tmp;
|
|
2887
2887
|
};
|
|
2888
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2888
|
+
protoOf(UrlDecodedParametersBuilder).u3w = function () {
|
|
2889
2889
|
// Inline function 'kotlin.collections.map' call
|
|
2890
|
-
var this_0 = this.
|
|
2890
|
+
var this_0 = this.m4d_1.u3w();
|
|
2891
2891
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2892
2892
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2893
2893
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2899,18 +2899,18 @@ protoOf(UrlDecodedParametersBuilder).c3g = function () {
|
|
|
2899
2899
|
return toSet(destination);
|
|
2900
2900
|
};
|
|
2901
2901
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
2902
|
-
return this.
|
|
2902
|
+
return this.m4d_1.r();
|
|
2903
2903
|
};
|
|
2904
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2905
|
-
return decodeParameters(this.
|
|
2904
|
+
protoOf(UrlDecodedParametersBuilder).n3w = function () {
|
|
2905
|
+
return decodeParameters(this.m4d_1).n3w();
|
|
2906
2906
|
};
|
|
2907
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2908
|
-
return this.
|
|
2907
|
+
protoOf(UrlDecodedParametersBuilder).x3w = function (name, value) {
|
|
2908
|
+
return this.m4d_1.x3w(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2909
2909
|
};
|
|
2910
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2911
|
-
return appendAllEncoded(this.
|
|
2910
|
+
protoOf(UrlDecodedParametersBuilder).y3w = function (stringValues) {
|
|
2911
|
+
return appendAllEncoded(this.m4d_1, stringValues);
|
|
2912
2912
|
};
|
|
2913
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2913
|
+
protoOf(UrlDecodedParametersBuilder).o3w = function (name, values) {
|
|
2914
2914
|
var tmp = encodeURLParameter(name);
|
|
2915
2915
|
// Inline function 'kotlin.collections.map' call
|
|
2916
2916
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2921,10 +2921,10 @@ protoOf(UrlDecodedParametersBuilder).w3f = function (name, values) {
|
|
|
2921
2921
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
2922
2922
|
destination.b1(tmp$ret$2);
|
|
2923
2923
|
}
|
|
2924
|
-
return this.
|
|
2924
|
+
return this.m4d_1.o3w(tmp, destination);
|
|
2925
2925
|
};
|
|
2926
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2927
|
-
return this.
|
|
2926
|
+
protoOf(UrlDecodedParametersBuilder).w2 = function () {
|
|
2927
|
+
return this.m4d_1.w2();
|
|
2928
2928
|
};
|
|
2929
2929
|
function encodeParameters(parameters) {
|
|
2930
2930
|
// Inline function 'kotlin.apply' call
|
|
@@ -2936,14 +2936,14 @@ function decodeParameters(parameters) {
|
|
|
2936
2936
|
// Inline function 'kotlin.apply' call
|
|
2937
2937
|
var this_0 = ParametersBuilder();
|
|
2938
2938
|
appendAllDecoded(this_0, parameters);
|
|
2939
|
-
return this_0.
|
|
2939
|
+
return this_0.y43();
|
|
2940
2940
|
}
|
|
2941
2941
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
2942
2942
|
// Inline function 'kotlin.collections.forEach' call
|
|
2943
|
-
var _iterator__ex2g4s = parameters.
|
|
2943
|
+
var _iterator__ex2g4s = parameters.u3w().t();
|
|
2944
2944
|
while (_iterator__ex2g4s.u()) {
|
|
2945
2945
|
var element = _iterator__ex2g4s.v();
|
|
2946
|
-
var tmp0_elvis_lhs = parameters.
|
|
2946
|
+
var tmp0_elvis_lhs = parameters.t3w(element);
|
|
2947
2947
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2948
2948
|
var tmp = encodeURLParameter(element);
|
|
2949
2949
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2955,15 +2955,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
2955
2955
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
2956
2956
|
destination.b1(tmp$ret$4);
|
|
2957
2957
|
}
|
|
2958
|
-
_this__u8e3s4.
|
|
2958
|
+
_this__u8e3s4.o3w(tmp, destination);
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
2961
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
2962
2962
|
// Inline function 'kotlin.collections.forEach' call
|
|
2963
|
-
var _iterator__ex2g4s = parameters.
|
|
2963
|
+
var _iterator__ex2g4s = parameters.u3w().t();
|
|
2964
2964
|
while (_iterator__ex2g4s.u()) {
|
|
2965
2965
|
var element = _iterator__ex2g4s.v();
|
|
2966
|
-
var tmp0_elvis_lhs = parameters.
|
|
2966
|
+
var tmp0_elvis_lhs = parameters.t3w(element);
|
|
2967
2967
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2968
2968
|
var tmp = decodeURLQueryComponent(element);
|
|
2969
2969
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2975,7 +2975,7 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
2975
2975
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
2976
2976
|
destination.b1(tmp$ret$4);
|
|
2977
2977
|
}
|
|
2978
|
-
_this__u8e3s4.
|
|
2978
|
+
_this__u8e3s4.o3w(tmp, destination);
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
function MultiPartData() {
|
|
@@ -2995,20 +2995,20 @@ function ProtocolUpgrade() {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
function ContentWrapper() {
|
|
2997
2997
|
}
|
|
2998
|
-
protoOf(ContentWrapper).
|
|
2999
|
-
return this.
|
|
2998
|
+
protoOf(ContentWrapper).z4d = function () {
|
|
2999
|
+
return this.y4d_1;
|
|
3000
3000
|
};
|
|
3001
3001
|
function OutgoingContent() {
|
|
3002
|
-
this.
|
|
3002
|
+
this.o4d_1 = null;
|
|
3003
3003
|
}
|
|
3004
|
-
protoOf(OutgoingContent).
|
|
3004
|
+
protoOf(OutgoingContent).p4d = function () {
|
|
3005
3005
|
return null;
|
|
3006
3006
|
};
|
|
3007
|
-
protoOf(OutgoingContent).
|
|
3007
|
+
protoOf(OutgoingContent).q4d = function () {
|
|
3008
3008
|
return null;
|
|
3009
3009
|
};
|
|
3010
|
-
protoOf(OutgoingContent).
|
|
3011
|
-
return Companion_getInstance_1().
|
|
3010
|
+
protoOf(OutgoingContent).f48 = function () {
|
|
3011
|
+
return Companion_getInstance_1().a48_1;
|
|
3012
3012
|
};
|
|
3013
3013
|
function NullBody() {
|
|
3014
3014
|
}
|
|
@@ -3022,7 +3022,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3022
3022
|
tmp = true;
|
|
3023
3023
|
} else {
|
|
3024
3024
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3025
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3025
|
+
tmp = isEmpty(_this__u8e3s4.z4d());
|
|
3026
3026
|
} else {
|
|
3027
3027
|
tmp = false;
|
|
3028
3028
|
}
|
|
@@ -3032,27 +3032,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3032
3032
|
function TextContent(text, contentType, status) {
|
|
3033
3033
|
status = status === VOID ? null : status;
|
|
3034
3034
|
ByteArrayContent.call(this);
|
|
3035
|
-
this.
|
|
3036
|
-
this.
|
|
3037
|
-
this.
|
|
3035
|
+
this.b4e_1 = text;
|
|
3036
|
+
this.c4e_1 = contentType;
|
|
3037
|
+
this.d4e_1 = status;
|
|
3038
3038
|
var tmp = this;
|
|
3039
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3040
|
-
tmp.
|
|
3039
|
+
var tmp0_elvis_lhs = charset(this.c4e_1);
|
|
3040
|
+
tmp.e4e_1 = toByteArray(this.b4e_1, tmp0_elvis_lhs == null ? Charsets_getInstance().i3t_1 : tmp0_elvis_lhs);
|
|
3041
3041
|
}
|
|
3042
|
-
protoOf(TextContent).
|
|
3043
|
-
return this.
|
|
3042
|
+
protoOf(TextContent).p4d = function () {
|
|
3043
|
+
return this.c4e_1;
|
|
3044
3044
|
};
|
|
3045
|
-
protoOf(TextContent).
|
|
3046
|
-
return fromInt(this.
|
|
3045
|
+
protoOf(TextContent).q4d = function () {
|
|
3046
|
+
return fromInt(this.e4e_1.length);
|
|
3047
3047
|
};
|
|
3048
|
-
protoOf(TextContent).
|
|
3049
|
-
return this.
|
|
3048
|
+
protoOf(TextContent).w4d = function () {
|
|
3049
|
+
return this.e4e_1;
|
|
3050
3050
|
};
|
|
3051
3051
|
protoOf(TextContent).toString = function () {
|
|
3052
|
-
return 'TextContent[' + this.
|
|
3052
|
+
return 'TextContent[' + this.c4e_1.toString() + '] "' + take(this.b4e_1, 30) + '"';
|
|
3053
3053
|
};
|
|
3054
3054
|
function get_origin(_this__u8e3s4) {
|
|
3055
|
-
return PlatformUtils_getInstance().
|
|
3055
|
+
return PlatformUtils_getInstance().f3w_1 ? locationOrigin() : 'http://localhost';
|
|
3056
3056
|
}
|
|
3057
3057
|
function locationOrigin() {
|
|
3058
3058
|
return function () {
|
|
@@ -3070,10 +3070,10 @@ function locationOrigin() {
|
|
|
3070
3070
|
}();
|
|
3071
3071
|
}
|
|
3072
3072
|
//region block: post-declaration
|
|
3073
|
-
protoOf(EmptyHeaders).
|
|
3074
|
-
protoOf(EmptyHeaders).
|
|
3075
|
-
protoOf(EmptyParameters).
|
|
3076
|
-
protoOf(EmptyParameters).
|
|
3073
|
+
protoOf(EmptyHeaders).sd = get;
|
|
3074
|
+
protoOf(EmptyHeaders).z3w = forEach;
|
|
3075
|
+
protoOf(EmptyParameters).sd = get;
|
|
3076
|
+
protoOf(EmptyParameters).z3w = forEach;
|
|
3077
3077
|
//endregion
|
|
3078
3078
|
//region block: init
|
|
3079
3079
|
Companion_instance_0 = new Companion_0();
|