@doordeck/doordeck-headless-sdk 0.155.0 → 0.157.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +5 -5
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +1 -1
- package/kotlin/doordeck-sdk.js +3768 -3768
- package/kotlin/kotlin-kotlin-stdlib.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1671 -1671
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +306 -306
- package/kotlin/ktor-ktor-client-auth.js +52 -52
- package/kotlin/ktor-ktor-client-content-negotiation.js +43 -43
- package/kotlin/ktor-ktor-client-core.js +1568 -1578
- package/kotlin/ktor-ktor-client-logging.js +200 -200
- package/kotlin/ktor-ktor-events.js +5 -5
- package/kotlin/ktor-ktor-http-cio.js +314 -314
- package/kotlin/ktor-ktor-http.js +685 -683
- package/kotlin/ktor-ktor-io.js +468 -463
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/kotlin/ktor-ktor-serialization-kotlinx.js +17 -17
- package/kotlin/ktor-ktor-serialization.js +6 -6
- package/kotlin/ktor-ktor-utils.js +635 -635
- package/kotlin/ktor-ktor-websockets.js +36 -36
- package/package.json +2 -2
package/kotlin/ktor-ktor-http.js
CHANGED
|
@@ -240,26 +240,26 @@
|
|
|
240
240
|
// Inline function 'kotlin.text.buildString' call
|
|
241
241
|
// Inline function 'kotlin.apply' call
|
|
242
242
|
var this_0 = StringBuilder_init_$Create$();
|
|
243
|
-
var content = encode(Charsets_getInstance().
|
|
243
|
+
var content = encode(Charsets_getInstance().e1w_1.i1w(), _this__u8e3s4);
|
|
244
244
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
245
245
|
return this_0.toString();
|
|
246
246
|
}
|
|
247
247
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
248
248
|
start = start === VOID ? 0 : start;
|
|
249
249
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
250
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
250
|
+
charset = charset === VOID ? Charsets_getInstance().e1w_1 : charset;
|
|
251
251
|
_init_properties_Codecs_kt__fudxxf();
|
|
252
252
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
253
253
|
}
|
|
254
254
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
255
255
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
256
256
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
257
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
257
|
+
charset = charset === VOID ? Charsets_getInstance().e1w_1 : charset;
|
|
258
258
|
_init_properties_Codecs_kt__fudxxf();
|
|
259
259
|
// Inline function 'kotlin.text.buildString' call
|
|
260
260
|
// Inline function 'kotlin.apply' call
|
|
261
261
|
var this_0 = StringBuilder_init_$Create$();
|
|
262
|
-
var content = encode(charset.
|
|
262
|
+
var content = encode(charset.i1w(), _this__u8e3s4);
|
|
263
263
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
264
264
|
return this_0.toString();
|
|
265
265
|
}
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
start = start === VOID ? 0 : start;
|
|
268
268
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
269
269
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
270
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
270
|
+
charset = charset === VOID ? Charsets_getInstance().e1w_1 : charset;
|
|
271
271
|
_init_properties_Codecs_kt__fudxxf();
|
|
272
272
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
273
273
|
}
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
// Inline function 'kotlin.text.buildString' call
|
|
319
319
|
// Inline function 'kotlin.apply' call
|
|
320
320
|
var this_0 = StringBuilder_init_$Create$();
|
|
321
|
-
var charset = Charsets_getInstance().
|
|
321
|
+
var charset = Charsets_getInstance().e1w_1;
|
|
322
322
|
var index = 0;
|
|
323
323
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
324
324
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
continue $l$loop_0;
|
|
336
336
|
}
|
|
337
337
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
338
|
-
var tmp = encode(charset.
|
|
338
|
+
var tmp = encode(charset.i1w(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
339
339
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
340
340
|
index = index + symbolSize | 0;
|
|
341
341
|
}
|
|
@@ -517,18 +517,18 @@
|
|
|
517
517
|
}
|
|
518
518
|
function hasParameter($this, name, value) {
|
|
519
519
|
var tmp;
|
|
520
|
-
switch ($this.
|
|
520
|
+
switch ($this.z2q_1.u()) {
|
|
521
521
|
case 0:
|
|
522
522
|
tmp = false;
|
|
523
523
|
break;
|
|
524
524
|
case 1:
|
|
525
525
|
// Inline function 'kotlin.let' call
|
|
526
526
|
|
|
527
|
-
var it = $this.
|
|
528
|
-
tmp = (equals(it.
|
|
527
|
+
var it = $this.z2q_1.v(0);
|
|
528
|
+
tmp = (equals(it.a2r_1, name, true) && equals(it.b2r_1, value, true));
|
|
529
529
|
break;
|
|
530
530
|
default:
|
|
531
|
-
var tmp0 = $this.
|
|
531
|
+
var tmp0 = $this.z2q_1;
|
|
532
532
|
var tmp$ret$2;
|
|
533
533
|
$l$block_0: {
|
|
534
534
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
var _iterator__ex2g4s = tmp0.r();
|
|
546
546
|
while (_iterator__ex2g4s.s()) {
|
|
547
547
|
var element = _iterator__ex2g4s.t();
|
|
548
|
-
if (equals(element.
|
|
548
|
+
if (equals(element.a2r_1, name, true) && equals(element.b2r_1, value, true)) {
|
|
549
549
|
tmp$ret$2 = true;
|
|
550
550
|
break $l$block_0;
|
|
551
551
|
}
|
|
@@ -560,20 +560,20 @@
|
|
|
560
560
|
}
|
|
561
561
|
function Companion() {
|
|
562
562
|
Companion_instance = this;
|
|
563
|
-
this.
|
|
563
|
+
this.d2r_1 = ContentType_init_$Create$('*', '*');
|
|
564
564
|
}
|
|
565
565
|
protoOf(Companion).hm = function (value) {
|
|
566
566
|
if (isBlank(value))
|
|
567
|
-
return this.
|
|
567
|
+
return this.d2r_1;
|
|
568
568
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
569
569
|
var headerValue = last(parseHeaderValue(value));
|
|
570
|
-
var tmp0 = headerValue.
|
|
571
|
-
var parameters = headerValue.
|
|
570
|
+
var tmp0 = headerValue.e2r_1;
|
|
571
|
+
var parameters = headerValue.f2r_1;
|
|
572
572
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
573
573
|
if (slash === -1) {
|
|
574
574
|
// Inline function 'kotlin.text.trim' call
|
|
575
575
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
576
|
-
return Companion_getInstance().
|
|
576
|
+
return Companion_getInstance().d2r_1;
|
|
577
577
|
throw new BadContentTypeFormatException(value);
|
|
578
578
|
}
|
|
579
579
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -609,32 +609,32 @@
|
|
|
609
609
|
}
|
|
610
610
|
function Application() {
|
|
611
611
|
Application_instance = this;
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
}
|
|
637
|
-
protoOf(Application).
|
|
612
|
+
this.h2r_1 = 'application';
|
|
613
|
+
this.i2r_1 = ContentType_init_$Create$('application', '*');
|
|
614
|
+
this.j2r_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
615
|
+
this.k2r_1 = ContentType_init_$Create$('application', 'cbor');
|
|
616
|
+
this.l2r_1 = ContentType_init_$Create$('application', 'json');
|
|
617
|
+
this.m2r_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
618
|
+
this.n2r_1 = ContentType_init_$Create$('application', 'javascript');
|
|
619
|
+
this.o2r_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
620
|
+
this.p2r_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
621
|
+
this.q2r_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
622
|
+
this.r2r_1 = ContentType_init_$Create$('application', 'xml');
|
|
623
|
+
this.s2r_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
624
|
+
this.t2r_1 = ContentType_init_$Create$('application', 'yaml');
|
|
625
|
+
this.u2r_1 = ContentType_init_$Create$('application', 'zip');
|
|
626
|
+
this.v2r_1 = ContentType_init_$Create$('application', 'gzip');
|
|
627
|
+
this.w2r_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
628
|
+
this.x2r_1 = ContentType_init_$Create$('application', 'pdf');
|
|
629
|
+
this.y2r_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
630
|
+
this.z2r_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
631
|
+
this.a2s_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
632
|
+
this.b2s_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
633
|
+
this.c2s_1 = ContentType_init_$Create$('application', 'wasm');
|
|
634
|
+
this.d2s_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
635
|
+
this.e2s_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
636
|
+
}
|
|
637
|
+
protoOf(Application).f2s = function (contentType) {
|
|
638
638
|
return startsWith(contentType, 'application/', true);
|
|
639
639
|
};
|
|
640
640
|
var Application_instance;
|
|
@@ -645,17 +645,17 @@
|
|
|
645
645
|
}
|
|
646
646
|
function MultiPart() {
|
|
647
647
|
MultiPart_instance = this;
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
}
|
|
658
|
-
protoOf(MultiPart).
|
|
648
|
+
this.g2s_1 = 'multipart';
|
|
649
|
+
this.h2s_1 = ContentType_init_$Create$('multipart', '*');
|
|
650
|
+
this.i2s_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
651
|
+
this.j2s_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
652
|
+
this.k2s_1 = ContentType_init_$Create$('multipart', 'related');
|
|
653
|
+
this.l2s_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
654
|
+
this.m2s_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
655
|
+
this.n2s_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
656
|
+
this.o2s_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
657
|
+
}
|
|
658
|
+
protoOf(MultiPart).f2s = function (contentType) {
|
|
659
659
|
return startsWith(contentType, 'multipart/', true);
|
|
660
660
|
};
|
|
661
661
|
var MultiPart_instance;
|
|
@@ -666,16 +666,16 @@
|
|
|
666
666
|
}
|
|
667
667
|
function Text() {
|
|
668
668
|
Text_instance = this;
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
669
|
+
this.p2s_1 = 'text';
|
|
670
|
+
this.q2s_1 = ContentType_init_$Create$('text', '*');
|
|
671
|
+
this.r2s_1 = ContentType_init_$Create$('text', 'plain');
|
|
672
|
+
this.s2s_1 = ContentType_init_$Create$('text', 'css');
|
|
673
|
+
this.t2s_1 = ContentType_init_$Create$('text', 'csv');
|
|
674
|
+
this.u2s_1 = ContentType_init_$Create$('text', 'html');
|
|
675
|
+
this.v2s_1 = ContentType_init_$Create$('text', 'javascript');
|
|
676
|
+
this.w2s_1 = ContentType_init_$Create$('text', 'vcard');
|
|
677
|
+
this.x2s_1 = ContentType_init_$Create$('text', 'xml');
|
|
678
|
+
this.y2s_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
679
679
|
}
|
|
680
680
|
var Text_instance;
|
|
681
681
|
function Text_getInstance() {
|
|
@@ -687,25 +687,25 @@
|
|
|
687
687
|
Companion_getInstance();
|
|
688
688
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
689
689
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
690
|
+
this.b2t_1 = contentType;
|
|
691
|
+
this.c2t_1 = contentSubtype;
|
|
692
692
|
}
|
|
693
|
-
protoOf(ContentType).
|
|
693
|
+
protoOf(ContentType).d2t = function (name, value) {
|
|
694
694
|
if (hasParameter(this, name, value))
|
|
695
695
|
return this;
|
|
696
|
-
return new ContentType(this.
|
|
696
|
+
return new ContentType(this.b2t_1, this.c2t_1, this.y2q_1, plus_2(this.z2q_1, HeaderValueParam_init_$Create$(name, value)));
|
|
697
697
|
};
|
|
698
|
-
protoOf(ContentType).
|
|
699
|
-
return this.
|
|
698
|
+
protoOf(ContentType).e2t = function () {
|
|
699
|
+
return this.z2q_1.j() ? this : ContentType_init_$Create$(this.b2t_1, this.c2t_1);
|
|
700
700
|
};
|
|
701
|
-
protoOf(ContentType).
|
|
702
|
-
if (!(pattern.
|
|
701
|
+
protoOf(ContentType).f2t = function (pattern) {
|
|
702
|
+
if (!(pattern.b2t_1 === '*') && !equals(pattern.b2t_1, this.b2t_1, true)) {
|
|
703
703
|
return false;
|
|
704
704
|
}
|
|
705
|
-
if (!(pattern.
|
|
705
|
+
if (!(pattern.c2t_1 === '*') && !equals(pattern.c2t_1, this.c2t_1, true)) {
|
|
706
706
|
return false;
|
|
707
707
|
}
|
|
708
|
-
var _iterator__ex2g4s = pattern.
|
|
708
|
+
var _iterator__ex2g4s = pattern.z2q_1.r();
|
|
709
709
|
while (_iterator__ex2g4s.s()) {
|
|
710
710
|
var _destruct__k2r9zo = _iterator__ex2g4s.t();
|
|
711
711
|
var patternName = _destruct__k2r9zo.ig();
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
if (patternValue === '*') {
|
|
717
717
|
tmp_0 = true;
|
|
718
718
|
} else {
|
|
719
|
-
var tmp0 = this.
|
|
719
|
+
var tmp0 = this.z2q_1;
|
|
720
720
|
var tmp$ret$0;
|
|
721
721
|
$l$block_0: {
|
|
722
722
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -733,7 +733,7 @@
|
|
|
733
733
|
var _iterator__ex2g4s_0 = tmp0.r();
|
|
734
734
|
while (_iterator__ex2g4s_0.s()) {
|
|
735
735
|
var element = _iterator__ex2g4s_0.t();
|
|
736
|
-
if (equals(element.
|
|
736
|
+
if (equals(element.b2r_1, patternValue, true)) {
|
|
737
737
|
tmp$ret$0 = true;
|
|
738
738
|
break $l$block_0;
|
|
739
739
|
}
|
|
@@ -744,7 +744,7 @@
|
|
|
744
744
|
}
|
|
745
745
|
tmp = tmp_0;
|
|
746
746
|
} else {
|
|
747
|
-
var value = this.
|
|
747
|
+
var value = this.g2t(patternName);
|
|
748
748
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
749
749
|
}
|
|
750
750
|
var matches = tmp;
|
|
@@ -759,17 +759,17 @@
|
|
|
759
759
|
var tmp_0;
|
|
760
760
|
var tmp_1;
|
|
761
761
|
if (other instanceof ContentType) {
|
|
762
|
-
tmp_1 = equals(this.
|
|
762
|
+
tmp_1 = equals(this.b2t_1, other.b2t_1, true);
|
|
763
763
|
} else {
|
|
764
764
|
tmp_1 = false;
|
|
765
765
|
}
|
|
766
766
|
if (tmp_1) {
|
|
767
|
-
tmp_0 = equals(this.
|
|
767
|
+
tmp_0 = equals(this.c2t_1, other.c2t_1, true);
|
|
768
768
|
} else {
|
|
769
769
|
tmp_0 = false;
|
|
770
770
|
}
|
|
771
771
|
if (tmp_0) {
|
|
772
|
-
tmp = equals_0(this.
|
|
772
|
+
tmp = equals_0(this.z2q_1, other.z2q_1);
|
|
773
773
|
} else {
|
|
774
774
|
tmp = false;
|
|
775
775
|
}
|
|
@@ -778,19 +778,19 @@
|
|
|
778
778
|
protoOf(ContentType).hashCode = function () {
|
|
779
779
|
// Inline function 'kotlin.text.lowercase' call
|
|
780
780
|
// Inline function 'kotlin.js.asDynamic' call
|
|
781
|
-
var tmp$ret$1 = this.
|
|
781
|
+
var tmp$ret$1 = this.b2t_1.toLowerCase();
|
|
782
782
|
var result = getStringHashCode(tmp$ret$1);
|
|
783
783
|
var tmp = result;
|
|
784
784
|
var tmp_0 = imul(31, result);
|
|
785
785
|
// Inline function 'kotlin.text.lowercase' call
|
|
786
786
|
// Inline function 'kotlin.js.asDynamic' call
|
|
787
|
-
var tmp$ret$3 = this.
|
|
787
|
+
var tmp$ret$3 = this.c2t_1.toLowerCase();
|
|
788
788
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
789
|
-
result = result + imul(31, hashCode(this.
|
|
789
|
+
result = result + imul(31, hashCode(this.z2q_1)) | 0;
|
|
790
790
|
return result;
|
|
791
791
|
};
|
|
792
792
|
function charset(_this__u8e3s4) {
|
|
793
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
793
|
+
var tmp0_safe_receiver = _this__u8e3s4.g2t('charset');
|
|
794
794
|
var tmp;
|
|
795
795
|
if (tmp0_safe_receiver == null) {
|
|
796
796
|
tmp = null;
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
return tmp;
|
|
815
815
|
}
|
|
816
816
|
function withCharset(_this__u8e3s4, charset) {
|
|
817
|
-
return _this__u8e3s4.
|
|
817
|
+
return _this__u8e3s4.d2t('charset', get_name(charset));
|
|
818
818
|
}
|
|
819
819
|
function BadContentTypeFormatException(value) {
|
|
820
820
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
@@ -824,10 +824,10 @@
|
|
|
824
824
|
var tmp;
|
|
825
825
|
// Inline function 'kotlin.text.lowercase' call
|
|
826
826
|
// Inline function 'kotlin.js.asDynamic' call
|
|
827
|
-
if (!(_this__u8e3s4.
|
|
827
|
+
if (!(_this__u8e3s4.b2t_1.toLowerCase() === 'text')) {
|
|
828
828
|
tmp = _this__u8e3s4;
|
|
829
829
|
} else {
|
|
830
|
-
tmp = _this__u8e3s4.
|
|
830
|
+
tmp = _this__u8e3s4.d2t('charset', get_name(charset));
|
|
831
831
|
}
|
|
832
832
|
return tmp;
|
|
833
833
|
}
|
|
@@ -841,7 +841,7 @@
|
|
|
841
841
|
var HeaderFieldValueSeparators;
|
|
842
842
|
function append(_this__u8e3s4, name, value) {
|
|
843
843
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
844
|
-
_this__u8e3s4.
|
|
844
|
+
_this__u8e3s4.z2l(name, value.toString());
|
|
845
845
|
}
|
|
846
846
|
function Companion_0() {
|
|
847
847
|
}
|
|
@@ -851,19 +851,19 @@
|
|
|
851
851
|
}
|
|
852
852
|
function HeaderValueWithParameters(content, parameters) {
|
|
853
853
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
854
|
+
this.y2q_1 = content;
|
|
855
|
+
this.z2q_1 = parameters;
|
|
856
856
|
}
|
|
857
|
-
protoOf(HeaderValueWithParameters).
|
|
857
|
+
protoOf(HeaderValueWithParameters).g2t = function (name) {
|
|
858
858
|
var inductionVariable = 0;
|
|
859
|
-
var last = get_lastIndex(this.
|
|
859
|
+
var last = get_lastIndex(this.z2q_1);
|
|
860
860
|
if (inductionVariable <= last)
|
|
861
861
|
do {
|
|
862
862
|
var index = inductionVariable;
|
|
863
863
|
inductionVariable = inductionVariable + 1 | 0;
|
|
864
|
-
var parameter = this.
|
|
865
|
-
if (equals(parameter.
|
|
866
|
-
return parameter.
|
|
864
|
+
var parameter = this.z2q_1.v(index);
|
|
865
|
+
if (equals(parameter.a2r_1, name, true)) {
|
|
866
|
+
return parameter.b2r_1;
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
while (!(index === last));
|
|
@@ -871,34 +871,34 @@
|
|
|
871
871
|
};
|
|
872
872
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
873
873
|
var tmp;
|
|
874
|
-
if (this.
|
|
875
|
-
tmp = this.
|
|
874
|
+
if (this.z2q_1.j()) {
|
|
875
|
+
tmp = this.y2q_1;
|
|
876
876
|
} else {
|
|
877
|
-
var tmp_0 = this.
|
|
877
|
+
var tmp_0 = this.y2q_1.length;
|
|
878
878
|
// Inline function 'kotlin.collections.sumOf' call
|
|
879
879
|
var sum = 0;
|
|
880
|
-
var _iterator__ex2g4s = this.
|
|
880
|
+
var _iterator__ex2g4s = this.z2q_1.r();
|
|
881
881
|
while (_iterator__ex2g4s.s()) {
|
|
882
882
|
var element = _iterator__ex2g4s.t();
|
|
883
883
|
var tmp_1 = sum;
|
|
884
|
-
sum = tmp_1 + ((element.
|
|
884
|
+
sum = tmp_1 + ((element.a2r_1.length + element.b2r_1.length | 0) + 3 | 0) | 0;
|
|
885
885
|
}
|
|
886
886
|
var size = tmp_0 + sum | 0;
|
|
887
887
|
// Inline function 'kotlin.apply' call
|
|
888
888
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
889
|
-
this_0.f8(this.
|
|
889
|
+
this_0.f8(this.y2q_1);
|
|
890
890
|
var inductionVariable = 0;
|
|
891
|
-
var last = get_lastIndex(this.
|
|
891
|
+
var last = get_lastIndex(this.z2q_1);
|
|
892
892
|
if (inductionVariable <= last)
|
|
893
893
|
do {
|
|
894
894
|
var index = inductionVariable;
|
|
895
895
|
inductionVariable = inductionVariable + 1 | 0;
|
|
896
|
-
var element_0 = this.
|
|
896
|
+
var element_0 = this.z2q_1.v(index);
|
|
897
897
|
this_0.f8('; ');
|
|
898
|
-
this_0.f8(element_0.
|
|
898
|
+
this_0.f8(element_0.a2r_1);
|
|
899
899
|
this_0.f8('=');
|
|
900
900
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
901
|
-
var this_1 = element_0.
|
|
901
|
+
var this_1 = element_0.b2r_1;
|
|
902
902
|
if (needQuotes(this_1))
|
|
903
903
|
this_0.f8(quote(this_1));
|
|
904
904
|
else
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
}
|
|
1000
1000
|
function Companion_1() {
|
|
1001
1001
|
Companion_instance_1 = this;
|
|
1002
|
-
this.
|
|
1002
|
+
this.h2t_1 = EmptyHeaders_instance;
|
|
1003
1003
|
}
|
|
1004
1004
|
var Companion_instance_1;
|
|
1005
1005
|
function Companion_getInstance_1() {
|
|
@@ -1011,39 +1011,39 @@
|
|
|
1011
1011
|
size = size === VOID ? 8 : size;
|
|
1012
1012
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1013
1013
|
}
|
|
1014
|
-
protoOf(HeadersBuilder).
|
|
1015
|
-
return new HeadersImpl(this.
|
|
1014
|
+
protoOf(HeadersBuilder).k2t = function () {
|
|
1015
|
+
return new HeadersImpl(this.h2m_1);
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf(HeadersBuilder).
|
|
1018
|
-
protoOf(StringValuesBuilderImpl).
|
|
1019
|
-
HttpHeaders_getInstance().
|
|
1017
|
+
protoOf(HeadersBuilder).i2m = function (name) {
|
|
1018
|
+
protoOf(StringValuesBuilderImpl).i2m.call(this, name);
|
|
1019
|
+
HttpHeaders_getInstance().i2x(name);
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(HeadersBuilder).
|
|
1022
|
-
protoOf(StringValuesBuilderImpl).
|
|
1023
|
-
HttpHeaders_getInstance().
|
|
1021
|
+
protoOf(HeadersBuilder).k2m = function (value) {
|
|
1022
|
+
protoOf(StringValuesBuilderImpl).k2m.call(this, value);
|
|
1023
|
+
HttpHeaders_getInstance().j2x(value);
|
|
1024
1024
|
};
|
|
1025
1025
|
function headersOf(name, value) {
|
|
1026
1026
|
return new HeadersSingleImpl(name, listOf_0(value));
|
|
1027
1027
|
}
|
|
1028
1028
|
function EmptyHeaders() {
|
|
1029
1029
|
}
|
|
1030
|
-
protoOf(EmptyHeaders).
|
|
1030
|
+
protoOf(EmptyHeaders).c2m = function () {
|
|
1031
1031
|
return true;
|
|
1032
1032
|
};
|
|
1033
|
-
protoOf(EmptyHeaders).
|
|
1033
|
+
protoOf(EmptyHeaders).d2m = function (name) {
|
|
1034
1034
|
return null;
|
|
1035
1035
|
};
|
|
1036
|
-
protoOf(EmptyHeaders).
|
|
1036
|
+
protoOf(EmptyHeaders).e2m = function () {
|
|
1037
1037
|
return emptySet();
|
|
1038
1038
|
};
|
|
1039
|
-
protoOf(EmptyHeaders).
|
|
1039
|
+
protoOf(EmptyHeaders).a2m = function () {
|
|
1040
1040
|
return emptySet();
|
|
1041
1041
|
};
|
|
1042
1042
|
protoOf(EmptyHeaders).j = function () {
|
|
1043
1043
|
return true;
|
|
1044
1044
|
};
|
|
1045
1045
|
protoOf(EmptyHeaders).toString = function () {
|
|
1046
|
-
return 'Headers ' + toString(this.
|
|
1046
|
+
return 'Headers ' + toString(this.a2m());
|
|
1047
1047
|
};
|
|
1048
1048
|
var EmptyHeaders_instance;
|
|
1049
1049
|
function EmptyHeaders_getInstance() {
|
|
@@ -1054,27 +1054,27 @@
|
|
|
1054
1054
|
StringValuesImpl.call(this, true, values);
|
|
1055
1055
|
}
|
|
1056
1056
|
protoOf(HeadersImpl).toString = function () {
|
|
1057
|
-
return 'Headers ' + toString(this.
|
|
1057
|
+
return 'Headers ' + toString(this.a2m());
|
|
1058
1058
|
};
|
|
1059
1059
|
function HeadersSingleImpl(name, values) {
|
|
1060
1060
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1061
1061
|
}
|
|
1062
1062
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1063
|
-
return 'Headers ' + toString(this.
|
|
1063
|
+
return 'Headers ' + toString(this.a2m());
|
|
1064
1064
|
};
|
|
1065
1065
|
function HeaderValue(value, params) {
|
|
1066
1066
|
params = params === VOID ? emptyList() : params;
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1067
|
+
this.e2r_1 = value;
|
|
1068
|
+
this.f2r_1 = params;
|
|
1069
1069
|
var tmp = this;
|
|
1070
|
-
var tmp0 = this.
|
|
1070
|
+
var tmp0 = this.f2r_1;
|
|
1071
1071
|
var tmp$ret$1;
|
|
1072
1072
|
$l$block: {
|
|
1073
1073
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1074
1074
|
var _iterator__ex2g4s = tmp0.r();
|
|
1075
1075
|
while (_iterator__ex2g4s.s()) {
|
|
1076
1076
|
var element = _iterator__ex2g4s.t();
|
|
1077
|
-
if (element.
|
|
1077
|
+
if (element.a2r_1 === 'q') {
|
|
1078
1078
|
tmp$ret$1 = element;
|
|
1079
1079
|
break $l$block;
|
|
1080
1080
|
}
|
|
@@ -1082,7 +1082,7 @@
|
|
|
1082
1082
|
tmp$ret$1 = null;
|
|
1083
1083
|
}
|
|
1084
1084
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1085
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1085
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2r_1;
|
|
1086
1086
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1087
1087
|
var tmp_0;
|
|
1088
1088
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1098,17 +1098,17 @@
|
|
|
1098
1098
|
tmp_0 = tmp_1;
|
|
1099
1099
|
}
|
|
1100
1100
|
var tmp3_elvis_lhs = tmp_0;
|
|
1101
|
-
tmp.
|
|
1101
|
+
tmp.g2r_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1102
1102
|
}
|
|
1103
1103
|
protoOf(HeaderValue).ig = function () {
|
|
1104
|
-
return this.
|
|
1104
|
+
return this.e2r_1;
|
|
1105
1105
|
};
|
|
1106
1106
|
protoOf(HeaderValue).toString = function () {
|
|
1107
|
-
return 'HeaderValue(value=' + this.
|
|
1107
|
+
return 'HeaderValue(value=' + this.e2r_1 + ', params=' + toString(this.f2r_1) + ')';
|
|
1108
1108
|
};
|
|
1109
1109
|
protoOf(HeaderValue).hashCode = function () {
|
|
1110
|
-
var result = getStringHashCode(this.
|
|
1111
|
-
result = imul(result, 31) + hashCode(this.
|
|
1110
|
+
var result = getStringHashCode(this.e2r_1);
|
|
1111
|
+
result = imul(result, 31) + hashCode(this.f2r_1) | 0;
|
|
1112
1112
|
return result;
|
|
1113
1113
|
};
|
|
1114
1114
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1117,9 +1117,9 @@
|
|
|
1117
1117
|
if (!(other instanceof HeaderValue))
|
|
1118
1118
|
return false;
|
|
1119
1119
|
var tmp0_other_with_cast = other instanceof HeaderValue ? other : THROW_CCE();
|
|
1120
|
-
if (!(this.
|
|
1120
|
+
if (!(this.e2r_1 === tmp0_other_with_cast.e2r_1))
|
|
1121
1121
|
return false;
|
|
1122
|
-
if (!equals_0(this.
|
|
1122
|
+
if (!equals_0(this.f2r_1, tmp0_other_with_cast.f2r_1))
|
|
1123
1123
|
return false;
|
|
1124
1124
|
return true;
|
|
1125
1125
|
};
|
|
@@ -1139,20 +1139,20 @@
|
|
|
1139
1139
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1140
1140
|
}
|
|
1141
1141
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1144
|
-
this.
|
|
1142
|
+
this.a2r_1 = name;
|
|
1143
|
+
this.b2r_1 = value;
|
|
1144
|
+
this.c2r_1 = escapeValue;
|
|
1145
1145
|
}
|
|
1146
1146
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1147
1147
|
var tmp;
|
|
1148
1148
|
var tmp_0;
|
|
1149
1149
|
if (other instanceof HeaderValueParam) {
|
|
1150
|
-
tmp_0 = equals(other.
|
|
1150
|
+
tmp_0 = equals(other.a2r_1, this.a2r_1, true);
|
|
1151
1151
|
} else {
|
|
1152
1152
|
tmp_0 = false;
|
|
1153
1153
|
}
|
|
1154
1154
|
if (tmp_0) {
|
|
1155
|
-
tmp = equals(other.
|
|
1155
|
+
tmp = equals(other.b2r_1, this.b2r_1, true);
|
|
1156
1156
|
} else {
|
|
1157
1157
|
tmp = false;
|
|
1158
1158
|
}
|
|
@@ -1161,24 +1161,24 @@
|
|
|
1161
1161
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1162
1162
|
// Inline function 'kotlin.text.lowercase' call
|
|
1163
1163
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1164
|
-
var tmp$ret$1 = this.
|
|
1164
|
+
var tmp$ret$1 = this.a2r_1.toLowerCase();
|
|
1165
1165
|
var result = getStringHashCode(tmp$ret$1);
|
|
1166
1166
|
var tmp = result;
|
|
1167
1167
|
var tmp_0 = imul(31, result);
|
|
1168
1168
|
// Inline function 'kotlin.text.lowercase' call
|
|
1169
1169
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1170
|
-
var tmp$ret$3 = this.
|
|
1170
|
+
var tmp$ret$3 = this.b2r_1.toLowerCase();
|
|
1171
1171
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1172
1172
|
return result;
|
|
1173
1173
|
};
|
|
1174
1174
|
protoOf(HeaderValueParam).ig = function () {
|
|
1175
|
-
return this.
|
|
1175
|
+
return this.a2r_1;
|
|
1176
1176
|
};
|
|
1177
1177
|
protoOf(HeaderValueParam).jg = function () {
|
|
1178
|
-
return this.
|
|
1178
|
+
return this.b2r_1;
|
|
1179
1179
|
};
|
|
1180
1180
|
protoOf(HeaderValueParam).toString = function () {
|
|
1181
|
-
return 'HeaderValueParam(name=' + this.
|
|
1181
|
+
return 'HeaderValueParam(name=' + this.a2r_1 + ', value=' + this.b2r_1 + ', escapeValue=' + this.c2r_1 + ')';
|
|
1182
1182
|
};
|
|
1183
1183
|
function parseHeaderValue(text) {
|
|
1184
1184
|
return parseHeaderValue_0(text, false);
|
|
@@ -1302,16 +1302,16 @@
|
|
|
1302
1302
|
return position === _this__u8e3s4.length || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(59) || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(44);
|
|
1303
1303
|
}
|
|
1304
1304
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1305
|
-
this.
|
|
1305
|
+
this.k2x_1 = function_0;
|
|
1306
1306
|
}
|
|
1307
1307
|
protoOf(sam$kotlin_Comparator$0).zd = function (a, b) {
|
|
1308
|
-
return this.
|
|
1308
|
+
return this.k2x_1(a, b);
|
|
1309
1309
|
};
|
|
1310
1310
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1311
1311
|
return this.zd(a, b);
|
|
1312
1312
|
};
|
|
1313
1313
|
protoOf(sam$kotlin_Comparator$0).d3 = function () {
|
|
1314
|
-
return this.
|
|
1314
|
+
return this.k2x_1;
|
|
1315
1315
|
};
|
|
1316
1316
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1317
1317
|
var tmp;
|
|
@@ -1341,8 +1341,8 @@
|
|
|
1341
1341
|
}
|
|
1342
1342
|
function parseAndSortHeader$lambda(a, b) {
|
|
1343
1343
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1344
|
-
var tmp = b.
|
|
1345
|
-
var tmp$ret$1 = a.
|
|
1344
|
+
var tmp = b.g2r_1;
|
|
1345
|
+
var tmp$ret$1 = a.g2r_1;
|
|
1346
1346
|
return compareValues(tmp, tmp$ret$1);
|
|
1347
1347
|
}
|
|
1348
1348
|
function parseHeaderValue$lambda() {
|
|
@@ -1355,112 +1355,113 @@
|
|
|
1355
1355
|
}
|
|
1356
1356
|
function HttpHeaders() {
|
|
1357
1357
|
HttpHeaders_instance = this;
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1445
|
-
this.
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1358
|
+
this.l2t_1 = 'Accept';
|
|
1359
|
+
this.m2t_1 = 'Accept-Charset';
|
|
1360
|
+
this.n2t_1 = 'Accept-Encoding';
|
|
1361
|
+
this.o2t_1 = 'Accept-Language';
|
|
1362
|
+
this.p2t_1 = 'Accept-Ranges';
|
|
1363
|
+
this.q2t_1 = 'Age';
|
|
1364
|
+
this.r2t_1 = 'Allow';
|
|
1365
|
+
this.s2t_1 = 'ALPN';
|
|
1366
|
+
this.t2t_1 = 'Authentication-Info';
|
|
1367
|
+
this.u2t_1 = 'Authorization';
|
|
1368
|
+
this.v2t_1 = 'Cache-Control';
|
|
1369
|
+
this.w2t_1 = 'Connection';
|
|
1370
|
+
this.x2t_1 = 'Content-Disposition';
|
|
1371
|
+
this.y2t_1 = 'Content-Encoding';
|
|
1372
|
+
this.z2t_1 = 'Content-Language';
|
|
1373
|
+
this.a2u_1 = 'Content-Length';
|
|
1374
|
+
this.b2u_1 = 'Content-Location';
|
|
1375
|
+
this.c2u_1 = 'Content-Range';
|
|
1376
|
+
this.d2u_1 = 'Content-Type';
|
|
1377
|
+
this.e2u_1 = 'Cookie';
|
|
1378
|
+
this.f2u_1 = 'DASL';
|
|
1379
|
+
this.g2u_1 = 'Date';
|
|
1380
|
+
this.h2u_1 = 'DAV';
|
|
1381
|
+
this.i2u_1 = 'Depth';
|
|
1382
|
+
this.j2u_1 = 'Destination';
|
|
1383
|
+
this.k2u_1 = 'ETag';
|
|
1384
|
+
this.l2u_1 = 'Expect';
|
|
1385
|
+
this.m2u_1 = 'Expires';
|
|
1386
|
+
this.n2u_1 = 'From';
|
|
1387
|
+
this.o2u_1 = 'Forwarded';
|
|
1388
|
+
this.p2u_1 = 'Host';
|
|
1389
|
+
this.q2u_1 = 'HTTP2-Settings';
|
|
1390
|
+
this.r2u_1 = 'If';
|
|
1391
|
+
this.s2u_1 = 'If-Match';
|
|
1392
|
+
this.t2u_1 = 'If-Modified-Since';
|
|
1393
|
+
this.u2u_1 = 'If-None-Match';
|
|
1394
|
+
this.v2u_1 = 'If-Range';
|
|
1395
|
+
this.w2u_1 = 'If-Schedule-Tag-Match';
|
|
1396
|
+
this.x2u_1 = 'If-Unmodified-Since';
|
|
1397
|
+
this.y2u_1 = 'Last-Modified';
|
|
1398
|
+
this.z2u_1 = 'Location';
|
|
1399
|
+
this.a2v_1 = 'Lock-Token';
|
|
1400
|
+
this.b2v_1 = 'Link';
|
|
1401
|
+
this.c2v_1 = 'Max-Forwards';
|
|
1402
|
+
this.d2v_1 = 'MIME-Version';
|
|
1403
|
+
this.e2v_1 = 'Ordering-Type';
|
|
1404
|
+
this.f2v_1 = 'Origin';
|
|
1405
|
+
this.g2v_1 = 'Overwrite';
|
|
1406
|
+
this.h2v_1 = 'Position';
|
|
1407
|
+
this.i2v_1 = 'Pragma';
|
|
1408
|
+
this.j2v_1 = 'Prefer';
|
|
1409
|
+
this.k2v_1 = 'Preference-Applied';
|
|
1410
|
+
this.l2v_1 = 'Proxy-Authenticate';
|
|
1411
|
+
this.m2v_1 = 'Proxy-Authentication-Info';
|
|
1412
|
+
this.n2v_1 = 'Proxy-Authorization';
|
|
1413
|
+
this.o2v_1 = 'Public-Key-Pins';
|
|
1414
|
+
this.p2v_1 = 'Public-Key-Pins-Report-Only';
|
|
1415
|
+
this.q2v_1 = 'Range';
|
|
1416
|
+
this.r2v_1 = 'Referer';
|
|
1417
|
+
this.s2v_1 = 'Retry-After';
|
|
1418
|
+
this.t2v_1 = 'Schedule-Reply';
|
|
1419
|
+
this.u2v_1 = 'Schedule-Tag';
|
|
1420
|
+
this.v2v_1 = 'Sec-WebSocket-Accept';
|
|
1421
|
+
this.w2v_1 = 'Sec-WebSocket-Extensions';
|
|
1422
|
+
this.x2v_1 = 'Sec-WebSocket-Key';
|
|
1423
|
+
this.y2v_1 = 'Sec-WebSocket-Protocol';
|
|
1424
|
+
this.z2v_1 = 'Sec-WebSocket-Version';
|
|
1425
|
+
this.a2w_1 = 'Server';
|
|
1426
|
+
this.b2w_1 = 'Set-Cookie';
|
|
1427
|
+
this.c2w_1 = 'SLUG';
|
|
1428
|
+
this.d2w_1 = 'Strict-Transport-Security';
|
|
1429
|
+
this.e2w_1 = 'TE';
|
|
1430
|
+
this.f2w_1 = 'Timeout';
|
|
1431
|
+
this.g2w_1 = 'Trailer';
|
|
1432
|
+
this.h2w_1 = 'Transfer-Encoding';
|
|
1433
|
+
this.i2w_1 = 'Upgrade';
|
|
1434
|
+
this.j2w_1 = 'User-Agent';
|
|
1435
|
+
this.k2w_1 = 'Vary';
|
|
1436
|
+
this.l2w_1 = 'Via';
|
|
1437
|
+
this.m2w_1 = 'Warning';
|
|
1438
|
+
this.n2w_1 = 'WWW-Authenticate';
|
|
1439
|
+
this.o2w_1 = 'Access-Control-Allow-Origin';
|
|
1440
|
+
this.p2w_1 = 'Access-Control-Allow-Methods';
|
|
1441
|
+
this.q2w_1 = 'Access-Control-Allow-Credentials';
|
|
1442
|
+
this.r2w_1 = 'Access-Control-Allow-Headers';
|
|
1443
|
+
this.s2w_1 = 'Access-Control-Request-Method';
|
|
1444
|
+
this.t2w_1 = 'Access-Control-Request-Headers';
|
|
1445
|
+
this.u2w_1 = 'Access-Control-Expose-Headers';
|
|
1446
|
+
this.v2w_1 = 'Access-Control-Max-Age';
|
|
1447
|
+
this.w2w_1 = 'X-Http-Method-Override';
|
|
1448
|
+
this.x2w_1 = 'X-Forwarded-Host';
|
|
1449
|
+
this.y2w_1 = 'X-Forwarded-Server';
|
|
1450
|
+
this.z2w_1 = 'X-Forwarded-Proto';
|
|
1451
|
+
this.a2x_1 = 'X-Forwarded-For';
|
|
1452
|
+
this.b2x_1 = 'X-Forwarded-Port';
|
|
1453
|
+
this.c2x_1 = 'X-Request-ID';
|
|
1454
|
+
this.d2x_1 = 'X-Correlation-ID';
|
|
1455
|
+
this.e2x_1 = 'X-Total-Count';
|
|
1456
|
+
this.f2x_1 = 'Last-Event-ID';
|
|
1456
1457
|
var tmp = this;
|
|
1457
1458
|
// Inline function 'kotlin.arrayOf' call
|
|
1458
1459
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1459
1460
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1460
|
-
tmp.
|
|
1461
|
-
this.
|
|
1461
|
+
tmp.g2x_1 = [this.h2w_1, this.i2w_1];
|
|
1462
|
+
this.h2x_1 = asList(this.g2x_1);
|
|
1462
1463
|
}
|
|
1463
|
-
protoOf(HttpHeaders).
|
|
1464
|
+
protoOf(HttpHeaders).i2x = function (name) {
|
|
1464
1465
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1465
1466
|
var index = 0;
|
|
1466
1467
|
var inductionVariable = 0;
|
|
@@ -1474,7 +1475,7 @@
|
|
|
1474
1475
|
}
|
|
1475
1476
|
}
|
|
1476
1477
|
};
|
|
1477
|
-
protoOf(HttpHeaders).
|
|
1478
|
+
protoOf(HttpHeaders).j2x = function (value) {
|
|
1478
1479
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1479
1480
|
var index = 0;
|
|
1480
1481
|
var inductionVariable = 0;
|
|
@@ -1508,8 +1509,8 @@
|
|
|
1508
1509
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1509
1510
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1510
1511
|
captureStack(this, IllegalHeaderNameException);
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1512
|
+
this.l2x_1 = headerName;
|
|
1513
|
+
this.m2x_1 = position;
|
|
1513
1514
|
}
|
|
1514
1515
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1515
1516
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1518,15 +1519,15 @@
|
|
|
1518
1519
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1519
1520
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1520
1521
|
captureStack(this, IllegalHeaderValueException);
|
|
1521
|
-
this.
|
|
1522
|
-
this.
|
|
1522
|
+
this.n2x_1 = headerValue;
|
|
1523
|
+
this.o2x_1 = position;
|
|
1523
1524
|
}
|
|
1524
1525
|
function contentLength(_this__u8e3s4) {
|
|
1525
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1526
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2x().r2k(HttpHeaders_getInstance().a2u_1);
|
|
1526
1527
|
return tmp0_safe_receiver == null ? null : toLong(tmp0_safe_receiver);
|
|
1527
1528
|
}
|
|
1528
1529
|
function contentType(_this__u8e3s4) {
|
|
1529
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1530
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2x().r2k(HttpHeaders_getInstance().d2u_1);
|
|
1530
1531
|
var tmp;
|
|
1531
1532
|
if (tmp0_safe_receiver == null) {
|
|
1532
1533
|
tmp = null;
|
|
@@ -1537,7 +1538,7 @@
|
|
|
1537
1538
|
return tmp;
|
|
1538
1539
|
}
|
|
1539
1540
|
function contentType_0(_this__u8e3s4) {
|
|
1540
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1541
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2x().r2k(HttpHeaders_getInstance().d2u_1);
|
|
1541
1542
|
var tmp;
|
|
1542
1543
|
if (tmp0_safe_receiver == null) {
|
|
1543
1544
|
tmp = null;
|
|
@@ -1558,14 +1559,14 @@
|
|
|
1558
1559
|
var REQUESTS_WITHOUT_BODY;
|
|
1559
1560
|
function Companion_2() {
|
|
1560
1561
|
Companion_instance_2 = this;
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1562
|
+
this.q2x_1 = new HttpMethod('GET');
|
|
1563
|
+
this.r2x_1 = new HttpMethod('POST');
|
|
1564
|
+
this.s2x_1 = new HttpMethod('PUT');
|
|
1565
|
+
this.t2x_1 = new HttpMethod('PATCH');
|
|
1566
|
+
this.u2x_1 = new HttpMethod('DELETE');
|
|
1567
|
+
this.v2x_1 = new HttpMethod('HEAD');
|
|
1568
|
+
this.w2x_1 = new HttpMethod('OPTIONS');
|
|
1569
|
+
this.x2x_1 = listOf([this.q2x_1, this.r2x_1, this.s2x_1, this.t2x_1, this.u2x_1, this.v2x_1, this.w2x_1]);
|
|
1569
1570
|
}
|
|
1570
1571
|
var Companion_instance_2;
|
|
1571
1572
|
function Companion_getInstance_2() {
|
|
@@ -1575,13 +1576,13 @@
|
|
|
1575
1576
|
}
|
|
1576
1577
|
function HttpMethod(value) {
|
|
1577
1578
|
Companion_getInstance_2();
|
|
1578
|
-
this.
|
|
1579
|
+
this.y2x_1 = value;
|
|
1579
1580
|
}
|
|
1580
1581
|
protoOf(HttpMethod).toString = function () {
|
|
1581
|
-
return this.
|
|
1582
|
+
return this.y2x_1;
|
|
1582
1583
|
};
|
|
1583
1584
|
protoOf(HttpMethod).hashCode = function () {
|
|
1584
|
-
return getStringHashCode(this.
|
|
1585
|
+
return getStringHashCode(this.y2x_1);
|
|
1585
1586
|
};
|
|
1586
1587
|
protoOf(HttpMethod).equals = function (other) {
|
|
1587
1588
|
if (this === other)
|
|
@@ -1589,7 +1590,7 @@
|
|
|
1589
1590
|
if (!(other instanceof HttpMethod))
|
|
1590
1591
|
return false;
|
|
1591
1592
|
var tmp0_other_with_cast = other instanceof HttpMethod ? other : THROW_CCE();
|
|
1592
|
-
if (!(this.
|
|
1593
|
+
if (!(this.y2x_1 === tmp0_other_with_cast.y2x_1))
|
|
1593
1594
|
return false;
|
|
1594
1595
|
return true;
|
|
1595
1596
|
};
|
|
@@ -1601,16 +1602,17 @@
|
|
|
1601
1602
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1602
1603
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1603
1604
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1604
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1605
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().q2x_1, Companion_getInstance_2().v2x_1, Companion_getInstance_2().w2x_1, new HttpMethod('TRACE')]);
|
|
1605
1606
|
}
|
|
1606
1607
|
}
|
|
1607
1608
|
function Companion_3() {
|
|
1608
1609
|
Companion_instance_3 = this;
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1610
|
+
this.z2x_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1611
|
+
this.a2y_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1612
|
+
this.b2y_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1613
|
+
this.c2y_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1614
|
+
this.d2y_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1615
|
+
this.e2y_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1614
1616
|
}
|
|
1615
1617
|
var Companion_instance_3;
|
|
1616
1618
|
function Companion_getInstance_3() {
|
|
@@ -1620,17 +1622,17 @@
|
|
|
1620
1622
|
}
|
|
1621
1623
|
function HttpProtocolVersion(name, major, minor) {
|
|
1622
1624
|
Companion_getInstance_3();
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1625
|
+
this.f2y_1 = name;
|
|
1626
|
+
this.g2y_1 = major;
|
|
1627
|
+
this.h2y_1 = minor;
|
|
1626
1628
|
}
|
|
1627
1629
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1628
|
-
return this.
|
|
1630
|
+
return this.f2y_1 + '/' + this.g2y_1 + '.' + this.h2y_1;
|
|
1629
1631
|
};
|
|
1630
1632
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1631
|
-
var result = getStringHashCode(this.
|
|
1632
|
-
result = imul(result, 31) + this.
|
|
1633
|
-
result = imul(result, 31) + this.
|
|
1633
|
+
var result = getStringHashCode(this.f2y_1);
|
|
1634
|
+
result = imul(result, 31) + this.g2y_1 | 0;
|
|
1635
|
+
result = imul(result, 31) + this.h2y_1 | 0;
|
|
1634
1636
|
return result;
|
|
1635
1637
|
};
|
|
1636
1638
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1639,83 +1641,83 @@
|
|
|
1639
1641
|
if (!(other instanceof HttpProtocolVersion))
|
|
1640
1642
|
return false;
|
|
1641
1643
|
var tmp0_other_with_cast = other instanceof HttpProtocolVersion ? other : THROW_CCE();
|
|
1642
|
-
if (!(this.
|
|
1644
|
+
if (!(this.f2y_1 === tmp0_other_with_cast.f2y_1))
|
|
1643
1645
|
return false;
|
|
1644
|
-
if (!(this.
|
|
1646
|
+
if (!(this.g2y_1 === tmp0_other_with_cast.g2y_1))
|
|
1645
1647
|
return false;
|
|
1646
|
-
if (!(this.
|
|
1648
|
+
if (!(this.h2y_1 === tmp0_other_with_cast.h2y_1))
|
|
1647
1649
|
return false;
|
|
1648
1650
|
return true;
|
|
1649
1651
|
};
|
|
1650
1652
|
function Companion_4() {
|
|
1651
1653
|
Companion_instance_4 = this;
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1705
|
-
this.
|
|
1654
|
+
this.i2y_1 = new HttpStatusCode(100, 'Continue');
|
|
1655
|
+
this.j2y_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1656
|
+
this.k2y_1 = new HttpStatusCode(102, 'Processing');
|
|
1657
|
+
this.l2y_1 = new HttpStatusCode(200, 'OK');
|
|
1658
|
+
this.m2y_1 = new HttpStatusCode(201, 'Created');
|
|
1659
|
+
this.n2y_1 = new HttpStatusCode(202, 'Accepted');
|
|
1660
|
+
this.o2y_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1661
|
+
this.p2y_1 = new HttpStatusCode(204, 'No Content');
|
|
1662
|
+
this.q2y_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1663
|
+
this.r2y_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1664
|
+
this.s2y_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1665
|
+
this.t2y_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1666
|
+
this.u2y_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1667
|
+
this.v2y_1 = new HttpStatusCode(302, 'Found');
|
|
1668
|
+
this.w2y_1 = new HttpStatusCode(303, 'See Other');
|
|
1669
|
+
this.x2y_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1670
|
+
this.y2y_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1671
|
+
this.z2y_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1672
|
+
this.a2z_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1673
|
+
this.b2z_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1674
|
+
this.c2z_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1675
|
+
this.d2z_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1676
|
+
this.e2z_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1677
|
+
this.f2z_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1678
|
+
this.g2z_1 = new HttpStatusCode(404, 'Not Found');
|
|
1679
|
+
this.h2z_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1680
|
+
this.i2z_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1681
|
+
this.j2z_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1682
|
+
this.k2z_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1683
|
+
this.l2z_1 = new HttpStatusCode(409, 'Conflict');
|
|
1684
|
+
this.m2z_1 = new HttpStatusCode(410, 'Gone');
|
|
1685
|
+
this.n2z_1 = new HttpStatusCode(411, 'Length Required');
|
|
1686
|
+
this.o2z_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1687
|
+
this.p2z_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1688
|
+
this.q2z_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1689
|
+
this.r2z_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1690
|
+
this.s2z_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1691
|
+
this.t2z_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1692
|
+
this.u2z_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1693
|
+
this.v2z_1 = new HttpStatusCode(423, 'Locked');
|
|
1694
|
+
this.w2z_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1695
|
+
this.x2z_1 = new HttpStatusCode(425, 'Too Early');
|
|
1696
|
+
this.y2z_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1697
|
+
this.z2z_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1698
|
+
this.a30_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1699
|
+
this.b30_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1700
|
+
this.c30_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1701
|
+
this.d30_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1702
|
+
this.e30_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1703
|
+
this.f30_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1704
|
+
this.g30_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1705
|
+
this.h30_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1706
|
+
this.i30_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1707
|
+
this.j30_1 = allStatusCodes();
|
|
1706
1708
|
var tmp = this;
|
|
1707
1709
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1708
|
-
var this_0 = this.
|
|
1710
|
+
var this_0 = this.j30_1;
|
|
1709
1711
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1710
1712
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1711
1713
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1712
1714
|
var _iterator__ex2g4s = this_0.r();
|
|
1713
1715
|
while (_iterator__ex2g4s.s()) {
|
|
1714
1716
|
var element = _iterator__ex2g4s.t();
|
|
1715
|
-
var tmp$ret$0 = element.
|
|
1717
|
+
var tmp$ret$0 = element.l30_1;
|
|
1716
1718
|
destination.g2(tmp$ret$0, element);
|
|
1717
1719
|
}
|
|
1718
|
-
tmp.
|
|
1720
|
+
tmp.k30_1 = destination;
|
|
1719
1721
|
}
|
|
1720
1722
|
var Companion_instance_4;
|
|
1721
1723
|
function Companion_getInstance_4() {
|
|
@@ -1725,36 +1727,36 @@
|
|
|
1725
1727
|
}
|
|
1726
1728
|
function HttpStatusCode(value, description) {
|
|
1727
1729
|
Companion_getInstance_4();
|
|
1728
|
-
this.
|
|
1729
|
-
this.
|
|
1730
|
+
this.l30_1 = value;
|
|
1731
|
+
this.m30_1 = description;
|
|
1730
1732
|
}
|
|
1731
1733
|
protoOf(HttpStatusCode).toString = function () {
|
|
1732
|
-
return '' + this.
|
|
1734
|
+
return '' + this.l30_1 + ' ' + this.m30_1;
|
|
1733
1735
|
};
|
|
1734
1736
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1735
1737
|
var tmp;
|
|
1736
1738
|
if (other instanceof HttpStatusCode) {
|
|
1737
|
-
tmp = other.
|
|
1739
|
+
tmp = other.l30_1 === this.l30_1;
|
|
1738
1740
|
} else {
|
|
1739
1741
|
tmp = false;
|
|
1740
1742
|
}
|
|
1741
1743
|
return tmp;
|
|
1742
1744
|
};
|
|
1743
1745
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1744
|
-
return this.
|
|
1746
|
+
return this.l30_1;
|
|
1745
1747
|
};
|
|
1746
|
-
protoOf(HttpStatusCode).
|
|
1747
|
-
return this.
|
|
1748
|
+
protoOf(HttpStatusCode).n30 = function (other) {
|
|
1749
|
+
return this.l30_1 - other.l30_1 | 0;
|
|
1748
1750
|
};
|
|
1749
1751
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1750
|
-
return this.
|
|
1752
|
+
return this.n30(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1751
1753
|
};
|
|
1752
1754
|
function allStatusCodes() {
|
|
1753
|
-
return listOf([Companion_getInstance_4().
|
|
1755
|
+
return listOf([Companion_getInstance_4().i2y_1, Companion_getInstance_4().j2y_1, Companion_getInstance_4().k2y_1, Companion_getInstance_4().l2y_1, Companion_getInstance_4().m2y_1, Companion_getInstance_4().n2y_1, Companion_getInstance_4().o2y_1, Companion_getInstance_4().p2y_1, Companion_getInstance_4().q2y_1, Companion_getInstance_4().r2y_1, Companion_getInstance_4().s2y_1, Companion_getInstance_4().t2y_1, Companion_getInstance_4().u2y_1, Companion_getInstance_4().v2y_1, Companion_getInstance_4().w2y_1, Companion_getInstance_4().x2y_1, Companion_getInstance_4().y2y_1, Companion_getInstance_4().z2y_1, Companion_getInstance_4().a2z_1, Companion_getInstance_4().b2z_1, Companion_getInstance_4().c2z_1, Companion_getInstance_4().d2z_1, Companion_getInstance_4().e2z_1, Companion_getInstance_4().f2z_1, Companion_getInstance_4().g2z_1, Companion_getInstance_4().h2z_1, Companion_getInstance_4().i2z_1, Companion_getInstance_4().j2z_1, Companion_getInstance_4().k2z_1, Companion_getInstance_4().l2z_1, Companion_getInstance_4().m2z_1, Companion_getInstance_4().n2z_1, Companion_getInstance_4().o2z_1, Companion_getInstance_4().p2z_1, Companion_getInstance_4().q2z_1, Companion_getInstance_4().r2z_1, Companion_getInstance_4().s2z_1, Companion_getInstance_4().t2z_1, Companion_getInstance_4().u2z_1, Companion_getInstance_4().v2z_1, Companion_getInstance_4().w2z_1, Companion_getInstance_4().x2z_1, Companion_getInstance_4().y2z_1, Companion_getInstance_4().z2z_1, Companion_getInstance_4().a30_1, Companion_getInstance_4().b30_1, Companion_getInstance_4().c30_1, Companion_getInstance_4().d30_1, Companion_getInstance_4().e30_1, Companion_getInstance_4().f30_1, Companion_getInstance_4().g30_1, Companion_getInstance_4().h30_1, Companion_getInstance_4().i30_1]);
|
|
1754
1756
|
}
|
|
1755
1757
|
function Companion_5() {
|
|
1756
1758
|
Companion_instance_5 = this;
|
|
1757
|
-
this.
|
|
1759
|
+
this.o30_1 = EmptyParameters_instance;
|
|
1758
1760
|
}
|
|
1759
1761
|
var Companion_instance_5;
|
|
1760
1762
|
function Companion_getInstance_5() {
|
|
@@ -1766,23 +1768,23 @@
|
|
|
1766
1768
|
}
|
|
1767
1769
|
function EmptyParameters() {
|
|
1768
1770
|
}
|
|
1769
|
-
protoOf(EmptyParameters).
|
|
1771
|
+
protoOf(EmptyParameters).c2m = function () {
|
|
1770
1772
|
return true;
|
|
1771
1773
|
};
|
|
1772
|
-
protoOf(EmptyParameters).
|
|
1774
|
+
protoOf(EmptyParameters).d2m = function (name) {
|
|
1773
1775
|
return null;
|
|
1774
1776
|
};
|
|
1775
|
-
protoOf(EmptyParameters).
|
|
1777
|
+
protoOf(EmptyParameters).e2m = function () {
|
|
1776
1778
|
return emptySet();
|
|
1777
1779
|
};
|
|
1778
|
-
protoOf(EmptyParameters).
|
|
1780
|
+
protoOf(EmptyParameters).a2m = function () {
|
|
1779
1781
|
return emptySet();
|
|
1780
1782
|
};
|
|
1781
1783
|
protoOf(EmptyParameters).j = function () {
|
|
1782
1784
|
return true;
|
|
1783
1785
|
};
|
|
1784
1786
|
protoOf(EmptyParameters).toString = function () {
|
|
1785
|
-
return 'Parameters ' + toString(this.
|
|
1787
|
+
return 'Parameters ' + toString(this.a2m());
|
|
1786
1788
|
};
|
|
1787
1789
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1788
1790
|
var tmp;
|
|
@@ -1805,15 +1807,15 @@
|
|
|
1805
1807
|
size = size === VOID ? 8 : size;
|
|
1806
1808
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1807
1809
|
}
|
|
1808
|
-
protoOf(ParametersBuilderImpl).
|
|
1809
|
-
return new ParametersImpl(this.
|
|
1810
|
+
protoOf(ParametersBuilderImpl).k2t = function () {
|
|
1811
|
+
return new ParametersImpl(this.h2m_1);
|
|
1810
1812
|
};
|
|
1811
1813
|
function ParametersImpl(values) {
|
|
1812
1814
|
values = values === VOID ? emptyMap() : values;
|
|
1813
1815
|
StringValuesImpl.call(this, true, values);
|
|
1814
1816
|
}
|
|
1815
1817
|
protoOf(ParametersImpl).toString = function () {
|
|
1816
|
-
return 'Parameters ' + toString(this.
|
|
1818
|
+
return 'Parameters ' + toString(this.a2m());
|
|
1817
1819
|
};
|
|
1818
1820
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1819
1821
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1821,14 +1823,14 @@
|
|
|
1821
1823
|
decode = decode === VOID ? true : decode;
|
|
1822
1824
|
var tmp;
|
|
1823
1825
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1824
|
-
tmp = Companion_getInstance_5().
|
|
1826
|
+
tmp = Companion_getInstance_5().o30_1;
|
|
1825
1827
|
} else {
|
|
1826
1828
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1827
1829
|
Companion_getInstance_5();
|
|
1828
1830
|
// Inline function 'kotlin.apply' call
|
|
1829
1831
|
var this_0 = ParametersBuilder();
|
|
1830
1832
|
parse(this_0, query, startIndex, limit, decode);
|
|
1831
|
-
tmp = this_0.
|
|
1833
|
+
tmp = this_0.k2t();
|
|
1832
1834
|
}
|
|
1833
1835
|
return tmp;
|
|
1834
1836
|
}
|
|
@@ -1869,7 +1871,7 @@
|
|
|
1869
1871
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1870
1872
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1871
1873
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1872
|
-
_this__u8e3s4.
|
|
1874
|
+
_this__u8e3s4.b2m(name, emptyList());
|
|
1873
1875
|
}
|
|
1874
1876
|
return Unit_instance;
|
|
1875
1877
|
}
|
|
@@ -1880,7 +1882,7 @@
|
|
|
1880
1882
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1881
1883
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1882
1884
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1883
|
-
_this__u8e3s4.
|
|
1885
|
+
_this__u8e3s4.z2l(name_0, value);
|
|
1884
1886
|
}
|
|
1885
1887
|
}
|
|
1886
1888
|
function trimStart(start, end, query) {
|
|
@@ -1900,25 +1902,25 @@
|
|
|
1900
1902
|
function applyOrigin($this) {
|
|
1901
1903
|
var tmp;
|
|
1902
1904
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1903
|
-
var this_0 = $this.
|
|
1905
|
+
var this_0 = $this.r30_1;
|
|
1904
1906
|
if (charSequenceLength(this_0) > 0) {
|
|
1905
1907
|
tmp = true;
|
|
1906
1908
|
} else {
|
|
1907
|
-
tmp = $this.
|
|
1909
|
+
tmp = $this.d31().b31_1 === 'file';
|
|
1908
1910
|
}
|
|
1909
1911
|
if (tmp)
|
|
1910
1912
|
return Unit_instance;
|
|
1911
|
-
$this.
|
|
1912
|
-
if ($this.
|
|
1913
|
-
$this.
|
|
1914
|
-
if ($this.
|
|
1915
|
-
$this.
|
|
1913
|
+
$this.r30_1 = Companion_getInstance_6().x31_1.e31_1;
|
|
1914
|
+
if ($this.u30_1 == null)
|
|
1915
|
+
$this.u30_1 = Companion_getInstance_6().x31_1.p31_1;
|
|
1916
|
+
if ($this.t30_1 === 0) {
|
|
1917
|
+
$this.z31(Companion_getInstance_6().x31_1.f31_1);
|
|
1916
1918
|
}
|
|
1917
1919
|
}
|
|
1918
1920
|
function Companion_6() {
|
|
1919
1921
|
Companion_instance_6 = this;
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
+
this.x31_1 = Url_0(get_origin(this));
|
|
1923
|
+
this.y31_1 = 256;
|
|
1922
1924
|
}
|
|
1923
1925
|
var Companion_instance_6;
|
|
1924
1926
|
function Companion_getInstance_6() {
|
|
@@ -1934,18 +1936,18 @@
|
|
|
1934
1936
|
user = user === VOID ? null : user;
|
|
1935
1937
|
password = password === VOID ? null : password;
|
|
1936
1938
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1937
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1939
|
+
parameters = parameters === VOID ? Companion_getInstance_5().o30_1 : parameters;
|
|
1938
1940
|
fragment = fragment === VOID ? '' : fragment;
|
|
1939
1941
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1942
|
+
this.r30_1 = host;
|
|
1943
|
+
this.s30_1 = trailingQuery;
|
|
1944
|
+
this.t30_1 = port;
|
|
1945
|
+
this.u30_1 = protocol;
|
|
1944
1946
|
var tmp = this;
|
|
1945
|
-
tmp.
|
|
1947
|
+
tmp.v30_1 = user == null ? null : encodeURLParameter(user);
|
|
1946
1948
|
var tmp_0 = this;
|
|
1947
|
-
tmp_0.
|
|
1948
|
-
this.
|
|
1949
|
+
tmp_0.w30_1 = password == null ? null : encodeURLParameter(password);
|
|
1950
|
+
this.x30_1 = encodeURLQueryComponent(fragment);
|
|
1949
1951
|
var tmp_1 = this;
|
|
1950
1952
|
// Inline function 'kotlin.collections.map' call
|
|
1951
1953
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1956,43 +1958,43 @@
|
|
|
1956
1958
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1957
1959
|
destination.p(tmp$ret$0);
|
|
1958
1960
|
}
|
|
1959
|
-
tmp_1.
|
|
1960
|
-
this.
|
|
1961
|
-
this.
|
|
1961
|
+
tmp_1.y30_1 = destination;
|
|
1962
|
+
this.z30_1 = encodeParameters(parameters);
|
|
1963
|
+
this.a31_1 = new UrlDecodedParametersBuilder(this.z30_1);
|
|
1962
1964
|
}
|
|
1963
|
-
protoOf(URLBuilder).
|
|
1965
|
+
protoOf(URLBuilder).z31 = function (value) {
|
|
1964
1966
|
// Inline function 'kotlin.require' call
|
|
1965
1967
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1966
1968
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1967
1969
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1968
1970
|
}
|
|
1969
|
-
this.
|
|
1971
|
+
this.t30_1 = value;
|
|
1970
1972
|
};
|
|
1971
|
-
protoOf(URLBuilder).
|
|
1972
|
-
this.
|
|
1973
|
+
protoOf(URLBuilder).a32 = function (value) {
|
|
1974
|
+
this.u30_1 = value;
|
|
1973
1975
|
};
|
|
1974
|
-
protoOf(URLBuilder).
|
|
1975
|
-
var tmp0_elvis_lhs = this.
|
|
1976
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1976
|
+
protoOf(URLBuilder).d31 = function () {
|
|
1977
|
+
var tmp0_elvis_lhs = this.u30_1;
|
|
1978
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().b32_1 : tmp0_elvis_lhs;
|
|
1977
1979
|
};
|
|
1978
|
-
protoOf(URLBuilder).
|
|
1980
|
+
protoOf(URLBuilder).h32 = function (value) {
|
|
1979
1981
|
var tmp = this;
|
|
1980
|
-
tmp.
|
|
1982
|
+
tmp.v30_1 = value == null ? null : encodeURLParameter(value);
|
|
1981
1983
|
};
|
|
1982
|
-
protoOf(URLBuilder).
|
|
1983
|
-
var tmp0_safe_receiver = this.
|
|
1984
|
+
protoOf(URLBuilder).i32 = function () {
|
|
1985
|
+
var tmp0_safe_receiver = this.v30_1;
|
|
1984
1986
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1985
1987
|
};
|
|
1986
|
-
protoOf(URLBuilder).
|
|
1987
|
-
var tmp0_safe_receiver = this.
|
|
1988
|
+
protoOf(URLBuilder).j32 = function () {
|
|
1989
|
+
var tmp0_safe_receiver = this.w30_1;
|
|
1988
1990
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1989
1991
|
};
|
|
1990
|
-
protoOf(URLBuilder).
|
|
1991
|
-
return decodeURLQueryComponent(this.
|
|
1992
|
+
protoOf(URLBuilder).k32 = function () {
|
|
1993
|
+
return decodeURLQueryComponent(this.x30_1);
|
|
1992
1994
|
};
|
|
1993
|
-
protoOf(URLBuilder).
|
|
1995
|
+
protoOf(URLBuilder).l32 = function () {
|
|
1994
1996
|
// Inline function 'kotlin.collections.map' call
|
|
1995
|
-
var this_0 = this.
|
|
1997
|
+
var this_0 = this.y30_1;
|
|
1996
1998
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1997
1999
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1998
2000
|
var _iterator__ex2g4s = this_0.r();
|
|
@@ -2003,60 +2005,60 @@
|
|
|
2003
2005
|
}
|
|
2004
2006
|
return destination;
|
|
2005
2007
|
};
|
|
2006
|
-
protoOf(URLBuilder).
|
|
2007
|
-
this.
|
|
2008
|
-
this.
|
|
2008
|
+
protoOf(URLBuilder).m32 = function (value) {
|
|
2009
|
+
this.z30_1 = value;
|
|
2010
|
+
this.a31_1 = new UrlDecodedParametersBuilder(value);
|
|
2009
2011
|
};
|
|
2010
|
-
protoOf(URLBuilder).
|
|
2012
|
+
protoOf(URLBuilder).n32 = function () {
|
|
2011
2013
|
applyOrigin(this);
|
|
2012
2014
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2013
2015
|
};
|
|
2014
2016
|
protoOf(URLBuilder).toString = function () {
|
|
2015
2017
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2016
2018
|
};
|
|
2017
|
-
protoOf(URLBuilder).
|
|
2019
|
+
protoOf(URLBuilder).k2t = function () {
|
|
2018
2020
|
applyOrigin(this);
|
|
2019
|
-
return new Url_1(this.
|
|
2021
|
+
return new Url_1(this.u30_1, this.r30_1, this.t30_1, this.l32(), this.a31_1.k2t(), this.k32(), this.i32(), this.j32(), this.s30_1, this.n32());
|
|
2020
2022
|
};
|
|
2021
2023
|
function get_authority(_this__u8e3s4) {
|
|
2022
2024
|
// Inline function 'kotlin.text.buildString' call
|
|
2023
2025
|
// Inline function 'kotlin.apply' call
|
|
2024
2026
|
var this_0 = StringBuilder_init_$Create$();
|
|
2025
2027
|
this_0.f8(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2026
|
-
this_0.f8(_this__u8e3s4.
|
|
2027
|
-
if (!(_this__u8e3s4.
|
|
2028
|
+
this_0.f8(_this__u8e3s4.r30_1);
|
|
2029
|
+
if (!(_this__u8e3s4.t30_1 === 0) && !(_this__u8e3s4.t30_1 === _this__u8e3s4.d31().c31_1)) {
|
|
2028
2030
|
this_0.f8(':');
|
|
2029
|
-
this_0.f8(_this__u8e3s4.
|
|
2031
|
+
this_0.f8(_this__u8e3s4.t30_1.toString());
|
|
2030
2032
|
}
|
|
2031
2033
|
return this_0.toString();
|
|
2032
2034
|
}
|
|
2033
2035
|
function appendTo(_this__u8e3s4, out) {
|
|
2034
|
-
out.q(_this__u8e3s4.
|
|
2035
|
-
switch (_this__u8e3s4.
|
|
2036
|
+
out.q(_this__u8e3s4.d31().b31_1);
|
|
2037
|
+
switch (_this__u8e3s4.d31().b31_1) {
|
|
2036
2038
|
case 'file':
|
|
2037
|
-
appendFile(out, _this__u8e3s4.
|
|
2039
|
+
appendFile(out, _this__u8e3s4.r30_1, get_encodedPath(_this__u8e3s4));
|
|
2038
2040
|
return out;
|
|
2039
2041
|
case 'mailto':
|
|
2040
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2042
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.r30_1);
|
|
2041
2043
|
return out;
|
|
2042
2044
|
case 'about':
|
|
2043
|
-
appendPayload(out, _this__u8e3s4.
|
|
2045
|
+
appendPayload(out, _this__u8e3s4.r30_1);
|
|
2044
2046
|
return out;
|
|
2045
2047
|
case 'tel':
|
|
2046
|
-
appendPayload(out, _this__u8e3s4.
|
|
2048
|
+
appendPayload(out, _this__u8e3s4.r30_1);
|
|
2047
2049
|
return out;
|
|
2048
2050
|
case 'data':
|
|
2049
|
-
appendPayload(out, _this__u8e3s4.
|
|
2051
|
+
appendPayload(out, _this__u8e3s4.r30_1);
|
|
2050
2052
|
return out;
|
|
2051
2053
|
}
|
|
2052
2054
|
out.q('://');
|
|
2053
2055
|
out.q(get_authority(_this__u8e3s4));
|
|
2054
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2056
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.z30_1, _this__u8e3s4.s30_1);
|
|
2055
2057
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2056
|
-
var this_0 = _this__u8e3s4.
|
|
2058
|
+
var this_0 = _this__u8e3s4.x30_1;
|
|
2057
2059
|
if (charSequenceLength(this_0) > 0) {
|
|
2058
2060
|
out.g8(_Char___init__impl__6a9atx(35));
|
|
2059
|
-
out.q(_this__u8e3s4.
|
|
2061
|
+
out.q(_this__u8e3s4.x30_1);
|
|
2060
2062
|
}
|
|
2061
2063
|
return out;
|
|
2062
2064
|
}
|
|
@@ -2064,7 +2066,7 @@
|
|
|
2064
2066
|
// Inline function 'kotlin.text.buildString' call
|
|
2065
2067
|
// Inline function 'kotlin.apply' call
|
|
2066
2068
|
var this_0 = StringBuilder_init_$Create$();
|
|
2067
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2069
|
+
appendUserAndPassword(this_0, _this__u8e3s4.v30_1, _this__u8e3s4.w30_1);
|
|
2068
2070
|
return this_0.toString();
|
|
2069
2071
|
}
|
|
2070
2072
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2076,10 +2078,10 @@
|
|
|
2076
2078
|
_this__u8e3s4.q(encodedPath);
|
|
2077
2079
|
}
|
|
2078
2080
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2079
|
-
_this__u8e3s4.
|
|
2081
|
+
_this__u8e3s4.y30_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2080
2082
|
}
|
|
2081
2083
|
function get_encodedPath(_this__u8e3s4) {
|
|
2082
|
-
return joinPath(_this__u8e3s4.
|
|
2084
|
+
return joinPath(_this__u8e3s4.y30_1);
|
|
2083
2085
|
}
|
|
2084
2086
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2085
2087
|
_this__u8e3s4.q(':');
|
|
@@ -2115,7 +2117,7 @@
|
|
|
2115
2117
|
var tmp$ret$0 = encodeURLPath(item);
|
|
2116
2118
|
destination.p(tmp$ret$0);
|
|
2117
2119
|
}
|
|
2118
|
-
tmp.
|
|
2120
|
+
tmp.y30_1 = destination;
|
|
2119
2121
|
}
|
|
2120
2122
|
function get_ROOT_PATH() {
|
|
2121
2123
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2182,20 +2184,20 @@
|
|
|
2182
2184
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2183
2185
|
if (schemeLength > 0) {
|
|
2184
2186
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2185
|
-
_this__u8e3s4.
|
|
2187
|
+
_this__u8e3s4.a32(Companion_getInstance_7().o32(scheme));
|
|
2186
2188
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2187
2189
|
}
|
|
2188
|
-
if (_this__u8e3s4.
|
|
2189
|
-
_this__u8e3s4.
|
|
2190
|
+
if (_this__u8e3s4.d31().b31_1 === 'data') {
|
|
2191
|
+
_this__u8e3s4.r30_1 = substring(urlString, startIndex, endIndex);
|
|
2190
2192
|
return _this__u8e3s4;
|
|
2191
2193
|
}
|
|
2192
2194
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2193
2195
|
startIndex = startIndex + slashCount | 0;
|
|
2194
|
-
if (_this__u8e3s4.
|
|
2196
|
+
if (_this__u8e3s4.d31().b31_1 === 'file') {
|
|
2195
2197
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2196
2198
|
return _this__u8e3s4;
|
|
2197
2199
|
}
|
|
2198
|
-
if (_this__u8e3s4.
|
|
2200
|
+
if (_this__u8e3s4.d31().b31_1 === 'mailto') {
|
|
2199
2201
|
// Inline function 'kotlin.require' call
|
|
2200
2202
|
// Inline function 'kotlin.require' call
|
|
2201
2203
|
if (!(slashCount === 0)) {
|
|
@@ -2205,24 +2207,24 @@
|
|
|
2205
2207
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2206
2208
|
return _this__u8e3s4;
|
|
2207
2209
|
}
|
|
2208
|
-
if (_this__u8e3s4.
|
|
2210
|
+
if (_this__u8e3s4.d31().b31_1 === 'about') {
|
|
2209
2211
|
// Inline function 'kotlin.require' call
|
|
2210
2212
|
// Inline function 'kotlin.require' call
|
|
2211
2213
|
if (!(slashCount === 0)) {
|
|
2212
2214
|
var message_0 = 'Failed requirement.';
|
|
2213
2215
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2214
2216
|
}
|
|
2215
|
-
_this__u8e3s4.
|
|
2217
|
+
_this__u8e3s4.r30_1 = substring(urlString, startIndex, endIndex);
|
|
2216
2218
|
return _this__u8e3s4;
|
|
2217
2219
|
}
|
|
2218
|
-
if (_this__u8e3s4.
|
|
2220
|
+
if (_this__u8e3s4.d31().b31_1 === 'tel') {
|
|
2219
2221
|
// Inline function 'kotlin.require' call
|
|
2220
2222
|
// Inline function 'kotlin.require' call
|
|
2221
2223
|
if (!(slashCount === 0)) {
|
|
2222
2224
|
var message_1 = 'Failed requirement.';
|
|
2223
2225
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2224
2226
|
}
|
|
2225
|
-
_this__u8e3s4.
|
|
2227
|
+
_this__u8e3s4.r30_1 = substring(urlString, startIndex, endIndex);
|
|
2226
2228
|
return _this__u8e3s4;
|
|
2227
2229
|
}
|
|
2228
2230
|
if (slashCount >= 2) {
|
|
@@ -2240,10 +2242,10 @@
|
|
|
2240
2242
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2241
2243
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2242
2244
|
if (!(passwordIndex === -1)) {
|
|
2243
|
-
_this__u8e3s4.
|
|
2244
|
-
_this__u8e3s4.
|
|
2245
|
+
_this__u8e3s4.v30_1 = substring(urlString, startIndex, passwordIndex);
|
|
2246
|
+
_this__u8e3s4.w30_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2245
2247
|
} else {
|
|
2246
|
-
_this__u8e3s4.
|
|
2248
|
+
_this__u8e3s4.v30_1 = substring(urlString, startIndex, delimiter);
|
|
2247
2249
|
}
|
|
2248
2250
|
startIndex = delimiter + 1 | 0;
|
|
2249
2251
|
} else {
|
|
@@ -2254,17 +2256,17 @@
|
|
|
2254
2256
|
}
|
|
2255
2257
|
}
|
|
2256
2258
|
if (startIndex >= endIndex) {
|
|
2257
|
-
_this__u8e3s4.
|
|
2259
|
+
_this__u8e3s4.y30_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2258
2260
|
return _this__u8e3s4;
|
|
2259
2261
|
}
|
|
2260
2262
|
var tmp_0 = _this__u8e3s4;
|
|
2261
2263
|
var tmp_1;
|
|
2262
2264
|
if (slashCount === 0) {
|
|
2263
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
2265
|
+
tmp_1 = dropLast(_this__u8e3s4.y30_1, 1);
|
|
2264
2266
|
} else {
|
|
2265
2267
|
tmp_1 = emptyList();
|
|
2266
2268
|
}
|
|
2267
|
-
tmp_0.
|
|
2269
|
+
tmp_0.y30_1 = tmp_1;
|
|
2268
2270
|
// Inline function 'kotlin.takeIf' call
|
|
2269
2271
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2270
2272
|
var tmp_2;
|
|
@@ -2279,9 +2281,9 @@
|
|
|
2279
2281
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2280
2282
|
var tmp_3;
|
|
2281
2283
|
var tmp_4;
|
|
2282
|
-
if (_this__u8e3s4.
|
|
2284
|
+
if (_this__u8e3s4.y30_1.u() === 1) {
|
|
2283
2285
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2284
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2286
|
+
var this_2 = first_0(_this__u8e3s4.y30_1);
|
|
2285
2287
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2286
2288
|
} else {
|
|
2287
2289
|
tmp_4 = false;
|
|
@@ -2289,12 +2291,12 @@
|
|
|
2289
2291
|
if (tmp_4) {
|
|
2290
2292
|
tmp_3 = emptyList();
|
|
2291
2293
|
} else {
|
|
2292
|
-
tmp_3 = _this__u8e3s4.
|
|
2294
|
+
tmp_3 = _this__u8e3s4.y30_1;
|
|
2293
2295
|
}
|
|
2294
2296
|
var basePath = tmp_3;
|
|
2295
2297
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2296
2298
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2297
|
-
_this__u8e3s4.
|
|
2299
|
+
_this__u8e3s4.y30_1 = plus_0(basePath, relativePath);
|
|
2298
2300
|
startIndex = pathEnd;
|
|
2299
2301
|
}
|
|
2300
2302
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2344,21 +2346,21 @@
|
|
|
2344
2346
|
_init_properties_URLParser_kt__sf11to();
|
|
2345
2347
|
switch (slashCount) {
|
|
2346
2348
|
case 1:
|
|
2347
|
-
_this__u8e3s4.
|
|
2349
|
+
_this__u8e3s4.r30_1 = '';
|
|
2348
2350
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2349
2351
|
break;
|
|
2350
2352
|
case 2:
|
|
2351
2353
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2352
2354
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2353
|
-
_this__u8e3s4.
|
|
2355
|
+
_this__u8e3s4.r30_1 = substring(urlString, startIndex, endIndex);
|
|
2354
2356
|
return Unit_instance;
|
|
2355
2357
|
}
|
|
2356
2358
|
|
|
2357
|
-
_this__u8e3s4.
|
|
2359
|
+
_this__u8e3s4.r30_1 = substring(urlString, startIndex, nextSlash);
|
|
2358
2360
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2359
2361
|
break;
|
|
2360
2362
|
case 3:
|
|
2361
|
-
_this__u8e3s4.
|
|
2363
|
+
_this__u8e3s4.r30_1 = '';
|
|
2362
2364
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2363
2365
|
break;
|
|
2364
2366
|
default:
|
|
@@ -2371,8 +2373,8 @@
|
|
|
2371
2373
|
if (delimiter === -1) {
|
|
2372
2374
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2373
2375
|
}
|
|
2374
|
-
_this__u8e3s4.
|
|
2375
|
-
_this__u8e3s4.
|
|
2376
|
+
_this__u8e3s4.h32(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2377
|
+
_this__u8e3s4.r30_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2376
2378
|
}
|
|
2377
2379
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2378
2380
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2406,19 +2408,19 @@
|
|
|
2406
2408
|
}
|
|
2407
2409
|
var tmp0_elvis_lhs = tmp;
|
|
2408
2410
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2409
|
-
_this__u8e3s4.
|
|
2411
|
+
_this__u8e3s4.r30_1 = substring(urlString, startIndex, colonIndex);
|
|
2410
2412
|
var tmp_0;
|
|
2411
2413
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2412
2414
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2413
2415
|
} else {
|
|
2414
2416
|
tmp_0 = 0;
|
|
2415
2417
|
}
|
|
2416
|
-
_this__u8e3s4.
|
|
2418
|
+
_this__u8e3s4.z31(tmp_0);
|
|
2417
2419
|
}
|
|
2418
2420
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2419
2421
|
_init_properties_URLParser_kt__sf11to();
|
|
2420
2422
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2421
|
-
_this__u8e3s4.
|
|
2423
|
+
_this__u8e3s4.s30_1 = true;
|
|
2422
2424
|
return endIndex;
|
|
2423
2425
|
}
|
|
2424
2426
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2432,18 +2434,18 @@
|
|
|
2432
2434
|
var tmp0_elvis_lhs = tmp;
|
|
2433
2435
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2434
2436
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2435
|
-
rawParameters.
|
|
2437
|
+
rawParameters.f2m(parseQuery$lambda(_this__u8e3s4));
|
|
2436
2438
|
return fragmentStart;
|
|
2437
2439
|
}
|
|
2438
2440
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2439
2441
|
_init_properties_URLParser_kt__sf11to();
|
|
2440
2442
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2441
|
-
_this__u8e3s4.
|
|
2443
|
+
_this__u8e3s4.x30_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2442
2444
|
}
|
|
2443
2445
|
}
|
|
2444
2446
|
function parseQuery$lambda($this_parseQuery) {
|
|
2445
2447
|
return function (key, values) {
|
|
2446
|
-
$this_parseQuery.
|
|
2448
|
+
$this_parseQuery.z30_1.b2m(key, values);
|
|
2447
2449
|
return Unit_instance;
|
|
2448
2450
|
};
|
|
2449
2451
|
}
|
|
@@ -2456,29 +2458,29 @@
|
|
|
2456
2458
|
}
|
|
2457
2459
|
function Companion_7() {
|
|
2458
2460
|
Companion_instance_7 = this;
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2463
|
-
this.
|
|
2461
|
+
this.b32_1 = new URLProtocol('http', 80);
|
|
2462
|
+
this.c32_1 = new URLProtocol('https', 443);
|
|
2463
|
+
this.d32_1 = new URLProtocol('ws', 80);
|
|
2464
|
+
this.e32_1 = new URLProtocol('wss', 443);
|
|
2465
|
+
this.f32_1 = new URLProtocol('socks', 1080);
|
|
2464
2466
|
var tmp = this;
|
|
2465
2467
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2466
|
-
var this_0 = listOf([this.
|
|
2468
|
+
var this_0 = listOf([this.b32_1, this.c32_1, this.d32_1, this.e32_1, this.f32_1]);
|
|
2467
2469
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2468
2470
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2469
2471
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2470
2472
|
var _iterator__ex2g4s = this_0.r();
|
|
2471
2473
|
while (_iterator__ex2g4s.s()) {
|
|
2472
2474
|
var element = _iterator__ex2g4s.t();
|
|
2473
|
-
var tmp$ret$0 = element.
|
|
2475
|
+
var tmp$ret$0 = element.b31_1;
|
|
2474
2476
|
destination.g2(tmp$ret$0, element);
|
|
2475
2477
|
}
|
|
2476
|
-
tmp.
|
|
2478
|
+
tmp.g32_1 = destination;
|
|
2477
2479
|
}
|
|
2478
|
-
protoOf(Companion_7).
|
|
2480
|
+
protoOf(Companion_7).o32 = function (name) {
|
|
2479
2481
|
// Inline function 'kotlin.let' call
|
|
2480
2482
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2481
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2483
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().g32_1.o2(it);
|
|
2482
2484
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2483
2485
|
};
|
|
2484
2486
|
var Companion_instance_7;
|
|
@@ -2489,9 +2491,9 @@
|
|
|
2489
2491
|
}
|
|
2490
2492
|
function URLProtocol(name, defaultPort) {
|
|
2491
2493
|
Companion_getInstance_7();
|
|
2492
|
-
this.
|
|
2493
|
-
this.
|
|
2494
|
-
var tmp0 = this.
|
|
2494
|
+
this.b31_1 = name;
|
|
2495
|
+
this.c31_1 = defaultPort;
|
|
2496
|
+
var tmp0 = this.b31_1;
|
|
2495
2497
|
var tmp$ret$1;
|
|
2496
2498
|
$l$block: {
|
|
2497
2499
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2513,11 +2515,11 @@
|
|
|
2513
2515
|
}
|
|
2514
2516
|
}
|
|
2515
2517
|
protoOf(URLProtocol).toString = function () {
|
|
2516
|
-
return 'URLProtocol(name=' + this.
|
|
2518
|
+
return 'URLProtocol(name=' + this.b31_1 + ', defaultPort=' + this.c31_1 + ')';
|
|
2517
2519
|
};
|
|
2518
2520
|
protoOf(URLProtocol).hashCode = function () {
|
|
2519
|
-
var result = getStringHashCode(this.
|
|
2520
|
-
result = imul(result, 31) + this.
|
|
2521
|
+
var result = getStringHashCode(this.b31_1);
|
|
2522
|
+
result = imul(result, 31) + this.c31_1 | 0;
|
|
2521
2523
|
return result;
|
|
2522
2524
|
};
|
|
2523
2525
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2526,38 +2528,38 @@
|
|
|
2526
2528
|
if (!(other instanceof URLProtocol))
|
|
2527
2529
|
return false;
|
|
2528
2530
|
var tmp0_other_with_cast = other instanceof URLProtocol ? other : THROW_CCE();
|
|
2529
|
-
if (!(this.
|
|
2531
|
+
if (!(this.b31_1 === tmp0_other_with_cast.b31_1))
|
|
2530
2532
|
return false;
|
|
2531
|
-
if (!(this.
|
|
2533
|
+
if (!(this.c31_1 === tmp0_other_with_cast.c31_1))
|
|
2532
2534
|
return false;
|
|
2533
2535
|
return true;
|
|
2534
2536
|
};
|
|
2535
2537
|
function isSecure(_this__u8e3s4) {
|
|
2536
|
-
return _this__u8e3s4.
|
|
2538
|
+
return _this__u8e3s4.b31_1 === 'https' || _this__u8e3s4.b31_1 === 'wss';
|
|
2537
2539
|
}
|
|
2538
2540
|
function isWebsocket(_this__u8e3s4) {
|
|
2539
|
-
return _this__u8e3s4.
|
|
2541
|
+
return _this__u8e3s4.b31_1 === 'ws' || _this__u8e3s4.b31_1 === 'wss';
|
|
2540
2542
|
}
|
|
2541
2543
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2544
|
+
_this__u8e3s4.u30_1 = url.u30_1;
|
|
2542
2545
|
_this__u8e3s4.r30_1 = url.r30_1;
|
|
2543
|
-
_this__u8e3s4.
|
|
2544
|
-
_this__u8e3s4.
|
|
2546
|
+
_this__u8e3s4.z31(url.t30_1);
|
|
2547
|
+
_this__u8e3s4.y30_1 = url.y30_1;
|
|
2545
2548
|
_this__u8e3s4.v30_1 = url.v30_1;
|
|
2546
|
-
_this__u8e3s4.
|
|
2547
|
-
_this__u8e3s4.t30_1 = url.t30_1;
|
|
2549
|
+
_this__u8e3s4.w30_1 = url.w30_1;
|
|
2548
2550
|
// Inline function 'kotlin.apply' call
|
|
2549
2551
|
var this_0 = ParametersBuilder();
|
|
2550
|
-
appendAll(this_0, url.
|
|
2551
|
-
_this__u8e3s4.
|
|
2552
|
-
_this__u8e3s4.
|
|
2553
|
-
_this__u8e3s4.
|
|
2552
|
+
appendAll(this_0, url.z30_1);
|
|
2553
|
+
_this__u8e3s4.m32(this_0);
|
|
2554
|
+
_this__u8e3s4.x30_1 = url.x30_1;
|
|
2555
|
+
_this__u8e3s4.s30_1 = url.s30_1;
|
|
2554
2556
|
return _this__u8e3s4;
|
|
2555
2557
|
}
|
|
2556
2558
|
function Url(builder) {
|
|
2557
|
-
return takeFrom_0(new URLBuilder(), builder).
|
|
2559
|
+
return takeFrom_0(new URLBuilder(), builder).k2t();
|
|
2558
2560
|
}
|
|
2559
2561
|
function Url_0(urlString) {
|
|
2560
|
-
return URLBuilder_0(urlString).
|
|
2562
|
+
return URLBuilder_0(urlString).k2t();
|
|
2561
2563
|
}
|
|
2562
2564
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2563
2565
|
var tmp;
|
|
@@ -2575,7 +2577,7 @@
|
|
|
2575
2577
|
_this__u8e3s4.q('?');
|
|
2576
2578
|
}
|
|
2577
2579
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2578
|
-
var tmp0 = encodedQueryParameters.
|
|
2580
|
+
var tmp0 = encodedQueryParameters.a2m();
|
|
2579
2581
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2580
2582
|
var destination = ArrayList_init_$Create$_0();
|
|
2581
2583
|
var _iterator__ex2g4s = tmp0.r();
|
|
@@ -2621,11 +2623,11 @@
|
|
|
2621
2623
|
return takeFrom(new URLBuilder(), urlString);
|
|
2622
2624
|
}
|
|
2623
2625
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2624
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2625
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2626
|
+
var tmp0_subject = _this__u8e3s4.f31_1;
|
|
2627
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.q31_1.c31_1 ? _this__u8e3s4.e31_1 : get_hostWithPort(_this__u8e3s4);
|
|
2626
2628
|
}
|
|
2627
2629
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2628
|
-
return _this__u8e3s4.
|
|
2630
|
+
return _this__u8e3s4.e31_1 + ':' + _this__u8e3s4.p32();
|
|
2629
2631
|
}
|
|
2630
2632
|
function parseUrl(urlString) {
|
|
2631
2633
|
var tmp;
|
|
@@ -2634,14 +2636,14 @@
|
|
|
2634
2636
|
var this_0 = URLBuilder_0(urlString);
|
|
2635
2637
|
var tmp_0;
|
|
2636
2638
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2637
|
-
var this_1 = this_0.
|
|
2639
|
+
var this_1 = this_0.r30_1;
|
|
2638
2640
|
if (charSequenceLength(this_1) > 0) {
|
|
2639
2641
|
tmp_0 = this_0;
|
|
2640
2642
|
} else {
|
|
2641
2643
|
tmp_0 = null;
|
|
2642
2644
|
}
|
|
2643
2645
|
var tmp0_safe_receiver = tmp_0;
|
|
2644
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2646
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k2t();
|
|
2645
2647
|
} catch ($p) {
|
|
2646
2648
|
var tmp_1;
|
|
2647
2649
|
if ($p instanceof URLParserException) {
|
|
@@ -2658,18 +2660,18 @@
|
|
|
2658
2660
|
return takeFrom_1(new URLBuilder(), url);
|
|
2659
2661
|
}
|
|
2660
2662
|
function takeFrom_1(_this__u8e3s4, url) {
|
|
2661
|
-
_this__u8e3s4.
|
|
2662
|
-
_this__u8e3s4.
|
|
2663
|
-
_this__u8e3s4.
|
|
2664
|
-
set_encodedPath(_this__u8e3s4, url.
|
|
2665
|
-
_this__u8e3s4.
|
|
2666
|
-
_this__u8e3s4.
|
|
2663
|
+
_this__u8e3s4.u30_1 = url.p31_1;
|
|
2664
|
+
_this__u8e3s4.r30_1 = url.e31_1;
|
|
2665
|
+
_this__u8e3s4.z31(url.p32());
|
|
2666
|
+
set_encodedPath(_this__u8e3s4, url.q32());
|
|
2667
|
+
_this__u8e3s4.v30_1 = url.r32();
|
|
2668
|
+
_this__u8e3s4.w30_1 = url.s32();
|
|
2667
2669
|
// Inline function 'kotlin.apply' call
|
|
2668
2670
|
var this_0 = ParametersBuilder();
|
|
2669
|
-
this_0.
|
|
2670
|
-
_this__u8e3s4.
|
|
2671
|
-
_this__u8e3s4.
|
|
2672
|
-
_this__u8e3s4.
|
|
2671
|
+
this_0.l2m(parseQueryString(url.t32(), VOID, VOID, false));
|
|
2672
|
+
_this__u8e3s4.m32(this_0);
|
|
2673
|
+
_this__u8e3s4.x30_1 = url.u32();
|
|
2674
|
+
_this__u8e3s4.s30_1 = url.k31_1;
|
|
2673
2675
|
return _this__u8e3s4;
|
|
2674
2676
|
}
|
|
2675
2677
|
function appendUrlFullPath$lambda(it) {
|
|
@@ -2728,161 +2730,161 @@
|
|
|
2728
2730
|
if ($pathSegments.j()) {
|
|
2729
2731
|
return '';
|
|
2730
2732
|
}
|
|
2731
|
-
var pathStartIndex = indexOf(this$0.
|
|
2733
|
+
var pathStartIndex = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(47), this$0.q31_1.b31_1.length + 3 | 0);
|
|
2732
2734
|
var tmp_0;
|
|
2733
2735
|
if (pathStartIndex === -1) {
|
|
2734
2736
|
return '';
|
|
2735
2737
|
}
|
|
2736
2738
|
// Inline function 'kotlin.charArrayOf' call
|
|
2737
2739
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2738
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2740
|
+
var pathEndIndex = indexOfAny(this$0.l31_1, tmp$ret$0, pathStartIndex);
|
|
2739
2741
|
var tmp_1;
|
|
2740
2742
|
if (pathEndIndex === -1) {
|
|
2741
|
-
return substring_0(this$0.
|
|
2743
|
+
return substring_0(this$0.l31_1, pathStartIndex);
|
|
2742
2744
|
}
|
|
2743
|
-
return substring(this$0.
|
|
2745
|
+
return substring(this$0.l31_1, pathStartIndex, pathEndIndex);
|
|
2744
2746
|
};
|
|
2745
2747
|
}
|
|
2746
2748
|
function Url$_get_encodedPath_$ref_fg9j48() {
|
|
2747
2749
|
return function (p0) {
|
|
2748
|
-
return p0.
|
|
2750
|
+
return p0.q32();
|
|
2749
2751
|
};
|
|
2750
2752
|
}
|
|
2751
2753
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2752
2754
|
return function () {
|
|
2753
|
-
var queryStart = indexOf(this$0.
|
|
2755
|
+
var queryStart = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2754
2756
|
var tmp;
|
|
2755
2757
|
if (queryStart === 0) {
|
|
2756
2758
|
return '';
|
|
2757
2759
|
}
|
|
2758
|
-
var queryEnd = indexOf(this$0.
|
|
2760
|
+
var queryEnd = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2759
2761
|
var tmp_0;
|
|
2760
2762
|
if (queryEnd === -1) {
|
|
2761
|
-
return substring_0(this$0.
|
|
2763
|
+
return substring_0(this$0.l31_1, queryStart);
|
|
2762
2764
|
}
|
|
2763
|
-
return substring(this$0.
|
|
2765
|
+
return substring(this$0.l31_1, queryStart, queryEnd);
|
|
2764
2766
|
};
|
|
2765
2767
|
}
|
|
2766
2768
|
function Url$_get_encodedQuery_$ref_c7vq1h() {
|
|
2767
2769
|
return function (p0) {
|
|
2768
|
-
return p0.
|
|
2770
|
+
return p0.t32();
|
|
2769
2771
|
};
|
|
2770
2772
|
}
|
|
2771
2773
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2772
2774
|
return function () {
|
|
2773
|
-
var pathStart = indexOf(this$0.
|
|
2775
|
+
var pathStart = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(47), this$0.q31_1.b31_1.length + 3 | 0);
|
|
2774
2776
|
var tmp;
|
|
2775
2777
|
if (pathStart === -1) {
|
|
2776
2778
|
return '';
|
|
2777
2779
|
}
|
|
2778
|
-
var queryEnd = indexOf(this$0.
|
|
2780
|
+
var queryEnd = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2779
2781
|
var tmp_0;
|
|
2780
2782
|
if (queryEnd === -1) {
|
|
2781
|
-
return substring_0(this$0.
|
|
2783
|
+
return substring_0(this$0.l31_1, pathStart);
|
|
2782
2784
|
}
|
|
2783
|
-
return substring(this$0.
|
|
2785
|
+
return substring(this$0.l31_1, pathStart, queryEnd);
|
|
2784
2786
|
};
|
|
2785
2787
|
}
|
|
2786
2788
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2787
2789
|
return function () {
|
|
2788
2790
|
var tmp;
|
|
2789
|
-
if (this$0.
|
|
2791
|
+
if (this$0.i31_1 == null) {
|
|
2790
2792
|
return null;
|
|
2791
2793
|
}
|
|
2792
2794
|
var tmp_0;
|
|
2793
2795
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2794
|
-
var this_0 = this$0.
|
|
2796
|
+
var this_0 = this$0.i31_1;
|
|
2795
2797
|
if (charSequenceLength(this_0) === 0) {
|
|
2796
2798
|
return '';
|
|
2797
2799
|
}
|
|
2798
|
-
var usernameStart = this$0.
|
|
2800
|
+
var usernameStart = this$0.q31_1.b31_1.length + 3 | 0;
|
|
2799
2801
|
// Inline function 'kotlin.charArrayOf' call
|
|
2800
2802
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2801
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2802
|
-
return substring(this$0.
|
|
2803
|
+
var usernameEnd = indexOfAny(this$0.l31_1, tmp$ret$1, usernameStart);
|
|
2804
|
+
return substring(this$0.l31_1, usernameStart, usernameEnd);
|
|
2803
2805
|
};
|
|
2804
2806
|
}
|
|
2805
2807
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2806
2808
|
return function (p0) {
|
|
2807
|
-
return p0.
|
|
2809
|
+
return p0.r32();
|
|
2808
2810
|
};
|
|
2809
2811
|
}
|
|
2810
2812
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2811
2813
|
return function () {
|
|
2812
2814
|
var tmp;
|
|
2813
|
-
if (this$0.
|
|
2815
|
+
if (this$0.j31_1 == null) {
|
|
2814
2816
|
return null;
|
|
2815
2817
|
}
|
|
2816
2818
|
var tmp_0;
|
|
2817
2819
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2818
|
-
var this_0 = this$0.
|
|
2820
|
+
var this_0 = this$0.j31_1;
|
|
2819
2821
|
if (charSequenceLength(this_0) === 0) {
|
|
2820
2822
|
return '';
|
|
2821
2823
|
}
|
|
2822
|
-
var passwordStart = indexOf(this$0.
|
|
2823
|
-
var passwordEnd = indexOf(this$0.
|
|
2824
|
-
return substring(this$0.
|
|
2824
|
+
var passwordStart = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(58), this$0.q31_1.b31_1.length + 3 | 0) + 1 | 0;
|
|
2825
|
+
var passwordEnd = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(64));
|
|
2826
|
+
return substring(this$0.l31_1, passwordStart, passwordEnd);
|
|
2825
2827
|
};
|
|
2826
2828
|
}
|
|
2827
2829
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2828
2830
|
return function (p0) {
|
|
2829
|
-
return p0.
|
|
2831
|
+
return p0.s32();
|
|
2830
2832
|
};
|
|
2831
2833
|
}
|
|
2832
2834
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2833
2835
|
return function () {
|
|
2834
|
-
var fragmentStart = indexOf(this$0.
|
|
2836
|
+
var fragmentStart = indexOf(this$0.l31_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2835
2837
|
var tmp;
|
|
2836
2838
|
if (fragmentStart === 0) {
|
|
2837
2839
|
return '';
|
|
2838
2840
|
}
|
|
2839
|
-
return substring_0(this$0.
|
|
2841
|
+
return substring_0(this$0.l31_1, fragmentStart);
|
|
2840
2842
|
};
|
|
2841
2843
|
}
|
|
2842
2844
|
function Url$_get_encodedFragment_$ref_itp7pv() {
|
|
2843
2845
|
return function (p0) {
|
|
2844
|
-
return p0.
|
|
2846
|
+
return p0.u32();
|
|
2845
2847
|
};
|
|
2846
2848
|
}
|
|
2847
2849
|
function Url_1(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2848
|
-
this.
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2853
|
-
this.
|
|
2854
|
-
this.
|
|
2855
|
-
this.
|
|
2856
|
-
var containsArg = this.
|
|
2850
|
+
this.e31_1 = host;
|
|
2851
|
+
this.f31_1 = specifiedPort;
|
|
2852
|
+
this.g31_1 = parameters;
|
|
2853
|
+
this.h31_1 = fragment;
|
|
2854
|
+
this.i31_1 = user;
|
|
2855
|
+
this.j31_1 = password;
|
|
2856
|
+
this.k31_1 = trailingQuery;
|
|
2857
|
+
this.l31_1 = urlString;
|
|
2858
|
+
var containsArg = this.f31_1;
|
|
2857
2859
|
// Inline function 'kotlin.require' call
|
|
2858
2860
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2859
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2861
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.f31_1;
|
|
2860
2862
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2861
2863
|
}
|
|
2862
|
-
this.
|
|
2863
|
-
this.
|
|
2864
|
+
this.m31_1 = pathSegments;
|
|
2865
|
+
this.n31_1 = pathSegments;
|
|
2864
2866
|
var tmp = this;
|
|
2865
|
-
tmp.
|
|
2866
|
-
this.
|
|
2867
|
+
tmp.o31_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2868
|
+
this.p31_1 = protocol;
|
|
2867
2869
|
var tmp_0 = this;
|
|
2868
|
-
var tmp0_elvis_lhs = this.
|
|
2869
|
-
tmp_0.
|
|
2870
|
+
var tmp0_elvis_lhs = this.p31_1;
|
|
2871
|
+
tmp_0.q31_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().b32_1 : tmp0_elvis_lhs;
|
|
2870
2872
|
var tmp_1 = this;
|
|
2871
|
-
tmp_1.
|
|
2873
|
+
tmp_1.r31_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2872
2874
|
var tmp_2 = this;
|
|
2873
|
-
tmp_2.
|
|
2875
|
+
tmp_2.s31_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2874
2876
|
var tmp_3 = this;
|
|
2875
|
-
tmp_3.
|
|
2877
|
+
tmp_3.t31_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2876
2878
|
var tmp_4 = this;
|
|
2877
|
-
tmp_4.
|
|
2879
|
+
tmp_4.u31_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2878
2880
|
var tmp_5 = this;
|
|
2879
|
-
tmp_5.
|
|
2881
|
+
tmp_5.v31_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2880
2882
|
var tmp_6 = this;
|
|
2881
|
-
tmp_6.
|
|
2883
|
+
tmp_6.w31_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2882
2884
|
}
|
|
2883
|
-
protoOf(Url_1).
|
|
2885
|
+
protoOf(Url_1).p32 = function () {
|
|
2884
2886
|
// Inline function 'kotlin.takeUnless' call
|
|
2885
|
-
var this_0 = this.
|
|
2887
|
+
var this_0 = this.f31_1;
|
|
2886
2888
|
var tmp;
|
|
2887
2889
|
if (!(this_0 === 0)) {
|
|
2888
2890
|
tmp = this_0;
|
|
@@ -2890,45 +2892,45 @@
|
|
|
2890
2892
|
tmp = null;
|
|
2891
2893
|
}
|
|
2892
2894
|
var tmp0_elvis_lhs = tmp;
|
|
2893
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2895
|
+
return tmp0_elvis_lhs == null ? this.q31_1.c31_1 : tmp0_elvis_lhs;
|
|
2894
2896
|
};
|
|
2895
|
-
protoOf(Url_1).
|
|
2896
|
-
var tmp0 = this.
|
|
2897
|
+
protoOf(Url_1).q32 = function () {
|
|
2898
|
+
var tmp0 = this.r31_1;
|
|
2897
2899
|
var tmp = KProperty1;
|
|
2898
2900
|
// Inline function 'kotlin.getValue' call
|
|
2899
2901
|
getPropertyCallableRef('encodedPath', 1, tmp, Url$_get_encodedPath_$ref_fg9j48(), null);
|
|
2900
2902
|
return tmp0.a1();
|
|
2901
2903
|
};
|
|
2902
|
-
protoOf(Url_1).
|
|
2903
|
-
var tmp0 = this.
|
|
2904
|
+
protoOf(Url_1).t32 = function () {
|
|
2905
|
+
var tmp0 = this.s31_1;
|
|
2904
2906
|
var tmp = KProperty1;
|
|
2905
2907
|
// Inline function 'kotlin.getValue' call
|
|
2906
2908
|
getPropertyCallableRef('encodedQuery', 1, tmp, Url$_get_encodedQuery_$ref_c7vq1h(), null);
|
|
2907
2909
|
return tmp0.a1();
|
|
2908
2910
|
};
|
|
2909
|
-
protoOf(Url_1).
|
|
2910
|
-
var tmp0 = this.
|
|
2911
|
+
protoOf(Url_1).r32 = function () {
|
|
2912
|
+
var tmp0 = this.u31_1;
|
|
2911
2913
|
var tmp = KProperty1;
|
|
2912
2914
|
// Inline function 'kotlin.getValue' call
|
|
2913
2915
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2914
2916
|
return tmp0.a1();
|
|
2915
2917
|
};
|
|
2916
|
-
protoOf(Url_1).
|
|
2917
|
-
var tmp0 = this.
|
|
2918
|
+
protoOf(Url_1).s32 = function () {
|
|
2919
|
+
var tmp0 = this.v31_1;
|
|
2918
2920
|
var tmp = KProperty1;
|
|
2919
2921
|
// Inline function 'kotlin.getValue' call
|
|
2920
2922
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2921
2923
|
return tmp0.a1();
|
|
2922
2924
|
};
|
|
2923
|
-
protoOf(Url_1).
|
|
2924
|
-
var tmp0 = this.
|
|
2925
|
+
protoOf(Url_1).u32 = function () {
|
|
2926
|
+
var tmp0 = this.w31_1;
|
|
2925
2927
|
var tmp = KProperty1;
|
|
2926
2928
|
// Inline function 'kotlin.getValue' call
|
|
2927
2929
|
getPropertyCallableRef('encodedFragment', 1, tmp, Url$_get_encodedFragment_$ref_itp7pv(), null);
|
|
2928
2930
|
return tmp0.a1();
|
|
2929
2931
|
};
|
|
2930
2932
|
protoOf(Url_1).toString = function () {
|
|
2931
|
-
return this.
|
|
2933
|
+
return this.l31_1;
|
|
2932
2934
|
};
|
|
2933
2935
|
protoOf(Url_1).equals = function (other) {
|
|
2934
2936
|
if (this === other)
|
|
@@ -2937,10 +2939,10 @@
|
|
|
2937
2939
|
return false;
|
|
2938
2940
|
if (!(other instanceof Url_1))
|
|
2939
2941
|
THROW_CCE();
|
|
2940
|
-
return this.
|
|
2942
|
+
return this.l31_1 === other.l31_1;
|
|
2941
2943
|
};
|
|
2942
2944
|
protoOf(Url_1).hashCode = function () {
|
|
2943
|
-
return getStringHashCode(this.
|
|
2945
|
+
return getStringHashCode(this.l31_1);
|
|
2944
2946
|
};
|
|
2945
2947
|
function get_authority_0(_this__u8e3s4) {
|
|
2946
2948
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2952,19 +2954,19 @@
|
|
|
2952
2954
|
}
|
|
2953
2955
|
function UrlSerializer() {
|
|
2954
2956
|
UrlSerializer_instance = this;
|
|
2955
|
-
this.
|
|
2957
|
+
this.v32_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2956
2958
|
}
|
|
2957
|
-
protoOf(UrlSerializer).
|
|
2958
|
-
return this.
|
|
2959
|
+
protoOf(UrlSerializer).h1x = function () {
|
|
2960
|
+
return this.v32_1;
|
|
2959
2961
|
};
|
|
2960
|
-
protoOf(UrlSerializer).
|
|
2961
|
-
return Url_0(decoder.
|
|
2962
|
+
protoOf(UrlSerializer).j1x = function (decoder) {
|
|
2963
|
+
return Url_0(decoder.p20());
|
|
2962
2964
|
};
|
|
2963
|
-
protoOf(UrlSerializer).
|
|
2964
|
-
encoder.
|
|
2965
|
+
protoOf(UrlSerializer).w32 = function (encoder, value) {
|
|
2966
|
+
encoder.y21(value.toString());
|
|
2965
2967
|
};
|
|
2966
|
-
protoOf(UrlSerializer).
|
|
2967
|
-
return this.
|
|
2968
|
+
protoOf(UrlSerializer).i1x = function (encoder, value) {
|
|
2969
|
+
return this.w32(encoder, value instanceof Url_1 ? value : THROW_CCE());
|
|
2968
2970
|
};
|
|
2969
2971
|
var UrlSerializer_instance;
|
|
2970
2972
|
function UrlSerializer_getInstance() {
|
|
@@ -2976,21 +2978,21 @@
|
|
|
2976
2978
|
// Inline function 'kotlin.text.buildString' call
|
|
2977
2979
|
// Inline function 'kotlin.apply' call
|
|
2978
2980
|
var this_0 = StringBuilder_init_$Create$();
|
|
2979
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2981
|
+
appendUserAndPassword(this_0, _this__u8e3s4.r32(), _this__u8e3s4.s32());
|
|
2980
2982
|
return this_0.toString();
|
|
2981
2983
|
}
|
|
2982
2984
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2983
|
-
this.
|
|
2984
|
-
this.
|
|
2985
|
+
this.x32_1 = encodedParametersBuilder;
|
|
2986
|
+
this.y32_1 = this.x32_1.c2m();
|
|
2985
2987
|
}
|
|
2986
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2987
|
-
return decodeParameters(this.
|
|
2988
|
+
protoOf(UrlDecodedParametersBuilder).k2t = function () {
|
|
2989
|
+
return decodeParameters(this.x32_1);
|
|
2988
2990
|
};
|
|
2989
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2990
|
-
return this.
|
|
2991
|
+
protoOf(UrlDecodedParametersBuilder).c2m = function () {
|
|
2992
|
+
return this.y32_1;
|
|
2991
2993
|
};
|
|
2992
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2993
|
-
var tmp0_safe_receiver = this.
|
|
2994
|
+
protoOf(UrlDecodedParametersBuilder).d2m = function (name) {
|
|
2995
|
+
var tmp0_safe_receiver = this.x32_1.d2m(encodeURLParameter(name));
|
|
2994
2996
|
var tmp;
|
|
2995
2997
|
if (tmp0_safe_receiver == null) {
|
|
2996
2998
|
tmp = null;
|
|
@@ -3008,12 +3010,12 @@
|
|
|
3008
3010
|
}
|
|
3009
3011
|
return tmp;
|
|
3010
3012
|
};
|
|
3011
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3012
|
-
return this.
|
|
3013
|
+
protoOf(UrlDecodedParametersBuilder).y2l = function (name) {
|
|
3014
|
+
return this.x32_1.y2l(encodeURLParameter(name));
|
|
3013
3015
|
};
|
|
3014
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3016
|
+
protoOf(UrlDecodedParametersBuilder).e2m = function () {
|
|
3015
3017
|
// Inline function 'kotlin.collections.map' call
|
|
3016
|
-
var this_0 = this.
|
|
3018
|
+
var this_0 = this.x32_1.e2m();
|
|
3017
3019
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3018
3020
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3019
3021
|
var _iterator__ex2g4s = this_0.r();
|
|
@@ -3025,18 +3027,18 @@
|
|
|
3025
3027
|
return toSet(destination);
|
|
3026
3028
|
};
|
|
3027
3029
|
protoOf(UrlDecodedParametersBuilder).j = function () {
|
|
3028
|
-
return this.
|
|
3030
|
+
return this.x32_1.j();
|
|
3029
3031
|
};
|
|
3030
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3031
|
-
return decodeParameters(this.
|
|
3032
|
+
protoOf(UrlDecodedParametersBuilder).a2m = function () {
|
|
3033
|
+
return decodeParameters(this.x32_1).a2m();
|
|
3032
3034
|
};
|
|
3033
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3034
|
-
return this.
|
|
3035
|
+
protoOf(UrlDecodedParametersBuilder).z2l = function (name, value) {
|
|
3036
|
+
return this.x32_1.z2l(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3035
3037
|
};
|
|
3036
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3037
|
-
return appendAllEncoded(this.
|
|
3038
|
+
protoOf(UrlDecodedParametersBuilder).l2m = function (stringValues) {
|
|
3039
|
+
return appendAllEncoded(this.x32_1, stringValues);
|
|
3038
3040
|
};
|
|
3039
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3041
|
+
protoOf(UrlDecodedParametersBuilder).b2m = function (name, values) {
|
|
3040
3042
|
var tmp = encodeURLParameter(name);
|
|
3041
3043
|
// Inline function 'kotlin.collections.map' call
|
|
3042
3044
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3047,10 +3049,10 @@
|
|
|
3047
3049
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3048
3050
|
destination.p(tmp$ret$0);
|
|
3049
3051
|
}
|
|
3050
|
-
return this.
|
|
3052
|
+
return this.x32_1.b2m(tmp, destination);
|
|
3051
3053
|
};
|
|
3052
3054
|
protoOf(UrlDecodedParametersBuilder).b2 = function () {
|
|
3053
|
-
return this.
|
|
3055
|
+
return this.x32_1.b2();
|
|
3054
3056
|
};
|
|
3055
3057
|
function encodeParameters(parameters) {
|
|
3056
3058
|
// Inline function 'kotlin.apply' call
|
|
@@ -3062,14 +3064,14 @@
|
|
|
3062
3064
|
// Inline function 'kotlin.apply' call
|
|
3063
3065
|
var this_0 = ParametersBuilder();
|
|
3064
3066
|
appendAllDecoded(this_0, parameters);
|
|
3065
|
-
return this_0.
|
|
3067
|
+
return this_0.k2t();
|
|
3066
3068
|
}
|
|
3067
3069
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3068
3070
|
// Inline function 'kotlin.collections.forEach' call
|
|
3069
|
-
var _iterator__ex2g4s = parameters.
|
|
3071
|
+
var _iterator__ex2g4s = parameters.e2m().r();
|
|
3070
3072
|
while (_iterator__ex2g4s.s()) {
|
|
3071
3073
|
var element = _iterator__ex2g4s.t();
|
|
3072
|
-
var tmp0_elvis_lhs = parameters.
|
|
3074
|
+
var tmp0_elvis_lhs = parameters.d2m(element);
|
|
3073
3075
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3074
3076
|
var tmp = encodeURLParameter(element);
|
|
3075
3077
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3081,15 +3083,15 @@
|
|
|
3081
3083
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3082
3084
|
destination.p(tmp$ret$0);
|
|
3083
3085
|
}
|
|
3084
|
-
_this__u8e3s4.
|
|
3086
|
+
_this__u8e3s4.b2m(tmp, destination);
|
|
3085
3087
|
}
|
|
3086
3088
|
}
|
|
3087
3089
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3088
3090
|
// Inline function 'kotlin.collections.forEach' call
|
|
3089
|
-
var _iterator__ex2g4s = parameters.
|
|
3091
|
+
var _iterator__ex2g4s = parameters.e2m().r();
|
|
3090
3092
|
while (_iterator__ex2g4s.s()) {
|
|
3091
3093
|
var element = _iterator__ex2g4s.t();
|
|
3092
|
-
var tmp0_elvis_lhs = parameters.
|
|
3094
|
+
var tmp0_elvis_lhs = parameters.d2m(element);
|
|
3093
3095
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3094
3096
|
var tmp = decodeURLQueryComponent(element);
|
|
3095
3097
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3101,7 +3103,7 @@
|
|
|
3101
3103
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3102
3104
|
destination.p(tmp$ret$0);
|
|
3103
3105
|
}
|
|
3104
|
-
_this__u8e3s4.
|
|
3106
|
+
_this__u8e3s4.b2m(tmp, destination);
|
|
3105
3107
|
}
|
|
3106
3108
|
}
|
|
3107
3109
|
var HeaderValueEncoding_QUOTED_WHEN_REQUIRED_instance;
|
|
@@ -3181,71 +3183,71 @@
|
|
|
3181
3183
|
}
|
|
3182
3184
|
function HttpAuthHeader$Parameterized$render$lambda(this$0, $encoding) {
|
|
3183
3185
|
return function (it) {
|
|
3184
|
-
return it.
|
|
3186
|
+
return it.a2r_1 + '=' + encode_0(this$0, it.b2r_1, $encoding);
|
|
3185
3187
|
};
|
|
3186
3188
|
}
|
|
3187
3189
|
function Single(authScheme, blob) {
|
|
3188
3190
|
HttpAuthHeader.call(this, authScheme);
|
|
3189
|
-
this.
|
|
3190
|
-
var tmp0 = this.
|
|
3191
|
+
this.a33_1 = blob;
|
|
3192
|
+
var tmp0 = this.a33_1;
|
|
3191
3193
|
// Inline function 'kotlin.text.matches' call
|
|
3192
3194
|
if (!get_token68Pattern().gd(tmp0)) {
|
|
3193
3195
|
throw new ParseException('Invalid blob value: it should be token68');
|
|
3194
3196
|
}
|
|
3195
3197
|
}
|
|
3196
|
-
protoOf(Single).
|
|
3197
|
-
return this.
|
|
3198
|
+
protoOf(Single).b33 = function () {
|
|
3199
|
+
return this.c33_1 + ' ' + this.a33_1;
|
|
3198
3200
|
};
|
|
3199
3201
|
protoOf(Single).equals = function (other) {
|
|
3200
3202
|
if (!(other instanceof Single))
|
|
3201
3203
|
return false;
|
|
3202
|
-
return equals(other.
|
|
3204
|
+
return equals(other.c33_1, this.c33_1, true) && equals(other.a33_1, this.a33_1, true);
|
|
3203
3205
|
};
|
|
3204
3206
|
protoOf(Single).hashCode = function () {
|
|
3205
3207
|
var tmp = Hash_instance;
|
|
3206
3208
|
// Inline function 'kotlin.text.lowercase' call
|
|
3207
3209
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3208
|
-
var tmp_0 = this.
|
|
3210
|
+
var tmp_0 = this.c33_1.toLowerCase();
|
|
3209
3211
|
// Inline function 'kotlin.text.lowercase' call
|
|
3210
3212
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3211
|
-
var tmp$ret$3 = this.
|
|
3212
|
-
return tmp.
|
|
3213
|
+
var tmp$ret$3 = this.a33_1.toLowerCase();
|
|
3214
|
+
return tmp.n2l([tmp_0, tmp$ret$3]);
|
|
3213
3215
|
};
|
|
3214
3216
|
function Parameterized(authScheme, parameters, encoding) {
|
|
3215
3217
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3216
3218
|
HttpAuthHeader.call(this, authScheme);
|
|
3217
|
-
this.
|
|
3218
|
-
this.
|
|
3219
|
+
this.e33_1 = parameters;
|
|
3220
|
+
this.f33_1 = encoding;
|
|
3219
3221
|
// Inline function 'kotlin.collections.forEach' call
|
|
3220
|
-
var _iterator__ex2g4s = this.
|
|
3222
|
+
var _iterator__ex2g4s = this.e33_1.r();
|
|
3221
3223
|
while (_iterator__ex2g4s.s()) {
|
|
3222
3224
|
var element = _iterator__ex2g4s.t();
|
|
3223
|
-
var tmp0 = element.
|
|
3225
|
+
var tmp0 = element.a2r_1;
|
|
3224
3226
|
// Inline function 'kotlin.text.matches' call
|
|
3225
3227
|
if (!get_token68Pattern().gd(tmp0)) {
|
|
3226
3228
|
throw new ParseException('Parameter name should be a token');
|
|
3227
3229
|
}
|
|
3228
3230
|
}
|
|
3229
3231
|
}
|
|
3230
|
-
protoOf(Parameterized).
|
|
3232
|
+
protoOf(Parameterized).g33 = function (encoding) {
|
|
3231
3233
|
var tmp;
|
|
3232
|
-
if (this.
|
|
3233
|
-
tmp = this.
|
|
3234
|
+
if (this.e33_1.j()) {
|
|
3235
|
+
tmp = this.c33_1;
|
|
3234
3236
|
} else {
|
|
3235
|
-
var tmp_0 = this.
|
|
3236
|
-
tmp = joinToString(this.
|
|
3237
|
+
var tmp_0 = this.c33_1 + ' ';
|
|
3238
|
+
tmp = joinToString(this.e33_1, ', ', tmp_0, VOID, VOID, VOID, HttpAuthHeader$Parameterized$render$lambda(this, encoding));
|
|
3237
3239
|
}
|
|
3238
3240
|
return tmp;
|
|
3239
3241
|
};
|
|
3240
|
-
protoOf(Parameterized).
|
|
3241
|
-
var tmp0 = this.
|
|
3242
|
+
protoOf(Parameterized).g2t = function (name) {
|
|
3243
|
+
var tmp0 = this.e33_1;
|
|
3242
3244
|
var tmp$ret$1;
|
|
3243
3245
|
$l$block: {
|
|
3244
3246
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3245
3247
|
var _iterator__ex2g4s = tmp0.r();
|
|
3246
3248
|
while (_iterator__ex2g4s.s()) {
|
|
3247
3249
|
var element = _iterator__ex2g4s.t();
|
|
3248
|
-
if (element.
|
|
3250
|
+
if (element.a2r_1 === name) {
|
|
3249
3251
|
tmp$ret$1 = element;
|
|
3250
3252
|
break $l$block;
|
|
3251
3253
|
}
|
|
@@ -3253,22 +3255,22 @@
|
|
|
3253
3255
|
tmp$ret$1 = null;
|
|
3254
3256
|
}
|
|
3255
3257
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
3256
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3258
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2r_1;
|
|
3257
3259
|
};
|
|
3258
|
-
protoOf(Parameterized).
|
|
3259
|
-
return this.
|
|
3260
|
+
protoOf(Parameterized).b33 = function () {
|
|
3261
|
+
return this.g33(this.f33_1);
|
|
3260
3262
|
};
|
|
3261
3263
|
protoOf(Parameterized).equals = function (other) {
|
|
3262
3264
|
if (!(other instanceof Parameterized))
|
|
3263
3265
|
return false;
|
|
3264
|
-
return equals(other.
|
|
3266
|
+
return equals(other.c33_1, this.c33_1, true) && equals_0(other.e33_1, this.e33_1);
|
|
3265
3267
|
};
|
|
3266
3268
|
protoOf(Parameterized).hashCode = function () {
|
|
3267
3269
|
var tmp = Hash_instance;
|
|
3268
3270
|
// Inline function 'kotlin.text.lowercase' call
|
|
3269
3271
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3270
|
-
var tmp$ret$1 = this.
|
|
3271
|
-
return tmp.
|
|
3272
|
+
var tmp$ret$1 = this.c33_1.toLowerCase();
|
|
3273
|
+
return tmp.n2l([tmp$ret$1, this.e33_1]);
|
|
3272
3274
|
};
|
|
3273
3275
|
function Companion_9() {
|
|
3274
3276
|
}
|
|
@@ -3277,15 +3279,15 @@
|
|
|
3277
3279
|
return Companion_instance_9;
|
|
3278
3280
|
}
|
|
3279
3281
|
function HttpAuthHeader(authScheme) {
|
|
3280
|
-
this.
|
|
3281
|
-
var tmp0 = this.
|
|
3282
|
+
this.c33_1 = authScheme;
|
|
3283
|
+
var tmp0 = this.c33_1;
|
|
3282
3284
|
// Inline function 'kotlin.text.matches' call
|
|
3283
3285
|
if (!get_token68Pattern().gd(tmp0)) {
|
|
3284
|
-
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.
|
|
3286
|
+
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.c33_1);
|
|
3285
3287
|
}
|
|
3286
3288
|
}
|
|
3287
3289
|
protoOf(HttpAuthHeader).toString = function () {
|
|
3288
|
-
return this.
|
|
3290
|
+
return this.b33();
|
|
3289
3291
|
};
|
|
3290
3292
|
function parseAuthorizationHeaders(headerValue) {
|
|
3291
3293
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3473,21 +3475,21 @@
|
|
|
3473
3475
|
contentType = contentType === VOID ? null : contentType;
|
|
3474
3476
|
status = status === VOID ? null : status;
|
|
3475
3477
|
ByteArrayContent_0.call(this);
|
|
3476
|
-
this.
|
|
3477
|
-
this.
|
|
3478
|
-
this.
|
|
3478
|
+
this.i33_1 = bytes;
|
|
3479
|
+
this.j33_1 = contentType;
|
|
3480
|
+
this.k33_1 = status;
|
|
3479
3481
|
}
|
|
3480
|
-
protoOf(ByteArrayContent).
|
|
3481
|
-
return this.
|
|
3482
|
+
protoOf(ByteArrayContent).l33 = function () {
|
|
3483
|
+
return this.j33_1;
|
|
3482
3484
|
};
|
|
3483
|
-
protoOf(ByteArrayContent).
|
|
3484
|
-
return this.
|
|
3485
|
+
protoOf(ByteArrayContent).m33 = function () {
|
|
3486
|
+
return this.k33_1;
|
|
3485
3487
|
};
|
|
3486
|
-
protoOf(ByteArrayContent).
|
|
3487
|
-
return fromInt(this.
|
|
3488
|
+
protoOf(ByteArrayContent).n33 = function () {
|
|
3489
|
+
return fromInt(this.i33_1.length);
|
|
3488
3490
|
};
|
|
3489
|
-
protoOf(ByteArrayContent).
|
|
3490
|
-
return this.
|
|
3491
|
+
protoOf(ByteArrayContent).o33 = function () {
|
|
3492
|
+
return this.i33_1;
|
|
3491
3493
|
};
|
|
3492
3494
|
function MultiPartData() {
|
|
3493
3495
|
}
|
|
@@ -3506,23 +3508,23 @@
|
|
|
3506
3508
|
}
|
|
3507
3509
|
function ContentWrapper() {
|
|
3508
3510
|
}
|
|
3509
|
-
protoOf(ContentWrapper).
|
|
3510
|
-
return this.
|
|
3511
|
+
protoOf(ContentWrapper).x33 = function () {
|
|
3512
|
+
return this.w33_1;
|
|
3511
3513
|
};
|
|
3512
3514
|
function OutgoingContent() {
|
|
3513
|
-
this.
|
|
3515
|
+
this.p33_1 = null;
|
|
3514
3516
|
}
|
|
3515
|
-
protoOf(OutgoingContent).
|
|
3517
|
+
protoOf(OutgoingContent).l33 = function () {
|
|
3516
3518
|
return null;
|
|
3517
3519
|
};
|
|
3518
|
-
protoOf(OutgoingContent).
|
|
3520
|
+
protoOf(OutgoingContent).n33 = function () {
|
|
3519
3521
|
return null;
|
|
3520
3522
|
};
|
|
3521
|
-
protoOf(OutgoingContent).
|
|
3523
|
+
protoOf(OutgoingContent).m33 = function () {
|
|
3522
3524
|
return null;
|
|
3523
3525
|
};
|
|
3524
|
-
protoOf(OutgoingContent).
|
|
3525
|
-
return Companion_getInstance_1().
|
|
3526
|
+
protoOf(OutgoingContent).p2x = function () {
|
|
3527
|
+
return Companion_getInstance_1().h2t_1;
|
|
3526
3528
|
};
|
|
3527
3529
|
function NullBody() {
|
|
3528
3530
|
}
|
|
@@ -3536,7 +3538,7 @@
|
|
|
3536
3538
|
tmp = true;
|
|
3537
3539
|
} else {
|
|
3538
3540
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3539
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3541
|
+
tmp = isEmpty(_this__u8e3s4.x33());
|
|
3540
3542
|
} else {
|
|
3541
3543
|
tmp = false;
|
|
3542
3544
|
}
|
|
@@ -3546,45 +3548,45 @@
|
|
|
3546
3548
|
function TextContent(text, contentType, status) {
|
|
3547
3549
|
status = status === VOID ? null : status;
|
|
3548
3550
|
ByteArrayContent_0.call(this);
|
|
3549
|
-
this.
|
|
3550
|
-
this.
|
|
3551
|
-
this.
|
|
3551
|
+
this.a34_1 = text;
|
|
3552
|
+
this.b34_1 = contentType;
|
|
3553
|
+
this.c34_1 = status;
|
|
3552
3554
|
var tmp = this;
|
|
3553
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3554
|
-
tmp.
|
|
3555
|
+
var tmp0_elvis_lhs = charset(this.b34_1);
|
|
3556
|
+
tmp.d34_1 = toByteArray(this.a34_1, tmp0_elvis_lhs == null ? Charsets_getInstance().e1w_1 : tmp0_elvis_lhs);
|
|
3555
3557
|
}
|
|
3556
|
-
protoOf(TextContent).
|
|
3557
|
-
return this.
|
|
3558
|
+
protoOf(TextContent).l33 = function () {
|
|
3559
|
+
return this.b34_1;
|
|
3558
3560
|
};
|
|
3559
|
-
protoOf(TextContent).
|
|
3560
|
-
return this.
|
|
3561
|
+
protoOf(TextContent).m33 = function () {
|
|
3562
|
+
return this.c34_1;
|
|
3561
3563
|
};
|
|
3562
|
-
protoOf(TextContent).
|
|
3563
|
-
return fromInt(this.
|
|
3564
|
+
protoOf(TextContent).n33 = function () {
|
|
3565
|
+
return fromInt(this.d34_1.length);
|
|
3564
3566
|
};
|
|
3565
|
-
protoOf(TextContent).
|
|
3566
|
-
return this.
|
|
3567
|
+
protoOf(TextContent).o33 = function () {
|
|
3568
|
+
return this.d34_1;
|
|
3567
3569
|
};
|
|
3568
3570
|
protoOf(TextContent).toString = function () {
|
|
3569
|
-
return 'TextContent[' + this.
|
|
3571
|
+
return 'TextContent[' + this.b34_1.toString() + '] "' + take(this.a34_1, 30) + '"';
|
|
3570
3572
|
};
|
|
3571
3573
|
function ParseException(message, cause) {
|
|
3572
3574
|
cause = cause === VOID ? null : cause;
|
|
3573
3575
|
IllegalArgumentException_init_$Init$_0(message, cause, this);
|
|
3574
3576
|
captureStack(this, ParseException);
|
|
3575
|
-
this.
|
|
3576
|
-
this.
|
|
3577
|
+
this.e34_1 = message;
|
|
3578
|
+
this.f34_1 = cause;
|
|
3577
3579
|
delete this.message;
|
|
3578
3580
|
delete this.cause;
|
|
3579
3581
|
}
|
|
3580
3582
|
protoOf(ParseException).e = function () {
|
|
3581
|
-
return this.
|
|
3583
|
+
return this.e34_1;
|
|
3582
3584
|
};
|
|
3583
3585
|
protoOf(ParseException).f = function () {
|
|
3584
|
-
return this.
|
|
3586
|
+
return this.f34_1;
|
|
3585
3587
|
};
|
|
3586
3588
|
function get_origin(_this__u8e3s4) {
|
|
3587
|
-
return PlatformUtils_getInstance().
|
|
3589
|
+
return PlatformUtils_getInstance().q2l_1 ? locationOrigin() : 'http://localhost';
|
|
3588
3590
|
}
|
|
3589
3591
|
function locationOrigin() {
|
|
3590
3592
|
return function () {
|
|
@@ -3602,12 +3604,12 @@
|
|
|
3602
3604
|
}();
|
|
3603
3605
|
}
|
|
3604
3606
|
//region block: post-declaration
|
|
3605
|
-
protoOf(EmptyHeaders).
|
|
3606
|
-
protoOf(EmptyHeaders).
|
|
3607
|
-
protoOf(EmptyHeaders).
|
|
3608
|
-
protoOf(EmptyParameters).
|
|
3609
|
-
protoOf(EmptyParameters).
|
|
3610
|
-
protoOf(EmptyParameters).
|
|
3607
|
+
protoOf(EmptyHeaders).r2k = get;
|
|
3608
|
+
protoOf(EmptyHeaders).y2l = contains_0;
|
|
3609
|
+
protoOf(EmptyHeaders).f2m = forEach;
|
|
3610
|
+
protoOf(EmptyParameters).r2k = get;
|
|
3611
|
+
protoOf(EmptyParameters).y2l = contains_0;
|
|
3612
|
+
protoOf(EmptyParameters).f2m = forEach;
|
|
3611
3613
|
defineProp(protoOf(ParseException), 'message', function () {
|
|
3612
3614
|
return this.e();
|
|
3613
3615
|
});
|