@xiuper/mpp-core 0.0.2

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 (173) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +7836 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  3. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
  4. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
  5. package/Xiuper-mpp-codegraph.js +1471 -0
  6. package/Xiuper-mpp-codegraph.js.map +1 -0
  7. package/annotations.js +15 -0
  8. package/annotations.js.map +1 -0
  9. package/autodev-mpp-core.d.ts +1312 -0
  10. package/autodev-mpp-core.js +86483 -0
  11. package/autodev-mpp-core.js.map +1 -0
  12. package/kaml.js +3387 -0
  13. package/kaml.js.map +1 -0
  14. package/koog-agents-agents-core.js +22927 -0
  15. package/koog-agents-agents-core.js.map +1 -0
  16. package/koog-agents-agents-ext.js +15 -0
  17. package/koog-agents-agents-ext.js.map +1 -0
  18. package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
  19. package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
  20. package/koog-agents-agents-features-agents-features-memory.js +15 -0
  21. package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
  22. package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
  23. package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
  24. package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
  25. package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
  26. package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
  27. package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
  28. package/koog-agents-agents-features-agents-features-trace.js +15 -0
  29. package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
  30. package/koog-agents-agents-mcp.js +15 -0
  31. package/koog-agents-agents-mcp.js.map +1 -0
  32. package/koog-agents-agents-tools.js +322 -0
  33. package/koog-agents-agents-tools.js.map +1 -0
  34. package/koog-agents-agents-utils.js +232 -0
  35. package/koog-agents-agents-utils.js.map +1 -0
  36. package/koog-embeddings-embeddings-base.js +15 -0
  37. package/koog-embeddings-embeddings-base.js.map +1 -0
  38. package/koog-embeddings-embeddings-llm.js +15 -0
  39. package/koog-embeddings-embeddings-llm.js.map +1 -0
  40. package/koog-http-client-http-client-core.js +57 -0
  41. package/koog-http-client-http-client-core.js.map +1 -0
  42. package/koog-http-client-http-client-ktor.js +703 -0
  43. package/koog-http-client-http-client-ktor.js.map +1 -0
  44. package/koog-koog-agents.js +15 -0
  45. package/koog-koog-agents.js.map +1 -0
  46. package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
  47. package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
  48. package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
  49. package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
  50. package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
  51. package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
  52. package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
  53. package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
  54. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
  55. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
  56. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
  57. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
  58. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
  59. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
  60. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
  61. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
  62. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
  63. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
  64. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
  65. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
  66. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
  67. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
  68. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
  69. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
  70. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
  71. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
  72. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
  73. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
  74. package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
  75. package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
  76. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
  77. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
  78. package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
  79. package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
  80. package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
  81. package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
  82. package/koog-prompt-prompt-llm.js +1710 -0
  83. package/koog-prompt-prompt-llm.js.map +1 -0
  84. package/koog-prompt-prompt-markdown.js +122 -0
  85. package/koog-prompt-prompt-markdown.js.map +1 -0
  86. package/koog-prompt-prompt-model.js +5848 -0
  87. package/koog-prompt-prompt-model.js.map +1 -0
  88. package/koog-prompt-prompt-structure.js +1513 -0
  89. package/koog-prompt-prompt-structure.js.map +1 -0
  90. package/koog-prompt-prompt-tokenizer.js +15 -0
  91. package/koog-prompt-prompt-tokenizer.js.map +1 -0
  92. package/koog-prompt-prompt-xml.js +15 -0
  93. package/koog-prompt-prompt-xml.js.map +1 -0
  94. package/koog-rag-rag-base.js +15 -0
  95. package/koog-rag-rag-base.js.map +1 -0
  96. package/koog-rag-vector-storage.js +15 -0
  97. package/koog-rag-vector-storage.js.map +1 -0
  98. package/koog-utils.js +63 -0
  99. package/koog-utils.js.map +1 -0
  100. package/kotlin-kotlin-stdlib.js +18965 -0
  101. package/kotlin-kotlin-stdlib.js.map +1 -0
  102. package/kotlin-logging.js +509 -0
  103. package/kotlin-logging.js.map +1 -0
  104. package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
  105. package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
  106. package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
  107. package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
  108. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  109. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  110. package/kotlinx-atomicfu.js +259 -0
  111. package/kotlinx-atomicfu.js.map +1 -0
  112. package/kotlinx-coroutines-core.js +13742 -0
  113. package/kotlinx-coroutines-core.js.map +1 -0
  114. package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
  115. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  116. package/kotlinx-io-kotlinx-io-core.js +2892 -0
  117. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  118. package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
  119. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  120. package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
  121. package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
  122. package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
  123. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  124. package/ktor-ktor-client-content-negotiation.js +775 -0
  125. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  126. package/ktor-ktor-client-core.js +11110 -0
  127. package/ktor-ktor-client-core.js.map +1 -0
  128. package/ktor-ktor-client-logging.js +15 -0
  129. package/ktor-ktor-client-logging.js.map +1 -0
  130. package/ktor-ktor-events.js +126 -0
  131. package/ktor-ktor-events.js.map +1 -0
  132. package/ktor-ktor-http-cio.js +4257 -0
  133. package/ktor-ktor-http-cio.js.map +1 -0
  134. package/ktor-ktor-http.js +3671 -0
  135. package/ktor-ktor-http.js.map +1 -0
  136. package/ktor-ktor-io.js +4114 -0
  137. package/ktor-ktor-io.js.map +1 -0
  138. package/ktor-ktor-network.js +1399 -0
  139. package/ktor-ktor-network.js.map +1 -0
  140. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  141. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  142. package/ktor-ktor-serialization-kotlinx.js +881 -0
  143. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  144. package/ktor-ktor-serialization.js +388 -0
  145. package/ktor-ktor-serialization.js.map +1 -0
  146. package/ktor-ktor-server-cio.js +3735 -0
  147. package/ktor-ktor-server-cio.js.map +1 -0
  148. package/ktor-ktor-server-core.js +8696 -0
  149. package/ktor-ktor-server-core.js.map +1 -0
  150. package/ktor-ktor-server-sse.js +668 -0
  151. package/ktor-ktor-server-sse.js.map +1 -0
  152. package/ktor-ktor-server-websockets.js +15 -0
  153. package/ktor-ktor-server-websockets.js.map +1 -0
  154. package/ktor-ktor-sse.js +161 -0
  155. package/ktor-ktor-sse.js.map +1 -0
  156. package/ktor-ktor-utils.js +3589 -0
  157. package/ktor-ktor-utils.js.map +1 -0
  158. package/ktor-ktor-websocket-serialization.js +15 -0
  159. package/ktor-ktor-websocket-serialization.js.map +1 -0
  160. package/ktor-ktor-websockets.js +450 -0
  161. package/ktor-ktor-websockets.js.map +1 -0
  162. package/markdown.js +5174 -0
  163. package/markdown.js.map +1 -0
  164. package/okio-parent-okio.js +2628 -0
  165. package/okio-parent-okio.js.map +1 -0
  166. package/package.json +18 -0
  167. package/snakeyaml-engine-kmp.js +7079 -0
  168. package/snakeyaml-engine-kmp.js.map +1 -0
  169. package/urlencoder-urlencoder-lib.js +322 -0
  170. package/urlencoder-urlencoder-lib.js.map +1 -0
  171. package/xiuper-mpp-core.d.ts +1312 -0
  172. package/xiuper-mpp-core.js +86483 -0
  173. package/xiuper-mpp-core.js.map +1 -0
@@ -0,0 +1,2628 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'okio-parent-okio'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'okio-parent-okio'.");
9
+ }
10
+ globalThis['okio-parent-okio'] = factory(typeof globalThis['okio-parent-okio'] === 'undefined' ? {} : globalThis['okio-parent-okio'], globalThis['kotlin-kotlin-stdlib']);
11
+ }
12
+ }(function (_, kotlin_kotlin) {
13
+ 'use strict';
14
+ //region block: imports
15
+ var imul = Math.imul;
16
+ var protoOf = kotlin_kotlin.$_$.we;
17
+ var objectCreate = kotlin_kotlin.$_$.ve;
18
+ var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
19
+ var ensureNotNull = kotlin_kotlin.$_$.sl;
20
+ var toString = kotlin_kotlin.$_$.af;
21
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
22
+ var Unit_instance = kotlin_kotlin.$_$.h6;
23
+ var arrayCopy = kotlin_kotlin.$_$.d7;
24
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
25
+ var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.c2;
26
+ var initMetadataForClass = kotlin_kotlin.$_$.ud;
27
+ var Long = kotlin_kotlin.$_$.sk;
28
+ var charCodeAt = kotlin_kotlin.$_$.gd;
29
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.j3;
30
+ var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.k3;
31
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.q3;
32
+ var toByte = kotlin_kotlin.$_$.xe;
33
+ var copyOf = kotlin_kotlin.$_$.c8;
34
+ var VOID = kotlin_kotlin.$_$.h;
35
+ var charArray = kotlin_kotlin.$_$.fd;
36
+ var numberToChar = kotlin_kotlin.$_$.se;
37
+ var concatToString = kotlin_kotlin.$_$.jg;
38
+ var charArrayOf = kotlin_kotlin.$_$.ed;
39
+ var concatToString_0 = kotlin_kotlin.$_$.ig;
40
+ var contentHashCode = kotlin_kotlin.$_$.u7;
41
+ var THROW_CCE = kotlin_kotlin.$_$.zk;
42
+ var copyOfRange = kotlin_kotlin.$_$.x7;
43
+ var substring = kotlin_kotlin.$_$.wi;
44
+ var replace = kotlin_kotlin.$_$.ci;
45
+ var Comparable = kotlin_kotlin.$_$.ik;
46
+ var toLong = kotlin_kotlin.$_$.ye;
47
+ var numberToLong = kotlin_kotlin.$_$.ue;
48
+ var AssertionError_init_$Create$ = kotlin_kotlin.$_$.r1;
49
+ var isArray = kotlin_kotlin.$_$.be;
50
+ var initMetadataForInterface = kotlin_kotlin.$_$.yd;
51
+ var IndexOutOfBoundsException = kotlin_kotlin.$_$.rk;
52
+ var IndexOutOfBoundsException_init_$Init$ = kotlin_kotlin.$_$.n2;
53
+ var captureStack = kotlin_kotlin.$_$.dd;
54
+ var Exception = kotlin_kotlin.$_$.ok;
55
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.a2;
56
+ var initMetadataForObject = kotlin_kotlin.$_$.ae;
57
+ //endregion
58
+ //region block: pre-declaration
59
+ initMetadataForCompanion(Companion);
60
+ initMetadataForClass(Segment, 'Segment', Segment_init_$Create$);
61
+ initMetadataForCompanion(Companion_0);
62
+ initMetadataForClass(ByteString, 'ByteString', VOID, VOID, [Comparable]);
63
+ initMetadataForClass(SegmentedByteString, 'SegmentedByteString', VOID, ByteString);
64
+ initMetadataForClass(UnsafeCursor, 'UnsafeCursor', UnsafeCursor);
65
+ initMetadataForInterface(BufferedSource, 'BufferedSource');
66
+ initMetadataForClass(Buffer, 'Buffer', Buffer, VOID, [BufferedSource]);
67
+ initMetadataForClass(ArrayIndexOutOfBoundsException, 'ArrayIndexOutOfBoundsException', VOID, IndexOutOfBoundsException);
68
+ initMetadataForClass(IOException, 'IOException', IOException_init_$Create$, Exception);
69
+ initMetadataForClass(EOFException, 'EOFException', EOFException_init_$Create$, IOException);
70
+ initMetadataForClass(RealBufferedSource, 'RealBufferedSource', VOID, VOID, [BufferedSource]);
71
+ initMetadataForObject(SegmentPool, 'SegmentPool');
72
+ //endregion
73
+ function buffer(_this__u8e3s4) {
74
+ return new RealBufferedSource(_this__u8e3s4);
75
+ }
76
+ function Segment_init_$Init$($this) {
77
+ Segment.call($this);
78
+ $this.gh1_1 = new Int8Array(8192);
79
+ $this.kh1_1 = true;
80
+ $this.jh1_1 = false;
81
+ return $this;
82
+ }
83
+ function Segment_init_$Create$() {
84
+ return Segment_init_$Init$(objectCreate(protoOf(Segment)));
85
+ }
86
+ function Segment_init_$Init$_0(data, pos, limit, shared, owner, $this) {
87
+ Segment.call($this);
88
+ $this.gh1_1 = data;
89
+ $this.hh1_1 = pos;
90
+ $this.ih1_1 = limit;
91
+ $this.jh1_1 = shared;
92
+ $this.kh1_1 = owner;
93
+ return $this;
94
+ }
95
+ function Segment_init_$Create$_0(data, pos, limit, shared, owner) {
96
+ return Segment_init_$Init$_0(data, pos, limit, shared, owner, objectCreate(protoOf(Segment)));
97
+ }
98
+ function Companion() {
99
+ this.nh1_1 = 8192;
100
+ this.oh1_1 = 1024;
101
+ }
102
+ var Companion_instance;
103
+ function Companion_getInstance() {
104
+ return Companion_instance;
105
+ }
106
+ protoOf(Segment).ph1 = function () {
107
+ this.jh1_1 = true;
108
+ return Segment_init_$Create$_0(this.gh1_1, this.hh1_1, this.ih1_1, true, false);
109
+ };
110
+ protoOf(Segment).mbc = function () {
111
+ var result = !(this.lh1_1 === this) ? this.lh1_1 : null;
112
+ ensureNotNull(this.mh1_1).lh1_1 = this.lh1_1;
113
+ ensureNotNull(this.lh1_1).mh1_1 = this.mh1_1;
114
+ this.lh1_1 = null;
115
+ this.mh1_1 = null;
116
+ return result;
117
+ };
118
+ protoOf(Segment).qh1 = function (segment) {
119
+ segment.mh1_1 = this;
120
+ segment.lh1_1 = this.lh1_1;
121
+ ensureNotNull(this.lh1_1).mh1_1 = segment;
122
+ this.lh1_1 = segment;
123
+ return segment;
124
+ };
125
+ protoOf(Segment).rh1 = function (byteCount) {
126
+ // Inline function 'kotlin.require' call
127
+ if (!(byteCount > 0 && byteCount <= (this.ih1_1 - this.hh1_1 | 0))) {
128
+ var message = 'byteCount out of range';
129
+ throw IllegalArgumentException_init_$Create$(toString(message));
130
+ }
131
+ var prefix;
132
+ if (byteCount >= 1024) {
133
+ prefix = this.ph1();
134
+ } else {
135
+ prefix = SegmentPool_instance.z3b();
136
+ var tmp0 = this.gh1_1;
137
+ var tmp2 = prefix.gh1_1;
138
+ var tmp4 = this.hh1_1;
139
+ // Inline function 'kotlin.collections.copyInto' call
140
+ var endIndex = this.hh1_1 + byteCount | 0;
141
+ // Inline function 'kotlin.js.unsafeCast' call
142
+ // Inline function 'kotlin.js.asDynamic' call
143
+ var tmp = tmp0;
144
+ // Inline function 'kotlin.js.unsafeCast' call
145
+ // Inline function 'kotlin.js.asDynamic' call
146
+ arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
147
+ }
148
+ prefix.ih1_1 = prefix.hh1_1 + byteCount | 0;
149
+ this.hh1_1 = this.hh1_1 + byteCount | 0;
150
+ ensureNotNull(this.mh1_1).qh1(prefix);
151
+ return prefix;
152
+ };
153
+ protoOf(Segment).uh1 = function () {
154
+ // Inline function 'kotlin.check' call
155
+ if (!!(this.mh1_1 === this)) {
156
+ var message = 'cannot compact';
157
+ throw IllegalStateException_init_$Create$(toString(message));
158
+ }
159
+ if (!ensureNotNull(this.mh1_1).kh1_1)
160
+ return Unit_instance;
161
+ var byteCount = this.ih1_1 - this.hh1_1 | 0;
162
+ var availableByteCount = (8192 - ensureNotNull(this.mh1_1).ih1_1 | 0) + (ensureNotNull(this.mh1_1).jh1_1 ? 0 : ensureNotNull(this.mh1_1).hh1_1) | 0;
163
+ if (byteCount > availableByteCount)
164
+ return Unit_instance;
165
+ this.vh1(ensureNotNull(this.mh1_1), byteCount);
166
+ this.mbc();
167
+ SegmentPool_instance.wh1(this);
168
+ };
169
+ protoOf(Segment).vh1 = function (sink, byteCount) {
170
+ // Inline function 'kotlin.check' call
171
+ if (!sink.kh1_1) {
172
+ var message = 'only owner can write';
173
+ throw IllegalStateException_init_$Create$(toString(message));
174
+ }
175
+ if ((sink.ih1_1 + byteCount | 0) > 8192) {
176
+ if (sink.jh1_1)
177
+ throw IllegalArgumentException_init_$Create$_0();
178
+ if (((sink.ih1_1 + byteCount | 0) - sink.hh1_1 | 0) > 8192)
179
+ throw IllegalArgumentException_init_$Create$_0();
180
+ var tmp0 = sink.gh1_1;
181
+ var tmp2 = sink.gh1_1;
182
+ var tmp4 = sink.hh1_1;
183
+ // Inline function 'kotlin.collections.copyInto' call
184
+ var endIndex = sink.ih1_1;
185
+ // Inline function 'kotlin.js.unsafeCast' call
186
+ // Inline function 'kotlin.js.asDynamic' call
187
+ var tmp = tmp0;
188
+ // Inline function 'kotlin.js.unsafeCast' call
189
+ // Inline function 'kotlin.js.asDynamic' call
190
+ arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
191
+ sink.ih1_1 = sink.ih1_1 - sink.hh1_1 | 0;
192
+ sink.hh1_1 = 0;
193
+ }
194
+ var tmp0_0 = this.gh1_1;
195
+ var tmp2_0 = sink.gh1_1;
196
+ var tmp4_0 = sink.ih1_1;
197
+ var tmp6 = this.hh1_1;
198
+ // Inline function 'kotlin.collections.copyInto' call
199
+ var endIndex_0 = this.hh1_1 + byteCount | 0;
200
+ // Inline function 'kotlin.js.unsafeCast' call
201
+ // Inline function 'kotlin.js.asDynamic' call
202
+ var tmp_0 = tmp0_0;
203
+ // Inline function 'kotlin.js.unsafeCast' call
204
+ // Inline function 'kotlin.js.asDynamic' call
205
+ arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
206
+ sink.ih1_1 = sink.ih1_1 + byteCount | 0;
207
+ this.hh1_1 = this.hh1_1 + byteCount | 0;
208
+ };
209
+ function Segment() {
210
+ this.hh1_1 = 0;
211
+ this.ih1_1 = 0;
212
+ this.jh1_1 = false;
213
+ this.kh1_1 = false;
214
+ this.lh1_1 = null;
215
+ this.mh1_1 = null;
216
+ }
217
+ var DEFAULT__new_UnsafeCursor;
218
+ function get_DEFAULT__ByteString_size() {
219
+ _init_properties_Util_kt__laey5a();
220
+ return DEFAULT__ByteString_size;
221
+ }
222
+ var DEFAULT__ByteString_size;
223
+ function resolveDefaultParameter(_this__u8e3s4, position) {
224
+ _init_properties_Util_kt__laey5a();
225
+ if (position === get_DEFAULT__ByteString_size())
226
+ return _this__u8e3s4.s();
227
+ return position;
228
+ }
229
+ function arrayRangeEquals(a, aOffset, b, bOffset, byteCount) {
230
+ _init_properties_Util_kt__laey5a();
231
+ var inductionVariable = 0;
232
+ if (inductionVariable < byteCount)
233
+ do {
234
+ var i = inductionVariable;
235
+ inductionVariable = inductionVariable + 1 | 0;
236
+ if (!(a[i + aOffset | 0] === b[i + bOffset | 0]))
237
+ return false;
238
+ }
239
+ while (inductionVariable < byteCount);
240
+ return true;
241
+ }
242
+ function checkOffsetAndCount(size, offset, byteCount) {
243
+ _init_properties_Util_kt__laey5a();
244
+ if (offset.p3(byteCount).j1(new Long(0, 0)) < 0 || offset.j1(size) > 0 || size.c3(offset).j1(byteCount) < 0) {
245
+ throw new ArrayIndexOutOfBoundsException('size=' + size.toString() + ' offset=' + offset.toString() + ' byteCount=' + byteCount.toString());
246
+ }
247
+ }
248
+ var properties_initialized_Util_kt_13atj0;
249
+ function _init_properties_Util_kt__laey5a() {
250
+ if (!properties_initialized_Util_kt_13atj0) {
251
+ properties_initialized_Util_kt_13atj0 = true;
252
+ DEFAULT__new_UnsafeCursor = new UnsafeCursor();
253
+ DEFAULT__ByteString_size = -1234567890;
254
+ }
255
+ }
256
+ function commonAsUtf8ToByteArray(_this__u8e3s4) {
257
+ var bytes = new Int8Array(imul(4, _this__u8e3s4.length));
258
+ var inductionVariable = 0;
259
+ var last = _this__u8e3s4.length;
260
+ if (inductionVariable < last)
261
+ do {
262
+ var index = inductionVariable;
263
+ inductionVariable = inductionVariable + 1 | 0;
264
+ var b0 = charCodeAt(_this__u8e3s4, index);
265
+ if (Char__compareTo_impl_ypi4mb(b0, _Char___init__impl__6a9atx(128)) >= 0) {
266
+ var size = index;
267
+ // Inline function 'okio.processUtf8Bytes' call
268
+ var endIndex = _this__u8e3s4.length;
269
+ var index_0 = index;
270
+ while (index_0 < endIndex) {
271
+ var c = charCodeAt(_this__u8e3s4, index_0);
272
+ if (Char__compareTo_impl_ypi4mb(c, _Char___init__impl__6a9atx(128)) < 0) {
273
+ // Inline function 'kotlin.code' call
274
+ var tmp$ret$0 = Char__toInt_impl_vasixd(c);
275
+ var c_0 = toByte(tmp$ret$0);
276
+ var tmp0 = size;
277
+ size = tmp0 + 1 | 0;
278
+ bytes[tmp0] = c_0;
279
+ index_0 = index_0 + 1 | 0;
280
+ while (index_0 < endIndex && Char__compareTo_impl_ypi4mb(charCodeAt(_this__u8e3s4, index_0), _Char___init__impl__6a9atx(128)) < 0) {
281
+ var tmp1 = index_0;
282
+ index_0 = tmp1 + 1 | 0;
283
+ // Inline function 'kotlin.code' call
284
+ var this_0 = charCodeAt(_this__u8e3s4, tmp1);
285
+ var tmp$ret$2 = Char__toInt_impl_vasixd(this_0);
286
+ var c_1 = toByte(tmp$ret$2);
287
+ var tmp0_0 = size;
288
+ size = tmp0_0 + 1 | 0;
289
+ bytes[tmp0_0] = c_1;
290
+ }
291
+ } else if (Char__compareTo_impl_ypi4mb(c, _Char___init__impl__6a9atx(2048)) < 0) {
292
+ // Inline function 'kotlin.code' call
293
+ var tmp$ret$4 = Char__toInt_impl_vasixd(c);
294
+ var c_2 = toByte(tmp$ret$4 >> 6 | 192);
295
+ var tmp0_1 = size;
296
+ size = tmp0_1 + 1 | 0;
297
+ bytes[tmp0_1] = c_2;
298
+ // Inline function 'kotlin.code' call
299
+ var tmp$ret$6 = Char__toInt_impl_vasixd(c);
300
+ var c_3 = toByte(tmp$ret$6 & 63 | 128);
301
+ var tmp0_2 = size;
302
+ size = tmp0_2 + 1 | 0;
303
+ bytes[tmp0_2] = c_3;
304
+ index_0 = index_0 + 1 | 0;
305
+ } else if (!(_Char___init__impl__6a9atx(55296) <= c ? c <= _Char___init__impl__6a9atx(57343) : false)) {
306
+ // Inline function 'kotlin.code' call
307
+ var tmp$ret$8 = Char__toInt_impl_vasixd(c);
308
+ var c_4 = toByte(tmp$ret$8 >> 12 | 224);
309
+ var tmp0_3 = size;
310
+ size = tmp0_3 + 1 | 0;
311
+ bytes[tmp0_3] = c_4;
312
+ // Inline function 'kotlin.code' call
313
+ var tmp$ret$10 = Char__toInt_impl_vasixd(c);
314
+ var c_5 = toByte(tmp$ret$10 >> 6 & 63 | 128);
315
+ var tmp0_4 = size;
316
+ size = tmp0_4 + 1 | 0;
317
+ bytes[tmp0_4] = c_5;
318
+ // Inline function 'kotlin.code' call
319
+ var tmp$ret$12 = Char__toInt_impl_vasixd(c);
320
+ var c_6 = toByte(tmp$ret$12 & 63 | 128);
321
+ var tmp0_5 = size;
322
+ size = tmp0_5 + 1 | 0;
323
+ bytes[tmp0_5] = c_6;
324
+ index_0 = index_0 + 1 | 0;
325
+ } else {
326
+ var tmp;
327
+ if (Char__compareTo_impl_ypi4mb(c, _Char___init__impl__6a9atx(56319)) > 0 || endIndex <= (index_0 + 1 | 0)) {
328
+ tmp = true;
329
+ } else {
330
+ var containsArg = charCodeAt(_this__u8e3s4, index_0 + 1 | 0);
331
+ tmp = !(_Char___init__impl__6a9atx(56320) <= containsArg ? containsArg <= _Char___init__impl__6a9atx(57343) : false);
332
+ }
333
+ if (tmp) {
334
+ var tmp0_6 = size;
335
+ size = tmp0_6 + 1 | 0;
336
+ bytes[tmp0_6] = 63;
337
+ index_0 = index_0 + 1 | 0;
338
+ } else {
339
+ // Inline function 'kotlin.code' call
340
+ var tmp_0 = Char__toInt_impl_vasixd(c) << 10;
341
+ // Inline function 'kotlin.code' call
342
+ var this_1 = charCodeAt(_this__u8e3s4, index_0 + 1 | 0);
343
+ var codePoint = (tmp_0 + Char__toInt_impl_vasixd(this_1) | 0) + -56613888 | 0;
344
+ var c_7 = toByte(codePoint >> 18 | 240);
345
+ var tmp0_7 = size;
346
+ size = tmp0_7 + 1 | 0;
347
+ bytes[tmp0_7] = c_7;
348
+ var c_8 = toByte(codePoint >> 12 & 63 | 128);
349
+ var tmp0_8 = size;
350
+ size = tmp0_8 + 1 | 0;
351
+ bytes[tmp0_8] = c_8;
352
+ var c_9 = toByte(codePoint >> 6 & 63 | 128);
353
+ var tmp0_9 = size;
354
+ size = tmp0_9 + 1 | 0;
355
+ bytes[tmp0_9] = c_9;
356
+ var c_10 = toByte(codePoint & 63 | 128);
357
+ var tmp0_10 = size;
358
+ size = tmp0_10 + 1 | 0;
359
+ bytes[tmp0_10] = c_10;
360
+ index_0 = index_0 + 2 | 0;
361
+ }
362
+ }
363
+ }
364
+ return copyOf(bytes, size);
365
+ }
366
+ // Inline function 'kotlin.code' call
367
+ var tmp$ret$22 = Char__toInt_impl_vasixd(b0);
368
+ bytes[index] = toByte(tmp$ret$22);
369
+ }
370
+ while (inductionVariable < last);
371
+ return copyOf(bytes, _this__u8e3s4.length);
372
+ }
373
+ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
374
+ beginIndex = beginIndex === VOID ? 0 : beginIndex;
375
+ endIndex = endIndex === VOID ? _this__u8e3s4.length : endIndex;
376
+ if (beginIndex < 0 || endIndex > _this__u8e3s4.length || beginIndex > endIndex) {
377
+ throw new ArrayIndexOutOfBoundsException('size=' + _this__u8e3s4.length + ' beginIndex=' + beginIndex + ' endIndex=' + endIndex);
378
+ }
379
+ var chars = charArray(endIndex - beginIndex | 0);
380
+ var length = 0;
381
+ // Inline function 'okio.processUtf16Chars' call
382
+ var index = beginIndex;
383
+ while (index < endIndex) {
384
+ var b0 = _this__u8e3s4[index];
385
+ if (b0 >= 0) {
386
+ var c = numberToChar(b0);
387
+ var tmp0 = length;
388
+ length = tmp0 + 1 | 0;
389
+ chars[tmp0] = c;
390
+ index = index + 1 | 0;
391
+ while (index < endIndex && _this__u8e3s4[index] >= 0) {
392
+ var tmp1 = index;
393
+ index = tmp1 + 1 | 0;
394
+ var c_0 = numberToChar(_this__u8e3s4[tmp1]);
395
+ var tmp0_0 = length;
396
+ length = tmp0_0 + 1 | 0;
397
+ chars[tmp0_0] = c_0;
398
+ }
399
+ } else {
400
+ // Inline function 'okio.shr' call
401
+ if (b0 >> 5 === -2) {
402
+ var tmp = index;
403
+ var tmp2 = index;
404
+ var tmp$ret$5;
405
+ $l$block_0: {
406
+ // Inline function 'okio.process2Utf8Bytes' call
407
+ if (endIndex <= (tmp2 + 1 | 0)) {
408
+ var c_1 = numberToChar(65533);
409
+ var tmp0_1 = length;
410
+ length = tmp0_1 + 1 | 0;
411
+ chars[tmp0_1] = c_1;
412
+ tmp$ret$5 = 1;
413
+ break $l$block_0;
414
+ }
415
+ var b0_0 = _this__u8e3s4[tmp2];
416
+ var b1 = _this__u8e3s4[tmp2 + 1 | 0];
417
+ // Inline function 'okio.isUtf8Continuation' call
418
+ // Inline function 'okio.and' call
419
+ if (!((b1 & 192) === 128)) {
420
+ var c_2 = numberToChar(65533);
421
+ var tmp0_2 = length;
422
+ length = tmp0_2 + 1 | 0;
423
+ chars[tmp0_2] = c_2;
424
+ tmp$ret$5 = 1;
425
+ break $l$block_0;
426
+ }
427
+ var codePoint = 3968 ^ b1 ^ b0_0 << 6;
428
+ if (codePoint < 128) {
429
+ var c_3 = numberToChar(65533);
430
+ var tmp0_3 = length;
431
+ length = tmp0_3 + 1 | 0;
432
+ chars[tmp0_3] = c_3;
433
+ } else {
434
+ var c_4 = numberToChar(codePoint);
435
+ var tmp0_4 = length;
436
+ length = tmp0_4 + 1 | 0;
437
+ chars[tmp0_4] = c_4;
438
+ }
439
+ tmp$ret$5 = 2;
440
+ }
441
+ index = tmp + tmp$ret$5 | 0;
442
+ } else {
443
+ // Inline function 'okio.shr' call
444
+ if (b0 >> 4 === -2) {
445
+ var tmp_0 = index;
446
+ var tmp2_0 = index;
447
+ var tmp$ret$19;
448
+ $l$block_4: {
449
+ // Inline function 'okio.process3Utf8Bytes' call
450
+ if (endIndex <= (tmp2_0 + 2 | 0)) {
451
+ var c_5 = numberToChar(65533);
452
+ var tmp0_5 = length;
453
+ length = tmp0_5 + 1 | 0;
454
+ chars[tmp0_5] = c_5;
455
+ var tmp_1;
456
+ if (endIndex <= (tmp2_0 + 1 | 0)) {
457
+ tmp_1 = true;
458
+ } else {
459
+ // Inline function 'okio.isUtf8Continuation' call
460
+ // Inline function 'okio.and' call
461
+ tmp_1 = !((_this__u8e3s4[tmp2_0 + 1 | 0] & 192) === 128);
462
+ }
463
+ if (tmp_1) {
464
+ tmp$ret$19 = 1;
465
+ break $l$block_4;
466
+ } else {
467
+ tmp$ret$19 = 2;
468
+ break $l$block_4;
469
+ }
470
+ }
471
+ var b0_1 = _this__u8e3s4[tmp2_0];
472
+ var b1_0 = _this__u8e3s4[tmp2_0 + 1 | 0];
473
+ // Inline function 'okio.isUtf8Continuation' call
474
+ // Inline function 'okio.and' call
475
+ if (!((b1_0 & 192) === 128)) {
476
+ var c_6 = numberToChar(65533);
477
+ var tmp0_6 = length;
478
+ length = tmp0_6 + 1 | 0;
479
+ chars[tmp0_6] = c_6;
480
+ tmp$ret$19 = 1;
481
+ break $l$block_4;
482
+ }
483
+ var b2 = _this__u8e3s4[tmp2_0 + 2 | 0];
484
+ // Inline function 'okio.isUtf8Continuation' call
485
+ // Inline function 'okio.and' call
486
+ if (!((b2 & 192) === 128)) {
487
+ var c_7 = numberToChar(65533);
488
+ var tmp0_7 = length;
489
+ length = tmp0_7 + 1 | 0;
490
+ chars[tmp0_7] = c_7;
491
+ tmp$ret$19 = 2;
492
+ break $l$block_4;
493
+ }
494
+ var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
495
+ if (codePoint_0 < 2048) {
496
+ var c_8 = numberToChar(65533);
497
+ var tmp0_8 = length;
498
+ length = tmp0_8 + 1 | 0;
499
+ chars[tmp0_8] = c_8;
500
+ } else if (55296 <= codePoint_0 ? codePoint_0 <= 57343 : false) {
501
+ var c_9 = numberToChar(65533);
502
+ var tmp0_9 = length;
503
+ length = tmp0_9 + 1 | 0;
504
+ chars[tmp0_9] = c_9;
505
+ } else {
506
+ var c_10 = numberToChar(codePoint_0);
507
+ var tmp0_10 = length;
508
+ length = tmp0_10 + 1 | 0;
509
+ chars[tmp0_10] = c_10;
510
+ }
511
+ tmp$ret$19 = 3;
512
+ }
513
+ index = tmp_0 + tmp$ret$19 | 0;
514
+ } else {
515
+ // Inline function 'okio.shr' call
516
+ if (b0 >> 3 === -2) {
517
+ var tmp_2 = index;
518
+ var tmp2_1 = index;
519
+ var tmp$ret$41;
520
+ $l$block_10: {
521
+ // Inline function 'okio.process4Utf8Bytes' call
522
+ if (endIndex <= (tmp2_1 + 3 | 0)) {
523
+ if (!(65533 === 65533)) {
524
+ var c_11 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
525
+ var tmp0_11 = length;
526
+ length = tmp0_11 + 1 | 0;
527
+ chars[tmp0_11] = c_11;
528
+ var c_12 = numberToChar((65533 & 1023) + 56320 | 0);
529
+ var tmp0_12 = length;
530
+ length = tmp0_12 + 1 | 0;
531
+ chars[tmp0_12] = c_12;
532
+ } else {
533
+ var c_13 = _Char___init__impl__6a9atx(65533);
534
+ var tmp0_13 = length;
535
+ length = tmp0_13 + 1 | 0;
536
+ chars[tmp0_13] = c_13;
537
+ }
538
+ var tmp_3;
539
+ if (endIndex <= (tmp2_1 + 1 | 0)) {
540
+ tmp_3 = true;
541
+ } else {
542
+ // Inline function 'okio.isUtf8Continuation' call
543
+ // Inline function 'okio.and' call
544
+ tmp_3 = !((_this__u8e3s4[tmp2_1 + 1 | 0] & 192) === 128);
545
+ }
546
+ if (tmp_3) {
547
+ tmp$ret$41 = 1;
548
+ break $l$block_10;
549
+ } else {
550
+ var tmp_4;
551
+ if (endIndex <= (tmp2_1 + 2 | 0)) {
552
+ tmp_4 = true;
553
+ } else {
554
+ // Inline function 'okio.isUtf8Continuation' call
555
+ // Inline function 'okio.and' call
556
+ tmp_4 = !((_this__u8e3s4[tmp2_1 + 2 | 0] & 192) === 128);
557
+ }
558
+ if (tmp_4) {
559
+ tmp$ret$41 = 2;
560
+ break $l$block_10;
561
+ } else {
562
+ tmp$ret$41 = 3;
563
+ break $l$block_10;
564
+ }
565
+ }
566
+ }
567
+ var b0_2 = _this__u8e3s4[tmp2_1];
568
+ var b1_1 = _this__u8e3s4[tmp2_1 + 1 | 0];
569
+ // Inline function 'okio.isUtf8Continuation' call
570
+ // Inline function 'okio.and' call
571
+ if (!((b1_1 & 192) === 128)) {
572
+ if (!(65533 === 65533)) {
573
+ var c_14 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
574
+ var tmp0_14 = length;
575
+ length = tmp0_14 + 1 | 0;
576
+ chars[tmp0_14] = c_14;
577
+ var c_15 = numberToChar((65533 & 1023) + 56320 | 0);
578
+ var tmp0_15 = length;
579
+ length = tmp0_15 + 1 | 0;
580
+ chars[tmp0_15] = c_15;
581
+ } else {
582
+ var c_16 = _Char___init__impl__6a9atx(65533);
583
+ var tmp0_16 = length;
584
+ length = tmp0_16 + 1 | 0;
585
+ chars[tmp0_16] = c_16;
586
+ }
587
+ tmp$ret$41 = 1;
588
+ break $l$block_10;
589
+ }
590
+ var b2_0 = _this__u8e3s4[tmp2_1 + 2 | 0];
591
+ // Inline function 'okio.isUtf8Continuation' call
592
+ // Inline function 'okio.and' call
593
+ if (!((b2_0 & 192) === 128)) {
594
+ if (!(65533 === 65533)) {
595
+ var c_17 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
596
+ var tmp0_17 = length;
597
+ length = tmp0_17 + 1 | 0;
598
+ chars[tmp0_17] = c_17;
599
+ var c_18 = numberToChar((65533 & 1023) + 56320 | 0);
600
+ var tmp0_18 = length;
601
+ length = tmp0_18 + 1 | 0;
602
+ chars[tmp0_18] = c_18;
603
+ } else {
604
+ var c_19 = _Char___init__impl__6a9atx(65533);
605
+ var tmp0_19 = length;
606
+ length = tmp0_19 + 1 | 0;
607
+ chars[tmp0_19] = c_19;
608
+ }
609
+ tmp$ret$41 = 2;
610
+ break $l$block_10;
611
+ }
612
+ var b3 = _this__u8e3s4[tmp2_1 + 3 | 0];
613
+ // Inline function 'okio.isUtf8Continuation' call
614
+ // Inline function 'okio.and' call
615
+ if (!((b3 & 192) === 128)) {
616
+ if (!(65533 === 65533)) {
617
+ var c_20 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
618
+ var tmp0_20 = length;
619
+ length = tmp0_20 + 1 | 0;
620
+ chars[tmp0_20] = c_20;
621
+ var c_21 = numberToChar((65533 & 1023) + 56320 | 0);
622
+ var tmp0_21 = length;
623
+ length = tmp0_21 + 1 | 0;
624
+ chars[tmp0_21] = c_21;
625
+ } else {
626
+ var c_22 = _Char___init__impl__6a9atx(65533);
627
+ var tmp0_22 = length;
628
+ length = tmp0_22 + 1 | 0;
629
+ chars[tmp0_22] = c_22;
630
+ }
631
+ tmp$ret$41 = 3;
632
+ break $l$block_10;
633
+ }
634
+ var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
635
+ if (codePoint_1 > 1114111) {
636
+ if (!(65533 === 65533)) {
637
+ var c_23 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
638
+ var tmp0_23 = length;
639
+ length = tmp0_23 + 1 | 0;
640
+ chars[tmp0_23] = c_23;
641
+ var c_24 = numberToChar((65533 & 1023) + 56320 | 0);
642
+ var tmp0_24 = length;
643
+ length = tmp0_24 + 1 | 0;
644
+ chars[tmp0_24] = c_24;
645
+ } else {
646
+ var c_25 = _Char___init__impl__6a9atx(65533);
647
+ var tmp0_25 = length;
648
+ length = tmp0_25 + 1 | 0;
649
+ chars[tmp0_25] = c_25;
650
+ }
651
+ } else if (55296 <= codePoint_1 ? codePoint_1 <= 57343 : false) {
652
+ if (!(65533 === 65533)) {
653
+ var c_26 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
654
+ var tmp0_26 = length;
655
+ length = tmp0_26 + 1 | 0;
656
+ chars[tmp0_26] = c_26;
657
+ var c_27 = numberToChar((65533 & 1023) + 56320 | 0);
658
+ var tmp0_27 = length;
659
+ length = tmp0_27 + 1 | 0;
660
+ chars[tmp0_27] = c_27;
661
+ } else {
662
+ var c_28 = _Char___init__impl__6a9atx(65533);
663
+ var tmp0_28 = length;
664
+ length = tmp0_28 + 1 | 0;
665
+ chars[tmp0_28] = c_28;
666
+ }
667
+ } else if (codePoint_1 < 65536) {
668
+ if (!(65533 === 65533)) {
669
+ var c_29 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
670
+ var tmp0_29 = length;
671
+ length = tmp0_29 + 1 | 0;
672
+ chars[tmp0_29] = c_29;
673
+ var c_30 = numberToChar((65533 & 1023) + 56320 | 0);
674
+ var tmp0_30 = length;
675
+ length = tmp0_30 + 1 | 0;
676
+ chars[tmp0_30] = c_30;
677
+ } else {
678
+ var c_31 = _Char___init__impl__6a9atx(65533);
679
+ var tmp0_31 = length;
680
+ length = tmp0_31 + 1 | 0;
681
+ chars[tmp0_31] = c_31;
682
+ }
683
+ } else {
684
+ if (!(codePoint_1 === 65533)) {
685
+ var c_32 = numberToChar((codePoint_1 >>> 10 | 0) + 55232 | 0);
686
+ var tmp0_32 = length;
687
+ length = tmp0_32 + 1 | 0;
688
+ chars[tmp0_32] = c_32;
689
+ var c_33 = numberToChar((codePoint_1 & 1023) + 56320 | 0);
690
+ var tmp0_33 = length;
691
+ length = tmp0_33 + 1 | 0;
692
+ chars[tmp0_33] = c_33;
693
+ } else {
694
+ var c_34 = _Char___init__impl__6a9atx(65533);
695
+ var tmp0_34 = length;
696
+ length = tmp0_34 + 1 | 0;
697
+ chars[tmp0_34] = c_34;
698
+ }
699
+ }
700
+ tmp$ret$41 = 4;
701
+ }
702
+ index = tmp_2 + tmp$ret$41 | 0;
703
+ } else {
704
+ var c_35 = _Char___init__impl__6a9atx(65533);
705
+ var tmp0_35 = length;
706
+ length = tmp0_35 + 1 | 0;
707
+ chars[tmp0_35] = c_35;
708
+ index = index + 1 | 0;
709
+ }
710
+ }
711
+ }
712
+ }
713
+ }
714
+ return concatToString(chars, 0, length);
715
+ }
716
+ function get_HEX_DIGIT_CHARS() {
717
+ _init_properties_ByteString_kt__sqjq7b();
718
+ return HEX_DIGIT_CHARS;
719
+ }
720
+ var HEX_DIGIT_CHARS;
721
+ function commonWrite(_this__u8e3s4, buffer, offset, byteCount) {
722
+ _init_properties_ByteString_kt__sqjq7b();
723
+ buffer.ch2(_this__u8e3s4.xh1_1, offset, byteCount);
724
+ }
725
+ function codePointIndexToCharIndex(s, codePointCount) {
726
+ _init_properties_ByteString_kt__sqjq7b();
727
+ var charCount = 0;
728
+ var j = 0;
729
+ // Inline function 'okio.processUtf8CodePoints' call
730
+ var endIndex = s.length;
731
+ var index = 0;
732
+ while (index < endIndex) {
733
+ var b0 = s[index];
734
+ if (b0 >= 0) {
735
+ var tmp0 = j;
736
+ j = tmp0 + 1 | 0;
737
+ if (tmp0 === codePointCount) {
738
+ return charCount;
739
+ }
740
+ var tmp;
741
+ var tmp_0;
742
+ var tmp_1;
743
+ // Inline function 'kotlin.code' call
744
+ var this_0 = _Char___init__impl__6a9atx(10);
745
+ if (!(b0 === Char__toInt_impl_vasixd(this_0))) {
746
+ // Inline function 'kotlin.code' call
747
+ var this_1 = _Char___init__impl__6a9atx(13);
748
+ tmp_1 = !(b0 === Char__toInt_impl_vasixd(this_1));
749
+ } else {
750
+ tmp_1 = false;
751
+ }
752
+ if (tmp_1) {
753
+ // Inline function 'okio.isIsoControl' call
754
+ tmp_0 = (0 <= b0 ? b0 <= 31 : false) || (127 <= b0 ? b0 <= 159 : false);
755
+ } else {
756
+ tmp_0 = false;
757
+ }
758
+ if (tmp_0) {
759
+ tmp = true;
760
+ } else {
761
+ tmp = b0 === 65533;
762
+ }
763
+ if (tmp) {
764
+ return -1;
765
+ }
766
+ charCount = charCount + (b0 < 65536 ? 1 : 2) | 0;
767
+ index = index + 1 | 0;
768
+ while (index < endIndex && s[index] >= 0) {
769
+ var tmp1 = index;
770
+ index = tmp1 + 1 | 0;
771
+ var c = s[tmp1];
772
+ var tmp0_0 = j;
773
+ j = tmp0_0 + 1 | 0;
774
+ if (tmp0_0 === codePointCount) {
775
+ return charCount;
776
+ }
777
+ var tmp_2;
778
+ var tmp_3;
779
+ var tmp_4;
780
+ // Inline function 'kotlin.code' call
781
+ var this_2 = _Char___init__impl__6a9atx(10);
782
+ if (!(c === Char__toInt_impl_vasixd(this_2))) {
783
+ // Inline function 'kotlin.code' call
784
+ var this_3 = _Char___init__impl__6a9atx(13);
785
+ tmp_4 = !(c === Char__toInt_impl_vasixd(this_3));
786
+ } else {
787
+ tmp_4 = false;
788
+ }
789
+ if (tmp_4) {
790
+ // Inline function 'okio.isIsoControl' call
791
+ tmp_3 = (0 <= c ? c <= 31 : false) || (127 <= c ? c <= 159 : false);
792
+ } else {
793
+ tmp_3 = false;
794
+ }
795
+ if (tmp_3) {
796
+ tmp_2 = true;
797
+ } else {
798
+ tmp_2 = c === 65533;
799
+ }
800
+ if (tmp_2) {
801
+ return -1;
802
+ }
803
+ charCount = charCount + (c < 65536 ? 1 : 2) | 0;
804
+ }
805
+ } else {
806
+ // Inline function 'okio.shr' call
807
+ if (b0 >> 5 === -2) {
808
+ var tmp_5 = index;
809
+ var tmp2 = index;
810
+ var tmp$ret$14;
811
+ $l$block_0: {
812
+ // Inline function 'okio.process2Utf8Bytes' call
813
+ if (endIndex <= (tmp2 + 1 | 0)) {
814
+ var tmp0_1 = j;
815
+ j = tmp0_1 + 1 | 0;
816
+ if (tmp0_1 === codePointCount) {
817
+ return charCount;
818
+ }
819
+ var tmp_6;
820
+ var tmp_7;
821
+ var tmp_8;
822
+ // Inline function 'kotlin.code' call
823
+ var this_4 = _Char___init__impl__6a9atx(10);
824
+ if (!(65533 === Char__toInt_impl_vasixd(this_4))) {
825
+ // Inline function 'kotlin.code' call
826
+ var this_5 = _Char___init__impl__6a9atx(13);
827
+ tmp_8 = !(65533 === Char__toInt_impl_vasixd(this_5));
828
+ } else {
829
+ tmp_8 = false;
830
+ }
831
+ if (tmp_8) {
832
+ // Inline function 'okio.isIsoControl' call
833
+ tmp_7 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
834
+ } else {
835
+ tmp_7 = false;
836
+ }
837
+ if (tmp_7) {
838
+ tmp_6 = true;
839
+ } else {
840
+ tmp_6 = 65533 === 65533;
841
+ }
842
+ if (tmp_6) {
843
+ return -1;
844
+ }
845
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
846
+ tmp$ret$14 = 1;
847
+ break $l$block_0;
848
+ }
849
+ var b0_0 = s[tmp2];
850
+ var b1 = s[tmp2 + 1 | 0];
851
+ // Inline function 'okio.isUtf8Continuation' call
852
+ // Inline function 'okio.and' call
853
+ if (!((b1 & 192) === 128)) {
854
+ var tmp0_2 = j;
855
+ j = tmp0_2 + 1 | 0;
856
+ if (tmp0_2 === codePointCount) {
857
+ return charCount;
858
+ }
859
+ var tmp_9;
860
+ var tmp_10;
861
+ var tmp_11;
862
+ // Inline function 'kotlin.code' call
863
+ var this_6 = _Char___init__impl__6a9atx(10);
864
+ if (!(65533 === Char__toInt_impl_vasixd(this_6))) {
865
+ // Inline function 'kotlin.code' call
866
+ var this_7 = _Char___init__impl__6a9atx(13);
867
+ tmp_11 = !(65533 === Char__toInt_impl_vasixd(this_7));
868
+ } else {
869
+ tmp_11 = false;
870
+ }
871
+ if (tmp_11) {
872
+ // Inline function 'okio.isIsoControl' call
873
+ tmp_10 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
874
+ } else {
875
+ tmp_10 = false;
876
+ }
877
+ if (tmp_10) {
878
+ tmp_9 = true;
879
+ } else {
880
+ tmp_9 = 65533 === 65533;
881
+ }
882
+ if (tmp_9) {
883
+ return -1;
884
+ }
885
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
886
+ tmp$ret$14 = 1;
887
+ break $l$block_0;
888
+ }
889
+ var codePoint = 3968 ^ b1 ^ b0_0 << 6;
890
+ if (codePoint < 128) {
891
+ var tmp0_3 = j;
892
+ j = tmp0_3 + 1 | 0;
893
+ if (tmp0_3 === codePointCount) {
894
+ return charCount;
895
+ }
896
+ var tmp_12;
897
+ var tmp_13;
898
+ var tmp_14;
899
+ // Inline function 'kotlin.code' call
900
+ var this_8 = _Char___init__impl__6a9atx(10);
901
+ if (!(65533 === Char__toInt_impl_vasixd(this_8))) {
902
+ // Inline function 'kotlin.code' call
903
+ var this_9 = _Char___init__impl__6a9atx(13);
904
+ tmp_14 = !(65533 === Char__toInt_impl_vasixd(this_9));
905
+ } else {
906
+ tmp_14 = false;
907
+ }
908
+ if (tmp_14) {
909
+ // Inline function 'okio.isIsoControl' call
910
+ tmp_13 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
911
+ } else {
912
+ tmp_13 = false;
913
+ }
914
+ if (tmp_13) {
915
+ tmp_12 = true;
916
+ } else {
917
+ tmp_12 = 65533 === 65533;
918
+ }
919
+ if (tmp_12) {
920
+ return -1;
921
+ }
922
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
923
+ } else {
924
+ var tmp0_4 = j;
925
+ j = tmp0_4 + 1 | 0;
926
+ if (tmp0_4 === codePointCount) {
927
+ return charCount;
928
+ }
929
+ var tmp_15;
930
+ var tmp_16;
931
+ var tmp_17;
932
+ // Inline function 'kotlin.code' call
933
+ var this_10 = _Char___init__impl__6a9atx(10);
934
+ if (!(codePoint === Char__toInt_impl_vasixd(this_10))) {
935
+ // Inline function 'kotlin.code' call
936
+ var this_11 = _Char___init__impl__6a9atx(13);
937
+ tmp_17 = !(codePoint === Char__toInt_impl_vasixd(this_11));
938
+ } else {
939
+ tmp_17 = false;
940
+ }
941
+ if (tmp_17) {
942
+ // Inline function 'okio.isIsoControl' call
943
+ tmp_16 = (0 <= codePoint ? codePoint <= 31 : false) || (127 <= codePoint ? codePoint <= 159 : false);
944
+ } else {
945
+ tmp_16 = false;
946
+ }
947
+ if (tmp_16) {
948
+ tmp_15 = true;
949
+ } else {
950
+ tmp_15 = codePoint === 65533;
951
+ }
952
+ if (tmp_15) {
953
+ return -1;
954
+ }
955
+ charCount = charCount + (codePoint < 65536 ? 1 : 2) | 0;
956
+ }
957
+ tmp$ret$14 = 2;
958
+ }
959
+ index = tmp_5 + tmp$ret$14 | 0;
960
+ } else {
961
+ // Inline function 'okio.shr' call
962
+ if (b0 >> 4 === -2) {
963
+ var tmp_18 = index;
964
+ var tmp2_0 = index;
965
+ var tmp$ret$40;
966
+ $l$block_4: {
967
+ // Inline function 'okio.process3Utf8Bytes' call
968
+ if (endIndex <= (tmp2_0 + 2 | 0)) {
969
+ var tmp0_5 = j;
970
+ j = tmp0_5 + 1 | 0;
971
+ if (tmp0_5 === codePointCount) {
972
+ return charCount;
973
+ }
974
+ var tmp_19;
975
+ var tmp_20;
976
+ var tmp_21;
977
+ // Inline function 'kotlin.code' call
978
+ var this_12 = _Char___init__impl__6a9atx(10);
979
+ if (!(65533 === Char__toInt_impl_vasixd(this_12))) {
980
+ // Inline function 'kotlin.code' call
981
+ var this_13 = _Char___init__impl__6a9atx(13);
982
+ tmp_21 = !(65533 === Char__toInt_impl_vasixd(this_13));
983
+ } else {
984
+ tmp_21 = false;
985
+ }
986
+ if (tmp_21) {
987
+ // Inline function 'okio.isIsoControl' call
988
+ tmp_20 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
989
+ } else {
990
+ tmp_20 = false;
991
+ }
992
+ if (tmp_20) {
993
+ tmp_19 = true;
994
+ } else {
995
+ tmp_19 = 65533 === 65533;
996
+ }
997
+ if (tmp_19) {
998
+ return -1;
999
+ }
1000
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1001
+ var tmp_22;
1002
+ if (endIndex <= (tmp2_0 + 1 | 0)) {
1003
+ tmp_22 = true;
1004
+ } else {
1005
+ // Inline function 'okio.isUtf8Continuation' call
1006
+ // Inline function 'okio.and' call
1007
+ tmp_22 = !((s[tmp2_0 + 1 | 0] & 192) === 128);
1008
+ }
1009
+ if (tmp_22) {
1010
+ tmp$ret$40 = 1;
1011
+ break $l$block_4;
1012
+ } else {
1013
+ tmp$ret$40 = 2;
1014
+ break $l$block_4;
1015
+ }
1016
+ }
1017
+ var b0_1 = s[tmp2_0];
1018
+ var b1_0 = s[tmp2_0 + 1 | 0];
1019
+ // Inline function 'okio.isUtf8Continuation' call
1020
+ // Inline function 'okio.and' call
1021
+ if (!((b1_0 & 192) === 128)) {
1022
+ var tmp0_6 = j;
1023
+ j = tmp0_6 + 1 | 0;
1024
+ if (tmp0_6 === codePointCount) {
1025
+ return charCount;
1026
+ }
1027
+ var tmp_23;
1028
+ var tmp_24;
1029
+ var tmp_25;
1030
+ // Inline function 'kotlin.code' call
1031
+ var this_14 = _Char___init__impl__6a9atx(10);
1032
+ if (!(65533 === Char__toInt_impl_vasixd(this_14))) {
1033
+ // Inline function 'kotlin.code' call
1034
+ var this_15 = _Char___init__impl__6a9atx(13);
1035
+ tmp_25 = !(65533 === Char__toInt_impl_vasixd(this_15));
1036
+ } else {
1037
+ tmp_25 = false;
1038
+ }
1039
+ if (tmp_25) {
1040
+ // Inline function 'okio.isIsoControl' call
1041
+ tmp_24 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1042
+ } else {
1043
+ tmp_24 = false;
1044
+ }
1045
+ if (tmp_24) {
1046
+ tmp_23 = true;
1047
+ } else {
1048
+ tmp_23 = 65533 === 65533;
1049
+ }
1050
+ if (tmp_23) {
1051
+ return -1;
1052
+ }
1053
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1054
+ tmp$ret$40 = 1;
1055
+ break $l$block_4;
1056
+ }
1057
+ var b2 = s[tmp2_0 + 2 | 0];
1058
+ // Inline function 'okio.isUtf8Continuation' call
1059
+ // Inline function 'okio.and' call
1060
+ if (!((b2 & 192) === 128)) {
1061
+ var tmp0_7 = j;
1062
+ j = tmp0_7 + 1 | 0;
1063
+ if (tmp0_7 === codePointCount) {
1064
+ return charCount;
1065
+ }
1066
+ var tmp_26;
1067
+ var tmp_27;
1068
+ var tmp_28;
1069
+ // Inline function 'kotlin.code' call
1070
+ var this_16 = _Char___init__impl__6a9atx(10);
1071
+ if (!(65533 === Char__toInt_impl_vasixd(this_16))) {
1072
+ // Inline function 'kotlin.code' call
1073
+ var this_17 = _Char___init__impl__6a9atx(13);
1074
+ tmp_28 = !(65533 === Char__toInt_impl_vasixd(this_17));
1075
+ } else {
1076
+ tmp_28 = false;
1077
+ }
1078
+ if (tmp_28) {
1079
+ // Inline function 'okio.isIsoControl' call
1080
+ tmp_27 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1081
+ } else {
1082
+ tmp_27 = false;
1083
+ }
1084
+ if (tmp_27) {
1085
+ tmp_26 = true;
1086
+ } else {
1087
+ tmp_26 = 65533 === 65533;
1088
+ }
1089
+ if (tmp_26) {
1090
+ return -1;
1091
+ }
1092
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1093
+ tmp$ret$40 = 2;
1094
+ break $l$block_4;
1095
+ }
1096
+ var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
1097
+ if (codePoint_0 < 2048) {
1098
+ var tmp0_8 = j;
1099
+ j = tmp0_8 + 1 | 0;
1100
+ if (tmp0_8 === codePointCount) {
1101
+ return charCount;
1102
+ }
1103
+ var tmp_29;
1104
+ var tmp_30;
1105
+ var tmp_31;
1106
+ // Inline function 'kotlin.code' call
1107
+ var this_18 = _Char___init__impl__6a9atx(10);
1108
+ if (!(65533 === Char__toInt_impl_vasixd(this_18))) {
1109
+ // Inline function 'kotlin.code' call
1110
+ var this_19 = _Char___init__impl__6a9atx(13);
1111
+ tmp_31 = !(65533 === Char__toInt_impl_vasixd(this_19));
1112
+ } else {
1113
+ tmp_31 = false;
1114
+ }
1115
+ if (tmp_31) {
1116
+ // Inline function 'okio.isIsoControl' call
1117
+ tmp_30 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1118
+ } else {
1119
+ tmp_30 = false;
1120
+ }
1121
+ if (tmp_30) {
1122
+ tmp_29 = true;
1123
+ } else {
1124
+ tmp_29 = 65533 === 65533;
1125
+ }
1126
+ if (tmp_29) {
1127
+ return -1;
1128
+ }
1129
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1130
+ } else if (55296 <= codePoint_0 ? codePoint_0 <= 57343 : false) {
1131
+ var tmp0_9 = j;
1132
+ j = tmp0_9 + 1 | 0;
1133
+ if (tmp0_9 === codePointCount) {
1134
+ return charCount;
1135
+ }
1136
+ var tmp_32;
1137
+ var tmp_33;
1138
+ var tmp_34;
1139
+ // Inline function 'kotlin.code' call
1140
+ var this_20 = _Char___init__impl__6a9atx(10);
1141
+ if (!(65533 === Char__toInt_impl_vasixd(this_20))) {
1142
+ // Inline function 'kotlin.code' call
1143
+ var this_21 = _Char___init__impl__6a9atx(13);
1144
+ tmp_34 = !(65533 === Char__toInt_impl_vasixd(this_21));
1145
+ } else {
1146
+ tmp_34 = false;
1147
+ }
1148
+ if (tmp_34) {
1149
+ // Inline function 'okio.isIsoControl' call
1150
+ tmp_33 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1151
+ } else {
1152
+ tmp_33 = false;
1153
+ }
1154
+ if (tmp_33) {
1155
+ tmp_32 = true;
1156
+ } else {
1157
+ tmp_32 = 65533 === 65533;
1158
+ }
1159
+ if (tmp_32) {
1160
+ return -1;
1161
+ }
1162
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1163
+ } else {
1164
+ var tmp0_10 = j;
1165
+ j = tmp0_10 + 1 | 0;
1166
+ if (tmp0_10 === codePointCount) {
1167
+ return charCount;
1168
+ }
1169
+ var tmp_35;
1170
+ var tmp_36;
1171
+ var tmp_37;
1172
+ // Inline function 'kotlin.code' call
1173
+ var this_22 = _Char___init__impl__6a9atx(10);
1174
+ if (!(codePoint_0 === Char__toInt_impl_vasixd(this_22))) {
1175
+ // Inline function 'kotlin.code' call
1176
+ var this_23 = _Char___init__impl__6a9atx(13);
1177
+ tmp_37 = !(codePoint_0 === Char__toInt_impl_vasixd(this_23));
1178
+ } else {
1179
+ tmp_37 = false;
1180
+ }
1181
+ if (tmp_37) {
1182
+ // Inline function 'okio.isIsoControl' call
1183
+ tmp_36 = (0 <= codePoint_0 ? codePoint_0 <= 31 : false) || (127 <= codePoint_0 ? codePoint_0 <= 159 : false);
1184
+ } else {
1185
+ tmp_36 = false;
1186
+ }
1187
+ if (tmp_36) {
1188
+ tmp_35 = true;
1189
+ } else {
1190
+ tmp_35 = codePoint_0 === 65533;
1191
+ }
1192
+ if (tmp_35) {
1193
+ return -1;
1194
+ }
1195
+ charCount = charCount + (codePoint_0 < 65536 ? 1 : 2) | 0;
1196
+ }
1197
+ tmp$ret$40 = 3;
1198
+ }
1199
+ index = tmp_18 + tmp$ret$40 | 0;
1200
+ } else {
1201
+ // Inline function 'okio.shr' call
1202
+ if (b0 >> 3 === -2) {
1203
+ var tmp_38 = index;
1204
+ var tmp2_1 = index;
1205
+ var tmp$ret$78;
1206
+ $l$block_10: {
1207
+ // Inline function 'okio.process4Utf8Bytes' call
1208
+ if (endIndex <= (tmp2_1 + 3 | 0)) {
1209
+ var tmp0_11 = j;
1210
+ j = tmp0_11 + 1 | 0;
1211
+ if (tmp0_11 === codePointCount) {
1212
+ return charCount;
1213
+ }
1214
+ var tmp_39;
1215
+ var tmp_40;
1216
+ var tmp_41;
1217
+ // Inline function 'kotlin.code' call
1218
+ var this_24 = _Char___init__impl__6a9atx(10);
1219
+ if (!(65533 === Char__toInt_impl_vasixd(this_24))) {
1220
+ // Inline function 'kotlin.code' call
1221
+ var this_25 = _Char___init__impl__6a9atx(13);
1222
+ tmp_41 = !(65533 === Char__toInt_impl_vasixd(this_25));
1223
+ } else {
1224
+ tmp_41 = false;
1225
+ }
1226
+ if (tmp_41) {
1227
+ // Inline function 'okio.isIsoControl' call
1228
+ tmp_40 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1229
+ } else {
1230
+ tmp_40 = false;
1231
+ }
1232
+ if (tmp_40) {
1233
+ tmp_39 = true;
1234
+ } else {
1235
+ tmp_39 = 65533 === 65533;
1236
+ }
1237
+ if (tmp_39) {
1238
+ return -1;
1239
+ }
1240
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1241
+ var tmp_42;
1242
+ if (endIndex <= (tmp2_1 + 1 | 0)) {
1243
+ tmp_42 = true;
1244
+ } else {
1245
+ // Inline function 'okio.isUtf8Continuation' call
1246
+ // Inline function 'okio.and' call
1247
+ tmp_42 = !((s[tmp2_1 + 1 | 0] & 192) === 128);
1248
+ }
1249
+ if (tmp_42) {
1250
+ tmp$ret$78 = 1;
1251
+ break $l$block_10;
1252
+ } else {
1253
+ var tmp_43;
1254
+ if (endIndex <= (tmp2_1 + 2 | 0)) {
1255
+ tmp_43 = true;
1256
+ } else {
1257
+ // Inline function 'okio.isUtf8Continuation' call
1258
+ // Inline function 'okio.and' call
1259
+ tmp_43 = !((s[tmp2_1 + 2 | 0] & 192) === 128);
1260
+ }
1261
+ if (tmp_43) {
1262
+ tmp$ret$78 = 2;
1263
+ break $l$block_10;
1264
+ } else {
1265
+ tmp$ret$78 = 3;
1266
+ break $l$block_10;
1267
+ }
1268
+ }
1269
+ }
1270
+ var b0_2 = s[tmp2_1];
1271
+ var b1_1 = s[tmp2_1 + 1 | 0];
1272
+ // Inline function 'okio.isUtf8Continuation' call
1273
+ // Inline function 'okio.and' call
1274
+ if (!((b1_1 & 192) === 128)) {
1275
+ var tmp0_12 = j;
1276
+ j = tmp0_12 + 1 | 0;
1277
+ if (tmp0_12 === codePointCount) {
1278
+ return charCount;
1279
+ }
1280
+ var tmp_44;
1281
+ var tmp_45;
1282
+ var tmp_46;
1283
+ // Inline function 'kotlin.code' call
1284
+ var this_26 = _Char___init__impl__6a9atx(10);
1285
+ if (!(65533 === Char__toInt_impl_vasixd(this_26))) {
1286
+ // Inline function 'kotlin.code' call
1287
+ var this_27 = _Char___init__impl__6a9atx(13);
1288
+ tmp_46 = !(65533 === Char__toInt_impl_vasixd(this_27));
1289
+ } else {
1290
+ tmp_46 = false;
1291
+ }
1292
+ if (tmp_46) {
1293
+ // Inline function 'okio.isIsoControl' call
1294
+ tmp_45 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1295
+ } else {
1296
+ tmp_45 = false;
1297
+ }
1298
+ if (tmp_45) {
1299
+ tmp_44 = true;
1300
+ } else {
1301
+ tmp_44 = 65533 === 65533;
1302
+ }
1303
+ if (tmp_44) {
1304
+ return -1;
1305
+ }
1306
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1307
+ tmp$ret$78 = 1;
1308
+ break $l$block_10;
1309
+ }
1310
+ var b2_0 = s[tmp2_1 + 2 | 0];
1311
+ // Inline function 'okio.isUtf8Continuation' call
1312
+ // Inline function 'okio.and' call
1313
+ if (!((b2_0 & 192) === 128)) {
1314
+ var tmp0_13 = j;
1315
+ j = tmp0_13 + 1 | 0;
1316
+ if (tmp0_13 === codePointCount) {
1317
+ return charCount;
1318
+ }
1319
+ var tmp_47;
1320
+ var tmp_48;
1321
+ var tmp_49;
1322
+ // Inline function 'kotlin.code' call
1323
+ var this_28 = _Char___init__impl__6a9atx(10);
1324
+ if (!(65533 === Char__toInt_impl_vasixd(this_28))) {
1325
+ // Inline function 'kotlin.code' call
1326
+ var this_29 = _Char___init__impl__6a9atx(13);
1327
+ tmp_49 = !(65533 === Char__toInt_impl_vasixd(this_29));
1328
+ } else {
1329
+ tmp_49 = false;
1330
+ }
1331
+ if (tmp_49) {
1332
+ // Inline function 'okio.isIsoControl' call
1333
+ tmp_48 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1334
+ } else {
1335
+ tmp_48 = false;
1336
+ }
1337
+ if (tmp_48) {
1338
+ tmp_47 = true;
1339
+ } else {
1340
+ tmp_47 = 65533 === 65533;
1341
+ }
1342
+ if (tmp_47) {
1343
+ return -1;
1344
+ }
1345
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1346
+ tmp$ret$78 = 2;
1347
+ break $l$block_10;
1348
+ }
1349
+ var b3 = s[tmp2_1 + 3 | 0];
1350
+ // Inline function 'okio.isUtf8Continuation' call
1351
+ // Inline function 'okio.and' call
1352
+ if (!((b3 & 192) === 128)) {
1353
+ var tmp0_14 = j;
1354
+ j = tmp0_14 + 1 | 0;
1355
+ if (tmp0_14 === codePointCount) {
1356
+ return charCount;
1357
+ }
1358
+ var tmp_50;
1359
+ var tmp_51;
1360
+ var tmp_52;
1361
+ // Inline function 'kotlin.code' call
1362
+ var this_30 = _Char___init__impl__6a9atx(10);
1363
+ if (!(65533 === Char__toInt_impl_vasixd(this_30))) {
1364
+ // Inline function 'kotlin.code' call
1365
+ var this_31 = _Char___init__impl__6a9atx(13);
1366
+ tmp_52 = !(65533 === Char__toInt_impl_vasixd(this_31));
1367
+ } else {
1368
+ tmp_52 = false;
1369
+ }
1370
+ if (tmp_52) {
1371
+ // Inline function 'okio.isIsoControl' call
1372
+ tmp_51 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1373
+ } else {
1374
+ tmp_51 = false;
1375
+ }
1376
+ if (tmp_51) {
1377
+ tmp_50 = true;
1378
+ } else {
1379
+ tmp_50 = 65533 === 65533;
1380
+ }
1381
+ if (tmp_50) {
1382
+ return -1;
1383
+ }
1384
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1385
+ tmp$ret$78 = 3;
1386
+ break $l$block_10;
1387
+ }
1388
+ var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
1389
+ if (codePoint_1 > 1114111) {
1390
+ var tmp0_15 = j;
1391
+ j = tmp0_15 + 1 | 0;
1392
+ if (tmp0_15 === codePointCount) {
1393
+ return charCount;
1394
+ }
1395
+ var tmp_53;
1396
+ var tmp_54;
1397
+ var tmp_55;
1398
+ // Inline function 'kotlin.code' call
1399
+ var this_32 = _Char___init__impl__6a9atx(10);
1400
+ if (!(65533 === Char__toInt_impl_vasixd(this_32))) {
1401
+ // Inline function 'kotlin.code' call
1402
+ var this_33 = _Char___init__impl__6a9atx(13);
1403
+ tmp_55 = !(65533 === Char__toInt_impl_vasixd(this_33));
1404
+ } else {
1405
+ tmp_55 = false;
1406
+ }
1407
+ if (tmp_55) {
1408
+ // Inline function 'okio.isIsoControl' call
1409
+ tmp_54 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1410
+ } else {
1411
+ tmp_54 = false;
1412
+ }
1413
+ if (tmp_54) {
1414
+ tmp_53 = true;
1415
+ } else {
1416
+ tmp_53 = 65533 === 65533;
1417
+ }
1418
+ if (tmp_53) {
1419
+ return -1;
1420
+ }
1421
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1422
+ } else if (55296 <= codePoint_1 ? codePoint_1 <= 57343 : false) {
1423
+ var tmp0_16 = j;
1424
+ j = tmp0_16 + 1 | 0;
1425
+ if (tmp0_16 === codePointCount) {
1426
+ return charCount;
1427
+ }
1428
+ var tmp_56;
1429
+ var tmp_57;
1430
+ var tmp_58;
1431
+ // Inline function 'kotlin.code' call
1432
+ var this_34 = _Char___init__impl__6a9atx(10);
1433
+ if (!(65533 === Char__toInt_impl_vasixd(this_34))) {
1434
+ // Inline function 'kotlin.code' call
1435
+ var this_35 = _Char___init__impl__6a9atx(13);
1436
+ tmp_58 = !(65533 === Char__toInt_impl_vasixd(this_35));
1437
+ } else {
1438
+ tmp_58 = false;
1439
+ }
1440
+ if (tmp_58) {
1441
+ // Inline function 'okio.isIsoControl' call
1442
+ tmp_57 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1443
+ } else {
1444
+ tmp_57 = false;
1445
+ }
1446
+ if (tmp_57) {
1447
+ tmp_56 = true;
1448
+ } else {
1449
+ tmp_56 = 65533 === 65533;
1450
+ }
1451
+ if (tmp_56) {
1452
+ return -1;
1453
+ }
1454
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1455
+ } else if (codePoint_1 < 65536) {
1456
+ var tmp0_17 = j;
1457
+ j = tmp0_17 + 1 | 0;
1458
+ if (tmp0_17 === codePointCount) {
1459
+ return charCount;
1460
+ }
1461
+ var tmp_59;
1462
+ var tmp_60;
1463
+ var tmp_61;
1464
+ // Inline function 'kotlin.code' call
1465
+ var this_36 = _Char___init__impl__6a9atx(10);
1466
+ if (!(65533 === Char__toInt_impl_vasixd(this_36))) {
1467
+ // Inline function 'kotlin.code' call
1468
+ var this_37 = _Char___init__impl__6a9atx(13);
1469
+ tmp_61 = !(65533 === Char__toInt_impl_vasixd(this_37));
1470
+ } else {
1471
+ tmp_61 = false;
1472
+ }
1473
+ if (tmp_61) {
1474
+ // Inline function 'okio.isIsoControl' call
1475
+ tmp_60 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1476
+ } else {
1477
+ tmp_60 = false;
1478
+ }
1479
+ if (tmp_60) {
1480
+ tmp_59 = true;
1481
+ } else {
1482
+ tmp_59 = 65533 === 65533;
1483
+ }
1484
+ if (tmp_59) {
1485
+ return -1;
1486
+ }
1487
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1488
+ } else {
1489
+ var tmp0_18 = j;
1490
+ j = tmp0_18 + 1 | 0;
1491
+ if (tmp0_18 === codePointCount) {
1492
+ return charCount;
1493
+ }
1494
+ var tmp_62;
1495
+ var tmp_63;
1496
+ var tmp_64;
1497
+ // Inline function 'kotlin.code' call
1498
+ var this_38 = _Char___init__impl__6a9atx(10);
1499
+ if (!(codePoint_1 === Char__toInt_impl_vasixd(this_38))) {
1500
+ // Inline function 'kotlin.code' call
1501
+ var this_39 = _Char___init__impl__6a9atx(13);
1502
+ tmp_64 = !(codePoint_1 === Char__toInt_impl_vasixd(this_39));
1503
+ } else {
1504
+ tmp_64 = false;
1505
+ }
1506
+ if (tmp_64) {
1507
+ // Inline function 'okio.isIsoControl' call
1508
+ tmp_63 = (0 <= codePoint_1 ? codePoint_1 <= 31 : false) || (127 <= codePoint_1 ? codePoint_1 <= 159 : false);
1509
+ } else {
1510
+ tmp_63 = false;
1511
+ }
1512
+ if (tmp_63) {
1513
+ tmp_62 = true;
1514
+ } else {
1515
+ tmp_62 = codePoint_1 === 65533;
1516
+ }
1517
+ if (tmp_62) {
1518
+ return -1;
1519
+ }
1520
+ charCount = charCount + (codePoint_1 < 65536 ? 1 : 2) | 0;
1521
+ }
1522
+ tmp$ret$78 = 4;
1523
+ }
1524
+ index = tmp_38 + tmp$ret$78 | 0;
1525
+ } else {
1526
+ var tmp0_19 = j;
1527
+ j = tmp0_19 + 1 | 0;
1528
+ if (tmp0_19 === codePointCount) {
1529
+ return charCount;
1530
+ }
1531
+ var tmp_65;
1532
+ var tmp_66;
1533
+ var tmp_67;
1534
+ // Inline function 'kotlin.code' call
1535
+ var this_40 = _Char___init__impl__6a9atx(10);
1536
+ if (!(65533 === Char__toInt_impl_vasixd(this_40))) {
1537
+ // Inline function 'kotlin.code' call
1538
+ var this_41 = _Char___init__impl__6a9atx(13);
1539
+ tmp_67 = !(65533 === Char__toInt_impl_vasixd(this_41));
1540
+ } else {
1541
+ tmp_67 = false;
1542
+ }
1543
+ if (tmp_67) {
1544
+ // Inline function 'okio.isIsoControl' call
1545
+ tmp_66 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1546
+ } else {
1547
+ tmp_66 = false;
1548
+ }
1549
+ if (tmp_66) {
1550
+ tmp_65 = true;
1551
+ } else {
1552
+ tmp_65 = 65533 === 65533;
1553
+ }
1554
+ if (tmp_65) {
1555
+ return -1;
1556
+ }
1557
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1558
+ index = index + 1 | 0;
1559
+ }
1560
+ }
1561
+ }
1562
+ }
1563
+ }
1564
+ return charCount;
1565
+ }
1566
+ function access$codePointIndexToCharIndex$tByteStringKt(s, codePointCount) {
1567
+ return codePointIndexToCharIndex(s, codePointCount);
1568
+ }
1569
+ var properties_initialized_ByteString_kt_8ybv8b;
1570
+ function _init_properties_ByteString_kt__sqjq7b() {
1571
+ if (!properties_initialized_ByteString_kt_8ybv8b) {
1572
+ properties_initialized_ByteString_kt_8ybv8b = true;
1573
+ // Inline function 'kotlin.charArrayOf' call
1574
+ HEX_DIGIT_CHARS = charArrayOf([_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(49), _Char___init__impl__6a9atx(50), _Char___init__impl__6a9atx(51), _Char___init__impl__6a9atx(52), _Char___init__impl__6a9atx(53), _Char___init__impl__6a9atx(54), _Char___init__impl__6a9atx(55), _Char___init__impl__6a9atx(56), _Char___init__impl__6a9atx(57), _Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(98), _Char___init__impl__6a9atx(99), _Char___init__impl__6a9atx(100), _Char___init__impl__6a9atx(101), _Char___init__impl__6a9atx(102)]);
1575
+ }
1576
+ }
1577
+ function segment(_this__u8e3s4, pos) {
1578
+ var i = binarySearch(_this__u8e3s4.hh2_1, pos + 1 | 0, 0, _this__u8e3s4.gh2_1.length);
1579
+ return i >= 0 ? i : ~i;
1580
+ }
1581
+ function binarySearch(_this__u8e3s4, value, fromIndex, toIndex) {
1582
+ var left = fromIndex;
1583
+ var right = toIndex - 1 | 0;
1584
+ while (left <= right) {
1585
+ var mid = (left + right | 0) >>> 1 | 0;
1586
+ var midVal = _this__u8e3s4[mid];
1587
+ if (midVal < value)
1588
+ left = mid + 1 | 0;
1589
+ else if (midVal > value)
1590
+ right = mid - 1 | 0;
1591
+ else
1592
+ return mid;
1593
+ }
1594
+ return (-left | 0) - 1 | 0;
1595
+ }
1596
+ function Companion_0() {
1597
+ Companion_instance_0 = this;
1598
+ var tmp = this;
1599
+ // Inline function 'kotlin.byteArrayOf' call
1600
+ var tmp$ret$0 = new Int8Array([]);
1601
+ tmp.ih2_1 = new ByteString(tmp$ret$0);
1602
+ }
1603
+ protoOf(Companion_0).jh2 = function (_this__u8e3s4) {
1604
+ // Inline function 'okio.internal.commonEncodeUtf8' call
1605
+ var byteString = new ByteString(asUtf8ToByteArray(_this__u8e3s4));
1606
+ byteString.kh2(_this__u8e3s4);
1607
+ return byteString;
1608
+ };
1609
+ var Companion_instance_0;
1610
+ function Companion_getInstance_0() {
1611
+ if (Companion_instance_0 == null)
1612
+ new Companion_0();
1613
+ return Companion_instance_0;
1614
+ }
1615
+ function ByteString(data) {
1616
+ Companion_getInstance_0();
1617
+ this.xh1_1 = data;
1618
+ this.yh1_1 = 0;
1619
+ this.zh1_1 = null;
1620
+ }
1621
+ protoOf(ByteString).lh2 = function (value) {
1622
+ };
1623
+ protoOf(ByteString).kh2 = function (value) {
1624
+ };
1625
+ protoOf(ByteString).mh2 = function () {
1626
+ // Inline function 'okio.internal.commonUtf8' call
1627
+ var result = this.zh1_1;
1628
+ if (result == null) {
1629
+ result = toUtf8String(this.nh2());
1630
+ this.kh2(result);
1631
+ }
1632
+ return result;
1633
+ };
1634
+ protoOf(ByteString).oh2 = function () {
1635
+ // Inline function 'okio.internal.commonHex' call
1636
+ var result = charArray(imul(this.xh1_1.length, 2));
1637
+ var c = 0;
1638
+ var indexedObject = this.xh1_1;
1639
+ var inductionVariable = 0;
1640
+ var last = indexedObject.length;
1641
+ while (inductionVariable < last) {
1642
+ var b = indexedObject[inductionVariable];
1643
+ inductionVariable = inductionVariable + 1 | 0;
1644
+ var tmp1 = c;
1645
+ c = tmp1 + 1 | 0;
1646
+ var tmp = get_HEX_DIGIT_CHARS();
1647
+ // Inline function 'okio.shr' call
1648
+ result[tmp1] = tmp[b >> 4 & 15];
1649
+ var tmp2 = c;
1650
+ c = tmp2 + 1 | 0;
1651
+ var tmp_0 = get_HEX_DIGIT_CHARS();
1652
+ // Inline function 'okio.and' call
1653
+ result[tmp2] = tmp_0[b & 15];
1654
+ }
1655
+ return concatToString_0(result);
1656
+ };
1657
+ protoOf(ByteString).ph2 = function (pos) {
1658
+ if (pos >= this.s() || pos < 0)
1659
+ throw new ArrayIndexOutOfBoundsException('size=' + this.s() + ' pos=' + pos);
1660
+ // Inline function 'okio.internal.commonGetByte' call
1661
+ return this.xh1_1[pos];
1662
+ };
1663
+ protoOf(ByteString).u = function (index) {
1664
+ return this.ph2(index);
1665
+ };
1666
+ protoOf(ByteString).s = function () {
1667
+ return this.qh2();
1668
+ };
1669
+ protoOf(ByteString).qh2 = function () {
1670
+ // Inline function 'okio.internal.commonGetSize' call
1671
+ return this.xh1_1.length;
1672
+ };
1673
+ protoOf(ByteString).nh2 = function () {
1674
+ // Inline function 'okio.internal.commonInternalArray' call
1675
+ return this.xh1_1;
1676
+ };
1677
+ protoOf(ByteString).rh2 = function (buffer, offset, byteCount) {
1678
+ return commonWrite(this, buffer, offset, byteCount);
1679
+ };
1680
+ protoOf(ByteString).sh2 = function (offset, other, otherOffset, byteCount) {
1681
+ // Inline function 'okio.internal.commonRangeEquals' call
1682
+ return offset >= 0 && offset <= (this.xh1_1.length - byteCount | 0) && otherOffset >= 0 && otherOffset <= (other.length - byteCount | 0) && arrayRangeEquals(this.xh1_1, offset, other, otherOffset, byteCount);
1683
+ };
1684
+ protoOf(ByteString).equals = function (other) {
1685
+ // Inline function 'okio.internal.commonEquals' call
1686
+ var tmp;
1687
+ if (other === this) {
1688
+ tmp = true;
1689
+ } else {
1690
+ if (other instanceof ByteString) {
1691
+ tmp = (other.s() === this.xh1_1.length && other.sh2(0, this.xh1_1, 0, this.xh1_1.length));
1692
+ } else {
1693
+ tmp = false;
1694
+ }
1695
+ }
1696
+ return tmp;
1697
+ };
1698
+ protoOf(ByteString).hashCode = function () {
1699
+ var tmp$ret$0;
1700
+ $l$block: {
1701
+ // Inline function 'okio.internal.commonHashCode' call
1702
+ var result = this.yh1_1;
1703
+ if (!(result === 0)) {
1704
+ tmp$ret$0 = result;
1705
+ break $l$block;
1706
+ }
1707
+ // Inline function 'kotlin.also' call
1708
+ var this_0 = contentHashCode(this.xh1_1);
1709
+ this.lh2(this_0);
1710
+ tmp$ret$0 = this_0;
1711
+ }
1712
+ return tmp$ret$0;
1713
+ };
1714
+ protoOf(ByteString).th2 = function (other) {
1715
+ var tmp$ret$3;
1716
+ $l$block_0: {
1717
+ // Inline function 'okio.internal.commonCompareTo' call
1718
+ var sizeA = this.s();
1719
+ var sizeB = other.s();
1720
+ var i = 0;
1721
+ // Inline function 'kotlin.comparisons.minOf' call
1722
+ var size = Math.min(sizeA, sizeB);
1723
+ $l$loop: while (i < size) {
1724
+ // Inline function 'okio.and' call
1725
+ var byteA = this.u(i) & 255;
1726
+ // Inline function 'okio.and' call
1727
+ var byteB = other.u(i) & 255;
1728
+ if (byteA === byteB) {
1729
+ i = i + 1 | 0;
1730
+ continue $l$loop;
1731
+ }
1732
+ tmp$ret$3 = byteA < byteB ? -1 : 1;
1733
+ break $l$block_0;
1734
+ }
1735
+ if (sizeA === sizeB) {
1736
+ tmp$ret$3 = 0;
1737
+ break $l$block_0;
1738
+ }
1739
+ tmp$ret$3 = sizeA < sizeB ? -1 : 1;
1740
+ }
1741
+ return tmp$ret$3;
1742
+ };
1743
+ protoOf(ByteString).d = function (other) {
1744
+ return this.th2(other instanceof ByteString ? other : THROW_CCE());
1745
+ };
1746
+ protoOf(ByteString).toString = function () {
1747
+ var tmp$ret$1;
1748
+ $l$block_1: {
1749
+ // Inline function 'okio.internal.commonToString' call
1750
+ // Inline function 'kotlin.collections.isEmpty' call
1751
+ if (this.xh1_1.length === 0) {
1752
+ tmp$ret$1 = '[size=0]';
1753
+ break $l$block_1;
1754
+ }
1755
+ var i = access$codePointIndexToCharIndex$tByteStringKt(this.xh1_1, 64);
1756
+ if (i === -1) {
1757
+ var tmp;
1758
+ if (this.xh1_1.length <= 64) {
1759
+ tmp = '[hex=' + this.oh2() + ']';
1760
+ } else {
1761
+ var tmp_0 = this.xh1_1.length;
1762
+ var tmp$ret$8;
1763
+ $l$block_0: {
1764
+ // Inline function 'okio.internal.commonSubstring' call
1765
+ var endIndex = resolveDefaultParameter(this, 64);
1766
+ // Inline function 'kotlin.require' call
1767
+ if (!(0 >= 0)) {
1768
+ var message = 'beginIndex < 0';
1769
+ throw IllegalArgumentException_init_$Create$(toString(message));
1770
+ }
1771
+ // Inline function 'kotlin.require' call
1772
+ if (!(endIndex <= this.xh1_1.length)) {
1773
+ var message_0 = 'endIndex > length(' + this.xh1_1.length + ')';
1774
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1775
+ }
1776
+ var subLen = endIndex - 0 | 0;
1777
+ // Inline function 'kotlin.require' call
1778
+ if (!(subLen >= 0)) {
1779
+ var message_1 = 'endIndex < beginIndex';
1780
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
1781
+ }
1782
+ if (0 === 0 && endIndex === this.xh1_1.length) {
1783
+ tmp$ret$8 = this;
1784
+ break $l$block_0;
1785
+ }
1786
+ tmp$ret$8 = new ByteString(copyOfRange(this.xh1_1, 0, endIndex));
1787
+ }
1788
+ tmp = '[size=' + tmp_0 + ' hex=' + tmp$ret$8.oh2() + '\u2026]';
1789
+ }
1790
+ tmp$ret$1 = tmp;
1791
+ break $l$block_1;
1792
+ }
1793
+ var text = this.mh2();
1794
+ var safeText = replace(replace(replace(substring(text, 0, i), '\\', '\\\\'), '\n', '\\n'), '\r', '\\r');
1795
+ var tmp_1;
1796
+ if (i < text.length) {
1797
+ tmp_1 = '[size=' + this.xh1_1.length + ' text=' + safeText + '\u2026]';
1798
+ } else {
1799
+ tmp_1 = '[text=' + safeText + ']';
1800
+ }
1801
+ tmp$ret$1 = tmp_1;
1802
+ }
1803
+ return tmp$ret$1;
1804
+ };
1805
+ function toByteString($this) {
1806
+ return new ByteString($this.w74());
1807
+ }
1808
+ function SegmentedByteString(segments, directory) {
1809
+ ByteString.call(this, Companion_getInstance_0().ih2_1.xh1_1);
1810
+ this.gh2_1 = segments;
1811
+ this.hh2_1 = directory;
1812
+ }
1813
+ protoOf(SegmentedByteString).oh2 = function () {
1814
+ return toByteString(this).oh2();
1815
+ };
1816
+ protoOf(SegmentedByteString).ph2 = function (pos) {
1817
+ // Inline function 'okio.internal.commonInternalGet' call
1818
+ checkOffsetAndCount(toLong(this.hh2_1[this.gh2_1.length - 1 | 0]), toLong(pos), new Long(1, 0));
1819
+ var segment_0 = segment(this, pos);
1820
+ var segmentOffset = segment_0 === 0 ? 0 : this.hh2_1[segment_0 - 1 | 0];
1821
+ var segmentPos = this.hh2_1[segment_0 + this.gh2_1.length | 0];
1822
+ return this.gh2_1[segment_0][(pos - segmentOffset | 0) + segmentPos | 0];
1823
+ };
1824
+ protoOf(SegmentedByteString).qh2 = function () {
1825
+ // Inline function 'okio.internal.commonGetSize' call
1826
+ return this.hh2_1[this.gh2_1.length - 1 | 0];
1827
+ };
1828
+ protoOf(SegmentedByteString).w74 = function () {
1829
+ // Inline function 'okio.internal.commonToByteArray' call
1830
+ var result = new Int8Array(this.s());
1831
+ var resultPos = 0;
1832
+ // Inline function 'okio.internal.forEachSegment' call
1833
+ var segmentCount = this.gh2_1.length;
1834
+ var s = 0;
1835
+ var pos = 0;
1836
+ while (s < segmentCount) {
1837
+ var segmentPos = this.hh2_1[segmentCount + s | 0];
1838
+ var nextSegmentOffset = this.hh2_1[s];
1839
+ var tmp0 = this.gh2_1[s];
1840
+ var byteCount = nextSegmentOffset - pos | 0;
1841
+ var tmp4 = resultPos;
1842
+ // Inline function 'kotlin.collections.copyInto' call
1843
+ var endIndex = segmentPos + byteCount | 0;
1844
+ // Inline function 'kotlin.js.unsafeCast' call
1845
+ // Inline function 'kotlin.js.asDynamic' call
1846
+ var tmp = tmp0;
1847
+ // Inline function 'kotlin.js.unsafeCast' call
1848
+ // Inline function 'kotlin.js.asDynamic' call
1849
+ arrayCopy(tmp, result, tmp4, segmentPos, endIndex);
1850
+ resultPos = resultPos + byteCount | 0;
1851
+ pos = nextSegmentOffset;
1852
+ s = s + 1 | 0;
1853
+ }
1854
+ return result;
1855
+ };
1856
+ protoOf(SegmentedByteString).rh2 = function (buffer, offset, byteCount) {
1857
+ // Inline function 'okio.internal.commonWrite' call
1858
+ var endIndex = offset + byteCount | 0;
1859
+ var s = segment(this, offset);
1860
+ var pos = offset;
1861
+ while (pos < endIndex) {
1862
+ var segmentOffset = s === 0 ? 0 : this.hh2_1[s - 1 | 0];
1863
+ var segmentSize = this.hh2_1[s] - segmentOffset | 0;
1864
+ var segmentPos = this.hh2_1[this.gh2_1.length + s | 0];
1865
+ // Inline function 'kotlin.comparisons.minOf' call
1866
+ var b = segmentOffset + segmentSize | 0;
1867
+ var byteCount_0 = Math.min(endIndex, b) - pos | 0;
1868
+ var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
1869
+ var data = this.gh2_1[s];
1870
+ var segment_0 = Segment_init_$Create$_0(data, offset_0, offset_0 + byteCount_0 | 0, true, false);
1871
+ if (buffer.ah2_1 == null) {
1872
+ segment_0.mh1_1 = segment_0;
1873
+ segment_0.lh1_1 = segment_0.mh1_1;
1874
+ buffer.ah2_1 = segment_0.lh1_1;
1875
+ } else {
1876
+ ensureNotNull(ensureNotNull(buffer.ah2_1).mh1_1).qh1(segment_0);
1877
+ }
1878
+ pos = pos + byteCount_0 | 0;
1879
+ s = s + 1 | 0;
1880
+ }
1881
+ var tmp = buffer;
1882
+ // Inline function 'kotlin.Long.plus' call
1883
+ tmp.bh2_1 = buffer.bh2_1.b3(toLong(byteCount));
1884
+ return Unit_instance;
1885
+ };
1886
+ protoOf(SegmentedByteString).uh2 = function (offset, other, otherOffset, byteCount) {
1887
+ var tmp$ret$0;
1888
+ $l$block_0: {
1889
+ // Inline function 'okio.internal.commonRangeEquals' call
1890
+ if (offset < 0 || offset > (this.s() - byteCount | 0)) {
1891
+ tmp$ret$0 = false;
1892
+ break $l$block_0;
1893
+ }
1894
+ var otherOffset_0 = otherOffset;
1895
+ var endIndex = offset + byteCount | 0;
1896
+ var s = segment(this, offset);
1897
+ var pos = offset;
1898
+ while (pos < endIndex) {
1899
+ var segmentOffset = s === 0 ? 0 : this.hh2_1[s - 1 | 0];
1900
+ var segmentSize = this.hh2_1[s] - segmentOffset | 0;
1901
+ var segmentPos = this.hh2_1[this.gh2_1.length + s | 0];
1902
+ // Inline function 'kotlin.comparisons.minOf' call
1903
+ var b = segmentOffset + segmentSize | 0;
1904
+ var byteCount_0 = Math.min(endIndex, b) - pos | 0;
1905
+ var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
1906
+ var data = this.gh2_1[s];
1907
+ if (!other.sh2(otherOffset_0, data, offset_0, byteCount_0)) {
1908
+ tmp$ret$0 = false;
1909
+ break $l$block_0;
1910
+ }
1911
+ otherOffset_0 = otherOffset_0 + byteCount_0 | 0;
1912
+ pos = pos + byteCount_0 | 0;
1913
+ s = s + 1 | 0;
1914
+ }
1915
+ tmp$ret$0 = true;
1916
+ }
1917
+ return tmp$ret$0;
1918
+ };
1919
+ protoOf(SegmentedByteString).sh2 = function (offset, other, otherOffset, byteCount) {
1920
+ var tmp$ret$0;
1921
+ $l$block_0: {
1922
+ // Inline function 'okio.internal.commonRangeEquals' call
1923
+ if (offset < 0 || offset > (this.s() - byteCount | 0) || otherOffset < 0 || otherOffset > (other.length - byteCount | 0)) {
1924
+ tmp$ret$0 = false;
1925
+ break $l$block_0;
1926
+ }
1927
+ var otherOffset_0 = otherOffset;
1928
+ var endIndex = offset + byteCount | 0;
1929
+ var s = segment(this, offset);
1930
+ var pos = offset;
1931
+ while (pos < endIndex) {
1932
+ var segmentOffset = s === 0 ? 0 : this.hh2_1[s - 1 | 0];
1933
+ var segmentSize = this.hh2_1[s] - segmentOffset | 0;
1934
+ var segmentPos = this.hh2_1[this.gh2_1.length + s | 0];
1935
+ // Inline function 'kotlin.comparisons.minOf' call
1936
+ var b = segmentOffset + segmentSize | 0;
1937
+ var byteCount_0 = Math.min(endIndex, b) - pos | 0;
1938
+ var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
1939
+ var data = this.gh2_1[s];
1940
+ if (!arrayRangeEquals(data, offset_0, other, otherOffset_0, byteCount_0)) {
1941
+ tmp$ret$0 = false;
1942
+ break $l$block_0;
1943
+ }
1944
+ otherOffset_0 = otherOffset_0 + byteCount_0 | 0;
1945
+ pos = pos + byteCount_0 | 0;
1946
+ s = s + 1 | 0;
1947
+ }
1948
+ tmp$ret$0 = true;
1949
+ }
1950
+ return tmp$ret$0;
1951
+ };
1952
+ protoOf(SegmentedByteString).nh2 = function () {
1953
+ return this.w74();
1954
+ };
1955
+ protoOf(SegmentedByteString).equals = function (other) {
1956
+ // Inline function 'okio.internal.commonEquals' call
1957
+ var tmp;
1958
+ if (other === this) {
1959
+ tmp = true;
1960
+ } else {
1961
+ if (other instanceof ByteString) {
1962
+ tmp = (other.s() === this.s() && this.uh2(0, other, 0, this.s()));
1963
+ } else {
1964
+ tmp = false;
1965
+ }
1966
+ }
1967
+ return tmp;
1968
+ };
1969
+ protoOf(SegmentedByteString).hashCode = function () {
1970
+ var tmp$ret$0;
1971
+ $l$block: {
1972
+ // Inline function 'okio.internal.commonHashCode' call
1973
+ var result = this.yh1_1;
1974
+ if (!(result === 0)) {
1975
+ tmp$ret$0 = result;
1976
+ break $l$block;
1977
+ }
1978
+ result = 1;
1979
+ // Inline function 'okio.internal.forEachSegment' call
1980
+ var segmentCount = this.gh2_1.length;
1981
+ var s = 0;
1982
+ var pos = 0;
1983
+ while (s < segmentCount) {
1984
+ var segmentPos = this.hh2_1[segmentCount + s | 0];
1985
+ var nextSegmentOffset = this.hh2_1[s];
1986
+ var tmp0 = this.gh2_1[s];
1987
+ var i = segmentPos;
1988
+ var limit = segmentPos + (nextSegmentOffset - pos | 0) | 0;
1989
+ while (i < limit) {
1990
+ result = imul(31, result) + tmp0[i] | 0;
1991
+ i = i + 1 | 0;
1992
+ }
1993
+ pos = nextSegmentOffset;
1994
+ s = s + 1 | 0;
1995
+ }
1996
+ this.lh2(result);
1997
+ tmp$ret$0 = result;
1998
+ }
1999
+ return tmp$ret$0;
2000
+ };
2001
+ protoOf(SegmentedByteString).toString = function () {
2002
+ return toByteString(this).toString();
2003
+ };
2004
+ function UnsafeCursor() {
2005
+ this.vh2_1 = null;
2006
+ this.wh2_1 = false;
2007
+ this.xh2_1 = null;
2008
+ this.yh2_1 = new Long(-1, -1);
2009
+ this.zh2_1 = null;
2010
+ this.ah3_1 = -1;
2011
+ this.bh3_1 = -1;
2012
+ }
2013
+ function Buffer() {
2014
+ this.ah2_1 = null;
2015
+ this.bh2_1 = new Long(0, 0);
2016
+ }
2017
+ protoOf(Buffer).ch3 = function () {
2018
+ return this.dh3(this.bh2_1);
2019
+ };
2020
+ protoOf(Buffer).dh3 = function (byteCount) {
2021
+ var tmp$ret$2;
2022
+ $l$block_0: {
2023
+ // Inline function 'okio.internal.commonReadUtf8' call
2024
+ // Inline function 'kotlin.require' call
2025
+ if (!(byteCount.j1(new Long(0, 0)) >= 0 && byteCount.j1(new Long(2147483647, 0)) <= 0)) {
2026
+ var message = 'byteCount: ' + byteCount.toString();
2027
+ throw IllegalArgumentException_init_$Create$(toString(message));
2028
+ }
2029
+ if (this.bh2_1.j1(byteCount) < 0)
2030
+ throw EOFException_init_$Create$();
2031
+ if (byteCount.equals(new Long(0, 0))) {
2032
+ tmp$ret$2 = '';
2033
+ break $l$block_0;
2034
+ }
2035
+ var s = ensureNotNull(this.ah2_1);
2036
+ if (numberToLong(s.hh1_1).b3(byteCount).j1(toLong(s.ih1_1)) > 0) {
2037
+ tmp$ret$2 = commonToUtf8String(this.eh3(byteCount));
2038
+ break $l$block_0;
2039
+ }
2040
+ var result = commonToUtf8String(s.gh1_1, s.hh1_1, s.hh1_1 + byteCount.l1() | 0);
2041
+ s.hh1_1 = s.hh1_1 + byteCount.l1() | 0;
2042
+ this.bh2_1 = this.bh2_1.c3(byteCount);
2043
+ if (s.hh1_1 === s.ih1_1) {
2044
+ this.ah2_1 = s.mbc();
2045
+ SegmentPool_instance.wh1(s);
2046
+ }
2047
+ tmp$ret$2 = result;
2048
+ }
2049
+ return tmp$ret$2;
2050
+ };
2051
+ protoOf(Buffer).fh3 = function () {
2052
+ // Inline function 'okio.internal.commonReadByteArray' call
2053
+ return this.eh3(this.bh2_1);
2054
+ };
2055
+ protoOf(Buffer).eh3 = function (byteCount) {
2056
+ // Inline function 'okio.internal.commonReadByteArray' call
2057
+ // Inline function 'kotlin.require' call
2058
+ if (!(byteCount.j1(new Long(0, 0)) >= 0 && byteCount.j1(new Long(2147483647, 0)) <= 0)) {
2059
+ var message = 'byteCount: ' + byteCount.toString();
2060
+ throw IllegalArgumentException_init_$Create$(toString(message));
2061
+ }
2062
+ if (this.bh2_1.j1(byteCount) < 0)
2063
+ throw EOFException_init_$Create$();
2064
+ var result = new Int8Array(byteCount.l1());
2065
+ this.gh3(result);
2066
+ return result;
2067
+ };
2068
+ protoOf(Buffer).gh3 = function (sink) {
2069
+ // Inline function 'okio.internal.commonReadFully' call
2070
+ var offset = 0;
2071
+ while (offset < sink.length) {
2072
+ var read = this.hh3(sink, offset, sink.length - offset | 0);
2073
+ if (read === -1)
2074
+ throw EOFException_init_$Create$();
2075
+ offset = offset + read | 0;
2076
+ }
2077
+ return Unit_instance;
2078
+ };
2079
+ protoOf(Buffer).hh3 = function (sink, offset, byteCount) {
2080
+ var tmp$ret$0;
2081
+ $l$block: {
2082
+ // Inline function 'okio.internal.commonRead' call
2083
+ checkOffsetAndCount(toLong(sink.length), toLong(offset), toLong(byteCount));
2084
+ var tmp0_elvis_lhs = this.ah2_1;
2085
+ var tmp;
2086
+ if (tmp0_elvis_lhs == null) {
2087
+ tmp$ret$0 = -1;
2088
+ break $l$block;
2089
+ } else {
2090
+ tmp = tmp0_elvis_lhs;
2091
+ }
2092
+ var s = tmp;
2093
+ // Inline function 'kotlin.comparisons.minOf' call
2094
+ var b = s.ih1_1 - s.hh1_1 | 0;
2095
+ var toCopy = Math.min(byteCount, b);
2096
+ var tmp0 = s.gh1_1;
2097
+ var tmp6 = s.hh1_1;
2098
+ // Inline function 'kotlin.collections.copyInto' call
2099
+ var endIndex = s.hh1_1 + toCopy | 0;
2100
+ // Inline function 'kotlin.js.unsafeCast' call
2101
+ // Inline function 'kotlin.js.asDynamic' call
2102
+ var tmp_0 = tmp0;
2103
+ // Inline function 'kotlin.js.unsafeCast' call
2104
+ // Inline function 'kotlin.js.asDynamic' call
2105
+ arrayCopy(tmp_0, sink, offset, tmp6, endIndex);
2106
+ s.hh1_1 = s.hh1_1 + toCopy | 0;
2107
+ this.bh2_1 = this.bh2_1.c3(toLong(toCopy));
2108
+ if (s.hh1_1 === s.ih1_1) {
2109
+ this.ah2_1 = s.mbc();
2110
+ SegmentPool_instance.wh1(s);
2111
+ }
2112
+ tmp$ret$0 = toCopy;
2113
+ }
2114
+ return tmp$ret$0;
2115
+ };
2116
+ protoOf(Buffer).ih3 = function (byteString) {
2117
+ // Inline function 'okio.internal.commonWrite' call
2118
+ var byteCount = byteString.s();
2119
+ byteString.rh2(this, 0, byteCount);
2120
+ return this;
2121
+ };
2122
+ protoOf(Buffer).jh3 = function (minimumCapacity) {
2123
+ var tmp$ret$2;
2124
+ $l$block: {
2125
+ // Inline function 'okio.internal.commonWritableSegment' call
2126
+ // Inline function 'kotlin.require' call
2127
+ if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
2128
+ var message = 'unexpected capacity';
2129
+ throw IllegalArgumentException_init_$Create$(toString(message));
2130
+ }
2131
+ if (this.ah2_1 == null) {
2132
+ var result = SegmentPool_instance.z3b();
2133
+ this.ah2_1 = result;
2134
+ result.mh1_1 = result;
2135
+ result.lh1_1 = result;
2136
+ tmp$ret$2 = result;
2137
+ break $l$block;
2138
+ }
2139
+ var tail = ensureNotNull(this.ah2_1).mh1_1;
2140
+ if ((ensureNotNull(tail).ih1_1 + minimumCapacity | 0) > 8192 || !tail.kh1_1) {
2141
+ tail = tail.qh1(SegmentPool_instance.z3b());
2142
+ }
2143
+ tmp$ret$2 = tail;
2144
+ }
2145
+ return tmp$ret$2;
2146
+ };
2147
+ protoOf(Buffer).kh3 = function (string) {
2148
+ return this.lh3(string, 0, string.length);
2149
+ };
2150
+ protoOf(Buffer).lh3 = function (string, beginIndex, endIndex) {
2151
+ // Inline function 'okio.internal.commonWriteUtf8' call
2152
+ // Inline function 'kotlin.require' call
2153
+ if (!(beginIndex >= 0)) {
2154
+ var message = 'beginIndex < 0: ' + beginIndex;
2155
+ throw IllegalArgumentException_init_$Create$(toString(message));
2156
+ }
2157
+ // Inline function 'kotlin.require' call
2158
+ if (!(endIndex >= beginIndex)) {
2159
+ var message_0 = 'endIndex < beginIndex: ' + endIndex + ' < ' + beginIndex;
2160
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
2161
+ }
2162
+ // Inline function 'kotlin.require' call
2163
+ if (!(endIndex <= string.length)) {
2164
+ var message_1 = 'endIndex > string.length: ' + endIndex + ' > ' + string.length;
2165
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
2166
+ }
2167
+ var i = beginIndex;
2168
+ while (i < endIndex) {
2169
+ // Inline function 'kotlin.code' call
2170
+ var this_0 = charCodeAt(string, i);
2171
+ var c = Char__toInt_impl_vasixd(this_0);
2172
+ if (c < 128) {
2173
+ var tail = this.jh3(1);
2174
+ var data = tail.gh1_1;
2175
+ var segmentOffset = tail.ih1_1 - i | 0;
2176
+ // Inline function 'kotlin.comparisons.minOf' call
2177
+ var b = 8192 - segmentOffset | 0;
2178
+ var runLimit = Math.min(endIndex, b);
2179
+ var tmp0 = i;
2180
+ i = tmp0 + 1 | 0;
2181
+ data[segmentOffset + tmp0 | 0] = toByte(c);
2182
+ $l$loop: while (i < runLimit) {
2183
+ // Inline function 'kotlin.code' call
2184
+ var this_1 = charCodeAt(string, i);
2185
+ c = Char__toInt_impl_vasixd(this_1);
2186
+ if (c >= 128)
2187
+ break $l$loop;
2188
+ var tmp1 = i;
2189
+ i = tmp1 + 1 | 0;
2190
+ data[segmentOffset + tmp1 | 0] = toByte(c);
2191
+ }
2192
+ var runSize = (i + segmentOffset | 0) - tail.ih1_1 | 0;
2193
+ tail.ih1_1 = tail.ih1_1 + runSize | 0;
2194
+ this.bh2_1 = this.bh2_1.b3(toLong(runSize));
2195
+ } else if (c < 2048) {
2196
+ var tail_0 = this.jh3(2);
2197
+ tail_0.gh1_1[tail_0.ih1_1] = toByte(c >> 6 | 192);
2198
+ tail_0.gh1_1[tail_0.ih1_1 + 1 | 0] = toByte(c & 63 | 128);
2199
+ tail_0.ih1_1 = tail_0.ih1_1 + 2 | 0;
2200
+ this.bh2_1 = this.bh2_1.b3(new Long(2, 0));
2201
+ i = i + 1 | 0;
2202
+ } else if (c < 55296 || c > 57343) {
2203
+ var tail_1 = this.jh3(3);
2204
+ tail_1.gh1_1[tail_1.ih1_1] = toByte(c >> 12 | 224);
2205
+ tail_1.gh1_1[tail_1.ih1_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
2206
+ tail_1.gh1_1[tail_1.ih1_1 + 2 | 0] = toByte(c & 63 | 128);
2207
+ tail_1.ih1_1 = tail_1.ih1_1 + 3 | 0;
2208
+ this.bh2_1 = this.bh2_1.b3(new Long(3, 0));
2209
+ i = i + 1 | 0;
2210
+ } else {
2211
+ var tmp;
2212
+ if ((i + 1 | 0) < endIndex) {
2213
+ // Inline function 'kotlin.code' call
2214
+ var this_2 = charCodeAt(string, i + 1 | 0);
2215
+ tmp = Char__toInt_impl_vasixd(this_2);
2216
+ } else {
2217
+ tmp = 0;
2218
+ }
2219
+ var low = tmp;
2220
+ if (c > 56319 || !(56320 <= low ? low <= 57343 : false)) {
2221
+ // Inline function 'kotlin.code' call
2222
+ var this_3 = _Char___init__impl__6a9atx(63);
2223
+ var tmp$ret$10 = Char__toInt_impl_vasixd(this_3);
2224
+ this.mh3(tmp$ret$10);
2225
+ i = i + 1 | 0;
2226
+ } else {
2227
+ var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
2228
+ var tail_2 = this.jh3(4);
2229
+ tail_2.gh1_1[tail_2.ih1_1] = toByte(codePoint >> 18 | 240);
2230
+ tail_2.gh1_1[tail_2.ih1_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
2231
+ tail_2.gh1_1[tail_2.ih1_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
2232
+ tail_2.gh1_1[tail_2.ih1_1 + 3 | 0] = toByte(codePoint & 63 | 128);
2233
+ tail_2.ih1_1 = tail_2.ih1_1 + 4 | 0;
2234
+ this.bh2_1 = this.bh2_1.b3(new Long(4, 0));
2235
+ i = i + 2 | 0;
2236
+ }
2237
+ }
2238
+ }
2239
+ return this;
2240
+ };
2241
+ protoOf(Buffer).ch2 = function (source, offset, byteCount) {
2242
+ // Inline function 'okio.internal.commonWrite' call
2243
+ var offset_0 = offset;
2244
+ checkOffsetAndCount(toLong(source.length), toLong(offset_0), toLong(byteCount));
2245
+ var limit = offset_0 + byteCount | 0;
2246
+ while (offset_0 < limit) {
2247
+ var tail = this.jh3(1);
2248
+ var tmp0 = limit - offset_0 | 0;
2249
+ // Inline function 'kotlin.comparisons.minOf' call
2250
+ var b = 8192 - tail.ih1_1 | 0;
2251
+ var toCopy = Math.min(tmp0, b);
2252
+ var tmp2 = tail.gh1_1;
2253
+ var tmp4 = tail.ih1_1;
2254
+ var tmp6 = offset_0;
2255
+ // Inline function 'kotlin.collections.copyInto' call
2256
+ var endIndex = offset_0 + toCopy | 0;
2257
+ // Inline function 'kotlin.js.unsafeCast' call
2258
+ // Inline function 'kotlin.js.asDynamic' call
2259
+ var tmp = source;
2260
+ // Inline function 'kotlin.js.unsafeCast' call
2261
+ // Inline function 'kotlin.js.asDynamic' call
2262
+ arrayCopy(tmp, tmp2, tmp4, tmp6, endIndex);
2263
+ offset_0 = offset_0 + toCopy | 0;
2264
+ tail.ih1_1 = tail.ih1_1 + toCopy | 0;
2265
+ }
2266
+ this.bh2_1 = this.bh2_1.b3(toLong(byteCount));
2267
+ return this;
2268
+ };
2269
+ protoOf(Buffer).nh3 = function (source) {
2270
+ // Inline function 'okio.internal.commonWriteAll' call
2271
+ var totalBytesRead = new Long(0, 0);
2272
+ $l$loop: while (true) {
2273
+ var readCount = source.oh3(this, new Long(8192, 0));
2274
+ if (readCount.equals(new Long(-1, -1)))
2275
+ break $l$loop;
2276
+ totalBytesRead = totalBytesRead.b3(readCount);
2277
+ }
2278
+ return totalBytesRead;
2279
+ };
2280
+ protoOf(Buffer).mh3 = function (b) {
2281
+ // Inline function 'okio.internal.commonWriteByte' call
2282
+ var tail = this.jh3(1);
2283
+ var tmp1 = tail.ih1_1;
2284
+ tail.ih1_1 = tmp1 + 1 | 0;
2285
+ tail.gh1_1[tmp1] = toByte(b);
2286
+ this.bh2_1 = this.bh2_1.b3(new Long(1, 0));
2287
+ return this;
2288
+ };
2289
+ protoOf(Buffer).ph3 = function (source, byteCount) {
2290
+ var tmp$ret$4;
2291
+ $l$block: {
2292
+ // Inline function 'okio.internal.commonWrite' call
2293
+ var byteCount_0 = byteCount;
2294
+ // Inline function 'kotlin.require' call
2295
+ if (!!(source === this)) {
2296
+ var message = 'source == this';
2297
+ throw IllegalArgumentException_init_$Create$(toString(message));
2298
+ }
2299
+ checkOffsetAndCount(source.bh2_1, new Long(0, 0), byteCount_0);
2300
+ while (byteCount_0.j1(new Long(0, 0)) > 0) {
2301
+ if (byteCount_0.j1(toLong(ensureNotNull(source.ah2_1).ih1_1 - ensureNotNull(source.ah2_1).hh1_1 | 0)) < 0) {
2302
+ var tail = !(this.ah2_1 == null) ? ensureNotNull(this.ah2_1).mh1_1 : null;
2303
+ var tmp;
2304
+ if (!(tail == null) && tail.kh1_1) {
2305
+ var tmp0 = byteCount_0;
2306
+ // Inline function 'kotlin.Long.plus' call
2307
+ var other = tail.ih1_1;
2308
+ var tmp0_0 = tmp0.b3(toLong(other));
2309
+ // Inline function 'kotlin.Long.minus' call
2310
+ var other_0 = tail.jh1_1 ? 0 : tail.hh1_1;
2311
+ tmp = tmp0_0.c3(toLong(other_0)).j1(new Long(8192, 0)) <= 0;
2312
+ } else {
2313
+ tmp = false;
2314
+ }
2315
+ if (tmp) {
2316
+ ensureNotNull(source.ah2_1).vh1(tail, byteCount_0.l1());
2317
+ source.bh2_1 = source.bh2_1.c3(byteCount_0);
2318
+ this.bh2_1 = this.bh2_1.b3(byteCount_0);
2319
+ tmp$ret$4 = Unit_instance;
2320
+ break $l$block;
2321
+ } else {
2322
+ source.ah2_1 = ensureNotNull(source.ah2_1).rh1(byteCount_0.l1());
2323
+ }
2324
+ }
2325
+ var segmentToMove = source.ah2_1;
2326
+ var movedByteCount = toLong(ensureNotNull(segmentToMove).ih1_1 - segmentToMove.hh1_1 | 0);
2327
+ source.ah2_1 = segmentToMove.mbc();
2328
+ if (this.ah2_1 == null) {
2329
+ this.ah2_1 = segmentToMove;
2330
+ segmentToMove.mh1_1 = segmentToMove;
2331
+ segmentToMove.lh1_1 = segmentToMove.mh1_1;
2332
+ } else {
2333
+ var tail_0 = ensureNotNull(this.ah2_1).mh1_1;
2334
+ tail_0 = ensureNotNull(tail_0).qh1(segmentToMove);
2335
+ tail_0.uh1();
2336
+ }
2337
+ source.bh2_1 = source.bh2_1.c3(movedByteCount);
2338
+ this.bh2_1 = this.bh2_1.b3(movedByteCount);
2339
+ byteCount_0 = byteCount_0.c3(movedByteCount);
2340
+ }
2341
+ tmp$ret$4 = Unit_instance;
2342
+ }
2343
+ return tmp$ret$4;
2344
+ };
2345
+ protoOf(Buffer).oh3 = function (sink, byteCount) {
2346
+ var tmp$ret$2;
2347
+ $l$block: {
2348
+ // Inline function 'okio.internal.commonRead' call
2349
+ var byteCount_0 = byteCount;
2350
+ // Inline function 'kotlin.require' call
2351
+ if (!(byteCount_0.j1(new Long(0, 0)) >= 0)) {
2352
+ var message = 'byteCount < 0: ' + byteCount_0.toString();
2353
+ throw IllegalArgumentException_init_$Create$(toString(message));
2354
+ }
2355
+ if (this.bh2_1.equals(new Long(0, 0))) {
2356
+ tmp$ret$2 = new Long(-1, -1);
2357
+ break $l$block;
2358
+ }
2359
+ if (byteCount_0.j1(this.bh2_1) > 0)
2360
+ byteCount_0 = this.bh2_1;
2361
+ sink.ph3(this, byteCount_0);
2362
+ tmp$ret$2 = byteCount_0;
2363
+ }
2364
+ return tmp$ret$2;
2365
+ };
2366
+ protoOf(Buffer).u9 = function () {
2367
+ return Unit_instance;
2368
+ };
2369
+ protoOf(Buffer).equals = function (other) {
2370
+ var tmp$ret$0;
2371
+ $l$block_3: {
2372
+ // Inline function 'okio.internal.commonEquals' call
2373
+ if (this === other) {
2374
+ tmp$ret$0 = true;
2375
+ break $l$block_3;
2376
+ }
2377
+ if (!(other instanceof Buffer)) {
2378
+ tmp$ret$0 = false;
2379
+ break $l$block_3;
2380
+ }
2381
+ if (!this.bh2_1.equals(other.bh2_1)) {
2382
+ tmp$ret$0 = false;
2383
+ break $l$block_3;
2384
+ }
2385
+ if (this.bh2_1.equals(new Long(0, 0))) {
2386
+ tmp$ret$0 = true;
2387
+ break $l$block_3;
2388
+ }
2389
+ var sa = ensureNotNull(this.ah2_1);
2390
+ var sb = ensureNotNull(other.ah2_1);
2391
+ var posA = sa.hh1_1;
2392
+ var posB = sb.hh1_1;
2393
+ var pos = new Long(0, 0);
2394
+ var count;
2395
+ while (pos.j1(this.bh2_1) < 0) {
2396
+ var tmp0 = sa.ih1_1 - posA | 0;
2397
+ // Inline function 'kotlin.comparisons.minOf' call
2398
+ var b = sb.ih1_1 - posB | 0;
2399
+ var tmp$ret$1 = Math.min(tmp0, b);
2400
+ count = toLong(tmp$ret$1);
2401
+ var inductionVariable = new Long(0, 0);
2402
+ if (inductionVariable.j1(count) < 0)
2403
+ do {
2404
+ var i = inductionVariable;
2405
+ inductionVariable = inductionVariable.b3(new Long(1, 0));
2406
+ var tmp = sa.gh1_1;
2407
+ var tmp1 = posA;
2408
+ posA = tmp1 + 1 | 0;
2409
+ var tmp_0 = tmp[tmp1];
2410
+ var tmp_1 = sb.gh1_1;
2411
+ var tmp2 = posB;
2412
+ posB = tmp2 + 1 | 0;
2413
+ if (!(tmp_0 === tmp_1[tmp2])) {
2414
+ tmp$ret$0 = false;
2415
+ break $l$block_3;
2416
+ }
2417
+ }
2418
+ while (inductionVariable.j1(count) < 0);
2419
+ if (posA === sa.ih1_1) {
2420
+ sa = ensureNotNull(sa.lh1_1);
2421
+ posA = sa.hh1_1;
2422
+ }
2423
+ if (posB === sb.ih1_1) {
2424
+ sb = ensureNotNull(sb.lh1_1);
2425
+ posB = sb.hh1_1;
2426
+ }
2427
+ pos = pos.b3(count);
2428
+ }
2429
+ tmp$ret$0 = true;
2430
+ }
2431
+ return tmp$ret$0;
2432
+ };
2433
+ protoOf(Buffer).hashCode = function () {
2434
+ var tmp$ret$0;
2435
+ $l$block: {
2436
+ // Inline function 'okio.internal.commonHashCode' call
2437
+ var tmp0_elvis_lhs = this.ah2_1;
2438
+ var tmp;
2439
+ if (tmp0_elvis_lhs == null) {
2440
+ tmp$ret$0 = 0;
2441
+ break $l$block;
2442
+ } else {
2443
+ tmp = tmp0_elvis_lhs;
2444
+ }
2445
+ var s = tmp;
2446
+ var result = 1;
2447
+ do {
2448
+ var pos = s.hh1_1;
2449
+ var limit = s.ih1_1;
2450
+ while (pos < limit) {
2451
+ result = imul(31, result) + s.gh1_1[pos] | 0;
2452
+ pos = pos + 1 | 0;
2453
+ }
2454
+ s = ensureNotNull(s.lh1_1);
2455
+ }
2456
+ while (!(s === this.ah2_1));
2457
+ tmp$ret$0 = result;
2458
+ }
2459
+ return tmp$ret$0;
2460
+ };
2461
+ protoOf(Buffer).toString = function () {
2462
+ return this.qh3().toString();
2463
+ };
2464
+ protoOf(Buffer).qh3 = function () {
2465
+ // Inline function 'okio.internal.commonSnapshot' call
2466
+ // Inline function 'kotlin.check' call
2467
+ if (!(this.bh2_1.j1(new Long(2147483647, 0)) <= 0)) {
2468
+ var message = 'size > Int.MAX_VALUE: ' + this.bh2_1.toString();
2469
+ throw IllegalStateException_init_$Create$(toString(message));
2470
+ }
2471
+ return this.rh3(this.bh2_1.l1());
2472
+ };
2473
+ protoOf(Buffer).rh3 = function (byteCount) {
2474
+ var tmp$ret$0;
2475
+ $l$block: {
2476
+ // Inline function 'okio.internal.commonSnapshot' call
2477
+ if (byteCount === 0) {
2478
+ tmp$ret$0 = Companion_getInstance_0().ih2_1;
2479
+ break $l$block;
2480
+ }
2481
+ checkOffsetAndCount(this.bh2_1, new Long(0, 0), toLong(byteCount));
2482
+ var offset = 0;
2483
+ var segmentCount = 0;
2484
+ var s = this.ah2_1;
2485
+ while (offset < byteCount) {
2486
+ if (ensureNotNull(s).ih1_1 === s.hh1_1) {
2487
+ throw AssertionError_init_$Create$('s.limit == s.pos');
2488
+ }
2489
+ offset = offset + (s.ih1_1 - s.hh1_1 | 0) | 0;
2490
+ segmentCount = segmentCount + 1 | 0;
2491
+ s = s.lh1_1;
2492
+ }
2493
+ // Inline function 'kotlin.arrayOfNulls' call
2494
+ var size = segmentCount;
2495
+ var segments = Array(size);
2496
+ var directory = new Int32Array(imul(segmentCount, 2));
2497
+ offset = 0;
2498
+ segmentCount = 0;
2499
+ s = this.ah2_1;
2500
+ while (offset < byteCount) {
2501
+ segments[segmentCount] = ensureNotNull(s).gh1_1;
2502
+ offset = offset + (s.ih1_1 - s.hh1_1 | 0) | 0;
2503
+ var tmp = segmentCount;
2504
+ // Inline function 'kotlin.comparisons.minOf' call
2505
+ var a = offset;
2506
+ directory[tmp] = Math.min(a, byteCount);
2507
+ directory[segmentCount + segments.length | 0] = s.hh1_1;
2508
+ s.jh1_1 = true;
2509
+ segmentCount = segmentCount + 1 | 0;
2510
+ s = s.lh1_1;
2511
+ }
2512
+ tmp$ret$0 = new SegmentedByteString(isArray(segments) ? segments : THROW_CCE(), directory);
2513
+ }
2514
+ return tmp$ret$0;
2515
+ };
2516
+ function BufferedSource() {
2517
+ }
2518
+ function asUtf8ToByteArray(_this__u8e3s4) {
2519
+ return commonAsUtf8ToByteArray(_this__u8e3s4);
2520
+ }
2521
+ function ArrayIndexOutOfBoundsException(message) {
2522
+ IndexOutOfBoundsException_init_$Init$(message, this);
2523
+ captureStack(this, ArrayIndexOutOfBoundsException);
2524
+ }
2525
+ function EOFException_init_$Init$($this) {
2526
+ EOFException.call($this, null);
2527
+ return $this;
2528
+ }
2529
+ function EOFException_init_$Create$() {
2530
+ var tmp = EOFException_init_$Init$(objectCreate(protoOf(EOFException)));
2531
+ captureStack(tmp, EOFException_init_$Create$);
2532
+ return tmp;
2533
+ }
2534
+ function EOFException(message) {
2535
+ IOException_init_$Init$(message, this);
2536
+ captureStack(this, EOFException);
2537
+ }
2538
+ function IOException_init_$Init$(message, $this) {
2539
+ IOException.call($this, message, null);
2540
+ return $this;
2541
+ }
2542
+ function IOException_init_$Init$_0($this) {
2543
+ IOException.call($this, null, null);
2544
+ return $this;
2545
+ }
2546
+ function IOException_init_$Create$() {
2547
+ var tmp = IOException_init_$Init$_0(objectCreate(protoOf(IOException)));
2548
+ captureStack(tmp, IOException_init_$Create$);
2549
+ return tmp;
2550
+ }
2551
+ function IOException(message, cause) {
2552
+ Exception_init_$Init$(message, cause, this);
2553
+ captureStack(this, IOException);
2554
+ }
2555
+ function toUtf8String(_this__u8e3s4) {
2556
+ return commonToUtf8String(_this__u8e3s4);
2557
+ }
2558
+ function RealBufferedSource(source) {
2559
+ this.sh3_1 = source;
2560
+ this.th3_1 = false;
2561
+ this.uh3_1 = new Buffer();
2562
+ }
2563
+ protoOf(RealBufferedSource).oh3 = function (sink, byteCount) {
2564
+ var tmp$ret$4;
2565
+ $l$block: {
2566
+ // Inline function 'okio.internal.commonRead' call
2567
+ // Inline function 'kotlin.require' call
2568
+ if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
2569
+ var message = 'byteCount < 0: ' + byteCount.toString();
2570
+ throw IllegalArgumentException_init_$Create$(toString(message));
2571
+ }
2572
+ // Inline function 'kotlin.check' call
2573
+ if (!!this.th3_1) {
2574
+ var message_0 = 'closed';
2575
+ throw IllegalStateException_init_$Create$(toString(message_0));
2576
+ }
2577
+ if (this.uh3_1.bh2_1.equals(new Long(0, 0))) {
2578
+ var read = this.sh3_1.oh3(this.uh3_1, new Long(8192, 0));
2579
+ if (read.equals(new Long(-1, -1))) {
2580
+ tmp$ret$4 = new Long(-1, -1);
2581
+ break $l$block;
2582
+ }
2583
+ }
2584
+ // Inline function 'kotlin.comparisons.minOf' call
2585
+ var b = this.uh3_1.bh2_1;
2586
+ var toRead = byteCount.j1(b) <= 0 ? byteCount : b;
2587
+ tmp$ret$4 = this.uh3_1.oh3(sink, toRead);
2588
+ }
2589
+ return tmp$ret$4;
2590
+ };
2591
+ protoOf(RealBufferedSource).ch3 = function () {
2592
+ // Inline function 'okio.internal.commonReadUtf8' call
2593
+ this.uh3_1.nh3(this.sh3_1);
2594
+ return this.uh3_1.ch3();
2595
+ };
2596
+ protoOf(RealBufferedSource).toString = function () {
2597
+ // Inline function 'okio.internal.commonToString' call
2598
+ return 'buffer(' + toString(this.sh3_1) + ')';
2599
+ };
2600
+ function SegmentPool() {
2601
+ this.sh1_1 = 0;
2602
+ this.th1_1 = 0;
2603
+ }
2604
+ protoOf(SegmentPool).z3b = function () {
2605
+ return Segment_init_$Create$();
2606
+ };
2607
+ protoOf(SegmentPool).wh1 = function (segment) {
2608
+ };
2609
+ var SegmentPool_instance;
2610
+ function SegmentPool_getInstance() {
2611
+ return SegmentPool_instance;
2612
+ }
2613
+ //region block: init
2614
+ Companion_instance = new Companion();
2615
+ SegmentPool_instance = new SegmentPool();
2616
+ //endregion
2617
+ //region block: exports
2618
+ _.$_$ = _.$_$ || {};
2619
+ _.$_$.a = Companion_getInstance_0;
2620
+ _.$_$.b = BufferedSource;
2621
+ _.$_$.c = Buffer;
2622
+ _.$_$.d = IOException;
2623
+ _.$_$.e = buffer;
2624
+ //endregion
2625
+ return _;
2626
+ }));
2627
+
2628
+ //# sourceMappingURL=okio-parent-okio.js.map