@dmarket/p2p-tracker-core 1.0.4-SNAPSHOT-development.92 → 1.0.4-SNAPSHOT-development.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +6 -6
- package/dmarket-p2p-tracker-core-domain.mjs +2736 -2346
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +7 -7
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/ktor-ktor-client-core.mjs +1875 -1871
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +625 -625
- package/ktor-ktor-io.mjs +602 -602
- package/ktor-ktor-utils.mjs +661 -661
- package/ktor-ktor-websockets.mjs +367 -367
- package/p2p-tracker-core.mjs +7006 -5972
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
- package/pkg/README.md +21 -9
- package/pkg/client_wasm.d.ts +4 -0
- package/pkg/client_wasm.js +4 -0
- package/pkg/client_wasm_bg.wasm +0 -0
- package/transport/README.md +81 -13
- package/transport/dist/channel.d.ts.map +1 -1
- package/transport/dist/channel.js.map +1 -1
- package/transport/dist/index.d.ts +2 -0
- package/transport/dist/index.d.ts.map +1 -1
- package/transport/dist/index.js +3 -2
- package/transport/dist/index.js.map +1 -1
- package/transport/dist/node.d.ts +4 -0
- package/transport/dist/node.d.ts.map +1 -0
- package/transport/dist/node.js +62 -0
- package/transport/dist/node.js.map +1 -0
- package/transport/dist/prover.d.ts +2 -0
- package/transport/dist/prover.d.ts.map +1 -1
- package/transport/dist/prover.js.map +1 -1
- package/transport/dist/tcp.d.ts +38 -0
- package/transport/dist/tcp.d.ts.map +1 -0
- package/transport/dist/tcp.js +88 -0
- package/transport/dist/tcp.js.map +1 -0
- package/transport/dist/types.d.ts +1 -1
- package/transport/package.json +7 -1
package/ktor-ktor-http.mjs
CHANGED
|
@@ -198,12 +198,12 @@ initMetadataForClass(TextContent, 'TextContent', VOID, ByteArrayContent);
|
|
|
198
198
|
function containsCode($this, code) {
|
|
199
199
|
if (!((code >>> 7 | 0) === 0))
|
|
200
200
|
return false;
|
|
201
|
-
var bits = code < 64 ? $this.
|
|
201
|
+
var bits = code < 64 ? $this.h46_1 : $this.i46_1;
|
|
202
202
|
return equalsLong(bitwiseAnd(shiftRightUnsigned(bits, code), new Long(1, 0)), new Long(1, 0));
|
|
203
203
|
}
|
|
204
204
|
function Companion() {
|
|
205
205
|
}
|
|
206
|
-
protoOf(Companion).
|
|
206
|
+
protoOf(Companion).j46 = function (chars) {
|
|
207
207
|
var low = new Long(0, 0);
|
|
208
208
|
var high = new Long(0, 0);
|
|
209
209
|
var _iterator__ex2g4s = chars.t();
|
|
@@ -223,27 +223,27 @@ protoOf(Companion).k45 = function (chars) {
|
|
|
223
223
|
}
|
|
224
224
|
return new AsciiBitSet(low, high);
|
|
225
225
|
};
|
|
226
|
-
protoOf(Companion).
|
|
227
|
-
return this.
|
|
226
|
+
protoOf(Companion).k46 = function (chars) {
|
|
227
|
+
return this.j46(asIterable(chars));
|
|
228
228
|
};
|
|
229
229
|
var Companion_instance;
|
|
230
230
|
function Companion_getInstance() {
|
|
231
231
|
return Companion_instance;
|
|
232
232
|
}
|
|
233
233
|
function AsciiBitSet(low, high) {
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
234
|
+
this.h46_1 = low;
|
|
235
|
+
this.i46_1 = high;
|
|
236
236
|
}
|
|
237
237
|
protoOf(AsciiBitSet).gk = function (char) {
|
|
238
238
|
// Inline function 'kotlin.code' call
|
|
239
239
|
var tmp$ret$0 = Char__toInt_impl_vasixd(char);
|
|
240
240
|
return containsCode(this, tmp$ret$0);
|
|
241
241
|
};
|
|
242
|
-
protoOf(AsciiBitSet).
|
|
242
|
+
protoOf(AsciiBitSet).l46 = function (byte) {
|
|
243
243
|
return containsCode(this, byte);
|
|
244
244
|
};
|
|
245
|
-
protoOf(AsciiBitSet).
|
|
246
|
-
return new AsciiBitSet(bitwiseOr(this.
|
|
245
|
+
protoOf(AsciiBitSet).m46 = function (other) {
|
|
246
|
+
return new AsciiBitSet(bitwiseOr(this.h46_1, other.h46_1), bitwiseOr(this.i46_1, other.i46_1));
|
|
247
247
|
};
|
|
248
248
|
function get_URL_ALPHABET() {
|
|
249
249
|
_init_properties_Codecs_kt__fudxxf();
|
|
@@ -274,7 +274,7 @@ var URL_PARAMETER_CHARS;
|
|
|
274
274
|
function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
275
275
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
276
276
|
_init_properties_Codecs_kt__fudxxf();
|
|
277
|
-
var content = toByteArray(_this__u8e3s4, Charsets_getInstance().
|
|
277
|
+
var content = toByteArray(_this__u8e3s4, Charsets_getInstance().h3x_1);
|
|
278
278
|
// Inline function 'kotlin.text.buildString' call
|
|
279
279
|
var capacity = content.length;
|
|
280
280
|
// Inline function 'kotlin.apply' call
|
|
@@ -284,7 +284,7 @@ function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
|
284
284
|
while (inductionVariable < last) {
|
|
285
285
|
var byte = content[inductionVariable];
|
|
286
286
|
inductionVariable = inductionVariable + 1 | 0;
|
|
287
|
-
if (get_URL_PARAMETER_CHARS().
|
|
287
|
+
if (get_URL_PARAMETER_CHARS().l46(byte))
|
|
288
288
|
this_0.s(numberToChar(byte));
|
|
289
289
|
else {
|
|
290
290
|
var tmp;
|
|
@@ -320,14 +320,14 @@ function hexDigitToChar(digit) {
|
|
|
320
320
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
321
321
|
start = start === VOID ? 0 : start;
|
|
322
322
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
323
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
323
|
+
charset = charset === VOID ? Charsets_getInstance().h3x_1 : charset;
|
|
324
324
|
_init_properties_Codecs_kt__fudxxf();
|
|
325
325
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
326
326
|
}
|
|
327
327
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
328
328
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
329
329
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
330
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
330
|
+
charset = charset === VOID ? Charsets_getInstance().h3x_1 : charset;
|
|
331
331
|
_init_properties_Codecs_kt__fudxxf();
|
|
332
332
|
var content = toByteArray(_this__u8e3s4, charset);
|
|
333
333
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -349,7 +349,7 @@ function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset
|
|
|
349
349
|
else
|
|
350
350
|
this_0.q('%20');
|
|
351
351
|
else {
|
|
352
|
-
if (get_URL_ALPHABET().
|
|
352
|
+
if (get_URL_ALPHABET().l46(byte) || (!encodeFull && get_URL_PROTOCOL_PART().l46(byte)))
|
|
353
353
|
this_0.s(numberToChar(byte));
|
|
354
354
|
else {
|
|
355
355
|
appendPercentEncoded(this_0, byte);
|
|
@@ -362,7 +362,7 @@ function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset
|
|
|
362
362
|
start = start === VOID ? 0 : start;
|
|
363
363
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
364
364
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
365
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
365
|
+
charset = charset === VOID ? Charsets_getInstance().h3x_1 : charset;
|
|
366
366
|
_init_properties_Codecs_kt__fudxxf();
|
|
367
367
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
368
368
|
}
|
|
@@ -377,7 +377,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
377
377
|
// Inline function 'kotlin.text.buildString' call
|
|
378
378
|
// Inline function 'kotlin.apply' call
|
|
379
379
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
380
|
-
var charset = Charsets_getInstance().
|
|
380
|
+
var charset = Charsets_getInstance().h3x_1;
|
|
381
381
|
var index = 0;
|
|
382
382
|
$l$loop_1: while (index < _this__u8e3s4.length) {
|
|
383
383
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
@@ -402,7 +402,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
402
402
|
continue $l$loop_1;
|
|
403
403
|
}
|
|
404
404
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
405
|
-
var tmp = encode(charset.
|
|
405
|
+
var tmp = encode(charset.k3x(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
406
406
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
407
407
|
index = index + symbolSize | 0;
|
|
408
408
|
}
|
|
@@ -495,7 +495,7 @@ function encodeURLPath$lambda($$this$buildString) {
|
|
|
495
495
|
function forEach$lambda($block) {
|
|
496
496
|
return function (buffer) {
|
|
497
497
|
while (canRead(buffer)) {
|
|
498
|
-
$block(buffer.
|
|
498
|
+
$block(buffer.d3j());
|
|
499
499
|
}
|
|
500
500
|
return true;
|
|
501
501
|
};
|
|
@@ -504,12 +504,12 @@ var properties_initialized_Codecs_kt_hkj9s1;
|
|
|
504
504
|
function _init_properties_Codecs_kt__fudxxf() {
|
|
505
505
|
if (!properties_initialized_Codecs_kt_hkj9s1) {
|
|
506
506
|
properties_initialized_Codecs_kt_hkj9s1 = true;
|
|
507
|
-
URL_ALPHABET = Companion_instance.
|
|
508
|
-
HEX_ALPHABET = Companion_instance.
|
|
509
|
-
URL_PROTOCOL_PART = Companion_instance.
|
|
510
|
-
VALID_PATH_PART = Companion_instance.
|
|
511
|
-
ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().
|
|
512
|
-
URL_PARAMETER_CHARS = get_URL_ALPHABET().
|
|
507
|
+
URL_ALPHABET = Companion_instance.j46(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
508
|
+
HEX_ALPHABET = Companion_instance.j46(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(102)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(70))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
509
|
+
URL_PROTOCOL_PART = Companion_instance.k46(":/?#[]@!$&'()*,;=-._~+");
|
|
510
|
+
VALID_PATH_PART = Companion_instance.k46(":@!$&'()*+,;=-._~");
|
|
511
|
+
ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().m46(Companion_instance.k46('!#$&+-.^_`|~'));
|
|
512
|
+
URL_PARAMETER_CHARS = get_URL_ALPHABET().m46(Companion_instance.k46('-._~'));
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
var textSubTypes;
|
|
@@ -523,18 +523,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
523
523
|
}
|
|
524
524
|
function hasParameter($this, name, value) {
|
|
525
525
|
var tmp;
|
|
526
|
-
switch ($this.
|
|
526
|
+
switch ($this.o46_1.e1()) {
|
|
527
527
|
case 0:
|
|
528
528
|
tmp = false;
|
|
529
529
|
break;
|
|
530
530
|
case 1:
|
|
531
531
|
// Inline function 'kotlin.let' call
|
|
532
532
|
|
|
533
|
-
var it = $this.
|
|
534
|
-
tmp = (equals(it.
|
|
533
|
+
var it = $this.o46_1.f1(0);
|
|
534
|
+
tmp = (equals(it.p46_1, name, true) && equals(it.q46_1, value, true));
|
|
535
535
|
break;
|
|
536
536
|
default:
|
|
537
|
-
var tmp0 = $this.
|
|
537
|
+
var tmp0 = $this.o46_1;
|
|
538
538
|
var tmp$ret$2;
|
|
539
539
|
$l$block_0: {
|
|
540
540
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -551,7 +551,7 @@ function hasParameter($this, name, value) {
|
|
|
551
551
|
var _iterator__ex2g4s = tmp0.t();
|
|
552
552
|
while (_iterator__ex2g4s.u()) {
|
|
553
553
|
var element = _iterator__ex2g4s.v();
|
|
554
|
-
if (equals(element.
|
|
554
|
+
if (equals(element.p46_1, name, true) && equals(element.q46_1, value, true)) {
|
|
555
555
|
tmp$ret$2 = true;
|
|
556
556
|
break $l$block_0;
|
|
557
557
|
}
|
|
@@ -566,20 +566,20 @@ function hasParameter($this, name, value) {
|
|
|
566
566
|
}
|
|
567
567
|
function Companion_0() {
|
|
568
568
|
Companion_instance_0 = this;
|
|
569
|
-
this.
|
|
569
|
+
this.s46_1 = ContentType_init_$Create$('*', '*');
|
|
570
570
|
}
|
|
571
571
|
protoOf(Companion_0).lo = function (value) {
|
|
572
572
|
if (isBlank(value))
|
|
573
|
-
return this.
|
|
573
|
+
return this.s46_1;
|
|
574
574
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
575
575
|
var headerValue = last(parseHeaderValue(value));
|
|
576
|
-
var tmp0 = headerValue.
|
|
577
|
-
var parameters = headerValue.
|
|
576
|
+
var tmp0 = headerValue.t46_1;
|
|
577
|
+
var parameters = headerValue.u46_1;
|
|
578
578
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
579
579
|
if (slash === -1) {
|
|
580
580
|
// Inline function 'kotlin.text.trim' call
|
|
581
581
|
if (toString_0(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
582
|
-
return Companion_getInstance_0().
|
|
582
|
+
return Companion_getInstance_0().s46_1;
|
|
583
583
|
throw new BadContentTypeFormatException(value);
|
|
584
584
|
}
|
|
585
585
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -615,30 +615,30 @@ function Companion_getInstance_0() {
|
|
|
615
615
|
}
|
|
616
616
|
function Application() {
|
|
617
617
|
Application_instance = this;
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
618
|
+
this.w46_1 = 'application';
|
|
619
|
+
this.x46_1 = ContentType_init_$Create$('application', '*');
|
|
620
|
+
this.y46_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
621
|
+
this.z46_1 = ContentType_init_$Create$('application', 'cbor');
|
|
622
|
+
this.a47_1 = ContentType_init_$Create$('application', 'json');
|
|
623
|
+
this.b47_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
624
|
+
this.c47_1 = ContentType_init_$Create$('application', 'javascript');
|
|
625
|
+
this.d47_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
626
|
+
this.e47_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
627
|
+
this.f47_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
628
|
+
this.g47_1 = ContentType_init_$Create$('application', 'xml');
|
|
629
|
+
this.h47_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
630
|
+
this.i47_1 = ContentType_init_$Create$('application', 'yaml');
|
|
631
|
+
this.j47_1 = ContentType_init_$Create$('application', 'zip');
|
|
632
|
+
this.k47_1 = ContentType_init_$Create$('application', 'gzip');
|
|
633
|
+
this.l47_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
634
|
+
this.m47_1 = ContentType_init_$Create$('application', 'pdf');
|
|
635
|
+
this.n47_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
636
|
+
this.o47_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
637
|
+
this.p47_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
638
|
+
this.q47_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
639
|
+
this.r47_1 = ContentType_init_$Create$('application', 'wasm');
|
|
640
|
+
this.s47_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
641
|
+
this.t47_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
642
642
|
}
|
|
643
643
|
var Application_instance;
|
|
644
644
|
function Application_getInstance() {
|
|
@@ -648,17 +648,17 @@ function Application_getInstance() {
|
|
|
648
648
|
}
|
|
649
649
|
function MultiPart() {
|
|
650
650
|
MultiPart_instance = this;
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
}
|
|
661
|
-
protoOf(MultiPart).
|
|
651
|
+
this.u47_1 = 'multipart';
|
|
652
|
+
this.v47_1 = ContentType_init_$Create$('multipart', '*');
|
|
653
|
+
this.w47_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
654
|
+
this.x47_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
655
|
+
this.y47_1 = ContentType_init_$Create$('multipart', 'related');
|
|
656
|
+
this.z47_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
657
|
+
this.a48_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
658
|
+
this.b48_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
659
|
+
this.c48_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
660
|
+
}
|
|
661
|
+
protoOf(MultiPart).d48 = function (contentType) {
|
|
662
662
|
return startsWith(contentType, 'multipart/', true);
|
|
663
663
|
};
|
|
664
664
|
var MultiPart_instance;
|
|
@@ -669,17 +669,17 @@ function MultiPart_getInstance() {
|
|
|
669
669
|
}
|
|
670
670
|
function Text() {
|
|
671
671
|
Text_instance = this;
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
679
|
-
this.
|
|
680
|
-
this.
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
672
|
+
this.e48_1 = 'text';
|
|
673
|
+
this.f48_1 = ContentType_init_$Create$('text', '*');
|
|
674
|
+
this.g48_1 = ContentType_init_$Create$('text', 'plain');
|
|
675
|
+
this.h48_1 = ContentType_init_$Create$('text', 'css');
|
|
676
|
+
this.i48_1 = ContentType_init_$Create$('text', 'csv');
|
|
677
|
+
this.j48_1 = ContentType_init_$Create$('text', 'html');
|
|
678
|
+
this.k48_1 = ContentType_init_$Create$('text', 'javascript');
|
|
679
|
+
this.l48_1 = ContentType_init_$Create$('text', 'markdown');
|
|
680
|
+
this.m48_1 = ContentType_init_$Create$('text', 'vcard');
|
|
681
|
+
this.n48_1 = ContentType_init_$Create$('text', 'xml');
|
|
682
|
+
this.o48_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
683
683
|
}
|
|
684
684
|
var Text_instance;
|
|
685
685
|
function Text_getInstance() {
|
|
@@ -691,22 +691,22 @@ function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
|
691
691
|
Companion_getInstance_0();
|
|
692
692
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
693
693
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
694
|
+
this.r48_1 = contentType;
|
|
695
|
+
this.s48_1 = contentSubtype;
|
|
696
696
|
}
|
|
697
|
-
protoOf(ContentType).
|
|
697
|
+
protoOf(ContentType).t48 = function (name, value) {
|
|
698
698
|
if (hasParameter(this, name, value))
|
|
699
699
|
return this;
|
|
700
|
-
return new ContentType(this.
|
|
700
|
+
return new ContentType(this.r48_1, this.s48_1, this.n46_1, plus_1(this.o46_1, HeaderValueParam_init_$Create$(name, value)));
|
|
701
701
|
};
|
|
702
|
-
protoOf(ContentType).
|
|
703
|
-
if (!(pattern.
|
|
702
|
+
protoOf(ContentType).u48 = function (pattern) {
|
|
703
|
+
if (!(pattern.r48_1 === '*') && !equals(pattern.r48_1, this.r48_1, true)) {
|
|
704
704
|
return false;
|
|
705
705
|
}
|
|
706
|
-
if (!(pattern.
|
|
706
|
+
if (!(pattern.s48_1 === '*') && !equals(pattern.s48_1, this.s48_1, true)) {
|
|
707
707
|
return false;
|
|
708
708
|
}
|
|
709
|
-
var _iterator__ex2g4s = pattern.
|
|
709
|
+
var _iterator__ex2g4s = pattern.o46_1.t();
|
|
710
710
|
while (_iterator__ex2g4s.u()) {
|
|
711
711
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
712
712
|
var patternName = _destruct__k2r9zo.pg();
|
|
@@ -717,7 +717,7 @@ protoOf(ContentType).v47 = function (pattern) {
|
|
|
717
717
|
if (patternValue === '*') {
|
|
718
718
|
tmp_0 = true;
|
|
719
719
|
} else {
|
|
720
|
-
var tmp0 = this.
|
|
720
|
+
var tmp0 = this.o46_1;
|
|
721
721
|
var tmp$ret$0;
|
|
722
722
|
$l$block_0: {
|
|
723
723
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -734,7 +734,7 @@ protoOf(ContentType).v47 = function (pattern) {
|
|
|
734
734
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
735
735
|
while (_iterator__ex2g4s_0.u()) {
|
|
736
736
|
var element = _iterator__ex2g4s_0.v();
|
|
737
|
-
if (equals(element.
|
|
737
|
+
if (equals(element.q46_1, patternValue, true)) {
|
|
738
738
|
tmp$ret$0 = true;
|
|
739
739
|
break $l$block_0;
|
|
740
740
|
}
|
|
@@ -745,7 +745,7 @@ protoOf(ContentType).v47 = function (pattern) {
|
|
|
745
745
|
}
|
|
746
746
|
tmp = tmp_0;
|
|
747
747
|
} else {
|
|
748
|
-
var value = this.
|
|
748
|
+
var value = this.v48(patternName);
|
|
749
749
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
750
750
|
}
|
|
751
751
|
var matches = tmp;
|
|
@@ -760,17 +760,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
760
760
|
var tmp_0;
|
|
761
761
|
var tmp_1;
|
|
762
762
|
if (other instanceof ContentType) {
|
|
763
|
-
tmp_1 = equals(this.
|
|
763
|
+
tmp_1 = equals(this.r48_1, other.r48_1, true);
|
|
764
764
|
} else {
|
|
765
765
|
tmp_1 = false;
|
|
766
766
|
}
|
|
767
767
|
if (tmp_1) {
|
|
768
|
-
tmp_0 = equals(this.
|
|
768
|
+
tmp_0 = equals(this.s48_1, other.s48_1, true);
|
|
769
769
|
} else {
|
|
770
770
|
tmp_0 = false;
|
|
771
771
|
}
|
|
772
772
|
if (tmp_0) {
|
|
773
|
-
tmp = equals_0(this.
|
|
773
|
+
tmp = equals_0(this.o46_1, other.o46_1);
|
|
774
774
|
} else {
|
|
775
775
|
tmp = false;
|
|
776
776
|
}
|
|
@@ -779,20 +779,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
779
779
|
protoOf(ContentType).hashCode = function () {
|
|
780
780
|
// Inline function 'kotlin.text.lowercase' call
|
|
781
781
|
// Inline function 'kotlin.js.asDynamic' call
|
|
782
|
-
var tmp$ret$0 = this.
|
|
782
|
+
var tmp$ret$0 = this.r48_1.toLowerCase();
|
|
783
783
|
var result = getStringHashCode(tmp$ret$0);
|
|
784
784
|
var tmp = result;
|
|
785
785
|
var tmp_0 = imul(31, result);
|
|
786
786
|
// Inline function 'kotlin.text.lowercase' call
|
|
787
787
|
// Inline function 'kotlin.js.asDynamic' call
|
|
788
|
-
var tmp$ret$2 = this.
|
|
788
|
+
var tmp$ret$2 = this.s48_1.toLowerCase();
|
|
789
789
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
790
|
-
result = result + imul(31, hashCode(this.
|
|
790
|
+
result = result + imul(31, hashCode(this.o46_1)) | 0;
|
|
791
791
|
return result;
|
|
792
792
|
};
|
|
793
793
|
function charset(_this__u8e3s4) {
|
|
794
794
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
795
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
795
|
+
var tmp0_safe_receiver = _this__u8e3s4.v48('charset');
|
|
796
796
|
var tmp;
|
|
797
797
|
if (tmp0_safe_receiver == null) {
|
|
798
798
|
tmp = null;
|
|
@@ -821,7 +821,7 @@ function BadContentTypeFormatException(value) {
|
|
|
821
821
|
}
|
|
822
822
|
function withCharset(_this__u8e3s4, charset) {
|
|
823
823
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
824
|
-
return _this__u8e3s4.
|
|
824
|
+
return _this__u8e3s4.t48('charset', get_name(charset));
|
|
825
825
|
}
|
|
826
826
|
var properties_initialized_ContentTypes_kt_1k2nnm;
|
|
827
827
|
function _init_properties_ContentTypes_kt__i9dj34() {
|
|
@@ -878,19 +878,19 @@ function Companion_getInstance_1() {
|
|
|
878
878
|
}
|
|
879
879
|
function HeaderValueWithParameters(content, parameters) {
|
|
880
880
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
881
|
-
this.
|
|
882
|
-
this.
|
|
881
|
+
this.n46_1 = content;
|
|
882
|
+
this.o46_1 = parameters;
|
|
883
883
|
}
|
|
884
|
-
protoOf(HeaderValueWithParameters).
|
|
884
|
+
protoOf(HeaderValueWithParameters).v48 = function (name) {
|
|
885
885
|
var inductionVariable = 0;
|
|
886
|
-
var last = get_lastIndex(this.
|
|
886
|
+
var last = get_lastIndex(this.o46_1);
|
|
887
887
|
if (inductionVariable <= last)
|
|
888
888
|
do {
|
|
889
889
|
var index = inductionVariable;
|
|
890
890
|
inductionVariable = inductionVariable + 1 | 0;
|
|
891
|
-
var parameter = this.
|
|
892
|
-
if (equals(parameter.
|
|
893
|
-
return parameter.
|
|
891
|
+
var parameter = this.o46_1.f1(index);
|
|
892
|
+
if (equals(parameter.p46_1, name, true)) {
|
|
893
|
+
return parameter.q46_1;
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
896
|
while (!(index === last));
|
|
@@ -898,34 +898,34 @@ protoOf(HeaderValueWithParameters).w47 = function (name) {
|
|
|
898
898
|
};
|
|
899
899
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
900
900
|
var tmp;
|
|
901
|
-
if (this.
|
|
902
|
-
tmp = this.
|
|
901
|
+
if (this.o46_1.r()) {
|
|
902
|
+
tmp = this.n46_1;
|
|
903
903
|
} else {
|
|
904
|
-
var tmp_0 = this.
|
|
904
|
+
var tmp_0 = this.n46_1.length;
|
|
905
905
|
// Inline function 'kotlin.collections.sumOf' call
|
|
906
906
|
var sum = 0;
|
|
907
|
-
var _iterator__ex2g4s = this.
|
|
907
|
+
var _iterator__ex2g4s = this.o46_1.t();
|
|
908
908
|
while (_iterator__ex2g4s.u()) {
|
|
909
909
|
var element = _iterator__ex2g4s.v();
|
|
910
910
|
var tmp_1 = sum;
|
|
911
|
-
sum = tmp_1 + ((element.
|
|
911
|
+
sum = tmp_1 + ((element.p46_1.length + element.q46_1.length | 0) + 3 | 0) | 0;
|
|
912
912
|
}
|
|
913
913
|
var size = tmp_0 + sum | 0;
|
|
914
914
|
// Inline function 'kotlin.apply' call
|
|
915
915
|
var this_0 = StringBuilder_init_$Create$(size);
|
|
916
|
-
this_0.q(this.
|
|
916
|
+
this_0.q(this.n46_1);
|
|
917
917
|
var inductionVariable = 0;
|
|
918
|
-
var last = get_lastIndex(this.
|
|
918
|
+
var last = get_lastIndex(this.o46_1);
|
|
919
919
|
if (inductionVariable <= last)
|
|
920
920
|
do {
|
|
921
921
|
var index = inductionVariable;
|
|
922
922
|
inductionVariable = inductionVariable + 1 | 0;
|
|
923
|
-
var element_0 = this.
|
|
923
|
+
var element_0 = this.o46_1.f1(index);
|
|
924
924
|
this_0.q('; ');
|
|
925
|
-
this_0.q(element_0.
|
|
925
|
+
this_0.q(element_0.p46_1);
|
|
926
926
|
this_0.q('=');
|
|
927
927
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
928
|
-
var this_1 = element_0.
|
|
928
|
+
var this_1 = element_0.q46_1;
|
|
929
929
|
if (needQuotes(this_1))
|
|
930
930
|
this_0.q(quote(this_1));
|
|
931
931
|
else
|
|
@@ -1017,27 +1017,27 @@ var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
|
1017
1017
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
1018
1018
|
if (!properties_initialized_HeaderValueWithParameters_kt_yu5xg) {
|
|
1019
1019
|
properties_initialized_HeaderValueWithParameters_kt_yu5xg = true;
|
|
1020
|
-
HeaderFieldValueSeparators = Companion_instance.
|
|
1020
|
+
HeaderFieldValueSeparators = Companion_instance.k46('()<>@,;:\\"/[]?={} \t\n\r');
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
function HeadersBuilder(size) {
|
|
1024
1024
|
size = size === VOID ? 8 : size;
|
|
1025
1025
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1026
1026
|
}
|
|
1027
|
-
protoOf(HeadersBuilder).
|
|
1028
|
-
return new HeadersImpl(this.
|
|
1027
|
+
protoOf(HeadersBuilder).a43 = function () {
|
|
1028
|
+
return new HeadersImpl(this.p40_1);
|
|
1029
1029
|
};
|
|
1030
|
-
protoOf(HeadersBuilder).
|
|
1031
|
-
protoOf(StringValuesBuilderImpl).
|
|
1032
|
-
HttpHeaders_getInstance().
|
|
1030
|
+
protoOf(HeadersBuilder).q40 = function (name) {
|
|
1031
|
+
protoOf(StringValuesBuilderImpl).q40.call(this, name);
|
|
1032
|
+
HttpHeaders_getInstance().x4c(name);
|
|
1033
1033
|
};
|
|
1034
|
-
protoOf(HeadersBuilder).
|
|
1035
|
-
protoOf(StringValuesBuilderImpl).
|
|
1036
|
-
HttpHeaders_getInstance().
|
|
1034
|
+
protoOf(HeadersBuilder).v40 = function (value) {
|
|
1035
|
+
protoOf(StringValuesBuilderImpl).v40.call(this, value);
|
|
1036
|
+
HttpHeaders_getInstance().y4c(value);
|
|
1037
1037
|
};
|
|
1038
1038
|
function Companion_2() {
|
|
1039
1039
|
Companion_instance_2 = this;
|
|
1040
|
-
this.
|
|
1040
|
+
this.z4c_1 = EmptyHeaders_instance;
|
|
1041
1041
|
}
|
|
1042
1042
|
var Companion_instance_2;
|
|
1043
1043
|
function Companion_getInstance_2() {
|
|
@@ -1053,27 +1053,27 @@ function HeadersImpl(values) {
|
|
|
1053
1053
|
StringValuesImpl.call(this, true, values);
|
|
1054
1054
|
}
|
|
1055
1055
|
protoOf(HeadersImpl).toString = function () {
|
|
1056
|
-
return 'Headers ' + toString_0(this.
|
|
1056
|
+
return 'Headers ' + toString_0(this.m40());
|
|
1057
1057
|
};
|
|
1058
1058
|
function EmptyHeaders() {
|
|
1059
1059
|
}
|
|
1060
|
-
protoOf(EmptyHeaders).
|
|
1060
|
+
protoOf(EmptyHeaders).r40 = function () {
|
|
1061
1061
|
return true;
|
|
1062
1062
|
};
|
|
1063
|
-
protoOf(EmptyHeaders).
|
|
1063
|
+
protoOf(EmptyHeaders).s40 = function (name) {
|
|
1064
1064
|
return null;
|
|
1065
1065
|
};
|
|
1066
|
-
protoOf(EmptyHeaders).
|
|
1066
|
+
protoOf(EmptyHeaders).t40 = function () {
|
|
1067
1067
|
return emptySet();
|
|
1068
1068
|
};
|
|
1069
|
-
protoOf(EmptyHeaders).
|
|
1069
|
+
protoOf(EmptyHeaders).m40 = function () {
|
|
1070
1070
|
return emptySet();
|
|
1071
1071
|
};
|
|
1072
1072
|
protoOf(EmptyHeaders).r = function () {
|
|
1073
1073
|
return true;
|
|
1074
1074
|
};
|
|
1075
1075
|
protoOf(EmptyHeaders).toString = function () {
|
|
1076
|
-
return 'Headers ' + toString_0(this.
|
|
1076
|
+
return 'Headers ' + toString_0(this.m40());
|
|
1077
1077
|
};
|
|
1078
1078
|
var EmptyHeaders_instance;
|
|
1079
1079
|
function EmptyHeaders_getInstance() {
|
|
@@ -1083,21 +1083,21 @@ function HeadersSingleImpl(name, values) {
|
|
|
1083
1083
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1084
1084
|
}
|
|
1085
1085
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1086
|
-
return 'Headers ' + toString_0(this.
|
|
1086
|
+
return 'Headers ' + toString_0(this.m40());
|
|
1087
1087
|
};
|
|
1088
1088
|
function HeaderValue(value, params) {
|
|
1089
1089
|
params = params === VOID ? emptyList() : params;
|
|
1090
|
-
this.
|
|
1091
|
-
this.
|
|
1090
|
+
this.t46_1 = value;
|
|
1091
|
+
this.u46_1 = params;
|
|
1092
1092
|
var tmp = this;
|
|
1093
|
-
var tmp0 = this.
|
|
1093
|
+
var tmp0 = this.u46_1;
|
|
1094
1094
|
var tmp$ret$0;
|
|
1095
1095
|
$l$block: {
|
|
1096
1096
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1097
1097
|
var _iterator__ex2g4s = tmp0.t();
|
|
1098
1098
|
while (_iterator__ex2g4s.u()) {
|
|
1099
1099
|
var element = _iterator__ex2g4s.v();
|
|
1100
|
-
if (equals(element.
|
|
1100
|
+
if (equals(element.p46_1, 'q', true)) {
|
|
1101
1101
|
tmp$ret$0 = element;
|
|
1102
1102
|
break $l$block;
|
|
1103
1103
|
}
|
|
@@ -1105,7 +1105,7 @@ function HeaderValue(value, params) {
|
|
|
1105
1105
|
tmp$ret$0 = null;
|
|
1106
1106
|
}
|
|
1107
1107
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
1108
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1108
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q46_1;
|
|
1109
1109
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1110
1110
|
var tmp_0;
|
|
1111
1111
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1121,14 +1121,14 @@ function HeaderValue(value, params) {
|
|
|
1121
1121
|
tmp_0 = tmp_1;
|
|
1122
1122
|
}
|
|
1123
1123
|
var tmp3_elvis_lhs = tmp_0;
|
|
1124
|
-
tmp.
|
|
1124
|
+
tmp.v46_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1125
1125
|
}
|
|
1126
1126
|
protoOf(HeaderValue).toString = function () {
|
|
1127
|
-
return 'HeaderValue(value=' + this.
|
|
1127
|
+
return 'HeaderValue(value=' + this.t46_1 + ', params=' + toString_0(this.u46_1) + ')';
|
|
1128
1128
|
};
|
|
1129
1129
|
protoOf(HeaderValue).hashCode = function () {
|
|
1130
|
-
var result = getStringHashCode(this.
|
|
1131
|
-
result = imul(result, 31) + hashCode(this.
|
|
1130
|
+
var result = getStringHashCode(this.t46_1);
|
|
1131
|
+
result = imul(result, 31) + hashCode(this.u46_1) | 0;
|
|
1132
1132
|
return result;
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1136,9 +1136,9 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1136
1136
|
return true;
|
|
1137
1137
|
if (!(other instanceof HeaderValue))
|
|
1138
1138
|
return false;
|
|
1139
|
-
if (!(this.
|
|
1139
|
+
if (!(this.t46_1 === other.t46_1))
|
|
1140
1140
|
return false;
|
|
1141
|
-
if (!equals_0(this.
|
|
1141
|
+
if (!equals_0(this.u46_1, other.u46_1))
|
|
1142
1142
|
return false;
|
|
1143
1143
|
return true;
|
|
1144
1144
|
};
|
|
@@ -1153,20 +1153,20 @@ function HeaderValueParam_init_$Create$(name, value) {
|
|
|
1153
1153
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1154
1154
|
}
|
|
1155
1155
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1156
|
+
this.p46_1 = name;
|
|
1157
|
+
this.q46_1 = value;
|
|
1158
|
+
this.r46_1 = escapeValue;
|
|
1159
1159
|
}
|
|
1160
1160
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1161
1161
|
var tmp;
|
|
1162
1162
|
var tmp_0;
|
|
1163
1163
|
if (other instanceof HeaderValueParam) {
|
|
1164
|
-
tmp_0 = equals(other.
|
|
1164
|
+
tmp_0 = equals(other.p46_1, this.p46_1, true);
|
|
1165
1165
|
} else {
|
|
1166
1166
|
tmp_0 = false;
|
|
1167
1167
|
}
|
|
1168
1168
|
if (tmp_0) {
|
|
1169
|
-
tmp = equals(other.
|
|
1169
|
+
tmp = equals(other.q46_1, this.q46_1, true);
|
|
1170
1170
|
} else {
|
|
1171
1171
|
tmp = false;
|
|
1172
1172
|
}
|
|
@@ -1175,24 +1175,24 @@ protoOf(HeaderValueParam).equals = function (other) {
|
|
|
1175
1175
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1176
1176
|
// Inline function 'kotlin.text.lowercase' call
|
|
1177
1177
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1178
|
-
var tmp$ret$0 = this.
|
|
1178
|
+
var tmp$ret$0 = this.p46_1.toLowerCase();
|
|
1179
1179
|
var result = getStringHashCode(tmp$ret$0);
|
|
1180
1180
|
var tmp = result;
|
|
1181
1181
|
var tmp_0 = imul(31, result);
|
|
1182
1182
|
// Inline function 'kotlin.text.lowercase' call
|
|
1183
1183
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1184
|
-
var tmp$ret$2 = this.
|
|
1184
|
+
var tmp$ret$2 = this.q46_1.toLowerCase();
|
|
1185
1185
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1186
1186
|
return result;
|
|
1187
1187
|
};
|
|
1188
1188
|
protoOf(HeaderValueParam).pg = function () {
|
|
1189
|
-
return this.
|
|
1189
|
+
return this.p46_1;
|
|
1190
1190
|
};
|
|
1191
1191
|
protoOf(HeaderValueParam).qg = function () {
|
|
1192
|
-
return this.
|
|
1192
|
+
return this.q46_1;
|
|
1193
1193
|
};
|
|
1194
1194
|
protoOf(HeaderValueParam).toString = function () {
|
|
1195
|
-
return 'HeaderValueParam(name=' + this.
|
|
1195
|
+
return 'HeaderValueParam(name=' + this.p46_1 + ', value=' + this.q46_1 + ', escapeValue=' + this.r46_1 + ')';
|
|
1196
1196
|
};
|
|
1197
1197
|
function parseHeaderValue_0(text, parametersOnly) {
|
|
1198
1198
|
if (text == null) {
|
|
@@ -1330,115 +1330,115 @@ function get_ILLEGAL_HEADER_NAME_CHARS() {
|
|
|
1330
1330
|
var ILLEGAL_HEADER_NAME_CHARS;
|
|
1331
1331
|
function HttpHeaders() {
|
|
1332
1332
|
HttpHeaders_instance = this;
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
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.
|
|
1333
|
+
this.y48_1 = 'Accept';
|
|
1334
|
+
this.z48_1 = 'Accept-Charset';
|
|
1335
|
+
this.a49_1 = 'Accept-Encoding';
|
|
1336
|
+
this.b49_1 = 'Accept-Language';
|
|
1337
|
+
this.c49_1 = 'Accept-Ranges';
|
|
1338
|
+
this.d49_1 = 'Age';
|
|
1339
|
+
this.e49_1 = 'Allow';
|
|
1340
|
+
this.f49_1 = 'ALPN';
|
|
1341
|
+
this.g49_1 = 'Authentication-Info';
|
|
1342
|
+
this.h49_1 = 'Authorization';
|
|
1343
|
+
this.i49_1 = 'Cache-Control';
|
|
1344
|
+
this.j49_1 = 'Connection';
|
|
1345
|
+
this.k49_1 = 'Content-Disposition';
|
|
1346
|
+
this.l49_1 = 'Content-Encoding';
|
|
1347
|
+
this.m49_1 = 'Content-Language';
|
|
1348
|
+
this.n49_1 = 'Content-Length';
|
|
1349
|
+
this.o49_1 = 'Content-Location';
|
|
1350
|
+
this.p49_1 = 'Content-Range';
|
|
1351
|
+
this.q49_1 = 'Content-Type';
|
|
1352
|
+
this.r49_1 = 'Cookie';
|
|
1353
|
+
this.s49_1 = 'DASL';
|
|
1354
|
+
this.t49_1 = 'Date';
|
|
1355
|
+
this.u49_1 = 'DAV';
|
|
1356
|
+
this.v49_1 = 'Depth';
|
|
1357
|
+
this.w49_1 = 'Destination';
|
|
1358
|
+
this.x49_1 = 'ETag';
|
|
1359
|
+
this.y49_1 = 'Expect';
|
|
1360
|
+
this.z49_1 = 'Expires';
|
|
1361
|
+
this.a4a_1 = 'From';
|
|
1362
|
+
this.b4a_1 = 'Forwarded';
|
|
1363
|
+
this.c4a_1 = 'Host';
|
|
1364
|
+
this.d4a_1 = 'HTTP2-Settings';
|
|
1365
|
+
this.e4a_1 = 'If';
|
|
1366
|
+
this.f4a_1 = 'If-Match';
|
|
1367
|
+
this.g4a_1 = 'If-Modified-Since';
|
|
1368
|
+
this.h4a_1 = 'If-None-Match';
|
|
1369
|
+
this.i4a_1 = 'If-Range';
|
|
1370
|
+
this.j4a_1 = 'If-Schedule-Tag-Match';
|
|
1371
|
+
this.k4a_1 = 'If-Unmodified-Since';
|
|
1372
|
+
this.l4a_1 = 'Last-Modified';
|
|
1373
|
+
this.m4a_1 = 'Location';
|
|
1374
|
+
this.n4a_1 = 'Lock-Token';
|
|
1375
|
+
this.o4a_1 = 'Link';
|
|
1376
|
+
this.p4a_1 = 'Max-Forwards';
|
|
1377
|
+
this.q4a_1 = 'MIME-Version';
|
|
1378
|
+
this.r4a_1 = 'Ordering-Type';
|
|
1379
|
+
this.s4a_1 = 'Origin';
|
|
1380
|
+
this.t4a_1 = 'Overwrite';
|
|
1381
|
+
this.u4a_1 = 'Position';
|
|
1382
|
+
this.v4a_1 = 'Pragma';
|
|
1383
|
+
this.w4a_1 = 'Prefer';
|
|
1384
|
+
this.x4a_1 = 'Preference-Applied';
|
|
1385
|
+
this.y4a_1 = 'Proxy-Authenticate';
|
|
1386
|
+
this.z4a_1 = 'Proxy-Authentication-Info';
|
|
1387
|
+
this.a4b_1 = 'Proxy-Authorization';
|
|
1388
|
+
this.b4b_1 = 'Public-Key-Pins';
|
|
1389
|
+
this.c4b_1 = 'Public-Key-Pins-Report-Only';
|
|
1390
|
+
this.d4b_1 = 'Range';
|
|
1391
|
+
this.e4b_1 = 'Referer';
|
|
1392
|
+
this.f4b_1 = 'Retry-After';
|
|
1393
|
+
this.g4b_1 = 'Schedule-Reply';
|
|
1394
|
+
this.h4b_1 = 'Schedule-Tag';
|
|
1395
|
+
this.i4b_1 = 'Sec-WebSocket-Accept';
|
|
1396
|
+
this.j4b_1 = 'Sec-WebSocket-Extensions';
|
|
1397
|
+
this.k4b_1 = 'Sec-WebSocket-Key';
|
|
1398
|
+
this.l4b_1 = 'Sec-WebSocket-Protocol';
|
|
1399
|
+
this.m4b_1 = 'Sec-WebSocket-Version';
|
|
1400
|
+
this.n4b_1 = 'Server';
|
|
1401
|
+
this.o4b_1 = 'Set-Cookie';
|
|
1402
|
+
this.p4b_1 = 'SLUG';
|
|
1403
|
+
this.q4b_1 = 'Strict-Transport-Security';
|
|
1404
|
+
this.r4b_1 = 'TE';
|
|
1405
|
+
this.s4b_1 = 'Timeout';
|
|
1406
|
+
this.t4b_1 = 'Trailer';
|
|
1407
|
+
this.u4b_1 = 'Transfer-Encoding';
|
|
1408
|
+
this.v4b_1 = 'Upgrade';
|
|
1409
|
+
this.w4b_1 = 'User-Agent';
|
|
1410
|
+
this.x4b_1 = 'Vary';
|
|
1411
|
+
this.y4b_1 = 'Via';
|
|
1412
|
+
this.z4b_1 = 'Warning';
|
|
1413
|
+
this.a4c_1 = 'WWW-Authenticate';
|
|
1414
|
+
this.b4c_1 = 'Access-Control-Allow-Origin';
|
|
1415
|
+
this.c4c_1 = 'Access-Control-Allow-Methods';
|
|
1416
|
+
this.d4c_1 = 'Access-Control-Allow-Credentials';
|
|
1417
|
+
this.e4c_1 = 'Access-Control-Allow-Headers';
|
|
1418
|
+
this.f4c_1 = 'Access-Control-Request-Method';
|
|
1419
|
+
this.g4c_1 = 'Access-Control-Request-Headers';
|
|
1420
|
+
this.h4c_1 = 'Access-Control-Expose-Headers';
|
|
1421
|
+
this.i4c_1 = 'Access-Control-Max-Age';
|
|
1422
|
+
this.j4c_1 = 'X-Http-Method-Override';
|
|
1423
|
+
this.k4c_1 = 'X-Forwarded-Host';
|
|
1424
|
+
this.l4c_1 = 'X-Forwarded-Server';
|
|
1425
|
+
this.m4c_1 = 'X-Forwarded-Proto';
|
|
1426
|
+
this.n4c_1 = 'X-Forwarded-For';
|
|
1427
|
+
this.o4c_1 = 'X-Forwarded-Port';
|
|
1428
|
+
this.p4c_1 = 'X-Request-ID';
|
|
1429
|
+
this.q4c_1 = 'X-Correlation-ID';
|
|
1430
|
+
this.r4c_1 = 'X-Total-Count';
|
|
1431
|
+
this.s4c_1 = 'Last-Event-ID';
|
|
1432
|
+
this.t4c_1 = 'TDM-Reservation';
|
|
1433
|
+
this.u4c_1 = 'TDM-Policy';
|
|
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.v4c_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1439
|
+
this.w4c_1 = asList(this.v4c_1);
|
|
1440
1440
|
}
|
|
1441
|
-
protoOf(HttpHeaders).
|
|
1441
|
+
protoOf(HttpHeaders).x4c = function (name) {
|
|
1442
1442
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1443
1443
|
var index = 0;
|
|
1444
1444
|
var inductionVariable = 0;
|
|
@@ -1452,7 +1452,7 @@ protoOf(HttpHeaders).y4b = function (name) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
1454
|
};
|
|
1455
|
-
protoOf(HttpHeaders).
|
|
1455
|
+
protoOf(HttpHeaders).y4c = function (value) {
|
|
1456
1456
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1457
1457
|
var index = 0;
|
|
1458
1458
|
var inductionVariable = 0;
|
|
@@ -1483,8 +1483,8 @@ function IllegalHeaderNameException(headerName, position) {
|
|
|
1483
1483
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1484
1484
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1485
1485
|
captureStack(this, IllegalHeaderNameException);
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1486
|
+
this.a4d_1 = headerName;
|
|
1487
|
+
this.b4d_1 = position;
|
|
1488
1488
|
}
|
|
1489
1489
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1490
1490
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1493,18 +1493,18 @@ function IllegalHeaderValueException(headerValue, position) {
|
|
|
1493
1493
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1494
1494
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1495
1495
|
captureStack(this, IllegalHeaderValueException);
|
|
1496
|
-
this.
|
|
1497
|
-
this.
|
|
1496
|
+
this.c4d_1 = headerValue;
|
|
1497
|
+
this.d4d_1 = position;
|
|
1498
1498
|
}
|
|
1499
1499
|
var properties_initialized_HttpHeaders_kt_3d6wem;
|
|
1500
1500
|
function _init_properties_HttpHeaders_kt__8vtb1o() {
|
|
1501
1501
|
if (!properties_initialized_HttpHeaders_kt_3d6wem) {
|
|
1502
1502
|
properties_initialized_HttpHeaders_kt_3d6wem = true;
|
|
1503
|
-
ILLEGAL_HEADER_NAME_CHARS = Companion_instance.
|
|
1503
|
+
ILLEGAL_HEADER_NAME_CHARS = Companion_instance.j46(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(0), _Char___init__impl__6a9atx(32))).m46(Companion_instance.k46('"(),/:;<=>?@[\\]{}'));
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
1506
|
function contentType(_this__u8e3s4) {
|
|
1507
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1507
|
+
var tmp0_safe_receiver = _this__u8e3s4.e4d().td('Content-Type');
|
|
1508
1508
|
var tmp;
|
|
1509
1509
|
if (tmp0_safe_receiver == null) {
|
|
1510
1510
|
tmp = null;
|
|
@@ -1515,7 +1515,7 @@ function contentType(_this__u8e3s4) {
|
|
|
1515
1515
|
return tmp;
|
|
1516
1516
|
}
|
|
1517
1517
|
function contentType_0(_this__u8e3s4) {
|
|
1518
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1518
|
+
var tmp0_safe_receiver = _this__u8e3s4.e4d().td('Content-Type');
|
|
1519
1519
|
var tmp;
|
|
1520
1520
|
if (tmp0_safe_receiver == null) {
|
|
1521
1521
|
tmp = null;
|
|
@@ -1526,7 +1526,7 @@ function contentType_0(_this__u8e3s4) {
|
|
|
1526
1526
|
return tmp;
|
|
1527
1527
|
}
|
|
1528
1528
|
function contentLength(_this__u8e3s4) {
|
|
1529
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1529
|
+
var tmp0_safe_receiver = _this__u8e3s4.e4d().td('Content-Length');
|
|
1530
1530
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1531
1531
|
}
|
|
1532
1532
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1534,7 +1534,7 @@ function charset_0(_this__u8e3s4) {
|
|
|
1534
1534
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1535
1535
|
}
|
|
1536
1536
|
function contentType_1(_this__u8e3s4, type) {
|
|
1537
|
-
return _this__u8e3s4.
|
|
1537
|
+
return _this__u8e3s4.e4d().u40('Content-Type', type.toString());
|
|
1538
1538
|
}
|
|
1539
1539
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1540
1540
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
@@ -1543,16 +1543,16 @@ function get_REQUESTS_WITHOUT_BODY() {
|
|
|
1543
1543
|
var REQUESTS_WITHOUT_BODY;
|
|
1544
1544
|
function Companion_3() {
|
|
1545
1545
|
Companion_instance_3 = this;
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1548
|
-
this.
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1553
|
-
this.
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1546
|
+
this.f4d_1 = new HttpMethod('GET');
|
|
1547
|
+
this.g4d_1 = new HttpMethod('POST');
|
|
1548
|
+
this.h4d_1 = new HttpMethod('PUT');
|
|
1549
|
+
this.i4d_1 = new HttpMethod('PATCH');
|
|
1550
|
+
this.j4d_1 = new HttpMethod('DELETE');
|
|
1551
|
+
this.k4d_1 = new HttpMethod('HEAD');
|
|
1552
|
+
this.l4d_1 = new HttpMethod('OPTIONS');
|
|
1553
|
+
this.m4d_1 = new HttpMethod('TRACE');
|
|
1554
|
+
this.n4d_1 = new HttpMethod('QUERY');
|
|
1555
|
+
this.o4d_1 = listOf([this.f4d_1, this.g4d_1, this.h4d_1, this.i4d_1, this.j4d_1, this.k4d_1, this.l4d_1]);
|
|
1556
1556
|
}
|
|
1557
1557
|
var Companion_instance_3;
|
|
1558
1558
|
function Companion_getInstance_3() {
|
|
@@ -1562,20 +1562,20 @@ function Companion_getInstance_3() {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
function HttpMethod(value) {
|
|
1564
1564
|
Companion_getInstance_3();
|
|
1565
|
-
this.
|
|
1565
|
+
this.p4d_1 = value;
|
|
1566
1566
|
}
|
|
1567
1567
|
protoOf(HttpMethod).toString = function () {
|
|
1568
|
-
return this.
|
|
1568
|
+
return this.p4d_1;
|
|
1569
1569
|
};
|
|
1570
1570
|
protoOf(HttpMethod).hashCode = function () {
|
|
1571
|
-
return getStringHashCode(this.
|
|
1571
|
+
return getStringHashCode(this.p4d_1);
|
|
1572
1572
|
};
|
|
1573
1573
|
protoOf(HttpMethod).equals = function (other) {
|
|
1574
1574
|
if (this === other)
|
|
1575
1575
|
return true;
|
|
1576
1576
|
if (!(other instanceof HttpMethod))
|
|
1577
1577
|
return false;
|
|
1578
|
-
if (!(this.
|
|
1578
|
+
if (!(this.p4d_1 === other.p4d_1))
|
|
1579
1579
|
return false;
|
|
1580
1580
|
return true;
|
|
1581
1581
|
};
|
|
@@ -1587,17 +1587,17 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1587
1587
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1588
1588
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1589
1589
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1590
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().
|
|
1590
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().f4d_1, Companion_getInstance_3().k4d_1, Companion_getInstance_3().l4d_1, Companion_getInstance_3().m4d_1]);
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
function Companion_4() {
|
|
1594
1594
|
Companion_instance_4 = this;
|
|
1595
|
-
this.
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1595
|
+
this.q4d_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1596
|
+
this.r4d_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1597
|
+
this.s4d_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1598
|
+
this.t4d_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1599
|
+
this.u4d_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1600
|
+
this.v4d_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1601
1601
|
}
|
|
1602
1602
|
var Companion_instance_4;
|
|
1603
1603
|
function Companion_getInstance_4() {
|
|
@@ -1607,17 +1607,17 @@ function Companion_getInstance_4() {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
function HttpProtocolVersion(name, major, minor) {
|
|
1609
1609
|
Companion_getInstance_4();
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1610
|
+
this.w4d_1 = name;
|
|
1611
|
+
this.x4d_1 = major;
|
|
1612
|
+
this.y4d_1 = minor;
|
|
1613
1613
|
}
|
|
1614
1614
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1615
|
-
return this.
|
|
1615
|
+
return this.w4d_1 + '/' + this.x4d_1 + '.' + this.y4d_1;
|
|
1616
1616
|
};
|
|
1617
1617
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1618
|
-
var result = getStringHashCode(this.
|
|
1619
|
-
result = imul(result, 31) + this.
|
|
1620
|
-
result = imul(result, 31) + this.
|
|
1618
|
+
var result = getStringHashCode(this.w4d_1);
|
|
1619
|
+
result = imul(result, 31) + this.x4d_1 | 0;
|
|
1620
|
+
result = imul(result, 31) + this.y4d_1 | 0;
|
|
1621
1621
|
return result;
|
|
1622
1622
|
};
|
|
1623
1623
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1625,84 +1625,84 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1625
1625
|
return true;
|
|
1626
1626
|
if (!(other instanceof HttpProtocolVersion))
|
|
1627
1627
|
return false;
|
|
1628
|
-
if (!(this.
|
|
1628
|
+
if (!(this.w4d_1 === other.w4d_1))
|
|
1629
1629
|
return false;
|
|
1630
|
-
if (!(this.
|
|
1630
|
+
if (!(this.x4d_1 === other.x4d_1))
|
|
1631
1631
|
return false;
|
|
1632
|
-
if (!(this.
|
|
1632
|
+
if (!(this.y4d_1 === other.y4d_1))
|
|
1633
1633
|
return false;
|
|
1634
1634
|
return true;
|
|
1635
1635
|
};
|
|
1636
1636
|
function Companion_5() {
|
|
1637
1637
|
Companion_instance_5 = 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.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1638
|
+
this.z4d_1 = new HttpStatusCode(100, 'Continue');
|
|
1639
|
+
this.a4e_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1640
|
+
this.b4e_1 = new HttpStatusCode(102, 'Processing');
|
|
1641
|
+
this.c4e_1 = new HttpStatusCode(200, 'OK');
|
|
1642
|
+
this.d4e_1 = new HttpStatusCode(201, 'Created');
|
|
1643
|
+
this.e4e_1 = new HttpStatusCode(202, 'Accepted');
|
|
1644
|
+
this.f4e_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1645
|
+
this.g4e_1 = new HttpStatusCode(204, 'No Content');
|
|
1646
|
+
this.h4e_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1647
|
+
this.i4e_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1648
|
+
this.j4e_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1649
|
+
this.k4e_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1650
|
+
this.l4e_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1651
|
+
this.m4e_1 = new HttpStatusCode(302, 'Found');
|
|
1652
|
+
this.n4e_1 = new HttpStatusCode(303, 'See Other');
|
|
1653
|
+
this.o4e_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1654
|
+
this.p4e_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1655
|
+
this.q4e_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1656
|
+
this.r4e_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1657
|
+
this.s4e_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1658
|
+
this.t4e_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1659
|
+
this.u4e_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1660
|
+
this.v4e_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1661
|
+
this.w4e_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1662
|
+
this.x4e_1 = new HttpStatusCode(404, 'Not Found');
|
|
1663
|
+
this.y4e_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1664
|
+
this.z4e_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1665
|
+
this.a4f_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1666
|
+
this.b4f_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1667
|
+
this.c4f_1 = new HttpStatusCode(409, 'Conflict');
|
|
1668
|
+
this.d4f_1 = new HttpStatusCode(410, 'Gone');
|
|
1669
|
+
this.e4f_1 = new HttpStatusCode(411, 'Length Required');
|
|
1670
|
+
this.f4f_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1671
|
+
this.g4f_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1672
|
+
this.h4f_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1673
|
+
this.i4f_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1674
|
+
this.j4f_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1675
|
+
this.k4f_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1676
|
+
this.l4f_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1677
|
+
this.m4f_1 = new HttpStatusCode(423, 'Locked');
|
|
1678
|
+
this.n4f_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1679
|
+
this.o4f_1 = new HttpStatusCode(425, 'Too Early');
|
|
1680
|
+
this.p4f_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1681
|
+
this.q4f_1 = new HttpStatusCode(428, 'Precondition Required');
|
|
1682
|
+
this.r4f_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1683
|
+
this.s4f_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1684
|
+
this.t4f_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1685
|
+
this.u4f_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1686
|
+
this.v4f_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1687
|
+
this.w4f_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1688
|
+
this.x4f_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1689
|
+
this.y4f_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1690
|
+
this.z4f_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1691
|
+
this.a4g_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1692
|
+
this.b4g_1 = allStatusCodes();
|
|
1693
1693
|
var tmp = this;
|
|
1694
1694
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1695
|
-
var this_0 = this.
|
|
1695
|
+
var this_0 = this.b4g_1;
|
|
1696
1696
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1697
1697
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1698
1698
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1699
1699
|
var _iterator__ex2g4s = this_0.t();
|
|
1700
1700
|
while (_iterator__ex2g4s.u()) {
|
|
1701
1701
|
var element = _iterator__ex2g4s.v();
|
|
1702
|
-
var tmp$ret$2 = element.
|
|
1702
|
+
var tmp$ret$2 = element.d4g_1;
|
|
1703
1703
|
destination.c3(tmp$ret$2, element);
|
|
1704
1704
|
}
|
|
1705
|
-
tmp.
|
|
1705
|
+
tmp.c4g_1 = destination;
|
|
1706
1706
|
}
|
|
1707
1707
|
var Companion_instance_5;
|
|
1708
1708
|
function Companion_getInstance_5() {
|
|
@@ -1712,36 +1712,36 @@ function Companion_getInstance_5() {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
function HttpStatusCode(value, description) {
|
|
1714
1714
|
Companion_getInstance_5();
|
|
1715
|
-
this.
|
|
1716
|
-
this.
|
|
1715
|
+
this.d4g_1 = value;
|
|
1716
|
+
this.e4g_1 = description;
|
|
1717
1717
|
}
|
|
1718
1718
|
protoOf(HttpStatusCode).toString = function () {
|
|
1719
|
-
return '' + this.
|
|
1719
|
+
return '' + this.d4g_1 + ' ' + this.e4g_1;
|
|
1720
1720
|
};
|
|
1721
1721
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1722
1722
|
var tmp;
|
|
1723
1723
|
if (other instanceof HttpStatusCode) {
|
|
1724
|
-
tmp = other.
|
|
1724
|
+
tmp = other.d4g_1 === this.d4g_1;
|
|
1725
1725
|
} else {
|
|
1726
1726
|
tmp = false;
|
|
1727
1727
|
}
|
|
1728
1728
|
return tmp;
|
|
1729
1729
|
};
|
|
1730
1730
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1731
|
-
return this.
|
|
1731
|
+
return this.d4g_1;
|
|
1732
1732
|
};
|
|
1733
|
-
protoOf(HttpStatusCode).
|
|
1734
|
-
return this.
|
|
1733
|
+
protoOf(HttpStatusCode).f4g = function (other) {
|
|
1734
|
+
return this.d4g_1 - other.d4g_1 | 0;
|
|
1735
1735
|
};
|
|
1736
1736
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1737
|
-
return this.
|
|
1737
|
+
return this.f4g(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1738
1738
|
};
|
|
1739
1739
|
function allStatusCodes() {
|
|
1740
|
-
return listOf([Companion_getInstance_5().
|
|
1740
|
+
return listOf([Companion_getInstance_5().z4d_1, Companion_getInstance_5().a4e_1, Companion_getInstance_5().b4e_1, Companion_getInstance_5().c4e_1, Companion_getInstance_5().d4e_1, Companion_getInstance_5().e4e_1, Companion_getInstance_5().f4e_1, Companion_getInstance_5().g4e_1, Companion_getInstance_5().h4e_1, Companion_getInstance_5().i4e_1, Companion_getInstance_5().j4e_1, Companion_getInstance_5().k4e_1, Companion_getInstance_5().l4e_1, Companion_getInstance_5().m4e_1, Companion_getInstance_5().n4e_1, Companion_getInstance_5().o4e_1, Companion_getInstance_5().p4e_1, Companion_getInstance_5().q4e_1, Companion_getInstance_5().r4e_1, Companion_getInstance_5().s4e_1, Companion_getInstance_5().t4e_1, Companion_getInstance_5().u4e_1, Companion_getInstance_5().v4e_1, Companion_getInstance_5().w4e_1, Companion_getInstance_5().x4e_1, Companion_getInstance_5().y4e_1, Companion_getInstance_5().z4e_1, Companion_getInstance_5().a4f_1, Companion_getInstance_5().b4f_1, Companion_getInstance_5().c4f_1, Companion_getInstance_5().d4f_1, Companion_getInstance_5().e4f_1, Companion_getInstance_5().f4f_1, Companion_getInstance_5().q4f_1, Companion_getInstance_5().g4f_1, Companion_getInstance_5().h4f_1, Companion_getInstance_5().i4f_1, Companion_getInstance_5().j4f_1, Companion_getInstance_5().k4f_1, Companion_getInstance_5().l4f_1, Companion_getInstance_5().m4f_1, Companion_getInstance_5().n4f_1, Companion_getInstance_5().o4f_1, Companion_getInstance_5().p4f_1, Companion_getInstance_5().r4f_1, Companion_getInstance_5().s4f_1, Companion_getInstance_5().t4f_1, Companion_getInstance_5().u4f_1, Companion_getInstance_5().v4f_1, Companion_getInstance_5().w4f_1, Companion_getInstance_5().x4f_1, Companion_getInstance_5().y4f_1, Companion_getInstance_5().z4f_1, Companion_getInstance_5().a4g_1]);
|
|
1741
1741
|
}
|
|
1742
1742
|
function formUrlEncode(_this__u8e3s4) {
|
|
1743
1743
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1744
|
-
var tmp0 = _this__u8e3s4.
|
|
1744
|
+
var tmp0 = _this__u8e3s4.m40();
|
|
1745
1745
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1746
1746
|
var destination = ArrayList_init_$Create$();
|
|
1747
1747
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1785,7 +1785,7 @@ function formUrlEncodeTo$lambda(it) {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
function Companion_6() {
|
|
1787
1787
|
Companion_instance_6 = this;
|
|
1788
|
-
this.
|
|
1788
|
+
this.g4g_1 = EmptyParameters_instance;
|
|
1789
1789
|
}
|
|
1790
1790
|
var Companion_instance_6;
|
|
1791
1791
|
function Companion_getInstance_6() {
|
|
@@ -1797,23 +1797,23 @@ function Parameters() {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
function EmptyParameters() {
|
|
1799
1799
|
}
|
|
1800
|
-
protoOf(EmptyParameters).
|
|
1800
|
+
protoOf(EmptyParameters).r40 = function () {
|
|
1801
1801
|
return true;
|
|
1802
1802
|
};
|
|
1803
|
-
protoOf(EmptyParameters).
|
|
1803
|
+
protoOf(EmptyParameters).s40 = function (name) {
|
|
1804
1804
|
return null;
|
|
1805
1805
|
};
|
|
1806
|
-
protoOf(EmptyParameters).
|
|
1806
|
+
protoOf(EmptyParameters).t40 = function () {
|
|
1807
1807
|
return emptySet();
|
|
1808
1808
|
};
|
|
1809
|
-
protoOf(EmptyParameters).
|
|
1809
|
+
protoOf(EmptyParameters).m40 = function () {
|
|
1810
1810
|
return emptySet();
|
|
1811
1811
|
};
|
|
1812
1812
|
protoOf(EmptyParameters).r = function () {
|
|
1813
1813
|
return true;
|
|
1814
1814
|
};
|
|
1815
1815
|
protoOf(EmptyParameters).toString = function () {
|
|
1816
|
-
return 'Parameters ' + toString_0(this.
|
|
1816
|
+
return 'Parameters ' + toString_0(this.m40());
|
|
1817
1817
|
};
|
|
1818
1818
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1819
1819
|
var tmp;
|
|
@@ -1836,15 +1836,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1836
1836
|
size = size === VOID ? 8 : size;
|
|
1837
1837
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1838
1838
|
}
|
|
1839
|
-
protoOf(ParametersBuilderImpl).
|
|
1840
|
-
return new ParametersImpl(this.
|
|
1839
|
+
protoOf(ParametersBuilderImpl).a43 = function () {
|
|
1840
|
+
return new ParametersImpl(this.p40_1);
|
|
1841
1841
|
};
|
|
1842
1842
|
function ParametersImpl(values) {
|
|
1843
1843
|
values = values === VOID ? emptyMap() : values;
|
|
1844
1844
|
StringValuesImpl.call(this, true, values);
|
|
1845
1845
|
}
|
|
1846
1846
|
protoOf(ParametersImpl).toString = function () {
|
|
1847
|
-
return 'Parameters ' + toString_0(this.
|
|
1847
|
+
return 'Parameters ' + toString_0(this.m40());
|
|
1848
1848
|
};
|
|
1849
1849
|
function parameters(builder) {
|
|
1850
1850
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
@@ -1852,7 +1852,7 @@ function parameters(builder) {
|
|
|
1852
1852
|
// Inline function 'kotlin.apply' call
|
|
1853
1853
|
var this_0 = ParametersBuilder();
|
|
1854
1854
|
builder(this_0);
|
|
1855
|
-
return this_0.
|
|
1855
|
+
return this_0.a43();
|
|
1856
1856
|
}
|
|
1857
1857
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1858
1858
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1860,14 +1860,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1860
1860
|
decode = decode === VOID ? true : decode;
|
|
1861
1861
|
var tmp;
|
|
1862
1862
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1863
|
-
tmp = Companion_getInstance_6().
|
|
1863
|
+
tmp = Companion_getInstance_6().g4g_1;
|
|
1864
1864
|
} else {
|
|
1865
1865
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1866
1866
|
Companion_getInstance_6();
|
|
1867
1867
|
// Inline function 'kotlin.apply' call
|
|
1868
1868
|
var this_0 = ParametersBuilder();
|
|
1869
1869
|
parse(this_0, query, startIndex, limit, decode);
|
|
1870
|
-
tmp = this_0.
|
|
1870
|
+
tmp = this_0.a43();
|
|
1871
1871
|
}
|
|
1872
1872
|
return tmp;
|
|
1873
1873
|
}
|
|
@@ -1908,7 +1908,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1908
1908
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1909
1909
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1910
1910
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1911
|
-
_this__u8e3s4.
|
|
1911
|
+
_this__u8e3s4.n40(name, emptyList());
|
|
1912
1912
|
}
|
|
1913
1913
|
return Unit_instance;
|
|
1914
1914
|
}
|
|
@@ -1919,7 +1919,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1919
1919
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1920
1920
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1921
1921
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1922
|
-
_this__u8e3s4.
|
|
1922
|
+
_this__u8e3s4.w40(name_0, value);
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
function trimStart(start, end, query) {
|
|
@@ -1939,25 +1939,25 @@ function trimEnd(start, end, text) {
|
|
|
1939
1939
|
function applyOrigin($this) {
|
|
1940
1940
|
var tmp;
|
|
1941
1941
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1942
|
-
var this_0 = $this.
|
|
1942
|
+
var this_0 = $this.j4g_1;
|
|
1943
1943
|
if (charSequenceLength(this_0) > 0) {
|
|
1944
1944
|
tmp = true;
|
|
1945
1945
|
} else {
|
|
1946
|
-
tmp = $this.
|
|
1946
|
+
tmp = $this.v4g().t4g_1 === 'file';
|
|
1947
1947
|
}
|
|
1948
1948
|
if (tmp)
|
|
1949
1949
|
return Unit_instance;
|
|
1950
|
-
$this.
|
|
1951
|
-
if ($this.
|
|
1952
|
-
$this.
|
|
1953
|
-
if ($this.
|
|
1954
|
-
$this.
|
|
1950
|
+
$this.j4g_1 = Companion_getInstance_7().p4h_1.w4g_1;
|
|
1951
|
+
if ($this.m4g_1 == null)
|
|
1952
|
+
$this.m4g_1 = Companion_getInstance_7().p4h_1.h4h_1;
|
|
1953
|
+
if ($this.l4g_1 === 0) {
|
|
1954
|
+
$this.r4h(Companion_getInstance_7().p4h_1.x4g_1);
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
function Companion_7() {
|
|
1958
1958
|
Companion_instance_7 = this;
|
|
1959
|
-
this.
|
|
1960
|
-
this.
|
|
1959
|
+
this.p4h_1 = Url(get_origin(this));
|
|
1960
|
+
this.q4h_1 = 256;
|
|
1961
1961
|
}
|
|
1962
1962
|
var Companion_instance_7;
|
|
1963
1963
|
function Companion_getInstance_7() {
|
|
@@ -1973,18 +1973,18 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1973
1973
|
user = user === VOID ? null : user;
|
|
1974
1974
|
password = password === VOID ? null : password;
|
|
1975
1975
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1976
|
-
parameters = parameters === VOID ? Companion_getInstance_6().
|
|
1976
|
+
parameters = parameters === VOID ? Companion_getInstance_6().g4g_1 : parameters;
|
|
1977
1977
|
fragment = fragment === VOID ? '' : fragment;
|
|
1978
1978
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1979
|
-
this.
|
|
1980
|
-
this.
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
1979
|
+
this.j4g_1 = host;
|
|
1980
|
+
this.k4g_1 = trailingQuery;
|
|
1981
|
+
this.l4g_1 = port;
|
|
1982
|
+
this.m4g_1 = protocol;
|
|
1983
1983
|
var tmp = this;
|
|
1984
|
-
tmp.
|
|
1984
|
+
tmp.n4g_1 = user == null ? null : encodeURLParameter(user);
|
|
1985
1985
|
var tmp_0 = this;
|
|
1986
|
-
tmp_0.
|
|
1987
|
-
this.
|
|
1986
|
+
tmp_0.o4g_1 = password == null ? null : encodeURLParameter(password);
|
|
1987
|
+
this.p4g_1 = encodeURLQueryComponent(fragment);
|
|
1988
1988
|
var tmp_1 = this;
|
|
1989
1989
|
// Inline function 'kotlin.collections.map' call
|
|
1990
1990
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1995,43 +1995,43 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1995
1995
|
var tmp$ret$2 = encodeURLPathPart(item);
|
|
1996
1996
|
destination.b1(tmp$ret$2);
|
|
1997
1997
|
}
|
|
1998
|
-
tmp_1.
|
|
1999
|
-
this.
|
|
2000
|
-
this.
|
|
1998
|
+
tmp_1.q4g_1 = destination;
|
|
1999
|
+
this.r4g_1 = encodeParameters(parameters);
|
|
2000
|
+
this.s4g_1 = new UrlDecodedParametersBuilder(this.r4g_1);
|
|
2001
2001
|
}
|
|
2002
|
-
protoOf(URLBuilder).
|
|
2002
|
+
protoOf(URLBuilder).r4h = function (value) {
|
|
2003
2003
|
// Inline function 'kotlin.require' call
|
|
2004
2004
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
2005
2005
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
2006
2006
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2007
2007
|
}
|
|
2008
|
-
this.
|
|
2008
|
+
this.l4g_1 = value;
|
|
2009
2009
|
};
|
|
2010
|
-
protoOf(URLBuilder).
|
|
2011
|
-
this.
|
|
2010
|
+
protoOf(URLBuilder).s4h = function (value) {
|
|
2011
|
+
this.m4g_1 = value;
|
|
2012
2012
|
};
|
|
2013
|
-
protoOf(URLBuilder).
|
|
2014
|
-
var tmp0_elvis_lhs = this.
|
|
2015
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_8().
|
|
2013
|
+
protoOf(URLBuilder).v4g = function () {
|
|
2014
|
+
var tmp0_elvis_lhs = this.m4g_1;
|
|
2015
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_8().t4h_1 : tmp0_elvis_lhs;
|
|
2016
2016
|
};
|
|
2017
|
-
protoOf(URLBuilder).
|
|
2017
|
+
protoOf(URLBuilder).z4h = function (value) {
|
|
2018
2018
|
var tmp = this;
|
|
2019
|
-
tmp.
|
|
2019
|
+
tmp.n4g_1 = value == null ? null : encodeURLParameter(value);
|
|
2020
2020
|
};
|
|
2021
|
-
protoOf(URLBuilder).
|
|
2022
|
-
var tmp0_safe_receiver = this.
|
|
2021
|
+
protoOf(URLBuilder).a4i = function () {
|
|
2022
|
+
var tmp0_safe_receiver = this.n4g_1;
|
|
2023
2023
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2024
2024
|
};
|
|
2025
|
-
protoOf(URLBuilder).
|
|
2026
|
-
var tmp0_safe_receiver = this.
|
|
2025
|
+
protoOf(URLBuilder).b4i = function () {
|
|
2026
|
+
var tmp0_safe_receiver = this.o4g_1;
|
|
2027
2027
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2028
2028
|
};
|
|
2029
|
-
protoOf(URLBuilder).
|
|
2030
|
-
return decodeURLQueryComponent(this.
|
|
2029
|
+
protoOf(URLBuilder).c4i = function () {
|
|
2030
|
+
return decodeURLQueryComponent(this.p4g_1);
|
|
2031
2031
|
};
|
|
2032
|
-
protoOf(URLBuilder).
|
|
2032
|
+
protoOf(URLBuilder).d4i = function () {
|
|
2033
2033
|
// Inline function 'kotlin.collections.map' call
|
|
2034
|
-
var this_0 = this.
|
|
2034
|
+
var this_0 = this.q4g_1;
|
|
2035
2035
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2036
2036
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2037
2037
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2042,63 +2042,63 @@ protoOf(URLBuilder).e4h = function () {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
return destination;
|
|
2044
2044
|
};
|
|
2045
|
-
protoOf(URLBuilder).
|
|
2046
|
-
this.
|
|
2047
|
-
this.
|
|
2045
|
+
protoOf(URLBuilder).e4i = function (value) {
|
|
2046
|
+
this.r4g_1 = value;
|
|
2047
|
+
this.s4g_1 = new UrlDecodedParametersBuilder(value);
|
|
2048
2048
|
};
|
|
2049
|
-
protoOf(URLBuilder).
|
|
2049
|
+
protoOf(URLBuilder).f4i = function () {
|
|
2050
2050
|
applyOrigin(this);
|
|
2051
2051
|
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
2052
2052
|
};
|
|
2053
2053
|
protoOf(URLBuilder).toString = function () {
|
|
2054
2054
|
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
2055
2055
|
};
|
|
2056
|
-
protoOf(URLBuilder).
|
|
2056
|
+
protoOf(URLBuilder).a43 = function () {
|
|
2057
2057
|
applyOrigin(this);
|
|
2058
|
-
return new Url_0(this.
|
|
2058
|
+
return new Url_0(this.m4g_1, this.j4g_1, this.l4g_1, this.d4i(), this.s4g_1.a43(), this.c4i(), this.a4i(), this.b4i(), this.k4g_1, this.f4i());
|
|
2059
2059
|
};
|
|
2060
2060
|
function get_authority(_this__u8e3s4) {
|
|
2061
2061
|
// Inline function 'kotlin.text.buildString' call
|
|
2062
2062
|
// Inline function 'kotlin.apply' call
|
|
2063
2063
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
2064
2064
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2065
|
-
this_0.q(_this__u8e3s4.
|
|
2066
|
-
if (!(_this__u8e3s4.
|
|
2065
|
+
this_0.q(_this__u8e3s4.j4g_1);
|
|
2066
|
+
if (!(_this__u8e3s4.l4g_1 === 0) && !(_this__u8e3s4.l4g_1 === _this__u8e3s4.v4g().u4g_1)) {
|
|
2067
2067
|
this_0.q(':');
|
|
2068
|
-
this_0.q(_this__u8e3s4.
|
|
2068
|
+
this_0.q(_this__u8e3s4.l4g_1.toString());
|
|
2069
2069
|
}
|
|
2070
2070
|
return this_0.toString();
|
|
2071
2071
|
}
|
|
2072
2072
|
function appendTo(_this__u8e3s4, out) {
|
|
2073
|
-
out.c1(_this__u8e3s4.
|
|
2074
|
-
switch (_this__u8e3s4.
|
|
2073
|
+
out.c1(_this__u8e3s4.v4g().t4g_1);
|
|
2074
|
+
switch (_this__u8e3s4.v4g().t4g_1) {
|
|
2075
2075
|
case 'file':
|
|
2076
|
-
appendFile(out, _this__u8e3s4.
|
|
2077
|
-
appendUrlFullPath(out, '', _this__u8e3s4.
|
|
2076
|
+
appendFile(out, _this__u8e3s4.j4g_1, get_encodedPath(_this__u8e3s4));
|
|
2077
|
+
appendUrlFullPath(out, '', _this__u8e3s4.r4g_1, _this__u8e3s4.k4g_1);
|
|
2078
2078
|
break;
|
|
2079
2079
|
case 'mailto':
|
|
2080
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2080
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.j4g_1);
|
|
2081
2081
|
return out;
|
|
2082
2082
|
case 'about':
|
|
2083
|
-
appendPayload(out, _this__u8e3s4.
|
|
2083
|
+
appendPayload(out, _this__u8e3s4.j4g_1);
|
|
2084
2084
|
return out;
|
|
2085
2085
|
case 'tel':
|
|
2086
|
-
appendPayload(out, _this__u8e3s4.
|
|
2086
|
+
appendPayload(out, _this__u8e3s4.j4g_1);
|
|
2087
2087
|
return out;
|
|
2088
2088
|
case 'data':
|
|
2089
|
-
appendPayload(out, _this__u8e3s4.
|
|
2089
|
+
appendPayload(out, _this__u8e3s4.j4g_1);
|
|
2090
2090
|
return out;
|
|
2091
2091
|
default:
|
|
2092
2092
|
out.c1('://');
|
|
2093
2093
|
out.c1(get_authority(_this__u8e3s4));
|
|
2094
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2094
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.r4g_1, _this__u8e3s4.k4g_1);
|
|
2095
2095
|
break;
|
|
2096
2096
|
}
|
|
2097
2097
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2098
|
-
var this_0 = _this__u8e3s4.
|
|
2098
|
+
var this_0 = _this__u8e3s4.p4g_1;
|
|
2099
2099
|
if (charSequenceLength(this_0) > 0) {
|
|
2100
2100
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2101
|
-
out.c1(_this__u8e3s4.
|
|
2101
|
+
out.c1(_this__u8e3s4.p4g_1);
|
|
2102
2102
|
}
|
|
2103
2103
|
return out;
|
|
2104
2104
|
}
|
|
@@ -2106,7 +2106,7 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
2106
2106
|
// Inline function 'kotlin.text.buildString' call
|
|
2107
2107
|
// Inline function 'kotlin.apply' call
|
|
2108
2108
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
2109
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2109
|
+
appendUserAndPassword(this_0, _this__u8e3s4.n4g_1, _this__u8e3s4.o4g_1);
|
|
2110
2110
|
return this_0.toString();
|
|
2111
2111
|
}
|
|
2112
2112
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2118,10 +2118,10 @@ function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
|
2118
2118
|
_this__u8e3s4.c1(encodedPath);
|
|
2119
2119
|
}
|
|
2120
2120
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2121
|
-
_this__u8e3s4.
|
|
2121
|
+
_this__u8e3s4.q4g_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2122
2122
|
}
|
|
2123
2123
|
function get_encodedPath(_this__u8e3s4) {
|
|
2124
|
-
return joinPath(_this__u8e3s4.
|
|
2124
|
+
return joinPath(_this__u8e3s4.q4g_1);
|
|
2125
2125
|
}
|
|
2126
2126
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2127
2127
|
_this__u8e3s4.c1(':');
|
|
@@ -2209,20 +2209,20 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2209
2209
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2210
2210
|
if (schemeLength > 0) {
|
|
2211
2211
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2212
|
-
_this__u8e3s4.
|
|
2212
|
+
_this__u8e3s4.s4h(Companion_getInstance_8().g4i(scheme));
|
|
2213
2213
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2214
2214
|
}
|
|
2215
|
-
if (_this__u8e3s4.
|
|
2216
|
-
_this__u8e3s4.
|
|
2215
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'data') {
|
|
2216
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, endIndex);
|
|
2217
2217
|
return _this__u8e3s4;
|
|
2218
2218
|
}
|
|
2219
2219
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2220
2220
|
startIndex = startIndex + slashCount | 0;
|
|
2221
|
-
if (_this__u8e3s4.
|
|
2221
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'file') {
|
|
2222
2222
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2223
2223
|
return _this__u8e3s4;
|
|
2224
2224
|
}
|
|
2225
|
-
if (_this__u8e3s4.
|
|
2225
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'mailto') {
|
|
2226
2226
|
// Inline function 'kotlin.require' call
|
|
2227
2227
|
// Inline function 'kotlin.require' call
|
|
2228
2228
|
if (!(slashCount === 0)) {
|
|
@@ -2232,24 +2232,24 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2232
2232
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2233
2233
|
return _this__u8e3s4;
|
|
2234
2234
|
}
|
|
2235
|
-
if (_this__u8e3s4.
|
|
2235
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'about') {
|
|
2236
2236
|
// Inline function 'kotlin.require' call
|
|
2237
2237
|
// Inline function 'kotlin.require' call
|
|
2238
2238
|
if (!(slashCount === 0)) {
|
|
2239
2239
|
var message_0 = 'Failed requirement.';
|
|
2240
2240
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2241
2241
|
}
|
|
2242
|
-
_this__u8e3s4.
|
|
2242
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, endIndex);
|
|
2243
2243
|
return _this__u8e3s4;
|
|
2244
2244
|
}
|
|
2245
|
-
if (_this__u8e3s4.
|
|
2245
|
+
if (_this__u8e3s4.v4g().t4g_1 === 'tel') {
|
|
2246
2246
|
// Inline function 'kotlin.require' call
|
|
2247
2247
|
// Inline function 'kotlin.require' call
|
|
2248
2248
|
if (!(slashCount === 0)) {
|
|
2249
2249
|
var message_1 = 'Failed requirement.';
|
|
2250
2250
|
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
2251
2251
|
}
|
|
2252
|
-
_this__u8e3s4.
|
|
2252
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, endIndex);
|
|
2253
2253
|
return _this__u8e3s4;
|
|
2254
2254
|
}
|
|
2255
2255
|
if (slashCount >= 2) {
|
|
@@ -2267,10 +2267,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2267
2267
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2268
2268
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2269
2269
|
if (!(passwordIndex === -1)) {
|
|
2270
|
-
_this__u8e3s4.
|
|
2271
|
-
_this__u8e3s4.
|
|
2270
|
+
_this__u8e3s4.n4g_1 = substring(urlString, startIndex, passwordIndex);
|
|
2271
|
+
_this__u8e3s4.o4g_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2272
2272
|
} else {
|
|
2273
|
-
_this__u8e3s4.
|
|
2273
|
+
_this__u8e3s4.n4g_1 = substring(urlString, startIndex, delimiter);
|
|
2274
2274
|
}
|
|
2275
2275
|
startIndex = delimiter + 1 | 0;
|
|
2276
2276
|
} else {
|
|
@@ -2281,7 +2281,7 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
2283
|
if (startIndex >= endIndex) {
|
|
2284
|
-
_this__u8e3s4.
|
|
2284
|
+
_this__u8e3s4.q4g_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2285
2285
|
return _this__u8e3s4;
|
|
2286
2286
|
}
|
|
2287
2287
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2298,17 +2298,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2298
2298
|
var tmp_1 = _this__u8e3s4;
|
|
2299
2299
|
var tmp_2;
|
|
2300
2300
|
if (slashCount === 0) {
|
|
2301
|
-
tmp_2 = dropLast(_this__u8e3s4.
|
|
2301
|
+
tmp_2 = dropLast(_this__u8e3s4.q4g_1, 1);
|
|
2302
2302
|
} else {
|
|
2303
2303
|
tmp_2 = emptyList();
|
|
2304
2304
|
}
|
|
2305
|
-
tmp_1.
|
|
2305
|
+
tmp_1.q4g_1 = tmp_2;
|
|
2306
2306
|
var encodedPath = encodeURLPath(substring(urlString, startIndex, pathEnd), VOID, false);
|
|
2307
2307
|
var tmp_3;
|
|
2308
2308
|
var tmp_4;
|
|
2309
|
-
if (_this__u8e3s4.
|
|
2309
|
+
if (_this__u8e3s4.q4g_1.e1() === 1) {
|
|
2310
2310
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2311
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2311
|
+
var this_2 = first_0(_this__u8e3s4.q4g_1);
|
|
2312
2312
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2313
2313
|
} else {
|
|
2314
2314
|
tmp_4 = false;
|
|
@@ -2316,17 +2316,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2316
2316
|
if (tmp_4) {
|
|
2317
2317
|
tmp_3 = emptyList();
|
|
2318
2318
|
} else {
|
|
2319
|
-
tmp_3 = _this__u8e3s4.
|
|
2319
|
+
tmp_3 = _this__u8e3s4.q4g_1;
|
|
2320
2320
|
}
|
|
2321
2321
|
var basePath = tmp_3;
|
|
2322
2322
|
var encodedChunks = encodedPath === '/' ? get_ROOT_PATH() : split(encodedPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2323
2323
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), encodedChunks);
|
|
2324
|
-
_this__u8e3s4.
|
|
2324
|
+
_this__u8e3s4.q4g_1 = plus_0(basePath, relativePath);
|
|
2325
2325
|
startIndex = pathEnd;
|
|
2326
|
-
} else if (slashCount === 0 && _this__u8e3s4.
|
|
2327
|
-
_this__u8e3s4.
|
|
2326
|
+
} else if (slashCount === 0 && _this__u8e3s4.q4g_1.r() && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2327
|
+
_this__u8e3s4.q4g_1 = get_ROOT_PATH();
|
|
2328
2328
|
} else if (slashCount > 0) {
|
|
2329
|
-
_this__u8e3s4.
|
|
2329
|
+
_this__u8e3s4.q4g_1 = emptyList();
|
|
2330
2330
|
}
|
|
2331
2331
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2332
2332
|
startIndex = parseQuery(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
@@ -2376,7 +2376,7 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2376
2376
|
var tmp;
|
|
2377
2377
|
switch (slashCount) {
|
|
2378
2378
|
case 1:
|
|
2379
|
-
_this__u8e3s4.
|
|
2379
|
+
_this__u8e3s4.j4g_1 = '';
|
|
2380
2380
|
tmp = startIndex;
|
|
2381
2381
|
break;
|
|
2382
2382
|
case 2:
|
|
@@ -2392,11 +2392,11 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2392
2392
|
|
|
2393
2393
|
var tmp1_elvis_lhs = tmp_0;
|
|
2394
2394
|
var hostEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2395
|
-
_this__u8e3s4.
|
|
2395
|
+
_this__u8e3s4.j4g_1 = substring(urlString, startIndex, hostEnd);
|
|
2396
2396
|
tmp = hostEnd;
|
|
2397
2397
|
break;
|
|
2398
2398
|
case 3:
|
|
2399
|
-
_this__u8e3s4.
|
|
2399
|
+
_this__u8e3s4.j4g_1 = '';
|
|
2400
2400
|
tmp = startIndex;
|
|
2401
2401
|
break;
|
|
2402
2402
|
default:
|
|
@@ -2427,8 +2427,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2427
2427
|
if (delimiter === -1) {
|
|
2428
2428
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2429
2429
|
}
|
|
2430
|
-
_this__u8e3s4.
|
|
2431
|
-
_this__u8e3s4.
|
|
2430
|
+
_this__u8e3s4.z4h(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2431
|
+
_this__u8e3s4.j4g_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2432
2432
|
}
|
|
2433
2433
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2434
2434
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2482,19 +2482,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2482
2482
|
var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
|
|
2483
2483
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2484
2484
|
}
|
|
2485
|
-
_this__u8e3s4.
|
|
2485
|
+
_this__u8e3s4.j4g_1 = hostValue;
|
|
2486
2486
|
var tmp_0;
|
|
2487
2487
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2488
2488
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2489
2489
|
} else {
|
|
2490
2490
|
tmp_0 = 0;
|
|
2491
2491
|
}
|
|
2492
|
-
_this__u8e3s4.
|
|
2492
|
+
_this__u8e3s4.r4h(tmp_0);
|
|
2493
2493
|
}
|
|
2494
2494
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2495
2495
|
_init_properties_URLParser_kt__sf11to();
|
|
2496
2496
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2497
|
-
_this__u8e3s4.
|
|
2497
|
+
_this__u8e3s4.k4g_1 = true;
|
|
2498
2498
|
return endIndex;
|
|
2499
2499
|
}
|
|
2500
2500
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2508,18 +2508,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2508
2508
|
var tmp0_elvis_lhs = tmp;
|
|
2509
2509
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2510
2510
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2511
|
-
rawParameters.
|
|
2511
|
+
rawParameters.y40(parseQuery$lambda(_this__u8e3s4));
|
|
2512
2512
|
return fragmentStart;
|
|
2513
2513
|
}
|
|
2514
2514
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2515
2515
|
_init_properties_URLParser_kt__sf11to();
|
|
2516
2516
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2517
|
-
_this__u8e3s4.
|
|
2517
|
+
_this__u8e3s4.p4g_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2518
2518
|
}
|
|
2519
2519
|
}
|
|
2520
2520
|
function parseQuery$lambda($this_parseQuery) {
|
|
2521
2521
|
return function (key, values) {
|
|
2522
|
-
$this_parseQuery.
|
|
2522
|
+
$this_parseQuery.r4g_1.n40(key, values);
|
|
2523
2523
|
return Unit_instance;
|
|
2524
2524
|
};
|
|
2525
2525
|
}
|
|
@@ -2532,29 +2532,29 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2532
2532
|
}
|
|
2533
2533
|
function Companion_8() {
|
|
2534
2534
|
Companion_instance_8 = this;
|
|
2535
|
-
this.
|
|
2536
|
-
this.
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2535
|
+
this.t4h_1 = new URLProtocol('http', 80);
|
|
2536
|
+
this.u4h_1 = new URLProtocol('https', 443);
|
|
2537
|
+
this.v4h_1 = new URLProtocol('ws', 80);
|
|
2538
|
+
this.w4h_1 = new URLProtocol('wss', 443);
|
|
2539
|
+
this.x4h_1 = new URLProtocol('socks', 1080);
|
|
2540
2540
|
var tmp = this;
|
|
2541
2541
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2542
|
-
var this_0 = listOf([this.
|
|
2542
|
+
var this_0 = listOf([this.t4h_1, this.u4h_1, this.v4h_1, this.w4h_1, this.x4h_1]);
|
|
2543
2543
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2544
2544
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2545
2545
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2546
2546
|
var _iterator__ex2g4s = this_0.t();
|
|
2547
2547
|
while (_iterator__ex2g4s.u()) {
|
|
2548
2548
|
var element = _iterator__ex2g4s.v();
|
|
2549
|
-
var tmp$ret$2 = element.
|
|
2549
|
+
var tmp$ret$2 = element.t4g_1;
|
|
2550
2550
|
destination.c3(tmp$ret$2, element);
|
|
2551
2551
|
}
|
|
2552
|
-
tmp.
|
|
2552
|
+
tmp.y4h_1 = destination;
|
|
2553
2553
|
}
|
|
2554
|
-
protoOf(Companion_8).
|
|
2554
|
+
protoOf(Companion_8).g4i = function (name) {
|
|
2555
2555
|
// Inline function 'kotlin.let' call
|
|
2556
2556
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2557
|
-
var tmp0_elvis_lhs = Companion_getInstance_8().
|
|
2557
|
+
var tmp0_elvis_lhs = Companion_getInstance_8().y4h_1.t2(it);
|
|
2558
2558
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2559
2559
|
};
|
|
2560
2560
|
var Companion_instance_8;
|
|
@@ -2565,9 +2565,9 @@ function Companion_getInstance_8() {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
function URLProtocol(name, defaultPort) {
|
|
2567
2567
|
Companion_getInstance_8();
|
|
2568
|
-
this.
|
|
2569
|
-
this.
|
|
2570
|
-
var tmp0 = this.
|
|
2568
|
+
this.t4g_1 = name;
|
|
2569
|
+
this.u4g_1 = defaultPort;
|
|
2570
|
+
var tmp0 = this.t4g_1;
|
|
2571
2571
|
var tmp$ret$0;
|
|
2572
2572
|
$l$block: {
|
|
2573
2573
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2589,11 +2589,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
2591
|
protoOf(URLProtocol).toString = function () {
|
|
2592
|
-
return 'URLProtocol(name=' + this.
|
|
2592
|
+
return 'URLProtocol(name=' + this.t4g_1 + ', defaultPort=' + this.u4g_1 + ')';
|
|
2593
2593
|
};
|
|
2594
2594
|
protoOf(URLProtocol).hashCode = function () {
|
|
2595
|
-
var result = getStringHashCode(this.
|
|
2596
|
-
result = imul(result, 31) + this.
|
|
2595
|
+
var result = getStringHashCode(this.t4g_1);
|
|
2596
|
+
result = imul(result, 31) + this.u4g_1 | 0;
|
|
2597
2597
|
return result;
|
|
2598
2598
|
};
|
|
2599
2599
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2601,38 +2601,38 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2601
2601
|
return true;
|
|
2602
2602
|
if (!(other instanceof URLProtocol))
|
|
2603
2603
|
return false;
|
|
2604
|
-
if (!(this.
|
|
2604
|
+
if (!(this.t4g_1 === other.t4g_1))
|
|
2605
2605
|
return false;
|
|
2606
|
-
if (!(this.
|
|
2606
|
+
if (!(this.u4g_1 === other.u4g_1))
|
|
2607
2607
|
return false;
|
|
2608
2608
|
return true;
|
|
2609
2609
|
};
|
|
2610
2610
|
function isSecure(_this__u8e3s4) {
|
|
2611
|
-
return _this__u8e3s4.
|
|
2611
|
+
return _this__u8e3s4.t4g_1 === 'https' || _this__u8e3s4.t4g_1 === 'wss';
|
|
2612
2612
|
}
|
|
2613
2613
|
function isWebsocket(_this__u8e3s4) {
|
|
2614
|
-
return _this__u8e3s4.
|
|
2614
|
+
return _this__u8e3s4.t4g_1 === 'ws' || _this__u8e3s4.t4g_1 === 'wss';
|
|
2615
2615
|
}
|
|
2616
2616
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2617
|
-
_this__u8e3s4.
|
|
2618
|
-
_this__u8e3s4.
|
|
2619
|
-
_this__u8e3s4.
|
|
2620
|
-
_this__u8e3s4.
|
|
2621
|
-
_this__u8e3s4.
|
|
2622
|
-
_this__u8e3s4.
|
|
2617
|
+
_this__u8e3s4.m4g_1 = url.m4g_1;
|
|
2618
|
+
_this__u8e3s4.j4g_1 = url.j4g_1;
|
|
2619
|
+
_this__u8e3s4.r4h(url.l4g_1);
|
|
2620
|
+
_this__u8e3s4.q4g_1 = url.q4g_1;
|
|
2621
|
+
_this__u8e3s4.n4g_1 = url.n4g_1;
|
|
2622
|
+
_this__u8e3s4.o4g_1 = url.o4g_1;
|
|
2623
2623
|
// Inline function 'kotlin.apply' call
|
|
2624
2624
|
var this_0 = ParametersBuilder();
|
|
2625
|
-
appendAll(this_0, url.
|
|
2626
|
-
_this__u8e3s4.
|
|
2627
|
-
_this__u8e3s4.
|
|
2628
|
-
_this__u8e3s4.
|
|
2625
|
+
appendAll(this_0, url.r4g_1);
|
|
2626
|
+
_this__u8e3s4.e4i(this_0);
|
|
2627
|
+
_this__u8e3s4.p4g_1 = url.p4g_1;
|
|
2628
|
+
_this__u8e3s4.k4g_1 = url.k4g_1;
|
|
2629
2629
|
return _this__u8e3s4;
|
|
2630
2630
|
}
|
|
2631
2631
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2632
|
-
return _this__u8e3s4.
|
|
2632
|
+
return _this__u8e3s4.w4g_1 + ':' + _this__u8e3s4.h4i();
|
|
2633
2633
|
}
|
|
2634
2634
|
function Url(urlString) {
|
|
2635
|
-
return URLBuilder_0(urlString).
|
|
2635
|
+
return URLBuilder_0(urlString).a43();
|
|
2636
2636
|
}
|
|
2637
2637
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2638
2638
|
var tmp;
|
|
@@ -2650,7 +2650,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2650
2650
|
_this__u8e3s4.c1('?');
|
|
2651
2651
|
}
|
|
2652
2652
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2653
|
-
var tmp0 = encodedQueryParameters.
|
|
2653
|
+
var tmp0 = encodedQueryParameters.m40();
|
|
2654
2654
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2655
2655
|
var destination = ArrayList_init_$Create$();
|
|
2656
2656
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -2696,8 +2696,8 @@ function URLBuilder_0(urlString) {
|
|
|
2696
2696
|
return takeFrom(new URLBuilder(), urlString);
|
|
2697
2697
|
}
|
|
2698
2698
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2699
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2700
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2699
|
+
var tmp0_subject = _this__u8e3s4.x4g_1;
|
|
2700
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.i4h_1.u4g_1 ? _this__u8e3s4.w4g_1 : get_hostWithPort(_this__u8e3s4);
|
|
2701
2701
|
}
|
|
2702
2702
|
function appendUrlFullPath$lambda(it) {
|
|
2703
2703
|
var key = it.vg_1;
|
|
@@ -2755,151 +2755,151 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2755
2755
|
if ($pathSegments.r()) {
|
|
2756
2756
|
return '';
|
|
2757
2757
|
}
|
|
2758
|
-
var pathStartIndex = indexOf(this$0.
|
|
2758
|
+
var pathStartIndex = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(47), this$0.i4h_1.t4g_1.length + 3 | 0);
|
|
2759
2759
|
var tmp_0;
|
|
2760
2760
|
if (pathStartIndex === -1) {
|
|
2761
2761
|
return '';
|
|
2762
2762
|
}
|
|
2763
2763
|
// Inline function 'kotlin.charArrayOf' call
|
|
2764
2764
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2765
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2765
|
+
var pathEndIndex = indexOfAny(this$0.d4h_1, tmp$ret$0, pathStartIndex);
|
|
2766
2766
|
var tmp_1;
|
|
2767
2767
|
if (pathEndIndex === -1) {
|
|
2768
|
-
return substring_0(this$0.
|
|
2768
|
+
return substring_0(this$0.d4h_1, pathStartIndex);
|
|
2769
2769
|
}
|
|
2770
|
-
return substring(this$0.
|
|
2770
|
+
return substring(this$0.d4h_1, pathStartIndex, pathEndIndex);
|
|
2771
2771
|
};
|
|
2772
2772
|
}
|
|
2773
2773
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2774
2774
|
return function () {
|
|
2775
|
-
var queryStart = indexOf(this$0.
|
|
2775
|
+
var queryStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2776
2776
|
var tmp;
|
|
2777
2777
|
if (queryStart === 0) {
|
|
2778
2778
|
return '';
|
|
2779
2779
|
}
|
|
2780
|
-
var queryEnd = indexOf(this$0.
|
|
2780
|
+
var queryEnd = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2781
2781
|
var tmp_0;
|
|
2782
2782
|
if (queryEnd === -1) {
|
|
2783
|
-
return substring_0(this$0.
|
|
2783
|
+
return substring_0(this$0.d4h_1, queryStart);
|
|
2784
2784
|
}
|
|
2785
|
-
return substring(this$0.
|
|
2785
|
+
return substring(this$0.d4h_1, queryStart, queryEnd);
|
|
2786
2786
|
};
|
|
2787
2787
|
}
|
|
2788
2788
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2789
2789
|
return function () {
|
|
2790
|
-
var pathStart = indexOf(this$0.
|
|
2790
|
+
var pathStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(47), this$0.i4h_1.t4g_1.length + 3 | 0);
|
|
2791
2791
|
var tmp;
|
|
2792
2792
|
if (pathStart === -1) {
|
|
2793
2793
|
return '';
|
|
2794
2794
|
}
|
|
2795
|
-
var queryEnd = indexOf(this$0.
|
|
2795
|
+
var queryEnd = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2796
2796
|
var tmp_0;
|
|
2797
2797
|
if (queryEnd === -1) {
|
|
2798
|
-
return substring_0(this$0.
|
|
2798
|
+
return substring_0(this$0.d4h_1, pathStart);
|
|
2799
2799
|
}
|
|
2800
|
-
return substring(this$0.
|
|
2800
|
+
return substring(this$0.d4h_1, pathStart, queryEnd);
|
|
2801
2801
|
};
|
|
2802
2802
|
}
|
|
2803
2803
|
function Url$_get_encodedPathAndQuery_$ref_sf10sn() {
|
|
2804
2804
|
return constructCallableReference(function (p0) {
|
|
2805
|
-
return p0.
|
|
2805
|
+
return p0.i4i();
|
|
2806
2806
|
}, 1, 0, 21);
|
|
2807
2807
|
}
|
|
2808
2808
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2809
2809
|
return function () {
|
|
2810
2810
|
var tmp;
|
|
2811
|
-
if (this$0.
|
|
2811
|
+
if (this$0.a4h_1 == null) {
|
|
2812
2812
|
return null;
|
|
2813
2813
|
}
|
|
2814
2814
|
var tmp_0;
|
|
2815
2815
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2816
|
-
var this_0 = this$0.
|
|
2816
|
+
var this_0 = this$0.a4h_1;
|
|
2817
2817
|
if (charSequenceLength(this_0) === 0) {
|
|
2818
2818
|
return '';
|
|
2819
2819
|
}
|
|
2820
|
-
var usernameStart = this$0.
|
|
2820
|
+
var usernameStart = this$0.i4h_1.t4g_1.length + 3 | 0;
|
|
2821
2821
|
// Inline function 'kotlin.charArrayOf' call
|
|
2822
2822
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2823
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2824
|
-
return substring(this$0.
|
|
2823
|
+
var usernameEnd = indexOfAny(this$0.d4h_1, tmp$ret$1, usernameStart);
|
|
2824
|
+
return substring(this$0.d4h_1, usernameStart, usernameEnd);
|
|
2825
2825
|
};
|
|
2826
2826
|
}
|
|
2827
2827
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2828
2828
|
return constructCallableReference(function (p0) {
|
|
2829
|
-
return p0.
|
|
2829
|
+
return p0.j4i();
|
|
2830
2830
|
}, 1, 0, 22);
|
|
2831
2831
|
}
|
|
2832
2832
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2833
2833
|
return function () {
|
|
2834
2834
|
var tmp;
|
|
2835
|
-
if (this$0.
|
|
2835
|
+
if (this$0.b4h_1 == null) {
|
|
2836
2836
|
return null;
|
|
2837
2837
|
}
|
|
2838
2838
|
var tmp_0;
|
|
2839
2839
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2840
|
-
var this_0 = this$0.
|
|
2840
|
+
var this_0 = this$0.b4h_1;
|
|
2841
2841
|
if (charSequenceLength(this_0) === 0) {
|
|
2842
2842
|
return '';
|
|
2843
2843
|
}
|
|
2844
|
-
var passwordStart = indexOf(this$0.
|
|
2845
|
-
var passwordEnd = indexOf(this$0.
|
|
2846
|
-
return substring(this$0.
|
|
2844
|
+
var passwordStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(58), this$0.i4h_1.t4g_1.length + 3 | 0) + 1 | 0;
|
|
2845
|
+
var passwordEnd = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(64));
|
|
2846
|
+
return substring(this$0.d4h_1, passwordStart, passwordEnd);
|
|
2847
2847
|
};
|
|
2848
2848
|
}
|
|
2849
2849
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2850
2850
|
return constructCallableReference(function (p0) {
|
|
2851
|
-
return p0.
|
|
2851
|
+
return p0.k4i();
|
|
2852
2852
|
}, 1, 0, 23);
|
|
2853
2853
|
}
|
|
2854
2854
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2855
2855
|
return function () {
|
|
2856
|
-
var fragmentStart = indexOf(this$0.
|
|
2856
|
+
var fragmentStart = indexOf(this$0.d4h_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2857
2857
|
var tmp;
|
|
2858
2858
|
if (fragmentStart === 0) {
|
|
2859
2859
|
return '';
|
|
2860
2860
|
}
|
|
2861
|
-
return substring_0(this$0.
|
|
2861
|
+
return substring_0(this$0.d4h_1, fragmentStart);
|
|
2862
2862
|
};
|
|
2863
2863
|
}
|
|
2864
2864
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
2869
|
-
this.
|
|
2870
|
-
this.
|
|
2871
|
-
this.
|
|
2872
|
-
this.
|
|
2873
|
-
var containsArg = this.
|
|
2865
|
+
this.w4g_1 = host;
|
|
2866
|
+
this.x4g_1 = specifiedPort;
|
|
2867
|
+
this.y4g_1 = parameters;
|
|
2868
|
+
this.z4g_1 = fragment;
|
|
2869
|
+
this.a4h_1 = user;
|
|
2870
|
+
this.b4h_1 = password;
|
|
2871
|
+
this.c4h_1 = trailingQuery;
|
|
2872
|
+
this.d4h_1 = urlString;
|
|
2873
|
+
var containsArg = this.x4g_1;
|
|
2874
2874
|
// Inline function 'kotlin.require' call
|
|
2875
2875
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2876
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2876
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.x4g_1;
|
|
2877
2877
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2878
2878
|
}
|
|
2879
|
-
this.
|
|
2880
|
-
this.
|
|
2879
|
+
this.e4h_1 = pathSegments;
|
|
2880
|
+
this.f4h_1 = pathSegments;
|
|
2881
2881
|
var tmp = this;
|
|
2882
|
-
tmp.
|
|
2883
|
-
this.
|
|
2882
|
+
tmp.g4h_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2883
|
+
this.h4h_1 = protocol;
|
|
2884
2884
|
var tmp_0 = this;
|
|
2885
|
-
var tmp0_elvis_lhs = this.
|
|
2886
|
-
tmp_0.
|
|
2885
|
+
var tmp0_elvis_lhs = this.h4h_1;
|
|
2886
|
+
tmp_0.i4h_1 = tmp0_elvis_lhs == null ? Companion_getInstance_8().t4h_1 : tmp0_elvis_lhs;
|
|
2887
2887
|
var tmp_1 = this;
|
|
2888
|
-
tmp_1.
|
|
2888
|
+
tmp_1.j4h_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2889
2889
|
var tmp_2 = this;
|
|
2890
|
-
tmp_2.
|
|
2890
|
+
tmp_2.k4h_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2891
2891
|
var tmp_3 = this;
|
|
2892
|
-
tmp_3.
|
|
2892
|
+
tmp_3.l4h_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2893
2893
|
var tmp_4 = this;
|
|
2894
|
-
tmp_4.
|
|
2894
|
+
tmp_4.m4h_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2895
2895
|
var tmp_5 = this;
|
|
2896
|
-
tmp_5.
|
|
2896
|
+
tmp_5.n4h_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2897
2897
|
var tmp_6 = this;
|
|
2898
|
-
tmp_6.
|
|
2898
|
+
tmp_6.o4h_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2899
2899
|
}
|
|
2900
|
-
protoOf(Url_0).
|
|
2900
|
+
protoOf(Url_0).h4i = function () {
|
|
2901
2901
|
// Inline function 'kotlin.takeUnless' call
|
|
2902
|
-
var this_0 = this.
|
|
2902
|
+
var this_0 = this.x4g_1;
|
|
2903
2903
|
var tmp;
|
|
2904
2904
|
if (!(this_0 === 0)) {
|
|
2905
2905
|
tmp = this_0;
|
|
@@ -2907,31 +2907,31 @@ protoOf(Url_0).i4h = function () {
|
|
|
2907
2907
|
tmp = null;
|
|
2908
2908
|
}
|
|
2909
2909
|
var tmp0_elvis_lhs = tmp;
|
|
2910
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2910
|
+
return tmp0_elvis_lhs == null ? this.i4h_1.u4g_1 : tmp0_elvis_lhs;
|
|
2911
2911
|
};
|
|
2912
|
-
protoOf(Url_0).
|
|
2913
|
-
var tmp0 = this.
|
|
2912
|
+
protoOf(Url_0).i4i = function () {
|
|
2913
|
+
var tmp0 = this.l4h_1;
|
|
2914
2914
|
var tmp = KProperty1;
|
|
2915
2915
|
// Inline function 'kotlin.getValue' call
|
|
2916
2916
|
getPropertyCallableRef('encodedPathAndQuery', 1, tmp, Url$_get_encodedPathAndQuery_$ref_sf10sn(), null);
|
|
2917
2917
|
return tmp0.p1();
|
|
2918
2918
|
};
|
|
2919
|
-
protoOf(Url_0).
|
|
2920
|
-
var tmp0 = this.
|
|
2919
|
+
protoOf(Url_0).j4i = function () {
|
|
2920
|
+
var tmp0 = this.m4h_1;
|
|
2921
2921
|
var tmp = KProperty1;
|
|
2922
2922
|
// Inline function 'kotlin.getValue' call
|
|
2923
2923
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2924
2924
|
return tmp0.p1();
|
|
2925
2925
|
};
|
|
2926
|
-
protoOf(Url_0).
|
|
2927
|
-
var tmp0 = this.
|
|
2926
|
+
protoOf(Url_0).k4i = function () {
|
|
2927
|
+
var tmp0 = this.n4h_1;
|
|
2928
2928
|
var tmp = KProperty1;
|
|
2929
2929
|
// Inline function 'kotlin.getValue' call
|
|
2930
2930
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2931
2931
|
return tmp0.p1();
|
|
2932
2932
|
};
|
|
2933
2933
|
protoOf(Url_0).toString = function () {
|
|
2934
|
-
return this.
|
|
2934
|
+
return this.d4h_1;
|
|
2935
2935
|
};
|
|
2936
2936
|
protoOf(Url_0).equals = function (other) {
|
|
2937
2937
|
if (this === other)
|
|
@@ -2940,10 +2940,10 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2940
2940
|
return false;
|
|
2941
2941
|
if (!(other instanceof Url_0))
|
|
2942
2942
|
THROW_CCE();
|
|
2943
|
-
return this.
|
|
2943
|
+
return this.d4h_1 === other.d4h_1;
|
|
2944
2944
|
};
|
|
2945
2945
|
protoOf(Url_0).hashCode = function () {
|
|
2946
|
-
return getStringHashCode(this.
|
|
2946
|
+
return getStringHashCode(this.d4h_1);
|
|
2947
2947
|
};
|
|
2948
2948
|
function get_authority_0(_this__u8e3s4) {
|
|
2949
2949
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2955,19 +2955,19 @@ function get_authority_0(_this__u8e3s4) {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
function UrlSerializer() {
|
|
2957
2957
|
UrlSerializer_instance = this;
|
|
2958
|
-
this.
|
|
2958
|
+
this.l4i_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2959
2959
|
}
|
|
2960
2960
|
protoOf(UrlSerializer).kq = function () {
|
|
2961
|
-
return this.
|
|
2961
|
+
return this.l4i_1;
|
|
2962
2962
|
};
|
|
2963
2963
|
protoOf(UrlSerializer).mq = function (decoder) {
|
|
2964
2964
|
return Url(decoder.ht());
|
|
2965
2965
|
};
|
|
2966
|
-
protoOf(UrlSerializer).
|
|
2966
|
+
protoOf(UrlSerializer).m4i = function (encoder, value) {
|
|
2967
2967
|
encoder.qu(value.toString());
|
|
2968
2968
|
};
|
|
2969
2969
|
protoOf(UrlSerializer).lq = function (encoder, value) {
|
|
2970
|
-
return this.
|
|
2970
|
+
return this.m4i(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2971
2971
|
};
|
|
2972
2972
|
var UrlSerializer_instance;
|
|
2973
2973
|
function UrlSerializer_getInstance() {
|
|
@@ -2979,21 +2979,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
2979
2979
|
// Inline function 'kotlin.text.buildString' call
|
|
2980
2980
|
// Inline function 'kotlin.apply' call
|
|
2981
2981
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
2982
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2982
|
+
appendUserAndPassword(this_0, _this__u8e3s4.j4i(), _this__u8e3s4.k4i());
|
|
2983
2983
|
return this_0.toString();
|
|
2984
2984
|
}
|
|
2985
2985
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2986
|
-
this.
|
|
2987
|
-
this.
|
|
2986
|
+
this.n4i_1 = encodedParametersBuilder;
|
|
2987
|
+
this.o4i_1 = this.n4i_1.r40();
|
|
2988
2988
|
}
|
|
2989
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2990
|
-
return decodeParameters(this.
|
|
2989
|
+
protoOf(UrlDecodedParametersBuilder).a43 = function () {
|
|
2990
|
+
return decodeParameters(this.n4i_1);
|
|
2991
2991
|
};
|
|
2992
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2993
|
-
return this.
|
|
2992
|
+
protoOf(UrlDecodedParametersBuilder).r40 = function () {
|
|
2993
|
+
return this.o4i_1;
|
|
2994
2994
|
};
|
|
2995
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2996
|
-
var tmp0_safe_receiver = this.
|
|
2995
|
+
protoOf(UrlDecodedParametersBuilder).s40 = function (name) {
|
|
2996
|
+
var tmp0_safe_receiver = this.n4i_1.s40(encodeURLParameter(name));
|
|
2997
2997
|
var tmp;
|
|
2998
2998
|
if (tmp0_safe_receiver == null) {
|
|
2999
2999
|
tmp = null;
|
|
@@ -3011,9 +3011,9 @@ protoOf(UrlDecodedParametersBuilder).t3z = function (name) {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
return tmp;
|
|
3013
3013
|
};
|
|
3014
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3014
|
+
protoOf(UrlDecodedParametersBuilder).t40 = function () {
|
|
3015
3015
|
// Inline function 'kotlin.collections.map' call
|
|
3016
|
-
var this_0 = this.
|
|
3016
|
+
var this_0 = this.n4i_1.t40();
|
|
3017
3017
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3018
3018
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3019
3019
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3025,18 +3025,18 @@ protoOf(UrlDecodedParametersBuilder).u3z = function () {
|
|
|
3025
3025
|
return toSet(destination);
|
|
3026
3026
|
};
|
|
3027
3027
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
3028
|
-
return this.
|
|
3028
|
+
return this.n4i_1.r();
|
|
3029
3029
|
};
|
|
3030
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3031
|
-
return decodeParameters(this.
|
|
3030
|
+
protoOf(UrlDecodedParametersBuilder).m40 = function () {
|
|
3031
|
+
return decodeParameters(this.n4i_1).m40();
|
|
3032
3032
|
};
|
|
3033
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3034
|
-
return this.
|
|
3033
|
+
protoOf(UrlDecodedParametersBuilder).w40 = function (name, value) {
|
|
3034
|
+
return this.n4i_1.w40(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3035
3035
|
};
|
|
3036
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3037
|
-
return appendAllEncoded(this.
|
|
3036
|
+
protoOf(UrlDecodedParametersBuilder).x40 = function (stringValues) {
|
|
3037
|
+
return appendAllEncoded(this.n4i_1, stringValues);
|
|
3038
3038
|
};
|
|
3039
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3039
|
+
protoOf(UrlDecodedParametersBuilder).n40 = function (name, values) {
|
|
3040
3040
|
var tmp = encodeURLParameter(name);
|
|
3041
3041
|
// Inline function 'kotlin.collections.map' call
|
|
3042
3042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3047,10 +3047,10 @@ protoOf(UrlDecodedParametersBuilder).o3z = function (name, values) {
|
|
|
3047
3047
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
3048
3048
|
destination.b1(tmp$ret$2);
|
|
3049
3049
|
}
|
|
3050
|
-
return this.
|
|
3050
|
+
return this.n4i_1.n40(tmp, destination);
|
|
3051
3051
|
};
|
|
3052
3052
|
protoOf(UrlDecodedParametersBuilder).x2 = function () {
|
|
3053
|
-
return this.
|
|
3053
|
+
return this.n4i_1.x2();
|
|
3054
3054
|
};
|
|
3055
3055
|
function encodeParameters(parameters) {
|
|
3056
3056
|
// Inline function 'kotlin.apply' call
|
|
@@ -3062,14 +3062,14 @@ function decodeParameters(parameters) {
|
|
|
3062
3062
|
// Inline function 'kotlin.apply' call
|
|
3063
3063
|
var this_0 = ParametersBuilder();
|
|
3064
3064
|
appendAllDecoded(this_0, parameters);
|
|
3065
|
-
return this_0.
|
|
3065
|
+
return this_0.a43();
|
|
3066
3066
|
}
|
|
3067
3067
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3068
3068
|
// Inline function 'kotlin.collections.forEach' call
|
|
3069
|
-
var _iterator__ex2g4s = parameters.
|
|
3069
|
+
var _iterator__ex2g4s = parameters.t40().t();
|
|
3070
3070
|
while (_iterator__ex2g4s.u()) {
|
|
3071
3071
|
var element = _iterator__ex2g4s.v();
|
|
3072
|
-
var tmp0_elvis_lhs = parameters.
|
|
3072
|
+
var tmp0_elvis_lhs = parameters.s40(element);
|
|
3073
3073
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3074
3074
|
var tmp = encodeURLParameter(element);
|
|
3075
3075
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3081,15 +3081,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
3081
3081
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
3082
3082
|
destination.b1(tmp$ret$4);
|
|
3083
3083
|
}
|
|
3084
|
-
_this__u8e3s4.
|
|
3084
|
+
_this__u8e3s4.n40(tmp, destination);
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3088
3088
|
// Inline function 'kotlin.collections.forEach' call
|
|
3089
|
-
var _iterator__ex2g4s = parameters.
|
|
3089
|
+
var _iterator__ex2g4s = parameters.t40().t();
|
|
3090
3090
|
while (_iterator__ex2g4s.u()) {
|
|
3091
3091
|
var element = _iterator__ex2g4s.v();
|
|
3092
|
-
var tmp0_elvis_lhs = parameters.
|
|
3092
|
+
var tmp0_elvis_lhs = parameters.s40(element);
|
|
3093
3093
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3094
3094
|
var tmp = decodeURLQueryComponent(element);
|
|
3095
3095
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3101,7 +3101,7 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
3101
3101
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3102
3102
|
destination.b1(tmp$ret$4);
|
|
3103
3103
|
}
|
|
3104
|
-
_this__u8e3s4.
|
|
3104
|
+
_this__u8e3s4.n40(tmp, destination);
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
3107
|
function MultiPartData() {
|
|
@@ -3121,20 +3121,20 @@ function ProtocolUpgrade() {
|
|
|
3121
3121
|
}
|
|
3122
3122
|
function ContentWrapper() {
|
|
3123
3123
|
}
|
|
3124
|
-
protoOf(ContentWrapper).
|
|
3125
|
-
return this.
|
|
3124
|
+
protoOf(ContentWrapper).a4j = function () {
|
|
3125
|
+
return this.z4i_1;
|
|
3126
3126
|
};
|
|
3127
3127
|
function OutgoingContent() {
|
|
3128
|
-
this.
|
|
3128
|
+
this.p4i_1 = null;
|
|
3129
3129
|
}
|
|
3130
|
-
protoOf(OutgoingContent).
|
|
3130
|
+
protoOf(OutgoingContent).q4i = function () {
|
|
3131
3131
|
return null;
|
|
3132
3132
|
};
|
|
3133
|
-
protoOf(OutgoingContent).
|
|
3133
|
+
protoOf(OutgoingContent).r4i = function () {
|
|
3134
3134
|
return null;
|
|
3135
3135
|
};
|
|
3136
|
-
protoOf(OutgoingContent).
|
|
3137
|
-
return Companion_getInstance_2().
|
|
3136
|
+
protoOf(OutgoingContent).e4d = function () {
|
|
3137
|
+
return Companion_getInstance_2().z4c_1;
|
|
3138
3138
|
};
|
|
3139
3139
|
function NullBody() {
|
|
3140
3140
|
}
|
|
@@ -3148,7 +3148,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3148
3148
|
tmp = true;
|
|
3149
3149
|
} else {
|
|
3150
3150
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3151
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3151
|
+
tmp = isEmpty(_this__u8e3s4.a4j());
|
|
3152
3152
|
} else {
|
|
3153
3153
|
tmp = false;
|
|
3154
3154
|
}
|
|
@@ -3158,27 +3158,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3158
3158
|
function TextContent(text, contentType, status) {
|
|
3159
3159
|
status = status === VOID ? null : status;
|
|
3160
3160
|
ByteArrayContent.call(this);
|
|
3161
|
-
this.
|
|
3162
|
-
this.
|
|
3163
|
-
this.
|
|
3161
|
+
this.c4j_1 = text;
|
|
3162
|
+
this.d4j_1 = contentType;
|
|
3163
|
+
this.e4j_1 = status;
|
|
3164
3164
|
var tmp = this;
|
|
3165
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3166
|
-
tmp.
|
|
3165
|
+
var tmp0_elvis_lhs = charset(this.d4j_1);
|
|
3166
|
+
tmp.f4j_1 = toByteArray(this.c4j_1, tmp0_elvis_lhs == null ? Charsets_getInstance().h3x_1 : tmp0_elvis_lhs);
|
|
3167
3167
|
}
|
|
3168
|
-
protoOf(TextContent).
|
|
3169
|
-
return this.
|
|
3168
|
+
protoOf(TextContent).q4i = function () {
|
|
3169
|
+
return this.d4j_1;
|
|
3170
3170
|
};
|
|
3171
|
-
protoOf(TextContent).
|
|
3172
|
-
return fromInt(this.
|
|
3171
|
+
protoOf(TextContent).r4i = function () {
|
|
3172
|
+
return fromInt(this.f4j_1.length);
|
|
3173
3173
|
};
|
|
3174
|
-
protoOf(TextContent).
|
|
3175
|
-
return this.
|
|
3174
|
+
protoOf(TextContent).x4i = function () {
|
|
3175
|
+
return this.f4j_1;
|
|
3176
3176
|
};
|
|
3177
3177
|
protoOf(TextContent).toString = function () {
|
|
3178
|
-
return 'TextContent[' + this.
|
|
3178
|
+
return 'TextContent[' + this.d4j_1.toString() + '] "' + take(this.c4j_1, 30) + '"';
|
|
3179
3179
|
};
|
|
3180
3180
|
function get_origin(_this__u8e3s4) {
|
|
3181
|
-
return PlatformUtils_getInstance().
|
|
3181
|
+
return PlatformUtils_getInstance().e40_1 ? locationOrigin() : 'http://localhost';
|
|
3182
3182
|
}
|
|
3183
3183
|
function locationOrigin() {
|
|
3184
3184
|
return function () {
|
|
@@ -3197,9 +3197,9 @@ function locationOrigin() {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
//region block: post-declaration
|
|
3199
3199
|
protoOf(EmptyHeaders).td = get;
|
|
3200
|
-
protoOf(EmptyHeaders).
|
|
3200
|
+
protoOf(EmptyHeaders).y40 = forEach;
|
|
3201
3201
|
protoOf(EmptyParameters).td = get;
|
|
3202
|
-
protoOf(EmptyParameters).
|
|
3202
|
+
protoOf(EmptyParameters).y40 = forEach;
|
|
3203
3203
|
//endregion
|
|
3204
3204
|
//region block: init
|
|
3205
3205
|
Companion_instance = new Companion();
|