@feedmepos/mf-report 5.34.2-beta.0 → 5.35.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/{App-CTNqGWu3.js → App-DQyEf0mm.js} +4 -4
  2. package/dist/{DateRangeSelect-ugBAezWv.js → DateRangeSelect-DvE_au_i.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BgdRmAaG.js → Default.vue_vue_type_script_setup_true_lang-B5Ir3Xuu.js} +1 -1
  4. package/dist/{DigestListView-Dw2-7g3V.js → DigestListView-Cl2EK5bf.js} +3 -3
  5. package/dist/DigestReaderView-BS0iuanX.js +489 -0
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CQOfbsny.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DfVW7Q_x.js} +173 -173
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BQpXUl5Y.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Fcz2N71N.js} +175 -175
  8. package/dist/{InsightView-drYR-GoM.js → InsightView-CmA2Xi0T.js} +5 -5
  9. package/dist/{Integration-Bd5TU3TW.js → Integration-DdfS7Jgh.js} +3 -3
  10. package/dist/{Integrations-wIW0tkRi.js → Integrations-CRMbmKLq.js} +2 -2
  11. package/dist/{Layout-CpxtgZ_K.js → Layout-kcAw_A-E.js} +1 -1
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-5Wduoqrp.js → LocationSelect.vue_vue_type_script_setup_true_lang-BRYP_afx.js} +1553 -1547
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BkyAL0XA.js → MenuTab.vue_vue_type_script_setup_true_lang-I8gsgGXJ.js} +5 -5
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-zCfpFbMB.js → NavigationTab.vue_vue_type_script_setup_true_lang-D3QOPpyj.js} +5 -5
  15. package/dist/{OverviewView-CPIbkUIQ.js → OverviewView-tS8EKm9q.js} +5 -5
  16. package/dist/{Report-DqHL8zAU.js → Report-BvJw6A0s.js} +3 -3
  17. package/dist/ReportCanvasView-Bywb09Z7.js +1066 -0
  18. package/dist/{ReportEditor-DyDsge8L.js → ReportEditor-D88J-04n.js} +7 -7
  19. package/dist/{ReportView-DK7g-7Ba.js → ReportView-DxnYH37m.js} +6 -6
  20. package/dist/{ReportViewRoute-Dpt84-XU.js → ReportViewRoute-DJdbgiqN.js} +2 -2
  21. package/dist/{Setting-Inns2xlq.js → Setting-CNrh7nBB.js} +94 -94
  22. package/dist/{Template-7ErGUPov.js → Template-BreFV27K.js} +3 -3
  23. package/dist/{TileEditor-BjWofHQ5.js → TileEditor-CLXi5in3.js} +6 -6
  24. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BxjkJQs_.js → TilePageStack.vue_vue_type_script_setup_true_lang-HMTKQELw.js} +2 -2
  25. package/dist/{TransitionFade-BlQMeZNA.js → TransitionFade-tUK-3l63.js} +5 -5
  26. package/dist/{app-BxEfKOCH.js → app-CwMmSHUw.js} +19 -19
  27. package/dist/app.js +1 -1
  28. package/dist/assets/{formatChartData.worker-Cpgnh20a.js → formatChartData.worker-Bt8turfo.js} +22 -22
  29. package/dist/assets/{processTableData.worker-B7I6PElJ.js → processTableData.worker-MGb36f8J.js} +22 -22
  30. package/dist/{currency-Gp2WcafT.js → currency-BUi-Xq6N.js} +1 -1
  31. package/dist/{index-CVkwce9f.js → index-cojDf4MH.js} +503 -473
  32. package/dist/{report-CYTvrsBN.js → report-CtMB0C_H.js} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/{useDigestFont-C1lXCGD5.js → useDigestFont-HI14Bq_l.js} +1 -1
  35. package/dist/{useReportCanvasPanel-DktKsHBS.js → useReportCanvasPicks-ZAlJK9Cv.js} +1353 -1264
  36. package/dist/{useRestaurantPermission-Dhr3bCra.js → useRestaurantPermission-DO4WIH7P.js} +1 -1
  37. package/package.json +2 -2
  38. package/dist/DigestReaderView-DGYa6bGl.js +0 -526
  39. package/dist/ReportCanvasView-Dv-CsDYk.js +0 -1035
@@ -1,4 +1,4 @@
1
- import { al as pr } from "./app-BxEfKOCH.js";
1
+ import { al as pr } from "./app-CwMmSHUw.js";
2
2
  function zt(c) {
3
3
  throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -6,10 +6,10 @@ var le = {}, rt;
6
6
  function _r() {
7
7
  return rt || (rt = 1, (function(c) {
8
8
  var z = typeof globalThis < "u" ? globalThis : window, f = Object.create(z);
9
- f.scheduleImmediate = typeof setImmediate < "u" ? function(L) {
10
- setImmediate(L);
11
- } : function(L) {
12
- setTimeout(L, 0);
9
+ f.scheduleImmediate = typeof setImmediate < "u" ? function(C) {
10
+ setImmediate(C);
11
+ } : function(C) {
12
+ setTimeout(C, 0);
13
13
  }, f.exports = c, typeof process < "u" && (f.process = process), typeof __dirname < "u" && (f.__dirname = __dirname), typeof __filename < "u" && (f.__filename = __filename), typeof Buffer < "u" && (f.Buffer = Buffer);
14
14
  var E = !z.window;
15
15
  try {
@@ -22,13 +22,13 @@ function _r() {
22
22
  value: {
23
23
  get href() {
24
24
  return g.pathToFileURL ? g.pathToFileURL(process.cwd()).href + "/" : "file://" + (function() {
25
- var L = process.cwd();
26
- return process.platform != "win32" ? L : "/" + L.replace(/\\/g, "/");
25
+ var C = process.cwd();
26
+ return process.platform != "win32" ? C : "/" + C.replace(/\\/g, "/");
27
27
  })() + "/";
28
28
  }
29
29
  }
30
30
  }), (function() {
31
- function L() {
31
+ function C() {
32
32
  try {
33
33
  throw new Error();
34
34
  } catch (c0) {
@@ -44,13 +44,13 @@ function _r() {
44
44
  Object.defineProperty(f, "document", {
45
45
  value: {
46
46
  get currentScript() {
47
- return B == null && (B = { src: L() }), B;
47
+ return B == null && (B = { src: C() }), B;
48
48
  }
49
49
  }
50
50
  });
51
- })(), f.dartDeferredLibraryLoader = function(L, B, J) {
51
+ })(), f.dartDeferredLibraryLoader = function(C, B, J) {
52
52
  try {
53
- load(L), B();
53
+ load(C), B();
54
54
  } catch (Y) {
55
55
  J(Y);
56
56
  }
@@ -229,6 +229,9 @@ function _r() {
229
229
  CastIterable_CastIterable(r, e, n) {
230
230
  return e._eval$1("EfficientLengthIterable<0>")._is(r) ? new t._EfficientLengthCastIterable(r, e._eval$1("@<0>")._bind$1(n)._eval$1("_EfficientLengthCastIterable<1,2>")) : new t.CastIterable(r, e._eval$1("@<0>")._bind$1(n)._eval$1("CastIterable<1,2>"));
231
231
  },
232
+ LateError$fieldADI(r) {
233
+ return new t.LateError("Field '" + r + "' has been assigned during initialization.");
234
+ },
232
235
  LateError$fieldNI(r) {
233
236
  return new t.LateError("Field '" + r + "' has not been initialized.");
234
237
  },
@@ -266,8 +269,8 @@ function _r() {
266
269
  }
267
270
  },
268
271
  Sort__dualPivotQuicksort(r, e, n, a) {
269
- var i, s, l, p, _, M, b, O, D, y, $ = u.JSInt_methods._tdivFast$1(n - e + 1, 6), q = e + $, h = n - $, T = u.JSInt_methods._tdivFast$1(e + n, 2), C = T - $, F = T + $, W = o.getInterceptor$asx(r), I = W.$index(r, q), w = W.$index(r, C), N = W.$index(r, T), v = W.$index(r, F), P = W.$index(r, h);
270
- if (a.call$2(I, w) > 0 && (i = w, w = I, I = i), a.call$2(v, P) > 0 && (i = P, P = v, v = i), a.call$2(I, N) > 0 && (i = N, N = I, I = i), a.call$2(w, N) > 0 && (i = N, N = w, w = i), a.call$2(I, v) > 0 && (i = v, v = I, I = i), a.call$2(N, v) > 0 && (i = v, v = N, N = i), a.call$2(w, P) > 0 && (i = P, P = w, w = i), a.call$2(w, N) > 0 && (i = N, N = w, w = i), a.call$2(v, P) > 0 && (i = P, P = v, v = i), W.$indexSet(r, q, I), W.$indexSet(r, T, N), W.$indexSet(r, h, P), W.$indexSet(r, C, W.$index(r, e)), W.$indexSet(r, F, W.$index(r, n)), s = e + 1, l = n - 1, o.$eq$(a.call$2(w, v), 0)) {
272
+ var i, s, l, p, _, M, b, O, D, y, $ = u.JSInt_methods._tdivFast$1(n - e + 1, 6), q = e + $, h = n - $, T = u.JSInt_methods._tdivFast$1(e + n, 2), L = T - $, I = T + $, W = o.getInterceptor$asx(r), F = W.$index(r, q), w = W.$index(r, L), N = W.$index(r, T), v = W.$index(r, I), P = W.$index(r, h);
273
+ if (a.call$2(F, w) > 0 && (i = w, w = F, F = i), a.call$2(v, P) > 0 && (i = P, P = v, v = i), a.call$2(F, N) > 0 && (i = N, N = F, F = i), a.call$2(w, N) > 0 && (i = N, N = w, w = i), a.call$2(F, v) > 0 && (i = v, v = F, F = i), a.call$2(N, v) > 0 && (i = v, v = N, N = i), a.call$2(w, P) > 0 && (i = P, P = w, w = i), a.call$2(w, N) > 0 && (i = N, N = w, w = i), a.call$2(v, P) > 0 && (i = P, P = v, v = i), W.$indexSet(r, q, F), W.$indexSet(r, T, N), W.$indexSet(r, h, P), W.$indexSet(r, L, W.$index(r, e)), W.$indexSet(r, I, W.$index(r, n)), s = e + 1, l = n - 1, o.$eq$(a.call$2(w, v), 0)) {
271
274
  for (p = s; p <= l; ++p)
272
275
  if (_ = W.$index(r, p), M = a.call$2(_, w), M !== 0)
273
276
  if (M < 0)
@@ -437,8 +440,21 @@ function _r() {
437
440
  return n == null && (n = m.Primitives__identityHashCodeProperty = Symbol("identityHashCode")), e = r[n], e == null && (e = Math.random() * 1073741823 | 0, r[n] = e), e;
438
441
  },
439
442
  Primitives_parseInt(r, e) {
440
- var n, a = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(r);
441
- return a == null ? null : (n = a[3], n != null ? parseInt(r, 10) : a[2] != null ? parseInt(r, 16) : null);
443
+ var n, a, i, s, l, p = null, _ = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(r);
444
+ if (_ == null)
445
+ return p;
446
+ if (n = _[3], e == null)
447
+ return n != null ? parseInt(r, 10) : _[2] != null ? parseInt(r, 16) : p;
448
+ if (e < 2 || e > 36)
449
+ throw t.wrapException(t.RangeError$range(e, 2, 36, "radix", p));
450
+ if (e === 10 && n != null)
451
+ return parseInt(r, 10);
452
+ if (e < 10 || n == null) {
453
+ for (a = e <= 10 ? 47 + e : 86 + e, i = _[1], s = i.length, l = 0; l < s; ++l)
454
+ if ((u.JSString_methods._codeUnitAt$1(i, l) | 32) > a)
455
+ return p;
456
+ }
457
+ return parseInt(r, e);
442
458
  },
443
459
  Primitives_parseDouble(r) {
444
460
  var e, n;
@@ -691,12 +707,12 @@ function _r() {
691
707
  return e;
692
708
  },
693
709
  Closure_fromTearOff(r) {
694
- var e, n, a, i, s, l, p, _, M, b, O = r.co, D = r.iS, y = r.iI, $ = r.nDA, q = r.aI, h = r.fs, T = r.cs, C = h[0], F = T[0], W = O[C], I = r.fT;
695
- for (I.toString, e = Object.create(D ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, D ? n = function() {
710
+ var e, n, a, i, s, l, p, _, M, b, O = r.co, D = r.iS, y = r.iI, $ = r.nDA, q = r.aI, h = r.fs, T = r.cs, L = h[0], I = T[0], W = O[L], F = r.fT;
711
+ for (F.toString, e = Object.create(D ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, D ? n = function() {
696
712
  this.$initialize();
697
713
  } : n = function(N, v) {
698
714
  this.$initialize(N, v);
699
- }, e.constructor = n, n.prototype = e, e.$_name = C, e.$_target = W, a = !D, a ? i = t.Closure_forwardCallTo(C, W, y, $) : (e.$static_name = C, i = W), e.$signature = t.Closure__computeSignatureFunctionNewRti(I, D, y), e[F] = i, s = i, l = 1; l < h.length; ++l)
715
+ }, e.constructor = n, n.prototype = e, e.$_name = L, e.$_target = W, a = !D, a ? i = t.Closure_forwardCallTo(L, W, y, $) : (e.$static_name = L, i = W), e.$signature = t.Closure__computeSignatureFunctionNewRti(F, D, y), e[I] = i, s = i, l = 1; l < h.length; ++l)
700
716
  p = h[l], typeof p == "string" ? (_ = O[p], M = p, p = _) : M = "", b = T[l], b != null && (a && (p = t.Closure_forwardCallTo(M, p, y, $)), e[b] = p), l === q && (s = p);
701
717
  return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
702
718
  },
@@ -1067,7 +1083,7 @@ function _r() {
1067
1083
  i._input = e, i._pattern = n, i.__js_helper$_index = a, i.__js_helper$_current = null;
1068
1084
  },
1069
1085
  throwLateFieldADI(r) {
1070
- return t.throwExpression(new t.LateError("Field '" + r + "' has been assigned during initialization."));
1086
+ return t.throwExpression(t.LateError$fieldADI(r));
1071
1087
  },
1072
1088
  throwUnnamedLateFieldNI() {
1073
1089
  return t.throwExpression(t.LateError$fieldNI(""));
@@ -1114,6 +1130,8 @@ function _r() {
1114
1130
  },
1115
1131
  NativeTypedArrayOfInt: function() {
1116
1132
  },
1133
+ NativeInt8List: function() {
1134
+ },
1117
1135
  NativeUint16List: function() {
1118
1136
  },
1119
1137
  NativeUint32List: function() {
@@ -1143,7 +1161,7 @@ function _r() {
1143
1161
  return t._Universe_eval(R.typeUniverse, r, !1);
1144
1162
  },
1145
1163
  _substitute(r, e, n, a) {
1146
- var i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W = e._kind;
1164
+ var i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W = e._kind;
1147
1165
  switch (W) {
1148
1166
  case 5:
1149
1167
  case 1:
@@ -1166,7 +1184,7 @@ function _r() {
1166
1184
  case 13:
1167
1185
  return h = e._rest, a += h.length, T = t._substituteArray(r, h, n, a), _ = e._primary, M = t._substitute(r, _, n, a), T === h && M === _ ? e : t._Universe__lookupGenericFunctionRti(r, M, T, !0);
1168
1186
  case 14:
1169
- return C = e._primary, C < a || (F = n[C - a], F == null) ? e : F;
1187
+ return L = e._primary, L < a || (I = n[L - a], I == null) ? e : I;
1170
1188
  default:
1171
1189
  throw t.wrapException(t.AssertionError$("Attempted to substitute unexpected RTI kind " + W));
1172
1190
  }
@@ -1426,7 +1444,7 @@ function _r() {
1426
1444
  return s + "})";
1427
1445
  },
1428
1446
  _functionRtiToString(r, e, n) {
1429
- var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v = ", ";
1447
+ var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v = ", ";
1430
1448
  if (n != null) {
1431
1449
  for (a = n.length, e == null ? (e = t._setArrayType([], d.JSArray_String), i = null) : i = e.length, s = e.length, l = a; l > 0; --l)
1432
1450
  e.push("T" + (s + l));
@@ -1435,19 +1453,19 @@ function _r() {
1435
1453
  M += ">";
1436
1454
  } else
1437
1455
  M = "", i = null;
1438
- for (p = r._primary, $ = r._rest, q = $._requiredPositional, h = q.length, T = $._optionalPositional, C = T.length, F = $._named, W = F.length, I = t._rtiToString(p, e), w = "", N = "", l = 0; l < h; ++l, N = v)
1456
+ for (p = r._primary, $ = r._rest, q = $._requiredPositional, h = q.length, T = $._optionalPositional, L = T.length, I = $._named, W = I.length, F = t._rtiToString(p, e), w = "", N = "", l = 0; l < h; ++l, N = v)
1439
1457
  w += N + t._rtiToString(q[l], e);
1440
- if (C > 0) {
1441
- for (w += N + "[", N = "", l = 0; l < C; ++l, N = v)
1458
+ if (L > 0) {
1459
+ for (w += N + "[", N = "", l = 0; l < L; ++l, N = v)
1442
1460
  w += N + t._rtiToString(T[l], e);
1443
1461
  w += "]";
1444
1462
  }
1445
1463
  if (W > 0) {
1446
1464
  for (w += N + "{", N = "", l = 0; l < W; l += 3, N = v)
1447
- w += N, F[l + 1] && (w += "required "), w += t._rtiToString(F[l + 2], e) + " " + F[l];
1465
+ w += N, I[l + 1] && (w += "required "), w += t._rtiToString(I[l + 2], e) + " " + I[l];
1448
1466
  w += "}";
1449
1467
  }
1450
- return i != null && (e.toString, e.length = i), M + "(" + w + ") => " + I;
1468
+ return i != null && (e.toString, e.length = i), M + "(" + w + ") => " + F;
1451
1469
  },
1452
1470
  _rtiToString(r, e) {
1453
1471
  var n, a, i, s, l, p, _ = r._kind;
@@ -1805,7 +1823,7 @@ function _r() {
1805
1823
  return _ === 12 ? e === d.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, a, i) : l === 9 ? _ !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, a, i) : (s = l === 11, s && a === d.Record ? !0 : s && _ === 11 ? t._isRecordSubtype(r, e, n, a, i) : !1);
1806
1824
  },
1807
1825
  _isFunctionSubtype(r, e, n, a, i) {
1808
- var s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P, V;
1826
+ var s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P, V;
1809
1827
  if (!t._isSubtype(r, e._primary, n, a._primary, i) || (s = e._rest, l = a._rest, p = s._requiredPositional, _ = l._requiredPositional, M = p.length, b = _.length, M > b) || (O = b - M, D = s._optionalPositional, y = l._optionalPositional, $ = D.length, q = y.length, M + $ < b + q))
1810
1828
  return !1;
1811
1829
  for (h = 0; h < M; ++h)
@@ -1817,21 +1835,21 @@ function _r() {
1817
1835
  for (h = 0; h < q; ++h)
1818
1836
  if (T = D[O + h], !t._isSubtype(r, y[h], i, T, n))
1819
1837
  return !1;
1820
- for (C = s._named, F = l._named, W = C.length, I = F.length, w = 0, N = 0; N < I; N += 3)
1821
- for (v = F[N]; ; ) {
1822
- if (w >= W || (P = C[w], w += 3, v < P))
1838
+ for (L = s._named, I = l._named, W = L.length, F = I.length, w = 0, N = 0; N < F; N += 3)
1839
+ for (v = I[N]; ; ) {
1840
+ if (w >= W || (P = L[w], w += 3, v < P))
1823
1841
  return !1;
1824
- if (V = C[w - 2], P < v) {
1842
+ if (V = L[w - 2], P < v) {
1825
1843
  if (V)
1826
1844
  return !1;
1827
1845
  continue;
1828
1846
  }
1829
- if (T = F[N + 1], V && !T || (T = C[w - 1], !t._isSubtype(r, F[N + 2], i, T, n)))
1847
+ if (T = I[N + 1], V && !T || (T = L[w - 1], !t._isSubtype(r, I[N + 2], i, T, n)))
1830
1848
  return !1;
1831
1849
  break;
1832
1850
  }
1833
1851
  for (; w < W; ) {
1834
- if (C[w + 1])
1852
+ if (L[w + 1])
1835
1853
  return !1;
1836
1854
  w += 3;
1837
1855
  }
@@ -2198,10 +2216,10 @@ function _r() {
2198
2216
  identityHashCode(r) {
2199
2217
  return t.objectHashCode(r);
2200
2218
  },
2201
- int_parse(r) {
2202
- var e = t.Primitives_parseInt(r, null);
2203
- if (e != null)
2204
- return e;
2219
+ int_parse(r, e) {
2220
+ var n = t.Primitives_parseInt(r, e);
2221
+ if (n != null)
2222
+ return n;
2205
2223
  throw t.wrapException(t.FormatException$(r, null, null));
2206
2224
  },
2207
2225
  double_parse(r) {
@@ -2291,13 +2309,13 @@ function _r() {
2291
2309
  return new t.DateTime(Date.now(), !1);
2292
2310
  },
2293
2311
  DateTime_parse(r) {
2294
- var e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T = m.$get$DateTime__parseFormat().firstMatch$1(r);
2295
- if (T != null) {
2296
- if (e = new t.DateTime_parse_parseIntOrZero(), n = T._match, a = n[1], a.toString, i = t.int_parse(a), a = n[2], a.toString, s = t.int_parse(a), a = n[3], a.toString, l = t.int_parse(a), p = e.call$1(n[4]), _ = e.call$1(n[5]), M = e.call$1(n[6]), b = new t.DateTime_parse_parseMilliAndMicroseconds().call$1(n[7]), O = u.JSInt_methods._tdivFast$1(b, 1e3), n[8] != null ? (D = n[9], D != null && (y = D === "-" ? -1 : 1, a = n[10], a.toString, $ = t.int_parse(a), _ -= y * (e.call$1(n[11]) + 60 * $)), q = !0) : q = !1, h = t.Primitives_valueFromDecomposedDate(i, s, l, p, _, M, O + u.JSNumber_methods.round$0(b % 1e3 / 1e3), q), h == null)
2297
- throw t.wrapException(t.FormatException$("Time out of range", r, null));
2312
+ var e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T = null, L = m.$get$DateTime__parseFormat().firstMatch$1(r);
2313
+ if (L != null) {
2314
+ if (e = new t.DateTime_parse_parseIntOrZero(), n = L._match, a = n[1], a.toString, i = t.int_parse(a, T), a = n[2], a.toString, s = t.int_parse(a, T), a = n[3], a.toString, l = t.int_parse(a, T), p = e.call$1(n[4]), _ = e.call$1(n[5]), M = e.call$1(n[6]), b = new t.DateTime_parse_parseMilliAndMicroseconds().call$1(n[7]), O = u.JSInt_methods._tdivFast$1(b, 1e3), n[8] != null ? (D = n[9], D != null && (y = D === "-" ? -1 : 1, a = n[10], a.toString, $ = t.int_parse(a, T), _ -= y * (e.call$1(n[11]) + 60 * $)), q = !0) : q = !1, h = t.Primitives_valueFromDecomposedDate(i, s, l, p, _, M, O + u.JSNumber_methods.round$0(b % 1e3 / 1e3), q), h == null)
2315
+ throw t.wrapException(t.FormatException$("Time out of range", r, T));
2298
2316
  return t.DateTime$_withValue(h, q);
2299
2317
  } else
2300
- throw t.wrapException(t.FormatException$("Invalid date format", r, null));
2318
+ throw t.wrapException(t.FormatException$("Invalid date format", r, T));
2301
2319
  },
2302
2320
  DateTime$_withValue(r, e) {
2303
2321
  var n;
@@ -2805,30 +2823,30 @@ function _r() {
2805
2823
  `;
2806
2824
  },
2807
2825
  Materialize_getMergeSql(r, e, n, a, i, s, l) {
2808
- var p, _, M, b, O, D, y, $, q, h, T, C, F = "') AND TIMESTAMP('", W = "and target_table.restaurantId in UNNEST(@restaurantIds)", I = r.source;
2809
- return I.type === u.SOURCE_TYPE_2 ? (p = I.uniqueKey, p.toString, _ = o.getInterceptor$asx(p), M = _.get$length(p) === 1 ? "CAST(" + t.S(_.get$first(p)) + " AS STRING)" : "CONCAT(" + _.map$1$1(p, new t.Materialize_getMergeSql_closure(), d.String).join$1(0, ", '_', ") + ")", b = I.timeColumn, b.toString, O = `WITH docs as
2826
+ var p, _, M, b, O, D, y, $, q, h, T, L, I = "') AND TIMESTAMP('", W = "and target_table.restaurantId in UNNEST(@restaurantIds)", F = r.source;
2827
+ return F.type === u.SOURCE_TYPE_2 ? (p = F.uniqueKey, p.toString, _ = o.getInterceptor$asx(p), M = _.get$length(p) === 1 ? "CAST(" + t.S(_.get$first(p)) + " AS STRING)" : "CONCAT(" + _.map$1$1(p, new t.Materialize_getMergeSql_closure(), d.String).join$1(0, ", '_', ") + ")", b = F.timeColumn, b.toString, O = `WITH docs as
2810
2828
  (
2811
- select * from (SELECT TO_JSON_STRING(src) AS data, ` + M + " AS id, '' AS db_name, " + b + " AS publish_time, false AS deleted, ROW_NUMBER() OVER (PARTITION BY " + _.join$1(p, ",") + " ORDER BY " + b + " DESC) as rn \n FROM `" + r.get$fullRawTableName() + "` AS src\n WHERE " + b + " between TIMESTAMP('" + a + F + n + `')) WHERE rn=1
2829
+ select * from (SELECT TO_JSON_STRING(src) AS data, ` + M + " AS id, '' AS db_name, " + b + " AS publish_time, false AS deleted, ROW_NUMBER() OVER (PARTITION BY " + _.join$1(p, ",") + " ORDER BY " + b + " DESC) as rn \n FROM `" + r.get$fullRawTableName() + "` AS src\n WHERE " + b + " between TIMESTAMP('" + a + I + n + `')) WHERE rn=1
2812
2830
  ),`) : (D = s.source.type === u.SOURCE_TYPE_0 ? 'IF(db_name="companyDB","",db_name)' : "db_name", O = `WITH docs as
2813
2831
  (
2814
- select * from (SELECT data, ` + D + " db_name, publish_time, deleted, id, ROW_NUMBER() OVER (PARTITION BY id," + D + " ORDER BY publish_time DESC) as rn \n FROM `" + r.get$fullRawTableName() + "`\n WHERE publish_time between TIMESTAMP('" + a + F + n + `')) WHERE rn=1 AND deleted=false
2832
+ select * from (SELECT data, ` + D + " db_name, publish_time, deleted, id, ROW_NUMBER() OVER (PARTITION BY id," + D + " ORDER BY publish_time DESC) as rn \n FROM `" + r.get$fullRawTableName() + "`\n WHERE publish_time between TIMESTAMP('" + a + I + n + `')) WHERE rn=1 AND deleted=false
2815
2833
  ),`), p = r.getTransformedTableQuery$1$getParentDocs(!1), _ = r.fields, b = o.getInterceptor$ax(_), y = b.where$1(_, new t.Materialize_getMergeSql_closure0()), y = new t.MappedIterable(y, new t.Materialize_getMergeSql_closure1(r), y.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2816
- `), I = I.field, I = I != null ? "CROSS JOIN UNNEST(" + I + ") AS " + r.name._name : "", $ = O + `
2834
+ `), F = F.field, F = F != null ? "CROSS JOIN UNNEST(" + F + ") AS " + r.name._name : "", $ = O + `
2817
2835
  raw_table AS (
2818
2836
  ` + p + `
2819
2837
  )
2820
2838
  SELECT
2821
2839
  ` + y + `
2822
- FROM raw_table ` + I + `
2823
- `, I = b.where$1(_, new t.Materialize_getMergeSql_closure2()), q = new t.MappedIterable(I, new t.Materialize_getMergeSql_closure3(), I.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ","), I = o.getInterceptor$asx(l), I.get$isEmpty(l) ? h = "" : r.mergeFilterType === u.MERGE_FILTER_TYPE_1 ? (T = I.map$1$1(l, t.core_DateTime_parse$closure(), d.DateTime).toList$0(0), u.JSArray_methods.sort$0(T), h = "and target_table.createdAt >= TIMESTAMP('" + u.JSArray_methods.get$first(T).toUtc$0().toIso8601String$0() + "') and target_table.createdAt < TIMESTAMP('" + u.JSArray_methods.get$last(T).toUtc$0().add$1(0, u.Duration_86400000000).toIso8601String$0() + "')") : h = "and TIMESTAMP_TRUNC(target_table.createdAt, DAY, 'UTC') in UNNEST(@updateTimestamps)", I = r.get$fullMaterializedTableName(), p = o.getInterceptor$asx(i), y = p.get$isNotEmpty(i) ? W : "", _ = b.where$1(_, new t.Materialize_getMergeSql_closure4()), _ = new t.MappedIterable(_, new t.Materialize_getMergeSql_closure5(), _.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2824
- `), o.get$isNotEmpty$asx(e) ? (b = r.get$fullMaterializedTableName(), p = p.get$isNotEmpty(i) ? W : "", C = "DELETE FROM `" + b + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + $ + `) source_table
2840
+ FROM raw_table ` + F + `
2841
+ `, F = b.where$1(_, new t.Materialize_getMergeSql_closure2()), q = new t.MappedIterable(F, new t.Materialize_getMergeSql_closure3(), F.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ","), F = o.getInterceptor$asx(l), F.get$isEmpty(l) ? h = "" : r.mergeFilterType === u.MERGE_FILTER_TYPE_1 ? (T = F.map$1$1(l, t.core_DateTime_parse$closure(), d.DateTime).toList$0(0), u.JSArray_methods.sort$0(T), h = "and target_table.createdAt >= TIMESTAMP('" + u.JSArray_methods.get$first(T).toUtc$0().toIso8601String$0() + "') and target_table.createdAt < TIMESTAMP('" + u.JSArray_methods.get$last(T).toUtc$0().add$1(0, u.Duration_86400000000).toIso8601String$0() + "')") : h = "and TIMESTAMP_TRUNC(target_table.createdAt, DAY, 'UTC') in UNNEST(@updateTimestamps)", F = r.get$fullMaterializedTableName(), p = o.getInterceptor$asx(i), y = p.get$isNotEmpty(i) ? W : "", _ = b.where$1(_, new t.Materialize_getMergeSql_closure4()), _ = new t.MappedIterable(_, new t.Materialize_getMergeSql_closure5(), _.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2842
+ `), o.get$isNotEmpty$asx(e) ? (b = r.get$fullMaterializedTableName(), p = p.get$isNotEmpty(i) ? W : "", L = "DELETE FROM `" + b + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + $ + `) source_table
2825
2843
  WHERE source_table.id = target_table.id
2826
2844
  and source_table.docId = target_table.docId
2827
2845
  )
2828
2846
  ` + h + `
2829
2847
  ` + p + `
2830
2848
  and target_table.docId in UNNEST(@docIds)
2831
- `) : C = "", "MERGE INTO `" + I + "` AS target_table USING (\n" + $ + `
2849
+ `) : L = "", "MERGE INTO `" + F + "` AS target_table USING (\n" + $ + `
2832
2850
  ) AS source_table ON
2833
2851
  target_table.id = source_table.id
2834
2852
  and target_table.docId = source_table.docId
@@ -2842,11 +2860,11 @@ and target_table.docId in UNNEST(@docIds)
2842
2860
  when not matched by target
2843
2861
  then insert (` + q + ") values (" + q + `);
2844
2862
 
2845
- ` + C + `
2863
+ ` + L + `
2846
2864
  `;
2847
2865
  },
2848
2866
  Materialize_getMaterializeInfoSql(r, e, n, a, i) {
2849
- var s, l, p, _, M, b, O, D, y, $, q, h = '") AND TIMESTAMP("', T = r.source, C = T.field, F = C != null;
2867
+ var s, l, p, _, M, b, O, D, y, $, q, h = '") AND TIMESTAMP("', T = r.source, L = T.field, I = L != null;
2850
2868
  return T.type === u.SOURCE_TYPE_2 ? (s = T.uniqueKey, s.toString, l = o.getInterceptor$asx(s), p = l.get$length(s) === 1 ? "CAST(" + t.S(l.get$first(s)) + " AS STRING)" : "CONCAT(" + l.map$1$1(s, new t.Materialize_getMaterializeInfoSql_closure(), d.String).join$1(0, ", '_', ") + ")", _ = T.timeColumn, _.toString, M = l.join$1(s, ","), b = T.dateColumns, b == null && (b = t._setArrayType([], d.JSArray_String)), O = _ + ' between TIMESTAMP("' + a + h + e + '")', T = o.getInterceptor$asx(b), D = T.get$isNotEmpty(b) ? "SELECT * REPLACE(" + T.map$1$1(b, new t.Materialize_getMaterializeInfoSql_closure0(i), d.String).join$1(0, ", ") + ") FROM `" + r.get$fullRawTableName() + "` WHERE " + O : "SELECT * FROM `" + r.get$fullRawTableName() + "` WHERE " + O, y = `docs AS (
2851
2869
  SELECT * FROM (
2852
2870
  SELECT TO_JSON_STRING(src) AS data, ` + p + " AS id, '' AS db_name, " + _ + ` AS publish_time, false AS deleted,
@@ -2854,14 +2872,14 @@ and target_table.docId in UNNEST(@docIds)
2854
2872
  FROM (` + D + `) AS src
2855
2873
  ) WHERE rn=1
2856
2874
  )`) : y = "docs AS (\n SELECT data, db_name, publish_time, deleted, id FROM `" + r.get$fullRawTableName() + '`\n WHERE publish_time between TIMESTAMP("' + a + h + e + `")
2857
- )`, $ = F ? "info_row" : r.name._name, F ? (T = r.name._name, q = "parent_table CROSS JOIN UNNEST(ARRAY_CONCAT([parent_table." + T + "], IFNULL(JSON_QUERY_ARRAY(parent_table." + T + ", '$." + C + "'), ARRAY<JSON>[]))) AS info_row") : q = "parent_table", T = r.getTransformedTableQuery$1$getParentDocs(!0), C = n ? "CAST(JSON_VALUE(" + $ + ", '$._restaurantId') AS STRING) AS restaurantId," : "", s = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
2875
+ )`, $ = I ? "info_row" : r.name._name, I ? (T = r.name._name, q = "parent_table CROSS JOIN UNNEST(ARRAY_CONCAT([parent_table." + T + "], IFNULL(JSON_QUERY_ARRAY(parent_table." + T + ", '$." + L + "'), ARRAY<JSON>[]))) AS info_row") : q = "parent_table", T = r.getTransformedTableQuery$1$getParentDocs(!0), L = n ? "CAST(JSON_VALUE(" + $ + ", '$._restaurantId') AS STRING) AS restaurantId," : "", s = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
2858
2876
  ` + y + `,
2859
2877
  parent_table AS (
2860
2878
  ` + T + `
2861
2879
  ),
2862
2880
  formatted_table as (SELECT
2863
2881
  CAST(JSON_VALUE(` + $ + `, '$._docId') AS STRING) AS docId,
2864
- ` + C + `
2882
+ ` + L + `
2865
2883
  CAST(JSON_VALUE(` + $ + `, '$._createdAt') AS TIMESTAMP) AS createdAt,
2866
2884
  CAST(JSON_VALUE(` + $ + `, '$._deleted') AS BOOL) AS deleted
2867
2885
  FROM ` + q + `
@@ -2980,16 +2998,16 @@ select
2980
2998
  Index$(r, e, n, a) {
2981
2999
  return new t.Index(r, e, a, n);
2982
3000
  },
2983
- Schema$(r, e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0) {
2984
- return new t.Schema(N, F, p, C, L0, z0, h, T, y, q, O, V, a0, P, D0, I, W, v, M0, s, b, _, D, n, e, a, w, l, i, M, q0, r, $, i0);
3001
+ Schema$(r, e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0) {
3002
+ return new t.Schema(N, I, p, L, L0, z0, h, T, y, q, O, V, a0, P, D0, F, W, v, M0, s, b, _, D, n, e, a, w, l, i, M, q0, r, $, i0);
2985
3003
  },
2986
- Schema_Schema$build(r, e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0) {
2987
- var C0 = p.call$1(N), Z = C.call$1(N);
2988
- return t.Schema$(r, e, n, a, i, s, l, C0, _, M, b, O ?? 300, D, y, $, q, h, T, Z, F, W, I, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0);
3004
+ Schema_Schema$build(r, e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0) {
3005
+ var C0 = p.call$1(N), Z = L.call$1(N);
3006
+ return t.Schema$(r, e, n, a, i, s, l, C0, _, M, b, O ?? 300, D, y, $, q, h, T, Z, I, W, F, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0);
2989
3007
  },
2990
3008
  Schema_fromJson(r) {
2991
- var e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P, V, a0, i0 = null, M0 = "canonical", z0 = "hierarchy", q0 = "readPiece", D0 = d.List_dynamic, L0 = o.map$1$1$ax(D0._as(r.$index(0, "fields")), new t.Schema_fromJson_closure(), d.Field).toList$0(0), C0 = r.$index(0, "label"), Z = t.EnumByName_byName(u.List_8aB, r.$index(0, "name")), x0 = o.map$1$1$ax(D0._as(r.$index(0, "joins")), new t.Schema_fromJson_closure0(), d.Join).toList$0(0), N0 = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), h0 = r.$index(0, "source"), N1 = t.EnumByName_byName(u.List_ytA, h0.$index(0, "type")), w1 = h0.$index(0, "table"), x1 = h0.$index(0, "field"), v1 = h0.$index(0, "dataset"), F0 = d.nullable_List_dynamic, c1 = F0._as(h0.$index(0, "uniqueKey"));
2992
- return c1 = c1 == null ? i0 : o.cast$1$0$ax(c1, d.String), e = h0.$index(0, "timeColumn"), h0 = F0._as(h0.$index(0, "dateColumns")), h0 = h0 == null ? i0 : o.cast$1$0$ax(h0, d.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "rawTopicName"), i = r.$index(0, "postgresqlDynamicRawTable"), s = r.$index(0, "sqliteDynamicRawTable"), l = r.$index(0, "materializedTableName"), p = r.$index(0, "materializedPostgresqlTableName"), _ = r.$index(0, "isJoinOnly"), M = r.$index(0, "isMaterializeOnly"), b = r.$index(0, "isContinuousUpdate"), O = r.$index(0, "interval"), D = r.$index(0, "partition"), y = r.$index(0, "requirePartitionFilter"), y == null && (y = !0), $ = F0._as(r.$index(0, "clusters")), $ = $ == null ? i0 : o.cast$1$0$ax($, d.String), $ == null && ($ = t._setArrayType([], d.JSArray_String)), q = F0._as(r.$index(0, "indexes")), q = q == null ? i0 : o.map$1$1$ax(q, new t.Schema_fromJson_closure1(), d.Index).toList$0(0), q == null && (q = t._setArrayType([], d.JSArray_Index)), h = F0._as(r.$index(0, "filters")), h = h == null ? i0 : o.map$1$1$ax(h, new t.Schema_fromJson_closure2(), d.QueryRequestFilter).toList$0(0), h == null && (h = t._setArrayType([], d.JSArray_QueryRequestFilter)), T = r.$index(0, "isGlobal"), T == null && (T = !1), C = r.$index(0, "isAiHidden"), C == null && (C = !1), F0 = F0._as(r.$index(0, "aiKeywords")), F0 = F0 == null ? i0 : o.cast$1$0$ax(F0, d.String), F0 == null && (F0 = t._setArrayType([], d.JSArray_String)), F = r.$index(0, "aiCategory"), W = r.$index(0, "aiPriority"), W == null && (W = 3), I = r.$index(0, "mergeFilterType"), I = t.EnumByName_byName(u.List_EfK, I ?? "dates"), w = r.$index(0, "description"), N = r.$index(0, M0) == null ? i0 : t.Canonical_fromJson(r.$index(0, M0)), r.$index(0, z0) == null ? v = i0 : (v = r.$index(0, z0), v = new t.Hierarchy(t._asString(v.$index(0, "depth")), o.toString$0$(v.$index(0, "root")), t._asStringQ(v.$index(0, "parent")), t._asStringQ(v.$index(0, "rootKey")))), D0 = r.$index(0, "splits") == null ? u.List_empty1 : o.map$1$1$ax(D0._as(r.$index(0, "splits")), new t.Schema_fromJson_closure3(), d.Split).toList$0(0), P = r.$index(0, "activityAnchor"), P == null && (P = !1), V = r.$index(0, "isDeprecated"), V == null && (V = !1), r.$index(0, q0) == null ? a0 = i0 : (a0 = r.$index(0, q0), a0 = new t.ReadPiece(t._asInt(a0.$index(0, "outlets")), t._asInt(a0.$index(0, "days")))), t.Schema$(P, F, F0, W, N, $, w, L0, h, v, q, O, C, b, V, T, _, M, x0, C0, p, l, I, Z, D, i, n, a, a0, y, new t.Source(N1, w1, x1, v1, c1, e, h0), D0, s, N0);
3009
+ var e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P, V, a0, i0 = null, M0 = "canonical", z0 = "hierarchy", q0 = "readPiece", D0 = d.List_dynamic, L0 = o.map$1$1$ax(D0._as(r.$index(0, "fields")), new t.Schema_fromJson_closure(), d.Field).toList$0(0), C0 = r.$index(0, "label"), Z = t.EnumByName_byName(u.List_8aB, r.$index(0, "name")), x0 = o.map$1$1$ax(D0._as(r.$index(0, "joins")), new t.Schema_fromJson_closure0(), d.Join).toList$0(0), N0 = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), h0 = r.$index(0, "source"), N1 = t.EnumByName_byName(u.List_ytA, h0.$index(0, "type")), w1 = h0.$index(0, "table"), x1 = h0.$index(0, "field"), v1 = h0.$index(0, "dataset"), I0 = d.nullable_List_dynamic, c1 = I0._as(h0.$index(0, "uniqueKey"));
3010
+ return c1 = c1 == null ? i0 : o.cast$1$0$ax(c1, d.String), e = h0.$index(0, "timeColumn"), h0 = I0._as(h0.$index(0, "dateColumns")), h0 = h0 == null ? i0 : o.cast$1$0$ax(h0, d.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "rawTopicName"), i = r.$index(0, "postgresqlDynamicRawTable"), s = r.$index(0, "sqliteDynamicRawTable"), l = r.$index(0, "materializedTableName"), p = r.$index(0, "materializedPostgresqlTableName"), _ = r.$index(0, "isJoinOnly"), M = r.$index(0, "isMaterializeOnly"), b = r.$index(0, "isContinuousUpdate"), O = r.$index(0, "interval"), D = r.$index(0, "partition"), y = r.$index(0, "requirePartitionFilter"), y == null && (y = !0), $ = I0._as(r.$index(0, "clusters")), $ = $ == null ? i0 : o.cast$1$0$ax($, d.String), $ == null && ($ = t._setArrayType([], d.JSArray_String)), q = I0._as(r.$index(0, "indexes")), q = q == null ? i0 : o.map$1$1$ax(q, new t.Schema_fromJson_closure1(), d.Index).toList$0(0), q == null && (q = t._setArrayType([], d.JSArray_Index)), h = I0._as(r.$index(0, "filters")), h = h == null ? i0 : o.map$1$1$ax(h, new t.Schema_fromJson_closure2(), d.QueryRequestFilter).toList$0(0), h == null && (h = t._setArrayType([], d.JSArray_QueryRequestFilter)), T = r.$index(0, "isGlobal"), T == null && (T = !1), L = r.$index(0, "isAiHidden"), L == null && (L = !1), I0 = I0._as(r.$index(0, "aiKeywords")), I0 = I0 == null ? i0 : o.cast$1$0$ax(I0, d.String), I0 == null && (I0 = t._setArrayType([], d.JSArray_String)), I = r.$index(0, "aiCategory"), W = r.$index(0, "aiPriority"), W == null && (W = 3), F = r.$index(0, "mergeFilterType"), F = t.EnumByName_byName(u.List_EfK, F ?? "dates"), w = r.$index(0, "description"), N = r.$index(0, M0) == null ? i0 : t.Canonical_fromJson(r.$index(0, M0)), r.$index(0, z0) == null ? v = i0 : (v = r.$index(0, z0), v = new t.Hierarchy(t._asString(v.$index(0, "depth")), o.toString$0$(v.$index(0, "root")), t._asStringQ(v.$index(0, "parent")), t._asStringQ(v.$index(0, "rootKey")))), D0 = r.$index(0, "splits") == null ? u.List_empty1 : o.map$1$1$ax(D0._as(r.$index(0, "splits")), new t.Schema_fromJson_closure3(), d.Split).toList$0(0), P = r.$index(0, "activityAnchor"), P == null && (P = !1), V = r.$index(0, "isDeprecated"), V == null && (V = !1), r.$index(0, q0) == null ? a0 = i0 : (a0 = r.$index(0, q0), a0 = new t.ReadPiece(t._asInt(a0.$index(0, "outlets")), t._asInt(a0.$index(0, "days")))), t.Schema$(P, I, I0, W, N, $, w, L0, h, v, q, O, L, b, V, T, _, M, x0, C0, p, l, F, Z, D, i, n, a, a0, y, new t.Source(N1, w1, x1, v1, c1, e, h0), D0, s, N0);
2993
3011
  },
2994
3012
  Field_Field$numeric(r, e, n, a, i, s, l, p, _, M, b) {
2995
3013
  return new t._NumericField(l, p, u.DATA_TYPE_3, e, s, _, n, b, i, !1, r, M, a);
@@ -3004,16 +3022,16 @@ select
3004
3022
  return new t._BoolField(l, p, u.DATA_TYPE_2, e, s, _, n, b, i, !1, r, M, a);
3005
3023
  },
3006
3024
  Field_fromJson(r) {
3007
- var e, n, a, i, s, l, p, _, M, b, O = "name", D = "schemaName", y = "pointTo", $ = "formula", q = "label", h = "hidden", T = "isAiHidden", C = null, F = "description", W = "role", I = "identityOf";
3025
+ var e, n, a, i, s, l, p, _, M, b, O = "name", D = "schemaName", y = "pointTo", $ = "formula", q = "label", h = "hidden", T = "isAiHidden", L = null, I = "description", W = "role", F = "identityOf";
3008
3026
  switch (t.EnumByName_byName(u.List_k6a, r.$index(0, "type")).index) {
3009
3027
  case 0:
3010
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, "isCompareIgnoreSpaces"), _ == null && (_ = !1), M = r.$index(0, F), b = r.$index(0, W) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$string(M, i, l, r.$index(0, I), p, _, s, e, a, C, b, n);
3028
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, "isCompareIgnoreSpaces"), _ == null && (_ = !1), M = r.$index(0, I), b = r.$index(0, W) == null ? L : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$string(M, i, l, r.$index(0, F), p, _, s, e, a, L, b, n);
3011
3029
  case 2:
3012
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, F), M = r.$index(0, W) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$bool(_, i, l, r.$index(0, I), p, s, e, a, C, M, n);
3030
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, I), M = r.$index(0, W) == null ? L : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$bool(_, i, l, r.$index(0, F), p, s, e, a, L, M, n);
3013
3031
  case 3:
3014
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, F), M = r.$index(0, W) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$numeric(_, i, l, r.$index(0, I), p, s, e, a, C, M, n);
3032
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, I), M = r.$index(0, W) == null ? L : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$numeric(_, i, l, r.$index(0, F), p, s, e, a, L, M, n);
3015
3033
  case 1:
3016
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, F), M = r.$index(0, W) == null ? C : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$timestamp(_, i, l, r.$index(0, I), p, s, e, a, C, M, n);
3034
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_8aB, r.$index(0, D)), a = r.$index(0, y), i = r.$index(0, $), s = r.$index(0, q), l = r.$index(0, h), p = r.$index(0, T), _ = r.$index(0, I), M = r.$index(0, W) == null ? L : t.EnumByName_byName(u.List_Moq, r.$index(0, W)), t.Field_Field$timestamp(_, i, l, r.$index(0, F), p, s, e, a, L, M, n);
3017
3035
  }
3018
3036
  },
3019
3037
  Join_fromJson(r) {
@@ -3136,9 +3154,9 @@ select
3136
3154
  var s = this;
3137
3155
  s.column = e, s.customName = n, s.indexMethod = a, s.include = i;
3138
3156
  },
3139
- Schema: function(e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0, C0) {
3157
+ Schema: function(e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0, C0) {
3140
3158
  var Z = this;
3141
- Z.name = e, Z.label = n, Z.fields = a, Z.joins = i, Z.topLevelFilters = s, Z.source = l, Z.isJoinOnly = p, Z.isMaterializeOnly = _, Z.isContinuousUpdate = M, Z.isGlobal = b, Z.interval = O, Z.rawTableName = D, Z.rawTopicName = y, Z.postgresqlDynamicRawTable = $, Z.sqliteDynamicRawTable = q, Z.materializedTableName = h, Z.materializedPostgresqlTableName = T, Z.partition = C, Z.requirePartitionFilter = F, Z.clusters = W, Z.indexes = I, Z._materializeTablePrefix = Z._rawTablePrefix = "", Z.filters = w, Z.isAiHidden = N, Z.aiKeywords = v, Z.aiCategory = P, Z.aiPriority = V, Z.mergeFilterType = a0, Z.description = i0, Z.canonical = M0, Z.hierarchy = z0, Z.splits = q0, Z.activityAnchor = D0, Z.isDeprecated = L0, Z.readPiece = C0;
3159
+ Z.name = e, Z.label = n, Z.fields = a, Z.joins = i, Z.topLevelFilters = s, Z.source = l, Z.isJoinOnly = p, Z.isMaterializeOnly = _, Z.isContinuousUpdate = M, Z.isGlobal = b, Z.interval = O, Z.rawTableName = D, Z.rawTopicName = y, Z.postgresqlDynamicRawTable = $, Z.sqliteDynamicRawTable = q, Z.materializedTableName = h, Z.materializedPostgresqlTableName = T, Z.partition = L, Z.requirePartitionFilter = I, Z.clusters = W, Z.indexes = F, Z._materializeTablePrefix = Z._rawTablePrefix = "", Z.filters = w, Z.isAiHidden = N, Z.aiKeywords = v, Z.aiCategory = P, Z.aiPriority = V, Z.mergeFilterType = a0, Z.description = i0, Z.canonical = M0, Z.hierarchy = z0, Z.splits = q0, Z.activityAnchor = D0, Z.isDeprecated = L0, Z.readPiece = C0;
3142
3160
  },
3143
3161
  Schema_visualizationSchema_closure: function() {
3144
3162
  },
@@ -4181,9 +4199,9 @@ select
4181
4199
  DataSourceRowColumnConfig_columnIds_closure1: function(e) {
4182
4200
  this.$this = e;
4183
4201
  },
4184
- TableDatasourceConfigModel: function(e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W) {
4185
- var I = this;
4186
- I.columnsWidth = e, I.isDrillable = n, I.showGrandTotal = a, I.rollup = i, I.rollupPosition = s, I.rowsPerPage = l, I.isBlend = p, I._table_datasource_config_model$_drillDimension = _, I._rowIds = M, I._columnIds = b, I._table_datasource_config_model$_joinDatasources = O, I.schemaNames = D, I.dimensions = y, I.metrics = $, I.filters = q, I.sorts = h, I.limit = T, I.isComparable = C, I.periodType = F, I.timezone = W;
4202
+ TableDatasourceConfigModel: function(e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W) {
4203
+ var F = this;
4204
+ F.columnsWidth = e, F.isDrillable = n, F.showGrandTotal = a, F.rollup = i, F.rollupPosition = s, F.rowsPerPage = l, F.isBlend = p, F._table_datasource_config_model$_drillDimension = _, F._rowIds = M, F._columnIds = b, F._table_datasource_config_model$_joinDatasources = O, F.schemaNames = D, F.dimensions = y, F.metrics = $, F.filters = q, F.sorts = h, F.limit = T, F.isComparable = L, F.periodType = I, F.timezone = W;
4187
4205
  },
4188
4206
  TableDatasourceConfigModel_drilledDimensions_closure: function(e) {
4189
4207
  this.$this = e;
@@ -4754,16 +4772,16 @@ select
4754
4772
  }, d.Location);
4755
4773
  },
4756
4774
  _deserializeLocation(r) {
4757
- var e, n, a, i, s = t.NativeByteData_NativeByteData$view(r.buffer, r.byteOffset, r.byteLength), l = s.getUint32(0, !1), p = s.getUint32(4, !1), _ = s.getUint32(8, !1), M = s.getUint32(12, !1), b = s.getUint32(16, !1), O = s.getUint32(20, !1), D = s.getUint32(24, !1), y = s.getUint32(28, !1), $ = u.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + l, p)), q = t._setArrayType([], d.JSArray_String), h = t._setArrayType([], d.JSArray_TimeZone), T = d.JSArray_int, C = t._setArrayType([], T), F = t._setArrayType([], T), W = _ + M;
4775
+ var e, n, a, i, s = t.NativeByteData_NativeByteData$view(r.buffer, r.byteOffset, r.byteLength), l = s.getUint32(0, !1), p = s.getUint32(4, !1), _ = s.getUint32(8, !1), M = s.getUint32(12, !1), b = s.getUint32(16, !1), O = s.getUint32(20, !1), D = s.getUint32(24, !1), y = s.getUint32(28, !1), $ = u.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + l, p)), q = t._setArrayType([], d.JSArray_String), h = t._setArrayType([], d.JSArray_TimeZone), T = d.JSArray_int, L = t._setArrayType([], T), I = t._setArrayType([], T), W = _ + M;
4758
4776
  for (e = _, n = e; e < W; ++e)
4759
4777
  r[e] === 0 && (T = r.buffer, a = r.byteOffset, T = new Uint8Array(T, a + n, e - n), q.push(u.C_AsciiCodec.decode$1(T)), n = e + 1);
4760
4778
  for (n = b, e = 0; e < O; ++e, n = i)
4761
4779
  i = n + 8, h.push(new t.TimeZone(s.getInt32(n, !1) * 1e3, s.getUint8(n + 4) === 1, q[s.getUint8(n + 5)]));
4762
4780
  for (n = D, e = 0; e < y; ++e)
4763
- C.push(u.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
4781
+ L.push(u.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
4764
4782
  for (e = 0; e < y; ++e)
4765
- F.push(s.getUint8(n)), ++n;
4766
- return t.Location$($, C, F, h);
4783
+ I.push(s.getUint8(n)), ++n;
4784
+ return t.Location$($, L, I, h);
4767
4785
  }
4768
4786
  }, o = {
4769
4787
  makeDispatchRecord(r, e, n, a) {
@@ -4793,6 +4811,11 @@ select
4793
4811
  throw t.wrapException(t.ArgumentError$("Length must be a non-negative integer: " + r));
4794
4812
  return t._setArrayType(new Array(r), e._eval$1("JSArray<0>"));
4795
4813
  },
4814
+ JSArray_JSArray$allocateGrowable(r, e) {
4815
+ if (r < 0)
4816
+ throw t.wrapException(t.ArgumentError$("Length must be a non-negative integer: " + r));
4817
+ return t._setArrayType(new Array(r), e._eval$1("JSArray<0>"));
4818
+ },
4796
4819
  JSArray_JSArray$markFixed(r, e) {
4797
4820
  return o.JSArray_markFixedList(t._setArrayType(r, e._eval$1("JSArray<0>")));
4798
4821
  },
@@ -6180,6 +6203,13 @@ select
6180
6203
  },
6181
6204
  $isEfficientLengthIterable: 1,
6182
6205
  $isList: 1
6206
+ }, t.NativeInt8List.prototype = {
6207
+ $index(r, e) {
6208
+ return t._checkValidIndex(e, r, r.length), r[e];
6209
+ },
6210
+ sublist$2(r, e, n) {
6211
+ return new Int8Array(r.subarray(e, t._checkValidRange(e, n, r.length)));
6212
+ }
6183
6213
  }, t.NativeUint16List.prototype = {
6184
6214
  $index(r, e) {
6185
6215
  return t._checkValidIndex(e, r, r.length), r[e];
@@ -6923,7 +6953,7 @@ select
6923
6953
  }
6924
6954
  }, t.DateTime_parse_parseIntOrZero.prototype = {
6925
6955
  call$1(r) {
6926
- return r == null ? 0 : t.int_parse(r);
6956
+ return r == null ? 0 : t.int_parse(r, null);
6927
6957
  },
6928
6958
  $signature: 25
6929
6959
  }, t.DateTime_parse_parseMilliAndMicroseconds.prototype = {
@@ -7522,7 +7552,7 @@ Arguments: [` + _ + "]";
7522
7552
  s[l] = u.JSString_methods._codeUnitAt$1(p, l) - n + i;
7523
7553
  p = t.String_String$fromCharCodes(s, 0, null);
7524
7554
  }
7525
- return t.int_parse(p);
7555
+ return t.int_parse(p, null);
7526
7556
  },
7527
7557
  parseEnumeratedString$2(r, e) {
7528
7558
  var n, a, i, s, l, p, _, M, b = t._setArrayType([], d.JSArray_int);
@@ -8172,7 +8202,7 @@ Arguments: [` + _ + "]";
8172
8202
  }, t.uniqueAlias_closure.prototype = {
8173
8203
  call$1(r) {
8174
8204
  var e = r.$index(0, 0);
8175
- return e.toString, t.Primitives_stringFromCharCode(97 + t.int_parse(e));
8205
+ return e.toString, t.Primitives_stringFromCharCode(97 + t.int_parse(e, null));
8176
8206
  },
8177
8207
  $signature: 15
8178
8208
  }, t.QueryRequestCommonField.prototype = {
@@ -8413,8 +8443,8 @@ Arguments: [` + _ + "]";
8413
8443
  return u.JSArray_methods.fold$2(this._getJoins$1(r), "", new t.QueryRequest__getSqlJoins_closure(this, r));
8414
8444
  },
8415
8445
  _getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(r, e, n, a) {
8416
- var i, s, l, p, _, M, b, O, D = this, y = r != null, $ = D.dimensions, q = d.QueryRequestDimension, h = t.ListExtensions_whereIndexed($, new t.QueryRequest__getRollupSelect_closure(r), q), T = h.get$isEmpty(h) ? "" : "PARTITION BY " + t.MappedIterable_MappedIterable(h, new t.QueryRequest__getRollupSelect_closure0(), h.$ti._eval$1("Iterable.E"), d.String).join$1(0, ","), C = d.String;
8417
- return q = t.List_List$of(t.ListExtensions_mapIndexed($, new t.QueryRequest__getRollupSelect_closure1(D, e, r, T), q, C), !0, C), i = D.metrics, s = d.JSArray_String, u.JSArray_methods.addAll$1(q, t.IterableExtension_foldIndexed(i, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure2(D, e, r, T))), l = D.sorts, p = t._arrayInstanceType(l), _ = p._eval$1("MappedListIterable<1,String>"), u.JSArray_methods.addAll$1(q, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure3(D, e, r, T), _)), q = u.JSArray_methods.join$1(q, ","), M = o.getInterceptor$ax($), b = t.List_List$of(M.map$1$1($, new t.QueryRequest__getRollupSelect_closure4(a), C), !0, C), u.JSArray_methods.addAll$1(b, o.fold$2$ax(i, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure5(a, y))), u.JSArray_methods.addAll$1(b, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure6(), _)), b.push("" + y + " _is_rollup"), O = "select " + u.JSArray_methods.join$1(b, ",") + " from (" + ("select " + q + " from " + n) + ")", M.get$isNotEmpty($) && ($ = t.List_List$of(M.map$1$1($, new t.QueryRequest__getRollupSelect_closure7(), C), !0, C), q = p._eval$1("MappedIterable<1,String>"), u.JSArray_methods.addAll$1($, t.List_List$of(new t.MappedIterable(new t.WhereIterable(l, new t.QueryRequest__getRollupSelect_closure8(), p._eval$1("WhereIterable<1>")), new t.QueryRequest__getRollupSelect_closure9(), q), !0, q._eval$1("Iterable.E"))), O = O + " group by " + u.JSArray_methods.join$1($, ",")), O;
8446
+ var i, s, l, p, _, M, b, O, D = this, y = r != null, $ = D.dimensions, q = d.QueryRequestDimension, h = t.ListExtensions_whereIndexed($, new t.QueryRequest__getRollupSelect_closure(r), q), T = h.get$isEmpty(h) ? "" : "PARTITION BY " + t.MappedIterable_MappedIterable(h, new t.QueryRequest__getRollupSelect_closure0(), h.$ti._eval$1("Iterable.E"), d.String).join$1(0, ","), L = d.String;
8447
+ return q = t.List_List$of(t.ListExtensions_mapIndexed($, new t.QueryRequest__getRollupSelect_closure1(D, e, r, T), q, L), !0, L), i = D.metrics, s = d.JSArray_String, u.JSArray_methods.addAll$1(q, t.IterableExtension_foldIndexed(i, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure2(D, e, r, T))), l = D.sorts, p = t._arrayInstanceType(l), _ = p._eval$1("MappedListIterable<1,String>"), u.JSArray_methods.addAll$1(q, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure3(D, e, r, T), _)), q = u.JSArray_methods.join$1(q, ","), M = o.getInterceptor$ax($), b = t.List_List$of(M.map$1$1($, new t.QueryRequest__getRollupSelect_closure4(a), L), !0, L), u.JSArray_methods.addAll$1(b, o.fold$2$ax(i, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure5(a, y))), u.JSArray_methods.addAll$1(b, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure6(), _)), b.push("" + y + " _is_rollup"), O = "select " + u.JSArray_methods.join$1(b, ",") + " from (" + ("select " + q + " from " + n) + ")", M.get$isNotEmpty($) && ($ = t.List_List$of(M.map$1$1($, new t.QueryRequest__getRollupSelect_closure7(), L), !0, L), q = p._eval$1("MappedIterable<1,String>"), u.JSArray_methods.addAll$1($, t.List_List$of(new t.MappedIterable(new t.WhereIterable(l, new t.QueryRequest__getRollupSelect_closure8(), p._eval$1("WhereIterable<1>")), new t.QueryRequest__getRollupSelect_closure9(), q), !0, q._eval$1("Iterable.E"))), O = O + " group by " + u.JSArray_methods.join$1($, ",")), O;
8418
8448
  },
8419
8449
  get$_hasFillGap() {
8420
8450
  var r = o.where$1$ax(this.dimensions, new t.QueryRequest__hasFillGap_closure());
@@ -8432,9 +8462,9 @@ Arguments: [` + _ + "]";
8432
8462
  var e, n, a, i, s, l, p, _, M = this, b = "source_table", O = M.dimensions, D = o.getInterceptor$asx(O);
8433
8463
  if (D.get$isEmpty(O) && o.get$isEmpty$asx(M.metrics))
8434
8464
  throw t.wrapException(t.Exception_Exception("column is empty"));
8435
- for (e = M._getSourceTable$1$schemaLibrary(r), n = "with source_table as (" + e.sql + ")", n = M.get$_hasFillGap() ? n + ",fill_gap_table as (" + M._getFillGapTable$2$schemaLibrary$sourceTableName(r, b) + "),full_table as (" + M._getFullTable$3$fillGapTableName$schemaLibrary$sourceTableName("fill_gap_table", r, b) + ")" : n + ",full_table as (SELECT * FROM source_table)", n = n + ",aggregated_table as (" + M._getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(null, r, "full_table", !1) + "),sorted_limit_table as (" + M._getSortedLimitTable$2$schemaLibrary$sourceTableName(r, "aggregated_table") + ")", a = M.rollup, a != null && D.get$isNotEmpty(O) && a >= D.get$length(O) && (a = D.get$length(O) - 1), i = a != null ? a + 1 : 0, i < 0 && t.throwExpression(t.ArgumentError$("Length must be a non-negative integer: " + i)), s = t._setArrayType(new Array(i), d.JSArray_String), l = 0; l < i; ++l)
8436
- s[l] = M._getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(l, r, "sorted_limit_table", !0);
8437
- return p = d.String, _ = t.List_List$of(s, !0, p), O = t.List_List$of(D.map$1$1(O, new t.QueryRequest_getSqlSelect_closure(), p), !0, p), u.JSArray_methods.addAll$1(O, o.map$1$1$ax(M.metrics, new t.QueryRequest_getSqlSelect_closure0(), p)), p = M.sorts, u.JSArray_methods.addAll$1(O, new t.MappedListIterable(p, new t.QueryRequest_getSqlSelect_closure1(), t._arrayInstanceType(p)._eval$1("MappedListIterable<1,String>"))), O.push("_is_rollup"), _.push("SELECT " + u.JSArray_methods.join$1(O, ",") + " FROM sorted_limit_table"), _.length !== 0 && (n = n + " " + u.JSArray_methods.join$1(_, " UNION ALL ")), O = M._getSqlSelectSorts$1(r), M._transformSqlAlias$2(t.stringReplaceAllUnchecked(n + O, "@TIMEZONE", "'" + M.timezone + "'"), e.aliases);
8465
+ for (e = M._getSourceTable$1$schemaLibrary(r), n = "with source_table as (" + e.sql + ")", n = M.get$_hasFillGap() ? n + ",fill_gap_table as (" + M._getFillGapTable$2$schemaLibrary$sourceTableName(r, b) + "),full_table as (" + M._getFullTable$3$fillGapTableName$schemaLibrary$sourceTableName("fill_gap_table", r, b) + ")" : n + ",full_table as (SELECT * FROM source_table)", n = n + ",aggregated_table as (" + M._getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(null, r, "full_table", !1) + "),sorted_limit_table as (" + M._getSortedLimitTable$2$schemaLibrary$sourceTableName(r, "aggregated_table") + ")", a = M.rollup, a != null && D.get$isNotEmpty(O) && a >= D.get$length(O) && (a = D.get$length(O) - 1), i = a != null ? a + 1 : 0, s = d.String, l = o.JSArray_JSArray$allocateGrowable(i, s), p = 0; p < i; ++p)
8466
+ l[p] = M._getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(p, r, "sorted_limit_table", !0);
8467
+ return _ = t.List_List$of(l, !0, s), O = t.List_List$of(D.map$1$1(O, new t.QueryRequest_getSqlSelect_closure(), s), !0, s), u.JSArray_methods.addAll$1(O, o.map$1$1$ax(M.metrics, new t.QueryRequest_getSqlSelect_closure0(), s)), s = M.sorts, u.JSArray_methods.addAll$1(O, new t.MappedListIterable(s, new t.QueryRequest_getSqlSelect_closure1(), t._arrayInstanceType(s)._eval$1("MappedListIterable<1,String>"))), O.push("_is_rollup"), _.push("SELECT " + u.JSArray_methods.join$1(O, ",") + " FROM sorted_limit_table"), _.length !== 0 && (n = n + " " + u.JSArray_methods.join$1(_, " UNION ALL ")), O = M._getSqlSelectSorts$1(r), M._transformSqlAlias$2(t.stringReplaceAllUnchecked(n + O, "@TIMEZONE", "'" + M.timezone + "'"), e.aliases);
8438
8468
  },
8439
8469
  _transformSqlAlias$2(r, e) {
8440
8470
  return e.length === 0 ? r : t.stringReplaceAllFuncUnchecked(r, t.RegExp_RegExp(new t.MappedListIterable(e, t.core_RegExp_escape$closure(), t._arrayInstanceType(e)._eval$1("MappedListIterable<1,String>")).join$1(0, "|"), !1), new t.QueryRequest__transformSqlAlias_closure(), null);
@@ -9082,8 +9112,8 @@ Arguments: [` + _ + "]";
9082
9112
  $signature: 1
9083
9113
  }, t.billSchema_closure.prototype = {
9084
9114
  call$1(r) {
9085
- var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", _ = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", y = "grossTotal", $ = "rounding", q = "takeawayPrice", h = "thirdPartyExtraCharge", T = "deliveryFee", C = "nettTotal", F = "deliveryFeeWithTax", W = "deliveryFeeWithoutTax", I = "otherChargeWithTax", w = "otherChargeWithoutTax", N = "discountInclusiveTaxTotal", v = "customerName", P = "customerPhone", V = "customerAddress", a0 = "customerRemark", i0 = "fulfillmentAt", M0 = "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT ", z0 = " FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(", q0 = "statutoryChargeTotal", D0 = "foodCourtOrderId";
9086
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("Values: COMPLETED (a sale, or a refund bill: see is_refund), REFUNDED (a sale later refunded in full; the refund is a separate COMPLETED bill), VOIDED (cancelled: not a sale, its figures 0), DRAFT (still open: not a sale).", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string("On a refund bill, the id of the bill it refunds.", e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool("A refund bill: a row of its own with status COMPLETED, its figures negated, refund_from naming the bill it refunds. A full refund also turns that bill REFUNDED; a partial one leaves it COMPLETED.", e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("Sales channel. FEEDME is FeedMe's own POS and online ordering (raw ''/POS normalize to it) and is never a delivery platform; FOOD_COURT is a stall's part of a food court order, paid to the food court, which owes the stall; a third-party delivery platform passes through under its own name and shows in the sampled values only when the business uses one — no such value sampled means no delivery-platform rows.", e, !1, e, !1, !1, "Source", "source", "source", S.x28case_x28, e, r), t.Field_Field$string("Order type. PICKUP/DELIVERY/DRIVE THRU/KIOSK/TAKEAWAY are normalized; any other POS-configured value passes through raw — filter with the sampled values, never a guessed label. COUNTER is a dine-in order taken at the counter: a 'Dine-in' choice maps to it.", e, !1, e, !1, !1, "Type", "type", "type", "(case when upper(@type) in ('PICKUP','DELIVERY','DRIVE THRU','KIOSK') then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", e, r), t.Field_Field$bool(e, e, !0, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", _, _, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, e, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", M, M, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, S.IFNULLi, !0, e, !1, "Item count", b, b, S.COALESi, e, r), t.Field_Field$numeric(e, S.IFNULLtax, !1, e, !1, "Tax", O, O, S.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Discount given on the bill, refund sign applied — the discount measure. adjustment is a different grain: it holds a row per discount, bill-level (target = 'BILL') and item-level alike, so summing those per bill counts a bill's discount twice.", S.IFNULLdiT, !1, e, !1, "Discount", D, D, S.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLg, !1, e, !1, "Item gross", y, y, S.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,IFNULL(@sstTotal, 0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", $, $, S.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", S.COALESss, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, S.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", S.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, S.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", S.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, S.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtak, !1, e, !1, "Takeaway", q, q, S.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLth, !1, e, !1, "Extra charge", h, h, S.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLde_, !1, e, !1, "Delivery fee", T, T, S.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Revenue after discounts and before taxes — the default sales measure.", S.IFNULLn, !1, e, !1, "Nett", C, C, S.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,IFNULL(@sstTotal,0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, S.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, S.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, S.SUM__n, e, r), t.Field_Field$numeric(e, S.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", F, F, S.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", W, W, S.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, S.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoo, !1, e, !1, "Other charge without tax", w, w, S.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, e, !1, "Duration", "duration", e, S.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, S.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, S.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, S.x28selecstn, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount reasons", "discountReasons", e, S.x28selecsta, e, r), t.Field_Field$numeric(e, S.IFNULLdiI, !1, e, !1, "Discount inc tax", N, N, S.COALESdii, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',UPPER(card_type), ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 60 days recency", "is60DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '60 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Its SUM over the sold bills (COMPLETED and REFUNDED) is the net count, in which a refund cancels its sale. FeedMe's standard reports (Close up, Summary) count rows instead, over every bill that is not DRAFT or VOIDED, so a refunded sale and its refund count as two.", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, e, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Member count flag: 1 normal, -1 refund, 0 voided. Use SUM to count members", "IF((@status = 'VOIDED' OR @memberId is null), 0, IF(@isRefund, -1, 1))", !1, e, !1, "Member count", "memberCount", e, "(CASE WHEN (@status = 'VOIDED' OR @member_id is null) THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string("Customer name from pickup / in-house delivery / delivery channel", e, !1, e, !1, !1, "Customer", v, v, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", P, P, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer address", V, V, e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", a0, a0, e, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, e, !1, "Fulfillment time", i0, i0, e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pax count by type (e.g. ADULTS, CHILDREN)", e, !1, e, !1, !1, "Pax breakdown", "paxBreakdown", "personMetaBreakdown", e, e, r), t.Field_Field$numeric("Refund rows only: original bill nett less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance before refund", "refundNettBalanceBefore", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: nett balance before refund less this refund nett. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance after refund", "refundNettBalanceAfter", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE COALESCE(@nett_total,0) END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: original bill gross less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance before refund", "refundGrossBalanceBefore", e, M0 + t._billGross("ob.") + z0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: gross balance before refund less this refund gross. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance after refund", "refundGrossBalanceAfter", e, M0 + t._billGross("ob.") + z0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE " + t._billGross("@") + " END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(S.BCRS_c, S.IFNULLst, !1, e, !1, "Statutory charges", q0, q0, S.COALESst, u.FIELD_ROLE_1, r), t.Field_Field$string("Comma-joined distinct categories of the bill top-level, non-voided item lines (add-ons excluded), named as item Category is (Other for open items). A text list: filter with LIKE / NOT LIKE, not equality", e, !1, e, !1, !1, "Categories", "categories", e, "(select string_agg(distinct CASE WHEN flatten_items.category_name IS NULL OR flatten_items.product_id IS NULL OR flatten_items.product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE flatten_items.category_name END, ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", e, r), t.Field_Field$string(S.The_fo, e, !1, e, !1, !1, "Food court order ID", D0, D0, e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9115
+ var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", _ = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", y = "grossTotal", $ = "rounding", q = "takeawayPrice", h = "thirdPartyExtraCharge", T = "deliveryFee", L = "nettTotal", I = "deliveryFeeWithTax", W = "deliveryFeeWithoutTax", F = "otherChargeWithTax", w = "otherChargeWithoutTax", N = "discountInclusiveTaxTotal", v = "customerName", P = "customerPhone", V = "customerAddress", a0 = "customerRemark", i0 = "fulfillmentAt", M0 = "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT ", z0 = " FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(", q0 = "statutoryChargeTotal", D0 = "foodCourtOrderId";
9116
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("Values: COMPLETED (a sale, or a refund bill: see is_refund), REFUNDED (a sale later refunded in full; the refund is a separate COMPLETED bill), VOIDED (cancelled: not a sale, its figures 0), DRAFT (still open: not a sale).", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string("Dine-in table name/identifier", e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string("On a refund bill, the id of the bill it refunds.", e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool("A refund bill: a row of its own with status COMPLETED, its figures negated, refund_from naming the bill it refunds. A full refund also turns that bill REFUNDED; a partial one leaves it COMPLETED.", e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("Sales channel. FEEDME is FeedMe's own POS and online ordering (raw ''/POS normalize to it) and is never a delivery platform; FOOD_COURT is a stall's part of a food court order, paid to the food court, which owes the stall; a third-party delivery platform passes through under its own name and shows in the sampled values only when the business uses one — no such value sampled means no delivery-platform rows.", e, !1, e, !1, !1, "Source", "source", "source", S.x28case_x28, e, r), t.Field_Field$string("Order type. PICKUP/DELIVERY/DRIVE THRU/KIOSK/TAKEAWAY are normalized; any other POS-configured value passes through raw — filter with the sampled values, never a guessed label. COUNTER is a dine-in order taken at the counter: a 'Dine-in' choice maps to it.", e, !1, e, !1, !1, "Type", "type", "type", "(case when upper(@type) in ('PICKUP','DELIVERY','DRIVE THRU','KIOSK') then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", e, r), t.Field_Field$bool(e, e, !0, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", _, _, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric("Number of guests. Negated for refund, 0 for voided", "IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, e, !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", M, M, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, S.IFNULLi, !0, e, !1, "Item count", b, b, S.COALESi, e, r), t.Field_Field$numeric(e, S.IFNULLtax, !1, e, !1, "Tax", O, O, S.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Discount given on the bill, refund sign applied — the discount measure. adjustment is a different grain: it holds a row per discount, bill-level (target = 'BILL') and item-level alike, so summing those per bill counts a bill's discount twice.", S.IFNULLdiT, !1, e, !1, "Discount", D, D, S.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLg, !1, e, !1, "Item gross", y, y, S.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,IFNULL(@sstTotal, 0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", $, $, S.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", S.COALESss, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, S.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", S.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, S.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", S.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, S.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtak, !1, e, !1, "Takeaway", q, q, S.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLth, !1, e, !1, "Extra charge", h, h, S.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLde_, !1, e, !1, "Delivery fee", T, T, S.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Revenue after discounts and before taxes — the default sales measure.", S.IFNULLn, !1, e, !1, "Nett", L, L, S.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+(case when @deliveryFeeWithTax>0 then IFNULL(@deliveryFee,0) else 0 end)+IFNULL(case when @otherChargeWithTax>0 then IFNULL(@thirdPartyExtraCharge,0) else 0 end)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+(case when @delivery_fee_with_tax>0 then COALESCE(@delivery_fee,0) else 0 end)+(case when @other_charge_with_tax>0 then COALESCE(@third_party_extra_charge,0) else 0 end)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,IFNULL(@sstTotal,0))-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,@sst_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, S.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, S.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, S.SUM__n, e, r), t.Field_Field$numeric(e, S.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", I, I, S.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", W, W, S.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoT, !1, e, !1, "Other charge with tax", F, F, S.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoo, !1, e, !1, "Other charge without tax", w, w, S.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill duration in seconds from creation to completion", e, !1, e, !1, "Duration", "duration", e, S.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, S.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, S.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, S.x28selecstn, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount reasons", "discountReasons", e, S.x28selecsta, e, r), t.Field_Field$numeric(e, S.IFNULLdiI, !1, e, !1, "Discount inc tax", N, N, S.COALESdii, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',UPPER(card_type), ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is new member", "isNewMember", e, "(CASE WHEN EXISTS (SELECT 1 FROM members WHERE members.id=@member_id AND members.created_at::date = @created_at::date) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 30 days recency", "is30DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '30 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Is 60 days recency", "is60DaysRecency", e, "(CASE WHEN EXISTS (SELECT 1 FROM bills WHERE bills.member_id = @member_id AND bills.status != 'VOIDED' AND bills.restaurant_id = @restaurant_id AND bills.created_at >= @created_at - INTERVAL '60 days' AND bills.created_at < @created_at) THEN 1 ELSE 0 END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Bill count flag: 1 normal, -1 refund, 0 voided. Its SUM over the sold bills (COMPLETED and REFUNDED) is the net count, in which a refund cancels its sale. FeedMe's standard reports (Close up, Summary) count rows instead, over every bill that is not DRAFT or VOIDED, so a refunded sale and its refund count as two.", "IF(@status = 'VOIDED', 0, IF(@isRefund, -1, 1))", !1, e, !1, "Table count", "tableCount", e, "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Member count flag: 1 normal, -1 refund, 0 voided. Use SUM to count members", "IF((@status = 'VOIDED' OR @memberId is null), 0, IF(@isRefund, -1, 1))", !1, e, !1, "Member count", "memberCount", e, "(CASE WHEN (@status = 'VOIDED' OR @member_id is null) THEN 0 ELSE (CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", u.FIELD_ROLE_1, r), t.Field_Field$string("Customer name from pickup / in-house delivery / delivery channel", e, !1, e, !1, !1, "Customer", v, v, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", P, P, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer address", V, V, e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", a0, a0, e, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, e, !1, "Fulfillment time", i0, i0, e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pax count by type (e.g. ADULTS, CHILDREN)", e, !1, e, !1, !1, "Pax breakdown", "paxBreakdown", "personMetaBreakdown", e, e, r), t.Field_Field$numeric("Refund rows only: original bill nett less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance before refund", "refundNettBalanceBefore", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: nett balance before refund less this refund nett. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Nett balance after refund", "refundNettBalanceAfter", e, "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT COALESCE(ob.nett_total,0) FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(COALESCE(pr.nett_total,0)) FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE COALESCE(@nett_total,0) END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: original bill gross less every earlier refund of it. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance before refund", "refundGrossBalanceBefore", e, M0 + t._billGross("ob.") + z0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0) END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Refund rows only: gross balance before refund less this refund gross. NULL elsewhere; per-row, do not sum", e, !1, e, !0, "Gross balance after refund", "refundGrossBalanceAfter", e, M0 + t._billGross("ob.") + z0 + t._billGross("pr.") + ") FROM bills pr WHERE pr.refund_from=@refund_from AND pr.restaurant_id=@restaurant_id AND pr.status<>'VOIDED' AND (pr.created_at<@created_at OR (pr.created_at=@created_at AND pr.id<@id))),0)-CASE WHEN @status='VOIDED' THEN 0 ELSE " + t._billGross("@") + " END END)", u.FIELD_ROLE_1, r), t.Field_Field$numeric(S.BCRS_c, S.IFNULLst, !1, e, !1, "Statutory charges", q0, q0, S.COALESst, u.FIELD_ROLE_1, r), t.Field_Field$string("Comma-joined distinct categories of the bill top-level, non-voided item lines (add-ons excluded), named as item Category is (Other for open items). A text list: filter with LIKE / NOT LIKE, not equality", e, !1, e, !1, !1, "Categories", "categories", e, "(select string_agg(distinct CASE WHEN flatten_items.category_name IS NULL OR flatten_items.product_id IS NULL OR flatten_items.product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE flatten_items.category_name END, ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0 and flatten_items.status!='VOIDED')", e, r), t.Field_Field$string(S.The_fo, e, !1, e, !1, !1, "Food court order ID", D0, D0, e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9087
9117
  },
9088
9118
  $signature: 0
9089
9119
  }, t.billSchema_closure0.prototype = {
@@ -9154,7 +9184,7 @@ Arguments: [` + _ + "]";
9154
9184
  }, t.chargeSchema_closure.prototype = {
9155
9185
  call$1(r) {
9156
9186
  var e = null, n = "parentId", a = "isRefund", i = "beforeDiscount", s = "inclusive", l = "percentage", p = "waivedTotal", _ = "unitAmount";
9157
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", "billId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Parent ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string("e.g. GST, SST, SERVICE_CHARGE, BCRS (container deposit)", e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variant", "variant", e, e, r), t.Field_Field$string("Values: ITEM, BILL, PAYMENT, OTHER_CHARGE. The kind of charge (SST, SERVICE_CHARGE) is in code, not here.", e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", a, a, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Before Discount", i, i, e, e, r), t.Field_Field$bool("Whether the charge is already included in item prices", e, !1, e, !1, "Inclusive", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Percentage", l, l, e, e, r), t.Field_Field$numeric(e, "@total*IF(@isRefund, -1, 1)", !1, e, !1, "Total", "total", "total", "@total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Statutory deposit not charged (BCRS waived for NEA dine-in). 0 on tax lines", "IFNULL(@waivedTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Waived Total", p, p, "COALESCE(@waived_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Statutory deposit per container (BCRS 0.10). total / unitAmount = containers. NULL on tax lines", e, !1, e, !1, "Unit Amount", _, _, e, e, r), t.Field_Field$numeric("Containers charged the statutory deposit (BCRS), total / unitAmount. Negative on refunds. NULL on PAYMENT and tax rows", "IF(@type IN ('BILL','ITEM') AND @unitAmount > 0, ROUND(@total/@unitAmount)*IF(@isRefund, -1, 1), NULL)", !1, e, !1, "Containers charged", "chargedCount", e, "CASE WHEN @type IN ('BILL','ITEM') AND @unit_amount > 0 THEN ROUND(@total/@unit_amount)*CASE WHEN @is_refund THEN -1 ELSE 1 END END", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Containers whose statutory deposit (BCRS) was waived, waivedTotal / unitAmount. Negative on refunds. NULL on PAYMENT and tax rows", "IF(@type IN ('BILL','ITEM') AND @unitAmount > 0, ROUND(IFNULL(@waivedTotal,0)/@unitAmount)*IF(@isRefund, -1, 1), NULL)", !1, e, !1, "Containers waived", "waivedCount", e, "CASE WHEN @type IN ('BILL','ITEM') AND @unit_amount > 0 THEN ROUND(COALESCE(@waived_total,0)/@unit_amount)*CASE WHEN @is_refund THEN -1 ELSE 1 END END", u.FIELD_ROLE_1, r)], d.JSArray_Field);
9187
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", "billId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Parent ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string("e.g. GST, SST, SERVICE_CHARGE, BCRS (container deposit)", e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variant", "variant", e, e, r), t.Field_Field$string("Values: ITEM, BILL, PAYMENT, OTHER_CHARGE. The kind of charge (SST, SERVICE_CHARGE) is in code, not here.", e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", a, a, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Before Discount", i, i, e, e, r), t.Field_Field$bool("Whether the charge is already included in item prices", e, !1, e, !1, "Inclusive", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Percentage", l, l, e, e, r), t.Field_Field$numeric(e, "@total*IF(@isRefund, -1, 1)", !1, e, !1, "Total", "total", "total", "@total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Statutory deposit not charged (BCRS waived for NEA dine-in). 0 on tax lines", "IFNULL(@waivedTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Waived Total", p, p, "COALESCE(@waived_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Statutory deposit per container (BCRS 0.10). total / unitAmount = containers. NULL on tax lines", e, !1, e, !1, "Unit Amount", _, _, e, e, r), t.Field_Field$numeric("Containers charged the statutory deposit (BCRS), total / unitAmount. Negative on refunds. NULL on PAYMENT and tax rows", "IF(@type IN ('BILL','ITEM') AND @unitAmount > 0, ROUND(@total/@unitAmount)*IF(@isRefund, -1, 1), NULL)", !1, e, !1, "Containers charged", "chargedCount", e, "CASE WHEN @type IN ('BILL','ITEM') AND @unit_amount > 0 THEN ROUND(@total/@unit_amount)*CASE WHEN @is_refund THEN -1 ELSE 1 END END", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Containers whose statutory deposit (BCRS) was waived, waivedTotal / unitAmount. Negative on refunds. NULL on PAYMENT and tax rows", "IF(@type IN ('BILL','ITEM') AND @unitAmount > 0, ROUND(IFNULL(@waivedTotal,0)/@unitAmount)*IF(@isRefund, -1, 1), NULL)", !1, e, !1, "Containers waived", "waivedCount", e, "CASE WHEN @type IN ('BILL','ITEM') AND @unit_amount > 0 THEN ROUND(COALESCE(@waived_total,0)/@unit_amount)*CASE WHEN @is_refund THEN -1 ELSE 1 END END", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Amount the charge was calculated on, as the POS worked it out (excludes inclusive tax). Negative on refunds. Set on BILL rows only; NULL on ITEM and PAYMENT rows, on BCRS rows, and on bills last calculated by a POS older than core 2.14.27 (Aug 2025).", "@taxable*IF(@isRefund, -1, 1)", !0, e, !1, "Taxable", "taxable", "taxable", "@taxable*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r)], d.JSArray_Field);
9158
9188
  },
9159
9189
  $signature: 0
9160
9190
  }, t.chargeSchema_closure0.prototype = {
@@ -9234,8 +9264,8 @@ Arguments: [` + _ + "]";
9234
9264
  $signature: 1
9235
9265
  }, t.completeTimeBillSchema_closure.prototype = {
9236
9266
  call$1(r) {
9237
- var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", _ = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", y = "grossTotal", $ = "rounding", q = "takeawayPrice", h = "thirdPartyExtraCharge", T = "deliveryFee", C = "nettTotal", F = "deliveryFeeWithTax", W = "deliveryFeeWithoutTax", I = "otherChargeWithTax", w = "otherChargeWithoutTax", N = "discountInclusiveTaxTotal", v = "statutoryChargeTotal", P = "foodCourtOrderId";
9238
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "source", S.x28case_x28, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", e, r), t.Field_Field$bool(e, e, !0, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", _, _, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Pax", "pax", "person", S.COALESp, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", M, M, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, S.IFNULLi, !0, e, !1, "Item count", b, b, S.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Tax", O, O, S.COALEStax0, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLdiT, !1, e, !1, "Discount", D, D, S.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLg, !1, e, !1, "Item gross", y, y, S.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", $, $, S.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", S.COALESss, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, S.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", S.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, S.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", S.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, S.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtak, !1, e, !1, "Takeaway", q, q, S.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLth, !1, e, !1, "Extra charge", h, h, S.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLde_, !1, e, !1, "Delivery fee", T, T, S.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLn, !1, e, !1, "Nett", C, C, S.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+COALESCE(@delivery_fee_with_tax,0)+COALESCE(@other_charge_with_tax,0)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, S.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, S.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, S.SUM__n, e, r), t.Field_Field$numeric(e, S.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", F, F, S.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", W, W, S.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, S.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoo, !1, e, !1, "Other charge without tax", w, w, S.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Duration", "duration", e, S.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, S.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, S.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, S.x28selecstn, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount reasons", "discountReasons", e, S.x28selecsta, e, r), t.Field_Field$numeric(e, S.IFNULLdiI, !1, e, !1, "Discount inc tax", N, N, S.COALESdii, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',card_type, ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e, r), t.Field_Field$numeric(S.BCRS_c, S.IFNULLst, !1, e, !1, "Statutory charges", v, v, S.COALESst, u.FIELD_ROLE_1, r), t.Field_Field$string(S.The_fo, e, !1, e, !1, !1, "Food court order ID", P, P, e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9267
+ var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", _ = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", y = "grossTotal", $ = "rounding", q = "takeawayPrice", h = "thirdPartyExtraCharge", T = "deliveryFee", L = "nettTotal", I = "deliveryFeeWithTax", W = "deliveryFeeWithoutTax", F = "otherChargeWithTax", w = "otherChargeWithoutTax", N = "discountInclusiveTaxTotal", v = "statutoryChargeTotal", P = "foodCourtOrderId";
9268
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "source", S.x28case_x28, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Type", "type", "type", "(case when upper(@type)='PICKUP' then upper(@type) when upper(@type)='DELIVERY' then upper(@type) when @is_takeaway is true then 'TAKEAWAY' else upper(@type) end)", e, r), t.Field_Field$bool(e, e, !0, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", _, _, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Pax", "pax", "person", S.COALESp, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", M, M, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, S.IFNULLi, !0, e, !1, "Item count", b, b, S.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Tax", O, O, S.COALEStax0, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLdiT, !1, e, !1, "Discount", D, D, S.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLg, !1, e, !1, "Item gross", y, y, S.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-IFNULL(@discountTotal,0)-IFNULL(@thirdPartyExtraCharge,0)-IFNULL(@deliveryFee,0)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross", "billGrossTotal", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-COALESCE(@discount_total,0)-COALESCE(@third_party_extra_charge,0)-COALESCE(@delivery_fee,0)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", $, $, S.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", S.COALESss, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, S.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", S.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, S.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", S.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, S.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtak, !1, e, !1, "Takeaway", q, q, S.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLth, !1, e, !1, "Extra charge", h, h, S.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLde_, !1, e, !1, "Delivery fee", T, T, S.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLn, !1, e, !1, "Nett", L, L, S.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Item gross before charges", "grossBeforeCharges", e, "(COALESCE(@gross_total,0)+COALESCE(@delivery_fee_with_tax,0)+COALESCE(@other_charge_with_tax,0)+COALESCE(@discount_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@nettTotal,0)-IFNULL(@rounding,0)-(case when @otherChargeWithTax>0 then 0 else IFNULL(@thirdPartyExtraCharge,0) end)-(case when @deliveryFeeWithTax>0 then 0 else IFNULL(@deliveryFee,0) end)-IFNULL(@taxTotal,0)-IFNULL(@serviceChargeTotal,0)-IFNULL(@statutoryChargeTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Bill gross before charges", "billGrossBeforeCharges", e, "(COALESCE(@nett_total,0)-COALESCE(@rounding,0)-(case when @other_charge_with_tax>0 then 0 else COALESCE(@third_party_extra_charge,0) end)-(case when @delivery_fee_with_tax>0 then 0 else COALESCE(@delivery_fee,0) end)-COALESCE(@tax_total,0)-COALESCE(@service_charge_total,0)-COALESCE(@statutory_charge_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, S.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, S.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, S.SUM__n, e, r), t.Field_Field$numeric(e, S.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", I, I, S.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", W, W, S.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoT, !1, e, !1, "Other charge with tax", F, F, S.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLoo, !1, e, !1, "Other charge without tax", w, w, S.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Duration", "duration", e, S.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, S.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, S.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, S.x28selecstn, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Items", "items", e, "(select string_agg(CONCAT(flatten_items.quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN flatten_items.code='' THEN NULL ELSE flatten_items.code END, flatten_items.name], ' ')), ',') from flatten_items where flatten_items.bill_id=@id and flatten_items.restaurant_id=@restaurant_id and flatten_items.layer=0)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount reasons", "discountReasons", e, S.x28selecsta, e, r), t.Field_Field$numeric(e, S.IFNULLdiI, !1, e, !1, "Discount inc tax", N, N, S.COALESdii, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment Summaries", "paymentSummaries", e, "(select string_agg(distinct CONCAT(name, CASE WHEN card_type is not null THEN CONCAT(' (',card_type, ')') WHEN payment_gateway_issuer is not null THEN CONCAT(' (',payment_gateway_issuer, ')') ELSE '' END), ',') from payments where payments.bill_id=@id and payments.restaurant_id=@restaurant_id)", e, r), t.Field_Field$numeric(S.BCRS_c, S.IFNULLst, !1, e, !1, "Statutory charges", v, v, S.COALESst, u.FIELD_ROLE_1, r), t.Field_Field$string(S.The_fo, e, !1, e, !1, !1, "Food court order ID", P, P, e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9239
9269
  },
9240
9270
  $signature: 0
9241
9271
  }, t.completeTimeBillSchema_closure0.prototype = {
@@ -9281,8 +9311,8 @@ Arguments: [` + _ + "]";
9281
9311
  $signature: 1
9282
9312
  }, t.depositSchema_closure.prototype = {
9283
9313
  call$1(r) {
9284
- var e = null, n = "businessId", a = "restaurantId", i = "referenceNo", s = "targetDate", l = "currency", p = "customerName", _ = "customerPhone", M = "createdByName", b = "createdById", O = "paymentName", D = "paidAmount", y = "collectedAmount", $ = "appliedAt", q = "appliedAmount", h = "appliedBillId", T = "excessAmount", C = "excessHandling", F = "refundedAt", W = "refundedAmount", I = "retainedAmount", w = "refundReason", N = "refundPercentage", v = "refundDaysBefore", P = "forfeitedAt", V = "forfeitedAmount", a0 = "forfeitReason", i0 = "cashOutAmount", M0 = "outstandingAmount", z0 = "depositIncomeAmount";
9285
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Outlet that created the deposit", e, !1, e, !1, !1, "Restaurant ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reference no", i, i, e, e, r), t.Field_Field$string("draft, active, applied, refunded or forfeited", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$timestamp("Date the deposit is reserved for", e, !1, e, !1, "Target date", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Deposit amount", "amount", "amount", e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, l, l, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer", p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", _, _, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Created by", M, M, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, b, b, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Paid time", "paidAt", "paidAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment method", O, O, e, e, r), t.Field_Field$numeric("Amount tendered, which can exceed the deposit amount", e, !0, e, !1, e, D, D, e, e, r), t.Field_Field$numeric("Deposit amount once paid, 0 while still a draft", e, !1, e, !1, "Collected", y, y, e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", $, $, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric("Part of the deposit spent on the bill", e, !1, e, !1, "Applied", q, q, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Applied bill ID", h, h, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric("Deposit left over after the bill was paid", e, !1, e, !1, "Excess", T, T, e, u.FIELD_ROLE_1, r), t.Field_Field$string("retain keeps the excess, returnBalance pays it back", e, !1, e, !1, !1, "Excess handling", C, C, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Refunded time", F, F, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Refunded", W, W, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Retained on refund", I, I, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", w, w, e, e, r), t.Field_Field$numeric("Refund policy tier applied, as a percentage", e, !0, e, !1, e, N, N, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, e, v, v, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Forfeited time", P, P, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Forfeited", V, V, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Forfeit reason", a0, a0, e, e, r), t.Field_Field$numeric("Refund plus any excess returned to the customer", e, !1, e, !1, "Cash out", i0, i0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Collected deposit not yet applied, refunded or forfeited", e, !1, e, !1, "Outstanding", M0, M0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(S.Forfei, e, !1, e, !1, "Deposit income", z0, z0, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, S.x28selecn, e, r)], d.JSArray_Field);
9314
+ var e = null, n = "businessId", a = "restaurantId", i = "referenceNo", s = "targetDate", l = "currency", p = "customerName", _ = "customerPhone", M = "createdByName", b = "createdById", O = "paymentName", D = "paidAmount", y = "collectedAmount", $ = "appliedAt", q = "appliedAmount", h = "appliedBillId", T = "excessAmount", L = "excessHandling", I = "refundedAt", W = "refundedAmount", F = "retainedAmount", w = "refundReason", N = "refundPercentage", v = "refundDaysBefore", P = "forfeitedAt", V = "forfeitedAmount", a0 = "forfeitReason", i0 = "cashOutAmount", M0 = "outstandingAmount", z0 = "depositIncomeAmount";
9315
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Outlet that created the deposit", e, !1, e, !1, !1, "Restaurant ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reference no", i, i, e, e, r), t.Field_Field$string("draft, active, applied, refunded or forfeited", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$timestamp("Date the deposit is reserved for", e, !1, e, !1, "Target date", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Deposit amount", "amount", "amount", e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, l, l, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer", p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", _, _, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Created by", M, M, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, b, b, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Paid time", "paidAt", "paidAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment method", O, O, e, e, r), t.Field_Field$numeric("Amount tendered, which can exceed the deposit amount", e, !0, e, !1, e, D, D, e, e, r), t.Field_Field$numeric("Deposit amount once paid, 0 while still a draft", e, !1, e, !1, "Collected", y, y, e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", $, $, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric("Part of the deposit spent on the bill", e, !1, e, !1, "Applied", q, q, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Applied bill ID", h, h, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric("Deposit left over after the bill was paid", e, !1, e, !1, "Excess", T, T, e, u.FIELD_ROLE_1, r), t.Field_Field$string("retain keeps the excess, returnBalance pays it back", e, !1, e, !1, !1, "Excess handling", L, L, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Refunded time", I, I, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Refunded", W, W, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Retained on refund", F, F, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", w, w, e, e, r), t.Field_Field$numeric("Refund policy tier applied, as a percentage", e, !0, e, !1, e, N, N, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, e, v, v, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Forfeited time", P, P, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Forfeited", V, V, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Forfeit reason", a0, a0, e, e, r), t.Field_Field$numeric("Refund plus any excess returned to the customer", e, !1, e, !1, "Cash out", i0, i0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Collected deposit not yet applied, refunded or forfeited", e, !1, e, !1, "Outstanding", M0, M0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(S.Forfei, e, !1, e, !1, "Deposit income", z0, z0, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, S.x28selecn, e, r)], d.JSArray_Field);
9286
9316
  },
9287
9317
  $signature: 0
9288
9318
  }, t.depositSchema_closure0.prototype = {
@@ -9328,10 +9358,10 @@ Arguments: [` + _ + "]";
9328
9358
  $signature: 1
9329
9359
  }, t.flattenItemSchema_closure.prototype = {
9330
9360
  call$1(r) {
9331
- var e = null, n = "itemCreatedAt", a = "billCompletedAt", i = "productId", s = "perXUnit", l = "takeawayId", p = "takeawayName", _ = "isRefund", M = "servedAt", b = "isTakeaway", O = "quantity", D = "unitQuantity", y = "billAdjustmentTotal", $ = "itemAdjustmentTotal", q = "grossTotal", h = "takeawayPrice", T = "nettTotal", C = "parentId", F = "layerNettTotal", W = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", w = "layerGrossTotal", N = "layerTakeawayPrice", v = "layerTaxTotal", P = "layerScTotal", V = "layerOtherChargeTotal", a0 = "customAttributes", i0 = "layerZeroParentId", M0 = "collectedAt", z0 = "subCategories", q0 = "billAdjustmentInclusiveTaxTotal", D0 = "itemAdjustmentInclusiveTaxTotal", L0 = "layerBillAdjustmentInclusiveTaxTotal", C0 = "layerItemAdjustmentInclusiveTaxTotal", Z = "billAdjustmentExclusiveTaxTotal", x0 = "itemAdjustmentExclusiveTaxTotal", N0 = "layerBillAdjustmentExclusiveTaxTotal", h0 = "layerItemAdjustmentExclusiveTaxTotal", N1 = "priceGroup", w1 = "originalPrice", x1 = "catalogId", v1 = "baseItemPrice", F0 = "catalogName", c1 = "priceExclusiveTax", je = "originalPriceExclusiveTax", Ke = "baseItemPriceExclusiveTax", Ze = "serveDelayId", et = "serveDelayName", tt = "serveDelayInMins";
9361
+ var e = null, n = "itemCreatedAt", a = "billCompletedAt", i = "productId", s = "perXUnit", l = "takeawayId", p = "takeawayName", _ = "isRefund", M = "servedAt", b = "isTakeaway", O = "quantity", D = "unitQuantity", y = "billAdjustmentTotal", $ = "itemAdjustmentTotal", q = "grossTotal", h = "takeawayPrice", T = "nettTotal", L = "parentId", I = "layerNettTotal", W = "layerBillAdjustmentTotal", F = "layerItemAdjustmentTotal", w = "layerGrossTotal", N = "layerTakeawayPrice", v = "layerTaxTotal", P = "layerScTotal", V = "layerOtherChargeTotal", a0 = "customAttributes", i0 = "layerZeroParentId", M0 = "collectedAt", z0 = "subCategories", q0 = "billAdjustmentInclusiveTaxTotal", D0 = "itemAdjustmentInclusiveTaxTotal", L0 = "layerBillAdjustmentInclusiveTaxTotal", C0 = "layerItemAdjustmentInclusiveTaxTotal", Z = "billAdjustmentExclusiveTaxTotal", x0 = "itemAdjustmentExclusiveTaxTotal", N0 = "layerBillAdjustmentExclusiveTaxTotal", h0 = "layerItemAdjustmentExclusiveTaxTotal", N1 = "priceGroup", w1 = "originalPrice", x1 = "catalogId", v1 = "baseItemPrice", I0 = "catalogName", c1 = "priceExclusiveTax", je = "originalPriceExclusiveTax", Ke = "baseItemPriceExclusiveTax", Ze = "serveDelayId", et = "serveDelayName", tt = "serveDelayInMins";
9332
9362
  return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Item time", n, n, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", a, a, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", "billId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT, REFUNDED. DRAFT and SENT both considered valid sales. REFUNDED is a line whose sale was refunded: it stays a sale, and the refund bill's own line (is_refund) takes it back off.", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, i, !1, !0, "Name", "name", "name", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Per unit", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit", "unit", "unit", e, e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
9333
9363
  `, !1, e, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
9334
- `, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway name", p, p, e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", i, i, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant ID", "variantId", "variant.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", "variant.name", e, u.FIELD_ROLE_4, r), t.Field_Field$bool("A line of a refund bill: what was given back, its quantity and money negated. The refunded sale keeps its own line.", e, !1, e, !1, "Refund", _, _, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User id", "createdById", "createdBy.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "createdByName", "createdBy.name", e, u.FIELD_ROLE_4, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Sent time", "sentAt", "sentAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Served time", M, M, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Printed time", "printedAt", "printBy.printAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Void time", "voidAt", "void.voidAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void reason", "voidReason", "void.reason", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidedById", "void.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void user", "voidedByName", "void.by.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", b, b, e, e, r), t.Field_Field$numeric("Units sold on the line, valid at every layer: a nested line already carries its parent quantity, so never multiply by the parent again. To count a product wherever it is sold — standalone and inside bundles — match the line itself and do not filter layer.", "@quantity*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", O, O, S.x40quant, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IF(@perXUnit IS NULL, 0, @unitQuantity)*IF(@isRefund, -1, 1)", !1, e, !1, "Unit qty", D, D, "CASE WHEN @per_x_unit IS NULL THEN 0 ELSE @unit_quantity END*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SST", "sstTotal", "sst.total", S.x40sst_t, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "SST %", "sstPercentage", "sst.percentage", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", "sc.total", S.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "otherCharge.total", S.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x40billA, !1, e, !1, "Bill discount", y, y, S.x40bill_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x40itemA, !1, e, !1, "Item discount", $, $, S.x40item_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Gross", q, q, S.x40gross, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28_grosT, !1, e, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, S.x28_gros_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Takeaway price", h, h, S.x40takea, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Net sales of the line after discounts, before tax, refund sign applied; a layer-0 row already carries its addons and layer 1+ rows carry 0 — SUM over layer = 0 reconciles to bill.nett_total. The product sales measure.", "@nettTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Nett", T, T, S.x40nett_, u.FIELD_ROLE_1, r), t.Field_Field$string("The line a layer 1+ line sits under, as that line's id: the product an option was chosen on, or the set a product was sold inside. Empty on layer 0 lines.", e, !1, e, !1, !1, "Parent ID", C, "parent.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, C, !1, !1, "Parent name", "parentName", "parent.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string("What a layer 1+ line names: product = a menu product, carrying its own product_id, name and category — a product sold inside a set, or an option the menu defines as a product, so it does not tell the two apart; normal = an option or modifier that names no menu product; dynamic = a sub-item that names no menu product. Which kinds appear depends on how the business built its menu. Empty on layer 0 lines.", e, !1, e, !1, !1, "Addon type", "addonType", "addon.type", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("The option group (menu_v3_group.id) an option line was chosen from, taken from addon_id: set on lines chosen under a parent line (layer 1+), empty on layer 0 product lines.", "SPLIT(@addonId, '/')[OFFSET(0)]", !1, e, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", u.FIELD_ROLE_5, r), t.Field_Field$numeric("Item depth: 0 = a line ordered on its own (a product, or a set). 1+ = a line under another: an option or modifier chosen on it, or a product sold inside the set it is. -1 = bill level modifier, usually not consider item sales.", e, !1, e, !1, "Layer", "layer", "layer", e, e, r), t.Field_Field$numeric("The price of an option line for its whole quantity (the option's price times the line's quantity): set on option lines (layer 1+), empty on layer 0. Its layer 0 line's nett total already carries it, so it adds to no product total.", "@addonPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Addon price", "addonPrice", "addon.price", S.x40addon, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtax, !1, e, !1, "Tax", "taxTotal", "tax.total", S.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULb, !1, e, !1, "Discount", "discountTotal", e, S.x28COALEb, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2b, !1, e, !1, "Gross before charges", "grossBeforeCharges", e, S.x28COALEgx2b, u.FIELD_ROLE_1, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, e, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", e, r), t.Field_Field$numeric("The root line's nett allocated across its whole tree by nonnegative price weights (equal shares when every weight is zero). A line's own allocation plus its descendants' is an attributed value, never a separately charged price; summing it across layers under-counts sales — not a sales measure.", "@layerNettTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer nett", F, F, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_3, r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer bill discount", W, W, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer item discount", I, I, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer gross total", w, w, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer tax total", v, v, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer sc", P, P, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer other charge", V, V, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$string("The menu product's custom attributes as JSON text, set on a line that names a menu product: an object whose keys and values the business defines, so each business has its own. Read a key with custom_attributes::jsonb ->> '<key>'.", e, !1, e, !1, !1, "Custom attributes", a0, a0, e, e, r), t.Field_Field$string("The layer 0 product line a line belongs to: an option line's root line, and a layer 0 line's own id. Grouping by it gathers a product line with every option chosen under it.", e, !1, e, !1, !1, "Layer 0 parent ID", i0, i0, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Charge variant", "chargeVariant", e, "(select string_agg(variant, ', ' order by variant) from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code not in ('SERVICE_CHARGE','BCRS'))", e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Collected time", M0, M0, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Costing", "costing", "costing", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, e, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, e, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, i0, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Sub categories", z0, z0, e, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Bill discount inc tax", q0, q0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Item discount inc tax", D0, D0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer bill discount inc tax", L0, L0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer item discount inc tax", C0, C0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Bill discount exc tax", Z, Z, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Item discount exc tax", x0, x0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer bill discount exc tax", N0, N0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer item discount exc tax", h0, h0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$string(e, "IF(@variantId IS NULL OR @variantId = '', @productId, CONCAT(@productId, '/', @variantId))", !0, e, !1, !1, "Menu item ID", "menuItemId", e, "CASE WHEN @variant_id IS NULL OR @variant_id = '' THEN @product_id ELSE @product_id || '/' || @variant_id END", e, r), t.Field_Field$string("Special-price tier when a member/promotion PRICE_CHANGE effect set the item price (e.g. vip). Null for normal sales.", e, !1, e, !1, !1, "Price group", N1, N1, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Original price", w1, w1, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Price", "price", "price", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Sold price minus original price, per unit (not multiplied by quantity). Positive means marked up. Non-zero for member/promotion price tiers, open price (original price is 0, so this equals the full price) and manual overrides. Null when either side is unknown.", "@price - @originalPrice", !1, e, !1, "Price difference", "priceDifference", e, "@price - @original_price", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Addons", "addons", e, "(select string_agg(distinct name || coalesce(' (' || nullif(variant_name, '') || ')', ''), ',' order by name || coalesce(' (' || nullif(variant_name, '') || ')', '')) from flatten_items where flatten_items.parent_id=@id and flatten_items.restaurant_id=@restaurant_id)", e, r), t.Field_Field$string("Catalog used at order time. Null means not recorded; an empty string means the base menu.", e, !1, e, !1, !1, "Catalog ID", x1, x1, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric("Item price from the menu as resolved at order time, after catalog markup, catalog override and POS override, before bill-level repricing or adjustments.", e, !1, e, !1, "Menu item price", v1, v1, e, u.FIELD_ROLE_1, r), t.Field_Field$string("Catalog name recorded on the item at order time.", e, !1, e, !1, !1, "Catalog name", F0, F0, e, u.FIELD_ROLE_4, r), t.Field_Field$numeric("Price with the inclusive product tax of the layer-0 item removed. Equals price when that tax is exclusive or absent.", e, !1, e, !1, "Price (excl. tax)", c1, c1, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Original price with the inclusive product tax removed.", e, !1, e, !1, "Original price (excl. tax)", je, je, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Menu item price with the inclusive product tax removed.", e, !1, e, !1, "Menu item price (excl. tax)", Ke, Ke, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Seconds from sent to kitchen until the last KDS station finished cooking. Null until every station of the item has finished, and on items with no KDS station.", e, !1, e, !1, "Kitchen preparation seconds", "kitchenPreparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM ((select CASE WHEN count(*)=count(finished_at) THEN max(finished_at) END from kitchen_stations where kitchen_stations.bill_id=@bill_id and kitchen_stations.restaurant_id=@restaurant_id and kitchen_stations.item_id=@id)-@sent_at)),0)", u.FIELD_ROLE_1, r), t.Field_Field$string("Order pacing rule applied to the item at order time. Plumbing id; chart serveDelayName instead.", e, !0, e, !1, !1, "Serve later ID", Ze, Ze, e, e, r), t.Field_Field$string('Name of the order pacing (serve later) rule on the item, e.g. "30 mins" or "custom". Null when the item is served immediately.', e, !1, e, !1, !1, "Serve later", et, et, e, e, r), t.Field_Field$numeric("Minutes the kitchen was asked to hold the item before starting it (order pacing). Subtract from a prep-time target to exclude intentional delay. Null when the item is served immediately.", e, !1, e, !1, "Serve later delay (mins)", tt, tt, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9364
+ `, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway name", p, p, e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", i, i, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant ID", "variantId", "variant.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", "variant.name", e, u.FIELD_ROLE_4, r), t.Field_Field$bool("A line of a refund bill: what was given back, its quantity and money negated. The refunded sale keeps its own line.", e, !1, e, !1, "Refund", _, _, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User id", "createdById", "createdBy.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "createdByName", "createdBy.name", e, u.FIELD_ROLE_4, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Sent time", "sentAt", "sentAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Served time", M, M, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Printed time", "printedAt", "printBy.printAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Void time", "voidAt", "void.voidAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void reason", "voidReason", "void.reason", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidedById", "void.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void user", "voidedByName", "void.by.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, e, r), t.Field_Field$bool(e, e, !0, e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", b, b, e, e, r), t.Field_Field$numeric("Units sold on the line, valid at every layer: a nested line already carries its parent quantity, so never multiply by the parent again. To count a product wherever it is sold — standalone and inside bundles — match the line itself and do not filter layer.", "@quantity*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", O, O, S.x40quant, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IF(@perXUnit IS NULL, 0, @unitQuantity)*IF(@isRefund, -1, 1)", !1, e, !1, "Unit qty", D, D, "CASE WHEN @per_x_unit IS NULL THEN 0 ELSE @unit_quantity END*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SST", "sstTotal", "sst.total", S.x40sst_t, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "SST %", "sstPercentage", "sst.percentage", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", "sc.total", S.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "otherCharge.total", S.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x40billA, !1, e, !1, "Bill discount", y, y, S.x40bill_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x40itemA, !1, e, !1, "Item discount", $, $, S.x40item_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Gross", q, q, S.x40gross, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28_grosT, !1, e, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, S.x28_gros_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Takeaway price", h, h, S.x40takea, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Net sales of the line after discounts, before tax, refund sign applied; a layer-0 row already carries its addons and layer 1+ rows carry 0 — SUM over layer = 0 reconciles to bill.nett_total. The product sales measure.", "@nettTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Nett", T, T, S.x40nett_, u.FIELD_ROLE_1, r), t.Field_Field$string("The line a layer 1+ line sits under, as that line's id: the product an option was chosen on, or the set a product was sold inside. Empty on layer 0 lines.", e, !1, e, !1, !1, "Parent ID", L, "parent.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, L, !1, !1, "Parent name", "parentName", "parent.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string("What a layer 1+ line names: product = a menu product, carrying its own product_id, name and category — a product sold inside a set, or an option the menu defines as a product, so it does not tell the two apart; normal = an option or modifier that names no menu product; dynamic = a sub-item that names no menu product. Which kinds appear depends on how the business built its menu. Empty on layer 0 lines.", e, !1, e, !1, !1, "Addon type", "addonType", "addon.type", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("The option group (menu_v3_group.id) an option line was chosen from, taken from addon_id: set on lines chosen under a parent line (layer 1+), empty on layer 0 product lines.", "SPLIT(@addonId, '/')[OFFSET(0)]", !1, e, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", u.FIELD_ROLE_5, r), t.Field_Field$numeric("Item depth: 0 = a line ordered on its own (a product, or a set). 1+ = a line under another: an option or modifier chosen on it, or a product sold inside the set it is. -1 = bill level modifier, usually not consider item sales.", e, !1, e, !1, "Layer", "layer", "layer", e, e, r), t.Field_Field$numeric("The price of an option line for its whole quantity (the option's price times the line's quantity): set on option lines (layer 1+), empty on layer 0. Its layer 0 line's nett total already carries it, so it adds to no product total.", "@addonPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Addon price", "addonPrice", "addon.price", S.x40addon, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtax, !1, e, !1, "Tax", "taxTotal", "tax.total", S.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULb, !1, e, !1, "Discount", "discountTotal", e, S.x28COALEb, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2b, !1, e, !1, "Gross before charges", "grossBeforeCharges", e, S.x28COALEgx2b, u.FIELD_ROLE_1, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, e, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", e, r), t.Field_Field$numeric("The root line's nett allocated across its whole tree by nonnegative price weights (equal shares when every weight is zero). A line's own allocation plus its descendants' is an attributed value, never a separately charged price; summing it across layers under-counts sales — not a sales measure.", "@layerNettTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer nett", I, I, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_3, r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer bill discount", W, W, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer item discount", F, F, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer gross total", w, w, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer tax total", v, v, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer sc", P, P, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer other charge", V, V, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, e, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$string("The menu product's custom attributes as JSON text, set on a line that names a menu product: an object whose keys and values the business defines, so each business has its own. Read a key with custom_attributes::jsonb ->> '<key>'.", e, !1, e, !1, !1, "Custom attributes", a0, a0, e, e, r), t.Field_Field$string("The layer 0 product line a line belongs to: an option line's root line, and a layer 0 line's own id. Grouping by it gathers a product line with every option chosen under it.", e, !1, e, !1, !1, "Layer 0 parent ID", i0, i0, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Charge variant", "chargeVariant", e, "(select string_agg(variant, ', ' order by variant) from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code not in ('SERVICE_CHARGE','BCRS'))", e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Collected time", M0, M0, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Costing", "costing", "costing", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, e, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", u.FIELD_ROLE_1, r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, e, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, i0, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Sub categories", z0, z0, e, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Bill discount inc tax", q0, q0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Item discount inc tax", D0, D0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer bill discount inc tax", L0, L0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer item discount inc tax", C0, C0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Bill discount exc tax", Z, Z, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Item discount exc tax", x0, x0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer bill discount exc tax", N0, N0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Layer item discount exc tax", h0, h0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$string(e, "IF(@variantId IS NULL OR @variantId = '', @productId, CONCAT(@productId, '/', @variantId))", !0, e, !1, !1, "Menu item ID", "menuItemId", e, "CASE WHEN @variant_id IS NULL OR @variant_id = '' THEN @product_id ELSE @product_id || '/' || @variant_id END", e, r), t.Field_Field$string("Special-price tier when a member/promotion PRICE_CHANGE effect set the item price (e.g. vip). Null for normal sales.", e, !1, e, !1, !1, "Price group", N1, N1, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Original price", w1, w1, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Price", "price", "price", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Sold price minus original price, per unit (not multiplied by quantity). Positive means marked up. Non-zero for member/promotion price tiers, open price (original price is 0, so this equals the full price) and manual overrides. Null when either side is unknown.", "@price - @originalPrice", !1, e, !1, "Price difference", "priceDifference", e, "@price - @original_price", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Addons", "addons", e, "(select string_agg(distinct name || coalesce(' (' || nullif(variant_name, '') || ')', ''), ',' order by name || coalesce(' (' || nullif(variant_name, '') || ')', '')) from flatten_items where flatten_items.parent_id=@id and flatten_items.restaurant_id=@restaurant_id)", e, r), t.Field_Field$string("Catalog used at order time. Null means not recorded; an empty string means the base menu.", e, !1, e, !1, !1, "Catalog ID", x1, x1, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric("Item price from the menu as resolved at order time, after catalog markup, catalog override and POS override, before bill-level repricing or adjustments.", e, !1, e, !1, "Menu item price", v1, v1, e, u.FIELD_ROLE_1, r), t.Field_Field$string("Catalog name recorded on the item at order time.", e, !1, e, !1, !1, "Catalog name", I0, I0, e, u.FIELD_ROLE_4, r), t.Field_Field$numeric("Price with the inclusive product tax of the layer-0 item removed. Equals price when that tax is exclusive or absent.", e, !1, e, !1, "Price (excl. tax)", c1, c1, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Original price with the inclusive product tax removed.", e, !1, e, !1, "Original price (excl. tax)", je, je, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Menu item price with the inclusive product tax removed.", e, !1, e, !1, "Menu item price (excl. tax)", Ke, Ke, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Seconds from sent to kitchen until the last KDS station finished cooking. Null until every station of the item has finished, and on items with no KDS station.", e, !1, e, !1, "Kitchen preparation seconds", "kitchenPreparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM ((select CASE WHEN count(*)=count(finished_at) THEN max(finished_at) END from kitchen_stations where kitchen_stations.bill_id=@bill_id and kitchen_stations.restaurant_id=@restaurant_id and kitchen_stations.item_id=@id)-@sent_at)),0)", u.FIELD_ROLE_1, r), t.Field_Field$string("Order pacing rule applied to the item at order time. Plumbing id; chart serveDelayName instead.", e, !0, e, !1, !1, "Serve later ID", Ze, Ze, e, e, r), t.Field_Field$string('Name of the order pacing (serve later) rule on the item, e.g. "30 mins" or "custom". Null when the item is served immediately.', e, !1, e, !1, !1, "Serve later", et, et, e, e, r), t.Field_Field$numeric("Minutes the kitchen was asked to hold the item before starting it (order pacing). Subtract from a prep-time target to exclude intentional delay. Null when the item is served immediately.", e, !1, e, !1, "Serve later delay (mins)", tt, tt, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9335
9365
  },
9336
9366
  $signature: 0
9337
9367
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9485,8 +9515,8 @@ Arguments: [` + _ + "]";
9485
9515
  $signature: 1
9486
9516
  }, t.inventoryAdjustmentSkuSchema_closure.prototype = {
9487
9517
  call$1(r) {
9488
- var e = null, n = "locationId", a = "inventoryAdjustmentId", i = "fromBalance", s = "toBalance", l = "skuId", p = "unitPrecision", _ = "unitName", M = "unitAbbrev", b = "amountCost", O = "fromBalanceCost", D = "toBalanceCost", y = "trackingAmount", $ = "trackingUnitName", q = "trackingUnitAbbrev", h = "conversion", T = "customAttributes", C = "defaultCostPerUnit";
9489
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Inventory Adjustment ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric("Stock quantity change. Positive = in, negative = out", e, !1, e, !1, "Amount", "amount", "amount", e, u.FIELD_ROLE_2, r), t.Field_Field$numeric("The positive part of amount (0 on an out) — amount already nets in against out, so summing in, out and amount together counts the same movement three times.", "IF(@amount>=0, @amount, 0)", !1, e, !1, "In", "in", e, S.CASE_Wx40ax3e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("The negative part of amount (0 on an in), so it is already negative — never negate it again.", "IF(@amount<0, @amount, 0)", !1, e, !1, "Out", "out", e, S.CASE_Wx40ax3c, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("The reason a movement was recorded under. Values: SALES, DAMAGE, PURCHASE, TRANSFER, ADJUSTMENT, OPENING, PRODUCTION", e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "From balance", i, i, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "To balance", s, s, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, l, !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit ID", "unitId", "unitId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit Precision", p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit", _, _, e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit abbrev.", M, M, e, e, r), t.Field_Field$numeric("Cost value of the movement, signed like amount: negative on an out.", e, !1, e, !1, "Amount cost", b, b, "case when @amount<0 then -@amount_cost else @amount_cost end", u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, e, !1, e, !1, "From balance cost", O, O, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "To balance cost", D, D, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, l, !1, !1, "Name (unit)", "nameUnit", e, "concat(@name,' (',@unit_abbrev,')')", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Daily consumption", "dailyConsumption", e, "(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1))", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Days outstanding", "daysOutstanding", e, "-(last_value(@to_balance) over (partition by @name order by @created_at asc ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)/(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1)))", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tracking amount", y, y, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit", $, $, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit abbrev.", q, q, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Conversion", h, h, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", T, T, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref", "ref", "ref", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Default unit cost", C, C, e, u.FIELD_ROLE_1, r), t.Field_Field$bool(e, e, !1, e, !1, "From closing template", "fromClosingTemplate", e, "((select 1 from closing_draft_skus where closing_adjustment_id = @inventory_adjustment_id and sku_id = @sku_id limit 1) is not null)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Default cost", "defaultCost", e, "@default_cost_per_unit*@amount", u.FIELD_ROLE_1, r)], d.JSArray_Field);
9518
+ var e = null, n = "locationId", a = "inventoryAdjustmentId", i = "fromBalance", s = "toBalance", l = "skuId", p = "unitPrecision", _ = "unitName", M = "unitAbbrev", b = "amountCost", O = "fromBalanceCost", D = "toBalanceCost", y = "trackingAmount", $ = "trackingUnitName", q = "trackingUnitAbbrev", h = "conversion", T = "customAttributes", L = "defaultCostPerUnit";
9519
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Inventory Adjustment ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric("Stock quantity change. Positive = in, negative = out", e, !1, e, !1, "Amount", "amount", "amount", e, u.FIELD_ROLE_2, r), t.Field_Field$numeric("The positive part of amount (0 on an out) — amount already nets in against out, so summing in, out and amount together counts the same movement three times.", "IF(@amount>=0, @amount, 0)", !1, e, !1, "In", "in", e, S.CASE_Wx40ax3e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("The negative part of amount (0 on an in), so it is already negative — never negate it again.", "IF(@amount<0, @amount, 0)", !1, e, !1, "Out", "out", e, S.CASE_Wx40ax3c, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("The reason a movement was recorded under. Values: SALES, DAMAGE, PURCHASE, TRANSFER, ADJUSTMENT, OPENING, PRODUCTION", e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "From balance", i, i, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "To balance", s, s, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, l, !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit ID", "unitId", "unitId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit Precision", p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit", _, _, e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit abbrev.", M, M, e, e, r), t.Field_Field$numeric("Cost value of the movement, signed like amount: negative on an out.", e, !1, e, !1, "Amount cost", b, b, "case when @amount<0 then -@amount_cost else @amount_cost end", u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, e, !1, e, !1, "From balance cost", O, O, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "To balance cost", D, D, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, l, !1, !1, "Name (unit)", "nameUnit", e, "concat(@name,' (',@unit_abbrev,')')", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Daily consumption", "dailyConsumption", e, "(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1))", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Days outstanding", "daysOutstanding", e, "-(last_value(@to_balance) over (partition by @name order by @created_at asc ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)/(sum(@amount) filter (where type in ('SALES','DAMAGE')) over (partition by @name)/(EXTRACT(DAY FROM (!end - !start))+1)))", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tracking amount", y, y, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit", $, $, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit abbrev.", q, q, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Conversion", h, h, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", T, T, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref", "ref", "ref", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Default unit cost", L, L, e, u.FIELD_ROLE_1, r), t.Field_Field$bool(e, e, !1, e, !1, "From closing template", "fromClosingTemplate", e, "((select 1 from closing_draft_skus where closing_adjustment_id = @inventory_adjustment_id and sku_id = @sku_id limit 1) is not null)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Default cost", "defaultCost", e, "@default_cost_per_unit*@amount", u.FIELD_ROLE_1, r)], d.JSArray_Field);
9490
9520
  },
9491
9521
  $signature: 0
9492
9522
  }, t.inventoryAdjustmentSkuSchema_closure0.prototype = {
@@ -9973,8 +10003,8 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9973
10003
  $signature: 1
9974
10004
  }, t.refundBillSchema_closure.prototype = {
9975
10005
  call$1(r) {
9976
- var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", _ = "Takeaway", M = "completedAt", b = "integratedOrderId", O = "itemCount", D = "taxTotal", y = "discountTotal", $ = "grossTotal", q = "rounding", h = "takeawayPrice", T = "thirdPartyExtraCharge", C = "deliveryFee", F = "nettTotal";
9977
- return t._setArrayType([t.Field_Field$string(e, "_", !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "source", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, _, "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", M, M, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Pax", "pax", "person", S.COALESp, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", b, b, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, S.IFNULLi, !0, e, !1, "Item count", O, O, S.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, e, D, D, S.COALEStax0, e, r), t.Field_Field$numeric(e, S.IFNULLdiT, !1, e, !1, "Discount", y, y, S.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLg, !1, e, !1, "Gross", $, $, S.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", q, q, S.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", S.COALESss, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, S.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", S.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, S.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", S.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, S.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtak, !1, e, !1, _, h, h, S.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLth, !1, e, !1, "Extra charge", T, T, S.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLde_, !1, e, !1, "Delivery fee", C, C, S.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLn, !1, e, !1, "Nett", F, F, S.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@grossTotal,0)*IF(@isRefund, -1, 1)+IFNULL(@deliveryFee,0)*IF(@isRefund, -1, 1)+IFNULL(@discountTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Gross before charges", "grossBeforeCharges", e, "COALESCE(@gross_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@delivery_fee,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@discount_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, S.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, S.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, S.SUM__n, e, r)], d.JSArray_Field);
10006
+ var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", _ = "Takeaway", M = "completedAt", b = "integratedOrderId", O = "itemCount", D = "taxTotal", y = "discountTotal", $ = "grossTotal", q = "rounding", h = "takeawayPrice", T = "thirdPartyExtraCharge", L = "deliveryFee", I = "nettTotal";
10007
+ return t._setArrayType([t.Field_Field$string(e, "_", !1, e, !1, !1, "ID", "id", "_id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", "_docId", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", "_publishedAt", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", "_createdAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Table", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Delivery", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund ID", "refundFrom", "refundedFrom", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundApprovedById", "refund.approvedBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "refundedById", "refund.by.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user", "refundedByName", "refund.by.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund reason", "refundReason", "refund.reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "membership.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member user ID", "memberUserId", "membership.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberUserName", "membership.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "source", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Pickup", s, s, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Is in house delivery", l, l, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Is other delivery", p, p, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, _, "isTakeaway", "is.takeaway", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Closed at", M, M, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, e, r), t.Field_Field$numeric(e, "IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Pax", "pax", "person", S.COALESp, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Integrated order ID", b, b, e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, S.IFNULLi, !0, e, !1, "Item count", O, O, S.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, e, D, D, S.COALEStax0, e, r), t.Field_Field$numeric(e, S.IFNULLdiT, !1, e, !1, "Discount", y, y, S.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLg, !1, e, !1, "Gross", $, $, S.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", q, q, S.COALESr, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "SST", "sstTotal", "nettTaxes.SST.total", S.COALESss, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, e, r), t.Field_Field$numeric(e, S.IFNULLse, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", S.COALESse, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, e, r), t.Field_Field$numeric(e, S.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", S.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, S.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLtak, !1, e, !1, _, h, h, S.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLth, !1, e, !1, "Extra charge", T, T, S.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLde_, !1, e, !1, "Delivery fee", L, L, S.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, S.IFNULLn, !1, e, !1, "Nett", I, I, S.COALESn, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@grossTotal,0)*IF(@isRefund, -1, 1)+IFNULL(@deliveryFee,0)*IF(@isRefund, -1, 1)+IFNULL(@discountTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Gross before charges", "grossBeforeCharges", e, "COALESCE(@gross_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@delivery_fee,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END+COALESCE(@discount_total,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member Recency", "recency", e, S.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, S.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, S.SUM__n, e, r)], d.JSArray_Field);
9978
10008
  },
9979
10009
  $signature: 0
9980
10010
  }, t.refundBillSchema_closure0.prototype = {
@@ -11147,7 +11177,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
11147
11177
  a(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), a(s, "get$setMonth", "setMonth$1", 7), a(s, "get$setDay", "setDay$1", 7), a(s, "get$setDayOfYear", "setDayOfYear$1", 7), a(s, "get$setHour", "setHour$1", 7), a(s, "get$setMinute", "setMinute$1", 7), a(s, "get$setSecond", "setSecond$1", 7), a(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 81), i(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 104), n(t, "tpl_order___tplOrderFields$closure", "_tplOrderFields", 0), n(t, "tpl_setting___tplSettingFields$closure", "_tplSettingFields", 0), a(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
11148
11178
  })(), (function() {
11149
11179
  var e = x.mixin, n = x.inherit, a = x.inheritMany;
11150
- n(t.Object, null), a(t.Object, [t.JS_CONST, o.Interceptor, o.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Canonical, t.Hierarchy, t.Split, t.ReadPiece, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), a(o.Interceptor, [o.JSBool, o.JSNull, o.JavaScriptObject, o.JSArray, o.JSNumber, o.JSString, t.NativeTypedData]), n(o.LegacyJavaScriptObject, o.JavaScriptObject), a(o.LegacyJavaScriptObject, [o.PlainJavaScriptObject, o.UnknownJavaScriptObject, o.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(o.JSUnmodifiableArray, o.JSArray), a(o.JSNumber, [o.JSInt, o.JSNumNotInt]), a(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), a(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), a(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), a(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), a(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), a(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), a(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), a(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.Split_fromJson_closure, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_fromJson_closure3, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Schema_toJson_closure3, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.billAuditLogSchema_closure, t.billAuditLogSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.depositSchema_closure, t.depositSchema_closure0, t.depositTransactionSchema_closure, t.depositTransactionSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.hourlyForecastSalesSchema_closure, t.hourlyForecastSalesSchema_closure0, t.internalMyEInvoiceDocumentSchema_closure, t.internalMyEInvoiceDocumentSchema_closure0, t.internalMyEInvoiceSubmissionSchema_closure, t.internalMyEInvoiceSubmissionSchema_closure0, t.internalMyEInvoiceSubmissionDocumentSchema_closure, t.internalMyEInvoiceSubmissionDocumentSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventorySkuBalanceSchema_closure, t.inventorySkuBalanceSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.masterUserSchema_closure, t.masterUserSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.myEInvoiceSubmissionSchema_closure, t.myEInvoiceSubmissionSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.posOverrideItemLogSchema_closure, t.posOverrideItemLogSchema_closure0, t.printActivitySchema_closure, t.printActivitySchema_closure0, t.productPosOverrideV4ItemSchema_closure, t.productPosOverrideV4ItemSchema_closure0, t.promotionSchema_closure, t.promotionSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.purchaseOrderTemplateSchema_closure, t.purchaseOrderTemplateSchema_closure0, t.purchaseOrderTemplateItemSchema_closure, t.purchaseOrderTemplateItemSchema_closure0, t.inventoryV1RecipeSchema_closure, t.inventoryV1RecipeSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.remoteOrderSchema_closure, t.remoteOrderSchema_closure0, t.remoteOrderAddonFlattenItemSchema_closure, t.remoteOrderAddonFlattenItemSchema_closure0, t.remoteOrderFlattenItemSchema_closure, t.remoteOrderFlattenItemSchema_closure0, t.remoteOrderParentFlattenItemSchema_closure, t.remoteOrderParentFlattenItemSchema_closure0, t.remotePickupOrderSchema_closure, t.remotePickupOrderSchema_closure0, t.remotePickupOrderFlattenItemSchema_closure, t.remotePickupOrderFlattenItemSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.inventoryV1SkuSchema_closure, t.inventoryV1SkuSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.smsCreditTransactionSchema_closure, t.smsCreditTransactionSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.thEInvoiceSubmissionSchema_closure, t.thEInvoiceSubmissionSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.titleCollectionSchema_closure, t.titleCollectionSchema_closure0, t._tplOrderSource_closure, t.tplOrderSchema_closure, t.tplOrderSchema_closure0, t._tplSettingSource_closure, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.wastageItemSchema_closure, t.wastageItemSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), a(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Canonical_fromJson_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), a(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), a(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), a(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), a(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), a(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), a(t.Codec, [t.Encoding, t.JsonCodec]), a(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), a(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), a(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), a(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), a(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.MERGE_FILTER_TYPE, t.FIELD_ROLE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), a(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), a(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), a(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), a(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), a(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), a(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), a(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), a(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
11180
+ n(t.Object, null), a(t.Object, [t.JS_CONST, o.Interceptor, o.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Canonical, t.Hierarchy, t.Split, t.ReadPiece, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), a(o.Interceptor, [o.JSBool, o.JSNull, o.JavaScriptObject, o.JSArray, o.JSNumber, o.JSString, t.NativeTypedData]), n(o.LegacyJavaScriptObject, o.JavaScriptObject), a(o.LegacyJavaScriptObject, [o.PlainJavaScriptObject, o.UnknownJavaScriptObject, o.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(o.JSUnmodifiableArray, o.JSArray), a(o.JSNumber, [o.JSInt, o.JSNumNotInt]), a(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), a(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), a(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), a(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), a(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), a(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), a(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), a(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.Split_fromJson_closure, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_fromJson_closure3, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Schema_toJson_closure3, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.billAuditLogSchema_closure, t.billAuditLogSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.depositSchema_closure, t.depositSchema_closure0, t.depositTransactionSchema_closure, t.depositTransactionSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.hourlyForecastSalesSchema_closure, t.hourlyForecastSalesSchema_closure0, t.internalMyEInvoiceDocumentSchema_closure, t.internalMyEInvoiceDocumentSchema_closure0, t.internalMyEInvoiceSubmissionSchema_closure, t.internalMyEInvoiceSubmissionSchema_closure0, t.internalMyEInvoiceSubmissionDocumentSchema_closure, t.internalMyEInvoiceSubmissionDocumentSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventorySkuBalanceSchema_closure, t.inventorySkuBalanceSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.masterUserSchema_closure, t.masterUserSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.myEInvoiceSubmissionSchema_closure, t.myEInvoiceSubmissionSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.posOverrideItemLogSchema_closure, t.posOverrideItemLogSchema_closure0, t.printActivitySchema_closure, t.printActivitySchema_closure0, t.productPosOverrideV4ItemSchema_closure, t.productPosOverrideV4ItemSchema_closure0, t.promotionSchema_closure, t.promotionSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.purchaseOrderTemplateSchema_closure, t.purchaseOrderTemplateSchema_closure0, t.purchaseOrderTemplateItemSchema_closure, t.purchaseOrderTemplateItemSchema_closure0, t.inventoryV1RecipeSchema_closure, t.inventoryV1RecipeSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.remoteOrderSchema_closure, t.remoteOrderSchema_closure0, t.remoteOrderAddonFlattenItemSchema_closure, t.remoteOrderAddonFlattenItemSchema_closure0, t.remoteOrderFlattenItemSchema_closure, t.remoteOrderFlattenItemSchema_closure0, t.remoteOrderParentFlattenItemSchema_closure, t.remoteOrderParentFlattenItemSchema_closure0, t.remotePickupOrderSchema_closure, t.remotePickupOrderSchema_closure0, t.remotePickupOrderFlattenItemSchema_closure, t.remotePickupOrderFlattenItemSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.inventoryV1SkuSchema_closure, t.inventoryV1SkuSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.smsCreditTransactionSchema_closure, t.smsCreditTransactionSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.thEInvoiceSubmissionSchema_closure, t.thEInvoiceSubmissionSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.titleCollectionSchema_closure, t.titleCollectionSchema_closure0, t._tplOrderSource_closure, t.tplOrderSchema_closure, t.tplOrderSchema_closure0, t._tplSettingSource_closure, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.wastageItemSchema_closure, t.wastageItemSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), a(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Canonical_fromJson_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), a(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), a(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), a(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), a(t.NativeTypedArrayOfInt, [t.NativeInt8List, t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), a(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), a(t.Codec, [t.Encoding, t.JsonCodec]), a(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), a(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), a(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), a(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), a(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.MERGE_FILTER_TYPE, t.FIELD_ROLE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), a(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), a(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), a(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), a(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), a(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), a(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), a(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), a(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
11151
11181
  })();
11152
11182
  var R = {
11153
11183
  typeUniverse: { eC: /* @__PURE__ */ new Map(), tR: {}, eT: {}, tPV: {}, sEA: [] },
@@ -11158,7 +11188,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
11158
11188
  leafTags: null,
11159
11189
  arrayRti: Symbol("$ti")
11160
11190
  };
11161
- t._Universe_addRules(R.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","BufferModule":"LegacyJavaScriptObject","BufferConstants":"LegacyJavaScriptObject","Buffer":"LegacyJavaScriptObject","ConsoleModule":"LegacyJavaScriptObject","Console":"LegacyJavaScriptObject","EventEmitter":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","Date":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","Atomics":"LegacyJavaScriptObject","Modules":"LegacyJavaScriptObject","Module":"LegacyJavaScriptObject","Net":"LegacyJavaScriptObject","Socket":"LegacyJavaScriptObject","NetAddress":"LegacyJavaScriptObject","NetServer":"LegacyJavaScriptObject","NodeJsError":"LegacyJavaScriptObject","JsAssertionError":"LegacyJavaScriptObject","JsRangeError":"LegacyJavaScriptObject","JsReferenceError":"LegacyJavaScriptObject","JsSyntaxError":"LegacyJavaScriptObject","JsTypeError":"LegacyJavaScriptObject","JsSystemError":"LegacyJavaScriptObject","Process":"LegacyJavaScriptObject","CPUUsage":"LegacyJavaScriptObject","Release":"LegacyJavaScriptObject","StreamModule":"LegacyJavaScriptObject","Readable":"LegacyJavaScriptObject","Writable":"LegacyJavaScriptObject","Duplex":"LegacyJavaScriptObject","Transform":"LegacyJavaScriptObject","WritableOptions":"LegacyJavaScriptObject","ReadableOptions":"LegacyJavaScriptObject","Immediate":"LegacyJavaScriptObject","Timeout":"LegacyJavaScriptObject","TTY":"LegacyJavaScriptObject","TTYReadStream":"LegacyJavaScriptObject","TTYWriteStream":"LegacyJavaScriptObject","Util":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","JSBool":{"bool":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSNumber":{"double":[]},"JSInt":{"double":[],"int":[]},"JSNumNotInt":{"double":[]},"JSString":{"String":[],"JSIndexable":["@"]},"_CastIterableBase":{"Iterable":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListMixin.E":"2"},"LateError":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListIterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"NullError":{"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"JSSyntaxRegExp":{"RegExp":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"],"JSIndexable":["1"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"]},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_LinkedIdentityHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedHashSet":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"_SetBase":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"_JsonMap":{"MapMixin":["String","@"],"Map":["String","@"],"MapMixin.V":"@","MapMixin.K":"String"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"Iterable.E":"String","ListIterable.E":"String"},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"List":{"EfficientLengthIterable":["1"]},"RegExpMatch":{"Match":[]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"NullThrownError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"_DateFormatLiteralField":{"_DateFormatField":[]},"_DateFormatQuotedField":{"_DateFormatField":[]},"_DateFormatPatternField":{"_DateFormatField":[]},"ArLyLocale":{"Locale":[]},"ArSaMaDzKwTnLocale":{"Locale":[]},"AzLocale":{"Locale":[]},"BnLocale":{"Locale":[]},"DeLocale":{"Locale":[]},"EnLocale":{"Locale":[]},"EsLocale":{"Locale":[]},"FaLocale":{"Locale":[]},"FrLocale":{"Locale":[]},"HiLocale":{"Locale":[]},"IdLocale":{"Locale":[]},"ItLocale":{"Locale":[]},"JaLocale":{"Locale":[]},"KoLocale":{"Locale":[]},"NbLocale":{"Locale":[]},"NlLocale":{"Locale":[]},"PlLocale":{"Locale":[]},"PtLocale":{"Locale":[]},"RuLocale":{"Locale":[]},"SvLocale":{"Locale":[]},"ThLocale":{"Locale":[]},"TrLocale":{"Locale":[]},"UkLocale":{"Locale":[]},"ZhCnLocale":{"Locale":[]},"ZhLocale":{"Locale":[]},"_NumericField":{"Field":[]},"_TimestampField":{"Field":[]},"_BoolField":{"Field":[]},"_StringField":{"Field":[]},"TZDateTime":{"DateTime":[]},"TypedDataBuffer":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"_IntBuffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"]},"Uint8Buffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"}}')), t._Universe_addErasedTypes(R.typeUniverse, JSON.parse('{"ArrayIterator":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"SkipIterator":1,"EmptyIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"_SyncStarIterator":1,"StreamTransformerBase":2,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"_UnmodifiableMapMixin":2,"MapView":2,"UnmodifiableMapView":2,"_SetBase":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"__SetBase_Object_SetMixin":1,"Codec":2,"Converter":2,"Iterator":1,"Sink":1,"UninitializedLocaleData":1,"ReportWidgetModel":1}'));
11191
+ t._Universe_addRules(R.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","BufferModule":"LegacyJavaScriptObject","BufferConstants":"LegacyJavaScriptObject","Buffer":"LegacyJavaScriptObject","ConsoleModule":"LegacyJavaScriptObject","Console":"LegacyJavaScriptObject","EventEmitter":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","Date":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","Atomics":"LegacyJavaScriptObject","Modules":"LegacyJavaScriptObject","Module":"LegacyJavaScriptObject","Net":"LegacyJavaScriptObject","Socket":"LegacyJavaScriptObject","NetAddress":"LegacyJavaScriptObject","NetServer":"LegacyJavaScriptObject","NodeJsError":"LegacyJavaScriptObject","JsAssertionError":"LegacyJavaScriptObject","JsRangeError":"LegacyJavaScriptObject","JsReferenceError":"LegacyJavaScriptObject","JsSyntaxError":"LegacyJavaScriptObject","JsTypeError":"LegacyJavaScriptObject","JsSystemError":"LegacyJavaScriptObject","Process":"LegacyJavaScriptObject","CPUUsage":"LegacyJavaScriptObject","Release":"LegacyJavaScriptObject","StreamModule":"LegacyJavaScriptObject","Readable":"LegacyJavaScriptObject","Writable":"LegacyJavaScriptObject","Duplex":"LegacyJavaScriptObject","Transform":"LegacyJavaScriptObject","WritableOptions":"LegacyJavaScriptObject","ReadableOptions":"LegacyJavaScriptObject","Immediate":"LegacyJavaScriptObject","Timeout":"LegacyJavaScriptObject","TTY":"LegacyJavaScriptObject","TTYReadStream":"LegacyJavaScriptObject","TTYWriteStream":"LegacyJavaScriptObject","Util":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","JSBool":{"bool":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"JSIndexable":["1"]},"JSNumber":{"double":[]},"JSInt":{"double":[],"int":[]},"JSNumNotInt":{"double":[]},"JSString":{"String":[],"JSIndexable":["@"]},"_CastIterableBase":{"Iterable":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListMixin.E":"2"},"LateError":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListIterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"NullError":{"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"JSSyntaxRegExp":{"RegExp":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"],"JSIndexable":["1"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"]},"NativeInt8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_LinkedIdentityHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2","MapMixin.K":"1"},"_LinkedHashSet":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"_SetBase":{"SetMixin":["1"],"EfficientLengthIterable":["1"]},"_JsonMap":{"MapMixin":["String","@"],"Map":["String","@"],"MapMixin.V":"@","MapMixin.K":"String"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"Iterable.E":"String","ListIterable.E":"String"},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"List":{"EfficientLengthIterable":["1"]},"RegExpMatch":{"Match":[]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"NullThrownError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1","ListIterable.E":"1"},"_DateFormatLiteralField":{"_DateFormatField":[]},"_DateFormatQuotedField":{"_DateFormatField":[]},"_DateFormatPatternField":{"_DateFormatField":[]},"ArLyLocale":{"Locale":[]},"ArSaMaDzKwTnLocale":{"Locale":[]},"AzLocale":{"Locale":[]},"BnLocale":{"Locale":[]},"DeLocale":{"Locale":[]},"EnLocale":{"Locale":[]},"EsLocale":{"Locale":[]},"FaLocale":{"Locale":[]},"FrLocale":{"Locale":[]},"HiLocale":{"Locale":[]},"IdLocale":{"Locale":[]},"ItLocale":{"Locale":[]},"JaLocale":{"Locale":[]},"KoLocale":{"Locale":[]},"NbLocale":{"Locale":[]},"NlLocale":{"Locale":[]},"PlLocale":{"Locale":[]},"PtLocale":{"Locale":[]},"RuLocale":{"Locale":[]},"SvLocale":{"Locale":[]},"ThLocale":{"Locale":[]},"TrLocale":{"Locale":[]},"UkLocale":{"Locale":[]},"ZhCnLocale":{"Locale":[]},"ZhLocale":{"Locale":[]},"_NumericField":{"Field":[]},"_TimestampField":{"Field":[]},"_BoolField":{"Field":[]},"_StringField":{"Field":[]},"TZDateTime":{"DateTime":[]},"TypedDataBuffer":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"]},"_IntBuffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"]},"Uint8Buffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"ListMixin.E":"int"}}')), t._Universe_addErasedTypes(R.typeUniverse, JSON.parse('{"ArrayIterator":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"SkipIterator":1,"EmptyIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"_SyncStarIterator":1,"StreamTransformerBase":2,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"_UnmodifiableMapMixin":2,"MapView":2,"UnmodifiableMapView":2,"_SetBase":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"__SetBase_Object_SetMixin":1,"Codec":2,"Converter":2,"Iterator":1,"Sink":1,"UninitializedLocaleData":1,"ReportWidgetModel":1}'));
11162
11192
  var S = {
11163
11193
  x28_grosT: "(@grossTotal-IFNULL(@takeawayPrice,0))*IF(@isRefund, -1, 1)",
11164
11194
  x28_gros_: "(@gross_total-COALESCE(@takeaway_price,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END",
@@ -11494,8 +11524,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
11494
11524
  return a.message;
11495
11525
  }
11496
11526
  })())), e(m, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(m, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(u.Type_Object_xQ6)), e(m, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], d.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? u.C_Endian0 : u.C_Endian), e(m, "_clockKey", "$get$_clockKey", () => new t.Object()), e(m, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", u.List_BC_AD, u.List_6xs, u.List_qpm, u.List_qpm, u.List_cIc, u.List_cIc, u.List_h8w, u.List_h8w, u.List_wMy, u.List_wMy, u.List_gc6, u.List_gc6, u.List_3US, u.List_AM_PM)), n(m, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", m.$get$en_USSymbols())), n(m, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", u.Map_EQ6TW)), e(m, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(m, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(m, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(m, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(m, "_availableLocales", "$get$_availableLocales", () => {
11497
- var a, i, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), M = t.EnLocale$(u.StartOfWeek_1), b = t.EnLocale$(u.StartOfWeek_2), O = t.EnLocale$(u.StartOfWeek_2), D = t.EnLocale$(u.StartOfWeek_1), y = t.EnLocale$(u.StartOfWeek_1), $ = t.EsLocale$(u.StartOfWeek_2), q = t.EsLocale$(u.StartOfWeek_2), h = t.EsLocale$(u.StartOfWeek_1), T = t.FrLocale$(u.StartOfWeek_2), C = t.FrLocale$(u.StartOfWeek_2), F = t.FrLocale$(u.StartOfWeek_1), W = t.ZhCnLocale$(u.StartOfWeek_1), I = t.ZhCnLocale$(u.StartOfWeek_1), w = t.ZhLocale$(u.StartOfWeek_1), N = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), P = t.DeLocale$(u.StartOfWeek_2), V = t.DeLocale$(u.StartOfWeek_2), a0 = t.DeLocale$(u.StartOfWeek_2), i0 = t.ItLocale$(u.StartOfWeek_2), M0 = t.ItLocale$(u.StartOfWeek_2), z0 = t.ArLyLocale$(!0, u.StartOfWeek_0), q0 = t.ArLyLocale$(!1, u.StartOfWeek_0), D0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), C0 = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), Z = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
11498
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(u.StartOfWeek_2), i = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", p, "en_au", _, "en_ca", M, "en_gb", b, "en_ie", O, "en_il", D, "en_nz", y, "es", $, "es_do", q, "es_us", h, "fr", T, "fr_ch", C, "fr_ca", F, "zh", W, "zh_cn", I, "zh_hk", w, "zh_tw", N, "de", v, "de_de", P, "de_at", V, "de_ch", a0, "it", i0, "it_ch", M0, "ar", z0, "ar_ly", q0, "ar_dz", D0, "ar_kw", L0, "ar_sa", C0, "ar_ma", Z, "ar_tn", x0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", a, "pt_br", i, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], d.String, t.findType("Locale"));
11527
+ var a, i, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), M = t.EnLocale$(u.StartOfWeek_1), b = t.EnLocale$(u.StartOfWeek_2), O = t.EnLocale$(u.StartOfWeek_2), D = t.EnLocale$(u.StartOfWeek_1), y = t.EnLocale$(u.StartOfWeek_1), $ = t.EsLocale$(u.StartOfWeek_2), q = t.EsLocale$(u.StartOfWeek_2), h = t.EsLocale$(u.StartOfWeek_1), T = t.FrLocale$(u.StartOfWeek_2), L = t.FrLocale$(u.StartOfWeek_2), I = t.FrLocale$(u.StartOfWeek_1), W = t.ZhCnLocale$(u.StartOfWeek_1), F = t.ZhCnLocale$(u.StartOfWeek_1), w = t.ZhLocale$(u.StartOfWeek_1), N = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), P = t.DeLocale$(u.StartOfWeek_2), V = t.DeLocale$(u.StartOfWeek_2), a0 = t.DeLocale$(u.StartOfWeek_2), i0 = t.ItLocale$(u.StartOfWeek_2), M0 = t.ItLocale$(u.StartOfWeek_2), z0 = t.ArLyLocale$(!0, u.StartOfWeek_0), q0 = t.ArLyLocale$(!1, u.StartOfWeek_0), D0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), C0 = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), Z = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
11528
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(u.StartOfWeek_2), i = t.PtLocale$(u.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", l, "en_sg", p, "en_au", _, "en_ca", M, "en_gb", b, "en_ie", O, "en_il", D, "en_nz", y, "es", $, "es_do", q, "es_us", h, "fr", T, "fr_ch", L, "fr_ca", I, "zh", W, "zh_cn", F, "zh_hk", w, "zh_tw", N, "de", v, "de_de", P, "de_at", V, "de_ch", a0, "it", i0, "it_ch", M0, "ar", z0, "ar_ly", q0, "ar_dz", D0, "ar_kw", L0, "ar_sa", C0, "ar_ma", Z, "ar_tn", x0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", a, "pt_br", i, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], d.String, t.findType("Locale"));
11499
11529
  }), e(m, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
11500
11530
  var a = "createdAt", i = null, s = t.Source_Source$couchdb("", ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a);
11501
11531
  return t.Schema_Schema$build(!1, "sales", u.List_empty, 3, i, t._setArrayType(["restaurantId"], d.JSArray_String), "flatten_item under an addon-oriented name for classic joins — query flatten_item directly instead.", new t.addonFlattenItemSchema_closure(), u.List_empty0, i, i, i, !0, !1, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", u.MERGE_FILTER_TYPE_0, u.SCHEMA_NAME_7, a, i, "", "", i, !0, s, u.List_empty1, i, l);
@@ -12279,7 +12309,7 @@ GROUP BY
12279
12309
  }
12280
12310
  }
12281
12311
  R.dispatchPropertyName = R.getIsolateTag("dispatch_record");
12282
- })(), x.setOrUpdateInterceptorsByTag({ ArrayBuffer: o.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), x.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
12312
+ })(), x.setOrUpdateInterceptorsByTag({ ArrayBuffer: o.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Int8Array: t.NativeInt8List, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), x.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Int8Array: !0, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
12283
12313
  })(), Function.prototype.call$1 = function(r) {
12284
12314
  return this(r);
12285
12315
  }, Function.prototype.call$0 = function() {
@@ -12335,11 +12365,11 @@ function Mr() {
12335
12365
  } : function(B) {
12336
12366
  setTimeout(B, 0);
12337
12367
  }, g.exports = f || c, typeof process < "u" && (g.process = process), typeof __dirname < "u" && (g.__dirname = __dirname), typeof __filename < "u" && (g.__filename = __filename), typeof Buffer < "u" && (g.Buffer = Buffer), E) {
12338
- var L = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : zt)("url");
12368
+ var C = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : zt)("url");
12339
12369
  Object.defineProperty(g, "location", {
12340
12370
  value: {
12341
12371
  get href() {
12342
- return L.pathToFileURL ? L.pathToFileURL(process.cwd()).href + "/" : "file://" + (function() {
12372
+ return C.pathToFileURL ? C.pathToFileURL(process.cwd()).href + "/" : "file://" + (function() {
12343
12373
  var B = process.cwd();
12344
12374
  return process.platform != "win32" ? B : "/" + B.replace(/\\/g, "/");
12345
12375
  })() + "/";
@@ -12587,58 +12617,58 @@ function Mr() {
12587
12617
  }
12588
12618
  },
12589
12619
  Sort__dualPivotQuicksort(e, n, a, i) {
12590
- var s, l, p, _, M, b, O, D, y, $, q = A.JSInt_methods._tdivFast$1(a - n + 1, 6), h = n + q, T = a - q, C = A.JSInt_methods._tdivFast$1(n + a, 2), F = C - q, W = C + q, I = u.getInterceptor$asx(e), w = I.$index(e, h), N = I.$index(e, F), v = I.$index(e, C), P = I.$index(e, W), V = I.$index(e, T);
12591
- if (i.call$2(w, N) > 0 && (s = N, N = w, w = s), i.call$2(P, V) > 0 && (s = V, V = P, P = s), i.call$2(w, v) > 0 && (s = v, v = w, w = s), i.call$2(N, v) > 0 && (s = v, v = N, N = s), i.call$2(w, P) > 0 && (s = P, P = w, w = s), i.call$2(v, P) > 0 && (s = P, P = v, v = s), i.call$2(N, V) > 0 && (s = V, V = N, N = s), i.call$2(N, v) > 0 && (s = v, v = N, N = s), i.call$2(P, V) > 0 && (s = V, V = P, P = s), I.$indexSet(e, h, w), I.$indexSet(e, C, v), I.$indexSet(e, T, V), I.$indexSet(e, F, I.$index(e, n)), I.$indexSet(e, W, I.$index(e, a)), l = n + 1, p = a - 1, u.$eq$(i.call$2(N, P), 0)) {
12620
+ var s, l, p, _, M, b, O, D, y, $, q = A.JSInt_methods._tdivFast$1(a - n + 1, 6), h = n + q, T = a - q, L = A.JSInt_methods._tdivFast$1(n + a, 2), I = L - q, W = L + q, F = u.getInterceptor$asx(e), w = F.$index(e, h), N = F.$index(e, I), v = F.$index(e, L), P = F.$index(e, W), V = F.$index(e, T);
12621
+ if (i.call$2(w, N) > 0 && (s = N, N = w, w = s), i.call$2(P, V) > 0 && (s = V, V = P, P = s), i.call$2(w, v) > 0 && (s = v, v = w, w = s), i.call$2(N, v) > 0 && (s = v, v = N, N = s), i.call$2(w, P) > 0 && (s = P, P = w, w = s), i.call$2(v, P) > 0 && (s = P, P = v, v = s), i.call$2(N, V) > 0 && (s = V, V = N, N = s), i.call$2(N, v) > 0 && (s = v, v = N, N = s), i.call$2(P, V) > 0 && (s = V, V = P, P = s), F.$indexSet(e, h, w), F.$indexSet(e, L, v), F.$indexSet(e, T, V), F.$indexSet(e, I, F.$index(e, n)), F.$indexSet(e, W, F.$index(e, a)), l = n + 1, p = a - 1, u.$eq$(i.call$2(N, P), 0)) {
12592
12622
  for (_ = l; _ <= p; ++_)
12593
- if (M = I.$index(e, _), b = i.call$2(M, N), b !== 0)
12623
+ if (M = F.$index(e, _), b = i.call$2(M, N), b !== 0)
12594
12624
  if (b < 0)
12595
- _ !== l && (I.$indexSet(e, _, I.$index(e, l)), I.$indexSet(e, l, M)), ++l;
12625
+ _ !== l && (F.$indexSet(e, _, F.$index(e, l)), F.$indexSet(e, l, M)), ++l;
12596
12626
  else
12597
12627
  for (; ; )
12598
- if (b = i.call$2(I.$index(e, p), N), b > 0) {
12628
+ if (b = i.call$2(F.$index(e, p), N), b > 0) {
12599
12629
  --p;
12600
12630
  continue;
12601
12631
  } else if (O = p - 1, b < 0) {
12602
- I.$indexSet(e, _, I.$index(e, l)), D = l + 1, I.$indexSet(e, l, I.$index(e, p)), I.$indexSet(e, p, M), p = O, l = D;
12632
+ F.$indexSet(e, _, F.$index(e, l)), D = l + 1, F.$indexSet(e, l, F.$index(e, p)), F.$indexSet(e, p, M), p = O, l = D;
12603
12633
  break;
12604
12634
  } else {
12605
- I.$indexSet(e, _, I.$index(e, p)), I.$indexSet(e, p, M), p = O;
12635
+ F.$indexSet(e, _, F.$index(e, p)), F.$indexSet(e, p, M), p = O;
12606
12636
  break;
12607
12637
  }
12608
12638
  y = !0;
12609
12639
  } else {
12610
12640
  for (_ = l; _ <= p; ++_)
12611
- if (M = I.$index(e, _), i.call$2(M, N) < 0)
12612
- _ !== l && (I.$indexSet(e, _, I.$index(e, l)), I.$indexSet(e, l, M)), ++l;
12641
+ if (M = F.$index(e, _), i.call$2(M, N) < 0)
12642
+ _ !== l && (F.$indexSet(e, _, F.$index(e, l)), F.$indexSet(e, l, M)), ++l;
12613
12643
  else if (i.call$2(M, P) > 0)
12614
12644
  for (; ; )
12615
- if (i.call$2(I.$index(e, p), P) > 0) {
12645
+ if (i.call$2(F.$index(e, p), P) > 0) {
12616
12646
  if (--p, p < _)
12617
12647
  break;
12618
12648
  continue;
12619
12649
  } else {
12620
- O = p - 1, i.call$2(I.$index(e, p), N) < 0 ? (I.$indexSet(e, _, I.$index(e, l)), D = l + 1, I.$indexSet(e, l, I.$index(e, p)), I.$indexSet(e, p, M), l = D) : (I.$indexSet(e, _, I.$index(e, p)), I.$indexSet(e, p, M)), p = O;
12650
+ O = p - 1, i.call$2(F.$index(e, p), N) < 0 ? (F.$indexSet(e, _, F.$index(e, l)), D = l + 1, F.$indexSet(e, l, F.$index(e, p)), F.$indexSet(e, p, M), l = D) : (F.$indexSet(e, _, F.$index(e, p)), F.$indexSet(e, p, M)), p = O;
12621
12651
  break;
12622
12652
  }
12623
12653
  y = !1;
12624
12654
  }
12625
- if ($ = l - 1, I.$indexSet(e, n, I.$index(e, $)), I.$indexSet(e, $, N), $ = p + 1, I.$indexSet(e, a, I.$index(e, $)), I.$indexSet(e, $, P), o.Sort__doSort(e, n, l - 2, i), o.Sort__doSort(e, p + 2, a, i), !y)
12655
+ if ($ = l - 1, F.$indexSet(e, n, F.$index(e, $)), F.$indexSet(e, $, N), $ = p + 1, F.$indexSet(e, a, F.$index(e, $)), F.$indexSet(e, $, P), o.Sort__doSort(e, n, l - 2, i), o.Sort__doSort(e, p + 2, a, i), !y)
12626
12656
  if (l < h && p > T) {
12627
- for (; u.$eq$(i.call$2(I.$index(e, l), N), 0); )
12657
+ for (; u.$eq$(i.call$2(F.$index(e, l), N), 0); )
12628
12658
  ++l;
12629
- for (; u.$eq$(i.call$2(I.$index(e, p), P), 0); )
12659
+ for (; u.$eq$(i.call$2(F.$index(e, p), P), 0); )
12630
12660
  --p;
12631
12661
  for (_ = l; _ <= p; ++_)
12632
- if (M = I.$index(e, _), i.call$2(M, N) === 0)
12633
- _ !== l && (I.$indexSet(e, _, I.$index(e, l)), I.$indexSet(e, l, M)), ++l;
12662
+ if (M = F.$index(e, _), i.call$2(M, N) === 0)
12663
+ _ !== l && (F.$indexSet(e, _, F.$index(e, l)), F.$indexSet(e, l, M)), ++l;
12634
12664
  else if (i.call$2(M, P) === 0)
12635
12665
  for (; ; )
12636
- if (i.call$2(I.$index(e, p), P) === 0) {
12666
+ if (i.call$2(F.$index(e, p), P) === 0) {
12637
12667
  if (--p, p < _)
12638
12668
  break;
12639
12669
  continue;
12640
12670
  } else {
12641
- O = p - 1, i.call$2(I.$index(e, p), N) < 0 ? (I.$indexSet(e, _, I.$index(e, l)), D = l + 1, I.$indexSet(e, l, I.$index(e, p)), I.$indexSet(e, p, M), l = D) : (I.$indexSet(e, _, I.$index(e, p)), I.$indexSet(e, p, M)), p = O;
12671
+ O = p - 1, i.call$2(F.$index(e, p), N) < 0 ? (F.$indexSet(e, _, F.$index(e, l)), D = l + 1, F.$indexSet(e, l, F.$index(e, p)), F.$indexSet(e, p, M), l = D) : (F.$indexSet(e, _, F.$index(e, p)), F.$indexSet(e, p, M)), p = O;
12642
12672
  break;
12643
12673
  }
12644
12674
  o.Sort__doSort(e, l, p, i);
@@ -12880,14 +12910,14 @@ function Mr() {
12880
12910
  return o.Primitives__generalApplyFunction(e, n, a);
12881
12911
  },
12882
12912
  Primitives__generalApplyFunction(e, n, a) {
12883
- var i, s, l, p, _, M, b, O, D, y, $, q, h = Array.isArray(n) ? n : o.List_List$of(n, !0, r.dynamic), T = h.length, C = e.$requiredArgCount;
12884
- if (T < C)
12913
+ var i, s, l, p, _, M, b, O, D, y, $, q, h = Array.isArray(n) ? n : o.List_List$of(n, !0, r.dynamic), T = h.length, L = e.$requiredArgCount;
12914
+ if (T < L)
12885
12915
  return o.Primitives_functionNoSuchMethod(e, h, a);
12886
12916
  if (i = e.$defaultValues, s = i == null, l = s ? null : i(), p = u.getInterceptor$(e), _ = p["call*"], typeof _ == "string" && (_ = p[_]), s)
12887
- return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : T === C ? _.apply(e, h) : o.Primitives_functionNoSuchMethod(e, h, a);
12917
+ return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : T === L ? _.apply(e, h) : o.Primitives_functionNoSuchMethod(e, h, a);
12888
12918
  if (Array.isArray(l))
12889
- return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : (M = C + l.length, T > M ? o.Primitives_functionNoSuchMethod(e, h, null) : (T < M && (b = l.slice(T - C), h === n && (h = o.List_List$of(h, !0, r.dynamic)), A.JSArray_methods.addAll$1(h, b)), _.apply(e, h)));
12890
- if (T > C)
12919
+ return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : (M = L + l.length, T > M ? o.Primitives_functionNoSuchMethod(e, h, null) : (T < M && (b = l.slice(T - L), h === n && (h = o.List_List$of(h, !0, r.dynamic)), A.JSArray_methods.addAll$1(h, b)), _.apply(e, h)));
12920
+ if (T > L)
12891
12921
  return o.Primitives_functionNoSuchMethod(e, h, a);
12892
12922
  if (h === n && (h = o.List_List$of(h, !0, r.dynamic)), O = Object.keys(l), a == null)
12893
12923
  for (s = O.length, D = 0; D < O.length; O.length === s || (0, o.throwConcurrentModificationError)(O), ++D) {
@@ -12995,13 +13025,13 @@ function Mr() {
12995
13025
  return n;
12996
13026
  },
12997
13027
  Closure_fromTearOff(e) {
12998
- var n, a, i, s, l, p, _, M, b, O, D = e.co, y = e.iS, $ = e.iI, q = e.nDA, h = e.aI, T = e.fs, C = e.cs, F = T[0], W = C[0], I = D[F], w = e.fT;
13028
+ var n, a, i, s, l, p, _, M, b, O, D = e.co, y = e.iS, $ = e.iI, q = e.nDA, h = e.aI, T = e.fs, L = e.cs, I = T[0], W = L[0], F = D[I], w = e.fT;
12999
13029
  for (w.toString, n = Object.create(y ? new o.StaticClosure().constructor.prototype : new o.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, y ? a = function() {
13000
13030
  this.$initialize();
13001
13031
  } : a = function(v, P) {
13002
13032
  this.$initialize(v, P);
13003
- }, n.constructor = a, a.prototype = n, n.$_name = F, n.$_target = I, i = !y, i ? s = o.Closure_forwardCallTo(F, I, $, q) : (n.$static_name = F, s = I), n.$signature = o.Closure__computeSignatureFunctionNewRti(w, y, $), n[W] = s, l = s, p = 1; p < T.length; ++p)
13004
- _ = T[p], typeof _ == "string" ? (M = D[_], b = _, _ = M) : b = "", O = C[p], O != null && (i && (_ = o.Closure_forwardCallTo(b, _, $, q)), n[O] = _), p === h && (l = _);
13033
+ }, n.constructor = a, a.prototype = n, n.$_name = I, n.$_target = F, i = !y, i ? s = o.Closure_forwardCallTo(I, F, $, q) : (n.$static_name = I, s = F), n.$signature = o.Closure__computeSignatureFunctionNewRti(w, y, $), n[W] = s, l = s, p = 1; p < T.length; ++p)
13034
+ _ = T[p], typeof _ == "string" ? (M = D[_], b = _, _ = M) : b = "", O = L[p], O != null && (i && (_ = o.Closure_forwardCallTo(b, _, $, q)), n[O] = _), p === h && (l = _);
13005
13035
  return n["call*"] = l, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, a;
13006
13036
  },
13007
13037
  Closure__computeSignatureFunctionNewRti(e, n, a) {
@@ -13448,8 +13478,8 @@ function Mr() {
13448
13478
  return o._Universe_eval(S.typeUniverse, e, !1);
13449
13479
  },
13450
13480
  _substitute(e, n, a, i) {
13451
- var s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I = n._kind;
13452
- switch (I) {
13481
+ var s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F = n._kind;
13482
+ switch (F) {
13453
13483
  case 5:
13454
13484
  case 1:
13455
13485
  case 2:
@@ -13469,11 +13499,11 @@ function Mr() {
13469
13499
  case 12:
13470
13500
  return y = n._primary, $ = o._substitute(e, y, a, i), q = n._rest, h = o._substituteFunctionParameters(e, q, a, i), $ === y && h === q ? n : o._Universe__lookupFunctionRti(e, $, h);
13471
13501
  case 13:
13472
- return T = n._rest, i += T.length, C = o._substituteArray(e, T, a, i), M = n._primary, b = o._substitute(e, M, a, i), C === T && b === M ? n : o._Universe__lookupGenericFunctionRti(e, b, C, !0);
13502
+ return T = n._rest, i += T.length, L = o._substituteArray(e, T, a, i), M = n._primary, b = o._substitute(e, M, a, i), L === T && b === M ? n : o._Universe__lookupGenericFunctionRti(e, b, L, !0);
13473
13503
  case 14:
13474
- return F = n._primary, F < i || (W = a[F - i], W == null) ? n : W;
13504
+ return I = n._primary, I < i || (W = a[I - i], W == null) ? n : W;
13475
13505
  default:
13476
- throw o.wrapException(o.AssertionError$("Attempted to substitute unexpected RTI kind " + I));
13506
+ throw o.wrapException(o.AssertionError$("Attempted to substitute unexpected RTI kind " + F));
13477
13507
  }
13478
13508
  },
13479
13509
  _substituteArray(e, n, a, i) {
@@ -13735,7 +13765,7 @@ function Mr() {
13735
13765
  return l + "})";
13736
13766
  },
13737
13767
  _functionRtiToString(e, n, a) {
13738
- var i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P = ", ";
13768
+ var i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P = ", ";
13739
13769
  if (a != null) {
13740
13770
  for (i = a.length, n == null ? (n = o._setArrayType([], r.JSArray_String), s = null) : s = n.length, l = n.length, p = i; p > 0; --p)
13741
13771
  n.push("T" + (l + p));
@@ -13744,15 +13774,15 @@ function Mr() {
13744
13774
  b += ">";
13745
13775
  } else
13746
13776
  b = "", s = null;
13747
- for (_ = e._primary, q = e._rest, h = q._requiredPositional, T = h.length, C = q._optionalPositional, F = C.length, W = q._named, I = W.length, w = o._rtiToString(_, n), N = "", v = "", p = 0; p < T; ++p, v = P)
13777
+ for (_ = e._primary, q = e._rest, h = q._requiredPositional, T = h.length, L = q._optionalPositional, I = L.length, W = q._named, F = W.length, w = o._rtiToString(_, n), N = "", v = "", p = 0; p < T; ++p, v = P)
13748
13778
  N += v + o._rtiToString(h[p], n);
13749
- if (F > 0) {
13750
- for (N += v + "[", v = "", p = 0; p < F; ++p, v = P)
13751
- N += v + o._rtiToString(C[p], n);
13779
+ if (I > 0) {
13780
+ for (N += v + "[", v = "", p = 0; p < I; ++p, v = P)
13781
+ N += v + o._rtiToString(L[p], n);
13752
13782
  N += "]";
13753
13783
  }
13754
- if (I > 0) {
13755
- for (N += v + "{", v = "", p = 0; p < I; p += 3, v = P)
13784
+ if (F > 0) {
13785
+ for (N += v + "{", v = "", p = 0; p < F; p += 3, v = P)
13756
13786
  N += v, W[p + 1] && (N += "required "), N += o._rtiToString(W[p + 2], n) + " " + W[p];
13757
13787
  N += "}";
13758
13788
  }
@@ -14114,33 +14144,33 @@ function Mr() {
14114
14144
  return M === 12 ? n === r.JavaScriptFunction ? !0 : l ? !1 : o._isFunctionSubtype(e, n, a, i, s) : p === 9 ? M !== 9 ? !1 : o._isInterfaceSubtype(e, n, a, i, s) : (l = p === 11, l && i === r.Record ? !0 : l && M === 11 ? o._isRecordSubtype(e, n, a, i, s) : !1);
14115
14145
  },
14116
14146
  _isFunctionSubtype(e, n, a, i, s) {
14117
- var l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P, V, a0;
14147
+ var l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P, V, a0;
14118
14148
  if (!o._isSubtype(e, n._primary, a, i._primary, s) || (l = n._rest, p = i._rest, _ = l._requiredPositional, M = p._requiredPositional, b = _.length, O = M.length, b > O) || (D = O - b, y = l._optionalPositional, $ = p._optionalPositional, q = y.length, h = $.length, b + q < O + h))
14119
14149
  return !1;
14120
14150
  for (T = 0; T < b; ++T)
14121
- if (C = _[T], !o._isSubtype(e, M[T], s, C, a))
14151
+ if (L = _[T], !o._isSubtype(e, M[T], s, L, a))
14122
14152
  return !1;
14123
14153
  for (T = 0; T < D; ++T)
14124
- if (C = y[T], !o._isSubtype(e, M[b + T], s, C, a))
14154
+ if (L = y[T], !o._isSubtype(e, M[b + T], s, L, a))
14125
14155
  return !1;
14126
14156
  for (T = 0; T < h; ++T)
14127
- if (C = y[D + T], !o._isSubtype(e, $[T], s, C, a))
14157
+ if (L = y[D + T], !o._isSubtype(e, $[T], s, L, a))
14128
14158
  return !1;
14129
- for (F = l._named, W = p._named, I = F.length, w = W.length, N = 0, v = 0; v < w; v += 3)
14159
+ for (I = l._named, W = p._named, F = I.length, w = W.length, N = 0, v = 0; v < w; v += 3)
14130
14160
  for (P = W[v]; ; ) {
14131
- if (N >= I || (V = F[N], N += 3, P < V))
14161
+ if (N >= F || (V = I[N], N += 3, P < V))
14132
14162
  return !1;
14133
- if (a0 = F[N - 2], V < P) {
14163
+ if (a0 = I[N - 2], V < P) {
14134
14164
  if (a0)
14135
14165
  return !1;
14136
14166
  continue;
14137
14167
  }
14138
- if (C = W[v + 1], a0 && !C || (C = F[N - 1], !o._isSubtype(e, W[v + 2], s, C, a)))
14168
+ if (L = W[v + 1], a0 && !L || (L = I[N - 1], !o._isSubtype(e, W[v + 2], s, L, a)))
14139
14169
  return !1;
14140
14170
  break;
14141
14171
  }
14142
- for (; N < I; ) {
14143
- if (F[N + 1])
14172
+ for (; N < F; ) {
14173
+ if (I[N + 1])
14144
14174
  return !1;
14145
14175
  N += 3;
14146
14176
  }
@@ -14572,9 +14602,9 @@ function Mr() {
14572
14602
  return new o.DateTime(Date.now(), !1);
14573
14603
  },
14574
14604
  DateTime_parse(e) {
14575
- var n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C = R.$get$DateTime__parseFormat().firstMatch$1(e);
14576
- if (C != null) {
14577
- if (n = new o.DateTime_parse_parseIntOrZero(), a = C.__js_helper$_match, i = a[1], i.toString, s = o.int_parse(i), i = a[2], i.toString, l = o.int_parse(i), i = a[3], i.toString, p = o.int_parse(i), _ = n.call$1(a[4]), M = n.call$1(a[5]), b = n.call$1(a[6]), O = new o.DateTime_parse_parseMilliAndMicroseconds().call$1(a[7]), D = A.JSInt_methods._tdivFast$1(O, 1e3), a[8] != null ? (y = a[9], y != null && ($ = y === "-" ? -1 : 1, i = a[10], i.toString, q = o.int_parse(i), M -= $ * (n.call$1(a[11]) + 60 * q)), h = !0) : h = !1, T = o.Primitives_valueFromDecomposedDate(s, l, p, _, M, b, D + A.JSNumber_methods.round$0(O % 1e3 / 1e3), h), T == null)
14605
+ var n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L = R.$get$DateTime__parseFormat().firstMatch$1(e);
14606
+ if (L != null) {
14607
+ if (n = new o.DateTime_parse_parseIntOrZero(), a = L.__js_helper$_match, i = a[1], i.toString, s = o.int_parse(i), i = a[2], i.toString, l = o.int_parse(i), i = a[3], i.toString, p = o.int_parse(i), _ = n.call$1(a[4]), M = n.call$1(a[5]), b = n.call$1(a[6]), O = new o.DateTime_parse_parseMilliAndMicroseconds().call$1(a[7]), D = A.JSInt_methods._tdivFast$1(O, 1e3), a[8] != null ? (y = a[9], y != null && ($ = y === "-" ? -1 : 1, i = a[10], i.toString, q = o.int_parse(i), M -= $ * (n.call$1(a[11]) + 60 * q)), h = !0) : h = !1, T = o.Primitives_valueFromDecomposedDate(s, l, p, _, M, b, D + A.JSNumber_methods.round$0(O % 1e3 / 1e3), h), T == null)
14578
14608
  throw o.wrapException(o.FormatException$("Time out of range", e, null));
14579
14609
  return o.DateTime$_withValue(T, h);
14580
14610
  } else
@@ -14835,9 +14865,9 @@ function Mr() {
14835
14865
  var p = this;
14836
14866
  p.digest = n, p._extended = a, p._hash_sink$_sink = i, p._currentChunk = s, p._lengthInBytes = 0, p._pendingData = l, p._isClosed = !1;
14837
14867
  },
14838
- DateSymbols: function(n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C) {
14839
- var F = this;
14840
- F.NAME = n, F.ERAS = a, F.ERANAMES = i, F.NARROWMONTHS = s, F.STANDALONENARROWMONTHS = l, F.MONTHS = p, F.STANDALONEMONTHS = _, F.SHORTMONTHS = M, F.STANDALONESHORTMONTHS = b, F.WEEKDAYS = O, F.STANDALONEWEEKDAYS = D, F.SHORTWEEKDAYS = y, F.STANDALONESHORTWEEKDAYS = $, F.STANDALONENARROWWEEKDAYS = q, F.SHORTQUARTERS = h, F.QUARTERS = T, F.AMPMS = C;
14868
+ DateSymbols: function(n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L) {
14869
+ var I = this;
14870
+ I.NAME = n, I.ERAS = a, I.ERANAMES = i, I.NARROWMONTHS = s, I.STANDALONENARROWMONTHS = l, I.MONTHS = p, I.STANDALONEMONTHS = _, I.SHORTMONTHS = M, I.STANDALONESHORTMONTHS = b, I.WEEKDAYS = O, I.STANDALONEWEEKDAYS = D, I.SHORTWEEKDAYS = y, I.STANDALONESHORTWEEKDAYS = $, I.STANDALONENARROWWEEKDAYS = q, I.SHORTQUARTERS = h, I.QUARTERS = T, I.AMPMS = L;
14841
14871
  },
14842
14872
  DateBuilder: function(n, a) {
14843
14873
  var i = this;
@@ -15452,8 +15482,8 @@ function Mr() {
15452
15482
  var y = this;
15453
15483
  y.sparklineDimension = n, y.isCumulative = a, y.schemaNames = i, y.dimensions = s, y.metrics = l, y.filters = p, y.sorts = _, y.limit = M, y.isComparable = b, y.periodType = O, y.timezone = D;
15454
15484
  },
15455
- TableDatasourceConfigModel$(e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W) {
15456
- return new o.TableDatasourceConfigModel(n, _, C, y, $, h, l, i, q, e, M, T, a, O, s, F, b, p, D, W);
15485
+ TableDatasourceConfigModel$(e, n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W) {
15486
+ return new o.TableDatasourceConfigModel(n, _, L, y, $, h, l, i, q, e, M, T, a, O, s, I, b, p, D, W);
15457
15487
  },
15458
15488
  TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson(e) {
15459
15489
  var n, a, i, s, l, p, _, M, b, O = "showGrandTotal", D = o.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(e), y = e.$index(0, "rollup");
@@ -15497,9 +15527,9 @@ function Mr() {
15497
15527
  DataSourceRowColumnConfig_columnIds_closure1: function(n) {
15498
15528
  this.$this = n;
15499
15529
  },
15500
- TableDatasourceConfigModel: function(n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I) {
15530
+ TableDatasourceConfigModel: function(n, a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F) {
15501
15531
  var w = this;
15502
- w.columnsWidth = n, w.isDrillable = a, w.showGrandTotal = i, w.rollup = s, w.rollupPosition = l, w.rowsPerPage = p, w.isBlend = _, w._drillDimension = M, w._rowIds = b, w._columnIds = O, w._joinDatasources = D, w.schemaNames = y, w.dimensions = $, w.metrics = q, w.filters = h, w.sorts = T, w.limit = C, w.isComparable = F, w.periodType = W, w.timezone = I;
15532
+ w.columnsWidth = n, w.isDrillable = a, w.showGrandTotal = i, w.rollup = s, w.rollupPosition = l, w.rowsPerPage = p, w.isBlend = _, w._drillDimension = M, w._rowIds = b, w._columnIds = O, w._joinDatasources = D, w.schemaNames = y, w.dimensions = $, w.metrics = q, w.filters = h, w.sorts = T, w.limit = L, w.isComparable = I, w.periodType = W, w.timezone = F;
15503
15533
  },
15504
15534
  TableDatasourceConfigModel_drilledDimensions_closure: function(n) {
15505
15535
  this.$this = n;
@@ -15583,28 +15613,28 @@ function Mr() {
15583
15613
  return e instanceof o.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? a = !0 : a = e instanceof o.ScorecardDatasourceConfigModel && e.isCumulative, a ? (a = r.XYDatasetModel, o.List_List$of(o.ListExtensions_mapIndexed(n, new o.accumulate_closure(e), a, a), !0, a)) : n;
15584
15614
  },
15585
15615
  formatBaseXYChartData(e, n, a, i, s) {
15586
- var l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0, C0, Z, x0, N0, h0 = null;
15616
+ var l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P, V, a0, i0, M0, z0, q0, D0, L0, C0, Z, x0, N0, h0 = null;
15587
15617
  if (a.length === 0)
15588
15618
  return l = o._setArrayType([], r.JSArray_String), p = o._setArrayType([], r.JSArray_XYDatasetModel), _ = o.IterableExtension_get_firstOrNull(a), new o.BaseXYChartDataModel(e, l, p, new o.DateComparison(_ == null ? h0 : _.dateRange, h0));
15589
15619
  for (M = A.JSArray_methods.get$first(a).columns, l = o._arrayInstanceType(M), p = l._eval$1("WhereIterable<1>"), b = o.List_List$of(new o.WhereIterable(M, new o.formatBaseXYChartData_closure(), p), !0, p._eval$1("Iterable.E")), p = o._arrayInstanceType(b)._eval$1("WhereIterable<1>"), O = o.List_List$of(new o.WhereIterable(b, new o.formatBaseXYChartData_closure0(), p), !0, p._eval$1("Iterable.E")), p = r.QueryResponse, D = o._formatRows(o.ListExtension_sublistOrEmpty(a, 0, 1, p), s), y = o._formatRows(o.ListExtension_sublistOrEmpty(a, 1, 2, p), s), y.length !== 0 && (l = l._eval$1("MappedListIterable<1,ComparisonDataColumn>"), $ = o.List_List$of(new o.MappedListIterable(M, new o.formatBaseXYChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), q = o.compare(new o.ComparisonData($, y), new o.ComparisonData($, D)), y = q.comparison, D = q.main), l = r.String, p = o.LinkedHashMap_LinkedHashMap$_empty(l, r.bool), _ = O.length, h = 0; T = O.length, h < T; O.length === _ || (0, o.throwConcurrentModificationError)(O), ++h)
15590
- C = O[h], p.$indexSet(0, C.id, C.nullable);
15620
+ L = O[h], p.$indexSet(0, L.id, L.nullable);
15591
15621
  for (_ = o.LinkedHashMap_LinkedHashMap$_empty(l, l), h = 0; h < O.length; O.length === T || (0, o.throwConcurrentModificationError)(O), ++h)
15592
- C = O[h], _.$indexSet(0, C.id, C.label);
15593
- if (F = o.LinkedHashMap_LinkedHashMap$_empty(l, l), W = o.LinkedHashMap_LinkedHashMap$_empty(l, l), n.breakdownDimension == null) {
15594
- for (T = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), I = 0; I < M.length; ++I)
15595
- T.$indexSet(0, M[I].id, I);
15596
- for (F.addAll$1(0, _), w = O.length, h = 0; h < O.length; O.length === w || (0, o.throwConcurrentModificationError)(O), ++h)
15622
+ L = O[h], _.$indexSet(0, L.id, L.label);
15623
+ if (I = o.LinkedHashMap_LinkedHashMap$_empty(l, l), W = o.LinkedHashMap_LinkedHashMap$_empty(l, l), n.breakdownDimension == null) {
15624
+ for (T = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), F = 0; F < M.length; ++F)
15625
+ T.$indexSet(0, M[F].id, F);
15626
+ for (I.addAll$1(0, _), w = O.length, h = 0; h < O.length; O.length === w || (0, o.throwConcurrentModificationError)(O), ++h)
15597
15627
  N = O[h].id, W.$indexSet(0, N, N);
15598
15628
  w = o._arrayInstanceType(D)._eval$1("ExpandIterable<1,List<@>>"), D = o.List_List$of(new o.ExpandIterable(D, new o.formatBaseXYChartData_closure2(O, T), w), !0, w._eval$1("Iterable.E")), y.length !== 0 && (w = o._arrayInstanceType(y)._eval$1("ExpandIterable<1,List<@>>"), y = o.List_List$of(new o.ExpandIterable(y, new o.formatBaseXYChartData_closure3(O, T), w), !0, w._eval$1("Iterable.E")));
15599
15629
  } else if (b.length > 1) {
15600
- for (T = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), I = 0; I < M.length; ++I)
15601
- T.$indexSet(0, M[I].id, I);
15602
- T = new o.formatBaseXYChartData_expandRowsByMetric(A.JSArray_methods.indexWhere$1(M, new o.formatBaseXYChartData_closure4(n)), O, T, _, F, W), D = T.call$1(D), y.length !== 0 && (y = T.call$1(y));
15630
+ for (T = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), F = 0; F < M.length; ++F)
15631
+ T.$indexSet(0, M[F].id, F);
15632
+ T = new o.formatBaseXYChartData_expandRowsByMetric(A.JSArray_methods.indexWhere$1(M, new o.formatBaseXYChartData_closure4(n)), O, T, _, I, W), D = T.call$1(D), y.length !== 0 && (y = T.call$1(y));
15603
15633
  }
15604
15634
  for (T = r.JSArray_String, v = o._setArrayType([], T), P = o._setArrayType([], T), T = D.length, h = 0; h < D.length; D.length === T || (0, o.throwConcurrentModificationError)(D), ++h)
15605
15635
  V = D[h], w = u.getInterceptor$asx(V), v.push(u.toString$0$(w.$index(V, 0))), P.push(u.toString$0$(w.$index(V, 1)));
15606
15636
  for (T = o.LinkedHashSet_LinkedHashSet$from(v, l), v = o.List_List$of(T, !0, o._instanceType(T)._precomputed1), l = o.LinkedHashSet_LinkedHashSet$from(P, l), a0 = o.List_List$of(l, !0, o._instanceType(l)._precomputed1), i0 = o._setArrayType([], r.JSArray_XYDatasetModel), l = a0.length, T = u.getInterceptor$asx(y), w = r.JSArray_nullable_num, h = 0; h < a0.length; a0.length === l || (0, o.throwConcurrentModificationError)(a0), ++h) {
15607
- for (M0 = a0[h], z0 = o._setArrayType([], w), q0 = o._setArrayType([], w), D0 = W.$index(0, M0), N = p.$index(0, D0 ?? M0), L0 = N === !0, N = F.$index(0, M0), C0 = N ?? _.$index(0, M0), C0 == null && (C0 = M0), N = v.length, Z = 0; Z < v.length; v.length === N || (0, o.throwConcurrentModificationError)(v), ++Z)
15637
+ for (M0 = a0[h], z0 = o._setArrayType([], w), q0 = o._setArrayType([], w), D0 = W.$index(0, M0), N = p.$index(0, D0 ?? M0), L0 = N === !0, N = I.$index(0, M0), C0 = N ?? _.$index(0, M0), C0 == null && (C0 = M0), N = v.length, Z = 0; Z < v.length; v.length === N || (0, o.throwConcurrentModificationError)(v), ++Z)
15608
15638
  x0 = v[Z], N0 = o.IterableExtension_firstWhereOrNull(D, new o.formatBaseXYChartData_closure5(x0, M0)), z0.push(o._parseMetricValue(N0 == null ? h0 : o.ListExtension_elementAtOrNull(N0, 2), L0)), T.get$length(y) !== 0 && (N0 = o.IterableExtension_firstWhereOrNull(y, new o.formatBaseXYChartData_closure6(x0, M0)), q0.push(o._parseMetricValue(N0 == null ? h0 : o.ListExtension_elementAtOrNull(N0, 2), L0)));
15609
15639
  i0.push(new o.XYDatasetModel(C0, !1, z0)), q0.length !== 0 && i0.push(new o.XYDatasetModel(C0, !0, q0));
15610
15640
  }
@@ -15675,14 +15705,14 @@ function Mr() {
15675
15705
  return n.length === 0 ? o._setArrayType([], r.JSArray_List_dynamic) : (i = A.JSArray_methods.get$first(n), s = i.rows, l = o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), o.List_List$of(new o.MappedListIterable(s, new o._formatRows_closure0(i, a), l), !0, l._eval$1("ListIterable.E")));
15676
15706
  },
15677
15707
  formatCircularChartData(e, n, a, i) {
15678
- var s, l, p, _, M, b, O, D, y, $, q, h, T, C, F = null;
15708
+ var s, l, p, _, M, b, O, D, y, $, q, h, T, L, I = null;
15679
15709
  if (n.length === 0)
15680
- return s = o._setArrayType([], r.JSArray_String), new o.CircularDataModel(o._setArrayType([], r.JSArray_CircularDatasetModel), s, new o.DateComparison(F, F));
15710
+ return s = o._setArrayType([], r.JSArray_String), new o.CircularDataModel(o._setArrayType([], r.JSArray_CircularDatasetModel), s, new o.DateComparison(I, I));
15681
15711
  for (s = r.QueryResponse, l = o._formatRows0(e, o.ListExtension_sublistOrEmpty(n, 0, 1, s), i), p = o._formatRows0(e, o.ListExtension_sublistOrEmpty(n, 1, 2, s), i), _ = A.JSArray_methods.get$first(n).columns, p.length !== 0 && (s = o._arrayInstanceType(_)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), M = o.List_List$of(new o.MappedListIterable(_, new o.formatCircularChartData_closure(), s), !0, s._eval$1("ListIterable.E")), b = o.compare(new o.ComparisonData(M, p), new o.ComparisonData(M, l)), p = b.comparison, l = b.main), s = r.JSArray_String, O = o._setArrayType([], s), D = l.length, y = 0; y < l.length; l.length === D || (0, o.throwConcurrentModificationError)(l), ++y)
15682
15712
  O.push(u.toString$0$(u.$index$asx(l[y], 0)));
15683
15713
  for (D = o.LinkedHashSet_LinkedHashSet$from(O, r.String), O = o.List_List$of(D, !0, o._instanceType(D)._precomputed1), $ = o._setArrayType([], r.JSArray_CircularDatasetModel), D = O.length, y = 0; y < D; ++y)
15684
- q = O[y], h = o.IterableExtension_firstWhereOrNull(l, new o.formatCircularChartData_closure0(q)), T = h == null ? F : o.ListExtension_elementAtOrNull(h, 1), T == null && (T = 0), p.length !== 0 ? (h = o.IterableExtension_firstWhereOrNull(p, new o.formatCircularChartData_closure1(q)), C = h == null ? F : o.ListExtension_elementAtOrNull(h, 1), C == null && (C = 0)) : C = F, $.push(new o.CircularDatasetModel(q, o.num_parse(T), C));
15685
- return s = o.IterableExtension_foldIndexed(_, o._setArrayType([], s), new o.formatCircularChartData_closure2()), D = o.IterableExtension_get_firstOrNull(n), D = D == null ? F : D.dateRange, h = o.ListExtension_elementAtOrNull(n, 1), new o.CircularDataModel($, s, new o.DateComparison(D, h == null ? F : h.dateRange));
15714
+ q = O[y], h = o.IterableExtension_firstWhereOrNull(l, new o.formatCircularChartData_closure0(q)), T = h == null ? I : o.ListExtension_elementAtOrNull(h, 1), T == null && (T = 0), p.length !== 0 ? (h = o.IterableExtension_firstWhereOrNull(p, new o.formatCircularChartData_closure1(q)), L = h == null ? I : o.ListExtension_elementAtOrNull(h, 1), L == null && (L = 0)) : L = I, $.push(new o.CircularDatasetModel(q, o.num_parse(T), L));
15715
+ return s = o.IterableExtension_foldIndexed(_, o._setArrayType([], s), new o.formatCircularChartData_closure2()), D = o.IterableExtension_get_firstOrNull(n), D = D == null ? I : D.dateRange, h = o.ListExtension_elementAtOrNull(n, 1), new o.CircularDataModel($, s, new o.DateComparison(D, h == null ? I : h.dateRange));
15686
15716
  },
15687
15717
  _formatRows_closure0: function(n, a) {
15688
15718
  this.response = n, this.timezone = a;
@@ -15711,14 +15741,14 @@ function Mr() {
15711
15741
  return new o.RowInfo(l, u.map$1$1$ax(a, new o._getRowInfo_closure(e, n, i, l), s).join$0(0));
15712
15742
  },
15713
15743
  compare(e, n) {
15714
- var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N = {};
15744
+ var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N = {};
15715
15745
  for (N.comparisonDateIndex = N.mainDateIndex = null, a = N.comparisonIndexesCompleted = N.mainIndexesCompleted = !1, i = n.columns, s = r.JSArray_int, l = o.IterableExtension_foldIndexed(i, o._setArrayType([], s), new o.compare_closure(N)), p = o.IterableExtension_foldIndexed(e.columns, o._setArrayType([], s), new o.compare_closure0(N)), s = r.JSArray_String, N.dates = o._setArrayType([], s), (N.mainDateIndex != null ? N.comparisonDateIndex != null : a) && (a = r.String, a = o.ListExtensions_mapIndexed(A.JSArray_methods.fold$2(n.rows, o._setArrayType([], s), new o.compare_closure1(N)), new o.compare_closure2(A.JSArray_methods.fold$2(e.rows, o._setArrayType([], s), new o.compare_closure3(N))), a, a), N.dates = o.List_List$of(a, !0, a.$ti._eval$1("Iterable.E"))), _ = A.JSArray_methods.fold$2(e.rows, o.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new o.compare_closure4(N, e, p)), a = r.JSArray_List_dynamic, s = o._setArrayType([], a), a = o._setArrayType([], a), M = n.rows, b = M.length, O = r.JSArray_dynamic, D = u.getInterceptor$asx(l), y = r.dynamic, $ = 0; $ < M.length; M.length === b || (0, o.throwConcurrentModificationError)(M), ++$) {
15716
- if (q = M[$], h = o._getRowInfo(i, N.dates, l, q), T = _.$index(0, h.id), C = T == null ? null : u.toList$0$ax(T), C == null) {
15717
- for (T = h.row, F = o.List_List$of(o.ListExtensions_slice(T, 0, D.get$length(l), y), !0, y), W = T.length - D.get$length(l), W < 0 && o.throwExpression(o.ArgumentError$("Length must be a non-negative integer: " + W)), I = o._setArrayType(new Array(W), O), w = 0; w < W; ++w)
15718
- I[w] = null;
15719
- A.JSArray_methods.addAll$1(F, I), C = F;
15746
+ if (q = M[$], h = o._getRowInfo(i, N.dates, l, q), T = _.$index(0, h.id), L = T == null ? null : u.toList$0$ax(T), L == null) {
15747
+ for (T = h.row, I = o.List_List$of(o.ListExtensions_slice(T, 0, D.get$length(l), y), !0, y), W = T.length - D.get$length(l), W < 0 && o.throwExpression(o.ArgumentError$("Length must be a non-negative integer: " + W)), F = o._setArrayType(new Array(W), O), w = 0; w < W; ++w)
15748
+ F[w] = null;
15749
+ A.JSArray_methods.addAll$1(I, F), L = I;
15720
15750
  }
15721
- s.push(h.row), a.push(C);
15751
+ s.push(h.row), a.push(L);
15722
15752
  }
15723
15753
  return new o.ComparisonResult(s, a);
15724
15754
  },
@@ -15773,8 +15803,8 @@ function Mr() {
15773
15803
  return new o.SparklineDataModel(A.SparklineType_0, _, o.accumulate(e, D));
15774
15804
  },
15775
15805
  formatScoreCardChartData(e, n, a, i) {
15776
- var s, l, p, _, M, b, O, D, y, $, q, h, T, C, F = null;
15777
- return n.length === 0 ? new o.ScorecardDataModel(F, F, F, F) : (s = A.JSArray_methods.get$first(n).columns, s = new o.WhereIterable(s, new o.formatScoreCardChartData_closure(), o._arrayInstanceType(s)._eval$1("WhereIterable<1>")), l = s.get$first(s), s = r.QueryResponse, p = o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, 0, 1, s)), _ = p == null ? F : o.IterableExtension_get_firstOrNull(p.rows), M = e.sparklineDimension != null, b = M ? o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, 1, 2, s)) : F, O = M ? 2 : 1, s = o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, O, O + 1, s)), D = s == null ? F : o.IterableExtension_get_firstOrNull(s.rows), s = l.dataType, p = _ == null ? F : _.value.$index(0, l.id), y = l.optionType, $ = l.aggregationType, q = l.decimal, h = l.timeFormatter, T = l.formatter, p = o.DataTypeExtension_toDisplay(s, $, a, q, y, T, !1, h, i, p), C = D == null, (C ? F : D.value.$index(0, l.id)) != null ? s = o.DataTypeExtension_toDisplay(s, $, a, q, y, T, !1, h, i, C ? F : D.value.$index(0, l.id)) : s = F, new o.ScorecardDataModel(F, p, s, o._formatSparkline(e, b, a, i)));
15806
+ var s, l, p, _, M, b, O, D, y, $, q, h, T, L, I = null;
15807
+ return n.length === 0 ? new o.ScorecardDataModel(I, I, I, I) : (s = A.JSArray_methods.get$first(n).columns, s = new o.WhereIterable(s, new o.formatScoreCardChartData_closure(), o._arrayInstanceType(s)._eval$1("WhereIterable<1>")), l = s.get$first(s), s = r.QueryResponse, p = o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, 0, 1, s)), _ = p == null ? I : o.IterableExtension_get_firstOrNull(p.rows), M = e.sparklineDimension != null, b = M ? o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, 1, 2, s)) : I, O = M ? 2 : 1, s = o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, O, O + 1, s)), D = s == null ? I : o.IterableExtension_get_firstOrNull(s.rows), s = l.dataType, p = _ == null ? I : _.value.$index(0, l.id), y = l.optionType, $ = l.aggregationType, q = l.decimal, h = l.timeFormatter, T = l.formatter, p = o.DataTypeExtension_toDisplay(s, $, a, q, y, T, !1, h, i, p), L = D == null, (L ? I : D.value.$index(0, l.id)) != null ? s = o.DataTypeExtension_toDisplay(s, $, a, q, y, T, !1, h, i, L ? I : D.value.$index(0, l.id)) : s = I, new o.ScorecardDataModel(I, p, s, o._formatSparkline(e, b, a, i)));
15778
15808
  },
15779
15809
  _formatSparkline_closure: function(n, a, i) {
15780
15810
  this.response = n, this.country = a, this.timezone = i;
@@ -15797,14 +15827,14 @@ function Mr() {
15797
15827
  formatScoreCardChartData_closure: function() {
15798
15828
  },
15799
15829
  _formatTableResponse(e, n, a, i) {
15800
- var s, l, p, _, M, b, O, D, y, $, q, h = null, T = a.columns, C = o._arrayInstanceType(T), F = C._eval$1("WhereIterable<1>"), W = r.String;
15801
- for (C = o.List_List$of(new o.MappedIterable(new o.WhereIterable(T, new o._formatTableResponse_closure(e), F), new o._formatTableResponse_closure0(), C._eval$1("MappedIterable<1,String>")), !0, W), s = e.get$rowIds(), l = r.List__Header_dynamic, s = o.List_List$of(new o.MappedListIterable(s, new o._formatTableResponse_closure1(a), o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<_Header<@>>>")), !0, l), p = r.JSArray_List__Header_dynamic, A.JSArray_methods.addAll$1(s, A.JSArray_methods.fold$2(C, o._setArrayType([], p), new o._formatTableResponse_closure2(a))), _ = o.List_List$of(new o.WhereIterable(T, new o._formatTableResponse_closure3(), F), !0, F._eval$1("Iterable.E")), F = o.LinkedHashMap_LinkedHashMap$_empty(W, r.QueryResponseColumn), T = _.length, M = 0; M < _.length; _.length === T || (0, o.throwConcurrentModificationError)(_), ++M)
15802
- b = _[M], F.$indexSet(0, b.id, b);
15803
- for (T = o.List_List$of(o.ListExtensions_mapIndexed(e.get$columnIds(), new o._formatTableResponse_closure4(e, F, a), W, l), !0, l), T.length !== 0 ? (O = o._setArrayType([], p), o._getRecursivePermutations(T, O, 0, o._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), D = O) : D = [], T = o.List_List$of(s, !0, l), C = D.length, M = 0; M < D.length; D.length === C || (0, o.throwConcurrentModificationError)(D), ++M)
15830
+ var s, l, p, _, M, b, O, D, y, $, q, h = null, T = a.columns, L = o._arrayInstanceType(T), I = L._eval$1("WhereIterable<1>"), W = r.String;
15831
+ for (L = o.List_List$of(new o.MappedIterable(new o.WhereIterable(T, new o._formatTableResponse_closure(e), I), new o._formatTableResponse_closure0(), L._eval$1("MappedIterable<1,String>")), !0, W), s = e.get$rowIds(), l = r.List__Header_dynamic, s = o.List_List$of(new o.MappedListIterable(s, new o._formatTableResponse_closure1(a), o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<_Header<@>>>")), !0, l), p = r.JSArray_List__Header_dynamic, A.JSArray_methods.addAll$1(s, A.JSArray_methods.fold$2(L, o._setArrayType([], p), new o._formatTableResponse_closure2(a))), _ = o.List_List$of(new o.WhereIterable(T, new o._formatTableResponse_closure3(), I), !0, I._eval$1("Iterable.E")), I = o.LinkedHashMap_LinkedHashMap$_empty(W, r.QueryResponseColumn), T = _.length, M = 0; M < _.length; _.length === T || (0, o.throwConcurrentModificationError)(_), ++M)
15832
+ b = _[M], I.$indexSet(0, b.id, b);
15833
+ for (T = o.List_List$of(o.ListExtensions_mapIndexed(e.get$columnIds(), new o._formatTableResponse_closure4(e, I, a), W, l), !0, l), T.length !== 0 ? (O = o._setArrayType([], p), o._getRecursivePermutations(T, O, 0, o._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), D = O) : D = [], T = o.List_List$of(s, !0, l), L = D.length, M = 0; M < D.length; D.length === L || (0, o.throwConcurrentModificationError)(D), ++M)
15804
15834
  T.push(D[M]);
15805
- for (e.get$columnIds().length === 0 && A.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && T.push(o._setArrayType([new o._Header("_metric_value", "Value", h, h, A.DATA_TYPE_3, h, h, !1, h, h, h, !1)], r.JSArray__Header_dynamic)), T.push(o._setArrayType([new o._Header("_is_rollup", "Rollup", h, h, A.DATA_TYPE_2, h, h, !0, h, h, h, !1)], r.JSArray__Header_dynamic)), C = r.Map_String_dynamic, y = o.LinkedHashMap_LinkedHashMap$_empty(W, C), F = u.get$iterator$ax(A.JSArray_methods.fold$2(a.rows, o._setArrayType([], r.JSArray_Map_String_dynamic), new o._formatTableResponse_closure5(T, _))), W = r.dynamic; F.moveNext$0(); )
15806
- s = F.get$current(), $ = o._asString(s.$index(0, "id")), q = y.$index(0, $), q == null ? y.$indexSet(0, $, s) : (s = o.ListExtensions_mapIndexed(o.List_List$from(q.$index(0, "value"), W), new o._formatTableResponse_closure6(T, s), W, W), q.$indexSet(0, "value", o.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
15807
- return F = y.get$values(y), C = o.ListExtensions_mapIndexed(o.List_List$of(F, !0, o._instanceType(F)._eval$1("Iterable.E")), new o._formatTableResponse_closure7(), C, r.TableRowModel), F = o._arrayInstanceType(T)._eval$1("MappedListIterable<1,TableColumnModel>"), new o.TableDataModel(o.List_List$of(C, !0, C.$ti._eval$1("Iterable.E")), o.List_List$of(new o.MappedListIterable(T, new o._formatTableResponse_closure8(n, i), F), !0, F._eval$1("ListIterable.E")));
15835
+ for (e.get$columnIds().length === 0 && A.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && T.push(o._setArrayType([new o._Header("_metric_value", "Value", h, h, A.DATA_TYPE_3, h, h, !1, h, h, h, !1)], r.JSArray__Header_dynamic)), T.push(o._setArrayType([new o._Header("_is_rollup", "Rollup", h, h, A.DATA_TYPE_2, h, h, !0, h, h, h, !1)], r.JSArray__Header_dynamic)), L = r.Map_String_dynamic, y = o.LinkedHashMap_LinkedHashMap$_empty(W, L), I = u.get$iterator$ax(A.JSArray_methods.fold$2(a.rows, o._setArrayType([], r.JSArray_Map_String_dynamic), new o._formatTableResponse_closure5(T, _))), W = r.dynamic; I.moveNext$0(); )
15836
+ s = I.get$current(), $ = o._asString(s.$index(0, "id")), q = y.$index(0, $), q == null ? y.$indexSet(0, $, s) : (s = o.ListExtensions_mapIndexed(o.List_List$from(q.$index(0, "value"), W), new o._formatTableResponse_closure6(T, s), W, W), q.$indexSet(0, "value", o.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
15837
+ return I = y.get$values(y), L = o.ListExtensions_mapIndexed(o.List_List$of(I, !0, o._instanceType(I)._eval$1("Iterable.E")), new o._formatTableResponse_closure7(), L, r.TableRowModel), I = o._arrayInstanceType(T)._eval$1("MappedListIterable<1,TableColumnModel>"), new o.TableDataModel(o.List_List$of(L, !0, L.$ti._eval$1("Iterable.E")), o.List_List$of(new o.MappedListIterable(T, new o._formatTableResponse_closure8(n, i), I), !0, I._eval$1("ListIterable.E")));
15808
15838
  },
15809
15839
  _formatTableData(e, n, a, i) {
15810
15840
  var s, l, p, _, M, b, O, D, y, $, q = {};
@@ -15815,16 +15845,16 @@ function Mr() {
15815
15845
  return s = q.mainResponse, b = s.rows, O = o._arrayInstanceType(b)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(o.List_List$of(new o.MappedListIterable(b, new o._formatTableData_closure3(), O), !0, O._eval$1("ListIterable.E")));
15816
15846
  },
15817
15847
  formatTableChartData(e, n, a, i) {
15818
- var s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N, v, P = {};
15848
+ var s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N, v, P = {};
15819
15849
  if (n.length === 0)
15820
15850
  return new o.TableDataModel(o._setArrayType([], r.JSArray_TableRowModel), o._setArrayType([], r.JSArray_TableColumnModel));
15821
- for (e.isBlend && (s = o.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), A.JSArray_methods.addAll$1(s, A.JSArray_methods.fold$2(e.get$joinDatasources(), o._setArrayType([], r.JSArray_QueryRequestDimension), new o.formatTableChartData_closure())), l = o.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), A.JSArray_methods.addAll$1(l, A.JSArray_methods.fold$2(e.get$joinDatasources(), o._setArrayType([], r.JSArray_QueryRequestMetric), new o.formatTableChartData_closure0())), p = o._setArrayType([], r.JSArray_JoinDatasourceConfig), _ = e.rowsPerPage, M = e.get$columnIds(), b = e.get$rowIds(), O = e.get$drillDimension(), e = o.TableDatasourceConfigModel$(M, e.columnsWidth, s, O, e.filters, !0, e.isComparable, e.isDrillable, p, e.limit, l, e.periodType, e.rollup, e.rollupPosition, b, _, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), D = e.get$joinDatasources().length + 1, s = r.QueryResponse, y = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, 0, D, s), a, i), $ = P.comparison = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, D, D * 2, s), a, i), s = $.rows, s.length !== 0 && (l = y.rows, p = o._arrayInstanceType(l)._eval$1("MappedListIterable<1,List<@>>"), p = o.List_List$of(new o.MappedListIterable(l, new o.formatTableChartData_closure1(), p), !0, p._eval$1("ListIterable.E")), _ = y.columns, M = o._arrayInstanceType(_)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), M = o.List_List$of(new o.MappedListIterable(_, new o.formatTableChartData_closure2(), M), !0, M._eval$1("ListIterable.E")), _ = o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), _ = o.List_List$of(new o.MappedListIterable(s, new o.formatTableChartData_closure3(), _), !0, _._eval$1("ListIterable.E")), b = $.columns, O = o._arrayInstanceType(b)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), q = o.compare(new o.ComparisonData(o.List_List$of(new o.MappedListIterable(b, new o.formatTableChartData_closure4(), O), !0, O._eval$1("ListIterable.E")), _), new o.ComparisonData(M, p)), p = r.TableRowModel, l = o.ListExtensions_mapIndexed(l, new o.formatTableChartData_closure5(q), p, p), y = y.copyWith$1$rows(o.List_List$of(l, !0, l.$ti._eval$1("Iterable.E"))), p = o.ListExtensions_mapIndexed(s, new o.formatTableChartData_closure6(q), p, p), P.comparison = $.copyWith$1$rows(o.List_List$of(p, !0, p.$ti._eval$1("Iterable.E")))), s = y.columns, l = o._arrayInstanceType(s)._eval$1("WhereIterable<1>"), h = o.List_List$of(new o.WhereIterable(s, new o.formatTableChartData_closure7(), l), !0, l._eval$1("Iterable.E")), l = r.String, p = r.int, T = o.LinkedHashMap_LinkedHashMap$_empty(l, p), C = 0; C < s.length; ++C)
15822
- F = s[C], T.$indexSet(0, F.key + "_" + F.hide, C);
15823
- for (W = o.LinkedHashMap_LinkedHashMap$_empty(l, p), C = 0; s = P.comparison.columns, C < s.length; ++C)
15824
- F = s[C], W.$indexSet(0, F.key + "_" + F.hide, C);
15825
- for (I = o._setArrayType([], r.JSArray__ColumnMapping), s = h.length, w = 0; w < s; ++w)
15826
- F = h[w], l = F.key, N = l + "_" + F.hide, l = o.stringReplaceAllUnchecked(l, ".", "_"), p = T.$index(0, N), p == null && (p = -1), _ = W.$index(0, N), I.push(new o._ColumnMapping(F, l, p, _ ?? -1));
15827
- return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = o.List_List$of(new o.MappedListIterable(I, new o.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = P.comparison.rows.length, l = r.TableRowModel, l = o.ListExtensions_mapIndexed(y.rows, new o.formatTableChartData_closure9(P, I, a, i, s !== 0, s), l, l), y.copyWith$2$columns$rows(v, o.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")));
15851
+ for (e.isBlend && (s = o.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), A.JSArray_methods.addAll$1(s, A.JSArray_methods.fold$2(e.get$joinDatasources(), o._setArrayType([], r.JSArray_QueryRequestDimension), new o.formatTableChartData_closure())), l = o.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), A.JSArray_methods.addAll$1(l, A.JSArray_methods.fold$2(e.get$joinDatasources(), o._setArrayType([], r.JSArray_QueryRequestMetric), new o.formatTableChartData_closure0())), p = o._setArrayType([], r.JSArray_JoinDatasourceConfig), _ = e.rowsPerPage, M = e.get$columnIds(), b = e.get$rowIds(), O = e.get$drillDimension(), e = o.TableDatasourceConfigModel$(M, e.columnsWidth, s, O, e.filters, !0, e.isComparable, e.isDrillable, p, e.limit, l, e.periodType, e.rollup, e.rollupPosition, b, _, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), D = e.get$joinDatasources().length + 1, s = r.QueryResponse, y = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, 0, D, s), a, i), $ = P.comparison = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, D, D * 2, s), a, i), s = $.rows, s.length !== 0 && (l = y.rows, p = o._arrayInstanceType(l)._eval$1("MappedListIterable<1,List<@>>"), p = o.List_List$of(new o.MappedListIterable(l, new o.formatTableChartData_closure1(), p), !0, p._eval$1("ListIterable.E")), _ = y.columns, M = o._arrayInstanceType(_)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), M = o.List_List$of(new o.MappedListIterable(_, new o.formatTableChartData_closure2(), M), !0, M._eval$1("ListIterable.E")), _ = o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), _ = o.List_List$of(new o.MappedListIterable(s, new o.formatTableChartData_closure3(), _), !0, _._eval$1("ListIterable.E")), b = $.columns, O = o._arrayInstanceType(b)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), q = o.compare(new o.ComparisonData(o.List_List$of(new o.MappedListIterable(b, new o.formatTableChartData_closure4(), O), !0, O._eval$1("ListIterable.E")), _), new o.ComparisonData(M, p)), p = r.TableRowModel, l = o.ListExtensions_mapIndexed(l, new o.formatTableChartData_closure5(q), p, p), y = y.copyWith$1$rows(o.List_List$of(l, !0, l.$ti._eval$1("Iterable.E"))), p = o.ListExtensions_mapIndexed(s, new o.formatTableChartData_closure6(q), p, p), P.comparison = $.copyWith$1$rows(o.List_List$of(p, !0, p.$ti._eval$1("Iterable.E")))), s = y.columns, l = o._arrayInstanceType(s)._eval$1("WhereIterable<1>"), h = o.List_List$of(new o.WhereIterable(s, new o.formatTableChartData_closure7(), l), !0, l._eval$1("Iterable.E")), l = r.String, p = r.int, T = o.LinkedHashMap_LinkedHashMap$_empty(l, p), L = 0; L < s.length; ++L)
15852
+ I = s[L], T.$indexSet(0, I.key + "_" + I.hide, L);
15853
+ for (W = o.LinkedHashMap_LinkedHashMap$_empty(l, p), L = 0; s = P.comparison.columns, L < s.length; ++L)
15854
+ I = s[L], W.$indexSet(0, I.key + "_" + I.hide, L);
15855
+ for (F = o._setArrayType([], r.JSArray__ColumnMapping), s = h.length, w = 0; w < s; ++w)
15856
+ I = h[w], l = I.key, N = l + "_" + I.hide, l = o.stringReplaceAllUnchecked(l, ".", "_"), p = T.$index(0, N), p == null && (p = -1), _ = W.$index(0, N), F.push(new o._ColumnMapping(I, l, p, _ ?? -1));
15857
+ return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = o.List_List$of(new o.MappedListIterable(F, new o.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = P.comparison.rows.length, l = r.TableRowModel, l = o.ListExtensions_mapIndexed(y.rows, new o.formatTableChartData_closure9(P, F, a, i, s !== 0, s), l, l), y.copyWith$2$columns$rows(v, o.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")));
15828
15858
  },
15829
15859
  _formatTableResponse_closure: function(n) {
15830
15860
  this.config = n;
@@ -16222,16 +16252,16 @@ function Mr() {
16222
16252
  }, r.Location);
16223
16253
  },
16224
16254
  _deserializeLocation(e) {
16225
- var n, a, i, s, l = o.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), p = l.getUint32(0, !1), _ = l.getUint32(4, !1), M = l.getUint32(8, !1), b = l.getUint32(12, !1), O = l.getUint32(16, !1), D = l.getUint32(20, !1), y = l.getUint32(24, !1), $ = l.getUint32(28, !1), q = A.C_AsciiCodec.decode$1(o.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + p, _)), h = o._setArrayType([], r.JSArray_String), T = o._setArrayType([], r.JSArray_TimeZone), C = r.JSArray_int, F = o._setArrayType([], C), W = o._setArrayType([], C), I = M + b;
16226
- for (n = M, a = n; n < I; ++n)
16227
- e[n] === 0 && (C = e.buffer, i = e.byteOffset, C = new Uint8Array(C, i + a, n - a), h.push(A.C_AsciiCodec.decode$1(C)), a = n + 1);
16255
+ var n, a, i, s, l = o.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), p = l.getUint32(0, !1), _ = l.getUint32(4, !1), M = l.getUint32(8, !1), b = l.getUint32(12, !1), O = l.getUint32(16, !1), D = l.getUint32(20, !1), y = l.getUint32(24, !1), $ = l.getUint32(28, !1), q = A.C_AsciiCodec.decode$1(o.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + p, _)), h = o._setArrayType([], r.JSArray_String), T = o._setArrayType([], r.JSArray_TimeZone), L = r.JSArray_int, I = o._setArrayType([], L), W = o._setArrayType([], L), F = M + b;
16256
+ for (n = M, a = n; n < F; ++n)
16257
+ e[n] === 0 && (L = e.buffer, i = e.byteOffset, L = new Uint8Array(L, i + a, n - a), h.push(A.C_AsciiCodec.decode$1(L)), a = n + 1);
16228
16258
  for (a = O, n = 0; n < D; ++n, a = s)
16229
16259
  s = a + 8, T.push(new o.TimeZone(l.getInt32(a, !1) * 1e3, l.getUint8(a + 4) === 1, h[l.getUint8(a + 5)]));
16230
16260
  for (a = y, n = 0; n < $; ++n)
16231
- F.push(A.JSNumber_methods.toInt$0(l.getFloat64(a, !1)) * 1e3), a += 8;
16261
+ I.push(A.JSNumber_methods.toInt$0(l.getFloat64(a, !1)) * 1e3), a += 8;
16232
16262
  for (n = 0; n < $; ++n)
16233
16263
  W.push(l.getUint8(a)), ++a;
16234
- return o.Location$(q, F, W, T);
16264
+ return o.Location$(q, I, W, T);
16235
16265
  }
16236
16266
  }, u = {
16237
16267
  makeDispatchRecord(e, n, a, i) {
@@ -19267,8 +19297,8 @@ Arguments: [` + M + "]";
19267
19297
  }
19268
19298
  }, o.QueryResponse_fromJson_closure.prototype = {
19269
19299
  call$1(e) {
19270
- var n, a, i = null, s = "aggregationType", l = "optionType", p = "timeFormatter", _ = "formatter", M = o.EnumByName_byName(A.List_xDH, e.$index(0, "schema")), b = e.$index(0, "label"), O = o.EnumByName_byName(A.List_eOU, e.$index(0, "dataType")), D = o.EnumByName_byName(A.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), y = e.$index(0, "id"), $ = e.$index(0, s) != null ? o.EnumByName_byName(A.List_yzJ, e.$index(0, s)) : i, q = e.$index(0, l) != null ? o.EnumByName_byName(A.List_Ioo, e.$index(0, l)) : i, h = e.$index(0, "decimal"), T = e.$index(0, p) != null ? o.EnumByName_byName(A.List_YsB, e.$index(0, p)) : i, C = e.$index(0, _) != null ? o.EnumByName_byName(A.List_jXq, e.$index(0, _)) : i, F = e.$index(0, "nullable");
19271
- return F == null && (F = !1), n = e.$index(0, "hide"), n == null && (n = !1), a = e.$index(0, "dateComparison"), new o.QueryResponseColumn(M, b, O, D, y, $, q, h, T, C, F, n, a ?? !1);
19300
+ var n, a, i = null, s = "aggregationType", l = "optionType", p = "timeFormatter", _ = "formatter", M = o.EnumByName_byName(A.List_xDH, e.$index(0, "schema")), b = e.$index(0, "label"), O = o.EnumByName_byName(A.List_eOU, e.$index(0, "dataType")), D = o.EnumByName_byName(A.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), y = e.$index(0, "id"), $ = e.$index(0, s) != null ? o.EnumByName_byName(A.List_yzJ, e.$index(0, s)) : i, q = e.$index(0, l) != null ? o.EnumByName_byName(A.List_Ioo, e.$index(0, l)) : i, h = e.$index(0, "decimal"), T = e.$index(0, p) != null ? o.EnumByName_byName(A.List_YsB, e.$index(0, p)) : i, L = e.$index(0, _) != null ? o.EnumByName_byName(A.List_jXq, e.$index(0, _)) : i, I = e.$index(0, "nullable");
19301
+ return I == null && (I = !1), n = e.$index(0, "hide"), n == null && (n = !1), a = e.$index(0, "dateComparison"), new o.QueryResponseColumn(M, b, O, D, y, $, q, h, T, L, I, n, a ?? !1);
19272
19302
  },
19273
19303
  $signature: 96
19274
19304
  }, o.QueryResponse_fromJson_closure0.prototype = {
@@ -20072,14 +20102,14 @@ Arguments: [` + M + "]";
20072
20102
  $signature: 0
20073
20103
  }, o._formatTableResponse_closure5.prototype = {
20074
20104
  call$2(e, n) {
20075
- var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I, w, N = null, v = r.JSArray_List_dynamic, P = o._setArrayType([[]], v), V = o._setArrayType([[]], v);
20105
+ var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F, w, N = null, v = r.JSArray_List_dynamic, P = o._setArrayType([[]], v), V = o._setArrayType([[]], v);
20076
20106
  for (v = this.headers, a = n.value, i = r.dynamic, s = r.JSArray_String, l = r.String, p = this.metricColumns, _ = 0; _ < v.length; ++_)
20077
20107
  if (M = v[_], b = u.getInterceptor$ax(M), O = b.map$1$1(M, new o._formatTableResponse__closure4(), l).join$1(0, "|"), o.IterableExtension_firstWhereOrNull(M, new o._formatTableResponse__closure5()) != null)
20078
20108
  for (D = b.firstWhere$1(M, new o._formatTableResponse__closure6()), y = b.fold$2(M, !0, new o._formatTableResponse__closure7(n)), b = P.length, $ = D.type, q = D.columnValue, h = 0; h < P.length; P.length === b || (0, o.throwConcurrentModificationError)(P), ++h)
20079
- T = P[h], y ? (C = a.$index(0, q), F = T.length, _ >= F && A.JSArray_methods.addAll$1(T, o.List_List$filled(_ - F + 1, N, !1, i)), T[_] = C) : (C = $ == null ? N : o.DataTypeExtension_toData($, N), F = T.length, _ >= F && A.JSArray_methods.addAll$1(T, o.List_List$filled(_ - F + 1, N, !1, i)), T[_] = C);
20109
+ T = P[h], y ? (L = a.$index(0, q), I = T.length, _ >= I && A.JSArray_methods.addAll$1(T, o.List_List$filled(_ - I + 1, N, !1, i)), T[_] = L) : (L = $ == null ? N : o.DataTypeExtension_toData($, N), I = T.length, _ >= I && A.JSArray_methods.addAll$1(T, o.List_List$filled(_ - I + 1, N, !1, i)), T[_] = L);
20080
20110
  else if (A.JSArray_methods.contains$1(o._setArrayType(["_metric_name", "_metric_value"], s), O))
20081
20111
  for (b = O === "_metric_value", $ = O === "_metric_name", W = 0; W < p.length; ++W)
20082
- I = p[W], o.ListExtension_elementAtOrNull(P, W) == null && (P.push(o.List_List$of(P[0], !0, i)), V.push(o.List_List$of(V[0], !0, i))), $ ? (q = P[W], C = I.label, F = q.length, _ >= F && A.JSArray_methods.addAll$1(q, o.List_List$filled(_ - F + 1, N, !1, i)), q[_] = C, V[W].push(C)) : b && (q = P[W], C = a.$index(0, I.id), F = q.length, _ >= F && A.JSArray_methods.addAll$1(q, o.List_List$filled(_ - F + 1, N, !1, i)), q[_] = C);
20112
+ F = p[W], o.ListExtension_elementAtOrNull(P, W) == null && (P.push(o.List_List$of(P[0], !0, i)), V.push(o.List_List$of(V[0], !0, i))), $ ? (q = P[W], L = F.label, I = q.length, _ >= I && A.JSArray_methods.addAll$1(q, o.List_List$filled(_ - I + 1, N, !1, i)), q[_] = L, V[W].push(L)) : b && (q = P[W], L = a.$index(0, F.id), I = q.length, _ >= I && A.JSArray_methods.addAll$1(q, o.List_List$filled(_ - I + 1, N, !1, i)), q[_] = L);
20083
20113
  else
20084
20114
  for (w = 0; w < P.length; ++w)
20085
20115
  b = P[w], $ = a.$index(0, O), q = b.length, _ >= q && A.JSArray_methods.addAll$1(b, o.List_List$filled(_ - q + 1, N, !1, i)), b[_] = $, V[w].push(a.$index(0, O));
@@ -20322,9 +20352,9 @@ Arguments: [` + M + "]";
20322
20352
  $signature: 99
20323
20353
  }, o.formatTableChartData_closure9.prototype = {
20324
20354
  call$2(e, n) {
20325
- var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, C, F, W, I = this, w = [], N = [], v = n.cells, P = u.getInterceptor$asx(v), V = P.get$length(v);
20326
- for (a = I.columnMappings, i = a.length, s = I.hasComparison, l = I.country, p = I.timezone, _ = e < I.comparisonRowsLength, M = I._box_0, b = 0; b < a.length; a.length === i || (0, o.throwConcurrentModificationError)(a), ++b)
20327
- O = a[b], D = O.mainIndex, y = D >= 0 && D < V ? P.$index(v, D) : o.ListExtension_elementAtOrNull(v, D), D = O.column, $ = D.type, q = $ == null, w.push(q ? null : o.DataTypeExtension_toDisplay($, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, y)), s && (_ ? (h = M.comparison.rows[e].cells, T = u.getInterceptor$asx(h), C = T.get$length(h), F = O.comparisonIndex, W = F >= 0 && F < C ? T.$index(h, F) : o.ListExtension_elementAtOrNull(h, F)) : W = o.ListExtension_elementAtOrNull([], O.comparisonIndex), N.push(q ? null : o.DataTypeExtension_toDisplay($, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, W)));
20355
+ var a, i, s, l, p, _, M, b, O, D, y, $, q, h, T, L, I, W, F = this, w = [], N = [], v = n.cells, P = u.getInterceptor$asx(v), V = P.get$length(v);
20356
+ for (a = F.columnMappings, i = a.length, s = F.hasComparison, l = F.country, p = F.timezone, _ = e < F.comparisonRowsLength, M = F._box_0, b = 0; b < a.length; a.length === i || (0, o.throwConcurrentModificationError)(a), ++b)
20357
+ O = a[b], D = O.mainIndex, y = D >= 0 && D < V ? P.$index(v, D) : o.ListExtension_elementAtOrNull(v, D), D = O.column, $ = D.type, q = $ == null, w.push(q ? null : o.DataTypeExtension_toDisplay($, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, y)), s && (_ ? (h = M.comparison.rows[e].cells, T = u.getInterceptor$asx(h), L = T.get$length(h), I = O.comparisonIndex, W = I >= 0 && I < L ? T.$index(h, I) : o.ListExtension_elementAtOrNull(h, I)) : W = o.ListExtension_elementAtOrNull([], O.comparisonIndex), N.push(q ? null : o.DataTypeExtension_toDisplay($, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, W)));
20328
20358
  return n.copyWith$2$cells$comparisonCells(w, N);
20329
20359
  },
20330
20360
  $signature: 7
@@ -20763,8 +20793,8 @@ Arguments: [` + M + "]";
20763
20793
  return i.message;
20764
20794
  }
20765
20795
  })())), n(R, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => o.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(R, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(A.Type_Object_xQ6)), n(R, "Endian_host", "$get$Endian_host", () => o.NativeByteData_NativeByteData$view(o.NativeUint16List_NativeUint16List$fromList(o._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? A.C_Endian0 : A.C_Endian), n(R, "_clockKey", "$get$_clockKey", () => new o.Object()), n(R, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", A.List_BC_AD, A.List_6xs, A.List_qpm, A.List_qpm, A.List_cIc, A.List_cIc, A.List_h8w, A.List_h8w, A.List_wMy, A.List_wMy, A.List_gc6, A.List_gc6, A.List_3US, A.List_Q1_Q2_Q3_Q4, A.List_bJM, A.List_AM_PM)), a(R, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", R.$get$en_USSymbols())), a(R, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", A.Map_EQ6TW)), n(R, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(R, "DateFormat__matchers", "$get$DateFormat__matchers", () => o._setArrayType([o.RegExp_RegExp("^'(?:[^']|'')*'", !1), o.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), o.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], o.findType("JSArray<RegExp>"))), n(R, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''", !1)), n(R, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+", !1)), a(R, "_availableLocales", "$get$_availableLocales", () => {
20766
- var i, s, l = o.EnLocale$(A.StartOfWeek_1), p = o.EnLocale$(A.StartOfWeek_1), _ = o.EnLocale$(A.StartOfWeek_1), M = o.EnLocale$(A.StartOfWeek_1), b = o.EnLocale$(A.StartOfWeek_1), O = o.EnLocale$(A.StartOfWeek_2), D = o.EnLocale$(A.StartOfWeek_2), y = o.EnLocale$(A.StartOfWeek_1), $ = o.EnLocale$(A.StartOfWeek_1), q = o.EsLocale$(A.StartOfWeek_2), h = o.EsLocale$(A.StartOfWeek_2), T = o.EsLocale$(A.StartOfWeek_1), C = o.FrLocale$(A.StartOfWeek_2), F = o.FrLocale$(A.StartOfWeek_2), W = o.FrLocale$(A.StartOfWeek_1), I = o.ZhCnLocale$(A.StartOfWeek_1), w = o.ZhCnLocale$(A.StartOfWeek_1), N = o.ZhLocale$(A.StartOfWeek_1), v = o.ZhLocale$(A.StartOfWeek_1), P = o.DeLocale$(A.StartOfWeek_2), V = o.DeLocale$(A.StartOfWeek_2), a0 = o.DeLocale$(A.StartOfWeek_2), i0 = o.DeLocale$(A.StartOfWeek_2), M0 = o.ItLocale$(A.StartOfWeek_2), z0 = o.ItLocale$(A.StartOfWeek_2), q0 = o.ArLyLocale$(!0, A.StartOfWeek_0), D0 = o.ArLyLocale$(!1, A.StartOfWeek_0), L0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), C0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), Z = o.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), x0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), N0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
20767
- return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), i = o.PtLocale$(A.StartOfWeek_2), s = o.PtLocale$(A.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", p, "en_sg", _, "en_au", M, "en_ca", b, "en_gb", O, "en_ie", D, "en_il", y, "en_nz", $, "es", q, "es_do", h, "es_us", T, "fr", C, "fr_ch", F, "fr_ca", W, "zh", I, "zh_cn", w, "zh_hk", N, "zh_tw", v, "de", P, "de_de", V, "de_at", a0, "de_ch", i0, "it", M0, "it_ch", z0, "ar", q0, "ar_ly", D0, "ar_dz", L0, "ar_kw", C0, "ar_sa", Z, "ar_ma", x0, "ar_tn", N0, "az", new o.AzLocale(A.StartOfWeek_2), "id", new o.IdLocale(A.StartOfWeek_1), "ja", new o.JaLocale(A.StartOfWeek_1), "ko", new o.KoLocale(A.StartOfWeek_1), "ru", new o.RuLocale(A.StartOfWeek_2), "uk", new o.UkLocale(A.StartOfWeek_2), "hi", new o.HiLocale(A.StartOfWeek_1), "pt", i, "pt_br", s, "pl", new o.PlLocale(A.StartOfWeek_2), "tr", new o.TrLocale(A.StartOfWeek_2), "sv", new o.SvLocale(A.StartOfWeek_2), "nb", new o.NbLocale(A.StartOfWeek_2), "fa", new o.FaLocale(A.StartOfWeek_0), "bn", new o.BnLocale(A.StartOfWeek_1), "nl", new o.NlLocale(A.StartOfWeek_2), "th", new o.ThLocale(A.StartOfWeek_1)], r.String, o.findType("Locale"));
20796
+ var i, s, l = o.EnLocale$(A.StartOfWeek_1), p = o.EnLocale$(A.StartOfWeek_1), _ = o.EnLocale$(A.StartOfWeek_1), M = o.EnLocale$(A.StartOfWeek_1), b = o.EnLocale$(A.StartOfWeek_1), O = o.EnLocale$(A.StartOfWeek_2), D = o.EnLocale$(A.StartOfWeek_2), y = o.EnLocale$(A.StartOfWeek_1), $ = o.EnLocale$(A.StartOfWeek_1), q = o.EsLocale$(A.StartOfWeek_2), h = o.EsLocale$(A.StartOfWeek_2), T = o.EsLocale$(A.StartOfWeek_1), L = o.FrLocale$(A.StartOfWeek_2), I = o.FrLocale$(A.StartOfWeek_2), W = o.FrLocale$(A.StartOfWeek_1), F = o.ZhCnLocale$(A.StartOfWeek_1), w = o.ZhCnLocale$(A.StartOfWeek_1), N = o.ZhLocale$(A.StartOfWeek_1), v = o.ZhLocale$(A.StartOfWeek_1), P = o.DeLocale$(A.StartOfWeek_2), V = o.DeLocale$(A.StartOfWeek_2), a0 = o.DeLocale$(A.StartOfWeek_2), i0 = o.DeLocale$(A.StartOfWeek_2), M0 = o.ItLocale$(A.StartOfWeek_2), z0 = o.ItLocale$(A.StartOfWeek_2), q0 = o.ArLyLocale$(!0, A.StartOfWeek_0), D0 = o.ArLyLocale$(!1, A.StartOfWeek_0), L0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), C0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), Z = o.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), x0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), N0 = o.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
20797
+ return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), i = o.PtLocale$(A.StartOfWeek_2), s = o.PtLocale$(A.StartOfWeek_1), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.LinkedHashMap_LinkedHashMap$_literal(["en", l, "en_us", p, "en_sg", _, "en_au", M, "en_ca", b, "en_gb", O, "en_ie", D, "en_il", y, "en_nz", $, "es", q, "es_do", h, "es_us", T, "fr", L, "fr_ch", I, "fr_ca", W, "zh", F, "zh_cn", w, "zh_hk", N, "zh_tw", v, "de", P, "de_de", V, "de_at", a0, "de_ch", i0, "it", M0, "it_ch", z0, "ar", q0, "ar_ly", D0, "ar_dz", L0, "ar_kw", C0, "ar_sa", Z, "ar_ma", x0, "ar_tn", N0, "az", new o.AzLocale(A.StartOfWeek_2), "id", new o.IdLocale(A.StartOfWeek_1), "ja", new o.JaLocale(A.StartOfWeek_1), "ko", new o.KoLocale(A.StartOfWeek_1), "ru", new o.RuLocale(A.StartOfWeek_2), "uk", new o.UkLocale(A.StartOfWeek_2), "hi", new o.HiLocale(A.StartOfWeek_1), "pt", i, "pt_br", s, "pl", new o.PlLocale(A.StartOfWeek_2), "tr", new o.TrLocale(A.StartOfWeek_2), "sv", new o.SvLocale(A.StartOfWeek_2), "nb", new o.NbLocale(A.StartOfWeek_2), "fa", new o.FaLocale(A.StartOfWeek_0), "bn", new o.BnLocale(A.StartOfWeek_1), "nl", new o.NlLocale(A.StartOfWeek_2), "th", new o.ThLocale(A.StartOfWeek_1)], r.String, o.findType("Locale"));
20768
20798
  }), n(R, "_UTC", "$get$_UTC", () => {
20769
20799
  var i = r.JSArray_int;
20770
20800
  return o.Location$("UTC", o._setArrayType([-864e13], i), o._setArrayType([0], i), o._setArrayType([A.TimeZone_0_false_UTC], r.JSArray_TimeZone));
@@ -20928,7 +20958,7 @@ function dr() {
20928
20958
  }
20929
20959
  return X;
20930
20960
  }
20931
- function L(G, Q) {
20961
+ function C(G, Q) {
20932
20962
  if (G <= 0) return [];
20933
20963
  const X = {};
20934
20964
  for (const e0 of Q) X[e0.key] = void 0;
@@ -21076,7 +21106,7 @@ function dr() {
21076
21106
  if (l0 > 0) {
21077
21107
  const u = x.length % l0;
21078
21108
  let A = 0;
21079
- u > 0 ? A = l0 - u : x.length === 0 && (A = l0), A > 0 && x.push(...L(A, X));
21109
+ u > 0 ? A = l0 - u : x.length === 0 && (A = l0), A > 0 && x.push(...C(A, X));
21080
21110
  }
21081
21111
  return { data: x };
21082
21112
  }
@@ -21119,7 +21149,7 @@ function B0(c) {
21119
21149
  function o1(c) {
21120
21150
  return typeof c == "number" || Object.prototype.toString.call(c) === "[object Number]";
21121
21151
  }
21122
- function F1(c) {
21152
+ function I1(c) {
21123
21153
  return c instanceof Date || Object.prototype.toString.call(c) === "[object Date]";
21124
21154
  }
21125
21155
  function ft(c, z) {
@@ -21183,17 +21213,17 @@ function K1(c) {
21183
21213
  }
21184
21214
  var st = k.momentProperties = [], de = !1;
21185
21215
  function Le(c, z) {
21186
- var f, E, g, L = st.length;
21187
- if (B0(z._isAMomentObject) || (c._isAMomentObject = z._isAMomentObject), B0(z._i) || (c._i = z._i), B0(z._f) || (c._f = z._f), B0(z._l) || (c._l = z._l), B0(z._strict) || (c._strict = z._strict), B0(z._tzm) || (c._tzm = z._tzm), B0(z._isUTC) || (c._isUTC = z._isUTC), B0(z._offset) || (c._offset = z._offset), B0(z._pf) || (c._pf = r0(z)), B0(z._locale) || (c._locale = z._locale), L > 0)
21188
- for (f = 0; f < L; f++)
21216
+ var f, E, g, C = st.length;
21217
+ if (B0(z._isAMomentObject) || (c._isAMomentObject = z._isAMomentObject), B0(z._i) || (c._i = z._i), B0(z._f) || (c._f = z._f), B0(z._l) || (c._l = z._l), B0(z._strict) || (c._strict = z._strict), B0(z._tzm) || (c._tzm = z._tzm), B0(z._isUTC) || (c._isUTC = z._isUTC), B0(z._offset) || (c._offset = z._offset), B0(z._pf) || (c._pf = r0(z)), B0(z._locale) || (c._locale = z._locale), C > 0)
21218
+ for (f = 0; f < C; f++)
21189
21219
  E = st[f], g = z[E], B0(g) || (c[E] = g);
21190
21220
  return c;
21191
21221
  }
21192
- function I1(c) {
21222
+ function F1(c) {
21193
21223
  Le(this, c), this._d = new Date(c._d != null ? c._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), de === !1 && (de = !0, k.updateOffset(this), de = !1);
21194
21224
  }
21195
21225
  function U0(c) {
21196
- return c instanceof I1 || c != null && c._isAMomentObject != null;
21226
+ return c instanceof F1 || c != null && c._isAMomentObject != null;
21197
21227
  }
21198
21228
  function yt(c) {
21199
21229
  k.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + c);
@@ -21202,16 +21232,16 @@ function P0(c, z) {
21202
21232
  var f = !0;
21203
21233
  return l1(function() {
21204
21234
  if (k.deprecationHandler != null && k.deprecationHandler(null, c), f) {
21205
- var E = [], g, L, B, J = arguments.length;
21206
- for (L = 0; L < J; L++) {
21207
- if (g = "", typeof arguments[L] == "object") {
21235
+ var E = [], g, C, B, J = arguments.length;
21236
+ for (C = 0; C < J; C++) {
21237
+ if (g = "", typeof arguments[C] == "object") {
21208
21238
  g += `
21209
- [` + L + "] ";
21239
+ [` + C + "] ";
21210
21240
  for (B in arguments[0])
21211
21241
  p0(arguments[0], B) && (g += B + ": " + arguments[0][B] + ", ");
21212
21242
  g = g.slice(0, -2);
21213
21243
  } else
21214
- g = arguments[L];
21244
+ g = arguments[C];
21215
21245
  E.push(g);
21216
21246
  }
21217
21247
  yt(
@@ -21271,10 +21301,10 @@ function fr(c, z, f) {
21271
21301
  return K0(E) ? E.call(z, f) : E;
21272
21302
  }
21273
21303
  function V0(c, z, f) {
21274
- var E = "" + Math.abs(c), g = z - E.length, L = c >= 0;
21275
- return (L ? f ? "+" : "" : "-") + Math.pow(10, Math.max(0, g)).toString().substr(1) + E;
21304
+ var E = "" + Math.abs(c), g = z - E.length, C = c >= 0;
21305
+ return (C ? f ? "+" : "" : "-") + Math.pow(10, Math.max(0, g)).toString().substr(1) + E;
21276
21306
  }
21277
- var Fe = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, P1 = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Oe = {}, f1 = {};
21307
+ var Ie = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, P1 = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Oe = {}, f1 = {};
21278
21308
  function j(c, z, f, E) {
21279
21309
  var g = E;
21280
21310
  typeof E == "string" && (g = function() {
@@ -21292,14 +21322,14 @@ function yr(c) {
21292
21322
  return c.match(/\[[\s\S]/) ? c.replace(/^\[|\]$/g, "") : c.replace(/\\/g, "");
21293
21323
  }
21294
21324
  function $r(c) {
21295
- var z = c.match(Fe), f, E;
21325
+ var z = c.match(Ie), f, E;
21296
21326
  for (f = 0, E = z.length; f < E; f++)
21297
21327
  f1[z[f]] ? z[f] = f1[z[f]] : z[f] = yr(z[f]);
21298
21328
  return function(g) {
21299
- var L = "", B;
21329
+ var C = "", B;
21300
21330
  for (B = 0; B < E; B++)
21301
- L += K0(z[B]) ? z[B].call(g, c) : z[B];
21302
- return L;
21331
+ C += K0(z[B]) ? z[B].call(g, c) : z[B];
21332
+ return C;
21303
21333
  };
21304
21334
  }
21305
21335
  function X1(c, z) {
@@ -21327,7 +21357,7 @@ var Er = {
21327
21357
  };
21328
21358
  function mr(c) {
21329
21359
  var z = this._longDateFormat[c], f = this._longDateFormat[c.toUpperCase()];
21330
- return z || !f ? z : (this._longDateFormat[c] = f.match(Fe).map(function(E) {
21360
+ return z || !f ? z : (this._longDateFormat[c] = f.match(Ie).map(function(E) {
21331
21361
  return E === "MMMM" || E === "MM" || E === "DD" || E === "dddd" ? E.slice(1) : E;
21332
21362
  }).join(""), this._longDateFormat[c]);
21333
21363
  }
@@ -21418,13 +21448,13 @@ var lt = {
21418
21448
  function J0(c) {
21419
21449
  return typeof c == "string" ? lt[c] || lt[c.toLowerCase()] : void 0;
21420
21450
  }
21421
- function Ie(c) {
21451
+ function Fe(c) {
21422
21452
  var z = {}, f, E;
21423
21453
  for (E in c)
21424
21454
  p0(c, E) && (f = J0(E), f && (z[f] = c[E]));
21425
21455
  return z;
21426
21456
  }
21427
- var Fr = {
21457
+ var Ir = {
21428
21458
  date: 9,
21429
21459
  day: 11,
21430
21460
  weekday: 11,
@@ -21442,10 +21472,10 @@ var Fr = {
21442
21472
  isoWeek: 5,
21443
21473
  year: 1
21444
21474
  };
21445
- function Ir(c) {
21475
+ function Fr(c) {
21446
21476
  var z = [], f;
21447
21477
  for (f in c)
21448
- p0(c, f) && z.push({ unit: f, priority: Fr[f] });
21478
+ p0(c, f) && z.push({ unit: f, priority: Ir[f] });
21449
21479
  return z.sort(function(E, g) {
21450
21480
  return E.priority - g.priority;
21451
21481
  }), z;
@@ -21464,8 +21494,8 @@ function wr(c) {
21464
21494
  return a1(
21465
21495
  c.replace("\\", "").replace(
21466
21496
  /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
21467
- function(z, f, E, g, L) {
21468
- return f || E || g || L;
21497
+ function(z, f, E, g, C) {
21498
+ return f || E || g || C;
21469
21499
  }
21470
21500
  )
21471
21501
  );
@@ -21483,14 +21513,14 @@ function o0(c) {
21483
21513
  var qe = {};
21484
21514
  function b0(c, z) {
21485
21515
  var f, E = z, g;
21486
- for (typeof c == "string" && (c = [c]), o1(z) && (E = function(L, B) {
21487
- B[z] = o0(L);
21516
+ for (typeof c == "string" && (c = [c]), o1(z) && (E = function(C, B) {
21517
+ B[z] = o0(C);
21488
21518
  }), g = c.length, f = 0; f < g; f++)
21489
21519
  qe[c[f]] = E;
21490
21520
  }
21491
21521
  function B1(c, z) {
21492
- b0(c, function(f, E, g, L) {
21493
- g._w = g._w || {}, z(f, g._w, g, L);
21522
+ b0(c, function(f, E, g, C) {
21523
+ g._w = g._w || {}, z(f, g._w, g, C);
21494
21524
  });
21495
21525
  }
21496
21526
  function xr(c, z, f) {
@@ -21499,7 +21529,7 @@ function xr(c, z, f) {
21499
21529
  function ae(c) {
21500
21530
  return c % 4 === 0 && c % 100 !== 0 || c % 400 === 0;
21501
21531
  }
21502
- var I0 = 0, r1 = 1, Q0 = 2, R0 = 3, X0 = 4, n1 = 5, b1 = 6, vr = 7, Pr = 8;
21532
+ var F0 = 0, r1 = 1, Q0 = 2, R0 = 3, X0 = 4, n1 = 5, b1 = 6, vr = 7, Pr = 8;
21503
21533
  j("Y", 0, 0, function() {
21504
21534
  var c = this.year();
21505
21535
  return c <= 9999 ? V0(c, 4) : "+" + c;
@@ -21515,15 +21545,15 @@ U("YY", y0, w0);
21515
21545
  U("YYYY", Be, We);
21516
21546
  U("YYYYY", te, Z1);
21517
21547
  U("YYYYYY", te, Z1);
21518
- b0(["YYYYY", "YYYYYY"], I0);
21548
+ b0(["YYYYY", "YYYYYY"], F0);
21519
21549
  b0("YYYY", function(c, z) {
21520
- z[I0] = c.length === 2 ? k.parseTwoDigitYear(c) : o0(c);
21550
+ z[F0] = c.length === 2 ? k.parseTwoDigitYear(c) : o0(c);
21521
21551
  });
21522
21552
  b0("YY", function(c, z) {
21523
- z[I0] = k.parseTwoDigitYear(c);
21553
+ z[F0] = k.parseTwoDigitYear(c);
21524
21554
  });
21525
21555
  b0("Y", function(c, z) {
21526
- z[I0] = parseInt(c, 10);
21556
+ z[F0] = parseInt(c, 10);
21527
21557
  });
21528
21558
  function S1(c) {
21529
21559
  return ae(c) ? 366 : 365;
@@ -21566,7 +21596,7 @@ function T1(c, z) {
21566
21596
  }
21567
21597
  }
21568
21598
  function Tt(c, z, f) {
21569
- var E, g, L, B, J;
21599
+ var E, g, C, B, J;
21570
21600
  if (!(!c.isValid() || isNaN(f))) {
21571
21601
  switch (E = c._d, g = c._isUTC, z) {
21572
21602
  case "Milliseconds":
@@ -21589,7 +21619,7 @@ function Tt(c, z, f) {
21589
21619
  default:
21590
21620
  return;
21591
21621
  }
21592
- L = f, B = c.month(), J = c.date(), J = J === 29 && B === 1 && !ae(L) ? 28 : J, g ? E.setUTCFullYear(L, B, J) : E.setFullYear(L, B, J);
21622
+ C = f, B = c.month(), J = c.date(), J = J === 29 && B === 1 && !ae(C) ? 28 : J, g ? E.setUTCFullYear(C, B, J) : E.setFullYear(C, B, J);
21593
21623
  }
21594
21624
  }
21595
21625
  function Hr(c) {
@@ -21597,8 +21627,8 @@ function Hr(c) {
21597
21627
  }
21598
21628
  function Xr(c, z) {
21599
21629
  if (typeof c == "object") {
21600
- c = Ie(c);
21601
- var f = Ir(c), E, g = f.length;
21630
+ c = Fe(c);
21631
+ var f = Fr(c), E, g = f.length;
21602
21632
  for (E = 0; E < g; E++)
21603
21633
  this[f[E].unit](c[f[E].unit]);
21604
21634
  } else if (c = J0(c), K0(this[c]))
@@ -21656,17 +21686,17 @@ function Vr(c, z) {
21656
21686
  return c ? k0(this._monthsShort) ? this._monthsShort[c.month()] : this._monthsShort[Lt.test(z) ? "format" : "standalone"][c.month()] : k0(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
21657
21687
  }
21658
21688
  function jr(c, z, f) {
21659
- var E, g, L, B = c.toLocaleLowerCase();
21689
+ var E, g, C, B = c.toLocaleLowerCase();
21660
21690
  if (!this._monthsParse)
21661
21691
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], E = 0; E < 12; ++E)
21662
- L = j0([2e3, E]), this._shortMonthsParse[E] = this.monthsShort(
21663
- L,
21692
+ C = j0([2e3, E]), this._shortMonthsParse[E] = this.monthsShort(
21693
+ C,
21664
21694
  ""
21665
- ).toLocaleLowerCase(), this._longMonthsParse[E] = this.months(L, "").toLocaleLowerCase();
21695
+ ).toLocaleLowerCase(), this._longMonthsParse[E] = this.months(C, "").toLocaleLowerCase();
21666
21696
  return f ? z === "MMM" ? (g = T0.call(this._shortMonthsParse, B), g !== -1 ? g : null) : (g = T0.call(this._longMonthsParse, B), g !== -1 ? g : null) : z === "MMM" ? (g = T0.call(this._shortMonthsParse, B), g !== -1 ? g : (g = T0.call(this._longMonthsParse, B), g !== -1 ? g : null)) : (g = T0.call(this._longMonthsParse, B), g !== -1 ? g : (g = T0.call(this._shortMonthsParse, B), g !== -1 ? g : null));
21667
21697
  }
21668
21698
  function Kr(c, z, f) {
21669
- var E, g, L;
21699
+ var E, g, C;
21670
21700
  if (this._monthsParseExact)
21671
21701
  return jr.call(this, c, z, f);
21672
21702
  for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), E = 0; E < 12; E++) {
@@ -21676,7 +21706,7 @@ function Kr(c, z, f) {
21676
21706
  ), this._shortMonthsParse[E] = new RegExp(
21677
21707
  "^" + this.monthsShort(g, "").replace(".", "") + "$",
21678
21708
  "i"
21679
- )), !f && !this._monthsParse[E] && (L = "^" + this.months(g, "") + "|^" + this.monthsShort(g, ""), this._monthsParse[E] = new RegExp(L.replace(".", ""), "i")), f && z === "MMMM" && this._longMonthsParse[E].test(c))
21709
+ )), !f && !this._monthsParse[E] && (C = "^" + this.months(g, "") + "|^" + this.monthsShort(g, ""), this._monthsParse[E] = new RegExp(C.replace(".", ""), "i")), f && z === "MMMM" && this._longMonthsParse[E].test(c))
21680
21710
  return E;
21681
21711
  if (f && z === "MMM" && this._shortMonthsParse[E].test(c))
21682
21712
  return E;
@@ -21696,25 +21726,25 @@ function Ct(c, z) {
21696
21726
  var f = z, E = c.date();
21697
21727
  return E = E < 29 ? E : Math.min(E, we(c.year(), f)), c._isUTC ? c._d.setUTCMonth(f, E) : c._d.setMonth(f, E), c;
21698
21728
  }
21699
- function Ft(c) {
21729
+ function It(c) {
21700
21730
  return c != null ? (Ct(this, c), k.updateOffset(this, !0), this) : T1(this, "Month");
21701
21731
  }
21702
21732
  function Zr() {
21703
21733
  return we(this.year(), this.month());
21704
21734
  }
21705
21735
  function en(c) {
21706
- return this._monthsParseExact ? (p0(this, "_monthsRegex") || It.call(this), c ? this._monthsShortStrictRegex : this._monthsShortRegex) : (p0(this, "_monthsShortRegex") || (this._monthsShortRegex = Yr), this._monthsShortStrictRegex && c ? this._monthsShortStrictRegex : this._monthsShortRegex);
21736
+ return this._monthsParseExact ? (p0(this, "_monthsRegex") || Ft.call(this), c ? this._monthsShortStrictRegex : this._monthsShortRegex) : (p0(this, "_monthsShortRegex") || (this._monthsShortRegex = Yr), this._monthsShortStrictRegex && c ? this._monthsShortStrictRegex : this._monthsShortRegex);
21707
21737
  }
21708
21738
  function tn(c) {
21709
- return this._monthsParseExact ? (p0(this, "_monthsRegex") || It.call(this), c ? this._monthsStrictRegex : this._monthsRegex) : (p0(this, "_monthsRegex") || (this._monthsRegex = Gr), this._monthsStrictRegex && c ? this._monthsStrictRegex : this._monthsRegex);
21739
+ return this._monthsParseExact ? (p0(this, "_monthsRegex") || Ft.call(this), c ? this._monthsStrictRegex : this._monthsRegex) : (p0(this, "_monthsRegex") || (this._monthsRegex = Gr), this._monthsStrictRegex && c ? this._monthsStrictRegex : this._monthsRegex);
21710
21740
  }
21711
- function It() {
21741
+ function Ft() {
21712
21742
  function c(Y, K) {
21713
21743
  return K.length - Y.length;
21714
21744
  }
21715
- var z = [], f = [], E = [], g, L, B, J;
21745
+ var z = [], f = [], E = [], g, C, B, J;
21716
21746
  for (g = 0; g < 12; g++)
21717
- L = j0([2e3, g]), B = a1(this.monthsShort(L, "")), J = a1(this.months(L, "")), z.push(B), f.push(J), E.push(J), E.push(B);
21747
+ C = j0([2e3, g]), B = a1(this.monthsShort(C, "")), J = a1(this.months(C, "")), z.push(B), f.push(J), E.push(J), E.push(B);
21718
21748
  z.sort(c), f.sort(c), E.sort(c), this._monthsRegex = new RegExp("^(" + E.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
21719
21749
  "^(" + f.join("|") + ")",
21720
21750
  "i"
@@ -21723,9 +21753,9 @@ function It() {
21723
21753
  "i"
21724
21754
  );
21725
21755
  }
21726
- function rn(c, z, f, E, g, L, B) {
21756
+ function rn(c, z, f, E, g, C, B) {
21727
21757
  var J;
21728
- return c < 100 && c >= 0 ? (J = new Date(c + 400, z, f, E, g, L, B), isFinite(J.getFullYear()) && J.setFullYear(c)) : J = new Date(c, z, f, E, g, L, B), J;
21758
+ return c < 100 && c >= 0 ? (J = new Date(c + 400, z, f, E, g, C, B), isFinite(J.getFullYear()) && J.setFullYear(c)) : J = new Date(c, z, f, E, g, C, B), J;
21729
21759
  }
21730
21760
  function R1(c) {
21731
21761
  var z, f;
@@ -21736,16 +21766,16 @@ function G1(c, z, f) {
21736
21766
  return -g + E - 1;
21737
21767
  }
21738
21768
  function Wt(c, z, f, E, g) {
21739
- var L = (7 + f - E) % 7, B = G1(c, E, g), J = 1 + 7 * (z - 1) + L + B, Y, K;
21769
+ var C = (7 + f - E) % 7, B = G1(c, E, g), J = 1 + 7 * (z - 1) + C + B, Y, K;
21740
21770
  return J <= 0 ? (Y = c - 1, K = S1(Y) + J) : J > S1(c) ? (Y = c + 1, K = J - S1(c)) : (Y = c, K = J), {
21741
21771
  year: Y,
21742
21772
  dayOfYear: K
21743
21773
  };
21744
21774
  }
21745
21775
  function L1(c, z, f) {
21746
- var E = G1(c.year(), z, f), g = Math.floor((c.dayOfYear() - E - 1) / 7) + 1, L, B;
21747
- return g < 1 ? (B = c.year() - 1, L = g + i1(B, z, f)) : g > i1(c.year(), z, f) ? (L = g - i1(c.year(), z, f), B = c.year() + 1) : (B = c.year(), L = g), {
21748
- week: L,
21776
+ var E = G1(c.year(), z, f), g = Math.floor((c.dayOfYear() - E - 1) / 7) + 1, C, B;
21777
+ return g < 1 ? (B = c.year() - 1, C = g + i1(B, z, f)) : g > i1(c.year(), z, f) ? (C = g - i1(c.year(), z, f), B = c.year() + 1) : (B = c.year(), C = g), {
21778
+ week: C,
21749
21779
  year: B
21750
21780
  };
21751
21781
  }
@@ -21840,20 +21870,20 @@ function Dn(c) {
21840
21870
  return c === !0 ? xe(this._weekdaysMin, this._week.dow) : c ? this._weekdaysMin[c.day()] : this._weekdaysMin;
21841
21871
  }
21842
21872
  function fn(c, z, f) {
21843
- var E, g, L, B = c.toLocaleLowerCase();
21873
+ var E, g, C, B = c.toLocaleLowerCase();
21844
21874
  if (!this._weekdaysParse)
21845
21875
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], E = 0; E < 7; ++E)
21846
- L = j0([2e3, 1]).day(E), this._minWeekdaysParse[E] = this.weekdaysMin(
21847
- L,
21876
+ C = j0([2e3, 1]).day(E), this._minWeekdaysParse[E] = this.weekdaysMin(
21877
+ C,
21848
21878
  ""
21849
21879
  ).toLocaleLowerCase(), this._shortWeekdaysParse[E] = this.weekdaysShort(
21850
- L,
21880
+ C,
21851
21881
  ""
21852
- ).toLocaleLowerCase(), this._weekdaysParse[E] = this.weekdays(L, "").toLocaleLowerCase();
21882
+ ).toLocaleLowerCase(), this._weekdaysParse[E] = this.weekdays(C, "").toLocaleLowerCase();
21853
21883
  return f ? z === "dddd" ? (g = T0.call(this._weekdaysParse, B), g !== -1 ? g : null) : z === "ddd" ? (g = T0.call(this._shortWeekdaysParse, B), g !== -1 ? g : null) : (g = T0.call(this._minWeekdaysParse, B), g !== -1 ? g : null) : z === "dddd" ? (g = T0.call(this._weekdaysParse, B), g !== -1 || (g = T0.call(this._shortWeekdaysParse, B), g !== -1) ? g : (g = T0.call(this._minWeekdaysParse, B), g !== -1 ? g : null)) : z === "ddd" ? (g = T0.call(this._shortWeekdaysParse, B), g !== -1 || (g = T0.call(this._weekdaysParse, B), g !== -1) ? g : (g = T0.call(this._minWeekdaysParse, B), g !== -1 ? g : null)) : (g = T0.call(this._minWeekdaysParse, B), g !== -1 || (g = T0.call(this._weekdaysParse, B), g !== -1) ? g : (g = T0.call(this._shortWeekdaysParse, B), g !== -1 ? g : null));
21854
21884
  }
21855
21885
  function yn(c, z, f) {
21856
- var E, g, L;
21886
+ var E, g, C;
21857
21887
  if (this._weekdaysParseExact)
21858
21888
  return fn.call(this, c, z, f);
21859
21889
  for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), E = 0; E < 7; E++) {
@@ -21866,7 +21896,7 @@ function yn(c, z, f) {
21866
21896
  ), this._minWeekdaysParse[E] = new RegExp(
21867
21897
  "^" + this.weekdaysMin(g, "").replace(".", "\\.?") + "$",
21868
21898
  "i"
21869
- )), this._weekdaysParse[E] || (L = "^" + this.weekdays(g, "") + "|^" + this.weekdaysShort(g, "") + "|^" + this.weekdaysMin(g, ""), this._weekdaysParse[E] = new RegExp(L.replace(".", ""), "i")), f && z === "dddd" && this._fullWeekdaysParse[E].test(c))
21899
+ )), this._weekdaysParse[E] || (C = "^" + this.weekdays(g, "") + "|^" + this.weekdaysShort(g, "") + "|^" + this.weekdaysMin(g, ""), this._weekdaysParse[E] = new RegExp(C.replace(".", ""), "i")), f && z === "dddd" && this._fullWeekdaysParse[E].test(c))
21870
21900
  return E;
21871
21901
  if (f && z === "ddd" && this._shortWeekdaysParse[E].test(c))
21872
21902
  return E;
@@ -21910,9 +21940,9 @@ function ve() {
21910
21940
  function c(n0, c0) {
21911
21941
  return c0.length - n0.length;
21912
21942
  }
21913
- var z = [], f = [], E = [], g = [], L, B, J, Y, K;
21914
- for (L = 0; L < 7; L++)
21915
- B = j0([2e3, 1]).day(L), J = a1(this.weekdaysMin(B, "")), Y = a1(this.weekdaysShort(B, "")), K = a1(this.weekdays(B, "")), z.push(J), f.push(Y), E.push(K), g.push(J), g.push(Y), g.push(K);
21943
+ var z = [], f = [], E = [], g = [], C, B, J, Y, K;
21944
+ for (C = 0; C < 7; C++)
21945
+ B = j0([2e3, 1]).day(C), J = a1(this.weekdaysMin(B, "")), Y = a1(this.weekdaysShort(B, "")), K = a1(this.weekdays(B, "")), z.push(J), f.push(Y), E.push(K), g.push(J), g.push(Y), g.push(K);
21916
21946
  z.sort(c), f.sort(c), E.sort(c), g.sort(c), this._weekdaysRegex = new RegExp("^(" + g.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
21917
21947
  "^(" + E.join("|") + ")",
21918
21948
  "i"
@@ -22020,7 +22050,7 @@ var xt = {
22020
22050
  weekdaysShort: Bt,
22021
22051
  meridiemParse: Rn
22022
22052
  }, m0 = {}, g1 = {}, C1;
22023
- function Fn(c, z) {
22053
+ function In(c, z) {
22024
22054
  var f, E = Math.min(c.length, z.length);
22025
22055
  for (f = 0; f < E; f += 1)
22026
22056
  if (c[f] !== z[f])
@@ -22030,12 +22060,12 @@ function Fn(c, z) {
22030
22060
  function pt(c) {
22031
22061
  return c && c.toLowerCase().replace("_", "-");
22032
22062
  }
22033
- function In(c) {
22034
- for (var z = 0, f, E, g, L; z < c.length; ) {
22035
- for (L = pt(c[z]).split("-"), f = L.length, E = pt(c[z + 1]), E = E ? E.split("-") : null; f > 0; ) {
22036
- if (g = ie(L.slice(0, f).join("-")), g)
22063
+ function Fn(c) {
22064
+ for (var z = 0, f, E, g, C; z < c.length; ) {
22065
+ for (C = pt(c[z]).split("-"), f = C.length, E = pt(c[z + 1]), E = E ? E.split("-") : null; f > 0; ) {
22066
+ if (g = ie(C.slice(0, f).join("-")), g)
22037
22067
  return g;
22038
- if (E && E.length >= f && Fn(L, E) >= f - 1)
22068
+ if (E && E.length >= f && In(C, E) >= f - 1)
22039
22069
  break;
22040
22070
  f--;
22041
22071
  }
@@ -22103,14 +22133,14 @@ function s1(c) {
22103
22133
  return z;
22104
22134
  c = [c];
22105
22135
  }
22106
- return In(c);
22136
+ return Fn(c);
22107
22137
  }
22108
22138
  function Nn() {
22109
22139
  return me(m0);
22110
22140
  }
22111
22141
  function He(c) {
22112
22142
  var z, f = c._a;
22113
- return f && r0(c).overflow === -2 && (z = f[r1] < 0 || f[r1] > 11 ? r1 : f[Q0] < 1 || f[Q0] > we(f[I0], f[r1]) ? Q0 : f[R0] < 0 || f[R0] > 24 || f[R0] === 24 && (f[X0] !== 0 || f[n1] !== 0 || f[b1] !== 0) ? R0 : f[X0] < 0 || f[X0] > 59 ? X0 : f[n1] < 0 || f[n1] > 59 ? n1 : f[b1] < 0 || f[b1] > 999 ? b1 : -1, r0(c)._overflowDayOfYear && (z < I0 || z > Q0) && (z = Q0), r0(c)._overflowWeeks && z === -1 && (z = vr), r0(c)._overflowWeekday && z === -1 && (z = Pr), r0(c).overflow = z), c;
22143
+ return f && r0(c).overflow === -2 && (z = f[r1] < 0 || f[r1] > 11 ? r1 : f[Q0] < 1 || f[Q0] > we(f[F0], f[r1]) ? Q0 : f[R0] < 0 || f[R0] > 24 || f[R0] === 24 && (f[X0] !== 0 || f[n1] !== 0 || f[b1] !== 0) ? R0 : f[X0] < 0 || f[X0] > 59 ? X0 : f[n1] < 0 || f[n1] > 59 ? n1 : f[b1] < 0 || f[b1] > 999 ? b1 : -1, r0(c)._overflowDayOfYear && (z < F0 || z > Q0) && (z = Q0), r0(c)._overflowWeeks && z === -1 && (z = vr), r0(c)._overflowWeekday && z === -1 && (z = Pr), r0(c).overflow = z), c;
22114
22144
  }
22115
22145
  var wn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, xn = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, vn = /Z|[+-]\d\d(?::?\d\d)?/, J1 = [
22116
22146
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -22149,11 +22179,11 @@ var wn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
22149
22179
  PST: -480
22150
22180
  };
22151
22181
  function vt(c) {
22152
- var z, f, E = c._i, g = wn.exec(E) || xn.exec(E), L, B, J, Y, K = J1.length, n0 = Ae.length;
22182
+ var z, f, E = c._i, g = wn.exec(E) || xn.exec(E), C, B, J, Y, K = J1.length, n0 = Ae.length;
22153
22183
  if (g) {
22154
22184
  for (r0(c).iso = !0, z = 0, f = K; z < f; z++)
22155
22185
  if (J1[z][1].exec(g[1])) {
22156
- B = J1[z][0], L = J1[z][2] !== !1;
22186
+ B = J1[z][0], C = J1[z][2] !== !1;
22157
22187
  break;
22158
22188
  }
22159
22189
  if (B == null) {
@@ -22171,7 +22201,7 @@ function vt(c) {
22171
22201
  return;
22172
22202
  }
22173
22203
  }
22174
- if (!L && J != null) {
22204
+ if (!C && J != null) {
22175
22205
  c._isValid = !1;
22176
22206
  return;
22177
22207
  }
@@ -22186,7 +22216,7 @@ function vt(c) {
22186
22216
  } else
22187
22217
  c._isValid = !1;
22188
22218
  }
22189
- function Xn(c, z, f, E, g, L) {
22219
+ function Xn(c, z, f, E, g, C) {
22190
22220
  var B = [
22191
22221
  kn(c),
22192
22222
  Rt.indexOf(z),
@@ -22194,7 +22224,7 @@ function Xn(c, z, f, E, g, L) {
22194
22224
  parseInt(E, 10),
22195
22225
  parseInt(g, 10)
22196
22226
  ];
22197
- return L && B.push(parseInt(L, 10)), B;
22227
+ return C && B.push(parseInt(C, 10)), B;
22198
22228
  }
22199
22229
  function kn(c) {
22200
22230
  var z = parseInt(c, 10);
@@ -22220,8 +22250,8 @@ function Gn(c, z, f) {
22220
22250
  return Hn[c];
22221
22251
  if (z)
22222
22252
  return 0;
22223
- var E = parseInt(f, 10), g = E % 100, L = (E - g) / 100;
22224
- return L * 60 + g;
22253
+ var E = parseInt(f, 10), g = E % 100, C = (E - g) / 100;
22254
+ return C * 60 + g;
22225
22255
  }
22226
22256
  function Pt(c) {
22227
22257
  var z = Jn.exec(Un(c._i)), f;
@@ -22273,25 +22303,25 @@ function Vn(c) {
22273
22303
  ] : [z.getFullYear(), z.getMonth(), z.getDate()];
22274
22304
  }
22275
22305
  function Xe(c) {
22276
- var z, f, E = [], g, L, B;
22306
+ var z, f, E = [], g, C, B;
22277
22307
  if (!c._d) {
22278
- for (g = Vn(c), c._w && c._a[Q0] == null && c._a[r1] == null && jn(c), c._dayOfYear != null && (B = z1(c._a[I0], g[I0]), (c._dayOfYear > S1(B) || c._dayOfYear === 0) && (r0(c)._overflowDayOfYear = !0), f = R1(B, 0, c._dayOfYear), c._a[r1] = f.getUTCMonth(), c._a[Q0] = f.getUTCDate()), z = 0; z < 3 && c._a[z] == null; ++z)
22308
+ for (g = Vn(c), c._w && c._a[Q0] == null && c._a[r1] == null && jn(c), c._dayOfYear != null && (B = z1(c._a[F0], g[F0]), (c._dayOfYear > S1(B) || c._dayOfYear === 0) && (r0(c)._overflowDayOfYear = !0), f = R1(B, 0, c._dayOfYear), c._a[r1] = f.getUTCMonth(), c._a[Q0] = f.getUTCDate()), z = 0; z < 3 && c._a[z] == null; ++z)
22279
22309
  c._a[z] = E[z] = g[z];
22280
22310
  for (; z < 7; z++)
22281
22311
  c._a[z] = E[z] = c._a[z] == null ? z === 2 ? 1 : 0 : c._a[z];
22282
22312
  c._a[R0] === 24 && c._a[X0] === 0 && c._a[n1] === 0 && c._a[b1] === 0 && (c._nextDay = !0, c._a[R0] = 0), c._d = (c._useUTC ? R1 : rn).apply(
22283
22313
  null,
22284
22314
  E
22285
- ), L = c._useUTC ? c._d.getUTCDay() : c._d.getDay(), c._tzm != null && c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), c._nextDay && (c._a[R0] = 24), c._w && typeof c._w.d < "u" && c._w.d !== L && (r0(c).weekdayMismatch = !0);
22315
+ ), C = c._useUTC ? c._d.getUTCDay() : c._d.getDay(), c._tzm != null && c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), c._nextDay && (c._a[R0] = 24), c._w && typeof c._w.d < "u" && c._w.d !== C && (r0(c).weekdayMismatch = !0);
22286
22316
  }
22287
22317
  }
22288
22318
  function jn(c) {
22289
- var z, f, E, g, L, B, J, Y, K;
22290
- z = c._w, z.GG != null || z.W != null || z.E != null ? (L = 1, B = 4, f = z1(
22319
+ var z, f, E, g, C, B, J, Y, K;
22320
+ z = c._w, z.GG != null || z.W != null || z.E != null ? (C = 1, B = 4, f = z1(
22291
22321
  z.GG,
22292
- c._a[I0],
22322
+ c._a[F0],
22293
22323
  L1(f0(), 1, 4).year
22294
- ), E = z1(z.W, 1), g = z1(z.E, 1), (g < 1 || g > 7) && (Y = !0)) : (L = c._locale._week.dow, B = c._locale._week.doy, K = L1(f0(), L, B), f = z1(z.gg, c._a[I0], K.year), E = z1(z.w, K.week), z.d != null ? (g = z.d, (g < 0 || g > 6) && (Y = !0)) : z.e != null ? (g = z.e + L, (z.e < 0 || z.e > 6) && (Y = !0)) : g = L), E < 1 || E > i1(f, L, B) ? r0(c)._overflowWeeks = !0 : Y != null ? r0(c)._overflowWeekday = !0 : (J = Wt(f, E, g, L, B), c._a[I0] = J.year, c._dayOfYear = J.dayOfYear);
22324
+ ), E = z1(z.W, 1), g = z1(z.E, 1), (g < 1 || g > 7) && (Y = !0)) : (C = c._locale._week.dow, B = c._locale._week.doy, K = L1(f0(), C, B), f = z1(z.gg, c._a[F0], K.year), E = z1(z.w, K.week), z.d != null ? (g = z.d, (g < 0 || g > 6) && (Y = !0)) : z.e != null ? (g = z.e + C, (z.e < 0 || z.e > 6) && (Y = !0)) : g = C), E < 1 || E > i1(f, C, B) ? r0(c)._overflowWeeks = !0 : Y != null ? r0(c)._overflowWeekday = !0 : (J = Wt(f, E, g, C, B), c._a[F0] = J.year, c._dayOfYear = J.dayOfYear);
22295
22325
  }
22296
22326
  k.ISO_8601 = function() {
22297
22327
  };
@@ -22307,34 +22337,34 @@ function ke(c) {
22307
22337
  return;
22308
22338
  }
22309
22339
  c._a = [], r0(c).empty = !0;
22310
- var z = "" + c._i, f, E, g, L, B, J = z.length, Y = 0, K, n0;
22311
- for (g = Et(c._f, c._locale).match(Fe) || [], n0 = g.length, f = 0; f < n0; f++)
22312
- L = g[f], E = (z.match(Nr(L, c)) || [])[0], E && (B = z.substr(0, z.indexOf(E)), B.length > 0 && r0(c).unusedInput.push(B), z = z.slice(
22340
+ var z = "" + c._i, f, E, g, C, B, J = z.length, Y = 0, K, n0;
22341
+ for (g = Et(c._f, c._locale).match(Ie) || [], n0 = g.length, f = 0; f < n0; f++)
22342
+ C = g[f], E = (z.match(Nr(C, c)) || [])[0], E && (B = z.substr(0, z.indexOf(E)), B.length > 0 && r0(c).unusedInput.push(B), z = z.slice(
22313
22343
  z.indexOf(E) + E.length
22314
- ), Y += E.length), f1[L] ? (E ? r0(c).empty = !1 : r0(c).unusedTokens.push(L), xr(L, E, c)) : c._strict && !E && r0(c).unusedTokens.push(L);
22344
+ ), Y += E.length), f1[C] ? (E ? r0(c).empty = !1 : r0(c).unusedTokens.push(C), xr(C, E, c)) : c._strict && !E && r0(c).unusedTokens.push(C);
22315
22345
  r0(c).charsLeftOver = J - Y, z.length > 0 && r0(c).unusedInput.push(z), c._a[R0] <= 12 && r0(c).bigHour === !0 && c._a[R0] > 0 && (r0(c).bigHour = void 0), r0(c).parsedDateParts = c._a.slice(0), r0(c).meridiem = c._meridiem, c._a[R0] = Kn(
22316
22346
  c._locale,
22317
22347
  c._a[R0],
22318
22348
  c._meridiem
22319
- ), K = r0(c).era, K !== null && (c._a[I0] = c._locale.erasConvertYear(K, c._a[I0])), Xe(c), He(c);
22349
+ ), K = r0(c).era, K !== null && (c._a[F0] = c._locale.erasConvertYear(K, c._a[F0])), Xe(c), He(c);
22320
22350
  }
22321
22351
  function Kn(c, z, f) {
22322
22352
  var E;
22323
22353
  return f == null ? z : c.meridiemHour != null ? c.meridiemHour(z, f) : (c.isPM != null && (E = c.isPM(f), E && z < 12 && (z += 12), !E && z === 12 && (z = 0)), z);
22324
22354
  }
22325
22355
  function Zn(c) {
22326
- var z, f, E, g, L, B, J = !1, Y = c._f.length;
22356
+ var z, f, E, g, C, B, J = !1, Y = c._f.length;
22327
22357
  if (Y === 0) {
22328
22358
  r0(c).invalidFormat = !0, c._d = /* @__PURE__ */ new Date(NaN);
22329
22359
  return;
22330
22360
  }
22331
22361
  for (g = 0; g < Y; g++)
22332
- L = 0, B = !1, z = Le({}, c), c._useUTC != null && (z._useUTC = c._useUTC), z._f = c._f[g], ke(z), Re(z) && (B = !0), L += r0(z).charsLeftOver, L += r0(z).unusedTokens.length * 10, r0(z).score = L, J ? L < E && (E = L, f = z) : (E == null || L < E || B) && (E = L, f = z, B && (J = !0));
22362
+ C = 0, B = !1, z = Le({}, c), c._useUTC != null && (z._useUTC = c._useUTC), z._f = c._f[g], ke(z), Re(z) && (B = !0), C += r0(z).charsLeftOver, C += r0(z).unusedTokens.length * 10, r0(z).score = C, J ? C < E && (E = C, f = z) : (E == null || C < E || B) && (E = C, f = z, B && (J = !0));
22333
22363
  l1(c, f || z);
22334
22364
  }
22335
22365
  function ea(c) {
22336
22366
  if (!c._d) {
22337
- var z = Ie(c._i), f = z.day === void 0 ? z.date : z.day;
22367
+ var z = Fe(c._i), f = z.day === void 0 ? z.date : z.day;
22338
22368
  c._a = ft(
22339
22369
  [z.year, z.month, f, z.hour, z.minute, z.second, z.millisecond],
22340
22370
  function(E) {
@@ -22344,22 +22374,22 @@ function ea(c) {
22344
22374
  }
22345
22375
  }
22346
22376
  function ta(c) {
22347
- var z = new I1(He(Jt(c)));
22377
+ var z = new F1(He(Jt(c)));
22348
22378
  return z._nextDay && (z.add(1, "d"), z._nextDay = void 0), z;
22349
22379
  }
22350
22380
  function Jt(c) {
22351
22381
  var z = c._i, f = c._f;
22352
- return c._locale = c._locale || s1(c._l), z === null || f === void 0 && z === "" ? K1({ nullInput: !0 }) : (typeof z == "string" && (c._i = z = c._locale.preparse(z)), U0(z) ? new I1(He(z)) : (F1(z) ? c._d = z : k0(f) ? Zn(c) : f ? ke(c) : ra(c), Re(c) || (c._d = null), c));
22382
+ return c._locale = c._locale || s1(c._l), z === null || f === void 0 && z === "" ? K1({ nullInput: !0 }) : (typeof z == "string" && (c._i = z = c._locale.preparse(z)), U0(z) ? new F1(He(z)) : (I1(z) ? c._d = z : k0(f) ? Zn(c) : f ? ke(c) : ra(c), Re(c) || (c._d = null), c));
22353
22383
  }
22354
22384
  function ra(c) {
22355
22385
  var z = c._i;
22356
- B0(z) ? c._d = new Date(k.now()) : F1(z) ? c._d = new Date(z.valueOf()) : typeof z == "string" ? Qn(c) : k0(z) ? (c._a = ft(z.slice(0), function(f) {
22386
+ B0(z) ? c._d = new Date(k.now()) : I1(z) ? c._d = new Date(z.valueOf()) : typeof z == "string" ? Qn(c) : k0(z) ? (c._a = ft(z.slice(0), function(f) {
22357
22387
  return parseInt(f, 10);
22358
22388
  }), Xe(c)) : d1(z) ? ea(c) : o1(z) ? c._d = new Date(z) : k.createFromInputFallback(c);
22359
22389
  }
22360
22390
  function Ht(c, z, f, E, g) {
22361
- var L = {};
22362
- return (z === !0 || z === !1) && (E = z, z = void 0), (f === !0 || f === !1) && (E = f, f = void 0), (d1(c) && Te(c) || k0(c) && c.length === 0) && (c = void 0), L._isAMomentObject = !0, L._useUTC = L._isUTC = g, L._l = f, L._i = c, L._f = z, L._strict = E, ta(L);
22391
+ var C = {};
22392
+ return (z === !0 || z === !1) && (E = z, z = void 0), (f === !0 || f === !1) && (E = f, f = void 0), (d1(c) && Te(c) || k0(c) && c.length === 0) && (c = void 0), C._isAMomentObject = !0, C._useUTC = C._isUTC = g, C._l = f, C._i = c, C._f = z, C._strict = E, ta(C);
22363
22393
  }
22364
22394
  function f0(c, z, f, E) {
22365
22395
  return Ht(c, z, f, E, !1);
@@ -22426,10 +22456,10 @@ function pa() {
22426
22456
  return Y0(NaN);
22427
22457
  }
22428
22458
  function oe(c) {
22429
- var z = Ie(c), f = z.year || 0, E = z.quarter || 0, g = z.month || 0, L = z.week || z.isoWeek || 0, B = z.day || 0, J = z.hour || 0, Y = z.minute || 0, K = z.second || 0, n0 = z.millisecond || 0;
22459
+ var z = Fe(c), f = z.year || 0, E = z.quarter || 0, g = z.month || 0, C = z.week || z.isoWeek || 0, B = z.day || 0, J = z.hour || 0, Y = z.minute || 0, K = z.second || 0, n0 = z.millisecond || 0;
22430
22460
  this._isValid = ua(z), this._milliseconds = +n0 + K * 1e3 + // 1000
22431
22461
  Y * 6e4 + // 1000 * 60
22432
- J * 1e3 * 60 * 60, this._days = +B + L * 7, this._months = +g + E * 3 + f * 12, this._data = {}, this._locale = s1(), this._bubble();
22462
+ J * 1e3 * 60 * 60, this._days = +B + C * 7, this._months = +g + E * 3 + f * 12, this._data = {}, this._locale = s1(), this._bubble();
22433
22463
  }
22434
22464
  function k1(c) {
22435
22465
  return c instanceof oe;
@@ -22438,10 +22468,10 @@ function ge(c) {
22438
22468
  return c < 0 ? Math.round(-1 * c) * -1 : Math.round(c);
22439
22469
  }
22440
22470
  function _a(c, z, f) {
22441
- var E = Math.min(c.length, z.length), g = Math.abs(c.length - z.length), L = 0, B;
22471
+ var E = Math.min(c.length, z.length), g = Math.abs(c.length - z.length), C = 0, B;
22442
22472
  for (B = 0; B < E; B++)
22443
- o0(c[B]) !== o0(z[B]) && L++;
22444
- return L + g;
22473
+ o0(c[B]) !== o0(z[B]) && C++;
22474
+ return C + g;
22445
22475
  }
22446
22476
  function kt(c, z) {
22447
22477
  j(c, 0, 0, function() {
@@ -22458,12 +22488,12 @@ b0(["Z", "ZZ"], function(c, z, f) {
22458
22488
  });
22459
22489
  var ca = /([\+\-]|\d\d)/gi;
22460
22490
  function Ue(c, z) {
22461
- var f = (z || "").match(c), E, g, L;
22462
- return f === null ? null : (E = f[f.length - 1] || [], g = (E + "").match(ca) || ["-", 0, 0], L = +(g[1] * 60) + o0(g[2]), L === 0 ? 0 : g[0] === "+" ? L : -L);
22491
+ var f = (z || "").match(c), E, g, C;
22492
+ return f === null ? null : (E = f[f.length - 1] || [], g = (E + "").match(ca) || ["-", 0, 0], C = +(g[1] * 60) + o0(g[2]), C === 0 ? 0 : g[0] === "+" ? C : -C);
22463
22493
  }
22464
22494
  function Ye(c, z) {
22465
22495
  var f, E;
22466
- return z._isUTC ? (f = z.clone(), E = (U0(c) || F1(c) ? c.valueOf() : f0(c).valueOf()) - f.valueOf(), f._d.setTime(f._d.valueOf() + E), k.updateOffset(f, !1), f) : f0(c).local();
22496
+ return z._isUTC ? (f = z.clone(), E = (U0(c) || I1(c) ? c.valueOf() : f0(c).valueOf()) - f.valueOf(), f._d.setTime(f._d.valueOf() + E), k.updateOffset(f, !1), f) : f0(c).local();
22467
22497
  }
22468
22498
  function he(c) {
22469
22499
  return -Math.round(c._d.getTimezoneOffset());
@@ -22529,7 +22559,7 @@ function Ut() {
22529
22559
  }
22530
22560
  var Ea = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, ma = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
22531
22561
  function Y0(c, z) {
22532
- var f = c, E = null, g, L, B;
22562
+ var f = c, E = null, g, C, B;
22533
22563
  return k1(c) ? f = {
22534
22564
  ms: c._milliseconds,
22535
22565
  d: c._days,
@@ -22553,7 +22583,7 @@ function Y0(c, z) {
22553
22583
  }) : f == null ? f = {} : typeof f == "object" && ("from" in f || "to" in f) && (B = qa(
22554
22584
  f0(f.from),
22555
22585
  f0(f.to)
22556
- ), f = {}, f.ms = B.milliseconds, f.M = B.months), L = new oe(f), k1(c) && p0(c, "_locale") && (L._locale = c._locale), k1(c) && p0(c, "_isValid") && (L._isValid = c._isValid), L;
22586
+ ), f = {}, f.ms = B.milliseconds, f.M = B.months), C = new oe(f), k1(c) && p0(c, "_locale") && (C._locale = c._locale), k1(c) && p0(c, "_isValid") && (C._isValid = c._isValid), C;
22557
22587
  }
22558
22588
  Y0.fn = oe.prototype;
22559
22589
  Y0.invalid = pa;
@@ -22571,23 +22601,23 @@ function qa(c, z) {
22571
22601
  }
22572
22602
  function Yt(c, z) {
22573
22603
  return function(f, E) {
22574
- var g, L;
22604
+ var g, C;
22575
22605
  return E !== null && !isNaN(+E) && ($t(
22576
22606
  z,
22577
22607
  "moment()." + z + "(period, number) is deprecated. Please use moment()." + z + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
22578
- ), L = f, f = E, E = L), g = Y0(f, E), Gt(this, g, c), this;
22608
+ ), C = f, f = E, E = C), g = Y0(f, E), Gt(this, g, c), this;
22579
22609
  };
22580
22610
  }
22581
22611
  function Gt(c, z, f, E) {
22582
- var g = z._milliseconds, L = ge(z._days), B = ge(z._months);
22583
- c.isValid() && (E = E ?? !0, B && Ct(c, T1(c, "Month") + B * f), L && Tt(c, "Date", T1(c, "Date") + L * f), g && c._d.setTime(c._d.valueOf() + g * f), E && k.updateOffset(c, L || B));
22612
+ var g = z._milliseconds, C = ge(z._days), B = ge(z._months);
22613
+ c.isValid() && (E = E ?? !0, B && Ct(c, T1(c, "Month") + B * f), C && Tt(c, "Date", T1(c, "Date") + C * f), g && c._d.setTime(c._d.valueOf() + g * f), E && k.updateOffset(c, C || B));
22584
22614
  }
22585
22615
  var ga = Yt(1, "add"), ha = Yt(-1, "subtract");
22586
22616
  function Qt(c) {
22587
22617
  return typeof c == "string" || c instanceof String;
22588
22618
  }
22589
22619
  function Sa(c) {
22590
- return U0(c) || F1(c) || Qt(c) || o1(c) || Ra(c) || Ta(c) || c === null || c === void 0;
22620
+ return U0(c) || I1(c) || Qt(c) || o1(c) || Ra(c) || Ta(c) || c === null || c === void 0;
22591
22621
  }
22592
22622
  function Ta(c) {
22593
22623
  var z = d1(c) && !Te(c), f = !1, E = [
@@ -22615,9 +22645,9 @@ function Ta(c) {
22615
22645
  "milliseconds",
22616
22646
  "millisecond",
22617
22647
  "ms"
22618
- ], g, L, B = E.length;
22648
+ ], g, C, B = E.length;
22619
22649
  for (g = 0; g < B; g += 1)
22620
- L = E[g], f = f || p0(c, L);
22650
+ C = E[g], f = f || p0(c, C);
22621
22651
  return z && f;
22622
22652
  }
22623
22653
  function Ra(c) {
@@ -22634,24 +22664,24 @@ function La(c) {
22634
22664
  "nextWeek",
22635
22665
  "lastWeek",
22636
22666
  "sameElse"
22637
- ], g, L;
22667
+ ], g, C;
22638
22668
  for (g = 0; g < E.length; g += 1)
22639
- L = E[g], f = f || p0(c, L);
22669
+ C = E[g], f = f || p0(c, C);
22640
22670
  return z && f;
22641
22671
  }
22642
22672
  function Ca(c, z) {
22643
22673
  var f = c.diff(z, "days", !0);
22644
22674
  return f < -6 ? "sameElse" : f < -1 ? "lastWeek" : f < 0 ? "lastDay" : f < 1 ? "sameDay" : f < 2 ? "nextDay" : f < 7 ? "nextWeek" : "sameElse";
22645
22675
  }
22646
- function Fa(c, z) {
22676
+ function Ia(c, z) {
22647
22677
  arguments.length === 1 && (arguments[0] ? Sa(arguments[0]) ? (c = arguments[0], z = void 0) : La(arguments[0]) && (z = arguments[0], c = void 0) : (c = void 0, z = void 0));
22648
- var f = c || f0(), E = Ye(f, this).startOf("day"), g = k.calendarFormat(this, E) || "sameElse", L = z && (K0(z[g]) ? z[g].call(this, f) : z[g]);
22678
+ var f = c || f0(), E = Ye(f, this).startOf("day"), g = k.calendarFormat(this, E) || "sameElse", C = z && (K0(z[g]) ? z[g].call(this, f) : z[g]);
22649
22679
  return this.format(
22650
- L || this.localeData().calendar(g, this, f0(f))
22680
+ C || this.localeData().calendar(g, this, f0(f))
22651
22681
  );
22652
22682
  }
22653
- function Ia() {
22654
- return new I1(this);
22683
+ function Fa() {
22684
+ return new F1(this);
22655
22685
  }
22656
22686
  function Wa(c, z) {
22657
22687
  var f = U0(c) ? c : f0(c);
@@ -22662,8 +22692,8 @@ function Ba(c, z) {
22662
22692
  return this.isValid() && f.isValid() ? (z = J0(z) || "millisecond", z === "millisecond" ? this.valueOf() < f.valueOf() : this.clone().endOf(z).valueOf() < f.valueOf()) : !1;
22663
22693
  }
22664
22694
  function Na(c, z, f, E) {
22665
- var g = U0(c) ? c : f0(c), L = U0(z) ? z : f0(z);
22666
- return this.isValid() && g.isValid() && L.isValid() ? (E = E || "()", (E[0] === "(" ? this.isAfter(g, f) : !this.isBefore(g, f)) && (E[1] === ")" ? this.isBefore(L, f) : !this.isAfter(L, f))) : !1;
22695
+ var g = U0(c) ? c : f0(c), C = U0(z) ? z : f0(z);
22696
+ return this.isValid() && g.isValid() && C.isValid() ? (E = E || "()", (E[0] === "(" ? this.isAfter(g, f) : !this.isBefore(g, f)) && (E[1] === ")" ? this.isBefore(C, f) : !this.isAfter(C, f))) : !1;
22667
22697
  }
22668
22698
  function wa(c, z) {
22669
22699
  var f = U0(c) ? c : f0(c), E;
@@ -22676,51 +22706,51 @@ function va(c, z) {
22676
22706
  return this.isSame(c, z) || this.isBefore(c, z);
22677
22707
  }
22678
22708
  function Pa(c, z, f) {
22679
- var E, g, L;
22709
+ var E, g, C;
22680
22710
  if (!this.isValid())
22681
22711
  return NaN;
22682
22712
  if (E = Ye(c, this), !E.isValid())
22683
22713
  return NaN;
22684
22714
  switch (g = (E.utcOffset() - this.utcOffset()) * 6e4, z = J0(z), z) {
22685
22715
  case "year":
22686
- L = U1(this, E) / 12;
22716
+ C = U1(this, E) / 12;
22687
22717
  break;
22688
22718
  case "month":
22689
- L = U1(this, E);
22719
+ C = U1(this, E);
22690
22720
  break;
22691
22721
  case "quarter":
22692
- L = U1(this, E) / 3;
22722
+ C = U1(this, E) / 3;
22693
22723
  break;
22694
22724
  case "second":
22695
- L = (this - E) / 1e3;
22725
+ C = (this - E) / 1e3;
22696
22726
  break;
22697
22727
  // 1000
22698
22728
  case "minute":
22699
- L = (this - E) / 6e4;
22729
+ C = (this - E) / 6e4;
22700
22730
  break;
22701
22731
  // 1000 * 60
22702
22732
  case "hour":
22703
- L = (this - E) / 36e5;
22733
+ C = (this - E) / 36e5;
22704
22734
  break;
22705
22735
  // 1000 * 60 * 60
22706
22736
  case "day":
22707
- L = (this - E - g) / 864e5;
22737
+ C = (this - E - g) / 864e5;
22708
22738
  break;
22709
22739
  // 1000 * 60 * 60 * 24, negate dst
22710
22740
  case "week":
22711
- L = (this - E - g) / 6048e5;
22741
+ C = (this - E - g) / 6048e5;
22712
22742
  break;
22713
22743
  // 1000 * 60 * 60 * 24 * 7, negate dst
22714
22744
  default:
22715
- L = this - E;
22745
+ C = this - E;
22716
22746
  }
22717
- return f ? L : v0(L);
22747
+ return f ? C : v0(C);
22718
22748
  }
22719
22749
  function U1(c, z) {
22720
22750
  if (c.date() < z.date())
22721
22751
  return -U1(z, c);
22722
- var f = (z.year() - c.year()) * 12 + (z.month() - c.month()), E = c.clone().add(f, "months"), g, L;
22723
- return z - E < 0 ? (g = c.clone().add(f - 1, "months"), L = (z - E) / (E - g)) : (g = c.clone().add(f + 1, "months"), L = (z - E) / (g - E)), -(f + L) || 0;
22752
+ var f = (z.year() - c.year()) * 12 + (z.month() - c.month()), E = c.clone().add(f, "months"), g, C;
22753
+ return z - E < 0 ? (g = c.clone().add(f - 1, "months"), C = (z - E) / (E - g)) : (g = c.clone().add(f + 1, "months"), C = (z - E) / (g - E)), -(f + C) || 0;
22724
22754
  }
22725
22755
  k.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
22726
22756
  k.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
@@ -22742,8 +22772,8 @@ function Ha(c) {
22742
22772
  function Xa() {
22743
22773
  if (!this.isValid())
22744
22774
  return "moment.invalid(/* " + this._i + " */)";
22745
- var c = "moment", z = "", f, E, g, L;
22746
- return this.isLocal() || (c = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", z = "Z"), f = "[" + c + '("]', E = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", g = "-MM-DD[T]HH:mm:ss.SSS", L = z + '[")]', this.format(f + E + g + L);
22775
+ var c = "moment", z = "", f, E, g, C;
22776
+ return this.isLocal() || (c = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", z = "Z"), f = "[" + c + '("]', E = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", g = "-MM-DD[T]HH:mm:ss.SSS", C = z + '[")]', this.format(f + E + g + C);
22747
22777
  }
22748
22778
  function ka(c) {
22749
22779
  c || (c = this.isUtc() ? k.defaultFormatUtc : k.defaultFormat);
@@ -22967,52 +22997,52 @@ U("yy", E1);
22967
22997
  U("yyy", E1);
22968
22998
  U("yyyy", E1);
22969
22999
  U("yo", fi);
22970
- b0(["y", "yy", "yyy", "yyyy"], I0);
23000
+ b0(["y", "yy", "yyy", "yyyy"], F0);
22971
23001
  b0(["yo"], function(c, z, f, E) {
22972
23002
  var g;
22973
- f._locale._eraYearOrdinalRegex && (g = c.match(f._locale._eraYearOrdinalRegex)), f._locale.eraYearOrdinalParse ? z[I0] = f._locale.eraYearOrdinalParse(c, g) : z[I0] = parseInt(c, 10);
23003
+ f._locale._eraYearOrdinalRegex && (g = c.match(f._locale._eraYearOrdinalRegex)), f._locale.eraYearOrdinalParse ? z[F0] = f._locale.eraYearOrdinalParse(c, g) : z[F0] = parseInt(c, 10);
22974
23004
  });
22975
23005
  function ui(c, z) {
22976
- var f, E, g, L = this._eras || s1("en")._eras;
22977
- for (f = 0, E = L.length; f < E; ++f) {
22978
- switch (typeof L[f].since) {
23006
+ var f, E, g, C = this._eras || s1("en")._eras;
23007
+ for (f = 0, E = C.length; f < E; ++f) {
23008
+ switch (typeof C[f].since) {
22979
23009
  case "string":
22980
- g = k(L[f].since).startOf("day"), L[f].since = g.valueOf();
23010
+ g = k(C[f].since).startOf("day"), C[f].since = g.valueOf();
22981
23011
  break;
22982
23012
  }
22983
- switch (typeof L[f].until) {
23013
+ switch (typeof C[f].until) {
22984
23014
  case "undefined":
22985
- L[f].until = 1 / 0;
23015
+ C[f].until = 1 / 0;
22986
23016
  break;
22987
23017
  case "string":
22988
- g = k(L[f].until).startOf("day").valueOf(), L[f].until = g.valueOf();
23018
+ g = k(C[f].until).startOf("day").valueOf(), C[f].until = g.valueOf();
22989
23019
  break;
22990
23020
  }
22991
23021
  }
22992
- return L;
23022
+ return C;
22993
23023
  }
22994
23024
  function li(c, z, f) {
22995
- var E, g, L = this.eras(), B, J, Y;
22996
- for (c = c.toUpperCase(), E = 0, g = L.length; E < g; ++E)
22997
- if (B = L[E].name.toUpperCase(), J = L[E].abbr.toUpperCase(), Y = L[E].narrow.toUpperCase(), f)
23025
+ var E, g, C = this.eras(), B, J, Y;
23026
+ for (c = c.toUpperCase(), E = 0, g = C.length; E < g; ++E)
23027
+ if (B = C[E].name.toUpperCase(), J = C[E].abbr.toUpperCase(), Y = C[E].narrow.toUpperCase(), f)
22998
23028
  switch (z) {
22999
23029
  case "N":
23000
23030
  case "NN":
23001
23031
  case "NNN":
23002
23032
  if (J === c)
23003
- return L[E];
23033
+ return C[E];
23004
23034
  break;
23005
23035
  case "NNNN":
23006
23036
  if (B === c)
23007
- return L[E];
23037
+ return C[E];
23008
23038
  break;
23009
23039
  case "NNNNN":
23010
23040
  if (Y === c)
23011
- return L[E];
23041
+ return C[E];
23012
23042
  break;
23013
23043
  }
23014
23044
  else if ([B, J, Y].indexOf(c) >= 0)
23015
- return L[E];
23045
+ return C[E];
23016
23046
  }
23017
23047
  function pi(c, z) {
23018
23048
  var f = c.since <= c.until ? 1 : -1;
@@ -23068,8 +23098,8 @@ function fi(c, z) {
23068
23098
  return z._eraYearOrdinalRegex || E1;
23069
23099
  }
23070
23100
  function Qe() {
23071
- var c = [], z = [], f = [], E = [], g, L, B, J, Y, K = this.eras();
23072
- for (g = 0, L = K.length; g < L; ++g)
23101
+ var c = [], z = [], f = [], E = [], g, C, B, J, Y, K = this.eras();
23102
+ for (g = 0, C = K.length; g < C; ++g)
23073
23103
  B = a1(K[g].name), J = a1(K[g].abbr), Y = a1(K[g].narrow), z.push(B), c.push(J), f.push(Y), E.push(B), E.push(J), E.push(Y);
23074
23104
  this._erasRegex = new RegExp("^(" + E.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + z.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + c.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
23075
23105
  "^(" + f.join("|") + ")",
@@ -23141,11 +23171,11 @@ function gi() {
23141
23171
  return i1(this.weekYear(), c.dow, c.doy);
23142
23172
  }
23143
23173
  function rr(c, z, f, E, g) {
23144
- var L;
23145
- return c == null ? L1(this, E, g).year : (L = i1(c, E, g), z > L && (z = L), hi.call(this, c, z, f, E, g));
23174
+ var C;
23175
+ return c == null ? L1(this, E, g).year : (C = i1(c, E, g), z > C && (z = C), hi.call(this, c, z, f, E, g));
23146
23176
  }
23147
23177
  function hi(c, z, f, E, g) {
23148
- var L = Wt(c, z, f, E, g), B = R1(L.year, 0, L.dayOfYear);
23178
+ var C = Wt(c, z, f, E, g), B = R1(C.year, 0, C.dayOfYear);
23149
23179
  return this.year(B.getUTCFullYear()), this.month(B.getUTCMonth()), this.date(B.getUTCDate()), this;
23150
23180
  }
23151
23181
  j("Q", 0, "Qo", "quarter");
@@ -23228,16 +23258,16 @@ for (p1 = "S"; p1.length <= 9; p1 += "S")
23228
23258
  ar = q1("Milliseconds", !1);
23229
23259
  j("z", 0, 0, "zoneAbbr");
23230
23260
  j("zz", 0, 0, "zoneName");
23231
- function Fi() {
23261
+ function Ii() {
23232
23262
  return this._isUTC ? "UTC" : "";
23233
23263
  }
23234
- function Ii() {
23264
+ function Fi() {
23235
23265
  return this._isUTC ? "Coordinated Universal Time" : "";
23236
23266
  }
23237
- var H = I1.prototype;
23267
+ var H = F1.prototype;
23238
23268
  H.add = ga;
23239
- H.calendar = Fa;
23240
- H.clone = Ia;
23269
+ H.calendar = Ia;
23270
+ H.clone = Fa;
23241
23271
  H.diff = Pa;
23242
23272
  H.endOf = ja;
23243
23273
  H.format = ka;
@@ -23285,7 +23315,7 @@ H.isLeapYear = Jr;
23285
23315
  H.weekYear = yi;
23286
23316
  H.isoWeekYear = $i;
23287
23317
  H.quarter = H.quarters = Si;
23288
- H.month = Ft;
23318
+ H.month = It;
23289
23319
  H.daysInMonth = Zr;
23290
23320
  H.week = H.weeks = un;
23291
23321
  H.isoWeek = H.isoWeeks = ln;
@@ -23312,15 +23342,15 @@ H.isLocal = ya;
23312
23342
  H.isUtcOffset = $a;
23313
23343
  H.isUtc = Ut;
23314
23344
  H.isUTC = Ut;
23315
- H.zoneAbbr = Fi;
23316
- H.zoneName = Ii;
23345
+ H.zoneAbbr = Ii;
23346
+ H.zoneName = Fi;
23317
23347
  H.dates = P0(
23318
23348
  "dates accessor is deprecated. Use date instead.",
23319
23349
  nr
23320
23350
  );
23321
23351
  H.months = P0(
23322
23352
  "months accessor is deprecated. Use month instead",
23323
- Ft
23353
+ It
23324
23354
  );
23325
23355
  H.years = P0(
23326
23356
  "years accessor is deprecated. Use year instead",
@@ -23377,8 +23407,8 @@ _0.weekdaysMinRegex = hn;
23377
23407
  _0.isPM = Tn;
23378
23408
  _0.meridiem = Cn;
23379
23409
  function j1(c, z, f, E) {
23380
- var g = s1(), L = j0().set(E, z);
23381
- return g[f](L, c);
23410
+ var g = s1(), C = j0().set(E, z);
23411
+ return g[f](C, c);
23382
23412
  }
23383
23413
  function or(c, z, f) {
23384
23414
  if (o1(c) && (z = c, c = void 0), c = c || "", z != null)
@@ -23390,11 +23420,11 @@ function or(c, z, f) {
23390
23420
  }
23391
23421
  function Ve(c, z, f, E) {
23392
23422
  typeof c == "boolean" ? (o1(z) && (f = z, z = void 0), z = z || "") : (z = c, f = z, c = !1, o1(z) && (f = z, z = void 0), z = z || "");
23393
- var g = s1(), L = c ? g._week.dow : 0, B, J = [];
23423
+ var g = s1(), C = c ? g._week.dow : 0, B, J = [];
23394
23424
  if (f != null)
23395
- return j1(z, (f + L) % 7, E, "day");
23425
+ return j1(z, (f + C) % 7, E, "day");
23396
23426
  for (B = 0; B < 7; B++)
23397
- J[B] = j1(z, (B + L) % 7, E, "day");
23427
+ J[B] = j1(z, (B + C) % 7, E, "day");
23398
23428
  return J;
23399
23429
  }
23400
23430
  function Ni(c, z) {
@@ -23464,8 +23494,8 @@ function ct(c) {
23464
23494
  return c < 0 ? Math.floor(c) : Math.ceil(c);
23465
23495
  }
23466
23496
  function ki() {
23467
- var c = this._milliseconds, z = this._days, f = this._months, E = this._data, g, L, B, J, Y;
23468
- return c >= 0 && z >= 0 && f >= 0 || c <= 0 && z <= 0 && f <= 0 || (c += ct(Se(f) + z) * 864e5, z = 0, f = 0), E.milliseconds = c % 1e3, g = v0(c / 1e3), E.seconds = g % 60, L = v0(g / 60), E.minutes = L % 60, B = v0(L / 60), E.hours = B % 24, z += v0(B / 24), Y = v0(ur(z)), f += Y, z -= ct(Se(Y)), J = v0(f / 12), f %= 12, E.days = z, E.months = f, E.years = J, this;
23497
+ var c = this._milliseconds, z = this._days, f = this._months, E = this._data, g, C, B, J, Y;
23498
+ return c >= 0 && z >= 0 && f >= 0 || c <= 0 && z <= 0 && f <= 0 || (c += ct(Se(f) + z) * 864e5, z = 0, f = 0), E.milliseconds = c % 1e3, g = v0(c / 1e3), E.seconds = g % 60, C = v0(g / 60), E.minutes = C % 60, B = v0(C / 60), E.hours = B % 24, z += v0(B / 24), Y = v0(ur(z)), f += Y, z -= ct(Se(Y)), J = v0(f / 12), f %= 12, E.days = z, E.months = f, E.years = J, this;
23469
23499
  }
23470
23500
  function ur(c) {
23471
23501
  return c * 4800 / 146097;
@@ -23546,7 +23576,7 @@ function co(c, z, f, E, g) {
23546
23576
  return g.relativeTime(z || 1, !!f, c, E);
23547
23577
  }
23548
23578
  function Mo(c, z, f, E) {
23549
- var g = Y0(c).abs(), L = t1(g.as("s")), B = t1(g.as("m")), J = t1(g.as("h")), Y = t1(g.as("d")), K = t1(g.as("M")), n0 = t1(g.as("w")), c0 = t1(g.as("y")), $0 = L <= f.ss && ["s", L] || L < f.s && ["ss", L] || B <= 1 && ["m"] || B < f.m && ["mm", B] || J <= 1 && ["h"] || J < f.h && ["hh", J] || Y <= 1 && ["d"] || Y < f.d && ["dd", Y];
23579
+ var g = Y0(c).abs(), C = t1(g.as("s")), B = t1(g.as("m")), J = t1(g.as("h")), Y = t1(g.as("d")), K = t1(g.as("M")), n0 = t1(g.as("w")), c0 = t1(g.as("y")), $0 = C <= f.ss && ["s", C] || C < f.s && ["ss", C] || B <= 1 && ["m"] || B < f.m && ["mm", B] || J <= 1 && ["h"] || J < f.h && ["hh", J] || Y <= 1 && ["d"] || Y < f.d && ["dd", Y];
23550
23580
  return f.w != null && ($0 = $0 || n0 <= 1 && ["w"] || n0 < f.w && ["ww", n0]), $0 = $0 || K <= 1 && ["M"] || K < f.M && ["MM", K] || c0 <= 1 && ["y"] || ["yy", c0], $0[2] = z, $0[3] = +c > 0, $0[4] = E, co.apply(null, $0);
23551
23581
  }
23552
23582
  function bo(c) {
@@ -23558,8 +23588,8 @@ function Oo(c, z) {
23558
23588
  function Ao(c, z) {
23559
23589
  if (!this.isValid())
23560
23590
  return this.localeData().invalidDate();
23561
- var f = !1, E = D1, g, L;
23562
- return typeof c == "object" && (z = c, c = !1), typeof c == "boolean" && (f = c), typeof z == "object" && (E = Object.assign({}, D1, z), z.s != null && z.ss == null && (E.ss = z.s - 1)), g = this.localeData(), L = Mo(this, !f, E, g), f && (L = g.pastFuture(+this, L)), g.postformat(L);
23591
+ var f = !1, E = D1, g, C;
23592
+ return typeof c == "object" && (z = c, c = !1), typeof c == "boolean" && (f = c), typeof z == "object" && (E = Object.assign({}, D1, z), z.s != null && z.ss == null && (E.ss = z.s - 1)), g = this.localeData(), C = Mo(this, !f, E, g), f && (C = g.pastFuture(+this, C)), g.postformat(C);
23563
23593
  }
23564
23594
  var ze = Math.abs;
23565
23595
  function A1(c) {
@@ -23568,8 +23598,8 @@ function A1(c) {
23568
23598
  function ue() {
23569
23599
  if (!this.isValid())
23570
23600
  return this.localeData().invalidDate();
23571
- var c = ze(this._milliseconds) / 1e3, z = ze(this._days), f = ze(this._months), E, g, L, B, J = this.asSeconds(), Y, K, n0, c0;
23572
- return J ? (E = v0(c / 60), g = v0(E / 60), c %= 60, E %= 60, L = v0(f / 12), f %= 12, B = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", Y = J < 0 ? "-" : "", K = A1(this._months) !== A1(J) ? "-" : "", n0 = A1(this._days) !== A1(J) ? "-" : "", c0 = A1(this._milliseconds) !== A1(J) ? "-" : "", Y + "P" + (L ? K + L + "Y" : "") + (f ? K + f + "M" : "") + (z ? n0 + z + "D" : "") + (g || E || c ? "T" : "") + (g ? c0 + g + "H" : "") + (E ? c0 + E + "M" : "") + (c ? c0 + B + "S" : "")) : "P0D";
23601
+ var c = ze(this._milliseconds) / 1e3, z = ze(this._days), f = ze(this._months), E, g, C, B, J = this.asSeconds(), Y, K, n0, c0;
23602
+ return J ? (E = v0(c / 60), g = v0(E / 60), c %= 60, E %= 60, C = v0(f / 12), f %= 12, B = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", Y = J < 0 ? "-" : "", K = A1(this._months) !== A1(J) ? "-" : "", n0 = A1(this._days) !== A1(J) ? "-" : "", c0 = A1(this._milliseconds) !== A1(J) ? "-" : "", Y + "P" + (C ? K + C + "Y" : "") + (f ? K + f + "M" : "") + (z ? n0 + z + "D" : "") + (g || E || c ? "T" : "") + (g ? c0 + g + "H" : "") + (E ? c0 + E + "M" : "") + (c ? c0 + B + "S" : "")) : "P0D";
23573
23603
  }
23574
23604
  var u0 = oe.prototype;
23575
23605
  u0.isValid = la;
@@ -23629,7 +23659,7 @@ k.now = sa;
23629
23659
  k.utc = j0;
23630
23660
  k.unix = Wi;
23631
23661
  k.months = Ni;
23632
- k.isDate = F1;
23662
+ k.isDate = I1;
23633
23663
  k.locale = _1;
23634
23664
  k.invalid = K1;
23635
23665
  k.duration = Y0;
@@ -23685,7 +23715,7 @@ function yo() {
23685
23715
  c.exports ? c.exports = f(Do) : f(z.moment);
23686
23716
  })(fo, function(z) {
23687
23717
  z.version === void 0 && z.default && (z = z.default);
23688
- var f = "0.5.48", E = {}, g = {}, L = {}, B = {}, J = {}, Y;
23718
+ var f = "0.5.48", E = {}, g = {}, C = {}, B = {}, J = {}, Y;
23689
23719
  (!z || typeof z.version != "string") && a("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
23690
23720
  var K = z.version.split("."), n0 = +K[0], c0 = +K[1];
23691
23721
  (n0 < 2 || n0 === 2 && c0 < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + z.version + ". See momentjs.com");
@@ -23693,12 +23723,12 @@ function yo() {
23693
23723
  return b > 96 ? b - 87 : b > 64 ? b - 29 : b - 48;
23694
23724
  }
23695
23725
  function H0(b) {
23696
- var O = 0, D = b.split("."), y = D[0], $ = D[1] || "", q = 1, h, T = 0, C = 1;
23697
- for (b.charCodeAt(0) === 45 && (O = 1, C = -1), O; O < y.length; O++)
23726
+ var O = 0, D = b.split("."), y = D[0], $ = D[1] || "", q = 1, h, T = 0, L = 1;
23727
+ for (b.charCodeAt(0) === 45 && (O = 1, L = -1), O; O < y.length; O++)
23698
23728
  h = $0(y.charCodeAt(O)), T = 60 * T + h;
23699
23729
  for (O = 0; O < $.length; O++)
23700
23730
  q = q / 60, h = $0($.charCodeAt(O)), T += h * q;
23701
- return T * C;
23731
+ return T * L;
23702
23732
  }
23703
23733
  function W0(b) {
23704
23734
  for (var O = 0; O < b.length; O++)
@@ -23751,15 +23781,15 @@ function yo() {
23751
23781
  },
23752
23782
  countries: function() {
23753
23783
  var b = this.name;
23754
- return Object.keys(L).filter(function(O) {
23755
- return L[O].zones.indexOf(b) !== -1;
23784
+ return Object.keys(C).filter(function(O) {
23785
+ return C[O].zones.indexOf(b) !== -1;
23756
23786
  });
23757
23787
  },
23758
23788
  parse: function(b) {
23759
- var O = +b, D = this.offsets, y = this.untils, $ = y.length - 1, q, h, T, C;
23760
- for (C = 0; C < $; C++)
23761
- if (q = D[C], h = D[C + 1], T = D[C && C - 1], q < h && i.moveAmbiguousForward ? q = h : q > T && i.moveInvalidForward && (q = T), O < y[C] - q * 6e4)
23762
- return D[C];
23789
+ var O = +b, D = this.offsets, y = this.untils, $ = y.length - 1, q, h, T, L;
23790
+ for (L = 0; L < $; L++)
23791
+ if (q = D[L], h = D[L + 1], T = D[L && L - 1], q < h && i.moveAmbiguousForward ? q = h : q > T && i.moveInvalidForward && (q = T), O < y[L] - q * 6e4)
23792
+ return D[L];
23763
23793
  return D[$];
23764
23794
  },
23765
23795
  abbr: function(b) {
@@ -23807,12 +23837,12 @@ function yo() {
23807
23837
  y = O[D], J[y] = J[y] || {}, J[y][b] = !0;
23808
23838
  }
23809
23839
  function d0(b) {
23810
- var O = b.length, D = {}, y = [], $ = {}, q, h, T, C;
23840
+ var O = b.length, D = {}, y = [], $ = {}, q, h, T, L;
23811
23841
  for (q = 0; q < O; q++)
23812
23842
  if (T = b[q].offset, !$.hasOwnProperty(T)) {
23813
- C = J[T] || {};
23814
- for (h in C)
23815
- C.hasOwnProperty(h) && (D[h] = !0);
23843
+ L = J[T] || {};
23844
+ for (h in L)
23845
+ L.hasOwnProperty(h) && (D[h] = !0);
23816
23846
  $[T] = !0;
23817
23847
  }
23818
23848
  for (q in D)
@@ -23830,10 +23860,10 @@ function yo() {
23830
23860
  }
23831
23861
  } catch {
23832
23862
  }
23833
- var D = l0(), y = D.length, $ = d0(D), q = [], h, T, C;
23863
+ var D = l0(), y = D.length, $ = d0(D), q = [], h, T, L;
23834
23864
  for (T = 0; T < $.length; T++) {
23835
- for (h = new s0(o($[T])), C = 0; C < y; C++)
23836
- h.scoreOffsetAt(D[C]);
23865
+ for (h = new s0(o($[T])), L = 0; L < y; L++)
23866
+ h.scoreOffsetAt(D[L]);
23837
23867
  q.push(h);
23838
23868
  }
23839
23869
  return q.sort(A0), q.length > 0 ? q[0].zone.name : void 0;
@@ -23861,7 +23891,7 @@ function yo() {
23861
23891
  return O.sort();
23862
23892
  }
23863
23893
  function A() {
23864
- return Object.keys(L);
23894
+ return Object.keys(C);
23865
23895
  }
23866
23896
  function m(b) {
23867
23897
  var O, D, y, $;
@@ -23872,13 +23902,13 @@ function yo() {
23872
23902
  var O, D, y, $;
23873
23903
  if (!(!b || !b.length))
23874
23904
  for (O = 0; O < b.length; O++)
23875
- $ = b[O].split("|"), D = $[0].toUpperCase(), y = $[1].split(" "), L[D] = new e0(
23905
+ $ = b[O].split("|"), D = $[0].toUpperCase(), y = $[1].split(" "), C[D] = new e0(
23876
23906
  D,
23877
23907
  y
23878
23908
  );
23879
23909
  }
23880
23910
  function S(b) {
23881
- return b = b.toUpperCase(), L[b] || null;
23911
+ return b = b.toUpperCase(), C[b] || null;
23882
23912
  }
23883
23913
  function d(b, O) {
23884
23914
  if (b = S(b), !b) return null;
@@ -23908,7 +23938,7 @@ function yo() {
23908
23938
  var O = Array.prototype.slice.call(arguments, 0, -1), D = arguments[arguments.length - 1], y = z.utc.apply(null, O), $;
23909
23939
  return !z.isMoment(b) && n(y) && ($ = o(D)) && y.add($.parse(y), "minutes"), y.tz(D), y;
23910
23940
  }
23911
- i.version = f, i.dataVersion = "", i._zones = E, i._links = g, i._names = B, i._countries = L, i.add = t, i.link = m, i.load = r, i.zone = o, i.zoneExists = e, i.guess = S0, i.names = u, i.Zone = Q, i.unpack = G, i.unpackBase60 = H0, i.needsOffset = n, i.moveInvalidForward = !0, i.moveAmbiguousForward = !1, i.countries = A, i.zonesForCountry = d;
23941
+ i.version = f, i.dataVersion = "", i._zones = E, i._links = g, i._names = B, i._countries = C, i.add = t, i.link = m, i.load = r, i.zone = o, i.zoneExists = e, i.guess = S0, i.names = u, i.Zone = Q, i.unpack = G, i.unpackBase60 = H0, i.needsOffset = n, i.moveInvalidForward = !0, i.moveAmbiguousForward = !1, i.countries = A, i.zonesForCountry = d;
23912
23942
  var s = z.fn;
23913
23943
  z.tz = i, z.defaultZone = null, z.updateOffset = function(b, O) {
23914
23944
  var D = z.defaultZone, y;
@@ -23997,7 +24027,7 @@ function So() {
23997
24027
  case z.STACKBARCHART:
23998
24028
  case z.STACKLINECHART:
23999
24029
  case z.CLUSTEREDSTACKBARCHART:
24000
- return L(x);
24030
+ return C(x);
24001
24031
  case z.SCORECARD:
24002
24032
  return J(x);
24003
24033
  case z.CIRCULAR:
@@ -24068,7 +24098,7 @@ function So() {
24068
24098
  source: l
24069
24099
  };
24070
24100
  }
24071
- function L(x) {
24101
+ function C(x) {
24072
24102
  var y;
24073
24103
  const {
24074
24104
  widgetType: t,
@@ -24104,33 +24134,33 @@ function So() {
24104
24134
  h.value[e.id] ?? null,
24105
24135
  e,
24106
24136
  m
24107
- ) : "", C = s.get(T);
24108
- if (C == null) continue;
24109
- const F = X(
24137
+ ) : "", L = s.get(T);
24138
+ if (L == null) continue;
24139
+ const I = X(
24110
24140
  h.value[n.id] ?? null,
24111
24141
  n,
24112
24142
  m
24113
24143
  );
24114
- $.has(F) || ($.add(F), M.push(F));
24144
+ $.has(I) || ($.add(I), M.push(I));
24115
24145
  for (const W of r)
24116
- q[C].add(
24117
- `${F}\0${W.id}`
24146
+ q[L].add(
24147
+ `${I}\0${W.id}`
24118
24148
  ), p.push({
24119
24149
  ...B(W),
24120
- name: r.length > 1 ? `${F} - ${W.label}` : F,
24150
+ name: r.length > 1 ? `${I} - ${W.label}` : I,
24121
24151
  values: [c0(h.value[W.id], W)],
24122
- xAxisIndex: C,
24152
+ xAxisIndex: L,
24123
24153
  dateRange: l
24124
24154
  });
24125
24155
  }
24126
24156
  for (let h = 0; h < a.length; h++)
24127
24157
  for (const T of M)
24128
- for (const C of r) {
24129
- const F = `${T}\0${C.id}`;
24130
- q[h].has(F) || p.push({
24131
- ...B(C),
24132
- name: r.length > 1 ? `${T} - ${C.label}` : T,
24133
- values: [C.nullable ? null : 0],
24158
+ for (const L of r) {
24159
+ const I = `${T}\0${L.id}`;
24160
+ q[h].has(I) || p.push({
24161
+ ...B(L),
24162
+ name: r.length > 1 ? `${T} - ${L.label}` : T,
24163
+ values: [L.nullable ? null : 0],
24134
24164
  xAxisIndex: h,
24135
24165
  dateRange: l
24136
24166
  });
@@ -24149,27 +24179,27 @@ function So() {
24149
24179
  for (const q of M)
24150
24180
  for (const h of r) {
24151
24181
  const T = new Array(a.length).fill(0);
24152
- for (const F of S.rows) {
24153
- if (F.isRollup || X(
24154
- F.value[n.id] ?? null,
24182
+ for (const I of S.rows) {
24183
+ if (I.isRollup || X(
24184
+ I.value[n.id] ?? null,
24155
24185
  n,
24156
24186
  m
24157
24187
  ) !== q)
24158
24188
  continue;
24159
24189
  const W = e ? X(
24160
- F.value[e.id] ?? null,
24190
+ I.value[e.id] ?? null,
24161
24191
  e,
24162
24192
  m
24163
- ) : "", I = s.get(W);
24164
- I != null && (T[I] = c0(
24165
- F.value[h.id],
24193
+ ) : "", F = s.get(W);
24194
+ F != null && (T[F] = c0(
24195
+ I.value[h.id],
24166
24196
  h
24167
24197
  ));
24168
24198
  }
24169
- const C = r.length > 1 ? `${q} - ${h.label}` : q;
24199
+ const L = r.length > 1 ? `${q} - ${h.label}` : q;
24170
24200
  p.push({
24171
24201
  ...B(h),
24172
- name: C,
24202
+ name: L,
24173
24203
  values: T,
24174
24204
  dateRange: l
24175
24205
  });
@@ -24184,8 +24214,8 @@ function So() {
24184
24214
  h.value[e.id] ?? null,
24185
24215
  e,
24186
24216
  m
24187
- ) : "", C = s.get(T);
24188
- C != null && (q[C] = c0(
24217
+ ) : "", L = s.get(T);
24218
+ L != null && (q[L] = c0(
24189
24219
  h.value[$.id],
24190
24220
  $
24191
24221
  ));
@@ -24202,23 +24232,23 @@ function So() {
24202
24232
  start: $.dateRange.start,
24203
24233
  end: $.dateRange.end
24204
24234
  }, h = [], T = /* @__PURE__ */ new Set();
24205
- for (const F of $.rows) {
24206
- if (F.isRollup) continue;
24207
- const W = e ? X(F.value[e.id] ?? null, e, m) : "";
24235
+ for (const I of $.rows) {
24236
+ if (I.isRollup) continue;
24237
+ const W = e ? X(I.value[e.id] ?? null, e, m) : "";
24208
24238
  T.has(W) || (T.add(W), h.push(W));
24209
24239
  }
24210
- const C = /* @__PURE__ */ new Map();
24240
+ const L = /* @__PURE__ */ new Map();
24211
24241
  if (h.forEach(
24212
- (F, W) => C.set(F, W)
24242
+ (I, W) => L.set(I, W)
24213
24243
  ), _ = h, n && R) {
24214
- const F = /* @__PURE__ */ new Map();
24244
+ const I = /* @__PURE__ */ new Map();
24215
24245
  for (const W of $.rows) {
24216
24246
  if (W.isRollup) continue;
24217
- const I = e ? X(
24247
+ const F = e ? X(
24218
24248
  W.value[e.id] ?? null,
24219
24249
  e,
24220
24250
  m
24221
- ) : "", w = C.get(I), N = e != null && e.dateComparison ? w : s.get(I);
24251
+ ) : "", w = L.get(F), N = e != null && e.dateComparison ? w : s.get(F);
24222
24252
  if (N == null) continue;
24223
24253
  const v = X(
24224
24254
  W.value[n.id] ?? null,
@@ -24226,7 +24256,7 @@ function So() {
24226
24256
  m
24227
24257
  );
24228
24258
  for (const P of r)
24229
- F.has(N) || F.set(N, /* @__PURE__ */ new Set()), F.get(N).add(`${v}\0${P.id}`), p.push({
24259
+ I.has(N) || I.set(N, /* @__PURE__ */ new Set()), I.get(N).add(`${v}\0${P.id}`), p.push({
24230
24260
  ...B(P),
24231
24261
  name: r.length > 1 ? `${v} - ${P.label}` : v,
24232
24262
  values: [c0(W.value[P.id], P)],
@@ -24236,12 +24266,12 @@ function So() {
24236
24266
  });
24237
24267
  }
24238
24268
  for (const W of h) {
24239
- const I = C.get(W), w = e != null && e.dateComparison ? I : s.get(W);
24269
+ const F = L.get(W), w = e != null && e.dateComparison ? F : s.get(W);
24240
24270
  if (w != null)
24241
24271
  for (const N of M)
24242
24272
  for (const v of r) {
24243
24273
  const P = `${N}\0${v.id}`;
24244
- (y = F.get(w)) != null && y.has(P) || p.push({
24274
+ (y = I.get(w)) != null && y.has(P) || p.push({
24245
24275
  ...B(v),
24246
24276
  name: r.length > 1 ? `${N} - ${v.label}` : N,
24247
24277
  values: [v.nullable ? null : 0],
@@ -24252,15 +24282,15 @@ function So() {
24252
24282
  }
24253
24283
  }
24254
24284
  } else {
24255
- const F = [];
24285
+ const I = [];
24256
24286
  if (n)
24257
24287
  for (const W of M)
24258
- for (const I of r)
24259
- F.push({ breakdownVal: W, metricCol: I });
24288
+ for (const F of r)
24289
+ I.push({ breakdownVal: W, metricCol: F });
24260
24290
  else
24261
24291
  for (const W of r)
24262
- F.push({ metricCol: W });
24263
- for (const { breakdownVal: W, metricCol: I } of F) {
24292
+ I.push({ metricCol: W });
24293
+ for (const { breakdownVal: W, metricCol: F } of I) {
24264
24294
  const w = new Array(a.length).fill(0);
24265
24295
  for (const v of $.rows) {
24266
24296
  if (v.isRollup || n && X(
@@ -24273,15 +24303,15 @@ function So() {
24273
24303
  v.value[e.id] ?? null,
24274
24304
  e,
24275
24305
  m
24276
- ) : "", V = C.get(P), a0 = e != null && e.dateComparison ? V : s.get(P);
24306
+ ) : "", V = L.get(P), a0 = e != null && e.dateComparison ? V : s.get(P);
24277
24307
  a0 != null && (w[a0] = c0(
24278
- v.value[I.id],
24279
- I
24308
+ v.value[F.id],
24309
+ F
24280
24310
  ));
24281
24311
  }
24282
- const N = n ? r.length > 1 ? `${W} - ${I.label}` : W : I.label;
24312
+ const N = n ? r.length > 1 ? `${W} - ${F.label}` : W : F.label;
24283
24313
  p.push({
24284
- ...B(I),
24314
+ ...B(F),
24285
24315
  name: N,
24286
24316
  values: w,
24287
24317
  isCompare: !0,