@attocash/cli 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/README.md +148 -7
  2. package/dist/application/app.d.ts +34 -3
  3. package/dist/application/app.js +138 -126
  4. package/dist/application/operations.d.ts +3 -0
  5. package/dist/application/operations.js +30 -8
  6. package/dist/cli/cli.d.ts +1 -0
  7. package/dist/cli/cli.js +101 -13
  8. package/dist/cli/onboarding.d.ts +13 -0
  9. package/dist/cli/onboarding.js +99 -2
  10. package/dist/cli/output.js +18 -2
  11. package/dist/doctor/profile.js +2 -1
  12. package/dist/internal-marketplace.d.ts +25 -0
  13. package/dist/internal-marketplace.js +50 -0
  14. package/dist/marketplace/approval-files.d.ts +3 -0
  15. package/dist/marketplace/approval-files.js +97 -0
  16. package/dist/marketplace/approval-preview.d.ts +2 -0
  17. package/dist/marketplace/approval-preview.js +86 -0
  18. package/dist/marketplace/proof-approval.d.ts +82 -0
  19. package/dist/marketplace/proof-approval.js +671 -0
  20. package/dist/marketplace/topups.d.ts +82 -0
  21. package/dist/marketplace/topups.js +485 -0
  22. package/dist/network/batching.d.ts +2 -0
  23. package/dist/network/batching.js +23 -0
  24. package/dist/network/entry.d.ts +2 -0
  25. package/dist/network/entry.js +35 -0
  26. package/dist/network/reader.d.ts +2 -0
  27. package/dist/network/reader.js +125 -37
  28. package/dist/spending/approval.d.ts +5 -0
  29. package/dist/spending/approval.js +2 -0
  30. package/dist/spending/atto-x402.d.ts +31 -0
  31. package/dist/spending/atto-x402.js +174 -0
  32. package/dist/spending/ledger.d.ts +74 -2
  33. package/dist/spending/ledger.js +298 -7
  34. package/dist/spending/payments.d.ts +105 -5
  35. package/dist/spending/payments.js +795 -11
  36. package/dist/storage/recovery-seed.d.ts +13 -0
  37. package/dist/storage/recovery-seed.js +93 -0
  38. package/dist/storage/state.d.ts +4 -0
  39. package/dist/storage/state.js +32 -2
  40. package/dist/wallet/receive.d.ts +39 -0
  41. package/dist/wallet/receive.js +264 -0
  42. package/dist/wallet/signing.d.ts +1 -0
  43. package/dist/wallet/signing.js +37 -21
  44. package/dist/wallet/types.d.ts +1 -0
  45. package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs +1922 -1918
  46. package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
  47. package/node_modules/@attocash/commons-core/README.md +9 -0
  48. package/node_modules/@attocash/commons-core/commons-commons-core.d.mts +10 -0
  49. package/node_modules/@attocash/commons-core/commons-commons-core.mjs +2543 -2434
  50. package/node_modules/@attocash/commons-core/commons-commons-core.mjs.map +1 -1
  51. package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs +4695 -4227
  52. package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs.map +1 -1
  53. package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
  54. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs +60 -60
  55. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
  56. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs +651 -631
  57. package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  58. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs +2294 -2295
  59. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  60. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  61. package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  62. package/node_modules/@attocash/commons-core/package.json +1 -1
  63. package/node_modules/@attocash/commons-node/commons-commons-node.d.mts +1 -0
  64. package/node_modules/@attocash/commons-node/commons-commons-node.mjs +873 -847
  65. package/node_modules/@attocash/commons-node/commons-commons-node.mjs.map +1 -1
  66. package/node_modules/@attocash/commons-node/kotlin-logging.mjs +109 -109
  67. package/node_modules/@attocash/commons-node/kotlin-logging.mjs.map +1 -1
  68. package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  69. package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  70. package/node_modules/@attocash/commons-node/package.json +3 -3
  71. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.d.mts +1 -0
  72. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs +674 -640
  73. package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs.map +1 -1
  74. package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs +109 -109
  75. package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs.map +1 -1
  76. package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs.map +1 -1
  77. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  78. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  79. package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  80. package/node_modules/@attocash/commons-node-remote/package.json +4 -4
  81. package/node_modules/@attocash/commons-transport/commons-commons-transport.d.mts +1 -0
  82. package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs +52 -51
  83. package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs.map +1 -1
  84. package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs +13 -13
  85. package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs.map +1 -1
  86. package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs.map +1 -1
  87. package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs +2639 -2608
  88. package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs.map +1 -1
  89. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  90. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  91. package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  92. package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs +411 -196
  93. package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs.map +1 -1
  94. package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs +2115 -1976
  95. package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs.map +1 -1
  96. package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs +7 -7
  97. package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs.map +1 -1
  98. package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs +385 -384
  99. package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs.map +1 -1
  100. package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs +1261 -1185
  101. package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs.map +1 -1
  102. package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs +668 -656
  103. package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs.map +1 -1
  104. package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs +89 -0
  105. package/node_modules/@attocash/commons-transport/ktor-ktor-openapi-schema.mjs.map +1 -0
  106. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
  107. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
  108. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs +120 -128
  109. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
  110. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs +46 -49
  111. package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs.map +1 -1
  112. package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs.map +1 -1
  113. package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs +1041 -985
  114. package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs.map +1 -1
  115. package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs.map +1 -1
  116. package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs +530 -455
  117. package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs.map +1 -1
  118. package/node_modules/@attocash/commons-transport/package.json +4 -4
  119. package/node_modules/@attocash/commons-worker/commons-commons-worker.d.mts +1 -0
  120. package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs +230 -226
  121. package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs.map +1 -1
  122. package/node_modules/@attocash/commons-worker/kotlin-logging.mjs +109 -109
  123. package/node_modules/@attocash/commons-worker/kotlin-logging.mjs.map +1 -1
  124. package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  125. package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  126. package/node_modules/@attocash/commons-worker/package.json +3 -3
  127. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.d.mts +1 -0
  128. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs +91 -86
  129. package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs.map +1 -1
  130. package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs +109 -109
  131. package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs.map +1 -1
  132. package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs.map +1 -1
  133. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
  134. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +1732 -1701
  135. package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  136. package/node_modules/@attocash/commons-worker-remote/package.json +4 -4
  137. package/package.json +9 -5
@@ -1,38 +1,34 @@
1
1
  import {
2
+ shiftRightUnsigned1ga7wnvbv2qur as shiftRightUnsigned,
3
+ Char__toInt_impl_vasixd28v1p2u6jau5g as Char__toInt_impl_vasixd,
4
+ toString1n9qg6fb0b5i8 as toString,
5
+ IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
6
+ toString1pkumu07cwy4m as toString_0,
7
+ Unit_instance3kz1zqli6gr1r as Unit_instance,
8
+ shiftLeft3tsh2sstjchzn as shiftLeft,
9
+ asIterable3syp9x858o4em as asIterable,
10
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
11
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
2
12
  VOID3gxj6tk5isa35 as VOID,
3
13
  StringBuildermazzzhj6kkai as StringBuilder,
4
- Unit_instance3vdlo4e4f5ggx as Unit_instance,
5
- _Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
6
- Char__plus_impl_qi7pgj1h8009bm3fa2t as Char__plus_impl_qi7pgj,
7
- Char__minus_impl_a2frrh3216wnsvv1j3k as Char__minus_impl_a2frrh,
8
- charArray2ujmm1qusno00 as charArray,
9
- concatToString2syawgu50khxi as concatToString,
14
+ _Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx,
15
+ toByte4i43936u611k as toByte,
16
+ numberToChar93r9buh19yek as numberToChar,
17
+ Char__plus_impl_qi7pgj12gj4qbkhmj1y as Char__plus_impl_qi7pgj,
18
+ Char__minus_impl_a2frrh4e9xgjqbj3za as Char__minus_impl_a2frrh,
10
19
  charCodeAt1yspne1d8erbm as charCodeAt,
11
- substringiqarkczpya5m as substring,
12
- toString1pkumu07cwy4m as toString,
13
- Char19o2r8palgjof as Char,
14
20
  isSurrogatewe8xicw8z84n as isSurrogate,
21
+ substringiqarkczpya5m as substring,
15
22
  charSequenceGet1vxk1y5n17t1z as charSequenceGet,
16
23
  charSequenceLength3278n89t01tmv as charSequenceLength,
17
24
  charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
18
- toString336ienavfnzn0 as toString_0,
19
- toByte4i43936u611k as toByte,
20
25
  decodeToString1dbzcjd620q25 as decodeToString,
21
26
  Exceptiondt2hlxn7j7vw as Exception,
22
27
  captureStack1fzi4aczwc4hg as captureStack,
23
- initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
24
- Char__minus_impl_a2frrh370khreoakmi6 as Char__minus_impl_a2frrh_0,
25
- Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
26
- numberToChar93r9buh19yek as numberToChar,
27
- Char__rangeTo_impl_tkncvp39f1k6qse2e6h as Char__rangeTo_impl_tkncvp,
28
+ Char__minus_impl_a2frrhw2puetaduxyd as Char__minus_impl_a2frrh_0,
29
+ Char__rangeTo_impl_tkncvpnglpnjmwahwh as Char__rangeTo_impl_tkncvp,
28
30
  plus39kp8wyage607 as plus,
29
31
  plus310ted5e4i90h as plus_0,
30
- ArrayList3it5z8td81qkl as ArrayList,
31
- collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
32
- toSet2orjxp16sotqu as toSet,
33
- setOf45ia9pnfhe90 as setOf,
34
- plus1ogy4liedzq5j as plus_1,
35
- listOf1jh22dvmctj1r as listOf,
36
32
  equals2v6cggk171b6e as equals,
37
33
  Collection1k04j3hzsbod0 as Collection,
38
34
  isInterface3d6p8outrmvmk as isInterface,
@@ -45,31 +41,33 @@ import {
45
41
  take9j4462mea726 as take,
46
42
  substring3saq8ornu0luv as substring_0,
47
43
  contains2el4s70rdq4ld as contains,
48
- initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
49
- startsWith38d3sbg25w0lx as startsWith,
50
44
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
45
+ startsWith38d3sbg25w0lx as startsWith,
51
46
  emptyList1g2z5xcrvp2zy as emptyList,
52
- plus20p0vtfmu0596 as plus_2,
47
+ plus20p0vtfmu0596 as plus_1,
53
48
  equals2au1ep9vhcato as equals_0,
54
49
  getStringHashCode26igk1bx568vk as getStringHashCode,
55
50
  hashCodeq5arwsb9dgti as hashCode,
56
- IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
51
+ setOf45ia9pnfhe90 as setOf,
57
52
  createThis2j2avj17cvnv2 as createThis,
58
53
  get_lastIndex1yw0x4k50k51w as get_lastIndex,
59
54
  first3kg261hmihapu as first,
60
55
  last2n4gf5az1lkn4 as last_0,
61
56
  get_lastIndexld83bqhfgcdd as get_lastIndex_0,
62
- listOfvhqybd2zx248 as listOf_0,
57
+ listOfvhqybd2zx248 as listOf,
63
58
  emptyMapr06gerzljqtm as emptyMap,
64
59
  emptySetcxexqki71qfa as emptySet,
65
60
  protoOf180f3jzyo7rfj as protoOf,
66
61
  toDoubleOrNullkxwozihadygj as toDoubleOrNull,
67
- LazyThreadSafetyMode_NONE_getInstance2o5dw3dzszhgg as LazyThreadSafetyMode_NONE_getInstance,
62
+ LazyThreadSafetyMode_NONE_getInstance29obelyddqkpt as LazyThreadSafetyMode_NONE_getInstance,
68
63
  lazy1261dae0bgscp as lazy,
69
64
  to2cs3ny02qtbcb as to,
65
+ ArrayList3it5z8td81qkl as ArrayList,
70
66
  asList2ho2pewtsfvv as asList,
71
- Char__compareTo_impl_ypi4mb1yxpplfe5vmm as Char__compareTo_impl_ypi4mb,
67
+ Char__compareTo_impl_ypi4mb3bl0kdwnivnp6 as Char__compareTo_impl_ypi4mb,
72
68
  toLongOrNullutqivezb0wx1 as toLongOrNull,
69
+ listOf1jh22dvmctj1r as listOf_0,
70
+ collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
73
71
  mapCapacity1h45rc3eh9p2l as mapCapacity,
74
72
  coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
75
73
  LinkedHashMap1zhqxkxv3xnkl as LinkedHashMap,
@@ -96,17 +94,18 @@ import {
96
94
  KProperty1ca4yb4wlo496 as KProperty1,
97
95
  getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
98
96
  getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
97
+ toSet2orjxp16sotqu as toSet,
99
98
  fromInt2ii0rejb1w62w as fromInt,
100
99
  boxApply1qmzdb3dh90hg as boxApply,
101
100
  } from '@attocash/commons-core/kotlin-kotlin-stdlib.mjs';
102
101
  import {
103
- Charsets_getInstance3jooo7e4x0j2x as Charsets_getInstance,
102
+ Charsets_getInstancezrqwjk0yrlyw as Charsets_getInstance,
103
+ toByteArray1i3ns5jnoqlv6 as toByteArray,
104
104
  encode35e4rpnc94tb5 as encode,
105
105
  takeWhile34751tcfg6owx as takeWhile,
106
106
  canRead1guo8vbveth0f as canRead,
107
107
  forName2faodmskqnoz5 as forName,
108
108
  get_name2f11g4r0d5pxp as get_name,
109
- toByteArray1i3ns5jnoqlv6 as toByteArray,
110
109
  } from './ktor-ktor-io.mjs';
111
110
  import {
112
111
  StringValuesBuilderImpl3ey9etj3bwnqf as StringValuesBuilderImpl,
@@ -119,10 +118,10 @@ import {
119
118
  toLowerCasePreservingASCIIRulesa2d90zyoc6kw as toLowerCasePreservingASCIIRules,
120
119
  isLowerCase2jodys5jo7d58 as isLowerCase,
121
120
  appendAlltwnjnu28pmtx as appendAll,
122
- PlatformUtils_getInstance3hk77c3xwk5zt as PlatformUtils_getInstance,
121
+ PlatformUtils_getInstancezyao53u70tqo as PlatformUtils_getInstance,
123
122
  } from './ktor-ktor-utils.mjs';
124
123
  import {
125
- STRING_getInstance1ov5zayfui8fl as STRING_getInstance,
124
+ STRING_getInstance7xungxdjbzv as STRING_getInstance,
126
125
  PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
127
126
  KSerializerzf77vz1967fq as KSerializer,
128
127
  SerializableWithd2dap36updxd as SerializableWith,
@@ -131,47 +130,89 @@ import {
131
130
  var imul = Math.imul;
132
131
  //endregion
133
132
  //region block: pre-declaration
133
+ class Companion {
134
+ of_75jmpt_k$(chars) {
135
+ var low = 0n;
136
+ var high = 0n;
137
+ var _iterator__ex2g4s = chars.iterator_jk1svi_k$();
138
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
139
+ var char = _iterator__ex2g4s.next_20eer_k$().value_1;
140
+ // Inline function 'kotlin.code' call
141
+ var code = Char__toInt_impl_vasixd(char);
142
+ // Inline function 'kotlin.require' call
143
+ if (!(code < 128)) {
144
+ var message = "Only ASCII characters are supported, got '" + toString(char) + "' (code " + code + ')';
145
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message));
146
+ }
147
+ if (code < 64)
148
+ low = low | shiftLeft(1n, code);
149
+ else
150
+ high = high | shiftLeft(1n, code);
151
+ }
152
+ return new AsciiBitSet(low, high);
153
+ }
154
+ of_5gnbr7_k$(chars) {
155
+ return this.of_75jmpt_k$(asIterable(chars));
156
+ }
157
+ }
158
+ class AsciiBitSet {
159
+ constructor(low, high) {
160
+ this.low_1 = low;
161
+ this.high_1 = high;
162
+ }
163
+ contains_egozq6_k$(char) {
164
+ // Inline function 'kotlin.code' call
165
+ var tmp$ret$0 = Char__toInt_impl_vasixd(char);
166
+ return containsCode(this, tmp$ret$0);
167
+ }
168
+ contains_y9oc0p_k$(byte) {
169
+ return containsCode(this, byte);
170
+ }
171
+ plus_an5ph_k$(other) {
172
+ return new AsciiBitSet(this.low_1 | other.low_1, this.high_1 | other.high_1);
173
+ }
174
+ }
134
175
  class URLDecodeException extends Exception {
135
176
  constructor(message) {
136
- return new.target.r48(message);
177
+ return new.target.new_io_ktor_http_URLDecodeException_fxz6ye_k$(message);
137
178
  }
138
- static r48(message) {
139
- var $this = this.be(message);
140
- captureStack($this, $this.q48_1);
179
+ static new_io_ktor_http_URLDecodeException_fxz6ye_k$(message) {
180
+ var $this = this.new_kotlin_Exception_hsqbop_k$(message);
181
+ captureStack($this, $this.$throwableCtor_2);
141
182
  return $this;
142
183
  }
143
184
  }
144
- class Companion {
185
+ class Companion_0 {
145
186
  constructor() {
146
- Companion_instance = this;
147
- this.x48_1 = ContentType.c49('*', '*');
187
+ Companion_instance_0 = this;
188
+ this.Any_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('*', '*');
148
189
  }
149
- ss(value) {
190
+ parse_pc1q8p_k$(value) {
150
191
  if (isBlank(value))
151
- return this.x48_1;
192
+ return this.Any_1;
152
193
  // Inline function 'io.ktor.http.Companion.parse' call
153
194
  var headerValue = last(parseHeaderValue(value));
154
- var tmp0 = headerValue.d49_1;
155
- var parameters = headerValue.e49_1;
195
+ var tmp0 = headerValue.value_1;
196
+ var parameters = headerValue.params_1;
156
197
  var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
157
198
  if (slash === -1) {
158
199
  // Inline function 'kotlin.text.trim' call
159
- if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
160
- return Companion_getInstance().x48_1;
161
- throw BadContentTypeFormatException.i49(value);
200
+ if (toString_0(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
201
+ return Companion_getInstance_0().Any_1;
202
+ throw BadContentTypeFormatException.new_io_ktor_http_BadContentTypeFormatException_pqz1qq_k$(value);
162
203
  }
163
204
  // Inline function 'kotlin.text.trim' call
164
205
  var this_0 = take(tmp0, slash);
165
- var type = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
206
+ var type = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
166
207
  // Inline function 'kotlin.text.isEmpty' call
167
208
  if (charSequenceLength(type) === 0) {
168
- throw BadContentTypeFormatException.i49(value);
209
+ throw BadContentTypeFormatException.new_io_ktor_http_BadContentTypeFormatException_pqz1qq_k$(value);
169
210
  }
170
211
  // Inline function 'kotlin.text.trim' call
171
212
  var this_1 = substring_0(tmp0, slash + 1 | 0);
172
- var subtype = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
213
+ var subtype = toString_0(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
173
214
  if (contains(type, _Char___init__impl__6a9atx(32)) || contains(subtype, _Char___init__impl__6a9atx(32))) {
174
- throw BadContentTypeFormatException.i49(value);
215
+ throw BadContentTypeFormatException.new_io_ktor_http_BadContentTypeFormatException_pqz1qq_k$(value);
175
216
  }
176
217
  var tmp;
177
218
  // Inline function 'kotlin.text.isEmpty' call
@@ -181,93 +222,91 @@ class Companion {
181
222
  tmp = contains(subtype, _Char___init__impl__6a9atx(47));
182
223
  }
183
224
  if (tmp) {
184
- throw BadContentTypeFormatException.i49(value);
225
+ throw BadContentTypeFormatException.new_io_ktor_http_BadContentTypeFormatException_pqz1qq_k$(value);
185
226
  }
186
- return ContentType.c49(type, subtype, parameters);
227
+ return ContentType.new_io_ktor_http_ContentType_8p6a24_k$(type, subtype, parameters);
187
228
  }
188
229
  }
189
230
  class Application {
190
231
  constructor() {
191
232
  Application_instance = this;
192
- this.j49_1 = 'application';
193
- this.k49_1 = ContentType.c49('application', '*');
194
- this.l49_1 = ContentType.c49('application', 'atom+xml');
195
- this.m49_1 = ContentType.c49('application', 'cbor');
196
- this.n49_1 = ContentType.c49('application', 'json');
197
- this.o49_1 = ContentType.c49('application', 'hal+json');
198
- this.p49_1 = ContentType.c49('application', 'javascript');
199
- this.q49_1 = ContentType.c49('application', 'octet-stream');
200
- this.r49_1 = ContentType.c49('application', 'rss+xml');
201
- this.s49_1 = ContentType.c49('application', 'soap+xml');
202
- this.t49_1 = ContentType.c49('application', 'xml');
203
- this.u49_1 = ContentType.c49('application', 'xml-dtd');
204
- this.v49_1 = ContentType.c49('application', 'yaml');
205
- this.w49_1 = ContentType.c49('application', 'zip');
206
- this.x49_1 = ContentType.c49('application', 'gzip');
207
- this.y49_1 = ContentType.c49('application', 'x-www-form-urlencoded');
208
- this.z49_1 = ContentType.c49('application', 'pdf');
209
- this.a4a_1 = ContentType.c49('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
210
- this.b4a_1 = ContentType.c49('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
211
- this.c4a_1 = ContentType.c49('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
212
- this.d4a_1 = ContentType.c49('application', 'protobuf');
213
- this.e4a_1 = ContentType.c49('application', 'wasm');
214
- this.f4a_1 = ContentType.c49('application', 'problem+json');
215
- this.g4a_1 = ContentType.c49('application', 'problem+xml');
216
- }
217
- h4a(contentType) {
218
- return startsWith(contentType, 'application/', true);
233
+ this.TYPE_1 = 'application';
234
+ this.Any_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', '*');
235
+ this.Atom_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'atom+xml');
236
+ this.Cbor_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'cbor');
237
+ this.Json_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'json');
238
+ this.HalJson_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'hal+json');
239
+ this.JavaScript_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'javascript');
240
+ this.OctetStream_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'octet-stream');
241
+ this.Rss_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'rss+xml');
242
+ this.Soap_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'soap+xml');
243
+ this.Xml_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'xml');
244
+ this.Xml_Dtd_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'xml-dtd');
245
+ this.Yaml_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'yaml');
246
+ this.Zip_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'zip');
247
+ this.GZip_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'gzip');
248
+ this.FormUrlEncoded_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'x-www-form-urlencoded');
249
+ this.Pdf_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'pdf');
250
+ this.Xlsx_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
251
+ this.Docx_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
252
+ this.Pptx_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
253
+ this.ProtoBuf_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'protobuf');
254
+ this.Wasm_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'wasm');
255
+ this.ProblemJson_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'problem+json');
256
+ this.ProblemXml_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('application', 'problem+xml');
219
257
  }
220
258
  }
221
259
  class MultiPart {
222
260
  constructor() {
223
261
  MultiPart_instance = this;
224
- this.i4a_1 = 'multipart';
225
- this.j4a_1 = ContentType.c49('multipart', '*');
226
- this.k4a_1 = ContentType.c49('multipart', 'mixed');
227
- this.l4a_1 = ContentType.c49('multipart', 'alternative');
228
- this.m4a_1 = ContentType.c49('multipart', 'related');
229
- this.n4a_1 = ContentType.c49('multipart', 'form-data');
230
- this.o4a_1 = ContentType.c49('multipart', 'signed');
231
- this.p4a_1 = ContentType.c49('multipart', 'encrypted');
232
- this.q4a_1 = ContentType.c49('multipart', 'byteranges');
233
- }
234
- h4a(contentType) {
262
+ this.TYPE_1 = 'multipart';
263
+ this.Any_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', '*');
264
+ this.Mixed_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', 'mixed');
265
+ this.Alternative_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', 'alternative');
266
+ this.Related_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', 'related');
267
+ this.FormData_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', 'form-data');
268
+ this.Signed_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', 'signed');
269
+ this.Encrypted_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', 'encrypted');
270
+ this.ByteRanges_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('multipart', 'byteranges');
271
+ }
272
+ contains_vaykv6_k$(contentType) {
235
273
  return startsWith(contentType, 'multipart/', true);
236
274
  }
237
275
  }
238
276
  class Text {
239
277
  constructor() {
240
278
  Text_instance = this;
241
- this.r4a_1 = 'text';
242
- this.s4a_1 = ContentType.c49('text', '*');
243
- this.t4a_1 = ContentType.c49('text', 'plain');
244
- this.u4a_1 = ContentType.c49('text', 'css');
245
- this.v4a_1 = ContentType.c49('text', 'csv');
246
- this.w4a_1 = ContentType.c49('text', 'html');
247
- this.x4a_1 = ContentType.c49('text', 'javascript');
248
- this.y4a_1 = ContentType.c49('text', 'vcard');
249
- this.z4a_1 = ContentType.c49('text', 'xml');
250
- this.a4b_1 = ContentType.c49('text', 'event-stream');
279
+ this.TYPE_1 = 'text';
280
+ this.Any_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', '*');
281
+ this.Plain_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'plain');
282
+ this.CSS_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'css');
283
+ this.CSV_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'csv');
284
+ this.Html_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'html');
285
+ this.JavaScript_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'javascript');
286
+ this.Markdown_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'markdown');
287
+ this.VCard_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'vcard');
288
+ this.Xml_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'xml');
289
+ this.EventStream_1 = ContentType.new_io_ktor_http_ContentType_8p6a24_k$('text', 'event-stream');
251
290
  }
252
291
  }
253
292
  class HeaderValueWithParameters {
254
- static c4b(content, parameters) {
293
+ static new_io_ktor_http_HeaderValueWithParameters_3vfckb_k$(content, parameters) {
255
294
  parameters = parameters === VOID ? emptyList() : parameters;
256
295
  var $this = createThis(this);
257
- $this.s48_1 = content;
258
- $this.t48_1 = parameters;
296
+ $this.content_1 = content;
297
+ $this.parameters_1 = parameters;
259
298
  return $this;
260
299
  }
261
- h4b(name) {
300
+ parameter_w3eqbz_k$(name) {
262
301
  var inductionVariable = 0;
263
- var last = get_lastIndex(this.t48_1);
302
+ var last = get_lastIndex(this.parameters_1);
264
303
  if (inductionVariable <= last)
265
304
  do {
266
305
  var index = inductionVariable;
267
306
  inductionVariable = inductionVariable + 1 | 0;
268
- var parameter = this.t48_1.q2(index);
269
- if (equals(parameter.u48_1, name, true)) {
270
- return parameter.v48_1;
307
+ var parameter = this.parameters_1.get_c1px32_k$(index);
308
+ if (equals(parameter.name_1, name, true)) {
309
+ return parameter.value_1;
271
310
  }
272
311
  }
273
312
  while (!(index === last));
@@ -275,38 +314,38 @@ class HeaderValueWithParameters {
275
314
  }
276
315
  toString() {
277
316
  var tmp;
278
- if (this.t48_1.j1()) {
279
- tmp = this.s48_1;
317
+ if (this.parameters_1.isEmpty_y1axqb_k$()) {
318
+ tmp = this.content_1;
280
319
  } else {
281
- var tmp_0 = this.s48_1.length;
320
+ var tmp_0 = this.content_1.length;
282
321
  // Inline function 'kotlin.collections.sumOf' call
283
322
  var sum = 0;
284
- var _iterator__ex2g4s = this.t48_1.l1();
285
- while (_iterator__ex2g4s.m1()) {
286
- var element = _iterator__ex2g4s.n1();
323
+ var _iterator__ex2g4s = this.parameters_1.iterator_jk1svi_k$();
324
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
325
+ var element = _iterator__ex2g4s.next_20eer_k$();
287
326
  var tmp_1 = sum;
288
- sum = tmp_1 + ((element.u48_1.length + element.v48_1.length | 0) + 3 | 0) | 0;
327
+ sum = tmp_1 + ((element.name_1.length + element.value_1.length | 0) + 3 | 0) | 0;
289
328
  }
290
329
  var size = tmp_0 + sum | 0;
291
330
  // Inline function 'kotlin.apply' call
292
- var this_0 = StringBuilder.ec(size);
293
- this_0.i1(this.s48_1);
331
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(size);
332
+ this_0.append_22ad7x_k$(this.content_1);
294
333
  var inductionVariable = 0;
295
- var last = get_lastIndex(this.t48_1);
334
+ var last = get_lastIndex(this.parameters_1);
296
335
  if (inductionVariable <= last)
297
336
  do {
298
337
  var index = inductionVariable;
299
338
  inductionVariable = inductionVariable + 1 | 0;
300
- var element_0 = this.t48_1.q2(index);
301
- this_0.i1('; ');
302
- this_0.i1(element_0.u48_1);
303
- this_0.i1('=');
339
+ var element_0 = this.parameters_1.get_c1px32_k$(index);
340
+ this_0.append_22ad7x_k$('; ');
341
+ this_0.append_22ad7x_k$(element_0.name_1);
342
+ this_0.append_22ad7x_k$('=');
304
343
  // Inline function 'io.ktor.http.escapeIfNeededTo' call
305
- var this_1 = element_0.v48_1;
344
+ var this_1 = element_0.value_1;
306
345
  if (needQuotes(this_1))
307
- this_0.i1(quote(this_1));
346
+ this_0.append_22ad7x_k$(quote(this_1));
308
347
  else
309
- this_0.i1(this_1);
348
+ this_0.append_22ad7x_k$(this_1);
310
349
  }
311
350
  while (!(index === last));
312
351
  tmp = this_0.toString();
@@ -316,54 +355,54 @@ class HeaderValueWithParameters {
316
355
  }
317
356
  class ContentType extends HeaderValueWithParameters {
318
357
  constructor(contentType, contentSubtype, existingContent, parameters) {
319
- return new.target.b4b(contentType, contentSubtype, existingContent, parameters);
358
+ return new.target.new_io_ktor_http_ContentType_y810h0_k$(contentType, contentSubtype, existingContent, parameters);
320
359
  }
321
- static b4b(contentType, contentSubtype, existingContent, parameters) {
322
- Companion_getInstance();
360
+ static new_io_ktor_http_ContentType_y810h0_k$(contentType, contentSubtype, existingContent, parameters) {
361
+ Companion_getInstance_0();
323
362
  parameters = parameters === VOID ? emptyList() : parameters;
324
- var $this = this.c4b(existingContent, parameters);
325
- $this.a49_1 = contentType;
326
- $this.b49_1 = contentSubtype;
363
+ var $this = this.new_io_ktor_http_HeaderValueWithParameters_3vfckb_k$(existingContent, parameters);
364
+ $this.contentType_1 = contentType;
365
+ $this.contentSubtype_1 = contentSubtype;
327
366
  return $this;
328
367
  }
329
- static c49(contentType, contentSubtype, parameters) {
330
- Companion_getInstance();
368
+ static new_io_ktor_http_ContentType_8p6a24_k$(contentType, contentSubtype, parameters) {
369
+ Companion_getInstance_0();
331
370
  parameters = parameters === VOID ? emptyList() : parameters;
332
- return this.b4b(contentType, contentSubtype, contentType + '/' + contentSubtype, parameters);
371
+ return this.new_io_ktor_http_ContentType_y810h0_k$(contentType, contentSubtype, contentType + '/' + contentSubtype, parameters);
333
372
  }
334
- d4b(name, value) {
373
+ withParameter_j6bpqb_k$(name, value) {
335
374
  if (hasParameter(this, name, value))
336
375
  return this;
337
- return ContentType.b4b(this.a49_1, this.b49_1, this.s48_1, plus_2(this.t48_1, HeaderValueParam.e4b(name, value)));
376
+ return ContentType.new_io_ktor_http_ContentType_y810h0_k$(this.contentType_1, this.contentSubtype_1, this.content_1, plus_1(this.parameters_1, HeaderValueParam.new_io_ktor_http_HeaderValueParam_qys55l_k$(name, value)));
338
377
  }
339
- f4b() {
340
- return this.t48_1.j1() ? this : ContentType.c49(this.a49_1, this.b49_1);
378
+ withoutParameters_wrqe36_k$() {
379
+ return this.parameters_1.isEmpty_y1axqb_k$() ? this : ContentType.new_io_ktor_http_ContentType_8p6a24_k$(this.contentType_1, this.contentSubtype_1);
341
380
  }
342
- g4b(pattern) {
343
- if (!(pattern.a49_1 === '*') && !equals(pattern.a49_1, this.a49_1, true)) {
381
+ match_syvve3_k$(pattern) {
382
+ if (!(pattern.contentType_1 === '*') && !equals(pattern.contentType_1, this.contentType_1, true)) {
344
383
  return false;
345
384
  }
346
- if (!(pattern.b49_1 === '*') && !equals(pattern.b49_1, this.b49_1, true)) {
385
+ if (!(pattern.contentSubtype_1 === '*') && !equals(pattern.contentSubtype_1, this.contentSubtype_1, true)) {
347
386
  return false;
348
387
  }
349
- var _iterator__ex2g4s = pattern.t48_1.l1();
350
- while (_iterator__ex2g4s.m1()) {
351
- var _destruct__k2r9zo = _iterator__ex2g4s.n1();
352
- var patternName = _destruct__k2r9zo.ff();
353
- var patternValue = _destruct__k2r9zo.gf();
388
+ var _iterator__ex2g4s = pattern.parameters_1.iterator_jk1svi_k$();
389
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
390
+ var _destruct__k2r9zo = _iterator__ex2g4s.next_20eer_k$();
391
+ var patternName = _destruct__k2r9zo.component1_7eebsc_k$();
392
+ var patternValue = _destruct__k2r9zo.component2_7eebsb_k$();
354
393
  var tmp;
355
394
  if (patternName === '*') {
356
395
  var tmp_0;
357
396
  if (patternValue === '*') {
358
397
  tmp_0 = true;
359
398
  } else {
360
- var tmp0 = this.t48_1;
399
+ var tmp0 = this.parameters_1;
361
400
  var tmp$ret$0;
362
401
  $l$block_0: {
363
402
  // Inline function 'kotlin.collections.any' call
364
403
  var tmp_1;
365
404
  if (isInterface(tmp0, Collection)) {
366
- tmp_1 = tmp0.j1();
405
+ tmp_1 = tmp0.isEmpty_y1axqb_k$();
367
406
  } else {
368
407
  tmp_1 = false;
369
408
  }
@@ -371,10 +410,10 @@ class ContentType extends HeaderValueWithParameters {
371
410
  tmp$ret$0 = false;
372
411
  break $l$block_0;
373
412
  }
374
- var _iterator__ex2g4s_0 = tmp0.l1();
375
- while (_iterator__ex2g4s_0.m1()) {
376
- var element = _iterator__ex2g4s_0.n1();
377
- if (equals(element.v48_1, patternValue, true)) {
413
+ var _iterator__ex2g4s_0 = tmp0.iterator_jk1svi_k$();
414
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
415
+ var element = _iterator__ex2g4s_0.next_20eer_k$();
416
+ if (equals(element.value_1, patternValue, true)) {
378
417
  tmp$ret$0 = true;
379
418
  break $l$block_0;
380
419
  }
@@ -385,7 +424,7 @@ class ContentType extends HeaderValueWithParameters {
385
424
  }
386
425
  tmp = tmp_0;
387
426
  } else {
388
- var value = this.h4b(patternName);
427
+ var value = this.parameter_w3eqbz_k$(patternName);
389
428
  tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
390
429
  }
391
430
  var matches = tmp;
@@ -400,17 +439,17 @@ class ContentType extends HeaderValueWithParameters {
400
439
  var tmp_0;
401
440
  var tmp_1;
402
441
  if (other instanceof ContentType) {
403
- tmp_1 = equals(this.a49_1, other.a49_1, true);
442
+ tmp_1 = equals(this.contentType_1, other.contentType_1, true);
404
443
  } else {
405
444
  tmp_1 = false;
406
445
  }
407
446
  if (tmp_1) {
408
- tmp_0 = equals(this.b49_1, other.b49_1, true);
447
+ tmp_0 = equals(this.contentSubtype_1, other.contentSubtype_1, true);
409
448
  } else {
410
449
  tmp_0 = false;
411
450
  }
412
451
  if (tmp_0) {
413
- tmp = equals_0(this.t48_1, other.t48_1);
452
+ tmp = equals_0(this.parameters_1, other.parameters_1);
414
453
  } else {
415
454
  tmp = false;
416
455
  }
@@ -419,50 +458,50 @@ class ContentType extends HeaderValueWithParameters {
419
458
  hashCode() {
420
459
  // Inline function 'kotlin.text.lowercase' call
421
460
  // Inline function 'kotlin.js.asDynamic' call
422
- var tmp$ret$0 = this.a49_1.toLowerCase();
461
+ var tmp$ret$0 = this.contentType_1.toLowerCase();
423
462
  var result = getStringHashCode(tmp$ret$0);
424
463
  var tmp = result;
425
464
  var tmp_0 = imul(31, result);
426
465
  // Inline function 'kotlin.text.lowercase' call
427
466
  // Inline function 'kotlin.js.asDynamic' call
428
- var tmp$ret$2 = this.b49_1.toLowerCase();
467
+ var tmp$ret$2 = this.contentSubtype_1.toLowerCase();
429
468
  result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
430
- result = result + imul(31, hashCode(this.t48_1)) | 0;
469
+ result = result + imul(31, hashCode(this.parameters_1)) | 0;
431
470
  return result;
432
471
  }
433
472
  }
434
473
  class BadContentTypeFormatException extends Exception {
435
474
  constructor(value) {
436
- return new.target.i49(value);
475
+ return new.target.new_io_ktor_http_BadContentTypeFormatException_pqz1qq_k$(value);
437
476
  }
438
- static i49(value) {
439
- var $this = this.be('Bad Content-Type format: ' + value);
440
- captureStack($this, $this.h49_1);
477
+ static new_io_ktor_http_BadContentTypeFormatException_pqz1qq_k$(value) {
478
+ var $this = this.new_kotlin_Exception_hsqbop_k$('Bad Content-Type format: ' + value);
479
+ captureStack($this, $this.$throwableCtor_2);
441
480
  return $this;
442
481
  }
443
482
  }
444
- class Companion_0 {}
483
+ class Companion_1 {}
445
484
  class HeadersBuilder extends StringValuesBuilderImpl {
446
485
  constructor(size) {
447
486
  size = size === VOID ? 8 : size;
448
487
  super(true, size);
449
488
  }
450
- y1y() {
451
- return new HeadersImpl(this.a44_1);
489
+ build_1k0s4u_k$() {
490
+ return new HeadersImpl(this.values_1);
452
491
  }
453
- b44(name) {
454
- super.b44(name);
455
- HttpHeaders_getInstance().j4f(name);
492
+ validateName_mv1fw7_k$(name) {
493
+ super.validateName_mv1fw7_k$(name);
494
+ HttpHeaders_getInstance().checkHeaderName_cxkzpm_k$(name);
456
495
  }
457
- g44(value) {
458
- super.g44(value);
459
- HttpHeaders_getInstance().k4f(value);
496
+ validateValue_x1igun_k$(value) {
497
+ super.validateValue_x1igun_k$(value);
498
+ HttpHeaders_getInstance().checkHeaderValue_67110u_k$(value);
460
499
  }
461
500
  }
462
- class Companion_1 {
501
+ class Companion_2 {
463
502
  constructor() {
464
- Companion_instance_1 = this;
465
- this.l4f_1 = EmptyHeaders_instance;
503
+ Companion_instance_2 = this;
504
+ this.Empty_1 = EmptyHeaders_instance;
466
505
  }
467
506
  }
468
507
  class HeadersImpl extends StringValuesImpl {
@@ -471,27 +510,27 @@ class HeadersImpl extends StringValuesImpl {
471
510
  super(true, values);
472
511
  }
473
512
  toString() {
474
- return 'Headers ' + toString(this.x43());
513
+ return 'Headers ' + toString_0(this.entries_qbkxv4_k$());
475
514
  }
476
515
  }
477
516
  class EmptyHeaders {
478
- c44() {
517
+ get_caseInsensitiveName_ehooe5_k$() {
479
518
  return true;
480
519
  }
481
- d44(name) {
520
+ getAll_ffxf4h_k$(name) {
482
521
  return null;
483
522
  }
484
- e44() {
523
+ names_1q9mbs_k$() {
485
524
  return emptySet();
486
525
  }
487
- x43() {
526
+ entries_qbkxv4_k$() {
488
527
  return emptySet();
489
528
  }
490
- j1() {
529
+ isEmpty_y1axqb_k$() {
491
530
  return true;
492
531
  }
493
532
  toString() {
494
- return 'Headers ' + toString(this.x43());
533
+ return 'Headers ' + toString_0(this.entries_qbkxv4_k$());
495
534
  }
496
535
  }
497
536
  class HeadersSingleImpl extends StringValuesSingleImpl {
@@ -499,75 +538,23 @@ class HeadersSingleImpl extends StringValuesSingleImpl {
499
538
  super(true, name, values);
500
539
  }
501
540
  toString() {
502
- return 'Headers ' + toString(this.x43());
503
- }
504
- }
505
- class HeaderValueParam {
506
- constructor(name, value, escapeValue) {
507
- return new.target.m4f(name, value, escapeValue);
508
- }
509
- static m4f(name, value, escapeValue) {
510
- var $this = createThis(this);
511
- $this.u48_1 = name;
512
- $this.v48_1 = value;
513
- $this.w48_1 = escapeValue;
514
- return $this;
515
- }
516
- static e4b(name, value) {
517
- return this.m4f(name, value, false);
518
- }
519
- equals(other) {
520
- var tmp;
521
- var tmp_0;
522
- if (other instanceof HeaderValueParam) {
523
- tmp_0 = equals(other.u48_1, this.u48_1, true);
524
- } else {
525
- tmp_0 = false;
526
- }
527
- if (tmp_0) {
528
- tmp = equals(other.v48_1, this.v48_1, true);
529
- } else {
530
- tmp = false;
531
- }
532
- return tmp;
533
- }
534
- hashCode() {
535
- // Inline function 'kotlin.text.lowercase' call
536
- // Inline function 'kotlin.js.asDynamic' call
537
- var tmp$ret$0 = this.u48_1.toLowerCase();
538
- var result = getStringHashCode(tmp$ret$0);
539
- var tmp = result;
540
- var tmp_0 = imul(31, result);
541
- // Inline function 'kotlin.text.lowercase' call
542
- // Inline function 'kotlin.js.asDynamic' call
543
- var tmp$ret$2 = this.v48_1.toLowerCase();
544
- result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
545
- return result;
546
- }
547
- ff() {
548
- return this.u48_1;
549
- }
550
- gf() {
551
- return this.v48_1;
552
- }
553
- toString() {
554
- return 'HeaderValueParam(name=' + this.u48_1 + ', value=' + this.v48_1 + ', escapeValue=' + this.w48_1 + ')';
541
+ return 'Headers ' + toString_0(this.entries_qbkxv4_k$());
555
542
  }
556
543
  }
557
544
  class HeaderValue {
558
545
  constructor(value, params) {
559
546
  params = params === VOID ? emptyList() : params;
560
- this.d49_1 = value;
561
- this.e49_1 = params;
547
+ this.value_1 = value;
548
+ this.params_1 = params;
562
549
  var tmp = this;
563
- var tmp0 = this.e49_1;
550
+ var tmp0 = this.params_1;
564
551
  var tmp$ret$0;
565
552
  $l$block: {
566
553
  // Inline function 'kotlin.collections.firstOrNull' call
567
- var _iterator__ex2g4s = tmp0.l1();
568
- while (_iterator__ex2g4s.m1()) {
569
- var element = _iterator__ex2g4s.n1();
570
- if (element.u48_1 === 'q') {
554
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
555
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
556
+ var element = _iterator__ex2g4s.next_20eer_k$();
557
+ if (equals(element.name_1, 'q', true)) {
571
558
  tmp$ret$0 = element;
572
559
  break $l$block;
573
560
  }
@@ -575,7 +562,7 @@ class HeaderValue {
575
562
  tmp$ret$0 = null;
576
563
  }
577
564
  var tmp0_safe_receiver = tmp$ret$0;
578
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v48_1;
565
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.value_1;
579
566
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
580
567
  var tmp_0;
581
568
  if (tmp2_safe_receiver == null) {
@@ -591,14 +578,14 @@ class HeaderValue {
591
578
  tmp_0 = tmp_1;
592
579
  }
593
580
  var tmp3_elvis_lhs = tmp_0;
594
- tmp.f49_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
581
+ tmp.quality_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
595
582
  }
596
583
  toString() {
597
- return 'HeaderValue(value=' + this.d49_1 + ', params=' + toString(this.e49_1) + ')';
584
+ return 'HeaderValue(value=' + this.value_1 + ', params=' + toString_0(this.params_1) + ')';
598
585
  }
599
586
  hashCode() {
600
- var result = getStringHashCode(this.d49_1);
601
- result = imul(result, 31) + hashCode(this.e49_1) | 0;
587
+ var result = getStringHashCode(this.value_1);
588
+ result = imul(result, 31) + hashCode(this.params_1) | 0;
602
589
  return result;
603
590
  }
604
591
  equals(other) {
@@ -606,125 +593,177 @@ class HeaderValue {
606
593
  return true;
607
594
  if (!(other instanceof HeaderValue))
608
595
  return false;
609
- if (!(this.d49_1 === other.d49_1))
596
+ if (!(this.value_1 === other.value_1))
610
597
  return false;
611
- if (!equals_0(this.e49_1, other.e49_1))
598
+ if (!equals_0(this.params_1, other.params_1))
612
599
  return false;
613
600
  return true;
614
601
  }
615
602
  }
603
+ class HeaderValueParam {
604
+ constructor(name, value, escapeValue) {
605
+ return new.target.new_io_ktor_http_HeaderValueParam_lx5cpq_k$(name, value, escapeValue);
606
+ }
607
+ static new_io_ktor_http_HeaderValueParam_lx5cpq_k$(name, value, escapeValue) {
608
+ var $this = createThis(this);
609
+ $this.name_1 = name;
610
+ $this.value_1 = value;
611
+ $this.escapeValue_1 = escapeValue;
612
+ return $this;
613
+ }
614
+ static new_io_ktor_http_HeaderValueParam_qys55l_k$(name, value) {
615
+ return this.new_io_ktor_http_HeaderValueParam_lx5cpq_k$(name, value, false);
616
+ }
617
+ equals(other) {
618
+ var tmp;
619
+ var tmp_0;
620
+ if (other instanceof HeaderValueParam) {
621
+ tmp_0 = equals(other.name_1, this.name_1, true);
622
+ } else {
623
+ tmp_0 = false;
624
+ }
625
+ if (tmp_0) {
626
+ tmp = equals(other.value_1, this.value_1, true);
627
+ } else {
628
+ tmp = false;
629
+ }
630
+ return tmp;
631
+ }
632
+ hashCode() {
633
+ // Inline function 'kotlin.text.lowercase' call
634
+ // Inline function 'kotlin.js.asDynamic' call
635
+ var tmp$ret$0 = this.name_1.toLowerCase();
636
+ var result = getStringHashCode(tmp$ret$0);
637
+ var tmp = result;
638
+ var tmp_0 = imul(31, result);
639
+ // Inline function 'kotlin.text.lowercase' call
640
+ // Inline function 'kotlin.js.asDynamic' call
641
+ var tmp$ret$2 = this.value_1.toLowerCase();
642
+ result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
643
+ return result;
644
+ }
645
+ component1_7eebsc_k$() {
646
+ return this.name_1;
647
+ }
648
+ component2_7eebsb_k$() {
649
+ return this.value_1;
650
+ }
651
+ toString() {
652
+ return 'HeaderValueParam(name=' + this.name_1 + ', value=' + this.value_1 + ', escapeValue=' + this.escapeValue_1 + ')';
653
+ }
654
+ }
616
655
  class HttpHeaders {
617
656
  constructor() {
618
657
  HttpHeaders_instance = this;
619
- this.k4b_1 = 'Accept';
620
- this.l4b_1 = 'Accept-Charset';
621
- this.m4b_1 = 'Accept-Encoding';
622
- this.n4b_1 = 'Accept-Language';
623
- this.o4b_1 = 'Accept-Ranges';
624
- this.p4b_1 = 'Age';
625
- this.q4b_1 = 'Allow';
626
- this.r4b_1 = 'ALPN';
627
- this.s4b_1 = 'Authentication-Info';
628
- this.t4b_1 = 'Authorization';
629
- this.u4b_1 = 'Cache-Control';
630
- this.v4b_1 = 'Connection';
631
- this.w4b_1 = 'Content-Disposition';
632
- this.x4b_1 = 'Content-Encoding';
633
- this.y4b_1 = 'Content-Language';
634
- this.z4b_1 = 'Content-Length';
635
- this.a4c_1 = 'Content-Location';
636
- this.b4c_1 = 'Content-Range';
637
- this.c4c_1 = 'Content-Type';
638
- this.d4c_1 = 'Cookie';
639
- this.e4c_1 = 'DASL';
640
- this.f4c_1 = 'Date';
641
- this.g4c_1 = 'DAV';
642
- this.h4c_1 = 'Depth';
643
- this.i4c_1 = 'Destination';
644
- this.j4c_1 = 'ETag';
645
- this.k4c_1 = 'Expect';
646
- this.l4c_1 = 'Expires';
647
- this.m4c_1 = 'From';
648
- this.n4c_1 = 'Forwarded';
649
- this.o4c_1 = 'Host';
650
- this.p4c_1 = 'HTTP2-Settings';
651
- this.q4c_1 = 'If';
652
- this.r4c_1 = 'If-Match';
653
- this.s4c_1 = 'If-Modified-Since';
654
- this.t4c_1 = 'If-None-Match';
655
- this.u4c_1 = 'If-Range';
656
- this.v4c_1 = 'If-Schedule-Tag-Match';
657
- this.w4c_1 = 'If-Unmodified-Since';
658
- this.x4c_1 = 'Last-Modified';
659
- this.y4c_1 = 'Location';
660
- this.z4c_1 = 'Lock-Token';
661
- this.a4d_1 = 'Link';
662
- this.b4d_1 = 'Max-Forwards';
663
- this.c4d_1 = 'MIME-Version';
664
- this.d4d_1 = 'Ordering-Type';
665
- this.e4d_1 = 'Origin';
666
- this.f4d_1 = 'Overwrite';
667
- this.g4d_1 = 'Position';
668
- this.h4d_1 = 'Pragma';
669
- this.i4d_1 = 'Prefer';
670
- this.j4d_1 = 'Preference-Applied';
671
- this.k4d_1 = 'Proxy-Authenticate';
672
- this.l4d_1 = 'Proxy-Authentication-Info';
673
- this.m4d_1 = 'Proxy-Authorization';
674
- this.n4d_1 = 'Public-Key-Pins';
675
- this.o4d_1 = 'Public-Key-Pins-Report-Only';
676
- this.p4d_1 = 'Range';
677
- this.q4d_1 = 'Referer';
678
- this.r4d_1 = 'Retry-After';
679
- this.s4d_1 = 'Schedule-Reply';
680
- this.t4d_1 = 'Schedule-Tag';
681
- this.u4d_1 = 'Sec-WebSocket-Accept';
682
- this.v4d_1 = 'Sec-WebSocket-Extensions';
683
- this.w4d_1 = 'Sec-WebSocket-Key';
684
- this.x4d_1 = 'Sec-WebSocket-Protocol';
685
- this.y4d_1 = 'Sec-WebSocket-Version';
686
- this.z4d_1 = 'Server';
687
- this.a4e_1 = 'Set-Cookie';
688
- this.b4e_1 = 'SLUG';
689
- this.c4e_1 = 'Strict-Transport-Security';
690
- this.d4e_1 = 'TE';
691
- this.e4e_1 = 'Timeout';
692
- this.f4e_1 = 'Trailer';
693
- this.g4e_1 = 'Transfer-Encoding';
694
- this.h4e_1 = 'Upgrade';
695
- this.i4e_1 = 'User-Agent';
696
- this.j4e_1 = 'Vary';
697
- this.k4e_1 = 'Via';
698
- this.l4e_1 = 'Warning';
699
- this.m4e_1 = 'WWW-Authenticate';
700
- this.n4e_1 = 'Access-Control-Allow-Origin';
701
- this.o4e_1 = 'Access-Control-Allow-Methods';
702
- this.p4e_1 = 'Access-Control-Allow-Credentials';
703
- this.q4e_1 = 'Access-Control-Allow-Headers';
704
- this.r4e_1 = 'Access-Control-Request-Method';
705
- this.s4e_1 = 'Access-Control-Request-Headers';
706
- this.t4e_1 = 'Access-Control-Expose-Headers';
707
- this.u4e_1 = 'Access-Control-Max-Age';
708
- this.v4e_1 = 'X-Http-Method-Override';
709
- this.w4e_1 = 'X-Forwarded-Host';
710
- this.x4e_1 = 'X-Forwarded-Server';
711
- this.y4e_1 = 'X-Forwarded-Proto';
712
- this.z4e_1 = 'X-Forwarded-For';
713
- this.a4f_1 = 'X-Forwarded-Port';
714
- this.b4f_1 = 'X-Request-ID';
715
- this.c4f_1 = 'X-Correlation-ID';
716
- this.d4f_1 = 'X-Total-Count';
717
- this.e4f_1 = 'Last-Event-ID';
718
- this.f4f_1 = 'TDM-Reservation';
719
- this.g4f_1 = 'TDM-Policy';
658
+ this.Accept_1 = 'Accept';
659
+ this.AcceptCharset_1 = 'Accept-Charset';
660
+ this.AcceptEncoding_1 = 'Accept-Encoding';
661
+ this.AcceptLanguage_1 = 'Accept-Language';
662
+ this.AcceptRanges_1 = 'Accept-Ranges';
663
+ this.Age_1 = 'Age';
664
+ this.Allow_1 = 'Allow';
665
+ this.ALPN_1 = 'ALPN';
666
+ this.AuthenticationInfo_1 = 'Authentication-Info';
667
+ this.Authorization_1 = 'Authorization';
668
+ this.CacheControl_1 = 'Cache-Control';
669
+ this.Connection_1 = 'Connection';
670
+ this.ContentDisposition_1 = 'Content-Disposition';
671
+ this.ContentEncoding_1 = 'Content-Encoding';
672
+ this.ContentLanguage_1 = 'Content-Language';
673
+ this.ContentLength_1 = 'Content-Length';
674
+ this.ContentLocation_1 = 'Content-Location';
675
+ this.ContentRange_1 = 'Content-Range';
676
+ this.ContentType_1 = 'Content-Type';
677
+ this.Cookie_1 = 'Cookie';
678
+ this.DASL_1 = 'DASL';
679
+ this.Date_1 = 'Date';
680
+ this.DAV_1 = 'DAV';
681
+ this.Depth_1 = 'Depth';
682
+ this.Destination_1 = 'Destination';
683
+ this.ETag_1 = 'ETag';
684
+ this.Expect_1 = 'Expect';
685
+ this.Expires_1 = 'Expires';
686
+ this.From_1 = 'From';
687
+ this.Forwarded_1 = 'Forwarded';
688
+ this.Host_1 = 'Host';
689
+ this.HTTP2Settings_1 = 'HTTP2-Settings';
690
+ this.If_1 = 'If';
691
+ this.IfMatch_1 = 'If-Match';
692
+ this.IfModifiedSince_1 = 'If-Modified-Since';
693
+ this.IfNoneMatch_1 = 'If-None-Match';
694
+ this.IfRange_1 = 'If-Range';
695
+ this.IfScheduleTagMatch_1 = 'If-Schedule-Tag-Match';
696
+ this.IfUnmodifiedSince_1 = 'If-Unmodified-Since';
697
+ this.LastModified_1 = 'Last-Modified';
698
+ this.Location_1 = 'Location';
699
+ this.LockToken_1 = 'Lock-Token';
700
+ this.Link_1 = 'Link';
701
+ this.MaxForwards_1 = 'Max-Forwards';
702
+ this.MIMEVersion_1 = 'MIME-Version';
703
+ this.OrderingType_1 = 'Ordering-Type';
704
+ this.Origin_1 = 'Origin';
705
+ this.Overwrite_1 = 'Overwrite';
706
+ this.Position_1 = 'Position';
707
+ this.Pragma_1 = 'Pragma';
708
+ this.Prefer_1 = 'Prefer';
709
+ this.PreferenceApplied_1 = 'Preference-Applied';
710
+ this.ProxyAuthenticate_1 = 'Proxy-Authenticate';
711
+ this.ProxyAuthenticationInfo_1 = 'Proxy-Authentication-Info';
712
+ this.ProxyAuthorization_1 = 'Proxy-Authorization';
713
+ this.PublicKeyPins_1 = 'Public-Key-Pins';
714
+ this.PublicKeyPinsReportOnly_1 = 'Public-Key-Pins-Report-Only';
715
+ this.Range_1 = 'Range';
716
+ this.Referrer_1 = 'Referer';
717
+ this.RetryAfter_1 = 'Retry-After';
718
+ this.ScheduleReply_1 = 'Schedule-Reply';
719
+ this.ScheduleTag_1 = 'Schedule-Tag';
720
+ this.SecWebSocketAccept_1 = 'Sec-WebSocket-Accept';
721
+ this.SecWebSocketExtensions_1 = 'Sec-WebSocket-Extensions';
722
+ this.SecWebSocketKey_1 = 'Sec-WebSocket-Key';
723
+ this.SecWebSocketProtocol_1 = 'Sec-WebSocket-Protocol';
724
+ this.SecWebSocketVersion_1 = 'Sec-WebSocket-Version';
725
+ this.Server_1 = 'Server';
726
+ this.SetCookie_1 = 'Set-Cookie';
727
+ this.SLUG_1 = 'SLUG';
728
+ this.StrictTransportSecurity_1 = 'Strict-Transport-Security';
729
+ this.TE_1 = 'TE';
730
+ this.Timeout_1 = 'Timeout';
731
+ this.Trailer_1 = 'Trailer';
732
+ this.TransferEncoding_1 = 'Transfer-Encoding';
733
+ this.Upgrade_1 = 'Upgrade';
734
+ this.UserAgent_1 = 'User-Agent';
735
+ this.Vary_1 = 'Vary';
736
+ this.Via_1 = 'Via';
737
+ this.Warning_1 = 'Warning';
738
+ this.WWWAuthenticate_1 = 'WWW-Authenticate';
739
+ this.AccessControlAllowOrigin_1 = 'Access-Control-Allow-Origin';
740
+ this.AccessControlAllowMethods_1 = 'Access-Control-Allow-Methods';
741
+ this.AccessControlAllowCredentials_1 = 'Access-Control-Allow-Credentials';
742
+ this.AccessControlAllowHeaders_1 = 'Access-Control-Allow-Headers';
743
+ this.AccessControlRequestMethod_1 = 'Access-Control-Request-Method';
744
+ this.AccessControlRequestHeaders_1 = 'Access-Control-Request-Headers';
745
+ this.AccessControlExposeHeaders_1 = 'Access-Control-Expose-Headers';
746
+ this.AccessControlMaxAge_1 = 'Access-Control-Max-Age';
747
+ this.XHttpMethodOverride_1 = 'X-Http-Method-Override';
748
+ this.XForwardedHost_1 = 'X-Forwarded-Host';
749
+ this.XForwardedServer_1 = 'X-Forwarded-Server';
750
+ this.XForwardedProto_1 = 'X-Forwarded-Proto';
751
+ this.XForwardedFor_1 = 'X-Forwarded-For';
752
+ this.XForwardedPort_1 = 'X-Forwarded-Port';
753
+ this.XRequestId_1 = 'X-Request-ID';
754
+ this.XCorrelationId_1 = 'X-Correlation-ID';
755
+ this.XTotalCount_1 = 'X-Total-Count';
756
+ this.LastEventID_1 = 'Last-Event-ID';
757
+ this.TDMReservation_1 = 'TDM-Reservation';
758
+ this.TDMPolicy_1 = 'TDM-Policy';
720
759
  var tmp = this;
721
760
  // Inline function 'kotlin.arrayOf' call
722
761
  // Inline function 'kotlin.js.unsafeCast' call
723
762
  // Inline function 'kotlin.js.asDynamic' call
724
- tmp.h4f_1 = ['Transfer-Encoding', 'Upgrade'];
725
- this.i4f_1 = asList(this.h4f_1);
763
+ tmp.UnsafeHeadersArray_1 = ['Transfer-Encoding', 'Upgrade'];
764
+ this.UnsafeHeadersList_1 = asList(this.UnsafeHeadersArray_1);
726
765
  }
727
- j4f(name) {
766
+ checkHeaderName_cxkzpm_k$(name) {
728
767
  // Inline function 'kotlin.text.forEachIndexed' call
729
768
  var index = 0;
730
769
  var inductionVariable = 0;
@@ -733,12 +772,12 @@ class HttpHeaders {
733
772
  inductionVariable = inductionVariable + 1 | 0;
734
773
  var _unary__edvuaz = index;
735
774
  index = _unary__edvuaz + 1 | 0;
736
- if (Char__compareTo_impl_ypi4mb(item, _Char___init__impl__6a9atx(32)) <= 0 || isDelimiter(item)) {
737
- throw IllegalHeaderNameException.t4f(name, _unary__edvuaz);
775
+ if (get_ILLEGAL_HEADER_NAME_CHARS().contains_egozq6_k$(item)) {
776
+ throw IllegalHeaderNameException.new_io_ktor_http_IllegalHeaderNameException_97zbc3_k$(name, _unary__edvuaz);
738
777
  }
739
778
  }
740
779
  }
741
- k4f(value) {
780
+ checkHeaderValue_67110u_k$(value) {
742
781
  // Inline function 'kotlin.text.forEachIndexed' call
743
782
  var index = 0;
744
783
  var inductionVariable = 0;
@@ -748,114 +787,114 @@ class HttpHeaders {
748
787
  var _unary__edvuaz = index;
749
788
  index = _unary__edvuaz + 1 | 0;
750
789
  if (Char__compareTo_impl_ypi4mb(item, _Char___init__impl__6a9atx(32)) < 0 && !(item === _Char___init__impl__6a9atx(9))) {
751
- throw IllegalHeaderValueException.a4g(value, _unary__edvuaz);
790
+ throw IllegalHeaderValueException.new_io_ktor_http_IllegalHeaderValueException_fgjd27_k$(value, _unary__edvuaz);
752
791
  }
753
792
  }
754
793
  }
755
794
  }
756
795
  class UnsafeHeaderException extends IllegalArgumentException {
757
796
  constructor(header) {
758
- return new.target.f4g(header);
797
+ return new.target.new_io_ktor_http_UnsafeHeaderException_8be5r0_k$(header);
759
798
  }
760
- static f4g(header) {
761
- var $this = this.n2('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly');
762
- captureStack($this, $this.e4g_1);
799
+ static new_io_ktor_http_UnsafeHeaderException_8be5r0_k$(header) {
800
+ var $this = this.new_kotlin_IllegalArgumentException_sfqr8_k$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly');
801
+ captureStack($this, $this.$throwableCtor_4);
763
802
  return $this;
764
803
  }
765
804
  }
766
805
  class IllegalHeaderNameException extends IllegalArgumentException {
767
806
  constructor(headerName, position) {
768
- return new.target.t4f(headerName, position);
807
+ return new.target.new_io_ktor_http_IllegalHeaderNameException_97zbc3_k$(headerName, position);
769
808
  }
770
- static t4f(headerName, position) {
771
- var tmp = "Header name '" + headerName + "' contains illegal character '" + toString_0(charCodeAt(headerName, position)) + "'";
809
+ static new_io_ktor_http_IllegalHeaderNameException_97zbc3_k$(headerName, position) {
810
+ var tmp = "Header name '" + headerName + "' contains illegal character '" + toString(charCodeAt(headerName, position)) + "'";
772
811
  // Inline function 'kotlin.code' call
773
812
  var this_0 = charCodeAt(headerName, position);
774
813
  var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
775
- var $this = this.n2(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'));
776
- captureStack($this, $this.s4f_1);
777
- $this.q4f_1 = headerName;
778
- $this.r4f_1 = position;
814
+ var $this = this.new_kotlin_IllegalArgumentException_sfqr8_k$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'));
815
+ captureStack($this, $this.$throwableCtor_4);
816
+ $this.headerName_1 = headerName;
817
+ $this.position_1 = position;
779
818
  return $this;
780
819
  }
781
820
  }
782
821
  class IllegalHeaderValueException extends IllegalArgumentException {
783
822
  constructor(headerValue, position) {
784
- return new.target.a4g(headerValue, position);
823
+ return new.target.new_io_ktor_http_IllegalHeaderValueException_fgjd27_k$(headerValue, position);
785
824
  }
786
- static a4g(headerValue, position) {
787
- var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
825
+ static new_io_ktor_http_IllegalHeaderValueException_fgjd27_k$(headerValue, position) {
826
+ var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString(charCodeAt(headerValue, position)) + "'";
788
827
  // Inline function 'kotlin.code' call
789
828
  var this_0 = charCodeAt(headerValue, position);
790
829
  var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
791
- var $this = this.n2(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'));
792
- captureStack($this, $this.z4f_1);
793
- $this.x4f_1 = headerValue;
794
- $this.y4f_1 = position;
830
+ var $this = this.new_kotlin_IllegalArgumentException_sfqr8_k$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'));
831
+ captureStack($this, $this.$throwableCtor_4);
832
+ $this.headerValue_1 = headerValue;
833
+ $this.position_1 = position;
795
834
  return $this;
796
835
  }
797
836
  }
798
- class Companion_2 {
837
+ class Companion_3 {
799
838
  constructor() {
800
- Companion_instance_2 = this;
801
- this.h4g_1 = new HttpMethod('GET');
802
- this.i4g_1 = new HttpMethod('POST');
803
- this.j4g_1 = new HttpMethod('PUT');
804
- this.k4g_1 = new HttpMethod('PATCH');
805
- this.l4g_1 = new HttpMethod('DELETE');
806
- this.m4g_1 = new HttpMethod('HEAD');
807
- this.n4g_1 = new HttpMethod('OPTIONS');
808
- this.o4g_1 = new HttpMethod('TRACE');
809
- this.p4g_1 = new HttpMethod('QUERY');
810
- this.q4g_1 = listOf([this.h4g_1, this.i4g_1, this.j4g_1, this.k4g_1, this.l4g_1, this.m4g_1, this.n4g_1]);
839
+ Companion_instance_3 = this;
840
+ this.Get_1 = new HttpMethod('GET');
841
+ this.Post_1 = new HttpMethod('POST');
842
+ this.Put_1 = new HttpMethod('PUT');
843
+ this.Patch_1 = new HttpMethod('PATCH');
844
+ this.Delete_1 = new HttpMethod('DELETE');
845
+ this.Head_1 = new HttpMethod('HEAD');
846
+ this.Options_1 = new HttpMethod('OPTIONS');
847
+ this.Trace_1 = new HttpMethod('TRACE');
848
+ this.Query_1 = new HttpMethod('QUERY');
849
+ this.DefaultMethods_1 = listOf_0([this.Get_1, this.Post_1, this.Put_1, this.Patch_1, this.Delete_1, this.Head_1, this.Options_1]);
811
850
  }
812
851
  }
813
852
  class HttpMethod {
814
853
  constructor(value) {
815
- Companion_getInstance_2();
816
- this.r4g_1 = value;
854
+ Companion_getInstance_3();
855
+ this.value_1 = value;
817
856
  }
818
857
  toString() {
819
- return this.r4g_1;
858
+ return this.value_1;
820
859
  }
821
860
  hashCode() {
822
- return getStringHashCode(this.r4g_1);
861
+ return getStringHashCode(this.value_1);
823
862
  }
824
863
  equals(other) {
825
864
  if (this === other)
826
865
  return true;
827
866
  if (!(other instanceof HttpMethod))
828
867
  return false;
829
- if (!(this.r4g_1 === other.r4g_1))
868
+ if (!(this.value_1 === other.value_1))
830
869
  return false;
831
870
  return true;
832
871
  }
833
872
  }
834
- class Companion_3 {
873
+ class Companion_4 {
835
874
  constructor() {
836
- Companion_instance_3 = this;
837
- this.s4g_1 = new HttpProtocolVersion('HTTP', 3, 0);
838
- this.t4g_1 = new HttpProtocolVersion('HTTP', 2, 0);
839
- this.u4g_1 = new HttpProtocolVersion('HTTP', 1, 1);
840
- this.v4g_1 = new HttpProtocolVersion('HTTP', 1, 0);
841
- this.w4g_1 = new HttpProtocolVersion('SPDY', 3, 0);
842
- this.x4g_1 = new HttpProtocolVersion('QUIC', 1, 0);
875
+ Companion_instance_4 = this;
876
+ this.HTTP_3_0__1 = new HttpProtocolVersion('HTTP', 3, 0);
877
+ this.HTTP_2_0__1 = new HttpProtocolVersion('HTTP', 2, 0);
878
+ this.HTTP_1_1__1 = new HttpProtocolVersion('HTTP', 1, 1);
879
+ this.HTTP_1_0__1 = new HttpProtocolVersion('HTTP', 1, 0);
880
+ this.SPDY_3__1 = new HttpProtocolVersion('SPDY', 3, 0);
881
+ this.QUIC_1 = new HttpProtocolVersion('QUIC', 1, 0);
843
882
  }
844
883
  }
845
884
  class HttpProtocolVersion {
846
885
  constructor(name, major, minor) {
847
- Companion_getInstance_3();
848
- this.y4g_1 = name;
849
- this.z4g_1 = major;
850
- this.a4h_1 = minor;
886
+ Companion_getInstance_4();
887
+ this.name_1 = name;
888
+ this.major_1 = major;
889
+ this.minor_1 = minor;
851
890
  }
852
891
  toString() {
853
- return this.y4g_1 + '/' + this.z4g_1 + '.' + this.a4h_1;
892
+ return this.name_1 + '/' + this.major_1 + '.' + this.minor_1;
854
893
  }
855
894
  hashCode() {
856
- var result = getStringHashCode(this.y4g_1);
857
- result = imul(result, 31) + this.z4g_1 | 0;
858
- result = imul(result, 31) + this.a4h_1 | 0;
895
+ var result = getStringHashCode(this.name_1);
896
+ result = imul(result, 31) + this.major_1 | 0;
897
+ result = imul(result, 31) + this.minor_1 | 0;
859
898
  return result;
860
899
  }
861
900
  equals(other) {
@@ -863,145 +902,146 @@ class HttpProtocolVersion {
863
902
  return true;
864
903
  if (!(other instanceof HttpProtocolVersion))
865
904
  return false;
866
- if (!(this.y4g_1 === other.y4g_1))
905
+ if (!(this.name_1 === other.name_1))
867
906
  return false;
868
- if (!(this.z4g_1 === other.z4g_1))
907
+ if (!(this.major_1 === other.major_1))
869
908
  return false;
870
- if (!(this.a4h_1 === other.a4h_1))
909
+ if (!(this.minor_1 === other.minor_1))
871
910
  return false;
872
911
  return true;
873
912
  }
874
913
  }
875
- class Companion_4 {
914
+ class Companion_5 {
876
915
  constructor() {
877
- Companion_instance_4 = this;
878
- this.b4h_1 = new HttpStatusCode(100, 'Continue');
879
- this.c4h_1 = new HttpStatusCode(101, 'Switching Protocols');
880
- this.d4h_1 = new HttpStatusCode(102, 'Processing');
881
- this.e4h_1 = new HttpStatusCode(200, 'OK');
882
- this.f4h_1 = new HttpStatusCode(201, 'Created');
883
- this.g4h_1 = new HttpStatusCode(202, 'Accepted');
884
- this.h4h_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
885
- this.i4h_1 = new HttpStatusCode(204, 'No Content');
886
- this.j4h_1 = new HttpStatusCode(205, 'Reset Content');
887
- this.k4h_1 = new HttpStatusCode(206, 'Partial Content');
888
- this.l4h_1 = new HttpStatusCode(207, 'Multi-Status');
889
- this.m4h_1 = new HttpStatusCode(300, 'Multiple Choices');
890
- this.n4h_1 = new HttpStatusCode(301, 'Moved Permanently');
891
- this.o4h_1 = new HttpStatusCode(302, 'Found');
892
- this.p4h_1 = new HttpStatusCode(303, 'See Other');
893
- this.q4h_1 = new HttpStatusCode(304, 'Not Modified');
894
- this.r4h_1 = new HttpStatusCode(305, 'Use Proxy');
895
- this.s4h_1 = new HttpStatusCode(306, 'Switch Proxy');
896
- this.t4h_1 = new HttpStatusCode(307, 'Temporary Redirect');
897
- this.u4h_1 = new HttpStatusCode(308, 'Permanent Redirect');
898
- this.v4h_1 = new HttpStatusCode(400, 'Bad Request');
899
- this.w4h_1 = new HttpStatusCode(401, 'Unauthorized');
900
- this.x4h_1 = new HttpStatusCode(402, 'Payment Required');
901
- this.y4h_1 = new HttpStatusCode(403, 'Forbidden');
902
- this.z4h_1 = new HttpStatusCode(404, 'Not Found');
903
- this.a4i_1 = new HttpStatusCode(405, 'Method Not Allowed');
904
- this.b4i_1 = new HttpStatusCode(406, 'Not Acceptable');
905
- this.c4i_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
906
- this.d4i_1 = new HttpStatusCode(408, 'Request Timeout');
907
- this.e4i_1 = new HttpStatusCode(409, 'Conflict');
908
- this.f4i_1 = new HttpStatusCode(410, 'Gone');
909
- this.g4i_1 = new HttpStatusCode(411, 'Length Required');
910
- this.h4i_1 = new HttpStatusCode(412, 'Precondition Failed');
911
- this.i4i_1 = new HttpStatusCode(413, 'Payload Too Large');
912
- this.j4i_1 = new HttpStatusCode(414, 'Request-URI Too Long');
913
- this.k4i_1 = new HttpStatusCode(415, 'Unsupported Media Type');
914
- this.l4i_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
915
- this.m4i_1 = new HttpStatusCode(417, 'Expectation Failed');
916
- this.n4i_1 = new HttpStatusCode(422, 'Unprocessable Entity');
917
- this.o4i_1 = new HttpStatusCode(423, 'Locked');
918
- this.p4i_1 = new HttpStatusCode(424, 'Failed Dependency');
919
- this.q4i_1 = new HttpStatusCode(425, 'Too Early');
920
- this.r4i_1 = new HttpStatusCode(426, 'Upgrade Required');
921
- this.s4i_1 = new HttpStatusCode(429, 'Too Many Requests');
922
- this.t4i_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
923
- this.u4i_1 = new HttpStatusCode(500, 'Internal Server Error');
924
- this.v4i_1 = new HttpStatusCode(501, 'Not Implemented');
925
- this.w4i_1 = new HttpStatusCode(502, 'Bad Gateway');
926
- this.x4i_1 = new HttpStatusCode(503, 'Service Unavailable');
927
- this.y4i_1 = new HttpStatusCode(504, 'Gateway Timeout');
928
- this.z4i_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
929
- this.a4j_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
930
- this.b4j_1 = new HttpStatusCode(507, 'Insufficient Storage');
931
- this.c4j_1 = allStatusCodes();
916
+ Companion_instance_5 = this;
917
+ this.Continue_1 = new HttpStatusCode(100, 'Continue');
918
+ this.SwitchingProtocols_1 = new HttpStatusCode(101, 'Switching Protocols');
919
+ this.Processing_1 = new HttpStatusCode(102, 'Processing');
920
+ this.OK_1 = new HttpStatusCode(200, 'OK');
921
+ this.Created_1 = new HttpStatusCode(201, 'Created');
922
+ this.Accepted_1 = new HttpStatusCode(202, 'Accepted');
923
+ this.NonAuthoritativeInformation_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
924
+ this.NoContent_1 = new HttpStatusCode(204, 'No Content');
925
+ this.ResetContent_1 = new HttpStatusCode(205, 'Reset Content');
926
+ this.PartialContent_1 = new HttpStatusCode(206, 'Partial Content');
927
+ this.MultiStatus_1 = new HttpStatusCode(207, 'Multi-Status');
928
+ this.MultipleChoices_1 = new HttpStatusCode(300, 'Multiple Choices');
929
+ this.MovedPermanently_1 = new HttpStatusCode(301, 'Moved Permanently');
930
+ this.Found_1 = new HttpStatusCode(302, 'Found');
931
+ this.SeeOther_1 = new HttpStatusCode(303, 'See Other');
932
+ this.NotModified_1 = new HttpStatusCode(304, 'Not Modified');
933
+ this.UseProxy_1 = new HttpStatusCode(305, 'Use Proxy');
934
+ this.SwitchProxy_1 = new HttpStatusCode(306, 'Switch Proxy');
935
+ this.TemporaryRedirect_1 = new HttpStatusCode(307, 'Temporary Redirect');
936
+ this.PermanentRedirect_1 = new HttpStatusCode(308, 'Permanent Redirect');
937
+ this.BadRequest_1 = new HttpStatusCode(400, 'Bad Request');
938
+ this.Unauthorized_1 = new HttpStatusCode(401, 'Unauthorized');
939
+ this.PaymentRequired_1 = new HttpStatusCode(402, 'Payment Required');
940
+ this.Forbidden_1 = new HttpStatusCode(403, 'Forbidden');
941
+ this.NotFound_1 = new HttpStatusCode(404, 'Not Found');
942
+ this.MethodNotAllowed_1 = new HttpStatusCode(405, 'Method Not Allowed');
943
+ this.NotAcceptable_1 = new HttpStatusCode(406, 'Not Acceptable');
944
+ this.ProxyAuthenticationRequired_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
945
+ this.RequestTimeout_1 = new HttpStatusCode(408, 'Request Timeout');
946
+ this.Conflict_1 = new HttpStatusCode(409, 'Conflict');
947
+ this.Gone_1 = new HttpStatusCode(410, 'Gone');
948
+ this.LengthRequired_1 = new HttpStatusCode(411, 'Length Required');
949
+ this.PreconditionFailed_1 = new HttpStatusCode(412, 'Precondition Failed');
950
+ this.PayloadTooLarge_1 = new HttpStatusCode(413, 'Payload Too Large');
951
+ this.RequestURITooLong_1 = new HttpStatusCode(414, 'Request-URI Too Long');
952
+ this.UnsupportedMediaType_1 = new HttpStatusCode(415, 'Unsupported Media Type');
953
+ this.RequestedRangeNotSatisfiable_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
954
+ this.ExpectationFailed_1 = new HttpStatusCode(417, 'Expectation Failed');
955
+ this.UnprocessableEntity_1 = new HttpStatusCode(422, 'Unprocessable Entity');
956
+ this.Locked_1 = new HttpStatusCode(423, 'Locked');
957
+ this.FailedDependency_1 = new HttpStatusCode(424, 'Failed Dependency');
958
+ this.TooEarly_1 = new HttpStatusCode(425, 'Too Early');
959
+ this.UpgradeRequired_1 = new HttpStatusCode(426, 'Upgrade Required');
960
+ this.PreconditionRequired_1 = new HttpStatusCode(428, 'Precondition Required');
961
+ this.TooManyRequests_1 = new HttpStatusCode(429, 'Too Many Requests');
962
+ this.RequestHeaderFieldTooLarge_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
963
+ this.InternalServerError_1 = new HttpStatusCode(500, 'Internal Server Error');
964
+ this.NotImplemented_1 = new HttpStatusCode(501, 'Not Implemented');
965
+ this.BadGateway_1 = new HttpStatusCode(502, 'Bad Gateway');
966
+ this.ServiceUnavailable_1 = new HttpStatusCode(503, 'Service Unavailable');
967
+ this.GatewayTimeout_1 = new HttpStatusCode(504, 'Gateway Timeout');
968
+ this.VersionNotSupported_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
969
+ this.VariantAlsoNegotiates_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
970
+ this.InsufficientStorage_1 = new HttpStatusCode(507, 'Insufficient Storage');
971
+ this.allStatusCodes_1 = allStatusCodes();
932
972
  var tmp = this;
933
973
  // Inline function 'kotlin.collections.associateBy' call
934
- var this_0 = this.c4j_1;
974
+ var this_0 = this.allStatusCodes_1;
935
975
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
936
976
  // Inline function 'kotlin.collections.associateByTo' call
937
- var destination = LinkedHashMap.ic(capacity);
938
- var _iterator__ex2g4s = this_0.l1();
939
- while (_iterator__ex2g4s.m1()) {
940
- var element = _iterator__ex2g4s.n1();
941
- var tmp$ret$2 = element.e4j_1;
942
- destination.g4(tmp$ret$2, element);
977
+ var destination = LinkedHashMap.new_kotlin_collections_LinkedHashMap_31p40q_k$(capacity);
978
+ var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
979
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
980
+ var element = _iterator__ex2g4s.next_20eer_k$();
981
+ var tmp$ret$2 = element.value_1;
982
+ destination.put_4fpzoq_k$(tmp$ret$2, element);
943
983
  }
944
- tmp.d4j_1 = destination;
984
+ tmp.statusCodesMap_1 = destination;
945
985
  }
946
986
  }
947
987
  class HttpStatusCode {
948
988
  constructor(value, description) {
949
- Companion_getInstance_4();
950
- this.e4j_1 = value;
951
- this.f4j_1 = description;
989
+ Companion_getInstance_5();
990
+ this.value_1 = value;
991
+ this.description_1 = description;
952
992
  }
953
993
  toString() {
954
- return '' + this.e4j_1 + ' ' + this.f4j_1;
994
+ return '' + this.value_1 + ' ' + this.description_1;
955
995
  }
956
996
  equals(other) {
957
997
  var tmp;
958
998
  if (other instanceof HttpStatusCode) {
959
- tmp = other.e4j_1 === this.e4j_1;
999
+ tmp = other.value_1 === this.value_1;
960
1000
  } else {
961
1001
  tmp = false;
962
1002
  }
963
1003
  return tmp;
964
1004
  }
965
1005
  hashCode() {
966
- return this.e4j_1;
1006
+ return this.value_1;
967
1007
  }
968
- g4j(other) {
969
- return this.e4j_1 - other.e4j_1 | 0;
1008
+ compareTo_ro40fh_k$(other) {
1009
+ return this.value_1 - other.value_1 | 0;
970
1010
  }
971
- d(other) {
972
- return this.g4j(other instanceof HttpStatusCode ? other : THROW_CCE());
1011
+ compareTo_hpufkf_k$(other) {
1012
+ return this.compareTo_ro40fh_k$(other instanceof HttpStatusCode ? other : THROW_CCE());
973
1013
  }
974
1014
  }
975
- class Companion_5 {
1015
+ class Companion_6 {
976
1016
  constructor() {
977
- Companion_instance_5 = this;
978
- this.h4j_1 = EmptyParameters_instance;
1017
+ Companion_instance_6 = this;
1018
+ this.Empty_1 = EmptyParameters_instance;
979
1019
  }
980
1020
  }
981
1021
  class Parameters {}
982
1022
  class EmptyParameters {
983
- c44() {
1023
+ get_caseInsensitiveName_ehooe5_k$() {
984
1024
  return true;
985
1025
  }
986
- d44(name) {
1026
+ getAll_ffxf4h_k$(name) {
987
1027
  return null;
988
1028
  }
989
- e44() {
1029
+ names_1q9mbs_k$() {
990
1030
  return emptySet();
991
1031
  }
992
- x43() {
1032
+ entries_qbkxv4_k$() {
993
1033
  return emptySet();
994
1034
  }
995
- j1() {
1035
+ isEmpty_y1axqb_k$() {
996
1036
  return true;
997
1037
  }
998
1038
  toString() {
999
- return 'Parameters ' + toString(this.x43());
1039
+ return 'Parameters ' + toString_0(this.entries_qbkxv4_k$());
1000
1040
  }
1001
1041
  equals(other) {
1002
1042
  var tmp;
1003
1043
  if (!(other == null) ? isInterface(other, Parameters) : false) {
1004
- tmp = other.j1();
1044
+ tmp = other.isEmpty_y1axqb_k$();
1005
1045
  } else {
1006
1046
  tmp = false;
1007
1047
  }
@@ -1013,8 +1053,8 @@ class ParametersBuilderImpl extends StringValuesBuilderImpl {
1013
1053
  size = size === VOID ? 8 : size;
1014
1054
  super(true, size);
1015
1055
  }
1016
- y1y() {
1017
- return new ParametersImpl(this.a44_1);
1056
+ build_1k0s4u_k$() {
1057
+ return new ParametersImpl(this.values_1);
1018
1058
  }
1019
1059
  }
1020
1060
  class ParametersImpl extends StringValuesImpl {
@@ -1023,155 +1063,155 @@ class ParametersImpl extends StringValuesImpl {
1023
1063
  super(true, values);
1024
1064
  }
1025
1065
  toString() {
1026
- return 'Parameters ' + toString(this.x43());
1066
+ return 'Parameters ' + toString_0(this.entries_qbkxv4_k$());
1027
1067
  }
1028
1068
  }
1029
- class Companion_6 {
1069
+ class Companion_7 {
1030
1070
  constructor() {
1031
- Companion_instance_6 = this;
1032
- this.q4k_1 = Url_0(get_origin(this));
1033
- this.r4k_1 = 256;
1071
+ Companion_instance_7 = this;
1072
+ this.originUrl_1 = Url_0(get_origin(this));
1073
+ this.INITIAL_CAPACITY_1 = 256;
1034
1074
  }
1035
1075
  }
1036
1076
  class URLBuilder {
1037
1077
  constructor(protocol, host, port, user, password, pathSegments, parameters, fragment, trailingQuery) {
1038
- Companion_getInstance_6();
1078
+ Companion_getInstance_7();
1039
1079
  protocol = protocol === VOID ? null : protocol;
1040
1080
  host = host === VOID ? '' : host;
1041
1081
  port = port === VOID ? 0 : port;
1042
1082
  user = user === VOID ? null : user;
1043
1083
  password = password === VOID ? null : password;
1044
1084
  pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
1045
- parameters = parameters === VOID ? Companion_getInstance_5().h4j_1 : parameters;
1085
+ parameters = parameters === VOID ? Companion_getInstance_6().Empty_1 : parameters;
1046
1086
  fragment = fragment === VOID ? '' : fragment;
1047
1087
  trailingQuery = trailingQuery === VOID ? false : trailingQuery;
1048
- this.k4j_1 = host;
1049
- this.l4j_1 = trailingQuery;
1050
- this.m4j_1 = port;
1051
- this.n4j_1 = protocol;
1088
+ this.host_1 = host;
1089
+ this.trailingQuery_1 = trailingQuery;
1090
+ this.port_1 = port;
1091
+ this.protocolOrNull_1 = protocol;
1052
1092
  var tmp = this;
1053
- tmp.o4j_1 = user == null ? null : encodeURLParameter(user);
1093
+ tmp.encodedUser_1 = user == null ? null : encodeURLParameter(user);
1054
1094
  var tmp_0 = this;
1055
- tmp_0.p4j_1 = password == null ? null : encodeURLParameter(password);
1056
- this.q4j_1 = encodeURLQueryComponent(fragment);
1095
+ tmp_0.encodedPassword_1 = password == null ? null : encodeURLParameter(password);
1096
+ this.encodedFragment_1 = encodeURLQueryComponent(fragment);
1057
1097
  var tmp_1 = this;
1058
1098
  // Inline function 'kotlin.collections.map' call
1059
1099
  // Inline function 'kotlin.collections.mapTo' call
1060
- var destination = ArrayList.d2(collectionSizeOrDefault(pathSegments, 10));
1061
- var _iterator__ex2g4s = pathSegments.l1();
1062
- while (_iterator__ex2g4s.m1()) {
1063
- var item = _iterator__ex2g4s.n1();
1100
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(pathSegments, 10));
1101
+ var _iterator__ex2g4s = pathSegments.iterator_jk1svi_k$();
1102
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1103
+ var item = _iterator__ex2g4s.next_20eer_k$();
1064
1104
  var tmp$ret$2 = encodeURLPathPart(item);
1065
- destination.e2(tmp$ret$2);
1105
+ destination.add_utx5q5_k$(tmp$ret$2);
1066
1106
  }
1067
- tmp_1.r4j_1 = destination;
1068
- this.s4j_1 = encodeParameters(parameters);
1069
- this.t4j_1 = new UrlDecodedParametersBuilder(this.s4j_1);
1107
+ tmp_1.encodedPathSegments_1 = destination;
1108
+ this.encodedParameters_1 = encodeParameters(parameters);
1109
+ this.parameters_1 = new UrlDecodedParametersBuilder(this.encodedParameters_1);
1070
1110
  }
1071
- s4k(value) {
1111
+ set_port_gcpocq_k$(value) {
1072
1112
  // Inline function 'kotlin.require' call
1073
1113
  if (!(0 <= value ? value <= 65535 : false)) {
1074
1114
  var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
1075
- throw IllegalArgumentException.n2(toString(message));
1115
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message));
1076
1116
  }
1077
- this.m4j_1 = value;
1117
+ this.port_1 = value;
1078
1118
  }
1079
- t4k(value) {
1080
- this.n4j_1 = value;
1119
+ set_protocol_4rvp64_k$(value) {
1120
+ this.protocolOrNull_1 = value;
1081
1121
  }
1082
- w4j() {
1083
- var tmp0_elvis_lhs = this.n4j_1;
1084
- return tmp0_elvis_lhs == null ? Companion_getInstance_7().u4k_1 : tmp0_elvis_lhs;
1122
+ get_protocol_mv93kx_k$() {
1123
+ var tmp0_elvis_lhs = this.protocolOrNull_1;
1124
+ return tmp0_elvis_lhs == null ? Companion_getInstance_8().HTTP_1 : tmp0_elvis_lhs;
1085
1125
  }
1086
- a4l(value) {
1126
+ set_user_5x9835_k$(value) {
1087
1127
  var tmp = this;
1088
- tmp.o4j_1 = value == null ? null : encodeURLParameter(value);
1128
+ tmp.encodedUser_1 = value == null ? null : encodeURLParameter(value);
1089
1129
  }
1090
- b4l() {
1091
- var tmp0_safe_receiver = this.o4j_1;
1130
+ get_user_wovspg_k$() {
1131
+ var tmp0_safe_receiver = this.encodedUser_1;
1092
1132
  return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
1093
1133
  }
1094
- c4l() {
1095
- var tmp0_safe_receiver = this.p4j_1;
1134
+ get_password_bodifw_k$() {
1135
+ var tmp0_safe_receiver = this.encodedPassword_1;
1096
1136
  return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
1097
1137
  }
1098
- d4l() {
1099
- return decodeURLQueryComponent(this.q4j_1);
1138
+ get_fragment_bxnb4p_k$() {
1139
+ return decodeURLQueryComponent(this.encodedFragment_1);
1100
1140
  }
1101
- e4l() {
1141
+ get_pathSegments_2e2s6m_k$() {
1102
1142
  // Inline function 'kotlin.collections.map' call
1103
- var this_0 = this.r4j_1;
1143
+ var this_0 = this.encodedPathSegments_1;
1104
1144
  // Inline function 'kotlin.collections.mapTo' call
1105
- var destination = ArrayList.d2(collectionSizeOrDefault(this_0, 10));
1106
- var _iterator__ex2g4s = this_0.l1();
1107
- while (_iterator__ex2g4s.m1()) {
1108
- var item = _iterator__ex2g4s.n1();
1145
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(this_0, 10));
1146
+ var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
1147
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1148
+ var item = _iterator__ex2g4s.next_20eer_k$();
1109
1149
  var tmp$ret$2 = decodeURLPart(item);
1110
- destination.e2(tmp$ret$2);
1150
+ destination.add_utx5q5_k$(tmp$ret$2);
1111
1151
  }
1112
1152
  return destination;
1113
1153
  }
1114
- f4l(value) {
1115
- this.s4j_1 = value;
1116
- this.t4j_1 = new UrlDecodedParametersBuilder(value);
1154
+ set_encodedParameters_t3ck1r_k$(value) {
1155
+ this.encodedParameters_1 = value;
1156
+ this.parameters_1 = new UrlDecodedParametersBuilder(value);
1117
1157
  }
1118
- g4l() {
1158
+ buildString_xr87oh_k$() {
1119
1159
  applyOrigin(this);
1120
- return appendTo(this, StringBuilder.ec(256)).toString();
1160
+ return appendTo(this, StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(256)).toString();
1121
1161
  }
1122
1162
  toString() {
1123
- return appendTo(this, StringBuilder.ec(256)).toString();
1163
+ return appendTo(this, StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(256)).toString();
1124
1164
  }
1125
- y1y() {
1165
+ build_1k0s4u_k$() {
1126
1166
  applyOrigin(this);
1127
- return new Url(this.n4j_1, this.k4j_1, this.m4j_1, this.e4l(), this.t4j_1.y1y(), this.d4l(), this.b4l(), this.c4l(), this.l4j_1, this.g4l());
1167
+ return new Url(this.protocolOrNull_1, this.host_1, this.port_1, this.get_pathSegments_2e2s6m_k$(), this.parameters_1.build_1k0s4u_k$(), this.get_fragment_bxnb4p_k$(), this.get_user_wovspg_k$(), this.get_password_bodifw_k$(), this.trailingQuery_1, this.buildString_xr87oh_k$());
1128
1168
  }
1129
1169
  }
1130
1170
  class URLParserException extends IllegalStateException {
1131
1171
  constructor(urlString, cause) {
1132
- return new.target.l4l(urlString, cause);
1172
+ return new.target.new_io_ktor_http_URLParserException_eshv3g_k$(urlString, cause);
1133
1173
  }
1134
- static l4l(urlString, cause) {
1135
- var $this = this.q('Fail to parse url: ' + urlString, cause);
1136
- captureStack($this, $this.k4l_1);
1174
+ static new_io_ktor_http_URLParserException_eshv3g_k$(urlString, cause) {
1175
+ var $this = this.new_kotlin_IllegalStateException_z3fz2g_k$('Fail to parse url: ' + urlString, cause);
1176
+ captureStack($this, $this.$throwableCtor_4);
1137
1177
  return $this;
1138
1178
  }
1139
1179
  }
1140
- class Companion_7 {
1180
+ class Companion_8 {
1141
1181
  constructor() {
1142
- Companion_instance_7 = this;
1143
- this.u4k_1 = new URLProtocol('http', 80);
1144
- this.v4k_1 = new URLProtocol('https', 443);
1145
- this.w4k_1 = new URLProtocol('ws', 80);
1146
- this.x4k_1 = new URLProtocol('wss', 443);
1147
- this.y4k_1 = new URLProtocol('socks', 1080);
1182
+ Companion_instance_8 = this;
1183
+ this.HTTP_1 = new URLProtocol('http', 80);
1184
+ this.HTTPS_1 = new URLProtocol('https', 443);
1185
+ this.WS_1 = new URLProtocol('ws', 80);
1186
+ this.WSS_1 = new URLProtocol('wss', 443);
1187
+ this.SOCKS_1 = new URLProtocol('socks', 1080);
1148
1188
  var tmp = this;
1149
1189
  // Inline function 'kotlin.collections.associateBy' call
1150
- var this_0 = listOf([this.u4k_1, this.v4k_1, this.w4k_1, this.x4k_1, this.y4k_1]);
1190
+ var this_0 = listOf_0([this.HTTP_1, this.HTTPS_1, this.WS_1, this.WSS_1, this.SOCKS_1]);
1151
1191
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
1152
1192
  // Inline function 'kotlin.collections.associateByTo' call
1153
- var destination = LinkedHashMap.ic(capacity);
1154
- var _iterator__ex2g4s = this_0.l1();
1155
- while (_iterator__ex2g4s.m1()) {
1156
- var element = _iterator__ex2g4s.n1();
1157
- var tmp$ret$2 = element.u4j_1;
1158
- destination.g4(tmp$ret$2, element);
1193
+ var destination = LinkedHashMap.new_kotlin_collections_LinkedHashMap_31p40q_k$(capacity);
1194
+ var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
1195
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1196
+ var element = _iterator__ex2g4s.next_20eer_k$();
1197
+ var tmp$ret$2 = element.name_1;
1198
+ destination.put_4fpzoq_k$(tmp$ret$2, element);
1159
1199
  }
1160
- tmp.z4k_1 = destination;
1200
+ tmp.byName_1 = destination;
1161
1201
  }
1162
- m4l(name) {
1202
+ createOrDefault_lkipzc_k$(name) {
1163
1203
  // Inline function 'kotlin.let' call
1164
1204
  var it = toLowerCasePreservingASCIIRules(name);
1165
- var tmp0_elvis_lhs = Companion_getInstance_7().z4k_1.o4(it);
1205
+ var tmp0_elvis_lhs = Companion_getInstance_8().byName_1.get_wei43m_k$(it);
1166
1206
  return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
1167
1207
  }
1168
1208
  }
1169
1209
  class URLProtocol {
1170
1210
  constructor(name, defaultPort) {
1171
- Companion_getInstance_7();
1172
- this.u4j_1 = name;
1173
- this.v4j_1 = defaultPort;
1174
- var tmp0 = this.u4j_1;
1211
+ Companion_getInstance_8();
1212
+ this.name_1 = name;
1213
+ this.defaultPort_1 = defaultPort;
1214
+ var tmp0 = this.name_1;
1175
1215
  var tmp$ret$0;
1176
1216
  $l$block: {
1177
1217
  // Inline function 'kotlin.text.all' call
@@ -1189,15 +1229,15 @@ class URLProtocol {
1189
1229
  // Inline function 'kotlin.require' call
1190
1230
  if (!tmp$ret$0) {
1191
1231
  var message = 'All characters should be lower case';
1192
- throw IllegalArgumentException.n2(toString(message));
1232
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message));
1193
1233
  }
1194
1234
  }
1195
1235
  toString() {
1196
- return 'URLProtocol(name=' + this.u4j_1 + ', defaultPort=' + this.v4j_1 + ')';
1236
+ return 'URLProtocol(name=' + this.name_1 + ', defaultPort=' + this.defaultPort_1 + ')';
1197
1237
  }
1198
1238
  hashCode() {
1199
- var result = getStringHashCode(this.u4j_1);
1200
- result = imul(result, 31) + this.v4j_1 | 0;
1239
+ var result = getStringHashCode(this.name_1);
1240
+ result = imul(result, 31) + this.defaultPort_1 | 0;
1201
1241
  return result;
1202
1242
  }
1203
1243
  equals(other) {
@@ -1205,54 +1245,54 @@ class URLProtocol {
1205
1245
  return true;
1206
1246
  if (!(other instanceof URLProtocol))
1207
1247
  return false;
1208
- if (!(this.u4j_1 === other.u4j_1))
1248
+ if (!(this.name_1 === other.name_1))
1209
1249
  return false;
1210
- if (!(this.v4j_1 === other.v4j_1))
1250
+ if (!(this.defaultPort_1 === other.defaultPort_1))
1211
1251
  return false;
1212
1252
  return true;
1213
1253
  }
1214
1254
  }
1215
- class Companion_8 {}
1255
+ class Companion_9 {}
1216
1256
  class Url {
1217
1257
  constructor(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
1218
- this.x4j_1 = host;
1219
- this.y4j_1 = specifiedPort;
1220
- this.z4j_1 = parameters;
1221
- this.a4k_1 = fragment;
1222
- this.b4k_1 = user;
1223
- this.c4k_1 = password;
1224
- this.d4k_1 = trailingQuery;
1225
- this.e4k_1 = urlString;
1226
- var containsArg = this.y4j_1;
1258
+ this.host_1 = host;
1259
+ this.specifiedPort_1 = specifiedPort;
1260
+ this.parameters_1 = parameters;
1261
+ this.fragment_1 = fragment;
1262
+ this.user_1 = user;
1263
+ this.password_1 = password;
1264
+ this.trailingQuery_1 = trailingQuery;
1265
+ this.urlString_1 = urlString;
1266
+ var containsArg = this.specifiedPort_1;
1227
1267
  // Inline function 'kotlin.require' call
1228
1268
  if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
1229
- var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.y4j_1;
1230
- throw IllegalArgumentException.n2(toString(message));
1269
+ var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.specifiedPort_1;
1270
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message));
1231
1271
  }
1232
- this.f4k_1 = pathSegments;
1233
- this.g4k_1 = pathSegments;
1272
+ this.pathSegments_1 = pathSegments;
1273
+ this.rawSegments_1 = pathSegments;
1234
1274
  var tmp = this;
1235
- tmp.h4k_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
1236
- this.i4k_1 = protocol;
1275
+ tmp.segments$delegate_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
1276
+ this.protocolOrNull_1 = protocol;
1237
1277
  var tmp_0 = this;
1238
- var tmp0_elvis_lhs = this.i4k_1;
1239
- tmp_0.j4k_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().u4k_1 : tmp0_elvis_lhs;
1278
+ var tmp0_elvis_lhs = this.protocolOrNull_1;
1279
+ tmp_0.protocol_1 = tmp0_elvis_lhs == null ? Companion_getInstance_8().HTTP_1 : tmp0_elvis_lhs;
1240
1280
  var tmp_1 = this;
1241
- tmp_1.k4k_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
1281
+ tmp_1.encodedPath$delegate_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
1242
1282
  var tmp_2 = this;
1243
- tmp_2.l4k_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
1283
+ tmp_2.encodedQuery$delegate_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
1244
1284
  var tmp_3 = this;
1245
- tmp_3.m4k_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
1285
+ tmp_3.encodedPathAndQuery$delegate_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
1246
1286
  var tmp_4 = this;
1247
- tmp_4.n4k_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
1287
+ tmp_4.encodedUser$delegate_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
1248
1288
  var tmp_5 = this;
1249
- tmp_5.o4k_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
1289
+ tmp_5.encodedPassword$delegate_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
1250
1290
  var tmp_6 = this;
1251
- tmp_6.p4k_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
1291
+ tmp_6.encodedFragment$delegate_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
1252
1292
  }
1253
- n4l() {
1293
+ get_port_wosj4a_k$() {
1254
1294
  // Inline function 'kotlin.takeUnless' call
1255
- var this_0 = this.y4j_1;
1295
+ var this_0 = this.specifiedPort_1;
1256
1296
  var tmp;
1257
1297
  if (!(this_0 === 0)) {
1258
1298
  tmp = this_0;
@@ -1260,24 +1300,24 @@ class Url {
1260
1300
  tmp = null;
1261
1301
  }
1262
1302
  var tmp0_elvis_lhs = tmp;
1263
- return tmp0_elvis_lhs == null ? this.j4k_1.v4j_1 : tmp0_elvis_lhs;
1303
+ return tmp0_elvis_lhs == null ? this.protocol_1.defaultPort_1 : tmp0_elvis_lhs;
1264
1304
  }
1265
- o4l() {
1266
- var tmp0 = this.n4k_1;
1305
+ get_encodedUser_p9wcq8_k$() {
1306
+ var tmp0 = this.encodedUser$delegate_1;
1267
1307
  var tmp = KProperty1;
1268
1308
  // Inline function 'kotlin.getValue' call
1269
1309
  getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
1270
- return tmp0.b3();
1310
+ return tmp0.get_value_j01efc_k$();
1271
1311
  }
1272
- p4l() {
1273
- var tmp0 = this.o4k_1;
1312
+ get_encodedPassword_rswp28_k$() {
1313
+ var tmp0 = this.encodedPassword$delegate_1;
1274
1314
  var tmp = KProperty1;
1275
1315
  // Inline function 'kotlin.getValue' call
1276
1316
  getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
1277
- return tmp0.b3();
1317
+ return tmp0.get_value_j01efc_k$();
1278
1318
  }
1279
1319
  toString() {
1280
- return this.e4k_1;
1320
+ return this.urlString_1;
1281
1321
  }
1282
1322
  equals(other) {
1283
1323
  if (this === other)
@@ -1286,112 +1326,112 @@ class Url {
1286
1326
  return false;
1287
1327
  if (!(other instanceof Url))
1288
1328
  THROW_CCE();
1289
- return this.e4k_1 === other.e4k_1;
1329
+ return this.urlString_1 === other.urlString_1;
1290
1330
  }
1291
1331
  hashCode() {
1292
- return getStringHashCode(this.e4k_1);
1332
+ return getStringHashCode(this.urlString_1);
1293
1333
  }
1294
1334
  }
1295
1335
  class UrlSerializer {
1296
1336
  constructor() {
1297
1337
  UrlSerializer_instance = this;
1298
- this.q4l_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
1338
+ this.descriptor_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
1299
1339
  }
1300
- pu() {
1301
- return this.q4l_1;
1340
+ get_descriptor_wjt6a0_k$() {
1341
+ return this.descriptor_1;
1302
1342
  }
1303
- ru(decoder) {
1304
- return Url_0(decoder.zy());
1343
+ deserialize_sy6x50_k$(decoder) {
1344
+ return Url_0(decoder.decodeString_x3hxsx_k$());
1305
1345
  }
1306
- r4l(encoder, value) {
1307
- encoder.i10(value.toString());
1346
+ serialize_30km78_k$(encoder, value) {
1347
+ encoder.encodeString_424b5v_k$(value.toString());
1308
1348
  }
1309
- qu(encoder, value) {
1310
- return this.r4l(encoder, value instanceof Url ? value : THROW_CCE());
1349
+ serialize_5ase3y_k$(encoder, value) {
1350
+ return this.serialize_30km78_k$(encoder, value instanceof Url ? value : THROW_CCE());
1311
1351
  }
1312
1352
  }
1313
1353
  class UrlDecodedParametersBuilder {
1314
1354
  constructor(encodedParametersBuilder) {
1315
- this.s4l_1 = encodedParametersBuilder;
1316
- this.t4l_1 = this.s4l_1.c44();
1355
+ this.encodedParametersBuilder_1 = encodedParametersBuilder;
1356
+ this.caseInsensitiveName_1 = this.encodedParametersBuilder_1.get_caseInsensitiveName_ehooe5_k$();
1317
1357
  }
1318
- y1y() {
1319
- return decodeParameters(this.s4l_1);
1358
+ build_1k0s4u_k$() {
1359
+ return decodeParameters(this.encodedParametersBuilder_1);
1320
1360
  }
1321
- c44() {
1322
- return this.t4l_1;
1361
+ get_caseInsensitiveName_ehooe5_k$() {
1362
+ return this.caseInsensitiveName_1;
1323
1363
  }
1324
- d44(name) {
1325
- var tmp0_safe_receiver = this.s4l_1.d44(encodeURLParameter(name));
1364
+ getAll_ffxf4h_k$(name) {
1365
+ var tmp0_safe_receiver = this.encodedParametersBuilder_1.getAll_ffxf4h_k$(encodeURLParameter(name));
1326
1366
  var tmp;
1327
1367
  if (tmp0_safe_receiver == null) {
1328
1368
  tmp = null;
1329
1369
  } else {
1330
1370
  // Inline function 'kotlin.collections.map' call
1331
1371
  // Inline function 'kotlin.collections.mapTo' call
1332
- var destination = ArrayList.d2(collectionSizeOrDefault(tmp0_safe_receiver, 10));
1333
- var _iterator__ex2g4s = tmp0_safe_receiver.l1();
1334
- while (_iterator__ex2g4s.m1()) {
1335
- var item = _iterator__ex2g4s.n1();
1372
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
1373
+ var _iterator__ex2g4s = tmp0_safe_receiver.iterator_jk1svi_k$();
1374
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1375
+ var item = _iterator__ex2g4s.next_20eer_k$();
1336
1376
  var tmp$ret$2 = decodeURLQueryComponent(item, VOID, VOID, true);
1337
- destination.e2(tmp$ret$2);
1377
+ destination.add_utx5q5_k$(tmp$ret$2);
1338
1378
  }
1339
1379
  tmp = destination;
1340
1380
  }
1341
1381
  return tmp;
1342
1382
  }
1343
- e44() {
1383
+ names_1q9mbs_k$() {
1344
1384
  // Inline function 'kotlin.collections.map' call
1345
- var this_0 = this.s4l_1.e44();
1385
+ var this_0 = this.encodedParametersBuilder_1.names_1q9mbs_k$();
1346
1386
  // Inline function 'kotlin.collections.mapTo' call
1347
- var destination = ArrayList.d2(collectionSizeOrDefault(this_0, 10));
1348
- var _iterator__ex2g4s = this_0.l1();
1349
- while (_iterator__ex2g4s.m1()) {
1350
- var item = _iterator__ex2g4s.n1();
1387
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(this_0, 10));
1388
+ var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
1389
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1390
+ var item = _iterator__ex2g4s.next_20eer_k$();
1351
1391
  var tmp$ret$2 = decodeURLQueryComponent(item);
1352
- destination.e2(tmp$ret$2);
1392
+ destination.add_utx5q5_k$(tmp$ret$2);
1353
1393
  }
1354
1394
  return toSet(destination);
1355
1395
  }
1356
- j1() {
1357
- return this.s4l_1.j1();
1396
+ isEmpty_y1axqb_k$() {
1397
+ return this.encodedParametersBuilder_1.isEmpty_y1axqb_k$();
1358
1398
  }
1359
- x43() {
1360
- return decodeParameters(this.s4l_1).x43();
1399
+ entries_qbkxv4_k$() {
1400
+ return decodeParameters(this.encodedParametersBuilder_1).entries_qbkxv4_k$();
1361
1401
  }
1362
- h44(name, value) {
1363
- return this.s4l_1.h44(encodeURLParameter(name), encodeURLParameterValue(value));
1402
+ append_rhug0a_k$(name, value) {
1403
+ return this.encodedParametersBuilder_1.append_rhug0a_k$(encodeURLParameter(name), encodeURLParameterValue(value));
1364
1404
  }
1365
- y43(name, values) {
1405
+ appendAll_ytnfgb_k$(name, values) {
1366
1406
  var tmp = encodeURLParameter(name);
1367
1407
  // Inline function 'kotlin.collections.map' call
1368
1408
  // Inline function 'kotlin.collections.mapTo' call
1369
- var destination = ArrayList.d2(collectionSizeOrDefault(values, 10));
1370
- var _iterator__ex2g4s = values.l1();
1371
- while (_iterator__ex2g4s.m1()) {
1372
- var item = _iterator__ex2g4s.n1();
1409
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(values, 10));
1410
+ var _iterator__ex2g4s = values.iterator_jk1svi_k$();
1411
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1412
+ var item = _iterator__ex2g4s.next_20eer_k$();
1373
1413
  var tmp$ret$2 = encodeURLParameterValue(item);
1374
- destination.e2(tmp$ret$2);
1414
+ destination.add_utx5q5_k$(tmp$ret$2);
1375
1415
  }
1376
- return this.s4l_1.y43(tmp, destination);
1416
+ return this.encodedParametersBuilder_1.appendAll_ytnfgb_k$(tmp, destination);
1377
1417
  }
1378
- j4() {
1379
- return this.s4l_1.j4();
1418
+ clear_j9egeb_k$() {
1419
+ return this.encodedParametersBuilder_1.clear_j9egeb_k$();
1380
1420
  }
1381
1421
  }
1382
1422
  class OutgoingContent {
1383
1423
  constructor($box) {
1384
1424
  boxApply(this, $box);
1385
- this.b4m_1 = null;
1425
+ this.extensionProperties_1 = null;
1386
1426
  }
1387
- y4l() {
1427
+ get_contentType_7git4a_k$() {
1388
1428
  return null;
1389
1429
  }
1390
- z4l() {
1430
+ get_contentLength_a5o8yy_k$() {
1391
1431
  return null;
1392
1432
  }
1393
- g4g() {
1394
- return Companion_getInstance_1().l4f_1;
1433
+ get_headers_ef25jx_k$() {
1434
+ return Companion_getInstance_2().Empty_1;
1395
1435
  }
1396
1436
  }
1397
1437
  class ByteArrayContent extends OutgoingContent {}
@@ -1400,18 +1440,18 @@ class ByteArrayContent_0 extends ByteArrayContent {
1400
1440
  contentType = contentType === VOID ? null : contentType;
1401
1441
  status = status === VOID ? null : status;
1402
1442
  super();
1403
- this.v4l_1 = bytes;
1404
- this.w4l_1 = contentType;
1405
- this.x4l_1 = status;
1443
+ this.bytes_1 = bytes;
1444
+ this.contentType_1 = contentType;
1445
+ this.status_1 = status;
1406
1446
  }
1407
- y4l() {
1408
- return this.w4l_1;
1447
+ get_contentType_7git4a_k$() {
1448
+ return this.contentType_1;
1409
1449
  }
1410
- z4l() {
1411
- return fromInt(this.v4l_1.length);
1450
+ get_contentLength_a5o8yy_k$() {
1451
+ return fromInt(this.bytes_1.length);
1412
1452
  }
1413
- a4m() {
1414
- return this.v4l_1;
1453
+ bytes_1k3k2z_k$() {
1454
+ return this.bytes_1;
1415
1455
  }
1416
1456
  }
1417
1457
  class MultiPartData {}
@@ -1420,8 +1460,8 @@ class ReadChannelContent extends OutgoingContent {}
1420
1460
  class WriteChannelContent extends OutgoingContent {}
1421
1461
  class ProtocolUpgrade extends OutgoingContent {}
1422
1462
  class ContentWrapper extends OutgoingContent {
1423
- j4m() {
1424
- return this.i4m_1;
1463
+ delegate_djsx39_k$() {
1464
+ return this.delegate_1;
1425
1465
  }
1426
1466
  }
1427
1467
  class NullBody {}
@@ -1429,37 +1469,42 @@ class TextContent extends ByteArrayContent {
1429
1469
  constructor(text, contentType, status) {
1430
1470
  status = status === VOID ? null : status;
1431
1471
  super();
1432
- this.l4m_1 = text;
1433
- this.m4m_1 = contentType;
1434
- this.n4m_1 = status;
1472
+ this.text_1 = text;
1473
+ this.contentType_1 = contentType;
1474
+ this.status_1 = status;
1435
1475
  var tmp = this;
1436
- var tmp0_elvis_lhs = charset(this.m4m_1);
1437
- tmp.o4m_1 = toByteArray(this.l4m_1, tmp0_elvis_lhs == null ? Charsets_getInstance().o40_1 : tmp0_elvis_lhs);
1476
+ var tmp0_elvis_lhs = charset(this.contentType_1);
1477
+ tmp.bytes_1 = toByteArray(this.text_1, tmp0_elvis_lhs == null ? Charsets_getInstance().UTF_8__1 : tmp0_elvis_lhs);
1438
1478
  }
1439
- y4l() {
1440
- return this.m4m_1;
1479
+ get_contentType_7git4a_k$() {
1480
+ return this.contentType_1;
1441
1481
  }
1442
- z4l() {
1443
- return fromInt(this.o4m_1.length);
1482
+ get_contentLength_a5o8yy_k$() {
1483
+ return fromInt(this.bytes_1.length);
1444
1484
  }
1445
- a4m() {
1446
- return this.o4m_1;
1485
+ bytes_1k3k2z_k$() {
1486
+ return this.bytes_1;
1447
1487
  }
1448
1488
  toString() {
1449
- return 'TextContent[' + this.m4m_1.toString() + '] "' + take(this.l4m_1, 30) + '"';
1489
+ return 'TextContent[' + this.contentType_1.toString() + '] "' + take(this.text_1, 30) + '"';
1450
1490
  }
1451
1491
  }
1452
1492
  //endregion
1493
+ function containsCode($this, code) {
1494
+ if (!((code >>> 7 | 0) === 0))
1495
+ return false;
1496
+ var bits = code < 64 ? $this.low_1 : $this.high_1;
1497
+ return (shiftRightUnsigned(bits, code) & 1n) === 1n;
1498
+ }
1499
+ var Companion_instance;
1500
+ function Companion_getInstance() {
1501
+ return Companion_instance;
1502
+ }
1453
1503
  function get_URL_ALPHABET() {
1454
1504
  _init_properties_Codecs_kt__fudxxf();
1455
1505
  return URL_ALPHABET;
1456
1506
  }
1457
1507
  var URL_ALPHABET;
1458
- function get_URL_ALPHABET_CHARS() {
1459
- _init_properties_Codecs_kt__fudxxf();
1460
- return URL_ALPHABET_CHARS;
1461
- }
1462
- var URL_ALPHABET_CHARS;
1463
1508
  function get_HEX_ALPHABET() {
1464
1509
  _init_properties_Codecs_kt__fudxxf();
1465
1510
  return HEX_ALPHABET;
@@ -1476,45 +1521,103 @@ function get_VALID_PATH_PART() {
1476
1521
  }
1477
1522
  var VALID_PATH_PART;
1478
1523
  var ATTRIBUTE_CHARACTERS;
1479
- function get_SPECIAL_SYMBOLS() {
1524
+ function get_URL_PARAMETER_CHARS() {
1480
1525
  _init_properties_Codecs_kt__fudxxf();
1481
- return SPECIAL_SYMBOLS;
1526
+ return URL_PARAMETER_CHARS;
1482
1527
  }
1483
- var SPECIAL_SYMBOLS;
1528
+ var URL_PARAMETER_CHARS;
1484
1529
  function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
1485
1530
  spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
1486
1531
  _init_properties_Codecs_kt__fudxxf();
1532
+ var content = toByteArray(_this__u8e3s4, Charsets_getInstance().UTF_8__1);
1487
1533
  // Inline function 'kotlin.text.buildString' call
1534
+ var capacity = content.length;
1488
1535
  // Inline function 'kotlin.apply' call
1489
- var this_0 = StringBuilder.h1();
1490
- var content = encode(Charsets_getInstance().o40_1.s40(), _this__u8e3s4);
1491
- forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
1536
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(capacity);
1537
+ var inductionVariable = 0;
1538
+ var last = content.length;
1539
+ while (inductionVariable < last) {
1540
+ var byte = content[inductionVariable];
1541
+ inductionVariable = inductionVariable + 1 | 0;
1542
+ if (get_URL_PARAMETER_CHARS().contains_y9oc0p_k$(byte))
1543
+ this_0.append_58al37_k$(numberToChar(byte));
1544
+ else {
1545
+ var tmp;
1546
+ if (spaceToPlus) {
1547
+ var tmp_0 = byte;
1548
+ // Inline function 'kotlin.code' call
1549
+ var this_1 = _Char___init__impl__6a9atx(32);
1550
+ var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
1551
+ tmp = tmp_0 === toByte(tmp$ret$3);
1552
+ } else {
1553
+ tmp = false;
1554
+ }
1555
+ if (tmp)
1556
+ this_0.append_58al37_k$(_Char___init__impl__6a9atx(43));
1557
+ else {
1558
+ appendPercentEncoded(this_0, byte);
1559
+ }
1560
+ }
1561
+ }
1492
1562
  return this_0.toString();
1493
1563
  }
1564
+ function appendPercentEncoded(_this__u8e3s4, byte) {
1565
+ _init_properties_Codecs_kt__fudxxf();
1566
+ var code = byte & 255;
1567
+ _this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(37));
1568
+ _this__u8e3s4.append_58al37_k$(hexDigitToChar(code >> 4));
1569
+ _this__u8e3s4.append_58al37_k$(hexDigitToChar(code & 15));
1570
+ }
1571
+ function hexDigitToChar(digit) {
1572
+ _init_properties_Codecs_kt__fudxxf();
1573
+ return (0 <= digit ? digit <= 9 : false) ? Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(48), digit) : Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(65), digit), 10);
1574
+ }
1494
1575
  function decodeURLPart(_this__u8e3s4, start, end, charset) {
1495
1576
  start = start === VOID ? 0 : start;
1496
1577
  end = end === VOID ? _this__u8e3s4.length : end;
1497
- charset = charset === VOID ? Charsets_getInstance().o40_1 : charset;
1578
+ charset = charset === VOID ? Charsets_getInstance().UTF_8__1 : charset;
1498
1579
  _init_properties_Codecs_kt__fudxxf();
1499
1580
  return decodeScan(_this__u8e3s4, start, end, false, charset);
1500
1581
  }
1501
1582
  function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
1502
1583
  encodeFull = encodeFull === VOID ? false : encodeFull;
1503
1584
  spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
1504
- charset = charset === VOID ? Charsets_getInstance().o40_1 : charset;
1585
+ charset = charset === VOID ? Charsets_getInstance().UTF_8__1 : charset;
1505
1586
  _init_properties_Codecs_kt__fudxxf();
1587
+ var content = toByteArray(_this__u8e3s4, charset);
1506
1588
  // Inline function 'kotlin.text.buildString' call
1589
+ var capacity = content.length;
1507
1590
  // Inline function 'kotlin.apply' call
1508
- var this_0 = StringBuilder.h1();
1509
- var content = encode(charset.s40(), _this__u8e3s4);
1510
- forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
1591
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(capacity);
1592
+ var inductionVariable = 0;
1593
+ var last = content.length;
1594
+ while (inductionVariable < last) {
1595
+ var byte = content[inductionVariable];
1596
+ inductionVariable = inductionVariable + 1 | 0;
1597
+ var tmp = byte;
1598
+ // Inline function 'kotlin.code' call
1599
+ var this_1 = _Char___init__impl__6a9atx(32);
1600
+ var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
1601
+ if (tmp === toByte(tmp$ret$3))
1602
+ if (spaceToPlus)
1603
+ this_0.append_58al37_k$(_Char___init__impl__6a9atx(43));
1604
+ else
1605
+ this_0.append_22ad7x_k$('%20');
1606
+ else {
1607
+ if (get_URL_ALPHABET().contains_y9oc0p_k$(byte) || (!encodeFull && get_URL_PROTOCOL_PART().contains_y9oc0p_k$(byte)))
1608
+ this_0.append_58al37_k$(numberToChar(byte));
1609
+ else {
1610
+ appendPercentEncoded(this_0, byte);
1611
+ }
1612
+ }
1613
+ }
1511
1614
  return this_0.toString();
1512
1615
  }
1513
1616
  function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset) {
1514
1617
  start = start === VOID ? 0 : start;
1515
1618
  end = end === VOID ? _this__u8e3s4.length : end;
1516
1619
  plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
1517
- charset = charset === VOID ? Charsets_getInstance().o40_1 : charset;
1620
+ charset = charset === VOID ? Charsets_getInstance().UTF_8__1 : charset;
1518
1621
  _init_properties_Codecs_kt__fudxxf();
1519
1622
  return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
1520
1623
  }
@@ -1522,26 +1625,47 @@ function encodeURLPathPart(_this__u8e3s4) {
1522
1625
  _init_properties_Codecs_kt__fudxxf();
1523
1626
  return encodeURLPath(_this__u8e3s4, true);
1524
1627
  }
1525
- function encodeURLParameterValue(_this__u8e3s4) {
1526
- _init_properties_Codecs_kt__fudxxf();
1527
- return encodeURLParameter(_this__u8e3s4, true);
1528
- }
1529
- function hexDigitToChar(digit) {
1530
- _init_properties_Codecs_kt__fudxxf();
1531
- return (0 <= digit ? digit <= 9 : false) ? Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(48), digit) : Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(65), digit), 10);
1532
- }
1533
- function forEach_0(_this__u8e3s4, block) {
1628
+ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
1629
+ encodeSlash = encodeSlash === VOID ? false : encodeSlash;
1630
+ encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
1534
1631
  _init_properties_Codecs_kt__fudxxf();
1535
- takeWhile(_this__u8e3s4, forEach$lambda(block));
1632
+ // Inline function 'kotlin.text.buildString' call
1633
+ // Inline function 'kotlin.apply' call
1634
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
1635
+ var charset = Charsets_getInstance().UTF_8__1;
1636
+ var index = 0;
1637
+ $l$loop_1: while (index < _this__u8e3s4.length) {
1638
+ var current = charCodeAt(_this__u8e3s4, index);
1639
+ if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET().contains_egozq6_k$(current) || get_VALID_PATH_PART().contains_egozq6_k$(current)) {
1640
+ this_0.append_58al37_k$(current);
1641
+ index = index + 1 | 0;
1642
+ continue $l$loop_1;
1643
+ }
1644
+ if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().contains_egozq6_k$(charCodeAt(_this__u8e3s4, index + 1 | 0)) && get_HEX_ALPHABET().contains_egozq6_k$(charCodeAt(_this__u8e3s4, index + 2 | 0))) {
1645
+ this_0.append_58al37_k$(current);
1646
+ this_0.append_58al37_k$(charCodeAt(_this__u8e3s4, index + 1 | 0));
1647
+ this_0.append_58al37_k$(charCodeAt(_this__u8e3s4, index + 2 | 0));
1648
+ index = index + 3 | 0;
1649
+ continue $l$loop_1;
1650
+ }
1651
+ // Inline function 'kotlin.code' call
1652
+ if (Char__toInt_impl_vasixd(current) < 128) {
1653
+ // Inline function 'kotlin.code' call
1654
+ var tmp$ret$4 = Char__toInt_impl_vasixd(current);
1655
+ appendPercentEncoded(this_0, toByte(tmp$ret$4));
1656
+ index = index + 1 | 0;
1657
+ continue $l$loop_1;
1658
+ }
1659
+ var symbolSize = isSurrogate(current) ? 2 : 1;
1660
+ var tmp = encode(charset.newEncoder_gqwcdg_k$(), _this__u8e3s4, index, index + symbolSize | 0);
1661
+ forEach_0(tmp, encodeURLPath$lambda(this_0));
1662
+ index = index + symbolSize | 0;
1663
+ }
1664
+ return this_0.toString();
1536
1665
  }
1537
- function percentEncode(_this__u8e3s4) {
1666
+ function encodeURLParameterValue(_this__u8e3s4) {
1538
1667
  _init_properties_Codecs_kt__fudxxf();
1539
- var code = _this__u8e3s4 & 255;
1540
- var array = charArray(3);
1541
- array[0] = _Char___init__impl__6a9atx(37);
1542
- array[1] = hexDigitToChar(code >> 4);
1543
- array[2] = hexDigitToChar(code & 15);
1544
- return concatToString(array);
1668
+ return encodeURLParameter(_this__u8e3s4, true);
1545
1669
  }
1546
1670
  function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
1547
1671
  _init_properties_Codecs_kt__fudxxf();
@@ -1556,52 +1680,26 @@ function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
1556
1680
  }
1557
1681
  }
1558
1682
  while (inductionVariable < end);
1559
- return start === 0 && end === _this__u8e3s4.length ? toString(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
1683
+ return start === 0 && end === _this__u8e3s4.length ? toString_0(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
1560
1684
  }
1561
- function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
1562
- encodeSlash = encodeSlash === VOID ? false : encodeSlash;
1563
- encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
1685
+ function forEach_0(_this__u8e3s4, block) {
1564
1686
  _init_properties_Codecs_kt__fudxxf();
1565
- // Inline function 'kotlin.text.buildString' call
1566
- // Inline function 'kotlin.apply' call
1567
- var this_0 = StringBuilder.h1();
1568
- var charset = Charsets_getInstance().o40_1;
1569
- var index = 0;
1570
- $l$loop_0: while (index < _this__u8e3s4.length) {
1571
- var current = charCodeAt(_this__u8e3s4, index);
1572
- if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().j3(new Char(current)) || get_VALID_PATH_PART().j3(new Char(current))) {
1573
- this_0.k1(current);
1574
- index = index + 1 | 0;
1575
- continue $l$loop_0;
1576
- }
1577
- if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().j3(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().j3(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
1578
- this_0.k1(current);
1579
- this_0.k1(charCodeAt(_this__u8e3s4, index + 1 | 0));
1580
- this_0.k1(charCodeAt(_this__u8e3s4, index + 2 | 0));
1581
- index = index + 3 | 0;
1582
- continue $l$loop_0;
1583
- }
1584
- var symbolSize = isSurrogate(current) ? 2 : 1;
1585
- var tmp = encode(charset.s40(), _this__u8e3s4, index, index + symbolSize | 0);
1586
- forEach_0(tmp, encodeURLPath$lambda(this_0));
1587
- index = index + symbolSize | 0;
1588
- }
1589
- return this_0.toString();
1687
+ takeWhile(_this__u8e3s4, forEach$lambda(block));
1590
1688
  }
1591
1689
  function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset) {
1592
1690
  _init_properties_Codecs_kt__fudxxf();
1593
1691
  var length = end - start | 0;
1594
1692
  var sbSize = length > 255 ? length / 3 | 0 : length;
1595
- var sb = StringBuilder.ec(sbSize);
1693
+ var sb = StringBuilder.new_kotlin_text_StringBuilder_wcb3z_k$(sbSize);
1596
1694
  if (prefixEnd > start) {
1597
- sb.xg(_this__u8e3s4, start, prefixEnd);
1695
+ sb.append_xdc1zw_k$(_this__u8e3s4, start, prefixEnd);
1598
1696
  }
1599
1697
  var index = prefixEnd;
1600
1698
  var bytes = null;
1601
1699
  while (index < end) {
1602
1700
  var c = charSequenceGet(_this__u8e3s4, index);
1603
1701
  if (plusIsSpace && c === _Char___init__impl__6a9atx(43)) {
1604
- sb.k1(_Char___init__impl__6a9atx(32));
1702
+ sb.append_58al37_k$(_Char___init__impl__6a9atx(32));
1605
1703
  index = index + 1 | 0;
1606
1704
  } else if (c === _Char___init__impl__6a9atx(37)) {
1607
1705
  if (bytes == null) {
@@ -1613,13 +1711,13 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
1613
1711
  // Inline function 'kotlin.text.substring' call
1614
1712
  var startIndex = index;
1615
1713
  var endIndex = charSequenceLength(_this__u8e3s4);
1616
- var tmp$ret$0 = toString(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
1617
- throw URLDecodeException.r48('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' + toString(_this__u8e3s4) + ' at ' + index);
1714
+ var tmp$ret$0 = toString_0(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
1715
+ throw URLDecodeException.new_io_ktor_http_URLDecodeException_fxz6ye_k$('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' + toString_0(_this__u8e3s4) + ' at ' + index);
1618
1716
  }
1619
1717
  var digit1 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 1 | 0));
1620
1718
  var digit2 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 2 | 0));
1621
1719
  if (digit1 === -1 || digit2 === -1) {
1622
- throw URLDecodeException.r48('Wrong HEX escape: %' + toString_0(charSequenceGet(_this__u8e3s4, index + 1 | 0)) + toString_0(charSequenceGet(_this__u8e3s4, index + 2 | 0)) + ', in ' + toString(_this__u8e3s4) + ', at ' + index);
1720
+ throw URLDecodeException.new_io_ktor_http_URLDecodeException_fxz6ye_k$('Wrong HEX escape: %' + toString(charSequenceGet(_this__u8e3s4, index + 1 | 0)) + toString(charSequenceGet(_this__u8e3s4, index + 2 | 0)) + ', in ' + toString_0(_this__u8e3s4) + ', at ' + index);
1623
1721
  }
1624
1722
  var tmp = bytes;
1625
1723
  var _unary__edvuaz = count;
@@ -1627,9 +1725,9 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
1627
1725
  tmp[_unary__edvuaz] = toByte(imul(digit1, 16) + digit2 | 0);
1628
1726
  index = index + 3 | 0;
1629
1727
  }
1630
- sb.i1(decodeToString(bytes, 0, 0 + count | 0));
1728
+ sb.append_22ad7x_k$(decodeToString(bytes, 0, 0 + count | 0));
1631
1729
  } else {
1632
- sb.k1(c);
1730
+ sb.append_58al37_k$(c);
1633
1731
  index = index + 1 | 0;
1634
1732
  }
1635
1733
  }
@@ -1639,138 +1737,53 @@ function charToHexDigit(c2) {
1639
1737
  _init_properties_Codecs_kt__fudxxf();
1640
1738
  return (_Char___init__impl__6a9atx(48) <= c2 ? c2 <= _Char___init__impl__6a9atx(57) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(48)) : (_Char___init__impl__6a9atx(65) <= c2 ? c2 <= _Char___init__impl__6a9atx(70) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(65)) + 10 | 0 : (_Char___init__impl__6a9atx(97) <= c2 ? c2 <= _Char___init__impl__6a9atx(102) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(97)) + 10 | 0 : -1;
1641
1739
  }
1642
- function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
1740
+ function encodeURLPath$lambda($$this$buildString) {
1643
1741
  return (it) => {
1644
- if (get_URL_ALPHABET().j3(it) || get_SPECIAL_SYMBOLS().j3(it))
1645
- $$this$buildString.k1(numberToChar(it));
1646
- else {
1647
- var tmp;
1648
- if ($spaceToPlus) {
1649
- var tmp_0 = it;
1650
- // Inline function 'kotlin.code' call
1651
- var this_0 = _Char___init__impl__6a9atx(32);
1652
- var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
1653
- tmp = tmp_0 === toByte(tmp$ret$0);
1654
- } else {
1655
- tmp = false;
1656
- }
1657
- if (tmp)
1658
- $$this$buildString.k1(_Char___init__impl__6a9atx(43));
1659
- else {
1660
- $$this$buildString.i1(percentEncode(it));
1661
- }
1662
- }
1663
- return Unit_instance;
1664
- };
1665
- }
1666
- function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encodeFull) {
1667
- return (it) => {
1668
- var tmp = it;
1669
- // Inline function 'kotlin.code' call
1670
- var this_0 = _Char___init__impl__6a9atx(32);
1671
- var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
1672
- if (tmp === toByte(tmp$ret$0))
1673
- if ($spaceToPlus)
1674
- $$this$buildString.k1(_Char___init__impl__6a9atx(43));
1675
- else
1676
- $$this$buildString.i1('%20');
1677
- else {
1678
- if (get_URL_ALPHABET().j3(it) || (!$encodeFull && get_URL_PROTOCOL_PART().j3(it)))
1679
- $$this$buildString.k1(numberToChar(it));
1680
- else {
1681
- $$this$buildString.i1(percentEncode(it));
1682
- }
1683
- }
1742
+ appendPercentEncoded($$this$buildString, it);
1684
1743
  return Unit_instance;
1685
1744
  };
1686
1745
  }
1687
1746
  function forEach$lambda($block) {
1688
1747
  return (buffer) => {
1689
1748
  while (canRead(buffer)) {
1690
- $block(buffer.q1s());
1749
+ $block(buffer.readByte_ectjk2_k$());
1691
1750
  }
1692
1751
  return true;
1693
1752
  };
1694
1753
  }
1695
- function encodeURLPath$lambda($$this$buildString) {
1696
- return (it) => {
1697
- $$this$buildString.i1(percentEncode(it));
1698
- return Unit_instance;
1699
- };
1700
- }
1701
1754
  var properties_initialized_Codecs_kt_hkj9s1;
1702
1755
  function _init_properties_Codecs_kt__fudxxf() {
1703
1756
  if (!properties_initialized_Codecs_kt_hkj9s1) {
1704
1757
  properties_initialized_Codecs_kt_hkj9s1 = true;
1705
- // Inline function 'kotlin.collections.map' call
1706
- var this_0 = 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)));
1707
- // Inline function 'kotlin.collections.mapTo' call
1708
- var destination = ArrayList.d2(collectionSizeOrDefault(this_0, 10));
1709
- var _iterator__ex2g4s = this_0.l1();
1710
- while (_iterator__ex2g4s.m1()) {
1711
- var item = _iterator__ex2g4s.n1();
1712
- // Inline function 'kotlin.code' call
1713
- var this_1 = item.s3_1;
1714
- var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
1715
- var tmp$ret$2 = toByte(tmp$ret$3);
1716
- destination.e2(tmp$ret$2);
1717
- }
1718
- URL_ALPHABET = toSet(destination);
1719
- URL_ALPHABET_CHARS = toSet(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))));
1720
- HEX_ALPHABET = toSet(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))));
1721
- // Inline function 'kotlin.collections.map' call
1722
- var this_2 = setOf([new Char(_Char___init__impl__6a9atx(58)), new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(91)), new Char(_Char___init__impl__6a9atx(93)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(39)), new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(42)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126)), new Char(_Char___init__impl__6a9atx(43))]);
1723
- // Inline function 'kotlin.collections.mapTo' call
1724
- var destination_0 = ArrayList.d2(collectionSizeOrDefault(this_2, 10));
1725
- var _iterator__ex2g4s_0 = this_2.l1();
1726
- while (_iterator__ex2g4s_0.m1()) {
1727
- var item_0 = _iterator__ex2g4s_0.n1();
1728
- // Inline function 'kotlin.code' call
1729
- var this_3 = item_0.s3_1;
1730
- var tmp$ret$3_0 = Char__toInt_impl_vasixd(this_3);
1731
- var tmp$ret$2_0 = toByte(tmp$ret$3_0);
1732
- destination_0.e2(tmp$ret$2_0);
1733
- }
1734
- URL_PROTOCOL_PART = destination_0;
1735
- VALID_PATH_PART = setOf([new Char(_Char___init__impl__6a9atx(58)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(39)), new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(42)), new Char(_Char___init__impl__6a9atx(43)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126))]);
1736
- ATTRIBUTE_CHARACTERS = plus_1(get_URL_ALPHABET_CHARS(), setOf([new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(43)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(94)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(96)), new Char(_Char___init__impl__6a9atx(124)), new Char(_Char___init__impl__6a9atx(126))]));
1737
- // Inline function 'kotlin.collections.map' call
1738
- var this_4 = listOf([new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126))]);
1739
- // Inline function 'kotlin.collections.mapTo' call
1740
- var destination_1 = ArrayList.d2(collectionSizeOrDefault(this_4, 10));
1741
- var _iterator__ex2g4s_1 = this_4.l1();
1742
- while (_iterator__ex2g4s_1.m1()) {
1743
- var item_1 = _iterator__ex2g4s_1.n1();
1744
- // Inline function 'kotlin.code' call
1745
- var this_5 = item_1.s3_1;
1746
- var tmp$ret$3_1 = Char__toInt_impl_vasixd(this_5);
1747
- var tmp$ret$2_1 = toByte(tmp$ret$3_1);
1748
- destination_1.e2(tmp$ret$2_1);
1749
- }
1750
- SPECIAL_SYMBOLS = destination_1;
1758
+ URL_ALPHABET = Companion_instance.of_75jmpt_k$(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))));
1759
+ HEX_ALPHABET = Companion_instance.of_75jmpt_k$(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))));
1760
+ URL_PROTOCOL_PART = Companion_instance.of_5gnbr7_k$(":/?#[]@!$&'()*,;=-._~+");
1761
+ VALID_PATH_PART = Companion_instance.of_5gnbr7_k$(":@!$&'()*+,;=-._~");
1762
+ ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().plus_an5ph_k$(Companion_instance.of_5gnbr7_k$('!#$&+-.^_`|~'));
1763
+ URL_PARAMETER_CHARS = get_URL_ALPHABET().plus_an5ph_k$(Companion_instance.of_5gnbr7_k$('-._~'));
1751
1764
  }
1752
1765
  }
1753
1766
  var textSubTypes;
1754
1767
  function hasParameter($this, name, value) {
1755
1768
  var tmp;
1756
- switch ($this.t48_1.p2()) {
1769
+ switch ($this.parameters_1.get_size_woubt6_k$()) {
1757
1770
  case 0:
1758
1771
  tmp = false;
1759
1772
  break;
1760
1773
  case 1:
1761
1774
  // Inline function 'kotlin.let' call
1762
1775
 
1763
- var it = $this.t48_1.q2(0);
1764
- tmp = (equals(it.u48_1, name, true) && equals(it.v48_1, value, true));
1776
+ var it = $this.parameters_1.get_c1px32_k$(0);
1777
+ tmp = (equals(it.name_1, name, true) && equals(it.value_1, value, true));
1765
1778
  break;
1766
1779
  default:
1767
- var tmp0 = $this.t48_1;
1780
+ var tmp0 = $this.parameters_1;
1768
1781
  var tmp$ret$2;
1769
1782
  $l$block_0: {
1770
1783
  // Inline function 'kotlin.collections.any' call
1771
1784
  var tmp_0;
1772
1785
  if (isInterface(tmp0, Collection)) {
1773
- tmp_0 = tmp0.j1();
1786
+ tmp_0 = tmp0.isEmpty_y1axqb_k$();
1774
1787
  } else {
1775
1788
  tmp_0 = false;
1776
1789
  }
@@ -1778,10 +1791,10 @@ function hasParameter($this, name, value) {
1778
1791
  tmp$ret$2 = false;
1779
1792
  break $l$block_0;
1780
1793
  }
1781
- var _iterator__ex2g4s = tmp0.l1();
1782
- while (_iterator__ex2g4s.m1()) {
1783
- var element = _iterator__ex2g4s.n1();
1784
- if (equals(element.u48_1, name, true) && equals(element.v48_1, value, true)) {
1794
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
1795
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
1796
+ var element = _iterator__ex2g4s.next_20eer_k$();
1797
+ if (equals(element.name_1, name, true) && equals(element.value_1, value, true)) {
1785
1798
  tmp$ret$2 = true;
1786
1799
  break $l$block_0;
1787
1800
  }
@@ -1794,11 +1807,13 @@ function hasParameter($this, name, value) {
1794
1807
  }
1795
1808
  return tmp;
1796
1809
  }
1797
- var Companion_instance;
1798
- function Companion_getInstance() {
1799
- if (Companion_instance === VOID)
1800
- new Companion();
1801
- return Companion_instance;
1810
+ var Companion_instance_0;
1811
+ function Companion_getInstance_0() {
1812
+ if (Companion_instance_0 === VOID) {
1813
+ Companion_instance_1;
1814
+ new Companion_0();
1815
+ }
1816
+ return Companion_instance_0;
1802
1817
  }
1803
1818
  var Application_instance;
1804
1819
  function Application_getInstance() {
@@ -1820,7 +1835,7 @@ function Text_getInstance() {
1820
1835
  }
1821
1836
  function charset(_this__u8e3s4) {
1822
1837
  _init_properties_ContentTypes_kt__i9dj34();
1823
- var tmp0_safe_receiver = _this__u8e3s4.h4b('charset');
1838
+ var tmp0_safe_receiver = _this__u8e3s4.parameter_w3eqbz_k$('charset');
1824
1839
  var tmp;
1825
1840
  if (tmp0_safe_receiver == null) {
1826
1841
  tmp = null;
@@ -1845,17 +1860,17 @@ function charset(_this__u8e3s4) {
1845
1860
  }
1846
1861
  function withCharset(_this__u8e3s4, charset) {
1847
1862
  _init_properties_ContentTypes_kt__i9dj34();
1848
- return _this__u8e3s4.d4b('charset', get_name(charset));
1863
+ return _this__u8e3s4.withParameter_j6bpqb_k$('charset', get_name(charset));
1849
1864
  }
1850
1865
  function withCharsetIfNeeded(_this__u8e3s4, charset) {
1851
1866
  _init_properties_ContentTypes_kt__i9dj34();
1852
1867
  var tmp;
1853
1868
  // Inline function 'kotlin.text.lowercase' call
1854
1869
  // Inline function 'kotlin.js.asDynamic' call
1855
- if (!(_this__u8e3s4.a49_1.toLowerCase() === 'text')) {
1870
+ if (!(_this__u8e3s4.contentType_1.toLowerCase() === 'text')) {
1856
1871
  tmp = _this__u8e3s4;
1857
1872
  } else {
1858
- tmp = _this__u8e3s4.d4b('charset', get_name(charset));
1873
+ tmp = _this__u8e3s4.withParameter_j6bpqb_k$('charset', get_name(charset));
1859
1874
  }
1860
1875
  return tmp;
1861
1876
  }
@@ -1871,9 +1886,9 @@ function get_HeaderFieldValueSeparators() {
1871
1886
  return HeaderFieldValueSeparators;
1872
1887
  }
1873
1888
  var HeaderFieldValueSeparators;
1874
- var Companion_instance_0;
1875
- function Companion_getInstance_0() {
1876
- return Companion_instance_0;
1889
+ var Companion_instance_1;
1890
+ function Companion_getInstance_1() {
1891
+ return Companion_instance_1;
1877
1892
  }
1878
1893
  function needQuotes(_this__u8e3s4) {
1879
1894
  _init_properties_HeaderValueWithParameters_kt__z6luvy();
@@ -1887,7 +1902,7 @@ function needQuotes(_this__u8e3s4) {
1887
1902
  while (inductionVariable < last) {
1888
1903
  var element = charCodeAt(_this__u8e3s4, inductionVariable);
1889
1904
  inductionVariable = inductionVariable + 1 | 0;
1890
- if (get_HeaderFieldValueSeparators().j3(new Char(element)))
1905
+ if (get_HeaderFieldValueSeparators().contains_egozq6_k$(element))
1891
1906
  return true;
1892
1907
  }
1893
1908
  return false;
@@ -1896,7 +1911,7 @@ function quote(_this__u8e3s4) {
1896
1911
  _init_properties_HeaderValueWithParameters_kt__z6luvy();
1897
1912
  // Inline function 'kotlin.text.buildString' call
1898
1913
  // Inline function 'kotlin.apply' call
1899
- var this_0 = StringBuilder.h1();
1914
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
1900
1915
  quoteTo(_this__u8e3s4, this_0);
1901
1916
  return this_0.toString();
1902
1917
  }
@@ -1930,7 +1945,7 @@ function isQuoted(_this__u8e3s4) {
1930
1945
  }
1931
1946
  function quoteTo(_this__u8e3s4, out) {
1932
1947
  _init_properties_HeaderValueWithParameters_kt__z6luvy();
1933
- out.i1('"');
1948
+ out.append_22ad7x_k$('"');
1934
1949
  var inductionVariable = 0;
1935
1950
  var last = _this__u8e3s4.length;
1936
1951
  while (inductionVariable < last) {
@@ -1938,35 +1953,35 @@ function quoteTo(_this__u8e3s4, out) {
1938
1953
  inductionVariable = inductionVariable + 1 | 0;
1939
1954
  var ch = element;
1940
1955
  if (ch === _Char___init__impl__6a9atx(92))
1941
- out.i1('\\\\');
1956
+ out.append_22ad7x_k$('\\\\');
1942
1957
  else if (ch === _Char___init__impl__6a9atx(10))
1943
- out.i1('\\n');
1958
+ out.append_22ad7x_k$('\\n');
1944
1959
  else if (ch === _Char___init__impl__6a9atx(13))
1945
- out.i1('\\r');
1960
+ out.append_22ad7x_k$('\\r');
1946
1961
  else if (ch === _Char___init__impl__6a9atx(9))
1947
- out.i1('\\t');
1962
+ out.append_22ad7x_k$('\\t');
1948
1963
  else if (ch === _Char___init__impl__6a9atx(34))
1949
- out.i1('\\"');
1964
+ out.append_22ad7x_k$('\\"');
1950
1965
  else
1951
- out.k1(ch);
1966
+ out.append_58al37_k$(ch);
1952
1967
  }
1953
- out.i1('"');
1968
+ out.append_22ad7x_k$('"');
1954
1969
  }
1955
1970
  var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
1956
1971
  function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
1957
1972
  if (!properties_initialized_HeaderValueWithParameters_kt_yu5xg) {
1958
1973
  properties_initialized_HeaderValueWithParameters_kt_yu5xg = true;
1959
- HeaderFieldValueSeparators = setOf([new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(60)), new Char(_Char___init__impl__6a9atx(62)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(58)), new Char(_Char___init__impl__6a9atx(92)), new Char(_Char___init__impl__6a9atx(34)), new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(91)), new Char(_Char___init__impl__6a9atx(93)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(123)), new Char(_Char___init__impl__6a9atx(125)), new Char(_Char___init__impl__6a9atx(32)), new Char(_Char___init__impl__6a9atx(9)), new Char(_Char___init__impl__6a9atx(10)), new Char(_Char___init__impl__6a9atx(13))]);
1974
+ HeaderFieldValueSeparators = Companion_instance.of_5gnbr7_k$('()<>@,;:\\"/[]?={} \t\n\r');
1960
1975
  }
1961
1976
  }
1962
- var Companion_instance_1;
1963
- function Companion_getInstance_1() {
1964
- if (Companion_instance_1 === VOID)
1965
- new Companion_1();
1966
- return Companion_instance_1;
1977
+ var Companion_instance_2;
1978
+ function Companion_getInstance_2() {
1979
+ if (Companion_instance_2 === VOID)
1980
+ new Companion_2();
1981
+ return Companion_instance_2;
1967
1982
  }
1968
1983
  function headersOf(name, value) {
1969
- return new HeadersSingleImpl(name, listOf_0(value));
1984
+ return new HeadersSingleImpl(name, listOf(value));
1970
1985
  }
1971
1986
  var EmptyHeaders_instance;
1972
1987
  function EmptyHeaders_getInstance() {
@@ -1995,9 +2010,9 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
1995
2010
  while (position <= get_lastIndex_0(text)) {
1996
2011
  var tmp0_subject = charCodeAt(text, position);
1997
2012
  if (tmp0_subject === _Char___init__impl__6a9atx(44)) {
1998
- var tmp_0 = items.b3();
2013
+ var tmp_0 = items.get_value_j01efc_k$();
1999
2014
  var tmp1_elvis_lhs = valueEnd;
2000
- tmp_0.e2(new HeaderValue(subtrim(text, start, tmp1_elvis_lhs == null ? position : tmp1_elvis_lhs), valueOrEmpty(parameters)));
2015
+ tmp_0.add_utx5q5_k$(new HeaderValue(subtrim(text, start, tmp1_elvis_lhs == null ? position : tmp1_elvis_lhs), valueOrEmpty(parameters)));
2001
2016
  return position + 1 | 0;
2002
2017
  } else if (tmp0_subject === _Char___init__impl__6a9atx(59)) {
2003
2018
  if (valueEnd == null)
@@ -2013,18 +2028,18 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
2013
2028
  position = tmp_1;
2014
2029
  }
2015
2030
  }
2016
- var tmp_2 = items.b3();
2031
+ var tmp_2 = items.get_value_j01efc_k$();
2017
2032
  var tmp2_elvis_lhs = valueEnd;
2018
- tmp_2.e2(new HeaderValue(subtrim(text, start, tmp2_elvis_lhs == null ? position : tmp2_elvis_lhs), valueOrEmpty(parameters)));
2033
+ tmp_2.add_utx5q5_k$(new HeaderValue(subtrim(text, start, tmp2_elvis_lhs == null ? position : tmp2_elvis_lhs), valueOrEmpty(parameters)));
2019
2034
  return position;
2020
2035
  }
2021
2036
  function valueOrEmpty(_this__u8e3s4) {
2022
- return _this__u8e3s4.ns() ? _this__u8e3s4.b3() : emptyList();
2037
+ return _this__u8e3s4.isInitialized_2wsk3a_k$() ? _this__u8e3s4.get_value_j01efc_k$() : emptyList();
2023
2038
  }
2024
2039
  function subtrim(_this__u8e3s4, start, end) {
2025
2040
  // Inline function 'kotlin.text.trim' call
2026
2041
  var this_0 = substring(_this__u8e3s4, start, end);
2027
- return toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
2042
+ return toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
2028
2043
  }
2029
2044
  function parseHeaderValueParameter(text, start, parameters) {
2030
2045
  var position = start;
@@ -2032,8 +2047,8 @@ function parseHeaderValueParameter(text, start, parameters) {
2032
2047
  var tmp0_subject = charCodeAt(text, position);
2033
2048
  if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
2034
2049
  var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
2035
- var paramEnd = _destruct__k2r9zo.ff();
2036
- var paramValue = _destruct__k2r9zo.gf();
2050
+ var paramEnd = _destruct__k2r9zo.component1_7eebsc_k$();
2051
+ var paramValue = _destruct__k2r9zo.component2_7eebsb_k$();
2037
2052
  parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
2038
2053
  return paramEnd;
2039
2054
  } else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
@@ -2066,25 +2081,20 @@ function parseHeaderValueParameterValue(value, start) {
2066
2081
  }
2067
2082
  function parseHeaderValueParameterValueQuoted(value, start) {
2068
2083
  var position = start;
2069
- var builder = StringBuilder.h1();
2084
+ var builder = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
2070
2085
  loop: while (position <= get_lastIndex_0(value)) {
2071
2086
  var currentChar = charCodeAt(value, position);
2072
2087
  if (currentChar === _Char___init__impl__6a9atx(34) && nextIsDelimiterOrEnd(value, position)) {
2073
2088
  return to(position + 1 | 0, builder.toString());
2074
- } else if (currentChar === _Char___init__impl__6a9atx(92) && position < (get_lastIndex_0(value) - 2 | 0)) {
2075
- builder.k1(charCodeAt(value, position + 1 | 0));
2089
+ } else if (currentChar === _Char___init__impl__6a9atx(92) && position < get_lastIndex_0(value)) {
2090
+ builder.append_58al37_k$(charCodeAt(value, position + 1 | 0));
2076
2091
  position = position + 2 | 0;
2077
2092
  continue loop;
2078
2093
  }
2079
- builder.k1(currentChar);
2094
+ builder.append_58al37_k$(currentChar);
2080
2095
  position = position + 1 | 0;
2081
2096
  }
2082
- var tmp = position;
2083
- var tmp0 = _Char___init__impl__6a9atx(34);
2084
- // Inline function 'kotlin.text.plus' call
2085
- var other = builder.toString();
2086
- var tmp$ret$0 = toString_0(tmp0) + other;
2087
- return to(tmp, tmp$ret$0);
2097
+ return to(position, substring(value, start - 1 | 0, position));
2088
2098
  }
2089
2099
  function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
2090
2100
  var position = start + 1 | 0;
@@ -2095,11 +2105,11 @@ function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
2095
2105
  }
2096
2106
  function parseHeaderValue$lambda() {
2097
2107
  // Inline function 'kotlin.collections.arrayListOf' call
2098
- return ArrayList.f2();
2108
+ return ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
2099
2109
  }
2100
2110
  function parseHeaderValueItem$lambda() {
2101
2111
  // Inline function 'kotlin.collections.arrayListOf' call
2102
- return ArrayList.f2();
2112
+ return ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
2103
2113
  }
2104
2114
  function parseHeaderValueParameter$addParam($parameters, text, start, end, value) {
2105
2115
  var name = subtrim(text, start, end);
@@ -2107,44 +2117,53 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
2107
2117
  if (charSequenceLength(name) === 0) {
2108
2118
  return Unit_instance;
2109
2119
  }
2110
- $parameters.b3().e2(HeaderValueParam.e4b(name, value));
2120
+ $parameters.get_value_j01efc_k$().add_utx5q5_k$(HeaderValueParam.new_io_ktor_http_HeaderValueParam_qys55l_k$(name, value));
2121
+ }
2122
+ function get_ILLEGAL_HEADER_NAME_CHARS() {
2123
+ _init_properties_HttpHeaders_kt__8vtb1o();
2124
+ return ILLEGAL_HEADER_NAME_CHARS;
2111
2125
  }
2126
+ var ILLEGAL_HEADER_NAME_CHARS;
2112
2127
  var HttpHeaders_instance;
2113
2128
  function HttpHeaders_getInstance() {
2114
2129
  if (HttpHeaders_instance === VOID)
2115
2130
  new HttpHeaders();
2116
2131
  return HttpHeaders_instance;
2117
2132
  }
2118
- function isDelimiter(ch) {
2119
- return contains('"(),/:;<=>?@[\\]{}', ch);
2133
+ var properties_initialized_HttpHeaders_kt_3d6wem;
2134
+ function _init_properties_HttpHeaders_kt__8vtb1o() {
2135
+ if (!properties_initialized_HttpHeaders_kt_3d6wem) {
2136
+ properties_initialized_HttpHeaders_kt_3d6wem = true;
2137
+ ILLEGAL_HEADER_NAME_CHARS = Companion_instance.of_75jmpt_k$(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(0), _Char___init__impl__6a9atx(32))).plus_an5ph_k$(Companion_instance.of_5gnbr7_k$('"(),/:;<=>?@[\\]{}'));
2138
+ }
2120
2139
  }
2121
2140
  function contentType(_this__u8e3s4, type) {
2122
- return _this__u8e3s4.g4g().f44('Content-Type', type.toString());
2141
+ return _this__u8e3s4.get_headers_ef25jx_k$().set_j87cuq_k$('Content-Type', type.toString());
2123
2142
  }
2124
2143
  function contentType_0(_this__u8e3s4) {
2125
- var tmp0_safe_receiver = _this__u8e3s4.g4g().p1i('Content-Type');
2144
+ var tmp0_safe_receiver = _this__u8e3s4.get_headers_ef25jx_k$().get_6bo4tg_k$('Content-Type');
2126
2145
  var tmp;
2127
2146
  if (tmp0_safe_receiver == null) {
2128
2147
  tmp = null;
2129
2148
  } else {
2130
2149
  // Inline function 'kotlin.let' call
2131
- tmp = Companion_getInstance().ss(tmp0_safe_receiver);
2150
+ tmp = Companion_getInstance_0().parse_pc1q8p_k$(tmp0_safe_receiver);
2132
2151
  }
2133
2152
  return tmp;
2134
2153
  }
2135
2154
  function contentType_1(_this__u8e3s4) {
2136
- var tmp0_safe_receiver = _this__u8e3s4.g4g().p1i('Content-Type');
2155
+ var tmp0_safe_receiver = _this__u8e3s4.get_headers_ef25jx_k$().get_6bo4tg_k$('Content-Type');
2137
2156
  var tmp;
2138
2157
  if (tmp0_safe_receiver == null) {
2139
2158
  tmp = null;
2140
2159
  } else {
2141
2160
  // Inline function 'kotlin.let' call
2142
- tmp = Companion_getInstance().ss(tmp0_safe_receiver);
2161
+ tmp = Companion_getInstance_0().parse_pc1q8p_k$(tmp0_safe_receiver);
2143
2162
  }
2144
2163
  return tmp;
2145
2164
  }
2146
2165
  function contentLength(_this__u8e3s4) {
2147
- var tmp0_safe_receiver = _this__u8e3s4.g4g().p1i('Content-Length');
2166
+ var tmp0_safe_receiver = _this__u8e3s4.get_headers_ef25jx_k$().get_6bo4tg_k$('Content-Length');
2148
2167
  return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
2149
2168
  }
2150
2169
  function charset_0(_this__u8e3s4) {
@@ -2156,44 +2175,44 @@ function get_REQUESTS_WITHOUT_BODY() {
2156
2175
  return REQUESTS_WITHOUT_BODY;
2157
2176
  }
2158
2177
  var REQUESTS_WITHOUT_BODY;
2159
- var Companion_instance_2;
2160
- function Companion_getInstance_2() {
2161
- if (Companion_instance_2 === VOID)
2162
- new Companion_2();
2163
- return Companion_instance_2;
2178
+ var Companion_instance_3;
2179
+ function Companion_getInstance_3() {
2180
+ if (Companion_instance_3 === VOID)
2181
+ new Companion_3();
2182
+ return Companion_instance_3;
2164
2183
  }
2165
2184
  function get_supportsRequestBody(_this__u8e3s4) {
2166
2185
  _init_properties_HttpMethod_kt__cbus5z();
2167
- return !get_REQUESTS_WITHOUT_BODY().j3(_this__u8e3s4);
2186
+ return !get_REQUESTS_WITHOUT_BODY().contains_aljjnj_k$(_this__u8e3s4);
2168
2187
  }
2169
2188
  var properties_initialized_HttpMethod_kt_ogor3f;
2170
2189
  function _init_properties_HttpMethod_kt__cbus5z() {
2171
2190
  if (!properties_initialized_HttpMethod_kt_ogor3f) {
2172
2191
  properties_initialized_HttpMethod_kt_ogor3f = true;
2173
- REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().h4g_1, Companion_getInstance_2().m4g_1, Companion_getInstance_2().n4g_1, Companion_getInstance_2().o4g_1]);
2192
+ REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().Get_1, Companion_getInstance_3().Head_1, Companion_getInstance_3().Options_1, Companion_getInstance_3().Trace_1]);
2174
2193
  }
2175
2194
  }
2176
- var Companion_instance_3;
2177
- function Companion_getInstance_3() {
2178
- if (Companion_instance_3 === VOID)
2179
- new Companion_3();
2180
- return Companion_instance_3;
2181
- }
2182
2195
  var Companion_instance_4;
2183
2196
  function Companion_getInstance_4() {
2184
2197
  if (Companion_instance_4 === VOID)
2185
2198
  new Companion_4();
2186
2199
  return Companion_instance_4;
2187
2200
  }
2188
- function allStatusCodes() {
2189
- return listOf([Companion_getInstance_4().b4h_1, Companion_getInstance_4().c4h_1, Companion_getInstance_4().d4h_1, Companion_getInstance_4().e4h_1, Companion_getInstance_4().f4h_1, Companion_getInstance_4().g4h_1, Companion_getInstance_4().h4h_1, Companion_getInstance_4().i4h_1, Companion_getInstance_4().j4h_1, Companion_getInstance_4().k4h_1, Companion_getInstance_4().l4h_1, Companion_getInstance_4().m4h_1, Companion_getInstance_4().n4h_1, Companion_getInstance_4().o4h_1, Companion_getInstance_4().p4h_1, Companion_getInstance_4().q4h_1, Companion_getInstance_4().r4h_1, Companion_getInstance_4().s4h_1, Companion_getInstance_4().t4h_1, Companion_getInstance_4().u4h_1, Companion_getInstance_4().v4h_1, Companion_getInstance_4().w4h_1, Companion_getInstance_4().x4h_1, Companion_getInstance_4().y4h_1, Companion_getInstance_4().z4h_1, Companion_getInstance_4().a4i_1, Companion_getInstance_4().b4i_1, Companion_getInstance_4().c4i_1, Companion_getInstance_4().d4i_1, Companion_getInstance_4().e4i_1, Companion_getInstance_4().f4i_1, Companion_getInstance_4().g4i_1, Companion_getInstance_4().h4i_1, Companion_getInstance_4().i4i_1, Companion_getInstance_4().j4i_1, Companion_getInstance_4().k4i_1, Companion_getInstance_4().l4i_1, Companion_getInstance_4().m4i_1, Companion_getInstance_4().n4i_1, Companion_getInstance_4().o4i_1, Companion_getInstance_4().p4i_1, Companion_getInstance_4().q4i_1, Companion_getInstance_4().r4i_1, Companion_getInstance_4().s4i_1, Companion_getInstance_4().t4i_1, Companion_getInstance_4().u4i_1, Companion_getInstance_4().v4i_1, Companion_getInstance_4().w4i_1, Companion_getInstance_4().x4i_1, Companion_getInstance_4().y4i_1, Companion_getInstance_4().z4i_1, Companion_getInstance_4().a4j_1, Companion_getInstance_4().b4j_1]);
2190
- }
2191
2201
  var Companion_instance_5;
2192
2202
  function Companion_getInstance_5() {
2193
2203
  if (Companion_instance_5 === VOID)
2194
2204
  new Companion_5();
2195
2205
  return Companion_instance_5;
2196
2206
  }
2207
+ function allStatusCodes() {
2208
+ return listOf_0([Companion_getInstance_5().Continue_1, Companion_getInstance_5().SwitchingProtocols_1, Companion_getInstance_5().Processing_1, Companion_getInstance_5().OK_1, Companion_getInstance_5().Created_1, Companion_getInstance_5().Accepted_1, Companion_getInstance_5().NonAuthoritativeInformation_1, Companion_getInstance_5().NoContent_1, Companion_getInstance_5().ResetContent_1, Companion_getInstance_5().PartialContent_1, Companion_getInstance_5().MultiStatus_1, Companion_getInstance_5().MultipleChoices_1, Companion_getInstance_5().MovedPermanently_1, Companion_getInstance_5().Found_1, Companion_getInstance_5().SeeOther_1, Companion_getInstance_5().NotModified_1, Companion_getInstance_5().UseProxy_1, Companion_getInstance_5().SwitchProxy_1, Companion_getInstance_5().TemporaryRedirect_1, Companion_getInstance_5().PermanentRedirect_1, Companion_getInstance_5().BadRequest_1, Companion_getInstance_5().Unauthorized_1, Companion_getInstance_5().PaymentRequired_1, Companion_getInstance_5().Forbidden_1, Companion_getInstance_5().NotFound_1, Companion_getInstance_5().MethodNotAllowed_1, Companion_getInstance_5().NotAcceptable_1, Companion_getInstance_5().ProxyAuthenticationRequired_1, Companion_getInstance_5().RequestTimeout_1, Companion_getInstance_5().Conflict_1, Companion_getInstance_5().Gone_1, Companion_getInstance_5().LengthRequired_1, Companion_getInstance_5().PreconditionFailed_1, Companion_getInstance_5().PreconditionRequired_1, Companion_getInstance_5().PayloadTooLarge_1, Companion_getInstance_5().RequestURITooLong_1, Companion_getInstance_5().UnsupportedMediaType_1, Companion_getInstance_5().RequestedRangeNotSatisfiable_1, Companion_getInstance_5().ExpectationFailed_1, Companion_getInstance_5().UnprocessableEntity_1, Companion_getInstance_5().Locked_1, Companion_getInstance_5().FailedDependency_1, Companion_getInstance_5().TooEarly_1, Companion_getInstance_5().UpgradeRequired_1, Companion_getInstance_5().TooManyRequests_1, Companion_getInstance_5().RequestHeaderFieldTooLarge_1, Companion_getInstance_5().InternalServerError_1, Companion_getInstance_5().NotImplemented_1, Companion_getInstance_5().BadGateway_1, Companion_getInstance_5().ServiceUnavailable_1, Companion_getInstance_5().GatewayTimeout_1, Companion_getInstance_5().VersionNotSupported_1, Companion_getInstance_5().VariantAlsoNegotiates_1, Companion_getInstance_5().InsufficientStorage_1]);
2209
+ }
2210
+ var Companion_instance_6;
2211
+ function Companion_getInstance_6() {
2212
+ if (Companion_instance_6 === VOID)
2213
+ new Companion_6();
2214
+ return Companion_instance_6;
2215
+ }
2197
2216
  var EmptyParameters_instance;
2198
2217
  function EmptyParameters_getInstance() {
2199
2218
  return EmptyParameters_instance;
@@ -2208,14 +2227,14 @@ function parseQueryString(query, startIndex, limit, decode) {
2208
2227
  decode = decode === VOID ? true : decode;
2209
2228
  var tmp;
2210
2229
  if (startIndex > get_lastIndex_0(query)) {
2211
- tmp = Companion_getInstance_5().h4j_1;
2230
+ tmp = Companion_getInstance_6().Empty_1;
2212
2231
  } else {
2213
2232
  // Inline function 'io.ktor.http.Companion.build' call
2214
- Companion_getInstance_5();
2233
+ Companion_getInstance_6();
2215
2234
  // Inline function 'kotlin.apply' call
2216
2235
  var this_0 = ParametersBuilder();
2217
2236
  parse(this_0, query, startIndex, limit, decode);
2218
- tmp = this_0.y1y();
2237
+ tmp = this_0.build_1k0s4u_k$();
2219
2238
  }
2220
2239
  return tmp;
2221
2240
  }
@@ -2256,7 +2275,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
2256
2275
  var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
2257
2276
  if (spaceEndIndex > spaceNameIndex) {
2258
2277
  var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
2259
- _this__u8e3s4.y43(name, emptyList());
2278
+ _this__u8e3s4.appendAll_ytnfgb_k$(name, emptyList());
2260
2279
  }
2261
2280
  return Unit_instance;
2262
2281
  }
@@ -2267,7 +2286,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
2267
2286
  var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
2268
2287
  var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
2269
2288
  var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
2270
- _this__u8e3s4.h44(name_0, value);
2289
+ _this__u8e3s4.append_rhug0a_k$(name_0, value);
2271
2290
  }
2272
2291
  }
2273
2292
  function trimStart(start, end, query) {
@@ -2287,103 +2306,106 @@ function trimEnd(start, end, text) {
2287
2306
  function applyOrigin($this) {
2288
2307
  var tmp;
2289
2308
  // Inline function 'kotlin.text.isNotEmpty' call
2290
- var this_0 = $this.k4j_1;
2309
+ var this_0 = $this.host_1;
2291
2310
  if (charSequenceLength(this_0) > 0) {
2292
2311
  tmp = true;
2293
2312
  } else {
2294
- tmp = $this.w4j().u4j_1 === 'file';
2313
+ tmp = $this.get_protocol_mv93kx_k$().name_1 === 'file';
2295
2314
  }
2296
2315
  if (tmp)
2297
2316
  return Unit_instance;
2298
- $this.k4j_1 = Companion_getInstance_6().q4k_1.x4j_1;
2299
- if ($this.n4j_1 == null)
2300
- $this.n4j_1 = Companion_getInstance_6().q4k_1.i4k_1;
2301
- if ($this.m4j_1 === 0) {
2302
- $this.s4k(Companion_getInstance_6().q4k_1.y4j_1);
2317
+ $this.host_1 = Companion_getInstance_7().originUrl_1.host_1;
2318
+ if ($this.protocolOrNull_1 == null)
2319
+ $this.protocolOrNull_1 = Companion_getInstance_7().originUrl_1.protocolOrNull_1;
2320
+ if ($this.port_1 === 0) {
2321
+ $this.set_port_gcpocq_k$(Companion_getInstance_7().originUrl_1.specifiedPort_1);
2303
2322
  }
2304
2323
  }
2305
- var Companion_instance_6;
2306
- function Companion_getInstance_6() {
2307
- if (Companion_instance_6 === VOID)
2308
- new Companion_6();
2309
- return Companion_instance_6;
2324
+ var Companion_instance_7;
2325
+ function Companion_getInstance_7() {
2326
+ if (Companion_instance_7 === VOID)
2327
+ new Companion_7();
2328
+ return Companion_instance_7;
2310
2329
  }
2311
2330
  function get_authority(_this__u8e3s4) {
2312
2331
  // Inline function 'kotlin.text.buildString' call
2313
2332
  // Inline function 'kotlin.apply' call
2314
- var this_0 = StringBuilder.h1();
2315
- this_0.i1(get_encodedUserAndPassword(_this__u8e3s4));
2316
- this_0.i1(_this__u8e3s4.k4j_1);
2317
- if (!(_this__u8e3s4.m4j_1 === 0) && !(_this__u8e3s4.m4j_1 === _this__u8e3s4.w4j().v4j_1)) {
2318
- this_0.i1(':');
2319
- this_0.i1(_this__u8e3s4.m4j_1.toString());
2333
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
2334
+ this_0.append_22ad7x_k$(get_encodedUserAndPassword(_this__u8e3s4));
2335
+ this_0.append_22ad7x_k$(_this__u8e3s4.host_1);
2336
+ if (!(_this__u8e3s4.port_1 === 0) && !(_this__u8e3s4.port_1 === _this__u8e3s4.get_protocol_mv93kx_k$().defaultPort_1)) {
2337
+ this_0.append_22ad7x_k$(':');
2338
+ this_0.append_22ad7x_k$(_this__u8e3s4.port_1.toString());
2320
2339
  }
2321
2340
  return this_0.toString();
2322
2341
  }
2323
2342
  function appendTo(_this__u8e3s4, out) {
2324
- out.o2(_this__u8e3s4.w4j().u4j_1);
2325
- switch (_this__u8e3s4.w4j().u4j_1) {
2343
+ out.append_jgojdo_k$(_this__u8e3s4.get_protocol_mv93kx_k$().name_1);
2344
+ switch (_this__u8e3s4.get_protocol_mv93kx_k$().name_1) {
2326
2345
  case 'file':
2327
- appendFile(out, _this__u8e3s4.k4j_1, get_encodedPath(_this__u8e3s4));
2328
- return out;
2346
+ appendFile(out, _this__u8e3s4.host_1, get_encodedPath(_this__u8e3s4));
2347
+ appendUrlFullPath(out, '', _this__u8e3s4.encodedParameters_1, _this__u8e3s4.trailingQuery_1);
2348
+ break;
2329
2349
  case 'mailto':
2330
- appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.k4j_1);
2350
+ appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.host_1);
2331
2351
  return out;
2332
2352
  case 'about':
2333
- appendPayload(out, _this__u8e3s4.k4j_1);
2353
+ appendPayload(out, _this__u8e3s4.host_1);
2334
2354
  return out;
2335
2355
  case 'tel':
2336
- appendPayload(out, _this__u8e3s4.k4j_1);
2356
+ appendPayload(out, _this__u8e3s4.host_1);
2337
2357
  return out;
2338
2358
  case 'data':
2339
- appendPayload(out, _this__u8e3s4.k4j_1);
2359
+ appendPayload(out, _this__u8e3s4.host_1);
2340
2360
  return out;
2361
+ default:
2362
+ out.append_jgojdo_k$('://');
2363
+ out.append_jgojdo_k$(get_authority(_this__u8e3s4));
2364
+ appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.encodedParameters_1, _this__u8e3s4.trailingQuery_1);
2365
+ break;
2341
2366
  }
2342
- out.o2('://');
2343
- out.o2(get_authority(_this__u8e3s4));
2344
- appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.s4j_1, _this__u8e3s4.l4j_1);
2345
2367
  // Inline function 'kotlin.text.isNotEmpty' call
2346
- var this_0 = _this__u8e3s4.q4j_1;
2368
+ var this_0 = _this__u8e3s4.encodedFragment_1;
2347
2369
  if (charSequenceLength(this_0) > 0) {
2348
- out.k1(_Char___init__impl__6a9atx(35));
2349
- out.o2(_this__u8e3s4.q4j_1);
2370
+ out.append_58al37_k$(_Char___init__impl__6a9atx(35));
2371
+ out.append_jgojdo_k$(_this__u8e3s4.encodedFragment_1);
2350
2372
  }
2351
2373
  return out;
2352
2374
  }
2353
2375
  function get_encodedUserAndPassword(_this__u8e3s4) {
2354
2376
  // Inline function 'kotlin.text.buildString' call
2355
2377
  // Inline function 'kotlin.apply' call
2356
- var this_0 = StringBuilder.h1();
2357
- appendUserAndPassword(this_0, _this__u8e3s4.o4j_1, _this__u8e3s4.p4j_1);
2378
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
2379
+ appendUserAndPassword(this_0, _this__u8e3s4.encodedUser_1, _this__u8e3s4.encodedPassword_1);
2358
2380
  return this_0.toString();
2359
2381
  }
2360
2382
  function appendFile(_this__u8e3s4, host, encodedPath) {
2361
- _this__u8e3s4.o2('://');
2362
- _this__u8e3s4.o2(host);
2383
+ _this__u8e3s4.append_jgojdo_k$('://');
2384
+ _this__u8e3s4.append_jgojdo_k$(host);
2363
2385
  if (!startsWith_0(encodedPath, _Char___init__impl__6a9atx(47))) {
2364
- _this__u8e3s4.k1(_Char___init__impl__6a9atx(47));
2386
+ _this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(47));
2365
2387
  }
2366
- _this__u8e3s4.o2(encodedPath);
2388
+ _this__u8e3s4.append_jgojdo_k$(encodedPath);
2367
2389
  }
2368
2390
  function set_encodedPath(_this__u8e3s4, value) {
2369
- _this__u8e3s4.r4j_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
2391
+ _this__u8e3s4.encodedPathSegments_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
2370
2392
  }
2371
2393
  function get_encodedPath(_this__u8e3s4) {
2372
- return joinPath(_this__u8e3s4.r4j_1);
2394
+ return joinPath(_this__u8e3s4.encodedPathSegments_1);
2373
2395
  }
2374
2396
  function appendMailto(_this__u8e3s4, encodedUser, host) {
2375
- _this__u8e3s4.o2(':');
2376
- _this__u8e3s4.o2(encodedUser);
2377
- _this__u8e3s4.o2(host);
2397
+ _this__u8e3s4.append_jgojdo_k$(':');
2398
+ _this__u8e3s4.append_jgojdo_k$(encodedUser);
2399
+ _this__u8e3s4.append_jgojdo_k$(host);
2378
2400
  }
2379
2401
  function appendPayload(_this__u8e3s4, host) {
2380
- _this__u8e3s4.o2(':');
2381
- _this__u8e3s4.o2(host);
2402
+ _this__u8e3s4.append_jgojdo_k$(':');
2403
+ _this__u8e3s4.append_jgojdo_k$(host);
2382
2404
  }
2383
2405
  function joinPath(_this__u8e3s4) {
2384
- if (_this__u8e3s4.j1())
2406
+ if (_this__u8e3s4.isEmpty_y1axqb_k$())
2385
2407
  return '';
2386
- if (_this__u8e3s4.p2() === 1) {
2408
+ if (_this__u8e3s4.get_size_woubt6_k$() === 1) {
2387
2409
  // Inline function 'kotlin.text.isEmpty' call
2388
2410
  var this_0 = first_0(_this__u8e3s4);
2389
2411
  if (charSequenceLength(this_0) === 0)
@@ -2408,7 +2430,7 @@ function takeFrom(_this__u8e3s4, urlString) {
2408
2430
  var tmp_0;
2409
2431
  if ($p instanceof Error) {
2410
2432
  var cause = $p;
2411
- throw URLParserException.l4l(urlString, cause);
2433
+ throw URLParserException.new_io_ktor_http_URLParserException_eshv3g_k$(urlString, cause);
2412
2434
  } else {
2413
2435
  throw $p;
2414
2436
  }
@@ -2457,47 +2479,47 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
2457
2479
  var schemeLength = findScheme(urlString, startIndex, endIndex);
2458
2480
  if (schemeLength > 0) {
2459
2481
  var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
2460
- _this__u8e3s4.t4k(Companion_getInstance_7().m4l(scheme));
2482
+ _this__u8e3s4.set_protocol_4rvp64_k$(Companion_getInstance_8().createOrDefault_lkipzc_k$(scheme));
2461
2483
  startIndex = startIndex + (schemeLength + 1 | 0) | 0;
2462
2484
  }
2463
- if (_this__u8e3s4.w4j().u4j_1 === 'data') {
2464
- _this__u8e3s4.k4j_1 = substring(urlString, startIndex, endIndex);
2485
+ if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'data') {
2486
+ _this__u8e3s4.host_1 = substring(urlString, startIndex, endIndex);
2465
2487
  return _this__u8e3s4;
2466
2488
  }
2467
2489
  var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
2468
2490
  startIndex = startIndex + slashCount | 0;
2469
- if (_this__u8e3s4.w4j().u4j_1 === 'file') {
2491
+ if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'file') {
2470
2492
  parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
2471
2493
  return _this__u8e3s4;
2472
2494
  }
2473
- if (_this__u8e3s4.w4j().u4j_1 === 'mailto') {
2495
+ if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'mailto') {
2474
2496
  // Inline function 'kotlin.require' call
2475
2497
  // Inline function 'kotlin.require' call
2476
2498
  if (!(slashCount === 0)) {
2477
2499
  var message = 'Failed requirement.';
2478
- throw IllegalArgumentException.n2(toString(message));
2500
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message));
2479
2501
  }
2480
2502
  parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
2481
2503
  return _this__u8e3s4;
2482
2504
  }
2483
- if (_this__u8e3s4.w4j().u4j_1 === 'about') {
2505
+ if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'about') {
2484
2506
  // Inline function 'kotlin.require' call
2485
2507
  // Inline function 'kotlin.require' call
2486
2508
  if (!(slashCount === 0)) {
2487
2509
  var message_0 = 'Failed requirement.';
2488
- throw IllegalArgumentException.n2(toString(message_0));
2510
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message_0));
2489
2511
  }
2490
- _this__u8e3s4.k4j_1 = substring(urlString, startIndex, endIndex);
2512
+ _this__u8e3s4.host_1 = substring(urlString, startIndex, endIndex);
2491
2513
  return _this__u8e3s4;
2492
2514
  }
2493
- if (_this__u8e3s4.w4j().u4j_1 === 'tel') {
2515
+ if (_this__u8e3s4.get_protocol_mv93kx_k$().name_1 === 'tel') {
2494
2516
  // Inline function 'kotlin.require' call
2495
2517
  // Inline function 'kotlin.require' call
2496
2518
  if (!(slashCount === 0)) {
2497
2519
  var message_1 = 'Failed requirement.';
2498
- throw IllegalArgumentException.n2(toString(message_1));
2520
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message_1));
2499
2521
  }
2500
- _this__u8e3s4.k4j_1 = substring(urlString, startIndex, endIndex);
2522
+ _this__u8e3s4.host_1 = substring(urlString, startIndex, endIndex);
2501
2523
  return _this__u8e3s4;
2502
2524
  }
2503
2525
  if (slashCount >= 2) {
@@ -2515,10 +2537,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
2515
2537
  if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
2516
2538
  var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
2517
2539
  if (!(passwordIndex === -1)) {
2518
- _this__u8e3s4.o4j_1 = substring(urlString, startIndex, passwordIndex);
2519
- _this__u8e3s4.p4j_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
2540
+ _this__u8e3s4.encodedUser_1 = substring(urlString, startIndex, passwordIndex);
2541
+ _this__u8e3s4.encodedPassword_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
2520
2542
  } else {
2521
- _this__u8e3s4.o4j_1 = substring(urlString, startIndex, delimiter);
2543
+ _this__u8e3s4.encodedUser_1 = substring(urlString, startIndex, delimiter);
2522
2544
  }
2523
2545
  startIndex = delimiter + 1 | 0;
2524
2546
  } else {
@@ -2529,34 +2551,34 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
2529
2551
  }
2530
2552
  }
2531
2553
  if (startIndex >= endIndex) {
2532
- _this__u8e3s4.r4j_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
2554
+ _this__u8e3s4.encodedPathSegments_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
2533
2555
  return _this__u8e3s4;
2534
2556
  }
2535
- var tmp_0 = _this__u8e3s4;
2536
- var tmp_1;
2537
- if (slashCount === 0) {
2538
- tmp_1 = dropLast(_this__u8e3s4.r4j_1, 1);
2539
- } else {
2540
- tmp_1 = emptyList();
2541
- }
2542
- tmp_0.r4j_1 = tmp_1;
2543
2557
  // Inline function 'kotlin.takeIf' call
2544
2558
  var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
2545
- var tmp_2;
2546
- if (this_1 > 0) {
2547
- tmp_2 = this_1;
2559
+ var tmp_0;
2560
+ if (this_1 >= 0) {
2561
+ tmp_0 = this_1;
2548
2562
  } else {
2549
- tmp_2 = null;
2563
+ tmp_0 = null;
2550
2564
  }
2551
- var tmp1_elvis_lhs = tmp_2;
2565
+ var tmp1_elvis_lhs = tmp_0;
2552
2566
  var pathEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
2553
2567
  if (pathEnd > startIndex) {
2554
- var rawPath = substring(urlString, startIndex, pathEnd);
2568
+ var tmp_1 = _this__u8e3s4;
2569
+ var tmp_2;
2570
+ if (slashCount === 0) {
2571
+ tmp_2 = dropLast(_this__u8e3s4.encodedPathSegments_1, 1);
2572
+ } else {
2573
+ tmp_2 = emptyList();
2574
+ }
2575
+ tmp_1.encodedPathSegments_1 = tmp_2;
2576
+ var encodedPath = encodeURLPath(substring(urlString, startIndex, pathEnd), VOID, false);
2555
2577
  var tmp_3;
2556
2578
  var tmp_4;
2557
- if (_this__u8e3s4.r4j_1.p2() === 1) {
2579
+ if (_this__u8e3s4.encodedPathSegments_1.get_size_woubt6_k$() === 1) {
2558
2580
  // Inline function 'kotlin.text.isEmpty' call
2559
- var this_2 = first_0(_this__u8e3s4.r4j_1);
2581
+ var this_2 = first_0(_this__u8e3s4.encodedPathSegments_1);
2560
2582
  tmp_4 = charSequenceLength(this_2) === 0;
2561
2583
  } else {
2562
2584
  tmp_4 = false;
@@ -2564,13 +2586,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
2564
2586
  if (tmp_4) {
2565
2587
  tmp_3 = emptyList();
2566
2588
  } else {
2567
- tmp_3 = _this__u8e3s4.r4j_1;
2589
+ tmp_3 = _this__u8e3s4.encodedPathSegments_1;
2568
2590
  }
2569
2591
  var basePath = tmp_3;
2570
- var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
2571
- var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
2572
- _this__u8e3s4.r4j_1 = plus_0(basePath, relativePath);
2592
+ var encodedChunks = encodedPath === '/' ? get_ROOT_PATH() : split(encodedPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
2593
+ var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), encodedChunks);
2594
+ _this__u8e3s4.encodedPathSegments_1 = plus_0(basePath, relativePath);
2573
2595
  startIndex = pathEnd;
2596
+ } else if (slashCount === 0 && _this__u8e3s4.encodedPathSegments_1.isEmpty_y1axqb_k$() && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
2597
+ _this__u8e3s4.encodedPathSegments_1 = get_ROOT_PATH();
2598
+ } else if (slashCount > 0) {
2599
+ _this__u8e3s4.encodedPathSegments_1 = emptyList();
2574
2600
  }
2575
2601
  if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
2576
2602
  startIndex = parseQuery(_this__u8e3s4, urlString, startIndex, endIndex);
@@ -2590,7 +2616,7 @@ function findScheme(urlString, startIndex, endIndex) {
2590
2616
  var char = charCodeAt(urlString, current);
2591
2617
  if (char === _Char___init__impl__6a9atx(58)) {
2592
2618
  if (!(incorrectSchemePosition === -1)) {
2593
- throw IllegalArgumentException.n2('Illegal character in scheme at position ' + incorrectSchemePosition);
2619
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Illegal character in scheme at position ' + incorrectSchemePosition);
2594
2620
  }
2595
2621
  return current - startIndex | 0;
2596
2622
  }
@@ -2613,37 +2639,62 @@ function count(urlString, startIndex, endIndex, char) {
2613
2639
  }
2614
2640
  function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
2615
2641
  _init_properties_URLParser_kt__sf11to();
2642
+ var tmp;
2616
2643
  switch (slashCount) {
2617
2644
  case 1:
2618
- _this__u8e3s4.k4j_1 = '';
2619
- set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
2645
+ _this__u8e3s4.host_1 = '';
2646
+ tmp = startIndex;
2620
2647
  break;
2621
2648
  case 2:
2622
- var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
2623
- if (nextSlash === -1 || nextSlash === endIndex) {
2624
- _this__u8e3s4.k4j_1 = substring(urlString, startIndex, endIndex);
2625
- return Unit_instance;
2649
+ // Inline function 'kotlin.takeIf' call
2650
+
2651
+ var this_0 = indexOfAny(urlString, toCharArray('/?#'), startIndex);
2652
+ var tmp_0;
2653
+ if (startIndex <= this_0 ? this_0 < endIndex : false) {
2654
+ tmp_0 = this_0;
2655
+ } else {
2656
+ tmp_0 = null;
2626
2657
  }
2627
2658
 
2628
- _this__u8e3s4.k4j_1 = substring(urlString, startIndex, nextSlash);
2629
- set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
2659
+ var tmp1_elvis_lhs = tmp_0;
2660
+ var hostEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
2661
+ _this__u8e3s4.host_1 = substring(urlString, startIndex, hostEnd);
2662
+ tmp = hostEnd;
2630
2663
  break;
2631
2664
  case 3:
2632
- _this__u8e3s4.k4j_1 = '';
2633
- set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
2665
+ _this__u8e3s4.host_1 = '';
2666
+ tmp = startIndex;
2634
2667
  break;
2635
2668
  default:
2636
- throw IllegalArgumentException.n2('Invalid file url: ' + urlString);
2669
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Invalid file url: ' + urlString);
2637
2670
  }
2671
+ var pathStart = tmp;
2672
+ // Inline function 'kotlin.takeIf' call
2673
+ var this_1 = indexOfAny(urlString, toCharArray('?#'), pathStart);
2674
+ var tmp_1;
2675
+ if (this_1 >= 0) {
2676
+ tmp_1 = this_1;
2677
+ } else {
2678
+ tmp_1 = null;
2679
+ }
2680
+ var tmp2_elvis_lhs = tmp_1;
2681
+ var pathEnd = tmp2_elvis_lhs == null ? endIndex : tmp2_elvis_lhs;
2682
+ var path = encodeURLPath(substring(urlString, pathStart, pathEnd), VOID, false);
2683
+ set_encodedPath(_this__u8e3s4, slashCount === 3 ? '/' + path : path);
2684
+ var nextPartStart = pathEnd;
2685
+ if (nextPartStart < endIndex && charCodeAt(urlString, nextPartStart) === _Char___init__impl__6a9atx(63)) {
2686
+ nextPartStart = parseQuery(_this__u8e3s4, urlString, nextPartStart, endIndex);
2687
+ }
2688
+ parseFragment(_this__u8e3s4, urlString, nextPartStart, endIndex);
2638
2689
  }
2639
2690
  function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
2640
2691
  _init_properties_URLParser_kt__sf11to();
2641
2692
  var delimiter = indexOf_0(urlString, '@', startIndex);
2642
2693
  if (delimiter === -1) {
2643
- throw IllegalArgumentException.n2('Invalid mailto url: ' + urlString + ", it should contain '@'.");
2694
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
2644
2695
  }
2645
- _this__u8e3s4.a4l(decodeURLPart(substring(urlString, startIndex, delimiter)));
2646
- _this__u8e3s4.k4j_1 = substring(urlString, delimiter + 1 | 0, endIndex);
2696
+ _this__u8e3s4.set_user_5x9835_k$(decodeURLPart(substring(urlString, startIndex, delimiter)));
2697
+ _this__u8e3s4.host_1 = substring(urlString, delimiter + 1 | 0, endIndex);
2647
2698
  }
2648
2699
  function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
2649
2700
  _init_properties_URLParser_kt__sf11to();
@@ -2677,19 +2728,39 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
2677
2728
  }
2678
2729
  var tmp0_elvis_lhs = tmp;
2679
2730
  var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
2680
- _this__u8e3s4.k4j_1 = substring(urlString, startIndex, colonIndex);
2731
+ var hostValue = substring(urlString, startIndex, colonIndex);
2732
+ var tmp$ret$2;
2733
+ $l$block: {
2734
+ // Inline function 'kotlin.text.none' call
2735
+ var inductionVariable = 0;
2736
+ while (inductionVariable < charSequenceLength(hostValue)) {
2737
+ var element = charSequenceGet(hostValue, inductionVariable);
2738
+ inductionVariable = inductionVariable + 1 | 0;
2739
+ if (isWhitespace(element)) {
2740
+ tmp$ret$2 = false;
2741
+ break $l$block;
2742
+ }
2743
+ }
2744
+ tmp$ret$2 = true;
2745
+ }
2746
+ // Inline function 'kotlin.require' call
2747
+ if (!tmp$ret$2) {
2748
+ var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
2749
+ throw IllegalArgumentException.new_kotlin_IllegalArgumentException_sfqr8_k$(toString_0(message));
2750
+ }
2751
+ _this__u8e3s4.host_1 = hostValue;
2681
2752
  var tmp_0;
2682
2753
  if ((colonIndex + 1 | 0) < endIndex) {
2683
2754
  tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
2684
2755
  } else {
2685
2756
  tmp_0 = 0;
2686
2757
  }
2687
- _this__u8e3s4.s4k(tmp_0);
2758
+ _this__u8e3s4.set_port_gcpocq_k$(tmp_0);
2688
2759
  }
2689
2760
  function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
2690
2761
  _init_properties_URLParser_kt__sf11to();
2691
2762
  if ((startIndex + 1 | 0) === endIndex) {
2692
- _this__u8e3s4.l4j_1 = true;
2763
+ _this__u8e3s4.trailingQuery_1 = true;
2693
2764
  return endIndex;
2694
2765
  }
2695
2766
  // Inline function 'kotlin.takeIf' call
@@ -2703,18 +2774,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
2703
2774
  var tmp0_elvis_lhs = tmp;
2704
2775
  var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
2705
2776
  var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
2706
- rawParameters.j44(parseQuery$lambda(_this__u8e3s4));
2777
+ rawParameters.forEach_jocloe_k$(parseQuery$lambda(_this__u8e3s4));
2707
2778
  return fragmentStart;
2708
2779
  }
2709
2780
  function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
2710
2781
  _init_properties_URLParser_kt__sf11to();
2711
2782
  if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
2712
- _this__u8e3s4.q4j_1 = substring(urlString, startIndex + 1 | 0, endIndex);
2783
+ _this__u8e3s4.encodedFragment_1 = substring(urlString, startIndex + 1 | 0, endIndex);
2713
2784
  }
2714
2785
  }
2715
2786
  function parseQuery$lambda($this_parseQuery) {
2716
2787
  return (key, values) => {
2717
- $this_parseQuery.s4j_1.y43(key, values);
2788
+ $this_parseQuery.encodedParameters_1.appendAll_ytnfgb_k$(key, values);
2718
2789
  return Unit_instance;
2719
2790
  };
2720
2791
  }
@@ -2722,38 +2793,41 @@ var properties_initialized_URLParser_kt_hd1g6a;
2722
2793
  function _init_properties_URLParser_kt__sf11to() {
2723
2794
  if (!properties_initialized_URLParser_kt_hd1g6a) {
2724
2795
  properties_initialized_URLParser_kt_hd1g6a = true;
2725
- ROOT_PATH = listOf_0('');
2796
+ ROOT_PATH = listOf('');
2726
2797
  }
2727
2798
  }
2728
- var Companion_instance_7;
2729
- function Companion_getInstance_7() {
2730
- if (Companion_instance_7 === VOID)
2731
- new Companion_7();
2732
- return Companion_instance_7;
2799
+ var Companion_instance_8;
2800
+ function Companion_getInstance_8() {
2801
+ if (Companion_instance_8 === VOID)
2802
+ new Companion_8();
2803
+ return Companion_instance_8;
2733
2804
  }
2734
2805
  function isSecure(_this__u8e3s4) {
2735
- return _this__u8e3s4.u4j_1 === 'https' || _this__u8e3s4.u4j_1 === 'wss';
2806
+ return _this__u8e3s4.name_1 === 'https' || _this__u8e3s4.name_1 === 'wss';
2736
2807
  }
2737
2808
  function isWebsocket(_this__u8e3s4) {
2738
- return _this__u8e3s4.u4j_1 === 'ws' || _this__u8e3s4.u4j_1 === 'wss';
2809
+ return _this__u8e3s4.name_1 === 'ws' || _this__u8e3s4.name_1 === 'wss';
2739
2810
  }
2740
2811
  function takeFrom_0(_this__u8e3s4, url) {
2741
- _this__u8e3s4.n4j_1 = url.n4j_1;
2742
- _this__u8e3s4.k4j_1 = url.k4j_1;
2743
- _this__u8e3s4.s4k(url.m4j_1);
2744
- _this__u8e3s4.r4j_1 = url.r4j_1;
2745
- _this__u8e3s4.o4j_1 = url.o4j_1;
2746
- _this__u8e3s4.p4j_1 = url.p4j_1;
2812
+ _this__u8e3s4.protocolOrNull_1 = url.protocolOrNull_1;
2813
+ _this__u8e3s4.host_1 = url.host_1;
2814
+ _this__u8e3s4.set_port_gcpocq_k$(url.port_1);
2815
+ _this__u8e3s4.encodedPathSegments_1 = url.encodedPathSegments_1;
2816
+ _this__u8e3s4.encodedUser_1 = url.encodedUser_1;
2817
+ _this__u8e3s4.encodedPassword_1 = url.encodedPassword_1;
2747
2818
  // Inline function 'kotlin.apply' call
2748
2819
  var this_0 = ParametersBuilder();
2749
- appendAll(this_0, url.s4j_1);
2750
- _this__u8e3s4.f4l(this_0);
2751
- _this__u8e3s4.q4j_1 = url.q4j_1;
2752
- _this__u8e3s4.l4j_1 = url.l4j_1;
2820
+ appendAll(this_0, url.encodedParameters_1);
2821
+ _this__u8e3s4.set_encodedParameters_t3ck1r_k$(this_0);
2822
+ _this__u8e3s4.encodedFragment_1 = url.encodedFragment_1;
2823
+ _this__u8e3s4.trailingQuery_1 = url.trailingQuery_1;
2753
2824
  return _this__u8e3s4;
2754
2825
  }
2826
+ function get_hostWithPort(_this__u8e3s4) {
2827
+ return _this__u8e3s4.host_1 + ':' + _this__u8e3s4.get_port_wosj4a_k$();
2828
+ }
2755
2829
  function Url_0(urlString) {
2756
- return URLBuilder_0(urlString).y1y();
2830
+ return URLBuilder_0(urlString).build_1k0s4u_k$();
2757
2831
  }
2758
2832
  function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
2759
2833
  var tmp;
@@ -2764,35 +2838,35 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
2764
2838
  tmp = false;
2765
2839
  }
2766
2840
  if (tmp) {
2767
- _this__u8e3s4.k1(_Char___init__impl__6a9atx(47));
2841
+ _this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(47));
2768
2842
  }
2769
- _this__u8e3s4.o2(encodedPath);
2770
- if (!encodedQueryParameters.j1() || trailingQuery) {
2771
- _this__u8e3s4.o2('?');
2843
+ _this__u8e3s4.append_jgojdo_k$(encodedPath);
2844
+ if (!encodedQueryParameters.isEmpty_y1axqb_k$() || trailingQuery) {
2845
+ _this__u8e3s4.append_jgojdo_k$('?');
2772
2846
  }
2773
2847
  // Inline function 'kotlin.collections.flatMap' call
2774
- var tmp0 = encodedQueryParameters.x43();
2848
+ var tmp0 = encodedQueryParameters.entries_qbkxv4_k$();
2775
2849
  // Inline function 'kotlin.collections.flatMapTo' call
2776
- var destination = ArrayList.f2();
2777
- var _iterator__ex2g4s = tmp0.l1();
2778
- while (_iterator__ex2g4s.m1()) {
2779
- var element = _iterator__ex2g4s.n1();
2850
+ var destination = ArrayList.new_kotlin_collections_ArrayList_ony0vx_k$();
2851
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
2852
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
2853
+ var element = _iterator__ex2g4s.next_20eer_k$();
2780
2854
  // Inline function 'kotlin.collections.component1' call
2781
- var key = element.a3();
2855
+ var key = element.get_key_18j28a_k$();
2782
2856
  // Inline function 'kotlin.collections.component2' call
2783
- var value = element.b3();
2857
+ var value = element.get_value_j01efc_k$();
2784
2858
  var tmp_0;
2785
- if (value.j1()) {
2786
- tmp_0 = listOf_0(to(key, null));
2859
+ if (value.isEmpty_y1axqb_k$()) {
2860
+ tmp_0 = listOf(to(key, null));
2787
2861
  } else {
2788
2862
  // Inline function 'kotlin.collections.map' call
2789
2863
  // Inline function 'kotlin.collections.mapTo' call
2790
- var destination_0 = ArrayList.d2(collectionSizeOrDefault(value, 10));
2791
- var _iterator__ex2g4s_0 = value.l1();
2792
- while (_iterator__ex2g4s_0.m1()) {
2793
- var item = _iterator__ex2g4s_0.n1();
2864
+ var destination_0 = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(value, 10));
2865
+ var _iterator__ex2g4s_0 = value.iterator_jk1svi_k$();
2866
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
2867
+ var item = _iterator__ex2g4s_0.next_20eer_k$();
2794
2868
  var tmp$ret$8 = to(key, item);
2795
- destination_0.e2(tmp$ret$8);
2869
+ destination_0.add_utx5q5_k$(tmp$ret$8);
2796
2870
  }
2797
2871
  tmp_0 = destination_0;
2798
2872
  }
@@ -2806,42 +2880,39 @@ function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
2806
2880
  if (encodedUser == null) {
2807
2881
  return Unit_instance;
2808
2882
  }
2809
- _this__u8e3s4.i1(encodedUser);
2883
+ _this__u8e3s4.append_22ad7x_k$(encodedUser);
2810
2884
  if (!(encodedPassword == null)) {
2811
- _this__u8e3s4.k1(_Char___init__impl__6a9atx(58));
2812
- _this__u8e3s4.i1(encodedPassword);
2885
+ _this__u8e3s4.append_58al37_k$(_Char___init__impl__6a9atx(58));
2886
+ _this__u8e3s4.append_22ad7x_k$(encodedPassword);
2813
2887
  }
2814
- _this__u8e3s4.i1('@');
2888
+ _this__u8e3s4.append_22ad7x_k$('@');
2815
2889
  }
2816
2890
  function URLBuilder_0(urlString) {
2817
2891
  return takeFrom(new URLBuilder(), urlString);
2818
2892
  }
2819
2893
  function get_hostWithPortIfSpecified(_this__u8e3s4) {
2820
- var tmp0_subject = _this__u8e3s4.y4j_1;
2821
- return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.j4k_1.v4j_1 ? _this__u8e3s4.x4j_1 : get_hostWithPort(_this__u8e3s4);
2822
- }
2823
- function get_hostWithPort(_this__u8e3s4) {
2824
- return _this__u8e3s4.x4j_1 + ':' + _this__u8e3s4.n4l();
2894
+ var tmp0_subject = _this__u8e3s4.specifiedPort_1;
2895
+ return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.protocol_1.defaultPort_1 ? _this__u8e3s4.host_1 : get_hostWithPort(_this__u8e3s4);
2825
2896
  }
2826
2897
  function appendUrlFullPath$lambda(it) {
2827
- var key = it.df_1;
2898
+ var key = it.first_1;
2828
2899
  var tmp;
2829
- if (it.ef_1 == null) {
2900
+ if (it.second_1 == null) {
2830
2901
  tmp = key;
2831
2902
  } else {
2832
- var value = toString_1(it.ef_1);
2903
+ var value = toString_1(it.second_1);
2833
2904
  tmp = key + '=' + value;
2834
2905
  }
2835
2906
  return tmp;
2836
2907
  }
2837
- var Companion_instance_8;
2838
- function Companion_getInstance_8() {
2839
- return Companion_instance_8;
2908
+ var Companion_instance_9;
2909
+ function Companion_getInstance_9() {
2910
+ return Companion_instance_9;
2840
2911
  }
2841
2912
  function Url$segments$delegate$lambda($pathSegments) {
2842
2913
  return () => {
2843
2914
  var tmp;
2844
- if ($pathSegments.j1()) {
2915
+ if ($pathSegments.isEmpty_y1axqb_k$()) {
2845
2916
  return emptyList();
2846
2917
  }
2847
2918
  var tmp_0;
@@ -2849,7 +2920,7 @@ function Url$segments$delegate$lambda($pathSegments) {
2849
2920
  // Inline function 'kotlin.text.isEmpty' call
2850
2921
  var this_0 = first_0($pathSegments);
2851
2922
  if (charSequenceLength(this_0) === 0) {
2852
- tmp_1 = $pathSegments.p2() > 1;
2923
+ tmp_1 = $pathSegments.get_size_woubt6_k$() > 1;
2853
2924
  } else {
2854
2925
  tmp_1 = false;
2855
2926
  }
@@ -2868,118 +2939,118 @@ function Url$segments$delegate$lambda($pathSegments) {
2868
2939
  tmp_2 = get_lastIndex($pathSegments) + 1 | 0;
2869
2940
  }
2870
2941
  var end = tmp_2;
2871
- return $pathSegments.e4(start, end);
2942
+ return $pathSegments.subList_xle3r2_k$(start, end);
2872
2943
  };
2873
2944
  }
2874
2945
  function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
2875
2946
  return () => {
2876
2947
  var tmp;
2877
- if ($pathSegments.j1()) {
2948
+ if ($pathSegments.isEmpty_y1axqb_k$()) {
2878
2949
  return '';
2879
2950
  }
2880
- var pathStartIndex = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(47), this$0.j4k_1.u4j_1.length + 3 | 0);
2951
+ var pathStartIndex = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(47), this$0.protocol_1.name_1.length + 3 | 0);
2881
2952
  var tmp_0;
2882
2953
  if (pathStartIndex === -1) {
2883
2954
  return '';
2884
2955
  }
2885
2956
  // Inline function 'kotlin.charArrayOf' call
2886
2957
  var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
2887
- var pathEndIndex = indexOfAny(this$0.e4k_1, tmp$ret$0, pathStartIndex);
2958
+ var pathEndIndex = indexOfAny(this$0.urlString_1, tmp$ret$0, pathStartIndex);
2888
2959
  var tmp_1;
2889
2960
  if (pathEndIndex === -1) {
2890
- return substring_0(this$0.e4k_1, pathStartIndex);
2961
+ return substring_0(this$0.urlString_1, pathStartIndex);
2891
2962
  }
2892
- return substring(this$0.e4k_1, pathStartIndex, pathEndIndex);
2963
+ return substring(this$0.urlString_1, pathStartIndex, pathEndIndex);
2893
2964
  };
2894
2965
  }
2895
2966
  function Url$encodedQuery$delegate$lambda(this$0) {
2896
2967
  return () => {
2897
- var queryStart = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
2968
+ var queryStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
2898
2969
  var tmp;
2899
2970
  if (queryStart === 0) {
2900
2971
  return '';
2901
2972
  }
2902
- var queryEnd = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(35), queryStart);
2973
+ var queryEnd = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(35), queryStart);
2903
2974
  var tmp_0;
2904
2975
  if (queryEnd === -1) {
2905
- return substring_0(this$0.e4k_1, queryStart);
2976
+ return substring_0(this$0.urlString_1, queryStart);
2906
2977
  }
2907
- return substring(this$0.e4k_1, queryStart, queryEnd);
2978
+ return substring(this$0.urlString_1, queryStart, queryEnd);
2908
2979
  };
2909
2980
  }
2910
2981
  function Url$encodedPathAndQuery$delegate$lambda(this$0) {
2911
2982
  return () => {
2912
- var pathStart = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(47), this$0.j4k_1.u4j_1.length + 3 | 0);
2983
+ var pathStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(47), this$0.protocol_1.name_1.length + 3 | 0);
2913
2984
  var tmp;
2914
2985
  if (pathStart === -1) {
2915
2986
  return '';
2916
2987
  }
2917
- var queryEnd = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(35), pathStart);
2988
+ var queryEnd = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(35), pathStart);
2918
2989
  var tmp_0;
2919
2990
  if (queryEnd === -1) {
2920
- return substring_0(this$0.e4k_1, pathStart);
2991
+ return substring_0(this$0.urlString_1, pathStart);
2921
2992
  }
2922
- return substring(this$0.e4k_1, pathStart, queryEnd);
2993
+ return substring(this$0.urlString_1, pathStart, queryEnd);
2923
2994
  };
2924
2995
  }
2925
2996
  function Url$encodedUser$delegate$lambda(this$0) {
2926
2997
  return () => {
2927
2998
  var tmp;
2928
- if (this$0.b4k_1 == null) {
2999
+ if (this$0.user_1 == null) {
2929
3000
  return null;
2930
3001
  }
2931
3002
  var tmp_0;
2932
3003
  // Inline function 'kotlin.text.isEmpty' call
2933
- var this_0 = this$0.b4k_1;
3004
+ var this_0 = this$0.user_1;
2934
3005
  if (charSequenceLength(this_0) === 0) {
2935
3006
  return '';
2936
3007
  }
2937
- var usernameStart = this$0.j4k_1.u4j_1.length + 3 | 0;
3008
+ var usernameStart = this$0.protocol_1.name_1.length + 3 | 0;
2938
3009
  // Inline function 'kotlin.charArrayOf' call
2939
3010
  var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
2940
- var usernameEnd = indexOfAny(this$0.e4k_1, tmp$ret$1, usernameStart);
2941
- return substring(this$0.e4k_1, usernameStart, usernameEnd);
3011
+ var usernameEnd = indexOfAny(this$0.urlString_1, tmp$ret$1, usernameStart);
3012
+ return substring(this$0.urlString_1, usernameStart, usernameEnd);
2942
3013
  };
2943
3014
  }
2944
3015
  function Url$_get_encodedUser_$ref_3lb9bi() {
2945
- return constructCallableReference((p0) => p0.o4l(), 1, 0, 83);
3016
+ return constructCallableReference((p0) => p0.get_encodedUser_p9wcq8_k$(), 1, 0, 84);
2946
3017
  }
2947
3018
  function Url$encodedPassword$delegate$lambda(this$0) {
2948
3019
  return () => {
2949
3020
  var tmp;
2950
- if (this$0.c4k_1 == null) {
3021
+ if (this$0.password_1 == null) {
2951
3022
  return null;
2952
3023
  }
2953
3024
  var tmp_0;
2954
3025
  // Inline function 'kotlin.text.isEmpty' call
2955
- var this_0 = this$0.c4k_1;
3026
+ var this_0 = this$0.password_1;
2956
3027
  if (charSequenceLength(this_0) === 0) {
2957
3028
  return '';
2958
3029
  }
2959
- var passwordStart = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(58), this$0.j4k_1.u4j_1.length + 3 | 0) + 1 | 0;
2960
- var passwordEnd = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(64));
2961
- return substring(this$0.e4k_1, passwordStart, passwordEnd);
3030
+ var passwordStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(58), this$0.protocol_1.name_1.length + 3 | 0) + 1 | 0;
3031
+ var passwordEnd = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(64));
3032
+ return substring(this$0.urlString_1, passwordStart, passwordEnd);
2962
3033
  };
2963
3034
  }
2964
3035
  function Url$_get_encodedPassword_$ref_25ixc2() {
2965
- return constructCallableReference((p0) => p0.p4l(), 1, 0, 84);
3036
+ return constructCallableReference((p0) => p0.get_encodedPassword_rswp28_k$(), 1, 0, 85);
2966
3037
  }
2967
3038
  function Url$encodedFragment$delegate$lambda(this$0) {
2968
3039
  return () => {
2969
- var fragmentStart = indexOf(this$0.e4k_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
3040
+ var fragmentStart = indexOf(this$0.urlString_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
2970
3041
  var tmp;
2971
3042
  if (fragmentStart === 0) {
2972
3043
  return '';
2973
3044
  }
2974
- return substring_0(this$0.e4k_1, fragmentStart);
3045
+ return substring_0(this$0.urlString_1, fragmentStart);
2975
3046
  };
2976
3047
  }
2977
3048
  function get_authority_0(_this__u8e3s4) {
2978
3049
  // Inline function 'kotlin.text.buildString' call
2979
3050
  // Inline function 'kotlin.apply' call
2980
- var this_0 = StringBuilder.h1();
2981
- this_0.i1(get_encodedUserAndPassword_0(_this__u8e3s4));
2982
- this_0.i1(get_hostWithPortIfSpecified(_this__u8e3s4));
3051
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
3052
+ this_0.append_22ad7x_k$(get_encodedUserAndPassword_0(_this__u8e3s4));
3053
+ this_0.append_22ad7x_k$(get_hostWithPortIfSpecified(_this__u8e3s4));
2983
3054
  return this_0.toString();
2984
3055
  }
2985
3056
  var UrlSerializer_instance;
@@ -2991,8 +3062,8 @@ function UrlSerializer_getInstance() {
2991
3062
  function get_encodedUserAndPassword_0(_this__u8e3s4) {
2992
3063
  // Inline function 'kotlin.text.buildString' call
2993
3064
  // Inline function 'kotlin.apply' call
2994
- var this_0 = StringBuilder.h1();
2995
- appendUserAndPassword(this_0, _this__u8e3s4.o4l(), _this__u8e3s4.p4l());
3065
+ var this_0 = StringBuilder.new_kotlin_text_StringBuilder_u46mrb_k$();
3066
+ appendUserAndPassword(this_0, _this__u8e3s4.get_encodedUser_p9wcq8_k$(), _this__u8e3s4.get_encodedPassword_rswp28_k$());
2996
3067
  return this_0.toString();
2997
3068
  }
2998
3069
  function encodeParameters(parameters) {
@@ -3005,46 +3076,46 @@ function decodeParameters(parameters) {
3005
3076
  // Inline function 'kotlin.apply' call
3006
3077
  var this_0 = ParametersBuilder();
3007
3078
  appendAllDecoded(this_0, parameters);
3008
- return this_0.y1y();
3079
+ return this_0.build_1k0s4u_k$();
3009
3080
  }
3010
3081
  function appendAllEncoded(_this__u8e3s4, parameters) {
3011
3082
  // Inline function 'kotlin.collections.forEach' call
3012
- var _iterator__ex2g4s = parameters.e44().l1();
3013
- while (_iterator__ex2g4s.m1()) {
3014
- var element = _iterator__ex2g4s.n1();
3015
- var tmp0_elvis_lhs = parameters.d44(element);
3083
+ var _iterator__ex2g4s = parameters.names_1q9mbs_k$().iterator_jk1svi_k$();
3084
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
3085
+ var element = _iterator__ex2g4s.next_20eer_k$();
3086
+ var tmp0_elvis_lhs = parameters.getAll_ffxf4h_k$(element);
3016
3087
  var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
3017
3088
  var tmp = encodeURLParameter(element);
3018
3089
  // Inline function 'kotlin.collections.map' call
3019
3090
  // Inline function 'kotlin.collections.mapTo' call
3020
- var destination = ArrayList.d2(collectionSizeOrDefault(values, 10));
3021
- var _iterator__ex2g4s_0 = values.l1();
3022
- while (_iterator__ex2g4s_0.m1()) {
3023
- var item = _iterator__ex2g4s_0.n1();
3091
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(values, 10));
3092
+ var _iterator__ex2g4s_0 = values.iterator_jk1svi_k$();
3093
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
3094
+ var item = _iterator__ex2g4s_0.next_20eer_k$();
3024
3095
  var tmp$ret$4 = encodeURLParameterValue(item);
3025
- destination.e2(tmp$ret$4);
3096
+ destination.add_utx5q5_k$(tmp$ret$4);
3026
3097
  }
3027
- _this__u8e3s4.y43(tmp, destination);
3098
+ _this__u8e3s4.appendAll_ytnfgb_k$(tmp, destination);
3028
3099
  }
3029
3100
  }
3030
3101
  function appendAllDecoded(_this__u8e3s4, parameters) {
3031
3102
  // Inline function 'kotlin.collections.forEach' call
3032
- var _iterator__ex2g4s = parameters.e44().l1();
3033
- while (_iterator__ex2g4s.m1()) {
3034
- var element = _iterator__ex2g4s.n1();
3035
- var tmp0_elvis_lhs = parameters.d44(element);
3103
+ var _iterator__ex2g4s = parameters.names_1q9mbs_k$().iterator_jk1svi_k$();
3104
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
3105
+ var element = _iterator__ex2g4s.next_20eer_k$();
3106
+ var tmp0_elvis_lhs = parameters.getAll_ffxf4h_k$(element);
3036
3107
  var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
3037
3108
  var tmp = decodeURLQueryComponent(element);
3038
3109
  // Inline function 'kotlin.collections.map' call
3039
3110
  // Inline function 'kotlin.collections.mapTo' call
3040
- var destination = ArrayList.d2(collectionSizeOrDefault(values, 10));
3041
- var _iterator__ex2g4s_0 = values.l1();
3042
- while (_iterator__ex2g4s_0.m1()) {
3043
- var item = _iterator__ex2g4s_0.n1();
3111
+ var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$(collectionSizeOrDefault(values, 10));
3112
+ var _iterator__ex2g4s_0 = values.iterator_jk1svi_k$();
3113
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
3114
+ var item = _iterator__ex2g4s_0.next_20eer_k$();
3044
3115
  var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
3045
- destination.e2(tmp$ret$4);
3116
+ destination.add_utx5q5_k$(tmp$ret$4);
3046
3117
  }
3047
- _this__u8e3s4.y43(tmp, destination);
3118
+ _this__u8e3s4.appendAll_ytnfgb_k$(tmp, destination);
3048
3119
  }
3049
3120
  }
3050
3121
  var NullBody_instance;
@@ -3057,7 +3128,7 @@ function isEmpty(_this__u8e3s4) {
3057
3128
  tmp = true;
3058
3129
  } else {
3059
3130
  if (_this__u8e3s4 instanceof ContentWrapper) {
3060
- tmp = isEmpty(_this__u8e3s4.j4m());
3131
+ tmp = isEmpty(_this__u8e3s4.delegate_djsx39_k$());
3061
3132
  } else {
3062
3133
  tmp = false;
3063
3134
  }
@@ -3065,7 +3136,7 @@ function isEmpty(_this__u8e3s4) {
3065
3136
  return tmp;
3066
3137
  }
3067
3138
  function get_origin(_this__u8e3s4) {
3068
- return PlatformUtils_getInstance().p43_1 ? locationOrigin() : 'http://localhost';
3139
+ return PlatformUtils_getInstance().IS_BROWSER_1 ? locationOrigin() : 'http://localhost';
3069
3140
  }
3070
3141
  function locationOrigin() {
3071
3142
  return function () {
@@ -3083,47 +3154,49 @@ function locationOrigin() {
3083
3154
  }();
3084
3155
  }
3085
3156
  //region block: post-declaration
3086
- initMetadataForClass(URLDecodeException, 'URLDecodeException');
3087
3157
  initMetadataForCompanion(Companion);
3158
+ initMetadataForClass(AsciiBitSet, 'AsciiBitSet');
3159
+ initMetadataForClass(URLDecodeException, 'URLDecodeException');
3160
+ initMetadataForCompanion(Companion_0);
3088
3161
  initMetadataForObject(Application, 'Application');
3089
3162
  initMetadataForObject(MultiPart, 'MultiPart');
3090
3163
  initMetadataForObject(Text, 'Text');
3091
3164
  initMetadataForClass(HeaderValueWithParameters, 'HeaderValueWithParameters');
3092
3165
  initMetadataForClass(ContentType, 'ContentType');
3093
3166
  initMetadataForClass(BadContentTypeFormatException, 'BadContentTypeFormatException');
3094
- initMetadataForCompanion(Companion_0);
3095
- initMetadataForClass(HeadersBuilder, 'HeadersBuilder', HeadersBuilder);
3096
3167
  initMetadataForCompanion(Companion_1);
3168
+ initMetadataForClass(HeadersBuilder, 'HeadersBuilder', HeadersBuilder);
3169
+ initMetadataForCompanion(Companion_2);
3097
3170
  initMetadataForClass(HeadersImpl, 'HeadersImpl', HeadersImpl, VOID, [StringValues]);
3098
- protoOf(EmptyHeaders).p1i = get;
3099
- protoOf(EmptyHeaders).j44 = forEach;
3171
+ protoOf(EmptyHeaders).get_6bo4tg_k$ = get;
3172
+ protoOf(EmptyHeaders).forEach_jocloe_k$ = forEach;
3100
3173
  initMetadataForObject(EmptyHeaders, 'EmptyHeaders', VOID, VOID, [StringValues]);
3101
3174
  initMetadataForClass(HeadersSingleImpl, 'HeadersSingleImpl', VOID, VOID, [StringValues]);
3102
- initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
3103
3175
  initMetadataForClass(HeaderValue, 'HeaderValue');
3176
+ initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
3104
3177
  initMetadataForObject(HttpHeaders, 'HttpHeaders');
3105
3178
  initMetadataForClass(UnsafeHeaderException, 'UnsafeHeaderException');
3106
3179
  initMetadataForClass(IllegalHeaderNameException, 'IllegalHeaderNameException');
3107
3180
  initMetadataForClass(IllegalHeaderValueException, 'IllegalHeaderValueException');
3108
- initMetadataForCompanion(Companion_2);
3109
- initMetadataForClass(HttpMethod, 'HttpMethod');
3110
3181
  initMetadataForCompanion(Companion_3);
3111
- initMetadataForClass(HttpProtocolVersion, 'HttpProtocolVersion');
3182
+ initMetadataForClass(HttpMethod, 'HttpMethod');
3112
3183
  initMetadataForCompanion(Companion_4);
3113
- initMetadataForClass(HttpStatusCode, 'HttpStatusCode', VOID, VOID, [Comparable]);
3184
+ initMetadataForClass(HttpProtocolVersion, 'HttpProtocolVersion');
3114
3185
  initMetadataForCompanion(Companion_5);
3186
+ initMetadataForClass(HttpStatusCode, 'HttpStatusCode', VOID, VOID, [Comparable]);
3187
+ initMetadataForCompanion(Companion_6);
3115
3188
  initMetadataForInterface(Parameters, 'Parameters', VOID, VOID, [StringValues]);
3116
- protoOf(EmptyParameters).p1i = get;
3117
- protoOf(EmptyParameters).j44 = forEach;
3189
+ protoOf(EmptyParameters).get_6bo4tg_k$ = get;
3190
+ protoOf(EmptyParameters).forEach_jocloe_k$ = forEach;
3118
3191
  initMetadataForObject(EmptyParameters, 'EmptyParameters', VOID, VOID, [Parameters]);
3119
3192
  initMetadataForClass(ParametersBuilderImpl, 'ParametersBuilderImpl', ParametersBuilderImpl);
3120
3193
  initMetadataForClass(ParametersImpl, 'ParametersImpl', ParametersImpl, VOID, [Parameters]);
3121
- initMetadataForCompanion(Companion_6);
3194
+ initMetadataForCompanion(Companion_7);
3122
3195
  initMetadataForClass(URLBuilder, 'URLBuilder', URLBuilder);
3123
3196
  initMetadataForClass(URLParserException, 'URLParserException');
3124
- initMetadataForCompanion(Companion_7);
3125
- initMetadataForClass(URLProtocol, 'URLProtocol');
3126
3197
  initMetadataForCompanion(Companion_8);
3198
+ initMetadataForClass(URLProtocol, 'URLProtocol');
3199
+ initMetadataForCompanion(Companion_9);
3127
3200
  initMetadataForClass(Url, 'Url', VOID, VOID, VOID, VOID, VOID, {0: UrlSerializer_getInstance});
3128
3201
  initMetadataForObject(UrlSerializer, 'UrlSerializer', VOID, VOID, [KSerializer]);
3129
3202
  initMetadataForClass(UrlDecodedParametersBuilder, 'UrlDecodedParametersBuilder');
@@ -3140,24 +3213,25 @@ initMetadataForObject(NullBody, 'NullBody');
3140
3213
  initMetadataForClass(TextContent, 'TextContent');
3141
3214
  //endregion
3142
3215
  //region block: init
3143
- Companion_instance_0 = new Companion_0();
3216
+ Companion_instance = new Companion();
3217
+ Companion_instance_1 = new Companion_1();
3144
3218
  EmptyHeaders_instance = new EmptyHeaders();
3145
3219
  EmptyParameters_instance = new EmptyParameters();
3146
- Companion_instance_8 = new Companion_8();
3220
+ Companion_instance_9 = new Companion_9();
3147
3221
  NullBody_instance = new NullBody();
3148
3222
  //endregion
3149
3223
  //region block: exports
3150
3224
  export {
3151
- NullBody_instance as NullBody_instanceyfq32eqie90j,
3152
- Application_getInstance as Application_getInstance17ubdrb0i0ohu,
3153
- Companion_getInstance as Companion_getInstance3eu9tsw6r4gc4,
3154
- MultiPart_getInstance as MultiPart_getInstance1k6b6wx1k1sjr,
3155
- Text_getInstance as Text_getInstancecnzpw4phsgym,
3156
- Companion_getInstance_1 as Companion_getInstance37paccmlttr9s,
3157
- HttpHeaders_getInstance as HttpHeaders_getInstance3m47m69p49qfb,
3158
- Companion_getInstance_2 as Companion_getInstance1pptfj8vjmgsz,
3159
- Companion_getInstance_3 as Companion_getInstance222gjh8cwt6g7,
3160
- Companion_getInstance_4 as Companion_getInstance2192nrpo98q6y,
3225
+ NullBody_instance as NullBody_instance22vwyocs8eppk,
3226
+ Application_getInstance as Application_getInstance3vhi2qmce4cj0,
3227
+ Companion_getInstance_0 as Companion_getInstance2mdqh2piyf0f8,
3228
+ MultiPart_getInstance as MultiPart_getInstance5h1nld8q49pe,
3229
+ Text_getInstance as Text_getInstance2n0fbbag7eq4k,
3230
+ Companion_getInstance_2 as Companion_getInstance72dans54qq1a,
3231
+ HttpHeaders_getInstance as HttpHeaders_getInstance1avhj7ffsen7f,
3232
+ Companion_getInstance_3 as Companion_getInstance29j9s2wnmk34z,
3233
+ Companion_getInstance_4 as Companion_getInstance32hwbrsal0o03,
3234
+ Companion_getInstance_5 as Companion_getInstanceu2wrlss616lb,
3161
3235
  ByteArrayContent_0 as ByteArrayContent9zol65b22hp0,
3162
3236
  MultiPartData as MultiPartData57syw40llxls,
3163
3237
  NullBody as NullBody1903zz7riiwr0,
@@ -3170,6 +3244,7 @@ export {
3170
3244
  OutgoingContent as OutgoingContent3t2ohmyam9o76,
3171
3245
  TextContent as TextContent1rb6ftlpvl1d2,
3172
3246
  isEmpty as isEmpty1yq29t926r0va,
3247
+ BadContentTypeFormatException as BadContentTypeFormatException2lqc4nmtnbgvk,
3173
3248
  ContentType as ContentType1svlpabm9v7iz,
3174
3249
  HeadersBuilder as HeadersBuilder3h7sn3kkvu98m,
3175
3250
  HttpStatusCode as HttpStatusCode3o1wkms10pg4k,
@@ -3186,6 +3261,7 @@ export {
3186
3261
  headersOf as headersOf2tgdoojg8tifn,
3187
3262
  isSecure as isSecurex1qiiavqi0xu,
3188
3263
  isWebsocket as isWebsocket1w1xog9vfgwm1,
3264
+ parseHeaderValue as parseHeaderValuealpos28fgp6t,
3189
3265
  get_supportsRequestBody as get_supportsRequestBodyjdtitrt33hir,
3190
3266
  takeFrom_0 as takeFromkqlcz7c6dx2r,
3191
3267
  takeFrom as takeFrom3rd40szpqy350,