@doordeck/doordeck-headless-sdk 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1191 -1191
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +14 -0
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -6
- package/kotlin/Stately-stately-concurrency.js +6 -6
- package/kotlin/Stately-stately-concurrent-collections.js +53 -53
- package/kotlin/Stately-stately-concurrent-collections.js.map +1 -1
- package/kotlin/doordeck-sdk.js +7989 -7922
- package/kotlin/doordeck-sdk.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-atomicfu.js.map +1 -1
- package/kotlin/kotlinx-coroutines-core.js +1555 -1555
- package/kotlin/kotlinx-coroutines-core.js.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js +412 -412
- package/kotlin/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1657 -1657
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1310 -1310
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1696 -1696
- package/kotlin/ktor-ktor-client-ktor-client-core.js.map +1 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +212 -212
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +1 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +120 -120
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +1 -1
- package/kotlin/ktor-ktor-http.js +629 -629
- package/kotlin/ktor-ktor-http.js.map +1 -1
- package/kotlin/ktor-ktor-io.js +378 -378
- package/kotlin/ktor-ktor-io.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-events.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-events.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +132 -132
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +37 -37
- package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +1 -1
- package/kotlin/ktor-ktor-utils.js +507 -507
- package/kotlin/ktor-ktor-utils.js.map +1 -1
- package/kotlin/projects-core-koin-core.js +246 -246
- package/kotlin/projects-core-koin-core.js.map +1 -1
- package/package.json +1 -1
package/kotlin/ktor-ktor-http.js
CHANGED
|
@@ -230,21 +230,21 @@
|
|
|
230
230
|
var this_0 = StringBuilder_init_$Create$();
|
|
231
231
|
// Inline function 'kotlin.contracts.contract' call
|
|
232
232
|
// Inline function 'io.ktor.http.encodeURLParameter.<anonymous>' call
|
|
233
|
-
var content = encode(Charsets_getInstance().
|
|
233
|
+
var content = encode(Charsets_getInstance().p1k_1.t1k(), _this__u8e3s4);
|
|
234
234
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
235
235
|
return this_0.toString();
|
|
236
236
|
}
|
|
237
237
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
238
238
|
start = start === VOID ? 0 : start;
|
|
239
239
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
240
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
240
|
+
charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
|
|
241
241
|
_init_properties_Codecs_kt__fudxxf();
|
|
242
242
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
243
243
|
}
|
|
244
244
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
245
245
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
246
246
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
247
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
247
|
+
charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
|
|
248
248
|
_init_properties_Codecs_kt__fudxxf();
|
|
249
249
|
// Inline function 'kotlin.text.buildString' call
|
|
250
250
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
var this_0 = StringBuilder_init_$Create$();
|
|
253
253
|
// Inline function 'kotlin.contracts.contract' call
|
|
254
254
|
// Inline function 'io.ktor.http.encodeURLQueryComponent.<anonymous>' call
|
|
255
|
-
var content = encode(charset.
|
|
255
|
+
var content = encode(charset.t1k(), _this__u8e3s4);
|
|
256
256
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
257
257
|
return this_0.toString();
|
|
258
258
|
}
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
start = start === VOID ? 0 : start;
|
|
261
261
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
262
262
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
263
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
263
|
+
charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
|
|
264
264
|
_init_properties_Codecs_kt__fudxxf();
|
|
265
265
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
266
266
|
}
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
var this_0 = StringBuilder_init_$Create$();
|
|
315
315
|
// Inline function 'kotlin.contracts.contract' call
|
|
316
316
|
// Inline function 'io.ktor.http.encodeURLPath.<anonymous>' call
|
|
317
|
-
var charset = Charsets_getInstance().
|
|
317
|
+
var charset = Charsets_getInstance().p1k_1;
|
|
318
318
|
var index = 0;
|
|
319
319
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
320
320
|
var current = charSequenceGet(_this__u8e3s4, index);
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
continue $l$loop_0;
|
|
332
332
|
}
|
|
333
333
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
334
|
-
var tmp = encode(charset.
|
|
334
|
+
var tmp = encode(charset.t1k(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
335
335
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
336
336
|
index = index + symbolSize | 0;
|
|
337
337
|
}
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
function forEach$lambda($block) {
|
|
429
429
|
return function (buffer) {
|
|
430
430
|
while (canRead(buffer)) {
|
|
431
|
-
$block(buffer.
|
|
431
|
+
$block(buffer.x1a());
|
|
432
432
|
}
|
|
433
433
|
return true;
|
|
434
434
|
};
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
}
|
|
505
505
|
function hasParameter($this, name, value) {
|
|
506
506
|
var tmp;
|
|
507
|
-
switch ($this.
|
|
507
|
+
switch ($this.n2c_1.s()) {
|
|
508
508
|
case 0:
|
|
509
509
|
tmp = false;
|
|
510
510
|
break;
|
|
@@ -515,14 +515,14 @@
|
|
|
515
515
|
|
|
516
516
|
// Inline function 'io.ktor.http.ContentType.hasParameter.<anonymous>' call
|
|
517
517
|
|
|
518
|
-
var it = $this.
|
|
519
|
-
tmp = (equals(it.
|
|
518
|
+
var it = $this.n2c_1.u(0);
|
|
519
|
+
tmp = (equals(it.o2c_1, name, true) && equals(it.p2c_1, value, true));
|
|
520
520
|
break;
|
|
521
521
|
default:
|
|
522
522
|
var tmp$ret$2;
|
|
523
523
|
$l$block_0: {
|
|
524
524
|
// Inline function 'kotlin.collections.any' call
|
|
525
|
-
var this_0 = $this.
|
|
525
|
+
var this_0 = $this.n2c_1;
|
|
526
526
|
var tmp_0;
|
|
527
527
|
if (isInterface(this_0, Collection)) {
|
|
528
528
|
tmp_0 = this_0.h();
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
while (tmp0_iterator.q()) {
|
|
538
538
|
var element = tmp0_iterator.r();
|
|
539
539
|
// Inline function 'io.ktor.http.ContentType.hasParameter.<anonymous>' call
|
|
540
|
-
if (equals(element.
|
|
540
|
+
if (equals(element.o2c_1, name, true) && equals(element.p2c_1, value, true)) {
|
|
541
541
|
tmp$ret$2 = true;
|
|
542
542
|
break $l$block_0;
|
|
543
543
|
}
|
|
@@ -552,21 +552,21 @@
|
|
|
552
552
|
}
|
|
553
553
|
function Companion() {
|
|
554
554
|
Companion_instance = this;
|
|
555
|
-
this.
|
|
555
|
+
this.r2c_1 = ContentType_init_$Create$('*', '*');
|
|
556
556
|
}
|
|
557
557
|
protoOf(Companion).tk = function (value) {
|
|
558
558
|
if (isBlank(value))
|
|
559
|
-
return this.
|
|
559
|
+
return this.r2c_1;
|
|
560
560
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
561
561
|
var headerValue = last(parseHeaderValue(value));
|
|
562
562
|
// Inline function 'io.ktor.http.Companion.parse.<anonymous>' call
|
|
563
|
-
var parts = headerValue.
|
|
564
|
-
var parameters = headerValue.
|
|
563
|
+
var parts = headerValue.s2c_1;
|
|
564
|
+
var parameters = headerValue.t2c_1;
|
|
565
565
|
var slash = indexOf(parts, _Char___init__impl__6a9atx(47));
|
|
566
566
|
if (slash === -1) {
|
|
567
567
|
// Inline function 'kotlin.text.trim' call
|
|
568
568
|
if (toString(trim(isCharSequence(parts) ? parts : THROW_CCE())) === '*')
|
|
569
|
-
return Companion_getInstance().
|
|
569
|
+
return Companion_getInstance().r2c_1;
|
|
570
570
|
throw new BadContentTypeFormatException(value);
|
|
571
571
|
}
|
|
572
572
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -607,28 +607,28 @@
|
|
|
607
607
|
}
|
|
608
608
|
function Application() {
|
|
609
609
|
Application_instance = 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
|
-
this.
|
|
631
|
-
this.
|
|
610
|
+
this.v2c_1 = ContentType_init_$Create$('application', '*');
|
|
611
|
+
this.w2c_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
612
|
+
this.x2c_1 = ContentType_init_$Create$('application', 'cbor');
|
|
613
|
+
this.y2c_1 = ContentType_init_$Create$('application', 'json');
|
|
614
|
+
this.z2c_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
615
|
+
this.a2d_1 = ContentType_init_$Create$('application', 'javascript');
|
|
616
|
+
this.b2d_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
617
|
+
this.c2d_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
618
|
+
this.d2d_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
619
|
+
this.e2d_1 = ContentType_init_$Create$('application', 'xml');
|
|
620
|
+
this.f2d_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
621
|
+
this.g2d_1 = ContentType_init_$Create$('application', 'zip');
|
|
622
|
+
this.h2d_1 = ContentType_init_$Create$('application', 'gzip');
|
|
623
|
+
this.i2d_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
624
|
+
this.j2d_1 = ContentType_init_$Create$('application', 'pdf');
|
|
625
|
+
this.k2d_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
626
|
+
this.l2d_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
627
|
+
this.m2d_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
628
|
+
this.n2d_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
629
|
+
this.o2d_1 = ContentType_init_$Create$('application', 'wasm');
|
|
630
|
+
this.p2d_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
631
|
+
this.q2d_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
632
632
|
}
|
|
633
633
|
var Application_instance;
|
|
634
634
|
function Application_getInstance() {
|
|
@@ -638,15 +638,15 @@
|
|
|
638
638
|
}
|
|
639
639
|
function Text() {
|
|
640
640
|
Text_instance = this;
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
641
|
+
this.r2d_1 = ContentType_init_$Create$('text', '*');
|
|
642
|
+
this.s2d_1 = ContentType_init_$Create$('text', 'plain');
|
|
643
|
+
this.t2d_1 = ContentType_init_$Create$('text', 'css');
|
|
644
|
+
this.u2d_1 = ContentType_init_$Create$('text', 'csv');
|
|
645
|
+
this.v2d_1 = ContentType_init_$Create$('text', 'html');
|
|
646
|
+
this.w2d_1 = ContentType_init_$Create$('text', 'javascript');
|
|
647
|
+
this.x2d_1 = ContentType_init_$Create$('text', 'vcard');
|
|
648
|
+
this.y2d_1 = ContentType_init_$Create$('text', 'xml');
|
|
649
|
+
this.z2d_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
650
650
|
}
|
|
651
651
|
var Text_instance;
|
|
652
652
|
function Text_getInstance() {
|
|
@@ -658,25 +658,25 @@
|
|
|
658
658
|
Companion_getInstance();
|
|
659
659
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
660
660
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
661
|
+
this.c2e_1 = contentType;
|
|
662
|
+
this.d2e_1 = contentSubtype;
|
|
663
663
|
}
|
|
664
|
-
protoOf(ContentType).
|
|
664
|
+
protoOf(ContentType).e2e = function (name, value) {
|
|
665
665
|
if (hasParameter(this, name, value))
|
|
666
666
|
return this;
|
|
667
|
-
return new ContentType(this.
|
|
667
|
+
return new ContentType(this.c2e_1, this.d2e_1, this.m2c_1, plus_2(this.n2c_1, HeaderValueParam_init_$Create$(name, value)));
|
|
668
668
|
};
|
|
669
|
-
protoOf(ContentType).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(ContentType).f2e = function () {
|
|
670
|
+
return this.n2c_1.h() ? this : ContentType_init_$Create$(this.c2e_1, this.d2e_1);
|
|
671
671
|
};
|
|
672
|
-
protoOf(ContentType).
|
|
673
|
-
if (!(pattern.
|
|
672
|
+
protoOf(ContentType).g2e = function (pattern) {
|
|
673
|
+
if (!(pattern.c2e_1 === '*') && !equals(pattern.c2e_1, this.c2e_1, true)) {
|
|
674
674
|
return false;
|
|
675
675
|
}
|
|
676
|
-
if (!(pattern.
|
|
676
|
+
if (!(pattern.d2e_1 === '*') && !equals(pattern.d2e_1, this.d2e_1, true)) {
|
|
677
677
|
return false;
|
|
678
678
|
}
|
|
679
|
-
var _iterator__ex2g4s = pattern.
|
|
679
|
+
var _iterator__ex2g4s = pattern.n2c_1.p();
|
|
680
680
|
while (_iterator__ex2g4s.q()) {
|
|
681
681
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
682
682
|
var patternName = _destruct__k2r9zo.ig();
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
var tmp$ret$0;
|
|
691
691
|
$l$block_0: {
|
|
692
692
|
// Inline function 'kotlin.collections.any' call
|
|
693
|
-
var this_0 = this.
|
|
693
|
+
var this_0 = this.n2c_1;
|
|
694
694
|
var tmp_1;
|
|
695
695
|
if (isInterface(this_0, Collection)) {
|
|
696
696
|
tmp_1 = this_0.h();
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
while (tmp0_iterator.q()) {
|
|
706
706
|
var element = tmp0_iterator.r();
|
|
707
707
|
// Inline function 'io.ktor.http.ContentType.match.<anonymous>' call
|
|
708
|
-
if (equals(element.
|
|
708
|
+
if (equals(element.p2c_1, patternValue, true)) {
|
|
709
709
|
tmp$ret$0 = true;
|
|
710
710
|
break $l$block_0;
|
|
711
711
|
}
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
}
|
|
717
717
|
tmp = tmp_0;
|
|
718
718
|
} else {
|
|
719
|
-
var value = this.
|
|
719
|
+
var value = this.h2e(patternName);
|
|
720
720
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
721
721
|
}
|
|
722
722
|
var matches = tmp;
|
|
@@ -731,17 +731,17 @@
|
|
|
731
731
|
var tmp_0;
|
|
732
732
|
var tmp_1;
|
|
733
733
|
if (other instanceof ContentType) {
|
|
734
|
-
tmp_1 = equals(this.
|
|
734
|
+
tmp_1 = equals(this.c2e_1, other.c2e_1, true);
|
|
735
735
|
} else {
|
|
736
736
|
tmp_1 = false;
|
|
737
737
|
}
|
|
738
738
|
if (tmp_1) {
|
|
739
|
-
tmp_0 = equals(this.
|
|
739
|
+
tmp_0 = equals(this.d2e_1, other.d2e_1, true);
|
|
740
740
|
} else {
|
|
741
741
|
tmp_0 = false;
|
|
742
742
|
}
|
|
743
743
|
if (tmp_0) {
|
|
744
|
-
tmp = equals_0(this.
|
|
744
|
+
tmp = equals_0(this.n2c_1, other.n2c_1);
|
|
745
745
|
} else {
|
|
746
746
|
tmp = false;
|
|
747
747
|
}
|
|
@@ -750,15 +750,15 @@
|
|
|
750
750
|
protoOf(ContentType).hashCode = function () {
|
|
751
751
|
// Inline function 'kotlin.text.lowercase' call
|
|
752
752
|
// Inline function 'kotlin.js.asDynamic' call
|
|
753
|
-
var tmp$ret$1 = this.
|
|
753
|
+
var tmp$ret$1 = this.c2e_1.toLowerCase();
|
|
754
754
|
var result = getStringHashCode(tmp$ret$1);
|
|
755
755
|
var tmp = result;
|
|
756
756
|
var tmp_0 = imul(31, result);
|
|
757
757
|
// Inline function 'kotlin.text.lowercase' call
|
|
758
758
|
// Inline function 'kotlin.js.asDynamic' call
|
|
759
|
-
var tmp$ret$3 = this.
|
|
759
|
+
var tmp$ret$3 = this.d2e_1.toLowerCase();
|
|
760
760
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
761
|
-
result = result + imul(31, hashCode(this.
|
|
761
|
+
result = result + imul(31, hashCode(this.n2c_1)) | 0;
|
|
762
762
|
return result;
|
|
763
763
|
};
|
|
764
764
|
function BadContentTypeFormatException(value) {
|
|
@@ -766,7 +766,7 @@
|
|
|
766
766
|
captureStack(this, BadContentTypeFormatException);
|
|
767
767
|
}
|
|
768
768
|
function charset(_this__u8e3s4) {
|
|
769
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
769
|
+
var tmp0_safe_receiver = _this__u8e3s4.h2e('charset');
|
|
770
770
|
var tmp;
|
|
771
771
|
if (tmp0_safe_receiver == null) {
|
|
772
772
|
tmp = null;
|
|
@@ -792,16 +792,16 @@
|
|
|
792
792
|
return tmp;
|
|
793
793
|
}
|
|
794
794
|
function withCharset(_this__u8e3s4, charset) {
|
|
795
|
-
return _this__u8e3s4.
|
|
795
|
+
return _this__u8e3s4.e2e('charset', get_name(charset));
|
|
796
796
|
}
|
|
797
797
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
798
798
|
var tmp;
|
|
799
799
|
// Inline function 'kotlin.text.lowercase' call
|
|
800
800
|
// Inline function 'kotlin.js.asDynamic' call
|
|
801
|
-
if (!(_this__u8e3s4.
|
|
801
|
+
if (!(_this__u8e3s4.c2e_1.toLowerCase() === 'text')) {
|
|
802
802
|
tmp = _this__u8e3s4;
|
|
803
803
|
} else {
|
|
804
|
-
tmp = _this__u8e3s4.
|
|
804
|
+
tmp = _this__u8e3s4.e2e('charset', get_name(charset));
|
|
805
805
|
}
|
|
806
806
|
return tmp;
|
|
807
807
|
}
|
|
@@ -821,19 +821,19 @@
|
|
|
821
821
|
}
|
|
822
822
|
function HeaderValueWithParameters(content, parameters) {
|
|
823
823
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
824
|
+
this.m2c_1 = content;
|
|
825
|
+
this.n2c_1 = parameters;
|
|
826
826
|
}
|
|
827
|
-
protoOf(HeaderValueWithParameters).
|
|
827
|
+
protoOf(HeaderValueWithParameters).h2e = function (name) {
|
|
828
828
|
var inductionVariable = 0;
|
|
829
|
-
var last = get_lastIndex(this.
|
|
829
|
+
var last = get_lastIndex(this.n2c_1);
|
|
830
830
|
if (inductionVariable <= last)
|
|
831
831
|
do {
|
|
832
832
|
var index = inductionVariable;
|
|
833
833
|
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
-
var parameter = this.
|
|
835
|
-
if (equals(parameter.
|
|
836
|
-
return parameter.
|
|
834
|
+
var parameter = this.n2c_1.u(index);
|
|
835
|
+
if (equals(parameter.o2c_1, name, true)) {
|
|
836
|
+
return parameter.p2c_1;
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
while (!(index === last));
|
|
@@ -841,37 +841,37 @@
|
|
|
841
841
|
};
|
|
842
842
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
843
843
|
var tmp;
|
|
844
|
-
if (this.
|
|
845
|
-
tmp = this.
|
|
844
|
+
if (this.n2c_1.h()) {
|
|
845
|
+
tmp = this.m2c_1;
|
|
846
846
|
} else {
|
|
847
|
-
var tmp_0 = this.
|
|
847
|
+
var tmp_0 = this.m2c_1.length;
|
|
848
848
|
// Inline function 'kotlin.collections.sumOf' call
|
|
849
849
|
var sum = 0;
|
|
850
|
-
var tmp0_iterator = this.
|
|
850
|
+
var tmp0_iterator = this.n2c_1.p();
|
|
851
851
|
while (tmp0_iterator.q()) {
|
|
852
852
|
var element = tmp0_iterator.r();
|
|
853
853
|
var tmp_1 = sum;
|
|
854
854
|
// Inline function 'io.ktor.http.HeaderValueWithParameters.toString.<anonymous>' call
|
|
855
|
-
sum = tmp_1 + ((element.
|
|
855
|
+
sum = tmp_1 + ((element.o2c_1.length + element.p2c_1.length | 0) + 3 | 0) | 0;
|
|
856
856
|
}
|
|
857
857
|
var size = tmp_0 + sum | 0;
|
|
858
858
|
// Inline function 'kotlin.apply' call
|
|
859
859
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
860
860
|
// Inline function 'kotlin.contracts.contract' call
|
|
861
861
|
// Inline function 'io.ktor.http.HeaderValueWithParameters.toString.<anonymous>' call
|
|
862
|
-
this_0.m8(this.
|
|
862
|
+
this_0.m8(this.m2c_1);
|
|
863
863
|
var inductionVariable = 0;
|
|
864
|
-
var last = get_lastIndex(this.
|
|
864
|
+
var last = get_lastIndex(this.n2c_1);
|
|
865
865
|
if (inductionVariable <= last)
|
|
866
866
|
do {
|
|
867
867
|
var index = inductionVariable;
|
|
868
868
|
inductionVariable = inductionVariable + 1 | 0;
|
|
869
|
-
var element_0 = this.
|
|
869
|
+
var element_0 = this.n2c_1.u(index);
|
|
870
870
|
this_0.m8('; ');
|
|
871
|
-
this_0.m8(element_0.
|
|
871
|
+
this_0.m8(element_0.o2c_1);
|
|
872
872
|
this_0.m8('=');
|
|
873
873
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
874
|
-
var this_1 = element_0.
|
|
874
|
+
var this_1 = element_0.p2c_1;
|
|
875
875
|
if (needQuotes$accessor$vynnj(this_1))
|
|
876
876
|
this_0.m8(quote(this_1));
|
|
877
877
|
else
|
|
@@ -964,7 +964,7 @@
|
|
|
964
964
|
}
|
|
965
965
|
function append(_this__u8e3s4, name, value) {
|
|
966
966
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
967
|
-
_this__u8e3s4.
|
|
967
|
+
_this__u8e3s4.k28(name, value.toString());
|
|
968
968
|
}
|
|
969
969
|
function escapeIfNeeded(_this__u8e3s4) {
|
|
970
970
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
}
|
|
984
984
|
function Companion_1() {
|
|
985
985
|
Companion_instance_1 = this;
|
|
986
|
-
this.
|
|
986
|
+
this.i2e_1 = EmptyHeaders_instance;
|
|
987
987
|
}
|
|
988
988
|
var Companion_instance_1;
|
|
989
989
|
function Companion_getInstance_1() {
|
|
@@ -995,33 +995,33 @@
|
|
|
995
995
|
size = size === VOID ? 8 : size;
|
|
996
996
|
StringValuesBuilderImpl.call(this, true, size);
|
|
997
997
|
}
|
|
998
|
-
protoOf(HeadersBuilder).
|
|
999
|
-
return new HeadersImpl(this.
|
|
998
|
+
protoOf(HeadersBuilder).l2e = function () {
|
|
999
|
+
return new HeadersImpl(this.d28_1);
|
|
1000
1000
|
};
|
|
1001
|
-
protoOf(HeadersBuilder).
|
|
1002
|
-
protoOf(StringValuesBuilderImpl).
|
|
1003
|
-
HttpHeaders_getInstance().
|
|
1001
|
+
protoOf(HeadersBuilder).e28 = function (name) {
|
|
1002
|
+
protoOf(StringValuesBuilderImpl).e28.call(this, name);
|
|
1003
|
+
HttpHeaders_getInstance().i2i(name);
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(HeadersBuilder).
|
|
1006
|
-
protoOf(StringValuesBuilderImpl).
|
|
1007
|
-
HttpHeaders_getInstance().
|
|
1005
|
+
protoOf(HeadersBuilder).j28 = function (value) {
|
|
1006
|
+
protoOf(StringValuesBuilderImpl).j28.call(this, value);
|
|
1007
|
+
HttpHeaders_getInstance().j2i(value);
|
|
1008
1008
|
};
|
|
1009
1009
|
function EmptyHeaders() {
|
|
1010
1010
|
}
|
|
1011
|
-
protoOf(EmptyHeaders).
|
|
1011
|
+
protoOf(EmptyHeaders).x27 = function () {
|
|
1012
1012
|
return true;
|
|
1013
1013
|
};
|
|
1014
|
-
protoOf(EmptyHeaders).
|
|
1014
|
+
protoOf(EmptyHeaders).y27 = function (name) {
|
|
1015
1015
|
return null;
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf(EmptyHeaders).
|
|
1017
|
+
protoOf(EmptyHeaders).z27 = function () {
|
|
1018
1018
|
return emptySet();
|
|
1019
1019
|
};
|
|
1020
|
-
protoOf(EmptyHeaders).
|
|
1020
|
+
protoOf(EmptyHeaders).a28 = function () {
|
|
1021
1021
|
return emptySet();
|
|
1022
1022
|
};
|
|
1023
1023
|
protoOf(EmptyHeaders).toString = function () {
|
|
1024
|
-
return 'Headers ' + toString(this.
|
|
1024
|
+
return 'Headers ' + toString(this.a28());
|
|
1025
1025
|
};
|
|
1026
1026
|
var EmptyHeaders_instance;
|
|
1027
1027
|
function EmptyHeaders_getInstance() {
|
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
StringValuesImpl.call(this, true, values);
|
|
1033
1033
|
}
|
|
1034
1034
|
protoOf(HeadersImpl).toString = function () {
|
|
1035
|
-
return 'Headers ' + toString(this.
|
|
1035
|
+
return 'Headers ' + toString(this.a28());
|
|
1036
1036
|
};
|
|
1037
1037
|
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1038
1038
|
HeaderValueParam.call($this, name, value, false);
|
|
@@ -1042,20 +1042,20 @@
|
|
|
1042
1042
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1043
1043
|
}
|
|
1044
1044
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1045
|
+
this.o2c_1 = name;
|
|
1046
|
+
this.p2c_1 = value;
|
|
1047
|
+
this.q2c_1 = escapeValue;
|
|
1048
1048
|
}
|
|
1049
1049
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1050
1050
|
var tmp;
|
|
1051
1051
|
var tmp_0;
|
|
1052
1052
|
if (other instanceof HeaderValueParam) {
|
|
1053
|
-
tmp_0 = equals(other.
|
|
1053
|
+
tmp_0 = equals(other.o2c_1, this.o2c_1, true);
|
|
1054
1054
|
} else {
|
|
1055
1055
|
tmp_0 = false;
|
|
1056
1056
|
}
|
|
1057
1057
|
if (tmp_0) {
|
|
1058
|
-
tmp = equals(other.
|
|
1058
|
+
tmp = equals(other.p2c_1, this.p2c_1, true);
|
|
1059
1059
|
} else {
|
|
1060
1060
|
tmp = false;
|
|
1061
1061
|
}
|
|
@@ -1064,38 +1064,38 @@
|
|
|
1064
1064
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1065
1065
|
// Inline function 'kotlin.text.lowercase' call
|
|
1066
1066
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1067
|
-
var tmp$ret$1 = this.
|
|
1067
|
+
var tmp$ret$1 = this.o2c_1.toLowerCase();
|
|
1068
1068
|
var result = getStringHashCode(tmp$ret$1);
|
|
1069
1069
|
var tmp = result;
|
|
1070
1070
|
var tmp_0 = imul(31, result);
|
|
1071
1071
|
// Inline function 'kotlin.text.lowercase' call
|
|
1072
1072
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1073
|
-
var tmp$ret$3 = this.
|
|
1073
|
+
var tmp$ret$3 = this.p2c_1.toLowerCase();
|
|
1074
1074
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1075
1075
|
return result;
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf(HeaderValueParam).ig = function () {
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.o2c_1;
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf(HeaderValueParam).jg = function () {
|
|
1081
|
-
return this.
|
|
1081
|
+
return this.p2c_1;
|
|
1082
1082
|
};
|
|
1083
1083
|
protoOf(HeaderValueParam).toString = function () {
|
|
1084
|
-
return 'HeaderValueParam(name=' + this.
|
|
1084
|
+
return 'HeaderValueParam(name=' + this.o2c_1 + ', value=' + this.p2c_1 + ', escapeValue=' + this.q2c_1 + ')';
|
|
1085
1085
|
};
|
|
1086
1086
|
function HeaderValue(value, params) {
|
|
1087
1087
|
params = params === VOID ? emptyList() : params;
|
|
1088
|
-
this.
|
|
1089
|
-
this.
|
|
1088
|
+
this.s2c_1 = value;
|
|
1089
|
+
this.t2c_1 = params;
|
|
1090
1090
|
var tmp = this;
|
|
1091
1091
|
var tmp$ret$1;
|
|
1092
1092
|
$l$block: {
|
|
1093
1093
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1094
|
-
var tmp0_iterator = this.
|
|
1094
|
+
var tmp0_iterator = this.t2c_1.p();
|
|
1095
1095
|
while (tmp0_iterator.q()) {
|
|
1096
1096
|
var element = tmp0_iterator.r();
|
|
1097
1097
|
// Inline function 'io.ktor.http.HeaderValue.quality.<anonymous>' call
|
|
1098
|
-
if (element.
|
|
1098
|
+
if (element.o2c_1 === 'q') {
|
|
1099
1099
|
tmp$ret$1 = element;
|
|
1100
1100
|
break $l$block;
|
|
1101
1101
|
}
|
|
@@ -1103,7 +1103,7 @@
|
|
|
1103
1103
|
tmp$ret$1 = null;
|
|
1104
1104
|
}
|
|
1105
1105
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1106
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1106
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2c_1;
|
|
1107
1107
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1108
1108
|
var tmp_0;
|
|
1109
1109
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1121,17 +1121,17 @@
|
|
|
1121
1121
|
tmp_0 = tmp_1;
|
|
1122
1122
|
}
|
|
1123
1123
|
var tmp3_elvis_lhs = tmp_0;
|
|
1124
|
-
tmp.
|
|
1124
|
+
tmp.u2c_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1125
1125
|
}
|
|
1126
1126
|
protoOf(HeaderValue).ig = function () {
|
|
1127
|
-
return this.
|
|
1127
|
+
return this.s2c_1;
|
|
1128
1128
|
};
|
|
1129
1129
|
protoOf(HeaderValue).toString = function () {
|
|
1130
|
-
return 'HeaderValue(value=' + this.
|
|
1130
|
+
return 'HeaderValue(value=' + this.s2c_1 + ', params=' + toString(this.t2c_1) + ')';
|
|
1131
1131
|
};
|
|
1132
1132
|
protoOf(HeaderValue).hashCode = function () {
|
|
1133
|
-
var result = getStringHashCode(this.
|
|
1134
|
-
result = imul(result, 31) + hashCode(this.
|
|
1133
|
+
var result = getStringHashCode(this.s2c_1);
|
|
1134
|
+
result = imul(result, 31) + hashCode(this.t2c_1) | 0;
|
|
1135
1135
|
return result;
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1140,9 +1140,9 @@
|
|
|
1140
1140
|
if (!(other instanceof HeaderValue))
|
|
1141
1141
|
return false;
|
|
1142
1142
|
var tmp0_other_with_cast = other instanceof HeaderValue ? other : THROW_CCE();
|
|
1143
|
-
if (!(this.
|
|
1143
|
+
if (!(this.s2c_1 === tmp0_other_with_cast.s2c_1))
|
|
1144
1144
|
return false;
|
|
1145
|
-
if (!equals_0(this.
|
|
1145
|
+
if (!equals_0(this.t2c_1, tmp0_other_with_cast.t2c_1))
|
|
1146
1146
|
return false;
|
|
1147
1147
|
return true;
|
|
1148
1148
|
};
|
|
@@ -1278,16 +1278,16 @@
|
|
|
1278
1278
|
return sortedWith(this_0, tmp$ret$0);
|
|
1279
1279
|
}
|
|
1280
1280
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1281
|
-
this.
|
|
1281
|
+
this.k2i_1 = function_0;
|
|
1282
1282
|
}
|
|
1283
1283
|
protoOf(sam$kotlin_Comparator$0).xd = function (a, b) {
|
|
1284
|
-
return this.
|
|
1284
|
+
return this.k2i_1(a, b);
|
|
1285
1285
|
};
|
|
1286
1286
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1287
1287
|
return this.xd(a, b);
|
|
1288
1288
|
};
|
|
1289
1289
|
protoOf(sam$kotlin_Comparator$0).r3 = function () {
|
|
1290
|
-
return this.
|
|
1290
|
+
return this.k2i_1;
|
|
1291
1291
|
};
|
|
1292
1292
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1293
1293
|
var tmp;
|
|
@@ -1326,119 +1326,119 @@
|
|
|
1326
1326
|
function parseAndSortHeader$lambda(a, b) {
|
|
1327
1327
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1328
1328
|
// Inline function 'io.ktor.http.parseAndSortHeader.<anonymous>' call
|
|
1329
|
-
var tmp = b.
|
|
1329
|
+
var tmp = b.u2c_1;
|
|
1330
1330
|
// Inline function 'io.ktor.http.parseAndSortHeader.<anonymous>' call
|
|
1331
|
-
var tmp$ret$1 = a.
|
|
1331
|
+
var tmp$ret$1 = a.u2c_1;
|
|
1332
1332
|
return compareValues(tmp, tmp$ret$1);
|
|
1333
1333
|
}
|
|
1334
1334
|
function HttpHeaders() {
|
|
1335
1335
|
HttpHeaders_instance = this;
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
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.
|
|
1336
|
+
this.m2e_1 = 'Accept';
|
|
1337
|
+
this.n2e_1 = 'Accept-Charset';
|
|
1338
|
+
this.o2e_1 = 'Accept-Encoding';
|
|
1339
|
+
this.p2e_1 = 'Accept-Language';
|
|
1340
|
+
this.q2e_1 = 'Accept-Ranges';
|
|
1341
|
+
this.r2e_1 = 'Age';
|
|
1342
|
+
this.s2e_1 = 'Allow';
|
|
1343
|
+
this.t2e_1 = 'ALPN';
|
|
1344
|
+
this.u2e_1 = 'Authentication-Info';
|
|
1345
|
+
this.v2e_1 = 'Authorization';
|
|
1346
|
+
this.w2e_1 = 'Cache-Control';
|
|
1347
|
+
this.x2e_1 = 'Connection';
|
|
1348
|
+
this.y2e_1 = 'Content-Disposition';
|
|
1349
|
+
this.z2e_1 = 'Content-Encoding';
|
|
1350
|
+
this.a2f_1 = 'Content-Language';
|
|
1351
|
+
this.b2f_1 = 'Content-Length';
|
|
1352
|
+
this.c2f_1 = 'Content-Location';
|
|
1353
|
+
this.d2f_1 = 'Content-Range';
|
|
1354
|
+
this.e2f_1 = 'Content-Type';
|
|
1355
|
+
this.f2f_1 = 'Cookie';
|
|
1356
|
+
this.g2f_1 = 'DASL';
|
|
1357
|
+
this.h2f_1 = 'Date';
|
|
1358
|
+
this.i2f_1 = 'DAV';
|
|
1359
|
+
this.j2f_1 = 'Depth';
|
|
1360
|
+
this.k2f_1 = 'Destination';
|
|
1361
|
+
this.l2f_1 = 'ETag';
|
|
1362
|
+
this.m2f_1 = 'Expect';
|
|
1363
|
+
this.n2f_1 = 'Expires';
|
|
1364
|
+
this.o2f_1 = 'From';
|
|
1365
|
+
this.p2f_1 = 'Forwarded';
|
|
1366
|
+
this.q2f_1 = 'Host';
|
|
1367
|
+
this.r2f_1 = 'HTTP2-Settings';
|
|
1368
|
+
this.s2f_1 = 'If';
|
|
1369
|
+
this.t2f_1 = 'If-Match';
|
|
1370
|
+
this.u2f_1 = 'If-Modified-Since';
|
|
1371
|
+
this.v2f_1 = 'If-None-Match';
|
|
1372
|
+
this.w2f_1 = 'If-Range';
|
|
1373
|
+
this.x2f_1 = 'If-Schedule-Tag-Match';
|
|
1374
|
+
this.y2f_1 = 'If-Unmodified-Since';
|
|
1375
|
+
this.z2f_1 = 'Last-Modified';
|
|
1376
|
+
this.a2g_1 = 'Location';
|
|
1377
|
+
this.b2g_1 = 'Lock-Token';
|
|
1378
|
+
this.c2g_1 = 'Link';
|
|
1379
|
+
this.d2g_1 = 'Max-Forwards';
|
|
1380
|
+
this.e2g_1 = 'MIME-Version';
|
|
1381
|
+
this.f2g_1 = 'Ordering-Type';
|
|
1382
|
+
this.g2g_1 = 'Origin';
|
|
1383
|
+
this.h2g_1 = 'Overwrite';
|
|
1384
|
+
this.i2g_1 = 'Position';
|
|
1385
|
+
this.j2g_1 = 'Pragma';
|
|
1386
|
+
this.k2g_1 = 'Prefer';
|
|
1387
|
+
this.l2g_1 = 'Preference-Applied';
|
|
1388
|
+
this.m2g_1 = 'Proxy-Authenticate';
|
|
1389
|
+
this.n2g_1 = 'Proxy-Authentication-Info';
|
|
1390
|
+
this.o2g_1 = 'Proxy-Authorization';
|
|
1391
|
+
this.p2g_1 = 'Public-Key-Pins';
|
|
1392
|
+
this.q2g_1 = 'Public-Key-Pins-Report-Only';
|
|
1393
|
+
this.r2g_1 = 'Range';
|
|
1394
|
+
this.s2g_1 = 'Referer';
|
|
1395
|
+
this.t2g_1 = 'Retry-After';
|
|
1396
|
+
this.u2g_1 = 'Schedule-Reply';
|
|
1397
|
+
this.v2g_1 = 'Schedule-Tag';
|
|
1398
|
+
this.w2g_1 = 'Sec-WebSocket-Accept';
|
|
1399
|
+
this.x2g_1 = 'Sec-WebSocket-Extensions';
|
|
1400
|
+
this.y2g_1 = 'Sec-WebSocket-Key';
|
|
1401
|
+
this.z2g_1 = 'Sec-WebSocket-Protocol';
|
|
1402
|
+
this.a2h_1 = 'Sec-WebSocket-Version';
|
|
1403
|
+
this.b2h_1 = 'Server';
|
|
1404
|
+
this.c2h_1 = 'Set-Cookie';
|
|
1405
|
+
this.d2h_1 = 'SLUG';
|
|
1406
|
+
this.e2h_1 = 'Strict-Transport-Security';
|
|
1407
|
+
this.f2h_1 = 'TE';
|
|
1408
|
+
this.g2h_1 = 'Timeout';
|
|
1409
|
+
this.h2h_1 = 'Trailer';
|
|
1410
|
+
this.i2h_1 = 'Transfer-Encoding';
|
|
1411
|
+
this.j2h_1 = 'Upgrade';
|
|
1412
|
+
this.k2h_1 = 'User-Agent';
|
|
1413
|
+
this.l2h_1 = 'Vary';
|
|
1414
|
+
this.m2h_1 = 'Via';
|
|
1415
|
+
this.n2h_1 = 'Warning';
|
|
1416
|
+
this.o2h_1 = 'WWW-Authenticate';
|
|
1417
|
+
this.p2h_1 = 'Access-Control-Allow-Origin';
|
|
1418
|
+
this.q2h_1 = 'Access-Control-Allow-Methods';
|
|
1419
|
+
this.r2h_1 = 'Access-Control-Allow-Credentials';
|
|
1420
|
+
this.s2h_1 = 'Access-Control-Allow-Headers';
|
|
1421
|
+
this.t2h_1 = 'Access-Control-Request-Method';
|
|
1422
|
+
this.u2h_1 = 'Access-Control-Request-Headers';
|
|
1423
|
+
this.v2h_1 = 'Access-Control-Expose-Headers';
|
|
1424
|
+
this.w2h_1 = 'Access-Control-Max-Age';
|
|
1425
|
+
this.x2h_1 = 'X-Http-Method-Override';
|
|
1426
|
+
this.y2h_1 = 'X-Forwarded-Host';
|
|
1427
|
+
this.z2h_1 = 'X-Forwarded-Server';
|
|
1428
|
+
this.a2i_1 = 'X-Forwarded-Proto';
|
|
1429
|
+
this.b2i_1 = 'X-Forwarded-For';
|
|
1430
|
+
this.c2i_1 = 'X-Forwarded-Port';
|
|
1431
|
+
this.d2i_1 = 'X-Request-ID';
|
|
1432
|
+
this.e2i_1 = 'X-Correlation-ID';
|
|
1433
|
+
this.f2i_1 = 'X-Total-Count';
|
|
1434
1434
|
var tmp = this;
|
|
1435
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1436
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1437
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1438
|
-
tmp.
|
|
1439
|
-
this.
|
|
1438
|
+
tmp.g2i_1 = [this.i2h_1, this.j2h_1];
|
|
1439
|
+
this.h2i_1 = asList(this.g2i_1);
|
|
1440
1440
|
}
|
|
1441
|
-
protoOf(HttpHeaders).
|
|
1441
|
+
protoOf(HttpHeaders).i2i = function (name) {
|
|
1442
1442
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1443
1443
|
var index = 0;
|
|
1444
1444
|
var inductionVariable = 0;
|
|
@@ -1453,7 +1453,7 @@
|
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
};
|
|
1456
|
-
protoOf(HttpHeaders).
|
|
1456
|
+
protoOf(HttpHeaders).j2i = function (value) {
|
|
1457
1457
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1458
1458
|
var index = 0;
|
|
1459
1459
|
var inductionVariable = 0;
|
|
@@ -1484,8 +1484,8 @@
|
|
|
1484
1484
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1485
1485
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1486
1486
|
captureStack(this, IllegalHeaderNameException);
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1487
|
+
this.l2i_1 = headerName;
|
|
1488
|
+
this.m2i_1 = position;
|
|
1489
1489
|
}
|
|
1490
1490
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1491
1491
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charSequenceGet(headerValue, position)) + "'";
|
|
@@ -1494,15 +1494,15 @@
|
|
|
1494
1494
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1495
1495
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1496
1496
|
captureStack(this, IllegalHeaderValueException);
|
|
1497
|
-
this.
|
|
1498
|
-
this.
|
|
1497
|
+
this.n2i_1 = headerValue;
|
|
1498
|
+
this.o2i_1 = position;
|
|
1499
1499
|
}
|
|
1500
1500
|
function UnsafeHeaderException(header) {
|
|
1501
1501
|
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1502
1502
|
captureStack(this, UnsafeHeaderException);
|
|
1503
1503
|
}
|
|
1504
1504
|
function contentLength(_this__u8e3s4) {
|
|
1505
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1505
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2i().t26(HttpHeaders_getInstance().b2f_1);
|
|
1506
1506
|
return tmp0_safe_receiver == null ? null : toLong(tmp0_safe_receiver);
|
|
1507
1507
|
}
|
|
1508
1508
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1511
1511
|
}
|
|
1512
1512
|
function contentType(_this__u8e3s4) {
|
|
1513
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1513
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2i().t26(HttpHeaders_getInstance().e2f_1);
|
|
1514
1514
|
var tmp;
|
|
1515
1515
|
if (tmp0_safe_receiver == null) {
|
|
1516
1516
|
tmp = null;
|
|
@@ -1523,7 +1523,7 @@
|
|
|
1523
1523
|
return tmp;
|
|
1524
1524
|
}
|
|
1525
1525
|
function contentType_0(_this__u8e3s4) {
|
|
1526
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1526
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2i().t26(HttpHeaders_getInstance().e2f_1);
|
|
1527
1527
|
var tmp;
|
|
1528
1528
|
if (tmp0_safe_receiver == null) {
|
|
1529
1529
|
tmp = null;
|
|
@@ -1537,14 +1537,14 @@
|
|
|
1537
1537
|
}
|
|
1538
1538
|
function Companion_2() {
|
|
1539
1539
|
Companion_instance_2 = this;
|
|
1540
|
-
this.
|
|
1541
|
-
this.
|
|
1542
|
-
this.
|
|
1543
|
-
this.
|
|
1544
|
-
this.
|
|
1545
|
-
this.
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1540
|
+
this.q2i_1 = new HttpMethod('GET');
|
|
1541
|
+
this.r2i_1 = new HttpMethod('POST');
|
|
1542
|
+
this.s2i_1 = new HttpMethod('PUT');
|
|
1543
|
+
this.t2i_1 = new HttpMethod('PATCH');
|
|
1544
|
+
this.u2i_1 = new HttpMethod('DELETE');
|
|
1545
|
+
this.v2i_1 = new HttpMethod('HEAD');
|
|
1546
|
+
this.w2i_1 = new HttpMethod('OPTIONS');
|
|
1547
|
+
this.x2i_1 = listOf([this.q2i_1, this.r2i_1, this.s2i_1, this.t2i_1, this.u2i_1, this.v2i_1, this.w2i_1]);
|
|
1548
1548
|
}
|
|
1549
1549
|
var Companion_instance_2;
|
|
1550
1550
|
function Companion_getInstance_2() {
|
|
@@ -1554,13 +1554,13 @@
|
|
|
1554
1554
|
}
|
|
1555
1555
|
function HttpMethod(value) {
|
|
1556
1556
|
Companion_getInstance_2();
|
|
1557
|
-
this.
|
|
1557
|
+
this.y2i_1 = value;
|
|
1558
1558
|
}
|
|
1559
1559
|
protoOf(HttpMethod).toString = function () {
|
|
1560
|
-
return 'HttpMethod(value=' + this.
|
|
1560
|
+
return 'HttpMethod(value=' + this.y2i_1 + ')';
|
|
1561
1561
|
};
|
|
1562
1562
|
protoOf(HttpMethod).hashCode = function () {
|
|
1563
|
-
return getStringHashCode(this.
|
|
1563
|
+
return getStringHashCode(this.y2i_1);
|
|
1564
1564
|
};
|
|
1565
1565
|
protoOf(HttpMethod).equals = function (other) {
|
|
1566
1566
|
if (this === other)
|
|
@@ -1568,17 +1568,17 @@
|
|
|
1568
1568
|
if (!(other instanceof HttpMethod))
|
|
1569
1569
|
return false;
|
|
1570
1570
|
var tmp0_other_with_cast = other instanceof HttpMethod ? other : THROW_CCE();
|
|
1571
|
-
if (!(this.
|
|
1571
|
+
if (!(this.y2i_1 === tmp0_other_with_cast.y2i_1))
|
|
1572
1572
|
return false;
|
|
1573
1573
|
return true;
|
|
1574
1574
|
};
|
|
1575
1575
|
function Companion_3() {
|
|
1576
1576
|
Companion_instance_3 = this;
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1577
|
+
this.z2i_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1578
|
+
this.a2j_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1579
|
+
this.b2j_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1580
|
+
this.c2j_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1581
|
+
this.d2j_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1582
1582
|
}
|
|
1583
1583
|
var Companion_instance_3;
|
|
1584
1584
|
function Companion_getInstance_3() {
|
|
@@ -1588,17 +1588,17 @@
|
|
|
1588
1588
|
}
|
|
1589
1589
|
function HttpProtocolVersion(name, major, minor) {
|
|
1590
1590
|
Companion_getInstance_3();
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1591
|
+
this.e2j_1 = name;
|
|
1592
|
+
this.f2j_1 = major;
|
|
1593
|
+
this.g2j_1 = minor;
|
|
1594
1594
|
}
|
|
1595
1595
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1596
|
-
return this.
|
|
1596
|
+
return this.e2j_1 + '/' + this.f2j_1 + '.' + this.g2j_1;
|
|
1597
1597
|
};
|
|
1598
1598
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1599
|
-
var result = getStringHashCode(this.
|
|
1600
|
-
result = imul(result, 31) + this.e2j_1 | 0;
|
|
1599
|
+
var result = getStringHashCode(this.e2j_1);
|
|
1601
1600
|
result = imul(result, 31) + this.f2j_1 | 0;
|
|
1601
|
+
result = imul(result, 31) + this.g2j_1 | 0;
|
|
1602
1602
|
return result;
|
|
1603
1603
|
};
|
|
1604
1604
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1607,73 +1607,73 @@
|
|
|
1607
1607
|
if (!(other instanceof HttpProtocolVersion))
|
|
1608
1608
|
return false;
|
|
1609
1609
|
var tmp0_other_with_cast = other instanceof HttpProtocolVersion ? other : THROW_CCE();
|
|
1610
|
-
if (!(this.d2j_1 === tmp0_other_with_cast.d2j_1))
|
|
1611
|
-
return false;
|
|
1612
1610
|
if (!(this.e2j_1 === tmp0_other_with_cast.e2j_1))
|
|
1613
1611
|
return false;
|
|
1614
1612
|
if (!(this.f2j_1 === tmp0_other_with_cast.f2j_1))
|
|
1615
1613
|
return false;
|
|
1614
|
+
if (!(this.g2j_1 === tmp0_other_with_cast.g2j_1))
|
|
1615
|
+
return false;
|
|
1616
1616
|
return true;
|
|
1617
1617
|
};
|
|
1618
1618
|
function Companion_4() {
|
|
1619
1619
|
Companion_instance_4 = this;
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
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.
|
|
1620
|
+
this.h2j_1 = new HttpStatusCode(100, 'Continue');
|
|
1621
|
+
this.i2j_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1622
|
+
this.j2j_1 = new HttpStatusCode(102, 'Processing');
|
|
1623
|
+
this.k2j_1 = new HttpStatusCode(200, 'OK');
|
|
1624
|
+
this.l2j_1 = new HttpStatusCode(201, 'Created');
|
|
1625
|
+
this.m2j_1 = new HttpStatusCode(202, 'Accepted');
|
|
1626
|
+
this.n2j_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1627
|
+
this.o2j_1 = new HttpStatusCode(204, 'No Content');
|
|
1628
|
+
this.p2j_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1629
|
+
this.q2j_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1630
|
+
this.r2j_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1631
|
+
this.s2j_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1632
|
+
this.t2j_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1633
|
+
this.u2j_1 = new HttpStatusCode(302, 'Found');
|
|
1634
|
+
this.v2j_1 = new HttpStatusCode(303, 'See Other');
|
|
1635
|
+
this.w2j_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1636
|
+
this.x2j_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1637
|
+
this.y2j_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1638
|
+
this.z2j_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1639
|
+
this.a2k_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1640
|
+
this.b2k_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1641
|
+
this.c2k_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1642
|
+
this.d2k_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1643
|
+
this.e2k_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1644
|
+
this.f2k_1 = new HttpStatusCode(404, 'Not Found');
|
|
1645
|
+
this.g2k_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1646
|
+
this.h2k_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1647
|
+
this.i2k_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1648
|
+
this.j2k_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1649
|
+
this.k2k_1 = new HttpStatusCode(409, 'Conflict');
|
|
1650
|
+
this.l2k_1 = new HttpStatusCode(410, 'Gone');
|
|
1651
|
+
this.m2k_1 = new HttpStatusCode(411, 'Length Required');
|
|
1652
|
+
this.n2k_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1653
|
+
this.o2k_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1654
|
+
this.p2k_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1655
|
+
this.q2k_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1656
|
+
this.r2k_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1657
|
+
this.s2k_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1658
|
+
this.t2k_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1659
|
+
this.u2k_1 = new HttpStatusCode(423, 'Locked');
|
|
1660
|
+
this.v2k_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1661
|
+
this.w2k_1 = new HttpStatusCode(425, 'Too Early');
|
|
1662
|
+
this.x2k_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1663
|
+
this.y2k_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1664
|
+
this.z2k_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1665
|
+
this.a2l_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1666
|
+
this.b2l_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1667
|
+
this.c2l_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1668
|
+
this.d2l_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1669
|
+
this.e2l_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1670
|
+
this.f2l_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1671
|
+
this.g2l_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1672
|
+
this.h2l_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1673
|
+
this.i2l_1 = allStatusCodes();
|
|
1674
1674
|
var tmp = this;
|
|
1675
1675
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1676
|
-
var this_0 = this.
|
|
1676
|
+
var this_0 = this.i2l_1;
|
|
1677
1677
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1678
1678
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1679
1679
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -1681,10 +1681,10 @@
|
|
|
1681
1681
|
while (tmp0_iterator.q()) {
|
|
1682
1682
|
var element = tmp0_iterator.r();
|
|
1683
1683
|
// Inline function 'io.ktor.http.Companion.statusCodesMap.<anonymous>' call
|
|
1684
|
-
var tmp$ret$0 = element.
|
|
1684
|
+
var tmp$ret$0 = element.k2l_1;
|
|
1685
1685
|
destination.n2(tmp$ret$0, element);
|
|
1686
1686
|
}
|
|
1687
|
-
tmp.
|
|
1687
|
+
tmp.j2l_1 = destination;
|
|
1688
1688
|
}
|
|
1689
1689
|
var Companion_instance_4;
|
|
1690
1690
|
function Companion_getInstance_4() {
|
|
@@ -1694,40 +1694,40 @@
|
|
|
1694
1694
|
}
|
|
1695
1695
|
function HttpStatusCode(value, description) {
|
|
1696
1696
|
Companion_getInstance_4();
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1697
|
+
this.k2l_1 = value;
|
|
1698
|
+
this.l2l_1 = description;
|
|
1699
1699
|
}
|
|
1700
1700
|
protoOf(HttpStatusCode).toString = function () {
|
|
1701
|
-
return '' + this.
|
|
1701
|
+
return '' + this.k2l_1 + ' ' + this.l2l_1;
|
|
1702
1702
|
};
|
|
1703
1703
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1704
1704
|
var tmp;
|
|
1705
1705
|
if (other instanceof HttpStatusCode) {
|
|
1706
|
-
tmp = other.
|
|
1706
|
+
tmp = other.k2l_1 === this.k2l_1;
|
|
1707
1707
|
} else {
|
|
1708
1708
|
tmp = false;
|
|
1709
1709
|
}
|
|
1710
1710
|
return tmp;
|
|
1711
1711
|
};
|
|
1712
1712
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1713
|
-
return this.
|
|
1713
|
+
return this.k2l_1;
|
|
1714
1714
|
};
|
|
1715
|
-
protoOf(HttpStatusCode).
|
|
1716
|
-
return this.
|
|
1715
|
+
protoOf(HttpStatusCode).m2l = function (other) {
|
|
1716
|
+
return this.k2l_1 - other.k2l_1 | 0;
|
|
1717
1717
|
};
|
|
1718
1718
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1719
|
-
return this.
|
|
1719
|
+
return this.m2l(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1720
1720
|
};
|
|
1721
1721
|
function allStatusCodes() {
|
|
1722
|
-
return listOf([Companion_getInstance_4().
|
|
1722
|
+
return listOf([Companion_getInstance_4().h2j_1, Companion_getInstance_4().i2j_1, Companion_getInstance_4().j2j_1, Companion_getInstance_4().k2j_1, Companion_getInstance_4().l2j_1, Companion_getInstance_4().m2j_1, Companion_getInstance_4().n2j_1, Companion_getInstance_4().o2j_1, Companion_getInstance_4().p2j_1, Companion_getInstance_4().q2j_1, Companion_getInstance_4().r2j_1, Companion_getInstance_4().s2j_1, Companion_getInstance_4().t2j_1, Companion_getInstance_4().u2j_1, Companion_getInstance_4().v2j_1, Companion_getInstance_4().w2j_1, Companion_getInstance_4().x2j_1, Companion_getInstance_4().y2j_1, Companion_getInstance_4().z2j_1, Companion_getInstance_4().a2k_1, Companion_getInstance_4().b2k_1, Companion_getInstance_4().c2k_1, Companion_getInstance_4().d2k_1, Companion_getInstance_4().e2k_1, Companion_getInstance_4().f2k_1, Companion_getInstance_4().g2k_1, Companion_getInstance_4().h2k_1, Companion_getInstance_4().i2k_1, Companion_getInstance_4().j2k_1, Companion_getInstance_4().k2k_1, Companion_getInstance_4().l2k_1, Companion_getInstance_4().m2k_1, Companion_getInstance_4().n2k_1, Companion_getInstance_4().o2k_1, Companion_getInstance_4().p2k_1, Companion_getInstance_4().q2k_1, Companion_getInstance_4().r2k_1, Companion_getInstance_4().s2k_1, Companion_getInstance_4().t2k_1, Companion_getInstance_4().u2k_1, Companion_getInstance_4().v2k_1, Companion_getInstance_4().w2k_1, Companion_getInstance_4().x2k_1, Companion_getInstance_4().y2k_1, Companion_getInstance_4().z2k_1, Companion_getInstance_4().a2l_1, Companion_getInstance_4().b2l_1, Companion_getInstance_4().c2l_1, Companion_getInstance_4().d2l_1, Companion_getInstance_4().e2l_1, Companion_getInstance_4().f2l_1, Companion_getInstance_4().g2l_1, Companion_getInstance_4().h2l_1]);
|
|
1723
1723
|
}
|
|
1724
1724
|
function isSuccess(_this__u8e3s4) {
|
|
1725
|
-
var containsArg = _this__u8e3s4.
|
|
1725
|
+
var containsArg = _this__u8e3s4.k2l_1;
|
|
1726
1726
|
return 200 <= containsArg ? containsArg < 300 : false;
|
|
1727
1727
|
}
|
|
1728
1728
|
function Companion_5() {
|
|
1729
1729
|
Companion_instance_5 = this;
|
|
1730
|
-
this.
|
|
1730
|
+
this.n2l_1 = EmptyParameters_instance;
|
|
1731
1731
|
}
|
|
1732
1732
|
var Companion_instance_5;
|
|
1733
1733
|
function Companion_getInstance_5() {
|
|
@@ -1739,23 +1739,23 @@
|
|
|
1739
1739
|
}
|
|
1740
1740
|
function EmptyParameters() {
|
|
1741
1741
|
}
|
|
1742
|
-
protoOf(EmptyParameters).
|
|
1742
|
+
protoOf(EmptyParameters).x27 = function () {
|
|
1743
1743
|
return true;
|
|
1744
1744
|
};
|
|
1745
|
-
protoOf(EmptyParameters).
|
|
1745
|
+
protoOf(EmptyParameters).y27 = function (name) {
|
|
1746
1746
|
return null;
|
|
1747
1747
|
};
|
|
1748
|
-
protoOf(EmptyParameters).
|
|
1748
|
+
protoOf(EmptyParameters).z27 = function () {
|
|
1749
1749
|
return emptySet();
|
|
1750
1750
|
};
|
|
1751
|
-
protoOf(EmptyParameters).
|
|
1751
|
+
protoOf(EmptyParameters).a28 = function () {
|
|
1752
1752
|
return emptySet();
|
|
1753
1753
|
};
|
|
1754
1754
|
protoOf(EmptyParameters).h = function () {
|
|
1755
1755
|
return true;
|
|
1756
1756
|
};
|
|
1757
1757
|
protoOf(EmptyParameters).toString = function () {
|
|
1758
|
-
return 'Parameters ' + toString(this.
|
|
1758
|
+
return 'Parameters ' + toString(this.a28());
|
|
1759
1759
|
};
|
|
1760
1760
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1761
1761
|
var tmp;
|
|
@@ -1778,15 +1778,15 @@
|
|
|
1778
1778
|
size = size === VOID ? 8 : size;
|
|
1779
1779
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1780
1780
|
}
|
|
1781
|
-
protoOf(ParametersBuilderImpl).
|
|
1782
|
-
return new ParametersImpl(this.
|
|
1781
|
+
protoOf(ParametersBuilderImpl).l2e = function () {
|
|
1782
|
+
return new ParametersImpl(this.d28_1);
|
|
1783
1783
|
};
|
|
1784
1784
|
function ParametersImpl(values) {
|
|
1785
1785
|
values = values === VOID ? emptyMap() : values;
|
|
1786
1786
|
StringValuesImpl.call(this, true, values);
|
|
1787
1787
|
}
|
|
1788
1788
|
protoOf(ParametersImpl).toString = function () {
|
|
1789
|
-
return 'Parameters ' + toString(this.
|
|
1789
|
+
return 'Parameters ' + toString(this.a28());
|
|
1790
1790
|
};
|
|
1791
1791
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1792
1792
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1794,7 +1794,7 @@
|
|
|
1794
1794
|
decode = decode === VOID ? true : decode;
|
|
1795
1795
|
var tmp;
|
|
1796
1796
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1797
|
-
tmp = Companion_getInstance_5().
|
|
1797
|
+
tmp = Companion_getInstance_5().n2l_1;
|
|
1798
1798
|
} else {
|
|
1799
1799
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1800
1800
|
Companion_getInstance_5();
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
// Inline function 'kotlin.contracts.contract' call
|
|
1804
1804
|
// Inline function 'io.ktor.http.parseQueryString.<anonymous>' call
|
|
1805
1805
|
parse(this_0, query, startIndex, limit, decode);
|
|
1806
|
-
tmp = this_0.
|
|
1806
|
+
tmp = this_0.l2e();
|
|
1807
1807
|
}
|
|
1808
1808
|
return tmp;
|
|
1809
1809
|
}
|
|
@@ -1852,7 +1852,7 @@
|
|
|
1852
1852
|
tmp = query.substring(spaceNameIndex, spaceEndIndex);
|
|
1853
1853
|
}
|
|
1854
1854
|
var name = tmp;
|
|
1855
|
-
_this__u8e3s4.
|
|
1855
|
+
_this__u8e3s4.f28(name, emptyList());
|
|
1856
1856
|
}
|
|
1857
1857
|
return Unit_instance;
|
|
1858
1858
|
}
|
|
@@ -1879,7 +1879,7 @@
|
|
|
1879
1879
|
tmp_1 = query.substring(spaceValueIndex, spaceEndIndex_0);
|
|
1880
1880
|
}
|
|
1881
1881
|
var value = tmp_1;
|
|
1882
|
-
_this__u8e3s4.
|
|
1882
|
+
_this__u8e3s4.k28(name_0, value);
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
function trimStart(start, end, query) {
|
|
@@ -1899,24 +1899,24 @@
|
|
|
1899
1899
|
function applyOrigin($this) {
|
|
1900
1900
|
var tmp;
|
|
1901
1901
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1902
|
-
var this_0 = $this.
|
|
1902
|
+
var this_0 = $this.q2l_1;
|
|
1903
1903
|
if (charSequenceLength(this_0) > 0) {
|
|
1904
1904
|
tmp = true;
|
|
1905
1905
|
} else {
|
|
1906
|
-
tmp = $this.
|
|
1906
|
+
tmp = $this.c2m().a2m_1 === 'file';
|
|
1907
1907
|
}
|
|
1908
1908
|
if (tmp)
|
|
1909
1909
|
return Unit_instance;
|
|
1910
|
-
$this.
|
|
1911
|
-
if ($this.
|
|
1912
|
-
$this.
|
|
1913
|
-
if ($this.
|
|
1914
|
-
$this.
|
|
1910
|
+
$this.q2l_1 = Companion_getInstance_6().w2m_1.d2m_1;
|
|
1911
|
+
if ($this.t2l_1 == null)
|
|
1912
|
+
$this.t2l_1 = Companion_getInstance_6().w2m_1.o2m_1;
|
|
1913
|
+
if ($this.s2l_1 === 0) {
|
|
1914
|
+
$this.x2m(Companion_getInstance_6().w2m_1.e2m_1);
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
1917
|
function Companion_6() {
|
|
1918
1918
|
Companion_instance_6 = this;
|
|
1919
|
-
this.
|
|
1919
|
+
this.w2m_1 = Url(get_origin(this));
|
|
1920
1920
|
}
|
|
1921
1921
|
var Companion_instance_6;
|
|
1922
1922
|
function Companion_getInstance_6() {
|
|
@@ -1932,18 +1932,18 @@
|
|
|
1932
1932
|
user = user === VOID ? null : user;
|
|
1933
1933
|
password = password === VOID ? null : password;
|
|
1934
1934
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1935
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1935
|
+
parameters = parameters === VOID ? Companion_getInstance_5().n2l_1 : parameters;
|
|
1936
1936
|
fragment = fragment === VOID ? '' : fragment;
|
|
1937
1937
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1938
|
+
this.q2l_1 = host;
|
|
1939
|
+
this.r2l_1 = trailingQuery;
|
|
1940
|
+
this.s2l_1 = port;
|
|
1941
|
+
this.t2l_1 = protocol;
|
|
1942
1942
|
var tmp = this;
|
|
1943
|
-
tmp.
|
|
1943
|
+
tmp.u2l_1 = user == null ? null : encodeURLParameter(user);
|
|
1944
1944
|
var tmp_0 = this;
|
|
1945
|
-
tmp_0.
|
|
1946
|
-
this.
|
|
1945
|
+
tmp_0.v2l_1 = password == null ? null : encodeURLParameter(password);
|
|
1946
|
+
this.w2l_1 = encodeURLQueryComponent(fragment);
|
|
1947
1947
|
var tmp_1 = this;
|
|
1948
1948
|
// Inline function 'kotlin.collections.map' call
|
|
1949
1949
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1955,11 +1955,11 @@
|
|
|
1955
1955
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1956
1956
|
destination.k(tmp$ret$0);
|
|
1957
1957
|
}
|
|
1958
|
-
tmp_1.
|
|
1959
|
-
this.
|
|
1960
|
-
this.
|
|
1958
|
+
tmp_1.x2l_1 = destination;
|
|
1959
|
+
this.y2l_1 = encodeParameters(parameters);
|
|
1960
|
+
this.z2l_1 = new UrlDecodedParametersBuilder(this.y2l_1);
|
|
1961
1961
|
}
|
|
1962
|
-
protoOf(URLBuilder).
|
|
1962
|
+
protoOf(URLBuilder).x2m = function (value) {
|
|
1963
1963
|
// Inline function 'kotlin.require' call
|
|
1964
1964
|
// Inline function 'kotlin.contracts.contract' call
|
|
1965
1965
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
@@ -1967,33 +1967,33 @@
|
|
|
1967
1967
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1968
1968
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1969
1969
|
}
|
|
1970
|
-
this.r2l_1 = value;
|
|
1971
|
-
};
|
|
1972
|
-
protoOf(URLBuilder).x2m = function (value) {
|
|
1973
1970
|
this.s2l_1 = value;
|
|
1974
1971
|
};
|
|
1975
|
-
protoOf(URLBuilder).
|
|
1976
|
-
|
|
1977
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().y2m_1 : tmp0_elvis_lhs;
|
|
1972
|
+
protoOf(URLBuilder).y2m = function (value) {
|
|
1973
|
+
this.t2l_1 = value;
|
|
1978
1974
|
};
|
|
1979
|
-
protoOf(URLBuilder).
|
|
1980
|
-
var
|
|
1981
|
-
|
|
1975
|
+
protoOf(URLBuilder).c2m = function () {
|
|
1976
|
+
var tmp0_elvis_lhs = this.t2l_1;
|
|
1977
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().z2m_1 : tmp0_elvis_lhs;
|
|
1982
1978
|
};
|
|
1983
|
-
protoOf(URLBuilder).f2n = function () {
|
|
1984
|
-
var
|
|
1985
|
-
|
|
1979
|
+
protoOf(URLBuilder).f2n = function (value) {
|
|
1980
|
+
var tmp = this;
|
|
1981
|
+
tmp.u2l_1 = value == null ? null : encodeURLParameter(value);
|
|
1986
1982
|
};
|
|
1987
1983
|
protoOf(URLBuilder).g2n = function () {
|
|
1988
1984
|
var tmp0_safe_receiver = this.u2l_1;
|
|
1989
1985
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1990
1986
|
};
|
|
1991
1987
|
protoOf(URLBuilder).h2n = function () {
|
|
1992
|
-
|
|
1988
|
+
var tmp0_safe_receiver = this.v2l_1;
|
|
1989
|
+
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1993
1990
|
};
|
|
1994
1991
|
protoOf(URLBuilder).i2n = function () {
|
|
1992
|
+
return decodeURLQueryComponent(this.w2l_1);
|
|
1993
|
+
};
|
|
1994
|
+
protoOf(URLBuilder).j2n = function () {
|
|
1995
1995
|
// Inline function 'kotlin.collections.map' call
|
|
1996
|
-
var this_0 = this.
|
|
1996
|
+
var this_0 = this.x2l_1;
|
|
1997
1997
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1998
1998
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1999
1999
|
var tmp0_iterator = this_0.p();
|
|
@@ -2005,20 +2005,20 @@
|
|
|
2005
2005
|
}
|
|
2006
2006
|
return destination;
|
|
2007
2007
|
};
|
|
2008
|
-
protoOf(URLBuilder).
|
|
2009
|
-
this.
|
|
2010
|
-
this.
|
|
2008
|
+
protoOf(URLBuilder).k2n = function (value) {
|
|
2009
|
+
this.y2l_1 = value;
|
|
2010
|
+
this.z2l_1 = new UrlDecodedParametersBuilder(value);
|
|
2011
2011
|
};
|
|
2012
|
-
protoOf(URLBuilder).
|
|
2012
|
+
protoOf(URLBuilder).l2n = function () {
|
|
2013
2013
|
applyOrigin(this);
|
|
2014
2014
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2015
2015
|
};
|
|
2016
2016
|
protoOf(URLBuilder).toString = function () {
|
|
2017
2017
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2018
2018
|
};
|
|
2019
|
-
protoOf(URLBuilder).
|
|
2019
|
+
protoOf(URLBuilder).l2e = function () {
|
|
2020
2020
|
applyOrigin(this);
|
|
2021
|
-
return new Url_0(this.
|
|
2021
|
+
return new Url_0(this.t2l_1, this.q2l_1, this.s2l_1, this.j2n(), this.z2l_1.l2e(), this.i2n(), this.g2n(), this.h2n(), this.r2l_1, this.l2n());
|
|
2022
2022
|
};
|
|
2023
2023
|
function get_authority(_this__u8e3s4) {
|
|
2024
2024
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2028,40 +2028,40 @@
|
|
|
2028
2028
|
// Inline function 'kotlin.contracts.contract' call
|
|
2029
2029
|
// Inline function 'io.ktor.http.<get-authority>.<anonymous>' call
|
|
2030
2030
|
this_0.m8(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2031
|
-
this_0.m8(_this__u8e3s4.
|
|
2032
|
-
if (!(_this__u8e3s4.
|
|
2031
|
+
this_0.m8(_this__u8e3s4.q2l_1);
|
|
2032
|
+
if (!(_this__u8e3s4.s2l_1 === 0) && !(_this__u8e3s4.s2l_1 === _this__u8e3s4.c2m().b2m_1)) {
|
|
2033
2033
|
this_0.m8(':');
|
|
2034
|
-
this_0.m8(_this__u8e3s4.
|
|
2034
|
+
this_0.m8(_this__u8e3s4.s2l_1.toString());
|
|
2035
2035
|
}
|
|
2036
2036
|
return this_0.toString();
|
|
2037
2037
|
}
|
|
2038
2038
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2039
|
-
_this__u8e3s4.
|
|
2039
|
+
_this__u8e3s4.x2l_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2040
2040
|
}
|
|
2041
2041
|
function get_encodedPath(_this__u8e3s4) {
|
|
2042
|
-
return joinPath(_this__u8e3s4.
|
|
2042
|
+
return joinPath(_this__u8e3s4.x2l_1);
|
|
2043
2043
|
}
|
|
2044
2044
|
function appendTo(_this__u8e3s4, out) {
|
|
2045
|
-
out.l(_this__u8e3s4.
|
|
2046
|
-
switch (_this__u8e3s4.
|
|
2045
|
+
out.l(_this__u8e3s4.c2m().a2m_1);
|
|
2046
|
+
switch (_this__u8e3s4.c2m().a2m_1) {
|
|
2047
2047
|
case 'file':
|
|
2048
|
-
appendFile(out, _this__u8e3s4.
|
|
2048
|
+
appendFile(out, _this__u8e3s4.q2l_1, get_encodedPath(_this__u8e3s4));
|
|
2049
2049
|
return out;
|
|
2050
2050
|
case 'mailto':
|
|
2051
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2051
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.q2l_1);
|
|
2052
2052
|
return out;
|
|
2053
2053
|
case 'about':
|
|
2054
|
-
appendAbout(out, _this__u8e3s4.
|
|
2054
|
+
appendAbout(out, _this__u8e3s4.q2l_1);
|
|
2055
2055
|
return out;
|
|
2056
2056
|
}
|
|
2057
2057
|
out.l('://');
|
|
2058
2058
|
out.l(get_authority(_this__u8e3s4));
|
|
2059
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2059
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.y2l_1, _this__u8e3s4.r2l_1);
|
|
2060
2060
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2061
|
-
var this_0 = _this__u8e3s4.
|
|
2061
|
+
var this_0 = _this__u8e3s4.w2l_1;
|
|
2062
2062
|
if (charSequenceLength(this_0) > 0) {
|
|
2063
2063
|
out.n8(_Char___init__impl__6a9atx(35));
|
|
2064
|
-
out.l(_this__u8e3s4.
|
|
2064
|
+
out.l(_this__u8e3s4.w2l_1);
|
|
2065
2065
|
}
|
|
2066
2066
|
return out;
|
|
2067
2067
|
}
|
|
@@ -2072,7 +2072,7 @@
|
|
|
2072
2072
|
var this_0 = StringBuilder_init_$Create$();
|
|
2073
2073
|
// Inline function 'kotlin.contracts.contract' call
|
|
2074
2074
|
// Inline function 'io.ktor.http.<get-encodedUserAndPassword>.<anonymous>' call
|
|
2075
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2075
|
+
appendUserAndPassword(this_0, _this__u8e3s4.u2l_1, _this__u8e3s4.v2l_1);
|
|
2076
2076
|
return this_0.toString();
|
|
2077
2077
|
}
|
|
2078
2078
|
function joinPath(_this__u8e3s4) {
|
|
@@ -2175,16 +2175,16 @@
|
|
|
2175
2175
|
var endIndex_0 = startIndex + schemeLength | 0;
|
|
2176
2176
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2177
2177
|
var scheme = urlString.substring(startIndex_0, endIndex_0);
|
|
2178
|
-
_this__u8e3s4.
|
|
2178
|
+
_this__u8e3s4.y2m(Companion_getInstance_7().m2n(scheme));
|
|
2179
2179
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2180
2180
|
}
|
|
2181
2181
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2182
2182
|
startIndex = startIndex + slashCount | 0;
|
|
2183
|
-
if (_this__u8e3s4.
|
|
2183
|
+
if (_this__u8e3s4.c2m().a2m_1 === 'file') {
|
|
2184
2184
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2185
2185
|
return _this__u8e3s4;
|
|
2186
2186
|
}
|
|
2187
|
-
if (_this__u8e3s4.
|
|
2187
|
+
if (_this__u8e3s4.c2m().a2m_1 === 'mailto') {
|
|
2188
2188
|
// Inline function 'kotlin.require' call
|
|
2189
2189
|
// Inline function 'kotlin.contracts.contract' call
|
|
2190
2190
|
// Inline function 'kotlin.require' call
|
|
@@ -2197,7 +2197,7 @@
|
|
|
2197
2197
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2198
2198
|
return _this__u8e3s4;
|
|
2199
2199
|
}
|
|
2200
|
-
if (_this__u8e3s4.
|
|
2200
|
+
if (_this__u8e3s4.c2m().a2m_1 === 'about') {
|
|
2201
2201
|
// Inline function 'kotlin.require' call
|
|
2202
2202
|
// Inline function 'kotlin.contracts.contract' call
|
|
2203
2203
|
// Inline function 'kotlin.require' call
|
|
@@ -2211,7 +2211,7 @@
|
|
|
2211
2211
|
// Inline function 'kotlin.text.substring' call
|
|
2212
2212
|
var startIndex_1 = startIndex;
|
|
2213
2213
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2214
|
-
tmp.
|
|
2214
|
+
tmp.q2l_1 = urlString.substring(startIndex_1, endIndex);
|
|
2215
2215
|
return _this__u8e3s4;
|
|
2216
2216
|
}
|
|
2217
2217
|
if (slashCount >= 2) {
|
|
@@ -2235,18 +2235,18 @@
|
|
|
2235
2235
|
// Inline function 'kotlin.text.substring' call
|
|
2236
2236
|
var startIndex_2 = startIndex;
|
|
2237
2237
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2238
|
-
tmp_1.
|
|
2238
|
+
tmp_1.u2l_1 = urlString.substring(startIndex_2, passwordIndex);
|
|
2239
2239
|
var tmp_2 = _this__u8e3s4;
|
|
2240
2240
|
// Inline function 'kotlin.text.substring' call
|
|
2241
2241
|
var startIndex_3 = passwordIndex + 1 | 0;
|
|
2242
2242
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2243
|
-
tmp_2.
|
|
2243
|
+
tmp_2.v2l_1 = urlString.substring(startIndex_3, delimiter);
|
|
2244
2244
|
} else {
|
|
2245
2245
|
var tmp_3 = _this__u8e3s4;
|
|
2246
2246
|
// Inline function 'kotlin.text.substring' call
|
|
2247
2247
|
var startIndex_4 = startIndex;
|
|
2248
2248
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2249
|
-
tmp_3.
|
|
2249
|
+
tmp_3.u2l_1 = urlString.substring(startIndex_4, delimiter);
|
|
2250
2250
|
}
|
|
2251
2251
|
startIndex = delimiter + 1 | 0;
|
|
2252
2252
|
} else {
|
|
@@ -2257,17 +2257,17 @@
|
|
|
2257
2257
|
}
|
|
2258
2258
|
}
|
|
2259
2259
|
if (startIndex >= endIndex) {
|
|
2260
|
-
_this__u8e3s4.
|
|
2260
|
+
_this__u8e3s4.x2l_1 = charSequenceGet(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2261
2261
|
return _this__u8e3s4;
|
|
2262
2262
|
}
|
|
2263
2263
|
var tmp_4 = _this__u8e3s4;
|
|
2264
2264
|
var tmp_5;
|
|
2265
2265
|
if (slashCount === 0) {
|
|
2266
|
-
tmp_5 = dropLast(_this__u8e3s4.
|
|
2266
|
+
tmp_5 = dropLast(_this__u8e3s4.x2l_1, 1);
|
|
2267
2267
|
} else {
|
|
2268
2268
|
tmp_5 = emptyList();
|
|
2269
2269
|
}
|
|
2270
|
-
tmp_4.
|
|
2270
|
+
tmp_4.x2l_1 = tmp_5;
|
|
2271
2271
|
// Inline function 'kotlin.takeIf' call
|
|
2272
2272
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2273
2273
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2287,9 +2287,9 @@
|
|
|
2287
2287
|
var rawPath = urlString.substring(startIndex_5, pathEnd);
|
|
2288
2288
|
var tmp_7;
|
|
2289
2289
|
var tmp_8;
|
|
2290
|
-
if (_this__u8e3s4.
|
|
2290
|
+
if (_this__u8e3s4.x2l_1.s() === 1) {
|
|
2291
2291
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2292
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2292
|
+
var this_2 = first_0(_this__u8e3s4.x2l_1);
|
|
2293
2293
|
tmp_8 = charSequenceLength(this_2) === 0;
|
|
2294
2294
|
} else {
|
|
2295
2295
|
tmp_8 = false;
|
|
@@ -2297,12 +2297,12 @@
|
|
|
2297
2297
|
if (tmp_8) {
|
|
2298
2298
|
tmp_7 = emptyList();
|
|
2299
2299
|
} else {
|
|
2300
|
-
tmp_7 = _this__u8e3s4.
|
|
2300
|
+
tmp_7 = _this__u8e3s4.x2l_1;
|
|
2301
2301
|
}
|
|
2302
2302
|
var basePath = tmp_7;
|
|
2303
2303
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2304
2304
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2305
|
-
_this__u8e3s4.
|
|
2305
|
+
_this__u8e3s4.x2l_1 = plus_0(basePath, relativePath);
|
|
2306
2306
|
startIndex = pathEnd;
|
|
2307
2307
|
}
|
|
2308
2308
|
if (startIndex < endIndex && charSequenceGet(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2357,7 +2357,7 @@
|
|
|
2357
2357
|
var tmp = _this__u8e3s4;
|
|
2358
2358
|
// Inline function 'kotlin.text.substring' call
|
|
2359
2359
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2360
|
-
tmp.
|
|
2360
|
+
tmp.q2l_1 = urlString.substring(startIndex, endIndex);
|
|
2361
2361
|
return Unit_instance;
|
|
2362
2362
|
}
|
|
2363
2363
|
|
|
@@ -2366,7 +2366,7 @@
|
|
|
2366
2366
|
|
|
2367
2367
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2368
2368
|
|
|
2369
|
-
tmp_0.
|
|
2369
|
+
tmp_0.q2l_1 = urlString.substring(startIndex, nextSlash);
|
|
2370
2370
|
// Inline function 'kotlin.text.substring' call
|
|
2371
2371
|
|
|
2372
2372
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2375,7 +2375,7 @@
|
|
|
2375
2375
|
set_encodedPath(_this__u8e3s4, tmp$ret$5);
|
|
2376
2376
|
break;
|
|
2377
2377
|
case 3:
|
|
2378
|
-
_this__u8e3s4.
|
|
2378
|
+
_this__u8e3s4.q2l_1 = '';
|
|
2379
2379
|
// Inline function 'kotlin.text.substring' call
|
|
2380
2380
|
|
|
2381
2381
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2396,12 +2396,12 @@
|
|
|
2396
2396
|
// Inline function 'kotlin.text.substring' call
|
|
2397
2397
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2398
2398
|
var tmp$ret$1 = urlString.substring(startIndex, delimiter);
|
|
2399
|
-
_this__u8e3s4.
|
|
2399
|
+
_this__u8e3s4.f2n(decodeURLPart(tmp$ret$1));
|
|
2400
2400
|
var tmp = _this__u8e3s4;
|
|
2401
2401
|
// Inline function 'kotlin.text.substring' call
|
|
2402
2402
|
var startIndex_0 = delimiter + 1 | 0;
|
|
2403
2403
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2404
|
-
tmp.
|
|
2404
|
+
tmp.q2l_1 = urlString.substring(startIndex_0, endIndex);
|
|
2405
2405
|
}
|
|
2406
2406
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2407
2407
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2440,7 +2440,7 @@
|
|
|
2440
2440
|
var tmp_0 = _this__u8e3s4;
|
|
2441
2441
|
// Inline function 'kotlin.text.substring' call
|
|
2442
2442
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2443
|
-
tmp_0.
|
|
2443
|
+
tmp_0.q2l_1 = urlString.substring(startIndex, colonIndex);
|
|
2444
2444
|
var tmp_1;
|
|
2445
2445
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2446
2446
|
// Inline function 'kotlin.text.substring' call
|
|
@@ -2451,12 +2451,12 @@
|
|
|
2451
2451
|
} else {
|
|
2452
2452
|
tmp_1 = 0;
|
|
2453
2453
|
}
|
|
2454
|
-
_this__u8e3s4.
|
|
2454
|
+
_this__u8e3s4.x2m(tmp_1);
|
|
2455
2455
|
}
|
|
2456
2456
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2457
2457
|
_init_properties_URLParser_kt__sf11to();
|
|
2458
2458
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2459
|
-
_this__u8e3s4.
|
|
2459
|
+
_this__u8e3s4.r2l_1 = true;
|
|
2460
2460
|
return endIndex;
|
|
2461
2461
|
}
|
|
2462
2462
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2476,7 +2476,7 @@
|
|
|
2476
2476
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2477
2477
|
var tmp$ret$3 = urlString.substring(startIndex_0, fragmentStart);
|
|
2478
2478
|
var rawParameters = parseQueryString(tmp$ret$3, VOID, VOID, false);
|
|
2479
|
-
rawParameters.
|
|
2479
|
+
rawParameters.b28(parseQuery$lambda(_this__u8e3s4));
|
|
2480
2480
|
return fragmentStart;
|
|
2481
2481
|
}
|
|
2482
2482
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
@@ -2486,12 +2486,12 @@
|
|
|
2486
2486
|
// Inline function 'kotlin.text.substring' call
|
|
2487
2487
|
var startIndex_0 = startIndex + 1 | 0;
|
|
2488
2488
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2489
|
-
tmp.
|
|
2489
|
+
tmp.w2l_1 = urlString.substring(startIndex_0, endIndex);
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
2492
|
function parseQuery$lambda($this_parseQuery) {
|
|
2493
2493
|
return function (key, values) {
|
|
2494
|
-
$this_parseQuery.
|
|
2494
|
+
$this_parseQuery.y2l_1.f28(key, values);
|
|
2495
2495
|
return Unit_instance;
|
|
2496
2496
|
};
|
|
2497
2497
|
}
|
|
@@ -2504,14 +2504,14 @@
|
|
|
2504
2504
|
}
|
|
2505
2505
|
function Companion_7() {
|
|
2506
2506
|
Companion_instance_7 = this;
|
|
2507
|
-
this.
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2507
|
+
this.z2m_1 = new URLProtocol('http', 80);
|
|
2508
|
+
this.a2n_1 = new URLProtocol('https', 443);
|
|
2509
|
+
this.b2n_1 = new URLProtocol('ws', 80);
|
|
2510
|
+
this.c2n_1 = new URLProtocol('wss', 443);
|
|
2511
|
+
this.d2n_1 = new URLProtocol('socks', 1080);
|
|
2512
2512
|
var tmp = this;
|
|
2513
2513
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2514
|
-
var this_0 = listOf([this.
|
|
2514
|
+
var this_0 = listOf([this.z2m_1, this.a2n_1, this.b2n_1, this.c2n_1, this.d2n_1]);
|
|
2515
2515
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2516
2516
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2517
2517
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2519,17 +2519,17 @@
|
|
|
2519
2519
|
while (tmp0_iterator.q()) {
|
|
2520
2520
|
var element = tmp0_iterator.r();
|
|
2521
2521
|
// Inline function 'io.ktor.http.Companion.byName.<anonymous>' call
|
|
2522
|
-
var tmp$ret$0 = element.
|
|
2522
|
+
var tmp$ret$0 = element.a2m_1;
|
|
2523
2523
|
destination.n2(tmp$ret$0, element);
|
|
2524
2524
|
}
|
|
2525
|
-
tmp.
|
|
2525
|
+
tmp.e2n_1 = destination;
|
|
2526
2526
|
}
|
|
2527
|
-
protoOf(Companion_7).
|
|
2527
|
+
protoOf(Companion_7).m2n = function (name) {
|
|
2528
2528
|
// Inline function 'kotlin.let' call
|
|
2529
2529
|
// Inline function 'kotlin.contracts.contract' call
|
|
2530
2530
|
// Inline function 'io.ktor.http.Companion.createOrDefault.<anonymous>' call
|
|
2531
2531
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2532
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2532
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().e2n_1.k2(it);
|
|
2533
2533
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2534
2534
|
};
|
|
2535
2535
|
var Companion_instance_7;
|
|
@@ -2540,13 +2540,13 @@
|
|
|
2540
2540
|
}
|
|
2541
2541
|
function URLProtocol(name, defaultPort) {
|
|
2542
2542
|
Companion_getInstance_7();
|
|
2543
|
-
this.
|
|
2544
|
-
this.
|
|
2543
|
+
this.a2m_1 = name;
|
|
2544
|
+
this.b2m_1 = defaultPort;
|
|
2545
2545
|
// Inline function 'kotlin.require' call
|
|
2546
2546
|
var tmp$ret$1;
|
|
2547
2547
|
$l$block: {
|
|
2548
2548
|
// Inline function 'kotlin.text.all' call
|
|
2549
|
-
var indexedObject = this.
|
|
2549
|
+
var indexedObject = this.a2m_1;
|
|
2550
2550
|
var inductionVariable = 0;
|
|
2551
2551
|
while (inductionVariable < charSequenceLength(indexedObject)) {
|
|
2552
2552
|
var element = charSequenceGet(indexedObject, inductionVariable);
|
|
@@ -2567,11 +2567,11 @@
|
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
2569
|
protoOf(URLProtocol).toString = function () {
|
|
2570
|
-
return 'URLProtocol(name=' + this.
|
|
2570
|
+
return 'URLProtocol(name=' + this.a2m_1 + ', defaultPort=' + this.b2m_1 + ')';
|
|
2571
2571
|
};
|
|
2572
2572
|
protoOf(URLProtocol).hashCode = function () {
|
|
2573
|
-
var result = getStringHashCode(this.
|
|
2574
|
-
result = imul(result, 31) + this.
|
|
2573
|
+
var result = getStringHashCode(this.a2m_1);
|
|
2574
|
+
result = imul(result, 31) + this.b2m_1 | 0;
|
|
2575
2575
|
return result;
|
|
2576
2576
|
};
|
|
2577
2577
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2580,38 +2580,38 @@
|
|
|
2580
2580
|
if (!(other instanceof URLProtocol))
|
|
2581
2581
|
return false;
|
|
2582
2582
|
var tmp0_other_with_cast = other instanceof URLProtocol ? other : THROW_CCE();
|
|
2583
|
-
if (!(this.z2l_1 === tmp0_other_with_cast.z2l_1))
|
|
2584
|
-
return false;
|
|
2585
2583
|
if (!(this.a2m_1 === tmp0_other_with_cast.a2m_1))
|
|
2586
2584
|
return false;
|
|
2585
|
+
if (!(this.b2m_1 === tmp0_other_with_cast.b2m_1))
|
|
2586
|
+
return false;
|
|
2587
2587
|
return true;
|
|
2588
2588
|
};
|
|
2589
2589
|
function isSecure(_this__u8e3s4) {
|
|
2590
|
-
return _this__u8e3s4.
|
|
2590
|
+
return _this__u8e3s4.a2m_1 === 'https' || _this__u8e3s4.a2m_1 === 'wss';
|
|
2591
2591
|
}
|
|
2592
2592
|
function isWebsocket(_this__u8e3s4) {
|
|
2593
|
-
return _this__u8e3s4.
|
|
2593
|
+
return _this__u8e3s4.a2m_1 === 'ws' || _this__u8e3s4.a2m_1 === 'wss';
|
|
2594
2594
|
}
|
|
2595
2595
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2596
|
-
_this__u8e3s4.s2l_1 = url.s2l_1;
|
|
2597
|
-
_this__u8e3s4.p2l_1 = url.p2l_1;
|
|
2598
|
-
_this__u8e3s4.w2m(url.r2l_1);
|
|
2599
|
-
_this__u8e3s4.w2l_1 = url.w2l_1;
|
|
2600
2596
|
_this__u8e3s4.t2l_1 = url.t2l_1;
|
|
2597
|
+
_this__u8e3s4.q2l_1 = url.q2l_1;
|
|
2598
|
+
_this__u8e3s4.x2m(url.s2l_1);
|
|
2599
|
+
_this__u8e3s4.x2l_1 = url.x2l_1;
|
|
2601
2600
|
_this__u8e3s4.u2l_1 = url.u2l_1;
|
|
2601
|
+
_this__u8e3s4.v2l_1 = url.v2l_1;
|
|
2602
2602
|
// Inline function 'kotlin.apply' call
|
|
2603
2603
|
var this_0 = ParametersBuilder();
|
|
2604
2604
|
// Inline function 'kotlin.contracts.contract' call
|
|
2605
2605
|
// Inline function 'io.ktor.http.takeFrom.<anonymous>' call
|
|
2606
|
-
appendAll(this_0, url.
|
|
2607
|
-
_this__u8e3s4.
|
|
2608
|
-
_this__u8e3s4.
|
|
2609
|
-
_this__u8e3s4.
|
|
2606
|
+
appendAll(this_0, url.y2l_1);
|
|
2607
|
+
_this__u8e3s4.k2n(this_0);
|
|
2608
|
+
_this__u8e3s4.w2l_1 = url.w2l_1;
|
|
2609
|
+
_this__u8e3s4.r2l_1 = url.r2l_1;
|
|
2610
2610
|
return _this__u8e3s4;
|
|
2611
2611
|
}
|
|
2612
2612
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2613
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2614
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2613
|
+
var tmp0_subject = _this__u8e3s4.e2m_1;
|
|
2614
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.p2m_1.b2m_1 ? _this__u8e3s4.d2m_1 : get_hostWithPort(_this__u8e3s4);
|
|
2615
2615
|
}
|
|
2616
2616
|
function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
2617
2617
|
if (encodedUser == null) {
|
|
@@ -2625,7 +2625,7 @@
|
|
|
2625
2625
|
_this__u8e3s4.m8('@');
|
|
2626
2626
|
}
|
|
2627
2627
|
function Url(urlString) {
|
|
2628
|
-
return URLBuilder_0(urlString).
|
|
2628
|
+
return URLBuilder_0(urlString).l2e();
|
|
2629
2629
|
}
|
|
2630
2630
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2631
2631
|
var tmp;
|
|
@@ -2644,7 +2644,7 @@
|
|
|
2644
2644
|
}
|
|
2645
2645
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2646
2646
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2647
|
-
var this_0 = encodedQueryParameters.
|
|
2647
|
+
var this_0 = encodedQueryParameters.a28();
|
|
2648
2648
|
var destination = ArrayList_init_$Create$_0();
|
|
2649
2649
|
var tmp0_iterator = this_0.p();
|
|
2650
2650
|
while (tmp0_iterator.q()) {
|
|
@@ -2677,7 +2677,7 @@
|
|
|
2677
2677
|
joinTo(tmp_1, _this__u8e3s4, '&', VOID, VOID, VOID, VOID, appendUrlFullPath$lambda);
|
|
2678
2678
|
}
|
|
2679
2679
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2680
|
-
return _this__u8e3s4.
|
|
2680
|
+
return _this__u8e3s4.d2m_1 + ':' + _this__u8e3s4.n2n();
|
|
2681
2681
|
}
|
|
2682
2682
|
function URLBuilder_0(urlString) {
|
|
2683
2683
|
return takeFrom(new URLBuilder(), urlString);
|
|
@@ -2686,20 +2686,20 @@
|
|
|
2686
2686
|
return takeFrom_1(new URLBuilder(), url);
|
|
2687
2687
|
}
|
|
2688
2688
|
function takeFrom_1(_this__u8e3s4, url) {
|
|
2689
|
-
_this__u8e3s4.
|
|
2690
|
-
_this__u8e3s4.
|
|
2691
|
-
_this__u8e3s4.
|
|
2692
|
-
set_encodedPath(_this__u8e3s4, url.
|
|
2693
|
-
_this__u8e3s4.t2l_1 = url.o2n();
|
|
2689
|
+
_this__u8e3s4.t2l_1 = url.o2m_1;
|
|
2690
|
+
_this__u8e3s4.q2l_1 = url.d2m_1;
|
|
2691
|
+
_this__u8e3s4.x2m(url.n2n());
|
|
2692
|
+
set_encodedPath(_this__u8e3s4, url.o2n());
|
|
2694
2693
|
_this__u8e3s4.u2l_1 = url.p2n();
|
|
2694
|
+
_this__u8e3s4.v2l_1 = url.q2n();
|
|
2695
2695
|
// Inline function 'kotlin.apply' call
|
|
2696
2696
|
var this_0 = ParametersBuilder();
|
|
2697
2697
|
// Inline function 'kotlin.contracts.contract' call
|
|
2698
2698
|
// Inline function 'io.ktor.http.takeFrom.<anonymous>' call
|
|
2699
|
-
this_0.
|
|
2700
|
-
_this__u8e3s4.
|
|
2701
|
-
_this__u8e3s4.
|
|
2702
|
-
_this__u8e3s4.
|
|
2699
|
+
this_0.l28(parseQueryString(url.r2n(), VOID, VOID, false));
|
|
2700
|
+
_this__u8e3s4.k2n(this_0);
|
|
2701
|
+
_this__u8e3s4.w2l_1 = url.s2n();
|
|
2702
|
+
_this__u8e3s4.r2l_1 = url.j2m_1;
|
|
2703
2703
|
return _this__u8e3s4;
|
|
2704
2704
|
}
|
|
2705
2705
|
function appendUrlFullPath$lambda(it) {
|
|
@@ -2758,156 +2758,156 @@
|
|
|
2758
2758
|
if ($pathSegments.h()) {
|
|
2759
2759
|
return '';
|
|
2760
2760
|
}
|
|
2761
|
-
var pathStartIndex = indexOf(this$0.
|
|
2761
|
+
var pathStartIndex = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(47), this$0.p2m_1.a2m_1.length + 3 | 0);
|
|
2762
2762
|
var tmp_0;
|
|
2763
2763
|
if (pathStartIndex === -1) {
|
|
2764
2764
|
return '';
|
|
2765
2765
|
}
|
|
2766
2766
|
// Inline function 'kotlin.charArrayOf' call
|
|
2767
2767
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2768
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2768
|
+
var pathEndIndex = indexOfAny(this$0.k2m_1, tmp$ret$0, pathStartIndex);
|
|
2769
2769
|
var tmp_1;
|
|
2770
2770
|
if (pathEndIndex === -1) {
|
|
2771
2771
|
// Inline function 'kotlin.text.substring' call
|
|
2772
2772
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2773
|
-
return this$0.
|
|
2773
|
+
return this$0.k2m_1.substring(pathStartIndex);
|
|
2774
2774
|
}
|
|
2775
2775
|
// Inline function 'kotlin.text.substring' call
|
|
2776
2776
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2777
|
-
return this$0.
|
|
2777
|
+
return this$0.k2m_1.substring(pathStartIndex, pathEndIndex);
|
|
2778
2778
|
};
|
|
2779
2779
|
}
|
|
2780
2780
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2781
2781
|
return function () {
|
|
2782
|
-
var queryStart = indexOf(this$0.
|
|
2782
|
+
var queryStart = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2783
2783
|
var tmp;
|
|
2784
2784
|
if (queryStart === 0) {
|
|
2785
2785
|
return '';
|
|
2786
2786
|
}
|
|
2787
|
-
var queryEnd = indexOf(this$0.
|
|
2787
|
+
var queryEnd = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2788
2788
|
var tmp_0;
|
|
2789
2789
|
if (queryEnd === -1) {
|
|
2790
2790
|
// Inline function 'kotlin.text.substring' call
|
|
2791
2791
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2792
|
-
return this$0.
|
|
2792
|
+
return this$0.k2m_1.substring(queryStart);
|
|
2793
2793
|
}
|
|
2794
2794
|
// Inline function 'kotlin.text.substring' call
|
|
2795
2795
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2796
|
-
return this$0.
|
|
2796
|
+
return this$0.k2m_1.substring(queryStart, queryEnd);
|
|
2797
2797
|
};
|
|
2798
2798
|
}
|
|
2799
2799
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2800
2800
|
return function () {
|
|
2801
|
-
var pathStart = indexOf(this$0.
|
|
2801
|
+
var pathStart = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(47), this$0.p2m_1.a2m_1.length + 3 | 0);
|
|
2802
2802
|
var tmp;
|
|
2803
2803
|
if (pathStart === -1) {
|
|
2804
2804
|
return '';
|
|
2805
2805
|
}
|
|
2806
|
-
var queryEnd = indexOf(this$0.
|
|
2806
|
+
var queryEnd = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2807
2807
|
var tmp_0;
|
|
2808
2808
|
if (queryEnd === -1) {
|
|
2809
2809
|
// Inline function 'kotlin.text.substring' call
|
|
2810
2810
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2811
|
-
return this$0.
|
|
2811
|
+
return this$0.k2m_1.substring(pathStart);
|
|
2812
2812
|
}
|
|
2813
2813
|
// Inline function 'kotlin.text.substring' call
|
|
2814
2814
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2815
|
-
return this$0.
|
|
2815
|
+
return this$0.k2m_1.substring(pathStart, queryEnd);
|
|
2816
2816
|
};
|
|
2817
2817
|
}
|
|
2818
2818
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2819
2819
|
return function () {
|
|
2820
2820
|
var tmp;
|
|
2821
|
-
if (this$0.
|
|
2821
|
+
if (this$0.h2m_1 == null) {
|
|
2822
2822
|
return null;
|
|
2823
2823
|
}
|
|
2824
2824
|
var tmp_0;
|
|
2825
2825
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2826
|
-
var this_0 = this$0.
|
|
2826
|
+
var this_0 = this$0.h2m_1;
|
|
2827
2827
|
if (charSequenceLength(this_0) === 0) {
|
|
2828
2828
|
return '';
|
|
2829
2829
|
}
|
|
2830
|
-
var usernameStart = this$0.
|
|
2830
|
+
var usernameStart = this$0.p2m_1.a2m_1.length + 3 | 0;
|
|
2831
2831
|
// Inline function 'kotlin.charArrayOf' call
|
|
2832
2832
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2833
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2833
|
+
var usernameEnd = indexOfAny(this$0.k2m_1, tmp$ret$1, usernameStart);
|
|
2834
2834
|
// Inline function 'kotlin.text.substring' call
|
|
2835
2835
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2836
|
-
return this$0.
|
|
2836
|
+
return this$0.k2m_1.substring(usernameStart, usernameEnd);
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
2839
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2840
2840
|
return function () {
|
|
2841
2841
|
var tmp;
|
|
2842
|
-
if (this$0.
|
|
2842
|
+
if (this$0.i2m_1 == null) {
|
|
2843
2843
|
return null;
|
|
2844
2844
|
}
|
|
2845
2845
|
var tmp_0;
|
|
2846
2846
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2847
|
-
var this_0 = this$0.
|
|
2847
|
+
var this_0 = this$0.i2m_1;
|
|
2848
2848
|
if (charSequenceLength(this_0) === 0) {
|
|
2849
2849
|
return '';
|
|
2850
2850
|
}
|
|
2851
|
-
var passwordStart = indexOf(this$0.
|
|
2852
|
-
var passwordEnd = indexOf(this$0.
|
|
2851
|
+
var passwordStart = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(58), this$0.p2m_1.a2m_1.length + 3 | 0) + 1 | 0;
|
|
2852
|
+
var passwordEnd = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(64));
|
|
2853
2853
|
// Inline function 'kotlin.text.substring' call
|
|
2854
2854
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2855
|
-
return this$0.
|
|
2855
|
+
return this$0.k2m_1.substring(passwordStart, passwordEnd);
|
|
2856
2856
|
};
|
|
2857
2857
|
}
|
|
2858
2858
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2859
2859
|
return function () {
|
|
2860
|
-
var fragmentStart = indexOf(this$0.
|
|
2860
|
+
var fragmentStart = indexOf(this$0.k2m_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2861
2861
|
var tmp;
|
|
2862
2862
|
if (fragmentStart === 0) {
|
|
2863
2863
|
return '';
|
|
2864
2864
|
}
|
|
2865
2865
|
// Inline function 'kotlin.text.substring' call
|
|
2866
2866
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2867
|
-
return this$0.
|
|
2867
|
+
return this$0.k2m_1.substring(fragmentStart);
|
|
2868
2868
|
};
|
|
2869
2869
|
}
|
|
2870
2870
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2871
|
-
this.
|
|
2872
|
-
this.
|
|
2873
|
-
this.
|
|
2874
|
-
this.
|
|
2875
|
-
this.
|
|
2876
|
-
this.
|
|
2877
|
-
this.
|
|
2878
|
-
this.
|
|
2871
|
+
this.d2m_1 = host;
|
|
2872
|
+
this.e2m_1 = specifiedPort;
|
|
2873
|
+
this.f2m_1 = parameters;
|
|
2874
|
+
this.g2m_1 = fragment;
|
|
2875
|
+
this.h2m_1 = user;
|
|
2876
|
+
this.i2m_1 = password;
|
|
2877
|
+
this.j2m_1 = trailingQuery;
|
|
2878
|
+
this.k2m_1 = urlString;
|
|
2879
2879
|
// Inline function 'kotlin.require' call
|
|
2880
|
-
var containsArg = this.
|
|
2880
|
+
var containsArg = this.e2m_1;
|
|
2881
2881
|
// Inline function 'kotlin.contracts.contract' call
|
|
2882
2882
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2883
2883
|
// Inline function 'io.ktor.http.Url.<anonymous>' call
|
|
2884
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2884
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.e2m_1;
|
|
2885
2885
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2886
2886
|
}
|
|
2887
|
-
this.k2m_1 = pathSegments;
|
|
2888
2887
|
this.l2m_1 = pathSegments;
|
|
2888
|
+
this.m2m_1 = pathSegments;
|
|
2889
2889
|
var tmp = this;
|
|
2890
|
-
tmp.
|
|
2891
|
-
this.
|
|
2890
|
+
tmp.n2m_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2891
|
+
this.o2m_1 = protocol;
|
|
2892
2892
|
var tmp_0 = this;
|
|
2893
|
-
var tmp0_elvis_lhs = this.
|
|
2894
|
-
tmp_0.
|
|
2893
|
+
var tmp0_elvis_lhs = this.o2m_1;
|
|
2894
|
+
tmp_0.p2m_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().z2m_1 : tmp0_elvis_lhs;
|
|
2895
2895
|
var tmp_1 = this;
|
|
2896
|
-
tmp_1.
|
|
2896
|
+
tmp_1.q2m_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2897
2897
|
var tmp_2 = this;
|
|
2898
|
-
tmp_2.
|
|
2898
|
+
tmp_2.r2m_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2899
2899
|
var tmp_3 = this;
|
|
2900
|
-
tmp_3.
|
|
2900
|
+
tmp_3.s2m_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2901
2901
|
var tmp_4 = this;
|
|
2902
|
-
tmp_4.
|
|
2902
|
+
tmp_4.t2m_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2903
2903
|
var tmp_5 = this;
|
|
2904
|
-
tmp_5.
|
|
2904
|
+
tmp_5.u2m_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2905
2905
|
var tmp_6 = this;
|
|
2906
|
-
tmp_6.
|
|
2906
|
+
tmp_6.v2m_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2907
2907
|
}
|
|
2908
|
-
protoOf(Url_0).
|
|
2908
|
+
protoOf(Url_0).n2n = function () {
|
|
2909
2909
|
// Inline function 'kotlin.takeUnless' call
|
|
2910
|
-
var this_0 = this.
|
|
2910
|
+
var this_0 = this.e2m_1;
|
|
2911
2911
|
// Inline function 'kotlin.contracts.contract' call
|
|
2912
2912
|
var tmp;
|
|
2913
2913
|
// Inline function 'io.ktor.http.Url.<get-port>.<anonymous>' call
|
|
@@ -2917,40 +2917,40 @@
|
|
|
2917
2917
|
tmp = null;
|
|
2918
2918
|
}
|
|
2919
2919
|
var tmp0_elvis_lhs = tmp;
|
|
2920
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2920
|
+
return tmp0_elvis_lhs == null ? this.p2m_1.b2m_1 : tmp0_elvis_lhs;
|
|
2921
2921
|
};
|
|
2922
|
-
protoOf(Url_0).
|
|
2922
|
+
protoOf(Url_0).o2n = function () {
|
|
2923
2923
|
// Inline function 'kotlin.getValue' call
|
|
2924
|
-
var this_0 = this.
|
|
2924
|
+
var this_0 = this.q2m_1;
|
|
2925
2925
|
encodedPath$factory();
|
|
2926
2926
|
return this_0.z();
|
|
2927
2927
|
};
|
|
2928
|
-
protoOf(Url_0).
|
|
2928
|
+
protoOf(Url_0).r2n = function () {
|
|
2929
2929
|
// Inline function 'kotlin.getValue' call
|
|
2930
|
-
var this_0 = this.
|
|
2930
|
+
var this_0 = this.r2m_1;
|
|
2931
2931
|
encodedQuery$factory();
|
|
2932
2932
|
return this_0.z();
|
|
2933
2933
|
};
|
|
2934
|
-
protoOf(Url_0).
|
|
2934
|
+
protoOf(Url_0).p2n = function () {
|
|
2935
2935
|
// Inline function 'kotlin.getValue' call
|
|
2936
|
-
var this_0 = this.
|
|
2936
|
+
var this_0 = this.t2m_1;
|
|
2937
2937
|
encodedUser$factory();
|
|
2938
2938
|
return this_0.z();
|
|
2939
2939
|
};
|
|
2940
|
-
protoOf(Url_0).
|
|
2940
|
+
protoOf(Url_0).q2n = function () {
|
|
2941
2941
|
// Inline function 'kotlin.getValue' call
|
|
2942
|
-
var this_0 = this.
|
|
2942
|
+
var this_0 = this.u2m_1;
|
|
2943
2943
|
encodedPassword$factory();
|
|
2944
2944
|
return this_0.z();
|
|
2945
2945
|
};
|
|
2946
|
-
protoOf(Url_0).
|
|
2946
|
+
protoOf(Url_0).s2n = function () {
|
|
2947
2947
|
// Inline function 'kotlin.getValue' call
|
|
2948
|
-
var this_0 = this.
|
|
2948
|
+
var this_0 = this.v2m_1;
|
|
2949
2949
|
encodedFragment$factory();
|
|
2950
2950
|
return this_0.z();
|
|
2951
2951
|
};
|
|
2952
2952
|
protoOf(Url_0).toString = function () {
|
|
2953
|
-
return this.
|
|
2953
|
+
return this.k2m_1;
|
|
2954
2954
|
};
|
|
2955
2955
|
protoOf(Url_0).equals = function (other) {
|
|
2956
2956
|
if (this === other)
|
|
@@ -2959,10 +2959,10 @@
|
|
|
2959
2959
|
return false;
|
|
2960
2960
|
if (!(other instanceof Url_0))
|
|
2961
2961
|
THROW_CCE();
|
|
2962
|
-
return this.
|
|
2962
|
+
return this.k2m_1 === other.k2m_1;
|
|
2963
2963
|
};
|
|
2964
2964
|
protoOf(Url_0).hashCode = function () {
|
|
2965
|
-
return getStringHashCode(this.
|
|
2965
|
+
return getStringHashCode(this.k2m_1);
|
|
2966
2966
|
};
|
|
2967
2967
|
function get_authority_0(_this__u8e3s4) {
|
|
2968
2968
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2982,46 +2982,46 @@
|
|
|
2982
2982
|
var this_0 = StringBuilder_init_$Create$();
|
|
2983
2983
|
// Inline function 'kotlin.contracts.contract' call
|
|
2984
2984
|
// Inline function 'io.ktor.http.<get-encodedUserAndPassword>.<anonymous>' call
|
|
2985
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2985
|
+
appendUserAndPassword(this_0, _this__u8e3s4.p2n(), _this__u8e3s4.q2n());
|
|
2986
2986
|
return this_0.toString();
|
|
2987
2987
|
}
|
|
2988
2988
|
function encodedPath$factory() {
|
|
2989
2989
|
return getPropertyCallableRef('encodedPath', 1, KProperty1, function (receiver) {
|
|
2990
|
-
return receiver.
|
|
2990
|
+
return receiver.o2n();
|
|
2991
2991
|
}, null);
|
|
2992
2992
|
}
|
|
2993
2993
|
function encodedQuery$factory() {
|
|
2994
2994
|
return getPropertyCallableRef('encodedQuery', 1, KProperty1, function (receiver) {
|
|
2995
|
-
return receiver.
|
|
2995
|
+
return receiver.r2n();
|
|
2996
2996
|
}, null);
|
|
2997
2997
|
}
|
|
2998
2998
|
function encodedUser$factory() {
|
|
2999
2999
|
return getPropertyCallableRef('encodedUser', 1, KProperty1, function (receiver) {
|
|
3000
|
-
return receiver.
|
|
3000
|
+
return receiver.p2n();
|
|
3001
3001
|
}, null);
|
|
3002
3002
|
}
|
|
3003
3003
|
function encodedPassword$factory() {
|
|
3004
3004
|
return getPropertyCallableRef('encodedPassword', 1, KProperty1, function (receiver) {
|
|
3005
|
-
return receiver.
|
|
3005
|
+
return receiver.q2n();
|
|
3006
3006
|
}, null);
|
|
3007
3007
|
}
|
|
3008
3008
|
function encodedFragment$factory() {
|
|
3009
3009
|
return getPropertyCallableRef('encodedFragment', 1, KProperty1, function (receiver) {
|
|
3010
|
-
return receiver.
|
|
3010
|
+
return receiver.s2n();
|
|
3011
3011
|
}, null);
|
|
3012
3012
|
}
|
|
3013
3013
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
3014
|
-
this.
|
|
3015
|
-
this.
|
|
3014
|
+
this.t2n_1 = encodedParametersBuilder;
|
|
3015
|
+
this.u2n_1 = this.t2n_1.x27();
|
|
3016
3016
|
}
|
|
3017
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3018
|
-
return decodeParameters(this.
|
|
3017
|
+
protoOf(UrlDecodedParametersBuilder).l2e = function () {
|
|
3018
|
+
return decodeParameters(this.t2n_1);
|
|
3019
3019
|
};
|
|
3020
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3021
|
-
return this.
|
|
3020
|
+
protoOf(UrlDecodedParametersBuilder).x27 = function () {
|
|
3021
|
+
return this.u2n_1;
|
|
3022
3022
|
};
|
|
3023
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3024
|
-
var tmp0_safe_receiver = this.
|
|
3023
|
+
protoOf(UrlDecodedParametersBuilder).y27 = function (name) {
|
|
3024
|
+
var tmp0_safe_receiver = this.t2n_1.y27(encodeURLParameter(name));
|
|
3025
3025
|
var tmp;
|
|
3026
3026
|
if (tmp0_safe_receiver == null) {
|
|
3027
3027
|
tmp = null;
|
|
@@ -3040,12 +3040,12 @@
|
|
|
3040
3040
|
}
|
|
3041
3041
|
return tmp;
|
|
3042
3042
|
};
|
|
3043
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3044
|
-
return this.
|
|
3043
|
+
protoOf(UrlDecodedParametersBuilder).g28 = function (name) {
|
|
3044
|
+
return this.t2n_1.g28(encodeURLParameter(name));
|
|
3045
3045
|
};
|
|
3046
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3046
|
+
protoOf(UrlDecodedParametersBuilder).z27 = function () {
|
|
3047
3047
|
// Inline function 'kotlin.collections.map' call
|
|
3048
|
-
var this_0 = this.
|
|
3048
|
+
var this_0 = this.t2n_1.z27();
|
|
3049
3049
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3050
3050
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3051
3051
|
var tmp0_iterator = this_0.p();
|
|
@@ -3058,18 +3058,18 @@
|
|
|
3058
3058
|
return toSet(destination);
|
|
3059
3059
|
};
|
|
3060
3060
|
protoOf(UrlDecodedParametersBuilder).h = function () {
|
|
3061
|
-
return this.
|
|
3061
|
+
return this.t2n_1.h();
|
|
3062
3062
|
};
|
|
3063
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3064
|
-
return decodeParameters(this.
|
|
3063
|
+
protoOf(UrlDecodedParametersBuilder).a28 = function () {
|
|
3064
|
+
return decodeParameters(this.t2n_1).a28();
|
|
3065
3065
|
};
|
|
3066
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3067
|
-
return this.
|
|
3066
|
+
protoOf(UrlDecodedParametersBuilder).k28 = function (name, value) {
|
|
3067
|
+
return this.t2n_1.k28(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3068
3068
|
};
|
|
3069
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3070
|
-
return appendAllEncoded(this.
|
|
3069
|
+
protoOf(UrlDecodedParametersBuilder).l28 = function (stringValues) {
|
|
3070
|
+
return appendAllEncoded(this.t2n_1, stringValues);
|
|
3071
3071
|
};
|
|
3072
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3072
|
+
protoOf(UrlDecodedParametersBuilder).f28 = function (name, values) {
|
|
3073
3073
|
var tmp = encodeURLParameter(name);
|
|
3074
3074
|
// Inline function 'kotlin.collections.map' call
|
|
3075
3075
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3081,10 +3081,10 @@
|
|
|
3081
3081
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3082
3082
|
destination.k(tmp$ret$0);
|
|
3083
3083
|
}
|
|
3084
|
-
return this.
|
|
3084
|
+
return this.t2n_1.f28(tmp, destination);
|
|
3085
3085
|
};
|
|
3086
3086
|
protoOf(UrlDecodedParametersBuilder).e2 = function () {
|
|
3087
|
-
return this.
|
|
3087
|
+
return this.t2n_1.e2();
|
|
3088
3088
|
};
|
|
3089
3089
|
function encodeParameters(parameters) {
|
|
3090
3090
|
// Inline function 'kotlin.apply' call
|
|
@@ -3100,15 +3100,15 @@
|
|
|
3100
3100
|
// Inline function 'kotlin.contracts.contract' call
|
|
3101
3101
|
// Inline function 'io.ktor.http.decodeParameters.<anonymous>' call
|
|
3102
3102
|
appendAllDecoded(this_0, parameters);
|
|
3103
|
-
return this_0.
|
|
3103
|
+
return this_0.l2e();
|
|
3104
3104
|
}
|
|
3105
3105
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3106
3106
|
// Inline function 'kotlin.collections.forEach' call
|
|
3107
|
-
var tmp0_iterator = parameters.
|
|
3107
|
+
var tmp0_iterator = parameters.z27().p();
|
|
3108
3108
|
while (tmp0_iterator.q()) {
|
|
3109
3109
|
var element = tmp0_iterator.r();
|
|
3110
3110
|
// Inline function 'io.ktor.http.appendAllEncoded.<anonymous>' call
|
|
3111
|
-
var tmp0_elvis_lhs = parameters.
|
|
3111
|
+
var tmp0_elvis_lhs = parameters.y27(element);
|
|
3112
3112
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3113
3113
|
var tmp = encodeURLParameter(element);
|
|
3114
3114
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3121,16 +3121,16 @@
|
|
|
3121
3121
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3122
3122
|
destination.k(tmp$ret$0);
|
|
3123
3123
|
}
|
|
3124
|
-
_this__u8e3s4.
|
|
3124
|
+
_this__u8e3s4.f28(tmp, destination);
|
|
3125
3125
|
}
|
|
3126
3126
|
}
|
|
3127
3127
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3128
3128
|
// Inline function 'kotlin.collections.forEach' call
|
|
3129
|
-
var tmp0_iterator = parameters.
|
|
3129
|
+
var tmp0_iterator = parameters.z27().p();
|
|
3130
3130
|
while (tmp0_iterator.q()) {
|
|
3131
3131
|
var element = tmp0_iterator.r();
|
|
3132
3132
|
// Inline function 'io.ktor.http.appendAllDecoded.<anonymous>' call
|
|
3133
|
-
var tmp0_elvis_lhs = parameters.
|
|
3133
|
+
var tmp0_elvis_lhs = parameters.y27(element);
|
|
3134
3134
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3135
3135
|
var tmp = decodeURLQueryComponent(element);
|
|
3136
3136
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3143,7 +3143,7 @@
|
|
|
3143
3143
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3144
3144
|
destination.k(tmp$ret$0);
|
|
3145
3145
|
}
|
|
3146
|
-
_this__u8e3s4.
|
|
3146
|
+
_this__u8e3s4.f28(tmp, destination);
|
|
3147
3147
|
}
|
|
3148
3148
|
}
|
|
3149
3149
|
var HeaderValueEncoding_QUOTED_WHEN_REQUIRED_instance;
|
|
@@ -3224,72 +3224,72 @@
|
|
|
3224
3224
|
}
|
|
3225
3225
|
function HttpAuthHeader$Parameterized$render$lambda(this$0, $encoding) {
|
|
3226
3226
|
return function (it) {
|
|
3227
|
-
return it.
|
|
3227
|
+
return it.o2c_1 + '=' + encode_0(it.p2c_1, this$0, $encoding);
|
|
3228
3228
|
};
|
|
3229
3229
|
}
|
|
3230
3230
|
function Single(authScheme, blob) {
|
|
3231
3231
|
HttpAuthHeader.call(this, authScheme);
|
|
3232
|
-
this.
|
|
3232
|
+
this.w2n_1 = blob;
|
|
3233
3233
|
// Inline function 'kotlin.text.matches' call
|
|
3234
|
-
var this_0 = this.
|
|
3234
|
+
var this_0 = this.w2n_1;
|
|
3235
3235
|
if (!get_token68Pattern().ed(this_0)) {
|
|
3236
3236
|
throw new ParseException('Invalid blob value: it should be token68');
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
3239
|
-
protoOf(Single).
|
|
3240
|
-
return this.
|
|
3239
|
+
protoOf(Single).x2n = function () {
|
|
3240
|
+
return this.y2n_1 + ' ' + this.w2n_1;
|
|
3241
3241
|
};
|
|
3242
3242
|
protoOf(Single).equals = function (other) {
|
|
3243
3243
|
if (!(other instanceof Single))
|
|
3244
3244
|
return false;
|
|
3245
|
-
return equals(other.
|
|
3245
|
+
return equals(other.y2n_1, this.y2n_1, true) && equals(other.w2n_1, this.w2n_1, true);
|
|
3246
3246
|
};
|
|
3247
3247
|
protoOf(Single).hashCode = function () {
|
|
3248
3248
|
var tmp = Hash_instance;
|
|
3249
3249
|
// Inline function 'kotlin.text.lowercase' call
|
|
3250
3250
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3251
|
-
var tmp_0 = this.
|
|
3251
|
+
var tmp_0 = this.y2n_1.toLowerCase();
|
|
3252
3252
|
// Inline function 'kotlin.text.lowercase' call
|
|
3253
3253
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3254
|
-
var tmp$ret$3 = this.
|
|
3255
|
-
return tmp.
|
|
3254
|
+
var tmp$ret$3 = this.w2n_1.toLowerCase();
|
|
3255
|
+
return tmp.m27([tmp_0, tmp$ret$3]);
|
|
3256
3256
|
};
|
|
3257
3257
|
function Parameterized(authScheme, parameters, encoding) {
|
|
3258
3258
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3259
3259
|
HttpAuthHeader.call(this, authScheme);
|
|
3260
|
-
this.
|
|
3261
|
-
this.
|
|
3260
|
+
this.a2o_1 = parameters;
|
|
3261
|
+
this.b2o_1 = encoding;
|
|
3262
3262
|
// Inline function 'kotlin.collections.forEach' call
|
|
3263
|
-
var tmp0_iterator = this.
|
|
3263
|
+
var tmp0_iterator = this.a2o_1.p();
|
|
3264
3264
|
while (tmp0_iterator.q()) {
|
|
3265
3265
|
var element = tmp0_iterator.r();
|
|
3266
3266
|
// Inline function 'io.ktor.http.auth.Parameterized.<anonymous>' call
|
|
3267
3267
|
// Inline function 'kotlin.text.matches' call
|
|
3268
|
-
var this_0 = element.
|
|
3268
|
+
var this_0 = element.o2c_1;
|
|
3269
3269
|
if (!get_token68Pattern().ed(this_0)) {
|
|
3270
3270
|
throw new ParseException('Parameter name should be a token');
|
|
3271
3271
|
}
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
|
-
protoOf(Parameterized).
|
|
3274
|
+
protoOf(Parameterized).c2o = function (encoding) {
|
|
3275
3275
|
var tmp;
|
|
3276
|
-
if (this.
|
|
3277
|
-
tmp = this.
|
|
3276
|
+
if (this.a2o_1.h()) {
|
|
3277
|
+
tmp = this.y2n_1;
|
|
3278
3278
|
} else {
|
|
3279
|
-
var tmp_0 = this.
|
|
3280
|
-
tmp = joinToString(this.
|
|
3279
|
+
var tmp_0 = this.y2n_1 + ' ';
|
|
3280
|
+
tmp = joinToString(this.a2o_1, ', ', tmp_0, VOID, VOID, VOID, HttpAuthHeader$Parameterized$render$lambda(this, encoding));
|
|
3281
3281
|
}
|
|
3282
3282
|
return tmp;
|
|
3283
3283
|
};
|
|
3284
|
-
protoOf(Parameterized).
|
|
3284
|
+
protoOf(Parameterized).h2e = function (name) {
|
|
3285
3285
|
var tmp$ret$1;
|
|
3286
3286
|
$l$block: {
|
|
3287
3287
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3288
|
-
var tmp0_iterator = this.
|
|
3288
|
+
var tmp0_iterator = this.a2o_1.p();
|
|
3289
3289
|
while (tmp0_iterator.q()) {
|
|
3290
3290
|
var element = tmp0_iterator.r();
|
|
3291
3291
|
// Inline function 'io.ktor.http.auth.Parameterized.parameter.<anonymous>' call
|
|
3292
|
-
if (element.
|
|
3292
|
+
if (element.o2c_1 === name) {
|
|
3293
3293
|
tmp$ret$1 = element;
|
|
3294
3294
|
break $l$block;
|
|
3295
3295
|
}
|
|
@@ -3297,22 +3297,22 @@
|
|
|
3297
3297
|
tmp$ret$1 = null;
|
|
3298
3298
|
}
|
|
3299
3299
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
3300
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3300
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p2c_1;
|
|
3301
3301
|
};
|
|
3302
|
-
protoOf(Parameterized).
|
|
3303
|
-
return this.
|
|
3302
|
+
protoOf(Parameterized).x2n = function () {
|
|
3303
|
+
return this.c2o(this.b2o_1);
|
|
3304
3304
|
};
|
|
3305
3305
|
protoOf(Parameterized).equals = function (other) {
|
|
3306
3306
|
if (!(other instanceof Parameterized))
|
|
3307
3307
|
return false;
|
|
3308
|
-
return equals(other.
|
|
3308
|
+
return equals(other.y2n_1, this.y2n_1, true) && equals_0(other.a2o_1, this.a2o_1);
|
|
3309
3309
|
};
|
|
3310
3310
|
protoOf(Parameterized).hashCode = function () {
|
|
3311
3311
|
var tmp = Hash_instance;
|
|
3312
3312
|
// Inline function 'kotlin.text.lowercase' call
|
|
3313
3313
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3314
|
-
var tmp$ret$1 = this.
|
|
3315
|
-
return tmp.
|
|
3314
|
+
var tmp$ret$1 = this.y2n_1.toLowerCase();
|
|
3315
|
+
return tmp.m27([tmp$ret$1, this.a2o_1]);
|
|
3316
3316
|
};
|
|
3317
3317
|
function Companion_9() {
|
|
3318
3318
|
}
|
|
@@ -3321,15 +3321,15 @@
|
|
|
3321
3321
|
return Companion_instance_9;
|
|
3322
3322
|
}
|
|
3323
3323
|
function HttpAuthHeader(authScheme) {
|
|
3324
|
-
this.
|
|
3324
|
+
this.y2n_1 = authScheme;
|
|
3325
3325
|
// Inline function 'kotlin.text.matches' call
|
|
3326
|
-
var this_0 = this.
|
|
3326
|
+
var this_0 = this.y2n_1;
|
|
3327
3327
|
if (!get_token68Pattern().ed(this_0)) {
|
|
3328
|
-
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.
|
|
3328
|
+
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.y2n_1);
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
3331
|
protoOf(HttpAuthHeader).toString = function () {
|
|
3332
|
-
return this.
|
|
3332
|
+
return this.x2n();
|
|
3333
3333
|
};
|
|
3334
3334
|
function parseAuthorizationHeaders(headerValue) {
|
|
3335
3335
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3519,18 +3519,18 @@
|
|
|
3519
3519
|
contentType = contentType === VOID ? null : contentType;
|
|
3520
3520
|
status = status === VOID ? null : status;
|
|
3521
3521
|
ByteArrayContent_0.call(this);
|
|
3522
|
-
this.
|
|
3523
|
-
this.
|
|
3524
|
-
this.
|
|
3522
|
+
this.e2o_1 = bytes;
|
|
3523
|
+
this.f2o_1 = contentType;
|
|
3524
|
+
this.g2o_1 = status;
|
|
3525
3525
|
}
|
|
3526
|
-
protoOf(ByteArrayContent).g2o = function () {
|
|
3527
|
-
return this.e2o_1;
|
|
3528
|
-
};
|
|
3529
3526
|
protoOf(ByteArrayContent).h2o = function () {
|
|
3530
|
-
return
|
|
3527
|
+
return this.f2o_1;
|
|
3531
3528
|
};
|
|
3532
3529
|
protoOf(ByteArrayContent).i2o = function () {
|
|
3533
|
-
return this.
|
|
3530
|
+
return toLong_0(this.e2o_1.length);
|
|
3531
|
+
};
|
|
3532
|
+
protoOf(ByteArrayContent).j2o = function () {
|
|
3533
|
+
return this.e2o_1;
|
|
3534
3534
|
};
|
|
3535
3535
|
function NoContent() {
|
|
3536
3536
|
OutgoingContent.call(this);
|
|
@@ -3547,20 +3547,20 @@
|
|
|
3547
3547
|
}
|
|
3548
3548
|
function ContentWrapper() {
|
|
3549
3549
|
}
|
|
3550
|
-
protoOf(ContentWrapper).
|
|
3551
|
-
return this.
|
|
3550
|
+
protoOf(ContentWrapper).s2o = function () {
|
|
3551
|
+
return this.r2o_1;
|
|
3552
3552
|
};
|
|
3553
3553
|
function OutgoingContent() {
|
|
3554
|
-
this.
|
|
3554
|
+
this.k2o_1 = null;
|
|
3555
3555
|
}
|
|
3556
|
-
protoOf(OutgoingContent).
|
|
3556
|
+
protoOf(OutgoingContent).h2o = function () {
|
|
3557
3557
|
return null;
|
|
3558
3558
|
};
|
|
3559
|
-
protoOf(OutgoingContent).
|
|
3559
|
+
protoOf(OutgoingContent).i2o = function () {
|
|
3560
3560
|
return null;
|
|
3561
3561
|
};
|
|
3562
|
-
protoOf(OutgoingContent).
|
|
3563
|
-
return Companion_getInstance_1().
|
|
3562
|
+
protoOf(OutgoingContent).p2i = function () {
|
|
3563
|
+
return Companion_getInstance_1().i2e_1;
|
|
3564
3564
|
};
|
|
3565
3565
|
function NullBody() {
|
|
3566
3566
|
}
|
|
@@ -3571,40 +3571,40 @@
|
|
|
3571
3571
|
function TextContent(text, contentType, status) {
|
|
3572
3572
|
status = status === VOID ? null : status;
|
|
3573
3573
|
ByteArrayContent_0.call(this);
|
|
3574
|
-
this.
|
|
3575
|
-
this.
|
|
3576
|
-
this.
|
|
3574
|
+
this.u2o_1 = text;
|
|
3575
|
+
this.v2o_1 = contentType;
|
|
3576
|
+
this.w2o_1 = status;
|
|
3577
3577
|
var tmp = this;
|
|
3578
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3579
|
-
tmp.
|
|
3578
|
+
var tmp0_elvis_lhs = charset(this.v2o_1);
|
|
3579
|
+
tmp.x2o_1 = toByteArray(this.u2o_1, tmp0_elvis_lhs == null ? Charsets_getInstance().p1k_1 : tmp0_elvis_lhs);
|
|
3580
3580
|
}
|
|
3581
|
-
protoOf(TextContent).g2o = function () {
|
|
3582
|
-
return this.u2o_1;
|
|
3583
|
-
};
|
|
3584
3581
|
protoOf(TextContent).h2o = function () {
|
|
3585
|
-
return
|
|
3582
|
+
return this.v2o_1;
|
|
3586
3583
|
};
|
|
3587
3584
|
protoOf(TextContent).i2o = function () {
|
|
3588
|
-
return this.
|
|
3585
|
+
return toLong_0(this.x2o_1.length);
|
|
3586
|
+
};
|
|
3587
|
+
protoOf(TextContent).j2o = function () {
|
|
3588
|
+
return this.x2o_1;
|
|
3589
3589
|
};
|
|
3590
3590
|
protoOf(TextContent).toString = function () {
|
|
3591
|
-
return 'TextContent[' + this.
|
|
3591
|
+
return 'TextContent[' + this.v2o_1.toString() + '] "' + take(this.u2o_1, 30) + '"';
|
|
3592
3592
|
};
|
|
3593
3593
|
function ParseException(message, cause) {
|
|
3594
3594
|
cause = cause === VOID ? null : cause;
|
|
3595
3595
|
IllegalArgumentException_init_$Init$_0(message, cause, this);
|
|
3596
3596
|
captureStack(this, ParseException);
|
|
3597
|
-
this.
|
|
3598
|
-
this.
|
|
3597
|
+
this.y2o_1 = message;
|
|
3598
|
+
this.z2o_1 = cause;
|
|
3599
3599
|
}
|
|
3600
3600
|
protoOf(ParseException).t9 = function () {
|
|
3601
|
-
return this.
|
|
3601
|
+
return this.y2o_1;
|
|
3602
3602
|
};
|
|
3603
3603
|
protoOf(ParseException).u9 = function () {
|
|
3604
|
-
return this.
|
|
3604
|
+
return this.z2o_1;
|
|
3605
3605
|
};
|
|
3606
3606
|
function get_origin(_this__u8e3s4) {
|
|
3607
|
-
return PlatformUtils_getInstance().
|
|
3607
|
+
return PlatformUtils_getInstance().p27_1 ? locationOrigin() : 'http://localhost';
|
|
3608
3608
|
}
|
|
3609
3609
|
function locationOrigin() {
|
|
3610
3610
|
return function () {
|
|
@@ -3622,9 +3622,9 @@
|
|
|
3622
3622
|
}();
|
|
3623
3623
|
}
|
|
3624
3624
|
//region block: post-declaration
|
|
3625
|
-
protoOf(EmptyHeaders).
|
|
3626
|
-
protoOf(EmptyHeaders).
|
|
3627
|
-
protoOf(EmptyParameters).
|
|
3625
|
+
protoOf(EmptyHeaders).t26 = get;
|
|
3626
|
+
protoOf(EmptyHeaders).b28 = forEach;
|
|
3627
|
+
protoOf(EmptyParameters).b28 = forEach;
|
|
3628
3628
|
defineProp(protoOf(ParseException), 'message', function () {
|
|
3629
3629
|
return this.t9();
|
|
3630
3630
|
});
|