@gct-paas/excel 0.1.31 → 0.1.33-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/{BaseComponent-CC5rukQG.js → BaseComponent-BQ1yDI7t.js} +1 -1
  2. package/dist/{VueVideoPlayer-h_ZG9FHq.js → VueVideoPlayer-B_ZVi5G-.js} +2 -2
  3. package/dist/{align-editor-CnDiBeYX.js → align-editor-B_lvWYQG.js} +1 -1
  4. package/dist/{barcode-design-BhSK1vmq.js → barcode-design-Cfys0qZp.js} +2 -2
  5. package/dist/base/index.es.js +98 -98
  6. package/dist/{diagonal-design-C5bKnBTH.js → diagonal-design-COCeFGwR.js} +2 -2
  7. package/dist/{dynamic-table-action-C06Eolmw.js → dynamic-table-action-Cu1Le9hH.js} +108 -18
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CeMxIrHD.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-b00q9wdA.js} +1691 -338
  9. package/dist/{edit.utils-CXmmCnxE-DgR7eBfx.js → edit.utils-CXmmCnxE-BOncn5LV.js} +1 -1
  10. package/dist/excel.css +159 -57
  11. package/dist/{exceljs.min-W6Y0ler1.js → exceljs.min-c52EOEt7.js} +2 -2
  12. package/dist/{font-editor-D78qB7n2.js → font-editor-DQPdqXg5.js} +3 -3
  13. package/dist/{image-design-DipYIW7J.js → image-design-cooz4TPa.js} +2 -2
  14. package/dist/{index-CwKZP5vj.js → index-9oHgC7oG.js} +3 -3
  15. package/dist/{index-D7uEmsRJ.js → index-B8_k53zw.js} +2 -2
  16. package/dist/{index-BSDIqsy-.js → index-B8f6-KiD.js} +1 -1
  17. package/dist/{index-DyJk8rK7.js → index-BBcfyTk1.js} +2 -2
  18. package/dist/{index-BX7fyebb.js → index-BLK7v5CG.js} +1 -1
  19. package/dist/{index-ClPbkivx.js → index-BOR2505F.js} +2 -2
  20. package/dist/{index-BVyNEH4i.js → index-BYqRgQVr.js} +1 -1
  21. package/dist/{index-B_-itxOF.js → index-BZn98fN7.js} +2 -2
  22. package/dist/{index-Cl6vrDfE.js → index-Bb2S-dei.js} +2 -2
  23. package/dist/{index-DwCjfahr.js → index-BemQL5y4.js} +1 -1
  24. package/dist/{index-15gZRWSR.js → index-BfGmSyp1.js} +1 -1
  25. package/dist/{index-xg-4TTup.js → index-Brh1l6iq.js} +2 -2
  26. package/dist/{index-D77cqI26.js → index-BuEjse-J.js} +1 -1
  27. package/dist/{index-SBCDnZw0.js → index-CNCGtCtF.js} +2 -2
  28. package/dist/{index-CSYDq2d0.js → index-CO4nNHM3.js} +3 -3
  29. package/dist/{index-C2Vp8cfi.js → index-Cmn7U02v.js} +3 -3
  30. package/dist/{index-COziY8Q9.js → index-Cvkw3W_d.js} +1970 -3011
  31. package/dist/{index-7uJnJBMV.js → index-CwWF4fNs.js} +2 -2
  32. package/dist/{index-Cca1mHnO.js → index-DSuZfLKu.js} +1 -1
  33. package/dist/{index-DH7pin31.js → index-DaEaDjdh.js} +2 -2
  34. package/dist/{index-8yIbmmaT.js → index-Dj0L8eKP.js} +2 -2
  35. package/dist/{index-B2uQ_Gpo.js → index-Dnau-LCe.js} +1 -1
  36. package/dist/{index-DkBu7mHZ.js → index-Dw_qNOpG.js} +2 -2
  37. package/dist/{index-BzWrm1H6.js → index-DyDtfr2s.js} +1 -1
  38. package/dist/{index-DipVkgpu.js → index-DzbK_ZWg.js} +2 -2
  39. package/dist/{index-C2LjfZ8T.js → index-GAho8RX_.js} +2 -2
  40. package/dist/{index-DtBIvDQH.js → index-OI5mKlGl.js} +1 -1
  41. package/dist/{index-CoqaGOXy.js → index-Oi_LYhHE.js} +2 -2
  42. package/dist/{index-hdnCCYft.js → index-XnJJgOdm.js} +2 -2
  43. package/dist/{index-CityyB9B.js → index-Xtis59gq.js} +3 -3
  44. package/dist/{index-BRNL7Liz.js → index-ZAtxWzkI.js} +3 -3
  45. package/dist/{index-BhReeJJg.js → index-cSg5gTIu.js} +2 -2
  46. package/dist/{index-CSgBgTvS.js → index-n5VrYAZv.js} +2 -2
  47. package/dist/{index-4oVjbEL5.js → index-ulKkTYuc.js} +2 -2
  48. package/dist/index.es.js +2 -2
  49. package/dist/{mb-render-BVp5fqUK.js → mb-render-DriWft67.js} +1 -1
  50. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-0eC-BT2j.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CcJt835R.js} +1 -1
  51. package/dist/{pagination-design-DA-_t_88.js → pagination-design-Bl-7ZdF0.js} +2 -2
  52. package/dist/paper-widget-design-CUHfm9rZ.js +4 -0
  53. package/dist/{qrcode-design-CinxStTi.js → qrcode-design-Bz74HviL.js} +1 -1
  54. package/dist/{revo-grid.entry-ByZf-Mkh.js → revo-grid.entry-DyC3Ie1V.js} +1 -1
  55. package/dist/{revogr-attribution_7.entry-Bkbb15P7.js → revogr-attribution_7.entry-BX3LvtVl.js} +3 -3
  56. package/dist/{revogr-clipboard_3.entry-BAsnJv1y.js → revogr-clipboard_3.entry-CIsl8Vf6.js} +2 -2
  57. package/dist/{revogr-data_4.entry-Cpmztqm8.js → revogr-data_4.entry-DZN_LFSr.js} +2 -2
  58. package/dist/{revogr-filter-panel.entry-CUJGzSbz.js → revogr-filter-panel.entry-B6YKEctL.js} +1 -1
  59. package/dist/{serialnumber-design-CtnZEPSs.js → serialnumber-design-Ad6LwvpG.js} +1 -1
  60. package/dist/shared/index.es.js +16 -16
  61. package/dist/{single-field-drop-3QT5uEs2.js → single-field-drop-BUs_erWr.js} +2 -2
  62. package/dist/{size-editor-DbOpQm-C.js → size-editor-Vti8btyq.js} +1 -1
  63. package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +10 -2
  64. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +5 -0
  65. package/dist/src/nocode-base/src/types/common/base.d.ts +2 -1
  66. package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +1 -1
  67. package/dist/src/nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts +1 -1
  68. package/dist/{text-design-z3nPt5nt.js → text-design-5_QVg_51.js} +2 -2
  69. package/dist/{throttle-Cpk1LoGk-CMDdqI7x.js → throttle-Cpk1LoGk-BEdxlFV2.js} +1 -1
  70. package/dist/{timediff-design-D9liVCTr.js → timediff-design-Bq8bixda.js} +1 -1
  71. package/dist/{trace-like-wrapper-DFlS2J54.js → trace-like-wrapper-BADoff39.js} +2 -2
  72. package/dist/{value-editor.vue_vue_type_style_index_0_lang-BfrsHrfu.js → value-editor.vue_vue_type_style_index_0_lang-Ctur5316.js} +2 -2
  73. package/dist/web-render/index.es.js +3 -3
  74. package/dist/{widget-barcode-CKGbepxS.js → widget-barcode-BZPMW3xm.js} +4 -4
  75. package/dist/{widget-diagonal-CQq6NMte.js → widget-diagonal-CEK9zT4F.js} +3 -3
  76. package/dist/{widget-image-B3mXg_Ob.js → widget-image-BREa1eP3.js} +5 -5
  77. package/dist/{widget-line-Bak3xZHA.js → widget-line-D1gy7UjT.js} +2 -2
  78. package/dist/{widget-pagination-DfizNhAI.js → widget-pagination-C6IuJtde.js} +5 -5
  79. package/dist/{widget-power-Bb5a25Rn.js → widget-power-CMbgf3lp.js} +3 -3
  80. package/dist/{widget-qrcode-D8mSkW8z.js → widget-qrcode-DYV1Thgb.js} +3 -3
  81. package/dist/{widget-rangelimit-C1F1Y2lp.js → widget-rangelimit-DIFMYtBx.js} +3 -3
  82. package/dist/{widget-serialnumber-B2lDnGNW.js → widget-serialnumber-BhTM0Hxl.js} +1 -1
  83. package/dist/{widget-text-B3rS99t1.js → widget-text-Drnj12hi.js} +5 -5
  84. package/dist/{widget-timediff-DgjCFZg7.js → widget-timediff-BKmpj3uq.js} +2 -2
  85. package/package.json +1 -1
  86. package/dist/paper-widget-design-u42zDeap.js +0 -4
@@ -8267,7 +8267,7 @@ function requireEstraverse() {
8267
8267
  if (hasRequiredEstraverse) return estraverse$1;
8268
8268
  hasRequiredEstraverse = 1;
8269
8269
  (function(exports2) {
8270
- (function clone(exports3) {
8270
+ (function clone2(exports3) {
8271
8271
  var Syntax2, VisitorOption, VisitorKeys, BREAK, SKIP, REMOVE;
8272
8272
  function deepCopy(obj) {
8273
8273
  var ret = {}, key, val;
@@ -8872,7 +8872,7 @@ function requireEstraverse() {
8872
8872
  exports3.VisitorOption = VisitorOption;
8873
8873
  exports3.Controller = Controller;
8874
8874
  exports3.cloneEnvironment = function() {
8875
- return clone({});
8875
+ return clone2({});
8876
8876
  };
8877
8877
  return exports3;
8878
8878
  })(exports2);
@@ -8969,7 +8969,7 @@ function requireBigInteger() {
8969
8969
  hasRequiredBigInteger = 1;
8970
8970
  (function(module2) {
8971
8971
  var bigInt = (function(undefined$1) {
8972
- var BASE = 1e7, LOG_BASE = 7, MAX_INT = 9007199254740992, MAX_INT_ARR = smallToArray(MAX_INT), DEFAULT_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz";
8972
+ var BASE2 = 1e7, LOG_BASE2 = 7, MAX_INT = 9007199254740992, MAX_INT_ARR = smallToArray(MAX_INT), DEFAULT_ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz";
8973
8973
  var supportsNativeBigInt = typeof BigInt === "function";
8974
8974
  function Integer(v, radix, alphabet, caseSensitive) {
8975
8975
  if (typeof v === "undefined") return Integer[0];
@@ -9012,9 +9012,9 @@ function requireBigInteger() {
9012
9012
  case 1:
9013
9013
  return arr[0];
9014
9014
  case 2:
9015
- return arr[0] + arr[1] * BASE;
9015
+ return arr[0] + arr[1] * BASE2;
9016
9016
  default:
9017
- return arr[0] + (arr[1] + arr[2] * BASE) * BASE;
9017
+ return arr[0] + (arr[1] + arr[2] * BASE2) * BASE2;
9018
9018
  }
9019
9019
  }
9020
9020
  return arr;
@@ -9037,7 +9037,7 @@ function requireBigInteger() {
9037
9037
  return Math.ceil(n);
9038
9038
  }
9039
9039
  function add(a, b) {
9040
- var l_a = a.length, l_b = b.length, r = new Array(l_a), carry = 0, base = BASE, sum, i3;
9040
+ var l_a = a.length, l_b = b.length, r = new Array(l_a), carry = 0, base = BASE2, sum, i3;
9041
9041
  for (i3 = 0; i3 < l_b; i3++) {
9042
9042
  sum = a[i3] + b[i3] + carry;
9043
9043
  carry = sum >= base ? 1 : 0;
@@ -9056,7 +9056,7 @@ function requireBigInteger() {
9056
9056
  return add(b, a);
9057
9057
  }
9058
9058
  function addSmall(a, carry) {
9059
- var l = a.length, r = new Array(l), base = BASE, sum, i3;
9059
+ var l = a.length, r = new Array(l), base = BASE2, sum, i3;
9060
9060
  for (i3 = 0; i3 < l; i3++) {
9061
9061
  sum = a[i3] - base + carry;
9062
9062
  carry = Math.floor(sum / base);
@@ -9100,7 +9100,7 @@ function requireBigInteger() {
9100
9100
  };
9101
9101
  NativeBigInt.prototype.plus = NativeBigInt.prototype.add;
9102
9102
  function subtract(a, b) {
9103
- var a_l = a.length, b_l = b.length, r = new Array(a_l), borrow = 0, base = BASE, i3, difference;
9103
+ var a_l = a.length, b_l = b.length, r = new Array(a_l), borrow = 0, base = BASE2, i3, difference;
9104
9104
  for (i3 = 0; i3 < b_l; i3++) {
9105
9105
  difference = a[i3] - borrow - b[i3];
9106
9106
  if (difference < 0) {
@@ -9140,7 +9140,7 @@ function requireBigInteger() {
9140
9140
  return new BigInteger2(value, sign);
9141
9141
  }
9142
9142
  function subtractSmall(a, b, sign) {
9143
- var l = a.length, r = new Array(l), carry = -b, base = BASE, i3, difference;
9143
+ var l = a.length, r = new Array(l), carry = -b, base = BASE2, i3, difference;
9144
9144
  for (i3 = 0; i3 < l; i3++) {
9145
9145
  difference = a[i3] + carry;
9146
9146
  carry = Math.floor(difference / base);
@@ -9204,7 +9204,7 @@ function requireBigInteger() {
9204
9204
  return new NativeBigInt(this.value >= 0 ? this.value : -this.value);
9205
9205
  };
9206
9206
  function multiplyLong(a, b) {
9207
- var a_l = a.length, b_l = b.length, l = a_l + b_l, r = createArray(l), base = BASE, product, carry, i3, a_i, b_j;
9207
+ var a_l = a.length, b_l = b.length, l = a_l + b_l, r = createArray(l), base = BASE2, product, carry, i3, a_i, b_j;
9208
9208
  for (i3 = 0; i3 < a_l; ++i3) {
9209
9209
  a_i = a[i3];
9210
9210
  for (var j = 0; j < b_l; ++j) {
@@ -9219,7 +9219,7 @@ function requireBigInteger() {
9219
9219
  return r;
9220
9220
  }
9221
9221
  function multiplySmall(a, b) {
9222
- var l = a.length, r = new Array(l), base = BASE, carry = 0, product, i3;
9222
+ var l = a.length, r = new Array(l), base = BASE2, carry = 0, product, i3;
9223
9223
  for (i3 = 0; i3 < l; i3++) {
9224
9224
  product = a[i3] * b + carry;
9225
9225
  carry = Math.floor(product / base);
@@ -9256,7 +9256,7 @@ function requireBigInteger() {
9256
9256
  if (b === 1) return this;
9257
9257
  if (b === -1) return this.negate();
9258
9258
  abs = Math.abs(b);
9259
- if (abs < BASE) {
9259
+ if (abs < BASE2) {
9260
9260
  return new BigInteger2(multiplySmall(a, abs), sign);
9261
9261
  }
9262
9262
  b = smallToArray(abs);
@@ -9267,7 +9267,7 @@ function requireBigInteger() {
9267
9267
  };
9268
9268
  BigInteger2.prototype.times = BigInteger2.prototype.multiply;
9269
9269
  function multiplySmallAndArray(a, b, sign) {
9270
- if (a < BASE) {
9270
+ if (a < BASE2) {
9271
9271
  return new BigInteger2(multiplySmall(b, a), sign);
9272
9272
  }
9273
9273
  return new BigInteger2(multiplyLong(b, smallToArray(a)), sign);
@@ -9293,7 +9293,7 @@ function requireBigInteger() {
9293
9293
  };
9294
9294
  NativeBigInt.prototype.times = NativeBigInt.prototype.multiply;
9295
9295
  function square(a) {
9296
- var l = a.length, r = createArray(l + l), base = BASE, product, carry, i3, a_i, a_j;
9296
+ var l = a.length, r = createArray(l + l), base = BASE2, product, carry, i3, a_i, a_j;
9297
9297
  for (i3 = 0; i3 < l; i3++) {
9298
9298
  a_i = a[i3];
9299
9299
  carry = 0 - a_i * a_i;
@@ -9320,7 +9320,7 @@ function requireBigInteger() {
9320
9320
  return new NativeBigInt(this.value * this.value);
9321
9321
  };
9322
9322
  function divMod1(a, b) {
9323
- var a_l = a.length, b_l = b.length, base = BASE, result = createArray(b.length), divisorMostSignificantDigit = b[b_l - 1], lambda = Math.ceil(base / (2 * divisorMostSignificantDigit)), remainder = multiplySmall(a, lambda), divisor = multiplySmall(b, lambda), quotientDigit, shift, carry, borrow, i3, l, q2;
9323
+ var a_l = a.length, b_l = b.length, base = BASE2, result = createArray(b.length), divisorMostSignificantDigit = b[b_l - 1], lambda = Math.ceil(base / (2 * divisorMostSignificantDigit)), remainder = multiplySmall(a, lambda), divisor = multiplySmall(b, lambda), quotientDigit, shift, carry, borrow, i3, l, q2;
9324
9324
  if (remainder.length <= a_l) remainder.push(0);
9325
9325
  divisor.push(0);
9326
9326
  divisorMostSignificantDigit = divisor[b_l - 1];
@@ -9366,7 +9366,7 @@ function requireBigInteger() {
9366
9366
  return [arrayToSmall(result), arrayToSmall(remainder)];
9367
9367
  }
9368
9368
  function divMod2(a, b) {
9369
- var a_l = a.length, b_l = b.length, result = [], part = [], base = BASE, guess, xlen, highx, highy, check;
9369
+ var a_l = a.length, b_l = b.length, result = [], part = [], base = BASE2, guess, xlen, highx, highy, check;
9370
9370
  while (a_l) {
9371
9371
  part.unshift(a[--a_l]);
9372
9372
  trim(part);
@@ -9393,7 +9393,7 @@ function requireBigInteger() {
9393
9393
  return [arrayToSmall(result), arrayToSmall(part)];
9394
9394
  }
9395
9395
  function divModSmall(value, lambda) {
9396
- var length = value.length, quotient = createArray(length), base = BASE, i3, q2, remainder, divisor;
9396
+ var length = value.length, quotient = createArray(length), base = BASE2, i3, q2, remainder, divisor;
9397
9397
  remainder = 0;
9398
9398
  for (i3 = length - 1; i3 >= 0; --i3) {
9399
9399
  divisor = remainder * base + value[i3];
@@ -9421,7 +9421,7 @@ function requireBigInteger() {
9421
9421
  if (b === 1) return [self2, Integer[0]];
9422
9422
  if (b == -1) return [self2.negate(), Integer[0]];
9423
9423
  var abs = Math.abs(b);
9424
- if (abs < BASE) {
9424
+ if (abs < BASE2) {
9425
9425
  value = divModSmall(a, abs);
9426
9426
  quotient = arrayToSmall(value[0]);
9427
9427
  var remainder = value[1];
@@ -9800,10 +9800,10 @@ function requireBigInteger() {
9800
9800
  return new NativeBigInt(this.value - BigInt(1));
9801
9801
  };
9802
9802
  var powersOfTwo = [1];
9803
- while (2 * powersOfTwo[powersOfTwo.length - 1] <= BASE) powersOfTwo.push(2 * powersOfTwo[powersOfTwo.length - 1]);
9803
+ while (2 * powersOfTwo[powersOfTwo.length - 1] <= BASE2) powersOfTwo.push(2 * powersOfTwo[powersOfTwo.length - 1]);
9804
9804
  var powers2Length = powersOfTwo.length, highestPower2 = powersOfTwo[powers2Length - 1];
9805
9805
  function shift_isSmall(n) {
9806
- return Math.abs(n) <= BASE;
9806
+ return Math.abs(n) <= BASE2;
9807
9807
  }
9808
9808
  BigInteger2.prototype.shiftLeft = function(v) {
9809
9809
  var n = parseValue(v).toJSNumber();
@@ -9888,9 +9888,9 @@ function requireBigInteger() {
9888
9888
  });
9889
9889
  };
9890
9890
  NativeBigInt.prototype.xor = SmallInteger.prototype.xor = BigInteger2.prototype.xor;
9891
- var LOBMASK_I = 1 << 30, LOBMASK_BI = (BASE & -BASE) * (BASE & -BASE) | LOBMASK_I;
9891
+ var LOBMASK_I = 1 << 30, LOBMASK_BI = (BASE2 & -BASE2) * (BASE2 & -BASE2) | LOBMASK_I;
9892
9892
  function roughLOB(n) {
9893
- var v = n.value, x = typeof v === "number" ? v | LOBMASK_I : typeof v === "bigint" ? v | BigInt(LOBMASK_I) : v[0] + v[1] * BASE | LOBMASK_BI;
9893
+ var v = n.value, x = typeof v === "number" ? v | LOBMASK_I : typeof v === "bigint" ? v | BigInt(LOBMASK_I) : v[0] + v[1] * BASE2 | LOBMASK_BI;
9894
9894
  return x & -x;
9895
9895
  }
9896
9896
  function integerLogarithm(value, base) {
@@ -9965,15 +9965,15 @@ function requireBigInteger() {
9965
9965
  var low = min(a, b), high = max(a, b);
9966
9966
  var range3 = high.subtract(low).add(1);
9967
9967
  if (range3.isSmall) return low.add(Math.floor(usedRNG() * range3));
9968
- var digits = toBase(range3, BASE).value;
9968
+ var digits = toBase(range3, BASE2).value;
9969
9969
  var result = [], restricted = true;
9970
9970
  for (var i3 = 0; i3 < digits.length; i3++) {
9971
- var top = restricted ? digits[i3] + (i3 + 1 < digits.length ? digits[i3 + 1] / BASE : 0) : BASE;
9971
+ var top = restricted ? digits[i3] + (i3 + 1 < digits.length ? digits[i3 + 1] / BASE2 : 0) : BASE2;
9972
9972
  var digit = truncate(usedRNG() * top);
9973
9973
  result.push(digit);
9974
9974
  if (digit < digits[i3]) restricted = false;
9975
9975
  }
9976
- return low.add(Integer.fromArray(result, BASE, false));
9976
+ return low.add(Integer.fromArray(result, BASE2, false));
9977
9977
  }
9978
9978
  var parseBase = function(text, base, alphabet, caseSensitive) {
9979
9979
  alphabet = alphabet || DEFAULT_ALPHABET;
@@ -10157,7 +10157,7 @@ function requireBigInteger() {
10157
10157
  if (supportsNativeBigInt) {
10158
10158
  return new NativeBigInt(BigInt(sign ? "-" + v : v));
10159
10159
  }
10160
- var r = [], max2 = v.length, l = LOG_BASE, min2 = max2 - l;
10160
+ var r = [], max2 = v.length, l = LOG_BASE2, min2 = max2 - l;
10161
10161
  while (max2 > 0) {
10162
10162
  r.push(+v.slice(min2, max2));
10163
10163
  min2 -= l;
@@ -62271,6 +62271,1337 @@ function getSubTableQuickFillInfo(subTableFieldId, mobileTdIdGroups) {
62271
62271
  if (!subTableFieldId) return;
62272
62272
  return assignWidgetInfo(MobileFillTypeEnum.SUB_TABLE, { rowSubFieldKey: subTableFieldId });
62273
62273
  }
62274
+ var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mathceil = Math.ceil, mathfloor = Math.floor, bignumberError = "[BigNumber Error] ", tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ", BASE = 1e14, LOG_BASE = 14, MAX_SAFE_INTEGER$2 = 9007199254740991, POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], SQRT_BASE = 1e7, MAX = 1e9;
62275
+ function clone(configObject) {
62276
+ var div, convertBase, parseNumeric, P2 = BigNumber2.prototype = { constructor: BigNumber2, toString: null, valueOf: null }, ONE = new BigNumber2(1), DECIMAL_PLACES = 20, ROUNDING_MODE = 4, TO_EXP_NEG = -7, TO_EXP_POS = 21, MIN_EXP = -1e7, MAX_EXP = 1e7, CRYPTO = false, MODULO_MODE = 1, POW_PRECISION = 0, FORMAT = {
62277
+ prefix: "",
62278
+ groupSize: 3,
62279
+ secondaryGroupSize: 0,
62280
+ groupSeparator: ",",
62281
+ decimalSeparator: ".",
62282
+ fractionGroupSize: 0,
62283
+ fractionGroupSeparator: " ",
62284
+ // non-breaking space
62285
+ suffix: ""
62286
+ }, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true;
62287
+ function BigNumber2(v, b) {
62288
+ var alphabet, c2, caseChanged, e, i2, isNum, len, str, x = this;
62289
+ if (!(x instanceof BigNumber2)) return new BigNumber2(v, b);
62290
+ if (b == null) {
62291
+ if (v && v._isBigNumber === true) {
62292
+ x.s = v.s;
62293
+ if (!v.c || v.e > MAX_EXP) {
62294
+ x.c = x.e = null;
62295
+ } else if (v.e < MIN_EXP) {
62296
+ x.c = [x.e = 0];
62297
+ } else {
62298
+ x.e = v.e;
62299
+ x.c = v.c.slice();
62300
+ }
62301
+ return;
62302
+ }
62303
+ if ((isNum = typeof v == "number") && v * 0 == 0) {
62304
+ x.s = 1 / v < 0 ? (v = -v, -1) : 1;
62305
+ if (v === ~~v) {
62306
+ for (e = 0, i2 = v; i2 >= 10; i2 /= 10, e++) ;
62307
+ if (e > MAX_EXP) {
62308
+ x.c = x.e = null;
62309
+ } else {
62310
+ x.e = e;
62311
+ x.c = [v];
62312
+ }
62313
+ return;
62314
+ }
62315
+ str = String(v);
62316
+ } else {
62317
+ if (!isNumeric.test(str = String(v))) return parseNumeric(x, str, isNum);
62318
+ x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;
62319
+ }
62320
+ if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
62321
+ if ((i2 = str.search(/e/i)) > 0) {
62322
+ if (e < 0) e = i2;
62323
+ e += +str.slice(i2 + 1);
62324
+ str = str.substring(0, i2);
62325
+ } else if (e < 0) {
62326
+ e = str.length;
62327
+ }
62328
+ } else {
62329
+ intCheck(b, 2, ALPHABET.length, "Base");
62330
+ if (b == 10 && alphabetHasNormalDecimalDigits) {
62331
+ x = new BigNumber2(v);
62332
+ return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);
62333
+ }
62334
+ str = String(v);
62335
+ if (isNum = typeof v == "number") {
62336
+ if (v * 0 != 0) return parseNumeric(x, str, isNum, b);
62337
+ x.s = 1 / v < 0 ? (str = str.slice(1), -1) : 1;
62338
+ if (BigNumber2.DEBUG && str.replace(/^0\.0*|\./, "").length > 15) {
62339
+ throw Error(tooManyDigits + v);
62340
+ }
62341
+ } else {
62342
+ x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
62343
+ }
62344
+ alphabet = ALPHABET.slice(0, b);
62345
+ e = i2 = 0;
62346
+ for (len = str.length; i2 < len; i2++) {
62347
+ if (alphabet.indexOf(c2 = str.charAt(i2)) < 0) {
62348
+ if (c2 == ".") {
62349
+ if (i2 > e) {
62350
+ e = len;
62351
+ continue;
62352
+ }
62353
+ } else if (!caseChanged) {
62354
+ if (str == str.toUpperCase() && (str = str.toLowerCase()) || str == str.toLowerCase() && (str = str.toUpperCase())) {
62355
+ caseChanged = true;
62356
+ i2 = -1;
62357
+ e = 0;
62358
+ continue;
62359
+ }
62360
+ }
62361
+ return parseNumeric(x, String(v), isNum, b);
62362
+ }
62363
+ }
62364
+ isNum = false;
62365
+ str = convertBase(str, b, 10, x.s);
62366
+ if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
62367
+ else e = str.length;
62368
+ }
62369
+ for (i2 = 0; str.charCodeAt(i2) === 48; i2++) ;
62370
+ for (len = str.length; str.charCodeAt(--len) === 48; ) ;
62371
+ if (str = str.slice(i2, ++len)) {
62372
+ len -= i2;
62373
+ if (isNum && BigNumber2.DEBUG && len > 15 && (v > MAX_SAFE_INTEGER$2 || v !== mathfloor(v))) {
62374
+ throw Error(tooManyDigits + x.s * v);
62375
+ }
62376
+ if ((e = e - i2 - 1) > MAX_EXP) {
62377
+ x.c = x.e = null;
62378
+ } else if (e < MIN_EXP) {
62379
+ x.c = [x.e = 0];
62380
+ } else {
62381
+ x.e = e;
62382
+ x.c = [];
62383
+ i2 = (e + 1) % LOG_BASE;
62384
+ if (e < 0) i2 += LOG_BASE;
62385
+ if (i2 < len) {
62386
+ if (i2) x.c.push(+str.slice(0, i2));
62387
+ for (len -= LOG_BASE; i2 < len; ) {
62388
+ x.c.push(+str.slice(i2, i2 += LOG_BASE));
62389
+ }
62390
+ i2 = LOG_BASE - (str = str.slice(i2)).length;
62391
+ } else {
62392
+ i2 -= len;
62393
+ }
62394
+ for (; i2--; str += "0") ;
62395
+ x.c.push(+str);
62396
+ }
62397
+ } else {
62398
+ x.c = [x.e = 0];
62399
+ }
62400
+ }
62401
+ BigNumber2.clone = clone;
62402
+ BigNumber2.ROUND_UP = 0;
62403
+ BigNumber2.ROUND_DOWN = 1;
62404
+ BigNumber2.ROUND_CEIL = 2;
62405
+ BigNumber2.ROUND_FLOOR = 3;
62406
+ BigNumber2.ROUND_HALF_UP = 4;
62407
+ BigNumber2.ROUND_HALF_DOWN = 5;
62408
+ BigNumber2.ROUND_HALF_EVEN = 6;
62409
+ BigNumber2.ROUND_HALF_CEIL = 7;
62410
+ BigNumber2.ROUND_HALF_FLOOR = 8;
62411
+ BigNumber2.EUCLID = 9;
62412
+ BigNumber2.config = BigNumber2.set = function(obj) {
62413
+ var p2, v;
62414
+ if (obj != null) {
62415
+ if (typeof obj == "object") {
62416
+ if (obj.hasOwnProperty(p2 = "DECIMAL_PLACES")) {
62417
+ v = obj[p2];
62418
+ intCheck(v, 0, MAX, p2);
62419
+ DECIMAL_PLACES = v;
62420
+ }
62421
+ if (obj.hasOwnProperty(p2 = "ROUNDING_MODE")) {
62422
+ v = obj[p2];
62423
+ intCheck(v, 0, 8, p2);
62424
+ ROUNDING_MODE = v;
62425
+ }
62426
+ if (obj.hasOwnProperty(p2 = "EXPONENTIAL_AT")) {
62427
+ v = obj[p2];
62428
+ if (v && v.pop) {
62429
+ intCheck(v[0], -MAX, 0, p2);
62430
+ intCheck(v[1], 0, MAX, p2);
62431
+ TO_EXP_NEG = v[0];
62432
+ TO_EXP_POS = v[1];
62433
+ } else {
62434
+ intCheck(v, -MAX, MAX, p2);
62435
+ TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);
62436
+ }
62437
+ }
62438
+ if (obj.hasOwnProperty(p2 = "RANGE")) {
62439
+ v = obj[p2];
62440
+ if (v && v.pop) {
62441
+ intCheck(v[0], -MAX, -1, p2);
62442
+ intCheck(v[1], 1, MAX, p2);
62443
+ MIN_EXP = v[0];
62444
+ MAX_EXP = v[1];
62445
+ } else {
62446
+ intCheck(v, -MAX, MAX, p2);
62447
+ if (v) {
62448
+ MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);
62449
+ } else {
62450
+ throw Error(bignumberError + p2 + " cannot be zero: " + v);
62451
+ }
62452
+ }
62453
+ }
62454
+ if (obj.hasOwnProperty(p2 = "CRYPTO")) {
62455
+ v = obj[p2];
62456
+ if (v === !!v) {
62457
+ if (v) {
62458
+ if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) {
62459
+ CRYPTO = v;
62460
+ } else {
62461
+ CRYPTO = !v;
62462
+ throw Error(bignumberError + "crypto unavailable");
62463
+ }
62464
+ } else {
62465
+ CRYPTO = v;
62466
+ }
62467
+ } else {
62468
+ throw Error(bignumberError + p2 + " not true or false: " + v);
62469
+ }
62470
+ }
62471
+ if (obj.hasOwnProperty(p2 = "MODULO_MODE")) {
62472
+ v = obj[p2];
62473
+ intCheck(v, 0, 9, p2);
62474
+ MODULO_MODE = v;
62475
+ }
62476
+ if (obj.hasOwnProperty(p2 = "POW_PRECISION")) {
62477
+ v = obj[p2];
62478
+ intCheck(v, 0, MAX, p2);
62479
+ POW_PRECISION = v;
62480
+ }
62481
+ if (obj.hasOwnProperty(p2 = "FORMAT")) {
62482
+ v = obj[p2];
62483
+ if (typeof v == "object") FORMAT = v;
62484
+ else throw Error(bignumberError + p2 + " not an object: " + v);
62485
+ }
62486
+ if (obj.hasOwnProperty(p2 = "ALPHABET")) {
62487
+ v = obj[p2];
62488
+ if (typeof v == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(v)) {
62489
+ alphabetHasNormalDecimalDigits = v.slice(0, 10) == "0123456789";
62490
+ ALPHABET = v;
62491
+ } else {
62492
+ throw Error(bignumberError + p2 + " invalid: " + v);
62493
+ }
62494
+ }
62495
+ } else {
62496
+ throw Error(bignumberError + "Object expected: " + obj);
62497
+ }
62498
+ }
62499
+ return {
62500
+ DECIMAL_PLACES,
62501
+ ROUNDING_MODE,
62502
+ EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],
62503
+ RANGE: [MIN_EXP, MAX_EXP],
62504
+ CRYPTO,
62505
+ MODULO_MODE,
62506
+ POW_PRECISION,
62507
+ FORMAT,
62508
+ ALPHABET
62509
+ };
62510
+ };
62511
+ BigNumber2.isBigNumber = function(v) {
62512
+ if (!v || v._isBigNumber !== true) return false;
62513
+ if (!BigNumber2.DEBUG) return true;
62514
+ var i2, n, c2 = v.c, e = v.e, s = v.s;
62515
+ out: if ({}.toString.call(c2) == "[object Array]") {
62516
+ if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) {
62517
+ if (c2[0] === 0) {
62518
+ if (e === 0 && c2.length === 1) return true;
62519
+ break out;
62520
+ }
62521
+ i2 = (e + 1) % LOG_BASE;
62522
+ if (i2 < 1) i2 += LOG_BASE;
62523
+ if (String(c2[0]).length == i2) {
62524
+ for (i2 = 0; i2 < c2.length; i2++) {
62525
+ n = c2[i2];
62526
+ if (n < 0 || n >= BASE || n !== mathfloor(n)) break out;
62527
+ }
62528
+ if (n !== 0) return true;
62529
+ }
62530
+ }
62531
+ } else if (c2 === null && e === null && (s === null || s === 1 || s === -1)) {
62532
+ return true;
62533
+ }
62534
+ throw Error(bignumberError + "Invalid BigNumber: " + v);
62535
+ };
62536
+ BigNumber2.maximum = BigNumber2.max = function() {
62537
+ return maxOrMin(arguments, -1);
62538
+ };
62539
+ BigNumber2.minimum = BigNumber2.min = function() {
62540
+ return maxOrMin(arguments, 1);
62541
+ };
62542
+ BigNumber2.random = (function() {
62543
+ var pow2_53 = 9007199254740992;
62544
+ var random53bitInt = Math.random() * pow2_53 & 2097151 ? function() {
62545
+ return mathfloor(Math.random() * pow2_53);
62546
+ } : function() {
62547
+ return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
62548
+ };
62549
+ return function(dp) {
62550
+ var a, b, e, k, v, i2 = 0, c2 = [], rand = new BigNumber2(ONE);
62551
+ if (dp == null) dp = DECIMAL_PLACES;
62552
+ else intCheck(dp, 0, MAX);
62553
+ k = mathceil(dp / LOG_BASE);
62554
+ if (CRYPTO) {
62555
+ if (crypto.getRandomValues) {
62556
+ a = crypto.getRandomValues(new Uint32Array(k *= 2));
62557
+ for (; i2 < k; ) {
62558
+ v = a[i2] * 131072 + (a[i2 + 1] >>> 11);
62559
+ if (v >= 9e15) {
62560
+ b = crypto.getRandomValues(new Uint32Array(2));
62561
+ a[i2] = b[0];
62562
+ a[i2 + 1] = b[1];
62563
+ } else {
62564
+ c2.push(v % 1e14);
62565
+ i2 += 2;
62566
+ }
62567
+ }
62568
+ i2 = k / 2;
62569
+ } else if (crypto.randomBytes) {
62570
+ a = crypto.randomBytes(k *= 7);
62571
+ for (; i2 < k; ) {
62572
+ v = (a[i2] & 31) * 281474976710656 + a[i2 + 1] * 1099511627776 + a[i2 + 2] * 4294967296 + a[i2 + 3] * 16777216 + (a[i2 + 4] << 16) + (a[i2 + 5] << 8) + a[i2 + 6];
62573
+ if (v >= 9e15) {
62574
+ crypto.randomBytes(7).copy(a, i2);
62575
+ } else {
62576
+ c2.push(v % 1e14);
62577
+ i2 += 7;
62578
+ }
62579
+ }
62580
+ i2 = k / 7;
62581
+ } else {
62582
+ CRYPTO = false;
62583
+ throw Error(bignumberError + "crypto unavailable");
62584
+ }
62585
+ }
62586
+ if (!CRYPTO) {
62587
+ for (; i2 < k; ) {
62588
+ v = random53bitInt();
62589
+ if (v < 9e15) c2[i2++] = v % 1e14;
62590
+ }
62591
+ }
62592
+ k = c2[--i2];
62593
+ dp %= LOG_BASE;
62594
+ if (k && dp) {
62595
+ v = POWS_TEN[LOG_BASE - dp];
62596
+ c2[i2] = mathfloor(k / v) * v;
62597
+ }
62598
+ for (; c2[i2] === 0; c2.pop(), i2--) ;
62599
+ if (i2 < 0) {
62600
+ c2 = [e = 0];
62601
+ } else {
62602
+ for (e = -1; c2[0] === 0; c2.splice(0, 1), e -= LOG_BASE) ;
62603
+ for (i2 = 1, v = c2[0]; v >= 10; v /= 10, i2++) ;
62604
+ if (i2 < LOG_BASE) e -= LOG_BASE - i2;
62605
+ }
62606
+ rand.e = e;
62607
+ rand.c = c2;
62608
+ return rand;
62609
+ };
62610
+ })();
62611
+ BigNumber2.sum = function() {
62612
+ var i2 = 1, args = arguments, sum = new BigNumber2(args[0]);
62613
+ for (; i2 < args.length; ) sum = sum.plus(args[i2++]);
62614
+ return sum;
62615
+ };
62616
+ convertBase = /* @__PURE__ */ (function() {
62617
+ var decimal = "0123456789";
62618
+ function toBaseOut(str, baseIn, baseOut, alphabet) {
62619
+ var j, arr = [0], arrL, i2 = 0, len = str.length;
62620
+ for (; i2 < len; ) {
62621
+ for (arrL = arr.length; arrL--; arr[arrL] *= baseIn) ;
62622
+ arr[0] += alphabet.indexOf(str.charAt(i2++));
62623
+ for (j = 0; j < arr.length; j++) {
62624
+ if (arr[j] > baseOut - 1) {
62625
+ if (arr[j + 1] == null) arr[j + 1] = 0;
62626
+ arr[j + 1] += arr[j] / baseOut | 0;
62627
+ arr[j] %= baseOut;
62628
+ }
62629
+ }
62630
+ }
62631
+ return arr.reverse();
62632
+ }
62633
+ return function(str, baseIn, baseOut, sign, callerIsToString) {
62634
+ var alphabet, d, e, k, r, x, xc, y, i2 = str.indexOf("."), dp = DECIMAL_PLACES, rm = ROUNDING_MODE;
62635
+ if (i2 >= 0) {
62636
+ k = POW_PRECISION;
62637
+ POW_PRECISION = 0;
62638
+ str = str.replace(".", "");
62639
+ y = new BigNumber2(baseIn);
62640
+ x = y.pow(str.length - i2);
62641
+ POW_PRECISION = k;
62642
+ y.c = toBaseOut(
62643
+ toFixedPoint(coeffToString(x.c), x.e, "0"),
62644
+ 10,
62645
+ baseOut,
62646
+ decimal
62647
+ );
62648
+ y.e = y.c.length;
62649
+ }
62650
+ xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (alphabet = ALPHABET, decimal) : (alphabet = decimal, ALPHABET));
62651
+ e = k = xc.length;
62652
+ for (; xc[--k] == 0; xc.pop()) ;
62653
+ if (!xc[0]) return alphabet.charAt(0);
62654
+ if (i2 < 0) {
62655
+ --e;
62656
+ } else {
62657
+ x.c = xc;
62658
+ x.e = e;
62659
+ x.s = sign;
62660
+ x = div(x, y, dp, rm, baseOut);
62661
+ xc = x.c;
62662
+ r = x.r;
62663
+ e = x.e;
62664
+ }
62665
+ d = e + dp + 1;
62666
+ i2 = xc[d];
62667
+ k = baseOut / 2;
62668
+ r = r || d < 0 || xc[d + 1] != null;
62669
+ r = rm < 4 ? (i2 != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : i2 > k || i2 == k && (rm == 4 || r || rm == 6 && xc[d - 1] & 1 || rm == (x.s < 0 ? 8 : 7));
62670
+ if (d < 1 || !xc[0]) {
62671
+ str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) : alphabet.charAt(0);
62672
+ } else {
62673
+ xc.length = d;
62674
+ if (r) {
62675
+ for (--baseOut; ++xc[--d] > baseOut; ) {
62676
+ xc[d] = 0;
62677
+ if (!d) {
62678
+ ++e;
62679
+ xc = [1].concat(xc);
62680
+ }
62681
+ }
62682
+ }
62683
+ for (k = xc.length; !xc[--k]; ) ;
62684
+ for (i2 = 0, str = ""; i2 <= k; str += alphabet.charAt(xc[i2++])) ;
62685
+ str = toFixedPoint(str, e, alphabet.charAt(0));
62686
+ }
62687
+ return str;
62688
+ };
62689
+ })();
62690
+ div = /* @__PURE__ */ (function() {
62691
+ function multiply(x, k, base) {
62692
+ var m, temp, xlo, xhi, carry = 0, i2 = x.length, klo = k % SQRT_BASE, khi = k / SQRT_BASE | 0;
62693
+ for (x = x.slice(); i2--; ) {
62694
+ xlo = x[i2] % SQRT_BASE;
62695
+ xhi = x[i2] / SQRT_BASE | 0;
62696
+ m = khi * xlo + xhi * klo;
62697
+ temp = klo * xlo + m % SQRT_BASE * SQRT_BASE + carry;
62698
+ carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;
62699
+ x[i2] = temp % base;
62700
+ }
62701
+ if (carry) x = [carry].concat(x);
62702
+ return x;
62703
+ }
62704
+ function compare2(a, b, aL, bL) {
62705
+ var i2, cmp;
62706
+ if (aL != bL) {
62707
+ cmp = aL > bL ? 1 : -1;
62708
+ } else {
62709
+ for (i2 = cmp = 0; i2 < aL; i2++) {
62710
+ if (a[i2] != b[i2]) {
62711
+ cmp = a[i2] > b[i2] ? 1 : -1;
62712
+ break;
62713
+ }
62714
+ }
62715
+ }
62716
+ return cmp;
62717
+ }
62718
+ function subtract(a, b, aL, base) {
62719
+ var i2 = 0;
62720
+ for (; aL--; ) {
62721
+ a[aL] -= i2;
62722
+ i2 = a[aL] < b[aL] ? 1 : 0;
62723
+ a[aL] = i2 * base + a[aL] - b[aL];
62724
+ }
62725
+ for (; !a[0] && a.length > 1; a.splice(0, 1)) ;
62726
+ }
62727
+ return function(x, y, dp, rm, base) {
62728
+ var cmp, e, i2, more, n, prod, prodL, q2, qc, rem, remL, rem0, xi, xL, yc0, yL, yz, s = x.s == y.s ? 1 : -1, xc = x.c, yc = y.c;
62729
+ if (!xc || !xc[0] || !yc || !yc[0]) {
62730
+ return new BigNumber2(
62731
+ // Return NaN if either NaN, or both Infinity or 0.
62732
+ !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : (
62733
+ // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
62734
+ xc && xc[0] == 0 || !yc ? s * 0 : s / 0
62735
+ )
62736
+ );
62737
+ }
62738
+ q2 = new BigNumber2(s);
62739
+ qc = q2.c = [];
62740
+ e = x.e - y.e;
62741
+ s = dp + e + 1;
62742
+ if (!base) {
62743
+ base = BASE;
62744
+ e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);
62745
+ s = s / LOG_BASE | 0;
62746
+ }
62747
+ for (i2 = 0; yc[i2] == (xc[i2] || 0); i2++) ;
62748
+ if (yc[i2] > (xc[i2] || 0)) e--;
62749
+ if (s < 0) {
62750
+ qc.push(1);
62751
+ more = true;
62752
+ } else {
62753
+ xL = xc.length;
62754
+ yL = yc.length;
62755
+ i2 = 0;
62756
+ s += 2;
62757
+ n = mathfloor(base / (yc[0] + 1));
62758
+ if (n > 1) {
62759
+ yc = multiply(yc, n, base);
62760
+ xc = multiply(xc, n, base);
62761
+ yL = yc.length;
62762
+ xL = xc.length;
62763
+ }
62764
+ xi = yL;
62765
+ rem = xc.slice(0, yL);
62766
+ remL = rem.length;
62767
+ for (; remL < yL; rem[remL++] = 0) ;
62768
+ yz = yc.slice();
62769
+ yz = [0].concat(yz);
62770
+ yc0 = yc[0];
62771
+ if (yc[1] >= base / 2) yc0++;
62772
+ do {
62773
+ n = 0;
62774
+ cmp = compare2(yc, rem, yL, remL);
62775
+ if (cmp < 0) {
62776
+ rem0 = rem[0];
62777
+ if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
62778
+ n = mathfloor(rem0 / yc0);
62779
+ if (n > 1) {
62780
+ if (n >= base) n = base - 1;
62781
+ prod = multiply(yc, n, base);
62782
+ prodL = prod.length;
62783
+ remL = rem.length;
62784
+ while (compare2(prod, rem, prodL, remL) == 1) {
62785
+ n--;
62786
+ subtract(prod, yL < prodL ? yz : yc, prodL, base);
62787
+ prodL = prod.length;
62788
+ cmp = 1;
62789
+ }
62790
+ } else {
62791
+ if (n == 0) {
62792
+ cmp = n = 1;
62793
+ }
62794
+ prod = yc.slice();
62795
+ prodL = prod.length;
62796
+ }
62797
+ if (prodL < remL) prod = [0].concat(prod);
62798
+ subtract(rem, prod, remL, base);
62799
+ remL = rem.length;
62800
+ if (cmp == -1) {
62801
+ while (compare2(yc, rem, yL, remL) < 1) {
62802
+ n++;
62803
+ subtract(rem, yL < remL ? yz : yc, remL, base);
62804
+ remL = rem.length;
62805
+ }
62806
+ }
62807
+ } else if (cmp === 0) {
62808
+ n++;
62809
+ rem = [0];
62810
+ }
62811
+ qc[i2++] = n;
62812
+ if (rem[0]) {
62813
+ rem[remL++] = xc[xi] || 0;
62814
+ } else {
62815
+ rem = [xc[xi]];
62816
+ remL = 1;
62817
+ }
62818
+ } while ((xi++ < xL || rem[0] != null) && s--);
62819
+ more = rem[0] != null;
62820
+ if (!qc[0]) qc.splice(0, 1);
62821
+ }
62822
+ if (base == BASE) {
62823
+ for (i2 = 1, s = qc[0]; s >= 10; s /= 10, i2++) ;
62824
+ round(q2, dp + (q2.e = i2 + e * LOG_BASE - 1) + 1, rm, more);
62825
+ } else {
62826
+ q2.e = e;
62827
+ q2.r = +more;
62828
+ }
62829
+ return q2;
62830
+ };
62831
+ })();
62832
+ function format2(n, i2, rm, id) {
62833
+ var c0, e, ne, len, str;
62834
+ if (rm == null) rm = ROUNDING_MODE;
62835
+ else intCheck(rm, 0, 8);
62836
+ if (!n.c) return n.toString();
62837
+ c0 = n.c[0];
62838
+ ne = n.e;
62839
+ if (i2 == null) {
62840
+ str = coeffToString(n.c);
62841
+ str = id == 1 || id == 2 && (ne <= TO_EXP_NEG || ne >= TO_EXP_POS) ? toExponential(str, ne) : toFixedPoint(str, ne, "0");
62842
+ } else {
62843
+ n = round(new BigNumber2(n), i2, rm);
62844
+ e = n.e;
62845
+ str = coeffToString(n.c);
62846
+ len = str.length;
62847
+ if (id == 1 || id == 2 && (i2 <= e || e <= TO_EXP_NEG)) {
62848
+ for (; len < i2; str += "0", len++) ;
62849
+ str = toExponential(str, e);
62850
+ } else {
62851
+ i2 -= ne + (id === 2 && e > ne);
62852
+ str = toFixedPoint(str, e, "0");
62853
+ if (e + 1 > len) {
62854
+ if (--i2 > 0) for (str += "."; i2--; str += "0") ;
62855
+ } else {
62856
+ i2 += e - len;
62857
+ if (i2 > 0) {
62858
+ if (e + 1 == len) str += ".";
62859
+ for (; i2--; str += "0") ;
62860
+ }
62861
+ }
62862
+ }
62863
+ }
62864
+ return n.s < 0 && c0 ? "-" + str : str;
62865
+ }
62866
+ function maxOrMin(args, n) {
62867
+ var k, y, i2 = 1, x = new BigNumber2(args[0]);
62868
+ for (; i2 < args.length; i2++) {
62869
+ y = new BigNumber2(args[i2]);
62870
+ if (!y.s || (k = compare(x, y)) === n || k === 0 && x.s === n) {
62871
+ x = y;
62872
+ }
62873
+ }
62874
+ return x;
62875
+ }
62876
+ function normalise(n, c2, e) {
62877
+ var i2 = 1, j = c2.length;
62878
+ for (; !c2[--j]; c2.pop()) ;
62879
+ for (j = c2[0]; j >= 10; j /= 10, i2++) ;
62880
+ if ((e = i2 + e * LOG_BASE - 1) > MAX_EXP) {
62881
+ n.c = n.e = null;
62882
+ } else if (e < MIN_EXP) {
62883
+ n.c = [n.e = 0];
62884
+ } else {
62885
+ n.e = e;
62886
+ n.c = c2;
62887
+ }
62888
+ return n;
62889
+ }
62890
+ parseNumeric = /* @__PURE__ */ (function() {
62891
+ var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, dotAfter = /^([^.]+)\.$/, dotBefore = /^\.([^.]+)$/, isInfinityOrNaN = /^-?(Infinity|NaN)$/, whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
62892
+ return function(x, str, isNum, b) {
62893
+ var base, s = isNum ? str : str.replace(whitespaceOrPlus, "");
62894
+ if (isInfinityOrNaN.test(s)) {
62895
+ x.s = isNaN(s) ? null : s < 0 ? -1 : 1;
62896
+ } else {
62897
+ if (!isNum) {
62898
+ s = s.replace(basePrefix, function(m, p1, p2) {
62899
+ base = (p2 = p2.toLowerCase()) == "x" ? 16 : p2 == "b" ? 2 : 8;
62900
+ return !b || b == base ? p1 : m;
62901
+ });
62902
+ if (b) {
62903
+ base = b;
62904
+ s = s.replace(dotAfter, "$1").replace(dotBefore, "0.$1");
62905
+ }
62906
+ if (str != s) return new BigNumber2(s, base);
62907
+ }
62908
+ if (BigNumber2.DEBUG) {
62909
+ throw Error(bignumberError + "Not a" + (b ? " base " + b : "") + " number: " + str);
62910
+ }
62911
+ x.s = null;
62912
+ }
62913
+ x.c = x.e = null;
62914
+ };
62915
+ })();
62916
+ function round(x, sd, rm, r) {
62917
+ var d, i2, j, k, n, ni, rd, xc = x.c, pows10 = POWS_TEN;
62918
+ if (xc) {
62919
+ out: {
62920
+ for (d = 1, k = xc[0]; k >= 10; k /= 10, d++) ;
62921
+ i2 = sd - d;
62922
+ if (i2 < 0) {
62923
+ i2 += LOG_BASE;
62924
+ j = sd;
62925
+ n = xc[ni = 0];
62926
+ rd = mathfloor(n / pows10[d - j - 1] % 10);
62927
+ } else {
62928
+ ni = mathceil((i2 + 1) / LOG_BASE);
62929
+ if (ni >= xc.length) {
62930
+ if (r) {
62931
+ for (; xc.length <= ni; xc.push(0)) ;
62932
+ n = rd = 0;
62933
+ d = 1;
62934
+ i2 %= LOG_BASE;
62935
+ j = i2 - LOG_BASE + 1;
62936
+ } else {
62937
+ break out;
62938
+ }
62939
+ } else {
62940
+ n = k = xc[ni];
62941
+ for (d = 1; k >= 10; k /= 10, d++) ;
62942
+ i2 %= LOG_BASE;
62943
+ j = i2 - LOG_BASE + d;
62944
+ rd = j < 0 ? 0 : mathfloor(n / pows10[d - j - 1] % 10);
62945
+ }
62946
+ }
62947
+ r = r || sd < 0 || // Are there any non-zero digits after the rounding digit?
62948
+ // The expression n % pows10[d - j - 1] returns all digits of n to the right
62949
+ // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
62950
+ xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);
62951
+ r = rm < 4 ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
62952
+ (i2 > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10 & 1 || rm == (x.s < 0 ? 8 : 7));
62953
+ if (sd < 1 || !xc[0]) {
62954
+ xc.length = 0;
62955
+ if (r) {
62956
+ sd -= x.e + 1;
62957
+ xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];
62958
+ x.e = -sd || 0;
62959
+ } else {
62960
+ xc[0] = x.e = 0;
62961
+ }
62962
+ return x;
62963
+ }
62964
+ if (i2 == 0) {
62965
+ xc.length = ni;
62966
+ k = 1;
62967
+ ni--;
62968
+ } else {
62969
+ xc.length = ni + 1;
62970
+ k = pows10[LOG_BASE - i2];
62971
+ xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;
62972
+ }
62973
+ if (r) {
62974
+ for (; ; ) {
62975
+ if (ni == 0) {
62976
+ for (i2 = 1, j = xc[0]; j >= 10; j /= 10, i2++) ;
62977
+ j = xc[0] += k;
62978
+ for (k = 1; j >= 10; j /= 10, k++) ;
62979
+ if (i2 != k) {
62980
+ x.e++;
62981
+ if (xc[0] == BASE) xc[0] = 1;
62982
+ }
62983
+ break;
62984
+ } else {
62985
+ xc[ni] += k;
62986
+ if (xc[ni] != BASE) break;
62987
+ xc[ni--] = 0;
62988
+ k = 1;
62989
+ }
62990
+ }
62991
+ }
62992
+ for (i2 = xc.length; xc[--i2] === 0; xc.pop()) ;
62993
+ }
62994
+ if (x.e > MAX_EXP) {
62995
+ x.c = x.e = null;
62996
+ } else if (x.e < MIN_EXP) {
62997
+ x.c = [x.e = 0];
62998
+ }
62999
+ }
63000
+ return x;
63001
+ }
63002
+ function valueOf(n) {
63003
+ var str, e = n.e;
63004
+ if (e === null) return n.toString();
63005
+ str = coeffToString(n.c);
63006
+ str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(str, e) : toFixedPoint(str, e, "0");
63007
+ return n.s < 0 ? "-" + str : str;
63008
+ }
63009
+ P2.absoluteValue = P2.abs = function() {
63010
+ var x = new BigNumber2(this);
63011
+ if (x.s < 0) x.s = 1;
63012
+ return x;
63013
+ };
63014
+ P2.comparedTo = function(y, b) {
63015
+ return compare(this, new BigNumber2(y, b));
63016
+ };
63017
+ P2.decimalPlaces = P2.dp = function(dp, rm) {
63018
+ var c2, n, v, x = this;
63019
+ if (dp != null) {
63020
+ intCheck(dp, 0, MAX);
63021
+ if (rm == null) rm = ROUNDING_MODE;
63022
+ else intCheck(rm, 0, 8);
63023
+ return round(new BigNumber2(x), dp + x.e + 1, rm);
63024
+ }
63025
+ if (!(c2 = x.c)) return null;
63026
+ n = ((v = c2.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;
63027
+ if (v = c2[v]) for (; v % 10 == 0; v /= 10, n--) ;
63028
+ if (n < 0) n = 0;
63029
+ return n;
63030
+ };
63031
+ P2.dividedBy = P2.div = function(y, b) {
63032
+ return div(this, new BigNumber2(y, b), DECIMAL_PLACES, ROUNDING_MODE);
63033
+ };
63034
+ P2.dividedToIntegerBy = P2.idiv = function(y, b) {
63035
+ return div(this, new BigNumber2(y, b), 0, 1);
63036
+ };
63037
+ P2.exponentiatedBy = P2.pow = function(n, m) {
63038
+ var half, isModExp, i2, k, more, nIsBig, nIsNeg, nIsOdd, y, x = this;
63039
+ n = new BigNumber2(n);
63040
+ if (n.c && !n.isInteger()) {
63041
+ throw Error(bignumberError + "Exponent not an integer: " + valueOf(n));
63042
+ }
63043
+ if (m != null) m = new BigNumber2(m);
63044
+ nIsBig = n.e > 14;
63045
+ if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) {
63046
+ y = new BigNumber2(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n)));
63047
+ return m ? y.mod(m) : y;
63048
+ }
63049
+ nIsNeg = n.s < 0;
63050
+ if (m) {
63051
+ if (m.c ? !m.c[0] : !m.s) return new BigNumber2(NaN);
63052
+ isModExp = !nIsNeg && x.isInteger() && m.isInteger();
63053
+ if (isModExp) x = x.mod(m);
63054
+ } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) {
63055
+ k = x.s < 0 && isOdd(n) ? -0 : 0;
63056
+ if (x.e > -1) k = 1 / k;
63057
+ return new BigNumber2(nIsNeg ? 1 / k : k);
63058
+ } else if (POW_PRECISION) {
63059
+ k = mathceil(POW_PRECISION / LOG_BASE + 2);
63060
+ }
63061
+ if (nIsBig) {
63062
+ half = new BigNumber2(0.5);
63063
+ if (nIsNeg) n.s = 1;
63064
+ nIsOdd = isOdd(n);
63065
+ } else {
63066
+ i2 = Math.abs(+valueOf(n));
63067
+ nIsOdd = i2 % 2;
63068
+ }
63069
+ y = new BigNumber2(ONE);
63070
+ for (; ; ) {
63071
+ if (nIsOdd) {
63072
+ y = y.times(x);
63073
+ if (!y.c) break;
63074
+ if (k) {
63075
+ if (y.c.length > k) y.c.length = k;
63076
+ } else if (isModExp) {
63077
+ y = y.mod(m);
63078
+ }
63079
+ }
63080
+ if (i2) {
63081
+ i2 = mathfloor(i2 / 2);
63082
+ if (i2 === 0) break;
63083
+ nIsOdd = i2 % 2;
63084
+ } else {
63085
+ n = n.times(half);
63086
+ round(n, n.e + 1, 1);
63087
+ if (n.e > 14) {
63088
+ nIsOdd = isOdd(n);
63089
+ } else {
63090
+ i2 = +valueOf(n);
63091
+ if (i2 === 0) break;
63092
+ nIsOdd = i2 % 2;
63093
+ }
63094
+ }
63095
+ x = x.times(x);
63096
+ if (k) {
63097
+ if (x.c && x.c.length > k) x.c.length = k;
63098
+ } else if (isModExp) {
63099
+ x = x.mod(m);
63100
+ }
63101
+ }
63102
+ if (isModExp) return y;
63103
+ if (nIsNeg) y = ONE.div(y);
63104
+ return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;
63105
+ };
63106
+ P2.integerValue = function(rm) {
63107
+ var n = new BigNumber2(this);
63108
+ if (rm == null) rm = ROUNDING_MODE;
63109
+ else intCheck(rm, 0, 8);
63110
+ return round(n, n.e + 1, rm);
63111
+ };
63112
+ P2.isEqualTo = P2.eq = function(y, b) {
63113
+ return compare(this, new BigNumber2(y, b)) === 0;
63114
+ };
63115
+ P2.isFinite = function() {
63116
+ return !!this.c;
63117
+ };
63118
+ P2.isGreaterThan = P2.gt = function(y, b) {
63119
+ return compare(this, new BigNumber2(y, b)) > 0;
63120
+ };
63121
+ P2.isGreaterThanOrEqualTo = P2.gte = function(y, b) {
63122
+ return (b = compare(this, new BigNumber2(y, b))) === 1 || b === 0;
63123
+ };
63124
+ P2.isInteger = function() {
63125
+ return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;
63126
+ };
63127
+ P2.isLessThan = P2.lt = function(y, b) {
63128
+ return compare(this, new BigNumber2(y, b)) < 0;
63129
+ };
63130
+ P2.isLessThanOrEqualTo = P2.lte = function(y, b) {
63131
+ return (b = compare(this, new BigNumber2(y, b))) === -1 || b === 0;
63132
+ };
63133
+ P2.isNaN = function() {
63134
+ return !this.s;
63135
+ };
63136
+ P2.isNegative = function() {
63137
+ return this.s < 0;
63138
+ };
63139
+ P2.isPositive = function() {
63140
+ return this.s > 0;
63141
+ };
63142
+ P2.isZero = function() {
63143
+ return !!this.c && this.c[0] == 0;
63144
+ };
63145
+ P2.minus = function(y, b) {
63146
+ var i2, j, t, xLTy, x = this, a = x.s;
63147
+ y = new BigNumber2(y, b);
63148
+ b = y.s;
63149
+ if (!a || !b) return new BigNumber2(NaN);
63150
+ if (a != b) {
63151
+ y.s = -b;
63152
+ return x.plus(y);
63153
+ }
63154
+ var xe = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc = x.c, yc = y.c;
63155
+ if (!xe || !ye) {
63156
+ if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber2(yc ? x : NaN);
63157
+ if (!xc[0] || !yc[0]) {
63158
+ return yc[0] ? (y.s = -b, y) : new BigNumber2(xc[0] ? x : (
63159
+ // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
63160
+ ROUNDING_MODE == 3 ? -0 : 0
63161
+ ));
63162
+ }
63163
+ }
63164
+ xe = bitFloor(xe);
63165
+ ye = bitFloor(ye);
63166
+ xc = xc.slice();
63167
+ if (a = xe - ye) {
63168
+ if (xLTy = a < 0) {
63169
+ a = -a;
63170
+ t = xc;
63171
+ } else {
63172
+ ye = xe;
63173
+ t = yc;
63174
+ }
63175
+ t.reverse();
63176
+ for (b = a; b--; t.push(0)) ;
63177
+ t.reverse();
63178
+ } else {
63179
+ j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;
63180
+ for (a = b = 0; b < j; b++) {
63181
+ if (xc[b] != yc[b]) {
63182
+ xLTy = xc[b] < yc[b];
63183
+ break;
63184
+ }
63185
+ }
63186
+ }
63187
+ if (xLTy) {
63188
+ t = xc;
63189
+ xc = yc;
63190
+ yc = t;
63191
+ y.s = -y.s;
63192
+ }
63193
+ b = (j = yc.length) - (i2 = xc.length);
63194
+ if (b > 0) for (; b--; xc[i2++] = 0) ;
63195
+ b = BASE - 1;
63196
+ for (; j > a; ) {
63197
+ if (xc[--j] < yc[j]) {
63198
+ for (i2 = j; i2 && !xc[--i2]; xc[i2] = b) ;
63199
+ --xc[i2];
63200
+ xc[j] += BASE;
63201
+ }
63202
+ xc[j] -= yc[j];
63203
+ }
63204
+ for (; xc[0] == 0; xc.splice(0, 1), --ye) ;
63205
+ if (!xc[0]) {
63206
+ y.s = ROUNDING_MODE == 3 ? -1 : 1;
63207
+ y.c = [y.e = 0];
63208
+ return y;
63209
+ }
63210
+ return normalise(y, xc, ye);
63211
+ };
63212
+ P2.modulo = P2.mod = function(y, b) {
63213
+ var q2, s, x = this;
63214
+ y = new BigNumber2(y, b);
63215
+ if (!x.c || !y.s || y.c && !y.c[0]) {
63216
+ return new BigNumber2(NaN);
63217
+ } else if (!y.c || x.c && !x.c[0]) {
63218
+ return new BigNumber2(x);
63219
+ }
63220
+ if (MODULO_MODE == 9) {
63221
+ s = y.s;
63222
+ y.s = 1;
63223
+ q2 = div(x, y, 0, 3);
63224
+ y.s = s;
63225
+ q2.s *= s;
63226
+ } else {
63227
+ q2 = div(x, y, 0, MODULO_MODE);
63228
+ }
63229
+ y = x.minus(q2.times(y));
63230
+ if (!y.c[0] && MODULO_MODE == 1) y.s = x.s;
63231
+ return y;
63232
+ };
63233
+ P2.multipliedBy = P2.times = function(y, b) {
63234
+ var c2, e, i2, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, base, sqrtBase, x = this, xc = x.c, yc = (y = new BigNumber2(y, b)).c;
63235
+ if (!xc || !yc || !xc[0] || !yc[0]) {
63236
+ if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {
63237
+ y.c = y.e = y.s = null;
63238
+ } else {
63239
+ y.s *= x.s;
63240
+ if (!xc || !yc) {
63241
+ y.c = y.e = null;
63242
+ } else {
63243
+ y.c = [0];
63244
+ y.e = 0;
63245
+ }
63246
+ }
63247
+ return y;
63248
+ }
63249
+ e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);
63250
+ y.s *= x.s;
63251
+ xcL = xc.length;
63252
+ ycL = yc.length;
63253
+ if (xcL < ycL) {
63254
+ zc = xc;
63255
+ xc = yc;
63256
+ yc = zc;
63257
+ i2 = xcL;
63258
+ xcL = ycL;
63259
+ ycL = i2;
63260
+ }
63261
+ for (i2 = xcL + ycL, zc = []; i2--; zc.push(0)) ;
63262
+ base = BASE;
63263
+ sqrtBase = SQRT_BASE;
63264
+ for (i2 = ycL; --i2 >= 0; ) {
63265
+ c2 = 0;
63266
+ ylo = yc[i2] % sqrtBase;
63267
+ yhi = yc[i2] / sqrtBase | 0;
63268
+ for (k = xcL, j = i2 + k; j > i2; ) {
63269
+ xlo = xc[--k] % sqrtBase;
63270
+ xhi = xc[k] / sqrtBase | 0;
63271
+ m = yhi * xlo + xhi * ylo;
63272
+ xlo = ylo * xlo + m % sqrtBase * sqrtBase + zc[j] + c2;
63273
+ c2 = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;
63274
+ zc[j--] = xlo % base;
63275
+ }
63276
+ zc[j] = c2;
63277
+ }
63278
+ if (c2) {
63279
+ ++e;
63280
+ } else {
63281
+ zc.splice(0, 1);
63282
+ }
63283
+ return normalise(y, zc, e);
63284
+ };
63285
+ P2.negated = function() {
63286
+ var x = new BigNumber2(this);
63287
+ x.s = -x.s || null;
63288
+ return x;
63289
+ };
63290
+ P2.plus = function(y, b) {
63291
+ var t, x = this, a = x.s;
63292
+ y = new BigNumber2(y, b);
63293
+ b = y.s;
63294
+ if (!a || !b) return new BigNumber2(NaN);
63295
+ if (a != b) {
63296
+ y.s = -b;
63297
+ return x.minus(y);
63298
+ }
63299
+ var xe = x.e / LOG_BASE, ye = y.e / LOG_BASE, xc = x.c, yc = y.c;
63300
+ if (!xe || !ye) {
63301
+ if (!xc || !yc) return new BigNumber2(a / 0);
63302
+ if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber2(xc[0] ? x : a * 0);
63303
+ }
63304
+ xe = bitFloor(xe);
63305
+ ye = bitFloor(ye);
63306
+ xc = xc.slice();
63307
+ if (a = xe - ye) {
63308
+ if (a > 0) {
63309
+ ye = xe;
63310
+ t = yc;
63311
+ } else {
63312
+ a = -a;
63313
+ t = xc;
63314
+ }
63315
+ t.reverse();
63316
+ for (; a--; t.push(0)) ;
63317
+ t.reverse();
63318
+ }
63319
+ a = xc.length;
63320
+ b = yc.length;
63321
+ if (a - b < 0) {
63322
+ t = yc;
63323
+ yc = xc;
63324
+ xc = t;
63325
+ b = a;
63326
+ }
63327
+ for (a = 0; b; ) {
63328
+ a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;
63329
+ xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;
63330
+ }
63331
+ if (a) {
63332
+ xc = [a].concat(xc);
63333
+ ++ye;
63334
+ }
63335
+ return normalise(y, xc, ye);
63336
+ };
63337
+ P2.precision = P2.sd = function(sd, rm) {
63338
+ var c2, n, v, x = this;
63339
+ if (sd != null && sd !== !!sd) {
63340
+ intCheck(sd, 1, MAX);
63341
+ if (rm == null) rm = ROUNDING_MODE;
63342
+ else intCheck(rm, 0, 8);
63343
+ return round(new BigNumber2(x), sd, rm);
63344
+ }
63345
+ if (!(c2 = x.c)) return null;
63346
+ v = c2.length - 1;
63347
+ n = v * LOG_BASE + 1;
63348
+ if (v = c2[v]) {
63349
+ for (; v % 10 == 0; v /= 10, n--) ;
63350
+ for (v = c2[0]; v >= 10; v /= 10, n++) ;
63351
+ }
63352
+ if (sd && x.e + 1 > n) n = x.e + 1;
63353
+ return n;
63354
+ };
63355
+ P2.shiftedBy = function(k) {
63356
+ intCheck(k, -MAX_SAFE_INTEGER$2, MAX_SAFE_INTEGER$2);
63357
+ return this.times("1e" + k);
63358
+ };
63359
+ P2.squareRoot = P2.sqrt = function() {
63360
+ var m, n, r, rep, t, x = this, c2 = x.c, s = x.s, e = x.e, dp = DECIMAL_PLACES + 4, half = new BigNumber2("0.5");
63361
+ if (s !== 1 || !c2 || !c2[0]) {
63362
+ return new BigNumber2(!s || s < 0 && (!c2 || c2[0]) ? NaN : c2 ? x : 1 / 0);
63363
+ }
63364
+ s = Math.sqrt(+valueOf(x));
63365
+ if (s == 0 || s == 1 / 0) {
63366
+ n = coeffToString(c2);
63367
+ if ((n.length + e) % 2 == 0) n += "0";
63368
+ s = Math.sqrt(+n);
63369
+ e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);
63370
+ if (s == 1 / 0) {
63371
+ n = "5e" + e;
63372
+ } else {
63373
+ n = s.toExponential();
63374
+ n = n.slice(0, n.indexOf("e") + 1) + e;
63375
+ }
63376
+ r = new BigNumber2(n);
63377
+ } else {
63378
+ r = new BigNumber2(s + "");
63379
+ }
63380
+ if (r.c[0]) {
63381
+ e = r.e;
63382
+ s = e + dp;
63383
+ if (s < 3) s = 0;
63384
+ for (; ; ) {
63385
+ t = r;
63386
+ r = half.times(t.plus(div(x, t, dp, 1)));
63387
+ if (coeffToString(t.c).slice(0, s) === (n = coeffToString(r.c)).slice(0, s)) {
63388
+ if (r.e < e) --s;
63389
+ n = n.slice(s - 3, s + 1);
63390
+ if (n == "9999" || !rep && n == "4999") {
63391
+ if (!rep) {
63392
+ round(t, t.e + DECIMAL_PLACES + 2, 0);
63393
+ if (t.times(t).eq(x)) {
63394
+ r = t;
63395
+ break;
63396
+ }
63397
+ }
63398
+ dp += 4;
63399
+ s += 4;
63400
+ rep = 1;
63401
+ } else {
63402
+ if (!+n || !+n.slice(1) && n.charAt(0) == "5") {
63403
+ round(r, r.e + DECIMAL_PLACES + 2, 1);
63404
+ m = !r.times(r).eq(x);
63405
+ }
63406
+ break;
63407
+ }
63408
+ }
63409
+ }
63410
+ }
63411
+ return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);
63412
+ };
63413
+ P2.toExponential = function(dp, rm) {
63414
+ if (dp != null) {
63415
+ intCheck(dp, 0, MAX);
63416
+ dp++;
63417
+ }
63418
+ return format2(this, dp, rm, 1);
63419
+ };
63420
+ P2.toFixed = function(dp, rm) {
63421
+ if (dp != null) {
63422
+ intCheck(dp, 0, MAX);
63423
+ dp = dp + this.e + 1;
63424
+ }
63425
+ return format2(this, dp, rm);
63426
+ };
63427
+ P2.toFormat = function(dp, rm, format3) {
63428
+ var str, x = this;
63429
+ if (format3 == null) {
63430
+ if (dp != null && rm && typeof rm == "object") {
63431
+ format3 = rm;
63432
+ rm = null;
63433
+ } else if (dp && typeof dp == "object") {
63434
+ format3 = dp;
63435
+ dp = rm = null;
63436
+ } else {
63437
+ format3 = FORMAT;
63438
+ }
63439
+ } else if (typeof format3 != "object") {
63440
+ throw Error(bignumberError + "Argument not an object: " + format3);
63441
+ }
63442
+ str = x.toFixed(dp, rm);
63443
+ if (x.c) {
63444
+ var i2, arr = str.split("."), g1 = +format3.groupSize, g2 = +format3.secondaryGroupSize, groupSeparator = format3.groupSeparator || "", intPart = arr[0], fractionPart = arr[1], isNeg = x.s < 0, intDigits = isNeg ? intPart.slice(1) : intPart, len = intDigits.length;
63445
+ if (g2) {
63446
+ i2 = g1;
63447
+ g1 = g2;
63448
+ g2 = i2;
63449
+ len -= i2;
63450
+ }
63451
+ if (g1 > 0 && len > 0) {
63452
+ i2 = len % g1 || g1;
63453
+ intPart = intDigits.substr(0, i2);
63454
+ for (; i2 < len; i2 += g1) intPart += groupSeparator + intDigits.substr(i2, g1);
63455
+ if (g2 > 0) intPart += groupSeparator + intDigits.slice(i2);
63456
+ if (isNeg) intPart = "-" + intPart;
63457
+ }
63458
+ str = fractionPart ? intPart + (format3.decimalSeparator || "") + ((g2 = +format3.fractionGroupSize) ? fractionPart.replace(
63459
+ new RegExp("\\d{" + g2 + "}\\B", "g"),
63460
+ "$&" + (format3.fractionGroupSeparator || "")
63461
+ ) : fractionPart) : intPart;
63462
+ }
63463
+ return (format3.prefix || "") + str + (format3.suffix || "");
63464
+ };
63465
+ P2.toFraction = function(md) {
63466
+ var d, d0, d1, d2, e, exp, n, n0, n1, q2, r, s, x = this, xc = x.c;
63467
+ if (md != null) {
63468
+ n = new BigNumber2(md);
63469
+ if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {
63470
+ throw Error(bignumberError + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + valueOf(n));
63471
+ }
63472
+ }
63473
+ if (!xc) return new BigNumber2(x);
63474
+ d = new BigNumber2(ONE);
63475
+ n1 = d0 = new BigNumber2(ONE);
63476
+ d1 = n0 = new BigNumber2(ONE);
63477
+ s = coeffToString(xc);
63478
+ e = d.e = s.length - x.e - 1;
63479
+ d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];
63480
+ md = !md || n.comparedTo(d) > 0 ? e > 0 ? d : n1 : n;
63481
+ exp = MAX_EXP;
63482
+ MAX_EXP = 1 / 0;
63483
+ n = new BigNumber2(s);
63484
+ n0.c[0] = 0;
63485
+ for (; ; ) {
63486
+ q2 = div(n, d, 0, 1);
63487
+ d2 = d0.plus(q2.times(d1));
63488
+ if (d2.comparedTo(md) == 1) break;
63489
+ d0 = d1;
63490
+ d1 = d2;
63491
+ n1 = n0.plus(q2.times(d2 = n1));
63492
+ n0 = d2;
63493
+ d = n.minus(q2.times(d2 = d));
63494
+ n = d2;
63495
+ }
63496
+ d2 = div(md.minus(d0), d1, 0, 1);
63497
+ n0 = n0.plus(d2.times(n1));
63498
+ d0 = d0.plus(d2.times(d1));
63499
+ n0.s = n1.s = x.s;
63500
+ e = e * 2;
63501
+ r = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo(
63502
+ div(n0, d0, e, ROUNDING_MODE).minus(x).abs()
63503
+ ) < 1 ? [n1, d1] : [n0, d0];
63504
+ MAX_EXP = exp;
63505
+ return r;
63506
+ };
63507
+ P2.toNumber = function() {
63508
+ return +valueOf(this);
63509
+ };
63510
+ P2.toPrecision = function(sd, rm) {
63511
+ if (sd != null) intCheck(sd, 1, MAX);
63512
+ return format2(this, sd, rm, 2);
63513
+ };
63514
+ P2.toString = function(b) {
63515
+ var str, n = this, s = n.s, e = n.e;
63516
+ if (e === null) {
63517
+ if (s) {
63518
+ str = "Infinity";
63519
+ if (s < 0) str = "-" + str;
63520
+ } else {
63521
+ str = "NaN";
63522
+ }
63523
+ } else {
63524
+ if (b == null) {
63525
+ str = e <= TO_EXP_NEG || e >= TO_EXP_POS ? toExponential(coeffToString(n.c), e) : toFixedPoint(coeffToString(n.c), e, "0");
63526
+ } else if (b === 10 && alphabetHasNormalDecimalDigits) {
63527
+ n = round(new BigNumber2(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE);
63528
+ str = toFixedPoint(coeffToString(n.c), n.e, "0");
63529
+ } else {
63530
+ intCheck(b, 2, ALPHABET.length, "Base");
63531
+ str = convertBase(toFixedPoint(coeffToString(n.c), e, "0"), 10, b, s, true);
63532
+ }
63533
+ if (s < 0 && n.c[0]) str = "-" + str;
63534
+ }
63535
+ return str;
63536
+ };
63537
+ P2.valueOf = P2.toJSON = function() {
63538
+ return valueOf(this);
63539
+ };
63540
+ P2._isBigNumber = true;
63541
+ P2[Symbol.toStringTag] = "BigNumber";
63542
+ P2[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = P2.valueOf;
63543
+ if (configObject != null) BigNumber2.set(configObject);
63544
+ return BigNumber2;
63545
+ }
63546
+ function bitFloor(n) {
63547
+ var i2 = n | 0;
63548
+ return n > 0 || n === i2 ? i2 : i2 - 1;
63549
+ }
63550
+ function coeffToString(a) {
63551
+ var s, z, i2 = 1, j = a.length, r = a[0] + "";
63552
+ for (; i2 < j; ) {
63553
+ s = a[i2++] + "";
63554
+ z = LOG_BASE - s.length;
63555
+ for (; z--; s = "0" + s) ;
63556
+ r += s;
63557
+ }
63558
+ for (j = r.length; r.charCodeAt(--j) === 48; ) ;
63559
+ return r.slice(0, j + 1 || 1);
63560
+ }
63561
+ function compare(x, y) {
63562
+ var a, b, xc = x.c, yc = y.c, i2 = x.s, j = y.s, k = x.e, l = y.e;
63563
+ if (!i2 || !j) return null;
63564
+ a = xc && !xc[0];
63565
+ b = yc && !yc[0];
63566
+ if (a || b) return a ? b ? 0 : -j : i2;
63567
+ if (i2 != j) return i2;
63568
+ a = i2 < 0;
63569
+ b = k == l;
63570
+ if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;
63571
+ if (!b) return k > l ^ a ? 1 : -1;
63572
+ j = (k = xc.length) < (l = yc.length) ? k : l;
63573
+ for (i2 = 0; i2 < j; i2++) if (xc[i2] != yc[i2]) return xc[i2] > yc[i2] ^ a ? 1 : -1;
63574
+ return k == l ? 0 : k > l ^ a ? 1 : -1;
63575
+ }
63576
+ function intCheck(n, min, max, name2) {
63577
+ if (n < min || n > max || n !== mathfloor(n)) {
63578
+ throw Error(bignumberError + (name2 || "Argument") + (typeof n == "number" ? n < min || n > max ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(n));
63579
+ }
63580
+ }
63581
+ function isOdd(n) {
63582
+ var k = n.c.length - 1;
63583
+ return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;
63584
+ }
63585
+ function toExponential(str, e) {
63586
+ return (str.length > 1 ? str.charAt(0) + "." + str.slice(1) : str) + (e < 0 ? "e" : "e+") + e;
63587
+ }
63588
+ function toFixedPoint(str, e, z) {
63589
+ var len, zs;
63590
+ if (e < 0) {
63591
+ for (zs = z + "."; ++e; zs += z) ;
63592
+ str = zs + str;
63593
+ } else {
63594
+ len = str.length;
63595
+ if (++e > len) {
63596
+ for (zs = z, e -= len; --e; zs += z) ;
63597
+ str += zs;
63598
+ } else if (e < len) {
63599
+ str = str.slice(0, e) + "." + str.slice(e);
63600
+ }
63601
+ }
63602
+ return str;
63603
+ }
63604
+ var BigNumber = clone();
62274
63605
  const isEmptyValue$1 = (value) => {
62275
63606
  return value === void 0 || value === null || typeof value === "string" && value.trim() === "" || Array.isArray(value) && value.length === 0;
62276
63607
  };
@@ -62390,6 +63721,13 @@ function isReferenceOptionActive(referenceInfo, rowFormData) {
62390
63721
  rowFormData
62391
63722
  );
62392
63723
  }
63724
+ const MAX_NUMERIC_DIGITS = 15;
63725
+ const NUMERIC_FIELD_TYPES = /* @__PURE__ */ new Set([
63726
+ FIELD_TYPE.INTEGER,
63727
+ FIELD_TYPE.LONG,
63728
+ FIELD_TYPE.DOUBLE,
63729
+ FIELD_TYPE.DECIMAL
63730
+ ]);
62393
63731
  function filterRulesByTrigger(rules2, trigger) {
62394
63732
  return rules2.filter((rule) => {
62395
63733
  const ruleTrigger = rule.trigger;
@@ -62445,12 +63783,13 @@ function assembleRules(input) {
62445
63783
  }, buildError(validatorInfo, $t("sys.fieldLengthNotLessThan", { len: minlength })))
62446
63784
  );
62447
63785
  }
62448
- if (!isNil(maxlength)) {
63786
+ const effectiveMaxlength = isNil(maxlength) && fieldType === FIELD_TYPE.TEXT ? 1024 : maxlength;
63787
+ if (!isNil(effectiveMaxlength)) {
62449
63788
  RuleProps.push(
62450
63789
  createRule((_rule, value) => {
62451
63790
  if (isEmptyValue$1(value)) return true;
62452
- return String(value).length <= maxlength;
62453
- }, buildError(validatorInfo, $t("sys.fieldLengthNoMoreThan", { len: maxlength })))
63791
+ return String(value).length <= effectiveMaxlength;
63792
+ }, buildError(validatorInfo, $t("sys.fieldLengthNoMoreThan", { len: effectiveMaxlength })))
62454
63793
  );
62455
63794
  }
62456
63795
  if (regex) {
@@ -62477,6 +63816,19 @@ function assembleRules(input) {
62477
63816
  message: buildError(validatorInfo, $t("sys.fieldValueNeedFalse"))
62478
63817
  });
62479
63818
  }
63819
+ const maxMode = maxValidateMode ?? RangeValidateMode.No_Validate;
63820
+ const minMode = minValidateMode ?? RangeValidateMode.No_Validate;
63821
+ const shouldValidateNumericLength = !enableRangeValidate || maxMode === RangeValidateMode.No_Validate || minMode === RangeValidateMode.No_Validate;
63822
+ if (shouldValidateNumericLength && NUMERIC_FIELD_TYPES.has(fieldType ?? "")) {
63823
+ RuleProps.push(
63824
+ createRule((_rule, value) => {
63825
+ if (isEmptyValue$1(value)) return true;
63826
+ const raw = String(value).trim();
63827
+ const text = /e/i.test(raw) ? new BigNumber(raw).toFixed() : raw;
63828
+ return text.replace(/[+\-.]/g, "").length <= MAX_NUMERIC_DIGITS;
63829
+ }, buildError(validatorInfo, $t("sys.fieldNumericDigitsNoMoreThan")))
63830
+ );
63831
+ }
62480
63832
  if (!enableRangeValidate) {
62481
63833
  return RuleProps;
62482
63834
  }
@@ -63554,7 +64906,7 @@ function newMessages() {
63554
64906
  pattern: {
63555
64907
  mismatch: "%s value %s does not match pattern %s"
63556
64908
  },
63557
- clone: function clone() {
64909
+ clone: function clone2() {
63558
64910
  var cloned = JSON.parse(JSON.stringify(this));
63559
64911
  cloned.clone = this.clone;
63560
64912
  return cloned;
@@ -67867,27 +69219,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
67867
69219
  case "revo-grid":
67868
69220
  return import(
67869
69221
  /* webpackMode: "lazy" */
67870
- "./revo-grid.entry-ByZf-Mkh.js"
69222
+ "./revo-grid.entry-DyC3Ie1V.js"
67871
69223
  ).then(processMod, consoleError);
67872
69224
  case "revogr-filter-panel":
67873
69225
  return import(
67874
69226
  /* webpackMode: "lazy" */
67875
- "./revogr-filter-panel.entry-CUJGzSbz.js"
69227
+ "./revogr-filter-panel.entry-B6YKEctL.js"
67876
69228
  ).then(processMod, consoleError);
67877
69229
  case "revogr-attribution_7":
67878
69230
  return import(
67879
69231
  /* webpackMode: "lazy" */
67880
- "./revogr-attribution_7.entry-Bkbb15P7.js"
69232
+ "./revogr-attribution_7.entry-BX3LvtVl.js"
67881
69233
  ).then(processMod, consoleError);
67882
69234
  case "revogr-clipboard_3":
67883
69235
  return import(
67884
69236
  /* webpackMode: "lazy" */
67885
- "./revogr-clipboard_3.entry-BAsnJv1y.js"
69237
+ "./revogr-clipboard_3.entry-CIsl8Vf6.js"
67886
69238
  ).then(processMod, consoleError);
67887
69239
  case "revogr-data_4":
67888
69240
  return import(
67889
69241
  /* webpackMode: "lazy" */
67890
- "./revogr-data_4.entry-Cpmztqm8.js"
69242
+ "./revogr-data_4.entry-DZN_LFSr.js"
67891
69243
  ).then(processMod, consoleError);
67892
69244
  }
67893
69245
  }
@@ -78152,7 +79504,7 @@ export {
78152
79504
  PlatformEnum as Z,
78153
79505
  LabelPosition as _,
78154
79506
  isSameFieldValue as a,
78155
- useNocodeFormWidget as a$,
79507
+ validateReinspectionDate as a$,
78156
79508
  SignatureNumberTypeEnum as a0,
78157
79509
  SignatureTimeTypeEnum as a1,
78158
79510
  SignShowTypeEnum as a2,
@@ -78163,312 +79515,313 @@ export {
78163
79515
  buildUUID as a7,
78164
79516
  FieldIconMap as a8,
78165
79517
  normalizeFieldType as a9,
78166
- getSubTableTypeByRefModelType as aA,
78167
- EmptySymbol as aB,
78168
- ASSIGNMENTSTRATEGY_ENUM as aC,
78169
- Dependency_ENUM as aD,
78170
- EntityModelCategoryEnum as aE,
78171
- resolveLotDisplayLabel as aF,
78172
- CheckDsTypeEnum as aG,
78173
- DeviceLink as aH,
78174
- DeviceParamsTypeTitle as aI,
78175
- AITooltips as aJ,
78176
- DenoiseMethodOptions as aK,
78177
- BinarizeMethodOptions as aL,
78178
- ParamModelTypeEnum as aM,
78179
- JoinModelTypeEum as aN,
78180
- sqlUtils as aO,
78181
- useWidgetStaticAttrs as aP,
78182
- setSelectValidatorId as aQ,
78183
- setSelectAnnotationId as aR,
78184
- DateFormat as aS,
78185
- LOT_CONTAINER_ROLE as aT,
78186
- buildLotSnListQuery as aU,
78187
- renderUtils as aV,
78188
- NCB_PROVIDE as aW,
78189
- resolveLotRecordByValue as aX,
78190
- materialCheck as aY,
78191
- getLotLockedReason as aZ,
78192
- validateReinspectionDate as a_,
78193
- FieldSysVarDefaultValueEnum as aa,
78194
- CellWidgetViewState as ab,
78195
- DiagonalDirection as ac,
78196
- WidgetImageSizeMode as ad,
78197
- LineDirection as ae,
78198
- TimeDiffFormat as af,
78199
- DiagonalVertex as ag,
78200
- resolveDiagonalVertex as ah,
78201
- getThemeColorByTableType as ai,
78202
- ViewTypeEnum as aj,
78203
- useThrottleFn as ak,
78204
- noop as al,
78205
- isIOS as am,
78206
- isDynamicSubTablePanelType as an,
78207
- isFixedSubTablePanelType as ao,
78208
- ExpressionModeEnum as ap,
78209
- ReturnTypeEnum as aq,
78210
- ExpressionTabEnum as ar,
78211
- RangeValidateMode as as,
78212
- RangeCompareOp as at,
78213
- DecimalDisplayMode as au,
78214
- ImageDisplayModeEnum as av,
78215
- FormDesignEnum as aw,
78216
- BASIC_FIELD_TYPES as ax,
78217
- watchDebounced as ay,
78218
- getExclusiveBusinessTypeTokens as az,
79518
+ getExclusiveBusinessTypeTokens as aA,
79519
+ getSubTableTypeByRefModelType as aB,
79520
+ EmptySymbol as aC,
79521
+ ASSIGNMENTSTRATEGY_ENUM as aD,
79522
+ Dependency_ENUM as aE,
79523
+ EntityModelCategoryEnum as aF,
79524
+ resolveLotDisplayLabel as aG,
79525
+ CheckDsTypeEnum as aH,
79526
+ DeviceLink as aI,
79527
+ DeviceParamsTypeTitle as aJ,
79528
+ AITooltips as aK,
79529
+ DenoiseMethodOptions as aL,
79530
+ BinarizeMethodOptions as aM,
79531
+ ParamModelTypeEnum as aN,
79532
+ JoinModelTypeEum as aO,
79533
+ sqlUtils as aP,
79534
+ useWidgetStaticAttrs as aQ,
79535
+ setSelectValidatorId as aR,
79536
+ setSelectAnnotationId as aS,
79537
+ DateFormat as aT,
79538
+ LOT_CONTAINER_ROLE as aU,
79539
+ buildLotSnListQuery as aV,
79540
+ renderUtils as aW,
79541
+ NCB_PROVIDE as aX,
79542
+ resolveLotRecordByValue as aY,
79543
+ materialCheck as aZ,
79544
+ getLotLockedReason as a_,
79545
+ BigNumber as aa,
79546
+ FieldSysVarDefaultValueEnum as ab,
79547
+ CellWidgetViewState as ac,
79548
+ DiagonalDirection as ad,
79549
+ WidgetImageSizeMode as ae,
79550
+ LineDirection as af,
79551
+ TimeDiffFormat as ag,
79552
+ DiagonalVertex as ah,
79553
+ resolveDiagonalVertex as ai,
79554
+ getThemeColorByTableType as aj,
79555
+ ViewTypeEnum as ak,
79556
+ useThrottleFn as al,
79557
+ noop as am,
79558
+ isIOS as an,
79559
+ isDynamicSubTablePanelType as ao,
79560
+ isFixedSubTablePanelType as ap,
79561
+ ExpressionModeEnum as aq,
79562
+ ReturnTypeEnum as ar,
79563
+ ExpressionTabEnum as as,
79564
+ RangeValidateMode as at,
79565
+ RangeCompareOp as au,
79566
+ DecimalDisplayMode as av,
79567
+ ImageDisplayModeEnum as aw,
79568
+ FormDesignEnum as ax,
79569
+ BASIC_FIELD_TYPES as ay,
79570
+ watchDebounced as az,
78219
79571
  companionLabelKey as b,
78220
- clearFormRules as b$,
78221
- BindCmpStyleEnum as b0,
78222
- getParseRuleInfo as b1,
78223
- getParseRuleValue as b2,
78224
- useCurrentPageFormState as b3,
78225
- STOCKTAKE_DIMENSION as b4,
78226
- F$5 as b5,
78227
- resolveStocktakeSelectApi as b6,
78228
- normalizeRefLoaderResult as b7,
78229
- normalizeProductionContainerOptions as b8,
78230
- buildProductionLotListQuery as b9,
78231
- FILL_FROM_INVENTORY_OPTION$1 as bA,
78232
- INVENTORY_BASE_FIELDS as bB,
78233
- resolveGroupByWarehouse as bC,
78234
- AUTO_LOAD_READONLY_SELECT_FIELDS as bD,
78235
- buildFillFromInventoryOption as bE,
78236
- calcFillData as bF,
78237
- resolveStocktakeInventoryApi as bG,
78238
- F$2 as bH,
78239
- FILL_FROM_INVENTORY_OPTION as bI,
78240
- extractKeywordFromQueryData as bJ,
78241
- composeProductionLotListQuery as bK,
78242
- F as bL,
78243
- isProductManuallyEditable as bM,
78244
- applyFillFromMfgOrderOption as bN,
78245
- applyFillFromOption as bO,
78246
- applyFillFromProductOption as bP,
78247
- MATERIAL_CONTAINER_ID as bQ,
78248
- F$9 as bR,
78249
- PRODUCT_QUICK_SEARCH_FIELDS as bS,
78250
- PRODUCT_QUICK_SEARCH_EXP as bT,
78251
- isProductManuallyEditable$1 as bU,
78252
- applyFillFromMaterialNoOption as bV,
78253
- applyFillFromProductOption$1 as bW,
78254
- F$8 as bX,
78255
- FILL_FROM_INVENTORY_OPTION$4 as bY,
78256
- settleAndValidateDisplay as bZ,
78257
- unregisterValidationContext as b_,
78258
- refUtils as ba,
78259
- transformUtils as bb,
78260
- buildDeviceFilterQuery as bc,
78261
- DEVICE_GROUP_QUERY_KEY as bd,
78262
- useOnlineFormTransformField2Component as be,
78263
- RenderModeEnum as bf,
78264
- useDependency as bg,
78265
- FormulaRuleFieldKeyEnum as bh,
78266
- formulaRuleFieldDict as bi,
78267
- resolveDesignPanelFeatures as bj,
78268
- BIZ_TABLE_CONFIG_SEED_TYPES as bk,
78269
- STOCKTAKE_DIMENSION_OPTIONS as bl,
78270
- getAllTableProfiles as bm,
78271
- isRepeatingSubTablePanelType as bn,
78272
- useNocodeEmitter as bo,
78273
- fetchHistoryConsume as bp,
78274
- isBomGranted as bq,
78275
- F$3 as br,
78276
- F$4 as bs,
78277
- runRowHandler as bt,
78278
- F$7 as bu,
78279
- F$6 as bv,
78280
- FILL_FROM_INVENTORY_OPTION$2 as bw,
78281
- FILL_FROM_PART_OPTION as bx,
78282
- FILL_FROM_INVENTORY_OPTION$3 as by,
78283
- TABLE_TYPE$8 as bz,
79572
+ unregisterValidationContext as b$,
79573
+ useNocodeFormWidget as b0,
79574
+ BindCmpStyleEnum as b1,
79575
+ getParseRuleInfo as b2,
79576
+ getParseRuleValue as b3,
79577
+ useCurrentPageFormState as b4,
79578
+ STOCKTAKE_DIMENSION as b5,
79579
+ F$5 as b6,
79580
+ resolveStocktakeSelectApi as b7,
79581
+ normalizeRefLoaderResult as b8,
79582
+ normalizeProductionContainerOptions as b9,
79583
+ TABLE_TYPE$8 as bA,
79584
+ FILL_FROM_INVENTORY_OPTION$1 as bB,
79585
+ INVENTORY_BASE_FIELDS as bC,
79586
+ resolveGroupByWarehouse as bD,
79587
+ AUTO_LOAD_READONLY_SELECT_FIELDS as bE,
79588
+ buildFillFromInventoryOption as bF,
79589
+ calcFillData as bG,
79590
+ resolveStocktakeInventoryApi as bH,
79591
+ F$2 as bI,
79592
+ FILL_FROM_INVENTORY_OPTION as bJ,
79593
+ extractKeywordFromQueryData as bK,
79594
+ composeProductionLotListQuery as bL,
79595
+ F as bM,
79596
+ isProductManuallyEditable as bN,
79597
+ applyFillFromMfgOrderOption as bO,
79598
+ applyFillFromOption as bP,
79599
+ applyFillFromProductOption as bQ,
79600
+ MATERIAL_CONTAINER_ID as bR,
79601
+ F$9 as bS,
79602
+ PRODUCT_QUICK_SEARCH_FIELDS as bT,
79603
+ PRODUCT_QUICK_SEARCH_EXP as bU,
79604
+ isProductManuallyEditable$1 as bV,
79605
+ applyFillFromMaterialNoOption as bW,
79606
+ applyFillFromProductOption$1 as bX,
79607
+ F$8 as bY,
79608
+ FILL_FROM_INVENTORY_OPTION$4 as bZ,
79609
+ settleAndValidateDisplay as b_,
79610
+ buildProductionLotListQuery as ba,
79611
+ refUtils as bb,
79612
+ transformUtils as bc,
79613
+ buildDeviceFilterQuery as bd,
79614
+ DEVICE_GROUP_QUERY_KEY as be,
79615
+ useOnlineFormTransformField2Component as bf,
79616
+ RenderModeEnum as bg,
79617
+ useDependency as bh,
79618
+ FormulaRuleFieldKeyEnum as bi,
79619
+ formulaRuleFieldDict as bj,
79620
+ resolveDesignPanelFeatures as bk,
79621
+ BIZ_TABLE_CONFIG_SEED_TYPES as bl,
79622
+ STOCKTAKE_DIMENSION_OPTIONS as bm,
79623
+ getAllTableProfiles as bn,
79624
+ isRepeatingSubTablePanelType as bo,
79625
+ useNocodeEmitter as bp,
79626
+ fetchHistoryConsume as bq,
79627
+ isBomGranted as br,
79628
+ F$3 as bs,
79629
+ F$4 as bt,
79630
+ runRowHandler as bu,
79631
+ F$7 as bv,
79632
+ F$6 as bw,
79633
+ FILL_FROM_INVENTORY_OPTION$2 as bx,
79634
+ FILL_FROM_PART_OPTION as by,
79635
+ FILL_FROM_INVENTORY_OPTION$3 as bz,
78284
79636
  companionIdKey as c,
78285
- recordSubtableRowDelete as c$,
78286
- registerValidationContext as c0,
78287
- requestFullValidation as c1,
78288
- requestDisplayValidation as c2,
78289
- closeValidatorPopovers as c3,
78290
- baseDataUtils as c4,
78291
- getRawFormRuleMeta as c5,
78292
- enrichFormChangeRowDetails as c6,
78293
- settleAfterModeSwitch as c7,
78294
- calcUtils as c8,
78295
- uuid2$1 as c9,
78296
- buildStableFieldLocation as cA,
78297
- deleteSubtableRow as cB,
78298
- detailsHaveFormChangeRowOps as cC,
78299
- extractFormChangeRowDetails as cD,
78300
- fetchCheckDsDataForTable as cE,
78301
- fetchCustomCheckDsData as cF,
78302
- fetchMedProCheckDsData as cG,
78303
- getCheckTableSnapshotKey as cH,
78304
- getFormChangeRowKey as cI,
78305
- getFormChangeRowOp as cJ,
78306
- getParseRuleConfig as cK,
78307
- getReinspectionDate as cL,
78308
- getSubTableQuickFillInfo as cM,
78309
- handleOldConfig as cN,
78310
- hasAnyCheckTableSnapshot as cO,
78311
- hasByTableCheckTableSnapshot as cP,
78312
- hasSharedCheckTableSnapshot as cQ,
78313
- insertSubtableRows as cR,
78314
- isAnnLocationSelected as cS,
78315
- isFormChangeGhostRow as cT,
78316
- isMedProSuite as cU,
78317
- isRowAddedInCurrentFormChange as cV,
78318
- jsonSchemaUtils as cW,
78319
- judgeUnique as cX,
78320
- migrateDiagonalDirectionToVertex as cY,
78321
- parseFrontConfig as cZ,
78322
- recordSubtableRowAdd as c_,
78323
- normalizeToArray as ca,
78324
- safeParseArray as cb,
78325
- BpmnNodeTypeEnum as cc,
78326
- mergeByMultiKey as cd,
78327
- commonUtils as ce,
78328
- getRowId as cf,
78329
- collectFormChangeFieldLocations as cg,
78330
- nextFormChangeRowViewHistoryId as ch,
78331
- BpmnSignatureTypeEnum as ci,
78332
- ButtonTypeEnum as cj,
78333
- CHECK_TABLE_MEDPRO_PROTOCOL_KEY as ck,
78334
- CodeRunner as cl,
78335
- Config_Fields as cm,
78336
- ControlStatusEnum as cn,
78337
- DEVICE_SEARCH_API as co,
78338
- DeviceStatus as cp,
78339
- EBR_PROVIDE_ENUM as cq,
78340
- EFieldBizTypeEnum as cr,
78341
- MobileFillTypeEnum as cs,
78342
- OfficeTypeEnum as ct,
78343
- PosEnum as cu,
78344
- SummaryApproveHisTypeEnum as cv,
78345
- applyCheckDsDataToRuntime as cw,
78346
- applyMedProCheckDsDataToRuntime as cx,
78347
- buildDeviceBaseQuery as cy,
78348
- buildFormChangeDisplayRows as cz,
79637
+ recordSubtableRowAdd as c$,
79638
+ clearFormRules as c0,
79639
+ registerValidationContext as c1,
79640
+ requestFullValidation as c2,
79641
+ requestDisplayValidation as c3,
79642
+ closeValidatorPopovers as c4,
79643
+ baseDataUtils as c5,
79644
+ getRawFormRuleMeta as c6,
79645
+ enrichFormChangeRowDetails as c7,
79646
+ settleAfterModeSwitch as c8,
79647
+ calcUtils as c9,
79648
+ buildFormChangeDisplayRows as cA,
79649
+ buildStableFieldLocation as cB,
79650
+ deleteSubtableRow as cC,
79651
+ detailsHaveFormChangeRowOps as cD,
79652
+ extractFormChangeRowDetails as cE,
79653
+ fetchCheckDsDataForTable as cF,
79654
+ fetchCustomCheckDsData as cG,
79655
+ fetchMedProCheckDsData as cH,
79656
+ getCheckTableSnapshotKey as cI,
79657
+ getFormChangeRowKey as cJ,
79658
+ getFormChangeRowOp as cK,
79659
+ getParseRuleConfig as cL,
79660
+ getReinspectionDate as cM,
79661
+ getSubTableQuickFillInfo as cN,
79662
+ handleOldConfig as cO,
79663
+ hasAnyCheckTableSnapshot as cP,
79664
+ hasByTableCheckTableSnapshot as cQ,
79665
+ hasSharedCheckTableSnapshot as cR,
79666
+ insertSubtableRows as cS,
79667
+ isAnnLocationSelected as cT,
79668
+ isFormChangeGhostRow as cU,
79669
+ isMedProSuite as cV,
79670
+ isRowAddedInCurrentFormChange as cW,
79671
+ jsonSchemaUtils as cX,
79672
+ judgeUnique as cY,
79673
+ migrateDiagonalDirectionToVertex as cZ,
79674
+ parseFrontConfig as c_,
79675
+ uuid2$1 as ca,
79676
+ normalizeToArray as cb,
79677
+ safeParseArray as cc,
79678
+ BpmnNodeTypeEnum as cd,
79679
+ mergeByMultiKey as ce,
79680
+ commonUtils as cf,
79681
+ getRowId as cg,
79682
+ collectFormChangeFieldLocations as ch,
79683
+ nextFormChangeRowViewHistoryId as ci,
79684
+ BpmnSignatureTypeEnum as cj,
79685
+ ButtonTypeEnum as ck,
79686
+ CHECK_TABLE_MEDPRO_PROTOCOL_KEY as cl,
79687
+ CodeRunner as cm,
79688
+ Config_Fields as cn,
79689
+ ControlStatusEnum as co,
79690
+ DEVICE_SEARCH_API as cp,
79691
+ DeviceStatus as cq,
79692
+ EBR_PROVIDE_ENUM as cr,
79693
+ EFieldBizTypeEnum as cs,
79694
+ MobileFillTypeEnum as ct,
79695
+ OfficeTypeEnum as cu,
79696
+ PosEnum as cv,
79697
+ SummaryApproveHisTypeEnum as cw,
79698
+ applyCheckDsDataToRuntime as cx,
79699
+ applyMedProCheckDsDataToRuntime as cy,
79700
+ buildDeviceBaseQuery as cz,
78349
79701
  isDataTableProfile as d,
78350
- DataStore as d$,
78351
- relocateDeletedRowsToEnd as d0,
78352
- requestMedProCheckDsData as d1,
78353
- requestNonMedProCheckDsData as d2,
78354
- resolveAnnotationFieldLocation as d3,
78355
- resolveFormChangeRowUi as d4,
78356
- resolveRowFormChangeMark as d5,
78357
- setSelectMobileTdId as d6,
78358
- stockCheck as d7,
78359
- useOnlineFormActionButton as d8,
78360
- assembleRules as d9,
78361
- createEvent as dA,
78362
- getColumnByProp as dB,
78363
- timeout as dC,
78364
- getVisibleSourceItem as dD,
78365
- getColumns as dE,
78366
- rowTypes as dF,
78367
- GroupingRowPlugin as dG,
78368
- StretchColumn as dH,
78369
- isStretchPlugin as dI,
78370
- AutoSizeColumnPlugin as dJ,
78371
- FilterPlugin as dK,
78372
- ExportFilePlugin as dL,
78373
- SortingPlugin as dM,
78374
- ColumnMovePlugin as dN,
78375
- ThemeService as dO,
78376
- h as dP,
78377
- Host as dQ,
78378
- getElement as dR,
78379
- BasePlugin as dS,
78380
- reduce as dT,
78381
- columnTypes as dU,
78382
- debounce$1 as dV,
78383
- RESIZE_INTERVAL as dW,
78384
- DimensionStore as dX,
78385
- gatherTrimmedItems as dY,
78386
- getColumnSizes as dZ,
78387
- getItemByIndex as d_,
78388
- deleteFormRule as da,
78389
- setFormRule as db,
78390
- isReferenceOptionActive as dc,
78391
- validateAllFields as dd,
78392
- runValidation as de,
78393
- ensureFrontRowKey as df,
78394
- FRONT_ROW_KEY as dg,
78395
- buildError as dh,
78396
- q as di,
78397
- groupFixedTableRows as dj,
78398
- QUICK_FILL_ALLOWED_FIELDS as dk,
78399
- processQuickFillRows as dl,
78400
- getIsGroupEmpty as dm,
78401
- tryOnScopeDispose as dn,
78402
- isClient as dp,
78403
- tryOnMounted as dq,
78404
- resolveUnref as dr,
78405
- isString as ds,
78406
- identity$1 as dt,
78407
- getAugmentedNamespace as du,
78408
- CardControlEnum as dv,
78409
- EntityModelTypeEnum as dw,
78410
- RecordNoGenerateEnum as dx,
78411
- TagTypeEnum as dy,
78412
- registerInstance as dz,
79702
+ getItemByIndex as d$,
79703
+ recordSubtableRowDelete as d0,
79704
+ relocateDeletedRowsToEnd as d1,
79705
+ requestMedProCheckDsData as d2,
79706
+ requestNonMedProCheckDsData as d3,
79707
+ resolveAnnotationFieldLocation as d4,
79708
+ resolveFormChangeRowUi as d5,
79709
+ resolveRowFormChangeMark as d6,
79710
+ setSelectMobileTdId as d7,
79711
+ stockCheck as d8,
79712
+ useOnlineFormActionButton as d9,
79713
+ registerInstance as dA,
79714
+ createEvent as dB,
79715
+ getColumnByProp as dC,
79716
+ timeout as dD,
79717
+ getVisibleSourceItem as dE,
79718
+ getColumns as dF,
79719
+ rowTypes as dG,
79720
+ GroupingRowPlugin as dH,
79721
+ StretchColumn as dI,
79722
+ isStretchPlugin as dJ,
79723
+ AutoSizeColumnPlugin as dK,
79724
+ FilterPlugin as dL,
79725
+ ExportFilePlugin as dM,
79726
+ SortingPlugin as dN,
79727
+ ColumnMovePlugin as dO,
79728
+ ThemeService as dP,
79729
+ h as dQ,
79730
+ Host as dR,
79731
+ getElement as dS,
79732
+ BasePlugin as dT,
79733
+ reduce as dU,
79734
+ columnTypes as dV,
79735
+ debounce$1 as dW,
79736
+ RESIZE_INTERVAL as dX,
79737
+ DimensionStore as dY,
79738
+ gatherTrimmedItems as dZ,
79739
+ getColumnSizes as d_,
79740
+ assembleRules as da,
79741
+ deleteFormRule as db,
79742
+ setFormRule as dc,
79743
+ isReferenceOptionActive as dd,
79744
+ validateAllFields as de,
79745
+ runValidation as df,
79746
+ ensureFrontRowKey as dg,
79747
+ FRONT_ROW_KEY as dh,
79748
+ buildError as di,
79749
+ q as dj,
79750
+ groupFixedTableRows as dk,
79751
+ QUICK_FILL_ALLOWED_FIELDS as dl,
79752
+ processQuickFillRows as dm,
79753
+ getIsGroupEmpty as dn,
79754
+ tryOnScopeDispose as dp,
79755
+ isClient as dq,
79756
+ tryOnMounted as dr,
79757
+ resolveUnref as ds,
79758
+ isString as dt,
79759
+ identity$1 as du,
79760
+ getAugmentedNamespace as dv,
79761
+ CardControlEnum as dw,
79762
+ EntityModelTypeEnum as dx,
79763
+ RecordNoGenerateEnum as dy,
79764
+ TagTypeEnum as dz,
78413
79765
  getProfile as e,
78414
- getSourceItem as e0,
78415
- getSourceItemVirtualIndexByProp as e1,
78416
- getColumnType as e2,
78417
- setSourceByPhysicalIndex as e3,
78418
- setSourceByVirtualIndex as e4,
78419
- SelectionStore as e5,
78420
- cropCellToMax as e6,
78421
- nextCell as e7,
78422
- isRowType as e8,
78423
- ViewportStore as e9,
78424
- GROUP_EXPAND_BTN as eA,
78425
- DATA_ROW as eB,
78426
- isGroupingColumn as eC,
78427
- GROUP_COLUMN_PROP as eD,
78428
- getCellRaw as eE,
78429
- DATA_COL as eF,
78430
- CELL_CLASS as eG,
78431
- Build as eH,
78432
- isRowDragService as eI,
78433
- DRAG_ICON_CLASS as eJ,
78434
- DRAGGABLE_CLASS as eK,
78435
- getCellDataParsed as eL,
78436
- GROUP_EXPAND_EVENT as eM,
78437
- isGrouping as eN,
78438
- HEADER_ROW_CLASS as eO,
78439
- HEADER_ACTUAL_ROW_CLASS as eP,
78440
- ROW_FOCUSED_CLASS as eQ,
78441
- HEADER_SORTABLE_CLASS as eR,
78442
- MIN_COL_SIZE as eS,
78443
- FilterButton as eT,
78444
- HeaderCellRenderer as eU,
78445
- HEADER_CLASS as eV,
78446
- AndOrButton as ea,
78447
- ReorderButton as eb,
78448
- TrashButton as ec,
78449
- isFilterBtn as ed,
78450
- ColumnService as ee,
78451
- MOBILE_CLASS as ef,
78452
- SELECTION_BORDER_CLASS as eg,
78453
- getCellData as eh,
78454
- getCellEditor as ei,
78455
- getRange as ej,
78456
- isRangeSingleCell as ek,
78457
- codesLetter as el,
78458
- calculateRowHeaderSize as em,
78459
- ROW_HEADER_TYPE as en,
78460
- getScrollbarSize as eo,
78461
- FOCUS_CLASS as ep,
78462
- CELL_HANDLER_CLASS as eq,
78463
- TMP_SELECTION_BG_CLASS as er,
78464
- getItemByPosition as es,
78465
- EDIT_INPUT_WR as et,
78466
- keyValues as eu,
78467
- isObject as ev,
78468
- DRAGG_TEXT as ew,
78469
- PSEUDO_GROUP_ITEM as ex,
78470
- GROUP_EXPANDED as ey,
78471
- GROUP_DEPTH as ez,
79766
+ DataStore as e0,
79767
+ getSourceItem as e1,
79768
+ getSourceItemVirtualIndexByProp as e2,
79769
+ getColumnType as e3,
79770
+ setSourceByPhysicalIndex as e4,
79771
+ setSourceByVirtualIndex as e5,
79772
+ SelectionStore as e6,
79773
+ cropCellToMax as e7,
79774
+ nextCell as e8,
79775
+ isRowType as e9,
79776
+ GROUP_DEPTH as eA,
79777
+ GROUP_EXPAND_BTN as eB,
79778
+ DATA_ROW as eC,
79779
+ isGroupingColumn as eD,
79780
+ GROUP_COLUMN_PROP as eE,
79781
+ getCellRaw as eF,
79782
+ DATA_COL as eG,
79783
+ CELL_CLASS as eH,
79784
+ Build as eI,
79785
+ isRowDragService as eJ,
79786
+ DRAG_ICON_CLASS as eK,
79787
+ DRAGGABLE_CLASS as eL,
79788
+ getCellDataParsed as eM,
79789
+ GROUP_EXPAND_EVENT as eN,
79790
+ isGrouping as eO,
79791
+ HEADER_ROW_CLASS as eP,
79792
+ HEADER_ACTUAL_ROW_CLASS as eQ,
79793
+ ROW_FOCUSED_CLASS as eR,
79794
+ HEADER_SORTABLE_CLASS as eS,
79795
+ MIN_COL_SIZE as eT,
79796
+ FilterButton as eU,
79797
+ HeaderCellRenderer as eV,
79798
+ HEADER_CLASS as eW,
79799
+ ViewportStore as ea,
79800
+ AndOrButton as eb,
79801
+ ReorderButton as ec,
79802
+ TrashButton as ed,
79803
+ isFilterBtn as ee,
79804
+ ColumnService as ef,
79805
+ MOBILE_CLASS as eg,
79806
+ SELECTION_BORDER_CLASS as eh,
79807
+ getCellData as ei,
79808
+ getCellEditor as ej,
79809
+ getRange as ek,
79810
+ isRangeSingleCell as el,
79811
+ codesLetter as em,
79812
+ calculateRowHeaderSize as en,
79813
+ ROW_HEADER_TYPE as eo,
79814
+ getScrollbarSize as ep,
79815
+ FOCUS_CLASS as eq,
79816
+ CELL_HANDLER_CLASS as er,
79817
+ TMP_SELECTION_BG_CLASS as es,
79818
+ getItemByPosition as et,
79819
+ EDIT_INPUT_WR as eu,
79820
+ keyValues as ev,
79821
+ isObject as ew,
79822
+ DRAGG_TEXT as ex,
79823
+ PSEUDO_GROUP_ITEM as ey,
79824
+ GROUP_EXPANDED as ez,
78472
79825
  isBusinessSubTableProfile as f,
78473
79826
  getAllDataProfiles as g,
78474
79827
  getProfileByTableType as h,