@feedmepos/mf-report 5.31.1-beta.0 → 5.31.2

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 (34) hide show
  1. package/dist/{App-CifvmxI-.js → App-DoZB9B38.js} +110 -110
  2. package/dist/{DateRangeSelect-ChxxlHH1.js → DateRangeSelect-B-OUPLDB.js} +129 -121
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CL1-_8mf.js → Default.vue_vue_type_script_setup_true_lang-BuTwhR1W.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DHjqUTvO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DVqKtAYR.js} +7 -7
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CSs3HGml.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CG8fCQW1.js} +453 -453
  6. package/dist/{InsightView-Du6tSxTb.js → InsightView-ChQ0BSqE.js} +5 -5
  7. package/dist/{Integration-BAcn22tg.js → Integration-B0kp5Ip2.js} +174 -174
  8. package/dist/{Integrations-DJxV9dAE.js → Integrations-Co3m2GbW.js} +2 -2
  9. package/dist/{Layout-BYyARllh.js → Layout-D1rSBMaa.js} +1 -1
  10. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CvOMVHQ5.js → LocationSelect.vue_vue_type_script_setup_true_lang-mGjvhC5F.js} +2 -2
  11. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DresFUiL.js → MenuTab.vue_vue_type_script_setup_true_lang-DSYywVnI.js} +5 -5
  12. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CTWgBaBB.js → NavigationTab.vue_vue_type_script_setup_true_lang-DCkznynv.js} +5 -5
  13. package/dist/{OverviewView-WaYZ9aiD.js → OverviewView-CzfPmLL6.js} +5 -5
  14. package/dist/{Report-NAiFlYu_.js → Report-8pOJt9j7.js} +3 -3
  15. package/dist/{ReportCanvasView-Bfr5ZK1X.js → ReportCanvasView-DGMnwS9i.js} +5 -5
  16. package/dist/{ReportEditor-DNKWamHm.js → ReportEditor-DfI8f6n5.js} +7 -7
  17. package/dist/{ReportView-DVOKMdRI.js → ReportView-CjuoUhur.js} +6 -6
  18. package/dist/{ReportViewRoute-4E5uW09e.js → ReportViewRoute-DWQlfv7Y.js} +2 -2
  19. package/dist/{Setting-BIUKmm2_.js → Setting-BM4J1bGC.js} +3 -3
  20. package/dist/{Template-COsS2dIW.js → Template-Cm9n0DNY.js} +3 -3
  21. package/dist/TileEditor-BwuehIJP.js +4183 -0
  22. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-CIMNFOXf.js → TilePageStack.vue_vue_type_script_setup_true_lang-cAHeLbGq.js} +2 -2
  23. package/dist/{TransitionFade-DddzAlaC.js → TransitionFade-BRxnhaJy.js} +5 -5
  24. package/dist/{app-B1esZ9Mq.js → app-0yX5NkWR.js} +2337 -2297
  25. package/dist/app.js +1 -1
  26. package/dist/assets/{processTableData.worker-r9RKAQPd.js → formatChartData.worker-UoGYoYc3.js} +30 -42
  27. package/dist/assets/{formatChartData.worker-DcIXAZPX.js → processTableData.worker-DxE4bjxG.js} +33 -45
  28. package/dist/{currency-CT2q92PX.js → currency-C0VJTl19.js} +1 -1
  29. package/dist/{index-BScxCrNy.js → index-DJ3gCuhy.js} +552 -564
  30. package/dist/{report-BCTiFDGD.js → report-DWa0N3Ys.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/{useRestaurantPermission-Bt2kY6PE.js → useRestaurantPermission-BEaHLbHH.js} +3 -3
  33. package/package.json +1 -1
  34. package/dist/TileEditor-BGiamZMW.js +0 -4184
@@ -1,4 +1,4 @@
1
- import { a6 as br, a3 as dr } from "./app-B1esZ9Mq.js";
1
+ import { a9 as br, a6 as dr } from "./app-0yX5NkWR.js";
2
2
  function bt(_) {
3
3
  throw new Error('Could not dynamically require "' + _ + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -39,24 +39,24 @@ var dt = {};
39
39
  return J[1];
40
40
  }
41
41
  }
42
- var F = null;
42
+ var C = null;
43
43
  Object.defineProperty(f, "document", {
44
44
  value: {
45
45
  get currentScript() {
46
- return F == null && (F = { src: S() }), F;
46
+ return C == null && (C = { src: S() }), C;
47
47
  }
48
48
  }
49
49
  });
50
- }(), f.dartDeferredLibraryLoader = function(S, F, N) {
50
+ }(), f.dartDeferredLibraryLoader = function(S, C, N) {
51
51
  try {
52
- load(S), F();
52
+ load(S), C();
53
53
  } catch (P) {
54
54
  N(P);
55
55
  }
56
56
  };
57
57
  }
58
58
  (function() {
59
- function F(r, e) {
59
+ function C(r, e) {
60
60
  for (var n = Object.keys(r), a = 0; a < n.length; a++) {
61
61
  var i = n[a];
62
62
  e[i] = r[i];
@@ -97,7 +97,7 @@ var dt = {};
97
97
  return;
98
98
  }
99
99
  var n = Object.create(e.prototype);
100
- F(r.prototype, n), r.prototype = n;
100
+ C(r.prototype, n), r.prototype = n;
101
101
  }
102
102
  }
103
103
  function Y(r, e) {
@@ -186,27 +186,27 @@ var dt = {};
186
186
  r[e] = O;
187
187
  }
188
188
  function L0(r) {
189
- var e = C.interceptorsByTag;
189
+ var e = L.interceptorsByTag;
190
190
  if (!e) {
191
- C.interceptorsByTag = r;
191
+ L.interceptorsByTag = r;
192
192
  return;
193
193
  }
194
- F(r, e);
194
+ C(r, e);
195
195
  }
196
196
  function m0(r) {
197
- var e = C.leafTags;
197
+ var e = L.leafTags;
198
198
  if (!e) {
199
- C.leafTags = r;
199
+ L.leafTags = r;
200
200
  return;
201
201
  }
202
- F(r, e);
202
+ C(r, e);
203
203
  }
204
204
  function b0(r) {
205
- var e = C.types, n = e.length;
205
+ var e = L.types, n = e.length;
206
206
  return e.push.apply(e, r), n;
207
207
  }
208
208
  function p0(r, e) {
209
- return F(e, r), r;
209
+ return C(e, r), r;
210
210
  }
211
211
  var a0 = function() {
212
212
  var r = function(n, a, i, s, l) {
@@ -265,8 +265,8 @@ var dt = {};
265
265
  }
266
266
  },
267
267
  Sort__dualPivotQuicksort(r, e, n, a) {
268
- var i, s, l, p, c, M, b, O, D, $, E = u.JSInt_methods._tdivFast$1(n - e + 1, 6), g = e + E, h = n - E, R = u.JSInt_methods._tdivFast$1(e + n, 2), L = R - E, W = R + E, B = o.getInterceptor$asx(r), I = B.$index(r, g), x = B.$index(r, L), w = B.$index(r, R), v = B.$index(r, W), X = B.$index(r, h);
269
- if (a.call$2(I, x) > 0 && (i = x, x = I, I = i), a.call$2(v, X) > 0 && (i = X, X = v, v = i), a.call$2(I, w) > 0 && (i = w, w = I, I = i), a.call$2(x, w) > 0 && (i = w, w = x, x = i), a.call$2(I, v) > 0 && (i = v, v = I, I = i), a.call$2(w, v) > 0 && (i = v, v = w, w = i), a.call$2(x, X) > 0 && (i = X, X = x, x = i), a.call$2(x, w) > 0 && (i = w, w = x, x = i), a.call$2(v, X) > 0 && (i = X, X = v, v = i), B.$indexSet(r, g, I), B.$indexSet(r, R, w), B.$indexSet(r, h, X), B.$indexSet(r, L, B.$index(r, e)), B.$indexSet(r, W, B.$index(r, n)), s = e + 1, l = n - 1, o.$eq$(a.call$2(x, v), 0)) {
268
+ var i, s, l, p, c, M, b, O, D, $, E = u.JSInt_methods._tdivFast$1(n - e + 1, 6), g = e + E, h = n - E, T = u.JSInt_methods._tdivFast$1(e + n, 2), F = T - E, W = T + E, B = o.getInterceptor$asx(r), I = B.$index(r, g), x = B.$index(r, F), w = B.$index(r, T), v = B.$index(r, W), X = B.$index(r, h);
269
+ if (a.call$2(I, x) > 0 && (i = x, x = I, I = i), a.call$2(v, X) > 0 && (i = X, X = v, v = i), a.call$2(I, w) > 0 && (i = w, w = I, I = i), a.call$2(x, w) > 0 && (i = w, w = x, x = i), a.call$2(I, v) > 0 && (i = v, v = I, I = i), a.call$2(w, v) > 0 && (i = v, v = w, w = i), a.call$2(x, X) > 0 && (i = X, X = x, x = i), a.call$2(x, w) > 0 && (i = w, w = x, x = i), a.call$2(v, X) > 0 && (i = X, X = v, v = i), B.$indexSet(r, g, I), B.$indexSet(r, T, w), B.$indexSet(r, h, X), B.$indexSet(r, F, B.$index(r, e)), B.$indexSet(r, W, B.$index(r, n)), s = e + 1, l = n - 1, o.$eq$(a.call$2(x, v), 0)) {
270
270
  for (p = s; p <= l; ++p)
271
271
  if (c = B.$index(r, p), M = a.call$2(c, x), M !== 0)
272
272
  if (M < 0)
@@ -407,7 +407,7 @@ var dt = {};
407
407
  throw t.wrapException(t.UnsupportedError$("Cannot modify unmodifiable Map"));
408
408
  },
409
409
  unminifyOrTag(r) {
410
- var e = C.mangledGlobalNames[r];
410
+ var e = L.mangledGlobalNames[r];
411
411
  return e ?? r;
412
412
  },
413
413
  isJsIndexable(r, e) {
@@ -569,14 +569,14 @@ var dt = {};
569
569
  return t.Primitives__generalApplyFunction(r, e, n);
570
570
  },
571
571
  Primitives__generalApplyFunction(r, e, n) {
572
- var a, i, s, l, p, c, M, b, O, D, $, E, g = Array.isArray(e) ? e : t.List_List$of(e, !0, d.dynamic), h = g.length, R = r.$requiredArgCount;
573
- if (h < R)
572
+ var a, i, s, l, p, c, M, b, O, D, $, E, g = Array.isArray(e) ? e : t.List_List$of(e, !0, d.dynamic), h = g.length, T = r.$requiredArgCount;
573
+ if (h < T)
574
574
  return t.Primitives_functionNoSuchMethod(r, g, n);
575
575
  if (a = r.$defaultValues, i = a == null, s = i ? null : a(), l = o.getInterceptor$(r), p = l["call*"], typeof p == "string" && (p = l[p]), i)
576
- return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, g, n) : h === R ? p.apply(r, g) : t.Primitives_functionNoSuchMethod(r, g, n);
576
+ return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, g, n) : h === T ? p.apply(r, g) : t.Primitives_functionNoSuchMethod(r, g, n);
577
577
  if (Array.isArray(s))
578
- return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, g, n) : (c = R + s.length, h > c ? t.Primitives_functionNoSuchMethod(r, g, null) : (h < c && (M = s.slice(h - R), g === e && (g = t.List_List$of(g, !0, d.dynamic)), u.JSArray_methods.addAll$1(g, M)), p.apply(r, g)));
579
- if (h > R)
578
+ return n != null && n.__js_helper$_length !== 0 ? t.Primitives_functionNoSuchMethod(r, g, n) : (c = T + s.length, h > c ? t.Primitives_functionNoSuchMethod(r, g, null) : (h < c && (M = s.slice(h - T), g === e && (g = t.List_List$of(g, !0, d.dynamic)), u.JSArray_methods.addAll$1(g, M)), p.apply(r, g)));
579
+ if (h > T)
580
580
  return t.Primitives_functionNoSuchMethod(r, g, n);
581
581
  if (g === e && (g = t.List_List$of(g, !0, d.dynamic)), b = Object.keys(s), n == null)
582
582
  for (i = b.length, O = 0; O < b.length; b.length === i || (0, t.throwConcurrentModificationError)(b), ++O) {
@@ -690,13 +690,13 @@ var dt = {};
690
690
  return e;
691
691
  },
692
692
  Closure_fromTearOff(r) {
693
- var e, n, a, i, s, l, p, c, M, b, O = r.co, D = r.iS, $ = r.iI, E = r.nDA, g = r.aI, h = r.fs, R = r.cs, L = h[0], W = R[0], B = O[L], I = r.fT;
693
+ var e, n, a, i, s, l, p, c, M, b, O = r.co, D = r.iS, $ = r.iI, E = r.nDA, g = r.aI, h = r.fs, T = r.cs, F = h[0], W = T[0], B = O[F], I = r.fT;
694
694
  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() {
695
695
  this.$initialize();
696
696
  } : n = function(w, v) {
697
697
  this.$initialize(w, v);
698
- }, e.constructor = n, n.prototype = e, e.$_name = L, e.$_target = B, a = !D, a ? i = t.Closure_forwardCallTo(L, B, $, E) : (e.$static_name = L, i = B), e.$signature = t.Closure__computeSignatureFunctionNewRti(I, D, $), e[W] = i, s = i, l = 1; l < h.length; ++l)
699
- p = h[l], typeof p == "string" ? (c = O[p], M = p, p = c) : M = "", b = R[l], b != null && (a && (p = t.Closure_forwardCallTo(M, p, $, E)), e[b] = p), l === g && (s = p);
698
+ }, e.constructor = n, n.prototype = e, e.$_name = F, e.$_target = B, a = !D, a ? i = t.Closure_forwardCallTo(F, B, $, E) : (e.$static_name = F, i = B), e.$signature = t.Closure__computeSignatureFunctionNewRti(I, D, $), e[W] = i, s = i, l = 1; l < h.length; ++l)
699
+ p = h[l], typeof p == "string" ? (c = O[p], M = p, p = c) : M = "", b = T[l], b != null && (a && (p = t.Closure_forwardCallTo(M, p, $, E)), e[b] = p), l === g && (s = p);
700
700
  return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, n;
701
701
  },
702
702
  Closure__computeSignatureFunctionNewRti(r, e, n) {
@@ -822,7 +822,7 @@ var dt = {};
822
822
  return t.Closure_fromTearOff(r);
823
823
  },
824
824
  BoundClosure_evalRecipe(r, e) {
825
- return t._Universe_evalInEnvironment(C.typeUniverse, t.instanceType(r._receiver), e);
825
+ return t._Universe_evalInEnvironment(L.typeUniverse, t.instanceType(r._receiver), e);
826
826
  },
827
827
  BoundClosure_receiverOf(r) {
828
828
  return r._receiver;
@@ -841,7 +841,7 @@ var dt = {};
841
841
  throw t.wrapException(new t.CyclicInitializationError(r));
842
842
  },
843
843
  getIsolateAffinityTag(r) {
844
- return C.getIsolateTag(r);
844
+ return L.getIsolateTag(r);
845
845
  },
846
846
  defineProperty(r, e, n) {
847
847
  Object.defineProperty(r, e, { value: n, enumerable: !1, writable: !0, configurable: !0 });
@@ -849,50 +849,50 @@ var dt = {};
849
849
  lookupAndCacheInterceptor(r) {
850
850
  var e, n, a, i, s, l = q.getTagFunction.call$1(r), p = q.dispatchRecordsForInstanceTags[l];
851
851
  if (p != null)
852
- return Object.defineProperty(r, C.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), p.i;
852
+ return Object.defineProperty(r, L.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), p.i;
853
853
  if (e = q.interceptorsForUncacheableTags[l], e != null)
854
854
  return e;
855
- if (n = C.interceptorsByTag[l], n == null && (a = q.alternateTagFunction.call$2(r, l), a != null)) {
855
+ if (n = L.interceptorsByTag[l], n == null && (a = q.alternateTagFunction.call$2(r, l), a != null)) {
856
856
  if (p = q.dispatchRecordsForInstanceTags[a], p != null)
857
- return Object.defineProperty(r, C.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), p.i;
857
+ return Object.defineProperty(r, L.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), p.i;
858
858
  if (e = q.interceptorsForUncacheableTags[a], e != null)
859
859
  return e;
860
- n = C.interceptorsByTag[a], l = a;
860
+ n = L.interceptorsByTag[a], l = a;
861
861
  }
862
862
  if (n == null)
863
863
  return null;
864
864
  if (e = n.prototype, i = l[0], i === "!")
865
- return p = t.makeLeafDispatchRecord(e), q.dispatchRecordsForInstanceTags[l] = p, Object.defineProperty(r, C.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), p.i;
865
+ return p = t.makeLeafDispatchRecord(e), q.dispatchRecordsForInstanceTags[l] = p, Object.defineProperty(r, L.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), p.i;
866
866
  if (i === "~")
867
867
  return q.interceptorsForUncacheableTags[l] = e, e;
868
868
  if (i === "-")
869
- return s = t.makeLeafDispatchRecord(e), Object.defineProperty(Object.getPrototypeOf(r), C.dispatchPropertyName, { value: s, enumerable: !1, writable: !0, configurable: !0 }), s.i;
869
+ return s = t.makeLeafDispatchRecord(e), Object.defineProperty(Object.getPrototypeOf(r), L.dispatchPropertyName, { value: s, enumerable: !1, writable: !0, configurable: !0 }), s.i;
870
870
  if (i === "+")
871
871
  return t.patchInteriorProto(r, e);
872
872
  if (i === "*")
873
873
  throw t.wrapException(t.UnimplementedError$(l));
874
- return C.leafTags[l] === !0 ? (s = t.makeLeafDispatchRecord(e), Object.defineProperty(Object.getPrototypeOf(r), C.dispatchPropertyName, { value: s, enumerable: !1, writable: !0, configurable: !0 }), s.i) : t.patchInteriorProto(r, e);
874
+ return L.leafTags[l] === !0 ? (s = t.makeLeafDispatchRecord(e), Object.defineProperty(Object.getPrototypeOf(r), L.dispatchPropertyName, { value: s, enumerable: !1, writable: !0, configurable: !0 }), s.i) : t.patchInteriorProto(r, e);
875
875
  },
876
876
  patchInteriorProto(r, e) {
877
877
  var n = Object.getPrototypeOf(r);
878
- return Object.defineProperty(n, C.dispatchPropertyName, { value: o.makeDispatchRecord(e, n, null, null), enumerable: !1, writable: !0, configurable: !0 }), e;
878
+ return Object.defineProperty(n, L.dispatchPropertyName, { value: o.makeDispatchRecord(e, n, null, null), enumerable: !1, writable: !0, configurable: !0 }), e;
879
879
  },
880
880
  makeLeafDispatchRecord(r) {
881
881
  return o.makeDispatchRecord(r, !1, null, !!r.$isJavaScriptIndexingBehavior);
882
882
  },
883
883
  makeDefaultDispatchRecord(r, e, n) {
884
884
  var a = e.prototype;
885
- return C.leafTags[r] === !0 ? t.makeLeafDispatchRecord(a) : o.makeDispatchRecord(a, n, null, null);
885
+ return L.leafTags[r] === !0 ? t.makeLeafDispatchRecord(a) : o.makeDispatchRecord(a, n, null, null);
886
886
  },
887
887
  initNativeDispatch() {
888
888
  q.initNativeDispatchFlag !== !0 && (q.initNativeDispatchFlag = !0, t.initNativeDispatchContinue());
889
889
  },
890
890
  initNativeDispatchContinue() {
891
891
  var r, e, n, a, i, s, l, p;
892
- if (q.dispatchRecordsForInstanceTags = /* @__PURE__ */ Object.create(null), q.interceptorsForUncacheableTags = /* @__PURE__ */ Object.create(null), t.initHooks(), r = C.interceptorsByTag, e = Object.getOwnPropertyNames(r), typeof window < "u")
892
+ if (q.dispatchRecordsForInstanceTags = /* @__PURE__ */ Object.create(null), q.interceptorsForUncacheableTags = /* @__PURE__ */ Object.create(null), t.initHooks(), r = L.interceptorsByTag, e = Object.getOwnPropertyNames(r), typeof window < "u")
893
893
  for (n = function() {
894
894
  }, a = 0; a < e.length; ++a)
895
- i = e[a], s = q.prototypeForTagFunction.call$1(i), s != null && (l = t.makeDefaultDispatchRecord(i, r[i], s), l != null && (Object.defineProperty(s, C.dispatchPropertyName, { value: l, enumerable: !1, writable: !0, configurable: !0 }), n.prototype = s));
895
+ i = e[a], s = q.prototypeForTagFunction.call$1(i), s != null && (l = t.makeDefaultDispatchRecord(i, r[i], s), l != null && (Object.defineProperty(s, L.dispatchPropertyName, { value: l, enumerable: !1, writable: !0, configurable: !0 }), n.prototype = s));
896
896
  for (a = 0; a < e.length; ++a)
897
897
  i = e[a], /^[A-Za-z_]/.test(i) && (p = r[i], r["!" + i] = p, r["~" + i] = p, r["-" + i] = p, r["+" + i] = p, r["*" + i] = p);
898
898
  },
@@ -1139,10 +1139,10 @@ var dt = {};
1139
1139
  return r._canonicalRecipe;
1140
1140
  },
1141
1141
  findType(r) {
1142
- return t._Universe_eval(C.typeUniverse, r, !1);
1142
+ return t._Universe_eval(L.typeUniverse, r, !1);
1143
1143
  },
1144
1144
  _substitute(r, e, n, a) {
1145
- var i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B = e._kind;
1145
+ var i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B = e._kind;
1146
1146
  switch (B) {
1147
1147
  case 5:
1148
1148
  case 1:
@@ -1163,9 +1163,9 @@ var dt = {};
1163
1163
  case 12:
1164
1164
  return D = e._primary, $ = t._substitute(r, D, n, a), E = e._rest, g = t._substituteFunctionParameters(r, E, n, a), $ === D && g === E ? e : t._Universe__lookupFunctionRti(r, $, g);
1165
1165
  case 13:
1166
- return h = e._rest, a += h.length, R = t._substituteArray(r, h, n, a), c = e._primary, M = t._substitute(r, c, n, a), R === h && M === c ? e : t._Universe__lookupGenericFunctionRti(r, M, R, !0);
1166
+ return h = e._rest, a += h.length, T = t._substituteArray(r, h, n, a), c = e._primary, M = t._substitute(r, c, n, a), T === h && M === c ? e : t._Universe__lookupGenericFunctionRti(r, M, T, !0);
1167
1167
  case 14:
1168
- return L = e._primary, L < a || (W = n[L - a], W == null) ? e : W;
1168
+ return F = e._primary, F < a || (W = n[F - a], W == null) ? e : W;
1169
1169
  default:
1170
1170
  throw t.wrapException(t.AssertionError$("Attempted to substitute unexpected RTI kind " + B));
1171
1171
  }
@@ -1187,7 +1187,7 @@ var dt = {};
1187
1187
  return l === s && c === p && b === M ? e : (i = new t._FunctionParameters(), i._requiredPositional = l, i._optionalPositional = c, i._named = b, i);
1188
1188
  },
1189
1189
  _setArrayType(r, e) {
1190
- return r[C.arrayRti] = e, r;
1190
+ return r[L.arrayRti] = e, r;
1191
1191
  },
1192
1192
  closureFunctionType(r) {
1193
1193
  var e, n = r.$signature;
@@ -1202,7 +1202,7 @@ var dt = {};
1202
1202
  return r instanceof t.Object ? (e = r.$ti, e ?? t._instanceTypeFromConstructor(r)) : Array.isArray(r) ? t._arrayInstanceType(r) : t._instanceTypeFromConstructor(o.getInterceptor$(r));
1203
1203
  },
1204
1204
  _arrayInstanceType(r) {
1205
- var e = r[C.arrayRti], n = d.JSArray_dynamic;
1205
+ var e = r[L.arrayRti], n = d.JSArray_dynamic;
1206
1206
  return e == null || e.constructor !== n.constructor ? n : e;
1207
1207
  },
1208
1208
  _instanceType(r) {
@@ -1214,19 +1214,19 @@ var dt = {};
1214
1214
  return n ?? t._instanceTypeFromConstructorMiss(r, e);
1215
1215
  },
1216
1216
  _instanceTypeFromConstructorMiss(r, e) {
1217
- var n = r instanceof t.Closure ? r.__proto__.__proto__.constructor : e, a = t._Universe_findErasedType(C.typeUniverse, n.name);
1217
+ var n = r instanceof t.Closure ? r.__proto__.__proto__.constructor : e, a = t._Universe_findErasedType(L.typeUniverse, n.name);
1218
1218
  return e.$ccache = a, a;
1219
1219
  },
1220
1220
  getTypeFromTypesTable(r) {
1221
- var e, n = C.types, a = n[r];
1222
- return typeof a == "string" ? (e = t._Universe_eval(C.typeUniverse, a, !1), n[r] = e, e) : a;
1221
+ var e, n = L.types, a = n[r];
1222
+ return typeof a == "string" ? (e = t._Universe_eval(L.typeUniverse, a, !1), n[r] = e, e) : a;
1223
1223
  },
1224
1224
  createRuntimeType(r) {
1225
1225
  var e, n, a, i = r._cachedRuntimeType;
1226
- return i ?? (e = r._canonicalRecipe, n = e.replace(/\*/g, ""), n === e ? r._cachedRuntimeType = new t._Type(r) : (a = t._Universe_eval(C.typeUniverse, n, !0), i = a._cachedRuntimeType, r._cachedRuntimeType = i ?? (a._cachedRuntimeType = new t._Type(a))));
1226
+ return i ?? (e = r._canonicalRecipe, n = e.replace(/\*/g, ""), n === e ? r._cachedRuntimeType = new t._Type(r) : (a = t._Universe_eval(L.typeUniverse, n, !0), i = a._cachedRuntimeType, r._cachedRuntimeType = i ?? (a._cachedRuntimeType = new t._Type(a))));
1227
1227
  },
1228
1228
  typeLiteral(r) {
1229
- return t.createRuntimeType(t._Universe_eval(C.typeUniverse, r, !1));
1229
+ return t.createRuntimeType(t._Universe_eval(L.typeUniverse, r, !1));
1230
1230
  },
1231
1231
  _installSpecializedIsTest(r) {
1232
1232
  var e, n, a, i, s = this;
@@ -1256,7 +1256,7 @@ var dt = {};
1256
1256
  },
1257
1257
  _generalIsTestImplementation(r) {
1258
1258
  var e = this;
1259
- return r == null ? t._nullIs(e) : t._isSubtype(C.typeUniverse, t.instanceOrFunctionType(r, e), null, e, null);
1259
+ return r == null ? t._nullIs(e) : t._isSubtype(L.typeUniverse, t.instanceOrFunctionType(r, e), null, e, null);
1260
1260
  },
1261
1261
  _generalNullableIsTestImplementation(r) {
1262
1262
  return r == null ? !0 : this._primary._is(r);
@@ -1425,7 +1425,7 @@ var dt = {};
1425
1425
  return s + "})";
1426
1426
  },
1427
1427
  _functionRtiToString(r, e, n) {
1428
- var a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v = ", ";
1428
+ var a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v = ", ";
1429
1429
  if (n != null) {
1430
1430
  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)
1431
1431
  e.push("T" + (s + l));
@@ -1434,11 +1434,11 @@ var dt = {};
1434
1434
  M += ">";
1435
1435
  } else
1436
1436
  M = "", i = null;
1437
- for (p = r._primary, E = r._rest, g = E._requiredPositional, h = g.length, R = E._optionalPositional, L = R.length, W = E._named, B = W.length, I = t._rtiToString(p, e), x = "", w = "", l = 0; l < h; ++l, w = v)
1437
+ for (p = r._primary, E = r._rest, g = E._requiredPositional, h = g.length, T = E._optionalPositional, F = T.length, W = E._named, B = W.length, I = t._rtiToString(p, e), x = "", w = "", l = 0; l < h; ++l, w = v)
1438
1438
  x += w + t._rtiToString(g[l], e);
1439
- if (L > 0) {
1440
- for (x += w + "[", w = "", l = 0; l < L; ++l, w = v)
1441
- x += w + t._rtiToString(R[l], e);
1439
+ if (F > 0) {
1440
+ for (x += w + "[", w = "", l = 0; l < F; ++l, w = v)
1441
+ x += w + t._rtiToString(T[l], e);
1442
1442
  x += "]";
1443
1443
  }
1444
1444
  if (B > 0) {
@@ -1453,7 +1453,7 @@ var dt = {};
1453
1453
  return c === 5 ? "erased" : c === 2 ? "dynamic" : c === 3 ? "void" : c === 1 ? "Never" : c === 4 ? "any" : c === 6 ? (n = t._rtiToString(r._primary, e), n) : c === 7 ? (a = r._primary, n = t._rtiToString(a, e), i = a._kind, (i === 12 || i === 13 ? "(" + n + ")" : n) + "?") : c === 8 ? "FutureOr<" + t._rtiToString(r._primary, e) + ">" : c === 9 ? (s = t._unminifyOrTag(r._primary), l = r._rest, l.length > 0 ? s + ("<" + t._rtiArrayToString(l, e) + ">") : s) : c === 11 ? t._recordRtiToString(r, e) : c === 12 ? t._functionRtiToString(r, e, null) : c === 13 ? t._functionRtiToString(r._primary, e, r._rest) : c === 14 ? (p = r._primary, e[e.length - 1 - p]) : "?";
1454
1454
  },
1455
1455
  _unminifyOrTag(r) {
1456
- var e = C.mangledGlobalNames[r];
1456
+ var e = L.mangledGlobalNames[r];
1457
1457
  return e ?? r;
1458
1458
  },
1459
1459
  _Universe_findRule(r, e) {
@@ -1804,33 +1804,33 @@ var dt = {};
1804
1804
  return c === 12 ? e === d.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, a, i) : l === 9 ? c !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, a, i) : (s = l === 11, s && a === d.Record ? !0 : s && c === 11 ? t._isRecordSubtype(r, e, n, a, i) : !1);
1805
1805
  },
1806
1806
  _isFunctionSubtype(r, e, n, a, i) {
1807
- var s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X, K;
1807
+ var s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X, K;
1808
1808
  if (!t._isSubtype(r, e._primary, n, a._primary, i) || (s = e._rest, l = a._rest, p = s._requiredPositional, c = l._requiredPositional, M = p.length, b = c.length, M > b) || (O = b - M, D = s._optionalPositional, $ = l._optionalPositional, E = D.length, g = $.length, M + E < b + g))
1809
1809
  return !1;
1810
1810
  for (h = 0; h < M; ++h)
1811
- if (R = p[h], !t._isSubtype(r, c[h], i, R, n))
1811
+ if (T = p[h], !t._isSubtype(r, c[h], i, T, n))
1812
1812
  return !1;
1813
1813
  for (h = 0; h < O; ++h)
1814
- if (R = D[h], !t._isSubtype(r, c[M + h], i, R, n))
1814
+ if (T = D[h], !t._isSubtype(r, c[M + h], i, T, n))
1815
1815
  return !1;
1816
1816
  for (h = 0; h < g; ++h)
1817
- if (R = D[O + h], !t._isSubtype(r, $[h], i, R, n))
1817
+ if (T = D[O + h], !t._isSubtype(r, $[h], i, T, n))
1818
1818
  return !1;
1819
- for (L = s._named, W = l._named, B = L.length, I = W.length, x = 0, w = 0; w < I; w += 3)
1819
+ for (F = s._named, W = l._named, B = F.length, I = W.length, x = 0, w = 0; w < I; w += 3)
1820
1820
  for (v = W[w]; ; ) {
1821
- if (x >= B || (X = L[x], x += 3, v < X))
1821
+ if (x >= B || (X = F[x], x += 3, v < X))
1822
1822
  return !1;
1823
- if (K = L[x - 2], X < v) {
1823
+ if (K = F[x - 2], X < v) {
1824
1824
  if (K)
1825
1825
  return !1;
1826
1826
  continue;
1827
1827
  }
1828
- if (R = W[w + 1], K && !R || (R = L[x - 1], !t._isSubtype(r, W[w + 2], i, R, n)))
1828
+ if (T = W[w + 1], K && !T || (T = F[x - 1], !t._isSubtype(r, W[w + 2], i, T, n)))
1829
1829
  return !1;
1830
1830
  break;
1831
1831
  }
1832
1832
  for (; x < B; ) {
1833
- if (L[x + 1])
1833
+ if (F[x + 1])
1834
1834
  return !1;
1835
1835
  x += 3;
1836
1836
  }
@@ -1846,7 +1846,7 @@ var dt = {};
1846
1846
  }
1847
1847
  if (l = s[$], l == null)
1848
1848
  return !1;
1849
- for (p = l.length, c = p > 0 ? new Array(p) : C.typeUniverse.sEA, M = 0; M < p; ++M)
1849
+ for (p = l.length, c = p > 0 ? new Array(p) : L.typeUniverse.sEA, M = 0; M < p; ++M)
1850
1850
  c[M] = t._Universe_evalInEnvironment(r, e, l[M]);
1851
1851
  return t._areArgumentsSubtypes(r, c, null, n, a._rest, i);
1852
1852
  }
@@ -1886,7 +1886,7 @@ var dt = {};
1886
1886
  a = i[n], r[a] = e[a];
1887
1887
  },
1888
1888
  _Utils_newArrayOrEmpty(r) {
1889
- return r > 0 ? new Array(r) : C.typeUniverse.sEA;
1889
+ return r > 0 ? new Array(r) : L.typeUniverse.sEA;
1890
1890
  },
1891
1891
  Rti: function(e, n) {
1892
1892
  var a = this;
@@ -2290,9 +2290,9 @@ var dt = {};
2290
2290
  return new t.DateTime(Date.now(), !1);
2291
2291
  },
2292
2292
  DateTime_parse(r) {
2293
- var e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R = q.$get$DateTime__parseFormat().firstMatch$1(r);
2294
- if (R != null) {
2295
- if (e = new t.DateTime_parse_parseIntOrZero(), n = R._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]), c = 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 && ($ = D === "-" ? -1 : 1, a = n[10], a.toString, E = t.int_parse(a), c -= $ * (e.call$1(n[11]) + 60 * E)), g = !0) : g = !1, h = t.Primitives_valueFromDecomposedDate(i, s, l, p, c, M, O + u.JSNumber_methods.round$0(b % 1e3 / 1e3), g), h == null)
2293
+ var e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T = q.$get$DateTime__parseFormat().firstMatch$1(r);
2294
+ if (T != null) {
2295
+ 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]), c = 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 && ($ = D === "-" ? -1 : 1, a = n[10], a.toString, E = t.int_parse(a), c -= $ * (e.call$1(n[11]) + 60 * E)), g = !0) : g = !1, h = t.Primitives_valueFromDecomposedDate(i, s, l, p, c, M, O + u.JSNumber_methods.round$0(b % 1e3 / 1e3), g), h == null)
2296
2296
  throw t.wrapException(t.FormatException$("Time out of range", r, null));
2297
2297
  return t.DateTime$_withValue(h, g);
2298
2298
  } else
@@ -2804,7 +2804,7 @@ var dt = {};
2804
2804
  `;
2805
2805
  },
2806
2806
  Materialize_getMergeSql(r, e, n, a, i, s, l) {
2807
- var p, c, M, b, O, D, $, E, g, h, R, L, W = "') AND TIMESTAMP('", B = "and target_table.restaurantId in UNNEST(@restaurantIds)", I = r.source;
2807
+ var p, c, M, b, O, D, $, E, g, h, T, F, W = "') AND TIMESTAMP('", B = "and target_table.restaurantId in UNNEST(@restaurantIds)", I = r.source;
2808
2808
  return I.type === u.SOURCE_TYPE_2 ? (p = I.uniqueKey, p.toString, c = o.getInterceptor$asx(p), M = c.get$length(p) === 1 ? "CAST(" + t.S(c.get$first(p)) + " AS STRING)" : "CONCAT(" + c.map$1$1(p, new t.Materialize_getMergeSql_closure(), d.String).join$1(0, ", '_', ") + ")", b = I.timeColumn, b.toString, O = `WITH docs as
2809
2809
  (
2810
2810
  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 " + c.join$1(p, ",") + " ORDER BY " + b + " DESC) as rn \n FROM `" + r.get$fullRawTableName() + "` AS src\n WHERE " + b + " between TIMESTAMP('" + a + W + n + `')) WHERE rn=1
@@ -2819,15 +2819,15 @@ var dt = {};
2819
2819
  SELECT
2820
2820
  ` + $ + `
2821
2821
  FROM raw_table ` + I + `
2822
- `, I = b.where$1(c, new t.Materialize_getMergeSql_closure2()), g = 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 ? (R = I.map$1$1(l, t.core_DateTime_parse$closure(), d.DateTime).toList$0(0), u.JSArray_methods.sort$0(R), h = "and target_table.createdAt >= TIMESTAMP('" + u.JSArray_methods.get$first(R).toUtc$0().toIso8601String$0() + "') and target_table.createdAt < TIMESTAMP('" + u.JSArray_methods.get$last(R).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), $ = p.get$isNotEmpty(i) ? B : "", c = b.where$1(c, new t.Materialize_getMergeSql_closure4()), c = new t.MappedIterable(c, new t.Materialize_getMergeSql_closure5(), c.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2823
- `), o.get$isNotEmpty$asx(e) ? (b = r.get$fullMaterializedTableName(), p = p.get$isNotEmpty(i) ? B : "", L = "DELETE FROM `" + b + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + E + `) source_table
2822
+ `, I = b.where$1(c, new t.Materialize_getMergeSql_closure2()), g = 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), $ = p.get$isNotEmpty(i) ? B : "", c = b.where$1(c, new t.Materialize_getMergeSql_closure4()), c = new t.MappedIterable(c, new t.Materialize_getMergeSql_closure5(), c.$ti._eval$1("MappedIterable<1,String>")).join$1(0, `,
2823
+ `), o.get$isNotEmpty$asx(e) ? (b = r.get$fullMaterializedTableName(), p = p.get$isNotEmpty(i) ? B : "", F = "DELETE FROM `" + b + "` target_table WHERE NOT EXISTS (\n select id,docId from (" + E + `) source_table
2824
2824
  WHERE source_table.id = target_table.id
2825
2825
  and source_table.docId = target_table.docId
2826
2826
  )
2827
2827
  ` + h + `
2828
2828
  ` + p + `
2829
2829
  and target_table.docId in UNNEST(@docIds)
2830
- `) : L = "", "MERGE INTO `" + I + "` AS target_table USING (\n" + E + `
2830
+ `) : F = "", "MERGE INTO `" + I + "` AS target_table USING (\n" + E + `
2831
2831
  ) AS source_table ON
2832
2832
  target_table.id = source_table.id
2833
2833
  and target_table.docId = source_table.docId
@@ -2841,48 +2841,36 @@ and target_table.docId in UNNEST(@docIds)
2841
2841
  when not matched by target
2842
2842
  then insert (` + g + ") values (" + g + `);
2843
2843
 
2844
- ` + L + `
2844
+ ` + F + `
2845
2845
  `;
2846
2846
  },
2847
2847
  Materialize_getMaterializeInfoSql(r, e, n, a, i) {
2848
- var s, l, p, c, M, b, O, D, $, E, g = '") AND TIMESTAMP("', h = "CAST(JSON_VALUE(", R = ", '$._restaurantId') AS STRING) AS restaurantId,", L = r.source, W = L.field, B = W != null;
2849
- return L.type === u.SOURCE_TYPE_2 ? (s = L.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, ", '_', ") + ")", c = L.timeColumn, c.toString, M = l.join$1(s, ","), b = L.dateColumns, b == null && (b = t._setArrayType([], d.JSArray_String)), O = c + ' between TIMESTAMP("' + a + g + e + '")', L = o.getInterceptor$asx(b), D = L.get$isNotEmpty(b) ? "SELECT * REPLACE(" + L.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, $ = `docs AS (
2848
+ var s, l, p, c, M, b, O, D, $, E, g, h = '") AND TIMESTAMP("', T = r.source, F = T.field, W = F != null;
2849
+ 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, ", '_', ") + ")", c = T.timeColumn, c.toString, M = l.join$1(s, ","), b = T.dateColumns, b == null && (b = t._setArrayType([], d.JSArray_String)), O = c + ' 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, $ = `docs AS (
2850
2850
  SELECT * FROM (
2851
2851
  SELECT TO_JSON_STRING(src) AS data, ` + p + " AS id, '' AS db_name, " + c + ` AS publish_time, false AS deleted,
2852
2852
  ROW_NUMBER() OVER (PARTITION BY ` + M + " ORDER BY " + c + ` DESC) as rn
2853
2853
  FROM (` + D + `) AS src
2854
2854
  ) WHERE rn=1
2855
- )`) : $ = "docs AS (\n SELECT data, db_name, publish_time, deleted, id FROM `" + r.get$fullRawTableName() + '`\n WHERE publish_time between TIMESTAMP("' + a + g + e + `")
2856
- )`, L = r.getTransformedTableQuery$1$getParentDocs(!0), s = B ? `child_table AS (
2857
- ` + r.getTransformedTableQuery$1$getParentDocs(!1) + `
2858
- ),
2859
- ` : "", l = r.name._name, c = n ? h + l + R : "", B ? (E = n ? h + l + R : "", W = ` UNION ALL
2860
- SELECT
2861
- CAST(JSON_VALUE(` + l + `, '$._docId') AS STRING) AS docId,
2862
- ` + E + `
2863
- CAST(JSON_VALUE(` + l + `, '$._createdAt') AS TIMESTAMP) AS createdAt,
2864
- CAST(JSON_VALUE(` + l + `, '$._deleted') AS BOOL) AS deleted
2865
- FROM child_table CROSS JOIN UNNEST(` + W + ") AS " + l + `
2866
- `) : W = "", E = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
2855
+ )`) : $ = "docs AS (\n SELECT data, db_name, publish_time, deleted, id FROM `" + r.get$fullRawTableName() + '`\n WHERE publish_time between TIMESTAMP("' + a + h + e + `")
2856
+ )`, E = W ? "info_row" : r.name._name, W ? (T = r.name._name, g = "parent_table CROSS JOIN UNNEST(ARRAY_CONCAT([parent_table." + T + "], IFNULL(JSON_QUERY_ARRAY(parent_table." + T + ", '$." + F + "'), ARRAY<JSON>[]))) AS info_row") : g = "parent_table", T = r.getTransformedTableQuery$1$getParentDocs(!0), F = n ? "CAST(JSON_VALUE(" + E + ", '$._restaurantId') AS STRING) AS restaurantId," : "", s = n ? "ARRAY_AGG(DISTINCT restaurantId IGNORE NULLS) restaurantIds," : "", `WITH
2867
2857
  ` + $ + `,
2868
2858
  parent_table AS (
2869
- ` + L + `
2859
+ ` + T + `
2870
2860
  ),
2871
- ` + s + `
2872
2861
  formatted_table as (SELECT
2873
- CAST(JSON_VALUE(` + l + `, '$._docId') AS STRING) AS docId,
2874
- ` + c + `
2875
- CAST(JSON_VALUE(` + l + `, '$._createdAt') AS TIMESTAMP) AS createdAt,
2876
- CAST(JSON_VALUE(` + l + `, '$._deleted') AS BOOL) AS deleted
2877
- FROM parent_table
2878
- ` + W + `
2862
+ CAST(JSON_VALUE(` + E + `, '$._docId') AS STRING) AS docId,
2863
+ ` + F + `
2864
+ CAST(JSON_VALUE(` + E + `, '$._createdAt') AS TIMESTAMP) AS createdAt,
2865
+ CAST(JSON_VALUE(` + E + `, '$._deleted') AS BOOL) AS deleted
2866
+ FROM ` + g + `
2879
2867
  )
2880
2868
  select
2881
2869
  MIN(createdAt) minUpdateTimestamp,
2882
2870
  MAX(createdAt) maxUpdateTimestamp,
2883
2871
  ARRAY_AGG(DISTINCT TIMESTAMP_TRUNC(createdAt, DAY, 'UTC') IGNORE NULLS) updateTimestamps,
2884
2872
  ARRAY_AGG(DISTINCT docId IGNORE NULLS) docIds,
2885
- ` + E + `
2873
+ ` + s + `
2886
2874
  FROM formatted_table;
2887
2875
  `;
2888
2876
  },
@@ -2928,7 +2916,7 @@ select
2928
2916
  var a = 'FORMAT_TIMESTAMP("%E4Y-%m-%dT%H:%M:%E3SZ", TIMESTAMP_TRUNC(';
2929
2917
  switch (r.index) {
2930
2918
  case 0:
2931
- return T.FORMAT + e + ")";
2919
+ return R.FORMAT + e + ")";
2932
2920
  case 1:
2933
2921
  case 2:
2934
2922
  case 4:
@@ -2982,16 +2970,16 @@ select
2982
2970
  Index$(r, e, n, a) {
2983
2971
  return new t.Index(r, e, a, n);
2984
2972
  },
2985
- Schema$(r, e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X, K, _0, d0, z0, y0) {
2986
- return new t.Schema(v, B, c, W, y0, z0, R, L, E, h, D, K, _0, p, x, I, X, d0, s, O, M, $, n, e, a, w, l, i, b, r, g);
2973
+ Schema$(r, e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X, K, _0, d0, z0, y0) {
2974
+ return new t.Schema(v, B, c, W, y0, z0, T, F, E, h, D, K, _0, p, x, I, X, d0, s, O, M, $, n, e, a, w, l, i, b, r, g);
2987
2975
  },
2988
- Schema_Schema$build(r, e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X, K, _0, d0, z0, y0) {
2976
+ Schema_Schema$build(r, e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X, K, _0, d0, z0, y0) {
2989
2977
  var q0 = c.call$1(v), e0 = W.call$1(v);
2990
- return t.Schema$(r, e, n, a, i, s, l, p, q0, M, b, O, D ?? 300, $, E, g, h, R, L, e0, B, I, x, w, v, X, K, _0, d0, z0, y0);
2978
+ return t.Schema$(r, e, n, a, i, s, l, p, q0, M, b, O, D ?? 300, $, E, g, h, T, F, e0, B, I, x, w, v, X, K, _0, d0, z0, y0);
2991
2979
  },
2992
2980
  Schema_fromJson(r) {
2993
- var e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X, K, _0, d0, z0, y0, q0, e0, W0, h0 = null, N0 = "canonical", x0 = "hierarchy", F0 = d.List_dynamic, U0 = o.map$1$1$ax(F0._as(r.$index(0, "fields")), new t.Schema_fromJson_closure(), d.Field).toList$0(0), P1 = r.$index(0, "label"), J1 = t.EnumByName_byName(u.List_r5g, r.$index(0, "name"));
2994
- return F0 = o.map$1$1$ax(F0._as(r.$index(0, "joins")), new t.Schema_fromJson_closure0(), d.Join).toList$0(0), e = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), n = r.$index(0, "source"), a = t.EnumByName_byName(u.List_ytA, n.$index(0, "type")), i = n.$index(0, "table"), s = n.$index(0, "field"), l = n.$index(0, "dataset"), p = d.nullable_List_dynamic, c = p._as(n.$index(0, "uniqueKey")), c = c == null ? h0 : o.cast$1$0$ax(c, d.String), M = n.$index(0, "timeColumn"), n = p._as(n.$index(0, "dateColumns")), n = n == null ? h0 : o.cast$1$0$ax(n, d.String), b = r.$index(0, "rawTableName"), O = r.$index(0, "rawTopicName"), D = r.$index(0, "dynamicRawTable"), $ = r.$index(0, "materializedTableName"), E = r.$index(0, "materializedPostgresqlTableName"), g = r.$index(0, "isJoinOnly"), h = r.$index(0, "isMaterializeOnly"), R = r.$index(0, "isContinuousUpdate"), L = r.$index(0, "interval"), W = r.$index(0, "partition"), B = r.$index(0, "requirePartitionFilter"), B == null && (B = !0), I = p._as(r.$index(0, "clusters")), I = I == null ? h0 : o.cast$1$0$ax(I, d.String), I == null && (I = t._setArrayType([], d.JSArray_String)), x = p._as(r.$index(0, "indexes")), x = x == null ? h0 : o.map$1$1$ax(x, new t.Schema_fromJson_closure1(), d.Index).toList$0(0), x == null && (x = t._setArrayType([], d.JSArray_Index)), w = p._as(r.$index(0, "filters")), w = w == null ? h0 : o.map$1$1$ax(w, new t.Schema_fromJson_closure2(), d.QueryRequestFilter).toList$0(0), w == null && (w = t._setArrayType([], d.JSArray_QueryRequestFilter)), v = r.$index(0, "isGlobal"), v == null && (v = !1), X = r.$index(0, "isAiHidden"), X == null && (X = !1), p = p._as(r.$index(0, "aiKeywords")), p = p == null ? h0 : o.cast$1$0$ax(p, d.String), p == null && (p = t._setArrayType([], d.JSArray_String)), K = r.$index(0, "aiCategory"), _0 = r.$index(0, "aiPriority"), _0 == null && (_0 = 3), d0 = r.$index(0, "mergeFilterType"), d0 = t.EnumByName_byName(u.List_EfK, d0 ?? "dates"), z0 = r.$index(0, "description"), y0 = r.$index(0, N0) == null ? h0 : t.Canonical_fromJson(r.$index(0, N0)), r.$index(0, x0) == null ? q0 = h0 : (q0 = r.$index(0, x0), q0 = new t.Hierarchy(t._asString(q0.$index(0, "depth")), o.toString$0$(q0.$index(0, "root")), t._asStringQ(q0.$index(0, "parent")), t._asStringQ(q0.$index(0, "rootKey")))), e0 = r.$index(0, "activityAnchor"), e0 == null && (e0 = !1), W0 = r.$index(0, "isDeprecated"), W0 == null && (W0 = !1), t.Schema$(e0, K, p, _0, y0, I, z0, D, U0, w, q0, x, L, X, R, W0, v, g, h, F0, P1, E, $, d0, J1, W, b, O, B, new t.Source(a, i, s, l, c, M, n), e);
2981
+ var e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X, K, _0, d0, z0, y0, q0, e0, W0, h0 = null, N0 = "canonical", x0 = "hierarchy", F0 = d.List_dynamic, U0 = o.map$1$1$ax(F0._as(r.$index(0, "fields")), new t.Schema_fromJson_closure(), d.Field).toList$0(0), P1 = r.$index(0, "label"), J1 = t.EnumByName_byName(u.List_r5g, r.$index(0, "name"));
2982
+ return F0 = o.map$1$1$ax(F0._as(r.$index(0, "joins")), new t.Schema_fromJson_closure0(), d.Join).toList$0(0), e = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), n = r.$index(0, "source"), a = t.EnumByName_byName(u.List_ytA, n.$index(0, "type")), i = n.$index(0, "table"), s = n.$index(0, "field"), l = n.$index(0, "dataset"), p = d.nullable_List_dynamic, c = p._as(n.$index(0, "uniqueKey")), c = c == null ? h0 : o.cast$1$0$ax(c, d.String), M = n.$index(0, "timeColumn"), n = p._as(n.$index(0, "dateColumns")), n = n == null ? h0 : o.cast$1$0$ax(n, d.String), b = r.$index(0, "rawTableName"), O = r.$index(0, "rawTopicName"), D = r.$index(0, "dynamicRawTable"), $ = r.$index(0, "materializedTableName"), E = r.$index(0, "materializedPostgresqlTableName"), g = r.$index(0, "isJoinOnly"), h = r.$index(0, "isMaterializeOnly"), T = r.$index(0, "isContinuousUpdate"), F = r.$index(0, "interval"), W = r.$index(0, "partition"), B = r.$index(0, "requirePartitionFilter"), B == null && (B = !0), I = p._as(r.$index(0, "clusters")), I = I == null ? h0 : o.cast$1$0$ax(I, d.String), I == null && (I = t._setArrayType([], d.JSArray_String)), x = p._as(r.$index(0, "indexes")), x = x == null ? h0 : o.map$1$1$ax(x, new t.Schema_fromJson_closure1(), d.Index).toList$0(0), x == null && (x = t._setArrayType([], d.JSArray_Index)), w = p._as(r.$index(0, "filters")), w = w == null ? h0 : o.map$1$1$ax(w, new t.Schema_fromJson_closure2(), d.QueryRequestFilter).toList$0(0), w == null && (w = t._setArrayType([], d.JSArray_QueryRequestFilter)), v = r.$index(0, "isGlobal"), v == null && (v = !1), X = r.$index(0, "isAiHidden"), X == null && (X = !1), p = p._as(r.$index(0, "aiKeywords")), p = p == null ? h0 : o.cast$1$0$ax(p, d.String), p == null && (p = t._setArrayType([], d.JSArray_String)), K = r.$index(0, "aiCategory"), _0 = r.$index(0, "aiPriority"), _0 == null && (_0 = 3), d0 = r.$index(0, "mergeFilterType"), d0 = t.EnumByName_byName(u.List_EfK, d0 ?? "dates"), z0 = r.$index(0, "description"), y0 = r.$index(0, N0) == null ? h0 : t.Canonical_fromJson(r.$index(0, N0)), r.$index(0, x0) == null ? q0 = h0 : (q0 = r.$index(0, x0), q0 = new t.Hierarchy(t._asString(q0.$index(0, "depth")), o.toString$0$(q0.$index(0, "root")), t._asStringQ(q0.$index(0, "parent")), t._asStringQ(q0.$index(0, "rootKey")))), e0 = r.$index(0, "activityAnchor"), e0 == null && (e0 = !1), W0 = r.$index(0, "isDeprecated"), W0 == null && (W0 = !1), t.Schema$(e0, K, p, _0, y0, I, z0, D, U0, w, q0, x, F, X, T, W0, v, g, h, F0, P1, E, $, d0, J1, W, b, O, B, new t.Source(a, i, s, l, c, M, n), e);
2995
2983
  },
2996
2984
  Field_Field$numeric(r, e, n, a, i, s, l, p, c, M, b) {
2997
2985
  return new t._NumericField(l, p, u.DATA_TYPE_3, e, s, c, n, b, i, !1, r, M, a);
@@ -3006,16 +2994,16 @@ select
3006
2994
  return new t._BoolField(l, p, u.DATA_TYPE_2, e, s, c, n, b, i, !1, r, M, a);
3007
2995
  },
3008
2996
  Field_fromJson(r) {
3009
- var e, n, a, i, s, l, p, c, M, b, O = "name", D = "schemaName", $ = "pointTo", E = "formula", g = "label", h = "hidden", R = "isAiHidden", L = null, W = "description", B = "role", I = "identityOf";
2997
+ var e, n, a, i, s, l, p, c, M, b, O = "name", D = "schemaName", $ = "pointTo", E = "formula", g = "label", h = "hidden", T = "isAiHidden", F = null, W = "description", B = "role", I = "identityOf";
3010
2998
  switch (t.EnumByName_byName(u.List_k6a, r.$index(0, "type")).index) {
3011
2999
  case 0:
3012
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), c = r.$index(0, "isCompareIgnoreSpaces"), c == null && (c = !1), M = r.$index(0, W), b = r.$index(0, B) == null ? L : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$string(M, i, l, r.$index(0, I), p, c, s, e, a, L, b, n);
3000
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, T), c = r.$index(0, "isCompareIgnoreSpaces"), c == null && (c = !1), M = r.$index(0, W), b = r.$index(0, B) == null ? F : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$string(M, i, l, r.$index(0, I), p, c, s, e, a, F, b, n);
3013
3001
  case 2:
3014
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), c = r.$index(0, W), M = r.$index(0, B) == null ? L : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$bool(c, i, l, r.$index(0, I), p, s, e, a, L, M, n);
3002
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, T), c = r.$index(0, W), M = r.$index(0, B) == null ? F : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$bool(c, i, l, r.$index(0, I), p, s, e, a, F, M, n);
3015
3003
  case 3:
3016
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), c = r.$index(0, W), M = r.$index(0, B) == null ? L : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$numeric(c, i, l, r.$index(0, I), p, s, e, a, L, M, n);
3004
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, T), c = r.$index(0, W), M = r.$index(0, B) == null ? F : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$numeric(c, i, l, r.$index(0, I), p, s, e, a, F, M, n);
3017
3005
  case 1:
3018
- return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, R), c = r.$index(0, W), M = r.$index(0, B) == null ? L : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$timestamp(c, i, l, r.$index(0, I), p, s, e, a, L, M, n);
3006
+ return e = r.$index(0, O), n = t.EnumByName_byName(u.List_r5g, r.$index(0, D)), a = r.$index(0, $), i = r.$index(0, E), s = r.$index(0, g), l = r.$index(0, h), p = r.$index(0, T), c = r.$index(0, W), M = r.$index(0, B) == null ? F : t.EnumByName_byName(u.List_aEW, r.$index(0, B)), t.Field_Field$timestamp(c, i, l, r.$index(0, I), p, s, e, a, F, M, n);
3019
3007
  }
3020
3008
  },
3021
3009
  Join_fromJson(r) {
@@ -3130,9 +3118,9 @@ select
3130
3118
  var s = this;
3131
3119
  s.column = e, s.customName = n, s.indexMethod = a, s.include = i;
3132
3120
  },
3133
- Schema: function(e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X, K, _0, d0, z0, y0, q0) {
3121
+ Schema: function(e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X, K, _0, d0, z0, y0, q0) {
3134
3122
  var e0 = this;
3135
- e0.name = e, e0.label = n, e0.fields = a, e0.joins = i, e0.topLevelFilters = s, e0.source = l, e0.isJoinOnly = p, e0.isMaterializeOnly = c, e0.isContinuousUpdate = M, e0.isGlobal = b, e0.interval = O, e0.rawTableName = D, e0.rawTopicName = $, e0.dynamicRawTable = E, e0.materializedTableName = g, e0.materializedPostgresqlTableName = h, e0.partition = R, e0.requirePartitionFilter = L, e0.clusters = W, e0.indexes = B, e0._materializeTablePrefix = e0._rawTablePrefix = "", e0.filters = I, e0.isAiHidden = x, e0.aiKeywords = w, e0.aiCategory = v, e0.aiPriority = X, e0.mergeFilterType = K, e0.description = _0, e0.canonical = d0, e0.hierarchy = z0, e0.activityAnchor = y0, e0.isDeprecated = q0;
3123
+ e0.name = e, e0.label = n, e0.fields = a, e0.joins = i, e0.topLevelFilters = s, e0.source = l, e0.isJoinOnly = p, e0.isMaterializeOnly = c, e0.isContinuousUpdate = M, e0.isGlobal = b, e0.interval = O, e0.rawTableName = D, e0.rawTopicName = $, e0.dynamicRawTable = E, e0.materializedTableName = g, e0.materializedPostgresqlTableName = h, e0.partition = T, e0.requirePartitionFilter = F, e0.clusters = W, e0.indexes = B, e0._materializeTablePrefix = e0._rawTablePrefix = "", e0.filters = I, e0.isAiHidden = x, e0.aiKeywords = w, e0.aiCategory = v, e0.aiPriority = X, e0.mergeFilterType = K, e0.description = _0, e0.canonical = d0, e0.hierarchy = z0, e0.activityAnchor = y0, e0.isDeprecated = q0;
3136
3124
  },
3137
3125
  Schema_visualizationSchema_closure: function() {
3138
3126
  },
@@ -4163,9 +4151,9 @@ select
4163
4151
  DataSourceRowColumnConfig_columnIds_closure1: function(e) {
4164
4152
  this.$this = e;
4165
4153
  },
4166
- TableDatasourceConfigModel: function(e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B) {
4154
+ TableDatasourceConfigModel: function(e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B) {
4167
4155
  var I = this;
4168
- 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 = c, I._rowIds = M, I._columnIds = b, I._table_datasource_config_model$_joinDatasources = O, I.schemaNames = D, I.dimensions = $, I.metrics = E, I.filters = g, I.sorts = h, I.limit = R, I.isComparable = L, I.periodType = W, I.timezone = B;
4156
+ 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 = c, I._rowIds = M, I._columnIds = b, I._table_datasource_config_model$_joinDatasources = O, I.schemaNames = D, I.dimensions = $, I.metrics = E, I.filters = g, I.sorts = h, I.limit = T, I.isComparable = F, I.periodType = W, I.timezone = B;
4169
4157
  },
4170
4158
  TableDatasourceConfigModel_drilledDimensions_closure: function(e) {
4171
4159
  this.$this = e;
@@ -4228,8 +4216,8 @@ select
4228
4216
  return M == null && (M = !1), e = r.$index(0, "showLabel"), e == null && (e = !1), n = r.$index(0, "drillDimension"), a = r.$index(0, "isBlend"), a == null && (a = !1), i = r.$index(0, "joinDatasources"), i == null && (i = []), i = t.List_List$from(i, d.Map_String_dynamic), s = t._arrayInstanceType(i)._eval$1("MappedListIterable<1,JoinDatasourceConfig>"), s = t.List_List$of(new t.MappedListIterable(i, new t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure(p), s), !0, s._eval$1("ListIterable.E")), new t.BaseXYDatasourceConfigModel(e, n, c, M, a, r.$index(0, "isCumulative"), s, p.schemaNames, p.dimensions, p.metrics, p.filters, p.sorts, p.limit, p.isComparable, p.periodType, p.timezone);
4229
4217
  },
4230
4218
  BaseXYDatasourceConfigModel: function(e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h) {
4231
- var R = this;
4232
- R.showLabel = e, R._xy_datasource_config_model$_drillDimension = n, R.breakdownDimension = a, R.isTransposed = i, R.isBlend = s, R.isCumulative = l, R._joinDatasources = p, R.schemaNames = c, R.dimensions = M, R.metrics = b, R.filters = O, R.sorts = D, R.limit = $, R.isComparable = E, R.periodType = g, R.timezone = h;
4219
+ var T = this;
4220
+ T.showLabel = e, T._xy_datasource_config_model$_drillDimension = n, T.breakdownDimension = a, T.isTransposed = i, T.isBlend = s, T.isCumulative = l, T._joinDatasources = p, T.schemaNames = c, T.dimensions = M, T.metrics = b, T.filters = O, T.sorts = D, T.limit = $, T.isComparable = E, T.periodType = g, T.timezone = h;
4233
4221
  },
4234
4222
  BaseXYDatasourceConfigModel_joinDatasources_closure: function(e) {
4235
4223
  this.$this = e;
@@ -4731,24 +4719,24 @@ select
4731
4719
  }, d.Location);
4732
4720
  },
4733
4721
  _deserializeLocation(r) {
4734
- 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), c = s.getUint32(8, !1), M = s.getUint32(12, !1), b = s.getUint32(16, !1), O = s.getUint32(20, !1), D = s.getUint32(24, !1), $ = s.getUint32(28, !1), E = u.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + l, p)), g = t._setArrayType([], d.JSArray_String), h = t._setArrayType([], d.JSArray_TimeZone), R = d.JSArray_int, L = t._setArrayType([], R), W = t._setArrayType([], R), B = c + M;
4722
+ 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), c = s.getUint32(8, !1), M = s.getUint32(12, !1), b = s.getUint32(16, !1), O = s.getUint32(20, !1), D = s.getUint32(24, !1), $ = s.getUint32(28, !1), E = u.C_AsciiCodec.decode$1(t.NativeUint8List_NativeUint8List$view(r.buffer, r.byteOffset + l, p)), g = t._setArrayType([], d.JSArray_String), h = t._setArrayType([], d.JSArray_TimeZone), T = d.JSArray_int, F = t._setArrayType([], T), W = t._setArrayType([], T), B = c + M;
4735
4723
  for (e = c, n = e; e < B; ++e)
4736
- r[e] === 0 && (R = r.buffer, a = r.byteOffset, R = new Uint8Array(R, a + n, e - n), g.push(u.C_AsciiCodec.decode$1(R)), n = e + 1);
4724
+ r[e] === 0 && (T = r.buffer, a = r.byteOffset, T = new Uint8Array(T, a + n, e - n), g.push(u.C_AsciiCodec.decode$1(T)), n = e + 1);
4737
4725
  for (n = b, e = 0; e < O; ++e, n = i)
4738
4726
  i = n + 8, h.push(new t.TimeZone(s.getInt32(n, !1) * 1e3, s.getUint8(n + 4) === 1, g[s.getUint8(n + 5)]));
4739
4727
  for (n = D, e = 0; e < $; ++e)
4740
- L.push(u.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
4728
+ F.push(u.JSNumber_methods.toInt$0(s.getFloat64(n, !1)) * 1e3), n += 8;
4741
4729
  for (e = 0; e < $; ++e)
4742
4730
  W.push(s.getUint8(n)), ++n;
4743
- return t.Location$(E, L, W, h);
4731
+ return t.Location$(E, F, W, h);
4744
4732
  }
4745
4733
  }, o = {
4746
4734
  makeDispatchRecord(r, e, n, a) {
4747
4735
  return { i: r, p: e, e: n, x: a };
4748
4736
  },
4749
4737
  getNativeInterceptor(r) {
4750
- var e, n, a, i, s, l = r[C.dispatchPropertyName];
4751
- if (l == null && q.initNativeDispatchFlag == null && (t.initNativeDispatch(), l = r[C.dispatchPropertyName]), l != null) {
4738
+ var e, n, a, i, s, l = r[L.dispatchPropertyName];
4739
+ if (l == null && q.initNativeDispatchFlag == null && (t.initNativeDispatch(), l = r[L.dispatchPropertyName]), l != null) {
4752
4740
  if (e = l.p, e === !1)
4753
4741
  return l.i;
4754
4742
  if (e === !0)
@@ -4758,7 +4746,7 @@ select
4758
4746
  if (l.e === n)
4759
4747
  throw t.wrapException(t.UnimplementedError$("Return interceptor for " + t.S(e(r, l))));
4760
4748
  }
4761
- return a = r.constructor, a == null ? i = null : (s = q._JS_INTEROP_INTERCEPTOR_TAG, s == null && (s = q._JS_INTEROP_INTERCEPTOR_TAG = C.getIsolateTag("_$dart_js")), i = a[s]), i != null || (i = t.lookupAndCacheInterceptor(r), i != null) ? i : typeof r == "function" ? u.JavaScriptFunction_methods : (e = Object.getPrototypeOf(r), e == null || e === Object.prototype ? u.PlainJavaScriptObject_methods : (typeof a == "function" && (s = q._JS_INTEROP_INTERCEPTOR_TAG, s == null && (s = q._JS_INTEROP_INTERCEPTOR_TAG = C.getIsolateTag("_$dart_js")), Object.defineProperty(a, s, { value: u.UnknownJavaScriptObject_methods, enumerable: !1, writable: !0, configurable: !0 })), u.UnknownJavaScriptObject_methods));
4749
+ return a = r.constructor, a == null ? i = null : (s = q._JS_INTEROP_INTERCEPTOR_TAG, s == null && (s = q._JS_INTEROP_INTERCEPTOR_TAG = L.getIsolateTag("_$dart_js")), i = a[s]), i != null || (i = t.lookupAndCacheInterceptor(r), i != null) ? i : typeof r == "function" ? u.JavaScriptFunction_methods : (e = Object.getPrototypeOf(r), e == null || e === Object.prototype ? u.PlainJavaScriptObject_methods : (typeof a == "function" && (s = q._JS_INTEROP_INTERCEPTOR_TAG, s == null && (s = q._JS_INTEROP_INTERCEPTOR_TAG = L.getIsolateTag("_$dart_js")), Object.defineProperty(a, s, { value: u.UnknownJavaScriptObject_methods, enumerable: !1, writable: !0, configurable: !0 })), u.UnknownJavaScriptObject_methods));
4762
4750
  },
4763
4751
  JSArray_JSArray$fixed(r, e) {
4764
4752
  if (r < 0 || r > 4294967295)
@@ -4899,10 +4887,10 @@ select
4899
4887
  return r == null ? e == null : typeof r != "object" ? e != null && r === e : o.getInterceptor$(r).$eq(r, e);
4900
4888
  },
4901
4889
  $index$asx(r, e) {
4902
- return typeof e == "number" && (r.constructor == Array || typeof r == "string" || t.isJsIndexable(r, r[C.dispatchPropertyName])) && e >>> 0 === e && e < r.length ? r[e] : o.getInterceptor$asx(r).$index(r, e);
4890
+ return typeof e == "number" && (r.constructor == Array || typeof r == "string" || t.isJsIndexable(r, r[L.dispatchPropertyName])) && e >>> 0 === e && e < r.length ? r[e] : o.getInterceptor$asx(r).$index(r, e);
4903
4891
  },
4904
4892
  $indexSet$ax(r, e, n) {
4905
- return typeof e == "number" && (r.constructor == Array || t.isJsIndexable(r, r[C.dispatchPropertyName])) && !r.immutable$list && e >>> 0 === e && e < r.length ? r[e] = n : o.getInterceptor$ax(r).$indexSet(r, e, n);
4893
+ return typeof e == "number" && (r.constructor == Array || t.isJsIndexable(r, r[L.dispatchPropertyName])) && !r.immutable$list && e >>> 0 === e && e < r.length ? r[e] = n : o.getInterceptor$ax(r).$indexSet(r, e, n);
4906
4894
  },
4907
4895
  add$1$ax(r, e) {
4908
4896
  return o.getInterceptor$ax(r).add$1(r, e);
@@ -6184,10 +6172,10 @@ select
6184
6172
  $isNativeUint8List: 1
6185
6173
  }, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {}, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}, t.Rti.prototype = {
6186
6174
  _eval$1(r) {
6187
- return t._Universe_evalInEnvironment(C.typeUniverse, this, r);
6175
+ return t._Universe_evalInEnvironment(L.typeUniverse, this, r);
6188
6176
  },
6189
6177
  _bind$1(r) {
6190
- return t._Universe_bind(C.typeUniverse, this, r);
6178
+ return t._Universe_bind(L.typeUniverse, this, r);
6191
6179
  }
6192
6180
  }, t._FunctionParameters.prototype = {}, t._Type.prototype = {
6193
6181
  toString$0(r) {
@@ -7927,7 +7915,7 @@ Arguments: [` + c + "]";
7927
7915
  var i = n.getSchema$1(this.schemaName), s = o.firstWhere$1$ax(i.fields, new t.Field_getQueryPlainSql_closure(this)), l = i.name._name, p = t.ReCase$(l)._getCamelCase$0() + "." + s.name, c = s.formula;
7928
7916
  switch (c != null && (l = t.ReCase$(l)._getCamelCase$0(), p = t.stringReplaceAllUnchecked(c, "@", l + ".")), s.type.index) {
7929
7917
  case 1:
7930
- p = e == null ? T.FORMAT + p + ")" : t.DimensionOptionExtension_formatSql(e, p, a);
7918
+ p = e == null ? R.FORMAT + p + ")" : t.DimensionOptionExtension_formatSql(e, p, a);
7931
7919
  break;
7932
7920
  case 0:
7933
7921
  p = "ANY_VALUE(" + p + ") OVER (PARTITION BY REGEXP_REPLACE(IFNULL(" + p + ",''), ' ', ''))";
@@ -8367,8 +8355,8 @@ Arguments: [` + c + "]";
8367
8355
  return u.JSArray_methods.fold$2(this._getJoins$1(r), "", new t.QueryRequest__getSqlJoins_closure(this, r));
8368
8356
  },
8369
8357
  _getRollupSelect$4$rollupIndex$schemaLibrary$sourceTableName$useFormula(r, e, n, a) {
8370
- var i, s, l, p, c, M, b, O, D = this, $ = r != null, E = D.dimensions, g = d.QueryRequestDimension, h = t.ListExtensions_whereIndexed(E, new t.QueryRequest__getRollupSelect_closure(r), g), R = 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;
8371
- return g = t.List_List$of(t.ListExtensions_mapIndexed(E, new t.QueryRequest__getRollupSelect_closure1(D, e, r, R), g, L), !0, L), i = D.metrics, s = d.JSArray_String, u.JSArray_methods.addAll$1(g, t.IterableExtension_foldIndexed(i, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure2(D, e, r, R))), l = D.sorts, p = t._arrayInstanceType(l), c = p._eval$1("MappedListIterable<1,String>"), u.JSArray_methods.addAll$1(g, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure3(D, e, r, R), c)), g = u.JSArray_methods.join$1(g, ","), M = o.getInterceptor$ax(E), b = t.List_List$of(M.map$1$1(E, 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, $))), u.JSArray_methods.addAll$1(b, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure6(), c)), b.push("" + $ + " _is_rollup"), O = "select " + u.JSArray_methods.join$1(b, ",") + " from (" + ("select " + g + " from " + n) + ")", M.get$isNotEmpty(E) && (E = t.List_List$of(M.map$1$1(E, new t.QueryRequest__getRollupSelect_closure7(), L), !0, L), g = p._eval$1("MappedIterable<1,String>"), u.JSArray_methods.addAll$1(E, 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(), g), !0, g._eval$1("Iterable.E"))), O = O + " group by " + u.JSArray_methods.join$1(E, ",")), O;
8358
+ var i, s, l, p, c, M, b, O, D = this, $ = r != null, E = D.dimensions, g = d.QueryRequestDimension, h = t.ListExtensions_whereIndexed(E, new t.QueryRequest__getRollupSelect_closure(r), g), 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, ","), F = d.String;
8359
+ return g = t.List_List$of(t.ListExtensions_mapIndexed(E, new t.QueryRequest__getRollupSelect_closure1(D, e, r, T), g, F), !0, F), i = D.metrics, s = d.JSArray_String, u.JSArray_methods.addAll$1(g, t.IterableExtension_foldIndexed(i, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure2(D, e, r, T))), l = D.sorts, p = t._arrayInstanceType(l), c = p._eval$1("MappedListIterable<1,String>"), u.JSArray_methods.addAll$1(g, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure3(D, e, r, T), c)), g = u.JSArray_methods.join$1(g, ","), M = o.getInterceptor$ax(E), b = t.List_List$of(M.map$1$1(E, new t.QueryRequest__getRollupSelect_closure4(a), F), !0, F), u.JSArray_methods.addAll$1(b, o.fold$2$ax(i, t._setArrayType([], s), new t.QueryRequest__getRollupSelect_closure5(a, $))), u.JSArray_methods.addAll$1(b, new t.MappedListIterable(l, new t.QueryRequest__getRollupSelect_closure6(), c)), b.push("" + $ + " _is_rollup"), O = "select " + u.JSArray_methods.join$1(b, ",") + " from (" + ("select " + g + " from " + n) + ")", M.get$isNotEmpty(E) && (E = t.List_List$of(M.map$1$1(E, new t.QueryRequest__getRollupSelect_closure7(), F), !0, F), g = p._eval$1("MappedIterable<1,String>"), u.JSArray_methods.addAll$1(E, 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(), g), !0, g._eval$1("Iterable.E"))), O = O + " group by " + u.JSArray_methods.join$1(E, ",")), O;
8372
8360
  },
8373
8361
  get$_hasFillGap() {
8374
8362
  var r = o.where$1$ax(this.dimensions, new t.QueryRequest__hasFillGap_closure());
@@ -8398,9 +8386,9 @@ Arguments: [` + c + "]";
8398
8386
  return new t._GetSourceTableResponse("SELECT " + new t.MappedListIterable(a, new t.QueryRequest__getSourceTable_closure0(O), i).join$1(0, ",") + " FROM (" + ("SELECT " + s + " FROM `" + l + "` AS " + p + c + M + b) + ")", O);
8399
8387
  },
8400
8388
  _getFillGapTable$2$schemaLibrary$sourceTableName(r, e) {
8401
- var n, a, i, s, l, p, c, M, b, O, D, $ = this, E = " CROSS JOIN ", g = d.JSArray_String, h = t._setArrayType([], g), R = $._getTimeFilters$1(r.getSchema$1($.schemaName));
8389
+ var n, a, i, s, l, p, c, M, b, O, D, $ = this, E = " CROSS JOIN ", g = d.JSArray_String, h = t._setArrayType([], g), T = $._getTimeFilters$1(r.getSchema$1($.schemaName));
8402
8390
  for (n = $.dimensions, a = o.getInterceptor$ax(n), i = a.get$iterator(n), s = $.timeDimension != null, l = $.timezone; i.moveNext$0(); )
8403
- p = i.get$current(), c = p.getColumn$1(r), p.fillGap && c.dataType === u.DATA_TYPE_1 && s && (M = p.generateTimestampArraySql$2$timeFilters$timezone(R, l), c = p.option, c.toString, h.push("SELECT " + t.DimensionOptionExtension_formatSql(c, t.uniqueAlias(p.get$alias()), l) + " " + t.uniqueAlias(p.get$alias()) + " FROM " + t.S(M) + " " + t.uniqueAlias(p.get$alias()) + " GROUP BY " + t.uniqueAlias(p.get$alias())));
8391
+ p = i.get$current(), c = p.getColumn$1(r), p.fillGap && c.dataType === u.DATA_TYPE_1 && s && (M = p.generateTimestampArraySql$2$timeFilters$timezone(T, l), c = p.option, c.toString, h.push("SELECT " + t.DimensionOptionExtension_formatSql(c, t.uniqueAlias(p.get$alias()), l) + " " + t.uniqueAlias(p.get$alias()) + " FROM " + t.S(M) + " " + t.uniqueAlias(p.get$alias()) + " GROUP BY " + t.uniqueAlias(p.get$alias())));
8404
8392
  return i = d.String, b = t.ListExtensions_mapIndexed(h, new t.QueryRequest__getFillGapTable_closure(), i, i).join$1(0, E), i = t.List_List$of(a.map$1$1(n, new t.QueryRequest__getFillGapTable_closure0(), i), !0, i), u.JSArray_methods.addAll$1(i, o.fold$2$ax($.metrics, t._setArrayType([], g), new t.QueryRequest__getFillGapTable_closure1($, r))), s = $.sorts, u.JSArray_methods.addAll$1(i, new t.MappedListIterable(s, new t.QueryRequest__getFillGapTable_closure2($, r), t._arrayInstanceType(s)._eval$1("MappedListIterable<1,String>"))), O = t._setArrayType(["SELECT " + u.JSArray_methods.join$1(i, ",") + " FROM (" + b + ")"], g), D = a.where$1(n, new t.QueryRequest__getFillGapTable_closure3()), D.get$isEmpty(D) || O.push("(SELECT DISTINCT " + new t.MappedIterable(D, new t.QueryRequest__getFillGapTable_closure4(), D.$ti._eval$1("MappedIterable<1,String>")).join$1(0, ",") + " FROM " + e + ")"), u.JSArray_methods.join$1(O, E);
8405
8393
  },
8406
8394
  _getFullTable$3$fillGapTableName$schemaLibrary$sourceTableName(r, e, n) {
@@ -9025,7 +9013,7 @@ Arguments: [` + c + "]";
9025
9013
  }, t.adjustmentSchema_closure.prototype = {
9026
9014
  call$1(r) {
9027
9015
  var e = null, n = "billCompletedAt", a = "isRefund", i = "quantity", s = "returnId", l = "referenceId", p = "effectId";
9028
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, e, "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, !0, e, !1, "Bill time", "adjustmentCreatedAt", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", n, n, e, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", a, a, 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, "Item ID", "itemId", "itemId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("discount amount or percentage. eg, -10%, -5.", e, !1, e, !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string(T.discout, e, !1, e, !1, !1, "Cause", "cause", "cause", e, e, r), t.Field_Field$string(T.discoun, e, !1, e, !1, !1, "Reason", "reason", "reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount user", "createdByName", "createdBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "createdById", "createdBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount approver", "approvedByName", "createApprovedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "approvedById", "createApprovedBy.id", e, e, r), t.Field_Field$numeric(e, "IFNULL(@quantity,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", i, i, "COALESCE(@quantity,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL((@quantity*@total),0)*IF(@isRefund, -1, 1)", !1, e, !1, "Total", "total", "total", "COALESCE((@quantity*@total),0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Return ID", s, s, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Effect ID", p, p, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Adjusted item name, or 'BILL' for bill-level discounts", e, !1, e, !1, !1, "Target", "target", e, "coalesce((select name from flatten_items where flatten_items.id=@item_id and flatten_items.bill_id=@bill_id and flatten_items.restaurant_id=@restaurant_id), 'BILL')", e, r)], d.JSArray_Field);
9016
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, e, "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, !0, e, !1, "Bill time", "adjustmentCreatedAt", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", n, n, e, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", a, a, 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, "Item ID", "itemId", "itemId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("discount amount or percentage. eg, -10%, -5.", e, !1, e, !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string(R.discout, e, !1, e, !1, !1, "Cause", "cause", "cause", e, e, r), t.Field_Field$string(R.discoun, e, !1, e, !1, !1, "Reason", "reason", "reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount user", "createdByName", "createdBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "createdById", "createdBy.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount approver", "approvedByName", "createApprovedBy.name", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "approvedById", "createApprovedBy.id", e, e, r), t.Field_Field$numeric(e, "IFNULL(@quantity,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", i, i, "COALESCE(@quantity,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL((@quantity*@total),0)*IF(@isRefund, -1, 1)", !1, e, !1, "Total", "total", "total", "COALESCE((@quantity*@total),0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Return ID", s, s, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Effect ID", p, p, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Adjusted item name, or 'BILL' for bill-level discounts", e, !1, e, !1, !1, "Target", "target", e, "coalesce((select name from flatten_items where flatten_items.id=@item_id and flatten_items.bill_id=@bill_id and flatten_items.restaurant_id=@restaurant_id), 'BILL')", e, r)], d.JSArray_Field);
9029
9017
  },
9030
9018
  $signature: 0
9031
9019
  }, t.adjustmentSchema_closure0.prototype = {
@@ -9036,8 +9024,8 @@ Arguments: [` + c + "]";
9036
9024
  $signature: 1
9037
9025
  }, t.billSchema_closure.prototype = {
9038
9026
  call$1(r) {
9039
- var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", c = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", $ = "grossTotal", E = "rounding", g = "takeawayPrice", h = "thirdPartyExtraCharge", R = "deliveryFee", L = "nettTotal", W = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", x = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal", v = "customerName", X = "customerPhone", K = "customerAddress", _0 = "customerRemark", d0 = "fulfillmentAt", z0 = "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT ", y0 = " FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(";
9040
- 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, DRAFT, VOIDED, REFUNDED", 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(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("Sales channel. FEEDME is FeedMe's own POS and online ordering (raw ''/POS normalize to it) and is never a delivery platform; 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", T.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", c, c, 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, T.IFNULLi, !0, e, !1, "Item count", b, b, T.COALESi, e, r), t.Field_Field$numeric(e, T.IFNULLtax, !1, e, !1, "Tax", O, O, T.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.", T.IFNULLdiT, !1, e, !1, "Discount", D, D, T.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLg, !1, e, !1, "Item gross", $, $, T.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))*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))*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", E, E, T.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", T.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, T.IFNULLs, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.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, T.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLtak, !1, e, !1, "Takeaway", g, g, T.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLth, !1, e, !1, "Extra charge", h, h, T.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, e, !1, "Delivery fee", R, R, T.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Revenue after discounts and before taxes — the default sales measure.", T.IFNULLn, !1, e, !1, "Nett", L, L, T.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))*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))*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, T.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, T.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, T.SUM__n, e, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", W, W, T.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", B, B, T.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, T.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, e, !1, "Other charge without tax", x, x, T.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, T.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, T.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, T.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, T.x28selecsta, e, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, e, !1, "Discount inc tax", w, w, T.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. Use SUM to count bills", "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", X, X, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer address", K, K, e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", _0, _0, e, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, e, !1, "Fulfillment time", d0, d0, 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, z0 + t._billGross("ob.") + y0 + 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, z0 + t._billGross("ob.") + y0 + 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)], d.JSArray_Field);
9027
+ var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", c = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", $ = "grossTotal", E = "rounding", g = "takeawayPrice", h = "thirdPartyExtraCharge", T = "deliveryFee", F = "nettTotal", W = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", x = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal", v = "customerName", X = "customerPhone", K = "customerAddress", _0 = "customerRemark", d0 = "fulfillmentAt", z0 = "(CASE WHEN @refund_from IS NULL THEN NULL ELSE (SELECT ", y0 = " FROM bills ob WHERE ob.id=@refund_from AND ob.restaurant_id=@restaurant_id)-COALESCE((SELECT SUM(";
9028
+ 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, DRAFT, VOIDED, REFUNDED", 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(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("Sales channel. FEEDME is FeedMe's own POS and online ordering (raw ''/POS normalize to it) and is never a delivery platform; 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", R.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", c, c, 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, R.IFNULLi, !0, e, !1, "Item count", b, b, R.COALESi, e, r), t.Field_Field$numeric(e, R.IFNULLtax, !1, e, !1, "Tax", O, O, R.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.", R.IFNULLdiT, !1, e, !1, "Discount", D, D, R.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLg, !1, e, !1, "Item gross", $, $, R.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))*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))*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", E, E, R.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", R.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, R.IFNULLs, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", R.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, R.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", R.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, R.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLtak, !1, e, !1, "Takeaway", g, g, R.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLth, !1, e, !1, "Extra charge", h, h, R.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLde_, !1, e, !1, "Delivery fee", T, T, R.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Revenue after discounts and before taxes — the default sales measure.", R.IFNULLn, !1, e, !1, "Nett", F, F, R.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))*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))*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, R.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, R.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, R.SUM__n, e, r), t.Field_Field$numeric(e, R.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", W, W, R.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", B, B, R.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, R.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLoo, !1, e, !1, "Other charge without tax", x, x, R.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, R.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, R.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, R.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, R.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, R.x28selecsta, e, r), t.Field_Field$numeric(e, R.IFNULLdiI, !1, e, !1, "Discount inc tax", w, w, R.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. Use SUM to count bills", "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", X, X, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer address", K, K, e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", _0, _0, e, e, r), t.Field_Field$timestamp("Scheduled pickup / delivery time", e, !1, e, !1, "Fulfillment time", d0, d0, 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, z0 + t._billGross("ob.") + y0 + 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, z0 + t._billGross("ob.") + y0 + 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)], d.JSArray_Field);
9041
9029
  },
9042
9030
  $signature: 0
9043
9031
  }, t.billSchema_closure0.prototype = {
@@ -9141,7 +9129,7 @@ Arguments: [` + c + "]";
9141
9129
  }, t.collectibleCollectionSchema_closure.prototype = {
9142
9130
  call$1(r) {
9143
9131
  var e = null, n = "businessId", a = "collectibleId", i = "expiredAt";
9144
- 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(e, e, !1, e, !1, !1, "Collectible ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", "userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("Collectible kind of this holding: VOUCHER, CREDIT, POINT, COIN, TIER, TITLE, GAME, STAMP or REFERRAL. The portal shows COIN as Point, POINT as Experience and GAME as Token; VOUCHER is the v2 voucher.", e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Max use", "maxUse", "options.maxUse", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Expired time", i, i, T.x28case_x40, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", "appliedAt", e, "(select created_at from collectible_transactions where (collectible_transactions.source!='CYCLE' AND collectible_transactions.amount<0 AND collectible_transactions.refunded is not true) AND collectible_transactions.collection_id=@id order by collectible_transactions.created_at desc limit 1)", u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Is expired", "isExpired", e, T.CASE_Wx28, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Applied count", "appliedCount", e, "(select -sum(collectible_transactions.amount) from collectible_transactions where collectible_transactions.collection_id=@id and collectible_transactions.refunded is not true and collectible_transactions.amount<0 and collectible_transactions.source!='CYCLE')", u.FIELD_ROLE_1, r)], d.JSArray_Field);
9132
+ 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(e, e, !1, e, !1, !1, "Collectible ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", "userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string("Collectible kind of this holding: VOUCHER, CREDIT, POINT, COIN, TIER, TITLE, GAME, STAMP or REFERRAL. The portal shows COIN as Point, POINT as Experience and GAME as Token; VOUCHER is the v2 voucher.", e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Max use", "maxUse", "options.maxUse", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Expired time", i, i, R.x28case_x40, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", "code", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", "appliedAt", e, "(select created_at from collectible_transactions where (collectible_transactions.source!='CYCLE' AND collectible_transactions.amount<0 AND collectible_transactions.refunded is not true) AND collectible_transactions.collection_id=@id order by collectible_transactions.created_at desc limit 1)", u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Is expired", "isExpired", e, R.CASE_Wx28, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Applied count", "appliedCount", e, "(select -sum(collectible_transactions.amount) from collectible_transactions where collectible_transactions.collection_id=@id and collectible_transactions.refunded is not true and collectible_transactions.amount<0 and collectible_transactions.source!='CYCLE')", u.FIELD_ROLE_1, r)], d.JSArray_Field);
9145
9133
  },
9146
9134
  $signature: 0
9147
9135
  }, t.collectibleCollectionSchema_closure0.prototype = {
@@ -9176,8 +9164,8 @@ Arguments: [` + c + "]";
9176
9164
  $signature: 1
9177
9165
  }, t.completeTimeBillSchema_closure.prototype = {
9178
9166
  call$1(r) {
9179
- var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", c = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", $ = "grossTotal", E = "rounding", g = "takeawayPrice", h = "thirdPartyExtraCharge", R = "deliveryFee", L = "nettTotal", W = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", x = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
9180
- 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", T.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", c, c, 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", T.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, T.IFNULLi, !0, e, !1, "Item count", b, b, T.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Tax", O, O, T.COALEStax0, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, e, !1, "Discount", D, D, T.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLg, !1, e, !1, "Item gross", $, $, T.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))*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))*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", E, E, T.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", T.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, T.IFNULLs, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.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, T.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLtak, !1, e, !1, "Takeaway", g, g, T.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLth, !1, e, !1, "Extra charge", h, h, T.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, e, !1, "Delivery fee", R, R, T.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLn, !1, e, !1, "Nett", L, L, T.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))*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))*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, T.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, T.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, T.SUM__n, e, r), t.Field_Field$numeric(e, T.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", W, W, T.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", B, B, T.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, T.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLoo, !1, e, !1, "Other charge without tax", x, x, T.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Duration", "duration", e, T.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, T.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, T.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, T.x28selecsta, e, r), t.Field_Field$numeric(e, T.IFNULLdiI, !1, e, !1, "Discount inc tax", w, w, T.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)], d.JSArray_Field);
9167
+ var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", c = "completedAt", M = "integratedOrderId", b = "itemCount", O = "taxTotal", D = "discountTotal", $ = "grossTotal", E = "rounding", g = "takeawayPrice", h = "thirdPartyExtraCharge", T = "deliveryFee", F = "nettTotal", W = "deliveryFeeWithTax", B = "deliveryFeeWithoutTax", I = "otherChargeWithTax", x = "otherChargeWithoutTax", w = "discountInclusiveTaxTotal";
9168
+ 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", R.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", c, c, 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", R.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, R.IFNULLi, !0, e, !1, "Item count", b, b, R.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Tax", O, O, R.COALEStax0, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLdiT, !1, e, !1, "Discount", D, D, R.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLg, !1, e, !1, "Item gross", $, $, R.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))*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))*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", E, E, R.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", R.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, R.IFNULLs, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", R.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, R.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", R.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, R.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLtak, !1, e, !1, "Takeaway", g, g, R.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLth, !1, e, !1, "Extra charge", h, h, R.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLde_, !1, e, !1, "Delivery fee", T, T, R.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLn, !1, e, !1, "Nett", F, F, R.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))*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))*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, R.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, R.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, R.SUM__n, e, r), t.Field_Field$numeric(e, R.IFNULLdeWT, !1, e, !1, "Delivery fee with tax", W, W, R.COALESdex5f_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLdeWo, !1, e, !1, "Delivery fee without tax", B, B, R.COALESdex5fo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLoT, !1, e, !1, "Other charge with tax", I, I, R.COALESo_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLoo, !1, e, !1, "Other charge without tax", x, x, R.COALESoo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Duration", "duration", e, R.EXTRAC, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, R.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$numeric(e, e, !1, e, !1, "Labour hour", "labourHour", e, R.x28selecS, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payments", "payments", e, R.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, R.x28selecsta, e, r), t.Field_Field$numeric(e, R.IFNULLdiI, !1, e, !1, "Discount inc tax", w, w, R.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)], d.JSArray_Field);
9181
9169
  },
9182
9170
  $signature: 0
9183
9171
  }, t.completeTimeBillSchema_closure0.prototype = {
@@ -9223,8 +9211,8 @@ Arguments: [` + c + "]";
9223
9211
  $signature: 1
9224
9212
  }, t.depositSchema_closure.prototype = {
9225
9213
  call$1(r) {
9226
- var e = null, n = "businessId", a = "restaurantId", i = "referenceNo", s = "targetDate", l = "currency", p = "customerName", c = "customerPhone", M = "createdByName", b = "createdById", O = "paymentName", D = "paidAmount", $ = "collectedAmount", E = "appliedAt", g = "appliedAmount", h = "appliedBillId", R = "excessAmount", L = "excessHandling", W = "refundedAt", B = "refundedAmount", I = "retainedAmount", x = "refundReason", w = "refundPercentage", v = "refundDaysBefore", X = "forfeitedAt", K = "forfeitedAmount", _0 = "forfeitReason", d0 = "cashOutAmount", z0 = "outstandingAmount", y0 = "depositIncomeAmount";
9227
- 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", c, c, 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", $, $, e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", E, E, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric("Part of the deposit spent on the bill", e, !1, e, !1, "Applied", g, g, 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", R, R, 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", W, W, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Refunded", B, B, 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", x, x, e, e, r), t.Field_Field$numeric("Refund policy tier applied, as a percentage", e, !0, e, !1, e, w, w, 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", X, X, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Forfeited", K, K, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Forfeit reason", _0, _0, e, e, r), t.Field_Field$numeric("Refund plus any excess returned to the customer", e, !1, e, !1, "Cash out", d0, d0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Collected deposit not yet applied, refunded or forfeited", e, !1, e, !1, "Outstanding", z0, z0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(T.Forfei, e, !1, e, !1, "Deposit income", y0, y0, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, e, r)], d.JSArray_Field);
9214
+ var e = null, n = "businessId", a = "restaurantId", i = "referenceNo", s = "targetDate", l = "currency", p = "customerName", c = "customerPhone", M = "createdByName", b = "createdById", O = "paymentName", D = "paidAmount", $ = "collectedAmount", E = "appliedAt", g = "appliedAmount", h = "appliedBillId", T = "excessAmount", F = "excessHandling", W = "refundedAt", B = "refundedAmount", I = "retainedAmount", x = "refundReason", w = "refundPercentage", v = "refundDaysBefore", X = "forfeitedAt", K = "forfeitedAmount", _0 = "forfeitReason", d0 = "cashOutAmount", z0 = "outstandingAmount", y0 = "depositIncomeAmount";
9215
+ 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", c, c, 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", $, $, e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", E, E, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric("Part of the deposit spent on the bill", e, !1, e, !1, "Applied", g, g, 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", F, F, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Refunded time", W, W, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Refunded", B, B, 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", x, x, e, e, r), t.Field_Field$numeric("Refund policy tier applied, as a percentage", e, !0, e, !1, e, w, w, 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", X, X, e, u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !1, e, !1, "Forfeited", K, K, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Forfeit reason", _0, _0, e, e, r), t.Field_Field$numeric("Refund plus any excess returned to the customer", e, !1, e, !1, "Cash out", d0, d0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Collected deposit not yet applied, refunded or forfeited", e, !1, e, !1, "Outstanding", z0, z0, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(R.Forfei, e, !1, e, !1, "Deposit income", y0, y0, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, R.x28selecn, e, r)], d.JSArray_Field);
9228
9216
  },
9229
9217
  $signature: 0
9230
9218
  }, t.depositSchema_closure0.prototype = {
@@ -9235,8 +9223,8 @@ Arguments: [` + c + "]";
9235
9223
  $signature: 1
9236
9224
  }, t.depositTransactionSchema_closure.prototype = {
9237
9225
  call$1(r) {
9238
- var e = null, n = "businessId", a = "restaurantId", i = "Outlet where this event happened", s = "depositId", l = "performedByName", p = "performedById", c = "approvedByName", M = "cashInAmount", b = "cashOutAmount", O = "netCashAmount", D = "appliedAmount", $ = "excessAmount", E = "excessHandling", g = "incomeAmount", h = "liabilityChange", R = "paymentName";
9239
- 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, "Deposit created 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("When this deposit event happened", e, !1, e, !1, "Time", "eventAt", "eventAt", e, u.FIELD_ROLE_0, 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(i, 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, "Deposit ID", s, s, e, u.FIELD_ROLE_5, r), t.Field_Field$string("created, paid, applied, refunded or forfeited", e, !1, e, !1, !1, "Action", "action", "action", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Performed by", l, l, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Approved by", c, c, e, e, r), t.Field_Field$numeric("Money received from the customer by this event", e, !1, e, !1, "Cash in", M, M, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Money paid back to the customer by this event", e, !1, e, !1, "Cash out", b, b, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Cash in less cash out — the bank statement line", e, !1, e, !1, "Net cash", O, O, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Applied", D, D, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Excess", $, $, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Excess handling", E, E, e, e, r), t.Field_Field$numeric(T.Forfei, e, !1, e, !1, "Deposit income", g, g, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Deposit owed to customers, added on paid and released on close", e, !1, e, !1, "Liability change", h, h, e, u.FIELD_ROLE_1, 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, "Payment method", R, R, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reason", "reason", "reason", e, e, r), t.Field_Field$string(i, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, e, r)], d.JSArray_Field);
9226
+ var e = null, n = "businessId", a = "restaurantId", i = "Outlet where this event happened", s = "depositId", l = "performedByName", p = "performedById", c = "approvedByName", M = "cashInAmount", b = "cashOutAmount", O = "netCashAmount", D = "appliedAmount", $ = "excessAmount", E = "excessHandling", g = "incomeAmount", h = "liabilityChange", T = "paymentName";
9227
+ 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, "Deposit created 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("When this deposit event happened", e, !1, e, !1, "Time", "eventAt", "eventAt", e, u.FIELD_ROLE_0, 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(i, 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, "Deposit ID", s, s, e, u.FIELD_ROLE_5, r), t.Field_Field$string("created, paid, applied, refunded or forfeited", e, !1, e, !1, !1, "Action", "action", "action", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Performed by", l, l, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Approved by", c, c, e, e, r), t.Field_Field$numeric("Money received from the customer by this event", e, !1, e, !1, "Cash in", M, M, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Money paid back to the customer by this event", e, !1, e, !1, "Cash out", b, b, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Cash in less cash out — the bank statement line", e, !1, e, !1, "Net cash", O, O, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Applied", D, D, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Excess", $, $, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Excess handling", E, E, e, e, r), t.Field_Field$numeric(R.Forfei, e, !1, e, !1, "Deposit income", g, g, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("Deposit owed to customers, added on paid and released on close", e, !1, e, !1, "Liability change", h, h, e, u.FIELD_ROLE_1, 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, "Payment method", T, T, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reason", "reason", "reason", e, e, r), t.Field_Field$string(i, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, R.x28selecn, e, r)], d.JSArray_Field);
9240
9228
  },
9241
9229
  $signature: 0
9242
9230
  }, t.depositTransactionSchema_closure0.prototype = {
@@ -9248,7 +9236,7 @@ Arguments: [` + c + "]";
9248
9236
  }, t.discountSchema_closure.prototype = {
9249
9237
  call$1(r) {
9250
9238
  var e = null;
9251
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", "billCompletedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", "isRefund", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Item ID", "itemId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Discount amount/percentage or payment method. eg, -10%, -5, PAYMENT VOUCHER.", e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$string(T.discout, e, !1, e, !1, !1, "Cause", "cause", e, e, e, r), t.Field_Field$string(T.discoun, e, !1, e, !1, !1, "Reason", "reason", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount user", "createdByName", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount approver", "approvedByName", e, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Qty", "quantity", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Total", "total", e, e, u.FIELD_ROLE_1, r), t.Field_Field$string("Adjusted item name, 'BILL' for bill-level discounts, or 'PAYMENT' for payment vouchers.", e, !1, e, !1, !1, "Target", "target", e, e, e, r), t.Field_Field$string("Collectible collection id: bill effect returnId, or the payment voucher reference.", e, !1, e, !1, !1, "Return ID", "returnId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Adjustment reference id; null for payment vouchers.", e, !1, e, !1, !1, "Ref ID", "referenceId", e, e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9239
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", "billCompletedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", "isRefund", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Item ID", "itemId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Discount amount/percentage or payment method. eg, -10%, -5, PAYMENT VOUCHER.", e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$string(R.discout, e, !1, e, !1, !1, "Cause", "cause", e, e, e, r), t.Field_Field$string(R.discoun, e, !1, e, !1, !1, "Reason", "reason", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount user", "createdByName", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Discount approver", "approvedByName", e, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Qty", "quantity", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Total", "total", e, e, u.FIELD_ROLE_1, r), t.Field_Field$string("Adjusted item name, 'BILL' for bill-level discounts, or 'PAYMENT' for payment vouchers.", e, !1, e, !1, !1, "Target", "target", e, e, e, r), t.Field_Field$string("Collectible collection id: bill effect returnId, or the payment voucher reference.", e, !1, e, !1, !1, "Return ID", "returnId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Adjustment reference id; null for payment vouchers.", e, !1, e, !1, !1, "Ref ID", "referenceId", e, e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9252
9240
  },
9253
9241
  $signature: 0
9254
9242
  }, t.discountSchema_closure0.prototype = {
@@ -9260,7 +9248,7 @@ Arguments: [` + c + "]";
9260
9248
  }, t.drawerSchema_closure.prototype = {
9261
9249
  call$1(r) {
9262
9250
  var e = null;
9263
- 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, !0, e, !1, !1, e, "userId", "user.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "userName", "user.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reason", "reason", "reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Counter ID", "counterId", "counter.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Counter", "counterName", "counter.name", e, u.FIELD_ROLE_4, r), t.Field_Field$numeric("Cash in/out amount. Positive = in, negative = out", e, !1, e, !1, "Total", "amount", "amount", e, u.FIELD_ROLE_2, r), t.Field_Field$string("Values: IN or OUT. Derived from amount sign", "IF(@amount>=0, 'IN', 'OUT')", !1, e, !1, !1, "Type", "type", e, "CASE WHEN @amount>=0 THEN 'IN' ELSE 'OUT' END", e, r), t.Field_Field$numeric(e, "IF(@amount>=0, @amount, 0)", !1, e, !1, "In", "in", e, T.CASE_Wx40ax3e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IF(@amount<0, @amount, 0)", !1, e, !1, "Out", "out", e, T.CASE_Wx40ax3c, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9251
+ 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, !0, e, !1, !1, e, "userId", "user.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "userName", "user.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reason", "reason", "reason", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Counter ID", "counterId", "counter.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Counter", "counterName", "counter.name", e, u.FIELD_ROLE_4, r), t.Field_Field$numeric("Cash in/out amount. Positive = in, negative = out", e, !1, e, !1, "Total", "amount", "amount", e, u.FIELD_ROLE_2, r), t.Field_Field$string("Values: IN or OUT. Derived from amount sign", "IF(@amount>=0, 'IN', 'OUT')", !1, e, !1, !1, "Type", "type", e, "CASE WHEN @amount>=0 THEN 'IN' ELSE 'OUT' END", e, r), t.Field_Field$numeric(e, "IF(@amount>=0, @amount, 0)", !1, e, !1, "In", "in", e, R.CASE_Wx40ax3e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IF(@amount<0, @amount, 0)", !1, e, !1, "Out", "out", e, R.CASE_Wx40ax3c, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9264
9252
  },
9265
9253
  $signature: 0
9266
9254
  }, t.drawerSchema_closure0.prototype = {
@@ -9270,10 +9258,10 @@ Arguments: [` + c + "]";
9270
9258
  $signature: 1
9271
9259
  }, t.flattenItemSchema_closure.prototype = {
9272
9260
  call$1(r) {
9273
- var e = null, n = "itemCreatedAt", a = "billCompletedAt", i = "productId", s = "perXUnit", l = "takeawayId", p = "takeawayName", c = "isRefund", M = "servedAt", b = "isTakeaway", O = "quantity", D = "unitQuantity", $ = "billAdjustmentTotal", E = "itemAdjustmentTotal", g = "grossTotal", h = "takeawayPrice", R = "nettTotal", L = "parentId", W = "layerNettTotal", B = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", x = "layerGrossTotal", w = "layerTakeawayPrice", v = "layerTaxTotal", X = "layerScTotal", K = "layerOtherChargeTotal", _0 = "customAttributes", d0 = "layerZeroParentId", z0 = "collectedAt", y0 = "subCategories", q0 = "billAdjustmentInclusiveTaxTotal", e0 = "itemAdjustmentInclusiveTaxTotal", W0 = "layerBillAdjustmentInclusiveTaxTotal", h0 = "layerItemAdjustmentInclusiveTaxTotal", N0 = "billAdjustmentExclusiveTaxTotal", x0 = "itemAdjustmentExclusiveTaxTotal", F0 = "layerBillAdjustmentExclusiveTaxTotal", U0 = "layerItemAdjustmentExclusiveTaxTotal", P1 = "priceGroup", J1 = "originalPrice", Ue = "catalogId", Ye = "baseItemPrice", Ge = "catalogName", Qe = "priceExclusiveTax", Ve = "originalPriceExclusiveTax", je = "baseItemPriceExclusiveTax", Ke = "serveDelayId", Ze = "serveDelayName", et = "serveDelayInMins";
9261
+ var e = null, n = "itemCreatedAt", a = "billCompletedAt", i = "productId", s = "perXUnit", l = "takeawayId", p = "takeawayName", c = "isRefund", M = "servedAt", b = "isTakeaway", O = "quantity", D = "unitQuantity", $ = "billAdjustmentTotal", E = "itemAdjustmentTotal", g = "grossTotal", h = "takeawayPrice", T = "nettTotal", F = "parentId", W = "layerNettTotal", B = "layerBillAdjustmentTotal", I = "layerItemAdjustmentTotal", x = "layerGrossTotal", w = "layerTakeawayPrice", v = "layerTaxTotal", X = "layerScTotal", K = "layerOtherChargeTotal", _0 = "customAttributes", d0 = "layerZeroParentId", z0 = "collectedAt", y0 = "subCategories", q0 = "billAdjustmentInclusiveTaxTotal", e0 = "itemAdjustmentInclusiveTaxTotal", W0 = "layerBillAdjustmentInclusiveTaxTotal", h0 = "layerItemAdjustmentInclusiveTaxTotal", N0 = "billAdjustmentExclusiveTaxTotal", x0 = "itemAdjustmentExclusiveTaxTotal", F0 = "layerBillAdjustmentExclusiveTaxTotal", U0 = "layerItemAdjustmentExclusiveTaxTotal", P1 = "priceGroup", J1 = "originalPrice", Ue = "catalogId", Ye = "baseItemPrice", Ge = "catalogName", Qe = "priceExclusiveTax", Ve = "originalPriceExclusiveTax", je = "baseItemPriceExclusiveTax", Ke = "serveDelayId", Ze = "serveDelayName", et = "serveDelayInMins";
9274
9262
  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. DRAFT and SENT both considered valid sales.", 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)
9275
9263
  `, !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
9276
- `, 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(e, e, !1, e, !1, "Refund", c, c, 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, T.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", T.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", T.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x40billA, !1, e, !1, "Bill discount", $, $, T.x40bill_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x40itemA, !1, e, !1, "Item discount", E, E, T.x40item_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Gross", g, g, T.x40gross, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28_grosT, !1, e, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Takeaway price", h, h, T.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", R, R, T.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", T.x40addon, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLtax, !1, e, !1, "Tax", "taxTotal", "tax.total", T.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULb, !1, e, !1, "Discount", "discountTotal", e, T.x28COALEb, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULgx2b, !1, e, !1, "Gross before charges", "grossBeforeCharges", e, T.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", W, W, "@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", B, B, "@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", x, x, "@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", w, w, "@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", X, X, "@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", K, K, "@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", _0, _0, 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", d0, d0, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Charge variant", "chargeVariant", e, "(select 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 != 'SERVICE_CHARGE')", e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Collected time", z0, z0, 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, d0, !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", y0, y0, 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", e0, e0, "@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", W0, W0, "@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", h0, h0, "@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", N0, N0, "@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", F0, F0, "@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", U0, U0, "@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", P1, P1, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Original price", J1, J1, 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", Ue, Ue, 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", Ye, Ye, 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", Ge, Ge, 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)", Qe, Qe, 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)", Ve, Ve, 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)", je, je, 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", Ke, Ke, 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", Ze, Ze, 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)", et, et, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9264
+ `, 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(e, e, !1, e, !1, "Refund", c, c, 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, R.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", R.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", R.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "otherCharge.total", R.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x40billA, !1, e, !1, "Bill discount", $, $, R.x40bill_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x40itemA, !1, e, !1, "Item discount", E, E, R.x40item_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Gross", g, g, R.x40gross, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28_grosT, !1, e, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, R.x28_gros_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Takeaway price", h, h, R.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, R.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", F, "parent.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, F, !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", R.x40addon, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLtax, !1, e, !1, "Tax", "taxTotal", "tax.total", R.COALEStax_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28IFNULb, !1, e, !1, "Discount", "discountTotal", e, R.x28COALEb, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28IFNULgx2b, !1, e, !1, "Gross before charges", "grossBeforeCharges", e, R.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", W, W, "@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", B, B, "@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", x, x, "@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", w, w, "@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", X, X, "@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", K, K, "@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", _0, _0, 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", d0, d0, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Charge variant", "chargeVariant", e, "(select 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 != 'SERVICE_CHARGE')", e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Collected time", z0, z0, 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, d0, !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", y0, y0, 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", e0, e0, "@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", W0, W0, "@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", h0, h0, "@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", N0, N0, "@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", F0, F0, "@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", U0, U0, "@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", P1, P1, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Original price", J1, J1, 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", Ue, Ue, 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", Ye, Ye, 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", Ge, Ge, 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)", Qe, Qe, 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)", Ve, Ve, 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)", je, je, 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", Ke, Ke, 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", Ze, Ze, 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)", et, et, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9277
9265
  },
9278
9266
  $signature: 0
9279
9267
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9297,7 +9285,7 @@ Arguments: [` + c + "]";
9297
9285
  }, t.internalMyEInvoiceDocumentSchema_closure.prototype = {
9298
9286
  call$1(r) {
9299
9287
  var e = null, n = "documentId", a = "documentUid", i = "internalId", s = "originalDocumentUid", l = "billSeqNumber", p = "subtotal", c = "rounding";
9300
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, e, 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, "Document ID", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "MyInvois Document ID", a, a, e, e, r), t.Field_Field$string(T.Test__, e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$string("Submitted, Valid, Invalid or Cancelled", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Internal ID", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Long ID", "longId", "longId", e, e, r), t.Field_Field$string(T.MyInvo, e, !1, e, !1, !1, "Original Document ID", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Errors", "errors", "errors", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", "billId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "FeedMe Invoice No", l, l, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Subtotal", p, p, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Charge", "charge", "charge", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tax", "tax", "tax", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Rounding", c, c, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Nett", "nett", "nett", e, e, r)], d.JSArray_Field);
9288
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, e, 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, "Document ID", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "MyInvois Document ID", a, a, e, e, r), t.Field_Field$string(R.Test__, e, !1, e, !1, !1, "Type", "type", "type", e, e, r), t.Field_Field$string("Submitted, Valid, Invalid or Cancelled", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Internal ID", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Long ID", "longId", "longId", e, e, r), t.Field_Field$string(R.MyInvo, e, !1, e, !1, !1, "Original Document ID", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Errors", "errors", "errors", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", "billId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "FeedMe Invoice No", l, l, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Subtotal", p, p, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Charge", "charge", "charge", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tax", "tax", "tax", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Rounding", c, c, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Nett", "nett", "nett", e, e, r)], d.JSArray_Field);
9301
9289
  },
9302
9290
  $signature: 0
9303
9291
  }, t.internalMyEInvoiceDocumentSchema_closure0.prototype = {
@@ -9308,7 +9296,7 @@ Arguments: [` + c + "]";
9308
9296
  }, t.internalMyEInvoiceSubmissionSchema_closure.prototype = {
9309
9297
  call$1(r) {
9310
9298
  var e = null, n = "submissionUid";
9311
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, 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, "Submission Time", "submittedAt", "submissionDate", e, e, r), t.Field_Field$string(T.Submis, e, !1, e, !1, !1, "Submit For", "ref", "ref", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Submission UID", n, n, e, e, r), t.Field_Field$string("InProgress, Valid, PartiallyValid or Invalid", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Merchant ID", "merchantId", "merchant._id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "merchant.restaurantId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", "merchant.businessId", e, e, r), t.Field_Field$string("individual or company; null for consolidated and test submissions", e, !1, e, !1, !1, "Customer Type", "customerType", "customer.type", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Name", "customerName", "customer.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Phone Number", "customerPhoneNumber", "customer.phoneNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Address", "customerAddress", "customer.address.full", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Email", "customerEmail", "customer.email", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer TIN No", "customerTinNo", "customer.tinNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity Type", "customerIdentityType", "customer.identity.identityType", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity No", "customerIdentityNo", "customer.identity.identityNo", e, e, r)], d.JSArray_Field);
9299
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, 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, "Submission Time", "submittedAt", "submissionDate", e, e, r), t.Field_Field$string(R.Submis, e, !1, e, !1, !1, "Submit For", "ref", "ref", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Submission UID", n, n, e, e, r), t.Field_Field$string("InProgress, Valid, PartiallyValid or Invalid", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Merchant ID", "merchantId", "merchant._id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "merchant.restaurantId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", "merchant.businessId", e, e, r), t.Field_Field$string("individual or company; null for consolidated and test submissions", e, !1, e, !1, !1, "Customer Type", "customerType", "customer.type", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Name", "customerName", "customer.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Phone Number", "customerPhoneNumber", "customer.phoneNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Address", "customerAddress", "customer.address.full", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Email", "customerEmail", "customer.email", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer TIN No", "customerTinNo", "customer.tinNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity Type", "customerIdentityType", "customer.identity.identityType", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity No", "customerIdentityNo", "customer.identity.identityNo", e, e, r)], d.JSArray_Field);
9312
9300
  },
9313
9301
  $signature: 0
9314
9302
  }, t.internalMyEInvoiceSubmissionSchema_closure0.prototype = {
@@ -9332,7 +9320,7 @@ Arguments: [` + c + "]";
9332
9320
  }, t.internalPurchaseOrderSchema_closure.prototype = {
9333
9321
  call$1(r) {
9334
9322
  var e = null, n = "locationId", a = "seqNumber", i = "generatedAt", s = "effectiveAt", l = "billPriceAdjustment";
9335
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, e, 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, "Restaurant ID", "restaurantId", "_restaurantId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref", "ref", "ref", 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, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", "supplier.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Type", "supplierInternal", "supplier.internal", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier", "supplierName", "supplier.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier contact name", "supplierContactName", "supplier.contactName", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier phone number", "supplierPhoneNumber", "supplier.phoneNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier reg no.", "supplierRegistrationNumber", "supplier.registrationNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier email", "supplierEmail", "supplier.email", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 1", "supplierAddressLine1", "supplier.address.line1", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 2", "supplierAddressLine2", "supplier.address.line2", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address state", "supplierAddressState", "supplier.address.state", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address city", "supplierAddressCity", "supplier.address.city", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address postcode", "supplierAddressPostcode", "supplier.address.postcode", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address country", "supplierAddressCountry", "supplier.address.country", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Generated time", i, i, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite ID", "netSuiteId", "netSuite.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Ref No", "netSuiteRefNo", "netSuite.refNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Transaction Number", "netSuiteTransactionNumber", T.netSui, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier Code", "supplierCode", e, T.x28selecc, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Bill price adjustment", l, l, e, e, r)], d.JSArray_Field);
9323
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, e, 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, "Restaurant ID", "restaurantId", "_restaurantId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref", "ref", "ref", 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, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", "supplier.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Type", "supplierInternal", "supplier.internal", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier", "supplierName", "supplier.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier contact name", "supplierContactName", "supplier.contactName", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier phone number", "supplierPhoneNumber", "supplier.phoneNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier reg no.", "supplierRegistrationNumber", "supplier.registrationNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier email", "supplierEmail", "supplier.email", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 1", "supplierAddressLine1", "supplier.address.line1", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 2", "supplierAddressLine2", "supplier.address.line2", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address state", "supplierAddressState", "supplier.address.state", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address city", "supplierAddressCity", "supplier.address.city", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address postcode", "supplierAddressPostcode", "supplier.address.postcode", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address country", "supplierAddressCountry", "supplier.address.country", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Generated time", i, i, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite ID", "netSuiteId", "netSuite.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Ref No", "netSuiteRefNo", "netSuite.refNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Transaction Number", "netSuiteTransactionNumber", R.netSui, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier Code", "supplierCode", e, R.x28selecc, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Bill price adjustment", l, l, e, e, r)], d.JSArray_Field);
9336
9324
  },
9337
9325
  $signature: 0
9338
9326
  }, t.internalPurchaseOrderSchema_closure0.prototype = {
@@ -9427,8 +9415,8 @@ Arguments: [` + c + "]";
9427
9415
  $signature: 1
9428
9416
  }, t.inventoryAdjustmentSkuSchema_closure.prototype = {
9429
9417
  call$1(r) {
9430
- var e = null, n = "locationId", a = "inventoryAdjustmentId", i = "fromBalance", s = "toBalance", l = "skuId", p = "unitPrecision", c = "unitName", M = "unitAbbrev", b = "amountCost", O = "fromBalanceCost", D = "toBalanceCost", $ = "trackingAmount", E = "trackingUnitName", g = "trackingUnitAbbrev", h = "conversion", R = "customAttributes", L = "defaultCostPerUnit";
9431
- 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, T.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, T.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", c, c, 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", $, $, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit", E, E, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit abbrev.", g, g, 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", R, R, 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);
9418
+ var e = null, n = "locationId", a = "inventoryAdjustmentId", i = "fromBalance", s = "toBalance", l = "skuId", p = "unitPrecision", c = "unitName", M = "unitAbbrev", b = "amountCost", O = "fromBalanceCost", D = "toBalanceCost", $ = "trackingAmount", E = "trackingUnitName", g = "trackingUnitAbbrev", h = "conversion", T = "customAttributes", F = "defaultCostPerUnit";
9419
+ 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, R.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, R.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", c, c, 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", $, $, e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit", E, E, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tracking unit abbrev.", g, g, 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", F, F, 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);
9432
9420
  },
9433
9421
  $signature: 0
9434
9422
  }, t.inventoryAdjustmentSkuSchema_closure0.prototype = {
@@ -9462,7 +9450,7 @@ Arguments: [` + c + "]";
9462
9450
  }, t.itemSchema_closure.prototype = {
9463
9451
  call$1(r) {
9464
9452
  var e = null;
9465
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Item time", "itemCreatedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", "billCompletedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Per unit", "perXUnit", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit", "unit", e, e, e, r), t.Field_Field$string(e, T.IF__ca, !1, e, !1, !1, "Category", "categoryName", e, T.CASE_Wx40c, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway ID", "takeawayId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway name", "takeawayName", e, e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", "productId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant ID", "variantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", e, e, u.FIELD_ROLE_4, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", "isRefund", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User id", "createdById", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "createdByName", e, e, u.FIELD_ROLE_4, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Sent time", "sentAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Served time", "servedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Printed time", "printedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Void time", "voidAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void reason", "voidReason", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidedById", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void user", "voidedByName", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidApprovedById", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void approver", "voidApprovedByName", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "SST before discount", "sstBeforeDiscount", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "SC before discount", "serviceChargeBeforeDiscount", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", "isTakeaway", e, e, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", "quantity", e, T.x40quant, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, e, !1, "Unit qty", "unitQuantity", e, "@unit_quantity*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", e, T.x40sst_t, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "SST %", "sstPercentage", e, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "SC %", "serviceChargePercentage", e, e, e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", e, T.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", e, T.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x40billA, !1, e, !1, "Bill discount", "billAdjustmentTotal", e, T.x40bill_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x40itemA, !1, e, !1, "Item discount", "itemAdjustmentTotal", e, T.x40item_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Gross", "grossTotal", e, T.x40gross, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28_grosT, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28_gros_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Takeaway price", "takeawayPrice", e, T.x40takea, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Nett", "nettTotal", e, T.x40nett_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULb, !1, e, !1, "Discount", "discountTotal", e, T.x28COALEb, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULgx2b, !1, e, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2b, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "TIMESTAMP_DIFF(TIMESTAMP(@servedAt), TIMESTAMP(@sentAt), SECOND)", !1, e, !1, "Preparation seconds", "preparationSeconds", e, "EXTRACT(EPOCH FROM AGE(@served_at,@sent_at))", 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(e, e, !1, e, !1, "Layer", "layer", e, e, e, r)], d.JSArray_Field);
9453
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Item time", "itemCreatedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", "billCompletedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Per unit", "perXUnit", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit", "unit", e, e, e, r), t.Field_Field$string(e, R.IF__ca, !1, e, !1, !1, "Category", "categoryName", e, R.CASE_Wx40c, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway ID", "takeawayId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Takeaway name", "takeawayName", e, e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", "productId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant ID", "variantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", e, e, u.FIELD_ROLE_4, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", "isRefund", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User id", "createdById", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "createdByName", e, e, u.FIELD_ROLE_4, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Sent time", "sentAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Served time", "servedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Printed time", "printedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Void time", "voidAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void reason", "voidReason", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidedById", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void user", "voidedByName", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "voidApprovedById", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Void approver", "voidApprovedByName", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "SST before discount", "sstBeforeDiscount", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "SC before discount", "serviceChargeBeforeDiscount", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", "isTakeaway", e, e, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", "quantity", e, R.x40quant, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, e, !1, "Unit qty", "unitQuantity", e, "@unit_quantity*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", e, R.x40sst_t, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "SST %", "sstPercentage", e, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "SC %", "serviceChargePercentage", e, e, e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", e, R.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", e, R.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x40billA, !1, e, !1, "Bill discount", "billAdjustmentTotal", e, R.x40bill_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x40itemA, !1, e, !1, "Item discount", "itemAdjustmentTotal", e, R.x40item_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Gross", "grossTotal", e, R.x40gross, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28_grosT, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, R.x28_gros_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Takeaway price", "takeawayPrice", e, R.x40takea, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Nett", "nettTotal", e, R.x40nett_, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28IFNULb, !1, e, !1, "Discount", "discountTotal", e, R.x28COALEb, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28IFNULgx2b, !1, e, !1, "Gross before charges", "grossBeforeCharges", e, R.x28COALEgx2b, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "TIMESTAMP_DIFF(TIMESTAMP(@servedAt), TIMESTAMP(@sentAt), SECOND)", !1, e, !1, "Preparation seconds", "preparationSeconds", e, "EXTRACT(EPOCH FROM AGE(@served_at,@sent_at))", 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(e, e, !1, e, !1, "Layer", "layer", e, e, e, r)], d.JSArray_Field);
9466
9454
  },
9467
9455
  $signature: 0
9468
9456
  }, t.itemSchema_closure0.prototype = {
@@ -9504,13 +9492,13 @@ from collectible_collections
9504
9492
  left join collectible_transactions on collectible_transactions.collection_id = collectible_collections.id
9505
9493
  where collectible_collections.type = 'TIER' and collectible_collections.user_id = @id
9506
9494
  order by collectible_transactions.created_at desc
9507
- limit 1) else @tier end)`, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card No.", "cardNo", "cardNo", e, e, r), t.Field_Field$numeric("Credit held right now, not credit earned in a period.", e, !1, e, !1, "Balance", "balance", "balance", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Normal Balance", a, a, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Free balance", i, i, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit", "visit", "stat.visitCount", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Last visit", "lastVisit", "stat.lastVisit", "(select max(bills.created_at) from bills where bills.member_id=@id and bills.status='COMPLETED')", u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit frequency", "visitFrequency", "stat.avgVisitFrequency", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Avg bill size", "avgBillSize", "stat.avgBillSize", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Version", "version", "version", e, e, r), t.Field_Field$numeric("Points held right now, not points earned in a period.", e, !1, e, !1, "Points", "point", "point", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Sales", "sales", e, T.x28selecsum, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tier number", "tierNumber", e, `(case when @version is null and @tier is null then (select
9495
+ limit 1) else @tier end)`, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card No.", "cardNo", "cardNo", e, e, r), t.Field_Field$numeric("Credit held right now, not credit earned in a period.", e, !1, e, !1, "Balance", "balance", "balance", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Normal Balance", a, a, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Free balance", i, i, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit", "visit", "stat.visitCount", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Last visit", "lastVisit", "stat.lastVisit", "(select max(bills.created_at) from bills where bills.member_id=@id and bills.status='COMPLETED')", u.FIELD_ROLE_0, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit frequency", "visitFrequency", "stat.avgVisitFrequency", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Avg bill size", "avgBillSize", "stat.avgBillSize", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Version", "version", "version", e, e, r), t.Field_Field$numeric("Points held right now, not points earned in a period.", e, !1, e, !1, "Points", "point", "point", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Sales", "sales", e, R.x28selecsum, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tier number", "tierNumber", e, `(case when @version is null and @tier is null then (select
9508
9496
  collectible_transactions.to_balance::numeric
9509
9497
  from collectible_collections
9510
9498
  left join collectible_transactions on collectible_transactions.collection_id = collectible_collections.id
9511
9499
  where collectible_collections.type = 'TIER' and collectible_collections.user_id = @id
9512
9500
  order by collectible_transactions.created_at desc
9513
- limit 1) when @tier is null then null else @tier::numeric end)`, e, r), t.Field_Field$string(e, e, !1, "id", !1, !1, "Name", "name", e, "(select name from users where users.id=@user_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", "locationId", "location", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Phone number", "phoneNumber", e, T.x28selecp, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Email", "email", e, "(select case when email ilike '%feedmepos.com' then null else nullif(trim(email),'') end from users where users.id=@user_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Monthly visit", "monthlyVisit", e, `(select coalesce(json_agg(t)::text,'[]') from (select to_char(((date_trunc('month',bills.created_at AT TIME ZONE !TIMEZONE)+interval '1 month') AT TIME ZONE !TIMEZONE) AT TIME ZONE 'UTC','YYYY-MM-DD\\"T\\"HH24:MI:SS.MS\\"Z\\"') as month,count(*)::int as visit from bills where bills.member_id=@id and bills.status='COMPLETED' and bills.created_at between (!end - interval '3 months') and !end group by date_trunc('month',bills.created_at AT TIME ZONE !TIMEZONE) order by date_trunc('month',bills.created_at AT TIME ZONE !TIMEZONE)) t)`, e, r), t.Field_Field$string("All TITLE collectibles held, oldest first. Expired titles included", e, !1, e, !1, !1, "Titles", "titles", e, `(select string_agg(collectible_configs.name, ', ' order by collectible_collections.created_at)
9501
+ limit 1) when @tier is null then null else @tier::numeric end)`, e, r), t.Field_Field$string(e, e, !1, "id", !1, !1, "Name", "name", e, "(select name from users where users.id=@user_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", "locationId", "location", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Phone number", "phoneNumber", e, R.x28selecp, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Email", "email", e, "(select case when email ilike '%feedmepos.com' then null else nullif(trim(email),'') end from users where users.id=@user_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Monthly visit", "monthlyVisit", e, `(select coalesce(json_agg(t)::text,'[]') from (select to_char(((date_trunc('month',bills.created_at AT TIME ZONE !TIMEZONE)+interval '1 month') AT TIME ZONE !TIMEZONE) AT TIME ZONE 'UTC','YYYY-MM-DD\\"T\\"HH24:MI:SS.MS\\"Z\\"') as month,count(*)::int as visit from bills where bills.member_id=@id and bills.status='COMPLETED' and bills.created_at between (!end - interval '3 months') and !end group by date_trunc('month',bills.created_at AT TIME ZONE !TIMEZONE) order by date_trunc('month',bills.created_at AT TIME ZONE !TIMEZONE)) t)`, e, r), t.Field_Field$string("All TITLE collectibles held, oldest first. Expired titles included", e, !1, e, !1, !1, "Titles", "titles", e, `(select string_agg(collectible_configs.name, ', ' order by collectible_collections.created_at)
9514
9502
  from collectible_collections
9515
9503
  left join collectible_configs on collectible_configs.id = collectible_collections.collectible_id
9516
9504
  where collectible_collections.type = 'TITLE' and collectible_collections.user_id = @id)`, e, r), t.Field_Field$timestamp("Earliest completed bill of this member", e, !1, e, !1, "First visit", "firstVisit", e, "(select min(bills.created_at) from bills where bills.member_id=@id and bills.status='COMPLETED')", u.FIELD_ROLE_0, r), t.Field_Field$numeric("Completed bills of this member", e, !1, e, !1, "Visit count", "visitCount", e, "(select count(*) from bills where bills.member_id=@id and bills.status='COMPLETED')", u.FIELD_ROLE_1, r)], d.JSArray_Field);
@@ -9525,7 +9513,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9525
9513
  }, t.memberStorePurchaseSchema_closure.prototype = {
9526
9514
  call$1(r) {
9527
9515
  var e = null, n = "isRefund", a = "refundedReason", i = "refundedFrom", s = "refundedAt", l = "status", p = "grossTotal", c = "taxTotal", M = "nettTotal";
9528
- 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, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bundle name", "bundleName", "bundle.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bundle ID", "bundleId", "bundle.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Create user ID", "createdById", "createdBy.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Create user name", "createdByName", "createdBy.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user ID", "refundedById", "refundedBy.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user name", "refundedName", "refunded.name", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", n, n, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund reason", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund ID", i, i, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Refund time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "member.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "memberUserId", "member.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberName", "member.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, l, l, l, e, e, r), t.Field_Field$numeric(e, T.IFNULLg, !1, e, !1, "Gross", p, p, T.COALESg, u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Tax", c, c, T.COALEStax0, u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, T.IFNULLn, !1, e, !1, "Nett", M, M, T.COALESn, u.FIELD_ROLE_2, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Transaction ID", "transactionId", "transaction.id", e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, e, !1, e, !1, "Normal credit", "normalCredit", "bundle.credit.normal", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Free credit", "freeCredit", "bundle.credit.free.amount", e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tax code", "taxCode", "taxCode", e, e, r)], d.JSArray_Field);
9516
+ 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, "Restaurant ID", "restaurantId", "_restaurantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bundle name", "bundleName", "bundle.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bundle ID", "bundleId", "bundle.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Create user ID", "createdById", "createdBy.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Create user name", "createdByName", "createdBy.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user ID", "refundedById", "refundedBy.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund user name", "refundedName", "refunded.name", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", n, n, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund reason", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Refund ID", i, i, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Refund time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", "member.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "memberUserId", "member.userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member name", "memberName", "member.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, l, l, l, e, e, r), t.Field_Field$numeric(e, R.IFNULLg, !1, e, !1, "Gross", p, p, R.COALESg, u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Tax", c, c, R.COALEStax0, u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, R.IFNULLn, !1, e, !1, "Nett", M, M, R.COALESn, u.FIELD_ROLE_2, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Transaction ID", "transactionId", "transaction.id", e, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, e, !1, e, !1, "Normal credit", "normalCredit", "bundle.credit.normal", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Free credit", "freeCredit", "bundle.credit.free.amount", e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tax code", "taxCode", "taxCode", e, e, r)], d.JSArray_Field);
9529
9517
  },
9530
9518
  $signature: 0
9531
9519
  }, t.memberStorePurchaseSchema_closure0.prototype = {
@@ -9561,7 +9549,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9561
9549
  }, t.memberV2Schema_closure.prototype = {
9562
9550
  call$1(r) {
9563
9551
  var e = null, n = "experience";
9564
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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", "joinAt", e, e, 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", "businessId", "business", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", "externalMemberId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Level", "level", "level", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Experience", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tier", "tier", "tier.balance", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card No.", "cardNo", "cardNo", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Balance", "balance", "credit.balance", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Normal Balance", "normalBalance", "credit.normalBalance", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Free balance", "freeBalance", "credit.freeBalance", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit", "visit", "stats.visitCount", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Last visit", "lastVisit", "stats.lastVisit", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit frequency", "visitFrequency", "stats.avgVisitFrequency", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Avg bill size", "avgBillSize", "stats.avgBillSize", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Version", "version", "version", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Points", "point", "point.balance", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Sales", "sales", e, T.x28selecsum, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", "locationId", "location", e, e, r)], d.JSArray_Field);
9552
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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", "joinAt", e, e, 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", "businessId", "business", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", "externalMemberId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Level", "level", "level", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Experience", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Tier", "tier", "tier.balance", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card No.", "cardNo", "cardNo", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Balance", "balance", "credit.balance", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Normal Balance", "normalBalance", "credit.normalBalance", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Free balance", "freeBalance", "credit.freeBalance", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit", "visit", "stats.visitCount", e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Last visit", "lastVisit", "stats.lastVisit", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Visit frequency", "visitFrequency", "stats.avgVisitFrequency", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Avg bill size", "avgBillSize", "stats.avgBillSize", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Version", "version", "version", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Points", "point", "point.balance", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Sales", "sales", e, R.x28selecsum, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", "locationId", "location", e, e, r)], d.JSArray_Field);
9565
9553
  },
9566
9554
  $signature: 0
9567
9555
  }, t.memberV2Schema_closure0.prototype = {
@@ -9682,7 +9670,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9682
9670
  }, t.myEInvoiceSubmissionSchema_closure.prototype = {
9683
9671
  call$1(r) {
9684
9672
  var e = null;
9685
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Submission Time", "submittedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(T.Submis, e, !1, e, !1, !1, "Submit For", "ref", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Submission UID", "submissionUid", e, e, e, r), t.Field_Field$string("INDIVIDUAL, COMPANY, CONSOLIDATED or TEST", e, !1, e, !1, !1, "Customer Type", "customerType", e, "(case when nullif(@customer_type,'') is not null then upper(@customer_type) when @type = 'Test' then 'TEST' else 'CONSOLIDATED' end)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Name", "customerName", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Phone Number", "customerPhoneNumber", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Address", "customerAddress", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Email", "customerEmail", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer TIN No", "customerTinNo", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity Type", "customerIdentityType", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity No", "customerIdentityNo", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Document ID", "documentId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "MyInvois Document ID", "documentUid", e, e, e, r), t.Field_Field$string(T.Test__, e, !1, e, !1, !1, "Type", "type", e, e, e, r), t.Field_Field$string("Submitted, Valid, Invalid or Cancelled", e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Internal ID", "internalId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Long ID", "longId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.MyInvo, e, !1, e, !1, !1, "Original Document ID", "originalDocumentUid", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Errors", "errors", e, e, e, r), t.Field_Field$string("Bill covered by this document; a consolidated document has one row per bill", e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "FeedMe Invoice No", "billSeqNumber", e, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Subtotal", "subtotal", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Charge", "charge", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tax", "tax", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Rounding", "rounding", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("This bill's portion; sum rows for the document total", e, !1, e, !1, "Nett", "nett", e, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9673
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Submission Time", "submittedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(R.Submis, e, !1, e, !1, !1, "Submit For", "ref", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Submission UID", "submissionUid", e, e, e, r), t.Field_Field$string("INDIVIDUAL, COMPANY, CONSOLIDATED or TEST", e, !1, e, !1, !1, "Customer Type", "customerType", e, "(case when nullif(@customer_type,'') is not null then upper(@customer_type) when @type = 'Test' then 'TEST' else 'CONSOLIDATED' end)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Name", "customerName", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Phone Number", "customerPhoneNumber", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Address", "customerAddress", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Email", "customerEmail", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer TIN No", "customerTinNo", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity Type", "customerIdentityType", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer Identity No", "customerIdentityNo", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Document ID", "documentId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "MyInvois Document ID", "documentUid", e, e, e, r), t.Field_Field$string(R.Test__, e, !1, e, !1, !1, "Type", "type", e, e, e, r), t.Field_Field$string("Submitted, Valid, Invalid or Cancelled", e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Internal ID", "internalId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Long ID", "longId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.MyInvo, e, !1, e, !1, !1, "Original Document ID", "originalDocumentUid", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Errors", "errors", e, e, e, r), t.Field_Field$string("Bill covered by this document; a consolidated document has one row per bill", e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "FeedMe Invoice No", "billSeqNumber", e, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Subtotal", "subtotal", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Charge", "charge", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Tax", "tax", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Rounding", "rounding", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric("This bill's portion; sum rows for the document total", e, !1, e, !1, "Nett", "nett", e, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9686
9674
  },
9687
9675
  $signature: 0
9688
9676
  }, t.myEInvoiceSubmissionSchema_closure0.prototype = {
@@ -9694,7 +9682,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9694
9682
  }, t.parentFlattenItemSchema_closure.prototype = {
9695
9683
  call$1(r) {
9696
9684
  var e = null;
9697
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$string(e, T.IF__ca, !1, e, !1, !1, "Category", "categoryName", e, T.CASE_Wx40c, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", e, e, e, r)], d.JSArray_Field);
9685
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$string(e, R.IF__ca, !1, e, !1, !1, "Category", "categoryName", e, R.CASE_Wx40c, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", e, e, e, r)], d.JSArray_Field);
9698
9686
  },
9699
9687
  $signature: 0
9700
9688
  }, t.parentFlattenItemSchema_closure0.prototype = {
@@ -9705,7 +9693,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9705
9693
  }, t.paymentSchema_closure.prototype = {
9706
9694
  call$1(r) {
9707
9695
  var e = null, n = "paymentCreatedAt", a = "billCompletedAt", i = "isRefund", s = "reference", l = "depositId", p = "depositReferenceNo";
9708
- 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, "Payment 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$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string("Merchant-configured tender label, exactly as the POS shows it — bucket the sampled values, never a guessed label. A delivery platform is a bill.source channel, not a tender.", e, !1, e, !1, !1, "Name", "name", "payment.name", e, e, r), t.Field_Field$string(e, T.case_wI, !1, e, !1, !1, "Counter ID", "counterId", "counter.id", T.case_w_i, u.FIELD_ROLE_5, r), t.Field_Field$string(e, T.case_wN, !1, e, !1, !1, "Counter", "counterName", "counter.name", T.case_w_n, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "byName", "by.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "byId", "by.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reference", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Total", "total", "receivedAmount", e, u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, e, !1, e, !1, "Paid", "paid", "paid", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Change", "change", "change", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "OTHER_CHARGE.total", T.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", "SERVICE_CHARGE.total", T.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "SST.total", T.x40sst_t, e, r), t.Field_Field$numeric(e, "@vatTotal*IF(@isRefund, -1, 1)", !0, e, !1, "VAT", "vatTotal", "VAT.total", T.x40vat_t, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Issuer", "paymentGatewayIssuer", "paymentGateway.method.issuer", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "paymentGatewayVariant", "paymentGateway.method.variant", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway key", "paymentGatewayKey", "paymentGateway.key", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway", "gateway", "paymentGateway.gateway", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card type", "cardType", "paymentGateway.cardType", e, e, r), t.Field_Field$string(e, "CONCAT(@name,COALESCE(CONCAT(' (', UPPER(@cardType), ')'),CONCAT(' (', @paymentGatewayIssuer, ')'),''))", !1, e, !1, !1, "Summary", "summary", e, "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)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card no", "cardNo", "paymentGateway.cardNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Transaction ID", "transactionId", "paymentGateway.transactionId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reconciliation ID", "reconciliationId", "paymentGateway.reconciliationId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, "COALESCE(UPPER(@cardType),@paymentGatewayIssuer)", !1, e, !1, !1, "Method", "method", e, "COALESCE(UPPER(@card_type),@payment_gateway_issuer)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Merchant ID", "merchantId", "paymentGateway.merchantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Terminal ID", "terminalId", "paymentGateway.terminalId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref (RRN)", "rrn", "paymentGateway.rrn", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "paymentGateway.source", e, e, r), t.Field_Field$string("Bank/issuer authorisation code for a card transaction. Null for wallet and QR payments.", e, !1, e, !1, !1, "Approval code", "approvalCode", "paymentGateway.approvalCode", e, e, r), t.Field_Field$string("Gateway order number printed on the wallet/QR slip. Null for card payments.", e, !1, e, !1, !1, "Order no", "orderNo", "paymentGateway.orderNo", e, e, r), t.Field_Field$string('Deposits record this tender settles. Set only when the tender comes from the deposit feature: method named exactly DEPOSIT, no payment gateway, and a reference shaped "<referenceNo> (<depositId>)". A merchant-defined method named DEPOSIT leaves this null.', e, !1, e, !1, !1, "Deposit ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Customer-facing reference number of the deposit, read from the same tender reference as depositId and null on the same terms.", e, !1, e, !1, !1, "Deposit reference no", p, p, e, e, r)], d.JSArray_Field);
9696
+ 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, "Payment 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$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string("Merchant-configured tender label, exactly as the POS shows it — bucket the sampled values, never a guessed label. A delivery platform is a bill.source channel, not a tender.", e, !1, e, !1, !1, "Name", "name", "payment.name", e, e, r), t.Field_Field$string(e, R.case_wI, !1, e, !1, !1, "Counter ID", "counterId", "counter.id", R.case_w_i, u.FIELD_ROLE_5, r), t.Field_Field$string(e, R.case_wN, !1, e, !1, !1, "Counter", "counterName", "counter.name", R.case_w_n, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "byName", "by.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "byId", "by.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reference", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Total", "total", "receivedAmount", e, u.FIELD_ROLE_2, r), t.Field_Field$numeric(e, e, !1, e, !1, "Paid", "paid", "paid", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Change", "change", "change", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "OTHER_CHARGE.total", R.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", "SERVICE_CHARGE.total", R.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "SST.total", R.x40sst_t, e, r), t.Field_Field$numeric(e, "@vatTotal*IF(@isRefund, -1, 1)", !0, e, !1, "VAT", "vatTotal", "VAT.total", R.x40vat_t, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Issuer", "paymentGatewayIssuer", "paymentGateway.method.issuer", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "paymentGatewayVariant", "paymentGateway.method.variant", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway key", "paymentGatewayKey", "paymentGateway.key", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway", "gateway", "paymentGateway.gateway", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card type", "cardType", "paymentGateway.cardType", e, e, r), t.Field_Field$string(e, "CONCAT(@name,COALESCE(CONCAT(' (', UPPER(@cardType), ')'),CONCAT(' (', @paymentGatewayIssuer, ')'),''))", !1, e, !1, !1, "Summary", "summary", e, "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)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card no", "cardNo", "paymentGateway.cardNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Transaction ID", "transactionId", "paymentGateway.transactionId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reconciliation ID", "reconciliationId", "paymentGateway.reconciliationId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, "COALESCE(UPPER(@cardType),@paymentGatewayIssuer)", !1, e, !1, !1, "Method", "method", e, "COALESCE(UPPER(@card_type),@payment_gateway_issuer)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Merchant ID", "merchantId", "paymentGateway.merchantId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Terminal ID", "terminalId", "paymentGateway.terminalId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref (RRN)", "rrn", "paymentGateway.rrn", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "paymentGateway.source", e, e, r), t.Field_Field$string("Bank/issuer authorisation code for a card transaction. Null for wallet and QR payments.", e, !1, e, !1, !1, "Approval code", "approvalCode", "paymentGateway.approvalCode", e, e, r), t.Field_Field$string("Gateway order number printed on the wallet/QR slip. Null for card payments.", e, !1, e, !1, !1, "Order no", "orderNo", "paymentGateway.orderNo", e, e, r), t.Field_Field$string('Deposits record this tender settles. Set only when the tender comes from the deposit feature: method named exactly DEPOSIT, no payment gateway, and a reference shaped "<referenceNo> (<depositId>)". A merchant-defined method named DEPOSIT leaves this null.', e, !1, e, !1, !1, "Deposit ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Customer-facing reference number of the deposit, read from the same tender reference as depositId and null on the same terms.", e, !1, e, !1, !1, "Deposit reference no", p, p, e, e, r)], d.JSArray_Field);
9709
9697
  },
9710
9698
  $signature: 0
9711
9699
  }, t.paymentSchema_closure0.prototype = {
@@ -9717,7 +9705,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9717
9705
  }, t.paymentTimePaymentSchema_closure.prototype = {
9718
9706
  call$1(r) {
9719
9707
  var e = null, n = "paymentCreatedAt", a = "billCompletedAt", i = "isRefund", s = "reference";
9720
- 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, "Payment 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$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", "payment.name", e, e, r), t.Field_Field$string(e, T.case_wI, !1, e, !1, !1, "Counter ID", "counterId", "counter.id", T.case_w_i, u.FIELD_ROLE_5, r), t.Field_Field$string(e, T.case_wN, !1, e, !1, !1, "Counter", "counterName", "counter.name", T.case_w_n, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "byName", "by.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "byId", "by.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reference", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Total", "total", "receivedAmount", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Paid", "paid", "paid", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Change", "change", "change", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "OTHER_CHARGE.total", T.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", "SERVICE_CHARGE.total", T.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "SST.total", T.x40sst_t, e, r), t.Field_Field$numeric(e, "@vatTotal*IF(@isRefund, -1, 1)", !0, e, !1, "VAT", "vatTotal", "VAT.total", T.x40vat_t, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Issuer", "paymentGatewayIssuer", "paymentGateway.method.issuer", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "paymentGatewayVariant", "paymentGateway.method.variant", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway key", "paymentGatewayKey", "paymentGateway.key", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway", "gateway", "paymentGateway.gateway", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card type", "cardType", "paymentGateway.cardType", e, e, r), t.Field_Field$string(e, "CONCAT(@name,COALESCE(CONCAT(' (', @cardType, ')'),CONCAT(' (', @paymentGatewayIssuer, ')'),''))", !1, e, !1, !1, "Summary", "summary", e, "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)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card no", "cardNo", "paymentGateway.cardNo", e, e, r)], d.JSArray_Field);
9708
+ 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, "Payment 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$bool(e, e, !1, e, !1, "Refund", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", "payment.name", e, e, r), t.Field_Field$string(e, R.case_wI, !1, e, !1, !1, "Counter ID", "counterId", "counter.id", R.case_w_i, u.FIELD_ROLE_5, r), t.Field_Field$string(e, R.case_wN, !1, e, !1, !1, "Counter", "counterName", "counter.name", R.case_w_n, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User", "byName", "by.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "byId", "by.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Reference", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Total", "total", "receivedAmount", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Paid", "paid", "paid", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Change", "change", "change", e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "Other charge", "otherChargeTotal", "OTHER_CHARGE.total", R.x40other, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, e, !1, "SC", "serviceChargeTotal", "SERVICE_CHARGE.total", R.x40servi, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !0, e, !1, "SST", "sstTotal", "SST.total", R.x40sst_t, e, r), t.Field_Field$numeric(e, "@vatTotal*IF(@isRefund, -1, 1)", !0, e, !1, "VAT", "vatTotal", "VAT.total", R.x40vat_t, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Issuer", "paymentGatewayIssuer", "paymentGateway.method.issuer", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "paymentGatewayVariant", "paymentGateway.method.variant", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway key", "paymentGatewayKey", "paymentGateway.key", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Gateway", "gateway", "paymentGateway.gateway", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card type", "cardType", "paymentGateway.cardType", e, e, r), t.Field_Field$string(e, "CONCAT(@name,COALESCE(CONCAT(' (', @cardType, ')'),CONCAT(' (', @paymentGatewayIssuer, ')'),''))", !1, e, !1, !1, "Summary", "summary", e, "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)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Card no", "cardNo", "paymentGateway.cardNo", e, e, r)], d.JSArray_Field);
9721
9709
  },
9722
9710
  $signature: 0
9723
9711
  }, t.paymentTimePaymentSchema_closure0.prototype = {
@@ -9775,7 +9763,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9775
9763
  }, t.purchaseOrderSchema_closure.prototype = {
9776
9764
  call$1(r) {
9777
9765
  var e = null, n = "locationId", a = "seqNumber", i = "generatedAt", s = "effectiveAt", l = "billPriceAdjustment";
9778
- 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, "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$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, "Ref", "ref", "ref", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("Values: PROCESSING, RECEIVING, CLOSE, CANCELLED", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", "supplier.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.Whethe, e, !1, e, !1, !1, "Type", "supplierInternal", "supplier.internal", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier", "supplierName", "supplier.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier contact name", "supplierContactName", "supplier.contactName", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier phone number", "supplierPhoneNumber", "supplier.phoneNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier reg no.", "supplierRegistrationNumber", "supplier.registrationNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier email", "supplierEmail", "supplier.email", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 1", "supplierAddressLine1", "supplier.address.line1", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 2", "supplierAddressLine2", "supplier.address.line2", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address state", "supplierAddressState", "supplier.address.state", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address city", "supplierAddressCity", "supplier.address.city", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address postcode", "supplierAddressPostcode", "supplier.address.postcode", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address country", "supplierAddressCountry", "supplier.address.country", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Generated time", i, i, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite ID", "netSuiteId", "netSuite.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Ref No", "netSuiteRefNo", "netSuite.refNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Transaction Number", "netSuiteTransactionNumber", T.netSui, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier Code", "supplierCode", e, T.x28selecc, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Transformed status", "transformedStatus", e, "(case when (@status in ('RECEIVING','PROCESSING') and (select count(*) from purchase_order_delivery_orders dos where dos.location_id=@location_id and dos.purchase_order_id=@id) > 0) then 'PARTIAL RECEIVED' when @status = 'CLOSE' then 'COMPLETE' else @status end)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Bill price adjustment", l, l, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9766
+ 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, "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$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, "Ref", "ref", "ref", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$string("Values: PROCESSING, RECEIVING, CLOSE, CANCELLED", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "No.", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", "supplier.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.Whethe, e, !1, e, !1, !1, "Type", "supplierInternal", "supplier.internal", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier", "supplierName", "supplier.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier contact name", "supplierContactName", "supplier.contactName", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier phone number", "supplierPhoneNumber", "supplier.phoneNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier reg no.", "supplierRegistrationNumber", "supplier.registrationNumber", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier email", "supplierEmail", "supplier.email", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 1", "supplierAddressLine1", "supplier.address.line1", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address line 2", "supplierAddressLine2", "supplier.address.line2", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address state", "supplierAddressState", "supplier.address.state", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address city", "supplierAddressCity", "supplier.address.city", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address postcode", "supplierAddressPostcode", "supplier.address.postcode", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier address country", "supplierAddressCountry", "supplier.address.country", e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Generated time", i, i, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite ID", "netSuiteId", "netSuite.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Ref No", "netSuiteRefNo", "netSuite.refNo", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "NetSuite Transaction Number", "netSuiteTransactionNumber", R.netSui, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier Code", "supplierCode", e, R.x28selecc, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Transformed status", "transformedStatus", e, "(case when (@status in ('RECEIVING','PROCESSING') and (select count(*) from purchase_order_delivery_orders dos where dos.location_id=@location_id and dos.purchase_order_id=@id) > 0) then 'PARTIAL RECEIVED' when @status = 'CLOSE' then 'COMPLETE' else @status end)", e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Bill price adjustment", l, l, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9779
9767
  },
9780
9768
  $signature: 0
9781
9769
  }, t.purchaseOrderSchema_closure0.prototype = {
@@ -9799,7 +9787,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9799
9787
  }, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure.prototype = {
9800
9788
  call$1(r) {
9801
9789
  var e = null, n = "locationId", a = "purchaseOrderId", i = "purchaseOrderDeliveryFulfillmentId", s = "effectiveAt";
9802
- 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, "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$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, "Purchase order ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Purchase delivery fulfillment ID", i, i, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", "skuId", "sku._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "skuCode", "sku.code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "skuName", "sku.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit ID", "skuUnitId", "sku.unit._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit name", "skuUnitName", "sku.unit.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit abbrev", "skuUnitAbbrev", "sku.unit.abbrev", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Qty", "quantity", "amount", e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", "customAttributes", "sku.customAttributes", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", e, T.x28selecsup, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9790
+ 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, "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$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, "Purchase order ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Purchase delivery fulfillment ID", i, i, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", "skuId", "sku._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "skuCode", "sku.code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "skuName", "sku.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit ID", "skuUnitId", "sku.unit._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit name", "skuUnitName", "sku.unit.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit abbrev", "skuUnitAbbrev", "sku.unit.abbrev", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Qty", "quantity", "amount", e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", "customAttributes", "sku.customAttributes", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", e, R.x28selecsup, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9803
9791
  },
9804
9792
  $signature: 0
9805
9793
  }, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0.prototype = {
@@ -9823,7 +9811,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9823
9811
  }, t.purchaseOrderDeliveryOrderSkuSchema_closure.prototype = {
9824
9812
  call$1(r) {
9825
9813
  var e = null, n = "locationId", a = "purchaseOrderId", i = "purchaseOrderDeliveryOrderId", s = "effectiveAt";
9826
- 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, "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$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, "Purchase order ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Purchase delivery order ID", i, i, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", "skuId", "sku._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "skuCode", "sku.code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "skuName", "sku.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit ID", "skuUnitId", "sku.unit._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit name", "skuUnitName", "sku.unit.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit abbrev", "skuUnitAbbrev", "sku.unit.abbrev", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Qty", "quantity", "amount", e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", "customAttributes", "sku.customAttributes", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Cost", "cost", "cost", e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", e, T.x28selecsup, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9814
+ 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, "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$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, "Purchase order ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Purchase delivery order ID", i, i, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", "skuId", "sku._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "skuCode", "sku.code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "skuName", "sku.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit ID", "skuUnitId", "sku.unit._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit name", "skuUnitName", "sku.unit.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Unit abbrev", "skuUnitAbbrev", "sku.unit.abbrev", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Qty", "quantity", "amount", e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", s, s, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", "customAttributes", "sku.customAttributes", e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Cost", "cost", "cost", e, u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", e, R.x28selecsup, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9827
9815
  },
9828
9816
  $signature: 0
9829
9817
  }, t.purchaseOrderDeliveryOrderSkuSchema_closure0.prototype = {
@@ -9835,7 +9823,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9835
9823
  }, t.purchaseOrderItemSchema_closure.prototype = {
9836
9824
  call$1(r) {
9837
9825
  var e = null, n = "locationId", a = "purchaseOrderId", i = "quantity", s = "receivedQuantity", l = "requestedQuantity", p = "effectiveAt", c = "itemPriceAdjustment";
9838
- 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, "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$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, "Purchase order ID", a, a, e, u.FIELD_ROLE_5, 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, "Name", "name", "name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", "skuId", "sku._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU code", "skuCode", "sku.code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU name", "skuName", "sku.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU unit ID", "skuUnitId", "sku.unit._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU unit name", "skuUnitName", "sku.unit.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU unit abbrev", "skuUnitAbbrev", "sku.unit.abbrev", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Qty", i, i, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Received qty", s, s, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Requested qty", l, l, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Cost", "cost", "totalCost", e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", p, p, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", "customAttributes", "sku.customAttributes", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", e, T.x28selecsup, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, e, !1, e, !1, "Item price adjustment", c, c, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9826
+ 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, "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$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, "Purchase order ID", a, a, e, u.FIELD_ROLE_5, 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, "Name", "name", "name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU ID", "skuId", "sku._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU code", "skuCode", "sku.code", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU name", "skuName", "sku.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU unit ID", "skuUnitId", "sku.unit._id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU unit name", "skuUnitName", "sku.unit.name", e, u.FIELD_ROLE_4, r), t.Field_Field$string(e, e, !1, e, !1, !1, "SKU unit abbrev", "skuUnitAbbrev", "sku.unit.abbrev", e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Qty", i, i, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Received qty", s, s, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Requested qty", l, l, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Cost", "cost", "totalCost", e, u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Effective time", p, p, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Custom attributes", "customAttributes", "sku.customAttributes", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier ID", "supplierId", e, R.x28selecsup, u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, e, !1, e, !1, "Item price adjustment", c, c, e, u.FIELD_ROLE_1, r)], d.JSArray_Field);
9839
9827
  },
9840
9828
  $signature: 0
9841
9829
  }, t.purchaseOrderItemSchema_closure0.prototype = {
@@ -9847,7 +9835,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9847
9835
  }, t.purchaseOrderTemplateSchema_closure.prototype = {
9848
9836
  call$1(r) {
9849
9837
  var e = null, n = "locationId", a = "businessId", i = "purchaseOrderTemplateId", s = "supplierId", l = "supplierName", p = "supplierInternal", c = "supplierContactName", M = "supplierPhoneNumber", b = "supplierRegistrationNumber", O = "supplierEmail", D = "updatedAt", $ = "updatedByName";
9850
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, e, 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, "Restaurant ID", "restaurantId", "_restaurantId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Purchase order template ID", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref", "ref", "ref", 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, "Supplier ID", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier", l, l, e, e, r), t.Field_Field$string(T.Whethe, e, !1, e, !1, !1, "Type", p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier contact name", c, c, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier phone number", M, M, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier reg no.", b, b, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier email", O, O, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Updated time", D, D, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Updated by", $, $, e, e, r)], d.JSArray_Field);
9838
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", "_id", e, e, 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, e, 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, "Restaurant ID", "restaurantId", "_restaurantId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Warehouse ID", "warehouseId", "_warehouseId", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Location ID", n, n, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", a, a, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Purchase order template ID", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", "name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Ref", "ref", "ref", 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, "Supplier ID", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier", l, l, e, e, r), t.Field_Field$string(R.Whethe, e, !1, e, !1, !1, "Type", p, p, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier contact name", c, c, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier phone number", M, M, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier reg no.", b, b, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Supplier email", O, O, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Updated time", D, D, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Updated by", $, $, e, e, r)], d.JSArray_Field);
9851
9839
  },
9852
9840
  $signature: 0
9853
9841
  }, t.purchaseOrderTemplateSchema_closure0.prototype = {
@@ -9904,8 +9892,8 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9904
9892
  $signature: 1
9905
9893
  }, t.refundBillSchema_closure.prototype = {
9906
9894
  call$1(r) {
9907
- var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", c = "Takeaway", M = "completedAt", b = "integratedOrderId", O = "itemCount", D = "taxTotal", $ = "discountTotal", E = "grossTotal", g = "rounding", h = "takeawayPrice", R = "thirdPartyExtraCharge", L = "deliveryFee", W = "nettTotal";
9908
- 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, c, "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", T.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, T.IFNULLi, !0, e, !1, "Item count", O, O, T.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, e, D, D, T.COALEStax0, e, r), t.Field_Field$numeric(e, T.IFNULLdiT, !1, e, !1, "Discount", $, $, T.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLg, !1, e, !1, "Gross", E, E, T.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", g, g, T.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", T.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, T.IFNULLs, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", T.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, T.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", T.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, T.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLtak, !1, e, !1, c, h, h, T.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLth, !1, e, !1, "Extra charge", R, R, T.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLde_, !1, e, !1, "Delivery fee", L, L, T.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, T.IFNULLn, !1, e, !1, "Nett", W, W, T.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, T.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, T.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, T.SUM__n, e, r)], d.JSArray_Field);
9895
+ var e = null, n = "seqNumber", a = "deliveryName", i = "isRefund", s = "isPickup", l = "isInHouseDelivery", p = "isDelivery", c = "Takeaway", M = "completedAt", b = "integratedOrderId", O = "itemCount", D = "taxTotal", $ = "discountTotal", E = "grossTotal", g = "rounding", h = "takeawayPrice", T = "thirdPartyExtraCharge", F = "deliveryFee", W = "nettTotal";
9896
+ 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, c, "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", R.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, R.IFNULLi, !0, e, !1, "Item count", O, O, R.COALESi, e, r), t.Field_Field$numeric(e, "IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, e, !1, e, D, D, R.COALEStax0, e, r), t.Field_Field$numeric(e, R.IFNULLdiT, !1, e, !1, "Discount", $, $, R.COALESdit, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLg, !1, e, !1, "Gross", E, E, R.COALESg, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, e, !1, "Rounding", g, g, R.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", R.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, R.IFNULLs, !1, e, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", R.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, R.x28IFNULo, !1, e, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", R.x28COALEo, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.x28IFNULgx2d, !1, e, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, R.x28COALEgx2d, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLtak, !1, e, !1, c, h, h, R.COALEStak, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLth, !1, e, !1, "Extra charge", T, T, R.COALESth, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLde_, !1, e, !1, "Delivery fee", F, F, R.COALESdex2c, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, R.IFNULLn, !1, e, !1, "Nett", W, W, R.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, R.MIN_EX, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member frequency", "frequency", e, R.COUNT_, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Member monetary", "monetary", e, R.SUM__n, e, r)], d.JSArray_Field);
9909
9897
  },
9910
9898
  $signature: 0
9911
9899
  }, t.refundBillSchema_closure0.prototype = {
@@ -9916,7 +9904,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9916
9904
  }, t.remoteOrderSchema_closure.prototype = {
9917
9905
  call$1(r) {
9918
9906
  var e = null, n = "restaurantId", a = "memberId", i = "customerAddress", s = "customerRemark", l = "deliveryFee";
9919
- 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, "Restaurant ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.ValuesD, e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$timestamp(T.Time_t, e, !1, e, !1, "Order time", "orderAt", "orderAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string("Order option. Values: DINE_IN, TAKEAWAY, PICKUP, DELIVERY", e, !1, e, !1, !1, "Option", "optionType", "option.type", e, e, r), t.Field_Field$string("Sub option under the order option, e.g. TAKEAWAY", e, !1, e, !1, !1, "Sub option", "subOptionType", "option.sub.type", e, e, r), t.Field_Field$string("Dine-in table, or the pickup / delivery queue slot (e.g. #P67). Normalized by the transform from option.sub.slot || option.slot", e, !1, e, !1, !1, "Slot", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order type", "orderType", "orderMetadata.orderType", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment type", "paymentType", "payment.type", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", "userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$string("Delivery address or pickup point address, whichever applies", e, !1, e, !1, !1, "Address", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", "customerPhone", "option.contactNumber", e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Delivery fee", l, l, e, u.FIELD_ROLE_1, r), t.Field_Field$string("Delivery provider type, e.g. IN_HOUSE", e, !1, e, !1, !1, "Delivery type", "deliveryType", "option.deliveryType", e, e, r), t.Field_Field$timestamp("Scheduled pickup time. Null on non-pickup orders", e, !1, e, !1, "Pickup time", "pickupAt", "option.pickupAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp("Scheduled delivery time. Null on non-delivery orders", e, !1, e, !1, "Delivery time", "deliveryAt", "option.deliveryAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pickup / delivery fulfillment status, separate from the order status", e, !1, e, !1, !1, "Fulfillment status", "fulfillmentStatus", "option.status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Pickup point", "pickupPointName", "option.pickupPoint.name", e, e, r), t.Field_Field$string(T.Bill_c, e, !1, e, !1, !1, "Bill ID", "billId", "billId", e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9907
+ 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, "Restaurant ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.ValuesD, e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$timestamp(R.Time_t, e, !1, e, !1, "Order time", "orderAt", "orderAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string("Order option. Values: DINE_IN, TAKEAWAY, PICKUP, DELIVERY", e, !1, e, !1, !1, "Option", "optionType", "option.type", e, e, r), t.Field_Field$string("Sub option under the order option, e.g. TAKEAWAY", e, !1, e, !1, !1, "Sub option", "subOptionType", "option.sub.type", e, e, r), t.Field_Field$string("Dine-in table, or the pickup / delivery queue slot (e.g. #P67). Normalized by the transform from option.sub.slot || option.slot", e, !1, e, !1, !1, "Slot", "slot", "slot", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order type", "orderType", "orderMetadata.orderType", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment type", "paymentType", "payment.type", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", a, a, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", "userId", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, R.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$string("Delivery address or pickup point address, whichever applies", e, !1, e, !1, !1, "Address", i, i, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", "customerPhone", "option.contactNumber", e, e, r), t.Field_Field$string("Remark on the pickup / delivery order", e, !1, e, !1, !1, "Customer remark", s, s, e, e, r), t.Field_Field$numeric(e, e, !1, e, !1, "Delivery fee", l, l, e, u.FIELD_ROLE_1, r), t.Field_Field$string("Delivery provider type, e.g. IN_HOUSE", e, !1, e, !1, !1, "Delivery type", "deliveryType", "option.deliveryType", e, e, r), t.Field_Field$timestamp("Scheduled pickup time. Null on non-pickup orders", e, !1, e, !1, "Pickup time", "pickupAt", "option.pickupAt", e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp("Scheduled delivery time. Null on non-delivery orders", e, !1, e, !1, "Delivery time", "deliveryAt", "option.deliveryAt", e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pickup / delivery fulfillment status, separate from the order status", e, !1, e, !1, !1, "Fulfillment status", "fulfillmentStatus", "option.status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Pickup point", "pickupPointName", "option.pickupPoint.name", e, e, r), t.Field_Field$string(R.Bill_c, e, !1, e, !1, !1, "Bill ID", "billId", "billId", e, u.FIELD_ROLE_5, r)], d.JSArray_Field);
9920
9908
  },
9921
9909
  $signature: 0
9922
9910
  }, t.remoteOrderSchema_closure0.prototype = {
@@ -9939,7 +9927,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9939
9927
  }, t.remoteOrderFlattenItemSchema_closure.prototype = {
9940
9928
  call$1(r) {
9941
9929
  var e = null, n = "restaurantId", a = "itemCreatedAt", i = "orderStatus", s = "subCategories", l = "productId", p = "customAttributes", c = "quantity", M = "unitQuantity", b = "perXUnit", O = "layerZeroParentId", D = "isTakeaway", $ = "takeawayId", E = "takeawayName", g = "servedAt", h = "collectedAt";
9942
- 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, "Restaurant ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order ID", "orderId", "orderId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Item time", a, a, e, u.FIELD_ROLE_0, r), t.Field_Field$string(T.Status, e, !0, e, !1, !1, "Order status", i, i, e, e, r), t.Field_Field$string("Item status. Values: DRAFT, VOIDED, SENT", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !0, "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, !0, "Category", "categoryName", "category", e, e, r), t.Field_Field$string("Comma-joined product sub categories", e, !1, e, !1, !1, "Sub categories", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.JSON_s, e, !1, e, !1, !1, "Custom attributes", p, p, e, e, r), t.Field_Field$numeric(T.Item_q, e, !1, e, !1, "Quantity", c, c, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "Unit quantity", M, M, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Per unit", b, b, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Unit", "unit", "unit", e, e, r), t.Field_Field$numeric(T.Item_d, e, !1, e, !1, "Layer", "layer", "layer", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Parent ID", "parentId", "parent.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Parent name", "parentName", "parent.name", e, e, r), t.Field_Field$string(T.ID_of_, e, !1, e, !1, !1, "Layer zero parent ID", O, O, e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.Valuesp, e, !0, e, !1, !1, "Addon type", "addonType", "addon.type", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "addonSelectionId", "addon.selectionId", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "variantId", "variant.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", "variant.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", D, D, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, $, $, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Takeaway name", E, E, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Served at", g, g, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Collected at", h, h, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", e, "(select user_id from remote_orders where remote_orders.id=@order_id)", u.FIELD_ROLE_5, r), t.Field_Field$timestamp("Parent order placement time. Drives the report date filter", e, !1, e, !1, "Order time", "orderAt", e, e, u.FIELD_ROLE_0, r)], d.JSArray_Field);
9930
+ 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, "Restaurant ID", n, n, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order ID", "orderId", "orderId", e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Item time", a, a, e, u.FIELD_ROLE_0, r), t.Field_Field$string(R.Status, e, !0, e, !1, !1, "Order status", i, i, e, e, r), t.Field_Field$string("Item status. Values: DRAFT, VOIDED, SENT", e, !1, e, !1, !1, "Status", "status", "status", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !0, "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, !0, "Category", "categoryName", "category", e, e, r), t.Field_Field$string("Comma-joined product sub categories", e, !1, e, !1, !1, "Sub categories", s, s, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", l, l, e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.JSON_s, e, !1, e, !1, !1, "Custom attributes", p, p, e, e, r), t.Field_Field$numeric(R.Item_q, e, !1, e, !1, "Quantity", c, c, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "Unit quantity", M, M, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Per unit", b, b, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Unit", "unit", "unit", e, e, r), t.Field_Field$numeric(R.Item_d, e, !1, e, !1, "Layer", "layer", "layer", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Parent ID", "parentId", "parent.id", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Parent name", "parentName", "parent.name", e, e, r), t.Field_Field$string(R.ID_of_, e, !1, e, !1, !1, "Layer zero parent ID", O, O, e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.Valuesp, e, !0, e, !1, !1, "Addon type", "addonType", "addon.type", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "addonSelectionId", "addon.selectionId", e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "variantId", "variant.id", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", "variant.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", "remark", e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", D, D, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, $, $, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Takeaway name", E, E, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Served at", g, g, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Collected at", h, h, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", e, "(select user_id from remote_orders where remote_orders.id=@order_id)", u.FIELD_ROLE_5, r), t.Field_Field$timestamp("Parent order placement time. Drives the report date filter", e, !1, e, !1, "Order time", "orderAt", e, e, u.FIELD_ROLE_0, r)], d.JSArray_Field);
9943
9931
  },
9944
9932
  $signature: 0
9945
9933
  }, t.remoteOrderFlattenItemSchema_closure0.prototype = {
@@ -9962,7 +9950,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9962
9950
  }, t.remotePickupOrderSchema_closure.prototype = {
9963
9951
  call$1(r) {
9964
9952
  var e = null;
9965
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Created time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.ValuesD, e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$timestamp(T.Time_t, e, !1, e, !1, "Order time", "orderAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order type", "orderType", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment type", "paymentType", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, T.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$string("Pickup point address", e, !1, e, !1, !1, "Address", "customerAddress", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", "customerPhone", e, e, e, r), t.Field_Field$string("Remark on the pickup order", e, !1, e, !1, !1, "Customer remark", "customerRemark", e, e, e, r), t.Field_Field$timestamp(T.Schedu, e, !1, e, !1, "Pickup time", "pickupAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pickup fulfillment status, separate from the order status", e, !1, e, !1, !1, "Fulfillment status", "fulfillmentStatus", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Pickup point", "pickupPointName", e, e, e, r), t.Field_Field$string(T.Bill_c, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Pickup slot, e.g. #P67", e, !1, e, !1, !1, "Slot", "slot", e, e, e, r)], d.JSArray_Field);
9953
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Created time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.ValuesD, e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$timestamp(R.Time_t, e, !1, e, !1, "Order time", "orderAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order type", "orderType", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Payment type", "paymentType", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Member ID", "memberId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant", "restaurantName", e, R.x28selecn, u.FIELD_ROLE_4, r), t.Field_Field$string("Pickup point address", e, !1, e, !1, !1, "Address", "customerAddress", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Customer phone", "customerPhone", e, e, e, r), t.Field_Field$string("Remark on the pickup order", e, !1, e, !1, !1, "Customer remark", "customerRemark", e, e, e, r), t.Field_Field$timestamp(R.Schedu, e, !1, e, !1, "Pickup time", "pickupAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string("Pickup fulfillment status, separate from the order status", e, !1, e, !1, !1, "Fulfillment status", "fulfillmentStatus", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Pickup point", "pickupPointName", e, e, e, r), t.Field_Field$string(R.Bill_c, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Pickup slot, e.g. #P67", e, !1, e, !1, !1, "Slot", "slot", e, e, e, r)], d.JSArray_Field);
9966
9954
  },
9967
9955
  $signature: 0
9968
9956
  }, t.remotePickupOrderSchema_closure0.prototype = {
@@ -9974,7 +9962,7 @@ where collectible_collections.type = 'TITLE' and collectible_collections.user_id
9974
9962
  }, t.remotePickupOrderFlattenItemSchema_closure.prototype = {
9975
9963
  call$1(r) {
9976
9964
  var e = null;
9977
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Created time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order ID", "orderId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Item time", "itemCreatedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(T.Status, e, !0, e, !1, !1, "Order status", "orderStatus", e, e, e, r), t.Field_Field$string("Item status. Values: DRAFT, VOIDED, SENT", e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !0, "Name", "name", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !0, "Category", "categoryName", e, e, e, r), t.Field_Field$string("Comma-joined product sub categories", e, !1, e, !1, !1, "Sub categories", "subCategories", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", "productId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.JSON_s, e, !1, e, !1, !1, "Custom attributes", "customAttributes", e, e, e, r), t.Field_Field$numeric(T.Item_q, e, !1, e, !1, "Quantity", "quantity", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "Unit quantity", "unitQuantity", e, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Per unit", "perXUnit", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Unit", "unit", e, e, e, r), t.Field_Field$numeric(T.Item_d, e, !1, e, !1, "Layer", "layer", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Parent ID", "parentId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Parent name", "parentName", e, e, e, r), t.Field_Field$string(T.ID_of_, e, !1, e, !1, !1, "Layer zero parent ID", "layerZeroParentId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(T.Valuesp, e, !0, e, !1, !1, "Addon type", "addonType", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "addonSelectionId", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "variantId", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", "isTakeaway", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "takeawayId", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Takeaway name", "takeawayName", e, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Served at", "servedAt", e, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Collected at", "collectedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(T.Schedu, e, !1, e, !1, "Pickup time", "pickupAt", e, e, u.FIELD_ROLE_0, r)], d.JSArray_Field);
9965
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Created time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Order ID", "orderId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Item time", "itemCreatedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(R.Status, e, !0, e, !1, !1, "Order status", "orderStatus", e, e, e, r), t.Field_Field$string("Item status. Values: DRAFT, VOIDED, SENT", e, !1, e, !1, !1, "Status", "status", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !0, "Name", "name", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !0, "Category", "categoryName", e, e, e, r), t.Field_Field$string("Comma-joined product sub categories", e, !1, e, !1, !1, "Sub categories", "subCategories", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Product ID", "productId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.JSON_s, e, !1, e, !1, !1, "Custom attributes", "customAttributes", e, e, e, r), t.Field_Field$numeric(R.Item_q, e, !1, e, !1, "Quantity", "quantity", e, e, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !0, e, !1, "Unit quantity", "unitQuantity", e, e, e, r), t.Field_Field$numeric(e, e, !0, e, !1, "Per unit", "perXUnit", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Unit", "unit", e, e, e, r), t.Field_Field$numeric(R.Item_d, e, !1, e, !1, "Layer", "layer", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Parent ID", "parentId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Parent name", "parentName", e, e, e, r), t.Field_Field$string(R.ID_of_, e, !1, e, !1, !1, "Layer zero parent ID", "layerZeroParentId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(R.Valuesp, e, !0, e, !1, !1, "Addon type", "addonType", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "addonSelectionId", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "variantId", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Variant", "variantName", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Remark", "remark", e, e, e, r), t.Field_Field$bool(e, e, !1, e, !1, "Takeaway", "isTakeaway", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "takeawayId", e, e, e, r), t.Field_Field$string(e, e, !0, e, !1, !1, "Takeaway name", "takeawayName", e, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Served at", "servedAt", e, e, e, r), t.Field_Field$timestamp(e, e, !0, e, !1, "Collected at", "collectedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "User ID", "userId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$timestamp(R.Schedu, e, !1, e, !1, "Pickup time", "pickupAt", e, e, u.FIELD_ROLE_0, r)], d.JSArray_Field);
9978
9966
  },
9979
9967
  $signature: 0
9980
9968
  }, t.remotePickupOrderFlattenItemSchema_closure0.prototype = {
@@ -10149,7 +10137,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
10149
10137
  }, t.subItemSchema_closure.prototype = {
10150
10138
  call$1(r) {
10151
10139
  var e = null;
10152
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$timestamp(e, "@itemCreatedAt", !1, e, !1, "Bill time", "subItemCreatedAt", e, "@item_created_at", u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", "billCompletedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, "@parentId", !1, e, !1, !1, "Item ID", "itemId", e, "@parent_id", u.FIELD_ROLE_5, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", "isRefund", e, e, e, r), t.Field_Field$string(e, "@addonType", !1, e, !1, !1, "type", "type", e, "@addon_type", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$string(e, "@addonId", !1, e, !1, !1, "Selection ID", "selectionId", e, "@addon_id", u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", "quantity", e, T.x40quant, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Nett", "price", e, T.x40addon, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Layer", "layer", e, e, e, r)], d.JSArray_Field);
10140
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$timestamp(e, "@itemCreatedAt", !1, e, !1, "Bill time", "subItemCreatedAt", e, "@item_created_at", u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Bill close time", "billCompletedAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Bill ID", "billId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, "@parentId", !1, e, !1, !1, "Item ID", "itemId", e, "@parent_id", u.FIELD_ROLE_5, r), t.Field_Field$bool(e, e, !1, e, !1, "Refund", "isRefund", e, e, e, r), t.Field_Field$string(e, "@addonType", !1, e, !1, !1, "type", "type", e, "@addon_type", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Name", "name", e, e, e, r), t.Field_Field$string(e, "@addonId", !1, e, !1, !1, "Selection ID", "selectionId", e, "@addon_id", u.FIELD_ROLE_5, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, e, !1, "Qty", "quantity", e, R.x40quant, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, e, !1, "Nett", "price", e, R.x40addon, u.FIELD_ROLE_1, r), t.Field_Field$numeric(e, e, !1, e, !1, "Layer", "layer", e, e, e, r)], d.JSArray_Field);
10153
10141
  },
10154
10142
  $signature: 0
10155
10143
  }, t.subItemSchema_closure0.prototype = {
@@ -10195,7 +10183,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
10195
10183
  }, t.titleCollectionSchema_closure.prototype = {
10196
10184
  call$1(r) {
10197
10185
  var e = null;
10198
- return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Acquired time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Holds member.id, not the app user id", e, !1, e, !1, !1, "Member ID", "userId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "collectibleId", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Title", "titleName", e, "(select name from collectible_configs where collectible_configs.id=@collectible_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Expired time", "expiredAt", e, T.x28case_x40, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Is expired", "isExpired", e, T.CASE_Wx28, e, r)], d.JSArray_Field);
10186
+ return t._setArrayType([t.Field_Field$string(e, e, !1, e, !1, !1, "ID", "id", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "docId", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Acquired time", "createdAt", e, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !0, e, !1, e, "publishedAt", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string("Holds member.id, not the app user id", e, !1, e, !1, !1, "Member ID", "userId", e, e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !0, e, !1, !1, e, "collectibleId", e, e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Title", "titleName", e, "(select name from collectible_configs where collectible_configs.id=@collectible_id)", e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Code", "code", e, e, e, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Expired time", "expiredAt", e, R.x28case_x40, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, e, !1, e, !1, "Is expired", "isExpired", e, R.CASE_Wx28, e, r)], d.JSArray_Field);
10199
10187
  },
10200
10188
  $signature: 0
10201
10189
  }, t.titleCollectionSchema_closure0.prototype = {
@@ -10212,7 +10200,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
10212
10200
  }, t.tplOrderSchema_closure.prototype = {
10213
10201
  call$1(r) {
10214
10202
  var e = t.List_List$of(t._tplOrderFields(r), !0, d.Field);
10215
- return e.push(t.Field_Field$string(null, null, !1, "restaurantId", !1, !1, "Restaurant", "restaurantName", null, T.x28selecn, u.FIELD_ROLE_4, r)), e;
10203
+ return e.push(t.Field_Field$string(null, null, !1, "restaurantId", !1, !1, "Restaurant", "restaurantName", null, R.x28selecn, u.FIELD_ROLE_4, r)), e;
10216
10204
  },
10217
10205
  $signature: 0
10218
10206
  }, t.tplOrderSchema_closure0.prototype = {
@@ -10263,7 +10251,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
10263
10251
  }, t.voucherClaimSchema_closure.prototype = {
10264
10252
  call$1(r) {
10265
10253
  var e = null, n = "expiredAt", a = "redeemedAt", i = "appliedAt";
10266
- 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$timestamp(e, e, !1, e, !1, "Expired time", n, n, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", "voucher.business", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "restaurant", e, u.FIELD_ROLE_5, 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, "User ID", "userId", "user", e, u.FIELD_ROLE_5, 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, "Name", "name", "voucher.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Description", "description", "voucher.description", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "voucher.options.type", e, e, r), t.Field_Field$bool(e, "IF(@appliedAt IS NULL AND @expiredAt < CURRENT_TIMESTAMP(), true, false)", !1, e, !1, "Is expired", "isExpired", e, "CASE WHEN @applied_at IS NULL AND @expired_at < CURRENT_TIMESTAMP THEN true ELSE false END", e, r), t.Field_Field$numeric("Whether the claim stands expired as of now (1 or 0), not whether it expired inside the report window — it compares expired_at to the current time. Applied and expired are exclusive.", "IF(@appliedAt IS NULL AND @expiredAt < CURRENT_TIMESTAMP(), 1, 0)", !1, e, !1, "Expired count", "expiredCount", e, "CASE WHEN @applied_at IS NULL AND @expired_at < CURRENT_TIMESTAMP THEN 1 ELSE 0 END", u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Redeemed time", a, a, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", i, i, e, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, "IF(@appliedAt IS NOT NULL, true, false)", !1, e, !1, "Is applied", "isApplied", e, "CASE WHEN @applied_at IS NOT NULL THEN true ELSE false END", e, r), t.Field_Field$bool(e, "IF(@redeemedAt IS NOT NULL, true, false)", !1, e, !1, "Is redeemed", "isRedeemed", e, "CASE WHEN @redeemed_at IS NOT NULL THEN true ELSE false END", e, r), t.Field_Field$numeric(e, "IF(@appliedAt IS NOT NULL, 1, 0)", !0, e, !1, "Applied count", "appliedCount", e, "CASE WHEN @applied_at IS NOT NULL THEN 1 ELSE 0 END", e, r), t.Field_Field$numeric("Redemptions of this claim, counted per row from voucher_claim_redemption — a claim may be redeemed more than once, so this is not a 0/1 flag; is_redeemed only says whether it ever was.", e, !1, e, !1, "redeemed count", "redeemedCount", e, "(select count(*) from voucher_claim_redemptions where voucher_claim_id=@id)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Phone number", "phoneNumber", e, T.x28selecp, e, r)], d.JSArray_Field);
10254
+ 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$timestamp(e, e, !1, e, !1, "Expired time", n, n, e, u.FIELD_ROLE_0, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Business ID", "businessId", "voucher.business", e, u.FIELD_ROLE_5, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Restaurant ID", "restaurantId", "restaurant", e, u.FIELD_ROLE_5, 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, "User ID", "userId", "user", e, u.FIELD_ROLE_5, 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, "Name", "name", "voucher.name", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Description", "description", "voucher.description", e, e, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Source", "source", "voucher.options.type", e, e, r), t.Field_Field$bool(e, "IF(@appliedAt IS NULL AND @expiredAt < CURRENT_TIMESTAMP(), true, false)", !1, e, !1, "Is expired", "isExpired", e, "CASE WHEN @applied_at IS NULL AND @expired_at < CURRENT_TIMESTAMP THEN true ELSE false END", e, r), t.Field_Field$numeric("Whether the claim stands expired as of now (1 or 0), not whether it expired inside the report window — it compares expired_at to the current time. Applied and expired are exclusive.", "IF(@appliedAt IS NULL AND @expiredAt < CURRENT_TIMESTAMP(), 1, 0)", !1, e, !1, "Expired count", "expiredCount", e, "CASE WHEN @applied_at IS NULL AND @expired_at < CURRENT_TIMESTAMP THEN 1 ELSE 0 END", u.FIELD_ROLE_1, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Redeemed time", a, a, e, u.FIELD_ROLE_0, r), t.Field_Field$timestamp(e, e, !1, e, !1, "Applied time", i, i, e, u.FIELD_ROLE_0, r), t.Field_Field$bool(e, "IF(@appliedAt IS NOT NULL, true, false)", !1, e, !1, "Is applied", "isApplied", e, "CASE WHEN @applied_at IS NOT NULL THEN true ELSE false END", e, r), t.Field_Field$bool(e, "IF(@redeemedAt IS NOT NULL, true, false)", !1, e, !1, "Is redeemed", "isRedeemed", e, "CASE WHEN @redeemed_at IS NOT NULL THEN true ELSE false END", e, r), t.Field_Field$numeric(e, "IF(@appliedAt IS NOT NULL, 1, 0)", !0, e, !1, "Applied count", "appliedCount", e, "CASE WHEN @applied_at IS NOT NULL THEN 1 ELSE 0 END", e, r), t.Field_Field$numeric("Redemptions of this claim, counted per row from voucher_claim_redemption — a claim may be redeemed more than once, so this is not a 0/1 flag; is_redeemed only says whether it ever was.", e, !1, e, !1, "redeemed count", "redeemedCount", e, "(select count(*) from voucher_claim_redemptions where voucher_claim_id=@id)", u.FIELD_ROLE_1, r), t.Field_Field$string(e, e, !1, e, !1, !1, "Phone number", "phoneNumber", e, R.x28selecp, e, r)], d.JSArray_Field);
10267
10255
  },
10268
10256
  $signature: 0
10269
10257
  }, t.voucherClaimSchema_closure0.prototype = {
@@ -11080,7 +11068,7 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
11080
11068
  var e = a0.mixin, n = a0.inherit, a = a0.inheritMany;
11081
11069
  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.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.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_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, 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.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.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);
11082
11070
  }();
11083
- var C = {
11071
+ var L = {
11084
11072
  typeUniverse: { eC: /* @__PURE__ */ new Map(), tR: {}, eT: {}, tPV: {}, sEA: [] },
11085
11073
  mangledGlobalNames: { int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List" },
11086
11074
  mangledNames: {},
@@ -11089,8 +11077,8 @@ join restaurants r on r.id = t.rid) end)`, e, r)], d.JSArray_Field);
11089
11077
  leafTags: null,
11090
11078
  arrayRti: Symbol("$ti")
11091
11079
  };
11092
- t._Universe_addRules(C.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(C.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}'));
11093
- var T = {
11080
+ t._Universe_addRules(L.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(L.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}'));
11081
+ var R = {
11094
11082
  x28_grosT: "(@grossTotal-IFNULL(@takeawayPrice,0))*IF(@isRefund, -1, 1)",
11095
11083
  x28_gros_: "(@gross_total-COALESCE(@takeaway_price,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END",
11096
11084
  x28COALEb: "(COALESCE(@bill_adjustment_total,0)+COALESCE(@item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END",
@@ -11419,8 +11407,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
11419
11407
  return a.message;
11420
11408
  }
11421
11409
  }())), e(q, "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(q, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(u.Type_Object_xQ6)), e(q, "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(q, "_clockKey", "$get$_clockKey", () => new t.Object()), e(q, "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(q, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", q.$get$en_USSymbols())), n(q, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", u.Map_EQ6TW)), e(q, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(q, "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(q, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(q, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(q, "_availableLocales", "$get$_availableLocales", () => {
11422
- var a, i, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_1), c = 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), $ = t.EnLocale$(u.StartOfWeek_1), E = t.EsLocale$(u.StartOfWeek_2), g = t.EsLocale$(u.StartOfWeek_2), h = t.EsLocale$(u.StartOfWeek_1), R = t.FrLocale$(u.StartOfWeek_2), L = t.FrLocale$(u.StartOfWeek_2), W = t.FrLocale$(u.StartOfWeek_1), B = t.ZhCnLocale$(u.StartOfWeek_1), I = t.ZhCnLocale$(u.StartOfWeek_1), x = t.ZhLocale$(u.StartOfWeek_1), w = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), X = t.DeLocale$(u.StartOfWeek_2), K = t.DeLocale$(u.StartOfWeek_2), _0 = t.DeLocale$(u.StartOfWeek_2), d0 = t.ItLocale$(u.StartOfWeek_2), z0 = t.ItLocale$(u.StartOfWeek_2), y0 = t.ArLyLocale$(!0, u.StartOfWeek_0), q0 = t.ArLyLocale$(!1, u.StartOfWeek_0), e0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), W0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), h0 = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), N0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
11423
- 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", c, "en_ca", M, "en_gb", b, "en_ie", O, "en_il", D, "en_nz", $, "es", E, "es_do", g, "es_us", h, "fr", R, "fr_ch", L, "fr_ca", W, "zh", B, "zh_cn", I, "zh_hk", x, "zh_tw", w, "de", v, "de_de", X, "de_at", K, "de_ch", _0, "it", d0, "it_ch", z0, "ar", y0, "ar_ly", q0, "ar_dz", e0, "ar_kw", W0, "ar_sa", h0, "ar_ma", N0, "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"));
11410
+ var a, i, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_1), c = 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), $ = t.EnLocale$(u.StartOfWeek_1), E = t.EsLocale$(u.StartOfWeek_2), g = t.EsLocale$(u.StartOfWeek_2), h = t.EsLocale$(u.StartOfWeek_1), T = t.FrLocale$(u.StartOfWeek_2), F = t.FrLocale$(u.StartOfWeek_2), W = t.FrLocale$(u.StartOfWeek_1), B = t.ZhCnLocale$(u.StartOfWeek_1), I = t.ZhCnLocale$(u.StartOfWeek_1), x = t.ZhLocale$(u.StartOfWeek_1), w = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), X = t.DeLocale$(u.StartOfWeek_2), K = t.DeLocale$(u.StartOfWeek_2), _0 = t.DeLocale$(u.StartOfWeek_2), d0 = t.ItLocale$(u.StartOfWeek_2), z0 = t.ItLocale$(u.StartOfWeek_2), y0 = t.ArLyLocale$(!0, u.StartOfWeek_0), q0 = t.ArLyLocale$(!1, u.StartOfWeek_0), e0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), W0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), h0 = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), N0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
11411
+ 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", c, "en_ca", M, "en_gb", b, "en_ie", O, "en_il", D, "en_nz", $, "es", E, "es_do", g, "es_us", h, "fr", T, "fr_ch", F, "fr_ca", W, "zh", B, "zh_cn", I, "zh_hk", x, "zh_tw", w, "de", v, "de_de", X, "de_at", K, "de_ch", _0, "it", d0, "it_ch", z0, "ar", y0, "ar_ly", q0, "ar_dz", e0, "ar_kw", W0, "ar_sa", h0, "ar_ma", N0, "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"));
11424
11412
  }), e(q, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
11425
11413
  var a = "createdAt", i = null, s = t.Source_Source$couchdb("", ""), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], d.JSArray_Permission), a);
11426
11414
  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.", i, 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, "", "", !0, s, l);
@@ -11584,13 +11572,13 @@ where name = 'PAYMENT VOUCHER'
11584
11572
  var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryFulfillments", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), c = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["created_at"], c), s, s, s), t.Index$(t._setArrayType(["effective_at"], c), s, s, s), t.Index$(t._setArrayType(["location_id"], c), s, s, s)], d.JSArray_Index);
11585
11573
  return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], c), s, s, new t.internalPurchaseOrderDeliveryFulfillmentSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0(), "Purchase order delivery fulfillment", "purchase_order_delivery_fulfillments", "purchase_order_delivery_fulfillment", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_39, i, a, a, !0, l, p);
11586
11574
  }), e(q, "internalPurchaseOrderDeliveryFulfillmentSkuSchema", "$get$internalPurchaseOrderDeliveryFulfillmentSkuSchema", () => {
11587
- var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryFulfillmentSkus", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), c = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["created_at"], c), s, s, s), t.Index$(t._setArrayType(["effective_at"], c), s, s, s), t.Index$(t._setArrayType(["location_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_delivery_fulfillment_id"], c), T.idx_pof, s, s), t.Index$(t._setArrayType(["published_at"], c), s, s, s)], d.JSArray_Index);
11575
+ var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryFulfillmentSkus", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), c = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["created_at"], c), s, s, s), t.Index$(t._setArrayType(["effective_at"], c), s, s, s), t.Index$(t._setArrayType(["location_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_delivery_fulfillment_id"], c), R.idx_pof, s, s), t.Index$(t._setArrayType(["published_at"], c), s, s, s)], d.JSArray_Index);
11588
11576
  return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], c), s, s, new t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0(), "Purchase order delivery fulfillment sku", "purchase_order_delivery_fulfillment_skus", "purchase_order_delivery_fulfillment_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_41, i, a, a, !0, l, p);
11589
11577
  }), e(q, "internalPurchaseOrderDeliveryOrderSchema", "$get$internalPurchaseOrderDeliveryOrderSchema", () => {
11590
11578
  var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryOrders", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), c = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["created_at"], c), s, s, s), t.Index$(t._setArrayType(["effective_at"], c), s, s, s), t.Index$(t._setArrayType(["location_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_id", "location_id"], c), "idx_podo_poidlid_index", s, s)], d.JSArray_Index);
11591
11579
  return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], c), s, s, new t.internalPurchaseOrderDeliveryOrderSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryOrderSchema_closure0(), "Purchase order delivery order", "purchase_order_delivery_orders", "purchase_order_delivery_order", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_38, i, a, a, !0, l, p);
11592
11580
  }), e(q, "internalPurchaseOrderDeliveryOrderSkuSchema", "$get$internalPurchaseOrderDeliveryOrderSkuSchema", () => {
11593
- var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryOrderSkus", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), c = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["created_at"], c), s, s, s), t.Index$(t._setArrayType(["effective_at"], c), s, s, s), t.Index$(t._setArrayType(["location_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_delivery_order_id"], c), T.idx_poo, s, s), t.Index$(t._setArrayType(["published_at"], c), s, s, s)], d.JSArray_Index);
11581
+ var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("deliveryOrderSkus", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), c = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["created_at"], c), s, s, s), t.Index$(t._setArrayType(["effective_at"], c), s, s, s), t.Index$(t._setArrayType(["location_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_delivery_order_id"], c), R.idx_poo, s, s), t.Index$(t._setArrayType(["published_at"], c), s, s, s)], d.JSArray_Index);
11594
11582
  return t.Schema_Schema$build(!1, s, u.List_empty, 3, s, t._setArrayType(["restaurantId"], c), s, s, new t.internalPurchaseOrderDeliveryOrderSkuSchema_closure(), u.List_empty0, s, M, s, !0, !0, !1, !1, !1, !0, new t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0(), "Purchase order delivery order sku", "purchase_order_delivery_order_skus", "purchase_order_delivery_order_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_40, i, a, a, !0, l, p);
11595
11583
  }), e(q, "internalPurchaseOrderItemSchema", "$get$internalPurchaseOrderItemSchema", () => {
11596
11584
  var a = "couchdb_purchase_order", i = "createdAt", s = null, l = t.Source_Source$couchdb("items", "purchaseOrder"), p = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), i), c = d.JSArray_String, M = t._setArrayType([t.Index$(t._setArrayType(["id"], c), s, s, s), t.Index$(t._setArrayType(["doc_id"], c), s, s, s), t.Index$(t._setArrayType(["created_at"], c), s, s, s), t.Index$(t._setArrayType(["effective_at"], c), s, s, s), t.Index$(t._setArrayType(["purchase_order_id"], c), s, s, s), t.Index$(t._setArrayType(["location_id"], c), s, s, s), t.Index$(t._setArrayType(["published_at"], c), s, s, s)], d.JSArray_Index);
@@ -11802,13 +11790,13 @@ join my_e_invoice_documents d on d.document_id = sd.document_id
11802
11790
  var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryFulfillments", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i)], d.JSArray_Index);
11803
11791
  return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per fulfillment entry on a purchase order, carrying no quantity or cost of its own; its SKU lines are in purchase_order_delivery_fulfillment_sku. Goods actually received are the delivery order tables, not these. Time control is effective_at, taken from the purchase order.", i, new t.purchaseOrderDeliveryFulfillmentSchema_closure(), u.List_empty0, i, c, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryFulfillmentSchema_closure0(), "Purchase order delivery fulfillment", "purchase_order_delivery_fulfillments", "purchase_order_delivery_fulfillment", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_33, "createdAt", a, a, !0, s, l);
11804
11792
  }), e(q, "purchaseOrderDeliveryFulfillmentSkuSchema", "$get$purchaseOrderDeliveryFulfillmentSkuSchema", () => {
11805
- var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryFulfillmentSkus", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_delivery_fulfillment_id"], p), T.idx_pof, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index);
11793
+ var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryFulfillmentSkus", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_delivery_fulfillment_id"], p), R.idx_pof, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index);
11806
11794
  return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per SKU line on a purchase order fulfillment: quantity in the SKU base unit, and no cost column — the delivery order SKU line is the one that carries cost. Time control is effective_at, taken from the purchase order.", i, new t.purchaseOrderDeliveryFulfillmentSkuSchema_closure(), u.List_empty0, i, c, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0(), "Purchase order delivery fulfillment sku", "purchase_order_delivery_fulfillment_skus", "purchase_order_delivery_fulfillment_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_35, "createdAt", a, a, !0, s, l);
11807
11795
  }), e(q, "purchaseOrderDeliveryOrderSchema", "$get$purchaseOrderDeliveryOrderSchema", () => {
11808
11796
  var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryOrders", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id", "location_id"], p), "idx_podo_poidlid_index", i, i)], d.JSArray_Index);
11809
11797
  return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per delivery received against a purchase order, with its delivery order number and who recorded it; a purchase order with one of these reads as partially received. The SKU lines and quantities are in purchase_order_delivery_order_sku, and purchase_order_item.received_quantity already sums them per order line. Time control is effective_at, taken from the purchase order, so every delivery of one order shares it; created_at is when the delivery itself was entered.", i, new t.purchaseOrderDeliveryOrderSchema_closure(), u.List_empty0, i, c, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryOrderSchema_closure0(), "Purchase order delivery order", "purchase_order_delivery_orders", "purchase_order_delivery_order", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_32, "createdAt", a, a, !0, s, l);
11810
11798
  }), e(q, "purchaseOrderDeliveryOrderSkuSchema", "$get$purchaseOrderDeliveryOrderSkuSchema", () => {
11811
- var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryOrderSkus", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_delivery_order_id"], p), T.idx_poo, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index);
11799
+ var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("deliveryOrderSkus", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_delivery_order_id"], p), R.idx_poo, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index);
11812
11800
  return t.Schema_Schema$build(!1, "inventory", u.List_empty, 3, i, t._setArrayType(["restaurantId"], p), "One row per SKU line on a delivery received against a purchase order: quantity in the SKU base unit and the cost recorded for it. Answers what arrived per SKU per delivery; purchase_order_item.received_quantity is the same quantity already summed per order line. Time control is effective_at, taken from the purchase order.", i, new t.purchaseOrderDeliveryOrderSkuSchema_closure(), u.List_empty0, i, c, i, !0, !1, !1, !1, !1, !1, new t.purchaseOrderDeliveryOrderSkuSchema_closure0(), "Purchase order delivery order sku", "purchase_order_delivery_order_skus", "purchase_order_delivery_order_sku", u.MERGE_FILTER_TYPE_1, u.SCHEMA_NAME_34, "createdAt", a, a, !0, s, l);
11813
11801
  }), e(q, "purchaseOrderItemSchema", "$get$purchaseOrderItemSchema", () => {
11814
11802
  var a = "couchdb_purchase_order", i = null, s = t.Source_Source$couchdb("items", "purchaseOrder"), l = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId"), t.Permission_Permission$warehouse("warehouseId")], d.JSArray_Permission), "effectiveAt"), p = d.JSArray_String, c = t._setArrayType([t.Index$(t._setArrayType(["id"], p), i, i, i), t.Index$(t._setArrayType(["doc_id"], p), i, i, i), t.Index$(t._setArrayType(["created_at"], p), i, i, i), t.Index$(t._setArrayType(["effective_at"], p), i, i, i), t.Index$(t._setArrayType(["purchase_order_id"], p), i, i, i), t.Index$(t._setArrayType(["location_id"], p), i, i, i), t.Index$(t._setArrayType(["published_at"], p), i, i, i)], d.JSArray_Index), M = t._setArrayType(["restaurantId"], p);
@@ -12116,17 +12104,17 @@ GROUP BY
12116
12104
  var c = {};
12117
12105
  return c[p] = 1, Object.keys(a0.convertToFastObject(c))[0];
12118
12106
  };
12119
- C.getIsolateTag = function(p) {
12120
- return e("___dart_" + p + C.isolateTag);
12107
+ L.getIsolateTag = function(p) {
12108
+ return e("___dart_" + p + L.isolateTag);
12121
12109
  };
12122
12110
  for (var n = "___dart_isolate_tags_", a = Object[n] || (Object[n] = /* @__PURE__ */ Object.create(null)), i = "_ZxYxX", s = 0; ; s++) {
12123
12111
  var l = e(i + "_" + s + "_");
12124
12112
  if (!(l in a)) {
12125
- a[l] = 1, C.isolateTag = l;
12113
+ a[l] = 1, L.isolateTag = l;
12126
12114
  break;
12127
12115
  }
12128
12116
  }
12129
- C.dispatchPropertyName = C.getIsolateTag("dispatch_record");
12117
+ L.dispatchPropertyName = L.getIsolateTag("dispatch_record");
12130
12118
  })(), a0.setOrUpdateInterceptorsByTag({ ArrayBuffer: o.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), a0.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";
12131
12119
  }(), Function.prototype.call$1 = function(r) {
12132
12120
  return this(r);
@@ -12162,7 +12150,7 @@ GROUP BY
12162
12150
  for (var a = 0; a < e.length; ++a)
12163
12151
  e[a].addEventListener("load", n, !1);
12164
12152
  }(function(r) {
12165
- C.currentScript = r;
12153
+ L.currentScript = r;
12166
12154
  var e = t.main;
12167
12155
  typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
12168
12156
  });
@@ -12173,23 +12161,23 @@ var Ar = Or, Ot = {};
12173
12161
  (function(_) {
12174
12162
  _.load = function(A, f) {
12175
12163
  var y = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), m = y ? Object.create(globalThis) : globalThis;
12176
- if (m.scheduleImmediate = typeof setImmediate < "u" ? function(F) {
12177
- setImmediate(F);
12178
- } : function(F) {
12179
- setTimeout(F, 0);
12164
+ if (m.scheduleImmediate = typeof setImmediate < "u" ? function(C) {
12165
+ setImmediate(C);
12166
+ } : function(C) {
12167
+ setTimeout(C, 0);
12180
12168
  }, m.exports = f || _, typeof process < "u" && (m.process = process), typeof __dirname < "u" && (m.__dirname = __dirname), typeof __filename < "u" && (m.__filename = __filename), typeof Buffer < "u" && (m.Buffer = Buffer), y) {
12181
12169
  var S = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : bt)("url");
12182
12170
  Object.defineProperty(m, "location", {
12183
12171
  value: {
12184
12172
  get href() {
12185
12173
  return S.pathToFileURL ? S.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
12186
- var F = process.cwd();
12187
- return process.platform != "win32" ? F : "/" + F.replace(/\\/g, "/");
12174
+ var C = process.cwd();
12175
+ return process.platform != "win32" ? C : "/" + C.replace(/\\/g, "/");
12188
12176
  }() + "/";
12189
12177
  }
12190
12178
  }
12191
12179
  }), function() {
12192
- function F() {
12180
+ function C() {
12193
12181
  try {
12194
12182
  throw new Error();
12195
12183
  } catch (Z) {
@@ -12205,13 +12193,13 @@ var Ar = Or, Ot = {};
12205
12193
  Object.defineProperty(m, "document", {
12206
12194
  value: {
12207
12195
  get currentScript() {
12208
- return N == null && (N = { src: F() }), N;
12196
+ return N == null && (N = { src: C() }), N;
12209
12197
  }
12210
12198
  }
12211
12199
  });
12212
- }(), m.dartDeferredLibraryLoader = function(F, N, P) {
12200
+ }(), m.dartDeferredLibraryLoader = function(C, N, P) {
12213
12201
  try {
12214
- load(F), N();
12202
+ load(C), N();
12215
12203
  } catch (J) {
12216
12204
  P(J);
12217
12205
  }
@@ -12348,23 +12336,23 @@ var Ar = Or, Ot = {};
12348
12336
  e[n] = D;
12349
12337
  }
12350
12338
  function m0(e) {
12351
- var n = T.interceptorsByTag;
12339
+ var n = R.interceptorsByTag;
12352
12340
  if (!n) {
12353
- T.interceptorsByTag = e;
12341
+ R.interceptorsByTag = e;
12354
12342
  return;
12355
12343
  }
12356
12344
  N(e, n);
12357
12345
  }
12358
12346
  function b0(e) {
12359
- var n = T.leafTags;
12347
+ var n = R.leafTags;
12360
12348
  if (!n) {
12361
- T.leafTags = e;
12349
+ R.leafTags = e;
12362
12350
  return;
12363
12351
  }
12364
12352
  N(e, n);
12365
12353
  }
12366
12354
  function p0(e) {
12367
- var n = T.types, a = n.length;
12355
+ var n = R.types, a = n.length;
12368
12356
  return n.push.apply(n, e), a;
12369
12357
  }
12370
12358
  function a0(e, n) {
@@ -12385,7 +12373,7 @@ var Ar = Or, Ot = {};
12385
12373
  JS_CONST: function() {
12386
12374
  },
12387
12375
  createSentinel() {
12388
- return C;
12376
+ return L;
12389
12377
  },
12390
12378
  LateError$fieldNI(e) {
12391
12379
  return new o.LateError("Field '" + e + "' has not been initialized.");
@@ -12430,8 +12418,8 @@ var Ar = Or, Ot = {};
12430
12418
  }
12431
12419
  },
12432
12420
  Sort__dualPivotQuicksort(e, n, a, i) {
12433
- var s, l, p, c, M, b, O, D, $, E, g = z.JSInt_methods._tdivFast$1(a - n + 1, 6), h = n + g, R = a - g, L = z.JSInt_methods._tdivFast$1(n + a, 2), W = L - g, B = L + g, I = u.getInterceptor$asx(e), x = I.$index(e, h), w = I.$index(e, W), v = I.$index(e, L), X = I.$index(e, B), K = I.$index(e, R);
12434
- if (i.call$2(x, w) > 0 && (s = w, w = x, x = s), i.call$2(X, K) > 0 && (s = K, K = X, X = s), i.call$2(x, v) > 0 && (s = v, v = x, x = s), i.call$2(w, v) > 0 && (s = v, v = w, w = s), i.call$2(x, X) > 0 && (s = X, X = x, x = s), i.call$2(v, X) > 0 && (s = X, X = v, v = s), i.call$2(w, K) > 0 && (s = K, K = w, w = s), i.call$2(w, v) > 0 && (s = v, v = w, w = s), i.call$2(X, K) > 0 && (s = K, K = X, X = s), I.$indexSet(e, h, x), I.$indexSet(e, L, v), I.$indexSet(e, R, K), I.$indexSet(e, W, I.$index(e, n)), I.$indexSet(e, B, I.$index(e, a)), l = n + 1, p = a - 1, u.$eq$(i.call$2(w, X), 0)) {
12421
+ var s, l, p, c, M, b, O, D, $, E, g = z.JSInt_methods._tdivFast$1(a - n + 1, 6), h = n + g, T = a - g, F = z.JSInt_methods._tdivFast$1(n + a, 2), W = F - g, B = F + g, I = u.getInterceptor$asx(e), x = I.$index(e, h), w = I.$index(e, W), v = I.$index(e, F), X = I.$index(e, B), K = I.$index(e, T);
12422
+ if (i.call$2(x, w) > 0 && (s = w, w = x, x = s), i.call$2(X, K) > 0 && (s = K, K = X, X = s), i.call$2(x, v) > 0 && (s = v, v = x, x = s), i.call$2(w, v) > 0 && (s = v, v = w, w = s), i.call$2(x, X) > 0 && (s = X, X = x, x = s), i.call$2(v, X) > 0 && (s = X, X = v, v = s), i.call$2(w, K) > 0 && (s = K, K = w, w = s), i.call$2(w, v) > 0 && (s = v, v = w, w = s), i.call$2(X, K) > 0 && (s = K, K = X, X = s), I.$indexSet(e, h, x), I.$indexSet(e, F, v), I.$indexSet(e, T, K), I.$indexSet(e, W, I.$index(e, n)), I.$indexSet(e, B, I.$index(e, a)), l = n + 1, p = a - 1, u.$eq$(i.call$2(w, X), 0)) {
12435
12423
  for (c = l; c <= p; ++c)
12436
12424
  if (M = I.$index(e, c), b = i.call$2(M, w), b !== 0)
12437
12425
  if (b < 0)
@@ -12466,7 +12454,7 @@ var Ar = Or, Ot = {};
12466
12454
  $ = !1;
12467
12455
  }
12468
12456
  if (E = l - 1, I.$indexSet(e, n, I.$index(e, E)), I.$indexSet(e, E, w), E = p + 1, I.$indexSet(e, a, I.$index(e, E)), I.$indexSet(e, E, X), o.Sort__doSort(e, n, l - 2, i), o.Sort__doSort(e, p + 2, a, i), !$)
12469
- if (l < h && p > R) {
12457
+ if (l < h && p > T) {
12470
12458
  for (; u.$eq$(i.call$2(I.$index(e, l), w), 0); )
12471
12459
  ++l;
12472
12460
  for (; u.$eq$(i.call$2(I.$index(e, p), X), 0); )
@@ -12561,7 +12549,7 @@ var Ar = Or, Ot = {};
12561
12549
  throw o.wrapException(o.UnsupportedError$("Cannot modify unmodifiable Map"));
12562
12550
  },
12563
12551
  unminifyOrTag(e) {
12564
- var n = T.mangledGlobalNames[e];
12552
+ var n = R.mangledGlobalNames[e];
12565
12553
  return n ?? e;
12566
12554
  },
12567
12555
  isJsIndexable(e, n) {
@@ -12586,8 +12574,8 @@ var Ar = Or, Ot = {};
12586
12574
  return n = u.toString$0$(e), n;
12587
12575
  },
12588
12576
  Primitives_objectHashCode(e) {
12589
- var n, a = C.Primitives__identityHashCodeProperty;
12590
- return a == null && (a = C.Primitives__identityHashCodeProperty = Symbol("identityHashCode")), n = e[a], n == null && (n = Math.random() * 1073741823 | 0, e[a] = n), n;
12577
+ var n, a = L.Primitives__identityHashCodeProperty;
12578
+ return a == null && (a = L.Primitives__identityHashCodeProperty = Symbol("identityHashCode")), n = e[a], n == null && (n = Math.random() * 1073741823 | 0, e[a] = n), n;
12591
12579
  },
12592
12580
  Primitives_parseInt(e, n) {
12593
12581
  var a, i = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(e);
@@ -12723,14 +12711,14 @@ var Ar = Or, Ot = {};
12723
12711
  return o.Primitives__generalApplyFunction(e, n, a);
12724
12712
  },
12725
12713
  Primitives__generalApplyFunction(e, n, a) {
12726
- var i, s, l, p, c, M, b, O, D, $, E, g, h = Array.isArray(n) ? n : o.List_List$of(n, !0, r.dynamic), R = h.length, L = e.$requiredArgCount;
12727
- if (R < L)
12714
+ var i, s, l, p, c, M, b, O, D, $, E, g, h = Array.isArray(n) ? n : o.List_List$of(n, !0, r.dynamic), T = h.length, F = e.$requiredArgCount;
12715
+ if (T < F)
12728
12716
  return o.Primitives_functionNoSuchMethod(e, h, a);
12729
12717
  if (i = e.$defaultValues, s = i == null, l = s ? null : i(), p = u.getInterceptor$(e), c = p["call*"], typeof c == "string" && (c = p[c]), s)
12730
- return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : R === L ? c.apply(e, h) : o.Primitives_functionNoSuchMethod(e, h, a);
12718
+ return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : T === F ? c.apply(e, h) : o.Primitives_functionNoSuchMethod(e, h, a);
12731
12719
  if (Array.isArray(l))
12732
- return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : (M = L + l.length, R > M ? o.Primitives_functionNoSuchMethod(e, h, null) : (R < M && (b = l.slice(R - L), h === n && (h = o.List_List$of(h, !0, r.dynamic)), z.JSArray_methods.addAll$1(h, b)), c.apply(e, h)));
12733
- if (R > L)
12720
+ return a != null && a.__js_helper$_length !== 0 ? o.Primitives_functionNoSuchMethod(e, h, a) : (M = F + l.length, T > M ? o.Primitives_functionNoSuchMethod(e, h, null) : (T < M && (b = l.slice(T - F), h === n && (h = o.List_List$of(h, !0, r.dynamic)), z.JSArray_methods.addAll$1(h, b)), c.apply(e, h)));
12721
+ if (T > F)
12734
12722
  return o.Primitives_functionNoSuchMethod(e, h, a);
12735
12723
  if (h === n && (h = o.List_List$of(h, !0, r.dynamic)), O = Object.keys(l), a == null)
12736
12724
  for (s = O.length, D = 0; D < O.length; O.length === s || (0, o.throwConcurrentModificationError)(O), ++D) {
@@ -12820,9 +12808,9 @@ var Ar = Or, Ot = {};
12820
12808
  case 5007:
12821
12809
  return s = o.S(n), o.saveStackTrace(e, new o.NullError(s + " (Error " + i + ")", h));
12822
12810
  }
12823
- return e instanceof TypeError ? (l = C.$get$TypeErrorDecoder_noSuchMethodPattern(), p = C.$get$TypeErrorDecoder_notClosurePattern(), c = C.$get$TypeErrorDecoder_nullCallPattern(), M = C.$get$TypeErrorDecoder_nullLiteralCallPattern(), b = C.$get$TypeErrorDecoder_undefinedCallPattern(), O = C.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), D = C.$get$TypeErrorDecoder_nullPropertyPattern(), C.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), $ = C.$get$TypeErrorDecoder_undefinedPropertyPattern(), E = C.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), g = l.matchTypeError$1(n), g != null ? o.saveStackTrace(e, o.JsNoSuchMethodError$(n, g)) : (g = p.matchTypeError$1(n), g != null ? (g.method = "call", o.saveStackTrace(e, o.JsNoSuchMethodError$(n, g))) : (g = c.matchTypeError$1(n), g == null ? (g = M.matchTypeError$1(n), g == null ? (g = b.matchTypeError$1(n), g == null ? (g = O.matchTypeError$1(n), g == null ? (g = D.matchTypeError$1(n), g == null ? (g = M.matchTypeError$1(n), g == null ? (g = $.matchTypeError$1(n), g == null ? (g = E.matchTypeError$1(n), s = g != null) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0, s ? o.saveStackTrace(e, new o.NullError(n, g == null ? h : g.method)) : o.saveStackTrace(e, new o.UnknownJsTypeError(typeof n == "string" ? n : ""))))) : e instanceof RangeError ? typeof n == "string" && n.indexOf("call stack") !== -1 ? new o.StackOverflowError() : (n = function(R) {
12811
+ return e instanceof TypeError ? (l = L.$get$TypeErrorDecoder_noSuchMethodPattern(), p = L.$get$TypeErrorDecoder_notClosurePattern(), c = L.$get$TypeErrorDecoder_nullCallPattern(), M = L.$get$TypeErrorDecoder_nullLiteralCallPattern(), b = L.$get$TypeErrorDecoder_undefinedCallPattern(), O = L.$get$TypeErrorDecoder_undefinedLiteralCallPattern(), D = L.$get$TypeErrorDecoder_nullPropertyPattern(), L.$get$TypeErrorDecoder_nullLiteralPropertyPattern(), $ = L.$get$TypeErrorDecoder_undefinedPropertyPattern(), E = L.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern(), g = l.matchTypeError$1(n), g != null ? o.saveStackTrace(e, o.JsNoSuchMethodError$(n, g)) : (g = p.matchTypeError$1(n), g != null ? (g.method = "call", o.saveStackTrace(e, o.JsNoSuchMethodError$(n, g))) : (g = c.matchTypeError$1(n), g == null ? (g = M.matchTypeError$1(n), g == null ? (g = b.matchTypeError$1(n), g == null ? (g = O.matchTypeError$1(n), g == null ? (g = D.matchTypeError$1(n), g == null ? (g = M.matchTypeError$1(n), g == null ? (g = $.matchTypeError$1(n), g == null ? (g = E.matchTypeError$1(n), s = g != null) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0) : s = !0, s ? o.saveStackTrace(e, new o.NullError(n, g == null ? h : g.method)) : o.saveStackTrace(e, new o.UnknownJsTypeError(typeof n == "string" ? n : ""))))) : e instanceof RangeError ? typeof n == "string" && n.indexOf("call stack") !== -1 ? new o.StackOverflowError() : (n = function(T) {
12824
12812
  try {
12825
- return String(R);
12813
+ return String(T);
12826
12814
  } catch {
12827
12815
  }
12828
12816
  return null;
@@ -12838,13 +12826,13 @@ var Ar = Or, Ot = {};
12838
12826
  return n;
12839
12827
  },
12840
12828
  Closure_fromTearOff(e) {
12841
- var n, a, i, s, l, p, c, M, b, O, D = e.co, $ = e.iS, E = e.iI, g = e.nDA, h = e.aI, R = e.fs, L = e.cs, W = R[0], B = L[0], I = D[W], x = e.fT;
12829
+ var n, a, i, s, l, p, c, M, b, O, D = e.co, $ = e.iS, E = e.iI, g = e.nDA, h = e.aI, T = e.fs, F = e.cs, W = T[0], B = F[0], I = D[W], x = e.fT;
12842
12830
  for (x.toString, n = Object.create($ ? new o.StaticClosure().constructor.prototype : new o.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, $ ? a = function() {
12843
12831
  this.$initialize();
12844
12832
  } : a = function(v, X) {
12845
12833
  this.$initialize(v, X);
12846
- }, n.constructor = a, a.prototype = n, n.$_name = W, n.$_target = I, i = !$, i ? s = o.Closure_forwardCallTo(W, I, E, g) : (n.$static_name = W, s = I), n.$signature = o.Closure__computeSignatureFunctionNewRti(x, $, E), n[B] = s, l = s, p = 1; p < R.length; ++p)
12847
- c = R[p], typeof c == "string" ? (M = D[c], b = c, c = M) : b = "", O = L[p], O != null && (i && (c = o.Closure_forwardCallTo(b, c, E, g)), n[O] = c), p === h && (l = c);
12834
+ }, n.constructor = a, a.prototype = n, n.$_name = W, n.$_target = I, i = !$, i ? s = o.Closure_forwardCallTo(W, I, E, g) : (n.$static_name = W, s = I), n.$signature = o.Closure__computeSignatureFunctionNewRti(x, $, E), n[B] = s, l = s, p = 1; p < T.length; ++p)
12835
+ c = T[p], typeof c == "string" ? (M = D[c], b = c, c = M) : b = "", O = F[p], O != null && (i && (c = o.Closure_forwardCallTo(b, c, E, g)), n[O] = c), p === h && (l = c);
12848
12836
  return n["call*"] = l, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, a;
12849
12837
  },
12850
12838
  Closure__computeSignatureFunctionNewRti(e, n, a) {
@@ -12964,13 +12952,13 @@ var Ar = Or, Ot = {};
12964
12952
  },
12965
12953
  Closure_forwardInterceptedCallTo(e, n, a) {
12966
12954
  var i, s;
12967
- return C.BoundClosure__interceptorFieldNameCache == null && (C.BoundClosure__interceptorFieldNameCache = o.BoundClosure__computeFieldNamed("interceptor")), C.BoundClosure__receiverFieldNameCache == null && (C.BoundClosure__receiverFieldNameCache = o.BoundClosure__computeFieldNamed("receiver")), i = n.length, s = o.Closure_cspForwardInterceptedCall(i, a, e, n), s;
12955
+ return L.BoundClosure__interceptorFieldNameCache == null && (L.BoundClosure__interceptorFieldNameCache = o.BoundClosure__computeFieldNamed("interceptor")), L.BoundClosure__receiverFieldNameCache == null && (L.BoundClosure__receiverFieldNameCache = o.BoundClosure__computeFieldNamed("receiver")), i = n.length, s = o.Closure_cspForwardInterceptedCall(i, a, e, n), s;
12968
12956
  },
12969
12957
  closureFromTearOff(e) {
12970
12958
  return o.Closure_fromTearOff(e);
12971
12959
  },
12972
12960
  BoundClosure_evalRecipe(e, n) {
12973
- return o._Universe_evalInEnvironment(T.typeUniverse, o.instanceType(e._receiver), n);
12961
+ return o._Universe_evalInEnvironment(R.typeUniverse, o.instanceType(e._receiver), n);
12974
12962
  },
12975
12963
  BoundClosure_receiverOf(e) {
12976
12964
  return e._receiver;
@@ -12989,58 +12977,58 @@ var Ar = Or, Ot = {};
12989
12977
  throw o.wrapException(new o.CyclicInitializationError(e));
12990
12978
  },
12991
12979
  getIsolateAffinityTag(e) {
12992
- return T.getIsolateTag(e);
12980
+ return R.getIsolateTag(e);
12993
12981
  },
12994
12982
  defineProperty(e, n, a) {
12995
12983
  Object.defineProperty(e, n, { value: a, enumerable: !1, writable: !0, configurable: !0 });
12996
12984
  },
12997
12985
  lookupAndCacheInterceptor(e) {
12998
- var n, a, i, s, l, p = C.getTagFunction.call$1(e), c = C.dispatchRecordsForInstanceTags[p];
12986
+ var n, a, i, s, l, p = L.getTagFunction.call$1(e), c = L.dispatchRecordsForInstanceTags[p];
12999
12987
  if (c != null)
13000
- return Object.defineProperty(e, T.dispatchPropertyName, { value: c, enumerable: !1, writable: !0, configurable: !0 }), c.i;
13001
- if (n = C.interceptorsForUncacheableTags[p], n != null)
12988
+ return Object.defineProperty(e, R.dispatchPropertyName, { value: c, enumerable: !1, writable: !0, configurable: !0 }), c.i;
12989
+ if (n = L.interceptorsForUncacheableTags[p], n != null)
13002
12990
  return n;
13003
- if (a = T.interceptorsByTag[p], a == null && (i = C.alternateTagFunction.call$2(e, p), i != null)) {
13004
- if (c = C.dispatchRecordsForInstanceTags[i], c != null)
13005
- return Object.defineProperty(e, T.dispatchPropertyName, { value: c, enumerable: !1, writable: !0, configurable: !0 }), c.i;
13006
- if (n = C.interceptorsForUncacheableTags[i], n != null)
12991
+ if (a = R.interceptorsByTag[p], a == null && (i = L.alternateTagFunction.call$2(e, p), i != null)) {
12992
+ if (c = L.dispatchRecordsForInstanceTags[i], c != null)
12993
+ return Object.defineProperty(e, R.dispatchPropertyName, { value: c, enumerable: !1, writable: !0, configurable: !0 }), c.i;
12994
+ if (n = L.interceptorsForUncacheableTags[i], n != null)
13007
12995
  return n;
13008
- a = T.interceptorsByTag[i], p = i;
12996
+ a = R.interceptorsByTag[i], p = i;
13009
12997
  }
13010
12998
  if (a == null)
13011
12999
  return null;
13012
13000
  if (n = a.prototype, s = p[0], s === "!")
13013
- return c = o.makeLeafDispatchRecord(n), C.dispatchRecordsForInstanceTags[p] = c, Object.defineProperty(e, T.dispatchPropertyName, { value: c, enumerable: !1, writable: !0, configurable: !0 }), c.i;
13001
+ return c = o.makeLeafDispatchRecord(n), L.dispatchRecordsForInstanceTags[p] = c, Object.defineProperty(e, R.dispatchPropertyName, { value: c, enumerable: !1, writable: !0, configurable: !0 }), c.i;
13014
13002
  if (s === "~")
13015
- return C.interceptorsForUncacheableTags[p] = n, n;
13003
+ return L.interceptorsForUncacheableTags[p] = n, n;
13016
13004
  if (s === "-")
13017
- return l = o.makeLeafDispatchRecord(n), Object.defineProperty(Object.getPrototypeOf(e), T.dispatchPropertyName, { value: l, enumerable: !1, writable: !0, configurable: !0 }), l.i;
13005
+ return l = o.makeLeafDispatchRecord(n), Object.defineProperty(Object.getPrototypeOf(e), R.dispatchPropertyName, { value: l, enumerable: !1, writable: !0, configurable: !0 }), l.i;
13018
13006
  if (s === "+")
13019
13007
  return o.patchInteriorProto(e, n);
13020
13008
  if (s === "*")
13021
13009
  throw o.wrapException(o.UnimplementedError$(p));
13022
- return T.leafTags[p] === !0 ? (l = o.makeLeafDispatchRecord(n), Object.defineProperty(Object.getPrototypeOf(e), T.dispatchPropertyName, { value: l, enumerable: !1, writable: !0, configurable: !0 }), l.i) : o.patchInteriorProto(e, n);
13010
+ return R.leafTags[p] === !0 ? (l = o.makeLeafDispatchRecord(n), Object.defineProperty(Object.getPrototypeOf(e), R.dispatchPropertyName, { value: l, enumerable: !1, writable: !0, configurable: !0 }), l.i) : o.patchInteriorProto(e, n);
13023
13011
  },
13024
13012
  patchInteriorProto(e, n) {
13025
13013
  var a = Object.getPrototypeOf(e);
13026
- return Object.defineProperty(a, T.dispatchPropertyName, { value: u.makeDispatchRecord(n, a, null, null), enumerable: !1, writable: !0, configurable: !0 }), n;
13014
+ return Object.defineProperty(a, R.dispatchPropertyName, { value: u.makeDispatchRecord(n, a, null, null), enumerable: !1, writable: !0, configurable: !0 }), n;
13027
13015
  },
13028
13016
  makeLeafDispatchRecord(e) {
13029
13017
  return u.makeDispatchRecord(e, !1, null, !!e.$isJavaScriptIndexingBehavior);
13030
13018
  },
13031
13019
  makeDefaultDispatchRecord(e, n, a) {
13032
13020
  var i = n.prototype;
13033
- return T.leafTags[e] === !0 ? o.makeLeafDispatchRecord(i) : u.makeDispatchRecord(i, a, null, null);
13021
+ return R.leafTags[e] === !0 ? o.makeLeafDispatchRecord(i) : u.makeDispatchRecord(i, a, null, null);
13034
13022
  },
13035
13023
  initNativeDispatch() {
13036
- C.initNativeDispatchFlag !== !0 && (C.initNativeDispatchFlag = !0, o.initNativeDispatchContinue());
13024
+ L.initNativeDispatchFlag !== !0 && (L.initNativeDispatchFlag = !0, o.initNativeDispatchContinue());
13037
13025
  },
13038
13026
  initNativeDispatchContinue() {
13039
13027
  var e, n, a, i, s, l, p, c;
13040
- if (C.dispatchRecordsForInstanceTags = /* @__PURE__ */ Object.create(null), C.interceptorsForUncacheableTags = /* @__PURE__ */ Object.create(null), o.initHooks(), e = T.interceptorsByTag, n = Object.getOwnPropertyNames(e), typeof window < "u")
13028
+ if (L.dispatchRecordsForInstanceTags = /* @__PURE__ */ Object.create(null), L.interceptorsForUncacheableTags = /* @__PURE__ */ Object.create(null), o.initHooks(), e = R.interceptorsByTag, n = Object.getOwnPropertyNames(e), typeof window < "u")
13041
13029
  for (a = function() {
13042
13030
  }, i = 0; i < n.length; ++i)
13043
- s = n[i], l = C.prototypeForTagFunction.call$1(s), l != null && (p = o.makeDefaultDispatchRecord(s, e[s], l), p != null && (Object.defineProperty(l, T.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), a.prototype = l));
13031
+ s = n[i], l = L.prototypeForTagFunction.call$1(s), l != null && (p = o.makeDefaultDispatchRecord(s, e[s], l), p != null && (Object.defineProperty(l, R.dispatchPropertyName, { value: p, enumerable: !1, writable: !0, configurable: !0 }), a.prototype = l));
13044
13032
  for (i = 0; i < n.length; ++i)
13045
13033
  s = n[i], /^[A-Za-z_]/.test(s) && (c = e[s], e["!" + s] = c, e["~" + s] = c, e["-" + s] = c, e["+" + s] = c, e["*" + s] = c);
13046
13034
  },
@@ -13049,7 +13037,7 @@ var Ar = Or, Ot = {};
13049
13037
  if (p = o.applyHooksTransformer(z.C_JS_CONST1, o.applyHooksTransformer(z.C_JS_CONST2, o.applyHooksTransformer(z.C_JS_CONST3, o.applyHooksTransformer(z.C_JS_CONST3, o.applyHooksTransformer(z.C_JS_CONST4, o.applyHooksTransformer(z.C_JS_CONST5, o.applyHooksTransformer(z.C_JS_CONST6(z.C_JS_CONST), p))))))), typeof dartNativeDispatchHooksTransformer < "u" && (e = dartNativeDispatchHooksTransformer, typeof e == "function" && (e = [e]), e.constructor == Array))
13050
13038
  for (n = 0; n < e.length; ++n)
13051
13039
  a = e[n], typeof a == "function" && (p = a(p) || p);
13052
- i = p.getTag, s = p.getUnknownTag, l = p.prototypeForTag, C.getTagFunction = new o.initHooks_closure(i), C.alternateTagFunction = new o.initHooks_closure0(s), C.prototypeForTagFunction = new o.initHooks_closure1(l);
13040
+ i = p.getTag, s = p.getUnknownTag, l = p.prototypeForTag, L.getTagFunction = new o.initHooks_closure(i), L.alternateTagFunction = new o.initHooks_closure0(s), L.prototypeForTagFunction = new o.initHooks_closure1(l);
13053
13041
  },
13054
13042
  applyHooksTransformer(e, n) {
13055
13043
  return e(n) || n;
@@ -13288,10 +13276,10 @@ var Ar = Or, Ot = {};
13288
13276
  return e._canonicalRecipe;
13289
13277
  },
13290
13278
  findType(e) {
13291
- return o._Universe_eval(T.typeUniverse, e, !1);
13279
+ return o._Universe_eval(R.typeUniverse, e, !1);
13292
13280
  },
13293
13281
  _substitute(e, n, a, i) {
13294
- var s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I = n._kind;
13282
+ var s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I = n._kind;
13295
13283
  switch (I) {
13296
13284
  case 5:
13297
13285
  case 1:
@@ -13312,7 +13300,7 @@ var Ar = Or, Ot = {};
13312
13300
  case 12:
13313
13301
  return $ = n._primary, E = o._substitute(e, $, a, i), g = n._rest, h = o._substituteFunctionParameters(e, g, a, i), E === $ && h === g ? n : o._Universe__lookupFunctionRti(e, E, h);
13314
13302
  case 13:
13315
- return R = n._rest, i += R.length, L = o._substituteArray(e, R, a, i), M = n._primary, b = o._substitute(e, M, a, i), L === R && b === M ? n : o._Universe__lookupGenericFunctionRti(e, b, L, !0);
13303
+ return T = n._rest, i += T.length, F = o._substituteArray(e, T, a, i), M = n._primary, b = o._substitute(e, M, a, i), F === T && b === M ? n : o._Universe__lookupGenericFunctionRti(e, b, F, !0);
13316
13304
  case 14:
13317
13305
  return W = n._primary, W < i || (B = a[W - i], B == null) ? n : B;
13318
13306
  default:
@@ -13336,7 +13324,7 @@ var Ar = Or, Ot = {};
13336
13324
  return p === l && M === c && O === b ? n : (s = new o._FunctionParameters(), s._requiredPositional = p, s._optionalPositional = M, s._named = O, s);
13337
13325
  },
13338
13326
  _setArrayType(e, n) {
13339
- return e[T.arrayRti] = n, e;
13327
+ return e[R.arrayRti] = n, e;
13340
13328
  },
13341
13329
  closureFunctionType(e) {
13342
13330
  var n, a = e.$signature;
@@ -13351,7 +13339,7 @@ var Ar = Or, Ot = {};
13351
13339
  return e instanceof o.Object ? (n = e.$ti, n ?? o._instanceTypeFromConstructor(e)) : Array.isArray(e) ? o._arrayInstanceType(e) : o._instanceTypeFromConstructor(u.getInterceptor$(e));
13352
13340
  },
13353
13341
  _arrayInstanceType(e) {
13354
- var n = e[T.arrayRti], a = r.JSArray_dynamic;
13342
+ var n = e[R.arrayRti], a = r.JSArray_dynamic;
13355
13343
  return n == null || n.constructor !== a.constructor ? a : n;
13356
13344
  },
13357
13345
  _instanceType(e) {
@@ -13363,12 +13351,12 @@ var Ar = Or, Ot = {};
13363
13351
  return a ?? o._instanceTypeFromConstructorMiss(e, n);
13364
13352
  },
13365
13353
  _instanceTypeFromConstructorMiss(e, n) {
13366
- var a = e instanceof o.Closure ? e.__proto__.__proto__.constructor : n, i = o._Universe_findErasedType(T.typeUniverse, a.name);
13354
+ var a = e instanceof o.Closure ? e.__proto__.__proto__.constructor : n, i = o._Universe_findErasedType(R.typeUniverse, a.name);
13367
13355
  return n.$ccache = i, i;
13368
13356
  },
13369
13357
  getTypeFromTypesTable(e) {
13370
- var n, a = T.types, i = a[e];
13371
- return typeof i == "string" ? (n = o._Universe_eval(T.typeUniverse, i, !1), a[e] = n, n) : i;
13358
+ var n, a = R.types, i = a[e];
13359
+ return typeof i == "string" ? (n = o._Universe_eval(R.typeUniverse, i, !1), a[e] = n, n) : i;
13372
13360
  },
13373
13361
  getRuntimeType(e) {
13374
13362
  var n = e instanceof o.Closure ? o.closureFunctionType(e) : null;
@@ -13376,10 +13364,10 @@ var Ar = Or, Ot = {};
13376
13364
  },
13377
13365
  createRuntimeType(e) {
13378
13366
  var n, a, i, s = e._cachedRuntimeType;
13379
- return s ?? (n = e._canonicalRecipe, a = n.replace(/\*/g, ""), a === n ? e._cachedRuntimeType = new o._Type(e) : (i = o._Universe_eval(T.typeUniverse, a, !0), s = i._cachedRuntimeType, e._cachedRuntimeType = s ?? (i._cachedRuntimeType = new o._Type(i))));
13367
+ return s ?? (n = e._canonicalRecipe, a = n.replace(/\*/g, ""), a === n ? e._cachedRuntimeType = new o._Type(e) : (i = o._Universe_eval(R.typeUniverse, a, !0), s = i._cachedRuntimeType, e._cachedRuntimeType = s ?? (i._cachedRuntimeType = new o._Type(i))));
13380
13368
  },
13381
13369
  typeLiteral(e) {
13382
- return o.createRuntimeType(o._Universe_eval(T.typeUniverse, e, !1));
13370
+ return o.createRuntimeType(o._Universe_eval(R.typeUniverse, e, !1));
13383
13371
  },
13384
13372
  _installSpecializedIsTest(e) {
13385
13373
  var n, a, i, s, l = this;
@@ -13409,7 +13397,7 @@ var Ar = Or, Ot = {};
13409
13397
  },
13410
13398
  _generalIsTestImplementation(e) {
13411
13399
  var n = this;
13412
- return e == null ? o._nullIs(n) : o._isSubtype(T.typeUniverse, o.instanceOrFunctionType(e, n), null, n, null);
13400
+ return e == null ? o._nullIs(n) : o._isSubtype(R.typeUniverse, o.instanceOrFunctionType(e, n), null, n, null);
13413
13401
  },
13414
13402
  _generalNullableIsTestImplementation(e) {
13415
13403
  return e == null ? !0 : this._primary._is(e);
@@ -13578,7 +13566,7 @@ var Ar = Or, Ot = {};
13578
13566
  return l + "})";
13579
13567
  },
13580
13568
  _functionRtiToString(e, n, a) {
13581
- var i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X = ", ";
13569
+ var i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X = ", ";
13582
13570
  if (a != null) {
13583
13571
  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)
13584
13572
  n.push("T" + (l + p));
@@ -13587,11 +13575,11 @@ var Ar = Or, Ot = {};
13587
13575
  b += ">";
13588
13576
  } else
13589
13577
  b = "", s = null;
13590
- for (c = e._primary, g = e._rest, h = g._requiredPositional, R = h.length, L = g._optionalPositional, W = L.length, B = g._named, I = B.length, x = o._rtiToString(c, n), w = "", v = "", p = 0; p < R; ++p, v = X)
13578
+ for (c = e._primary, g = e._rest, h = g._requiredPositional, T = h.length, F = g._optionalPositional, W = F.length, B = g._named, I = B.length, x = o._rtiToString(c, n), w = "", v = "", p = 0; p < T; ++p, v = X)
13591
13579
  w += v + o._rtiToString(h[p], n);
13592
13580
  if (W > 0) {
13593
13581
  for (w += v + "[", v = "", p = 0; p < W; ++p, v = X)
13594
- w += v + o._rtiToString(L[p], n);
13582
+ w += v + o._rtiToString(F[p], n);
13595
13583
  w += "]";
13596
13584
  }
13597
13585
  if (I > 0) {
@@ -13606,7 +13594,7 @@ var Ar = Or, Ot = {};
13606
13594
  return M === 5 ? "erased" : M === 2 ? "dynamic" : M === 3 ? "void" : M === 1 ? "Never" : M === 4 ? "any" : M === 6 ? (a = o._rtiToString(e._primary, n), a) : M === 7 ? (i = e._primary, a = o._rtiToString(i, n), s = i._kind, (s === 12 || s === 13 ? "(" + a + ")" : a) + "?") : M === 8 ? "FutureOr<" + o._rtiToString(e._primary, n) + ">" : M === 9 ? (l = o._unminifyOrTag(e._primary), p = e._rest, p.length > 0 ? l + ("<" + o._rtiArrayToString(p, n) + ">") : l) : M === 11 ? o._recordRtiToString(e, n) : M === 12 ? o._functionRtiToString(e, n, null) : M === 13 ? o._functionRtiToString(e._primary, n, e._rest) : M === 14 ? (c = e._primary, n[n.length - 1 - c]) : "?";
13607
13595
  },
13608
13596
  _unminifyOrTag(e) {
13609
- var n = T.mangledGlobalNames[e];
13597
+ var n = R.mangledGlobalNames[e];
13610
13598
  return n ?? e;
13611
13599
  },
13612
13600
  _Universe_findRule(e, n) {
@@ -13957,17 +13945,17 @@ var Ar = Or, Ot = {};
13957
13945
  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);
13958
13946
  },
13959
13947
  _isFunctionSubtype(e, n, a, i, s) {
13960
- var l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X, K, _0;
13948
+ var l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X, K, _0;
13961
13949
  if (!o._isSubtype(e, n._primary, a, i._primary, s) || (l = n._rest, p = i._rest, c = l._requiredPositional, M = p._requiredPositional, b = c.length, O = M.length, b > O) || (D = O - b, $ = l._optionalPositional, E = p._optionalPositional, g = $.length, h = E.length, b + g < O + h))
13962
13950
  return !1;
13963
- for (R = 0; R < b; ++R)
13964
- if (L = c[R], !o._isSubtype(e, M[R], s, L, a))
13951
+ for (T = 0; T < b; ++T)
13952
+ if (F = c[T], !o._isSubtype(e, M[T], s, F, a))
13965
13953
  return !1;
13966
- for (R = 0; R < D; ++R)
13967
- if (L = $[R], !o._isSubtype(e, M[b + R], s, L, a))
13954
+ for (T = 0; T < D; ++T)
13955
+ if (F = $[T], !o._isSubtype(e, M[b + T], s, F, a))
13968
13956
  return !1;
13969
- for (R = 0; R < h; ++R)
13970
- if (L = $[D + R], !o._isSubtype(e, E[R], s, L, a))
13957
+ for (T = 0; T < h; ++T)
13958
+ if (F = $[D + T], !o._isSubtype(e, E[T], s, F, a))
13971
13959
  return !1;
13972
13960
  for (W = l._named, B = p._named, I = W.length, x = B.length, w = 0, v = 0; v < x; v += 3)
13973
13961
  for (X = B[v]; ; ) {
@@ -13978,7 +13966,7 @@ var Ar = Or, Ot = {};
13978
13966
  return !1;
13979
13967
  continue;
13980
13968
  }
13981
- if (L = B[v + 1], _0 && !L || (L = W[w - 1], !o._isSubtype(e, B[v + 2], s, L, a)))
13969
+ if (F = B[v + 1], _0 && !F || (F = W[w - 1], !o._isSubtype(e, B[v + 2], s, F, a)))
13982
13970
  return !1;
13983
13971
  break;
13984
13972
  }
@@ -13999,7 +13987,7 @@ var Ar = Or, Ot = {};
13999
13987
  }
14000
13988
  if (p = l[E], p == null)
14001
13989
  return !1;
14002
- for (c = p.length, M = c > 0 ? new Array(c) : T.typeUniverse.sEA, b = 0; b < c; ++b)
13990
+ for (c = p.length, M = c > 0 ? new Array(c) : R.typeUniverse.sEA, b = 0; b < c; ++b)
14003
13991
  M[b] = o._Universe_evalInEnvironment(e, n, p[b]);
14004
13992
  return o._areArgumentsSubtypes(e, M, null, a, i._rest, s);
14005
13993
  }
@@ -14039,7 +14027,7 @@ var Ar = Or, Ot = {};
14039
14027
  i = s[a], e[i] = n[i];
14040
14028
  },
14041
14029
  _Utils_newArrayOrEmpty(e) {
14042
- return e > 0 ? new Array(e) : T.typeUniverse.sEA;
14030
+ return e > 0 ? new Array(e) : R.typeUniverse.sEA;
14043
14031
  },
14044
14032
  Rti: function(n, a) {
14045
14033
  var i = this;
@@ -14117,11 +14105,11 @@ var Ar = Or, Ot = {};
14117
14105
  var i, s;
14118
14106
  if (o._isToStringVisiting(e))
14119
14107
  return n === "(" && a === ")" ? "(...)" : n + "..." + a;
14120
- i = o._setArrayType([], r.JSArray_String), C._toStringVisiting.push(e);
14108
+ i = o._setArrayType([], r.JSArray_String), L._toStringVisiting.push(e);
14121
14109
  try {
14122
14110
  o._iterablePartsToStrings(e, i);
14123
14111
  } finally {
14124
- C._toStringVisiting.pop();
14112
+ L._toStringVisiting.pop();
14125
14113
  }
14126
14114
  return s = o.StringBuffer__writeAll(n, i, ", ") + a, s.charCodeAt(0) == 0, s;
14127
14115
  },
@@ -14129,18 +14117,18 @@ var Ar = Or, Ot = {};
14129
14117
  var i, s;
14130
14118
  if (o._isToStringVisiting(e))
14131
14119
  return n + "..." + a;
14132
- i = new o.StringBuffer(n), C._toStringVisiting.push(e);
14120
+ i = new o.StringBuffer(n), L._toStringVisiting.push(e);
14133
14121
  try {
14134
14122
  s = i, s._contents = o.StringBuffer__writeAll(s._contents, e, ", ");
14135
14123
  } finally {
14136
- C._toStringVisiting.pop();
14124
+ L._toStringVisiting.pop();
14137
14125
  }
14138
14126
  return i._contents += a, s = i._contents, s.charCodeAt(0) == 0, s;
14139
14127
  },
14140
14128
  _isToStringVisiting(e) {
14141
14129
  var n, a;
14142
- for (n = C._toStringVisiting.length, a = 0; a < n; ++a)
14143
- if (e === C._toStringVisiting[a])
14130
+ for (n = L._toStringVisiting.length, a = 0; a < n; ++a)
14131
+ if (e === L._toStringVisiting[a])
14144
14132
  return !0;
14145
14133
  return !1;
14146
14134
  },
@@ -14196,9 +14184,9 @@ var Ar = Or, Ot = {};
14196
14184
  return "{...}";
14197
14185
  n = new o.StringBuffer("");
14198
14186
  try {
14199
- C._toStringVisiting.push(e), n._contents += "{", a.first = !0, e.forEach$1(0, new o.MapBase_mapToString_closure(a, n)), n._contents += "}";
14187
+ L._toStringVisiting.push(e), n._contents += "{", a.first = !0, e.forEach$1(0, new o.MapBase_mapToString_closure(a, n)), n._contents += "}";
14200
14188
  } finally {
14201
- C._toStringVisiting.pop();
14189
+ L._toStringVisiting.pop();
14202
14190
  }
14203
14191
  return a = n._contents, a.charCodeAt(0) == 0, a;
14204
14192
  },
@@ -14415,11 +14403,11 @@ var Ar = Or, Ot = {};
14415
14403
  return new o.DateTime(Date.now(), !1);
14416
14404
  },
14417
14405
  DateTime_parse(e) {
14418
- var n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L = C.$get$DateTime__parseFormat().firstMatch$1(e);
14419
- if (L != null) {
14420
- 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), c = 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 = z.JSInt_methods._tdivFast$1(O, 1e3), a[8] != null ? ($ = a[9], $ != null && (E = $ === "-" ? -1 : 1, i = a[10], i.toString, g = o.int_parse(i), M -= E * (n.call$1(a[11]) + 60 * g)), h = !0) : h = !1, R = o.Primitives_valueFromDecomposedDate(s, l, p, c, M, b, D + z.JSNumber_methods.round$0(O % 1e3 / 1e3), h), R == null)
14406
+ var n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F = L.$get$DateTime__parseFormat().firstMatch$1(e);
14407
+ if (F != null) {
14408
+ if (n = new o.DateTime_parse_parseIntOrZero(), a = F.__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), c = 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 = z.JSInt_methods._tdivFast$1(O, 1e3), a[8] != null ? ($ = a[9], $ != null && (E = $ === "-" ? -1 : 1, i = a[10], i.toString, g = o.int_parse(i), M -= E * (n.call$1(a[11]) + 60 * g)), h = !0) : h = !1, T = o.Primitives_valueFromDecomposedDate(s, l, p, c, M, b, D + z.JSNumber_methods.round$0(O % 1e3 / 1e3), h), T == null)
14421
14409
  throw o.wrapException(o.FormatException$("Time out of range", e, null));
14422
- return o.DateTime$_withValue(R, h);
14410
+ return o.DateTime$_withValue(T, h);
14423
14411
  } else
14424
14412
  throw o.wrapException(o.FormatException$("Invalid date format", e, null));
14425
14413
  },
@@ -14530,7 +14518,7 @@ var Ar = Or, Ot = {};
14530
14518
  return a ?? o.Primitives_parseDouble(n);
14531
14519
  },
14532
14520
  Object_hashAll(e) {
14533
- var n, a, i = C.$get$_hashSeed();
14521
+ var n, a, i = L.$get$_hashSeed();
14534
14522
  for (n = e.length, a = 0; a < n; ++a)
14535
14523
  i = o.SystemHash_combine(i, z.JSInt_methods.get$hashCode(e[a]));
14536
14524
  return o.SystemHash_finish(i);
@@ -14677,9 +14665,9 @@ var Ar = Or, Ot = {};
14677
14665
  var p = this;
14678
14666
  p.digest = n, p._extended = a, p._hash_sink$_sink = i, p._currentChunk = s, p._lengthInBytes = 0, p._pendingData = l, p._isClosed = !1;
14679
14667
  },
14680
- DateSymbols: function(n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L) {
14668
+ DateSymbols: function(n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F) {
14681
14669
  var W = this;
14682
- W.NAME = n, W.ERAS = a, W.ERANAMES = i, W.NARROWMONTHS = s, W.STANDALONENARROWMONTHS = l, W.MONTHS = p, W.STANDALONEMONTHS = c, W.SHORTMONTHS = M, W.STANDALONESHORTMONTHS = b, W.WEEKDAYS = O, W.STANDALONEWEEKDAYS = D, W.SHORTWEEKDAYS = $, W.STANDALONESHORTWEEKDAYS = E, W.STANDALONENARROWWEEKDAYS = g, W.SHORTQUARTERS = h, W.QUARTERS = R, W.AMPMS = L;
14670
+ W.NAME = n, W.ERAS = a, W.ERANAMES = i, W.NARROWMONTHS = s, W.STANDALONENARROWMONTHS = l, W.MONTHS = p, W.STANDALONEMONTHS = c, W.SHORTMONTHS = M, W.STANDALONESHORTMONTHS = b, W.WEEKDAYS = O, W.STANDALONEWEEKDAYS = D, W.SHORTWEEKDAYS = $, W.STANDALONESHORTWEEKDAYS = E, W.STANDALONENARROWWEEKDAYS = g, W.SHORTQUARTERS = h, W.QUARTERS = T, W.AMPMS = F;
14683
14671
  },
14684
14672
  DateBuilder: function(n, a) {
14685
14673
  var i = this;
@@ -14690,7 +14678,7 @@ var Ar = Or, Ot = {};
14690
14678
  return n.toString, n = new o.DateFormat(new o.DateFormat_dateTimeConstructor_closure(), n), n.addPattern$1(e), n;
14691
14679
  },
14692
14680
  DateFormat_localeExists(e) {
14693
- var n = C.$get$_dateTimeSymbols();
14681
+ var n = L.$get$_dateTimeSymbols();
14694
14682
  return n.toString, o.canonicalizedLocale(e) !== "en_US" && n._throwException$0(), !0;
14695
14683
  },
14696
14684
  DateFormat__fieldConstructors() {
@@ -14698,7 +14686,7 @@ var Ar = Or, Ot = {};
14698
14686
  },
14699
14687
  _DateFormatQuotedField__patchQuotes(e) {
14700
14688
  var n, a;
14701
- return e === "''" ? "'" : (n = z.JSString_methods.substring$2(e, 1, e.length - 1), a = C.$get$_DateFormatQuotedField__twoEscapedQuotes(), o.stringReplaceAllUnchecked(n, a, "'"));
14689
+ return e === "''" ? "'" : (n = z.JSString_methods.substring$2(e, 1, e.length - 1), a = L.$get$_DateFormatQuotedField__twoEscapedQuotes(), o.stringReplaceAllUnchecked(n, a, "'"));
14702
14690
  },
14703
14691
  DateFormat: function(n, a) {
14704
14692
  var i = this;
@@ -14749,7 +14737,7 @@ var Ar = Or, Ot = {};
14749
14737
  verifiedLocale(e, n, a) {
14750
14738
  var i, s, l;
14751
14739
  if (e == null)
14752
- return o.defaultLocale() == null && (C._defaultLocale = "en_US"), i = o.defaultLocale(), i.toString, o.verifiedLocale(i, n, a);
14740
+ return o.defaultLocale() == null && (L._defaultLocale = "en_US"), i = o.defaultLocale(), i.toString, o.verifiedLocale(i, n, a);
14753
14741
  if (n.call$1(e))
14754
14742
  return e;
14755
14743
  for (i = [o.canonicalizedLocale(e), o.shortLocale(e), "fallback"], s = 0; s < 3; ++s)
@@ -14778,10 +14766,10 @@ var Ar = Or, Ot = {};
14778
14766
  },
14779
14767
  Jiffy$(e) {
14780
14768
  var n, a, i = new o.Jiffy();
14781
- return i.__Jiffy__dateTime_A = i._parse$2(e, null), n = o.defaultLocale(), n == null && (n = C._defaultLocale = "en_US"), a = C.$get$_availableLocales().$index(0, n.toLowerCase()), a == null && (a = new o.EnLocale(z.StartOfWeek_1)), C.Jiffy____defaultLocale.__late_helper$_value = a, C.Jiffy____defaultLocale._readField$0(), i;
14769
+ return i.__Jiffy__dateTime_A = i._parse$2(e, null), n = o.defaultLocale(), n == null && (n = L._defaultLocale = "en_US"), a = L.$get$_availableLocales().$index(0, n.toLowerCase()), a == null && (a = new o.EnLocale(z.StartOfWeek_1)), L.Jiffy____defaultLocale.__late_helper$_value = a, L.Jiffy____defaultLocale._readField$0(), i;
14782
14770
  },
14783
14771
  Jiffy: function() {
14784
- this.__Jiffy__dateTime_A = C;
14772
+ this.__Jiffy__dateTime_A = L;
14785
14773
  },
14786
14774
  Jiffy__parseMap_closure: function() {
14787
14775
  },
@@ -15130,7 +15118,7 @@ var Ar = Or, Ot = {};
15130
15118
  case z.DATA_TYPE_1:
15131
15119
  if (D = b == null, D || u.$eq$(b, ""))
15132
15120
  return "";
15133
- switch ($ = M ?? "Asia/Kuala_Lumpur", E = C.$get$_database()._locations, E.__js_helper$_length === 0 && o.throwExpression(o.LocationNotFoundException$("Tried to get location before initializing timezone database")), g = E.$index(0, $), g == null && o.throwExpression(o.LocationNotFoundException$('Location with the name "' + $ + `" doesn't exist`)), s) {
15121
+ switch ($ = M ?? "Asia/Kuala_Lumpur", E = L.$get$_database()._locations, E.__js_helper$_length === 0 && o.throwExpression(o.LocationNotFoundException$("Tried to get location before initializing timezone database")), g = E.$index(0, $), g == null && o.throwExpression(o.LocationNotFoundException$('Location with the name "' + $ + `" doesn't exist`)), s) {
15134
15122
  case z.DIMENSION_OPTION_0:
15135
15123
  return o.DateFormat$("dd/MM/yyyy HH:mm:ss").format$1(o.TZDateTime$from(o.DateTime_parse(u.toString$0$(b)), g));
15136
15124
  case z.DIMENSION_OPTION_6:
@@ -15294,8 +15282,8 @@ var Ar = Or, Ot = {};
15294
15282
  var $ = this;
15295
15283
  $.sparklineDimension = n, $.isCumulative = a, $.schemaNames = i, $.dimensions = s, $.metrics = l, $.filters = p, $.sorts = c, $.limit = M, $.isComparable = b, $.periodType = O, $.timezone = D;
15296
15284
  },
15297
- TableDatasourceConfigModel$(e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B) {
15298
- return new o.TableDatasourceConfigModel(n, c, L, $, E, h, l, i, g, e, M, R, a, O, s, W, b, p, D, B);
15285
+ TableDatasourceConfigModel$(e, n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B) {
15286
+ return new o.TableDatasourceConfigModel(n, c, F, $, E, h, l, i, g, e, M, T, a, O, s, W, b, p, D, B);
15299
15287
  },
15300
15288
  TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson(e) {
15301
15289
  var n, a, i, s, l, p, c, M, b, O = "showGrandTotal", D = o.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson(e), $ = e.$index(0, "rollup");
@@ -15339,9 +15327,9 @@ var Ar = Or, Ot = {};
15339
15327
  DataSourceRowColumnConfig_columnIds_closure1: function(n) {
15340
15328
  this.$this = n;
15341
15329
  },
15342
- TableDatasourceConfigModel: function(n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I) {
15330
+ TableDatasourceConfigModel: function(n, a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I) {
15343
15331
  var x = this;
15344
- x.columnsWidth = n, x.isDrillable = a, x.showGrandTotal = i, x.rollup = s, x.rollupPosition = l, x.rowsPerPage = p, x.isBlend = c, x._drillDimension = M, x._rowIds = b, x._columnIds = O, x._joinDatasources = D, x.schemaNames = $, x.dimensions = E, x.metrics = g, x.filters = h, x.sorts = R, x.limit = L, x.isComparable = W, x.periodType = B, x.timezone = I;
15332
+ x.columnsWidth = n, x.isDrillable = a, x.showGrandTotal = i, x.rollup = s, x.rollupPosition = l, x.rowsPerPage = p, x.isBlend = c, x._drillDimension = M, x._rowIds = b, x._columnIds = O, x._joinDatasources = D, x.schemaNames = $, x.dimensions = E, x.metrics = g, x.filters = h, x.sorts = T, x.limit = F, x.isComparable = W, x.periodType = B, x.timezone = I;
15345
15333
  },
15346
15334
  TableDatasourceConfigModel_drilledDimensions_closure: function(n) {
15347
15335
  this.$this = n;
@@ -15425,29 +15413,29 @@ var Ar = Or, Ot = {};
15425
15413
  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;
15426
15414
  },
15427
15415
  formatBaseXYChartData(e, n, a, i, s) {
15428
- var l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X, K, _0, d0, z0, y0, q0, e0, W0, h0, N0, x0, F0, U0 = null;
15416
+ var l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X, K, _0, d0, z0, y0, q0, e0, W0, h0, N0, x0, F0, U0 = null;
15429
15417
  if (a.length === 0)
15430
15418
  return l = o._setArrayType([], r.JSArray_String), p = o._setArrayType([], r.JSArray_XYDatasetModel), c = o.IterableExtension_get_firstOrNull(a), new o.BaseXYChartDataModel(e, l, p, new o.DateComparison(c == null ? U0 : c.dateRange, U0));
15431
- for (M = z.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), $ = o._formatRows(o.ListExtension_sublistOrEmpty(a, 1, 2, p), s), $.length !== 0 && (l = l._eval$1("MappedListIterable<1,ComparisonDataColumn>"), E = o.List_List$of(new o.MappedListIterable(M, new o.formatBaseXYChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), g = o.compare(new o.ComparisonData(E, $), new o.ComparisonData(E, D)), $ = g.comparison, D = g.main), l = r.String, p = o.LinkedHashMap_LinkedHashMap$_empty(l, r.bool), c = O.length, h = 0; R = O.length, h < R; O.length === c || (0, o.throwConcurrentModificationError)(O), ++h)
15432
- L = O[h], p.$indexSet(0, L.id, L.nullable);
15433
- for (c = o.LinkedHashMap_LinkedHashMap$_empty(l, l), h = 0; h < O.length; O.length === R || (0, o.throwConcurrentModificationError)(O), ++h)
15434
- L = O[h], c.$indexSet(0, L.id, L.label);
15419
+ for (M = z.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), $ = o._formatRows(o.ListExtension_sublistOrEmpty(a, 1, 2, p), s), $.length !== 0 && (l = l._eval$1("MappedListIterable<1,ComparisonDataColumn>"), E = o.List_List$of(new o.MappedListIterable(M, new o.formatBaseXYChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), g = o.compare(new o.ComparisonData(E, $), new o.ComparisonData(E, D)), $ = g.comparison, D = g.main), l = r.String, p = o.LinkedHashMap_LinkedHashMap$_empty(l, r.bool), c = O.length, h = 0; T = O.length, h < T; O.length === c || (0, o.throwConcurrentModificationError)(O), ++h)
15420
+ F = O[h], p.$indexSet(0, F.id, F.nullable);
15421
+ for (c = o.LinkedHashMap_LinkedHashMap$_empty(l, l), h = 0; h < O.length; O.length === T || (0, o.throwConcurrentModificationError)(O), ++h)
15422
+ F = O[h], c.$indexSet(0, F.id, F.label);
15435
15423
  if (W = o.LinkedHashMap_LinkedHashMap$_empty(l, l), B = o.LinkedHashMap_LinkedHashMap$_empty(l, l), n.breakdownDimension == null) {
15436
- for (R = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), I = 0; I < M.length; ++I)
15437
- R.$indexSet(0, M[I].id, I);
15424
+ for (T = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), I = 0; I < M.length; ++I)
15425
+ T.$indexSet(0, M[I].id, I);
15438
15426
  for (W.addAll$1(0, c), x = O.length, h = 0; h < O.length; O.length === x || (0, o.throwConcurrentModificationError)(O), ++h)
15439
15427
  w = O[h].id, B.$indexSet(0, w, w);
15440
- x = o._arrayInstanceType(D)._eval$1("ExpandIterable<1,List<@>>"), D = o.List_List$of(new o.ExpandIterable(D, new o.formatBaseXYChartData_closure2(O, R), x), !0, x._eval$1("Iterable.E")), $.length !== 0 && (x = o._arrayInstanceType($)._eval$1("ExpandIterable<1,List<@>>"), $ = o.List_List$of(new o.ExpandIterable($, new o.formatBaseXYChartData_closure3(O, R), x), !0, x._eval$1("Iterable.E")));
15428
+ x = o._arrayInstanceType(D)._eval$1("ExpandIterable<1,List<@>>"), D = o.List_List$of(new o.ExpandIterable(D, new o.formatBaseXYChartData_closure2(O, T), x), !0, x._eval$1("Iterable.E")), $.length !== 0 && (x = o._arrayInstanceType($)._eval$1("ExpandIterable<1,List<@>>"), $ = o.List_List$of(new o.ExpandIterable($, new o.formatBaseXYChartData_closure3(O, T), x), !0, x._eval$1("Iterable.E")));
15441
15429
  } else if (b.length > 1) {
15442
- for (R = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), I = 0; I < M.length; ++I)
15443
- R.$indexSet(0, M[I].id, I);
15444
- R = new o.formatBaseXYChartData_expandRowsByMetric(z.JSArray_methods.indexWhere$1(M, new o.formatBaseXYChartData_closure4(n)), O, R, c, W, B), D = R.call$1(D), $.length !== 0 && ($ = R.call$1($));
15430
+ for (T = o.LinkedHashMap_LinkedHashMap$_empty(l, r.int), I = 0; I < M.length; ++I)
15431
+ T.$indexSet(0, M[I].id, I);
15432
+ T = new o.formatBaseXYChartData_expandRowsByMetric(z.JSArray_methods.indexWhere$1(M, new o.formatBaseXYChartData_closure4(n)), O, T, c, W, B), D = T.call$1(D), $.length !== 0 && ($ = T.call$1($));
15445
15433
  }
15446
- for (R = r.JSArray_String, v = o._setArrayType([], R), X = o._setArrayType([], R), R = D.length, h = 0; h < D.length; D.length === R || (0, o.throwConcurrentModificationError)(D), ++h)
15434
+ for (T = r.JSArray_String, v = o._setArrayType([], T), X = o._setArrayType([], T), T = D.length, h = 0; h < D.length; D.length === T || (0, o.throwConcurrentModificationError)(D), ++h)
15447
15435
  K = D[h], x = u.getInterceptor$asx(K), v.push(u.toString$0$(x.$index(K, 0))), X.push(u.toString$0$(x.$index(K, 1)));
15448
- for (R = o.LinkedHashSet_LinkedHashSet$from(v, l), v = o.List_List$of(R, !0, o._instanceType(R)._precomputed1), l = o.LinkedHashSet_LinkedHashSet$from(X, l), _0 = o.List_List$of(l, !0, o._instanceType(l)._precomputed1), d0 = o._setArrayType([], r.JSArray_XYDatasetModel), l = _0.length, R = u.getInterceptor$asx($), x = r.JSArray_nullable_num, h = 0; h < _0.length; _0.length === l || (0, o.throwConcurrentModificationError)(_0), ++h) {
15436
+ for (T = o.LinkedHashSet_LinkedHashSet$from(v, l), v = o.List_List$of(T, !0, o._instanceType(T)._precomputed1), l = o.LinkedHashSet_LinkedHashSet$from(X, l), _0 = o.List_List$of(l, !0, o._instanceType(l)._precomputed1), d0 = o._setArrayType([], r.JSArray_XYDatasetModel), l = _0.length, T = u.getInterceptor$asx($), x = r.JSArray_nullable_num, h = 0; h < _0.length; _0.length === l || (0, o.throwConcurrentModificationError)(_0), ++h) {
15449
15437
  for (z0 = _0[h], y0 = o._setArrayType([], x), q0 = o._setArrayType([], x), e0 = B.$index(0, z0), w = p.$index(0, e0 ?? z0), W0 = w === !0, w = W.$index(0, z0), h0 = w ?? c.$index(0, z0), h0 == null && (h0 = z0), w = v.length, N0 = 0; N0 < v.length; v.length === w || (0, o.throwConcurrentModificationError)(v), ++N0)
15450
- x0 = v[N0], F0 = o.IterableExtension_firstWhereOrNull(D, new o.formatBaseXYChartData_closure5(x0, z0)), y0.push(o._parseMetricValue(F0 == null ? U0 : o.ListExtension_elementAtOrNull(F0, 2), W0)), R.get$length($) !== 0 && (F0 = o.IterableExtension_firstWhereOrNull($, new o.formatBaseXYChartData_closure6(x0, z0)), q0.push(o._parseMetricValue(F0 == null ? U0 : o.ListExtension_elementAtOrNull(F0, 2), W0)));
15438
+ x0 = v[N0], F0 = o.IterableExtension_firstWhereOrNull(D, new o.formatBaseXYChartData_closure5(x0, z0)), y0.push(o._parseMetricValue(F0 == null ? U0 : o.ListExtension_elementAtOrNull(F0, 2), W0)), T.get$length($) !== 0 && (F0 = o.IterableExtension_firstWhereOrNull($, new o.formatBaseXYChartData_closure6(x0, z0)), q0.push(o._parseMetricValue(F0 == null ? U0 : o.ListExtension_elementAtOrNull(F0, 2), W0)));
15451
15439
  d0.push(new o.XYDatasetModel(h0, !1, y0)), q0.length !== 0 && d0.push(new o.XYDatasetModel(h0, !0, q0));
15452
15440
  }
15453
15441
  return d0 = o.accumulate(n, d0), l = o.IterableExtension_get_firstOrNull(a), l = l == null ? U0 : l.dateRange, p = o.ListExtension_elementAtOrNull(a, 1), new o.BaseXYChartDataModel(e, v, d0, new o.DateComparison(l, p == null ? U0 : p.dateRange));
@@ -15517,13 +15505,13 @@ var Ar = Or, Ot = {};
15517
15505
  return n.length === 0 ? o._setArrayType([], r.JSArray_List_dynamic) : (i = z.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")));
15518
15506
  },
15519
15507
  formatCircularChartData(e, n, a, i) {
15520
- var s, l, p, c, M, b, O, D, $, E, g, h, R, L, W = null;
15508
+ var s, l, p, c, M, b, O, D, $, E, g, h, T, F, W = null;
15521
15509
  if (n.length === 0)
15522
15510
  return s = o._setArrayType([], r.JSArray_String), new o.CircularDataModel(o._setArrayType([], r.JSArray_CircularDatasetModel), s, new o.DateComparison(W, W));
15523
15511
  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), c = z.JSArray_methods.get$first(n).columns, p.length !== 0 && (s = o._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), M = o.List_List$of(new o.MappedListIterable(c, 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, $ = 0; $ < l.length; l.length === D || (0, o.throwConcurrentModificationError)(l), ++$)
15524
15512
  O.push(u.toString$0$(u.$index$asx(l[$], 0)));
15525
15513
  for (D = o.LinkedHashSet_LinkedHashSet$from(O, r.String), O = o.List_List$of(D, !0, o._instanceType(D)._precomputed1), E = o._setArrayType([], r.JSArray_CircularDatasetModel), D = O.length, $ = 0; $ < D; ++$)
15526
- g = O[$], h = o.IterableExtension_firstWhereOrNull(l, new o.formatCircularChartData_closure0(g)), R = h == null ? W : o.ListExtension_elementAtOrNull(h, 1), R == null && (R = 0), p.length !== 0 ? (h = o.IterableExtension_firstWhereOrNull(p, new o.formatCircularChartData_closure1(g)), L = h == null ? W : o.ListExtension_elementAtOrNull(h, 1), L == null && (L = 0)) : L = W, E.push(new o.CircularDatasetModel(g, o.num_parse(R), L));
15514
+ g = O[$], h = o.IterableExtension_firstWhereOrNull(l, new o.formatCircularChartData_closure0(g)), T = h == null ? W : o.ListExtension_elementAtOrNull(h, 1), T == null && (T = 0), p.length !== 0 ? (h = o.IterableExtension_firstWhereOrNull(p, new o.formatCircularChartData_closure1(g)), F = h == null ? W : o.ListExtension_elementAtOrNull(h, 1), F == null && (F = 0)) : F = W, E.push(new o.CircularDatasetModel(g, o.num_parse(T), F));
15527
15515
  return s = o.IterableExtension_foldIndexed(c, o._setArrayType([], s), new o.formatCircularChartData_closure2()), D = o.IterableExtension_get_firstOrNull(n), D = D == null ? W : D.dateRange, h = o.ListExtension_elementAtOrNull(n, 1), new o.CircularDataModel(E, s, new o.DateComparison(D, h == null ? W : h.dateRange));
15528
15516
  },
15529
15517
  _formatRows_closure0: function(n, a) {
@@ -15553,14 +15541,14 @@ var Ar = Or, Ot = {};
15553
15541
  return new o.RowInfo(l, u.map$1$1$ax(a, new o._getRowInfo_closure(e, n, i, l), s).join$0(0));
15554
15542
  },
15555
15543
  compare(e, n) {
15556
- var a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w = {};
15544
+ var a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w = {};
15557
15545
  for (w.comparisonDateIndex = w.mainDateIndex = null, a = w.comparisonIndexesCompleted = w.mainIndexesCompleted = !1, i = n.columns, s = r.JSArray_int, l = o.IterableExtension_foldIndexed(i, o._setArrayType([], s), new o.compare_closure(w)), p = o.IterableExtension_foldIndexed(e.columns, o._setArrayType([], s), new o.compare_closure0(w)), s = r.JSArray_String, w.dates = o._setArrayType([], s), (w.mainDateIndex != null ? w.comparisonDateIndex != null : a) && (a = r.String, a = o.ListExtensions_mapIndexed(z.JSArray_methods.fold$2(n.rows, o._setArrayType([], s), new o.compare_closure1(w)), new o.compare_closure2(z.JSArray_methods.fold$2(e.rows, o._setArrayType([], s), new o.compare_closure3(w))), a, a), w.dates = o.List_List$of(a, !0, a.$ti._eval$1("Iterable.E"))), c = z.JSArray_methods.fold$2(e.rows, o.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new o.compare_closure4(w, 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), $ = r.dynamic, E = 0; E < M.length; M.length === b || (0, o.throwConcurrentModificationError)(M), ++E) {
15558
- if (g = M[E], h = o._getRowInfo(i, w.dates, l, g), R = c.$index(0, h.id), L = R == null ? null : u.toList$0$ax(R), L == null) {
15559
- for (R = h.row, W = o.List_List$of(o.ListExtensions_slice(R, 0, D.get$length(l), $), !0, $), B = R.length - D.get$length(l), B < 0 && o.throwExpression(o.ArgumentError$("Length must be a non-negative integer: " + B)), I = o._setArrayType(new Array(B), O), x = 0; x < B; ++x)
15546
+ if (g = M[E], h = o._getRowInfo(i, w.dates, l, g), T = c.$index(0, h.id), F = T == null ? null : u.toList$0$ax(T), F == null) {
15547
+ for (T = h.row, W = o.List_List$of(o.ListExtensions_slice(T, 0, D.get$length(l), $), !0, $), B = T.length - D.get$length(l), B < 0 && o.throwExpression(o.ArgumentError$("Length must be a non-negative integer: " + B)), I = o._setArrayType(new Array(B), O), x = 0; x < B; ++x)
15560
15548
  I[x] = null;
15561
- z.JSArray_methods.addAll$1(W, I), L = W;
15549
+ z.JSArray_methods.addAll$1(W, I), F = W;
15562
15550
  }
15563
- s.push(h.row), a.push(L);
15551
+ s.push(h.row), a.push(F);
15564
15552
  }
15565
15553
  return new o.ComparisonResult(s, a);
15566
15554
  },
@@ -15602,21 +15590,21 @@ var Ar = Or, Ot = {};
15602
15590
  this._box_0 = n, this.comparison = a, this.comparisonIndexes = i;
15603
15591
  },
15604
15592
  _formatSparkline(e, n, a, i) {
15605
- var s, l, p, c, M, b, O, D, $, E, g, h, R;
15593
+ var s, l, p, c, M, b, O, D, $, E, g, h, T;
15606
15594
  if (n == null)
15607
15595
  return null;
15608
15596
  for (s = n.rows, l = o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), p = o.List_List$of(new o.MappedListIterable(s, new o._formatSparkline_closure(n, a, i), l), !0, l._eval$1("ListIterable.E")), l = o._arrayInstanceType(p)._eval$1("MappedListIterable<1,List<@>>"), p = o.List_List$of(new o.MappedListIterable(p, new o._formatSparkline_closure0(n, z.JSArray_methods.indexWhere$1(n.columns, new o._formatSparkline_closure1())), l), !0, l._eval$1("ListIterable.E")), l = r.JSArray_String, c = o._setArrayType([], l), M = o._setArrayType([], l), s = p.length, b = 0; b < p.length; p.length === s || (0, o.throwConcurrentModificationError)(p), ++b)
15609
15597
  O = p[b], l = u.getInterceptor$asx(O), c.push(u.toString$0$(l.$index(O, 0))), M.push(u.toString$0$(l.$index(O, 1)));
15610
15598
  for (s = r.String, l = o.LinkedHashSet_LinkedHashSet$from(c, s), c = o.List_List$of(l, !0, o._instanceType(l)._precomputed1), s = o.LinkedHashSet_LinkedHashSet$from(M, s), M = o.List_List$of(s, !0, o._instanceType(s)._precomputed1), D = o._setArrayType([], r.JSArray_XYDatasetModel), s = M.length, l = r.JSArray_num, b = 0; b < M.length; M.length === s || (0, o.throwConcurrentModificationError)(M), ++b) {
15611
15599
  for ($ = M[b], E = o._setArrayType([], l), g = c.length, h = 0; h < c.length; c.length === g || (0, o.throwConcurrentModificationError)(c), ++h)
15612
- R = o.IterableExtension_firstWhereOrNull(p, new o._formatSparkline_closure2(c[h], $)), R = R == null ? null : o.ListExtension_elementAtOrNull(R, 2), E.push(R ?? 0);
15600
+ T = o.IterableExtension_firstWhereOrNull(p, new o._formatSparkline_closure2(c[h], $)), T = T == null ? null : o.ListExtension_elementAtOrNull(T, 2), E.push(T ?? 0);
15613
15601
  D.push(new o.XYDatasetModel($, !1, E));
15614
15602
  }
15615
15603
  return new o.SparklineDataModel(z.SparklineType_0, c, o.accumulate(e, D));
15616
15604
  },
15617
15605
  formatScoreCardChartData(e, n, a, i) {
15618
- var s, l, p, c, M, b, O, D, $, E, g, h, R, L, W = null;
15619
- return n.length === 0 ? new o.ScorecardDataModel(W, W, W, W) : (s = z.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)), c = p == null ? W : o.IterableExtension_get_firstOrNull(p.rows), M = e.sparklineDimension != null, b = M ? o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, 1, 2, s)) : W, O = M ? 2 : 1, s = o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, O, O + 1, s)), D = s == null ? W : o.IterableExtension_get_firstOrNull(s.rows), s = l.dataType, p = c == null ? W : c.value.$index(0, l.id), $ = l.optionType, E = l.aggregationType, g = l.decimal, h = l.timeFormatter, R = l.formatter, p = o.DataTypeExtension_toDisplay(s, E, a, g, $, R, !1, h, i, p), L = D == null, (L ? W : D.value.$index(0, l.id)) != null ? s = o.DataTypeExtension_toDisplay(s, E, a, g, $, R, !1, h, i, L ? W : D.value.$index(0, l.id)) : s = W, new o.ScorecardDataModel(W, p, s, o._formatSparkline(e, b, a, i)));
15606
+ var s, l, p, c, M, b, O, D, $, E, g, h, T, F, W = null;
15607
+ return n.length === 0 ? new o.ScorecardDataModel(W, W, W, W) : (s = z.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)), c = p == null ? W : o.IterableExtension_get_firstOrNull(p.rows), M = e.sparklineDimension != null, b = M ? o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, 1, 2, s)) : W, O = M ? 2 : 1, s = o.IterableExtension_get_firstOrNull(o.ListExtension_sublistOrEmpty(n, O, O + 1, s)), D = s == null ? W : o.IterableExtension_get_firstOrNull(s.rows), s = l.dataType, p = c == null ? W : c.value.$index(0, l.id), $ = l.optionType, E = l.aggregationType, g = l.decimal, h = l.timeFormatter, T = l.formatter, p = o.DataTypeExtension_toDisplay(s, E, a, g, $, T, !1, h, i, p), F = D == null, (F ? W : D.value.$index(0, l.id)) != null ? s = o.DataTypeExtension_toDisplay(s, E, a, g, $, T, !1, h, i, F ? W : D.value.$index(0, l.id)) : s = W, new o.ScorecardDataModel(W, p, s, o._formatSparkline(e, b, a, i)));
15620
15608
  },
15621
15609
  _formatSparkline_closure: function(n, a, i) {
15622
15610
  this.response = n, this.country = a, this.timezone = i;
@@ -15639,14 +15627,14 @@ var Ar = Or, Ot = {};
15639
15627
  formatScoreCardChartData_closure: function() {
15640
15628
  },
15641
15629
  _formatTableResponse(e, n, a, i) {
15642
- var s, l, p, c, M, b, O, D, $, E, g, h = null, R = a.columns, L = o._arrayInstanceType(R), W = L._eval$1("WhereIterable<1>"), B = r.String;
15643
- for (L = o.List_List$of(new o.MappedIterable(new o.WhereIterable(R, new o._formatTableResponse_closure(e), W), new o._formatTableResponse_closure0(), L._eval$1("MappedIterable<1,String>")), !0, B), 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, z.JSArray_methods.addAll$1(s, z.JSArray_methods.fold$2(L, o._setArrayType([], p), new o._formatTableResponse_closure2(a))), c = o.List_List$of(new o.WhereIterable(R, new o._formatTableResponse_closure3(), W), !0, W._eval$1("Iterable.E")), W = o.LinkedHashMap_LinkedHashMap$_empty(B, r.QueryResponseColumn), R = c.length, M = 0; M < c.length; c.length === R || (0, o.throwConcurrentModificationError)(c), ++M)
15630
+ var s, l, p, c, M, b, O, D, $, E, g, h = null, T = a.columns, F = o._arrayInstanceType(T), W = F._eval$1("WhereIterable<1>"), B = r.String;
15631
+ for (F = o.List_List$of(new o.MappedIterable(new o.WhereIterable(T, new o._formatTableResponse_closure(e), W), new o._formatTableResponse_closure0(), F._eval$1("MappedIterable<1,String>")), !0, B), 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, z.JSArray_methods.addAll$1(s, z.JSArray_methods.fold$2(F, o._setArrayType([], p), new o._formatTableResponse_closure2(a))), c = o.List_List$of(new o.WhereIterable(T, new o._formatTableResponse_closure3(), W), !0, W._eval$1("Iterable.E")), W = o.LinkedHashMap_LinkedHashMap$_empty(B, r.QueryResponseColumn), T = c.length, M = 0; M < c.length; c.length === T || (0, o.throwConcurrentModificationError)(c), ++M)
15644
15632
  b = c[M], W.$indexSet(0, b.id, b);
15645
- for (R = o.List_List$of(o.ListExtensions_mapIndexed(e.get$columnIds(), new o._formatTableResponse_closure4(e, W, a), B, l), !0, l), R.length !== 0 ? (O = o._setArrayType([], p), o._getRecursivePermutations(R, O, 0, o._setArrayType([], r.JSArray__Header_dynamic), r._Header_dynamic), D = O) : D = [], R = o.List_List$of(s, !0, l), L = D.length, M = 0; M < D.length; D.length === L || (0, o.throwConcurrentModificationError)(D), ++M)
15646
- R.push(D[M]);
15647
- for (e.get$columnIds().length === 0 && z.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && R.push(o._setArrayType([new o._Header("_metric_value", "Value", h, h, z.DATA_TYPE_3, h, h, !1, h, h, h, !1)], r.JSArray__Header_dynamic)), R.push(o._setArrayType([new o._Header("_is_rollup", "Rollup", h, h, z.DATA_TYPE_2, h, h, !0, h, h, h, !1)], r.JSArray__Header_dynamic)), L = r.Map_String_dynamic, $ = o.LinkedHashMap_LinkedHashMap$_empty(B, L), W = u.get$iterator$ax(z.JSArray_methods.fold$2(a.rows, o._setArrayType([], r.JSArray_Map_String_dynamic), new o._formatTableResponse_closure5(R, c))), B = r.dynamic; W.moveNext$0(); )
15648
- s = W.get$current(), E = o._asString(s.$index(0, "id")), g = $.$index(0, E), g == null ? $.$indexSet(0, E, s) : (s = o.ListExtensions_mapIndexed(o.List_List$from(g.$index(0, "value"), B), new o._formatTableResponse_closure6(R, s), B, B), g.$indexSet(0, "value", o.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
15649
- return W = $.get$values($), L = o.ListExtensions_mapIndexed(o.List_List$of(W, !0, o._instanceType(W)._eval$1("Iterable.E")), new o._formatTableResponse_closure7(), L, r.TableRowModel), W = o._arrayInstanceType(R)._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(R, new o._formatTableResponse_closure8(n, i), W), !0, W._eval$1("ListIterable.E")));
15633
+ for (T = o.List_List$of(o.ListExtensions_mapIndexed(e.get$columnIds(), new o._formatTableResponse_closure4(e, W, a), B, 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), F = D.length, M = 0; M < D.length; D.length === F || (0, o.throwConcurrentModificationError)(D), ++M)
15634
+ T.push(D[M]);
15635
+ for (e.get$columnIds().length === 0 && z.JSArray_methods.contains$1(e.get$rowIds(), "_metric_name") && T.push(o._setArrayType([new o._Header("_metric_value", "Value", h, h, z.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, z.DATA_TYPE_2, h, h, !0, h, h, h, !1)], r.JSArray__Header_dynamic)), F = r.Map_String_dynamic, $ = o.LinkedHashMap_LinkedHashMap$_empty(B, F), W = u.get$iterator$ax(z.JSArray_methods.fold$2(a.rows, o._setArrayType([], r.JSArray_Map_String_dynamic), new o._formatTableResponse_closure5(T, c))), B = r.dynamic; W.moveNext$0(); )
15636
+ s = W.get$current(), E = o._asString(s.$index(0, "id")), g = $.$index(0, E), g == null ? $.$indexSet(0, E, s) : (s = o.ListExtensions_mapIndexed(o.List_List$from(g.$index(0, "value"), B), new o._formatTableResponse_closure6(T, s), B, B), g.$indexSet(0, "value", o.List_List$of(s, !0, s.$ti._eval$1("Iterable.E"))));
15637
+ return W = $.get$values($), F = o.ListExtensions_mapIndexed(o.List_List$of(W, !0, o._instanceType(W)._eval$1("Iterable.E")), new o._formatTableResponse_closure7(), F, r.TableRowModel), W = o._arrayInstanceType(T)._eval$1("MappedListIterable<1,TableColumnModel>"), new o.TableDataModel(o.List_List$of(F, !0, F.$ti._eval$1("Iterable.E")), o.List_List$of(new o.MappedListIterable(T, new o._formatTableResponse_closure8(n, i), W), !0, W._eval$1("ListIterable.E")));
15650
15638
  },
15651
15639
  _formatTableData(e, n, a, i) {
15652
15640
  var s, l, p, c, M, b, O, D, $, E, g = {};
@@ -15657,15 +15645,15 @@ var Ar = Or, Ot = {};
15657
15645
  return s = g.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")));
15658
15646
  },
15659
15647
  formatTableChartData(e, n, a, i) {
15660
- var s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w, v, X = {};
15648
+ var s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w, v, X = {};
15661
15649
  if (n.length === 0)
15662
15650
  return new o.TableDataModel(o._setArrayType([], r.JSArray_TableRowModel), o._setArrayType([], r.JSArray_TableColumnModel));
15663
- for (e.isBlend && (s = o.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), z.JSArray_methods.addAll$1(s, z.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), z.JSArray_methods.addAll$1(l, z.JSArray_methods.fold$2(e.get$joinDatasources(), o._setArrayType([], r.JSArray_QueryRequestMetric), new o.formatTableChartData_closure0())), p = o._setArrayType([], r.JSArray_JoinDatasourceConfig), c = 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, c, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), D = e.get$joinDatasources().length + 1, s = r.QueryResponse, $ = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, 0, D, s), a, i), E = X.comparison = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, D, D * 2, s), a, i), s = E.rows, s.length !== 0 && (l = $.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")), c = $.columns, M = o._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), M = o.List_List$of(new o.MappedListIterable(c, new o.formatTableChartData_closure2(), M), !0, M._eval$1("ListIterable.E")), c = o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), c = o.List_List$of(new o.MappedListIterable(s, new o.formatTableChartData_closure3(), c), !0, c._eval$1("ListIterable.E")), b = E.columns, O = o._arrayInstanceType(b)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = o.compare(new o.ComparisonData(o.List_List$of(new o.MappedListIterable(b, new o.formatTableChartData_closure4(), O), !0, O._eval$1("ListIterable.E")), c), new o.ComparisonData(M, p)), p = r.TableRowModel, l = o.ListExtensions_mapIndexed(l, new o.formatTableChartData_closure5(g), p, p), $ = $.copyWith$1$rows(o.List_List$of(l, !0, l.$ti._eval$1("Iterable.E"))), p = o.ListExtensions_mapIndexed(s, new o.formatTableChartData_closure6(g), p, p), X.comparison = E.copyWith$1$rows(o.List_List$of(p, !0, p.$ti._eval$1("Iterable.E")))), s = $.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, R = o.LinkedHashMap_LinkedHashMap$_empty(l, p), L = 0; L < s.length; ++L)
15664
- W = s[L], R.$indexSet(0, W.key + "_" + W.hide, L);
15665
- for (B = o.LinkedHashMap_LinkedHashMap$_empty(l, p), L = 0; s = X.comparison.columns, L < s.length; ++L)
15666
- W = s[L], B.$indexSet(0, W.key + "_" + W.hide, L);
15651
+ for (e.isBlend && (s = o.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), z.JSArray_methods.addAll$1(s, z.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), z.JSArray_methods.addAll$1(l, z.JSArray_methods.fold$2(e.get$joinDatasources(), o._setArrayType([], r.JSArray_QueryRequestMetric), new o.formatTableChartData_closure0())), p = o._setArrayType([], r.JSArray_JoinDatasourceConfig), c = 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, c, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), D = e.get$joinDatasources().length + 1, s = r.QueryResponse, $ = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, 0, D, s), a, i), E = X.comparison = o._formatTableData(e, o.ListExtension_sublistOrEmpty(n, D, D * 2, s), a, i), s = E.rows, s.length !== 0 && (l = $.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")), c = $.columns, M = o._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), M = o.List_List$of(new o.MappedListIterable(c, new o.formatTableChartData_closure2(), M), !0, M._eval$1("ListIterable.E")), c = o._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), c = o.List_List$of(new o.MappedListIterable(s, new o.formatTableChartData_closure3(), c), !0, c._eval$1("ListIterable.E")), b = E.columns, O = o._arrayInstanceType(b)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = o.compare(new o.ComparisonData(o.List_List$of(new o.MappedListIterable(b, new o.formatTableChartData_closure4(), O), !0, O._eval$1("ListIterable.E")), c), new o.ComparisonData(M, p)), p = r.TableRowModel, l = o.ListExtensions_mapIndexed(l, new o.formatTableChartData_closure5(g), p, p), $ = $.copyWith$1$rows(o.List_List$of(l, !0, l.$ti._eval$1("Iterable.E"))), p = o.ListExtensions_mapIndexed(s, new o.formatTableChartData_closure6(g), p, p), X.comparison = E.copyWith$1$rows(o.List_List$of(p, !0, p.$ti._eval$1("Iterable.E")))), s = $.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), F = 0; F < s.length; ++F)
15652
+ W = s[F], T.$indexSet(0, W.key + "_" + W.hide, F);
15653
+ for (B = o.LinkedHashMap_LinkedHashMap$_empty(l, p), F = 0; s = X.comparison.columns, F < s.length; ++F)
15654
+ W = s[F], B.$indexSet(0, W.key + "_" + W.hide, F);
15667
15655
  for (I = o._setArrayType([], r.JSArray__ColumnMapping), s = h.length, x = 0; x < s; ++x)
15668
- W = h[x], l = W.key, w = l + "_" + W.hide, l = o.stringReplaceAllUnchecked(l, ".", "_"), p = R.$index(0, w), p == null && (p = -1), c = B.$index(0, w), I.push(new o._ColumnMapping(W, l, p, c ?? -1));
15656
+ W = h[x], l = W.key, w = l + "_" + W.hide, l = o.stringReplaceAllUnchecked(l, ".", "_"), p = T.$index(0, w), p == null && (p = -1), c = B.$index(0, w), I.push(new o._ColumnMapping(W, l, p, c ?? -1));
15669
15657
  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 = X.comparison.rows.length, l = r.TableRowModel, l = o.ListExtensions_mapIndexed($.rows, new o.formatTableChartData_closure9(X, I, a, i, s !== 0, s), l, l), $.copyWith$2$columns$rows(v, o.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")));
15670
15658
  },
15671
15659
  _formatTableResponse_closure: function(n) {
@@ -15808,7 +15796,7 @@ var Ar = Or, Ot = {};
15808
15796
  c._box_0 = n, c.columnMappings = a, c.country = i, c.timezone = s, c.hasComparison = l, c.comparisonRowsLength = p;
15809
15797
  },
15810
15798
  TZDateTime$from(e, n) {
15811
- var a = (e instanceof o.TZDateTime ? e._native : e).toUtc$0(), i = C.$get$_UTC(), s = n === i ? z.TimeZone_0_false_UTC : n.lookupTimeZone$1(e.get$millisecondsSinceEpoch()).timeZone;
15799
+ var a = (e instanceof o.TZDateTime ? e._native : e).toUtc$0(), i = L.$get$_UTC(), s = n === i ? z.TimeZone_0_false_UTC : n.lookupTimeZone$1(e.get$millisecondsSinceEpoch()).timeZone;
15812
15800
  return new o.TZDateTime(n === i ? a : a.add$1(0, o.Duration$(0, 0, s.offset, 0)), a, n, s);
15813
15801
  },
15814
15802
  TZDateTime__fourDigits(e) {
@@ -15840,7 +15828,7 @@ var Ar = Or, Ot = {};
15840
15828
  },
15841
15829
  Location: function(n, a, i, s) {
15842
15830
  var l = this;
15843
- l.name = n, l.transitionAt = a, l.transitionZone = i, l.zones = s, l._cacheEnd = l._cacheStart = 0, l.__Location__cacheZone_A = C;
15831
+ l.name = n, l.transitionAt = a, l.transitionZone = i, l.zones = s, l._cacheEnd = l._cacheStart = 0, l.__Location__cacheZone_A = L;
15844
15832
  },
15845
15833
  TimeZone: function(n, a, i) {
15846
15834
  this.offset = n, this.isDst = a, this.abbreviation = i;
@@ -15896,7 +15884,7 @@ var Ar = Or, Ot = {};
15896
15884
  return function() {
15897
15885
  return i(s, Array.prototype.slice.apply(arguments));
15898
15886
  };
15899
- }(o._callDartFunctionFast, e), n[C.$get$DART_CLOSURE_PROPERTY_NAME()] = e, e.$dart_jsFunction = n, n);
15887
+ }(o._callDartFunctionFast, e), n[L.$get$DART_CLOSURE_PROPERTY_NAME()] = e, e.$dart_jsFunction = n, n);
15900
15888
  },
15901
15889
  _callDartFunctionFast(e, n) {
15902
15890
  return o.Primitives_applyFunction(e, n, null);
@@ -15986,7 +15974,7 @@ var Ar = Or, Ot = {};
15986
15974
  }, a);
15987
15975
  },
15988
15976
  defaultLocale() {
15989
- var e = C._defaultLocale;
15977
+ var e = L._defaultLocale;
15990
15978
  return e;
15991
15979
  },
15992
15980
  dayOfYear(e, n, a) {
@@ -16031,10 +16019,10 @@ var Ar = Or, Ot = {};
16031
16019
  }
16032
16020
  },
16033
16021
  initializeDatabase(e) {
16034
- var n, a, i = C.$get$_database();
16022
+ var n, a, i = L.$get$_database();
16035
16023
  for (i._locations.clear$0(0), n = new o._SyncStarIterator(o.tzdbDeserialize(e)._outerHelper()); n.moveNext$0(); )
16036
16024
  a = n.get$current(), i._locations.$indexSet(0, a.name, a);
16037
- C.___local.__late_helper$_value = C.$get$_UTC();
16025
+ L.___local.__late_helper$_value = L.$get$_UTC();
16038
16026
  },
16039
16027
  tzdbDeserialize(e) {
16040
16028
  return o._makeSyncStarIterable(function() {
@@ -16062,24 +16050,24 @@ var Ar = Or, Ot = {};
16062
16050
  }, r.Location);
16063
16051
  },
16064
16052
  _deserializeLocation(e) {
16065
- var n, a, i, s, l = o.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), p = l.getUint32(0, !1), c = l.getUint32(4, !1), M = l.getUint32(8, !1), b = l.getUint32(12, !1), O = l.getUint32(16, !1), D = l.getUint32(20, !1), $ = l.getUint32(24, !1), E = l.getUint32(28, !1), g = z.C_AsciiCodec.decode$1(o.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + p, c)), h = o._setArrayType([], r.JSArray_String), R = o._setArrayType([], r.JSArray_TimeZone), L = r.JSArray_int, W = o._setArrayType([], L), B = o._setArrayType([], L), I = M + b;
16053
+ var n, a, i, s, l = o.NativeByteData_NativeByteData$view(e.buffer, e.byteOffset, e.byteLength), p = l.getUint32(0, !1), c = l.getUint32(4, !1), M = l.getUint32(8, !1), b = l.getUint32(12, !1), O = l.getUint32(16, !1), D = l.getUint32(20, !1), $ = l.getUint32(24, !1), E = l.getUint32(28, !1), g = z.C_AsciiCodec.decode$1(o.NativeUint8List_NativeUint8List$view(e.buffer, e.byteOffset + p, c)), h = o._setArrayType([], r.JSArray_String), T = o._setArrayType([], r.JSArray_TimeZone), F = r.JSArray_int, W = o._setArrayType([], F), B = o._setArrayType([], F), I = M + b;
16066
16054
  for (n = M, a = n; n < I; ++n)
16067
- e[n] === 0 && (L = e.buffer, i = e.byteOffset, L = new Uint8Array(L, i + a, n - a), h.push(z.C_AsciiCodec.decode$1(L)), a = n + 1);
16055
+ e[n] === 0 && (F = e.buffer, i = e.byteOffset, F = new Uint8Array(F, i + a, n - a), h.push(z.C_AsciiCodec.decode$1(F)), a = n + 1);
16068
16056
  for (a = O, n = 0; n < D; ++n, a = s)
16069
- s = a + 8, R.push(new o.TimeZone(l.getInt32(a, !1) * 1e3, l.getUint8(a + 4) === 1, h[l.getUint8(a + 5)]));
16057
+ s = a + 8, T.push(new o.TimeZone(l.getInt32(a, !1) * 1e3, l.getUint8(a + 4) === 1, h[l.getUint8(a + 5)]));
16070
16058
  for (a = $, n = 0; n < E; ++n)
16071
16059
  W.push(z.JSNumber_methods.toInt$0(l.getFloat64(a, !1)) * 1e3), a += 8;
16072
16060
  for (n = 0; n < E; ++n)
16073
16061
  B.push(l.getUint8(a)), ++a;
16074
- return o.Location$(g, W, B, R);
16062
+ return o.Location$(g, W, B, T);
16075
16063
  }
16076
16064
  }, u = {
16077
16065
  makeDispatchRecord(e, n, a, i) {
16078
16066
  return { i: e, p: n, e: a, x: i };
16079
16067
  },
16080
16068
  getNativeInterceptor(e) {
16081
- var n, a, i, s, l, p = e[T.dispatchPropertyName];
16082
- if (p == null && C.initNativeDispatchFlag == null && (o.initNativeDispatch(), p = e[T.dispatchPropertyName]), p != null) {
16069
+ var n, a, i, s, l, p = e[R.dispatchPropertyName];
16070
+ if (p == null && L.initNativeDispatchFlag == null && (o.initNativeDispatch(), p = e[R.dispatchPropertyName]), p != null) {
16083
16071
  if (n = p.p, n === !1)
16084
16072
  return p.i;
16085
16073
  if (n === !0)
@@ -16089,7 +16077,7 @@ var Ar = Or, Ot = {};
16089
16077
  if (p.e === a)
16090
16078
  throw o.wrapException(o.UnimplementedError$("Return interceptor for " + o.S(n(e, p))));
16091
16079
  }
16092
- return i = e.constructor, i == null ? s = null : (l = C._JS_INTEROP_INTERCEPTOR_TAG, l == null && (l = C._JS_INTEROP_INTERCEPTOR_TAG = T.getIsolateTag("_$dart_js")), s = i[l]), s != null || (s = o.lookupAndCacheInterceptor(e), s != null) ? s : typeof e == "function" ? z.JavaScriptFunction_methods : (n = Object.getPrototypeOf(e), n == null || n === Object.prototype ? z.PlainJavaScriptObject_methods : (typeof i == "function" && (l = C._JS_INTEROP_INTERCEPTOR_TAG, l == null && (l = C._JS_INTEROP_INTERCEPTOR_TAG = T.getIsolateTag("_$dart_js")), Object.defineProperty(i, l, { value: z.UnknownJavaScriptObject_methods, enumerable: !1, writable: !0, configurable: !0 })), z.UnknownJavaScriptObject_methods));
16080
+ return i = e.constructor, i == null ? s = null : (l = L._JS_INTEROP_INTERCEPTOR_TAG, l == null && (l = L._JS_INTEROP_INTERCEPTOR_TAG = R.getIsolateTag("_$dart_js")), s = i[l]), s != null || (s = o.lookupAndCacheInterceptor(e), s != null) ? s : typeof e == "function" ? z.JavaScriptFunction_methods : (n = Object.getPrototypeOf(e), n == null || n === Object.prototype ? z.PlainJavaScriptObject_methods : (typeof i == "function" && (l = L._JS_INTEROP_INTERCEPTOR_TAG, l == null && (l = L._JS_INTEROP_INTERCEPTOR_TAG = R.getIsolateTag("_$dart_js")), Object.defineProperty(i, l, { value: z.UnknownJavaScriptObject_methods, enumerable: !1, writable: !0, configurable: !0 })), z.UnknownJavaScriptObject_methods));
16093
16081
  },
16094
16082
  JSArray_JSArray$fixed(e, n) {
16095
16083
  if (e < 0 || e > 4294967295)
@@ -16205,7 +16193,7 @@ var Ar = Or, Ot = {};
16205
16193
  return e == null ? n == null : typeof e != "object" ? n != null && e === n : u.getInterceptor$(e).$eq(e, n);
16206
16194
  },
16207
16195
  $index$asx(e, n) {
16208
- return typeof n == "number" && (e.constructor == Array || typeof e == "string" || o.isJsIndexable(e, e[T.dispatchPropertyName])) && n >>> 0 === n && n < e.length ? e[n] : u.getInterceptor$asx(e).$index(e, n);
16196
+ return typeof n == "number" && (e.constructor == Array || typeof e == "string" || o.isJsIndexable(e, e[R.dispatchPropertyName])) && n >>> 0 === n && n < e.length ? e[n] : u.getInterceptor$asx(e).$index(e, n);
16209
16197
  },
16210
16198
  add$1$ax(e, n) {
16211
16199
  return u.getInterceptor$ax(e).add$1(e, n);
@@ -16274,7 +16262,7 @@ var Ar = Or, Ot = {};
16274
16262
  },
16275
16263
  JSString: function() {
16276
16264
  }
16277
- }, z = {}, q = [o, u, z], C = {};
16265
+ }, z = {}, q = [o, u, z], L = {};
16278
16266
  o.JS_CONST.prototype = {}, u.Interceptor.prototype = {
16279
16267
  $eq(e, n) {
16280
16268
  return e === n;
@@ -16333,7 +16321,7 @@ var Ar = Or, Ot = {};
16333
16321
  }
16334
16322
  }, u.PlainJavaScriptObject.prototype = {}, u.UnknownJavaScriptObject.prototype = {}, u.JavaScriptFunction.prototype = {
16335
16323
  toString$0(e) {
16336
- var n = e[C.$get$DART_CLOSURE_PROPERTY_NAME()];
16324
+ var n = e[L.$get$DART_CLOSURE_PROPERTY_NAME()];
16337
16325
  return n == null ? this.super$LegacyJavaScriptObject$toString(e) : "JavaScript function for " + o.S(u.toString$0$(n));
16338
16326
  }
16339
16327
  }, u.JSArray.prototype = {
@@ -17343,10 +17331,10 @@ var Ar = Or, Ot = {};
17343
17331
  $isNativeUint8List: 1
17344
17332
  }, o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {}, o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {}, o.Rti.prototype = {
17345
17333
  _eval$1(e) {
17346
- return o._Universe_evalInEnvironment(T.typeUniverse, this, e);
17334
+ return o._Universe_evalInEnvironment(R.typeUniverse, this, e);
17347
17335
  },
17348
17336
  _bind$1(e) {
17349
- return o._Universe_bind(T.typeUniverse, this, e);
17337
+ return o._Universe_bind(R.typeUniverse, this, e);
17350
17338
  }
17351
17339
  }, o._FunctionParameters.prototype = {}, o._Type.prototype = {
17352
17340
  toString$0(e) {
@@ -18255,7 +18243,7 @@ Arguments: [` + M + "]";
18255
18243
  },
18256
18244
  _byteDigest$0() {
18257
18245
  var e, n, a, i, s;
18258
- if (z.C_Endian === C.$get$Endian_host())
18246
+ if (z.C_Endian === L.$get$Endian_host())
18259
18247
  return o.NativeUint8List_NativeUint8List$view(this.digest.buffer, 0, null);
18260
18248
  for (e = this.digest, n = e.byteLength, a = new Uint8Array(n), i = o.NativeByteData_NativeByteData$view(a.buffer, 0, null), s = 0; s < 5; ++s)
18261
18249
  i.setUint32(s * 4, e[s], !1);
@@ -18319,7 +18307,7 @@ Arguments: [` + M + "]";
18319
18307
  },
18320
18308
  asDate$1$retries(e) {
18321
18309
  var n, a, i, s, l, p, c, M, b, O, D, $ = this, E = $._date;
18322
- return E != null || ($._hasAmbiguousCentury ? (E = $.year, n = E < 0 || E >= 100) : n = !0, n ? (E = $.year, a = $.month, i = $.dayOfYear, i === 0 && (i = $.day), s = $.pm, l = $.hour, s = s ? l + 12 : l, p = $._dateTimeConstructor.call$8(E, a, i, s, $.minute, $.second, $.fractionalSecond, $.utc)) : (C.$get$_clockKey(), c = o.systemTime(), $.utc && (c = c.toUtc$0()), M = $._offsetYear$2(c, -80), b = $._offsetYear$2(c, 20), E = z.JSInt_methods._tdivFast$1(M.get$year(), 100), a = z.JSInt_methods._tdivFast$1(b.get$year(), 100), i = $.year, s = $.month, l = $.dayOfYear, l === 0 && (l = $.day), O = $.pm, D = $.hour, O = O ? D + 12 : D, D = $._dateTimeConstructor, p = D.call$8(a * 100 + i, s, l, O, $.minute, $.second, $.fractionalSecond, $.utc), p.compareTo$1(0, b) <= 0 || (a = $.year, i = $.month, s = $.dayOfYear, s === 0 && (s = $.day), l = $.pm, O = $.hour, l = l ? O + 12 : O, p = D.call$8(E * 100 + a, i, s, l, $.minute, $.second, $.fractionalSecond, $.utc))), $.utc && n ? ($._date = p, E = p) : E = $._date = $._correctForErrors$2(p, e)), E;
18310
+ return E != null || ($._hasAmbiguousCentury ? (E = $.year, n = E < 0 || E >= 100) : n = !0, n ? (E = $.year, a = $.month, i = $.dayOfYear, i === 0 && (i = $.day), s = $.pm, l = $.hour, s = s ? l + 12 : l, p = $._dateTimeConstructor.call$8(E, a, i, s, $.minute, $.second, $.fractionalSecond, $.utc)) : (L.$get$_clockKey(), c = o.systemTime(), $.utc && (c = c.toUtc$0()), M = $._offsetYear$2(c, -80), b = $._offsetYear$2(c, 20), E = z.JSInt_methods._tdivFast$1(M.get$year(), 100), a = z.JSInt_methods._tdivFast$1(b.get$year(), 100), i = $.year, s = $.month, l = $.dayOfYear, l === 0 && (l = $.day), O = $.pm, D = $.hour, O = O ? D + 12 : D, D = $._dateTimeConstructor, p = D.call$8(a * 100 + i, s, l, O, $.minute, $.second, $.fractionalSecond, $.utc), p.compareTo$1(0, b) <= 0 || (a = $.year, i = $.month, s = $.dayOfYear, s === 0 && (s = $.day), l = $.pm, O = $.hour, l = l ? O + 12 : O, p = D.call$8(E * 100 + a, i, s, l, $.minute, $.second, $.fractionalSecond, $.utc))), $.utc && n ? ($._date = p, E = p) : E = $._date = $._correctForErrors$2(p, e)), E;
18323
18311
  },
18324
18312
  asDate$0() {
18325
18313
  return this.asDate$1$retries(3);
@@ -18354,19 +18342,19 @@ Arguments: [` + M + "]";
18354
18342
  },
18355
18343
  addPattern$1(e) {
18356
18344
  var n, a, i = this;
18357
- return i._formatFieldsPrivate = null, n = C.$get$dateTimePatterns(), a = i._locale, n.toString, (o.canonicalizedLocale(a) === "en_US" ? n.fallbackData : n._throwException$0()).containsKey$1(e) ? (n = C.$get$dateTimePatterns(), n.toString, i._appendPattern$2((o.canonicalizedLocale(a) === "en_US" ? n.fallbackData : n._throwException$0()).$index(0, e), " ")) : i._appendPattern$2(e, " "), i;
18345
+ return i._formatFieldsPrivate = null, n = L.$get$dateTimePatterns(), a = i._locale, n.toString, (o.canonicalizedLocale(a) === "en_US" ? n.fallbackData : n._throwException$0()).containsKey$1(e) ? (n = L.$get$dateTimePatterns(), n.toString, i._appendPattern$2((o.canonicalizedLocale(a) === "en_US" ? n.fallbackData : n._throwException$0()).$index(0, e), " ")) : i._appendPattern$2(e, " "), i;
18358
18346
  },
18359
18347
  get$dateSymbols() {
18360
18348
  var e, n = this._locale;
18361
- return n !== C.lastDateSymbolLocale && (C.lastDateSymbolLocale = n, e = C.$get$_dateTimeSymbols(), e.toString, C.cachedDateSymbols = o.canonicalizedLocale(n) === "en_US" ? e.fallbackData : e._throwException$0()), n = C.cachedDateSymbols, n.toString, n;
18349
+ return n !== L.lastDateSymbolLocale && (L.lastDateSymbolLocale = n, e = L.$get$_dateTimeSymbols(), e.toString, L.cachedDateSymbols = o.canonicalizedLocale(n) === "en_US" ? e.fallbackData : e._throwException$0()), n = L.cachedDateSymbols, n.toString, n;
18362
18350
  },
18363
18351
  get$useNativeDigits() {
18364
18352
  var e = this._useNativeDigits;
18365
- return e == null && (C.DateFormat__useNativeDigitsByDefault.$index(0, this._locale), e = this._useNativeDigits = !0), e;
18353
+ return e == null && (L.DateFormat__useNativeDigitsByDefault.$index(0, this._locale), e = this._useNativeDigits = !0), e;
18366
18354
  },
18367
18355
  get$digitMatcher() {
18368
18356
  var e = this, n = e._digitMatcher;
18369
- return n != null || (n = C.DateFormat__digitMatchers.putIfAbsent$2(e.get$localeZero(), e.get$_initDigitMatcher()), e._digitMatcher = n, n.toString), n;
18357
+ return n != null || (n = L.DateFormat__digitMatchers.putIfAbsent$2(e.get$localeZero(), e.get$_initDigitMatcher()), e._digitMatcher = n, n.toString), n;
18370
18358
  },
18371
18359
  get$localeZeroCodeUnit() {
18372
18360
  var e = this._localeZeroCodeUnit;
@@ -18378,15 +18366,15 @@ Arguments: [` + M + "]";
18378
18366
  },
18379
18367
  _localizeDigits$1(e) {
18380
18368
  var n, a, i, s, l, p, c, M = this;
18381
- if (M.get$useNativeDigits(), n = M._localeZeroCodeUnit, a = C.$get$asciiZeroCodeUnit(), n == a)
18369
+ if (M.get$useNativeDigits(), n = M._localeZeroCodeUnit, a = L.$get$asciiZeroCodeUnit(), n == a)
18382
18370
  return e;
18383
18371
  for (n = e.length, i = o.List_List$filled(n, 0, !1, r.int), s = M._locale, l = 0; l < n; ++l)
18384
- p = z.JSString_methods._codeUnitAt$1(e, l), c = M._localeZeroCodeUnit, c == null && (c = M._localeZero, c == null && (c = M._useNativeDigits, c == null && (C.DateFormat__useNativeDigitsByDefault.$index(0, s), c = M._useNativeDigits = !0), c && (s !== C.lastDateSymbolLocale && (C.lastDateSymbolLocale = s, c = C.$get$_dateTimeSymbols(), c.toString, C.cachedDateSymbols = o.canonicalizedLocale(s) === "en_US" ? c.fallbackData : c._throwException$0()), C.cachedDateSymbols.toString), c = M._localeZero = "0"), c = M._localeZeroCodeUnit = z.JSString_methods._codeUnitAt$1(c, 0)), i[l] = p + c - a;
18372
+ p = z.JSString_methods._codeUnitAt$1(e, l), c = M._localeZeroCodeUnit, c == null && (c = M._localeZero, c == null && (c = M._useNativeDigits, c == null && (L.DateFormat__useNativeDigitsByDefault.$index(0, s), c = M._useNativeDigits = !0), c && (s !== L.lastDateSymbolLocale && (L.lastDateSymbolLocale = s, c = L.$get$_dateTimeSymbols(), c.toString, L.cachedDateSymbols = o.canonicalizedLocale(s) === "en_US" ? c.fallbackData : c._throwException$0()), L.cachedDateSymbols.toString), c = M._localeZero = "0"), c = M._localeZeroCodeUnit = z.JSString_methods._codeUnitAt$1(c, 0)), i[l] = p + c - a;
18385
18373
  return o.String_String$fromCharCodes(i, 0, null);
18386
18374
  },
18387
18375
  _initDigitMatcher$0() {
18388
18376
  var e, n;
18389
- return this.get$useNativeDigits(), e = this._localeZeroCodeUnit, n = C.$get$asciiZeroCodeUnit(), e == n ? C.$get$asciiDigitMatcher() : (e = r.int, o.RegExp_RegExp("^[" + o.String_String$fromCharCodes(o.Iterable_Iterable$generate(10, new o.DateFormat__initDigitMatcher_closure(), e).map$1$1(0, new o.DateFormat__initDigitMatcher_closure0(this), e).toList$0(0), 0, null) + "]+", !1));
18377
+ return this.get$useNativeDigits(), e = this._localeZeroCodeUnit, n = L.$get$asciiZeroCodeUnit(), e == n ? L.$get$asciiDigitMatcher() : (e = r.int, o.RegExp_RegExp("^[" + o.String_String$fromCharCodes(o.Iterable_Iterable$generate(10, new o.DateFormat__initDigitMatcher_closure(), e).map$1$1(0, new o.DateFormat__initDigitMatcher_closure0(this), e).toList$0(0), 0, null) + "]+", !1));
18390
18378
  },
18391
18379
  _parsePatternHelper$1(e) {
18392
18380
  var n, a;
@@ -18394,7 +18382,7 @@ Arguments: [` + M + "]";
18394
18382
  },
18395
18383
  _match$1(e) {
18396
18384
  var n, a, i, s;
18397
- for (n = 0; a = C.$get$DateFormat__matchers(), n < 3; ++n)
18385
+ for (n = 0; a = L.$get$DateFormat__matchers(), n < 3; ++n)
18398
18386
  if (i = a[n].firstMatch$1(e), i != null)
18399
18387
  return a = o.DateFormat__fieldConstructors()[n], s = i.__js_helper$_match[0], s.toString, a.call$2(s, this);
18400
18388
  return null;
@@ -18599,7 +18587,7 @@ Arguments: [` + M + "]";
18599
18587
  var i, s, l, p, c = n.stringMatch$1(e.peek$1(e.contents.length - e._string_stack$_index));
18600
18588
  if (c == null || c.length === 0)
18601
18589
  return this.throwFormatException$1(e);
18602
- if (i = c.length, e._string_stack$_index += i, s = C.$get$asciiZeroCodeUnit(), a !== s) {
18590
+ if (i = c.length, e._string_stack$_index += i, s = L.$get$asciiZeroCodeUnit(), a !== s) {
18603
18591
  for (i > 4294967295 && o.throwExpression(o.RangeError$range(i, 0, 4294967295, "length", null)), l = u.JSArray_JSArray$markFixed(new Array(i), r.int), p = 0; p < i; ++p)
18604
18592
  l[p] = z.JSString_methods._codeUnitAt$1(c, p) - a + s;
18605
18593
  c = o.String_String$fromCharCodes(l, 0, null);
@@ -18754,7 +18742,7 @@ Arguments: [` + M + "]";
18754
18742
  }, o.Jiffy.prototype = {
18755
18743
  get$dateTime() {
18756
18744
  var e = this.__Jiffy__dateTime_A;
18757
- return e === C && o.throwUnnamedLateFieldNI(), e;
18745
+ return e === L && o.throwUnnamedLateFieldNI(), e;
18758
18746
  },
18759
18747
  _parse$2(e, n) {
18760
18748
  var a;
@@ -18799,7 +18787,7 @@ Arguments: [` + M + "]";
18799
18787
  },
18800
18788
  get$day() {
18801
18789
  var e, n = this.__Jiffy__dateTime_A;
18802
- switch (n === C && o.throwUnnamedLateFieldNI(), e = n.get$weekday() - 1, C.Jiffy____defaultLocale._readField$0().startOfWeek$0()) {
18790
+ switch (n === L && o.throwUnnamedLateFieldNI(), e = n.get$weekday() - 1, L.Jiffy____defaultLocale._readField$0().startOfWeek$0()) {
18803
18791
  case z.StartOfWeek_2:
18804
18792
  break;
18805
18793
  case z.StartOfWeek_1:
@@ -18815,28 +18803,28 @@ Arguments: [` + M + "]";
18815
18803
  var n, a, i, s, l, p, c, M, b = this;
18816
18804
  switch (e) {
18817
18805
  case z.Units_0:
18818
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), l = b.__Jiffy__dateTime_A.get$minute(), p = b.__Jiffy__dateTime_A.get$second(), c = b.__Jiffy__dateTime_A.get$millisecond(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, c, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18806
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), l = b.__Jiffy__dateTime_A.get$minute(), p = b.__Jiffy__dateTime_A.get$second(), c = b.__Jiffy__dateTime_A.get$millisecond(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, c, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18819
18807
  break;
18820
18808
  case z.Units_1:
18821
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), l = b.__Jiffy__dateTime_A.get$minute(), p = b.__Jiffy__dateTime_A.get$second(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18809
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), l = b.__Jiffy__dateTime_A.get$minute(), p = b.__Jiffy__dateTime_A.get$second(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18822
18810
  break;
18823
18811
  case z.Units_2:
18824
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), l = b.__Jiffy__dateTime_A.get$minute(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18812
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), l = b.__Jiffy__dateTime_A.get$minute(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18825
18813
  break;
18826
18814
  case z.Units_3:
18827
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18815
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), s = b.__Jiffy__dateTime_A.get$hour(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18828
18816
  break;
18829
18817
  case z.Units_4:
18830
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18818
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), i = b.__Jiffy__dateTime_A.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18831
18819
  break;
18832
18820
  case z.Units_5:
18833
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), M = n.subtract$1(o.Duration$(b.get$day() - 1, 0, 0, 0)), n = M.get$year(), a = M.get$month(), i = M.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18821
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), M = n.subtract$1(o.Duration$(b.get$day() - 1, 0, 0, 0)), n = M.get$year(), a = M.get$month(), i = M.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18834
18822
  break;
18835
18823
  case z.Units_6:
18836
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), n = o.Primitives_valueFromDecomposedDate(n, a, 1, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18824
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = b.__Jiffy__dateTime_A.get$month(), n = o.Primitives_valueFromDecomposedDate(n, a, 1, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18837
18825
  break;
18838
18826
  case z.Units_7:
18839
- n = b.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), n = o.Primitives_valueFromDecomposedDate(n, 1, 1, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18827
+ n = b.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), n = o.Primitives_valueFromDecomposedDate(n, 1, 1, 0, 0, 0, 0, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), b.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18840
18828
  break;
18841
18829
  }
18842
18830
  return o.Jiffy$(b);
@@ -18845,43 +18833,43 @@ Arguments: [` + M + "]";
18845
18833
  var n, a, i, s, l, p, c, M, b, O = this;
18846
18834
  switch (e) {
18847
18835
  case z.Units_0:
18848
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), l = O.__Jiffy__dateTime_A.get$minute(), p = O.__Jiffy__dateTime_A.get$second(), c = O.__Jiffy__dateTime_A.get$millisecond(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, c, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18836
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), l = O.__Jiffy__dateTime_A.get$minute(), p = O.__Jiffy__dateTime_A.get$second(), c = O.__Jiffy__dateTime_A.get$millisecond(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, c, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18849
18837
  break;
18850
18838
  case z.Units_1:
18851
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), l = O.__Jiffy__dateTime_A.get$minute(), p = O.__Jiffy__dateTime_A.get$second(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18839
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), l = O.__Jiffy__dateTime_A.get$minute(), p = O.__Jiffy__dateTime_A.get$second(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, p, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18852
18840
  break;
18853
18841
  case z.Units_2:
18854
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), l = O.__Jiffy__dateTime_A.get$minute(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18842
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), l = O.__Jiffy__dateTime_A.get$minute(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, l, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18855
18843
  break;
18856
18844
  case z.Units_3:
18857
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18845
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), s = O.__Jiffy__dateTime_A.get$hour(), n = o.Primitives_valueFromDecomposedDate(n, a, i, s, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18858
18846
  break;
18859
18847
  case z.Units_4:
18860
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18848
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), a = O.__Jiffy__dateTime_A.get$month(), i = O.__Jiffy__dateTime_A.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18861
18849
  break;
18862
18850
  case z.Units_5:
18863
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), M = n.add$1(0, o.Duration$(7 - O.get$day(), 0, 0, 0)), n = M.get$year(), a = M.get$month(), i = M.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18851
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), M = n.add$1(0, o.Duration$(7 - O.get$day(), 0, 0, 0)), n = M.get$year(), a = M.get$month(), i = M.get$day(), n = o.Primitives_valueFromDecomposedDate(n, a, i, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18864
18852
  break;
18865
18853
  case z.Units_6:
18866
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), b = z.List_mC8[n.get$month()], n = O.__Jiffy__dateTime_A.get$year(), z.JSInt_methods.$mod(n, 4) === 0 ? n = z.JSInt_methods.$mod(n, 100) !== 0 || z.JSInt_methods.$mod(n, 400) === 0 : n = !1, n && O.__Jiffy__dateTime_A.get$month() === 2 && (b = 29), n = O.__Jiffy__dateTime_A.get$year(), a = O.__Jiffy__dateTime_A.get$month(), n = o.Primitives_valueFromDecomposedDate(n, a, b, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18854
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), b = z.List_mC8[n.get$month()], n = O.__Jiffy__dateTime_A.get$year(), z.JSInt_methods.$mod(n, 4) === 0 ? n = z.JSInt_methods.$mod(n, 100) !== 0 || z.JSInt_methods.$mod(n, 400) === 0 : n = !1, n && O.__Jiffy__dateTime_A.get$month() === 2 && (b = 29), n = O.__Jiffy__dateTime_A.get$year(), a = O.__Jiffy__dateTime_A.get$month(), n = o.Primitives_valueFromDecomposedDate(n, a, b, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18867
18855
  break;
18868
18856
  case z.Units_7:
18869
- n = O.__Jiffy__dateTime_A, n === C && o.throwUnnamedLateFieldNI(), n = n.get$year(), n = o.Primitives_valueFromDecomposedDate(n, 12, 31, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18857
+ n = O.__Jiffy__dateTime_A, n === L && o.throwUnnamedLateFieldNI(), n = n.get$year(), n = o.Primitives_valueFromDecomposedDate(n, 12, 31, 23, 59, 59, 999, !1), o._isInt(n) || o.throwExpression(o.argumentErrorValue(n)), O.__Jiffy__dateTime_A = new o.DateTime(n, !1);
18870
18858
  break;
18871
18859
  }
18872
18860
  return o.Jiffy$(O);
18873
18861
  },
18874
18862
  isBefore$2(e, n) {
18875
18863
  var a, i = this._parse$1(e);
18876
- return n === z.Units_0 ? (a = this.__Jiffy__dateTime_A, a === C && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() < i.get$millisecondsSinceEpoch()) : (a = o.Jiffy$(this), a.endOf$1(n), a = a.__Jiffy__dateTime_A, a === C && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() < i.get$millisecondsSinceEpoch());
18864
+ return n === z.Units_0 ? (a = this.__Jiffy__dateTime_A, a === L && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() < i.get$millisecondsSinceEpoch()) : (a = o.Jiffy$(this), a.endOf$1(n), a = a.__Jiffy__dateTime_A, a === L && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() < i.get$millisecondsSinceEpoch());
18877
18865
  },
18878
18866
  isAfter$2(e, n) {
18879
18867
  var a, i, s = this._parse$1(e);
18880
- return n === z.Units_0 ? (a = this.__Jiffy__dateTime_A, a === C && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() > s.get$millisecondsSinceEpoch()) : (a = o.Jiffy$(this), a.startOf$1(n), a = a.__Jiffy__dateTime_A, a === C && o.throwUnnamedLateFieldNI(), i = a.get$millisecondsSinceEpoch(), s.get$millisecondsSinceEpoch() < i);
18868
+ return n === z.Units_0 ? (a = this.__Jiffy__dateTime_A, a === L && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() > s.get$millisecondsSinceEpoch()) : (a = o.Jiffy$(this), a.startOf$1(n), a = a.__Jiffy__dateTime_A, a === L && o.throwUnnamedLateFieldNI(), i = a.get$millisecondsSinceEpoch(), s.get$millisecondsSinceEpoch() < i);
18881
18869
  },
18882
18870
  isSame$2(e, n) {
18883
18871
  var a, i, s, l, p = this, c = p._parse$1(e);
18884
- return n === z.Units_0 ? (a = p.__Jiffy__dateTime_A, a === C && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() === c.get$millisecondsSinceEpoch()) : (a = o.Jiffy$(p), a.startOf$1(n), a = a.__Jiffy__dateTime_A, a === C && o.throwUnnamedLateFieldNI(), i = a.get$millisecondsSinceEpoch(), a = o.Jiffy$(p), a.endOf$1(n), a = a.__Jiffy__dateTime_A, a === C && o.throwUnnamedLateFieldNI(), s = a.get$millisecondsSinceEpoch(), l = c.get$millisecondsSinceEpoch(), i <= l && l <= s);
18872
+ return n === z.Units_0 ? (a = p.__Jiffy__dateTime_A, a === L && o.throwUnnamedLateFieldNI(), a.get$millisecondsSinceEpoch() === c.get$millisecondsSinceEpoch()) : (a = o.Jiffy$(p), a.startOf$1(n), a = a.__Jiffy__dateTime_A, a === L && o.throwUnnamedLateFieldNI(), i = a.get$millisecondsSinceEpoch(), a = o.Jiffy$(p), a.endOf$1(n), a = a.__Jiffy__dateTime_A, a === L && o.throwUnnamedLateFieldNI(), s = a.get$millisecondsSinceEpoch(), l = c.get$millisecondsSinceEpoch(), i <= l && l <= s);
18885
18873
  }
18886
18874
  }, o.Jiffy__parseMap_closure.prototype = {
18887
18875
  call$2(e, n) {
@@ -19107,8 +19095,8 @@ Arguments: [` + M + "]";
19107
19095
  }
19108
19096
  }, o.QueryResponse_fromJson_closure.prototype = {
19109
19097
  call$1(e) {
19110
- var n, a, i = null, s = "aggregationType", l = "optionType", p = "timeFormatter", c = "formatter", M = o.EnumByName_byName(z.List_xDH, e.$index(0, "schema")), b = e.$index(0, "label"), O = o.EnumByName_byName(z.List_eOU, e.$index(0, "dataType")), D = o.EnumByName_byName(z.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), $ = e.$index(0, "id"), E = e.$index(0, s) != null ? o.EnumByName_byName(z.List_yzJ, e.$index(0, s)) : i, g = e.$index(0, l) != null ? o.EnumByName_byName(z.List_Ioo, e.$index(0, l)) : i, h = e.$index(0, "decimal"), R = e.$index(0, p) != null ? o.EnumByName_byName(z.List_YsB, e.$index(0, p)) : i, L = e.$index(0, c) != null ? o.EnumByName_byName(z.List_jXq, e.$index(0, c)) : i, W = e.$index(0, "nullable");
19111
- return W == null && (W = !1), n = e.$index(0, "hide"), n == null && (n = !1), a = e.$index(0, "dateComparison"), new o.QueryResponseColumn(M, b, O, D, $, E, g, h, R, L, W, n, a ?? !1);
19098
+ var n, a, i = null, s = "aggregationType", l = "optionType", p = "timeFormatter", c = "formatter", M = o.EnumByName_byName(z.List_xDH, e.$index(0, "schema")), b = e.$index(0, "label"), O = o.EnumByName_byName(z.List_eOU, e.$index(0, "dataType")), D = o.EnumByName_byName(z.List_FIELD_TYPE_0_FIELD_TYPE_1, e.$index(0, "fieldType")), $ = e.$index(0, "id"), E = e.$index(0, s) != null ? o.EnumByName_byName(z.List_yzJ, e.$index(0, s)) : i, g = e.$index(0, l) != null ? o.EnumByName_byName(z.List_Ioo, e.$index(0, l)) : i, h = e.$index(0, "decimal"), T = e.$index(0, p) != null ? o.EnumByName_byName(z.List_YsB, e.$index(0, p)) : i, F = e.$index(0, c) != null ? o.EnumByName_byName(z.List_jXq, e.$index(0, c)) : i, W = e.$index(0, "nullable");
19099
+ return W == null && (W = !1), n = e.$index(0, "hide"), n == null && (n = !1), a = e.$index(0, "dateComparison"), new o.QueryResponseColumn(M, b, O, D, $, E, g, h, T, F, W, n, a ?? !1);
19112
19100
  },
19113
19101
  $signature: 96
19114
19102
  }, o.QueryResponse_fromJson_closure0.prototype = {
@@ -19143,7 +19131,7 @@ Arguments: [` + M + "]";
19143
19131
  }, o.DataTypeExtension_toDisplay_closure.prototype = {
19144
19132
  call$1(e) {
19145
19133
  var n = this;
19146
- return o.DataTypeExtension__toDisplay(n._this, n.aggregationType, C.DataTypeExtension__currencyMapping.$index(0, n.country), n.decimal, n.dimensionOption, n.formatter, n.nullable, n.timeFormatter, n.timezone, e);
19134
+ return o.DataTypeExtension__toDisplay(n._this, n.aggregationType, L.DataTypeExtension__currencyMapping.$index(0, n.country), n.decimal, n.dimensionOption, n.formatter, n.nullable, n.timeFormatter, n.timezone, e);
19147
19135
  },
19148
19136
  $signature: 67
19149
19137
  }, o.XYDatasetModel.prototype = {
@@ -19912,14 +19900,14 @@ Arguments: [` + M + "]";
19912
19900
  $signature: 0
19913
19901
  }, o._formatTableResponse_closure5.prototype = {
19914
19902
  call$2(e, n) {
19915
- var a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I, x, w = null, v = r.JSArray_List_dynamic, X = o._setArrayType([[]], v), K = o._setArrayType([[]], v);
19903
+ var a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I, x, w = null, v = r.JSArray_List_dynamic, X = o._setArrayType([[]], v), K = o._setArrayType([[]], v);
19916
19904
  for (v = this.headers, a = n.value, i = r.dynamic, s = r.JSArray_String, l = r.String, p = this.metricColumns, c = 0; c < v.length; ++c)
19917
19905
  if (M = v[c], 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)
19918
19906
  for (D = b.firstWhere$1(M, new o._formatTableResponse__closure6()), $ = b.fold$2(M, !0, new o._formatTableResponse__closure7(n)), b = X.length, E = D.type, g = D.columnValue, h = 0; h < X.length; X.length === b || (0, o.throwConcurrentModificationError)(X), ++h)
19919
- R = X[h], $ ? (L = a.$index(0, g), W = R.length, c >= W && z.JSArray_methods.addAll$1(R, o.List_List$filled(c - W + 1, w, !1, i)), R[c] = L) : (L = E == null ? w : o.DataTypeExtension_toData(E, w), W = R.length, c >= W && z.JSArray_methods.addAll$1(R, o.List_List$filled(c - W + 1, w, !1, i)), R[c] = L);
19907
+ T = X[h], $ ? (F = a.$index(0, g), W = T.length, c >= W && z.JSArray_methods.addAll$1(T, o.List_List$filled(c - W + 1, w, !1, i)), T[c] = F) : (F = E == null ? w : o.DataTypeExtension_toData(E, w), W = T.length, c >= W && z.JSArray_methods.addAll$1(T, o.List_List$filled(c - W + 1, w, !1, i)), T[c] = F);
19920
19908
  else if (z.JSArray_methods.contains$1(o._setArrayType(["_metric_name", "_metric_value"], s), O))
19921
19909
  for (b = O === "_metric_value", E = O === "_metric_name", B = 0; B < p.length; ++B)
19922
- I = p[B], o.ListExtension_elementAtOrNull(X, B) == null && (X.push(o.List_List$of(X[0], !0, i)), K.push(o.List_List$of(K[0], !0, i))), E ? (g = X[B], L = I.label, W = g.length, c >= W && z.JSArray_methods.addAll$1(g, o.List_List$filled(c - W + 1, w, !1, i)), g[c] = L, K[B].push(L)) : b && (g = X[B], L = a.$index(0, I.id), W = g.length, c >= W && z.JSArray_methods.addAll$1(g, o.List_List$filled(c - W + 1, w, !1, i)), g[c] = L);
19910
+ I = p[B], o.ListExtension_elementAtOrNull(X, B) == null && (X.push(o.List_List$of(X[0], !0, i)), K.push(o.List_List$of(K[0], !0, i))), E ? (g = X[B], F = I.label, W = g.length, c >= W && z.JSArray_methods.addAll$1(g, o.List_List$filled(c - W + 1, w, !1, i)), g[c] = F, K[B].push(F)) : b && (g = X[B], F = a.$index(0, I.id), W = g.length, c >= W && z.JSArray_methods.addAll$1(g, o.List_List$filled(c - W + 1, w, !1, i)), g[c] = F);
19923
19911
  else
19924
19912
  for (x = 0; x < X.length; ++x)
19925
19913
  b = X[x], E = a.$index(0, O), g = b.length, c >= g && z.JSArray_methods.addAll$1(b, o.List_List$filled(c - g + 1, w, !1, i)), b[c] = E, K[x].push(a.$index(0, O));
@@ -20162,9 +20150,9 @@ Arguments: [` + M + "]";
20162
20150
  $signature: 99
20163
20151
  }, o.formatTableChartData_closure9.prototype = {
20164
20152
  call$2(e, n) {
20165
- var a, i, s, l, p, c, M, b, O, D, $, E, g, h, R, L, W, B, I = this, x = [], w = [], v = n.cells, X = u.getInterceptor$asx(v), K = X.get$length(v);
20153
+ var a, i, s, l, p, c, M, b, O, D, $, E, g, h, T, F, W, B, I = this, x = [], w = [], v = n.cells, X = u.getInterceptor$asx(v), K = X.get$length(v);
20166
20154
  for (a = I.columnMappings, i = a.length, s = I.hasComparison, l = I.country, p = I.timezone, c = e < I.comparisonRowsLength, M = I._box_0, b = 0; b < a.length; a.length === i || (0, o.throwConcurrentModificationError)(a), ++b)
20167
- O = a[b], D = O.mainIndex, $ = D >= 0 && D < K ? X.$index(v, D) : o.ListExtension_elementAtOrNull(v, D), D = O.column, E = D.type, g = E == null, x.push(g ? null : o.DataTypeExtension_toDisplay(E, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, $)), s && (c ? (h = M.comparison.rows[e].cells, R = u.getInterceptor$asx(h), L = R.get$length(h), W = O.comparisonIndex, B = W >= 0 && W < L ? R.$index(h, W) : o.ListExtension_elementAtOrNull(h, W)) : B = o.ListExtension_elementAtOrNull([], O.comparisonIndex), w.push(g ? null : o.DataTypeExtension_toDisplay(E, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, B)));
20155
+ O = a[b], D = O.mainIndex, $ = D >= 0 && D < K ? X.$index(v, D) : o.ListExtension_elementAtOrNull(v, D), D = O.column, E = D.type, g = E == null, x.push(g ? null : o.DataTypeExtension_toDisplay(E, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, $)), s && (c ? (h = M.comparison.rows[e].cells, T = u.getInterceptor$asx(h), F = T.get$length(h), W = O.comparisonIndex, B = W >= 0 && W < F ? T.$index(h, W) : o.ListExtension_elementAtOrNull(h, W)) : B = o.ListExtension_elementAtOrNull([], O.comparisonIndex), w.push(g ? null : o.DataTypeExtension_toDisplay(E, D.aggregationType, l, D.decimal, D.dimensionOption, D.formatter, !1, D.timeFormatter, p, B)));
20168
20156
  return n.copyWith$2$cells$comparisonCells(x, w);
20169
20157
  },
20170
20158
  $signature: 7
@@ -20173,10 +20161,10 @@ Arguments: [` + M + "]";
20173
20161
  return this._native.get$millisecondsSinceEpoch();
20174
20162
  },
20175
20163
  get$isUtc() {
20176
- return this.location === C.$get$_UTC();
20164
+ return this.location === L.$get$_UTC();
20177
20165
  },
20178
20166
  toUtc$0() {
20179
- var e = C.$get$_UTC();
20167
+ var e = L.$get$_UTC();
20180
20168
  return this.location === e ? this : o.TZDateTime$from(this._native, e);
20181
20169
  },
20182
20170
  toString$0(e) {
@@ -20184,7 +20172,7 @@ Arguments: [` + M + "]";
20184
20172
  },
20185
20173
  _toString$1$iso8601(e) {
20186
20174
  var n, a = this.timeZone.offset, i = this._localDateTime, s = o.TZDateTime__fourDigits(i.get$year()), l = o.TZDateTime__twoDigits(i.get$month()), p = o.TZDateTime__twoDigits(i.get$day()), c = o.TZDateTime__twoDigits(i.get$hour()), M = o.TZDateTime__twoDigits(i.get$minute()), b = o.TZDateTime__twoDigits(i.get$second()), O = o.TZDateTime__threeDigits(i.get$millisecond()), D = i.get$microsecond() === 0 ? "" : o.TZDateTime__threeDigits(i.get$microsecond());
20187
- return this.location === C.$get$_UTC() ? s + "-" + l + "-" + p + " " + c + ":" + M + ":" + b + "." + O + D + "Z" : (a > 0 ? i = 1 : i = a < 0 ? -1 : a, n = i >= 0 ? "+" : "-", a = z.JSInt_methods._tdivFast$1(Math.abs(a), 1e3), s + "-" + l + "-" + p + " " + c + ":" + M + ":" + b + "." + O + D + n + o.TZDateTime__twoDigits(z.JSInt_methods._tdivFast$1(a, 3600)) + o.TZDateTime__twoDigits(z.JSInt_methods._tdivFast$1(z.JSInt_methods.$mod(a, 3600), 60)));
20175
+ return this.location === L.$get$_UTC() ? s + "-" + l + "-" + p + " " + c + ":" + M + ":" + b + "." + O + D + "Z" : (a > 0 ? i = 1 : i = a < 0 ? -1 : a, n = i >= 0 ? "+" : "-", a = z.JSInt_methods._tdivFast$1(Math.abs(a), 1e3), s + "-" + l + "-" + p + " " + c + ":" + M + ":" + b + "." + O + D + n + o.TZDateTime__twoDigits(z.JSInt_methods._tdivFast$1(a, 3600)) + o.TZDateTime__twoDigits(z.JSInt_methods._tdivFast$1(z.JSInt_methods.$mod(a, 3600), 60)));
20188
20176
  },
20189
20177
  add$1(e, n) {
20190
20178
  return o.TZDateTime$from(this._native.add$1(0, n), this.location);
@@ -20248,14 +20236,14 @@ Arguments: [` + M + "]";
20248
20236
  Location$4(e, n, a, i) {
20249
20237
  var s, l, p, c, M, b, O, D, $ = this;
20250
20238
  for (s = $.transitionAt, l = $.zones, p = $.transitionZone, c = 0; M = s.length, c < M; ++c)
20251
- b = s[c], O = C.$get$Location__cacheNow(), b <= O ? (D = c + 1, O = D === M || O < s[D]) : O = !1, O && ($._cacheStart = b, $._cacheEnd = 864e13, O = c + 1, O < M && ($._cacheEnd = s[O]), $.__Location__cacheZone_A = l[p[c]]);
20239
+ b = s[c], O = L.$get$Location__cacheNow(), b <= O ? (D = c + 1, O = D === M || O < s[D]) : O = !1, O && ($._cacheStart = b, $._cacheEnd = 864e13, O = c + 1, O < M && ($._cacheEnd = s[O]), $.__Location__cacheZone_A = l[p[c]]);
20252
20240
  },
20253
20241
  lookupTimeZone$1(e) {
20254
20242
  var n, a, i, s, l, p, c = this, M = c.zones;
20255
20243
  if (M.length === 0)
20256
20244
  return z.TzInstant_TimeZone_0_false_UTC;
20257
20245
  if (e >= c._cacheStart && e < c._cacheEnd)
20258
- return M = c.__Location__cacheZone_A, M === C && o.throwUnnamedLateFieldNI(), new o.TzInstant(M);
20246
+ return M = c.__Location__cacheZone_A, M === L && o.throwUnnamedLateFieldNI(), new o.TzInstant(M);
20259
20247
  if (n = c.transitionAt, a = n.length, a === 0 || e < n[0])
20260
20248
  return i = c._firstZone$0(), n.length !== 0 && z.JSArray_methods.get$first(n), new o.TzInstant(i);
20261
20249
  for (s = 0; l = a - s, l > 1; )
@@ -20368,7 +20356,7 @@ Arguments: [` + M + "]";
20368
20356
  var n = t.mixin, a = t.inherit, i = t.inheritMany;
20369
20357
  a(o.Object, null), i(o.Object, [o.JS_CONST, u.Interceptor, u.ArrayIterator, o.Error, o._ListBase_Object_ListMixin, o.Iterable, o.ListIterator, o.Iterator, o.ExpandIterator, o.EmptyIterator, o.FixedLengthListMixin, o.UnmodifiableListMixin, o.Symbol, o.MapView, o.ConstantMap, o.JSInvocationMirror, o.Closure, o.TypeErrorDecoder, o.NullThrownFromJavaScriptException, o._Required, o.MapMixin, o.LinkedHashMapCell, o.LinkedHashMapKeyIterator, o.JSSyntaxRegExp, o._MatchImplementation, o._AllMatchesIterator, o.StringMatch, o._StringAllMatchesIterator, o._Cell, o.Rti, o._FunctionParameters, o._Type, o._IterationMarker, o._SyncStarIterator, o.StreamTransformerBase, o.__SetBase_Object_SetMixin, o._LinkedHashSetCell, o._LinkedHashSetIterator, o.ListMixin, o._UnmodifiableMapMixin, o.SetMixin, o.Codec, o._JsonStringifier, o._Utf8Encoder, o.DateTime, o.Duration, o._Enum, o.OutOfMemoryError, o.StackOverflowError, o._Exception, o.FormatException, o.Null, o.Sink, o.StringBuffer, o.Endian, o.Digest, o.HashSink, o.DateSymbols, o.DateBuilder, o.DateFormat, o._DateFormatField, o.StringStack, o.UninitializedLocaleData, o.LocaleDataException, o.Jiffy, o.Locale, o.JiffyException, o.QueryRequestCommonField, o.QueryResponseColumn, o.DateTimeRange, o.QueryResponse, o.QueryResponseRow, o.XYDatasetModel, o.BaseXYChartDataModel, o.DateComparison, o.CircularDatasetModel, o.CircularDataModel, o.ScorecardDataModel, o.SparklineDataModel, o.TableColumnModel, o.TableRowModel, o.TableDataModel, o.BaseDatasourceConfigModel, o.DataSourceDrillConfig, o.DataSourceRowColumnConfig, o.JoinDatasourceCondition, o.ComparisonDataColumn, o.RowInfo, o.ComparisonResult, o.ComparisonData, o._Header, o._ColumnMapping, o.TZDateTime, o.TimeZoneInitException, o.LocationNotFoundException, o.Location, o.TimeZone, o.TzInstant, o.LocationDatabase]), i(u.Interceptor, [u.JSBool, u.JSNull, u.JavaScriptObject, u.JSArray, u.JSNumber, u.JSString, o.NativeByteBuffer, o.NativeTypedData]), a(u.LegacyJavaScriptObject, u.JavaScriptObject), i(u.LegacyJavaScriptObject, [u.PlainJavaScriptObject, u.UnknownJavaScriptObject, u.JavaScriptFunction, o.BufferModule, o.BufferConstants, o.Buffer, o.ConsoleModule, o.Console, o.EventEmitter, o.Promise, o.Date, o.JsError, o.Atomics, o.Modules, o.Module, o.Net, o.Socket, o.NetAddress, o.NetServer, o.NodeJsError, o.Process, o.CPUUsage, o.Release, o.StreamModule, o.Readable, o.Writable, o.Duplex, o.Transform, o.WritableOptions, o.ReadableOptions, o.Immediate, o.Timeout, o.TTY, o.Util, o.Exports, o._Exports]), a(u.JSUnmodifiableArray, u.JSArray), i(u.JSNumber, [u.JSInt, u.JSNumNotInt]), i(o.Error, [o.LateError, o.TypeError, o.JsNoSuchMethodError, o.UnknownJsTypeError, o.RuntimeError, o._Error, o.JsonUnsupportedObjectError, o.AssertionError, o.NullThrownError, o.ArgumentError, o.NoSuchMethodError, o.UnsupportedError, o.UnimplementedError, o.StateError, o.ConcurrentModificationError, o.CyclicInitializationError]), a(o.ListBase, o._ListBase_Object_ListMixin), i(o.ListBase, [o.UnmodifiableListBase, o.ListSlice, o.TypedDataBuffer]), a(o.CodeUnits, o.UnmodifiableListBase), i(o.Iterable, [o.EfficientLengthIterable, o.MappedIterable, o.WhereIterable, o.ExpandIterable, o.SkipIterable, o._ConstantMapKeyIterable, o.IterableBase, o._StringAllMatchesIterable]), i(o.EfficientLengthIterable, [o.ListIterable, o.EmptyIterable, o.LinkedHashMapKeyIterable]), i(o.ListIterable, [o.SubListIterable, o.MappedListIterable, o.ReversedListIterable, o._JsonMapKeyIterable, o._GeneratorIterable]), a(o.EfficientLengthMappedIterable, o.MappedIterable), i(o.Iterator, [o.MappedIterator, o.WhereIterator, o.SkipIterator]), a(o.EfficientLengthSkipIterable, o.SkipIterable), a(o._UnmodifiableMapView_MapView__UnmodifiableMapMixin, o.MapView), a(o.UnmodifiableMapView, o._UnmodifiableMapView_MapView__UnmodifiableMapMixin), a(o.ConstantMapView, o.UnmodifiableMapView), a(o.ConstantStringMap, o.ConstantMap), i(o.Closure, [o.Closure2Args, o.TearOffClosure, o.JsLinkedHashMap_values_closure, o.initHooks_closure, o.initHooks_closure1, o._LinkedCustomHashMap_closure, o.DateTime_parse_parseIntOrZero, o.DateTime_parse_parseMilliAndMicroseconds, o.DateFormat_dateTimeConstructor_closure, o.DateFormat__checkDateOnly_closure, o.DateFormat__initDigitMatcher_closure, o.DateFormat__initDigitMatcher_closure0, o._DateFormatPatternField_parseStandaloneDay_closure, o.Jiffy__parseString_closure, o.uniqueAlias_closure, o.QueryResponse_fromJson_closure, o.QueryResponse_fromJson_closure0, o.QueryResponse_toJson_closure, o.QueryResponse_toJson_closure0, o.DataTypeExtension__formatTime_closure, o.DataTypeExtension__formatTime_closure0, o.DataTypeExtension_toDisplay_closure, o.BaseXYChartDataModel_toJson_closure, o.CircularDataModel_toJson_closure, o.SparklineDataModel_toJson_closure, o.TableDataModel_toJson_closure, o.TableDataModel_toJson_closure0, o.BaseDatasourceConfigModel_drilledDimensionIds_closure, o.BaseDatasourceConfigModel_metricIds_closure, o.BaseDatasourceConfigModel_toJson_closure, o.BaseDatasourceConfigModel_toJson_closure0, o.BaseDatasourceConfigModel_toJson_closure1, o.BaseDatasourceConfigModel_toJson_closure2, o.BaseDatasourceConfigModel_toJson_closure3, o.BaseDatasourceConfigModel_toJson_closure4, o.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, o.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, o.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, o.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, o.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, o.DataSourceDrillConfig_drilledDimensions_closure, o.DataSourceRowColumnConfig_rowIds_closure, o.DataSourceRowColumnConfig_rowIds_closure0, o.DataSourceRowColumnConfig_rowIds_closure2, o.DataSourceRowColumnConfig_rowIds_closure1, o.DataSourceRowColumnConfig_columnIds_closure, o.DataSourceRowColumnConfig_columnIds_closure0, o.DataSourceRowColumnConfig_columnIds_closure1, o.TableDatasourceConfigModel_joinDatasources_closure, o.TableDatasourceConfigModel_toJson_closure, o.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, o.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, o.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, o.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, o.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, o.JoinDatasourceConfig_toJson_closure, o.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, o.JoinDatasourceCondition_toJson_closure, o.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, o.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, o.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, o.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, o._formatRows_closure, o._formatRows___closure, o._formatRows___closure0, o.accumulate__closure0, o.formatBaseXYChartData_closure, o.formatBaseXYChartData_closure0, o.formatBaseXYChartData_closure1, o.formatBaseXYChartData_closure2, o.formatBaseXYChartData__closure0, o.formatBaseXYChartData_closure3, o.formatBaseXYChartData__closure, o.formatBaseXYChartData_closure4, o.formatBaseXYChartData_expandRowsByMetric, o.formatBaseXYChartData_expandRowsByMetric_closure, o.formatBaseXYChartData_expandRowsByMetric__closure, o.formatBaseXYChartData_closure5, o.formatBaseXYChartData_closure6, o._formatRows_closure0, o._formatRows___closure1, o._formatRows___closure2, o.formatCircularChartData_closure, o.formatCircularChartData_closure0, o.formatCircularChartData_closure1, o.formatCircularChartData_closure2, o._getRowInfo_closure, o._getRowInfo__closure, o.compare_closure, o.compare_closure0, o._formatSparkline_closure, o._formatSparkline___closure, o._formatSparkline_closure1, o._formatSparkline_closure0, o._formatSparkline_closure2, o.formatScoreCardChartData_closure, o._formatTableResponse_closure, o._formatTableResponse__closure13, o._formatTableResponse_closure0, o._formatTableResponse_closure1, o._formatTableResponse__closure12, o._formatTableResponse__closure11, o._formatTableResponse_closure3, o._formatTableResponse___closure, o._formatTableResponse___closure0, o._formatTableResponse__closure4, o._formatTableResponse__closure5, o._formatTableResponse__closure6, o._formatTableResponse__closure3, o._formatTableResponse_closure8, o._formatTableResponse__closure, o._formatTableResponse__closure0, o._formatTableResponse__closure1, o._formatTableResponse__closure2, o._formatTableData_closure0, o._formatTableData__closure2, o._formatTableData_closure1, o._formatTableData__closure1, o._formatTableData___closure0, o._formatTableData_closure2, o._formatTableData___closure, o._formatTableData_closure3, o.formatTableChartData_closure1, o.formatTableChartData_closure2, o.formatTableChartData_closure3, o.formatTableChartData_closure4, o.formatTableChartData_closure7, o.formatTableChartData_closure8, o.formatChartData_closure]), i(o.Closure2Args, [o.Primitives_functionNoSuchMethod_closure, o.JsLinkedHashMap_addAll_closure, o.initHooks_closure0, o.LinkedHashMap_LinkedHashMap$from_closure, o.MapBase_mapToString_closure, o._JsonStringifier_writeMap_closure, o.NoSuchMethodError_toString_closure, o.DateFormat__fieldConstructors_closure, o.DateFormat__fieldConstructors_closure0, o.DateFormat__fieldConstructors_closure1, o.Jiffy__parseMap_closure, o.DataSourceDrillConfig__availableIds_closure, o.DataSourceRowColumnConfig__availableIds_closure, o.DataSourceRowColumnConfig__availableIds_closure0, o.TableDatasourceConfigModel_drilledDimensions_closure, o.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, o.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, o._formatRows__closure, o.accumulate_closure, o.accumulate__closure, o._formatRows__closure0, o.compare_closure1, o.compare_closure3, o.compare_closure2, o.compare_closure4, o._formatSparkline__closure, o._formatTableResponse_closure2, o._formatTableResponse_closure4, o._formatTableResponse__closure9, o._formatTableResponse__closure10, o._formatTableResponse_closure5, o._formatTableResponse__closure7, o._formatTableResponse__closure8, o._formatTableResponse_closure6, o._formatTableResponse_closure7, o._formatTableData_closure, o._formatTableData__closure0, o._formatTableData__closure, o.formatTableChartData_closure, o.formatTableChartData_closure0, o.formatTableChartData_closure5, o.formatTableChartData_closure6, o.formatTableChartData_closure9]), a(o.NullError, o.TypeError), i(o.TearOffClosure, [o.StaticClosure, o.BoundClosure]), a(o.MapBase, o.MapMixin), i(o.MapBase, [o.JsLinkedHashMap, o._JsonMap]), i(o.IterableBase, [o._AllMatchesIterable, o._SyncStarIterable]), i(o.NativeTypedData, [o.NativeByteData, o.NativeTypedArray]), a(o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, o.NativeTypedArray), a(o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), a(o.NativeTypedArrayOfInt, o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), i(o.NativeTypedArrayOfInt, [o.NativeUint16List, o.NativeUint32List, o.NativeUint8List]), a(o._TypeError, o._Error), a(o._LinkedCustomHashMap, o.JsLinkedHashMap), a(o._SetBase, o.__SetBase_Object_SetMixin), a(o._LinkedHashSet, o._SetBase), i(o.Codec, [o.Encoding, o.JsonCodec]), i(o.Encoding, [o.AsciiCodec, o.Utf8Codec]), a(o.Converter, o.StreamTransformerBase), i(o.Converter, [o._UnicodeSubsetDecoder, o.JsonEncoder, o.JsonDecoder, o.Utf8Encoder]), a(o.AsciiDecoder, o._UnicodeSubsetDecoder), a(o.JsonCyclicError, o.JsonUnsupportedObjectError), a(o._JsonStringStringifier, o._JsonStringifier), i(o.ArgumentError, [o.RangeError, o.IndexError]), a(o.DigestSink, o.Sink), a(o._Sha1Sink, o.HashSink), i(o._DateFormatField, [o._DateFormatLiteralField, o._DateFormatQuotedField, o._DateFormatPatternField]), i(o._Enum, [o.StartOfWeek, o.Units, o.SCHEMA_NAME, o.DATA_TYPE, o.AGGREGATION_TYPE, o.COMPARISON_OPERATOR, o.DIMENSION_OPTION, o.TIME_FORMATTER, o.FORMATTER_TYPE, o.PERIOD_TYPE, o.SORT_TYPE, o.FIELD_TYPE, o.ChartType, o.SparklineType]), i(o.Locale, [o.ArLyLocale, o.ArSaMaDzKwTnLocale, o.AzLocale, o.BnLocale, o.DeLocale, o.EnLocale, o.EsLocale, o.FaLocale, o.FrLocale, o.HiLocale, o.IdLocale, o.ItLocale, o.JaLocale, o.KoLocale, o.NbLocale, o.NlLocale, o.PlLocale, o.PtLocale, o.RuLocale, o.SvLocale, o.ThLocale, o.TrLocale, o.UkLocale, o.ZhCnLocale, o.ZhLocale]), i(o.NodeJsError, [o.JsAssertionError, o.JsRangeError, o.JsReferenceError, o.JsSyntaxError, o.JsTypeError, o.JsSystemError]), i(o.Socket, [o.TTYReadStream, o.TTYWriteStream]), i(o.QueryRequestCommonField, [o.QueryRequestDimension, o.QueryRequestMetric, o.QueryRequestFilter, o.QueryRequestSort]), i(o.BaseDatasourceConfigModel, [o._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, o.ScorecardDatasourceConfigModel, o._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, o._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, o._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), a(o.CircularDatasourceConfigModel, o._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), a(o._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, o._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), a(o.TableDatasourceConfigModel, o._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), a(o.JoinDatasourceConfig, o._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), a(o.BaseXYDatasourceConfigModel, o._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), a(o._IntBuffer, o.TypedDataBuffer), a(o.Uint8Buffer, o._IntBuffer), n(o.UnmodifiableListBase, o.UnmodifiableListMixin), n(o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, o.ListMixin), n(o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, o.FixedLengthListMixin), n(o._ListBase_Object_ListMixin, o.ListMixin), n(o._UnmodifiableMapView_MapView__UnmodifiableMapMixin, o._UnmodifiableMapMixin), n(o.__SetBase_Object_SetMixin, o.SetMixin), n(o._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, o.DataSourceDrillConfig), n(o._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, o.DataSourceRowColumnConfig), n(o._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, o.DataSourceRowColumnConfig), n(o._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, o.DataSourceDrillConfig), n(o._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, o.DataSourceDrillConfig);
20370
20358
  }();
20371
- var T = {
20359
+ var R = {
20372
20360
  typeUniverse: { eC: /* @__PURE__ */ new Map(), tR: {}, eT: {}, tPV: {}, sEA: [] },
20373
20361
  mangledGlobalNames: { int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List" },
20374
20362
  mangledNames: {},
@@ -20377,7 +20365,7 @@ Arguments: [` + M + "]";
20377
20365
  leafTags: null,
20378
20366
  arrayRti: Symbol("$ti")
20379
20367
  };
20380
- o._Universe_addRules(T.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"],"Iterable":["1"],"JSIndexable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"JSIndexable":["1"]},"JSNumber":{"double":[],"num":[]},"JSInt":{"double":[],"int":[],"num":[]},"JSNumNotInt":{"double":[],"num":[]},"JSString":{"String":[],"JSIndexable":["@"]},"LateError":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.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"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"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"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"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"},"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"],"Iterable":["int"]},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2"},"_LinkedHashSet":{"SetMixin":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["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"],"Iterable":["1"]},"_JsonMap":{"MapMixin":["String","@"],"Map":["String","@"],"MapMixin.V":"@"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"double":{"num":[]},"int":{"num":[]},"List":{"EfficientLengthIterable":["1"],"Iterable":["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"],"ListIterable.E":"1","Iterable.E":"1"},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"ListSlice":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.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":[]},"TZDateTime":{"DateTime":[]},"TypedDataBuffer":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_IntBuffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8Buffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"}}')), o._Universe_addErasedTypes(T.typeUniverse, JSON.parse('{"ArrayIterator":1,"EfficientLengthIterable":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"ExpandIterator":2,"SkipIterator":1,"EmptyIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"ConstantMap":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,"_Header":1}'));
20368
+ o._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"],"Iterable":["1"],"JSIndexable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"JSIndexable":["1"]},"JSNumber":{"double":[],"num":[]},"JSInt":{"double":[],"int":[],"num":[]},"JSNumNotInt":{"double":[],"num":[]},"JSString":{"String":[],"JSIndexable":["@"]},"LateError":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.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"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"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"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"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"},"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"],"Iterable":["int"]},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"JSIndexable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.V":"2"},"_LinkedHashSet":{"SetMixin":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["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"],"Iterable":["1"]},"_JsonMap":{"MapMixin":["String","@"],"Map":["String","@"],"MapMixin.V":"@"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"double":{"num":[]},"int":{"num":[]},"List":{"EfficientLengthIterable":["1"],"Iterable":["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"],"ListIterable.E":"1","Iterable.E":"1"},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"ListSlice":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.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":[]},"TZDateTime":{"DateTime":[]},"TypedDataBuffer":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_IntBuffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8Buffer":{"TypedDataBuffer":["int"],"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"}}')), o._Universe_addErasedTypes(R.typeUniverse, JSON.parse('{"ArrayIterator":1,"EfficientLengthIterable":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"ExpandIterator":2,"SkipIterator":1,"EmptyIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"ConstantMap":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,"_Header":1}'));
20381
20369
  var d = {
20382
20370
  Cannot: "Cannot change the length of a fixed-length list",
20383
20371
  __s___: "^\\s*-?\\d+(\\.\\d+)?\\s*-\\s*-?\\d+(\\.\\d+)?\\s*$"
@@ -20561,71 +20549,71 @@ Arguments: [` + M + "]";
20561
20549
  return a;
20562
20550
  }, z.C_JsonCodec = new o.JsonCodec(), z.C_OutOfMemoryError = new o.OutOfMemoryError(), z.C_Utf8Codec = new o.Utf8Codec(), z.C_Utf8Encoder = new o.Utf8Encoder(), z.C__Required = new o._Required(), z.ChartType_0 = new o.ChartType("CIRCULAR"), z.ChartType_1 = new o.ChartType("TABLE"), z.ChartType_3 = new o.ChartType("SCORECARD"), z.ChartType_4 = new o.ChartType("LINECHART"), z.ChartType_5 = new o.ChartType("BARCHART"), z.ChartType_6 = new o.ChartType("CLUSTEREDSTACKBARCHART"), z.ChartType_8 = new o.ChartType("STACKLINECHART"), z.ChartType_9 = new o.ChartType("STACKBARCHART"), z.DATA_TYPE_0 = new o.DATA_TYPE("STRING"), z.DATA_TYPE_1 = new o.DATA_TYPE("TIMESTAMP"), z.DATA_TYPE_2 = new o.DATA_TYPE("BOOL"), z.DATA_TYPE_3 = new o.DATA_TYPE("NUMERIC"), z.DIMENSION_OPTION_0 = new o.DIMENSION_OPTION("DATE_TIME"), z.DIMENSION_OPTION_1 = new o.DIMENSION_OPTION("HOUR"), z.DIMENSION_OPTION_11 = new o.DIMENSION_OPTION("YEAR_MONTH_DAY"), z.DIMENSION_OPTION_2 = new o.DIMENSION_OPTION("DAY"), z.DIMENSION_OPTION_3 = new o.DIMENSION_OPTION("WEEK"), z.DIMENSION_OPTION_4 = new o.DIMENSION_OPTION("MONTH"), z.DIMENSION_OPTION_6 = new o.DIMENSION_OPTION("HOUR_OF_DAY"), z.DIMENSION_OPTION_7 = new o.DIMENSION_OPTION("DAY_OF_WEEK"), z.FIELD_TYPE_1 = new o.FIELD_TYPE("METRIC"), z.FORMATTER_TYPE_0 = new o.FORMATTER_TYPE("HOUR"), z.FORMATTER_TYPE_1 = new o.FORMATTER_TYPE("MINUTE"), z.FORMATTER_TYPE_2 = new o.FORMATTER_TYPE("SECOND"), z.FORMATTER_TYPE_3 = new o.FORMATTER_TYPE("HOUR_NO_DAY"), z.FORMATTER_TYPE_4 = new o.FORMATTER_TYPE("MINUTE_NO_DAY"), z.FORMATTER_TYPE_5 = new o.FORMATTER_TYPE("SECOND_NO_DAY"), z.FORMATTER_TYPE_6 = new o.FORMATTER_TYPE("COMPACT_HOUR_MINUTE"), z.FORMATTER_TYPE_7 = new o.FORMATTER_TYPE("PERCENT"), z.JsonDecoder_null = new o.JsonDecoder(null), z.JsonEncoder_null = new o.JsonEncoder(null), z.COMPARISON_OPERATOR_1 = new o.COMPARISON_OPERATOR("NOT_EQUAL"), z.COMPARISON_OPERATOR_2 = new o.COMPARISON_OPERATOR("GREATER_THAN"), z.COMPARISON_OPERATOR_3 = new o.COMPARISON_OPERATOR("LESS_THAN"), z.COMPARISON_OPERATOR_4 = new o.COMPARISON_OPERATOR("GREATER_THAN_OR_EQUAL"), z.COMPARISON_OPERATOR_5 = new o.COMPARISON_OPERATOR("LESS_THAN_OR_EQUAL"), z.COMPARISON_OPERATOR_7 = new o.COMPARISON_OPERATOR("LIKE"), z.COMPARISON_OPERATOR_8 = new o.COMPARISON_OPERATOR("NOT_LIKE"), z.COMPARISON_OPERATOR_9 = new o.COMPARISON_OPERATOR("AND"), z.COMPARISON_OPERATOR_10 = new o.COMPARISON_OPERATOR("OR"), z.List_2bH = o._setArrayType(n([z.COMPARISON_OPERATOR_0, z.COMPARISON_OPERATOR_1, z.COMPARISON_OPERATOR_2, z.COMPARISON_OPERATOR_3, z.COMPARISON_OPERATOR_4, z.COMPARISON_OPERATOR_5, z.COMPARISON_OPERATOR_6, z.COMPARISON_OPERATOR_7, z.COMPARISON_OPERATOR_8, z.COMPARISON_OPERATOR_9, z.COMPARISON_OPERATOR_10]), o.findType("JSArray<COMPARISON_OPERATOR>")), z.List_3US = o._setArrayType(n(["S", "M", "T", "W", "T", "F", "S"]), r.JSArray_String), z.List_6xs = o._setArrayType(n(["Before Christ", "Anno Domini"]), r.JSArray_String), z.List_AM_PM = o._setArrayType(n(["AM", "PM"]), r.JSArray_String), z.List_BC_AD = o._setArrayType(n(["BC", "AD"]), r.JSArray_String), z.FIELD_TYPE_0 = new o.FIELD_TYPE("DIMENSION"), z.List_FIELD_TYPE_0_FIELD_TYPE_1 = o._setArrayType(n([z.FIELD_TYPE_0, z.FIELD_TYPE_1]), o.findType("JSArray<FIELD_TYPE>")), z.DIMENSION_OPTION_5 = new o.DIMENSION_OPTION("TIME_OF_DAY"), z.DIMENSION_OPTION_8 = new o.DIMENSION_OPTION("DAY_OF_MONTH"), z.DIMENSION_OPTION_9 = new o.DIMENSION_OPTION("MONTH_OF_YEAR"), z.DIMENSION_OPTION_10 = new o.DIMENSION_OPTION("YEAR"), z.List_Ioo = o._setArrayType(n([z.DIMENSION_OPTION_0, z.DIMENSION_OPTION_1, z.DIMENSION_OPTION_2, z.DIMENSION_OPTION_3, z.DIMENSION_OPTION_4, z.DIMENSION_OPTION_5, z.DIMENSION_OPTION_6, z.DIMENSION_OPTION_7, z.DIMENSION_OPTION_8, z.DIMENSION_OPTION_9, z.DIMENSION_OPTION_10, z.DIMENSION_OPTION_11]), o.findType("JSArray<DIMENSION_OPTION>")), z.PERIOD_TYPE_0 = new o.PERIOD_TYPE("MTD"), z.List_PERIOD_TYPE_0 = o._setArrayType(n([z.PERIOD_TYPE_0]), o.findType("JSArray<PERIOD_TYPE>")), z.List_Q1_Q2_Q3_Q4 = o._setArrayType(n(["Q1", "Q2", "Q3", "Q4"]), r.JSArray_String), z.SORT_TYPE_0 = new o.SORT_TYPE("ASC"), z.SORT_TYPE_1 = new o.SORT_TYPE("DESC"), z.List_SORT_TYPE_0_SORT_TYPE_1 = o._setArrayType(n([z.SORT_TYPE_0, z.SORT_TYPE_1]), o.findType("JSArray<SORT_TYPE>")), z.TIME_FORMATTER_0 = new o.TIME_FORMATTER("HOUR"), z.TIME_FORMATTER_1 = new o.TIME_FORMATTER("MINUTE"), z.TIME_FORMATTER_2 = new o.TIME_FORMATTER("SECOND"), z.TIME_FORMATTER_3 = new o.TIME_FORMATTER("HOUR_NO_DAY"), z.TIME_FORMATTER_4 = new o.TIME_FORMATTER("MINUTE_NO_DAY"), z.TIME_FORMATTER_5 = new o.TIME_FORMATTER("SECOND_NO_DAY"), z.List_YsB = o._setArrayType(n([z.TIME_FORMATTER_0, z.TIME_FORMATTER_1, z.TIME_FORMATTER_2, z.TIME_FORMATTER_3, z.TIME_FORMATTER_4, z.TIME_FORMATTER_5]), o.findType("JSArray<TIME_FORMATTER>")), z.List_bJM = o._setArrayType(n(["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]), r.JSArray_String), z.List_cIc = o._setArrayType(n(["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]), r.JSArray_String), z.ChartType_2 = new o.ChartType("LIST"), z.ChartType_7 = new o.ChartType("COLUMNCHART"), z.ChartType_10 = new o.ChartType("STACKCOLUMNCHART"), z.ChartType_11 = new o.ChartType("SPACER"), z.List_eAf = o._setArrayType(n([z.ChartType_0, z.ChartType_1, z.ChartType_2, z.ChartType_3, z.ChartType_4, z.ChartType_5, z.ChartType_6, z.ChartType_7, z.ChartType_8, z.ChartType_9, z.ChartType_10, z.ChartType_11]), o.findType("JSArray<ChartType>")), z.List_eOU = o._setArrayType(n([z.DATA_TYPE_0, z.DATA_TYPE_1, z.DATA_TYPE_2, z.DATA_TYPE_3]), o.findType("JSArray<DATA_TYPE>")), z.List_empty = o._setArrayType(n([]), r.JSArray_QueryRequestDimension), z.List_empty0 = o._setArrayType(n([]), r.JSArray_dynamic), z.List_gc6 = o._setArrayType(n(["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]), r.JSArray_String), z.List_h8w = o._setArrayType(n(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]), r.JSArray_String), z.FORMATTER_TYPE_8 = new o.FORMATTER_TYPE("IMAGE"), z.List_jXq = o._setArrayType(n([z.FORMATTER_TYPE_0, z.FORMATTER_TYPE_1, z.FORMATTER_TYPE_2, z.FORMATTER_TYPE_3, z.FORMATTER_TYPE_4, z.FORMATTER_TYPE_5, z.FORMATTER_TYPE_6, z.FORMATTER_TYPE_7, z.FORMATTER_TYPE_8]), o.findType("JSArray<FORMATTER_TYPE>")), z.List_mC8 = o._setArrayType(n([0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]), r.JSArray_int), z.List_qpm = o._setArrayType(n(["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"]), r.JSArray_String), z.List_wMy = o._setArrayType(n(["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]), r.JSArray_String), z.SCHEMA_NAME_0 = new o.SCHEMA_NAME("BILL"), z.SCHEMA_NAME_1 = new o.SCHEMA_NAME("COMPLETE_TIME_BILL"), z.SCHEMA_NAME_2 = new o.SCHEMA_NAME("BUSINESS"), z.SCHEMA_NAME_3 = new o.SCHEMA_NAME("COUNTER"), z.SCHEMA_NAME_4 = new o.SCHEMA_NAME("DRAWER"), z.SCHEMA_NAME_5 = new o.SCHEMA_NAME("FLATTEN_ITEM"), z.SCHEMA_NAME_6 = new o.SCHEMA_NAME("PARENT_FLATTEN_ITEM"), z.SCHEMA_NAME_7 = new o.SCHEMA_NAME("ADDON_FLATTEN_ITEM"), z.SCHEMA_NAME_8 = new o.SCHEMA_NAME("ITEM"), z.SCHEMA_NAME_9 = new o.SCHEMA_NAME("SUB_ITEM"), z.SCHEMA_NAME_10 = new o.SCHEMA_NAME("PAYMENT"), z.SCHEMA_NAME_11 = new o.SCHEMA_NAME("PAYMENT_TIME_PAYMENT"), z.SCHEMA_NAME_12 = new o.SCHEMA_NAME("CHARGE"), z.SCHEMA_NAME_13 = new o.SCHEMA_NAME("RECORD"), z.SCHEMA_NAME_14 = new o.SCHEMA_NAME("RESTAURANT"), z.SCHEMA_NAME_15 = new o.SCHEMA_NAME("RESTAURANT_FEATURE"), z.SCHEMA_NAME_16 = new o.SCHEMA_NAME("SLOT"), z.SCHEMA_NAME_17 = new o.SCHEMA_NAME("STAFF"), z.SCHEMA_NAME_18 = new o.SCHEMA_NAME("TIMESHEET"), z.SCHEMA_NAME_19 = new o.SCHEMA_NAME("TIMESHEET_RECORD"), z.SCHEMA_NAME_20 = new o.SCHEMA_NAME("DISCOUNT"), z.SCHEMA_NAME_21 = new o.SCHEMA_NAME("ADJUSTMENT"), z.SCHEMA_NAME_22 = new o.SCHEMA_NAME("INVENTORY_ADJUSTMENT"), z.SCHEMA_NAME_23 = new o.SCHEMA_NAME("INVENTORY_ADJUSTMENT_SKU"), z.SCHEMA_NAME_24 = new o.SCHEMA_NAME("INVENTORY_ADJUSTMENT_PHYSICAL_SKU"), z.SCHEMA_NAME_25 = new o.SCHEMA_NAME("CLOSING_SKU"), z.SCHEMA_NAME_26 = new o.SCHEMA_NAME("CLOSING_DRAFT"), z.SCHEMA_NAME_27 = new o.SCHEMA_NAME("CLOSING_DRAFT_SKU"), z.SCHEMA_NAME_28 = new o.SCHEMA_NAME("PURCHASE_ORDER"), z.SCHEMA_NAME_29 = new o.SCHEMA_NAME("PURCHASE_ORDER_ITEM"), z.SCHEMA_NAME_30 = new o.SCHEMA_NAME("PURCHASE_ORDER_TEMPLATE"), z.SCHEMA_NAME_31 = new o.SCHEMA_NAME("PURCHASE_ORDER_TEMPLATE_ITEM"), z.SCHEMA_NAME_32 = new o.SCHEMA_NAME("PURCHASE_ORDER_DELIVERY_ORDER"), z.SCHEMA_NAME_33 = new o.SCHEMA_NAME("PURCHASE_ORDER_DELIVERY_FULFILLMENT"), z.SCHEMA_NAME_34 = new o.SCHEMA_NAME("PURCHASE_ORDER_DELIVERY_ORDER_SKU"), z.SCHEMA_NAME_35 = new o.SCHEMA_NAME("PURCHASE_ORDER_DELIVERY_FULFILLMENT_SKU"), z.SCHEMA_NAME_36 = new o.SCHEMA_NAME("INTERNAL_PURCHASE_ORDER"), z.SCHEMA_NAME_37 = new o.SCHEMA_NAME("INTERNAL_PURCHASE_ORDER_ITEM"), z.SCHEMA_NAME_38 = new o.SCHEMA_NAME("INTERNAL_PURCHASE_ORDER_DELIVERY_ORDER"), z.SCHEMA_NAME_39 = new o.SCHEMA_NAME("INTERNAL_PURCHASE_ORDER_DELIVERY_FULFILLMENT"), z.SCHEMA_NAME_40 = new o.SCHEMA_NAME("INTERNAL_PURCHASE_ORDER_DELIVERY_ORDER_SKU"), z.SCHEMA_NAME_41 = new o.SCHEMA_NAME("INTERNAL_PURCHASE_ORDER_DELIVERY_FULFILLMENT_SKU"), z.SCHEMA_NAME_42 = new o.SCHEMA_NAME("VOUCHER_CLAIM"), z.SCHEMA_NAME_43 = new o.SCHEMA_NAME("VOUCHER_CLAIM_REDEMPTION"), z.SCHEMA_NAME_44 = new o.SCHEMA_NAME("USER"), z.SCHEMA_NAME_45 = new o.SCHEMA_NAME("MEMBER"), z.SCHEMA_NAME_46 = new o.SCHEMA_NAME("MEMBER_V2"), z.SCHEMA_NAME_47 = new o.SCHEMA_NAME("INVENTORY_WAREHOUSE_LOCATION"), z.SCHEMA_NAME_48 = new o.SCHEMA_NAME("INVENTORY_RESTAURANT_LOCATION"), z.SCHEMA_NAME_49 = new o.SCHEMA_NAME("MEMBER_STORE_PURCHASE"), z.SCHEMA_NAME_50 = new o.SCHEMA_NAME("MEMBER_STORE_PURCHASE_PAYMENT"), z.SCHEMA_NAME_51 = new o.SCHEMA_NAME("MEMBER_TITLE"), z.SCHEMA_NAME_52 = new o.SCHEMA_NAME("MEMBERSHIP"), z.SCHEMA_NAME_53 = new o.SCHEMA_NAME("MEMBERSHIP_TITLE"), z.SCHEMA_NAME_54 = new o.SCHEMA_NAME("CREDIT_TRANSACTION"), z.SCHEMA_NAME_55 = new o.SCHEMA_NAME("MENU_V3_GROUP"), z.SCHEMA_NAME_56 = new o.SCHEMA_NAME("MENU_V4_GROUP"), z.SCHEMA_NAME_57 = new o.SCHEMA_NAME("MENU_V3_SKU"), z.SCHEMA_NAME_58 = new o.SCHEMA_NAME("MENU_V4_SKU"), z.SCHEMA_NAME_59 = new o.SCHEMA_NAME("MENU_V3_ITEM"), z.SCHEMA_NAME_60 = new o.SCHEMA_NAME("MENU_V4_ITEM"), z.SCHEMA_NAME_61 = new o.SCHEMA_NAME("MENU_V4_CATALOG_ITEM"), z.SCHEMA_NAME_62 = new o.SCHEMA_NAME("STOCK"), z.SCHEMA_NAME_63 = new o.SCHEMA_NAME("REVIEW"), z.SCHEMA_NAME_64 = new o.SCHEMA_NAME("CAMPAIGN"), z.SCHEMA_NAME_65 = new o.SCHEMA_NAME("COLLECTIBLE_CONFIG"), z.SCHEMA_NAME_66 = new o.SCHEMA_NAME("COLLECTIBLE_TRANSACTION"), z.SCHEMA_NAME_67 = new o.SCHEMA_NAME("CAMPAIGN_TIER"), z.SCHEMA_NAME_68 = new o.SCHEMA_NAME("STORE_TRANSACTION"), z.SCHEMA_NAME_69 = new o.SCHEMA_NAME("STORE_BUNDLE"), z.SCHEMA_NAME_70 = new o.SCHEMA_NAME("COLLECTIBLE_COLLECTION"), z.SCHEMA_NAME_71 = new o.SCHEMA_NAME("KITCHEN_STATION"), z.SCHEMA_NAME_72 = new o.SCHEMA_NAME("REFUND_BILL"), z.SCHEMA_NAME_73 = new o.SCHEMA_NAME("MENU_V4_ITEM_INVENTORY_BINDING"), z.SCHEMA_NAME_74 = new o.SCHEMA_NAME("INVENTORY_V1_FLATTEN_INVENTORY"), z.SCHEMA_NAME_75 = new o.SCHEMA_NAME("INVENTORY_V1_RECIPE"), z.SCHEMA_NAME_76 = new o.SCHEMA_NAME("ITEM_MOVEMENT"), z.SCHEMA_NAME_77 = new o.SCHEMA_NAME("UNIT_COST_HISTORY"), z.SCHEMA_NAME_78 = new o.SCHEMA_NAME("DS_BILL_ITEM"), z.SCHEMA_NAME_79 = new o.SCHEMA_NAME("DS_MENU_PRODUCT"), z.SCHEMA_NAME_80 = new o.SCHEMA_NAME("DS_MENU_PRODUCT_2"), z.SCHEMA_NAME_81 = new o.SCHEMA_NAME("DS_BILL_ITEM_PRODUCT"), z.SCHEMA_NAME_82 = new o.SCHEMA_NAME("RECOMMENDATION_CALL"), z.SCHEMA_NAME_83 = new o.SCHEMA_NAME("VN_E_INVOICE_SUBMISSION"), z.SCHEMA_NAME_84 = new o.SCHEMA_NAME("DAILY_FORECAST_SALE"), z.SCHEMA_NAME_85 = new o.SCHEMA_NAME("HOURLY_FORECAST_SALE"), z.SCHEMA_NAME_86 = new o.SCHEMA_NAME("CHANGE_PAYMENT_ACTIVITY"), z.SCHEMA_NAME_87 = new o.SCHEMA_NAME("SALE_PAYMENT"), z.SCHEMA_NAME_88 = new o.SCHEMA_NAME("SALE_TRANSACTION"), z.SCHEMA_NAME_89 = new o.SCHEMA_NAME("POS_OVERRIDE_ITEM_LOG"), z.SCHEMA_NAME_90 = new o.SCHEMA_NAME("WASTAGE_ITEM"), z.SCHEMA_NAME_91 = new o.SCHEMA_NAME("INVENTORY_SKU_BALANCE"), z.SCHEMA_NAME_92 = new o.SCHEMA_NAME("INVENTORY_V1_SKU"), z.SCHEMA_NAME_93 = new o.SCHEMA_NAME("PROMOTION"), z.SCHEMA_NAME_94 = new o.SCHEMA_NAME("PRODUCT_POS_OVERRIDE_V4_ITEM"), z.SCHEMA_NAME_95 = new o.SCHEMA_NAME("SMS_CREDIT_TRANSACTION"), z.SCHEMA_NAME_96 = new o.SCHEMA_NAME("REMOTE_ORDER"), z.SCHEMA_NAME_97 = new o.SCHEMA_NAME("REMOTE_ORDER_FLATTEN_ITEM"), z.SCHEMA_NAME_98 = new o.SCHEMA_NAME("TPL_GRABFOOD_ORDER"), z.SCHEMA_NAME_99 = new o.SCHEMA_NAME("TPL_FOODPANDA_ORDER"), z.SCHEMA_NAME_100 = new o.SCHEMA_NAME("TPL_SHOPEE_FOOD_ORDER"), z.SCHEMA_NAME_101 = new o.SCHEMA_NAME("TPL_ORDER"), z.SCHEMA_NAME_102 = new o.SCHEMA_NAME("TPL_GRABFOOD_SETTING"), z.SCHEMA_NAME_103 = new o.SCHEMA_NAME("TPL_FOODPANDA_SETTING"), z.SCHEMA_NAME_104 = new o.SCHEMA_NAME("TPL_SHOPEE_FOOD_SETTING"), z.SCHEMA_NAME_105 = new o.SCHEMA_NAME("REMOTE_ORDER_ADDON_FLATTEN_ITEM"), z.SCHEMA_NAME_106 = new o.SCHEMA_NAME("REMOTE_ORDER_PARENT_FLATTEN_ITEM"), z.SCHEMA_NAME_107 = new o.SCHEMA_NAME("REMOTE_PICKUP_ORDER"), z.SCHEMA_NAME_108 = new o.SCHEMA_NAME("REMOTE_PICKUP_ORDER_FLATTEN_ITEM"), z.SCHEMA_NAME_109 = new o.SCHEMA_NAME("MY_E_INVOICE_SUBMISSION"), z.SCHEMA_NAME_110 = new o.SCHEMA_NAME("INTERNAL_MY_E_INVOICE_SUBMISSION"), z.SCHEMA_NAME_111 = new o.SCHEMA_NAME("INTERNAL_MY_E_INVOICE_SUBMISSION_DOCUMENT"), z.SCHEMA_NAME_112 = new o.SCHEMA_NAME("INTERNAL_MY_E_INVOICE_DOCUMENT"), z.SCHEMA_NAME_113 = new o.SCHEMA_NAME("TITLE_COLLECTION"), z.SCHEMA_NAME_114 = new o.SCHEMA_NAME("TH_E_INVOICE_SUBMISSION"), z.SCHEMA_NAME_115 = new o.SCHEMA_NAME("PRINT_ACTIVITY"), z.List_xDH = o._setArrayType(n([z.SCHEMA_NAME_0, z.SCHEMA_NAME_1, z.SCHEMA_NAME_2, z.SCHEMA_NAME_3, z.SCHEMA_NAME_4, z.SCHEMA_NAME_5, z.SCHEMA_NAME_6, z.SCHEMA_NAME_7, z.SCHEMA_NAME_8, z.SCHEMA_NAME_9, z.SCHEMA_NAME_10, z.SCHEMA_NAME_11, z.SCHEMA_NAME_12, z.SCHEMA_NAME_13, z.SCHEMA_NAME_14, z.SCHEMA_NAME_15, z.SCHEMA_NAME_16, z.SCHEMA_NAME_17, z.SCHEMA_NAME_18, z.SCHEMA_NAME_19, z.SCHEMA_NAME_20, z.SCHEMA_NAME_21, z.SCHEMA_NAME_22, z.SCHEMA_NAME_23, z.SCHEMA_NAME_24, z.SCHEMA_NAME_25, z.SCHEMA_NAME_26, z.SCHEMA_NAME_27, z.SCHEMA_NAME_28, z.SCHEMA_NAME_29, z.SCHEMA_NAME_30, z.SCHEMA_NAME_31, z.SCHEMA_NAME_32, z.SCHEMA_NAME_33, z.SCHEMA_NAME_34, z.SCHEMA_NAME_35, z.SCHEMA_NAME_36, z.SCHEMA_NAME_37, z.SCHEMA_NAME_38, z.SCHEMA_NAME_39, z.SCHEMA_NAME_40, z.SCHEMA_NAME_41, z.SCHEMA_NAME_42, z.SCHEMA_NAME_43, z.SCHEMA_NAME_44, z.SCHEMA_NAME_45, z.SCHEMA_NAME_46, z.SCHEMA_NAME_47, z.SCHEMA_NAME_48, z.SCHEMA_NAME_49, z.SCHEMA_NAME_50, z.SCHEMA_NAME_51, z.SCHEMA_NAME_52, z.SCHEMA_NAME_53, z.SCHEMA_NAME_54, z.SCHEMA_NAME_55, z.SCHEMA_NAME_56, z.SCHEMA_NAME_57, z.SCHEMA_NAME_58, z.SCHEMA_NAME_59, z.SCHEMA_NAME_60, z.SCHEMA_NAME_61, z.SCHEMA_NAME_62, z.SCHEMA_NAME_63, z.SCHEMA_NAME_64, z.SCHEMA_NAME_65, z.SCHEMA_NAME_66, z.SCHEMA_NAME_67, z.SCHEMA_NAME_68, z.SCHEMA_NAME_69, z.SCHEMA_NAME_70, z.SCHEMA_NAME_71, z.SCHEMA_NAME_72, z.SCHEMA_NAME_73, z.SCHEMA_NAME_74, z.SCHEMA_NAME_75, z.SCHEMA_NAME_76, z.SCHEMA_NAME_77, z.SCHEMA_NAME_78, z.SCHEMA_NAME_79, z.SCHEMA_NAME_80, z.SCHEMA_NAME_81, z.SCHEMA_NAME_82, z.SCHEMA_NAME_83, z.SCHEMA_NAME_84, z.SCHEMA_NAME_85, z.SCHEMA_NAME_86, z.SCHEMA_NAME_87, z.SCHEMA_NAME_88, z.SCHEMA_NAME_89, z.SCHEMA_NAME_90, z.SCHEMA_NAME_91, z.SCHEMA_NAME_92, z.SCHEMA_NAME_93, z.SCHEMA_NAME_94, z.SCHEMA_NAME_95, z.SCHEMA_NAME_96, z.SCHEMA_NAME_97, z.SCHEMA_NAME_98, z.SCHEMA_NAME_99, z.SCHEMA_NAME_100, z.SCHEMA_NAME_101, z.SCHEMA_NAME_102, z.SCHEMA_NAME_103, z.SCHEMA_NAME_104, z.SCHEMA_NAME_105, z.SCHEMA_NAME_106, z.SCHEMA_NAME_107, z.SCHEMA_NAME_108, z.SCHEMA_NAME_109, z.SCHEMA_NAME_110, z.SCHEMA_NAME_111, z.SCHEMA_NAME_112, z.SCHEMA_NAME_113, z.SCHEMA_NAME_114, z.SCHEMA_NAME_115]), o.findType("JSArray<SCHEMA_NAME>")), z.AGGREGATION_TYPE_6 = new o.AGGREGATION_TYPE("ANY"), z.AGGREGATION_TYPE_10 = new o.AGGREGATION_TYPE("CUMULATIVE_SUM"), z.AGGREGATION_TYPE_11 = new o.AGGREGATION_TYPE("CUMULATIVE_AVERAGE"), z.AGGREGATION_TYPE_12 = new o.AGGREGATION_TYPE("CUMULATIVE_COUNT"), z.AGGREGATION_TYPE_13 = new o.AGGREGATION_TYPE("MERGE_DISTINCT"), z.List_yzJ = o._setArrayType(n([z.AGGREGATION_TYPE_0, z.AGGREGATION_TYPE_1, z.AGGREGATION_TYPE_2, z.AGGREGATION_TYPE_3, z.AGGREGATION_TYPE_4, z.AGGREGATION_TYPE_5, z.AGGREGATION_TYPE_6, z.AGGREGATION_TYPE_7, z.AGGREGATION_TYPE_8, z.AGGREGATION_TYPE_9, z.AGGREGATION_TYPE_10, z.AGGREGATION_TYPE_11, z.AGGREGATION_TYPE_12, z.AGGREGATION_TYPE_13]), o.findType("JSArray<AGGREGATION_TYPE>")), z.List_EQM = o._setArrayType(n(["d", "E", "EEEE", "LLL", "LLLL", "M", "Md", "MEd", "MMM", "MMMd", "MMMEd", "MMMM", "MMMMd", "MMMMEEEEd", "QQQ", "QQQQ", "y", "yM", "yMd", "yMEd", "yMMM", "yMMMd", "yMMMEd", "yMMMM", "yMMMMd", "yMMMMEEEEd", "yQQQ", "yQQQQ", "H", "Hm", "Hms", "j", "jm", "jms", "jmv", "jmz", "jz", "m", "ms", "s", "v", "z", "zzzz", "ZZZZ"]), r.JSArray_String), z.Map_EQ6TW = new o.ConstantStringMap(44, { d: "d", E: "ccc", EEEE: "cccc", LLL: "LLL", LLLL: "LLLL", M: "L", Md: "M/d", MEd: "EEE, M/d", MMM: "LLL", MMMd: "MMM d", MMMEd: "EEE, MMM d", MMMM: "LLLL", MMMMd: "MMMM d", MMMMEEEEd: "EEEE, MMMM d", QQQ: "QQQ", QQQQ: "QQQQ", y: "y", yM: "M/y", yMd: "M/d/y", yMEd: "EEE, M/d/y", yMMM: "MMM y", yMMMd: "MMM d, y", yMMMEd: "EEE, MMM d, y", yMMMM: "MMMM y", yMMMMd: "MMMM d, y", yMMMMEEEEd: "EEEE, MMMM d, y", yQQQ: "QQQ y", yQQQQ: "QQQQ y", H: "HH", Hm: "HH:mm", Hms: "HH:mm:ss", j: "h a", jm: "h:mm a", jms: "h:mm:ss a", jmv: "h:mm a v", jmz: "h:mm a z", jz: "h a z", m: "m", ms: "mm:ss", s: "s", v: "v", z: "z", zzzz: "zzzz", ZZZZ: "ZZZZ" }, z.List_EQM, o.findType("ConstantStringMap<String,String>")), z.List_empty1 = o._setArrayType(n([]), o.findType("JSArray<Symbol0>")), z.Map_empty = new o.ConstantStringMap(0, {}, z.List_empty1, o.findType("ConstantStringMap<Symbol0,@>")), z.SparklineType_0 = new o.SparklineType("LINE"), z.StartOfWeek_0 = new o.StartOfWeek("SATURDAY"), z.StartOfWeek_1 = new o.StartOfWeek("SUNDAY"), z.StartOfWeek_2 = new o.StartOfWeek("MONDAY"), z.Symbol_call = new o.Symbol("call"), z.TimeZone_0_false_UTC = new o.TimeZone(0, !1, "UTC"), z.Type_ByteBuffer_RkP = o.typeLiteral("ByteBuffer"), z.Type_ByteData_zNC = o.typeLiteral("ByteData"), z.Type_JSObject_8k0 = o.typeLiteral("JSObject"), z.Type_Object_xQ6 = o.typeLiteral("Object"), z.Type_String_k8F = o.typeLiteral("String"), z.Type_Uint16List_2bx = o.typeLiteral("Uint16List"), z.Type_Uint32List_2bx = o.typeLiteral("Uint32List"), z.Type_Uint8List_WLA = o.typeLiteral("Uint8List"), z.Type_bool_lhE = o.typeLiteral("bool"), z.Type_double_K1J = o.typeLiteral("double"), z.Type_int_tHn = o.typeLiteral("int"), z.Type_num_cv7 = o.typeLiteral("num"), z.TzInstant_TimeZone_0_false_UTC = new o.TzInstant(z.TimeZone_0_false_UTC), z.Units_0 = new o.Units("MILLISECOND"), z.Units_1 = new o.Units("SECOND"), z.Units_2 = new o.Units("MINUTE"), z.Units_3 = new o.Units("HOUR"), z.Units_4 = new o.Units("DAY"), z.Units_5 = new o.Units("WEEK"), z.Units_6 = new o.Units("MONTH"), z.Units_7 = new o.Units("YEAR"), z._IterationMarker_null_2 = new o._IterationMarker(null, 2);
20563
20551
  })(), function() {
20564
- C._JS_INTEROP_INTERCEPTOR_TAG = null, C.Primitives__identityHashCodeProperty = null, C.BoundClosure__receiverFieldNameCache = null, C.BoundClosure__interceptorFieldNameCache = null, C.getTagFunction = null, C.alternateTagFunction = null, C.prototypeForTagFunction = null, C.dispatchRecordsForInstanceTags = null, C.interceptorsForUncacheableTags = null, C.initNativeDispatchFlag = null, C._toStringVisiting = o._setArrayType([], r.JSArray_Object), C.cachedDateSymbols = null, C.lastDateSymbolLocale = null, C._defaultLocale = null, C.DateFormat__useNativeDigitsByDefault = o.LinkedHashMap_LinkedHashMap$_empty(r.String, r.bool), C.DateFormat__digitMatchers = o.LinkedHashMap_LinkedHashMap$_empty(r.String, o.findType("RegExp")), C.Jiffy____defaultLocale = o._Cell$(), C.DataTypeExtension__currencyMapping = function() {
20552
+ L._JS_INTEROP_INTERCEPTOR_TAG = null, L.Primitives__identityHashCodeProperty = null, L.BoundClosure__receiverFieldNameCache = null, L.BoundClosure__interceptorFieldNameCache = null, L.getTagFunction = null, L.alternateTagFunction = null, L.prototypeForTagFunction = null, L.dispatchRecordsForInstanceTags = null, L.interceptorsForUncacheableTags = null, L.initNativeDispatchFlag = null, L._toStringVisiting = o._setArrayType([], r.JSArray_Object), L.cachedDateSymbols = null, L.lastDateSymbolLocale = null, L._defaultLocale = null, L.DateFormat__useNativeDigitsByDefault = o.LinkedHashMap_LinkedHashMap$_empty(r.String, r.bool), L.DateFormat__digitMatchers = o.LinkedHashMap_LinkedHashMap$_empty(r.String, o.findType("RegExp")), L.Jiffy____defaultLocale = o._Cell$(), L.DataTypeExtension__currencyMapping = function() {
20565
20553
  var n = r.String;
20566
20554
  return o.LinkedHashMap_LinkedHashMap$_literal(["MY", "MYR", "SG", "SGD", "ID", "IDR", "VN", "VND", "AU", "AUD", "CN", "CNY", "MO", "MOP"], n, n);
20567
- }(), C.___local = o._Cell$();
20555
+ }(), L.___local = o._Cell$();
20568
20556
  }(), function() {
20569
20557
  var n = t.lazyFinal, a = t.lazy;
20570
- n(C, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => o.getIsolateAffinityTag("_$dart_dartClosure")), n(C, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn({
20558
+ n(L, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => o.getIsolateAffinityTag("_$dart_dartClosure")), n(L, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn({
20571
20559
  toString: function() {
20572
20560
  return "$receiver$";
20573
20561
  }
20574
- }))), n(C, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn({
20562
+ }))), n(L, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn({
20575
20563
  $method$: null,
20576
20564
  toString: function() {
20577
20565
  return "$receiver$";
20578
20566
  }
20579
- }))), n(C, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn(null))), n(C, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20567
+ }))), n(L, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn(null))), n(L, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20580
20568
  var i = "$arguments$";
20581
20569
  try {
20582
20570
  null.$method$(i);
20583
20571
  } catch (s) {
20584
20572
  return s.message;
20585
20573
  }
20586
- }())), n(C, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn(void 0))), n(C, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20574
+ }())), n(L, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokeCallErrorOn(void 0))), n(L, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20587
20575
  var i = "$arguments$";
20588
20576
  try {
20589
20577
  (void 0).$method$(i);
20590
20578
  } catch (s) {
20591
20579
  return s.message;
20592
20580
  }
20593
- }())), n(C, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokePropertyErrorOn(null))), n(C, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20581
+ }())), n(L, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokePropertyErrorOn(null))), n(L, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20594
20582
  try {
20595
20583
  null.$method$;
20596
20584
  } catch (i) {
20597
20585
  return i.message;
20598
20586
  }
20599
- }())), n(C, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokePropertyErrorOn(void 0))), n(C, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20587
+ }())), n(L, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", () => o.TypeErrorDecoder_extractPattern(o.TypeErrorDecoder_provokePropertyErrorOn(void 0))), n(L, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", () => o.TypeErrorDecoder_extractPattern(function() {
20600
20588
  try {
20601
20589
  (void 0).$method$;
20602
20590
  } catch (i) {
20603
20591
  return i.message;
20604
20592
  }
20605
- }())), n(C, "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(C, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(z.Type_Object_xQ6)), n(C, "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 ? z.C_Endian0 : z.C_Endian), n(C, "_clockKey", "$get$_clockKey", () => new o.Object()), n(C, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", z.List_BC_AD, z.List_6xs, z.List_qpm, z.List_qpm, z.List_cIc, z.List_cIc, z.List_h8w, z.List_h8w, z.List_wMy, z.List_wMy, z.List_gc6, z.List_gc6, z.List_3US, z.List_Q1_Q2_Q3_Q4, z.List_bJM, z.List_AM_PM)), a(C, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", C.$get$en_USSymbols())), a(C, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", z.Map_EQ6TW)), n(C, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(C, "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(C, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''", !1)), n(C, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+", !1)), a(C, "_availableLocales", "$get$_availableLocales", () => {
20606
- var i, s, l = o.EnLocale$(z.StartOfWeek_1), p = o.EnLocale$(z.StartOfWeek_1), c = o.EnLocale$(z.StartOfWeek_1), M = o.EnLocale$(z.StartOfWeek_1), b = o.EnLocale$(z.StartOfWeek_1), O = o.EnLocale$(z.StartOfWeek_2), D = o.EnLocale$(z.StartOfWeek_2), $ = o.EnLocale$(z.StartOfWeek_1), E = o.EnLocale$(z.StartOfWeek_1), g = o.EsLocale$(z.StartOfWeek_2), h = o.EsLocale$(z.StartOfWeek_2), R = o.EsLocale$(z.StartOfWeek_1), L = o.FrLocale$(z.StartOfWeek_2), W = o.FrLocale$(z.StartOfWeek_2), B = o.FrLocale$(z.StartOfWeek_1), I = o.ZhCnLocale$(z.StartOfWeek_1), x = o.ZhCnLocale$(z.StartOfWeek_1), w = o.ZhLocale$(z.StartOfWeek_1), v = o.ZhLocale$(z.StartOfWeek_1), X = o.DeLocale$(z.StartOfWeek_2), K = o.DeLocale$(z.StartOfWeek_2), _0 = o.DeLocale$(z.StartOfWeek_2), d0 = o.DeLocale$(z.StartOfWeek_2), z0 = o.ItLocale$(z.StartOfWeek_2), y0 = o.ItLocale$(z.StartOfWeek_2), q0 = o.ArLyLocale$(!0, z.StartOfWeek_0), e0 = o.ArLyLocale$(!1, z.StartOfWeek_0), W0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_1), h0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_1), N0 = o.ArSaMaDzKwTnLocale$(!0, z.StartOfWeek_1), x0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_0), F0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_0);
20607
- return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), i = o.PtLocale$(z.StartOfWeek_2), s = o.PtLocale$(z.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", c, "en_au", M, "en_ca", b, "en_gb", O, "en_ie", D, "en_il", $, "en_nz", E, "es", g, "es_do", h, "es_us", R, "fr", L, "fr_ch", W, "fr_ca", B, "zh", I, "zh_cn", x, "zh_hk", w, "zh_tw", v, "de", X, "de_de", K, "de_at", _0, "de_ch", d0, "it", z0, "it_ch", y0, "ar", q0, "ar_ly", e0, "ar_dz", W0, "ar_kw", h0, "ar_sa", N0, "ar_ma", x0, "ar_tn", F0, "az", new o.AzLocale(z.StartOfWeek_2), "id", new o.IdLocale(z.StartOfWeek_1), "ja", new o.JaLocale(z.StartOfWeek_1), "ko", new o.KoLocale(z.StartOfWeek_1), "ru", new o.RuLocale(z.StartOfWeek_2), "uk", new o.UkLocale(z.StartOfWeek_2), "hi", new o.HiLocale(z.StartOfWeek_1), "pt", i, "pt_br", s, "pl", new o.PlLocale(z.StartOfWeek_2), "tr", new o.TrLocale(z.StartOfWeek_2), "sv", new o.SvLocale(z.StartOfWeek_2), "nb", new o.NbLocale(z.StartOfWeek_2), "fa", new o.FaLocale(z.StartOfWeek_0), "bn", new o.BnLocale(z.StartOfWeek_1), "nl", new o.NlLocale(z.StartOfWeek_2), "th", new o.ThLocale(z.StartOfWeek_1)], r.String, o.findType("Locale"));
20608
- }), n(C, "_UTC", "$get$_UTC", () => {
20593
+ }())), n(L, "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(L, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(z.Type_Object_xQ6)), n(L, "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 ? z.C_Endian0 : z.C_Endian), n(L, "_clockKey", "$get$_clockKey", () => new o.Object()), n(L, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", z.List_BC_AD, z.List_6xs, z.List_qpm, z.List_qpm, z.List_cIc, z.List_cIc, z.List_h8w, z.List_h8w, z.List_wMy, z.List_wMy, z.List_gc6, z.List_gc6, z.List_3US, z.List_Q1_Q2_Q3_Q4, z.List_bJM, z.List_AM_PM)), a(L, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", L.$get$en_USSymbols())), a(L, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", z.Map_EQ6TW)), n(L, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(L, "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(L, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''", !1)), n(L, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+", !1)), a(L, "_availableLocales", "$get$_availableLocales", () => {
20594
+ var i, s, l = o.EnLocale$(z.StartOfWeek_1), p = o.EnLocale$(z.StartOfWeek_1), c = o.EnLocale$(z.StartOfWeek_1), M = o.EnLocale$(z.StartOfWeek_1), b = o.EnLocale$(z.StartOfWeek_1), O = o.EnLocale$(z.StartOfWeek_2), D = o.EnLocale$(z.StartOfWeek_2), $ = o.EnLocale$(z.StartOfWeek_1), E = o.EnLocale$(z.StartOfWeek_1), g = o.EsLocale$(z.StartOfWeek_2), h = o.EsLocale$(z.StartOfWeek_2), T = o.EsLocale$(z.StartOfWeek_1), F = o.FrLocale$(z.StartOfWeek_2), W = o.FrLocale$(z.StartOfWeek_2), B = o.FrLocale$(z.StartOfWeek_1), I = o.ZhCnLocale$(z.StartOfWeek_1), x = o.ZhCnLocale$(z.StartOfWeek_1), w = o.ZhLocale$(z.StartOfWeek_1), v = o.ZhLocale$(z.StartOfWeek_1), X = o.DeLocale$(z.StartOfWeek_2), K = o.DeLocale$(z.StartOfWeek_2), _0 = o.DeLocale$(z.StartOfWeek_2), d0 = o.DeLocale$(z.StartOfWeek_2), z0 = o.ItLocale$(z.StartOfWeek_2), y0 = o.ItLocale$(z.StartOfWeek_2), q0 = o.ArLyLocale$(!0, z.StartOfWeek_0), e0 = o.ArLyLocale$(!1, z.StartOfWeek_0), W0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_1), h0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_1), N0 = o.ArSaMaDzKwTnLocale$(!0, z.StartOfWeek_1), x0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_0), F0 = o.ArSaMaDzKwTnLocale$(!1, z.StartOfWeek_0);
20595
+ return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), i = o.PtLocale$(z.StartOfWeek_2), s = o.PtLocale$(z.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", c, "en_au", M, "en_ca", b, "en_gb", O, "en_ie", D, "en_il", $, "en_nz", E, "es", g, "es_do", h, "es_us", T, "fr", F, "fr_ch", W, "fr_ca", B, "zh", I, "zh_cn", x, "zh_hk", w, "zh_tw", v, "de", X, "de_de", K, "de_at", _0, "de_ch", d0, "it", z0, "it_ch", y0, "ar", q0, "ar_ly", e0, "ar_dz", W0, "ar_kw", h0, "ar_sa", N0, "ar_ma", x0, "ar_tn", F0, "az", new o.AzLocale(z.StartOfWeek_2), "id", new o.IdLocale(z.StartOfWeek_1), "ja", new o.JaLocale(z.StartOfWeek_1), "ko", new o.KoLocale(z.StartOfWeek_1), "ru", new o.RuLocale(z.StartOfWeek_2), "uk", new o.UkLocale(z.StartOfWeek_2), "hi", new o.HiLocale(z.StartOfWeek_1), "pt", i, "pt_br", s, "pl", new o.PlLocale(z.StartOfWeek_2), "tr", new o.TrLocale(z.StartOfWeek_2), "sv", new o.SvLocale(z.StartOfWeek_2), "nb", new o.NbLocale(z.StartOfWeek_2), "fa", new o.FaLocale(z.StartOfWeek_0), "bn", new o.BnLocale(z.StartOfWeek_1), "nl", new o.NlLocale(z.StartOfWeek_2), "th", new o.ThLocale(z.StartOfWeek_1)], r.String, o.findType("Locale"));
20596
+ }), n(L, "_UTC", "$get$_UTC", () => {
20609
20597
  var i = r.JSArray_int;
20610
20598
  return o.Location$("UTC", o._setArrayType([-864e13], i), o._setArrayType([0], i), o._setArrayType([z.TimeZone_0_false_UTC], r.JSArray_TimeZone));
20611
- }), n(C, "_database", "$get$_database", () => new o.LocationDatabase(o.LinkedHashMap_LinkedHashMap$_empty(r.String, r.Location))), n(C, "Location__cacheNow", "$get$Location__cacheNow", () => o.DateTime$now()._value);
20599
+ }), n(L, "_database", "$get$_database", () => new o.LocationDatabase(o.LinkedHashMap_LinkedHashMap$_empty(r.String, r.Location))), n(L, "Location__cacheNow", "$get$Location__cacheNow", () => o.DateTime$now()._value);
20612
20600
  }(), function() {
20613
20601
  (function() {
20614
20602
  var n = function(c) {
20615
20603
  var M = {};
20616
20604
  return M[c] = 1, Object.keys(t.convertToFastObject(M))[0];
20617
20605
  };
20618
- T.getIsolateTag = function(c) {
20619
- return n("___dart_" + c + T.isolateTag);
20606
+ R.getIsolateTag = function(c) {
20607
+ return n("___dart_" + c + R.isolateTag);
20620
20608
  };
20621
20609
  for (var a = "___dart_isolate_tags_", i = Object[a] || (Object[a] = /* @__PURE__ */ Object.create(null)), s = "_ZxYxX", l = 0; ; l++) {
20622
20610
  var p = n(s + "_" + l + "_");
20623
20611
  if (!(p in i)) {
20624
- i[p] = 1, T.isolateTag = p;
20612
+ i[p] = 1, R.isolateTag = p;
20625
20613
  break;
20626
20614
  }
20627
20615
  }
20628
- T.dispatchPropertyName = T.getIsolateTag("dispatch_record");
20616
+ R.dispatchPropertyName = R.getIsolateTag("dispatch_record");
20629
20617
  })(), t.setOrUpdateInterceptorsByTag({ ArrayBuffer: o.NativeByteBuffer, ArrayBufferView: o.NativeTypedData, DataView: o.NativeByteData, Uint16Array: o.NativeUint16List, Uint32Array: o.NativeUint32List, Uint8Array: o.NativeUint8List }), t.setOrUpdateLeafTags({ ArrayBuffer: !0, ArrayBufferView: !1, DataView: !0, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), o.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", o._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", o.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
20630
20618
  }(), Function.prototype.call$0 = function() {
20631
20619
  return this();
@@ -20657,7 +20645,7 @@ Arguments: [` + M + "]";
20657
20645
  for (var i = 0; i < n.length; ++i)
20658
20646
  n[i].addEventListener("load", a, !1);
20659
20647
  }(function(e) {
20660
- T.currentScript = e;
20648
+ R.currentScript = e;
20661
20649
  var n = o.main;
20662
20650
  typeof dartMainRunner == "function" ? dartMainRunner(n, []) : n([]);
20663
20651
  });
@@ -20713,9 +20701,9 @@ function rt(_) {
20713
20701
  ).getTime()
20714
20702
  };
20715
20703
  }
20716
- const F = A.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
20717
- if (F) {
20718
- const [, J, H, Y] = F;
20704
+ const C = A.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
20705
+ if (C) {
20706
+ const [, J, H, Y] = C;
20719
20707
  return {
20720
20708
  type: "date",
20721
20709
  value: new Date(
@@ -20768,7 +20756,7 @@ function $r(_, A) {
20768
20756
  function nt(_, A, f) {
20769
20757
  var m, S;
20770
20758
  if (((m = _[A]) == null ? void 0 : m.main) !== void 0) return _[A].main;
20771
- const y = f.findIndex((F) => F.key === A);
20759
+ const y = f.findIndex((C) => C.key === A);
20772
20760
  return y >= 0 ? (S = _.cells) == null ? void 0 : S[y] : void 0;
20773
20761
  }
20774
20762
  function at(_) {
@@ -20784,8 +20772,8 @@ function at(_) {
20784
20772
  /^(?:(\d+)\s+day(?:s)?\s+)?(\d+):(\d{2}):(\d{2})$/i
20785
20773
  );
20786
20774
  if (y) {
20787
- const [, S = "0", F, N, P] = y;
20788
- return Number(S) * 24 * 60 * 60 + Number(F) * 60 * 60 + Number(N) * 60 + Number(P);
20775
+ const [, S = "0", C, N, P] = y;
20776
+ return Number(S) * 24 * 60 * 60 + Number(C) * 60 * 60 + Number(N) * 60 + Number(P);
20789
20777
  }
20790
20778
  const m = Number(A);
20791
20779
  return Number.isFinite(m) ? m : null;
@@ -20811,10 +20799,10 @@ function mr(_, A) {
20811
20799
  m.push({ rank: 0, leaf: S, children: null });
20812
20800
  continue;
20813
20801
  }
20814
- const F = it(S), N = [];
20815
- for (; m.length > 0 && m[m.length - 1].rank < F; )
20802
+ const C = it(S), N = [];
20803
+ for (; m.length > 0 && m[m.length - 1].rank < C; )
20816
20804
  N.push(m.pop());
20817
- N.reverse(), m.push({ rank: F, rollup: S, children: N });
20805
+ N.reverse(), m.push({ rank: C, rollup: S, children: N });
20818
20806
  }
20819
20807
  return m;
20820
20808
  }
@@ -20822,21 +20810,21 @@ function mr(_, A) {
20822
20810
  for (const m of _) {
20823
20811
  const S = it(m);
20824
20812
  for (; y.length > 0 && y[y.length - 1].rank <= S; ) y.pop();
20825
- const F = y.length > 0 ? y[y.length - 1].children : f;
20813
+ const C = y.length > 0 ? y[y.length - 1].children : f;
20826
20814
  if (!m.isRollup) {
20827
- F.push({ rank: 0, leaf: m, children: null });
20815
+ C.push({ rank: 0, leaf: m, children: null });
20828
20816
  continue;
20829
20817
  }
20830
20818
  const N = { rank: S, rollup: m, children: [] };
20831
- F.push(N), y.push(N);
20819
+ C.push(N), y.push(N);
20832
20820
  }
20833
20821
  return f;
20834
20822
  }
20835
20823
  function qr(_, A, f) {
20836
20824
  return function(m, S) {
20837
- const F = ot(m), N = ot(S);
20825
+ const C = ot(m), N = ot(S);
20838
20826
  for (const { key: P, type: J } of _) {
20839
- const H = J === "ASC" ? 1 : -1, Y = nt(F, P, f) ?? "", Z = nt(N, P, f) ?? "";
20827
+ const H = J === "ASC" ? 1 : -1, Y = nt(C, P, f) ?? "", Z = nt(N, P, f) ?? "";
20840
20828
  if (A[P]) {
20841
20829
  const i0 = at(Y), u0 = at(Z);
20842
20830
  if (i0 !== null && u0 !== null) {
@@ -20882,7 +20870,7 @@ function hr(_) {
20882
20870
  globalSorts: y = [],
20883
20871
  filter: m = null,
20884
20872
  grandTotalPosition: S = null,
20885
- rollupPosition: F = null,
20873
+ rollupPosition: C = null,
20886
20874
  pageSize: N = 0
20887
20875
  } = _;
20888
20876
  let P = Array.isArray(A) ? [...A] : [];
@@ -20900,7 +20888,7 @@ function hr(_) {
20900
20888
  )))).map((U) => yr(U, f)));
20901
20889
  let i0 = Z;
20902
20890
  if (Y) {
20903
- const U = (F ?? S ?? gr(Z)) === "BOTTOM", V = mr(Z, U);
20891
+ const U = (C ?? S ?? gr(Z)) === "BOTTOM", V = mr(Z, U);
20904
20892
  zt(V, qr(H, J, f)), i0 = Oe(V, U, []);
20905
20893
  } else
20906
20894
  i0 = [...Z];
@@ -21031,13 +21019,13 @@ function X0(_, A) {
21031
21019
  var f = !0;
21032
21020
  return _1(function() {
21033
21021
  if (G.deprecationHandler != null && G.deprecationHandler(null, _), f) {
21034
- var y = [], m, S, F, N = arguments.length;
21022
+ var y = [], m, S, C, N = arguments.length;
21035
21023
  for (S = 0; S < N; S++) {
21036
21024
  if (m = "", typeof arguments[S] == "object") {
21037
21025
  m += `
21038
21026
  [` + S + "] ";
21039
- for (F in arguments[0])
21040
- O0(arguments[0], F) && (m += F + ": " + arguments[0][F] + ", ");
21027
+ for (C in arguments[0])
21028
+ O0(arguments[0], C) && (m += C + ": " + arguments[0][C] + ", ");
21041
21029
  m = m.slice(0, -2);
21042
21030
  } else
21043
21031
  m = arguments[S];
@@ -21125,9 +21113,9 @@ function Wr(_) {
21125
21113
  for (f = 0, y = A.length; f < y; f++)
21126
21114
  $1[A[f]] ? A[f] = $1[A[f]] : A[f] = Ir(A[f]);
21127
21115
  return function(m) {
21128
- var S = "", F;
21129
- for (F = 0; F < y; F++)
21130
- S += e1(A[F]) ? A[F].call(m, _) : A[F];
21116
+ var S = "", C;
21117
+ for (C = 0; C < y; C++)
21118
+ S += e1(A[C]) ? A[C].call(m, _) : A[C];
21131
21119
  return S;
21132
21120
  };
21133
21121
  }
@@ -21312,8 +21300,8 @@ function s0(_) {
21312
21300
  var fe = {};
21313
21301
  function f0(_, A) {
21314
21302
  var f, y = A, m;
21315
- for (typeof _ == "string" && (_ = [_]), u1(A) && (y = function(S, F) {
21316
- F[A] = s0(S);
21303
+ for (typeof _ == "string" && (_ = [_]), u1(A) && (y = function(S, C) {
21304
+ C[A] = s0(S);
21317
21305
  }), m = _.length, f = 0; f < m; f++)
21318
21306
  fe[_[f]] = y;
21319
21307
  }
@@ -21395,7 +21383,7 @@ function C1(_, A) {
21395
21383
  }
21396
21384
  }
21397
21385
  function Lt(_, A, f) {
21398
- var y, m, S, F, N;
21386
+ var y, m, S, C, N;
21399
21387
  if (!(!_.isValid() || isNaN(f))) {
21400
21388
  switch (y = _._d, m = _._isUTC, A) {
21401
21389
  case "Milliseconds":
@@ -21413,7 +21401,7 @@ function Lt(_, A, f) {
21413
21401
  default:
21414
21402
  return;
21415
21403
  }
21416
- S = f, F = _.month(), N = _.date(), N = N === 29 && F === 1 && !se(S) ? 28 : N, m ? y.setUTCFullYear(S, F, N) : y.setFullYear(S, F, N);
21404
+ S = f, C = _.month(), N = _.date(), N = N === 29 && C === 1 && !se(S) ? 28 : N, m ? y.setUTCFullYear(S, C, N) : y.setFullYear(S, C, N);
21417
21405
  }
21418
21406
  }
21419
21407
  function rn(_) {
@@ -21480,14 +21468,14 @@ function pn(_, A) {
21480
21468
  return _ ? G0(this._monthsShort) ? this._monthsShort[_.month()] : this._monthsShort[Ft.test(A) ? "format" : "standalone"][_.month()] : G0(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
21481
21469
  }
21482
21470
  function cn(_, A, f) {
21483
- var y, m, S, F = _.toLocaleLowerCase();
21471
+ var y, m, S, C = _.toLocaleLowerCase();
21484
21472
  if (!this._monthsParse)
21485
21473
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], y = 0; y < 12; ++y)
21486
21474
  S = Z0([2e3, y]), this._shortMonthsParse[y] = this.monthsShort(
21487
21475
  S,
21488
21476
  ""
21489
21477
  ).toLocaleLowerCase(), this._longMonthsParse[y] = this.months(S, "").toLocaleLowerCase();
21490
- return f ? A === "MMM" ? (m = S0.call(this._shortMonthsParse, F), m !== -1 ? m : null) : (m = S0.call(this._longMonthsParse, F), m !== -1 ? m : null) : A === "MMM" ? (m = S0.call(this._shortMonthsParse, F), m !== -1 ? m : (m = S0.call(this._longMonthsParse, F), m !== -1 ? m : null)) : (m = S0.call(this._longMonthsParse, F), m !== -1 ? m : (m = S0.call(this._shortMonthsParse, F), m !== -1 ? m : null));
21478
+ return f ? A === "MMM" ? (m = S0.call(this._shortMonthsParse, C), m !== -1 ? m : null) : (m = S0.call(this._longMonthsParse, C), m !== -1 ? m : null) : A === "MMM" ? (m = S0.call(this._shortMonthsParse, C), m !== -1 ? m : (m = S0.call(this._longMonthsParse, C), m !== -1 ? m : null)) : (m = S0.call(this._longMonthsParse, C), m !== -1 ? m : (m = S0.call(this._shortMonthsParse, C), m !== -1 ? m : null));
21491
21479
  }
21492
21480
  function _n(_, A, f) {
21493
21481
  var y, m, S;
@@ -21536,9 +21524,9 @@ function Bt() {
21536
21524
  function _(P, J) {
21537
21525
  return J.length - P.length;
21538
21526
  }
21539
- var A = [], f = [], y = [], m, S, F, N;
21527
+ var A = [], f = [], y = [], m, S, C, N;
21540
21528
  for (m = 0; m < 12; m++)
21541
- S = Z0([2e3, m]), F = o1(this.monthsShort(S, "")), N = o1(this.months(S, "")), A.push(F), f.push(N), y.push(N), y.push(F);
21529
+ S = Z0([2e3, m]), C = o1(this.monthsShort(S, "")), N = o1(this.months(S, "")), A.push(C), f.push(N), y.push(N), y.push(C);
21542
21530
  A.sort(_), f.sort(_), y.sort(_), this._monthsRegex = new RegExp("^(" + y.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
21543
21531
  "^(" + f.join("|") + ")",
21544
21532
  "i"
@@ -21547,9 +21535,9 @@ function Bt() {
21547
21535
  "i"
21548
21536
  );
21549
21537
  }
21550
- function On(_, A, f, y, m, S, F) {
21538
+ function On(_, A, f, y, m, S, C) {
21551
21539
  var N;
21552
- return _ < 100 && _ >= 0 ? (N = new Date(_ + 400, A, f, y, m, S, F), isFinite(N.getFullYear()) && N.setFullYear(_)) : N = new Date(_, A, f, y, m, S, F), N;
21540
+ return _ < 100 && _ >= 0 ? (N = new Date(_ + 400, A, f, y, m, S, C), isFinite(N.getFullYear()) && N.setFullYear(_)) : N = new Date(_, A, f, y, m, S, C), N;
21553
21541
  }
21554
21542
  function F1(_) {
21555
21543
  var A, f;
@@ -21560,17 +21548,17 @@ function V1(_, A, f) {
21560
21548
  return -m + y - 1;
21561
21549
  }
21562
21550
  function Nt(_, A, f, y, m) {
21563
- var S = (7 + f - y) % 7, F = V1(_, y, m), N = 1 + 7 * (A - 1) + S + F, P, J;
21551
+ var S = (7 + f - y) % 7, C = V1(_, y, m), N = 1 + 7 * (A - 1) + S + C, P, J;
21564
21552
  return N <= 0 ? (P = _ - 1, J = L1(P) + N) : N > L1(_) ? (P = _ + 1, J = N - L1(_)) : (P = _, J = N), {
21565
21553
  year: P,
21566
21554
  dayOfYear: J
21567
21555
  };
21568
21556
  }
21569
21557
  function I1(_, A, f) {
21570
- var y = V1(_.year(), A, f), m = Math.floor((_.dayOfYear() - y - 1) / 7) + 1, S, F;
21571
- return m < 1 ? (F = _.year() - 1, S = m + s1(F, A, f)) : m > s1(_.year(), A, f) ? (S = m - s1(_.year(), A, f), F = _.year() + 1) : (F = _.year(), S = m), {
21558
+ var y = V1(_.year(), A, f), m = Math.floor((_.dayOfYear() - y - 1) / 7) + 1, S, C;
21559
+ return m < 1 ? (C = _.year() - 1, S = m + s1(C, A, f)) : m > s1(_.year(), A, f) ? (S = m - s1(_.year(), A, f), C = _.year() + 1) : (C = _.year(), S = m), {
21572
21560
  week: S,
21573
- year: F
21561
+ year: C
21574
21562
  };
21575
21563
  }
21576
21564
  function s1(_, A, f) {
@@ -21664,7 +21652,7 @@ function Cn(_) {
21664
21652
  return _ === !0 ? Ie(this._weekdaysMin, this._week.dow) : _ ? this._weekdaysMin[_.day()] : this._weekdaysMin;
21665
21653
  }
21666
21654
  function Fn(_, A, f) {
21667
- var y, m, S, F = _.toLocaleLowerCase();
21655
+ var y, m, S, C = _.toLocaleLowerCase();
21668
21656
  if (!this._weekdaysParse)
21669
21657
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], y = 0; y < 7; ++y)
21670
21658
  S = Z0([2e3, 1]).day(y), this._minWeekdaysParse[y] = this.weekdaysMin(
@@ -21674,7 +21662,7 @@ function Fn(_, A, f) {
21674
21662
  S,
21675
21663
  ""
21676
21664
  ).toLocaleLowerCase(), this._weekdaysParse[y] = this.weekdays(S, "").toLocaleLowerCase();
21677
- return f ? A === "dddd" ? (m = S0.call(this._weekdaysParse, F), m !== -1 ? m : null) : A === "ddd" ? (m = S0.call(this._shortWeekdaysParse, F), m !== -1 ? m : null) : (m = S0.call(this._minWeekdaysParse, F), m !== -1 ? m : null) : A === "dddd" ? (m = S0.call(this._weekdaysParse, F), m !== -1 || (m = S0.call(this._shortWeekdaysParse, F), m !== -1) ? m : (m = S0.call(this._minWeekdaysParse, F), m !== -1 ? m : null)) : A === "ddd" ? (m = S0.call(this._shortWeekdaysParse, F), m !== -1 || (m = S0.call(this._weekdaysParse, F), m !== -1) ? m : (m = S0.call(this._minWeekdaysParse, F), m !== -1 ? m : null)) : (m = S0.call(this._minWeekdaysParse, F), m !== -1 || (m = S0.call(this._weekdaysParse, F), m !== -1) ? m : (m = S0.call(this._shortWeekdaysParse, F), m !== -1 ? m : null));
21665
+ return f ? A === "dddd" ? (m = S0.call(this._weekdaysParse, C), m !== -1 ? m : null) : A === "ddd" ? (m = S0.call(this._shortWeekdaysParse, C), m !== -1 ? m : null) : (m = S0.call(this._minWeekdaysParse, C), m !== -1 ? m : null) : A === "dddd" ? (m = S0.call(this._weekdaysParse, C), m !== -1 || (m = S0.call(this._shortWeekdaysParse, C), m !== -1) ? m : (m = S0.call(this._minWeekdaysParse, C), m !== -1 ? m : null)) : A === "ddd" ? (m = S0.call(this._shortWeekdaysParse, C), m !== -1 || (m = S0.call(this._weekdaysParse, C), m !== -1) ? m : (m = S0.call(this._minWeekdaysParse, C), m !== -1 ? m : null)) : (m = S0.call(this._minWeekdaysParse, C), m !== -1 || (m = S0.call(this._weekdaysParse, C), m !== -1) ? m : (m = S0.call(this._shortWeekdaysParse, C), m !== -1 ? m : null));
21678
21666
  }
21679
21667
  function In(_, A, f) {
21680
21668
  var y, m, S;
@@ -21734,9 +21722,9 @@ function We() {
21734
21722
  function _(H, Y) {
21735
21723
  return Y.length - H.length;
21736
21724
  }
21737
- var A = [], f = [], y = [], m = [], S, F, N, P, J;
21725
+ var A = [], f = [], y = [], m = [], S, C, N, P, J;
21738
21726
  for (S = 0; S < 7; S++)
21739
- F = Z0([2e3, 1]).day(S), N = o1(this.weekdaysMin(F, "")), P = o1(this.weekdaysShort(F, "")), J = o1(this.weekdays(F, "")), A.push(N), f.push(P), y.push(J), m.push(N), m.push(P), m.push(J);
21727
+ C = Z0([2e3, 1]).day(S), N = o1(this.weekdaysMin(C, "")), P = o1(this.weekdaysShort(C, "")), J = o1(this.weekdays(C, "")), A.push(N), f.push(P), y.push(J), m.push(N), m.push(P), m.push(J);
21740
21728
  A.sort(_), f.sort(_), y.sort(_), m.sort(_), this._weekdaysRegex = new RegExp("^(" + m.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
21741
21729
  "^(" + y.join("|") + ")",
21742
21730
  "i"
@@ -21973,14 +21961,14 @@ var jn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
21973
21961
  PST: -8 * 60
21974
21962
  };
21975
21963
  function Jt(_) {
21976
- var A, f, y = _._i, m = jn.exec(y) || Kn.exec(y), S, F, N, P, J = X1.length, H = be.length;
21964
+ var A, f, y = _._i, m = jn.exec(y) || Kn.exec(y), S, C, N, P, J = X1.length, H = be.length;
21977
21965
  if (m) {
21978
21966
  for (t0(_).iso = !0, A = 0, f = J; A < f; A++)
21979
21967
  if (X1[A][1].exec(m[1])) {
21980
- F = X1[A][0], S = X1[A][2] !== !1;
21968
+ C = X1[A][0], S = X1[A][2] !== !1;
21981
21969
  break;
21982
21970
  }
21983
- if (F == null) {
21971
+ if (C == null) {
21984
21972
  _._isValid = !1;
21985
21973
  return;
21986
21974
  }
@@ -22006,19 +21994,19 @@ function Jt(_) {
22006
21994
  _._isValid = !1;
22007
21995
  return;
22008
21996
  }
22009
- _._f = F + (N || "") + (P || ""), ve(_);
21997
+ _._f = C + (N || "") + (P || ""), ve(_);
22010
21998
  } else
22011
21999
  _._isValid = !1;
22012
22000
  }
22013
22001
  function na(_, A, f, y, m, S) {
22014
- var F = [
22002
+ var C = [
22015
22003
  aa(_),
22016
22004
  Ct.indexOf(A),
22017
22005
  parseInt(f, 10),
22018
22006
  parseInt(y, 10),
22019
22007
  parseInt(m, 10)
22020
22008
  ];
22021
- return S && F.push(parseInt(S, 10)), F;
22009
+ return S && C.push(parseInt(S, 10)), C;
22022
22010
  }
22023
22011
  function aa(_) {
22024
22012
  var A = parseInt(_, 10);
@@ -22097,9 +22085,9 @@ function la(_) {
22097
22085
  ] : [A.getFullYear(), A.getMonth(), A.getDate()];
22098
22086
  }
22099
22087
  function xe(_) {
22100
- var A, f, y = [], m, S, F;
22088
+ var A, f, y = [], m, S, C;
22101
22089
  if (!_._d) {
22102
- for (m = la(_), _._w && _._a[j0] == null && _._a[a1] == null && pa(_), _._dayOfYear != null && (F = f1(_._a[I0], m[I0]), (_._dayOfYear > L1(F) || _._dayOfYear === 0) && (t0(_)._overflowDayOfYear = !0), f = F1(F, 0, _._dayOfYear), _._a[a1] = f.getUTCMonth(), _._a[j0] = f.getUTCDate()), A = 0; A < 3 && _._a[A] == null; ++A)
22090
+ for (m = la(_), _._w && _._a[j0] == null && _._a[a1] == null && pa(_), _._dayOfYear != null && (C = f1(_._a[I0], m[I0]), (_._dayOfYear > L1(C) || _._dayOfYear === 0) && (t0(_)._overflowDayOfYear = !0), f = F1(C, 0, _._dayOfYear), _._a[a1] = f.getUTCMonth(), _._a[j0] = f.getUTCDate()), A = 0; A < 3 && _._a[A] == null; ++A)
22103
22091
  _._a[A] = y[A] = m[A];
22104
22092
  for (; A < 7; A++)
22105
22093
  _._a[A] = y[A] = _._a[A] == null ? A === 2 ? 1 : 0 : _._a[A];
@@ -22110,12 +22098,12 @@ function xe(_) {
22110
22098
  }
22111
22099
  }
22112
22100
  function pa(_) {
22113
- var A, f, y, m, S, F, N, P, J;
22114
- A = _._w, A.GG != null || A.W != null || A.E != null ? (S = 1, F = 4, f = f1(
22101
+ var A, f, y, m, S, C, N, P, J;
22102
+ A = _._w, A.GG != null || A.W != null || A.E != null ? (S = 1, C = 4, f = f1(
22115
22103
  A.GG,
22116
22104
  _._a[I0],
22117
22105
  I1($0(), 1, 4).year
22118
- ), y = f1(A.W, 1), m = f1(A.E, 1), (m < 1 || m > 7) && (P = !0)) : (S = _._locale._week.dow, F = _._locale._week.doy, J = I1($0(), S, F), f = f1(A.gg, _._a[I0], J.year), y = f1(A.w, J.week), A.d != null ? (m = A.d, (m < 0 || m > 6) && (P = !0)) : A.e != null ? (m = A.e + S, (A.e < 0 || A.e > 6) && (P = !0)) : m = S), y < 1 || y > s1(f, S, F) ? t0(_)._overflowWeeks = !0 : P != null ? t0(_)._overflowWeekday = !0 : (N = Nt(f, y, m, S, F), _._a[I0] = N.year, _._dayOfYear = N.dayOfYear);
22106
+ ), y = f1(A.W, 1), m = f1(A.E, 1), (m < 1 || m > 7) && (P = !0)) : (S = _._locale._week.dow, C = _._locale._week.doy, J = I1($0(), S, C), f = f1(A.gg, _._a[I0], J.year), y = f1(A.w, J.week), A.d != null ? (m = A.d, (m < 0 || m > 6) && (P = !0)) : A.e != null ? (m = A.e + S, (A.e < 0 || A.e > 6) && (P = !0)) : m = S), y < 1 || y > s1(f, S, C) ? t0(_)._overflowWeeks = !0 : P != null ? t0(_)._overflowWeekday = !0 : (N = Nt(f, y, m, S, C), _._a[I0] = N.year, _._dayOfYear = N.dayOfYear);
22119
22107
  }
22120
22108
  G.ISO_8601 = function() {
22121
22109
  };
@@ -22131,9 +22119,9 @@ function ve(_) {
22131
22119
  return;
22132
22120
  }
22133
22121
  _._a = [], t0(_).empty = !0;
22134
- var A = "" + _._i, f, y, m, S, F, N = A.length, P = 0, J, H;
22122
+ var A = "" + _._i, f, y, m, S, C, N = A.length, P = 0, J, H;
22135
22123
  for (m = qt(_._f, _._locale).match(Se) || [], H = m.length, f = 0; f < H; f++)
22136
- S = m[f], y = (A.match(Vr(S, _)) || [])[0], y && (F = A.substr(0, A.indexOf(y)), F.length > 0 && t0(_).unusedInput.push(F), A = A.slice(
22124
+ S = m[f], y = (A.match(Vr(S, _)) || [])[0], y && (C = A.substr(0, A.indexOf(y)), C.length > 0 && t0(_).unusedInput.push(C), A = A.slice(
22137
22125
  A.indexOf(y) + y.length
22138
22126
  ), P += y.length), $1[S] ? (y ? t0(_).empty = !1 : t0(_).unusedTokens.push(S), Kr(S, y, _)) : _._strict && !y && t0(_).unusedTokens.push(S);
22139
22127
  t0(_).charsLeftOver = N - P, A.length > 0 && t0(_).unusedInput.push(A), _._a[C0] <= 12 && t0(_).bigHour === !0 && _._a[C0] > 0 && (t0(_).bigHour = void 0), t0(_).parsedDateParts = _._a.slice(0), t0(_).meridiem = _._meridiem, _._a[C0] = ca(
@@ -22147,13 +22135,13 @@ function ca(_, A, f) {
22147
22135
  return f == null ? A : _.meridiemHour != null ? _.meridiemHour(A, f) : (_.isPM != null && (y = _.isPM(f), y && A < 12 && (A += 12), !y && A === 12 && (A = 0)), A);
22148
22136
  }
22149
22137
  function _a(_) {
22150
- var A, f, y, m, S, F, N = !1, P = _._f.length;
22138
+ var A, f, y, m, S, C, N = !1, P = _._f.length;
22151
22139
  if (P === 0) {
22152
22140
  t0(_).invalidFormat = !0, _._d = /* @__PURE__ */ new Date(NaN);
22153
22141
  return;
22154
22142
  }
22155
22143
  for (m = 0; m < P; m++)
22156
- S = 0, F = !1, A = ge({}, _), _._useUTC != null && (A._useUTC = _._useUTC), A._f = _._f[m], ve(A), qe(A) && (F = !0), S += t0(A).charsLeftOver, S += t0(A).unusedTokens.length * 10, t0(A).score = S, N ? S < y && (y = S, f = A) : (y == null || S < y || F) && (y = S, f = A, F && (N = !0));
22144
+ S = 0, C = !1, A = ge({}, _), _._useUTC != null && (A._useUTC = _._useUTC), A._f = _._f[m], ve(A), qe(A) && (C = !0), S += t0(A).charsLeftOver, S += t0(A).unusedTokens.length * 10, t0(A).score = S, N ? S < y && (y = S, f = A) : (y == null || S < y || C) && (y = S, f = A, C && (N = !0));
22157
22145
  _1(_, f || A);
22158
22146
  }
22159
22147
  function Ma(_) {
@@ -22250,10 +22238,10 @@ function Ea() {
22250
22238
  return V0(NaN);
22251
22239
  }
22252
22240
  function le(_) {
22253
- var A = Te(_), f = A.year || 0, y = A.quarter || 0, m = A.month || 0, S = A.week || A.isoWeek || 0, F = A.day || 0, N = A.hour || 0, P = A.minute || 0, J = A.second || 0, H = A.millisecond || 0;
22241
+ var A = Te(_), f = A.year || 0, y = A.quarter || 0, m = A.month || 0, S = A.week || A.isoWeek || 0, C = A.day || 0, N = A.hour || 0, P = A.minute || 0, J = A.second || 0, H = A.millisecond || 0;
22254
22242
  this._isValid = ya(A), this._milliseconds = +H + J * 1e3 + // 1000
22255
22243
  P * 6e4 + // 1000 * 60
22256
- N * 1e3 * 60 * 60, this._days = +F + S * 7, this._months = +m + y * 3 + f * 12, this._data = {}, this._locale = l1(), this._bubble();
22244
+ N * 1e3 * 60 * 60, this._days = +C + S * 7, this._months = +m + y * 3 + f * 12, this._data = {}, this._locale = l1(), this._bubble();
22257
22245
  }
22258
22246
  function U1(_) {
22259
22247
  return _ instanceof le;
@@ -22262,9 +22250,9 @@ function ye(_) {
22262
22250
  return _ < 0 ? Math.round(-1 * _) * -1 : Math.round(_);
22263
22251
  }
22264
22252
  function ma(_, A, f) {
22265
- var y = Math.min(_.length, A.length), m = Math.abs(_.length - A.length), S = 0, F;
22266
- for (F = 0; F < y; F++)
22267
- s0(_[F]) !== s0(A[F]) && S++;
22253
+ var y = Math.min(_.length, A.length), m = Math.abs(_.length - A.length), S = 0, C;
22254
+ for (C = 0; C < y; C++)
22255
+ s0(_[C]) !== s0(A[C]) && S++;
22268
22256
  return S + m;
22269
22257
  }
22270
22258
  function Yt(_, A) {
@@ -22353,7 +22341,7 @@ function Gt() {
22353
22341
  }
22354
22342
  var Ba = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Na = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
22355
22343
  function V0(_, A) {
22356
- var f = _, y = null, m, S, F;
22344
+ var f = _, y = null, m, S, C;
22357
22345
  return U1(_) ? f = {
22358
22346
  ms: _._milliseconds,
22359
22347
  d: _._days,
@@ -22374,10 +22362,10 @@ function V0(_, A) {
22374
22362
  h: d1(y[6], m),
22375
22363
  m: d1(y[7], m),
22376
22364
  s: d1(y[8], m)
22377
- }) : f == null ? f = {} : typeof f == "object" && ("from" in f || "to" in f) && (F = wa(
22365
+ }) : f == null ? f = {} : typeof f == "object" && ("from" in f || "to" in f) && (C = wa(
22378
22366
  $0(f.from),
22379
22367
  $0(f.to)
22380
- ), f = {}, f.ms = F.milliseconds, f.M = F.months), S = new le(f), U1(_) && O0(_, "_locale") && (S._locale = _._locale), U1(_) && O0(_, "_isValid") && (S._isValid = _._isValid), S;
22368
+ ), f = {}, f.ms = C.milliseconds, f.M = C.months), S = new le(f), U1(_) && O0(_, "_locale") && (S._locale = _._locale), U1(_) && O0(_, "_isValid") && (S._isValid = _._isValid), S;
22381
22369
  }
22382
22370
  V0.fn = le.prototype;
22383
22371
  V0.invalid = Ea;
@@ -22403,8 +22391,8 @@ function Qt(_, A) {
22403
22391
  };
22404
22392
  }
22405
22393
  function Vt(_, A, f, y) {
22406
- var m = A._milliseconds, S = ye(A._days), F = ye(A._months);
22407
- _.isValid() && (y = y ?? !0, F && It(_, C1(_, "Month") + F * f), S && Lt(_, "Date", C1(_, "Date") + S * f), m && _._d.setTime(_._d.valueOf() + m * f), y && G.updateOffset(_, S || F));
22394
+ var m = A._milliseconds, S = ye(A._days), C = ye(A._months);
22395
+ _.isValid() && (y = y ?? !0, C && It(_, C1(_, "Month") + C * f), S && Lt(_, "Date", C1(_, "Date") + S * f), m && _._d.setTime(_._d.valueOf() + m * f), y && G.updateOffset(_, S || C));
22408
22396
  }
22409
22397
  var xa = Qt(1, "add"), va = Qt(-1, "subtract");
22410
22398
  function jt(_) {
@@ -22439,8 +22427,8 @@ function Ja(_) {
22439
22427
  "milliseconds",
22440
22428
  "millisecond",
22441
22429
  "ms"
22442
- ], m, S, F = y.length;
22443
- for (m = 0; m < F; m += 1)
22430
+ ], m, S, C = y.length;
22431
+ for (m = 0; m < C; m += 1)
22444
22432
  S = y[m], f = f || O0(_, S);
22445
22433
  return A && f;
22446
22434
  }
@@ -22811,9 +22799,9 @@ function yi(_, A) {
22811
22799
  return S;
22812
22800
  }
22813
22801
  function $i(_, A, f) {
22814
- var y, m, S = this.eras(), F, N, P;
22802
+ var y, m, S = this.eras(), C, N, P;
22815
22803
  for (_ = _.toUpperCase(), y = 0, m = S.length; y < m; ++y)
22816
- if (F = S[y].name.toUpperCase(), N = S[y].abbr.toUpperCase(), P = S[y].narrow.toUpperCase(), f)
22804
+ if (C = S[y].name.toUpperCase(), N = S[y].abbr.toUpperCase(), P = S[y].narrow.toUpperCase(), f)
22817
22805
  switch (A) {
22818
22806
  case "N":
22819
22807
  case "NN":
@@ -22822,7 +22810,7 @@ function $i(_, A, f) {
22822
22810
  return S[y];
22823
22811
  break;
22824
22812
  case "NNNN":
22825
- if (F === _)
22813
+ if (C === _)
22826
22814
  return S[y];
22827
22815
  break;
22828
22816
  case "NNNNN":
@@ -22830,7 +22818,7 @@ function $i(_, A, f) {
22830
22818
  return S[y];
22831
22819
  break;
22832
22820
  }
22833
- else if ([F, N, P].indexOf(_) >= 0)
22821
+ else if ([C, N, P].indexOf(_) >= 0)
22834
22822
  return S[y];
22835
22823
  }
22836
22824
  function Ei(_, A) {
@@ -22887,9 +22875,9 @@ function Fi(_, A) {
22887
22875
  return A._eraYearOrdinalRegex || q1;
22888
22876
  }
22889
22877
  function Xe() {
22890
- var _ = [], A = [], f = [], y = [], m, S, F, N, P, J = this.eras();
22878
+ var _ = [], A = [], f = [], y = [], m, S, C, N, P, J = this.eras();
22891
22879
  for (m = 0, S = J.length; m < S; ++m)
22892
- F = o1(J[m].name), N = o1(J[m].abbr), P = o1(J[m].narrow), A.push(F), _.push(N), f.push(P), y.push(F), y.push(N), y.push(P);
22880
+ C = o1(J[m].name), N = o1(J[m].abbr), P = o1(J[m].narrow), A.push(C), _.push(N), f.push(P), y.push(C), y.push(N), y.push(P);
22893
22881
  this._erasRegex = new RegExp("^(" + y.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + A.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + _.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
22894
22882
  "^(" + f.join("|") + ")",
22895
22883
  "i"
@@ -22964,8 +22952,8 @@ function ar(_, A, f, y, m) {
22964
22952
  return _ == null ? I1(this, y, m).year : (S = s1(_, y, m), A > S && (A = S), vi.call(this, _, A, f, y, m));
22965
22953
  }
22966
22954
  function vi(_, A, f, y, m) {
22967
- var S = Nt(_, A, f, y, m), F = F1(S.year, 0, S.dayOfYear);
22968
- return this.year(F.getUTCFullYear()), this.month(F.getUTCMonth()), this.date(F.getUTCDate()), this;
22955
+ var S = Nt(_, A, f, y, m), C = F1(S.year, 0, S.dayOfYear);
22956
+ return this.year(C.getUTCFullYear()), this.month(C.getUTCMonth()), this.date(C.getUTCDate()), this;
22969
22957
  }
22970
22958
  j("Q", 0, "Qo", "quarter");
22971
22959
  Q("Q", gt);
@@ -23209,11 +23197,11 @@ function ur(_, A, f) {
23209
23197
  }
23210
23198
  function ke(_, A, f, y) {
23211
23199
  typeof _ == "boolean" ? (u1(A) && (f = A, A = void 0), A = A || "") : (A = _, f = A, _ = !1, u1(A) && (f = A, A = void 0), A = A || "");
23212
- var m = l1(), S = _ ? m._week.dow : 0, F, N = [];
23200
+ var m = l1(), S = _ ? m._week.dow : 0, C, N = [];
23213
23201
  if (f != null)
23214
23202
  return Z1(A, (f + S) % 7, y, "day");
23215
- for (F = 0; F < 7; F++)
23216
- N[F] = Z1(A, (F + S) % 7, y, "day");
23203
+ for (C = 0; C < 7; C++)
23204
+ N[C] = Z1(A, (C + S) % 7, y, "day");
23217
23205
  return N;
23218
23206
  }
23219
23207
  function Vi(_, A) {
@@ -23283,8 +23271,8 @@ function _t(_) {
23283
23271
  return _ < 0 ? Math.floor(_) : Math.ceil(_);
23284
23272
  }
23285
23273
  function ao() {
23286
- var _ = this._milliseconds, A = this._days, f = this._months, y = this._data, m, S, F, N, P;
23287
- return _ >= 0 && A >= 0 && f >= 0 || _ <= 0 && A <= 0 && f <= 0 || (_ += _t(Ee(f) + A) * 864e5, A = 0, f = 0), y.milliseconds = _ % 1e3, m = J0(_ / 1e3), y.seconds = m % 60, S = J0(m / 60), y.minutes = S % 60, F = J0(S / 60), y.hours = F % 24, A += J0(F / 24), P = J0(pr(A)), f += P, A -= _t(Ee(P)), N = J0(f / 12), f %= 12, y.days = A, y.months = f, y.years = N, this;
23274
+ var _ = this._milliseconds, A = this._days, f = this._months, y = this._data, m, S, C, N, P;
23275
+ return _ >= 0 && A >= 0 && f >= 0 || _ <= 0 && A <= 0 && f <= 0 || (_ += _t(Ee(f) + A) * 864e5, A = 0, f = 0), y.milliseconds = _ % 1e3, m = J0(_ / 1e3), y.seconds = m % 60, S = J0(m / 60), y.minutes = S % 60, C = J0(S / 60), y.hours = C % 24, A += J0(C / 24), P = J0(pr(A)), f += P, A -= _t(Ee(P)), N = J0(f / 12), f %= 12, y.days = A, y.months = f, y.years = N, this;
23288
23276
  }
23289
23277
  function pr(_) {
23290
23278
  return _ * 4800 / 146097;
@@ -23364,7 +23352,7 @@ function go(_, A, f, y, m) {
23364
23352
  return m.relativeTime(A || 1, !!f, _, y);
23365
23353
  }
23366
23354
  function ho(_, A, f, y) {
23367
- var m = V0(_).abs(), S = n1(m.as("s")), F = n1(m.as("m")), N = n1(m.as("h")), P = n1(m.as("d")), J = n1(m.as("M")), H = n1(m.as("w")), Y = n1(m.as("y")), Z = S <= f.ss && ["s", S] || S < f.s && ["ss", S] || F <= 1 && ["m"] || F < f.m && ["mm", F] || N <= 1 && ["h"] || N < f.h && ["hh", N] || P <= 1 && ["d"] || P < f.d && ["dd", P];
23355
+ var m = V0(_).abs(), S = n1(m.as("s")), C = n1(m.as("m")), N = n1(m.as("h")), P = n1(m.as("d")), J = n1(m.as("M")), H = n1(m.as("w")), Y = n1(m.as("y")), Z = S <= f.ss && ["s", S] || S < f.s && ["ss", S] || C <= 1 && ["m"] || C < f.m && ["mm", C] || N <= 1 && ["h"] || N < f.h && ["hh", N] || P <= 1 && ["d"] || P < f.d && ["dd", P];
23368
23356
  return f.w != null && (Z = Z || H <= 1 && ["w"] || H < f.w && ["ww", H]), Z = Z || J <= 1 && ["M"] || J < f.M && ["MM", J] || Y <= 1 && ["y"] || ["yy", Y], Z[2] = A, Z[3] = +_ > 0, Z[4] = y, go.apply(null, Z);
23369
23357
  }
23370
23358
  function So(_) {
@@ -23386,8 +23374,8 @@ function D1(_) {
23386
23374
  function ce() {
23387
23375
  if (!this.isValid())
23388
23376
  return this.localeData().invalidDate();
23389
- var _ = de(this._milliseconds) / 1e3, A = de(this._days), f = de(this._months), y, m, S, F, N = this.asSeconds(), P, J, H, Y;
23390
- return N ? (y = J0(_ / 60), m = J0(y / 60), _ %= 60, y %= 60, S = J0(f / 12), f %= 12, F = _ ? _.toFixed(3).replace(/\.?0+$/, "") : "", P = N < 0 ? "-" : "", J = D1(this._months) !== D1(N) ? "-" : "", H = D1(this._days) !== D1(N) ? "-" : "", Y = D1(this._milliseconds) !== D1(N) ? "-" : "", P + "P" + (S ? J + S + "Y" : "") + (f ? J + f + "M" : "") + (A ? H + A + "D" : "") + (m || y || _ ? "T" : "") + (m ? Y + m + "H" : "") + (y ? Y + y + "M" : "") + (_ ? Y + F + "S" : "")) : "P0D";
23377
+ var _ = de(this._milliseconds) / 1e3, A = de(this._days), f = de(this._months), y, m, S, C, N = this.asSeconds(), P, J, H, Y;
23378
+ return N ? (y = J0(_ / 60), m = J0(y / 60), _ %= 60, y %= 60, S = J0(f / 12), f %= 12, C = _ ? _.toFixed(3).replace(/\.?0+$/, "") : "", P = N < 0 ? "-" : "", J = D1(this._months) !== D1(N) ? "-" : "", H = D1(this._days) !== D1(N) ? "-" : "", Y = D1(this._milliseconds) !== D1(N) ? "-" : "", P + "P" + (S ? J + S + "Y" : "") + (f ? J + f + "M" : "") + (A ? H + A + "D" : "") + (m || y || _ ? "T" : "") + (m ? Y + m + "H" : "") + (y ? Y + y + "M" : "") + (_ ? Y + C + "S" : "")) : "P0D";
23391
23379
  }
23392
23380
  var M0 = le.prototype;
23393
23381
  M0.isValid = $a;
@@ -23501,7 +23489,7 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23501
23489
  _.exports ? _.exports = f(Co) : f(A.moment);
23502
23490
  })(dr, function(A) {
23503
23491
  A.version === void 0 && A.default && (A = A.default);
23504
- var f = "0.5.48", y = {}, m = {}, S = {}, F = {}, N = {}, P;
23492
+ var f = "0.5.48", y = {}, m = {}, S = {}, C = {}, N = {}, P;
23505
23493
  (!A || typeof A.version != "string") && a("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
23506
23494
  var J = A.version.split("."), H = +J[0], Y = +J[1];
23507
23495
  (H < 2 || H === 2 && Y < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + A.version + ". See momentjs.com");
@@ -23509,12 +23497,12 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23509
23497
  return b > 96 ? b - 87 : b > 64 ? b - 29 : b - 48;
23510
23498
  }
23511
23499
  function i0(b) {
23512
- var O = 0, D = b.split("."), $ = D[0], E = D[1] || "", g = 1, h, R = 0, L = 1;
23513
- for (b.charCodeAt(0) === 45 && (O = 1, L = -1), O; O < $.length; O++)
23514
- h = Z($.charCodeAt(O)), R = 60 * R + h;
23500
+ var O = 0, D = b.split("."), $ = D[0], E = D[1] || "", g = 1, h, T = 0, F = 1;
23501
+ for (b.charCodeAt(0) === 45 && (O = 1, F = -1), O; O < $.length; O++)
23502
+ h = Z($.charCodeAt(O)), T = 60 * T + h;
23515
23503
  for (O = 0; O < E.length; O++)
23516
- g = g / 60, h = Z(E.charCodeAt(O)), R += h * g;
23517
- return R * L;
23504
+ g = g / 60, h = Z(E.charCodeAt(O)), T += h * g;
23505
+ return T * F;
23518
23506
  }
23519
23507
  function u0(b) {
23520
23508
  for (var O = 0; O < b.length; O++)
@@ -23572,10 +23560,10 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23572
23560
  });
23573
23561
  },
23574
23562
  parse: function(b) {
23575
- var O = +b, D = this.offsets, $ = this.untils, E = $.length - 1, g, h, R, L;
23576
- for (L = 0; L < E; L++)
23577
- if (g = D[L], h = D[L + 1], R = D[L && L - 1], g < h && i.moveAmbiguousForward ? g = h : g > R && i.moveInvalidForward && (g = R), O < $[L] - g * 6e4)
23578
- return D[L];
23563
+ var O = +b, D = this.offsets, $ = this.untils, E = $.length - 1, g, h, T, F;
23564
+ for (F = 0; F < E; F++)
23565
+ if (g = D[F], h = D[F + 1], T = D[F && F - 1], g < h && i.moveAmbiguousForward ? g = h : g > T && i.moveInvalidForward && (g = T), O < $[F] - g * 6e4)
23566
+ return D[F];
23579
23567
  return D[E];
23580
23568
  },
23581
23569
  abbr: function(b) {
@@ -23607,11 +23595,11 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23607
23595
  return b;
23608
23596
  }
23609
23597
  function c0() {
23610
- var b = (/* @__PURE__ */ new Date()).getFullYear() - 2, O = new B0(new Date(b, 0, 1)), D = O.offset, $ = [O], E, g, h, R;
23611
- for (R = 1; R < 48; R++)
23612
- h = new Date(b, R, 1).getTimezoneOffset(), h !== D && (g = new B0(new Date(b, R, 1)), E = r0(O, g), $.push(E), $.push(new B0(new Date(E.at + 6e4))), O = g, D = h);
23613
- for (R = 0; R < 4; R++)
23614
- $.push(new B0(new Date(b + R, 0, 1))), $.push(new B0(new Date(b + R, 6, 1)));
23598
+ var b = (/* @__PURE__ */ new Date()).getFullYear() - 2, O = new B0(new Date(b, 0, 1)), D = O.offset, $ = [O], E, g, h, T;
23599
+ for (T = 1; T < 48; T++)
23600
+ h = new Date(b, T, 1).getTimezoneOffset(), h !== D && (g = new B0(new Date(b, T, 1)), E = r0(O, g), $.push(E), $.push(new B0(new Date(E.at + 6e4))), O = g, D = h);
23601
+ for (T = 0; T < 4; T++)
23602
+ $.push(new B0(new Date(b + T, 0, 1))), $.push(new B0(new Date(b + T, 6, 1)));
23615
23603
  return $;
23616
23604
  }
23617
23605
  function n0(b, O) {
@@ -23623,33 +23611,33 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23623
23611
  $ = O[D], N[$] = N[$] || {}, N[$][b] = !0;
23624
23612
  }
23625
23613
  function m0(b) {
23626
- var O = b.length, D = {}, $ = [], E = {}, g, h, R, L;
23614
+ var O = b.length, D = {}, $ = [], E = {}, g, h, T, F;
23627
23615
  for (g = 0; g < O; g++)
23628
- if (R = b[g].offset, !E.hasOwnProperty(R)) {
23629
- L = N[R] || {};
23630
- for (h in L)
23631
- L.hasOwnProperty(h) && (D[h] = !0);
23632
- E[R] = !0;
23616
+ if (T = b[g].offset, !E.hasOwnProperty(T)) {
23617
+ F = N[T] || {};
23618
+ for (h in F)
23619
+ F.hasOwnProperty(h) && (D[h] = !0);
23620
+ E[T] = !0;
23633
23621
  }
23634
23622
  for (g in D)
23635
- D.hasOwnProperty(g) && $.push(F[g]);
23623
+ D.hasOwnProperty(g) && $.push(C[g]);
23636
23624
  return $;
23637
23625
  }
23638
23626
  function b0() {
23639
23627
  try {
23640
23628
  var b = Intl.DateTimeFormat().resolvedOptions().timeZone;
23641
23629
  if (b && b.length > 3) {
23642
- var O = F[a0(b)];
23630
+ var O = C[a0(b)];
23643
23631
  if (O)
23644
23632
  return O;
23645
23633
  a("Moment Timezone found " + b + " from the Intl api, but did not have that data loaded.");
23646
23634
  }
23647
23635
  } catch {
23648
23636
  }
23649
- var D = c0(), $ = D.length, E = m0(D), g = [], h, R, L;
23650
- for (R = 0; R < E.length; R++) {
23651
- for (h = new P0(o(E[R])), L = 0; L < $; L++)
23652
- h.scoreOffsetAt(D[L]);
23637
+ var D = c0(), $ = D.length, E = m0(D), g = [], h, T, F;
23638
+ for (T = 0; T < E.length; T++) {
23639
+ for (h = new P0(o(E[T])), F = 0; F < $; F++)
23640
+ h.scoreOffsetAt(D[F]);
23653
23641
  g.push(h);
23654
23642
  }
23655
23643
  return g.sort(n0), g.length > 0 ? g[0].zone.name : void 0;
@@ -23663,17 +23651,17 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23663
23651
  function t(b) {
23664
23652
  var O, D, $, E;
23665
23653
  for (typeof b == "string" && (b = [b]), O = 0; O < b.length; O++)
23666
- $ = b[O].split("|"), D = $[0], E = a0(D), y[E] = b[O], F[E] = D, L0(E, $[2].split(" "));
23654
+ $ = b[O].split("|"), D = $[0], E = a0(D), y[E] = b[O], C[E] = D, L0(E, $[2].split(" "));
23667
23655
  }
23668
23656
  function o(b, O) {
23669
23657
  b = a0(b);
23670
23658
  var D = y[b], $;
23671
- return D instanceof l0 ? D : typeof D == "string" ? (D = new l0(D), y[b] = D, D) : m[b] && O !== o && ($ = o(m[b], o)) ? (D = y[b] = new l0(), D._set($), D.name = F[b], D) : null;
23659
+ return D instanceof l0 ? D : typeof D == "string" ? (D = new l0(D), y[b] = D, D) : m[b] && O !== o && ($ = o(m[b], o)) ? (D = y[b] = new l0(), D._set($), D.name = C[b], D) : null;
23672
23660
  }
23673
23661
  function u() {
23674
23662
  var b, O = [];
23675
- for (b in F)
23676
- F.hasOwnProperty(b) && (y[b] || y[m[b]]) && F[b] && O.push(F[b]);
23663
+ for (b in C)
23664
+ C.hasOwnProperty(b) && (y[b] || y[m[b]]) && C[b] && O.push(C[b]);
23677
23665
  return O.sort();
23678
23666
  }
23679
23667
  function z() {
@@ -23682,9 +23670,9 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23682
23670
  function q(b) {
23683
23671
  var O, D, $, E;
23684
23672
  for (typeof b == "string" && (b = [b]), O = 0; O < b.length; O++)
23685
- D = b[O].split("|"), $ = a0(D[0]), E = a0(D[1]), m[$] = E, F[$] = D[0], m[E] = $, F[E] = D[1];
23673
+ D = b[O].split("|"), $ = a0(D[0]), E = a0(D[1]), m[$] = E, C[$] = D[0], m[E] = $, C[E] = D[1];
23686
23674
  }
23687
- function C(b) {
23675
+ function L(b) {
23688
23676
  var O, D, $, E;
23689
23677
  if (!(!b || !b.length))
23690
23678
  for (O = 0; O < b.length; O++)
@@ -23693,11 +23681,11 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23693
23681
  $
23694
23682
  );
23695
23683
  }
23696
- function T(b) {
23684
+ function R(b) {
23697
23685
  return b = b.toUpperCase(), S[b] || null;
23698
23686
  }
23699
23687
  function d(b, O) {
23700
- if (b = T(b), !b) return null;
23688
+ if (b = R(b), !b) return null;
23701
23689
  var D = b.zones.sort();
23702
23690
  return O ? D.map(function($) {
23703
23691
  var E = o($);
@@ -23708,7 +23696,7 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23708
23696
  }) : D;
23709
23697
  }
23710
23698
  function r(b) {
23711
- t(b.zones), q(b.links), C(b.countries), i.dataVersion = b.version;
23699
+ t(b.zones), q(b.links), L(b.countries), i.dataVersion = b.version;
23712
23700
  }
23713
23701
  function e(b) {
23714
23702
  return e.didShowError || (e.didShowError = !0, a("moment.tz.zoneExists('" + b + "') has been deprecated in favor of !moment.tz.zone('" + b + "')")), !!o(b);
@@ -23724,7 +23712,7 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23724
23712
  var O = Array.prototype.slice.call(arguments, 0, -1), D = arguments[arguments.length - 1], $ = A.utc.apply(null, O), E;
23725
23713
  return !A.isMoment(b) && n($) && (E = o(D)) && $.add(E.parse($), "minutes"), $.tz(D), $;
23726
23714
  }
23727
- i.version = f, i.dataVersion = "", i._zones = y, i._links = m, i._names = F, i._countries = S, i.add = t, i.link = q, i.load = r, i.zone = o, i.zoneExists = e, i.guess = p0, i.names = u, i.Zone = l0, i.unpack = V, i.unpackBase60 = i0, i.needsOffset = n, i.moveInvalidForward = !0, i.moveAmbiguousForward = !1, i.countries = z, i.zonesForCountry = d;
23715
+ i.version = f, i.dataVersion = "", i._zones = y, i._links = m, i._names = C, i._countries = S, i.add = t, i.link = q, i.load = r, i.zone = o, i.zoneExists = e, i.guess = p0, i.names = u, i.Zone = l0, i.unpack = V, i.unpackBase60 = i0, i.needsOffset = n, i.moveInvalidForward = !0, i.moveAmbiguousForward = !1, i.countries = z, i.zonesForCountry = d;
23728
23716
  var s = A.fn;
23729
23717
  A.tz = i, A.defaultZone = null, A.updateOffset = function(b, O) {
23730
23718
  var D = A.defaultZone, $;
@@ -24662,7 +24650,7 @@ function Jo(_) {
24662
24650
  }
24663
24651
  }
24664
24652
  function Ho(_) {
24665
- const { responses: A, isCompare: f, mainRequestCount: y, timezone: m } = _, S = A[0], F = S.columns.map((U) => ({
24653
+ const { responses: A, isCompare: f, mainRequestCount: y, timezone: m } = _, S = A[0], C = S.columns.map((U) => ({
24666
24654
  key: U.id,
24667
24655
  label: U.label,
24668
24656
  type: Yo(U.dataType),
@@ -24708,8 +24696,8 @@ function Ho(_) {
24708
24696
  }
24709
24697
  }
24710
24698
  const Y = new Set(
24711
- F.reduce((U, V, l0) => (V.hide && U.push(l0), U), [])
24712
- ), Z = Y.size > 0 ? F.filter((U, V) => !Y.has(V)) : F, i0 = Y.size > 0 ? H.map((U) => ({
24699
+ C.reduce((U, V, l0) => (V.hide && U.push(l0), U), [])
24700
+ ), Z = Y.size > 0 ? C.filter((U, V) => !Y.has(V)) : C, i0 = Y.size > 0 ? H.map((U) => ({
24713
24701
  ...U,
24714
24702
  cells: U.cells.filter((V, l0) => !Y.has(l0)),
24715
24703
  comparisonCells: U.comparisonCells.filter(
@@ -24731,7 +24719,7 @@ function Xo(_) {
24731
24719
  isCompare: y,
24732
24720
  mainRequestCount: m,
24733
24721
  timezone: S,
24734
- datasetSort: F
24722
+ datasetSort: C
24735
24723
  } = _, N = f[0], P = N.columns.filter(
24736
24724
  (r0) => r0.fieldType === "DIMENSION" && !r0.hide
24737
24725
  ), J = N.columns.filter(
@@ -24751,7 +24739,7 @@ function Xo(_) {
24751
24739
  let V = [];
24752
24740
  const l0 = [];
24753
24741
  if (Y)
24754
- if (F) {
24742
+ if (C) {
24755
24743
  const r0 = /* @__PURE__ */ new Set(), c0 = Z.map(() => /* @__PURE__ */ new Set());
24756
24744
  for (const n0 of N.rows) {
24757
24745
  if (n0.isRollup) continue;
@@ -24865,7 +24853,7 @@ function Xo(_) {
24865
24853
  const m0 = /* @__PURE__ */ new Map();
24866
24854
  if (n0.forEach(
24867
24855
  (b0, p0) => m0.set(b0, p0)
24868
- ), V = n0, Y && F) {
24856
+ ), V = n0, Y && C) {
24869
24857
  const b0 = /* @__PURE__ */ new Map();
24870
24858
  for (const p0 of r0.rows) {
24871
24859
  if (p0.isRollup) continue;
@@ -24928,8 +24916,8 @@ function Xo(_) {
24928
24916
  u.value[H.id] ?? null,
24929
24917
  H,
24930
24918
  S
24931
- ) : "", q = m0.get(z), C = H != null && H.dateComparison ? q : u0.get(z);
24932
- C != null && (t[C] = R1(
24919
+ ) : "", q = m0.get(z), L = H != null && H.dateComparison ? q : u0.get(z);
24920
+ L != null && (t[L] = R1(
24933
24921
  u.value[a0.id],
24934
24922
  a0
24935
24923
  ));
@@ -24973,7 +24961,7 @@ function ko(_) {
24973
24961
  mainRequestCount: y,
24974
24962
  timezone: m,
24975
24963
  sparklineType: S,
24976
- sparklinePercentOfTotal: F
24964
+ sparklinePercentOfTotal: C
24977
24965
  } = _, N = A[0];
24978
24966
  if (!N)
24979
24967
  return null;
@@ -25022,14 +25010,14 @@ function ko(_) {
25022
25010
  ...P ? c1(P) : {},
25023
25011
  sparkline: {
25024
25012
  type: S || r1.LINECHART,
25025
- percentOfTotal: F === !0,
25013
+ percentOfTotal: C === !0,
25026
25014
  dimensions: u0,
25027
25015
  datasets: o0
25028
25016
  }
25029
25017
  };
25030
25018
  }
25031
25019
  function Uo(_) {
25032
- const { responses: A, isCompare: f, mainRequestCount: y, timezone: m } = _, S = A[0], F = S.columns.find(
25020
+ const { responses: A, isCompare: f, mainRequestCount: y, timezone: m } = _, S = A[0], C = S.columns.find(
25033
25021
  (o0) => o0.fieldType === "DIMENSION" && !o0.hide
25034
25022
  ), N = S.columns.find(
25035
25023
  (o0) => o0.fieldType === "METRIC" && !o0.hide
@@ -25046,16 +25034,16 @@ function Uo(_) {
25046
25034
  }, J = /* @__PURE__ */ new Map();
25047
25035
  for (const U of o0.rows) {
25048
25036
  if (U.isRollup) continue;
25049
- const V = F ? T0(U.value[F.id] ?? null, F, m) : "";
25037
+ const V = C ? T0(U.value[C.id] ?? null, C, m) : "";
25050
25038
  N && J.set(V, ee(U.value[N.id]));
25051
25039
  }
25052
25040
  }
25053
25041
  const Y = [], Z = { main: P };
25054
25042
  H && (Z.comparison = H);
25055
- const i0 = B1(F, P, m);
25043
+ const i0 = B1(C, P, m);
25056
25044
  for (const o0 of S.rows) {
25057
25045
  if (o0.isRollup) continue;
25058
- const U = F ? T0(o0.value[F.id] ?? null, F, m) : "", V = N ? ee(o0.value[N.id]) : 0, l0 = (J == null ? void 0 : J.get(U)) ?? null;
25046
+ const U = C ? T0(o0.value[C.id] ?? null, C, m) : "", V = N ? ee(o0.value[N.id]) : 0, l0 = (J == null ? void 0 : J.get(U)) ?? null;
25059
25047
  Y.push({
25060
25048
  name: i0(U),
25061
25049
  value: V,
@@ -25110,19 +25098,19 @@ function Vo(_, A) {
25110
25098
  if (!A || A.length === 0) return "0";
25111
25099
  const f = A[A.length - 1];
25112
25100
  let m = Math.floor(_ / G1[f]) * G1[f];
25113
- return A.map((S, F) => {
25101
+ return A.map((S, C) => {
25114
25102
  const N = G1[S], P = Math.floor(m / N);
25115
- return m -= P * N, `${F === 0 ? String(P) : String(P).padStart(2, "0")}${Go[S]}`;
25103
+ return m -= P * N, `${C === 0 ? String(P) : String(P).padStart(2, "0")}${Go[S]}`;
25116
25104
  }).join("");
25117
25105
  }
25118
25106
  function jo(_, A) {
25119
- const f = _ < 0, y = Math.abs(_), m = (J) => String(Math.floor(J)).padStart(2, "0"), S = m(y % 3600 / 60), F = m(y % 60), N = f ? "-" : "";
25107
+ const f = _ < 0, y = Math.abs(_), m = (J) => String(Math.floor(J)).padStart(2, "0"), S = m(y % 3600 / 60), C = m(y % 60), N = f ? "-" : "";
25120
25108
  if (A) {
25121
25109
  const J = Math.floor(y / 86400), H = m(y % 86400 / 3600), Y = J > 0 ? `${J} day${J > 1 ? "s" : ""} ` : "";
25122
- return `${N}${Y}${H}:${S}:${F}`;
25110
+ return `${N}${Y}${H}:${S}:${C}`;
25123
25111
  }
25124
25112
  const P = m(y / 3600);
25125
- return `${N}${P}:${S}:${F}`;
25113
+ return `${N}${P}:${S}:${C}`;
25126
25114
  }
25127
25115
  function Ko(_, A) {
25128
25116
  const f = Qo(_, A.inputUnit);
@@ -25221,13 +25209,13 @@ function T0(_, A, f) {
25221
25209
  case "NUMERIC": {
25222
25210
  const m = _ == null ? 0 : typeof _ == "number" ? _ : Number(_);
25223
25211
  if (Number.isNaN(m)) return String(_);
25224
- const S = A.decimal ?? 2, F = A.formatter ?? A.timeFormatter;
25225
- if (F) {
25226
- if (F === "HH_MM" || F === "DATE_RANGE_HH_MM")
25212
+ const S = A.decimal ?? 2, C = A.formatter ?? A.timeFormatter;
25213
+ if (C) {
25214
+ if (C === "HH_MM" || C === "DATE_RANGE_HH_MM")
25227
25215
  return ts(m);
25228
- if (F === "PERCENT")
25216
+ if (C === "PERCENT")
25229
25217
  return `${Mt(m * 100, S)}%`;
25230
- const N = Zo(F);
25218
+ const N = Zo(C);
25231
25219
  if (N)
25232
25220
  return Ko(m, N);
25233
25221
  }
@@ -25290,9 +25278,9 @@ const Mr = {
25290
25278
  function as(_, A, f, y) {
25291
25279
  const m = _.dataType === "TIMESTAMP" ? Mr[_.optionType] : void 0;
25292
25280
  if (!m || !A || !f) return null;
25293
- const S = H0.tz(f, y), F = H0.tz(A, y);
25294
- if (!S.isValid() || !F.isValid()) return null;
25295
- const N = Math.round(F.diff(S, m, !0));
25281
+ const S = H0.tz(f, y), C = H0.tz(A, y);
25282
+ if (!S.isValid() || !C.isValid()) return null;
25283
+ const N = Math.round(C.diff(S, m, !0));
25296
25284
  return N === 0 ? null : N;
25297
25285
  }
25298
25286
  function is(_, A, f) {
@@ -25316,12 +25304,12 @@ function is(_, A, f) {
25316
25304
  const i0 = H0.tz(Y, f);
25317
25305
  return i0.isValid() ? (P ? i0.add(Z, Mr[J.optionType]) : i0).toISOString() : Y;
25318
25306
  })
25319
- ]), F = /* @__PURE__ */ new Map();
25307
+ ]), C = /* @__PURE__ */ new Map();
25320
25308
  for (const N of A.rows) {
25321
25309
  const P = S(N, !0);
25322
- F.has(P) || F.set(P, N);
25310
+ C.has(P) || C.set(P, N);
25323
25311
  }
25324
- return (N) => F.get(S(N, !1));
25312
+ return (N) => C.get(S(N, !1));
25325
25313
  }
25326
25314
  var os = {
25327
25315
  formatChartDataV2: Jo,