@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,1241 @@
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 'Kotlin-Immutable-Collections-kotlinx-collections-immutable'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Kotlin-Immutable-Collections-kotlinx-collections-immutable'.");
9
+ }
10
+ globalThis['Kotlin-Immutable-Collections-kotlinx-collections-immutable'] = factory(typeof globalThis['Kotlin-Immutable-Collections-kotlinx-collections-immutable'] === 'undefined' ? {} : globalThis['Kotlin-Immutable-Collections-kotlinx-collections-immutable'], globalThis['kotlin-kotlin-stdlib']);
11
+ }
12
+ }(function (_, kotlin_kotlin) {
13
+ 'use strict';
14
+ //region block: imports
15
+ var imul = Math.imul;
16
+ var THROW_CCE = kotlin_kotlin.$_$.zk;
17
+ var protoOf = kotlin_kotlin.$_$.we;
18
+ var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
19
+ var equals = kotlin_kotlin.$_$.md;
20
+ var AbstractMap = kotlin_kotlin.$_$.j6;
21
+ var hashCode = kotlin_kotlin.$_$.td;
22
+ var KtMap = kotlin_kotlin.$_$.v6;
23
+ var isInterface = kotlin_kotlin.$_$.je;
24
+ var initMetadataForClass = kotlin_kotlin.$_$.ud;
25
+ var VOID = kotlin_kotlin.$_$.h;
26
+ var AbstractMutableMap = kotlin_kotlin.$_$.k6;
27
+ var KtMutableMap = kotlin_kotlin.$_$.x6;
28
+ var Entry = kotlin_kotlin.$_$.t6;
29
+ var toString = kotlin_kotlin.$_$.gm;
30
+ var Unit_instance = kotlin_kotlin.$_$.h6;
31
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.p2;
32
+ var AbstractSet = kotlin_kotlin.$_$.l6;
33
+ var Collection = kotlin_kotlin.$_$.n6;
34
+ var KtSet = kotlin_kotlin.$_$.z6;
35
+ var AbstractCollection = kotlin_kotlin.$_$.i6;
36
+ var objectCreate = kotlin_kotlin.$_$.ve;
37
+ var until = kotlin_kotlin.$_$.of;
38
+ var step = kotlin_kotlin.$_$.nf;
39
+ var countOneBits = kotlin_kotlin.$_$.pl;
40
+ var arrayCopy = kotlin_kotlin.$_$.d7;
41
+ var copyOf = kotlin_kotlin.$_$.f8;
42
+ var ensureNotNull = kotlin_kotlin.$_$.sl;
43
+ var ConcurrentModificationException_init_$Create$ = kotlin_kotlin.$_$.s1;
44
+ var initMetadataForObject = kotlin_kotlin.$_$.ae;
45
+ var AssertionError_init_$Create$ = kotlin_kotlin.$_$.r1;
46
+ //endregion
47
+ //region block: pre-declaration
48
+ initMetadataForCompanion(Companion);
49
+ initMetadataForClass(PersistentHashMap, 'PersistentHashMap', VOID, AbstractMap, [AbstractMap, KtMap]);
50
+ initMetadataForClass(PersistentHashMapBuilder, 'PersistentHashMapBuilder', VOID, AbstractMutableMap, [KtMutableMap, AbstractMutableMap]);
51
+ initMetadataForClass(PersistentHashMapBaseIterator, 'PersistentHashMapBaseIterator');
52
+ initMetadataForClass(PersistentHashMapKeysIterator, 'PersistentHashMapKeysIterator', VOID, PersistentHashMapBaseIterator);
53
+ initMetadataForClass(PersistentHashMapValuesIterator, 'PersistentHashMapValuesIterator', VOID, PersistentHashMapBaseIterator);
54
+ initMetadataForClass(PersistentHashMapEntriesIterator, 'PersistentHashMapEntriesIterator', VOID, PersistentHashMapBaseIterator);
55
+ initMetadataForClass(MapEntry, 'MapEntry', VOID, VOID, [Entry]);
56
+ initMetadataForClass(TrieNodeBaseIterator, 'TrieNodeBaseIterator');
57
+ initMetadataForClass(TrieNodeKeysIterator, 'TrieNodeKeysIterator', TrieNodeKeysIterator, TrieNodeBaseIterator);
58
+ initMetadataForClass(TrieNodeValuesIterator, 'TrieNodeValuesIterator', TrieNodeValuesIterator, TrieNodeBaseIterator);
59
+ initMetadataForClass(TrieNodeEntriesIterator, 'TrieNodeEntriesIterator', TrieNodeEntriesIterator, TrieNodeBaseIterator);
60
+ initMetadataForClass(PersistentHashMapKeys, 'PersistentHashMapKeys', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
61
+ initMetadataForClass(PersistentHashMapValues, 'PersistentHashMapValues', VOID, AbstractCollection, [Collection, AbstractCollection]);
62
+ initMetadataForClass(PersistentHashMapEntries, 'PersistentHashMapEntries', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
63
+ initMetadataForClass(ModificationResult, 'ModificationResult');
64
+ initMetadataForCompanion(Companion_0);
65
+ initMetadataForClass(TrieNode, 'TrieNode');
66
+ initMetadataForCompanion(Companion_1);
67
+ initMetadataForClass(PersistentOrderedMap, 'PersistentOrderedMap', VOID, AbstractMap, [AbstractMap, KtMap]);
68
+ initMetadataForClass(LinkedValue, 'LinkedValue');
69
+ initMetadataForClass(PersistentOrderedMapBuilder, 'PersistentOrderedMapBuilder', VOID, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
70
+ initMetadataForClass(PersistentOrderedMapKeysIterator, 'PersistentOrderedMapKeysIterator');
71
+ initMetadataForClass(PersistentOrderedMapValuesIterator, 'PersistentOrderedMapValuesIterator');
72
+ initMetadataForClass(PersistentOrderedMapEntriesIterator, 'PersistentOrderedMapEntriesIterator');
73
+ initMetadataForClass(PersistentOrderedMapLinksIterator, 'PersistentOrderedMapLinksIterator');
74
+ initMetadataForClass(PersistentOrderedMapKeys, 'PersistentOrderedMapKeys', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
75
+ initMetadataForClass(PersistentOrderedMapValues, 'PersistentOrderedMapValues', VOID, AbstractCollection, [Collection, AbstractCollection]);
76
+ initMetadataForClass(PersistentOrderedMapEntries, 'PersistentOrderedMapEntries', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
77
+ initMetadataForObject(EndOfChain, 'EndOfChain');
78
+ initMetadataForObject(MapImplementation, 'MapImplementation');
79
+ //endregion
80
+ function persistentMapOf() {
81
+ return Companion_getInstance_1().cfz();
82
+ }
83
+ function createEntries($this) {
84
+ return new PersistentHashMapEntries($this);
85
+ }
86
+ function Companion() {
87
+ Companion_instance = this;
88
+ this.dfz_1 = new PersistentHashMap(Companion_getInstance_0().efz_1, 0);
89
+ }
90
+ protoOf(Companion).cfz = function () {
91
+ var tmp = this.dfz_1;
92
+ return tmp instanceof PersistentHashMap ? tmp : THROW_CCE();
93
+ };
94
+ var Companion_instance;
95
+ function Companion_getInstance() {
96
+ if (Companion_instance == null)
97
+ new Companion();
98
+ return Companion_instance;
99
+ }
100
+ function PersistentHashMap$equals$lambda(a, b) {
101
+ return equals(a, b.ffz_1);
102
+ }
103
+ function PersistentHashMap$equals$lambda_0(a, b) {
104
+ return equals(a, b.ffz_1);
105
+ }
106
+ function PersistentHashMap$equals$lambda_1(a, b) {
107
+ return equals(a, b);
108
+ }
109
+ function PersistentHashMap$equals$lambda_2(a, b) {
110
+ return equals(a, b);
111
+ }
112
+ function PersistentHashMap(node, size) {
113
+ Companion_getInstance();
114
+ AbstractMap.call(this);
115
+ this.kfz_1 = node;
116
+ this.lfz_1 = size;
117
+ }
118
+ protoOf(PersistentHashMap).s = function () {
119
+ return this.lfz_1;
120
+ };
121
+ protoOf(PersistentHashMap).k2 = function () {
122
+ return new PersistentHashMapKeys(this);
123
+ };
124
+ protoOf(PersistentHashMap).l2 = function () {
125
+ return new PersistentHashMapValues(this);
126
+ };
127
+ protoOf(PersistentHashMap).z = function () {
128
+ return createEntries(this);
129
+ };
130
+ protoOf(PersistentHashMap).h2 = function (key) {
131
+ // Inline function 'kotlin.hashCode' call
132
+ var tmp1_elvis_lhs = key == null ? null : hashCode(key);
133
+ var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
134
+ return this.kfz_1.qfz(tmp$ret$0, key, 0);
135
+ };
136
+ protoOf(PersistentHashMap).j2 = function (key) {
137
+ // Inline function 'kotlin.hashCode' call
138
+ var tmp1_elvis_lhs = key == null ? null : hashCode(key);
139
+ var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
140
+ return this.kfz_1.rfz(tmp$ret$0, key, 0);
141
+ };
142
+ protoOf(PersistentHashMap).r2 = function (key, value) {
143
+ // Inline function 'kotlin.hashCode' call
144
+ var tmp1_elvis_lhs = key == null ? null : hashCode(key);
145
+ var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
146
+ var tmp0_elvis_lhs = this.kfz_1.sfz(tmp$ret$0, key, value, 0);
147
+ var tmp;
148
+ if (tmp0_elvis_lhs == null) {
149
+ return this;
150
+ } else {
151
+ tmp = tmp0_elvis_lhs;
152
+ }
153
+ var newNodeResult = tmp;
154
+ return new PersistentHashMap(newNodeResult.tfz_1, this.lfz_1 + newNodeResult.ufz_1 | 0);
155
+ };
156
+ protoOf(PersistentHashMap).s2 = function (key) {
157
+ // Inline function 'kotlin.hashCode' call
158
+ var tmp1_elvis_lhs = key == null ? null : hashCode(key);
159
+ var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
160
+ var newNode = this.kfz_1.vfz(tmp$ret$0, key, 0);
161
+ if (this.kfz_1 === newNode) {
162
+ return this;
163
+ }
164
+ if (newNode == null) {
165
+ return Companion_getInstance().cfz();
166
+ }
167
+ return new PersistentHashMap(newNode, this.lfz_1 - 1 | 0);
168
+ };
169
+ protoOf(PersistentHashMap).equals = function (other) {
170
+ if (other === this)
171
+ return true;
172
+ if (!(!(other == null) ? isInterface(other, KtMap) : false))
173
+ return false;
174
+ if (!(this.lfz_1 === other.s()))
175
+ return false;
176
+ var tmp;
177
+ if (other instanceof PersistentOrderedMap) {
178
+ tmp = this.kfz_1.bg0(other.lg0_1.kfz_1, PersistentHashMap$equals$lambda);
179
+ } else {
180
+ if (other instanceof PersistentOrderedMapBuilder) {
181
+ var tmp_0 = other.gg0_1.ag0_1;
182
+ tmp = this.kfz_1.bg0(tmp_0, PersistentHashMap$equals$lambda_0);
183
+ } else {
184
+ if (other instanceof PersistentHashMap) {
185
+ tmp = this.kfz_1.bg0(other.kfz_1, PersistentHashMap$equals$lambda_1);
186
+ } else {
187
+ if (other instanceof PersistentHashMapBuilder) {
188
+ var tmp_1 = other.ag0_1;
189
+ tmp = this.kfz_1.bg0(tmp_1, PersistentHashMap$equals$lambda_2);
190
+ } else {
191
+ tmp = protoOf(AbstractMap).equals.call(this, other);
192
+ }
193
+ }
194
+ }
195
+ }
196
+ return tmp;
197
+ };
198
+ protoOf(PersistentHashMap).hashCode = function () {
199
+ return protoOf(AbstractMap).hashCode.call(this);
200
+ };
201
+ function PersistentHashMapBuilder() {
202
+ }
203
+ function PersistentHashMapKeysIterator(node) {
204
+ var tmp = 0;
205
+ // Inline function 'kotlin.arrayOfNulls' call
206
+ var tmp_0 = Array(8);
207
+ while (tmp < 8) {
208
+ tmp_0[tmp] = new TrieNodeKeysIterator();
209
+ tmp = tmp + 1 | 0;
210
+ }
211
+ PersistentHashMapBaseIterator.call(this, node, tmp_0);
212
+ }
213
+ function PersistentHashMapValuesIterator(node) {
214
+ var tmp = 0;
215
+ // Inline function 'kotlin.arrayOfNulls' call
216
+ var tmp_0 = Array(8);
217
+ while (tmp < 8) {
218
+ tmp_0[tmp] = new TrieNodeValuesIterator();
219
+ tmp = tmp + 1 | 0;
220
+ }
221
+ PersistentHashMapBaseIterator.call(this, node, tmp_0);
222
+ }
223
+ function PersistentHashMapEntriesIterator(node) {
224
+ var tmp = 0;
225
+ // Inline function 'kotlin.arrayOfNulls' call
226
+ var tmp_0 = Array(8);
227
+ while (tmp < 8) {
228
+ tmp_0[tmp] = new TrieNodeEntriesIterator();
229
+ tmp = tmp + 1 | 0;
230
+ }
231
+ PersistentHashMapBaseIterator.call(this, node, tmp_0);
232
+ }
233
+ function MapEntry(key, value) {
234
+ this.pg0_1 = key;
235
+ this.qg0_1 = value;
236
+ }
237
+ protoOf(MapEntry).a1 = function () {
238
+ return this.pg0_1;
239
+ };
240
+ protoOf(MapEntry).b1 = function () {
241
+ return this.qg0_1;
242
+ };
243
+ protoOf(MapEntry).hashCode = function () {
244
+ // Inline function 'kotlin.hashCode' call
245
+ var tmp0_safe_receiver = this.a1();
246
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
247
+ var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
248
+ // Inline function 'kotlin.hashCode' call
249
+ var tmp0_safe_receiver_0 = this.b1();
250
+ var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
251
+ return tmp ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
252
+ };
253
+ protoOf(MapEntry).equals = function (other) {
254
+ var tmp0_safe_receiver = (!(other == null) ? isInterface(other, Entry) : false) ? other : null;
255
+ var tmp;
256
+ if (tmp0_safe_receiver == null) {
257
+ tmp = null;
258
+ } else {
259
+ // Inline function 'kotlin.let' call
260
+ tmp = (equals(tmp0_safe_receiver.a1(), this.a1()) && equals(tmp0_safe_receiver.b1(), this.b1()));
261
+ }
262
+ var tmp1_elvis_lhs = tmp;
263
+ return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
264
+ };
265
+ protoOf(MapEntry).toString = function () {
266
+ return toString(this.a1()) + '=' + toString(this.b1());
267
+ };
268
+ function moveToNextNodeWithData($this, pathIndex) {
269
+ if ($this.mg0_1[pathIndex].ug0()) {
270
+ return pathIndex;
271
+ }
272
+ if ($this.mg0_1[pathIndex].yg0()) {
273
+ var node = $this.mg0_1[pathIndex].vg0();
274
+ if (pathIndex === 6) {
275
+ $this.mg0_1[pathIndex + 1 | 0].xg0(node.pfz_1, node.pfz_1.length);
276
+ } else {
277
+ $this.mg0_1[pathIndex + 1 | 0].xg0(node.pfz_1, imul(2, node.wg0()));
278
+ }
279
+ return moveToNextNodeWithData($this, pathIndex + 1 | 0);
280
+ }
281
+ return -1;
282
+ }
283
+ function ensureNextEntryIsReady($this) {
284
+ if ($this.mg0_1[$this.ng0_1].ug0()) {
285
+ return Unit_instance;
286
+ }
287
+ var inductionVariable = $this.ng0_1;
288
+ if (0 <= inductionVariable)
289
+ do {
290
+ var i = inductionVariable;
291
+ inductionVariable = inductionVariable + -1 | 0;
292
+ var result = moveToNextNodeWithData($this, i);
293
+ if (result === -1 && $this.mg0_1[i].yg0()) {
294
+ $this.mg0_1[i].zg0();
295
+ result = moveToNextNodeWithData($this, i);
296
+ }
297
+ if (!(result === -1)) {
298
+ $this.ng0_1 = result;
299
+ return Unit_instance;
300
+ }
301
+ if (i > 0) {
302
+ $this.mg0_1[i - 1 | 0].zg0();
303
+ }
304
+ $this.mg0_1[i].xg0(Companion_getInstance_0().efz_1.pfz_1, 0);
305
+ }
306
+ while (0 <= inductionVariable);
307
+ $this.og0_1 = false;
308
+ }
309
+ function checkHasNext($this) {
310
+ if (!$this.q())
311
+ throw NoSuchElementException_init_$Create$();
312
+ }
313
+ function PersistentHashMapBaseIterator(node, path) {
314
+ this.mg0_1 = path;
315
+ this.ng0_1 = 0;
316
+ this.og0_1 = true;
317
+ this.mg0_1[0].xg0(node.pfz_1, imul(2, node.wg0()));
318
+ this.ng0_1 = 0;
319
+ ensureNextEntryIsReady(this);
320
+ }
321
+ protoOf(PersistentHashMapBaseIterator).q = function () {
322
+ return this.og0_1;
323
+ };
324
+ protoOf(PersistentHashMapBaseIterator).r = function () {
325
+ checkHasNext(this);
326
+ var result = this.mg0_1[this.ng0_1].r();
327
+ ensureNextEntryIsReady(this);
328
+ return result;
329
+ };
330
+ function TrieNodeBaseIterator() {
331
+ this.rg0_1 = Companion_getInstance_0().efz_1.pfz_1;
332
+ this.sg0_1 = 0;
333
+ this.tg0_1 = 0;
334
+ }
335
+ protoOf(TrieNodeBaseIterator).ag1 = function (buffer, dataSize, index) {
336
+ this.rg0_1 = buffer;
337
+ this.sg0_1 = dataSize;
338
+ this.tg0_1 = index;
339
+ };
340
+ protoOf(TrieNodeBaseIterator).xg0 = function (buffer, dataSize) {
341
+ this.ag1(buffer, dataSize, 0);
342
+ };
343
+ protoOf(TrieNodeBaseIterator).ug0 = function () {
344
+ return this.tg0_1 < this.sg0_1;
345
+ };
346
+ protoOf(TrieNodeBaseIterator).yg0 = function () {
347
+ assert(this.tg0_1 >= this.sg0_1);
348
+ return this.tg0_1 < this.rg0_1.length;
349
+ };
350
+ protoOf(TrieNodeBaseIterator).vg0 = function () {
351
+ assert(this.yg0());
352
+ var tmp = this.rg0_1[this.tg0_1];
353
+ return tmp instanceof TrieNode ? tmp : THROW_CCE();
354
+ };
355
+ protoOf(TrieNodeBaseIterator).zg0 = function () {
356
+ assert(this.yg0());
357
+ this.tg0_1 = this.tg0_1 + 1 | 0;
358
+ };
359
+ protoOf(TrieNodeBaseIterator).q = function () {
360
+ return this.ug0();
361
+ };
362
+ function TrieNodeKeysIterator() {
363
+ TrieNodeBaseIterator.call(this);
364
+ }
365
+ protoOf(TrieNodeKeysIterator).r = function () {
366
+ assert(this.ug0());
367
+ this.tg0_1 = this.tg0_1 + 2 | 0;
368
+ var tmp = this.rg0_1[this.tg0_1 - 2 | 0];
369
+ return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
370
+ };
371
+ function TrieNodeValuesIterator() {
372
+ TrieNodeBaseIterator.call(this);
373
+ }
374
+ protoOf(TrieNodeValuesIterator).r = function () {
375
+ assert(this.ug0());
376
+ this.tg0_1 = this.tg0_1 + 2 | 0;
377
+ var tmp = this.rg0_1[this.tg0_1 - 1 | 0];
378
+ return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
379
+ };
380
+ function TrieNodeEntriesIterator() {
381
+ TrieNodeBaseIterator.call(this);
382
+ }
383
+ protoOf(TrieNodeEntriesIterator).r = function () {
384
+ assert(this.ug0());
385
+ this.tg0_1 = this.tg0_1 + 2 | 0;
386
+ var tmp = this.rg0_1[this.tg0_1 - 2 | 0];
387
+ var tmp_0 = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
388
+ var tmp_1 = this.rg0_1[this.tg0_1 - 1 | 0];
389
+ return new MapEntry(tmp_0, (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE());
390
+ };
391
+ function PersistentHashMapKeys(map) {
392
+ AbstractSet.call(this);
393
+ this.kg1_1 = map;
394
+ }
395
+ protoOf(PersistentHashMapKeys).s = function () {
396
+ return this.kg1_1.lfz_1;
397
+ };
398
+ protoOf(PersistentHashMapKeys).q6 = function (element) {
399
+ return this.kg1_1.h2(element);
400
+ };
401
+ protoOf(PersistentHashMapKeys).w = function (element) {
402
+ if (!(element == null ? true : !(element == null)))
403
+ return false;
404
+ return this.q6((element == null ? true : !(element == null)) ? element : THROW_CCE());
405
+ };
406
+ protoOf(PersistentHashMapKeys).p = function () {
407
+ return new PersistentHashMapKeysIterator(this.kg1_1.kfz_1);
408
+ };
409
+ function PersistentHashMapValues(map) {
410
+ AbstractCollection.call(this);
411
+ this.lg1_1 = map;
412
+ }
413
+ protoOf(PersistentHashMapValues).s = function () {
414
+ return this.lg1_1.lfz_1;
415
+ };
416
+ protoOf(PersistentHashMapValues).v6 = function (element) {
417
+ return this.lg1_1.i2(element);
418
+ };
419
+ protoOf(PersistentHashMapValues).w = function (element) {
420
+ if (!(element == null ? true : !(element == null)))
421
+ return false;
422
+ return this.v6((element == null ? true : !(element == null)) ? element : THROW_CCE());
423
+ };
424
+ protoOf(PersistentHashMapValues).p = function () {
425
+ return new PersistentHashMapValuesIterator(this.lg1_1.kfz_1);
426
+ };
427
+ function PersistentHashMapEntries(map) {
428
+ AbstractSet.call(this);
429
+ this.mg1_1 = map;
430
+ }
431
+ protoOf(PersistentHashMapEntries).s = function () {
432
+ return this.mg1_1.lfz_1;
433
+ };
434
+ protoOf(PersistentHashMapEntries).ng1 = function (element) {
435
+ return MapImplementation_instance.og1(this.mg1_1, element);
436
+ };
437
+ protoOf(PersistentHashMapEntries).w = function (element) {
438
+ if (!(!(element == null) ? isInterface(element, Entry) : false))
439
+ return false;
440
+ return this.ng1((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
441
+ };
442
+ protoOf(PersistentHashMapEntries).p = function () {
443
+ return new PersistentHashMapEntriesIterator(this.mg1_1.kfz_1);
444
+ };
445
+ function TrieNode_init_$Init$(dataMap, nodeMap, buffer, $this) {
446
+ TrieNode.call($this, dataMap, nodeMap, buffer, null);
447
+ return $this;
448
+ }
449
+ function TrieNode_init_$Create$(dataMap, nodeMap, buffer) {
450
+ return TrieNode_init_$Init$(dataMap, nodeMap, buffer, objectCreate(protoOf(TrieNode)));
451
+ }
452
+ function ModificationResult(node, sizeDelta) {
453
+ this.tfz_1 = node;
454
+ this.ufz_1 = sizeDelta;
455
+ }
456
+ function asInsertResult($this) {
457
+ return new ModificationResult($this, 1);
458
+ }
459
+ function asUpdateResult($this) {
460
+ return new ModificationResult($this, 0);
461
+ }
462
+ function hasNodeAt($this, positionMask) {
463
+ return !(($this.nfz_1 & positionMask) === 0);
464
+ }
465
+ function keyAtIndex($this, keyIndex) {
466
+ var tmp = $this.pfz_1[keyIndex];
467
+ return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
468
+ }
469
+ function valueAtKeyIndex($this, keyIndex) {
470
+ var tmp = $this.pfz_1[keyIndex + 1 | 0];
471
+ return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
472
+ }
473
+ function insertEntryAt($this, positionMask, key, value) {
474
+ var keyIndex = $this.pg1(positionMask);
475
+ var newBuffer = insertEntryAtIndex($this.pfz_1, keyIndex, key, value);
476
+ return TrieNode_init_$Create$($this.mfz_1 | positionMask, $this.nfz_1, newBuffer);
477
+ }
478
+ function updateValueAtIndex($this, keyIndex, value) {
479
+ // Inline function 'kotlin.collections.copyOf' call
480
+ // Inline function 'kotlin.js.asDynamic' call
481
+ var newBuffer = $this.pfz_1.slice();
482
+ newBuffer[keyIndex + 1 | 0] = value;
483
+ return TrieNode_init_$Create$($this.mfz_1, $this.nfz_1, newBuffer);
484
+ }
485
+ function updateNodeAtIndex($this, nodeIndex, positionMask, newNode, owner) {
486
+ var newNodeBuffer = newNode.pfz_1;
487
+ if (newNodeBuffer.length === 2 && newNode.nfz_1 === 0) {
488
+ if ($this.pfz_1.length === 1) {
489
+ newNode.mfz_1 = $this.nfz_1;
490
+ return newNode;
491
+ }
492
+ var keyIndex = $this.pg1(positionMask);
493
+ var newBuffer = replaceNodeWithEntry($this.pfz_1, nodeIndex, keyIndex, newNodeBuffer[0], newNodeBuffer[1]);
494
+ return new TrieNode($this.mfz_1 ^ positionMask, $this.nfz_1 ^ positionMask, newBuffer, owner);
495
+ }
496
+ if (!(owner == null) && $this.ofz_1 === owner) {
497
+ $this.pfz_1[nodeIndex] = newNode;
498
+ return $this;
499
+ }
500
+ // Inline function 'kotlin.collections.copyOf' call
501
+ // Inline function 'kotlin.js.asDynamic' call
502
+ var newBuffer_0 = $this.pfz_1.slice();
503
+ newBuffer_0[nodeIndex] = newNode;
504
+ return new TrieNode($this.mfz_1, $this.nfz_1, newBuffer_0, owner);
505
+ }
506
+ function updateNodeAtIndex$default($this, nodeIndex, positionMask, newNode, owner, $super) {
507
+ owner = owner === VOID ? null : owner;
508
+ return updateNodeAtIndex($this, nodeIndex, positionMask, newNode, owner);
509
+ }
510
+ function removeNodeAtIndex($this, nodeIndex, positionMask) {
511
+ if ($this.pfz_1.length === 1)
512
+ return null;
513
+ var newBuffer = removeNodeAtIndex_0($this.pfz_1, nodeIndex);
514
+ return TrieNode_init_$Create$($this.mfz_1, $this.nfz_1 ^ positionMask, newBuffer);
515
+ }
516
+ function bufferMoveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift, owner) {
517
+ var storedKey = keyAtIndex($this, keyIndex);
518
+ // Inline function 'kotlin.hashCode' call
519
+ var tmp1_elvis_lhs = storedKey == null ? null : hashCode(storedKey);
520
+ var storedKeyHash = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
521
+ var storedValue = valueAtKeyIndex($this, keyIndex);
522
+ var newNode = makeNode($this, storedKeyHash, storedKey, storedValue, newKeyHash, newKey, newValue, shift + 5 | 0, owner);
523
+ var nodeIndex = $this.qg1(positionMask) + 1 | 0;
524
+ return replaceEntryWithNode($this.pfz_1, keyIndex, nodeIndex, newNode);
525
+ }
526
+ function moveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift) {
527
+ var newBuffer = bufferMoveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift, null);
528
+ return TrieNode_init_$Create$($this.mfz_1 ^ positionMask, $this.nfz_1 | positionMask, newBuffer);
529
+ }
530
+ function makeNode($this, keyHash1, key1, value1, keyHash2, key2, value2, shift, owner) {
531
+ if (shift > 30) {
532
+ // Inline function 'kotlin.arrayOf' call
533
+ // Inline function 'kotlin.js.unsafeCast' call
534
+ // Inline function 'kotlin.js.asDynamic' call
535
+ var tmp$ret$2 = [key1, value1, key2, value2];
536
+ return new TrieNode(0, 0, tmp$ret$2, owner);
537
+ }
538
+ var setBit1 = indexSegment(keyHash1, shift);
539
+ var setBit2 = indexSegment(keyHash2, shift);
540
+ if (!(setBit1 === setBit2)) {
541
+ var tmp;
542
+ if (setBit1 < setBit2) {
543
+ // Inline function 'kotlin.arrayOf' call
544
+ // Inline function 'kotlin.js.unsafeCast' call
545
+ // Inline function 'kotlin.js.asDynamic' call
546
+ tmp = [key1, value1, key2, value2];
547
+ } else {
548
+ // Inline function 'kotlin.arrayOf' call
549
+ // Inline function 'kotlin.js.unsafeCast' call
550
+ // Inline function 'kotlin.js.asDynamic' call
551
+ tmp = [key2, value2, key1, value1];
552
+ }
553
+ var nodeBuffer = tmp;
554
+ return new TrieNode(1 << setBit1 | 1 << setBit2, 0, nodeBuffer, owner);
555
+ }
556
+ var node = makeNode($this, keyHash1, key1, value1, keyHash2, key2, value2, shift + 5 | 0, owner);
557
+ var tmp_0 = 1 << setBit1;
558
+ // Inline function 'kotlin.arrayOf' call
559
+ // Inline function 'kotlin.js.unsafeCast' call
560
+ // Inline function 'kotlin.js.asDynamic' call
561
+ var tmp$ret$11 = [node];
562
+ return new TrieNode(0, tmp_0, tmp$ret$11, owner);
563
+ }
564
+ function removeEntryAtIndex($this, keyIndex, positionMask) {
565
+ if ($this.pfz_1.length === 2)
566
+ return null;
567
+ var newBuffer = removeEntryAtIndex_0($this.pfz_1, keyIndex);
568
+ return TrieNode_init_$Create$($this.mfz_1 ^ positionMask, $this.nfz_1, newBuffer);
569
+ }
570
+ function collisionRemoveEntryAtIndex($this, i) {
571
+ if ($this.pfz_1.length === 2)
572
+ return null;
573
+ var newBuffer = removeEntryAtIndex_0($this.pfz_1, i);
574
+ return TrieNode_init_$Create$(0, 0, newBuffer);
575
+ }
576
+ function collisionKeyIndex($this, key) {
577
+ var progression = step(until(0, $this.pfz_1.length), 2);
578
+ var inductionVariable = progression.d1_1;
579
+ var last = progression.e1_1;
580
+ var step_0 = progression.f1_1;
581
+ if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
582
+ do {
583
+ var i = inductionVariable;
584
+ inductionVariable = inductionVariable + step_0 | 0;
585
+ if (equals(key, keyAtIndex($this, i)))
586
+ return i;
587
+ }
588
+ while (!(i === last));
589
+ return -1;
590
+ }
591
+ function collisionContainsKey($this, key) {
592
+ return !(collisionKeyIndex($this, key) === -1);
593
+ }
594
+ function collisionGet($this, key) {
595
+ var keyIndex = collisionKeyIndex($this, key);
596
+ return !(keyIndex === -1) ? valueAtKeyIndex($this, keyIndex) : null;
597
+ }
598
+ function collisionPut($this, key, value) {
599
+ var keyIndex = collisionKeyIndex($this, key);
600
+ if (!(keyIndex === -1)) {
601
+ if (value === valueAtKeyIndex($this, keyIndex)) {
602
+ return null;
603
+ }
604
+ // Inline function 'kotlin.collections.copyOf' call
605
+ // Inline function 'kotlin.js.asDynamic' call
606
+ var newBuffer = $this.pfz_1.slice();
607
+ newBuffer[keyIndex + 1 | 0] = value;
608
+ return asUpdateResult(TrieNode_init_$Create$(0, 0, newBuffer));
609
+ }
610
+ var newBuffer_0 = insertEntryAtIndex($this.pfz_1, 0, key, value);
611
+ return asInsertResult(TrieNode_init_$Create$(0, 0, newBuffer_0));
612
+ }
613
+ function collisionRemove($this, key) {
614
+ var keyIndex = collisionKeyIndex($this, key);
615
+ if (!(keyIndex === -1)) {
616
+ return collisionRemoveEntryAtIndex($this, keyIndex);
617
+ }
618
+ return $this;
619
+ }
620
+ function replaceNode($this, targetNode, newNode, nodeIndex, positionMask) {
621
+ return newNode == null ? removeNodeAtIndex($this, nodeIndex, positionMask) : !(targetNode === newNode) ? updateNodeAtIndex$default($this, nodeIndex, positionMask, newNode) : $this;
622
+ }
623
+ function Companion_0() {
624
+ Companion_instance_0 = this;
625
+ var tmp = this;
626
+ // Inline function 'kotlin.emptyArray' call
627
+ var tmp$ret$0 = [];
628
+ tmp.efz_1 = TrieNode_init_$Create$(0, 0, tmp$ret$0);
629
+ }
630
+ var Companion_instance_0;
631
+ function Companion_getInstance_0() {
632
+ if (Companion_instance_0 == null)
633
+ new Companion_0();
634
+ return Companion_instance_0;
635
+ }
636
+ function TrieNode(dataMap, nodeMap, buffer, ownedBy) {
637
+ Companion_getInstance_0();
638
+ this.mfz_1 = dataMap;
639
+ this.nfz_1 = nodeMap;
640
+ this.ofz_1 = ownedBy;
641
+ this.pfz_1 = buffer;
642
+ }
643
+ protoOf(TrieNode).wg0 = function () {
644
+ return countOneBits(this.mfz_1);
645
+ };
646
+ protoOf(TrieNode).rg1 = function (positionMask) {
647
+ return !((this.mfz_1 & positionMask) === 0);
648
+ };
649
+ protoOf(TrieNode).pg1 = function (positionMask) {
650
+ return imul(2, countOneBits(this.mfz_1 & (positionMask - 1 | 0)));
651
+ };
652
+ protoOf(TrieNode).qg1 = function (positionMask) {
653
+ return (this.pfz_1.length - 1 | 0) - countOneBits(this.nfz_1 & (positionMask - 1 | 0)) | 0;
654
+ };
655
+ protoOf(TrieNode).sg1 = function (nodeIndex) {
656
+ var tmp = this.pfz_1[nodeIndex];
657
+ return tmp instanceof TrieNode ? tmp : THROW_CCE();
658
+ };
659
+ protoOf(TrieNode).qfz = function (keyHash, key, shift) {
660
+ var keyPositionMask = 1 << indexSegment(keyHash, shift);
661
+ if (this.rg1(keyPositionMask)) {
662
+ return equals(key, keyAtIndex(this, this.pg1(keyPositionMask)));
663
+ }
664
+ if (hasNodeAt(this, keyPositionMask)) {
665
+ var targetNode = this.sg1(this.qg1(keyPositionMask));
666
+ if (shift === 30) {
667
+ return collisionContainsKey(targetNode, key);
668
+ }
669
+ return targetNode.qfz(keyHash, key, shift + 5 | 0);
670
+ }
671
+ return false;
672
+ };
673
+ protoOf(TrieNode).rfz = function (keyHash, key, shift) {
674
+ var keyPositionMask = 1 << indexSegment(keyHash, shift);
675
+ if (this.rg1(keyPositionMask)) {
676
+ var keyIndex = this.pg1(keyPositionMask);
677
+ if (equals(key, keyAtIndex(this, keyIndex))) {
678
+ return valueAtKeyIndex(this, keyIndex);
679
+ }
680
+ return null;
681
+ }
682
+ if (hasNodeAt(this, keyPositionMask)) {
683
+ var targetNode = this.sg1(this.qg1(keyPositionMask));
684
+ if (shift === 30) {
685
+ return collisionGet(targetNode, key);
686
+ }
687
+ return targetNode.rfz(keyHash, key, shift + 5 | 0);
688
+ }
689
+ return null;
690
+ };
691
+ protoOf(TrieNode).sfz = function (keyHash, key, value, shift) {
692
+ var keyPositionMask = 1 << indexSegment(keyHash, shift);
693
+ if (this.rg1(keyPositionMask)) {
694
+ var keyIndex = this.pg1(keyPositionMask);
695
+ if (equals(key, keyAtIndex(this, keyIndex))) {
696
+ if (valueAtKeyIndex(this, keyIndex) === value)
697
+ return null;
698
+ return asUpdateResult(updateValueAtIndex(this, keyIndex, value));
699
+ }
700
+ return asInsertResult(moveEntryToNode(this, keyIndex, keyPositionMask, keyHash, key, value, shift));
701
+ }
702
+ if (hasNodeAt(this, keyPositionMask)) {
703
+ var nodeIndex = this.qg1(keyPositionMask);
704
+ var targetNode = this.sg1(nodeIndex);
705
+ var tmp;
706
+ if (shift === 30) {
707
+ var tmp0_elvis_lhs = collisionPut(targetNode, key, value);
708
+ var tmp_0;
709
+ if (tmp0_elvis_lhs == null) {
710
+ return null;
711
+ } else {
712
+ tmp_0 = tmp0_elvis_lhs;
713
+ }
714
+ tmp = tmp_0;
715
+ } else {
716
+ var tmp1_elvis_lhs = targetNode.sfz(keyHash, key, value, shift + 5 | 0);
717
+ var tmp_1;
718
+ if (tmp1_elvis_lhs == null) {
719
+ return null;
720
+ } else {
721
+ tmp_1 = tmp1_elvis_lhs;
722
+ }
723
+ tmp = tmp_1;
724
+ }
725
+ var putResult = tmp;
726
+ // Inline function 'kotlinx.collections.immutable.implementations.immutableMap.ModificationResult.replaceNode' call
727
+ // Inline function 'kotlin.apply' call
728
+ var tmp_2 = putResult;
729
+ var node = putResult.tfz_1;
730
+ tmp_2.tfz_1 = updateNodeAtIndex$default(this, nodeIndex, keyPositionMask, node);
731
+ return putResult;
732
+ }
733
+ return asInsertResult(insertEntryAt(this, keyPositionMask, key, value));
734
+ };
735
+ protoOf(TrieNode).vfz = function (keyHash, key, shift) {
736
+ var keyPositionMask = 1 << indexSegment(keyHash, shift);
737
+ if (this.rg1(keyPositionMask)) {
738
+ var keyIndex = this.pg1(keyPositionMask);
739
+ if (equals(key, keyAtIndex(this, keyIndex))) {
740
+ return removeEntryAtIndex(this, keyIndex, keyPositionMask);
741
+ }
742
+ return this;
743
+ }
744
+ if (hasNodeAt(this, keyPositionMask)) {
745
+ var nodeIndex = this.qg1(keyPositionMask);
746
+ var targetNode = this.sg1(nodeIndex);
747
+ var tmp;
748
+ if (shift === 30) {
749
+ tmp = collisionRemove(targetNode, key);
750
+ } else {
751
+ tmp = targetNode.vfz(keyHash, key, shift + 5 | 0);
752
+ }
753
+ var newNode = tmp;
754
+ return replaceNode(this, targetNode, newNode, nodeIndex, keyPositionMask);
755
+ }
756
+ return this;
757
+ };
758
+ protoOf(TrieNode).bg0 = function (that, equalityComparator) {
759
+ if (this === that)
760
+ return true;
761
+ if (!(this.mfz_1 === that.mfz_1) || !(this.nfz_1 === that.nfz_1))
762
+ return false;
763
+ if (this.mfz_1 === 0 && this.nfz_1 === 0) {
764
+ if (!(this.pfz_1.length === that.pfz_1.length))
765
+ return false;
766
+ var tmp0 = step(until(0, this.pfz_1.length), 2);
767
+ var tmp$ret$0;
768
+ $l$block_0: {
769
+ // Inline function 'kotlin.collections.all' call
770
+ var tmp;
771
+ if (isInterface(tmp0, Collection)) {
772
+ tmp = tmp0.m();
773
+ } else {
774
+ tmp = false;
775
+ }
776
+ if (tmp) {
777
+ tmp$ret$0 = true;
778
+ break $l$block_0;
779
+ }
780
+ var inductionVariable = tmp0.d1_1;
781
+ var last = tmp0.e1_1;
782
+ var step_0 = tmp0.f1_1;
783
+ if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
784
+ do {
785
+ var element = inductionVariable;
786
+ inductionVariable = inductionVariable + step_0 | 0;
787
+ var i = element;
788
+ var thatKey = keyAtIndex(that, i);
789
+ var thatValue = valueAtKeyIndex(that, i);
790
+ var keyIndex = collisionKeyIndex(this, thatKey);
791
+ var tmp_0;
792
+ if (!(keyIndex === -1)) {
793
+ var value = valueAtKeyIndex(this, keyIndex);
794
+ tmp_0 = equalityComparator(value, thatValue);
795
+ } else {
796
+ tmp_0 = false;
797
+ }
798
+ if (!tmp_0) {
799
+ tmp$ret$0 = false;
800
+ break $l$block_0;
801
+ }
802
+ }
803
+ while (!(element === last));
804
+ tmp$ret$0 = true;
805
+ }
806
+ return tmp$ret$0;
807
+ }
808
+ var valueSize = imul(countOneBits(this.mfz_1), 2);
809
+ var progression = step(until(0, valueSize), 2);
810
+ var inductionVariable_0 = progression.d1_1;
811
+ var last_0 = progression.e1_1;
812
+ var step_1 = progression.f1_1;
813
+ if (step_1 > 0 && inductionVariable_0 <= last_0 || (step_1 < 0 && last_0 <= inductionVariable_0))
814
+ do {
815
+ var i_0 = inductionVariable_0;
816
+ inductionVariable_0 = inductionVariable_0 + step_1 | 0;
817
+ if (!equals(keyAtIndex(this, i_0), keyAtIndex(that, i_0)))
818
+ return false;
819
+ if (!equalityComparator(valueAtKeyIndex(this, i_0), valueAtKeyIndex(that, i_0)))
820
+ return false;
821
+ }
822
+ while (!(i_0 === last_0));
823
+ var inductionVariable_1 = valueSize;
824
+ var last_1 = this.pfz_1.length;
825
+ if (inductionVariable_1 < last_1)
826
+ do {
827
+ var i_1 = inductionVariable_1;
828
+ inductionVariable_1 = inductionVariable_1 + 1 | 0;
829
+ if (!this.sg1(i_1).bg0(that.sg1(i_1), equalityComparator))
830
+ return false;
831
+ }
832
+ while (inductionVariable_1 < last_1);
833
+ return true;
834
+ };
835
+ function insertEntryAtIndex(_this__u8e3s4, keyIndex, key, value) {
836
+ // Inline function 'kotlin.arrayOfNulls' call
837
+ var size = _this__u8e3s4.length + 2 | 0;
838
+ var newBuffer = Array(size);
839
+ // Inline function 'kotlin.collections.copyInto' call
840
+ arrayCopy(_this__u8e3s4, newBuffer, 0, 0, keyIndex);
841
+ var tmp4 = keyIndex + 2 | 0;
842
+ // Inline function 'kotlin.collections.copyInto' call
843
+ var endIndex = _this__u8e3s4.length;
844
+ arrayCopy(_this__u8e3s4, newBuffer, tmp4, keyIndex, endIndex);
845
+ newBuffer[keyIndex] = key;
846
+ newBuffer[keyIndex + 1 | 0] = value;
847
+ return newBuffer;
848
+ }
849
+ function replaceNodeWithEntry(_this__u8e3s4, nodeIndex, keyIndex, key, value) {
850
+ var newBuffer = copyOf(_this__u8e3s4, _this__u8e3s4.length + 1 | 0);
851
+ var tmp4 = nodeIndex + 2 | 0;
852
+ var tmp6 = nodeIndex + 1 | 0;
853
+ // Inline function 'kotlin.collections.copyInto' call
854
+ var endIndex = _this__u8e3s4.length;
855
+ arrayCopy(newBuffer, newBuffer, tmp4, tmp6, endIndex);
856
+ // Inline function 'kotlin.collections.copyInto' call
857
+ var destinationOffset = keyIndex + 2 | 0;
858
+ arrayCopy(newBuffer, newBuffer, destinationOffset, keyIndex, nodeIndex);
859
+ newBuffer[keyIndex] = key;
860
+ newBuffer[keyIndex + 1 | 0] = value;
861
+ return newBuffer;
862
+ }
863
+ function removeNodeAtIndex_0(_this__u8e3s4, nodeIndex) {
864
+ // Inline function 'kotlin.arrayOfNulls' call
865
+ var size = _this__u8e3s4.length - 1 | 0;
866
+ var newBuffer = Array(size);
867
+ // Inline function 'kotlin.collections.copyInto' call
868
+ arrayCopy(_this__u8e3s4, newBuffer, 0, 0, nodeIndex);
869
+ var tmp6 = nodeIndex + 1 | 0;
870
+ // Inline function 'kotlin.collections.copyInto' call
871
+ var endIndex = _this__u8e3s4.length;
872
+ arrayCopy(_this__u8e3s4, newBuffer, nodeIndex, tmp6, endIndex);
873
+ return newBuffer;
874
+ }
875
+ function replaceEntryWithNode(_this__u8e3s4, keyIndex, nodeIndex, newNode) {
876
+ var newNodeIndex = nodeIndex - 2 | 0;
877
+ // Inline function 'kotlin.arrayOfNulls' call
878
+ var size = (_this__u8e3s4.length - 2 | 0) + 1 | 0;
879
+ var newBuffer = Array(size);
880
+ // Inline function 'kotlin.collections.copyInto' call
881
+ arrayCopy(_this__u8e3s4, newBuffer, 0, 0, keyIndex);
882
+ // Inline function 'kotlin.collections.copyInto' call
883
+ var startIndex = keyIndex + 2 | 0;
884
+ arrayCopy(_this__u8e3s4, newBuffer, keyIndex, startIndex, nodeIndex);
885
+ newBuffer[newNodeIndex] = newNode;
886
+ var tmp4 = newNodeIndex + 1 | 0;
887
+ // Inline function 'kotlin.collections.copyInto' call
888
+ var endIndex = _this__u8e3s4.length;
889
+ arrayCopy(_this__u8e3s4, newBuffer, tmp4, nodeIndex, endIndex);
890
+ return newBuffer;
891
+ }
892
+ function indexSegment(index, shift) {
893
+ return index >> shift & 31;
894
+ }
895
+ function removeEntryAtIndex_0(_this__u8e3s4, keyIndex) {
896
+ // Inline function 'kotlin.arrayOfNulls' call
897
+ var size = _this__u8e3s4.length - 2 | 0;
898
+ var newBuffer = Array(size);
899
+ // Inline function 'kotlin.collections.copyInto' call
900
+ arrayCopy(_this__u8e3s4, newBuffer, 0, 0, keyIndex);
901
+ var tmp6 = keyIndex + 2 | 0;
902
+ // Inline function 'kotlin.collections.copyInto' call
903
+ var endIndex = _this__u8e3s4.length;
904
+ arrayCopy(_this__u8e3s4, newBuffer, keyIndex, tmp6, endIndex);
905
+ return newBuffer;
906
+ }
907
+ function createEntries_0($this) {
908
+ return new PersistentOrderedMapEntries($this);
909
+ }
910
+ function Companion_1() {
911
+ Companion_instance_1 = this;
912
+ this.bfz_1 = new PersistentOrderedMap(EndOfChain_instance, EndOfChain_instance, Companion_getInstance().cfz());
913
+ }
914
+ protoOf(Companion_1).cfz = function () {
915
+ var tmp = this.bfz_1;
916
+ return tmp instanceof PersistentOrderedMap ? tmp : THROW_CCE();
917
+ };
918
+ var Companion_instance_1;
919
+ function Companion_getInstance_1() {
920
+ if (Companion_instance_1 == null)
921
+ new Companion_1();
922
+ return Companion_instance_1;
923
+ }
924
+ function PersistentOrderedMap$equals$lambda(a, b) {
925
+ return equals(a.ffz_1, b.ffz_1);
926
+ }
927
+ function PersistentOrderedMap$equals$lambda_0(a, b) {
928
+ return equals(a.ffz_1, b.ffz_1);
929
+ }
930
+ function PersistentOrderedMap$equals$lambda_1(a, b) {
931
+ return equals(a.ffz_1, b);
932
+ }
933
+ function PersistentOrderedMap$equals$lambda_2(a, b) {
934
+ return equals(a.ffz_1, b);
935
+ }
936
+ function PersistentOrderedMap(firstKey, lastKey, hashMap) {
937
+ Companion_getInstance_1();
938
+ AbstractMap.call(this);
939
+ this.jg0_1 = firstKey;
940
+ this.kg0_1 = lastKey;
941
+ this.lg0_1 = hashMap;
942
+ }
943
+ protoOf(PersistentOrderedMap).s = function () {
944
+ return this.lg0_1.lfz_1;
945
+ };
946
+ protoOf(PersistentOrderedMap).k2 = function () {
947
+ return new PersistentOrderedMapKeys(this);
948
+ };
949
+ protoOf(PersistentOrderedMap).l2 = function () {
950
+ return new PersistentOrderedMapValues(this);
951
+ };
952
+ protoOf(PersistentOrderedMap).z = function () {
953
+ return createEntries_0(this);
954
+ };
955
+ protoOf(PersistentOrderedMap).h2 = function (key) {
956
+ return this.lg0_1.h2(key);
957
+ };
958
+ protoOf(PersistentOrderedMap).j2 = function (key) {
959
+ var tmp0_safe_receiver = this.lg0_1.j2(key);
960
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ffz_1;
961
+ };
962
+ protoOf(PersistentOrderedMap).r2 = function (key, value) {
963
+ if (this.m()) {
964
+ var newMap = this.lg0_1.r2(key, LinkedValue_init_$Create$(value));
965
+ return new PersistentOrderedMap(key, key, newMap);
966
+ }
967
+ var links = this.lg0_1.j2(key);
968
+ if (!(links == null)) {
969
+ if (links.ffz_1 === value) {
970
+ return this;
971
+ }
972
+ var newMap_0 = this.lg0_1.r2(key, links.tg1(value));
973
+ return new PersistentOrderedMap(this.jg0_1, this.kg0_1, newMap_0);
974
+ }
975
+ var tmp = this.kg0_1;
976
+ var lastKey = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
977
+ var lastLinks = ensureNotNull(this.lg0_1.j2(lastKey));
978
+ var newMap_1 = this.lg0_1.r2(lastKey, lastLinks.ug1(key)).r2(key, LinkedValue_init_$Create$_0(value, lastKey));
979
+ return new PersistentOrderedMap(this.jg0_1, key, newMap_1);
980
+ };
981
+ protoOf(PersistentOrderedMap).s2 = function (key) {
982
+ var tmp0_elvis_lhs = this.lg0_1.j2(key);
983
+ var tmp;
984
+ if (tmp0_elvis_lhs == null) {
985
+ return this;
986
+ } else {
987
+ tmp = tmp0_elvis_lhs;
988
+ }
989
+ var links = tmp;
990
+ var newMap = this.lg0_1.s2(key);
991
+ if (links.vg1()) {
992
+ var tmp0 = newMap;
993
+ // Inline function 'kotlin.collections.get' call
994
+ var key_0 = links.gfz_1;
995
+ var tmp$ret$0 = (isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).j2(key_0);
996
+ var previousLinks = ensureNotNull(tmp$ret$0);
997
+ var tmp_0 = newMap;
998
+ var tmp_1 = links.gfz_1;
999
+ newMap = tmp_0.r2((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE(), previousLinks.ug1(links.hfz_1));
1000
+ }
1001
+ if (links.xg1()) {
1002
+ var tmp0_0 = newMap;
1003
+ // Inline function 'kotlin.collections.get' call
1004
+ var key_1 = links.hfz_1;
1005
+ var tmp$ret$1 = (isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).j2(key_1);
1006
+ var nextLinks = ensureNotNull(tmp$ret$1);
1007
+ var tmp_2 = newMap;
1008
+ var tmp_3 = links.hfz_1;
1009
+ newMap = tmp_2.r2((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE(), nextLinks.wg1(links.gfz_1));
1010
+ }
1011
+ var newFirstKey = !links.vg1() ? links.hfz_1 : this.jg0_1;
1012
+ var newLastKey = !links.xg1() ? links.gfz_1 : this.kg0_1;
1013
+ return new PersistentOrderedMap(newFirstKey, newLastKey, newMap);
1014
+ };
1015
+ protoOf(PersistentOrderedMap).equals = function (other) {
1016
+ if (other === this)
1017
+ return true;
1018
+ if (!(!(other == null) ? isInterface(other, KtMap) : false))
1019
+ return false;
1020
+ if (!(this.s() === other.s()))
1021
+ return false;
1022
+ var tmp;
1023
+ if (other instanceof PersistentOrderedMap) {
1024
+ tmp = this.lg0_1.kfz_1.bg0(other.lg0_1.kfz_1, PersistentOrderedMap$equals$lambda);
1025
+ } else {
1026
+ if (other instanceof PersistentOrderedMapBuilder) {
1027
+ var tmp_0 = other.gg0_1.ag0_1;
1028
+ tmp = this.lg0_1.kfz_1.bg0(tmp_0, PersistentOrderedMap$equals$lambda_0);
1029
+ } else {
1030
+ if (other instanceof PersistentHashMap) {
1031
+ tmp = this.lg0_1.kfz_1.bg0(other.kfz_1, PersistentOrderedMap$equals$lambda_1);
1032
+ } else {
1033
+ if (other instanceof PersistentHashMapBuilder) {
1034
+ var tmp_1 = other.ag0_1;
1035
+ tmp = this.lg0_1.kfz_1.bg0(tmp_1, PersistentOrderedMap$equals$lambda_2);
1036
+ } else {
1037
+ tmp = protoOf(AbstractMap).equals.call(this, other);
1038
+ }
1039
+ }
1040
+ }
1041
+ }
1042
+ return tmp;
1043
+ };
1044
+ protoOf(PersistentOrderedMap).hashCode = function () {
1045
+ return protoOf(AbstractMap).hashCode.call(this);
1046
+ };
1047
+ function LinkedValue_init_$Init$(value, $this) {
1048
+ LinkedValue.call($this, value, EndOfChain_instance, EndOfChain_instance);
1049
+ return $this;
1050
+ }
1051
+ function LinkedValue_init_$Create$(value) {
1052
+ return LinkedValue_init_$Init$(value, objectCreate(protoOf(LinkedValue)));
1053
+ }
1054
+ function LinkedValue_init_$Init$_0(value, previous, $this) {
1055
+ LinkedValue.call($this, value, previous, EndOfChain_instance);
1056
+ return $this;
1057
+ }
1058
+ function LinkedValue_init_$Create$_0(value, previous) {
1059
+ return LinkedValue_init_$Init$_0(value, previous, objectCreate(protoOf(LinkedValue)));
1060
+ }
1061
+ function LinkedValue(value, previous, next) {
1062
+ this.ffz_1 = value;
1063
+ this.gfz_1 = previous;
1064
+ this.hfz_1 = next;
1065
+ }
1066
+ protoOf(LinkedValue).tg1 = function (newValue) {
1067
+ return new LinkedValue(newValue, this.gfz_1, this.hfz_1);
1068
+ };
1069
+ protoOf(LinkedValue).wg1 = function (newPrevious) {
1070
+ return new LinkedValue(this.ffz_1, newPrevious, this.hfz_1);
1071
+ };
1072
+ protoOf(LinkedValue).ug1 = function (newNext) {
1073
+ return new LinkedValue(this.ffz_1, this.gfz_1, newNext);
1074
+ };
1075
+ protoOf(LinkedValue).xg1 = function () {
1076
+ return !(this.hfz_1 === EndOfChain_instance);
1077
+ };
1078
+ protoOf(LinkedValue).vg1 = function () {
1079
+ return !(this.gfz_1 === EndOfChain_instance);
1080
+ };
1081
+ function PersistentOrderedMapBuilder() {
1082
+ }
1083
+ function PersistentOrderedMapKeysIterator(map) {
1084
+ this.yg1_1 = new PersistentOrderedMapLinksIterator(map.jg0_1, map.lg0_1);
1085
+ }
1086
+ protoOf(PersistentOrderedMapKeysIterator).q = function () {
1087
+ return this.yg1_1.q();
1088
+ };
1089
+ protoOf(PersistentOrderedMapKeysIterator).r = function () {
1090
+ var tmp = this.yg1_1.zg1_1;
1091
+ var nextKey = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
1092
+ this.yg1_1.r();
1093
+ return nextKey;
1094
+ };
1095
+ function PersistentOrderedMapValuesIterator(map) {
1096
+ this.cg2_1 = new PersistentOrderedMapLinksIterator(map.jg0_1, map.lg0_1);
1097
+ }
1098
+ protoOf(PersistentOrderedMapValuesIterator).q = function () {
1099
+ return this.cg2_1.q();
1100
+ };
1101
+ protoOf(PersistentOrderedMapValuesIterator).r = function () {
1102
+ return this.cg2_1.r().ffz_1;
1103
+ };
1104
+ function PersistentOrderedMapEntriesIterator(map) {
1105
+ this.dg2_1 = new PersistentOrderedMapLinksIterator(map.jg0_1, map.lg0_1);
1106
+ }
1107
+ protoOf(PersistentOrderedMapEntriesIterator).q = function () {
1108
+ return this.dg2_1.q();
1109
+ };
1110
+ protoOf(PersistentOrderedMapEntriesIterator).r = function () {
1111
+ var tmp = this.dg2_1.zg1_1;
1112
+ var nextKey = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
1113
+ var nextValue = this.dg2_1.r().ffz_1;
1114
+ return new MapEntry(nextKey, nextValue);
1115
+ };
1116
+ function PersistentOrderedMapLinksIterator(nextKey, hashMap) {
1117
+ this.zg1_1 = nextKey;
1118
+ this.ag2_1 = hashMap;
1119
+ this.bg2_1 = 0;
1120
+ }
1121
+ protoOf(PersistentOrderedMapLinksIterator).q = function () {
1122
+ return this.bg2_1 < this.ag2_1.s();
1123
+ };
1124
+ protoOf(PersistentOrderedMapLinksIterator).r = function () {
1125
+ if (!this.q()) {
1126
+ throw NoSuchElementException_init_$Create$();
1127
+ }
1128
+ var tmp0 = this.ag2_1;
1129
+ var tmp = this.zg1_1;
1130
+ // Inline function 'kotlin.collections.getOrElse' call
1131
+ var key = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
1132
+ var tmp0_elvis_lhs = tmp0.j2(key);
1133
+ var tmp_0;
1134
+ if (tmp0_elvis_lhs == null) {
1135
+ throw ConcurrentModificationException_init_$Create$('Hash code of a key (' + toString(this.zg1_1) + ') has changed after it was added to the persistent map.');
1136
+ } else {
1137
+ tmp_0 = tmp0_elvis_lhs;
1138
+ }
1139
+ var result = tmp_0;
1140
+ this.bg2_1 = this.bg2_1 + 1 | 0;
1141
+ this.zg1_1 = result.hfz_1;
1142
+ return result;
1143
+ };
1144
+ function PersistentOrderedMapKeys(map) {
1145
+ AbstractSet.call(this);
1146
+ this.eg2_1 = map;
1147
+ }
1148
+ protoOf(PersistentOrderedMapKeys).s = function () {
1149
+ return this.eg2_1.s();
1150
+ };
1151
+ protoOf(PersistentOrderedMapKeys).q6 = function (element) {
1152
+ return this.eg2_1.h2(element);
1153
+ };
1154
+ protoOf(PersistentOrderedMapKeys).w = function (element) {
1155
+ if (!(element == null ? true : !(element == null)))
1156
+ return false;
1157
+ return this.q6((element == null ? true : !(element == null)) ? element : THROW_CCE());
1158
+ };
1159
+ protoOf(PersistentOrderedMapKeys).p = function () {
1160
+ return new PersistentOrderedMapKeysIterator(this.eg2_1);
1161
+ };
1162
+ function PersistentOrderedMapValues(map) {
1163
+ AbstractCollection.call(this);
1164
+ this.fg2_1 = map;
1165
+ }
1166
+ protoOf(PersistentOrderedMapValues).s = function () {
1167
+ return this.fg2_1.s();
1168
+ };
1169
+ protoOf(PersistentOrderedMapValues).v6 = function (element) {
1170
+ return this.fg2_1.i2(element);
1171
+ };
1172
+ protoOf(PersistentOrderedMapValues).w = function (element) {
1173
+ if (!(element == null ? true : !(element == null)))
1174
+ return false;
1175
+ return this.v6((element == null ? true : !(element == null)) ? element : THROW_CCE());
1176
+ };
1177
+ protoOf(PersistentOrderedMapValues).p = function () {
1178
+ return new PersistentOrderedMapValuesIterator(this.fg2_1);
1179
+ };
1180
+ function PersistentOrderedMapEntries(map) {
1181
+ AbstractSet.call(this);
1182
+ this.gg2_1 = map;
1183
+ }
1184
+ protoOf(PersistentOrderedMapEntries).s = function () {
1185
+ return this.gg2_1.s();
1186
+ };
1187
+ protoOf(PersistentOrderedMapEntries).ng1 = function (element) {
1188
+ return MapImplementation_instance.og1(this.gg2_1, element);
1189
+ };
1190
+ protoOf(PersistentOrderedMapEntries).w = function (element) {
1191
+ if (!(!(element == null) ? isInterface(element, Entry) : false))
1192
+ return false;
1193
+ return this.ng1((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
1194
+ };
1195
+ protoOf(PersistentOrderedMapEntries).p = function () {
1196
+ return new PersistentOrderedMapEntriesIterator(this.gg2_1);
1197
+ };
1198
+ function EndOfChain() {
1199
+ }
1200
+ var EndOfChain_instance;
1201
+ function EndOfChain_getInstance() {
1202
+ return EndOfChain_instance;
1203
+ }
1204
+ function MapImplementation() {
1205
+ }
1206
+ protoOf(MapImplementation).og1 = function (map, element) {
1207
+ var tmp = !(element == null) ? element : THROW_CCE();
1208
+ if (!(!(tmp == null) ? isInterface(tmp, Entry) : false))
1209
+ return false;
1210
+ var tmp0_safe_receiver = map.j2(element.a1());
1211
+ var tmp_0;
1212
+ if (tmp0_safe_receiver == null) {
1213
+ tmp_0 = null;
1214
+ } else {
1215
+ // Inline function 'kotlin.let' call
1216
+ tmp_0 = equals(tmp0_safe_receiver, element.b1());
1217
+ }
1218
+ var tmp1_elvis_lhs = tmp_0;
1219
+ return tmp1_elvis_lhs == null ? element.b1() == null && map.h2(element.a1()) : tmp1_elvis_lhs;
1220
+ };
1221
+ var MapImplementation_instance;
1222
+ function MapImplementation_getInstance() {
1223
+ return MapImplementation_instance;
1224
+ }
1225
+ function assert(condition) {
1226
+ if (!condition) {
1227
+ throw AssertionError_init_$Create$('Assertion failed');
1228
+ }
1229
+ }
1230
+ //region block: init
1231
+ EndOfChain_instance = new EndOfChain();
1232
+ MapImplementation_instance = new MapImplementation();
1233
+ //endregion
1234
+ //region block: exports
1235
+ _.$_$ = _.$_$ || {};
1236
+ _.$_$.a = persistentMapOf;
1237
+ //endregion
1238
+ return _;
1239
+ }));
1240
+
1241
+ //# sourceMappingURL=Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map