@loro-dev/flock 2.1.0 → 2.1.1

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.
@@ -1087,7 +1087,7 @@ function moonbitlang$core$bytes$$BytesView$at(self, index) {
1087
1087
  $bound_check(_tmp, _tmp$2);
1088
1088
  return _tmp[_tmp$2];
1089
1089
  } else {
1090
- return moonbitlang$core$abort$$abort$13$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
1090
+ return moonbitlang$core$abort$$abort$14$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
1091
1091
  }
1092
1092
  }
1093
1093
  function moonbitlang$core$bytes$$Bytes$sub$46$inner(self, start, end) {
@@ -1156,10 +1156,10 @@ function moonbitlang$core$bytes$$BytesView$iterator(self) {
1156
1156
  return _p;
1157
1157
  }
1158
1158
  function moonbitlang$core$bytes$$Bytes$from_array(arr) {
1159
- return moonbitlang$core$bytes$$Bytes$makei$20$(arr.end - arr.start | 0, (i) => moonbitlang$core$array$$ArrayView$at$13$(arr, i));
1159
+ return moonbitlang$core$bytes$$Bytes$makei$20$(arr.end - arr.start | 0, (i) => moonbitlang$core$array$$ArrayView$at$14$(arr, i));
1160
1160
  }
1161
1161
  function moonbitlang$core$bytes$$Bytes$from_iter(iter) {
1162
- const _bind = moonbitlang$core$builtin$$Iter$collect$13$(iter);
1162
+ const _bind = moonbitlang$core$builtin$$Iter$collect$14$(iter);
1163
1163
  return moonbitlang$core$bytes$$Bytes$from_array({ buf: _bind, start: 0, end: _bind.length });
1164
1164
  }
1165
1165
  function moonbitlang$core$builtin$$Hash$hash_combine$2$(self, hasher) {
@@ -1478,7 +1478,7 @@ function moonbitlang$core$strconv$$range_err$22$() {
1478
1478
  function moonbitlang$core$strconv$$range_err$3$() {
1479
1479
  return new Result$Err$2$(new Error$moonbitlang$47$core$47$strconv$46$StrConvError$46$StrConvError(moonbitlang$core$strconv$$range_err_str));
1480
1480
  }
1481
- function moonbitlang$core$strconv$$syntax_err$12$() {
1481
+ function moonbitlang$core$strconv$$syntax_err$13$() {
1482
1482
  return new Result$Err$3$(new Error$moonbitlang$47$core$47$strconv$46$StrConvError$46$StrConvError(moonbitlang$core$strconv$$syntax_err_str));
1483
1483
  }
1484
1484
  function moonbitlang$core$strconv$$syntax_err$22$() {
@@ -1698,7 +1698,7 @@ function moonbitlang$core$strconv$$parse_int64$46$inner(str, base) {
1698
1698
  if (c$2 >= 65 && c$2 <= 90) {
1699
1699
  d = c$2 + -55 | 0;
1700
1700
  } else {
1701
- const _bind$4 = moonbitlang$core$strconv$$syntax_err$12$();
1701
+ const _bind$4 = moonbitlang$core$strconv$$syntax_err$13$();
1702
1702
  if (_bind$4.$tag === 1) {
1703
1703
  const _ok = _bind$4;
1704
1704
  d = _ok._0;
@@ -4204,7 +4204,7 @@ function moonbitlang$core$json$$offset_to_position(input, offset) {
4204
4204
  }
4205
4205
  return { line: line, column: column };
4206
4206
  }
4207
- function moonbitlang$core$json$$ParseContext$invalid_char$46$inner$14$(ctx, shift) {
4207
+ function moonbitlang$core$json$$ParseContext$invalid_char$46$inner$12$(ctx, shift) {
4208
4208
  const offset = ctx.offset + shift | 0;
4209
4209
  const _p = moonbitlang$core$string$$StringView$get_char(ctx.input, offset);
4210
4210
  const _p$2 = 65533;
@@ -4228,7 +4228,7 @@ function moonbitlang$core$json$$ParseContext$invalid_char$46$inner$30$(ctx, shif
4228
4228
  const _p$2 = 65533;
4229
4229
  return new Result$Err$12$(new Error$moonbitlang$47$core$47$json$46$ParseError$46$InvalidChar(moonbitlang$core$json$$offset_to_position(ctx.input, offset), _p === -1 ? _p$2 : _p));
4230
4230
  }
4231
- function moonbitlang$core$builtin$$Show$output$14$(self, logger) {
4231
+ function moonbitlang$core$builtin$$Show$output$12$(self, logger) {
4232
4232
  switch (self.$tag) {
4233
4233
  case 0: {
4234
4234
  logger.method_0(logger.self, "Null");
@@ -5281,7 +5281,7 @@ function moonbitlang$core$json$$ParseContext$parse_value2(ctx, tok) {
5281
5281
  }
5282
5282
  }
5283
5283
  }
5284
- return new Result$Ok$9$(moonbitlang$core$abort$$abort$14$("unreachable"));
5284
+ return new Result$Ok$9$(moonbitlang$core$abort$$abort$12$("unreachable"));
5285
5285
  }
5286
5286
  function moonbitlang$core$json$$ParseContext$parse_array(ctx) {
5287
5287
  if (ctx.remaining_available_depth <= 0) {
@@ -5314,7 +5314,7 @@ function moonbitlang$core$json$$ParseContext$parse_array(ctx) {
5314
5314
  } else {
5315
5315
  return _bind$2;
5316
5316
  }
5317
- moonbitlang$core$array$$Array$push$14$(vec, _tmp$4);
5317
+ moonbitlang$core$array$$Array$push$12$(vec, _tmp$4);
5318
5318
  const _bind$3 = moonbitlang$core$json$$ParseContext$lex_after_array_value(ctx);
5319
5319
  let tok2;
5320
5320
  if (_bind$3.$tag === 1) {
@@ -5340,7 +5340,7 @@ function moonbitlang$core$json$$ParseContext$parse_array(ctx) {
5340
5340
  break _L;
5341
5341
  }
5342
5342
  default: {
5343
- _tmp = moonbitlang$core$abort$$abort$14$("unreachable");
5343
+ _tmp = moonbitlang$core$abort$$abort$12$("unreachable");
5344
5344
  break _L;
5345
5345
  }
5346
5346
  }
@@ -5416,13 +5416,13 @@ function moonbitlang$core$json$$ParseContext$parse_object(ctx) {
5416
5416
  break _L;
5417
5417
  }
5418
5418
  default: {
5419
- _tmp = moonbitlang$core$abort$$abort$14$("unreachable");
5419
+ _tmp = moonbitlang$core$abort$$abort$12$("unreachable");
5420
5420
  break _L;
5421
5421
  }
5422
5422
  }
5423
5423
  }
5424
5424
  default: {
5425
- _tmp = moonbitlang$core$abort$$abort$14$("unreachable");
5425
+ _tmp = moonbitlang$core$abort$$abort$12$("unreachable");
5426
5426
  break _L;
5427
5427
  }
5428
5428
  }
@@ -5440,7 +5440,7 @@ function moonbitlang$core$json$$parse$46$inner(input, max_nesting_depth) {
5440
5440
  return _bind;
5441
5441
  }
5442
5442
  moonbitlang$core$json$$ParseContext$lex_skip_whitespace(ctx);
5443
- return ctx.offset >= ctx.end_offset ? new Result$Ok$9$(val) : moonbitlang$core$json$$ParseContext$invalid_char$46$inner$14$(ctx, 0);
5443
+ return ctx.offset >= ctx.end_offset ? new Result$Ok$9$(val) : moonbitlang$core$json$$ParseContext$invalid_char$46$inner$12$(ctx, 0);
5444
5444
  }
5445
5445
  function moonbitlang$core$json$$escape(str, escape_slash) {
5446
5446
  const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(str.length);
@@ -5560,7 +5560,7 @@ function moonbitlang$core$json$$Json$stringify$46$inner(self, escape_slash, inde
5560
5560
  const _arr = _Array._0;
5561
5561
  const _i = _Array._1;
5562
5562
  if (_i < _arr.length) {
5563
- const element = moonbitlang$core$array$$Array$at$14$(_arr, _i);
5563
+ const element = moonbitlang$core$array$$Array$at$12$(_arr, _i);
5564
5564
  _Array._1 = _i + 1 | 0;
5565
5565
  if (_i > 0) {
5566
5566
  moonbitlang$core$builtin$$Logger$write_char$35$(buf, 44);
@@ -5768,10 +5768,10 @@ function moonbitlang$core$array$$ArrayView$join$7$(self, separator) {
5768
5768
  return buf.val;
5769
5769
  }
5770
5770
  }
5771
- function moonbitlang$core$array$$FixedArray$copy$13$(self) {
5771
+ function moonbitlang$core$array$$FixedArray$copy$14$(self) {
5772
5772
  return moonbitlang$core$array$$JSArray$copy(self);
5773
5773
  }
5774
- function moonbitlang$core$array$$Array$copy$14$(self) {
5774
+ function moonbitlang$core$array$$Array$copy$12$(self) {
5775
5775
  return moonbitlang$core$array$$JSArray$copy(self);
5776
5776
  }
5777
5777
  function moonbitlang$core$array$$Array$push_iter$41$(self, iter) {
@@ -5850,7 +5850,7 @@ function moonbitlang$core$double$internal$ryu$$pow5Factor(value) {
5850
5850
  break;
5851
5851
  }
5852
5852
  }
5853
- return moonbitlang$core$abort$$abort$12$(`IllegalArgumentException ${moonbitlang$core$builtin$$Show$to_string$28$(value$2)}`);
5853
+ return moonbitlang$core$abort$$abort$13$(`IllegalArgumentException ${moonbitlang$core$builtin$$Show$to_string$28$(value$2)}`);
5854
5854
  }
5855
5855
  function moonbitlang$core$double$internal$ryu$$multipleOfPowerOf5(value, p) {
5856
5856
  return moonbitlang$core$double$internal$ryu$$pow5Factor(value) >= p;
@@ -6441,7 +6441,7 @@ function moonbitlang$core$buffer$$Buffer$grow_if_necessary(self, required) {
6441
6441
  }
6442
6442
  if (enough_space !== self.data.length) {
6443
6443
  const new_data = $makebytes(enough_space, 0);
6444
- moonbitlang$core$array$$FixedArray$unsafe_blit$13$(new_data, 0, self.data, 0, self.len);
6444
+ moonbitlang$core$array$$FixedArray$unsafe_blit$14$(new_data, 0, self.data, 0, self.len);
6445
6445
  self.data = new_data;
6446
6446
  return;
6447
6447
  } else {
@@ -6457,7 +6457,7 @@ function moonbitlang$core$buffer$$Buffer$write_byte(self, value) {
6457
6457
  self.len = self.len + 1 | 0;
6458
6458
  }
6459
6459
  function moonbitlang$core$buffer$$Buffer$contents(self) {
6460
- return moonbitlang$core$bytes$$Bytes$from_array(moonbitlang$core$array$$FixedArray$sub$46$inner$13$(self.data, 0, self.len));
6460
+ return moonbitlang$core$bytes$$Bytes$from_array(moonbitlang$core$array$$FixedArray$sub$46$inner$14$(self.data, 0, self.len));
6461
6461
  }
6462
6462
  function moonbitlang$core$buffer$$new$46$inner(size_hint) {
6463
6463
  const initial = size_hint < 1 ? 1 : size_hint;
@@ -6478,10 +6478,10 @@ function moonbitlang$core$builtin$$Logger$write_char$43$(self, value) {
6478
6478
  function moonbitlang$core$builtin$$Logger$write_object$7$(self, obj) {
6479
6479
  moonbitlang$core$builtin$$Show$output$7$(obj, self);
6480
6480
  }
6481
- function moonbitlang$core$builtin$$Logger$write_object$14$(self, obj) {
6482
- moonbitlang$core$builtin$$Show$output$14$(obj, self);
6481
+ function moonbitlang$core$builtin$$Logger$write_object$12$(self, obj) {
6482
+ moonbitlang$core$builtin$$Show$output$12$(obj, self);
6483
6483
  }
6484
- function moonbitlang$core$array$$FixedArray$unsafe_blit$13$(dst, dst_offset, src, src_offset, len) {
6484
+ function moonbitlang$core$array$$FixedArray$unsafe_blit$14$(dst, dst_offset, src, src_offset, len) {
6485
6485
  if (dst === src && dst_offset < src_offset) {
6486
6486
  let _tmp = 0;
6487
6487
  while (true) {
@@ -6542,8 +6542,8 @@ function moonbitlang$core$builtin$$op_notequal$6$(x, y) {
6542
6542
  function moonbitlang$core$builtin$$op_notequal$44$(x, y) {
6543
6543
  return !moonbitlang$core$builtin$$Eq$equal$45$(x, y);
6544
6544
  }
6545
- function moonbitlang$core$builtin$$op_notequal$14$(x, y) {
6546
- return !moonbitlang$core$builtin$$Eq$equal$14$(x, y);
6545
+ function moonbitlang$core$builtin$$op_notequal$12$(x, y) {
6546
+ return !moonbitlang$core$builtin$$Eq$equal$12$(x, y);
6547
6547
  }
6548
6548
  function moonbitlang$core$builtin$$op_notequal$46$(x, y) {
6549
6549
  return !moonbitlang$core$builtin$$Eq$equal$47$(x, y);
@@ -6584,7 +6584,7 @@ function moonbitlang$core$array$$Array$at$42$(self, index) {
6584
6584
  return $panic();
6585
6585
  }
6586
6586
  }
6587
- function moonbitlang$core$array$$Array$at$14$(self, index) {
6587
+ function moonbitlang$core$array$$Array$at$12$(self, index) {
6588
6588
  const len = self.length;
6589
6589
  if (index >= 0 && index < len) {
6590
6590
  $bound_check(self, index);
@@ -6611,7 +6611,7 @@ function moonbitlang$core$array$$Array$at$17$(self, index) {
6611
6611
  return $panic();
6612
6612
  }
6613
6613
  }
6614
- function moonbitlang$core$array$$Array$at$13$(self, index) {
6614
+ function moonbitlang$core$array$$Array$at$14$(self, index) {
6615
6615
  const len = self.length;
6616
6616
  if (index >= 0 && index < len) {
6617
6617
  $bound_check(self, index);
@@ -6657,8 +6657,8 @@ function moonbitlang$core$builtin$$Hasher$combine$7$(self, value) {
6657
6657
  function moonbitlang$core$builtin$$Hasher$combine$6$(self, value) {
6658
6658
  moonbitlang$core$builtin$$Hash$hash_combine$6$(value, self);
6659
6659
  }
6660
- function moonbitlang$core$builtin$$Hasher$combine$12$(self, value) {
6661
- moonbitlang$core$builtin$$Hash$hash_combine$12$(value, self);
6660
+ function moonbitlang$core$builtin$$Hasher$combine$13$(self, value) {
6661
+ moonbitlang$core$builtin$$Hash$hash_combine$13$(value, self);
6662
6662
  }
6663
6663
  function moonbitlang$core$builtin$$Hasher$combine$11$(self, value) {
6664
6664
  moonbitlang$core$builtin$$Hash$hash_combine$11$(value, self);
@@ -6742,17 +6742,17 @@ function moonbitlang$core$builtin$$Hash$hash$57$(self) {
6742
6742
  }
6743
6743
  function moonbitlang$core$builtin$$Hash$hash$19$(self) {
6744
6744
  const _self = moonbitlang$core$builtin$$Hasher$new(undefined);
6745
- moonbitlang$core$builtin$$Hasher$combine$12$(_self, self);
6745
+ moonbitlang$core$builtin$$Hasher$combine$13$(_self, self);
6746
6746
  return moonbitlang$core$builtin$$Hasher$finalize(_self);
6747
6747
  }
6748
6748
  function moonbitlang$core$builtin$$Show$to_string$60$(self) {
6749
6749
  const logger = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
6750
- moonbitlang$core$builtin$$Show$output$14$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6750
+ moonbitlang$core$builtin$$Show$output$12$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6751
6751
  return logger.val;
6752
6752
  }
6753
6753
  function moonbitlang$core$builtin$$Show$to_string$19$(self) {
6754
6754
  const logger = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
6755
- moonbitlang$core$builtin$$Show$output$12$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6755
+ moonbitlang$core$builtin$$Show$output$13$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6756
6756
  return logger.val;
6757
6757
  }
6758
6758
  function moonbitlang$core$builtin$$Show$to_string$61$(self) {
@@ -6765,11 +6765,11 @@ function moonbitlang$core$builtin$$Show$to_string$28$(self) {
6765
6765
  moonbitlang$core$builtin$$Show$output$0$(self, { self: logger, method_0: moonbitlang$core$builtin$$Logger$write_string$35$, method_1: moonbitlang$core$builtin$$Logger$write_substring$35$, method_2: moonbitlang$core$builtin$$Logger$write_char$35$ });
6766
6766
  return logger.val;
6767
6767
  }
6768
- function moonbitlang$core$builtin$$Logger$write_iter$46$inner$14$(self, iter, prefix, suffix, sep, trailing) {
6768
+ function moonbitlang$core$builtin$$Logger$write_iter$46$inner$12$(self, iter, prefix, suffix, sep, trailing) {
6769
6769
  self.method_0(self.self, prefix);
6770
6770
  if (trailing) {
6771
6771
  iter((x) => {
6772
- moonbitlang$core$builtin$$Logger$write_object$14$(self, x);
6772
+ moonbitlang$core$builtin$$Logger$write_object$12$(self, x);
6773
6773
  self.method_0(self.self, sep);
6774
6774
  return 1;
6775
6775
  });
@@ -6781,7 +6781,7 @@ function moonbitlang$core$builtin$$Logger$write_iter$46$inner$14$(self, iter, pr
6781
6781
  } else {
6782
6782
  self.method_0(self.self, sep);
6783
6783
  }
6784
- moonbitlang$core$builtin$$Logger$write_object$14$(self, x);
6784
+ moonbitlang$core$builtin$$Logger$write_object$12$(self, x);
6785
6785
  return 1;
6786
6786
  });
6787
6787
  }
@@ -6799,7 +6799,7 @@ function moonbitlang$core$string$$StringView$at(self, index) {
6799
6799
  const _tmp$2 = self.start + index | 0;
6800
6800
  return _tmp.charCodeAt(_tmp$2);
6801
6801
  } else {
6802
- return moonbitlang$core$abort$$abort$12$("Index out of bounds");
6802
+ return moonbitlang$core$abort$$abort$13$("Index out of bounds");
6803
6803
  }
6804
6804
  }
6805
6805
  function moonbitlang$core$string$$StringView$view$46$inner(self, start_offset, end_offset) {
@@ -7316,7 +7316,7 @@ function moonbitlang$core$string$$String$repeat(self, n) {
7316
7316
  }
7317
7317
  }
7318
7318
  }
7319
- function moonbitlang$core$array$$Array$new$46$inner$14$(capacity) {
7319
+ function moonbitlang$core$array$$Array$new$46$inner$12$(capacity) {
7320
7320
  return [];
7321
7321
  }
7322
7322
  function moonbitlang$core$array$$Array$new$46$inner$51$(capacity) {
@@ -7328,7 +7328,7 @@ function moonbitlang$core$array$$Array$new$46$inner$50$(capacity) {
7328
7328
  function moonbitlang$core$array$$Array$new$46$inner$52$(capacity) {
7329
7329
  return [];
7330
7330
  }
7331
- function moonbitlang$core$array$$Array$new$46$inner$13$(capacity) {
7331
+ function moonbitlang$core$array$$Array$new$46$inner$14$(capacity) {
7332
7332
  return [];
7333
7333
  }
7334
7334
  function moonbitlang$core$array$$Array$new$46$inner$62$(capacity) {
@@ -7337,7 +7337,7 @@ function moonbitlang$core$array$$Array$new$46$inner$62$(capacity) {
7337
7337
  function moonbitlang$core$array$$Array$new$46$inner$40$(capacity) {
7338
7338
  return [];
7339
7339
  }
7340
- function moonbitlang$core$array$$Array$push$14$(self, value) {
7340
+ function moonbitlang$core$array$$Array$push$12$(self, value) {
7341
7341
  moonbitlang$core$builtin$$JSArray$push(self, value);
7342
7342
  }
7343
7343
  function moonbitlang$core$array$$Array$push$50$(self, value) {
@@ -7355,7 +7355,7 @@ function moonbitlang$core$array$$Array$push$62$(self, value) {
7355
7355
  function moonbitlang$core$array$$Array$push$42$(self, value) {
7356
7356
  moonbitlang$core$builtin$$JSArray$push(self, value);
7357
7357
  }
7358
- function moonbitlang$core$array$$Array$push$13$(self, value) {
7358
+ function moonbitlang$core$array$$Array$push$14$(self, value) {
7359
7359
  moonbitlang$core$builtin$$JSArray$push(self, value);
7360
7360
  }
7361
7361
  function moonbitlang$core$array$$Array$push$52$(self, value) {
@@ -7480,10 +7480,10 @@ function moonbitlang$core$builtin$$Iter$collect$15$(self) {
7480
7480
  });
7481
7481
  return result;
7482
7482
  }
7483
- function moonbitlang$core$builtin$$Iter$collect$13$(self) {
7483
+ function moonbitlang$core$builtin$$Iter$collect$14$(self) {
7484
7484
  const result = [];
7485
7485
  moonbitlang$core$builtin$$Iter$each$64$(self, (e) => {
7486
- moonbitlang$core$array$$Array$push$13$(result, e);
7486
+ moonbitlang$core$array$$Array$push$14$(result, e);
7487
7487
  });
7488
7488
  return result;
7489
7489
  }
@@ -7541,11 +7541,11 @@ function moonbitlang$core$builtin$$Iterator$next$38$(self) {
7541
7541
  const _func = self;
7542
7542
  return _func();
7543
7543
  }
7544
- function moonbitlang$core$builtin$$Iterator$next$13$(self) {
7544
+ function moonbitlang$core$builtin$$Iterator$next$14$(self) {
7545
7545
  const _func = self;
7546
7546
  return _func();
7547
7547
  }
7548
- function moonbitlang$core$builtin$$Show$output$12$(self, logger) {
7548
+ function moonbitlang$core$builtin$$Show$output$13$(self, logger) {
7549
7549
  logger.method_0(logger.self, moonbitlang$core$int$$Int$to_string$46$inner(self, 10));
7550
7550
  }
7551
7551
  function moonbitlang$core$builtin$$Show$output$0$(self, logger) {
@@ -7564,7 +7564,7 @@ function moonbitlang$core$builtin$$Show$output$31$(self, logger) {
7564
7564
  return;
7565
7565
  }
7566
7566
  }
7567
- function moonbitlang$core$array$$Array$iter$14$(self) {
7567
+ function moonbitlang$core$array$$Array$iter$12$(self) {
7568
7568
  const _p = (yield_) => {
7569
7569
  const _len = self.length;
7570
7570
  let _tmp = 0;
@@ -7609,7 +7609,7 @@ function moonbitlang$core$array$$Array$iter$41$(self) {
7609
7609
  return _p;
7610
7610
  }
7611
7611
  function moonbitlang$core$builtin$$Show$output$32$(self, logger) {
7612
- moonbitlang$core$builtin$$Logger$write_iter$46$inner$14$(logger, moonbitlang$core$array$$Array$iter$14$(self), "[", "]", ", ", false);
7612
+ moonbitlang$core$builtin$$Logger$write_iter$46$inner$12$(logger, moonbitlang$core$array$$Array$iter$12$(self), "[", "]", ", ", false);
7613
7613
  }
7614
7614
  function moonbitlang$core$array$$FixedArray$from_array$53$(array) {
7615
7615
  const _p = array.end - array.start | 0;
@@ -7633,7 +7633,7 @@ function moonbitlang$core$array$$FixedArray$from_array$53$(array) {
7633
7633
  return _p$3;
7634
7634
  }
7635
7635
  }
7636
- function moonbitlang$core$array$$FixedArray$sub$46$inner$13$(self, start, end) {
7636
+ function moonbitlang$core$array$$FixedArray$sub$46$inner$14$(self, start, end) {
7637
7637
  const len = self.length;
7638
7638
  let end$2;
7639
7639
  if (end === undefined) {
@@ -7657,7 +7657,7 @@ function moonbitlang$core$builtin$$Eq$equal$45$(self, other) {
7657
7657
  } else {
7658
7658
  const _Some$2 = other;
7659
7659
  const _y = _Some$2;
7660
- return moonbitlang$core$builtin$$Eq$equal$14$(_x, _y);
7660
+ return moonbitlang$core$builtin$$Eq$equal$12$(_x, _y);
7661
7661
  }
7662
7662
  }
7663
7663
  }
@@ -8285,7 +8285,7 @@ function moonbitlang$core$builtin$$Map$contains_kv$37$(self, key, value) {
8285
8285
  } else {
8286
8286
  const _Some = _bind;
8287
8287
  const _entry = _Some;
8288
- if (_entry.hash === hash && (_entry.key === key && moonbitlang$core$builtin$$Eq$equal$14$(_entry.value, value))) {
8288
+ if (_entry.hash === hash && (_entry.key === key && moonbitlang$core$builtin$$Eq$equal$12$(_entry.value, value))) {
8289
8289
  return true;
8290
8290
  }
8291
8291
  if (i > _entry.psl) {
@@ -8410,7 +8410,7 @@ function moonbitlang$core$builtin$$Show$output$33$(self, logger) {
8410
8410
  }
8411
8411
  moonbitlang$core$builtin$$Logger$write_object$7$(logger, _key);
8412
8412
  logger.method_0(logger.self, ": ");
8413
- moonbitlang$core$builtin$$Logger$write_object$14$(logger, _value);
8413
+ moonbitlang$core$builtin$$Logger$write_object$12$(logger, _value);
8414
8414
  _tmp = _param_0 + 1 | 0;
8415
8415
  _tmp$2 = _next;
8416
8416
  continue;
@@ -8569,7 +8569,7 @@ function moonbitlang$core$builtin$$Map$copy$71$(self) {
8569
8569
  return other;
8570
8570
  }
8571
8571
  }
8572
- function moonbitlang$core$builtin$$Eq$equal$14$(a, b) {
8572
+ function moonbitlang$core$builtin$$Eq$equal$12$(a, b) {
8573
8573
  switch (a.$tag) {
8574
8574
  case 0: {
8575
8575
  if (b.$tag === 0) {
@@ -8638,7 +8638,7 @@ function moonbitlang$core$builtin$$Eq$equal$14$(a, b) {
8638
8638
  }
8639
8639
  }
8640
8640
  }
8641
- function moonbitlang$core$builtin$$ToJson$to_json$12$(self) {
8641
+ function moonbitlang$core$builtin$$ToJson$to_json$13$(self) {
8642
8642
  const _p = self + 0;
8643
8643
  const _p$2 = undefined;
8644
8644
  return new $64$moonbitlang$47$core$47$builtin$46$Json$Number(_p, _p$2);
@@ -9025,7 +9025,7 @@ function moonbitlang$core$builtin$$Hasher$combine_string(self, value) {
9025
9025
  function moonbitlang$core$builtin$$Hash$hash_combine$7$(self, hasher) {
9026
9026
  moonbitlang$core$builtin$$Hasher$combine_string(hasher, self);
9027
9027
  }
9028
- function moonbitlang$core$builtin$$Hash$hash_combine$12$(self, hasher) {
9028
+ function moonbitlang$core$builtin$$Hash$hash_combine$13$(self, hasher) {
9029
9029
  moonbitlang$core$builtin$$Hasher$combine_int(hasher, self);
9030
9030
  }
9031
9031
  function moonbitlang$core$builtin$$Hash$hash_combine$11$(self, hasher) {
@@ -9098,7 +9098,7 @@ function moonbitlang$core$array$$FixedArray$blit_from_bytes(self, bytes_offset,
9098
9098
  const len1 = self.length;
9099
9099
  const len2 = src.length;
9100
9100
  if (length >= 0 && (bytes_offset >= 0 && (e1 < len1 && (src_offset >= 0 && e2 < len2)))) {
9101
- moonbitlang$core$array$$FixedArray$unsafe_blit$13$(self, bytes_offset, src, src_offset, length);
9101
+ moonbitlang$core$array$$FixedArray$unsafe_blit$14$(self, bytes_offset, src, src_offset, length);
9102
9102
  return;
9103
9103
  } else {
9104
9104
  $panic();
@@ -9138,7 +9138,7 @@ function moonbitlang$core$array$$FixedArray$set_utf16le_char(self, offset, value
9138
9138
  self[_tmp$3] = _p$4 & 255;
9139
9139
  return 4;
9140
9140
  } else {
9141
- return moonbitlang$core$abort$$abort$12$("Char out of range");
9141
+ return moonbitlang$core$abort$$abort$13$("Char out of range");
9142
9142
  }
9143
9143
  }
9144
9144
  }
@@ -9165,17 +9165,17 @@ function moonbitlang$core$builtin$$Eq$equal$2$(self, other) {
9165
9165
  }
9166
9166
  }
9167
9167
  }
9168
- function moonbitlang$core$builtin$$Shr$shr$13$(self, count) {
9168
+ function moonbitlang$core$builtin$$Shr$shr$14$(self, count) {
9169
9169
  return (self >>> count | 0) & 255;
9170
9170
  }
9171
- function moonbitlang$core$array$$ArrayView$at$13$(self, index) {
9171
+ function moonbitlang$core$array$$ArrayView$at$14$(self, index) {
9172
9172
  if (index >= 0 && index < (self.end - self.start | 0)) {
9173
9173
  const _tmp = self.buf;
9174
9174
  const _tmp$2 = self.start + index | 0;
9175
9175
  $bound_check(_tmp, _tmp$2);
9176
9176
  return _tmp[_tmp$2];
9177
9177
  } else {
9178
- return moonbitlang$core$abort$$abort$13$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
9178
+ return moonbitlang$core$abort$$abort$14$(`index out of bounds: the len is from 0 to ${moonbitlang$core$builtin$$Show$to_string$19$(self.end - self.start | 0)} but the index is ${moonbitlang$core$builtin$$Show$to_string$19$(index)}`);
9179
9179
  }
9180
9180
  }
9181
9181
  function moonbitlang$core$array$$Array$unsafe_pop$39$(self) {
@@ -9198,7 +9198,7 @@ function moonbitlang$core$array$$Array$insert$42$(self, index, value) {
9198
9198
  return;
9199
9199
  }
9200
9200
  }
9201
- function moonbitlang$core$array$$Array$set$13$(self, index, value) {
9201
+ function moonbitlang$core$array$$Array$set$14$(self, index, value) {
9202
9202
  const len = self.length;
9203
9203
  if (index >= 0 && index < len) {
9204
9204
  $bound_check(self, index);
@@ -9228,7 +9228,7 @@ function moonbitlang$core$builtin$$Eq$equal$32$(self, other) {
9228
9228
  while (true) {
9229
9229
  const i = _tmp;
9230
9230
  if (i < self_len) {
9231
- if (moonbitlang$core$builtin$$Eq$equal$14$(self[i], other[i])) {
9231
+ if (moonbitlang$core$builtin$$Eq$equal$12$(self[i], other[i])) {
9232
9232
  } else {
9233
9233
  return false;
9234
9234
  }
@@ -9242,7 +9242,7 @@ function moonbitlang$core$builtin$$Eq$equal$32$(self, other) {
9242
9242
  return false;
9243
9243
  }
9244
9244
  }
9245
- function moonbitlang$core$array$$Array$rev$13$(self) {
9245
+ function moonbitlang$core$array$$Array$rev$14$(self) {
9246
9246
  const len = self.length;
9247
9247
  const arr = new Array(len);
9248
9248
  let _tmp = 0;
@@ -9674,7 +9674,7 @@ function zxch3n$flock$leb128$$encode_uint64(value) {
9674
9674
  const _p$2 = 128;
9675
9675
  byte = (_p | _p$2) & 255;
9676
9676
  }
9677
- moonbitlang$core$array$$Array$push$13$(result, byte);
9677
+ moonbitlang$core$array$$Array$push$14$(result, byte);
9678
9678
  if (moonbitlang$core$builtin$$Eq$equal$0$(val, $0L)) {
9679
9679
  break;
9680
9680
  }
@@ -9719,7 +9719,7 @@ function zxch3n$flock$leb128$$encode_int64(value) {
9719
9719
  byte = (_p | _p$2) & 255;
9720
9720
  }
9721
9721
  }
9722
- moonbitlang$core$array$$Array$push$13$(result, byte);
9722
+ moonbitlang$core$array$$Array$push$14$(result, byte);
9723
9723
  continue;
9724
9724
  } else {
9725
9725
  break;
@@ -9887,7 +9887,7 @@ function moonbitlang$core$builtin$$Hash$hash_combine$6$(_x_157, _x_158) {
9887
9887
  moonbitlang$core$builtin$$Hash$hash_combine$2$(_x_157, _x_158);
9888
9888
  }
9889
9889
  function zxch3n$flock$types$$string_to_utf8(str) {
9890
- const bytes = moonbitlang$core$array$$Array$new$46$inner$13$(0);
9890
+ const bytes = moonbitlang$core$array$$Array$new$46$inner$14$(0);
9891
9891
  let i = 0;
9892
9892
  while (true) {
9893
9893
  if (i < str.length) {
@@ -9900,27 +9900,27 @@ function zxch3n$flock$types$$string_to_utf8(str) {
9900
9900
  const low = str.charCodeAt(_tmp$2);
9901
9901
  if (low >= 56320 && low <= 57343) {
9902
9902
  const code_point = (65536 + (code - 55296 << 10) | 0) + (low - 56320 | 0) | 0;
9903
- moonbitlang$core$array$$Array$push$13$(bytes, (240 | code_point >> 18) & 255);
9904
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code_point >> 12 & 63) & 255);
9905
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code_point >> 6 & 63) & 255);
9906
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code_point & 63) & 255);
9903
+ moonbitlang$core$array$$Array$push$14$(bytes, (240 | code_point >> 18) & 255);
9904
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code_point >> 12 & 63) & 255);
9905
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code_point >> 6 & 63) & 255);
9906
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code_point & 63) & 255);
9907
9907
  i = i + 1 | 0;
9908
9908
  } else {
9909
- moonbitlang$core$array$$Array$push$13$(bytes, (224 | code >> 12) & 255);
9910
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code >> 6 & 63) & 255);
9911
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code & 63) & 255);
9909
+ moonbitlang$core$array$$Array$push$14$(bytes, (224 | code >> 12) & 255);
9910
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code >> 6 & 63) & 255);
9911
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code & 63) & 255);
9912
9912
  }
9913
9913
  } else {
9914
9914
  if (code < 128) {
9915
- moonbitlang$core$array$$Array$push$13$(bytes, code & 255);
9915
+ moonbitlang$core$array$$Array$push$14$(bytes, code & 255);
9916
9916
  } else {
9917
9917
  if (code < 2048) {
9918
- moonbitlang$core$array$$Array$push$13$(bytes, (192 | code >> 6) & 255);
9919
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code & 63) & 255);
9918
+ moonbitlang$core$array$$Array$push$14$(bytes, (192 | code >> 6) & 255);
9919
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code & 63) & 255);
9920
9920
  } else {
9921
- moonbitlang$core$array$$Array$push$13$(bytes, (224 | code >> 12) & 255);
9922
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code >> 6 & 63) & 255);
9923
- moonbitlang$core$array$$Array$push$13$(bytes, (128 | code & 63) & 255);
9921
+ moonbitlang$core$array$$Array$push$14$(bytes, (224 | code >> 12) & 255);
9922
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code >> 6 & 63) & 255);
9923
+ moonbitlang$core$array$$Array$push$14$(bytes, (128 | code & 63) & 255);
9924
9924
  }
9925
9925
  }
9926
9926
  }
@@ -10199,15 +10199,15 @@ function zxch3n$flock$memcomparable$$double_from_bits(bits) {
10199
10199
  return moonbitlang$core$uint64$$UInt64$reinterpret_as_double(bits);
10200
10200
  }
10201
10201
  function zxch3n$flock$memcomparable$$uint64_to_be_bytes(n) {
10202
- const bytes = moonbitlang$core$array$$Array$new$46$inner$13$(0);
10203
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 56), $255L)));
10204
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 48), $255L)));
10205
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 40), $255L)));
10206
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 32), $255L)));
10207
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 24), $255L)));
10208
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 16), $255L)));
10209
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 8), $255L)));
10210
- moonbitlang$core$array$$Array$push$13$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(n, $255L)));
10202
+ const bytes = moonbitlang$core$array$$Array$new$46$inner$14$(0);
10203
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 56), $255L)));
10204
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 48), $255L)));
10205
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 40), $255L)));
10206
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 32), $255L)));
10207
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 24), $255L)));
10208
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 16), $255L)));
10209
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(moonbitlang$core$builtin$$Shr$shr$0$(n, 8), $255L)));
10210
+ moonbitlang$core$array$$Array$push$14$(bytes, moonbitlang$core$uint64$$UInt64$to_byte(moonbitlang$core$builtin$$BitAnd$land$0$(n, $255L)));
10211
10211
  return moonbitlang$core$bytes$$Bytes$from_array({ buf: bytes, start: 0, end: bytes.length });
10212
10212
  }
10213
10213
  function zxch3n$flock$memcomparable$$uint64_from_be_bytes(bytes) {
@@ -10276,7 +10276,7 @@ function zxch3n$flock$memcomparable$$encode_bytes(bytes, output) {
10276
10276
  moonbitlang$core$buffer$$Buffer$write_byte(output, 1);
10277
10277
  const _it = moonbitlang$core$bytes$$BytesView$iterator(bytes);
10278
10278
  while (true) {
10279
- const _bind = moonbitlang$core$builtin$$Iterator$next$13$(_it);
10279
+ const _bind = moonbitlang$core$builtin$$Iterator$next$14$(_it);
10280
10280
  if (_bind === -1) {
10281
10281
  break;
10282
10282
  } else {
@@ -10339,14 +10339,14 @@ function zxch3n$flock$memcomparable$$biguint_to_be_bytes(n) {
10339
10339
  while (true) {
10340
10340
  if (moonbitlang$core$builtin$$Compare$op_gt$58$(x, 0n)) {
10341
10341
  const byte = moonbitlang$core$bigint$$BigInt$to_int(moonbitlang$core$builtin$$Mod$mod$21$(x, 256n));
10342
- moonbitlang$core$array$$Array$push$13$(bytes, byte & 255);
10342
+ moonbitlang$core$array$$Array$push$14$(bytes, byte & 255);
10343
10343
  x = moonbitlang$core$builtin$$Div$div$21$(x, 256n);
10344
10344
  continue;
10345
10345
  } else {
10346
10346
  break;
10347
10347
  }
10348
10348
  }
10349
- const _bind = moonbitlang$core$array$$Array$rev$13$(bytes);
10349
+ const _bind = moonbitlang$core$array$$Array$rev$14$(bytes);
10350
10350
  return moonbitlang$core$bytes$$Bytes$from_array({ buf: _bind, start: 0, end: _bind.length });
10351
10351
  }
10352
10352
  function zxch3n$flock$memcomparable$$bigint_to_be_bytes(n, output) {
@@ -10617,12 +10617,12 @@ function zxch3n$flock$memcomparable$$decode_float(bytes, start) {
10617
10617
  if ((start + 8 | 0) > (bytes.end - bytes.start | 0)) {
10618
10618
  return new Result$Err$27$(Error$zxch3n$47$flock$47$memcomparable$46$KeyError$46$UnexpectedEOF);
10619
10619
  }
10620
- const data = moonbitlang$core$array$$Array$new$46$inner$13$(0);
10620
+ const data = moonbitlang$core$array$$Array$new$46$inner$14$(0);
10621
10621
  let _tmp = 0;
10622
10622
  while (true) {
10623
10623
  const i = _tmp;
10624
10624
  if (i < 8) {
10625
- moonbitlang$core$array$$Array$push$13$(data, moonbitlang$core$bytes$$BytesView$at(bytes, start + i | 0));
10625
+ moonbitlang$core$array$$Array$push$14$(data, moonbitlang$core$bytes$$BytesView$at(bytes, start + i | 0));
10626
10626
  _tmp = i + 1 | 0;
10627
10627
  continue;
10628
10628
  } else {
@@ -10828,7 +10828,7 @@ function zxch3n$flock$memcomparable$$decode_key_to_json(bytes) {
10828
10828
  }
10829
10829
  key = moonbitlang$core$abort$$abort$10$("Failed to decode key");
10830
10830
  }
10831
- const parts = moonbitlang$core$array$$Array$new$46$inner$14$(0);
10831
+ const parts = moonbitlang$core$array$$Array$new$46$inner$12$(0);
10832
10832
  const _arr = key.parts;
10833
10833
  const _len = _arr.length;
10834
10834
  let _tmp = 0;
@@ -10844,7 +10844,7 @@ function zxch3n$flock$memcomparable$$decode_key_to_json(bytes) {
10844
10844
  const _p$2 = _p;
10845
10845
  _tmp$2 = _p$2;
10846
10846
  }
10847
- moonbitlang$core$array$$Array$push$14$(parts, _tmp$2);
10847
+ moonbitlang$core$array$$Array$push$12$(parts, _tmp$2);
10848
10848
  _tmp = _i + 1 | 0;
10849
10849
  continue;
10850
10850
  } else {
@@ -11553,7 +11553,7 @@ function zxch3n$flock$flock$$bytes_to_hex(bytes) {
11553
11553
  if (i < bytes.length) {
11554
11554
  $bound_check(bytes, i);
11555
11555
  const byte = bytes[i];
11556
- const _p = moonbitlang$core$builtin$$Shr$shr$13$(byte, 4);
11556
+ const _p = moonbitlang$core$builtin$$Shr$shr$14$(byte, 4);
11557
11557
  const _p$2 = 15;
11558
11558
  const hi = _p & _p$2 & 255;
11559
11559
  const _p$3 = 15;
@@ -11611,7 +11611,7 @@ function zxch3n$flock$flock$$bytes_from_hex(hex) {
11611
11611
  }
11612
11612
  }
11613
11613
  }
11614
- moonbitlang$core$array$$Array$push$13$(bytes, value & 255);
11614
+ moonbitlang$core$array$$Array$push$14$(bytes, value & 255);
11615
11615
  _tmp = i + 2 | 0;
11616
11616
  continue;
11617
11617
  } else {
@@ -11870,7 +11870,7 @@ function zxch3n$flock$flock$$DigestWriter$write_json(self, value) {
11870
11870
  while (true) {
11871
11871
  const i = _tmp;
11872
11872
  if (i < _arr.length) {
11873
- zxch3n$flock$flock$$DigestWriter$write_json(self, moonbitlang$core$array$$Array$at$14$(_arr, i));
11873
+ zxch3n$flock$flock$$DigestWriter$write_json(self, moonbitlang$core$array$$Array$at$12$(_arr, i));
11874
11874
  _tmp = i + 1 | 0;
11875
11875
  continue;
11876
11876
  } else {
@@ -12399,12 +12399,12 @@ function zxch3n$flock$flock$$prefix_upper_bound_bytes(bytes) {
12399
12399
  if ((bytes.end - bytes.start | 0) === 0) {
12400
12400
  return undefined;
12401
12401
  }
12402
- const data = moonbitlang$core$array$$Array$new$46$inner$13$(bytes.end - bytes.start | 0);
12402
+ const data = moonbitlang$core$array$$Array$new$46$inner$14$(bytes.end - bytes.start | 0);
12403
12403
  let _tmp = 0;
12404
12404
  while (true) {
12405
12405
  const i = _tmp;
12406
12406
  if (i < (bytes.end - bytes.start | 0)) {
12407
- moonbitlang$core$array$$Array$push$13$(data, moonbitlang$core$bytes$$BytesView$at(bytes, i));
12407
+ moonbitlang$core$array$$Array$push$14$(data, moonbitlang$core$bytes$$BytesView$at(bytes, i));
12408
12408
  _tmp = i + 1 | 0;
12409
12409
  continue;
12410
12410
  } else {
@@ -12415,15 +12415,15 @@ function zxch3n$flock$flock$$prefix_upper_bound_bytes(bytes) {
12415
12415
  while (true) {
12416
12416
  const i = _tmp$2;
12417
12417
  if (i >= 0) {
12418
- const current = moonbitlang$core$array$$Array$at$13$(data, i);
12418
+ const current = moonbitlang$core$array$$Array$at$14$(data, i);
12419
12419
  if (current < 255) {
12420
- moonbitlang$core$array$$Array$set$13$(data, i, (current + 1 | 0) & 255);
12421
- const truncated = moonbitlang$core$array$$Array$new$46$inner$13$(i + 1 | 0);
12420
+ moonbitlang$core$array$$Array$set$14$(data, i, (current + 1 | 0) & 255);
12421
+ const truncated = moonbitlang$core$array$$Array$new$46$inner$14$(i + 1 | 0);
12422
12422
  let _tmp$3 = 0;
12423
12423
  while (true) {
12424
12424
  const j = _tmp$3;
12425
12425
  if (j <= i) {
12426
- moonbitlang$core$array$$Array$push$13$(truncated, moonbitlang$core$array$$Array$at$13$(data, j));
12426
+ moonbitlang$core$array$$Array$push$14$(truncated, moonbitlang$core$array$$Array$at$14$(data, j));
12427
12427
  _tmp$3 = j + 1 | 0;
12428
12428
  continue;
12429
12429
  } else {
@@ -12493,14 +12493,14 @@ function zxch3n$flock$flock$$scan$46$inner$46$apply_upper$124$392(_env, bytes, i
12493
12493
  }
12494
12494
  }
12495
12495
  function zxch3n$flock$flock$$Flock$scan$46$inner(self, start, end, prefix) {
12496
- const prefix_filter = { val: moonbitlang$core$array$$Array$new$46$inner$14$(0) };
12496
+ const prefix_filter = { val: moonbitlang$core$array$$Array$new$46$inner$12$(0) };
12497
12497
  const has_prefix_filter = { val: false };
12498
12498
  let prefix_bytes = undefined;
12499
12499
  let prefix_upper_bytes = undefined;
12500
12500
  if (prefix.$tag === 1) {
12501
12501
  const _Some = prefix;
12502
12502
  const _p = _Some._0;
12503
- prefix_filter.val = moonbitlang$core$array$$Array$copy$14$(_p);
12503
+ prefix_filter.val = moonbitlang$core$array$$Array$copy$12$(_p);
12504
12504
  has_prefix_filter.val = true;
12505
12505
  const _bind = zxch3n$flock$memcomparable$$encode_json_key(_p);
12506
12506
  if (_bind === undefined) {
@@ -12654,7 +12654,7 @@ function zxch3n$flock$flock$$Flock$scan$46$inner(self, start, end, prefix) {
12654
12654
  while (true) {
12655
12655
  const i = _tmp;
12656
12656
  if (i < prefix_filter.val.length) {
12657
- if (moonbitlang$core$builtin$$op_notequal$14$(moonbitlang$core$array$$Array$at$14$(prefix_filter.val, i), moonbitlang$core$array$$Array$at$14$(key_json, i))) {
12657
+ if (moonbitlang$core$builtin$$op_notequal$12$(moonbitlang$core$array$$Array$at$12$(prefix_filter.val, i), moonbitlang$core$array$$Array$at$12$(key_json, i))) {
12658
12658
  matches = false;
12659
12659
  break;
12660
12660
  }
@@ -12918,12 +12918,12 @@ function zxch3n$flock$flock$$Flock$import_json$46$inner(self, json, hooks) {
12918
12918
  if (key_json.$tag === 5) {
12919
12919
  const _Array = key_json;
12920
12920
  const _parts = _Array._0;
12921
- const key_parts = moonbitlang$core$array$$Array$new$46$inner$14$(0);
12921
+ const key_parts = moonbitlang$core$array$$Array$new$46$inner$12$(0);
12922
12922
  let _tmp = 0;
12923
12923
  while (true) {
12924
12924
  const i = _tmp;
12925
12925
  if (i < _parts.length) {
12926
- moonbitlang$core$array$$Array$push$14$(key_parts, moonbitlang$core$array$$Array$at$14$(_parts, i));
12926
+ moonbitlang$core$array$$Array$push$12$(key_parts, moonbitlang$core$array$$Array$at$12$(_parts, i));
12927
12927
  _tmp = i + 1 | 0;
12928
12928
  continue;
12929
12929
  } else {
@@ -12952,7 +12952,7 @@ function zxch3n$flock$flock$$Flock$import_json$46$inner(self, json, hooks) {
12952
12952
  } else {
12953
12953
  const _Skip = _bind$4;
12954
12954
  const _reason = _Skip._0;
12955
- moonbitlang$core$array$$Array$push$50$(skipped_entries, { key: moonbitlang$core$array$$Array$copy$14$(key_parts), reason: _reason });
12955
+ moonbitlang$core$array$$Array$push$50$(skipped_entries, { key: moonbitlang$core$array$$Array$copy$12$(key_parts), reason: _reason });
12956
12956
  return 1;
12957
12957
  }
12958
12958
  }
@@ -13119,7 +13119,7 @@ function zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key, value, now) {
13119
13119
  $panic();
13120
13120
  }
13121
13121
  }
13122
- const key$2 = moonbitlang$core$array$$Array$copy$14$(key);
13122
+ const key$2 = moonbitlang$core$array$$Array$copy$12$(key);
13123
13123
  _L: {
13124
13124
  _L$2: {
13125
13125
  switch (value.$tag) {
@@ -13137,7 +13137,7 @@ function zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key, value, now) {
13137
13137
  }
13138
13138
  return new Result$Err$32$(new Error$zxch3n$47$flock$47$flock$46$PutError$46$InvalidValueForMvr(value));
13139
13139
  }
13140
- moonbitlang$core$array$$Array$push$14$(key$2, value);
13140
+ moonbitlang$core$array$$Array$push$12$(key$2, value);
13141
13141
  const _p = true;
13142
13142
  const _tmp$2 = _p ? $64$moonbitlang$47$core$47$builtin$46$Json$True : $64$moonbitlang$47$core$47$builtin$46$Json$False;
13143
13143
  return zxch3n$flock$flock$$Flock$put_inner(self, key$2, _tmp$2, Option$None$33$, now, Option$None$34$);
@@ -13158,8 +13158,8 @@ function zxch3n$flock$flock$$Flock$get_mvr(self, key) {
13158
13158
  if (_tmp) {
13159
13159
  return 1;
13160
13160
  }
13161
- const value = moonbitlang$core$array$$Array$at$14$(k, key.length);
13162
- moonbitlang$core$array$$Array$push$14$(ans, value);
13161
+ const value = moonbitlang$core$array$$Array$at$12$(k, key.length);
13162
+ moonbitlang$core$array$$Array$push$12$(ans, value);
13163
13163
  return 1;
13164
13164
  });
13165
13165
  const _tmp = _foreach_result;
@@ -13228,53 +13228,59 @@ function zxch3n$flock$flock$$Flock$put_ffi(self, key, value, now) {
13228
13228
  _try_err = _tmp;
13229
13229
  break _L;
13230
13230
  }
13231
- const _bind$2 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:23:31-23:51");
13232
- let _tmp;
13233
- if (_bind$2.$tag === 1) {
13234
- const _ok = _bind$2;
13235
- _tmp = _ok._0;
13236
- } else {
13237
- const _err = _bind$2;
13238
- const _tmp$2 = _err._0;
13239
- _try_err = _tmp$2;
13240
- break _L;
13231
+ let value$2;
13232
+ let _try_err$2;
13233
+ _L$2: {
13234
+ _L$3: {
13235
+ const _bind$2 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
13236
+ if (_bind$2.$tag === 1) {
13237
+ const _ok = _bind$2;
13238
+ value$2 = _ok._0;
13239
+ } else {
13240
+ const _err = _bind$2;
13241
+ const _tmp = _err._0;
13242
+ _try_err$2 = _tmp;
13243
+ break _L$3;
13244
+ }
13245
+ break _L$2;
13246
+ }
13247
+ value$2 = $panic();
13241
13248
  }
13242
- const value$2 = zxch3n$flock$flock$$value_to_json(_tmp);
13243
- const _bind$3 = Yoorkin$jmop$$Value$to_array$76$(key$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:24:40-24:54");
13249
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:24:40-24:54");
13244
13250
  let key_arr;
13245
- if (_bind$3.$tag === 1) {
13246
- const _ok = _bind$3;
13251
+ if (_bind$2.$tag === 1) {
13252
+ const _ok = _bind$2;
13247
13253
  key_arr = _ok._0;
13248
13254
  } else {
13249
- const _err = _bind$3;
13250
- const _tmp$2 = _err._0;
13251
- _try_err = _tmp$2;
13255
+ const _err = _bind$2;
13256
+ const _tmp = _err._0;
13257
+ _try_err = _tmp;
13252
13258
  break _L;
13253
13259
  }
13254
13260
  const _p = new Array(key_arr.length);
13255
13261
  const _p$2 = key_arr.length;
13256
- let _tmp$2 = 0;
13262
+ let _tmp = 0;
13257
13263
  while (true) {
13258
- const _p$3 = _tmp$2;
13264
+ const _p$3 = _tmp;
13259
13265
  if (_p$3 < _p$2) {
13260
13266
  const _p$4 = key_arr[_p$3];
13261
13267
  _p[_p$3] = zxch3n$flock$flock$$value_to_json(_p$4);
13262
- _tmp$2 = _p$3 + 1 | 0;
13268
+ _tmp = _p$3 + 1 | 0;
13263
13269
  continue;
13264
13270
  } else {
13265
13271
  break;
13266
13272
  }
13267
13273
  }
13268
13274
  const key_arr$2 = _p;
13269
- const _bind$4 = zxch3n$flock$flock$$Flock$put_inner(self, key_arr$2, value$2, Option$None$33$, new Option$Some$8$(now), Option$None$34$);
13270
- if (_bind$4.$tag === 1) {
13271
- const _ok = _bind$4;
13275
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_inner(self, key_arr$2, value$2, Option$None$33$, new Option$Some$8$(now), Option$None$34$);
13276
+ if (_bind$3.$tag === 1) {
13277
+ const _ok = _bind$3;
13272
13278
  _ok._0;
13273
13279
  return;
13274
13280
  } else {
13275
- const _err = _bind$4;
13276
- const _tmp$3 = _err._0;
13277
- _try_err = _tmp$3;
13281
+ const _err = _bind$3;
13282
+ const _tmp$2 = _err._0;
13283
+ _try_err = _tmp$2;
13278
13284
  break _L;
13279
13285
  }
13280
13286
  }
@@ -13400,8 +13406,8 @@ function zxch3n$flock$flock$$json_to_version_vector(json) {
13400
13406
  const _Array = raw_clock;
13401
13407
  const _parts = _Array._0;
13402
13408
  if (_parts.length >= 2) {
13403
- const physical_time = moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$14$(_parts, 0)));
13404
- const logical_counter = moonbitlang$core$double$$Double$to_int(moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$14$(_parts, 1))));
13409
+ const physical_time = moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$12$(_parts, 0)));
13410
+ const logical_counter = moonbitlang$core$double$$Double$to_int(moonbitlang$core$option$$Option$unwrap$24$(moonbitlang$core$json$$Json$as_number(moonbitlang$core$array$$Array$at$12$(_parts, 1))));
13405
13411
  moonbitlang$core$builtin$$Map$set$71$(vv, peer, { physical_time: physical_time, logical_counter: logical_counter });
13406
13412
  } else {
13407
13413
  break _L$2;
@@ -13486,7 +13492,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13486
13492
  let _try_err;
13487
13493
  _L: {
13488
13494
  if (!(zxch3n$flock$flock$$any_is_undefined(json) || zxch3n$flock$flock$$any_is_null(json))) {
13489
- const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:109:32-109:51");
13495
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:106:32-106:51");
13490
13496
  let _tmp;
13491
13497
  if (_bind.$tag === 1) {
13492
13498
  const _ok = _bind;
@@ -13516,7 +13522,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13516
13522
  }
13517
13523
  report = $panic();
13518
13524
  }
13519
- const skipped_rows = moonbitlang$core$array$$Array$new$46$inner$14$(0);
13525
+ const skipped_rows = moonbitlang$core$array$$Array$new$46$inner$12$(0);
13520
13526
  let _tmp$2 = 0;
13521
13527
  while (true) {
13522
13528
  const i = _tmp$2;
@@ -13526,7 +13532,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13526
13532
  moonbitlang$core$builtin$$Map$set$37$(obj, "key", moonbitlang$core$builtin$$ToJson$to_json$32$(skipped.key));
13527
13533
  const _p = skipped.reason;
13528
13534
  moonbitlang$core$builtin$$Map$set$37$(obj, "reason", new $64$moonbitlang$47$core$47$builtin$46$Json$String(_p));
13529
- moonbitlang$core$array$$Array$push$14$(skipped_rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
13535
+ moonbitlang$core$array$$Array$push$12$(skipped_rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
13530
13536
  _tmp$2 = i + 1 | 0;
13531
13537
  continue;
13532
13538
  } else {
@@ -13534,7 +13540,7 @@ function zxch3n$flock$flock$$Flock$import_json_ffi(self, json) {
13534
13540
  }
13535
13541
  }
13536
13542
  const report_obj = moonbitlang$core$builtin$$Map$new$46$inner$37$(8);
13537
- moonbitlang$core$builtin$$Map$set$37$(report_obj, "accepted", moonbitlang$core$builtin$$ToJson$to_json$12$(report.accepted));
13543
+ moonbitlang$core$builtin$$Map$set$37$(report_obj, "accepted", moonbitlang$core$builtin$$ToJson$to_json$13$(report.accepted));
13538
13544
  moonbitlang$core$builtin$$Map$set$37$(report_obj, "skipped", moonbitlang$core$builtin$$ToJson$to_json$32$(skipped_rows));
13539
13545
  const _p = zxch3n$flock$flock$$json_to_value(moonbitlang$core$builtin$$ToJson$to_json$33$(report_obj));
13540
13546
  return _p;
@@ -13548,7 +13554,7 @@ function zxch3n$flock$flock$$version_vector_to_json(vv) {
13548
13554
  const result = moonbitlang$core$builtin$$Map$new$46$inner$37$(8);
13549
13555
  const _bind = moonbitlang$core$builtin$$Map$iter2$71$(vv);
13550
13556
  _bind((peer, clock) => {
13551
- const entry = [moonbitlang$core$builtin$$ToJson$to_json$24$(clock.physical_time), moonbitlang$core$builtin$$ToJson$to_json$12$(clock.logical_counter)];
13557
+ const entry = [moonbitlang$core$builtin$$ToJson$to_json$24$(clock.physical_time), moonbitlang$core$builtin$$ToJson$to_json$13$(clock.logical_counter)];
13552
13558
  moonbitlang$core$builtin$$Map$set$37$(result, zxch3n$flock$flock$$bytes_to_hex(peer), moonbitlang$core$builtin$$ToJson$to_json$32$(entry));
13553
13559
  return 1;
13554
13560
  });
@@ -13608,7 +13614,7 @@ function zxch3n$flock$flock$$bound_from_json(json) {
13608
13614
  if (_x.$tag === 5) {
13609
13615
  const _Array = _x;
13610
13616
  const _arr = _Array._0;
13611
- key = moonbitlang$core$array$$Array$copy$14$(_arr);
13617
+ key = moonbitlang$core$array$$Array$copy$12$(_arr);
13612
13618
  } else {
13613
13619
  break _L$3;
13614
13620
  }
@@ -13631,7 +13637,7 @@ function zxch3n$flock$flock$$Flock$check_invariants_ffi(self) {
13631
13637
  function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13632
13638
  let _try_err;
13633
13639
  _L: {
13634
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:224:21-224:39");
13640
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:221:21-221:39");
13635
13641
  let key_value;
13636
13642
  if (_bind.$tag === 1) {
13637
13643
  const _ok = _bind;
@@ -13642,7 +13648,7 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13642
13648
  _try_err = _tmp;
13643
13649
  break _L;
13644
13650
  }
13645
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:225:40-225:60");
13651
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:222:40-222:60");
13646
13652
  let key_arr;
13647
13653
  if (_bind$2.$tag === 1) {
13648
13654
  const _ok = _bind$2;
@@ -13668,23 +13674,40 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13668
13674
  }
13669
13675
  }
13670
13676
  const key_json = _p;
13671
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:227:36-227:56");
13672
- let _tmp$2;
13673
- if (_bind$3.$tag === 1) {
13674
- const _ok = _bind$3;
13675
- _tmp$2 = _ok._0;
13676
- } else {
13677
- const _err = _bind$3;
13678
- const _tmp$3 = _err._0;
13679
- _try_err = _tmp$3;
13680
- break _L;
13677
+ let value_json;
13678
+ let _try_err$2;
13679
+ _L$2: {
13680
+ _L$3: {
13681
+ const _bind$3 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
13682
+ if (_bind$3.$tag === 1) {
13683
+ const _ok = _bind$3;
13684
+ value_json = _ok._0;
13685
+ } else {
13686
+ const _err = _bind$3;
13687
+ const _tmp$2 = _err._0;
13688
+ _try_err$2 = _tmp$2;
13689
+ break _L$3;
13690
+ }
13691
+ break _L$2;
13692
+ }
13693
+ value_json = $panic();
13681
13694
  }
13682
- const value_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
13683
13695
  let now_value;
13684
13696
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
13685
13697
  now_value = Option$None$8$;
13686
13698
  } else {
13687
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:231:12-231:30");
13699
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:228:12-228:30");
13700
+ let _tmp$2;
13701
+ if (_bind$3.$tag === 1) {
13702
+ const _ok = _bind$3;
13703
+ _tmp$2 = _ok._0;
13704
+ } else {
13705
+ const _err = _bind$3;
13706
+ const _tmp$3 = _err._0;
13707
+ _try_err = _tmp$3;
13708
+ break _L;
13709
+ }
13710
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:228:12-228:42");
13688
13711
  let _tmp$3;
13689
13712
  if (_bind$4.$tag === 1) {
13690
13713
  const _ok = _bind$4;
@@ -13695,28 +13718,17 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13695
13718
  _try_err = _tmp$4;
13696
13719
  break _L;
13697
13720
  }
13698
- const _bind$5 = Yoorkin$jmop$$Value$to_number(_tmp$3, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:231:12-231:42");
13699
- let _tmp$4;
13700
- if (_bind$5.$tag === 1) {
13701
- const _ok = _bind$5;
13702
- _tmp$4 = _ok._0;
13703
- } else {
13704
- const _err = _bind$5;
13705
- const _tmp$5 = _err._0;
13706
- _try_err = _tmp$5;
13707
- break _L;
13708
- }
13709
- now_value = new Option$Some$8$(_tmp$4);
13721
+ now_value = new Option$Some$8$(_tmp$3);
13710
13722
  }
13711
- const _bind$4 = zxch3n$flock$flock$$Flock$put$46$inner(self, key_json, value_json, now_value);
13712
- if (_bind$4.$tag === 1) {
13713
- const _ok = _bind$4;
13723
+ const _bind$3 = zxch3n$flock$flock$$Flock$put$46$inner(self, key_json, value_json, now_value);
13724
+ if (_bind$3.$tag === 1) {
13725
+ const _ok = _bind$3;
13714
13726
  _ok._0;
13715
13727
  return;
13716
13728
  } else {
13717
- const _err = _bind$4;
13718
- const _tmp$3 = _err._0;
13719
- _try_err = _tmp$3;
13729
+ const _err = _bind$3;
13730
+ const _tmp$2 = _err._0;
13731
+ _try_err = _tmp$2;
13720
13732
  break _L;
13721
13733
  }
13722
13734
  }
@@ -13725,7 +13737,7 @@ function zxch3n$flock$flock$$Flock$put_json_ffi(self, key, value, now) {
13725
13737
  function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata, now) {
13726
13738
  let _try_err;
13727
13739
  _L: {
13728
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:246:21-246:39");
13740
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:243:21-243:39");
13729
13741
  let key_value;
13730
13742
  if (_bind.$tag === 1) {
13731
13743
  const _ok = _bind;
@@ -13736,7 +13748,7 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13736
13748
  _try_err = _tmp;
13737
13749
  break _L;
13738
13750
  }
13739
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:247:40-247:60");
13751
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:244:40-244:60");
13740
13752
  let key_arr;
13741
13753
  if (_bind$2.$tag === 1) {
13742
13754
  const _ok = _bind$2;
@@ -13762,41 +13774,58 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13762
13774
  }
13763
13775
  }
13764
13776
  const key_json = _p;
13765
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:249:36-249:56");
13766
- let _tmp$2;
13767
- if (_bind$3.$tag === 1) {
13768
- const _ok = _bind$3;
13769
- _tmp$2 = _ok._0;
13770
- } else {
13771
- const _err = _bind$3;
13772
- const _tmp$3 = _err._0;
13773
- _try_err = _tmp$3;
13774
- break _L;
13777
+ let value_json;
13778
+ let _try_err$2;
13779
+ _L$2: {
13780
+ _L$3: {
13781
+ const _bind$3 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
13782
+ if (_bind$3.$tag === 1) {
13783
+ const _ok = _bind$3;
13784
+ value_json = _ok._0;
13785
+ } else {
13786
+ const _err = _bind$3;
13787
+ const _tmp$2 = _err._0;
13788
+ _try_err$2 = _tmp$2;
13789
+ break _L$3;
13790
+ }
13791
+ break _L$2;
13792
+ }
13793
+ value_json = $panic();
13775
13794
  }
13776
- const value_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
13777
13795
  let metadata_value;
13778
13796
  if (zxch3n$flock$flock$$any_is_undefined(metadata) || zxch3n$flock$flock$$any_is_null(metadata)) {
13779
13797
  metadata_value = undefined;
13780
13798
  } else {
13781
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(metadata, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:253:41-253:64");
13782
- let _tmp$3;
13783
- if (_bind$4.$tag === 1) {
13784
- const _ok = _bind$4;
13785
- _tmp$3 = _ok._0;
13799
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(metadata, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:250:41-250:64");
13800
+ let _tmp$2;
13801
+ if (_bind$3.$tag === 1) {
13802
+ const _ok = _bind$3;
13803
+ _tmp$2 = _ok._0;
13786
13804
  } else {
13787
- const _err = _bind$4;
13788
- const _tmp$4 = _err._0;
13789
- _try_err = _tmp$4;
13805
+ const _err = _bind$3;
13806
+ const _tmp$3 = _err._0;
13807
+ _try_err = _tmp$3;
13790
13808
  break _L;
13791
13809
  }
13792
- const metadata_json = zxch3n$flock$flock$$value_to_json(_tmp$3);
13810
+ const metadata_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
13793
13811
  metadata_value = zxch3n$flock$flock$$json_to_metadata(metadata_json);
13794
13812
  }
13795
13813
  let now_value;
13796
13814
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
13797
13815
  now_value = Option$None$8$;
13798
13816
  } else {
13799
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:259:12-259:30");
13817
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:256:12-256:30");
13818
+ let _tmp$2;
13819
+ if (_bind$3.$tag === 1) {
13820
+ const _ok = _bind$3;
13821
+ _tmp$2 = _ok._0;
13822
+ } else {
13823
+ const _err = _bind$3;
13824
+ const _tmp$3 = _err._0;
13825
+ _try_err = _tmp$3;
13826
+ break _L;
13827
+ }
13828
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:256:12-256:42");
13800
13829
  let _tmp$3;
13801
13830
  if (_bind$4.$tag === 1) {
13802
13831
  const _ok = _bind$4;
@@ -13807,43 +13836,32 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13807
13836
  _try_err = _tmp$4;
13808
13837
  break _L;
13809
13838
  }
13810
- const _bind$5 = Yoorkin$jmop$$Value$to_number(_tmp$3, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:259:12-259:42");
13811
- let _tmp$4;
13812
- if (_bind$5.$tag === 1) {
13813
- const _ok = _bind$5;
13814
- _tmp$4 = _ok._0;
13815
- } else {
13816
- const _err = _bind$5;
13817
- const _tmp$5 = _err._0;
13818
- _try_err = _tmp$5;
13819
- break _L;
13820
- }
13821
- now_value = new Option$Some$8$(_tmp$4);
13839
+ now_value = new Option$Some$8$(_tmp$3);
13822
13840
  }
13823
13841
  if (metadata_value === undefined) {
13824
- const _bind$4 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, Option$None$33$, now_value, Option$None$34$);
13825
- if (_bind$4.$tag === 1) {
13826
- const _ok = _bind$4;
13842
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, Option$None$33$, now_value, Option$None$34$);
13843
+ if (_bind$3.$tag === 1) {
13844
+ const _ok = _bind$3;
13827
13845
  _ok._0;
13828
13846
  return;
13829
13847
  } else {
13830
- const _err = _bind$4;
13831
- const _tmp$3 = _err._0;
13832
- _try_err = _tmp$3;
13848
+ const _err = _bind$3;
13849
+ const _tmp$2 = _err._0;
13850
+ _try_err = _tmp$2;
13833
13851
  break _L;
13834
13852
  }
13835
13853
  } else {
13836
13854
  const _Some = metadata_value;
13837
13855
  const _meta = _Some;
13838
- const _bind$4 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, new Option$Some$33$(_meta), now_value, Option$None$34$);
13839
- if (_bind$4.$tag === 1) {
13840
- const _ok = _bind$4;
13856
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_with_meta(self, key_json, value_json, new Option$Some$33$(_meta), now_value, Option$None$34$);
13857
+ if (_bind$3.$tag === 1) {
13858
+ const _ok = _bind$3;
13841
13859
  _ok._0;
13842
13860
  return;
13843
13861
  } else {
13844
- const _err = _bind$4;
13845
- const _tmp$3 = _err._0;
13846
- _try_err = _tmp$3;
13862
+ const _err = _bind$3;
13863
+ const _tmp$2 = _err._0;
13864
+ _try_err = _tmp$2;
13847
13865
  break _L;
13848
13866
  }
13849
13867
  }
@@ -13853,7 +13871,7 @@ function zxch3n$flock$flock$$Flock$put_with_meta_ffi(self, key, value, metadata,
13853
13871
  function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13854
13872
  let _try_err;
13855
13873
  _L: {
13856
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:281:21-281:39");
13874
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:278:21-278:39");
13857
13875
  let key_value;
13858
13876
  if (_bind.$tag === 1) {
13859
13877
  const _ok = _bind;
@@ -13864,7 +13882,7 @@ function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13864
13882
  _try_err = _tmp;
13865
13883
  break _L;
13866
13884
  }
13867
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:282:40-282:60");
13885
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:279:40-279:60");
13868
13886
  let key_arr;
13869
13887
  if (_bind$2.$tag === 1) {
13870
13888
  const _ok = _bind$2;
@@ -13894,7 +13912,7 @@ function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13894
13912
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
13895
13913
  now_value = Option$None$8$;
13896
13914
  } else {
13897
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:287:12-287:30");
13915
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:284:12-284:30");
13898
13916
  let _tmp$2;
13899
13917
  if (_bind$3.$tag === 1) {
13900
13918
  const _ok = _bind$3;
@@ -13905,7 +13923,7 @@ function zxch3n$flock$flock$$Flock$delete_ffi(self, key, now) {
13905
13923
  _try_err = _tmp$3;
13906
13924
  break _L;
13907
13925
  }
13908
- const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:287:12-287:42");
13926
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:284:12-284:42");
13909
13927
  let _tmp$3;
13910
13928
  if (_bind$4.$tag === 1) {
13911
13929
  const _ok = _bind$4;
@@ -13945,10 +13963,10 @@ function zxch3n$flock$flock$$Flock$kv_to_json_ffi(self) {
13945
13963
  return _p;
13946
13964
  }
13947
13965
  function zxch3n$flock$flock$$FlockDigest$copy(self) {
13948
- return { bytes: moonbitlang$core$array$$FixedArray$copy$13$(self.bytes) };
13966
+ return { bytes: moonbitlang$core$array$$FixedArray$copy$14$(self.bytes) };
13949
13967
  }
13950
13968
  function zxch3n$flock$flock$$FlockDigest$xor(self, digest) {
13951
- const bytes = moonbitlang$core$array$$FixedArray$copy$13$(self.bytes);
13969
+ const bytes = moonbitlang$core$array$$FixedArray$copy$14$(self.bytes);
13952
13970
  const digest_bytes = digest.bytes;
13953
13971
  let _tmp = 0;
13954
13972
  while (true) {
@@ -14071,7 +14089,7 @@ function zxch3n$flock$flock$$Flock$digest_hex_ffi(self) {
14071
14089
  function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14072
14090
  let _try_err;
14073
14091
  _L: {
14074
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:321:21-321:39");
14092
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:318:21-318:39");
14075
14093
  let key_value;
14076
14094
  if (_bind.$tag === 1) {
14077
14095
  const _ok = _bind;
@@ -14082,7 +14100,7 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14082
14100
  _try_err = _tmp;
14083
14101
  break _L;
14084
14102
  }
14085
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:322:40-322:60");
14103
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:319:40-319:60");
14086
14104
  let key_arr;
14087
14105
  if (_bind$2.$tag === 1) {
14088
14106
  const _ok = _bind$2;
@@ -14108,23 +14126,40 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14108
14126
  }
14109
14127
  }
14110
14128
  const key_json = _p;
14111
- const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:324:36-324:56");
14112
- let _tmp$2;
14113
- if (_bind$3.$tag === 1) {
14114
- const _ok = _bind$3;
14115
- _tmp$2 = _ok._0;
14116
- } else {
14117
- const _err = _bind$3;
14118
- const _tmp$3 = _err._0;
14119
- _try_err = _tmp$3;
14120
- break _L;
14129
+ let value_json;
14130
+ let _try_err$2;
14131
+ _L$2: {
14132
+ _L$3: {
14133
+ const _bind$3 = moonbitlang$core$json$$parse$46$inner({ str: value, start: 0, end: value.length }, 1024);
14134
+ if (_bind$3.$tag === 1) {
14135
+ const _ok = _bind$3;
14136
+ value_json = _ok._0;
14137
+ } else {
14138
+ const _err = _bind$3;
14139
+ const _tmp$2 = _err._0;
14140
+ _try_err$2 = _tmp$2;
14141
+ break _L$3;
14142
+ }
14143
+ break _L$2;
14144
+ }
14145
+ value_json = $panic();
14121
14146
  }
14122
- const value_json = zxch3n$flock$flock$$value_to_json(_tmp$2);
14123
14147
  let now_value;
14124
14148
  if (zxch3n$flock$flock$$any_is_undefined(now) || zxch3n$flock$flock$$any_is_null(now)) {
14125
14149
  now_value = Option$None$8$;
14126
14150
  } else {
14127
- const _bind$4 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:328:12-328:30");
14151
+ const _bind$3 = Yoorkin$jmop$$Any$unwrap_value(now, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:325:12-325:30");
14152
+ let _tmp$2;
14153
+ if (_bind$3.$tag === 1) {
14154
+ const _ok = _bind$3;
14155
+ _tmp$2 = _ok._0;
14156
+ } else {
14157
+ const _err = _bind$3;
14158
+ const _tmp$3 = _err._0;
14159
+ _try_err = _tmp$3;
14160
+ break _L;
14161
+ }
14162
+ const _bind$4 = Yoorkin$jmop$$Value$to_number(_tmp$2, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:325:12-325:42");
14128
14163
  let _tmp$3;
14129
14164
  if (_bind$4.$tag === 1) {
14130
14165
  const _ok = _bind$4;
@@ -14135,28 +14170,17 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14135
14170
  _try_err = _tmp$4;
14136
14171
  break _L;
14137
14172
  }
14138
- const _bind$5 = Yoorkin$jmop$$Value$to_number(_tmp$3, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:328:12-328:42");
14139
- let _tmp$4;
14140
- if (_bind$5.$tag === 1) {
14141
- const _ok = _bind$5;
14142
- _tmp$4 = _ok._0;
14143
- } else {
14144
- const _err = _bind$5;
14145
- const _tmp$5 = _err._0;
14146
- _try_err = _tmp$5;
14147
- break _L;
14148
- }
14149
- now_value = new Option$Some$8$(_tmp$4);
14173
+ now_value = new Option$Some$8$(_tmp$3);
14150
14174
  }
14151
- const _bind$4 = zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key_json, value_json, now_value);
14152
- if (_bind$4.$tag === 1) {
14153
- const _ok = _bind$4;
14175
+ const _bind$3 = zxch3n$flock$flock$$Flock$put_mvr$46$inner(self, key_json, value_json, now_value);
14176
+ if (_bind$3.$tag === 1) {
14177
+ const _ok = _bind$3;
14154
14178
  _ok._0;
14155
14179
  return;
14156
14180
  } else {
14157
- const _err = _bind$4;
14158
- const _tmp$3 = _err._0;
14159
- _try_err = _tmp$3;
14181
+ const _err = _bind$3;
14182
+ const _tmp$2 = _err._0;
14183
+ _try_err = _tmp$2;
14160
14184
  break _L;
14161
14185
  }
14162
14186
  }
@@ -14165,7 +14189,7 @@ function zxch3n$flock$flock$$Flock$put_mvr_ffi(self, key, value, now) {
14165
14189
  function zxch3n$flock$flock$$Flock$get_mvr_ffi(self, key) {
14166
14190
  let _try_err;
14167
14191
  _L: {
14168
- const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:337:21-337:39");
14192
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(key, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:334:21-334:39");
14169
14193
  let key_value;
14170
14194
  if (_bind.$tag === 1) {
14171
14195
  const _ok = _bind;
@@ -14176,7 +14200,7 @@ function zxch3n$flock$flock$$Flock$get_mvr_ffi(self, key) {
14176
14200
  _try_err = _tmp;
14177
14201
  break _L;
14178
14202
  }
14179
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:338:40-338:60");
14203
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(key_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:335:40-335:60");
14180
14204
  let key_arr;
14181
14205
  if (_bind$2.$tag === 1) {
14182
14206
  const _ok = _bind$2;
@@ -14211,7 +14235,7 @@ function zxch3n$flock$flock$$Flock$get_mvr_ffi(self, key) {
14211
14235
  function zxch3n$flock$flock$$from_json_ffi(json, peer_id) {
14212
14236
  let _try_err;
14213
14237
  _L: {
14214
- const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:348:22-348:41");
14238
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(json, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:345:22-345:41");
14215
14239
  let json_value;
14216
14240
  if (_bind.$tag === 1) {
14217
14241
  const _ok = _bind;
@@ -14223,7 +14247,7 @@ function zxch3n$flock$flock$$from_json_ffi(json, peer_id) {
14223
14247
  break _L;
14224
14248
  }
14225
14249
  const parsed = zxch3n$flock$flock$$value_to_json(json_value);
14226
- const _bind$2 = Yoorkin$jmop$$Any$unwrap_value(peer_id, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:350:22-350:44");
14250
+ const _bind$2 = Yoorkin$jmop$$Any$unwrap_value(peer_id, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:347:22-347:44");
14227
14251
  let peer_value;
14228
14252
  if (_bind$2.$tag === 1) {
14229
14253
  const _ok = _bind$2;
@@ -14234,7 +14258,7 @@ function zxch3n$flock$flock$$from_json_ffi(json, peer_id) {
14234
14258
  _try_err = _tmp;
14235
14259
  break _L;
14236
14260
  }
14237
- const _bind$3 = Yoorkin$jmop$$Value$to_string(peer_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:351:20-351:42");
14261
+ const _bind$3 = Yoorkin$jmop$$Value$to_string(peer_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:348:20-348:42");
14238
14262
  let peer_hex;
14239
14263
  if (_bind$3.$tag === 1) {
14240
14264
  const _ok = _bind$3;
@@ -14265,7 +14289,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14265
14289
  if (zxch3n$flock$flock$$any_is_undefined(start) || zxch3n$flock$flock$$any_is_null(start)) {
14266
14290
  start_bound = $64$zxch3n$47$flock$47$sorted_map$46$Bound$Unbounded$29$;
14267
14291
  } else {
14268
- const _bind = Yoorkin$jmop$$Any$unwrap_value(start, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:367:25-367:45");
14292
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(start, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:364:25-364:45");
14269
14293
  let start_value;
14270
14294
  if (_bind.$tag === 1) {
14271
14295
  const _ok = _bind;
@@ -14282,7 +14306,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14282
14306
  if (zxch3n$flock$flock$$any_is_undefined(end) || zxch3n$flock$flock$$any_is_null(end)) {
14283
14307
  end_bound = $64$zxch3n$47$flock$47$sorted_map$46$Bound$Unbounded$29$;
14284
14308
  } else {
14285
- const _bind = Yoorkin$jmop$$Any$unwrap_value(end, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:373:23-373:41");
14309
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(end, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:370:23-370:41");
14286
14310
  let end_value;
14287
14311
  if (_bind.$tag === 1) {
14288
14312
  const _ok = _bind;
@@ -14299,7 +14323,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14299
14323
  if (zxch3n$flock$flock$$any_is_undefined(prefix) || zxch3n$flock$flock$$any_is_null(prefix)) {
14300
14324
  prefix_filter = Option$None$29$;
14301
14325
  } else {
14302
- const _bind = Yoorkin$jmop$$Any$unwrap_value(prefix, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:379:26-379:47");
14326
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(prefix, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:376:26-376:47");
14303
14327
  let prefix_value;
14304
14328
  if (_bind.$tag === 1) {
14305
14329
  const _ok = _bind;
@@ -14310,7 +14334,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14310
14334
  _try_err = _tmp;
14311
14335
  break _L;
14312
14336
  }
14313
- const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(prefix_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:380:45-380:68");
14337
+ const _bind$2 = Yoorkin$jmop$$Value$to_array$76$(prefix_value, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:377:45-377:68");
14314
14338
  let prefix_arr;
14315
14339
  if (_bind$2.$tag === 1) {
14316
14340
  const _ok = _bind$2;
@@ -14337,7 +14361,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14337
14361
  }
14338
14362
  prefix_filter = new Option$Some$29$(_p);
14339
14363
  }
14340
- const rows = moonbitlang$core$array$$Array$new$46$inner$14$(0);
14364
+ const rows = moonbitlang$core$array$$Array$new$46$inner$12$(0);
14341
14365
  let scan_iter;
14342
14366
  if (prefix_filter.$tag === 1) {
14343
14367
  const _Some = prefix_filter;
@@ -14357,7 +14381,7 @@ function zxch3n$flock$flock$$Flock$scan_ffi(self, start, end, prefix) {
14357
14381
  const _data = _Some;
14358
14382
  moonbitlang$core$builtin$$Map$set$37$(obj, "value", _data);
14359
14383
  }
14360
- moonbitlang$core$array$$Array$push$14$(rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14384
+ moonbitlang$core$array$$Array$push$12$(rows, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14361
14385
  return 1;
14362
14386
  });
14363
14387
  const _p = zxch3n$flock$flock$$json_to_value(moonbitlang$core$builtin$$ToJson$to_json$32$(rows));
@@ -14406,7 +14430,7 @@ function zxch3n$flock$flock$$raw_value_payload_to_json(value) {
14406
14430
  function zxch3n$flock$flock$$Flock$subscribe_ffi(self, listener) {
14407
14431
  let _try_err;
14408
14432
  _L: {
14409
- const _bind = Yoorkin$jmop$$Any$unwrap_value(listener, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:429:26-429:49");
14433
+ const _bind = Yoorkin$jmop$$Any$unwrap_value(listener, "/home/runner/work/flock/flock/moon/flock/ffi-js.mbt:426:26-426:49");
14410
14434
  let listener_value;
14411
14435
  if (_bind.$tag === 1) {
14412
14436
  const _ok = _bind;
@@ -14418,7 +14442,7 @@ function zxch3n$flock$flock$$Flock$subscribe_ffi(self, listener) {
14418
14442
  break _L;
14419
14443
  }
14420
14444
  const unsubscribe = zxch3n$flock$flock$$Flock$subscribe(self, (batch) => {
14421
- const events = moonbitlang$core$array$$Array$new$46$inner$14$(0);
14445
+ const events = moonbitlang$core$array$$Array$new$46$inner$12$(0);
14422
14446
  let _tmp = 0;
14423
14447
  while (true) {
14424
14448
  const i = _tmp;
@@ -14443,7 +14467,7 @@ function zxch3n$flock$flock$$Flock$subscribe_ffi(self, listener) {
14443
14467
  moonbitlang$core$builtin$$Map$set$37$(obj, "metadata", zxch3n$flock$flock$$metadata_map_to_json(_meta));
14444
14468
  }
14445
14469
  moonbitlang$core$builtin$$Map$set$37$(obj, "payload", zxch3n$flock$flock$$raw_value_payload_to_json(_value));
14446
- moonbitlang$core$array$$Array$push$14$(events, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14470
+ moonbitlang$core$array$$Array$push$12$(events, moonbitlang$core$builtin$$ToJson$to_json$33$(obj));
14447
14471
  _tmp = i + 1 | 0;
14448
14472
  continue;
14449
14473
  } else {