@getodk/xpath 0.1.2 → 0.2.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.
Files changed (87) hide show
  1. package/README.md +0 -1
  2. package/dist/.vite/manifest.json +4 -4
  3. package/dist/context/Context.d.ts +0 -1
  4. package/dist/context/EvaluationContext.d.ts +0 -1
  5. package/dist/evaluations/BooleanEvaluation.d.ts +0 -1
  6. package/dist/evaluations/DateTimeLikeEvaluation.d.ts +0 -1
  7. package/dist/evaluations/Evaluation.d.ts +0 -1
  8. package/dist/evaluations/LocationPathEvaluation.d.ts +0 -1
  9. package/dist/evaluations/NodeEvaluation.d.ts +0 -1
  10. package/dist/evaluations/NumberEvaluation.d.ts +0 -1
  11. package/dist/evaluations/StringEvaluation.d.ts +0 -1
  12. package/dist/evaluations/ValueEvaluation.d.ts +0 -1
  13. package/dist/evaluator/Evaluator.d.ts +0 -1
  14. package/dist/evaluator/NamespaceResolver.d.ts +2 -3
  15. package/dist/evaluator/expression/AbsoluteLocationPathExpressionEvaluator.d.ts +0 -1
  16. package/dist/evaluator/expression/BinaryExpressionEvaluator.d.ts +0 -1
  17. package/dist/evaluator/expression/BooleanBinaryExpressionEvaluator.d.ts +0 -1
  18. package/dist/evaluator/expression/ExpressionEvaluator.d.ts +0 -1
  19. package/dist/evaluator/expression/FilterPathExpressionEvaluator.d.ts +0 -1
  20. package/dist/evaluator/expression/FunctionCallExpressionEvaluator.d.ts +0 -1
  21. package/dist/evaluator/expression/LocationPathEvaluator.d.ts +0 -1
  22. package/dist/evaluator/expression/LocationPathExpressionEvaluator.d.ts +0 -1
  23. package/dist/evaluator/expression/NumberExpressionEvaluator.d.ts +0 -1
  24. package/dist/evaluator/expression/NumberLiteralExpressionEvaluator.d.ts +0 -1
  25. package/dist/evaluator/expression/NumericBinaryExpressionEvaluator.d.ts +0 -1
  26. package/dist/evaluator/expression/RelativeLocationPathExpressionEvaluator.d.ts +0 -1
  27. package/dist/evaluator/expression/StringExpressionEvaluator.d.ts +0 -1
  28. package/dist/evaluator/expression/StringLiteralExpressionEvaluator.d.ts +0 -1
  29. package/dist/evaluator/expression/UnaryExpressionEvaluator.d.ts +0 -1
  30. package/dist/evaluator/expression/UnionExpressionEvaluator.d.ts +0 -1
  31. package/dist/evaluator/expression/factory.d.ts +0 -1
  32. package/dist/evaluator/functions/BooleanFunction.d.ts +0 -1
  33. package/dist/evaluator/functions/FunctionAlias.d.ts +0 -1
  34. package/dist/evaluator/functions/FunctionImplementation.d.ts +0 -1
  35. package/dist/evaluator/functions/FunctionLibrary.d.ts +0 -1
  36. package/dist/evaluator/functions/FunctionLibraryCollection.d.ts +0 -1
  37. package/dist/evaluator/functions/NodeSetFunction.d.ts +0 -1
  38. package/dist/evaluator/functions/NumberFunction.d.ts +0 -1
  39. package/dist/evaluator/functions/StringFunction.d.ts +0 -1
  40. package/dist/evaluator/functions/TypedFunctionImplementation.d.ts +0 -1
  41. package/dist/evaluator/result/BooleanResult.d.ts +0 -1
  42. package/dist/evaluator/result/NodeSetResult.d.ts +0 -1
  43. package/dist/evaluator/result/NumberResult.d.ts +0 -1
  44. package/dist/evaluator/result/PrimitiveResult.d.ts +0 -1
  45. package/dist/evaluator/result/StringResult.d.ts +0 -1
  46. package/dist/evaluator/result/index.d.ts +0 -1
  47. package/dist/evaluator/step/Step.d.ts +0 -1
  48. package/dist/expressionParser-BVz9yCmv.js +3482 -0
  49. package/dist/expressionParser-BVz9yCmv.js.map +1 -0
  50. package/dist/expressionParser.d.ts +0 -1
  51. package/dist/expressionParser.js +1 -1
  52. package/dist/functions/_shared/number.d.ts +0 -1
  53. package/dist/functions/_shared/string.d.ts +0 -1
  54. package/dist/functions/enketo/index.d.ts +0 -1
  55. package/dist/functions/fn/boolean.d.ts +0 -1
  56. package/dist/functions/fn/index.d.ts +0 -1
  57. package/dist/functions/fn/node-set.d.ts +0 -1
  58. package/dist/functions/fn/number.d.ts +0 -1
  59. package/dist/functions/fn/string.d.ts +0 -1
  60. package/dist/functions/javarosa/index.d.ts +0 -1
  61. package/dist/functions/javarosa/string.d.ts +0 -1
  62. package/dist/functions/xforms/boolean.d.ts +0 -1
  63. package/dist/functions/xforms/datetime.d.ts +0 -1
  64. package/dist/functions/xforms/geo.d.ts +0 -1
  65. package/dist/functions/xforms/index.d.ts +0 -1
  66. package/dist/functions/xforms/node-set.d.ts +1 -1
  67. package/dist/functions/xforms/number.d.ts +0 -1
  68. package/dist/functions/xforms/select.d.ts +0 -1
  69. package/dist/functions/xforms/string.d.ts +0 -1
  70. package/dist/index.js +1465 -391
  71. package/dist/index.js.map +1 -1
  72. package/dist/lib/datetime/coercion.d.ts +0 -1
  73. package/dist/lib/datetime/functions.d.ts +0 -1
  74. package/dist/lib/dom/assertions.d.ts +0 -1
  75. package/dist/lib/dom/predicates.d.ts +0 -1
  76. package/dist/lib/dom/traversal.d.ts +1 -2
  77. package/dist/static/grammar/ExpressionParser.d.ts +0 -1
  78. package/dist/static/grammar/SyntaxLanguage.d.ts +0 -1
  79. package/dist/static/grammar/SyntaxNode.d.ts +0 -1
  80. package/dist/static/grammar/SyntaxTree.d.ts +0 -1
  81. package/dist/static/grammar/TreeSitterXPathParser.d.ts +0 -1
  82. package/dist/static/grammar/type-names.d.ts +0 -1
  83. package/dist/xforms/XFormsItextTranslations.d.ts +0 -1
  84. package/dist/xforms/XFormsXPathEvaluator.d.ts +0 -1
  85. package/package.json +14 -14
  86. package/dist/expressionParser-BbqMYp75.js +0 -2116
  87. package/dist/expressionParser-BbqMYp75.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as commonjsGlobal, U as UpsertableMap, e as expressionParser, g as getAugmentedNamespace, a as getDefaultExportFromCjs } from './expressionParser-BbqMYp75.js';
1
+ import { c as commonjsGlobal, U as UpsertableMap, e as expressionParser, g as getAugmentedNamespace, a as getDefaultExportFromCjs } from './expressionParser-BVz9yCmv.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
@@ -387,13 +387,13 @@ function ParseTemporalYearMonthString(e) {
387
387
  if (void 0 !== n && "iso8601" !== n) throw new RangeError("YYYY-MM format is only valid with iso8601 calendar");
388
388
  } else {
389
389
  let t;
390
- if (({
390
+ if ({
391
391
  year: r,
392
392
  month: o,
393
393
  calendar: n,
394
394
  day: a,
395
395
  z: t
396
- } = ParseISODateTime(e)), t) throw new RangeError("Z designator not supported for PlainYearMonth");
396
+ } = ParseISODateTime(e), t) throw new RangeError("Z designator not supported for PlainYearMonth");
397
397
  }
398
398
  return {
399
399
  year: r,
@@ -412,13 +412,13 @@ function ParseTemporalMonthDayString(e) {
412
412
  if (void 0 !== n && "iso8601" !== n) throw new RangeError("MM-DD format is only valid with iso8601 calendar");
413
413
  } else {
414
414
  let t;
415
- if (({
415
+ if ({
416
416
  month: r,
417
417
  day: o,
418
418
  calendar: n,
419
419
  year: a,
420
420
  z: t
421
- } = ParseISODateTime(e)), t) throw new RangeError("Z designator not supported for PlainMonthDay");
421
+ } = ParseISODateTime(e), t) throw new RangeError("Z designator not supported for PlainMonthDay");
422
422
  }
423
423
  return {
424
424
  month: r,
@@ -799,7 +799,7 @@ function ToRelativeTemporalObject(e) {
799
799
  e.push("timeZone", "offset");
800
800
  const p = PrepareTemporalFields(t, e, []),
801
801
  f = Te(null);
802
- f.overflow = "constrain", ({
802
+ f.overflow = "constrain", {
803
803
  year: r,
804
804
  month: o,
805
805
  day: n,
@@ -809,10 +809,10 @@ function ToRelativeTemporalObject(e) {
809
809
  millisecond: l,
810
810
  microsecond: d,
811
811
  nanosecond: m
812
- } = InterpretTemporalDateTimeFields(c, p, f)), u = p.offset, void 0 === u && (T = "wall"), h = p.timeZone, void 0 !== h && (h = ToTemporalTimeZoneSlotValue(h));
812
+ } = InterpretTemporalDateTimeFields(c, p, f), u = p.offset, void 0 === u && (T = "wall"), h = p.timeZone, void 0 !== h && (h = ToTemporalTimeZoneSlotValue(h));
813
813
  } else {
814
814
  let e, f;
815
- if (({
815
+ if ({
816
816
  year: r,
817
817
  month: o,
818
818
  day: n,
@@ -826,7 +826,7 @@ function ToRelativeTemporalObject(e) {
826
826
  ianaName: e,
827
827
  offset: u,
828
828
  z: f
829
- } = ParseISODateTime(ToString(t))), e) h = ToTemporalTimeZoneSlotValue(e), f ? T = "exact" : u || (T = "wall"), p = !0;else if (f) throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");
829
+ } = ParseISODateTime(ToString(t)), e) h = ToTemporalTimeZoneSlotValue(e), f ? T = "exact" : u || (T = "wall"), p = !0;else if (f) throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");
830
830
  if (c || (c = "iso8601"), !IsBuiltinCalendar(c)) throw new RangeError(`invalid calendar identifier ${c}`);
831
831
  c = ASCIILowercase(c);
832
832
  }
@@ -906,14 +906,14 @@ function InterpretTemporalDateTimeFields(e, t, r) {
906
906
  T = GetSlot(u, i),
907
907
  p = GetSlot(u, s),
908
908
  f = GetSlot(u, l);
909
- return ({
909
+ return {
910
910
  hour: o,
911
911
  minute: n,
912
912
  second: a,
913
913
  millisecond: d,
914
914
  microsecond: m,
915
915
  nanosecond: c
916
- } = RegulateTime(o, n, a, d, m, c, h)), {
916
+ } = RegulateTime(o, n, a, d, m, c, h), {
917
917
  year: T,
918
918
  month: p,
919
919
  day: f,
@@ -946,7 +946,7 @@ function ToTemporalDateTime(e, t) {
946
946
  } = InterpretTemporalDateTimeFields(T, f, t));
947
947
  } else {
948
948
  let i;
949
- if (ToTemporalOverflow(t), ({
949
+ if (ToTemporalOverflow(t), {
950
950
  year: r,
951
951
  month: o,
952
952
  day: n,
@@ -960,7 +960,7 @@ function ToTemporalDateTime(e, t) {
960
960
  z: i
961
961
  } = function ParseTemporalDateTimeString(e) {
962
962
  return ParseISODateTime(e);
963
- }(ToString(e))), i) throw new RangeError("Z designator not supported for PlainDateTime");
963
+ }(ToString(e)), i) throw new RangeError("Z designator not supported for PlainDateTime");
964
964
  if (RejectDateTime(r, o, n, a, d, m, c, h, u), T || (T = "iso8601"), !IsBuiltinCalendar(T)) throw new RangeError(`invalid calendar identifier ${T}`);
965
965
  T = ASCIILowercase(T);
966
966
  }
@@ -1033,14 +1033,14 @@ function ToTemporalTime(e, t = "constrain") {
1033
1033
  millisecond: a,
1034
1034
  microsecond: i,
1035
1035
  nanosecond: s
1036
- } = ToTemporalTimeRecord(l))), ({
1036
+ } = ToTemporalTimeRecord(l))), {
1037
1037
  hour: r,
1038
1038
  minute: o,
1039
1039
  second: n,
1040
1040
  millisecond: a,
1041
1041
  microsecond: i,
1042
1042
  nanosecond: s
1043
- } = RegulateTime(r, o, n, a, i, s, t));
1043
+ } = RegulateTime(r, o, n, a, i, s, t);
1044
1044
  } else (({
1045
1045
  hour: r,
1046
1046
  minute: o,
@@ -1059,7 +1059,7 @@ function ToTemporalTime(e, t = "constrain") {
1059
1059
  if (t[8]) throw new RangeError("Z designator not supported for PlainTime");
1060
1060
  } else {
1061
1061
  let t, l;
1062
- if (({
1062
+ if ({
1063
1063
  hasTime: l,
1064
1064
  hour: r,
1065
1065
  minute: o,
@@ -1068,7 +1068,7 @@ function ToTemporalTime(e, t = "constrain") {
1068
1068
  microsecond: i,
1069
1069
  nanosecond: s,
1070
1070
  z: t
1071
- } = ParseISODateTime(e)), !l) throw new RangeError(`time is missing in string: ${e}`);
1071
+ } = ParseISODateTime(e), !l) throw new RangeError(`time is missing in string: ${e}`);
1072
1072
  if (t) throw new RangeError("Z designator not supported for PlainTime");
1073
1073
  }
1074
1074
  if (/[tT ][0-9][0-9]/.test(e)) return {
@@ -1170,7 +1170,7 @@ function ToTemporalZonedDateTime(e, t) {
1170
1170
  const f = CalendarFields(u, ["day", "hour", "microsecond", "millisecond", "minute", "month", "monthCode", "nanosecond", "second", "year"]);
1171
1171
  f.push("timeZone", "offset");
1172
1172
  const I = PrepareTemporalFields(e, f, ["timeZone"]);
1173
- c = ToTemporalTimeZoneSlotValue(I.timeZone), h = I.offset, void 0 === h && (y = "wall"), T = ToTemporalDisambiguation(t), p = ToTemporalOffset(t, "reject"), ({
1173
+ c = ToTemporalTimeZoneSlotValue(I.timeZone), h = I.offset, void 0 === h && (y = "wall"), T = ToTemporalDisambiguation(t), p = ToTemporalOffset(t, "reject"), {
1174
1174
  year: r,
1175
1175
  month: o,
1176
1176
  day: n,
@@ -1180,10 +1180,10 @@ function ToTemporalZonedDateTime(e, t) {
1180
1180
  millisecond: l,
1181
1181
  microsecond: d,
1182
1182
  nanosecond: m
1183
- } = InterpretTemporalDateTimeFields(u, I, t));
1183
+ } = InterpretTemporalDateTimeFields(u, I, t);
1184
1184
  } else {
1185
1185
  let I, S;
1186
- if (({
1186
+ if ({
1187
1187
  year: r,
1188
1188
  month: o,
1189
1189
  day: n,
@@ -1201,7 +1201,7 @@ function ToTemporalZonedDateTime(e, t) {
1201
1201
  const t = ParseISODateTime(e);
1202
1202
  if (!t.ianaName) throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");
1203
1203
  return t;
1204
- }(ToString(e))), c = ToTemporalTimeZoneSlotValue(I), S ? y = "exact" : h || (y = "wall"), u || (u = "iso8601"), !IsBuiltinCalendar(u)) throw new RangeError(`invalid calendar identifier ${u}`);
1204
+ }(ToString(e)), c = ToTemporalTimeZoneSlotValue(I), S ? y = "exact" : h || (y = "wall"), u || (u = "iso8601"), !IsBuiltinCalendar(u)) throw new RangeError(`invalid calendar identifier ${u}`);
1205
1205
  u = ASCIILowercase(u), f = !0, T = ToTemporalDisambiguation(t), p = ToTemporalOffset(t, "reject"), ToTemporalOverflow(t);
1206
1206
  }
1207
1207
  let I = 0;
@@ -1593,7 +1593,7 @@ function GetPlainDateTimeFor(e, t, r) {
1593
1593
  microsecond: u,
1594
1594
  nanosecond: T
1595
1595
  } = GetISOPartsFromEpoch(o);
1596
- return ({
1596
+ return {
1597
1597
  year: i,
1598
1598
  month: s,
1599
1599
  day: l,
@@ -1603,7 +1603,7 @@ function GetPlainDateTimeFor(e, t, r) {
1603
1603
  millisecond: h,
1604
1604
  microsecond: u,
1605
1605
  nanosecond: T
1606
- } = BalanceISODateTime(i, s, l, d, m, c, h, u, T + a)), CreateTemporalDateTime(i, s, l, d, m, c, h, u, T, r);
1606
+ } = BalanceISODateTime(i, s, l, d, m, c, h, u, T + a), CreateTemporalDateTime(i, s, l, d, m, c, h, u, T, r);
1607
1607
  }
1608
1608
  function GetInstantFor(e, t, r) {
1609
1609
  return DisambiguatePossibleInstants(GetPossibleInstantsFor(e, t), e, t, r);
@@ -1751,13 +1751,13 @@ function TemporalDurationToString(t, r = "auto", o) {
1751
1751
  (({
1752
1752
  quotient: Y,
1753
1753
  remainder: I
1754
- } = divmod(Y, De))), ({
1754
+ } = divmod(Y, De))), {
1755
1755
  quotient: Y,
1756
1756
  remainder: S
1757
- } = divmod(Y, De)), ({
1757
+ } = divmod(Y, De), {
1758
1758
  quotient: F,
1759
1759
  remainder: g
1760
- } = divmod(Y, De));
1760
+ } = divmod(Y, De);
1761
1761
  const P = 1e6 * ae(Number(g)) + 1e3 * ae(Number(S)) + ae(Number(I));
1762
1762
  let Z;
1763
1763
  if ("auto" === r) {
@@ -2092,10 +2092,10 @@ function BalanceISODate(e, t, r) {
2092
2092
  year: o,
2093
2093
  month: n
2094
2094
  } = BalanceISOYearMonth(o, n - 1))), a += ISODaysInMonth(o, n);
2095
- for (; a > ISODaysInMonth(o, n);) a -= ISODaysInMonth(o, n), ({
2095
+ for (; a > ISODaysInMonth(o, n);) a -= ISODaysInMonth(o, n), {
2096
2096
  year: o,
2097
2097
  month: n
2098
- } = BalanceISOYearMonth(o, n + 1));
2098
+ } = BalanceISOYearMonth(o, n + 1);
2099
2099
  return {
2100
2100
  year: o,
2101
2101
  month: n,
@@ -2137,25 +2137,25 @@ function BalanceTime(t, r, o, n, a, i) {
2137
2137
  c = BigInt(n),
2138
2138
  h = BigInt(a),
2139
2139
  u = BigInt(i);
2140
- return ({
2140
+ return {
2141
2141
  quotient: s,
2142
2142
  remainder: u
2143
- } = NonNegativeBigIntDivmod(u, De)), h = h + s, ({
2143
+ } = NonNegativeBigIntDivmod(u, De), h = h + s, {
2144
2144
  quotient: s,
2145
2145
  remainder: h
2146
- } = NonNegativeBigIntDivmod(h, De)), c = c + s, ({
2146
+ } = NonNegativeBigIntDivmod(h, De), c = c + s, {
2147
2147
  quotient: s,
2148
2148
  remainder: c
2149
- } = NonNegativeBigIntDivmod(c, De)), m = m + s, ({
2149
+ } = NonNegativeBigIntDivmod(c, De), m = m + s, {
2150
2150
  quotient: s,
2151
2151
  remainder: m
2152
- } = NonNegativeBigIntDivmod(m, ge)), d = d + s, ({
2152
+ } = NonNegativeBigIntDivmod(m, ge), d = d + s, {
2153
2153
  quotient: s,
2154
2154
  remainder: d
2155
- } = NonNegativeBigIntDivmod(d, ge)), l = l + s, ({
2155
+ } = NonNegativeBigIntDivmod(d, ge), l = l + s, {
2156
2156
  quotient: s,
2157
2157
  remainder: l
2158
- } = NonNegativeBigIntDivmod(l, we)), {
2158
+ } = NonNegativeBigIntDivmod(l, we), {
2159
2159
  deltaDays: Number(s),
2160
2160
  hour: Number(l),
2161
2161
  minute: Number(d),
@@ -2188,10 +2188,10 @@ function NanosecondsToDays(t, r) {
2188
2188
  };
2189
2189
  if (!IsTemporalZonedDateTime(r)) {
2190
2190
  let t;
2191
- return ({
2191
+ return {
2192
2192
  quotient: t,
2193
2193
  remainder: f
2194
- } = divmod(f, BigInt(y))), {
2194
+ } = divmod(f, BigInt(y)), {
2195
2195
  days: Number(t),
2196
2196
  nanoseconds: f,
2197
2197
  dayLengthNs: y
@@ -2249,10 +2249,10 @@ function BalancePossiblyInfiniteDuration(t, r, o, a, i, s, l, d, m) {
2249
2249
  d = GetSlot(m, n);
2250
2250
  c = t - d;
2251
2251
  } else c = TotalDurationNanoseconds(I, r, o, a, i, s, l, 0);
2252
- "year" === d || "month" === d || "week" === d || "day" === d ? ({
2252
+ "year" === d || "month" === d || "week" === d || "day" === d ? {
2253
2253
  days: I,
2254
2254
  nanoseconds: c
2255
- } = NanosecondsToDays(c, m)) : I = 0;
2255
+ } = NanosecondsToDays(c, m) : I = 0;
2256
2256
  const w = c < Ie ? -1 : 1;
2257
2257
  switch (c = abs$1(c), h = u = T = f = y = Ie, d) {
2258
2258
  case "year":
@@ -2263,55 +2263,55 @@ function BalancePossiblyInfiniteDuration(t, r, o, a, i, s, l, d, m) {
2263
2263
  (({
2264
2264
  quotient: h,
2265
2265
  remainder: c
2266
- } = divmod(c, De))), ({
2266
+ } = divmod(c, De))), {
2267
2267
  quotient: u,
2268
2268
  remainder: h
2269
- } = divmod(h, De)), ({
2269
+ } = divmod(h, De), {
2270
2270
  quotient: T,
2271
2271
  remainder: u
2272
- } = divmod(u, De)), ({
2272
+ } = divmod(u, De), {
2273
2273
  quotient: f,
2274
2274
  remainder: T
2275
- } = divmod(T, ge)), ({
2275
+ } = divmod(T, ge), {
2276
2276
  quotient: y,
2277
2277
  remainder: f
2278
- } = divmod(f, ge));
2278
+ } = divmod(f, ge);
2279
2279
  break;
2280
2280
  case "minute":
2281
2281
  (({
2282
2282
  quotient: h,
2283
2283
  remainder: c
2284
- } = divmod(c, De))), ({
2284
+ } = divmod(c, De))), {
2285
2285
  quotient: u,
2286
2286
  remainder: h
2287
- } = divmod(h, De)), ({
2287
+ } = divmod(h, De), {
2288
2288
  quotient: T,
2289
2289
  remainder: u
2290
- } = divmod(u, De)), ({
2290
+ } = divmod(u, De), {
2291
2291
  quotient: f,
2292
2292
  remainder: T
2293
- } = divmod(T, ge));
2293
+ } = divmod(T, ge);
2294
2294
  break;
2295
2295
  case "second":
2296
2296
  (({
2297
2297
  quotient: h,
2298
2298
  remainder: c
2299
- } = divmod(c, De))), ({
2299
+ } = divmod(c, De))), {
2300
2300
  quotient: u,
2301
2301
  remainder: h
2302
- } = divmod(h, De)), ({
2302
+ } = divmod(h, De), {
2303
2303
  quotient: T,
2304
2304
  remainder: u
2305
- } = divmod(u, De));
2305
+ } = divmod(u, De);
2306
2306
  break;
2307
2307
  case "millisecond":
2308
2308
  (({
2309
2309
  quotient: h,
2310
2310
  remainder: c
2311
- } = divmod(c, De))), ({
2311
+ } = divmod(c, De))), {
2312
2312
  quotient: u,
2313
2313
  remainder: h
2314
- } = divmod(h, De));
2314
+ } = divmod(h, De);
2315
2315
  break;
2316
2316
  case "microsecond":
2317
2317
  ({
@@ -2590,7 +2590,7 @@ function DifferenceTime(e, t, r, o, n, a, i, s, l, d, m, c) {
2590
2590
  const I = DurationSign(0, 0, 0, 0, h, u, T, p, f, y);
2591
2591
  h *= I, u *= I, T *= I, p *= I, f *= I, y *= I;
2592
2592
  let S = 0;
2593
- if (({
2593
+ if ({
2594
2594
  deltaDays: S,
2595
2595
  hour: h,
2596
2596
  minute: u,
@@ -2598,7 +2598,7 @@ function DifferenceTime(e, t, r, o, n, a, i, s, l, d, m, c) {
2598
2598
  millisecond: p,
2599
2599
  microsecond: f,
2600
2600
  nanosecond: y
2601
- } = BalanceTime(h, u, T, p, f, y)), 0 != S) throw new Error("assertion failure in DifferenceTime: _bt_.[[Days]] should be 0");
2601
+ } = BalanceTime(h, u, T, p, f, y), 0 != S) throw new Error("assertion failure in DifferenceTime: _bt_.[[Days]] should be 0");
2602
2602
  return h *= I, u *= I, T *= I, p *= I, f *= I, y *= I, {
2603
2603
  hours: h,
2604
2604
  minutes: u,
@@ -2616,14 +2616,14 @@ function DifferenceInstant(t, r, o, n, a, i) {
2616
2616
  c = Number(s / De % De),
2617
2617
  h = Number(s / Ge % De),
2618
2618
  u = Number(s / ve);
2619
- return ({
2619
+ return {
2620
2620
  hours: l,
2621
2621
  minutes: d,
2622
2622
  seconds: u,
2623
2623
  milliseconds: h,
2624
2624
  microseconds: c,
2625
2625
  nanoseconds: m
2626
- } = RoundDuration(0, 0, 0, 0, 0, 0, u, h, c, m, o, n, i)), BalanceDuration(0, l, d, u, h, c, m, a);
2626
+ } = RoundDuration(0, 0, 0, 0, 0, 0, u, h, c, m, o, n, i), BalanceDuration(0, l, d, u, h, c, m, a);
2627
2627
  }
2628
2628
  function DifferenceISODateTime(e, t, r, o, n, a, i, s, l, d, m, c, h, u, T, p, f, y, I, S, g) {
2629
2629
  let w = e,
@@ -2638,18 +2638,18 @@ function DifferenceISODateTime(e, t, r, o, n, a, i, s, l, d, m, c, h, u, T, p, f
2638
2638
  nanoseconds: M
2639
2639
  } = DifferenceTime(o, n, a, i, s, l, h, u, T, p, f, y);
2640
2640
  const R = DurationSign(0, 0, 0, 0, v, C, O, b, E, M);
2641
- CompareISODate(d, m, c, w, D, G) === -R && (({
2641
+ CompareISODate(d, m, c, w, D, G) === -R && ({
2642
2642
  year: w,
2643
2643
  month: D,
2644
2644
  day: G
2645
- } = BalanceISODate(w, D, G - R)), ({
2645
+ } = BalanceISODate(w, D, G - R), {
2646
2646
  hours: v,
2647
2647
  minutes: C,
2648
2648
  seconds: O,
2649
2649
  milliseconds: b,
2650
2650
  microseconds: E,
2651
2651
  nanoseconds: M
2652
- } = BalanceDuration(-R, v, C, O, b, E, M, S)));
2652
+ } = BalanceDuration(-R, v, C, O, b, E, M, S));
2653
2653
  const F = CreateTemporalDate(w, D, G, I),
2654
2654
  Y = CreateTemporalDate(d, m, c, I),
2655
2655
  P = LargerOfTwoTemporalUnits("day", S),
@@ -2661,7 +2661,7 @@ function DifferenceISODateTime(e, t, r, o, n, a, i, s, l, d, m, c, h, u, T, p, f
2661
2661
  weeks: j,
2662
2662
  days: $
2663
2663
  } = CalendarDateUntil(I, F, Y, Z);
2664
- return ({
2664
+ return {
2665
2665
  days: $,
2666
2666
  hours: v,
2667
2667
  minutes: C,
@@ -2669,7 +2669,7 @@ function DifferenceISODateTime(e, t, r, o, n, a, i, s, l, d, m, c, h, u, T, p, f
2669
2669
  milliseconds: b,
2670
2670
  microseconds: E,
2671
2671
  nanoseconds: M
2672
- } = BalanceDuration($, v, C, O, b, E, M, S)), {
2672
+ } = BalanceDuration($, v, C, O, b, E, M, S), {
2673
2673
  years: B,
2674
2674
  months: N,
2675
2675
  weeks: j,
@@ -2848,7 +2848,7 @@ function DifferenceTemporalPlainDateTime(e, t, r, o) {
2848
2848
  milliseconds: O,
2849
2849
  microseconds: b,
2850
2850
  nanoseconds: E
2851
- } = RoundDuration(S, g, w, D, G, v, C, O, b, E, I.roundingIncrement, I.smallestUnit, I.roundingMode, M))), ({
2851
+ } = RoundDuration(S, g, w, D, G, v, C, O, b, E, I.roundingIncrement, I.smallestUnit, I.roundingMode, M))), {
2852
2852
  days: D,
2853
2853
  hours: G,
2854
2854
  minutes: v,
@@ -2856,7 +2856,7 @@ function DifferenceTemporalPlainDateTime(e, t, r, o) {
2856
2856
  milliseconds: O,
2857
2857
  microseconds: b,
2858
2858
  nanoseconds: E
2859
- } = BalanceDuration(D, G, v, C, O, b, E, I.largestUnit));
2859
+ } = BalanceDuration(D, G, v, C, O, b, E, I.largestUnit);
2860
2860
  return new (GetIntrinsic("%Temporal.Duration%"))(n * S, n * g, n * w, n * D, n * G, n * v, n * C, n * O, n * b, n * E);
2861
2861
  }
2862
2862
  function DifferenceTemporalPlainTime(e, t, r, o) {
@@ -2878,14 +2878,14 @@ function DifferenceTemporalPlainTime(e, t, r, o) {
2878
2878
  milliseconds: f,
2879
2879
  microseconds: y,
2880
2880
  nanoseconds: I
2881
- } = RoundDuration(0, 0, 0, 0, s, l, p, f, y, I, i.roundingIncrement, i.smallestUnit, i.roundingMode))), ({
2881
+ } = RoundDuration(0, 0, 0, 0, s, l, p, f, y, I, i.roundingIncrement, i.smallestUnit, i.roundingMode))), {
2882
2882
  hours: s,
2883
2883
  minutes: l,
2884
2884
  seconds: p,
2885
2885
  milliseconds: f,
2886
2886
  microseconds: y,
2887
2887
  nanoseconds: I
2888
- } = BalanceDuration(0, s, l, p, f, y, I, i.largestUnit));
2888
+ } = BalanceDuration(0, s, l, p, f, y, I, i.largestUnit);
2889
2889
  return new (GetIntrinsic("%Temporal.Duration%"))(0, 0, 0, 0, n * s, n * l, n * p, n * f, n * y, n * I);
2890
2890
  }
2891
2891
  function DifferenceTemporalPlainYearMonth(e, t, r, o) {
@@ -2924,14 +2924,14 @@ function DifferenceTemporalZonedDateTime(e, t, r, o) {
2924
2924
  const m = GetSlot(t, n),
2925
2925
  c = GetSlot(i, n);
2926
2926
  let h, u, T, f, y, I, S, w, D, G;
2927
- if ("year" !== d.largestUnit && "month" !== d.largestUnit && "week" !== d.largestUnit && "day" !== d.largestUnit) h = 0, u = 0, T = 0, f = 0, ({
2927
+ if ("year" !== d.largestUnit && "month" !== d.largestUnit && "week" !== d.largestUnit && "day" !== d.largestUnit) h = 0, u = 0, T = 0, f = 0, {
2928
2928
  hours: y,
2929
2929
  minutes: I,
2930
2930
  seconds: S,
2931
2931
  milliseconds: w,
2932
2932
  microseconds: D,
2933
2933
  nanoseconds: G
2934
- } = DifferenceInstant(m, c, d.roundingIncrement, d.smallestUnit, d.largestUnit, d.roundingMode));else {
2934
+ } = DifferenceInstant(m, c, d.roundingIncrement, d.smallestUnit, d.largestUnit, d.roundingMode);else {
2935
2935
  const e = GetSlot(t, g);
2936
2936
  if (!TimeZoneEquals(e, GetSlot(i, g))) throw new RangeError("When calculating difference between time zones, largestUnit must be 'hours' or smaller because day lengths can vary between time zones due to DST or time zone offset changes.");
2937
2937
  (({
@@ -2945,7 +2945,7 @@ function DifferenceTemporalZonedDateTime(e, t, r, o) {
2945
2945
  milliseconds: w,
2946
2946
  microseconds: D,
2947
2947
  nanoseconds: G
2948
- } = DifferenceZonedDateTime(m, c, e, s, d.largestUnit, l))), ({
2948
+ } = DifferenceZonedDateTime(m, c, e, s, d.largestUnit, l))), {
2949
2949
  years: h,
2950
2950
  months: u,
2951
2951
  weeks: T,
@@ -2956,7 +2956,7 @@ function DifferenceTemporalZonedDateTime(e, t, r, o) {
2956
2956
  milliseconds: w,
2957
2957
  microseconds: D,
2958
2958
  nanoseconds: G
2959
- } = RoundDuration(h, u, T, f, y, I, S, w, D, G, d.roundingIncrement, d.smallestUnit, d.roundingMode, t)), ({
2959
+ } = RoundDuration(h, u, T, f, y, I, S, w, D, G, d.roundingIncrement, d.smallestUnit, d.roundingMode, t), {
2960
2960
  years: h,
2961
2961
  months: u,
2962
2962
  weeks: T,
@@ -2967,7 +2967,7 @@ function DifferenceTemporalZonedDateTime(e, t, r, o) {
2967
2967
  milliseconds: w,
2968
2968
  microseconds: D,
2969
2969
  nanoseconds: G
2970
- } = AdjustRoundedDurationDays(h, u, T, f, y, I, S, w, D, G, d.roundingIncrement, d.smallestUnit, d.roundingMode, t));
2970
+ } = AdjustRoundedDurationDays(h, u, T, f, y, I, S, w, D, G, d.roundingIncrement, d.smallestUnit, d.roundingMode, t);
2971
2971
  }
2972
2972
  return new (GetIntrinsic("%Temporal.Duration%"))(a * h, a * u, a * T, a * f, a * y, a * I, a * S, a * w, a * D, a * G);
2973
2973
  }
@@ -2977,18 +2977,18 @@ function AddISODate(e, t, r, o, n, a, i, s) {
2977
2977
  m = r,
2978
2978
  c = a,
2979
2979
  h = i;
2980
- return l += o, d += n, ({
2980
+ return l += o, d += n, {
2981
2981
  year: l,
2982
2982
  month: d
2983
- } = BalanceISOYearMonth(l, d)), ({
2983
+ } = BalanceISOYearMonth(l, d), {
2984
2984
  year: l,
2985
2985
  month: d,
2986
2986
  day: m
2987
- } = RegulateISODate(l, d, m, s)), h += 7 * c, m += h, ({
2987
+ } = RegulateISODate(l, d, m, s), h += 7 * c, m += h, {
2988
2988
  year: l,
2989
2989
  month: d,
2990
2990
  day: m
2991
- } = BalanceISODate(l, d, m)), {
2991
+ } = BalanceISODate(l, d, m), {
2992
2992
  year: l,
2993
2993
  month: d,
2994
2994
  day: m
@@ -3003,7 +3003,7 @@ function AddTime(e, t, r, o, n, a, i, s, l, d, m, c) {
3003
3003
  y = a;
3004
3004
  h += i, u += s, T += l, p += d, f += m, y += c;
3005
3005
  let I = 0;
3006
- return ({
3006
+ return {
3007
3007
  deltaDays: I,
3008
3008
  hour: h,
3009
3009
  minute: u,
@@ -3011,7 +3011,7 @@ function AddTime(e, t, r, o, n, a, i, s, l, d, m, c) {
3011
3011
  millisecond: p,
3012
3012
  microsecond: f,
3013
3013
  nanosecond: y
3014
- } = BalanceTime(h, u, T, p, f, y)), {
3014
+ } = BalanceTime(h, u, T, p, f, y), {
3015
3015
  deltaDays: I,
3016
3016
  hour: h,
3017
3017
  minute: u,
@@ -3035,12 +3035,12 @@ function AddDuration(t, r, o, a, i, s, l, d, m, c, h, u, T, f, y, I, w, D, G, v,
3035
3035
  U = CalendarDateAdd(S, k, j, void 0, $),
3036
3036
  A = LargerOfTwoTemporalUnits("day", O),
3037
3037
  L = Te(null);
3038
- L.largestUnit = A, ({
3038
+ L.largestUnit = A, {
3039
3039
  years: b,
3040
3040
  months: E,
3041
3041
  weeks: M,
3042
3042
  days: R
3043
- } = CalendarDateUntil(S, C, U, L)), ({
3043
+ } = CalendarDateUntil(S, C, U, L), {
3044
3044
  days: R,
3045
3045
  hours: F,
3046
3046
  minutes: Y,
@@ -3048,21 +3048,21 @@ function AddDuration(t, r, o, a, i, s, l, d, m, c, h, u, T, f, y, I, w, D, G, v,
3048
3048
  milliseconds: Z,
3049
3049
  microseconds: B,
3050
3050
  nanoseconds: N
3051
- } = BalanceDuration(R, BigInt(i) + BigInt(y), BigInt(s) + BigInt(I), BigInt(l) + BigInt(w), BigInt(d) + BigInt(D), BigInt(m) + BigInt(G), BigInt(c) + BigInt(v), O));
3051
+ } = BalanceDuration(R, BigInt(i) + BigInt(y), BigInt(s) + BigInt(I), BigInt(l) + BigInt(w), BigInt(d) + BigInt(D), BigInt(m) + BigInt(G), BigInt(c) + BigInt(v), O);
3052
3052
  } else {
3053
3053
  const e = GetIntrinsic("%Temporal.Instant%"),
3054
3054
  j = GetSlot(C, g),
3055
3055
  $ = GetSlot(C, p),
3056
3056
  k = AddZonedDateTime(GetSlot(C, S), j, $, t, r, o, a, i, s, l, d, m, c),
3057
3057
  U = AddZonedDateTime(new e(k), j, $, h, u, T, f, y, I, w, D, G, v);
3058
- "year" !== O && "month" !== O && "week" !== O && "day" !== O ? (b = 0, E = 0, M = 0, R = 0, ({
3058
+ "year" !== O && "month" !== O && "week" !== O && "day" !== O ? (b = 0, E = 0, M = 0, R = 0, {
3059
3059
  hours: F,
3060
3060
  minutes: Y,
3061
3061
  seconds: P,
3062
3062
  milliseconds: Z,
3063
3063
  microseconds: B,
3064
3064
  nanoseconds: N
3065
- } = DifferenceInstant(GetSlot(C, n), U, 1, "nanosecond", O, "halfExpand"))) : ({
3065
+ } = DifferenceInstant(GetSlot(C, n), U, 1, "nanosecond", O, "halfExpand")) : {
3066
3066
  years: b,
3067
3067
  months: E,
3068
3068
  weeks: M,
@@ -3073,11 +3073,11 @@ function AddDuration(t, r, o, a, i, s, l, d, m, c, h, u, T, f, y, I, w, D, G, v,
3073
3073
  milliseconds: Z,
3074
3074
  microseconds: B,
3075
3075
  nanoseconds: N
3076
- } = DifferenceZonedDateTime(GetSlot(C, n), U, j, $, O, Te(null)));
3076
+ } = DifferenceZonedDateTime(GetSlot(C, n), U, j, $, O, Te(null));
3077
3077
  }
3078
3078
  } else {
3079
3079
  if ("year" === O || "month" === O || "week" === O) throw new RangeError("relativeTo is required for years, months, or weeks arithmetic");
3080
- b = E = M = 0, ({
3080
+ b = E = M = 0, {
3081
3081
  days: R,
3082
3082
  hours: F,
3083
3083
  minutes: Y,
@@ -3085,7 +3085,7 @@ function AddDuration(t, r, o, a, i, s, l, d, m, c, h, u, T, f, y, I, w, D, G, v,
3085
3085
  milliseconds: Z,
3086
3086
  microseconds: B,
3087
3087
  nanoseconds: N
3088
- } = BalanceDuration(a + f, BigInt(i) + BigInt(y), BigInt(s) + BigInt(I), BigInt(l) + BigInt(w), BigInt(d) + BigInt(D), BigInt(m) + BigInt(G), BigInt(c) + BigInt(v), O));
3088
+ } = BalanceDuration(a + f, BigInt(i) + BigInt(y), BigInt(s) + BigInt(I), BigInt(l) + BigInt(w), BigInt(d) + BigInt(D), BigInt(m) + BigInt(G), BigInt(c) + BigInt(v), O);
3089
3089
  }
3090
3090
  return RejectDuration(b, E, M, R, F, Y, P, Z, B, N), {
3091
3091
  years: b,
@@ -3477,19 +3477,19 @@ function AdjustRoundedDurationDays(t, r, o, n, a, i, s, l, d, m, c, h, u, T) {
3477
3477
  Y = AddZonedDateTime(GetSlot(T, S), R, F, f, y, I, w, 0, 0, 0, 0, 0, 0),
3478
3478
  P = AddZonedDateTime(new (GetIntrinsic("%Temporal.Instant%"))(Y), R, F, 0, 0, 0, M, 0, 0, 0, 0, 0, 0),
3479
3479
  Z = P - Y;
3480
- return (E - Z) * BigInt(M) >= Ie && (({
3480
+ return (E - Z) * BigInt(M) >= Ie && ({
3481
3481
  years: f,
3482
3482
  months: y,
3483
3483
  weeks: I,
3484
3484
  days: w
3485
- } = AddDuration(f, y, I, w, 0, 0, 0, 0, 0, 0, 0, 0, 0, M, 0, 0, 0, 0, 0, 0, T)), E = RoundInstant(E - Z, c, h, u), ({
3485
+ } = AddDuration(f, y, I, w, 0, 0, 0, 0, 0, 0, 0, 0, 0, M, 0, 0, 0, 0, 0, 0, T), E = RoundInstant(E - Z, c, h, u), {
3486
3486
  hours: D,
3487
3487
  minutes: G,
3488
3488
  seconds: v,
3489
3489
  milliseconds: C,
3490
3490
  microseconds: O,
3491
3491
  nanoseconds: b
3492
- } = BalanceDuration(0, 0, 0, 0, 0, 0, Number(E), "hour"))), {
3492
+ } = BalanceDuration(0, 0, 0, 0, 0, 0, Number(E), "hour")), {
3493
3493
  years: f,
3494
3494
  months: y,
3495
3495
  weeks: I,
@@ -3525,11 +3525,11 @@ function RoundDuration(t, r, o, n, a, i, s, l, d, m, c, h, u, T) {
3525
3525
  }
3526
3526
  if ("year" === h || "month" === h || "week" === h || "day" === h) {
3527
3527
  let t, r, o;
3528
- C = TotalDurationNanoseconds(0, g, w, D, G, v, m, 0), E && (t = MoveRelativeZonedDateTime(E, f, y, I, S)), ({
3528
+ C = TotalDurationNanoseconds(0, g, w, D, G, v, m, 0), E && (t = MoveRelativeZonedDateTime(E, f, y, I, S)), {
3529
3529
  days: r,
3530
3530
  nanoseconds: C,
3531
3531
  dayLengthNs: o
3532
- } = NanosecondsToDays(C, t)), M = BigInt(o), S += r, g = w = D = G = v = 0;
3532
+ } = NanosecondsToDays(C, t), M = BigInt(o), S += r, g = w = D = G = v = 0;
3533
3533
  }
3534
3534
  switch (h) {
3535
3535
  case "year":
@@ -3570,13 +3570,13 @@ function RoundDuration(t, r, o, n, a, i, s, l, d, m, c, h, u, T) {
3570
3570
  const a = se(S),
3571
3571
  i = new O(0, S < 0 ? -1 : 1);
3572
3572
  let s;
3573
- for (({
3573
+ for ({
3574
3574
  relativeTo: F,
3575
3575
  days: s
3576
- } = MoveRelativeDate(b, F, i, r)); ae(S) >= ae(s);) y += a, S -= s, ({
3576
+ } = MoveRelativeDate(b, F, i, r); ae(S) >= ae(s);) y += a, S -= s, {
3577
3577
  relativeTo: F,
3578
3578
  days: s
3579
- } = MoveRelativeDate(b, F, i, r));
3579
+ } = MoveRelativeDate(b, F, i, r);
3580
3580
  s = ae(s);
3581
3581
  const l = BigInt(s) * M;
3582
3582
  C = l * BigInt(y) + BigInt(S) * M + C;
@@ -3591,13 +3591,13 @@ function RoundDuration(t, r, o, n, a, i, s, l, d, m, c, h, u, T) {
3591
3591
  r = new O(0, 0, S < 0 ? -1 : 1),
3592
3592
  o = "string" != typeof b ? GetMethod(b, "dateAdd") : void 0;
3593
3593
  let n;
3594
- for (({
3594
+ for ({
3595
3595
  relativeTo: F,
3596
3596
  days: n
3597
- } = MoveRelativeDate(b, F, r, o)); ae(S) >= ae(n);) I += t, S -= n, ({
3597
+ } = MoveRelativeDate(b, F, r, o); ae(S) >= ae(n);) I += t, S -= n, {
3598
3598
  relativeTo: F,
3599
3599
  days: n
3600
- } = MoveRelativeDate(b, F, r, o));
3600
+ } = MoveRelativeDate(b, F, r, o);
3601
3601
  n = ae(n);
3602
3602
  const a = BigInt(n) * M;
3603
3603
  C = a * BigInt(I) + BigInt(S) * M + C;
@@ -4423,11 +4423,11 @@ MakeIntrinsicClass(Calendar, "Temporal.Calendar"), DefineIntrinsic("Temporal.Cal
4423
4423
  month: i,
4424
4424
  day: s
4425
4425
  } = o;
4426
- return ({
4426
+ return {
4427
4427
  year: a,
4428
4428
  month: i,
4429
4429
  day: s
4430
- } = RegulateISODate(a, i, s, n)), CreateTemporalDate(a, i, s, r);
4430
+ } = RegulateISODate(a, i, s, n), CreateTemporalDate(a, i, s, r);
4431
4431
  },
4432
4432
  yearMonthFromFields(e, t, r) {
4433
4433
  let o = PrepareTemporalFields(e, ["month", "monthCode", "year"], ["year"]);
@@ -4437,7 +4437,7 @@ MakeIntrinsicClass(Calendar, "Temporal.Calendar"), DefineIntrinsic("Temporal.Cal
4437
4437
  year: a,
4438
4438
  month: i
4439
4439
  } = o;
4440
- return ({
4440
+ return {
4441
4441
  year: a,
4442
4442
  month: i
4443
4443
  } = function RegulateISOYearMonth(e, t, r) {
@@ -4457,7 +4457,7 @@ MakeIntrinsicClass(Calendar, "Temporal.Calendar"), DefineIntrinsic("Temporal.Cal
4457
4457
  year: o,
4458
4458
  month: n
4459
4459
  };
4460
- }(a, i, n)), CreateTemporalYearMonth(a, i, r, 1);
4460
+ }(a, i, n), CreateTemporalYearMonth(a, i, r, 1);
4461
4461
  },
4462
4462
  monthDayFromFields(e, t, r) {
4463
4463
  let o = PrepareTemporalFields(e, ["day", "month", "monthCode", "year"], ["day"]);
@@ -4470,10 +4470,10 @@ MakeIntrinsicClass(Calendar, "Temporal.Calendar"), DefineIntrinsic("Temporal.Cal
4470
4470
  day: s,
4471
4471
  year: l
4472
4472
  } = o;
4473
- return ({
4473
+ return {
4474
4474
  month: i,
4475
4475
  day: s
4476
- } = RegulateISODate(a ? l : 1972, i, s, n)), CreateTemporalMonthDay(i, s, r, 1972);
4476
+ } = RegulateISODate(a ? l : 1972, i, s, n), CreateTemporalMonthDay(i, s, r, 1972);
4477
4477
  },
4478
4478
  fields: e => e,
4479
4479
  fieldKeysToIgnore(e) {
@@ -4488,11 +4488,11 @@ MakeIntrinsicClass(Calendar, "Temporal.Calendar"), DefineIntrinsic("Temporal.Cal
4488
4488
  let m = GetSlot(e, i),
4489
4489
  c = GetSlot(e, s),
4490
4490
  h = GetSlot(e, l);
4491
- return ({
4491
+ return {
4492
4492
  year: m,
4493
4493
  month: c,
4494
4494
  day: h
4495
- } = AddISODate(m, c, h, t, r, o, n, a)), CreateTemporalDate(m, c, h, d);
4495
+ } = AddISODate(m, c, h, t, r, o, n, a), CreateTemporalDate(m, c, h, d);
4496
4496
  },
4497
4497
  dateUntil: (e, t, r) => DifferenceISODate(GetSlot(e, i), GetSlot(e, s), GetSlot(e, l), GetSlot(t, i), GetSlot(t, s), GetSlot(t, l), r),
4498
4498
  year: e => GetSlot(e, i),
@@ -4685,10 +4685,10 @@ class HelperBase {
4685
4685
  month: i,
4686
4686
  monthCode: s
4687
4687
  } = n;
4688
- return ({
4688
+ return {
4689
4689
  month: i,
4690
4690
  monthCode: s
4691
- } = resolveNonLunisolarMonth(n, r, a)), {
4691
+ } = resolveNonLunisolarMonth(n, r, a), {
4692
4692
  ...n,
4693
4693
  month: i,
4694
4694
  monthCode: s
@@ -4996,11 +4996,11 @@ class HelperBase {
4996
4996
  }, r),
4997
4997
  h = this.calendarToIsoDate(m, "constrain", r),
4998
4998
  u = this.isoToCalendarDate(h, r);
4999
- if (({
4999
+ if ({
5000
5000
  year: o,
5001
5001
  month: n,
5002
5002
  day: a
5003
- } = h), u.monthCode === l && u.day === d) return {
5003
+ } = h, u.monthCode === l && u.day === d) return {
5004
5004
  month: n,
5005
5005
  day: a,
5006
5006
  year: o
@@ -5527,10 +5527,10 @@ class GregorianBaseHelper extends HelperBase {
5527
5527
  const e = void 0 === o ? void 0 : this.eras.find(e => e.name === o || e.genericName === o);
5528
5528
  if (!e) throw new RangeError(`Era ${o} (ISO year ${r}) was not matched by any era`);
5529
5529
  if (r < 1 && e.reverseOf) throw new RangeError(`Years in ${o} era must be positive, not ${t}`);
5530
- t = e.reverseOf ? e.anchorEpoch.year - r : r + e.anchorEpoch.year - (e.hasYearZero ? 0 : 1), checkField("year", t), ({
5530
+ t = e.reverseOf ? e.anchorEpoch.year - r : r + e.anchorEpoch.year - (e.hasYearZero ? 0 : 1), checkField("year", t), {
5531
5531
  eraYear: r,
5532
5532
  era: o
5533
- } = eraFromYear(t));
5533
+ } = eraFromYear(t);
5534
5534
  }
5535
5535
  }
5536
5536
  return {
@@ -5840,10 +5840,10 @@ class ChineseBaseHelper extends HelperBase {
5840
5840
  calendarDay: s,
5841
5841
  calendarYearToVerify: l
5842
5842
  } = getCalendarDate(e, a);
5843
- "1" !== i && (a += 29, ({
5843
+ "1" !== i && (a += 29, {
5844
5844
  calendarMonthString: i,
5845
5845
  calendarDay: s
5846
- } = getCalendarDate(e, a))), a -= s - 5;
5846
+ } = getCalendarDate(e, a)), a -= s - 5;
5847
5847
  const d = {};
5848
5848
  let m,
5849
5849
  c,
@@ -6498,7 +6498,7 @@ class PlainDateTime {
6498
6498
  D = GetSlot(this, h),
6499
6499
  G = GetSlot(this, u),
6500
6500
  v = GetSlot(this, T);
6501
- return ({
6501
+ return {
6502
6502
  year: f,
6503
6503
  month: y,
6504
6504
  day: I,
@@ -6508,7 +6508,7 @@ class PlainDateTime {
6508
6508
  millisecond: D,
6509
6509
  microsecond: G,
6510
6510
  nanosecond: v
6511
- } = RoundISODateTime(f, y, I, S, g, w, D, G, v, r, n, o)), CreateTemporalDateTime(f, y, I, S, g, w, D, G, v, GetSlot(this, p));
6511
+ } = RoundISODateTime(f, y, I, S, g, w, D, G, v, r, n, o), CreateTemporalDateTime(f, y, I, S, g, w, D, G, v, GetSlot(this, p));
6512
6512
  }
6513
6513
  equals(e) {
6514
6514
  if (!IsTemporalDateTime(this)) throw new TypeError("invalid receiver");
@@ -6734,12 +6734,12 @@ class Duration {
6734
6734
  microsecond: 1e3,
6735
6735
  nanosecond: 1e3
6736
6736
  }[S];
6737
- return void 0 !== Y && ValidateTemporalRoundingIncrement(y, Y, !1), ({
6737
+ return void 0 !== Y && ValidateTemporalRoundingIncrement(y, Y, !1), {
6738
6738
  years: r,
6739
6739
  months: o,
6740
6740
  weeks: n,
6741
6741
  days: a
6742
- } = UnbalanceDurationRelative(r, o, n, a, T, f)), ({
6742
+ } = UnbalanceDurationRelative(r, o, n, a, T, f), {
6743
6743
  years: r,
6744
6744
  months: o,
6745
6745
  weeks: n,
@@ -6750,7 +6750,7 @@ class Duration {
6750
6750
  milliseconds: d,
6751
6751
  microseconds: m,
6752
6752
  nanoseconds: c
6753
- } = RoundDuration(r, o, n, a, i, s, l, d, m, c, y, S, I, f)), ({
6753
+ } = RoundDuration(r, o, n, a, i, s, l, d, m, c, y, S, I, f), {
6754
6754
  years: r,
6755
6755
  months: o,
6756
6756
  weeks: n,
@@ -6761,7 +6761,7 @@ class Duration {
6761
6761
  milliseconds: d,
6762
6762
  microseconds: m,
6763
6763
  nanoseconds: c
6764
- } = AdjustRoundedDurationDays(r, o, n, a, i, s, l, d, m, c, y, S, I, f)), ({
6764
+ } = AdjustRoundedDurationDays(r, o, n, a, i, s, l, d, m, c, y, S, I, f), {
6765
6765
  days: a,
6766
6766
  hours: i,
6767
6767
  minutes: s,
@@ -6769,7 +6769,7 @@ class Duration {
6769
6769
  milliseconds: d,
6770
6770
  microseconds: m,
6771
6771
  nanoseconds: c
6772
- } = BalanceDuration(a, i, s, l, d, m, c, T, f)), ({
6772
+ } = BalanceDuration(a, i, s, l, d, m, c, T, f), {
6773
6773
  years: r,
6774
6774
  months: o,
6775
6775
  weeks: n,
@@ -6800,20 +6800,20 @@ class Duration {
6800
6800
  if (!m) throw new RangeError("a starting point is required for years balancing");
6801
6801
  const t = "string" != typeof m ? GetMethod(m, "dateAdd") : void 0;
6802
6802
  let r, o, n;
6803
- for (({
6803
+ for ({
6804
6804
  relativeTo: r,
6805
6805
  days: o
6806
- } = MoveRelativeDate(m, c, y, t)); abs$1(f) >= BigInt(ae(o));) f = f - BigInt(o), h = h + d, c = r, ({
6806
+ } = MoveRelativeDate(m, c, y, t); abs$1(f) >= BigInt(ae(o));) f = f - BigInt(o), h = h + d, c = r, {
6807
6807
  relativeTo: r,
6808
6808
  days: o
6809
- } = MoveRelativeDate(m, c, y, t));
6810
- for (({
6809
+ } = MoveRelativeDate(m, c, y, t);
6810
+ for ({
6811
6811
  relativeTo: r,
6812
6812
  days: n
6813
- } = MoveRelativeDate(m, c, I, t)); abs$1(f) >= BigInt(ae(n));) f = f - BigInt(n), u = u + d, c = r, ({
6813
+ } = MoveRelativeDate(m, c, I, t); abs$1(f) >= BigInt(ae(n));) f = f - BigInt(n), u = u + d, c = r, {
6814
6814
  relativeTo: r,
6815
6815
  days: n
6816
- } = MoveRelativeDate(m, c, I, t));
6816
+ } = MoveRelativeDate(m, c, I, t);
6817
6817
  r = CalendarDateAdd(m, c, y, void 0, t);
6818
6818
  const a = "string" != typeof m ? GetMethod(m, "dateUntil") : void 0,
6819
6819
  i = Te(null);
@@ -6832,13 +6832,13 @@ class Duration {
6832
6832
  if (!m) throw new RangeError("a starting point is required for months balancing");
6833
6833
  const t = "string" != typeof m ? GetMethod(m, "dateAdd") : void 0;
6834
6834
  let r, o;
6835
- for (({
6835
+ for ({
6836
6836
  relativeTo: r,
6837
6837
  days: o
6838
- } = MoveRelativeDate(m, c, I, t)); abs$1(f) >= BigInt(ae(o));) f = f - BigInt(o), u = u + d, c = r, ({
6838
+ } = MoveRelativeDate(m, c, I, t); abs$1(f) >= BigInt(ae(o));) f = f - BigInt(o), u = u + d, c = r, {
6839
6839
  relativeTo: r,
6840
6840
  days: o
6841
- } = MoveRelativeDate(m, c, I, t));
6841
+ } = MoveRelativeDate(m, c, I, t);
6842
6842
  break;
6843
6843
  }
6844
6844
  case "week":
@@ -6846,13 +6846,13 @@ class Duration {
6846
6846
  if (!m) throw new RangeError("a starting point is required for weeks balancing");
6847
6847
  const t = "string" != typeof m ? GetMethod(m, "dateAdd") : void 0;
6848
6848
  let r, o;
6849
- for (({
6849
+ for ({
6850
6850
  relativeTo: r,
6851
6851
  days: o
6852
- } = MoveRelativeDate(m, c, S, t)); abs$1(f) >= BigInt(ae(o));) f = f - BigInt(o), T = T + d, c = r, ({
6852
+ } = MoveRelativeDate(m, c, S, t); abs$1(f) >= BigInt(ae(o));) f = f - BigInt(o), T = T + d, c = r, {
6853
6853
  relativeTo: r,
6854
6854
  days: o
6855
- } = MoveRelativeDate(m, c, S, t));
6855
+ } = MoveRelativeDate(m, c, S, t);
6856
6856
  break;
6857
6857
  }
6858
6858
  }
@@ -6862,7 +6862,7 @@ class Duration {
6862
6862
  weeks: Number(T),
6863
6863
  days: Number(f)
6864
6864
  };
6865
- }(r, o, n, a, T, f)), new Duration(r, o, n, a, i, s, l, d, m, c);
6865
+ }(r, o, n, a, T, f), new Duration(r, o, n, a, i, s, l, d, m, c);
6866
6866
  }
6867
6867
  total(e) {
6868
6868
  if (!IsTemporalDuration(this)) throw new TypeError("invalid receiver");
@@ -6962,11 +6962,11 @@ class Duration {
6962
6962
  let N = GetSlot(a, R);
6963
6963
  const j = CalculateOffsetShift(i, s, l, d, m),
6964
6964
  $ = CalculateOffsetShift(i, y, I, S, g);
6965
- 0 === s && 0 === y && 0 === l && 0 === I && 0 === d && 0 === S || (({
6965
+ 0 === s && 0 === y && 0 === l && 0 === I && 0 === d && 0 === S || ({
6966
6966
  days: m
6967
- } = UnbalanceDurationRelative(s, l, d, m, "day", i)), ({
6967
+ } = UnbalanceDurationRelative(s, l, d, m, "day", i), {
6968
6968
  days: g
6969
- } = UnbalanceDurationRelative(y, I, S, g, "day", i)));
6969
+ } = UnbalanceDurationRelative(y, I, S, g, "day", i));
6970
6970
  const k = TotalDurationNanoseconds(m, c, h, u, T, p, f, j),
6971
6971
  U = TotalDurationNanoseconds(g, F, Y, P, Z, B, N, $);
6972
6972
  return ComparisonResult(Number(k - U));
@@ -7158,14 +7158,14 @@ class PlainTime {
7158
7158
  microsecond: d,
7159
7159
  nanosecond: m
7160
7160
  } = Mt(n, o);
7161
- return ({
7161
+ return {
7162
7162
  hour: a,
7163
7163
  minute: i,
7164
7164
  second: s,
7165
7165
  millisecond: l,
7166
7166
  microsecond: d,
7167
7167
  nanosecond: m
7168
- } = RegulateTime(a, i, s, l, d, m, r)), new PlainTime(a, i, s, l, d, m);
7168
+ } = RegulateTime(a, i, s, l, d, m, r), new PlainTime(a, i, s, l, d, m);
7169
7169
  }
7170
7170
  add(e) {
7171
7171
  if (!IsTemporalTime(this)) throw new TypeError("invalid receiver");
@@ -7204,14 +7204,14 @@ class PlainTime {
7204
7204
  l = GetSlot(this, h),
7205
7205
  p = GetSlot(this, u),
7206
7206
  f = GetSlot(this, T);
7207
- return ({
7207
+ return {
7208
7208
  hour: a,
7209
7209
  minute: i,
7210
7210
  second: s,
7211
7211
  millisecond: l,
7212
7212
  microsecond: p,
7213
7213
  nanosecond: f
7214
- } = RoundTime(a, i, s, l, p, f, r, n, o)), new PlainTime(a, i, s, l, p, f);
7214
+ } = RoundTime(a, i, s, l, p, f, r, n, o), new PlainTime(a, i, s, l, p, f);
7215
7215
  }
7216
7216
  equals(e) {
7217
7217
  if (!IsTemporalTime(this)) throw new TypeError("invalid receiver");
@@ -8044,6 +8044,33 @@ function requireSet () {
8044
8044
  if (hasRequiredSet) return set;
8045
8045
  hasRequiredSet = 1;
8046
8046
 
8047
+ var __awaiter = commonjsGlobal && commonjsGlobal.__awaiter || function (thisArg, _arguments, P, generator) {
8048
+ function adopt(value) {
8049
+ return value instanceof P ? value : new P(function (resolve) {
8050
+ resolve(value);
8051
+ });
8052
+ }
8053
+ return new (P || (P = Promise))(function (resolve, reject) {
8054
+ function fulfilled(value) {
8055
+ try {
8056
+ step(generator.next(value));
8057
+ } catch (e) {
8058
+ reject(e);
8059
+ }
8060
+ }
8061
+ function rejected(value) {
8062
+ try {
8063
+ step(generator["throw"](value));
8064
+ } catch (e) {
8065
+ reject(e);
8066
+ }
8067
+ }
8068
+ function step(result) {
8069
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
8070
+ }
8071
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8072
+ });
8073
+ };
8047
8074
  var __generator = commonjsGlobal && commonjsGlobal.__generator || function (thisArg, body) {
8048
8075
  var _ = {
8049
8076
  label: 0,
@@ -8259,7 +8286,7 @@ function requireSet () {
8259
8286
  Object.defineProperty(set, "__esModule", {
8260
8287
  value: true
8261
8288
  });
8262
- set.unionAsync = set.union = set.symmetricDifferenceAsync = set.symmetricDifference = set.partialIntersectionAsync = set.partialIntersection = set.intersectionAsync = set.intersection = set.distinctAsync = set.distinct = void 0;
8289
+ set.cartesianProductAsync = set.cartesianProduct = set.unionAsync = set.union = set.symmetricDifferenceAsync = set.symmetricDifference = set.partialIntersectionAsync = set.partialIntersection = set.intersectionAsync = set.intersection = set.distinctAsync = set.distinct = void 0;
8263
8290
  var transform_1 = requireTransform();
8264
8291
  var tools_1 = requireTools();
8265
8292
  var single_1 = requireSingle();
@@ -9074,6 +9101,241 @@ function requireSet () {
9074
9101
  });
9075
9102
  }
9076
9103
  set.unionAsync = unionAsync;
9104
+ /**
9105
+ * Iterates cartesian product of given iterables.
9106
+ *
9107
+ * @param iterables
9108
+ */
9109
+ function cartesianProduct() {
9110
+ var _i, _a, _b, item, e_17_1, arrays, toIterate, toIterate_1, toIterate_1_1, item, e_18_1;
9111
+ var e_17, _c, e_18, _d;
9112
+ var iterables = [];
9113
+ for (_i = 0; _i < arguments.length; _i++) {
9114
+ iterables[_i] = arguments[_i];
9115
+ }
9116
+ return __generator(this, function (_e) {
9117
+ switch (_e.label) {
9118
+ case 0:
9119
+ if (iterables.length === 0) {
9120
+ return [2 /*return*/];
9121
+ }
9122
+ if (!(iterables.length === 1)) return [3 /*break*/, 9];
9123
+ _e.label = 1;
9124
+ case 1:
9125
+ _e.trys.push([1, 6, 7, 8]);
9126
+ _a = __values((0, transform_1.toIterable)(iterables[0])), _b = _a.next();
9127
+ _e.label = 2;
9128
+ case 2:
9129
+ if (!!_b.done) return [3 /*break*/, 5];
9130
+ item = _b.value;
9131
+ return [4 /*yield*/, [item]];
9132
+ case 3:
9133
+ _e.sent();
9134
+ _e.label = 4;
9135
+ case 4:
9136
+ _b = _a.next();
9137
+ return [3 /*break*/, 2];
9138
+ case 5:
9139
+ return [3 /*break*/, 8];
9140
+ case 6:
9141
+ e_17_1 = _e.sent();
9142
+ e_17 = {
9143
+ error: e_17_1
9144
+ };
9145
+ return [3 /*break*/, 8];
9146
+ case 7:
9147
+ try {
9148
+ if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
9149
+ } finally {
9150
+ if (e_17) throw e_17.error;
9151
+ }
9152
+ return [7 /*endfinally*/];
9153
+ case 8:
9154
+ return [2 /*return*/];
9155
+ case 9:
9156
+ arrays = (0, transform_1.toArray)((0, single_1.map)(iterables, function (iterable) {
9157
+ return (0, transform_1.toArray)(iterable);
9158
+ }));
9159
+ toIterate = arrays.reduce(function (acc, set) {
9160
+ return acc.flatMap(function (x) {
9161
+ return set.map(function (y) {
9162
+ return __spreadArray(__spreadArray([], __read(x), false), [y], false);
9163
+ });
9164
+ });
9165
+ }, [[]]);
9166
+ _e.label = 10;
9167
+ case 10:
9168
+ _e.trys.push([10, 15, 16, 17]);
9169
+ toIterate_1 = __values(toIterate), toIterate_1_1 = toIterate_1.next();
9170
+ _e.label = 11;
9171
+ case 11:
9172
+ if (!!toIterate_1_1.done) return [3 /*break*/, 14];
9173
+ item = toIterate_1_1.value;
9174
+ return [4 /*yield*/, item];
9175
+ case 12:
9176
+ _e.sent();
9177
+ _e.label = 13;
9178
+ case 13:
9179
+ toIterate_1_1 = toIterate_1.next();
9180
+ return [3 /*break*/, 11];
9181
+ case 14:
9182
+ return [3 /*break*/, 17];
9183
+ case 15:
9184
+ e_18_1 = _e.sent();
9185
+ e_18 = {
9186
+ error: e_18_1
9187
+ };
9188
+ return [3 /*break*/, 17];
9189
+ case 16:
9190
+ try {
9191
+ if (toIterate_1_1 && !toIterate_1_1.done && (_d = toIterate_1.return)) _d.call(toIterate_1);
9192
+ } finally {
9193
+ if (e_18) throw e_18.error;
9194
+ }
9195
+ return [7 /*endfinally*/];
9196
+ case 17:
9197
+ return [2 /*return*/];
9198
+ }
9199
+ });
9200
+ }
9201
+ set.cartesianProduct = cartesianProduct;
9202
+ /**
9203
+ * Iterates cartesian product of given async iterables.
9204
+ *
9205
+ * @param iterables
9206
+ */
9207
+ function cartesianProductAsync() {
9208
+ var iterables = [];
9209
+ for (var _i = 0; _i < arguments.length; _i++) {
9210
+ iterables[_i] = arguments[_i];
9211
+ }
9212
+ return __asyncGenerator(this, arguments, function cartesianProductAsync_1() {
9213
+ var _a, _b, _c, item, e_19_1, arrays, toIterate, toIterate_2, toIterate_2_1, item, e_20_1;
9214
+ var e_20, _d;
9215
+ var _this = this;
9216
+ var _e, e_19, _f, _g;
9217
+ return __generator(this, function (_h) {
9218
+ switch (_h.label) {
9219
+ case 0:
9220
+ if (!(iterables.length === 0)) return [3 /*break*/, 2];
9221
+ return [4 /*yield*/, __await(void 0)];
9222
+ case 1:
9223
+ return [2 /*return*/, _h.sent()];
9224
+ case 2:
9225
+ if (!(iterables.length === 1)) return [3 /*break*/, 20];
9226
+ _h.label = 3;
9227
+ case 3:
9228
+ _h.trys.push([3, 12, 13, 18]);
9229
+ _a = true, _b = __asyncValues((0, transform_1.toAsyncIterable)(iterables[0]));
9230
+ _h.label = 4;
9231
+ case 4:
9232
+ return [4 /*yield*/, __await(_b.next())];
9233
+ case 5:
9234
+ if (!(_c = _h.sent(), _e = _c.done, !_e)) return [3 /*break*/, 11];
9235
+ _g = _c.value;
9236
+ _a = false;
9237
+ _h.label = 6;
9238
+ case 6:
9239
+ _h.trys.push([6,, 9, 10]);
9240
+ item = _g;
9241
+ return [4 /*yield*/, __await([item])];
9242
+ case 7:
9243
+ return [4 /*yield*/, _h.sent()];
9244
+ case 8:
9245
+ _h.sent();
9246
+ return [3 /*break*/, 10];
9247
+ case 9:
9248
+ _a = true;
9249
+ return [7 /*endfinally*/];
9250
+ case 10:
9251
+ return [3 /*break*/, 4];
9252
+ case 11:
9253
+ return [3 /*break*/, 18];
9254
+ case 12:
9255
+ e_19_1 = _h.sent();
9256
+ e_19 = {
9257
+ error: e_19_1
9258
+ };
9259
+ return [3 /*break*/, 18];
9260
+ case 13:
9261
+ _h.trys.push([13,, 16, 17]);
9262
+ if (!(!_a && !_e && (_f = _b.return))) return [3 /*break*/, 15];
9263
+ return [4 /*yield*/, __await(_f.call(_b))];
9264
+ case 14:
9265
+ _h.sent();
9266
+ _h.label = 15;
9267
+ case 15:
9268
+ return [3 /*break*/, 17];
9269
+ case 16:
9270
+ if (e_19) throw e_19.error;
9271
+ return [7 /*endfinally*/];
9272
+ case 17:
9273
+ return [7 /*endfinally*/];
9274
+ case 18:
9275
+ return [4 /*yield*/, __await(void 0)];
9276
+ case 19:
9277
+ return [2 /*return*/, _h.sent()];
9278
+ case 20:
9279
+ return [4 /*yield*/, __await((0, transform_1.toArrayAsync)((0, single_1.mapAsync)(iterables, function (iterable) {
9280
+ return __awaiter(_this, void 0, void 0, function () {
9281
+ return __generator(this, function (_a) {
9282
+ switch (_a.label) {
9283
+ case 0:
9284
+ return [4 /*yield*/, (0, transform_1.toArrayAsync)(iterable)];
9285
+ case 1:
9286
+ return [2 /*return*/, _a.sent()];
9287
+ }
9288
+ });
9289
+ });
9290
+ })))];
9291
+ case 21:
9292
+ arrays = _h.sent();
9293
+ toIterate = arrays.reduce(function (acc, set) {
9294
+ return acc.flatMap(function (x) {
9295
+ return set.map(function (y) {
9296
+ return __spreadArray(__spreadArray([], __read(x), false), [y], false);
9297
+ });
9298
+ });
9299
+ }, [[]]);
9300
+ _h.label = 22;
9301
+ case 22:
9302
+ _h.trys.push([22, 28, 29, 30]);
9303
+ toIterate_2 = __values(toIterate), toIterate_2_1 = toIterate_2.next();
9304
+ _h.label = 23;
9305
+ case 23:
9306
+ if (!!toIterate_2_1.done) return [3 /*break*/, 27];
9307
+ item = toIterate_2_1.value;
9308
+ return [4 /*yield*/, __await(item)];
9309
+ case 24:
9310
+ return [4 /*yield*/, _h.sent()];
9311
+ case 25:
9312
+ _h.sent();
9313
+ _h.label = 26;
9314
+ case 26:
9315
+ toIterate_2_1 = toIterate_2.next();
9316
+ return [3 /*break*/, 23];
9317
+ case 27:
9318
+ return [3 /*break*/, 30];
9319
+ case 28:
9320
+ e_20_1 = _h.sent();
9321
+ e_20 = {
9322
+ error: e_20_1
9323
+ };
9324
+ return [3 /*break*/, 30];
9325
+ case 29:
9326
+ try {
9327
+ if (toIterate_2_1 && !toIterate_2_1.done && (_d = toIterate_2.return)) _d.call(toIterate_2);
9328
+ } finally {
9329
+ if (e_20) throw e_20.error;
9330
+ }
9331
+ return [7 /*endfinally*/];
9332
+ case 30:
9333
+ return [2 /*return*/];
9334
+ }
9335
+ });
9336
+ });
9337
+ }
9338
+ set.cartesianProductAsync = cartesianProductAsync;
9077
9339
  return set;
9078
9340
  }
9079
9341
 
@@ -12117,13 +12379,13 @@ function requireSingle () {
12117
12379
  return single;
12118
12380
  }
12119
12381
 
12120
- var math = {};
12382
+ var infinite = {};
12121
12383
 
12122
- var hasRequiredMath;
12384
+ var hasRequiredInfinite;
12123
12385
 
12124
- function requireMath () {
12125
- if (hasRequiredMath) return math;
12126
- hasRequiredMath = 1;
12386
+ function requireInfinite () {
12387
+ if (hasRequiredInfinite) return infinite;
12388
+ hasRequiredInfinite = 1;
12127
12389
 
12128
12390
  var __generator = commonjsGlobal && commonjsGlobal.__generator || function (thisArg, body) {
12129
12391
  var _ = {
@@ -12239,6 +12501,22 @@ function requireMath () {
12239
12501
  var __await = commonjsGlobal && commonjsGlobal.__await || function (v) {
12240
12502
  return this instanceof __await ? (this.v = v, this) : new __await(v);
12241
12503
  };
12504
+ var __asyncDelegator = commonjsGlobal && commonjsGlobal.__asyncDelegator || function (o) {
12505
+ var i, p;
12506
+ return i = {}, verb("next"), verb("throw", function (e) {
12507
+ throw e;
12508
+ }), verb("return"), i[Symbol.iterator] = function () {
12509
+ return this;
12510
+ }, i;
12511
+ function verb(n, f) {
12512
+ i[n] = o[n] ? function (v) {
12513
+ return (p = !p) ? {
12514
+ value: __await(o[n](v)),
12515
+ done: n === "return"
12516
+ } : f ? f(v) : v;
12517
+ } : f;
12518
+ }
12519
+ };
12242
12520
  var __asyncGenerator = commonjsGlobal && commonjsGlobal.__asyncGenerator || function (thisArg, _arguments, generator) {
12243
12521
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
12244
12522
  var g = generator.apply(thisArg, _arguments || []),
@@ -12274,32 +12552,425 @@ function requireMath () {
12274
12552
  if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
12275
12553
  }
12276
12554
  };
12277
- var __values = commonjsGlobal && commonjsGlobal.__values || function (o) {
12278
- var s = typeof Symbol === "function" && Symbol.iterator,
12279
- m = s && o[s],
12280
- i = 0;
12281
- if (m) return m.call(o);
12282
- if (o && typeof o.length === "number") return {
12283
- next: function () {
12284
- if (o && i >= o.length) o = void 0;
12285
- return {
12286
- value: o && o[i++],
12287
- done: !o
12288
- };
12289
- }
12290
- };
12291
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12292
- };
12293
- Object.defineProperty(math, "__esModule", {
12294
- value: true
12295
- });
12296
- math.runningTotalAsync = math.runningTotal = math.runningProductAsync = math.runningProduct = math.runningMinAsync = math.runningMin = math.runningMaxAsync = math.runningMax = math.runningDifferenceAsync = math.runningDifference = math.runningAverageAsync = math.runningAverage = void 0;
12297
- var transform_1 = requireTransform();
12298
- /**
12299
- * Accumulate the running average (mean) over a list of numbers
12300
- *
12301
- * @param numbers
12302
- * @param initialValue (Optional) If provided, the running average leads off with the initial value.
12555
+ var __read = commonjsGlobal && commonjsGlobal.__read || function (o, n) {
12556
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
12557
+ if (!m) return o;
12558
+ var i = m.call(o),
12559
+ r,
12560
+ ar = [],
12561
+ e;
12562
+ try {
12563
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12564
+ } catch (error) {
12565
+ e = {
12566
+ error: error
12567
+ };
12568
+ } finally {
12569
+ try {
12570
+ if (r && !r.done && (m = i["return"])) m.call(i);
12571
+ } finally {
12572
+ if (e) throw e.error;
12573
+ }
12574
+ }
12575
+ return ar;
12576
+ };
12577
+ var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function (to, from, pack) {
12578
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
12579
+ if (ar || !(i in from)) {
12580
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
12581
+ ar[i] = from[i];
12582
+ }
12583
+ }
12584
+ return to.concat(ar || Array.prototype.slice.call(from));
12585
+ };
12586
+ var __values = commonjsGlobal && commonjsGlobal.__values || function (o) {
12587
+ var s = typeof Symbol === "function" && Symbol.iterator,
12588
+ m = s && o[s],
12589
+ i = 0;
12590
+ if (m) return m.call(o);
12591
+ if (o && typeof o.length === "number") return {
12592
+ next: function () {
12593
+ if (o && i >= o.length) o = void 0;
12594
+ return {
12595
+ value: o && o[i++],
12596
+ done: !o
12597
+ };
12598
+ }
12599
+ };
12600
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12601
+ };
12602
+ Object.defineProperty(infinite, "__esModule", {
12603
+ value: true
12604
+ });
12605
+ infinite.repeat = infinite.cycleAsync = infinite.cycle = infinite.count = void 0;
12606
+ var transform_1 = requireTransform();
12607
+ /**
12608
+ * Count sequentially forever
12609
+ *
12610
+ * @param start (optional, default 1)
12611
+ * @param step (optional, default 1)
12612
+ */
12613
+ function count(start, step) {
12614
+ var i;
12615
+ if (start === void 0) {
12616
+ start = 1;
12617
+ }
12618
+ if (step === void 0) {
12619
+ step = 1;
12620
+ }
12621
+ return __generator(this, function (_a) {
12622
+ switch (_a.label) {
12623
+ case 0:
12624
+ i = start;
12625
+ _a.label = 1;
12626
+ case 1:
12627
+ return [4 /*yield*/, i];
12628
+ case 2:
12629
+ _a.sent();
12630
+ _a.label = 3;
12631
+ case 3:
12632
+ i += step;
12633
+ return [3 /*break*/, 1];
12634
+ case 4:
12635
+ return [2 /*return*/];
12636
+ }
12637
+ });
12638
+ }
12639
+ infinite.count = count;
12640
+ /**
12641
+ * Cycle through the elements of a collection sequentially forever
12642
+ *
12643
+ * @param iterable
12644
+ */
12645
+ function cycle(iterable) {
12646
+ var data, data_1, data_1_1, datum, e_1_1;
12647
+ var e_1, _a;
12648
+ return __generator(this, function (_b) {
12649
+ switch (_b.label) {
12650
+ case 0:
12651
+ data = __spreadArray([], __read((0, transform_1.toIterable)(iterable)), false);
12652
+ if (data.length === 0) {
12653
+ return [2 /*return*/];
12654
+ }
12655
+ _b.label = 1;
12656
+ case 1:
12657
+ _b.label = 2;
12658
+ case 2:
12659
+ _b.trys.push([2, 7, 8, 9]);
12660
+ data_1 = (e_1 = void 0, __values(data)), data_1_1 = data_1.next();
12661
+ _b.label = 3;
12662
+ case 3:
12663
+ if (!!data_1_1.done) return [3 /*break*/, 6];
12664
+ datum = data_1_1.value;
12665
+ return [4 /*yield*/, datum];
12666
+ case 4:
12667
+ _b.sent();
12668
+ _b.label = 5;
12669
+ case 5:
12670
+ data_1_1 = data_1.next();
12671
+ return [3 /*break*/, 3];
12672
+ case 6:
12673
+ return [3 /*break*/, 9];
12674
+ case 7:
12675
+ e_1_1 = _b.sent();
12676
+ e_1 = {
12677
+ error: e_1_1
12678
+ };
12679
+ return [3 /*break*/, 9];
12680
+ case 8:
12681
+ try {
12682
+ if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);
12683
+ } finally {
12684
+ if (e_1) throw e_1.error;
12685
+ }
12686
+ return [7 /*endfinally*/];
12687
+ case 9:
12688
+ return [3 /*break*/, 1];
12689
+ case 10:
12690
+ return [2 /*return*/];
12691
+ }
12692
+ });
12693
+ }
12694
+ infinite.cycle = cycle;
12695
+ /**
12696
+ * Cycle through the elements of a async iterable sequentially forever
12697
+ *
12698
+ * @param iterable
12699
+ */
12700
+ function cycleAsync(iterable) {
12701
+ return __asyncGenerator(this, arguments, function cycleAsync_1() {
12702
+ var data, _a, _b, _c, datum, e_2_1;
12703
+ var _d, e_2, _e, _f;
12704
+ return __generator(this, function (_g) {
12705
+ switch (_g.label) {
12706
+ case 0:
12707
+ data = [];
12708
+ _g.label = 1;
12709
+ case 1:
12710
+ _g.trys.push([1, 10, 11, 16]);
12711
+ _a = true, _b = __asyncValues((0, transform_1.toAsyncIterable)(iterable));
12712
+ _g.label = 2;
12713
+ case 2:
12714
+ return [4 /*yield*/, __await(_b.next())];
12715
+ case 3:
12716
+ if (!(_c = _g.sent(), _d = _c.done, !_d)) return [3 /*break*/, 9];
12717
+ _f = _c.value;
12718
+ _a = false;
12719
+ _g.label = 4;
12720
+ case 4:
12721
+ _g.trys.push([4,, 7, 8]);
12722
+ datum = _f;
12723
+ data.push(datum);
12724
+ return [4 /*yield*/, __await(datum)];
12725
+ case 5:
12726
+ return [4 /*yield*/, _g.sent()];
12727
+ case 6:
12728
+ _g.sent();
12729
+ return [3 /*break*/, 8];
12730
+ case 7:
12731
+ _a = true;
12732
+ return [7 /*endfinally*/];
12733
+ case 8:
12734
+ return [3 /*break*/, 2];
12735
+ case 9:
12736
+ return [3 /*break*/, 16];
12737
+ case 10:
12738
+ e_2_1 = _g.sent();
12739
+ e_2 = {
12740
+ error: e_2_1
12741
+ };
12742
+ return [3 /*break*/, 16];
12743
+ case 11:
12744
+ _g.trys.push([11,, 14, 15]);
12745
+ if (!(!_a && !_d && (_e = _b.return))) return [3 /*break*/, 13];
12746
+ return [4 /*yield*/, __await(_e.call(_b))];
12747
+ case 12:
12748
+ _g.sent();
12749
+ _g.label = 13;
12750
+ case 13:
12751
+ return [3 /*break*/, 15];
12752
+ case 14:
12753
+ if (e_2) throw e_2.error;
12754
+ return [7 /*endfinally*/];
12755
+ case 15:
12756
+ return [7 /*endfinally*/];
12757
+ case 16:
12758
+ return [5 /*yield**/, __values(__asyncDelegator(__asyncValues(cycle(data))))];
12759
+ case 17:
12760
+ return [4 /*yield*/, __await.apply(void 0, [_g.sent()])];
12761
+ case 18:
12762
+ _g.sent();
12763
+ return [2 /*return*/];
12764
+ }
12765
+ });
12766
+ });
12767
+ }
12768
+ infinite.cycleAsync = cycleAsync;
12769
+ /**
12770
+ * Repeat an item forever
12771
+ *
12772
+ * @param item
12773
+ */
12774
+ function repeat(item) {
12775
+ return __generator(this, function (_a) {
12776
+ switch (_a.label) {
12777
+ case 0:
12778
+ return [4 /*yield*/, item];
12779
+ case 1:
12780
+ _a.sent();
12781
+ return [3 /*break*/, 0];
12782
+ case 2:
12783
+ return [2 /*return*/];
12784
+ }
12785
+ });
12786
+ }
12787
+ infinite.repeat = repeat;
12788
+ return infinite;
12789
+ }
12790
+
12791
+ var math = {};
12792
+
12793
+ var hasRequiredMath;
12794
+
12795
+ function requireMath () {
12796
+ if (hasRequiredMath) return math;
12797
+ hasRequiredMath = 1;
12798
+
12799
+ var __generator = commonjsGlobal && commonjsGlobal.__generator || function (thisArg, body) {
12800
+ var _ = {
12801
+ label: 0,
12802
+ sent: function () {
12803
+ if (t[0] & 1) throw t[1];
12804
+ return t[1];
12805
+ },
12806
+ trys: [],
12807
+ ops: []
12808
+ },
12809
+ f,
12810
+ y,
12811
+ t,
12812
+ g;
12813
+ return g = {
12814
+ next: verb(0),
12815
+ "throw": verb(1),
12816
+ "return": verb(2)
12817
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
12818
+ return this;
12819
+ }), g;
12820
+ function verb(n) {
12821
+ return function (v) {
12822
+ return step([n, v]);
12823
+ };
12824
+ }
12825
+ function step(op) {
12826
+ if (f) throw new TypeError("Generator is already executing.");
12827
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
12828
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
12829
+ if (y = 0, t) op = [op[0] & 2, t.value];
12830
+ switch (op[0]) {
12831
+ case 0:
12832
+ case 1:
12833
+ t = op;
12834
+ break;
12835
+ case 4:
12836
+ _.label++;
12837
+ return {
12838
+ value: op[1],
12839
+ done: false
12840
+ };
12841
+ case 5:
12842
+ _.label++;
12843
+ y = op[1];
12844
+ op = [0];
12845
+ continue;
12846
+ case 7:
12847
+ op = _.ops.pop();
12848
+ _.trys.pop();
12849
+ continue;
12850
+ default:
12851
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
12852
+ _ = 0;
12853
+ continue;
12854
+ }
12855
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
12856
+ _.label = op[1];
12857
+ break;
12858
+ }
12859
+ if (op[0] === 6 && _.label < t[1]) {
12860
+ _.label = t[1];
12861
+ t = op;
12862
+ break;
12863
+ }
12864
+ if (t && _.label < t[2]) {
12865
+ _.label = t[2];
12866
+ _.ops.push(op);
12867
+ break;
12868
+ }
12869
+ if (t[2]) _.ops.pop();
12870
+ _.trys.pop();
12871
+ continue;
12872
+ }
12873
+ op = body.call(thisArg, _);
12874
+ } catch (e) {
12875
+ op = [6, e];
12876
+ y = 0;
12877
+ } finally {
12878
+ f = t = 0;
12879
+ }
12880
+ if (op[0] & 5) throw op[1];
12881
+ return {
12882
+ value: op[0] ? op[1] : void 0,
12883
+ done: true
12884
+ };
12885
+ }
12886
+ };
12887
+ var __asyncValues = commonjsGlobal && commonjsGlobal.__asyncValues || function (o) {
12888
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
12889
+ var m = o[Symbol.asyncIterator],
12890
+ i;
12891
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
12892
+ return this;
12893
+ }, i);
12894
+ function verb(n) {
12895
+ i[n] = o[n] && function (v) {
12896
+ return new Promise(function (resolve, reject) {
12897
+ v = o[n](v), settle(resolve, reject, v.done, v.value);
12898
+ });
12899
+ };
12900
+ }
12901
+ function settle(resolve, reject, d, v) {
12902
+ Promise.resolve(v).then(function (v) {
12903
+ resolve({
12904
+ value: v,
12905
+ done: d
12906
+ });
12907
+ }, reject);
12908
+ }
12909
+ };
12910
+ var __await = commonjsGlobal && commonjsGlobal.__await || function (v) {
12911
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
12912
+ };
12913
+ var __asyncGenerator = commonjsGlobal && commonjsGlobal.__asyncGenerator || function (thisArg, _arguments, generator) {
12914
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
12915
+ var g = generator.apply(thisArg, _arguments || []),
12916
+ i,
12917
+ q = [];
12918
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
12919
+ return this;
12920
+ }, i;
12921
+ function verb(n) {
12922
+ if (g[n]) i[n] = function (v) {
12923
+ return new Promise(function (a, b) {
12924
+ q.push([n, v, a, b]) > 1 || resume(n, v);
12925
+ });
12926
+ };
12927
+ }
12928
+ function resume(n, v) {
12929
+ try {
12930
+ step(g[n](v));
12931
+ } catch (e) {
12932
+ settle(q[0][3], e);
12933
+ }
12934
+ }
12935
+ function step(r) {
12936
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
12937
+ }
12938
+ function fulfill(value) {
12939
+ resume("next", value);
12940
+ }
12941
+ function reject(value) {
12942
+ resume("throw", value);
12943
+ }
12944
+ function settle(f, v) {
12945
+ if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
12946
+ }
12947
+ };
12948
+ var __values = commonjsGlobal && commonjsGlobal.__values || function (o) {
12949
+ var s = typeof Symbol === "function" && Symbol.iterator,
12950
+ m = s && o[s],
12951
+ i = 0;
12952
+ if (m) return m.call(o);
12953
+ if (o && typeof o.length === "number") return {
12954
+ next: function () {
12955
+ if (o && i >= o.length) o = void 0;
12956
+ return {
12957
+ value: o && o[i++],
12958
+ done: !o
12959
+ };
12960
+ }
12961
+ };
12962
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12963
+ };
12964
+ Object.defineProperty(math, "__esModule", {
12965
+ value: true
12966
+ });
12967
+ math.runningTotalAsync = math.runningTotal = math.runningProductAsync = math.runningProduct = math.runningMinAsync = math.runningMin = math.runningMaxAsync = math.runningMax = math.runningDifferenceAsync = math.runningDifference = math.runningAverageAsync = math.runningAverage = void 0;
12968
+ var transform_1 = requireTransform();
12969
+ /**
12970
+ * Accumulate the running average (mean) over a list of numbers
12971
+ *
12972
+ * @param numbers
12973
+ * @param initialValue (Optional) If provided, the running average leads off with the initial value.
12303
12974
  */
12304
12975
  function runningAverage(numbers, initialValue) {
12305
12976
  var n, _a, _b, total, e_1_1;
@@ -13275,11 +13946,12 @@ function requireReduce () {
13275
13946
  Object.defineProperty(reduce$1, "__esModule", {
13276
13947
  value: true
13277
13948
  });
13278
- reduce$1.toFirstAndLastAsync = reduce$1.toFirstAndLast = reduce$1.toLastAsync = reduce$1.toLast = reduce$1.toFirstAsync = reduce$1.toFirst = reduce$1.toCountAsync = reduce$1.toCount = reduce$1.toProductAsync = reduce$1.toProduct = reduce$1.toSumAsync = reduce$1.toSum = reduce$1.toMinMaxAsync = reduce$1.toMinMax = reduce$1.toMinAsync = reduce$1.toMin = reduce$1.toMaxAsync = reduce$1.toMax = reduce$1.toAverageAsync = reduce$1.toAverage = reduce$1.toValueAsync = reduce$1.toValue = void 0;
13949
+ reduce$1.toFirstAndLastAsync = reduce$1.toFirstAndLast = reduce$1.toLastAsync = reduce$1.toLast = reduce$1.toFirstAsync = reduce$1.toFirst = reduce$1.toCountAsync = reduce$1.toCount = reduce$1.toProductAsync = reduce$1.toProduct = reduce$1.toSumAsync = reduce$1.toSum = reduce$1.toRangeAsync = reduce$1.toRange = reduce$1.toMinMaxAsync = reduce$1.toMinMax = reduce$1.toMinAsync = reduce$1.toMin = reduce$1.toMaxAsync = reduce$1.toMax = reduce$1.toAverageAsync = reduce$1.toAverage = reduce$1.toValueAsync = reduce$1.toValue = void 0;
13279
13950
  var transform_1 = requireTransform();
13280
13951
  var exceptions_1 = exceptions;
13281
13952
  var summary_1 = requireSummary();
13282
13953
  var tools_1 = requireTools();
13954
+ var single_1 = requireSingle();
13283
13955
  /**
13284
13956
  * Reduces iterable source like `array.reduce()` function.
13285
13957
  *
@@ -13645,6 +14317,46 @@ function requireReduce () {
13645
14317
  });
13646
14318
  }
13647
14319
  reduce$1.toMinMaxAsync = toMinMaxAsync;
14320
+ /**
14321
+ * Reduces given collection to its range.
14322
+ *
14323
+ * Returns 0 if given collection is empty.
14324
+ *
14325
+ * @param numbers
14326
+ */
14327
+ function toRange(numbers) {
14328
+ var _a = __read(toMinMax((0, single_1.map)(numbers, function (n) {
14329
+ return Number(n);
14330
+ })), 2),
14331
+ min = _a[0],
14332
+ max = _a[1];
14333
+ return (max !== null && max !== void 0 ? max : 0) - (min !== null && min !== void 0 ? min : 0);
14334
+ }
14335
+ reduce$1.toRange = toRange;
14336
+ /**
14337
+ * Reduces given async collection to its range.
14338
+ *
14339
+ * Returns 0 if given async collection is empty.
14340
+ *
14341
+ * @param numbers
14342
+ */
14343
+ function toRangeAsync(numbers) {
14344
+ return __awaiter(this, void 0, void 0, function () {
14345
+ var _a, min, max;
14346
+ return __generator(this, function (_b) {
14347
+ switch (_b.label) {
14348
+ case 0:
14349
+ return [4 /*yield*/, toMinMaxAsync((0, single_1.mapAsync)(numbers, function (n) {
14350
+ return Number(n);
14351
+ }))];
14352
+ case 1:
14353
+ _a = __read.apply(void 0, [_b.sent(), 2]), min = _a[0], max = _a[1];
14354
+ return [2 /*return*/, (max !== null && max !== void 0 ? max : 0) - (min !== null && min !== void 0 ? min : 0)];
14355
+ }
14356
+ });
14357
+ });
14358
+ }
14359
+ reduce$1.toRangeAsync = toRangeAsync;
13648
14360
  /**
13649
14361
  * Reduces given collection to the sum of its items.
13650
14362
  *
@@ -14214,6 +14926,7 @@ function requireStream () {
14214
14926
  var set_1 = requireSet();
14215
14927
  var reduce_1 = requireReduce();
14216
14928
  var summary_1 = requireSummary();
14929
+ var index_1 = requireLib();
14217
14930
  /**
14218
14931
  * Provides fluent interface for working with iterables.
14219
14932
  */
@@ -14240,6 +14953,43 @@ function requireStream () {
14240
14953
  Stream.ofEmpty = function () {
14241
14954
  return new Stream([]);
14242
14955
  };
14956
+ /**
14957
+ * Creates iterable instance with fluent interface from infinite count iterable.
14958
+ *
14959
+ * @param start (optional, default 1)
14960
+ * @param step (optional, default 1)
14961
+ *
14962
+ * @see infinite.count
14963
+ */
14964
+ Stream.ofCount = function (start, step) {
14965
+ if (start === void 0) {
14966
+ start = 1;
14967
+ }
14968
+ if (step === void 0) {
14969
+ step = 1;
14970
+ }
14971
+ return new Stream(index_1.infinite.count(start, step));
14972
+ };
14973
+ /**
14974
+ * Creates iterable instance with fluent interface from infinite collection items repeating.
14975
+ *
14976
+ * @param iterable
14977
+ *
14978
+ * @see infinite.cycle
14979
+ */
14980
+ Stream.ofCycle = function (iterable) {
14981
+ return new Stream(index_1.infinite.cycle(iterable));
14982
+ };
14983
+ /**
14984
+ * Creates iterable instance with fluent interface from infinite item repeating.
14985
+ *
14986
+ * @param item
14987
+ *
14988
+ * @see infinite.repeat
14989
+ */
14990
+ Stream.ofRepeat = function (item) {
14991
+ return new Stream(index_1.infinite.repeat(item));
14992
+ };
14243
14993
  /**
14244
14994
  * Iterate stream collection with another iterable collections simultaneously.
14245
14995
  *
@@ -14718,6 +15468,21 @@ function requireStream () {
14718
15468
  this.data = set_1.union.apply(void 0, __spreadArray([this.data], __read(iterables), false));
14719
15469
  return this;
14720
15470
  };
15471
+ /**
15472
+ * Iterates cartesian product of iterable source and given iterables.
15473
+ *
15474
+ * @param iterables
15475
+ *
15476
+ * @see set.cartesianProduct
15477
+ */
15478
+ Stream.prototype.cartesianProductWith = function () {
15479
+ var iterables = [];
15480
+ for (var _i = 0; _i < arguments.length; _i++) {
15481
+ iterables[_i] = arguments[_i];
15482
+ }
15483
+ this.data = set_1.cartesianProduct.apply(void 0, __spreadArray([this.data], __read(iterables), false));
15484
+ return this;
15485
+ };
14721
15486
  /**
14722
15487
  * Peek at each element between other Stream operations to do some action without modifying the stream.
14723
15488
  *
@@ -14887,6 +15652,16 @@ function requireStream () {
14887
15652
  Stream.prototype.toProduct = function () {
14888
15653
  return (0, reduce_1.toProduct)(this);
14889
15654
  };
15655
+ /**
15656
+ * Reduces given collection to its range.
15657
+ *
15658
+ * Returns 0 if given collection is empty.
15659
+ *
15660
+ * @see reduce.toRange
15661
+ */
15662
+ Stream.prototype.toRange = function () {
15663
+ return (0, reduce_1.toRange)(this);
15664
+ };
14890
15665
  /**
14891
15666
  * Returns true if all elements of stream match the predicate function.
14892
15667
  *
@@ -15323,6 +16098,7 @@ function requireAsyncStream () {
15323
16098
  var set_1 = requireSet();
15324
16099
  var reduce_1 = requireReduce();
15325
16100
  var summary_1 = requireSummary();
16101
+ var index_1 = requireLib();
15326
16102
  /**
15327
16103
  * Provides fluent interface for working with async iterables.
15328
16104
  */
@@ -15349,6 +16125,37 @@ function requireAsyncStream () {
15349
16125
  AsyncStream.ofEmpty = function () {
15350
16126
  return new AsyncStream((0, transform_1.toAsyncIterable)([]));
15351
16127
  };
16128
+ /**
16129
+ * Creates iterable instance with fluent interface from infinite count iterable.
16130
+ *
16131
+ * @param start (optional, default 1)
16132
+ * @param step (optional, default 1)
16133
+ */
16134
+ AsyncStream.ofCount = function (start, step) {
16135
+ if (start === void 0) {
16136
+ start = 1;
16137
+ }
16138
+ if (step === void 0) {
16139
+ step = 1;
16140
+ }
16141
+ return new AsyncStream((0, transform_1.toAsyncIterable)(index_1.infinite.count(start, step)));
16142
+ };
16143
+ /**
16144
+ * Creates iterable instance with fluent interface from infinite collection items repeating.
16145
+ *
16146
+ * @param iterable
16147
+ */
16148
+ AsyncStream.ofCycle = function (iterable) {
16149
+ return new AsyncStream(index_1.infinite.cycleAsync(iterable));
16150
+ };
16151
+ /**
16152
+ * Creates iterable instance with fluent interface from infinite item repeating.
16153
+ *
16154
+ * @param item
16155
+ */
16156
+ AsyncStream.ofRepeat = function (item) {
16157
+ return new AsyncStream((0, transform_1.toAsyncIterable)(index_1.infinite.repeat(item)));
16158
+ };
15352
16159
  /**
15353
16160
  * Iterate stream collection with another iterable collections simultaneously.
15354
16161
  *
@@ -15827,6 +16634,21 @@ function requireAsyncStream () {
15827
16634
  this.data = set_1.unionAsync.apply(void 0, __spreadArray([this.data], __read(iterables), false));
15828
16635
  return this;
15829
16636
  };
16637
+ /**
16638
+ * Iterates cartesian product of iterable source and given iterables.
16639
+ *
16640
+ * @param iterables
16641
+ *
16642
+ * @see set.cartesianProductAsync
16643
+ */
16644
+ AsyncStream.prototype.cartesianProductWith = function () {
16645
+ var iterables = [];
16646
+ for (var _i = 0; _i < arguments.length; _i++) {
16647
+ iterables[_i] = arguments[_i];
16648
+ }
16649
+ this.data = set_1.cartesianProductAsync.apply(void 0, __spreadArray([this.data], __read(iterables), false));
16650
+ return this;
16651
+ };
15830
16652
  /**
15831
16653
  * Peek at each element between other Stream operations to do some action without modifying the stream.
15832
16654
  *
@@ -16134,6 +16956,25 @@ function requireAsyncStream () {
16134
16956
  });
16135
16957
  });
16136
16958
  };
16959
+ /**
16960
+ * Reduces given collection to its range.
16961
+ *
16962
+ * Returns 0 if given collection is empty.
16963
+ *
16964
+ * @see reduce.toRangeAsync
16965
+ */
16966
+ AsyncStream.prototype.toRange = function () {
16967
+ return __awaiter(this, void 0, void 0, function () {
16968
+ return __generator(this, function (_a) {
16969
+ switch (_a.label) {
16970
+ case 0:
16971
+ return [4 /*yield*/, (0, reduce_1.toRangeAsync)(this)];
16972
+ case 1:
16973
+ return [2 /*return*/, _a.sent()];
16974
+ }
16975
+ });
16976
+ });
16977
+ };
16137
16978
  /**
16138
16979
  * Returns true if all elements of stream match the predicate function.
16139
16980
  *
@@ -16207,7 +17048,7 @@ function requireAsyncStream () {
16207
17048
  *
16208
17049
  * @see summary.exactlyNAsync
16209
17050
  */
16210
- AsyncStream.prototype.exactlyNAsync = function (n, predicate) {
17051
+ AsyncStream.prototype.exactlyN = function (n, predicate) {
16211
17052
  return __awaiter(this, void 0, void 0, function () {
16212
17053
  return __generator(this, function (_a) {
16213
17054
  return [2 /*return*/, (0, summary_1.exactlyNAsync)(this, n, predicate)];
@@ -16477,8 +17318,9 @@ function requireLib () {
16477
17318
  Object.defineProperty(exports, "__esModule", {
16478
17319
  value: true
16479
17320
  });
16480
- exports.LengthError = exports.InvalidArgumentError = exports.AsyncStream = exports.Stream = exports.transform = exports.summary = exports.reduce = exports.set = exports.multi = exports.math = exports.single = void 0;
17321
+ exports.LengthError = exports.InvalidArgumentError = exports.AsyncStream = exports.Stream = exports.transform = exports.summary = exports.reduce = exports.set = exports.multi = exports.math = exports.infinite = exports.single = void 0;
16481
17322
  var single_1 = requireSingle();
17323
+ var infinite_1 = requireInfinite();
16482
17324
  var math_1 = requireMath();
16483
17325
  var multi_1 = requireMulti();
16484
17326
  var set_1 = requireSet();
@@ -16552,6 +17394,12 @@ function requireLib () {
16552
17394
  takeWhileAsync: single_1.takeWhileAsync,
16553
17395
  valuesAsync: single_1.valuesAsync
16554
17396
  };
17397
+ exports.infinite = {
17398
+ count: infinite_1.count,
17399
+ cycle: infinite_1.cycle,
17400
+ cycleAsync: infinite_1.cycleAsync,
17401
+ repeat: infinite_1.repeat
17402
+ };
16555
17403
  exports.math = {
16556
17404
  runningAverage: math_1.runningAverage,
16557
17405
  runningDifference: math_1.runningDifference,
@@ -16584,11 +17432,13 @@ function requireLib () {
16584
17432
  partialIntersection: set_1.partialIntersection,
16585
17433
  symmetricDifference: set_1.symmetricDifference,
16586
17434
  union: set_1.union,
17435
+ cartesianProduct: set_1.cartesianProduct,
16587
17436
  distinctAsync: set_1.distinctAsync,
16588
17437
  intersectionAsync: set_1.intersectionAsync,
16589
17438
  partialIntersectionAsync: set_1.partialIntersectionAsync,
16590
17439
  symmetricDifferenceAsync: set_1.symmetricDifferenceAsync,
16591
- unionAsync: set_1.unionAsync
17440
+ unionAsync: set_1.unionAsync,
17441
+ cartesianProductAsync: set_1.cartesianProductAsync
16592
17442
  };
16593
17443
  exports.reduce = {
16594
17444
  toAverage: reduce_1.toAverage,
@@ -16600,6 +17450,7 @@ function requireLib () {
16600
17450
  toMin: reduce_1.toMin,
16601
17451
  toMinMax: reduce_1.toMinMax,
16602
17452
  toProduct: reduce_1.toProduct,
17453
+ toRange: reduce_1.toRange,
16603
17454
  toSum: reduce_1.toSum,
16604
17455
  toValue: reduce_1.toValue,
16605
17456
  toAverageAsync: reduce_1.toAverageAsync,
@@ -16611,6 +17462,7 @@ function requireLib () {
16611
17462
  toMinAsync: reduce_1.toMinAsync,
16612
17463
  toMinMaxAsync: reduce_1.toMinMaxAsync,
16613
17464
  toProductAsync: reduce_1.toProductAsync,
17465
+ toRangeAsync: reduce_1.toRangeAsync,
16614
17466
  toSumAsync: reduce_1.toSumAsync,
16615
17467
  toValueAsync: reduce_1.toValueAsync
16616
17468
  };
@@ -20588,7 +21440,7 @@ function* toIterableIterator(iter) {
20588
21440
  }
20589
21441
  }
20590
21442
  }
20591
- const map = (fn) => (
21443
+ const map$1 = (fn) => (
20592
21444
  // eslint-disable-next-line @typescript-eslint/no-shadow -- naming the function is helpful in stack traces/debugging
20593
21445
  function* map2(iterable) {
20594
21446
  for (const item of toIterableIterator(iterable)) {
@@ -21170,7 +22022,7 @@ class LocationPathEvaluation {
21170
22022
  }
21171
22023
  }
21172
22024
  *following(step) {
21173
- const contextNodes = map((node) => node.ownerElement ?? node)(
22025
+ const contextNodes = map$1((node) => node.ownerElement ?? node)(
21174
22026
  this.contextNodes
21175
22027
  );
21176
22028
  const treeWalker = this.getTreeWalker(step);
@@ -21763,8 +22615,8 @@ undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator)
21763
22615
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21764
22616
  });
21765
22617
  };
21766
- var __await$1 = undefined && undefined.__await || function (v) {
21767
- return this instanceof __await$1 ? (this.v = v, this) : new __await$1(v);
22618
+ var __await$2 = undefined && undefined.__await || function (v) {
22619
+ return this instanceof __await$2 ? (this.v = v, this) : new __await$2(v);
21768
22620
  };
21769
22621
  undefined && undefined.__asyncGenerator || function (thisArg, _arguments, generator) {
21770
22622
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
@@ -21789,7 +22641,7 @@ undefined && undefined.__asyncGenerator || function (thisArg, _arguments, genera
21789
22641
  }
21790
22642
  }
21791
22643
  function step(r) {
21792
- r.value instanceof __await$1 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
22644
+ r.value instanceof __await$2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
21793
22645
  }
21794
22646
  function fulfill(value) {
21795
22647
  resume("next", value);
@@ -21839,7 +22691,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument
21839
22691
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21840
22692
  });
21841
22693
  };
21842
- var __asyncValues = undefined && undefined.__asyncValues || function (o) {
22694
+ var __asyncValues$1 = undefined && undefined.__asyncValues || function (o) {
21843
22695
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
21844
22696
  var m = o[Symbol.asyncIterator],
21845
22697
  i;
@@ -21888,7 +22740,7 @@ function toValueAsync(data, reducer, initialValue) {
21888
22740
  return __awaiter(this, void 0, void 0, function* () {
21889
22741
  let carry = initialValue;
21890
22742
  try {
21891
- for (var _d = true, _e = __asyncValues(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
22743
+ for (var _d = true, _e = __asyncValues$1(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
21892
22744
  _c = _f.value;
21893
22745
  _d = false;
21894
22746
  try {
@@ -22076,6 +22928,30 @@ function toMinMaxAsync(data, compareBy) {
22076
22928
  }), [undefined, undefined]);
22077
22929
  });
22078
22930
  }
22931
+ /**
22932
+ * Reduces given collection to its range.
22933
+ *
22934
+ * Returns 0 if given collection is empty.
22935
+ *
22936
+ * @param numbers
22937
+ */
22938
+ function toRange(numbers) {
22939
+ const [min, max] = toMinMax(map(numbers, n => Number(n)));
22940
+ return (max !== null && max !== void 0 ? max : 0) - (min !== null && min !== void 0 ? min : 0);
22941
+ }
22942
+ /**
22943
+ * Reduces given async collection to its range.
22944
+ *
22945
+ * Returns 0 if given async collection is empty.
22946
+ *
22947
+ * @param numbers
22948
+ */
22949
+ function toRangeAsync(numbers) {
22950
+ return __awaiter(this, void 0, void 0, function* () {
22951
+ const [min, max] = yield toMinMaxAsync(mapAsync(numbers, n => Number(n)));
22952
+ return (max !== null && max !== void 0 ? max : 0) - (min !== null && min !== void 0 ? min : 0);
22953
+ });
22954
+ }
22079
22955
  /**
22080
22956
  * Reduces given collection to the sum of its items.
22081
22957
  *
@@ -22175,7 +23051,7 @@ function toFirstAsync(data) {
22175
23051
  var _a, e_2, _b, _c;
22176
23052
  return __awaiter(this, void 0, void 0, function* () {
22177
23053
  try {
22178
- for (var _d = true, _e = __asyncValues(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
23054
+ for (var _d = true, _e = __asyncValues$1(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
22179
23055
  _c = _f.value;
22180
23056
  _d = false;
22181
23057
  try {
@@ -22231,7 +23107,7 @@ function toLastAsync(data) {
22231
23107
  let isEmpty = true;
22232
23108
  let result;
22233
23109
  try {
22234
- for (var _d = true, _e = __asyncValues(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
23110
+ for (var _d = true, _e = __asyncValues$1(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
22235
23111
  _c = _f.value;
22236
23112
  _d = false;
22237
23113
  try {
@@ -22293,7 +23169,7 @@ function toFirstAndLastAsync(data) {
22293
23169
  let first = NoValueMonad;
22294
23170
  let last = NoValueMonad;
22295
23171
  try {
22296
- for (var _d = true, _e = __asyncValues(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
23172
+ for (var _d = true, _e = __asyncValues$1(toAsyncIterable(data)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
22297
23173
  _c = _f.value;
22298
23174
  _d = false;
22299
23175
  try {
@@ -22443,10 +23319,10 @@ undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator)
22443
23319
  step((generator = generator.apply(thisArg, _arguments || [])).next());
22444
23320
  });
22445
23321
  };
22446
- var __await = undefined && undefined.__await || function (v) {
22447
- return this instanceof __await ? (this.v = v, this) : new __await(v);
23322
+ var __await$1 = undefined && undefined.__await || function (v) {
23323
+ return this instanceof __await$1 ? (this.v = v, this) : new __await$1(v);
22448
23324
  };
22449
- var __asyncGenerator = undefined && undefined.__asyncGenerator || function (thisArg, _arguments, generator) {
23325
+ var __asyncGenerator$1 = undefined && undefined.__asyncGenerator || function (thisArg, _arguments, generator) {
22450
23326
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
22451
23327
  var g = generator.apply(thisArg, _arguments || []),
22452
23328
  i,
@@ -22469,7 +23345,7 @@ var __asyncGenerator = undefined && undefined.__asyncGenerator || function (this
22469
23345
  }
22470
23346
  }
22471
23347
  function step(r) {
22472
- r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
23348
+ r.value instanceof __await$1 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
22473
23349
  }
22474
23350
  function fulfill(value) {
22475
23351
  resume("next", value);
@@ -22495,85 +23371,193 @@ undefined && undefined.__asyncValues || function (o) {
22495
23371
  });
22496
23372
  };
22497
23373
  }
22498
- function settle(resolve, reject, d, v) {
22499
- Promise.resolve(v).then(function (v) {
22500
- resolve({
22501
- value: v,
22502
- done: d
22503
- });
22504
- }, reject);
23374
+ function settle(resolve, reject, d, v) {
23375
+ Promise.resolve(v).then(function (v) {
23376
+ resolve({
23377
+ value: v,
23378
+ done: d
23379
+ });
23380
+ }, reject);
23381
+ }
23382
+ };
23383
+ /**
23384
+ * Converts collection or record to Iterable instance.
23385
+ *
23386
+ * If instance is already an iterable then just return it.
23387
+ *
23388
+ * @param collection
23389
+ */
23390
+ function toIterable(collection) {
23391
+ if (isIterable(collection)) {
23392
+ return collection;
23393
+ }
23394
+ if (isIterator(collection)) {
23395
+ return {
23396
+ [Symbol.iterator]() {
23397
+ return collection;
23398
+ }
23399
+ };
23400
+ }
23401
+ if (typeof collection === "object" && collection !== null) {
23402
+ return function* () {
23403
+ for (const key in collection) {
23404
+ if (Object.prototype.hasOwnProperty.call(collection, key)) {
23405
+ yield [key, collection[key]];
23406
+ }
23407
+ }
23408
+ }();
23409
+ }
23410
+ throw new InvalidArgumentError("Given collection is not iterable or iterator.");
23411
+ }
23412
+ /**
23413
+ * Converts collection or record to AsyncIterable instance.
23414
+ *
23415
+ * If instance is already an async iterable then just return it.
23416
+ *
23417
+ * @param collection
23418
+ */
23419
+ function toAsyncIterable(collection) {
23420
+ if (isAsyncIterable(collection)) {
23421
+ return collection;
23422
+ }
23423
+ if (isIterator(collection)) {
23424
+ return {
23425
+ [Symbol.asyncIterator]() {
23426
+ return __asyncGenerator$1(this, arguments, function* _a() {
23427
+ while (true) {
23428
+ const res = yield __await$1(collection.next());
23429
+ if (res.done) {
23430
+ return yield __await$1(void 0);
23431
+ }
23432
+ yield yield __await$1(res.value);
23433
+ }
23434
+ });
23435
+ }
23436
+ };
23437
+ }
23438
+ if (typeof collection === "object" && collection !== null) {
23439
+ collection = toIterable(collection);
23440
+ }
23441
+ if (isIterable(collection)) {
23442
+ return {
23443
+ [Symbol.asyncIterator]() {
23444
+ return __asyncGenerator$1(this, arguments, function* _a() {
23445
+ for (const value of collection) {
23446
+ yield yield __await$1(value);
23447
+ }
23448
+ });
23449
+ }
23450
+ };
23451
+ }
23452
+ throw new InvalidArgumentError("Given collection is not async iterable or iterator.");
23453
+ }
23454
+
23455
+ var __asyncValues = undefined && undefined.__asyncValues || function (o) {
23456
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
23457
+ var m = o[Symbol.asyncIterator],
23458
+ i;
23459
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
23460
+ return this;
23461
+ }, i);
23462
+ function verb(n) {
23463
+ i[n] = o[n] && function (v) {
23464
+ return new Promise(function (resolve, reject) {
23465
+ v = o[n](v), settle(resolve, reject, v.done, v.value);
23466
+ });
23467
+ };
23468
+ }
23469
+ function settle(resolve, reject, d, v) {
23470
+ Promise.resolve(v).then(function (v) {
23471
+ resolve({
23472
+ value: v,
23473
+ done: d
23474
+ });
23475
+ }, reject);
23476
+ }
23477
+ };
23478
+ var __await = undefined && undefined.__await || function (v) {
23479
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
23480
+ };
23481
+ var __asyncGenerator = undefined && undefined.__asyncGenerator || function (thisArg, _arguments, generator) {
23482
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
23483
+ var g = generator.apply(thisArg, _arguments || []),
23484
+ i,
23485
+ q = [];
23486
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
23487
+ return this;
23488
+ }, i;
23489
+ function verb(n) {
23490
+ if (g[n]) i[n] = function (v) {
23491
+ return new Promise(function (a, b) {
23492
+ q.push([n, v, a, b]) > 1 || resume(n, v);
23493
+ });
23494
+ };
23495
+ }
23496
+ function resume(n, v) {
23497
+ try {
23498
+ step(g[n](v));
23499
+ } catch (e) {
23500
+ settle(q[0][3], e);
23501
+ }
23502
+ }
23503
+ function step(r) {
23504
+ r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
23505
+ }
23506
+ function fulfill(value) {
23507
+ resume("next", value);
23508
+ }
23509
+ function reject(value) {
23510
+ resume("throw", value);
23511
+ }
23512
+ function settle(f, v) {
23513
+ if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
22505
23514
  }
22506
23515
  };
22507
23516
  /**
22508
- * Converts collection or record to Iterable instance.
22509
- *
22510
- * If instance is already an iterable then just return it.
23517
+ * Map a function onto every element of the iteration.
22511
23518
  *
22512
- * @param collection
23519
+ * @param data
23520
+ * @param mapper
22513
23521
  */
22514
- function toIterable(collection) {
22515
- if (isIterable(collection)) {
22516
- return collection;
22517
- }
22518
- if (isIterator(collection)) {
22519
- return {
22520
- [Symbol.iterator]() {
22521
- return collection;
22522
- }
22523
- };
22524
- }
22525
- if (typeof collection === "object" && collection !== null) {
22526
- return function* () {
22527
- for (const key in collection) {
22528
- if (Object.prototype.hasOwnProperty.call(collection, key)) {
22529
- yield [key, collection[key]];
22530
- }
22531
- }
22532
- }();
23522
+ function* map(data, mapper) {
23523
+ for (const datum of toIterable(data)) {
23524
+ yield mapper(datum);
22533
23525
  }
22534
- throw new InvalidArgumentError("Given collection is not iterable or iterator.");
22535
23526
  }
22536
23527
  /**
22537
- * Converts collection or record to AsyncIterable instance.
23528
+ * Map a function onto every element of the iteration for async collections.
22538
23529
  *
22539
- * If instance is already an async iterable then just return it.
23530
+ * Mapper may be also async.
22540
23531
  *
22541
- * @param collection
23532
+ * @param data
23533
+ * @param mapper
22542
23534
  */
22543
- function toAsyncIterable(collection) {
22544
- if (isAsyncIterable(collection)) {
22545
- return collection;
22546
- }
22547
- if (isIterator(collection)) {
22548
- return {
22549
- [Symbol.asyncIterator]() {
22550
- return __asyncGenerator(this, arguments, function* _a() {
22551
- while (true) {
22552
- const res = yield __await(collection.next());
22553
- if (res.done) {
22554
- return yield __await(void 0);
22555
- }
22556
- yield yield __await(res.value);
22557
- }
22558
- });
23535
+ function mapAsync(data, mapper) {
23536
+ return __asyncGenerator(this, arguments, function* mapAsync_1() {
23537
+ var _a, e_1, _b, _c;
23538
+ try {
23539
+ for (var _d = true, _e = __asyncValues(toAsyncIterable(data)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
23540
+ _c = _f.value;
23541
+ _d = false;
23542
+ try {
23543
+ const datum = _c;
23544
+ yield yield __await(yield __await(mapper(datum)));
23545
+ } finally {
23546
+ _d = true;
23547
+ }
22559
23548
  }
22560
- };
22561
- }
22562
- if (typeof collection === "object" && collection !== null) {
22563
- collection = toIterable(collection);
22564
- }
22565
- if (isIterable(collection)) {
22566
- return {
22567
- [Symbol.asyncIterator]() {
22568
- return __asyncGenerator(this, arguments, function* _a() {
22569
- for (const value of collection) {
22570
- yield yield __await(value);
22571
- }
22572
- });
23549
+ } catch (e_1_1) {
23550
+ e_1 = {
23551
+ error: e_1_1
23552
+ };
23553
+ } finally {
23554
+ try {
23555
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
23556
+ } finally {
23557
+ if (e_1) throw e_1.error;
22573
23558
  }
22574
- };
22575
- }
22576
- throw new InvalidArgumentError("Given collection is not async iterable or iterator.");
23559
+ }
23560
+ });
22577
23561
  }
22578
23562
 
22579
23563
  const reduce = {
@@ -22586,6 +23570,7 @@ const reduce = {
22586
23570
  toMin,
22587
23571
  toMinMax,
22588
23572
  toProduct,
23573
+ toRange,
22589
23574
  toSum,
22590
23575
  toValue,
22591
23576
  toAverageAsync,
@@ -22597,6 +23582,7 @@ const reduce = {
22597
23582
  toMinAsync,
22598
23583
  toMinMaxAsync,
22599
23584
  toProductAsync,
23585
+ toRangeAsync,
22600
23586
  toSumAsync,
22601
23587
  toValueAsync
22602
23588
  };
@@ -24466,7 +25452,7 @@ const date = new FunctionImplementation(
24466
25452
  return new StringEvaluation(context, string);
24467
25453
  }
24468
25454
  if (!DATE_OR_DATE_TIME_PATTERN.test(string)) {
24469
- const unpaddedMatches = string.match(UNPADDED_MONTH_DAY_PATTERN);
25455
+ const unpaddedMatches = UNPADDED_MONTH_DAY_PATTERN.exec(string);
24470
25456
  if (unpaddedMatches == null) {
24471
25457
  return new DateTimeLikeEvaluation(context, null);
24472
25458
  }
@@ -25060,6 +26046,100 @@ const countNonEmpty = new NumberFunction(
25060
26046
  return result;
25061
26047
  }
25062
26048
  );
26049
+ const assertArgument = (index, arg) => {
26050
+ if (arg == null) {
26051
+ throw new Error(`Argument ${index + 1} expected`);
26052
+ }
26053
+ };
26054
+ const assertIsLocationPathEvaluation = (evaluation) => {
26055
+ if (!(evaluation instanceof LocationPathEvaluation)) {
26056
+ throw new Error("Expected a node-set result");
26057
+ }
26058
+ };
26059
+ const evaluateArgumentToFilterableNodes = (context, arg) => {
26060
+ const evaluation = arg.evaluate(context);
26061
+ assertIsLocationPathEvaluation(evaluation);
26062
+ return Array.from(evaluation.contextNodes);
26063
+ };
26064
+ const compareContainmentDepth = ({ repeats: a }, { repeats: b }) => {
26065
+ for (const repeatA of a) {
26066
+ for (const repeatB of b) {
26067
+ if (repeatA.contains(repeatB)) {
26068
+ return -1;
26069
+ }
26070
+ if (repeatB.contains(repeatA)) {
26071
+ return 1;
26072
+ }
26073
+ }
26074
+ }
26075
+ if (a.length === 0 || b.length === 0) {
26076
+ return 0;
26077
+ }
26078
+ return 0;
26079
+ };
26080
+ const indexedRepeat = new NodeSetFunction(
26081
+ "indexed-repeat",
26082
+ [
26083
+ // spec: arg
26084
+ { arityType: "required", typeHint: "node" },
26085
+ // spec: repeat1
26086
+ { arityType: "required", typeHint: "node" },
26087
+ // spec: index1
26088
+ { arityType: "required", typeHint: "number" },
26089
+ // spec: repeatN=0 -> repeat2
26090
+ { arityType: "optional", typeHint: "node" },
26091
+ // spec: indexN=0 -> index2
26092
+ { arityType: "optional", typeHint: "number" },
26093
+ // spec: repeatN=1 -> repeat3
26094
+ { arityType: "optional", typeHint: "node" },
26095
+ // spec: indexN=1 -> index3
26096
+ { arityType: "optional", typeHint: "number" },
26097
+ // Go beyond spec? Why the heck not! It's clearly a variadic design.
26098
+ { arityType: "variadic", typeHint: "any" }
26099
+ ],
26100
+ (context, args) => {
26101
+ const target = args[0];
26102
+ let pairs = [];
26103
+ for (let i = 1; i < args.length; i += 2) {
26104
+ const repeatsArg = args[i];
26105
+ const positionArg = args[i + 1];
26106
+ assertArgument(i, repeatsArg);
26107
+ assertArgument(i + 1, positionArg);
26108
+ const position2 = positionArg.evaluate(context).toNumber();
26109
+ if (Number.isNaN(position2)) {
26110
+ return [];
26111
+ }
26112
+ const repeats = evaluateArgumentToFilterableNodes(context, repeatsArg);
26113
+ if (repeats.length === 0) {
26114
+ return [];
26115
+ }
26116
+ pairs.push({
26117
+ repeats,
26118
+ position: position2
26119
+ });
26120
+ }
26121
+ pairs = pairs.sort(compareContainmentDepth);
26122
+ let repeatContextNode;
26123
+ for (const [index, pair] of pairs.entries()) {
26124
+ const { position: position2 } = pair;
26125
+ let { repeats } = pair;
26126
+ if (index > 0) {
26127
+ repeats = pair.repeats.filter((repeat) => {
26128
+ return repeatContextNode.contains(repeat);
26129
+ });
26130
+ }
26131
+ const positionedRepeat = repeats[position2 - 1];
26132
+ if (positionedRepeat == null) {
26133
+ return [];
26134
+ }
26135
+ repeatContextNode = positionedRepeat;
26136
+ }
26137
+ const targetNodes = evaluateArgumentToFilterableNodes(context, target);
26138
+ return targetNodes.filter((targetNode) => {
26139
+ return repeatContextNode.contains(targetNode);
26140
+ });
26141
+ }
26142
+ );
25063
26143
  const identifiedInstanceLookup = new ScopedElementLookup(":scope > instance[id]", "instance[id]");
25064
26144
  const instancesCache = new UpsertableWeakMap();
25065
26145
  const getInstanceElementByID = (modelElement, id) => {
@@ -25158,6 +26238,7 @@ const randomize = new NodeSetFunction(
25158
26238
  const nodeset = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
25159
26239
  __proto__: null,
25160
26240
  countNonEmpty,
26241
+ indexedRepeat,
25161
26242
  instance,
25162
26243
  once,
25163
26244
  position,
@@ -26594,131 +27675,132 @@ function requireEncUtf16 () {
26594
27675
 
26595
27676
  var encBase64$1 = {exports: {}};
26596
27677
 
26597
- var hasRequiredEncBase64;
26598
-
26599
- function requireEncBase64 () {
26600
- if (hasRequiredEncBase64) return encBase64$1.exports;
26601
- hasRequiredEncBase64 = 1;
26602
- (function (module, exports) {
26603
- (function (root, factory) {
26604
- {
26605
- // CommonJS
26606
- module.exports = factory(requireCore());
26607
- }
26608
- })(commonjsGlobal, function (CryptoJS) {
26609
- (function () {
26610
- // Shortcuts
26611
- var C = CryptoJS;
26612
- var C_lib = C.lib;
26613
- var WordArray = C_lib.WordArray;
26614
- var C_enc = C.enc;
26615
-
26616
- /**
26617
- * Base64 encoding strategy.
26618
- */
26619
- C_enc.Base64 = {
26620
- /**
26621
- * Converts a word array to a Base64 string.
26622
- *
26623
- * @param {WordArray} wordArray The word array.
26624
- *
26625
- * @return {string} The Base64 string.
26626
- *
26627
- * @static
26628
- *
26629
- * @example
26630
- *
26631
- * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
26632
- */
26633
- stringify: function (wordArray) {
26634
- // Shortcuts
26635
- var words = wordArray.words;
26636
- var sigBytes = wordArray.sigBytes;
26637
- var map = this._map;
27678
+ (function (module, exports) {
27679
+ (function (root, factory) {
27680
+ {
27681
+ // CommonJS
27682
+ module.exports = factory(requireCore());
27683
+ }
27684
+ })(commonjsGlobal, function (CryptoJS) {
27685
+ (function () {
27686
+ // Shortcuts
27687
+ var C = CryptoJS;
27688
+ var C_lib = C.lib;
27689
+ var WordArray = C_lib.WordArray;
27690
+ var C_enc = C.enc;
27691
+
27692
+ /**
27693
+ * Base64 encoding strategy.
27694
+ */
27695
+ C_enc.Base64 = {
27696
+ /**
27697
+ * Converts a word array to a Base64 string.
27698
+ *
27699
+ * @param {WordArray} wordArray The word array.
27700
+ *
27701
+ * @return {string} The Base64 string.
27702
+ *
27703
+ * @static
27704
+ *
27705
+ * @example
27706
+ *
27707
+ * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
27708
+ */
27709
+ stringify: function (wordArray) {
27710
+ // Shortcuts
27711
+ var words = wordArray.words;
27712
+ var sigBytes = wordArray.sigBytes;
27713
+ var map = this._map;
27714
+
27715
+ // Clamp excess bits
27716
+ wordArray.clamp();
27717
+
27718
+ // Convert
27719
+ var base64Chars = [];
27720
+ for (var i = 0; i < sigBytes; i += 3) {
27721
+ var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
27722
+ var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
27723
+ var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
27724
+ var triplet = byte1 << 16 | byte2 << 8 | byte3;
27725
+ for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
27726
+ base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
27727
+ }
27728
+ }
26638
27729
 
26639
- // Clamp excess bits
26640
- wordArray.clamp();
27730
+ // Add padding
27731
+ var paddingChar = map.charAt(64);
27732
+ if (paddingChar) {
27733
+ while (base64Chars.length % 4) {
27734
+ base64Chars.push(paddingChar);
27735
+ }
27736
+ }
27737
+ return base64Chars.join('');
27738
+ },
27739
+ /**
27740
+ * Converts a Base64 string to a word array.
27741
+ *
27742
+ * @param {string} base64Str The Base64 string.
27743
+ *
27744
+ * @return {WordArray} The word array.
27745
+ *
27746
+ * @static
27747
+ *
27748
+ * @example
27749
+ *
27750
+ * var wordArray = CryptoJS.enc.Base64.parse(base64String);
27751
+ */
27752
+ parse: function (base64Str) {
27753
+ // Shortcuts
27754
+ var base64StrLength = base64Str.length;
27755
+ var map = this._map;
27756
+ var reverseMap = this._reverseMap;
27757
+ if (!reverseMap) {
27758
+ reverseMap = this._reverseMap = [];
27759
+ for (var j = 0; j < map.length; j++) {
27760
+ reverseMap[map.charCodeAt(j)] = j;
27761
+ }
27762
+ }
26641
27763
 
26642
- // Convert
26643
- var base64Chars = [];
26644
- for (var i = 0; i < sigBytes; i += 3) {
26645
- var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
26646
- var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
26647
- var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
26648
- var triplet = byte1 << 16 | byte2 << 8 | byte3;
26649
- for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
26650
- base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
26651
- }
26652
- }
27764
+ // Ignore padding
27765
+ var paddingChar = map.charAt(64);
27766
+ if (paddingChar) {
27767
+ var paddingIndex = base64Str.indexOf(paddingChar);
27768
+ if (paddingIndex !== -1) {
27769
+ base64StrLength = paddingIndex;
27770
+ }
27771
+ }
26653
27772
 
26654
- // Add padding
26655
- var paddingChar = map.charAt(64);
26656
- if (paddingChar) {
26657
- while (base64Chars.length % 4) {
26658
- base64Chars.push(paddingChar);
26659
- }
26660
- }
26661
- return base64Chars.join('');
26662
- },
26663
- /**
26664
- * Converts a Base64 string to a word array.
26665
- *
26666
- * @param {string} base64Str The Base64 string.
26667
- *
26668
- * @return {WordArray} The word array.
26669
- *
26670
- * @static
26671
- *
26672
- * @example
26673
- *
26674
- * var wordArray = CryptoJS.enc.Base64.parse(base64String);
26675
- */
26676
- parse: function (base64Str) {
26677
- // Shortcuts
26678
- var base64StrLength = base64Str.length;
26679
- var map = this._map;
26680
- var reverseMap = this._reverseMap;
26681
- if (!reverseMap) {
26682
- reverseMap = this._reverseMap = [];
26683
- for (var j = 0; j < map.length; j++) {
26684
- reverseMap[map.charCodeAt(j)] = j;
26685
- }
26686
- }
27773
+ // Convert
27774
+ return parseLoop(base64Str, base64StrLength, reverseMap);
27775
+ },
27776
+ _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
27777
+ };
27778
+ function parseLoop(base64Str, base64StrLength, reverseMap) {
27779
+ var words = [];
27780
+ var nBytes = 0;
27781
+ for (var i = 0; i < base64StrLength; i++) {
27782
+ if (i % 4) {
27783
+ var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
27784
+ var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
27785
+ var bitsCombined = bits1 | bits2;
27786
+ words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
27787
+ nBytes++;
27788
+ }
27789
+ }
27790
+ return WordArray.create(words, nBytes);
27791
+ }
27792
+ })();
27793
+ return CryptoJS.enc.Base64;
27794
+ });
27795
+ } (encBase64$1));
26687
27796
 
26688
- // Ignore padding
26689
- var paddingChar = map.charAt(64);
26690
- if (paddingChar) {
26691
- var paddingIndex = base64Str.indexOf(paddingChar);
26692
- if (paddingIndex !== -1) {
26693
- base64StrLength = paddingIndex;
26694
- }
26695
- }
27797
+ var encBase64Exports = encBase64$1.exports;
27798
+ const encBase64 = /*@__PURE__*/getDefaultExportFromCjs(encBase64Exports);
26696
27799
 
26697
- // Convert
26698
- return parseLoop(base64Str, base64StrLength, reverseMap);
26699
- },
26700
- _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
26701
- };
26702
- function parseLoop(base64Str, base64StrLength, reverseMap) {
26703
- var words = [];
26704
- var nBytes = 0;
26705
- for (var i = 0; i < base64StrLength; i++) {
26706
- if (i % 4) {
26707
- var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
26708
- var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
26709
- var bitsCombined = bits1 | bits2;
26710
- words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
26711
- nBytes++;
26712
- }
26713
- }
26714
- return WordArray.create(words, nBytes);
26715
- }
26716
- })();
26717
- return CryptoJS.enc.Base64;
26718
- });
26719
- } (encBase64$1));
26720
- return encBase64$1.exports;
26721
- }
27800
+ const base64 = /*#__PURE__*/_mergeNamespaces({
27801
+ __proto__: null,
27802
+ default: encBase64
27803
+ }, [encBase64Exports]);
26722
27804
 
26723
27805
  var encBase64url = {exports: {}};
26724
27806
 
@@ -30225,7 +31307,7 @@ function requireAes () {
30225
31307
  (function (root, factory, undef) {
30226
31308
  {
30227
31309
  // CommonJS
30228
- module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
31310
+ module.exports = factory(requireCore(), encBase64Exports, requireMd5(), requireEvpkdf(), requireCipherCore());
30229
31311
  }
30230
31312
  })(commonjsGlobal, function (CryptoJS) {
30231
31313
  (function () {
@@ -30449,7 +31531,7 @@ function requireTripledes () {
30449
31531
  (function (root, factory, undef) {
30450
31532
  {
30451
31533
  // CommonJS
30452
- module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
31534
+ module.exports = factory(requireCore(), encBase64Exports, requireMd5(), requireEvpkdf(), requireCipherCore());
30453
31535
  }
30454
31536
  })(commonjsGlobal, function (CryptoJS) {
30455
31537
  (function () {
@@ -31187,7 +32269,7 @@ function requireRc4 () {
31187
32269
  (function (root, factory, undef) {
31188
32270
  {
31189
32271
  // CommonJS
31190
- module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
32272
+ module.exports = factory(requireCore(), encBase64Exports, requireMd5(), requireEvpkdf(), requireCipherCore());
31191
32273
  }
31192
32274
  })(commonjsGlobal, function (CryptoJS) {
31193
32275
  (function () {
@@ -31318,7 +32400,7 @@ function requireRabbit () {
31318
32400
  (function (root, factory, undef) {
31319
32401
  {
31320
32402
  // CommonJS
31321
- module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
32403
+ module.exports = factory(requireCore(), encBase64Exports, requireMd5(), requireEvpkdf(), requireCipherCore());
31322
32404
  }
31323
32405
  })(commonjsGlobal, function (CryptoJS) {
31324
32406
  (function () {
@@ -31493,7 +32575,7 @@ function requireRabbitLegacy () {
31493
32575
  (function (root, factory, undef) {
31494
32576
  {
31495
32577
  // CommonJS
31496
- module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
32578
+ module.exports = factory(requireCore(), encBase64Exports, requireMd5(), requireEvpkdf(), requireCipherCore());
31497
32579
  }
31498
32580
  })(commonjsGlobal, function (CryptoJS) {
31499
32581
  (function () {
@@ -31667,7 +32749,7 @@ function requireBlowfish () {
31667
32749
  (function (root, factory, undef) {
31668
32750
  {
31669
32751
  // CommonJS
31670
- module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
32752
+ module.exports = factory(requireCore(), encBase64Exports, requireMd5(), requireEvpkdf(), requireCipherCore());
31671
32753
  }
31672
32754
  })(commonjsGlobal, function (CryptoJS) {
31673
32755
  (function () {
@@ -31839,7 +32921,7 @@ function requireBlowfish () {
31839
32921
  (function (root, factory, undef) {
31840
32922
  {
31841
32923
  // CommonJS
31842
- module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), requireEncBase64(), requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy(), requireBlowfish());
32924
+ module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), encBase64Exports, requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy(), requireBlowfish());
31843
32925
  }
31844
32926
  })(commonjsGlobal, function (CryptoJS) {
31845
32927
  return CryptoJS;
@@ -31848,14 +32930,6 @@ function requireBlowfish () {
31848
32930
 
31849
32931
  var cryptoJsExports = cryptoJs.exports;
31850
32932
 
31851
- var encBase64Exports = requireEncBase64();
31852
- const encBase64 = /*@__PURE__*/getDefaultExportFromCjs(encBase64Exports);
31853
-
31854
- const base64 = /*#__PURE__*/_mergeNamespaces({
31855
- __proto__: null,
31856
- default: encBase64
31857
- }, [encBase64Exports]);
31858
-
31859
32933
  var encHex$1 = {exports: {}};
31860
32934
 
31861
32935
  (function (module, exports) {