@feedmepos/mf-report 5.5.8 → 5.5.9

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.
@@ -1,45 +1,45 @@
1
- import { j as xe, a as te, F as re, h as X, b as Ie, c as ke, n as Ye, d as fe, e as je, k as ze } from "./global-loader-KvOGLx9k.js";
2
- import { storeToRefs as Y, defineStore as He } from "pinia";
3
- import { ref as K, computed as Ae, h as Ke, watch as Xe } from "vue";
4
- import { useSnackbar as Ze, components as et } from "@feedmepos/ui-library";
5
- import { useRouter as tt } from "vue-router";
6
- function qe(O) {
7
- throw new Error('Could not dynamically require "' + O + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1
+ import { j as xe, a as ee, F as te, h as K, b as Ie, c as Ne, n as We, d as pe, e as Ye, k as je } from "./global-loader-KvOGLx9k.js";
2
+ import { storeToRefs as W, defineStore as ke } from "pinia";
3
+ import { ref as X, computed as Ae, h as ze, watch as Ke } from "vue";
4
+ import { useSnackbar as Xe, components as Ze } from "@feedmepos/ui-library";
5
+ import { useRouter as et } from "vue-router";
6
+ function He(F) {
7
+ throw new Error('Could not dynamically require "' + F + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
8
8
  }
9
9
  var Me = {};
10
- (function(O) {
10
+ (function(F) {
11
11
  var J = typeof xe < "u" ? xe : window, w = Object.create(J);
12
- w.scheduleImmediate = typeof setImmediate < "u" ? function(q) {
13
- setImmediate(q);
14
- } : function(q) {
15
- setTimeout(q, 0);
16
- }, w.exports = O, typeof process < "u" && (w.process = process), typeof __dirname < "u" && (w.__dirname = __dirname), typeof __filename < "u" && (w.__filename = __filename), typeof Buffer < "u" && (w.Buffer = Buffer);
17
- var U = !J.window;
12
+ w.scheduleImmediate = typeof setImmediate < "u" ? function(U) {
13
+ setImmediate(U);
14
+ } : function(U) {
15
+ setTimeout(U, 0);
16
+ }, w.exports = F, typeof process < "u" && (w.process = process), typeof __dirname < "u" && (w.__dirname = __dirname), typeof __filename < "u" && (w.__filename = __filename), typeof Buffer < "u" && (w.Buffer = Buffer);
17
+ var q = !J.window;
18
18
  try {
19
- typeof WorkerGlobalScope < "u" && J instanceof WorkerGlobalScope && (U = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (U = !0);
19
+ typeof WorkerGlobalScope < "u" && J instanceof WorkerGlobalScope && (q = !1), typeof process < "u" && process.versions && process.versions.hasOwnProperty("electron") && process.versions.hasOwnProperty("node") && (q = !0);
20
20
  } catch {
21
21
  }
22
- if (U) {
23
- var k = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : qe)("url");
22
+ if (q) {
23
+ var k = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : He)("url");
24
24
  Object.defineProperty(w, "location", {
25
25
  value: {
26
26
  get href() {
27
27
  return k.pathToFileURL ? k.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
28
- var q = process.cwd();
29
- return process.platform != "win32" ? q : "/" + q.replace(/\\/g, "/");
28
+ var U = process.cwd();
29
+ return process.platform != "win32" ? U : "/" + U.replace(/\\/g, "/");
30
30
  }() + "/";
31
31
  }
32
32
  }
33
33
  }), function() {
34
- function q() {
34
+ function U() {
35
35
  try {
36
36
  throw new Error();
37
- } catch (V) {
38
- var N = V.stack, B = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Q = null;
37
+ } catch (G) {
38
+ var N = G.stack, B = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Q = null;
39
39
  do {
40
- var G = B.exec(N);
41
- G != null && (Q = G);
42
- } while (G != null);
40
+ var V = B.exec(N);
41
+ V != null && (Q = V);
42
+ } while (V != null);
43
43
  return Q[1];
44
44
  }
45
45
  }
@@ -47,13 +47,13 @@ var Me = {};
47
47
  Object.defineProperty(w, "document", {
48
48
  value: {
49
49
  get currentScript() {
50
- return P == null && (P = { src: q() }), P;
50
+ return P == null && (P = { src: U() }), P;
51
51
  }
52
52
  }
53
53
  });
54
- }(), w.dartDeferredLibraryLoader = function(q, P, N) {
54
+ }(), w.dartDeferredLibraryLoader = function(U, P, N) {
55
55
  try {
56
- load(q), P();
56
+ load(U), P();
57
57
  } catch (B) {
58
58
  N(B);
59
59
  }
@@ -94,7 +94,7 @@ var Me = {};
94
94
  }
95
95
  return !1;
96
96
  }();
97
- function G(r, e) {
97
+ function V(r, e) {
98
98
  if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
99
99
  if (Q) {
100
100
  r.prototype.__proto__ = e.prototype;
@@ -104,17 +104,17 @@ var Me = {};
104
104
  P(r.prototype, i), r.prototype = i;
105
105
  }
106
106
  }
107
- function V(r, e) {
107
+ function G(r, e) {
108
108
  for (var i = 0; i < e.length; i++)
109
- G(e[i], r);
109
+ V(e[i], r);
110
110
  }
111
- function W(r, e) {
111
+ function Y(r, e) {
112
112
  B(e.prototype, r.prototype), r.prototype.constructor = r;
113
113
  }
114
- function ae(r, e) {
114
+ function ne(r, e) {
115
115
  N(e.prototype, r.prototype), r.prototype.constructor = r;
116
116
  }
117
- function se(r, e, i, n) {
117
+ function oe(r, e, i, n) {
118
118
  var a = r;
119
119
  r[e] = a, r[i] = function() {
120
120
  r[i] = function() {
@@ -139,7 +139,7 @@ var Me = {};
139
139
  }, r[e];
140
140
  };
141
141
  }
142
- function ee(r, e, i, n) {
142
+ function se(r, e, i, n) {
143
143
  var a = r;
144
144
  r[e] = a, r[i] = function() {
145
145
  if (r[e] === a) {
@@ -152,13 +152,13 @@ var Me = {};
152
152
  }, l;
153
153
  };
154
154
  }
155
- function de(r) {
155
+ function fe(r) {
156
156
  return r.immutable$list = Array, r.fixed$length = Array, r;
157
157
  }
158
- function ie(r) {
158
+ function re(r) {
159
159
  return r;
160
160
  }
161
- function ne(r) {
161
+ function ie(r) {
162
162
  for (var e = 0; e < r.length; ++e)
163
163
  r[e];
164
164
  }
@@ -177,16 +177,16 @@ var Me = {};
177
177
  };
178
178
  }
179
179
  var ue = 0;
180
- function oe(r, e, i, n, a, s, l, _, d, c) {
180
+ function ae(r, e, i, n, a, s, l, _, d, c) {
181
181
  return typeof _ == "number" && (_ += ue), { co: r, iS: e, iI: i, rC: n, dV: a, cs: s, fs: l, fT: _, aI: d || 0, nDA: c };
182
182
  }
183
- function ce(r, e, i, n, a, s, l, _) {
184
- var d = oe(r, !0, !1, i, n, a, s, l, _, !1), c = _e(d);
183
+ function de(r, e, i, n, a, s, l, _) {
184
+ var d = ae(r, !0, !1, i, n, a, s, l, _, !1), c = _e(d);
185
185
  r[e] = c;
186
186
  }
187
187
  function ye(r, e, i, n, a, s, l, _, d, c) {
188
188
  i = !!i;
189
- var p = oe(r, !1, i, n, a, s, l, _, d, !!c), $ = le(i, p);
189
+ var p = ae(r, !1, i, n, a, s, l, _, d, !!c), $ = le(i, p);
190
190
  r[e] = $;
191
191
  }
192
192
  function he(r) {
@@ -219,10 +219,10 @@ var Me = {};
219
219
  };
220
220
  }, e = function(i, n, a, s) {
221
221
  return function(l, _, d, c) {
222
- return ce(l, _, i, n, a, [d], c, s);
222
+ return de(l, _, i, n, a, [d], c, s);
223
223
  };
224
224
  };
225
- return { inherit: G, inheritMany: V, mixin: W, mixinHard: ae, installStaticTearOff: ce, installInstanceTearOff: ye, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: de, lazy: Z, lazyFinal: ee, lazyOld: se, updateHolder: ge, convertToFastObject: ie, updateTypes: $e, setOrUpdateInterceptorsByTag: he, setOrUpdateLeafTags: Te };
225
+ return { inherit: V, inheritMany: G, mixin: Y, mixinHard: ne, installStaticTearOff: de, installInstanceTearOff: ye, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: fe, lazy: Z, lazyFinal: se, lazyOld: oe, updateHolder: ge, convertToFastObject: re, updateTypes: $e, setOrUpdateInterceptorsByTag: he, setOrUpdateLeafTags: Te };
226
226
  }(), t = {
227
227
  JS_CONST: function() {
228
228
  },
@@ -259,8 +259,8 @@ var Me = {};
259
259
  }
260
260
  },
261
261
  Sort__dualPivotQuicksort(r, e, i, n) {
262
- var a, s, l, _, d, c, p, $, g, m, h = u.JSInt_methods._tdivFast$1(i - e + 1, 6), A = e + h, E = i - h, M = u.JSInt_methods._tdivFast$1(e + i, 2), b = M - h, R = M + h, C = o.getInterceptor$asx(r), F = C.$index(r, A), D = C.$index(r, b), L = C.$index(r, M), v = C.$index(r, R), x = C.$index(r, E);
263
- if (n.call$2(F, D) > 0 && (a = D, D = F, F = a), n.call$2(v, x) > 0 && (a = x, x = v, v = a), n.call$2(F, L) > 0 && (a = L, L = F, F = a), n.call$2(D, L) > 0 && (a = L, L = D, D = a), n.call$2(F, v) > 0 && (a = v, v = F, F = a), n.call$2(L, v) > 0 && (a = v, v = L, L = a), n.call$2(D, x) > 0 && (a = x, x = D, D = a), n.call$2(D, L) > 0 && (a = L, L = D, D = a), n.call$2(v, x) > 0 && (a = x, x = v, v = a), C.$indexSet(r, A, F), C.$indexSet(r, M, L), C.$indexSet(r, E, x), C.$indexSet(r, b, C.$index(r, e)), C.$indexSet(r, R, C.$index(r, i)), s = e + 1, l = i - 1, o.$eq$(n.call$2(D, v), 0)) {
262
+ var a, s, l, _, d, c, p, $, g, m, h = u.JSInt_methods._tdivFast$1(i - e + 1, 6), A = e + h, E = i - h, M = u.JSInt_methods._tdivFast$1(e + i, 2), b = M - h, R = M + h, C = o.getInterceptor$asx(r), O = C.$index(r, A), D = C.$index(r, b), L = C.$index(r, M), v = C.$index(r, R), x = C.$index(r, E);
263
+ if (n.call$2(O, D) > 0 && (a = D, D = O, O = a), n.call$2(v, x) > 0 && (a = x, x = v, v = a), n.call$2(O, L) > 0 && (a = L, L = O, O = a), n.call$2(D, L) > 0 && (a = L, L = D, D = a), n.call$2(O, v) > 0 && (a = v, v = O, O = a), n.call$2(L, v) > 0 && (a = v, v = L, L = a), n.call$2(D, x) > 0 && (a = x, x = D, D = a), n.call$2(D, L) > 0 && (a = L, L = D, D = a), n.call$2(v, x) > 0 && (a = x, x = v, v = a), C.$indexSet(r, A, O), C.$indexSet(r, M, L), C.$indexSet(r, E, x), C.$indexSet(r, b, C.$index(r, e)), C.$indexSet(r, R, C.$index(r, i)), s = e + 1, l = i - 1, o.$eq$(n.call$2(D, v), 0)) {
264
264
  for (_ = s; _ <= l; ++_)
265
265
  if (d = C.$index(r, _), c = n.call$2(d, D), c !== 0)
266
266
  if (c < 0)
@@ -650,12 +650,12 @@ var Me = {};
650
650
  return e;
651
651
  },
652
652
  Closure_fromTearOff(r) {
653
- var e, i, n, a, s, l, _, d, c, p, $ = r.co, g = r.iS, m = r.iI, h = r.nDA, A = r.aI, E = r.fs, M = r.cs, b = E[0], R = M[0], C = $[b], F = r.fT;
654
- for (F.toString, e = Object.create(g ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, g ? i = function() {
653
+ var e, i, n, a, s, l, _, d, c, p, $ = r.co, g = r.iS, m = r.iI, h = r.nDA, A = r.aI, E = r.fs, M = r.cs, b = E[0], R = M[0], C = $[b], O = r.fT;
654
+ for (O.toString, e = Object.create(g ? new t.StaticClosure().constructor.prototype : new t.BoundClosure(null, null).constructor.prototype), e.$initialize = e.constructor, g ? i = function() {
655
655
  this.$initialize();
656
656
  } : i = function(L, v) {
657
657
  this.$initialize(L, v);
658
- }, e.constructor = i, i.prototype = e, e.$_name = b, e.$_target = C, n = !g, n ? a = t.Closure_forwardCallTo(b, C, m, h) : (e.$static_name = b, a = C), e.$signature = t.Closure__computeSignatureFunctionNewRti(F, g, m), e[R] = a, s = a, l = 1; l < E.length; ++l)
658
+ }, e.constructor = i, i.prototype = e, e.$_name = b, e.$_target = C, n = !g, n ? a = t.Closure_forwardCallTo(b, C, m, h) : (e.$static_name = b, a = C), e.$signature = t.Closure__computeSignatureFunctionNewRti(O, g, m), e[R] = a, s = a, l = 1; l < E.length; ++l)
659
659
  _ = E[l], typeof _ == "string" ? (d = $[_], c = _, _ = d) : c = "", p = M[l], p != null && (n && (_ = t.Closure_forwardCallTo(c, _, m, h)), e[p] = _), l === A && (s = _);
660
660
  return e["call*"] = s, e.$requiredArgCount = r.rC, e.$defaultValues = r.dV, i;
661
661
  },
@@ -1378,7 +1378,7 @@ var Me = {};
1378
1378
  return s + "})";
1379
1379
  },
1380
1380
  _functionRtiToString(r, e, i) {
1381
- var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v = ", ";
1381
+ var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O, D, L, v = ", ";
1382
1382
  if (i != null) {
1383
1383
  for (n = i.length, e == null ? (e = t._setArrayType([], y.JSArray_String), a = null) : a = e.length, s = e.length, l = n; l > 0; --l)
1384
1384
  e.push("T" + (s + l));
@@ -1387,7 +1387,7 @@ var Me = {};
1387
1387
  c += ">";
1388
1388
  } else
1389
1389
  c = "", a = null;
1390
- for (_ = r._primary, h = r._rest, A = h._requiredPositional, E = A.length, M = h._optionalPositional, b = M.length, R = h._named, C = R.length, F = t._rtiToString(_, e), D = "", L = "", l = 0; l < E; ++l, L = v)
1390
+ for (_ = r._primary, h = r._rest, A = h._requiredPositional, E = A.length, M = h._optionalPositional, b = M.length, R = h._named, C = R.length, O = t._rtiToString(_, e), D = "", L = "", l = 0; l < E; ++l, L = v)
1391
1391
  D += L + t._rtiToString(A[l], e);
1392
1392
  if (b > 0) {
1393
1393
  for (D += L + "[", L = "", l = 0; l < b; ++l, L = v)
@@ -1399,7 +1399,7 @@ var Me = {};
1399
1399
  D += L, R[l + 1] && (D += "required "), D += t._rtiToString(R[l + 2], e) + " " + R[l];
1400
1400
  D += "}";
1401
1401
  }
1402
- return a != null && (e.toString, e.length = a), c + "(" + D + ") => " + F;
1402
+ return a != null && (e.toString, e.length = a), c + "(" + D + ") => " + O;
1403
1403
  },
1404
1404
  _rtiToString(r, e) {
1405
1405
  var i, n, a, s, l, _, d = r._kind;
@@ -1757,7 +1757,7 @@ var Me = {};
1757
1757
  return d === 12 ? e === y.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, i, n, a) : l === 9 ? d !== 9 ? !1 : t._isInterfaceSubtype(r, e, i, n, a) : (s = l === 11, s && n === y.Record ? !0 : s && d === 11 ? t._isRecordSubtype(r, e, i, n, a) : !1);
1758
1758
  },
1759
1759
  _isFunctionSubtype(r, e, i, n, a) {
1760
- var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x, H;
1760
+ var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, H;
1761
1761
  if (!t._isSubtype(r, e._primary, i, n._primary, a) || (s = e._rest, l = n._rest, _ = s._requiredPositional, d = l._requiredPositional, c = _.length, p = d.length, c > p) || ($ = p - c, g = s._optionalPositional, m = l._optionalPositional, h = g.length, A = m.length, c + h < p + A))
1762
1762
  return !1;
1763
1763
  for (E = 0; E < c; ++E)
@@ -1769,7 +1769,7 @@ var Me = {};
1769
1769
  for (E = 0; E < A; ++E)
1770
1770
  if (M = g[$ + E], !t._isSubtype(r, m[E], a, M, i))
1771
1771
  return !1;
1772
- for (b = s._named, R = l._named, C = b.length, F = R.length, D = 0, L = 0; L < F; L += 3)
1772
+ for (b = s._named, R = l._named, C = b.length, O = R.length, D = 0, L = 0; L < O; L += 3)
1773
1773
  for (v = R[L]; ; ) {
1774
1774
  if (D >= C || (x = b[D], D += 3, v < x))
1775
1775
  return !1;
@@ -2865,8 +2865,8 @@ and target_table.docId in UNNEST(@docIds)
2865
2865
  return t.Schema$(r, e, R, n, a, s ?? 300, l, _, d, c, C, $, g, m, h, A, E, M, b);
2866
2866
  },
2867
2867
  Schema_fromJson(r) {
2868
- var e, i, n, a, s, l, _, d, c, p, $, g, m, h = o.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), A = r.$index(0, "label"), E = t.EnumByName_byName(u.List_p8S, r.$index(0, "name")), M = o.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), b = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), R = r.$index(0, "source"), C = t.EnumByName_byName(u.List_SOURCE_TYPE_0_SOURCE_TYPE_1, R.$index(0, "type")), F = R.$index(0, "table");
2869
- return R = R.$index(0, "field"), e = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), n = r.$index(0, "materializedTableName"), a = r.$index(0, "materializedPostgresqlTableName"), s = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), _ = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], y.JSArray_String)), $ = r.$index(0, "indexes"), $ = $ == null ? null : o.map$1$ax($, new t.Schema_fromJson_closure1()), $ == null && ($ = t._setArrayType([], y.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? null : o.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], y.JSArray_QueryRequestFilter)), m = r.$index(0, "isGlobal"), m == null && (m = !1), t.Schema$(p, i, h, g, $, d, _, m, s, l, M, A, a, n, E, c, e, new t.Source(C, F, R), b);
2868
+ var e, i, n, a, s, l, _, d, c, p, $, g, m, h = o.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), A = r.$index(0, "label"), E = t.EnumByName_byName(u.List_p8S, r.$index(0, "name")), M = o.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), b = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), R = r.$index(0, "source"), C = t.EnumByName_byName(u.List_SOURCE_TYPE_0_SOURCE_TYPE_1, R.$index(0, "type")), O = R.$index(0, "table");
2869
+ return R = R.$index(0, "field"), e = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), n = r.$index(0, "materializedTableName"), a = r.$index(0, "materializedPostgresqlTableName"), s = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), _ = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], y.JSArray_String)), $ = r.$index(0, "indexes"), $ = $ == null ? null : o.map$1$ax($, new t.Schema_fromJson_closure1()), $ == null && ($ = t._setArrayType([], y.JSArray_Index)), g = r.$index(0, "filters"), g = g == null ? null : o.map$1$ax(g, new t.Schema_fromJson_closure2()).toList$0(0), g == null && (g = t._setArrayType([], y.JSArray_QueryRequestFilter)), m = r.$index(0, "isGlobal"), m == null && (m = !1), t.Schema$(p, i, h, g, $, d, _, m, s, l, M, A, a, n, E, c, e, new t.Source(C, O, R), b);
2870
2870
  },
2871
2871
  Field_Field$numeric(r, e, i, n, a, s, l) {
2872
2872
  return new t._NumericField(n, a, u.DATA_TYPE_3, r, s, i, e, l);
@@ -8202,8 +8202,8 @@ Arguments: [` + d + "]";
8202
8202
  $signature: 1
8203
8203
  }, t.billSchema_closure.prototype = {
8204
8204
  call$1(r) {
8205
- var e = null, i = "seqNumber", n = "deliveryName", a = "isRefund", s = "isPickup", l = "isInHouseDelivery", _ = "isDelivery", d = "completedAt", c = "integratedOrderId", p = "itemCount", $ = "taxTotal", g = "discountTotal", m = "grossTotal", h = "rounding", A = "takeawayPrice", E = "thirdPartyExtraCharge", M = "deliveryFee", b = "nettTotal", R = "deliveryFeeWithTax", C = "deliveryFeeWithoutTax", F = "otherChargeWithTax", D = "otherChargeWithoutTax";
8206
- return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "No.", i, i, e, r), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, !1, "Delivery", n, n, e, r), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, !1, "Refund", a, a, e, r), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Source", "source", "source", e, r), t.Field_Field$string(e, !1, "Type", "type", "type", e, r), t.Field_Field$bool(e, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, !1, "Is in house delivery", l, l, e, r), t.Field_Field$bool(e, !1, "Is other delivery", _, _, e, r), t.Field_Field$bool(e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", I.COALESp, r), t.Field_Field$string(e, !1, "Integrated order ID", c, c, e, r), t.Field_Field$numeric(I.IFNULLi, !0, "Item count", p, p, I.COALESi, r), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, e, $, $, I.COALEStax, r), t.Field_Field$numeric(I.IFNULLdi, !1, "Discount", g, g, I.COALESdi, r), t.Field_Field$numeric(I.IFNULLg, !1, "Gross", m, m, I.COALESg, r), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", h, h, I.COALESr, r), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "nettTaxes.SST.total", I.COALESss, r), t.Field_Field$string(e, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(I.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", I.COALESse, r), t.Field_Field$string(e, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(I.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", I.x28COALEo, r), t.Field_Field$numeric(I.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, I.x28COALEgx2d, r), t.Field_Field$numeric(I.IFNULLta, !1, "Takeaway", A, A, I.COALEStak, r), t.Field_Field$numeric(I.IFNULLth, !1, "Extra charge", E, E, I.COALESth, r), t.Field_Field$numeric(I.IFNULLde, !1, "Delivery fee", M, M, I.COALESde, r), t.Field_Field$numeric(I.IFNULLn, !1, "Nett", b, b, I.COALESn, r), t.Field_Field$numeric("(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, "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", r), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, I.MIN_EX, r), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, I.COUNT_, r), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, I.SUM__n, r), t.Field_Field$numeric("IFNULL(@deliveryFeeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee with tax", R, R, "COALESCE(@delivery_fee_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("IFNULL(@deliveryFeeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee without tax", C, C, "COALESCE(@delivery_fee_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("IFNULL(@otherChargeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge with tax", F, F, "COALESCE(@other_charge_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("IFNULL(@otherChargeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge without tax", D, D, "COALESCE(@other_charge_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, !1, "Duration", "duration", e, "EXTRACT(EPOCH FROM (@completed_at-@created_at))", r), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, "(select name from restaurants where restaurants.id=@restaurant_id)", r)], y.JSArray_Field);
8205
+ var e = null, i = "seqNumber", n = "deliveryName", a = "isRefund", s = "isPickup", l = "isInHouseDelivery", _ = "isDelivery", d = "completedAt", c = "integratedOrderId", p = "itemCount", $ = "taxTotal", g = "discountTotal", m = "grossTotal", h = "rounding", A = "takeawayPrice", E = "thirdPartyExtraCharge", M = "deliveryFee", b = "nettTotal", R = "deliveryFeeWithTax", C = "deliveryFeeWithoutTax", O = "otherChargeWithTax", D = "otherChargeWithoutTax";
8206
+ return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "No.", i, i, e, r), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, r), t.Field_Field$string(e, !1, "Delivery", n, n, e, r), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, r), t.Field_Field$bool(e, !1, "Refund", a, a, e, r), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, r), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, r), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, r), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, r), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, r), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, r), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, r), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, r), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Source", "source", "source", e, r), t.Field_Field$string(e, !1, "Type", "type", "type", e, r), t.Field_Field$bool(e, !1, "Pickup", s, s, e, r), t.Field_Field$bool(e, !1, "Is in house delivery", l, l, e, r), t.Field_Field$bool(e, !1, "Is other delivery", _, _, e, r), t.Field_Field$bool(e, !1, "Is takeaway", "isTakeaway", "is.takeaway", e, r), t.Field_Field$timestamp(e, !1, "Closed at", d, d, e, r), t.Field_Field$string(e, !1, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, r), t.Field_Field$string(e, !1, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, r), t.Field_Field$string(e, !1, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, r), t.Field_Field$string(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, r), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person", I.COALESp, r), t.Field_Field$string(e, !1, "Integrated order ID", c, c, e, r), t.Field_Field$numeric(I.IFNULLi, !0, "Item count", p, p, I.COALESi, r), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !0, e, $, $, I.COALEStax, r), t.Field_Field$numeric(I.IFNULLdi, !1, "Discount", g, g, I.COALESdi, r), t.Field_Field$numeric(I.IFNULLg, !1, "Gross", m, m, I.COALESg, r), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", h, h, I.COALESr, r), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "nettTaxes.SST.total", I.COALESss, r), t.Field_Field$string(e, !1, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, r), t.Field_Field$numeric(I.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", I.COALESse, r), t.Field_Field$string(e, !1, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, r), t.Field_Field$numeric(I.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", I.x28COALEo, r), t.Field_Field$numeric(I.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, I.x28COALEgx2d, r), t.Field_Field$numeric(I.IFNULLta, !1, "Takeaway", A, A, I.COALEStak, r), t.Field_Field$numeric(I.IFNULLth, !1, "Extra charge", E, E, I.COALESth, r), t.Field_Field$numeric(I.IFNULLde, !1, "Delivery fee", M, M, I.COALESde, r), t.Field_Field$numeric(I.IFNULLn, !1, "Nett", b, b, I.COALESn, r), t.Field_Field$numeric("(IFNULL(@grossTotal,0)+IFNULL(@deliveryFeeWithTax,0)+IFNULL(@otherChargeWithTax,0)+IFNULL(@discountTotal,0))*IF(@isRefund, -1, 1)", !1, "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", r), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, I.MIN_EX, r), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, I.COUNT_, r), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, I.SUM__n, r), t.Field_Field$numeric("IFNULL(@deliveryFeeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee with tax", R, R, "COALESCE(@delivery_fee_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("IFNULL(@deliveryFeeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Delivery fee without tax", C, C, "COALESCE(@delivery_fee_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("IFNULL(@otherChargeWithTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge with tax", O, O, "COALESCE(@other_charge_with_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("IFNULL(@otherChargeWithoutTax,0)*IF(@isRefund, -1, 1)", !1, "Other charge without tax", D, D, "COALESCE(@other_charge_without_tax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, !1, "Duration", "duration", e, "EXTRACT(EPOCH FROM (@completed_at-@created_at))", r), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, "(select name from restaurants where restaurants.id=@restaurant_id)", r)], y.JSArray_Field);
8207
8207
  },
8208
8208
  $signature: 0
8209
8209
  }, t.billSchema_closure0.prototype = {
@@ -8342,10 +8342,10 @@ Arguments: [` + d + "]";
8342
8342
  $signature: 1
8343
8343
  }, t.flattenItemSchema_closure.prototype = {
8344
8344
  call$1(r) {
8345
- var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", p = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", F = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", H = "customAttributes", pe = "layerZeroParentId";
8345
+ var e = null, i = "itemCreatedAt", n = "billCompletedAt", a = "perXUnit", s = "takeawayId", l = "takeawayName", _ = "productId", d = "isRefund", c = "servedAt", p = "isTakeaway", $ = "quantity", g = "unitQuantity", m = "billAdjustmentTotal", h = "itemAdjustmentTotal", A = "grossTotal", E = "takeawayPrice", M = "nettTotal", b = "layerNettTotal", R = "layerBillAdjustmentTotal", C = "layerItemAdjustmentTotal", O = "layerGrossTotal", D = "layerTakeawayPrice", L = "layerTaxTotal", v = "layerScTotal", x = "layerOtherChargeTotal", H = "customAttributes", ce = "layerZeroParentId";
8346
8346
  return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, !0, e, "docId", "_docId", e, r), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, !1, "Item time", i, i, e, r), t.Field_Field$timestamp(e, !1, "Bill close time", n, n, e, r), t.Field_Field$string(e, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string(e, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, !1, "Name", "name", "name", e, r), t.Field_Field$numeric(e, !1, "Per unit", a, a, e, r), t.Field_Field$string(e, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(`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)
8347
8347
  `, !1, "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
8348
- `, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", p, p, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", F, F, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !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", r), t.Field_Field$string(e, !1, "Custom attributes", H, H, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", pe, pe, e, r), t.Field_Field$string(e, !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 in ('SST','GST'))", r)], y.JSArray_Field);
8348
+ `, r), t.Field_Field$string(e, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, !1, "Takeaway name", l, l, e, r), t.Field_Field$string(e, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, !1, "Product ID", _, _, e, r), t.Field_Field$string(e, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, !1, "Refund", d, d, e, r), t.Field_Field$string(e, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, !1, "Served time", c, c, e, r), t.Field_Field$timestamp(e, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, !0, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, !0, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, !1, "Takeaway", p, p, e, r), t.Field_Field$numeric("@quantity*IF(@isRefund, -1, 1)", !1, "Qty", $, $, I.x40quant, r), t.Field_Field$numeric("@unitQuantity*IF(@isRefund, -1, 1)", !1, "Unit qty", g, g, I.x40unit_, r), t.Field_Field$numeric("@sstTotal*IF(@isRefund, -1, 1)", !1, "SST", "sstTotal", "sst.total", I.x40sst_t, r), t.Field_Field$numeric(e, !0, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, !0, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric("@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, "SC", "serviceChargeTotal", "sc.total", I.x40servi, r), t.Field_Field$numeric("@otherChargeTotal*IF(@isRefund, -1, 1)", !1, "Other charge", "otherChargeTotal", "otherCharge.total", I.x40other, r), t.Field_Field$numeric(I.x40billA, !1, "Bill discount", m, m, I.x40bill_, r), t.Field_Field$numeric(I.x40itemA, !1, "Item discount", h, h, I.x40item_, r), t.Field_Field$numeric("@grossTotal*IF(@isRefund, -1, 1)", !1, "Gross", A, A, I.x40gross, r), t.Field_Field$numeric(I.x28_grosT, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, I.x28_gros_, r), t.Field_Field$numeric("@takeawayPrice*IF(@isRefund, -1, 1)", !1, "Takeaway price", E, E, I.x40takea, r), t.Field_Field$numeric("@nettTotal*IF(@isRefund, -1, 1)", !1, "Nett", M, M, I.x40nett_, r), t.Field_Field$string(e, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string("SPLIT(@addonId, '/')[OFFSET(0)]", !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric(e, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric("@addonPrice*IF(@isRefund, -1, 1)", !1, "Addon price", "addonPrice", "addon.price", I.x40addon, r), t.Field_Field$numeric("@taxTotal*IF(@isRefund, -1, 1)", !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(I.x28IFNULb, !1, "Discount", "discountTotal", e, I.x28COALEb, r), t.Field_Field$numeric(I.x28IFNULgx2b, !1, "Gross before charges", "grossBeforeCharges", e, I.x28COALEgx2b, r), t.Field_Field$numeric(I.TIMEST, !1, "Preparation seconds", "preparationSeconds", e, I.EXTRAC, r), t.Field_Field$string(I.CONCAT_, !1, "Summary", "summary", e, I.CONCATA, r), t.Field_Field$numeric("@layerNettTotal*IF(@isRefund, -1, 1)", !1, "Layer nett", b, b, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer bill discount", R, R, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, "Layer item discount", C, C, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerGrossTotal*IF(@isRefund, -1, 1)", !1, "Layer gross total", O, O, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, "Layer takeaway price", D, D, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerTaxTotal*IF(@isRefund, -1, 1)", !1, "Layer tax total", L, L, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerScTotal*IF(@isRefund, -1, 1)", !1, "Layer sc", v, v, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, "Layer other charge", x, x, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric("(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !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", r), t.Field_Field$string(e, !1, "Custom attributes", H, H, e, r), t.Field_Field$string(e, !1, "Layer 0 parent ID", ce, ce, e, r), t.Field_Field$string(e, !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 in ('SST','GST'))", r)], y.JSArray_Field);
8349
8349
  },
8350
8350
  $signature: 0
8351
8351
  }, t.flattenItemSchema_closure0.prototype = {
@@ -9822,8 +9822,8 @@ Arguments: [` + d + "]";
9822
9822
  return n.message;
9823
9823
  }
9824
9824
  }())), e(S, "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))?)?)?$")), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(u.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List__create1(t._ensureNativeList(t._setArrayType([1], y.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? u.C_Endian0 : u.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "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)), i(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), i(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", u.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'"), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''")), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+")), i(S, "_availableLocales", "$get$_availableLocales", () => {
9825
- var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), F = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), H = t.DeLocale$(u.StartOfWeek_2), pe = t.DeLocale$(u.StartOfWeek_2), Ce = t.ItLocale$(u.StartOfWeek_2), be = t.ItLocale$(u.StartOfWeek_2), Re = t.ArLyLocale$(!0, u.StartOfWeek_0), Fe = t.ArLyLocale$(!1, u.StartOfWeek_0), Oe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Le = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), ve = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), we = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
9826
- return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = 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", _, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", F, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", H, "de_ch", pe, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", ve, "ar_ma", De, "ar_tn", we, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
9825
+ var n, a, s = t.EnLocale$(u.StartOfWeek_1), l = t.EnLocale$(u.StartOfWeek_1), _ = t.EnLocale$(u.StartOfWeek_1), d = t.EnLocale$(u.StartOfWeek_1), c = t.EnLocale$(u.StartOfWeek_1), p = t.EnLocale$(u.StartOfWeek_2), $ = t.EnLocale$(u.StartOfWeek_2), g = t.EnLocale$(u.StartOfWeek_1), m = t.EnLocale$(u.StartOfWeek_1), h = t.EsLocale$(u.StartOfWeek_2), A = t.EsLocale$(u.StartOfWeek_2), E = t.EsLocale$(u.StartOfWeek_1), M = t.FrLocale$(u.StartOfWeek_2), b = t.FrLocale$(u.StartOfWeek_2), R = t.FrLocale$(u.StartOfWeek_1), C = t.ZhCnLocale$(u.StartOfWeek_1), O = t.ZhCnLocale$(u.StartOfWeek_1), D = t.ZhLocale$(u.StartOfWeek_1), L = t.ZhLocale$(u.StartOfWeek_1), v = t.DeLocale$(u.StartOfWeek_2), x = t.DeLocale$(u.StartOfWeek_2), H = t.DeLocale$(u.StartOfWeek_2), ce = t.DeLocale$(u.StartOfWeek_2), Ce = t.ItLocale$(u.StartOfWeek_2), be = t.ItLocale$(u.StartOfWeek_2), Re = t.ArLyLocale$(!0, u.StartOfWeek_0), Fe = t.ArLyLocale$(!1, u.StartOfWeek_0), Oe = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), Le = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_1), ve = t.ArSaMaDzKwTnLocale$(!0, u.StartOfWeek_1), De = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0), we = t.ArSaMaDzKwTnLocale$(!1, u.StartOfWeek_0);
9826
+ return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), n = t.PtLocale$(u.StartOfWeek_2), a = 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", _, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", $, "en_il", g, "en_nz", m, "es", h, "es_do", A, "es_us", E, "fr", M, "fr_ch", b, "fr_ca", R, "zh", C, "zh_cn", O, "zh_hk", D, "zh_tw", L, "de", v, "de_de", x, "de_at", H, "de_ch", ce, "it", Ce, "it_ch", be, "ar", Re, "ar_ly", Fe, "ar_dz", Oe, "ar_kw", Le, "ar_sa", ve, "ar_ma", De, "ar_tn", we, "az", new t.AzLocale(u.StartOfWeek_2), "id", new t.IdLocale(u.StartOfWeek_1), "ja", new t.JaLocale(u.StartOfWeek_1), "ko", new t.KoLocale(u.StartOfWeek_1), "ru", new t.RuLocale(u.StartOfWeek_2), "uk", new t.UkLocale(u.StartOfWeek_2), "hi", new t.HiLocale(u.StartOfWeek_1), "pt", n, "pt_br", a, "pl", new t.PlLocale(u.StartOfWeek_2), "tr", new t.TrLocale(u.StartOfWeek_2), "sv", new t.SvLocale(u.StartOfWeek_2), "nb", new t.NbLocale(u.StartOfWeek_2), "fa", new t.FaLocale(u.StartOfWeek_0), "bn", new t.BnLocale(u.StartOfWeek_1), "nl", new t.NlLocale(u.StartOfWeek_2), "th", new t.ThLocale(u.StartOfWeek_1)], y.String, t.findType("Locale"));
9827
9827
  }), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
9828
9828
  var n = "createdAt", a = t.Source_Source$couchdb("", ""), s = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], y.JSArray_Permission), n);
9829
9829
  return t.Schema_Schema$build(t._setArrayType(["restaurantId"], y.JSArray_String), null, new t.addonFlattenItemSchema_closure(), u.List_empty, null, null, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", u.SCHEMA_NAME_6, n, "", a, s);
@@ -10074,7 +10074,7 @@ Arguments: [` + d + "]";
10074
10074
  return this(r, e, i);
10075
10075
  }, Function.prototype.call$8 = function(r, e, i, n, a, s, l, _) {
10076
10076
  return this(r, e, i, n, a, s, l, _);
10077
- }, ne(f), function(r) {
10077
+ }, ie(f), function(r) {
10078
10078
  if (typeof document > "u") {
10079
10079
  r(null);
10080
10080
  return;
@@ -10098,20 +10098,20 @@ Arguments: [` + d + "]";
10098
10098
  });
10099
10099
  })();
10100
10100
  })(Me);
10101
- var Ue = {};
10102
- (function(O) {
10103
- O.load = function(J, w) {
10104
- var U = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), k = U ? Object.create(globalThis) : globalThis;
10101
+ var qe = {};
10102
+ (function(F) {
10103
+ F.load = function(J, w) {
10104
+ var q = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), k = q ? Object.create(globalThis) : globalThis;
10105
10105
  if (k.scheduleImmediate = typeof setImmediate < "u" ? function(P) {
10106
10106
  setImmediate(P);
10107
10107
  } : function(P) {
10108
10108
  setTimeout(P, 0);
10109
- }, k.exports = w || O, typeof process < "u" && (k.process = process), typeof __dirname < "u" && (k.__dirname = __dirname), typeof __filename < "u" && (k.__filename = __filename), typeof Buffer < "u" && (k.Buffer = Buffer), U) {
10110
- var q = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : qe)("url");
10109
+ }, k.exports = w || F, typeof process < "u" && (k.process = process), typeof __dirname < "u" && (k.__dirname = __dirname), typeof __filename < "u" && (k.__filename = __filename), typeof Buffer < "u" && (k.Buffer = Buffer), q) {
10110
+ var U = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : He)("url");
10111
10111
  Object.defineProperty(k, "location", {
10112
10112
  value: {
10113
10113
  get href() {
10114
- return q.pathToFileURL ? q.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
10114
+ return U.pathToFileURL ? U.pathToFileURL(process.cwd()).href + "/" : "file://" + function() {
10115
10115
  var P = process.cwd();
10116
10116
  return process.platform != "win32" ? P : "/" + P.replace(/\\/g, "/");
10117
10117
  }() + "/";
@@ -10121,13 +10121,13 @@ var Ue = {};
10121
10121
  function P() {
10122
10122
  try {
10123
10123
  throw new Error();
10124
- } catch (W) {
10125
- var B = W.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), G = null;
10124
+ } catch (Y) {
10125
+ var B = Y.stack, Q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
10126
10126
  do {
10127
- var V = Q.exec(B);
10128
- V != null && (G = V);
10129
- } while (V != null);
10130
- return G[1];
10127
+ var G = Q.exec(B);
10128
+ G != null && (V = G);
10129
+ } while (G != null);
10130
+ return V[1];
10131
10131
  }
10132
10132
  }
10133
10133
  var N = null;
@@ -10162,7 +10162,7 @@ var Ue = {};
10162
10162
  function Q(e, i) {
10163
10163
  Object.assign(i, e);
10164
10164
  }
10165
- var G = function() {
10165
+ var V = function() {
10166
10166
  var e = function() {
10167
10167
  };
10168
10168
  e.prototype = { p: {} };
@@ -10181,9 +10181,9 @@ var Ue = {};
10181
10181
  }
10182
10182
  return !1;
10183
10183
  }();
10184
- function V(e, i) {
10184
+ function G(e, i) {
10185
10185
  if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, i != null) {
10186
- if (G) {
10186
+ if (V) {
10187
10187
  e.prototype.__proto__ = i.prototype;
10188
10188
  return;
10189
10189
  }
@@ -10191,14 +10191,14 @@ var Ue = {};
10191
10191
  N(e.prototype, n), e.prototype = n;
10192
10192
  }
10193
10193
  }
10194
- function W(e, i) {
10194
+ function Y(e, i) {
10195
10195
  for (var n = 0; n < i.length; n++)
10196
- V(i[n], e);
10196
+ G(i[n], e);
10197
10197
  }
10198
- function ae(e, i) {
10198
+ function ne(e, i) {
10199
10199
  Q(i.prototype, e.prototype), e.prototype.constructor = e;
10200
10200
  }
10201
- function se(e, i) {
10201
+ function oe(e, i) {
10202
10202
  B(i.prototype, e.prototype), e.prototype.constructor = e;
10203
10203
  }
10204
10204
  function Z(e, i, n, a) {
@@ -10218,7 +10218,7 @@ var Ue = {};
10218
10218
  return l;
10219
10219
  };
10220
10220
  }
10221
- function ee(e, i, n, a) {
10221
+ function se(e, i, n, a) {
10222
10222
  var s = e;
10223
10223
  e[i] = s, e[n] = function() {
10224
10224
  return e[i] === s && (e[i] = a()), e[n] = function() {
@@ -10226,7 +10226,7 @@ var Ue = {};
10226
10226
  }, e[i];
10227
10227
  };
10228
10228
  }
10229
- function de(e, i, n, a) {
10229
+ function fe(e, i, n, a) {
10230
10230
  var s = e;
10231
10231
  e[i] = s, e[n] = function() {
10232
10232
  if (e[i] === s) {
@@ -10239,10 +10239,10 @@ var Ue = {};
10239
10239
  }, _;
10240
10240
  };
10241
10241
  }
10242
- function ie(e) {
10242
+ function re(e) {
10243
10243
  return e.immutable$list = Array, e.fixed$length = Array, e;
10244
10244
  }
10245
- function ne(e) {
10245
+ function ie(e) {
10246
10246
  return e;
10247
10247
  }
10248
10248
  function le(e) {
@@ -10263,17 +10263,17 @@ var Ue = {};
10263
10263
  return i === null && (i = o.closureFromTearOff(e).prototype), i;
10264
10264
  };
10265
10265
  }
10266
- var oe = 0;
10267
- function ce(e, i, n, a, s, l, _, d, c, p) {
10268
- return typeof d == "number" && (d += oe), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: p };
10266
+ var ae = 0;
10267
+ function de(e, i, n, a, s, l, _, d, c, p) {
10268
+ return typeof d == "number" && (d += ae), { co: e, iS: i, iI: n, rC: a, dV: s, cs: l, fs: _, fT: d, aI: c || 0, nDA: p };
10269
10269
  }
10270
10270
  function ye(e, i, n, a, s, l, _, d) {
10271
- var c = ce(e, !0, !1, n, a, s, l, _, d, !1), p = ue(c);
10271
+ var c = de(e, !0, !1, n, a, s, l, _, d, !1), p = ue(c);
10272
10272
  e[i] = p;
10273
10273
  }
10274
10274
  function he(e, i, n, a, s, l, _, d, c, p) {
10275
10275
  n = !!n;
10276
- var $ = ce(e, !1, n, a, s, l, _, d, c, !!p), g = _e(n, $);
10276
+ var $ = de(e, !1, n, a, s, l, _, d, c, !!p), g = _e(n, $);
10277
10277
  e[i] = g;
10278
10278
  }
10279
10279
  function Te(e) {
@@ -10309,7 +10309,7 @@ var Ue = {};
10309
10309
  return ye(_, d, n, a, s, [c], p, l);
10310
10310
  };
10311
10311
  };
10312
- return { inherit: V, inheritMany: W, mixin: ae, mixinHard: se, installStaticTearOff: ye, installInstanceTearOff: he, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: ie, lazy: ee, lazyFinal: de, lazyOld: Z, updateHolder: j, convertToFastObject: ne, updateTypes: ge, setOrUpdateInterceptorsByTag: Te, setOrUpdateLeafTags: $e };
10312
+ return { inherit: G, inheritMany: Y, mixin: ne, mixinHard: oe, installStaticTearOff: ye, installInstanceTearOff: he, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: i(0, null, ["call$0"], 0), _static_1: i(1, null, ["call$1"], 0), _static_2: i(2, null, ["call$2"], 0), makeConstList: re, lazy: se, lazyFinal: fe, lazyOld: Z, updateHolder: j, convertToFastObject: ie, updateTypes: ge, setOrUpdateInterceptorsByTag: Te, setOrUpdateLeafTags: $e };
10313
10313
  }(), o = {
10314
10314
  JS_CONST: function() {
10315
10315
  },
@@ -10355,58 +10355,58 @@ var Ue = {};
10355
10355
  }
10356
10356
  },
10357
10357
  Sort__dualPivotQuicksort(e, i, n, a) {
10358
- var s, l, _, d, c, p, $, g, m, h, A = f.JSInt_methods._tdivFast$1(n - i + 1, 6), E = i + A, M = n - A, b = f.JSInt_methods._tdivFast$1(i + n, 2), R = b - A, C = b + A, F = u.getInterceptor$asx(e), D = F.$index(e, E), L = F.$index(e, R), v = F.$index(e, b), x = F.$index(e, C), H = F.$index(e, M);
10359
- if (a.call$2(D, L) > 0 && (s = L, L = D, D = s), a.call$2(x, H) > 0 && (s = H, H = x, x = s), a.call$2(D, v) > 0 && (s = v, v = D, D = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(D, x) > 0 && (s = x, x = D, D = s), a.call$2(v, x) > 0 && (s = x, x = v, v = s), a.call$2(L, H) > 0 && (s = H, H = L, L = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(x, H) > 0 && (s = H, H = x, x = s), F.$indexSet(e, E, D), F.$indexSet(e, b, v), F.$indexSet(e, M, H), F.$indexSet(e, R, F.$index(e, i)), F.$indexSet(e, C, F.$index(e, n)), l = i + 1, _ = n - 1, u.$eq$(a.call$2(L, x), 0)) {
10358
+ var s, l, _, d, c, p, $, g, m, h, A = f.JSInt_methods._tdivFast$1(n - i + 1, 6), E = i + A, M = n - A, b = f.JSInt_methods._tdivFast$1(i + n, 2), R = b - A, C = b + A, O = u.getInterceptor$asx(e), D = O.$index(e, E), L = O.$index(e, R), v = O.$index(e, b), x = O.$index(e, C), H = O.$index(e, M);
10359
+ if (a.call$2(D, L) > 0 && (s = L, L = D, D = s), a.call$2(x, H) > 0 && (s = H, H = x, x = s), a.call$2(D, v) > 0 && (s = v, v = D, D = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(D, x) > 0 && (s = x, x = D, D = s), a.call$2(v, x) > 0 && (s = x, x = v, v = s), a.call$2(L, H) > 0 && (s = H, H = L, L = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(x, H) > 0 && (s = H, H = x, x = s), O.$indexSet(e, E, D), O.$indexSet(e, b, v), O.$indexSet(e, M, H), O.$indexSet(e, R, O.$index(e, i)), O.$indexSet(e, C, O.$index(e, n)), l = i + 1, _ = n - 1, u.$eq$(a.call$2(L, x), 0)) {
10360
10360
  for (d = l; d <= _; ++d)
10361
- if (c = F.$index(e, d), p = a.call$2(c, L), p !== 0)
10361
+ if (c = O.$index(e, d), p = a.call$2(c, L), p !== 0)
10362
10362
  if (p < 0)
10363
- d !== l && (F.$indexSet(e, d, F.$index(e, l)), F.$indexSet(e, l, c)), ++l;
10363
+ d !== l && (O.$indexSet(e, d, O.$index(e, l)), O.$indexSet(e, l, c)), ++l;
10364
10364
  else
10365
10365
  for (; ; )
10366
- if (p = a.call$2(F.$index(e, _), L), p > 0) {
10366
+ if (p = a.call$2(O.$index(e, _), L), p > 0) {
10367
10367
  --_;
10368
10368
  continue;
10369
10369
  } else if ($ = _ - 1, p < 0) {
10370
- F.$indexSet(e, d, F.$index(e, l)), g = l + 1, F.$indexSet(e, l, F.$index(e, _)), F.$indexSet(e, _, c), _ = $, l = g;
10370
+ O.$indexSet(e, d, O.$index(e, l)), g = l + 1, O.$indexSet(e, l, O.$index(e, _)), O.$indexSet(e, _, c), _ = $, l = g;
10371
10371
  break;
10372
10372
  } else {
10373
- F.$indexSet(e, d, F.$index(e, _)), F.$indexSet(e, _, c), _ = $;
10373
+ O.$indexSet(e, d, O.$index(e, _)), O.$indexSet(e, _, c), _ = $;
10374
10374
  break;
10375
10375
  }
10376
10376
  m = !0;
10377
10377
  } else {
10378
10378
  for (d = l; d <= _; ++d)
10379
- if (c = F.$index(e, d), a.call$2(c, L) < 0)
10380
- d !== l && (F.$indexSet(e, d, F.$index(e, l)), F.$indexSet(e, l, c)), ++l;
10379
+ if (c = O.$index(e, d), a.call$2(c, L) < 0)
10380
+ d !== l && (O.$indexSet(e, d, O.$index(e, l)), O.$indexSet(e, l, c)), ++l;
10381
10381
  else if (a.call$2(c, x) > 0)
10382
10382
  for (; ; )
10383
- if (a.call$2(F.$index(e, _), x) > 0) {
10383
+ if (a.call$2(O.$index(e, _), x) > 0) {
10384
10384
  if (--_, _ < d)
10385
10385
  break;
10386
10386
  continue;
10387
10387
  } else {
10388
- $ = _ - 1, a.call$2(F.$index(e, _), L) < 0 ? (F.$indexSet(e, d, F.$index(e, l)), g = l + 1, F.$indexSet(e, l, F.$index(e, _)), F.$indexSet(e, _, c), l = g) : (F.$indexSet(e, d, F.$index(e, _)), F.$indexSet(e, _, c)), _ = $;
10388
+ $ = _ - 1, a.call$2(O.$index(e, _), L) < 0 ? (O.$indexSet(e, d, O.$index(e, l)), g = l + 1, O.$indexSet(e, l, O.$index(e, _)), O.$indexSet(e, _, c), l = g) : (O.$indexSet(e, d, O.$index(e, _)), O.$indexSet(e, _, c)), _ = $;
10389
10389
  break;
10390
10390
  }
10391
10391
  m = !1;
10392
10392
  }
10393
- if (h = l - 1, F.$indexSet(e, i, F.$index(e, h)), F.$indexSet(e, h, L), h = _ + 1, F.$indexSet(e, n, F.$index(e, h)), F.$indexSet(e, h, x), o.Sort__doSort(e, i, l - 2, a), o.Sort__doSort(e, _ + 2, n, a), !m)
10393
+ if (h = l - 1, O.$indexSet(e, i, O.$index(e, h)), O.$indexSet(e, h, L), h = _ + 1, O.$indexSet(e, n, O.$index(e, h)), O.$indexSet(e, h, x), o.Sort__doSort(e, i, l - 2, a), o.Sort__doSort(e, _ + 2, n, a), !m)
10394
10394
  if (l < E && _ > M) {
10395
- for (; u.$eq$(a.call$2(F.$index(e, l), L), 0); )
10395
+ for (; u.$eq$(a.call$2(O.$index(e, l), L), 0); )
10396
10396
  ++l;
10397
- for (; u.$eq$(a.call$2(F.$index(e, _), x), 0); )
10397
+ for (; u.$eq$(a.call$2(O.$index(e, _), x), 0); )
10398
10398
  --_;
10399
10399
  for (d = l; d <= _; ++d)
10400
- if (c = F.$index(e, d), a.call$2(c, L) === 0)
10401
- d !== l && (F.$indexSet(e, d, F.$index(e, l)), F.$indexSet(e, l, c)), ++l;
10400
+ if (c = O.$index(e, d), a.call$2(c, L) === 0)
10401
+ d !== l && (O.$indexSet(e, d, O.$index(e, l)), O.$indexSet(e, l, c)), ++l;
10402
10402
  else if (a.call$2(c, x) === 0)
10403
10403
  for (; ; )
10404
- if (a.call$2(F.$index(e, _), x) === 0) {
10404
+ if (a.call$2(O.$index(e, _), x) === 0) {
10405
10405
  if (--_, _ < d)
10406
10406
  break;
10407
10407
  continue;
10408
10408
  } else {
10409
- $ = _ - 1, a.call$2(F.$index(e, _), L) < 0 ? (F.$indexSet(e, d, F.$index(e, l)), g = l + 1, F.$indexSet(e, l, F.$index(e, _)), F.$indexSet(e, _, c), l = g) : (F.$indexSet(e, d, F.$index(e, _)), F.$indexSet(e, _, c)), _ = $;
10409
+ $ = _ - 1, a.call$2(O.$index(e, _), L) < 0 ? (O.$indexSet(e, d, O.$index(e, l)), g = l + 1, O.$indexSet(e, l, O.$index(e, _)), O.$indexSet(e, _, c), l = g) : (O.$indexSet(e, d, O.$index(e, _)), O.$indexSet(e, _, c)), _ = $;
10410
10410
  break;
10411
10411
  }
10412
10412
  o.Sort__doSort(e, l, _, a);
@@ -10740,12 +10740,12 @@ var Ue = {};
10740
10740
  return i;
10741
10741
  },
10742
10742
  Closure_fromTearOff(e) {
10743
- var i, n, a, s, l, _, d, c, p, $, g = e.co, m = e.iS, h = e.iI, A = e.nDA, E = e.aI, M = e.fs, b = e.cs, R = M[0], C = b[0], F = g[R], D = e.fT;
10743
+ var i, n, a, s, l, _, d, c, p, $, g = e.co, m = e.iS, h = e.iI, A = e.nDA, E = e.aI, M = e.fs, b = e.cs, R = M[0], C = b[0], O = g[R], D = e.fT;
10744
10744
  for (D.toString, i = Object.create(m ? new o.StaticClosure().constructor.prototype : new o.BoundClosure(null, null).constructor.prototype), i.$initialize = i.constructor, m ? n = function() {
10745
10745
  this.$initialize();
10746
10746
  } : n = function(v, x) {
10747
10747
  this.$initialize(v, x);
10748
- }, i.constructor = n, n.prototype = i, i.$_name = R, i.$_target = F, a = !m, a ? s = o.Closure_forwardCallTo(R, F, h, A) : (i.$static_name = R, s = F), i.$signature = o.Closure__computeSignatureFunctionNewRti(D, m, h), i[C] = s, l = s, _ = 1; _ < M.length; ++_)
10748
+ }, i.constructor = n, n.prototype = i, i.$_name = R, i.$_target = O, a = !m, a ? s = o.Closure_forwardCallTo(R, O, h, A) : (i.$static_name = R, s = O), i.$signature = o.Closure__computeSignatureFunctionNewRti(D, m, h), i[C] = s, l = s, _ = 1; _ < M.length; ++_)
10749
10749
  d = M[_], typeof d == "string" ? (c = g[d], p = d, d = c) : p = "", $ = b[_], $ != null && (a && (d = o.Closure_forwardCallTo(p, d, h, A)), i[$] = d), _ === E && (l = d);
10750
10750
  return i["call*"] = l, i.$requiredArgCount = e.rC, i.$defaultValues = e.dV, n;
10751
10751
  },
@@ -11186,8 +11186,8 @@ var Ue = {};
11186
11186
  return o._Universe_eval(I.typeUniverse, e, !1);
11187
11187
  },
11188
11188
  _substitute(e, i, n, a) {
11189
- var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F = i._kind;
11190
- switch (F) {
11189
+ var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O = i._kind;
11190
+ switch (O) {
11191
11191
  case 5:
11192
11192
  case 1:
11193
11193
  case 2:
@@ -11211,7 +11211,7 @@ var Ue = {};
11211
11211
  case 14:
11212
11212
  return R = i._primary, R < a || (C = n[R - a], C == null) ? i : C;
11213
11213
  default:
11214
- throw o.wrapException(o.AssertionError$("Attempted to substitute unexpected RTI kind " + F));
11214
+ throw o.wrapException(o.AssertionError$("Attempted to substitute unexpected RTI kind " + O));
11215
11215
  }
11216
11216
  },
11217
11217
  _substituteArray(e, i, n, a) {
@@ -11473,7 +11473,7 @@ var Ue = {};
11473
11473
  return l + "})";
11474
11474
  },
11475
11475
  _functionRtiToString(e, i, n) {
11476
- var a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x = ", ";
11476
+ var a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x = ", ";
11477
11477
  if (n != null) {
11478
11478
  for (a = n.length, i == null ? (i = o._setArrayType([], r.JSArray_String), s = null) : s = i.length, l = i.length, _ = a; _ > 0; --_)
11479
11479
  i.push("T" + (l + _));
@@ -11482,15 +11482,15 @@ var Ue = {};
11482
11482
  p += ">";
11483
11483
  } else
11484
11484
  p = "", s = null;
11485
- for (d = e._primary, A = e._rest, E = A._requiredPositional, M = E.length, b = A._optionalPositional, R = b.length, C = A._named, F = C.length, D = o._rtiToString(d, i), L = "", v = "", _ = 0; _ < M; ++_, v = x)
11485
+ for (d = e._primary, A = e._rest, E = A._requiredPositional, M = E.length, b = A._optionalPositional, R = b.length, C = A._named, O = C.length, D = o._rtiToString(d, i), L = "", v = "", _ = 0; _ < M; ++_, v = x)
11486
11486
  L += v + o._rtiToString(E[_], i);
11487
11487
  if (R > 0) {
11488
11488
  for (L += v + "[", v = "", _ = 0; _ < R; ++_, v = x)
11489
11489
  L += v + o._rtiToString(b[_], i);
11490
11490
  L += "]";
11491
11491
  }
11492
- if (F > 0) {
11493
- for (L += v + "{", v = "", _ = 0; _ < F; _ += 3, v = x)
11492
+ if (O > 0) {
11493
+ for (L += v + "{", v = "", _ = 0; _ < O; _ += 3, v = x)
11494
11494
  L += v, C[_ + 1] && (L += "required "), L += o._rtiToString(C[_ + 2], i) + " " + C[_];
11495
11495
  L += "}";
11496
11496
  }
@@ -11852,7 +11852,7 @@ var Ue = {};
11852
11852
  return c === 12 ? i === r.JavaScriptFunction ? !0 : l ? !1 : o._isFunctionSubtype(e, i, n, a, s) : _ === 9 ? c !== 9 ? !1 : o._isInterfaceSubtype(e, i, n, a, s) : (l = _ === 11, l && a === r.Record ? !0 : l && c === 11 ? o._isRecordSubtype(e, i, n, a, s) : !1);
11853
11853
  },
11854
11854
  _isFunctionSubtype(e, i, n, a, s) {
11855
- var l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x, H, pe;
11855
+ var l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x, H, ce;
11856
11856
  if (!o._isSubtype(e, i._primary, n, a._primary, s) || (l = i._rest, _ = a._rest, d = l._requiredPositional, c = _._requiredPositional, p = d.length, $ = c.length, p > $) || (g = $ - p, m = l._optionalPositional, h = _._optionalPositional, A = m.length, E = h.length, p + A < $ + E))
11857
11857
  return !1;
11858
11858
  for (M = 0; M < p; ++M)
@@ -11864,20 +11864,20 @@ var Ue = {};
11864
11864
  for (M = 0; M < E; ++M)
11865
11865
  if (b = m[g + M], !o._isSubtype(e, h[M], s, b, n))
11866
11866
  return !1;
11867
- for (R = l._named, C = _._named, F = R.length, D = C.length, L = 0, v = 0; v < D; v += 3)
11867
+ for (R = l._named, C = _._named, O = R.length, D = C.length, L = 0, v = 0; v < D; v += 3)
11868
11868
  for (x = C[v]; ; ) {
11869
- if (L >= F || (H = R[L], L += 3, x < H))
11869
+ if (L >= O || (H = R[L], L += 3, x < H))
11870
11870
  return !1;
11871
- if (pe = R[L - 2], H < x) {
11872
- if (pe)
11871
+ if (ce = R[L - 2], H < x) {
11872
+ if (ce)
11873
11873
  return !1;
11874
11874
  continue;
11875
11875
  }
11876
- if (b = C[v + 1], pe && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
11876
+ if (b = C[v + 1], ce && !b || (b = R[L - 1], !o._isSubtype(e, C[v + 2], s, b, n)))
11877
11877
  return !1;
11878
11878
  break;
11879
11879
  }
11880
- for (; L < F; ) {
11880
+ for (; L < O; ) {
11881
11881
  if (R[L + 1])
11882
11882
  return !1;
11883
11883
  L += 3;
@@ -13230,15 +13230,15 @@ var Ue = {};
13230
13230
  return e instanceof o.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? n = !0 : n = e instanceof o.ScorecardDatasourceConfigModel && e.isCumulative, n ? (n = r.XYDatasetModel, o.List_List$of(o.ListExtensions_mapIndexed(i, new o.accumulate_closure(e), n, n), !0, n)) : i;
13231
13231
  },
13232
13232
  formatBaseXYChartData(e, i, n, a) {
13233
- var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L, v, x = null;
13233
+ var s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O, D, L, v, x = null;
13234
13234
  if (n.length === 0)
13235
13235
  return s = o._setArrayType([], r.JSArray_String), l = o._setArrayType([], r.JSArray_XYDatasetModel), _ = o.IterableExtension_get_firstOrNull(n), new o.BaseXYChartDataModel(e, s, l, new o.DateComparison(_ == null ? x : _.dateRange, x));
13236
13236
  for (d = f.JSArray_methods.get$first(n).columns, s = r.QueryResponse, c = o._formatRows(o.ListExtension_sublistOrEmpty(n, 0, 1, s)), p = o._formatRows(o.ListExtension_sublistOrEmpty(n, 1, 2, s)), p.length !== 0 && (s = o._arrayInstanceType(d)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), $ = o.List_List$of(new o.MappedListIterable(d, new o.formatBaseXYChartData_closure(), s), !0, s._eval$1("ListIterable.E")), g = o.compare(new o.ComparisonData($, p), new o.ComparisonData($, c)), p = g.comparison, c = g.main), i.breakdownDimension == null && (m = f.JSArray_methods.indexWhere$1(d, new o.formatBaseXYChartData_closure0()), s = o._arrayInstanceType(c)._eval$1("MappedListIterable<1,List<@>>"), c = o.List_List$of(new o.MappedListIterable(c, new o.formatBaseXYChartData_closure1(d, m), s), !0, s._eval$1("ListIterable.E")), p.length !== 0 && (s = o._arrayInstanceType(p)._eval$1("MappedListIterable<1,List<@>>"), p = o.List_List$of(new o.MappedListIterable(p, new o.formatBaseXYChartData_closure2(d, m), s), !0, s._eval$1("ListIterable.E")))), s = r.JSArray_String, h = o._setArrayType([], s), A = o._setArrayType([], s), s = c.length, E = 0; E < c.length; c.length === s || (0, o.throwConcurrentModificationError)(c), ++E)
13237
13237
  M = c[E], l = u.getInterceptor$asx(M), h.push(u.toString$0$(l.$index(M, 0))), A.push(u.toString$0$(l.$index(M, 1)));
13238
13238
  for (s = r.String, l = o.LinkedHashSet_LinkedHashSet$from(h, s), h = o.List_List$of(l, !0, o._instanceType(l)._precomputed1), s = o.LinkedHashSet_LinkedHashSet$from(A, s), A = o.List_List$of(s, !0, o._instanceType(s)._precomputed1), b = o._setArrayType([], r.JSArray_XYDatasetModel), s = A.length, l = r.JSArray_num, E = 0; E < A.length; A.length === s || (0, o.throwConcurrentModificationError)(A), ++E) {
13239
- for (R = A[E], C = o._setArrayType([], l), F = o._setArrayType([], l), _ = h.length, D = 0; D < h.length; h.length === _ || (0, o.throwConcurrentModificationError)(h), ++D)
13240
- L = h[D], v = o.IterableExtension_firstWhereOrNull(c, new o.formatBaseXYChartData_closure3(L, R)), v = v == null ? x : o.ListExtension_elementAtOrNull(v, 2), C.push(v ?? 0), p.length !== 0 && (v = o.IterableExtension_firstWhereOrNull(p, new o.formatBaseXYChartData_closure4(L, R)), v = v == null ? x : o.ListExtension_elementAtOrNull(v, 2), F.push(v ?? 0));
13241
- b.push(new o.XYDatasetModel(R, !1, C)), F.length !== 0 && b.push(new o.XYDatasetModel(R, !0, F));
13239
+ for (R = A[E], C = o._setArrayType([], l), O = o._setArrayType([], l), _ = h.length, D = 0; D < h.length; h.length === _ || (0, o.throwConcurrentModificationError)(h), ++D)
13240
+ L = h[D], v = o.IterableExtension_firstWhereOrNull(c, new o.formatBaseXYChartData_closure3(L, R)), v = v == null ? x : o.ListExtension_elementAtOrNull(v, 2), C.push(v ?? 0), p.length !== 0 && (v = o.IterableExtension_firstWhereOrNull(p, new o.formatBaseXYChartData_closure4(L, R)), v = v == null ? x : o.ListExtension_elementAtOrNull(v, 2), O.push(v ?? 0));
13241
+ b.push(new o.XYDatasetModel(R, !1, C)), O.length !== 0 && b.push(new o.XYDatasetModel(R, !0, O));
13242
13242
  }
13243
13243
  return b = o.accumulate(i, b), s = o.IterableExtension_get_firstOrNull(n), s = s == null ? x : s.dateRange, l = o.ListExtension_elementAtOrNull(n, 1), new o.BaseXYChartDataModel(e, h, b, new o.DateComparison(s, l == null ? x : l.dateRange));
13244
13244
  },
@@ -13314,12 +13314,12 @@ var Ue = {};
13314
13314
  return new o.RowInfo(l, u.map$1$1$ax(n, new o._getRowInfo_closure(e, i, a, l), s).join$0(0));
13315
13315
  },
13316
13316
  compare(e, i) {
13317
- var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L = {};
13317
+ var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O, D, L = {};
13318
13318
  for (L.comparisonDateIndex = L.mainDateIndex = null, n = L.comparisonIndexesCompleted = L.mainIndexesCompleted = !1, a = i.columns, s = r.JSArray_int, l = o.IterableExtension_foldIndexed(a, o._setArrayType([], s), new o.compare_closure(L)), _ = o.IterableExtension_foldIndexed(e.columns, o._setArrayType([], s), new o.compare_closure0(L)), s = r.JSArray_String, L.dates = o._setArrayType([], s), (L.mainDateIndex != null ? L.comparisonDateIndex != null : n) && (n = r.String, n = o.ListExtensions_mapIndexed(f.JSArray_methods.fold$2(i.rows, o._setArrayType([], s), new o.compare_closure1(L)), new o.compare_closure2(f.JSArray_methods.fold$2(e.rows, o._setArrayType([], s), new o.compare_closure3(L))), n, n), L.dates = o.List_List$of(n, !0, n.$ti._eval$1("Iterable.E"))), d = f.JSArray_methods.fold$2(e.rows, o.LinkedHashMap_LinkedHashMap$_empty(r.String, r.List_dynamic), new o.compare_closure4(L, e, _)), n = r.JSArray_List_dynamic, s = o._setArrayType([], n), n = o._setArrayType([], n), c = i.rows, p = c.length, $ = r.JSArray_dynamic, g = u.getInterceptor$asx(l), m = r.dynamic, h = 0; h < c.length; c.length === p || (0, o.throwConcurrentModificationError)(c), ++h) {
13319
13319
  if (A = c[h], E = o._getRowInfo(a, L.dates, l, A), M = d.$index(0, E.id), b = M == null ? null : u.toList$0$ax(M), b == null) {
13320
- for (M = E.row, R = o.List_List$of(o.ListExtensions_slice(M, 0, g.get$length(l), m), !0, m), C = M.length - g.get$length(l), C < 0 && o.throwExpression(o.ArgumentError$("Length must be a non-negative integer: " + C)), F = o._setArrayType(new Array(C), $), D = 0; D < C; ++D)
13321
- F[D] = null;
13322
- f.JSArray_methods.addAll$1(R, F), b = R;
13320
+ for (M = E.row, R = o.List_List$of(o.ListExtensions_slice(M, 0, g.get$length(l), m), !0, m), C = M.length - g.get$length(l), C < 0 && o.throwExpression(o.ArgumentError$("Length must be a non-negative integer: " + C)), O = o._setArrayType(new Array(C), $), D = 0; D < C; ++D)
13321
+ O[D] = null;
13322
+ f.JSArray_methods.addAll$1(R, O), b = R;
13323
13323
  }
13324
13324
  s.push(E.row), n.push(b);
13325
13325
  }
@@ -17363,14 +17363,14 @@ Arguments: [` + c + "]";
17363
17363
  $signature: 0
17364
17364
  }, o._formatTableResponse_closure5.prototype = {
17365
17365
  call$2(e, i) {
17366
- var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, F, D, L = null, v = r.JSArray_List_dynamic, x = o._setArrayType([[]], v), H = o._setArrayType([[]], v);
17366
+ var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R, C, O, D, L = null, v = r.JSArray_List_dynamic, x = o._setArrayType([[]], v), H = o._setArrayType([[]], v);
17367
17367
  for (v = this.headers, n = i.value, a = r.dynamic, s = r.JSArray_String, l = r.String, _ = this.metricColumns, d = 0; d < v.length; ++d)
17368
17368
  if (c = v[d], p = u.getInterceptor$ax(c), $ = p.map$1$1(c, new o._formatTableResponse__closure5(), l).join$1(0, "|"), o.IterableExtension_firstWhereOrNull(c, new o._formatTableResponse__closure6()) != null)
17369
17369
  for (g = p.firstWhere$1(c, new o._formatTableResponse__closure7()), m = p.fold$2(c, !0, new o._formatTableResponse__closure8(i)), p = x.length, h = g.type, A = g.columnValue, E = 0; E < x.length; x.length === p || (0, o.throwConcurrentModificationError)(x), ++E)
17370
17370
  M = x[E], m ? (b = n.$index(0, A), R = M.length, d >= R && f.JSArray_methods.addAll$1(M, o.List_List$filled(d - R + 1, L, !1, a)), M[d] = b) : (b = h == null ? L : o.DataTypeExtension_toData(h, L), R = M.length, d >= R && f.JSArray_methods.addAll$1(M, o.List_List$filled(d - R + 1, L, !1, a)), M[d] = b);
17371
17371
  else if (f.JSArray_methods.contains$1(o._setArrayType(["_metric_name", "_metric_value"], s), $))
17372
17372
  for (p = $ === "_metric_value", h = $ === "_metric_name", C = 0; C < _.length; ++C)
17373
- F = _[C], o.ListExtension_elementAtOrNull(x, C) == null && (x.push(o.List_List$of(x[0], !0, a)), H.push(o.List_List$of(H[0], !0, a))), h ? (A = x[C], b = F.label, R = A.length, d >= R && f.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b, H[C].push(b)) : p && (A = x[C], b = n.$index(0, F.id), R = A.length, d >= R && f.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b);
17373
+ O = _[C], o.ListExtension_elementAtOrNull(x, C) == null && (x.push(o.List_List$of(x[0], !0, a)), H.push(o.List_List$of(H[0], !0, a))), h ? (A = x[C], b = O.label, R = A.length, d >= R && f.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b, H[C].push(b)) : p && (A = x[C], b = n.$index(0, O.id), R = A.length, d >= R && f.JSArray_methods.addAll$1(A, o.List_List$filled(d - R + 1, L, !1, a)), A[d] = b);
17374
17374
  else
17375
17375
  for (D = 0; D < x.length; ++D)
17376
17376
  p = x[D], h = n.$index(0, $), A = p.length, d >= A && f.JSArray_methods.addAll$1(p, o.List_List$filled(d - A + 1, L, !1, a)), p[d] = h, H[D].push(n.$index(0, $));
@@ -17622,10 +17622,10 @@ Arguments: [` + c + "]";
17622
17622
  $signature: 97
17623
17623
  }, o.formatTableChartData_closure9.prototype = {
17624
17624
  call$2(e, i) {
17625
- var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R = this, C = [], F = [];
17625
+ var n, a, s, l, _, d, c, p, $, g, m, h, A, E, M, b, R = this, C = [], O = [];
17626
17626
  for (n = R.columns, a = n.length, s = R._box_0, l = R.country, _ = i.cells, d = R.mainKeyIndex, c = R.comparisonKeyIndex, p = 0; p < n.length; n.length === a || (0, o.throwConcurrentModificationError)(n), ++p)
17627
- $ = n[p], g = $.key + "_" + $.hide, m = d.$index(0, g), h = o.ListExtension_elementAtOrNull(_, m ?? -1), m = $.type, A = m == null, A ? E = null : (E = $.aggregationType, M = $.dimensionOption, M = o.DataTypeExtension_toDisplay(m, E, l, $.decimal, M, $.timeFormatter, h), E = M), C.push(E), E = s.comparison.rows, E.length !== 0 && (E = o.ListExtension_elementAtOrNull(E, e), E = E == null ? null : E.cells, E == null && (E = []), g = c.$index(0, g), b = o.ListExtension_elementAtOrNull(E, g ?? -1), A ? g = null : (g = $.aggregationType, A = $.dimensionOption, A = o.DataTypeExtension_toDisplay(m, g, l, $.decimal, A, $.timeFormatter, b), g = A), F.push(g));
17628
- return i.copyWith$2$cells$comparisonCells(C, F);
17627
+ $ = n[p], g = $.key + "_" + $.hide, m = d.$index(0, g), h = o.ListExtension_elementAtOrNull(_, m ?? -1), m = $.type, A = m == null, A ? E = null : (E = $.aggregationType, M = $.dimensionOption, M = o.DataTypeExtension_toDisplay(m, E, l, $.decimal, M, $.timeFormatter, h), E = M), C.push(E), E = s.comparison.rows, E.length !== 0 && (E = o.ListExtension_elementAtOrNull(E, e), E = E == null ? null : E.cells, E == null && (E = []), g = c.$index(0, g), b = o.ListExtension_elementAtOrNull(E, g ?? -1), A ? g = null : (g = $.aggregationType, A = $.dimensionOption, A = o.DataTypeExtension_toDisplay(m, g, l, $.decimal, A, $.timeFormatter, b), g = A), O.push(g));
17628
+ return i.copyWith$2$cells$comparisonCells(C, O);
17629
17629
  },
17630
17630
  $signature: 6
17631
17631
  }, o.TypedDataBuffer.prototype = {
@@ -17917,8 +17917,8 @@ Arguments: [` + c + "]";
17917
17917
  return a.message;
17918
17918
  }
17919
17919
  }())), i(T, "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))?)?)?$")), i(T, "_hashSeed", "$get$_hashSeed", () => o.objectHashCode(f.Type_Object_xQ6)), i(T, "Endian_host", "$get$Endian_host", () => o.NativeByteData_NativeByteData$view(o.NativeUint16List__create1(o._ensureNativeList(o._setArrayType([1], r.JSArray_int))).buffer, 0, null).getInt8(0) === 1 ? f.C_Endian0 : f.C_Endian), i(T, "_clockKey", "$get$_clockKey", () => new o.Object()), i(T, "en_USSymbols", "$get$en_USSymbols", () => new o.DateSymbols("en_US", f.List_BC_AD, f.List_6xs, f.List_qpm, f.List_qpm, f.List_cIc, f.List_cIc, f.List_h8w, f.List_h8w, f.List_wMy, f.List_wMy, f.List_gc6, f.List_gc6, f.List_3US, f.List_Q1_Q2_Q3_Q4, f.List_bJM, f.List_AM_PM)), n(T, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", T.$get$en_USSymbols())), n(T, "dateTimePatterns", "$get$dateTimePatterns", () => o.UninitializedLocaleData$("initializeDateFormatting(<locale>)", f.Map_EQ6TW)), i(T, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), i(T, "DateFormat__matchers", "$get$DateFormat__matchers", () => o._setArrayType([o.RegExp_RegExp("^'(?:[^']|'')*'"), o.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)"), o.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+")], o.findType("JSArray<RegExp>"))), i(T, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => o.RegExp_RegExp("''")), i(T, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => o.RegExp_RegExp("^\\d+")), n(T, "_availableLocales", "$get$_availableLocales", () => {
17920
- var a, s, l = o.EnLocale$(f.StartOfWeek_1), _ = o.EnLocale$(f.StartOfWeek_1), d = o.EnLocale$(f.StartOfWeek_1), c = o.EnLocale$(f.StartOfWeek_1), p = o.EnLocale$(f.StartOfWeek_1), $ = o.EnLocale$(f.StartOfWeek_2), g = o.EnLocale$(f.StartOfWeek_2), m = o.EnLocale$(f.StartOfWeek_1), h = o.EnLocale$(f.StartOfWeek_1), A = o.EsLocale$(f.StartOfWeek_2), E = o.EsLocale$(f.StartOfWeek_2), M = o.EsLocale$(f.StartOfWeek_1), b = o.FrLocale$(f.StartOfWeek_2), R = o.FrLocale$(f.StartOfWeek_2), C = o.FrLocale$(f.StartOfWeek_1), F = o.ZhCnLocale$(f.StartOfWeek_1), D = o.ZhCnLocale$(f.StartOfWeek_1), L = o.ZhLocale$(f.StartOfWeek_1), v = o.ZhLocale$(f.StartOfWeek_1), x = o.DeLocale$(f.StartOfWeek_2), H = o.DeLocale$(f.StartOfWeek_2), pe = o.DeLocale$(f.StartOfWeek_2), Ce = o.DeLocale$(f.StartOfWeek_2), be = o.ItLocale$(f.StartOfWeek_2), Re = o.ItLocale$(f.StartOfWeek_2), Fe = o.ArLyLocale$(!0, f.StartOfWeek_0), Oe = o.ArLyLocale$(!1, f.StartOfWeek_0), Le = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!0, f.StartOfWeek_1), we = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0), We = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0);
17921
- return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(f.StartOfWeek_2), s = o.PtLocale$(f.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", _, "en_sg", d, "en_au", c, "en_ca", p, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", F, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", H, "de_at", pe, "de_ch", Ce, "it", be, "it_ch", Re, "ar", Fe, "ar_ly", Oe, "ar_dz", Le, "ar_kw", ve, "ar_sa", De, "ar_ma", we, "ar_tn", We, "az", new o.AzLocale(f.StartOfWeek_2), "id", new o.IdLocale(f.StartOfWeek_1), "ja", new o.JaLocale(f.StartOfWeek_1), "ko", new o.KoLocale(f.StartOfWeek_1), "ru", new o.RuLocale(f.StartOfWeek_2), "uk", new o.UkLocale(f.StartOfWeek_2), "hi", new o.HiLocale(f.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(f.StartOfWeek_2), "tr", new o.TrLocale(f.StartOfWeek_2), "sv", new o.SvLocale(f.StartOfWeek_2), "nb", new o.NbLocale(f.StartOfWeek_2), "fa", new o.FaLocale(f.StartOfWeek_0), "bn", new o.BnLocale(f.StartOfWeek_1), "nl", new o.NlLocale(f.StartOfWeek_2), "th", new o.ThLocale(f.StartOfWeek_1)], r.String, o.findType("Locale"));
17920
+ var a, s, l = o.EnLocale$(f.StartOfWeek_1), _ = o.EnLocale$(f.StartOfWeek_1), d = o.EnLocale$(f.StartOfWeek_1), c = o.EnLocale$(f.StartOfWeek_1), p = o.EnLocale$(f.StartOfWeek_1), $ = o.EnLocale$(f.StartOfWeek_2), g = o.EnLocale$(f.StartOfWeek_2), m = o.EnLocale$(f.StartOfWeek_1), h = o.EnLocale$(f.StartOfWeek_1), A = o.EsLocale$(f.StartOfWeek_2), E = o.EsLocale$(f.StartOfWeek_2), M = o.EsLocale$(f.StartOfWeek_1), b = o.FrLocale$(f.StartOfWeek_2), R = o.FrLocale$(f.StartOfWeek_2), C = o.FrLocale$(f.StartOfWeek_1), O = o.ZhCnLocale$(f.StartOfWeek_1), D = o.ZhCnLocale$(f.StartOfWeek_1), L = o.ZhLocale$(f.StartOfWeek_1), v = o.ZhLocale$(f.StartOfWeek_1), x = o.DeLocale$(f.StartOfWeek_2), H = o.DeLocale$(f.StartOfWeek_2), ce = o.DeLocale$(f.StartOfWeek_2), Ce = o.DeLocale$(f.StartOfWeek_2), be = o.ItLocale$(f.StartOfWeek_2), Re = o.ItLocale$(f.StartOfWeek_2), Fe = o.ArLyLocale$(!0, f.StartOfWeek_0), Oe = o.ArLyLocale$(!1, f.StartOfWeek_0), Le = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), ve = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_1), De = o.ArSaMaDzKwTnLocale$(!0, f.StartOfWeek_1), we = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0), Ge = o.ArSaMaDzKwTnLocale$(!1, f.StartOfWeek_0);
17921
+ return o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), o.createSentinel(), a = o.PtLocale$(f.StartOfWeek_2), s = o.PtLocale$(f.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", _, "en_sg", d, "en_au", c, "en_ca", p, "en_gb", $, "en_ie", g, "en_il", m, "en_nz", h, "es", A, "es_do", E, "es_us", M, "fr", b, "fr_ch", R, "fr_ca", C, "zh", O, "zh_cn", D, "zh_hk", L, "zh_tw", v, "de", x, "de_de", H, "de_at", ce, "de_ch", Ce, "it", be, "it_ch", Re, "ar", Fe, "ar_ly", Oe, "ar_dz", Le, "ar_kw", ve, "ar_sa", De, "ar_ma", we, "ar_tn", Ge, "az", new o.AzLocale(f.StartOfWeek_2), "id", new o.IdLocale(f.StartOfWeek_1), "ja", new o.JaLocale(f.StartOfWeek_1), "ko", new o.KoLocale(f.StartOfWeek_1), "ru", new o.RuLocale(f.StartOfWeek_2), "uk", new o.UkLocale(f.StartOfWeek_2), "hi", new o.HiLocale(f.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new o.PlLocale(f.StartOfWeek_2), "tr", new o.TrLocale(f.StartOfWeek_2), "sv", new o.SvLocale(f.StartOfWeek_2), "nb", new o.NbLocale(f.StartOfWeek_2), "fa", new o.FaLocale(f.StartOfWeek_0), "bn", new o.BnLocale(f.StartOfWeek_1), "nl", new o.NlLocale(f.StartOfWeek_2), "th", new o.ThLocale(f.StartOfWeek_1)], r.String, o.findType("Locale"));
17922
17922
  });
17923
17923
  }(), function() {
17924
17924
  (function() {
@@ -17974,12 +17974,12 @@ Arguments: [` + c + "]";
17974
17974
  });
17975
17975
  })();
17976
17976
  };
17977
- })(Ue);
17978
- const Be = Ue;
17979
- Be.load({});
17980
- var Pe = Be, rt = /* @__PURE__ */ ((O) => (O.Scorecard = "SCORECARD", O.Spacer = "SPACER", O.Table = "TABLE", O.BarChart = "BARCHART", O.StackBarChart = "STACKBARCHART", O.LineChart = "LINECHART", O.StackLineChart = "STACKLINECHART", O.Circular = "CIRCULAR", O))(rt || {}), it = /* @__PURE__ */ ((O) => (O.EXCEL = "excel", O.PDF = "pdf", O.PDFFULLSIZE = "pdfFullSize", O))(it || {});
17981
- function Mt(O) {
17982
- switch (O) {
17977
+ })(qe);
17978
+ const Ue = qe;
17979
+ Ue.load({});
17980
+ var tt = Ue, rt = /* @__PURE__ */ ((F) => (F.Scorecard = "SCORECARD", F.Spacer = "SPACER", F.Table = "TABLE", F.BarChart = "BARCHART", F.StackBarChart = "STACKBARCHART", F.LineChart = "LINECHART", F.StackLineChart = "STACKLINECHART", F.Circular = "CIRCULAR", F))(rt || {}), it = /* @__PURE__ */ ((F) => (F.EXCEL = "excel", F.PDF = "pdf", F.PDFFULLSIZE = "pdfFullSize", F))(it || {});
17981
+ function Ct(F) {
17982
+ switch (F) {
17983
17983
  case "excel":
17984
17984
  return "Excel";
17985
17985
  case "pdf":
@@ -17991,126 +17991,126 @@ function Mt(O) {
17991
17991
  }
17992
17992
  }
17993
17993
  const Se = "/report-settings", nt = async () => {
17994
- const { businessId: O } = Y(te());
17995
- if (O) {
17994
+ const { businessId: F } = W(ee());
17995
+ if (F) {
17996
17996
  const J = {
17997
- fetchType: re.Get,
17998
- url: `${Se}/${O.value}/reports`
17997
+ fetchType: te.Get,
17998
+ url: `${Se}/${F.value}/reports`
17999
17999
  };
18000
- return X.fetch(J);
18000
+ return K.fetch(J);
18001
18001
  } else
18002
18002
  return Promise.reject(new Error("Business Id is not defined"));
18003
- }, at = (O) => {
18004
- const { businessId: J } = Y(te()), w = {
18005
- fetchType: re.Put,
18006
- url: `${Se}/${J.value}/reports/${O.id}`,
18007
- data: O
18003
+ }, at = (F) => {
18004
+ const { businessId: J } = W(ee()), w = {
18005
+ fetchType: te.Put,
18006
+ url: `${Se}/${J.value}/reports/${F.id}`,
18007
+ data: F
18008
18008
  };
18009
- return X.fetch(w);
18010
- }, ot = (O) => {
18011
- const { businessId: J } = Y(te()), w = {
18012
- fetchType: re.Post,
18009
+ return K.fetch(w);
18010
+ }, ot = (F) => {
18011
+ const { businessId: J } = W(ee()), w = {
18012
+ fetchType: te.Post,
18013
18013
  url: `${Se}/${J.value}/reports`,
18014
- data: O
18014
+ data: F
18015
18015
  };
18016
- return X.fetch(w);
18017
- }, st = (O) => {
18018
- const { businessId: J } = Y(te()), w = {
18019
- fetchType: re.Delete,
18020
- url: `${Se}/${J.value}/reports/${O.id}`
18016
+ return K.fetch(w);
18017
+ }, st = (F) => {
18018
+ const { businessId: J } = W(ee()), w = {
18019
+ fetchType: te.Delete,
18020
+ url: `${Se}/${J.value}/reports/${F.id}`
18021
18021
  };
18022
- return X.fetch(w);
18023
- }, lt = (O) => {
18024
- const { businessId: J } = Y(te()), w = {
18025
- fetchType: re.Put,
18022
+ return K.fetch(w);
18023
+ }, lt = (F) => {
18024
+ const { businessId: J } = W(ee()), w = {
18025
+ fetchType: te.Put,
18026
18026
  url: `${Se}/${J.value}/reports/default`,
18027
- data: { defaultReport: O }
18027
+ data: { defaultReport: F }
18028
18028
  };
18029
- return X.fetch(w);
18029
+ return K.fetch(w);
18030
18030
  }, _t = async () => {
18031
- const { businessId: O } = Y(te());
18032
- if (O) {
18031
+ const { businessId: F } = W(ee());
18032
+ if (F) {
18033
18033
  const J = {
18034
- fetchType: re.Get,
18035
- url: `${Se}/${O.value}/overview-report`
18034
+ fetchType: te.Get,
18035
+ url: `${Se}/${F.value}/overview-report`
18036
18036
  };
18037
- return X.fetch(J);
18037
+ return K.fetch(J);
18038
18038
  } else
18039
18039
  return Promise.reject(new Error("Business Id is not defined"));
18040
18040
  }, ut = async () => {
18041
- const { businessId: O } = Y(te());
18042
- if (O) {
18041
+ const { businessId: F } = W(ee());
18042
+ if (F) {
18043
18043
  const J = {
18044
- fetchType: re.Get,
18045
- url: `${Se}/${O.value}/config`
18044
+ fetchType: te.Get,
18045
+ url: `${Se}/${F.value}/config`
18046
18046
  };
18047
- return X.fetch(J);
18047
+ return K.fetch(J);
18048
18048
  } else
18049
18049
  return Promise.reject(new Error("Business Id is not defined"));
18050
18050
  }, dt = "/report-settings", ct = async () => {
18051
- const { businessId: O } = Y(te());
18052
- if (O) {
18051
+ const { businessId: F } = W(ee());
18052
+ if (F) {
18053
18053
  const J = {
18054
- fetchType: re.Get,
18055
- url: `${dt}/${O.value}/categories`
18054
+ fetchType: te.Get,
18055
+ url: `${dt}/${F.value}/categories`
18056
18056
  };
18057
- return X.fetch(J);
18057
+ return K.fetch(J);
18058
18058
  } else
18059
18059
  return Promise.reject(new Error("Business Id is not defined"));
18060
- }, pt = (O) => {
18061
- const { businessId: J } = Y(te()), w = {
18062
- fetchType: re.Post,
18060
+ }, pt = (F) => {
18061
+ const { businessId: J } = W(ee()), w = {
18062
+ fetchType: te.Post,
18063
18063
  url: `/report-settings/${J.value}/date-settings`,
18064
18064
  data: {
18065
- ...O
18065
+ ...F
18066
18066
  }
18067
18067
  };
18068
- return X.fetch(w);
18068
+ return K.fetch(w);
18069
18069
  };
18070
- function Je(O, J = {}) {
18071
- const w = localStorage.getItem(O);
18070
+ function Je(F, J = {}) {
18071
+ const w = localStorage.getItem(F);
18072
18072
  return w === null && (J == null ? void 0 : J.fallback) !== void 0 ? J.fallback : w === null ? null : J.format ? J.format(w) : w;
18073
18073
  }
18074
18074
  const me = {
18075
18075
  get: Je,
18076
- getJson: (O) => Je(O, {
18076
+ getJson: (F) => Je(F, {
18077
18077
  fallback: {},
18078
18078
  format: (J) => JSON.parse(J)
18079
18079
  }),
18080
- getNumber: (O) => Je(O, {
18080
+ getNumber: (F) => Je(F, {
18081
18081
  fallback: null,
18082
18082
  format: (J) => Number(J)
18083
18083
  }),
18084
18084
  set: localStorage.setItem,
18085
- setJson: (O, J) => {
18086
- localStorage.setItem(O, JSON.stringify(J));
18085
+ setJson: (F, J) => {
18086
+ localStorage.setItem(F, JSON.stringify(J));
18087
18087
  }
18088
- }, ft = "mf-reportreport-store", Qe = He(ft, () => {
18089
- const { business: O } = Y(Ie()), { flags: J } = Y(ke()), w = K([]), U = K([]), k = K(0), q = Ze(), P = Ae(() => w.value.filter((f) => f.editable)), N = Ae(() => w.value.filter((f) => !f.editable)), B = K(!1), Q = K(""), G = K(), V = K(), W = Ae(() => {
18088
+ }, ft = "mf-reportreport-store", Be = ke(ft, () => {
18089
+ const { business: F } = W(Ie()), { flags: J } = W(Ne()), w = X([]), q = X([]), k = X(0), U = Xe(), P = Ae(() => w.value.filter((f) => f.editable)), N = Ae(() => w.value.filter((f) => !f.editable)), B = X(!1), Q = X(""), V = X(), G = X(), Y = Ae(() => {
18090
18090
  const f = J.value.find(
18091
- (S) => S.key === Ye.report_portal_integration_custom_report
18091
+ (S) => S.key === We.report_portal_integration_custom_report
18092
18092
  );
18093
18093
  return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
18094
- }), ae = Ae(() => W.value === null ? !0 : W.value - P.value.length > 0);
18095
- async function se() {
18096
- return V.value = await _t(), V.value;
18094
+ }), ne = Ae(() => Y.value === null ? !0 : Y.value - P.value.length > 0);
18095
+ async function oe() {
18096
+ return G.value = await _t(), G.value;
18097
18097
  }
18098
18098
  async function Z() {
18099
18099
  var f;
18100
18100
  try {
18101
- w.value = await nt(), U.value = await ct(), w.value.find((T) => T.id === Q.value) || (Q.value = ((f = w.value.find((T) => T.isDefault)) == null ? void 0 : f.id) || w.value[0].id);
18101
+ w.value = await nt(), q.value = await ct(), w.value.find((T) => T.id === Q.value) || (Q.value = ((f = w.value.find((T) => T.isDefault)) == null ? void 0 : f.id) || w.value[0].id);
18102
18102
  } catch (S) {
18103
- console.log(S), q.open({
18103
+ console.log(S), U.open({
18104
18104
  title: "Report Fetch Error",
18105
18105
  message: "Internal Server Error",
18106
18106
  type: "error"
18107
18107
  });
18108
18108
  }
18109
18109
  }
18110
- const ee = Ae(
18110
+ const se = Ae(
18111
18111
  () => w.value.find((f) => f.id === Q.value)
18112
- ), de = K(), ie = K(0), ne = K(), le = K(!1), _e = K(!1), ue = K(!1);
18113
- async function oe(f) {
18112
+ ), fe = X(), re = X(0), ie = X(), le = X(!1), _e = X(!1), ue = X(!1);
18113
+ async function ae(f) {
18114
18114
  if (P.value.findIndex((T) => T.id === f.id) >= 0) {
18115
18115
  const T = await at(f);
18116
18116
  Q.value = T.id;
@@ -18120,7 +18120,7 @@ const me = {
18120
18120
  }
18121
18121
  await Z();
18122
18122
  }
18123
- async function ce(f) {
18123
+ async function de(f) {
18124
18124
  return await pt(f);
18125
18125
  }
18126
18126
  async function ye(f) {
@@ -18132,11 +18132,11 @@ const me = {
18132
18132
  function Te(f) {
18133
18133
  w.value.findIndex((T) => T.id === f) !== -1 && (Q.value = f);
18134
18134
  }
18135
- const $e = K(null);
18135
+ const $e = X(null);
18136
18136
  function ge() {
18137
18137
  var f;
18138
- if ((f = O.value) != null && f._id) {
18139
- const S = me.getJson("pinReport")[O.value._id];
18138
+ if ((f = F.value) != null && f._id) {
18139
+ const S = me.getJson("pinReport")[F.value._id];
18140
18140
  if ((S == null ? void 0 : S.length) > 0) {
18141
18141
  $e.value = S;
18142
18142
  return;
@@ -18146,30 +18146,30 @@ const me = {
18146
18146
  }
18147
18147
  function j(f) {
18148
18148
  var S;
18149
- if (O.value && f) {
18149
+ if (F.value && f) {
18150
18150
  const T = me.getJson("pinReport");
18151
- T[(S = O.value) == null ? void 0 : S._id] ? T[O.value._id].push(f.id) : T[O.value._id] = [f.id], me.setJson("pinReport", T), ge();
18151
+ T[(S = F.value) == null ? void 0 : S._id] ? T[F.value._id].push(f.id) : T[F.value._id] = [f.id], me.setJson("pinReport", T), ge();
18152
18152
  }
18153
18153
  }
18154
18154
  function t(f) {
18155
- if (O.value) {
18155
+ if (F.value) {
18156
18156
  const S = me.getJson("pinReport");
18157
- S[O.value._id].length === 1 ? S[O.value._id] = [] : S[O.value._id] = S[O.value._id].filter(
18157
+ S[F.value._id].length === 1 ? S[F.value._id] = [] : S[F.value._id] = S[F.value._id].filter(
18158
18158
  (T) => T !== f
18159
18159
  ), me.setJson("pinReport", S), ge();
18160
18160
  }
18161
18161
  }
18162
18162
  function o() {
18163
- if (O.value) {
18163
+ if (F.value) {
18164
18164
  const f = me.getJson("feedback");
18165
- if (!f[O.value._id])
18166
- f[O.value._id] = {
18167
- date: fe().local().format("YYYY-MM-DD"),
18165
+ if (!f[F.value._id])
18166
+ f[F.value._id] = {
18167
+ date: pe().local().format("YYYY-MM-DD"),
18168
18168
  feedback: !1
18169
18169
  };
18170
18170
  else {
18171
- const S = fe(f[O.value._id].date).local();
18172
- Math.abs(S.diff(fe().endOf("day").local(), "d")) >= 1 && !f[O.value._id].feedback && (_e.value = !0);
18171
+ const S = pe(f[F.value._id].date).local();
18172
+ Math.abs(S.diff(pe().endOf("day").local(), "d")) >= 1 && !f[F.value._id].feedback && (_e.value = !0);
18173
18173
  }
18174
18174
  me.setJson("feedback", f);
18175
18175
  }
@@ -18181,37 +18181,37 @@ const me = {
18181
18181
  isOpenDownloadDialog: le,
18182
18182
  isOpenFeedbackDialog: _e,
18183
18183
  isOpenEmailDialog: ue,
18184
- currentSelectWidgetType: G,
18184
+ currentSelectWidgetType: V,
18185
18185
  reports: w,
18186
- categories: U,
18187
- currentReport: ee,
18188
- editingReport: de,
18189
- editingIndex: ie,
18190
- editingTile: ne,
18186
+ categories: q,
18187
+ currentReport: se,
18188
+ editingReport: fe,
18189
+ editingIndex: re,
18190
+ editingTile: ie,
18191
18191
  currentReportId: Q,
18192
18192
  editableReports: P,
18193
18193
  nonEditableReports: N,
18194
18194
  isOpenAddReportDialog: B,
18195
- overviewReport: V,
18195
+ overviewReport: G,
18196
18196
  pinReport: $e,
18197
18197
  scrollPositionY: k,
18198
- customReportQuota: W,
18199
- canCreateCustomReport: ae,
18200
- createOrUpdateReport: oe,
18198
+ customReportQuota: Y,
18199
+ canCreateCustomReport: ne,
18200
+ createOrUpdateReport: ae,
18201
18201
  removeReport: ye,
18202
18202
  updateCurrentReportId: Te,
18203
18203
  getReports: Z,
18204
18204
  updateDefaultReport: he,
18205
18205
  checkFeedback: o,
18206
- getOverviewReport: se,
18206
+ getOverviewReport: oe,
18207
18207
  refreshPinReport: ge,
18208
18208
  cachePinReport: j,
18209
18209
  clearPinReport: t,
18210
18210
  getReportConfig: u,
18211
- submitFeedback: ce
18211
+ submitFeedback: de
18212
18212
  };
18213
- }), yt = "mf-reportnavigation", Ve = He(yt, () => {
18214
- const { disabled: O } = Y(je()), { isIntegrationWhitelist: J } = Y(ke()), w = K("v5"), U = Ae(() => {
18213
+ }), yt = "mf-reportnavigation", Qe = ke(yt, () => {
18214
+ const { disabled: F } = W(Ye()), { isIntegrationWhitelist: J } = W(Ne()), w = X("v5"), q = Ae(() => {
18215
18215
  const N = [
18216
18216
  {
18217
18217
  label: "overview",
@@ -18227,7 +18227,7 @@ const me = {
18227
18227
  label: "insight",
18228
18228
  value: "insight",
18229
18229
  route: "insights",
18230
- badge: () => Ke(et.FmPill, { variant: "beta" })
18230
+ badge: () => ze(Ze.FmPill, { variant: "beta" })
18231
18231
  },
18232
18232
  {
18233
18233
  label: "setting",
@@ -18235,12 +18235,12 @@ const me = {
18235
18235
  route: "setting"
18236
18236
  }
18237
18237
  ];
18238
- return !O.value && J.value && N.push({
18238
+ return !F.value && J.value && N.push({
18239
18239
  label: "integration",
18240
18240
  value: "integration",
18241
18241
  route: "integrations"
18242
18242
  }), N;
18243
- }), k = K(""), { currentRoute: q } = tt();
18243
+ }), k = X(""), { currentRoute: U } = et();
18244
18244
  function P(N) {
18245
18245
  switch (N.name) {
18246
18246
  case "report":
@@ -18262,25 +18262,35 @@ const me = {
18262
18262
  break;
18263
18263
  }
18264
18264
  }
18265
- return Xe(
18266
- q,
18265
+ return Ke(
18266
+ U,
18267
18267
  (N) => {
18268
18268
  P(N);
18269
18269
  },
18270
18270
  { immediate: !0 }
18271
18271
  ), {
18272
18272
  selectedNavigationTab: k,
18273
- navigationTabs: U,
18273
+ navigationTabs: q,
18274
18274
  version: w
18275
18275
  };
18276
18276
  });
18277
- var Ge = /* @__PURE__ */ ((O) => (O.generating = "GENERATING", O.completed = "COMPLETED", O.failed = "FAILED", O.canceled = "CANCELLED", O))(Ge || {});
18278
- fe.extend(ze);
18279
- const Ct = async (O, J) => {
18280
- var ae, se, Z, ee;
18281
- const { businessId: w, country: U } = Y(te()), {
18277
+ var Ve = /* @__PURE__ */ ((F) => (F.generating = "GENERATING", F.completed = "COMPLETED", F.failed = "FAILED", F.canceled = "CANCELLED", F))(Ve || {});
18278
+ pe.extend(je);
18279
+ async function $t(F, J) {
18280
+ for (let w = 0; w < F.length; w++)
18281
+ try {
18282
+ return await F[w]();
18283
+ } catch (q) {
18284
+ if (w === F.length - 1) throw q;
18285
+ await new Promise((k) => setTimeout(k, J));
18286
+ }
18287
+ throw new Error("All callbacks failed");
18288
+ }
18289
+ const bt = async (F, J) => {
18290
+ var Y, ne, oe, Z;
18291
+ const { businessId: w, country: q } = W(ee()), {
18282
18292
  selectedRestaurantIds: k,
18283
- selectedWarehouseIds: q,
18293
+ selectedWarehouseIds: U,
18284
18294
  selectedLocationIds: P,
18285
18295
  dateRange: N,
18286
18296
  compareDateRange: B,
@@ -18288,202 +18298,199 @@ const Ct = async (O, J) => {
18288
18298
  } = Ie();
18289
18299
  if (P.length === 0)
18290
18300
  return null;
18291
- const G = {
18292
- fetchType: re.Post,
18301
+ const V = {
18302
+ fetchType: te.Post,
18293
18303
  url: `/${w.value}/postgres-query`,
18294
18304
  data: Me.getQueryRequests({
18295
- widget: O,
18305
+ widget: F,
18296
18306
  dateRange: [N.startDate, N.endDate],
18297
18307
  compareDateRange: B.startDate && B.endDate ? [B.startDate, B.endDate] : void 0,
18298
18308
  timeRange: [
18299
- fe().set("hour", Number((ae = Q.start) == null ? void 0 : ae.hour)).set("minute", Number((se = Q.start) == null ? void 0 : se.minute)).toISOString(),
18300
- fe().set("hour", Number((Z = Q.end) == null ? void 0 : Z.hour)).set("minute", Number((ee = Q.end) == null ? void 0 : ee.minute)).toISOString()
18309
+ pe().set("hour", Number((Y = Q.start) == null ? void 0 : Y.hour)).set("minute", Number((ne = Q.start) == null ? void 0 : ne.minute)).toISOString(),
18310
+ pe().set("hour", Number((oe = Q.end) == null ? void 0 : oe.hour)).set("minute", Number((Z = Q.end) == null ? void 0 : Z.minute)).toISOString()
18301
18311
  ],
18302
18312
  businessIds: w.value ? [w.value] : [],
18303
18313
  restaurantIds: k,
18304
- warehouseIds: q
18314
+ warehouseIds: U
18305
18315
  }),
18306
18316
  requestConfig: {
18307
18317
  timeout: 1e3 * 60 * 5,
18308
18318
  signal: J
18309
18319
  }
18310
- };
18311
- let V, W = [];
18312
- try {
18313
- W = await X.fetch(G), V = Pe.formatChartData({
18314
- responses: W,
18315
- widget: O,
18316
- country: U.value
18317
- });
18318
- } catch (de) {
18319
- console.log(de), G.url = G.url.replace("postgres-query", "query"), W = await X.fetch(G), V = Pe.formatChartData({
18320
- responses: W,
18321
- widget: O,
18322
- country: U.value
18323
- });
18324
- }
18325
- return V;
18326
- }, bt = async (O, J) => {
18327
- const { businessId: w } = Y(te()), { selectedRestaurantIds: U, selectedWarehouseIds: k, dateRange: q, timeRange: P } = Ie(), { currentReport: N, overviewReport: B } = Qe(), { selectedNavigationTab: Q } = Ve();
18328
- let G = N == null ? void 0 : N.id, V = (N == null ? void 0 : N.tiles) ?? [];
18329
- Q === "overview" && B && (G = B == null ? void 0 : B.id, V = (B == null ? void 0 : B.tiles) ?? []);
18330
- const W = V.filter((ne, le) => typeof J == "number" ? le === J : !0).map((ne) => ne.widget), ae = {
18331
- fetchType: re.Post,
18320
+ }, G = await $t(
18321
+ [
18322
+ () => K.fetch(V),
18323
+ () => K.fetch(V),
18324
+ () => (V.url = V.url.replace("postgres-query", "query"), K.fetch(V))
18325
+ ],
18326
+ 1e3
18327
+ );
18328
+ return tt.formatChartData({
18329
+ responses: G,
18330
+ widget: F,
18331
+ country: q.value
18332
+ });
18333
+ }, Rt = async (F, J) => {
18334
+ const { businessId: w } = W(ee()), { selectedRestaurantIds: q, selectedWarehouseIds: k, dateRange: U, timeRange: P } = Ie(), { currentReport: N, overviewReport: B } = Be(), { selectedNavigationTab: Q } = Qe();
18335
+ let V = N == null ? void 0 : N.id, G = (N == null ? void 0 : N.tiles) ?? [];
18336
+ Q === "overview" && B && (V = B == null ? void 0 : B.id, G = (B == null ? void 0 : B.tiles) ?? []);
18337
+ const Y = G.filter((ie, le) => typeof J == "number" ? le === J : !0).map((ie) => ie.widget), ne = {
18338
+ fetchType: te.Post,
18332
18339
  url: `/${w.value}/file`,
18333
18340
  data: {
18334
18341
  configs: [
18335
- ...W.map((ne, le) => {
18336
- var _e, ue, oe, ce;
18342
+ ...Y.map((ie, le) => {
18343
+ var _e, ue, ae, de;
18337
18344
  return {
18338
18345
  requests: Me.getQueryRequests({
18339
- widget: ne,
18340
- dateRange: [q.startDate, q.endDate],
18346
+ widget: ie,
18347
+ dateRange: [U.startDate, U.endDate],
18341
18348
  // TODO: export with comparable data?
18342
18349
  // compareDateRange:
18343
18350
  // compareDateRange.start && compareDateRange.end
18344
18351
  // ? [compareDateRange.start.toUTC().toISO(), compareDateRange.end.toUTC().toISO()]
18345
18352
  // : undefined,
18346
18353
  timeRange: [
18347
- fe().set("hour", Number((_e = P.start) == null ? void 0 : _e.hour)).set("minute", Number((ue = P.start) == null ? void 0 : ue.minute)).toISOString(),
18348
- fe().set("hour", Number((oe = P.end) == null ? void 0 : oe.hour)).set("minute", Number((ce = P.end) == null ? void 0 : ce.minute)).toISOString()
18354
+ pe().set("hour", Number((_e = P.start) == null ? void 0 : _e.hour)).set("minute", Number((ue = P.start) == null ? void 0 : ue.minute)).toISOString(),
18355
+ pe().set("hour", Number((ae = P.end) == null ? void 0 : ae.hour)).set("minute", Number((de = P.end) == null ? void 0 : de.minute)).toISOString()
18349
18356
  ],
18350
18357
  businessIds: w ? [w.value] : [],
18351
- restaurantIds: U,
18358
+ restaurantIds: q,
18352
18359
  warehouseIds: k
18353
18360
  }),
18354
18361
  index: J || le,
18355
- showLabel: ne.config.showLabel,
18362
+ showLabel: ie.config.showLabel,
18356
18363
  drillDimension: null
18357
18364
  };
18358
18365
  })
18359
18366
  ],
18360
- reportId: G,
18361
- type: O
18367
+ reportId: V,
18368
+ type: F
18362
18369
  },
18363
18370
  requestConfig: {
18364
18371
  responseType: "arraybuffer",
18365
18372
  timeout: 1e3 * 60 * 3
18366
18373
  }
18367
- }, { headers: se, data: Z } = await X.rawFetch(ae), ee = se["content-disposition"].split("filename=")[1].replaceAll('"', ""), de = window.URL.createObjectURL(new Blob([new Uint8Array(Z).buffer])), ie = document.createElement("a");
18368
- ie.href = de, ie.setAttribute("download", decodeURIComponent(ee)), document.body.appendChild(ie), ie.click(), ie.remove();
18369
- }, Rt = async ({
18370
- emails: O,
18374
+ }, { headers: oe, data: Z } = await K.rawFetch(ne), se = oe["content-disposition"].split("filename=")[1].replaceAll('"', ""), fe = window.URL.createObjectURL(new Blob([new Uint8Array(Z).buffer])), re = document.createElement("a");
18375
+ re.href = fe, re.setAttribute("download", decodeURIComponent(se)), document.body.appendChild(re), re.click(), re.remove();
18376
+ }, Ft = async ({
18377
+ emails: F,
18371
18378
  types: J,
18372
18379
  dateRange: w,
18373
- timeRange: U,
18380
+ timeRange: q,
18374
18381
  locationIds: k
18375
18382
  }) => {
18376
- const { businessId: q } = Y(te()), { currentReport: P, overviewReport: N } = Qe(), { selectedNavigationTab: B } = Ve(), { restaurants: Q, warehouses: G } = Ie();
18377
- if (O.length === 0) {
18383
+ const { businessId: U } = W(ee()), { currentReport: P, overviewReport: N } = Be(), { selectedNavigationTab: B } = Qe(), { restaurants: Q, warehouses: V } = Ie();
18384
+ if (F.length === 0) {
18378
18385
  console.error("No email addresses provided.");
18379
18386
  return;
18380
18387
  }
18381
- let V = (P == null ? void 0 : P.id) || "", W = (P == null ? void 0 : P.name) || "", ae = (P == null ? void 0 : P.tiles) ?? [];
18382
- B === "overview" && N && (V = N == null ? void 0 : N.id, W = N.name, ae = (N == null ? void 0 : N.tiles) ?? []);
18383
- const se = ae.map((ee) => ee.widget), Z = {
18384
- businessId: q.value,
18385
- status: Ge.generating,
18388
+ let G = (P == null ? void 0 : P.id) || "", Y = (P == null ? void 0 : P.name) || "", ne = (P == null ? void 0 : P.tiles) ?? [];
18389
+ B === "overview" && N && (G = N == null ? void 0 : N.id, Y = N.name, ne = (N == null ? void 0 : N.tiles) ?? []);
18390
+ const oe = ne.map((se) => se.widget), Z = {
18391
+ businessId: U.value,
18392
+ status: Ve.generating,
18386
18393
  dateRange: {
18387
18394
  start: w.startDate,
18388
18395
  end: w.endDate
18389
18396
  },
18390
- reportName: W,
18391
- emails: O,
18392
- configs: se.map((ee, de) => {
18393
- var ie, ne, le, _e;
18397
+ reportName: Y,
18398
+ emails: F,
18399
+ configs: oe.map((se, fe) => {
18400
+ var re, ie, le, _e;
18394
18401
  return {
18395
18402
  requests: Me.getQueryRequests({
18396
- widget: ee,
18403
+ widget: se,
18397
18404
  dateRange: [w.startDate, w.endDate],
18398
18405
  timeRange: [
18399
- fe().hour(Number((ie = U.start) == null ? void 0 : ie.hour)).minute(Number((ne = U.start) == null ? void 0 : ne.minute)).toISOString(),
18400
- fe().hour(Number((le = U.end) == null ? void 0 : le.hour)).minute(Number((_e = U.end) == null ? void 0 : _e.minute)).toISOString()
18406
+ pe().hour(Number((re = q.start) == null ? void 0 : re.hour)).minute(Number((ie = q.start) == null ? void 0 : ie.minute)).toISOString(),
18407
+ pe().hour(Number((le = q.end) == null ? void 0 : le.hour)).minute(Number((_e = q.end) == null ? void 0 : _e.minute)).toISOString()
18401
18408
  ],
18402
- businessIds: q ? [q.value] : [],
18409
+ businessIds: U ? [U.value] : [],
18403
18410
  restaurantIds: k.filter(
18404
- (ue) => Q.find((oe) => oe.id === ue)
18411
+ (ue) => Q.find((ae) => ae.id === ue)
18405
18412
  ),
18406
18413
  warehouseIds: k.filter(
18407
- (ue) => G.find((oe) => oe.id === ue)
18414
+ (ue) => V.find((ae) => ae.id === ue)
18408
18415
  )
18409
18416
  }),
18410
- index: de,
18411
- showLabel: ee.config.showLabel,
18417
+ index: fe,
18418
+ showLabel: se.config.showLabel,
18412
18419
  drillDimension: null
18413
18420
  };
18414
18421
  }),
18415
- reportId: V,
18422
+ reportId: G,
18416
18423
  type: J
18417
18424
  };
18418
- await X.fetch({
18419
- fetchType: re.Post,
18420
- url: `/${q.value}/reports/email`,
18425
+ await K.fetch({
18426
+ fetchType: te.Post,
18427
+ url: `/${U.value}/reports/email`,
18421
18428
  data: Z,
18422
18429
  requestConfig: { timeout: 1e3 * 60 * 3 }
18423
18430
  });
18424
- }, Ft = async (O) => {
18425
- const { businessId: J } = Y(te());
18426
- await X.fetch({
18427
- fetchType: re.Post,
18431
+ }, Ot = async (F) => {
18432
+ const { businessId: J } = W(ee());
18433
+ await K.fetch({
18434
+ fetchType: te.Post,
18428
18435
  url: `/${J.value}/reports/resend-email`,
18429
- data: { jobId: O },
18436
+ data: { jobId: F },
18430
18437
  requestConfig: { timeout: 1e3 * 60 * 3 }
18431
18438
  });
18432
- }, Ot = async () => {
18433
- const { businessId: O } = Y(te());
18434
- return await X.fetch({
18435
- fetchType: re.Get,
18436
- url: `/${O.value}/reports/email-recipients`
18439
+ }, Lt = async () => {
18440
+ const { businessId: F } = W(ee());
18441
+ return await K.fetch({
18442
+ fetchType: te.Get,
18443
+ url: `/${F.value}/reports/email-recipients`
18437
18444
  });
18438
- }, Lt = async (O) => {
18439
- const { businessId: J } = Y(te());
18440
- await X.fetch({
18441
- fetchType: re.Post,
18445
+ }, vt = async (F) => {
18446
+ const { businessId: J } = W(ee());
18447
+ await K.fetch({
18448
+ fetchType: te.Post,
18442
18449
  url: `/${J.value}/reports/email-recipient/delete`,
18443
- data: { email: O }
18450
+ data: { email: F }
18444
18451
  });
18445
18452
  };
18446
18453
  let Ee;
18447
- const $t = new Uint8Array(16);
18448
- function gt() {
18454
+ const gt = new Uint8Array(16);
18455
+ function mt() {
18449
18456
  if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ee))
18450
18457
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
18451
- return Ee($t);
18458
+ return Ee(gt);
18452
18459
  }
18453
18460
  const z = [];
18454
- for (let O = 0; O < 256; ++O)
18455
- z.push((O + 256).toString(16).slice(1));
18456
- function mt(O, J = 0) {
18457
- return z[O[J + 0]] + z[O[J + 1]] + z[O[J + 2]] + z[O[J + 3]] + "-" + z[O[J + 4]] + z[O[J + 5]] + "-" + z[O[J + 6]] + z[O[J + 7]] + "-" + z[O[J + 8]] + z[O[J + 9]] + "-" + z[O[J + 10]] + z[O[J + 11]] + z[O[J + 12]] + z[O[J + 13]] + z[O[J + 14]] + z[O[J + 15]];
18461
+ for (let F = 0; F < 256; ++F)
18462
+ z.push((F + 256).toString(16).slice(1));
18463
+ function St(F, J = 0) {
18464
+ return z[F[J + 0]] + z[F[J + 1]] + z[F[J + 2]] + z[F[J + 3]] + "-" + z[F[J + 4]] + z[F[J + 5]] + "-" + z[F[J + 6]] + z[F[J + 7]] + "-" + z[F[J + 8]] + z[F[J + 9]] + "-" + z[F[J + 10]] + z[F[J + 11]] + z[F[J + 12]] + z[F[J + 13]] + z[F[J + 14]] + z[F[J + 15]];
18458
18465
  }
18459
- const St = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ne = {
18460
- randomUUID: St
18466
+ const ht = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pe = {
18467
+ randomUUID: ht
18461
18468
  };
18462
- function vt(O, J, w) {
18463
- if (Ne.randomUUID && !J && !O)
18464
- return Ne.randomUUID();
18465
- O = O || {};
18466
- const U = O.random || (O.rng || gt)();
18467
- if (U[6] = U[6] & 15 | 64, U[8] = U[8] & 63 | 128, J) {
18469
+ function Dt(F, J, w) {
18470
+ if (Pe.randomUUID && !J && !F)
18471
+ return Pe.randomUUID();
18472
+ F = F || {};
18473
+ const q = F.random || (F.rng || mt)();
18474
+ if (q[6] = q[6] & 15 | 64, q[8] = q[8] & 63 | 128, J) {
18468
18475
  w = w || 0;
18469
18476
  for (let k = 0; k < 16; ++k)
18470
- J[w + k] = U[k];
18477
+ J[w + k] = q[k];
18471
18478
  return J;
18472
18479
  }
18473
- return mt(U);
18480
+ return St(q);
18474
18481
  }
18475
18482
  export {
18476
18483
  it as R,
18477
18484
  rt as W,
18478
- Qe as a,
18479
- Ge as b,
18480
- Ot as c,
18481
- bt as d,
18482
- Lt as e,
18483
- Mt as g,
18484
- Ct as q,
18485
- Ft as r,
18486
- Rt as s,
18487
- Ve as u,
18488
- vt as v
18485
+ Be as a,
18486
+ Ve as b,
18487
+ Lt as c,
18488
+ Rt as d,
18489
+ vt as e,
18490
+ Ct as g,
18491
+ bt as q,
18492
+ Ot as r,
18493
+ Ft as s,
18494
+ Qe as u,
18495
+ Dt as v
18489
18496
  };