@solibo/home-api 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +713 -713
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1842 -1798
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1333 -1333
- package/ktor-ktor-client-content-negotiation.mjs +125 -125
- package/ktor-ktor-client-core.mjs +1802 -1802
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +306 -306
- package/ktor-ktor-http.mjs +613 -613
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +120 -120
- package/ktor-ktor-serialization.mjs +51 -51
- package/ktor-ktor-utils.mjs +494 -494
- package/ktor-ktor-websockets.mjs +324 -324
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +181 -124
- package/solibo-sdk-sdk-home-api.mjs +48344 -47882
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-http.mjs
CHANGED
|
@@ -511,18 +511,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
511
511
|
}
|
|
512
512
|
function hasParameter($this, name, value) {
|
|
513
513
|
var tmp;
|
|
514
|
-
switch ($this.
|
|
514
|
+
switch ($this.b2j_1.g1()) {
|
|
515
515
|
case 0:
|
|
516
516
|
tmp = false;
|
|
517
517
|
break;
|
|
518
518
|
case 1:
|
|
519
519
|
// Inline function 'kotlin.let' call
|
|
520
520
|
|
|
521
|
-
var it = $this.
|
|
522
|
-
tmp = (equals(it.
|
|
521
|
+
var it = $this.b2j_1.h1(0);
|
|
522
|
+
tmp = (equals(it.c2j_1, name, true) && equals(it.d2j_1, value, true));
|
|
523
523
|
break;
|
|
524
524
|
default:
|
|
525
|
-
var tmp0 = $this.
|
|
525
|
+
var tmp0 = $this.b2j_1;
|
|
526
526
|
var tmp$ret$2;
|
|
527
527
|
$l$block_0: {
|
|
528
528
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -539,7 +539,7 @@ function hasParameter($this, name, value) {
|
|
|
539
539
|
var _iterator__ex2g4s = tmp0.t();
|
|
540
540
|
while (_iterator__ex2g4s.u()) {
|
|
541
541
|
var element = _iterator__ex2g4s.v();
|
|
542
|
-
if (equals(element.
|
|
542
|
+
if (equals(element.c2j_1, name, true) && equals(element.d2j_1, value, true)) {
|
|
543
543
|
tmp$ret$2 = true;
|
|
544
544
|
break $l$block_0;
|
|
545
545
|
}
|
|
@@ -554,20 +554,20 @@ function hasParameter($this, name, value) {
|
|
|
554
554
|
}
|
|
555
555
|
function Companion() {
|
|
556
556
|
Companion_instance = this;
|
|
557
|
-
this.
|
|
557
|
+
this.f2j_1 = ContentType_init_$Create$('*', '*');
|
|
558
558
|
}
|
|
559
559
|
protoOf(Companion).gm = function (value) {
|
|
560
560
|
if (isBlank(value))
|
|
561
|
-
return this.
|
|
561
|
+
return this.f2j_1;
|
|
562
562
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
563
563
|
var headerValue = last(parseHeaderValue(value));
|
|
564
|
-
var tmp0 = headerValue.
|
|
565
|
-
var parameters = headerValue.
|
|
564
|
+
var tmp0 = headerValue.g2j_1;
|
|
565
|
+
var parameters = headerValue.h2j_1;
|
|
566
566
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
567
567
|
if (slash === -1) {
|
|
568
568
|
// Inline function 'kotlin.text.trim' call
|
|
569
569
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
570
|
-
return Companion_getInstance().
|
|
570
|
+
return Companion_getInstance().f2j_1;
|
|
571
571
|
throw new BadContentTypeFormatException(value);
|
|
572
572
|
}
|
|
573
573
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -603,32 +603,32 @@ function Companion_getInstance() {
|
|
|
603
603
|
}
|
|
604
604
|
function Application() {
|
|
605
605
|
Application_instance = this;
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
}
|
|
631
|
-
protoOf(Application).
|
|
606
|
+
this.j2j_1 = 'application';
|
|
607
|
+
this.k2j_1 = ContentType_init_$Create$('application', '*');
|
|
608
|
+
this.l2j_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
609
|
+
this.m2j_1 = ContentType_init_$Create$('application', 'cbor');
|
|
610
|
+
this.n2j_1 = ContentType_init_$Create$('application', 'json');
|
|
611
|
+
this.o2j_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
612
|
+
this.p2j_1 = ContentType_init_$Create$('application', 'javascript');
|
|
613
|
+
this.q2j_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
614
|
+
this.r2j_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
615
|
+
this.s2j_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
616
|
+
this.t2j_1 = ContentType_init_$Create$('application', 'xml');
|
|
617
|
+
this.u2j_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
618
|
+
this.v2j_1 = ContentType_init_$Create$('application', 'yaml');
|
|
619
|
+
this.w2j_1 = ContentType_init_$Create$('application', 'zip');
|
|
620
|
+
this.x2j_1 = ContentType_init_$Create$('application', 'gzip');
|
|
621
|
+
this.y2j_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
622
|
+
this.z2j_1 = ContentType_init_$Create$('application', 'pdf');
|
|
623
|
+
this.a2k_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
624
|
+
this.b2k_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
625
|
+
this.c2k_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
626
|
+
this.d2k_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
627
|
+
this.e2k_1 = ContentType_init_$Create$('application', 'wasm');
|
|
628
|
+
this.f2k_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
629
|
+
this.g2k_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
630
|
+
}
|
|
631
|
+
protoOf(Application).h2k = function (contentType) {
|
|
632
632
|
return startsWith(contentType, 'application/', true);
|
|
633
633
|
};
|
|
634
634
|
var Application_instance;
|
|
@@ -639,17 +639,17 @@ function Application_getInstance() {
|
|
|
639
639
|
}
|
|
640
640
|
function MultiPart() {
|
|
641
641
|
MultiPart_instance = this;
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
651
|
-
}
|
|
652
|
-
protoOf(MultiPart).
|
|
642
|
+
this.i2k_1 = 'multipart';
|
|
643
|
+
this.j2k_1 = ContentType_init_$Create$('multipart', '*');
|
|
644
|
+
this.k2k_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
645
|
+
this.l2k_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
646
|
+
this.m2k_1 = ContentType_init_$Create$('multipart', 'related');
|
|
647
|
+
this.n2k_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
648
|
+
this.o2k_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
649
|
+
this.p2k_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
650
|
+
this.q2k_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
651
|
+
}
|
|
652
|
+
protoOf(MultiPart).h2k = function (contentType) {
|
|
653
653
|
return startsWith(contentType, 'multipart/', true);
|
|
654
654
|
};
|
|
655
655
|
var MultiPart_instance;
|
|
@@ -660,16 +660,16 @@ function MultiPart_getInstance() {
|
|
|
660
660
|
}
|
|
661
661
|
function Text() {
|
|
662
662
|
Text_instance = this;
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
666
|
-
this.
|
|
667
|
-
this.
|
|
668
|
-
this.
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
663
|
+
this.r2k_1 = 'text';
|
|
664
|
+
this.s2k_1 = ContentType_init_$Create$('text', '*');
|
|
665
|
+
this.t2k_1 = ContentType_init_$Create$('text', 'plain');
|
|
666
|
+
this.u2k_1 = ContentType_init_$Create$('text', 'css');
|
|
667
|
+
this.v2k_1 = ContentType_init_$Create$('text', 'csv');
|
|
668
|
+
this.w2k_1 = ContentType_init_$Create$('text', 'html');
|
|
669
|
+
this.x2k_1 = ContentType_init_$Create$('text', 'javascript');
|
|
670
|
+
this.y2k_1 = ContentType_init_$Create$('text', 'vcard');
|
|
671
|
+
this.z2k_1 = ContentType_init_$Create$('text', 'xml');
|
|
672
|
+
this.a2l_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
673
673
|
}
|
|
674
674
|
var Text_instance;
|
|
675
675
|
function Text_getInstance() {
|
|
@@ -681,25 +681,25 @@ function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
|
681
681
|
Companion_getInstance();
|
|
682
682
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
683
683
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
684
|
-
this.
|
|
685
|
-
this.
|
|
684
|
+
this.d2l_1 = contentType;
|
|
685
|
+
this.e2l_1 = contentSubtype;
|
|
686
686
|
}
|
|
687
|
-
protoOf(ContentType).
|
|
687
|
+
protoOf(ContentType).f2l = function (name, value) {
|
|
688
688
|
if (hasParameter(this, name, value))
|
|
689
689
|
return this;
|
|
690
|
-
return new ContentType(this.
|
|
690
|
+
return new ContentType(this.d2l_1, this.e2l_1, this.a2j_1, plus_2(this.b2j_1, HeaderValueParam_init_$Create$(name, value)));
|
|
691
691
|
};
|
|
692
|
-
protoOf(ContentType).
|
|
693
|
-
return this.
|
|
692
|
+
protoOf(ContentType).g2l = function () {
|
|
693
|
+
return this.b2j_1.r() ? this : ContentType_init_$Create$(this.d2l_1, this.e2l_1);
|
|
694
694
|
};
|
|
695
|
-
protoOf(ContentType).
|
|
696
|
-
if (!(pattern.
|
|
695
|
+
protoOf(ContentType).h2l = function (pattern) {
|
|
696
|
+
if (!(pattern.d2l_1 === '*') && !equals(pattern.d2l_1, this.d2l_1, true)) {
|
|
697
697
|
return false;
|
|
698
698
|
}
|
|
699
|
-
if (!(pattern.
|
|
699
|
+
if (!(pattern.e2l_1 === '*') && !equals(pattern.e2l_1, this.e2l_1, true)) {
|
|
700
700
|
return false;
|
|
701
701
|
}
|
|
702
|
-
var _iterator__ex2g4s = pattern.
|
|
702
|
+
var _iterator__ex2g4s = pattern.b2j_1.t();
|
|
703
703
|
while (_iterator__ex2g4s.u()) {
|
|
704
704
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
705
705
|
var patternName = _destruct__k2r9zo.se();
|
|
@@ -710,7 +710,7 @@ protoOf(ContentType).d2l = function (pattern) {
|
|
|
710
710
|
if (patternValue === '*') {
|
|
711
711
|
tmp_0 = true;
|
|
712
712
|
} else {
|
|
713
|
-
var tmp0 = this.
|
|
713
|
+
var tmp0 = this.b2j_1;
|
|
714
714
|
var tmp$ret$0;
|
|
715
715
|
$l$block_0: {
|
|
716
716
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -727,7 +727,7 @@ protoOf(ContentType).d2l = function (pattern) {
|
|
|
727
727
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
728
728
|
while (_iterator__ex2g4s_0.u()) {
|
|
729
729
|
var element = _iterator__ex2g4s_0.v();
|
|
730
|
-
if (equals(element.
|
|
730
|
+
if (equals(element.d2j_1, patternValue, true)) {
|
|
731
731
|
tmp$ret$0 = true;
|
|
732
732
|
break $l$block_0;
|
|
733
733
|
}
|
|
@@ -738,7 +738,7 @@ protoOf(ContentType).d2l = function (pattern) {
|
|
|
738
738
|
}
|
|
739
739
|
tmp = tmp_0;
|
|
740
740
|
} else {
|
|
741
|
-
var value = this.
|
|
741
|
+
var value = this.i2l(patternName);
|
|
742
742
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
743
743
|
}
|
|
744
744
|
var matches = tmp;
|
|
@@ -753,17 +753,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
753
753
|
var tmp_0;
|
|
754
754
|
var tmp_1;
|
|
755
755
|
if (other instanceof ContentType) {
|
|
756
|
-
tmp_1 = equals(this.
|
|
756
|
+
tmp_1 = equals(this.d2l_1, other.d2l_1, true);
|
|
757
757
|
} else {
|
|
758
758
|
tmp_1 = false;
|
|
759
759
|
}
|
|
760
760
|
if (tmp_1) {
|
|
761
|
-
tmp_0 = equals(this.
|
|
761
|
+
tmp_0 = equals(this.e2l_1, other.e2l_1, true);
|
|
762
762
|
} else {
|
|
763
763
|
tmp_0 = false;
|
|
764
764
|
}
|
|
765
765
|
if (tmp_0) {
|
|
766
|
-
tmp = equals_0(this.
|
|
766
|
+
tmp = equals_0(this.b2j_1, other.b2j_1);
|
|
767
767
|
} else {
|
|
768
768
|
tmp = false;
|
|
769
769
|
}
|
|
@@ -772,20 +772,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
772
772
|
protoOf(ContentType).hashCode = function () {
|
|
773
773
|
// Inline function 'kotlin.text.lowercase' call
|
|
774
774
|
// Inline function 'kotlin.js.asDynamic' call
|
|
775
|
-
var tmp$ret$1 = this.
|
|
775
|
+
var tmp$ret$1 = this.d2l_1.toLowerCase();
|
|
776
776
|
var result = getStringHashCode(tmp$ret$1);
|
|
777
777
|
var tmp = result;
|
|
778
778
|
var tmp_0 = imul(31, result);
|
|
779
779
|
// Inline function 'kotlin.text.lowercase' call
|
|
780
780
|
// Inline function 'kotlin.js.asDynamic' call
|
|
781
|
-
var tmp$ret$3 = this.
|
|
781
|
+
var tmp$ret$3 = this.e2l_1.toLowerCase();
|
|
782
782
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
783
|
-
result = result + imul(31, hashCode(this.
|
|
783
|
+
result = result + imul(31, hashCode(this.b2j_1)) | 0;
|
|
784
784
|
return result;
|
|
785
785
|
};
|
|
786
786
|
function charset(_this__u8e3s4) {
|
|
787
787
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
788
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
788
|
+
var tmp0_safe_receiver = _this__u8e3s4.i2l('charset');
|
|
789
789
|
var tmp;
|
|
790
790
|
if (tmp0_safe_receiver == null) {
|
|
791
791
|
tmp = null;
|
|
@@ -810,7 +810,7 @@ function charset(_this__u8e3s4) {
|
|
|
810
810
|
}
|
|
811
811
|
function withCharset(_this__u8e3s4, charset) {
|
|
812
812
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
813
|
-
return _this__u8e3s4.
|
|
813
|
+
return _this__u8e3s4.f2l('charset', get_name(charset));
|
|
814
814
|
}
|
|
815
815
|
function BadContentTypeFormatException(value) {
|
|
816
816
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
@@ -821,10 +821,10 @@ function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
|
821
821
|
var tmp;
|
|
822
822
|
// Inline function 'kotlin.text.lowercase' call
|
|
823
823
|
// Inline function 'kotlin.js.asDynamic' call
|
|
824
|
-
if (!(_this__u8e3s4.
|
|
824
|
+
if (!(_this__u8e3s4.d2l_1.toLowerCase() === 'text')) {
|
|
825
825
|
tmp = _this__u8e3s4;
|
|
826
826
|
} else {
|
|
827
|
-
tmp = _this__u8e3s4.
|
|
827
|
+
tmp = _this__u8e3s4.f2l('charset', get_name(charset));
|
|
828
828
|
}
|
|
829
829
|
return tmp;
|
|
830
830
|
}
|
|
@@ -848,19 +848,19 @@ function Companion_getInstance_0() {
|
|
|
848
848
|
}
|
|
849
849
|
function HeaderValueWithParameters(content, parameters) {
|
|
850
850
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
851
|
+
this.a2j_1 = content;
|
|
852
|
+
this.b2j_1 = parameters;
|
|
853
853
|
}
|
|
854
|
-
protoOf(HeaderValueWithParameters).
|
|
854
|
+
protoOf(HeaderValueWithParameters).i2l = function (name) {
|
|
855
855
|
var inductionVariable = 0;
|
|
856
|
-
var last = get_lastIndex(this.
|
|
856
|
+
var last = get_lastIndex(this.b2j_1);
|
|
857
857
|
if (inductionVariable <= last)
|
|
858
858
|
do {
|
|
859
859
|
var index = inductionVariable;
|
|
860
860
|
inductionVariable = inductionVariable + 1 | 0;
|
|
861
|
-
var parameter = this.
|
|
862
|
-
if (equals(parameter.
|
|
863
|
-
return parameter.
|
|
861
|
+
var parameter = this.b2j_1.h1(index);
|
|
862
|
+
if (equals(parameter.c2j_1, name, true)) {
|
|
863
|
+
return parameter.d2j_1;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
while (!(index === last));
|
|
@@ -868,34 +868,34 @@ protoOf(HeaderValueWithParameters).e2l = function (name) {
|
|
|
868
868
|
};
|
|
869
869
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
870
870
|
var tmp;
|
|
871
|
-
if (this.
|
|
872
|
-
tmp = this.
|
|
871
|
+
if (this.b2j_1.r()) {
|
|
872
|
+
tmp = this.a2j_1;
|
|
873
873
|
} else {
|
|
874
|
-
var tmp_0 = this.
|
|
874
|
+
var tmp_0 = this.a2j_1.length;
|
|
875
875
|
// Inline function 'kotlin.collections.sumOf' call
|
|
876
876
|
var sum = 0;
|
|
877
|
-
var _iterator__ex2g4s = this.
|
|
877
|
+
var _iterator__ex2g4s = this.b2j_1.t();
|
|
878
878
|
while (_iterator__ex2g4s.u()) {
|
|
879
879
|
var element = _iterator__ex2g4s.v();
|
|
880
880
|
var tmp_1 = sum;
|
|
881
|
-
sum = tmp_1 + ((element.
|
|
881
|
+
sum = tmp_1 + ((element.c2j_1.length + element.d2j_1.length | 0) + 3 | 0) | 0;
|
|
882
882
|
}
|
|
883
883
|
var size = tmp_0 + sum | 0;
|
|
884
884
|
// Inline function 'kotlin.apply' call
|
|
885
885
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
886
|
-
this_0.q(this.
|
|
886
|
+
this_0.q(this.a2j_1);
|
|
887
887
|
var inductionVariable = 0;
|
|
888
|
-
var last = get_lastIndex(this.
|
|
888
|
+
var last = get_lastIndex(this.b2j_1);
|
|
889
889
|
if (inductionVariable <= last)
|
|
890
890
|
do {
|
|
891
891
|
var index = inductionVariable;
|
|
892
892
|
inductionVariable = inductionVariable + 1 | 0;
|
|
893
|
-
var element_0 = this.
|
|
893
|
+
var element_0 = this.b2j_1.h1(index);
|
|
894
894
|
this_0.q('; ');
|
|
895
|
-
this_0.q(element_0.
|
|
895
|
+
this_0.q(element_0.c2j_1);
|
|
896
896
|
this_0.q('=');
|
|
897
897
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
898
|
-
var this_1 = element_0.
|
|
898
|
+
var this_1 = element_0.d2j_1;
|
|
899
899
|
if (needQuotes(this_1))
|
|
900
900
|
this_0.q(quote(this_1));
|
|
901
901
|
else
|
|
@@ -992,7 +992,7 @@ function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
|
992
992
|
}
|
|
993
993
|
function Companion_1() {
|
|
994
994
|
Companion_instance_1 = this;
|
|
995
|
-
this.
|
|
995
|
+
this.j2l_1 = EmptyHeaders_instance;
|
|
996
996
|
}
|
|
997
997
|
var Companion_instance_1;
|
|
998
998
|
function Companion_getInstance_1() {
|
|
@@ -1004,39 +1004,39 @@ function HeadersBuilder(size) {
|
|
|
1004
1004
|
size = size === VOID ? 8 : size;
|
|
1005
1005
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1006
1006
|
}
|
|
1007
|
-
protoOf(HeadersBuilder).
|
|
1008
|
-
return new HeadersImpl(this.
|
|
1007
|
+
protoOf(HeadersBuilder).m2l = function () {
|
|
1008
|
+
return new HeadersImpl(this.t2e_1);
|
|
1009
1009
|
};
|
|
1010
|
-
protoOf(HeadersBuilder).
|
|
1011
|
-
protoOf(StringValuesBuilderImpl).
|
|
1012
|
-
HttpHeaders_getInstance().
|
|
1010
|
+
protoOf(HeadersBuilder).u2e = function (name) {
|
|
1011
|
+
protoOf(StringValuesBuilderImpl).u2e.call(this, name);
|
|
1012
|
+
HttpHeaders_getInstance().k2p(name);
|
|
1013
1013
|
};
|
|
1014
|
-
protoOf(HeadersBuilder).
|
|
1015
|
-
protoOf(StringValuesBuilderImpl).
|
|
1016
|
-
HttpHeaders_getInstance().
|
|
1014
|
+
protoOf(HeadersBuilder).w2e = function (value) {
|
|
1015
|
+
protoOf(StringValuesBuilderImpl).w2e.call(this, value);
|
|
1016
|
+
HttpHeaders_getInstance().l2p(value);
|
|
1017
1017
|
};
|
|
1018
1018
|
function headersOf(name, value) {
|
|
1019
1019
|
return new HeadersSingleImpl(name, listOf_0(value));
|
|
1020
1020
|
}
|
|
1021
1021
|
function EmptyHeaders() {
|
|
1022
1022
|
}
|
|
1023
|
-
protoOf(EmptyHeaders).
|
|
1023
|
+
protoOf(EmptyHeaders).o2e = function () {
|
|
1024
1024
|
return true;
|
|
1025
1025
|
};
|
|
1026
|
-
protoOf(EmptyHeaders).
|
|
1026
|
+
protoOf(EmptyHeaders).p2e = function (name) {
|
|
1027
1027
|
return null;
|
|
1028
1028
|
};
|
|
1029
|
-
protoOf(EmptyHeaders).
|
|
1029
|
+
protoOf(EmptyHeaders).q2e = function () {
|
|
1030
1030
|
return emptySet();
|
|
1031
1031
|
};
|
|
1032
|
-
protoOf(EmptyHeaders).
|
|
1032
|
+
protoOf(EmptyHeaders).m2e = function () {
|
|
1033
1033
|
return emptySet();
|
|
1034
1034
|
};
|
|
1035
1035
|
protoOf(EmptyHeaders).r = function () {
|
|
1036
1036
|
return true;
|
|
1037
1037
|
};
|
|
1038
1038
|
protoOf(EmptyHeaders).toString = function () {
|
|
1039
|
-
return 'Headers ' + toString(this.
|
|
1039
|
+
return 'Headers ' + toString(this.m2e());
|
|
1040
1040
|
};
|
|
1041
1041
|
var EmptyHeaders_instance;
|
|
1042
1042
|
function EmptyHeaders_getInstance() {
|
|
@@ -1047,27 +1047,27 @@ function HeadersImpl(values) {
|
|
|
1047
1047
|
StringValuesImpl.call(this, true, values);
|
|
1048
1048
|
}
|
|
1049
1049
|
protoOf(HeadersImpl).toString = function () {
|
|
1050
|
-
return 'Headers ' + toString(this.
|
|
1050
|
+
return 'Headers ' + toString(this.m2e());
|
|
1051
1051
|
};
|
|
1052
1052
|
function HeadersSingleImpl(name, values) {
|
|
1053
1053
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1054
1054
|
}
|
|
1055
1055
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1056
|
-
return 'Headers ' + toString(this.
|
|
1056
|
+
return 'Headers ' + toString(this.m2e());
|
|
1057
1057
|
};
|
|
1058
1058
|
function HeaderValue(value, params) {
|
|
1059
1059
|
params = params === VOID ? emptyList() : params;
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1060
|
+
this.g2j_1 = value;
|
|
1061
|
+
this.h2j_1 = params;
|
|
1062
1062
|
var tmp = this;
|
|
1063
|
-
var tmp0 = this.
|
|
1063
|
+
var tmp0 = this.h2j_1;
|
|
1064
1064
|
var tmp$ret$1;
|
|
1065
1065
|
$l$block: {
|
|
1066
1066
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1067
1067
|
var _iterator__ex2g4s = tmp0.t();
|
|
1068
1068
|
while (_iterator__ex2g4s.u()) {
|
|
1069
1069
|
var element = _iterator__ex2g4s.v();
|
|
1070
|
-
if (element.
|
|
1070
|
+
if (element.c2j_1 === 'q') {
|
|
1071
1071
|
tmp$ret$1 = element;
|
|
1072
1072
|
break $l$block;
|
|
1073
1073
|
}
|
|
@@ -1075,7 +1075,7 @@ function HeaderValue(value, params) {
|
|
|
1075
1075
|
tmp$ret$1 = null;
|
|
1076
1076
|
}
|
|
1077
1077
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1078
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1078
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d2j_1;
|
|
1079
1079
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1080
1080
|
var tmp_0;
|
|
1081
1081
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1091,17 +1091,17 @@ function HeaderValue(value, params) {
|
|
|
1091
1091
|
tmp_0 = tmp_1;
|
|
1092
1092
|
}
|
|
1093
1093
|
var tmp3_elvis_lhs = tmp_0;
|
|
1094
|
-
tmp.
|
|
1094
|
+
tmp.i2j_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1095
1095
|
}
|
|
1096
1096
|
protoOf(HeaderValue).se = function () {
|
|
1097
|
-
return this.
|
|
1097
|
+
return this.g2j_1;
|
|
1098
1098
|
};
|
|
1099
1099
|
protoOf(HeaderValue).toString = function () {
|
|
1100
|
-
return 'HeaderValue(value=' + this.
|
|
1100
|
+
return 'HeaderValue(value=' + this.g2j_1 + ', params=' + toString(this.h2j_1) + ')';
|
|
1101
1101
|
};
|
|
1102
1102
|
protoOf(HeaderValue).hashCode = function () {
|
|
1103
|
-
var result = getStringHashCode(this.
|
|
1104
|
-
result = imul(result, 31) + hashCode(this.
|
|
1103
|
+
var result = getStringHashCode(this.g2j_1);
|
|
1104
|
+
result = imul(result, 31) + hashCode(this.h2j_1) | 0;
|
|
1105
1105
|
return result;
|
|
1106
1106
|
};
|
|
1107
1107
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1109,9 +1109,9 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1109
1109
|
return true;
|
|
1110
1110
|
if (!(other instanceof HeaderValue))
|
|
1111
1111
|
return false;
|
|
1112
|
-
if (!(this.
|
|
1112
|
+
if (!(this.g2j_1 === other.g2j_1))
|
|
1113
1113
|
return false;
|
|
1114
|
-
if (!equals_0(this.
|
|
1114
|
+
if (!equals_0(this.h2j_1, other.h2j_1))
|
|
1115
1115
|
return false;
|
|
1116
1116
|
return true;
|
|
1117
1117
|
};
|
|
@@ -1131,20 +1131,20 @@ function HeaderValueParam_init_$Create$(name, value) {
|
|
|
1131
1131
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1132
1132
|
}
|
|
1133
1133
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1134
|
+
this.c2j_1 = name;
|
|
1135
|
+
this.d2j_1 = value;
|
|
1136
|
+
this.e2j_1 = escapeValue;
|
|
1137
1137
|
}
|
|
1138
1138
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1139
1139
|
var tmp;
|
|
1140
1140
|
var tmp_0;
|
|
1141
1141
|
if (other instanceof HeaderValueParam) {
|
|
1142
|
-
tmp_0 = equals(other.
|
|
1142
|
+
tmp_0 = equals(other.c2j_1, this.c2j_1, true);
|
|
1143
1143
|
} else {
|
|
1144
1144
|
tmp_0 = false;
|
|
1145
1145
|
}
|
|
1146
1146
|
if (tmp_0) {
|
|
1147
|
-
tmp = equals(other.
|
|
1147
|
+
tmp = equals(other.d2j_1, this.d2j_1, true);
|
|
1148
1148
|
} else {
|
|
1149
1149
|
tmp = false;
|
|
1150
1150
|
}
|
|
@@ -1153,24 +1153,24 @@ protoOf(HeaderValueParam).equals = function (other) {
|
|
|
1153
1153
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1154
1154
|
// Inline function 'kotlin.text.lowercase' call
|
|
1155
1155
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1156
|
-
var tmp$ret$1 = this.
|
|
1156
|
+
var tmp$ret$1 = this.c2j_1.toLowerCase();
|
|
1157
1157
|
var result = getStringHashCode(tmp$ret$1);
|
|
1158
1158
|
var tmp = result;
|
|
1159
1159
|
var tmp_0 = imul(31, result);
|
|
1160
1160
|
// Inline function 'kotlin.text.lowercase' call
|
|
1161
1161
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1162
|
-
var tmp$ret$3 = this.
|
|
1162
|
+
var tmp$ret$3 = this.d2j_1.toLowerCase();
|
|
1163
1163
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1164
1164
|
return result;
|
|
1165
1165
|
};
|
|
1166
1166
|
protoOf(HeaderValueParam).se = function () {
|
|
1167
|
-
return this.
|
|
1167
|
+
return this.c2j_1;
|
|
1168
1168
|
};
|
|
1169
1169
|
protoOf(HeaderValueParam).te = function () {
|
|
1170
|
-
return this.
|
|
1170
|
+
return this.d2j_1;
|
|
1171
1171
|
};
|
|
1172
1172
|
protoOf(HeaderValueParam).toString = function () {
|
|
1173
|
-
return 'HeaderValueParam(name=' + this.
|
|
1173
|
+
return 'HeaderValueParam(name=' + this.c2j_1 + ', value=' + this.d2j_1 + ', escapeValue=' + this.e2j_1 + ')';
|
|
1174
1174
|
};
|
|
1175
1175
|
function parseHeaderValue(text) {
|
|
1176
1176
|
return parseHeaderValue_0(text, false);
|
|
@@ -1294,16 +1294,16 @@ function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
|
1294
1294
|
return position === _this__u8e3s4.length || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(59) || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(44);
|
|
1295
1295
|
}
|
|
1296
1296
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1297
|
-
this.
|
|
1297
|
+
this.m2p_1 = function_0;
|
|
1298
1298
|
}
|
|
1299
1299
|
protoOf(sam$kotlin_Comparator$0).mc = function (a, b) {
|
|
1300
|
-
return this.
|
|
1300
|
+
return this.m2p_1(a, b);
|
|
1301
1301
|
};
|
|
1302
1302
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1303
1303
|
return this.mc(a, b);
|
|
1304
1304
|
};
|
|
1305
1305
|
protoOf(sam$kotlin_Comparator$0).g3 = function () {
|
|
1306
|
-
return this.
|
|
1306
|
+
return this.m2p_1;
|
|
1307
1307
|
};
|
|
1308
1308
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1309
1309
|
var tmp;
|
|
@@ -1325,8 +1325,8 @@ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
function parseAndSortHeader$lambda(a, b) {
|
|
1327
1327
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1328
|
-
var tmp = b.
|
|
1329
|
-
var tmp$ret$1 = a.
|
|
1328
|
+
var tmp = b.i2j_1;
|
|
1329
|
+
var tmp$ret$1 = a.i2j_1;
|
|
1330
1330
|
return compareValues(tmp, tmp$ret$1);
|
|
1331
1331
|
}
|
|
1332
1332
|
function parseHeaderValue$lambda() {
|
|
@@ -1347,113 +1347,113 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
|
|
|
1347
1347
|
}
|
|
1348
1348
|
function HttpHeaders() {
|
|
1349
1349
|
HttpHeaders_instance = this;
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
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.
|
|
1350
|
+
this.n2l_1 = 'Accept';
|
|
1351
|
+
this.o2l_1 = 'Accept-Charset';
|
|
1352
|
+
this.p2l_1 = 'Accept-Encoding';
|
|
1353
|
+
this.q2l_1 = 'Accept-Language';
|
|
1354
|
+
this.r2l_1 = 'Accept-Ranges';
|
|
1355
|
+
this.s2l_1 = 'Age';
|
|
1356
|
+
this.t2l_1 = 'Allow';
|
|
1357
|
+
this.u2l_1 = 'ALPN';
|
|
1358
|
+
this.v2l_1 = 'Authentication-Info';
|
|
1359
|
+
this.w2l_1 = 'Authorization';
|
|
1360
|
+
this.x2l_1 = 'Cache-Control';
|
|
1361
|
+
this.y2l_1 = 'Connection';
|
|
1362
|
+
this.z2l_1 = 'Content-Disposition';
|
|
1363
|
+
this.a2m_1 = 'Content-Encoding';
|
|
1364
|
+
this.b2m_1 = 'Content-Language';
|
|
1365
|
+
this.c2m_1 = 'Content-Length';
|
|
1366
|
+
this.d2m_1 = 'Content-Location';
|
|
1367
|
+
this.e2m_1 = 'Content-Range';
|
|
1368
|
+
this.f2m_1 = 'Content-Type';
|
|
1369
|
+
this.g2m_1 = 'Cookie';
|
|
1370
|
+
this.h2m_1 = 'DASL';
|
|
1371
|
+
this.i2m_1 = 'Date';
|
|
1372
|
+
this.j2m_1 = 'DAV';
|
|
1373
|
+
this.k2m_1 = 'Depth';
|
|
1374
|
+
this.l2m_1 = 'Destination';
|
|
1375
|
+
this.m2m_1 = 'ETag';
|
|
1376
|
+
this.n2m_1 = 'Expect';
|
|
1377
|
+
this.o2m_1 = 'Expires';
|
|
1378
|
+
this.p2m_1 = 'From';
|
|
1379
|
+
this.q2m_1 = 'Forwarded';
|
|
1380
|
+
this.r2m_1 = 'Host';
|
|
1381
|
+
this.s2m_1 = 'HTTP2-Settings';
|
|
1382
|
+
this.t2m_1 = 'If';
|
|
1383
|
+
this.u2m_1 = 'If-Match';
|
|
1384
|
+
this.v2m_1 = 'If-Modified-Since';
|
|
1385
|
+
this.w2m_1 = 'If-None-Match';
|
|
1386
|
+
this.x2m_1 = 'If-Range';
|
|
1387
|
+
this.y2m_1 = 'If-Schedule-Tag-Match';
|
|
1388
|
+
this.z2m_1 = 'If-Unmodified-Since';
|
|
1389
|
+
this.a2n_1 = 'Last-Modified';
|
|
1390
|
+
this.b2n_1 = 'Location';
|
|
1391
|
+
this.c2n_1 = 'Lock-Token';
|
|
1392
|
+
this.d2n_1 = 'Link';
|
|
1393
|
+
this.e2n_1 = 'Max-Forwards';
|
|
1394
|
+
this.f2n_1 = 'MIME-Version';
|
|
1395
|
+
this.g2n_1 = 'Ordering-Type';
|
|
1396
|
+
this.h2n_1 = 'Origin';
|
|
1397
|
+
this.i2n_1 = 'Overwrite';
|
|
1398
|
+
this.j2n_1 = 'Position';
|
|
1399
|
+
this.k2n_1 = 'Pragma';
|
|
1400
|
+
this.l2n_1 = 'Prefer';
|
|
1401
|
+
this.m2n_1 = 'Preference-Applied';
|
|
1402
|
+
this.n2n_1 = 'Proxy-Authenticate';
|
|
1403
|
+
this.o2n_1 = 'Proxy-Authentication-Info';
|
|
1404
|
+
this.p2n_1 = 'Proxy-Authorization';
|
|
1405
|
+
this.q2n_1 = 'Public-Key-Pins';
|
|
1406
|
+
this.r2n_1 = 'Public-Key-Pins-Report-Only';
|
|
1407
|
+
this.s2n_1 = 'Range';
|
|
1408
|
+
this.t2n_1 = 'Referer';
|
|
1409
|
+
this.u2n_1 = 'Retry-After';
|
|
1410
|
+
this.v2n_1 = 'Schedule-Reply';
|
|
1411
|
+
this.w2n_1 = 'Schedule-Tag';
|
|
1412
|
+
this.x2n_1 = 'Sec-WebSocket-Accept';
|
|
1413
|
+
this.y2n_1 = 'Sec-WebSocket-Extensions';
|
|
1414
|
+
this.z2n_1 = 'Sec-WebSocket-Key';
|
|
1415
|
+
this.a2o_1 = 'Sec-WebSocket-Protocol';
|
|
1416
|
+
this.b2o_1 = 'Sec-WebSocket-Version';
|
|
1417
|
+
this.c2o_1 = 'Server';
|
|
1418
|
+
this.d2o_1 = 'Set-Cookie';
|
|
1419
|
+
this.e2o_1 = 'SLUG';
|
|
1420
|
+
this.f2o_1 = 'Strict-Transport-Security';
|
|
1421
|
+
this.g2o_1 = 'TE';
|
|
1422
|
+
this.h2o_1 = 'Timeout';
|
|
1423
|
+
this.i2o_1 = 'Trailer';
|
|
1424
|
+
this.j2o_1 = 'Transfer-Encoding';
|
|
1425
|
+
this.k2o_1 = 'Upgrade';
|
|
1426
|
+
this.l2o_1 = 'User-Agent';
|
|
1427
|
+
this.m2o_1 = 'Vary';
|
|
1428
|
+
this.n2o_1 = 'Via';
|
|
1429
|
+
this.o2o_1 = 'Warning';
|
|
1430
|
+
this.p2o_1 = 'WWW-Authenticate';
|
|
1431
|
+
this.q2o_1 = 'Access-Control-Allow-Origin';
|
|
1432
|
+
this.r2o_1 = 'Access-Control-Allow-Methods';
|
|
1433
|
+
this.s2o_1 = 'Access-Control-Allow-Credentials';
|
|
1434
|
+
this.t2o_1 = 'Access-Control-Allow-Headers';
|
|
1435
|
+
this.u2o_1 = 'Access-Control-Request-Method';
|
|
1436
|
+
this.v2o_1 = 'Access-Control-Request-Headers';
|
|
1437
|
+
this.w2o_1 = 'Access-Control-Expose-Headers';
|
|
1438
|
+
this.x2o_1 = 'Access-Control-Max-Age';
|
|
1439
|
+
this.y2o_1 = 'X-Http-Method-Override';
|
|
1440
|
+
this.z2o_1 = 'X-Forwarded-Host';
|
|
1441
|
+
this.a2p_1 = 'X-Forwarded-Server';
|
|
1442
|
+
this.b2p_1 = 'X-Forwarded-Proto';
|
|
1443
|
+
this.c2p_1 = 'X-Forwarded-For';
|
|
1444
|
+
this.d2p_1 = 'X-Forwarded-Port';
|
|
1445
|
+
this.e2p_1 = 'X-Request-ID';
|
|
1446
|
+
this.f2p_1 = 'X-Correlation-ID';
|
|
1447
|
+
this.g2p_1 = 'X-Total-Count';
|
|
1448
|
+
this.h2p_1 = 'Last-Event-ID';
|
|
1449
1449
|
var tmp = this;
|
|
1450
1450
|
// Inline function 'kotlin.arrayOf' call
|
|
1451
1451
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1452
1452
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1453
|
-
tmp.
|
|
1454
|
-
this.
|
|
1453
|
+
tmp.i2p_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1454
|
+
this.j2p_1 = asList(this.i2p_1);
|
|
1455
1455
|
}
|
|
1456
|
-
protoOf(HttpHeaders).
|
|
1456
|
+
protoOf(HttpHeaders).k2p = function (name) {
|
|
1457
1457
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1458
1458
|
var index = 0;
|
|
1459
1459
|
var inductionVariable = 0;
|
|
@@ -1467,7 +1467,7 @@ protoOf(HttpHeaders).g2p = function (name) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
1470
|
-
protoOf(HttpHeaders).
|
|
1470
|
+
protoOf(HttpHeaders).l2p = function (value) {
|
|
1471
1471
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1472
1472
|
var index = 0;
|
|
1473
1473
|
var inductionVariable = 0;
|
|
@@ -1501,8 +1501,8 @@ function IllegalHeaderNameException(headerName, position) {
|
|
|
1501
1501
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1502
1502
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1503
1503
|
captureStack(this, IllegalHeaderNameException);
|
|
1504
|
-
this.
|
|
1505
|
-
this.
|
|
1504
|
+
this.n2p_1 = headerName;
|
|
1505
|
+
this.o2p_1 = position;
|
|
1506
1506
|
}
|
|
1507
1507
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1508
1508
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1511,15 +1511,15 @@ function IllegalHeaderValueException(headerValue, position) {
|
|
|
1511
1511
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1512
1512
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1513
1513
|
captureStack(this, IllegalHeaderValueException);
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1514
|
+
this.p2p_1 = headerValue;
|
|
1515
|
+
this.q2p_1 = position;
|
|
1516
1516
|
}
|
|
1517
1517
|
function contentLength(_this__u8e3s4) {
|
|
1518
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1518
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2p().j2d('Content-Length');
|
|
1519
1519
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1520
1520
|
}
|
|
1521
1521
|
function contentType(_this__u8e3s4) {
|
|
1522
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1522
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2p().j2d('Content-Type');
|
|
1523
1523
|
var tmp;
|
|
1524
1524
|
if (tmp0_safe_receiver == null) {
|
|
1525
1525
|
tmp = null;
|
|
@@ -1530,7 +1530,7 @@ function contentType(_this__u8e3s4) {
|
|
|
1530
1530
|
return tmp;
|
|
1531
1531
|
}
|
|
1532
1532
|
function contentType_0(_this__u8e3s4) {
|
|
1533
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1533
|
+
var tmp0_safe_receiver = _this__u8e3s4.r2p().j2d('Content-Type');
|
|
1534
1534
|
var tmp;
|
|
1535
1535
|
if (tmp0_safe_receiver == null) {
|
|
1536
1536
|
tmp = null;
|
|
@@ -1545,7 +1545,7 @@ function charset_0(_this__u8e3s4) {
|
|
|
1545
1545
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1546
1546
|
}
|
|
1547
1547
|
function contentType_1(_this__u8e3s4, type) {
|
|
1548
|
-
return _this__u8e3s4.
|
|
1548
|
+
return _this__u8e3s4.r2p().v2e('Content-Type', type.toString());
|
|
1549
1549
|
}
|
|
1550
1550
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1551
1551
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
@@ -1554,16 +1554,16 @@ function get_REQUESTS_WITHOUT_BODY() {
|
|
|
1554
1554
|
var REQUESTS_WITHOUT_BODY;
|
|
1555
1555
|
function Companion_2() {
|
|
1556
1556
|
Companion_instance_2 = this;
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1557
|
+
this.s2p_1 = new HttpMethod('GET');
|
|
1558
|
+
this.t2p_1 = new HttpMethod('POST');
|
|
1559
|
+
this.u2p_1 = new HttpMethod('PUT');
|
|
1560
|
+
this.v2p_1 = new HttpMethod('PATCH');
|
|
1561
|
+
this.w2p_1 = new HttpMethod('DELETE');
|
|
1562
|
+
this.x2p_1 = new HttpMethod('HEAD');
|
|
1563
|
+
this.y2p_1 = new HttpMethod('OPTIONS');
|
|
1564
|
+
this.z2p_1 = new HttpMethod('TRACE');
|
|
1565
|
+
this.a2q_1 = new HttpMethod('QUERY');
|
|
1566
|
+
this.b2q_1 = listOf([this.s2p_1, this.t2p_1, this.u2p_1, this.v2p_1, this.w2p_1, this.x2p_1, this.y2p_1]);
|
|
1567
1567
|
}
|
|
1568
1568
|
var Companion_instance_2;
|
|
1569
1569
|
function Companion_getInstance_2() {
|
|
@@ -1573,20 +1573,20 @@ function Companion_getInstance_2() {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
function HttpMethod(value) {
|
|
1575
1575
|
Companion_getInstance_2();
|
|
1576
|
-
this.
|
|
1576
|
+
this.c2q_1 = value;
|
|
1577
1577
|
}
|
|
1578
1578
|
protoOf(HttpMethod).toString = function () {
|
|
1579
|
-
return this.
|
|
1579
|
+
return this.c2q_1;
|
|
1580
1580
|
};
|
|
1581
1581
|
protoOf(HttpMethod).hashCode = function () {
|
|
1582
|
-
return getStringHashCode(this.
|
|
1582
|
+
return getStringHashCode(this.c2q_1);
|
|
1583
1583
|
};
|
|
1584
1584
|
protoOf(HttpMethod).equals = function (other) {
|
|
1585
1585
|
if (this === other)
|
|
1586
1586
|
return true;
|
|
1587
1587
|
if (!(other instanceof HttpMethod))
|
|
1588
1588
|
return false;
|
|
1589
|
-
if (!(this.
|
|
1589
|
+
if (!(this.c2q_1 === other.c2q_1))
|
|
1590
1590
|
return false;
|
|
1591
1591
|
return true;
|
|
1592
1592
|
};
|
|
@@ -1598,17 +1598,17 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1598
1598
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1599
1599
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1600
1600
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1601
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1601
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().s2p_1, Companion_getInstance_2().x2p_1, Companion_getInstance_2().y2p_1, Companion_getInstance_2().z2p_1]);
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
1604
|
function Companion_3() {
|
|
1605
1605
|
Companion_instance_3 = this;
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1606
|
+
this.d2q_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1607
|
+
this.e2q_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1608
|
+
this.f2q_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1609
|
+
this.g2q_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1610
|
+
this.h2q_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1611
|
+
this.i2q_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1612
1612
|
}
|
|
1613
1613
|
var Companion_instance_3;
|
|
1614
1614
|
function Companion_getInstance_3() {
|
|
@@ -1618,17 +1618,17 @@ function Companion_getInstance_3() {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
function HttpProtocolVersion(name, major, minor) {
|
|
1620
1620
|
Companion_getInstance_3();
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1621
|
+
this.j2q_1 = name;
|
|
1622
|
+
this.k2q_1 = major;
|
|
1623
|
+
this.l2q_1 = minor;
|
|
1624
1624
|
}
|
|
1625
1625
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1626
|
-
return this.
|
|
1626
|
+
return this.j2q_1 + '/' + this.k2q_1 + '.' + this.l2q_1;
|
|
1627
1627
|
};
|
|
1628
1628
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1629
|
-
var result = getStringHashCode(this.
|
|
1630
|
-
result = imul(result, 31) + this.
|
|
1631
|
-
result = imul(result, 31) + this.
|
|
1629
|
+
var result = getStringHashCode(this.j2q_1);
|
|
1630
|
+
result = imul(result, 31) + this.k2q_1 | 0;
|
|
1631
|
+
result = imul(result, 31) + this.l2q_1 | 0;
|
|
1632
1632
|
return result;
|
|
1633
1633
|
};
|
|
1634
1634
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1636,83 +1636,83 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1636
1636
|
return true;
|
|
1637
1637
|
if (!(other instanceof HttpProtocolVersion))
|
|
1638
1638
|
return false;
|
|
1639
|
-
if (!(this.
|
|
1639
|
+
if (!(this.j2q_1 === other.j2q_1))
|
|
1640
1640
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1641
|
+
if (!(this.k2q_1 === other.k2q_1))
|
|
1642
1642
|
return false;
|
|
1643
|
-
if (!(this.
|
|
1643
|
+
if (!(this.l2q_1 === other.l2q_1))
|
|
1644
1644
|
return false;
|
|
1645
1645
|
return true;
|
|
1646
1646
|
};
|
|
1647
1647
|
function Companion_4() {
|
|
1648
1648
|
Companion_instance_4 = this;
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1649
|
+
this.m2q_1 = new HttpStatusCode(100, 'Continue');
|
|
1650
|
+
this.n2q_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1651
|
+
this.o2q_1 = new HttpStatusCode(102, 'Processing');
|
|
1652
|
+
this.p2q_1 = new HttpStatusCode(200, 'OK');
|
|
1653
|
+
this.q2q_1 = new HttpStatusCode(201, 'Created');
|
|
1654
|
+
this.r2q_1 = new HttpStatusCode(202, 'Accepted');
|
|
1655
|
+
this.s2q_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1656
|
+
this.t2q_1 = new HttpStatusCode(204, 'No Content');
|
|
1657
|
+
this.u2q_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1658
|
+
this.v2q_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1659
|
+
this.w2q_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1660
|
+
this.x2q_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1661
|
+
this.y2q_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1662
|
+
this.z2q_1 = new HttpStatusCode(302, 'Found');
|
|
1663
|
+
this.a2r_1 = new HttpStatusCode(303, 'See Other');
|
|
1664
|
+
this.b2r_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1665
|
+
this.c2r_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1666
|
+
this.d2r_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1667
|
+
this.e2r_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1668
|
+
this.f2r_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1669
|
+
this.g2r_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1670
|
+
this.h2r_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1671
|
+
this.i2r_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1672
|
+
this.j2r_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1673
|
+
this.k2r_1 = new HttpStatusCode(404, 'Not Found');
|
|
1674
|
+
this.l2r_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1675
|
+
this.m2r_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1676
|
+
this.n2r_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1677
|
+
this.o2r_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1678
|
+
this.p2r_1 = new HttpStatusCode(409, 'Conflict');
|
|
1679
|
+
this.q2r_1 = new HttpStatusCode(410, 'Gone');
|
|
1680
|
+
this.r2r_1 = new HttpStatusCode(411, 'Length Required');
|
|
1681
|
+
this.s2r_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1682
|
+
this.t2r_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1683
|
+
this.u2r_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1684
|
+
this.v2r_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1685
|
+
this.w2r_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1686
|
+
this.x2r_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1687
|
+
this.y2r_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1688
|
+
this.z2r_1 = new HttpStatusCode(423, 'Locked');
|
|
1689
|
+
this.a2s_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1690
|
+
this.b2s_1 = new HttpStatusCode(425, 'Too Early');
|
|
1691
|
+
this.c2s_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1692
|
+
this.d2s_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1693
|
+
this.e2s_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1694
|
+
this.f2s_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1695
|
+
this.g2s_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1696
|
+
this.h2s_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1697
|
+
this.i2s_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1698
|
+
this.j2s_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1699
|
+
this.k2s_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1700
|
+
this.l2s_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1701
|
+
this.m2s_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1702
|
+
this.n2s_1 = allStatusCodes();
|
|
1703
1703
|
var tmp = this;
|
|
1704
1704
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1705
|
-
var this_0 = this.
|
|
1705
|
+
var this_0 = this.n2s_1;
|
|
1706
1706
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1707
1707
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1708
1708
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1709
1709
|
var _iterator__ex2g4s = this_0.t();
|
|
1710
1710
|
while (_iterator__ex2g4s.u()) {
|
|
1711
1711
|
var element = _iterator__ex2g4s.v();
|
|
1712
|
-
var tmp$ret$0 = element.
|
|
1712
|
+
var tmp$ret$0 = element.p2s_1;
|
|
1713
1713
|
destination.s2(tmp$ret$0, element);
|
|
1714
1714
|
}
|
|
1715
|
-
tmp.
|
|
1715
|
+
tmp.o2s_1 = destination;
|
|
1716
1716
|
}
|
|
1717
1717
|
var Companion_instance_4;
|
|
1718
1718
|
function Companion_getInstance_4() {
|
|
@@ -1722,40 +1722,40 @@ function Companion_getInstance_4() {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
function HttpStatusCode(value, description) {
|
|
1724
1724
|
Companion_getInstance_4();
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1725
|
+
this.p2s_1 = value;
|
|
1726
|
+
this.q2s_1 = description;
|
|
1727
1727
|
}
|
|
1728
1728
|
protoOf(HttpStatusCode).toString = function () {
|
|
1729
|
-
return '' + this.
|
|
1729
|
+
return '' + this.p2s_1 + ' ' + this.q2s_1;
|
|
1730
1730
|
};
|
|
1731
1731
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1732
1732
|
var tmp;
|
|
1733
1733
|
if (other instanceof HttpStatusCode) {
|
|
1734
|
-
tmp = other.
|
|
1734
|
+
tmp = other.p2s_1 === this.p2s_1;
|
|
1735
1735
|
} else {
|
|
1736
1736
|
tmp = false;
|
|
1737
1737
|
}
|
|
1738
1738
|
return tmp;
|
|
1739
1739
|
};
|
|
1740
1740
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1741
|
-
return this.
|
|
1741
|
+
return this.p2s_1;
|
|
1742
1742
|
};
|
|
1743
|
-
protoOf(HttpStatusCode).
|
|
1744
|
-
return this.
|
|
1743
|
+
protoOf(HttpStatusCode).r2s = function (other) {
|
|
1744
|
+
return this.p2s_1 - other.p2s_1 | 0;
|
|
1745
1745
|
};
|
|
1746
1746
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1747
|
-
return this.
|
|
1747
|
+
return this.r2s(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1748
1748
|
};
|
|
1749
1749
|
function allStatusCodes() {
|
|
1750
|
-
return listOf([Companion_getInstance_4().
|
|
1750
|
+
return listOf([Companion_getInstance_4().m2q_1, Companion_getInstance_4().n2q_1, Companion_getInstance_4().o2q_1, Companion_getInstance_4().p2q_1, Companion_getInstance_4().q2q_1, Companion_getInstance_4().r2q_1, Companion_getInstance_4().s2q_1, Companion_getInstance_4().t2q_1, Companion_getInstance_4().u2q_1, Companion_getInstance_4().v2q_1, Companion_getInstance_4().w2q_1, Companion_getInstance_4().x2q_1, Companion_getInstance_4().y2q_1, Companion_getInstance_4().z2q_1, Companion_getInstance_4().a2r_1, Companion_getInstance_4().b2r_1, Companion_getInstance_4().c2r_1, Companion_getInstance_4().d2r_1, Companion_getInstance_4().e2r_1, Companion_getInstance_4().f2r_1, Companion_getInstance_4().g2r_1, Companion_getInstance_4().h2r_1, Companion_getInstance_4().i2r_1, Companion_getInstance_4().j2r_1, Companion_getInstance_4().k2r_1, Companion_getInstance_4().l2r_1, Companion_getInstance_4().m2r_1, Companion_getInstance_4().n2r_1, Companion_getInstance_4().o2r_1, Companion_getInstance_4().p2r_1, Companion_getInstance_4().q2r_1, Companion_getInstance_4().r2r_1, Companion_getInstance_4().s2r_1, Companion_getInstance_4().t2r_1, Companion_getInstance_4().u2r_1, Companion_getInstance_4().v2r_1, Companion_getInstance_4().w2r_1, Companion_getInstance_4().x2r_1, Companion_getInstance_4().y2r_1, Companion_getInstance_4().z2r_1, Companion_getInstance_4().a2s_1, Companion_getInstance_4().b2s_1, Companion_getInstance_4().c2s_1, Companion_getInstance_4().d2s_1, Companion_getInstance_4().e2s_1, Companion_getInstance_4().f2s_1, Companion_getInstance_4().g2s_1, Companion_getInstance_4().h2s_1, Companion_getInstance_4().i2s_1, Companion_getInstance_4().j2s_1, Companion_getInstance_4().k2s_1, Companion_getInstance_4().l2s_1, Companion_getInstance_4().m2s_1]);
|
|
1751
1751
|
}
|
|
1752
1752
|
function isSuccess(_this__u8e3s4) {
|
|
1753
|
-
var containsArg = _this__u8e3s4.
|
|
1753
|
+
var containsArg = _this__u8e3s4.p2s_1;
|
|
1754
1754
|
return 200 <= containsArg ? containsArg < 300 : false;
|
|
1755
1755
|
}
|
|
1756
1756
|
function formUrlEncode(_this__u8e3s4) {
|
|
1757
1757
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1758
|
-
var tmp0 = _this__u8e3s4.
|
|
1758
|
+
var tmp0 = _this__u8e3s4.m2e();
|
|
1759
1759
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1760
1760
|
var destination = ArrayList_init_$Create$_0();
|
|
1761
1761
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1799,7 +1799,7 @@ function formUrlEncodeTo$lambda(it) {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
function Companion_5() {
|
|
1801
1801
|
Companion_instance_5 = this;
|
|
1802
|
-
this.
|
|
1802
|
+
this.s2s_1 = EmptyParameters_instance;
|
|
1803
1803
|
}
|
|
1804
1804
|
var Companion_instance_5;
|
|
1805
1805
|
function Companion_getInstance_5() {
|
|
@@ -1811,23 +1811,23 @@ function Parameters() {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
function EmptyParameters() {
|
|
1813
1813
|
}
|
|
1814
|
-
protoOf(EmptyParameters).
|
|
1814
|
+
protoOf(EmptyParameters).o2e = function () {
|
|
1815
1815
|
return true;
|
|
1816
1816
|
};
|
|
1817
|
-
protoOf(EmptyParameters).
|
|
1817
|
+
protoOf(EmptyParameters).p2e = function (name) {
|
|
1818
1818
|
return null;
|
|
1819
1819
|
};
|
|
1820
|
-
protoOf(EmptyParameters).
|
|
1820
|
+
protoOf(EmptyParameters).q2e = function () {
|
|
1821
1821
|
return emptySet();
|
|
1822
1822
|
};
|
|
1823
|
-
protoOf(EmptyParameters).
|
|
1823
|
+
protoOf(EmptyParameters).m2e = function () {
|
|
1824
1824
|
return emptySet();
|
|
1825
1825
|
};
|
|
1826
1826
|
protoOf(EmptyParameters).r = function () {
|
|
1827
1827
|
return true;
|
|
1828
1828
|
};
|
|
1829
1829
|
protoOf(EmptyParameters).toString = function () {
|
|
1830
|
-
return 'Parameters ' + toString(this.
|
|
1830
|
+
return 'Parameters ' + toString(this.m2e());
|
|
1831
1831
|
};
|
|
1832
1832
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1833
1833
|
var tmp;
|
|
@@ -1850,15 +1850,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1850
1850
|
size = size === VOID ? 8 : size;
|
|
1851
1851
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1852
1852
|
}
|
|
1853
|
-
protoOf(ParametersBuilderImpl).
|
|
1854
|
-
return new ParametersImpl(this.
|
|
1853
|
+
protoOf(ParametersBuilderImpl).m2l = function () {
|
|
1854
|
+
return new ParametersImpl(this.t2e_1);
|
|
1855
1855
|
};
|
|
1856
1856
|
function ParametersImpl(values) {
|
|
1857
1857
|
values = values === VOID ? emptyMap() : values;
|
|
1858
1858
|
StringValuesImpl.call(this, true, values);
|
|
1859
1859
|
}
|
|
1860
1860
|
protoOf(ParametersImpl).toString = function () {
|
|
1861
|
-
return 'Parameters ' + toString(this.
|
|
1861
|
+
return 'Parameters ' + toString(this.m2e());
|
|
1862
1862
|
};
|
|
1863
1863
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1864
1864
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1866,14 +1866,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1866
1866
|
decode = decode === VOID ? true : decode;
|
|
1867
1867
|
var tmp;
|
|
1868
1868
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1869
|
-
tmp = Companion_getInstance_5().
|
|
1869
|
+
tmp = Companion_getInstance_5().s2s_1;
|
|
1870
1870
|
} else {
|
|
1871
1871
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1872
1872
|
Companion_getInstance_5();
|
|
1873
1873
|
// Inline function 'kotlin.apply' call
|
|
1874
1874
|
var this_0 = ParametersBuilder();
|
|
1875
1875
|
parse(this_0, query, startIndex, limit, decode);
|
|
1876
|
-
tmp = this_0.
|
|
1876
|
+
tmp = this_0.m2l();
|
|
1877
1877
|
}
|
|
1878
1878
|
return tmp;
|
|
1879
1879
|
}
|
|
@@ -1914,7 +1914,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1914
1914
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1915
1915
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1916
1916
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1917
|
-
_this__u8e3s4.
|
|
1917
|
+
_this__u8e3s4.n2e(name, emptyList());
|
|
1918
1918
|
}
|
|
1919
1919
|
return Unit_instance;
|
|
1920
1920
|
}
|
|
@@ -1925,7 +1925,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1925
1925
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1926
1926
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1927
1927
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1928
|
-
_this__u8e3s4.
|
|
1928
|
+
_this__u8e3s4.x2e(name_0, value);
|
|
1929
1929
|
}
|
|
1930
1930
|
}
|
|
1931
1931
|
function trimStart(start, end, query) {
|
|
@@ -1945,25 +1945,25 @@ function trimEnd(start, end, text) {
|
|
|
1945
1945
|
function applyOrigin($this) {
|
|
1946
1946
|
var tmp;
|
|
1947
1947
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1948
|
-
var this_0 = $this.
|
|
1948
|
+
var this_0 = $this.v2s_1;
|
|
1949
1949
|
if (charSequenceLength(this_0) > 0) {
|
|
1950
1950
|
tmp = true;
|
|
1951
1951
|
} else {
|
|
1952
|
-
tmp = $this.
|
|
1952
|
+
tmp = $this.h2t().f2t_1 === 'file';
|
|
1953
1953
|
}
|
|
1954
1954
|
if (tmp)
|
|
1955
1955
|
return Unit_instance;
|
|
1956
|
-
$this.
|
|
1957
|
-
if ($this.
|
|
1958
|
-
$this.
|
|
1959
|
-
if ($this.
|
|
1960
|
-
$this.
|
|
1956
|
+
$this.v2s_1 = Companion_getInstance_6().b2u_1.i2t_1;
|
|
1957
|
+
if ($this.y2s_1 == null)
|
|
1958
|
+
$this.y2s_1 = Companion_getInstance_6().b2u_1.t2t_1;
|
|
1959
|
+
if ($this.x2s_1 === 0) {
|
|
1960
|
+
$this.d2u(Companion_getInstance_6().b2u_1.j2t_1);
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
function Companion_6() {
|
|
1964
1964
|
Companion_instance_6 = this;
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1965
|
+
this.b2u_1 = Url(get_origin(this));
|
|
1966
|
+
this.c2u_1 = 256;
|
|
1967
1967
|
}
|
|
1968
1968
|
var Companion_instance_6;
|
|
1969
1969
|
function Companion_getInstance_6() {
|
|
@@ -1979,18 +1979,18 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1979
1979
|
user = user === VOID ? null : user;
|
|
1980
1980
|
password = password === VOID ? null : password;
|
|
1981
1981
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1982
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1982
|
+
parameters = parameters === VOID ? Companion_getInstance_5().s2s_1 : parameters;
|
|
1983
1983
|
fragment = fragment === VOID ? '' : fragment;
|
|
1984
1984
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1985
|
-
this.
|
|
1986
|
-
this.
|
|
1987
|
-
this.
|
|
1988
|
-
this.
|
|
1985
|
+
this.v2s_1 = host;
|
|
1986
|
+
this.w2s_1 = trailingQuery;
|
|
1987
|
+
this.x2s_1 = port;
|
|
1988
|
+
this.y2s_1 = protocol;
|
|
1989
1989
|
var tmp = this;
|
|
1990
|
-
tmp.
|
|
1990
|
+
tmp.z2s_1 = user == null ? null : encodeURLParameter(user);
|
|
1991
1991
|
var tmp_0 = this;
|
|
1992
|
-
tmp_0.
|
|
1993
|
-
this.
|
|
1992
|
+
tmp_0.a2t_1 = password == null ? null : encodeURLParameter(password);
|
|
1993
|
+
this.b2t_1 = encodeURLQueryComponent(fragment);
|
|
1994
1994
|
var tmp_1 = this;
|
|
1995
1995
|
// Inline function 'kotlin.collections.map' call
|
|
1996
1996
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2001,43 +2001,43 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
2001
2001
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
2002
2002
|
destination.e1(tmp$ret$0);
|
|
2003
2003
|
}
|
|
2004
|
-
tmp_1.
|
|
2005
|
-
this.
|
|
2006
|
-
this.
|
|
2004
|
+
tmp_1.c2t_1 = destination;
|
|
2005
|
+
this.d2t_1 = encodeParameters(parameters);
|
|
2006
|
+
this.e2t_1 = new UrlDecodedParametersBuilder(this.d2t_1);
|
|
2007
2007
|
}
|
|
2008
|
-
protoOf(URLBuilder).
|
|
2008
|
+
protoOf(URLBuilder).d2u = function (value) {
|
|
2009
2009
|
// Inline function 'kotlin.require' call
|
|
2010
2010
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
2011
2011
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
2012
2012
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2013
2013
|
}
|
|
2014
|
-
this.
|
|
2014
|
+
this.x2s_1 = value;
|
|
2015
2015
|
};
|
|
2016
|
-
protoOf(URLBuilder).
|
|
2017
|
-
this.
|
|
2016
|
+
protoOf(URLBuilder).e2u = function (value) {
|
|
2017
|
+
this.y2s_1 = value;
|
|
2018
2018
|
};
|
|
2019
|
-
protoOf(URLBuilder).
|
|
2020
|
-
var tmp0_elvis_lhs = this.
|
|
2021
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
2019
|
+
protoOf(URLBuilder).h2t = function () {
|
|
2020
|
+
var tmp0_elvis_lhs = this.y2s_1;
|
|
2021
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().f2u_1 : tmp0_elvis_lhs;
|
|
2022
2022
|
};
|
|
2023
|
-
protoOf(URLBuilder).
|
|
2023
|
+
protoOf(URLBuilder).l2u = function (value) {
|
|
2024
2024
|
var tmp = this;
|
|
2025
|
-
tmp.
|
|
2025
|
+
tmp.z2s_1 = value == null ? null : encodeURLParameter(value);
|
|
2026
2026
|
};
|
|
2027
|
-
protoOf(URLBuilder).
|
|
2028
|
-
var tmp0_safe_receiver = this.
|
|
2027
|
+
protoOf(URLBuilder).m2u = function () {
|
|
2028
|
+
var tmp0_safe_receiver = this.z2s_1;
|
|
2029
2029
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2030
2030
|
};
|
|
2031
|
-
protoOf(URLBuilder).
|
|
2032
|
-
var tmp0_safe_receiver = this.
|
|
2031
|
+
protoOf(URLBuilder).n2u = function () {
|
|
2032
|
+
var tmp0_safe_receiver = this.a2t_1;
|
|
2033
2033
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2034
2034
|
};
|
|
2035
|
-
protoOf(URLBuilder).
|
|
2036
|
-
return decodeURLQueryComponent(this.
|
|
2035
|
+
protoOf(URLBuilder).o2u = function () {
|
|
2036
|
+
return decodeURLQueryComponent(this.b2t_1);
|
|
2037
2037
|
};
|
|
2038
|
-
protoOf(URLBuilder).
|
|
2038
|
+
protoOf(URLBuilder).p2u = function () {
|
|
2039
2039
|
// Inline function 'kotlin.collections.map' call
|
|
2040
|
-
var this_0 = this.
|
|
2040
|
+
var this_0 = this.c2t_1;
|
|
2041
2041
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2042
2042
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2043
2043
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2048,60 +2048,60 @@ protoOf(URLBuilder).l2u = function () {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
return destination;
|
|
2050
2050
|
};
|
|
2051
|
-
protoOf(URLBuilder).
|
|
2052
|
-
this.
|
|
2053
|
-
this.
|
|
2051
|
+
protoOf(URLBuilder).q2u = function (value) {
|
|
2052
|
+
this.d2t_1 = value;
|
|
2053
|
+
this.e2t_1 = new UrlDecodedParametersBuilder(value);
|
|
2054
2054
|
};
|
|
2055
|
-
protoOf(URLBuilder).
|
|
2055
|
+
protoOf(URLBuilder).r2u = function () {
|
|
2056
2056
|
applyOrigin(this);
|
|
2057
2057
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2058
2058
|
};
|
|
2059
2059
|
protoOf(URLBuilder).toString = function () {
|
|
2060
2060
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2061
2061
|
};
|
|
2062
|
-
protoOf(URLBuilder).
|
|
2062
|
+
protoOf(URLBuilder).m2l = function () {
|
|
2063
2063
|
applyOrigin(this);
|
|
2064
|
-
return new Url_0(this.
|
|
2064
|
+
return new Url_0(this.y2s_1, this.v2s_1, this.x2s_1, this.p2u(), this.e2t_1.m2l(), this.o2u(), this.m2u(), this.n2u(), this.w2s_1, this.r2u());
|
|
2065
2065
|
};
|
|
2066
2066
|
function get_authority(_this__u8e3s4) {
|
|
2067
2067
|
// Inline function 'kotlin.text.buildString' call
|
|
2068
2068
|
// Inline function 'kotlin.apply' call
|
|
2069
2069
|
var this_0 = StringBuilder_init_$Create$();
|
|
2070
2070
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2071
|
-
this_0.q(_this__u8e3s4.
|
|
2072
|
-
if (!(_this__u8e3s4.
|
|
2071
|
+
this_0.q(_this__u8e3s4.v2s_1);
|
|
2072
|
+
if (!(_this__u8e3s4.x2s_1 === 0) && !(_this__u8e3s4.x2s_1 === _this__u8e3s4.h2t().g2t_1)) {
|
|
2073
2073
|
this_0.q(':');
|
|
2074
|
-
this_0.q(_this__u8e3s4.
|
|
2074
|
+
this_0.q(_this__u8e3s4.x2s_1.toString());
|
|
2075
2075
|
}
|
|
2076
2076
|
return this_0.toString();
|
|
2077
2077
|
}
|
|
2078
2078
|
function appendTo(_this__u8e3s4, out) {
|
|
2079
|
-
out.f1(_this__u8e3s4.
|
|
2080
|
-
switch (_this__u8e3s4.
|
|
2079
|
+
out.f1(_this__u8e3s4.h2t().f2t_1);
|
|
2080
|
+
switch (_this__u8e3s4.h2t().f2t_1) {
|
|
2081
2081
|
case 'file':
|
|
2082
|
-
appendFile(out, _this__u8e3s4.
|
|
2082
|
+
appendFile(out, _this__u8e3s4.v2s_1, get_encodedPath(_this__u8e3s4));
|
|
2083
2083
|
return out;
|
|
2084
2084
|
case 'mailto':
|
|
2085
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2085
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.v2s_1);
|
|
2086
2086
|
return out;
|
|
2087
2087
|
case 'about':
|
|
2088
|
-
appendPayload(out, _this__u8e3s4.
|
|
2088
|
+
appendPayload(out, _this__u8e3s4.v2s_1);
|
|
2089
2089
|
return out;
|
|
2090
2090
|
case 'tel':
|
|
2091
|
-
appendPayload(out, _this__u8e3s4.
|
|
2091
|
+
appendPayload(out, _this__u8e3s4.v2s_1);
|
|
2092
2092
|
return out;
|
|
2093
2093
|
case 'data':
|
|
2094
|
-
appendPayload(out, _this__u8e3s4.
|
|
2094
|
+
appendPayload(out, _this__u8e3s4.v2s_1);
|
|
2095
2095
|
return out;
|
|
2096
2096
|
}
|
|
2097
2097
|
out.f1('://');
|
|
2098
2098
|
out.f1(get_authority(_this__u8e3s4));
|
|
2099
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2099
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.d2t_1, _this__u8e3s4.w2s_1);
|
|
2100
2100
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2101
|
-
var this_0 = _this__u8e3s4.
|
|
2101
|
+
var this_0 = _this__u8e3s4.b2t_1;
|
|
2102
2102
|
if (charSequenceLength(this_0) > 0) {
|
|
2103
2103
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2104
|
-
out.f1(_this__u8e3s4.
|
|
2104
|
+
out.f1(_this__u8e3s4.b2t_1);
|
|
2105
2105
|
}
|
|
2106
2106
|
return out;
|
|
2107
2107
|
}
|
|
@@ -2109,7 +2109,7 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
2109
2109
|
// Inline function 'kotlin.text.buildString' call
|
|
2110
2110
|
// Inline function 'kotlin.apply' call
|
|
2111
2111
|
var this_0 = StringBuilder_init_$Create$();
|
|
2112
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2112
|
+
appendUserAndPassword(this_0, _this__u8e3s4.z2s_1, _this__u8e3s4.a2t_1);
|
|
2113
2113
|
return this_0.toString();
|
|
2114
2114
|
}
|
|
2115
2115
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2121,10 +2121,10 @@ function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
|
2121
2121
|
_this__u8e3s4.f1(encodedPath);
|
|
2122
2122
|
}
|
|
2123
2123
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2124
|
-
_this__u8e3s4.
|
|
2124
|
+
_this__u8e3s4.c2t_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2125
2125
|
}
|
|
2126
2126
|
function get_encodedPath(_this__u8e3s4) {
|
|
2127
|
-
return joinPath(_this__u8e3s4.
|
|
2127
|
+
return joinPath(_this__u8e3s4.c2t_1);
|
|
2128
2128
|
}
|
|
2129
2129
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2130
2130
|
_this__u8e3s4.f1(':');
|
|
@@ -2212,20 +2212,20 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2212
2212
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2213
2213
|
if (schemeLength > 0) {
|
|
2214
2214
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2215
|
-
_this__u8e3s4.
|
|
2215
|
+
_this__u8e3s4.e2u(Companion_getInstance_7().s2u(scheme));
|
|
2216
2216
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2217
2217
|
}
|
|
2218
|
-
if (_this__u8e3s4.
|
|
2219
|
-
_this__u8e3s4.
|
|
2218
|
+
if (_this__u8e3s4.h2t().f2t_1 === 'data') {
|
|
2219
|
+
_this__u8e3s4.v2s_1 = substring(urlString, startIndex, endIndex);
|
|
2220
2220
|
return _this__u8e3s4;
|
|
2221
2221
|
}
|
|
2222
2222
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2223
2223
|
startIndex = startIndex + slashCount | 0;
|
|
2224
|
-
if (_this__u8e3s4.
|
|
2224
|
+
if (_this__u8e3s4.h2t().f2t_1 === 'file') {
|
|
2225
2225
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2226
2226
|
return _this__u8e3s4;
|
|
2227
2227
|
}
|
|
2228
|
-
if (_this__u8e3s4.
|
|
2228
|
+
if (_this__u8e3s4.h2t().f2t_1 === 'mailto') {
|
|
2229
2229
|
// Inline function 'kotlin.require' call
|
|
2230
2230
|
// Inline function 'kotlin.require' call
|
|
2231
2231
|
if (!(slashCount === 0)) {
|
|
@@ -2235,24 +2235,24 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2235
2235
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2236
2236
|
return _this__u8e3s4;
|
|
2237
2237
|
}
|
|
2238
|
-
if (_this__u8e3s4.
|
|
2238
|
+
if (_this__u8e3s4.h2t().f2t_1 === 'about') {
|
|
2239
2239
|
// Inline function 'kotlin.require' call
|
|
2240
2240
|
// Inline function 'kotlin.require' call
|
|
2241
2241
|
if (!(slashCount === 0)) {
|
|
2242
2242
|
var message_0 = 'Failed requirement.';
|
|
2243
2243
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2244
2244
|
}
|
|
2245
|
-
_this__u8e3s4.
|
|
2245
|
+
_this__u8e3s4.v2s_1 = substring(urlString, startIndex, endIndex);
|
|
2246
2246
|
return _this__u8e3s4;
|
|
2247
2247
|
}
|
|
2248
|
-
if (_this__u8e3s4.
|
|
2248
|
+
if (_this__u8e3s4.h2t().f2t_1 === 'tel') {
|
|
2249
2249
|
// Inline function 'kotlin.require' call
|
|
2250
2250
|
// Inline function 'kotlin.require' call
|
|
2251
2251
|
if (!(slashCount === 0)) {
|
|
2252
2252
|
var message_1 = 'Failed requirement.';
|
|
2253
2253
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2254
2254
|
}
|
|
2255
|
-
_this__u8e3s4.
|
|
2255
|
+
_this__u8e3s4.v2s_1 = substring(urlString, startIndex, endIndex);
|
|
2256
2256
|
return _this__u8e3s4;
|
|
2257
2257
|
}
|
|
2258
2258
|
if (slashCount >= 2) {
|
|
@@ -2270,10 +2270,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2270
2270
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2271
2271
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2272
2272
|
if (!(passwordIndex === -1)) {
|
|
2273
|
-
_this__u8e3s4.
|
|
2274
|
-
_this__u8e3s4.
|
|
2273
|
+
_this__u8e3s4.z2s_1 = substring(urlString, startIndex, passwordIndex);
|
|
2274
|
+
_this__u8e3s4.a2t_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2275
2275
|
} else {
|
|
2276
|
-
_this__u8e3s4.
|
|
2276
|
+
_this__u8e3s4.z2s_1 = substring(urlString, startIndex, delimiter);
|
|
2277
2277
|
}
|
|
2278
2278
|
startIndex = delimiter + 1 | 0;
|
|
2279
2279
|
} else {
|
|
@@ -2284,17 +2284,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
2286
|
if (startIndex >= endIndex) {
|
|
2287
|
-
_this__u8e3s4.
|
|
2287
|
+
_this__u8e3s4.c2t_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2288
2288
|
return _this__u8e3s4;
|
|
2289
2289
|
}
|
|
2290
2290
|
var tmp_0 = _this__u8e3s4;
|
|
2291
2291
|
var tmp_1;
|
|
2292
2292
|
if (slashCount === 0) {
|
|
2293
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
2293
|
+
tmp_1 = dropLast(_this__u8e3s4.c2t_1, 1);
|
|
2294
2294
|
} else {
|
|
2295
2295
|
tmp_1 = emptyList();
|
|
2296
2296
|
}
|
|
2297
|
-
tmp_0.
|
|
2297
|
+
tmp_0.c2t_1 = tmp_1;
|
|
2298
2298
|
// Inline function 'kotlin.takeIf' call
|
|
2299
2299
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2300
2300
|
var tmp_2;
|
|
@@ -2309,9 +2309,9 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2309
2309
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2310
2310
|
var tmp_3;
|
|
2311
2311
|
var tmp_4;
|
|
2312
|
-
if (_this__u8e3s4.
|
|
2312
|
+
if (_this__u8e3s4.c2t_1.g1() === 1) {
|
|
2313
2313
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2314
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2314
|
+
var this_2 = first_0(_this__u8e3s4.c2t_1);
|
|
2315
2315
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2316
2316
|
} else {
|
|
2317
2317
|
tmp_4 = false;
|
|
@@ -2319,12 +2319,12 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2319
2319
|
if (tmp_4) {
|
|
2320
2320
|
tmp_3 = emptyList();
|
|
2321
2321
|
} else {
|
|
2322
|
-
tmp_3 = _this__u8e3s4.
|
|
2322
|
+
tmp_3 = _this__u8e3s4.c2t_1;
|
|
2323
2323
|
}
|
|
2324
2324
|
var basePath = tmp_3;
|
|
2325
2325
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2326
2326
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2327
|
-
_this__u8e3s4.
|
|
2327
|
+
_this__u8e3s4.c2t_1 = plus_0(basePath, relativePath);
|
|
2328
2328
|
startIndex = pathEnd;
|
|
2329
2329
|
}
|
|
2330
2330
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2374,21 +2374,21 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2374
2374
|
_init_properties_URLParser_kt__sf11to();
|
|
2375
2375
|
switch (slashCount) {
|
|
2376
2376
|
case 1:
|
|
2377
|
-
_this__u8e3s4.
|
|
2377
|
+
_this__u8e3s4.v2s_1 = '';
|
|
2378
2378
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2379
2379
|
break;
|
|
2380
2380
|
case 2:
|
|
2381
2381
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2382
2382
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2383
|
-
_this__u8e3s4.
|
|
2383
|
+
_this__u8e3s4.v2s_1 = substring(urlString, startIndex, endIndex);
|
|
2384
2384
|
return Unit_instance;
|
|
2385
2385
|
}
|
|
2386
2386
|
|
|
2387
|
-
_this__u8e3s4.
|
|
2387
|
+
_this__u8e3s4.v2s_1 = substring(urlString, startIndex, nextSlash);
|
|
2388
2388
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2389
2389
|
break;
|
|
2390
2390
|
case 3:
|
|
2391
|
-
_this__u8e3s4.
|
|
2391
|
+
_this__u8e3s4.v2s_1 = '';
|
|
2392
2392
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2393
2393
|
break;
|
|
2394
2394
|
default:
|
|
@@ -2401,8 +2401,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2401
2401
|
if (delimiter === -1) {
|
|
2402
2402
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2403
2403
|
}
|
|
2404
|
-
_this__u8e3s4.
|
|
2405
|
-
_this__u8e3s4.
|
|
2404
|
+
_this__u8e3s4.l2u(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2405
|
+
_this__u8e3s4.v2s_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2406
2406
|
}
|
|
2407
2407
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2408
2408
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2436,19 +2436,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
var tmp0_elvis_lhs = tmp;
|
|
2438
2438
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2439
|
-
_this__u8e3s4.
|
|
2439
|
+
_this__u8e3s4.v2s_1 = substring(urlString, startIndex, colonIndex);
|
|
2440
2440
|
var tmp_0;
|
|
2441
2441
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2442
2442
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2443
2443
|
} else {
|
|
2444
2444
|
tmp_0 = 0;
|
|
2445
2445
|
}
|
|
2446
|
-
_this__u8e3s4.
|
|
2446
|
+
_this__u8e3s4.d2u(tmp_0);
|
|
2447
2447
|
}
|
|
2448
2448
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2449
2449
|
_init_properties_URLParser_kt__sf11to();
|
|
2450
2450
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2451
|
-
_this__u8e3s4.
|
|
2451
|
+
_this__u8e3s4.w2s_1 = true;
|
|
2452
2452
|
return endIndex;
|
|
2453
2453
|
}
|
|
2454
2454
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2462,18 +2462,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2462
2462
|
var tmp0_elvis_lhs = tmp;
|
|
2463
2463
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2464
2464
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2465
|
-
rawParameters.
|
|
2465
|
+
rawParameters.r2e(parseQuery$lambda(_this__u8e3s4));
|
|
2466
2466
|
return fragmentStart;
|
|
2467
2467
|
}
|
|
2468
2468
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2469
2469
|
_init_properties_URLParser_kt__sf11to();
|
|
2470
2470
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2471
|
-
_this__u8e3s4.
|
|
2471
|
+
_this__u8e3s4.b2t_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
2474
|
function parseQuery$lambda($this_parseQuery) {
|
|
2475
2475
|
return function (key, values) {
|
|
2476
|
-
$this_parseQuery.
|
|
2476
|
+
$this_parseQuery.d2t_1.n2e(key, values);
|
|
2477
2477
|
return Unit_instance;
|
|
2478
2478
|
};
|
|
2479
2479
|
}
|
|
@@ -2486,29 +2486,29 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
function Companion_7() {
|
|
2488
2488
|
Companion_instance_7 = this;
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2493
|
-
this.
|
|
2489
|
+
this.f2u_1 = new URLProtocol('http', 80);
|
|
2490
|
+
this.g2u_1 = new URLProtocol('https', 443);
|
|
2491
|
+
this.h2u_1 = new URLProtocol('ws', 80);
|
|
2492
|
+
this.i2u_1 = new URLProtocol('wss', 443);
|
|
2493
|
+
this.j2u_1 = new URLProtocol('socks', 1080);
|
|
2494
2494
|
var tmp = this;
|
|
2495
2495
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2496
|
-
var this_0 = listOf([this.
|
|
2496
|
+
var this_0 = listOf([this.f2u_1, this.g2u_1, this.h2u_1, this.i2u_1, this.j2u_1]);
|
|
2497
2497
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2498
2498
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2499
2499
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2500
2500
|
var _iterator__ex2g4s = this_0.t();
|
|
2501
2501
|
while (_iterator__ex2g4s.u()) {
|
|
2502
2502
|
var element = _iterator__ex2g4s.v();
|
|
2503
|
-
var tmp$ret$0 = element.
|
|
2503
|
+
var tmp$ret$0 = element.f2t_1;
|
|
2504
2504
|
destination.s2(tmp$ret$0, element);
|
|
2505
2505
|
}
|
|
2506
|
-
tmp.
|
|
2506
|
+
tmp.k2u_1 = destination;
|
|
2507
2507
|
}
|
|
2508
|
-
protoOf(Companion_7).
|
|
2508
|
+
protoOf(Companion_7).s2u = function (name) {
|
|
2509
2509
|
// Inline function 'kotlin.let' call
|
|
2510
2510
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2511
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2511
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().k2u_1.z2(it);
|
|
2512
2512
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2513
2513
|
};
|
|
2514
2514
|
var Companion_instance_7;
|
|
@@ -2519,9 +2519,9 @@ function Companion_getInstance_7() {
|
|
|
2519
2519
|
}
|
|
2520
2520
|
function URLProtocol(name, defaultPort) {
|
|
2521
2521
|
Companion_getInstance_7();
|
|
2522
|
-
this.
|
|
2523
|
-
this.
|
|
2524
|
-
var tmp0 = this.
|
|
2522
|
+
this.f2t_1 = name;
|
|
2523
|
+
this.g2t_1 = defaultPort;
|
|
2524
|
+
var tmp0 = this.f2t_1;
|
|
2525
2525
|
var tmp$ret$1;
|
|
2526
2526
|
$l$block: {
|
|
2527
2527
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2543,11 +2543,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
2545
|
protoOf(URLProtocol).toString = function () {
|
|
2546
|
-
return 'URLProtocol(name=' + this.
|
|
2546
|
+
return 'URLProtocol(name=' + this.f2t_1 + ', defaultPort=' + this.g2t_1 + ')';
|
|
2547
2547
|
};
|
|
2548
2548
|
protoOf(URLProtocol).hashCode = function () {
|
|
2549
|
-
var result = getStringHashCode(this.
|
|
2550
|
-
result = imul(result, 31) + this.
|
|
2549
|
+
var result = getStringHashCode(this.f2t_1);
|
|
2550
|
+
result = imul(result, 31) + this.g2t_1 | 0;
|
|
2551
2551
|
return result;
|
|
2552
2552
|
};
|
|
2553
2553
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2555,35 +2555,35 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2555
2555
|
return true;
|
|
2556
2556
|
if (!(other instanceof URLProtocol))
|
|
2557
2557
|
return false;
|
|
2558
|
-
if (!(this.
|
|
2558
|
+
if (!(this.f2t_1 === other.f2t_1))
|
|
2559
2559
|
return false;
|
|
2560
|
-
if (!(this.
|
|
2560
|
+
if (!(this.g2t_1 === other.g2t_1))
|
|
2561
2561
|
return false;
|
|
2562
2562
|
return true;
|
|
2563
2563
|
};
|
|
2564
2564
|
function isSecure(_this__u8e3s4) {
|
|
2565
|
-
return _this__u8e3s4.
|
|
2565
|
+
return _this__u8e3s4.f2t_1 === 'https' || _this__u8e3s4.f2t_1 === 'wss';
|
|
2566
2566
|
}
|
|
2567
2567
|
function isWebsocket(_this__u8e3s4) {
|
|
2568
|
-
return _this__u8e3s4.
|
|
2568
|
+
return _this__u8e3s4.f2t_1 === 'ws' || _this__u8e3s4.f2t_1 === 'wss';
|
|
2569
2569
|
}
|
|
2570
2570
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2571
|
-
_this__u8e3s4.u2s_1 = url.u2s_1;
|
|
2572
|
-
_this__u8e3s4.r2s_1 = url.r2s_1;
|
|
2573
|
-
_this__u8e3s4.z2t(url.t2s_1);
|
|
2574
2571
|
_this__u8e3s4.y2s_1 = url.y2s_1;
|
|
2575
2572
|
_this__u8e3s4.v2s_1 = url.v2s_1;
|
|
2576
|
-
_this__u8e3s4.
|
|
2573
|
+
_this__u8e3s4.d2u(url.x2s_1);
|
|
2574
|
+
_this__u8e3s4.c2t_1 = url.c2t_1;
|
|
2575
|
+
_this__u8e3s4.z2s_1 = url.z2s_1;
|
|
2576
|
+
_this__u8e3s4.a2t_1 = url.a2t_1;
|
|
2577
2577
|
// Inline function 'kotlin.apply' call
|
|
2578
2578
|
var this_0 = ParametersBuilder();
|
|
2579
|
-
appendAll(this_0, url.
|
|
2580
|
-
_this__u8e3s4.
|
|
2581
|
-
_this__u8e3s4.
|
|
2582
|
-
_this__u8e3s4.
|
|
2579
|
+
appendAll(this_0, url.d2t_1);
|
|
2580
|
+
_this__u8e3s4.q2u(this_0);
|
|
2581
|
+
_this__u8e3s4.b2t_1 = url.b2t_1;
|
|
2582
|
+
_this__u8e3s4.w2s_1 = url.w2s_1;
|
|
2583
2583
|
return _this__u8e3s4;
|
|
2584
2584
|
}
|
|
2585
2585
|
function Url(urlString) {
|
|
2586
|
-
return URLBuilder_0(urlString).
|
|
2586
|
+
return URLBuilder_0(urlString).m2l();
|
|
2587
2587
|
}
|
|
2588
2588
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2589
2589
|
var tmp;
|
|
@@ -2601,7 +2601,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2601
2601
|
_this__u8e3s4.f1('?');
|
|
2602
2602
|
}
|
|
2603
2603
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2604
|
-
var tmp0 = encodedQueryParameters.
|
|
2604
|
+
var tmp0 = encodedQueryParameters.m2e();
|
|
2605
2605
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2606
2606
|
var destination = ArrayList_init_$Create$_0();
|
|
2607
2607
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -2647,11 +2647,11 @@ function URLBuilder_0(urlString) {
|
|
|
2647
2647
|
return takeFrom(new URLBuilder(), urlString);
|
|
2648
2648
|
}
|
|
2649
2649
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2650
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2651
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2650
|
+
var tmp0_subject = _this__u8e3s4.j2t_1;
|
|
2651
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.u2t_1.g2t_1 ? _this__u8e3s4.i2t_1 : get_hostWithPort(_this__u8e3s4);
|
|
2652
2652
|
}
|
|
2653
2653
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2654
|
-
return _this__u8e3s4.
|
|
2654
|
+
return _this__u8e3s4.i2t_1 + ':' + _this__u8e3s4.t2u();
|
|
2655
2655
|
}
|
|
2656
2656
|
function appendUrlFullPath$lambda(it) {
|
|
2657
2657
|
var key = it.qe_1;
|
|
@@ -2709,146 +2709,146 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2709
2709
|
if ($pathSegments.r()) {
|
|
2710
2710
|
return '';
|
|
2711
2711
|
}
|
|
2712
|
-
var pathStartIndex = indexOf(this$0.
|
|
2712
|
+
var pathStartIndex = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(47), this$0.u2t_1.f2t_1.length + 3 | 0);
|
|
2713
2713
|
var tmp_0;
|
|
2714
2714
|
if (pathStartIndex === -1) {
|
|
2715
2715
|
return '';
|
|
2716
2716
|
}
|
|
2717
2717
|
// Inline function 'kotlin.charArrayOf' call
|
|
2718
2718
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2719
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2719
|
+
var pathEndIndex = indexOfAny(this$0.p2t_1, tmp$ret$0, pathStartIndex);
|
|
2720
2720
|
var tmp_1;
|
|
2721
2721
|
if (pathEndIndex === -1) {
|
|
2722
|
-
return substring_0(this$0.
|
|
2722
|
+
return substring_0(this$0.p2t_1, pathStartIndex);
|
|
2723
2723
|
}
|
|
2724
|
-
return substring(this$0.
|
|
2724
|
+
return substring(this$0.p2t_1, pathStartIndex, pathEndIndex);
|
|
2725
2725
|
};
|
|
2726
2726
|
}
|
|
2727
2727
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2728
2728
|
return function () {
|
|
2729
|
-
var queryStart = indexOf(this$0.
|
|
2729
|
+
var queryStart = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2730
2730
|
var tmp;
|
|
2731
2731
|
if (queryStart === 0) {
|
|
2732
2732
|
return '';
|
|
2733
2733
|
}
|
|
2734
|
-
var queryEnd = indexOf(this$0.
|
|
2734
|
+
var queryEnd = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2735
2735
|
var tmp_0;
|
|
2736
2736
|
if (queryEnd === -1) {
|
|
2737
|
-
return substring_0(this$0.
|
|
2737
|
+
return substring_0(this$0.p2t_1, queryStart);
|
|
2738
2738
|
}
|
|
2739
|
-
return substring(this$0.
|
|
2739
|
+
return substring(this$0.p2t_1, queryStart, queryEnd);
|
|
2740
2740
|
};
|
|
2741
2741
|
}
|
|
2742
2742
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2743
2743
|
return function () {
|
|
2744
|
-
var pathStart = indexOf(this$0.
|
|
2744
|
+
var pathStart = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(47), this$0.u2t_1.f2t_1.length + 3 | 0);
|
|
2745
2745
|
var tmp;
|
|
2746
2746
|
if (pathStart === -1) {
|
|
2747
2747
|
return '';
|
|
2748
2748
|
}
|
|
2749
|
-
var queryEnd = indexOf(this$0.
|
|
2749
|
+
var queryEnd = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2750
2750
|
var tmp_0;
|
|
2751
2751
|
if (queryEnd === -1) {
|
|
2752
|
-
return substring_0(this$0.
|
|
2752
|
+
return substring_0(this$0.p2t_1, pathStart);
|
|
2753
2753
|
}
|
|
2754
|
-
return substring(this$0.
|
|
2754
|
+
return substring(this$0.p2t_1, pathStart, queryEnd);
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
2757
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2758
2758
|
return function () {
|
|
2759
2759
|
var tmp;
|
|
2760
|
-
if (this$0.
|
|
2760
|
+
if (this$0.m2t_1 == null) {
|
|
2761
2761
|
return null;
|
|
2762
2762
|
}
|
|
2763
2763
|
var tmp_0;
|
|
2764
2764
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2765
|
-
var this_0 = this$0.
|
|
2765
|
+
var this_0 = this$0.m2t_1;
|
|
2766
2766
|
if (charSequenceLength(this_0) === 0) {
|
|
2767
2767
|
return '';
|
|
2768
2768
|
}
|
|
2769
|
-
var usernameStart = this$0.
|
|
2769
|
+
var usernameStart = this$0.u2t_1.f2t_1.length + 3 | 0;
|
|
2770
2770
|
// Inline function 'kotlin.charArrayOf' call
|
|
2771
2771
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2772
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2773
|
-
return substring(this$0.
|
|
2772
|
+
var usernameEnd = indexOfAny(this$0.p2t_1, tmp$ret$1, usernameStart);
|
|
2773
|
+
return substring(this$0.p2t_1, usernameStart, usernameEnd);
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
2776
2776
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2777
2777
|
return function (p0) {
|
|
2778
|
-
return p0.
|
|
2778
|
+
return p0.u2u();
|
|
2779
2779
|
};
|
|
2780
2780
|
}
|
|
2781
2781
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2782
2782
|
return function () {
|
|
2783
2783
|
var tmp;
|
|
2784
|
-
if (this$0.
|
|
2784
|
+
if (this$0.n2t_1 == null) {
|
|
2785
2785
|
return null;
|
|
2786
2786
|
}
|
|
2787
2787
|
var tmp_0;
|
|
2788
2788
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2789
|
-
var this_0 = this$0.
|
|
2789
|
+
var this_0 = this$0.n2t_1;
|
|
2790
2790
|
if (charSequenceLength(this_0) === 0) {
|
|
2791
2791
|
return '';
|
|
2792
2792
|
}
|
|
2793
|
-
var passwordStart = indexOf(this$0.
|
|
2794
|
-
var passwordEnd = indexOf(this$0.
|
|
2795
|
-
return substring(this$0.
|
|
2793
|
+
var passwordStart = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(58), this$0.u2t_1.f2t_1.length + 3 | 0) + 1 | 0;
|
|
2794
|
+
var passwordEnd = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(64));
|
|
2795
|
+
return substring(this$0.p2t_1, passwordStart, passwordEnd);
|
|
2796
2796
|
};
|
|
2797
2797
|
}
|
|
2798
2798
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2799
2799
|
return function (p0) {
|
|
2800
|
-
return p0.
|
|
2800
|
+
return p0.v2u();
|
|
2801
2801
|
};
|
|
2802
2802
|
}
|
|
2803
2803
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2804
2804
|
return function () {
|
|
2805
|
-
var fragmentStart = indexOf(this$0.
|
|
2805
|
+
var fragmentStart = indexOf(this$0.p2t_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2806
2806
|
var tmp;
|
|
2807
2807
|
if (fragmentStart === 0) {
|
|
2808
2808
|
return '';
|
|
2809
2809
|
}
|
|
2810
|
-
return substring_0(this$0.
|
|
2810
|
+
return substring_0(this$0.p2t_1, fragmentStart);
|
|
2811
2811
|
};
|
|
2812
2812
|
}
|
|
2813
2813
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2814
|
-
this.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2818
|
-
this.
|
|
2819
|
-
this.
|
|
2820
|
-
this.
|
|
2821
|
-
this.
|
|
2822
|
-
var containsArg = this.
|
|
2814
|
+
this.i2t_1 = host;
|
|
2815
|
+
this.j2t_1 = specifiedPort;
|
|
2816
|
+
this.k2t_1 = parameters;
|
|
2817
|
+
this.l2t_1 = fragment;
|
|
2818
|
+
this.m2t_1 = user;
|
|
2819
|
+
this.n2t_1 = password;
|
|
2820
|
+
this.o2t_1 = trailingQuery;
|
|
2821
|
+
this.p2t_1 = urlString;
|
|
2822
|
+
var containsArg = this.j2t_1;
|
|
2823
2823
|
// Inline function 'kotlin.require' call
|
|
2824
2824
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2825
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2825
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.j2t_1;
|
|
2826
2826
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2827
2827
|
}
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2828
|
+
this.q2t_1 = pathSegments;
|
|
2829
|
+
this.r2t_1 = pathSegments;
|
|
2830
2830
|
var tmp = this;
|
|
2831
|
-
tmp.
|
|
2832
|
-
this.
|
|
2831
|
+
tmp.s2t_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2832
|
+
this.t2t_1 = protocol;
|
|
2833
2833
|
var tmp_0 = this;
|
|
2834
|
-
var tmp0_elvis_lhs = this.
|
|
2835
|
-
tmp_0.
|
|
2834
|
+
var tmp0_elvis_lhs = this.t2t_1;
|
|
2835
|
+
tmp_0.u2t_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().f2u_1 : tmp0_elvis_lhs;
|
|
2836
2836
|
var tmp_1 = this;
|
|
2837
|
-
tmp_1.
|
|
2837
|
+
tmp_1.v2t_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2838
2838
|
var tmp_2 = this;
|
|
2839
|
-
tmp_2.
|
|
2839
|
+
tmp_2.w2t_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2840
2840
|
var tmp_3 = this;
|
|
2841
|
-
tmp_3.
|
|
2841
|
+
tmp_3.x2t_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2842
2842
|
var tmp_4 = this;
|
|
2843
|
-
tmp_4.
|
|
2843
|
+
tmp_4.y2t_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2844
2844
|
var tmp_5 = this;
|
|
2845
|
-
tmp_5.
|
|
2845
|
+
tmp_5.z2t_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2846
2846
|
var tmp_6 = this;
|
|
2847
|
-
tmp_6.
|
|
2847
|
+
tmp_6.a2u_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2848
2848
|
}
|
|
2849
|
-
protoOf(Url_0).
|
|
2849
|
+
protoOf(Url_0).t2u = function () {
|
|
2850
2850
|
// Inline function 'kotlin.takeUnless' call
|
|
2851
|
-
var this_0 = this.
|
|
2851
|
+
var this_0 = this.j2t_1;
|
|
2852
2852
|
var tmp;
|
|
2853
2853
|
if (!(this_0 === 0)) {
|
|
2854
2854
|
tmp = this_0;
|
|
@@ -2856,24 +2856,24 @@ protoOf(Url_0).p2u = function () {
|
|
|
2856
2856
|
tmp = null;
|
|
2857
2857
|
}
|
|
2858
2858
|
var tmp0_elvis_lhs = tmp;
|
|
2859
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2859
|
+
return tmp0_elvis_lhs == null ? this.u2t_1.g2t_1 : tmp0_elvis_lhs;
|
|
2860
2860
|
};
|
|
2861
|
-
protoOf(Url_0).
|
|
2862
|
-
var tmp0 = this.
|
|
2861
|
+
protoOf(Url_0).u2u = function () {
|
|
2862
|
+
var tmp0 = this.y2t_1;
|
|
2863
2863
|
var tmp = KProperty1;
|
|
2864
2864
|
// Inline function 'kotlin.getValue' call
|
|
2865
2865
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2866
2866
|
return tmp0.m1();
|
|
2867
2867
|
};
|
|
2868
|
-
protoOf(Url_0).
|
|
2869
|
-
var tmp0 = this.
|
|
2868
|
+
protoOf(Url_0).v2u = function () {
|
|
2869
|
+
var tmp0 = this.z2t_1;
|
|
2870
2870
|
var tmp = KProperty1;
|
|
2871
2871
|
// Inline function 'kotlin.getValue' call
|
|
2872
2872
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2873
2873
|
return tmp0.m1();
|
|
2874
2874
|
};
|
|
2875
2875
|
protoOf(Url_0).toString = function () {
|
|
2876
|
-
return this.
|
|
2876
|
+
return this.p2t_1;
|
|
2877
2877
|
};
|
|
2878
2878
|
protoOf(Url_0).equals = function (other) {
|
|
2879
2879
|
if (this === other)
|
|
@@ -2882,10 +2882,10 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2882
2882
|
return false;
|
|
2883
2883
|
if (!(other instanceof Url_0))
|
|
2884
2884
|
THROW_CCE();
|
|
2885
|
-
return this.
|
|
2885
|
+
return this.p2t_1 === other.p2t_1;
|
|
2886
2886
|
};
|
|
2887
2887
|
protoOf(Url_0).hashCode = function () {
|
|
2888
|
-
return getStringHashCode(this.
|
|
2888
|
+
return getStringHashCode(this.p2t_1);
|
|
2889
2889
|
};
|
|
2890
2890
|
function get_authority_0(_this__u8e3s4) {
|
|
2891
2891
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2897,19 +2897,19 @@ function get_authority_0(_this__u8e3s4) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
function UrlSerializer() {
|
|
2899
2899
|
UrlSerializer_instance = this;
|
|
2900
|
-
this.
|
|
2900
|
+
this.w2u_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2901
2901
|
}
|
|
2902
|
-
protoOf(UrlSerializer).
|
|
2903
|
-
return this.
|
|
2902
|
+
protoOf(UrlSerializer).e1s = function () {
|
|
2903
|
+
return this.w2u_1;
|
|
2904
2904
|
};
|
|
2905
|
-
protoOf(UrlSerializer).
|
|
2906
|
-
return Url(decoder.
|
|
2905
|
+
protoOf(UrlSerializer).s1s = function (decoder) {
|
|
2906
|
+
return Url(decoder.p1v());
|
|
2907
2907
|
};
|
|
2908
|
-
protoOf(UrlSerializer).
|
|
2909
|
-
encoder.
|
|
2908
|
+
protoOf(UrlSerializer).x2u = function (encoder, value) {
|
|
2909
|
+
encoder.w1w(value.toString());
|
|
2910
2910
|
};
|
|
2911
|
-
protoOf(UrlSerializer).
|
|
2912
|
-
return this.
|
|
2911
|
+
protoOf(UrlSerializer).r1s = function (encoder, value) {
|
|
2912
|
+
return this.x2u(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2913
2913
|
};
|
|
2914
2914
|
var UrlSerializer_instance;
|
|
2915
2915
|
function UrlSerializer_getInstance() {
|
|
@@ -2921,21 +2921,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
2921
2921
|
// Inline function 'kotlin.text.buildString' call
|
|
2922
2922
|
// Inline function 'kotlin.apply' call
|
|
2923
2923
|
var this_0 = StringBuilder_init_$Create$();
|
|
2924
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2924
|
+
appendUserAndPassword(this_0, _this__u8e3s4.u2u(), _this__u8e3s4.v2u());
|
|
2925
2925
|
return this_0.toString();
|
|
2926
2926
|
}
|
|
2927
2927
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2928
|
+
this.y2u_1 = encodedParametersBuilder;
|
|
2929
|
+
this.z2u_1 = this.y2u_1.o2e();
|
|
2930
2930
|
}
|
|
2931
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2932
|
-
return decodeParameters(this.
|
|
2931
|
+
protoOf(UrlDecodedParametersBuilder).m2l = function () {
|
|
2932
|
+
return decodeParameters(this.y2u_1);
|
|
2933
2933
|
};
|
|
2934
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2935
|
-
return this.
|
|
2934
|
+
protoOf(UrlDecodedParametersBuilder).o2e = function () {
|
|
2935
|
+
return this.z2u_1;
|
|
2936
2936
|
};
|
|
2937
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2938
|
-
var tmp0_safe_receiver = this.
|
|
2937
|
+
protoOf(UrlDecodedParametersBuilder).p2e = function (name) {
|
|
2938
|
+
var tmp0_safe_receiver = this.y2u_1.p2e(encodeURLParameter(name));
|
|
2939
2939
|
var tmp;
|
|
2940
2940
|
if (tmp0_safe_receiver == null) {
|
|
2941
2941
|
tmp = null;
|
|
@@ -2953,9 +2953,9 @@ protoOf(UrlDecodedParametersBuilder).l2e = function (name) {
|
|
|
2953
2953
|
}
|
|
2954
2954
|
return tmp;
|
|
2955
2955
|
};
|
|
2956
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2956
|
+
protoOf(UrlDecodedParametersBuilder).q2e = function () {
|
|
2957
2957
|
// Inline function 'kotlin.collections.map' call
|
|
2958
|
-
var this_0 = this.
|
|
2958
|
+
var this_0 = this.y2u_1.q2e();
|
|
2959
2959
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2960
2960
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2961
2961
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2967,15 +2967,15 @@ protoOf(UrlDecodedParametersBuilder).m2e = function () {
|
|
|
2967
2967
|
return toSet(destination);
|
|
2968
2968
|
};
|
|
2969
2969
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
2970
|
-
return this.
|
|
2970
|
+
return this.y2u_1.r();
|
|
2971
2971
|
};
|
|
2972
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2973
|
-
return decodeParameters(this.
|
|
2972
|
+
protoOf(UrlDecodedParametersBuilder).m2e = function () {
|
|
2973
|
+
return decodeParameters(this.y2u_1).m2e();
|
|
2974
2974
|
};
|
|
2975
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2976
|
-
return this.
|
|
2975
|
+
protoOf(UrlDecodedParametersBuilder).x2e = function (name, value) {
|
|
2976
|
+
return this.y2u_1.x2e(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2977
2977
|
};
|
|
2978
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2978
|
+
protoOf(UrlDecodedParametersBuilder).n2e = function (name, values) {
|
|
2979
2979
|
var tmp = encodeURLParameter(name);
|
|
2980
2980
|
// Inline function 'kotlin.collections.map' call
|
|
2981
2981
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2986,10 +2986,10 @@ protoOf(UrlDecodedParametersBuilder).j2e = function (name, values) {
|
|
|
2986
2986
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
2987
2987
|
destination.e1(tmp$ret$0);
|
|
2988
2988
|
}
|
|
2989
|
-
return this.
|
|
2989
|
+
return this.y2u_1.n2e(tmp, destination);
|
|
2990
2990
|
};
|
|
2991
2991
|
protoOf(UrlDecodedParametersBuilder).n2 = function () {
|
|
2992
|
-
return this.
|
|
2992
|
+
return this.y2u_1.n2();
|
|
2993
2993
|
};
|
|
2994
2994
|
function encodeParameters(parameters) {
|
|
2995
2995
|
// Inline function 'kotlin.apply' call
|
|
@@ -3001,14 +3001,14 @@ function decodeParameters(parameters) {
|
|
|
3001
3001
|
// Inline function 'kotlin.apply' call
|
|
3002
3002
|
var this_0 = ParametersBuilder();
|
|
3003
3003
|
appendAllDecoded(this_0, parameters);
|
|
3004
|
-
return this_0.
|
|
3004
|
+
return this_0.m2l();
|
|
3005
3005
|
}
|
|
3006
3006
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3007
3007
|
// Inline function 'kotlin.collections.forEach' call
|
|
3008
|
-
var _iterator__ex2g4s = parameters.
|
|
3008
|
+
var _iterator__ex2g4s = parameters.q2e().t();
|
|
3009
3009
|
while (_iterator__ex2g4s.u()) {
|
|
3010
3010
|
var element = _iterator__ex2g4s.v();
|
|
3011
|
-
var tmp0_elvis_lhs = parameters.
|
|
3011
|
+
var tmp0_elvis_lhs = parameters.p2e(element);
|
|
3012
3012
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3013
3013
|
var tmp = encodeURLParameter(element);
|
|
3014
3014
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3020,15 +3020,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
3020
3020
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3021
3021
|
destination.e1(tmp$ret$0);
|
|
3022
3022
|
}
|
|
3023
|
-
_this__u8e3s4.
|
|
3023
|
+
_this__u8e3s4.n2e(tmp, destination);
|
|
3024
3024
|
}
|
|
3025
3025
|
}
|
|
3026
3026
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3027
3027
|
// Inline function 'kotlin.collections.forEach' call
|
|
3028
|
-
var _iterator__ex2g4s = parameters.
|
|
3028
|
+
var _iterator__ex2g4s = parameters.q2e().t();
|
|
3029
3029
|
while (_iterator__ex2g4s.u()) {
|
|
3030
3030
|
var element = _iterator__ex2g4s.v();
|
|
3031
|
-
var tmp0_elvis_lhs = parameters.
|
|
3031
|
+
var tmp0_elvis_lhs = parameters.p2e(element);
|
|
3032
3032
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3033
3033
|
var tmp = decodeURLQueryComponent(element);
|
|
3034
3034
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3040,25 +3040,25 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
3040
3040
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3041
3041
|
destination.e1(tmp$ret$0);
|
|
3042
3042
|
}
|
|
3043
|
-
_this__u8e3s4.
|
|
3043
|
+
_this__u8e3s4.n2e(tmp, destination);
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
3046
3046
|
function ByteArrayContent(bytes, contentType, status) {
|
|
3047
3047
|
contentType = contentType === VOID ? null : contentType;
|
|
3048
3048
|
status = status === VOID ? null : status;
|
|
3049
3049
|
ByteArrayContent_0.call(this);
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3052
|
-
this.
|
|
3050
|
+
this.b2v_1 = bytes;
|
|
3051
|
+
this.c2v_1 = contentType;
|
|
3052
|
+
this.d2v_1 = status;
|
|
3053
3053
|
}
|
|
3054
|
-
protoOf(ByteArrayContent).
|
|
3055
|
-
return this.
|
|
3054
|
+
protoOf(ByteArrayContent).e2v = function () {
|
|
3055
|
+
return this.c2v_1;
|
|
3056
3056
|
};
|
|
3057
|
-
protoOf(ByteArrayContent).
|
|
3058
|
-
return fromInt(this.
|
|
3057
|
+
protoOf(ByteArrayContent).f2v = function () {
|
|
3058
|
+
return fromInt(this.b2v_1.length);
|
|
3059
3059
|
};
|
|
3060
|
-
protoOf(ByteArrayContent).
|
|
3061
|
-
return this.
|
|
3060
|
+
protoOf(ByteArrayContent).g2v = function () {
|
|
3061
|
+
return this.b2v_1;
|
|
3062
3062
|
};
|
|
3063
3063
|
function FormItem() {
|
|
3064
3064
|
}
|
|
@@ -3088,20 +3088,20 @@ function ProtocolUpgrade() {
|
|
|
3088
3088
|
}
|
|
3089
3089
|
function ContentWrapper() {
|
|
3090
3090
|
}
|
|
3091
|
-
protoOf(ContentWrapper).
|
|
3092
|
-
return this.
|
|
3091
|
+
protoOf(ContentWrapper).p2v = function () {
|
|
3092
|
+
return this.o2v_1;
|
|
3093
3093
|
};
|
|
3094
3094
|
function OutgoingContent() {
|
|
3095
|
-
this.
|
|
3095
|
+
this.h2v_1 = null;
|
|
3096
3096
|
}
|
|
3097
|
-
protoOf(OutgoingContent).
|
|
3097
|
+
protoOf(OutgoingContent).e2v = function () {
|
|
3098
3098
|
return null;
|
|
3099
3099
|
};
|
|
3100
|
-
protoOf(OutgoingContent).
|
|
3100
|
+
protoOf(OutgoingContent).f2v = function () {
|
|
3101
3101
|
return null;
|
|
3102
3102
|
};
|
|
3103
|
-
protoOf(OutgoingContent).
|
|
3104
|
-
return Companion_getInstance_1().
|
|
3103
|
+
protoOf(OutgoingContent).r2p = function () {
|
|
3104
|
+
return Companion_getInstance_1().j2l_1;
|
|
3105
3105
|
};
|
|
3106
3106
|
function NullBody() {
|
|
3107
3107
|
}
|
|
@@ -3115,7 +3115,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3115
3115
|
tmp = true;
|
|
3116
3116
|
} else {
|
|
3117
3117
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3118
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3118
|
+
tmp = isEmpty(_this__u8e3s4.p2v());
|
|
3119
3119
|
} else {
|
|
3120
3120
|
tmp = false;
|
|
3121
3121
|
}
|
|
@@ -3125,27 +3125,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3125
3125
|
function TextContent(text, contentType, status) {
|
|
3126
3126
|
status = status === VOID ? null : status;
|
|
3127
3127
|
ByteArrayContent_0.call(this);
|
|
3128
|
-
this.
|
|
3129
|
-
this.
|
|
3130
|
-
this.
|
|
3128
|
+
this.r2v_1 = text;
|
|
3129
|
+
this.s2v_1 = contentType;
|
|
3130
|
+
this.t2v_1 = status;
|
|
3131
3131
|
var tmp = this;
|
|
3132
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3133
|
-
tmp.
|
|
3132
|
+
var tmp0_elvis_lhs = charset(this.s2v_1);
|
|
3133
|
+
tmp.u2v_1 = toByteArray(this.r2v_1, tmp0_elvis_lhs == null ? Charsets_getInstance().w1q_1 : tmp0_elvis_lhs);
|
|
3134
3134
|
}
|
|
3135
|
-
protoOf(TextContent).
|
|
3136
|
-
return this.
|
|
3135
|
+
protoOf(TextContent).e2v = function () {
|
|
3136
|
+
return this.s2v_1;
|
|
3137
3137
|
};
|
|
3138
|
-
protoOf(TextContent).
|
|
3139
|
-
return fromInt(this.
|
|
3138
|
+
protoOf(TextContent).f2v = function () {
|
|
3139
|
+
return fromInt(this.u2v_1.length);
|
|
3140
3140
|
};
|
|
3141
|
-
protoOf(TextContent).
|
|
3142
|
-
return this.
|
|
3141
|
+
protoOf(TextContent).g2v = function () {
|
|
3142
|
+
return this.u2v_1;
|
|
3143
3143
|
};
|
|
3144
3144
|
protoOf(TextContent).toString = function () {
|
|
3145
|
-
return 'TextContent[' + this.
|
|
3145
|
+
return 'TextContent[' + this.s2v_1.toString() + '] "' + take(this.r2v_1, 30) + '"';
|
|
3146
3146
|
};
|
|
3147
3147
|
function get_origin(_this__u8e3s4) {
|
|
3148
|
-
return PlatformUtils_getInstance().
|
|
3148
|
+
return PlatformUtils_getInstance().e2e_1 ? locationOrigin() : 'http://localhost';
|
|
3149
3149
|
}
|
|
3150
3150
|
function locationOrigin() {
|
|
3151
3151
|
return function () {
|
|
@@ -3163,10 +3163,10 @@ function locationOrigin() {
|
|
|
3163
3163
|
}();
|
|
3164
3164
|
}
|
|
3165
3165
|
//region block: post-declaration
|
|
3166
|
-
protoOf(EmptyHeaders).
|
|
3167
|
-
protoOf(EmptyHeaders).
|
|
3168
|
-
protoOf(EmptyParameters).
|
|
3169
|
-
protoOf(EmptyParameters).
|
|
3166
|
+
protoOf(EmptyHeaders).j2d = get;
|
|
3167
|
+
protoOf(EmptyHeaders).r2e = forEach;
|
|
3168
|
+
protoOf(EmptyParameters).j2d = get;
|
|
3169
|
+
protoOf(EmptyParameters).r2e = forEach;
|
|
3170
3170
|
//endregion
|
|
3171
3171
|
//region block: init
|
|
3172
3172
|
Companion_instance_0 = new Companion_0();
|