react-semaphor 0.1.589 → 0.1.591

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/analytics-protocol/index.js +254 -236
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/{aggregate-measure-field-BrkXsSJp.js → aggregate-measure-field-DHlDj0Pc.js} +2 -2
  6. package/dist/chunks/{assistant-chat-DBPa6sJU.js → assistant-chat-Cazikwyh.js} +13 -13
  7. package/dist/chunks/{bookmark-impact-B7pbMx2e.js → bookmark-impact-rWjQgk8h.js} +2 -2
  8. package/dist/chunks/{bookmark-state-Bn7k3ttp.js → bookmark-state-Bt_eQEqt.js} +569 -537
  9. package/dist/chunks/{card-filter-builder-CGM7ROM0.js → card-filter-builder-DFR-6Jpm.js} +929 -910
  10. package/dist/chunks/{comparison-window-caption-fqijZdVd.js → comparison-window-caption-CFaw-kIV.js} +6 -6
  11. package/dist/chunks/{dashboard-UXH3E31V.js → dashboard-DCh9hKnJ.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-CTFuSWH_.js → dashboard-briefing-launcher-ob8G1b58.js} +91 -91
  13. package/dist/chunks/{dashboard-controls-BcxWhOKw.js → dashboard-controls-Nszg0k1A.js} +64 -64
  14. package/dist/chunks/{dashboard-json-C-oBcKKC.js → dashboard-json-BpwnG23b.js} +4 -4
  15. package/dist/chunks/{dates-BunbHJH0.js → dates-BOLBSBpn.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-COjKc_Du.js → edit-dashboard-visual-BvM7br5P.js} +5501 -5475
  17. package/dist/chunks/filter-line-CYT7KIXb.js +133 -0
  18. package/dist/chunks/{filter-reach-copy-D5AmDHda.js → filter-reach-copy-By3r7O3G.js} +11 -11
  19. package/dist/chunks/filter-value-text-CFiIZWJP.js +153 -0
  20. package/dist/chunks/{index-dGxJTaP1.js → index-CsQYlwhU.js} +5 -5
  21. package/dist/chunks/{layout-grid-BG__sPkb.js → layout-grid-DoFIfQGd.js} +1 -1
  22. package/dist/chunks/{list-filter-Cb8i7N8f.js → list-filter-BeTQxjNy.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-SN0JUJVk.js → matrix-analytical-definition-CyWOwLmE.js} +202 -190
  24. package/dist/chunks/{matrix-member-presentation-DVBJR0MA.js → matrix-member-presentation-Bj2YcHAP.js} +1 -1
  25. package/dist/chunks/{matrix-operation-contract-JSmproo9.js → matrix-operation-contract-CAanJeCj.js} +60 -60
  26. package/dist/chunks/{metric-comparison-xE_J6hkg.js → metric-comparison-BeKnUD08.js} +27 -31
  27. package/dist/chunks/{paintbrush-C310xSuR.js → paintbrush-KeaU1L1a.js} +1 -1
  28. package/dist/chunks/{palette-Ci5P91Zb.js → palette-BcFJLeXB.js} +1 -1
  29. package/dist/chunks/{pivot-header-presentation-D-DfPAjb.js → pivot-header-presentation-gUxhdIdr.js} +1 -1
  30. package/dist/chunks/{pivot-result-contract-expectations-DbBahmgc.js → pivot-result-contract-expectations-BkMRCjzf.js} +111 -111
  31. package/dist/chunks/{pivot-result-identity-CUsMt_4r.js → pivot-result-identity-BKUjYO1u.js} +1 -1
  32. package/dist/chunks/raw-temporal-value-BzdgeDa7.js +454 -0
  33. package/dist/chunks/{report-preferences-dialog-DtuOcejh.js → report-preferences-dialog-ChXt8wCt.js} +13 -13
  34. package/dist/chunks/{report-runtime-context-CrOgmuxO.js → report-runtime-context-g4Zp_TU9.js} +1 -1
  35. package/dist/chunks/{resolve-dashboard-input-context-DFBIngUZ.js → resolve-dashboard-input-context-BlyFX8He.js} +5053 -4955
  36. package/dist/chunks/{save-BhhXfp4s.js → save-C9CZAk6V.js} +1 -1
  37. package/dist/chunks/{saved-dashboard-context-DKMTP9ib.js → saved-dashboard-context-BPSdH2jW.js} +7 -7
  38. package/dist/chunks/{selection-filter-compiler-DkIjp1yH.js → selection-filter-compiler-BclSpK3P.js} +1 -1
  39. package/dist/chunks/{semaphor-ready-indicator-HGEnCavj.js → semaphor-ready-indicator-BZUMCHRU.js} +28972 -28922
  40. package/dist/chunks/{shelf-drop-preview-context-DaCXCdMA.js → shelf-drop-preview-context-yJheoeTC.js} +5 -5
  41. package/dist/chunks/{stored-dashboard-CksluF2S.js → stored-dashboard-CxQl9g0l.js} +654 -658
  42. package/dist/chunks/{style-sheet-parts-CmXmKqGw.js → style-sheet-parts-DM_Mw_sm.js} +45 -42
  43. package/dist/chunks/{table-export-sheet-ClSgERQC.js → table-export-sheet-h7wm5TwP.js} +1 -1
  44. package/dist/chunks/{token-types-DTocOcwt.js → token-types-BB2ImFx6.js} +1 -1
  45. package/dist/chunks/{upload-DDYc1Qjj.js → upload-CMTCg47S.js} +1 -1
  46. package/dist/chunks/{validators-CrYXNnNE.js → validators-BlEWWX9O.js} +576 -562
  47. package/dist/chunks/{variable-draft-rbtGPvmX.js → variable-draft-OpYyaVCW.js} +4 -4
  48. package/dist/dashboard/index.js +2 -2
  49. package/dist/dashboard-authoring/index.js +1602 -1555
  50. package/dist/format-utils/index.js +14 -14
  51. package/dist/index.js +18 -18
  52. package/dist/report-runtime-context/index.js +1 -1
  53. package/dist/style.css +1 -1
  54. package/dist/surfboard/index.js +2 -2
  55. package/dist/types/components/surfboard/filter/types.d.ts +7 -5
  56. package/dist/types/index.js +5 -5
  57. package/dist/types/lib/dashboard-inputs/dashboard-date-comparison-plan.d.ts +0 -1
  58. package/dist/types/lib/dashboard-view-state/date-zoom.d.ts +2 -2
  59. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  60. package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +1 -1
  61. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +7 -0
  62. package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +2 -1
  63. package/dist/types/shared/analytics-protocol/relative-date/sentence.d.ts +81 -0
  64. package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +0 -9
  65. package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +23 -2
  66. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +20 -0
  67. package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +84 -0
  68. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +2 -0
  69. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +36 -36
  70. package/dist/types/shared/dashboard-authoring/filter-model/date-filter-default.d.ts +37 -0
  71. package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +1 -0
  72. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  73. package/dist/types/shared/format-utils/filter-line.d.ts +2 -0
  74. package/package.json +1 -1
  75. package/dist/chunks/filter-line-Dza3ee4w.js +0 -131
  76. package/dist/chunks/filter-value-text-DQw4v3nC.js +0 -146
  77. package/dist/chunks/raw-temporal-value-BnGCWJAL.js +0 -322
@@ -1,21 +1,21 @@
1
- import { M as Oe, z as K, y as qt, E as Bt, F as Wt, H as Ut, J as Vt, x as Ht, h as tt, j as pe, k as zt, o as Gt, b as Qt, d as Xt } from "./analytics-base-schemas-8wz9vqn_.js";
1
+ import { M as Ye, z as Z, y as Bt, E as Wt, F as Ut, H as Vt, J as Ht, x as zt, h as tt, j as pe, k as Gt, o as Qt, b as Xt, d as Kt } from "./analytics-base-schemas-8wz9vqn_.js";
2
2
  import { z as a } from "zod";
3
- function Kt(e) {
3
+ function Zt(e) {
4
4
  return typeof e == "string" || typeof e == "number" && Number.isFinite(e) || typeof e == "boolean";
5
5
  }
6
- function Zt(e) {
7
- return !Array.isArray(e) || e.length === 0 || e.length > Oe || !e.every(Kt) ? {
6
+ function Jt(e) {
7
+ return !Array.isArray(e) || e.length === 0 || e.length > Ye || !e.every(Zt) ? {
8
8
  ok: !1,
9
- error: `matchValues must be 1 to ${Oe} string, number or boolean values.`
9
+ error: `matchValues must be 1 to ${Ye} string, number or boolean values.`
10
10
  } : { ok: !0, values: e };
11
11
  }
12
- function Jt(e, t) {
13
- const i = e.map((n, o) => `${t[o]} ${ti(n)}`);
12
+ function ei(e, t) {
13
+ const i = e.map((n, o) => `${t[o]} ${ii(n)}`);
14
14
  return a.union(e, {
15
15
  errorMap: (n, o) => {
16
16
  if (n.code !== a.ZodIssueCode.invalid_union) return { message: o.defaultError };
17
17
  const s = n.path.length, r = o.data && typeof o.data == "object" && !Array.isArray(o.data) ? Object.keys(o.data) : [], l = n.unionErrors.map((p, f) => {
18
- const b = ei(e[f]);
18
+ const b = ti(e[f]);
19
19
  return { index: f, issues: p.issues, overlap: b ? r.filter((A) => b.includes(A)).length : 0 };
20
20
  }).filter(({ issues: p }) => !p.every((f) => f.code === a.ZodIssueCode.invalid_type && f.path.length === s)).filter(({ overlap: p }) => !r.length || p > 0);
21
21
  if (!l.length) {
@@ -34,17 +34,17 @@ function Jt(e, t) {
34
34
  }
35
35
  });
36
36
  }
37
- function ei(e) {
37
+ function ti(e) {
38
38
  let t = e;
39
39
  for (; t instanceof a.ZodEffects; ) t = t._def.schema;
40
40
  return t instanceof a.ZodObject ? Object.keys(t.shape) : void 0;
41
41
  }
42
- function ti(e) {
42
+ function ii(e) {
43
43
  let t = e;
44
44
  for (; t instanceof a.ZodEffects; ) t = t._def.schema;
45
45
  return t instanceof a.ZodObject ? `{ ${Object.entries(t.shape).map(([n, o]) => o.isOptional() ? `${n}?` : n).join(", ")} }` : "";
46
46
  }
47
- const ii = {
47
+ const ni = {
48
48
  minute: 5256e3,
49
49
  hour: 87600,
50
50
  day: 3650,
@@ -52,58 +52,65 @@ const ii = {
52
52
  month: 120,
53
53
  quarter: 40,
54
54
  year: 10
55
- }, E = a.enum(["day", "week", "month", "quarter", "year"]), ni = a.enum(["minute", "hour"]), ai = a.enum(["minute", "hour", "day", "week", "month", "quarter", "year"]), fe = a.number().int().positive(), Z = a.number().int(), D = {
55
+ }, N = a.enum(["day", "week", "month", "quarter", "year"]), ai = a.enum(["minute", "hour"]), si = a.enum(["minute", "hour", "day", "week", "month", "quarter", "year"]), fe = a.number().int().positive(), J = a.number().int(), D = {
56
56
  lastSubDay: a.object({
57
57
  mode: a.literal("last"),
58
58
  n: fe,
59
- unit: ni,
59
+ unit: ai,
60
60
  complete: a.literal(!1).optional(),
61
61
  relativeTo: a.literal("latest_data").optional()
62
62
  }),
63
63
  last: a.object({
64
64
  mode: a.literal("last"),
65
65
  n: fe,
66
- unit: E,
66
+ unit: N,
67
67
  complete: a.boolean().optional(),
68
68
  relativeTo: a.literal("latest_data").optional()
69
69
  }),
70
70
  this: a.object({
71
71
  mode: a.literal("this"),
72
- unit: E,
72
+ unit: N,
73
73
  toDate: a.boolean().optional(),
74
74
  boundary: a.enum(["first_day", "last_day"]).optional()
75
75
  }),
76
- previous: a.object({ mode: a.literal("previous"), unit: E }),
77
- between: a.object({ mode: a.literal("between"), unit: E, from: Z, to: Z })
76
+ previous: a.object({ mode: a.literal("previous"), unit: N }),
77
+ between: a.object({ mode: a.literal("between"), unit: N, from: J, to: J })
78
78
  }, he = {
79
79
  check: (e) => e.boundary === void 0 || e.unit === "month",
80
80
  message: 'A month boundary requires unit "month".'
81
81
  }, it = (e) => a.object({
82
82
  kind: a.literal("periods"),
83
- unit: E,
84
- from: Z,
85
- to: Z,
83
+ unit: N,
84
+ from: J,
85
+ to: J,
86
86
  toDate: a.boolean().optional(),
87
87
  anchor: a.union([a.enum(["now", "latest_data"]), e])
88
- }), nt = a.object({ lastComplete: E }), at = it(nt.strict()).strict(), B = {
88
+ }), nt = a.object({ lastComplete: N }), at = it(nt.strict()).strict(), W = {
89
89
  periods: it(nt),
90
90
  rolling: a.object({
91
91
  kind: a.literal("rolling"),
92
- unit: ai,
92
+ unit: si,
93
93
  n: fe,
94
94
  anchor: a.enum(["now", "latest_data"])
95
95
  }),
96
96
  monthDay: a.object({ kind: a.literal("monthDay"), day: a.enum(["first", "last"]) })
97
- };
98
- function si(e) {
99
- return e === "between" || e === "not between";
97
+ }, ri = { "<": "start", ">=": "start", "<=": "end", ">": "end" };
98
+ function st(e) {
99
+ return ri[e];
100
+ }
101
+ function ua(e, t) {
102
+ const i = st(e);
103
+ return i === "start" ? [t[0]] : i === "end" ? [t[1]] : [t[0], t[1]];
104
+ }
105
+ function oi(e, t) {
106
+ return e === "between" || e === "not between" ? !0 : st(e) ? !t || t.kind === "monthDay" || t.anchor !== "latest_data" : !1;
100
107
  }
101
108
  function F(e, t = {}) {
102
- const i = ri(e);
103
- if (!(!i || st(i, t)))
104
- return oi(i);
109
+ const i = di(e);
110
+ if (!(!i || rt(i, t)))
111
+ return li(i);
105
112
  }
106
- function st(e, t = {}) {
113
+ function rt(e, t = {}) {
107
114
  if (e.kind === "periods")
108
115
  return e.from > e.to ? { rule: "W1", message: `from (${e.from}) is after to (${e.to}).`, path: "from" } : e.toDate && e.to !== 0 ? { rule: "W2", message: `toDate needs to 0, not ${e.to}.`, path: "toDate" } : typeof e.anchor == "object" && e.to > 0 ? {
109
116
  rule: "W3",
@@ -113,14 +120,14 @@ function st(e, t = {}) {
113
120
  if (e.kind !== "rolling") return;
114
121
  if (!Number.isInteger(e.n) || e.n < 1)
115
122
  return { rule: "W4", message: `n (${e.n}) must be a whole number of at least 1.`, path: "n" };
116
- const i = ii[e.unit];
123
+ const i = ni[e.unit];
117
124
  if (t.authoring && e.n > i)
118
125
  return { rule: "limit", message: `At most ${i} ${e.unit}s (ten years).`, path: "n", max: i };
119
126
  }
120
- function ri(e) {
127
+ function di(e) {
121
128
  if (!e || typeof e != "object") return;
122
129
  if ("kind" in e) {
123
- for (const r of Object.values(B)) {
130
+ for (const r of Object.values(W)) {
124
131
  const l = r.safeParse(e);
125
132
  if (l.success) return l.data;
126
133
  }
@@ -145,7 +152,7 @@ function ri(e) {
145
152
  return { kind: "periods", unit: r, from: l, to: c, anchor: "now" };
146
153
  }
147
154
  }
148
- function oi(e) {
155
+ function li(e) {
149
156
  switch (e.kind) {
150
157
  case "periods": {
151
158
  const { unit: t, anchor: i } = e;
@@ -174,17 +181,17 @@ const y = (e, t, i, n) => {
174
181
  from: t,
175
182
  to: i,
176
183
  anchor: "now"
177
- }), j = (e, t) => ({
184
+ }), C = (e, t) => ({
178
185
  kind: "rolling",
179
186
  unit: e,
180
187
  n: t,
181
188
  anchor: "now"
182
- }), di = [
183
- y("last_30_minutes", "Last 30 minutes", "time", j("minute", 30)),
184
- y("last_1_hour", "Last 1 hour", "time", j("hour", 1)),
185
- y("last_4_hours", "Last 4 hours", "time", j("hour", 4)),
186
- y("last_12_hours", "Last 12 hours", "time", j("hour", 12)),
187
- y("last_24_hours", "Last 24 hours", "time", j("hour", 24)),
189
+ }), ui = [
190
+ y("last_30_minutes", "Last 30 minutes", "time", C("minute", 30)),
191
+ y("last_1_hour", "Last 1 hour", "time", C("hour", 1)),
192
+ y("last_4_hours", "Last 4 hours", "time", C("hour", 4)),
193
+ y("last_12_hours", "Last 12 hours", "time", C("hour", 12)),
194
+ y("last_24_hours", "Last 24 hours", "time", C("hour", 24)),
188
195
  y("today", "Today", "day", v("day", 0, 0)),
189
196
  y("yesterday", "Yesterday", "day", v("day", -1, -1)),
190
197
  y("first_day_of_month", "First day of the month", "day", { kind: "monthDay", day: "first" }),
@@ -216,7 +223,7 @@ const y = (e, t, i, n) => {
216
223
  anchor: { lastComplete: "month" }
217
224
  })
218
225
  ];
219
- function li(e, t) {
226
+ function ci(e, t) {
220
227
  return Le(e) === Le(t);
221
228
  }
222
229
  function Le(e) {
@@ -226,41 +233,41 @@ function Le(e) {
226
233
  );
227
234
  }
228
235
  function Pe(e) {
229
- const t = di.find((i) => rt(i.window, e));
236
+ const t = ui.find((i) => ot(i.window, e));
230
237
  return {
231
- label: t ? t.label : mi(e),
238
+ label: t ? t.label : fi(e),
232
239
  ...t ? { presetId: t.id } : {},
233
- definition: dt(e)
240
+ definition: lt(e)
234
241
  };
235
242
  }
236
- function ui(e, t) {
243
+ function mi(e, t) {
237
244
  const i = F(e), n = F(t);
238
- return i && n ? rt(i, n) : i || n ? !1 : li(e ?? null, t ?? null);
245
+ return i && n ? ot(i, n) : i || n ? !1 : ci(e ?? null, t ?? null);
239
246
  }
240
- function rt(e, t) {
247
+ function ot(e, t) {
241
248
  return JSON.stringify(e) === JSON.stringify(t);
242
249
  }
243
- const J = (e, t) => Math.abs(e) === 1 ? t : `${t}s`;
244
- function z(e, t) {
250
+ const M = (e, t) => Math.abs(e) === 1 ? t : `${t}s`;
251
+ function G(e, t) {
245
252
  if (e === 0) return t === "day" ? "today" : `this ${t}`;
246
253
  if (e === -1) return t === "day" ? "yesterday" : `last ${t}`;
247
254
  if (e === 1) return t === "day" ? "tomorrow" : `next ${t}`;
248
255
  const i = Math.abs(e);
249
- return e < 0 ? `${i} ${J(i, t)} ago` : `${i} ${J(i, t)} ahead`;
256
+ return e < 0 ? `${i} ${M(i, t)} ago` : `${i} ${M(i, t)} ahead`;
250
257
  }
251
- const oe = (e) => e.charAt(0).toUpperCase() + e.slice(1), ci = {
258
+ const oe = (e) => e.charAt(0).toUpperCase() + e.slice(1), pi = {
252
259
  day: "yesterday",
253
260
  week: "last week",
254
261
  month: "last month",
255
262
  quarter: "last quarter",
256
263
  year: "last year"
257
264
  };
258
- function ot(e) {
265
+ function dt(e) {
259
266
  return F({ kind: "periods", unit: e.unit, from: e.from, to: e.to, anchor: "now" });
260
267
  }
261
- function mi(e) {
268
+ function fi(e) {
262
269
  if (e.kind === "periods" && typeof e.anchor == "object")
263
- return `${Pe(ot(e)).label}, as of end of ${ci[e.anchor.lastComplete]}`;
270
+ return `${Pe(dt(e)).label}, as of end of ${pi[e.anchor.lastComplete]}`;
264
271
  if (e.kind !== "monthDay" && e.anchor === "latest_data") {
265
272
  const t = F({ ...e, anchor: "now" });
266
273
  return `${Pe(t).label} of data`;
@@ -269,42 +276,47 @@ function mi(e) {
269
276
  case "monthDay":
270
277
  return e.day === "first" ? "First day of the month" : "Last day of the month";
271
278
  case "rolling":
272
- return `Last ${e.n} ${J(e.n, e.unit)}`;
279
+ return `Last ${e.n} ${M(e.n, e.unit)}`;
273
280
  case "periods": {
274
281
  const { unit: t, from: i, to: n } = e;
275
- return e.toDate ? i === 0 ? `This ${t} to date` : `${oe(z(i, t))} to date` : n === -1 && i <= -2 ? `Last ${-i} ${J(-i, t)}` : i === n ? oe(z(i, t)) : `${oe(z(i, t))} to ${z(n, t)}`;
282
+ if (e.toDate)
283
+ return i === 0 ? `This ${t} to date` : `${oe(G(i, t))} to date`;
284
+ if (n === -1 && i <= -2) return `Last ${-i} ${M(-i, t)}`;
285
+ if (i === n) return oe(G(i, t));
286
+ const o = t === "day" ? "today" : `this ${t}`;
287
+ return n === 0 && i < 0 ? `Last ${1 - i} ${M(1 - i, t)}, including ${o}` : i === 1 && n >= 2 ? `Next ${n} ${M(n, t)}` : i === 0 && n > 0 ? `Next ${n + 1} ${M(n + 1, t)}, including ${o}` : `${oe(G(i, t))} to ${G(n, t)}`;
276
288
  }
277
289
  }
278
290
  }
279
- const O = (e, t) => `${e} ${t}${Math.abs(e) === 1 ? "" : "s"}`;
280
- function C(e, t) {
281
- return e === 0 ? `the current ${t}` : e < 0 ? `${O(-e, t)} before the current one` : `${O(e, t)} after the current one`;
291
+ const L = (e, t) => `${e} ${t}${Math.abs(e) === 1 ? "" : "s"}`;
292
+ function O(e, t) {
293
+ return e === 0 ? `the current ${t}` : e < 0 ? `${L(-e, t)} before the current one` : `${L(e, t)} after the current one`;
282
294
  }
283
- function dt(e) {
295
+ function lt(e) {
284
296
  switch (e.kind) {
285
297
  case "monthDay":
286
298
  return e.day === "first" ? "the first day of the current month" : "the last day of the current month";
287
299
  case "rolling": {
288
- const t = O(e.n, e.unit);
300
+ const t = L(e.n, e.unit);
289
301
  return e.anchor === "latest_data" ? `the last ${t}, up to the latest date in the data` : `the last ${t}, up to now`;
290
302
  }
291
303
  case "periods": {
292
304
  const { unit: t, from: i, to: n } = e;
293
305
  if (typeof e.anchor == "object") {
294
306
  const r = `the end of the last complete ${e.anchor.lastComplete}`;
295
- return e.toDate ? i === 0 ? `the current ${t} up to ${r}` : `from ${C(i, t)} up to ${r}` : `${dt(ot(e))}, as of ${r}`;
307
+ return e.toDate ? i === 0 ? `the current ${t} up to ${r}` : `from ${O(i, t)} up to ${r}` : `${lt(dt(e))}, as of ${r}`;
296
308
  }
297
309
  if (e.anchor === "latest_data" && n === -1)
298
- return `the ${O(-i, t)} before the ${t} of the latest date in the data, whole ${t}s only`;
310
+ return `the ${L(-i, t)} before the ${t} of the latest date in the data, whole ${t}s only`;
299
311
  const o = e.anchor === "latest_data" ? "the latest date in the data" : "now";
300
312
  if (e.toDate)
301
- return i === 0 ? `the current ${t} up to ${o}` : `from ${C(i, t)} up to ${o}`;
313
+ return i === 0 ? `the current ${t} up to ${o}` : `from ${O(i, t)} up to ${o}`;
302
314
  const s = e.anchor === "latest_data" ? ", counted from the latest date in the data" : "";
303
- return i === 0 && n === 0 ? `the whole current ${t}${s}` : i === -1 && n === -1 ? `the ${t} before the current one` : n === -1 ? `the ${O(-i, t)} before the current ${t}, whole ${t}s only` : i === n ? `${C(i, t)}${s}` : `from ${C(i, t)} through ${C(n, t)}${s}`;
315
+ return i === 0 && n === 0 ? `the whole current ${t}${s}` : i === -1 && n === -1 ? `the ${t} before the current one` : n === -1 ? `the ${L(-i, t)} before the current ${t}, whole ${t}s only` : i === n ? `${O(i, t)}${s}` : `from ${O(i, t)} through ${O(n, t)}${s}`;
304
316
  }
305
317
  }
306
318
  }
307
- const lt = "Not a relative date window", pi = a.union([
319
+ const ut = "Not a relative date window", hi = a.union([
308
320
  D.lastSubDay.strict(),
309
321
  D.last.strict(),
310
322
  D.this.strict().refine(he.check, {
@@ -314,98 +326,98 @@ const lt = "Not a relative date window", pi = a.union([
314
326
  D.previous.strict(),
315
327
  D.between.strict(),
316
328
  at,
317
- B.rolling.strict(),
318
- B.monthDay.strict()
329
+ W.rolling.strict(),
330
+ W.monthDay.strict()
319
331
  ]).transform((e, t) => {
320
332
  const i = F(e);
321
- return i || (t.addIssue({ code: a.ZodIssueCode.custom, message: lt }), a.NEVER);
322
- }), M = {
333
+ return i || (t.addIssue({ code: a.ZodIssueCode.custom, message: ut }), a.NEVER);
334
+ }), E = {
323
335
  periods: at,
324
- rolling: B.rolling.strict(),
325
- monthDay: B.monthDay.strict()
326
- }, da = a.union([M.periods, M.rolling, M.monthDay]).transform((e, t) => {
336
+ rolling: W.rolling.strict(),
337
+ monthDay: W.monthDay.strict()
338
+ }, ca = a.union([E.periods, E.rolling, E.monthDay]).transform((e, t) => {
327
339
  const i = F(e, { authoring: !0 });
328
- return i || (t.addIssue({ code: a.ZodIssueCode.custom, message: lt }), a.NEVER);
340
+ return i || (t.addIssue({ code: a.ZodIssueCode.custom, message: ut }), a.NEVER);
329
341
  });
330
- function G(e) {
342
+ function Q(e) {
331
343
  return e.kind === "absolute";
332
344
  }
333
- const Q = "Use { kind: 'periods', unit, from, to, anchor } for whole periods (the last 3 complete months: from -3, to -1; this month: from 0, to 0) or { kind: 'rolling', unit, n, anchor } for elapsed time.", fi = "Ask the user which.", Ie = /* @__PURE__ */ new Set(["minute", "hour"]);
334
- function la(e, t) {
345
+ const X = "Use { kind: 'periods', unit, from, to, anchor } for whole periods (the last 3 complete months: from -3, to -1; this month: from 0, to 0) or { kind: 'rolling', unit, n, anchor } for elapsed time.", gi = "Ask the user which.", Ie = /* @__PURE__ */ new Set(["minute", "hour"]);
346
+ function ma(e, t) {
335
347
  if (!e || !t) return e === t;
336
- if (G(e) || G(t)) {
337
- if (!G(e) || !G(t)) return !1;
348
+ if (Q(e) || Q(t)) {
349
+ if (!Q(e) || !Q(t)) return !1;
338
350
  const i = (n) => {
339
351
  var o;
340
352
  return (o = ne(n)) == null ? void 0 : o.getTime();
341
353
  };
342
354
  return i(e.start) === i(t.start) && i(e.end) === i(t.end);
343
355
  }
344
- return ui(e, t);
356
+ return mi(e, t);
345
357
  }
346
358
  function Se(e, t) {
347
- const i = ct(e, t);
348
- return i.ok ? i : { ok: !1, refusal: wi(i.problem, t) };
359
+ const i = mt(e, t);
360
+ return i.ok ? i : { ok: !1, refusal: Ai(i.problem, t) };
349
361
  }
350
- function ua(e, t, i) {
362
+ function pa(e, t, i) {
351
363
  const n = Se(e, t);
352
364
  if (!n.ok)
353
365
  return { ...n.refusal, message: `${n.refusal.message} It stays while ${i} is left out.` };
354
366
  }
355
- const hi = a.object({ kind: a.literal("absolute"), start: a.string(), end: a.string() }).strict(), gi = { kind: "monthDay", day: "first" };
356
- function ca(e) {
357
- const t = typeof e == "function" ? e : () => e, i = Jt(
358
- [M.periods, M.rolling, M.monthDay, hi],
367
+ const yi = a.object({ kind: a.literal("absolute"), start: a.string(), end: a.string() }).strict(), _i = { kind: "monthDay", day: "first" };
368
+ function fa(e) {
369
+ const t = typeof e == "function" ? e : () => e, i = ei(
370
+ [E.periods, E.rolling, E.monthDay, yi],
359
371
  ["periods window", "rolling window", "month day window", "absolute window"]
360
372
  );
361
373
  return a.preprocess((n, o) => {
362
374
  const s = Se(n, { use: t(o.path) });
363
375
  return s.ok ? s.window : (o.addIssue({
364
376
  code: a.ZodIssueCode.custom,
365
- message: ut(s.refusal),
377
+ message: ct(s.refusal),
366
378
  ...s.refusal.path ? { path: [s.refusal.path] } : {}
367
- }), gi);
379
+ }), _i);
368
380
  }, i);
369
381
  }
370
382
  const ge = " Fix: ";
371
- function ut(e) {
383
+ function ct(e) {
372
384
  return `${e.message}${ge}${e.fix}`;
373
385
  }
374
- function ma(e) {
386
+ function ha(e) {
375
387
  const t = e.indexOf(ge);
376
388
  return t > 0 ? { message: e.slice(0, t), fix: e.slice(t + ge.length) } : void 0;
377
389
  }
378
- function ct(e, t) {
390
+ function mt(e, t) {
379
391
  if (!e || typeof e != "object" || Array.isArray(e))
380
- return w("not_a_window", "timeWindow must be an object.", `Send a window. ${Q}`, []);
392
+ return w("not_a_window", "timeWindow must be an object.", `Send a window. ${X}`, []);
381
393
  const i = e;
382
394
  if ("value" in i || "completeness" in i || "period" in i || i.kind === "relative" || i.kind === "calendar")
383
- return w("old_form", "timeWindow uses the window form: kind periods or rolling, with an anchor.", Q, []);
384
- if (i.kind === "absolute") return yi(i, t);
395
+ return w("old_form", "timeWindow uses the window form: kind periods or rolling, with an anchor.", X, []);
396
+ if (i.kind === "absolute") return bi(i, t);
385
397
  const n = i.kind;
386
398
  if (n !== "periods" && n !== "rolling" && n !== "monthDay")
387
399
  return w(
388
400
  "not_a_window",
389
401
  `timeWindow kind must be periods, rolling, monthDay or absolute${n === void 0 ? "" : `, not ${JSON.stringify(n)}`}.`,
390
- Q,
402
+ X,
391
403
  [],
392
404
  "kind"
393
405
  );
394
- if (n !== "monthDay" && i.anchor === void 0) return _i(i, t);
395
- if (i.unit === "second") return bi(i);
396
- if (n === "periods" && typeof i.unit == "string" && Ie.has(i.unit)) return vi(i);
397
- const o = M[n].safeParse(i);
406
+ if (n !== "monthDay" && i.anchor === void 0) return vi(i, t);
407
+ if (i.unit === "second") return Ii(i);
408
+ if (n === "periods" && typeof i.unit == "string" && Ie.has(i.unit)) return Si(i);
409
+ const o = E[n].safeParse(i);
398
410
  if (!o.success) {
399
411
  const m = o.error.issues[0], u = m.path.join(".");
400
412
  return w(
401
413
  "not_a_window",
402
414
  `timeWindow ${u ? `${u}: ` : ""}${m.message}.`,
403
- `Send a ${n} window: ${Ai(n)}.`,
415
+ `Send a ${n} window: ${Di(n)}.`,
404
416
  [],
405
417
  u || void 0
406
418
  );
407
419
  }
408
- const s = o.data, r = st(s, { authoring: !0 });
420
+ const s = o.data, r = rt(s, { authoring: !0 });
409
421
  if (r) {
410
422
  if (r.rule === "limit" && s.kind === "rolling")
411
423
  return w(
@@ -416,14 +428,14 @@ function ct(e, t) {
416
428
  "n"
417
429
  );
418
430
  const m = r.rule === "W1" && s.kind === "periods" ? [{ ...s, from: s.to, to: s.from }] : [];
419
- return w("not_a_window", r.message, ki(r.rule), m, r.path);
431
+ return w("not_a_window", r.message, $i(r.rule), m, r.path);
420
432
  }
421
- const l = Ii(s, t);
433
+ const l = wi(s, t);
422
434
  if (l) return l;
423
435
  const c = F(s, { authoring: !0 });
424
- return c ? { ok: !0, window: c } : w("not_a_window", "timeWindow is not a window.", Q, []);
436
+ return c ? { ok: !0, window: c } : w("not_a_window", "timeWindow is not a window.", X, []);
425
437
  }
426
- function yi(e, t) {
438
+ function bi(e, t) {
427
439
  if (t.use === "filterDefault")
428
440
  return w(
429
441
  "absolute_default",
@@ -440,7 +452,7 @@ function yi(e, t) {
440
452
  i ? "end" : "start"
441
453
  ) : { ok: !0, window: { kind: "absolute", start: e.start, end: e.end } };
442
454
  }
443
- function _i(e, t) {
455
+ function vi(e, t) {
444
456
  const i = typeof e.unit == "string" ? e.unit : "month", n = [
445
457
  { anchor: "now", words: '"now" counts from the run' },
446
458
  ...t.use === "filterDefault" ? [] : [{ anchor: "latest_data", words: '"latest_data" from the newest row' }],
@@ -454,7 +466,7 @@ function _i(e, t) {
454
466
  "anchor"
455
467
  );
456
468
  }
457
- function bi(e) {
469
+ function Ii(e) {
458
470
  const t = typeof e.n == "number" ? e.n : 0, i = [.../* @__PURE__ */ new Set([Math.floor(t / 60), Math.ceil(t / 60)])].filter((n) => n >= 1);
459
471
  return w(
460
472
  "seconds",
@@ -464,7 +476,7 @@ function bi(e) {
464
476
  "unit"
465
477
  );
466
478
  }
467
- function vi(e) {
479
+ function Si(e) {
468
480
  const t = typeof e.from == "number" ? e.from : 0, n = (typeof e.to == "number" ? e.to : 0) - t + 1;
469
481
  return w(
470
482
  "sub_day_periods",
@@ -474,9 +486,9 @@ function vi(e) {
474
486
  "unit"
475
487
  );
476
488
  }
477
- function Ii(e, t) {
489
+ function wi(e, t) {
478
490
  if (!(t.use === "analysis" || e.kind === "monthDay")) {
479
- if (e.kind === "rolling" && !Ie.has(e.unit)) return Si(e);
491
+ if (e.kind === "rolling" && !Ie.has(e.unit)) return ki(e);
480
492
  if (e.kind === "rolling" && t.columnHasTime === !1)
481
493
  return w(
482
494
  "sub_day_on_date",
@@ -498,17 +510,17 @@ function Ii(e, t) {
498
510
  );
499
511
  }
500
512
  }
501
- function Si(e) {
513
+ function ki(e) {
502
514
  const t = e.unit, i = e.n === 1 ? `Choose the current ${t} so far, or the last complete ${t}.` : `Choose the current ${t} so far and the ${e.n - 1} before it, or the last ${e.n} complete ${t}s.`;
503
515
  return w("rolling_days_saved", `A saved card or default counts whole ${t}s.`, i, [
504
516
  { kind: "periods", unit: t, from: 1 - e.n, to: 0, anchor: e.anchor },
505
517
  { kind: "periods", unit: t, from: -e.n, to: -1, anchor: e.anchor }
506
518
  ]);
507
519
  }
508
- function wi(e, t) {
520
+ function Ai(e, t) {
509
521
  const i = [], n = /* @__PURE__ */ new Set(), o = [e.sentence], s = (m, u) => {
510
522
  for (const p of m) {
511
- const f = ct(p, t);
523
+ const f = mt(p, t);
512
524
  if (f.ok) {
513
525
  const b = JSON.stringify(p);
514
526
  n.has(b) || (n.add(b), i.push(p));
@@ -518,7 +530,7 @@ function wi(e, t) {
518
530
  s(e.repairs, 0);
519
531
  let r = o.join(" ");
520
532
  const l = i.some((m) => "unit" in m && Ie.has(String(m.unit)));
521
- t.use !== "analysis" && t.columnHasTime === void 0 && l && (r = `${r.replace(/\.$/, "")}, if the date field has a time of day.`), i.length > 1 && (r = `${r} ${fi}`);
533
+ t.use !== "analysis" && t.columnHasTime === void 0 && l && (r = `${r.replace(/\.$/, "")}, if the date field has a time of day.`), i.length > 1 && (r = `${r} ${gi}`);
522
534
  const c = i.length ? ` ${i.length > 1 ? "Send one of" : "Send"}: ${i.map((m) => JSON.stringify(m)).join("; ")}.` : "";
523
535
  return {
524
536
  reason: e.reason,
@@ -531,7 +543,7 @@ function wi(e, t) {
531
543
  function w(e, t, i, n, o) {
532
544
  return { ok: !1, problem: { reason: e, message: t, sentence: i, repairs: n, ...o ? { path: o } : {} } };
533
545
  }
534
- function ki(e) {
546
+ function $i(e) {
535
547
  switch (e) {
536
548
  case "W1":
537
549
  return "from must be at most to; -1 is the period before the anchor's.";
@@ -544,7 +556,7 @@ function ki(e) {
544
556
  return "n is a whole number of at least 1.";
545
557
  }
546
558
  }
547
- function Ai(e) {
559
+ function Di(e) {
548
560
  switch (e) {
549
561
  case "periods":
550
562
  return "{ kind: 'periods', unit: day | week | month | quarter | year, from, to, toDate?: true, anchor: 'now' | 'latest_data' | { lastComplete: unit } }";
@@ -560,16 +572,16 @@ function d(e, t, i) {
560
572
  function h(e) {
561
573
  return typeof e == "string" && e.trim().length > 0;
562
574
  }
563
- function $i(e) {
575
+ function xi(e) {
564
576
  const t = /* @__PURE__ */ new Set();
565
- return Di(e, (i) => (t.add(i), `{${i}}`)), Array.from(t);
577
+ return Fi(e, (i) => (t.add(i), `{${i}}`)), Array.from(t);
566
578
  }
567
- function Di(e, t) {
579
+ function Fi(e, t) {
568
580
  let i = "", n = 0, o = 0;
569
581
  for (; o < e.length; ) {
570
582
  const s = e[o];
571
583
  if (s === "'" || s === '"') {
572
- o = xi(e, o);
584
+ o = Mi(e, o);
573
585
  continue;
574
586
  }
575
587
  if (s === "{") {
@@ -586,7 +598,7 @@ function Di(e, t) {
586
598
  }
587
599
  return i + e.slice(n);
588
600
  }
589
- function xi(e, t) {
601
+ function Mi(e, t) {
590
602
  const i = e[t];
591
603
  let n = t + 1;
592
604
  for (; n < e.length; ) {
@@ -604,7 +616,7 @@ function xi(e, t) {
604
616
  function g(e) {
605
617
  return !!(e && typeof e == "object" && !Array.isArray(e));
606
618
  }
607
- const Fi = /* @__PURE__ */ new Set([
619
+ const Ei = /* @__PURE__ */ new Set([
608
620
  "SUM",
609
621
  "COUNT",
610
622
  "AVG",
@@ -682,7 +694,7 @@ function I(e, t, i, n = {}) {
682
694
  ), e.source !== void 0 && we(e.source, `${t}.source`, i), ke(e.aggregate, `${t}.aggregate`, i);
683
695
  }
684
696
  function ke(e, t, i) {
685
- e !== void 0 && (typeof e != "string" || !Fi.has(e)) && i.push(
697
+ e !== void 0 && (typeof e != "string" || !Ei.has(e)) && i.push(
686
698
  d(
687
699
  "invalid_aggregate",
688
700
  "Field aggregate must be SUM, COUNT, AVG, MIN, MAX, MEDIAN, or DISTINCT.",
@@ -690,13 +702,13 @@ function ke(e, t, i) {
690
702
  )
691
703
  );
692
704
  }
693
- const Mi = /* @__PURE__ */ new Set([
705
+ const Ni = /* @__PURE__ */ new Set([
694
706
  "measure",
695
707
  "dimension",
696
708
  "date",
697
709
  "id",
698
710
  "unknown"
699
- ]), Ei = /* @__PURE__ */ new Set(["row", "aggregate"]), Ni = /* @__PURE__ */ new Set([
711
+ ]), Ti = /* @__PURE__ */ new Set(["row", "aggregate"]), Ri = /* @__PURE__ */ new Set([
700
712
  "string",
701
713
  "number",
702
714
  "boolean",
@@ -704,7 +716,7 @@ const Mi = /* @__PURE__ */ new Set([
704
716
  "datetime",
705
717
  "unknown"
706
718
  ]);
707
- function Ti(e, t, i) {
719
+ function ji(e, t, i) {
708
720
  if (e === void 0)
709
721
  return;
710
722
  if (!g(e)) {
@@ -717,7 +729,7 @@ function Ti(e, t, i) {
717
729
  );
718
730
  return;
719
731
  }
720
- const n = (e.type === "temporal_bucket" ? K : qt).safeParse(e);
732
+ const n = (e.type === "temporal_bucket" ? Z : Bt).safeParse(e);
721
733
  if (n.success) return;
722
734
  const o = e.type === "temporal_bucket" ? "invalid_temporal_bucket_format" : "invalid_value_format";
723
735
  for (const s of n.error.issues)
@@ -729,20 +741,20 @@ function Ti(e, t, i) {
729
741
  )
730
742
  );
731
743
  }
732
- const Ri = /* @__PURE__ */ new Set([
744
+ const Ci = /* @__PURE__ */ new Set([
733
745
  "additive",
734
746
  "non_additive",
735
747
  "ratio_of_sums",
736
748
  "weighted",
737
749
  "pre_aggregated",
738
750
  "snapshot"
739
- ]), ji = /* @__PURE__ */ new Set([
751
+ ]), Oi = /* @__PURE__ */ new Set([
740
752
  "default",
741
753
  "symmetric_aggregate",
742
754
  "aggregate_then_join",
743
755
  "weighted"
744
756
  ]);
745
- function Ci(e, t, i) {
757
+ function Yi(e, t, i) {
746
758
  if (!e || !g(e)) {
747
759
  i.push(
748
760
  d(
@@ -792,19 +804,19 @@ function Ae(e) {
792
804
  "Derived field needs a label.",
793
805
  "label"
794
806
  )
795
- ), Mi.has(e.resultRole) || t.push(
807
+ ), Ni.has(e.resultRole) || t.push(
796
808
  d(
797
809
  "invalid_derived_field_role",
798
810
  "Derived field resultRole must be measure, dimension, date, id, or unknown.",
799
811
  "resultRole"
800
812
  )
801
- ), Ni.has(e.dataType) || t.push(
813
+ ), Ri.has(e.dataType) || t.push(
802
814
  d(
803
815
  "invalid_derived_field_data_type",
804
816
  "Derived field dataType must be string, number, boolean, date, datetime, or unknown.",
805
817
  "dataType"
806
818
  )
807
- ), Ei.has(e.computeStage) || t.push(
819
+ ), Ti.has(e.computeStage) || t.push(
808
820
  d(
809
821
  "invalid_derived_field_compute_stage",
810
822
  "Derived field computeStage must be row or aggregate.",
@@ -832,7 +844,7 @@ function Ae(e) {
832
844
  e.defaultAggregate,
833
845
  "defaultAggregate",
834
846
  t
835
- ), e.aggregationBehavior !== void 0 && !Ri.has(
847
+ ), e.aggregationBehavior !== void 0 && !Ci.has(
836
848
  e.aggregationBehavior
837
849
  ) && t.push(
838
850
  d(
@@ -840,7 +852,7 @@ function Ae(e) {
840
852
  "Derived field aggregationBehavior is not supported.",
841
853
  "aggregationBehavior"
842
854
  )
843
- ), e.aggregationStrategy !== void 0 && !ji.has(
855
+ ), e.aggregationStrategy !== void 0 && !Oi.has(
844
856
  e.aggregationStrategy
845
857
  ) && t.push(
846
858
  d(
@@ -877,13 +889,13 @@ function Ae(e) {
877
889
  );
878
890
  return;
879
891
  }
880
- Ci(
892
+ Yi(
881
893
  o,
882
894
  `inputs.${n}`,
883
895
  t
884
896
  );
885
897
  }), h(e.expression) && g(e.inputs)) {
886
- const n = $i(
898
+ const n = xi(
887
899
  e.expression
888
900
  ), o = new Set(n), s = Object.keys(e.inputs).filter(
889
901
  (r) => h(r)
@@ -913,7 +925,7 @@ function Ae(e) {
913
925
  "Derived field computation metadata cannot own temporal bucket presentation; declare grain and format on the grouped field.",
914
926
  "format"
915
927
  )
916
- ) : Ti(i, "format", t), e.tags !== void 0 && (!Array.isArray(e.tags) || e.tags.some((n) => !h(n))) && t.push(
928
+ ) : ji(i, "format", t), e.tags !== void 0 && (!Array.isArray(e.tags) || e.tags.some((n) => !h(n))) && t.push(
917
929
  d(
918
930
  "invalid_derived_field_tags",
919
931
  "Derived field tags must be non-empty strings.",
@@ -922,17 +934,17 @@ function Ae(e) {
922
934
  ), { ok: t.length === 0, errors: t, warnings: [] };
923
935
  }
924
936
  const Y = a.string().min(1).refine((e) => e.trim().length > 0, "Must not be blank."), $e = a.union([
925
- Bt.extend({ domainId: Y, datasetName: Y }).strict(),
926
- Wt.extend({ connectionId: Y, tableName: Y }).strict()
927
- ]), mt = Ut.extend({
937
+ Wt.extend({ domainId: Y, datasetName: Y }).strict(),
938
+ Ut.extend({ connectionId: Y, tableName: Y }).strict()
939
+ ]), pt = Vt.extend({
928
940
  name: Y,
929
941
  source: $e.optional()
930
- }).strict(), De = Vt.extend({
931
- format: Ht.optional(),
942
+ }).strict(), De = Ht.extend({
943
+ format: zt.optional(),
932
944
  inputs: a.record(
933
945
  a.object({
934
946
  kind: a.literal("field"),
935
- field: mt,
947
+ field: pt,
936
948
  aggregate: tt.optional()
937
949
  }).strict()
938
950
  )
@@ -944,18 +956,18 @@ const Y = a.string().min(1).refine((e) => e.trim().length > 0, "Must not be blan
944
956
  path: ((i = n.path) == null ? void 0 : i.split(".")) ?? [],
945
957
  message: n.message
946
958
  });
947
- }), Yi = mt.extend({
959
+ }), Li = pt.extend({
948
960
  derivedField: De.optional()
949
961
  }).strict();
950
962
  function xe(e) {
951
963
  return typeof e == "string" ? e.trim().toLowerCase() : "";
952
964
  }
953
- function Oi(e) {
965
+ function Pi(e) {
954
966
  return String(
955
967
  e.column_name || e.name || e.qualifiedFieldName || ""
956
968
  );
957
969
  }
958
- function Li(e) {
970
+ function qi(e) {
959
971
  return Array.from(
960
972
  new Set(
961
973
  [e.column_name, e.name, e.qualifiedFieldName, e.alias].filter(
@@ -965,8 +977,8 @@ function Li(e) {
965
977
  );
966
978
  }
967
979
  function Fe(e) {
968
- const t = ft(e);
969
- return t ? Wi(t) ? "number" : t.includes("timestamp") || t.includes("datetime") || t.startsWith("time") ? "datetime" : t.includes("date") ? "date" : t.includes("bool") ? "boolean" : "string" : "unknown";
980
+ const t = ht(e);
981
+ return t ? Vi(t) ? "number" : t.includes("timestamp") || t.includes("datetime") || t.startsWith("time") ? "datetime" : t.includes("date") ? "date" : t.includes("bool") ? "boolean" : "string" : "unknown";
970
982
  }
971
983
  const de = /* @__PURE__ */ new Map([
972
984
  // Integer families (PostgreSQL, ClickHouse, DuckDB, MySQL).
@@ -997,33 +1009,33 @@ const de = /* @__PURE__ */ new Map([
997
1009
  ["money", null],
998
1010
  ["currency", null],
999
1011
  ["percent", null]
1000
- ]), Pi = ["int", "uint", "decimal", "float"];
1001
- function qi(e) {
1012
+ ]), Bi = ["int", "uint", "decimal", "float"];
1013
+ function Wi(e) {
1002
1014
  return e.length > 0 && Array.from(e).every((t) => t >= "0" && t <= "9");
1003
1015
  }
1004
- function Bi(e) {
1016
+ function Ui(e) {
1005
1017
  var i;
1006
1018
  const t = (i = /^number\s*\(\s*\d+\s*,\s*(\d+)\s*\)$/.exec(e)) == null ? void 0 : i[1];
1007
1019
  return t === void 0 ? null : Number(t) === 0 ? "integer" : "decimal";
1008
1020
  }
1009
- function pt(e) {
1021
+ function ft(e) {
1010
1022
  const t = e.split(/[\s(]/, 1)[0] || "";
1011
1023
  if (t === "number")
1012
- return { numeric: !0, kind: Bi(e) };
1024
+ return { numeric: !0, kind: Ui(e) };
1013
1025
  if (de.has(t))
1014
1026
  return { numeric: !0, kind: de.get(t) ?? null };
1015
- const i = Pi.find(
1016
- (n) => t.startsWith(n) && qi(t.slice(n.length))
1027
+ const i = Bi.find(
1028
+ (n) => t.startsWith(n) && Wi(t.slice(n.length))
1017
1029
  );
1018
1030
  return i ? { numeric: !0, kind: de.get(i) ?? null } : { numeric: !1, kind: null };
1019
1031
  }
1020
- function Wi(e) {
1021
- return pt(e).numeric;
1032
+ function Vi(e) {
1033
+ return ft(e).numeric;
1022
1034
  }
1023
- function Ui(e) {
1024
- return pt(ft(e)).kind;
1035
+ function Hi(e) {
1036
+ return ft(ht(e)).kind;
1025
1037
  }
1026
- function ft(e) {
1038
+ function ht(e) {
1027
1039
  let t = xe(e), i = "";
1028
1040
  for (; t && t !== i; )
1029
1041
  i = t, t = qe(t, "nullable"), t = qe(t, "lowcardinality");
@@ -1033,47 +1045,47 @@ function qe(e, t) {
1033
1045
  const i = `${t}(`;
1034
1046
  return !e.startsWith(i) || !e.endsWith(")") ? e : e.slice(i.length, -1).trim();
1035
1047
  }
1036
- function Vi(e) {
1048
+ function zi(e) {
1037
1049
  const t = Fe(e);
1038
1050
  return t === "date" || t === "datetime";
1039
1051
  }
1040
- function ht(e) {
1041
- return Vi(e.dataType || e.data_type);
1042
- }
1043
1052
  function gt(e) {
1044
- const t = yt(e);
1053
+ return zi(e.dataType || e.data_type);
1054
+ }
1055
+ function yt(e) {
1056
+ const t = _t(e);
1045
1057
  return t === "id" || t === "row_id";
1046
1058
  }
1047
1059
  function Be(e) {
1048
- const t = yt(e);
1049
- return gt(e) || t.endsWith("_id") || t.endsWith("_key") || t.endsWith("_number");
1060
+ const t = _t(e);
1061
+ return yt(e) || t.endsWith("_id") || t.endsWith("_key") || t.endsWith("_number");
1050
1062
  }
1051
- function yt(e) {
1063
+ function _t(e) {
1052
1064
  return xe(
1053
- Oi(e) || e.name || e.alias
1065
+ Pi(e) || e.name || e.alias
1054
1066
  ).replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
1055
1067
  }
1056
- function _t(e, t = {}) {
1068
+ function bt(e, t = {}) {
1057
1069
  const i = xe(e.role);
1058
1070
  return i === "metric" || i === "measure" ? !t.excludeIdentifiers || !Be(e) : i === "groupby" || i === "dimension" || i === "date" || i === "id" ? !1 : Fe(
1059
1071
  e.dataType || e.data_type
1060
1072
  ) === "number" && (!t.excludeIdentifiers || !Be(e));
1061
1073
  }
1062
- function pa(e) {
1063
- return !_t(e) && !ht(e);
1074
+ function ga(e) {
1075
+ return !bt(e) && !gt(e);
1064
1076
  }
1065
- function fa(e) {
1077
+ function ya(e) {
1066
1078
  const t = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
1067
1079
  for (const o of e) {
1068
- if (gt(o))
1080
+ if (yt(o))
1069
1081
  continue;
1070
- const s = Li(o);
1082
+ const s = qi(o);
1071
1083
  if (s.length !== 0) {
1072
- if (ht(o)) {
1084
+ if (gt(o)) {
1073
1085
  s.forEach((r) => i.add(r));
1074
1086
  continue;
1075
1087
  }
1076
- if (_t(o, { excludeIdentifiers: !0 })) {
1088
+ if (bt(o, { excludeIdentifiers: !0 })) {
1077
1089
  s.forEach((r) => t.add(r));
1078
1090
  continue;
1079
1091
  }
@@ -1086,7 +1098,7 @@ function fa(e) {
1086
1098
  validDimensionCandidates: Array.from(n).sort()
1087
1099
  };
1088
1100
  }
1089
- const L = 16 * 1024;
1101
+ const P = 16 * 1024;
1090
1102
  function ee(e) {
1091
1103
  const t = /^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(e);
1092
1104
  return t ? {
@@ -1100,7 +1112,7 @@ function We(e) {
1100
1112
  const { sign: t, whole: i, fraction: n = "", exponent: o } = e, s = (i + n).replace(/^0+/, ""), r = s.replace(/0+$/, ""), l = o - n.length + s.length - r.length;
1101
1113
  return !Number.isSafeInteger(o) || !Number.isSafeInteger(l) ? null : r ? `${t === "-" ? "-" : ""}${r}e${l}` : "0";
1102
1114
  }
1103
- function ha(e) {
1115
+ function _a(e) {
1104
1116
  const t = ee(e);
1105
1117
  if (!t) return null;
1106
1118
  const i = t.sign === "+" ? e.slice(1) : e, n = Number(e);
@@ -1108,32 +1120,32 @@ function ha(e) {
1108
1120
  const o = We(t), s = ee(String(n));
1109
1121
  return o !== null && s !== null && o === We(s) ? n : i;
1110
1122
  }
1111
- function ga(e) {
1112
- if (e.length > L)
1123
+ function ba(e) {
1124
+ if (e.length > P)
1113
1125
  throw new RangeError("Exact numeric text exceeds 16 KiB.");
1114
1126
  const t = ee(e);
1115
1127
  if (!t) throw new TypeError("Expected finite decimal text.");
1116
1128
  const { sign: i, whole: n, fraction: o, exponent: s } = t, r = `${i}${n || "0"}${o ? `.${o}` : ""}`;
1117
- return W(`${r}e${s}`);
1129
+ return U(`${r}e${s}`);
1118
1130
  }
1119
- function W(e) {
1120
- if (e.length > L)
1131
+ function U(e) {
1132
+ if (e.length > P)
1121
1133
  throw new RangeError("Exact numeric text exceeds 16 KiB.");
1122
1134
  const t = ee(e);
1123
1135
  if (!t || t.whole === "" || t.fraction === "")
1124
1136
  throw new TypeError("Expected finite decimal text.");
1125
1137
  const { sign: i, whole: n, fraction: o = "", exponent: s } = t;
1126
- if (!Number.isSafeInteger(s) || Math.abs(s) > L)
1138
+ if (!Number.isSafeInteger(s) || Math.abs(s) > P)
1127
1139
  throw new RangeError("Exact numeric exponent exceeds the text budget.");
1128
1140
  const r = n + o, l = n.length + s;
1129
- if (Math.max(r.length, l) + Math.max(0, -l) + 3 > L)
1141
+ if (Math.max(r.length, l) + Math.max(0, -l) + 3 > P)
1130
1142
  throw new RangeError("Normalized exact numeric text exceeds 16 KiB.");
1131
1143
  let m;
1132
1144
  l <= 0 ? m = `0.${"0".repeat(-l)}${r}` : l >= r.length ? m = r + "0".repeat(l - r.length) : m = `${r.slice(0, l)}.${r.slice(l)}`;
1133
1145
  const [u, p = ""] = m.split("."), f = u.replace(/^0+(?=\d)/, ""), b = p.replace(/0+$/, ""), A = f + (b ? `.${b}` : "");
1134
1146
  return i === "-" && A !== "0" ? `-${A}` : A;
1135
1147
  }
1136
- function ya(e, t) {
1148
+ function va(e, t) {
1137
1149
  const i = e.startsWith("-"), n = t.startsWith("-");
1138
1150
  if (i !== n) return i ? -1 : 1;
1139
1151
  const [o, s = ""] = (i ? e.slice(1) : e).split("."), [r, l = ""] = (n ? t.slice(1) : t).split(".");
@@ -1144,43 +1156,43 @@ function ya(e, t) {
1144
1156
  }
1145
1157
  return c === 0 ? 0 : i ? -c : c;
1146
1158
  }
1147
- function _a(e, t) {
1159
+ function Ia(e, t) {
1148
1160
  if (typeof t == "number" && !Number.isFinite(t))
1149
1161
  throw new TypeError("Numeric scale must be finite.");
1150
- const i = [e, W(String(t))].map((s) => {
1162
+ const i = [e, U(String(t))].map((s) => {
1151
1163
  const [r, l = ""] = s.split(".");
1152
1164
  return { coefficient: BigInt(r + l), digits: l.length };
1153
1165
  }), n = i[0].coefficient * i[1].coefficient, o = i[0].digits + i[1].digits;
1154
- return W(`${n}e-${o}`);
1166
+ return U(`${n}e-${o}`);
1155
1167
  }
1156
- function Hi(e) {
1168
+ function Gi(e) {
1157
1169
  try {
1158
- return W(e) === e;
1170
+ return U(e) === e;
1159
1171
  } catch {
1160
1172
  return !1;
1161
1173
  }
1162
1174
  }
1163
- const bt = a.object({
1175
+ const vt = a.object({
1164
1176
  kind: a.literal("exact_number"),
1165
1177
  type: a.enum(["integer", "decimal"]),
1166
- value: a.string().max(L).refine(Hi, "Expected canonical decimal text.")
1178
+ value: a.string().max(P).refine(Gi, "Expected canonical decimal text.")
1167
1179
  }).strict().superRefine((e, t) => {
1168
1180
  e.type === "integer" && e.value.includes(".") && t.addIssue({ code: "custom", path: ["value"], message: "An integer cannot have fractional digits." });
1169
- }), zi = a.union([
1181
+ }), Qi = a.union([
1170
1182
  a.null(),
1171
1183
  a.string(),
1172
1184
  a.boolean(),
1173
1185
  a.number().finite(),
1174
- bt
1186
+ vt
1175
1187
  ]);
1176
- function Gi(e, t) {
1177
- return bt.parse({ kind: "exact_number", type: t, value: W(e) });
1188
+ function Xi(e, t) {
1189
+ return vt.parse({ kind: "exact_number", type: t, value: U(e) });
1178
1190
  }
1179
- function ba(e) {
1191
+ function Sa(e) {
1180
1192
  return typeof e == "object" && e !== null && "kind" in e && e.kind === "exact_number" && "type" in e && (e.type === "integer" || e.type === "decimal") && "value" in e && typeof e.value == "string";
1181
1193
  }
1182
- function va(e) {
1183
- const t = Ui(e.nativeDataType);
1194
+ function wa(e) {
1195
+ const t = Hi(e.nativeDataType);
1184
1196
  if (!t) throw new TypeError("Numeric result type is not established.");
1185
1197
  if (e.value === null) return null;
1186
1198
  if (t === "float") {
@@ -1190,12 +1202,12 @@ function va(e) {
1190
1202
  }
1191
1203
  if (e.exactText === void 0)
1192
1204
  throw new TypeError("Exact numeric sidecar is required; rounded result values cannot substitute.");
1193
- return Gi(e.exactText, t);
1205
+ return Xi(e.exactText, t);
1194
1206
  }
1195
- const Me = a.string().uuid(), Ee = a.enum(["rows", "columns"]), Ia = a.enum(["member", "subtotal", "grand_total", "others"]), Qi = a.discriminatedUnion("kind", [
1196
- a.object({ kind: a.literal("value"), value: zi }).strict(),
1207
+ const Me = a.string().uuid(), Ee = a.enum(["rows", "columns"]), ka = a.enum(["member", "subtotal", "grand_total", "others"]), Ki = a.discriminatedUnion("kind", [
1208
+ a.object({ kind: a.literal("value"), value: Qi }).strict(),
1197
1209
  a.object({ kind: a.literal("others"), rankingId: Me }).strict()
1198
- ]), N = a.array(a.object({ levelId: Me, member: Qi }).strict()).readonly().superRefine((e, t) => {
1210
+ ]), T = a.array(a.object({ levelId: Me, member: Ki }).strict()).readonly().superRefine((e, t) => {
1199
1211
  new Set(e.map((i) => i.levelId)).size !== e.length && t.addIssue({
1200
1212
  code: "custom",
1201
1213
  path: [],
@@ -1207,12 +1219,12 @@ const Me = a.string().uuid(), Ee = a.enum(["rows", "columns"]), Ia = a.enum(["me
1207
1219
  path: [],
1208
1220
  message: "Others is terminal."
1209
1221
  });
1210
- }), Sa = a.object({
1211
- rowPath: N,
1212
- columnPath: N,
1222
+ }), Aa = a.object({
1223
+ rowPath: T,
1224
+ columnPath: T,
1213
1225
  measureId: Me
1214
1226
  }).strict();
1215
- function vt(e) {
1227
+ function It(e) {
1216
1228
  return JSON.stringify(
1217
1229
  e.map(({ levelId: t, member: i }) => [
1218
1230
  t,
@@ -1220,11 +1232,11 @@ function vt(e) {
1220
1232
  ])
1221
1233
  );
1222
1234
  }
1223
- const ye = "SEMAPHOR_CALCULATED_FIELD", Xi = "calculated_fields";
1224
- function Ki(e) {
1235
+ const ye = "SEMAPHOR_CALCULATED_FIELD", Zi = "calculated_fields";
1236
+ function Ji(e) {
1225
1237
  return (e == null ? void 0 : e.sourceField) || (e == null ? void 0 : e.name) || "";
1226
1238
  }
1227
- const Zi = [
1239
+ const en = [
1228
1240
  // Day granularity formats
1229
1241
  "MM-DD-YYYY",
1230
1242
  "YYYY-MM-DD",
@@ -1259,16 +1271,16 @@ const Zi = [
1259
1271
  // Custom format
1260
1272
  "custom"
1261
1273
  ];
1262
- function wa(e) {
1274
+ function $a(e) {
1263
1275
  return e.role === "metric" && "expression" in e && !!e.expression;
1264
1276
  }
1265
- function ka(e) {
1277
+ function Da(e) {
1266
1278
  return !!e.expression;
1267
1279
  }
1268
- function Ji(e) {
1280
+ function tn(e) {
1269
1281
  return !!(e && (e.calculationRepresentation || e.expression || e.derivedField || e.calculatedFieldOrigin || e.calculatedFormula || _e(e)));
1270
1282
  }
1271
- function It(e) {
1283
+ function St(e) {
1272
1284
  var p, f, b;
1273
1285
  if (!e)
1274
1286
  return {
@@ -1279,8 +1291,8 @@ function It(e) {
1279
1291
  legacyManual: !1
1280
1292
  };
1281
1293
  const t = e.fieldScope === "domain" ? "domain" : "local", i = ((p = e.derivedField) == null ? void 0 : p.computeStage) || ((f = e.calculatedFormula) == null ? void 0 : f.computeStage), n = !e.calculatedFormula || Array.isArray(e.calculatedFormula.inputFields) && e.calculatedFormula.inputFields.every((A) => {
1282
- const Ye = A && Ki(A);
1283
- return typeof Ye == "string" && !!Ye.trim();
1294
+ const Oe = A && Ji(A);
1295
+ return typeof Oe == "string" && !!Oe.trim();
1284
1296
  }), o = typeof e.expression == "string" && !!e.expression.trim() && n, s = e.calculationRepresentation;
1285
1297
  if (e.derivedField || s === "typed-derived") {
1286
1298
  const A = e.derivedField !== void 0 && Ae(e.derivedField).ok;
@@ -1293,7 +1305,7 @@ function It(e) {
1293
1305
  legacyManual: !1
1294
1306
  };
1295
1307
  }
1296
- if (!(!!s || Ji(e)))
1308
+ if (!(!!s || tn(e)))
1297
1309
  return {
1298
1310
  representation: "physical",
1299
1311
  ownership: t,
@@ -1311,63 +1323,63 @@ function It(e) {
1311
1323
  legacyManual: m === "manual" && t === "local" && !l
1312
1324
  };
1313
1325
  }
1314
- function Aa(e) {
1326
+ function xa(e) {
1315
1327
  if (e.calculationRepresentation) return e;
1316
- const { representation: t } = It(e);
1328
+ const { representation: t } = St(e);
1317
1329
  return t === "physical" ? e : { ...e, calculationRepresentation: t };
1318
1330
  }
1319
- function $a(e) {
1320
- return It(e).computeStage;
1331
+ function Fa(e) {
1332
+ return St(e).computeStage;
1321
1333
  }
1322
- function Da(e, t) {
1334
+ function Ma(e, t) {
1323
1335
  return e === "aggregate" && t === "default";
1324
1336
  }
1325
- function xa(e) {
1337
+ function Ea(e) {
1326
1338
  var i, n;
1327
1339
  const t = e;
1328
1340
  return !!(t != null && t.expression && ((n = (i = t.calculatedFormula) == null ? void 0 : i.inputFields) != null && n.length));
1329
1341
  }
1330
- function Fa(e) {
1342
+ function Na(e) {
1331
1343
  return !!(e && (e.entityName === ye || e.entityId === ye));
1332
1344
  }
1333
1345
  function _e(e) {
1334
1346
  return e ? [e.entityName, e.entityId, e.qualifiedEntityName].some(
1335
- (t) => t === ye || t === Xi
1347
+ (t) => t === ye || t === Zi
1336
1348
  ) : !1;
1337
1349
  }
1338
- function en(e) {
1339
- const t = wt(e);
1350
+ function nn(e) {
1351
+ const t = kt(e);
1340
1352
  return t.length > 0 ? t.join(".") : void 0;
1341
1353
  }
1342
- function Ma(e) {
1343
- const t = en(
1354
+ function Ta(e) {
1355
+ const t = nn(
1344
1356
  e.qualifiedName
1345
1357
  ), i = (t == null ? void 0 : t.split(".")) || [];
1346
1358
  if (i.length === 0) return {};
1347
1359
  const n = {};
1348
1360
  let o = i.length - 1;
1349
1361
  for (let s = e.capabilities.prefixLevels.length - 1; s >= 0 && o >= 0; s -= 1, o -= 1)
1350
- an(
1362
+ rn(
1351
1363
  n,
1352
1364
  e.capabilities.prefixLevels[s],
1353
1365
  i[o]
1354
1366
  );
1355
1367
  return n;
1356
1368
  }
1357
- function Ea(e) {
1369
+ function Ra(e) {
1358
1370
  return !e.left.tableName || !e.right.tableName ? !1 : e.capabilities.prefixLevels.every((t) => {
1359
- const i = T(e.left, t), n = T(e.right, t);
1371
+ const i = R(e.left, t), n = R(e.right, t);
1360
1372
  return !i || !n || i === n;
1361
1373
  });
1362
1374
  }
1363
- function Na(e) {
1375
+ function ja(e) {
1364
1376
  return e.capabilities.prefixLevels.every((t) => {
1365
- const i = T(e.requested, t);
1366
- return i ? T(e.allowed, t) === i : !0;
1377
+ const i = R(e.requested, t);
1378
+ return i ? R(e.allowed, t) === i : !0;
1367
1379
  });
1368
1380
  }
1369
- function St(e, t = {}) {
1370
- const i = U(e), n = {
1381
+ function wt(e, t = {}) {
1382
+ const i = V(e), n = {
1371
1383
  connectionId: t.connectionId,
1372
1384
  connectionType: e,
1373
1385
  path: ["database", "schema", "table"],
@@ -1457,31 +1469,31 @@ const Ne = [
1457
1469
  "API",
1458
1470
  "none"
1459
1471
  ];
1460
- function Ta(e) {
1472
+ function Ca(e) {
1461
1473
  if (!e) return;
1462
1474
  const t = Ne.filter(
1463
- (i) => i !== "none" && St(i).dialect === e
1475
+ (i) => i !== "none" && wt(i).dialect === e
1464
1476
  );
1465
1477
  return t.length === 1 ? t[0] : void 0;
1466
1478
  }
1467
- const tn = {
1479
+ const an = {
1468
1480
  postgres: "PostgreSQL",
1469
1481
  sqlserver: "MSSQL"
1470
1482
  };
1471
- function Ra(e) {
1472
- const t = U(e);
1483
+ function Oa(e) {
1484
+ const t = V(e);
1473
1485
  if (t)
1474
1486
  return Ne.find(
1475
- (i) => U(i) === t
1476
- ) ?? tn[t];
1487
+ (i) => V(i) === t
1488
+ ) ?? an[t];
1477
1489
  }
1478
- function ja(e, t = {}) {
1479
- return nn(
1490
+ function Ya(e, t = {}) {
1491
+ return sn(
1480
1492
  e
1481
- ) ? St(e, t) : void 0;
1493
+ ) ? wt(e, t) : void 0;
1482
1494
  }
1483
- function nn(e) {
1484
- const t = U(e);
1495
+ function sn(e) {
1496
+ const t = V(e);
1485
1497
  if (t.includes("postgres")) return "postgres";
1486
1498
  if (t.includes("mysql")) return "mysql";
1487
1499
  if (t.includes("mssql") || t.includes("sqlserver"))
@@ -1492,8 +1504,8 @@ function nn(e) {
1492
1504
  if (t === "s3" || t === "api" || t === "googlesheets" || t === "fileupload" || t === "bigquery")
1493
1505
  return t;
1494
1506
  }
1495
- function Ca(e) {
1496
- const t = U(e);
1507
+ function La(e) {
1508
+ const t = V(e);
1497
1509
  switch (t) {
1498
1510
  case "mysql":
1499
1511
  case "bigquery":
@@ -1513,59 +1525,59 @@ function Ca(e) {
1513
1525
  return "unknown";
1514
1526
  }
1515
1527
  }
1516
- function Ya(e) {
1528
+ function Pa(e) {
1517
1529
  return e.capabilities.prefixLevels.every(
1518
- (t) => !!T(e.source, t)
1530
+ (t) => !!R(e.source, t)
1519
1531
  );
1520
1532
  }
1521
- function Oa(e) {
1522
- const t = e.quoteIdentifier ?? on;
1523
- return e.capabilities.prefixLevels.map((i) => T(e.source, i)).filter((i) => !!i).map((i) => t(i, e.capabilities.dialect)).join(".");
1533
+ function qa(e) {
1534
+ const t = e.quoteIdentifier ?? ln;
1535
+ return e.capabilities.prefixLevels.map((i) => R(e.source, i)).filter((i) => !!i).map((i) => t(i, e.capabilities.dialect)).join(".");
1524
1536
  }
1525
- function T(e, t) {
1537
+ function R(e, t) {
1526
1538
  return t === "database" ? e.databaseName : t === "schema" ? e.schemaName : e.tableName;
1527
1539
  }
1528
- function an(e, t, i) {
1540
+ function rn(e, t, i) {
1529
1541
  t === "database" ? e.databaseName = i : t === "schema" ? e.schemaName = i : e.tableName = i;
1530
1542
  }
1531
- const sn = [
1543
+ const on = [
1532
1544
  ['"', '"'],
1533
1545
  ["`", "`"],
1534
1546
  ["[", "]"]
1535
1547
  ];
1536
- function rn(e) {
1548
+ function dn(e) {
1537
1549
  const t = e.trim();
1538
- for (const [i, n] of sn)
1550
+ for (const [i, n] of on)
1539
1551
  if (t.length >= 2 && t.startsWith(i) && t.endsWith(n))
1540
1552
  return t.slice(1, -1).split(n + n).join(n);
1541
1553
  return t;
1542
1554
  }
1543
- function wt(e) {
1555
+ function kt(e) {
1544
1556
  const t = e == null ? void 0 : e.trim();
1545
1557
  if (!t) return [];
1546
- const i = t.split(".").map(rn);
1558
+ const i = t.split(".").map(dn);
1547
1559
  return i.some((n) => !n) ? [] : i;
1548
1560
  }
1549
- function La(e) {
1550
- const t = wt(e ?? void 0);
1561
+ function Ba(e) {
1562
+ const t = kt(e ?? void 0);
1551
1563
  return t[t.length - 1] || "";
1552
1564
  }
1553
- function on(e, t) {
1565
+ function ln(e, t) {
1554
1566
  return t === "mysql" || t === "bigquery" || t === "clickhouse" || t === "duckdb" ? `\`${e.replace(/`/g, "``")}\`` : t === "mssql" ? `[${e.replace(/]/g, "]]")}]` : `"${e.replace(/"/g, '""')}"`;
1555
1567
  }
1556
- function U(e) {
1568
+ function V(e) {
1557
1569
  if (typeof e != "string")
1558
1570
  return "";
1559
1571
  const t = [];
1560
1572
  for (const i of e.trim().toLowerCase())
1561
- dn(i) && t.push(i);
1573
+ un(i) && t.push(i);
1562
1574
  return t.join("");
1563
1575
  }
1564
- function dn(e) {
1576
+ function un(e) {
1565
1577
  const t = e.charCodeAt(0);
1566
1578
  return t >= 48 && t <= 57 || t >= 97 && t <= 122;
1567
1579
  }
1568
- const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotby", "detail"]), kt = a.enum([
1580
+ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotby", "detail"]), At = a.enum([
1569
1581
  "table",
1570
1582
  "view",
1571
1583
  "materialized view",
@@ -1577,7 +1589,7 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1577
1589
  ]), le = a.object({
1578
1590
  connectionId: k,
1579
1591
  connectionType: a.enum(Ne),
1580
- type: kt,
1592
+ type: At,
1581
1593
  name: k,
1582
1594
  // Grounded relationship plans retain semantic identity and display metadata.
1583
1595
  // SQL stays server-resolved; it is not accepted inside a join entity.
@@ -1611,14 +1623,14 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1611
1623
  dataType: k,
1612
1624
  entityId: k,
1613
1625
  entityName: k,
1614
- entityType: kt,
1626
+ entityType: At,
1615
1627
  alias: a.string().optional(),
1616
1628
  sourceField: a.string().optional(),
1617
1629
  source: $e.optional(),
1618
1630
  nativeDataType: a.string().optional(),
1619
1631
  description: a.string().optional(),
1620
1632
  qualifiedEntityName: a.string().optional(),
1621
- dateFormat: a.enum(Zi).optional(),
1633
+ dateFormat: a.enum(en).optional(),
1622
1634
  customFormat: a.string().optional(),
1623
1635
  granularity: pe.optional(),
1624
1636
  role: Ue.optional(),
@@ -1629,10 +1641,10 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1629
1641
  formatOrigin: a.enum(["semantic", "override"]).optional(),
1630
1642
  expression: a.string().optional(),
1631
1643
  derivedField: De.optional(),
1632
- format: K.optional(),
1644
+ format: Z.optional(),
1633
1645
  semanticTemporalPresentation: a.object({
1634
1646
  granularity: pe,
1635
- format: zt
1647
+ format: Gt
1636
1648
  }).strict().optional(),
1637
1649
  aggregate: tt.optional(),
1638
1650
  /** DG-D1: Automatic grain on a Group by date. */
@@ -1654,13 +1666,13 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1654
1666
  computeStage: a.enum(["row", "aggregate"]).optional()
1655
1667
  }).strict().optional()
1656
1668
  }).strict()
1657
- ), ln = a.union([
1669
+ ), cn = a.union([
1658
1670
  a.string(),
1659
1671
  a.number().finite(),
1660
1672
  a.boolean(),
1661
1673
  a.date(),
1662
1674
  a.null()
1663
- ]), un = a.object({
1675
+ ]), mn = a.object({
1664
1676
  id: k,
1665
1677
  field: te,
1666
1678
  operator: a.enum([
@@ -1682,11 +1694,11 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1682
1694
  "isNull",
1683
1695
  "isNotNull"
1684
1696
  ]),
1685
- value: a.union([ln, a.array(a.string()), a.array(a.number().finite())]),
1697
+ value: a.union([cn, a.array(a.string()), a.array(a.number().finite())]),
1686
1698
  label: a.string().optional(),
1687
- temporalBucket: Qt.optional(),
1688
- rawTemporal: Gt.optional(),
1689
- relativeMeta: pi.optional(),
1699
+ temporalBucket: Xt.optional(),
1700
+ rawTemporal: Qt.optional(),
1701
+ relativeMeta: hi.optional(),
1690
1702
  latestValue: a.literal(!0).optional(),
1691
1703
  latestValuePolicy: a.literal("snapshot").optional()
1692
1704
  }).strict().superRefine((e, t) => {
@@ -1695,10 +1707,10 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1695
1707
  code: "custom",
1696
1708
  path: ["value"],
1697
1709
  message: "Between requires two endpoints."
1698
- }), e.relativeMeta && !si(i) && t.addIssue({
1710
+ }), e.relativeMeta && !oi(i, F(e.relativeMeta)) && t.addIssue({
1699
1711
  code: "custom",
1700
1712
  path: ["relativeMeta"],
1701
- message: "A relative date requires between or not between."
1713
+ message: "A relative date runs under between, not between, <, <=, > or >=; a window counted from the newest row only under between or not between."
1702
1714
  }), e.latestValue) {
1703
1715
  const s = [e.field.nativeDataType, e.field.dataType].map((r) => Fe(r)).some((r) => r === "date" || r === "datetime");
1704
1716
  (i !== "=" || !s) && t.addIssue({
@@ -1712,15 +1724,15 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1712
1724
  path: ["value"],
1713
1725
  message: "Membership requires an array."
1714
1726
  });
1715
- }), At = a.lazy(
1727
+ }), $t = a.lazy(
1716
1728
  () => a.object({
1717
1729
  id: k,
1718
1730
  logicalOperator: a.enum(["AND", "OR"]),
1719
1731
  negate: a.boolean(),
1720
- conditions: a.array(un),
1721
- groups: a.array(At)
1732
+ conditions: a.array(mn),
1733
+ groups: a.array($t)
1722
1734
  }).strict()
1723
- ), cn = a.object({
1735
+ ), pn = a.object({
1724
1736
  baseEntity: le,
1725
1737
  joins: a.array(
1726
1738
  a.object({
@@ -1750,7 +1762,7 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1750
1762
  ).min(1)
1751
1763
  }).strict()
1752
1764
  )
1753
- }).strict(), S = a.string().uuid(), mn = a.string().min(1), pn = a.number().int().positive().max(Number.MAX_SAFE_INTEGER), fn = a.enum([
1765
+ }).strict(), S = a.string().uuid(), fn = a.string().min(1), hn = a.number().int().positive().max(Number.MAX_SAFE_INTEGER), gn = a.enum([
1754
1766
  "SUM",
1755
1767
  "COUNT",
1756
1768
  "DISTINCT",
@@ -1758,48 +1770,48 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1758
1770
  "MIN",
1759
1771
  "MAX",
1760
1772
  "MEDIAN"
1761
- ]), $t = Yi.omit({
1773
+ ]), Dt = Li.omit({
1762
1774
  aggregate: !0
1763
- }), hn = {
1775
+ }), yn = {
1764
1776
  id: S,
1765
- field: $t,
1777
+ field: Dt,
1766
1778
  grain: pe.optional()
1767
- }, be = a.object(hn).strict(), gn = a.object({
1779
+ }, be = a.object(yn).strict(), _n = a.object({
1768
1780
  id: S,
1769
1781
  kind: a.literal("aggregate"),
1770
- field: $t,
1771
- aggregate: fn
1772
- }).strict(), yn = a.object({
1782
+ field: Dt,
1783
+ aggregate: gn
1784
+ }).strict(), bn = a.object({
1773
1785
  id: S,
1774
1786
  kind: a.literal("calculated"),
1775
1787
  definition: De
1776
- }).strict(), Dt = a.discriminatedUnion("kind", [gn, yn]), _n = a.discriminatedUnion("kind", [
1788
+ }).strict(), xt = a.discriminatedUnion("kind", [_n, bn]), vn = a.discriminatedUnion("kind", [
1777
1789
  a.object({ kind: a.literal("member") }).strict(),
1778
1790
  a.object({
1779
1791
  kind: a.literal("measure"),
1780
1792
  measureId: S,
1781
- oppositePath: N
1793
+ oppositePath: T
1782
1794
  }).strict()
1783
- ]), bn = {
1795
+ ]), In = {
1784
1796
  axis: Ee,
1785
1797
  levelId: S,
1786
1798
  scope: a.discriminatedUnion("kind", [
1787
1799
  a.object({ kind: a.literal("level") }).strict(),
1788
- a.object({ kind: a.literal("branch"), parent: N }).strict()
1800
+ a.object({ kind: a.literal("branch"), parent: T }).strict()
1789
1801
  ]),
1790
- target: _n,
1802
+ target: vn,
1791
1803
  direction: a.enum(["asc", "desc"]),
1792
1804
  nulls: a.enum(["first", "last"])
1793
- }, xt = a.object(bn).strict(), vn = a.object({
1805
+ }, Ft = a.object(In).strict(), Sn = a.object({
1794
1806
  id: S,
1795
1807
  axis: Ee,
1796
1808
  levelId: S,
1797
1809
  direction: a.enum(["top", "bottom"]),
1798
- count: pn,
1810
+ count: hn,
1799
1811
  measureId: S,
1800
- oppositePath: N,
1812
+ oppositePath: T,
1801
1813
  others: a.boolean()
1802
- }).strict(), ue = a.number().finite(), In = a.object({
1814
+ }).strict(), ue = a.number().finite(), wn = a.object({
1803
1815
  id: S,
1804
1816
  axis: Ee,
1805
1817
  levelId: S,
@@ -1812,24 +1824,24 @@ const k = a.string().min(1), Ue = a.enum(["groupby", "metric", "sortby", "pivotb
1812
1824
  }).strict().superRefine((e, t) => {
1813
1825
  const i = e.operator === "between" || e.operator === "not between";
1814
1826
  i !== Array.isArray(e.value) ? _(t, ["value"], i ? "A range condition needs a low and a high bound." : "A comparison needs one number.") : i && e.value[0] > e.value[1] && _(t, ["value"], "The low bound must not exceed the high bound.");
1815
- }), Ft = a.object({
1827
+ }), Mt = a.object({
1816
1828
  source: $e,
1817
1829
  rows: a.array(be).min(1).readonly(),
1818
1830
  columns: a.array(be).readonly(),
1819
- measures: a.array(Dt).min(1).readonly(),
1820
- filters: At.optional(),
1821
- joinPlan: cn.optional(),
1822
- relationshipHint: a.object({ relationshipIds: a.array(mn).optional() }).strict().optional(),
1823
- sorts: a.array(xt).readonly(),
1824
- rankings: a.array(vn).readonly(),
1825
- measureFilters: a.array(In).readonly().optional()
1831
+ measures: a.array(xt).min(1).readonly(),
1832
+ filters: $t.optional(),
1833
+ joinPlan: pn.optional(),
1834
+ relationshipHint: a.object({ relationshipIds: a.array(fn).optional() }).strict().optional(),
1835
+ sorts: a.array(Ft).readonly(),
1836
+ rankings: a.array(Sn).readonly(),
1837
+ measureFilters: a.array(wn).readonly().optional()
1826
1838
  }).strict();
1827
- function Mt(e) {
1839
+ function Et(e) {
1828
1840
  return JSON.stringify([
1829
1841
  e.axis,
1830
1842
  e.levelId,
1831
1843
  e.scope.kind,
1832
- e.scope.kind === "branch" ? vt(e.scope.parent) : null
1844
+ e.scope.kind === "branch" ? It(e.scope.parent) : null
1833
1845
  ]);
1834
1846
  }
1835
1847
  function _(e, t, i) {
@@ -1853,8 +1865,8 @@ function ie(e, t, i, n, o, s = !1) {
1853
1865
  }
1854
1866
  });
1855
1867
  }
1856
- function Et(e, t, i, n) {
1857
- x(t.map(Mt), i, n), t.forEach((o, s) => {
1868
+ function Nt(e, t, i, n) {
1869
+ x(t.map(Et), i, n), t.forEach((o, s) => {
1858
1870
  const r = [...n, s], l = e[o.axis].findIndex((c) => c.id === o.levelId);
1859
1871
  if (l < 0 && _(i, r, "Sort level is not on its axis."), o.scope.kind === "branch" && (ie(
1860
1872
  e,
@@ -1880,7 +1892,7 @@ function Et(e, t, i, n) {
1880
1892
  }
1881
1893
  });
1882
1894
  }
1883
- function X(e, t, i, n) {
1895
+ function K(e, t, i, n) {
1884
1896
  e && (e.kind !== t.kind || e.kind === "semantic" && t.kind === "semantic" && e.domainId !== t.domainId || e.kind === "physical" && t.kind === "physical" && e.connectionId !== t.connectionId) && _(
1885
1897
  i,
1886
1898
  n,
@@ -1890,7 +1902,7 @@ function X(e, t, i, n) {
1890
1902
  function ce(e, t, i) {
1891
1903
  (e.aggregationBehavior === "snapshot" || e.aggregationBehavior === "weighted" || e.aggregationStrategy === "weighted") && _(t, i, "This measure semantic requires a later capability.");
1892
1904
  }
1893
- function Nt(e, t) {
1905
+ function Tt(e, t) {
1894
1906
  x(
1895
1907
  [...e.rows, ...e.columns, ...e.measures].map((s) => s.id),
1896
1908
  t,
@@ -1914,7 +1926,7 @@ function Nt(e, t) {
1914
1926
  ...e.measures.filter((s) => s.kind === "aggregate")
1915
1927
  ];
1916
1928
  for (const s of i)
1917
- if (X(s.field.source, e.source, t, [
1929
+ if (K(s.field.source, e.source, t, [
1918
1930
  s.id,
1919
1931
  "field",
1920
1932
  "source"
@@ -1925,7 +1937,7 @@ function Nt(e, t) {
1925
1937
  "Aggregate-stage calculations cannot be grouped or wrapped in an aggregate."
1926
1938
  ), ce(s.field.derivedField, t, [s.id]);
1927
1939
  for (const r of Object.values(s.field.derivedField.inputs))
1928
- X(r.field.source, e.source, t, [s.id, "inputs"]);
1940
+ K(r.field.source, e.source, t, [s.id, "inputs"]);
1929
1941
  }
1930
1942
  for (const s of e.measures)
1931
1943
  if (s.kind === "calculated") {
@@ -1935,7 +1947,7 @@ function Nt(e, t) {
1935
1947
  "Calculated measures require aggregate stage and measure role."
1936
1948
  ), ce(s.definition, t, [s.id]);
1937
1949
  for (const r of Object.values(s.definition.inputs))
1938
- X(r.field.source, e.source, t, [
1950
+ K(r.field.source, e.source, t, [
1939
1951
  s.id,
1940
1952
  "inputs"
1941
1953
  ]);
@@ -1946,7 +1958,7 @@ function Nt(e, t) {
1946
1958
  if ((l.aggregate || ((m = l.derivedField) == null ? void 0 : m.computeStage) === "aggregate") && _(t, c, "Aggregate/HAVING filters are not supported."), l.derivedField) {
1947
1959
  ce(l.derivedField, t, c);
1948
1960
  for (const p of Object.values(l.derivedField.inputs))
1949
- X(p.field.source, e.source, t, c);
1961
+ K(p.field.source, e.source, t, c);
1950
1962
  }
1951
1963
  for (const p of ((u = l.calculatedFormula) == null ? void 0 : u.inputFields) ?? [])
1952
1964
  r(p, c);
@@ -1966,7 +1978,7 @@ function Nt(e, t) {
1966
1978
  ["joinPlan", "joins"]
1967
1979
  );
1968
1980
  }
1969
- Et(e, e.sorts, t, ["sorts"]);
1981
+ Nt(e, e.sorts, t, ["sorts"]);
1970
1982
  const o = e.measureFilters ?? [];
1971
1983
  x(o.map((s) => s.id), t, ["measureFilters"]), x(
1972
1984
  o.map((s) => JSON.stringify([s.axis, s.levelId])),
@@ -1985,13 +1997,13 @@ function Nt(e, t) {
1985
1997
  );
1986
1998
  });
1987
1999
  }
1988
- const H = Ft.superRefine(Nt), Sn = Ft.extend({
2000
+ const z = Mt.superRefine(Tt), kn = Mt.extend({
1989
2001
  rows: a.array(be).readonly(),
1990
- measures: a.array(Dt).readonly()
1991
- }), wn = Sn.superRefine(Nt), kn = H.innerType().extend({ kind: a.literal("matrix") }), An = kn.superRefine(({ kind: e, ...t }, i) => {
1992
- const n = H.safeParse(t);
2002
+ measures: a.array(xt).readonly()
2003
+ }), An = kn.superRefine(Tt), $n = z.innerType().extend({ kind: a.literal("matrix") }), Dn = $n.superRefine(({ kind: e, ...t }, i) => {
2004
+ const n = z.safeParse(t);
1993
2005
  n.success || n.error.issues.forEach((o) => i.addIssue(o));
1994
- }), $n = "{member}", Ve = a.object({
2006
+ }), xn = "{member}", Ve = a.object({
1995
2007
  visible: a.boolean(),
1996
2008
  position: a.enum(["before", "after"]),
1997
2009
  /** As written; a subtotal's `{member}` becomes its member's name. */
@@ -2004,7 +2016,7 @@ const H = Ft.superRefine(Nt), Sn = Ft.extend({
2004
2016
  * exactly one child shows no subtotal. Off when absent.
2005
2017
  */
2006
2018
  skipRedundant: a.boolean().optional()
2007
- }).strict(), Dn = {
2019
+ }).strict(), Fn = {
2008
2020
  layout: a.discriminatedUnion("kind", [
2009
2021
  a.object({ kind: a.literal("compact") }).strict(),
2010
2022
  a.object({ kind: a.literal("tabular"), repeatLabels: a.boolean() }).strict()
@@ -2012,22 +2024,22 @@ const H = Ft.superRefine(Nt), Sn = Ft.extend({
2012
2024
  absence: a.object({ emptyText: a.string(), nullText: a.string() }).strict(),
2013
2025
  levelLabels: a.record(S, a.string()).readonly(),
2014
2026
  measureLabels: a.record(S, a.string()).readonly(),
2015
- levelFormats: a.record(S, K).readonly(),
2016
- measureFormats: a.record(S, K).readonly(),
2027
+ levelFormats: a.record(S, Z).readonly(),
2028
+ measureFormats: a.record(S, Z).readonly(),
2017
2029
  totals: a.object({ rows: He, columns: He }).strict()
2018
- }, Te = a.object(Dn).strict(), xn = a.object({
2030
+ }, Te = a.object(Fn).strict(), Mn = a.object({
2019
2031
  depth: a.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
2020
2032
  overrides: a.array(
2021
- a.object({ path: N, expanded: a.boolean() }).strict()
2033
+ a.object({ path: T, expanded: a.boolean() }).strict()
2022
2034
  ).readonly()
2023
- }).strict(), ze = xn.superRefine(
2035
+ }).strict(), ze = Mn.superRefine(
2024
2036
  (e, t) => x(
2025
- e.overrides.map((i) => vt(i.path)),
2037
+ e.overrides.map((i) => It(i.path)),
2026
2038
  t,
2027
2039
  ["overrides"]
2028
2040
  )
2029
- ), Fn = { rows: ze, columns: ze }, se = a.object(Fn).strict(), Mn = se.extend({ sorts: a.array(xt).readonly() }).strict(), En = Mn.superRefine(
2030
- (e, t) => x(e.sorts.map(Mt), t, ["sorts"])
2041
+ ), En = { rows: ze, columns: ze }, se = a.object(En).strict(), Nn = se.extend({ sorts: a.array(Ft).readonly() }).strict(), Tn = Nn.superRefine(
2042
+ (e, t) => x(e.sorts.map(Et), t, ["sorts"])
2031
2043
  );
2032
2044
  function re(e, t) {
2033
2045
  var c, m;
@@ -2060,7 +2072,7 @@ function re(e, t) {
2060
2072
  );
2061
2073
  for (const u of ["rows", "columns"]) {
2062
2074
  (m = n.totals[u].grand.label) != null && m.includes(
2063
- $n
2075
+ xn
2064
2076
  ) && _(
2065
2077
  t,
2066
2078
  ["presentation", "totals", u, "grand", "label"],
@@ -2087,23 +2099,23 @@ function re(e, t) {
2087
2099
  "Use depth to expand/collapse the root."
2088
2100
  );
2089
2101
  }
2090
- s && Et(i, s.sorts, t, ["session", "sorts"]);
2102
+ s && Nt(i, s.sorts, t, ["session", "sorts"]);
2091
2103
  }
2092
- const Nn = a.object({
2093
- spec: H,
2104
+ const Rn = a.object({
2105
+ spec: z,
2094
2106
  presentation: Te,
2095
2107
  defaults: se,
2096
- session: En.optional()
2097
- }).strict(), Pa = Nn.superRefine(re), Tn = a.object({
2108
+ session: Tn.optional()
2109
+ }).strict(), Wa = Rn.superRefine(re), jn = a.object({
2098
2110
  version: a.literal(1),
2099
- spec: H,
2111
+ spec: z,
2100
2112
  presentation: Te,
2101
2113
  defaultView: se
2102
- }).strict(), Rn = Tn.superRefine(
2114
+ }).strict(), Cn = jn.superRefine(
2103
2115
  (e, t) => re({ ...e, defaults: e.defaultView }, t)
2104
- ), jn = Rn.innerType().extend({
2105
- spec: wn
2106
- }), qa = jn.superRefine((e, t) => re({ ...e, defaults: e.defaultView }, t)), Ge = a.object({ spec: H, presentation: Te }).strict(), Cn = a.union([
2116
+ ), On = Cn.innerType().extend({
2117
+ spec: An
2118
+ }), Ua = On.superRefine((e, t) => re({ ...e, defaults: e.defaultView }, t)), Ge = a.object({ spec: z, presentation: Te }).strict(), Yn = a.union([
2107
2119
  Ge.extend({
2108
2120
  mode: a.literal("layout"),
2109
2121
  format: a.enum(["csv", "xlsx", "pdf"]),
@@ -2113,7 +2125,7 @@ const Nn = a.object({
2113
2125
  ])
2114
2126
  }).strict(),
2115
2127
  Ge.extend({ mode: a.literal("flat"), format: a.enum(["csv", "xlsx"]) }).strict()
2116
- ]), Ba = Cn.superRefine(
2128
+ ]), Va = Yn.superRefine(
2117
2129
  (e, t) => re(
2118
2130
  {
2119
2131
  ...e,
@@ -2125,44 +2137,44 @@ const Nn = a.object({
2125
2137
  t
2126
2138
  )
2127
2139
  );
2128
- function Wa(e) {
2140
+ function Ha(e) {
2129
2141
  return e && "id" in e ? e.id : void 0;
2130
2142
  }
2131
- const Yn = "SUM";
2143
+ const Ln = "SUM";
2132
2144
  function $(e) {
2133
2145
  return typeof e == "string" && e.trim().length > 0;
2134
2146
  }
2135
- function P(e) {
2147
+ function q(e) {
2136
2148
  return $(e) ? e.trim().toLowerCase() : "";
2137
2149
  }
2138
- function Ua(e) {
2150
+ function za(e) {
2139
2151
  const t = $(e.id) ? e.id.trim() : void 0;
2140
2152
  if (!t) return;
2141
- const i = P(t), n = $(e.table) ? e.table.trim() : void 0;
2142
- if (!(i === P(e.name) || n && i === P(n)))
2153
+ const i = q(t), n = $(e.table) ? e.table.trim() : void 0;
2154
+ if (!(i === q(e.name) || n && i === q(n)))
2143
2155
  return t;
2144
2156
  }
2145
- function R(e) {
2157
+ function j(e) {
2146
2158
  const t = $(e.datasetId) ? e.datasetId.trim() : void 0;
2147
2159
  if (t)
2148
- return P(t) === P(e.datasetName) ? void 0 : t;
2160
+ return q(t) === q(e.datasetName) ? void 0 : t;
2149
2161
  }
2150
- function Tt(e) {
2162
+ function Rt(e) {
2151
2163
  if (e.kind !== "semantic") return e;
2152
- const t = R(e), { datasetId: i, ...n } = e;
2164
+ const t = j(e), { datasetId: i, ...n } = e;
2153
2165
  return {
2154
2166
  ...n,
2155
2167
  ...t ? { datasetId: t } : {}
2156
2168
  };
2157
2169
  }
2158
- function Va(e) {
2170
+ function Ga(e) {
2159
2171
  return e ? e.kind === "semantic" ? !!($(e.domainId) && ($(e.datasetId) || $(e.datasetName))) : e.kind === "physical" ? $(e.connectionId) && $(e.tableName) : $(e.connectionId) : !1;
2160
2172
  }
2161
2173
  function ve(e) {
2162
2174
  if (!e)
2163
2175
  return "";
2164
2176
  if (e.kind === "semantic") {
2165
- const t = R(e);
2177
+ const t = j(e);
2166
2178
  return [
2167
2179
  e.kind,
2168
2180
  e.domainId,
@@ -2190,24 +2202,24 @@ function Re(e, t) {
2190
2202
  if (e.kind === "semantic" && t.kind === "semantic") {
2191
2203
  if (e.domainId !== t.domainId)
2192
2204
  return !1;
2193
- const i = R(e), n = R(t);
2205
+ const i = j(e), n = j(t);
2194
2206
  return i && n ? i === n : e.datasetName === t.datasetName;
2195
2207
  }
2196
2208
  return ve(e) === ve(t);
2197
2209
  }
2198
- function Rt(e, t) {
2199
- return e.kind !== "semantic" || t.kind !== "semantic" ? e : Tt({
2210
+ function jt(e, t) {
2211
+ return e.kind !== "semantic" || t.kind !== "semantic" ? e : Rt({
2200
2212
  ...e,
2201
2213
  datasetName: e.datasetName || t.datasetName,
2202
- datasetId: R(e) || R(t),
2214
+ datasetId: j(e) || j(t),
2203
2215
  label: e.label || t.label,
2204
2216
  connectionId: e.connectionId || t.connectionId
2205
2217
  });
2206
2218
  }
2207
- function Ha(e) {
2219
+ function Qa(e) {
2208
2220
  const t = [];
2209
2221
  for (const i of e) {
2210
- const n = Tt(
2222
+ const n = Rt(
2211
2223
  i
2212
2224
  ), o = t.findIndex(
2213
2225
  (s) => Re(s, n)
@@ -2216,41 +2228,41 @@ function Ha(e) {
2216
2228
  t.push(n);
2217
2229
  continue;
2218
2230
  }
2219
- t[o] = Rt(
2231
+ t[o] = jt(
2220
2232
  t[o],
2221
2233
  n
2222
2234
  );
2223
2235
  }
2224
2236
  return t;
2225
2237
  }
2226
- function On(e, t) {
2238
+ function Pn(e, t) {
2227
2239
  return e.name === t.name && Re(e.source, t.source);
2228
2240
  }
2229
- function za(e) {
2241
+ function Xa(e) {
2230
2242
  return [
2231
2243
  e.source ? ve(e.source) : "unknown",
2232
- jt(e),
2244
+ Ct(e),
2233
2245
  e.name
2234
2246
  ].filter(Boolean).join(":");
2235
2247
  }
2236
- function jt(e) {
2237
- return Ln(
2238
- e.aggregate || Yn
2248
+ function Ct(e) {
2249
+ return qn(
2250
+ e.aggregate || Ln
2239
2251
  );
2240
2252
  }
2241
- function Ln(e) {
2253
+ function qn(e) {
2242
2254
  return e.trim().toUpperCase();
2243
2255
  }
2244
- function Ga(e, t) {
2256
+ function Ka(e, t) {
2245
2257
  return {
2246
2258
  ...e,
2247
2259
  label: e.label || t.label,
2248
2260
  role: e.role || t.role,
2249
2261
  dataType: e.dataType || t.dataType,
2250
- source: e.source && t.source ? Rt(e.source, t.source) : e.source || t.source
2262
+ source: e.source && t.source ? jt(e.source, t.source) : e.source || t.source
2251
2263
  };
2252
2264
  }
2253
- function Pn(e) {
2265
+ function Bn(e) {
2254
2266
  for (let t = 0; t < e.length; t += 1) {
2255
2267
  const i = e[t];
2256
2268
  if (e.some(
@@ -2260,19 +2272,19 @@ function Pn(e) {
2260
2272
  }
2261
2273
  return !0;
2262
2274
  }
2263
- function Ct(e, t) {
2264
- return On(e, t);
2275
+ function Ot(e, t) {
2276
+ return Pn(e, t);
2265
2277
  }
2266
2278
  function Yt(e, t) {
2267
- return Ct(e, t) && V(e) === V(t);
2279
+ return Ot(e, t) && H(e) === H(t);
2268
2280
  }
2269
- function qn(e) {
2270
- return `Metric intent has duplicate measure "${e.name}" with the same aggregate (${V(e)}). Use different aggregates to request both, or remove one entry.`;
2281
+ function Wn(e) {
2282
+ return `Metric intent has duplicate measure "${e.name}" with the same aggregate (${H(e)}). Use different aggregates to request both, or remove one entry.`;
2271
2283
  }
2272
2284
  function Qe(e) {
2273
2285
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
2274
2286
  }
2275
- function Bn(e, t, i) {
2287
+ function Un(e, t, i) {
2276
2288
  if (e !== void 0) {
2277
2289
  if (!e || typeof e != "object" || Array.isArray(e)) {
2278
2290
  i.push(
@@ -2305,49 +2317,49 @@ function Bn(e, t, i) {
2305
2317
  });
2306
2318
  }
2307
2319
  }
2308
- function Wn(e, t) {
2320
+ function Vn(e, t) {
2309
2321
  return je(e, t).length === 1;
2310
2322
  }
2311
- function Un(e, t) {
2323
+ function Hn(e, t) {
2312
2324
  return je(e, t).length === 1;
2313
2325
  }
2314
2326
  function je(e, t) {
2315
2327
  return t.filter(
2316
- (n) => Vn(e, n)
2328
+ (n) => zn(e, n)
2317
2329
  );
2318
2330
  }
2319
- function Vn(e, t) {
2320
- return Hn(e, t) ? e.source ? Ct(t, e) : !0 : !1;
2331
+ function zn(e, t) {
2332
+ return Gn(e, t) ? e.source ? Ot(t, e) : !0 : !1;
2321
2333
  }
2322
- function Hn(e, t) {
2323
- return !(t.name !== e.name || e.role !== void 0 && t.role !== void 0 && t.role !== e.role || zn(e, t) && V(t) !== V(e));
2334
+ function Gn(e, t) {
2335
+ return !(t.name !== e.name || e.role !== void 0 && t.role !== void 0 && t.role !== e.role || Qn(e, t) && H(t) !== H(e));
2324
2336
  }
2325
- function zn(e, t) {
2337
+ function Qn(e, t) {
2326
2338
  return e.role === "measure" || t.role === "measure" || e.aggregate !== void 0 || t.aggregate !== void 0;
2327
2339
  }
2328
- function V(e) {
2329
- return jt(e);
2340
+ function H(e) {
2341
+ return Ct(e);
2330
2342
  }
2331
- const Gn = /^(\d{4})-(\d{2})-(\d{2})$/, Ot = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|[+-]\d{2}:\d{2})$/;
2343
+ const Xn = /^(\d{4})-(\d{2})-(\d{2})$/, Lt = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|[+-]\d{2}:\d{2})$/;
2332
2344
  function ne(e) {
2333
2345
  if (typeof e != "string")
2334
2346
  return null;
2335
- const t = e.trim(), i = Gn.exec(t);
2347
+ const t = e.trim(), i = Xn.exec(t);
2336
2348
  if (i) {
2337
2349
  const [, f, b, A] = i;
2338
2350
  return Xe(f, b, A) ? new Date(Date.UTC(Number(f), Number(b) - 1, Number(A))) : null;
2339
2351
  }
2340
- const n = Ot.exec(t);
2352
+ const n = Lt.exec(t);
2341
2353
  if (!n)
2342
2354
  return null;
2343
2355
  const [, o, s, r, l, c, m = "00", , u] = n;
2344
- if (!Xe(o, s, r) || !q(l, 0, 23) || !q(c, 0, 59) || !q(m, 0, 59) || !Qn(u))
2356
+ if (!Xe(o, s, r) || !B(l, 0, 23) || !B(c, 0, 59) || !B(m, 0, 59) || !Kn(u))
2345
2357
  return null;
2346
2358
  const p = new Date(t);
2347
2359
  return Number.isFinite(p.getTime()) ? p : null;
2348
2360
  }
2349
- function Qa(e) {
2350
- return typeof e != "string" || !Ot.test(e.trim()) ? null : ne(e);
2361
+ function Za(e) {
2362
+ return typeof e != "string" || !Lt.test(e.trim()) ? null : ne(e);
2351
2363
  }
2352
2364
  function Xe(e, t, i) {
2353
2365
  const n = Number(e), o = Number(t), s = Number(i);
@@ -2356,15 +2368,15 @@ function Xe(e, t, i) {
2356
2368
  const r = new Date(Date.UTC(n, o - 1, s));
2357
2369
  return r.getUTCFullYear() === n && r.getUTCMonth() === o - 1 && r.getUTCDate() === s;
2358
2370
  }
2359
- function q(e, t, i) {
2371
+ function B(e, t, i) {
2360
2372
  const n = Number(e);
2361
2373
  return Number.isInteger(n) && n >= t && n <= i;
2362
2374
  }
2363
- function Qn(e) {
2375
+ function Kn(e) {
2364
2376
  if (e === "Z")
2365
2377
  return !0;
2366
2378
  const t = /^([+-])(\d{2}):(\d{2})$/.exec(e);
2367
- return !!(t && q(t[2], 0, 23) && q(t[3], 0, 59));
2379
+ return !!(t && B(t[2], 0, 23) && B(t[3], 0, 59));
2368
2380
  }
2369
2381
  function Ke(e, t, i) {
2370
2382
  if (e !== void 0) {
@@ -2402,7 +2414,7 @@ function Ze(e) {
2402
2414
  }
2403
2415
  return null;
2404
2416
  }
2405
- function Xn(e, t, i) {
2417
+ function Zn(e, t, i) {
2406
2418
  if (!g(e)) {
2407
2419
  i.push(
2408
2420
  d(
@@ -2450,7 +2462,7 @@ function Ce(e, t, i) {
2450
2462
  )
2451
2463
  );
2452
2464
  }
2453
- function Kn(e, t) {
2465
+ function Jn(e, t) {
2454
2466
  var n, o;
2455
2467
  if (((n = e.source) == null ? void 0 : n.kind) !== "semantic" && ((o = e.source) == null ? void 0 : o.kind) !== "physical" && t.push(
2456
2468
  d(
@@ -2471,7 +2483,7 @@ function Kn(e, t) {
2471
2483
  "search"
2472
2484
  )
2473
2485
  ), e.matchValues !== void 0) {
2474
- const s = Zt(e.matchValues);
2486
+ const s = Jt(e.matchValues);
2475
2487
  s.ok || t.push(
2476
2488
  d("invalid_input_options_match_values", s.error, "matchValues")
2477
2489
  ), typeof e.search == "string" && e.search.trim() && t.push(
@@ -2533,10 +2545,10 @@ function Kn(e, t) {
2533
2545
  )
2534
2546
  );
2535
2547
  }), e.dependencies !== void 0) {
2536
- const s = Jn(
2548
+ const s = ta(
2537
2549
  e.dependencies
2538
2550
  );
2539
- t.push(...s.errors), s.ok && ta(e, t);
2551
+ t.push(...s.errors), s.ok && na(e, t);
2540
2552
  }
2541
2553
  if (e.population !== void 0) {
2542
2554
  const s = e.population;
@@ -2580,7 +2592,7 @@ function Kn(e, t) {
2580
2592
  }
2581
2593
  }
2582
2594
  }
2583
- function Zn(e, t) {
2595
+ function ea(e, t) {
2584
2596
  if (!(!("inputs" in e) || e.inputs === void 0)) {
2585
2597
  if (!Array.isArray(e.inputs)) {
2586
2598
  t.push(
@@ -2593,11 +2605,11 @@ function Zn(e, t) {
2593
2605
  return;
2594
2606
  }
2595
2607
  e.inputs.forEach(
2596
- (i, n) => Xn(i, `inputs.${n}`, t)
2608
+ (i, n) => Zn(i, `inputs.${n}`, t)
2597
2609
  );
2598
2610
  }
2599
2611
  }
2600
- function Jn(e, t = "protocol") {
2612
+ function ta(e, t = "protocol") {
2601
2613
  const i = [];
2602
2614
  if (!g(e))
2603
2615
  return i.push(
@@ -2647,9 +2659,9 @@ function Jn(e, t = "protocol") {
2647
2659
  )
2648
2660
  );
2649
2661
  }
2650
- return t === "dashboard" && ea(n, i), { ok: i.length === 0, errors: i, warnings: [] };
2662
+ return t === "dashboard" && ia(n, i), { ok: i.length === 0, errors: i, warnings: [] };
2651
2663
  }
2652
- function ea(e, t) {
2664
+ function ia(e, t) {
2653
2665
  const { mode: i, includeInputIds: n, excludeInputIds: o } = e;
2654
2666
  i === void 0 && t.push(
2655
2667
  d(
@@ -2683,7 +2695,7 @@ function ea(e, t) {
2683
2695
  )
2684
2696
  );
2685
2697
  }
2686
- function ta(e, t) {
2698
+ function na(e, t) {
2687
2699
  var o, s, r;
2688
2700
  const i = new Set(
2689
2701
  Array.isArray(e.inputs) ? e.inputs.map((l) => g(l) ? l.inputId : void 0).filter((l) => typeof l == "string") : []
@@ -2708,8 +2720,8 @@ function ta(e, t) {
2708
2720
  function me(e, t, i, n) {
2709
2721
  e !== void 0 && (!Array.isArray(e) || e.some((o) => !h(o))) && i.push(d("invalid_input_options_dependencies", n, t));
2710
2722
  }
2711
- new Set(Xt);
2712
- function ia(e, t) {
2723
+ new Set(Kt);
2724
+ function aa(e, t) {
2713
2725
  if (e.analysis === void 0)
2714
2726
  return;
2715
2727
  if (!g(e.analysis)) {
@@ -2759,7 +2771,7 @@ function ae(e, t, i) {
2759
2771
  n.ok || i.push(
2760
2772
  d(
2761
2773
  "invalid_time_window",
2762
- ut(n.refusal),
2774
+ ct(n.refusal),
2763
2775
  n.refusal.path ? `${t}.${n.refusal.path}` : t
2764
2776
  )
2765
2777
  );
@@ -2861,7 +2873,7 @@ function Je(e, t, i) {
2861
2873
  });
2862
2874
  }
2863
2875
  }
2864
- function Lt(e) {
2876
+ function Pt(e) {
2865
2877
  var n;
2866
2878
  const t = [], i = [];
2867
2879
  if (!e || typeof e != "object")
@@ -2882,7 +2894,7 @@ function Lt(e) {
2882
2894
  ]
2883
2895
  };
2884
2896
  if (e.kind === "matrix") {
2885
- const o = An.safeParse(e);
2897
+ const o = Dn.safeParse(e);
2886
2898
  return o.success || t.push(...o.error.issues.map((s) => d("invalid_matrix_intent", s.message, s.path.join(".")))), { ok: t.length === 0, errors: t, warnings: i, repairHints: et(t) };
2887
2899
  }
2888
2900
  if (e.version !== void 0 && e.version !== 1 && t.push(
@@ -2891,7 +2903,7 @@ function Lt(e) {
2891
2903
  "Analytics intent version must be 1.",
2892
2904
  "version"
2893
2905
  )
2894
- ), we(e.source, "source", t), na(e, t), Zn(e, t), "relationshipHint" in e && e.relationshipHint !== void 0 && Ce(
2906
+ ), we(e.source, "source", t), sa(e, t), ea(e, t), "relationshipHint" in e && e.relationshipHint !== void 0 && Ce(
2895
2907
  e.relationshipHint,
2896
2908
  "relationshipHint",
2897
2909
  t
@@ -2917,7 +2929,7 @@ function Lt(e) {
2917
2929
  I(s, `measures.${r}`, t, {
2918
2930
  required: !0
2919
2931
  });
2920
- }), o.length > 0 && !Pn(o)) {
2932
+ }), o.length > 0 && !Bn(o)) {
2921
2933
  const s = o.find(
2922
2934
  (r, l) => o.some(
2923
2935
  (c, m) => m !== l && Yt(c, r)
@@ -2926,7 +2938,7 @@ function Lt(e) {
2926
2938
  s && t.push(
2927
2939
  d(
2928
2940
  "duplicate_measure",
2929
- qn(s),
2941
+ Wn(s),
2930
2942
  "measures"
2931
2943
  )
2932
2944
  );
@@ -2942,7 +2954,7 @@ function Lt(e) {
2942
2954
  )
2943
2955
  ), e.primaryMeasure !== void 0 && (I(e.primaryMeasure, "primaryMeasure", t, {
2944
2956
  required: !0
2945
- }), g(e.primaryMeasure) && h(e.primaryMeasure.name) && o.length > 0 && !Wn(
2957
+ }), g(e.primaryMeasure) && h(e.primaryMeasure.name) && o.length > 0 && !Vn(
2946
2958
  e.primaryMeasure,
2947
2959
  o
2948
2960
  ) && t.push(
@@ -2998,7 +3010,7 @@ function Lt(e) {
2998
3010
  (r) => g(r) && h(r.name)
2999
3011
  ) : []
3000
3012
  ];
3001
- s.length > 0 && !Un(
3013
+ s.length > 0 && !Hn(
3002
3014
  e.orderBy.field,
3003
3015
  s
3004
3016
  ) && t.push(
@@ -3010,7 +3022,7 @@ function Lt(e) {
3010
3022
  );
3011
3023
  }
3012
3024
  }
3013
- ia(e, t);
3025
+ aa(e, t);
3014
3026
  } else if (e.kind === "records") {
3015
3027
  if (!Array.isArray(e.fields) || e.fields.length === 0 ? t.push(
3016
3028
  d(
@@ -3092,7 +3104,7 @@ function Lt(e) {
3092
3104
  );
3093
3105
  });
3094
3106
  }
3095
- } else e.kind === "inputOptions" ? Kn(e, t) : e.kind === "sql" ? (((n = e.source) == null ? void 0 : n.kind) !== "sql" && t.push(
3107
+ } else e.kind === "inputOptions" ? Jn(e, t) : e.kind === "sql" ? (((n = e.source) == null ? void 0 : n.kind) !== "sql" && t.push(
3096
3108
  d(
3097
3109
  "invalid_sql_source",
3098
3110
  "SQL analytics intent must use a SQL execution source.",
@@ -3100,7 +3112,7 @@ function Lt(e) {
3100
3112
  )
3101
3113
  ), h(e.sql) || t.push(
3102
3114
  d("missing_sql", "SQL analytics intent needs SQL text.", "sql")
3103
- ), Bn(
3115
+ ), Un(
3104
3116
  e.defaultParameters,
3105
3117
  "defaultParameters",
3106
3118
  t
@@ -3120,7 +3132,7 @@ function Lt(e) {
3120
3132
  repairHints: et(t)
3121
3133
  };
3122
3134
  }
3123
- function na(e, t) {
3135
+ function sa(e, t) {
3124
3136
  if (!(!("derivedFields" in e) || e.derivedFields === void 0)) {
3125
3137
  if (!Array.isArray(e.derivedFields)) {
3126
3138
  t.push(
@@ -3144,7 +3156,7 @@ function na(e, t) {
3144
3156
  });
3145
3157
  }
3146
3158
  }
3147
- function aa(e) {
3159
+ function ra(e) {
3148
3160
  const t = [], i = [];
3149
3161
  if (!e || typeof e != "object")
3150
3162
  return {
@@ -3199,7 +3211,7 @@ function aa(e) {
3199
3211
  "instruction"
3200
3212
  )
3201
3213
  ), e.analyticsIntent) {
3202
- const n = Lt(
3214
+ const n = Pt(
3203
3215
  e.analyticsIntent
3204
3216
  );
3205
3217
  t.push(...n.errors), i.push(...n.warnings);
@@ -3216,10 +3228,10 @@ function aa(e) {
3216
3228
  ok: t.length === 0,
3217
3229
  errors: t,
3218
3230
  warnings: i,
3219
- repairHints: Pt(t)
3231
+ repairHints: qt(t)
3220
3232
  };
3221
3233
  }
3222
- function Xa(e) {
3234
+ function Ja(e) {
3223
3235
  const t = [], i = [];
3224
3236
  if (!e || typeof e != "object")
3225
3237
  return {
@@ -3247,7 +3259,7 @@ function Xa(e) {
3247
3259
  "kind"
3248
3260
  )
3249
3261
  );
3250
- const n = aa(
3262
+ const n = ra(
3251
3263
  e.operationIntent
3252
3264
  );
3253
3265
  return t.push(...n.errors), i.push(...n.warnings), Array.isArray(e.plannedToolCalls) || t.push(
@@ -3260,10 +3272,10 @@ function Xa(e) {
3260
3272
  ok: t.length === 0,
3261
3273
  errors: t,
3262
3274
  warnings: i,
3263
- repairHints: Pt(t)
3275
+ repairHints: qt(t)
3264
3276
  };
3265
3277
  }
3266
- function Pt(e) {
3278
+ function qt(e) {
3267
3279
  return e.map((t) => ({
3268
3280
  code: t.code,
3269
3281
  recommendedNextStep: t.code === "missing_obligations" ? "Normalize the user request into one or more typed analytics obligations before recovery planning." : "Correct the operation/recovery contract shape before planning execution."
@@ -3357,7 +3369,7 @@ function et(e) {
3357
3369
  }
3358
3370
  }).filter((t) => !!t);
3359
3371
  }
3360
- function sa(e, t, i, n) {
3372
+ function oa(e, t, i, n) {
3361
3373
  if (!e || typeof e != "object") {
3362
3374
  i.push(
3363
3375
  d("invalid_view", "Dashboard view must be an object.", t)
@@ -3403,7 +3415,7 @@ function sa(e, t, i, n) {
3403
3415
  `${t}.analytics.kind`
3404
3416
  )
3405
3417
  );
3406
- const o = Lt(e.analytics);
3418
+ const o = Pt(e.analytics);
3407
3419
  for (const s of o.errors)
3408
3420
  i.push(
3409
3421
  d(
@@ -3421,7 +3433,7 @@ function sa(e, t, i, n) {
3421
3433
  )
3422
3434
  );
3423
3435
  }
3424
- function Ka(e) {
3436
+ function es(e) {
3425
3437
  const t = [], i = [];
3426
3438
  if (!e || typeof e != "object")
3427
3439
  return {
@@ -3514,7 +3526,7 @@ function Ka(e) {
3514
3526
  continue;
3515
3527
  }
3516
3528
  for (const [p, f] of m.views.entries())
3517
- sa(
3529
+ oa(
3518
3530
  f,
3519
3531
  `${u}.views.${p}`,
3520
3532
  t,
@@ -3524,130 +3536,132 @@ function Ka(e) {
3524
3536
  return { ok: t.length === 0, errors: t, warnings: i };
3525
3537
  }
3526
3538
  export {
3527
- Xa as $,
3528
- N as A,
3529
- Sa as B,
3539
+ Pt as $,
3540
+ xt as A,
3541
+ Ki as B,
3530
3542
  ye as C,
3531
- Zi as D,
3532
- _n as E,
3533
- xt as F,
3543
+ en as D,
3544
+ T as E,
3545
+ Aa as F,
3534
3546
  vn as G,
3535
- In as H,
3536
- Mt as I,
3537
- H as J,
3538
- Ve as K,
3539
- Xi as L,
3540
- $n as M,
3541
- Te as N,
3542
- ze as O,
3543
- se as P,
3544
- En as Q,
3545
- Pa as R,
3546
- Rn as S,
3547
- Ba as T,
3548
- $e as U,
3549
- Kt as V,
3550
- Zt as W,
3551
- ne as X,
3552
- Jn as Y,
3553
- Lt as Z,
3554
- aa as _,
3555
- ka as a,
3556
- _a as a$,
3557
- Ka as a0,
3558
- Ae as a1,
3559
- xe as a2,
3560
- Oi as a3,
3561
- Li as a4,
3562
- Fe as a5,
3563
- Ui as a6,
3564
- Vi as a7,
3565
- ht as a8,
3566
- gt as a9,
3567
- jt as aA,
3568
- Ga as aB,
3569
- si as aC,
3570
- st as aD,
3571
- ui as aE,
3572
- di as aF,
3573
- da as aG,
3574
- M as aH,
3575
- pi as aI,
3576
- ii as aJ,
3577
- G as aK,
3578
- la as aL,
3579
- Se as aM,
3580
- ua as aN,
3581
- ca as aO,
3582
- ut as aP,
3583
- ma as aQ,
3584
- bt as aR,
3585
- zi as aS,
3586
- Gi as aT,
3587
- ba as aU,
3588
- va as aV,
3589
- W as aW,
3590
- ha as aX,
3591
- An as aY,
3592
- ie as aZ,
3593
- li as a_,
3594
- Be as aa,
3595
- _t as ab,
3596
- pa as ac,
3597
- fa as ad,
3598
- en as ae,
3599
- Ma as af,
3600
- Ea as ag,
3601
- Na as ah,
3602
- St as ai,
3603
- Ne as aj,
3604
- Ta as ak,
3605
- Ra as al,
3606
- ja as am,
3607
- nn as an,
3608
- Ca as ao,
3609
- Ya as ap,
3610
- Oa as aq,
3611
- La as ar,
3612
- Wa as as,
3613
- Ua as at,
3614
- R as au,
3615
- Tt as av,
3616
- Re as aw,
3547
+ Ft as H,
3548
+ Sn as I,
3549
+ wn as J,
3550
+ Et as K,
3551
+ Zi as L,
3552
+ z as M,
3553
+ Ve as N,
3554
+ xn as O,
3555
+ Te as P,
3556
+ ze as Q,
3557
+ se as R,
3558
+ Tn as S,
3559
+ Wa as T,
3560
+ Cn as U,
3561
+ Va as V,
3562
+ $e as W,
3563
+ Zt as X,
3564
+ Jt as Y,
3565
+ ne as Z,
3566
+ ta as _,
3567
+ Da as a,
3568
+ ie as a$,
3569
+ ra as a0,
3570
+ Ja as a1,
3571
+ es as a2,
3572
+ Ae as a3,
3573
+ xe as a4,
3574
+ Pi as a5,
3575
+ qi as a6,
3576
+ Fe as a7,
3577
+ Hi as a8,
3578
+ zi as a9,
3579
+ Qa as aA,
3580
+ Xa as aB,
3581
+ Ct as aC,
3582
+ Ka as aD,
3583
+ ua as aE,
3584
+ rt as aF,
3585
+ mi as aG,
3586
+ ui as aH,
3587
+ ca as aI,
3588
+ E as aJ,
3589
+ hi as aK,
3590
+ ni as aL,
3591
+ Q as aM,
3592
+ ma as aN,
3593
+ Se as aO,
3594
+ pa as aP,
3595
+ fa as aQ,
3596
+ ct as aR,
3597
+ ha as aS,
3598
+ vt as aT,
3599
+ Qi as aU,
3600
+ Xi as aV,
3601
+ Sa as aW,
3602
+ wa as aX,
3603
+ U as aY,
3604
+ _a as aZ,
3605
+ Dn as a_,
3606
+ gt as aa,
3607
+ yt as ab,
3608
+ Be as ac,
3609
+ bt as ad,
3610
+ ga as ae,
3611
+ ya as af,
3612
+ nn as ag,
3613
+ Ta as ah,
3614
+ Ra as ai,
3615
+ ja as aj,
3616
+ wt as ak,
3617
+ Ne as al,
3618
+ Ca as am,
3619
+ Oa as an,
3620
+ Ya as ao,
3621
+ sn as ap,
3622
+ La as aq,
3623
+ Pa as ar,
3624
+ qa as as,
3625
+ Ba as at,
3626
+ Ha as au,
3627
+ za as av,
3628
+ j as aw,
3617
3629
  Rt as ax,
3618
- Ha as ay,
3619
- za as az,
3620
- Ji as b,
3621
- ya as b0,
3622
- wn as b1,
3623
- qa as b2,
3624
- De as b3,
3625
- Di as b4,
3626
- Ue as b5,
3627
- ga as b6,
3628
- Jt as b7,
3629
- It as c,
3630
- $a as d,
3631
- xa as e,
3630
+ Re as ay,
3631
+ jt as az,
3632
+ tn as b,
3633
+ ci as b0,
3634
+ Ia as b1,
3635
+ va as b2,
3636
+ An as b3,
3637
+ Ua as b4,
3638
+ De as b5,
3639
+ Fi as b6,
3640
+ Ue as b7,
3641
+ ba as b8,
3642
+ ei as b9,
3643
+ St as c,
3644
+ Fa as d,
3645
+ Ea as e,
3632
3646
  _e as f,
3633
- Ki as g,
3634
- Fa as h,
3635
- wa as i,
3647
+ Ji as g,
3648
+ Na as h,
3649
+ $a as i,
3636
3650
  Pe as j,
3637
- Va as k,
3638
- On as l,
3639
- vt as m,
3640
- Aa as n,
3641
- ve as o,
3642
- Qa as p,
3643
- At as q,
3651
+ oi as k,
3652
+ st as l,
3653
+ It as m,
3654
+ xa as n,
3655
+ Ga as o,
3656
+ Za as p,
3657
+ Pn as q,
3644
3658
  F as r,
3645
- Da as s,
3646
- Ia as t,
3647
- Ee as u,
3648
- fn as v,
3649
- $t as w,
3650
- be as x,
3659
+ Ma as s,
3660
+ ve as t,
3661
+ $t as u,
3662
+ ka as v,
3663
+ Ee as w,
3664
+ gn as x,
3651
3665
  Dt as y,
3652
- Qi as z
3666
+ be as z
3653
3667
  };