mhx 2026.1.10 → 2026.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,1654 @@
1
+ import mhxFfi from "./mhx_ffi.js";
2
+ const mhx_ffi = mhxFfi;
3
+ const $64$f4ah6o$47$mhx$45$spec$47$sync$46$SyncStrategy$Drop = { $tag: 0 };
4
+ const $64$f4ah6o$47$mhx$45$spec$47$sync$46$SyncStrategy$Replace = { $tag: 1 };
5
+ function $64$f4ah6o$47$mhx$45$spec$47$sync$46$SyncStrategy$Queue(param0) {
6
+ this._0 = param0;
7
+ }
8
+ $64$f4ah6o$47$mhx$45$spec$47$sync$46$SyncStrategy$Queue.prototype.$tag = 2;
9
+ class $PanicError extends Error {}
10
+ function $panic() {
11
+ throw new $PanicError();
12
+ }
13
+ function $bound_check(arr, index) {
14
+ if (index < 0 || index >= arr.length) throw new Error("Index out of bounds");
15
+ }
16
+ function $compare_int(a, b) {
17
+ return (a >= b) - (a <= b);
18
+ }
19
+ const moonbitlang$core$builtin$$random_seed = () => {
20
+ if (globalThis.crypto?.getRandomValues) {
21
+ const array = new Uint32Array(1);
22
+ globalThis.crypto.getRandomValues(array);
23
+ return array[0] | 0; // Convert to signed 32
24
+ } else {
25
+ return Math.floor(Math.random() * 0x100000000) | 0; // Fallback to Math.random
26
+ }
27
+ };
28
+ function Result$Err$0$(param0) {
29
+ this._0 = param0;
30
+ }
31
+ Result$Err$0$.prototype.$tag = 0;
32
+ function Result$Ok$0$(param0) {
33
+ this._0 = param0;
34
+ }
35
+ Result$Ok$0$.prototype.$tag = 1;
36
+ const Error$moonbitlang$47$async$47$internal$47$coroutine$46$Cancelled$46$Cancelled = { $tag: 15 };
37
+ function Error$moonbitlang$47$core$47$strconv$46$StrConvError$46$StrConvError(param0) {
38
+ this._0 = param0;
39
+ }
40
+ Error$moonbitlang$47$core$47$strconv$46$StrConvError$46$StrConvError.prototype.$tag = 14;
41
+ function Error$f4ah6o$47$mhx$47$core$46$MhxError$46$ParseError(param0) {
42
+ this._0 = param0;
43
+ }
44
+ Error$f4ah6o$47$mhx$47$core$46$MhxError$46$ParseError.prototype.$tag = 13;
45
+ function Error$f4ah6o$47$mhx$47$core$46$MhxError$46$NetworkError(param0, param1) {
46
+ this._0 = param0;
47
+ this._1 = param1;
48
+ }
49
+ Error$f4ah6o$47$mhx$47$core$46$MhxError$46$NetworkError.prototype.$tag = 12;
50
+ function Error$f4ah6o$47$mhx$47$core$46$MhxError$46$TimeoutError(param0, param1) {
51
+ this._0 = param0;
52
+ this._1 = param1;
53
+ }
54
+ Error$f4ah6o$47$mhx$47$core$46$MhxError$46$TimeoutError.prototype.$tag = 11;
55
+ function Error$f4ah6o$47$mhx$47$core$46$MhxError$46$AbortError(param0) {
56
+ this._0 = param0;
57
+ }
58
+ Error$f4ah6o$47$mhx$47$core$46$MhxError$46$AbortError.prototype.$tag = 10;
59
+ function Error$f4ah6o$47$mhx$47$core$46$MhxError$46$DomError(param0, param1, param2) {
60
+ this._0 = param0;
61
+ this._1 = param1;
62
+ this._2 = param2;
63
+ }
64
+ Error$f4ah6o$47$mhx$47$core$46$MhxError$46$DomError.prototype.$tag = 9;
65
+ function Error$f4ah6o$47$mhx$47$core$46$MhxError$46$ConfigError(param0, param1) {
66
+ this._0 = param0;
67
+ this._1 = param1;
68
+ }
69
+ Error$f4ah6o$47$mhx$47$core$46$MhxError$46$ConfigError.prototype.$tag = 8;
70
+ function Error$f4ah6o$47$mhx$47$core$46$MhxError$46$SwapError(param0, param1, param2) {
71
+ this._0 = param0;
72
+ this._1 = param1;
73
+ this._2 = param2;
74
+ }
75
+ Error$f4ah6o$47$mhx$47$core$46$MhxError$46$SwapError.prototype.$tag = 7;
76
+ const Error$moonbitlang$47$core$47$builtin$46$CreatingViewError$46$IndexOutOfBounds = { $tag: 6 };
77
+ const Error$moonbitlang$47$core$47$builtin$46$CreatingViewError$46$InvalidIndex = { $tag: 5 };
78
+ function Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$UnexpectedChar(param0, param1) {
79
+ this._0 = param0;
80
+ this._1 = param1;
81
+ }
82
+ Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$UnexpectedChar.prototype.$tag = 4;
83
+ function Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$UnexpectedEnd(param0, param1) {
84
+ this._0 = param0;
85
+ this._1 = param1;
86
+ }
87
+ Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$UnexpectedEnd.prototype.$tag = 3;
88
+ function Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$InvalidNumber(param0, param1) {
89
+ this._0 = param0;
90
+ this._1 = param1;
91
+ }
92
+ Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$InvalidNumber.prototype.$tag = 2;
93
+ function Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$InvalidModifier(param0, param1) {
94
+ this._0 = param0;
95
+ this._1 = param1;
96
+ }
97
+ Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$InvalidModifier.prototype.$tag = 1;
98
+ function Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$InvalidSelector(param0, param1) {
99
+ this._0 = param0;
100
+ this._1 = param1;
101
+ }
102
+ Error$f4ah6o$47$mhx$45$spec$47$parser$46$ParseError$46$InvalidSelector.prototype.$tag = 0;
103
+ const moonbitlang$core$builtin$$int_to_string_js = (x, radix) => {
104
+ return x.toString(radix);
105
+ };
106
+ function $make_array_len_and_init(a, b) {
107
+ const arr = new Array(a);
108
+ arr.fill(b);
109
+ return arr;
110
+ }
111
+ const moonbitlang$core$builtin$$JSArray$push = (arr, val) => { arr.push(val); };
112
+ const moonbitlang$core$builtin$$try_init_wasm_helper = function() {
113
+ try {
114
+ return new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11])), {}).exports;
115
+ } catch (e) {
116
+ return undefined;
117
+ }
118
+ };
119
+ const moonbitlang$core$builtin$$MyInt64$div_bigint = (a, b) => {
120
+ const aVal = (BigInt(a.hi) << 32n) | BigInt(a.lo >>> 0);
121
+ const bVal = (BigInt(b.hi) << 32n) | BigInt(b.lo >>> 0);
122
+ const result = aVal / bVal;
123
+ const lo = Number(result & 0xFFFFFFFFn);
124
+ const hi = Number((result >> 32n) & 0xFFFFFFFFn);
125
+ return { hi: hi | 0, lo: lo | 0 };
126
+ };
127
+ const moonbitlang$core$builtin$$MyInt64$compare = (a, b) => {
128
+ const ahi = a.hi;
129
+ const bhi = b.hi;
130
+ if (ahi < bhi) {
131
+ return -1;
132
+ }
133
+ if (ahi > bhi) {
134
+ return 1;
135
+ }
136
+ const alo = a.lo >>> 0;
137
+ const blo = b.lo >>> 0;
138
+ if (alo < blo) {
139
+ return -1;
140
+ }
141
+ if (alo > blo) {
142
+ return 1;
143
+ }
144
+ return 0;
145
+ };
146
+ const moonbitlang$core$builtin$$JSArray$set_length = (arr, len) => { arr.length = len; };
147
+ const moonbitlang$core$builtin$$JSArray$splice = (arr, idx, cnt) => arr.splice(idx, cnt);
148
+ function Result$Err$1$(param0) {
149
+ this._0 = param0;
150
+ }
151
+ Result$Err$1$.prototype.$tag = 0;
152
+ function Result$Ok$1$(param0) {
153
+ this._0 = param0;
154
+ }
155
+ Result$Ok$1$.prototype.$tag = 1;
156
+ function Result$Err$2$(param0) {
157
+ this._0 = param0;
158
+ }
159
+ Result$Err$2$.prototype.$tag = 0;
160
+ function Result$Ok$2$(param0) {
161
+ this._0 = param0;
162
+ }
163
+ Result$Ok$2$.prototype.$tag = 1;
164
+ function Result$Err$3$(param0) {
165
+ this._0 = param0;
166
+ }
167
+ Result$Err$3$.prototype.$tag = 0;
168
+ function Result$Ok$3$(param0) {
169
+ this._0 = param0;
170
+ }
171
+ Result$Ok$3$.prototype.$tag = 1;
172
+ function Result$Err$4$(param0) {
173
+ this._0 = param0;
174
+ }
175
+ Result$Err$4$.prototype.$tag = 0;
176
+ function Result$Ok$4$(param0) {
177
+ this._0 = param0;
178
+ }
179
+ Result$Ok$4$.prototype.$tag = 1;
180
+ const $9223372036854775807L = { hi: 2147483647, lo: -1 };
181
+ const $10L = { hi: 0, lo: 10 };
182
+ const $1L = { hi: 0, lo: 1 };
183
+ const $16L = { hi: 0, lo: 16 };
184
+ const $_9223372036854775808L = { hi: -2147483648, lo: 0 };
185
+ const $0L = { hi: 0, lo: 0 };
186
+ function Result$Err$5$(param0) {
187
+ this._0 = param0;
188
+ }
189
+ Result$Err$5$.prototype.$tag = 0;
190
+ function Result$Ok$5$(param0) {
191
+ this._0 = param0;
192
+ }
193
+ Result$Ok$5$.prototype.$tag = 1;
194
+ function Result$Err$6$(param0) {
195
+ this._0 = param0;
196
+ }
197
+ Result$Err$6$.prototype.$tag = 0;
198
+ function Result$Ok$6$(param0) {
199
+ this._0 = param0;
200
+ }
201
+ Result$Ok$6$.prototype.$tag = 1;
202
+ function Result$Err$7$(param0) {
203
+ this._0 = param0;
204
+ }
205
+ Result$Err$7$.prototype.$tag = 0;
206
+ function Result$Ok$7$(param0) {
207
+ this._0 = param0;
208
+ }
209
+ Result$Ok$7$.prototype.$tag = 1;
210
+ function Result$Err$8$(param0) {
211
+ this._0 = param0;
212
+ }
213
+ Result$Err$8$.prototype.$tag = 0;
214
+ function Result$Ok$8$(param0) {
215
+ this._0 = param0;
216
+ }
217
+ Result$Ok$8$.prototype.$tag = 1;
218
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$This = { $tag: 0 };
219
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Body = { $tag: 1 };
220
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Window = { $tag: 2 };
221
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Document = { $tag: 3 };
222
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Closest(param0) {
223
+ this._0 = param0;
224
+ }
225
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Closest.prototype.$tag = 4;
226
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Find(param0) {
227
+ this._0 = param0;
228
+ }
229
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Find.prototype.$tag = 5;
230
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Next(param0) {
231
+ this._0 = param0;
232
+ }
233
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Next.prototype.$tag = 6;
234
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Previous(param0) {
235
+ this._0 = param0;
236
+ }
237
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Previous.prototype.$tag = 7;
238
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Css(param0) {
239
+ this._0 = param0;
240
+ }
241
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Selector$Css.prototype.$tag = 8;
242
+ function Result$Err$9$(param0) {
243
+ this._0 = param0;
244
+ }
245
+ Result$Err$9$.prototype.$tag = 0;
246
+ function Result$Ok$9$(param0) {
247
+ this._0 = param0;
248
+ }
249
+ Result$Ok$9$.prototype.$tag = 1;
250
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Once = { $tag: 0 };
251
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Changed = { $tag: 1 };
252
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Delay(param0) {
253
+ this._0 = param0;
254
+ }
255
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Delay.prototype.$tag = 2;
256
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Throttle(param0) {
257
+ this._0 = param0;
258
+ }
259
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Throttle.prototype.$tag = 3;
260
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Debounce(param0) {
261
+ this._0 = param0;
262
+ }
263
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Debounce.prototype.$tag = 4;
264
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$From(param0) {
265
+ this._0 = param0;
266
+ }
267
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$From.prototype.$tag = 5;
268
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Target(param0) {
269
+ this._0 = param0;
270
+ }
271
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Target.prototype.$tag = 6;
272
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Consume = { $tag: 7 };
273
+ const $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Prevent = { $tag: 8 };
274
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Filter(param0) {
275
+ this._0 = param0;
276
+ }
277
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Filter.prototype.$tag = 9;
278
+ function $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Queue(param0) {
279
+ this._0 = param0;
280
+ }
281
+ $64$f4ah6o$47$mhx$45$spec$47$trigger$46$Modifier$Queue.prototype.$tag = 10;
282
+ function Result$Err$10$(param0) {
283
+ this._0 = param0;
284
+ }
285
+ Result$Err$10$.prototype.$tag = 0;
286
+ function Result$Ok$10$(param0) {
287
+ this._0 = param0;
288
+ }
289
+ Result$Ok$10$.prototype.$tag = 1;
290
+ function Result$Err$11$(param0) {
291
+ this._0 = param0;
292
+ }
293
+ Result$Err$11$.prototype.$tag = 0;
294
+ function Result$Ok$11$(param0) {
295
+ this._0 = param0;
296
+ }
297
+ Result$Ok$11$.prototype.$tag = 1;
298
+ function Result$Err$12$(param0) {
299
+ this._0 = param0;
300
+ }
301
+ Result$Err$12$.prototype.$tag = 0;
302
+ function Result$Ok$12$(param0) {
303
+ this._0 = param0;
304
+ }
305
+ Result$Ok$12$.prototype.$tag = 1;
306
+ function Result$Err$13$(param0) {
307
+ this._0 = param0;
308
+ }
309
+ Result$Err$13$.prototype.$tag = 0;
310
+ function Result$Ok$13$(param0) {
311
+ this._0 = param0;
312
+ }
313
+ Result$Ok$13$.prototype.$tag = 1;
314
+ const $64$moonbitlang$47$async$47$internal$47$coroutine$46$State$Done = { $tag: 0 };
315
+ function $64$moonbitlang$47$async$47$internal$47$coroutine$46$State$Fail(param0) {
316
+ this._0 = param0;
317
+ }
318
+ $64$moonbitlang$47$async$47$internal$47$coroutine$46$State$Fail.prototype.$tag = 1;
319
+ const $64$moonbitlang$47$async$47$internal$47$coroutine$46$State$Running = { $tag: 2 };
320
+ function $64$moonbitlang$47$async$47$internal$47$coroutine$46$State$Suspend(param0, param1) {
321
+ this._0 = param0;
322
+ this._1 = param1;
323
+ }
324
+ $64$moonbitlang$47$async$47$internal$47$coroutine$46$State$Suspend.prototype.$tag = 3;
325
+ function $36$moonbitlang$47$async$47$internal$47$coroutine$46$spawn$46$run$47$17$46$lambda$47$182$46$State$State_0(param0, param1) {
326
+ this._0 = param0;
327
+ this._1 = param1;
328
+ }
329
+ $36$moonbitlang$47$async$47$internal$47$coroutine$46$spawn$46$run$47$17$46$lambda$47$182$46$State$State_0.prototype.$tag = 0;
330
+ function $36$moonbitlang$47$async$47$internal$47$coroutine$46$spawn$46$run$47$17$46$lambda$47$182$46$State$_try$47$81(param0, param1) {
331
+ this._0 = param0;
332
+ this._1 = param1;
333
+ }
334
+ $36$moonbitlang$47$async$47$internal$47$coroutine$46$spawn$46$run$47$17$46$lambda$47$182$46$State$_try$47$81.prototype.$tag = 1;
335
+ function $36$moonbitlang$47$async$47$internal$47$coroutine$46$spawn$46$run$47$17$46$lambda$47$182$46$State$State_2(param0, param1) {
336
+ this._0 = param0;
337
+ this._1 = param1;
338
+ }
339
+ $36$moonbitlang$47$async$47$internal$47$coroutine$46$spawn$46$run$47$17$46$lambda$47$182$46$State$State_2.prototype.$tag = 2;
340
+ const moonbitlang$async$internal$event_loop$$set_timeout = (duration, f) => setTimeout(f, duration);
341
+ const Option$None$14$ = { $tag: 0 };
342
+ function Option$Some$14$(param0) {
343
+ this._0 = param0;
344
+ }
345
+ Option$Some$14$.prototype.$tag = 1;
346
+ function $64$f4ah6o$47$mhx$47$network$46$ScheduleResult$Execute(param0) {
347
+ this._0 = param0;
348
+ }
349
+ $64$f4ah6o$47$mhx$47$network$46$ScheduleResult$Execute.prototype.$tag = 0;
350
+ const $64$f4ah6o$47$mhx$47$network$46$ScheduleResult$Queued = { $tag: 1 };
351
+ const $64$f4ah6o$47$mhx$47$network$46$ScheduleResult$Dropped = { $tag: 2 };
352
+ const Option$None$15$ = { $tag: 0 };
353
+ function Option$Some$15$(param0) {
354
+ this._0 = param0;
355
+ }
356
+ Option$Some$15$.prototype.$tag = 1;
357
+ function Result$Err$16$(param0) {
358
+ this._0 = param0;
359
+ }
360
+ Result$Err$16$.prototype.$tag = 0;
361
+ function Result$Ok$16$(param0) {
362
+ this._0 = param0;
363
+ }
364
+ Result$Ok$16$.prototype.$tag = 1;
365
+ const $$$64$moonbitlang$47$core$47$builtin$46$StringBuilder$36$as$36$64$moonbitlang$47$core$47$builtin$46$Logger = { method_0: moonbitlang$core$builtin$$Logger$write_string$0$, method_1: moonbitlang$core$builtin$$Logger$write_substring$1$, method_2: moonbitlang$core$builtin$$Logger$write_view$0$, method_3: moonbitlang$core$builtin$$Logger$write_char$0$ };
366
+ const moonbitlang$core$builtin$$trim$46$42$bind$124$6102 = "\t\n\r ";
367
+ const moonbitlang$core$builtin$$wasm_helper_cache = { tried: false, exports: undefined };
368
+ const moonbitlang$core$strconv$$base_err_str = "invalid base";
369
+ const moonbitlang$core$strconv$$range_err_str = "value out of range";
370
+ const moonbitlang$core$strconv$$syntax_err_str = "invalid syntax";
371
+ const moonbitlang$core$strconv$$parse_int64$46$inner$46$42$bind$124$603 = "";
372
+ const f4ah6o$mhx$45$spec$parser$$modifier_keywords = ["once", "changed", "consume", "prevent", "delay", "throttle", "debounce", "from", "target", "queue"];
373
+ const f4ah6o$mhx$45$spec$parser$$parse_selector$46$42$bind$124$309 = "closest ";
374
+ const f4ah6o$mhx$45$spec$parser$$parse_selector$46$42$bind$124$312 = "find ";
375
+ const f4ah6o$mhx$45$spec$parser$$parse_selector$46$42$bind$124$315 = "next ";
376
+ const f4ah6o$mhx$45$spec$parser$$parse_selector$46$42$bind$124$318 = "previous ";
377
+ const f4ah6o$mhx$45$spec$swap$$parse_time_ms$46$42$bind$124$85 = "ms";
378
+ const f4ah6o$mhx$45$spec$swap$$parse_time_ms$46$42$bind$124$86 = "s";
379
+ const f4ah6o$mhx$45$spec$swap$$parse_time_ms$46$42$bind$124$87 = ".";
380
+ const f4ah6o$mhx$45$spec$swap$$parse$46$42$bind$124$112 = " ";
381
+ const f4ah6o$mhx$45$spec$swap$$parse$46$42$bind$124$106 = ":";
382
+ const f4ah6o$mhx$45$spec$swap$$default$46$record$47$1895 = { strategy: 0, swap_delay: 0, settle_delay: 20, scroll: "", show: "", focus_scroll: false };
383
+ const f4ah6o$mhx$event$$default_events = ["click", "submit", "change", "input", "focus", "blur", "keydown", "keyup", "mouseenter", "mouseleave", "load", "revealed", "intersect"];
384
+ const f4ah6o$mhx$core$$resolve_swap_target$46$42$bind$124$413 = "closest ";
385
+ const f4ah6o$mhx$core$$resolve_swap_target$46$42$bind$124$414 = "find ";
386
+ const f4ah6o$mhx$core$$parse_form_encoded$46$42$bind$124$492 = "&";
387
+ const f4ah6o$mhx$core$$parse_form_encoded$46$42$bind$124$481 = "=";
388
+ const f4ah6o$mhx$core$$parse_json_value$46$42$bind$124$510 = "\"";
389
+ const f4ah6o$mhx$core$$parse_mx_vals_pairs$46$42$bind$124$518 = "{";
390
+ const f4ah6o$mhx$core$$parse_mx_vals_pairs$46$42$bind$124$519 = "}";
391
+ const f4ah6o$mhx$core$$parse_mx_vals_pairs$46$42$bind$124$532 = ":";
392
+ const f4ah6o$mhx$core$$build_request_url$46$42$bind$124$625 = "?";
393
+ const f4ah6o$mhx$core$$process_mutation_record$46$42$bind$124$676 = "mx-";
394
+ const moonbitlang$async$internal$coroutine$$scheduler = { coro_id: 0, curr_coro: undefined, blocking: 0, run_later: moonbitlang$core$deque$$Deque$new$46$inner$2$(0) };
395
+ const moonbitlang$core$builtin$$seed = moonbitlang$core$builtin$$random_seed();
396
+ const f4ah6o$mhx$core$$global_mhx = f4ah6o$mhx$core$$Mhx$new();
397
+ const f4ah6o$mhx$core$$global_error_state = { handler: f4ah6o$mhx$core$$default_error_handler };
398
+ const moonbitlang$core$builtin$$brute_force_find$46$constr$47$370 = 0;
399
+ const moonbitlang$core$builtin$$boyer_moore_horspool_find$46$constr$47$356 = 0;
400
+ const f4ah6o$mhx$45$spec$sync$$parse_sync_strategy$46$constr$47$1938 = new $64$f4ah6o$47$mhx$45$spec$47$sync$46$SyncStrategy$Queue(2);
401
+ const f4ah6o$mhx$45$spec$sync$$parse_sync_strategy$46$constr$47$1939 = new $64$f4ah6o$47$mhx$45$spec$47$sync$46$SyncStrategy$Queue(1);
402
+ const f4ah6o$mhx$45$spec$sync$$parse_sync_strategy$46$constr$47$1940 = new $64$f4ah6o$47$mhx$45$spec$47$sync$46$SyncStrategy$Queue(0);
403
+ const f4ah6o$mhx$event$$parse_element_config$46$tuple$47$1988 = { _0: 0, _1: "" };
404
+ const _bind = [];
405
+ const f4ah6o$mhx$core$$mutation_registry = { next_id: 1, callbacks: moonbitlang$core$builtin$$Map$from_array$3$({ buf: _bind, start: 0, end: 0 }) };
406
+ const _bind$2 = [];
407
+ const f4ah6o$mhx$network$$callback_registry = { next_id: 1, callbacks: moonbitlang$core$builtin$$Map$from_array$4$({ buf: _bind$2, start: 0, end: 0 }) };
408
+ const f4ah6o$mhx$core$$build_request_options$46$tuple$47$2438 = { _0: "HX-Request", _1: "true" };
409
+ const f4ah6o$mhx$core$$build_request_options$46$42$bind$47$2439 = [f4ah6o$mhx$core$$build_request_options$46$tuple$47$2438];
410
+ function moonbitlang$core$abort$$abort$5$(msg) {
411
+ return $panic();
412
+ }
413
+ function moonbitlang$core$abort$$abort$6$(msg) {
414
+ return $panic();
415
+ }
416
+ function moonbitlang$core$abort$$abort$7$(msg) {
417
+ $panic();
418
+ }
419
+ function moonbitlang$core$abort$$abort$8$(msg) {
420
+ return $panic();
421
+ }
422
+ function moonbitlang$core$builtin$$Logger$write_object$9$(self, obj) {
423
+ moonbitlang$core$builtin$$Show$output$9$(obj, self);
424
+ }
425
+ function moonbitlang$core$builtin$$Logger$write_object$10$(self, obj) {
426
+ moonbitlang$core$builtin$$Show$output$10$(obj, self);
427
+ }
428
+ function moonbitlang$core$builtin$$Logger$write_object$11$(self, obj) {
429
+ moonbitlang$core$builtin$$Show$output$11$(obj, self);
430
+ }
431
+ function moonbitlang$core$builtin$$Logger$write_object$12$(self, obj) {
432
+ moonbitlang$core$builtin$$Show$output$12$(obj, self);
433
+ }
434
+ function moonbitlang$core$builtin$$Logger$write_object$13$(self, obj) {
435
+ moonbitlang$core$builtin$$Show$output$13$(obj, self);
436
+ }
437
+ function moonbitlang$core$builtin$$Hasher$consume4(self, input) {
438
+ const _p = (self.acc >>> 0) + ((Math.imul(input, -1028477379) | 0) >>> 0) | 0;
439
+ const _p$2 = 17;
440
+ self.acc = Math.imul(_p << _p$2 | (_p >>> (32 - _p$2 | 0) | 0), 668265263) | 0;
441
+ }
442
+ function moonbitlang$core$builtin$$Hasher$combine_uint(self, value) {
443
+ self.acc = (self.acc >>> 0) + (4 >>> 0) | 0;
444
+ moonbitlang$core$builtin$$Hasher$consume4(self, value);
445
+ }
446
+ function moonbitlang$core$builtin$$abort$5$(string, loc) {
447
+ return moonbitlang$core$abort$$abort$5$(`${string}\n at ${moonbitlang$core$builtin$$Show$to_string$14$(loc)}\n`);
448
+ }
449
+ function moonbitlang$core$builtin$$abort$6$(string, loc) {
450
+ return moonbitlang$core$abort$$abort$6$(`${string}\n at ${moonbitlang$core$builtin$$Show$to_string$14$(loc)}\n`);
451
+ }
452
+ function moonbitlang$core$builtin$$abort$7$(string, loc) {
453
+ moonbitlang$core$abort$$abort$7$(`${string}\n at ${moonbitlang$core$builtin$$Show$to_string$14$(loc)}\n`);
454
+ }
455
+ function moonbitlang$core$builtin$$abort$8$(string, loc) {
456
+ return moonbitlang$core$abort$$abort$8$(`${string}\n at ${moonbitlang$core$builtin$$Show$to_string$14$(loc)}\n`);
457
+ }
458
+ function moonbitlang$core$builtin$$StringBuilder$new$46$inner(size_hint) {
459
+ return { val: "" };
460
+ }
461
+ function moonbitlang$core$builtin$$Logger$write_char$0$(self, ch) {
462
+ const _bind$3 = self;
463
+ _bind$3.val = `${_bind$3.val}${String.fromCodePoint(ch)}`;
464
+ }
465
+ function moonbitlang$core$uint16$$UInt16$is_leading_surrogate(self) {
466
+ return moonbitlang$core$builtin$$Compare$op_ge$15$(self, 55296) && moonbitlang$core$builtin$$Compare$op_le$15$(self, 56319);
467
+ }
468
+ function moonbitlang$core$uint16$$UInt16$is_trailing_surrogate(self) {
469
+ return moonbitlang$core$builtin$$Compare$op_ge$15$(self, 56320) && moonbitlang$core$builtin$$Compare$op_le$15$(self, 57343);
470
+ }
471
+ function moonbitlang$core$builtin$$code_point_of_surrogate_pair(leading, trailing) {
472
+ return (((Math.imul(leading - 55296 | 0, 1024) | 0) + trailing | 0) - 56320 | 0) + 65536 | 0;
473
+ }
474
+ function moonbitlang$core$string$$String$unsafe_char_at(self, index) {
475
+ const c1 = self.charCodeAt(index);
476
+ if (moonbitlang$core$uint16$$UInt16$is_leading_surrogate(c1)) {
477
+ const _tmp = index + 1 | 0;
478
+ const c2 = self.charCodeAt(_tmp);
479
+ return moonbitlang$core$builtin$$code_point_of_surrogate_pair(c1, c2);
480
+ } else {
481
+ return c1;
482
+ }
483
+ }
484
+ function moonbitlang$core$array$$Array$at$10$(self, index) {
485
+ const len = self.length;
486
+ if (index >= 0 && index < len) {
487
+ $bound_check(self, index);
488
+ return self[index];
489
+ } else {
490
+ return $panic();
491
+ }
492
+ }
493
+ function moonbitlang$core$builtin$$SourceLocRepr$parse(repr) {
494
+ const _bind$3 = { str: repr, start: 0, end: repr.length };
495
+ const _data = _bind$3.str;
496
+ const _start = _bind$3.start;
497
+ const _end = _start + (_bind$3.end - _bind$3.start | 0) | 0;
498
+ let _cursor = _start;
499
+ let accept_state = -1;
500
+ let match_end = -1;
501
+ let match_tag_saver_0 = -1;
502
+ let match_tag_saver_1 = -1;
503
+ let match_tag_saver_2 = -1;
504
+ let match_tag_saver_3 = -1;
505
+ let match_tag_saver_4 = -1;
506
+ let tag_0 = -1;
507
+ let tag_1 = -1;
508
+ let tag_1_1 = -1;
509
+ let tag_1_2 = -1;
510
+ let tag_3 = -1;
511
+ let tag_2 = -1;
512
+ let tag_2_1 = -1;
513
+ let tag_4 = -1;
514
+ _L: {
515
+ let join_dispatch_19;
516
+ _L$2: {
517
+ if (_cursor < _end) {
518
+ const _p = _cursor;
519
+ const next_char = _data.charCodeAt(_p);
520
+ _cursor = _cursor + 1 | 0;
521
+ if (next_char < 65) {
522
+ if (next_char < 64) {
523
+ break _L;
524
+ } else {
525
+ while (true) {
526
+ tag_0 = _cursor;
527
+ if (_cursor < _end) {
528
+ _L$3: {
529
+ const _p$2 = _cursor;
530
+ const next_char$2 = _data.charCodeAt(_p$2);
531
+ _cursor = _cursor + 1 | 0;
532
+ if (next_char$2 < 55296) {
533
+ if (next_char$2 < 58) {
534
+ break _L$3;
535
+ } else {
536
+ if (next_char$2 > 58) {
537
+ break _L$3;
538
+ } else {
539
+ if (_cursor < _end) {
540
+ _L$4: {
541
+ const _p$3 = _cursor;
542
+ const next_char$3 = _data.charCodeAt(_p$3);
543
+ _cursor = _cursor + 1 | 0;
544
+ if (next_char$3 < 56319) {
545
+ if (next_char$3 < 55296) {
546
+ break _L$4;
547
+ } else {
548
+ join_dispatch_19 = 7;
549
+ break _L$2;
550
+ }
551
+ } else {
552
+ if (next_char$3 > 56319) {
553
+ if (next_char$3 < 65536) {
554
+ break _L$4;
555
+ } else {
556
+ break _L;
557
+ }
558
+ } else {
559
+ join_dispatch_19 = 8;
560
+ break _L$2;
561
+ }
562
+ }
563
+ }
564
+ join_dispatch_19 = 0;
565
+ break _L$2;
566
+ } else {
567
+ break _L;
568
+ }
569
+ }
570
+ }
571
+ } else {
572
+ if (next_char$2 > 56318) {
573
+ if (next_char$2 < 57344) {
574
+ if (_cursor < _end) {
575
+ const _p$3 = _cursor;
576
+ const next_char$3 = _data.charCodeAt(_p$3);
577
+ _cursor = _cursor + 1 | 0;
578
+ if (next_char$3 < 56320) {
579
+ break _L;
580
+ } else {
581
+ if (next_char$3 > 57343) {
582
+ break _L;
583
+ } else {
584
+ continue;
585
+ }
586
+ }
587
+ } else {
588
+ break _L;
589
+ }
590
+ } else {
591
+ if (next_char$2 > 65535) {
592
+ break _L;
593
+ } else {
594
+ break _L$3;
595
+ }
596
+ }
597
+ } else {
598
+ if (_cursor < _end) {
599
+ const _p$3 = _cursor;
600
+ const next_char$3 = _data.charCodeAt(_p$3);
601
+ _cursor = _cursor + 1 | 0;
602
+ if (next_char$3 < 56320) {
603
+ break _L;
604
+ } else {
605
+ if (next_char$3 > 65535) {
606
+ break _L;
607
+ } else {
608
+ continue;
609
+ }
610
+ }
611
+ } else {
612
+ break _L;
613
+ }
614
+ }
615
+ }
616
+ }
617
+ continue;
618
+ } else {
619
+ break _L;
620
+ }
621
+ }
622
+ }
623
+ } else {
624
+ break _L;
625
+ }
626
+ } else {
627
+ break _L;
628
+ }
629
+ }
630
+ let _tmp = join_dispatch_19;
631
+ _L$3: while (true) {
632
+ const dispatch_19 = _tmp;
633
+ _L$4: {
634
+ _L$5: {
635
+ switch (dispatch_19) {
636
+ case 3: {
637
+ tag_1_2 = tag_1_1;
638
+ tag_1_1 = tag_1;
639
+ tag_1 = _cursor;
640
+ if (_cursor < _end) {
641
+ _L$6: {
642
+ const _p = _cursor;
643
+ const next_char = _data.charCodeAt(_p);
644
+ _cursor = _cursor + 1 | 0;
645
+ if (next_char < 55296) {
646
+ if (next_char < 58) {
647
+ if (next_char < 48) {
648
+ break _L$6;
649
+ } else {
650
+ tag_1 = _cursor;
651
+ tag_2_1 = tag_2;
652
+ tag_2 = _cursor;
653
+ tag_3 = _cursor;
654
+ if (_cursor < _end) {
655
+ _L$7: {
656
+ const _p$2 = _cursor;
657
+ const next_char$2 = _data.charCodeAt(_p$2);
658
+ _cursor = _cursor + 1 | 0;
659
+ if (next_char$2 < 59) {
660
+ if (next_char$2 < 46) {
661
+ if (next_char$2 < 45) {
662
+ break _L$7;
663
+ } else {
664
+ break _L$4;
665
+ }
666
+ } else {
667
+ if (next_char$2 > 47) {
668
+ if (next_char$2 < 58) {
669
+ _tmp = 6;
670
+ continue _L$3;
671
+ } else {
672
+ _tmp = 3;
673
+ continue _L$3;
674
+ }
675
+ } else {
676
+ break _L$7;
677
+ }
678
+ }
679
+ } else {
680
+ if (next_char$2 > 55295) {
681
+ if (next_char$2 < 57344) {
682
+ if (next_char$2 < 56319) {
683
+ _tmp = 7;
684
+ continue _L$3;
685
+ } else {
686
+ _tmp = 8;
687
+ continue _L$3;
688
+ }
689
+ } else {
690
+ if (next_char$2 > 65535) {
691
+ break _L;
692
+ } else {
693
+ break _L$7;
694
+ }
695
+ }
696
+ } else {
697
+ break _L$7;
698
+ }
699
+ }
700
+ }
701
+ _tmp = 0;
702
+ continue _L$3;
703
+ } else {
704
+ break _L;
705
+ }
706
+ }
707
+ } else {
708
+ if (next_char > 58) {
709
+ break _L$6;
710
+ } else {
711
+ _tmp = 1;
712
+ continue _L$3;
713
+ }
714
+ }
715
+ } else {
716
+ if (next_char > 56318) {
717
+ if (next_char < 57344) {
718
+ _tmp = 8;
719
+ continue _L$3;
720
+ } else {
721
+ if (next_char > 65535) {
722
+ break _L;
723
+ } else {
724
+ break _L$6;
725
+ }
726
+ }
727
+ } else {
728
+ _tmp = 7;
729
+ continue _L$3;
730
+ }
731
+ }
732
+ }
733
+ _tmp = 0;
734
+ continue _L$3;
735
+ } else {
736
+ break _L;
737
+ }
738
+ }
739
+ case 2: {
740
+ tag_1 = _cursor;
741
+ tag_2 = _cursor;
742
+ if (_cursor < _end) {
743
+ _L$6: {
744
+ const _p = _cursor;
745
+ const next_char = _data.charCodeAt(_p);
746
+ _cursor = _cursor + 1 | 0;
747
+ if (next_char < 55296) {
748
+ if (next_char < 58) {
749
+ if (next_char < 48) {
750
+ break _L$6;
751
+ } else {
752
+ _tmp = 2;
753
+ continue _L$3;
754
+ }
755
+ } else {
756
+ if (next_char > 58) {
757
+ break _L$6;
758
+ } else {
759
+ _tmp = 3;
760
+ continue _L$3;
761
+ }
762
+ }
763
+ } else {
764
+ if (next_char > 56318) {
765
+ if (next_char < 57344) {
766
+ _tmp = 8;
767
+ continue _L$3;
768
+ } else {
769
+ if (next_char > 65535) {
770
+ break _L;
771
+ } else {
772
+ break _L$6;
773
+ }
774
+ }
775
+ } else {
776
+ _tmp = 7;
777
+ continue _L$3;
778
+ }
779
+ }
780
+ }
781
+ _tmp = 0;
782
+ continue _L$3;
783
+ } else {
784
+ break _L;
785
+ }
786
+ }
787
+ case 0: {
788
+ tag_1 = _cursor;
789
+ if (_cursor < _end) {
790
+ _L$6: {
791
+ const _p = _cursor;
792
+ const next_char = _data.charCodeAt(_p);
793
+ _cursor = _cursor + 1 | 0;
794
+ if (next_char < 55296) {
795
+ if (next_char < 58) {
796
+ break _L$6;
797
+ } else {
798
+ if (next_char > 58) {
799
+ break _L$6;
800
+ } else {
801
+ _tmp = 1;
802
+ continue _L$3;
803
+ }
804
+ }
805
+ } else {
806
+ if (next_char > 56318) {
807
+ if (next_char < 57344) {
808
+ _tmp = 8;
809
+ continue _L$3;
810
+ } else {
811
+ if (next_char > 65535) {
812
+ break _L;
813
+ } else {
814
+ break _L$6;
815
+ }
816
+ }
817
+ } else {
818
+ _tmp = 7;
819
+ continue _L$3;
820
+ }
821
+ }
822
+ }
823
+ _tmp = 0;
824
+ continue _L$3;
825
+ } else {
826
+ break _L;
827
+ }
828
+ }
829
+ case 8: {
830
+ if (_cursor < _end) {
831
+ const _p = _cursor;
832
+ const next_char = _data.charCodeAt(_p);
833
+ _cursor = _cursor + 1 | 0;
834
+ if (next_char < 56320) {
835
+ break _L;
836
+ } else {
837
+ if (next_char > 57343) {
838
+ break _L;
839
+ } else {
840
+ _tmp = 0;
841
+ continue _L$3;
842
+ }
843
+ }
844
+ } else {
845
+ break _L;
846
+ }
847
+ }
848
+ case 4: {
849
+ tag_1 = _cursor;
850
+ tag_4 = _cursor;
851
+ if (_cursor < _end) {
852
+ _L$6: {
853
+ const _p = _cursor;
854
+ const next_char = _data.charCodeAt(_p);
855
+ _cursor = _cursor + 1 | 0;
856
+ if (next_char < 55296) {
857
+ if (next_char < 58) {
858
+ if (next_char < 48) {
859
+ break _L$6;
860
+ } else {
861
+ _tmp = 4;
862
+ continue _L$3;
863
+ }
864
+ } else {
865
+ if (next_char > 58) {
866
+ break _L$6;
867
+ } else {
868
+ tag_1_2 = tag_1_1;
869
+ tag_1_1 = tag_1;
870
+ tag_1 = _cursor;
871
+ if (_cursor < _end) {
872
+ _L$7: {
873
+ const _p$2 = _cursor;
874
+ const next_char$2 = _data.charCodeAt(_p$2);
875
+ _cursor = _cursor + 1 | 0;
876
+ if (next_char$2 < 55296) {
877
+ if (next_char$2 < 58) {
878
+ if (next_char$2 < 48) {
879
+ break _L$7;
880
+ } else {
881
+ tag_1 = _cursor;
882
+ tag_2_1 = tag_2;
883
+ tag_2 = _cursor;
884
+ if (_cursor < _end) {
885
+ _L$8: {
886
+ const _p$3 = _cursor;
887
+ const next_char$3 = _data.charCodeAt(_p$3);
888
+ _cursor = _cursor + 1 | 0;
889
+ if (next_char$3 < 55296) {
890
+ if (next_char$3 < 58) {
891
+ if (next_char$3 < 48) {
892
+ break _L$8;
893
+ } else {
894
+ _tmp = 5;
895
+ continue _L$3;
896
+ }
897
+ } else {
898
+ if (next_char$3 > 58) {
899
+ break _L$8;
900
+ } else {
901
+ _tmp = 3;
902
+ continue _L$3;
903
+ }
904
+ }
905
+ } else {
906
+ if (next_char$3 > 56318) {
907
+ if (next_char$3 < 57344) {
908
+ _tmp = 8;
909
+ continue _L$3;
910
+ } else {
911
+ if (next_char$3 > 65535) {
912
+ break _L;
913
+ } else {
914
+ break _L$8;
915
+ }
916
+ }
917
+ } else {
918
+ _tmp = 7;
919
+ continue _L$3;
920
+ }
921
+ }
922
+ }
923
+ _tmp = 0;
924
+ continue _L$3;
925
+ } else {
926
+ break _L$5;
927
+ }
928
+ }
929
+ } else {
930
+ if (next_char$2 > 58) {
931
+ break _L$7;
932
+ } else {
933
+ _tmp = 1;
934
+ continue _L$3;
935
+ }
936
+ }
937
+ } else {
938
+ if (next_char$2 > 56318) {
939
+ if (next_char$2 < 57344) {
940
+ _tmp = 8;
941
+ continue _L$3;
942
+ } else {
943
+ if (next_char$2 > 65535) {
944
+ break _L;
945
+ } else {
946
+ break _L$7;
947
+ }
948
+ }
949
+ } else {
950
+ _tmp = 7;
951
+ continue _L$3;
952
+ }
953
+ }
954
+ }
955
+ _tmp = 0;
956
+ continue _L$3;
957
+ } else {
958
+ break _L;
959
+ }
960
+ }
961
+ }
962
+ } else {
963
+ if (next_char > 56318) {
964
+ if (next_char < 57344) {
965
+ _tmp = 8;
966
+ continue _L$3;
967
+ } else {
968
+ if (next_char > 65535) {
969
+ break _L;
970
+ } else {
971
+ break _L$6;
972
+ }
973
+ }
974
+ } else {
975
+ _tmp = 7;
976
+ continue _L$3;
977
+ }
978
+ }
979
+ }
980
+ _tmp = 0;
981
+ continue _L$3;
982
+ } else {
983
+ break _L;
984
+ }
985
+ }
986
+ case 5: {
987
+ tag_1 = _cursor;
988
+ tag_2 = _cursor;
989
+ if (_cursor < _end) {
990
+ _L$6: {
991
+ const _p = _cursor;
992
+ const next_char = _data.charCodeAt(_p);
993
+ _cursor = _cursor + 1 | 0;
994
+ if (next_char < 55296) {
995
+ if (next_char < 58) {
996
+ if (next_char < 48) {
997
+ break _L$6;
998
+ } else {
999
+ _tmp = 5;
1000
+ continue _L$3;
1001
+ }
1002
+ } else {
1003
+ if (next_char > 58) {
1004
+ break _L$6;
1005
+ } else {
1006
+ _tmp = 3;
1007
+ continue _L$3;
1008
+ }
1009
+ }
1010
+ } else {
1011
+ if (next_char > 56318) {
1012
+ if (next_char < 57344) {
1013
+ _tmp = 8;
1014
+ continue _L$3;
1015
+ } else {
1016
+ if (next_char > 65535) {
1017
+ break _L;
1018
+ } else {
1019
+ break _L$6;
1020
+ }
1021
+ }
1022
+ } else {
1023
+ _tmp = 7;
1024
+ continue _L$3;
1025
+ }
1026
+ }
1027
+ }
1028
+ _tmp = 0;
1029
+ continue _L$3;
1030
+ } else {
1031
+ break _L$5;
1032
+ }
1033
+ }
1034
+ case 6: {
1035
+ tag_1 = _cursor;
1036
+ tag_2 = _cursor;
1037
+ tag_3 = _cursor;
1038
+ if (_cursor < _end) {
1039
+ _L$6: {
1040
+ const _p = _cursor;
1041
+ const next_char = _data.charCodeAt(_p);
1042
+ _cursor = _cursor + 1 | 0;
1043
+ if (next_char < 59) {
1044
+ if (next_char < 46) {
1045
+ if (next_char < 45) {
1046
+ break _L$6;
1047
+ } else {
1048
+ break _L$4;
1049
+ }
1050
+ } else {
1051
+ if (next_char > 47) {
1052
+ if (next_char < 58) {
1053
+ _tmp = 6;
1054
+ continue _L$3;
1055
+ } else {
1056
+ _tmp = 3;
1057
+ continue _L$3;
1058
+ }
1059
+ } else {
1060
+ break _L$6;
1061
+ }
1062
+ }
1063
+ } else {
1064
+ if (next_char > 55295) {
1065
+ if (next_char < 57344) {
1066
+ if (next_char < 56319) {
1067
+ _tmp = 7;
1068
+ continue _L$3;
1069
+ } else {
1070
+ _tmp = 8;
1071
+ continue _L$3;
1072
+ }
1073
+ } else {
1074
+ if (next_char > 65535) {
1075
+ break _L;
1076
+ } else {
1077
+ break _L$6;
1078
+ }
1079
+ }
1080
+ } else {
1081
+ break _L$6;
1082
+ }
1083
+ }
1084
+ }
1085
+ _tmp = 0;
1086
+ continue _L$3;
1087
+ } else {
1088
+ break _L;
1089
+ }
1090
+ }
1091
+ case 7: {
1092
+ if (_cursor < _end) {
1093
+ const _p = _cursor;
1094
+ const next_char = _data.charCodeAt(_p);
1095
+ _cursor = _cursor + 1 | 0;
1096
+ if (next_char < 56320) {
1097
+ break _L;
1098
+ } else {
1099
+ if (next_char > 65535) {
1100
+ break _L;
1101
+ } else {
1102
+ _tmp = 0;
1103
+ continue _L$3;
1104
+ }
1105
+ }
1106
+ } else {
1107
+ break _L;
1108
+ }
1109
+ }
1110
+ case 1: {
1111
+ tag_1_1 = tag_1;
1112
+ tag_1 = _cursor;
1113
+ if (_cursor < _end) {
1114
+ _L$6: {
1115
+ const _p = _cursor;
1116
+ const next_char = _data.charCodeAt(_p);
1117
+ _cursor = _cursor + 1 | 0;
1118
+ if (next_char < 55296) {
1119
+ if (next_char < 58) {
1120
+ if (next_char < 48) {
1121
+ break _L$6;
1122
+ } else {
1123
+ _tmp = 2;
1124
+ continue _L$3;
1125
+ }
1126
+ } else {
1127
+ if (next_char > 58) {
1128
+ break _L$6;
1129
+ } else {
1130
+ _tmp = 1;
1131
+ continue _L$3;
1132
+ }
1133
+ }
1134
+ } else {
1135
+ if (next_char > 56318) {
1136
+ if (next_char < 57344) {
1137
+ _tmp = 8;
1138
+ continue _L$3;
1139
+ } else {
1140
+ if (next_char > 65535) {
1141
+ break _L;
1142
+ } else {
1143
+ break _L$6;
1144
+ }
1145
+ }
1146
+ } else {
1147
+ _tmp = 7;
1148
+ continue _L$3;
1149
+ }
1150
+ }
1151
+ }
1152
+ _tmp = 0;
1153
+ continue _L$3;
1154
+ } else {
1155
+ break _L;
1156
+ }
1157
+ }
1158
+ default: {
1159
+ break _L;
1160
+ }
1161
+ }
1162
+ }
1163
+ tag_1 = tag_1_2;
1164
+ tag_2 = tag_2_1;
1165
+ match_tag_saver_0 = tag_0;
1166
+ match_tag_saver_1 = tag_1;
1167
+ match_tag_saver_2 = tag_2;
1168
+ match_tag_saver_3 = tag_3;
1169
+ match_tag_saver_4 = tag_4;
1170
+ accept_state = 0;
1171
+ match_end = _cursor;
1172
+ break _L;
1173
+ }
1174
+ tag_1_1 = tag_1_2;
1175
+ tag_1 = _cursor;
1176
+ tag_2 = tag_2_1;
1177
+ if (_cursor < _end) {
1178
+ _L$5: {
1179
+ const _p = _cursor;
1180
+ const next_char = _data.charCodeAt(_p);
1181
+ _cursor = _cursor + 1 | 0;
1182
+ if (next_char < 55296) {
1183
+ if (next_char < 58) {
1184
+ if (next_char < 48) {
1185
+ break _L$5;
1186
+ } else {
1187
+ _tmp = 4;
1188
+ continue;
1189
+ }
1190
+ } else {
1191
+ if (next_char > 58) {
1192
+ break _L$5;
1193
+ } else {
1194
+ _tmp = 1;
1195
+ continue;
1196
+ }
1197
+ }
1198
+ } else {
1199
+ if (next_char > 56318) {
1200
+ if (next_char < 57344) {
1201
+ _tmp = 8;
1202
+ continue;
1203
+ } else {
1204
+ if (next_char > 65535) {
1205
+ break _L;
1206
+ } else {
1207
+ break _L$5;
1208
+ }
1209
+ }
1210
+ } else {
1211
+ _tmp = 7;
1212
+ continue;
1213
+ }
1214
+ }
1215
+ }
1216
+ _tmp = 0;
1217
+ continue;
1218
+ } else {
1219
+ break _L;
1220
+ }
1221
+ }
1222
+ }
1223
+ if (accept_state === 0) {
1224
+ let start_line;
1225
+ let _try_err;
1226
+ _L$2: {
1227
+ _L$3: {
1228
+ const _bind$4 = moonbitlang$core$string$$String$sub(_data, match_tag_saver_1 + 1 | 0, match_tag_saver_2);
1229
+ if (_bind$4.$tag === 1) {
1230
+ const _ok = _bind$4;
1231
+ start_line = _ok._0;
1232
+ } else {
1233
+ const _err = _bind$4;
1234
+ const _tmp = _err._0;
1235
+ _try_err = _tmp;
1236
+ break _L$3;
1237
+ }
1238
+ break _L$2;
1239
+ }
1240
+ start_line = $panic();
1241
+ }
1242
+ let start_column;
1243
+ let _try_err$2;
1244
+ _L$3: {
1245
+ _L$4: {
1246
+ const _bind$4 = moonbitlang$core$string$$String$sub(_data, match_tag_saver_2 + 1 | 0, match_tag_saver_3);
1247
+ if (_bind$4.$tag === 1) {
1248
+ const _ok = _bind$4;
1249
+ start_column = _ok._0;
1250
+ } else {
1251
+ const _err = _bind$4;
1252
+ const _tmp = _err._0;
1253
+ _try_err$2 = _tmp;
1254
+ break _L$4;
1255
+ }
1256
+ break _L$3;
1257
+ }
1258
+ start_column = $panic();
1259
+ }
1260
+ let pkg;
1261
+ let _try_err$3;
1262
+ _L$4: {
1263
+ _L$5: {
1264
+ const _bind$4 = moonbitlang$core$string$$String$sub(_data, _start + 1 | 0, match_tag_saver_0);
1265
+ if (_bind$4.$tag === 1) {
1266
+ const _ok = _bind$4;
1267
+ pkg = _ok._0;
1268
+ } else {
1269
+ const _err = _bind$4;
1270
+ const _tmp = _err._0;
1271
+ _try_err$3 = _tmp;
1272
+ break _L$5;
1273
+ }
1274
+ break _L$4;
1275
+ }
1276
+ pkg = $panic();
1277
+ }
1278
+ let filename;
1279
+ let _try_err$4;
1280
+ _L$5: {
1281
+ _L$6: {
1282
+ const _bind$4 = moonbitlang$core$string$$String$sub(_data, match_tag_saver_0 + 1 | 0, match_tag_saver_1);
1283
+ if (_bind$4.$tag === 1) {
1284
+ const _ok = _bind$4;
1285
+ filename = _ok._0;
1286
+ } else {
1287
+ const _err = _bind$4;
1288
+ const _tmp = _err._0;
1289
+ _try_err$4 = _tmp;
1290
+ break _L$6;
1291
+ }
1292
+ break _L$5;
1293
+ }
1294
+ filename = $panic();
1295
+ }
1296
+ let end_line;
1297
+ let _try_err$5;
1298
+ _L$6: {
1299
+ _L$7: {
1300
+ const _bind$4 = moonbitlang$core$string$$String$sub(_data, match_tag_saver_3 + 1 | 0, match_tag_saver_4);
1301
+ if (_bind$4.$tag === 1) {
1302
+ const _ok = _bind$4;
1303
+ end_line = _ok._0;
1304
+ } else {
1305
+ const _err = _bind$4;
1306
+ const _tmp = _err._0;
1307
+ _try_err$5 = _tmp;
1308
+ break _L$7;
1309
+ }
1310
+ break _L$6;
1311
+ }
1312
+ end_line = $panic();
1313
+ }
1314
+ let end_column;
1315
+ let _try_err$6;
1316
+ _L$7: {
1317
+ _L$8: {
1318
+ const _bind$4 = moonbitlang$core$string$$String$sub(_data, match_tag_saver_4 + 1 | 0, match_end);
1319
+ if (_bind$4.$tag === 1) {
1320
+ const _ok = _bind$4;
1321
+ end_column = _ok._0;
1322
+ } else {
1323
+ const _err = _bind$4;
1324
+ const _tmp = _err._0;
1325
+ _try_err$6 = _tmp;
1326
+ break _L$8;
1327
+ }
1328
+ break _L$7;
1329
+ }
1330
+ end_column = $panic();
1331
+ }
1332
+ return { pkg: pkg, filename: filename, start_line: start_line, start_column: start_column, end_line: end_line, end_column: end_column };
1333
+ } else {
1334
+ return $panic();
1335
+ }
1336
+ }
1337
+ function moonbitlang$core$builtin$$Logger$write_string$0$(self, str) {
1338
+ const _bind$3 = self;
1339
+ _bind$3.val = `${_bind$3.val}${str}`;
1340
+ }
1341
+ function moonbitlang$core$builtin$$Hasher$combine_int(self, value) {
1342
+ moonbitlang$core$builtin$$Hasher$combine_uint(self, value);
1343
+ }
1344
+ function moonbitlang$core$builtin$$MyInt64$from_int(value) {
1345
+ return { hi: value >> 31 & -1, lo: value | 0 };
1346
+ }
1347
+ function moonbitlang$core$int$$Int$to_int64(self) {
1348
+ return moonbitlang$core$builtin$$MyInt64$from_int(self);
1349
+ }
1350
+ function moonbitlang$core$builtin$$Hasher$combine$11$(self, value) {
1351
+ moonbitlang$core$builtin$$Hash$hash_combine$11$(value, self);
1352
+ }
1353
+ function moonbitlang$core$builtin$$Hasher$combine$10$(self, value) {
1354
+ moonbitlang$core$builtin$$Hash$hash_combine$10$(value, self);
1355
+ }
1356
+ function moonbitlang$core$builtin$$Eq$not_equal$16$(x, y) {
1357
+ return !moonbitlang$core$builtin$$Eq$equal$5$(x, y);
1358
+ }
1359
+ function moonbitlang$core$builtin$$Compare$op_lt$15$(x, y) {
1360
+ return $compare_int(x, y) < 0;
1361
+ }
1362
+ function moonbitlang$core$builtin$$Compare$op_lt$17$(x, y) {
1363
+ return moonbitlang$core$builtin$$Compare$compare$18$(x, y) < 0;
1364
+ }
1365
+ function moonbitlang$core$builtin$$Compare$op_gt$17$(x, y) {
1366
+ return moonbitlang$core$builtin$$Compare$compare$18$(x, y) > 0;
1367
+ }
1368
+ function moonbitlang$core$builtin$$Compare$op_le$15$(x, y) {
1369
+ return $compare_int(x, y) <= 0;
1370
+ }
1371
+ function moonbitlang$core$builtin$$Compare$op_le$17$(x, y) {
1372
+ return moonbitlang$core$builtin$$Compare$compare$18$(x, y) <= 0;
1373
+ }
1374
+ function moonbitlang$core$builtin$$Compare$op_ge$15$(x, y) {
1375
+ return $compare_int(x, y) >= 0;
1376
+ }
1377
+ function moonbitlang$core$builtin$$Compare$op_ge$17$(x, y) {
1378
+ return moonbitlang$core$builtin$$Compare$compare$18$(x, y) >= 0;
1379
+ }
1380
+ function moonbitlang$core$builtin$$Hasher$avalanche(self) {
1381
+ let acc = self.acc;
1382
+ acc = acc ^ (acc >>> 15 | 0);
1383
+ acc = Math.imul(acc, -2048144777) | 0;
1384
+ acc = acc ^ (acc >>> 13 | 0);
1385
+ acc = Math.imul(acc, -1028477379) | 0;
1386
+ acc = acc ^ (acc >>> 16 | 0);
1387
+ return acc;
1388
+ }
1389
+ function moonbitlang$core$builtin$$Hasher$finalize(self) {
1390
+ return moonbitlang$core$builtin$$Hasher$avalanche(self);
1391
+ }
1392
+ function moonbitlang$core$builtin$$Hasher$new$46$inner(seed) {
1393
+ return { acc: (seed >>> 0) + (374761393 >>> 0) | 0 };
1394
+ }
1395
+ function moonbitlang$core$builtin$$Hasher$new(seed$46$opt) {
1396
+ let seed;
1397
+ if (seed$46$opt === undefined) {
1398
+ seed = moonbitlang$core$builtin$$seed;
1399
+ } else {
1400
+ const _Some = seed$46$opt;
1401
+ seed = _Some;
1402
+ }
1403
+ return moonbitlang$core$builtin$$Hasher$new$46$inner(seed);
1404
+ }
1405
+ function moonbitlang$core$builtin$$Hash$hash$19$(self) {
1406
+ const _self = moonbitlang$core$builtin$$Hasher$new(undefined);
1407
+ moonbitlang$core$builtin$$Hasher$combine$11$(_self, self);
1408
+ return moonbitlang$core$builtin$$Hasher$finalize(_self);
1409
+ }
1410
+ function moonbitlang$core$builtin$$Hash$hash$20$(self) {
1411
+ const _self = moonbitlang$core$builtin$$Hasher$new(undefined);
1412
+ moonbitlang$core$builtin$$Hasher$combine$10$(_self, self);
1413
+ return moonbitlang$core$builtin$$Hasher$finalize(_self);
1414
+ }
1415
+ function moonbitlang$core$string$$String$sub$46$inner(self, start, end) {
1416
+ const len = self.length;
1417
+ let end$2;
1418
+ if (end === undefined) {
1419
+ end$2 = len;
1420
+ } else {
1421
+ const _Some = end;
1422
+ const _end = _Some;
1423
+ end$2 = _end < 0 ? len + _end | 0 : _end;
1424
+ }
1425
+ const start$2 = start < 0 ? len + start | 0 : start;
1426
+ if (start$2 >= 0 && (start$2 <= end$2 && end$2 <= len)) {
1427
+ if (start$2 < len && moonbitlang$core$uint16$$UInt16$is_trailing_surrogate(self.charCodeAt(start$2))) {
1428
+ return new Result$Err$0$(Error$moonbitlang$47$core$47$builtin$46$CreatingViewError$46$InvalidIndex);
1429
+ }
1430
+ if (end$2 < len && moonbitlang$core$uint16$$UInt16$is_trailing_surrogate(self.charCodeAt(end$2))) {
1431
+ return new Result$Err$0$(Error$moonbitlang$47$core$47$builtin$46$CreatingViewError$46$InvalidIndex);
1432
+ }
1433
+ return new Result$Ok$0$({ str: self, start: start$2, end: end$2 });
1434
+ } else {
1435
+ return new Result$Err$0$(Error$moonbitlang$47$core$47$builtin$46$CreatingViewError$46$IndexOutOfBounds);
1436
+ }
1437
+ }
1438
+ function moonbitlang$core$string$$String$sub(self, start$46$opt, end) {
1439
+ let start;
1440
+ if (start$46$opt === undefined) {
1441
+ start = 0;
1442
+ } else {
1443
+ const _Some = start$46$opt;
1444
+ start = _Some;
1445
+ }
1446
+ return moonbitlang$core$string$$String$sub$46$inner(self, start, end);
1447
+ }
1448
+ function moonbitlang$core$builtin$$Logger$write_substring$1$(self, value, start, len) {
1449
+ let _tmp;
1450
+ let _try_err;
1451
+ _L: {
1452
+ _L$2: {
1453
+ const _bind$3 = moonbitlang$core$string$$String$sub$46$inner(value, start, start + len | 0);
1454
+ if (_bind$3.$tag === 1) {
1455
+ const _ok = _bind$3;
1456
+ _tmp = _ok._0;
1457
+ } else {
1458
+ const _err = _bind$3;
1459
+ const _tmp$2 = _err._0;
1460
+ _try_err = _tmp$2;
1461
+ break _L$2;
1462
+ }
1463
+ break _L;
1464
+ }
1465
+ _tmp = $panic();
1466
+ }
1467
+ moonbitlang$core$builtin$$Logger$write_view$0$(self, _tmp);
1468
+ }
1469
+ function moonbitlang$core$builtin$$Show$to_string$21$(self) {
1470
+ const logger = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
1471
+ moonbitlang$core$builtin$$Show$output$22$(self, { self: logger, method_table: $$$64$moonbitlang$47$core$47$builtin$46$StringBuilder$36$as$36$64$moonbitlang$47$core$47$builtin$46$Logger });
1472
+ return logger.val;
1473
+ }
1474
+ function moonbitlang$core$builtin$$Show$to_string$14$(self) {
1475
+ const logger = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
1476
+ moonbitlang$core$builtin$$Show$output$23$(self, { self: logger, method_table: $$$64$moonbitlang$47$core$47$builtin$46$StringBuilder$36$as$36$64$moonbitlang$47$core$47$builtin$46$Logger });
1477
+ return logger.val;
1478
+ }
1479
+ function moonbitlang$core$builtin$$Show$to_string$19$(self) {
1480
+ const logger = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
1481
+ moonbitlang$core$builtin$$Show$output$11$(self, { self: logger, method_table: $$$64$moonbitlang$47$core$47$builtin$46$StringBuilder$36$as$36$64$moonbitlang$47$core$47$builtin$46$Logger });
1482
+ return logger.val;
1483
+ }
1484
+ function moonbitlang$core$int$$Int$to_string$46$inner(self, radix) {
1485
+ return moonbitlang$core$builtin$$int_to_string_js(self, radix);
1486
+ }
1487
+ function moonbitlang$core$string$$StringView$view$46$inner(self, start_offset, end_offset) {
1488
+ let end_offset$2;
1489
+ if (end_offset === undefined) {
1490
+ end_offset$2 = self.end - self.start | 0;
1491
+ } else {
1492
+ const _Some = end_offset;
1493
+ end_offset$2 = _Some;
1494
+ }
1495
+ return start_offset >= 0 && (start_offset <= end_offset$2 && end_offset$2 <= (self.end - self.start | 0)) ? { str: self.str, start: self.start + start_offset | 0, end: self.start + end_offset$2 | 0 } : moonbitlang$core$builtin$$abort$5$("Invalid index for View", "@moonbitlang/core/builtin:stringview.mbt:113:5-113:36");
1496
+ }
1497
+ function moonbitlang$core$builtin$$to_hex$46$to_hex_digit$124$3743(i) {
1498
+ if (i < 10) {
1499
+ const _p = 48;
1500
+ const _p$2 = (i + _p | 0) & 255;
1501
+ return _p$2;
1502
+ } else {
1503
+ const _p = 97;
1504
+ const _p$2 = (i + _p | 0) & 255;
1505
+ const _p$3 = 10;
1506
+ const _p$4 = (_p$2 - _p$3 | 0) & 255;
1507
+ return _p$4;
1508
+ }
1509
+ }
1510
+ function moonbitlang$core$byte$$Byte$to_hex(b) {
1511
+ const _self = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
1512
+ const _p = 16;
1513
+ moonbitlang$core$builtin$$Logger$write_char$0$(_self, moonbitlang$core$builtin$$to_hex$46$to_hex_digit$124$3743((b / _p | 0) & 255));
1514
+ const _p$2 = 16;
1515
+ moonbitlang$core$builtin$$Logger$write_char$0$(_self, moonbitlang$core$builtin$$to_hex$46$to_hex_digit$124$3743((b % _p$2 | 0) & 255));
1516
+ const _p$3 = _self;
1517
+ return _p$3.val;
1518
+ }
1519
+ function moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i) {
1520
+ const logger = _env._1;
1521
+ const self = _env._0;
1522
+ if (i > seg) {
1523
+ logger.method_table.method_1(logger.self, self, seg, i - seg | 0);
1524
+ return;
1525
+ } else {
1526
+ return;
1527
+ }
1528
+ }
1529
+ function moonbitlang$core$builtin$$Show$output$10$(self, logger) {
1530
+ logger.method_table.method_3(logger.self, 34);
1531
+ const _env = { _0: self, _1: logger };
1532
+ const len = self.length;
1533
+ let _tmp = 0;
1534
+ let _tmp$2 = 0;
1535
+ _L: while (true) {
1536
+ const i = _tmp;
1537
+ const seg = _tmp$2;
1538
+ if (i >= len) {
1539
+ moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i);
1540
+ break;
1541
+ }
1542
+ const code = self.charCodeAt(i);
1543
+ let c;
1544
+ _L$2: {
1545
+ switch (code) {
1546
+ case 34: {
1547
+ c = code;
1548
+ break _L$2;
1549
+ }
1550
+ case 92: {
1551
+ c = code;
1552
+ break _L$2;
1553
+ }
1554
+ case 10: {
1555
+ moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i);
1556
+ logger.method_table.method_0(logger.self, "\\n");
1557
+ _tmp = i + 1 | 0;
1558
+ _tmp$2 = i + 1 | 0;
1559
+ continue _L;
1560
+ }
1561
+ case 13: {
1562
+ moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i);
1563
+ logger.method_table.method_0(logger.self, "\\r");
1564
+ _tmp = i + 1 | 0;
1565
+ _tmp$2 = i + 1 | 0;
1566
+ continue _L;
1567
+ }
1568
+ case 8: {
1569
+ moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i);
1570
+ logger.method_table.method_0(logger.self, "\\b");
1571
+ _tmp = i + 1 | 0;
1572
+ _tmp$2 = i + 1 | 0;
1573
+ continue _L;
1574
+ }
1575
+ case 9: {
1576
+ moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i);
1577
+ logger.method_table.method_0(logger.self, "\\t");
1578
+ _tmp = i + 1 | 0;
1579
+ _tmp$2 = i + 1 | 0;
1580
+ continue _L;
1581
+ }
1582
+ default: {
1583
+ if (moonbitlang$core$builtin$$Compare$op_lt$15$(code, 32)) {
1584
+ moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i);
1585
+ logger.method_table.method_0(logger.self, "\\u{");
1586
+ logger.method_table.method_0(logger.self, moonbitlang$core$byte$$Byte$to_hex(code & 255));
1587
+ logger.method_table.method_3(logger.self, 125);
1588
+ _tmp = i + 1 | 0;
1589
+ _tmp$2 = i + 1 | 0;
1590
+ continue _L;
1591
+ } else {
1592
+ _tmp = i + 1 | 0;
1593
+ continue _L;
1594
+ }
1595
+ }
1596
+ }
1597
+ }
1598
+ moonbitlang$core$builtin$$output$46$flush_segment$124$3733(_env, seg, i);
1599
+ logger.method_table.method_3(logger.self, 92);
1600
+ logger.method_table.method_3(logger.self, c);
1601
+ _tmp = i + 1 | 0;
1602
+ _tmp$2 = i + 1 | 0;
1603
+ continue;
1604
+ }
1605
+ logger.method_table.method_3(logger.self, 34);
1606
+ }
1607
+ function moonbitlang$core$builtin$$Show$to_string$5$(self) {
1608
+ return self.str.substring(self.start, self.end);
1609
+ }
1610
+ function moonbitlang$core$string$$StringView$iter(self) {
1611
+ const start = self.start;
1612
+ const end = self.end;
1613
+ const index = { val: start };
1614
+ const _p = () => {
1615
+ if (index.val < end) {
1616
+ const _tmp = self.str;
1617
+ const _tmp$2 = index.val;
1618
+ const c1 = _tmp.charCodeAt(_tmp$2);
1619
+ if (moonbitlang$core$uint16$$UInt16$is_leading_surrogate(c1) && (index.val + 1 | 0) < self.end) {
1620
+ const _tmp$3 = self.str;
1621
+ const _tmp$4 = index.val + 1 | 0;
1622
+ const c2 = _tmp$3.charCodeAt(_tmp$4);
1623
+ if (moonbitlang$core$uint16$$UInt16$is_trailing_surrogate(c2)) {
1624
+ index.val = index.val + 2 | 0;
1625
+ return moonbitlang$core$builtin$$code_point_of_surrogate_pair(c1, c2);
1626
+ }
1627
+ }
1628
+ index.val = index.val + 1 | 0;
1629
+ return c1;
1630
+ } else {
1631
+ return -1;
1632
+ }
1633
+ };
1634
+ return _p;
1635
+ }
1636
+ function moonbitlang$core$builtin$$Iter2$new$24$(f) {
1637
+ return f;
1638
+ }
1639
+ function moonbitlang$core$string$$StringView$iter2(self) {
1640
+ const start = self.start;
1641
+ const end = self.end;
1642
+ const index = { val: start };
1643
+ const char_index = { val: 0 };
1644
+ return moonbitlang$core$builtin$$Iter2$new$24$
1645
+
1646
+
1647
+ export const init_mhx = f4ah6o$mhx$core$$init_mhx;
1648
+ export const process = f4ah6o$mhx$core$$process;
1649
+ export const handle_event = f4ah6o$mhx$core$$handle_event;
1650
+ export const get_instance = f4ah6o$mhx$core$$get_instance;
1651
+ export const version = f4ah6o$mhx$$version;
1652
+ export const on_fetch_success = f4ah6o$mhx$network$$on_fetch_success;
1653
+ export const on_fetch_error = f4ah6o$mhx$network$$on_fetch_error;
1654
+ export const on_mutation_observed = f4ah6o$mhx$core$$on_mutation_observed;