react-semaphor 0.1.560 → 0.1.561

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 (107) hide show
  1. package/dist/analytics-protocol/index.js +353 -349
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{analytics-base-schemas-CHLxsPfX.js → analytics-base-schemas-CB3oFAXk.js} +199 -171
  7. package/dist/chunks/{assistant-chat-Bu2fFm_I.js → assistant-chat-DiVHY3Hw.js} +27 -28
  8. package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
  9. package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
  10. package/dist/chunks/{braces-Da41xfUd.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-4FNkMrzE.js → comparison-window-caption-DDsIWJYT.js} +108 -108
  12. package/dist/chunks/{context-BgPDzLHZ.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-Dz-enUNR.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-_MeBuy67.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CEi4Pr_v.js → dashboard-briefing-launcher-CgvTLndW.js} +161 -162
  16. package/dist/chunks/{dashboard-controls-Bi7fyG-4.js → dashboard-controls-B4vfSzTF.js} +881 -945
  17. package/dist/chunks/{dashboard-json-B1mU_OMa.js → dashboard-json-Y3MF59g7.js} +5 -5
  18. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
  19. package/dist/chunks/{edit-dashboard-visual-0CJN31Y3.js → edit-dashboard-visual-DwjZcxj-.js} +6112 -6146
  20. package/dist/chunks/{filter-reach-copy-BF4w4kI2.js → filter-reach-copy-bijwf_-b.js} +1250 -1392
  21. package/dist/chunks/{filter-value-text-CRC-K_l_.js → filter-value-text-DFnhwuEW.js} +3 -3
  22. package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
  23. package/dist/chunks/{index-DtHidOPV.js → index-ClwbY3BL.js} +197 -198
  24. package/dist/chunks/{layout-grid-BvsH4RY2.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-Dg0otx5E.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CM18W8w6.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-HPskLaPy.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-Bbrfrke4.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-WPv4R-H_.js → matrix-operation-contract-BSiGEXVC.js} +255 -248
  30. package/dist/chunks/{metric-comparison-ljMKYZKa.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-Ccn1zaxl.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-Bsh376zO.js → palette-DTnMhipt.js} +1 -1
  33. package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
  34. package/dist/chunks/{pivot-result-identity-vS9TSh4f.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-BV8L0SeS.js → report-preferences-dialog-C2YUIwKG.js} +14 -14
  36. package/dist/chunks/{report-runtime-context-BZQh9ywy.js → report-runtime-context-DoIUr3MP.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
  38. package/dist/chunks/{save-B5EAsgQF.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-n2Wn11cV.js → saved-dashboard-context-8jqfI7hI.js} +12 -12
  40. package/dist/chunks/{selection-reducer-D0YnaAD9.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-XLBLOJ2V.js → semaphor-ready-indicator-E2XWyibu.js} +30253 -31076
  42. package/dist/chunks/{shelf-drop-preview-context-DHMa54a-.js → shelf-drop-preview-context-C29EUzDp.js} +7 -7
  43. package/dist/chunks/{source-entity-resolution-dUG5VWRm.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-ByxH4M7t.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_GdeTYU.js → table-export-sheet-CK8tvh4d.js} +1 -1
  46. package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
  47. package/dist/chunks/{token-types-CQtXUVMy.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-wbR-NVzq.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-CEBaLOKC.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-CXTneCA4.js → validators-BtaCFIEB.js} +37 -37
  51. package/dist/chunks/{zoned-wall-clock-B1n_WjW3.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2400 -1856
  54. package/dist/data-app-sdk/index.js +20 -20
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +10 -10
  57. package/dist/format-utils/index.js +257 -256
  58. package/dist/index.js +214 -215
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  63. package/dist/types/index.js +50 -51
  64. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  65. package/dist/types/lib/stores/editor-store.d.ts +9 -1
  66. package/dist/types/lib/stores/table-actions.d.ts +0 -2
  67. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +10 -0
  68. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  69. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  70. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  71. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  72. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  73. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  74. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  75. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  76. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  77. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  78. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  79. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  80. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  81. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  82. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  83. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  84. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  85. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  86. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  87. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +539 -22
  88. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  89. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  90. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +1 -8
  91. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  92. package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
  93. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  94. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  95. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  96. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  97. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +8 -1
  98. package/dist/types/shared/format-utils/raw-temporal.d.ts +16 -0
  99. package/package.json +2 -2
  100. package/dist/chunks/bookmark-state-BFY9oNmr.js +0 -111
  101. package/dist/chunks/document-dashboard-inputs-CkWfDB8c.js +0 -3010
  102. package/dist/chunks/global-date-filter-utils-D8365uPH.js +0 -12889
  103. package/dist/chunks/pivot-result-contract-expectations-Bl5suy4-.js +0 -1832
  104. package/dist/chunks/raw-temporal-presentation-BHm7s-hz.js +0 -540
  105. package/dist/chunks/resolve-dashboard-input-context-CAMiWvyR.js +0 -5280
  106. package/dist/chunks/table-settings-Imz0FgWi.js +0 -637
  107. package/dist/chunks/temporal-input-presentation-uvNK_tM0.js +0 -3228
@@ -1,22 +1,21 @@
1
1
  var De = Object.defineProperty;
2
2
  var _e = (e, n, t) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var R = (e, n, t) => _e(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { af as Oe, O as Fe, r as re, G as le, l as Ne, N as Re, P as N } from "./temporal-input-presentation-uvNK_tM0.js";
5
- import { a4 as W, aj as Be, o as Me } from "./validators-CXTneCA4.js";
4
+ import { at as Oe, W as Fe, ag as re, N as le, j as Ne, V as Re, R as N } from "./temporal-input-presentation-B77JsAzU.js";
5
+ import { a4 as W, aj as Be, o as Me } from "./validators-BtaCFIEB.js";
6
6
  import { l as Le, C as Ue } from "./export-file-format-C-tJsxsf.js";
7
7
  import { z as y } from "zod";
8
- import { af as Pe, ah as Ve, U as ze } from "./matrix-operation-contract-WPv4R-H_.js";
9
- import "./analytics-base-schemas-CHLxsPfX.js";
8
+ import { ag as Pe, ai as Ve, V as ze } from "./matrix-operation-contract-BSiGEXVC.js";
9
+ import "./analytics-base-schemas-CB3oFAXk.js";
10
10
  import "../value-format-preferences/index.js";
11
11
  import { r as je } from "./rendered-file-D8xEuVVx.js";
12
- import { N as qe, O as Ke, P as He, r as Ge, n as We, a as Xe } from "./global-date-filter-utils-D8365uPH.js";
13
- import { r as Ze } from "./matrix-card-HPskLaPy.js";
14
- import { x as Ye } from "./table-settings-Imz0FgWi.js";
15
- import { r as Je, a as Qe, b as et } from "./raw-temporal-presentation-BHm7s-hz.js";
12
+ import { L as qe, M as Ke, N as He, O as Ge, n as We, P as Xe, Q as Ze, R as Ye, S as Je } from "./global-date-filter-utils-BXgCpvQM.js";
13
+ import { r as Qe } from "./matrix-card-CUorIB7Q.js";
14
+ import { A as et } from "./bookmark-state-BusLpkb7.js";
16
15
  import "./index-CJW5BdWT.js";
17
16
  import "./index-CuHybtft.js";
18
17
  import "./_commonjsHelpers-DimLPMtv.js";
19
- import { f as tt, r as nt, b as rt, g as ot } from "./custom-visual-inputs-Dz-enUNR.js";
18
+ import { f as tt, r as nt, b as rt, g as ot } from "./custom-visual-inputs-DfolidZ9.js";
20
19
  const at = /* @__PURE__ */ new Set(["table", "detailTable"]), it = /* @__PURE__ */ new Set([
21
20
  "bar",
22
21
  "horizontalBar",
@@ -45,12 +44,12 @@ const at = /* @__PURE__ */ new Set(["table", "detailTable"]), it = /* @__PURE__
45
44
  "treemap",
46
45
  "custom"
47
46
  ]);
48
- function Kn(e) {
47
+ function qn(e) {
49
48
  var o, a, i;
50
49
  const n = it.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
51
50
  let t = !1;
52
51
  try {
53
- t = !!Ze(e);
52
+ t = !!Qe(e);
54
53
  } catch {
55
54
  return { formats: [], defaultFormat: null };
56
55
  }
@@ -83,7 +82,7 @@ function ct(e) {
83
82
  return n || X((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
84
83
  }
85
84
  }
86
- function Hn(e) {
85
+ function Kn(e) {
87
86
  return ct(e).kind === "export_job";
88
87
  }
89
88
  function lt(e) {
@@ -93,13 +92,13 @@ function lt(e) {
93
92
  function dt(e) {
94
93
  return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || X(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
95
94
  }
96
- function Gn(e) {
95
+ function Hn(e) {
97
96
  return lt(e).label;
98
97
  }
99
98
  function st(e) {
100
99
  return at.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
101
100
  }
102
- function Wn(e) {
101
+ function Gn(e) {
103
102
  const { config: n } = e, t = Oe({
104
103
  spec: n.spec,
105
104
  presentation: n.presentation,
@@ -135,7 +134,7 @@ const mt = y.object({
135
134
  semanticDomainId: y.string().optional()
136
135
  }).passthrough(),
137
136
  active_filters: y.array(y.unknown()).default([])
138
- }).passthrough(), Xn = mt.extend({
137
+ }).passthrough(), Wn = mt.extend({
139
138
  dashboardId: y.string().min(1),
140
139
  cardId: y.string().min(1),
141
140
  formatOptions: y.object({
@@ -150,7 +149,7 @@ const mt = y.object({
150
149
  });
151
150
  })
152
151
  });
153
- function Zn(e) {
152
+ function Xn(e) {
154
153
  return {
155
154
  ...e.controls,
156
155
  type: "card",
@@ -185,7 +184,7 @@ function Zn(e) {
185
184
  }
186
185
  };
187
186
  }
188
- const V = y.number().int().nonnegative(), Yn = y.discriminatedUnion("status", [
187
+ const V = y.number().int().nonnegative(), Zn = y.discriminatedUnion("status", [
189
188
  y.object({
190
189
  status: y.literal("ok"),
191
190
  request: W,
@@ -206,7 +205,7 @@ const V = y.number().int().nonnegative(), Yn = y.discriminatedUnion("status", [
206
205
  function oe(e) {
207
206
  return !e || typeof e != "object" ? !1 : Array.isArray(e.cards);
208
207
  }
209
- function ft(e) {
208
+ function ut(e) {
210
209
  if (!e)
211
210
  return null;
212
211
  if (typeof e == "string")
@@ -222,10 +221,10 @@ function de(e) {
222
221
  var n;
223
222
  return (n = e == null ? void 0 : e.cards) != null && n.length ? e.activeCardId && e.cards.find((t) => t.id === e.activeCardId) || e.cards[0] : null;
224
223
  }
225
- function Jn(e) {
224
+ function Yn(e) {
226
225
  var t;
227
226
  const n = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
228
- return de(ft(n));
227
+ return de(ut(n));
229
228
  }
230
229
  class B extends Error {
231
230
  constructor(t) {
@@ -238,7 +237,7 @@ class B extends Error {
238
237
  this.name = "TemporalSnapshotSelectionError", this.selection = t;
239
238
  }
240
239
  }
241
- function ut(e, n) {
240
+ function ft(e, n) {
242
241
  var o;
243
242
  const t = [], r = /* @__PURE__ */ new Map();
244
243
  for (const a of n) {
@@ -252,12 +251,12 @@ function ut(e, n) {
252
251
  let c = !a.cardId;
253
252
  for (const l of i) {
254
253
  const m = (((o = l.document) == null ? void 0 : o.sections) || []).flatMap(
255
- (p) => Ye(p)
254
+ (p) => et(p)
256
255
  ), s = (l.frames || []).flatMap(
257
256
  (p) => pt(p, a.cardId)
258
257
  );
259
258
  s.length > 0 && (c = !0);
260
- const u = [
259
+ const f = [
261
260
  ...s,
262
261
  ...(l.cards || []).filter(
263
262
  (p) => !a.cardId || a.cardId === p.id
@@ -266,7 +265,7 @@ function ut(e, n) {
266
265
  (p) => !a.cardId || a.cardId === p.id
267
266
  )
268
267
  ];
269
- for (const p of u) {
268
+ for (const p of f) {
270
269
  c = !0;
271
270
  const g = r.get(a.attachmentIndex) ?? /* @__PURE__ */ new Set();
272
271
  g.has(p.id) || (g.add(p.id), r.set(a.attachmentIndex, g), t.push({
@@ -298,10 +297,10 @@ function pt(e, n) {
298
297
  })
299
298
  ).filter((c) => c !== null);
300
299
  }
301
- function Qn(e) {
302
- return ut(e.dashboard, e.selections).flatMap(
300
+ function Jn(e) {
301
+ return ft(e.dashboard, e.selections).flatMap(
303
302
  ({ card: n, attachmentIndex: t }) => {
304
- var s, u;
303
+ var s, f;
305
304
  const r = ((s = e.resolveCardConfig) == null ? void 0 : s.call(e, n)) ?? n.config, o = Ke({
306
305
  card: n,
307
306
  cardConfig: r
@@ -328,7 +327,7 @@ function Qn(e) {
328
327
  n.python || ""
329
328
  );
330
329
  if (n.type === "detailTable" && l === "config") {
331
- const p = (r == null ? void 0 : r.detailColumns) || [], g = Je({
330
+ const p = (r == null ? void 0 : r.detailColumns) || [], g = Xe({
332
331
  groupByColumns: r == null ? void 0 : r.groupByColumns,
333
332
  metricColumns: r == null ? void 0 : r.metricColumns,
334
333
  pivotByColumns: r == null ? void 0 : r.pivotByColumns,
@@ -343,18 +342,18 @@ function Qn(e) {
343
342
  scope: a,
344
343
  target: { kind: "column", columnKey: F },
345
344
  format: re({
346
- format: Qe(E),
345
+ format: Ze(E),
347
346
  preferences: e.valueFormatPreferences,
348
347
  calendar: e.calendar
349
348
  })
350
349
  });
351
350
  }
352
- } else if (l === "freeform" && ((u = n.sql) != null && u.trim()) && !m.trim())
351
+ } else if (l === "freeform" && ((f = n.sql) != null && f.trim()) && !m.trim())
353
352
  for (const [p, g] of Object.entries(
354
- Xe(n)
353
+ Ye(n)
355
354
  )) {
356
355
  if (g.type !== "date") continue;
357
- const E = et(
356
+ const E = Je(
358
357
  g.dateFormat
359
358
  );
360
359
  E && c.push({
@@ -451,13 +450,13 @@ function ae(e, n, t) {
451
450
  S(c, `${n}.tokens.color`, l, t);
452
451
  const m = {};
453
452
  l.forEach((s) => {
454
- const u = D(
453
+ const f = D(
455
454
  c[s],
456
455
  `${n}.tokens.color.${s}`,
457
456
  120,
458
457
  t
459
458
  );
460
- u !== void 0 && (m[s] = u);
459
+ f !== void 0 && (m[s] = f);
461
460
  }), i.color = m;
462
461
  }
463
462
  if (a.typography !== void 0) {
@@ -606,18 +605,18 @@ const M = [
606
605
  "SAT"
607
606
  ], se = new Map(
608
607
  M.map((e, n) => [e, n])
609
- ), U = [1, 2, 3, 4, 5], me = [1, 2, 3, 6, 12], fe = {
608
+ ), U = [1, 2, 3, 4, 5], me = [1, 2, 3, 6, 12], ue = {
610
609
  1: "first",
611
610
  2: "second",
612
611
  3: "third",
613
612
  4: "fourth",
614
613
  [-1]: "last"
615
- }, er = {
614
+ }, Qn = {
616
615
  frequency: "weekly",
617
616
  hour: 9,
618
617
  minute: 0,
619
618
  weekdays: [1]
620
- }, x = { ok: !1, issue: "Choose a supported schedule." };
619
+ }, C = { ok: !1, issue: "Choose a supported schedule." };
621
620
  function vt(e) {
622
621
  if (typeof e != "string" || e.length === 0 || e !== e.trim() || /^(?:(?:UTC|GMT)[+-]|[+-]\d{2}:\d{2}$)/.test(e))
623
622
  return !1;
@@ -630,7 +629,7 @@ function vt(e) {
630
629
  function Et(e) {
631
630
  return Number.isInteger(e.minute) && e.minute >= 0 && e.minute <= 59 && Number.isInteger(e.hour) && e.hour >= 0 && e.hour <= 23;
632
631
  }
633
- function ue(e) {
632
+ function fe(e) {
634
633
  if (e.length === 0) return null;
635
634
  const n = [...e].sort((t, r) => t - r);
636
635
  return n.some(
@@ -658,7 +657,7 @@ function $t(e, n) {
658
657
  function he(e, n) {
659
658
  return e.every((t) => Dt(t, n));
660
659
  }
661
- function tr(e) {
660
+ function er(e) {
662
661
  if (!Et(e))
663
662
  throw new Error("Choose a valid schedule time.");
664
663
  const n = `${e.minute} ${e.hour}`;
@@ -666,7 +665,7 @@ function tr(e) {
666
665
  case "daily":
667
666
  return e.weekdaysOnly ? `${n} * * ${U.map((t) => M[t]).join(",")}` : `${n} * * *`;
668
667
  case "weekly": {
669
- const t = ue(e.weekdays);
668
+ const t = fe(e.weekdays);
670
669
  if (!t) throw new Error("Choose at least one weekday.");
671
670
  return `${n} * * ${t.map((r) => M[r]).join(",")}`;
672
671
  }
@@ -684,14 +683,14 @@ function tr(e) {
684
683
  return `${n} ${l} ${t} *`;
685
684
  }
686
685
  const { ordinal: r, weekday: o } = e.on;
687
- if (!Number.isInteger(o) || o < 0 || o > 6 || !(r in fe))
686
+ if (!Number.isInteger(o) || o < 0 || o > 6 || !(r in ue))
688
687
  throw new Error("Choose a valid weekday.");
689
688
  const a = M[o];
690
689
  return `${n} * ${t} ${r === -1 ? `${a}L` : `${a}#${r}`}`;
691
690
  }
692
691
  }
693
692
  }
694
- function xt(e) {
693
+ function Ct(e) {
695
694
  if (e === "*") return { interval: 1, startMonth: 0 };
696
695
  const n = e.split(",");
697
696
  if (n.some((i) => !/^([1-9]|1[0-2])$/.test(i))) return null;
@@ -704,7 +703,7 @@ function xt(e) {
704
703
  );
705
704
  return o >= r || a.length !== t.length || a.some((i, c) => i !== t[c]) ? null : { interval: r, startMonth: o };
706
705
  }
707
- function Ct(e) {
706
+ function xt(e) {
708
707
  const n = e.split(",");
709
708
  if (n.some((o) => !/^(L|[1-9]|[12]\d|3[01])$/.test(o))) return null;
710
709
  const t = n.map(
@@ -723,24 +722,24 @@ function Tt(e) {
723
722
  }
724
723
  function ye(e) {
725
724
  if (typeof e != "string" || e.length === 0 || e !== e.trim() || e.includes(" "))
726
- return x;
725
+ return C;
727
726
  const n = e.split(" ");
728
- if (n.length !== 5) return x;
727
+ if (n.length !== 5) return C;
729
728
  const [t, r, o, a, i] = n;
730
729
  if (!/^(0|[1-9]\d?)$/.test(t) || !/^(0|[1-9]\d?)$/.test(r))
731
- return x;
730
+ return C;
732
731
  const c = Number(t), l = Number(r);
733
- if (c > 59 || l > 23) return x;
732
+ if (c > 59 || l > 23) return C;
734
733
  if (a === "*" && o === "*" && i === "*")
735
734
  return {
736
735
  ok: !0,
737
736
  value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !1 }
738
737
  };
739
738
  if (a === "*" && o === "*" && !i.includes("#") && !i.endsWith("L")) {
740
- const u = i.split(",").map((E) => se.get(E));
741
- if (u.some((E) => E === void 0)) return x;
742
- const p = u, g = ue(p);
743
- return !g || g.some((E, A) => E !== p[A]) ? x : g.length === U.length && g.every((E, A) => E === U[A]) ? {
739
+ const f = i.split(",").map((E) => se.get(E));
740
+ if (f.some((E) => E === void 0)) return C;
741
+ const p = f, g = fe(p);
742
+ return !g || g.some((E, A) => E !== p[A]) ? C : g.length === U.length && g.every((E, A) => E === U[A]) ? {
744
743
  ok: !0,
745
744
  value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !0 }
746
745
  } : {
@@ -748,11 +747,11 @@ function ye(e) {
748
747
  value: { frequency: "weekly", hour: l, minute: c, weekdays: g }
749
748
  };
750
749
  }
751
- const m = xt(a);
752
- if (!m) return x;
750
+ const m = Ct(a);
751
+ if (!m) return C;
753
752
  if (o !== "*" && i === "*") {
754
- const s = Ct(o), u = O(m.interval, m.startMonth);
755
- return !s || !he(s, u) ? x : {
753
+ const s = xt(o), f = O(m.interval, m.startMonth);
754
+ return !s || !he(s, f) ? C : {
756
755
  ok: !0,
757
756
  value: {
758
757
  frequency: "monthly",
@@ -774,9 +773,9 @@ function ye(e) {
774
773
  ...m,
775
774
  on: { type: "weekday", ...s }
776
775
  }
777
- } : x;
776
+ } : C;
778
777
  }
779
- return x;
778
+ return C;
780
779
  }
781
780
  function St(e, n, t) {
782
781
  return new Intl.DateTimeFormat(t, {
@@ -813,7 +812,7 @@ function wt(e, n, t) {
813
812
  const o = O(e, n).map((a) => r(a, "short")).join(", ");
814
813
  return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
815
814
  }
816
- function nr(e, n, t = "en-US") {
815
+ function tr(e, n, t = "en-US") {
817
816
  const r = ye(e);
818
817
  if (!r.ok) return null;
819
818
  try {
@@ -831,7 +830,7 @@ function nr(e, n, t = "en-US") {
831
830
  case "monthly": {
832
831
  const l = wt(o.interval, o.startMonth, t);
833
832
  if (o.on.type === "weekday")
834
- return `On the ${fe[o.on.ordinal]} ${c(o.on.weekday)} of ${l} ${i}`;
833
+ return `On the ${ue[o.on.ordinal]} ${c(o.on.weekday)} of ${l} ${i}`;
835
834
  const m = o.on.days.map(
836
835
  (s) => s === "last" ? "last day" : At(s)
837
836
  );
@@ -846,7 +845,7 @@ const ge = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
846
845
  function Dt(e, n) {
847
846
  return e === "last" || n.some((t) => e <= ge[t]);
848
847
  }
849
- function rr(e) {
848
+ function nr(e) {
850
849
  if (e.frequency !== "monthly" || e.on.type !== "days") return null;
851
850
  const n = e.on.days.filter((o) => o !== "last");
852
851
  if (n.length === 0) return null;
@@ -875,7 +874,7 @@ function Ot(e, n, t, r) {
875
874
  }
876
875
  }
877
876
  }
878
- function or(e, n, t, r) {
877
+ function rr(e, n, t, r) {
879
878
  const o = ye(e);
880
879
  if (!o.ok || !vt(n)) return [];
881
880
  const a = o.value, i = new Intl.DateTimeFormat("en-US", {
@@ -887,8 +886,8 @@ function or(e, n, t, r) {
887
886
  hour: "numeric",
888
887
  minute: "numeric"
889
888
  }).formatToParts(t), c = (s) => {
890
- var u;
891
- return Number((u = i.find((p) => p.type === s)) == null ? void 0 : u.value);
889
+ var f;
890
+ return Number((f = i.find((p) => p.type === s)) == null ? void 0 : f.value);
892
891
  }, l = new Date(Date.UTC(c("year"), c("month") - 1, c("day")));
893
892
  c("hour") * 60 + c("minute") >= a.hour * 60 + a.minute && l.setUTCDate(l.getUTCDate() + 1);
894
893
  const m = [];
@@ -928,7 +927,7 @@ function Bt(e) {
928
927
  diagnostic: n.diagnostic
929
928
  };
930
929
  }
931
- function ar(e) {
930
+ function or(e) {
932
931
  if (!e || typeof e != "object" || Array.isArray(e)) return [];
933
932
  const n = e.omittedAttachments;
934
933
  return Array.isArray(n) ? n.flatMap((t) => {
@@ -936,10 +935,10 @@ function ar(e) {
936
935
  return r ? [r] : [];
937
936
  }) : [];
938
937
  }
939
- function ir(e) {
938
+ function ar(e) {
940
939
  return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
941
940
  }
942
- function cr(e) {
941
+ function ir(e) {
943
942
  return e.canCreate ? [
944
943
  ...e.scheduledReportAvailable ? ["scheduled_report"] : [],
945
944
  ...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
@@ -952,7 +951,7 @@ function Mt(e) {
952
951
  function Lt(e) {
953
952
  return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && Mt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
954
953
  }
955
- function lr(e) {
954
+ function cr(e) {
956
955
  const n = Lt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
957
956
  return {
958
957
  typeLabel: n,
@@ -960,7 +959,7 @@ function lr(e) {
960
959
  pluralNoun: t === "report" ? "reports" : "briefings"
961
960
  };
962
961
  }
963
- const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, f = {
962
+ const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, u = {
964
963
  name: 500,
965
964
  description: 2e3,
966
965
  instruction: 5e4,
@@ -980,9 +979,9 @@ const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, f = {
980
979
  maxBlocks: 50,
981
980
  maxTableRows: 100,
982
981
  maxTableColumns: 20,
983
- maxTableCellCharacters: f.contentCell,
984
- maxParagraphCharacters: f.contentText,
985
- maxFindingCharacters: f.contentText,
982
+ maxTableCellCharacters: u.contentCell,
983
+ maxParagraphCharacters: u.contentText,
984
+ maxFindingCharacters: u.contentText,
986
985
  maxListItems: 100,
987
986
  // A kpi_grid is rendered as a 2-up tile arrangement in emails. Cap at 8 so
988
987
  // the visual stays at most 4 rows (4 columns wide on desktop would force
@@ -1004,7 +1003,7 @@ function Pt(e) {
1004
1003
  function Vt(e) {
1005
1004
  return e == null ? "" : Pt(e) ? Ne(e.value, e.format) : String(e);
1006
1005
  }
1007
- function dr(e) {
1006
+ function lr(e) {
1008
1007
  return [e.delta, e.percentChange].filter(
1009
1008
  (n) => n != null
1010
1009
  ).map(Vt).filter(Boolean).join(" / ");
@@ -1141,7 +1140,7 @@ function en(e, n, t) {
1141
1140
  return Number(e);
1142
1141
  }
1143
1142
  }
1144
- function C(e, n, t, r = {}) {
1143
+ function x(e, n, t, r = {}) {
1145
1144
  if (e == null)
1146
1145
  return r.required ? (d(t, n, "Expected at least one evidence id."), []) : void 0;
1147
1146
  if (!Array.isArray(e))
@@ -1151,7 +1150,7 @@ function C(e, n, t, r = {}) {
1151
1150
  const c = b(
1152
1151
  a,
1153
1152
  `${n}.${i}`,
1154
- f.id,
1153
+ u.id,
1155
1154
  t
1156
1155
  );
1157
1156
  c && !o.includes(c) && o.push(c);
@@ -1175,7 +1174,7 @@ function Ee(e, n) {
1175
1174
  dashboardId: b(
1176
1175
  t.dashboardId,
1177
1176
  "source.dashboardId",
1178
- f.id,
1177
+ u.id,
1179
1178
  n
1180
1179
  )
1181
1180
  }) : (d(n, "source.type", "Expected project or dashboard."), { type: "project" });
@@ -1187,7 +1186,7 @@ function $e(e, n) {
1187
1186
  instruction: b(
1188
1187
  t.instruction,
1189
1188
  "body.instruction",
1190
- f.instruction,
1189
+ u.instruction,
1191
1190
  n
1192
1191
  )
1193
1192
  }) : r === "custom_message" ? (h(t, "body", ["type", "message"], n), {
@@ -1195,7 +1194,7 @@ function $e(e, n) {
1195
1194
  message: Qt(
1196
1195
  t.message,
1197
1196
  "body.message",
1198
- f.customMessage,
1197
+ u.customMessage,
1199
1198
  n
1200
1199
  )
1201
1200
  }) : r === "none" ? (h(t, "body", ["type"], n), { type: "none" }) : (d(
@@ -1228,7 +1227,7 @@ function rn(e, n) {
1228
1227
  t.includes(r) || t.push(r);
1229
1228
  }), t;
1230
1229
  }
1231
- function xe(e, n) {
1230
+ function Ce(e, n) {
1232
1231
  if (e == null)
1233
1232
  return {
1234
1233
  artifactFormats: [...G],
@@ -1270,17 +1269,17 @@ function xe(e, n) {
1270
1269
  }, o = I(
1271
1270
  t.audience,
1272
1271
  "presentation.audience",
1273
- f.presentationAudience,
1272
+ u.presentationAudience,
1274
1273
  n
1275
1274
  ), a = I(
1276
1275
  t.tone,
1277
1276
  "presentation.tone",
1278
- f.presentationTone,
1277
+ u.presentationTone,
1279
1278
  n
1280
1279
  ), i = I(
1281
1280
  t.format,
1282
1281
  "presentation.format",
1283
- f.presentationFormat,
1282
+ u.presentationFormat,
1284
1283
  n
1285
1284
  );
1286
1285
  o && (r.audience = o), a && (r.tone = a), i && (r.format = i);
@@ -1296,7 +1295,7 @@ function on(e, n, t) {
1296
1295
  (r, o) => b(
1297
1296
  r,
1298
1297
  `${n}.${o}`,
1299
- f.contentItem,
1298
+ u.contentItem,
1300
1299
  t
1301
1300
  )
1302
1301
  ).filter(Boolean)) : (d(t, n, "Expected an array."), []);
@@ -1309,7 +1308,7 @@ function an(e, n, t) {
1309
1308
  metricId: b(
1310
1309
  r.metricId,
1311
1310
  `${n}.metricId`,
1312
- f.id,
1311
+ u.id,
1313
1312
  t
1314
1313
  )
1315
1314
  };
@@ -1319,7 +1318,7 @@ function an(e, n, t) {
1319
1318
  columnKey: b(
1320
1319
  r.columnKey,
1321
1320
  `${n}.columnKey`,
1322
- f.id,
1321
+ u.id,
1323
1322
  t
1324
1323
  )
1325
1324
  };
@@ -1329,7 +1328,7 @@ function an(e, n, t) {
1329
1328
  measureId: b(
1330
1329
  r.measureId,
1331
1330
  `${n}.measureId`,
1332
- f.id,
1331
+ u.id,
1333
1332
  t
1334
1333
  )
1335
1334
  };
@@ -1339,7 +1338,7 @@ function an(e, n, t) {
1339
1338
  "Expected metric, column, or matrix_measure."
1340
1339
  );
1341
1340
  }
1342
- function Ce(e, n, t) {
1341
+ function xe(e, n, t) {
1343
1342
  if (e === null || typeof e != "object" || Array.isArray(e))
1344
1343
  return;
1345
1344
  const r = v(e, n, t);
@@ -1370,7 +1369,7 @@ function w(e, n, t) {
1370
1369
  }
1371
1370
  return e;
1372
1371
  }
1373
- const r = Ce(e, n, t);
1372
+ const r = xe(e, n, t);
1374
1373
  if (r) return r;
1375
1374
  d(
1376
1375
  t,
@@ -1380,12 +1379,12 @@ function w(e, n, t) {
1380
1379
  }
1381
1380
  function cn(e, n, t) {
1382
1381
  if (e === null || typeof e == "string" || typeof e == "number" || typeof e == "boolean")
1383
- return typeof e == "string" && e.length > f.contentCell ? (d(
1382
+ return typeof e == "string" && e.length > u.contentCell ? (d(
1384
1383
  t,
1385
1384
  n,
1386
- `Must be ${f.contentCell} characters or fewer.`
1387
- ), e.slice(0, f.contentCell)) : typeof e == "number" && !Number.isFinite(e) ? (d(t, n, "Expected a finite number."), null) : e;
1388
- const r = Ce(e, n, t);
1385
+ `Must be ${u.contentCell} characters or fewer.`
1386
+ ), e.slice(0, u.contentCell)) : typeof e == "number" && !Number.isFinite(e) ? (d(t, n, "Expected a finite number."), null) : e;
1387
+ const r = xe(e, n, t);
1389
1388
  return r || (d(
1390
1389
  t,
1391
1390
  n,
@@ -1407,14 +1406,14 @@ function ln(e, n, t) {
1407
1406
  const l = b(
1408
1407
  c.key,
1409
1408
  `${i}.key`,
1410
- f.id,
1409
+ u.id,
1411
1410
  t
1412
1411
  );
1413
1412
  l && (r.has(l) && d(t, `${i}.key`, "Column key must be unique."), r.add(l));
1414
1413
  const m = b(
1415
1414
  c.label,
1416
1415
  `${i}.label`,
1417
- f.contentTitle,
1416
+ u.contentTitle,
1418
1417
  t
1419
1418
  ), s = k(
1420
1419
  c.kind,
@@ -1422,7 +1421,7 @@ function ln(e, n, t) {
1422
1421
  Zt,
1423
1422
  "text, number, currency, percent, date, or boolean",
1424
1423
  t
1425
- ), u = k(
1424
+ ), f = k(
1426
1425
  c.align,
1427
1426
  `${i}.align`,
1428
1427
  Yt,
@@ -1433,7 +1432,7 @@ function ln(e, n, t) {
1433
1432
  key: l,
1434
1433
  label: m,
1435
1434
  ...s ? { kind: s } : {},
1436
- ...u ? { align: u } : {}
1435
+ ...f ? { align: f } : {}
1437
1436
  };
1438
1437
  });
1439
1438
  }
@@ -1464,13 +1463,13 @@ function sn(e, n, t) {
1464
1463
  h(o, r, ["type", "text", "level", "evidenceIds"], t);
1465
1464
  const i = o.level === void 0 || o.level === null ? void 0 : o.level === 2 || o.level === 3 ? o.level : void 0;
1466
1465
  o.level !== void 0 && o.level !== null && i === void 0 && d(t, `${r}.level`, "Expected 2 or 3.");
1467
- const c = C(o.evidenceIds, `${r}.evidenceIds`, t);
1466
+ const c = x(o.evidenceIds, `${r}.evidenceIds`, t);
1468
1467
  return {
1469
1468
  type: "heading",
1470
1469
  text: b(
1471
1470
  o.text,
1472
1471
  `${r}.text`,
1473
- f.contentTitle,
1472
+ u.contentTitle,
1474
1473
  t
1475
1474
  ),
1476
1475
  ...i ? { level: i } : {},
@@ -1479,13 +1478,13 @@ function sn(e, n, t) {
1479
1478
  }
1480
1479
  if (a === "paragraph") {
1481
1480
  h(o, r, ["type", "text", "evidenceIds"], t);
1482
- const i = C(o.evidenceIds, `${r}.evidenceIds`, t);
1481
+ const i = x(o.evidenceIds, `${r}.evidenceIds`, t);
1483
1482
  return {
1484
1483
  type: "paragraph",
1485
1484
  text: b(
1486
1485
  o.text,
1487
1486
  `${r}.text`,
1488
- f.contentText,
1487
+ u.contentText,
1489
1488
  t
1490
1489
  ),
1491
1490
  ...i ? { evidenceIds: i } : {}
@@ -1496,7 +1495,7 @@ function sn(e, n, t) {
1496
1495
  const i = I(
1497
1496
  o.title,
1498
1497
  `${r}.title`,
1499
- f.contentTitle,
1498
+ u.contentTitle,
1500
1499
  t
1501
1500
  ), c = k(
1502
1501
  o.severity,
@@ -1511,11 +1510,11 @@ function sn(e, n, t) {
1511
1510
  text: b(
1512
1511
  o.text,
1513
1512
  `${r}.text`,
1514
- f.contentText,
1513
+ u.contentText,
1515
1514
  t
1516
1515
  ),
1517
1516
  ...c ? { severity: c } : {},
1518
- evidenceIds: C(o.evidenceIds, `${r}.evidenceIds`, t, {
1517
+ evidenceIds: x(o.evidenceIds, `${r}.evidenceIds`, t, {
1519
1518
  required: !0
1520
1519
  }) ?? []
1521
1520
  };
@@ -1525,9 +1524,9 @@ function sn(e, n, t) {
1525
1524
  const i = I(
1526
1525
  o.title,
1527
1526
  `${r}.title`,
1528
- f.contentTitle,
1527
+ u.contentTitle,
1529
1528
  t
1530
- ), c = C(o.evidenceIds, `${r}.evidenceIds`, t);
1529
+ ), c = x(o.evidenceIds, `${r}.evidenceIds`, t);
1531
1530
  return {
1532
1531
  type: a,
1533
1532
  ...i ? { title: i } : {},
@@ -1572,15 +1571,15 @@ function sn(e, n, t) {
1572
1571
  ), s = I(
1573
1572
  o.unit,
1574
1573
  `${r}.unit`,
1575
- f.contentTitle,
1574
+ u.contentTitle,
1576
1575
  t
1577
- ), u = C(o.evidenceIds, `${r}.evidenceIds`, t);
1576
+ ), f = x(o.evidenceIds, `${r}.evidenceIds`, t);
1578
1577
  return {
1579
1578
  type: "metric",
1580
1579
  label: b(
1581
1580
  o.label,
1582
1581
  `${r}.label`,
1583
- f.contentTitle,
1582
+ u.contentTitle,
1584
1583
  t
1585
1584
  ),
1586
1585
  value: i,
@@ -1588,7 +1587,7 @@ function sn(e, n, t) {
1588
1587
  ...l !== void 0 ? { delta: l } : {},
1589
1588
  ...m !== void 0 ? { percentChange: m } : {},
1590
1589
  ...s ? { unit: s } : {},
1591
- ...u ? { evidenceIds: u } : {}
1590
+ ...f ? { evidenceIds: f } : {}
1592
1591
  };
1593
1592
  }
1594
1593
  if (a === "kpi_grid") {
@@ -1596,7 +1595,7 @@ function sn(e, n, t) {
1596
1595
  const i = I(
1597
1596
  o.title,
1598
1597
  `${r}.title`,
1599
- f.contentTitle,
1598
+ u.contentTitle,
1600
1599
  t
1601
1600
  ), c = Array.isArray(o.tiles) ? o.tiles : [];
1602
1601
  Array.isArray(o.tiles) || d(t, `${r}.tiles`, "Expected an array."), c.length === 0 && d(t, `${r}.tiles`, "Expected at least one tile."), c.length > $.maxKpiTiles && d(
@@ -1604,8 +1603,8 @@ function sn(e, n, t) {
1604
1603
  `${r}.tiles`,
1605
1604
  `Must have ${$.maxKpiTiles} tiles or fewer.`
1606
1605
  );
1607
- const l = c.slice(0, $.maxKpiTiles).map((s, u) => {
1608
- const p = `${r}.tiles.${u}`, g = v(s, p, t);
1606
+ const l = c.slice(0, $.maxKpiTiles).map((s, f) => {
1607
+ const p = `${r}.tiles.${f}`, g = v(s, p, t);
1609
1608
  h(
1610
1609
  g,
1611
1610
  p,
@@ -1645,9 +1644,9 @@ function sn(e, n, t) {
1645
1644
  ), te = I(
1646
1645
  g.unit,
1647
1646
  `${p}.unit`,
1648
- f.contentTitle,
1647
+ u.contentTitle,
1649
1648
  t
1650
- ), ne = C(
1649
+ ), ne = x(
1651
1650
  g.evidenceIds,
1652
1651
  `${p}.evidenceIds`,
1653
1652
  t
@@ -1656,7 +1655,7 @@ function sn(e, n, t) {
1656
1655
  label: b(
1657
1656
  g.label,
1658
1657
  `${p}.label`,
1659
- f.contentTitle,
1658
+ u.contentTitle,
1660
1659
  t
1661
1660
  ),
1662
1661
  value: E,
@@ -1666,7 +1665,7 @@ function sn(e, n, t) {
1666
1665
  ...te ? { unit: te } : {},
1667
1666
  ...ne ? { evidenceIds: ne } : {}
1668
1667
  };
1669
- }), m = C(
1668
+ }), m = x(
1670
1669
  o.evidenceIds,
1671
1670
  `${r}.evidenceIds`,
1672
1671
  t
@@ -1685,15 +1684,15 @@ function sn(e, n, t) {
1685
1684
  const c = I(
1686
1685
  o.detail,
1687
1686
  `${r}.detail`,
1688
- f.contentText,
1687
+ u.contentText,
1689
1688
  t
1690
- ), l = C(o.evidenceIds, `${r}.evidenceIds`, t);
1689
+ ), l = x(o.evidenceIds, `${r}.evidenceIds`, t);
1691
1690
  return {
1692
1691
  type: "progress",
1693
1692
  label: b(
1694
1693
  o.label,
1695
1694
  `${r}.label`,
1696
- f.contentTitle,
1695
+ u.contentTitle,
1697
1696
  t
1698
1697
  ),
1699
1698
  value: i,
@@ -1711,23 +1710,23 @@ function sn(e, n, t) {
1711
1710
  const i = ln(o.columns, `${r}.columns`, t), c = I(
1712
1711
  o.title,
1713
1712
  `${r}.title`,
1714
- f.contentTitle,
1713
+ u.contentTitle,
1715
1714
  t
1716
1715
  ), l = I(
1717
1716
  o.id,
1718
1717
  `${r}.id`,
1719
- f.id,
1718
+ u.id,
1720
1719
  t
1721
1720
  ), m = I(
1722
1721
  o.caption,
1723
1722
  `${r}.caption`,
1724
- f.contentItem,
1723
+ u.contentItem,
1725
1724
  t
1726
1725
  ), s = en(
1727
1726
  o.totalRows,
1728
1727
  `${r}.totalRows`,
1729
1728
  t
1730
- ), u = C(o.evidenceIds, `${r}.evidenceIds`, t);
1729
+ ), f = x(o.evidenceIds, `${r}.evidenceIds`, t);
1731
1730
  return {
1732
1731
  type: "table",
1733
1732
  ...l ? { id: l } : {},
@@ -1736,7 +1735,7 @@ function sn(e, n, t) {
1736
1735
  rows: dn(o.rows, `${r}.rows`, i, t),
1737
1736
  ...m ? { caption: m } : {},
1738
1737
  ...s !== void 0 ? { totalRows: s } : {},
1739
- ...u ? { evidenceIds: u } : {}
1738
+ ...f ? { evidenceIds: f } : {}
1740
1739
  };
1741
1740
  }
1742
1741
  if (a === "evidence_appendix") {
@@ -1744,13 +1743,13 @@ function sn(e, n, t) {
1744
1743
  const i = I(
1745
1744
  o.title,
1746
1745
  `${r}.title`,
1747
- f.contentTitle,
1746
+ u.contentTitle,
1748
1747
  t
1749
1748
  );
1750
1749
  return {
1751
1750
  type: "evidence_appendix",
1752
1751
  ...i ? { title: i } : {},
1753
- evidenceIds: C(o.evidenceIds, `${r}.evidenceIds`, t, {
1752
+ evidenceIds: x(o.evidenceIds, `${r}.evidenceIds`, t, {
1754
1753
  required: !0
1755
1754
  }) ?? []
1756
1755
  };
@@ -1760,14 +1759,14 @@ function sn(e, n, t) {
1760
1759
  const i = I(
1761
1760
  o.title,
1762
1761
  `${r}.title`,
1763
- f.contentTitle,
1762
+ u.contentTitle,
1764
1763
  t
1765
1764
  ), c = b(
1766
1765
  o.sql,
1767
1766
  `${r}.sql`,
1768
- f.contentSql,
1767
+ u.contentSql,
1769
1768
  t
1770
- ), l = C(o.evidenceIds, `${r}.evidenceIds`, t);
1769
+ ), l = x(o.evidenceIds, `${r}.evidenceIds`, t);
1771
1770
  return {
1772
1771
  type: "sql",
1773
1772
  ...i ? { title: i } : {},
@@ -1790,12 +1789,12 @@ function mn(e) {
1790
1789
  const r = I(
1791
1790
  t.title,
1792
1791
  "content.title",
1793
- f.contentTitle,
1792
+ u.contentTitle,
1794
1793
  n
1795
1794
  ), o = I(
1796
1795
  t.summary,
1797
1796
  "content.summary",
1798
- f.contentSummary,
1797
+ u.contentSummary,
1799
1798
  n
1800
1799
  );
1801
1800
  Array.isArray(t.blocks) || d(n, "content.blocks", "Expected an array.");
@@ -1813,7 +1812,7 @@ function mn(e) {
1813
1812
  blocks: i
1814
1813
  };
1815
1814
  }
1816
- function sr(e) {
1815
+ function dr(e) {
1817
1816
  try {
1818
1817
  return {
1819
1818
  valid: !0,
@@ -1836,7 +1835,7 @@ function k(e, n, t, r, o) {
1836
1835
  d(o, n, `Expected ${r}.`);
1837
1836
  }
1838
1837
  }
1839
- function fn(e, n, t) {
1838
+ function un(e, n, t) {
1840
1839
  if (e != null) {
1841
1840
  if (!Array.isArray(e)) {
1842
1841
  d(t, n, "Expected an array.");
@@ -1845,7 +1844,7 @@ function fn(e, n, t) {
1845
1844
  return e;
1846
1845
  }
1847
1846
  }
1848
- function un(e, n, t) {
1847
+ function fn(e, n, t) {
1849
1848
  if (e != null) {
1850
1849
  if (!ve(e)) {
1851
1850
  d(t, n, "Expected an object.");
@@ -1863,8 +1862,8 @@ function pn(e, n, t) {
1863
1862
  if (r.matrix !== void 0) {
1864
1863
  const s = v(r.matrix, `${n}.matrix`, t);
1865
1864
  h(s, `${n}.matrix`, ["config", "content"], t);
1866
- const u = Me.safeParse(s.config);
1867
- u.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
1865
+ const f = Me.safeParse(s.config);
1866
+ f.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
1868
1867
  const p = k(
1869
1868
  s.content,
1870
1869
  `${n}.matrix.content`,
@@ -1872,7 +1871,7 @@ function pn(e, n, t) {
1872
1871
  "current, all, or flat",
1873
1872
  t
1874
1873
  );
1875
- p || d(t, `${n}.matrix.content`, "Choose Matrix export content."), u.success && p && (o.matrix = { config: u.data, content: p });
1874
+ p || d(t, `${n}.matrix.content`, "Choose Matrix export content."), f.success && p && (o.matrix = { config: f.data, content: p });
1876
1875
  }
1877
1876
  const a = k(
1878
1877
  r.pageSize,
@@ -1927,13 +1926,13 @@ function pn(e, n, t) {
1927
1926
  "cardType",
1928
1927
  "theme"
1929
1928
  ]) {
1930
- const u = I(
1929
+ const f = I(
1931
1930
  r[s],
1932
1931
  `${n}.${s}`,
1933
- f.id,
1932
+ u.id,
1934
1933
  t
1935
1934
  );
1936
- u && (o[s] = u);
1935
+ f && (o[s] = f);
1937
1936
  }
1938
1937
  for (const s of [
1939
1938
  "filterValues",
@@ -1943,8 +1942,8 @@ function pn(e, n, t) {
1943
1942
  "cardControlDefinitions",
1944
1943
  "controlBindings"
1945
1944
  ]) {
1946
- const u = fn(r[s], `${n}.${s}`, t);
1947
- u && (o[s] = u);
1945
+ const f = un(r[s], `${n}.${s}`, t);
1946
+ f && (o[s] = f);
1948
1947
  }
1949
1948
  for (const s of [
1950
1949
  "controlValues",
@@ -1952,8 +1951,8 @@ function pn(e, n, t) {
1952
1951
  "dashboardInputExecutionSnapshot",
1953
1952
  "printInputCapture"
1954
1953
  ]) {
1955
- const u = un(r[s], `${n}.${s}`, t);
1956
- u && (o[s] = u);
1954
+ const f = fn(r[s], `${n}.${s}`, t);
1955
+ f && (o[s] = f);
1957
1956
  }
1958
1957
  return Object.keys(o).length > 0 ? o : void 0;
1959
1958
  }
@@ -1961,7 +1960,7 @@ function q(e, n, t, r) {
1961
1960
  const o = I(
1962
1961
  n,
1963
1962
  t,
1964
- f.attachmentTitle,
1963
+ u.attachmentTitle,
1965
1964
  r
1966
1965
  );
1967
1966
  return o && (e.title = o), e;
@@ -1989,7 +1988,7 @@ function hn(e, n, t) {
1989
1988
  dashboardId: b(
1990
1989
  o.dashboardId,
1991
1990
  `${r}.dashboardId`,
1992
- f.id,
1991
+ u.id,
1993
1992
  t
1994
1993
  ),
1995
1994
  format: L(o.format, `${r}.format`, ["pdf"], t)
@@ -2013,13 +2012,13 @@ function hn(e, n, t) {
2013
2012
  dashboardId: b(
2014
2013
  o.dashboardId,
2015
2014
  `${r}.dashboardId`,
2016
- f.id,
2015
+ u.id,
2017
2016
  t
2018
2017
  ),
2019
2018
  sheetId: b(
2020
2019
  o.sheetId,
2021
2020
  `${r}.sheetId`,
2022
- f.id,
2021
+ u.id,
2023
2022
  t
2024
2023
  ),
2025
2024
  format: L(
@@ -2050,13 +2049,13 @@ function hn(e, n, t) {
2050
2049
  dashboardId: b(
2051
2050
  o.dashboardId,
2052
2051
  `${r}.dashboardId`,
2053
- f.id,
2052
+ u.id,
2054
2053
  t
2055
2054
  ),
2056
2055
  cardId: b(
2057
2056
  o.cardId,
2058
2057
  `${r}.cardId`,
2059
- f.id,
2058
+ u.id,
2060
2059
  t
2061
2060
  ),
2062
2061
  format: L(
@@ -2204,7 +2203,7 @@ function Ae(e) {
2204
2203
  m instanceof Error ? m.message : "Invalid presentation snapshot."
2205
2204
  );
2206
2205
  }
2207
- const o = Ee(t.source, n), a = $e(t.body, n), i = Te(t.attachments, n), c = xe(t.presentation, n), l = Se(t.limits, n);
2206
+ const o = Ee(t.source, n), a = $e(t.body, n), i = Te(t.attachments, n), c = Ce(t.presentation, n), l = Se(t.limits, n);
2208
2207
  return ke(a, i, n), gn(
2209
2208
  r == null ? void 0 : r.resolvedFormats,
2210
2209
  i,
@@ -2219,7 +2218,7 @@ function Ae(e) {
2219
2218
  ...l ? { limits: l } : {}
2220
2219
  };
2221
2220
  }
2222
- function mr(e) {
2221
+ function sr(e) {
2223
2222
  return Ae({
2224
2223
  ...e,
2225
2224
  kind: H
@@ -2232,12 +2231,12 @@ function J(e, n, t, r = "deliveryConfig.recipients") {
2232
2231
  const c = b(
2233
2232
  a.address,
2234
2233
  `${o}.address`,
2235
- f.id,
2234
+ u.id,
2236
2235
  t
2237
2236
  ), l = I(
2238
2237
  a.name,
2239
2238
  `${o}.name`,
2240
- f.attachmentTitle,
2239
+ u.attachmentTitle,
2241
2240
  t
2242
2241
  );
2243
2242
  return c && !nn(c) && d(t, `${o}.address`, "Email address is invalid."), {
@@ -2251,7 +2250,7 @@ function J(e, n, t, r = "deliveryConfig.recipients") {
2251
2250
  userId: b(
2252
2251
  a.userId,
2253
2252
  `${o}.userId`,
2254
- f.id,
2253
+ u.id,
2255
2254
  t
2256
2255
  )
2257
2256
  }) : i === "tenant_user" ? (h(a, o, ["type", "tenantUserId"], t), {
@@ -2259,7 +2258,7 @@ function J(e, n, t, r = "deliveryConfig.recipients") {
2259
2258
  tenantUserId: b(
2260
2259
  a.tenantUserId,
2261
2260
  `${o}.tenantUserId`,
2262
- f.id,
2261
+ u.id,
2263
2262
  t
2264
2263
  )
2265
2264
  }) : i === "group" ? (h(a, o, ["type", "groupId"], t), {
@@ -2267,7 +2266,7 @@ function J(e, n, t, r = "deliveryConfig.recipients") {
2267
2266
  groupId: b(
2268
2267
  a.groupId,
2269
2268
  `${o}.groupId`,
2270
- f.id,
2269
+ u.id,
2271
2270
  t
2272
2271
  )
2273
2272
  }) : (d(
@@ -2344,7 +2343,7 @@ function $n(e, n, t) {
2344
2343
  const a = I(
2345
2344
  r.channelName,
2346
2345
  `${n}.channelName`,
2347
- f.attachmentTitle,
2346
+ u.attachmentTitle,
2348
2347
  t
2349
2348
  ), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : _(
2350
2349
  r.isPrivate,
@@ -2357,7 +2356,7 @@ function $n(e, n, t) {
2357
2356
  channelId: b(
2358
2357
  r.channelId,
2359
2358
  `${n}.channelId`,
2360
- f.id,
2359
+ u.id,
2361
2360
  t
2362
2361
  ),
2363
2362
  ...a ? { channelName: a } : {},
@@ -2373,7 +2372,7 @@ function $n(e, n, t) {
2373
2372
  recipient: J(r.recipient, 0, t, `${n}.recipient`)
2374
2373
  }) : (d(t, `${n}.type`, "Expected channel."), { type: "channel", channelId: "" });
2375
2374
  }
2376
- function xn(e, n, t) {
2375
+ function Cn(e, n, t) {
2377
2376
  if (e == null)
2378
2377
  return;
2379
2378
  if (!Array.isArray(e)) {
@@ -2385,7 +2384,7 @@ function xn(e, n, t) {
2385
2384
  );
2386
2385
  return r.length > 0 ? r : void 0;
2387
2386
  }
2388
- function Cn(e, n, t) {
2387
+ function xn(e, n, t) {
2389
2388
  if (e == null)
2390
2389
  return;
2391
2390
  const r = v(e, n, t);
@@ -2401,7 +2400,7 @@ function Cn(e, n, t) {
2401
2400
  ],
2402
2401
  t
2403
2402
  );
2404
- const o = xn(
2403
+ const o = Cn(
2405
2404
  r.threadMentions,
2406
2405
  `${n}.threadMentions`,
2407
2406
  t
@@ -2479,7 +2478,7 @@ function Tn(e, n, t) {
2479
2478
  r.webhookConfig,
2480
2479
  `${n}.webhookConfig`,
2481
2480
  t
2482
- ), s = Cn(
2481
+ ), s = xn(
2483
2482
  r.slackConfig,
2484
2483
  `${n}.slackConfig`,
2485
2484
  t
@@ -2527,7 +2526,7 @@ function kn(e, n) {
2527
2526
  );
2528
2527
  const r = Sn(t.channelConfigs, n), o = bn(t.recipients, n), a = In(t.channels, n), i = ((m = (l = r == null ? void 0 : r.SLACK) == null ? void 0 : l.slackConfig) == null ? void 0 : m.destination.type) === "channel" && !!r.SLACK.slackConfig.destination.channelId.trim();
2529
2528
  return a.some(
2530
- (u) => u !== "SLACK"
2529
+ (f) => f !== "SLACK"
2531
2530
  ) && o.length === 0 && d(
2532
2531
  n,
2533
2532
  "deliveryConfig.recipients",
@@ -2573,14 +2572,14 @@ function Q(e) {
2573
2572
  const r = b(
2574
2573
  t.name,
2575
2574
  "name",
2576
- f.name,
2575
+ u.name,
2577
2576
  n
2578
2577
  ), o = I(
2579
2578
  t.description,
2580
2579
  "description",
2581
- f.description,
2580
+ u.description,
2582
2581
  n
2583
- ) ?? null, a = I(t.scheduleExpr, "scheduleExpr", 500, n) ?? null, i = I(t.timezone, "timezone", 200, n) ?? "UTC", c = tn(t.status, n), l = Ee(t.source, n), m = $e(t.body, n), s = Te(t.attachments, n), u = xe(t.presentation, n), p = Se(t.limits, n), g = kn(t.deliveryConfig, n);
2582
+ ) ?? null, a = I(t.scheduleExpr, "scheduleExpr", 500, n) ?? null, i = I(t.timezone, "timezone", 200, n) ?? "UTC", c = tn(t.status, n), l = Ee(t.source, n), m = $e(t.body, n), s = Te(t.attachments, n), f = Ce(t.presentation, n), p = Se(t.limits, n), g = kn(t.deliveryConfig, n);
2584
2583
  return ke(m, s, n), Y(n), {
2585
2584
  name: r,
2586
2585
  description: o,
@@ -2590,18 +2589,18 @@ function Q(e) {
2590
2589
  source: l,
2591
2590
  body: m,
2592
2591
  attachments: s,
2593
- presentation: u,
2592
+ presentation: f,
2594
2593
  ...p ? { limits: p } : {},
2595
2594
  deliveryConfig: g
2596
2595
  };
2597
2596
  }
2598
- function fr(e) {
2597
+ function mr(e) {
2599
2598
  return Q(e);
2600
2599
  }
2601
2600
  function ur(e) {
2602
2601
  return Q(e);
2603
2602
  }
2604
- function pr(e) {
2603
+ function fr(e) {
2605
2604
  try {
2606
2605
  return { valid: !0, value: Q(e), issues: [] };
2607
2606
  } catch (n) {
@@ -2610,7 +2609,7 @@ function pr(e) {
2610
2609
  throw n;
2611
2610
  }
2612
2611
  }
2613
- function hr(e) {
2612
+ function pr(e) {
2614
2613
  try {
2615
2614
  return { valid: !0, value: Ae(e), issues: [] };
2616
2615
  } catch (n) {
@@ -2619,7 +2618,7 @@ function hr(e) {
2619
2618
  throw n;
2620
2619
  }
2621
2620
  }
2622
- function yr(e) {
2621
+ function hr(e) {
2623
2622
  return typeof e == "string" && Ie.has(e);
2624
2623
  }
2625
2624
  function we(e) {
@@ -2627,60 +2626,60 @@ function we(e) {
2627
2626
  }
2628
2627
  export {
2629
2628
  X as $,
2630
- f as A,
2629
+ u as A,
2631
2630
  H as B,
2632
2631
  $ as C,
2633
- er as D,
2632
+ Qn as D,
2634
2633
  Pt as E,
2635
2634
  Vt as F,
2636
- dr as G,
2635
+ lr as G,
2637
2636
  be as H,
2638
2637
  P as I,
2639
2638
  mn as J,
2640
- sr as K,
2639
+ dr as K,
2641
2640
  Ae as L,
2642
2641
  z as M,
2643
- mr as N,
2642
+ sr as N,
2644
2643
  Q as O,
2645
- fr as P,
2644
+ mr as P,
2646
2645
  ur as Q,
2647
- pr as R,
2648
- hr as S,
2649
- yr as T,
2646
+ fr as R,
2647
+ pr as S,
2648
+ hr as T,
2650
2649
  we as U,
2651
- Xn as V,
2650
+ Wn as V,
2652
2651
  mt as W,
2653
2652
  lt as X,
2654
- Hn as Y,
2653
+ Kn as Y,
2655
2654
  ct as Z,
2656
2655
  st as _,
2657
- cr as a,
2656
+ ir as a,
2658
2657
  Ft as a0,
2659
2658
  Rt as a1,
2660
2659
  Lt as a2,
2661
2660
  dt as b,
2662
- Wn as c,
2663
- nr as d,
2664
- Zn as e,
2665
- Qn as f,
2666
- lr as g,
2667
- Kn as h,
2668
- Gn as i,
2661
+ Gn as c,
2662
+ tr as d,
2663
+ Xn as e,
2664
+ Jn as f,
2665
+ cr as g,
2666
+ qn as h,
2667
+ Hn as i,
2669
2668
  vt as j,
2670
- tr as k,
2669
+ er as k,
2671
2670
  O as l,
2672
- rr as m,
2671
+ nr as m,
2673
2672
  Dt as n,
2674
- or as o,
2673
+ rr as o,
2675
2674
  ye as p,
2676
2675
  pe as q,
2677
2676
  Mt as r,
2678
- ar as s,
2679
- ir as t,
2680
- ft as u,
2677
+ or as s,
2678
+ ar as t,
2679
+ ut as u,
2681
2680
  de as v,
2682
- Jn as w,
2683
- Yn as x,
2681
+ Yn as w,
2682
+ Zn as x,
2684
2683
  Ut as y,
2685
2684
  G as z
2686
2685
  };