react-semaphor 0.1.560 → 0.1.562

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 (168) hide show
  1. package/dist/analytics-protocol/index.js +450 -423
  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-BaIQrEzX.js} +221 -188
  7. package/dist/chunks/{assistant-chat-Bu2fFm_I.js → assistant-chat-R_yT8xH4.js} +116 -117
  8. package/dist/chunks/bookmark-impact-D4Kl4amw.js +75 -0
  9. package/dist/chunks/bookmark-state-CWeoGbrx.js +743 -0
  10. package/dist/chunks/{braces-Da41xfUd.js → braces-DzgoQC64.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-4FNkMrzE.js → comparison-window-caption-D1EUXzaR.js} +550 -425
  12. package/dist/chunks/{context-BgPDzLHZ.js → context-R31TSL5V.js} +1 -1
  13. package/dist/chunks/{dashboard-_MeBuy67.js → dashboard-Bp1y5oun.js} +1 -1
  14. package/dist/chunks/{dashboard-briefing-launcher-CEi4Pr_v.js → dashboard-briefing-launcher-S5FB3aUW.js} +236 -236
  15. package/dist/chunks/dashboard-controls-CfC_6Ztn.js +2277 -0
  16. package/dist/chunks/{dashboard-json-B1mU_OMa.js → dashboard-json-gYZT7ZQY.js} +5 -5
  17. package/dist/chunks/dates-DFY7Gfss.js +91 -0
  18. package/dist/chunks/{edit-dashboard-visual-0CJN31Y3.js → edit-dashboard-visual-u7OI_g8Q.js} +7119 -7198
  19. package/dist/chunks/filter-reach-copy-CvV7W5dd.js +3965 -0
  20. package/dist/chunks/{filter-value-text-CRC-K_l_.js → filter-value-text-CPwFkrMz.js} +11 -10
  21. package/dist/chunks/global-date-filter-utils-N1kcsOFE.js +16722 -0
  22. package/dist/chunks/{index-DtHidOPV.js → index-CNGkfUp4.js} +269 -264
  23. package/dist/chunks/{layout-grid-BvsH4RY2.js → layout-grid-BM65viQh.js} +1 -1
  24. package/dist/chunks/{list-filter-Dg0otx5E.js → list-filter-BoeLBfL3.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-CM18W8w6.js → matrix-analytical-definition-hEucouWM.js} +4 -4
  26. package/dist/chunks/{matrix-card-HPskLaPy.js → matrix-card-CCh9JjP1.js} +3 -3
  27. package/dist/chunks/{matrix-member-presentation-Bbrfrke4.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
  28. package/dist/chunks/{matrix-operation-contract-WPv4R-H_.js → matrix-operation-contract-DsLdFdSa.js} +365 -349
  29. package/dist/chunks/{metric-comparison-ljMKYZKa.js → metric-comparison-Bnso1cm1.js} +6 -6
  30. package/dist/chunks/{model-change-Ccn1zaxl.js → model-change-T1cRkh3m.js} +1 -1
  31. package/dist/chunks/{palette-Bsh376zO.js → palette-p1XSJFgB.js} +1 -1
  32. package/dist/chunks/pivot-result-contract-expectations-B53jqszr.js +56 -0
  33. package/dist/chunks/{pivot-result-identity-vS9TSh4f.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
  34. package/dist/chunks/{zoned-wall-clock-B1n_WjW3.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
  35. package/dist/chunks/{report-preferences-dialog-BV8L0SeS.js → report-preferences-dialog-C4RAR8u5.js} +68 -63
  36. package/dist/chunks/{report-runtime-context-BZQh9ywy.js → report-runtime-context-BITkNSDa.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-DaDrZGuA.js +8214 -0
  38. package/dist/chunks/{save-B5EAsgQF.js → save-CHV1B1fL.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-n2Wn11cV.js → saved-dashboard-context-DFYBrE6O.js} +93 -94
  40. package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
  41. package/dist/chunks/{selection-reducer-D0YnaAD9.js → selection-reducer-Bz5aywT4.js} +1 -1
  42. package/dist/chunks/{semaphor-ready-indicator-XLBLOJ2V.js → semaphor-ready-indicator-Cfuafnem.js} +38188 -40344
  43. package/dist/chunks/{shelf-drop-preview-context-DHMa54a-.js → shelf-drop-preview-context-BR2GEYog.js} +81 -82
  44. package/dist/chunks/{source-entity-resolution-dUG5VWRm.js → source-entity-resolution-DdDVXFB8.js} +6 -6
  45. package/dist/chunks/{switch-ByxH4M7t.js → switch-BW4yXSYs.js} +3 -3
  46. package/dist/chunks/{table-export-sheet-C_GdeTYU.js → table-export-sheet-bSXxGn-v.js} +1 -1
  47. package/dist/chunks/temporal-input-presentation-sk9gqLi6.js +4960 -0
  48. package/dist/chunks/{token-types-CQtXUVMy.js → token-types-BUK06hU2.js} +1 -1
  49. package/dist/chunks/{upload-wbR-NVzq.js → upload-BnmuyPqW.js} +1 -1
  50. package/dist/chunks/{use-create-flow-overlay-state-CEBaLOKC.js → use-create-flow-overlay-state-DyzhWvRJ.js} +6 -6
  51. package/dist/chunks/{validators-CXTneCA4.js → validators-BIM0FE31.js} +774 -895
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2477 -2685
  54. package/dist/data-app-sdk/index.js +30 -30
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +25 -25
  57. package/dist/format-utils/index.js +274 -267
  58. package/dist/index.js +59 -59
  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/briefings/attachment-outcomes.d.ts +1 -1
  63. package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
  64. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  65. package/dist/types/components/index.d.ts +1 -2
  66. package/dist/types/components/surfboard/filter/types.d.ts +3 -1
  67. package/dist/types/index.js +50 -51
  68. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  69. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
  70. package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
  71. package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
  72. package/dist/types/lib/print/print-inputs.d.ts +2 -1
  73. package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
  74. package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
  75. package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
  76. package/dist/types/lib/stores/editor-store.d.ts +9 -1
  77. package/dist/types/lib/stores/table-actions.d.ts +0 -2
  78. package/dist/types/lib/types/common-types.d.ts +6 -0
  79. package/dist/types/lib/types/explorer-types.d.ts +7 -1
  80. package/dist/types/lib/types/interaction-types.d.ts +3 -1
  81. package/dist/types/lib/types/token-types.d.ts +0 -1
  82. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +13 -1
  83. package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
  84. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  85. package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
  86. package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
  87. package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
  88. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
  89. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  90. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +76 -0
  91. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  92. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  93. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  94. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  95. package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
  96. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  97. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  98. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  99. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +17 -0
  100. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +117 -0
  101. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  102. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  103. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  104. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +51 -0
  105. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +30 -0
  106. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  107. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  108. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3402 -4313
  109. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +49 -8
  110. package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
  111. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
  112. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +52 -2
  113. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
  114. package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
  115. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +1 -8
  116. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +20 -20
  117. package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
  118. package/dist/types/shared/dashboard-authoring/index.d.ts +11 -6
  119. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  120. package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
  121. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
  122. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
  123. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
  124. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
  125. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
  126. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
  127. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
  128. package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
  129. package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
  130. package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
  131. package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
  132. package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
  133. package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
  134. package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
  135. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +73 -3
  136. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -3
  137. package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
  138. package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
  139. package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
  140. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  141. package/dist/types/shared/format-utils/document-print.d.ts +82 -0
  142. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +8 -1
  143. package/dist/types/shared/format-utils/index.d.ts +1 -0
  144. package/dist/types/shared/format-utils/raw-temporal.d.ts +18 -7
  145. package/dist/types/shared/temporal/index.d.ts +1 -0
  146. package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
  147. package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
  148. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
  149. package/package.json +2 -2
  150. package/dist/chunks/bookmark-state-BFY9oNmr.js +0 -111
  151. package/dist/chunks/custom-visual-inputs-Dz-enUNR.js +0 -292
  152. package/dist/chunks/dashboard-controls-Bi7fyG-4.js +0 -2339
  153. package/dist/chunks/document-dashboard-inputs-CkWfDB8c.js +0 -3010
  154. package/dist/chunks/filter-reach-copy-BF4w4kI2.js +0 -3738
  155. package/dist/chunks/global-date-filter-utils-D8365uPH.js +0 -12889
  156. package/dist/chunks/pivot-result-contract-expectations-Bl5suy4-.js +0 -1832
  157. package/dist/chunks/raw-temporal-presentation-BHm7s-hz.js +0 -540
  158. package/dist/chunks/resolve-dashboard-input-context-CAMiWvyR.js +0 -5280
  159. package/dist/chunks/table-settings-Imz0FgWi.js +0 -637
  160. package/dist/chunks/temporal-input-presentation-uvNK_tM0.js +0 -3228
  161. package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
  162. package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
  163. package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
  164. package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
  165. package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
  166. package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
  167. package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
  168. package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
@@ -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 { as as Oe, W as Fe, ag as re, N as le, j as Ne, V as Re, R as N } from "./temporal-input-presentation-sk9gqLi6.js";
5
+ import { a9 as W, H as Me, o as Be } from "./validators-BIM0FE31.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 { ah as Pe, aj as Ve, X as ze } from "./matrix-operation-contract-DsLdFdSa.js";
9
+ import "./analytics-base-schemas-BaIQrEzX.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";
16
- import "./index-CJW5BdWT.js";
12
+ import { Q as qe, R as Ke, S as He, T as Ge, n as We, U as Xe, V as Ze, W as Ye, X as Je, Y as Qe, Z as et, _ as tt, $ as nt } from "./global-date-filter-utils-N1kcsOFE.js";
13
+ import { r as rt } from "./matrix-card-CCh9JjP1.js";
14
+ import { A as ot } from "./bookmark-state-CWeoGbrx.js";
17
15
  import "./index-CuHybtft.js";
18
16
  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";
17
+ import "./index-CJW5BdWT.js";
18
+ import "./context-R31TSL5V.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 = !!rt(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,12 +221,12 @@ 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
- class B extends Error {
229
+ class M extends Error {
231
230
  constructor(t) {
232
231
  const r = t.cardId ? `card "${t.cardId}"` : t.sheetId ? `sheet "${t.sheetId}"` : `dashboard "${t.dashboardId}"`;
233
232
  super(
@@ -238,26 +237,26 @@ 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) {
245
244
  if (a.dashboardId !== e.id)
246
- throw new B(a);
245
+ throw new M(a);
247
246
  const i = (e.sheets || []).filter(
248
247
  (l) => !a.sheetId || a.sheetId === l.id
249
248
  );
250
249
  if (a.sheetId && i.length === 0)
251
- throw new B(a);
250
+ throw new M(a);
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) => ot(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({
@@ -276,7 +275,7 @@ function ut(e, n) {
276
275
  }
277
276
  }
278
277
  if (!c)
279
- throw new B(a);
278
+ throw new M(a);
280
279
  }
281
280
  return t;
282
281
  }
@@ -284,24 +283,24 @@ function pt(e, n) {
284
283
  var i;
285
284
  const t = n ? (i = e.cards) == null ? void 0 : i.find((c) => c.id === n) : de(e);
286
285
  if (!t) return [];
287
- const r = tt(e, t), o = (e.cards || []).filter(
286
+ const r = Qe(e, t), o = (e.cards || []).filter(
288
287
  (c) => {
289
288
  var l;
290
289
  return typeof ((l = c.customCardPreferences) == null ? void 0 : l.slotIndex) == "number";
291
290
  }
292
- ).length > 1, a = r != null && (nt(r) === "multiple" || o);
293
- return !r || !a ? [t] : rt(
294
- ot({
291
+ ).length > 1, a = r != null && (et(r) === "multiple" || o);
292
+ return !r || !a ? [t] : tt(
293
+ nt({
295
294
  frame: e,
296
295
  configCard: r,
297
296
  isMultiInputVisual: !0
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,40 +327,41 @@ 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,
335
334
  detailColumns: p
336
335
  });
337
- for (const E of p) {
338
- const A = Be(E.dataType);
336
+ for (const v of p) {
337
+ const A = Me(v.dataType);
339
338
  if (A !== "date" && A !== "datetime") continue;
340
- const F = g.get(E);
341
- if (!F) throw new B(a);
339
+ const F = g.get(v);
340
+ if (!F) throw new M(a);
342
341
  c.push({
343
342
  scope: a,
344
343
  target: { kind: "column", columnKey: F },
345
344
  format: re({
346
- format: Qe(E),
345
+ // What the table draws: the stored format, or Automatic (ledger P7-07).
346
+ format: Ze(v),
347
347
  preferences: e.valueFormatPreferences,
348
348
  calendar: e.calendar
349
349
  })
350
350
  });
351
351
  }
352
- } else if (l === "freeform" && ((u = n.sql) != null && u.trim()) && !m.trim())
352
+ } else if (l === "freeform" && ((f = n.sql) != null && f.trim()) && !m.trim())
353
353
  for (const [p, g] of Object.entries(
354
- Xe(n)
354
+ Ye(n)
355
355
  )) {
356
356
  if (g.type !== "date") continue;
357
- const E = et(
357
+ const v = Je(
358
358
  g.dateFormat
359
359
  );
360
- E && c.push({
360
+ v && c.push({
361
361
  scope: a,
362
362
  target: { kind: "column", columnKey: p },
363
363
  format: re({
364
- format: E,
364
+ format: v,
365
365
  preferences: e.valueFormatPreferences,
366
366
  calendar: e.calendar
367
367
  })
@@ -451,13 +451,13 @@ function ae(e, n, t) {
451
451
  S(c, `${n}.tokens.color`, l, t);
452
452
  const m = {};
453
453
  l.forEach((s) => {
454
- const u = D(
454
+ const f = D(
455
455
  c[s],
456
456
  `${n}.tokens.color.${s}`,
457
457
  120,
458
458
  t
459
459
  );
460
- u !== void 0 && (m[s] = u);
460
+ f !== void 0 && (m[s] = f);
461
461
  }), i.color = m;
462
462
  }
463
463
  if (a.typography !== void 0) {
@@ -596,7 +596,7 @@ function It(e) {
596
596
  }
597
597
  return { value: t, issues: n };
598
598
  }
599
- const M = [
599
+ const B = [
600
600
  "SUN",
601
601
  "MON",
602
602
  "TUE",
@@ -605,20 +605,20 @@ const M = [
605
605
  "FRI",
606
606
  "SAT"
607
607
  ], se = new Map(
608
- M.map((e, n) => [e, n])
609
- ), U = [1, 2, 3, 4, 5], me = [1, 2, 3, 6, 12], fe = {
608
+ B.map((e, n) => [e, n])
609
+ ), U = [1, 2, 3, 4, 5], me = [1, 2, 3, 6, 12], ue = {
610
610
  1: "first",
611
611
  2: "second",
612
612
  3: "third",
613
613
  4: "fourth",
614
614
  [-1]: "last"
615
- }, er = {
615
+ }, Qn = {
616
616
  frequency: "weekly",
617
617
  hour: 9,
618
618
  minute: 0,
619
619
  weekdays: [1]
620
- }, x = { ok: !1, issue: "Choose a supported schedule." };
621
- function vt(e) {
620
+ }, C = { ok: !1, issue: "Choose a supported schedule." };
621
+ function Et(e) {
622
622
  if (typeof e != "string" || e.length === 0 || e !== e.trim() || /^(?:(?:UTC|GMT)[+-]|[+-]\d{2}:\d{2}$)/.test(e))
623
623
  return !1;
624
624
  try {
@@ -627,10 +627,10 @@ function vt(e) {
627
627
  return !1;
628
628
  }
629
629
  }
630
- function Et(e) {
630
+ function vt(e) {
631
631
  return Number.isInteger(e.minute) && e.minute >= 0 && e.minute <= 59 && Number.isInteger(e.hour) && e.hour >= 0 && e.hour <= 23;
632
632
  }
633
- function ue(e) {
633
+ function fe(e) {
634
634
  if (e.length === 0) return null;
635
635
  const n = [...e].sort((t, r) => t - r);
636
636
  return n.some(
@@ -658,17 +658,17 @@ function $t(e, n) {
658
658
  function he(e, n) {
659
659
  return e.every((t) => Dt(t, n));
660
660
  }
661
- function tr(e) {
662
- if (!Et(e))
661
+ function er(e) {
662
+ if (!vt(e))
663
663
  throw new Error("Choose a valid schedule time.");
664
664
  const n = `${e.minute} ${e.hour}`;
665
665
  switch (e.frequency) {
666
666
  case "daily":
667
- return e.weekdaysOnly ? `${n} * * ${U.map((t) => M[t]).join(",")}` : `${n} * * *`;
667
+ return e.weekdaysOnly ? `${n} * * ${U.map((t) => B[t]).join(",")}` : `${n} * * *`;
668
668
  case "weekly": {
669
- const t = ue(e.weekdays);
669
+ const t = fe(e.weekdays);
670
670
  if (!t) throw new Error("Choose at least one weekday.");
671
- return `${n} * * ${t.map((r) => M[r]).join(",")}`;
671
+ return `${n} * * ${t.map((r) => B[r]).join(",")}`;
672
672
  }
673
673
  case "monthly": {
674
674
  if (!me.includes(e.interval) || !Number.isInteger(e.startMonth) || e.startMonth < 0 || e.startMonth >= e.interval)
@@ -684,14 +684,14 @@ function tr(e) {
684
684
  return `${n} ${l} ${t} *`;
685
685
  }
686
686
  const { ordinal: r, weekday: o } = e.on;
687
- if (!Number.isInteger(o) || o < 0 || o > 6 || !(r in fe))
687
+ if (!Number.isInteger(o) || o < 0 || o > 6 || !(r in ue))
688
688
  throw new Error("Choose a valid weekday.");
689
- const a = M[o];
689
+ const a = B[o];
690
690
  return `${n} * ${t} ${r === -1 ? `${a}L` : `${a}#${r}`}`;
691
691
  }
692
692
  }
693
693
  }
694
- function xt(e) {
694
+ function Ct(e) {
695
695
  if (e === "*") return { interval: 1, startMonth: 0 };
696
696
  const n = e.split(",");
697
697
  if (n.some((i) => !/^([1-9]|1[0-2])$/.test(i))) return null;
@@ -704,7 +704,7 @@ function xt(e) {
704
704
  );
705
705
  return o >= r || a.length !== t.length || a.some((i, c) => i !== t[c]) ? null : { interval: r, startMonth: o };
706
706
  }
707
- function Ct(e) {
707
+ function xt(e) {
708
708
  const n = e.split(",");
709
709
  if (n.some((o) => !/^(L|[1-9]|[12]\d|3[01])$/.test(o))) return null;
710
710
  const t = n.map(
@@ -723,24 +723,24 @@ function Tt(e) {
723
723
  }
724
724
  function ye(e) {
725
725
  if (typeof e != "string" || e.length === 0 || e !== e.trim() || e.includes(" "))
726
- return x;
726
+ return C;
727
727
  const n = e.split(" ");
728
- if (n.length !== 5) return x;
728
+ if (n.length !== 5) return C;
729
729
  const [t, r, o, a, i] = n;
730
730
  if (!/^(0|[1-9]\d?)$/.test(t) || !/^(0|[1-9]\d?)$/.test(r))
731
- return x;
731
+ return C;
732
732
  const c = Number(t), l = Number(r);
733
- if (c > 59 || l > 23) return x;
733
+ if (c > 59 || l > 23) return C;
734
734
  if (a === "*" && o === "*" && i === "*")
735
735
  return {
736
736
  ok: !0,
737
737
  value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !1 }
738
738
  };
739
739
  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]) ? {
740
+ const f = i.split(",").map((v) => se.get(v));
741
+ if (f.some((v) => v === void 0)) return C;
742
+ const p = f, g = fe(p);
743
+ return !g || g.some((v, A) => v !== p[A]) ? C : g.length === U.length && g.every((v, A) => v === U[A]) ? {
744
744
  ok: !0,
745
745
  value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !0 }
746
746
  } : {
@@ -748,11 +748,11 @@ function ye(e) {
748
748
  value: { frequency: "weekly", hour: l, minute: c, weekdays: g }
749
749
  };
750
750
  }
751
- const m = xt(a);
752
- if (!m) return x;
751
+ const m = Ct(a);
752
+ if (!m) return C;
753
753
  if (o !== "*" && i === "*") {
754
- const s = Ct(o), u = O(m.interval, m.startMonth);
755
- return !s || !he(s, u) ? x : {
754
+ const s = xt(o), f = O(m.interval, m.startMonth);
755
+ return !s || !he(s, f) ? C : {
756
756
  ok: !0,
757
757
  value: {
758
758
  frequency: "monthly",
@@ -774,9 +774,9 @@ function ye(e) {
774
774
  ...m,
775
775
  on: { type: "weekday", ...s }
776
776
  }
777
- } : x;
777
+ } : C;
778
778
  }
779
- return x;
779
+ return C;
780
780
  }
781
781
  function St(e, n, t) {
782
782
  return new Intl.DateTimeFormat(t, {
@@ -813,7 +813,7 @@ function wt(e, n, t) {
813
813
  const o = O(e, n).map((a) => r(a, "short")).join(", ");
814
814
  return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
815
815
  }
816
- function nr(e, n, t = "en-US") {
816
+ function tr(e, n, t = "en-US") {
817
817
  const r = ye(e);
818
818
  if (!r.ok) return null;
819
819
  try {
@@ -831,7 +831,7 @@ function nr(e, n, t = "en-US") {
831
831
  case "monthly": {
832
832
  const l = wt(o.interval, o.startMonth, t);
833
833
  if (o.on.type === "weekday")
834
- return `On the ${fe[o.on.ordinal]} ${c(o.on.weekday)} of ${l} ${i}`;
834
+ return `On the ${ue[o.on.ordinal]} ${c(o.on.weekday)} of ${l} ${i}`;
835
835
  const m = o.on.days.map(
836
836
  (s) => s === "last" ? "last day" : At(s)
837
837
  );
@@ -846,7 +846,7 @@ const ge = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
846
846
  function Dt(e, n) {
847
847
  return e === "last" || n.some((t) => e <= ge[t]);
848
848
  }
849
- function rr(e) {
849
+ function nr(e) {
850
850
  if (e.frequency !== "monthly" || e.on.type !== "days") return null;
851
851
  const n = e.on.days.filter((o) => o !== "last");
852
852
  if (n.length === 0) return null;
@@ -875,9 +875,9 @@ function Ot(e, n, t, r) {
875
875
  }
876
876
  }
877
877
  }
878
- function or(e, n, t, r) {
878
+ function rr(e, n, t, r) {
879
879
  const o = ye(e);
880
- if (!o.ok || !vt(n)) return [];
880
+ if (!o.ok || !Et(n)) return [];
881
881
  const a = o.value, i = new Intl.DateTimeFormat("en-US", {
882
882
  timeZone: n,
883
883
  hourCycle: "h23",
@@ -887,8 +887,8 @@ function or(e, n, t, r) {
887
887
  hour: "numeric",
888
888
  minute: "numeric"
889
889
  }).formatToParts(t), c = (s) => {
890
- var u;
891
- return Number((u = i.find((p) => p.type === s)) == null ? void 0 : u.value);
890
+ var f;
891
+ return Number((f = i.find((p) => p.type === s)) == null ? void 0 : f.value);
892
892
  }, l = new Date(Date.UTC(c("year"), c("month") - 1, c("day")));
893
893
  c("hour") * 60 + c("minute") >= a.hour * 60 + a.minute && l.setUTCDate(l.getUTCDate() + 1);
894
894
  const m = [];
@@ -911,12 +911,17 @@ const Ft = Object.freeze([
911
911
  "EXPORT_COUNT_UNAVAILABLE",
912
912
  "EXPORT_NO_ROWS",
913
913
  // A dashboard sheet too tall for one image (PNG exports PN-D7).
914
- "IMAGE_TOO_LARGE"
914
+ "IMAGE_TOO_LARGE",
915
+ // A Document attachment, always a PDF (Document PDF reliability C2).
916
+ "DOCUMENT_PAGE_OVERFLOW",
917
+ "DOCUMENT_ROW_LIMIT_EXCEEDED",
918
+ "DOCUMENT_SECTION_SETUP",
919
+ "REPORT_INPUTS_MISSING"
915
920
  ]), Nt = new Set(Ft);
916
921
  function Rt(e) {
917
922
  return typeof e == "string" && Nt.has(e);
918
923
  }
919
- function Bt(e) {
924
+ function Mt(e) {
920
925
  if (!e || typeof e != "object" || Array.isArray(e)) return null;
921
926
  const n = e;
922
927
  return typeof n.index != "number" || !Number.isInteger(n.index) || n.index < 0 || typeof n.title != "string" || !be.includes(n.format) || !Rt(n.code) || typeof n.reason != "string" || typeof n.diagnostic != "string" ? null : {
@@ -928,31 +933,31 @@ function Bt(e) {
928
933
  diagnostic: n.diagnostic
929
934
  };
930
935
  }
931
- function ar(e) {
936
+ function or(e) {
932
937
  if (!e || typeof e != "object" || Array.isArray(e)) return [];
933
938
  const n = e.omittedAttachments;
934
939
  return Array.isArray(n) ? n.flatMap((t) => {
935
- const r = Bt(t);
940
+ const r = Mt(t);
936
941
  return r ? [r] : [];
937
942
  }) : [];
938
943
  }
939
- function ir(e) {
944
+ function ar(e) {
940
945
  return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
941
946
  }
942
- function cr(e) {
947
+ function ir(e) {
943
948
  return e.canCreate ? [
944
949
  ...e.scheduledReportAvailable ? ["scheduled_report"] : [],
945
950
  ...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
946
951
  ] : [];
947
952
  }
948
- function Mt(e) {
953
+ function Bt(e) {
949
954
  const n = (e == null ? void 0 : e.channels) ?? [];
950
955
  return n.length === 1 && n[0] === "EMAIL";
951
956
  }
952
957
  function Lt(e) {
953
- 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";
958
+ return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && Bt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
954
959
  }
955
- function lr(e) {
960
+ function cr(e) {
956
961
  const n = Lt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
957
962
  return {
958
963
  typeLabel: n,
@@ -960,7 +965,7 @@ function lr(e) {
960
965
  pluralNoun: t === "report" ? "reports" : "briefings"
961
966
  };
962
967
  }
963
- const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, f = {
968
+ const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, u = {
964
969
  name: 500,
965
970
  description: 2e3,
966
971
  instruction: 5e4,
@@ -980,9 +985,9 @@ const H = "BRIEFING", Ut = ["markdown", "html"], G = ["markdown"], z = 20, f = {
980
985
  maxBlocks: 50,
981
986
  maxTableRows: 100,
982
987
  maxTableColumns: 20,
983
- maxTableCellCharacters: f.contentCell,
984
- maxParagraphCharacters: f.contentText,
985
- maxFindingCharacters: f.contentText,
988
+ maxTableCellCharacters: u.contentCell,
989
+ maxParagraphCharacters: u.contentText,
990
+ maxFindingCharacters: u.contentText,
986
991
  maxListItems: 100,
987
992
  // A kpi_grid is rendered as a 2-up tile arrangement in emails. Cap at 8 so
988
993
  // the visual stays at most 4 rows (4 columns wide on desktop would force
@@ -1004,7 +1009,7 @@ function Pt(e) {
1004
1009
  function Vt(e) {
1005
1010
  return e == null ? "" : Pt(e) ? Ne(e.value, e.format) : String(e);
1006
1011
  }
1007
- function dr(e) {
1012
+ function lr(e) {
1008
1013
  return [e.delta, e.percentChange].filter(
1009
1014
  (n) => n != null
1010
1015
  ).map(Vt).filter(Boolean).join(" / ");
@@ -1090,14 +1095,14 @@ class P extends Error {
1090
1095
  this.name = "BriefingContractError", this.issues = t;
1091
1096
  }
1092
1097
  }
1093
- function ve(e) {
1098
+ function Ee(e) {
1094
1099
  return typeof e == "object" && e !== null && !Array.isArray(e);
1095
1100
  }
1096
1101
  function d(e, n, t) {
1097
1102
  e.push({ field: n, message: t });
1098
1103
  }
1099
- function v(e, n, t) {
1100
- return ve(e) ? e : (d(t, n, "Expected an object."), {});
1104
+ function E(e, n, t) {
1105
+ return Ee(e) ? e : (d(t, n, "Expected an object."), {});
1101
1106
  }
1102
1107
  function h(e, n, t, r) {
1103
1108
  const o = new Set(t);
@@ -1141,7 +1146,7 @@ function en(e, n, t) {
1141
1146
  return Number(e);
1142
1147
  }
1143
1148
  }
1144
- function C(e, n, t, r = {}) {
1149
+ function x(e, n, t, r = {}) {
1145
1150
  if (e == null)
1146
1151
  return r.required ? (d(t, n, "Expected at least one evidence id."), []) : void 0;
1147
1152
  if (!Array.isArray(e))
@@ -1151,7 +1156,7 @@ function C(e, n, t, r = {}) {
1151
1156
  const c = b(
1152
1157
  a,
1153
1158
  `${n}.${i}`,
1154
- f.id,
1159
+ u.id,
1155
1160
  t
1156
1161
  );
1157
1162
  c && !o.includes(c) && o.push(c);
@@ -1166,28 +1171,28 @@ function tn(e, n) {
1166
1171
  function nn(e) {
1167
1172
  return e.includes("@") && e.includes(".") && !e.includes(" ");
1168
1173
  }
1169
- function Ee(e, n) {
1174
+ function ve(e, n) {
1170
1175
  if (e == null)
1171
1176
  return { type: "project" };
1172
- const t = v(e, "source", n), r = t.type;
1177
+ const t = E(e, "source", n), r = t.type;
1173
1178
  return r === "project" ? (h(t, "source", ["type"], n), { type: "project" }) : r === "dashboard" ? (h(t, "source", ["type", "dashboardId"], n), {
1174
1179
  type: "dashboard",
1175
1180
  dashboardId: b(
1176
1181
  t.dashboardId,
1177
1182
  "source.dashboardId",
1178
- f.id,
1183
+ u.id,
1179
1184
  n
1180
1185
  )
1181
1186
  }) : (d(n, "source.type", "Expected project or dashboard."), { type: "project" });
1182
1187
  }
1183
1188
  function $e(e, n) {
1184
- const t = v(e, "body", n), r = t.type;
1189
+ const t = E(e, "body", n), r = t.type;
1185
1190
  return r === "generated_analysis" ? (h(t, "body", ["type", "instruction"], n), {
1186
1191
  type: "generated_analysis",
1187
1192
  instruction: b(
1188
1193
  t.instruction,
1189
1194
  "body.instruction",
1190
- f.instruction,
1195
+ u.instruction,
1191
1196
  n
1192
1197
  )
1193
1198
  }) : r === "custom_message" ? (h(t, "body", ["type", "message"], n), {
@@ -1195,7 +1200,7 @@ function $e(e, n) {
1195
1200
  message: Qt(
1196
1201
  t.message,
1197
1202
  "body.message",
1198
- f.customMessage,
1203
+ u.customMessage,
1199
1204
  n
1200
1205
  )
1201
1206
  }) : r === "none" ? (h(t, "body", ["type"], n), { type: "none" }) : (d(
@@ -1228,14 +1233,14 @@ function rn(e, n) {
1228
1233
  t.includes(r) || t.push(r);
1229
1234
  }), t;
1230
1235
  }
1231
- function xe(e, n) {
1236
+ function Ce(e, n) {
1232
1237
  if (e == null)
1233
1238
  return {
1234
1239
  artifactFormats: [...G],
1235
1240
  includeEvidence: !0,
1236
1241
  includeSql: !0
1237
1242
  };
1238
- const t = v(e, "presentation", n);
1243
+ const t = E(e, "presentation", n);
1239
1244
  h(
1240
1245
  t,
1241
1246
  "presentation",
@@ -1270,17 +1275,17 @@ function xe(e, n) {
1270
1275
  }, o = I(
1271
1276
  t.audience,
1272
1277
  "presentation.audience",
1273
- f.presentationAudience,
1278
+ u.presentationAudience,
1274
1279
  n
1275
1280
  ), a = I(
1276
1281
  t.tone,
1277
1282
  "presentation.tone",
1278
- f.presentationTone,
1283
+ u.presentationTone,
1279
1284
  n
1280
1285
  ), i = I(
1281
1286
  t.format,
1282
1287
  "presentation.format",
1283
- f.presentationFormat,
1288
+ u.presentationFormat,
1284
1289
  n
1285
1290
  );
1286
1291
  o && (r.audience = o), a && (r.tone = a), i && (r.format = i);
@@ -1296,20 +1301,20 @@ function on(e, n, t) {
1296
1301
  (r, o) => b(
1297
1302
  r,
1298
1303
  `${n}.${o}`,
1299
- f.contentItem,
1304
+ u.contentItem,
1300
1305
  t
1301
1306
  )
1302
1307
  ).filter(Boolean)) : (d(t, n, "Expected an array."), []);
1303
1308
  }
1304
1309
  function an(e, n, t) {
1305
- const r = v(e, n, t);
1310
+ const r = E(e, n, t);
1306
1311
  if (r.kind === "metric")
1307
1312
  return h(r, n, ["kind", "metricId"], t), {
1308
1313
  kind: "metric",
1309
1314
  metricId: b(
1310
1315
  r.metricId,
1311
1316
  `${n}.metricId`,
1312
- f.id,
1317
+ u.id,
1313
1318
  t
1314
1319
  )
1315
1320
  };
@@ -1319,7 +1324,7 @@ function an(e, n, t) {
1319
1324
  columnKey: b(
1320
1325
  r.columnKey,
1321
1326
  `${n}.columnKey`,
1322
- f.id,
1327
+ u.id,
1323
1328
  t
1324
1329
  )
1325
1330
  };
@@ -1329,7 +1334,7 @@ function an(e, n, t) {
1329
1334
  measureId: b(
1330
1335
  r.measureId,
1331
1336
  `${n}.measureId`,
1332
- f.id,
1337
+ u.id,
1333
1338
  t
1334
1339
  )
1335
1340
  };
@@ -1339,10 +1344,10 @@ function an(e, n, t) {
1339
1344
  "Expected metric, column, or matrix_measure."
1340
1345
  );
1341
1346
  }
1342
- function Ce(e, n, t) {
1347
+ function xe(e, n, t) {
1343
1348
  if (e === null || typeof e != "object" || Array.isArray(e))
1344
1349
  return;
1345
- const r = v(e, n, t);
1350
+ const r = E(e, n, t);
1346
1351
  if (!Object.prototype.hasOwnProperty.call(r, "target") && !Object.prototype.hasOwnProperty.call(r, "format"))
1347
1352
  return;
1348
1353
  h(r, n, ["value", "target", "format"], t), (typeof r.value != "number" || !Number.isFinite(r.value)) && d(t, `${n}.value`, "Expected a finite number.");
@@ -1370,7 +1375,7 @@ function w(e, n, t) {
1370
1375
  }
1371
1376
  return e;
1372
1377
  }
1373
- const r = Ce(e, n, t);
1378
+ const r = xe(e, n, t);
1374
1379
  if (r) return r;
1375
1380
  d(
1376
1381
  t,
@@ -1380,12 +1385,12 @@ function w(e, n, t) {
1380
1385
  }
1381
1386
  function cn(e, n, t) {
1382
1387
  if (e === null || typeof e == "string" || typeof e == "number" || typeof e == "boolean")
1383
- return typeof e == "string" && e.length > f.contentCell ? (d(
1388
+ return typeof e == "string" && e.length > u.contentCell ? (d(
1384
1389
  t,
1385
1390
  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);
1391
+ `Must be ${u.contentCell} characters or fewer.`
1392
+ ), e.slice(0, u.contentCell)) : typeof e == "number" && !Number.isFinite(e) ? (d(t, n, "Expected a finite number."), null) : e;
1393
+ const r = xe(e, n, t);
1389
1394
  return r || (d(
1390
1395
  t,
1391
1396
  n,
@@ -1402,19 +1407,19 @@ function ln(e, n, t) {
1402
1407
  );
1403
1408
  const r = /* @__PURE__ */ new Set();
1404
1409
  return e.slice(0, $.maxTableColumns).map((o, a) => {
1405
- const i = `${n}.${a}`, c = v(o, i, t);
1410
+ const i = `${n}.${a}`, c = E(o, i, t);
1406
1411
  h(c, i, ["key", "label", "kind", "align"], t);
1407
1412
  const l = b(
1408
1413
  c.key,
1409
1414
  `${i}.key`,
1410
- f.id,
1415
+ u.id,
1411
1416
  t
1412
1417
  );
1413
1418
  l && (r.has(l) && d(t, `${i}.key`, "Column key must be unique."), r.add(l));
1414
1419
  const m = b(
1415
1420
  c.label,
1416
1421
  `${i}.label`,
1417
- f.contentTitle,
1422
+ u.contentTitle,
1418
1423
  t
1419
1424
  ), s = k(
1420
1425
  c.kind,
@@ -1422,7 +1427,7 @@ function ln(e, n, t) {
1422
1427
  Zt,
1423
1428
  "text, number, currency, percent, date, or boolean",
1424
1429
  t
1425
- ), u = k(
1430
+ ), f = k(
1426
1431
  c.align,
1427
1432
  `${i}.align`,
1428
1433
  Yt,
@@ -1433,7 +1438,7 @@ function ln(e, n, t) {
1433
1438
  key: l,
1434
1439
  label: m,
1435
1440
  ...s ? { kind: s } : {},
1436
- ...u ? { align: u } : {}
1441
+ ...f ? { align: f } : {}
1437
1442
  };
1438
1443
  });
1439
1444
  }
@@ -1447,7 +1452,7 @@ function dn(e, n, t, r) {
1447
1452
  );
1448
1453
  const o = new Set(t.map((a) => a.key).filter(Boolean));
1449
1454
  return e.slice(0, $.maxTableRows).map((a, i) => {
1450
- const c = `${n}.${i}`, l = v(a, c, r);
1455
+ const c = `${n}.${i}`, l = E(a, c, r);
1451
1456
  return Object.keys(l).forEach((m) => {
1452
1457
  o.has(m) || d(r, `${c}.${m}`, `Unexpected table cell "${m}".`);
1453
1458
  }), Object.fromEntries(
@@ -1459,18 +1464,18 @@ function dn(e, n, t, r) {
1459
1464
  });
1460
1465
  }
1461
1466
  function sn(e, n, t) {
1462
- const r = `content.blocks.${n}`, o = v(e, r, t), a = o.type;
1467
+ const r = `content.blocks.${n}`, o = E(e, r, t), a = o.type;
1463
1468
  if (a === "heading") {
1464
1469
  h(o, r, ["type", "text", "level", "evidenceIds"], t);
1465
1470
  const i = o.level === void 0 || o.level === null ? void 0 : o.level === 2 || o.level === 3 ? o.level : void 0;
1466
1471
  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);
1472
+ const c = x(o.evidenceIds, `${r}.evidenceIds`, t);
1468
1473
  return {
1469
1474
  type: "heading",
1470
1475
  text: b(
1471
1476
  o.text,
1472
1477
  `${r}.text`,
1473
- f.contentTitle,
1478
+ u.contentTitle,
1474
1479
  t
1475
1480
  ),
1476
1481
  ...i ? { level: i } : {},
@@ -1479,13 +1484,13 @@ function sn(e, n, t) {
1479
1484
  }
1480
1485
  if (a === "paragraph") {
1481
1486
  h(o, r, ["type", "text", "evidenceIds"], t);
1482
- const i = C(o.evidenceIds, `${r}.evidenceIds`, t);
1487
+ const i = x(o.evidenceIds, `${r}.evidenceIds`, t);
1483
1488
  return {
1484
1489
  type: "paragraph",
1485
1490
  text: b(
1486
1491
  o.text,
1487
1492
  `${r}.text`,
1488
- f.contentText,
1493
+ u.contentText,
1489
1494
  t
1490
1495
  ),
1491
1496
  ...i ? { evidenceIds: i } : {}
@@ -1496,7 +1501,7 @@ function sn(e, n, t) {
1496
1501
  const i = I(
1497
1502
  o.title,
1498
1503
  `${r}.title`,
1499
- f.contentTitle,
1504
+ u.contentTitle,
1500
1505
  t
1501
1506
  ), c = k(
1502
1507
  o.severity,
@@ -1511,11 +1516,11 @@ function sn(e, n, t) {
1511
1516
  text: b(
1512
1517
  o.text,
1513
1518
  `${r}.text`,
1514
- f.contentText,
1519
+ u.contentText,
1515
1520
  t
1516
1521
  ),
1517
1522
  ...c ? { severity: c } : {},
1518
- evidenceIds: C(o.evidenceIds, `${r}.evidenceIds`, t, {
1523
+ evidenceIds: x(o.evidenceIds, `${r}.evidenceIds`, t, {
1519
1524
  required: !0
1520
1525
  }) ?? []
1521
1526
  };
@@ -1525,9 +1530,9 @@ function sn(e, n, t) {
1525
1530
  const i = I(
1526
1531
  o.title,
1527
1532
  `${r}.title`,
1528
- f.contentTitle,
1533
+ u.contentTitle,
1529
1534
  t
1530
- ), c = C(o.evidenceIds, `${r}.evidenceIds`, t);
1535
+ ), c = x(o.evidenceIds, `${r}.evidenceIds`, t);
1531
1536
  return {
1532
1537
  type: a,
1533
1538
  ...i ? { title: i } : {},
@@ -1572,15 +1577,15 @@ function sn(e, n, t) {
1572
1577
  ), s = I(
1573
1578
  o.unit,
1574
1579
  `${r}.unit`,
1575
- f.contentTitle,
1580
+ u.contentTitle,
1576
1581
  t
1577
- ), u = C(o.evidenceIds, `${r}.evidenceIds`, t);
1582
+ ), f = x(o.evidenceIds, `${r}.evidenceIds`, t);
1578
1583
  return {
1579
1584
  type: "metric",
1580
1585
  label: b(
1581
1586
  o.label,
1582
1587
  `${r}.label`,
1583
- f.contentTitle,
1588
+ u.contentTitle,
1584
1589
  t
1585
1590
  ),
1586
1591
  value: i,
@@ -1588,7 +1593,7 @@ function sn(e, n, t) {
1588
1593
  ...l !== void 0 ? { delta: l } : {},
1589
1594
  ...m !== void 0 ? { percentChange: m } : {},
1590
1595
  ...s ? { unit: s } : {},
1591
- ...u ? { evidenceIds: u } : {}
1596
+ ...f ? { evidenceIds: f } : {}
1592
1597
  };
1593
1598
  }
1594
1599
  if (a === "kpi_grid") {
@@ -1596,7 +1601,7 @@ function sn(e, n, t) {
1596
1601
  const i = I(
1597
1602
  o.title,
1598
1603
  `${r}.title`,
1599
- f.contentTitle,
1604
+ u.contentTitle,
1600
1605
  t
1601
1606
  ), c = Array.isArray(o.tiles) ? o.tiles : [];
1602
1607
  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 +1609,8 @@ function sn(e, n, t) {
1604
1609
  `${r}.tiles`,
1605
1610
  `Must have ${$.maxKpiTiles} tiles or fewer.`
1606
1611
  );
1607
- const l = c.slice(0, $.maxKpiTiles).map((s, u) => {
1608
- const p = `${r}.tiles.${u}`, g = v(s, p, t);
1612
+ const l = c.slice(0, $.maxKpiTiles).map((s, f) => {
1613
+ const p = `${r}.tiles.${f}`, g = E(s, p, t);
1609
1614
  h(
1610
1615
  g,
1611
1616
  p,
@@ -1620,12 +1625,12 @@ function sn(e, n, t) {
1620
1625
  ],
1621
1626
  t
1622
1627
  );
1623
- const E = w(
1628
+ const v = w(
1624
1629
  g.value,
1625
1630
  `${p}.value`,
1626
1631
  t
1627
1632
  ) ?? "";
1628
- E === "" && d(
1633
+ v === "" && d(
1629
1634
  t,
1630
1635
  `${p}.value`,
1631
1636
  "Expected a non-empty string, number, or structured numeric value."
@@ -1645,9 +1650,9 @@ function sn(e, n, t) {
1645
1650
  ), te = I(
1646
1651
  g.unit,
1647
1652
  `${p}.unit`,
1648
- f.contentTitle,
1653
+ u.contentTitle,
1649
1654
  t
1650
- ), ne = C(
1655
+ ), ne = x(
1651
1656
  g.evidenceIds,
1652
1657
  `${p}.evidenceIds`,
1653
1658
  t
@@ -1656,17 +1661,17 @@ function sn(e, n, t) {
1656
1661
  label: b(
1657
1662
  g.label,
1658
1663
  `${p}.label`,
1659
- f.contentTitle,
1664
+ u.contentTitle,
1660
1665
  t
1661
1666
  ),
1662
- value: E,
1667
+ value: v,
1663
1668
  ...A !== void 0 ? { previousValue: A } : {},
1664
1669
  ...F !== void 0 ? { delta: F } : {},
1665
1670
  ...ee !== void 0 ? { percentChange: ee } : {},
1666
1671
  ...te ? { unit: te } : {},
1667
1672
  ...ne ? { evidenceIds: ne } : {}
1668
1673
  };
1669
- }), m = C(
1674
+ }), m = x(
1670
1675
  o.evidenceIds,
1671
1676
  `${r}.evidenceIds`,
1672
1677
  t
@@ -1685,15 +1690,15 @@ function sn(e, n, t) {
1685
1690
  const c = I(
1686
1691
  o.detail,
1687
1692
  `${r}.detail`,
1688
- f.contentText,
1693
+ u.contentText,
1689
1694
  t
1690
- ), l = C(o.evidenceIds, `${r}.evidenceIds`, t);
1695
+ ), l = x(o.evidenceIds, `${r}.evidenceIds`, t);
1691
1696
  return {
1692
1697
  type: "progress",
1693
1698
  label: b(
1694
1699
  o.label,
1695
1700
  `${r}.label`,
1696
- f.contentTitle,
1701
+ u.contentTitle,
1697
1702
  t
1698
1703
  ),
1699
1704
  value: i,
@@ -1711,23 +1716,23 @@ function sn(e, n, t) {
1711
1716
  const i = ln(o.columns, `${r}.columns`, t), c = I(
1712
1717
  o.title,
1713
1718
  `${r}.title`,
1714
- f.contentTitle,
1719
+ u.contentTitle,
1715
1720
  t
1716
1721
  ), l = I(
1717
1722
  o.id,
1718
1723
  `${r}.id`,
1719
- f.id,
1724
+ u.id,
1720
1725
  t
1721
1726
  ), m = I(
1722
1727
  o.caption,
1723
1728
  `${r}.caption`,
1724
- f.contentItem,
1729
+ u.contentItem,
1725
1730
  t
1726
1731
  ), s = en(
1727
1732
  o.totalRows,
1728
1733
  `${r}.totalRows`,
1729
1734
  t
1730
- ), u = C(o.evidenceIds, `${r}.evidenceIds`, t);
1735
+ ), f = x(o.evidenceIds, `${r}.evidenceIds`, t);
1731
1736
  return {
1732
1737
  type: "table",
1733
1738
  ...l ? { id: l } : {},
@@ -1736,7 +1741,7 @@ function sn(e, n, t) {
1736
1741
  rows: dn(o.rows, `${r}.rows`, i, t),
1737
1742
  ...m ? { caption: m } : {},
1738
1743
  ...s !== void 0 ? { totalRows: s } : {},
1739
- ...u ? { evidenceIds: u } : {}
1744
+ ...f ? { evidenceIds: f } : {}
1740
1745
  };
1741
1746
  }
1742
1747
  if (a === "evidence_appendix") {
@@ -1744,13 +1749,13 @@ function sn(e, n, t) {
1744
1749
  const i = I(
1745
1750
  o.title,
1746
1751
  `${r}.title`,
1747
- f.contentTitle,
1752
+ u.contentTitle,
1748
1753
  t
1749
1754
  );
1750
1755
  return {
1751
1756
  type: "evidence_appendix",
1752
1757
  ...i ? { title: i } : {},
1753
- evidenceIds: C(o.evidenceIds, `${r}.evidenceIds`, t, {
1758
+ evidenceIds: x(o.evidenceIds, `${r}.evidenceIds`, t, {
1754
1759
  required: !0
1755
1760
  }) ?? []
1756
1761
  };
@@ -1760,14 +1765,14 @@ function sn(e, n, t) {
1760
1765
  const i = I(
1761
1766
  o.title,
1762
1767
  `${r}.title`,
1763
- f.contentTitle,
1768
+ u.contentTitle,
1764
1769
  t
1765
1770
  ), c = b(
1766
1771
  o.sql,
1767
1772
  `${r}.sql`,
1768
- f.contentSql,
1773
+ u.contentSql,
1769
1774
  t
1770
- ), l = C(o.evidenceIds, `${r}.evidenceIds`, t);
1775
+ ), l = x(o.evidenceIds, `${r}.evidenceIds`, t);
1771
1776
  return {
1772
1777
  type: "sql",
1773
1778
  ...i ? { title: i } : {},
@@ -1785,17 +1790,17 @@ function sn(e, n, t) {
1785
1790
  };
1786
1791
  }
1787
1792
  function mn(e) {
1788
- const n = [], t = v(e, "content", n);
1793
+ const n = [], t = E(e, "content", n);
1789
1794
  h(t, "content", ["version", "title", "summary", "blocks"], n), t.version !== 1 && d(n, "content.version", "Expected version 1.");
1790
1795
  const r = I(
1791
1796
  t.title,
1792
1797
  "content.title",
1793
- f.contentTitle,
1798
+ u.contentTitle,
1794
1799
  n
1795
1800
  ), o = I(
1796
1801
  t.summary,
1797
1802
  "content.summary",
1798
- f.contentSummary,
1803
+ u.contentSummary,
1799
1804
  n
1800
1805
  );
1801
1806
  Array.isArray(t.blocks) || d(n, "content.blocks", "Expected an array.");
@@ -1813,7 +1818,7 @@ function mn(e) {
1813
1818
  blocks: i
1814
1819
  };
1815
1820
  }
1816
- function sr(e) {
1821
+ function dr(e) {
1817
1822
  try {
1818
1823
  return {
1819
1824
  valid: !0,
@@ -1836,7 +1841,7 @@ function k(e, n, t, r, o) {
1836
1841
  d(o, n, `Expected ${r}.`);
1837
1842
  }
1838
1843
  }
1839
- function fn(e, n, t) {
1844
+ function un(e, n, t) {
1840
1845
  if (e != null) {
1841
1846
  if (!Array.isArray(e)) {
1842
1847
  d(t, n, "Expected an array.");
@@ -1845,9 +1850,9 @@ function fn(e, n, t) {
1845
1850
  return e;
1846
1851
  }
1847
1852
  }
1848
- function un(e, n, t) {
1853
+ function fn(e, n, t) {
1849
1854
  if (e != null) {
1850
- if (!ve(e)) {
1855
+ if (!Ee(e)) {
1851
1856
  d(t, n, "Expected an object.");
1852
1857
  return;
1853
1858
  }
@@ -1857,14 +1862,14 @@ function un(e, n, t) {
1857
1862
  function pn(e, n, t) {
1858
1863
  if (e == null)
1859
1864
  return;
1860
- const r = v(e, n, t);
1865
+ const r = E(e, n, t);
1861
1866
  h(r, n, Jt, t);
1862
1867
  const o = {};
1863
1868
  if (r.matrix !== void 0) {
1864
- const s = v(r.matrix, `${n}.matrix`, t);
1869
+ const s = E(r.matrix, `${n}.matrix`, t);
1865
1870
  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.");
1871
+ const f = Be.safeParse(s.config);
1872
+ f.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
1868
1873
  const p = k(
1869
1874
  s.content,
1870
1875
  `${n}.matrix.content`,
@@ -1872,7 +1877,7 @@ function pn(e, n, t) {
1872
1877
  "current, all, or flat",
1873
1878
  t
1874
1879
  );
1875
- p || d(t, `${n}.matrix.content`, "Choose Matrix export content."), u.success && p && (o.matrix = { config: u.data, content: p });
1880
+ p || d(t, `${n}.matrix.content`, "Choose Matrix export content."), f.success && p && (o.matrix = { config: f.data, content: p });
1876
1881
  }
1877
1882
  const a = k(
1878
1883
  r.pageSize,
@@ -1927,13 +1932,13 @@ function pn(e, n, t) {
1927
1932
  "cardType",
1928
1933
  "theme"
1929
1934
  ]) {
1930
- const u = I(
1935
+ const f = I(
1931
1936
  r[s],
1932
1937
  `${n}.${s}`,
1933
- f.id,
1938
+ u.id,
1934
1939
  t
1935
1940
  );
1936
- u && (o[s] = u);
1941
+ f && (o[s] = f);
1937
1942
  }
1938
1943
  for (const s of [
1939
1944
  "filterValues",
@@ -1943,8 +1948,8 @@ function pn(e, n, t) {
1943
1948
  "cardControlDefinitions",
1944
1949
  "controlBindings"
1945
1950
  ]) {
1946
- const u = fn(r[s], `${n}.${s}`, t);
1947
- u && (o[s] = u);
1951
+ const f = un(r[s], `${n}.${s}`, t);
1952
+ f && (o[s] = f);
1948
1953
  }
1949
1954
  for (const s of [
1950
1955
  "controlValues",
@@ -1952,8 +1957,8 @@ function pn(e, n, t) {
1952
1957
  "dashboardInputExecutionSnapshot",
1953
1958
  "printInputCapture"
1954
1959
  ]) {
1955
- const u = un(r[s], `${n}.${s}`, t);
1956
- u && (o[s] = u);
1960
+ const f = fn(r[s], `${n}.${s}`, t);
1961
+ f && (o[s] = f);
1957
1962
  }
1958
1963
  return Object.keys(o).length > 0 ? o : void 0;
1959
1964
  }
@@ -1961,7 +1966,7 @@ function q(e, n, t, r) {
1961
1966
  const o = I(
1962
1967
  n,
1963
1968
  t,
1964
- f.attachmentTitle,
1969
+ u.attachmentTitle,
1965
1970
  r
1966
1971
  );
1967
1972
  return o && (e.title = o), e;
@@ -1975,7 +1980,7 @@ function K(e, n, t, r) {
1975
1980
  ), o && (e.settings = o), e;
1976
1981
  }
1977
1982
  function hn(e, n, t) {
1978
- const r = `attachments.${n}`, o = v(e, r, t), a = o.type;
1983
+ const r = `attachments.${n}`, o = E(e, r, t), a = o.type;
1979
1984
  if (a === "dashboard") {
1980
1985
  h(
1981
1986
  o,
@@ -1989,7 +1994,7 @@ function hn(e, n, t) {
1989
1994
  dashboardId: b(
1990
1995
  o.dashboardId,
1991
1996
  `${r}.dashboardId`,
1992
- f.id,
1997
+ u.id,
1993
1998
  t
1994
1999
  ),
1995
2000
  format: L(o.format, `${r}.format`, ["pdf"], t)
@@ -2013,13 +2018,13 @@ function hn(e, n, t) {
2013
2018
  dashboardId: b(
2014
2019
  o.dashboardId,
2015
2020
  `${r}.dashboardId`,
2016
- f.id,
2021
+ u.id,
2017
2022
  t
2018
2023
  ),
2019
2024
  sheetId: b(
2020
2025
  o.sheetId,
2021
2026
  `${r}.sheetId`,
2022
- f.id,
2027
+ u.id,
2023
2028
  t
2024
2029
  ),
2025
2030
  format: L(
@@ -2050,13 +2055,13 @@ function hn(e, n, t) {
2050
2055
  dashboardId: b(
2051
2056
  o.dashboardId,
2052
2057
  `${r}.dashboardId`,
2053
- f.id,
2058
+ u.id,
2054
2059
  t
2055
2060
  ),
2056
2061
  cardId: b(
2057
2062
  o.cardId,
2058
2063
  `${r}.cardId`,
2059
- f.id,
2064
+ u.id,
2060
2065
  t
2061
2066
  ),
2062
2067
  format: L(
@@ -2122,7 +2127,7 @@ function Te(e, n) {
2122
2127
  function Se(e, n) {
2123
2128
  if (e == null)
2124
2129
  return;
2125
- const t = v(e, "limits", n);
2130
+ const t = E(e, "limits", n);
2126
2131
  h(t, "limits", Object.keys(j), n);
2127
2132
  const r = {};
2128
2133
  return Object.keys(j).forEach((o) => {
@@ -2175,7 +2180,7 @@ function gn(e, n, t) {
2175
2180
  });
2176
2181
  }
2177
2182
  function Ae(e) {
2178
- const n = [], t = v(e, "jobConfig", n);
2183
+ const n = [], t = E(e, "jobConfig", n);
2179
2184
  h(
2180
2185
  t,
2181
2186
  "jobConfig",
@@ -2204,7 +2209,7 @@ function Ae(e) {
2204
2209
  m instanceof Error ? m.message : "Invalid presentation snapshot."
2205
2210
  );
2206
2211
  }
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);
2212
+ const o = ve(t.source, n), a = $e(t.body, n), i = Te(t.attachments, n), c = Ce(t.presentation, n), l = Se(t.limits, n);
2208
2213
  return ke(a, i, n), gn(
2209
2214
  r == null ? void 0 : r.resolvedFormats,
2210
2215
  i,
@@ -2219,25 +2224,25 @@ function Ae(e) {
2219
2224
  ...l ? { limits: l } : {}
2220
2225
  };
2221
2226
  }
2222
- function mr(e) {
2227
+ function sr(e) {
2223
2228
  return Ae({
2224
2229
  ...e,
2225
2230
  kind: H
2226
2231
  });
2227
2232
  }
2228
2233
  function J(e, n, t, r = "deliveryConfig.recipients") {
2229
- const o = `${r}.${n}`, a = v(e, o, t), i = a.type;
2234
+ const o = `${r}.${n}`, a = E(e, o, t), i = a.type;
2230
2235
  if (i === "email") {
2231
2236
  h(a, o, ["type", "address", "name"], t);
2232
2237
  const c = b(
2233
2238
  a.address,
2234
2239
  `${o}.address`,
2235
- f.id,
2240
+ u.id,
2236
2241
  t
2237
2242
  ), l = I(
2238
2243
  a.name,
2239
2244
  `${o}.name`,
2240
- f.attachmentTitle,
2245
+ u.attachmentTitle,
2241
2246
  t
2242
2247
  );
2243
2248
  return c && !nn(c) && d(t, `${o}.address`, "Email address is invalid."), {
@@ -2251,7 +2256,7 @@ function J(e, n, t, r = "deliveryConfig.recipients") {
2251
2256
  userId: b(
2252
2257
  a.userId,
2253
2258
  `${o}.userId`,
2254
- f.id,
2259
+ u.id,
2255
2260
  t
2256
2261
  )
2257
2262
  }) : i === "tenant_user" ? (h(a, o, ["type", "tenantUserId"], t), {
@@ -2259,7 +2264,7 @@ function J(e, n, t, r = "deliveryConfig.recipients") {
2259
2264
  tenantUserId: b(
2260
2265
  a.tenantUserId,
2261
2266
  `${o}.tenantUserId`,
2262
- f.id,
2267
+ u.id,
2263
2268
  t
2264
2269
  )
2265
2270
  }) : i === "group" ? (h(a, o, ["type", "groupId"], t), {
@@ -2267,7 +2272,7 @@ function J(e, n, t, r = "deliveryConfig.recipients") {
2267
2272
  groupId: b(
2268
2273
  a.groupId,
2269
2274
  `${o}.groupId`,
2270
- f.id,
2275
+ u.id,
2271
2276
  t
2272
2277
  )
2273
2278
  }) : (d(
@@ -2297,10 +2302,10 @@ function In(e, n) {
2297
2302
  t.includes(r) || t.push(r);
2298
2303
  }), t;
2299
2304
  }
2300
- function vn(e, n, t) {
2305
+ function En(e, n, t) {
2301
2306
  if (e == null)
2302
2307
  return;
2303
- const r = v(e, n, t), o = {};
2308
+ const r = E(e, n, t), o = {};
2304
2309
  return Object.entries(r).forEach(([a, i]) => {
2305
2310
  if (typeof i != "string") {
2306
2311
  d(t, `${n}.${a}`, "Expected a string.");
@@ -2309,17 +2314,17 @@ function vn(e, n, t) {
2309
2314
  o[a] = i.trim();
2310
2315
  }), Object.keys(o).length > 0 ? o : void 0;
2311
2316
  }
2312
- function En(e, n, t) {
2317
+ function vn(e, n, t) {
2313
2318
  if (e == null)
2314
2319
  return;
2315
- const r = v(e, n, t);
2320
+ const r = E(e, n, t);
2316
2321
  h(
2317
2322
  r,
2318
2323
  n,
2319
2324
  ["url", "method", "headers", "secretEncrypted"],
2320
2325
  t
2321
2326
  );
2322
- const o = r.method === void 0 || r.method === null ? void 0 : L(r.method, `${n}.method`, ["POST", "PUT"], t), a = vn(r.headers, `${n}.headers`, t), i = I(
2327
+ const o = r.method === void 0 || r.method === null ? void 0 : L(r.method, `${n}.method`, ["POST", "PUT"], t), a = En(r.headers, `${n}.headers`, t), i = I(
2323
2328
  r.secretEncrypted,
2324
2329
  `${n}.secretEncrypted`,
2325
2330
  2e3,
@@ -2333,7 +2338,7 @@ function En(e, n, t) {
2333
2338
  };
2334
2339
  }
2335
2340
  function $n(e, n, t) {
2336
- const r = v(e, n, t), o = r.type;
2341
+ const r = E(e, n, t), o = r.type;
2337
2342
  if (o === "channel") {
2338
2343
  h(
2339
2344
  r,
@@ -2344,7 +2349,7 @@ function $n(e, n, t) {
2344
2349
  const a = I(
2345
2350
  r.channelName,
2346
2351
  `${n}.channelName`,
2347
- f.attachmentTitle,
2352
+ u.attachmentTitle,
2348
2353
  t
2349
2354
  ), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : _(
2350
2355
  r.isPrivate,
@@ -2357,7 +2362,7 @@ function $n(e, n, t) {
2357
2362
  channelId: b(
2358
2363
  r.channelId,
2359
2364
  `${n}.channelId`,
2360
- f.id,
2365
+ u.id,
2361
2366
  t
2362
2367
  ),
2363
2368
  ...a ? { channelName: a } : {},
@@ -2373,7 +2378,7 @@ function $n(e, n, t) {
2373
2378
  recipient: J(r.recipient, 0, t, `${n}.recipient`)
2374
2379
  }) : (d(t, `${n}.type`, "Expected channel."), { type: "channel", channelId: "" });
2375
2380
  }
2376
- function xn(e, n, t) {
2381
+ function Cn(e, n, t) {
2377
2382
  if (e == null)
2378
2383
  return;
2379
2384
  if (!Array.isArray(e)) {
@@ -2385,10 +2390,10 @@ function xn(e, n, t) {
2385
2390
  );
2386
2391
  return r.length > 0 ? r : void 0;
2387
2392
  }
2388
- function Cn(e, n, t) {
2393
+ function xn(e, n, t) {
2389
2394
  if (e == null)
2390
2395
  return;
2391
- const r = v(e, n, t);
2396
+ const r = E(e, n, t);
2392
2397
  h(
2393
2398
  r,
2394
2399
  n,
@@ -2401,7 +2406,7 @@ function Cn(e, n, t) {
2401
2406
  ],
2402
2407
  t
2403
2408
  );
2404
- const o = xn(
2409
+ const o = Cn(
2405
2410
  r.threadMentions,
2406
2411
  `${n}.threadMentions`,
2407
2412
  t
@@ -2434,7 +2439,7 @@ function Cn(e, n, t) {
2434
2439
  };
2435
2440
  }
2436
2441
  function Tn(e, n, t) {
2437
- const r = v(e, n, t);
2442
+ const r = E(e, n, t);
2438
2443
  h(
2439
2444
  r,
2440
2445
  n,
@@ -2475,11 +2480,11 @@ function Tn(e, n, t) {
2475
2480
  !0,
2476
2481
  `${n}.actionBlockVisible`,
2477
2482
  t
2478
- ), m = En(
2483
+ ), m = vn(
2479
2484
  r.webhookConfig,
2480
2485
  `${n}.webhookConfig`,
2481
2486
  t
2482
- ), s = Cn(
2487
+ ), s = xn(
2483
2488
  r.slackConfig,
2484
2489
  `${n}.slackConfig`,
2485
2490
  t
@@ -2497,7 +2502,7 @@ function Tn(e, n, t) {
2497
2502
  function Sn(e, n) {
2498
2503
  if (e == null)
2499
2504
  return;
2500
- const t = v(e, "deliveryConfig.channelConfigs", n), r = {};
2505
+ const t = E(e, "deliveryConfig.channelConfigs", n), r = {};
2501
2506
  return Object.entries(t).forEach(([o, a]) => {
2502
2507
  if (!we(o)) {
2503
2508
  d(
@@ -2518,7 +2523,7 @@ function kn(e, n) {
2518
2523
  var l, m, s;
2519
2524
  if (e == null)
2520
2525
  return null;
2521
- const t = v(e, "deliveryConfig", n);
2526
+ const t = E(e, "deliveryConfig", n);
2522
2527
  h(
2523
2528
  t,
2524
2529
  "deliveryConfig",
@@ -2527,7 +2532,7 @@ function kn(e, n) {
2527
2532
  );
2528
2533
  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
2534
  return a.some(
2530
- (u) => u !== "SLACK"
2535
+ (f) => f !== "SLACK"
2531
2536
  ) && o.length === 0 && d(
2532
2537
  n,
2533
2538
  "deliveryConfig.recipients",
@@ -2551,7 +2556,7 @@ function kn(e, n) {
2551
2556
  };
2552
2557
  }
2553
2558
  function Q(e) {
2554
- const n = [], t = v(e, "draft", n);
2559
+ const n = [], t = E(e, "draft", n);
2555
2560
  h(
2556
2561
  t,
2557
2562
  "draft",
@@ -2573,14 +2578,14 @@ function Q(e) {
2573
2578
  const r = b(
2574
2579
  t.name,
2575
2580
  "name",
2576
- f.name,
2581
+ u.name,
2577
2582
  n
2578
2583
  ), o = I(
2579
2584
  t.description,
2580
2585
  "description",
2581
- f.description,
2586
+ u.description,
2582
2587
  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);
2588
+ ) ?? null, a = I(t.scheduleExpr, "scheduleExpr", 500, n) ?? null, i = I(t.timezone, "timezone", 200, n) ?? "UTC", c = tn(t.status, n), l = ve(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
2589
  return ke(m, s, n), Y(n), {
2585
2590
  name: r,
2586
2591
  description: o,
@@ -2590,18 +2595,18 @@ function Q(e) {
2590
2595
  source: l,
2591
2596
  body: m,
2592
2597
  attachments: s,
2593
- presentation: u,
2598
+ presentation: f,
2594
2599
  ...p ? { limits: p } : {},
2595
2600
  deliveryConfig: g
2596
2601
  };
2597
2602
  }
2598
- function fr(e) {
2603
+ function mr(e) {
2599
2604
  return Q(e);
2600
2605
  }
2601
2606
  function ur(e) {
2602
2607
  return Q(e);
2603
2608
  }
2604
- function pr(e) {
2609
+ function fr(e) {
2605
2610
  try {
2606
2611
  return { valid: !0, value: Q(e), issues: [] };
2607
2612
  } catch (n) {
@@ -2610,7 +2615,7 @@ function pr(e) {
2610
2615
  throw n;
2611
2616
  }
2612
2617
  }
2613
- function hr(e) {
2618
+ function pr(e) {
2614
2619
  try {
2615
2620
  return { valid: !0, value: Ae(e), issues: [] };
2616
2621
  } catch (n) {
@@ -2619,7 +2624,7 @@ function hr(e) {
2619
2624
  throw n;
2620
2625
  }
2621
2626
  }
2622
- function yr(e) {
2627
+ function hr(e) {
2623
2628
  return typeof e == "string" && Ie.has(e);
2624
2629
  }
2625
2630
  function we(e) {
@@ -2627,60 +2632,60 @@ function we(e) {
2627
2632
  }
2628
2633
  export {
2629
2634
  X as $,
2630
- f as A,
2635
+ u as A,
2631
2636
  H as B,
2632
2637
  $ as C,
2633
- er as D,
2638
+ Qn as D,
2634
2639
  Pt as E,
2635
2640
  Vt as F,
2636
- dr as G,
2641
+ lr as G,
2637
2642
  be as H,
2638
2643
  P as I,
2639
2644
  mn as J,
2640
- sr as K,
2645
+ dr as K,
2641
2646
  Ae as L,
2642
2647
  z as M,
2643
- mr as N,
2648
+ sr as N,
2644
2649
  Q as O,
2645
- fr as P,
2650
+ mr as P,
2646
2651
  ur as Q,
2647
- pr as R,
2648
- hr as S,
2649
- yr as T,
2652
+ fr as R,
2653
+ pr as S,
2654
+ hr as T,
2650
2655
  we as U,
2651
- Xn as V,
2656
+ Wn as V,
2652
2657
  mt as W,
2653
2658
  lt as X,
2654
- Hn as Y,
2659
+ Kn as Y,
2655
2660
  ct as Z,
2656
2661
  st as _,
2657
- cr as a,
2662
+ ir as a,
2658
2663
  Ft as a0,
2659
2664
  Rt as a1,
2660
2665
  Lt as a2,
2661
2666
  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,
2669
- vt as j,
2670
- tr as k,
2667
+ Gn as c,
2668
+ tr as d,
2669
+ Xn as e,
2670
+ Jn as f,
2671
+ cr as g,
2672
+ qn as h,
2673
+ Hn as i,
2674
+ Et as j,
2675
+ er as k,
2671
2676
  O as l,
2672
- rr as m,
2677
+ nr as m,
2673
2678
  Dt as n,
2674
- or as o,
2679
+ rr as o,
2675
2680
  ye as p,
2676
2681
  pe as q,
2677
- Mt as r,
2678
- ar as s,
2679
- ir as t,
2680
- ft as u,
2682
+ Bt as r,
2683
+ or as s,
2684
+ ar as t,
2685
+ ut as u,
2681
2686
  de as v,
2682
- Jn as w,
2683
- Yn as x,
2687
+ Yn as w,
2688
+ Zn as x,
2684
2689
  Ut as y,
2685
2690
  G as z
2686
2691
  };